PageSourceSearch

https://www.tmb.cat/combo?browserId=chrome&minifierType=js&themeId…rtlet%2Fjs%2Fmain-widget.js&t=1789899354000

js tmb.cat collected 2026-09-24 08:36:26 UTC 949,861 bytes, 1,886 lines download raw bytes

1function initComponents(){registerEvents();updateButtonState()}
2function registerEvents(){$("#tmb-maps__ibus__opcio__linia").on("change",function(){inicializeTrasportInputs();$("#origen-tab").val(2)});$("#tmb-maps__ibus__opcio__linia:checked").on("change",function(){inicializeTrasportInputs();$("#origen-tab").val(2)});$("#tmb-maps__ibus__opcio__codi").on("change",function(){$("#origen-tab").val(1);updateButtonState()});$("#tmb-maps__ibus__linia").on("change",function(){var a=$(this).find("option:selected").data("nomlinia");initBusTrajectes(this.value,a,"1","1,2")});
3$(".button-ibus-search__direct").click(function(a){a.preventDefault();a.stopPropagation();a=getValueParadaiBus();var b=iBusMapsURL();if(!a||""===a.trim()||"0"===a||!b)return $("#tmb-maps-panel-3 .tmb-maps-text-err").show(),$("#label-codi-ibus").css("color","#E20110"),$("#tmb-ibus__codi").css("border","1px solid #E20110"),!1;checkStopiBus(a,b);return!1});$("#tmb-maps__ibus__parada").on("change",updateButtonState);$("#tmb-maps__jotmbe__parada").on("change",updateButtonState);$("#tmb-ibus__codi").on("keyup",
4updateButtonState)}
5function inicializeTrasportInputs(){jQuery.ajax({url:apiGisTransit+"/linies/bus/?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26cql_filter\x3d(CODI_FAMILIA+IN+(1,3,5,6,7,11))\x26propertyName\x3dID_LINIA,NOM_LINIA,DESC_LINIA,CODI_LINIA,ORIGEN_LINIA,DESTI_LINIA,NOM_TIPUS_TRANSPORT,ORDRE_FAMILIA,COLOR_LINIA,COLOR_TEXT_LINIA,ID_OPERADOR\x26sortBy\x3dORDRE_FAMILIA,CODI_LINIA\x26srsName\x3dEPSG:3857",type:"GET",dataType:"json",async:!0,success:function(a){var b=!0,c="",d;for(d in a.features)b&&
6(initBusTrajectes(a.features[d].properties.CODI_LINIA,a.features[d].properties.NOM_LINIA,"1","1,2"),b=!1),c+='\x3coption value\x3d"'+a.features[d].properties.CODI_LINIA+'" data-nomlinia\x3d"'+a.features[d].properties.NOM_LINIA+'"\x3e'+a.features[d].properties.NOM_LINIA+"  "+a.features[d].properties.DESC_LINIA+"\x3c/option\x3e";$("#tmb-maps__ibus__linia").html(c);$("#tmb-ibus__codi").removeAttr("required");TMB.customInput.init()}})}
7function getDestinationsInfo(a,b){""==$("#dd-tooltip-"+b+" .dd-tooltip__description").html().trim()&&jQuery.ajax({url:apiGisTransit+"/linies/bus/"+b+"/trajectes/recs?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26propertyName\x3dID_LINIA,NOM_LINIA,DESC_LINIA,CODI_LINIA,DESC_PAQUET,TIPUS_PAQUET,ID_SENTIT\x26sortBy\x3dTIPUS_PAQUET,ID_SENTIT",type:"GET",dataType:"json",async:!1,success:function(c){var d=c.features,g="";if(2<=c.totalFeatures)for(var h in d)1==d[h].properties.ID_SENTIT&&(g+=
8'\x3ch3 class\x3d"dd-tooltip__title"\x3e'+d[h].properties.DESC_PAQUET+'\x3c/h3\x3e\x3cp class\x3d"dd-tooltip__text"\x3e\x3c/p\x3e');$("#dd-tooltip-"+b+" .dd-tooltip__description").html(g)}});$("#dd-tooltip-"+b).addClass("dd-tooltip--visible");$("#dd-tooltip-"+b).parents(".tmb-maps__panel--ibus").addClass("tmb-maps__panel--ibus-with-tooltip");TMB.doubleDestination.init();a.preventDefault()}
9function getInfoDobleDestinacio(a,b){$("#tmb-maps__ibus__opcio__linia__contingut .option-group__title").append('\x3cspan class\x3d"dd-tooltip dd-tooltip--widget js__dd-tooltip" id\x3d"dd-tooltip-'+a+'"\x3e\x3ca href\x3d"" class\x3d"dd-tooltip__icon js__dd-tooltip-icon" onclick\x3d"return false;" onmouseover\x3d"getDestinationsInfo(event, '+a+')"\x3e?\x3c/a\x3e\x3cdiv class\x3d"dd-tooltip__panel js__dd-tooltip-panel"\x3e\x3cdiv class\x3d"dd-tooltip__panel-inner"\x3e\x3cdiv class\x3d"dd-tooltip__panel-line"\x3e\x3cspan class\x3d"line line--bus line--bus-'+
10b.charAt(0).toLowerCase()+' line--med-alt"\x3e'+b+'\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"dd-tooltip__panel-content"\x3e\x3cdiv class\x3d"dd-tooltip__destination"\x3e'+TMB.l10n.vullanar.get("label.line.double.destination.text")+'\x3c/div\x3e\x3cdiv class\x3d"dd-tooltip__description"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/span\x3e')}
11function initBusTrajectes(a,b,c,d){0==a?($("#busStop option:gt(0)").remove(),$("#tmb-maps__ibus__label__direccio__a").html('\x3cinput id\x3d"tmb-maps__ibus__direccio__a" name\x3d"tmb-maps__ibus__direccio" value\x3d"" type\x3d"radio" checked\x3d"checked"\x3e'+langDirection1),$("#tmb-maps__ibus__label__direccio__b").html('\x3cinput id\x3d"tmb-maps__ibus__direccio__b" name\x3d"tmb-maps__ibus__direccio" value\x3d"" t
11ype\x3d"radio"\x3e'+langDirection2)):jQuery.ajax({url:apiGisTransit+"/linies/bus/"+a+
12"/trajectes/recs?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26propertyName\x3dORIGEN_TRAJECTE,DESTI_TRAJECTE,TIPUS_PAQUET,ID_SENTIT,ORIGEN_TRAJECTE,DESTI_TRAJECTE\x26sortBy\x3dTIPUS_PAQUET,ID_SENTIT",type:"GET",dataType:"json",async:!0,success:function(g){var h={},e;for(e in g.features){var k=g.features[e],f=k.properties.TIPUS_PAQUET,l=k.properties.ID_SENTIT;h.hasOwnProperty(l)||(h[l]=[]);h[l].push({tipus_paquet:f,desti_trajecte:k.properties.DESTI_TRAJECTE})}for(var m in h){g=c==m?
13'checked\x3d"checked"':"";f=k="";l=1==m?"a":"b";for(e in h[m])k=""==k?h[m][e].tipus_paquet:k+","+h[m][e].tipus_paquet,""==f?f=h[m][e].desti_trajecte:f.includes(h[m][e].desti_trajecte)||(f+=" / "+h[m][e].desti_trajecte);$("#tmb-maps__ibus__label__direccio__"+l).html('\x3cinput id\x3d"tmb-maps__ibus__direccio__'+l+'" name\x3d"tmb-maps__ibus__direccio" value\x3d"'+a+"_"+m+"_"+k+'" type\x3d"radio" '+g+"\x3e"+f)}initLiniaBus(a,c,d)}})}
14function initLiniaBus(a,b,c){jQuery.ajax({url:apiGisTransit+"/linies/bus/"+a+"/trajectes/parades?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26propertyName\x3dGEOMETRY,CODI_PARADA,NOM_PARADA,ORDRE\x26cql_filter\x3d(TIPUS_PAQUET+IN+("+c+")+AND+ID_SENTIT+IN+("+b+"))\x26sortBy\x3dORDRE",type:"GET",dataType:"json",async:!0,success:function(d){var g={},h=[];h.push($("\x3coption\x3e",{value:"",disabled:"disabled",selected:"true",text:langSelectStop}));for(var e in d.features){var k=d.features[e].properties,
15f=$("\x3coption\x3e",{value:k.CODI_PARADA,text:k.NOM_PARADA+" ("+k.CODI_PARADA+")"});g[k.CODI_PARADA]||(h.push(f),g[k.CODI_PARADA]=k.NOM_PARADA)}$("#tmb-maps__ibus__parada option:gt(0)").remove();$("#tmb-maps__ibus__parada").html(h);$("#tmb-maps__ibus__direccio__b").change(function(){var l=this.value.split("_");initLiniaBus(l[0],l[1],l[2])});$("#tmb-maps__ibus__direccio__a").change(function(){var l=this.value.split("_");initLiniaBus(l[0],l[1],l[2])});$("#tmb-maps__ibus__parada").change();TMB.customInput.init()}})}
16function iBusMapsURL(){var a="",b=getValueParadaiBus();b&&""!==b.trim()&&"0"!==b&&(a=iBusProximsBusosUrl+"/-/lineabus/parada/"+b);return a}function getValueParadaiBus(){var a;1==$("#origen-tab").val()?(a=$("#tmb-ibus__codi").val())||(a=$("#tmb-maps__jotmbe__parada").val()):a=$("#tmb-maps__ibus__parada option:selected").val();return a}
17function checkStopiBus(a,b){jQuery.ajax({url:apiGisTransit+"/parades/"+a+"?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey,type:"GET",dataType:"json",async:!0,success:function(c){c.numberMatched&&0!=c.numberMatched?($("#tmb-maps-panel-3 .tmb-maps-text-err").hide(),$("#label-codi-ibus").css("color","#656565"),$("#tmb-ibus__codi").css("border","1px solid transparent"),b&&(window.location.href=b)):($("#tmb-maps-panel-3 .tmb-maps-text-err").show(),$("#label-codi-ibus").css("color","#E20110"),$("#tmb-ibus__codi").css("border",
18"1px solid #E20110"))},error:function(){$("#tmb-maps-panel-3 .tmb-maps-text-err").show();$("#label-codi-ibus").css("color","#E20110");$("#tmb-ibus__codi").css("border","1px solid #E20110")}})}function sortLines(a){a.sort(function(b,c){return b["t-in-s"]<c["t-in-s"]?-1:b["t-in-s"]>c["t-in-s"]?1:0})}
19function onSocMapsURL(){var a=$("#tmb-maps__onsoc__carrer").val(),b=$("#tmb-maps__onsoc__carrer-lng").val(),c=$("#tmb-maps__onsoc__carrer-lat").val();if(a&&b&&c){var d=onSocTransportsPropersUrl+"/-/transportes-cercanos/resultados";d+="?coords\x3d"+c+encodeURIComponent(",")+b;d+="\x26loc\x3d"+$("#tmb-maps__onsoc__carrer").val();d=d+"\x26origen-tab\x3d1\x26soc__transport__direccio\x3don\x26isPoisO\x3d"+$("#tmb-maps__onsoc__carrer-isPoisO").val()}return d}
20function vullAnarMapsURL(a,b,c,d,g,h,e,k,f){var l=getDateTime().split("/");if(a&&b&&c&&d&&g&&h&&e&&k&&f)var m=f;else a=$("#tmb-maps__origen__carrer").val(),b=$("#tmb-maps__origen__carrer-lng").val(),c=$("#tmb-maps__origen__carrer-lat").val(),d=$("#tmb-maps__desti__carrer").val(),g=$("#tmb-maps__desti__carrer-lng").val(),h=$("#tmb-maps__desti__carrer-lat").val(),e=$("#tmb-maps__origen__carrer-isPoisO").val(),k=$("#tmb-maps__desti__carrer-isPoisD").val();if(a&&d&&b&&c&&g&&h){var n=vullAnarTrajectesUrl+
21"/-/trayectos-recomendados/resultados";n+="?coords__ori\x3d"+c+encodeURIComponent(",")+b;n+="\x26loc__ori\x3d"+encodeURIComponent(a);n+="\x26coords__dest\x3d"+h+encodeURIComponent(",")+g;n+="\x26loc__dest\x3d"+encodeURIComponent(d);n=n+"\x26origen-tab\x3d1\x26origen__carrer\x3d"+encodeURIComponent(a);n=n+"\x26soc__transport__transport\x3d1\x26soc__transport__linia__metro\x3d1\x26soc__transport__linia__bus\x3d1\x26soc__transport__direccio\x3don\x26soc__transport__parada\x3d1\x26desti-tab\x3d1\x26desti__carrer\x3d"+
22encodeURIComponent(d);n=n+"\x26desti__transport__transport\x3d1\x26desti__transport__linia__metro\x3d1\x26desti__lloc__linia__bus\x3d1\x26desti__lloc__direccio\x3don\x26desti__transport__parada\x3d1\x26f__hora\x3dfalse\x26f__horari__dia\x3d"
22+l[0];n+="\x26f__horari__hora\x3d"+encodeURIComponent(l[1]);n=n+"\x26f__condicionant__bus\x3don\x26f__condicionant__metro\x3don\x26f__condicionants__caminar-durant\x3d10\x26f__condicionants__caminar-pas\x3d1\x26f__condicionants__transbordaments\x3d3\x26isPoisO\x3d"+
23encodeURIComponent(e);n+="\x26isPoisD\x3d"+encodeURIComponent(k);n+="\x26isRoute\x3d"+encodeURIComponent(m)}return n}function getDateTime(){var a=new Date,b=a.getFullYear(),c=a.getMonth()+1,d=a.getDate(),g=a.getHours(),h=a.getMinutes();a.getSeconds();1===c.toString().length&&(c="0"+c);1===d.toString().length&&(d="0"+d);1===g.toString().length&&(g="0"+g);1===h.toString().length&&(h="0"+h);return b+"-"+c+"-"+d+"/"+g+":"+h}
24function selectPlace(a,b,c){c=c.split(",");c=[parseFloat(c[0]),parseFloat(c[1])];coordinatesArray=ol.proj.transform(c,"EPSG:4326","EPSG:3857");b?$(".suggest-active").find("input[type\x3dtext]").val(b):$(".suggest-active").find("input[type\x3dtext]").val(a);$(".suggest-active").find("input[type\x3dhidden]").eq(0).val(coordinatesArray[1]);$(".suggest-active").find("input[type\x3dhidden]").eq(1).val(coordinatesArray[0]);$(".form__field__datalist--suggested.jotmbe-suggested-location").remove();0<$(".suggest-active").find("input[type\x3dhidden]").eq(2).length&&
25("tmb-maps__origen__carrer-isPoisO"==$(".suggest-active").find("input[type\x3dhidden]").eq(2).attr("id")?updateLastPois("origen"):"tmb-maps__desti__carrer-isPoisD"==$(".suggest-active").find("input[type\x3dhidden]").eq(2).attr("id")?updateLastPois("desti"):"tmb-maps__onsoc__carrer-isPoisO"==$(".suggest-active").find("input[type\x3dhidden]").eq(2).attr("id")&&updateLastPois("soc"))}
26function updateLastPois(a){"origen"==a?$("#tmb-maps__origen__carrer-isPoisO").val("true"):"desti"==a?$("#tmb-maps__desti__carrer-isPoisD").val("true"):$("#tmb-maps__onsoc__carrer-isPoisO").val("true")}
27function suggestedLocationSuccess(a){var b=$(".tmb-maps__form--vull-anar .form__field"),c="",d="",g="",h;for(h in a){var e=a[h],k="";k=e.alias?e.alias:e.address;g="CASA"===e.type?g+('\x3cli class\x3d"datalist__item datalist__item--home" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+e.address+"','"+e.alias+"','"+e.coordinates.y+","+e.coordinates.x+'\');" aria-label\x3d"'+langHome+'"\x3e'+k+" \x3c/a\x3e\x3c/li\x3e"):"FEINA"===e.type?g+('\x3cli class\x3d"datalist__item datalist__item--work" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+
28e.address+"','"+e.alias+"','"+e.coordinates.y+","+e.coordinates.x+'\');" aria-label\x3d"'+langWork+'"\x3e'+k+" \x3c/a\x3e\x3c/li\x3e"):g+('\x3cli class\x3d"datalist__item datalist__item--place" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+e.address+"','"+e.alias+"','"+e.coordinates.y+","+e.coordinates.x+'\');" aria-label\x3d"'+e.alias+'"\x3e'+k+" \x3c/a\x3e\x3c/li\x3e")}""!=g&&(c='\x3cul class\x3d"form__field__datalist form__field__datalist--suggested datalist jotmbe-suggested-location" role\x3d"list"\x3e \x3cli class\x3d"datalist__item datalist__item--title"\x3e'+
29langMyPlaces+"\x3c/li\x3e"+g+"\x3c/ul\x3e",d='\x3cul class\x3d"form__field__datalist form__field__datalist--suggested datalist jotmbe-suggested-location" role\x3d"list"\x3e\x3cli class\x3d"datalist__item datalist__item--title"\x3e'+langMyPlaces+"\x3c/li\x3e"+g+"\x3c/ul\x3e",b.find("input[type\x3dtext]").on("focus",function(f){$(".form__field__datalist--suggested.jotmbe-suggested-location").remove();$(".suggest-active").removeClass("suggest-active");$(this).parents(".form__field--suggest-location").addClass("suggest-active");
301>$(this).parents(".form__field--suggest-location").find(".form__field__datalist--suggested").length&&(1==$(this).parents(".form__field--suggest-location").data("suggestfull")?$(this).parent().append(c):2==$(this).parents(".form__field--suggest-location").data("suggestfull")?$(this).parent().append(d):3==$(this).parents(".form__field--suggest-location").data("suggestfull")?$(this).parent().append(c):$(this).parent().append(""));$(this).parents(".form__field__control").removeClass("form__field__control--error").find("form__tooltip").remove();
31$(this).parents(".form__field--suggest-location").on("focusout",function(l){$(l.target).closest(".form__field--suggest-location").hasClass("suggest-active")||($(".suggest-active").removeClass("suggest-active"),$(this).find(".form__field__datalist--suggested.jotmbe-suggested-location").remove())})}));$("body").on("click focusin",function(f){$(".suggest-active").length&&1>$(f.target).parents(".suggest-active").length&&($(".form__field__datalist--suggested.jotmbe-suggested-location").remove(),$(".suggest-active").removeClass("suggest-active"))});
32b.find("input[type\x3dtext]").on("keypress",function(f){$(this).parents(".form__field--suggest-location").find(".form__field__datalist--suggested.jotmbe-suggested-location").remove()});b.on("mousedown",".datalist__item--get-location",function(f){f.preventDefault()}).on("click",".datalist__item--get-location",function(){initGeoSuggestedLocation();0===$(this).parents("form__field__control").find("form__field__control--error__tooltip").length&&$(this).parents(".form__field__control").append("").children(":last").hide().fadeIn(400,
33function(){$("#errorbox-1").click(function(f){$(this).is(":visible")&&$(this).fadeOut(400,function(){$(".suggest-active").removeClass("suggest-active");$(this).remove()})})})})}function suggestedLocationError(){console.error("Error getting pois info")}var token=localStorage.getItem("kc_token");function suggestedLocation(){$(".tmb-maps__form--vull-anar .form__field");var a=localStorage.getItem("uuid");locations(a,"GET",null,suggestedLocationSuccess,suggestedLocationError,token)}
34function suggestedLocationWidgetSuccess(a){var b=$(".form__field--suggest-location"),c="",d="",g=$(".tmb-maps__vull-anar__trajectes"),h=$(".js-maps-panel-vull-anar"),e="",k;for(k in a){var f=a[k],l="";l=f.alias?f.alias:f.address;e="CASA"===f.type?e+('\x3cli class\x3d"datalist__item datalist__item--home" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+f.address+"','"+f.alias+"','"+f.coordinates.y+","+f.coordinates.x+'\');" aria-label\x3d"'+langHome+'"\x3e'+l+" \x3c/a\x3e\x3c/li\x3e"):
35"FEINA"===f.type?e+('\x3cli class\x3d"datalist__item datalist__item--work" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+f.address+"','"+f.alias+"','"+f.coordinates.y+","+f.coordinates.x+'\');" aria-label\x3d"'+langWork+'"\x3e'+l+" \x3c/a\x3e\x3c/li\x3e"):e+('\x3cli class\x3d"datalist__item datalist__item--place" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+f.address+"','"+f.alias+"','"+f.coordinates.y+","+f.coordinates.x+'\');" aria-label\x3d"'+f.alias+'"\x3e'+
36l+" \x3c/a\x3e\x3c/li\x3e")}""!=e&&(c='\x3cul class\x3d"form__field__datalist form__field__datalist--suggested datalist jotmbe-suggested-location" role\x3d"list"\x3e\x3cli class\x3d"datalist__item datalist__item--title"\x3e'+langMyPlaces+"\x3c/li\x3e"+e+"\x3c/ul\x3e",d='\x3cul class\x3d"form__field__datalist form__field__datalist--suggested datalist jotmbe-suggested-location" role\x3d"list"\x3e\x3cli class\x3d"datalist__item datalist__item--title"\x3e'+langMyPlaces+"\x3c/li\x3e"+e+"\x3c/ul\x3e",b.find("input[type\x3dtext]").on("focus",
37function(m){$(".form__field__datalist--suggested.jotmbe-suggested-location").remove();$(".suggest-active").removeClass("suggest-active");$(this).parents(".form__field--suggest-location").addClass("suggest-active");g.css("visibility","hidden");h.css("overflow","visible");1>
37$(this).parents(".form__field--suggest-location").find(".form__field__datalist--suggested").length&&(1==$(this).parents(".form__field--suggest-location").data("suggestfull")?$(this).parent().append(c):2==$(this).parents(".form__field--suggest-location").data("suggestfull")?
38$(this).parent().append(d):3==$(this).parents(".form__field--suggest-location").data("suggestfull")?$(this).parent().append(c):$(this).parent().append(""));$(this).parents(".form__field__control").removeClass("form__field__control--error").find("form__tooltip").remove();$(this).parents(".form__field--suggest-location").on("focusout",function(n){$(n.target).closest(".form__field--suggest-location").hasClass("suggest-active")||($(".suggest-active").removeClass("suggest-active"),$(this).find(".form__field__datalist--suggested.jotmbe-suggested-location").remove())})}));
39$("body").on("click focusin",function(m){$(".suggest-active").length&&1>$(m.target).parents(".suggest-active").length&&($(".form__field__datalist--suggested.jotmbe-suggested-location").remove(),$(".suggest-active").removeClass("suggest-active"),h.removeAttr("style"))});b.find("input[type\x3dtext]").on("keypress",function(m){$(this).parents(".form__field--suggest-location").find(".form__field__datalist--suggested.jotmbe-suggested-location").remove()});b.on("mousedown",".datalist__item--get-location",
40function(m){m.preventDefault()}).on("click",".datalist__item--get-location",function(){initGeoSuggestedLocation();0===$(this).parents("form__field__control").find("form__field__control--error__tooltip").length&&$(this).parents(".form__field__control").append("").children(":last").hide().fadeIn(400,function(){$("#errorbox-1").click(function(m){$(this).is(":visible")&&$(this).fadeOut(400,function(){$(".suggest-active").removeClass("suggest-active");$(this).remove()})})})})}
41function suggestedLocationWidgetError(){console.error("Error getting pois info")}function suggestedLocationWidget(){$(".form__field--suggest-location");$(".tmb-maps__vull-anar__trajectes");$(".js-maps-panel-vull-anar");var a=localStorage.getItem("uuid");locations(a,"GET",null,suggestedLocationWidgetSuccess,suggestedLocationWidgetError,token)}
42function initGeoSuggestedLocation(){navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition(function(a){successSuggestedLocation(a)},function(a){switch(a.code){case a.PERMISSION_DENIED:console.log(langErrorPermissionDenied);break;case a.POSITION_UNAVAILABLE:console.log(langErrorPositionUnavailable);break;case a.PERMISSION_DENIED_TIMEOUT:console.log(langErrorPermissionTimeout);break;case a.UNKNOWN_ERROR:console.log(langErrorUnknown);break;case a.TIMEOUT:console.log(langErrorPermissionDenied)}},
43{enableHighAccuracy:!0,timeout:5E3}):error("Geo Location is not supported")}
44function successSuggestedLocation(a){var b=new google.maps.Geocoder,c=new google.maps.LatLng(a.coords.latitude,a.coords.longitude);b.geocode({latLng:c},function(d,g){g==google.maps.GeocoderStatus.OK?d[0]&&(g=ol.proj.transform([a.coords.longitude,a.coords.latitude],"EPSG:4326","EPSG:3857"),$(".suggest-active").find("input[type\x3dtext]").val(d[0].formatted_address),$(".suggest-active").find("input[type\x3dhidden]").eq(0).val(g[0]),$(".suggest-active").find("input[type\x3dhidden]").eq(1).val(g[1]),
45$(".form__field__datalist--suggested.jotmbe-suggested-location").remove()):console.log("Geocode was not successful for the following reason: "+g)})}function toggleButton(a){a?($(".button-ibus-search__direct").removeClass("button--disabled"),$(".button-ibus-search__direct").removeAttr("disabled")):($(".button-ibus-search__direct").addClass("button--disabled"),$(".button-ibus-search__direct").attr("disabled","disabled"))}
46function updateButtonState(){if("1"===$("#origen-tab").val()){var a;codiStop=(a=TJS.velocity.getCookie("JoTMBeKCSession")?$("#tmb-maps__jotmbe__parada").val():$("#tmb-ibus__codi").val())?a:""}else codiStop=(a=$("#tmb-maps__ibus__parada").val())&&"0"!==a?a:"";toggleButton(codiStop)};
47//     Underscore.js 1.8.3
48//     http://underscorejs.org
49//     (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
50//     Underscore may be freely distributed under the MIT license.
51(function(){function n(n){function t(t,r,e,u,i,o){for(;i>=0&&o>i;i+=n){var a=u?u[i]:i;e=r(e,t[a],a,t)}return e}return function(r,e,u,i){e=b(e,i,4);var o=!k(r)&&m.keys(r),a=(o||r).length,c=n>0?0:a-1;return arguments.length<3&&(u=r[o?o[c]:c],c+=n),t(r,e,u,o,c,a)}}function t(n){return function(t,r,e){r=x(r,e);for(var u=O(t),i=n>0?0:u-1;i>=0&&u>i;i+=n)if(r(t[i],i,t))return i;return-1}}function r(n,t,r){return function(e,u,i){var o=0,a=O(e);
51if("number"==typeof i)n>0?o=i>=0?i:Math.max(i+a,o):a=i>=0?Math.min(i+1,a):i+a+1;else if(r&&i&&a)return i=r(e,u),e[i]===u?i:-1;if(u!==u)return i=t(l.call(e,o,a),m.isNaN),i>=0?i+o:-1;for(i=n>0?o:a-1;i>=0&&a>i;i+=n)if(e[i]===u)return i;return-1}}function e(n,t){var r=I.length,e=n.constructor,u=m.isFunction(e)&&e.prototype||a,i="constructor";for(m.has(n,i)&&!m.contains(t,i)&&t.push(i);r--;)i=I[r],i in n&&n[i]!==u[i]&&!m.contains(t,i)&&t.push(i)}var u=this,i=u._,o=Array.prototype,a=Object.prototype,c=Function.prototype,f=o.push,l=o.slice,s=a.toString,p=a.hasOwnProperty,h=Array.isArray,v=Object.keys,g=c.bind,y=Object.create,d=function(){},m=function(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=m),exports._=m):u._=m,m.VERSION="1.8.3";var b=function(n,t,r){if(t===void 0)return n;switch(null==r?3:r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,i){return n.call(t,r,e,u,i)}}return function(){return n.apply(t,arguments)}},x=function(n,t,r){return null==n?m.identity:m.isFunction(n)?b(n,t,r):m.isObject(n)?m.matcher(n):m.property(n)};m.iteratee=function(n,t){return x(n,t,1/0)};var _=function(n,t){return function(r){var e=arguments.length;if(2>e||null==r)return r;for(var u=1;e>u;u++)for(var i=arguments[u],o=n(i),a=o.length,c=0;a>c;c++){var f=o[c];t&&r[f]!==void 0||(r[f]=i[f])}return r}},j=function(n){if(!m.isObject(n))return{};if(y)return y(n);d.prototype=n;var t=new d;return d.prototype=null,t},w=function(n){return function(t){return null==t?void 0:t[n]}},A=Math.pow(2,53)-1,O=w("length"),k=function(n){var t=O(n);return"number"==typeof t&&t>=0&&A>=t};m.each=m.forEach=function(n,t,r){t=b(t,r);var e,u;if(k(n))for(e=0,u=n.length;u>e;e++)t(n[e],e,n);else{var i=m.keys(n);for(e=0,u=i.length;u>e;e++)t(n[i[e]],i[e],n)}return n},m.map=m.collect=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=Array(u),o=0;u>o;o++){var a=e?e[o]:o;i[o]=t(n[a],a,n)}return i},m.reduce=m.foldl=m.inject=n(1),m.reduceRight=m.foldr=n(-1),m.find=m.detect=function(n,t,r){var e;return e=k(n)?m.findIndex(n,t,r):m.findKey(n,t,r),e!==void 0&&e!==-1?n[e]:void 0},m.filter=m.select=function(n,t,r){var e=[];return t=x(t,r),m.each(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e},m.reject=function(n,t,r){return m.filter(n,m.negate(x(t)),r)},m.every=m.all=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(!t(n[o],o,n))return!1}return!0},m.some=m.any=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(t(n[o],o,n))return!0}return!1},m.contains=m.includes=m.include=function(n,t,r,e){return k(n)||(n=m.values(n)),("number"!=typeof r||e)&&(r=0),m.indexOf(n,t,r)>=0},m.invoke=function(n,t){var r=l.call(arguments,2),e=m.isFunction(t);return m.map(n,function(n){var u=e?t:n[t];return null==u?u:u.apply(n,r)})},m.pluck=function(n,t){return m.map(n,m.property(t))},m.where=function(n,t){return m.filter(n,m.matcher(t))},m.findWhere=function(n,t){return m.find(n,m.matcher(t))},m.max=function(n,t,r){var e,u,i=-1/0,o=-1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],e>i&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(u>o||u===-1/0&&i===-1/0)&&(i=n,o=u)});return i},m.min=function(n,t,r){var e,u,i=1/0,o=1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],i>e&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(o>u||1/0===u&&1/0===i)&&(i=n,o=u)});return i},m.shuffle=function(n){for(var t,r=k(n)?n:m.values(n),e=r.length,u=Array(e),i=0;e>i;i++)t=m.random(0,i),t!==i&&(u[i]=u[t]),u[t]=r[i];return u},m.sample=function(n,t,r){return null==t||r?(k(n)||(n=m.values(n)),n[m.random(n.length-1)]):m.shuffle(n).slice(0,Math.max(0,t))},m.sortBy=function(n,t,r){return t=x(t,r),m.pluck(m.map(n,function(n,r,e){return{value:n,index:r,criteria:t(n,r,e)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index-t.index}),"value")};var F=function(n){return function(t,r,e){var u={};return r=x(r,e),m.each(t,function(e,i){var o=r(e,i,t);n(u,e,o)}),u}};m.groupBy=F(function(n,t,r){m.has(n,r)?n[r].push(t):n[r]=[t]}),m.indexBy=F(function(n,t,r){n[r]=t}),m.countBy=F(function(n,t,r){m.has(n,r)?n[r]++:n[r]=1}),m.toArray=function(n){return n?m.isArray(n)?l.call(n):k(n)?m.map(n,m.identity):m.values(n):[]},m.size=function(n){return null==n?0:k(n)?n.length:m.keys(n).length},m.partition=function(n,t,r){t=x(t,r);var e=[],u=[];return m.each(n,function(n,r,i){(t(n,r,i)?e:u).push(n)}),[e,u]},m.first=m.head=m.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:m.initial(n,n.length-t)},m.initial=function(n,t,r){return l.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},m.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:m.rest(n,Math.max(0,n.length-t))},m.rest=m.tail=m.drop=function(n,t,r){return l.call(n,null==t||r?1:t)},m.compact=function(n){return m.filter(n,m.identity)};var S=function(n,t,r,e){for(var u=[],i=0,o=e||0,a=O(n);a>o;o++){var c=n[o];if(k(c)&&(m.isArray(c)||m.isArguments(c))){t||(c=S(c,t,r));var f=0,l=c.length;for(u.length+=l;l>f;
vendor: 11,985 bytes, lines 51-78
51)u[i++]=c[f++]}else r||(u[i++]=c)}return u};m.flatten=function(n,t){return S(n,t,!1)},m.without=function(n){return m.difference(n,l.call(arguments,1))},m.uniq=m.unique=function(n,t,r,e){m.isBoolean(t)||(e=r,r=t,t=!1),null!=r&&(r=x(r,e));for(var u=[],i=[],o=0,a=O(n);a>o;o++){var c=n[o],f=r?r(c,o,n):c;t?(o&&i===f||u.push(c),i=f):r?m.contains(i,f)||(i.push(f),u.push(c)):m.contains(u,c)||u.push(c)}return u},m.union=function(){return m.uniq(S(arguments,!0,!0))},m.intersection=function(n){for(var t=[],r=arguments.length,e=0,u=O(n);u>e;e++){var i=n[e];if(!m.contains(t,i)){for(var o=1;r>o&&m.contains(arguments[o],i);o++);o===r&&t.push(i)}}return t},m.difference=function(n){var t=S(arguments,!0,!0,1);return m.filter(n,function(n){return!m.contains(t,n)})},m.zip=function(){return m.unzip(arguments)},m.unzip=function(n){for(var t=n&&m.max(n,O).length||0,r=Array(t),e=0;t>e;e++)r[e]=m.pluck(n,e);return r},m.object=function(n,t){for(var r={},e=0,u=O(n);u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},m.findIndex=t(1),m.findLastIndex=t(-1),m.sortedIndex=function(n,t,r,e){r=x(r,e,1);for(var u=r(t),i=0,o=O(n);o>i;){var a=Math.floor((i+o)/2);r(n[a])<u?i=a+1:o=a}return i},m.indexOf=r(1,m.findIndex,m.sortedIndex),m.lastIndexOf=r(-1,m.findLastIndex),m.range=function(n,t,r){null==t&&(t=n||0,n=0),r=r||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;e>i;i++,n+=r)u[i]=n;return u};var E=function(n,t,r,e,u){if(!(e instanceof t))return n.apply(r,u);var i=j(n.prototype),o=n.apply(i,u);return m.isObject(o)?o:i};m.bind=function(n,t){if(g&&n.bind===g)return g.apply(n,l.call(arguments,1));if(!m.isFunction(n))throw new TypeError("Bind must be called on a function");var r=l.call(arguments,2),e=function(){return E(n,e,t,this,r.concat(l.call(arguments)))};return e},m.partial=function(n){var t=l.call(arguments,1),r=function(){for(var e=0,u=t.length,i=Array(u),o=0;u>o;o++)i[o]=t[o]===m?arguments[e++]:t[o];for(;e<arguments.length;)i.push(arguments[e++]);return E(n,r,this,this,i)};return r},m.bindAll=function(n){var t,r,e=arguments.length;if(1>=e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=m.bind(n[r],n);return n},m.memoize=function(n,t){var r=function(e){var u=r.cache,i=""+(t?t.apply(this,arguments):e);return m.has(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return r.cache={},r},m.delay=function(n,t){var r=l.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},m.defer=m.partial(m.delay,m,1),m.throttle=function(n,t,r){var e,u,i,o=null,a=0;r||(r={});var c=function(){a=r.leading===!1?0:m.now(),o=null,i=n.apply(e,u),o||(e=u=null)};return function(){var f=m.now();a||r.leading!==!1||(a=f);var l=t-(f-a);return e=this,u=arguments,0>=l||l>t?(o&&(clearTimeout(o),o=null),a=f,i=n.apply(e,u),o||(e=u=null)):o||r.trailing===!1||(o=setTimeout(c,l)),i}},m.debounce=function(n,t,r){var e,u,i,o,a,c=function(){var f=m.now()-o;t>f&&f>=0?e=setTimeout(c,t-f):(e=null,r||(a=n.apply(i,u),e||(i=u=null)))};return function(){i=this,u=arguments,o=m.now();var f=r&&!e;return e||(e=setTimeout(c,t)),f&&(a=n.apply(i,u),i=u=null),a}},m.wrap=function(n,t){return m.partial(t,n)},m.negate=function(n){return function(){return!n.apply(this,arguments)}},m.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},m.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},m.before=function(n,t){var r;return function(){return--n>0&&(r=t.apply(this,arguments)),1>=n&&(t=null),r}},m.once=m.partial(m.before,2);var M=!{toString:null}.propertyIsEnumerable("toString"),I=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];m.keys=function(n){if(!m.isObject(n))return[];if(v)return v(n);var t=[];for(var r in n)m.has(n,r)&&t.push(r);return M&&e(n,t),t},m.allKeys=function(n){if(!m.isObject(n))return[];var t=[];for(var r in n)t.push(r);return M&&e(n,t),t},m.values=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},m.mapObject=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=u.length,o={},a=0;i>a;a++)e=u[a],o[e]=t(n[e],e,n);return o},m.pairs=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},m.invert=function(n){for(var t={},r=m.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},m.functions=m.methods=function(n){var t=[];for(var r in n)m.isFunction(n[r])&&t.push(r);return t.sort()},m.extend=_(m.allKeys),m.extendOwn=m.assign=_(m.keys),m.findKey=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=0,o=u.length;o>i;i++)if(e=u[i],t(n[e],e,n))return e},m.pick=function(n,t,r){var e,u,i={},o=n;if(null==o)return i;m.isFunction(t)?(u=m.allKeys(o),e=b(t,r)):(u=S(arguments,!1,!1,1),e=function(n,t,r){return t in r},o=Object(o));for(var a=0,c=u.length;c>a;a++){var f=u[a],l=o[f];e(l,f,o)&&(i[f]=l)}return i},m.omit=function(n,t,r){if(m.isFunction(t))t=m.negate(t);else{var e=m.map(S(arguments,!1,!1,1),String);t=function(n,t){return!m.contains(e,t)}}return m.pick(n,t,r)},m.defaults=_(m.allKeys,!0),m.create=function(n,t){var r=j(n);return t&&m.extendOwn(r,t),r},m.clone=function(n){return m.isObject(n)?m.isArray(n)?n.slice():m.extend({},n):n},m.tap=function(n,t){return t(n),n},m.isMatch=function(n,t){var r=m.keys(t),e=r.length;if(null==n)return!e;for(var u=Object(n),i=0;e>i;i++){var o=r[i];if(t[o]!==u[o]||!(o in u))return!1}return!0};var N=function(n,t,r,e){if(n===t)return 0!==n||1/n===1/t;if(null==n||null==t)return n===t;n instanceof m&&(n=n._wrapped),t instanceof m&&(t=t._wrapped);var u=s.call(n);if(u!==s.call(t))return!1;switch(u){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!==+n?+t!==+t:0===+n?1/+n===1/t:+n===+t;case"[object Date]":case"[object Boolean]":return+n===+t}var i="[object Array]"===u;if(!i){if("object"!=typeof n||"object"!=typeof t)return!1;var o=n.constructor,a=t.constructor;if(o!==a&&!(m.isFunction(o)&&o instanceof o&&m.isFunction(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)return!1}r=r||[],e=e||[];for(var c=r.length;c--;)if(r[c]===n)return e[c]===t;if(r.push(n),e.push(t),i){if(c=n.length,c!==t.length)return!1;for(;c--;)if(!N(n[c],t[c],r,e))return!1}else{var f,l=m.keys(n);if(c=l.length,m.keys(t).length!==c)return!1;for(;c--;)if(f=l[c],!m.has(t,f)||!N(n[f],t[f],r,e))return!1}return r.pop(),e.pop(),!0};m.isEqual=function(n,t){return N(n,t)},m.isEmpty=function(n){return null==n?!0:k(n)&&(m.isArray(n)||m.isString(n)||m.isArguments(n))?0===n.length:0===m.keys(n).length},m.isElement=function(n){return!(!n||1!==n.nodeType)},m.isArray=h||function(n){return"[object Array]"===s.call(n)},m.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},m.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(n){m["is"+n]=function(t){return s.call(t)==="[object "+n+"]"}}),m.isArguments(arguments)||(m.isArguments=function(n){return m.has(n,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(m.isFunction=function(n){return"function"==typeof n||!1}),m.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},m.isNaN=function(n){return m.isNumber(n)&&n!==+n},m.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===s.call(n)},m.isNull=function(n){return null===n},m.isUndefined=function(n){return n===void 0},m.has=function(n,t){return null!=n&&p.call(n,t)},m.noConflict=function(){return u._=i,this},m.identity=function(n){return n},m.constant=function(n){return function(){return n}},m.noop=function(){},m.property=w,m.propertyOf=function(n){return null==n?function(){}:function(t){return n[t]}},m.matcher=m.matches=function(n){return n=m.extendOwn({},n),function(t){return m.isMatch(t,n)}},m.times=function(n,t,r){var e=Array(Math.max(0,n));t=b(t,r,1);for(var u=0;n>u;u++)e[u]=t(u);return e},m.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},m.now=Date.now||function(){return(new Date).getTime()};var B={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},T=m.invert(B),R=function(n){var t=function(t){return n[t]},r="(?:"+m.keys(n).join("|")+")",e=RegExp(r),u=RegExp(r,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,t):n}};m.escape=R(B),m.unescape=R(T),m.result=function(n,t,r){var e=null==n?void 0:n[t];return e===void 0&&(e=r),m.isFunction(e)?e.call(n):e};var q=0;m.uniqueId=function(n){var t=++q+"";return n?n+t:t},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},D=/\\|'|\r|\n|\u2028|\u2029/g,L=function(n){return"\\"+z[n]};m.template=function(n,t,r){!t&&r&&(t=r),t=m.defaults({},t,m.templateSettings);var e=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,function(t,r,e,o,a){return i+=n.slice(u,a).replace(D,L),u=a+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var o=new Function(t.variable||"obj","_",i)}catch(a){throw a.source=i,a}var c=function(n){return o.call(this,n,m)},f=t.variable||"obj";return c.source="function("+f+"){\n"+i+"}",c},m.chain=function(n){var t=m(n);return t._chain=!0,t};var P=function(n,t){return n._chain?m(t).chain():t};m.mixin=function(n){m.each(m.functions(n),function(t){var r=m[t]=n[t];m.prototype[t]=function(){var n=[this._wrapped];return f.apply(n,arguments),P(this,r.apply(m,n))}})},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=o[n];m.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==n&&"splice"!==n||0!==r.length||delete r[0],P(this,r)}}),m.each(["concat","join","slice"],function(n){var t=o[n];m.prototype[n]=function(){return P(this,t.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},m.prototype.valueOf=m.prototype.toJSON=m.prototype.value,m.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return m})}).call(this);
52//# sourceMappingURL=underscore-min.map
53/*
54 jQuery JavaScript Library v3.6.0
55 https://jquery.com/
56
57 Includes Sizzle.js
58 https://sizzlejs.com/
59
60 Copyright OpenJS Foundation and other contributors
61 Released under the MIT license
62 https://jquery.org/license
63
64 Date: 2021-03-02T17:08Z
65 Sizzle CSS Selector Engine v2.3.6
66 https://sizzlejs.com/
67
68 Copyright JS Foundation and other contributors
69 Released under the MIT license
70 https://js.foundation/
71
72 Date: 2021-02-16
73 jQuery Migrate - v3.3.2 - 2020-11-17T23:22Z
74 Copyright OpenJS Foundation and other contributors
75*/
76(function(f,n){"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?module.exports=n():f.ol=n()})(this,function(){function f(a){return void 0!==a}function n(a,b,c){a=a.split(".");c=c||gb;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&f(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}}function A(){}function q(a){a.Ia=function(){return a.jg?a.jg:a.jg=new a}}function z(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";
77if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";
78return b}
78function t(a){return"array"==z(a)}function G(a){var b=z(a);return"array"==b||"object"==b&&"number"==typeof a.length}function D(a){return"string"==typeof a}function E(a){return"number"==typeof a}function w(a){return"function"==z(a)}function v(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function C(a){return a[Uo]||(a[Uo]=++Nt)}function K(a,b,c){return a.call.apply(a.bind,arguments)}function N(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,
792);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}function J(a,b,c){J=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?K:N;return J.apply(null,arguments)}function V(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}function I(a,b){function c(){}c.prototype=b.prototype;
80a.S=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Mo=function(d,e,g){for(var h=Array(arguments.length-2),m=2;m<arguments.length;m++)h[m-2]=arguments[m];return b.prototype[e].apply(d,h)}}function ia(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ia);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}function ra(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function qa(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,
811);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}function Za(a){if(!Ot.test(a))return a;-1!=a.indexOf("\x26")&&(a=a.replace(Pt,"\x26amp;"));-1!=a.indexOf("\x3c")&&(a=a.replace(Qt,"\x26lt;"));-1!=a.indexOf("\x3e")&&(a=a.replace(Rt,"\x26gt;"));-1!=a.indexOf('"')&&(a=a.replace(St,"\x26quot;"));-1!=a.indexOf("'")&&(a=a.replace(Tt,"\x26#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ut,"\x26#0;"));return a}function Na(a){a=f(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==
82b&&(b=a.length);b=Math.max(0,2-b);return Array(b+1).join("0")+a}function Mb(a,b){var c=0;a=vg(String(a)).split(".");b=vg(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var g=a[e]||"",h=b[e]||"",m=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var x=m.exec(g)||["","",""],F=r.exec(h)||["","",""];if(0==x[0].length&&0==F[0].length)break;c=fb(0==x[1].length?0:parseInt(x[1],10),0==F[1].length?0:parseInt(F[1],10))||fb(0==x[2].length,0==F[2].length)||fb(x[2],F[2])}while(0==
83c)}return c}function fb(a,b){return a<b?-1:a>b?1:0}function Nb(a,b){return of.indexOf.call(a,b,void 0)}function Oa(a,b,c){of.forEach.call(a,b,c)}function ke(a,b){return of.filter.call(a,b,void 0)}function Jc(a,b,c){return of.map.call(a,b,c)}function pf(a,b){return of.some.call(a,b,void 0)}function Ud(a,b){b=ce(a,b,void 0);return 0>b?null:D(a)?a.charAt(b):a[b]}function ce(a,b,c){for(var d=a.length,e=D(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return g;return-1}function Nc(a,b){return 0<=
84Nb(a,b)}function Ee(a,b){b=Nb(a,b);var c;(c=0<=b)&&of.splice.call(a,b,1);return c}function td(a){return of.concat.apply(of,arguments)}function Pe(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Tb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(G(d)){var e=a.length||0,g=d.length||0;a.length=e+g;for(var h=0;h<g;h++)a[e+h]=d[h]}else a.push(d)}}function de(a,b,c,d){of.splice.apply(a,Qe(arguments,1))}function Qe(a,b,c){return 2>=arguments.length?
85of.slice.call(a,b):of.slice.call(a,b,c)}function Bd(a,b){a.sort(b||bf)}function rd(a,b){if(!G(a)||!G(b)||a.length!=b.length)return!1;for(var c=a.length,d=ha,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0}function bf(a,b){return a>b?1:a<b?-1:0}function ha(a,b){return a===b}function pa(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(t(d))for(var e=0;e<d.length;e+=8192)for(var g=pa.apply(null,Qe(d,e,e+8192)),h=0;h<g.length;h++)b.push(g[h]);else b.push(d)}return b}function Pa(a){return-1!=
86nj.indexOf(a)}function ob(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function ic(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function ud(a){var b=0,c;for(c in a)b++;return b}function Vd(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Fd(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function ag(a,b){return b in a}function Dk(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function oj(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c}function le(a){for(var b in a)return!1;
87return!0}function bg(a){for(var b in a)delete a[b]}function Fe(a,b){b in a&&delete a[b]}function qc(a,b,c){return b in a?a[b]:c}function pj(a,b){var c=[];return b in a?a[b]:a[b]=c}function Gd(a){var b={},c;for(c in a)b[c]=a[c];return b}function vd(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var g=0;g<Vo.length;g++)c=Vo[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function ii(a){var b=arguments.length;if(1==b&&t(arguments[0]))return ii.apply(null,
88arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c}function xh(){var a=gb.document;return a?a.documentMode:void 0}function Cd(a){return Wo[a]||(Wo[a]=0<=Mb(Tl,a))}function Hd(a,b,c){return Math.min(Math.max(a,b),c)}function Gf(a,b){a%=b;return 0>a*b?a+b:a}function yh(a,b,c){return a+c*(b-a)}
88function me(a){return a*Math.PI/180}function Sc(a){return function(b){if(f(b))return[Hd(b[0],a[0],a[2]),Hd(b[1],a[1],a[3])]}}function Wb(a){return a}function cg(a,b,c){var d=a.length;if(a[0]<=b)return 0;
89if(!(b<=a[d-1]))if(0<c)for(c=1;c<d;++c){if(a[c]<b)return c-1}else if(0>c)for(c=1;c<d;++c){if(a[c]<=b)return c}else for(c=1;c<d;++c){if(a[c]==b)return c;if(a[c]<b)return a[c-1]-b<b-a[c]?c-1:c}return d-1}function rc(a){return function(b,c,d){if(f(b))return b=cg(a,b,d),b=Hd(b+c,0,a.length-1),a[b]}}function Ul(a,b,c){return function(d,e,g){if(f(d))return g=0<g?0:0>g?1:.5,d=Math.floor(Math.log(b/d)/Math.log(a)+g),e=Math.max(d+e,0),f(c)&&(e=Math.min(e,c)),b/Math.pow(a,e)}}function B(a){if(f(a))return 0}
90function dg(a,b){if(f(a))return a+b}function Rg(a){var b=2*Math.PI/a;return function(c,d){if(f(c))return Math.floor((c+d)/b+.5)*b}}function Ek(){var a=me(5);return function(b,c){if(f(b))return Math.abs(b+c)<=a?0:b+c}}function Fk(a,b,c){this.center=a;this.resolution=b;this.rotation=c}function Re(){0!=Xo&&(Yo[C(this)]=this);this.U=this.U;this.V=this.V}function eg(a,b){b=V(qf,b);a.U?b.call(void 0):(a.V||(a.V=[]),a.V.push(f(void 0)?J(b,void 0):b))}function qf(a){a&&"function"==typeof a.Yc&&a.Yc()}function tc(a,
91b){this.type=a;this.c=this.target=b;this.f=!1;this.rh=!0}function Gk(a){a.fb()}function Hf(a){a.preventDefault()}function qj(a){qj[" "](a);return a}function Se(a,b){tc.call(this,a?a.type:"");this.relatedTarget=this.c=this.target=null;this.q=this.e=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.l=this.d=this.a=this.i=!1;this.state=null;this.g=!1;this.b=null;a&&rf(this,a,b)}function rf(a,b,c){a.b=b;var d=a.type=b.type;a.target=b.target||b.srcElement;
92a.c=c;if(c=b.relatedTarget){if(sf){a:{try{qj(c.nodeName);var e=!0;break a}catch(g){}e=!1}e||(c=null)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.relatedTarget=c;Object.defineProperties?Object.defineProperties(a,{offsetX:{configurable:!0,enumerable:!0,get:a.Zf,set:a.bo},offsetY:{configurable:!0,enumerable:!0,get:a.$f,set:a.co}}):(a.offsetX=a.Zf(),a.offsetY=a.$f());a.clientX=void 0!==b.clientX?b.clientX:b.pageX;a.clientY=void 0!==b.clientY?b.clientY:b.pageY;a.screenX=b.screenX||
930;a.screenY=b.screenY||0;a.button=b.button;a.e=b.keyCode||0;a.q=b.charCode||("keypress"==d?b.keyCode:0);a.i=b.ctrlKey;a.a=b.altKey;a.d=b.shiftKey;a.l=b.metaKey;a.g=wg?b.metaKey:b.ctrlKey;a.state=b.state;b.defaultPrevented&&a.preventDefault()}function rj(a){return(Vt?0==a.b.button:"click"==a.type?!0:!!(a.b.button&Wt[0]))&&!(Wd&&wg&&a.i)}function Sg(a){return!(!a||!a[Zo])}function zh(a,b,c,d,e){this.$b=a;this.b=null;this.src=b;this.type=c;this.Qc=!!d;this.Sd=e;this.key=++Xt;this.Hc=this.vd=!1}function pb(a){a.Hc=
94!0;a.$b=null;a.b=null;a.src=null;a.Sd=null}function ee(a){this.src=a;this.b={};this.a=0}function sj(a,b){var c=b.type;if(!(c in a.b))return!1;var d=Ee(a.b[c],b);
94d&&(pb(b),0==a.b[c].length&&(delete a.b[c],a.a--));return d}function tj(a,b,c,d,e){a=a.b[b.toString()];b=-1;a&&(b=xg(a,c,d,e));return-1<b?a[b]:null}function uj(a,b,c){var d=f(b),e=d?b.toString():"",g=f(c);return ic(a.b,function(h){for(var m=0;m<h.length;++m)if(!(d&&h[m].type!=e||g&&h[m].Qc!=c))return!0;return!1})}function xg(a,b,c,d){for(var e=
950;e<a.length;++e){var g=a[e];if(!g.Hc&&g.$b==b&&g.Qc==!!c&&g.Sd==d)return e}return-1}function ma(a,b,c,d,e){if(t(b)){for(var g=0;g<b.length;g++)ma(a,b[g],c,d,e);return null}c=Ah(c);return Sg(a)?a.Ka(b,c,d,e):fg(a,b,c,!1,d,e)}function fg(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,m=Tg(a);m||(a[Vl]=m=new ee(a));c=m.add(b,c,d,e,g);if(c.b)return c;d=Ug();c.b=d;d.src=a;d.$b=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(Vg(b.toString()),d);$o++;return c}function Ug(){var a=
96cf,b=ap?function(c){return a.call(b.src,b.$b,c)}:function(c){c=a.call(b.src,b.$b,c);if(!c)return c};return b}function If(a,b,c,d,e){if(t(b)){for(var g=0;g<b.length;g++)If(a,b[g],c,d,e);return null}c=Ah(c);return Sg(a)?a.ab.add(String(b),c,!0,d,e):fg(a,b,c,!0,d,e)}function Ge(a,b,c,d,e){if(t(b))for(var g=0;g<b.length;g++)Ge(a,b[g],c,d,e);else c=Ah(c),Sg(a)?a.wf(b,c,d,e):(a&&=Tg(a))&&(b=tj(a,b,c,!!d,e))&&Hb(b)}function Hb(a){if(E(a)||!a||a.Hc)return!1;var b=a.src;if(Sg(b))return sj(b.ab,a);var c=a.type,
97d=a.b;b.removeEventListener?b.removeEventListener(c,d,a.Qc):b.detachEvent&&b.detachEvent(Vg(c),d);$o--;(c=Tg(b))?(sj(c,a),0==c.a&&(c.src=null,b[Vl]=null)):pb(a);return!0}function Vg(a){return a in Wl?Wl[a]:Wl[a]="on"+a}function vj(a,b,c,d){var e=!0;if(a=Tg(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.Qc==c&&!g.Hc&&(g=wj(g,d),e=e&&!1!==g)}return e}function wj(a,b){var c=a.$b,d=a.Sd||a.src;a.vd&&Hb(a);return c.call(d,b)}function cf(a,b){if(a.Hc)return!0;if(!ap){if(!b)a:{b=
98["window","event"];for(var c=gb,d;d=b.shift();)if(null!=c[d])c=c[d];else{b=null;break a}b=c}d=b;b=new Se(d,this);c=!0;if(!(0>d.keyCode||void 0!=d.returnValue)){a:{var e=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(h){e=!0}if(e||void 0==d.returnValue)d.returnValue=!0}d=[];for(e=b.c;e;e=e.parentNode)d.push(e);e=a.type;for(a=d.length-1;!b.f&&0<=a;a--){b.c=d[a];var g=vj(d[a],e,!0,b);c=c&&g}for(a=0;!b.f&&a<d.length;a++)b.c=d[a],g=vj(d[a],e,!1,b),c=c&&g}return c}return wj(a,new Se(b,this))}function Tg(a){a=
99a[Vl];return a instanceof ee?a:null}function Ah(a){if(w(a))return a;a[Xl]||(a[Xl]=function(b){return a.handleEvent(b)});return a[Xl]}function Tc(){Re.call(this);this.ab=new ee(this);this.rc=this;this.sa=null}function ji(a,b,c,d){b=a.ab.b[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,g=0;g<b.length;++g){var h=b[g];if(h&&!h.Hc&&h.Qc==c){var m=h.$b,r=h.Sd||h.src;h.vd&&sj(a.ab,h);e=!1!==m.call(r,d)&&e}}return e&&0!=d.rh}function Jf(a,b,c){return uj(a.ab,f(b)?String(b):void 0,c)}function Id(){Tc.call(this);
100this.b=0}function Wg(a){Hb(a)}function gg(a,b,c){tc.call(this,a);this.key=b;this.oldValue=c}function ub(a){Id.call(this);C(this);this.q={};f(a)&&this.t(a)}function Uc(a){return Yl.hasOwnProperty(a)?Yl[a]:Yl[a]="change:"+a}function xj(a,b,c){var d=Uc(b);a.dispatchEvent(new gg(d,b,c));a.dispatchEvent(new gg("propertychange",b,c))}function yj(a,b,c){f(c)||(c=[0,0]);c[0]=a[0]+2*b;c[1]=a[1]+2*b;return c}function Bh(a,b,c){f(c)||(c=[0,0]);c[0]=a[0]*b+.5|0;c[1]=a[1]*b+.5|0;return c}function Xd(a,b){if(t(a))return a;
101f(b)?(b[0]=a,b[1]=a):b=[a,a];return b}function Xg(a,b){a[0]+=b[0];a[1]+=b[1];return a}function ki(a,b){var c=a[0];a=a[1];var d=b[0];b=b[1];var e=d[0];d=d[1];var g=b[0];b=b[1];var h=g-e,m=b-d;c=0===h&&0===m?0:(h*(c-e)+m*(a-d))/(h*h+m*m||0);0>=c||(1<=c?(e=g,d=b):(e+=c*h,d+=c*m));return[e,d]}function yg(a,b){a=Gf(a+180,360)-180;var c=Math.abs(Math.round(3600*a));return Math.floor(c/3600)+"\u00b0 "+Math.floor(c/60%60)+"\u2032 "+Math.floor(c%60)+"\u2033 "+b.charAt(0>a?1:0)}function Ch(a,b,c){return f(a)?
102b.replace("{x}",a[0].toFixed(c)).replace("{y}",a[1].toFixed(c)):""}function Yg(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function Zg(a,b){var c=Math.cos(b);b=Math.sin(b);var d=a[1]*c+a[0]*b;a[0]=a[0]*c-a[1]*b;a[1]=d;return a}function tf(a,b){var c=a[0]-b[0];a=a[1]-b[1];return c*c+a*a}function li(a,b){return tf(a,ki(a,b))}function Hk(a,b){return Ch(a,"{x}, {y}",b)}function uf(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}function vf(a){this.length=
103a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}function Ik(a,b,c,d,e){a[0]=b;a[1]=c;a[2]=d;a[3]=e}function fd(){var a=Array(16);$g(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function Kf(){var a=Array(16);$g(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function $g(a,b,c,d,e,g,h,m,r,x,F,M,S,Y,O,P,Z){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=g;a[5]=h;a[6]=m;a[7]=r;a[8]=x;a[9]=F;a[10]=M;a[11]=S;a[12]=Y;a[13]=O;a[14]=P;a[15]=Z}function Dh(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];
104a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function wf(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}function zg(a,b,c){var d=a[0],e=a[1],g=a[2],h=a[3],m=a[4],r=a[5],x=a[6],F=a[7],M=a[8],S=a[9],Y=a[10],O=a[11],P=a[12],Z=a[13],ca=a[14];a=a[15];var ea=b[0],ja=b[1],ka=b[2],va=b[3],na=b[4],Ia=b[5],cb=b[6],wa=b[7],zb=b[8],Ub=b[9],Ib=b[10],ec=b[11],ze=b[12],wd=
105b[13],Pd=b[14];b=b[15];c[0]=d*ea+m*ja+M*ka+P*va;
105c[1]=e*ea+r*ja+S*ka+Z*va;c[2]=g*ea+x*ja+Y*ka+ca*va;c[3]=h*ea+F*ja+O*ka+a*va;c[4]=d*na+m*Ia+M*cb+P*wa;c[5]=e*na+r*Ia+S*cb+Z*wa;c[6]=g*na+x*Ia+Y*cb+ca*wa;c[7]=h*na+F*Ia+O*cb+a*wa;c[8]=d*zb+m*Ub+M*Ib+P*ec;c[9]=e*zb+r*Ub+S*Ib+Z*ec;c[10]=g*zb+x*Ub+Y*Ib+ca*ec;c[11]=h*zb+F*Ub+O*Ib+a*ec;c[12]=d*ze+m*wd+M*Pd+P*b;c[13]=e*ze+r*wd+S*Pd+Z*b;c[14]=g*ze+x*wd+Y*Pd+ca*b;c[15]=h*ze+F*wd+O*Pd+a*b}function mi(a,b){var c=a[0],d=a[1],e=a[2],g=a[3],h=a[4],m=a[5],r=a[6],x=
106a[7],F=a[8],M=a[9],S=a[10],Y=a[11],O=a[12],P=a[13],Z=a[14];a=a[15];var ca=c*m-d*h,ea=c*r-e*h,ja=c*x-g*h,ka=d*r-e*m,va=d*x-g*m,na=e*x-g*r,Ia=F*P-M*O,cb=F*Z-S*O,wa=F*a-Y*O,zb=M*Z-S*P,Ub=M*a-Y*P,Ib=S*a-Y*Z,ec=ca*Ib-ea*Ub+ja*zb+ka*wa-va*cb+na*Ia;0!=ec&&(ec=1/ec,b[0]=(m*Ib-r*Ub+x*zb)*ec,b[1]=(-d*Ib+e*Ub-g*zb)*ec,b[2]=(P*na-Z*va+a*ka)*ec,b[3]=(-M*na+S*va-Y*ka)*ec,b[4]=(-h*Ib+r*wa-x*cb)*ec,b[5]=(c*Ib-e*wa+g*cb)*ec,b[6]=(-O*na+Z*ja-a*ea)*ec,b[7]=(F*na-S*ja+Y*ea)*ec,b[8]=(h*Ub-m*wa+x*Ia)*ec,b[9]=(-c*Ub+d*
107wa-g*Ia)*ec,b[10]=(O*va-P*ja+a*ca)*ec,b[11]=(-F*va+M*ja-Y*ca)*ec,b[12]=(-h*zb+m*cb-r*Ia)*ec,b[13]=(c*zb-d*cb+e*Ia)*ec,b[14]=(-O*ka+P*ea-Z*ca)*ec,b[15]=(F*ka-M*ea+S*ca)*ec)}function xf(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],g=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=g}function Qf(a,b,c){$g(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}function ni(a,b){var c=a[0],
108d=a[1],e=a[2],g=a[3],h=a[4],m=a[5],r=a[6],x=a[7],F=Math.cos(b);b=Math.sin(b);a[0]=c*F+h*b;a[1]=d*F+m*b;a[2]=e*F+r*b;a[3]=g*F+x*b;a[4]=c*-b+h*F;a[5]=d*-b+m*F;a[6]=e*-b+r*F;a[7]=g*-b+x*F}function ne(a){for(var b=Yd(),c=0,d=a.length;c<d;++c)Jk(b,a[c]);return b}function Kk(a,b,c){var d=Math.min.apply(null,a),e=Math.min.apply(null,b);a=Math.max.apply(null,a);b=Math.max.apply(null,b);return He(d,e,a,b,c)}function yf(a,b,c){return f(c)?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+
109b,a[3]+b]}function zj(a,b){return f(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function hg(a,b,c){b=b<a[0]?a[0]-b:a[2]<b?b-a[2]:0;a=c<a[1]?a[1]-c:a[3]<c?c-a[3]:0;return b*b+a*a}function qe(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}function Eh(a,b,c){return a[0]<=b&&b<=a[2]&&a[1]<=c&&c<=a[3]}function Fh(a,b){var c=a[1],d=a[2],e=a[3],g=b[0];b=b[1];var h=0;g<a[0]?h|=16:g>d&&(h|=4);b<c?h|=8:b>e&&(h|=2);0===h&&(h=1);return h}function Yd(){return[Infinity,Infinity,-Infinity,
110-Infinity]}function He(a,b,c,d,e){return f(e)?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function oi(a,b){var c=a[0];a=a[1];return He(c,a,c,a,b)}function Gh(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function Lk(a,b){b[0]<a[0]&&(a[0]=b[0]);b[2]>a[2]&&(a[2]=b[2]);b[1]<a[1]&&(a[1]=b[1]);b[3]>a[3]&&(a[3]=b[3]);return a}function Jk(a,b){b[0]<a[0]&&(a[0]=b[0]);b[0]>a[2]&&(a[2]=b[0]);b[1]<a[1]&&(a[1]=b[1]);b[1]>a[3]&&(a[3]=b[1])}function Aj(a,b,c,d,e){for(;c<d;c+=e){var g=a,h=b[c],m=b[c+
1111];g[0]=Math.min(g[0],h);g[1]=Math.min(g[1],m);g[2]=Math.max(g[2],h);g[3]=Math.max(g[3],m)}return a}function k(a,b){var c;return(c=b.call(void 0,p(a)))||(c=b.call(void 0,u(a)))||(c=b.call(void 0,X(a)))?c:(c=b.call(void 0,U(a)))?c:!1}function p(a){return[a[0],a[1]]}function u(a){return[a[2],a[1]]}function y(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}function H(a,b){var c;"bottom-left"===b?c=p(a):"bottom-right"===b?c=u(a):"top-left"===b?c=U(a):"top-right"===b&&(c=X(a));return c}function L(a,b,c,d){var e=
112b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);c=Math.sin(c);e=[-e,-e,e,e];d=[-d,d,-d,d];var g;for(g=0;4>g;++g){var h=e[g];var m=d[g];e[g]=a[0]+h*b-m*c;d[g]=a[1]+h*c+m*b}return Kk(e,d,void 0)}function R(a){return a[3]-a[1]}function aa(a,b,c){c=f(c)?c:Yd();ta(a,b)&&(c[0]=a[0]>b[0]?a[0]:b[0],c[1]=a[1]>b[1]?a[1]:b[1],c[2]=a[2]<b[2]?a[2]:b[2],c[3]=a[3]<b[3]?a[3]:b[3]);return c}function U(a){return[a[0],a[3]]}function X(a){return[a[2],a[3]]}function la(a){return a[2]-a[0]}function ta(a,b){return a[0]<=b[2]&&a[2]>=
113b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Ja(a){return a[2]<a[0]||a[3]<a[1]}function Vc(a,b){var c=(a[2]-a[0])/2*(b-1);b=(a[3]-a[1])/2*(b-1);a[0]-=c;a[2]+=c;a[1]-=b;a[3]+=b}function vb(a,b,c){a=[a[0],a[1],a[0],a[3],a[2],a[1],a[2],a[3]];b(a,a,2);return Kk([a[0],a[2],a[4],a[6]],[a[1],a[3],a[5],a[7]],c)}
113function nd(a){this.radius=a}function Cb(a){this.b=a.code;this.a=a.units;this.f=f(a.extent)?a.extent:null;this.g=f(a.worldExtent)?a.worldExtent:null;this.d=f(a.axisOrientation)?a.axisOrientation:"enu";this.c=
114(this.e=f(a.global)?a.global:!1)&&null!==this.f;this.q=f(a.getPointResolution)?a.getPointResolution:this.rj;this.i=null;if("function"==typeof proj4){var b=a.code,c=proj4.defs(b);if(f(c)){f(c.axis)&&!f(a.axisOrientation)&&(this.d=c.axis);f(a.units)||(a=c.units,!f(a)&&f(c.to_meter)&&(a=c.to_meter.toString(),Rf[a]=c.to_meter),this.a=a);a=Zl;var d;for(d in a){var e=proj4.defs(d);f(e)&&(a=Ka(d),e===c?Ie([a,this]):(e=proj4(d,b),Je(a,this,e.forward,e.inverse)))}}}}function Ie(a){fe(a);Oa(a,function(b){Oa(a,
115function(c){b!==c&&Oc(b,c,Ag)})})}function Ab(){var a=bp,b=Yt,c=Zt;Oa(cp,function(d){Oa(a,function(e){Oc(d,e,b);Oc(e,d,c)})})}function Jd(a){Zl[a.b]=a;Oc(a,a,Ag)}function fe(a){var b=[];Oa(a,function(c){b.push(Jd(c))})}function ac(a){return null!=a?D(a)?Ka(a):a:Ka("EPSG:3857")}function Oc(a,b,c){a=a.b;b=b.b;a in pi||(pi[a]={});pi[a][b]=c}function Je(a,b,c,d){a=Ka(a);b=Ka(b);Oc(a,b,Ob(c));Oc(b,a,Ob(d))}function Ob(a){return function(b,c,d){var e=b.length;d=f(d)?d:2;c=f(c)?c:Array(e);var g;for(g=0;g<
116e;g+=d){var h=a([b[g],b[g+1]]);c[g]=h[0];c[g+1]=h[1];for(h=d-1;2<=h;--h)c[g+h]=b[g+h]}return c}}function Ka(a){var b;a instanceof Cb?b=a:D(a)?(b=Zl[a],!f(b)&&"function"==typeof proj4&&f(proj4.defs(a))&&(b=new Cb({code:a}),Jd(b))):b=null;return b}function sd(a,b){return a===b?!0:a.b===b.b?!0:a.a!=b.a?!1:Qd(a,b)===Ag}function Wc(a,b){a=Ka(a);b=Ka(b);return Qd(a,b)}function Qd(a,b){a=a.b;b=b.b;var c;a in pi&&b in pi[a]&&(c=pi[a][b]);f(c)||(c=ah);return c}function ah(a,b){if(f(b)&&a!==b){for(var c=0,
117d=a.length;c<d;++c)b[c]=a[c];a=b}return a}function Ag(a,b){if(f(b)){var c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c}function od(a,b,c){return Wc(b,c)(a,void 0,a.length)}function Te(a,b,c){b=Wc(b,c);return vb(a,b)}function Ma(a){ub.call(this);a=f(a)?a:{};this.c=[0,0];var b={};b.center=f(a.center)?a.center:null;this.e=ac(a.projection);var c=f(a.minZoom)?a.minZoom:0;var d=f(a.maxZoom)?a.maxZoom:28;var e=f(a.zoomFactor)?a.zoomFactor:2;if(f(a.resolutions)){d=a.resolutions;var g=
118d[0];var h=d[d.length-1];d=rc(d)}else{g=ac(a.projection);h=g.G();var m=(null===h?360*Rf.degrees/Rf[g.a]:Math.max(la(h),R(h)))/256/Math.pow(2,0),r=m/Math.pow(2,28);g=a.maxResolution;f(g)?c=0:g=m/Math.pow(e,c);h=a.minResolution;f(h)||(h=f(a.maxZoom)?f(a.maxResolution)?g/Math.pow(e,d):m/Math.pow(e,d):r);d=c+Math.floor(Math.log(g/h)/Math.log(e));h=g/Math.pow(e,d-c);d=Ul(e,g,d-c)}this.a=g;this.g=h;this.d=c;c=f(a.extent)?Sc(a.extent):Wb;(f(a.enableRotation)?a.enableRotation:1)?(g=a.constrainRotation,g=
119f(g)&&!0!==g?!1===g?dg:E(g)?Rg(g):dg:Ek()):g=B;this.f=new Fk(c,d,g);f(a.resolution)?b.resolution=a.resolution:f(a.zoom)&&(b.resolution=this.constrainResolution(this.a,a.zoom-this.d));b.rotation=f(a.rotation)?a.rotation:0;this.t(b)}function Bj(a,b){return Math.max(la(a)/b[0],R(a)/b[1])}function Mk(a){var b=a.a,c=Math.log(b/a.g)/Math.log(2);return function(d){return b/Math.pow(2,d*c)}}function Nk(a){var b=a.a,c=Math.log(b/a.g)/Math.log(2);return function(d){return Math.log(b/d)/Math.log(2)/c}}function bh(a){var b=
120a.Ca(),c=a.e,d=a.ya();a=a.Da();return{center:b.slice(),projection:f(c)?c:null,resolution:d,rotation:a}}function Hh(a){return null!=a.Ca()&&f(a.ya())}function Ke(a,b){a.c[1]+=b}function Sf(a){return 1-Math.pow(1-a,3)}function df(a){return 3*a*a-2*a*a*a}function Ok(a){return a}function Pk(a){return.5>a?df(2*a):1-df(2*(a-.5))}function Ue(a){var b=a.source,c=f(a.start)?a.start:Lf(),d=b[0],e=b[1],g=f(a.duration)?a.duration:1E3,h=f(a.easing)?a.easing:df;return function(m,r){if(r.time<c)return r.animate=
121!0,r.viewHints[0]+=1,!0;if(r.time<c+g){m=1-h((r.time-c)/g);var x=d-r.viewState.center[0],F=e-r.viewState.center[1];r.animate=!0;r.viewState.center[0]+=m*x;r.viewState.center[1]+=m*F;r.viewHints[0]+=1;return!0}return!1}}function qi(a){var b=f(a.rotation)?a.rotation:0,c=f(a.start)?a.start:Lf(),d=f(a.duration)?a.duration:1E3,e=f(a.easing)?a.easing:df,g=f(a.anchor)?a.anchor:null;return function(h,m){if(m.time<c)return m.animate=!0,m.viewHints[0]+=1,!0;if(m.time<c+d){h=1-e((m.time-c)/d);h*=b-m.viewState.rotation;
122m.animate=!0;m.viewState.rotation+=h;if(null!==g){var r=m.viewState.center;r[0]-=g[0];r[1]-=g[1];Zg(r,h);Xg(r,g)}m.viewHints[0]+=1;return!0}return!1}}function zf(a){var b=a.resolution,c=f(a.start)?a.start:Lf(),d=f(a.duration)?a.duration:1E3,e=f(a.easing)?a.easing:df;return function(g,h){if(h.time<c)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<c+d){g=1-e((h.time-c)/d);var m=b-h.viewState.resolution;h.animate=!0;h.viewState.resolution+=g*m;h.viewHints[0]+=1;return!0}return!1}}function ri(a,b,
123c,d){return f(d)?(d[0]=a,d[1]=b,d[2]=c,d):[a,b,c]}function Ih(a,b,c){return a+"/"+b+"/"+c}function ig(a){return Ih(a[0],a[1],a[2])}
123function jg(a,b,c,d){this.b=a;this.d=b;this.c=c;this.a=d}function si(a,b,c,d,e){return f(e)?(e.b=a,e.d=b,e.c=c,e.a=d,e):new jg(a,b,c,d)}function Cj(a,b,c){return a.b<=b&&b<=a.d&&a.c<=c&&c<=a.a}function $l(a,b){return a.b==b.b&&a.c==b.c&&a.d==b.d&&a.a==b.a}function ef(a){return a.d-a.b+1}function Dj(a,b){return a.b<=b.d&&a.d>=b.b&&a.c<=b.a&&a.a>=b.c}function ff(a){this.a=
124a.html;this.b=f(a.tileRanges)?a.tileRanges:null}function Tf(a,b,c){tc.call(this,a,c);this.element=b}function Sa(a){ub.call(this);this.a=f(a)?a:[];Ej(this)}function Ej(a){a.set("length",a.a.length)}function ti(a){return t(a)?a:$t(a)}function pd(a){if(!D(a)){var b=a[0];b!=(b|0)&&(b=b+.5|0);var c=a[1];c!=(c|0)&&(c=c+.5|0);var d=a[2];d!=(d|0)&&(d=d+.5|0);a="rgba("+b+","+c+","+d+","+a[3]+")"}return a}function Mf(a,b){b=f(b)?b:[];b[0]=Hd(a[0]+.5|0,0,255);b[1]=Hd(a[1]+.5|0,0,255);b[2]=Hd(a[2]+.5|0,0,255);
125b[3]=Hd(a[3],0,1);return b}function Fj(){this.g=fd();this.a=void 0;this.b=fd();this.d=void 0;this.c=fd();this.f=void 0;this.e=fd();this.q=void 0;this.i=fd()}function Gj(a,b,c,d,e){var g=!1;f(b)&&b!==a.a&&(g=a.b,wf(g),g[12]=b,g[13]=b,g[14]=b,g[15]=1,a.a=b,g=!0);if(f(c)&&c!==a.d){g=a.c;wf(g);g[0]=c;g[5]=c;g[10]=c;g[15]=1;var h=-.5*c+.5;g[12]=h;g[13]=h;g[14]=h;g[15]=1;a.d=c;g=!0}f(d)&&d!==a.f&&(g=Math.cos(d),h=Math.sin(d),$g(a.e,.213+.787*g-.213*h,.213-.213*g+.143*h,.213-.213*g-.787*h,0,.715-.715*g-
126.715*h,.715+.285*g+.14*h,.715-.715*g+.715*h,0,.072-.072*g+.928*h,.072-.072*g-.283*h,.072+.928*g+.072*h,0,0,0,0,1),a.f=d,g=!0);f(e)&&e!==a.q&&($g(a.i,.213+.787*e,.213-.213*e,.213-.213*e,0,.715-.715*e,.715+.285*e,.715-.715*e,0,.072-.072*e,.072-.072*e,.072+.928*e,0,0,0,0,1),a.q=e,g=!0);g&&(g=a.g,wf(g),f(c)&&zg(g,a.c,g),f(b)&&zg(g,a.b,g),f(e)&&zg(g,a.i,g),f(d)&&zg(g,a.e,g));return a.g}function Ve(a,b){this.x=f(a)?a:0;this.y=f(b)?b:0}function Af(a,b){this.width=a;this.height=b}function Fc(a){return a?
127new xa(Da(a)):au||=new xa}function Hj(a){var b=document;return D(a)?b.getElementById(a):a}function kg(a,b){ob(b,function(c,d){"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:d in dp?a.setAttribute(dp[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})}function ui(a){a=a.document.documentElement;return new Af(a.clientWidth,a.clientHeight)}function db(a,b,c){var d=arguments,e=document,g=d[0],h=d[1];if(!bu&&h&&(h.name||h.type)){g=["\x3c",
128g];
128h.name&&g.push(' name\x3d"',Za(h.name),'"');if(h.type){g.push(' type\x3d"',Za(h.type),'"');var m={};vd(m,h);delete m.type;h=m}g.push("\x3e");g=g.join("")}g=e.createElement(g);h&&(D(h)?g.className=h:t(h)?g.className=h.join(" "):kg(g,h));2<d.length&&Jh(e,g,d,2);return g}function Jh(a,b,c,d){function e(h){h&&b.appendChild(D(h)?a.createTextNode(h):h)}for(;d<c.length;d++){var g=c[d];!G(g)||v(g)&&0<g.nodeType?e(g):Oa(xb(g)?Pe(g):g,e)}}function Kd(a){return document.createElement(a)}function Qk(a,b){Jh(Da(a),
129a,arguments,1)}function Q(a){for(var b;b=a.firstChild;)a.removeChild(b)}function W(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function T(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function fa(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function oa(a){if(void 0!=a.firstElementChild)a=a.firstElementChild;else for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a}function za(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==
130b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function Da(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function xb(a){if(a&&"number"==typeof a.length){if(v(a))return"function"==typeof a.item||"string"==typeof a.item;if(w(a))return"function"==typeof a.item}return!1}
130function xa(a){this.b=a||gb.document||document}function kb(){return!0}function Xb(a){var b=a.b;a=Wd?b.body||b.documentElement:b.documentElement;b=b.parentWindow||b.defaultView;return jc&&Cd("10")&&
131b.pageYOffset!=a.scrollTop?new Ve(a.scrollLeft,a.scrollTop):new Ve(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}function wb(a){if(a.classList)return a.classList;a=a.className;return D(a)&&a.match(/\S+/g)||[]}function Pc(a,b){return a.classList?a.classList.contains(b):Nc(wb(a),b)}function Xc(a,b){a.classList?a.classList.add(b):Pc(a,b)||(a.className+=0<a.className.length?" "+b:b)}function xd(a,b){a.classList?a.classList.remove(b):Pc(a,b)&&(a.className=ke(wb(a),function(c){return c!=b}).join(" "))}
132function yb(a,b){Pc(a,b)?xd(a,b):Xc(a,b)}function re(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}function kd(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}function gf(a,b){var c=Da(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function We(a,b){return gf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function vi(a,b,c){var d;b instanceof Ve?(d=b.x,b=b.y):(d=b,b=c);
133a.style.left=ep(d);a.style.top=ep(b)}function am(a){try{var b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}jc&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}function Ij(a){if(1==a.nodeType)return a=am(a),new Ve(a.left,a.top);var b=w(a.Qi),c=a;a.targetTouches&&a.targetTouches.length?c=a.targetTouches[0]:b&&a.b.targetTouches&&a.b.targetTouches.length&&(c=a.b.targetTouches[0]);
134return new Ve(c.clientX,c.clientY)}function ep(a){"number"==typeof a&&(a+="px");return a}function bm(a){var b=cu;if("none"!=We(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=g;c.visibility=e;return a}function cu(a){var b=a.offsetWidth,c=a.offsetHeight,d=Wd&&!b&&!c;return f(b)&&!d||!a.getBoundingClientRect?new Af(b,c):(a=am(a),new Af(a.right-a.left,a.bottom-a.top))}function ge(a,
135b){a.style.display=b?"":"none"}function Rk(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],g=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=g;return b}function Sk(a,b){return(b=a.currentStyle?a.currentStyle[b]:null)?Rk(a,b,"left","pixelLeft"):0}function cm(a,b){if(jc){var c=Sk(a,b+"Left"),d=Sk(a,b+"Right"),e=Sk(a,b+"Top");a=Sk(a,b+"Bottom");return new re(e,d,a,c)}c=gf(a,b+"Left");d=gf(a,b+"Right");e=gf(a,b+"Top");
136a=gf(a,b+"Bottom");return new re(parseFloat(e),parseFloat(d),parseFloat(a),parseFloat(c))}function Tk(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;b=a.currentStyle?a.currentStyle[b+"Width"]:null;return b in fp?fp[b]:Rk(a,b,"left","pixelLeft")}function gp(a){if(jc&&!(jc&&9<=wi)){var b=Tk(a,"borderLeft"),c=Tk(a,"borderRight"),d=Tk(a,"borderTop");a=Tk(a,"borderBottom");return new re(d,c,a,b)}b=gf(a,"borderLeftWidth");c=gf(a,"borderRightWidth");d=gf(a,"borderTopWidth");a=gf(a,
137"borderBottomWidth");return new re(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}function Bg(a,b,c){tc.call(this,a);this.map=b;this.frameState=f(c)?c:null}function qb(a){ub.call(this);this.element=f(a.element)?a.element:null;this.a=this.L=null;this.l=[];this.render=f(a.render)?a.render:A;f(a.target)&&this.c(a.target)}function Uk(){this.c=0;this.d={};this.a=this.b=null}function lg(a,b){return a.d.hasOwnProperty(b)}function hp(a){Uk.call(this);this.e=f(a)?a:2048}function ip(a){return a.Tb()>
138a.e}function Uf(a,b){Tc.call(this);this.b=a;this.state=b}function Jj(a){a.dispatchEvent("change")}function fc(a){ub.call(this);this.f=Ka(a.projection);this.d=f(a.attributions)?a.attributions:null;this.L=a.logo;this.o=f(a.state)?a.state:"ready";this.H=a.wrapX}function xi(a,b){a.o=b;a.k()}function Kj(a){return function(){return a}}function dm(a){return a}function du(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}function eu(a){var b=arguments,c=b.length;
139return function(){for(var d,e=0;e<c;e++)d=b[e].apply(this,arguments);return d}}function jp(a){var b=arguments,c=b.length;return function(){for(var d=0;d<c;d++)if(!b[d].apply(this,arguments))return!1;return!0}}function yd(a){this.minZoom=f(a.minZoom)?a.minZoom:0;
139this.b=a.resolutions;this.maxZoom=this.b.length-1;this.f=f(a.origin)?a.origin:null;this.i=null;f(a.origins)&&(this.i=a.origins);this.c=null;f(a.tileSizes)&&(this.c=a.tileSizes);this.g=f(a.tileSize)?a.tileSize:null===this.c?256:null;this.a=
140[0,0];this.d=null;f(a.widths)&&(this.d=a.widths)}function Vk(a,b,c,d){Wk(a,b[0],b[1],c,!1,yi);var e=yi[1],g=yi[2];Wk(a,b[2],b[3],c,!0,yi);return si(e,yi[1],g,yi[2],d)}function Xe(a,b,c,d){return Vk(a,b,a.ma(c),d)}function kp(a,b){var c=a.Mb(b[0]),d=a.ma(b[0]);a=Xd(a.na(b[0]),a.a);return[c[0]+(b[1]+.5)*a[0]*d,c[1]+(b[2]+.5)*a[1]*d]}function Bf(a,b,c){var d=a.Mb(b[0]),e=a.ma(b[0]);a=Xd(a.na(b[0]),a.a);var g=d[0]+b[1]*a[0]*e;b=d[1]+b[2]*a[1]*e;return He(g,b,g+a[0]*e,b+a[1]*e,c)}function Wk(a,b,c,d,e,
141g){var h=Kh(a,d),m=d/a.ma(h),r=a.Mb(h);a=Xd(a.na(h),a.a);b=m*(b-r[0])/(d*a[0]);c=m*(c-r[1])/(d*a[1]);e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));return ri(h,b,c,g)}function em(a,b,c){c=Xe(a,zi(c),b);a=lp(a,b);f(a)||(a=ef(c));return si(0,a-1,0,c.a-c.c+1,void 0)}function lp(a,b){if(null!==a.d)return a.d[b]}function Kh(a,b){b=cg(a.b,b,0);return Hd(b,a.minZoom,a.maxZoom)}function mp(a){var b=a.i;if(null===b){b=zi(a);for(var c=f(void 0)?Xd(void 0):Xd(256),d=f(void 0)?void 0:
142"bottom-left",e=np(b,void 0,Xd(c)),g=Array(e.length),h=la(b),m=e.length-1;0<=m;--m)g[m]=h/c[0]/e[m];b=new yd({origin:H(b,d),resolutions:e,tileSize:f(void 0)?void 0:256,widths:g});a.i=b}return b}function np(a,b,c){b=f(b)?b:42;var d=R(a);a=la(a);c=f(c)?c:Xd(256);c=Math.max(a/c[0],d/c[1]);b+=1;d=Array(b);for(a=0;a<b;++a)d[a]=c/Math.pow(2,a);return d}function zi(a){a=Ka(a);var b=a.G();null===b&&(a=180*Rf.degrees/a.Gd(),b=He(-a,-a,a,a));return b}function Yb(a){fc.call(this,{attributions:a.attributions,
143extent:a.extent,logo:a.logo,projection:a.projection,state:a.state,wrapX:a.wrapX});this.X=f(a.opaque)?a.opaque:!1;this.ba=f(a.tilePixelRatio)?a.tilePixelRatio:1;this.tileGrid=f(a.tileGrid)?a.tileGrid:null;this.a=new hp;this.c=[0,0]}function op(a,b,c,d){for(var e=!0,g,h,m=c.b;m<=c.d;++m)for(var r=c.c;r<=c.a;++r)g=a.bb(b,m,r),h=!1,lg(a.a,g)&&(g=a.a.get(g),(h=2===g.state)&&(h=!1!==d(g))),h||(e=!1);return e}function Cg(a,b){return null===a.tileGrid?mp(b):a.tileGrid}function Ai(a,b){tc.call(this,a);this.tile=
144b}function bc(a){a=f(a)?a:{};this.p=Kd("UL");this.o=Kd("LI");this.p.appendChild(this.o);ge(this.o,!1);this.d=f(a.collapsed)?a.collapsed:!0;(this.g=f(a.collapsible)?a.collapsible:!0)||(this.d=!1);var b=f(a.className)?a.className:"ol-attribution",c=f(a.tipLabel)?a.tipLabel:"Attributions",d=f(a.collapseLabel)?a.collapseLabel:"\u00bb";this.H=D(d)?db("SPAN",{},d):d;d=f(a.label)?a.label:"i";this.J=D(d)?db("SPAN",{},d):d;c=db("BUTTON",{type:"button",title:c},this.g&&!this.d?this.H:this.J);ma(c,"click",this.gl,
145!1,this);ma(c,["mouseout",Lh],function(){this.blur()},!1);b=db("DIV",b+" ol-unselectable ol-control"+(this.d&&this.g?" ol-collapsed":"")+(this.g?"":" ol-uncollapsible"),this.p,c);qb.call(this,{element:b,render:f(a.render)?a.render:pp,target:a.target});this.n=!0;this.i={};this.f={};this.N={}}function pp(a){a=a.frameState;if(null===a)this.n&&(ge(this.element,!1),this.n=!1);else{var b,c,d,e,g,h,m,r=a.layerStatesArray,x=Gd(a.attributions),F={},M=a.viewState.projection;var S=0;for(b=r.length;S<b;S++)if(d=
146r[S].layer.da(),null!==d&&(m=C(d).toString(),h=d.d,null!==h)){var Y=0;for(c=h.length;Y<c;Y++)if(e=h[Y],g=C(e).toString(),!(g in x)){var O=a.usedTiles[m];if(f(O)){var P=Cg(d,M);a:{var Z=e;var ca=M;if(null===Z.b)Z=!0;else{var ea,ja=void 0;for(ja in O)if(ja in Z.b){var ka=O[ja];var va=0;for(ea=Z.b[ja].length;va<ea;++va){var na=Z.b[ja][va];if(Dj(na,ka)){Z=!0;break a}var Ia=em(P,parseInt(ja,10),ca),cb=ef(Ia);if(ka.b<Ia.b||ka.d>Ia.d)if(Dj(na,new jg(Gf(ka.b,cb),Gf(ka.d,cb),ka.c,ka.a))||ef(ka)>cb&&Dj(na,
147Ia)){Z=!0;break a}}}Z=!1}}}else Z=!1;Z?(g in F&&delete F[g],x[g]=e):F[g]=e}}b=[x,F];S=b[0];b=b[1];for(var wa in this.i)wa in S?(this.f[wa]||(ge(this.i[wa],!0),this.f[wa]=!0),delete S[wa]):wa in b?(this.f[wa]&&(ge(this.i[wa],!1),delete this.f[wa]),delete b[wa]):(T(this.i[wa]),delete this.i[wa],delete this.f[wa]);for(wa in S)Y=Kd("LI"),Y.innerHTML=S[wa].a,this.p.appendChild(Y),this.i[wa]=Y,this.f[wa]=!0;for(wa in b)Y=Kd("LI"),Y.innerHTML=b[wa].a,ge(Y,!1),this.p.appendChild(Y),this.i[wa]=Y;wa=!le(this.f)||
148!le(a.logos);this.n!=wa&&(ge(this.element,wa),this.n=wa);wa&&le(this.f)?Xc(this.element,"ol-logo-only"):xd(this.element,"ol-logo-only");var zb;a=a.logos;wa=this.N;for(zb in wa)zb in a||(T(wa[zb]),delete wa[zb]);for(var Ub in a)Ub in wa||(zb=new Image,zb.src=Ub,S=a[Ub],""===S?S=zb:(S=db("A",{href:S}),S.appendChild(zb)),this.o.appendChild(S),wa[Ub]=S);ge(this.o,!le(a))}}function fm(a){yb(a.element,"ol-collapsed");a.d?fa(a.H,a.J):fa(a.J,a.H);a.d=!a.d}function Gc(a){a=f(a)?a:{};var b=f(a.className)?a.className:
149"ol-rotate",c=f(a.label)?a.label:"\u21e7";this.d=null;D(c)?this.d=db("SPAN","ol-compass",c):(this.d=c,Xc(this.d,"ol-compass"));c=db("BUTTON",{"class":b+"-reset",type:"button",title:f(a.tipLabel)?a.tipLabel:"Reset rotation"},this.d);ma(c,"click",Gc.prototype.o,!1,this);ma(c,["mouseout",Lh],function(){this.blur()},!1);b=db("DIV",b+" ol-unselectable ol-control",c);qb.call(this,{element:b,render:f(a.render)?a.render:qp,target:a.target});this.g=f(a.duration)?a.duration:250;this.f=f(a.autoHide)?a.autoHide:
150!0;this.i=void 0;this.f&&Xc(this.element,"ol-hidden")}function qp(a){a=a.frameState;if(null!==a){a=a.viewState.rotation;if(a!=this.i){var b="rotate("+180*a/Math.PI+"deg)";if(this.f){var c=this.element;0===a?Xc(c,"ol-hidden"):xd(c,"ol-hidden")}this.d.style.msTransform=b;this.d.style.webkitTransform=b;this.d.style.transform=b}this.i=a}}function Ac(a){a=f(a)?a:{};var b=f(a.className)?a.className:"ol-zoom",c=f(a.delta)?a.delta:1,d=f(a.zoomOutLabel)?a.zoomOutLabel:"\u2212",e=f(a.zoomOutTipLabel)?a.zoomOutTipLabel:
151"Zoom out",g=db("BUTTON",{"class":b+"-in",type:"button",title:f(a.zoomInTipLabel)?a.zoomInTipLabel:"Zoom in"},f(a.zoomInLabel)?a.zoomInLabel:"+");ma(g,"click",V(Ac.prototype.f,c),!1,this);ma(g,["mouseout",Lh],function(){this.blur()},!1);d=db("BUTTON",{"class":b+"-out",type:"button",title:e},d);ma(d,"click",V(Ac.prototype.f,-c),!1,this);ma(d,["mouseout",Lh],function(){this.blur()},!1);b=db("DIV",b+" ol-unselectable ol-control",g,d);qb.call(this,{element:b,target:a.target});this.d=f(a.duration)?a.duration:
152250}function rp(a){a=f(a)?a:{};var b=new Sa;(f(a.zoom)?a.zoom:1)&&b.push(new Ac(a.zoomOptions));(f(a.rotate)?a.rotate:1)&&b.push(new Gc(a.rotateOptions));(f(a.attribution)?a.attribution:1)&&b.push(new bc(a.attributionOptions));return b}function sp(){var a=Fc().b,b=a.body;return!!(b.webkitRequestFullscreen||b.mozRequestFullScreen&&a.mozFullScreenEnabled||b.msRequestFullscreen&&a.msFullscreenEnabled||b.requestFullscreen&&a.fullscreenEnabled)}function tp(a){a.webkitRequestFullscreen?a.webkitRequestFullscreen():
153a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.requestFullscreen&&a.requestFullscreen()}function gm(){var a=Fc().b;return!!(a.webkitIsFullScreen||a.mozFullScreen||a.msFullscreenElement||a.fullscreenElement)}function Kc(a){a=f(a)?a:{};this.d=f(a.className)?a.className:"ol-full-screen";var b=f(a.label)?a.label:"\u2194";this.f=D(b)?document.createTextNode(String(b)):b;b=f(a.labelActive)?a.labelActive:"\u00d7";this.g=D(b)?document.createTextNode(String(b)):
154b;b=f(a.tipLabel)?a.tipLabel:"Toggle full-screen";
154b=db("BUTTON",{"class":this.d+"-"+gm(),type:"button",title:b},this.f);ma(b,"click",this.n,!1,this);ma(b,["mouseout",Lh],function(){this.blur()},!1);ma(gb.document,fu,this.i,!1,this);var c=this.d+" ol-unselectable ol-control "+(sp()?"":"ol-unsupported");b=db("DIV",c,b);qb.call(this,{element:b,target:a.target});this.o=f(a.keys)?a.keys:!1}function cc(a){a=f(a)?a:{};var b=db("DIV",f(a.className)?a.className:"ol-mouse-position");qb.call(this,{element:b,
155render:f(a.render)?a.render:up,target:a.target});ma(this,Uc("projection"),this.jl,!1,this);f(a.coordinateFormat)&&this.vh(a.coordinateFormat);f(a.projection)&&this.yg(Ka(a.projection));this.o=f(a.undefinedHTML)?a.undefinedHTML:"";this.i=b.innerHTML;this.g=this.f=this.d=null}function up(a){a=a.frameState;null===a?this.d=null:this.d!=a.viewState.projection&&(this.d=a.viewState.projection,this.f=null);hm(this,this.g)}function hm(a,b){var c=a.o;if(null!==b&&null!==a.d){if(null===a.f){var d=a.xg();a.f=
156f(d)?Qd(a.d,d):ah}d=a.a.ka(b);null!==d&&(a.f(d,d),c=a.Uf(),c=f(c)?c(d):d.toString())}f(a.i)&&c==a.i||(a.element.innerHTML=c,a.i=c)}function Xk(a,b,c){Re.call(this);this.d=a;this.c=c;this.b=b||window;this.a=J(this.Pf,this)}function im(a){if(null!=a.$){var b=vp(a),c=wp(a);b&&!c&&a.b.mozRequestAnimationFrame?Hb(a.$):b&&c?c.call(a.b,a.$):a.b.clearTimeout(a.$)}a.$=null}function vp(a){a=a.b;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||
157a.msRequestAnimationFrame||null}function wp(a){a=a.b;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null}function xp(a){gb.setTimeout(function(){throw a;},0)}function Yk(a,b){var c=a;b&&(c=J(a,b));c=gu(c);!w(gb.setImmediate)||gb.Window&&gb.Window.prototype.setImmediate==gb.setImmediate?(yp||=hu(),yp(c)):gb.setImmediate(c)}function hu(){var a=gb.MessageChannel;
158"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&(a=function(){var e=document.createElement("iframe");e.style.display="none";e.src="";document.documentElement.appendChild(e);var g=e.contentWindow;e=g.document;e.open();e.write("");e.close();var h="callImmediate"+Math.random(),m="file:"==g.location.protocol?"*":g.location.protocol+"//"+g.location.host;e=J(function(r){if(("*"==m||r.origin==m)&&r.data==h)this.port1.onmessage()},this);g.addEventListener("message",
159e,!1);this.port1={};this.port2={postMessage:function(){g.postMessage(h,m)}}});if("undefined"!==typeof a&&!Pa("Trident")&&!Pa("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(f(c.next)){c=c.next;var e=c.Lf;c.Lf=null;e()}};return function(e){d.next={Lf:e};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(e){var g=document.createElement("script");g.onreadystatechange=function(){g.onreadystatechange=null;
160g.parentNode.removeChild(g);g=null;e();e=null};document.documentElement.appendChild(g)}:function(e){gb.setTimeout(e,0)}}function iu(a){if("function"==typeof a.cb)return a.cb();if(D(a))return a.split("");if(G(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Vd(a)}function ju(a,b){if("function"==typeof a.forEach)a.forEach(b,void 0);else if(G(a)||D(a))Oa(a,b,void 0);else{if("function"==typeof a.C)var c=a.C();else if("function"!=typeof a.cb)if(G(a)||D(a)){c=[];for(var d=a.length,e=
1610;e<d;e++)c.push(e)}else c=Fd(a);else c=void 0;d=iu(a);e=d.length;for(var g=0;g<e;g++)b.call(void 0,d[g],c&&c[g],a)}}function Lj(a,b){this.a={};this.b=[];this.c=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Lj?(c=a.C(),d=a.cb()):(c=Fd(a),d=Vd(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}function jm(a){if(a.c!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];Mh(a.a,d)&&
162(a.b[c++]=d);b++}a.b.length=c}if(a.c!=a.b.length){var e={};for(c=b=0;b<a.b.length;)d=a.b[b],Mh(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}}function Mh(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function km(){this.b=Lf()}function Zk(a){Tc.call(this);this.pd=a||window;
162this.Md=ma(this.pd,"resize",this.ik,!1,this);this.Nd=ui(this.pd||window)}function ku(a,b,c,d,e){if(!(jc||Wd&&Cd("525")))return!0;if(wg&&e)return $k(a);if(e&&!d)return!1;E(b)&&(b=lm(b));if(!c&&(17==b||18==b||wg&&91==b))return!1;
163if(Wd&&d&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(jc&&d&&b==a)return!1;switch(a){case 13:return!0;case 27:return!Wd}return $k(a)}function $k(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||Wd&&0==a)return!0;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}}
164function lm(a){if(sf)a=lu(a);else if(wg&&Wd)switch(a){case 93:a=91}return a}function lu(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}}function ch(a,b){Tc.call(this);a&&zp(this,a,b)}function zp(a,b,c){a.Vd&&mm(a);a.Z=b;a.Ud=ma(a.Z,"keypress",a,c);a.Ye=ma(a.Z,"keydown",a.b,c,a);a.Vd=ma(a.Z,"keyup",a.a,c,a)}function mm(a){a.Ud&&(Hb(a.Ud),Hb(a.Ye),Hb(a.Vd),a.Ud=null,a.Ye=null,a.Vd=null);a.Z=null;a.Ja=-1;a.Hb=-1}function Ap(a,
165b,c,d){Se.call(this,d);this.type="key";this.e=a;this.q=b}function Mj(a,b){Tc.call(this);a=this.Z=a;(a=v(a)&&1==a.nodeType?this.Z:this.Z?this.Z.body:null)&&We(a,"direction");this.b=ma(this.Z,sf?"DOMMouseScroll":"mousewheel",this,b)}function nm(a,b){return Wd&&(wg||mu)&&0!=a%b?a:a/b}function Bp(a,b,c,d){Se.call(this,b);this.type="mousewheel";this.detail=a;this.o=d}function Nj(a,b,c){tc.call(this,a);this.b=b;a=f(c)?c:{};this.buttons=nu(a);this.pressure=ou(a,this.buttons);this.bubbles=qc(a,"bubbles",
166!1);this.cancelable=qc(a,"cancelable",!1);this.view=qc(a,"view",null);this.detail=qc(a,"detail",null);this.screenX=qc(a,"screenX",0);this.screenY=qc(a,"screenY",0);this.clientX=qc(a,"clientX",0);this.clientY=qc(a,"clientY",0);this.button=qc(a,"button",0);this.relatedTarget=qc(a,"relatedTarget",null);this.pointerId=qc(a,"pointerId",0);this.width=qc(a,"width",0);this.height=qc(a,"height",0);this.pointerType=qc(a,"pointerType","");this.isPrimary=qc(a,"isPrimary",!1);b.preventDefault&&(this.preventDefault=
167function(){b.preventDefault()})}function nu(a){if(a.buttons||Cp)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a}function ou(a,b){var c=0;a.pressure?c=a.pressure:c=b?.5:0;return c}function se(a,b){var c=Kd("CANVAS");f(a)&&(c.width=a);f(b)&&(c.height=b);return c.getContext("2d")}function Dp(a,b){var c=a.style;c.WebkitTransform=b;c.MozTransform=b;c.b=b;c.msTransform=b;c.transform=b;jc&&!pu&&(a.style.transformOrigin="0 0")}function om(a,b){var c;
168if(qu()){if(f(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");Dp(a,"matrix3d("+c+")")}else if(ru()){d=[b[0],b[1],b[4],b[5],b[12],b[13]];if(f(6)){b=Array(6);for(c=0;6>c;++c)b[c]=d[c].toFixed(6);c=b.join(",")}else c=d.join(",");Dp(a,"matrix("+c+")")}else a.style.left=Math.round(b[12])+"px",a.style.top=Math.round(b[13])+"px"}function Ep(a,b){var c,d,e=Fp.length;for(d=0;d<e;++d)try{if(c=a.getContext(Fp[d],b),null!==c)return c}catch(g){}return null}function dh(a,
169b){this.b=a;this.e=b}function pm(a){dh.call(this,a,{mousedown:this.tk,mousemove:this.uk,mouseup:this.xk,mouseover:this.wk,mouseout:this.vk});this.a=a.a;this.c=[]}function Oj(a,b){a=a.c;var c=b.clientX;b=b.clientY;for(var d=0,e=a.length,g;d<e&&(g=a[d]);d++){var h=Math.abs(b-g[1]);if(25>=Math.abs(c-g[0])&&25>=h)return!0}return!1}function Bi(a){var b=qm(a,a.b),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.isPrimary=!0;b.pointerType="mouse";return b}function rm(a){dh.call(this,
170a,{MSPointerDown:this.Ck,MSPointerMove:this.Dk,MSPointerUp:this.Gk,MSPointerOut:this.Ek,MSPointerOver:this.Fk,MSPointerCancel:this.Bk,MSGotPointerCapture:this.zk,MSLostPointerCapture:this.Ak});this.a=a.a;this.c=["","unavailable","touch","pen","mouse"]}function Ci(a,b){var c=b;E(b.b.pointerType)&&(c=qm(b,b.b),c.pointerType=a.c[b.b.pointerType]);return c}function sm(a){dh.call(this,a,{pointerdown:this.nn,pointermove:this.pn,pointerup:this.sn,pointerout:this.qn,pointerover:this.rn,pointercancel:this.mn,
171gotpointercapture:this.Fj,lostpointercapture:this.sk})}function tm(a,b){dh.call(this,a,{touchstart:this.so,touchmove:this.ro,touchend:this.qo,touchcancel:this.po});this.a=a.a;this.g=b;this.c=void 0;this.f=0;this.d=void 0}function su(a,b,c){b=qm(b,c);b.pointerId=c.identifier+2;b.bubbles=!0;b.cancelable=!0;b.detail=a.f;b.button=0;b.buttons=1;b.width=c.webkitRadiusX||c.radiusX||0;b.height=c.webkitRadiusY||c.radiusY||0;b.pressure=c.webkitForce||c.force||.5;b.isPrimary=a.c===c.identifier;b.pointerType=
172"touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b}function al(a,b,c){function d(){b.preventDefault()}var e=Array.prototype.slice.call(b.b.changedTouches),g=e.length,h;for(h=0;h<g;++h){var m=su(a,b,e[h]);m.preventDefault=d;c.call(a,b,m)}}function Gp(a,b){var c=a.g.c;b=b.b.changedTouches[0];if(a.c===b.identifier){var d=[b.clientX,b.clientY];c.push(d);gb.setTimeout(function(){Ee(c,d)},2500)}}function eh(a){Tc.call(this);this.Z=a;this.a={};this.c={};this.b=
173[];tu?bl(this,new sm(this)):uu?bl(this,new rm(this)):(a=new pm(this),bl(this,a),um&&bl(this,new tm(this,a)));a=this.b.length;for(var b,c=0;c<a;c++)b=this.b[c],vu(this,Fd(b.e))}function bl(a,b){var c=Fd(b.e);c&&(Oa(c,function(d){var e=b.e[d];e&&(this.c[d]=J(e,b))},a),a.b.push(b))}function vu(a,b){Oa(b,function(c){ma(this.Z,c,this.d,!1,this)},a)}function wu(a,b){Oa(b,function(c){Ge(this.Z,c,this.d,!1,this)},a)}function qm(a,b){for(var c={},d,e=0,g=vm.length;e<g;e++)d=vm[e][0],c[d]=a[d]||b[d]||vm[e][1];
174return c}function wm(a,b,c){a.ec(b,c);var d=b.relatedTarget;null!==d&&za(b.target,d)||(b.bubbles=!1,te(a,xm,b,c))}function ym(a,b,c){b.bubbles=!0;te(a,Hp,b,c);var d=b.relatedTarget;null!==d&&za(b.target,d)||(b.bubbles=!1,te(a,Ip,b,c))}function te(a,b,c,d){a.dispatchEvent(new Nj(b,d,c))}function fh(a,b){a.dispatchEvent(new Nj(b.type,b,b.b))}function Dd(a,b,c,d,e){Bg.call(this,a,b,e);this.b=c;this.originalEvent=c.b;this.pixel=b.Bd(this.originalEvent);this.coordinate=b.ka(this.pixel);this.dragging=f(d)?
175d:!1}function zd(a,b,c,d,e){Dd.call(this,a,b,c.b,d,e);this.a=c}function cl(a){Tc.call(this);this.c=a;this.f=0;this.g=!1;this.a=this.i=this.d=null;a=this.c.a;this.o=0;this.l={};this.e=new eh(a);this.b=null;this.i=ma(this.e,dl,this.dk,!1,this);this.q=ma(this.e,el,this.Kn,!1,this)}function xu(a,b){var c=new zd(zm,a.c,b);a.dispatchEvent(c);0!==a.f?(gb.clearTimeout(a.f),a.f=0,c=new zd(fl,a.c,b),a.dispatchEvent(c)):a.f=gb.setTimeout(J(function(){this.f=0;var d=new zd(Am,this.c,b);this.dispatchEvent(d)},
176a),250)}function Jp(a,b){b.type==Nh||b.type==Bm?delete a.l[b.pointerId]:b.type==Oh&&(a.l[b.pointerId]=!0);a.o=ud(a.l)}function Xa(a){ub.call(this);var b=Gd(a);b.brightness=f(a.brightness)?a.brightness:0;b.contrast=f(a.contrast)?a.contrast:1;b.hue=f(a.hue)?a.hue:0;b.opacity=f(a.opacity)?a.opacity:1;b.saturation=f(a.saturation)?a.saturation:1;b.visible=f(a.visible)?a.visible:!0;b.maxResolution=f(a.maxResolution)?a.maxResolution:Infinity;b.minResolution=f(a.minResolution)?a.minResolution:0;this.t(b)}
177function Kp(a){var b=a.Bb(),c=a.Cb(),d=a.Db(),e=a.Kb(),g=a.Gb(),h=a.We(),m=a.eb(),r=a.G(),x=a.Eb(),F=a.Fb();return{layer:a,brightness:Hd(b,-1,1),contrast:Math.max(c,0),hue:d,opacity:Hd(e,0,1),saturation:Math.max(g,0),i:h,visible:m,extent:r,maxResolution:x,minResolution:Math.max(F,0)}}function La(a){var b=Gd(a);delete b.source;Xa.call(this,b);this.f=null;ma(this,Uc("source"),this.kk,!1,this);this.Jc(f(a.source)?a.source:null)}function gh(a,b){return a.visible&&b>=a.minResolution&&b<a.maxResolution}
178function Di(a,b,c,d,e){Tc.call(this);this.f=e;this.extent=a;this.e=c;this.resolution=b;this.state=d}function Ae(a,b,c,d,e,g,h,m){wf(a);0===b&&0===c||xf(a,b,c);1==d&&1==e||Qf(a,d,e);0!==g&&ni(a,g);0===h&&0===m||xf(a,h,m);return a}function Cm(a,b){return a[0]==b[0]&&a[1]==b[1]&&a[4]==b[4]&&a[5]==b[5]&&a[12]==b[12]&&a[13]==b[13]}function Cf(a,b,c){var d=a[1],e=a[5],g=a[13],h=b[0];b=b[1];c[0]=a[0]*h+a[4]*b+a[12];c[1]=d*h+e*b+g;return c}function he(a){Id.call(this);this.a=a}function Dm(a,b){var c=b.state;
1792!=c&&3!=c&&ma(b,"change",a.Ol,!1,a);0==c&&(b.load(),c=b.state);return 2==c}function gl(a){var b=a.a;b.eb()&&"ready"==b.We()&&a.k()}function Em(a,b){ip(b.a)&&a.postRenderFunctions.push(V(function(c,d,e){d=C(c).toString();c=c.a;e=e.usedTiles[d];for(var g;ip(c)&&!(d=c.b.qc,g=d.b[0].toString(),g in e&&e[g].contains(d.b));)c.pop().Yc()},b))}function Ei(a,b){if(null!=b){var c;var d=0;for(c=b.length;d<c;++d){var e=b[d];a[C(e).toString()]=e}}}function Dg(a,b){b=b.L;f(b)&&(D(b)?a.logos[b]="":v(b)&&(a.logos[b.src]=
180b.href))}function Fm(a,b,c,d){b=C(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],d.b<a.b&&(a.b=d.b),d.d>a.d&&(a.d=d.d),d.c<a.c&&(a.c=d.c),d.a>a.a&&(a.a=d.a)):a[b][c]=d:(a[b]={},a[b][c]=d)}function Gm(a,b,c){return[b*(Math.round(a[0]/b)+c[0]%2/2),b*(Math.round(a[1]/b)+c[1]%2/2)]}function Hm(a,b,c,d,e,g,h,m,r,x){var F=C(b).toString();F in a.wantedTiles||(a.wantedTiles[F]={});var M=a.wantedTiles[F];a=a.tileQueue;var S=c.minZoom,Y,O,P,Z;for(Z=h;Z>=S;--Z){var ca=Xe(c,g,Z,ca);var ea=c.ma(Z);for(O=
181ca.b;O<=ca.d;++O)for(P=ca.c;P<=ca.a;++P)h-Z<=m?(Y=b.Vb(Z,O,P,d,e),0==Y.state&&(M[ig(Y.b)]=!0,Y.gb()in a.c||Lp(a,[Y,F,kp(c,Y.b),ea])),f(r)&&r.call(x,Y)):b.yf(Z,O,P)}}function Rd(a){this.U=a.opacity;this.V=a.rotateWithView;this.q=a.rotation;this.l=a.scale;this.n=a.snapToPixel}function ld(a){a=f(a)?a:{};this.e=f(a.anchor)?a.anchor:[.5,.5];this.d=null;this.a=f(a.anchorOrigin)?a.anchorOrigin:"top-left";this.g=f(a.anchorXUnits)?a.anchorXUnits:"fraction";this.i=f(a.anchorYUnits)?a.anchorYUnits:"fraction";
182var b=f(a.crossOrigin)?a.crossOrigin:null,c=f(a.img)?a.img:null,d=f(a.imgSize)?a.imgSize:null,e=a.src;f(e)&&0!==e.length||null===c||(e=c.src);var g=f(a.src)?0:2,h=Fi.Ia(),m=h.get(e,b);null===m&&(m=new Pj(c,e,d,b,g),h.set(e,b,m));this.b=m;this.p=f(a.offset)?a.offset:[0,0];this.c=f(a.offsetOrigin)?a.offsetOrigin:"top-left";this.f=null;this.o=f(a.size)?a.size:null;Rd.call(this,{opacity:f(a.opacity)?a.opacity:1,rotation:f(a.rotation)?a.rotation:0,scale:f(a.scale)?a.scale:1,snapToPixel:f(a.snapToPixel)?
183a.snapToPixel:!0,rotateWithView:f(a.rotateWithView)?a.rotateWithView:!1})}function Pj(a,b,c,d,e){Tc.call(this);this.e=null;this.b=null===a?new Image:a;null!==d&&(this.b.crossOrigin=d);this.d=null;this.c=e;this.a=c;this.f=b;this.i=!1}function Fi(){this.b={};this.a=0}function mg(a,b){Re.call(this);this.g=b;this.c=null;this.f={};this.o={}}function Im(a){var b=a.viewState,c=a.coordinateToPixelMatrix;Ae(c,a.size[0]/2,a.size[1]/2,1/b.resolution,-1/b.resolution,-b.rotation,-b.center[0],-b.center[1]);mi(c,
184a.pixelToCoordinateMatrix)}function Jm(){var a=Fi.Ia();if(32<a.a){var b=0,c;for(c in a.b){var d=a.b[c];var e;if(e=0===(b++&3))Sg(d)?d=Jf(d,void 0,void 0):(d=Tg(d),d=!!d&&uj(d,void 0,void 0)),e=!d;e&&(delete a.b[c],--a.a)}}}function Eg(a,b){var c=C(b).toString();if(c in a.f)return a.f[c];b=a.Ke(b);a.f[c]=b;a.o[c]=ma(b,"change",a.Tj,!1,a);return b}function Km(a,b){for(var c in a.f)if(!(c in b.layerStates)){b.postRenderFunctions.push(J(a.Pn,a));break}}function Gi(a,b){this.g=a;this.e=b;this.b=[];this.a=
185[];this.c={}}function Mp(a){var b=a.b,c=a.a,d=b[0];1==b.length?(b.length=0,c.length=0):(b[0]=b.pop(),c[0]=c.pop(),Np(a,0));b=a.e(d);delete a.c[b];return d}function Lp(a,b){var c=a.g(b);Infinity!=c&&(a.b.push(b),a.a.push(c),a.c[a.e(b)]=!0,Op(a,0,a.b.length-1))}function Np(a,b){for(var c=a.b,d=a.a,e=c.length,g=c[b],h=d[b],m=b;b<e>>1;){var r=2*b+1,x=2*b+2;r=x<e&&d[x]<d[r]?x:r;c[b]=c[r];d[b]=d[r];b=r}c[b]=g;d[b]=h;Op(a,m,b)}function Op(a,b,c){var d=a.b;a=a.a;for(var e=d[c],g=a[c];c>b;){var h=c-1>>1;if(a[h]>
186g)d[c]=d[h],a[c]=a[h],c=h;else break}d[c]=e;a[c]=g}function Pp(a){var b=a.g,c=a.b,d=a.a,e=0,g=c.length,h;for(h=0;h<g;++h){var m=c[h];var r=b(m);Infinity==r?delete a.c[a.e(m)]:(d[e]=r,c[e++]=m)}c.length=e;d.length=e;for(b=(a.b.length>>1)-1;0<=b;b--)Np(a,b)}function Lm(a,b){Gi.call(this,function(c){return a.apply(null,c)},function(c){return c[0].gb()});this.i=b;this.d=0}function Mm(a,b,c){this.d=a;this.c=b;this.f=c;this.b=[];this.a=this.e=0}function yu(a,b){var c=a.d,d=a.a,e=a.c-d,g=Math.log(a.c/a.a)/
187a.d;return Ue({source:b,duration:g,easing:function(h){return d*(Math.exp(c*h*g)-1)/e}})}function Jb(a){ub.call(this);this.l=null;this.d(!0);this.handleEvent=a.handleEvent}function Hi(a,b,c,d,e){if(null!=c){var g=b.Da(),h=b.Ca();f(g)&&f(h)&&f(e)&&0<e&&(a.Ha(qi({rotation:g,duration:e,easing:Sf})),f(d)&&a.Ha(Ue({source:h,duration:e,easing:Sf})));b.rotate(c,d)}}function Nm(a,b,c,d,e){var g=b.ya();
187c=b.constrainResolution(g,c,0);Ii(a,b,c,d,e)}function Ii(a,b,c,d,e){if(null!=c){var g=b.ya(),h=b.Ca();f(g)&&
188f(h)&&f(e)&&0<e&&(a.Ha(zf({resolution:g,duration:e,easing:Sf})),f(d)&&a.Ha(Ue({source:h,duration:e,easing:Sf})));if(null!=d){var m;a=b.Ca();e=b.ya();f(a)&&f(e)&&(m=[d[0]-c*(d[0]-a[0])/e,d[1]-c*(d[1]-a[1])/e]);b.Na(m)}b.tb(c)}}function gd(a){a=f(a)?a:{};this.a=f(a.delta)?a.delta:1;Jb.call(this,{handleEvent:Qp});this.e=f(a.duration)?a.duration:250}function Qp(a){var b=!1,c=a.b;if(a.type==fl){b=a.map;var d=a.coordinate;c=c.d?-this.a:this.a;var e=b.R();Nm(b,e,c,d,this.e);a.preventDefault();b=!0}return!b}
189function Rp(a){a=a.b;return a.a&&!a.g&&a.d}function Sp(a){return"pointermove"==a.type}function Om(a){return a.type==Am}function Qj(a){a=a.b;return!a.a&&!a.g&&!a.d}function Rj(a){a=a.b;return!a.a&&!a.g&&a.d}function Pm(a){a=a.b.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function ng(a){return 1==a.a.pointerId}function Db(a){a=f(a)?a:{};Jb.call(this,{handleEvent:f(a.handleEvent)?a.handleEvent:Sj});this.vb=f(a.handleDownEvent)?a.handleDownEvent:hf;this.wb=f(a.handleDragEvent)?a.handleDragEvent:
190A;this.xb=f(a.handleMoveEvent)?a.handleMoveEvent:A;this.sc=f(a.handleUpEvent)?a.handleUpEvent:hf;this.o=!1;this.J={};this.e=[]}function Qm(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return[c/b,d/b]}function Sj(a){if(!(a instanceof zd))return!0;var b=!1,c=a.type;if(c===Oh||c===Tj||c===Nh)c=a.a,a.type==Nh?delete this.J[c.pointerId]:a.type==Oh?this.J[c.pointerId]=c:c.pointerId in this.J&&(this.J[c.pointerId]=c),this.e=Vd(this.J);this.o&&(a.type==Tj?this.wb(a):a.type==Nh&&
191(this.o=this.sc(a)));a.type==Oh?(this.o=a=this.vb(a),b=this.nc(a)):a.type==Uj&&this.xb(a);return!b}function Yc(a){Db.call(this,{handleDownEvent:zu,handleDragEvent:Au,handleUpEvent:Bu});a=f(a)?a:{};this.a=a.kinetic;this.f=this.g=null;this.n=f(a.condition)?a.condition:Qj;this.i=!1}function Au(a){var b=Qm(this.e);this.a&&this.a.update(b[0],b[1]);if(null!==this.f){var c=this.f[0]-b[0],d=b[1]-this.f[1];a=a.map;var e=a.R(),g=bh(e);d=c=[c,d];var h=g.resolution;d[0]*=h;d[1]*=h;Zg(c,g.rotation);Xg(c,g.center);
192c=e.xd(c);a.render();e.Na(c)}this.f=b}function Bu(a){a=a.map;var b=a.R();if(0===this.e.length){var c;if(c=!this.i&&this.a)if(c=this.a,6>c.b.length)c=!1;else{var d=Lf()-c.f,e=c.b.length-3;if(c.b[e+2]<d)c=!1;else{for(var g=e-3;0<g&&c.b[g+2]>d;)g-=3;d=c.b[e+2]-c.b[g+2];var h=c.b[e]-c.b[g];e=c.b[e+1]-c.b[g+1];c.e=Math.atan2(e,h);c.a=Math.sqrt(h*h+e*e)/d;c=c.a>c.c}}c&&(c=this.a,c=(c.c-c.a)/c.d,e=this.a.e,g=b.Ca(),this.g=yu(this.a,g),a.Ha(this.g),g=a.ta(g),c=a.ka([g[0]-c*Math.cos(e),g[1]-c*Math.sin(e)]),
193c=b.xd(c),b.Na(c));Ke(b,-1);a.render();return!1}this.f=null;return!0}function zu(a){if(0<this.e.length&&this.n(a)){var b=a.map,c=b.R();this.f=null;this.o||Ke(c,1);b.render();null!==this.g&&Ee(b.H,this.g)&&(c.Na(a.frameState.viewState.center),this.g=null);this.a&&(a=this.a,a.b.length=0,a.e=0,a.a=0);this.i=1<this.e.length;return!0}return!1}function Zc(a){a=f(a)?a:{};Db.call(this,{handleDownEvent:Cu,handleDragEvent:Du,handleUpEvent:Eu});this.f=f(a.condition)?a.condition:Rp;this.a=void 0;this.g=f(a.duration)?
194a.duration:250}function Du(a){if(ng(a)){var b=a.map,c=b.xa();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(f(this.a)){a=c-this.a;var d=b.R(),e=d.Da();b.render();Hi(b,d,e-a)}this.a=c}}function Eu(a){if(!ng(a))return!0;a=a.map;var b=a.R();Ke(b,-1);var c=b.Da(),d=this.g;c=b.constrainRotation(c,0);Hi(a,b,c,void 0,d);return!1}function Cu(a){return ng(a)&&rj(a.b)&&this.f(a)?(a=a.map,Ke(a.R(),1),a.render(),this.a=void 0,!0):!1}function gc(){ub.call(this);this.o=Yd();this.n=-1;this.f={};this.l=this.g=
1950}function Ji(a,b,c,d,e,g){var h=e[0],m=e[1],r=e[4],x=e[5],F=e[12];e=e[13];for(var M=f(g)?g:[],S=0;b<c;b+=d){var Y=a[b],O=a[b+1];M[S++]=h*Y+r*O+F;M[S++]=m*Y+x*O+e}f(g)&&M.length!=S&&(M.length=S);return M}function mb(){gc.call(this);this.a="XY";this.s=2;this.j=null}function Rm(a){if("XY"==a)return 2;if("XYZ"==a||"XYM"==a)return 3;if("XYZM"==a)return 4}function Df(a,b,c){a.s=Rm(b);a.a=b;a.j=c}function hh(a,b,c,d){if(f(b))c=Rm(b);else{for(b=0;b<d;++b){if(0===c.length){a.a="XY";a.s=2;return}c=c[0]}c=
196c.length;b=2==c?"XY":3==c?"XYZ":4==c?"XYZM":void 0}a.a=b;a.s=c}function Tp(a,b,c,d){for(var e=0,g=a[c-d],h=a[c-d+1];b<c;b+=d){var m=a[b],r=a[b+1];e+=h*m-g*r;g=m;h=r}return e/2}function Up(a,b,c,d){var e=0,g;var h=0;for(g=c.length;h<g;++h){var m=c[h];e+=Tp(a,b,m,d);b=m}return e}function Vp(a,b,c,d,e,g){var h=e-c,m=g-d;if(0!==h||0!==m){var r=((a-c)*h+(b-d)*m)/(h*h+m*m);1<r?(c=e,d=g):0<r&&(c+=h*r,d+=m*r)}return Ph(a,b,c,d)}function Ph(a,b,c,d){a=c-a;b=d-b;return a*a+b*b}function Wp(a,b,c,d,e,g,h){var m=
197a[b],r=a[b+1],x=a[c]-m,F=a[c+1]-r;if(0!==x||0!==F)if(g=((e-m)*x+(g-r)*F)/(x*x+F*F),1<g)b=c;else if(0<g){for(e=0;e<d;++e)h[e]=yh(a[b+e],a[c+e],g);h.length=d;return}for(e=0;e<d;++e)h[e]=a[b+e];h.length=d}function Sm(a,b,c,d,e){var g=a[b],h=a[b+1];for(b+=d;b<c;b+=d){var m=a[b],r=a[b+1];g=Ph(g,h,m,r);g>e&&(e=g);g=m;h=r}return e}function Tm(a,b,c,d,e){var g;var h=0;for(g=c.length;h<g;++h){var m=c[h];e=Sm(a,b,m,d,e);b=m}return e}function Um(a,b,c,d,e,g,h,m,r,x,F){if(b==c)return x;if(0===e){var M=Ph(h,m,
198a[b],a[b+1]);if(M<x){for(F=0;F<d;++F)r[F]=a[b+F];r.length=d;return M}return x}for(var S=f(F)?F:[NaN,NaN],Y=b+d;Y<c;)if(Wp(a,Y-d,Y,d,h,m,S),M=Ph(h,m,S[0],S[1]),M<x){x=M;for(F=0;F<d;++F)r[F]=S[F];r.length=d;Y+=d}else Y+=d*Math.max((Math.sqrt(M)-Math.sqrt(x))/e|0,1);if(g&&(Wp(a,c-d,b,d,h,m,S),M=Ph(h,m,S[0],S[1]),M<x)){x=M;for(F=0;F<d;++F)r[F]=S[F];r.length=d}return x}function Vm(a,b,c,d,e,g,h,m,r,x,F){F=f(F)?F:[NaN,NaN];var M;var S=0;for(M=c.length;S<M;++S){var Y=c[S];x=Um(a,b,Y,d,e,g,h,m,r,x,F);b=Y}return x}
199function Xp(a,b){var c=0,d;var e=0;for(d=b.length;e<d;++e)a[c++]=b[e];return c}function hl(a,b,c,d){var e;var g=0;for(e=c.length;g<e;++g){var h=c[g],m;
199for(m=0;m<d;++m)a[b++]=h[m]}return b}function Wm(a,b,c,d,e){e=f(e)?e:[];var g=0,h;var m=0;for(h=c.length;m<h;++m)b=hl(a,b,c[m],d),e[g++]=b;e.length=g;return e}function Vj(a,b,c,d,e){e=f(e)?e:[];for(var g=0;b<c;b+=d)e[g++]=a.slice(b,b+d);e.length=g;return e}function Xm(a,b,c,d,e){e=f(e)?e:[];var g=0,h;var m=0;for(h=c.length;m<h;++m){var r=c[m];e[g++]=
200Vj(a,b,r,d,e[g]);b=r}e.length=g;return e}function Ym(a,b,c,d,e,g,h){var m=(c-b)/d;if(3>m){for(;b<c;b+=d)g[h++]=a[b],g[h++]=a[b+1];return h}var r=Array(m);r[0]=1;r[m-1]=1;c=[b,c-d];for(var x=0,F;0<c.length;){var M=c.pop(),S=c.pop(),Y=0,O=a[S],P=a[S+1],Z=a[M],ca=a[M+1];for(F=S+d;F<M;F+=d){var ea=Vp(a[F],a[F+1],O,P,Z,ca);ea>Y&&(x=F,Y=ea)}Y>e&&(r[(x-b)/d]=1,S+d<x&&c.push(S,x),x+d<M&&c.push(x,M))}for(F=0;F<m;++F)r[F]&&(g[h++]=a[b+F*d],g[h++]=a[b+F*d+1]);return h}function Yp(a,b,c,d,e,g,h,m){var r;var x=
2010;for(r=c.length;x<r;++x){var F=c[x];a:{var M=a,S=F,Y=d,O=e,P=g;if(b!=S){var Z=O*Math.round(M[b]/O),ca=O*Math.round(M[b+1]/O);b+=Y;P[h++]=Z;P[h++]=ca;var ea,ja;do if(ea=O*Math.round(M[b]/O),ja=O*Math.round(M[b+1]/O),b+=Y,b==S){P[h++]=ea;P[h++]=ja;break a}while(ea==Z&&ja==ca);for(;b<S;){var ka=O*Math.round(M[b]/O);var va=O*Math.round(M[b+1]/O);b+=Y;if(ka!=ea||va!=ja){var na=ea-Z,Ia=ja-ca,cb=ka-Z,wa=va-ca;na*wa==Ia*cb&&(0>
201na&&cb<na||na==cb||0<na&&cb>na)&&(0>Ia&&wa<Ia||Ia==wa||0<Ia&&wa>Ia)||(P[h++]=
202ea,P[h++]=ja,Z=ea,ca=ja);ea=ka;ja=va}}P[h++]=ea;P[h++]=ja}}m.push(h);b=F}return h}function lb(a,b){mb.call(this);this.c=this.i=-1;this.W(a,b)}function Ki(a,b,c){Df(a,b,c);a.k()}function Ta(a,b){mb.call(this);this.W(a,b)}function Li(a,b,c){Df(a,b,c);a.k()}function Fu(a,b,c,d,e){return!k(e,function(g){return!Qh(a,b,c,d,g[0],g[1])})}function Qh(a,b,c,d,e,g){for(var h=!1,m=a[c-d],r=a[c-d+1];b<c;b+=d){var x=a[b],F=a[b+1];r>g!=F>g&&e<(x-m)*(g-r)/(F-r)+m&&(h=!h);m=x;r=F}return h}function Zm(a,b,c,d,e,g){if(0===
203c.length||!Qh(a,b,c[0],d,e,g))return!1;var h;b=1;for(h=c.length;b<h;++b)if(Qh(a,c[b-1],c[b],d,e,g))return!1;return!0}function Zp(a,b,c,d,e,g,h){var m,r=e[g+1],x=[],F=c[0];var M=a[F-d];var S=a[F-d+1];for(m=b;m<F;m+=d){var Y=a[m];var O=a[m+1];if(r<=S&&O<=r||S<=r&&r<=O)M=(r-S)/(O-S)*(Y-M)+M,x.push(M);M=Y;S=O}F=NaN;S=-Infinity;x.sort();M=x[0];m=1;for(O=x.length;m<O;++m){Y=x[m];var P=Math.abs(Y-M);P>S&&(M=(M+Y)/2,Zm(a,b,c,d,M,r)&&(F=M,S=P));M=Y}isNaN(F)&&(F=e[g]);return f(h)?(h.push(F,r),h):[F,r]}function $p(a,
204b,c,d,e,g){for(var h=[a[b],a[b+1]],m=[],r;b+d<c;b+=d){m[0]=a[b+d];m[1]=a[b+d+1];if(r=e.call(g,h,m))return r;h[0]=m[0];h[1]=m[1]}return!1}function $m(a,b,c,d,e){var g=Aj(Yd(),a,b,c,d);return ta(e,g)?qe(e,g)||g[0]>=e[0]&&g[2]<=e[2]||g[1]>=e[1]&&g[3]<=e[3]?!0:$p(a,b,c,d,function(h,m){var r=!1,x=Fh(e,h),F=Fh(e,m);if(1===x||1===F)r=!0;else{var M=e[0],S=e[1],Y=e[2],O=e[3],P=m[0];m=m[1];h=(m-h[1])/(P-h[0]);F&2&&!(x&2)&&(r=P-(m-O)/h,r=r>=M&&r<=Y);r||!(F&4)||x&4||(r=m-(P-Y)*h,r=r>=S&&r<=O);r||!(F&8)||x&8||
205(r=P-(m-S)/h,r=r>=M&&r<=Y);r||!(F&16)||x&16||(r=m-(P-M)*h,r=r>=S&&r<=O)}return r}):!1}function aq(a,b,c,d,e){var g=c[0];if(!($m(a,b,g,d,e)||Qh(a,b,g,d,e[0],e[1])||Qh(a,b,g,d,e[0],e[3])||Qh(a,b,g,d,e[2],e[1])||Qh(a,b,g,d,e[2],e[3])))return!1;if(1===c.length)return!0;b=1;for(g=c.length;b<g;++b)if(Fu(a,c[b-1],c[b],d,e))return!1;return!0}function an(a,b,c,d){for(var e=0,g=a[c-d],h=a[c-d+1];b<c;b+=d){var m=a[b],r=a[b+1];e+=(m-g)*(r+h);g=m;h=r}return 0<e}function bq(a,b,c,d){var e=0;d=f(d)?d:!1;var g;var h=
2060;for(g=b.length;h<g;++h){var m=b[h];e=an(a,e,m,c);if(0===h){if(d&&e||!d&&!e)return!1}else if(d&&!e||!d&&e)return!1;e=m}return!0}function bn(a,b,c,d,e){e=f(e)?e:!1;var g;var h=0;for(g=c.length;h<g;++h){var m=c[h],r=an(a,b,m,d);if(0===h?e&&r||!e&&!r:e&&!r||!e&&r){r=a;for(var x=m,F=d;b<x-F;){var M;for(M=0;M<F;++M){var S=r[b+M];r[b+M]=r[x-F+M];r[x-F+M]=S}b+=F;x-=F}}b=m}return b}function cq(a,b,c,d){var e=0,g;var h=0;for(g=b.length;h<g;++h)e=bn(a,e,b[h],c,d);return e}function Fa(a,b){mb.call(this);this.c=
207[];this.p=-1;this.H=null;this.N=this.J=this.L=-1;this.i=null;this.W(a,b)}function cn(a){if(a.p!=a.b){var b=y(a.G());a.H=Zp(Rh(a),0,a.c,a.s,b,0);a.p=a.b}return a.H}function Rh(a){if(a.N!=a.b){var b=a.j;bq(b,a.c,a.s)?a.i=b:(a.i=b.slice(),a.i.length=bn(a.i,0,a.c,a.s));a.N=a.b}return a.i}function Nf(a,b,c,d){Df(a,b,c);a.c=d;a.k()}function dq(a,b,c,d){var e=f(d)?d:32;d=[];var g;for(g=0;g<e;++g)Tb(d,a.offset(b,c,2*Math.PI*g/e));d.push(d[0],d[1]);a=new Fa(null);Nf(a,"XY",d,[d.length]);return a}function il(){}
208function Ye(a,b,c,d,e,g,h){tc.call(this,a,b);this.vectorContext=c;this.b=d;this.frameState=e;this.context=g;this.glContext=h}function Mi(a){this.c=this.a=this.e=this.d=this.b=null;this.f=a}function eq(a){var b=a.e,c=a.a;a=Jc([b,[b[0],c[1]],c,[c[0],b[1]]],a.b.ka,a.b);a[4]=a[0].slice();return new Fa([a])}function dn(a){null===a.b||null===a.e||null===a.a||a.b.render()}function Wj(a,b){tc.call(this,a);this.coordinate=b}function Bc(a){Db.call(this,{handleDownEvent:Gu,handleDragEvent:Hu,handleUpEvent:Iu});
209a=f(a)?a:{};this.f=new Mi(f(a.style)?a.style:null);this.a=null;this.i=f(a.condition)?a.condition:Le}function Hu(a){if(ng(a)){var b=this.f;a=a.pixel;b.e=this.a;b.a=a;b.c=eq(b);dn(b)}}function Iu(a){if(!ng(a))return!0;this.f.setMap(null);var b=a.pixel[0]-this.a[0],c=a.pixel[1]-this.a[1];64<=b*b+c*c&&(this.g(a),this.dispatchEvent(new Wj("boxend",a.coordinate)));return!1}function Gu(a){if(ng(a)&&rj(a.b)&&this.i(a)){this.a=a.pixel;this.f.setMap(a.map);var b=this.f,c=this.a;b.e=this.a;b.a=c;b.c=eq(b);dn(b);
210this.dispatchEvent(new Wj("boxstart",a.coordinate));return!0}return!1}function en(){this.a=64;this.b=Array(4);this.e=Array(this.a);this.b[0]=1732584193;this.b[1]=4023233417;this.b[2]=2562383102;this.b[3]=271733878;this.d=this.c=0}function fn(a,b,c){c||=0;var d=Array(16);if(D(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.b[0];c=a.b[1];e=a.b[2];var g=a.b[3];
210var h=b+
211(g^c&(e^g))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=g+(e^b&(c^e))+d[1]+3905402710&4294967295;g=b+(h<<12&4294967295|h>>>20);h=e+(c^g&(b^c))+d[2]+606105819&4294967295;e=g+(h<<17&4294967295|h>>>15);h=c+(b^e&(g^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(g^c&(e^g))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=g+(e^b&(c^e))+d[5]+1200080426&4294967295;g=b+(h<<12&4294967295|h>>>20);h=e+(c^g&(b^c))+d[6]+2821735955&4294967295;e=g+(h<<17&4294967295|h>>>15);
212h=c+(b^e&(g^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(g^c&(e^g))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=g+(e^b&(c^e))+d[9]+2336552879&4294967295;g=b+(h<<12&4294967295|h>>>20);h=e+(c^g&(b^c))+d[10]+4294925233&4294967295;e=g+(h<<17&4294967295|h>>>15);h=c+(b^e&(g^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(g^c&(e^g))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=g+(e^b&(c^e))+d[13]+4254626195&4294967295;g=b+(h<<12&4294967295|
213h>>>20);h=e+(c^g&(b^c))+d[14]+2792965006&4294967295;e=g+(h<<17&4294967295|h>>>15);h=c+(b^e&(g^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^g&(c^e))+d[1]+4129170786&4294967295;b=c+(h<<5&4294967295|h>>>27);h=g+(c^e&(b^c))+d[6]+3225465664&4294967295;g=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(g^b))+d[11]+643717713&4294967295;e=g+(h<<14&4294967295|h>>>18);h=c+(g^b&(e^g))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^g&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|
214h>>>27);h=g+(c^e&(b^c))+d[10]+38016083&4294967295;g=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(g^b))+d[15]+3634488961&4294967295;e=g+(h<<14&4294967295|h>>>18);h=c+(g^b&(e^g))+d[4]+3889429448&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^g&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=g+(c^e&(b^c))+d[14]+3275163606&4294967295;g=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(g^b))+d[3]+4107603335&4294967295;e=g+(h<<14&4294967295|h>>>18);h=c+(g^b&(e^g))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|
215h>>>12);h=b+(e^g&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=g+(c^e&(b^c))+d[2]+4243563512&4294967295;g=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(g^b))+d[7]+1735328473&4294967295;e=g+(h<<14&4294967295|h>>>18);h=c+(g^b&(e^g))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^g)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=g+(b^c^e)+d[8]+2272392833&4294967295;g=b+(h<<11&4294967295|h>>>21);h=e+(g^b^c)+d[11]+1839030562&4294967295;e=g+(h<<16&4294967295|h>>>
21616);h=c+(e^g^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^g)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=g+(b^c^e)+d[4]+1272893353&4294967295;g=b+(h<<11&4294967295|h>>>21);h=e+(g^b^c)+d[7]+4139469664&4294967295;e=g+(h<<16&4294967295|h>>>16);h=c+(e^g^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^g)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=g+(b^c^e)+d[0]+3936430074&4294967295;g=b+(h<<11&4294967295|h>>>21);h=e+(g^b^c)+d[3]+
2173572445317&4294967295;e=g+(h<<16&4294967295|h>>>16);h=c+(e^g^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^g)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=g+(b^c^e)+d[12]+3873151461&4294967295;g=b+(h<<11&4294967295|h>>>21);h=e+(g^b^c)+d[15]+530742520&4294967295;e=g+(h<<16&4294967295|h>>>16);h=c+(e^g^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~g))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=g+(c^(b|~e))+d[7]+1126891415&4294967295;
218g=b+(h<<10&4294967295|h>>>22);h=e+(b^(g|~c))+d[14]+2878612391&4294967295;e=g+(h<<15&4294967295|h>>>17);h=c+(g^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~g))+d[12]+1700485571&4294967295;b=c+(h<<6&4294967295|h>>>26);h=g+(c^(b|~e))+d[3]+2399980690&4294967295;g=b+(h<<10&4294967295|h>>>22);h=e+(b^(g|~c))+d[10]+4293915773&4294967295;e=g+(h<<15&4294967295|h>>>17);h=c+(g^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~g))+d[8]+1873313359&4294967295;
219b=c+(h<<6&4294967295|h>>>26);h=g+(c^(b|~e))+d[15]+4264355552&4294967295;g=b+(h<<10&4294967295|h>>>22);h=e+(b^(g|~c))+d[6]+2734768916&4294967295;e=g+(h<<15&4294967295|h>>>17);h=c+(g^(e|~b))+d[13]+1309151649&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~g))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=g+(c^(b|~e))+d[11]+3174756917&4294967295;g=b+(h<<10&4294967295|h>>>22);h=e+(b^(g|~c))+d[2]+718787259&4294967295;e=g+(h<<15&4294967295|h>>>17);h=c+(g^(e|~b))+d[9]+3951481745&4294967295;
220a.b[0]=a.b[0]+b&4294967295;a.b[1]=a.b[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.b[2]=a.b[2]+e&4294967295;a.b[3]=a.b[3]+g&4294967295}function Lc(a){a=f(a)?a:{};this.b=f(a.color)?a.color:null;this.d=a.lineCap;this.c=f(a.lineDash)?a.lineDash:null;this.e=a.lineJoin;this.f=a.miterLimit;this.a=a.width;this.g=void 0}function jf(a){a=f(a)?a:{};this.b=f(a.color)?a.color:null;this.a=void 0}function Qc(a){a=f(a)?a:{};this.f=this.b=this.e=null;this.d=f(a.fill)?a.fill:null;this.a=f(a.stroke)?a.stroke:null;
221this.c=a.radius;this.o=[0,0];this.i=this.p=this.g=null;var b=a.atlasManager,c,d=null,e,g=0;null!==this.a&&(e=pd(this.a.b),g=this.a.a,f(g)||(g=1),d=this.a.c,Ni||(d=null));var h=2*(this.c+g)+1;e={strokeStyle:e,md:g,size:h,lineDash:d};f(b)?(h=Math.round(h),(d=null===this.d)&&(c=J(this.Rg,this,e)),g=this.nb(),e=b.add(g,h,h,J(this.Sg,this,e),c),this.b=e.image,this.o=[e.offsetX,e.offsetY],c=e.image.width,this.f=d?e.ig:this.b):(this.b=Kd("CANVAS"),this.b.height=h,this.b.width=h,c=h=this.b.width,b=this.b.getContext("2d"),
222this.Sg(e,b,0,0),null===this.d?(b=this.f=Kd("CANVAS"),b.height=e.size,b.width=e.size,b=b.getContext("2d"),this.Rg(e,b,0,0)):this.f=this.b);this.g=[h/2,h/2];this.p=[h,h];this.i=[c,c];Rd.call(this,{opacity:1,rotateWithView:!1,rotation:0,scale:1,snapToPixel:f(a.snapToPixel)?a.snapToPixel:!0})}function qd(a){a=f(a)?a:{};this.g=null;this.d=fq;f(a.geometry)&&this.Vg(a.geometry);this.e=f(a.fill)?a.fill:null;this.f=f(a.image)?a.image:null;this.c=f(a.stroke)?a.stroke:null;this.a=f(a.text)?a.text:null;this.b=
223a.zIndex}function gn(a){w(a)||(a=t(a)?a:[a],a=Kj(a));return a}function Xj(){var a=new jf({color:"rgba(255,255,255,0.4)"}),b=new Lc({color:"#3399CC",width:1.25}),c=[new qd({image:new Qc({fill:a,stroke:b,radius:5}),fill:a,stroke:b})];Xj=function(){return c};return c}function hn(){var a={},b=[255,255,255,1],c=[0,153,255,1];a.Polygon=[new qd({fill:new jf({color:[255,255,255,.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new qd({stroke:new Lc({color:b,width:5})}),new qd({stroke:new Lc({color:c,width:3})})];
224a.MultiLineString=a.LineString;a.Circle=a.Polygon.concat(a.LineString);
224a.Point=[new qd({image:new Qc({radius:6,fill:new jf({color:c}),stroke:new Lc({color:b,width:1.5})}),zIndex:Infinity})];a.MultiPoint=a.Point;a.GeometryCollection=a.Polygon.concat(a.Point);return a}function fq(a){return a.Q()}function Mc(a){var b=f(a)?a:{};a=f(b.condition)?b.condition:Rj;this.n=f(b.duration)?b.duration:200;b=f(b.style)?b.style:new qd({stroke:new Lc({color:[0,0,255,1]})});Bc.call(this,{condition:a,style:b})}function hd(a){Jb.call(this,
225{handleEvent:gq});a=f(a)?a:{};this.a=f(a.condition)?a.condition:jp(Qj,Pm);this.e=f(a.duration)?a.duration:100;this.f=f(a.pixelDelta)?a.pixelDelta:128}function gq(a){var b=!1;if("key"==a.type){var c=a.b.e;if(this.a(a)&&(40==c||37==c||39==c||38==c)){var d=a.map;b=d.R();var e=bh(b),g=e.resolution*this.f,h=0,m=0;40==c?m=-g:37==c?h=-g:39==c?h=g:m=g;c=[h,m];Zg(c,e.rotation);e=this.e;g=b.Ca();f(g)&&(f(e)&&0<e&&d.Ha(Ue({source:g,duration:e,easing:Ok})),d=b.xd([g[0]+c[0],g[1]+c[1]]),b.Na(d));a.preventDefault();
226b=!0}}return!b}function id(a){Jb.call(this,{handleEvent:hq});a=f(a)?a:{};this.e=f(a.condition)?a.condition:Pm;this.a=f(a.delta)?a.delta:1;this.f=f(a.duration)?a.duration:100}function hq(a){var b=!1;if("key"==a.type){var c=a.b.q;if(this.e(a)&&(43==c||45==c)){b=a.map;c=43==c?this.a:-this.a;b.render();var d=b.R();Nm(b,d,c,void 0,this.f);a.preventDefault();b=!0}}return!b}function $c(a){Jb.call(this,{handleEvent:iq});a=f(a)?a:{};this.a=0;this.o=f(a.duration)?a.duration:250;this.f=null;this.g=this.e=void 0}
227function iq(a){var b=!1;if("mousewheel"==a.type){b=a.map;var c=a.b;this.f=a.coordinate;this.a+=c.o;f(this.e)||(this.e=Lf());c=Math.max(80-(Lf()-this.e),0);gb.clearTimeout(this.g);this.g=gb.setTimeout(J(this.i,this,b),c);a.preventDefault();b=!0}return!b}function ad(a){Db.call(this,{handleDownEvent:Ju,handleDragEvent:Ku,handleUpEvent:Lu});a=f(a)?a:{};this.f=null;this.g=void 0;this.a=!1;this.i=0;this.p=f(a.threshold)?a.threshold:.3;this.n=f(a.duration)?a.duration:250}function Ku(a){var b=0,c=this.e[0],
228d=this.e[1];c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);f(this.g)&&(b=c-this.g,this.i+=b,!this.a&&Math.abs(this.i)>this.p&&(this.a=!0));this.g=c;a=a.map;c=Ij(a.a);d=Qm(this.e);d[0]-=c.x;d[1]-=c.y;this.f=a.ka(d);this.a&&(c=a.R(),d=c.Da(),a.render(),Hi(a,c,d+b,this.f))}function Lu(a){if(2>this.e.length){a=a.map;var b=a.R();Ke(b,-1);if(this.a){var c=b.Da(),d=this.f,e=this.n;c=b.constrainRotation(c,0);Hi(a,b,c,d,e)}return!1}return!0}function Ju(a){return 2<=this.e.length?(a=a.map,this.f=null,
229this.g=void 0,this.a=!1,this.i=0,this.o||Ke(a.R(),1),a.render(),!0):!1}function bd(a){Db.call(this,{handleDownEvent:Mu,handleDragEvent:Nu,handleUpEvent:Ou});a=f(a)?a:{};this.f=null;this.i=f(a.duration)?a.duration:400;this.a=void 0;this.g=1}function Nu(a){var b=1,c=this.e[0],d=this.e[1],e=c.clientX-d.clientX;c=c.clientY-d.clientY;e=Math.sqrt(e*e+c*c);f(this.a)&&(b=this.a/e);this.a=e;1!=b&&(this.g=b);a=a.map;e=a.R();c=e.ya();d=Ij(a.a);var g=Qm(this.e);g[0]-=d.x;g[1]-=d.y;this.f=a.ka(g);a.render();Ii(a,
230e,c*b,this.f)}function Ou(a){if(2>this.e.length){a=a.map;var b=a.R();Ke(b,-1);var c=b.ya(),d=this.f,e=this.i;
230c=b.constrainResolution(c,0,this.g-1);Ii(a,b,c,d,e);return!1}return!0}function Mu(a){return 2<=this.e.length?(a=a.map,this.f=null,this.a=void 0,this.g=1,this.o||Ke(a.R(),1),a.render(),!0):!1}function jq(a){a=f(a)?a:{};var b=new Sa,c=new Mm(-.005,.05,100);(f(a.altShiftDragRotate)?a.altShiftDragRotate:1)&&b.push(new Zc);(f(a.doubleClickZoom)?a.doubleClickZoom:1)&&b.push(new gd({delta:a.zoomDelta,
231duration:a.zoomDuration}));(f(a.dragPan)?a.dragPan:1)&&b.push(new Yc({kinetic:c}));(f(a.pinchRotate)?a.pinchRotate:1)&&b.push(new ad);(f(a.pinchZoom)?a.pinchZoom:1)&&b.push(new bd({duration:a.zoomDuration}));if(f(a.keyboard)?a.keyboard:1)b.push(new hd),b.push(new id({delta:a.zoomDelta,duration:a.zoomDuration}));(f(a.mouseWheelZoom)?a.mouseWheelZoom:1)&&b.push(new $c({duration:a.zoomDuration}));(f(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Mc);return b}function Ua(a){var b=f(a)?a:{};a=Gd(b);delete a.layers;
232b=b.layers;Xa.call(this,a);this.c=[];this.a={};ma(this,Uc("layers"),this.Vj,!1,this);null!=b?t(b)&&(b=new Sa(b.slice())):b=new Sa;this.Ah(b)}function jn(a){Cb.call(this,{code:a,units:"m",extent:kq,global:!0,worldExtent:Pu})}function Yt(a,b,c){var d=a.length;c=1<c?c:2;f(b)||(2<c?b=a.slice():b=Array(d));for(var e=0;e<d;e+=c)b[e]=6378137*Math.PI*a[e]/180,b[e+1]=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b}function Zt(a,b,c){var d=a.length;c=1<c?c:2;f(b)||(2<c?b=a.slice():b=Array(d));
233for(var e=0;e<d;e+=c)b[e]=180*a[e]/(6378137*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b}function og(a,b){Cb.call(this,{code:a,units:"degrees",extent:lq,axisOrientation:b,global:!0,worldExtent:lq})}function mq(){Ie(bp);Ie(cp);Ab()}function Va(a){La.call(this,f(a)?a:{})}function Ea(a){a=f(a)?a:{};var b=Gd(a);delete b.preload;delete b.useInterimTilesOnError;La.call(this,b);this.d(f(a.preload)?a.preload:0);this.e(f(a.useInterimTilesOnError)?a.useInterimTilesOnError:!0)}
234function Ga(a){a=f(a)?a:{};var b=Gd(a);delete b.style;delete b.renderBuffer;delete b.updateWhileAnimating;delete b.updateWhileInteracting;La.call(this,b);this.c=f(a.renderBuffer)?a.renderBuffer:100;this.g=null;this.a=void 0;this.e(a.style);this.o=f(a.updateWhileAnimating)?a.updateWhileAnimating:!1;this.n=f(a.updateWhileInteracting)?a.updateWhileInteracting:!1}function uc(a,b,c,d,e){this.U={};this.c=a;this.n=b;this.e=c;this.H=d;this.Nc=e;this.f=this.b=this.a=this.oa=this.ba=this.X=null;this.Ga=this.Fa=
235this.o=this.N=this.L=this.J=0;this.Ra=!1;this.g=this.rc=0;this.vb=!1;this.T=0;this.d="";this.q=this.p=this.xb=this.wb=0;this.sa=this.l=this.i=null;this.V=[];this.sc=fd()}function nq(a,b,c){if(null!==a.f){b=Ji(b,0,c,2,a.H,a.V);c=a.c;var d=a.sc,e=c.globalAlpha;1!=a.o&&(c.globalAlpha=e*a.o);var g=a.rc;a.Ra&&(g+=a.Nc);var h;var m=0;for(h=b.length;m<h;m+=2){var r=b[m]-a.J,x=b[m+1]-a.L;a.vb&&(r=r+.5|0,x=x+.5|0);if(0!==g||1!=a.g){var F=r+a.J,M=x+a.L;Ae(d,F,M,a.g,a.g,g,-F,-M);c.setTransform(d[0],d[1],d[4],
236d[5],d[12],d[13])}c.drawImage(a.f,a.Fa,a.Ga,a.T,a.N,r,x,a.T,a.N)}0===g&&1==a.g||c.setTransform(1,0,0,1,0,0);1!=a.o&&(c.globalAlpha=e)}}function Sh(a,b,c,d){var e=0;if(null!==a.sa&&""!==a.d){null===a.i||jl(a,a.i);null===a.l||Oi(a,a.l);var g=a.sa,h=a.c,m=a.oa;null===m?(h.font=g.font,h.textAlign=g.textAlign,h.textBaseline=g.textBaseline,a.oa={font:g.font,textAlign:g.textAlign,textBaseline:g.textBaseline}):(m.font!=g.font&&(m.font=h.font=g.font),m.textAlign!=g.textAlign&&(m.textAlign=h.textAlign=g.textAlign),
237m.textBaseline!=g.textBaseline&&(m.textBaseline=h.textBaseline=g.textBaseline));b=Ji(b,e,c,d,a.H,a.V);for(g=a.c;e<c;e+=d){h=b[e]+a.wb;m=b[e+1]+a.xb;if(0!==a.p||1!=a.q){var r=Ae(a.sc,h,m,a.q,a.q,a.p,-h,-m);g.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}null===a.l||g.strokeText(a.d,h,m);null===a.i||g.fillText(a.d,h,m)}0===a.p&&1==a.q||g.setTransform(1,0,0,1,0,0)}}function kn(a,b,c,d,e,g){var h=a.c;a=Ji(b,c,d,e,a.H,a.V);h.moveTo(a[0],a[1]);for(b=2;b<a.length;b+=2)h.lineTo(a[b],a[b+1]);g&&h.lineTo(a[0],
238a[1]);return d}function oq(a,b,c,d,e){var g=a.c,h;var m=0;for(h=d.length;m<h;++m)c=kn(a,b,c,d[m],e,!0),g.closePath();return c}function kl(a){var b=Jc(Fd(a.U),Number);Bd(b);var c,d;var e=0;for(c=b.length;e<c;++e){var g=a.U[b[e].toString()];var h=0;for(d=g.length;h<d;++h)g[h](a)}}function jl(a,b){var c=a.c,d=a.X;null===d?(c.fillStyle=b.fillStyle,a.X={fillStyle:b.fillStyle}):d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle)}function Oi(a,b){var c=a.c,d=a.ba;null===d?(c.lineCap=b.lineCap,
239Ni&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.ba={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle}):(d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap),Ni&&!rd(d.lineDash,b.lineDash)&&c.setLineDash(d.lineDash=b.lineDash),d.lineJoin!=b.lineJoin&&(d.lineJoin=c.lineJoin=b.lineJoin),d.lineWidth!=b.lineWidth&&(d.lineWidth=c.lineWidth=
240b.lineWidth),d.miterLimit!=b.miterLimit&&(d.miterLimit=c.miterLimit=b.miterLimit),d.strokeStyle!=b.strokeStyle&&(d.strokeStyle=c.strokeStyle=b.strokeStyle))}function Vf(a,b,c){this.oa=a;this.T=b;this.d=null;this.e=0;this.resolution=c;this.L=this.J=null;this.a=[];this.coordinates=[];this.X=fd();this.b=[];this.sa=[];this.ba=fd()}function Pi(a,b,c,d,e,g){var h=a.coordinates.length,m=a.Pe(),r=[b[c],b[c+1]],x=[NaN,NaN],F=!0,M;for(M=c+e;M<d;M+=e){x[0]=b[M];x[1]=b[M+1];var S=Fh(m,x);S!==Y?(F&&(a.coordinates[h++]=
241r[0],a.coordinates[h++]=r[1]),a.coordinates[h++]=x[0],a.coordinates[h++]=x[1],F=!1):1===S?(a.coordinates[h++]=x[0],a.coordinates[h++]=x[1],F=!1):F=!0;r[0]=x[0];r[1]=x[1];var Y=S}M===c+e&&(a.coordinates[h++]=r[0],a.coordinates[h++]=r[1]);g&&(a.coordinates[h++]=b[c],a.coordinates[h++]=b[c+1]);return h}function ih(a,b){a.J=[0,b,0];a.a.push(a.J);a.L=[0,b,0];a.b.push(a.L)}function pq(a,b,c,d,e,g,h,m,r){var x;Cm(d,a.X)?x=a.sa:(x=Ji(a.coordinates,0,a.coordinates.length,2,d,a.sa),Dh(a.X,d));d=0;var F=h.length,
242M=0;for(a=a.ba;d<F;){var S=h[d];switch(S[0]){case 0:M=S[1];var Y=C(M).toString();f(g[Y])?d=S[2]:f(r)&&!ta(r,M.Q().G())?d=S[2]:++d;break;case 1:b.beginPath();++d;break;case 2:M=S[1];Y=x[M];var O=x[M+1],P=x[M+2]-Y;M=x[M+3]-O;b.arc(Y,O,Math.sqrt(P*P+M*M),0,2*Math.PI,!0);++d;break;case 3:b.closePath();++d;break;case 4:M=S[1];Y=S[2];var Z=S[3];var ca=S[4]*c;var ea=S[5]*c,ja=S[6];var ka=S[7];var va=S[8],na=S[9];O=S[11];P=S[12];var Ia=S[13],cb=S[14];for(S[10]&&(O+=e);M<Y;M+=2){S=x[M]-ca;var wa=x[M+1]-ea;
243Ia&&(S=S+.5|0,wa=wa+.5|0);if(1!=P||0!==O){var zb=S+ca,Ub=wa+ea;Ae(a,zb,Ub,P,P,O,-zb,-Ub);b.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])}zb=b.globalAlpha;1!=ka&&(b.globalAlpha=zb*ka);b.drawImage(Z,va,na,cb,ja,S,wa,cb*c,ja*c);1!=ka&&(b.globalAlpha=zb);1==P&&0===O||b.setTransform(1,0,0,1,0,0)}++d;break;case 5:M=S[1];Y=S[2];ca=S[3];ea=S[4]*c;ja=S[5]*c;O=S[6];P=S[7]*c;Z=S[8];for(ka=S[9];M<Y;M+=2){S=x[M]+ea;wa=x[M+1]+ja;if(1!=P||0!==O)Ae(a,S,wa,P,P,O,-S,-wa),b.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]);
244ka&&b.strokeText(ca,S,wa);Z&&b.fillText(ca,S,wa);1==P&&0===O||b.setTransform(1,0,0,1,0,0)}++d;break;case 6:if(f(m)&&(M=S[1],M=m(M)))return M;++d;break;case 7:b.fill();++d;break;case 8:M=S[1];Y=S[2];b.moveTo(x[M],x[M+1]);for(M+=2;M<Y;M+=2)b.lineTo(x[M],x[M+1]);++d;break;case 9:b.fillStyle=S[1];++d;break;case 10:M=f(S[7])?S[7]:!0;Y=S[2];b.strokeStyle=S[1];b.lineWidth=M?Y*c:Y;b.lineCap=S[3];b.lineJoin=S[4];b.miterLimit=S[5];Ni&&b.setLineDash(S[6]);++d;break;case 11:b.font=S[1];b.textAlign=S[2];b.textBaseline=
245S[3];++d;break;case 12:b.stroke();++d;break;default:++d}}}function ln(a){var b=a.b;b.reverse();var c,d=b.length,e,g,h=-1;for(c=0;c<d;++c)if(e=b[c],g=e[0],6==g)h=c;else if(0==g){e[2]=c;e=a.b;for(g=c;h<g;){var m=e[h];e[h]=e[g];e[g]=m;++h;--g}h=-1}}function jh(a,b){a.J[2]=a.a.length;a.J=null;a.L[2]=a.b.length;a.L=null;b=[6,b];a.a.push(b);a.b.push(b)}function Qi(a,b,c){Vf.call(this,a,b,c);this.i=this.N=null;this.H=this.p=this.n=this.V=this.U=this.o=this.l=this.q=this.g=this.f=this.c=void 0}function mn(a,
246b,c){Vf.call(this,a,b,c);this.c={Xc:void 0,Sc:void 0,Tc:null,Uc:void 0,Vc:void 0,Wc:void 0,Ze:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function qq(a,b,c,d,e){var g=a.coordinates.length;b=Pi(a,b,c,d,e,!1);g=[8,g,b];a.a.push(g);a.b.push(g);return d}function rq(a){var b=a.c,c=b.strokeStyle,d=b.lineCap,e=b.lineDash,g=b.lineJoin,h=b.lineWidth,m=b.miterLimit;b.Xc==c&&b.Sc==d&&rd(b.Tc,e)&&b.Uc==g&&b.Vc==h&&b.Wc==m||(b.Ze!=a.coordinates.length&&
247(a.a.push([12]),b.Ze=a.coordinates.length),a.a.push([10,c,h,d,g,m,e],[1]),b.Xc=c,b.Sc=d,b.Tc=e,b.Uc=g,b.Vc=h,b.Wc=m)}function nn(a,b,c){Vf.call(this,a,b,c);this.c={Mf:void 0,Xc:void 0,Sc:void 0,Tc:null,Uc:void 0,Vc:void 0,Wc:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function sq(a,b,c,d,e){var g=a.c,h=[1];a.a.push(h);a.b.push(h);var m;h=0;for(m=d.length;h<m;++h){var r=d[h],x=a.coordinates.length;c=Pi(a,b,c,r,e,!0);c=
248[8,x,c];x=[3];a.a.push(c,x);a.b.push(c,x);c=r}b=[7];a.b.push(b);f(g.fillStyle)&&a.a.push(b);f(g.strokeStyle)&&(g=[12],a.a.push(g),a.b.push(g));return c}function on(a){var b=a.c,c=b.fillStyle,d=b.strokeStyle,e=b.lineCap,g=b.lineDash,h=b.lineJoin,m=b.lineWidth,r=b.miterLimit;f(c)&&b.Mf!=c&&(a.a.push([9,c]),b.Mf=b.fillStyle);!f(d)||b.Xc==d&&b.Sc==e&&b.Tc==g&&b.Uc==h&&b.Vc==m&&b.Wc==r||(a.a.push([10,d,m,e,h,r,g]),b.Xc=d,b.Sc=e,b.Tc=g,b.Uc=h,b.Vc=m,b.Wc=r)}function ll(a,b,c){Vf.call(this,a,b,c);this.p=
249this.n=this.V=null;this.i="";this.U=this.o=this.l=this.q=0;this.g=this.f=this.c=null}function kh(a,b,c,d){this.q=a;this.d=b;this.i=c;this.e=d;this.a={};this.f=se(1,1);this.g=fd()}function Yj(a){for(var b in a.a){var c=a.a[b],d;for(d in c)c[d].de()}}function lh(a,b,c,d,e,g){var h=Jc(Fd(a.a),Number);Bd(h);var m=a.d,r=m[0],x=m[1],F=m[2];m=m[3];r=[r,x,r,m,F,m,F,x];Ji(r,0,8,2,d,r);b.save();b.beginPath();b.moveTo(r[0],r[1]);b.lineTo(r[2],r[3]);b.lineTo(r[4],r[5]);b.lineTo(r[6],r[7]);b.closePath();b.clip();
250r=0;for(x=h.length;r<x;++r){var M=a.a[h[r].toString()];F=0;for(m=pg.length;F<m;++F){var S=M[pg[F]];f(S)&&pq(S,b,c,d,e,g,S.a,void 0)}}b.restore()}function Qu(a,b,c,d,e,g,h){var m=Jc(Fd(a.a),Number);Bd(m,function(Y,O){return O-Y});var r,x,F;var M=0;for(r=m.length;M<r;++M){var S=a.a[m[M].toString()];for(x=pg.length-1;0<=x;--x)if(F=S[pg[x]],f(F)&&(F=pq(F,b,1,c,d,e,F.b,g,h)))return F}}function ie(a){he.call(this,a);this.J=fd()}function Zj(a,b,c,d,e){var g=a.a;Jf(g,b)&&(a=f(e)?e:ml(a,d,0),a=new uc(c,d.pixelRatio,
251d.extent,a,d.viewState.rotation),g.dispatchEvent(new Ye(b,g,a,null,d,c,null)),kl(a))}function ml(a,b,c){var d=b.viewState,e=b.pixelRatio;return Ae(a.J,e*b.size[0]/2,e*b.size[1]/2,e/d.resolution,-e/d.resolution,-d.rotation,-d.center[0]+c,-d.center[1])}function tq(a,b){var c=[0,0];Cf(b,a,c);return c}function hb(a,b,c){mb.call(this);this.uh(a,f(b)?b:0,c)}function uq(a){var b=a.j[a.s]-a.j[0];a=a.j[a.s+1]-a.j[1];return b*b+a*a}
251function sb(a){gc.call(this);this.d=f(a)?a:null;pn(this)}function vq(a){var b=
252[],c;var d=0;for(c=a.length;d<c;++d)b.push(a[d].clone());return b}function qn(a){var b;if(null!==a.d){var c=0;for(b=a.d.length;c<b;++c)Ge(a.d[c],"change",a.k,!1,a)}}function pn(a){var b;if(null!==a.d){var c=0;for(b=a.d.length;c<b;++c)ma(a.d[c],"change",a.k,!1,a)}}function wq(a,b,c,d,e){var g=NaN,h=NaN,m=(c-b)/d;if(0!==m)if(1==m)g=a[b],h=a[b+1];else if(2==m)g=.5*a[b]+.5*a[b+d],h=.5*a[b+1]+.5*a[b+d+1];else{h=a[b];m=a[b+1];var r=0;g=[0];var x;for(x=b+d;x<c;x+=d){var F=a[x],M=a[x+1];r+=Math.sqrt((F-h)*
253(F-h)+(M-m)*(M-m));g.push(r);h=F;m=M}c=.5*r;var S;h=bf;m=0;for(r=g.length;m<r;)x=m+r>>1,F=h(c,g[x]),0<F?m=x+1:(r=x,S=!F);S=S?m:~m;0>S?(c=(c-g[-S-2])/(g[-S-1]-g[-S-2]),b+=(-S-2)*d,g=yh(a[b],a[b+d],c),h=yh(a[b+1],a[b+d+1],c)):(g=a[b+S*d],h=a[b+S*d+1])}return null!=e?(e[0]=g,e[1]=h,e):[g,h]}function rn(a,b,c,d,e,g){if(c==b)return null;if(e<a[b+d-1])return g?(c=a.slice(b,b+d),c[d-1]=e,c):null;if(a[c-1]<e)return g?(c=a.slice(c-d,c),c[d-1]=e,c):null;if(e==a[b+d-1])return a.slice(b,b+d);b/=d;for(c/=d;b<
254c;)g=b+c>>1,e<a[(g+1)*d-1]?c=g:b=g+1;c=a[b*d-1];if(e==c)return a.slice((b-1)*d,(b-1)*d+d);g=(e-c)/(a[(b+1)*d-1]-c);c=[];var h;for(h=0;h<d-1;++h)c.push(yh(a[(b-1)*d+h],a[b*d+h],g));c.push(e);return c}function Ru(a,b,c,d,e,g){var h=0;if(g)return rn(a,h,b[b.length-1],c,d,e);if(d<a[c-1])return e?(a=a.slice(0,c),a[c-1]=d,a):null;if(a[a.length-1]<d)return e?(a=a.slice(a.length-c),a[c-1]=d,a):null;e=0;for(g=b.length;e<g;++e){var m=b[e];if(h!=m){if(d<a[h+c-1])break;if(d<=a[m-1])return rn(a,h,m,c,d,!1);h=
255m}}return null}function Ha(a,b){mb.call(this);this.c=null;this.p=this.H=this.i=-1;this.W(a,b)}function xq(a){a.i!=a.b&&(a.c=wq(a.j,0,a.j.length,a.s,a.c),a.i=a.b);return a.c}function kf(a,b,c){Df(a,b,c);a.k()}function Qa(a,b){mb.call(this);this.c=[];this.i=this.p=-1;this.W(a,b)}function yq(a){var b=[],c=a.j,d=0,e=a.c;a=a.s;var g;var h=0;for(g=e.length;h<g;++h){var m=e[h];d=wq(c,d,m,a);Tb(b,d);d=m}return b}function ak(a,b,c,d){Df(a,b,c);a.c=d;a.k()}function nl(a,b){var c="XY",d=[],e=[],g;var h=0;for(g=
256b.length;h<g;++h){var m=b[h];0===h&&(c=m.a);Tb(d,m.j);e.push(d.length)}ak(a,c,d,e)}function $a(a,b){mb.call(this);this.W(a,b)}function Ra(a,b){mb.call(this);this.c=[];this.p=-1;this.H=null;this.N=this.J=this.L=-1;this.i=null;this.W(a,b)}function sn(a){if(a.p!=a.b){var b=a.j,c=a.c,d=a.s,e=0,g=[],h;Yd();var m=0;for(h=c.length;m<h;++m){var r=c[m];var x=Aj(He(Infinity,Infinity,-Infinity,-Infinity,void 0),b,e,r[0],d);g.push((x[0]+x[2])/2,(x[1]+x[3])/2);e=r[r.length-1]}b=mh(a);c=a.c;d=a.s;e=0;m=[];h=0;
257for(x=c.length;h<x;++h)r=c[h],m=Zp(b,e,r,d,g,2*h,m),e=r[r.length-1];a.H=m;a.p=a.b}return a.H}function mh(a){if(a.N!=a.b){var b=a.j;a:{var c=a.c;var d;var e=0;for(d=c.length;e<d;++e)if(!bq(b,c[e],a.s,void 0)){c=!1;break a}c=!0}c?a.i=b:(a.i=b.slice(),a.i.length=cq(a.i,a.c,a.s));a.N=a.b}return a.i}function pl(a,b,c,d){Df(a,b,c);a.c=d;a.k()}function tn(a,b){var c="XY",d=[],e=[],g;var h=0;for(g=b.length;h<g;++h){var m=b[h];0===h&&(c=m.a);var r=d.length;var x=m.c;var F;var M=0;for(F=x.length;M<F;++M)x[M]+=
258r;Tb(d,m.j);e.push(x)}pl(a,c,d,e)}function un(a,b){return C(a)-C(b)}function bk(a,b){a=.5*a/b;return a*a}function ck(a,b,c,d,e,g){var h=!1,m;var r=c.f;null!==r&&(m=r.gd(),2==m||3==m?r.xf(e,g):(0==m&&r.load(),r.$e(e,g),h=!0));e=(0,c.d)(b);null!=e&&(d=e.Ve(d),(0,zq[d.M()])(a,d,c,b));return h}function vn(a,b,c,d,e){Di.call(this,a,b,c,2,d);this.a=e}function Zb(a){fc.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.l=f(a.resolutions)?a.resolutions:
259null}function wn(a,b){null!==a.l&&(b=cg(a.l,b,0),b=a.l[b]);return b}function xn(a,b){a.b().src=b}function Ri(a,b){tc.call(this,a);this.image=b}function vc(a){Zb.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions,state:f(a.state)?a.state:void 0});this.T=a.canvasFunction;this.J=null;this.N=0;this.X=f(a.ratio)?a.ratio:1.5}function Aq(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function Bq(a){if(!a)return!1;
259try{return!!a.$goog_Thenable}catch(b){return!1}}
260function ql(a,b){rl||Su();yn||(rl(),yn=!0);sl.push(new Tu(a,b))}function Su(){if(gb.Promise&&gb.Promise.resolve){var a=gb.Promise.resolve();rl=function(){a.then(Cq)}}else rl=function(){Yk(Cq)}}function Cq(){for(;sl.length;){var a=sl;sl=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.b.call(c.a)}catch(d){xp(d)}}}yn=!1}function Tu(a,b){this.b=a;this.a=b}function nh(a,b){this.a=Th;this.f=void 0;this.b=this.c=null;this.d=this.e=!1;try{var c=this;a.call(b,function(d){Si(c,tl,d)},function(d){Si(c,Fg,d)})}catch(d){Si(this,
261Fg,d)}}function Dq(a,b){if(a.a==Th)if(a.c){var c=a.c;if(c.b){for(var d=0,e=-1,g=0,h;h=c.b[g];g++)if(h=h.Rc)if(d++,h==a&&(e=g),0<=e&&1<d)break;0<=e&&(c.a==Th&&1==d?Dq(c,b):(d=c.b.splice(e,1)[0],Eq(c,d,Fg,b)))}}else Si(a,Fg,b)}function Uu(a,b){a.b&&a.b.length||a.a!=tl&&a.a!=Fg||a.e||(a.e=!0,ql(a.q,a));a.b||(a.b=[]);a.b.push(b)}function Vu(a,b,c,d){var e={Rc:null,Wg:null,Yg:null};e.Rc=new nh(function(g,h){e.Wg=b?function(m){try{var r=b.call(d,m);g(r)}catch(x){h(x)}}:g;e.Yg=c?function(m){try{var r=c.call(d,
262m);!f(r)&&m instanceof dk?h(m):g(r)}catch(x){h(x)}}:h});e.Rc.c=a;Uu(a,e);return e.Rc}function Si(a,b,c){if(a.a==Th){if(a==c)b=Fg,c=new TypeError("Promise cannot resolve to itself");else{if(Bq(c)){a.a=1;c.then(a.g,a.i,a);return}if(v(c))try{var d=c.then;if(w(d)){Wu(a,c,d);return}}catch(e){b=Fg,c=e}}a.f=c;a.a=b;a.e||(a.e=!0,ql(a.q,a));b!=Fg||c instanceof dk||Xu(a,c)}}function Wu(a,b,c){function d(h){g||(g=!0,a.i(h))}function e(h){g||(g=!0,a.g(h))}a.a=1;var g=!1;try{c.call(b,e,d)}catch(h){d(h)}}function Eq(a,
263b,c,d){if(c==tl)b.Wg(d);else{if(b.Rc)for(;a&&a.d;a=a.c)a.d=!1;b.Yg(d)}}function Xu(a,b){a.d=!0;ql(function(){a.d&&Yu.call(null,b)})}function dk(a){ia.call(this,a)}function Fq(a,b,c){if(w(a))c&&(a=J(a,c));else if(a&&"function"==typeof a.handleEvent)a=J(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:gb.setTimeout(a,b||0)}function Gq(){}function Hq(a){var b;(b=a.b)||(b={},Iq(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b}function Jq(){}function Kq(a){return(a=Iq(a))?new ActiveXObject(a):
264new XMLHttpRequest}function Iq(a){if(!a.a&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.a=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.a}function zn(a){if(An){An=!1;var b=gb.location;if(b){var c=b.href;if((c&&=(c=zn(c)[3]||null)?decodeURI(c):
265c)&&c!=b.hostname)throw An=!0,Error();}}return a.match(Zu)}function $u(a,b){a=a.split("\x26");for(var c=0;c<a.length;c++){var d=a[c].indexOf("\x3d"),e=null,g=null;0<=d?(e=a[c].substring(0,d),g=a[c].substring(d+1)):e=a[c];b(e,g?decodeURIComponent(g.replace(/\+/g," ")):"")}}function Ti(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")}function Lq(a,b,c){if(t(b))for(var d=0;d<b.length;d++)Lq(a,
266String(b[d]),c);else null!=b&&c.push("\x26",a,""===b?"":"\x3d",encodeURIComponent(String(b)))}function Ui(a,b){for(var c in b)Lq(c,b[c],a);return a}function ul(a){Tc.call(this);this.H=new Lj;this.i=a||null;this.b=!1;this.g=this.Y=null;this.e=this.o="";this.a=this.l=this.d=this.q=!1;this.f=0;this.c=null;this.n=av;this.p=this.J=!1}function bv(a){return jc&&Cd(9)&&E(a.timeout)&&f(a.ontimeout)}function cv(a){return"content-type"==a.toLowerCase()}function Mq(a,b){a.b=!1;a.Y&&(a.a=!0,a.Y.abort(),a.a=!1);
267a.e=b;Nq(a);vl(a)}function Nq(a){a.q||(a.q=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}function Oq(a){if(a.b&&"undefined"!=typeof Bn&&(!a.g[1]||4!=ek(a)||2!=Cn(a)))if(a.d&&4==ek(a))Fq(a.Xg,0,a);else if(a.dispatchEvent("readystatechange"),4==ek(a)){a.b=!1;try{if(Pq(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{try{var b=2<ek(a)?a.Y.statusText:""}catch(c){b=""}a.e=b+" ["+Cn(a)+"]";Nq(a)}}finally{vl(a)}}}function vl(a,b){if(a.Y){Qq(a);var c=a.Y,d=a.g[0]?A:null;a.Y=null;
268a.g=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}}function Qq(a){a.Y&&a.p&&(a.Y.ontimeout=null);E(a.c)&&(gb.clearTimeout(a.c),a.c=null)}function Pq(a){var b=Cn(a);a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}
268if(!c){if(b=0===b)a=zn(String(a.o))[1]||null,!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1)),b=!dv.test(a?a.toLowerCase():"");c=b}return c}function ek(a){return a.Y?a.Y.readyState:0}function Cn(a){try{return 2<
269ek(a)?a.Y.status:-1}catch(b){return-1}}function Dn(a){try{return a.Y?a.Y.responseText:""}catch(b){return""}}function En(a){if("undefined"!=typeof XMLSerializer)return(new XMLSerializer).serializeToString(a);if(a=a.xml)return a;throw Error("Your browser does not support serializing XML documents");}function ev(a,b){return Vi.createElementNS(a,b)}function fv(a,b){null===a&&(a="");return Vi.createNode(1,b,a)}function Me(a,b){return Rq(a,b,[]).join("")}function Rq(a,b,c){if(4==a.nodeType||3==a.nodeType)b?
270c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else for(a=a.firstChild;null!==a;a=a.nextSibling)Rq(a,b,c);return c}function gv(a){return a.localName}function hv(a){var b=a.localName;return f(b)?b:a.baseName}function iv(a){return a instanceof Document}function jv(a){return v(a)&&9==a.nodeType}function kv(a){return a instanceof Node}function lv(a){return v(a)&&f(a.nodeType)}function mv(a,b,c){return a.getAttributeNS(b,c)||""}function nv(a,b,c){var d="";a=ov(a,b,c);f(a)&&
271(d=a.nodeValue);return d}function pv(a,b,c){return a.getAttributeNodeNS(b,c)}function qv(a,b,c){var d=null;a=a.attributes;for(var e,g,h=0,m=a.length;h<m;++h)if(e=a[h],e.namespaceURI==b&&(g=e.prefix?e.prefix+":"+c:c,g==e.nodeName)){d=e;break}return d}function rv(a,b,c,d){a.setAttributeNS(b,c,d)}function sv(a,b,c,d){null===b?a.setAttribute(c,d):(b=a.ownerDocument.createNode(2,c,b),b.nodeValue=d,a.setAttributeNode(b))}function Wf(a){return(new DOMParser).parseFromString(a,"application/xml")}function tv(a,
272b){return function(c,d){c=a.call(b,c,d);f(c)&&Tb(d[d.length-1],c)}}function mc(a,b){return function(c,d){c=a.call(f(b)?b:this,c,d);f(c)&&d[d.length-1].push(c)}}function Cc(a,b){return function(c,d){c=a.call(f(b)?b:this,c,d);f(c)&&(d[d.length-1]=c)}}function Ed(a){return function(b,c){var d=a.call(f(void 0)?void 0:this,b,c);f(d)&&pj(c[c.length-1],f(void 0)?void 0:b.localName).push(d)}}function da(a,b){return function(c,d){var e=a.call(f(void 0)?void 0:this,c,d);f(e)&&(d[d.length-1][f(b)?b:c.localName]=
273e)}}function Ca(a,b,c){return cd(a,b,c)}function sa(a,b){return function(c,d,e){a.call(f(b)?b:this,c,d,e);e[e.length-1].P.appendChild(c)}}function Sq(a){var b,c;return function(d,e,g){if(!f(b)){b={};var h={};h[d.localName]=a;b[d.namespaceURI]=h;c=Zd(d.localName)}Tq(b,c,e,g)}}function Zd(a,b){return function(c,d,e){c=d[d.length-1].P;d=a;f(d)||(d=e);e=b;f(b)||(e=c.namespaceURI);return jd(e,d)}}function Xf(a,b){for(var c=b.length,d=Array(c),e=0;e<c;++e)d[e]=a[b[e]];return d}function cd(a,b,c){c=f(c)?
274c:{};var d;var e=0;for(d=a.length;e<d;++e)c[a[e]]=b;return c}function Of(a,b,c,d){for(b=b.firstElementChild;null!==b;b=b.nextElementSibling){var e=a[b.namespaceURI];f(e)&&(e=e[b.localName],f(e)&&e.call(d,b,c))}}function ua(a,b,c,d,e){d.push(a);Of(b,c,d,e);return d.pop()}function Tq(a,b,c,d,e,g){for(var h=(f(e)?e:c).length,m,r,x=0;x<h;++x)m=c[x],f(m)&&(r=b.call(g,m,d,f(e)?e[x]:void 0),f(r)&&a[r.namespaceURI][r.localName].call(g,r,m,d))}function wc(a,b,c,d,e,g,h){e.push(a);Tq(b,c,d,e,g,h);e.pop()}function Uq(a,
275b,c){return function(d,e,g){d=new ul;d.n="text";ma(d,"complete",function(h){h=h.target;if(Pq(h)){var m=b.M();if("json"==m)var r=Dn(h);else if("text"==m)r=Dn(h);else if("xml"==m){if(!jc)try{r=h.Y?h.Y.responseXML:null}catch(x){r=null}null!=r||(r=Wf(Dn(h)))}null!=r&&(r=b.ja(r,{featureProjection:g}),c.call(this,r))}qf(h)},!1,this);d.send(a)}}function Vq(a,b){return Uq(a,b,function(c){this.Oc(c)})}function Wq(){return[[-Infinity,-Infinity,Infinity,Infinity]]}function fk(a){this.a=Xq(a);this.b={}}function Yq(a){a=
276a.a.all();return Jc(a,function(b){return b[4]})}function gk(a,b){a=a.a.search(b);return Jc(a,function(c){return c[4]})}function Wi(a,b,c,d){return Zq(gk(a,b),c,d)}function Zq(a,b,c){for(var d,e=0,g=a.length;e<g&&!(d=b.call(c,a[e]));e++);return d}function bb(a){a=f(a)?a:{};fc.call(this,{attributions:a.attributions,logo:a.logo,projection:void 0,state:"ready",wrapX:f(a.wrapX)?a.wrapX:!0});this.J=A;f(a.loader)?this.J=a.loader:f(a.url)&&(this.J=Vq(a.url,a.format));this.oa=f(a.strategy)?a.strategy:Wq;this.a=
277new fk;this.N=new fk;this.c={};this.e={};this.g={};this.i={};f(a.features)&&$q(this,a.features)}function ar(a,b,c){a.i[b]=[ma(c,"change",a.Pg,!1,a),ma(c,"propertychange",a.Pg,!1,a)]}function br(a,b,c){var d=!0,e=c.$;f(e)?e.toString()in a.e?d=!1:a.e[e.toString()]=c:a.g[b]=c;return d}function $q(a,b){var c,d=[],e=[],g=[];var h=0;for(c=b.length;h<c;h++){var m=b[h];var r=C(m).toString();br(a,r,m)&&e.push(m)}h=0;for(c=e.length;h<c;h++)m=e[h],r=C(m).toString(),ar(a,r,m),b=m.Q(),null!=b?(r=b.G(),d.push(r),
278g.push(m)):a.c[r]=m;a.a.load(d,g);h=0;for(c=e.length;h<c;h++)a.dispatchEvent(new qg("addfeature",e[h]))}function uv(a,b,c){a.$c([b[0],b[1],b[0],b[1]],function(d){if(d.Q().Jb(b[0],b[1]))return c.call(void 0,d)})}function cr(a,b){for(var c in a.e)if(a.e[c]===b){delete a.e[c];break}}function qg(a,b){tc.call(this,a);this.feature=b}function Pb(a){this.a=a.source;this.ba=fd();this.c=se();this.e=[0,0];this.n=null;vc.call(this,{attributions:a.attributions,canvasFunction:J(this.zi,this),logo:a.logo,projection:a.projection,
279ratio:a.ratio,resolutions:a.resolutions,state:this.a.o});this.p=null;this.g=void 0;this.Mg(a.style);ma(this.a,"change",this.am,void 0,this)}function vv(a,b,c,d,e){return Ae(a.ba,e[0]/2,e[1]/2,d/c,-d/c,0,-b[0],-b[1])}function Ze(a){ie.call(this,a);this.e=null;this.f=fd();this.c=this.d=null}function ue(a){ie.call(this,a);this.c=this.f=null;this.q=!1;this.g=null;this.l=fd();this.e=null;this.p=this.H=this.n=NaN;this.i=this.d=null;this.L=[0,0]}function ve(a){ie.call(this,a);this.d=!1;this.q=-1;this.i=
280NaN;this.f=Yd();this.c=this.g=null;this.e=se()}function hk(a,b){mg.call(this,0,b);this.d=se();this.b=this.d.canvas;this.b.style.width="100%";this.b.style.height="100%";this.b.className="ol-unselectable";W(a,this.b,0);this.a=!0;this.e=fd()}function dr(a,b,c){var d=a.g,e=a.d;if(Jf(d,b)){var g=c.extent,h=c.pixelRatio,m=c.viewState,r=m.projection,x=m.resolution;m=m.rotation;var F=0;if(r.c){var M=r.G();r=la(M);var S=c.focus[0];if(S<M[0]||S>M[2])F=Math.ceil((M[0]-S)/r),F*=r,g=[g[0]+F,g[1],g[2]+F,g[3]]}r=
281c.pixelRatio;M=c.viewState;S=M.resolution;F=Ae(a.e,a.b.width/2,a.b.height/2,r/S,-r/S,-M.rotation,-M.center[0]-F,-M.center[1]);x=new kh(.5*x/h,g,x);g=new uc(e,h,g,F,m);d.dispatchEvent(new Ye(b,d,g,x,c,e,null));Yj(x);x.la()||lh(x,e,h,F,m,{});kl(g);a.c=x}}function $d(a,b){he.call(this,a);this.target=b}function Be(a){var b=Kd("DIV");b.style.position="absolute";$d.call(this,a,b);this.c=null;this.d=Kf()}function Ne(a){var b=Kd("DIV");b.style.position="absolute";$d.call(this,a,b);this.d=!0;this.q=1;this.g=
2820;this.c={}}function wv(a,b){this.target=Kd("DIV");this.target.style.position="absolute";this.target.style.width="100%";this.target.style.height="100%";this.d=a;this.c=b;this.f=U(Bf(a,b));this.g=a.ma(b[0]);this.a={};this.b=null;this.e=Kf();this.i=[0,0]}function we(a){this.g=se();var b=this.g.canvas;b.style.maxWidth="none";b.style.position="absolute";$d.call(this,a,b);this.d=!1;this.n=-1;this.o=NaN;this.q=Yd();this.c=this.l=null;this.H=fd();this.p=fd()}function Fn(a,b,c,d){var e=a.g;a=a.a;Jf(a,b)&&
283(d=new uc(e,c.pixelRatio,c.extent,d,c.viewState.rotation),a.dispatchEvent(new Ye(b,a,d,null,c,e,null)),kl(d))}function Uh(a,b){mg.call(this,0,b);this.a=null;this.a=se();b=this.a.canvas;b.style.position="absolute";b.style.width="100%";b.style.height="100%";b.className="ol-unselectable";W(a,b,0);this.e=fd();this.b=Kd("DIV");this.b.className="ol-unselectable";b=this.b.style;b.position="absolute";b.width="100%";b.height="100%";ma(this.b,"touchstart",Hf);W(a,this.b,0);this.d=!0}function er(a,b,c){var d=
284a.g;if(Jf(d,b)){var e=c.extent,g=c.pixelRatio,h=c.viewState,m=h.resolution,r=h.rotation,x=a.a,F=x.canvas;Ae(a.e,F.width/2,F.height/2,g/h.resolution,-g/h.resolution,-h.rotation,-h.center[0],-h.center[1]);h=new uc(x,g,e,a.e,r);e=new kh(.5*m/g,e,m);d.dispatchEvent(new Ye(b,d,h,e,c,x,null));Yj(e);e.la()||lh(e,x,g,a.e,r,{});kl(h);a.c=e}}
284function fr(a){this.b=a}function Vh(a){this.b=a}function Wh(a){this.b=a}function Gn(){this.b="precision mediump float;varying vec2 a;varying float b;uniform mat4 k;uniform float l;uniform sampler2D m;void main(void){vec4 texColor\x3dtexture2D(m,a);float alpha\x3dtexColor.a*b*l;if(alpha\x3d\x3d0.0){discard;}gl_FragColor.a\x3dalpha;gl_FragColor.rgb\x3d(k*vec4(texColor.rgb,1.)).rgb;}"}
285function Hn(){this.b="varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix\x3di;if(g\x3d\x3d1.0){offsetMatrix\x3di*j;}vec4 offsets\x3doffsetMatrix*vec4(e,0.,0.);gl_Position\x3dh*vec4(c,0.,1.)+offsets;a\x3dd;b\x3df;}"}function xv(a,b){this.l=a.getUniformLocation(b,"k");this.i=a.getUniformLocation(b,"j");this.q=a.getUniformLocation(b,"i");this.f=a.getUniformLocation(b,
286"l");this.g=a.getUniformLocation(b,"h");this.b=a.getAttribLocation(b,"e");this.a=a.getAttribLocation(b,"f");this.d=a.getAttribLocation(b,"c");this.c=a.getAttribLocation(b,"g");this.e=a.getAttribLocation(b,"d")}function In(){this.b="precision mediump float;varying vec2 a;varying float b;uniform float k;uniform sampler2D l;void main(void){vec4 texColor\x3dtexture2D(l,a);gl_FragColor.rgb\x3dtexColor.rgb;float alpha\x3dtexColor.a*b*k;if(alpha\x3d\x3d0.0){discard;}gl_FragColor.a\x3dalpha;}"}function Jn(){this.b=
287"varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix\x3di;if(g\x3d\x3d1.0){offsetMatrix\x3di*j;}
287vec4 offsets\x3doffsetMatrix*vec4(e,0.,0.);gl_Position\x3dh*vec4(c,0.,1.)+offsets;a\x3dd;b\x3df;}"}function yv(a,b){this.i=a.getUniformLocation(b,"j");this.q=a.getUniformLocation(b,"i");this.f=a.getUniformLocation(b,"k");this.g=a.getUniformLocation(b,"h");this.b=
288a.getAttribLocation(b,"e");this.a=a.getAttribLocation(b,"f");this.d=a.getAttribLocation(b,"c");this.c=a.getAttribLocation(b,"g");this.e=a.getAttribLocation(b,"d")}function wl(a){this.b=f(a)?a:[];this.a=f(void 0)?void 0:35044}function Gg(a,b){this.l=a;this.b=b;this.a={};this.f={};this.e={};this.i=this.q=this.d=this.g=null;(this.c=Nc(zv,"OES_element_index_uint"))&&b.getExtension("OES_element_index_uint");ma(this.l,"webglcontextlost",this.Ym,!1,this);ma(this.l,"webglcontextrestored",this.Zm,!1,this)}
289function Xi(a,b,c){var d=a.b,e=c.b,g=C(c);if(g in a.a)d.bindBuffer(b,a.a[g].buffer);else{var h=d.createBuffer();d.bindBuffer(b,h);var m;34962==b?m=new Float32Array(e):34963==b&&(m=a.c?new Uint32Array(e):new Uint16Array(e));d.bufferData(b,m,c.a);a.a[g]={c,buffer:h}}}function Kn(a,b){var c=a.b;b=C(b);var d=a.a[b];c.isContextLost()||c.deleteBuffer(d.buffer);delete a.a[b]}function gr(a,b){var c=C(b);if(c in a.f)return a.f[c];var d=a.b,e=d.createShader(b.M());d.shaderSource(e,b.b);d.compileShader(e);return a.f[c]=
290e}function Ln(a,b,c){var d=C(b)+"/"+C(c);if(d in a.e)return a.e[d];var e=a.b,g=e.createProgram();e.attachShader(g,gr(a,b));e.attachShader(g,gr(a,c));e.linkProgram(g);return a.e[d]=g}function hr(a,b,c){var d=a.createTexture();a.bindTexture(a.TEXTURE_2D,d);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR);f(b)&&a.texParameteri(3553,10242,b);f(c)&&a.texParameteri(3553,10243,c);return d}function ir(a,b,c){var d=hr(a,void 0,void 0);
291a.texImage2D(a.TEXTURE_2D,0,a.RGBA,b,c,0,a.RGBA,a.UNSIGNED_BYTE,null);return d}function jr(a,b){var c=hr(a,33071,33071);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);return c}function ik(a,b){this.n=this.V=void 0;this.wb=new Fj;this.q=y(b);this.U=[];this.f=[];this.J=void 0;this.e=[];this.d=[];this.N=this.L=void 0;this.a=[];this.H=this.p=this.i=null;this.T=void 0;this.rc=Kf();this.vb=Kf();this.X=this.sa=void 0;this.xb=Kf();this.Fa=this.oa=this.ba=void 0;this.Ra=[];this.g=[];this.b=[];
292this.o=null;this.c=[];this.l=[];this.Ga=void 0}function Mn(a,b){var c=a.o,d=a.i,e=a.Ra,g=a.g,h=b.b;return function(){if(!h.isContextLost()){var m;var r=0;for(m=e.length;r<m;++r)h.deleteTexture(e[r]);r=0;for(m=g.length;r<m;++r)h.deleteTexture(g[r])}Kn(b,c);Kn(b,d)}}function kr(a,b,c,d){var e=a.V,g=a.n,h=a.J,m=a.L,r=a.N,x=a.T,F=a.sa,M=a.X,S=a.ba?1:0,Y=a.oa,O=a.Fa,P=a.Ga,Z=Math.cos(Y);Y=Math.sin(Y);var ca=a.a.length,ea=a.b.length,ja;for(ja=0;ja<c;ja+=d){var ka=b[ja]-a.q[0];var va=b[ja+1]-a.q[1];var na=
293ea/8;var Ia=-O*e;var cb=-O*(h-g);a.b[ea++]=ka;a.b[ea++]=va;a.b[ea++]=Ia*Z-cb*Y;a.b[ea++]=Ia*Y+cb*Z;a.b[ea++]=F/r;a.b[ea++]=(M+h)/m;a.b[ea++]=x;a.b[ea++]=S;Ia=O*(P-e);cb=-O*(h-g);a.b[ea++]=ka;a.b[ea++]=va;a.b[ea++]=Ia*Z-cb*Y;a.b[ea++]=Ia*Y+cb*Z;a.b[ea++]=(F+P)/r;a.b[ea++]=(M+h)/m;a.b[ea++]=x;a.b[ea++]=S;Ia=O*(P-e);cb=O*g;a.b[ea++]=ka;a.b[ea++]=va;a.b[ea++]=Ia*Z-cb*Y;a.b[ea++]=Ia*Y+cb*Z;a.b[ea++]=(F+P)/r;a.b[ea++]=M/m;a.b[ea++]=x;a.b[ea++]=S;Ia=-O*e;cb=O*g;a.b[ea++]=ka;a.b[ea++]=va;a.b[ea++]=Ia*Z-cb*
294Y;a.b[ea++]=Ia*Y+cb*Z;a.b[ea++]=F/r;a.b[ea++]=M/m;a.b[ea++]=x;a.b[ea++]=S;a.a[ca++]=na;a.a[ca++]=na+1;a.a[ca++]=na+2;a.a[ca++]=na;a.a[ca++]=na+2;a.a[ca++]=na+3}}function Nn(a,b){var c=b.b;a.U.push(a.a.length);a.f.push(a.a.length);a.o=new wl(a.b);Xi(b,34962,a.o);a.i=new wl(a.a);Xi(b,34963,a.i);b={};lr(a.Ra,a.e,b,c);lr(a.g,a.d,b,c);a.V=void 0;a.n=void 0;a.J=void 0;a.e=null;a.d=null;a.L=void 0;a.N=void 0;a.a=null;a.T=void 0;a.sa=void 0;a.X=void 0;a.ba=void 0;a.oa=void 0;a.Fa=void 0;a.b=null;a.Ga=void 0}
295function lr(a,b,c,d){var e,g=b.length;for(e=0;e<g;++e){var h=b[e];var m=C(h).toString();m in c?h=c[m]:(h=jr(d,h),c[m]=h);a[e]=h}}function jk(a,b,c,d,e,g,h,m,r,x,F,M,S,Y,O){var P=b.b;Xi(b,34962,a.o);Xi(b,34963,a.i);var Z=m||1!=r||x||1!=F,ca,ea;Z?(ca=Gn.Ia(),ea=Hn.Ia()):(ca=In.Ia(),ea=Jn.Ia());ea=Ln(b,ca,ea);Z?null===a.p?(ca=new xv(P,ea),a.p=ca):ca=a.p:null===a.H?(ca=new yv(P,ea),a.H=ca):ca=a.H;b.oe(ea);P.enableVertexAttribArray(ca.d);P.vertexAttribPointer(ca.d,2,5126,!1,32,0);P.enableVertexAttribArray(ca.b);
296P.vertexAttribPointer(ca.b,2,5126,!1,32,8);P.enableVertexAttribArray(ca.e);P.vertexAttribPointer(ca.e,2,5126,!1,32,16);P.enableVertexAttribArray(ca.a);P.vertexAttribPointer(ca.a,1,5126,!1,32,24);P.enableVertexAttribArray(ca.c);P.vertexAttribPointer(ca.c,1,5126,!1,32,28);ea=a.xb;Ae(ea,0,0,2/(d*g[0]),2/(d*g[1]),-e,-(c[0]-a.q[0]),-(c[1]-a.q[1]));c=a.vb;d=2/g[0];g=2/g[1];wf(c);c[0]=d;c[5]=g;c[10]=1;c[15]=1;g=a.rc;wf(g);0!==e&&ni(g,-e);P.uniformMatrix4fv(ca.g,!1,ea);P.uniformMatrix4fv(ca.q,!1,c);P.uniformMatrix4fv(ca.i,
297!1,g);P.uniform1f(ca.f,h);Z&&P.uniformMatrix4fv(ca.l,!1,Gj(a.wb,m,r,x,F));if(f(S)){if(Y)a:{e=b.c?5125:5123;b=b.c?4:2;x=a.c.length-1;for(h=a.g.length-1;0<=h;--h)for(P.bindTexture(3553,a.g[h]),m=0<h?a.f[h-1]:0,F=a.f[h];0<=x&&a.c[x]>=m;){r=a.c[x];Y=a.l[x];Z=C(Y).toString();
297if(!f(M[Z])&&(!f(O)||ta(O,Y.Q().G()))&&(P.clear(P.COLOR_BUFFER_BIT|P.DEPTH_BUFFER_BIT),P.drawElements(4,F-r,e,r*b),F=S(Y))){a=F;break a}F=r;x--}a=void 0}else P.clear(P.COLOR_BUFFER_BIT|P.DEPTH_BUFFER_BIT),mr(a,P,b,M,a.g,a.f),a=(a=
298S(null))?a:void 0;var ja=a}else mr(a,P,b,M,a.Ra,a.U);P.disableVertexAttribArray(ca.d);P.disableVertexAttribArray(ca.b);P.disableVertexAttribArray(ca.e);P.disableVertexAttribArray(ca.a);P.disableVertexAttribArray(ca.c);return ja}function mr(a,b,c,d,e,g){var h=c.c?5125:5123;c=c.c?4:2;if(le(d)){var m;a=0;d=e.length;for(m=0;a<d;++a){b.bindTexture(3553,e[a]);var r=g[a];b.drawElements(4,r-m,h,m*c);m=r}}else{m=0;var x;r=0;for(x=e.length;r<x;++r){b.bindTexture(3553,e[r]);for(var F=0<r?g[r-1]:0,M=g[r],S=F;m<
299a.c.length&&a.c[m]<=M;){var Y=C(a.l[m]).toString();f(d[Y])?(S!==F&&b.drawElements(4,F-S,h,S*c),F=S=m===a.c.length-1?M:a.c[m+1]):F=m===a.c.length-1?M:a.c[m+1];m++}S!==F&&b.drawElements(4,F-S,h,S*c)}}}function Xh(a,b,c){this.e=b;this.f=a;this.d=c;this.a={}}function On(a,b){var c=[],d;for(d in a.a)c.push(Mn(a.a[d],b));return eu.apply(null,c)}function nr(a,b){for(var c in a.a)Nn(a.a[c],b)}function or(a,b,c,d,e,g,h,m,r,x,F,M,S,Y){var O=Av,P,Z;for(P=pg.length-1;0<=P;--P)if(Z=a.a[pg[P]],f(Z)&&(Z=jk(Z,b,
300c,d,e,O,g,h,m,r,x,F,M,S,Y)))return Z}function Pn(a,b,c,d,e,g,h,m,r,x,F){var M=c.b;M.bindFramebuffer(M.FRAMEBUFFER,c.Te());a=or(a,c,b,d,e,g,h,m,r,x,F,function(){var S=new Uint8Array(4);M.readPixels(0,0,1,1,M.RGBA,M.UNSIGNED_BYTE,S);return 0<S[3]},!1);return f(a)}function Hc(a,b,c,d,e,g){this.a=a;this.e=b;this.d=g;this.i=e;this.g=d;this.f=c;this.c=null;this.b={}}function Qn(){this.b="precision mediump float;varying vec2 a;uniform mat4 f;uniform float g;uniform sampler2D h;void main(void){vec4 texColor\x3dtexture2D(h,a);gl_FragColor.rgb\x3d(f*vec4(texColor.rgb,1.)).rgb;gl_FragColor.a\x3dtexColor.a*g;}"}
301function Rn(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position\x3de*vec4(b,0.,1.);a\x3d(d*vec4(c,0.,1.)).st;}"}function Bv(a,b){this.g=a.getUniformLocation(b,"f");this.c=a.getUniformLocation(b,"g");this.d=a.getUniformLocation(b,"e");this.f=a.getUniformLocation(b,"d");this.e=a.getUniformLocation(b,"h");this.b=a.getAttribLocation(b,"b");this.a=a.getAttribLocation(b,"c")}function Sn(){this.b="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor\x3dtexture2D(g,a);gl_FragColor.rgb\x3dtexColor.rgb;gl_FragColor.a\x3dtexColor.a*f;}"}
302function Tn(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position\x3de*vec4(b,0.,1.);a\x3d(d*vec4(c,0.,1.)).st;}"}function Cv(a,b){this.c=a.getUniformLocation(b,"f");this.d=a.getUniformLocation(b,"e");this.f=a.getUniformLocation(b,"d");this.e=a.getUniformLocation(b,"g");this.b=a.getAttribLocation(b,"b");this.a=a.getAttribLocation(b,"c")}function ae(a,b){he.call(this,b);this.c=a;this.N=new wl([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);this.e=
303this.Qa=null;this.f=void 0;this.q=fd();this.n=Kf();this.T=new Fj;this.o=this.l=null}function Dv(a,b,c){var d=a.c.e;if(f(a.f)&&a.f==c)d.bindFramebuffer(36160,a.e);else{b.postRenderFunctions.push(V(function(g,h,m){g.isContextLost()||(g.deleteFramebuffer(h),g.deleteTexture(m))},d,a.e,a.Qa));b=ir(d,c,c);var e=d.createFramebuffer();d.bindFramebuffer(36160,e);d.framebufferTexture2D(36160,36064,3553,b,0);a.Qa=b;a.e=e;a.f=c}}function pr(a,b,c,d){a=a.a;if(Jf(a,b)){var e=d.viewState;a.dispatchEvent(new Ye(b,
304a,new Hc(c,e.center,e.resolution,e.rotation,d.size,d.extent),null,d,null,c))}}function xe(a,b){ae.call(this,a,b);this.i=this.g=this.d=null}function Ev(a,b){b=b.b();return jr(a.c.e,b)}function Fv(a,b,c,d,e,g,h,m){b*=g;c*=g;a=a.n;wf(a);Qf(a,2*d/b,2*d/c);ni(a,-h);xf(a,m[0]-e[0],m[1]-e[1]);Qf(a,(m[2]-m[0])/2,(m[3]-m[1])/2);xf(a,1,1)}function Un(){this.b="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor\x3dtexture2D(e,a);}"}function Vn(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position\x3dvec4(b*d.xy+d.zw,0.,1.);a\x3dc;}"}
305function Gv(a,b){this.c=a.getUniformLocation(b,"e");this.d=a.getUniformLocation(b,"d");
305this.b=a.getAttribLocation(b,"b");this.a=a.getAttribLocation(b,"c")}function Ce(a,b){ae.call(this,a,b);this.J=Un.Ia();this.X=Vn.Ia();this.d=null;this.H=new wl([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]);this.p=this.g=null;this.i=-1;this.L=[0,0]}function Oe(a,b){ae.call(this,a,b);this.i=!1;this.L=-1;this.J=NaN;this.p=Yd();this.g=this.d=this.H=null}function xl(a,b){mg.call(this,0,b);this.b=Kd("CANVAS");this.b.style.width=
306"100%";this.b.style.height="100%";this.b.className="ol-unselectable";W(a,this.b,0);this.p=this.H=0;this.J=se();this.l=!0;this.e=Ep(this.b,{antialias:!0,depth:!1,Ei:!0,preserveDrawingBuffer:!1,stencil:!0});this.d=new Gg(this.b,this.e);ma(this.b,"webglcontextlost",this.Pl,!1,this);ma(this.b,"webglcontextrestored",this.Ql,!1,this);this.a=new Uk;this.n=null;this.q=new Gi(J(function(c){var d=c[1];c=c[2];var e=d[0]-this.n[0];d=d[1]-this.n[1];return 65536*Math.log(c)+Math.sqrt(e*e+d*d)/c},this),function(c){return c[0].gb()});
307this.L=J(function(){if(!this.q.la()){Pp(this.q);var c=Mp(this.q);qr(this,c[0],c[3],c[4])}},this);this.i=0;rr(this)}function qr(a,b,c,d){var e=a.e,g=b.gb();if(lg(a.a,g))a=a.a.get(g),e.bindTexture(3553,a.Qa),9729!=a.lg&&(e.texParameteri(3553,10240,9729),a.lg=9729),9729!=a.mg&&(e.texParameteri(3553,10240,9729),a.mg=9729);else{var h=e.createTexture();e.bindTexture(3553,h);if(0<d){var m=a.J.canvas,r=a.J;a.H!==c[0]||a.p!==c[1]?(m.width=c[0],m.height=c[1],a.H=c[0],a.p=c[1]):r.clearRect(0,0,c[0],c[1]);r.drawImage(b.Ma(),
308d,d,c[0],c[1],0,0,c[0],c[1]);e.texImage2D(3553,0,6408,6408,5121,m)}else e.texImage2D(3553,0,6408,6408,5121,b.Ma());e.texParameteri(3553,10240,9729);e.texParameteri(3553,10241,9729);e.texParameteri(3553,10242,33071);e.texParameteri(3553,10243,33071);a.a.set(g,{Qa:h,lg:9729,mg:9729})}}function sr(a,b,c){var d=a.g;if(Jf(d,b)){var e=a.d,g=c.extent,h=c.size,m=c.viewState,r=m.resolution,x=m.center,F=m.rotation;m=new Hc(e,x,r,F,h,g);g=new Xh(.5*r/c.pixelRatio,g);d.dispatchEvent(new Ye(b,d,m,g,c,null,e));
309nr(g,e);if(!g.la()){var M=yl;b=M.opacity;c=M.brightness;d=M.contrast;var S=M.hue;M=M.saturation;var Y={},O;var P=0;for(O=pg.length;P<O;++P){var Z=g.a[pg[P]];f(Z)&&jk(Z,e,x,r,F,h,b,c,d,S,M,Y,void 0,!1)}}On(g,e)();e=Jc(Fd(m.b),Number);Bd(e);h=0;for(r=e.length;h<r;++h)for(x=m.b[e[h].toString()],F=0,b=x.length;F<b;++F)x[F](m);a.c=g}}function rr(a){a=a.e;a.activeTexture(33984);a.blendFuncSeparate(770,771,1,771);a.disable(2884);a.disable(2929);a.disable(3089);a.disable(2960)}function ya(a){ub.call(this);
310var b=Hv(a);this.wb=f(a.loadTilesWhileAnimating)?a.loadTilesWhileAnimating:!1;this.xb=f(a.loadTilesWhileInteracting)?a.loadTilesWhileInteracting:!1;this.Nc=f(a.pixelRatio)?a.pixelRatio:tr;this.sc=b.logos;this.o=new Xk(this.Qn,void 0,this);eg(this,this.o);this.Ra=fd();this.Ee=fd();this.vb=0;this.c=null;this.oa=Yd();this.g=this.J=null;this.a=db("DIV","ol-viewport");this.a.style.position="relative";this.a.style.overflow="hidden";this.a.style.width="100%";this.a.style.height="100%";this.a.style.msTouchAction=
311"none";um&&(this.a.className="ol-touch");this.X=db("DIV","ol-overlaycontainer");this.a.appendChild(this.X);this.p=db("DIV","ol-overlaycontainer-stopevent");ma(this.p,["click","dblclick","mousedown","touchstart","MSPointerDown",Oh,sf?"DOMMouseScroll":"mousewheel"],Gk);this.a.appendChild(this.p);a=new cl(this);ma(a,Vd(Iv),this.eg,!1,this);eg(this,a);this.T=b.keyboardEventTarget;this.n=new ch;ma(this.n,"key",this.dg,!1,this);eg(this,this.n);a=new Mj(this.a);ma(a,"mousewheel",this.dg,!1,this);eg(this,
312a);this.e=b.controls;this.d=b.interactions;this.f=b.overlays;this.i=new b.Sn(this.a,this);eg(this,this.i);this.Ga=new Zk;eg(this,this.Ga);this.L=this.l=null;this.H=[];this.ba=[];this.Fa=new Lm(J(this.zj,this),J(this.bl,this));this.N={};ma(this,Uc("layergroup"),this.Qj,!1,this);ma(this,Uc("view"),this.mk,!1,this);ma(this,Uc("size"),this.jk,!1,this);ma(this,Uc("target"),this.lk,!1,this);this.t(b.values);this.e.forEach(function(c){c.setMap(this)},this);ma(this.e,"add",function(c){c.element.setMap(this)},
313!1,this);ma(this.e,"remove",function(c){c.element.setMap(null)},!1,this);this.d.forEach(function(c){c.setMap(this)},this);ma(this.d,"add",function(c){c.element.setMap(this)},!1,this);ma(this.d,"remove",function(c){c.element.setMap(null)},!1,this);this.f.forEach(function(c){c.setMap(this)},this);ma(this.f,"add",function(c){c.element.setMap(this)},!1,this);ma(this.f,"remove",function(c){c.element.setMap(null)},!1,this)}function Hv(a){var b=null;f(a.keyboardEventTarget)&&(b=D(a.keyboardEventTarget)?
314document.getElementById(a.keyboardEventTarget):a.keyboardEventTarget);var c={},d={};if(!f(a.logo)||"boolean"==typeof a.logo&&a.logo)d["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]=
315"http://openlayers.org/";else{var e=a.logo;D(e)?d[e]="":v(e)&&(d[e.src]=e.href)}e=a.layers instanceof Ua?a.layers:new Ua({layers:a.layers});c.layergroup=e;c.target=a.target;c.view=f(a.view)?a.view:new Ma;e=mg;var g;f(a.renderer)?t(a.renderer)?g=a.renderer:D(a.renderer)&&(g=[a.renderer]):g=Jv;var h;var m=0;for(h=g.length;m<h;++m){var r=g[m];
315if("canvas"==r){if(ur){e=hk;break}}else if("dom"==r){e=Uh;break}else if("webgl"==r&&vr){e=xl;break}}var x;f(a.controls)?x=t(a.controls)?new Sa(a.controls.slice()):
316a.controls:x=rp();var F;f(a.interactions)?F=t(a.interactions)?new Sa(a.interactions.slice()):a.interactions:F=jq();a=f(a.overlays)?t(a.overlays)?new Sa(a.overlays.slice()):a.overlays:new Sa;return{controls:x,interactions:F,keyboardEventTarget:b,logos:d,overlays:a,Sn:e,values:c}}function Gb(a){ub.call(this);this.g=f(a.insertFirst)?a.insertFirst:!0;this.i=f(a.stopEvent)?a.stopEvent:!0;this.Z=db("DIV",{"class":"ol-overlay-container"});this.Z.style.position="absolute";this.f=f(a.autoPan)?a.autoPan:!1;
317this.d=f(a.autoPanAnimation)?a.autoPanAnimation:{};this.e=f(a.autoPanMargin)?a.autoPanMargin:20;this.a={ud:"",Xd:"",ve:"",we:"",visible:!0};this.c=null;ma(this,Uc("element"),this.Kj,!1,this);ma(this,Uc("map"),this.Yj,!1,this);ma(this,Uc("offset"),this.ck,!1,this);ma(this,Uc("position"),this.ek,!1,this);ma(this,Uc("positioning"),this.fk,!1,this);f(a.element)&&this.wh(a.element);this.Bh(f(a.offset)?a.offset:[0,0]);this.Ch(f(a.positioning)?a.positioning:"top-left");f(a.position)&&this.uf(a.position)}
318function wr(a,b){var c=Da(a);We(a,"position");var d=new Ve(0,0);var e=c?Da(c):document;e=!jc||jc&&9<=wi||kb(Fc(e))?e.documentElement:e.body;a!=e&&(e=am(a),c=Xb(Fc(c)),d.x=e.left+c.x,d.y=e.top+c.y);return[d.x,d.y,d.x+b[0],d.y+b[1]]}function kk(a){var b=a.ae(),c=a.wg();if(f(b)&&null!==b.c&&f(c)){c=b.ta(c);var d=b.xa();b=a.Z.style;var e=a.Yf(),g=a.ag(),h=e[0];e=e[1];if("bottom-right"==g||"center-right"==g||"top-right"==g)""!==a.a.Xd&&(a.a.Xd=b.left=""),h=Math.round(d[0]-c[0]-h)+"px",a.a.ve!=h&&(a.a.ve=
319b.right=h);else{""!==a.a.ve&&(a.a.ve=b.right="");if("bottom-center"==g||"center-center"==g||"top-center"==g)h-=bm(a.Z).width/2;h=Math.round(c[0]+h)+"px";a.a.Xd!=h&&(a.a.Xd=b.left=h)}if("bottom-left"==g||"bottom-center"==g||"bottom-right"==g)""!==a.a.we&&(a.a.we=b.top=""),c=Math.round(d[1]-c[1]-e)+"px",a.a.ud!=c&&(a.a.ud=b.bottom=c);else{""!==a.a.ud&&(a.a.ud=b.bottom="");
319if("center-left"==g||"center-center"==g||"center-right"==g)e-=bm(a.Z).height/2;c=Math.round(c[1]+e)+"px";a.a.we!=c&&(a.a.we=b.top=
320c)}a.a.visible||(ge(a.Z,!0),a.a.visible=!0)}else a.a.visible&&(ge(a.Z,!1),a.a.visible=!1)}function dc(a){a=f(a)?a:{};this.f=f(a.collapsed)?a.collapsed:!0;(this.g=f(a.collapsible)?a.collapsible:!0)||(this.f=!1);var b=f(a.className)?a.className:"ol-overviewmap",c=f(a.tipLabel)?a.tipLabel:"Overview map",d=f(a.collapseLabel)?a.collapseLabel:"\u00ab";this.o=D(d)?db("SPAN",{},d):d;d=f(a.label)?a.label:"\u00bb";this.n=D(d)?db("SPAN",{},d):d;c=db("BUTTON",{type:"button",title:c},this.g&&!this.f?this.o:this.n);
321ma(c,"click",this.ml,!1,this);ma(c,["mouseout",Lh],function(){this.blur()},!1);d=db("DIV","ol-overviewmap-map");var e=this.d=new ya({controls:new Sa,interactions:new Sa,target:d});f(a.layers)&&a.layers.forEach(function(h){e.Jf(h)},this);var g=db("DIV","ol-overviewmap-box");this.i=new Gb({position:[0,0],positioning:"bottom-left",element:g});this.d.Kf(this.i);b=db("DIV",b+" ol-unselectable ol-control"+(this.f&&this.g?" ol-collapsed":"")+(this.g?"":" ol-uncollapsible"),d,c);qb.call(this,{element:b,render:f(a.render)?
322a.render:xr,target:a.target})}function xr(){var a=this.a,b=this.d;if(null!==a.c&&null!==b.c){var c=a.xa();a=a.R().Pc(c);var d=b.xa();c=b.R().Pc(d);var e=b.ta(U(a));b=b.ta(u(a));b=new Af(Math.abs(e[0]-b[0]),Math.abs(e[1]-b[1]));e=d[0];d=d[1];b.width<.1*e||b.height<.1*d||b.width>.75*e||b.height>.75*d?Wn(this):qe(c,a)||(a=this.d,c=this.a.R(),a.R().Na(c.Ca()))}yr(this)}function Wn(a){var b=a.a;a=a.d;var c=b.xa();b=b.R().Pc(c);c=a.xa();a=a.R();Vc(b,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2)));a.Me(b,c)}
323function yr(a){var b=a.a,c=a.d;if(null!==b.c&&null!==c.c){var d=b.xa(),e=b.R(),g=c.R();c.xa();b=e.Da();var h=a.i;c=a.i.$d();e=e.Pc(d);d=g.ya();g=p(e);e=X(e);var m;a=a.a.R().Ca();f(a)&&(m=[g[0]-a[0],g[1]-a[1]],Zg(m,b),Xg(m,a));h.uf(m);null!=c&&(m=new Af(Math.abs((g[0]-e[0])/d),Math.abs((e[1]-g[1])/d)),b=kb(Fc(Da(c))),!jc||Cd("10")||b&&Cd("8")?(c=c.style,sf?c.MozBoxSizing="border-box":Wd?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(m.width,0)+"px",c.height=Math.max(m.height,
3240)+"px"):(a=c.style,b?(b=cm(c,"padding"),c=gp(c),a.pixelWidth=m.width-c.left-b.left-b.right-c.right,a.pixelHeight=m.height-c.top-b.top-b.bottom-c.bottom):(a.pixelWidth=m.width,a.pixelHeight=m.height)))}}function Xn(a){yb(a.element,"ol-collapsed");a.f?fa(a.o,a.n):fa(a.n,a.o);a.f=!a.f;var b=a.d;a.f||null!==b.c||(b.Kc(),Wn(a),If(b,"postrender",function(){yr(this)},!1,a))}function nc(a){a=f(a)?a:{};var b=f(a.className)?a.className:"ol-scale-line";this.g=db("DIV",b+"-inner");this.Z=db("DIV",b+" ol-unselectable",
325this.g);this.o=null;this.i=f(a.minWidth)?a.minWidth:64;this.d=!1;this.H=void 0;this.n="";this.f=null;qb.call(this,{element:this.Z,render:f(a.render)?a.render:zr,target:a.target});ma(this,Uc("units"),this.N,!1,this);this.J(a.units||"metric")}function zr(a){a=a.frameState;null===a?this.o=null:this.o=a.viewState;Ar(this)}function Ar(a){var b=a.o;if(null===b)a.d&&(ge(a.Z,!1),a.d=!1);else{var c=b.center,d=b.projection;b=d.getPointResolution(b.resolution,c);var e=d.a,g=a.p();"degrees"!=e||"metric"!=g&&
326"imperial"!=g&&"us"!=g&&"nautical"!=g?"degrees"!=e&&"degrees"==g?(null===a.f&&(a.f=Qd(d,Ka("EPSG:4326"))),c=Math.cos(me(a.f(c)[1])),d=lk.radius,d/=Rf[e],b*=180/(Math.PI*c*d
326)):a.f=null:(a.f=null,c=Math.cos(me(c[1])),b*=Math.PI*c*lk.radius/180);c=a.i*b;e="";"degrees"==g?c<1/60?(e="\u2033",b*=3600):1>c?(e="\u2032",b*=60):e="\u00b0":"imperial"==g?.9144>c?(e="in",b/=.0254):1609.344>c?(e="ft",b/=.3048):(e="mi",b/=1609.344):"nautical"==g?(b/=1852,e="nm"):"metric"==g?1>c?(e="mm",b*=1E3):1E3>c?e="m":(e="km",
327b/=1E3):"us"==g&&(.9144>c?(e="in",b*=39.37):1609.344>c?(e="ft",b/=.30480061):(e="mi",b/=1609.3472));for(c=3*Math.floor(Math.log(a.i*b)/Math.log(10));;){d=Kv[c%3]*Math.pow(10,Math.floor(c/3));g=Math.round(d/b);if(isNaN(g)){ge(a.Z,!1);a.d=!1;return}if(g>=a.i)break;++c}b=d+" "+e;a.n!=b&&(a.g.innerHTML=b,a.n=b);a.H!=g&&(a.g.style.width=g+"px",a.H=g);a.d||(ge(a.Z,!0),a.d=!0)}}function oh(a){Re.call(this);this.a=a;this.b={}}function Yn(a){ob(a.b,Hb);a.b={}}function zl(a,b,c){Tc.call(this);this.target=a;
328this.handle=b||a;this.b=c||new kd(NaN,NaN,NaN,NaN);this.c=Da(a);this.a=new oh(this);eg(this,this.a);ma(this.handle,["touchstart","mousedown"],this.cg,!1,this)}function Zn(a){var b=a.type;"touchstart"==b||"touchmove"==b?rf(a,a.b.targetTouches[0],a.c):"touchend"!=b&&"touchcancel"!=b||rf(a,a.b.changedTouches[0],a.c)}function Br(a,b,c){var d=Xb(Fc(a.c));b+=d.x-a.d.x;c+=d.y-a.d.y;a.d=d;a.yc+=b;a.zc+=c;b=Cr(a,a.yc);a=Dr(a,a.zc);return new Ve(b,a)}function Er(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=
329d+"px";a.dispatchEvent(new Yi("drag",a,b.clientX,b.clientY,0,c,d))}function Cr(a,b){a=a.b;var c=isNaN(a.left)?null:a.left;a=isNaN(a.width)?0:a.width;return Math.min(null!=c?c+a:Infinity,Math.max(null!=c?c:-Infinity,b))}function Dr(a,b){a=a.b;var c=isNaN(a.top)?null:a.top;a=isNaN(a.height)?0:a.height;return Math.min(null!=c?c+a:Infinity,Math.max(null!=c?c:-Infinity,b))}function Yi(a,b,c,d,e,g,h){tc.call(this,a);this.clientX=c;this.clientY=d;this.left=f(g)?g:b.yc;this.top=f(h)?h:b.zc}function dd(a){a=
330f(a)?a:{};this.f=void 0;this.g=Fr;this.i=null;this.n=!1;this.o=f(a.duration)?a.duration:200;var b=f(a.className)?a.className:"ol-zoomslider",c=db("DIV",[b+"-thumb","ol-unselectable"]);b=db("DIV",[b,"ol-unselectable","ol-control"],c);this.d=new zl(c);eg(this,this.d);ma(this.d,"start",this.Jj,!1,this);ma(this.d,"drag",this.Hj,!1,this);ma(this.d,"end",this.Ij,!1,this);ma(b,"click",this.Gj,!1,this);ma(c,"click",Gk);qb.call(this,{element:b,render:f(a.render)?a.render:Gr})}function Gr(a){if(null!==a.frameState){if(!this.n){var b=
331this.element,c=bm(b),d=oa(b);b=cm(d,"margin");var e=new Af(d.offsetWidth,d.offsetHeight);d=e.width+b.right+b.left;b=e.height+b.top+b.bottom;this.i=[d,b];d=c.width-d;b=c.height-b;c.width>c.height?(this.g=1,c=new kd(0,0,d,0)):(this.g=Fr,c=new kd(0,0,0,b));this.d.b=c||new kd(NaN,NaN,NaN,NaN);this.n=!0}a=a.frameState.viewState.resolution;a!==this.f&&(this.f=a,a=1-Nk(this.a.R())(a),c=this.d,b=oa(this.element),1==this.g?vi(b,c.b.left+c.b.width*a):vi(b,c.b.left,c.b.top+c.b.height*a))}}function Hr(a,b,c){var d=
332a.d.b;return Hd(1===a.g?(b-d.left)/d.width:(c-d.top)/d.height,0,1)}function Ir(a,b){return Mk(a.a.R())(1-b)}function Rc(a){a=f(a)?a:{};this.d=f(a.extent)?a.extent:null;var b=f(a.className)?a.className:"ol-zoom-extent",c=db("BUTTON",{type:"button",title:f(a.tipLabel)?a.tipLabel:"Fit to extent"},f(a.label)?a.label:"E");ma(c,"click",this.f,!1,this);ma(c,["mouseout",Lh],function(){this.blur()},!1);b=db("DIV",b+" ol-unselectable ol-control",c);qb.call(this,{element:b,target:a.target})}function kc(a){ub.call(this);
333a=f(a)?a:{};this.a=null;ma(this,Uc("tracking"),this.Jk,!1,this);this.bf(f(a.tracking)?a.tracking:!1)}function Wa(a){ub.call(this);this.$=void 0;this.a="geometry";this.e=null;this.c=void 0;this.d=null;ma(this,Uc(this.a),this.Pd,!1,this);f(a)&&(a instanceof gc||null===a?this.La(a):this.t(a))}function Ld(a){a=f(a)?a:{};this.g=this.e=this.d=this.a=this.c=this.b=null;this.f=void 0;this.rg(f(a.style)?a.style:Xj);f(a.features)?t(a.features)?this.ld(new Sa(a.features.slice())):this.ld(a.features):this.ld(new Sa);
334f(a.map)&&this.setMap(a.map)}function Yh(a){null===a.d||a.d.render()}function Al(){this.defaultDataProjection=null}function Ef(a,b,c){var d;f(c)&&(d={dataProjection:f(c.dataProjection)?c.dataProjection:a.za(b),featureProjection:c.featureProjection});return oe(a,d)}function oe(a,b){var c;f(b)&&(c={featureProjection:b.featureProjection,dataProjection:null!=b.dataProjection?b.dataProjection:a.defaultDataProjection,rightHanded:b.rightHanded});return c}function Sd(a,b,c){var d=f(c)?Ka(c.featureProjection):
335null;c=f(c)?Ka(c.dataProjection):null;return null===d||null===c||sd(d,c)?a:a instanceof gc?(b?a.clone():a).transform(b?d:c,b?c:d):Te(b?a.slice():a,b?d:c,b?c:d)}function mk(){this.defaultDataProjection=null}function Bl(a){return v(a)?a:D(a)?(a=Lv(a),f(a)?a:null):null}function Md(a){a=f(a)?a:{};this.defaultDataProjection=null;this.b=a.geometryName}function Jr(a,b){if(null===a)return null;if(E(a.x)&&E(a.y))var c="Point";else if(null!=a.points)c="MultiPoint";else if(null!=a.paths)c=1===a.paths.length?
336"LineString":"MultiLineString";else if(null!=a.rings){var d=a.rings,e=Zi(a),g=[];c=[];var h;var m=0;for(h=d.length;m<h;++m){var r=pa(d[m]);an(r,0,r.length,e.length)?g.push([d[m]]):c.push(d[m])}for(;c.length;){d=c.shift();e=!1;for(m=g.length-1;0<=m;m--)if(qe((new lb(g[m][0])).G(),(new lb(d)).G())){g[m].push(d);e=!0;break}e||g.push([d.reverse()])}a=Gd(a);1===g.length?(c="Polygon",a.rings=g[0]):(c="MultiPolygon",a.rings=g)}return Sd((0,Mv[c])(a),!1,b)}function Zi(a){var b="XY";!0===a.hasZ&&!0===a.hasM?
337b="XYZM":!0===a.hasZ?b="XYZ":!0===a.hasM&&(b="XYM");return b}function nk(a){a=a.a;return{hasZ:"XYZ"===a||"XYZM"===a,hasM:"XYM"===a||"XYZM"===a}}function Kr(a,b){return(0,Nv[a.M()])(Sd(a,!0,b),b)}function Nd(a){a=f(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ka(null!=a.defaultDataProjection?a.defaultDataProjection:"EPSG:4326");
337this.b=a.geometryName}function $n(a,b){return null===a?null:Sd((0,Ov[a.type])(a),!1,b)}function ao(a,b){return(0,Pv[a.M()])(Sd(a,!0,b),b)}function ph(){this.defaultDataProjection=
338null}function Lr(a,b,c){a=bo(a,b,c);return 0<a.length?a[0]:null}function bo(a,b,c){var d=[];for(b=b.firstChild;null!==b;b=b.nextSibling)1==b.nodeType&&Tb(d,a.Ob(b,c));return d}function oc(a){a=f(a)?a:{};this.featureType=a.featureType;this.featureNS=a.featureNS;this.srsName=a.srsName;this.schemaLocation="";this.b={};this.b["http://www.opengis.net/gml"]={featureMember:Cc(oc.prototype.jd),featureMembers:Cc(oc.prototype.jd)};this.defaultDataProjection=null}function Zh(a){a=Me(a,!1);return $h(a)}function $h(a){if(a=
339/^\s*(true|1)|(false|0)\s*$/.exec(a))return f(a[1])||!1}function co(a){a=Me(a,!1);if(a=/^\s*(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?))\s*$/.exec(a)){var b=Date.UTC(parseInt(a[1],10),parseInt(a[2],10)-1,parseInt(a[3],10),parseInt(a[4],10),parseInt(a[5],10),parseInt(a[6],10))/1E3;if("Z"!=a[7]){var c="-"==a[8]?-1:1;b+=60*c*parseInt(a[9],10);f(a[10])&&(b+=3600*c*parseInt(a[10],10))}return b}}function Od(a){a=Me(a,!1);return Hg(a)}function Hg(a){if(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))return parseFloat(a[1])}
340function lf(a){a=Me(a,!1);return Yf(a)}function Yf(a){if(a=/^\s*(\d+)\s*$/.exec(a))return parseInt(a[1],10)}function Aa(a){a=Me(a,!1);return vg(a)}function Mr(a,b){sc(a,b?"1":"0")}function mf(a,b){a.appendChild(Vi.createTextNode(b.toPrecision()))}function Cl(a,b){a.appendChild(Vi.createTextNode(b.toString()))}function sc(a,b){a.appendChild(Vi.createTextNode(b))}function Ya(a){a=f(a)?a:{};oc.call(this,a);this.i=f(a.surface)?a.surface:!1;this.e=f(a.curve)?a.curve:!1;this.f=f(a.multiCurve)?a.multiCurve:
341!0;this.g=f(a.multiSurface)?a.multiSurface:!0;this.schemaLocation=f(a.schemaLocation)?a.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}function Nr(a,b,c){c=c[c.length-1].srsName;b=b.K();for(var d=b.length,e=Array(d),g,h=0;h<d;++h){g=b[h];var m=h,r="enu";null!=c&&(r=Ka(c).d);e[m]="en"===r.substr(0,2)?g[0]+" "+g[1]:g[1]+" "+g[0]}sc(a,e.join(" "))}function Zf(a){a=f(a)?a:{};oc.call(this,a);this.b["http://www.opengis.net/gml"].featureMember=
342mc(oc.prototype.jd);this.schemaLocation=f(a.schemaLocation)?a.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}function $e(a){a=f(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ka("EPSG:4326");this.b=a.readExtensions}function eo(a,b,c){a.push(parseFloat(b.getAttribute("lon")),parseFloat(b.getAttribute("lat")));"ele"in c?(a.push(c.ele),Fe(c,"ele")):a.push(0);"time"in c?(a.push(c.time),Fe(c,"time")):a.push(0);return a}function fo(a,b){var c=
343b[b.length-1],d=a.getAttribute("href");null===d||(c.link=d);Of(Qv,a,b)}function go(a,b){b[b.length-1].extensionsNode_=a}function Or(a,b){var c=b[0];a=ua({flatCoordinates:[]},Rv,a,b);if(f(a)){b=a.flatCoordinates;Fe(a,"flatCoordinates");var d=new Ha(null);kf(d,"XYZM",b);Sd(d,!1,c);c=new Wa(d);c.t(a);return c}}function Pr(a,b){var c=b[0];a=ua({flatCoordinates:[],ends:[]},Sv,a,b);if(f(a)){b=a.flatCoordinates;Fe(a,"flatCoordinates");var d=a.ends;Fe(a,"ends");var e=new Qa(null);ak(e,"XYZM",b,d);Sd(e,!1,
344c);c=new Wa(e);c.t(a);return c}}function Qr(a,b){var c=b[0];b=ua({},Tv,a,b);if(f(b))return a=eo([],a,b),a=new Ta(a,"XYZM"),Sd(a,!1,c),c=new Wa(a),c.t(b),c}function Rr(a,b){null===b&&(b=[]);for(var c=0,d=b.length;c<d;++c){var e=b[c];if(f(a.b)){var g=e.get("extensionsNode_")||null;a.b(e,g)}e.set("extensionsNode_",void 0)}}function ho(a,b,c){a.setAttribute("href",b);b=c[c.length-1].properties;wc({P:a},Uv,Pf,[b.linkText,b.linkType],c,Vv)}function io(a,b,c){var d=c[c.length-1],e=d.P.namespaceURI,g=d.properties;
345$f(a,null,"lat",b[1]);$f(a,null,"lon",b[0]);switch(d.geometryLayout){case "XYZM":0!==b[3]&&(g.time=b[3]);case "XYZ":0!==b[2]&&(g.ele=b[2]);break;case "XYM":0!==b[2]&&(g.time=b[2])}b=Wv[e];d=Xf(g,b);wc({P:a,properties:g},Xv,Pf,d,c,b)}function Yv(a,b){a=a.Q();if(f(a))return jd(b[b.length-1].P.namespaceURI,Zv[a.M()])}function $v(a){a=aw(a);return Jc(a,function(b){return b.c.substring(b.a,b.b)})}function Sr(a,b,c){this.c=a;this.a=b;this.b=c}function aw(a){for(var b=RegExp("\r\n|\r|\n","g"),c=0,d,e=[];d=
346b.exec(a);
346)c=new Sr(a,c,d.index),e.push(c),c=b.lastIndex;c<a.length&&(c=new Sr(a,c,a.length),e.push(c));return e}function ok(){this.defaultDataProjection=null}function rg(a){a=f(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ka("EPSG:4326");this.b=f(a.altitudeMode)?a.altitudeMode:"none"}function Ig(a,b){var c;a instanceof Ig?(this.Yb=f(b)?b:a.Yb,jo(this,a.Pb),this.pc=a.pc,this.ib=a.ib,ko(this,a.Ec),this.hb=a.hb,lo(this,a.b.clone()),this.Sb=a.Sb):a&&(c=zn(String(a)))?(this.Yb=!!b,
347jo(this,c[1]||"",!0),this.pc=$i(c[2]||""),this.ib=$i(c[3]||"",!0),ko(this,c[4]),this.hb=$i(c[5]||"",!0),lo(this,c[6]||"",!0),this.Sb=$i(c[7]||"")):(this.Yb=!!b,this.b=new pk(null,0,this.Yb))}function jo(a,b,c){a.Pb=c?$i(b,!0):b;a.Pb&&(a.Pb=a.Pb.replace(/:$/,""))}function ko(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Ec=b}else a.Ec=null}function lo(a,b,c){b instanceof pk?(a.b=b,bw(a.b,a.Yb)):(c||(b=qk(b,cw)),a.b=new pk(b,0,a.Yb))}function Tr(a){return a instanceof Ig?
348a.clone():new Ig(a,void 0)}function Dl(a,b){a instanceof Ig||(a=Tr(a));b instanceof Ig||(b=Tr(b));var c=a.clone(),d=!!b.Pb;d?jo(c,b.Pb):d=!!b.pc;d?c.pc=b.pc:d=!!b.ib;d?c.ib=b.ib:d=null!=b.Ec;var e=b.hb;if(d)ko(c,b.Ec);else if(d=!!b.hb)if("/"!=e.charAt(0)&&(a.ib&&!a.hb?e="/"+e:(a=c.hb.lastIndexOf("/"),-1!=a&&(e=c.hb.substr(0,a+1)+e))),a=e,".."==a||"."==a)e="";else if(-1!=a.indexOf("./")||-1!=a.indexOf("/.")){e=0==a.lastIndexOf("/",0);a=a.split("/");for(var g=[],h=0;h<a.length;){var m=a[h++];"."==m?
349e&&h==a.length&&g.push(""):".."==m?((1<g.length||1==g.length&&""!=g[0])&&g.pop(),e&&h==a.length&&g.push("")):(g.push(m),e=!0)}e=g.join("/")}else e=a;d?c.hb=e:d=""!==b.b.toString();d?lo(c,$i(b.b.toString())):d=!!b.Sb;d&&(c.Sb=b.Sb);return c}function $i(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function qk(a,b,c){return D(a)?(a=encodeURI(a).replace(b,dw),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function dw(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}
350function pk(a,b,c){this.b=a||null;this.a=!!c}function Jg(a){a.ia||(a.ia=new Lj,a.va=0,a.b&&$u(a.b,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))}function Ur(a,b){Jg(a);b=aj(a,b);return Mh(a.ia.a,b)}function mo(a,b,c){a.remove(b);0<c.length&&(a.b=null,a.ia.set(aj(a,b),Pe(c)),a.va+=c.length)}function aj(a,b){b=String(b);a.a&&(b=b.toLowerCase());return b}function bw(a,b){b&&!a.a&&(Jg(a),a.b=null,a.ia.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),mo(this,e,c))},
351a));a.a=b}function lc(a){a=f(a)?a:{};this.d=a.font;this.e=a.rotation;this.a=a.scale;this.c=a.text;this.g=a.textAlign;this.i=a.textBaseline;this.b=f(a.fill)?a.fill:null;this.f=f(a.stroke)?a.stroke:null;this.q=f(a.offsetX)?a.offsetX:0;this.l=f(a.offsetY)?a.offsetY:0}function ye(a){function b(e){return t(e)?e:D(e)?(!(e in d)&&"#"+e in d&&(e="#"+e),b(d[e])):c}a=f(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ka("EPSG:4326");var c=f(a.defaultStyle)?a.defaultStyle:ew,d={};this.c=f(a.extractStyles)?
352a.extractStyles:!0;this.b=d;this.d=function(){var e=this.get("Style");if(f(e))return e;e=this.get("styleUrl");return f(e)?b(e):c}}function no(a){a=Me(a,!1);if(a=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(a))return a=a[1],[parseInt(a.substr(6,2),16),parseInt(a.substr(4,2),16),parseInt(a.substr(2,2),16),parseInt(a.substr(0,2),16)/255]}function Vr(a){a=Me(a,!1);for(var b=[],c=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i,d;d=c.exec(a);)b.push(parseFloat(d[1]),
353parseFloat(d[2]),d[3]?parseFloat(d[3]):0),a=a.substr(d[0].length);return""!==a?void 0:b}function oo(a){var b=Me(a,!1);return null!=a.baseURI?Dl(a.baseURI,vg(b)).toString():vg(b)}function Wr(a){a=Od(a);if(f(a))return Math.sqrt(a)}function Xr(a,b){return ua(null,fw,a,b)}function Yr(a,b){a=ua({j:[],Kh:[]},gw,a,b);if(f(a)){b=a.j;a=a.Kh;var c;var d=0;for(c=Math.min(b.length,a.length);d<c;++d)b[4*d+3]=a[d];a=new Ha(null);kf(a,"XYZM",b);return a}}function Zr(a,b){var c=ua({},El,a,b);a=ua(null,po,a,b);if(f(a))return b=
354new Ha(null),kf(b,"XYZ",a),b.t(c),b}function $r(a,b){var c=ua({},El,a,b);a=ua(null,po,a,b);if(f(a))return b=new Fa(null),Nf(b,"XYZ",a,[a.length]),b.t(c),b}function as(a,b){a=ua([],hw,a,b);if(!f(a))return null;if(0===a.length)return new sb(a);b=!0;var c=a[0].M(),d,e;var g=1;for(e=a.length;g<e;++g)if(d=a[g],d.M()!=c){b=!1;break}if(b){if("Point"==c){d=a[0];b=d.a;c=d.j;g=1;for(e=a.length;g<e;++g)d=a[g],Tb(c,d.j);d=new $a(null);Df(d,b,c);d.k();qo(d,a);return d}return"LineString"==c?(d=new Qa(null),nl(d,
355a),qo(d,a),d):"Polygon"==c?(d=new Ra(null),tn(d,a),qo(d,a),d):"GeometryCollection"==c?new sb(a):null}return new sb(a)}function bs(a,b){var c=ua({},El,a,b);a=ua(null,po,a,b);if(null!=a)return b=new Ta(null),Li(b,"XYZ",a),b.t(c),b}function cs(a,b){var c=ua({},El,a,b);a=ua([null],iw,a,b);if(null!=a&&null!==a[0]){b=new Fa(null);var d=a[0],e=[d.length],g;var h=1;for(g=a.length;h<g;++h)Tb(d,a[h]),e.push(d.length);
355Nf(b,"XYZ",d,e);b.t(c);return b}}function ro(a,b){a=ua({},jw,a,b);if(!f(a))return null;b=qc(a,
356"fillStyle",so);var c=a.fill;f(c)&&!c&&(b=null);c=qc(a,"imageStyle",ds);var d=qc(a,"textStyle",es),e=qc(a,"strokeStyle",to);a=a.outline;f(a)&&!a&&(e=null);return[new qd({fill:b,image:c,stroke:e,text:d,zIndex:void 0})]}function qo(a,b){var c=b.length,d=Array(b.length),e=Array(b.length),g,h;var m=h=!1;for(g=0;g<c;++g){var r=b[g];d[g]=r.get("extrude");e[g]=r.get("altitudeMode");m=m||f(d[g]);h=h||f(e[g])}m&&a.set("extrude",d);h&&a.set("altitudeMode",e)}function fs(a,b){Of(kw,a,b)}function gs(a,b){for(b=
357b.firstChild;null!==b;b=b.nextSibling)if(1==b.nodeType){var c=uo(a,b);if(f(c))return c}}function uo(a,b){var c;for(c=b.firstElementChild;null!==c;c=c.nextElementSibling)if(Nc(Bb,c.namespaceURI)&&"name"==c.localName)return Aa(c);for(c=b.firstElementChild;null!==c;c=c.nextElementSibling)if(b=ai(c),Nc(Bb,c.namespaceURI)&&("Document"==b||"Folder"==b||"Placemark"==b||"kml"==b)&&(b=uo(a,c),f(b)))return b}function hs(a,b){var c=[];for(b=b.firstChild;null!==b;b=b.nextSibling)1==b.nodeType&&Tb(c,vo(a,b));
358return c}function vo(a,b){var c,d=[];for(c=b.firstElementChild;null!==c;c=c.nextElementSibling)if(Nc(Bb,c.namespaceURI)&&"NetworkLink"==c.localName){var e=ua({},lw,c,[]);d.push(e)}for(c=b.firstElementChild;null!==c;c=c.nextElementSibling)e=ai(c),!Nc(Bb,c.namespaceURI)||"Document"!=e&&"Folder"!=e&&"kml"!=e||Tb(d,vo(a,c));return d}function wo(a,b){b=ti(b);b=[255*(4==b.length?b[3]:1),b[2],b[1],b[0]];var c;for(c=0;4>c;++c){var d=parseInt(b[c],10).toString(16);b[c]=1==d.length?"0"+d:d}sc(a,b.join(""))}
359function is(a,b,c){wc({P:a},mw,nw,[b],c)}function js(a,b,c){var d={P:a};null!=b.$&&a.setAttribute("id",b.$);a=b.D();var e=b.c;f(e)&&(e=e.call(b,0),null!==e&&0<e.length&&(a.Style=e[0],e=e[0].a,null===e||(a.name=e.c)));e=ow[c[c.length-1].P.namespaceURI];a=Xf(a,e);wc(d,ks,Pf,a,c,e);a=c[0];b=b.Q();null!=b&&(b=Sd(b,!0,a));wc(d,ks,pw,[b],c)}function bj(a,b,c){var d=b.j;a={P:a};a.layout=b.a;a.stride=b.s;wc(a,qw,rw,[d],c)}function ls(a,b,c){b=b.Ed();var d=b.shift();a={P:a};wc(a,ms,sw,b,c);wc(a,ms,tw,[d],
360c)}function ns(a,b){mf(a,b*b)}function uw(a,b,c){return jd(Kg[0],"gx:"+c)}function vw(a,b){return jd(b[b.length-1].P.namespaceURI,"Placemark")}function pw(a,b){if(null!=a)return jd(b[b.length-1].P.namespaceURI,ww[a.M()])}function bi(){this.defaultDataProjection=null;this.defaultDataProjection=Ka("EPSG:4326")}function os(a,b){b[b.length-1].od[a.getAttribute("k")]=a.getAttribute("v")}function cj(a){return a.getAttributeNS("http://www.w3.org/1999/xlink","href")}function Fl(){}function Gl(){}function ps(a,
361b,c,d){var e;f(d)?e=f(void 0)?void 0:0:(d=[],e=0);var g;for(g=0;g<b;){var h=a[g++];d[e++]=a[g++];d[e++]=h;for(h=2;h<c;++h)d[e++]=a[g++]}d.length=e}function Ff(a){a=f(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ka("EPSG:4326");this.b=f(a.factor)?a.factor:1E5;this.a=f(a.geometryLayout)?a.geometryLayout:"XY"}function qs(a,b,c){c=f(c)?c:1E5;var d,e=Array(b);for(d=0;d<b;++d)e[d]=0;var g;var h=0;for(g=a.length;h<g;)for(d=0;d<b;++d,++h){var m=a[h],r=m-e[d];e[d]=m;a[h]=r}return rs(a,
362c)}function ss(a,b,c){var d=f(c)?c:1E5,e=Array(b);for(c=0;c<b;++c)e[c]=0;a=ts(a,d);var g;d=0;for(g=a.length;d<g;)for(c=0;c<b;++c,++d)e[c]+=a[d],a[d]=e[c];return a}function rs(a,b){b=f(b)?b:1E5;var c;var d=0;for(c=a.length;d<c;++d)a[d]=Math.round(a[d]*b);b=0;for(d=a.length;b<d;++b)c=a[b],a[b]=0>c?~(c<<1):c<<1;b="";d=0;for(c=a.length;d<c;++d){for(var e=a[d],g,h="";32<=e;)g=(32|e&31)+63,h+=String.fromCharCode(g),e>>=5;g=e+63;h+=String.fromCharCode(g);b+=h}return b}function ts(a,b){b=f(b)?b:1E5;var c=
363[],d=0,e=0,g;var h=0;for(g=a.length;h<g;++h){var m=a.charCodeAt(h)-63;d|=(m&31)<<e;32>m?(c.push(d),e=d=0):e+=5}d=0;for(e=c.length;d<e;++d)h=c[d],c[d]=h&1?~(h>>1):h>>1;d=0;for(e=c.length;d<e;++d)c[d]/=b;return c}function qh(a){a=f(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ka(null!=a.defaultDataProjection?a.defaultDataProjection:"EPSG:4326")}function Hl(a,b){var c=[],d,e;var g=0;for(e=a.length;g<e;++g){var h=a[g];0<g&&c.pop();0<=h?d=b[h]:d=b[~h].slice().reverse();c.push.apply(c,
364d)}h=0;for(d=c.length;h<d;++h)c[h]=c[h].slice();return c}function us(a,b,c,d,e){var g=a.type,h=xw[g];b="Point"===g||"MultiPoint"===g?h(a,c,d):h(a,b);c=new Wa;c.La(Sd(b,!1,e));f(a.id)&&c.Qb(a.id);f(a.properties)&&c.t(a.properties);return c}function xo(a,b,c){a[0]=a[0]*b[0]+c[0];a[1]=a[1]*b[1]+c[1]}function be(a){a=f(a)?a:{};this.e=a.featureType;this.c=a.featureNS;this.b=f(a.gmlFormat)?a.gmlFormat:new Ya;this.d=f(a.schemaLocation)?a.schemaLocation:"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";
365this.defaultDataProjection=null}function vs(a,b){for(b=b.firstChild;null!==b;b=b.nextSibling)if(1==b.nodeType)return ws(a,b)}function ws(a,b){var c={},d=Yf(b.getAttribute("numberOfFeatures"));c.numberOfFeatures=d;return ua(c,yw,b,[],a.b)}function xs(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return ua({},ys,a,[])}function zs(a,b){var c=jd("http://www.opengis.net/ogc","Filter"),d=jd("http://www.opengis.net/ogc","FeatureId");c.appendChild(d);d.setAttribute("fid",b);a.appendChild(c)}
366function af(a){a=f(a)?a:{};this.defaultDataProjection=null;this.b=f(a.splitCollection)?a.splitCollection:!1}function As(a){a=a.K();return 0==a.length?"":a[0]+" "+a[1]}function yo(a){a=a.K();for(var b=[],c=0,d=a.length;c<d;++c)b.push(a[c][0]+" "+a[c][1]);return b.join(",")}function Bs(a){var b=[];a=a.Ed();for(var c=0,d=a.length;c<d;++c)b.push("("+yo(a[c])+")");return b.join(",")}function Cs(a){var b=a.M();a=(0,zw[b])(a);b=b.toUpperCase();return 0===a.length?b+" EMPTY":b+"("+a+")"}function Aw(a){this.a=
367a;this.b=-1}function Ds(a,b){b=f(b)?b:!1;return"0"<=a&&"9">
367=a||"."==a&&!b}function Il(a){var b=a.a.charAt(++a.b),c={position:a.b,value:b};if("("==b)c.type=2;else if(","==b)c.type=5;else if(")"==b)c.type=3;else if(Ds(b)||"-"==b){c.type=4;b=a.b;var d=!1;do{"."==e&&(d=!0);var e=a.a.charAt(++a.b)}while(Ds(e,d));a=parseFloat(a.a.substring(b,a.b--));c.value=a}else if("a"<=b&&"z">=b||"A"<=b&&"Z">=b){c.type=1;b=a.b;do e=a.a.charAt(++a.b);while("a"<=e&&"z">=e||"A"<=e&&"Z">=e);a=a.a.substring(b,a.b--).toUpperCase();
368c.value=a}else{if(" "==b||"\t"==b||"\r"==b||"\n"==b)return Il(a);if(""===b)c.type=6;else throw Error("Unexpected character: "+b);}return c}function rh(a){this.a=a}function Es(a){var b=a.b;if(a.match(1)){var c=b.value;if("GEOMETRYCOLLECTION"==c){a:{if(a.match(2)){b=[];do b.push(Es(a));while(a.match(5));if(a.match(3)){a=b;break a}}else if(ci(a)){a=[];break a}throw Error(Lg(a));}return new sb(a)}var d=Bw[c];b=Cw[c];if(!f(d)||!f(b))throw Error("Invalid geometry type: "+c);a=d.call(a);return new b(a)}throw Error(Lg(a));
369}function zo(a){for(var b=[],c=0;2>c;++c){var d=a.b;if(a.match(4))b.push(d.value);else break}if(2==b.length)return b;throw Error(Lg(a));}function Fs(a){for(var b=[zo(a)];a.match(5);)b.push(zo(a));return b}function Gs(a){for(var b=[a.kf()];a.match(5);)b.push(a.kf());return b}function ci(a){var b=1==a.b.type&&"EMPTY"==a.b.value;b&&(a.b=Il(a.a));return b}function Lg(a){return"Unexpected `"+a.b.value+"` at position "+a.b.position+" in `"+a.a.a+"`"}function dj(){this.version=void 0}function Mg(a,b){return ua({},
370Dw,a,b)}function Ao(a,b){return ua({},Ew,a,b)}function Hs(a,b){b=Mg(a,b);if(f(b))return a=[Yf(a.getAttribute("width")),Yf(a.getAttribute("height"))],b.size=a,b}function Is(a,b){return ua([],Fw,a,b)}function rk(){this.c="http://mapserver.gis.umn.edu/mapserver";this.b=new Zf;this.defaultDataProjection=null}function Gw(a,b,c){b.namespaceURI=a.c;var d=ai(b),e=[];if(0===b.childNodes.length)return e;"msGMLOutput"==d&&Oa(b.childNodes,function(g){if(1===g.nodeType){var h=c[0],m=g.localName,r=RegExp;var x=
371"_layer".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08");r=new r(x,"");m=m.replace(r,"")+"_feature";h.featureType=m;h.featureNS=this.c;r={};r[m]=mc(this.b.nf,this.b);h=Ca([h.featureNS,null],r);g.namespaceURI=this.c;g=ua([],h,g,c,this.b);f(g)&&Tb(e,g)}},a);"FeatureCollection"==d&&(a=ua([],a.b.b,b,[{}],a.b),f(a)&&(e=a));return e}function ej(){this.d=new Gl}function Bo(a){var b=Aa(a).split(" ");if(f(b)&&2==b.length)return a=+b[0],b=+b[1],isNaN(a)||isNaN(b)?void 0:[a,b]}function tb(a){ub.call(this);
372a=f(a)?a:{};this.a=null;this.d=ah;this.c=void 0;ma(this,Uc("projection"),this.Vk,!1,this);ma(this,Uc("tracking"),this.Wk,!1,this);f(a.projection)&&this.ug(Ka(a.projection));f(a.trackingOptions)&&this.Dh(a.trackingOptions);this.Zd(f(a.tracking)?a.tracking:!1)}function Js(a,b,c){for(var d=[],e=a(0),g=a(1),h=b(e),m=b(g),r=[g,e],x=[m,h],F=[1,0],M={},S=1E5,Y,O,P,Z,ca;0<--S&&0<F.length;)P=F.pop(),e=r.pop(),h=x.pop(),g=P.toString(),g in M||(d.push(h[0],h[1]),M[g]=!0),Z=F.pop(),g=r.pop(),m=x.pop(),ca=(P+
373Z)/2,Y=a(ca),O=b(Y),Vp(O[0],O[1],h[0],h[1],m[0],m[1])<c?(d.push(m[0],m[1]),g=Z.toString(),M[g]=!0):(F.push(Z,ca,ca,P),x.push(m,O,O,h),r.push(g,Y,Y,e));return d}function Hw(a,b,c,d,e){var g=Ka("EPSG:4326");return Js(function(h){return[a,b+(c-b)*h]},Wc(g,d),e)}function Iw(a,b,c,d,e){var g=Ka("EPSG:4326");return Js(function(h){return[b+(c-b)*h,a]},Wc(g,d),e)}function sg(a){a=f(a)?a:{};this.i=this.g=null;this.d=this.c=Infinity;this.f=this.e=-Infinity;this.n=f(a.targetSize)?a.targetSize:100;this.U=f(a.maxLines)?
374a.maxLines:100;this.b=[];this.a=[];this.V=f(a.strokeStyle)?a.strokeStyle:Jw;this.o=this.q=void 0;this.l=null;this.setMap(f(a.map)?a.map:null)}function Co(a,b,c,d,e){var g=e;b=Hw(b,a.e,a.c,a.i,c);g=f(a.b[g])?a.b[g]:new Ha(null);kf(g,"XY",b);ta(g.G(),d)&&(a.b[e++]=g);return e}function Do(a,b,c,d,e){var g=e;b=Iw(b,a.f,a.d,a.i,c);g=f(a.a[g])?a.a[g]:new Ha(null);kf(g,"XY",b);ta(g.G(),d)&&(a.a[e++]=g);return e}function tg(a,b,c,d,e,g,h){Di.call(this,a,b,c,0,d);this.i=e;this.a=new Image;null!==g&&(this.a.crossOrigin=
375g);this.d={};this.c=null;this.state=0;this.g=h}function ug(a,b,c,d,e){Uf.call(this,a,b);this.g=c;this.a=new Image;null!==d&&(this.a.crossOrigin=d);this.c={};this.e=null;this.i=e}function Eo(a){Oa(a.e,Hb);a.e=null}function Kw(a,b,c){return function(d,e,g){return c(a,b,d,e,g)}}function Lw(){}function Jl(a,b){Tc.call(this);this.b=new oh(this);var c=a;b&&(c=Da(a));this.b.Ka(c,"dragenter",this.$m);c!=a&&this.b.Ka(c,"dragover",this.an);this.b.Ka(a,"dragover",this.bn);this.b.Ka(a,"drop",this.cn)}function sh(a,
376b){this.e=[];this.U=a;this.o=b||null;this.d=this.b=!1;this.c=void 0;this.q=this.V=this.g=!1;this.f=0;this.a=null;this.i=0}function di(a,b,c){a.b=!0;a.c=c;a.d=!b;Ks(a)}function fj(a){if(a.b){if(!a.q)throw new Kl;a.q=!1}}function Ll(a,b,c,d){a.e.push([b,c,d]);a.b&&Ks(a)}function Ls(a){return pf(a.e,function(b){return w(b[1])})}
376function Ks(a){if(a.f&&a.b&&Ls(a)){var b=a.f,c=Ml[b];c&&(gb.clearTimeout(c.$),delete Ml[b]);a.f=0}a.a&&(a.a.i--,delete a.a);b=a.c;for(var d=c=!1;a.e.length&&!a.g;){var e=a.e.shift(),
377g=e[0],h=e[1];e=e[2];if(g=a.d?h:g)try{var m=g.call(e||a.o,b);f(m)&&(a.d=a.d&&(m==b||m instanceof Error),a.c=b=m);Bq(b)&&(d=!0,a.g=!0)}catch(r){b=r,a.d=!0,Ls(a)||(c=!0)}}a.c=b;d&&(m=J(a.l,a,!0),d=J(a.l,a,!1),b instanceof sh?(Ll(b,m,d),b.V=!0):b.then(m,d));c&&(b=new Ms(b),Ml[b.$]=b,a.f=b.$)}function Kl(){ia.call(this)}function sk(){ia.call(this)}function Ms(a){this.$=gb.setTimeout(J(this.a,this),0);this.b=a}function Ns(a,b){f(a.name)?(this.name=a.name,this.code=Os[a.name]):(this.code=a.code,this.name=
378Mw(a.code));ia.call(this,qa("%s %s",this.name,b))}function Mw(a){var b=oj(Os,function(c){return a==c});if(!f(b))throw Error("Invalid code: "+a);return b}function Ps(a,b){tc.call(this,a.type,b)}function gj(){Tc.call(this);this.Ya=new FileReader;this.Ya.onloadstart=J(this.b,this);this.Ya.onprogress=J(this.b,this);this.Ya.onload=J(this.b,this);this.Ya.onabort=J(this.b,this);this.Ya.onerror=J(this.b,this);this.Ya.onloadend=J(this.b,this)}function Nw(a){var b=new sh;a.Ka("loadend",V(function(c,d){var e=
379d.Ya.result,g=d.getError();null==e||g?(fj(c),di(c,!1,g)):(fj(c),di(c,!0,e));d.Yc()},b,a));return b}function Dc(a){a=f(a)?a:{};Jb.call(this,{handleEvent:Le});this.f=f(a.formatConstructors)?a.formatConstructors:[];this.o=f(a.projection)?Ka(a.projection):null;this.e=null;this.a=void 0}function th(a,b,c,d,e){tc.call(this,a,b);this.features=d;this.file=c;this.projection=e}function ei(a,b){this.x=a;this.y=b}function md(a){a=f(a)?a:{};Db.call(this,{handleDownEvent:Ow,handleDragEvent:Pw,handleUpEvent:Qw});
380this.i=f(a.condition)?a.condition:Rj;this.a=this.f=void 0;this.g=0;this.n=f(a.duration)?a.duration:400}function Pw(a){if(ng(a)){var b=a.map,c=b.xa();a=a.pixel;a=new ei(a[0]-c[0]/2,c[1]/2-a[1]);c=Math.atan2(a.y,a.x);a=Math.sqrt(a.x*a.x+a.y*a.y);var d=b.R(),e=bh(d);b.render();f(this.f)&&Hi(b,d,e.rotation-(c-this.f));this.f=c;f(this.a)&&Ii(b,d,e.resolution/a*this.a);f(this.a)&&(this.g=this.a/a);this.a=a}}function Qw(a){if(!ng(a))return!0;a=a.map;var b=a.R();Ke(b,-1);var c=bh(b),d=this.g-1,e=c.rotation;
381e=b.constrainRotation(e,0);Hi(a,b,e,void 0,void 0);c=c.resolution;e=this.n;
381c=b.constrainResolution(c,0,d);Ii(a,b,c,void 0,e);this.g=0;return!1}function Ow(a){return ng(a)&&this.i(a)?(Ke(a.map.R(),1),this.a=this.f=void 0,!0):!1}function tk(a,b){tc.call(this,a);this.feature=b}function xc(a){Db.call(this,{handleDownEvent:Rw,handleEvent:Qs,handleUpEvent:Sw});this.N=null;this.H=!1;this.Ga=f(a.source)?a.source:null;this.oa=f(a.features)?a.features:null;this.gi=f(a.snapTolerance)?a.snapTolerance:12;this.Nc=
382f(a.minPointsPerRing)?a.minPointsPerRing:3;var b=this.L=a.type,c;"Point"===b||"MultiPoint"===b?c=hj:"LineString"===b||"MultiLineString"===b?c=uh:"Polygon"===b||"MultiPolygon"===b?c=vh:"Circle"===b&&(c=uk);this.a=c;this.f=this.n=this.p=this.g=this.i=null;this.T=new Ld({style:f(a.style)?a.style:Tw()});this.Fa=a.geometryName;this.Ee=f(a.condition)?a.condition:Qj;this.ba=f(a.freehandCondition)?a.freehandCondition:Rj;ma(this,Uc("active"),this.Ra,!1,this)}function Tw(){var a=hn();return function(b){return a[b.Q().M()]}}
383function Qs(a){var b=!this.H;this.H&&a.type===Tj?(Rs(this,a),b=!1):a.type===Uj?b=Ss(this,a):a.type===fl&&(b=!1);return Sj.call(this,a)&&b}function Rw(a){if(this.Ee(a))return this.N=a.pixel,!0;if(this.a!==uh&&this.a!==vh||!this.ba(a))return!1;this.N=a.pixel;this.H=!0;null===this.i&&Fo(this,a);return!0}function Sw(a){this.H=!1;var b=this.N,c=a.pixel,d=b[0]-c[0];b=b[1]-c[1];c=!0;4>=d*d+b*b&&(Ss(this,a),null===this.i?Fo(this,a):(this.a===hj||this.a===uk)&&null!==this.i||Ts(this,a)?this.X():Rs(this,a),
384c=!1);return c}function Ss(a,b){if(a.a===hj&&null===a.i)Fo(a,b);else if(null===a.i){var c=b.coordinate.slice();null===a.p?(a.p=new Wa(new Ta(c)),Nl(a)):a.p.Q().W(c)}else{c=b.coordinate;var d=a.g.Q(),e,g;a.a===hj?(g=d.K(),g[0]=c[0],g[1]=c[1],d.W(g)):(a.a===uh?e=d.K():a.a===vh?e=a.f[0]:a.a===uk&&(e=d.dd()),Ts(a,b)&&(c=a.i.slice()),a.p.Q().W(c),g=e[e.length-1],g[0]=c[0],g[1]=c[1],a.a===uh?d.W(e):a.a===vh?(g=a.n.Q(),g.W(e),d.W(a.f)):a.a===uk&&(g=a.n.Q(),g.W([d.dd(),c]),d.Ag(g.Bg())));Nl(a)}return!0}function Ts(a,
385b){var c=!1;if(null!==a.g){var d=a.g.Q(),e=!1,g=[a.i];a.a===uh?e=2<d.K().length:a.a===vh&&(e=d.K()[0].length>a.Nc,g=[a.f[0][0],a.f[0][a.f[0].length-2]]);if(e){d=b.map;e=0;for(var h=g.length;e<h;e++){var m=g[e],r=d.ta(m),x=b.pixel;c=x[0]-r[0];r=x[1]-r[1];x=a.H&&a.ba(b)?1:a.gi;if(c=Math.sqrt(c*c+r*r)<=x){a.i=m;break}}}}return c}function Fo(a,b){b=b.coordinate;a.i=b;var c;a.a===hj?c=new Ta(b.slice()):a.a===uh?c=new Ha([b.slice(),b.slice()]):a.a===vh?(a.n=new Wa(new Ha([b.slice(),b.slice()])),a.f=[[b.slice(),
386b.slice()]],c=new Fa(a.f)):a.a===uk&&(c=new hb(b.slice(),0),a.n=new Wa(new Ha([b.slice(),b.slice()])));a.g=new Wa;f(a.Fa)&&a.g.Ic(a.Fa);a.g.La(c);Nl(a);a.dispatchEvent(new tk("drawstart",a.g))}function Rs(a,b){b=b.coordinate;var c=a.g.Q(),d;a.a===uh?(a.i=b.slice(),d=c.K(),d.push(b.slice()),c.W(d)):a.a===vh&&(a.f[0].push(b.slice()),c.W(a.f));Nl(a)}function Us(a){a.i=null;var b=a.g;null!==b&&(a.g=null,a.p=null,a.n=null,a.T.b.clear());return b}function Nl(a){var b=[];null===a.g||b.push(a.g);null===a.n||
387b.push(a.n);null===a.p||b.push(a.p);a.T.ld(new Sa(b))}function ed(a){Db.call(this,{handleDownEvent:Uw,handleDragEvent:Vw,handleEvent:Vs,handleUpEvent:Ww});this.X=f(a.deleteCondition)?a.deleteCondition:jp(Qj,Om);this.T=this.f=null;this.L=[0,0];this.a=new fk;this.i=f(a.pixelTolerance)?a.pixelTolerance:10;this.N=!1;this.g=null;this.n=new Ld({style:f(a.style)?a.style:Xw()});this.H={Point:this.Bl,LineString:this.Dg,LinearRing:this.Dg,Polygon:this.Cl,MultiPoint:this.zl,MultiLineString:this.yl,MultiPolygon:this.Al,
388GeometryCollection:this.xl};this.p=a.features;this.p.forEach(this.Cg,this);ma(this.p,"add",this.vl,!1,this);ma(this.p,"remove",this.wl,!1,this)}function Ws(a,b){var c=a.f;null===c?(c=new Wa(new Ta(b)),a.f=c,a.n.pg(c)):c.Q().W(b)}function Yw(a,b){return a.index-b.index}function Uw(a){Go(this,a.pixel,a.map);this.g=[];var b=this.f;if(null!==b){a=[];b=b.Q().K();var c=ne([b]);c=gk(this.a,c);var d={};c.sort(Yw);for(var e=0,g=c.length;e<g;++e){var h=c[e],m=h.aa,r=C(h.feature),x=h.depth;x&&(r+="-"+x.join("-"));
389d[r]||(d[r]=Array(2));if(Yg(m[0],b)&&!d[r][0])this.g.push([h,0]),d[r][0]=h;else if(Yg(m[1],b)&&!d[r][1]){if("LineString"!==h.geometry.M()&&"MultiLineString"!==h.geometry.M()||!d[r][0]||0!==d[r][0].index)this.g.push([h,1]),d[r][1]=h}else C(m)in this.T&&!d[r][0]&&!d[r][1]&&a.push([h,b])}for(e=a.length-1;0<=e;--e)this.qk.apply(this,a[e])}return null!==this.f}function Vw(a){a=a.coordinate;for(var b=0,c=this.g.length;b<c;++b){var d=this.g[b],e=d[0],g=e.depth,h=e.geometry,m=h.K(),r=e.aa;for(d=d[1];a.length<
390h.s;)a.push(0);switch(h.M()){case "Point":m=a;r[0]=r[1]=a;break;case "MultiPoint":m[e.index]=a;r[0]=r[1]=a;break;case "LineString":m[e.index+d]=a;r[d]=a;break;case "MultiLineString":m[g[0]][e.index+d]=a;r[d]=a;break;case "Polygon":m[g[0]][e.index+d]=a;r[d]=a;break;case "MultiPolygon":m[g[1]][g[0]][e.index+d]=a,r[d]=a}h.W(m)}Ws(this,a)}function Ww(){for(var a,b=this.g.length-1;0<=b;--b)a=this.g[b][0],this.a.update(ne(a.aa),a);return!1}function Vs(a){a.map.R().c.slice()[1]||a.type!=Uj||this.o||(this.L=
391a.pixel,Go(this,a.pixel,a.map));if(null!==this.f&&this.X(a)){this.f.Q();var b=this.g;var c={},d,e,g,h,m,r,x,F,M;for(m=b.length-1;0<=m;--m)if(g=b[m],F=g[0],h=F.geometry,e=h.K(),M=C(F.feature),F.depth&&(M+="-"+F.depth.join("-")),d=x=r=void 0,0===g[1]?(x=F,r=F.index):1==g[1]&&(d=F,r=F.index+1),M in c||(c[M]=[d,x,r]),g=c[M],f(d)&&(g[0]=d),f(x)&&(g[1]=x),f(g[0])&&f(g[1])){d=e;M=!1;x=r-1;switch(h.M()){case "MultiLineString":e[F.depth[0]].splice(r,1);M=!0;break;case "LineString":e.splice(r,1);M=!0;break;
392case "MultiPolygon":d=d[F.depth[1]];case "Polygon":d=d[F.depth[0]],4<d.length&&(r==d.length-1&&(r=0),d.splice(r,1),M=!0,0===r&&(d.pop(),d.push(d[0]),x=d.length-1))}M&&(this.a.remove(g[0]),this.a.remove(g[1]),h.W(e),e={depth:F.depth,feature:F.feature,geometry:F.geometry,index:x,aa:[g[0].aa[0],g[1].aa[1]]},this.a.ha(ne(e.aa),e),Xs(this,h,r,F.depth,-1),this.n.Yd(this.f),this.f=null)}b=!0}return Sj.call(this,a)&&!b}function Go(a,b,c){function d(x,F){return li(e,x.aa)-li(e,F.aa)}var e=c.ka(b),g=c.ka([b[0]-
393a.i,b[1]+a.i]),h=c.ka([b[0]+a.i,b[1]-a.i]);g=ne([g,h]);g=gk(a.a,g);if(0<g.length){g.sort(d);h=g[0].aa;var m=ki(e,h),r=c.ta(m);if(Math.sqrt(tf(b,r))<=a.i){b=c.ta(h[0]);c=c.ta(h[1]);b=tf(r,b);c=tf(r,c);a.N=Math.sqrt(Math.min(b,c))<=a.i;a.N&&(m=b>c?h[1]:h[0]);Ws(a,m);c={};c[C(h)]=!0;b=1;for(r=g.length;b<r;++b)if(m=g[b].aa,Yg(h[0],m[0])&&Yg(h[1],m[1])||Yg(h[0],m[1])&&Yg(h[1],m[0]))c[C(m)]=!0;else break;a.T=c;return}}null!==a.f&&(a.n.Yd(a.f),a.f=null)}function Xs(a,b,c,d,e){Wi(a.a,b.G(),function(g){g.geometry===
394b&&(!f(d)||rd(g.depth,d))&&g.index>c&&(g.index+=e)})}function Xw(){var a=hn();return function(){return a.Point}}function ij(a,b,c){tc.call(this,a);this.selected=b;this.deselected=c}function pc(a){Jb.call(this,{handleEvent:Ys});a=f(a)?a:{};this.o=f(a.condition)?a.condition:Om;this.g=f(a.addCondition)?a.addCondition:hf;this.H=f(a.removeCondition)?a.removeCondition:hf;this.L=f(a.toggleCondition)?a.toggleCondition:Rj;this.i=f(a.multi)?a.multi:!1;this.e=f(a.filter)?a.filter:Le;if(f(a.layers))if(w(a.layers))var b=
395a.layers;else{var c=a.layers;b=function(d){return Nc(c,d)}}else b=Le;this.f=b;this.a=new Ld({style:f(a.style)?a.style:Zw()});a=this.a.b;ma(a,"add",this.n,!1,this);ma(a,"remove",this.J,!1,this)}function Ys(a){if(!this.o(a))return!0;var b=this.g(a),c=this.H(a),d=this.L(a),e=a.map,g=this.a.b,h=[],m=[],r=!1;if(b||c||d){e.Ne(a.pixel,function(x,F){-1==Nb(g.a,x)?(b||d)&&this.e(x,F)&&m.push(x):(c||d)&&h.push(x)},this,this.f);for(e=h.length-1;0<=e;--e)g.remove(h[e]);g.af(m);if(0<m.length||0<h.length)r=!0}else e.Ne(a.pixel,
396function(x,F){if(this.e(x,F))return m.push(x),!this.i},this,this.f),0<m.length&&1==g.Ib()&&g.item(0)==m[0]||(r=!0,0!==g.Ib()&&(h=Array.prototype.concat(g.a),g.clear()),g.af(m));r&&this.dispatchEvent(new ij("select",m,h));return Sp(a)}function Zw(){var a=hn();Tb(a.Polygon,a.LineString);Tb(a.GeometryCollection,a.LineString);return function(b){return a[b.Q().M()]}}function Ec(a){Db.call(this,{handleEvent:$w,handleDownEvent:Le,handleUpEvent:ax});a=f(a)?a:{};this.i=f(a.source)?a.source:null;this.g=f(a.features)?
397a.features:null;this.X=[];this.p={};this.H={};this.N={};this.n={};this.L=null;this.f=f(a.pixelTolerance)?a.pixelTolerance:10;this.ba=J(bx,this);this.a=new fk;this.T={Point:this.Il,LineString:this.Gg,LinearRing:this.Gg,Polygon:this.Jl,MultiPoint:this.Gl,MultiLineString:this.Fl,MultiPolygon:this.Hl,GeometryCollection:this.El}}function $w(a){var b=a.pixel,c=a.coordinate;var d=a.map;
397var e=d.ka([b[0]-this.f,b[1]+this.f]);var g=d.ka([b[0]+this.f,b[1]-this.f]);e=ne([e,g]);var h=gk(this.a,e);e=!1;var m=null;
398g=null;0<h.length&&(this.L=c,h.sort(this.ba),h=h[0].aa,m=ki(c,h),g=d.ta(m),Math.sqrt(tf(b,g))<=this.f&&(e=!0,b=d.ta(h[0]),c=d.ta(h[1]),b=tf(g,b),c=tf(g,c),Math.sqrt(Math.min(b,c))<=this.f))&&(m=b>c?h[1]:h[0],g=d.ta(m),g=[Math.round(g[0]),Math.round(g[1])]);e&&(a.coordinate=m.slice(0,2),a.pixel=g);return Sj.call(this,a)}function ax(){var a=Vd(this.n);a.length&&(Oa(a,this.Jh,this),this.n={});return!1}function bx(a,b){return li(this.L,a.aa)-li(this.L,b.aa)}function Ba(a){a=f(a)?a:{};var b=Gd(a);delete b.gradient;
399delete b.radius;delete b.blur;delete b.shadow;delete b.weight;Ga.call(this,b);this.d=null;this.L=f(a.shadow)?a.shadow:250;this.p=void 0;this.l=null;ma(this,Uc("gradient"),this.Pj,!1,this);this.yh(f(a.gradient)?a.gradient:cx);this.th(f(a.blur)?a.blur:15);this.Ig(f(a.radius)?a.radius:8);ma(this,[Uc("blur"),Uc("radius")],this.hg,!1,this);this.hg();var c=f(a.weight)?a.weight:"weight",d;D(c)?d=function(e){return e.get(c)}:d=c;this.e(J(function(e){e=d(e);e=f(e)?Hd(e,0,1):1;var g=255*e|0,h=this.l[g];f(h)||
400(h=[new qd({image:new ld({opacity:e,src:this.p})})],this.l[g]=h);return h},this));this.set("renderOrder",null);ma(this,"render",this.hk,!1,this)}function dx(a,b){var c=b||{};b=c.document||document;var d=Kd("SCRIPT"),e={sh:d,oc:void 0},g=new sh(ex,e),h=null,m=null!=c.timeout?c.timeout:5E3;0<m&&(h=window.setTimeout(function(){Ol(d,!0);var r=new Ho(fx,"Timeout reached for loading script "+a);fj(g);di(g,!1,r)},m),e.oc=h);d.onload=d.onreadystatechange=function(){d.readyState&&"loaded"!=d.readyState&&"complete"!=
401d.readyState||(Ol(d,c.Bi||!1,h),fj(g),di(g,!0,null))};d.onerror=function(){Ol(d,!0,h);var r=new Ho(gx,"Error while loading script "+a);fj(g);di(g,!1,r)};kg(d,{type:"text/javascript",charset:"UTF-8",src:a});hx(b).appendChild(d);return g}function hx(a){var b=a.getElementsByTagName("HEAD");return b&&0!=b.length?b[0]:a.documentElement}function ex(){if(this&&this.sh){var a=this.sh;a&&"SCRIPT"==a.tagName&&Ol(a,!0,this.oc)}}function Ol(a,b,c){null!=c&&gb.clearTimeout(c);a.onload=A;a.onerror=A;a.onreadystatechange=
402A;b&&window.setTimeout(function(){T(a)},0)}function Ho(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ia.call(this,c);this.code=a}function jj(a,b){this.a=new Ig(a);this.b=b?b:"callback";this.oc=5E3}function ix(a,b,c){return function(){Io(a,!1);c&&c(b)}}function jx(a,b){return function(c){Io(a,!0);b.apply(void 0,arguments)}}function Io(a,b){gb._callbacks_[a]&&(b?delete gb._callbacks_[a]:gb._callbacks_[a]=A)}function kx(a){var b=/\{z\}/g,c=/\{x\}/g,d=/\{y\}/g,e=/\{-y\}/g;return function(g){return null===
403g?void 0:a.replace(b,g[0].toString()).replace(c,g[1].toString()).replace(d,g[2].toString()).replace(e,function(){return((1<<g[0])-g[2]-1).toString()})}}function kj(a){return Jo(Jc(a,kx))}function Jo(a){return 1===a.length?a[0]:function(b,c,d){return null===b?void 0:a[Gf((b[1]<<b[0])+b[2],a.length)](b,c,d)}}function vk(){}function lj(a,b){var c=[0,0,0];return function(d,e,g){return null===d?void 0:b(a(d,g,c),e,g)}}function fi(a){var b=[],c=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(c){var d=
404c[2].charCodeAt(0),e;for(e=c[1].charCodeAt(0);e<=d;++e)b.push(a.replace(c[0],String.fromCharCode(e)))}else b.push(a);return b}function ib(a){Yb.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:f(a.state)?a.state:void 0,tileGrid:a.tileGrid,tilePixelRatio:a.tilePixelRatio,wrapX:a.wrapX});this.tileUrlFunction=f(a.tileUrlFunction)?a.tileUrlFunction:vk;this.crossOrigin=f(a.crossOrigin)?a.crossOrigin:null;this.tileLoadFunction=f(a.tileLoadFunction)?
405a.tileLoadFunction:lx;this.tileClass=f(a.tileClass)?a.tileClass:ug}function lx(a,b){a.Ma().src=b}function Ad(a){var b=f(a.extent)?a.extent:kq,c;f(a.tileSize)&&(c=Xd(a.tileSize));c=np(b,a.maxZoom,c);yd.call(this,{minZoom:a.minZoom,origin:H(b,"top-left"),resolutions:c,tileSize:a.tileSize})}function Qb(a){ib.call(this,{crossOrigin:"anonymous",opaque:!0,projection:Ka("EPSG:3857"),state:"loading",tileLoadFunction:a.tileLoadFunction,wrapX:f(a.wrapX)?a.wrapX:!0});this.g=f(a.culture)?a.culture:"en-us";this.e=
406f(a.maxZoom)?a.maxZoom:-1;var b=new Ig("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.imagerySet);(new jj(b,"jsonp")).send({include:"ImageryProviders",uriScheme:"https",key:a.key},J(this.i,this))}function ab(a){bb.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.p=void 0;this.T=f(a.distance)?a.distance:20;this.n=[];this.l=a.source;this.l.r("change",ab.prototype.ba,this)}function Zs(a){if(f(a.p)){a.n.length=0;for(var b=Yd(),c=a.T*a.p,d=a.l.Dc(),
407e={},g=0,h=d.length;g<h;g++){var m=d[g];ag(e,C(m).toString())||(m=m.Q().K(),oi(m,b),yf(b,c,b),m=a.l.Se(b),m=ke(m,function(r){r=C(r).toString();return r in e?!1:e[r]=!0}),a.n.push(mx(m)))}}}function mx(a){for(var b=a.length,c=[0,0],d=0;d<b;d++){var e=a[d].Q().K();Xg(c,e)}b=1/b;c[0]*=b;c[1]*=b;c=new Wa(new Ta(c));c.set("features",a);return c}
407function $b(a){Zb.call(this,{projection:a.projection,resolutions:a.resolutions});this.T=f(a.crossOrigin)?a.crossOrigin:null;this.g=f(a.displayDpi)?a.displayDpi:
40896;this.e=f(a.params)?a.params:{};var b;f(a.url)?b=Kw(a.url,this.e,J(this.Ul,this)):b=Lw;this.J=b;this.a=f(a.imageLoadFunction)?a.imageLoadFunction:xn;this.X=f(a.hidpi)?a.hidpi:!0;this.N=f(a.metersPerUnit)?a.metersPerUnit:1;this.n=f(a.ratio)?a.ratio:1;this.ba=f(a.useOverlay)?a.useOverlay:!1;this.c=null;this.p=0}function Ic(a){var b=f(a.attributions)?a.attributions:null,c=a.imageExtent,d,e;f(a.imageSize)&&(d=R(c)/a.imageSize[1],e=[d]);var g=f(a.crossOrigin)?a.crossOrigin:null,h=f(a.imageLoadFunction)?
409a.imageLoadFunction:xn;Zb.call(this,{attributions:b,logo:a.logo,projection:Ka(a.projection),resolutions:e});this.a=new tg(c,d,1,b,a.url,g,h);ma(this.a,"change",this.i,!1,this)}function Eb(a){a=f(a)?a:{};Zb.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.X=f(a.crossOrigin)?a.crossOrigin:null;this.e=a.url;this.n=f(a.imageLoadFunction)?a.imageLoadFunction:xn;this.c=a.params;this.g=!0;$s(this);this.T=a.serverType;this.ba=f(a.hidpi)?a.hidpi:!0;
410this.a=null;this.p=[0,0];this.N=0;this.J=f(a.ratio)?a.ratio:1.5}function at(a,b,c,d,e,g){g[a.g?"CRS":"SRS"]=e.b;"STYLES"in a.c||(g.STYLES=new String(""));if(1!=d)switch(a.T){case "geoserver":d=90*d+.5|0;g.FORMAT_OPTIONS=f(g.FORMAT_OPTIONS)?g.FORMAT_OPTIONS+(";dpi:"+d):"dpi:"+d;break;case "mapserver":g.MAP_RESOLUTION=90*d;break;case "carmentaserver":case "qgis":g.DPI=90*d}g.WIDTH=c[0];g.HEIGHT=c[1];c=e.d;var h;a.g&&"ne"==c.substr(0,2)?h=[b[1],b[0],b[3],b[2]]:h=b;g.BBOX=h.join(",");return Ti(Ui([a.e],
411g))}function $s(a){a.g=0<=Mb(qc(a.c,"VERSION","1.3.0"),"1.3")}function rb(a){var b=f(a.projection)?a.projection:"EPSG:3857",c=new Ad({extent:zi(b),maxZoom:a.maxZoom,tileSize:a.tileSize});ib.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,projection:b,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:vk,wrapX:f(a.wrapX)?a.wrapX:!0});this.l=c.yb();f(a.tileUrlFunction)?this.pa(a.tileUrlFunction):f(a.urls)?this.pa(kj(a.urls)):f(a.url)&&
412this.e(a.url)}function Kb(a){a=f(a)?a:{};var b;f(a.attributions)?b=a.attributions:b=[wk];rb.call(this,{attributions:b,crossOrigin:f(a.crossOrigin)?a.crossOrigin:"anonymous",opaque:!0,maxZoom:f(a.maxZoom)?a.maxZoom:19,tileLoadFunction:a.tileLoadFunction,url:f(a.url)?a.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:a.wrapX})}function Fb(a){a=f(a)?a:{};var b=nx[a.layer];this.g=a.layer;rb.call(this,{attributions:b.attributions,crossOrigin:"anonymous",logo:"https://developer.mapquest.com/content/osm/mq_logo.png",
413maxZoom:b.maxZoom,opaque:!0,tileLoadFunction:a.tileLoadFunction,url:f(a.url)?a.url:"https://otile{1-4}-s.mqcdn.com/tiles/1.0.0/"+this.g+"/{z}/{x}/{y}.jpg"})}function Lb(a){var b=a.layer.indexOf("-"),c=ox[a.layer];rb.call(this,{attributions:px,crossOrigin:"anonymous",maxZoom:qx[-1==b?a.layer:a.layer.slice(0,b)].maxZoom,opaque:c.opaque,tileLoadFunction:a.tileLoadFunction,url:f(a.url)?a.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+a.layer+"/{z}/{x}/{y}."+c.Ta})}function nb(a){a=f(a)?a:{};var b=
414f(a.params)?a.params:{};ib.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:J(this.lm,this),wrapX:f(a.wrapX)?a.wrapX:!0});var c=a.urls;!f(c)&&f(a.url)&&(c=fi(a.url));this.g=null!=c?c:[];this.e=b;this.i=Yd()}function Ko(a,b){Uf.call(this,a,2);this.c=Xd(b.na(a[0]));this.a={}}function yc(a){Yb.call(this,{opaque:!1,projection:a.projection,tileGrid:a.tileGrid})}function Rb(a){ib.call(this,{attributions:a.attributions,
415crossOrigin:a.crossOrigin,projection:Ka("EPSG:3857"),state:"loading",tileLoadFunction:a.tileLoadFunction,wrapX:f(a.wrapX)?a.wrapX:!0});(new jj(a.url)).send(void 0,J(this.e,this))}function hc(a){Yb.call(this,{projection:Ka("EPSG:3857"),state:"loading"});this.i=f(a.preemptive)?a.preemptive:!0;this.e=vk;this.g=void 0;(new jj(a.url)).send(void 0,J(this.om,this))}function Lo(a,b,c,d,e){Uf.call(this,a,b);this.g=c;this.a=d;this.i=e;this.d=this.e=this.c=null}function Mo(a,b){if(null===a.c||null===a.e||null==
416a.d)return null;var c=a.c[Math.floor((1-(b[1]-a.a[1])/(a.a[3]-a.a[1]))*a.c.length)];if(!D(c))return null;c=c.charCodeAt(Math.floor((b[0]-a.a[0])/(a.a[2]-a.a[0])*c.length));93<=c&&c--;35<=c&&c--;c=a.e[c-32];return null!=c?a.d[c]:null}function rx(a,b,c,d,e){0==a.state&&!0===e?(If(a,"change",function(){c.call(d,Mo(this,b))},!1,a),bt(a)):!0===e?Yk(function(){c.call(d,Mo(this,b))}
416,a):c.call(d,Mo(a,b))}function bt(a){0==a.state&&(a.state=1,(new jj(a.g)).send(void 0,J(a.Xj,a),J(a.Lj,a)))}function Sb(a){bb.call(this,
417{attributions:a.attributions,logo:a.logo,projection:void 0,state:"ready"});this.T=a.format;this.n=a.tileGrid;this.p=vk;this.X=this.n.yb();this.l={};f(a.tileUrlFunction)?(this.p=a.tileUrlFunction,this.k()):f(a.urls)?(this.p=kj(a.urls),this.k()):f(a.url)&&(this.p=kj(fi(a.url)),this.k())}function sx(a,b,c,d){var e=a.l;a=a.n.Wb(b,c);e=e[a[0]+"/"+a[1]+"/"+a[2]];if(f(e))for(a=0,c=e.length;a<c;++a){var g=e[a];if(g.Q().Jb(b[0],b[1])&&d.call(void 0,g))break}}function jb(a){a=f(a)?a:{};var b=f(a.params)?a.params:
418{};ib.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,opaque:!qc(b,"TRANSPARENT",!0),projection:a.projection,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:J(this.tm,this),wrapX:a.wrapX});var c=a.urls;!f(c)&&f(a.url)&&(c=fi(a.url));this.g=null!=c?c:[];this.l=f(a.gutter)?a.gutter:0;this.e=b;this.i=!0;this.n=a.serverType;this.J=f(a.hidpi)?a.hidpi:!0;this.p="";No(this);this.N=Yd();ct(this)}function dt(a,b,c,d,e,g,h){var m=a.g;if(0!=m.length){h.WIDTH=
419c[0];h.HEIGHT=c[1];h[a.i?"CRS":"SRS"]=g.b;"STYLES"in a.e||(h.STYLES=new String(""));if(1!=e)switch(a.n){case "geoserver":c=90*e+.5|0;h.FORMAT_OPTIONS=f(h.FORMAT_OPTIONS)?h.FORMAT_OPTIONS+(";dpi:"+c):"dpi:"+c;break;case "mapserver":h.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":h.DPI=90*e}g=g.d;a.i&&"ne"==g.substr(0,2)&&(a=d[0],d[0]=d[1],d[1]=a,a=d[2],d[2]=d[3],d[3]=a);h.BBOX=d.join(",");return Ti(Ui([1==m.length?m[0]:m[Gf((b[1]<<b[0])+b[2],m.length)]],h))}}function No(a){var b=0,c=
420[],d;var e=0;for(d=a.g.length;e<d;++e)c[b++]=a.g[e];for(var g in a.e)c[b++]=g+"-"+a.e[g];a.p=c.join("#")}function ct(a){a.i=0<=Mb(qc(a.e,"VERSION","1.3.0"),"1.3")}function Td(a){this.e=a.matrixIds;yd.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes,widths:a.widths})}function et(a){var b=[],c=[],d=[],e=[],g=[];var h=Ka(a.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var m=h.Gd(),r="ne"==h.d.substr(0,2);Bd(a.TileMatrix,
421function(x,F){return F.ScaleDenominator-x.ScaleDenominator});Oa(a.TileMatrix,function(x){c.push(x.Identifier);r?d.push([x.TopLeftCorner[1],x.TopLeftCorner[0]]):d.push(x.TopLeftCorner);b.push(2.8E-4*x.ScaleDenominator/m);var F=x.TileWidth,M=x.TileHeight;e.push(F==M?F:[F,M]);g.push(x.MatrixWidth)});return new Td({origins:d,resolutions:b,matrixIds:c,tileSizes:e,widths:g})}function eb(a){function b(r){r="KVP"==d?Ti(Ui([r],g)):r.replace(/\{(\w+?)\}/g,function(x,F){return F.toLowerCase()in g?g[F.toLowerCase()]:
422x});return function(x){if(null!==x){var F={TileMatrix:e.e[x[0]],TileCol:x[1],TileRow:x[2]};vd(F,h);x=r;return x="KVP"==d?Ti(Ui([x],F)):x.replace(/\{(\w+?)\}/g,function(M,S){return F[S]})}}}this.N=f(a.version)?a.version:"1.0.0";this.n=f(a.format)?a.format:"image/jpeg";this.e=f(a.dimensions)?a.dimensions:{};this.l="";ft(this);this.p=a.layer;this.i=a.matrixSet;this.J=a.style;var c=a.urls;!f(c)&&f(a.url)&&(c=fi(a.url));this.g=null!=c?c:[];var d=this.T=f(a.requestEncoding)?a.requestEncoding:"KVP",e=a.tileGrid,
423g={layer:this.p,style:this.J,tilematrixset:this.i};"KVP"==d&&vd(g,{Service:"WMTS",Request:"GetTile",Version:this.N,Format:this.n});var h=this.e;c=0<this.g.length?Jo(Jc(this.g,b)):vk;var m=Yd();c=lj(function(r,x,F){if(e.b.length<=r[0])return null;var M=r[1],S=-r[2]-1,Y=Bf(e,r,m);x=x.G();return!ta(Y,x)||ta(Y,x)&&(Y[0]==x[2]||Y[2]==x[0]||Y[1]==x[3]||Y[3]==x[1])?null:ri(r[0],M,S,F)},c);ib.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,projection:a.projection,tileClass:a.tileClass,
424tileGrid:e,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:c,wrapX:f(a.wrapX)?a.wrapX:!1})}function ft(a){var b=0,c=[],d;for(d in a.e)c[b++]=d+"-"+a.e[d];a.l=c.join("/")}function je(a){var b=f(a)?a:b;yd.call(this,{origin:[0,0],resolutions:b.resolutions})}function Vb(a){a=f(a)?a:{};var b=a.size,c=b[0],d=b[1],e=[],g=256;switch(f(a.tierSizeCalculation)?a.tierSizeCalculation:"default"){case "default":for(;c>g||d>g;)e.push([Math.ceil(c/g),Math.ceil(d/g)]),g+=g;break;
425case "truncated":for(;c>g||d>g;)e.push([Math.ceil(c/g),Math.ceil(d/g)]),c>>=1,d>>=1}e.push([1,1]);e.reverse();g=[1];var h=[0];d=1;for(c=e.length;d<c;d++)g.push(1<<d),h.push(e[d-1][0]*e[d-1][1]+h[d-1]);g.reverse();g=new je({resolutions:g});var m=a.url;b=lj(g.yb({extent:[0,0,b[0],b[1]]}),function(r){if(null!==r){var x=r[0],F=r[1];r=r[2];return m+"TileGroup"+((F+r*e[x][0]+h[x])/256|0)+"/"+x+"-"+F+"-"+r+".
425jpg"}});ib.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,tileClass:Pl,
426tileGrid:g,tileUrlFunction:b})}function Pl(a,b,c,d,e){ug.call(this,a,b,c,d,e);this.d={}}function gt(a){a=f(a)?a:{};this.a=f(a.initialSize)?a.initialSize:256;this.c=f(a.maxSize)?a.maxSize:f(ht)?ht:2048;this.b=f(a.space)?a.space:1;this.e=[new xk(this.a,this.b)];this.d=this.a;this.f=[new xk(this.d,this.b)]}function it(a,b,c,d,e,g,h){var m=b?a.f:a.e,r;var x=0;for(r=m.length;x<r;++x){var F=m[x];F=F.add(c,d,e,g,h);if(null!==F)return F;null===F&&x===r-1&&(b?(F=Math.min(2*a.d,a.c),a.d=F):(F=Math.min(2*a.a,
427a.c),a.a=F),F=new xk(F,a.b),m.push(F),++r)}}function xk(a,b){this.b=b;this.a=[{x:0,y:0,width:a,height:a}];this.d={};this.c=Kd("CANVAS");this.c.width=a;this.c.height=a;this.e=this.c.getContext("2d")}function jt(a,b,c,d){b=[b,1];0<c.width&&0<c.height&&b.push(c);0<d.width&&0<d.height&&b.push(d);a.a.splice.apply(a.a,b)}function zc(a){this.o=this.d=this.e=null;this.i=f(a.fill)?a.fill:null;this.J=[0,0];this.b=a.points;this.c=f(a.radius)?a.radius:a.radius1;this.f=f(a.radius2)?a.radius2:this.c;this.g=f(a.angle)?
428a.angle:0;this.a=f(a.stroke)?a.stroke:null;this.H=this.L=this.p=null;var b=a.atlasManager,c="",d="",e=0,g=null,h,m=0;null!==this.a&&(h=pd(this.a.b),m=this.a.a,f(m)||(m=1),g=this.a.c,Ni||(g=null),d=this.a.e,f(d)||(d="round"),c=this.a.d,f(c)||(c="round"),e=this.a.f,f(e)||(e=10));var r=2*(this.c+m)+1;c={strokeStyle:h,md:m,size:r,lineCap:c,lineDash:g,lineJoin:d,miterLimit:e};if(f(b)){r=Math.round(r);d=null===this.i;var x;d&&(x=J(this.Tg,this,c));e=this.nb();x=b.add(e,r,r,J(this.Ug,this,c),x);this.d=x.image;
429this.J=[x.offsetX,x.offsetY];b=x.image.width;this.o=d?x.ig:this.d}else this.d=Kd("CANVAS"),this.d.height=r,this.d.width=r,b=r=this.d.width,x=this.d.getContext("2d"),this.Ug(c,x,0,0),null===this.i?(x=this.o=Kd("CANVAS"),x.height=c.size,x.width=c.size,x=x.getContext("2d"),this.Tg(c,x,0,0)):this.o=this.d;this.p=[r/2,r/2];this.L=[r,r];this.H=[b,b];Rd.call(this,{opacity:1,rotateWithView:!1,rotation:f(a.rotation)?a.rotation:0,scale:1,snapToPixel:f(a.snapToPixel)?a.snapToPixel:!0})}var ba={},Bn=Bn||{},gb=
430this,Uo="closure_uid_"+(1E9*Math.random()>>>0),Nt=0,Lf=Date.now||function(){return+new Date};I(ia,Error);ia.prototype.name="CustomError";var au,vg=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Pt=/&/g,Qt=/</g,Rt=/>/g,St=/"/g,Tt=/'/g,Ut=/\x00/g,Ot=/[\x00&<>"']/,of=Array.prototype;a:{var kt=gb.navigator;if(kt){var lt=kt.userAgent;if(lt){var nj=lt;break a}}nj=""}var Vo="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),
431Oo=Pa("Opera")||Pa("OPR"),jc=Pa("Trident")||Pa("MSIE"),sf=Pa("Gecko")&&-1==nj.toLowerCase().indexOf("webkit")&&!(Pa("Trident")||Pa("MSIE")),Wd=-1!=nj.toLowerCase().indexOf("webkit"),wg=Pa("Macintosh"),tx=Pa("Windows"),mu=Pa("Linux")||Pa("CrOS"),Tl=function(){var a="",b;if(Oo&&gb.opera)return a=gb.opera.version,w(a)?a():a;sf?b=/rv:([^\);]+)(\)|;)/:jc?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:Wd&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(nj))?a[1]:"");return jc&&(b=xh(),b>parseFloat(a))?String(b):a}(),Wo={},mt=
432gb.document,wi=mt&&jc?xh()||("CSS1Compat"==mt.compatMode?parseInt(Tl,10):5):void 0,pu=jc&&!Cd("9.0")&&""!==Tl,Vt=!jc||jc&&9<=wi,ap=!jc||jc&&9<=wi,ux=jc&&!Cd("9");!Wd||Cd("528");sf&&Cd("1.9b")||jc&&Cd("8")||Oo&&Cd("9.5")||Wd&&Cd("528");sf&&!Cd("8")||jc&&Cd("9");var Xo=0,Yo={};Re.prototype.U=!1;Re.prototype.Yc=function(){if(!this.U&&(this.U=!0,this.O(),0!=Xo)){var a=C(this);delete Yo[a]}};Re.prototype.O=function(){if(this.V)for(;this.V.length;)this.V.shift()()};tc.prototype.fb=function(){this.f=!0};
433tc.prototype.preventDefault=function(){this.rh=!1};var Lh=jc?"focusout":"DOMFocusOut";qj[" "]=A;I(Se,tc);var Wt=[1,4,2];var l=Se.prototype;l.fb=function(){Se.S.fb.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0};l.preventDefault=function(){Se.S.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,ux)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};l.Qi=function(){return this.b};l.Zf=function(){return Wd||
434void 0!==this.b.offsetX?this.b.offsetX:this.b.layerX};l.bo=function(a){Object.defineProperties(this,{offsetX:{writable:!0,enumerable:!0,configurable:!0,value:a}})};l.$f=function(){return Wd||void 0!==this.b.offsetY?this.b.offsetY:this.b.layerY};l.co=function(a){Object.defineProperties(this,{offsetY:{writable:!0,enumerable:!0,configurable:!0,value:a}})};var Zo="closure_listenable_"+(1E6*Math.random()|0),Xt=0;ee.prototype.add=function(a,b,c,d,e){var g=a.toString();(a=this.b[g])||(a=this.b[g]=[],this.a++);
435var h=xg(a,b,d,e);
435-1<h?(b=a[h],c||(b.vd=!1)):(b=new zh(b,this.src,g,!!d,e),b.vd=c,a.push(b));return b};ee.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.b))return!1;var e=this.b[a];b=xg(e,b,c,d);return-1<b?(pb(e[b]),of.splice.call(e,b,1),0==e.length&&(delete this.b[a],this.a--),!0):!1};var Vl="closure_lm_"+(1E6*Math.random()|0),Wl={},$o=0,Xl="__closure_events_fn_"+(1E9*Math.random()>>>0);I(Tc,Re);Tc.prototype[Zo]=!0;l=Tc.prototype;l.addEventListener=function(a,b,c,d){ma(this,a,b,
436c,d)};l.removeEventListener=function(a,b,c,d){Ge(this,a,b,c,d)};l.dispatchEvent=function(a){var b,c=this.sa;if(c)for(b=[];c;c=c.sa)b.push(c);c=this.rc;var d=a.type||a;if(D(a))a=new tc(a,c);else if(a instanceof tc)a.target=a.target||c;else{var e=a;a=new tc(d,c);vd(a,e)}e=!0;if(b)for(var g=b.length-1;!a.f&&0<=g;g--){var h=a.c=b[g];e=ji(h,d,!0,a)&&e}a.f||(h=a.c=c,e=ji(h,d,!0,a)&&e,a.f||(e=ji(h,d,!1,a)&&e));if(b)for(g=0;!a.f&&g<b.length;g++)h=a.c=b[g],e=ji(h,d,!1,a)&&e;return e};l.O=function(){Tc.S.O.call(this);
437if(this.ab){var a=this.ab,b=0,c;for(c in a.b){for(var d=a.b[c],e=0;e<d.length;e++)++b,pb(d[e]);delete a.b[c];a.a--}}this.sa=null};l.Ka=function(a,b,c,d){return this.ab.add(String(a),b,!1,c,d)};l.wf=function(a,b,c,d){return this.ab.remove(String(a),b,c,d)};I(Id,Tc);l=Id.prototype;l.k=function(){++this.b;this.dispatchEvent("change")};l.v=function(){return this.b};l.r=function(a,b,c){return ma(this,a,b,!1,c)};l.A=function(a,b,c){return If(this,a,b,!1,c)};l.u=function(a,b,c){Ge(this,a,b,!1,c)};l.B=Wg;
438I(gg,tc);I(ub,Id);var Yl={};l=ub.prototype;l.get=function(a){var b;this.q.hasOwnProperty(a)&&(b=this.q[a]);return b};l.C=function(){return Fd(this.q)};l.D=function(){var a={},b;for(b in this.q)a[b]=this.q[b];return a};l.set=function(a,b){var c=this.q[a];this.q[a]=b;xj(this,a,c)};l.t=function(a){for(var b in a)this.set(b,a[b])};l.I=function(a){if(a in this.q){var b=this.q[a];delete this.q[a];xj(this,a,b)}};uf.prototype.b=4;uf.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+
439c]=a[c]};uf.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(uf.BYTES_PER_ELEMENT=4,uf.prototype.BYTES_PER_ELEMENT=uf.prototype.b,uf.prototype.set=uf.prototype.set,uf.prototype.toString=uf.prototype.toString,n("Float32Array",uf,void 0));vf.prototype.b=8;vf.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};vf.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{vf.BYTES_PER_ELEMENT=8}catch(a){}vf.prototype.BYTES_PER_ELEMENT=
440vf.prototype.b;vf.prototype.set=vf.prototype.set;vf.prototype.toString=vf.prototype.toString;n("Float64Array",vf,void 0)}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);nd.prototype.a=function(a){for(var b=0,c=a.length,d=a[c-1][0],e=a[c-1][1],g=0;g<c;g++){var h=a[g][0],m=a[g][1];b+=me(h-d)*(2+Math.sin(me(e))+Math.sin(me(m)));d=h;e=m}return b*this.radius*this.radius/2};nd.prototype.b=function(a,b){var c=me(a[1]),d=me(b[1]),e=
441(d-c)/2;a=me(b[0]-a[0])/2;c=Math.sin(e)*Math.sin(e)+Math.sin(a)*Math.sin(a)*Math.cos(c)*Math.cos(d);return 2*this.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};nd.prototype.offset=function(a,b,c){var d=me(a[1]);b/=this.radius;var e=Math.asin(Math.sin(d)*Math.cos(b)+Math.cos(d)*Math.sin(b)*Math.cos(c));return[180*(me(a[0])+Math.atan2(Math.sin(c)*Math.sin(b)*Math.cos(d),Math.cos(b)-Math.sin(d)*Math.sin(e)))/Math.PI,180*e/Math.PI]};var lk=new nd(6370997),Rf={};Rf.degrees=2*Math.PI*lk.radius/360;Rf.ft=
442.3048;Rf.m=1;Rf["us-ft"]=1200/3937;l=Cb.prototype;l.Ri=function(){return this.b};l.G=function(){return this.f};l.Ll=function(){return this.a};l.Gd=function(){return Rf[this.a]};l.Cj=function(){return this.g};l.Ml=function(){return this.e};l.Yn=function(a){this.c=(this.e=a)&&null!==this.f};l.Nl=function(a){this.f=a;this.c=this.e&&null!==a};l.lo=function(a){this.g=a};l.Xn=function(a){this.q=a};l.rj=function(a,b){if("degrees"==this.a)return a;var c=Qd(this,Ka("EPSG:4326"));a=[b[0]-a/2,b[1],b[0]+a/2,
443b[1],b[0],b[1]-a/2,b[0],b[1]+a/2];a=c(a,a,2);c=(lk.b(a.slice(0,2),a.slice(2,4))+lk.b(a.slice(4,6),a.slice(6,8)))/2;a=this.Gd();f(a)&&(c/=a);return c};l.getPointResolution=function(a,b){return this.q(a,b)};
443var Zl={},pi={};I(Ma,ub);l=Ma.prototype;l.xd=function(a){return this.f.center(a)};l.constrainResolution=function(a,b,c){return this.f.resolution(a,b||0,c||0)};l.constrainRotation=function(a,b){return this.f.rotation(a,b||0)};l.Ca=function(){return this.get("center")};l.Pc=function(a){var b=this.Ca(),
444c=this.ya();return[b[0]-c*a[0]/2,b[1]-c*a[1]/2,b[0]+c*a[0]/2,b[1]+c*a[1]/2]};l.dl=function(){return this.e};l.ya=function(){return this.get("resolution")};l.Da=function(){return this.get("rotation")};l.Ej=function(){var a=this.ya();if(f(a)){var b=0;do{var c=this.constrainResolution(this.a,b);if(c==a){var d=b;break}++b}while(c>this.g)}return f(d)?this.d+d:d};l.Me=function(a,b){Ja(a)||(this.Na(y(a)),a=Bj(a,b),b=this.constrainResolution(a,0,0),b<a&&(b=this.constrainResolution(b,-1,0)),this.tb(b))};l.Fi=
445function(a,b,c){var d=f(c)?c:{};c=f(d.padding)?d.padding:[0,0,0,0];var e=f(d.constrainResolution)?d.constrainResolution:!0,g=f(d.nearest)?d.nearest:!1,h;f(d.minResolution)?h=d.minResolution:f(d.maxZoom)?h=this.constrainResolution(this.a,d.maxZoom-this.d,0):h=0;var m=a.j,r=this.Da();d=Math.cos(-r);r=Math.sin(-r);var x=Infinity,F=Infinity,M=-Infinity,S=-Infinity;a=a.s;for(var Y=0,O=m.length;Y<O;Y+=a){var P=m[Y]*d-m[Y+1]*r,Z=m[Y]*r+m[Y+1]*d;x=Math.min(x,P);F=Math.min(F,Z);M=Math.max(M,P);S=Math.max(S,
446Z)}b=Bj([x,F,M,S],[b[0]-c[1]-c[3],b[1]-c[0]-c[2]]);b=isNaN(b)?h:Math.max(b,h);e&&(h=this.constrainResolution(b,0,0),!g&&h<b&&(h=this.constrainResolution(h,-1,0)),b=h);this.tb(b);r=-r;g=(x+M)/2+(c[1]-c[3])/2*b;c=(F+S)/2+(c[0]-c[2])/2*b;this.Na([g*d-c*r,c*d+g*r])};l.Ai=function(a,b,c){var d=this.Da(),e=Math.cos(-d);d=Math.sin(-d);var g=a[0]*e-a[1]*d;a=a[1]*e+a[0]*d;var h=this.ya();g+=(b[0]/2-c[0])*h;a+=(c[1]-b[1]/2)*h;d=-d;this.Na([g*e-a*d,a*e+g*d])};l.rotate=function(a,b){if(f(b)){var c,d=this.Ca();
447f(d)&&(c=[d[0]-b[0],d[1]-b[1]],Zg(c,a-this.Da()),Xg(c,b));this.Na(c)}this.be(a)};l.Na=function(a){this.set("center",a)};l.tb=function(a){this.set("resolution",a)};l.be=function(a){this.set("rotation",a)};l.no=function(a){a=this.constrainResolution(this.a,a-this.d,0);this.tb(a)};jg.prototype.contains=function(a){return Cj(this,a[1],a[2])};ff.prototype.c=function(){return this.a};I(Tf,tc);I(Sa,ub);l=Sa.prototype;l.clear=function(){for(;0<this.Ib();)this.pop()};l.af=function(a){var b;var c=0;for(b=a.length;c<
448b;++c)this.push(a[c]);return this};l.forEach=function(a,b){Oa(this.a,a,b)};l.Hk=function(){return this.a};l.item=function(a){return this.a[a]};l.Ib=function(){return this.get("length")};l.Td=function(a,b){de(this.a,a,0,b);Ej(this);this.dispatchEvent(new Tf("add",b,this))};l.pop=function(){return this.tf(this.Ib()-1)};l.push=function(a){var b=this.a.length;this.Td(b,a);return b};l.remove=function(a){var b=this.a,c;var d=0;for(c=b.length;d<c;++d)if(b[d]===a)return this.tf(d)};l.tf=function(a){var b=
449this.a[a];of.splice.call(this.a,a,1);Ej(this);this.dispatchEvent(new Tf("remove",b,this));return b};l.Un=function(a,b){var c=this.Ib();if(a<c)c=this.a[a],this.a[a]=b,this.dispatchEvent(new Tf("remove",c,this)),this.dispatchEvent(new Tf("add",b,this));else{for(;c<a;++c)this.Td(c,void 0);this.Td(a,b)}};var vx=/^#(?:[0-9a-f]{3}){1,2}$/i,wx=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,xx=/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,10})\)$/i,
450$t=function(){var a={},b=0;return function(c){if(a.hasOwnProperty(c))var d=a[c];else{if(1024<=b){d=0;for(var e in a)0===(d++&3)&&(delete a[e],--b)}var g,h;vx.exec(c)?(h=3==c.length-1?1:2,d=parseInt(c.substr(1+0*h,h),16),e=parseInt(c.substr(1+1*h,h),16),g=parseInt(c.substr(1+2*h,h),16),1==h&&(d=(d<<4)+d,e=(e<<4)+e,g=(g<<4)+g),d=[d,e,g,1]):(h=xx.exec(c))?(d=Number(h[1]),e=Number(h[2]),g=Number(h[3]),h=Number(h[4]),d=[d,e,g,h],d=Mf(d,d)):(h=wx.exec(c))?(d=Number(h[1]),e=Number(h[2]),g=Number(h[3]),d=
451[d,e,g,1],d=Mf(d,d)):d=void 0;a[c]=d;++b}return d}}(),bu=!jc||jc&&9<=wi;!sf&&!jc||jc&&jc&&9<=wi||sf&&Cd("1.9.1");jc&&Cd("9");ii("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));l=Ve.prototype;l.clone=function(){return new Ve(this.x,this.y)};l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};l.round=function(){this.x=Math.round(this.x);this.y=
452Math.round(this.y);return this};l.scale=function(a,b){b=E(b)?b:a;this.x*=a;this.y*=b;return this};l=Af.prototype;l.clone=function(){return new Af(this.width,this.height)};l.la=function(){return!(this.width*this.height)};l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);
453return this};l.scale=function(a,b){b=E(b)?b:a;this.width*=a;this.height*=b;return this};var dp={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};xa.prototype.appendChild=function(a,b){a.appendChild(b)};xa.prototype.contains=za;l=re.prototype;l.clone=function(){return new re(this.top,this.right,this.bottom,this.left)};l.contains=
454function(a){return this&&a?a instanceof re?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};l.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};l.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);
455return this};l.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};l.scale=function(a,b){b=E(b)?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};l=kd.prototype;l.clone=function(){return new kd(this.left,this.top,this.width,this.height)};l.contains=function(a){return a instanceof kd?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=
456a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};l.distance=function(a){var b=Math,c=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return b.sqrt.call(b,c*c+a*a)};l.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.left=Math.floor(this.left);
457this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};l.scale=function(a,b){b=E(b)?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var fp={thin:2,medium:4,thick:6};I(Bg,tc);I(qb,ub);qb.prototype.O=function(){T(this.element);qb.S.O.call(this)};qb.prototype.e=
458function(){return this.a};qb.prototype.setMap=function(a){null===this.a||T(this.element);0!=this.l.length&&(Oa(this.l,Hb),this.l.length=0);this.a=a;null!==this.a&&((null===this.L?a.p:this.L).appendChild(this.element),this.render!==A&&this.l.push(ma(a,"postrender",this.render,!1,this)),a.render())};qb.prototype.c=function(a){this.L=Hj(a)};l=Uk.prototype;l.clear=function(){this.c=0;this.d={};this.a=this.b=null};l.forEach=function(a,b){for(var c=this.b;null!==c;)a.call(b,c.qc,c.Wd,this),c=c.Wa};l.get=
459function(a){a=this.d[a];if(a===this.a)return a.qc;a===this.b?(this.b=this.b.Wa,this.b.Nb=null):(a.Wa.Nb=a.Nb,a.Nb.Wa=a.Wa);a.Wa=null;a.Nb=this.a;this.a=this.a.Wa=a;return a.qc};l.Tb=function(){return this.c};l.C=function(){var a=Array(this.c),b=0,c;for(c=this.a;null!==c;c=c.Nb)a[b++]=c.Wd;return a};l.cb=function(){var a=Array(this.c),b=0,c;for(c=this.a;null!==c;c=c.Nb)a[b++]=c.qc;return a};l.pop=function(){var a=this.b;delete this.d[a.Wd];null!==a.Wa&&(a.Wa.Nb=null);
459this.b=a.Wa;null===this.b&&(this.a=
460null);--this.c;return a.qc};l.set=function(a,b){b={Wd:a,Wa:null,Nb:this.a,qc:b};null===this.a?this.b=b:this.a.Wa=b;this.a=b;this.d[a]=b;++this.c};I(hp,Uk);I(Uf,Tc);Uf.prototype.gb=function(){return C(this).toString()};Uf.prototype.f=function(){return this.b};I(fc,ub);l=fc.prototype;l.ge=A;l.ea=function(){return this.d};l.ca=function(){return this.L};l.fa=function(){return this.f};l.ga=function(){return this.o};var hf=Kj(!1),Le=Kj(!0),yx=Kj(null),yi=[0,0,0];l=yd.prototype;l.yb=function(){return dm};
461l.Ad=function(a,b,c,d,e){e=Bf(this,a,e);for(a=a[0]-1;a>=this.minZoom;){if(b.call(c,a,Xe(this,e,a,d)))return!0;--a}return!1};l.Fd=function(){return this.maxZoom};l.Hd=function(){return this.minZoom};l.Mb=function(a){return null===this.f?this.i[a]:this.f};l.ma=function(a){return this.b[a]};l.ne=function(){return this.b};l.Ld=function(a,b,c){return a[0]<this.maxZoom?(c=Bf(this,a,c),Xe(this,c,a[0]+1,b)):null};l.Wb=function(a,b,c){return Wk(this,a[0],a[1],b,!1,c)};l.cd=function(a,b,c){return Wk(this,a[0],
462a[1],this.ma(b),!1,c)};l.na=function(a){return null===this.g?this.c[a]:this.g};I(Yb,fc);l=Yb.prototype;l.Cd=function(){return 0};l.bb=Ih;l.ua=function(){return this.tileGrid};l.Xb=function(a,b,c){b=Cg(this,c);return Bh(Xd(b.na(a),this.c),this.ba,this.c)};l.yf=A;I(Ai,tc);I(bc,qb);l=bc.prototype;l.gl=function(a){a.preventDefault();fm(this)};l.fl=function(){return this.g};l.il=function(a){this.g!==a&&(this.g=a,yb(this.element,"ol-uncollapsible"),!a&&this.d&&fm(this))};l.hl=function(a){this.g&&this.d!==
463a&&fm(this)};l.el=function(){return this.d};I(Gc,qb);Gc.prototype.o=function(a){a.preventDefault();a=this.a;var b=a.R();if(null!==b){for(var c=b.Da();c<-Math.PI;)c+=2*Math.PI;for(;c>Math.PI;)c-=2*Math.PI;f(c)&&(0<this.g&&a.Ha(qi({rotation:c,duration:this.g,easing:Sf})),b.be(0))}};I(Ac,qb);Ac.prototype.f=function(a,b){b.preventDefault();b=this.a;var c=b.R();if(null!==c){var d=c.ya();f(d)&&(0<this.d&&b.Ha(zf({resolution:d,duration:this.d,easing:Sf})),b=c.constrainResolution(d,a),c.tb(b))}};var fu=Wd?
464"webkitfullscreenchange":sf?"mozfullscreenchange":jc?"MSFullscreenChange":"fullscreenchange";I(Kc,qb);Kc.prototype.n=function(a){a.preventDefault();sp()&&(a=this.a,null!==a&&(gm()?(a=Fc().b,a.webkitCancelFullScreen?a.webkitCancelFullScreen():a.mozCancelFullScreen?a.mozCancelFullScreen():a.msExitFullscreen?a.msExitFullscreen():a.exitFullscreen&&a.exitFullscreen()):(a=a.df(),a=Hj(a),this.o?a.mozRequestFullScreenWithKeys?a.mozRequestFullScreenWithKeys():a.webkitRequestFullscreen?a.webkitRequestFullscreen():
465tp(a):tp(a))))};Kc.prototype.i=function(){var a=this.d+"-true",b=this.d+"-false",c=oa(this.element),d=this.a;gm()?(Pc(c,b)&&(xd(c,b),Xc(c,a)),fa(this.g,this.f)):(Pc(c,a)&&(xd(c,a),Xc(c,b)),fa(this.f,this.g));null===d||d.Kc()};I(cc,qb);l=cc.prototype;l.jl=function(){this.f=null};l.Uf=function(){return this.get("coordinateFormat")};l.xg=function(){return this.get("projection")};l.$j=function(a){this.g=this.a.Bd(a.b);hm(this,this.g)};l.ak=function(){hm(this,null);this.g=null};l.setMap=function(a){cc.S.setMap.call(this,
466a);null!==a&&(a=a.a,this.l.push(ma(a,"mousemove",this.$j,!1,this),ma(a,"mouseout",this.ak,!1,this)))};l.vh=function(a){this.set("coordinateFormat",a)};l.yg=function(a){this.set("projection",a)};I(Xk,Re);l=Xk.prototype;l.$=null;l.zf=!1;l.start=function(){im(this);this.zf=!1;var a=vp(this),b=wp(this);a&&!b&&this.b.mozRequestAnimationFrame?(this.$=ma(this.b,"MozBeforePaint",this.a),this.b.mozRequestAnimationFrame(null),this.zf=!0):this.$=a&&b?a.call(this.b,this.a):this.b.setTimeout(du(this.a),20)};l.Pf=
467function(){this.zf&&this.$&&Hb(this.$);this.$=null;this.d.call(this.c,Lf())};l.O=function(){im(this);Xk.S.O.call(this)};var yp,gu=dm;l=Lj.prototype;l.Tb=function(){return this.c};l.cb=function(){jm(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.a[this.b[b]]);return a};l.C=function(){jm(this);return this.b.concat()};l.la=function(){return 0==this.c};l.clear=function(){this.a={};this.c=this.b.length=0};l.remove=function(a){return Mh(this.a,a)?(delete this.a[a],this.c--,this.b.length>2*this.c&&
468jm(this),!0):!1};l.get=function(a,b){return Mh(this.a,a)?this.a[a]:b};l.set=function(a,b){Mh(this.a,a)||(this.c++,this.b.push(a));this.a[a]=b};l.forEach=function(a,b){for(var c=this.C(),d=0;d<c.length;d++){var e=c[d],g=this.get(e);a.call(b,g,e,this)}};l.clone=function(){return new Lj(this)};new km;
468km.prototype.set=function(a){this.b=a};km.prototype.get=function(){return this.b};I(Zk,Tc);l=Zk.prototype;l.Md=null;l.pd=null;l.Nd=null;l.O=function(){Zk.S.O.call(this);this.Md&&(Hb(this.Md),this.Md=null);
469this.Nd=this.pd=null};l.ik=function(){var a=ui(this.pd||window),b=this.Nd;a==b||a&&b&&a.width==b.width&&a.height==b.height||(this.Nd=a,this.dispatchEvent("resize"))};I(ch,Tc);l=ch.prototype;l.Z=null;l.Ud=null;l.Ye=null;l.Vd=null;l.Ja=-1;l.Hb=-1;l.Ge=!1;var nt={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},
470ot={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},zx=jc||Wd&&Cd("525"),pt=wg&&sf;ch.prototype.b=function(a){Wd&&(17==this.Ja&&!a.i||18==this.Ja&&!a.a||wg&&91==this.Ja&&!a.l)&&(this.Hb=this.Ja=-1);-1==this.Ja&&(a.i&&17!=a.e?this.Ja=17:a.a&&18!=a.e?this.Ja=18:a.l&&91!=a.e&&(this.Ja=91));zx&&!ku(a.e,this.Ja,a.d,a.i,a.a)?this.handleEvent(a):(this.Hb=lm(a.e),pt&&
471(this.Ge=a.a))};ch.prototype.a=function(a){this.Hb=this.Ja=-1;this.Ge=a.a};ch.prototype.handleEvent=function(a){var b=a.b,c,d,e=b.altKey;jc&&"keypress"==a.type?(c=this.Hb,d=13!=c&&27!=c?b.keyCode:0):Wd&&"keypress"==a.type?(c=this.Hb,d=0<=b.charCode&&63232>b.charCode&&$k(c)?b.charCode:0):Oo?(c=this.Hb,d=$k(c)?b.keyCode:0):(c=b.keyCode||this.Hb,d=b.charCode||0,pt&&(e=this.Ge),wg&&63==d&&224==c&&(c=191));var g=c=lm(c),h=b.keyIdentifier;c?63232<=c&&c in nt?g=nt[c]:25==c&&a.d&&(g=9):h&&h in ot&&(g=ot[h]);
472this.Ja=g;a=new Ap(g,d,0,b);a.a=e;this.dispatchEvent(a)};ch.prototype.O=function(){ch.S.O.call(this);mm(this)};I(Ap,Se);I(Mj,Tc);Mj.prototype.handleEvent=function(a){var b=0,c=0;a=a.b;if("mousewheel"==a.type){c=1;if(jc||Wd&&(tx||Cd("532.0")))c=40;var d=nm(-a.wheelDelta,c);f(a.wheelDeltaX)?(b=nm(-a.wheelDeltaX,c),c=nm(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),f(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;E(this.a)&&Hd(b,-this.a,this.a);E(this.c)&&(c=Hd(c,-this.c,this.c));b=new Bp(d,
473a,0,c);this.dispatchEvent(b)};Mj.prototype.O=function(){Mj.S.O.call(this);Hb(this.b);this.b=null};I(Bp,Se);I(Nj,tc);var Cp=!1;try{Cp=1===(new MouseEvent("click",{buttons:1})).buttons}catch(a){}var ru=function(){var a;return function(){if(!f(a))if(gb.getComputedStyle){var b=Kd("P"),c,d={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(b);for(var e in d)e in b.style&&(b.style[e]="translate(1px,1px)",
474c=gb.getComputedStyle(b).getPropertyValue(d[e]));T(b);a=c&&"none"!==c}else a=!1;return a}}(),qu=function(){var a;return function(){if(!f(a))if(gb.getComputedStyle){var b=Kd("P"),c,d={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(b);for(var e in d)e in b.style&&(b.style[e]="translate3d(1px,1px,1px)",c=gb.getComputedStyle(b).getPropertyValue(d[e]));T(b);a=c&&"none"!==c}else a=!1;
475return a}}(),Fp=["experimental-webgl","webgl","webkit-3d","moz-webgl"],tr=gb.devicePixelRatio||1,Ni=!1,ur=function(){if(!("HTMLCanvasElement"in gb))return!1;try{var a=se();if(null===a)return!1;f(a.setLineDash)&&(Ni=!0);return!0}catch(b){return!1}}(),qt="DeviceOrientationEvent"in gb,rt="geolocation"in gb.navigator,um="ontouchstart"in gb,tu="PointerEvent"in gb,uu=!!gb.navigator.msPointerEnabled,st=!1,tt,ut=[];if("WebGLRenderingContext"in gb)try{var Ql=Ep(Kd("CANVAS"),{Ei:!0});null!==Ql&&(st=!0,tt=Ql.getParameter(Ql.MAX_TEXTURE_SIZE),
476ut=Ql.getSupportedExtensions())}catch(a){}var vr=st;var zv=ut;var ht=tt;I(pm,dh);l=pm.prototype;l.tk=function(a){if(!Oj(this,a)){(1).toString()in this.a&&this.cancel(a);var b=Bi(a);this.a[(1).toString()]=a;te(this.b,dl,b,a)}};l.uk=function(a){if(!Oj(this,a)){var b=Bi(a);te(this.b,el,b,a)}};
476l.xk=function(a){if(!Oj(this,a)){var b=this.a[(1).toString()];b&&b.button===a.button&&(b=Bi(a),te(this.b,Po,b,a),Fe(this.a,(1).toString()))}};l.wk=function(a){if(!Oj(this,a)){var b=Bi(a);ym(this.b,b,a)}};l.vk=function(a){if(!Oj(this,
477a)){var b=Bi(a);wm(this.b,b,a)}};l.cancel=function(a){var b=Bi(a);this.b.cancel(b,a);Fe(this.a,(1).toString())};I(rm,dh);l=rm.prototype;l.Ck=function(a){this.a[a.b.pointerId]=a;var b=Ci(this,a);te(this.b,dl,b,a)};l.Dk=function(a){var b=Ci(this,a);te(this.b,el,b,a)};l.Gk=function(a){var b=Ci(this,a);te(this.b,Po,b,a);Fe(this.a,a.b.pointerId)};l.Ek=function(a){var b=Ci(this,a);wm(this.b,b,a)};l.Fk=function(a){var b=Ci(this,a);ym(this.b,b,a)};l.Bk=function(a){var b=Ci(this,a);this.b.cancel(b,a);Fe(this.a,
478a.b.pointerId)};l.Ak=function(a){this.b.dispatchEvent(new Nj("lostpointercapture",a,a.b))};l.zk=function(a){this.b.dispatchEvent(new Nj("gotpointercapture",a,a.b))};I(sm,dh);l=sm.prototype;l.nn=function(a){fh(this.b,a)};l.pn=function(a){fh(this.b,a)};l.sn=function(a){fh(this.b,a)};l.qn=function(a){fh(this.b,a)};l.rn=function(a){fh(this.b,a)};l.mn=function(a){fh(this.b,a)};l.sk=function(a){fh(this.b,a)};l.Fj=function(a){fh(this.b,a)};I(tm,dh);l=tm.prototype;l.qh=function(){this.f=0;this.d=void 0};
479l.so=function(a){var b=a.b.touches,c=Fd(this.a),d=c.length;if(d>=b.length){var e=[],g;for(g=0;g<d;++g){var h=c[g];var m=this.a[h];var r;if(!(r=1==h))a:{r=b.length;for(var x=void 0,F=0;F<r;F++)if(x=b[F],x.identifier===h-2){r=!0;break a}r=!1}r||e.push(m.ec)}for(g=0;g<e.length;++g)this.He(a,e[g])}b=ud(this.a);if(0===b||1===b&&(1).toString()in this.a)this.c=a.b.changedTouches[0].identifier,f(this.d)&&gb.clearTimeout(this.d);Gp(this,a);this.f++;al(this,a,this.hn)};l.hn=function(a,b){this.a[b.pointerId]=
480{target:b.target,ec:b,Zg:b.target};var c=this.b;b.bubbles=!0;te(c,Hp,b,a);c=this.b;b.bubbles=!1;te(c,Ip,b,a);te(this.b,dl,b,a)};l.ro=function(a){a.preventDefault();al(this,a,this.yk)};l.yk=function(a,b){var c=this.a[b.pointerId];if(c){var d=c.ec,e=c.Zg;te(this.b,el,b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(wm(this.b,d,a),ym(this.b,b,a)):(b.target=e,b.relatedTarget=null,this.He(a,b)));c.ec=b;c.Zg=b.target}};l.qo=function(a){Gp(this,a);al(this,a,this.to)};
481l.to=function(a,b){te(this.b,Po,b,a);this.b.ec(b,a);var c=this.b;b.bubbles=!1;te(c,xm,b,a);Fe(this.a,b.pointerId);b.isPrimary&&(this.c=void 0,this.d=gb.setTimeout(J(this.qh,this),200))};l.po=function(a){al(this,a,this.He)};l.He=function(a,b){this.b.cancel(b,a);this.b.ec(b,a);var c=this.b;b.bubbles=!1;te(c,xm,b,a);Fe(this.a,b.pointerId);b.isPrimary&&(this.c=void 0,this.d=gb.setTimeout(J(this.qh,this),200))};I(eh,Tc);eh.prototype.d=function(a){var b=this.c[a.type];b&&b(a)};eh.prototype.ec=function(a,
482b){a.bubbles=!0;te(this,Ax,a,b)};eh.prototype.cancel=function(a,b){te(this,Bx,a,b)};eh.prototype.O=function(){for(var a=this.b.length,b,c=0;c<a;c++)b=this.b[c],wu(this,Fd(b.e));eh.S.O.call(this)};var el="pointermove",dl="pointerdown",Po="pointerup",Hp="pointerover",Ax="pointerout",Ip="pointerenter",xm="pointerleave",Bx="pointercancel",vm=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",
483!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]];I(Dd,Bg);Dd.prototype.preventDefault=function(){Dd.S.preventDefault.call(this);this.b.preventDefault()};Dd.prototype.fb=function(){Dd.S.fb.call(this);this.b.fb()};I(zd,Dd);I(cl,Tc);l=cl.prototype;l.fg=function(a){Jp(this,a);var b=new zd(Nh,
484this.c,a);this.dispatchEvent(b);!this.g&&0===a.button&&xu(this,this.a);0===this.o&&(Oa(this.d,Hb),this.d=null,this.g=!1,this.a=null,qf(this.b),this.b=null)};l.dk=function(a){Jp(this,a);var b=new zd(Oh,this.c,a);this.dispatchEvent(b);this.a=a;null===this.d&&(this.b=new eh(document),this.d=[ma(this.b,Uj,this.$k,!1,this),ma(this.b,Nh,this.fg,!1,this),ma(this.e,Bm,this.fg,!1,this)])};
484l.$k=function(a){if(a.clientX!=this.a.clientX||a.clientY!=this.a.clientY){this.g=!0;var b=new zd(Tj,this.c,a,this.g);this.dispatchEvent(b)}a.preventDefault()};
485l.Kn=function(a){this.dispatchEvent(new zd(a.type,this.c,a,null!==this.a&&(a.clientX!=this.a.clientX||a.clientY!=this.a.clientY)))};l.O=function(){null!==this.q&&(Hb(this.q),this.q=null);null!==this.i&&(Hb(this.i),this.i=null);null!==this.d&&(Oa(this.d,Hb),this.d=null);null!==this.b&&(qf(this.b),this.b=null);null!==this.e&&(qf(this.e),this.e=null);cl.S.O.call(this)};var Am="singleclick",zm="click",fl="dblclick",Tj="pointerdrag",Uj="pointermove",Oh="pointerdown",Nh="pointerup",Bm="pointercancel",Iv=
486{Ko:Am,zo:zm,Ao:fl,Do:Tj,Go:Uj,Co:Oh,Jo:Nh,Io:"pointerover",Ho:"pointerout",Eo:"pointerenter",Fo:"pointerleave",Bo:Bm};I(Xa,ub);l=Xa.prototype;l.Bb=function(){return this.get("brightness")};l.Cb=function(){return this.get("contrast")};l.Db=function(){return this.get("hue")};l.G=function(){return this.get("extent")};l.Eb=function(){return this.get("maxResolution")};l.Fb=function(){return this.get("minResolution")};l.Kb=function(){return this.get("opacity")};l.Gb=function(){return this.get("saturation")};
487l.eb=function(){return this.get("visible")};l.gc=function(a){this.set("brightness",a)};l.hc=function(a){this.set("contrast",a)};l.ic=function(a){this.set("hue",a)};l.bc=function(a){this.set("extent",a)};l.jc=function(a){this.set("maxResolution",a)};l.kc=function(a){this.set("minResolution",a)};l.cc=function(a){this.set("opacity",a)};l.lc=function(a){this.set("saturation",a)};l.mc=function(a){this.set("visible",a)};I(La,Xa);l=La.prototype;l.Ue=function(a){a=f(a)?a:[];a.push(Kp(this));return a};l.da=
488function(){var a=this.get("source");return f(a)?a:null};l.We=function(){var a=this.da();return null===a?"undefined":a.o};l.Kl=function(){this.k()};l.kk=function(){null!==this.f&&(Hb(this.f),this.f=null);var a=this.da();null!==a&&(this.f=ma(a,"change",this.Kl,!1,this));this.k()};l.Jc=function(a){this.set("source",a)};I(Di,Tc);Di.prototype.G=function(){return this.extent};I(he,Id);l=he.prototype;l.Pa=A;l.dc=function(a,b,c,d){a=a.slice();Cf(b.pixelToCoordinateMatrix,a,a);if(this.Pa(a,b,Le,this))return c.call(d,
489this.a)};l.ee=hf;l.yd=function(a,b){return function(c,d){return op(a,c,d,function(e){b[c]||(b[c]={});b[c][e.b.toString()]=e})}};l.Ol=function(a){2===a.target.state&&gl(this)};l=Rd.prototype;l.ie=function(){return this.U};l.Jd=function(){return this.V};l.je=function(){return this.q};l.ke=function(){return this.l};l.Kd=function(){return this.n};l.le=function(a){this.q=a};l.me=function(a){this.l=a};I(ld,Rd);l=ld.prototype;l.mb=function(){if(null!==this.d)return this.d;var a=this.e,b=this.Xa();if("fraction"==
490this.g||"fraction"==this.i){if(null===b)return null;a=this.e.slice();"fraction"==this.g&&(a[0]*=b[0]);"fraction"==this.i&&(a[1]*=b[1])}if("top-left"!=this.a){if(null===b)return null;
490a===this.e&&(a=this.e.slice());if("top-right"==this.a||"bottom-right"==this.a)a[0]=-a[0]+b[0];if("bottom-left"==this.a||"bottom-right"==this.a)a[1]=-a[1]+b[1]}return this.d=a};l.Lb=function(){return this.b.b};l.Dd=function(){return this.b.a};l.gd=function(){return this.b.c};l.he=function(){var a=this.b;if(null===a.e)if(a.i){var b=
491a.a[0],c=a.a[1],d=se(b,c);d.fillRect(0,0,b,c);a.e=d.canvas}else a.e=a.b;return a.e};l.rb=function(){if(null!==this.f)return this.f;var a=this.p;if("top-left"!=this.c){var b=this.Xa(),c=this.b.a;if(null===b||null===c)return null;a=a.slice();if("top-right"==this.c||"bottom-right"==this.c)a[0]=c[0]-b[0]-a[0];if("bottom-left"==this.c||"bottom-right"==this.c)a[1]=c[1]-b[1]-a[1]}return this.f=a};l.Bm=function(){return this.b.f};l.Xa=function(){return null===this.o?this.b.a:this.o};l.$e=function(a,b){return ma(this.b,
492"change",a,!1,b)};l.load=function(){this.b.load()};l.xf=function(a,b){Ge(this.b,"change",a,!1,b)};I(Pj,Tc);Pj.prototype.g=function(){this.c=3;Oa(this.d,Hb);this.d=null;this.dispatchEvent("change")};Pj.prototype.q=function(){this.c=2;this.a=[this.b.width,this.b.height];Oa(this.d,Hb);this.d=null;var a=se(1,1);a.drawImage(this.b,0,0);try{a.getImageData(0,0,1,1)}catch(b){this.i=!0}this.dispatchEvent("change")};Pj.prototype.load=function(){if(0==this.c){this.c=1;this.d=[If(this.b,"error",this.g,!1,this),
493If(this.b,"load",this.q,!1,this)];try{this.b.src=this.f}catch(a){this.g()}}};q(Fi);Fi.prototype.clear=function(){this.b={};this.a=0};Fi.prototype.get=function(a,b){a=b+":"+a;return a in this.b?this.b[a]:null};Fi.prototype.set=function(a,b,c){this.b[b+":"+a]=c;++this.a};I(mg,Re);l=mg.prototype;l.O=function(){ob(this.f,qf);mg.S.O.call(this)};l.ef=function(a,b,c,d,e,g){function h(O){var P=C(O).toString();if(!(P in F))return F[P]=!0,c.call(d,O,null)}var m=b.viewState,r=m.resolution,x=m.rotation,F={},
494M=m.projection;m=a;if(M.c){var S=M.G();M=la(S);var Y=a[0];if(Y<S[0]||Y>S[2])m=Math.ceil((S[0]-Y)/M),m=[Y+M*m,a[1]]}if(null!==this.c&&(Y=this.c.c(m,r,x,{},h)))return Y;x=b.layerStatesArray;for(M=x.length-1;0<=M;--M)if(Y=x[M],S=Y.layer,gh(Y,r)&&e.call(g,S)&&(Y=Eg(this,S).Pa(S.da().H?m:a,b,c,d)))return Y};l.Jg=function(a,b,c,d,e,g){var h,m=b.viewState,r=m.resolution;m=m.rotation;if(null!==this.c){var x=this.g.ka(a);if(this.c.c(x,r,m,{},Le)&&(h=c.call(d,null)))return h}m=b.layerStatesArray;for(x=m.length-
4951;0<=x;--x){h=m[x];var F=h.layer;if(gh(h,r)&&e.call(g,F)&&(h=Eg(this,F).dc(a,b,c,d)))return h}};l.Kg=function(a,b,c,d){a=this.ef(a,b,Le,this,c,d);return f(a)};l.Tj=function(){this.g.render()};l.ue=A;l.Pn=function(a,b){for(var c in this.f)if(!(null!==b&&c in b.layerStates)){a=c;var d=this.f[a];delete this.f[a];Hb(this.o[a]);delete this.o[a];qf(d)}};Gi.prototype.clear=function(){this.b.length=0;this.a.length=0;bg(this.c)};Gi.prototype.Tb=function(){return this.b.length};Gi.prototype.la=function(){return 0===
496this.b.length};I(Lm,Gi);Lm.prototype.f=function(a){a=a.target;var b=a.state;if(2===b||3===b||4===b)Ge(a,"change",this.f,!1,this),--this.d,this.i()};Mm.prototype.update=function(a,b){this.b.push(a,b,Lf())};I(Jb,ub);Jb.prototype.c=function(){return this.get("active")};Jb.prototype.d=function(a){this.set("active",a)};Jb.prototype.setMap=function(a){this.l=a};I(gd,Jb);I(Db,Jb);Db.prototype.nc=dm;I(Yc,Db);Yc.prototype.nc=hf;I(Zc,Db);Zc.prototype.nc=hf;I(gc,ub);gc.prototype.e=function(a,b){b=f(b)?b:[NaN,
497NaN];this.Sa(a[0],a[1],b,Infinity);return b};gc.prototype.Jb=hf;gc.prototype.G=function(a){this.n!=this.b&&(this.o=this.wd(this.o),this.n=this.b);var b=this.o;f(a)?(a[0]=b[0],a[1]=b[1],a[2]=b[2],a[3]=b[3]):a=b;return a};gc.prototype.transform=function(a,b){this.qa(Wc(a,b));return this};I(mb,gc);l=mb.prototype;l.Jb=hf;l.wd=function(a){var b=this.j,c=this.j.length,d=this.s;a=He(Infinity,Infinity,-Infinity,-Infinity,a);return Aj(a,b,0,c,d)};l.ob=function(){return this.j.slice(0,this.s)};l.pb=function(){return this.j.slice(this.j.length-
498this.s)};l.qb=function(){return this.a};l.Ve=function(a){this.l!=this.b&&(bg(this.f),this.g=0,this.l=this.b);if(0>a||0!==this.g&&a<=this.g)return this;var b=a.toString();if(this.f.hasOwnProperty(b))return this.f[b];var c=this.xc(a);if(c.j.length<this.j.length)return this.f[b]=c;this.g=a;return this};l.xc=function(){return this};l.qa=function(a){null!==this.j&&(a(this.j,this.j,this.s),this.k())};l.Oa=function(a,b){var c=this.j;if(null!==c){var d=c.length,e=this.s,g=f(c)?c:[],h=0,m,r;for(m=0;m<d;m+=
499e)for(g[h++]=c[m]+a,g[h++]=c[m+1]+b,r=m+2;r<m+e;++r)g[h++]=c[r];f(c)&&g.length!=h&&(g.length=h);this.k()}};I(lb,mb);l=lb.prototype;l.clone=function(){var a=new lb(null);Ki(a,this.a,this.j.slice());return a};l.Sa=function(a,b,c,d){if(d<hg(this.G(),a,b))return d;this.c!=this.b&&(this.i=Math.sqrt(Sm(this.j,0,this.j.length,this.s,0)),this.c=this.b);return Um(this.j,0,this.j.length,this.s,this.i,!0,a,b,c,d)};l.rl=function(){return Tp(this.j,0,this.j.length,this.s)};l.K=function(){return Vj(this.j,0,this.j.length,
500this.s)};l.xc=function(a){var b=[];b.length=Ym(this.j,0,this.j.length,this.s,a,b,0);a=new lb(null);Ki(a,"XY",b);return a};l.M=function(){return"LinearRing"};l.W=function(a,b){null===a?Ki(this,"XY",null):(hh(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=hl(this.j,0,a,this.s),this.k())};I(Ta,mb);l=Ta.prototype;l.clone=function(){var a=new Ta(null);Li(a,this.a,this.j.slice());return a};l.Sa=function(a,b,c,d){var e=this.j;a=Ph(a,b,e[0],e[1]);if(a<d){d=this.s;for(b=0;b<d;++b)c[b]=e[b];c.length=
501d;return a}return d};l.K=function(){return null===this.j?[]:this.j.slice()};l.wd=function(a){return oi(this.j,a)};l.M=function(){return"Point"};l.ra=function(a){return Eh(a,this.j[0],this.j[1])};l.W=function(a,b){null===a?Li(this,"XY",null):(hh(this,b,a,0),null===this.j&&(this.j=[]),this.j.length=Xp(this.j,a),this.k())};I(Fa,mb);l=Fa.prototype;l.wi=function(a){null===this.j?this.j=a.j.slice():Tb(this.j,a.j);this.c.push(this.j.length);this.k()};l.clone=function(){var a=new Fa(null);Nf(a,this.a,this.j.slice(),
502this.c.slice());return a};l.Sa=function(a,b,c,d){if(d<hg(this.G(),a,b))return d;this.J!=this.b&&(this.L=Math.sqrt(Tm(this.j,0,this.c,this.s,0)),this.J=this.b);return Vm(this.j,0,this.c,this.s,this.L,!0,a,b,c,d)};l.Jb=function(a,b){return Zm(Rh(this),0,this.c,this.s,a,b)};l.ul=function(){return Up(Rh(this),0,this.c,this.s)};l.K=function(a){var b;f(a)?(b=Rh(this).slice(),bn(b,0,this.c,this.s,a)):b=this.j;return Xm(b,0,this.c,this.s)};l.cj=function(){return new Ta(cn(this))};l.ij=function(){return this.c.length};
503l.hj=function(a){if(0>a||this.c.length<=a)return null;var b=new lb(null);Ki(b,this.a,this.j.slice(0===a?0:this.c[a-1],this.c[a]));return b};l.Ed=function(){var a=this.a,b=this.j,c=this.c,d=[],e=0,g;var h=0;for(g=c.length;h<g;++h){var m=c[h],r=new lb(null);Ki(r,a,b.slice(e,m));d.push(r);e=m}return d};l.xc=function(a){var b=[],c=[];b.length=Yp(this.j,0,this.c,this.s,Math.sqrt(a),b,0,c);a=new Fa(null);Nf(a,"XY",b,c);return a};l.M=function(){return"Polygon"};l.ra=function(a){return aq(Rh(this),0,this.c,
504this.s,a)};l.W=function(a,b){null===a?Nf(this,"XY",null,this.c):(hh(this,b,a,2),null===this.j&&(this.j=[]),a=Wm(this.j,0,a,this.s,this.c),this.j.length=0===a.length?0:a[a.length-1],this.k())};I(Ye,tc);I(Mi,Re);Mi.prototype.O=function(){this.setMap(null)};Mi.prototype.g=function(a){var b=this.c,c=this.f;a.vectorContext.tc(Infinity,function(d){d.Aa(c.e,c.c);d.Ba(c.a);d.Rb(b,null)})};Mi.prototype.Q=function(){return this.c};Mi.prototype.setMap=function(a){null!==this.d&&(Hb(this.d),this.d=null,this.b.render(),
505this.b=null);this.b=a;null!==this.b&&(this.d=ma(a,"postcompose",this.g,!1,this),dn(this))};I(Wj,tc);I(Bc,Db);Bc.prototype.Q=function(){return this.f.Q()};Bc.prototype.g=A;I(en,function(){this.a=-1});en.prototype.update=function(a,b){f(b)||(b=a.length);for(var c=b-this.a,d=this.e,e=this.c,g=0;g<b;){if(0==e)for(;g<=c;)fn(this,a,g),g+=this.a;if(D(a))for(;g<b;){if(d[e++]=a.charCodeAt(g++),e==this.a){fn(this,d);e=0;break}}else for(;g<b;)if(d[e++]=a[g++],e==this.a){fn(this,d);e=0;break}}this.c=e;this.d+=
506b};l=Lc.prototype;l.Hm=function(){return this.b};l.ej=function(){return this.d};l.Im=function(){return this.c};l.fj=function(){return this.e};l.lj=function(){return this.f};l.Jm=function(){return this.a};l.Km=function(a){this.b=a;this.g=void 0};l.Zn=function(a){this.d=a;this.g=void 0};l.Lm=function(a){this.c=a;this.g=void 0};l.$n=function(a){this.e=a;this.g=void 0};l.ao=function(a){this.f=a;this.g=void 0};l.ko=function(a){this.a=a;this.g=void 0};l.nb=function(){if(!f(this.g)){var a="s"+(null===this.b?
507"-":pd(this.b))+","+(f(this.d)?this.d.toString():"-")+","+(null===this.c?"-":this.c.toString())+","+(f(this.e)?this.e:"-")+","+(f(this.f)?this.f.toString():"-")+","+(f(this.a)?this.a.toString():"-"),b=new en;b.update(a);var c=Array((56>b.c?b.a:2*b.a)-b.c);c[0]=128;for(a=1;a<c.length-8;++a)c[a]=0;var d=8*b.d;for(a=c.length-8;a<c.length;++a)c[a]=d&255,d/=256;b.update(c);c=Array(16);for(a=d=0;4>a;++a)for(var e=0;32>e;e+=8)c[d++]=b.b[a]>>>e&255;if(8192>c.length)b=String.fromCharCode.apply(null,c);else for(b=
508"",a=0;a<c.length;a+=8192)b+=String.fromCharCode.apply(null,Qe(c,a,a+8192));this.g=b}return this.g};var Ng=[0,0,0,1],yk=[],zk=[0,0,0,1];jf.prototype.c=function(){return this.b};jf.prototype.d=function(a){this.b=a;this.a=void 0};jf.prototype.nb=function(){f(this.a)||(this.a="f"+(null===this.b?"-":pd(this.b)));return this.a};I(Qc,Rd);l=Qc.prototype;l.mb=function(){return this.g};l.ym=function(){return this.d};l.he=function(){return this.f};l.Lb=function(){return this.b};l.gd=function(){return 2};l.Dd=
509function(){return this.i};l.rb=function(){return this.o};l.zm=function(){return this.c};l.Xa=function(){return this.p};l.Am=function(){return this.a};l.$e=A;l.load=A;l.xf=A;l.Sg=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();b.arc(a.size/2,a.size/2,this.c,0,2*Math.PI,!0);null!==this.d&&(b.fillStyle=pd(this.d.b),b.fill());null!==this.a&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.md,null===a.lineDash||b.setLineDash(a.lineDash),b.stroke());b.closePath()};l.Rg=function(a,
510b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();b.arc(a.size/2,a.size/2,this.c,0,2*Math.PI,!0);b.fillStyle=Ng;b.fill();null!==this.a&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.md,null===a.lineDash||b.setLineDash(a.lineDash),b.stroke());b.closePath()};l.nb=function(){var a=null===this.a?"-":this.a.nb(),b=null===this.d?"-":this.d.nb();if(null===this.e||a!=this.e[1]||b!=this.e[2]||this.c!=this.e[3])this.e=["c"+a+b+(f(this.c)?this.c.toString():"-"),a,b,this.c];return this.e[0]};l=qd.prototype;
511l.Q=function(){return this.g};l.Zi=function(){return this.d};l.Mm=function(){return this.e};l.Nm=function(){return this.f};l.Om=function(){return this.c};l.Pm=function(){return this.a};l.Dj=function(){return this.b};l.Vg=function(a){w(a)?this.d=a:D(a)?this.d=function(b){return b.get(a)}:null===a?this.d=fq:f(a)&&(this.d=function(){return a});this.g=a};
511l.mo=function(a){this.b=a};I(Mc,Bc);Mc.prototype.g=function(){var a=this.l,b=a.R(),c=this.Q().G(),d=y(c),e=a.xa();c=Bj(c,e);e=this.n;c=b.constrainResolution(c,
5120,void 0);Ii(a,b,c,d,e)};I(hd,Jb);I(id,Jb);I($c,Jb);$c.prototype.i=function(a){var b=Hd(this.a,-1,1),c=a.R();a.render();Nm(a,c,-b,this.f,this.o);this.a=0;this.f=null;this.g=this.e=void 0};I(ad,Db);ad.prototype.nc=hf;I(bd,Db);bd.prototype.nc=hf;I(Ua,Xa);l=Ua.prototype;l.Qd=function(){this.eb()&&this.k()};l.Vj=function(){Oa(this.c,Hb);this.c.length=0;var a=this.Bc();this.c.push(ma(a,"add",this.Uj,!1,this),ma(a,"remove",this.Wj,!1,this));ob(this.a,function(e){Oa(e,Hb)});bg(this.a);a=a.a;var b;var c=
5130;for(b=a.length;c<b;c++){var d=a[c];this.a[C(d).toString()]=[ma(d,"propertychange",this.Qd,!1,this),ma(d,"change",this.Qd,!1,this)]}this.k()};l.Uj=function(a){a=a.element;var b=C(a).toString();this.a[b]=[ma(a,"propertychange",this.Qd,!1,this),ma(a,"change",this.Qd,!1,this)];this.k()};l.Wj=function(a){a=C(a.element).toString();Oa(this.a[a],Hb);delete this.a[a];this.k()};l.Bc=function(){return this.get("layers")};l.Ah=function(a){this.set("layers",a)};l.Ue=function(a){var b=f(a)?a:[],c=b.length;this.Bc().forEach(function(g){g.Ue(b)});
514a=Kp(this);var d;for(d=b.length;c<d;c++){var e=b[c];e.brightness=Hd(e.brightness+a.brightness,-1,1);e.contrast*=a.contrast;e.hue+=a.hue;e.opacity*=a.opacity;e.saturation*=a.saturation;e.visible=e.visible&&a.visible;e.maxResolution=Math.min(e.maxResolution,a.maxResolution);e.minResolution=Math.max(e.minResolution,a.minResolution);f(a.extent)&&(e.extent=f(e.extent)?aa(e.extent,a.extent):a.extent)}return b};l.We=function(){return"ready"};I(jn,Cb);jn.prototype.getPointResolution=function(a,b){b=b[1]/
5156378137;return a/((Math.exp(b)+Math.exp(-b))/2)};var Rl=6378137*Math.PI,kq=[-Rl,-Rl,Rl,Rl],Pu=[-180,-85,180,85],bp=Jc("EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" "),function(a){return new jn(a)});I(og,Cb);og.prototype.getPointResolution=function(a){return a};var lq=[-180,-90,180,90],cp=[new og("CRS:84"),new og("EPSG:4326","neu"),new og("urn:ogc:def:crs:EPSG::4326","neu"),new og("urn:ogc:def:crs:EPSG:6.6:4326",
516"neu"),new og("urn:ogc:def:crs:OGC:1.3:CRS84"),new og("urn:ogc:def:crs:OGC:2:84"),new og("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new og("urn:x-ogc:def:crs:EPSG:4326","neu")];I(Va,La);I(Ea,La);Ea.prototype.a=function(){return this.get("preload")};Ea.prototype.d=function(a){this.set("preload",a)};Ea.prototype.c=function(){return this.get("useInterimTilesOnError")};Ea.prototype.e=function(a){this.set("useInterimTilesOnError",a)};I(Ga,La);Ga.prototype.H=function(){return this.g};Ga.prototype.J=
517function(){return this.a};Ga.prototype.e=function(a){this.g=f(a)?a:Xj;this.a=null===a?void 0:gn(this.g);this.k()};l=uc.prototype;l.tc=function(a,b){a=a.toString();var c=this.U[a];f(c)?c.push(b):this.U[a]=[b]};l.uc=function(a){if(ta(this.e,a.G())){if(null!==this.a||null!==this.b){null===this.a||jl(this,this.a);null===this.b||Oi(this,this.b);var b=a.j;b=null===b?null:Ji(b,0,b.length,a.s,this.H,this.V);var c=b[2]-b[0],d=b[3]-b[1];c=Math.sqrt(c*c+d*d);d=this.c;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);
518null===this.a||d.fill();null===this.b||d.stroke()}""!==this.d&&Sh(this,a.dd(),2,2)}};l.Le=function(a,b){var c=(0,b.d)(a);null!=c&&ta(this.e,c.G())&&(a=b.b,f(a)||(a=0),this.tc(a,function(d){d.Aa(b.e,b.c);d.Za(b.f);d.Ba(b.a);vt[c.M()].call(d,c,null)}))};l.zd=function(a,b){a=a.d;var c;var d=0;for(c=a.length;d<c;++d){var e=a[d];vt[e.M()].call(this,e,b)}};l.kb=function(a){var b=a.j;a=a.s;null===this.f||nq(this,b,b.length);""!==this.d&&Sh(this,b,b.length,a)};l.jb=function(a){var b=a.j;a=a.s;null===this.f||
519nq(this,b,b.length);""!==this.d&&Sh(this,b,b.length,a)};l.zb=function(a){if(ta(this.e,a.G())){if(null!==this.b){Oi(this,this.b);var b=this.c,c=a.j;b.beginPath();kn(this,c,0,c.length,a.s,!1);b.stroke()}""!==this.d&&(a=xq(a),Sh(this,a,2,2))}};l.vc=function(a){var b=a.G();if(ta(this.e,b)){if(null!==this.b){Oi(this,this.b);b=this.c;var c=a.j,d=0,e=a.c,g=a.s;b.beginPath();var h;var m=0;for(h=e.length;m<h;++m)d=kn(this,c,d,e[m],g,!1);b.stroke()}""!==this.d&&(a=yq(a),Sh(this,a,a.length,2))}};
519l.Rb=function(a){if(ta(this.e,
520a.G())){if(null!==this.b||null!==this.a){null===this.a||jl(this,this.a);null===this.b||Oi(this,this.b);var b=this.c;b.beginPath();oq(this,Rh(a),0,a.c,a.s);null===this.a||b.fill();null===this.b||b.stroke()}""!==this.d&&(a=cn(a),Sh(this,a,2,2))}};l.wc=function(a){if(ta(this.e,a.G())){if(null!==this.b||null!==this.a){null===this.a||jl(this,this.a);null===this.b||Oi(this,this.b);var b=this.c,c=mh(a),d=0,e=a.c,g=a.s,h;var m=0;for(h=e.length;m<h;++m){var r=e[m];b.beginPath();d=oq(this,c,d,r,g);null===this.a||
521b.fill();null===this.b||b.stroke()}}""!==this.d&&(a=sn(a),Sh(this,a,a.length,2))}};l.Aa=function(a,b){null===a?this.a=null:(a=a.b,this.a={fillStyle:pd(null===a?Ng:a)});if(null===b)this.b=null;else{a=b.b;var c=b.d,d=b.c,e=b.e,g=b.a;b=b.f;this.b={lineCap:f(c)?c:"round",lineDash:null!=d?d:yk,lineJoin:f(e)?e:"round",lineWidth:this.n*(f(g)?g:1),miterLimit:f(b)?b:10,strokeStyle:pd(null===a?zk:a)}}};l.Za=function(a){if(null===a)this.f=null;else{var b=a.mb(),c=a.Lb(1),d=a.rb(),e=a.Xa();this.J=b[0];this.L=
522b[1];this.N=e[1];this.f=c;this.o=a.U;this.Fa=d[0];this.Ga=d[1];this.Ra=a.V;this.rc=a.q;this.g=a.l;this.vb=a.n;this.T=e[0]}};l.Ba=function(a){if(null===a)this.d="";else{var b=a.b;null===b?this.i=null:(b=b.b,this.i={fillStyle:pd(null===b?Ng:b)});var c=a.f;if(null===c)this.l=null;else{b=c.b;var d=c.d,e=c.c,g=c.e,h=c.a;c=c.f;this.l={lineCap:f(d)?d:"round",lineDash:null!=e?e:yk,lineJoin:f(g)?g:"round",lineWidth:f(h)?h:1,miterLimit:f(c)?c:10,strokeStyle:pd(null===b?zk:b)}}b=a.d;d=a.q;e=a.l;g=a.e;h=a.a;
523c=a.c;var m=a.g;a=a.i;this.sa={font:f(b)?b:"10px sans-serif",textAlign:f(m)?m:"center",textBaseline:f(a)?a:"middle"};this.d=f(c)?c:"";this.wb=f(d)?this.n*d:0;this.xb=f(e)?this.n*e:0;this.p=f(g)?g:0;this.q=this.n*(f(h)?h:1)}};var vt={Point:uc.prototype.kb,LineString:uc.prototype.zb,Polygon:uc.prototype.Rb,MultiPoint:uc.prototype.jb,MultiLineString:uc.prototype.vc,MultiPolygon:uc.prototype.wc,GeometryCollection:uc.prototype.zd,Circle:uc.prototype.uc},pg=["Polygon","LineString","Image","Text"];I(Vf,
524il);Vf.prototype.de=A;Vf.prototype.Pe=function(){return this.T};I(Qi,Vf);Qi.prototype.kb=function(a,b){if(null!==this.i){ih(this,b);var c=a.j,d=this.coordinates.length;c=Pi(this,c,0,c.length,a.s,!1);this.a.push([4,d,c,this.i,this.c,this.f,this.g,this.q,this.l,this.o,this.U,this.V,this.n,this.p,this.H]);this.b.push([4,d,c,this.N,this.c,this.f,this.g,this.q,this.l,this.o,this.U,this.V,this.n,this.p,this.H]);jh(this,b)}};Qi.prototype.jb=function(a,b){if(null!==this.i){ih(this,b);var c=a.j,d=this.coordinates.length;
525c=Pi(this,c,0,c.length,a.s,!1);this.a.push([4,d,c,this.i,this.c,this.f,this.g,this.q,this.l,this.o,this.U,this.V,this.n,this.p,this.H]);this.b.push([4,d,c,this.N,this.c,this.f,this.g,this.q,this.l,this.o,this.U,this.V,this.n,this.p,this.H]);jh(this,b)}};Qi.prototype.de=function(){ln(this);this.f=this.c=void 0;this.i=this.N=null;this.H=this.p=this.V=this.U=this.o=this.l=this.q=this.n=this.g=void 0};Qi.prototype.Za=function(a){var b=a.mb(),c=a.Xa(),d=a.he(1),e=a.Lb(1),g=a.rb();this.c=b[0];this.f=b[1];
526this.N=d;this.i=e;this.g=c[1];this.q=a.U;this.l=g[0];this.o=g[1];this.U=a.V;this.V=a.q;this.n=a.l;this.p=a.n;this.H=c[0]};I(mn,Vf);l=mn.prototype;l.Pe=function(){null===this.d&&(this.d=zj(this.T),0<this.e&&yf(this.d,this.resolution*(this.e+1)/2,this.d));return this.d};l.zb=function(a,b){var c=this.c,d=c.lineWidth;f(c.strokeStyle)&&f(d)&&(rq(this),ih(this,b),this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]),c=a.j,qq(this,c,0,c.length,a.s),this.b.push([12]),
527jh(this,b))};l.vc=function(a,b){var c=this.c,d=c.lineWidth;if(f(c.strokeStyle)&&f(d)){rq(this);ih(this,b);this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]);c=a.c;d=a.j;a=a.s;var e=0,g;var h=0;for(g=c.length;h<g;++h)e=qq(this,d,e,c[h],a);this.b.push([12]);jh(this,b)}};l.de=function(){this.c.Ze!=this.coordinates.length&&this.a.push([12]);ln(this);this.c=null};l.Aa=function(a,b){a=b.b;this.c.strokeStyle=pd(null===a?zk:a);a=b.d;this.c.lineCap=f(a)?a:"round";
528a=b.c;this.c.lineDash=null===a?yk:a;a=b.e;this.c.lineJoin=f(a)?a:"round";a=b.a;this.c.lineWidth=f(a)?a:1;a=b.f;this.c.miterLimit=f(a)?a:10;this.c.lineWidth>this.e&&(this.e=this.c.lineWidth,this.d=null)};I(nn,Vf);l=nn.prototype;l.uc=function(a,b){var c=this.c,d=c.strokeStyle;if(f(c.fillStyle)||f(d)){on(this);ih(this,b);this.b.push([9,pd(Ng)]);f(c.strokeStyle)&&this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);var e=a.j;d=this.coordinates.length;Pi(this,e,0,e.length,
529a.s,!1);e=[1];d=[2,d];this.a.push(e,d);this.b.push(e,d);d=[7];this.b.push(d);f(c.fillStyle)&&this.a.push(d);f(c.strokeStyle)&&(c=[12],this.a.push(c),this.b.push(c));jh(this,b)}};l.Rb=function(a,b){var c=this.c,d=c.strokeStyle;if(f(c.fillStyle)||f(d))on(this),ih(this,b),this.b.push([9,pd(Ng)]),f(c.strokeStyle)&&this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]),c=a.c,d=Rh(a),sq(this,d,0,c,a.s),jh(this,b)};l.wc=function(a,b){var c=this.c,d=c.strokeStyle;if(f(c.fillStyle)||
530f(d)){on(this);ih(this,b);this.b.push([9,pd(Ng)]);f(c.strokeStyle)&&this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);c=a.c;d=mh(a);a=a.s;var e=0,g;var h=0;for(g=c.length;h<g;++h)e=sq(this,d,e,c[h],a);jh(this,b)}};l.de=function(){ln(this);this.c=null;var a=this.oa;if(0!==a){var b=this.coordinates,c;var d=0;for(c=b.length;d<c;++d)b[d]=a*Math.round(b[d]/a)}};l.Pe=function(){null===this.d&&(this.d=zj(this.T),0<this.e&&yf(this.d,this.resolution*(this.e+1)/2,this.d));
531return this.d};l.Aa=function(a,b){var c=this.c;if(null===a)c.fillStyle=void 0;else{var d=a.b;c.fillStyle=pd(null===d?Ng:d)}null===b?(c.strokeStyle=void 0,c.lineCap=void 0,c.lineDash=null,c.lineJoin=void 0,c.lineWidth=void 0,c.miterLimit=void 0):(d=b.b,c.strokeStyle=pd(null===d?zk:d),d=b.d,c.lineCap=f(d)?d:"round",d=b.c,c.lineDash=null===d?yk:d.slice(),d=b.e,c.lineJoin=f(d)?d:"round",d=b.a,c.lineWidth=f(d)?d:1,d=b.f,c.miterLimit=f(d)?d:10,c.lineWidth>this.e&&(this.e=c.lineWidth,this.d=null))};I(ll,
532Vf);ll.prototype.lb=function(a,b,c,d,e,g){if(""!==this.i&&null!==this.g&&(null!==this.c||null!==this.f)){if(null!==this.c){e=this.c;var h=this.V;if(null===h||h.fillStyle!=e.fillStyle){var m=[9,e.fillStyle];this.a.push(m);this.b.push(m);null===h?this.V={fillStyle:e.fillStyle}:h.fillStyle=e.fillStyle}}null!==this.f&&(e=this.f,h=this.n,null===h||h.lineCap!=e.lineCap||h.lineDash!=e.lineDash||h.lineJoin!=e.lineJoin||h.lineWidth!=e.lineWidth||h.miterLimit!=e.miter
532Limit||h.strokeStyle!=e.strokeStyle)&&(m=
533[10,e.strokeStyle,e.lineWidth,e.lineCap,e.lineJoin,e.miterLimit,e.lineDash,!1],this.a.push(m),this.b.push(m),null===h?this.n={lineCap:e.lineCap,lineDash:e.lineDash,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle}:(h.lineCap=e.lineCap,h.lineDash=e.lineDash,h.lineJoin=e.lineJoin,h.lineWidth=e.lineWidth,h.miterLimit=e.miterLimit,h.strokeStyle=e.strokeStyle));e=this.g;h=this.p;if(null===h||h.font!=e.font||h.textAlign!=e.textAlign||h.textBaseline!=e.textBaseline)m=
534[11,e.font,e.textAlign,e.textBaseline],this.a.push(m),this.b.push(m),null===h?this.p={font:e.font,textAlign:e.textAlign,textBaseline:e.textBaseline}:(h.font=e.font,h.textAlign=e.textAlign,h.textBaseline=e.textBaseline);ih(this,g);e=this.coordinates.length;a=Pi(this,a,b,c,d,!1);a=[5,e,a,this.i,this.q,this.l,this.o,this.U,null!==this.c,null!==this.f];this.a.push(a);this.b.push(a);jh(this,g)}};ll.prototype.Ba=function(a){if(null===a)this.i="";else{var b=a.b;null===b?this.c=null:(b=b.b,b=pd(null===b?
535Ng:b),null===this.c?this.c={fillStyle:b}:this.c.fillStyle=b);var c=a.f;if(null===c)this.f=null;else{b=c.b;var d=c.d,e=c.c,g=c.e,h=c.a;c=c.f;d=f(d)?d:"round";e=null!=e?e.slice():yk;g=f(g)?g:"round";h=f(h)?h:1;c=f(c)?c:10;b=pd(null===b?zk:b);if(null===this.f)this.f={lineCap:d,lineDash:e,lineJoin:g,lineWidth:h,miterLimit:c,strokeStyle:b};else{var m=this.f;m.lineCap=d;m.lineDash=e;m.lineJoin=g;m.lineWidth=h;m.miterLimit=c;m.strokeStyle=b}}var r=a.d;b=a.q;d=a.l;e=a.e;h=a.a;c=a.c;g=a.g;m=a.i;a=f(r)?r:"10px sans-serif";
536g=f(g)?g:"center";m=f(m)?m:"middle";null===this.g?this.g={font:a,textAlign:g,textBaseline:m}:(r=this.g,r.font=a,r.textAlign=g,r.textBaseline=m);this.i=f(c)?c:"";this.q=f(b)?b:0;this.l=f(d)?d:0;this.o=f(e)?e:0;this.U=f(h)?h:1}};kh.prototype.c=function(a,b,c,d,e){var g=this.g;Ae(g,.5,.5,1/b,-1/b,-c,-a[0],-a[1]);var h=this.f;h.clearRect(0,0,1,1);var m;f(this.e)&&(m=Yd(),Jk(m,a),yf(m,b*this.e,m));return Qu(this,h,g,c,d,function(r){if(0<h.getImageData(0,0,1,1).data[3]){if(r=e(r))return r;h.clearRect(0,
5370,1,1)}},m)};kh.prototype.b=function(a,b){a=f(a)?a.toString():"0";var c=this.a[a];f(c)||(c={},this.a[a]=c);a=c[b];f(a)||(a=new Cx[b](this.q,this.d,this.i),c[b]=a);return a};kh.prototype.la=function(){return le(this.a)};var Cx={Image:Qi,LineString:mn,Polygon:nn,Text:ll};I(ie,he);ie.prototype.o=function(a,b,c){Zj(this,"precompose",c,a,void 0);var d=this.fe();if(null!==d){var e=b.extent,g=f(e);if(g){var h=a.pixelRatio,m=U(e),r=X(e),x=u(e);e=p(e);Cf(a.coordinateToPixelMatrix,m,m);Cf(a.coordinateToPixelMatrix,
538r,r);Cf(a.coordinateToPixelMatrix,x,x);Cf(a.coordinateToPixelMatrix,e,e);c.save();c.beginPath();c.moveTo(m[0]*h,m[1]*h);c.lineTo(r[0]*h,r[1]*h);c.lineTo(x[0]*h,x[1]*h);c.lineTo(e[0]*h,e[1]*h);c.clip()}h=this.Xf();m=c.globalAlpha;c.globalAlpha=b.opacity;0===a.viewState.rotation?(b=h[13],r=d.width*h[0],x=d.height*h[5],c.drawImage(d,0,0,+d.width,+d.height,Math.round(h[12]),Math.round(b),Math.round(r),Math.round(x))):(c.setTransform(h[0],h[1],h[4],h[5],h[12],h[13]),c.drawImage(d,0,0),c.setTransform(1,
5390,0,1,0,0));c.globalAlpha=m;g&&c.restore()}Zj(this,"postcompose",c,a,void 0)};var wt=function(){var a=null,b=null;return function(c){if(null===a){a=se(1,1);b=a.createImageData(1,1);var d=b.data;d[0]=42;d[1]=84;d[2]=126;d[3]=255}d=a.canvas;var e=c[0]<=d.width&&c[1]<=d.height;e||(d.width=c[0],d.height=c[1],d=c[0]-1,c=c[1]-1,a.putImageData(b,d,c),c=a.getImageData(d,c,1,1),e=rd(b.data,c.data));return e}}();I(hb,mb);l=hb.prototype;l.clone=function(){var a=new hb(null);Df(a,this.a,this.j.slice());a.k();
540return a};l.Sa=function(a,b,c,d){var e=this.j;a-=e[0];var g=b-e[1];b=a*a+g*g;if(b<d){0===b?d=0:(d=this.zg()/Math.sqrt(b),c[0]=e[0]+d*a,c[1]=e[1]+d*g,d=2);for(;d<this.s;++d)c[d]=e[d];c.length=this.s;return b}return d};l.Jb=function(a,b){var c=this.j;a-=c[0];c=b-c[1];return a*a+c*c<=uq(this)};l.dd=function(){return this.j.slice(0,this.s)};l.wd=function(a){var b=this.j,c=b[this.s]-b[0];return He(b[0]-c,b[1]-c,b[0]+c,b[1]+c,a)};l.zg=function(){return Math.sqrt(uq(this))};l.M=function(){return"Circle"};
541l.pl=function(a){var b=this.s,c=a.slice();c[b]=c[0]+(this.j[b]-this.j[0]);var d;for(d=1;d<b;++d)c[b+d]=a[d];Df(this,this.a,c);this.k()};l.uh=function(a,b,c){if(null===a)Df(this,"XY",null);else{hh(this,c,a,0);null===this.j&&(this.j=[]);c=this.j;a=Xp(c,a);c[a++]=c[0]+b;var d;b=1;for(d=this.s;b<d;++b)c[a++]=c[b];c.length=a}this.k()};l.Ag=function(a){this.j[this.s]=this.j[0]+a;this.k()};I(sb,gc);l=sb.prototype;l.clone=function(){var a=new sb(null);a.xh(this.d);return a};l.Sa=function(a,b,c,d){if(d<hg(this.G(),
542a,b))return d;var e=this.d,g;var h=0;for(g=e.length;h<g;
542++h)d=e[h].Sa(a,b,c,d);return d};l.Jb=function(a,b){var c=this.d,d;var e=0;for(d=c.length;e<d;++e)if(c[e].Jb(a,b))return!0;return!1};l.wd=function(a){He(Infinity,Infinity,-Infinity,-Infinity,a);for(var b=this.d,c=0,d=b.length;c<d;++c)Lk(a,b[c].G());return a};l.Vf=function(){return vq(this.d)};l.Ve=function(a){this.l!=this.b&&(bg(this.f),this.g=0,this.l=this.b);if(0>a||0!==this.g&&a<this.g)return this;var b=a.toString();if(this.f.hasOwnProperty(b))return this.f[b];
543var c=[],d=this.d,e=!1,g;var h=0;for(g=d.length;h<g;++h){var m=d[h],r=m.Ve(a);c.push(r);r!==m&&(e=!0)}if(e)return a=new sb(null),qn(a),a.d=c,pn(a),a.k(),this.f[b]=a;this.g=a;return this};l.M=function(){return"GeometryCollection"};l.ra=function(a){var b=this.d,c;var d=0;for(c=b.length;d<c;++d)if(b[d].ra(a))return!0;return!1};l.la=function(){return 0==this.d.length};l.xh=function(a){a=vq(a);qn(this);this.d=a;pn(this);this.k()};l.qa=function(a){var b=this.d,c;var d=0;for(c=b.length;d<c;++d)b[d].qa(a);
544this.k()};l.Oa=function(a,b){var c=this.d,d;var e=0;for(d=c.length;e<d;++e)c[e].Oa(a,b);this.k()};l.O=function(){qn(this);sb.S.O.call(this)};I(Ha,mb);l=Ha.prototype;l.ui=function(a){null===this.j?this.j=a.slice():Tb(this.j,a);this.k()};l.clone=function(){var a=new Ha(null);kf(a,this.a,this.j.slice());return a};l.Sa=function(a,b,c,d){if(d<hg(this.G(),a,b))return d;this.p!=this.b&&(this.H=Math.sqrt(Sm(this.j,0,this.j.length,this.s,0)),this.p=this.b);return Um(this.j,0,this.j.length,this.s,this.H,!1,
545a,b,c,d)};l.Ji=function(a,b){return $p(this.j,0,this.j.length,this.s,a,b)};l.ql=function(a,b){return"XYM"!=this.a&&"XYZM"!=this.a?null:rn(this.j,0,this.j.length,this.s,a,f(b)?b:!1)};l.K=function(){return Vj(this.j,0,this.j.length,this.s)};l.Bg=function(){var a=this.j,b=this.s,c=a[0],d=a[1],e=0,g;for(g=0+b;g<this.j.length;g+=b){var h=a[g],m=a[g+1];e+=Math.sqrt((h-c)*(h-c)+(m-d)*(m-d));c=h;d=m}return e};l.xc=function(a){var b=[];b.length=Ym(this.j,0,this.j.length,this.s,a,b,0);a=new Ha(null);kf(a,"XY",
546b);return a};l.M=function(){return"LineString"};l.ra=function(a){return $m(this.j,0,this.j.length,this.s,a)};l.W=function(a,b){null===a?kf(this,"XY",null):(hh(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=hl(this.j,0,a,this.s),this.k())};I(Qa,mb);l=Qa.prototype;l.vi=function(a){null===this.j?this.j=a.j.slice():Tb(this.j,a.j.slice());this.c.push(this.j.length);this.k()};l.clone=function(){var a=new Qa(null);ak(a,this.a,this.j.slice(),this.c.slice());return a};l.Sa=function(a,b,c,d){if(d<hg(this.G(),
547a,b))return d;this.i!=this.b&&(this.p=Math.sqrt(Tm(this.j,0,this.c,this.s,0)),this.i=this.b);return Vm(this.j,0,this.c,this.s,this.p,!1,a,b,c,d)};l.sl=function(a,b,c){return"XYM"!=this.a&&"XYZM"!=this.a||0===this.j.length?null:Ru(this.j,this.c,this.s,a,f(b)?b:!1,f(c)?c:!1)};l.K=function(){return Xm(this.j,0,this.c,this.s)};l.gj=function(a){if(0>a||this.c.length<=a)return null;var b=new Ha(null);kf(b,this.a,this.j.slice(0===a?0:this.c[a-1],this.c[a]));return b};l.ad=function(){var a=this.j,b=this.c,
548c=this.a,d=[],e=0,g;var h=0;for(g=b.length;h<g;++h){var m=b[h],r=new Ha(null);kf(r,c,a.slice(e,m));d.push(r);e=m}return d};l.xc=function(a){var b=[],c=[],d=this.j,e=this.c,g=this.s,h=0,m=0,r;var x=0;for(r=e.length;x<r;++x){var F=e[x];m=Ym(d,h,F,g,a,b,m);c.push(m);h=F}b.length=m;a=new Qa(null);ak(a,"XY",b,c);return a};l.M=function(){return"MultiLineString"};l.ra=function(a){a:{var b=this.j,c=this.c,d=this.s,e=0,g;var h=0;for(g=c.length;h<g;++h){if($m(b,e,c[h],d,a)){a=!0;break a}e=c[h]}a=!1}return a};
549l.W=function(a,b){null===a?ak(this,"XY",null,this.c):(hh(this,b,a,2),null===this.j&&(this.j=[]),a=Wm(this.j,0,a,this.s,this.c),this.j.length=0===a.length?0:a[a.length-1],this.k())};I($a,mb);l=$a.prototype;l.xi=function(a){null===this.j?this.j=a.j.slice():Tb(this.j,a.j);this.k()};l.clone=function(){var a=new $a(null);Df(a,this.a,this.j.slice());a.k();return a};l.Sa=function(a,b,c,d){if(d<hg(this.G(),a,b))return d;var e=this.j,g=this.s,h,m;var r=0;for(h=e.length;r<h;r+=g)if(m=Ph(a,b,e[r],e[r+1]),m<
550d){d=m;for(m=0;m<g;++m)c[m]=e[r+m];c.length=g}return d};l.K=function(){return Vj(this.j,0,this.j.length,this.s)};l.qj=function(a){var b=null===this.j?0:this.j.length/this.s;if(0>a||b<=a)return null;b=new Ta(null);Li(b,this.a,this.j.slice(a*this.s,(a+1)*this.s));return b};l.ce=function(){var a=this.j,b=this.a,c=this.s,d=[],e;var g=0;for(e=a.length;g<e;g+=c){var h=new Ta(null);Li(h,b,a.slice(g,g+c));d.push(h)}return d};l.M=function(){return"MultiPoint"};l.ra=function(a){var b=this.j,c=this.s,d,e,g;
551var h=0;for(d=b.length;h<d;h+=c)if(e=b[h],g=b[h+1],Eh(a,e,g))return!0;return!1};l.W=function(a,b){null===a?Df(this,"XY",null):(hh(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=hl(this.j,0,a,this.s));this.k()};I(Ra,mb);l=Ra.prototype;
551l.yi=function(a){if(null===this.j)this.j=a.j.slice(),a=a.c.slice(),this.c.push();else{var b=this.j.length;Tb(this.j,a.j);a=a.c.slice();var c;var d=0;for(c=a.length;d<c;++d)a[d]+=b}this.c.push(a);this.k()};l.clone=function(){var a=new Ra(null);pl(a,this.a,this.j.slice(),
552this.c.slice());return a};l.Sa=function(a,b,c,d){if(d<hg(this.G(),a,b))return d;if(this.J!=this.b){var e=this.c,g=0,h=0,m;var r=0;for(m=e.length;r<m;++r){var x=e[r];h=Tm(this.j,g,x,this.s,h);g=x[x.length-1]}this.L=Math.sqrt(h);this.J=this.b}e=mh(this);g=this.c;h=this.s;r=this.L;m=0;x=f(void 0)?void 0:[NaN,NaN];var F;var M=0;for(F=g.length;M<F;++M){var S=g[M];d=Vm(e,m,S,h,r,!0,a,b,c,d,x);m=S[S.length-1]}return d};l.Jb=function(a,b){a:{var c=mh(this);var d=this.c,e=0;if(0!==d.length){var g;var h=0;
553for(g=d.length;h<g;++h){var m=d[h];if(Zm(c,e,m,this.s,a,b)){c=!0;break a}e=m[m.length-1]}}c=!1}return c};l.tl=function(){var a=mh(this),b=this.c,c=0,d=0,e;var g=0;for(e=b.length;g<e;++g){var h=b[g];d+=Up(a,c,h,this.s);c=h[h.length-1]}return d};l.K=function(a){var b;f(a)?(b=mh(this).slice(),cq(b,this.c,this.s,a)):b=this.j;a=b;b=this.c;var c=this.s,d=0,e=f(void 0)?void 0:[],g=0,h;var m=0;for(h=b.length;m<h;++m){var r=b[m];e[g++]=Xm(a,d,r,c,e[g]);d=r[r.length-1]}e.length=g;return e};l.dj=function(){var a=
554new $a(null),b=sn(this).slice();Df(a,"XY",b);a.k();return a};l.xc=function(a){var b=[],c=[],d=this.j,e=this.c,g=this.s;a=Math.sqrt(a);var h=0,m=0,r;var x=0;for(r=e.length;x<r;++x){var F=e[x],M=[];m=Yp(d,h,F,g,a,b,m,M);c.push(M);h=F[F.length-1]}b.length=m;d=new Ra(null);pl(d,"XY",b,c);return d};l.sj=function(a){if(0>a||this.c.length<=a)return null;var b;0===a?b=0:(b=this.c[a-1],b=b[b.length-1]);a=this.c[a].slice();var c=a[a.length-1];if(0!==b){var d;var e=0;for(d=a.length;e<d;++e)a[e]-=b}e=new Fa(null);
555Nf(e,this.a,this.j.slice(b,c),a);return e};l.Id=function(){var a=this.a,b=this.j,c=this.c,d=[],e=0,g,h;var m=0;for(g=c.length;m<g;++m){var r=c[m].slice(),x=r[r.length-1];if(0!==e){var F=0;for(h=r.length;F<h;++F)r[F]-=e}F=new Fa(null);Nf(F,a,b.slice(e,x),r);d.push(F);e=x}return d};l.M=function(){return"MultiPolygon"};l.ra=function(a){a:{var b=mh(this),c=this.c,d=this.s,e=0,g;var h=0;for(g=c.length;h<g;++h){var m=c[h];if(aq(b,e,m,d,a)){a=!0;break a}e=m[m.length-1]}a=!1}return a};l.W=function(a,b){if(null===
556a)pl(this,"XY",null,this.c);else{hh(this,b,a,3);null===this.j&&(this.j=[]);b=this.j;var c=this.s,d=this.c,e=0;d=f(d)?d:[];var g=0,h;var m=0;for(h=a.length;m<h;++m)e=Wm(b,e,a[m],c,d[g]),d[g++]=e,e=e[e.length-1];d.length=g;0===d.length?this.j.length=0:(b=d[d.length-1],this.j.length=0===b.length?0:b[b.length-1]);this.k()}};var zq={Point:function(a,b,c,d){var e=c.f;if(null!==e){if(2!=e.gd())return;var g=a.b(c.b,"Image");g.Za(e);g.kb(b,d)}e=c.a;null!==e&&(a=a.b(c.b,"Text"),a.Ba(e),a.lb(b.K(),0,2,2,b,d))},
557LineString:function(a,b,c,d){var e=c.c;if(null!==e){var g=a.b(c.b,"LineString");g.Aa(null,e);g.zb(b,d)}e=c.a;null!==e&&(a=a.b(c.b,"Text"),a.Ba(e),a.lb(xq(b),0,2,2,b,d))}
557,Polygon:function(a,b,c,d){var e=c.e,g=c.c;if(null!==e||null!==g){var h=a.b(c.b,"Polygon");h.Aa(e,g);h.Rb(b,d)}e=c.a;null!==e&&(a=a.b(c.b,"Text"),a.Ba(e),a.lb(cn(b),0,2,2,b,d))},MultiPoint:function(a,b,c,d){var e=c.f;if(null!==e){if(2!=e.gd())return;var g=a.b(c.b,"Image");g.Za(e);g.jb(b,d)}e=c.a;null!==e&&(a=a.b(c.b,"Text"),a.Ba(e),
558c=b.j,a.lb(c,0,c.length,b.s,b,d))},MultiLineString:function(a,b,c,d){var e=c.c;if(null!==e){var g=a.b(c.b,"LineString");g.Aa(null,e);g.vc(b,d)}e=c.a;null!==e&&(a=a.b(c.b,"Text"),a.Ba(e),c=yq(b),a.lb(c,0,c.length,2,b,d))},MultiPolygon:function(a,b,c,d){var e=c.e,g=c.c;if(null!==g||null!==e){var h=a.b(c.b,"Polygon");h.Aa(e,g);h.wc(b,d)}e=c.a;null!==e&&(a=a.b(c.b,"Text"),a.Ba(e),c=sn(b),a.lb(c,0,c.length,2,b,d))},GeometryCollection:function(a,b,c,d){b=b.d;var e;var g=0;for(e=b.length;g<e;++g)(0,zq[b[g].M()])(a,
559b[g],c,d)},Circle:function(a,b,c,d){var e=c.e,g=c.c;if(null!==e||null!==g){var h=a.b(c.b,"Polygon");h.Aa(e,g);h.uc(b,d)}e=c.a;null!==e&&(a=a.b(c.b,"Text"),a.Ba(e),a.lb(b.dd(),0,2,2,b,d))}};I(vn,Di);vn.prototype.b=function(){return this.a};I(Zb,fc);Zb.prototype.i=function(a){a=a.target;switch(a.state){case 1:this.dispatchEvent(new Ri(Dx,a));break;case 2:this.dispatchEvent(new Ri(Ex,a));break;case 3:this.dispatchEvent(new Ri(Fx,a))}};I(Ri,tc);var Dx="imageloadstart",Ex="imageloadend",Fx="imageloaderror";
560I(vc,Zb);vc.prototype.Cc=function(a,b,c,d){b=wn(this,b);var e=this.J;if(null!==e&&this.N==this.b&&e.resolution==b&&e.e==c&&qe(e.G(),a))return e;a=a.slice();Vc(a,this.X);d=this.T(a,b,c,[la(a)/b*c,R(a)/b*c],d);null===d||(e=new vn(a,b,c,this.d,d));this.J=e;this.N=this.b;return e};var rl,yn=!1,sl=[],Th=0,tl=2,Fg=3;nh.prototype.then=function(a,b,c){return Vu(this,w(a)?a:null,w(b)?b:null,c)};Aq(nh);nh.prototype.cancel=function(a){this.a==Th&&ql(function(){var b=new dk(a);Dq(this,b)},this)};nh.prototype.g=
561function(a){this.a=Th;Si(this,tl,a)};nh.prototype.i=function(a){this.a=Th;Si(this,Fg,a)};nh.prototype.q=function(){for(;this.b&&this.b.length;){var a=this.b;this.b=[];for(var b=0;b<a.length;b++)Eq(this,a[b],this.a,this.f)}this.e=!1};var Yu=xp;I(dk,ia);dk.prototype.name="cancel";var Lv=gb.JSON.parse,Qo=gb.JSON.stringify;Gq.prototype.b=null;I(Jq,Gq);var xt=new Jq;var Zu=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,An=Wd;I(ul,Tc);var av=
562"",dv=/^https?$/i,Gx=["POST","PUT"];l=ul.prototype;l.send=function(a,b,c,d){if(this.Y)throw Error("[goog.net.XhrIo] Object is active with another request\x3d"+this.o+"; newUri\x3d"+a);b=b?b.toUpperCase():"GET";this.o=a;this.e="";this.q=!1;this.b=!0;this.Y=this.i?Kq(this.i):Kq(xt);this.g=this.i?Hq(this.i):Hq(xt);this.Y.onreadystatechange=J(this.Xg,this);try{this.l=!0,this.Y.open(b,String(a),!0),this.l=!1}catch(g){Mq(this,g);return}a=c||"";var e=this.H.clone();d&&ju(d,function(g,h){e.set(h,g)});d=Ud(e.C(),
563cv);c=gb.FormData&&a instanceof gb.FormData;!Nc(Gx,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset\x3dutf-8");e.forEach(function(g,h){this.Y.setRequestHeader(h,g)},this);this.n&&(this.Y.responseType=this.n);"withCredentials"in this.Y&&(this.Y.withCredentials=this.J);try{Qq(this),0<this.f&&((this.p=bv(this.Y))?(this.Y.timeout=this.f,this.Y.ontimeout=J(this.oc,this)):this.c=Fq(this.oc,this.f,this)),this.d=!0,this.Y.send(a),this.d=!1}catch(g){Mq(this,g)}};l.oc=function(){"undefined"!=
564typeof Bn&&this.Y&&(this.e="Timed out after "+this.f+"ms, aborting",this.dispatchEvent("timeout"),this.Y&&this.b&&(this.b=!1,this.a=!0,this.Y.abort(),this.a=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),vl(this)))};l.O=function(){this.Y&&(this.b&&(this.b=!1,this.a=!0,this.Y.abort(),this.a=!1),vl(this,!0));ul.S.O.call(this)};l.Xg=function(){this.U||(this.l||this.d||this.a?Oq(this):this.dn())};l.dn=function(){Oq(this)};a:if(document.implementation&&document.implementation.createDocument)var yt=
565document.implementation.createDocument("","",null);else{if("undefined"!=typeof ActiveXObject){var gi=new ActiveXObject("MSXML2.DOMDocument");gi.resolveExternals=!1;gi.validateOnParse=!1;try{gi.setProperty("ProhibitDTD",!0),gi.setProperty("MaxXMLSize",2048),gi.setProperty("MaxElementDepth",256)}catch(a){}if(gi){yt=gi;break a}}throw Error("Your browser does not support creating new documents");}var Vi=yt,jd=document.implementation&&document.implementation.createDocument?ev:fv,ai=jc?hv:gv,Og=jc?jv:iv,
566Pg=jc?lv:kv,Hx=document.implementation&&document.implementation.createDocument?mv:nv,ov=document.implementation&&document.implementation.createDocument?pv:qv,$f=document.implementation&&document.implementation.createDocument?rv:sv,Pf=Zd(),Xq;(function(){var a={Qf:{}};(function(){function b(O,P){if(!(this instanceof b))return new b(O,P);this.Fe=Math.max(4,O||9);this.Hf=Math.max(2,Math.ceil(.4*this.Fe));P&&this.qi(P);this.clear()}function c(O,P){O.bbox=d(O,0,O.children.length,P)}function d(O,P,Z,ca){for(var ea=
567[Infinity,Infinity,-Infinity,-Infinity],ja;P<Z;P++)ja=O.children[P],e(ea,O.wa?ca(ja):ja.bbox);return ea}function e(O,P){O[0]=Math.min(O[0],P[0]);O[1]=Math.min(O[1],P[1]);O[2]=Math.max(O[2],P[2]);O[3]=Math.max(O[3],P[3])}function g(O,P){return O.bbox[0]-P.bbox[0]}function h(O,P){return O.bbox[1]-P.bbox[1]}function m(O){return(O[2]-O[0])*(O[3]-O[1])}function r(O){return O[2]-O[0]+(O[3]-O[1])}function x(O,P){return O[0]<=P[0]&&O[1]<=P[1]&&P[2]<=O[2]&&P[3]<=O[3]}function F(O,P){return P[0]<=O[2]&&P[1]<=
568O[3]&&P[2]>=O[0]&&P[3]>=O[1]}function M(O,P,Z,ca,ea){for(var ja=[P,Z],ka;ja.length;
568)Z=ja.pop(),P=ja.pop(),Z-P<=ca||(ka=P+Math.ceil((Z-P)/ca/2)*ca,S(O,P,Z,ka,ea),ja.push(P,ka,ka,Z))}function S(O,P,Z,ca,ea){for(var ja,ka,va,na,Ia;Z>P;){600<Z-P&&(ja=Z-P+1,ka=ca-P+1,va=Math.log(ja),na=.5*Math.exp(2*va/3),Ia=.5*Math.sqrt(va*na*(ja-na)/ja)*(0>ka-ja/2?-1:1),va=Math.max(P,Math.floor(ca-ka*na/ja+Ia)),ka=Math.min(Z,Math.floor(ca+(ja-ka)*na/ja+Ia)),S(O,va,ka,ca,ea));ja=O[ca];ka=P;na=Z;Y(O,P,ca);for(0<ea(O[Z],
569ja)&&Y(O,P,Z);ka<na;){Y(O,ka,na);ka++;for(na--;0>ea(O[ka],ja);)ka++;for(;0<ea(O[na],ja);)na--}0===ea(O[P],ja)?Y(O,P,na):(na++,Y(O,na,Z));na<=ca&&(P=na+1);ca<=na&&(Z=na-1)}}function Y(O,P,Z){var ca=O[P];O[P]=O[Z];O[Z]=ca}b.prototype={all:function(){return this.Df(this.data,[])},search:function(O){var P=this.data,Z=[],ca=this.Ea;if(!F(O,P.bbox))return Z;for(var ea=[],ja,ka,va,na;P;){ja=0;for(ka=P.children.length;ja<ka;ja++)va=P.children[ja],na=P.wa?ca(va):va.bbox,F(O,na)&&(P.wa?Z.push(va):x(O,na)?this.Df(va,
570Z):ea.push(va));P=ea.pop()}return Z},load:function(O){if(!O||!O.length)return this;if(O.length<this.Hf){for(var P=0,Z=O.length;P<Z;P++)this.ha(O[P]);return this}O=this.Ff(O.slice(),0,O.length-1,0);this.data.children.length?this.data.height===O.height?this.If(this.data,O):(this.data.height<O.height&&(P=this.data,this.data=O,O=P),this.Gf(O,this.data.height-O.height-1,!0)):this.data=O;return this},ha:function(O){O&&this.Gf(O,this.data.height-1);return this},clear:function(){this.data={children:[],height:1,
571bbox:[Infinity,Infinity,-Infinity,-Infinity],wa:!0};return this},remove:function(O){if(!O)return this;for(var P=this.data,Z=this.Ea(O),ca=[],ea=[],ja,ka,va,na;P||ca.length;){P||(P=ca.pop(),ka=ca[ca.length-1],ja=ea.pop(),na=!0);if(P.wa&&(va=P.children.indexOf(O),-1!==va)){P.children.splice(va,1);ca.push(P);this.pi(ca);break}na||P.wa||!x(P.bbox,Z)?ka?(ja++,P=ka.children[ja],na=!1):P=null:(ca.push(P),ea.push(ja),ja=0,ka=P,P=P.children[0])}return this},Ea:function(O){return O},Ie:function(O,P){return O[0]-
572P[0]},Je:function(O,P){return O[1]-P[1]},toJSON:function(){return this.data},Df:function(O,P){for(var Z=[];O;)O.wa?P.push.apply(P,O.children):Z.push.apply(Z,O.children),O=Z.pop();return P},Ff:function(O,P,Z,ca){var ea=Z-P+1,ja=this.Fe,ka;if(ea<=ja)return ka={children:O.slice(P,Z+1),height:1,bbox:null,wa:!0},c(ka,this.Ea),ka;
572ca||(ca=Math.ceil(Math.log(ea)/Math.log(ja)),ja=Math.ceil(ea/Math.pow(ja,ca-1)));ka={children:[],height:ca,bbox:null};ea=Math.ceil(ea/ja);ja=ea*Math.ceil(Math.sqrt(ja));var va;
573for(M(O,P,Z,ja,this.Ie);P<=Z;P+=ja){var na=Math.min(P+ja-1,Z);M(O,P,na,ea,this.Je);for(va=P;va<=na;va+=ea){var Ia=Math.min(va+ea-1,na);ka.children.push(this.Ff(O,va,Ia,ca-1))}}c(ka,this.Ea);return ka},oi:function(O,P,Z,ca){for(var ea,ja,ka,va,na,Ia,cb,wa;;){ca.push(P);if(P.wa||ca.length-1===Z)break;cb=wa=Infinity;ea=0;for(ja=P.children.length;ea<ja;ea++){ka=P.children[ea];na=m(ka.bbox);Ia=O;var zb=ka.bbox;Ia=(Math.max(zb[2],Ia[2])-Math.min(zb[0],Ia[0]))*(Math.max(zb[3],Ia[3])-Math.min(zb[1],Ia[1]))-
574na;Ia<wa?(wa=Ia,cb=na<cb?na:cb,va=ka):Ia===wa&&na<cb&&(cb=na,va=ka)}P=va}return P},Gf:function(O,P,Z){var ca=this.Ea;Z=Z?O.bbox:ca(O);ca=[];var ea=this.oi(Z,this.data,P,ca);ea.children.push(O);for(e(ea.bbox,Z);0<=P;)if(ca[P].children.length>this.Fe)this.ri(ca,P),P--;else break;this.li(Z,ca,P)},ri:function(O,P){var Z=O[P],ca=Z.children.length,ea=this.Hf;this.mi(Z,ea,ca);ca={children:Z.children.splice(this.ni(Z,ea,ca)),height:Z.height};Z.wa&&(ca.wa=!0);c(Z,this.Ea);c(ca,this.Ea);P?O[P-1].children.push(ca):
575this.If(Z,ca)},If:function(O,P){this.data={children:[O,P],height:O.height+1};c(this.data,this.Ea)},ni:function(O,P,Z){var ca,ea,ja;var ka=ea=Infinity;for(ca=P;ca<=Z-P;ca++){var va=d(O,0,ca,this.Ea);var na=d(O,ca,Z,this.Ea);var Ia=va,cb=na;var wa=Math.max(Ia[0],cb[0]);var zb=Math.max(Ia[1],cb[1]),Ub=Math.min(Ia[2],cb[2]);Ia=Math.min(Ia[3],cb[3]);wa=Math.max(0,Ub-wa)*Math.max(0,Ia-zb);va=m(va)+m(na);wa<ka?(ka=wa,ja=ca,ea=va<ea?va:ea):wa===ka&&va<ea&&(ea=va,ja=ca)}return ja},mi:function(O,P,Z){var ca=
576O.wa?this.Ie:g,ea=O.wa?this.Je:h,ja=this.Ef(O,P,Z,ca);P=this.Ef(O,P,Z,ea);ja<P&&O.children.sort(ca)},Ef:function(O,P,Z,ca){O.children.sort(ca);ca=this.Ea;var ea=d(O,0,P,ca),ja=d(O,Z-P,Z,ca),ka=r(ea)+r(ja),va;for(va=P;va<Z-P;va++){var na=O.children[va];e(ea,O.wa?ca(na):na.bbox);ka+=r(ea)}for(va=Z-P-1;va>=P;va--)na=O.children[va],e(ja,O.wa?ca(na):na.bbox),ka+=r(ja);return ka},li:function(O,P,Z){for(;0<=Z;Z--)e(P[Z].bbox,O)},pi:function(O){for(var P=O.length-1,Z;0<=P;P--)0===O[P].children.length?0<P?
577(Z=O[P-1].children,Z.splice(Z.indexOf(O[P]),1)):this.clear():c(O[P],this.Ea)},qi:function(O){var P=["return a"," - b",";"];this.Ie=new Function("a","b",P.join(O[0]));this.Je=new Function("a","b",P.join(O[1]));this.Ea=new Function("a","return [a"+O.join(", a")+"];")}};"function"===typeof define&&define.Lo?define("rbush",function(){return b}):"undefined"!==typeof a?a.Qf=b:"undefined"!==typeof self?self.b=b:window.b=b})();Xq=a.Qf})();l=fk.prototype;l.ha=function(a,b){a=[a[0],a[1],a[2],a[3],b];this.a.ha(a);
578this.b[C(b)]=a};l.load=function(a,b){for(var c=Array(b.length),d=0,e=b.length;d<e;d++){var g=a[d],h=b[d];g=[g[0],g[1],g[2],g[3],h];c[d]=g;this.b[C(h)]=g}this.a.load(c)};l.remove=function(a){a=C(a);var b=this.b[a];Fe(this.b,a);return null!==this.a.remove(b)};l.update=function(a,b){var c=C(b);Gh(this.b[c].slice(0,4),a)||(this.remove(b),this.ha(a,b))};l.forEach=function(a,b){return Zq(Yq(this),a,b)};l.la=function(){return le(this.b)};l.clear=function(){this.a.clear();this.b={}};l.G=function(){return this.a.data.bbox};
579I(bb,fc);l=bb.prototype;l.jf=function(a){var b=C(a).toString();if(br(this,b,a)){ar(this,b,a);var c=a.Q();null!=c?(b=c.G(),this.a.ha(b,a)):this.c[b]=a;this.dispatchEvent(new qg("addfeature",a))}this.k()};l.Oc=function(a){$q(this,a);this.k()};l.clear=function(a){if(a){for(var b in this.i)Oa(this.i[b],Hb);this.i={};this.e={};this.g={}}else a=this.ph,this.a.forEach(a,this),ob(this.c,a,this);this.a.clear();this.N.clear();this.c={};this.dispatchEvent(new qg("clear"));this.k()};l.Rf=function(a,b){return this.a.forEach(a,
580b)};l.$c=function(a,b,c){return Wi(this.a,a,b,c)};l.Ab=function(a,b,c,d){return this.$c(a,c,d)};l.Oe=function(a,b,c){return this.$c(a,function(d){if(d.Q().ra(a)&&(d=b.call(c,d)))return d})};l.Dc=function(){var a=Yq(this.a);le(this.c)||Tb(a,Vd(this.c));return a};l.Re=function(a){var b=[];uv(this,a,function(c){b.push(c)});return b};l.Se=function(a){return gk(this.a,a)};l.Tf=function(a){var b=a[0],c=a[1],d=null,e=[NaN,NaN],g=Infinity,h=[-Infinity,-Infinity,Infinity,Infinity];Wi(this.a,h,function(m){var r=
581m.Q(),x=g;g=r.Sa(b,c,e,g);g<x&&(d=m,m=Math.sqrt(g),h[0]=b-m,h[1]=c-m,h[2]=b+m,h[3]=c+m)});return d};l.G=function(){return this.a.G()};l.Qe=function(a){a=this.e[a.toString()];return f(a)?a:null};l.Pg=function(a){a=a.target;var b=C(a).toString(),c=a.Q();null!=c?(c=c.G(),b in this.c?(delete this.c[b],this.a.ha(c,a)):this.a.update(c,a)):b in this.c||(this.a.remove(a),this.c[b]=a);c=a.$;
581f(c)?(c=c.toString(),b in this.g?(delete this.g[b],this.e[c]=a):this.e[c]!==a&&(cr(this,a),this.e[c]=a)):b in this.g||
582(cr(this,a),this.g[b]=a);this.k();this.dispatchEvent(new qg("changefeature",a))};l.la=function(){return this.a.la()&&le(this.c)};l.ac=function(a,b,c){var d=this.N;a=this.oa(a,b);var e;var g=0;for(e=a.length;g<e;++g){var h=a[g];Wi(d,h,function(m){return qe(m.extent,h)})||(this.J.call(this,h,b,c),d.ha(h,{extent:h.slice()}))}};l.Qg=function(a){var b=C(a).toString();b in this.c?delete this.c[b]:this.a.remove(a);this.ph(a);this.k()};l.ph=function(a){var b=C(a).toString();Oa(this.i[b],Hb);delete this.i[b];
583var c=a.$;f(c)?delete this.e[c.toString()]:delete this.g[b];this.dispatchEvent(new qg("removefeature",a))};I(qg,tc);I(Pb,vc);l=Pb.prototype;l.zi=function(a,b,c,d,e){var g=new kh(.5*b/c,a,b);this.a.ac(a,b,e);var h=!1;this.a.Ab(a,b,function(m){var r;if(!(r=h)){var x;f(m.c)?x=m.c.call(m,b):f(this.g)&&(x=this.g(m,b));if(null!=x){var F,M=!1;r=0;for(F=x.length;r<F;++r)M=ck(g,m,x[r],bk(b,c),this.$l,this)||M;r=M}else r=!1}h=r},this);Yj(g);if(h)return null;this.e[0]!=d[0]||this.e[1]!=d[1]?(this.c.canvas.width=
584d[0],this.c.canvas.height=d[1],this.e[0]=d[0],this.e[1]=d[1]):this.c.clearRect(0,0,d[0],d[1]);a=vv(this,y(a),b,c,d);lh(g,this.c,c,a,0,{});this.n=g;return this.c.canvas};l.ge=function(a,b,c,d,e){if(null!==this.n){var g={};return this.n.c(a,b,0,d,function(h){var m=C(h).toString();if(!(m in g))return g[m]=!0,e(h)})}};l.Xl=function(){return this.a};l.Yl=function(){return this.p};l.Zl=function(){return this.g};l.$l=function(){this.k()};l.am=function(){xi(this,this.a.o)};l.Mg=function(a){this.p=f(a)?a:
585Xj;this.g=null===a?void 0:gn(this.p);this.k()};I(Ze,ie);l=Ze.prototype;l.Pa=function(a,b,c,d){var e=this.a;return e.da().ge(a,b.viewState.resolution,b.viewState.rotation,b.skippedFeatureUids,function(g){return c.call(d,g,e)})};l.dc=function(a,b,c,d){if(null!==this.fe())if(this.a.da()instanceof Pb){if(a=a.slice(),Cf(b.pixelToCoordinateMatrix,a,a),this.Pa(a,b,Le,this))return c.call(d,this.a)}else if(null===this.d&&(this.d=fd(),mi(this.f,this.d)),b=tq(a,this.d),null===this.c&&(this.c=se(1,1)),this.c.clearRect(0,
5860,1,1),this.c.drawImage(this.fe(),b[0],b[1],1,1,0,0,1,1),0<this.c.getImageData(0,0,1,1).data[3])return c.call(d,this.a)};l.fe=function(){return null===this.e?null:this.e.b()};l.Xf=function(){return this.f};l.ff=function(a,b){var c=a.pixelRatio,d=a.viewState,e=d.center,g=d.resolution,h=d.rotation,m=this.a.da(),r=a.viewHints;var x=a.extent;f(b.extent)&&(x=aa(x,b.extent));r[0]||r[1]||Ja(x)||(d=d.projection,r=m.f,null===r||(d=r),x=m.Cc(x,g,c,d),null!==x&&Dm(this,x)&&(this.e=x));null!==this.e&&(x=this.e,
587d=x.G(),r=x.resolution,b=x.e,g=c*r/(g*b),Ae(this.f,c*a.size[0]/2,c*a.size[1]/2,g,g,h,b*(d[0]-e[0])/r,b*(e[1]-d[3])/r),this.d=null,Ei(a.attributions,x.f),Dg(a,m));return!0};I(ue,ie);ue.prototype.fe=function(){return this.f};ue.prototype.Xf=function(){return this.l};ue.prototype.ff=function(a,b){var c=a.pixelRatio,d=a.viewState,e=d.projection,g=this.a,h=g.da(),m=Cg(h,e),r=h.Cd(),x=Kh(m,d.resolution),F=h.Xb(x,a.pixelRatio,e),M=F[0]/Xd(m.na(x),this.L)[0],S=m.ma(x);M=S/M;var Y=d.center,O;S==d.resolution?
588(Y=Gm(Y,S,a.size),O=L(Y,S,d.rotation,a.size)):O=a.extent;f(b.extent)&&(O=aa(O,b.extent));if(Ja(O))return!1;b=Vk(m,O,S);var P=F[0]*ef(b),Z=F[1]*(b.a-b.c+1),ca,ea;null===this.f?(ea=se(P,Z),this.f=ea.canvas,this.c=[P,Z],this.g=ea,this.q=!wt(this.c)):(ca=this.f,ea=this.g,this.c[0]<P||this.c[1]<Z||this.H!==F[0]||this.p!==F[1]||this.q&&(this.c[0]>P||this.c[1]>Z)?(ca.width=P,ca.height=Z,this.c=[P,Z],this.q=!wt(this.c),this.d=null):(P=this.c[0],Z=this.c[1],(ca=x!=this.n)||(ca=this.d,ca=!(ca.b<=b.b&&b.d<=
589ca.d&&ca.c<=b.c&&b.a<=ca.a)),ca&&(this.d=null)));var ja,ka;null===this.d?(P/=F[0],Z/=F[1],ja=b.b-Math.floor((P-ef(b))/2),ka=b.c-Math.floor((Z-(b.a-b.c+1))/2),this.n=x,this.H=F[0],this.p=F[1],this.d=new jg(ja,ja+P-1,ka,ka+Z-1),this.i=Array(P*Z),Z=this.d):(Z=this.d,P=ef(Z));ca={};ca[x]={};var va=[],na=this.yd(h,ca),Ia=g.c(),cb=Yd(),wa=new jg(0,0,0,0),zb,Ub;for(ka=b.b;ka<=b.d;++ka)for(Ub=b.c;Ub<=b.a;++Ub){var Ib=h.Vb(x,ka,Ub,c,e);ja=Ib.state;2==ja||4==ja||3==ja&&!Ia?ca[x][ig(Ib.b)]=Ib:(zb=m.Ad(Ib.b,
590na,null,wa,cb),zb||(va.push(Ib),zb=m.Ld(Ib.b,wa,cb),null===zb||na(x+1,zb)))}na=0;for(zb=va.length;na<zb;++na)Ib=va[na],ka=F[0]*(Ib.b[1]-Z.b),Ub=F[1]*(Z.a-Ib.b[2]),ea.clearRect(ka,Ub,F[0],F[1]);va=Jc(Fd(ca),Number);Bd(va);var ec=h.X,ze=U(Bf(m,[x,Z.b,Z.a],cb)),wd,Pd,Qg;na=0;for(zb=va.length;na<zb;++na)if(wd=va[na],F=h.Xb(wd,c,e),Qg=ca[wd],wd==x)for(Pd in Qg){Ib=Qg[Pd];
590var wh=(Ib.b[2]-Z.c)*P+(Ib.b[1]-Z.b);this.i[wh]!=Ib&&(ka=F[0]*(Ib.b[1]-Z.b),Ub=F[1]*(Z.a-Ib.b[2]),ja=Ib.state,4!=ja&&(3!=ja||Ia)&&ec||
591ea.clearRect(ka,Ub,F[0],F[1]),2==ja&&ea.drawImage(Ib.Ma(),r,r,F[0],F[1],ka,Ub,F[0],F[1]),this.i[wh]=Ib)}else for(Pd in wd=m.ma(wd)/S,Qg){Ib=Qg[Pd];wh=Bf(m,Ib.b,cb);ka=(wh[0]-ze[0])/M;Ub=(ze[1]-wh[3])/M;var zt=wd*F[0];var mj=wd*F[1];ja=Ib.state;4!=ja&&ec||ea.clearRect(ka,Ub,zt,mj);2==ja&&ea.drawImage(Ib.Ma(),r,r,F[0],F[1],ka,Ub,zt,mj);Ib=Xe(m,wh,x,wa);ja=Math.max(Ib.b,Z.b);Ub=Math.min(Ib.d,Z.d);ka=Math.max(Ib.c,Z.c);for(Ib=Math.min(Ib.a,Z.a);ja<=Ub;++ja)for(mj=ka;mj<=Ib;++mj)wh=(mj-Z.c)*P+(ja-Z.b),
592this.i[wh]=void 0}Fm(a.usedTiles,h,x,b);Hm(a,h,m,c,e,O,x,g.a());Em(a,h);Dg(a,h);Ae(this.l,c*a.size[0]/2,c*a.size[1]/2,c*M/d.resolution,c*M/d.resolution,d.rotation,(ze[0]-Y[0])/M,(Y[1]-ze[1])/M);this.e=null;return!0};ue.prototype.dc=function(a,b,c,d){if(null!==this.g&&(null===this.e&&(this.e=fd(),mi(this.l,this.e)),a=tq(a,this.e),0<this.g.getImageData(a[0],a[1],1,1).data[3]))return c.call(d,this.a)};I(ve,ie);ve.prototype.o=function(a,b,c){var d=a.extent,e=a.focus,g=a.pixelRatio,h=a.skippedFeatureUids,
593m=a.viewState,r=m.projection;m=m.rotation;var x=r.G(),F=this.a.da(),M=ml(this,a,0);Zj(this,"precompose",c,a,M);var S=this.c;if(null!==S&&!S.la()){var Y;Jf(this.a,"render")?(this.e.canvas.width=c.canvas.width,this.e.canvas.height=c.canvas.height,Y=this.e):Y=c;var O=Y.globalAlpha;Y.globalAlpha=b.opacity;b={};e=e[0];if(F.H&&r.c&&!qe(x,d)){r=x[0];F=x[2];lh(S,Y,g,M,m,r<=e&&e<=F?h:b);for(var P=d[0],Z=la(x),ca=0,ea;P<x[0];)--ca,ea=Z*ca,M=ml(this,a,ea),lh(S,Y,g,M,m,r+ea<=e&&e<=F+ea?h:b),P+=Z;ca=0;for(P=d[2];P>
594x[2];)++ca,ea=Z*ca,M=ml(this,a,ea),lh(S,Y,g,M,m,r+ea<=e&&e<=F+ea?h:b),P-=Z}else lh(S,Y,g,M,m,h);Y!=c&&(Zj(this,"render",Y,a,M),c.drawImage(Y.canvas,0,0));Y.globalAlpha=O}Zj(this,"postcompose",c,a,M)};ve.prototype.Pa=function(a,b,c,d){if(null!==this.c){var e=this.a,g={};return this.c.c(a,b.viewState.resolution,b.viewState.rotation,b.skippedFeatureUids,function(h){var m=C(h).toString();if(!(m in g))return g[m]=!0,c.call(d,h,e)})}};ve.prototype.l=function(){gl(this)};ve.prototype.ff=function(a){function b(O){var P;
595f(O.c)?P=O.c.call(O,x):f(c.a)&&(P=(0,c.a)(O,x));if(null!=P){if(null!=P){var Z,ca=!1;var ea=0;for(Z=P.length;ea<Z;++ea)ca=ck(S,O,P[ea],bk(x,F),this.l,this)||ca;O=ca}else O=!1;this.d=this.d||O}}var c=this.a,d=c.da();Ei(a.attributions,d.d);Dg(a,d);var e=a.viewHints[0],g=a.viewHints[1],h=c.o,m=c.n;if(!this.d&&!h&&e||!m&&g)return!0;var r=a.extent;e=a.viewState;g=e.projection;var x=e.resolution,F=a.pixelRatio;h=c.b;var M=c.c;m=c.get("renderOrder");f(m)||(m=un);r=yf(r,M*x);M=e.projection.G();d.H&&e.projection.c&&
596!qe(M,a.extent)&&(r[0]=M[0],r[2]=M[2]);if(!this.d&&this.i==x&&this.q==h&&this.g==m&&qe(this.f,r))return!0;qf(this.c);this.c=null;this.d=!1;var S=new kh(.5*x/F,r,x,c.c);d.ac(r,x,g);if(null===m)d.Ab(r,x,b,this);else{var Y=[];d.Ab(r,x,function(O){Y.push(O)},this);Bd(Y,m);Oa(Y,b,this)}Yj(S);this.i=x;this.q=h;this.g=m;this.f=r;this.c=S;return!0};I(hk,mg);hk.prototype.Ke=function(a){return a instanceof Va?new Ze(a):a instanceof Ea?new ue(a):a instanceof Ga?new ve(a):null};hk.prototype.M=function(){return"canvas"};
597hk.prototype.ue=function(a){if(null===a)this.a&&(ge(this.b,!1),this.a=!1);else{var b=this.d,c=a.size[0]*a.pixelRatio,d=a.size[1]*a.pixelRatio;this.b.width!=c||this.b.height!=d?(this.b.width=c,this.b.height=d):b.clearRect(0,0,this.b.width,this.b.height);Im(a);dr(this,"precompose",a);c=a.layerStatesArray;d=a.viewState.resolution;var e;var g=0;for(e=c.length;g<e;++g){var h=c[g];var m=h.layer;m=Eg(this,m);gh(h,d)&&"ready"==h.i&&m.ff(a,h)&&m.o(a,h,b)}dr(this,"postcompose",a);this.a||(ge(this.b,!0),this.a=
598!0);Km(this,a);a.postRenderFunctions.push(Jm)}};I($d,he);$d.prototype.e=A;$d.prototype.i=A;I(Be,$d);Be.prototype.Pa=function(a,b,c,d){var e=this.a;return e.da().ge(a,b.viewState.resolution,b.viewState.rotation,b.skippedFeatureUids,function(g){return c.call(d,g,e)})};Be.prototype.e=function(){Q(this.target);this.c=null};Be.prototype.f=function(a,b){var c=a.viewState,d=c.center,e=c.resolution,g=c.rotation,h=this.c,m=this.a.da(),r=a.viewHints,x=a.extent;f(b.extent)&&(x=aa(x,b.extent));r[0]||r[1]||Ja(x)||
599(c=c.projection,r=m.f,null===r||(c=r),x=m.Cc(x,e,a.pixelRatio,c),null===x||Dm(this,x)&&(h=x));null!==h&&(c=h.G(),r=h.resolution,x=fd(),Ae(x,a.size[0]/2,a.size[1]/2,r/e,r/e,g,(c[0]-d[0])/r,(d[1]-c[3])/r),h!=this.c&&(d=h.b(this),d.style.maxWidth="none",d.style.position="absolute",Q(this.target),this.target.appendChild(d),this.c=h),Cm(x,this.d)||(om(this.target,x),Dh(this.d,x)),Ei(a.attributions,h.f),Dg(a,m));return!0};I(Ne,$d);Ne.prototype.e=function(){Q(this.target);this.g=0};
599Ne.prototype.f=function(a,
600b){if(!b.visible)return this.d&&(ge(this.target,!1),this.d=!1),!0;var c=a.pixelRatio,d=a.viewState,e=d.projection,g=this.a,h=g.da(),m=Cg(h,e),r=h.Cd(),x=Kh(m,d.resolution),F=m.ma(x),M=d.center,S;F==d.resolution?(M=Gm(M,F,a.size),S=L(M,F,d.rotation,a.size)):S=a.extent;f(b.extent)&&(S=aa(S,b.extent));F=Vk(m,S,F);var Y={};Y[x]={};var O=this.yd(h,Y),P=g.c(),Z=Yd(),ca=new jg(0,0,0,0),ea,ja;for(ea=F.b;ea<=F.d;++ea)for(ja=F.c;ja<=F.a;++ja){var ka=h.Vb(x,ea,ja,c,e);var va=ka.state;2==va?Y[x][ig(ka.b)]=ka:
6014==va||3==va&&!P||(va=m.Ad(ka.b,O,null,ca,Z),va||(ka=m.Ld(ka.b,ca,Z),null===ka||O(x+1,ka)))}if(this.g!=h.b){for(na in this.c)P=this.c[+na],T(P.target);this.c={};this.g=h.b}Z=Jc(Fd(Y),Number);Bd(Z);O={};ea=0;for(ja=Z.length;ea<ja;++ea){var na=Z[ea];na in this.c?P=this.c[na]:(P=m.cd(M,na),P=new wv(m,P),O[na]=!0,this.c[na]=P);na=Y[na];for(Pd in na){ka=P;va=na[Pd];var Ia=r,cb=va.b,wa=cb[0],zb=cb[1],Ub=cb[2];cb=ig(cb);if(!(cb in ka.a)){wa=Xd(ka.d.na(wa),ka.i);var Ib=va.Ma(ka),ec=Ib.style;ec.maxWidth="none";
602var ze=void 0,wd=void 0;0<Ia?(ze=Kd("DIV"),wd=ze.style,wd.overflow="hidden",wd.width=wa[0]+"px",wd.height=wa[1]+"px",ec.position="absolute",ec.left=-Ia+"px",ec.top=-Ia+"px",ec.width=wa[0]+2*Ia+"px",ec.height=wa[1]+2*Ia+"px",ze.appendChild(Ib)):(ec.width=wa[0]+"px",ec.height=wa[1]+"px",ze=Ib,wd=ec);wd.position="absolute";wd.left=(zb-ka.c[1])*wa[0]+"px";wd.top=(ka.c[2]-Ub)*wa[1]+"px";null===ka.b&&(ka.b=document.createDocumentFragment());ka.b.appendChild(ze);ka.a[cb]=va}}null!==P.b&&(P.target.appendChild(P.b),
603P.b=null)}r=Jc(Fd(this.c),Number);Bd(r);ea=fd();var Pd=0;for(Z=r.length;Pd<Z;++Pd)if(na=r[Pd],P=this.c[na],na in Y)if(ka=P.g,ja=P.f,Ae(ea,a.size[0]/2,a.size[1]/2,ka/d.resolution,ka/d.resolution,d.rotation,(ja[0]-M[0])/ka,(M[1]-ja[1])/ka),ja=P,ka=ea,Cm(ka,ja.e)||(om(ja.target,ka),Dh(ja.e,ka)),na in O){for(--na;0<=na;--na)if(na in this.c){ja=this.c[na].target;ja.parentNode&&ja.parentNode.insertBefore(P.target,ja.nextSibling);break}0>na&&W(this.target,P.target,0)}else{if(!a.viewHints[0]&&!a.viewHints[1]){va=
604Xe(P.d,S,P.c[0],ca);na=[];ka=ja=void 0;for(ka in P.a)ja=P.a[ka],va.contains(ja.b)||na.push(ja);va=0;for(Ia=na.length;va<Ia;++va)ja=na[va],ka=ig(ja.b),T(ja.Ma(P)),delete P.a[ka]}}else T(P.target),delete this.c[na];b.opacity!=this.q&&(this.q=this.target.style.opacity=b.opacity);b.visible&&!this.d&&(ge(this.target,!0),this.d=!0);Fm(a.usedTiles,h,x,F);Hm(a,h,m,c,e,S,x,g.a());Em(a,h);Dg(a,h);return!0};I(we,$d);we.prototype.i=function(a,b){var c=a.viewState,d=c.center,e=c.rotation,g=c.resolution;c=a.pixelRatio;
605var h=a.size[0],m=a.size[1],r=h*c,x=m*c;d=Ae(this.H,c*h/2,c*m/2,c/g,-c/g,-e,-d[0],-d[1]);g=this.g;g.canvas.width=r;g.canvas.height=x;h=Ae(this.p,0,0,1/c,1/c,0,-(r-h)/2*c,-(x-m)/2*c);om(g.canvas,h);Fn(this,"precompose",a,d);h=this.c;null===h||h.la()||(g.globalAlpha=b.opacity,lh(h,g,c,d,e,a.skippedFeatureUids),Fn(this,"render",a,d));Fn(this,"postcompose",a,d)};we.prototype.Pa=function(a,b,c,d){if(null!==this.c){var e=this.a,g={};return this.c.c(a,b.viewState.resolution,b.viewState.rotation,b.skippedFeatureUids,
606function(h){var m=C(h).toString();if(!(m in g))return g[m]=!0,c.call(d,h,e)})}};we.prototype.J=function(){gl(this)};we.prototype.f=function(a){function b(S){var Y;f(S.c)?Y=S.c.call(S,r):f(c.a)&&(Y=(0,c.a)(S,r));if(null!=Y){if(null!=Y){var O,P=!1;var Z=0;for(O=Y.length;Z<O;++Z)P=ck(F,S,Y[Z],bk(r,x),this.J,this)||P;S=P}else S=!1;this.d=this.d||S}}var c=this.a,d=c.da();Ei(a.attributions,d.d);Dg(a,d);var e=a.viewHints[0],g=a.viewHints[1],h=c.o,m=c.n;if(!this.d&&!h&&e||!m&&g)return!0;g=a.extent;h=a.viewState;
607e=h.projection;var r=h.resolution,x=a.pixelRatio;a=c.b;m=c.c;h=c.get("renderOrder");f(h)||(h=un);g=yf(g,m*r);if(!this.d&&this.o==r&&this.n==a&&this.l==h&&qe(this.q,g))return!0;qf(this.c);this.c=null;this.d=!1;var F=new kh(.5*r/x,g,r,c.c);d.ac(g,r,e);if(null===h)d.Ab(g,r,b,this);else{var M=[];d.Ab(g,r,function(S){M.push(S)},this);Bd(M,h);Oa(M,b,this)}Yj(F);this.o=r;this.n=a;this.l=h;this.q=g;this.c=F;return!0};I(Uh,mg);Uh.prototype.O=function(){T(this.b);Uh.S.O.call(this)};
607Uh.prototype.Ke=function(a){if(a instanceof
608Va)a=new Be(a);else if(a instanceof Ea)a=new Ne(a);else if(a instanceof Ga)a=new we(a);else return null;return a};Uh.prototype.M=function(){return"dom"};Uh.prototype.ue=function(a){if(null===a)this.d&&(ge(this.b,!1),this.d=!1);else{var b=function(x,F){W(this.b,x,F)};var c=this.g;if(Jf(c,"precompose")||Jf(c,"postcompose")){c=this.a.canvas;var d=a.pixelRatio;c.width=a.size[0]*d;c.height=a.size[1]*d}er(this,"precompose",a);c=a.layerStatesArray;d=a.viewState.resolution;var e;var g=0;for(e=c.length;g<
609e;++g){var h=c[g];var m=h.layer;m=Eg(this,m);b.call(this,m.target,g);gh(h,d)&&"ready"==h.i?m.f(a,h)&&m.i(a,h):m.e()}b=a.layerStates;for(var r in this.f)r in b||(m=this.f[r],T(m.target));this.d||(ge(this.b,!0),this.d=!0);Im(a);Km(this,a);a.postRenderFunctions.push(Jm);er(this,"postcompose",a)}};I(Vh,fr);Vh.prototype.M=function(){return 35632};I(Wh,fr);Wh.prototype.M=function(){return 35633};I(Gn,Vh);q(Gn);I(Hn,Wh);q(Hn);I(In,Vh);q(In);I(Jn,Wh);q(Jn);l=Gg.prototype;l.O=function(){var a=this.b;a.isContextLost()||
610(ob(this.a,function(b){a.deleteBuffer(b.buffer)}),ob(this.e,function(b){a.deleteProgram(b)}),ob(this.f,function(b){a.deleteShader(b)}),a.deleteFramebuffer(this.d),a.deleteRenderbuffer(this.i),a.deleteTexture(this.q))};l.Xm=function(){return this.b};l.Te=function(){if(null===this.d){var a=this.b,b=a.createFramebuffer();a.bindFramebuffer(a.FRAMEBUFFER,b);var c=ir(a,1,1),d=a.createRenderbuffer();a.bindRenderbuffer(a.RENDERBUFFER,d);a.renderbufferStorage(a.RENDERBUFFER,a.DEPTH_COMPONENT16,1,1);a.framebufferTexture2D(a.FRAMEBUFFER,
611a.COLOR_ATTACHMENT0,a.TEXTURE_2D,c,0);a.framebufferRenderbuffer(a.FRAMEBUFFER,a.DEPTH_ATTACHMENT,a.RENDERBUFFER,d);a.bindTexture(a.TEXTURE_2D,null);a.bindRenderbuffer(a.RENDERBUFFER,null);a.bindFramebuffer(a.FRAMEBUFFER,null);this.d=b;this.q=c;this.i=d}return this.d};l.Ym=function(){bg(this.a);bg(this.f);bg(this.e);this.i=this.q=this.d=this.g=null};l.Zm=function(){};l.oe=function(a){if(a==this.g)return!1;this.b.useProgram(a);this.g=a;return!0};I(ik,il);ik.prototype.jb=function(a,b){this.c.push(this.a.length);
612this.l.push(b);b=a.j;kr(this,b,b.length,a.s)};ik.prototype.kb=function(a,b){this.c.push(this.a.length);this.l.push(b);b=a.j;kr(this,b,b.length,a.s)};ik.prototype.Za=function(a){var b=a.mb(),c=a.Lb(1),d=a.Dd(),e=a.he(1),g=a.U,h=a.rb(),m=a.V,r=a.q,x=a.Xa();a=a.l;var F;0===this.e.length?this.e.push(c):(F=this.e[this.e.length-1],C(F)!=C(c)&&(this.U.push(this.a.length),this.e.push(c)));0===this.d.length?this.d.push(e):(F=this.d[this.d.length-1],C(F)!=C(e)&&(this.f.push(this.a.length),this.d.push(e)));
613this.V=b[0];this.n=b[1];this.J=x[1];this.L=d[1];this.N=d[0];this.T=g;this.sa=h[0];this.X=h[1];this.oa=r;this.ba=m;this.Fa=a;this.Ga=x[0]};Xh.prototype.b=function(a,b){a=this.a[b];f(a)||(a=new Ix[b](this.f,this.e),this.a[b]=a);return a};Xh.prototype.la=function(){return le(this.a)};Xh.prototype.c=function(a,b,c,d,e,g,h,m,r,x,F,M,S,Y){var O=b.b;O.bindFramebuffer(O.FRAMEBUFFER,b.Te());var P;f(this.d)&&(P=yf(oi(a),d*this.d));return or(this,b,a,d,e,m,r,x,F,M,S,function(Z){var ca=new Uint8Array(4);O.readPixels(0,
6140,1,1,O.RGBA,O.UNSIGNED_BYTE,ca);if(0<ca[3]&&(Z=Y(Z)))return Z},!0,P)};var Ix={Image:ik},Av=[1,1];I(Hc,il);l=Hc.prototype;l.tc=function(a,b){a=a.toString();var c=this.b[a];f(c)?c.push(b):this.b[a]=[b]};l.uc=function(){};l.Le=function(a,b){var c=(0,b.d)(a);null!=c&&ta(this.d,c.G())&&(a=b.b,f(a)||(a=0),this.tc(a,function(d){d.Aa(b.e,b.c);d.Za(b.f);d.Ba(b.a);var e=At[c.M()];e&&e.call(d,c,null)}))};l.zd=function(a,b){a=a.d;var c;var d=0;for(c=a.length;d<c;++d){var e=a[d],g=At[e.M()];g&&g.call(this,e,
615b)}};l.kb=function(a,b){var c=this.a,d=(new Xh(1,this.d)).b(0,"Image");d.Za(this.c);d.kb(a,b);Nn(d,c);jk(d,this.a,this.e,this.f,this.g,this.i,1,0,1,0,1,{},void 0,!1);Mn(d,c)()};l.zb=function(){};l.vc=function(){};l.jb=function(a,b){var c=this.a,d=(new Xh(1,this.d)).b(0,"Image");d.Za(this.c);d.jb(a,b);Nn(d,c);jk(d,this.a,this.e,this.f,this.g,this.i,1,0,1,0,1,{},void 0,!1);Mn(d,c)()};l.wc=function(){};l.Rb=function(){};l.lb=function(){};l.Aa=function(){};l.Za=function(a){this.c=a};l.Ba=function(){};
616var At={Point:Hc.prototype.kb,MultiPoint:Hc.prototype.jb,GeometryCollection:Hc.prototype.zd};I(Qn,Vh);q(Qn);I(Rn,Wh);q(Rn);I(Sn,Vh);q(Sn);I(Tn,Wh);q(Tn);I(ae,he);ae.prototype.Lg=function(a,b,c){pr(this,"precompose",c,a);Xi(c,34962,this.N);var d=c.b,e=b.brightness||1!=b.contrast||b.hue||1!=b.saturation,g,h;e?(g=Qn.Ia(),h=Rn.Ia()):(g=Sn.Ia(),h=Tn.Ia());g=Ln(c,g,h);e?null===this.l?this.l=h=new Bv(d,g):h=this.l:null===this.o?this.o=h=new Cv(d,g):h=this.o;c.oe(g)&&(d.enableVertexAttribArray(h.b),d.vertexAttribPointer(h.b,
6172,5126,!1,16,0),d.enableVertexAttribArray(h.a),d.vertexAttribPointer(h.a,2,5126,!1,16,8),d.uniform1i(h.e,0));d.uniformMatrix4fv(h.f,!1,this.q);d.uniformMatrix4fv(h.d,!1,this.n);e&&d.uniformMatrix4fv(h.g,!1,Gj(this.T,b.brightness,b.contrast,b.hue,b.saturation));d.uniform1f(h.c,b.opacity);d.bindTexture(3553,this.Qa);d.drawArrays(5,0,4);pr(this,"postcompose",c,a)};ae.prototype.gf=function(){this.e=this.Qa=null;this.f=void 0};I(xe,ae);xe.prototype.Pa=function(a,b,c,d){var e=this.a;return e.da().ge(a,
618b.viewState.resolution,b.viewState.rotation,b.skippedFeatureUids,function(g){return c.call(d,g,e)})};xe.prototype.hf=function(a,b){var c=this.c.e,d=a.pixelRatio,e=a.viewState,g=e.center,h=e.resolution,m=e.rotation,r=this.d,x=this.Qa,F=this.a.da(),M=a.viewHints,S=a.extent;f(b.extent)&&(S=aa(S,b.extent));M[0]||M[1]||Ja(S)||(e=e.projection,M=F.f,null===M||(e=M),S=F.Cc(S,h,d,e),null!==S&&Dm(this,S)&&(r=S,x=Ev(this,S),null===this.Qa||a.postRenderFunctions.push(V(function(Y,O){Y.isContextLost()||Y.deleteTexture(O)},
619c,this.Qa))));null!==r&&(c=this.c.d.l,Fv(this,c.width,c.height,d,g,h,m,r.G()),this.i=null,d=this.q,wf(d),Qf(d,1,-1),xf(d,0,-1),this.d=r,this.Qa=x,Ei(a.attributions,r.f),Dg(a,F));return!0};xe.prototype.ee=function(a,b){a=this.Pa(a,b,Le,this);return f(a)};xe.prototype.dc=function(a,b,c,d){if(null!==this.d&&null!==this.d.b())if(this.a.da()instanceof Pb){if(a=a.slice(),Cf(b.pixelToCoordinateMatrix,a,a),this.Pa(a,b,Le,this))return c.call(d,this.a)}else{var e=[this.d.b().width,this.d.b().height];if(null===
620this.i){var g=b.size;b=fd();wf(b);xf(b,-1,-1);Qf(b,2/g[0],2/g[1]);xf(b,0,g[1]);Qf(b,1,-1);g=fd();mi(this.n,g);var h=fd();wf(h);xf(h,0,e[1]);Qf(h,1,-1);Qf(h,e[0]/2,e[1]/2);xf(h,1,1);var m=fd();zg(h,g,m);zg(m,b,m);this.i=m}b=[0,0];Cf(this.i,a,b);if(!(0>b[0]||b[0]>e[0]||0>b[1]||b[1]>e[1])&&(null===this.g&&(this.g=se(1,1)),this.g.clearRect(0,0,1,1),this.g.drawImage(this.d.b(),b[0],b[1],1,1,0,0,1,1),0<this.g.getImageData(0,0,1,1).data[3]))return c.call(d,this.a)}};I(Un,Vh);q(Un);I(Vn,Wh);q(Vn);I(Ce,ae);
621l=Ce.prototype;l.O=function(){Kn(this.c.d,this.H);Ce.S.O.call(this)};l.yd=function(a,b){var c=this.c;return function(d,e){return op(a,d,e,function(g){var h=lg(c.a,g.gb()
621);h&&(b[d]||(b[d]={}),b[d][g.b.toString()]=g);return h})}};l.gf=function(){Ce.S.gf.call(this);this.d=null};l.hf=function(a,b,c){var d=this.c,e=c.b,g=a.viewState,h=g.projection,m=this.a,r=m.da(),x=Cg(r,h),F=Kh(x,g.resolution),M=x.ma(F),S=r.Xb(F,a.pixelRatio,h),Y=S[0]/Xd(x.na(F),this.L)[0],O=M/Y,P=r.Cd(),Z=g.center,ca;M==g.resolution?
622(Z=Gm(Z,M,a.size),ca=L(Z,M,g.rotation,a.size)):ca=a.extent;M=Vk(x,ca,M);if(null!==this.g&&$l(this.g,M)&&this.i==r.b)O=this.p;else{var ea=[ef(M),M.a-M.c+1];ea=Math.max(ea[0]*S[0],ea[1]*S[1]);var ja=Math.pow(2,Math.ceil(Math.log(ea)/Math.LN2));ea=O*ja;var ka=x.Mb(F),va=ka[0]+M.b*S[0]*O;O=ka[1]+M.c*S[1]*O;O=[va,O,va+ea,O+ea];Dv(this,a,ja);e.viewport(0,0,ja,ja);e.clearColor(0,0,0,0);e.clear(16384);e.disable(3042);ja=Ln(c,this.J,this.X);c.oe(ja);null===this.d&&(this.d=new Gv(e,ja));Xi(c,34962,this.H);
623e.enableVertexAttribArray(this.d.b);e.vertexAttribPointer(this.d.b,2,5126,!1,16,0);e.enableVertexAttribArray(this.d.a);e.vertexAttribPointer(this.d.a,2,5126,!1,16,8);e.uniform1i(this.d.c,0);c={};c[F]={};var na=this.yd(r,c),Ia=m.c();ja=!0;va=Yd();var cb=new jg(0,0,0,0),wa,zb,Ub;for(zb=M.b;zb<=M.d;++zb)for(Ub=M.c;Ub<=M.a;++Ub)if(ka=r.Vb(F,zb,Ub,Y,h),!f(b.extent)||(wa=Bf(x,ka.b,va),ta(wa,b.extent))){wa=ka.state;if(2==wa){if(lg(d.a,ka.gb())){c[F][ig(ka.b)]=ka;continue}}else if(4==wa||3==wa&&!Ia)continue;
624ja=!1;(wa=x.Ad(ka.b,na,null,cb,va))||(ka=x.Ld(ka.b,cb,va),null===ka||na(F+1,ka))}b=Jc(Fd(c),Number);Bd(b);na=new Float32Array(4);var Ib,ec;Ia=0;for(cb=b.length;Ia<cb;
624++Ia)for(Ib in ec=c[b[Ia]],ec){ka=ec[Ib];wa=Bf(x,ka.b,va);zb=2*(wa[2]-wa[0])/ea;Ub=2*(wa[3]-wa[1])/ea;var ze=2*(wa[0]-O[0])/ea-1;wa=2*(wa[1]-O[1])/ea-1;Ik(na,zb,Ub,ze,wa);e.uniform4fv(this.d.d,na);qr(d,ka,S,P*Y);e.drawArrays(5,0,4)}ja?(this.g=M,this.p=O,this.i=r.b):(this.p=this.g=null,this.i=-1,a.animate=!0)}Fm(a.usedTiles,r,F,M);var wd=
625d.q;Hm(a,r,x,Y,h,ca,F,m.a(),function(Pd){var Qg;(Qg=2!=Pd.state||lg(d.a,Pd.gb()))||(Qg=Pd.gb()in wd.c);Qg||Lp(wd,[Pd,kp(x,Pd.b),x.ma(Pd.b[0]),S,P*Y])},this);Em(a,r);Dg(a,r);e=this.q;wf(e);xf(e,(Z[0]-O[0])/(O[2]-O[0]),(Z[1]-O[1])/(O[3]-O[1]));0!==g.rotation&&ni(e,g.rotation);Qf(e,a.size[0]*g.resolution/(O[2]-O[0]),a.size[1]*g.resolution/(O[3]-O[1]));xf(e,-.5,-.5);return!0};l.dc=function(a,b,c,d){if(null!==this.e){var e=[0,0];Cf(this.q,[a[0]/b.size[0],(b.size[1]-a[1])/b.size[1]],e);a=[e[0]*this.f,e[1]*
626this.f];b=this.c.d.b;b.bindFramebuffer(b.FRAMEBUFFER,this.e);e=new Uint8Array(4);b.readPixels(a[0],a[1],1,1,b.RGBA,b.UNSIGNED_BYTE,e);if(0<e[3])return c.call(d,this.a)}};I(Oe,ae);l=Oe.prototype;l.Lg=function(a,b,c){this.g=b;var d=a.viewState,e=this.d;if(null!==e&&!e.la()){var g=d.center,h=d.resolution;d=d.rotation;var m=a.size,r=b.opacity,x=b.brightness,F=b.contrast,M=b.hue;b=b.saturation;a=a.skippedFeatureUids;var S;var Y=0;for(S=pg.length;Y<S;++Y){var O=e.a[pg[Y]];f(O)&&jk(O,c,g,h,d,m,r,x,F,M,b,
627a,void 0,!1)}}};l.O=function(){var a=this.d;null!==a&&(On(a,this.c.d)(),this.d=null);Oe.S.O.call(this)};l.Pa=function(a,b,c,d){if(null!==this.d&&null!==this.g){var e=b.viewState,g=this.a,h=this.g,m={};return this.d.c(a,this.c.d,e.center,e.resolution,e.rotation,b.size,b.pixelRatio,h.opacity,h.brightness,h.contrast,h.hue,h.saturation,b.skippedFeatureUids,function(r){var x=C(r).toString();if(!(x in m))return m[x]=!0,c.call(d,r,g)})}};l.ee=function(a,b){if(null===this.d||null===this.g)return!1;var c=
628b.viewState,d=this.g;return Pn(this.d,a,this.c.d,c.resolution,c.rotation,d.opacity,d.brightness,d.contrast,d.hue,d.saturation,b.skippedFeatureUids)};l.dc=function(a,b,c,d){a=a.slice();Cf(b.pixelToCoordinateMatrix,a,a);if(this.ee(a,b))return c.call(d,this.a)};l.Rl=function(){gl(this)};l.hf=function(a,b,c){function d(O){var P;f(O.c)?P=O.c.call(O,x):f(e.a)&&(P=(0,e.a)(O,x));if(null!=P){if(null!=P){var Z,ca=!1;var ea=0;for(Z=P.length;ea<Z;++ea)ca=ck(S,O,P[ea],bk(x,F),this.Rl,this)||ca;O=ca}else O=!1;
629this.i=this.i||O}}var e=this.a;b=e.da();Ei(a.attributions,b.d);Dg(a,b);var g=a.viewHints[0],h=a.viewHints[1],m=e.o,r=e.n;if(!this.i&&!m&&g||!r&&h)return!0;h=a.extent;m=a.viewState;g=m.projection;var x=m.resolution,F=a.pixelRatio;m=e.b;var M=e.c;r=e.get("renderOrder");f(r)||(r=un);h=yf(h,M*x);if(!this.i&&this.J==x&&this.L==m&&this.H==r&&qe(this.p,h))return!0;null===this.d||a.postRenderFunctions.push(On(this.d,c));this.i=!1;var S=new Xh(.5*x/F,h,e.c);b.ac(h,x,g);if(null===r)b.Ab(h,x,d,this);else{var Y=
630[];b.Ab(h,x,function(O){Y.push(O)},this);Bd(Y,r);Oa(Y,d,this)}nr(S,c);this.J=x;this.L=m;this.H=r;this.p=h;this.d=S;return!0};I(xl,mg);l=xl.prototype;l.Ke=function(a){return a instanceof Va?new xe(this,a):a instanceof Ea?new Ce(this,a):a instanceof Ga?new Oe(this,a):null};l.O=function(){var a=this.e;a.isContextLost()||this.a.forEach(function(b){null===b||a.deleteTexture(b.Qa)});qf(this.d);xl.S.O.call(this)};l.Ci=function(a,b){a=this.e;for(var c;1024<this.a.Tb()-this.i;){c=this.a.b.qc;if(null===c)if(+this.a.b.Wd==
631b.index)break;else--this.i;else a.deleteTexture(c.Qa);this.a.pop()}};l.M=function(){return"webgl"};l.Pl=function(a){a.preventDefault();this.a.clear();this.i=0;ob(this.f,function(b){b.gf()})};l.Ql=function(){rr(this);this.g.render()};l.ue=function(a){var b=this.d,c=this.e;if(c.isContextLost())return!1;if(null===a)return this.l&&(ge(this.b,!1),this.l=!1),!1;this.n=a.focus;this.a.set((-a.index).toString(),null);++this.i;var d=[],e=a.layerStatesArray,g=a.viewState.resolution,h,m;var r=0;for(h=e.length;r<
632h;++r){var x=e[r];gh(x,g)&&"ready"==x.i&&(m=Eg(this,x.layer),m.hf(a,x,b)&&d.push(x))}e=a.size[0]*a.pixelRatio;g=a.size[1]*a.pixelRatio;if(this.b.width!=e||this.b.height!=g)this.b.width=e,this.b.height=g;c.bindFramebuffer(36160,null);c.clearColor(0,0,0,0);c.clear(16384);c.enable(3042);c.viewport(0,0,this.b.width,this.b.height);sr(this,"precompose",a);r=0;for(h=d.length;r<h;++r)x=d[r],m=Eg(this,x.layer),m.Lg(a,x,b);this.l||(ge(this.b,!0),this.l=!0);Im(a);1024<this.a.Tb()-this.i&&a.postRenderFunctions.push(J(this.Ci,
633this));this.q.la()||(a.postRenderFunctions.push(this.L),a.animate=!0);sr(this,"postcompose",a);Km(this,a);a.postRenderFunctions.push(Jm)};l.ef=function(a,b,c,d,e,g){var h;if(this.e.isContextLost())return!1;var m=this.d,r=b.viewState;if(null!==this.c){var x={},F=yl;if(h=this.c.c(a,m,r.center,r.resolution,r.rotation,b.size,b.pixelRatio,F.opacity,F.brightness,F.contrast,F.hue,F.saturation,{},function(S){var Y=C(S).toString();if(!(Y in x))return x[Y]=!0,c.call(d,S,null)}))return h}m=b.layerStatesArray;
634for(F=m.length-1;0<=F;--F){h=m[F];var M=h.layer;if(gh(h,r.resolution)&&e.call(g,M)&&(h=Eg(this,M).Pa(a,b,c,d)))return h}};l.Kg=function(a,b,c,d){var e=!1;if(this.e.isContextLost())return!1;var g=this.d,h=b.viewState;if(null!==this.c&&(e=yl,e=Pn(this.c,a,g,h.resolution,h.rotation,e.opacity,e.brightness,e.contrast,e.hue,e.saturation,{})))return!0;g=b.layerStatesArray;var m;for(m=g.length-1;0<=m;--m){var r=g[m],x=r.layer;if(gh(r,h.resolution)&&c.call(d,x)&&(e=Eg(this,x).ee(a,b)))return!0}return e};l.Jg=
635function(a,b,c,d,e){if(this.e.isContextLost())return!1;var g=this.d,h=b.viewState;if(null!==this.c){var m=yl;var r=this.g.ka(a);if(Pn(this.c,r,g,h.resolution,h.rotation,m.opacity,m.brightness,m.contrast,m.hue,m.saturation,{})&&(r=c.call(d,null)))return r}g=b.layerStatesArray;for(m=g.length-1;0<=m;--m){r=g[m];var x=r.layer;if(gh(r,h.resolution)&&e.call(d,x)&&(r=Eg(this,x).dc(a,b,c,d)))return r}};var yl={opacity:1,brightness:0,contrast:1,hue:0,saturation:1},Jv=["canvas","webgl","dom"];I(ya,ub);l=ya.prototype;
636l.si=function(a){this.e.push(a)};l.ti=function(a){this.d.push(a)};l.Jf=function(a){this.Ub().Bc().push(a)};l.Kf=function(a){this.f.push(a)};l.Ha=function(a){this.render();Array.prototype.push.apply(this.H,arguments)};l.O=function(){T(this.a);ya.S.O.call(this)};l.Ne=function(a,b,c,d,e){if(null!==this.c)return a=this.ka(a),this.i.ef(a,this.c,b,f(c)?c:null,f(d)?d:Le,f(e)?e:null)};l.al=function(a,b,c,d,e){if(null!==this.c)return this.i.Jg(a,this.c,b,f(c)?c:null,f(d)?d:Le,f(e)?e:null)};l.ok=function(a,
637b,c){if(null===this.c)return!1;a=this.ka(a);return this.i.Kg(a,this.c,f(b)?b:Le,f(c)?c:null)};l.Ui=function(a){return this.ka(this.Bd(a))};
637l.Bd=function(a){if(f(a.changedTouches)){var b=a.changedTouches[0];a=Ij(this.a);return[b.clientX-a.x,b.clientY-a.y]}b=this.a;a=Ij(a);b=Ij(b);b=new Ve(a.x-b.x,a.y-b.y);return[b.x,b.y]};l.df=function(){return this.get("target")};l.bd=function(){var a=this.df();return f(a)?Hj(a):null};l.ka=function(a){var b=this.c;if(null===b)return null;a=a.slice();return Cf(b.pixelToCoordinateMatrix,
638a,a)};l.Si=function(){return this.e};l.oj=function(){return this.f};l.bj=function(){return this.d};l.Ub=function(){return this.get("layergroup")};l.vg=function(){return this.Ub().Bc()};l.ta=function(a){var b=this.c;if(null===b)return null;a=a.slice(0,2);return Cf(b.coordinateToPixelMatrix,a,a)};l.xa=function(){return this.get("size")};l.R=function(){return this.get("view")};l.Bj=function(){return this.a};l.zj=function(a,b,c,d){var e=this.c;if(!(null!==e&&b in e.wantedTiles&&e.wantedTiles[b][ig(a.b)]))return Infinity;
639a=c[0]-e.focus[0];c=c[1]-e.focus[1];return 65536*Math.log(d)+Math.sqrt(a*a+c*c)/d};l.dg=function(a,b){a=new Dd(b||a.type,this,a);this.eg(a)};l.eg=function(a){if(null!==this.c){this.L=a.coordinate;a.frameState=this.c;var b=this.d.a,c;if(!1!==this.dispatchEvent(a))for(c=b.length-1;0<=c;c--){var d=b[c];if(d.c()&&!d.handleEvent(a))break}}};l.gk=function(){var a=this.c,b=this.Fa;if(!b.la()){var c=16,d=c,e=0;null!==a&&(e=a.viewHints,e[0]&&(c=this.wb?8:0,d=2),e[1]&&(c=this.xb?8:0,d=2),e=ud(a.wantedTiles));
640c*=e;d*=e;if(b.d<c){Pp(b);c=Math.min(c-b.d,d,b.Tb());for(d=0;d<c;++d)e=Mp(b)[0],ma(e,"change",b.f,!1,b),e.load();b.d+=c}}b=this.ba;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};l.jk=function(){this.render()};l.lk=function(){var a=this.bd();mm(this.n);null===a?(T(this.a),null!==this.l&&(Hb(this.l),this.l=null)):(a.appendChild(this.a),zp(this.n,null===this.T?a:this.T),null===this.l&&(this.l=ma(this.Ga,"resize",this.Kc,!1,this)));this.Kc()};l.bl=function(){this.render()};l.nk=function(){this.render()};
641l.mk=function(){null!==this.J&&(Hb(this.J),this.J=null);var a=this.R();null!==a&&(this.J=ma(a,"propertychange",this.nk,!1,this));this.render()};l.Rj=function(){this.render()};l.Sj=function(){this.render()};l.Qj=function(){if(null!==this.g){for(var a=this.g.length,b=0;b<a;++b)Hb(this.g[b]);this.g=null}a=this.Ub();null!=a&&(this.g=[ma(a,"propertychange",this.Sj,!1,this),ma(a,"change",this.Rj,!1,this)]);this.render()};l.Rn=function(){var a=this.o;im(a);a.Pf()};l.render=function(){null!=this.o.$||this.o.start()};
642l.Ln=function(a){if(f(this.e.remove(a)))return a};l.Mn=function(a){var b;f(this.d.remove(a))&&(b=a);return b};l.Nn=function(a){return this.Ub().Bc().remove(a)};l.On=function(a){if(f(this.f.remove(a)))return a};l.Qn=function(a){var b,c=this.xa(),d=this.R(),e=null;if(f(c)&&0<c[0]&&0<c[1]&&null!==d&&Hh(d)){e=d.c.slice();var g=this.Ub().Ue(),h={};var m=0;for(b=g.length;m<b;++m)h[C(g[m].layer)]=g[m];var r=bh(d);e={animate:!1,attributions:{},coordinateToPixelMatrix:this.Ra,extent:null,focus:null===this.L?
643r.center:this.L,index:this.vb++,layerStates:h,layerStatesArray:g,logos:Gd(this.sc),pixelRatio:this.Nc,pixelToCoordinateMatrix:this.Ee,postRenderFunctions:[],size:c,skippedFeatureUids:this.N,tileQueue:this.Fa,time:a,usedTiles:{},viewState:r,viewHints:e,wantedTiles:{}}}if(null!==e){a=this.H;m=c=0;for(b=a.length;m<b;++m)d=a[m],d(this,e)&&(a[c++]=d);a.length=c;e.extent=L(r.center,r.resolution,r.rotation,e.size)}this.c=e;this.i.ue(e);null!==e&&(e.animate&&this.render(),Array.prototype.push.apply(this.ba,
644e.postRenderFunctions),0!==this.H.length||e.viewHints[0]||e.viewHints[1]||Gh(e.extent,this.oa)||(this.dispatchEvent(new Bg("moveend",this,e)),zj(e.extent,this.oa)));this.dispatchEvent(new Bg("postrender",this,e));Yk(this.gk,this)};l.zh=function(a){this.set("layergroup",a)};l.vf=function(a){this.set("size",a)};l.cl=function(a){this.set("target",a)};l.jo=function(a){this.set("view",a)};l.Eh=function(a){a=C(a).toString();this.N[a]=!0;this.render()};l.Kc=function(){var a=this.bd();if(null===a)this.vf(void 0);
645else{var b=Da(a),c=jc&&a.currentStyle;c&&kb(Fc(b))&&"auto"!=c.width&&"auto"!=c.height&&!c.boxSizing?(b=Rk(a,c.width,"width","pixelWidth"),a=Rk(a,c.height,"height","pixelHeight"),a=new Af(b,a)):(c=new Af(a.offsetWidth,a.offsetHeight),b=cm(a,"padding"),a=gp(a),a=new Af(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.to
645p-b.bottom-a.bottom));this.vf([a.width,a.height])}};l.Ih=function(a){a=C(a).toString();delete this.N[a];this.render()};mq();I(Gb,ub);l=Gb.prototype;l.$d=function(){return this.get("element")};
646l.ae=function(){return this.get("map")};l.Yf=function(){return this.get("offset")};l.wg=function(){return this.get("position")};l.ag=function(){return this.get("positioning")};l.Kj=function(){Q(this.Z);var a=this.$d();null!=a&&Qk(this.Z,a)};l.Yj=function(){null!==this.c&&(T(this.Z),Hb(this.c),this.c=null);var a=this.ae();null!=a&&(this.c=ma(a,"postrender",this.render,!1,this),kk(this),a=this.i?a.p:a.X,this.g?W(a,this.Z,0):Qk(a,this.Z))};l.render=function(){kk(this)};l.ck=function(){kk(this)};l.ek=
647function(){kk(this);if(f(this.get("position"))&&this.f){var a=this.ae();if(f(a)&&null!==a.bd()){var b=wr(a.bd(),a.xa()),c=this.$d(),d=c.offsetWidth,e=c.currentStyle||window.getComputedStyle(c);d+=parseInt(e.marginLeft,10)+parseInt(e.marginRight,10);e=c.offsetHeight;var g=c.currentStyle||window.getComputedStyle(c);e+=parseInt(g.marginTop,10)+parseInt(g.marginBottom,10);var h=wr(c,[d,e]);c=this.e;qe(b,h)||(d=h[0]-b[0],e=b[2]-h[2],g=h[1]-b[1],h=b[3]-h[3],b=[0,0],0>d?b[0]=d-c:0>e&&(b[0]=Math.abs(e)+c),
6480>g?b[1]=g-c:0>h&&(b[1]=Math.abs(h)+c),0===b[0]&&0===b[1])||(c=a.R().Ca(),d=a.ta(c),b=[d[0]+b[0],d[1]+b[1]],null!==this.d&&(this.d.source=c,a.Ha(Ue(this.d))),a.R().Na(a.ka(b)))}}};l.fk=function(){kk(this)};l.wh=function(a){this.set("element",a)};l.setMap=function(a){this.set("map",a)};l.Bh=function(a){this.set("offset",a)};l.uf=function(a){this.set("position",a)};l.Ch=function(a){this.set("positioning",a)};I(dc,qb);l=dc.prototype;l.setMap=function(a){var b=this.a;a!==b&&((b&&=b.R())&&Ge(b,Uc("rotation"),
649this.Rd,!1,this),dc.S.setMap.call(this,a),a&&(this.l.push(ma(a,"propertychange",this.Zj,!1,this)),0===this.d.vg().Ib()&&this.d.zh(a.Ub()),a=a.R()))&&(ma(a,Uc("rotation"),this.Rd,!1,this),Hh(a)&&(this.d.Kc(),Wn(this)))};l.Zj=function(a){"view"===a.key&&((a=a.oldValue)&&Ge(a,Uc("rotation"),this.Rd,!1,this),a=this.a.R(),ma(a,Uc("rotation"),this.Rd,!1,this))};l.Rd=function(){this.d.R().be(this.a.R().Da())};l.ml=function(a){a.preventDefault();Xn(this)};l.ll=function(){return this.g};l.ol=function(a){this.g!==
650a&&(this.g=a,yb(this.element,"ol-uncollapsible"),!a&&this.f&&Xn(this))};l.nl=function(a){this.g&&this.f!==a&&Xn(this)};l.kl=function(){return this.f};I(nc,qb);var Kv=[1,2,5];nc.prototype.p=function(){return this.get("units")};nc.prototype.N=function(){Ar(this)};nc.prototype.J=function(a){this.set("units",a)};I(oh,Re);var Bt=[];oh.prototype.Ka=function(a,b,c,d){t(b)||(b&&(Bt[0]=b.toString()),b=Bt);for(var e=0;e<b.length;e++){var g=ma(a,b[e],c||this.handleEvent,d||!1,this.a||this);if(!g)break;this.b[g.key]=
651g}return this};oh.prototype.wf=function(a,b,c,d,e){if(t(b))for(var g=0;g<b.length;g++)this.wf(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.a||this,c=Ah(c),d=!!d,(b=Sg(a)?tj(a.ab,String(b),c,d,e):a?(a=Tg(a))?tj(a,b,c,d,e):null:null)&&(Hb(b),delete this.b[b.key]);return this};oh.prototype.O=function(){oh.S.O.call(this);Yn(this)};oh.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};I(zl,Tc);var Sl=jc||sf&&Cd("1.9.3");l=zl.prototype;l.clientX=0;l.clientY=
6520;l.screenX=0;l.screenY=0;l.Fh=0;l.Gh=0;l.yc=0;l.zc=0;l.Zb=!1;l.O=function(){zl.S.O.call(this);Ge(this.handle,["touchstart","mousedown"],this.cg,!1,this);Yn(this.a);Sl&&this.c.releaseCapture();this.handle=this.target=null};l.cg=function(a){var b="mousedown"==a.type;if(this.Zb||b&&!rj(a))this.dispatchEvent("earlycancel");else if(Zn(a),this.dispatchEvent(new Yi("start",this,a.clientX,a.clientY))){this.Zb=!0;a.preventDefault();b=this.c;var c=b.documentElement,d=!Sl;this.a.Ka(b,["touchmove","mousemove"],
653this.bk,d);this.a.Ka(b,["touchend","mouseup"],this.Od,d);Sl?(c.setCapture(!1),this.a.Ka(c,"losecapture",this.Od)):this.a.Ka(b?b.parentWindow||b.defaultView:window,"blur",this.Od);this.e&&this.a.Ka(this.e,"scroll",this.en,d);this.clientX=this.Fh=a.clientX;this.clientY=this.Gh=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.yc=this.target.offsetLeft;this.zc=this.target.offsetTop;this.d=Xb(Fc(this.c));Lf()}};l.Od=function(a){Yn(this.a);Sl&&this.c.releaseCapture();if(this.Zb){Zn(a);this.Zb=
654!1;var b=Cr(this,this.yc),c=Dr(this,this.zc);this.dispatchEvent(new Yi("end",this,a.clientX,a.clientY,0,b,c))}else this.dispatchEvent("earlycancel")};l.bk=function(a){Zn(a);var b=a.clientX-this.clientX,c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.Zb){var d=this.Fh-this.clientX,e=this.Gh-this.clientY;if(0<d*d+e*e)if(this.dispatchEvent(new Yi("start",this,a.clientX,a.clientY)))this.Zb=!0;else{this.U||this.Od(a);return}}c=
655Br(this,b,c);b=c.x;c=c.y;this.Zb&&this.dispatchEvent(new Yi("beforedrag",this,a.clientX,a.clientY,0,b,c))&&(Er(this,a,b,c),a.preventDefault())};l.en=function(a){var b=Br(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Er(this,a,b.x,b.y)};I(Yi,tc);I(dd,qb);var Fr=0;l=dd.prototype;l.setMap=function(a){dd.S.setMap.call(this,a);null===a||a.render()};l.Gj=function(a){var b=this.a,c=b.R(),d=c.ya();b.Ha(zf({resolution:d,duration:this.o,easing:Sf}));a=Hr(this,a.offsetX-this.i[0]/2,a.offsetY-this.i[1]/
6562);a=Ir(this,a);c.tb(c.constrainResolution(a))};l.Jj=function(){Ke(this.a.R(),1)};l.Hj=function(a){a=Hr(this,a.left,a.top);this.f=Ir(this,a);this.a.R().tb(this.f)};l.Ij=function(){var a=this.a,b=a.R();Ke(b,-1);a.Ha(zf({resolution:this.f,duration:this.o,easing:Sf}));a=b.constrainResolution(this.f);b.tb(a)};I(Rc,qb);Rc.prototype.f=function(a){a.preventDefault();var b=this.a;a=b.R();var c=null===this.d?a.e.G():this.d;b=b.xa();a.Me(c,b)};I(kc,ub);l=kc.prototype;l.O=function(){this.bf(!1);kc.S.O.call(this)};
657l.fn=function(a){a=a.b;if(null!=a.alpha){var b=me(a.alpha);this.set("alpha",b);"boolean"==typeof a.absolute&&a.absolute?this.set("heading",b):null!=a.webkitCompassHeading&&null!=a.webkitCompassAccuracy&&-1!=a.webkitCompassAccuracy&&this.set("heading",me(a.webkitCompassHeading))}null!=a.beta&&this.set("beta",me(a.beta));null!=a.gamma&&this.set("gamma",me(a.gamma));this.k()};l.Mi=function(){return this.get("alpha")};l.Pi=function(){return this.get("beta")};l.Yi=function(){return this.get("gamma")};
658l.Ik=function(){return this.get("heading")};l.og=function(){return this.get("tracking")};l.Jk=function(){if(qt){var a=this.og();a&&null===this.a?this.a=ma(gb,"deviceorientation",this.fn,!1,this):a||null===this.a||(Hb(this.a),this.a=null)}};l.bf=function(a){this.set("tracking",a)};I(Wa,ub);l=Wa.prototype;l.clone=function(){var a=new Wa(this.D());a.Ic(this.a);var b=this.Q();null!=b&&a.La(b.clone());b=this.e;null===b||a.cf(b);return a};l.Q=function(){return this.get(this.a)};l.aj=function(){return this.$};
659l.$i=function(){return this.a};l.Qk=function(){return this.e};l.Rk=function(){return this.c};l.Sk=function(){this.k()};l.Pd=function(){null!==this.d&&(Hb(this.d),this.d=null);var a=this.Q();null!=a&&(this.d=ma(a,"change",this.Sk,!1,this));this.k()};l.La=function(a){this.set(this.a,a)};l.cf=function(a){this.e=a;null===a?a=void 0:w(a)||(a=t(a)?a:[a],a=Kj(a));this.c=a;this.k()};l.Qb=function(a){this.$=a;this.k()};l.Ic=function(a){Ge(this,Uc(this.a),this.Pd,!1,this);this.a=a;ma(this,Uc(this.a),this.Pd,
660!1,this);this.Pd()};l=Ld.prototype;l.pg=function(a){this.b.push(a)};l.Kk=function(){return this.b};
660l.Lk=function(){return this.d};l.qg=function(){Yh(this)};l.Mj=function(a){a=a.element;this.a[C(a).toString()]=ma(a,"change",this.qg,!1,this);Yh(this)};l.Nj=function(a){a=C(a.element).toString();Hb(this.a[a]);delete this.a[a];Yh(this)};l.Ok=function(){Yh(this)};l.Pk=function(a){if(null!==this.b){var b=this.f;f(b)||(b=Xj);var c=a.b;a=a.frameState;var d=a.viewState.resolution,e=bk(d,a.pixelRatio),g,h,m,
661r;this.b.forEach(function(x){r=x.c;m=f(r)?r.call(x,d):b(x,d);if(null!=m)for(h=m.length,g=0;g<h;++g)ck(c,x,m[g],e,this.Ok,this)},this)}};l.Yd=function(a){this.b.remove(a)};l.ld=function(a){null!==this.c&&(Oa(this.c,Hb),this.c=null);null!==this.a&&(Oa(Vd(this.a),Hb),this.a=null);this.b=a;null!==a&&(this.c=[ma(a,"add",this.Mj,!1,this),ma(a,"remove",this.Nj,!1,this)],this.a={},a.forEach(function(b){this.a[C(b).toString()]=ma(b,"change",this.qg,!1,this)},this));Yh(this)};l.setMap=function(a){null!==this.e&&
662(Hb(this.e),this.e=null);Yh(this);this.d=a;null!==a&&(this.e=ma(a,"postcompose",this.Pk,!1,this),a.render())};l.rg=function(a){this.g=a;this.f=gn(a);Yh(this)};l.Mk=function(){return this.g};l.Nk=function(){return this.f};I(mk,Al);l=mk.prototype;l.M=function(){return"json"};l.sb=function(a,b){return this.Fc(Bl(a),Ef(this,a,b))};l.ja=function(a,b){return this.of(Bl(a),Ef(this,a,b))};l.Gc=function(a,b){return this.hh(Bl(a),Ef(this,a,b))};l.za=function(a){return this.nh(Bl(a))};l.qd=function(a,b){return Qo(this.Lc(a,
663b))};l.ub=function(a,b){return Qo(this.ze(a,b))};l.Mc=function(a,b){return Qo(this.Be(a,b))};I(Md,mk);var Mv={Point:function(a){return null!=a.m&&null!=a.z?new Ta([a.x,a.y,a.z,a.m],"XYZM"):null!=a.z?new Ta([a.x,a.y,a.z],"XYZ"):null!=a.m?new Ta([a.x,a.y,a.m],"XYM"):new Ta([a.x,a.y])},LineString:function(a){return new Ha(a.paths[0],Zi(a))},Polygon:function(a){return new Fa(a.rings,Zi(a))},MultiPoint:function(a){return new $a(a.points,Zi(a))},MultiLineString:function(a){return new Qa(a.paths,Zi(a))},
664MultiPolygon:function(a){return new Ra(a.rings,Zi(a))}},Nv={Point:function(a){var b=a.K();a=a.a;if("XYZ"===a)return{x:b[0],y:b[1],z:b[2]};if("XYM"===a)return{x:b[0],y:b[1],m:b[2]};if("XYZM"===a)return{x:b[0],y:b[1],z:b[2],m:b[3]};if("XY"===a)return{x:b[0],y:b[1]}},LineString:function(a){var b=nk(a);return{hasZ:b.hasZ,hasM:b.hasM,paths:[a.K()]}},Polygon:function(a){var b=nk(a);return{hasZ:b.hasZ,hasM:b.hasM,rings:a.K(!1)}},MultiPoint:function(a){var b=nk(a);return{hasZ:b.hasZ,hasM:b.hasM,points:a.K()}},
665MultiLineString:function(a){var b=nk(a);return{hasZ:b.hasZ,hasM:b.hasM,paths:a.K()}},MultiPolygon:function(a){var b=nk(a);a=a.K(!1);for(var c=[],d=0;d<a.length;d++)for(var e=a[d].length-1;0<=e;e--)c.push(a[d][e]);return{hasZ:b.hasZ,hasM:b.hasM,rings:c}}};l=Md.prototype;l.Fc=function(a,b){var c=Jr(a.geometry,b),d=new Wa;f(this.b)&&d.Ic(this.b);d.La(c);f(b)&&f(b.Xe)&&f(a.attributes[b.Xe])&&d.Qb(a.attributes[b.Xe]);f(a.attributes)&&d.t(a.attributes);return d};l.of=function(a,b){b=f(b)?b:{};if(null!=
666a.features){var c=[],d=a.features,e;b.Xe=a.objectIdFieldName;a=0;for(e=d.length;a<e;++a)c.push(this.Fc(d[a],b));return c}return[this.Fc(a,b)]};l.hh=function(a,b){return Jr(a,b)};l.nh=function(a){return null!=a.spatialReference&&null!=a.spatialReference.wkid?Ka("EPSG:"+a.spatialReference.wkid):null};l.Be=function(a,b){return Kr(a,oe(this,b))};l.Lc=function(a,b){b=oe(this,b);var c={},d=a.Q();null!=d&&(c.geometry=Kr(d,b));d=a.D();Fe(d,a.a);c.attributes=le(d)?{}:d;f(b)&&f(b.featureProjection)&&(c.spatialReference=
667{wkid:Ka(b.featureProjection).b.split(":").pop()});return c};l.ze=function(a,b){b=oe(this,b);var c=[],d;var e=0;for(d=a.length;e<d;++e)c.push(this.Lc(a[e],b));return{features:c}};I(Nd,mk);var Ov={Point:function(a){return new Ta(a.coordinates)},LineString:function(a){return new Ha(a.coordinates)},Polygon:function(a){return new Fa(a.coordinates)},MultiPoint:function(a){return new $a(a.coordinates)},MultiLineString:function(a){return new Qa(a.coordinates)},MultiPolygon:function(a){return new Ra(a.coordinates)},
668GeometryCollection:function(a,b){a=Jc(a.geometries,function(c){return $n(c,b)});return new sb(a)}},Pv={Point:function(a){return{type:"Point",coordinates:a.K()}},LineString:function(a){return{type:"LineString",coordinates:a.K()}},Polygon:function(a,b){var c;f(b)&&(c=b.rightHanded);return{type:"Polygon",coordinates:a.K(c)}},MultiPoint:function(a){return{type:"MultiPoint",coordinates:a.K()}},MultiLineString:function(a){return{type:"MultiLineString",coordinates:a.K()}},MultiPolygon:function(a,b){var c;
669f(b)&&(c=b.rightHanded);return{type:"MultiPolygon",coordinates:a.K(c)}},GeometryCollection:function(a,b){return{type:"GeometryCollection",geometries:Jc(a.d,function(c){return ao(c,b)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};l=Nd.prototype;l.Fc=function(a,b){b=$n(a.geometry,b);var c=new Wa;f(this.b)&&c.Ic(this.b);c.La(b);f(a.id)&&c.Qb(a.id);f(a.properties)&&c.t(a.properties);return c};l.of=function(a,b){if("Feature"==a.type)return[this.Fc(a,b)];if("FeatureCollection"==
670a.type){var c=[];a=a.features;var d;var e=0;for(d=a.length;e<d;++e)c.push(this.Fc(a[e],b));return c}return[]};l.hh=function(a,b){return $n(a,b)};l.nh=function(a){a=a.crs;return null!=a?"name"==a.type?Ka(a.properties.name):"EPSG"==a.type?Ka("EPSG:"+a.properties.code):null:this.defaultDataProjection};l.Lc=function(a,b){b=oe(this,b);var c={type:"Feature"},d=a.$;null!=d&&(c.id=d);d=a.Q();null!=d&&(c.geometry=ao(d,b));d=a.D();Fe(d,a.a);c.properties=le(d)?null:d;return c};l.ze=function(a,b){b=oe(this,b);
671var c=[],d;var e=0;for(d=a.length;e<d;++e)c.push(this.Lc(a[e],b));return{type:"FeatureCollection",features:c}};l.Be=function(a,b){return ao(a,oe(this,b))};I(ph,Al);l=ph.prototype;l.M=function(){return"xml"};l.sb=function(a,b){return Og(a)?Lr(this,a,b):Pg(a)?this.fh(a,b):D(a)?(a=Wf(a),Lr(this,a,b)):null};l.ja=function(a,b){return Og(a)?bo(this,a,b):Pg(a)?this.Ob(a,b):D(a)?(a=Wf(a),bo(this,a,b)):[]};l.Gc=function(a,b){if(Og(a))return this.l(a,b);if(Pg(a)){var c=this.qe(a,[Ef(this,a,f(b)?b:{})]);return f(c)?
672c:null}return D(a)?(c=Wf(a),this.l(c,b)):null};l.za=function(a){return Og(a)?this.sf(a):Pg(a)?this.te(a):D(a)?(a=Wf(a),this.sf(a)):null};l.sf=function(){return this.defaultDataProjection};l.te=function(){return this.defaultDataProjection};l.qd=function(a,b){a=this.U(a,b);return En(a)};l.ub=function(a,b){a=this.a(a,b);return En(a)};l.Mc=function(a,b){a=this.q(a,b);return En(a)};I(oc,ph);l=oc.prototype;
672l.jd=function(a,b){var c=ai(a),d;if("FeatureCollection"==c)"http://www.opengis.net/wfs"===a.namespaceURI?
673d=ua([],this.b,a,b,this):d=ua(null,this.b,a,b,this);else if("featureMembers"==c||"featureMember"==c){var e=b[0],g=e.featureType;d=e.featureNS;var h;if(!f(g)&&null!=a.childNodes){g=[];d={};var m=0;for(h=a.childNodes.length;m<h;++m){var r=a.childNodes[m];if(1===r.nodeType){var x=r.nodeName.split(":").pop();if(-1===Nb(g,x)){var F;Dk(d,r.namespaceURI)?F=oj(d,function(S){return S===r.namespaceURI}):(F="p"+ud(d),d[F]=r.namespaceURI);g.push(F+":"+x)}}}e.featureType=g;e.featureNS=d}D(d)&&(m=d,d={},d.p0=m);
674e={};g=t(g)?g:[g];for(var M in d){x={};m=0;for(h=g.length;m<h;++m)(-1===g[m].indexOf(":")?"p0":g[m].split(":")[0])===M&&(x[g[m].split(":").pop()]="featureMembers"==c?mc(this.nf,this):Cc(this.nf,this));e[d[M]]=x}d=ua([],e,a,b)}f(d)||(d=[]);return d};l.qe=function(a,b){var c=b[0];c.srsName=a.firstElementChild.getAttribute("srsName");a=ua(null,this.Cf,a,b,this);if(null!=a)return Sd(a,!1,c)};l.nf=function(a,b){var c=a.getAttribute("fid")||Hx(a,"http://www.opengis.net/gml","id"),d={},e;for(a=a.firstElementChild;null!==
675a;a=a.nextElementSibling){var g=ai(a);if(0===a.childNodes.length||1===a.childNodes.length&&3===a.firstChild.nodeType){var h=Me(a,!1);/^[\s\xa0]*$/.test(h)&&(h=void 0);d[g]=h}else"boundedBy"!==g&&(e=g),d[g]=this.qe(a,b)}a=new Wa(d);f(e)&&a.Ic(e);c&&a.Qb(c);return a};l.mh=function(a,b){a=this.pe(a,b);if(null!=a)return b=new Ta(null),Li(b,"XYZ",a),b};l.kh=function(a,b){a=ua([],this.ai,a,b,this);if(f(a))return new $a(a)};l.jh=function(a,b){a=ua([],this.$h,a,b,this);if(f(a))return b=new Qa(null),nl(b,
676a),b};l.lh=function(a,b){a=ua([],this.bi,a,b,this);if(f(a))return b=new Ra(null),tn(b,a),b};l.$g=function(a,b){Of(this.ei,a,b,this)};l.kg=function(a,b){Of(this.Yh,a,b,this)};l.ah=function(a,b){Of(this.fi,a,b,this)};l.re=function(a,b){a=this.pe(a,b);if(null!=a)return b=new Ha(null),kf(b,"XYZ",a),b};l.yn=function(a,b){a=ua(null,this.sd,a,b,this);if(null!=a)return a};l.ih=function(a,b){a=this.pe(a,b);if(f(a))return b=new lb(null),Ki(b,"XYZ",a),b};l.se=function(a,b){a=ua([null],this.De,a,b,this);if(f(a)&&
677null!==a[0]){b=new Fa(null);var c=a[0],d=[c.length],e;var g=1;for(e=a.length;g<e;++g)Tb(c,a[g]),d.push(c.length);Nf(b,"XYZ",c,d);return b}};l.pe=function(a,b){return ua(null,this.sd,a,b,this)};l.ai=Object({"http://www.opengis.net/gml":{pointMember:mc(oc.prototype.$g),pointMembers:mc(oc.prototype.$g)}});l.$h=Object({"http://www.opengis.net/gml":{lineStringMember:mc(oc.prototype.kg),lineStringMembers:mc(oc.prototype.kg)}});l.bi=Object({"http://www.opengis.net/gml":{polygonMember:mc(oc.prototype.ah),
678polygonMembers:mc(oc.prototype.ah)}});l.ei=Object({"http://www.opengis.net/gml":{Point:mc(oc.prototype.pe)}});l.Yh=Object({"http://www.opengis.net/gml":{LineString:mc(oc.prototype.re)}});l.fi=Object({"http://www.opengis.net/gml":{Polygon:mc(oc.prototype.se)}});l.td=Object({"http://www.opengis.net/gml":{LinearRing:Cc(oc.prototype.yn)}});l.Ob=function(a,b){var c={featureType:this.featureType,featureNS:this.featureNS};f(b)&&vd(c,Ef(this,a,b));return this.jd(a,[c])};l.te=function(a){return Ka(f(this.o)?
679this.o:a.firstElementChild.getAttribute("srsName"))};I(Ya,oc);l=Ya.prototype;l.Bn=function(a,b){a=ua([],this.Zh,a,b,this);if(f(a))return b=new Qa(null),nl(b,a),b};l.Cn=function(a,b){a=ua([],this.ci,a,b,this);if(f(a))return b=new Ra(null),tn(b,a),b};l.Nf=function(a,b){Of(this.Vh,a,b,this)};l.Hh=function(a,b){Of(this.ji,a,b,this)};l.Fn=function(a,b){return ua([null],this.di,a,b,this)};l.Hn=function(a,b){return ua([null],this.ii,a,b,this)};l.Gn=function(a,b){return ua([null],this.De,a,b,this)};l.An=
680function(a,b){return ua([null],this.sd,a,b,this)};l.rk=function(a,b){a=ua(void 0,this.td,a,b,this);f(a)&&b[b.length-1].push(a)};l.Di=function(a,b){a=ua(void 0,this.td,a,b,this);f(a)&&(b[b.length-1][0]=a)};l.oh=function(a,b){a=ua([null],this.ki,a,b,this);if(f(a)&&null!==a[0]){b=new Fa(null);var c=a[0],d=[c.length],e;var g=1;for(e=a.length;g<e;++g)Tb(c,a[g]),d.push(c.length);Nf(b,"XYZ",c,d);return b}};l.dh=function(a,b){a=ua([null],this.Wh,a,b,this);if(f(a))return b=new Ha(null),kf(b,"XYZ",a),b};l.xn=
681function(a,b){a=ua([null],this.Xh,a,b,this);return He(a[1][0],a[1][1],a[2][0],a[2][1])};l.zn=function(a,b){a=Me(a,!1);for(var c=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/,d=[],e;e=c.exec(a);)d.push(parseFloat(e[1])),a=a.substr(e[0].length);if(""===a){a=b[0].srsName;c="enu";null===a||(c=Ka(a).d);if("neu"===c)for(a=0,c=d.length;a<c;a+=3)e=d[a],d[a]=d[a+1],d[a+1]=e;a=d.length;2==a&&d.push(0);return 0===a?void 0:d}};l.qf=function(a,b){var c=Me(a,!1).replace(/^\s*|\s*$/g,"");b=b[0].srsName;var d=a.parentNode.getAttribute("srsDimension"),
682e="enu";null===b||(e=Ka(b).d);c=c.split(/\s+/);b=2;null===a.getAttribute("srsDimension")?null===a.getAttribute("dimension")?null===d||(b=Yf(d)):b=Yf(a.getAttribute("dimension")):b=Yf(a.getAttribute("srsDimension"));for(var g,h=[],m=0,r=c.length;m<r;m+=b)d=parseFloat(c[m]),a=parseFloat(c[m+1]),g=3===b?parseFloat(c[m+2]):0,"en"===e.substr(0,2)?h.push(d,a,g):h.push(a,d,g);return h};l.sd=Object({"http://www.opengis.net/gml":{pos:Cc(Ya.prototype.zn),posList:Cc(Ya.prototype.qf)}});l.De=Object({"http://www.opengis.net/gml":{interior:Ya.prototype.rk,
683exterior:Ya.prototype.Di}});l.Cf=Object({"http://www.opengis.net/gml":{Point:Cc(oc.prototype.mh),MultiPoint:Cc(oc.prototype.kh),LineString:Cc(oc.prototype.re),MultiLineString:Cc(oc.prototype.jh),LinearRing:Cc(oc.prototype.ih),Polygon:Cc(oc.prototype.se),MultiPolygon:Cc(oc.prototype.lh),Surface:Cc(Ya.prototype.oh),MultiSurface:Cc(Ya.prototype.Cn),Curve:Cc(Ya.prototype.dh),MultiCurve:Cc(Ya.prototype.Bn),Envelope:Cc(Ya.prototype.xn)}});l.Zh=Object({"http://www.opengis.net/gml":{curveMember:mc(Ya.prototype.Nf),
684curveMembers:mc(Ya.prototype.Nf)}});l.ci=Object({"http://www.opengis.net/gml":{surfaceMember:mc(Ya.prototype.Hh),surfaceMembers:mc(Ya.prototype.Hh)}});l.Vh=Object({"http://www.opengis.net/gml":{LineString:mc(oc.prototype.re),Curve:mc(Ya.prototype.dh)}});l.ji=Object({"http://www.opengis.net/gml":{Polygon:mc(oc.prototype.se),Surface:mc(Ya.prototype.oh)}});l.ki=Object({"http://www.opengis.net/gml":{patches:Cc(Ya.prototype.Fn)}});l.Wh=Object({"http://www.opengis.net/gml":{segments:Cc(Ya.prototype.Hn)}});
685l.Xh=Object({"http://www.opengis.net/gml":{lowerCorner:mc(Ya.prototype.qf),upperCorner:mc(Ya.prototype.qf)}});l.di=Object({"http://www.opengis.net/gml":{PolygonPatch:Cc(Ya.prototype.Gn)}});l.ii=Object({"http://www.opengis.net/gml":{LineStringSegment:Cc(Ya.prototype.An)}});l.Rh=function(a,b,c){var d=c[c.length-1].srsName;null!=d&&a.setAttribute("srsName",d);d=jd(a.namespaceURI,"pos");a.appendChild(d);c=c[c.length-1].srsName;a="enu";null!=c&&(a=Ka(c).d);b=b.K();sc(d,"en"===a.substr(0,2)?b[0]+" "+b[1]:
686b[1]+" "+b[0])};var Jx={"http://www.opengis.net/gml":{lowerCorner:sa(sc),upperCorner:sa(sc)}};l=Ya.prototype;l.wo=function(a,b,c){var d=c[c.length-1].srsName;f(d)&&a.setAttribute("srsName",d);wc({P:a},Jx,Pf,[b[0]+" "+b[1],b[2]+" "+b[3]],c,["lowerCorner","upperCorner"],this)};l.Oh=function(a,b,c){var d=c[c.length-1].srsName;null!=d&&a.setAttribute("srsName",d);d=jd(a.namespaceURI,"posList");a.appendChild(d);Nr(d,b,c)};l.hi=function(a,b){a=b[b.length-1];b=a.P;var c=a.exteriorWritten;f(c)||(a.exteriorWritten=
687!0);return jd(b.namespaceURI,f(c)?"interior":"exterior")};l.Ce=function(a,b,c){var d=c[c.length-1].srsName;"PolygonPatch"!==a.nodeName&&null!=d&&a.setAttribute("srsName",d);
687"Polygon"===a.nodeName||"PolygonPatch"===a.nodeName?(b=b.Ed(),wc({P:a,srsName:d},Kx,this.hi,b,c,void 0,this)):"Surface"===a.nodeName&&(d=jd(a.namespaceURI,"patches"),a.appendChild(d),a=jd(d.namespaceURI,"PolygonPatch"),d.appendChild(a),this.Ce(a,b,c))};l.xe=function(a,b,c){var d=c[c.length-1].srsName;"LineStringSegment"!==a.nodeName&&
688null!=d&&a.setAttribute("srsName",d);"LineString"===a.nodeName||"LineStringSegment"===a.nodeName?(d=jd(a.namespaceURI,"posList"),a.appendChild(d),Nr(d,b,c)):"Curve"===a.nodeName&&(d=jd(a.namespaceURI,"segments"),a.appendChild(d),a=jd(d.namespaceURI,"LineStringSegment"),d.appendChild(a),this.xe(a,b,c))};l.Qh=function(a,b,c){var d=c[c.length-1],e=d.srsName;d=d.surface;null!=e&&a.setAttribute("srsName",e);b=b.Id();wc({P:a,srsName:e,surface:d},Lx,this.d,b,c,void 0,this)};l.xo=function(a,b,c){var d=c[c.length-
6891].srsName;null!=d&&a.setAttribute("srsName",d);b=b.ce();wc({P:a,srsName:d},Mx,Zd("pointMember"),b,c,void 0,this)};l.Ph=function(a,b,c){var d=c[c.length-1],e=d.srsName;d=d.curve;null!=e&&a.setAttribute("srsName",e);b=b.ad();wc({P:a,srsName:e,curve:d},Nx,this.d,b,c,void 0,this)};l.Sh=function(a,b,c){var d=jd(a.namespaceURI,"LinearRing");a.appendChild(d);this.Oh(d,b,c)};l.Th=function(a,b,c){var d=this.c(b,c);f(d)&&(a.appendChild(d),this.Ce(d,b,c))};l.yo=function(a,b,c){var d=jd(a.namespaceURI,"Point");
690a.appendChild(d);this.Rh(d,b,c)};l.Nh=function(a,b,c){var d=this.c(b,c);f(d)&&(a.appendChild(d),this.xe(d,b,c))};l.Ae=function(a,b,c){var d=c[c.length-1],e=Gd(d);e.P=a;var g;t(b)?f(d.dataProjection)?g=Te(b,d.featureProjection,d.dataProjection):g=b:g=Sd(b,!0,d);wc(e,Ox,this.c,[g],c,void 0,this)};l.Lh=function(a,b,c){var d=b.$;f(d)&&a.setAttribute("fid",d);d=c[c.length-1];var e=d.featureNS,g=b.a;f(d.fc)||(d.fc={},d.fc[e]={});var h=b.D();b=[];var m=[];for(x in h){var r=h[x];null!==r&&(b.push(x),m.push(r),
691x==g?x in d.fc[e]||(d.fc[e][x]=sa(this.Ae,this)):x in d.fc[e]||(d.fc[e][x]=sa(sc)))}var x=Gd(d);x.P=a;wc(x,d.fc,Zd(void 0,e),m,c,b)};var Lx={"http://www.opengis.net/gml":{surfaceMember:sa(Ya.prototype.Th),polygonMember:sa(Ya.prototype.Th)}},Mx={"http://www.opengis.net/gml":{pointMember:sa(Ya.prototype.yo)}},Nx={"http://www.opengis.net/gml":{lineStringMember:sa(Ya.prototype.Nh),curveMember:sa(Ya.prototype.Nh)}},Kx={"http://www.opengis.net/gml":{exterior:sa(Ya.prototype.Sh),interior:sa(Ya.prototype.Sh)}},
692Ox={"http://www.opengis.net/gml":{Curve:sa(Ya.prototype.xe),MultiCurve:sa(Ya.prototype.Ph),Point:sa(Ya.prototype.Rh),MultiPoint:sa(Ya.prototype.xo),LineString:sa(Ya.prototype.xe),MultiLineString:sa(Ya.prototype.Ph),LinearRing:sa(Ya.prototype.Oh),Polygon:sa(Ya.prototype.Ce),MultiPolygon:sa(Ya.prototype.Qh),Surface:sa(Ya.prototype.Ce),MultiSurface:sa(Ya.prototype.Qh),Envelope:sa(Ya.prototype.wo)}},Px={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};
693Ya.prototype.d=function(a,b){return jd("http://www.opengis.net/gml",Px[b[b.length-1].P.nodeName])};Ya.prototype.c=function(a,b){b=b[b.length-1];var c=b.multiSurface,d=b.surface,e=b.curve;b=b.multiCurve;var g;t(a)?g="Envelope":(g=a.M(),"MultiPolygon"===g&&!0===c?g="MultiSurface":"Polygon"===g&&!0===d?g="Surface":"LineString"===g&&!0===e?g="Curve":"MultiLineString"===g&&!0===b&&(g="MultiCurve"));return jd("http://www.opengis.net/gml",g)};Ya.prototype.q=function(a,b){b=oe(this,b);var c=jd("http://www.opengis.net/gml",
694"geom"),d={P:c,srsName:this.srsName,curve:this.e,surface:this.i,multiSurface:this.g,multiCurve:this.f};f(b)&&vd(d,b);this.Ae(c,a,[d]);return c};Ya.prototype.a=function(a,b){b=oe(this,b);var c=jd("http://www.opengis.net/gml","featureMembers");$f(c,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);var d={srsName:this.srsName,curve:this.e,surface:this.i,multiSurface:this.g,multiCurve:this.f,featureNS:this.featureNS,featureType:this.featureType};f(b)&&vd(d,b);d=[d];
695b=d[d.length-1];var e=b.featureType,g=b.featureNS,h={};h[g]={};h[g][e]=sa(this.Lh,this);b=Gd(b);b.P=c;wc(b,h,Zd(e,g),a,d);return c};I(Zf,oc);l=Zf.prototype;l.gh=function(a,b){var c=Me(a,!1).replace(/^\s*|\s*$/g,"");b=b[0].srsName;var d=a.parentNode.getAttribute("srsDimension"),e="enu";null===b||(e=Ka(b).d);c=c.split(/[\s,]+/);b=2;null===a.getAttribute("srsDimension")?null===a.getAttribute("dimension")?null===d||(b=Yf(d)):b=Yf(a.getAttribute("dimension")):b=Yf(a.getAttribute("srsDimension"));for(var g,
696h=[],m=0,r=c.length;m<r;m+=b)d=parseFloat(c[m]),a=parseFloat(c[m+1]),g=3===b?parseFloat(c[m+2]):0,"en"===e.substr(0,2)?h.push(d,a,g):h.push(a,d,g);return h};l.wn=function(a,b){a=ua([null],this.Uh,a,b,this);return He(a[1][0],a[1][1],a[1][3],a[1][4])};l.pk=function(a,b){a=ua(void 0,this.td,a,b,this);f(a)&&b[b.length-1].push(a)};l.gn=function(a,b){a=ua(void 0,this.td,a,b,this);f(a)&&(b[b.length-1][0]=a)};l.sd=Object({"http://www.opengis.net/gml":{coordinates:Cc(Zf.prototype.gh)}});l.De=Object({"http://www.opengis.net/gml":{innerBoundaryIs:Zf.prototype.pk,
697outerBoundaryIs:Zf.prototype.gn}});l.Uh=Object({"http://www.opengis.net/gml":{coordinates:mc(Zf.prototype.gh)}});l.Cf=Object({"http://www.opengis.net/gml":{Point:Cc(oc.prototype.mh),MultiPoint:Cc(oc.prototype.kh),LineString:Cc(oc.prototype.re),MultiLineString:Cc(oc.prototype.jh),LinearRing:Cc(oc.prototype.ih),Polygon:Cc(oc.prototype.se),MultiPolygon:Cc(oc.prototype.lh),Box:Cc(Zf.prototype.wn)}});I($e,ph);var pe=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"],Qx={rte:Or,
698trk:Pr,wpt:Qr},Rx=Ca(pe,{rte:mc(Or),trk:mc(Pr),wpt:mc(Qr)}),Qv=Ca(pe,{text:da(Aa,"linkText"),type:da(Aa,"linkType")}),Rv=Ca(pe,{name:da(Aa),cmt:da(Aa),desc:da(Aa),src:da(Aa),link:fo,number:da(lf),extensions:go,type:da(Aa),rtept:function(a,b){var c=ua({},Sx,a,b);f(c)&&eo(b[b.length-1].flatCoordinates,a,c)}}),Sx=Ca(pe,{ele:da(Od),time:da(co)}),Sv=Ca(pe,{name:da(Aa),cmt:da(Aa),desc:da(Aa),src:da(Aa),link:fo,number:da(lf),type:da(Aa),extensions:go,trkseg:function(a,b){var c=b[b.length-1];Of(Tx,a,b);c.ends.push(c.flatCoordinates.length)}}),
699Tx=Ca(pe,{trkpt:function(a,b){var c=ua({},Ux,a,b);f(c)&&eo(b[b.length-1].flatCoordinates,a,c)}}),Ux=Ca(pe,{ele:da(Od),time:da(co)}),Tv=Ca(pe,{ele:da(Od),time:da(co),magvar:da(Od),geoidheight:da(Od),name:da(Aa),cmt:da(Aa),desc:da(Aa),src:da(Aa),link:fo,sym:da(Aa),type:da(Aa),fix:da(Aa),sat:da(lf),hdop:da(Od),vdop:da(Od),pdop:da(Od),ageofdgpsdata:da(Od),dgpsid:da(lf),extensions:go});$e.prototype.fh=function(a,b){if(!Nc(pe,a.namespaceURI))return null;var c=Qx[a.localName];if(!f(c))return null;c=c(a,
700[Ef(this,a,b)]);if(!f(c))return null;Rr(this,[c]);return c};$e.prototype.Ob=function(a,b){return Nc(pe,a.namespaceURI)?"gpx"==a.localName&&(a=ua([],Rx,a,[Ef(this,a,b)]),f(a))?(Rr(this,a),a):[]:[]};var Vv=["text","type"],Uv=cd(pe,{text:sa(sc),type:sa(sc)}),Vx=cd(pe,"name cmt desc src link number type rtept".split(" ")),Wx=cd(pe,{name:sa(sc),cmt:sa(sc),desc:sa(sc),src:sa(sc),link:sa(ho),number:sa(Cl),type:sa(sc),rtept:Sq(sa(io))}),Xx=cd(pe,"name cmt desc src link number type trkseg".split(" ")),$x=
701cd(pe,{name:sa(sc),cmt:sa(sc),desc:sa(sc),src:sa(sc),link:sa(ho),number:sa(Cl),type:sa(sc),trkseg:Sq(sa(function(a,b,c){wc({P:a,geometryLayout:b.a,properties:{}},Yx,Zx,b.K(),c)}))}),Zx=Zd("trkpt"),Yx=cd(pe,{trkpt:sa(io)}),Wv=cd(pe,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),Xv=cd(pe,{ele:sa(mf),time:sa(function(a,b){b=new Date(1E3*b);b=b.getUTCFullYear()+"-"+Na(b.getUTCMonth()+1)+"-"+Na(b.getUTCDate())+"T"+Na(b.getUTCHours())+
702":"+Na(b.getUTCMinutes())+":"+Na(b.getUTCSeconds())+"Z";a.appendChild(Vi.createTextNode(b))}),magvar:sa(mf),geoidheight:sa(mf),name:sa(sc),cmt:sa(sc),desc:sa(sc),src:sa(sc),link:sa(ho),sym:sa(sc),type:sa(sc),fix:sa(sc),sat:sa(Cl),hdop:sa(mf),vdop:sa(mf),pdop:sa(mf),ageofdgpsdata:sa(mf),dgpsid:sa(Cl)}),Zv={Point:"wpt",LineString:"rte",MultiLineString:"trk"},ay=cd(pe,{rte:sa(function(a,b,c){var d=c[0],e=b.D();a={P:a,properties:e};b=b.Q();f(b)&&(b=Sd(b,!0,d),a.geometryLayout=b.a,e.rtept=b.K());d=Vx[c[c.length-
7031].P.namespaceURI];e=Xf(e,d);wc(a,Wx,Pf,e,c,d)}),trk:sa(function(a,b,c){var d=c[0],e=b.D();a={P:a,properties:e};b=b.Q();f(b)&&(b=Sd(b,!0,d),e.trkseg=b.ad());d=Xx[c[c.length-1].P.namespaceURI];e=Xf(e,d);wc(a,$x,Pf,e,c,d)}),wpt:sa(function(a,b,c){var d=c[0],e=c[c.length-1];e.properties=b.D();b=b.Q();f(b)&&(b=Sd(b,!0,d),e.geometryLayout=b.a,io(a,b.K(),c))})});$e.prototype.a=function(a,b){b=oe(this,b);var c=jd("http://www.topografix.com/GPX/1/1","gpx");
703wc({P:c},ay,Yv,a,[b]);return c};I(ok,Al);l=ok.prototype;
704l.M=function(){return"text"};l.sb=function(a,b){return this.hd(D(a)?a:"",oe(this,b))};l.ja=function(a,b){return this.pf(D(a)?a:"",oe(this,b))};l.Gc=function(a,b){return this.kd(D(a)?a:"",oe(this,b))};l.za=function(){return this.defaultDataProjection};l.qd=function(a,b){return this.ye(a,oe(this,b))};l.ub=function(a,b){return this.Mh(a,oe(this,b))};l.Mc=function(a,b){return this.rd(a,oe(this,b))};I(rg,ok);var by=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,cy=
705/^H.([A-Z]{3}).*?:(.*)/,Ct=/^HFDTE(\d{2})(\d{2})(\d{2})/;rg.prototype.hd=function(a,b){var c=this.b;a=$v(a);var d={},e=[],g=2E3,h=0,m=1,r;var x=0;for(r=a.length;x<r;++x){var F=a[x],M;if("B"==F.charAt(0)){if(M=by.exec(F)){F=parseInt(M[1],10);var S=parseInt(M[2],10),Y=parseInt(M[3],10),O=parseInt(M[4],10)+parseInt(M[5],10)/6E4;"S"==M[6]&&(O=-O);var P=parseInt(M[7],10)+parseInt(M[8],10)/6E4;"W"==M[9]&&(P=-P);e.push(P,O);"none"!=c&&e.push("gps"==c?parseInt(M[11],10):"barometric"==c?parseInt(M[12],10):
7060);e.push(Date.UTC(g,h,m,F,S,Y)/1E3)}}else if("H"==F.charAt(0))if(M=Ct.exec(F))m=parseInt(M[1],10),h=parseInt(M[2],10)-1,g=2E3+parseInt(M[3],10);else if(M=cy.exec(F))d[M[1]]=vg(M[2]),Ct.exec(F)}if(0===e.length)return null;a=new Ha(null);kf(a,"none"==c?"XYM":"XYZM",e);c=new Wa(Sd(a,!1,b));c.t(d);return c};rg.prototype.pf=function(a,b){a=this.hd(a,b);return null===a?[]:[a]};l=Ig.prototype;l.Pb="";l.pc="";l.ib="";l.Ec=null;l.hb="";l.Sb="";l.Yb=!1;l.toString=function(){var a=[],b=this.Pb;b&&a.push(qk(b,
707Dt,!0),":");if(b=this.ib){a.push("//");var c=this.pc;c&&a.push(qk(c,Dt,!0),"@");a.push(encodeURIComponent(String(b)).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Ec;null!=b&&a.push(":",String(b))}if(b=this.hb)this.ib&&"/"!=b.charAt(0)&&a.push("/"),a.push(qk(b,"/"==b.charAt(0)?dy:ey,!0));(b=this.b.toString())&&a.push("?",b);(b=this.Sb)&&a.push("#",qk(b,fy));return a.join("")};l.clone=function(){return new Ig(this)};var Dt=/[#\/\?@]/g,ey=/[#\?:]/g,dy=/[#\?]/g,cw=/[#\?@]/g,fy=/#/g;l=pk.prototype;l.ia=
708null;l.va=null;l.Tb=function(){Jg(this);return this.va};l.add=function(a,b){Jg(this);this.b=null;a=aj(this,a);var c=this.ia.get(a);c||this.ia.set(a,c=[]);c.push(b);this.va++;return this};l.remove=function(a){Jg(this);a=aj(this,a);return Mh(this.ia.a,a)?(this.b=null,this.va-=this.ia.get(a).length,this.ia.remove(a)):!1};l.clear=function(){this.ia=this.b=null;this.va=0};l.la=function(){Jg(this);return 0==this.va};l.C=function(){Jg(this);for(var a=this.ia.cb(),b=this.ia.C(),c=[],d=0;d<b.length;d++)for(var e=
709a[d],g=0;g<e.length;g++)c.push(b[d]);return c};l.cb=function(a){Jg(this);var b=[];if(D(a))Ur(this,a)&&(b=td(b,this.ia.get(aj(this,a))));else{a=this.ia.cb();for(var c=0;c<a.length;c++)b=td(b,a[c])}return b};l.set=function(a,b){Jg(this);this.b=null;a=aj(this,a);Ur(this,a)&&(this.va-=this.ia.get(a).length);this.ia.set(a,[b]);this.va++;return this};l.get=function(a,b){a=a?this.cb(a):[];return 0<a.length?String(a[0]):b};l.toString=function(){if(this.b)return this.b;if(!this.ia)return"";for(var a=[],b=
710this.ia.C(),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.cb(d);for(var g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="\x3d"+encodeURIComponent(String(d[g])));a.push(h)}}return this.b=a.join("\x26")};l.clone=function(){var a=new pk;a.b=this.b;this.ia&&(a.ia=this.ia.clone(),a.va=this.va);return a};l=lc.prototype;l.Wi=function(){return this.d};l.mj=function(){return this.q};l.nj=function(){return this.l};l.Qm=function(){return this.b};l.Rm=function(){return this.e};l.Sm=function(){return this.a};
711l.Tm=function(){return this.f};l.Um=function(){return this.c};l.xj=function(){return this.g};l.yj=function(){return this.i};l.Wn=function(a){this.d=a};l.Vn=function(a){this.b=a};l.Vm=function(a){this.e=a};l.Wm=function(a){this.a=a};l.eo=function(a){this.f=a};l.fo=function(a){this.c=a};l.ho=function(a){this.g=a};l.io=function(a){this.i=a};I(ye,ph);var Kg=["http://www.google.com/kml/ext/2.2"],Bb=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2",
712"http://www.opengis.net/kml/2.2"],Ak=[255,255,255,1],so=new jf({color:Ak}),Et=[20,2],Ft=[64,64],ds=new ld({anchor:Et,anchorOrigin:"bottom-left",anchorXUnits:"pixels",anchorYUnits:"pixels",crossOrigin:"anonymous",rotation:0,scale:.5,size:Ft,src:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),to=new Lc({color:Ak,width:1}),es=new lc({font:"normal 16px Helvetica",fill:so,stroke:to,scale:1}),ew=[new qd({fill:so,image:ds,text:es,stroke:to,zIndex:0})],Gt={fraction:"fraction",pixels:"pixels"},
713gy=Ca(Bb,{value:Cc(Aa)}),kw=Ca(Bb,{Data:function(a,b){var c=a.getAttribute("name");null!==c&&(a=ua(void 0,gy,a,b),f(a)&&(b[b.length-1][c]=a))},SchemaData:function(a,b){Of(hy,a,b)}}),El=Ca(Bb,{extrude:da(Zh),altitudeMode:da(Aa)}),fw=Ca(Bb,{coordinates:Cc(Vr)}
713),iw=Ca(Bb,{innerBoundaryIs:function(a,b){a=ua(void 0,iy,a,b);f(a)&&b[b.length-1].push(a)},outerBoundaryIs:function(a,b){a=ua(void 0,jy,a,b);f(a)&&(b[b.length-1][0]=a)}}),gw=Ca(Bb,{when:function(a,b){b=b[b.length-1].Kh;a=Me(a,!1);if(a=/^\s*(\d{4})($|-(\d{2})($|-(\d{2})($|T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?)))))\s*$/.exec(a)){var c=
714Date.UTC(parseInt(a[1],10),f(a[3])?parseInt(a[3],10)-1:0,f(a[5])?parseInt(a[5],10):1,f(a[7])?parseInt(a[7],10):0,f(a[8])?parseInt(a[8],10):0,f(a[9])?parseInt(a[9],10):0);if(f(a[10])&&"Z"!=a[10]){var d="-"==a[11]?-1:1;c+=60*d*parseInt(a[12],10);f(a[13])&&(c+=3600*d*parseInt(a[13],10))}b.push(c)}else b.push(0)}},Ca(Kg,{coord:function(a,b){b=b[b.length-1].j;a=Me(a,!1);(a=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(a))?
715b.push(parseFloat(a[1]),parseFloat(a[2]),parseFloat(a[3]),0):b.push(0,0,0,0)}})),po=Ca(Bb,{coordinates:Cc(Vr)}),ky=Ca(Bb,{href:da(oo)},Ca(Kg,{x:da(Od),y:da(Od),w:da(Od),h:da(Od)})),ly=Ca(Bb,{Icon:da(function(a,b){a=ua({},ky,a,b);return f(a)?a:null}),heading:da(Od),hotSpot:da(function(a){var b=a.getAttribute("xunits"),c=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),Af:Gt[b],y:parseFloat(a.getAttribute("y")),Bf:Gt[c]}}),scale:da(Wr)}),iy=Ca(Bb,{LinearRing:Cc(Xr)}),my=Ca(Bb,{color:da(no),
716scale:da(Wr)}),ny=Ca(Bb,{color:da(no),width:da(Od)}),hw=Ca(Bb,{LineString:mc(Zr),LinearRing:mc($r),MultiGeometry:mc(as),Point:mc(bs),Polygon:mc(cs)}),oy=Ca(Kg,{Track:mc(Yr)}),lw=Ca(Bb,{ExtendedData:fs,Link:function(a,b){Of(py,a,b)},address:da(Aa),description:da(Aa),name:da(Aa),open:da(Zh),phoneNumber:da(Aa),visibility:da(Zh)}),py=Ca(Bb,{href:da(oo)}),jy=Ca(Bb,{LinearRing:Cc(Xr)}),qy=Ca(Bb,{Style:da(ro),key:da(Aa),styleUrl:da(function(a){var b=vg(Me(a,!1));return null!=a.baseURI?Dl(a.baseURI,b).toString():
717b})}),ry=Ca(Bb,{ExtendedData:fs,MultiGeometry:da(as,"geometry"),LineString:da(Zr,"geometry"),LinearRing:da($r,"geometry"),Point:da(bs,"geometry"),Polygon:da(cs,"geometry"),Style:da(ro),StyleMap:function(a,b){a=ua(void 0,Ht,a,b);f(a)&&(b=b[b.length-1],t(a)?b.Style=a:D(a)&&(b.styleUrl=a))},address:da(Aa),description:da(Aa),name:da(Aa),open:da(Zh),phoneNumber:da(Aa),styleUrl:da(oo),visibility:da(Zh)},Ca(Kg,{MultiTrack:da(function(a,b){a=ua([],oy,a,b);if(f(a))return b=new Qa(null),nl(b,a),b},"geometry"),
718Track:da(Yr,"geometry")})),sy=Ca(Bb,{color:da(no),fill:da(Zh),outline:da(Zh)}),hy=Ca(Bb,{SimpleData:function(a,b){var c=a.getAttribute("name");null!==c&&(a=Aa(a),b[b.length-1][c]=a)}}),jw=Ca(Bb,{IconStyle:function(a,b){a=ua({},ly,a,b);if(f(a)){b=b[b.length-1];var c=qc(a,"Icon",{});var d=c.href;d=f(d)?d:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png";var e,g,h,m=a.hotSpot;f(m)?(e=[m.x,m.y],g=m.Af,h=m.Bf):"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"===d?(e=Et,h=g="pixels"):
719/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(d)&&(e=[.5,0],h=g="fraction");var r;m=c.x;var x=c.y;f(m)&&f(x)&&(r=[m,x]);var F;m=c.w;c=c.h;f(m)&&f(c)&&(F=[m,c]);var M;c=a.heading;f(c)&&(M=me(c));a=a.scale;"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"==d&&(F=Ft);e=new ld({anchor:e,anchorOrigin:"bottom-left",anchorXUnits:g,anchorYUnits:h,crossOrigin:"anonymous",offset:r,offsetOrigin:"bottom-left",rotation:M,scale:a,size:F,src:d});b.imageStyle=e}},LabelStyle:function(a,b){a=ua({},
720my,a,b);f(a)&&(b[b.length-1].textStyle=new lc({fill:new jf({color:qc(a,"color",Ak)}),scale:a.scale}))},LineStyle:function(a,b){a=ua({},ny,a,b);f(a)&&(b[b.length-1].strokeStyle=new Lc({color:qc(a,"color",Ak),width:qc(a,"width",1)}))},PolyStyle:function(a,b){a=ua({},sy,a,b);if(f(a)){b=b[b.length-1];b.fillStyle=new jf({color:qc(a,"color",Ak)});var c=a.fill;f(c)&&(b.fill=c);a=a.outline;f(a)&&(b.outline=a)}}}),Ht=Ca(Bb,{Pair:function(a,b){a=ua({},qy,a,b);if(f(a)){var c=a.key;f(c)&&"normal"==c&&(c=a.styleUrl,
721f(c)&&(b[b.length-1]=c),a=a.Style,f(a)&&(b[b.length-1]=a))}}});l=ye.prototype;l.eh=function(a,b){ai(a);var c=Ca(Bb,{Folder:tv(this.eh,this),Placemark:mc(this.rf,this),Style:J(this.Jn,this),StyleMap:J(this.In,this)});c=ua([],c,a,b,this);if(f(c))return c};l.rf=function(a,b){var c=ua({geometry:null},ry,a,b);if(f(c)){var d=new Wa;a=a.getAttribute("id");null===a||d.Qb(a);a=b[0];null!=c.geometry&&Sd(c.geometry,!1,a);d.t(c);this.c&&d.cf(this.d);return d}};l.Jn=function(a,b){var c=a.getAttribute("id");null!==
722c&&(b=ro(a,b),f(b)&&(c=null!=a.baseURI?Dl(a.baseURI,"#"+c).toString():"#"+c,this.b[c]=b))};l.In=function(a,b){var c=a.getAttribute("id");null!==c&&(b=ua(void 0,Ht,a,b),f(b)&&(c=null!=a.baseURI?Dl(a.baseURI,"#"+c).toString():"#"+c,this.b[c]=b))};l.fh=function(a,b){if(!Nc(Bb,a.namespaceURI))return null;a=this.rf(a,[Ef(this,a,b)]);return f(a)?a:null};l.Ob=function(a,b){if(!Nc(Bb,a.namespaceURI))return[];var c=ai(a);if("Document"==c||"Folder"==c)return c=this.eh(a,[Ef(this,a,b)]),f(c)?c:[];if("Placemark"==
723c)return c=this.rf(a,[Ef(this,a,b)]),f(c)?[c]:[];if("kml"==c){c=[];for(a=a.firstElementChild;null!==a;a=a.nextElementSibling){var d=this.Ob(a,b);f(d)&&Tb(c,d)}return c}return[]};
723l.Dn=function(a){if(Og(a))return gs(this,a);if(Pg(a))return uo(this,a);if(D(a))return a=Wf(a),gs(this,a)};l.En=function(a){var b=[];Og(a)?Tb(b,hs(this,a)):Pg(a)?Tb(b,vo(this,a)):D(a)&&(a=Wf(a),Tb(b,hs(this,a)));return b};var ty=cd(Bb,["Document","Placemark"]),vy=cd(Bb,{Document:sa(function(a,b,c){wc({P:a},uy,vw,b,c)}),Placemark:sa(js)}),
724uy=cd(Bb,{Placemark:sa(js)}),ww={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry"},It=cd(Bb,["href"],cd(Kg,["x","y","w","h"])),Jt=cd(Bb,{href:sa(sc)},cd(Kg,{x:sa(mf),y:sa(mf),w:sa(mf),h:sa(mf)})),wy=cd(Bb,["scale","heading","Icon","hotSpot"]),xy=cd(Bb,{Icon:sa(function(a,b,c){a={P:a};var d=It[c[c.length-1].P.namespaceURI],e=Xf(b,d);wc(a,Jt,Pf,e,c,d);d=It[Kg[0]];e=Xf(b,d);wc(a,Jt,
725uw,e,c,d)}),heading:sa(mf),hotSpot:sa(function(a,b){a.setAttribute("x",b.x);a.setAttribute("y",b.y);a.setAttribute("xunits",b.Af);a.setAttribute("yunits",b.Bf)}),scale:sa(ns)}),yy=cd(Bb,["color","scale"]),zy=cd(Bb,{color:sa(wo),scale:sa(ns)}),Ay=cd(Bb,["color","width"]),By=cd(Bb,{color:sa(wo),width:sa(mf)}),mw=cd(Bb,{LinearRing:sa(bj)}),Cy=cd(Bb,{LineString:sa(bj),Point:sa(bj),Polygon:sa(ls)}),ow=cd(Bb,"name open visibility address phoneNumber description styleUrl Style".split(" ")),ks=cd(Bb,{MultiGeometry:sa(function(a,
726b,c){a={P:a};var d=b.M(),e,g;"MultiPoint"==d?(e=b.ce(),g=Dy):"MultiLineString"==d?(e=b.ad(),g=Ey):"MultiPolygon"==d&&(e=b.Id(),g=Fy);wc(a,Cy,g,e,c)}),LineString:sa(bj),LinearRing:sa(bj),Point:sa(bj),Polygon:sa(ls),Style:sa(function(a,b,c){a={P:a};var d={},e=b.e,g=b.c,h=b.f;b=b.a;null===h||(d.IconStyle=h);null===b||(d.LabelStyle=b);null===g||(d.LineStyle=g);null===e||(d.PolyStyle=e);b=Gy[c[c.length-1].P.namespaceURI];d=Xf(d,b);wc(a,Hy,Pf,d,c,b)}),address:sa(sc),description:sa(sc),name:sa(sc),open:sa(Mr),
727phoneNumber:sa(sc),styleUrl:sa(sc),visibility:sa(Mr)}),qw=cd(Bb,{coordinates:sa(function(a,b,c){c=c[c.length-1];var d=c.layout;c=c.stride;var e;"XY"==d||"XYM"==d?e=2:("XYZ"==d||"XYZM"==d)&&(e=3);var g,h=b.length,m="";if(0<h){m+=b[0];for(d=1;d<e;++d)m+=","+b[d];for(g=c;g<h;g+=c)for(m+=" "+b[g],d=1;d<e;++d)m+=","+b[g+d]}sc(a,m)})}),ms=cd(Bb,{outerBoundaryIs:sa(is),innerBoundaryIs:sa(is)}),Iy=cd(Bb,{color:sa(wo)}),Gy=cd(Bb,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Hy=cd(Bb,{IconStyle:sa(function(a,
728b,c){a={P:a};var d={},e=b.Xa(),g=b.Dd(),h={href:b.b.f};if(null!==e){h.w=e[0];h.h=e[1];var m=b.mb(),r=b.rb();null!==r&&null!==g&&0!==r[0]&&r[1]!==e[1]&&(h.x=r[0],h.y=g[1]-(r[1]+e[1]));null===m||0===m[0]||m[1]===e[1]||(d.hotSpot={x:m[0],Af:"pixels",y:e[1]-m[1],Bf:"pixels"})}d.Icon=h;e=b.l;1!==e&&(d.scale=e);b=b.q;0!==b&&(d.heading=b);b=wy[c[c.length-1].P.namespaceURI];d=Xf(d,b);wc(a,xy,Pf,d,c,b)}),LabelStyle:sa(function(a,b,c){a={P:a};var d={},e=b.b;null===e||(d.color=e.b);b=b.a;f(b)&&1!==b&&(d.scale=
729b);b=yy[c[c.length-1].P.namespaceURI];d=Xf(d,b);wc(a,zy,Pf,d,c,b)}),LineStyle:sa(function(a,b,c){a={P:a};var d=Ay[c[c.length-1].P.namespaceURI];b=Xf({color:b.b,width:b.a},d);wc(a,By,Pf,b,c,d)}),PolyStyle:sa(function(a,b,c){wc({P:a},Iy,Jy,[b.b],c)})}),Jy=Zd("color"),rw=Zd("coordinates"),sw=Zd("innerBoundaryIs"),Dy=Zd("Point"),Ey=Zd("LineString"),nw=Zd("LinearRing"),Fy=Zd("Polygon"),tw=Zd("outerBoundaryIs");ye.prototype.a=function(a,b){b=oe(this,b);var c=jd(Bb[4],"kml");$f(c,"http://www.w3.org/2000/xmlns/",
730"xmlns:gx",Kg[0]);$f(c,"http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");$f(c,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var d={P:c},e={};1<a.length?e.Document=a:1==a.length&&(e.Placemark=a[0]);a=ty[c.namespaceURI];e=Xf(e,a);wc(d,vy,Pf,e,[b],a);return c};I(bi,ph);var Ro=[null],Ky=Ca(Ro,{nd:function(a,b){b[b.length-1].Ac.push(a.getAttribute("ref"))},tag:os}),
731My=Ca(Ro,{node:function(a,b){var c=b[0],d=b[b.length-1],e=a.getAttribute("id"),g=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];d.ng[e]=g;a=ua({od:{}},Ly,a,b);
731le(a.od)||(g=new Ta(g),Sd(g,!1,c),c=new Wa(g),c.Qb(e),c.t(a.od),d.features.push(c))},way:function(a,b){var c=b[0],d=a.getAttribute("id");a=ua({Ac:[],od:{}},Ky,a,b);b=b[b.length-1];for(var e=[],g=0,h=a.Ac.length;g<h;g++)Tb(e,b.ng[a.Ac[g]]);a.Ac[0]==a.Ac[a.Ac.length-1]?(g=new Fa(null),Nf(g,"XY",e,[e.length])):(g=new Ha(null),
732kf(g,"XY",e));Sd(g,!1,c);c=new Wa(g);c.Qb(d);c.t(a.od);b.features.push(c)}}),Ly=Ca(Ro,{tag:os});bi.prototype.Ob=function(a,b){b=Ef(this,a,b);return"osm"==a.localName&&(b=ua({ng:{},features:[]},My,a,[b]),f(b.features))?b.features:[]};Fl.prototype.c=function(a){return Og(a)?this.a(a):Pg(a)?this.b(a):D(a)?(a=Wf(a),this.a(a)):null};I(Gl,Fl);Gl.prototype.a=function(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return this.b(a);return null};Gl.prototype.b=function(a){a=ua({},Ny,a,[]);
733return f(a)?a:null};var nf=[null,"http://www.opengis.net/ows/1.1"],Ny=Ca(nf,{ServiceIdentification:da(function(a,b){return ua({},Oy,a,b)}),ServiceProvider:da(function(a,b){return ua({},Py,a,b)}),OperationsMetadata:da(function(a,b){return ua({},Qy,a,b)})}),Ry=Ca(nf,{DeliveryPoint:da(Aa),City:da(Aa),AdministrativeArea:da(Aa),PostalCode:da(Aa),Country:da(Aa),ElectronicMailAddress:da(Aa)}),Sy=Ca(nf,{Value:Ed(function(a){return Aa(a)})}),Ty=Ca(nf,{AllowedValues:da(function(a,b){return ua({},Sy,a,b)})}),
734Vy=Ca(nf,{Phone:da(function(a,b){return ua({},Uy,a,b)}),Address:da(function(a,b){return ua({},Ry,a,b)})}),Xy=Ca(nf,{HTTP:da(function(a,b){return ua({},Wy,a,b)})}),Wy=Ca(nf,{Get:Ed(function(a,b){var c=cj(a);return f(c)?ua({href:c},Yy,a,b):void 0}),Post:void 0}),Zy=Ca(nf,{DCP:da(function(a,b){return ua({},Xy,a,b)})}),Qy=Ca(nf,{Operation:function(a,b){var c=a.getAttribute("name");a=ua({},Zy,a,b);f(a)&&(b[b.length-1][c]=a)}}),Uy=Ca(nf,{Voice:da(Aa),Facsimile:da(Aa)}),Yy=Ca(nf,{Constraint:Ed(function(a,
735b){var c=a.getAttribute("name");return f(c)?ua({name:c},Ty,a,b):void 0})}),$y=Ca(nf,{IndividualName:da(Aa),PositionName:da(Aa),ContactInfo:da(function(a,b){return ua({},Vy,a,b)})}),Oy=Ca(nf,{Title:da(Aa),ServiceTypeVersion:da(Aa),ServiceType:da(Aa)}),Py=Ca(nf,{ProviderName:da(Aa),ProviderSite:da(cj),ServiceContact:da(function(a,b){return ua({},$y,a,b)})});I(Ff,ok);l=Ff.prototype;l.hd=function(a,b){a=this.kd(a,b);return new Wa(a)};l.pf=function(a,b){return[this.hd(a,b)]};l.kd=function(a,b){var c=Rm(this.a);
736a=ss(a,c,this.b);ps(a,a.length,c,a);c=Vj(a,0,a.length,c);return Sd(new Ha(c,this.a),!1,oe(this,b))};l.ye=function(a,b){a=a.Q();return null!=a?this.rd(a,b):""};l.Mh=function(a,b){return this.ye(a[0],b)};l.rd=function(a,b){a=Sd(a,!0,oe(this,b));b=a.j;a=a.s;ps(b,b.length,a,b);return qs(b,a,this.b)};I(qh,mk);qh.prototype.of=function(a,b){if("Topology"==a.type){var c,d=null,e=null;f(a.transform)&&(c=a.transform,d=c.scale,e=c.translate);var g=a.arcs;if(f(c)){c=d;var h=e,m;var r=0;for(m=g.length;r<m;++r){var x=
737g[r],F=c,M=h,S=0,Y=0,O;var P=0;for(O=x.length;P<O;++P){var Z=x[P];S+=Z[0];Y+=Z[1];Z[0]=S;Z[1]=Y;xo(Z,F,M)}}}c=[];h=Vd(a.objects);r=0;for(m=h.length;r<m;++r)if("GeometryCollection"===h[r].type){x=h[r];a=c.push;F=a.apply;M=c;Y=x;Z=g;P=d;O=e;var ca=b;Y=Y.geometries;var ea=[];S=0;for(x=Y.length;S<x;++S)ea[S]=us(Y[S],Z,P,O,ca);F.call(a,M,ea)}else x=h[r],c.push(us(x,g,d,e,b));return c}return[]};qh.prototype.za=function(){return this.defaultDataProjection};var xw={Point:function(a,b,c){a=a.coordinates;null===
738b||null===c||xo(a,b,c);return new Ta(a)},LineString:function(a,b){a=Hl(a.arcs,b);return new Ha(a)},Polygon:function(a,b){var c=[],d;var e=0;for(d=a.arcs.length;e<d;++e)c[e]=Hl(a.arcs[e],b);return new Fa(c)},MultiPoint:function(a,b,c){a=a.coordinates;var d;if(null!==b&&null!==c){var e=0;for(d=a.length;e<d;++e)xo(a[e],b,c)}return new $a(a)},MultiLineString:function(a,b){var c=[],d;var e=0;for(d=a.arcs.length;e<d;++e)c[e]=Hl(a.arcs[e],b);return new Qa(c)},MultiPolygon:function(a,b){var c=[],d,e;var g=
7390;for(e=a.arcs.length;g<e;++g){var h=a.arcs[g];var m=[];var r=0;for(d=h.length;r<d;++r)m[r]=Hl(h[r],b);c[g]=m}return new Ra(c)}};I(be,ph);be.prototype.Ob=function(a,b){var c={featureType:this.e,featureNS:this.c};vd(c,Ef(this,a,f(b)?b:{}));c=[c];this.b.b["http://www.opengis.net/gml"].featureMember=mc(oc.prototype.jd);c=ua([],this.b.b,a,c,this.b);f(c)||(c=[]);return c};
739be.prototype.g=function(a){if(Og(a))return xs(a);if(Pg(a))return ua({},ys,a,[]);if(D(a))return a=Wf(a),xs(a)};be.prototype.f=function(a){if(Og(a))return vs(this,
740a);if(Pg(a))return ws(this,a);if(D(a))return a=Wf(a),vs(this,a)};var yw={"http://www.opengis.net/gml":{boundedBy:da(oc.prototype.qe,"bounds")}},az={"http://www.opengis.net/wfs":{totalInserted:da(lf),totalUpdated:da(lf),totalDeleted:da(lf)}},bz={"http://www.opengis.net/ogc":{FeatureId:mc(function(a){return a.getAttribute("fid")})}},cz={"http://www.opengis.net/wfs":{Feature:function(a,b){Of(bz,a,b)}}},ys={"http://www.opengis.net/wfs":{TransactionSummary:da(function(a,b){return ua({},az,a,b)},"transactionSummary"),
741InsertResults:da(function(a,b){return ua([],cz,a,b)},"insertIds")}},dz={"http://www.opengis.net/wfs":{PropertyName:sa(sc)}},Bk={"http://www.opengis.net/wfs":{Insert:sa(function(a,b,c){var d=c[c.length-1];d=jd(d.featureNS,d.featureType);a.appendChild(d);Ya.prototype.Lh(d,b,c)}),Update:sa(function(a,b,c){var d=c[c.length-1],e=d.featureType,g=d.featurePrefix;g=f(g)?g:"feature";var h=d.featureNS;a.setAttribute("typeName",g+":"+e);$f(a,"http://www.w3.org/2000/xmlns/","xmlns:"+g,h);e=b.$;if(f(e)){g=b.C();
742h=[];for(var m=0,r=g.length;m<r;m++){var x=b.get(g[m]);f(x)&&h.push({name:g[m],value:x})}wc({P:a,srsName:d.srsName},Bk,Zd("Property"),h,c);zs(a,e)}}),Delete:sa(function(a,b,c){var d=c[c.length-1];c=d.featureType;var e=d.featurePrefix;e=f(e)?e:"feature";d=d.featureNS;a.setAttribute("typeName",e+":"+c);$f(a,"http://www.w3.org/2000/xmlns/","xmlns:"+e,d);b=b.$;f(b)&&zs(a,b)}),Property:sa(function(a,b,c){var d=jd("http://www.opengis.net/wfs","Name");a.appendChild(d);sc(d,b.name);null!=b.value&&(d=jd("http://www.opengis.net/wfs",
743"Value"),a.appendChild(d),b.value instanceof gc?Ya.prototype.Ae(d,b.value,c):sc(d,b.value))}),Native:sa(function(a,b){f(b.vo)&&a.setAttribute("vendorId",b.vo);f(b.Tn)&&a.setAttribute("safeToIgnore",b.Tn);f(b.value)&&sc(a,b.value)})}},ez={"http://www.opengis.net/wfs":{Query:sa(function(a,b,c){var d=c[c.length-1],e=d.featurePrefix,g=d.featureNS,h=d.propertyNames,m=d.srsName;a.setAttribute("typeName",(f(e)?e+":":"")+b);f(m)&&a.setAttribute("srsName",m);f(g)&&$f(a,"http://www.w3.org/2000/xmlns/","xmlns:"+
744e,g);b=Gd(d);b.P=a;wc(b,dz,Zd("PropertyName"),h,c);d=d.bbox;f(d)&&(h=jd("http://www.opengis.net/ogc","Filter"),b=c[c.length-1].geometryName,e=jd("http://www.opengis.net/ogc","BBOX"),h.appendChild(e),g=jd("http://www.opengis.net/ogc","PropertyName"),sc(g,b),e.appendChild(g),Ya.prototype.Ae(e,d,c),a.appendChild(h))})}};be.prototype.i=function(a){var b=jd("http://www.opengis.net/wfs","GetFeature");b.setAttribute("service","WFS");b.setAttribute("version","1.1.0");f(a)&&(f(a.handle)&&b.setAttribute("handle",
745a.handle),f(a.outputFormat)&&b.setAttribute("outputFormat",a.outputFormat),f(a.maxFeatures)&&b.setAttribute("maxFeatures",a.maxFeatures),f(a.resultType)&&b.setAttribute("resultType",a.resultType),f(a.oo)&&b.setAttribute("startIndex",a.oo),f(a.count)&&b.setAttribute("count",a.count));$f(b,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.d);var c=a.featureTypes;a=[{P:b,srsName:a.srsName,featureNS:f(a.featureNS)?a.featureNS:this.c,featurePrefix:a.featurePrefix,geometryName:a.geometryName,
746bbox:a.bbox,bh:f(a.bh)?a.bh:[]}];var d=Gd(a[a.length-1]);d.P=b;wc(d,ez,Zd("Query"),c,a);return b};be.prototype.o=function(a,b,c,d){var e=[],g=jd("http://www.opengis.net/wfs","Transaction");g.setAttribute("service","WFS");g.setAttribute("version","1.1.0");var h,m;f(d)&&(h=f(d.gmlOptions)?d.gmlOptions:{},f(d.handle)&&g.setAttribute("handle",d.handle));$f(g,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.d);null!=a&&(m={P:g,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},
747vd(m,h),wc(m,Bk,Zd("Insert"),a,e));null!=b&&(m={P:g,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},vd(m,h),wc(m,Bk,Zd("Update"),b,e));null!=c&&wc({P:g,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},Bk,Zd("Delete"),c,e);f(d.nativeElements)&&wc({P:g,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},Bk,Zd("Native"),d.nativeElements,e);return g};be.prototype.sf=function(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==
748a.nodeType)return this.te(a);return null};
748be.prototype.te=function(a){if(null!=a.firstElementChild&&null!=a.firstElementChild.firstElementChild)for(a=a.firstElementChild.firstElementChild,a=a.firstElementChild;null!==a;a=a.nextElementSibling)if(0!==a.childNodes.length&&(1!==a.childNodes.length||3!==a.firstChild.nodeType)){var b=[{}];this.b.qe(a,b);return Ka(b.pop().srsName)}return null};I(af,ok);var zw={Point:As,LineString:yo,Polygon:Bs,MultiPoint:function(a){var b=[];a=a.ce();for(var c=0,d=a.length;c<
749d;++c)b.push("("+As(a[c])+")");return b.join(",")},MultiLineString:function(a){var b=[];a=a.ad();for(var c=0,d=a.length;c<d;++c)b.push("("+yo(a[c])+")");return b.join(",")},MultiPolygon:function(a){var b=[];a=a.Id();for(var c=0,d=a.length;c<d;++c)b.push("("+Bs(a[c])+")");return b.join(",")},GeometryCollection:function(a){var b=[];a=a.Vf();for(var c=0,d=a.length;c<d;++c)b.push(Cs(a[c]));return b.join(",")}};l=af.prototype;l.hd=function(a,b){a=this.kd(a,b);return f(a)?(b=new Wa,b.La(a),b):null};l.pf=
750function(a,b){var c=[];a=this.kd(a,b);this.b&&"GeometryCollection"==a.M()?c=a.d:c=[a];b=[];for(var d=0,e=c.length;d<e;++d)a=new Wa,a.La(c[d]),b.push(a);return b};l.kd=function(a,b){a=new rh(new Aw(a));a.b=Il(a.a);a=Es(a);return f(a)?Sd(a,!1,b):null};l.ye=function(a,b){a=a.Q();return f(a)?this.rd(a,b):""};l.Mh=function(a,b){if(1==a.length)return this.ye(a[0],b);for(var c=[],d=0,e=a.length;d<e;++d)c.push(a[d].Q());c=new sb(c);return this.rd(c,b)};l.rd=function(a,b){return Cs(Sd(a,!0,b))};l=rh.prototype;
751l.match=function(a){if(a=this.b.type==a)this.b=Il(this.a);return a};l.lf=function(){if(this.match(2)){var a=zo(this);if(this.match(3))return a}else if(ci(this))return null;throw Error(Lg(this));};l.kf=function(){if(this.match(2)){var a=Fs(this);if(this.match(3))return a}else if(ci(this))return[];throw Error(Lg(this));};l.mf=function(){if(this.match(2)){var a=Gs(this);if(this.match(3))return a}else if(ci(this))return[];throw Error(Lg(this));};l.kn=function(){if(this.match(2)){var a;if(2==this.b.type)for(a=
752[this.lf()];this.match(5);)a.push(this.lf());else a=Fs(this);if(this.match(3))return a}else if(ci(this))return[];throw Error(Lg(this));};l.jn=function(){if(this.match(2)){var a=Gs(this);if(this.match(3))return a}else if(ci(this))return[];throw Error(Lg(this));};l.ln=function(){if(this.match(2)){for(var a=[this.mf()];this.match(5);)a.push(this.mf());if(this.match(3))return a}else if(ci(this))return[];throw Error(Lg(this));};var Cw={POINT:Ta,LINESTRING:Ha,POLYGON:Fa,MULTIPOINT:$a,MULTILINESTRING:Qa,
753MULTIPOLYGON:Ra},Bw={POINT:rh.prototype.lf,LINESTRING:rh.prototype.kf,POLYGON:rh.prototype.mf,MULTIPOINT:rh.prototype.kn,MULTILINESTRING:rh.prototype.jn,MULTIPOLYGON:rh.prototype.ln};I(dj,Fl);dj.prototype.a=function(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return this.b(a);return null};dj.prototype.b=function(a){this.version=vg(a.getAttribute("version"));a=ua({version:this.version},fz,a,[]);return f(a)?a:null};var De=[null,"http://www.opengis.net/wms"],fz=Ca(De,{Service:da(function(a,
754b){return ua({},gz,a,b)}),Capability:da(function(a,b){return ua({},hz,a,b)})}),hz=Ca(De,{Request:da(function(a,b){return ua({},iz,a,b)}),Exception:da(function(a,b){return ua([],jz,a,b)}),Layer:da(function(a,b){return ua({},Kt,a,b)})}),gz=Ca(De,{Name:da(Aa),Title:da(Aa),Abstract:da(Aa),KeywordList:da(Is),OnlineResource:da(cj),ContactInformation:da(function(a,b){return ua({},kz,a,b)}),Fees:da(Aa),AccessConstraints:da(Aa),LayerLimit:da(lf),MaxWidth:da(lf),MaxHeight:da(lf)}),kz=Ca(De,{ContactPersonPrimary:da(function(a,
755b){return ua({},lz,a,b)}),ContactPosition:da(Aa),ContactAddress:da(function(a,b){return ua({},mz,a,b)}),ContactVoiceTelephone:da(Aa),ContactFacsimileTelephone:da(Aa),ContactElectronicMailAddress:da(Aa)}),lz=Ca(De,{ContactPerson:da(Aa),ContactOrganization:da(Aa)}),mz=Ca(De,{AddressType:da(Aa),Address:da(Aa),City:da(Aa),StateOrProvince:da(Aa),PostCode:da(Aa),Country:da(Aa)}),jz=Ca(De,{Format:mc(Aa)}),Kt=Ca(De,{Name:da(Aa),Title:da(Aa),Abstract:da(Aa),KeywordList:da(Is),CRS:Ed(Aa),EX_GeographicBoundingBox:da(function(a,
756b){a=ua({},nz,a,b);if(f(a)){b=a.westBoundLongitude;var c=a.southBoundLatitude,d=a.eastBoundLongitude;a=a.northBoundLatitude;return f(b)&&f(c)&&f(d)&&f(a)?[b,c,d,a]:void 0}}),BoundingBox:Ed(function(a){var b=[Hg(a.getAttribute("minx")),Hg(a.getAttribute("miny")),Hg(a.getAttribute("maxx")),Hg(a.getAttribute("maxy"))],c=[Hg(a.getAttribute("resx")),Hg(a.getAttribute("resy"))];return{crs:a.getAttribute("CRS"),extent:b,res:c}}),Dimension:Ed(function(a){return{name:a.getAttribute("name"),units:a.getAttribute("units"),
757unitSymbol:a.getAttribute("unitSymbol"),"default":a.getAttribute("default"),multipleValues:$h(a.getAttribute("multipleValues")),nearestValue:$h(a.getAttribute("nearestValue")),current:$h(a.getAttribute("current")),values:Aa(a)}}),Attribution:da(function(a,b){return ua({},oz,a,b)}),AuthorityURL:Ed(function(a,b){b=Mg(a,b);if(f(b))return b.name=a.getAttribute("name"),b}),Identifier:Ed(Aa),MetadataURL:Ed(function(a,b){b=Mg(a,b);if(f(b))return b.type=a.getAttribute("type"),b}),DataURL:Ed(Mg),FeatureListURL:Ed(Mg),
758Style:Ed(function(a,b){return ua({},pz,a,b)}),MinScaleDenominator:da(Od),MaxScaleDenominator:da(Od),Layer:Ed(function(a,b){var c=b[b.length-1],d=ua({},Kt,a,b);
758if(f(d))return b=$h(a.getAttribute("queryable")),f(b)||(b=c.queryable),d.queryable=f(b)?b:!1,b=Yf(a.getAttribute("cascaded")),f(b)||(b=c.cascaded),d.cascaded=b,b=$h(a.getAttribute("opaque")),f(b)||(b=c.opaque),d.opaque=f(b)?b:!1,b=$h(a.getAttribute("noSubsets")),f(b)||(b=c.noSubsets),d.noSubsets=f(b)?b:!1,b=Hg(a.getAttribute("fixedWidth")),
759f(b)||(b=c.fixedWidth),d.fixedWidth=b,b=Hg(a.getAttribute("fixedHeight")),f(b)||(b=c.fixedHeight),d.fixedHeight=b,Oa(["Style","CRS","AuthorityURL"],function(e){var g=c[e];if(f(g)){var h=pj(d,e);h=h.concat(g);d[e]=h}}),Oa("EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" "),function(e){f(d[e])||(d[e]=c[e])}),d})}),oz=Ca(De,{Title:da(Aa),OnlineResource:da(cj),LogoURL:da(Hs)}),nz=Ca(De,{westBoundLongitude:da(Od),eastBoundLongitude:da(Od),southBoundLatitude:da(Od),
760northBoundLatitude:da(Od)}),iz=Ca(De,{GetCapabilities:da(Ao),GetMap:da(Ao),GetFeatureInfo:da(Ao)}),Ew=Ca(De,{Format:Ed(Aa),DCPType:Ed(function(a,b){return ua({},qz,a,b)})}),qz=Ca(De,{HTTP:da(function(a,b){return ua({},rz,a,b)})}),rz=Ca(De,{Get:da(Mg),Post:da(Mg)}),pz=Ca(De,{Name:da(Aa),Title:da(Aa),Abstract:da(Aa),LegendURL:Ed(Hs),StyleSheetURL:da(Mg),StyleURL:da(Mg)}),Dw=Ca(De,{Format:da(Aa),OnlineResource:da(cj)}),Fw=Ca(De,{Keyword:mc(Aa)});I(rk,ph);rk.prototype.Ob=function(a,b){var c={featureType:this.featureType,
761featureNS:this.featureNS};f(b)&&vd(c,Ef(this,a,b));return Gw(this,a,[c])};I(ej,Fl);ej.prototype.a=function(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return this.b(a);return null};ej.prototype.b=function(a){this.version=vg(a.getAttribute("version"));var b=this.d.b(a);if(!f(b))return null;b.version=this.version;b=ua(b,sz,a,[]);return f(b)?b:null};var hi=[null,"http://www.opengis.net/wmts/1.0"],Ck=[null,"http://www.opengis.net/ows/1.1"],sz=Ca(hi,{Contents:da(function(a,b){return ua({},
762tz,a,b)})}),tz=Ca(hi,{Layer:Ed(function(a,b){return ua({},uz,a,b)}),TileMatrixSet:Ed(function(a,b){return ua({},vz,a,b)})}),uz=Ca(hi,{Style:Ed(function(a,b){b=ua({},wz,a,b);if(f(b))return a="true"===a.getAttribute("isDefault"),b.isDefault=a,b}),Format:Ed(Aa),TileMatrixSetLink:Ed(function(a,b){return ua({},xz,a,b)}),ResourceURL:Ed(function(a){var b=a.getAttribute("format"),c=a.getAttribute("template");a=a.getAttribute("resourceType");var d={};f(b)&&(d.format=b);f(c)&&(d.template=c);f(a)&&(d.resourceType=
763a);return d})},Ca(Ck,{Title:da(Aa),Abstract:da(Aa),WGS84BoundingBox:da(function(a,b){a=ua([],yz,a,b);return 2!=a.length?void 0:ne(a)}),Identifier:da(Aa)})),wz=Ca(hi,{LegendURL:Ed(function(a){var b={};b.format=a.getAttribute("format");b.href=cj(a);return b})},Ca(Ck,{Title:da(Aa),Identifier:da(Aa)})),xz=Ca(hi,{TileMatrixSet:da(Aa)}),yz=Ca(Ck,{LowerCorner:mc(Bo),UpperCorner:mc(Bo)}),vz=Ca(hi,{WellKnownScaleSet:da(Aa),TileMatrix:Ed(function(a,b){return ua({},zz,a,b)})},Ca(Ck,{SupportedCRS:da(Aa),Identifier:da(Aa)})),
764zz=Ca(hi,{TopLeftCorner:da(Bo),ScaleDenominator:da(Od),TileWidth:da(lf),TileHeight:da(lf),MatrixWidth:da(lf),MatrixHeight:da(lf)},Ca(Ck,{Identifier:da(Aa)})),Az=new nd(6378137);I(tb,ub);l=tb.prototype;l.O=function(){this.Zd(!1);tb.S.O.call(this)};l.Vk=function(){var a=this.sg();null!=a&&(this.d=Qd(Ka("EPSG:4326"),a),null===this.a||this.set("position",this.d(this.a)))};l.Wk=function(){if(rt){var a=this.tg();a&&!f(this.c)?this.c=gb.navigator.geolocation.watchPosition(J(this.tn,this),J(this.vn,this),
765this.bg()):!a&&f(this.c)&&(gb.navigator.geolocation.clearWatch(this.c),this.c=void 0)}};l.tn=function(a){a=a.coords;this.set("accuracy",a.accuracy);this.set("altitude",null===a.altitude?void 0:a.altitude);this.set("altitudeAccuracy",null===a.altitudeAccuracy?void 0:a.altitudeAccuracy);this.set("heading",null===a.heading?void 0:me(a.heading));null===this.a?this.a=[a.longitude,a.latitude]:(this.a[0]=a.longitude,this.a[1]=a.latitude);var b=this.d(this.a);this.set("position",b);this.set("speed",null===
766a.speed?void 0:a.speed);a=dq(Az,this.a,a.accuracy);a.qa(this.d);this.set("accuracyGeometry",a);this.k()};l.vn=function(a){a.type="error";this.Zd(!1);this.dispatchEvent(a)};l.Ki=function(){return this.get("accuracy")};l.Li=function(){return this.get("accuracyGeometry")||null};l.Ni=function(){return this.get("altitude")};l.Oi=function(){return this.get("altitudeAccuracy")};l.Tk=function(){return this.get("heading")};l.Uk=function(){return this.get("position")};l.sg=function(){return this.get("projection")};
767l.vj=function(){return this.get("speed")};l.tg=function(){return this.get("tracking")};l.bg=function(){return this.get("trackingOptions")};l.ug=function(a){this.set("projection",a)};l.Zd=function(a){this.set("tracking",a)};l.Dh=function(a){this.set("trackingOptions",a)};var Jw=new Lc({color:"rgba(0,0,0,0.2)"}),So=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];l=sg.prototype;l.Xk=function(){return this.g};l.kj=function(){return this.b};l.pj=function(){return this.a};l.gg=function(a){var b=
768a.vectorContext,c=a.frameState;a=c.extent;var d=c.viewState,e=d.center,g=d.projection;d=d.resolution;c=c.pixelRatio;c=d*d/(4*c*c);if(null===this.i||!sd(this.i,g)){var h=g.G(),m=g.g,r=m[2],x=m[1],F=m[0];this.c=m[3];this.d=r;this.e=x;this.f=F;m=Ka("EPSG:4326");this.q=Wc(m,g);this.o=Wc(g,m);this.l=this.o(y(h));this.i=g}g=this.l[0];h=this.l[1];m=-1;
768x=Math.pow(this.n*d,2);F=[];var M=[];d=0;for(r=So.length;d<r;++d){var S=So[d]/2;F[0]=g-S;F[1]=h-S;M[0]=g+S;M[1]=h+S;this.q(F,F);this.q(M,M);S=Math.pow(M[0]-
769F[0],2)+Math.pow(M[1]-F[1],2);if(S<=x)break;m=So[d]}d=m;if(-1==d)this.b.length=this.a.length=0;else{g=this.o(e);e=g[0];g=g[1];h=this.U;e=Math.floor(e/d)*d;x=Hd(e,this.f,this.d);r=Co(this,x,c,a,0);for(m=0;x!=this.f&&m++<h;)x=Math.max(x-d,this.f),r=Co(this,x,c,a,r);x=Hd(e,this.f,this.d);for(m=0;x!=this.d&&m++<h;)x=Math.min(x+d,this.d),r=Co(this,x,c,a,r);this.b.length=r;g=Math.floor(g/d)*d;e=Hd(g,this.e,this.c);r=Do(this,e,c,a,0);for(m=0;e!=this.e&&m++<h;)e=Math.max(e-d,this.e),r=Do(this,e,c,a,r);e=
770Hd(g,this.e,this.c);for(m=0;e!=this.c&&m++<h;)e=Math.min(e+d,this.c),r=Do(this,e,c,a,r);this.a.length=r}b.Aa(null,this.V);a=0;for(c=this.b.length;a<c;++a)e=this.b[a],b.zb(e,null);a=0;for(c=this.a.length;a<c;++a)e=this.a[a],b.zb(e,null)};l.setMap=function(a){null!==this.g&&(this.g.u("postcompose",this.gg,this),this.g.render());null!==a&&(a.r("postcompose",this.gg,this),a.render());this.g=a};I(tg,Di);tg.prototype.b=function(a){if(f(a)){var b=C(a);if(b in this.d)return this.d[b];a=le(this.d)?this.a:
771this.a.cloneNode(!1);return this.d[b]=a}return this.a};tg.prototype.q=function(){this.state=3;Oa(this.c,Hb);this.c=null;this.dispatchEvent("change")};tg.prototype.l=function(){f(this.resolution)||(this.resolution=R(this.extent)/this.a.height);this.state=2;Oa(this.c,Hb);this.c=null;this.dispatchEvent("change")};tg.prototype.load=function(){0==this.state&&(this.state=1,this.dispatchEvent("change"),this.c=[If(this.a,"error",this.q,!1,this),If(this.a,"load",this.l,!1,this)],this.g(this,this.i))};I(ug,
772Uf);l=ug.prototype;l.O=function(){1==this.state&&Eo(this);ug.S.O.call(this)};l.Ma=function(a){if(f(a)){var b=C(a);if(b in this.c)return this.c[b];a=le(this.c)?this.a:this.a.cloneNode(!1);return this.c[b]=a}return this.a};l.gb=function(){return this.g};l.Yk=function(){this.state=3;Eo(this);Jj(this)};l.Zk=function(){this.state=this.a.naturalWidth&&this.a.naturalHeight?2:4;Eo(this);Jj(this)};l.load=function(){0==this.state&&(this.state=1,Jj(this),this.e=[If(this.a,"error",this.Yk,!1,this),If(this.a,
773"load",this.Zk,!1,this)],this.i(this,this.g))};I(Jl,Tc);l=Jl.prototype;l.Zc=!1;l.O=function(){Jl.S.O.call(this);this.b.Yc()};l.$m=function(a){var b=a.b.dataTransfer;(this.Zc=!(!b||!(b.types&&(Nc(b.types,"Files")||Nc(b.types,"public.file-url"))||b.files&&0<b.files.length)))&&a.preventDefault()};l.an=function(a){this.Zc&&(a.preventDefault(),a.b.dataTransfer.dropEffect="none")};l.bn=function(a){this.Zc&&(a.preventDefault(),a.fb(),a=a.b.dataTransfer,a.effectAllowed="all",a.dropEffect="copy")};l.cn=function(a){this.Zc&&
774(a.preventDefault(),a.fb(),a=new Se(a.b),a.type="drop",this.dispatchEvent(a))};sh.prototype.cancel=function(a){if(this.b)this.c instanceof sh&&this.c.cancel();else{if(this.a){var b=this.a;delete this.a;a?b.cancel(a):(b.i--,0>=b.i&&b.cancel())}this.U?this.U.call(this.o,this):this.q=!0;this.b||(a=new sk,fj(this),di(this,!1,a))}};sh.prototype.l=function(a,b){this.g=!1;di(this,a,b)};sh.prototype.then=function(a,b,c){var d,e,g=new nh(function(h,m){d=h;e=m});Ll(this,d,function(h){h instanceof sk?g.cancel():
775e(h)});return g.then(a,b,c)};Aq(sh);I(Kl,ia);Kl.prototype.message="Deferred has already fired";Kl.prototype.name="AlreadyCalledError";I(sk,ia);sk.prototype.message="Deferred was canceled";sk.prototype.name="CanceledError";Ms.prototype.a=function(){delete Ml[this.$];throw this.b;};var Ml={};I(Ns,ia);var Os={AbortError:3,EncodingError:5,InvalidModificationError:9,InvalidStateError:7,NotFoundError:1,NotReadableError:4,NoModificationAllowedError:6,PathExistsError:12,QuotaExceededError:10,SecurityError:2,
776SyntaxError:8,TypeMismatchError:11};I(Ps,tc);I(gj,Tc);gj.prototype.getError=function(){return this.Ya.error&&new Ns(this.Ya.error,"reading file")};gj.prototype.b=function(a){this.dispatchEvent(new Ps(a,this))};gj.prototype.O=function(){gj.S.O.call(this);delete this.Ya};I(Dc,Jb);Dc.prototype.O=function(){f(this.a)&&Hb(this.a);Dc.S.O.call(this)};Dc.prototype.g=function(a){a=a.b.dataTransfer.files;var b,c;var d=0;for(b=a.length;d<b;++d){var e=c=a[d],g=new gj,h=Nw(g);g.Ya.readAsText(e,"");Ll(h,V(this.i,
777c),null,this)}};Dc.prototype.i=function(a,b){var c=this.l,d=this.o;null===d&&(d=c.R().e);c=this.f;var e=[],g;var h=0;for(g=c.length;h<g;++h){var m=new c[h];try{var r=m.ja(b)}catch(Y){r=null}if(null!==r){m=m.za(b);m=Wc(m,d);var x;var F=0;for(x=r.length;F<x;++F){var M=r[F],S=M.Q();null!=S&&S.qa(m);e.push(M)}}}this.dispatchEvent(new th(Bz,this,a,e,d))};Dc.prototype.setMap=function(a){f(this.a)&&(Hb(this.a),this.a=void 0);null!==this.e&&(qf(this.e),this.e=null);Dc.S.setMap.call(this,a);null!==a&&(this.e=
778new Jl(a.a),this.a=ma(this.e,"drop",this.g,!1,this))};var Bz="addfeatures";I(th,tc);I(ei,Ve);ei.prototype.clone=function(){return new ei(this.x,this.y)};ei.prototype.scale=Ve.prototype.scale;ei.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};ei.prototype.rotate=function(a){var b=Math.cos(a);a=Math.sin(a);var c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};I(md,Db);I(tk,tc);I(xc,Db);xc.prototype.setMap=function(a){xc.S.setMap.call(this,a);this.Ra()};xc.prototype.X=
779function(){var a=Us(this),b,c=a.Q();this.a===hj?b=c.K():this.a===uh?(b=c.K(),b.pop(),c.W(b)):this.a===vh&&(this.f[0].pop(),this.f[0].push(this.f[0][0]),c.W(this.f),b=c.K());"MultiPoint"===this.L?a.La(new $a([b])):"MultiLineString"===this.L?a.La(new Qa([b])):"MultiPolygon"===this.L&&a.La(new Ra([b]));this.dispatchEvent(new tk("drawend",a));null===this.oa||this.oa.push(a);null===this.Ga||this.Ga.jf(a)};xc.prototype.nc=hf;xc.prototype.Ra=function(){var a=this.l,b=this.c();null!==a&&b||Us(this);this.T.setMap(b?
780a:null)};var hj="Point",uh="LineString",vh="Polygon",uk="Circle";I(ed,Db);l=ed.prototype;l.Cg=function(a){var b=a.Q();f(this.H[b.M()])&&this.H[b.M()].call(this,a,b);a=this.l;null===a||Go(this,this.L,a)};l.setMap=function(a){this.n.setMap(a);ed.S.setMap.call(this,a)};l.vl=function(a){this.Cg(a.element)};l.wl=function(a){var b=a.element;a=this.a;var c,d=[];Wi(a,b.Q().G(),function(e){b===e.feature&&d.push(e)});for(c=d.length-1;0<=c;--c)a.remove(d[c]);null!==this.f&&0===this.p.Ib()&&(this.n.Yd(this.f),
781this.f=null)};l.Bl=function(a,b){var c=b.K();c={feature:a,geometry:b,aa:[c,c]};this.a.ha(b.G(),c)};l.zl=function(a,b){var c=b.K(),d;var e=0;for(d=c.length;e<d;++e){var g=c[e];g={feature:a,geometry:b,depth:[e],index:e,aa:[g,g]};this.a.ha(b.G(),g)}};l.Dg=function(a,b){var c=b.K(),d;var e=0;for(d=c.length-1;e<d;++e){var g=c.slice(e,e+2);var h={feature:a,geometry:b,index:e,aa:g};this.a.ha(ne(g),h)}};l.yl=function(a,b){var c=b.K(),d,e;var g=0;for(e=c.length;g<e;++g){var h=c[g];var m=0;for(d=h.length-1;m<
782d;++m){var r=h.slice(m,m+2);var x={feature:a,geometry:b,depth:[g],index:m,aa:r};this.a.ha(ne(r),x)}}};l.Cl=function(a,b){var c=b.K(),d,e;var g=0;for(e=c.length;g<e;++g){var h=c[g];var m=0;for(d=h.length-1;m<d;++m){var r=h.slice(m,m+2);var x={feature:a,geometry:b,depth:[g],index:m,aa:r};this.a.ha(ne(r),x)}}};l.Al=function(a,b){var c=b.K(),d,e,g;var h=0;for(g=c.length;h<g;++h){var m=c[h];var r=0;for(e=m.length;r<e;++r){var x=m[r];var F=0;for(d=x.length-1;F<d;++F){var M=x.slice(F,F+2);var S={feature:a,
783geometry:b,depth:[r,h],index:F,aa:M};this.a.ha(ne(M),S)}}}};l.xl=function(a,b){var c=b.d;for(b=0;b<c.length;++b)this.H[c[b].M()].call(this,a,c[b])};l.qk=function(a,b){for(var c=a.aa,d=a.feature,e=a.geometry,g=a.depth,h=a.index,m;b.length<e.s;)b.push(0);switch(e.M()){case "MultiLineString":m=e.K();m[g[0]].splice(h+1,0,b);break;case "Polygon":m=e.K();m[g[0]].splice(h+1,0,b);break;case "MultiPolygon":m=e.K();m[g[1]][g[0]].splice(h+1,0,b);break;case "LineString":m=e.K();m.splice(h+1,0,b);break;default:return}e.W(m);
784m=this.a;m.remove(a);Xs(this,e,h,g,1);a={aa:[c[0],b],feature:d,geometry:e,depth:g,index:h};m.ha(ne(a.aa),a);this.g.push([a,1]);c={aa:[b,c[1]],feature:d,geometry:e,depth:g,index:h+1};m.ha(ne(c.aa),c);this.g.push([c,0])};I(ij,tc);I(pc,Jb);pc.prototype.p=function(){return this.a.b};pc.prototype.setMap=function(a){var b=this.l,c=this.a.b;
784null===b||c.forEach(b.Ih,b);pc.S.setMap.call(this,a);this.a.setMap(a);null===a||c.forEach(a.Eh,a)};pc.prototype.n=function(a){a=a.element;var b=this.l;null===b||b.Eh(a)};
785pc.prototype.J=function(a){a=a.element;var b=this.l;null===b||b.Ih(a)};I(Ec,Db);l=Ec.prototype;l.ed=function(a,b){b=f(b)?b:!0;var c=a.Q(),d=this.T[c.M()];if(f(d)){var e=C(a);this.N[e]=c.G(Yd());d.call(this,a,c);b&&(this.H[e]=c.r("change",J(this.Oj,this,a),this),this.p[e]=a.r(Uc(a.a),this.Dl,this))}};l.Hi=function(a){this.ed(a)};l.Ii=function(a){this.fd(a)};l.Eg=function(a){var b;a instanceof qg?b=a.feature:a instanceof Tf&&(b=a.element);this.ed(b)};l.Fg=function(a){var b;a instanceof qg?b=a.feature:
786a instanceof Tf&&(b=a.element);this.fd(b)};l.Dl=function(a){a=a.c;this.fd(a,!0);this.ed(a,!0)};l.Oj=function(a){if(this.o){var b=C(a);b in this.n||(this.n[b]=a)}else this.Jh(a)};l.fd=function(a,b){b=f(b)?b:!0;var c=C(a),d=this.N[c];if(d){var e=this.a,g=[];Wi(e,d,function(h){a===h.feature&&g.push(h)});for(d=g.length-1;0<=d;--d)e.remove(g[d]);b&&(Hb(this.H[c]),delete this.H[c],Hb(this.p[c]),delete this.p[c])}};l.setMap=function(a){var b=this.l,c=this.X,d;null===this.g?null===this.i||(d=this.i.Dc()):
787d=this.g;b&&(Oa(c,Wg),c.length=0,d.forEach(this.Ii,this));Ec.S.setMap.call(this,a);a&&(null!==this.g?(c.push(this.g.r("add",this.Eg,this)),c.push(this.g.r("remove",this.Fg,this))):null!==this.i&&(c.push(this.i.r("addfeature",this.Eg,this)),c.push(this.i.r("removefeature",this.Fg,this))),d.forEach(this.Hi,this))};l.nc=hf;l.Jh=function(a){this.fd(a,!1);this.ed(a,!1)};l.El=function(a,b){var c=b.d;for(b=0;b<c.length;++b)this.T[c[b].M()].call(this,a,c[b])};l.Gg=function(a,b){b=b.K();var c;var d=0;for(c=
788b.length-1;d<c;++d){var e=b.slice(d,d+2);var g={feature:a,aa:e};this.a.ha(ne(e),g)}};l.Fl=function(a,b){b=b.K();var c,d;var e=0;for(d=b.length;e<d;++e){var g=b[e];var h=0;for(c=g.length-1;h<c;++h){var m=g.slice(h,h+2);var r={feature:a,aa:m};this.a.ha(ne(m),r)}}};l.Gl=function(a,b){var c=b.K(),d;var e=0;for(d=c.length;e<d;++e){var g=c[e];g={feature:a,aa:[g,g]};this.a.ha(b.G(),g)}};l.Hl=function(a,b){b=b.K();var c,d,e;var g=0;for(e=b.length;g<e;++g){var h=b[g];var m=0;for(d=h.length;m<d;++m){var r=
789h[m];var x=0;for(c=r.length-1;x<c;++x){var F=r.slice(x,x+2);var M={feature:a,aa:F};this.a.ha(ne(F),M)}}}};l.Il=function(a,b){var c=b.K();c={feature:a,aa:[c,c]};this.a.ha(b.G(),c)};l.Jl=function(a,b){b=b.K();var c,d;var e=0;for(d=b.length;e<d;++e){var g=b[e];var h=0;for(c=g.length-1;h<c;++h){var m=g.slice(h,h+2);var r={feature:a,aa:m};this.a.ha(ne(m),r)}}};I(Ba,Ga);var cx=["#00f","#0ff","#0f0","#ff0","#f00"];l=Ba.prototype;l.Sf=function(){return this.get("blur")};l.Wf=function(){return this.get("gradient")};
790l.Hg=function(){return this.get("radius")};l.Pj=function(){for(var a=this.Wf(),b=se(1,256),c=b.createLinearGradient(0,0,1,256),d=1/(a.length-1),e=0,g=a.length;e<g;++e)c.addColorStop(e*d,a[e]);b.fillStyle=c;b.fillRect(0,0,1,256);this.d=b.getImageData(0,0,1,256).data};l.hg=function(){var a=this.Hg(),b=this.Sf(),c=a+b+1,d=2*c;d=se(d,d);d.shadowOffsetX=d.shadowOffsetY=this.L;d.shadowBlur=b;d.shadowColor="#000";d.beginPath();b=c-this.L;d.arc(b,b,a,0,2*Math.PI,!0);d.fill();this.p=d.canvas.toDataURL();this.l=
791Array(256);this.k()};l.hk=function(a){a=a.context;var b=a.canvas;b=a.getImageData(0,0,b.width,b.height);var c=b.data,d,e;var g=0;for(d=c.length;g<d;g+=4)if(e=4*c[g+3])c[g]=this.d[e],c[g+1]=this.d[e+1],c[g+2]=this.d[e+2];a.putImageData(b,0,0)};l.th=function(a){this.set("blur",a)};l.yh=function(a){this.set("gradient",a)};l.Ig=function(a){this.set("radius",a)};var gx=0,fx=1;I(Ho,ia);var Cz=0;jj.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(Cz++).toString(36)+Lf().toString(36);gb._callbacks_||
792(gb._callbacks_={});var e=this.a.clone();if(a)for(var g in a)if(!a.hasOwnProperty||a.hasOwnProperty(g)){var h=e,m=g,r=a[g];t(r)||(r=[String(r)]);mo(h.b,m,r)}b&&(gb._callbacks_[d]=jx(d,b),b=this.b,g="_callbacks_."+d,t(g)||(g=[String(g)]),mo(e.b,b,g));b=dx(e.toString(),{timeout:this.oc,Bi:!0});Ll(b,null,ix(d,a,c),void 0);return{$:d,Of:b}};jj.prototype.cancel=function(a){a&&(a.Of&&a.Of.cancel(),a.$&&Io(a.$,!1))};I(ib,Yb);l=ib.prototype;l.Vb=function(a,b,c,d,e){var g=this.bb(a,b,c);if(lg(this.a,g))return this.a.get(g);
793a=[a,b,c];
793b=f(e)?e:this.f;c=Cg(this,b);var h=this.H,m;if(m=f(h)){m=a[0];var r=lp(c,m);if(f(r)){var x=mp(b),F=b.G();m=Xd(c.na(m),c.a)[0]*r==x.na(m)*ef(Xe(x,F,m))}else m=b.e}m?h?(h=a[0],m=a[1],b=em(c,h,b),m<b.b||m>b.d?(m=Gf(m,ef(b)),b=[h,m,a[2]]):b=a):(h=a[1],b=em(c,a[0],b),b=h<b.b||h>b.d?null:a):b=a;d=null===b?void 0:this.tileUrlFunction(b,d,e);d=new this.tileClass(a,f(d)?0:4,f(d)?d:"",this.crossOrigin,this.tileLoadFunction);ma(d,"change",this.nm,!1,this);this.a.set(g,d);return d};l.Ua=function(){return this.tileLoadFunction};
794l.Va=function(){return this.tileUrlFunction};l.nm=function(a){a=a.target;switch(a.state){case 1:this.dispatchEvent(new Ai("tileloadstart",a));break;case 2:this.dispatchEvent(new Ai("tileloadend",a));break;case 3:this.dispatchEvent(new Ai("tileloaderror",a))}};l.$a=function(a){this.a.clear();this.tileLoadFunction=a;this.k()};l.pa=function(a){this.a.clear();this.tileUrlFunction=a;this.k()};l.yf=function(a,b,c){a=this.bb(a,b,c);lg(this.a,a)&&this.a.get(a)};I(Ad,yd);Ad.prototype.yb=function(a){a=f(a)?
795a:{};var b=this.minZoom,c=this.maxZoom,d=null;if(f(a.extent)){d=Array(c+1);var e;for(e=0;e<=c;++e)d[e]=e<b?null:Xe(this,a.extent,e)}return function(g,h,m){h=g[0];if(h<b||c<h)return null;var r=g[1];g=g[2];return g<-Math.pow(2,h)||-1<g||null!==d&&!Cj(d[h],r,g)?null:ri(h,r,-g-1,m)}};Ad.prototype.Ld=function(a,b){if(a[0]<this.maxZoom){var c=2*a[1];a=2*a[2];return si(c,c+1,a,a+1,b)}return null};Ad.prototype.Ad=function(a,b,c,d){d=si(0,a[1],0,a[2],d);for(a=a[0]-1;a>=this.minZoom;--a)if(d.b=d.d>>=1,d.c=
796d.a>>=1,b.call(c,a,d))return!0;return!1};I(Qb,ib);var Lt=new ff({html:'\x3ca class\x3d"ol-attribution-bing-tos" href\x3d"http://www.microsoft.com/maps/product/terms.html"\x3eTerms of Use\x3c/a\x3e'});Qb.prototype.i=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)xi(this,"error");else{var b=a.brandLogoUri;-1==b.indexOf("https")&&(b=b.replace("http","https"));var c=a.resourceSets[0].resources[0],
797d=-1==this.e?c.zoomMax:this.e,e=new Ad({extent:zi(this.f),minZoom:c.zoomMin,maxZoom:d,tileSize:c.imageWidth==c.imageHeight?c.imageWidth:[c.imageWidth,c.imageHeight]});this.tileGrid=e;var g=this.g;this.tileUrlFunction=lj(e.yb(),Jo(Jc(c.imageUrlSubdomains,function(m){var r=c.imageUrl.replace("{subdomain}",m).replace("{culture}",g);return function(x){if(null===x)var F=void 0;else{F=r.replace;var M=x[0],S=Array(M),Y=1<<M-1,O;for(O=0;O<M;++O){var P=48;x[1]&Y&&(P+=1);x[2]&Y&&(P+=2);S[O]=String.fromCharCode(P);
798Y>>=1}x=S.join("");F=F.call(r,"{quadkey}",x)}return F}})));if(c.imageryProviders){var h=Qd(Ka("EPSG:4326"),this.f);a=Jc(c.imageryProviders,function(m){var r=m.attribution,x={};Oa(m.coverageAreas,function(F){var M=F.zoomMin,S=Math.min(F.zoomMax,d);F=F.bbox;F=vb([F[1],F[0],F[3],F[2]],h);var Y;for(Y=M;Y<=S;++Y){var O=Y.toString();M=Xe(e,F,Y);O in x?x[O].push(M):x[O]=[M]}});return new ff({html:r,tileRanges:x})});a.push(Lt);this.d=a}this.L=b;xi(this,"ready")}};I(ab,bb);ab.prototype.X=function(){return this.l};
799ab.prototype.ac=function(a,b,c){b!==this.p&&(this.clear(),this.p=b,this.l.ac(a,b,c),Zs(this),this.Oc(this.n))};ab.prototype.ba=function(){this.clear();Zs(this);this.Oc(this.n);this.k()};I($b,Zb);l=$b.prototype;l.Tl=function(){return this.e};l.Cc=function(a,b,c,d){b=wn(this,b);c=this.X?c:1;var e=this.c;if(null!==e&&this.p==this.b&&e.resolution==b&&e.e==c&&qe(e.G(),a))return e;1!=this.n&&(a=a.slice(),Vc(a,this.n));d=this.J(a,[la(a)/b*c,R(a)/b*c],d);f(d)?(e=new tg(a,b,c,this.d,d,this.T,this.a),ma(e,
800"change",this.i,!1,this)):e=null;this.c=e;this.p=this.b;return e};l.Sl=function(){return this.a};l.Wl=function(a){vd(this.e,a);this.k()};l.Ul=function(a,b,c,d){var e=this.N;var g=la(c),h=R(c),m=d[0],r=d[1],x=.0254/this.g;e=r*g>m*h?g*e/(m*x):h*e/(r*x);c=y(c);d={OPERATION:this.ba?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.g,SETDISPLAYWIDTH:Math.round(d[0]),SETDISPLAYHEIGHT:Math.round(d[1]),SETVIEWSCALE:e,
801SETVIEWCENTERX:c[0],SETVIEWCENTERY:c[1]};vd(d,b);return Ti(Ui([a],d))};l.Vl=function(a){this.c=null;this.a=a;this.k()};I(Ic,Zb);Ic.prototype.Cc=function(a){return ta(a,this.a.G())?this.a:null};I(Eb,Zb);var Mt=[101,101];l=Eb.prototype;l.bm=function(a,b,c,d){if(f(this.e)){var e=L(a,b,0,Mt),g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.c.LAYERS};vd(g,this.c,d);d=Math.floor((e[3]-a[1])/b);g[this.g?"I":"X"]=Math.floor((a[0]-e[0])/b);g[this.g?
802"J":"Y"]=d;return at(this,e,Mt,1,Ka(c),g)}};l.dm=function(){return this.c};l.Cc=function(a,b,c,d){if(!f(this.e))return null;b=wn(this,b);1==c||this.ba&&f(this.T)||(c=1);var e=this.a;if(null!==e&&this.N==this.b&&e.resolution==b&&e.e==c&&qe(e.G(),a))return e;e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};vd(e,this.c);a=a.slice();var g=(a[0]+a[2])/2,h=(a[1]+a[3])/2;if(1!=this.J){var m=this.J*la(a)/2,r=this.J*R(a)/2;a[0]=g-m;a[1]=h-r;a[2]=g+m;a[3]=h+r}m=b/c;r=Math.ceil(la(a)/
803m);var x=Math.ceil(R(a)/m);a[0]=g-m*r/2;a[2]=g+m*r/2;a[1]=h-m*x/2;a[3]=h+m*x/2;this.p[0]=r;this.p[1]=x;d=at(this,a,this.p,c,d,e);this.a=new tg(a,b,c,this.d,d,this.X,this.n);this.N=this.b;ma(this.a,"change",this.i,!1,this);return this.a};l.cm=function(){return this.n};l.em=function(){return this.e};l.fm=function(a){this.a=null;this.n=a;this.k()};l.gm=function(a){a!=this.e&&(this.e=a,this.a=null,this.k())};l.hm=function(a){vd(this.c,a);$s(this);this.a=null;this.k()};I(rb,ib);rb.prototype.pa=function(a){rb.S.pa.call(this,
804lj(this.l,a))};rb.prototype.e=function(a){this.pa(kj(fi(a)))};I(Kb,rb);var wk=new ff({html:'\x26copy; \x3ca href\x3d"http://www.openstreetmap.org/copyright"\x3eOpenStreetMap\x3c/a\x3e c
804ontributors.'});I(Fb,rb);var To=new ff({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/"\x3eMapQuest\x3c/a\x3e'}),nx={osm:{maxZoom:19,attributions:[To,wk]},sat:{maxZoom:18,attributions:[To,new ff({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,
805attributions:[To,wk]}};Fb.prototype.i=function(){return this.g};var ox={terrain:{Ta:"jpg",opaque:!0},"terrain-background":{Ta:"jpg",opaque:!0},"terrain-labels":{Ta:"png",opaque:!1},"terrain-lines":{Ta:"png",opaque:!1},"toner-background":{Ta:"png",opaque:!0},toner:{Ta:"png",opaque:!0},"toner-hybrid":{Ta:"png",opaque:!1},"toner-labels":{Ta:"png",opaque:!1},"toner-lines":{Ta:"png",opaque:!1},"toner-lite":{Ta:"png",opaque:!0},watercolor:{Ta:"jpg",opaque:!0}},qx={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,
806maxZoom:20},watercolor:{minZoom:3,maxZoom:16}};I(Lb,rb);var px=[new ff({html:'Map tiles by \x3ca href\x3d"http://stamen.com/"\x3eStamen Design\x3c/a\x3e, under \x3ca href\x3d"http://creativecommons.org/licenses/by/3.0/"\x3eCC BY 3.0\x3c/a\x3e.'}),wk];I(nb,ib);l=nb.prototype;l.im=function(){return this.e};l.Xb=function(a,b,c){a=nb.S.Xb.call(this,a,b,c);return 1==b?a:Bh(a,b,this.c)};l.jm=function(){return this.g};l.km=function(a){a=f(a)?fi(a):null;this.Ng(a)};l.Ng=function(a){this.g=null!=a?a:[];this.k()};
807l.lm=function(a,b,c){var d=this.tileGrid;null===d&&(d=Cg(this,c));if(!(d.b.length<=a[0])){var e=Bf(d,a,this.i),g=Xd(d.na(a[0]),this.c);1!=b&&(g=Bh(g,b,this.c));d={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};vd(d,this.e);var h=this.g;0==h.length?a=void 0:(c=c.b.split(":").pop(),d.SIZE=g[0]+","+g[1],d.BBOX=e.join(","),d.BBOXSR=c,d.IMAGESR=c,d.DPI=90*b,a=1==h.length?h[0]:h[Gf((a[1]<<a[0])+a[2],h.length)],ra(a,"/")||(a+="/"),ra(a,"MapServer/")?a+="export":ra(a,"ImageServer/")&&(a+="exportImage"),a=Ti(Ui([a],
808d)));return a}};l.mm=function(a){vd(this.e,a);this.k()};I(Ko,Uf);Ko.prototype.Ma=function(a){a=f(a)?C(a):-1;if(a in this.a)return this.a[a];var b=this.c,c=se(b[0],b[1]);c.strokeStyle="black";c.strokeRect(.5,.5,b[0]+.5,b[1]+.5);c.fillStyle="black";c.textAlign="center";c.textBaseline="middle";c.font="24px sans-serif";c.fillText(ig(this.b),b[0]/2,b[1]/2);return this.a[a]=c.canvas};I(yc,Yb);yc.prototype.Vb=function(a,b,c){var d=this.bb(a,b,c);if(lg(this.a,d))return this.a.get(d);a=new Ko([a,b,c],this.tileGrid);
809this.a.set(d,a);return a};I(Rb,ib);Rb.prototype.e=function(a){var b=Ka("EPSG:4326"),c=this.f,d;f(a.bounds)&&(d=vb(a.bounds,Qd(b,c)));var e=a.minzoom||0,g=a.maxzoom||22;this.tileGrid=c=new Ad({extent:zi(c),maxZoom:g,minZoom:e});this.tileUrlFunction=lj(c.yb({extent:d}),kj(a.tiles));if(f(a.attribution)&&null===this.d){b=f(d)?d:b.G();d={};for(var h;e<=g;++e)h=e.toString(),d[h]=[Xe(c,b,e)];this.d=[new ff({html:a.attribution,tileRanges:d})]}xi(this,"ready")};I(hc,Yb);l=hc.prototype;l.wj=function(){return this.g};
810l.Gi=function(a,b,c,d,e){null===this.tileGrid?!0===e?Yk(function(){c.call(d,null)}):c.call(d,null):(b=this.tileGrid.Wb(a,b),rx(this.Vb(b[0],b[1],b[2],1,this.f),a,c,d,e))};l.om=function(a){var b=Ka("EPSG:4326"),c=this.f,d;f(a.bounds)&&(d=vb(a.bounds,Qd(b,c)));var e=a.minzoom||0,g=a.maxzoom||22;this.tileGrid=c=new Ad({extent:zi(c),maxZoom:g,minZoom:e});this.g=a.template;var h=a.grids;if(null!=h){this.e=lj(c.yb({extent:d}),kj(h));if(f(a.attribution)){b=f(d)?d:b.G();for(d={};e<=g;++e)h=e.toString(),d[h]=
811[Xe(c,b,e)];this.d=[new ff({html:a.attribution,tileRanges:d})]}xi(this,"ready")}else xi(this,"error")};l.Vb=function(a,b,c,d,e){var g=this.bb(a,b,c);if(lg(this.a,g))return this.a.get(g);a=[a,b,c];d=this.e(a,d,e);d=new Lo(a,f(d)?0:4,f(d)?d:"",Bf(this.tileGrid,a),this.i);this.a.set(g,d);return d};l.yf=function(a,b,c){a=this.bb(a,b,c);lg(this.a,a)&&this.a.get(a)};I(Lo,Uf);l=Lo.prototype;l.Ma=function(){return null};l.gb=function(){return this.g};l.Lj=function(){this.state=3;Jj(this)};l.Xj=function(a){this.c=
812a.grid;this.e=a.keys;this.d=a.data;this.state=4;Jj(this)};l.load=function(){this.i&&bt(this)};I(Sb,bb);l=Sb.prototype;l.clear=function(){bg(this.l)};l.Ab=function(a,b,c,d){var e=this.n,g=this.l;b=Kh(e,b);a=Xe(e,a,b);var h;for(e=a.b;e<=a.d;++e)for(h=a.c;h<=a.a;++h){var m=g[b+"/"+e+"/"+h];if(f(m)){var r;var x=0;for(r=m.length;x<r;
812++x){var F=c.call(d,m[x]);if(F)return F}}}};l.Dc=function(){var a=this.l,b=[],c;for(c in a)Tb(b,a[c]);return b};l.Vi=function(a,b){var c=[];sx(this,a,b,function(d){c.push(d)});
813return c};l.ac=function(a,b,c){function d(O,P){m[O]=P;this.k()}var e=this.X,g=this.n,h=this.p,m=this.l,r=Kh(g,b);g=Xe(g,a,r);var x=[r,0,0],F,M;for(F=g.b;F<=g.d;++F)for(M=g.c;M<=g.a;++M){var S=r+"/"+F+"/"+M;if(!(S in m)){x[0]=r;x[1]=F;x[2]=M;e(x,c,x);var Y=h(x,1,c);f(Y)&&(m[S]=[],Uq(Y,this.T,V(d,S)).call(this,a,b,c))}}};I(jb,ib);l=jb.prototype;l.pm=function(a,b,c,d){c=Ka(c);var e=this.tileGrid;null===e&&(e=Cg(this,c));b=e.Wb(a,b);if(!(e.b.length<=b[0])){var g=e.ma(b[0]),h=Bf(e,b,this.N);e=Xd(e.na(b[0]),
814this.c);var m=this.l;0!==m&&(e=yj(e,m,this.c),h=yf(h,g*m,h));m={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.e.LAYERS};vd(m,this.e,d);d=Math.floor((h[3]-a[1])/g);m[this.i?"I":"X"]=Math.floor((a[0]-h[0])/g);m[this.i?"J":"Y"]=d;return dt(this,b,e,h,1,c,m)}};l.Cd=function(){return this.l};l.bb=function(a,b,c){return this.p+jb.S.bb.call(this,a,b,c)};l.qm=function(){return this.e};l.Xb=function(a,b,c){a=jb.S.Xb.call(this,a,b,c);return 1!=b&&
815this.J&&f(this.n)?Bh(a,b,this.c):a};l.rm=function(){return this.g};l.sm=function(a){a=f(a)?fi(a):null;this.Og(a)};l.Og=function(a){this.g=null!=a?a:[];No(this);this.k()};l.tm=function(a,b,c){var d=this.tileGrid;null===d&&(d=Cg(this,c));if(!(d.b.length<=a[0])){1==b||this.J&&f(this.n)||(b=1);var e=d.ma(a[0]),g=Bf(d,a,this.N);d=Xd(d.na(a[0]),this.c);var h=this.l;0!==h&&(d=yj(d,h,this.c),g=yf(g,e*h,g));1!=b&&(d=Bh(d,b,this.c));e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};
816vd(e,this.e);return dt(this,a,d,g,b,c,e)}};l.um=function(a){vd(this.e,a);No(this);ct(this);this.k()};I(Td,yd);Td.prototype.q=function(){return this.e};I(eb,ib);l=eb.prototype;l.Ti=function(){return this.e};l.Xi=function(){return this.n};l.bb=function(a,b,c){return this.l+eb.S.bb.call(this,a,b,c)};l.vm=function(){return this.p};l.jj=function(){return this.i};l.uj=function(){return this.T};l.wm=function(){return this.J};l.xm=function(){return this.g};l.Aj=function(){return this.N};l.uo=function(a){vd(this.e,
817a);ft(this);this.k()};I(je,yd);je.prototype.yb=function(a){a=f(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=null;if(f(a.extent)){d=Array(c+1);var e;for(e=0;e<=c;++e)d[e]=e<b?null:Xe(this,a.extent,e)}return function(g,h,m){h=g[0];if(h<b||c<h)return null;var r=Math.pow(2,h),x=g[1];if(0>x||r<=x)return null;g=g[2];return g<-r||-1<g||null!==d&&!Cj(d[h],x,-g-1)?null:ri(h,x,-g-1,m)}};I(Vb,ib);I(Pl,ug);Pl.prototype.Ma=function(a){var b=f(a)?C(a).toString():"";if(b in this.d)return this.d[b];a=Pl.S.Ma.call(this,
818a);if(2==this.state){if(256==a.width&&256==a.height)return this.d[b]=a;var c=se(256,256);c.drawImage(a,0,0);return this.d[b]=c.canvas}return a};gt.prototype.add=function(a,b,c,d,e,g){if(b+this.b>this.c||c+this.b>this.c)return null;d=it(this,!1,a,b,c,d,g);if(null===d)return null;a=it(this,!0,a,b,c,f(e)?e:yx,g);return{offsetX:d.offsetX,offsetY:d.offsetY,image:d.image,ig:a.image}};xk.prototype.get=function(a){return qc(this.d,a,null)};xk.prototype.add=function(a,b,c,d,e){var g,h;var m=0;for(h=this.a.length;m<
819h;++m)if(g=this.a[m],g.width>=b+this.b&&g.height>=c+this.b)return h={offsetX:g.x+this.b,offsetY:g.y+this.b,image:this.c},this.d[a]=h,d.call(e,this.e,g.x+this.b,g.y+this.b),a=m,b+=this.b,c+=this.b,g.width-b>g.height-c?(d={x:g.x+b,y:g.y,width:g.width-b,height:g.height},e={x:g.x,y:g.y+c,width:b,height:g.height-c},jt(this,a,d,e)):(d={x:g.x+b,y:g.y,width:g.width-b,height:c},e={x:g.x,y:g.y+c,width:g.width,height:g.height-c},jt(this,a,d,e)),h;return null};I(zc,Rd);l=zc.prototype;l.mb=function(){return this.p};
820l.Cm=function(){return this.g};l.Dm=function(){return this.i};l.he=function(){return this.o};l.Lb=function(){return this.d};l.Dd=function(){return this.H};l.gd=function(){return 2};l.rb=function(){return this.J};l.Em=function(){return this.b};l.Fm=function(){return this.c};l.tj=function(){return this.f};l.Xa=function(){return this.L};l.Gm=function(){return this.a};l.$e=A;l.load=A;l.xf=A;l.Ug=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();this.f!==this.c&&(this.b*=2);
821for(c=0;c<=this.b;c++){d=2*c*Math.PI/this.b-Math.PI/2+this.g;var e=0===c%2?this.c:this.f;b.lineTo(a.size/2+e*Math.cos(d),a.size/2+e*Math.sin(d))}null!==this.i&&(b.fillStyle=pd(this.i.b),b.fill());null!==this.a&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.md,null===a.lineDash||b.setLineDash(a.lineDash),b.lineCap=a.lineCap,b.lineJoin=a.lineJoin,b.miterLimit=a.miterLimit,b.stroke());b.closePath()};l.Tg=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();this.f!==this.c&&(this.b*=
8222);for(c=0;c<=this.b;c++){var e=2*c*Math.PI/this.b-Math.PI/2+this.g;d=0===c%2?this.c:this.f;b.lineTo(a.size/2+d*Math.cos(e),a.size/2+d*Math.sin(e))}b.fillStyle=Ng;b.fill();null!==this.a&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.md,null===a.lineDash||b.setLineDash(a.lineDash),b.stroke());b.closePath()};l.nb=function(){var a=null===this.a?"-":this.a.nb(),b=null===this.i?"-":this.i.nb();if(null===this.e||a!=this.e[1]||b!=this.e[2]||this.c!=this.e[3]||this.f!=this.e[4]||this.g!=this.e[5]||this.b!=this.e[6])this.e=
823["r"+a+b+(f(this.c)?this.c.toString():"-")+(f(this.f)?this.f.toString():"-")+(f(this.g)?this.g.toString():"-")+(f(this.b)?this.b.toString():"-"),a,b,this.c,this.f,this.g,this.b];return this.e[0]};n("ol.animation.bounce",function(a){var b=a.resolution,c=f(a.start)?a.start:Lf(),d=f(a.duration)?a.duration:1E3,e=f(a.easing)?a.easing:Pk;return function(g,h){if(h.time<c)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<c+d){g=e((h.time-c)/d);var m=b-h.viewState.resolution;h.animate=!0;h.viewState.resolution+=
824g*m;h.viewHints[0]+=1;return!0}return!1}},ba);n("ol.animation.pan",Ue,ba);n("ol.animation.rotate",qi,ba);n("ol.animation.zoom",zf,ba);n("ol.Attribution",ff,ba);ff.prototype.getHTML=ff.prototype.c;Tf.prototype.element=Tf.prototype.element;n("ol.Collection",Sa,ba);Sa.prototype.clear=Sa.prototype.clear;Sa.prototype.extend=Sa.prototype.af;Sa.prototype.forEach=Sa.prototype.forEach;Sa.prototype.getArray=Sa.prototype.Hk;Sa.prototype.item=Sa.prototype.item;Sa.prototype.getLength=Sa.prototype.Ib;Sa.prototype.insertAt=
825Sa.prototype.Td;Sa.prototype.pop=Sa.prototype.pop;Sa.prototype.push=Sa.prototype.push;Sa.prototype.remove=Sa.prototype.remove;Sa.prototype.removeAt=Sa.prototype.tf;Sa.prototype.setAt=Sa.prototype.Un;n("ol.coordinate.add",Xg,ba);n("ol.coordinate.createStringXY",function(a){return function(b){return Hk(b,a)}},ba);n("ol.coordinate.format",Ch,ba);n("ol.coordinate.rotate",Zg,ba);n("ol.coordinate.toStringHDMS",function(a){return f(a)?yg(a[1],"NS")+" "+yg(a[0],"EW"):""},ba);n("ol.coordinate.toStringXY",
826Hk,ba);n("ol.DeviceOrientation",kc,ba);kc.prototype.getAlpha=kc.prototype.Mi;kc.prototype.getBeta=kc.prototype.Pi;kc.prototype.getGamma=kc.prototype.Yi;kc.prototype.getHeading=kc.prototype.Ik;kc.prototype.getTracking=kc.prototype.og;kc.prototype.setTracking=kc.prototype.bf;n("ol.easing.easeIn",function(a){return Math.pow(a,3)},ba);n("ol.easing.easeOut",Sf,ba);n("ol.easing.inAndOut",df,ba);n("ol.easing.linear",Ok,ba);n("ol.easing.upAndDown",Pk,ba);n("ol.extent.boundingExtent",ne,ba);n("ol.extent.buffer",
827yf,ba);n("ol.extent.containsCoordinate",function(a,b){return Eh(a,b[0],b[1])},ba);n("ol.extent.containsExtent",qe,ba);n("ol.extent.containsXY",Eh,ba);n("ol.extent.createEmpty",Yd,ba);n("ol.extent.equals",Gh,ba);n("ol.extent.extend",Lk,ba);n("ol.extent.getBottomLeft",p,ba);n("ol.extent.getBottomRight",u,ba);n("ol.extent.getCenter",y,ba);n("ol.extent.getHeight",R,ba);n("ol.extent.getIntersection",aa,ba);n("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]},ba);n("ol.extent.getTopLeft",U,ba);
828n("ol.extent.getTopRight",X,ba);n("ol.extent.getWidth",la,ba);n("ol.extent.intersects",ta,ba);n("ol.extent.isEmpty",Ja,ba);n("ol.extent.applyTransform",vb,ba);n("ol.Feature",Wa,ba);Wa.prototype.clone=Wa.prototype.clone;Wa.prototype.getGeometry=Wa.prototype.Q;Wa.prototype.getId=Wa.prototype.aj;Wa.prototype.getGeometryName=Wa.prototype.$i;Wa.prototype.getStyle=Wa.prototype.Qk;Wa.prototype.getStyleFunction=Wa.prototype.Rk;Wa.prototype.setGeometry=Wa.prototype.La;Wa.prototype.setStyle=Wa.prototype.cf;
829Wa.prototype.setId=Wa.prototype.Qb;Wa.prototype.setGeometryName=Wa.prototype.Ic;n("ol.featureloader.xhr",Vq,ba);n("ol.FeatureOverlay",Ld,ba);Ld.prototype.addFeature=Ld.prototype.pg;Ld.prototype.getFeatures=Ld.prototype.Kk;Ld.prototype.getMap=Ld.prototype.Lk;Ld.prototype.removeFeature=Ld.prototype.Yd;Ld.prototype.setFeatures=Ld.prototype.ld;Ld.prototype.setMap=Ld.prototype.setMap;Ld.prototype.setStyle=Ld.prototype.rg;Ld.prototype.getStyle=Ld.prototype.Mk;Ld.prototype.getStyleFunction=Ld.prototype.Nk;
830n("ol.Geolocation",tb,ba);tb.prototype.getAccuracy=tb.prototype.Ki;tb.prototype.getAccuracyGeometry=tb.prototype.Li;tb.prototype.getAltitude=tb.prototype.Ni;tb.prototype.getAltitudeAccuracy=tb.prototype.Oi;tb.prototype.getHeading=tb.prototype.Tk;tb.prototype.getPosition=tb.prototype.Uk;tb.prototype.getProjection=tb.prototype.sg;tb.prototype.getSpeed=tb.prototype.vj;tb.prototype.getTracking=tb.prototype.tg;tb.prototype.getTrackingOptions=tb.prototype.bg;tb.prototype.setProjection=tb.prototype.ug;tb.prototype.setTracking=
831tb.prototype.Zd;tb.prototype.setTrackingOptions=tb.prototype.Dh;n("ol.Graticule",sg,ba);sg.prototype.getMap=sg.prototype.Xk;sg.prototype.getMeridians=sg.prototype.kj;sg.prototype.getParallels=sg.prototype.pj;sg.prototype.setMap=sg.prototype.setMap;n("ol.has.DEVICE_PIXEL_RATIO",tr,ba);n("ol.has.CANVAS",ur,ba);n("ol.has.DEVICE_ORIENTATION",qt,ba);n("ol.has.GEOLOCATION",rt,ba);n("ol.has.TOUCH",um,ba);n("ol.has.WEBGL",vr,ba);tg.prototype.getImage=tg.prototype.b;ug.prototype.getImage=ug.prototype.Ma;n("ol.Kinetic",
832Mm,ba);n("ol.loadingstrategy.all",Wq,ba);n("ol.loadingstrategy.bbox",function(a){return[a]},ba);n("ol.loadingstrategy.tile",function(a){return function(b,c){c=Kh(a,c);b=Xe(a,b,c);var d=[];c=[c,0,0];for(c[1]=b.b;c[1]<=b.d;++c[1])for(c[2]=b.c;c[2]<=b.a;++c[2])d.push(Bf(a,c));return d}},ba);n("ol.Map",ya,ba);ya.prototype.addControl=ya.prototype.si;ya.prototype.addInteraction=ya.prototype.ti;ya.prototype.addLayer=ya.prototype.Jf;ya.prototype.addOverlay=ya.prototype.Kf;ya.prototype.beforeRender=ya.prototype.Ha;
833ya.prototype.forEachFeatureAtPixel=ya.prototype.Ne;ya.prototype.forEachLayerAtPixel=ya.prototype.al;ya.prototype.hasFeatureAtPixel=ya.prototype.ok;
833ya.prototype.getEventCoordinate=ya.prototype.Ui;ya.prototype.getEventPixel=ya.prototype.Bd;ya.prototype.getTarget=ya.prototype.df;ya.prototype.getTargetElement=ya.prototype.bd;ya.prototype.getCoordinateFromPixel=ya.prototype.ka;ya.prototype.getControls=ya.prototype.Si;ya.prototype.getOverlays=ya.prototype.oj;ya.prototype.getInteractions=ya.prototype.bj;
834ya.prototype.getLayerGroup=ya.prototype.Ub;ya.prototype.getLayers=ya.prototype.vg;ya.prototype.getPixelFromCoordinate=ya.prototype.ta;ya.prototype.getSize=ya.prototype.xa;ya.prototype.getView=ya.prototype.R;ya.prototype.getViewport=ya.prototype.Bj;ya.prototype.renderSync=ya.prototype.Rn;ya.prototype.render=ya.prototype.render;ya.prototype.removeControl=ya.prototype.Ln;ya.prototype.removeInteraction=ya.prototype.Mn;ya.prototype.removeLayer=ya.prototype.Nn;ya.prototype.removeOverlay=ya.prototype.On;
835ya.prototype.setLayerGroup=ya.prototype.zh;ya.prototype.setSize=ya.prototype.vf;ya.prototype.setTarget=ya.prototype.cl;ya.prototype.setView=ya.prototype.jo;ya.prototype.updateSize=ya.prototype.Kc;Dd.prototype.originalEvent=Dd.prototype.originalEvent;Dd.prototype.pixel=Dd.prototype.pixel;Dd.prototype.coordinate=Dd.prototype.coordinate;Dd.prototype.dragging=Dd.prototype.dragging;Dd.prototype.preventDefault=Dd.prototype.preventDefault;Dd.prototype.stopPropagation=Dd.prototype.fb;Bg.prototype.map=Bg.prototype.map;
836Bg.prototype.frameState=Bg.prototype.frameState;gg.prototype.key=gg.prototype.key;gg.prototype.oldValue=gg.prototype.oldValue;n("ol.Object",ub,ba);ub.prototype.get=ub.prototype.get;ub.prototype.getKeys=ub.prototype.C;ub.prototype.getProperties=ub.prototype.D;ub.prototype.set=ub.prototype.set;ub.prototype.setProperties=ub.prototype.t;ub.prototype.unset=ub.prototype.I;n("ol.Observable",Id,ba);n("ol.Observable.unByKey",Wg,ba);Id.prototype.changed=Id.prototype.k;Id.prototype.getRevision=Id.prototype.v;
837Id.prototype.on=Id.prototype.r;Id.prototype.once=Id.prototype.A;Id.prototype.un=Id.prototype.u;Id.prototype.unByKey=Id.prototype.B;n("ol.inherits",I,ba);n("ol.Overlay",Gb,ba);Gb.prototype.getElement=Gb.prototype.$d;Gb.prototype.getMap=Gb.prototype.ae;Gb.prototype.getOffset=Gb.prototype.Yf;Gb.prototype.getPosition=Gb.prototype.wg;Gb.prototype.getPositioning=Gb.prototype.ag;Gb.prototype.setElement=Gb.prototype.wh;Gb.prototype.setMap=Gb.prototype.setMap;Gb.prototype.setOffset=Gb.prototype.Bh;Gb.prototype.setPosition=
838Gb.prototype.uf;Gb.prototype.setPositioning=Gb.prototype.Ch;n("ol.size.toSize",Xd,ba);Uf.prototype.getTileCoord=Uf.prototype.f;n("ol.View",Ma,ba);Ma.prototype.constrainCenter=Ma.prototype.xd;Ma.prototype.constrainResolution=Ma.prototype.constrainResolution;Ma.prototype.constrainRotation=Ma.prototype.constrainRotation;Ma.prototype.getCenter=Ma.prototype.Ca;Ma.prototype.calculateExtent=Ma.prototype.Pc;Ma.prototype.getProjection=Ma.prototype.dl;Ma.prototype.getResolution=Ma.prototype.ya;Ma.prototype.getRotation=
839Ma.prototype.Da;Ma.prototype.getZoom=Ma.prototype.Ej;Ma.prototype.fitExtent=Ma.prototype.Me;Ma.prototype.fitGeometry=Ma.prototype.Fi;Ma.prototype.centerOn=Ma.prototype.Ai;Ma.prototype.rotate=Ma.prototype.rotate;Ma.prototype.setCenter=Ma.prototype.Na;Ma.prototype.setResolution=Ma.prototype.tb;Ma.prototype.setRotation=Ma.prototype.be;Ma.prototype.setZoom=Ma.prototype.no;n("ol.xml.getAllTextContent",Me,ba);n("ol.xml.parse",Wf,ba);n("ol.webgl.Context",Gg,ba);Gg.prototype.getGL=Gg.prototype.Xm;Gg.prototype.getHitDetectionFramebuffer=
840Gg.prototype.Te;Gg.prototype.useProgram=Gg.prototype.oe;n("ol.tilegrid.TileGrid",yd,ba);yd.prototype.getMaxZoom=yd.prototype.Fd;yd.prototype.getMinZoom=yd.prototype.Hd;yd.prototype.getOrigin=yd.prototype.Mb;yd.prototype.getResolution=yd.prototype.ma;yd.prototype.getResolutions=yd.prototype.ne;yd.prototype.getTileCoordForCoordAndResolution=yd.prototype.Wb;yd.prototype.getTileCoordForCoordAndZ=yd.prototype.cd;yd.prototype.getTileSize=yd.prototype.na;n("ol.tilegrid.WMTS",Td,ba);Td.prototype.getMatrixIds=
841Td.prototype.q;n("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",et,ba);n("ol.tilegrid.XYZ",Ad,ba);n("ol.tilegrid.Zoomify",je,ba);n("ol.style.AtlasManager",gt,ba);n("ol.style.Circle",Qc,ba);Qc.prototype.getAnchor=Qc.prototype.mb;Qc.prototype.getFill=Qc.prototype.ym;Qc.prototype.getImage=Qc.prototype.Lb;Qc.prototype.getOrigin=Qc.prototype.rb;Qc.prototype.getRadius=Qc.prototype.zm;Qc.prototype.getSize=Qc.prototype.Xa;Qc.prototype.getStroke=Qc.prototype.Am;n("ol.style.Fill",jf,ba);jf.prototype.getColor=
842jf.prototype.c;jf.prototype.setColor=jf.prototype.d;n("ol.style.Icon",ld,ba);ld.prototype.getAnchor=ld.prototype.mb;ld.prototype.getImage=ld.prototype.Lb;ld.prototype.getOrigin=ld.prototype.rb;ld.prototype.getSrc=ld.prototype.Bm;ld.prototype.getSize=ld.prototype.Xa;n("ol.style.Image",Rd,ba);Rd.prototype.getOpacity=Rd.prototype.ie;Rd.prototype.getRotateWithView=Rd.prototype.Jd;Rd.prototype.getRotation=Rd.prototype.je;Rd.prototype.getScale=Rd.prototype.ke;Rd.prototype.getSnapToPixel=Rd.prototype.Kd;
843Rd.prototype.setRotation=Rd.prototype.le;Rd.prototype.setScale=Rd.prototype.me;n("ol.style.RegularShape",zc,ba);zc.prototype.getAnchor=zc.prototype.mb;zc.prototype.getAngle=zc.prototype.Cm;zc.prototype.getFill=zc.prototype.Dm;zc.prototype.getImage=zc.prototype.Lb;zc.prototype.getOrigin=zc.prototype.rb;zc.prototype.getPoints=zc.prototype.Em;zc.prototype.getRadius=zc.prototype.Fm;zc.prototype.getRadius2=zc.prototype.tj;zc.prototype.getSize=zc.prototype.Xa;zc.prototype.getStroke=zc.prototype.Gm;n("ol.style.Stroke",
844Lc,ba);Lc.prototype.getColor=Lc.prototype.Hm;Lc.prototype.getLineCap=Lc.prototype.ej;Lc.prototype.getLineDash=Lc.prototype.Im;Lc.prototype.getLineJoin=Lc.prototype.fj;Lc.prototype.getMiterLimit=Lc.prototype.lj;Lc.prototype.getWidth=Lc.prototype.Jm;Lc.prototype.setColor=Lc.prototype.Km;Lc.prototype.setLineCap=Lc.prototype.Zn;Lc.prototype.setLineDash=Lc.prototype.Lm;Lc.prototype.setLineJoin=Lc.prototype.$n;Lc.prototype.setMiterLimit=Lc.prototype.ao;Lc.prototype.setWidth=Lc.prototype.ko;n("ol.style.Style",
845qd,ba);qd.prototype.getGeometry=qd.prototype.Q;qd.prototype.getGeometryFunction=qd.prototype.Zi;qd.prototype.getFill=qd.prototype.Mm;qd.prototype.getImage=qd.prototype.Nm;qd.prototype.getStroke=qd.prototype.Om;qd.prototype.getText=qd.prototype.Pm;qd.prototype.getZIndex=qd.prototype.Dj;qd.prototype.setGeometry=qd.prototype.Vg;qd.prototype.setZIndex=qd.prototype.mo;n("ol.style.Text",lc,ba);lc.prototype.getFont=lc.prototype.Wi;lc.prototype.getOffsetX=lc.prototype.mj;lc.prototype.getOffsetY=lc.prototype.nj;
846lc.prototype.getFill=lc.prototype.Qm;lc.prototype.getRotation=lc.prototype.Rm;lc.prototype.getScale=lc.prototype.Sm;lc.prototype.getStroke=lc.prototype.Tm;lc.prototype.getText=lc.prototype.Um;lc.prototype.getTextAlign=lc.prototype.xj;lc.prototype.getTextBaseline=lc.prototype.yj;lc.prototype.setFont=lc.prototype.Wn;lc.prototype.setFill=lc.prototype.Vn;lc.prototype.setRotation=lc.prototype.Vm;lc.prototype.setScale=lc.prototype.Wm;lc.prototype.setStroke=lc.prototype.eo;lc.prototype.setText=lc.prototype.fo;
847lc.prototype.setTextAlign=lc.prototype.ho;lc.prototype.setTextBaseline=lc.prototype.io;n("ol.Sphere",nd,ba);nd.prototype.geodesicArea=nd.prototype.a;nd.prototype.haversineDistance=nd.prototype.b;n("ol.source.BingMaps",Qb,ba);n("ol.source.BingMaps.TOS_ATTRIBUTION",Lt,ba);n("ol.source.Cluster",ab,ba);ab.prototype.getSource=ab.prototype.X;n("ol.source.ImageCanvas",vc,ba);n("ol.source.ImageMapGuide",$b,ba);$b.prototype.getParams=$b.prototype.Tl;$b.prototype.getImageLoadFunction=$b.prototype.Sl;$b.prototype.updateParams=
848$b.prototype.Wl;$b.prototype.setImageLoadFunction=$b.prototype.Vl;n("ol.source.Image",Zb,ba);Ri.prototype.image=Ri.prototype.image;n("ol.source.ImageStatic",Ic,ba);n("ol.source.ImageVector",Pb,ba);Pb.prototype.getSource=Pb.prototype.Xl;Pb.prototype.getStyle=Pb.prototype.Yl;Pb.prototype.getStyleFunction=Pb.prototype.Zl;Pb.prototype.setStyle=Pb.prototype.Mg;n("ol.source.ImageWMS",Eb,ba);Eb.prototype.getGetFeatureInfoUrl=Eb.prototype.bm;Eb.prototype.getParams=Eb.prototype.dm;Eb.prototype.getImageLoadFunction=
849Eb.prototype.cm;Eb.prototype.getUrl=Eb.prototype.em;Eb.prototype.setImageLoadFunction=Eb.prototype.fm;Eb.prototype.setUrl=Eb.prototype.gm;Eb.prototype.updateParams=Eb.prototype.hm;n("ol.source.MapQuest",Fb,ba);Fb.prototype.getLayer=Fb.prototype.i;n("ol.source.OSM",Kb,ba);n("ol.source.OSM.ATTRIBUTION",wk,ba);n("ol.source.Source",fc,ba);fc.prototype.getAttributions=fc.prototype.ea;fc.prototype.getLogo=fc.prototype.ca;fc.prototype.getProjection=fc.prototype.fa;fc.prototype.getState=fc.prototype.ga;n("ol.source.Stamen",
850Lb,ba);n("ol.source.TileArcGISRest",nb,ba);nb.prototype.getParams=nb.prototype.im;nb.prototype.getUrls=nb.prototype.jm;nb.prototype.setUrl=nb.prototype.km;nb.prototype.setUrls=nb.prototype.Ng;nb.prototype.updateParams=nb.prototype.mm;n("ol.source.TileDebug",yc,ba);n("ol.source.TileImage",ib,ba);ib.prototype.getTileLoadFunction=ib.prototype.Ua;ib.prototype.getTileUrlFunction=ib.prototype.Va;ib.prototype.setTileLoadFunction=ib.prototype.$a;ib.prototype.setTileUrlFunction=ib.prototype.pa;n("ol.source.TileJSON",
851Rb,ba);n("ol.source.Tile",Yb,ba);Yb.prototype.getTileGrid=Yb.prototype.ua;Ai.prototype.tile=Ai.prototype.tile;n("ol.source.TileUTFGrid",hc,ba);hc.prototype.getTemplate=hc.prototype.wj;hc.prototype.forDataAtCoordinateAndResolution=hc.prototype.Gi;n("ol.source.TileVector",Sb,ba);Sb.prototype.getFeatures=Sb.prototype.Dc;Sb.prototype.getFeaturesAtCoordinateAndResolution=Sb.prototype.Vi;n("ol.source.TileWMS",jb,ba);jb.prototype.getGetFeatureInfoUrl=jb.prototype.pm;jb.prototype.getParams=jb.prototype.qm;
852jb.prototype.getUrls=jb.prototype.rm;jb.prototype.setUrl=jb.prototype.sm;jb.prototype.setUrls=jb.prototype.Og;jb.prototype.updateParams=jb.prototype.um;n("ol.source.Vector",bb,ba);bb.prototype.addFeature=bb.prototype.jf;bb.prototype.addFeatures=bb.prototype.Oc;bb.prototype.clear=bb.prototype.clear;bb.prototype.forEachFeature=bb.prototype.Rf;bb.prototype.forEachFeatureInExtent=bb.prototype.$c;bb.prototype.forEachFeatureIntersectingExtent=bb.prototype.Oe;bb.prototype.getFeatures=bb.prototype.Dc;bb.prototype.getFeaturesAtCoordinate=
853bb.prototype.Re;bb.prototype.getFeaturesInExtent=bb.prototype.Se;bb.prototype.getClosestFeatureToCoordinate=bb.prototype.Tf;bb.prototype.getExtent=bb.prototype.G;bb.prototype.getFeatureById=bb.prototype.Qe;bb.prototype.removeFeature=bb.prototype.Qg;qg.prototype.feature=qg.prototype.feature;n("ol.source.WMTS",eb,ba);eb.prototype.getDimensions=eb.prototype.Ti;eb.prototype.getFormat=eb.prototype.Xi;eb.prototype.getLayer=eb.prototype.vm;eb.prototype.getMatrixSet=eb.prototype.jj;eb.prototype.getRequestEncoding=
854eb.prototype.uj;eb.prototype.getStyle=eb.prototype.wm;eb.prototype.getUrls=eb.prototype.xm;eb.prototype.getVersion=eb.prototype.Aj;eb.prototype.updateDimensions=eb.prototype.uo;n("ol.source.WMTS.optionsFromCapabilities",function(a,b){var c=Ud(a.Contents.Layer,function(O){return O.Identifier==b.layer}),d;var e=1<c.TileMatrixSetLink.length?ce(c.TileMatrixSetLink,function(O){return O.TileMatrixSet==b.matrixSet}):f(b.projection)?ce(c.TileMatrixSetLink,function(O){return O.TileMatrixSet.Supp
854ortedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,
855"$1:$3")==b.projection}):0;0>e&&(e=0);var g=c.TileMatrixSetLink[e].TileMatrixSet;e=c.WGS84BoundingBox;f(e)&&(d=Ka("EPSG:4326").G(),d=e[0]==d[0]&&e[2]==d[2]);var h=c.Format[0];f(b.format)&&(h=b.format);e=ce(c.Style,function(O){return f(b.style)?O.Title==b.style:O.isDefault});0>e&&(e=0);e=c.Style[e].Identifier;var m={};f(c.Dimension)&&Oa(c.Dimension,function(O){var P=O.Identifier,Z=O["default"];f(Z)||(Z=O.values[0]);m[P]=Z});var r=Ud(a.Contents.TileMatrixSet,function(O){return O.Identifier==g}),x=et(r);
856r=f(b.projection)?Ka(b.projection):Ka(r.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var F=[],M=b.requestEncoding;M=f(M)?M:"";if(a.OperationsMetadata.hasOwnProperty("GetTile")&&0!=M.lastIndexOf("REST",0)){c=a.OperationsMetadata.GetTile.DCP.HTTP.Get;a=0;for(var S=c.length;a<S;++a){var Y=Ud(c[a].Constraint,function(O){return"GetEncoding"==O.name}).AllowedValues.Value;0<Y.length&&Nc(Y,"KVP")&&(M="KVP",F.push(c[a].href))}}else M="REST",Oa(c.ResourceURL,function(O){"tile"==O.resourceType&&
857(h=O.format,F.push(O.template))});return{urls:F,layer:b.layer,matrixSet:g,format:h,projection:r,requestEncoding:M,tileGrid:x,style:e,dimensions:m,wrapX:d}},ba);n("ol.source.XYZ",rb,ba);rb.prototype.setTileUrlFunction=rb.prototype.pa;rb.prototype.setUrl=rb.prototype.e;n("ol.source.Zoomify",Vb,ba);Ye.prototype.vectorContext=Ye.prototype.vectorContext;Ye.prototype.frameState=Ye.prototype.frameState;Ye.prototype.context=Ye.prototype.context;Ye.prototype.glContext=Ye.prototype.glContext;n("ol.render.VectorContext",
858il,ba);Hc.prototype.drawAsync=Hc.prototype.tc;Hc.prototype.drawCircleGeometry=Hc.prototype.uc;Hc.prototype.drawFeature=Hc.prototype.Le;Hc.prototype.drawGeometryCollectionGeometry=Hc.prototype.zd;Hc.prototype.drawPointGeometry=Hc.prototype.kb;Hc.prototype.drawLineStringGeometry=Hc.prototype.zb;Hc.prototype.drawMultiLineStringGeometry=Hc.prototype.vc;Hc.prototype.drawMultiPointGeometry=Hc.prototype.jb;Hc.prototype.drawMultiPolygonGeometry=Hc.prototype.wc;Hc.prototype.drawPolygonGeometry=Hc.prototype.Rb;
859Hc.prototype.drawText=Hc.prototype.lb;Hc.prototype.setFillStrokeStyle=Hc.prototype.Aa;Hc.prototype.setImageStyle=Hc.prototype.Za;Hc.prototype.setTextStyle=Hc.prototype.Ba;uc.prototype.drawAsync=uc.prototype.tc;uc.prototype.drawCircleGeometry=uc.prototype.uc;uc.prototype.drawFeature=uc.prototype.Le;uc.prototype.drawPointGeometry=uc.prototype.kb;uc.prototype.drawMultiPointGeometry=uc.prototype.jb;uc.prototype.drawLineStringGeometry=uc.prototype.zb;uc.prototype.drawMultiLineStringGeometry=uc.prototype.vc;
860uc.prototype.drawPolygonGeometry=uc.prototype.Rb;uc.prototype.drawMultiPolygonGeometry=uc.prototype.wc;uc.prototype.setFillStrokeStyle=uc.prototype.Aa;uc.prototype.setImageStyle=uc.prototype.Za;uc.prototype.setTextStyle=uc.prototype.Ba;
860n("ol.proj.common.add",mq,ba);n("ol.proj.METERS_PER_UNIT",Rf,ba);n("ol.proj.Projection",Cb,ba);Cb.prototype.getCode=Cb.prototype.Ri;Cb.prototype.getExtent=Cb.prototype.G;Cb.prototype.getUnits=Cb.prototype.Ll;Cb.prototype.getMetersPerUnit=Cb.prototype.Gd;Cb.prototype.getWorldExtent=
861Cb.prototype.Cj;Cb.prototype.isGlobal=Cb.prototype.Ml;Cb.prototype.setGlobal=Cb.prototype.Yn;Cb.prototype.setExtent=Cb.prototype.Nl;Cb.prototype.setWorldExtent=Cb.prototype.lo;Cb.prototype.setGetPointResolution=Cb.prototype.Xn;Cb.prototype.getPointResolution=Cb.prototype.getPointResolution;n("ol.proj.addEquivalentProjections",Ie,ba);n("ol.proj.addProjection",Jd,ba);n("ol.proj.addCoordinateTransforms",Je,ba);n("ol.proj.fromLonLat",function(a,b){return od(a,"EPSG:4326",f(b)?b:"EPSG:3857")},ba);n("ol.proj.toLonLat",
862function(a,b){return od(a,f(b)?b:"EPSG:3857","EPSG:4326")},ba);n("ol.proj.get",Ka,ba);n("ol.proj.getTransform",Wc,ba);n("ol.proj.transform",od,ba);n("ol.proj.transformExtent",Te,ba);n("ol.layer.Heatmap",Ba,ba);Ba.prototype.getBlur=Ba.prototype.Sf;Ba.prototype.getGradient=Ba.prototype.Wf;Ba.prototype.getRadius=Ba.prototype.Hg;Ba.prototype.setBlur=Ba.prototype.th;Ba.prototype.setGradient=Ba.prototype.yh;Ba.prototype.setRadius=Ba.prototype.Ig;n("ol.layer.Image",Va,ba);Va.prototype.getSource=Va.prototype.da;
863n("ol.layer.Layer",La,ba);La.prototype.getSource=La.prototype.da;La.prototype.setSource=La.prototype.Jc;n("ol.layer.Base",Xa,ba);Xa.prototype.getBrightness=Xa.prototype.Bb;Xa.prototype.getContrast=Xa.prototype.Cb;Xa.prototype.getHue=Xa.prototype.Db;Xa.prototype.getExtent=Xa.prototype.G;Xa.prototype.getMaxResolution=Xa.prototype.Eb;Xa.prototype.getMinResolution=Xa.prototype.Fb;Xa.prototype.getOpacity=Xa.prototype.Kb;Xa.prototype.getSaturation=Xa.prototype.Gb;Xa.prototype.getVisible=Xa.prototype.eb;
864Xa.prototype.setBrightness=Xa.prototype.gc;Xa.prototype.setContrast=Xa.prototype.hc;Xa.prototype.setHue=Xa.prototype.ic;Xa.prototype.setExtent=Xa.prototype.bc;Xa.prototype.setMaxResolution=Xa.prototype.jc;Xa.prototype.setMinResolution=Xa.prototype.kc;Xa.prototype.setOpacity=Xa.prototype.cc;Xa.prototype.setSaturation=Xa.prototype.lc;Xa.prototype.setVisible=Xa.prototype.mc;n("ol.layer.Group",Ua,ba);Ua.prototype.getLayers=Ua.prototype.Bc;Ua.prototype.setLayers=Ua.prototype.Ah;n("ol.layer.Tile",Ea,ba);
865Ea.prototype.getPreload=Ea.prototype.a;Ea.prototype.getSource=Ea.prototype.da;Ea.prototype.setPreload=Ea.prototype.d;Ea.prototype.getUseInterimTilesOnError=Ea.prototype.c;Ea.prototype.setUseInterimTilesOnError=Ea.prototype.e;n("ol.layer.Vector",Ga,ba);Ga.prototype.getSource=Ga.prototype.da;Ga.prototype.getStyle=Ga.prototype.H;Ga.prototype.getStyleFunction=Ga.prototype.J;Ga.prototype.setStyle=Ga.prototype.e;n("ol.interaction.DoubleClickZoom",gd,ba);n("ol.interaction.DoubleClickZoom.handleEvent",Qp,
866ba);n("ol.interaction.DragAndDrop",Dc,ba);n("ol.interaction.DragAndDrop.handleEvent",Le,ba);th.prototype.features=th.prototype.features;th.prototype.file=th.prototype.file;th.prototype.projection=th.prototype.projection;Wj.prototype.coordinate=Wj.prototype.coordinate;n("ol.interaction.DragBox",Bc,ba);Bc.prototype.getGeometry=Bc.prototype.Q;n("ol.interaction.DragPan",Yc,ba);n("ol.interaction.DragRotateAndZoom",md,ba);n("ol.interaction.DragRotate",Zc,ba);n("ol.interaction.DragZoom",Mc,ba);tk.prototype.feature=
867tk.prototype.feature;n("ol.interaction.Draw",xc,ba);n("ol.interaction.Draw.handleEvent",Qs,ba);xc.prototype.finishDrawing=xc.prototype.X;n("ol.interaction.Interaction",Jb,ba);Jb.prototype.getActive=Jb.prototype.c;Jb.prototype.setActive=Jb.prototype.d;n("ol.interaction.defaults",jq,ba);n("ol.interaction.KeyboardPan",hd,ba);n("ol.interaction.KeyboardPan.handleEvent",gq,ba);n("ol.interaction.KeyboardZoom",id,ba);n("ol.interaction.KeyboardZoom.handleEvent",hq,ba);n("ol.interaction.Modify",ed,ba);n("ol.interaction.Modify.handleEvent",
868Vs,ba);n("ol.interaction.MouseWheelZoom",$c,ba);n("ol.interaction.MouseWheelZoom.handleEvent",iq,ba);n("ol.interaction.PinchRotate",ad,ba);n("ol.interaction.PinchZoom",bd,ba);n("ol.interaction.Pointer",Db,ba);n("ol.interaction.Pointer.handleEvent",Sj,ba);ij.prototype.selected=ij.prototype.selected;ij.prototype.deselected=ij.prototype.deselected;n("ol.interaction.Select",pc,ba);pc.prototype.getFeatures=pc.prototype.p;n("ol.interaction.Select.handleEvent",Ys,ba);pc.prototype.setMap=pc.prototype.setMap;
869n("ol.interaction.Snap",Ec,ba);Ec.prototype.addFeature=Ec.prototype.ed;Ec.prototype.removeFeature=Ec.prototype.fd;n("ol.geom.Circle",hb,ba);hb.prototype.clone=hb.prototype.clone;hb.prototype.getCenter=hb.prototype.dd;hb.prototype.getRadius=hb.prototype.zg;hb.prototype.getType=hb.prototype.M;hb.prototype.setCenter=hb.prototype.pl;hb.prototype.setCenterAndRadius=hb.prototype.uh;hb.prototype.setRadius=hb.prototype.Ag;hb.prototype.transform=hb.prototype.transform;n("ol.geom.Geometry",gc,ba);gc.prototype.getClosestPoint=
870gc.prototype.e;gc.prototype.getExtent=gc.prototype.G;n("ol.geom.GeometryCollection",sb,ba);sb.prototype.clone=sb.prototype.clone;sb.prototype.getGeometries=sb.prototype.Vf;sb.prototype.getType=sb.prototype.M;sb.prototype.intersectsExtent=sb.prototype.ra;sb.prototype.setGeometries=sb.prototype.xh;sb.prototype.applyTransform=sb.prototype.qa;sb.prototype.translate=sb.prototype.Oa;n("ol.geom.LinearRing",lb,ba);lb.prototype.clone=lb.prototype.clone;lb.prototype.getArea=lb.prototype.rl;lb.prototype.getCoordinates=
871lb.prototype.K;lb.prototype.getType=lb.prototype.M;lb.prototype.setCoordinates=lb.prototype.W;n("ol.geom.LineString",Ha,ba);Ha.prototype.appendCoordinate=Ha.prototype.ui;Ha.prototype.clone=Ha.prototype.clone;Ha.prototype.forEachSegment=Ha.prototype.Ji;Ha.prototype.getCoordinateAtM=Ha.prototype.ql;Ha.prototype.getCoordinates=Ha.prototype.K;Ha.prototype.getLength=Ha.prototype.Bg;Ha.prototype.getType=Ha.prototype.M;Ha.prototype.intersectsExtent=Ha.prototype.ra;Ha.prototype.setCoordinates=Ha.prototype.W;
872n("ol.geom.MultiLineString",Qa,ba);Qa.prototype.appendLineString=Qa.prototype.vi;Qa.prototype.clone=Qa.prototype.clone;Qa.prototype.getCoordinateAtM=Qa.prototype.sl;Qa.prototype.getCoordinates=Qa.prototype.K;Qa.prototype.getLineString=Qa.prototype.gj;Qa.prototype.getLineStrings=Qa.prototype.ad;Qa.prototype.getType=Qa.prototype.M;Qa.prototype.intersectsExtent=Qa.prototype.ra;Qa.prototype.setCoordinates=Qa.prototype.W;n("ol.geom.MultiPoint",$a,ba);$a.prototype.appendPoint=$a.prototype.xi;$a.prototype.clone=
873$a.prototype.clone;$a.prototype.getCoordinates=$a.prototype.K;$a.prototype.getPoint=$a.prototype.qj;$a.prototype.getPoints=$a.prototype.ce;$a.prototype.getType=$a.prototype.M;$a.prototype.intersectsExtent=$a.prototype.ra;$a.prototype.setCoordinates=$a.prototype.W;n("ol.geom.MultiPolygon",Ra,ba);Ra.prototype.appendPolygon=Ra.prototype.yi;Ra.prototype.clone=Ra.prototype.clone;Ra.prototype.getArea=Ra.prototype.tl;Ra.prototype.getCoordinates=Ra.prototype.K;Ra.prototype.getInteriorPoints=Ra.prototype.dj;
874Ra.prototype.getPolygon=Ra.prototype.sj;Ra.prototype.getPolygons=Ra.prototype.Id;Ra.prototype.getType=Ra.prototype.M;Ra.prototype.intersectsExtent=Ra.prototype.ra;Ra.prototype.setCoordinates=Ra.prototype.W;n("ol.geom.Point",Ta,ba);Ta.prototype.clone=Ta.prototype.clone;Ta.prototype.getCoordinates=Ta.prototype.K;Ta.prototype.getType=Ta.prototype.M;Ta.prototype.intersectsExtent=Ta.prototype.ra;Ta.prototype.setCoordinates=Ta.prototype.W;n("ol.geom.Polygon",Fa,ba);Fa.prototype.appendLinearRing=Fa.prototype.wi;
875Fa.prototype.clone=Fa.prototype.clone;Fa.prototype.getArea=Fa.prototype.ul;Fa.prototype.getCoordinates=Fa.prototype.K;Fa.prototype.getInteriorPoint=Fa.prototype.cj;Fa.prototype.getLinearRingCount=Fa.prototype.ij;Fa.prototype.getLinearRing=Fa.prototype.hj;Fa.prototype.getLinearRings=Fa.prototype.Ed;Fa.prototype.getType=Fa.prototype.M;Fa.prototype.intersectsExtent=Fa.prototype.ra;Fa.prototype.setCoordinates=Fa.prototype.W;n("ol.geom.Polygon.circular",dq,ba);n("ol.geom.Polygon.fromExtent",function(a){var b=
876a[0],c=a[1],d=a[2];a=a[3];b=[b,c,b,a,d,a,d,c,b,c];c=new Fa(null);Nf(c,"XY",b,[b.length]);return c},ba);n("ol.geom.SimpleGeometry",mb,ba);mb.prototype.getFirstCoordinate=mb.prototype.ob;mb.prototype.getLastCoordinate=mb.prototype.pb;mb.prototype.getLayout=mb.prototype.qb;mb.prototype.applyTransform=mb.prototype.qa;mb.prototype.translate=mb.prototype.Oa;n("ol.format.EsriJSON",Md,ba);Md.prototype.readFeature=Md.prototype.sb;Md.prototype.readFeatures=Md.prototype.ja;Md.prototype.readGeometry=Md.prototype.Gc;
877Md.prototype.readProjection=Md.prototype.za;Md.prototype.writeGeometry=Md.prototype.Mc;Md.prototype.writeGeometryObject=Md.prototype.Be;Md.prototype.writeFeature=Md.prototype.qd;Md.prototype.writeFeatureObject=Md.prototype.Lc;Md.prototype.writeFeatures=Md.prototype.ub;Md.prototype.writeFeaturesObject=Md.prototype.ze;n("ol.format.Feature",Al,ba);n("ol.format.GeoJSON",Nd,ba);Nd.prototype.readFeature=Nd.prototype.sb;Nd.prototype.readFeatures=Nd.prototype.ja;Nd.prototype.readGeometry=Nd.prototype.Gc;
878Nd.prototype.readProjection=Nd.prototype.za;Nd.prototype.writeFeature=Nd.prototype.qd;Nd.prototype.writeFeatureObject=Nd.prototype.Lc;Nd.prototype.writeFeatures=Nd.prototype.ub;Nd.prototype.writeFeaturesObject=Nd.prototype.ze;Nd.prototype.writeGeometry=Nd.prototype.Mc;Nd.prototype.writeGeometryObject=Nd.prototype.Be;n("ol.format.GPX",$e,ba);$e.prototype.readFeature=$e.prototype.sb;$e.prototype.readFeatures=$e.prototype.ja;$e.prototype.readProjection=$e.prototype.za;$e.prototype.writeFeatures=$e.prototype.ub;
879$e.prototype.writeFeaturesNode=$e.prototype.a;n("ol.format.IGC",rg,ba);rg.prototype.readFeature=rg.prototype.sb;rg.prototype.readFeatures=rg.prototype.ja;rg.prototype.readProjection=rg.prototype.za;n("ol.format.KML",ye,ba);ye.prototype.readFeature=ye.prototype.sb;ye.prototype.readFeatures=ye.prototype.ja;ye.prototype.readName=ye.prototype.Dn;ye.prototype.readNetworkLinks=ye.prototype.En;ye.prototype.readProjection=ye.prototype.za;ye.prototype.writeFeatures=ye.prototype.ub;ye.prototype.writeFeaturesNode=
880ye.prototype.a;n("ol.format.OSMXML",bi,ba);bi.prototype.readFeatures=bi.prototype.ja;bi.prototype.readProjection=bi.prototype.za;n("ol.format.Polyline",Ff,ba);n("ol.format.Polyline.encodeDeltas",qs,ba);n("ol.format.Polyline.decodeDeltas",ss,ba);n("ol.format.Polyline.encodeFloats",rs,ba);n("ol.format.Polyline.decodeFloats",ts,ba);Ff.prototype.readFeature=Ff.prototype.sb;Ff.prototype.readFeatures=Ff.prototype.ja;Ff.prototype.readGeometry=Ff.prototype.Gc;Ff.prototype.readProjection=Ff.prototype.za;Ff.prototype.writeGeometry=
881Ff.prototype.Mc;n("ol.format.TopoJSON",qh,ba);qh.prototype.readFeatures=qh.prototype.ja;qh.prototype.readProjection=qh.prototype.za;n("ol.format.WFS",be,ba);be.prototype.readFeatures=be.prototype.ja;be.prototype.readTransactionResponse=be.prototype.g;be.prototype.readFeatureCollectionMetadata=be.prototype.f;be.prototype.writeGetFeature=be.prototype.i;be.prototype.writeTransaction=be.prototype.o;be.prototype.readProjection=be.prototype.za;n("ol.format.WKT",af,ba);af.prototype.readFeature=af.prototype.sb;
882af.prototype.readFeatures=af.prototype.ja;af.prototype.readGeometry=af.prototype.Gc;af.prototype.writeFeature=af.prototype.qd;af.prototype.writeFeatures=af.prototype.ub;af.prototype.writeGeometry=af.prototype.Mc;n("ol.format.WMSCapabilities",dj,ba);dj.prototype.read=dj.prototype.c;n("ol.format.WMSGetFeatureInfo",rk,ba);rk.prototype.readFeatures=rk.prototype.ja;n("ol.format.WMTSCapabilities",ej,ba);ej.prototype.read=ej.prototype.c;n("ol.format.GML2",Zf,ba);n("ol.format.GML3",Ya,ba);Ya.prototype.writeGeometryNode=
883Ya.prototype.q;Ya.prototype.writeFeatures=Ya.prototype.ub;Ya.prototype.writeFeaturesNode=Ya.prototype.a;n("ol.format.GML",Ya,ba);Ya.prototype.writeFeatures=Ya.prototype.ub;Ya.prototype.writeFeaturesNode=Ya.prototype.a;oc.prototype.readFeatures=oc.prototype.ja;
883n("ol.events.condition.altKeyOnly",function(a){a=a.b;return a.a&&!a.g&&!a.d},ba);n("ol.events.condition.altShiftKeysOnly",Rp,ba);n("ol.events.condition.always",Le,ba);n("ol.events.condition.click",function(a){return a.type==zm},ba);n("ol.events.condition.never",
884hf,ba);n("ol.events.condition.pointerMove",Sp,ba);n("ol.events.condition.singleClick",Om,ba);n("ol.events.condition.noModifierKeys",Qj,ba);n("ol.events.condition.platformModifierKeyOnly",function(a){a=a.b;return!a.a&&a.g&&!a.d},ba);n("ol.events.condition.shiftKeyOnly",Rj,ba);n("ol.events.condition.targetNotEditable",Pm,ba);n("ol.events.condition.mouseOnly",ng,ba);n("ol.control.Attribution",bc,ba);n("ol.control.Attribution.render",pp,ba);bc.prototype.getCollapsible=bc.prototype.fl;bc.prototype.setCollapsible=
885bc.prototype.il;bc.prototype.setCollapsed=bc.prototype.hl;bc.prototype.getCollapsed=bc.prototype.el;n("ol.control.Control",qb,ba);qb.prototype.getMap=qb.prototype.e;qb.prototype.setMap=qb.prototype.setMap;qb.prototype.setTarget=qb.prototype.c;n("ol.control.defaults",rp,ba);n("ol.control.FullScreen",Kc,ba);n("ol.control.MousePosition",cc,ba);n("ol.control.MousePosition.render",up,ba);cc.prototype.getCoordinateFormat=cc.prototype.Uf;cc.prototype.getProjection=cc.prototype.xg;cc.prototype.setMap=cc.prototype.setMap;
886cc.prototype.setCoordinateFormat=cc.prototype.vh;cc.prototype.setProjection=cc.prototype.yg;n("ol.control.OverviewMap",dc,ba);dc.prototype.setMap=dc.prototype.setMap;n("ol.control.OverviewMap.render",xr,ba);dc.prototype.getCollapsible=dc.prototype.ll;dc.prototype.setCollapsible=dc.prototype.ol;dc.prototype.setCollapsed=dc.prototype.nl;dc.prototype.getCollapsed=dc.prototype.kl;n("ol.control.Rotate",Gc,ba);n("ol.control.Rotate.render",qp,ba);n("ol.control.ScaleLine",nc,ba);nc.prototype.getUnits=nc.prototype.p;
887n("ol.control.ScaleLine.render",zr,ba);nc.prototype.setUnits=nc.prototype.J;n("ol.control.Zoom",Ac,ba);n("ol.control.ZoomSlider",dd,ba);n("ol.control.ZoomSlider.render",Gr,ba);n("ol.control.ZoomToExtent",Rc,ba);n("ol.color.asArray",ti,ba);n("ol.color.asString",pd,ba);ub.prototype.changed=ub.prototype.k;ub.prototype.getRevision=ub.prototype.v;ub.prototype.on=ub.prototype.r;ub.prototype.once=ub.prototype.A;ub.prototype.un=ub.prototype.u;ub.prototype.unByKey=ub.prototype.B;Sa.prototype.get=Sa.prototype.get;
888Sa.prototype.getKeys=Sa.prototype.C;Sa.prototype.getProperties=Sa.prototype.D;Sa.prototype.set=Sa.prototype.set;Sa.prototype.setProperties=Sa.prototype.t;Sa.prototype.unset=Sa.prototype.I;Sa.prototype.changed=Sa.prototype.k;Sa.prototype.getRevision=Sa.prototype.v;Sa.prototype.on=Sa.prototype.r;Sa.prototype.once=Sa.prototype.A;Sa.prototype.un=Sa.prototype.u;Sa.prototype.unByKey=Sa.prototype.B;kc.prototype.get=kc.prototype.get;kc.prototype.getKeys=kc.prototype.C;kc.prototype.getProperties=kc.prototype.D;
889kc.prototype.set=kc.prototype.set;kc.prototype.setProperties=kc.prototype.t;kc.prototype.unset=kc.prototype.I;kc.prototype.changed=kc.prototype.k;kc.prototype.getRevision=kc.prototype.v;kc.prototype.on=kc.prototype.r;kc.prototype.once=kc.prototype.A;kc.prototype.un=kc.prototype.u;kc.prototype.unByKey=kc.prototype.B;Wa.prototype.get=Wa.prototype.get;Wa.prototype.getKeys=Wa.prototype.C;Wa.prototype.getProperties=Wa.prototype.D;Wa.prototype.set=Wa.prototype.set;Wa.prototype.setProperties=Wa.prototype.t;
890Wa.prototype.unset=Wa.prototype.I;Wa.prototype.changed=Wa.prototype.k;Wa.prototype.getRevision=Wa.prototype.v;Wa.prototype.on=Wa.prototype.r;Wa.prototype.once=Wa.prototype.A;Wa.prototype.un=Wa.prototype.u;Wa.prototype.unByKey=Wa.prototype.B;tb.prototype.get=tb.prototype.get;tb.prototype.getKeys=tb.prototype.C;tb.prototype.getProperties=tb.prototype.D;tb.prototype.set=tb.prototype.set;tb.prototype.setProperties=tb.prototype.t;tb.prototype.unset=tb.prototype.I;tb.prototype.changed=tb.prototype.k;tb.prototype.getRevision=
891tb.prototype.v;tb.prototype.on=tb.prototype.r;tb.prototype.once=tb.prototype.A;tb.prototype.un=tb.prototype.u;tb.prototype.unByKey=tb.prototype.B;ug.prototype.getTileCoord=ug.prototype.f;ya.prototype.get=ya.prototype.get;ya.prototype.getKeys=ya.prototype.C;ya.prototype.getProperties=ya.prototype.D;ya.prototype.set=ya.prototype.set;ya.prototype.setProperties=ya.prototype.t;ya.prototype.unset=ya.prototype.I;ya.prototype.changed=ya.prototype.k;ya.prototype.getRevision=ya.prototype.v;ya.prototype.on=
892ya.prototype.r;ya.prototype.once=ya.prototype.A;ya.prototype.un=ya.prototype.u;ya.prototype.unByKey=ya.prototype.B;Dd.prototype.map=Dd.prototype.map;Dd.prototype.frameState=Dd.prototype.frameState;zd.prototype.originalEvent=zd.prototype.originalEvent;zd.prototype.pixel=zd.prototype.pixel;zd.prototype.coordinate=zd.prototype.coordinate;zd.prototype.dragging=zd.prototype.dragging;zd.prototype.preventDefault=zd.prototype.preventDefault;zd.prototype.stopPropagation=zd.prototype.fb;zd.prototype.map=zd.prototype.map;
893zd.prototype.frameState=zd.prototype.frameState;Gb.prototype.get=Gb.prototype.get;Gb.prototype.getKeys=Gb.prototype.C;Gb.prototype.getProperties=Gb.prototype.D;Gb.prototype.set=Gb.prototype.set;Gb.prototype.setProperties=Gb.prototype.t;Gb.prototype.unset=Gb.prototype.I;Gb.prototype.changed=Gb.prototype.k;Gb.prototype.getRevision=Gb.prototype.v;Gb.prototype.on=Gb.prototype.r;Gb.prototype.once=Gb.prototype.A;Gb.prototype.un=Gb.prototype.u;Gb.prototype.unByKey=Gb.prototype.B;Ma.prototype.get=Ma.prototype.get;
894Ma.prototype.getKeys=Ma.prototype.C;Ma.prototype.getProperties=Ma.prototype.D;
894Ma.prototype.set=Ma.prototype.set;Ma.prototype.setProperties=Ma.prototype.t;Ma.prototype.unset=Ma.prototype.I;Ma.prototype.changed=Ma.prototype.k;Ma.prototype.getRevision=Ma.prototype.v;Ma.prototype.on=Ma.prototype.r;Ma.prototype.once=Ma.prototype.A;Ma.prototype.un=Ma.prototype.u;Ma.prototype.unByKey=Ma.prototype.B;Td.prototype.getMaxZoom=Td.prototype.Fd;Td.prototype.getMinZoom=Td.prototype.Hd;Td.prototype.getOrigin=Td.prototype.Mb;
895Td.prototype.getResolution=Td.prototype.ma;Td.prototype.getResolutions=Td.prototype.ne;Td.prototype.getTileCoordForCoordAndResolution=Td.prototype.Wb;Td.prototype.getTileCoordForCoordAndZ=Td.prototype.cd;Td.prototype.getTileSize=Td.prototype.na;Ad.prototype.getMaxZoom=Ad.prototype.Fd;Ad.prototype.getMinZoom=Ad.prototype.Hd;Ad.prototype.getOrigin=Ad.prototype.Mb;Ad.prototype.getResolution=Ad.prototype.ma;Ad.prototype.getResolutions=Ad.prototype.ne;Ad.prototype.getTileCoordForCoordAndResolution=Ad.prototype.Wb;
896Ad.prototype.getTileCoordForCoordAndZ=Ad.prototype.cd;Ad.prototype.getTileSize=Ad.prototype.na;je.prototype.getMaxZoom=je.prototype.Fd;je.prototype.getMinZoom=je.prototype.Hd;je.prototype.getOrigin=je.prototype.Mb;je.prototype.getResolution=je.prototype.ma;je.prototype.getResolutions=je.prototype.ne;je.prototype.getTileCoordForCoordAndResolution=je.prototype.Wb;je.prototype.getTileCoordForCoordAndZ=je.prototype.cd;je.prototype.getTileSize=je.prototype.na;Qc.prototype.getOpacity=Qc.prototype.ie;Qc.prototype.getRotateWithView=
897Qc.prototype.Jd;Qc.prototype.getRotation=Qc.prototype.je;Qc.prototype.getScale=Qc.prototype.ke;Qc.prototype.getSnapToPixel=Qc.prototype.Kd;Qc.prototype.setRotation=Qc.prototype.le;Qc.prototype.setScale=Qc.prototype.me;ld.prototype.getOpacity=ld.prototype.ie;ld.prototype.getRotateWithView=ld.prototype.Jd;ld.prototype.getRotation=ld.prototype.je;ld.prototype.getScale=ld.prototype.ke;ld.prototype.getSnapToPixel=ld.prototype.Kd;ld.prototype.setRotation=ld.prototype.le;ld.prototype.setScale=ld.prototype.me;
898zc.prototype.getOpacity=zc.prototype.ie;zc.prototype.getRotateWithView=zc.prototype.Jd;zc.prototype.getRotation=zc.prototype.je;zc.prototype.getScale=zc.prototype.ke;zc.prototype.getSnapToPixel=zc.prototype.Kd;zc.prototype.setRotation=zc.prototype.le;zc.prototype.setScale=zc.prototype.me;fc.prototype.get=fc.prototype.get;fc.prototype.getKeys=fc.prototype.C;fc.prototype.getProperties=fc.prototype.D;fc.prototype.set=fc.prototype.set;fc.prototype.setProperties=fc.prototype.t;fc.prototype.unset=fc.prototype.I;
899fc.prototype.changed=fc.prototype.k;fc.prototype.getRevision=fc.prototype.v;fc.prototype.on=fc.prototype.r;fc.prototype.once=fc.prototype.A;fc.prototype.un=fc.prototype.u;fc.prototype.unByKey=fc.prototype.B;Yb.prototype.getAttributions=Yb.prototype.ea;Yb.prototype.getLogo=Yb.prototype.ca;Yb.prototype.getProjection=Yb.prototype.fa;Yb.prototype.getState=Yb.prototype.ga;Yb.prototype.get=Yb.prototype.get;Yb.prototype.getKeys=Yb.prototype.C;Yb.prototype.getProperties=Yb.prototype.D;Yb.prototype.set=Yb.prototype.set;
900Yb.prototype.setProperties=Yb.prototype.t;Yb.prototype.unset=Yb.prototype.I;Yb.prototype.changed=Yb.prototype.k;Yb.prototype.getRevision=Yb.prototype.v;Yb.prototype.on=Yb.prototype.r;Yb.prototype.once=Yb.prototype.A;Yb.prototype.un=Yb.prototype.u;Yb.prototype.unByKey=Yb.prototype.B;ib.prototype.getTileGrid=ib.prototype.ua;ib.prototype.getAttributions=ib.prototype.ea;ib.prototype.getLogo=ib.prototype.ca;ib.prototype.getProjection=ib.prototype.fa;ib.prototype.getState=ib.prototype.ga;ib.prototype.get=
901ib.prototype.get;ib.prototype.getKeys=ib.prototype.C;ib.prototype.getProperties=ib.prototype.D;ib.prototype.set=ib.prototype.set;ib.prototype.setProperties=ib.prototype.t;ib.prototype.unset=ib.prototype.I;ib.prototype.changed=ib.prototype.k;ib.prototype.getRevision=ib.prototype.v;ib.prototype.on=ib.prototype.r;ib.prototype.once=ib.prototype.A;ib.prototype.un=ib.prototype.u;ib.prototype.unByKey=ib.prototype.B;Qb.prototype.getTileLoadFunction=Qb.prototype.Ua;Qb.prototype.getTileUrlFunction=Qb.prototype.Va;
902Qb.prototype.setTileLoadFunction=Qb.prototype.$a;Qb.prototype.setTileUrlFunction=Qb.prototype.pa;Qb.prototype.getTileGrid=Qb.prototype.ua;Qb.prototype.getAttributions=Qb.prototype.ea;Qb.prototype.getLogo=Qb.prototype.ca;Qb.prototype.getProjection=Qb.prototype.fa;Qb.prototype.getState=Qb.prototype.ga;Qb.prototype.get=Qb.prototype.get;Qb.prototype.getKeys=Qb.prototype.C;Qb.prototype.getProperties=Qb.prototype.D;Qb.prototype.set=Qb.prototype.set;Qb.prototype.setProperties=Qb.prototype.t;Qb.prototype.unset=
903Qb.prototype.I;Qb.prototype.changed=Qb.prototype.k;Qb.prototype.getRevision=Qb.prototype.v;Qb.prototype.on=Qb.prototype.r;Qb.prototype.once=Qb.prototype.A;Qb.prototype.un=Qb.prototype.u;Qb.prototype.unByKey=Qb.prototype.B;bb.prototype.getAttributions=bb.prototype.ea;bb.prototype.getLogo=bb.prototype.ca;bb.prototype.getProjection=bb.prototype.fa;bb.prototype.getState=bb.prototype.ga;bb.prototype.get=bb.prototype.get;bb.prototype.getKeys=bb.prototype.C;bb.prototype.getProperties=bb.prototype.D;bb.prototype.set=
904bb.prototype.set;bb.prototype.setProperties=bb.prototype.t;bb.prototype.unset=bb.prototype.I;bb.prototype.changed=bb.prototype.k;bb.prototype.getRevision=bb.prototype.v;bb.prototype.on=bb.prototype.r;bb.prototype.once=bb.prototype.A;bb.prototype.un=bb.prototype.u;bb.prototype.unByKey=bb.prototype.B;ab.prototype.addFeature=ab.prototype.jf;ab.prototype.addFeatures=ab.prototype.Oc;ab.prototype.clear=ab.prototype.clear;ab.prototype.forEachFeature=ab.prototype.Rf;ab.prototype.forEachFeatureInExtent=ab.prototype.$c;
905ab.prototype.forEachFeatureIntersectingExtent=ab.prototype.Oe;ab.prototype.getFeatures=ab.prototype.Dc;ab.prototype.getFeaturesAtCoordinate=ab.prototype.Re;ab.prototype.getFeaturesInExtent=ab.prototype.Se;ab.prototype.getClosestFeatureToCoordinate=ab.prototype.Tf;ab.prototype.getExtent=ab.prototype.G;ab.prototype.getFeatureById=ab.prototype.Qe;ab.prototype.removeFeature=ab.prototype.Qg;ab.prototype.getAttributions=ab.prototype.ea;ab.prototype.getLogo=ab.prototype.ca;ab.prototype.getProjection=ab.prototype.fa;
906ab.prototype.getState=ab.prototype.ga;ab.prototype.get=ab.prototype.get;ab.prototype.getKeys=ab.prototype.C;ab.prototype.getProperties=ab.prototype.D;ab.prototype.set=ab.prototype.set;ab.prototype.setProperties=ab.prototype.t;ab.prototype.unset=ab.prototype.I;ab.prototype.changed=ab.prototype.k;ab.prototype.getRevision=ab.prototype.v;ab.prototype.on=ab.prototype.r;ab.prototype.once=ab.prototype.A;ab.prototype.un=ab.prototype.u;ab.prototype.unByKey=ab.prototype.B;Zb.prototype.getAttributions=Zb.prototype.ea;
907Zb.prototype.getLogo=Zb.prototype.ca;Zb.prototype.getProjection=Zb.prototype.fa;Zb.prototype.getState=Zb.prototype.ga;Zb.prototype.get=Zb.prototype.get;Zb.prototype.getKeys=Zb.prototype.C;Zb.prototype.getProperties=Zb.prototype.D;Zb.prototype.set=Zb.prototype.set;Zb.prototype.setProperties=Zb.prototype.t;Zb.prototype.unset=Zb.prototype.I;Zb.prototype.changed=Zb.prototype.k;Zb.prototype.getRevision=Zb.prototype.v;Zb.prototype.on=Zb.prototype.r;Zb.prototype.once=Zb.prototype.A;Zb.prototype.un=Zb.prototype.u;
908Zb.prototype.unByKey=Zb.prototype.B;vc.prototype.getAttributions=vc.prototype.ea;vc.prototype.getLogo=vc.prototype.ca;vc.prototype.getProjection=vc.prototype.fa;vc.prototype.getState=vc.prototype.ga;vc.prototype.get=vc.prototype.get;vc.prototype.getKeys=vc.prototype.C;vc.prototype.getProperties=vc.prototype.D;vc.prototype.set=vc.prototype.set;vc.prototype.setProperties=vc.prototype.t;vc.prototype.unset=vc.prototype.I;vc.prototype.changed=vc.prototype.k;vc.prototype.getRevision=vc.prototype.v;vc.prototype.on=
909vc.prototype.r;vc.prototype.once=vc.prototype.A;vc.prototype.un=vc.prototype.u;vc.prototype.unByKey=vc.prototype.B;$b.prototype.getAttributions=$b.prototype.ea;$b.prototype.getLogo=$b.prototype.ca;$b.prototype.getProjection=$b.prototype.fa;$b.prototype.getState=$b.prototype.ga;$b.prototype.get=$b.prototype.get;$b.prototype.getKeys=$b.prototype.C;$b.prototype.getProperties=$b.prototype.D;$b.prototype.set=$b.prototype.set;$b.prototype.setProperties=$b.prototype.t;$b.prototype.unset=$b.prototype.I;$b.prototype.changed=
910$b.prototype.k;$b.prototype.getRevision=$b.prototype.v;$b.prototype.on=$b.prototype.r;$b.prototype.once=$b.prototype.A;$b.prototype.un=$b.prototype.u;$b.prototype.unByKey=$b.prototype.B;Ic.prototype.getAttributions=Ic.prototype.ea;Ic.prototype.getLogo=Ic.prototype.ca;Ic.prototype.getProjection=Ic.prototype.fa;Ic.prototype.getState=Ic.prototype.ga;Ic.prototype.get=Ic.prototype.get;Ic.prototype.getKeys=Ic.prototype.C;Ic.prototype.getProperties=Ic.prototype.D;Ic.prototype.set=Ic.prototype.set;Ic.prototype.setProperties=
911Ic.prototype.t;Ic.prototype.unset=Ic.prototype.I;Ic.prototype.changed=Ic.prototype.k;Ic.prototype.getRevision=Ic.prototype.v;Ic.prototype.on=Ic.prototype.r;Ic.prototype.once=Ic.prototype.A;Ic.prototype.un=Ic.prototype.u;Ic.prototype.unByKey=Ic.prototype.B;Pb.prototype.getAttributions=Pb.prototype.ea;Pb.prototype.getLogo=Pb.prototype.ca;Pb.prototype.getProjection=Pb.prototype.fa;Pb.prototype.getState=Pb.prototype.ga;Pb.prototype.get=Pb.prototype.get;Pb.prototype.getKeys=Pb.prototype.C;Pb.prototype.getProperties=
912Pb.prototype.D;Pb.prototype.set=Pb.prototype.set;Pb.prototype.setProperties=Pb.prototype.t;Pb.prototype.unset=Pb.prototype.I;Pb.prototype.changed=Pb.prototype.k;Pb.prototype.getRevision=Pb.prototype.v;Pb.prototype.on=Pb.prototype.r;Pb.prototype.once=Pb.prototype.A;Pb.prototype.un=Pb.prototype.u;Pb.prototype.unByKey=Pb.prototype.B;Eb.prototype.getAttributions=Eb.prototype.ea;Eb.prototype.getLogo=Eb.prototype.ca;Eb.prototype.getProjection=Eb.prototype.fa;Eb.prototype.getState=Eb.prototype.ga;Eb.prototype.get=
913Eb.prototype.get;Eb.prototype.getKeys=Eb.prototype.C;Eb.prototype.getProperties=Eb.prototype.D;Eb.prototype.set=Eb.prototype.set;Eb.prototype.setProperties=Eb.prototype.t;Eb.prototype.unset=Eb.prototype.I;Eb.prototype.changed=Eb.prototype.k;Eb.prototype.getRevision=Eb.prototype.v;Eb.prototype.on=Eb.prototype.r;Eb.prototype.once=Eb.prototype.A;Eb.prototype.un=Eb.prototype.u;Eb.prototype.unByKey=Eb.prototype.B;rb.prototype.getTileLoadFunction=rb.prototype.Ua;rb.prototype.getTileUrlFunction=rb.prototype.Va;
914rb.prototype.setTileLoadFunction=rb.prototype.$a;rb.prototype.getTileGrid=rb.prototype.ua;rb.prototype.getAttributions=rb.prototype.ea;rb.prototype.getLogo=rb.prototype.ca;rb.prototype.getProjection=rb.prototype.fa;rb.prototype.getState=rb.prototype.ga;rb.prototype.get=rb.prototype.get;rb.prototype.getKeys=rb.prototype.C;rb.prototype.getProperties=rb.prototype.D;rb.prototype.set=rb.prototype.set;rb.prototype.setProperties=rb.prototype.t;rb.prototype.unset=rb.prototype.I;rb.prototype.changed=rb.prototype.k;
915rb.prototype.getRevision=rb.prototype.v;rb.prototype.on=rb.prototype.r;rb.prototype.once=rb.prototype.A;rb.prototype.un=rb.prototype.u;rb.prototype.unByKey=rb.prototype.B;Fb.prototype.setTileUrlFunction=Fb.prototype.pa;Fb.prototype.setUrl=Fb.prototype.e;Fb.prototype.getTileLoadFunction=Fb.prototype.Ua;Fb.prototype.getTileUrlFunction=Fb.prototype.Va;Fb.prototype.setTileLoadFunction=Fb.prototype.$a;Fb.prototype.getTileGrid=Fb.prototype.ua;Fb.prototype.getAttributions=Fb.prototype.ea;Fb.prototype.getLogo=
916Fb.prototype.ca;Fb.prototype.getProjection=Fb.prototype.fa;Fb.prototype.getState=Fb.prototype.ga;Fb.prototype.get=Fb.prototype.get;Fb.prototype.getKeys=Fb.prototype.C;Fb.prototype.getProperties=Fb.prototype.D;Fb.prototype.set=Fb.prototype.set;Fb.prototype.setProperties=Fb.prototype.t;Fb.prototype.unset=Fb.prototype.I;Fb.prototype.changed=Fb.prototype.k;Fb.prototype.getRevision=Fb.prototype.v;Fb.prototype.on=Fb.prototype.r;Fb.prototype.once=Fb.prototype.A;Fb.prototype.un=Fb.prototype.u;Fb.prototype.unByKey=
917Fb.prototype.B;Kb.prototype.setTileUrlFunction=Kb.prototype.pa;Kb.prototype.setUrl=Kb.prototype.e;Kb.prototype.getTileLoadFunction=Kb.prototype.Ua;Kb.prototype.getTileUrlFunction=Kb.prototype.Va;Kb.prototype.setTileLoadFunction=Kb.prototype.$a;Kb.prototype.getTileGrid=Kb.prototype.ua;Kb.prototype.getAttributions=Kb.prototype.ea;Kb.prototype.getLogo=Kb.prototype.ca;Kb.prototype.getProjection=Kb.prototype.fa;Kb.prototype.getState=Kb.prototype.ga;Kb.prototype.get=Kb.prototype.get;Kb.prototype.getKeys=
918Kb.prototype.C;Kb.prototype.getProperties=Kb.prototype.D;Kb.prototype.set=Kb.prototype.set;Kb.prototype.setProperties=Kb.prototype.t;Kb.prototype.unset=Kb.prototype.I;Kb.prototype.changed=Kb.prototype.k;Kb.prototype.getRevision=Kb.prototype.v;Kb.prototype.on=Kb.prototype.r;Kb.prototype.once=Kb.prototype.A;Kb.prototype.un=Kb.prototype.u;Kb.prototype.unByKey=Kb.prototype.B;Lb.prototype.setTileUrlFunction=Lb.prototype.pa;Lb.prototype.setUrl=Lb.prototype.e;Lb.prototype.getTileLoadFunction=Lb.prototype.Ua;
919Lb.prototype.getTileUrlFunction=Lb.prototype.Va;Lb.prototype.setTileLoadFunction=Lb.prototype.$a;Lb.prototype.getTileGrid=Lb.prototype.ua;Lb.prototype.getAttributions=Lb.prototype.ea;Lb.prototype.getLogo=Lb.prototype.ca;Lb.prototype.getProjection=Lb.prototype.fa;Lb.prototype.getState=Lb.prototype.ga;Lb.prototype.get=Lb.prototype.get;Lb.prototype.getKeys=Lb.prototype.C;Lb.prototype.getProperties=Lb.prototype.D;Lb.prototype.set=Lb.prototype.set;Lb.prototype.setProperties=Lb.prototype.t;Lb.prototype.unset=
920Lb.prototype.I;Lb.prototype.changed=Lb.prototype.k;Lb.prototype.getRevision=Lb.prototype.v;Lb.prototype.on=Lb.prototype.r;Lb.prototype.once=Lb.prototype.A;Lb.prototype.un=Lb.prototype.u;Lb.prototype.unByKey=Lb.prototype.B;nb.prototype.getTileLoadFunction=nb.prototype.Ua;nb.prototype.getTileUrlFunction=nb.prototype.Va;nb.prototype.setTileLoadFunction=nb.prototype.$a;nb.prototype.setTileUrlFunction=nb.prototype.pa;nb.prototype.getTileGrid=nb.prototype.ua;nb.prototype.getAttributions=nb.prototype.ea;
921nb.prototype.getLogo=nb.prototype.ca;nb.prototype.getProjection=nb.prototype.fa;nb.prototype.getState=nb.prototype.ga;nb.prototype.get=nb.prototype.get;nb.prototype.getKeys=nb.prototype.C;nb.prototype.getProperties=nb.prototype.D;nb.prototype.set=nb.prototype.set;nb.prototype.setProperties=nb.prototype.t;nb.prototype.unset=nb.prototype.I;nb.prototype.changed=nb.prototype.k;nb.prototype.getRevision=nb.prototype.v;nb.prototype.on=nb.prototype.r;nb.prototype.once=nb.prototype.A;nb.prototype.un=nb.prototype.u;
922nb.prototype.unByKey=nb.prototype.B;yc.prototype.getTileGrid=yc.prototype.ua;yc.prototype.getAttributions=yc.prototype.ea;yc.prototype.getLogo=yc.prototype.ca;yc.prototype.getProjection=yc.prototype.fa;yc.prototype.getState=yc.prototype.ga;yc.prototype.get=yc.prototype.get;yc.prototype.getKeys=yc.prototype.C;yc.prototype.getProperties=yc.prototype.D;yc.prototype.set=yc.prototype.set;yc.prototype.setProperties=yc.prototype.t;yc.prototype.unset=yc.prototype.I;yc.prototype.changed=yc.prototype.k;yc.prototype.getRevision=
923yc.prototype.v;yc.prototype.on=yc.prototype.r;yc.prototype.once=yc.prototype.A;yc.prototype.un=yc.prototype.u;yc.prototype.unByKey=yc.prototype.B;Rb.prototype.getTileLoadFunction=Rb.prototype.Ua;Rb.prototype.getTileUrlFunction=Rb.prototype.Va;Rb.prototype.setTileLoadFunction=Rb.prototype.$a;Rb.prototype.setTileUrlFunction=Rb.prototype.pa;Rb.prototype.getTileGrid=Rb.prototype.ua;Rb.prototype.getAttributions=Rb.prototype.ea;Rb.prototype.getLogo=Rb.prototype.ca;Rb.prototype.getProjection=Rb.prototype.fa;
924Rb.prototype.getState=Rb.prototype.ga;Rb.prototype.get=Rb.prototype.get;Rb.prototype.getKeys=Rb.prototype.C;Rb.prototype.getProperties=Rb.prototype.D;Rb.prototype.set=Rb.prototype.set;Rb.prototype.setProperties=Rb.prototype.t;Rb.prototype.unset=Rb.prototype.I;Rb.prototype.changed=Rb.prototype.k;Rb.prototype.getRevision=Rb.prototype.v;Rb.prototype.on=Rb.prototype.r;Rb.prototype.once=Rb.prototype.A;Rb.prototype.un=Rb.prototype.u;Rb.prototype.unByKey=Rb.prototype.B;hc.prototype.getTileGrid=hc.prototype.ua;
925hc.prototype.getAttributions=hc.prototype.ea;hc.prototype.getLogo=hc.prototype.ca;hc.prototype.getProjection=hc.prototype.fa;hc.prototype.getState=hc.prototype.ga;hc.prototype.get=hc.prototype.get;hc.prototype.getKeys=hc.prototype.C;hc.prototype.getProperties=hc.prototype.D;hc.prototype.set=hc.prototype.set;hc.prototype.setProperties=hc.prototype.t;hc.prototype.unset=hc.prototype.I;hc.prototype.changed=hc.prototype.k;hc.prototype.getRevision=hc.prototype.v;hc.prototype.on=hc.prototype.r;hc.prototype.once=
926hc.prototype.A;hc.prototype.un=hc.prototype.u;hc.pro
926totype.unByKey=hc.prototype.B;Sb.prototype.forEachFeatureIntersectingExtent=Sb.prototype.Oe;Sb.prototype.getFeaturesAtCoordinate=Sb.prototype.Re;Sb.prototype.getFeatureById=Sb.prototype.Qe;Sb.prototype.getAttributions=Sb.prototype.ea;Sb.prototype.getLogo=Sb.prototype.ca;Sb.prototype.getProjection=Sb.prototype.fa;Sb.prototype.getState=Sb.prototype.ga;Sb.prototype.get=Sb.prototype.get;Sb.prototype.getKeys=Sb.prototype.C;Sb.prototype.getProperties=
927Sb.prototype.D;Sb.prototype.set=Sb.prototype.set;Sb.prototype.setProperties=Sb.prototype.t;Sb.prototype.unset=Sb.prototype.I;Sb.prototype.changed=Sb.prototype.k;Sb.prototype.getRevision=Sb.prototype.v;Sb.prototype.on=Sb.prototype.r;Sb.prototype.once=Sb.prototype.A;Sb.prototype.un=Sb.prototype.u;Sb.prototype.unByKey=Sb.prototype.B;jb.prototype.getTileLoadFunction=jb.prototype.Ua;jb.prototype.getTileUrlFunction=jb.prototype.Va;jb.prototype.setTileLoadFunction=jb.prototype.$a;jb.prototype.setTileUrlFunction=
928jb.prototype.pa;jb.prototype.getTileGrid=jb.prototype.ua;jb.prototype.getAttributions=jb.prototype.ea;jb.prototype.getLogo=jb.prototype.ca;jb.prototype.getProjection=jb.prototype.fa;jb.prototype.getState=jb.prototype.ga;jb.prototype.get=jb.prototype.get;jb.prototype.getKeys=jb.prototype.C;jb.prototype.getProperties=jb.prototype.D;jb.prototype.set=jb.prototype.set;jb.prototype.setProperties=jb.prototype.t;jb.prototype.unset=jb.prototype.I;jb.prototype.changed=jb.prototype.k;jb.prototype.getRevision=
929jb.prototype.v;jb.prototype.on=jb.prototype.r;jb.prototype.once=jb.prototype.A;jb.prototype.un=jb.prototype.u;jb.prototype.unByKey=jb.prototype.B;eb.prototype.getTileLoadFunction=eb.prototype.Ua;eb.prototype.getTileUrlFunction=eb.prototype.Va;eb.prototype.setTileLoadFunction=eb.prototype.$a;eb.prototype.setTileUrlFunction=eb.prototype.pa;eb.prototype.getTileGrid=eb.prototype.ua;eb.prototype.getAttributions=eb.prototype.ea;eb.prototype.getLogo=eb.prototype.ca;eb.prototype.getProjection=eb.prototype.fa;
930eb.prototype.getState=eb.prototype.ga;eb.prototype.get=eb.prototype.get;eb.prototype.getKeys=eb.prototype.C;eb.prototype.getProperties=eb.prototype.D;eb.prototype.set=eb.prototype.set;eb.prototype.setProperties=eb.prototype.t;eb.prototype.unset=eb.prototype.I;eb.prototype.changed=eb.prototype.k;eb.prototype.getRevision=eb.prototype.v;eb.prototype.on=eb.prototype.r;eb.prototype.once=eb.prototype.A;eb.prototype.un=eb.prototype.u;eb.prototype.unByKey=eb.prototype.B;Vb.prototype.getTileLoadFunction=Vb.prototype.Ua;
931Vb.prototype.getTileUrlFunction=Vb.prototype.Va;Vb.prototype.setTileLoadFunction=Vb.prototype.$a;Vb.prototype.setTileUrlFunction=Vb.prototype.pa;Vb.prototype.getTileGrid=Vb.prototype.ua;Vb.prototype.getAttributions=Vb.prototype.ea;Vb.prototype.getLogo=Vb.prototype.ca;Vb.prototype.getProjection=Vb.prototype.fa;Vb.prototype.getState=Vb.prototype.ga;Vb.prototype.get=Vb.prototype.get;Vb.prototype.getKeys=Vb.prototype.C;Vb.prototype.getProperties=Vb.prototype.D;Vb.prototype.set=Vb.prototype.set;Vb.prototype.setProperties=
932Vb.prototype.t;Vb.prototype.unset=Vb.prototype.I;Vb.prototype.changed=Vb.prototype.k;Vb.prototype.getRevision=Vb.prototype.v;Vb.prototype.on=Vb.prototype.r;Vb.prototype.once=Vb.prototype.A;Vb.prototype.un=Vb.prototype.u;Vb.prototype.unByKey=Vb.prototype.B;he.prototype.changed=he.prototype.k;he.prototype.getRevision=he.prototype.v;he.prototype.on=he.prototype.r;he.prototype.once=he.prototype.A;he.prototype.un=he.prototype.u;he.prototype.unByKey=he.prototype.B;ae.prototype.changed=ae.prototype.k;ae.prototype.getRevision=
933ae.prototype.v;ae.prototype.on=ae.prototype.r;ae.prototype.once=ae.prototype.A;ae.prototype.un=ae.prototype.u;ae.prototype.unByKey=ae.prototype.B;xe.prototype.changed=xe.prototype.k;xe.prototype.getRevision=xe.prototype.v;xe.prototype.on=xe.prototype.r;xe.prototype.once=xe.prototype.A;xe.prototype.un=xe.prototype.u;xe.prototype.unByKey=xe.prototype.B;Ce.prototype.changed=Ce.prototype.k;Ce.prototype.getRevision=Ce.prototype.v;Ce.prototype.on=Ce.prototype.r;Ce.prototype.once=Ce.prototype.A;Ce.prototype.un=
934Ce.prototype.u;Ce.prototype.unByKey=Ce.prototype.B;Oe.prototype.changed=Oe.prototype.k;Oe.prototype.getRevision=Oe.prototype.v;Oe.prototype.on=Oe.prototype.r;Oe.prototype.once=Oe.prototype.A;Oe.prototype.un=Oe.prototype.u;Oe.prototype.unByKey=Oe.prototype.B;$d.prototype.changed=$d.prototype.k;$d.prototype.getRevision=$d.prototype.v;$d.prototype.on=$d.prototype.r;$d.prototype.once=$d.prototype.A;$d.prototype.un=$d.prototype.u;$d.prototype.unByKey=$d.prototype.B;Be.prototype.changed=Be.prototype.k;
935Be.prototype.getRevision=Be.prototype.v;Be.prototype.on=Be.prototype.r;Be.prototype.once=Be.prototype.A;Be.prototype.un=Be.prototype.u;Be.prototype.unByKey=Be.prototype.B;Ne.prototype.changed=Ne.prototype.k;Ne.prototype.getRevision=Ne.prototype.v;Ne.prototype.on=Ne.prototype.r;Ne.prototype.once=Ne.prototype.A;Ne.prototype.un=Ne.prototype.u;Ne.prototype.unByKey=Ne.prototype.B;we.prototype.changed=we.prototype.k;we.prototype.getRevision=we.prototype.v;we.prototype.on=we.prototype.r;we.prototype.once=
936we.prototype.A;we.prototype.un=we.prototype.u;we.prototype.unByKey=we.prototype.B;ie.prototype.changed=ie.prototype.k;ie.prototype.getRevision=ie.prototype.v;ie.prototype.on=ie.prototype.r;ie.prototype.once=ie.prototype.A;ie.prototype.un=ie.prototype.u;ie.prototype.unByKey=ie.prototype.B;Ze.prototype.changed=Ze.prototype.k;Ze.prototype.getRevision=Ze.prototype.v;Ze.prototype.on=Ze.prototype.r;Ze.prototype.once=Ze.prototype.A;Ze.prototype.un=Ze.prototype.u;Ze.prototype.unByKey=Ze.prototype.B;ue.prototype.changed=
937ue.prototype.k;ue.prototype.getRevision=ue.prototype.v;ue.prototype.on=ue.prototype.r;ue.prototype.once=ue.prototype.A;ue.prototype.un=ue.prototype.u;ue.prototype.unByKey=ue.prototype.B;ve.prototype.changed=ve.prototype.k;ve.prototype.getRevision=ve.prototype.v;ve.prototype.on=ve.prototype.r;ve.prototype.once=ve.prototype.A;ve.prototype.un=ve.prototype.u;ve.prototype.unByKey=ve.prototype.B;Xa.prototype.get=Xa.prototype.get;Xa.prototype.getKeys=Xa.prototype.C;Xa.prototype.getProperties=Xa.prototype.D;
938Xa.prototype.set=Xa.prototype.set;Xa.prototype.setProperties=Xa.prototype.t;Xa.prototype.unset=Xa.prototype.I;Xa.prototype.changed=Xa.prototype.k;Xa.prototype.getRevision=Xa.prototype.v;Xa.prototype.on=Xa.prototype.r;Xa.prototype.once=Xa.prototype.A;Xa.prototype.un=Xa.prototype.u;Xa.prototype.unByKey=Xa.prototype.B;La.prototype.getBrightness=La.prototype.Bb;La.prototype.getContrast=La.prototype.Cb;La.prototype.getHue=La.prototype.Db;La.prototype.getExtent=La.prototype.G;La.prototype.getMaxResolution=
939La.prototype.Eb;La.prototype.getMinResolution=La.prototype.Fb;La.prototype.getOpacity=La.prototype.Kb;La.prototype.getSaturation=La.prototype.Gb;La.prototype.getVisible=La.prototype.eb;La.prototype.setBrightness=La.prototype.gc;La.prototype.setContrast=La.prototype.hc;La.prototype.setHue=La.prototype.ic;La.prototype.setExtent=La.prototype.bc;La.prototype.setMaxResolution=La.prototype.jc;La.prototype.setMinResolution=La.prototype.kc;La.prototype.setOpacity=La.prototype.cc;La.prototype.setSaturation=
940La.prototype.lc;La.prototype.setVisible=La.prototype.mc;La.prototype.get=La.prototype.get;La.prototype.getKeys=La.prototype.C;La.prototype.getProperties=La.prototype.D;La.prototype.set=La.prototype.set;La.prototype.setProperties=La.prototype.t;La.prototype.unset=La.prototype.I;La.prototype.changed=La.prototype.k;La.prototype.getRevision=La.prototype.v;La.prototype.on=La.prototype.r;La.prototype.once=La.prototype.A;La.prototype.un=La.prototype.u;La.prototype.unByKey=La.prototype.B;Ga.prototype.setSource=
941Ga.prototype.Jc;Ga.prototype.getBrightness=Ga.prototype.Bb;Ga.prototype.getContrast=Ga.prototype.Cb;Ga.prototype.getHue=Ga.prototype.Db;Ga.prototype.getExtent=Ga.prototype.G;Ga.prototype.getMaxResolution=Ga.prototype.Eb;Ga.prototype.getMinResolution=Ga.prototype.Fb;Ga.prototype.getOpacity=Ga.prototype.Kb;Ga.prototype.getSaturation=Ga.prototype.Gb;Ga.prototype.getVisible=Ga.prototype.eb;Ga.prototype.setBrightness=Ga.prototype.gc;Ga.prototype.setContrast=Ga.prototype.hc;Ga.prototype.setHue=Ga.prototype.ic;
942Ga.prototype.setExtent=Ga.prototype.bc;Ga.prototype.setMaxResolution=Ga.prototype.jc;Ga.prototype.setMinResolution=Ga.prototype.kc;Ga.prototype.setOpacity=Ga.prototype.cc;Ga.prototype.setSaturation=Ga.prototype.lc;Ga.prototype.setVisible=Ga.prototype.mc;Ga.prototype.get=Ga.prototype.get;Ga.prototype.getKeys=Ga.prototype.C;Ga.prototype.getProperties=Ga.prototype.D;Ga.prototype.set=Ga.prototype.set;Ga.prototype.setProperties=Ga.prototype.t;Ga.prototype.unset=Ga.prototype.I;Ga.prototype.changed=Ga.prototype.k;
943Ga.prototype.getRevision=Ga.prototype.v;Ga.prototype.on=Ga.prototype.r;Ga.prototype.once=Ga.prototype.A;Ga.prototype.un=Ga.prototype.u;Ga.prototype.unByKey=Ga.prototype.B;Ba.prototype.getSource=Ba.prototype.da;Ba.prototype.getStyle=Ba.prototype.H;Ba.prototype.getStyleFunction=Ba.prototype.J;Ba.prototype.setStyle=Ba.prototype.e;Ba.prototype.setSource=Ba.prototype.Jc;Ba.prototype.getBrightness=Ba.prototype.Bb;Ba.prototype.getContrast=Ba.prototype.Cb;Ba.prototype.getHue=Ba.prototype.Db;Ba.prototype.getExtent=
944Ba.prototype.G;Ba.prototype.getMaxResolution=Ba.prototype.Eb;Ba.prototype.getMinResolution=Ba.prototype.Fb;Ba.prototype.getOpacity=Ba.prototype.Kb;Ba.prototype.getSaturation=Ba.prototype.Gb;Ba.prototype.getVisible=Ba.prototype.eb;Ba.prototype.setBrightness=Ba.prototype.gc;Ba.prototype.setContrast=Ba.prototype.hc;Ba.prototype.setHue=Ba.prototype.ic;Ba.prototype.setExtent=Ba.prototype.bc;Ba.prototype.setMaxResolution=Ba.prototype.jc;Ba.prototype.setMinResolution=Ba.prototype.kc;Ba.prototype.setOpacity=
945Ba.prototype.cc;Ba.prototype.setSaturation=Ba.prototype.lc;Ba.prototype.setVisible=Ba.prototype.mc;Ba.prototype.get=Ba.prototype.get;Ba.prototype.getKeys=Ba.prototype.C;Ba.prototype.getProperties=Ba.prototype.D;Ba.prototype.set=Ba.prototype.set;Ba.prototype.setProperties=Ba.prototype.t;Ba.prototype.unset=Ba.prototype.I;Ba.prototype.changed=Ba.prototype.k;Ba.prototype.getRevision=Ba.prototype.v;Ba.prototype.on=Ba.prototype.r;Ba.prototype.once=Ba.prototype.A;Ba.prototype.un=Ba.prototype.u;Ba.prototype.unByKey=
946Ba.prototype.B;Va.prototype.setSource=Va.prototype.Jc;Va.prototype.getBrightness=Va.prototype.Bb;Va.prototype.getContrast=Va.prototype.Cb;Va.prototype.getHue=Va.prototype.Db;Va.prototype.getExtent=Va.prototype.G;Va.prototype.getMaxResolution=Va.prototype.Eb;Va.prototype.getMinResolution=Va.prototype.Fb;Va.prototype.getOpacity=Va.prototype.Kb;Va.prototype.getSaturation=Va.prototype.Gb;Va.prototype.getVisible=Va.prototype.eb;Va.prototype.setBrightness=Va.prototype.gc;Va.prototype.setContrast=Va.prototype.hc;
947Va.prototype.setHue=Va.prototype.ic;Va.prototype.setExtent=Va.prototype.bc;Va.prototype.setMaxResolution=Va.prototype.jc;Va.prototype.setMinResolution=Va.prototype.kc;Va.prototype.setOpacity=Va.prototype.cc;Va.prototype.setSaturation=Va.prototype.lc;Va.prototype.setVisible=Va.prototype.mc;Va.prototype.get=Va.prototype.get;Va.prototype.getKeys=Va.prototype.C;Va.prototype.getProperties=Va.prototype.D;Va.prototype.set=Va.prototype.set;Va.prototype.setProperties=Va.prototype.t;Va.prototype.unset=Va.prototype.I;
948Va.prototype.changed=Va.prototype.k;Va.prototype.getRevision=Va.prototype.v;
948Va.prototype.on=Va.prototype.r;Va.prototype.once=Va.prototype.A;Va.prototype.un=Va.prototype.u;Va.prototype.unByKey=Va.prototype.B;Ua.prototype.getBrightness=Ua.prototype.Bb;Ua.prototype.getContrast=Ua.prototype.Cb;Ua.prototype.getHue=Ua.prototype.Db;Ua.prototype.getExtent=Ua.prototype.G;Ua.prototype.getMaxResolution=Ua.prototype.Eb;Ua.prototype.getMinResolution=Ua.prototype.Fb;Ua.prototype.getOpacity=Ua.prototype.Kb;Ua.prototype.getSaturation=
949Ua.prototype.Gb;Ua.prototype.getVisible=Ua.prototype.eb;Ua.prototype.setBrightness=Ua.prototype.gc;Ua.prototype.setContrast=Ua.prototype.hc;Ua.prototype.setHue=Ua.prototype.ic;Ua.prototype.setExtent=Ua.prototype.bc;Ua.prototype.setMaxResolution=Ua.prototype.jc;Ua.prototype.setMinResolution=Ua.prototype.kc;Ua.prototype.setOpacity=Ua.prototype.cc;Ua.prototype.setSaturation=Ua.prototype.lc;Ua.prototype.setVisible=Ua.prototype.mc;Ua.prototype.get=Ua.prototype.get;Ua.prototype.getKeys=Ua.prototype.C;Ua.prototype.getProperties=
950Ua.prototype.D;Ua.prototype.set=Ua.prototype.set;Ua.prototype.setProperties=Ua.prototype.t;Ua.prototype.unset=Ua.prototype.I;Ua.prototype.changed=Ua.prototype.k;Ua.prototype.getRevision=Ua.prototype.v;Ua.prototype.on=Ua.prototype.r;Ua.prototype.once=Ua.prototype.A;Ua.prototype.un=Ua.prototype.u;Ua.prototype.unByKey=Ua.prototype.B;Ea.prototype.setSource=Ea.prototype.Jc;Ea.prototype.getBrightness=Ea.prototype.Bb;Ea.prototype.getContrast=Ea.prototype.Cb;Ea.prototype.getHue=Ea.prototype.Db;Ea.prototype.getExtent=
951Ea.prototype.G;Ea.prototype.getMaxResolution=Ea.prototype.Eb;Ea.prototype.getMinResolution=Ea.prototype.Fb;Ea.prototype.getOpacity=Ea.prototype.Kb;Ea.prototype.getSaturation=Ea.prototype.Gb;Ea.prototype.getVisible=Ea.prototype.eb;Ea.prototype.setBrightness=Ea.prototype.gc;Ea.prototype.setContrast=Ea.prototype.hc;Ea.prototype.setHue=Ea.prototype.ic;Ea.prototype.setExtent=Ea.prototype.bc;Ea.prototype.setMaxResolution=Ea.prototype.jc;Ea.prototype.setMinResolution=Ea.prototype.kc;Ea.prototype.setOpacity=
952Ea.prototype.cc;Ea.prototype.setSaturation=Ea.prototype.lc;Ea.prototype.setVisible=Ea.prototype.mc;Ea.prototype.get=Ea.prototype.get;Ea.prototype.getKeys=Ea.prototype.C;Ea.prototype.getProperties=Ea.prototype.D;Ea.prototype.set=Ea.prototype.set;Ea.prototype.setProperties=Ea.prototype.t;Ea.prototype.unset=Ea.prototype.I;Ea.prototype.changed=Ea.prototype.k;Ea.prototype.getRevision=Ea.prototype.v;Ea.prototype.on=Ea.prototype.r;Ea.prototype.once=Ea.prototype.A;Ea.prototype.un=Ea.prototype.u;Ea.prototype.unByKey=
953Ea.prototype.B;Jb.prototype.get=Jb.prototype.get;Jb.prototype.getKeys=Jb.prototype.C;Jb.prototype.getProperties=Jb.prototype.D;Jb.prototype.set=Jb.prototype.set;Jb.prototype.setProperties=Jb.prototype.t;Jb.prototype.unset=Jb.prototype.I;Jb.prototype.changed=Jb.prototype.k;Jb.prototype.getRevision=Jb.prototype.v;Jb.prototype.on=Jb.prototype.r;Jb.prototype.once=Jb.prototype.A;Jb.prototype.un=Jb.prototype.u;Jb.prototype.unByKey=Jb.prototype.B;gd.prototype.getActive=gd.prototype.c;gd.prototype.setActive=
954gd.prototype.d;gd.prototype.get=gd.prototype.get;gd.prototype.getKeys=gd.prototype.C;gd.prototype.getProperties=gd.prototype.D;gd.prototype.set=gd.prototype.set;gd.prototype.setProperties=gd.prototype.t;gd.prototype.unset=gd.prototype.I;gd.prototype.changed=gd.prototype.k;gd.prototype.getRevision=gd.prototype.v;gd.prototype.on=gd.prototype.r;gd.prototype.once=gd.prototype.A;gd.prototype.un=gd.prototype.u;gd.prototype.unByKey=gd.prototype.B;Dc.prototype.getActive=Dc.prototype.c;Dc.prototype.setActive=
955Dc.prototype.d;Dc.prototype.get=Dc.prototype.get;Dc.prototype.getKeys=Dc.prototype.C;Dc.prototype.getProperties=Dc.prototype.D;Dc.prototype.set=Dc.prototype.set;Dc.prototype.setProperties=Dc.prototype.t;Dc.prototype.unset=Dc.prototype.I;Dc.prototype.changed=Dc.prototype.k;Dc.prototype.getRevision=Dc.prototype.v;Dc.prototype.on=Dc.prototype.r;Dc.prototype.once=Dc.prototype.A;Dc.prototype.un=Dc.prototype.u;Dc.prototype.unByKey=Dc.prototype.B;Db.prototype.getActive=Db.prototype.c;Db.prototype.setActive=
956Db.prototype.d;Db.prototype.get=Db.prototype.get;Db.prototype.getKeys=Db.prototype.C;Db.prototype.getProperties=Db.prototype.D;Db.prototype.set=Db.prototype.set;Db.prototype.setProperties=Db.prototype.t;Db.prototype.unset=Db.prototype.I;Db.prototype.changed=Db.prototype.k;Db.prototype.getRevision=Db.prototype.v;Db.prototype.on=Db.prototype.r;Db.prototype.once=Db.prototype.A;Db.prototype.un=Db.prototype.u;Db.prototype.unByKey=Db.prototype.B;Bc.prototype.getActive=Bc.prototype.c;Bc.prototype.setActive=
957Bc.prototype.d;Bc.prototype.get=Bc.prototype.get;Bc.prototype.getKeys=Bc.prototype.C;Bc.prototype.getProperties=Bc.prototype.D;Bc.prototype.set=Bc.prototype.set;Bc.prototype.setProperties=Bc.prototype.t;Bc.prototype.unset=Bc.prototype.I;Bc.prototype.changed=Bc.prototype.k;Bc.prototype.getRevision=Bc.prototype.v;Bc.prototype.on=Bc.prototype.r;Bc.prototype.once=Bc.prototype.A;Bc.prototype.un=Bc.prototype.u;Bc.prototype.unByKey=Bc.prototype.B;Yc.prototype.getActive=Yc.prototype.c;Yc.prototype.setActive=
958Yc.prototype.d;Yc.prototype.get=Yc.prototype.get;Yc.prototype.getKeys=Yc.prototype.C;Yc.prototype.getProperties=Yc.prototype.D;Yc.prototype.set=Yc.prototype.set;Yc.prototype.setProperties=Yc.prototype.t;Yc.prototype.unset=Yc.prototype.I;Yc.prototype.changed=Yc.prototype.k;Yc.prototype.getRevision=Yc.prototype.v;Yc.prototype.on=Yc.prototype.r;Yc.prototype.once=Yc.prototype.A;Yc.prototype.un=Yc.prototype.u;Yc.prototype.unByKey=Yc.prototype.B;md.prototype.getActive=md.prototype.c;md.prototype.setActive=
959md.prototype.d;md.prototype.get=md.prototype.get;md.prototype.getKeys=md.prototype.C;md.prototype.getProperties=md.prototype.D;md.prototype.set=md.prototype.set;md.prototype.setProperties=md.prototype.t;md.prototype.unset=md.prototype.I;md.prototype.changed=md.prototype.k;md.prototype.getRevision=md.prototype.v;md.prototype.on=md.prototype.r;md.prototype.once=md.prototype.A;md.prototype.un=md.prototype.u;md.prototype.unByKey=md.prototype.B;Zc.prototype.getActive=Zc.prototype.c;Zc.prototype.setActive=
960Zc.prototype.d;Zc.prototype.get=Zc.prototype.get;Zc.prototype.getKeys=Zc.prototype.C;Zc.prototype.getProperties=Zc.prototype.D;Zc.prototype.set=Zc.prototype.set;Zc.prototype.setProperties=Zc.prototype.t;Zc.prototype.unset=Zc.prototype.I;Zc.prototype.changed=Zc.prototype.k;Zc.prototype.getRevision=Zc.prototype.v;Zc.prototype.on=Zc.prototype.r;Zc.prototype.once=Zc.prototype.A;Zc.prototype.un=Zc.prototype.u;Zc.prototype.unByKey=Zc.prototype.B;Mc.prototype.getGeometry=Mc.prototype.Q;Mc.prototype.getActive=
961Mc.prototype.c;Mc.prototype.setActive=Mc.prototype.d;Mc.prototype.get=Mc.prototype.get;Mc.prototype.getKeys=Mc.prototype.C;Mc.prototype.getProperties=Mc.prototype.D;Mc.prototype.set=Mc.prototype.set;Mc.prototype.setProperties=Mc.prototype.t;Mc.prototype.unset=Mc.prototype.I;Mc.prototype.changed=Mc.prototype.k;Mc.prototype.getRevision=Mc.prototype.v;Mc.prototype.on=Mc.prototype.r;Mc.prototype.once=Mc.prototype.A;Mc.prototype.un=Mc.prototype.u;Mc.prototype.unByKey=Mc.prototype.B;xc.prototype.getActive=
962xc.prototype.c;xc.prototype.setActive=xc.prototype.d;xc.prototype.get=xc.prototype.get;xc.prototype.getKeys=xc.prototype.C;xc.prototype.getProperties=xc.prototype.D;xc.prototype.set=xc.prototype.set;xc.prototype.setProperties=xc.prototype.t;xc.prototype.unset=xc.prototype.I;xc.prototype.changed=xc.prototype.k;xc.prototype.getRevision=xc.prototype.v;xc.prototype.on=xc.prototype.r;xc.prototype.once=xc.prototype.A;xc.prototype.un=xc.prototype.u;xc.prototype.unByKey=xc.prototype.B;hd.prototype.getActive=
963hd.prototype.c;hd.prototype.setActive=hd.prototype.d;hd.prototype.get=hd.prototype.get;
963hd.prototype.getKeys=hd.prototype.C;hd.prototype.getProperties=hd.prototype.D;hd.prototype.set=hd.prototype.set;hd.prototype.setProperties=hd.prototype.t;hd.prototype.unset=hd.prototype.I;hd.prototype.changed=hd.prototype.k;hd.prototype.getRevision=hd.prototype.v;hd.prototype.on=hd.prototype.r;hd.prototype.once=hd.prototype.A;hd.prototype.un=hd.prototype.u;hd.prototype.unByKey=hd.prototype.B;id.prototype.getActive=
964id.prototype.c;id.prototype.setActive=id.prototype.d;id.prototype.get=id.prototype.get;id.prototype.getKeys=id.prototype.C;id.prototype.getProperties=id.prototype.D;id.prototype.set=id.prototype.set;id.prototype.setProperties=id.prototype.t;id.prototype.unset=id.prototype.I;id.prototype.changed=id.prototype.k;id.prototype.getRevision=id.prototype.v;id.prototype.on=id.prototype.r;id.prototype.once=id.prototype.A;id.prototype.un=id.prototype.u;id.prototype.unByKey=id.prototype.B;ed.prototype.getActive=
965ed.prototype.c;ed.prototype.setActive=ed.prototype.d;ed.prototype.get=ed.prototype.get;ed.prototype.getKeys=ed.prototype.C;ed.prototype.getProperties=ed.prototype.D;ed.prototype.set=ed.prototype.set;ed.prototype.setProperties=ed.prototype.t;ed.prototype.unset=ed.prototype.I;ed.prototype.changed=ed.prototype.k;ed.prototype.getRevision=ed.prototype.v;ed.prototype.on=ed.prototype.r;ed.prototype.once=ed.prototype.A;ed.prototype.un=ed.prototype.u;ed.prototype.unByKey=ed.prototype.B;$c.prototype.getActive=
966$c.prototype.c;$c.prototype.setActive=$c.prototype.d;$c.prototype.get=$c.prototype.get;$c.prototype.getKeys=$c.prototype.C;$c.prototype.getProperties=$c.prototype.D;$c.prototype.set=$c.prototype.set;$c.prototype.setProperties=$c.prototype.t;$c.prototype.unset=$c.prototype.I;$c.prototype.changed=$c.prototype.k;$c.prototype.getRevision=$c.prototype.v;$c.prototype.on=$c.prototype.r;$c.prototype.once=$c.prototype.A;$c.prototype.un=$c.prototype.u;$c.prototype.unByKey=$c.prototype.B;ad.prototype.getActive=
967ad.prototype.c;ad.prototype.setActive=ad.prototype.d;ad.prototype.get=ad.prototype.get;ad.prototype.getKeys=ad.prototype.C;ad.prototype.getProperties=ad.prototype.D;ad.prototype.set=ad.prototype.set;ad.prototype.setProperties=ad.prototype.t;ad.prototype.unset=ad.prototype.I;ad.prototype.changed=ad.prototype.k;ad.prototype.getRevision=ad.prototype.v;ad.prototype.on=ad.prototype.r;ad.prototype.once=ad.prototype.A;ad.prototype.un=ad.prototype.u;ad.prototype.unByKey=ad.prototype.B;bd.prototype.getActive=
968bd.prototype.c;bd.prototype.setActive=bd.prototype.d;bd.prototype.get=bd.prototype.get;bd.prototype.getKeys=bd.prototype.C;bd.prototype.getProperties=bd.prototype.D;bd.prototype.set=bd.prototype.set;bd.prototype.setProperties=bd.prototype.t;bd.prototype.unset=bd.prototype.I;bd.prototype.changed=bd.prototype.k;bd.prototype.getRevision=bd.prototype.v;bd.prototype.on=bd.prototype.r;bd.prototype.once=bd.prototype.A;bd.prototype.un=bd.prototype.u;bd.prototype.unByKey=bd.prototype.B;pc.prototype.getActive=
969pc.prototype.c;pc.prototype.setActive=pc.prototype.d;pc.prototype.get=pc.prototype.get;pc.prototype.getKeys=pc.prototype.C;pc.prototype.getProperties=pc.prototype.D;pc.prototype.set=pc.prototype.set;pc.prototype.setProperties=pc.prototype.t;pc.prototype.unset=pc.prototype.I;pc.prototype.changed=pc.prototype.k;pc.prototype.getRevision=pc.prototype.v;pc.prototype.on=pc.prototype.r;pc.prototype.once=pc.prototype.A;pc.prototype.un=pc.prototype.u;pc.prototype.unByKey=pc.prototype.B;Ec.prototype.getActive=
970Ec.prototype.c;Ec.prototype.setActive=Ec.prototype.d;Ec.prototype.get=Ec.prototype.get;Ec.prototype.getKeys=Ec.prototype.C;Ec.prototype.getProperties=Ec.prototype.D;Ec.prototype.set=Ec.prototype.set;Ec.prototype.setProperties=Ec.prototype.t;Ec.prototype.unset=Ec.prototype.I;Ec.prototype.changed=Ec.prototype.k;Ec.prototype.getRevision=Ec.prototype.v;Ec.prototype.on=Ec.prototype.r;Ec.prototype.once=Ec.prototype.A;Ec.prototype.un=Ec.prototype.u;Ec.prototype.unByKey=Ec.prototype.B;gc.prototype.get=gc.prototype.get;
971gc.prototype.getKeys=gc.prototype.C;gc.prototype.getProperties=gc.prototype.D;gc.prototype.set=gc.prototype.set;gc.prototype.setProperties=gc.prototype.t;gc.prototype.unset=gc.prototype.I;gc.prototype.changed=gc.prototype.k;gc.prototype.getRevision=gc.prototype.v;gc.prototype.on=gc.prototype.r;gc.prototype.once=gc.prototype.A;gc.prototype.un=gc.prototype.u;gc.prototype.unByKey=gc.prototype.B;mb.prototype.getClosestPoint=mb.prototype.e;mb.prototype.getExtent=mb.prototype.G;mb.prototype.get=mb.prototype.get;
972mb.prototype.getKeys=mb.prototype.C;mb.prototype.getProperties=mb.prototype.D;mb.prototype.set=mb.prototype.set;mb.prototype.setProperties=mb.prototype.t;mb.prototype.unset=mb.prototype.I;mb.prototype.changed=mb.prototype.k;mb.prototype.getRevision=mb.prototype.v;mb.prototype.on=mb.prototype.r;mb.prototype.once=mb.prototype.A;mb.prototype.un=mb.prototype.u;mb.prototype.unByKey=mb.prototype.B;hb.prototype.getFirstCoordinate=hb.prototype.ob;hb.prototype.getLastCoordinate=hb.prototype.pb;hb.prototype.getLayout=
973hb.prototype.qb;hb.prototype.applyTransform=hb.prototype.qa;hb.prototype.translate=hb.prototype.Oa;hb.prototype.getClosestPoint=hb.prototype.e;hb.prototype.getExtent=hb.prototype.G;hb.prototype.get=hb.prototype.get;hb.prototype.getKeys=hb.prototype.C;hb.prototype.getProperties=hb.prototype.D;hb.prototype.set=hb.prototype.set;hb.prototype.setProperties=hb.prototype.t;hb.prototype.unset=hb.prototype.I;hb.prototype.changed=hb.prototype.k;hb.prototype.getRevision=hb.prototype.v;hb.prototype.on=hb.prototype.r;
974hb.prototype.once=hb.prototype.A;hb.prototype.un=hb.prototype.u;hb.prototype.unByKey=hb.prototype.B;sb.prototype.getClosestPoint=sb.prototype.e;sb.prototype.getExtent=sb.prototype.G;sb.prototype.get=sb.prototype.get;sb.prototype.getKeys=sb.prototype.C;sb.prototype.getProperties=sb.prototype.D;sb.prototype.set=sb.prototype.set;sb.prototype.setProperties=sb.prototype.t;sb.prototype.unset=sb.prototype.I;sb.prototype.changed=sb.prototype.k;sb.prototype.getRevision=sb.prototype.v;sb.prototype.on=sb.prototype.r;
975sb.prototype.once=sb.prototype.A;sb.prototype.un=sb.prototype.u;sb.prototype.unByKey=sb.prototype.B;lb.prototype.getFirstCoordinate=lb.prototype.ob;lb.prototype.getLastCoordinate=lb.prototype.pb;lb.prototype.getLayout=lb.prototype.qb;lb.prototype.applyTransform=lb.prototype.qa;lb.prototype.translate=lb.prototype.Oa;lb.prototype.getClosestPoint=lb.prototype.e;lb.prototype.getExtent=lb.prototype.G;lb.prototype.get=lb.prototype.get;lb.prototype.getKeys=lb.prototype.C;lb.prototype.getProperties=lb.prototype.D;
976lb.prototype.set=lb.prototype.set;lb.prototype.setProperties=lb.prototype.t;lb.prototype.unset=lb.prototype.I;lb.prototype.changed=lb.prototype.k;lb.prototype.getRevision=lb.prototype.v;lb.prototype.on=lb.prototype.r;lb.prototype.once=lb.prototype.A;lb.prototype.un=lb.prototype.u;lb.prototype.unByKey=lb.prototype.B;Ha.prototype.getFirstCoordinate=Ha.prototype.ob;Ha.prototype.getLastCoordinate=Ha.prototype.pb;Ha.prototype.getLayout=Ha.prototype.qb;Ha.prototype.applyTransform=Ha.prototype.qa;Ha.prototype.translate=
977Ha.prototype.Oa;Ha.prototype.getClosestPoint=Ha.prototype.e;Ha.prototype.getExtent=Ha.prototype.G;Ha.prototype.get=Ha.prototype.get;Ha.prototype.getKeys=Ha.prototype.C;Ha.prototype.getProperties=Ha.prototype.D;Ha.prototype.set=Ha.prototype.set;Ha.prototype.setProperties=Ha.prototype.t;Ha.prototype.unset=Ha.prototype.I;Ha.prototype.changed=Ha.prototype.k;Ha.prototype.getRevision=Ha.prototype.v;Ha.prototype.on=Ha.prototype.r;Ha.prototype.once=Ha.prototype.A;Ha.prototype.un=Ha.prototype.u;Ha.prototype.unByKey=
978Ha.prototype.B;Qa.prototype.getFirstCoordinate=Qa.prototype.ob;Qa.prototype.getLastCoordinate=Qa.prototype.pb;Qa.prototype.getLayout=Qa.prototype.qb;Qa.prototype.applyTransform=Qa.prototype.qa;Qa.prototype.translate=Qa.prototype.Oa;Qa.prototype.getClosestPoint=Qa.prototype.e;Qa.prototype.getExtent=Qa.prototype.G;Qa.prototype.get=Qa.prototype.get;Qa.prototype.getKeys=Qa.prototype.C;Qa.prototype.getProperties=Qa.prototype.D;Qa.prototype.set=Qa.prototype.set;Qa.prototype.setProperties=Qa.prototype.t;
979Qa.prototype.unset=Qa.prototype.I;Qa.prototype.changed=Qa.prototype.k;Qa.prototype.getRevision=Qa.prototype.v;Qa.prototype.on=Qa.prototype.r;Qa.prototype.once=Qa.prototype.A;Qa.prototype.un=Qa.prototype.u;Qa.prototype.unByKey=Qa.prototype.B;$a.prototype.getFirstCoordinate=$a.prototype.ob;$a.prototype.getLastCoordinate=$a.prototype.pb;$a.prototype.getLayout=$a.prototype.qb;$a.prototype.applyTransform=$a.prototype.qa;$a.prototype.translate=$a.prototype.Oa;$a.prototype.getClosestPoint=$a.prototype.e;
980$a.prototype.getExtent=$a.prototype.G;$a.prototype.get=$a.prototype.get;$a.prototype.getKeys=$a.prototype.C;$a.prototype.getProperties=$a.prototype.D;$a.prototype.set=$a.prototype.set;$a.prototype.setProperties=$a.prototype.t;$a.prototype.unset=$a.prototype.I;$a.prototype.changed=$a.prototype.k;$a.prototype.getRevision=$a.prototype.v;$a.prototype.on=$a.prototype.r;$a.prototype.once=$a.prototype.A;$a.prototype.un=$a.prototype.u;$a.prototype.unByKey=$a.prototype.B;Ra.prototype.getFirstCoordinate=Ra.prototype.ob;
981Ra.prototype.getLastCoordinate=Ra.prototype.pb;Ra.prototype.getLayout=Ra.prototype.qb;Ra.prototype.applyTransform=Ra.prototype.qa;Ra.prototype.translate=Ra.prototype.Oa;Ra.prototype.getClosestPoint=Ra.prototype.e;Ra.prototype.getExtent=Ra.prototype.G;Ra.prototype.get=Ra.prototype.get;Ra.prototype.getKeys=Ra.prototype.C;Ra.prototype.getProperties=Ra.prototype.D;Ra.prototype.set=Ra.prototype.set;Ra.prototype.setProperties=Ra.prototype.t;Ra.prototype.unset=Ra.prototype.I;Ra.prototype.changed=Ra.prototype.k;
982Ra.prototype.getRevision=Ra.prototype.v;Ra.prototype.on=Ra.prototype.r;Ra.prototype.once=Ra.prototype.A;Ra.prototype.un=Ra.prototype.u;Ra.prototype.unByKey=Ra.prototype.B;Ta.prototype.getFirstCoordinate=Ta.prototype.ob;Ta.prototype.getLastCoordinate=Ta.prototype.pb;Ta.prototype.getLayout=Ta.prototype.qb;Ta.prototype.applyTransform=Ta.prototype.qa;Ta.prototype.translate=Ta.prototype.Oa;Ta.prototype.getClosestPoint=Ta.prototype.e;Ta.prototype.getExtent=Ta.prototype.G;Ta.prototype.get=Ta.prototype.get;
983Ta.prototype.getKeys=Ta.prototype.C;Ta.prototype.getProperties=Ta.prototype.D;Ta.prototype.set=Ta.prototype.set;Ta.prototype.setProperties=Ta.prototype.t;Ta.prototype.unset=Ta.prototype.I;Ta.prototype.changed=Ta.prototype.k;Ta.prototype.getRevision=Ta.prototype.v;Ta.prototype.on=Ta.prototype.r;Ta.prototype.once=Ta.prototype.A;Ta.prototype.un=Ta.prototype.u;Ta.prototype.unByKey=Ta.prototype.B;Fa.prototype.getFirstCoordinate=Fa.prototype.ob;Fa.prototype.getLastCoordinate=Fa.prototype.pb;Fa.prototype.getLayout=
984Fa.prototype.qb;Fa.prototype.applyTransform=Fa.prototype.qa;Fa.prototype.translate=Fa.prototype.Oa;Fa.prototype.getClosestPoint=Fa.prototype.e;Fa.prototype.getExtent=Fa.prototype.G;Fa.prototype.get=Fa.prototype.get;Fa.prototype.getKeys=Fa.prototype.C;Fa.prototype.getProperties=Fa.prototype.D;Fa.prototype.set=Fa.prototype.set;Fa.prototype.setProperties=Fa.prototype.t;Fa.prototype.unset=Fa.prototype.I;Fa.prototype.changed=Fa.prototype.k;Fa.prototype.getRevision=Fa.prototype.v;Fa.prototype.on=Fa.prototype.r;
985Fa.prototype.once=Fa.prototype.A;Fa.prototype.un=Fa.prototype.u;Fa.prototype.unByKey=Fa.prototype.B;Zf.prototype.readFeatures=Zf.prototype.ja;Ya.prototype.readFeatures=Ya.prototype.ja;Ya.prototype.readFeatures=Ya.prototype.ja;qb.prototype.get=qb.prototype.get;qb.prototype.getKeys=qb.prototype.C;qb.prototype.getProperties=qb.prototype.D;qb.prototype.set=qb.prototype.set;qb.prototype.setProperties=qb.prototype.t;qb.prototype.unset=qb.prototype.I;qb.prototype.changed=qb.prototype.k;qb.prototype.getRevision=
986qb.prototype.v;qb.prototype.on=qb.prototype.r;qb.prototype.once=qb.prototype.A;qb.prototype.un=qb.prototype.u;qb.prototype.unByKey=qb.prototype.B;bc.prototype.getMap=bc.prototype.e;bc.prototype.setMap=bc.prototype.setMap;bc.prototype.setTarget=bc.prototype.c;bc.prototype.get=bc.prototype.get;bc.prototype.getKeys=bc.prototype.C;bc.prototype.getProperties=bc.prototype.D;bc.prototype.set=bc.prototype.set;bc.prototype.setProperties=bc.prototype.t;bc.prototype.unset=bc.prototype.I;bc.prototype.changed=
987bc.prototype.k;bc.prototype.getRevision=bc.prototype.v;bc.prototype.on=bc.prototype.r;bc.prototype.once=bc.prototype.A;bc.prototype.un=bc.prototype.u;bc.prototype.unByKey=bc.prototype.B;Kc.prototype.getMap=Kc.prototype.e;Kc.prototype.setMap=Kc.prototype.setMap;Kc.prototype.setTarget=Kc.prototype.c;Kc.prototype.get=Kc.prototype.get;Kc.prototype.getKeys=Kc.prototype.C;Kc.prototype.getProperties=Kc.prototype.D;Kc.prototype.set=Kc.prototype.set;Kc.prototype.setProperties=Kc.prototype.t;Kc.prototype.unset=
988Kc.prototype.I;Kc.prototype.changed=Kc.prototype.k;Kc.prototype.getRevision=Kc.prototype.v;Kc.prototype.on=Kc.prototype.r;Kc.prototype.once=Kc.prototype.A;Kc.prototype.un=Kc.prototype.u;Kc.prototype.unByKey=Kc.prototype.B;cc.prototype.getMap=cc.prototype.e;cc.prototype.setTarget=cc.prototype.c;cc.prototype.get=cc.prototype.get;cc.prototype.getKeys=cc.prototype.C;cc.prototype.getProperties=cc.prototype.D;cc.prototype.set=cc.prototype.set;cc.prototype.setProperties=cc.prototype.t;cc.prototype.unset=
989cc.prototype.I;cc.prototype.changed=cc.prototype.k;cc.prototype.getRevision=cc.prototype.v;cc.prototype.on=cc.prototype.r;cc.prototype.once=cc.prototype.A;cc.prototype.un=cc.prototype.u;cc.prototype.unByKey=cc.prototype.B;dc.prototype.getMap=dc.prototype.e;dc.prototype.setTarget=dc.prototype.c;dc.prototype.get=dc.prototype.get;dc.prototype.getKeys=dc.prototype.C;dc.prototype.getProperties=dc.prototype.D;dc.prototype.set=dc.prototype.set;dc.prototype.setProperties=dc.prototype.t;dc.prototype.unset=
990dc.prototype.I;dc.prototype.changed=dc.prototype.k;dc.prototype.getRevision=dc.prototype.v;dc.prototype.on=dc.prototype.r;dc.prototype.once=dc.prototype.A;dc.prototype.un=dc.prototype.u;dc.prototype.unByKey=dc.prototype.B;Gc.prototype.getMap=Gc.prototype.e;Gc.prototype.setMap=Gc.prototype.setMap;Gc.prototype.setTarget=Gc.prototype.c;Gc.prototype.get=Gc.prototype.get;Gc.prototype.getKeys=Gc.prototype.C;Gc.prototype.getProperties=Gc.prototype.D;Gc.prototype.set=Gc.prototype.set;Gc.prototype.setProperties=
991Gc.prototype.t;Gc.prototype.unset=Gc.prototype.I;Gc.prototype.changed=Gc.prototype.k;Gc.prototype.getRevision=Gc.prototype.v;Gc.prototype.on=Gc.prototype.r;Gc.prototype.once=Gc.prototype.A;Gc.prototype.un=Gc.prototype.u;Gc.prototype.unByKey=Gc.prototype.B;nc.prototype.getMap=nc.prototype.e;nc.prototype.setMap=nc.prototype.setMap;nc.prototype.setTarget=nc.prototype.c;nc.prototype.get=nc.prototype.get;nc.prototype.getKeys=nc.prototype.C;nc.prototype.getProperties=nc.prototype.D;nc.prototype.set=nc.prototype.set;
992nc.prototype.setProperties=nc.prototype.t;nc.prototype.unset=nc.prototype.I;nc.prototype.changed=nc.prototype.k;nc.prototype.getRevision=nc.prototype.v;nc.prototype.on=nc.prototype.r;nc.prototype.once=nc.prototype.A;nc.prototype.un=nc.prototype.u;nc.prototype.unByKey=nc.prototype.B;Ac.prototype.getMap=Ac.prototype.e;Ac.prototype.setMap=Ac.prototype.setMap;Ac.prototype.setTarget=Ac.prototype.c;Ac.prototype.get=Ac.prototype.get;Ac.prototype.getKeys=Ac.prototype.C;Ac.prototype.getProperties=Ac.prototype.D;
993Ac.prototype.set=Ac.prototype.set;Ac.prototype.setProperties=Ac.prototype.t;Ac.prototype.unset=Ac.prototype.I;Ac.prototype.changed=Ac.prototype.k;Ac.prototype.getRevision=Ac.prototype.v;Ac.prototype.on=Ac.prototype.r;Ac.prototype.once=Ac.prototype.A;Ac.prototype.un=Ac.prototype.u;Ac.prototype.unByKey=Ac.prototype.B;dd.prototype.getMap=dd.prototype.e;dd.prototype.setTarget=dd.prototype.c;dd.prototype.get=dd.prototype.get;dd.prototype.getKeys=dd.prototype.C;dd.prototype.getProperties=dd.prototype.D;
994dd.prototype.set=dd.prototype.set;dd.prototype.setProperties=dd.prototype.t;dd.prototype.unset=dd.prototype.I;dd.prototype.changed=dd.prototype.k;dd.prototype.getRevision=dd.prototype.v;dd.prototype.on=dd.prototype.r;dd.prototype.once=dd.prototype.A;dd.prototype.un=dd.prototype.u;dd.prototype.unByKey=dd.prototype.B;Rc.prototype.getMap=Rc.prototype.e;Rc.prototype.setMap=Rc.prototype.setMap;Rc.prototype.setTarget=Rc.prototype.c;Rc.prototype.get=Rc.prototype.get;Rc.prototype.getKeys=Rc.prototype.C;Rc.prototype.getProperties=
995Rc.prototype.D;Rc.prototype.set=Rc.prototype.set;Rc.prototype.setProperties=Rc.prototype.t;Rc.prototype.unset=Rc.prototype.I;Rc.prototype.changed=Rc.prototype.k;Rc.prototype.getRevision=Rc.prototype.v;Rc.prototype.on=Rc.prototype.r;Rc.prototype.once=Rc.prototype.A;Rc.prototype.un=Rc.prototype.u;Rc.prototype.unByKey=Rc.prototype.B;return ba.ol});
996ol.layer.AnimatedCluster=function(f){f=f||{};ol.layer.Vector.call(this,f);this.oldcluster=new ol.source.Vector;
996this.clusters=[];this.animation={start:!1};this.set("animationDuration","number"==typeof f.animationDuration?f.animationDuration:700);this.set("animationMethod",f.animationMethod||ol.easing.easeOut);this.getSource().on("change",this.saveCluster,this);this.on("precompose",this.animate,this);this.on("postcompose",this.postanimate,this)};ol.inherits(ol.layer.AnimatedCluster,ol.layer.Vector);
997ol.layer.AnimatedCluster.prototype.saveCluster=function(){this.oldcluster.clear();if(this.get("animationDuration")){var f=this.getSource().getFeatures();f.length&&f[0].get("features")&&(this.oldcluster.addFeatures(this.clusters),this.clusters=f.slice(0),this.sourceChanged=!0)}};ol.layer.AnimatedCluster.prototype.getClusterForFeature=function(f,n){for(var A=0;n[A];A++){var q=n[A].get("features");if(q&&q.length)for(var z=0,t;t=q[z];z++)if(f===t)return n[A]}return!1};
998ol.layer.AnimatedCluster.prototype.stopAnimation=function(){this.animation.start=!1;this.animation.cA=[];this.animation.cB=[]};
999ol.layer.AnimatedCluster.prototype.animate=function(f){var n=this.get("animationDuration");if(n){var A=f.frameState.viewState.resolution,q=this.animation,z=f.frameState.time;if(q.resolution!=A&&this.sourceChanged){z=f.frameState.extent;q.resolution<A?(z=ol.extent.buffer(z,100*A),q.cA=this.oldcluster.getFeaturesInExtent(z),q.cB=this.getSource().getFeaturesInExtent(z),q.revers=!1):(z=ol.extent.buffer(z,100*A),q.cA=this.getSource().getFeaturesInExtent(z),q.cB=this.oldcluster.getFeaturesInExtent(z),q.revers=
1000!0);q.clusters=[];z=0;for(var t;t=q.cA[z];z++){var G=t.get("features");if(G&&G.length){var D=this.getClusterForFeature(G[0],q.cB);D&&q.clusters.push({f:t,pt:D.getGeometry().getCoordinates()})}}q.resolution=A;this.sourceChanged=!1;if(!q.clusters.length||1E3<q.clusters.length){this.stopAnimation();return}z=q.start=(new Date).getTime()}if(q.start){t=f.vectorContext;n=(z-q.start)/n;1<n&&(this.stopAnimation(),n=1);n=this.get("animationMethod")(n);var E=this.getStyle();G="function"==typeof E?E:E.length?
1001function(){return E}:function(){return[E]};f.context.save();f.context.globalAlpha=this.getOpacity();var w=f.frameState.pixelRatio;for(z=0;D=q.clusters[z];z++){var v=D.f.getGeometry().getCoordinates();q.revers?(v[0]=D.pt[0]+n*(v[0]-D.pt[0]),v[1]=D.pt[1]+n*(v[1]-D.pt[1])):(v[0]+=n*(D.pt[0]-v[0]),v[1]+=n*(D.pt[1]-v[1]));D=G(D.f,A);v=new ol.geom.Point(v);for(var C=0;s=D[C];C++){var K=s.getImage();if(K){var N=K.getScale();K.setScale(N*w)}t.setStyle?(t.setStyle(s),t.drawGeometry(v)):(t.setImageStyle(K),
1002t.setTextStyle(s.getText()),t.drawPointGeometry(v));K&&K.setScale(N)}}f.context.restore();f.frameState.animate=!0;f.context.save();f.context.beginPath();f.context.rect(0,0,0,0);f.context.clip();this.clip_=!0}}};ol.layer.AnimatedCluster.prototype.postanimate=function(f){this.clip_&&(f.context.restore(),this.clip_=!1)};
1003ol.interaction.SelectCluster=function(f){f=f||{};this.pointRadius=f.pointRadius||12;this.circleMaxObjects=f.circleMaxObjects||10;this.maxObjects=f.maxObjects||60;this.spiral=!1!==f.spiral;this.animate=f.animate;this.animationDuration=f.animationDuration||500;this.selectCluster_=!1!==f.selectCluster;var n=this.overlayLayer_=new ol.layer.Vector({source:new ol.source.Vector({features:new ol.Collection,useSpatialIndex:!0}),name:"Cluster overlay",updateWhileAnimating:!0,updateWhileInteracting:!0,displayInLayerSwitcher:!1,
1004style:f.featureStyle});
1004if(f.layers)if("function"==typeof f.layers){var A=f.layers;f.layers=function(q){return q===n||A(q)}}else f.layers.push&&f.layers.push(this.overlayLayer_);f.filter?(A=f.filter,f.filter=function(q,z){return!z&&q.get("selectclusterlink")?!1:A(q,z)}):f.filter=function(q,z){return!z&&q.get("selectclusterlink")?!1:!0};this.filter_=f.filter;ol.interaction.Select.call(this,f);this.on("select",this.selectCluster,this)};ol.inherits(ol.interaction.SelectCluster,ol.interaction.Select);
1005ol.interaction.SelectCluster.prototype.setMap=function(f){ol.interaction.Select.prototype.setMap.call(this,f);this.map_&&this.map_.getView()&&f.getView().un("change:resolution",this.clear,this);this.map_&&this.map_.removeLayer(this.overlayLayer_);this.map_=f;this.overlayLayer_.setMap(f);if(f&&f.getView())f.getView().on("change:resolution",this.clear,this)};ol.interaction.SelectCluster.prototype.clear=function(){this.getFeatures().clear();this.overlayLayer_.getSource().clear()};
1006ol.interaction.SelectCluster.prototype.getLayer=function(){return this.overlayLayer_};
1007ol.interaction.SelectCluster.prototype.selectCluster=function(f){if(f.selected.length){var n=f.selected[0];if(!n.get("selectclusterfeature")){f=this.overlayLayer_.getSource();f.clear();var A=n.get("features");if(A&&1!=A.length){this.selectCluster_||this.getFeatures().clear();n=n.getGeometry().getCoordinates();var q=this.map_.getView().getResolution(),z=q*this.pointRadius*(.5+A.length/4);if(!this.spiral||A.length<=this.circleMaxObjects){var t=Math.min(A.length,this.circleMaxObjects);for(i=0;i<t;i++){var G=
10082*Math.PI*i/t;if(2==t||4==t)G+=Math.PI/4;var D=[n[0]+z*Math.sin(G),n[1]+z*Math.cos(G)],E=new ol.Feature({selectclusterfeature:!0,features:[A[i]],geometry:new ol.geom.Point(D)});E.setStyle(A[i].getStyle());f.addFeature(E);D=new ol.Feature({selectclusterlink:!0,geometry:new ol.geom.LineString([n,D])});f.addFeature(D)}}else{G=0;var w=2*this.pointRadius;t=Math.min(this.maxObjects,A.length);for(i=0;i<t;i++)z=w/2+w*G/(2*Math.PI),G+=(w+.1)/z,D=[n[0]+q*z*Math.sin(G),n[1]+q*z*Math.cos(G)],E=new ol.Feature({selectclusterfeature:!0,
1009features:[A[i]],geometry:new ol.geom.Point(D)}),E.setStyle(A[i].getStyle()),f.addFeature(E),D=new ol.Feature({selectclusterlink:!0,geometry:new ol.geom.LineString([n,D])}),f.addFeature(D)}this.animate&&this.animateCluster_(n)}}}else this.clear()};
1010ol.interaction.SelectCluster.prototype.animateCluster_=function(f){this.listenerKey_&&(this.overlayLayer_.setVisible(!0),ol.Observable.unByKey(this.listenerKey_));var n=this.overlayLayer_.getSource().getFeatures();if(n.length){this.overlayLayer_.setVisible(!1);var A=this.overlayLayer_.getStyle(),q="function"==typeof A?A:A.length?function(){return A}:function(){return[A]},z=this.animationDuration||500,t=(new Date).getTime();this.listenerKey_=this.map_.on("postcompose",function(G){for(var D=G.vectorContext,
1011E=G.frameState.pixelRatio,w=G.target.getView().getResolution(),v=ol.easing.easeOut((G.frameState.time-t)/z),C=0,K;K=n[C];C++)if(K.get("features")){var N=K.getGeometry().getCoordinates();N[0]=f[0]+v*(N[0]-f[0]);N[1]=f[1]+v*(N[1]-f[1]);N=new ol.geom.Point(N);K=q(K,w);for(var J=0;J<K.length;J++){var V=K[J].getImage();if(V){var I=V.getScale();V.setScale(E)}D.setStyle?(D.setStyle(K[J]),D.drawGeometry(N)):(D.setImageStyle(V),D.drawPointGeometry(N));V&&V.setScale(I)}}1<v?(ol.Observable.unByKey(this.listenerKey_),
1012this.overlayLayer_.setVisible(!0),this.overlayLayer_.changed()):G.frameState.animate=!0},this)}};
1013!function(f){if("object"==typeof exports)module.exports=f();else if("function"==typeof define&&define.amd)define(f);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self);n.proj4=f()}}(function(){return function z(n,A,q){function t(E,w){if(!A[E]){if(!n[E]){var v="function"==typeof require&&require;if(!w&&v)return v(E,!0);if(G)return G(E,!0);throw Error("Cannot find module '"+E+"'");}w=A[E]={exports:{}};n[E][0].call(w.exports,function(C){var K=
1014n[E][1][C];return t(K?K:C)},w,w.exports,z,n,A,q)}return A[E].exports}for(var G="function"==typeof require&&require,D=0;D<q.length;D++)t(q[D]);return t}({1:[function(n,A){function q(t,G,D){if(!(this instanceof q))return new q(t,G,D);Array.isArray(t)?(this.x=t[0],this.y=t[1],this.z=t[2]||0):"object"==typeof t?(this.x=t.x,this.y=t.y,this.z=t.z||0):"string"==typeof t&&"undefined"==typeof G?(t=t.
1014split(","),this.x=parseFloat(t[0],10),this.y=parseFloat(t[1],10),this.z=parseFloat(t[2],10)||0):(this.x=t,this.y=
1015G,this.z=D||0);console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}var z=n("mgrs");q.fromMGRS=function(t){return new q(z.toPoint(t))};q.prototype.toMGRS=function(t){return z.forward([this.x,this.y],t)};A.exports=q},{mgrs:66}],2:[function(n,A){function q(E,w){if(!(this instanceof q))return new q(E);w=w||function(K){if(K)throw K;};var v=z(E);if("object"!=typeof v)return void w(E);v=D(v);var C=q.projections.get(v.projName);C?(t(this,v),t(this,C),this.init(),w(null,this)):w(E)}
1016var z=n("./parseCode"),t=n("./extend"),G=n("./projections"),D=n("./deriveConstants");q.projections=G;q.projections.start();A.exports=q},{"./deriveConstants":32,"./extend":33,"./parseCode":36,"./projections":38}],3:[function(n,A){A.exports=function(q,z,t){var G,D,E,w=t.x,v=t.y,C=t.z||0;for(E=0;3>E;E++)if(!z||2!==E||void 0!==t.z)switch(0===E?(G=w,D="x"):1===E?(G=v,D="y"):(G=C,D="z"),q.axis[E]){case "e":t[D]=G;break;case "w":t[D]=-G;break;case "n":t[D]=G;break;case "s":t[D]=-G;break;case "u":void 0!==
1017t[D]&&(t.z=G);break;case "d":void 0!==t[D]&&(t.z=-G);break;default:return null}return t}},{}],4:[function(n,A){var q=Math.PI/2,z=n("./sign");A.exports=function(t){return Math.abs(t)<q?t:t-z(t)*Math.PI}},{"./sign":21}],5:[function(n,A){var q=2*Math.PI,z=n("./sign");A.exports=function(t){return Math.abs(t)<Math.PI?t:t-z(t)*q}},{"./sign":21}],6:[function(n,A){A.exports=function(q){return 1<Math.abs(q)&&(q=1<q?1:-1),Math.asin(q)}},{}],7:[function(n,A){A.exports=function(q){return 1-.25*q*(1+q/16*(3+1.25*
1018q))}},{}],8:[function(n,A){A.exports=function(q){return.375*q*(1+.25*q*(1+.46875*q))}},{}],9:[function(n,A){A.exports=function(q){return.05859375*q*q*(1+.75*q)}},{}],10:[function(n,A){A.exports=function(q){return 35/3072*q*q*q}},{}],11:[function(n,A){A.exports=function(q,z,t){z*=t;return q/Math.sqrt(1-z*z)}},{}],12:[function(n,A){A.exports=function(q,z,t,G,D){var E;var w=q/z;for(var v=0;15>v;v++)if(E=(q-(z*w-t*Math.sin(2*w)+G*Math.sin(4*w)-D*Math.sin(6*w)))/(z-2*t*Math.cos(2*w)+4*G*Math.cos(4*w)-
10196*D*Math.cos(6*w)),w+=E,1E-10>=Math.abs(E))return w;return 0/0}},{}],13:[function(n,A){var q=Math.PI/2;A.exports=function(z,t){if(1E-6>Math.abs(Math.abs(t)-(1-(1-z*z)/(2*z)*Math.log((1-z)/(1+z)))))return 0>t?-1*q:q;for(var G,D,E,w,v=Math.asin(.5*t),C=0;30>C;C++)if(D=Math.sin(v),E=Math.cos(v),w=z*D,G=Math.pow(1-w*w,2)/(2*E)*(t/(1-z*z)-D/(1-w*w)+.5/z*Math.log((1-w)/(1+w))),v+=G,1E-10>=Math.abs(G))return v;return 0/0}},{}],14:[function(n,A){A.exports=function(q,z,t,G,D){return q*D-z*Math.sin(2*D)+t*
1020Math.sin(4*D)-G*Math.sin(6*D)}},{}],15:[function(n,A){A.exports=function(q,z,t){q*=z;return t/Math.sqrt(1-q*q)}},{}],16:[function(n,A){var q=Math.PI/2;A.exports=function(z,t){for(var G,D,E=.5*z,w=q-2*Math.atan(t),v=0;15>=v;v++)if(G=z*Math.sin(w),D=q-2*Math.atan(t*Math.pow((1-G)/(1+G),E))-w,w+=D,1E-10>=Math.abs(D))return w;return-9999}},{}],17:[function(n,A){A.exports=function(q){var z=[];z[0]=1-q*(.25+q*(.046875+q*(.01953125+.01068115234375*q)));z[1]=q*(.75-q*(.046875+q*(.01953125+.01068115234375*
1021q)));var t=q*q;return z[2]=t*(.46875-q*(.013020833333333334+.007120768229166667*q)),t*=q,z[3]=t*(.3645833333333333-.005696614583333333*q),z[4]=t*q*.3076171875,z}},{}],18:[function(n,A){var q=n("./pj_mlfn");A.exports=function(z,t,G){for(var D=1/(1-t),E=z,w=20;w;--w){var v=Math.sin(E),C=1-t*v*v;if(C=(q(E,v,Math.cos(E),G)-z)*C*Math.sqrt(C)*D,E-=C,1E-10>Math.abs(C))break}return E}},{"./pj_mlfn":19}],19:[function(n,A){A.exports=function(q,z,t,G){return t*=z,z*=z,G[0]*q-t*(G[1]+z*(G[2]+z*(G[3]+z*G[4])))}},
1022{}],20:[function(n,A){A.exports=function(q,z){var t;return 1E-7<q?(t=q*z,(1-q*q)*(z/(1-t*t)-.5/q*Math.log((1-t)/(1+t)))):2*z}},{}],21:[function(n,A){A.exports=function(q){return 0>q?-1:1}},{}],22:[function(n,A){A.exports=function(q,z){return Math.pow((1-q)/(1+q),z)}},{}],23:[function(n,A){A.exports=function(q){var z={x:q[0],y:q[1]};return 2<q.length&&(z.z=q[2]),3<q.length&&(z.m=q[3]),z}},{}],24:[function(n,A){var q=Math.PI/2;A.exports=function(z,t,G){G*=z;return G=Math.pow((1-G)/(1+G),.5*z),Math.tan(.5*
1023(q-t))/G}},{}],25:[function(n,A,q){q.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"};q.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"};q.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"};q.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"};q.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"};
1023q.potsdam={towgs84:"606.0,23.0,413.0",
1024ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"};q.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"};q.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"};q.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"};q.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"};q.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",
1025ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"};q.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"};q.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"};q.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"};q.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"};q.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",
1026datumName:"Reseau National Belge 1972"}},{}],26:[function(n,A,q){q.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};q.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};q.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};q.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};q.airy={a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"};q.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};q.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};
1027q.mod_airy={a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"};q.andrae={a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};q.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl \x26 S. Amer. 1969"};q.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};q.bessel={a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"};q.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};q.clrk66={a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"};q.clrk80=
1028{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."};q.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"};q.CPM={a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};q.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};q.engelis={a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"};q.evrst30={a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"};q.evrst48={a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"};q.evrst56={a:6377301.243,rf:300.8017,
1029ellipseName:"Everest 1956"};q.evrst69={a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"};q.evrstSS={a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah \x26 Sarawak)"};q.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};q.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};q.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};q.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};q.hough={a:6378270,rf:297,ellipseName:"Hough"};q.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};
1030q.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};q.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};q.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};q.new_intl={a:6378157.5,b:6356772.2,ellipseName:"New International 1967"};q.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};q.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};q.SEasia={a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"};q.walbeck={a:6376896,b:6355834.8467,ellipseName:"Walbeck"};q.WGS60=
1031{a:6378165,rf:298.3,ellipseName:"WGS 60"};q.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};q.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};q.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};q.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r\x3d6370997)"}},{}],27:[function(n,A,q){q.greenwich=0;q.lisbon=-9.131906111111;q.paris=2.337229166667;q.bogota=-74.080916666667;q.madrid=-3.687938888889;q.rome=12.452333333333;q.bern=7.439583333333;q.jakarta=106.807719444444;q.ferro=-17.666666666667;
1032q.brussels=4.367975;q.stockholm=18.058277777778;q.athens=23.7163375;q.oslo=10.722916666667},{}],28:[function(n,A){function q(E,w,v){var C;return Array.isArray(v)?(C=G(E,w,v),3===v.length?[C.x,C.y,C.z]:[C.x,C.y]):G(E,w,v)}function z(E){return E instanceof t?E:E.oProj?E.oProj:t(E)}var t=n("./Proj"),G=n("./transform"),D=t("WGS84");A.exports=function(E,w,v){E=z(E);var C,K=!1;return"undefined"==typeof w?(w=E,E=D,K=!0):("undefined"!=typeof w.x||Array.isArray(w))&&(v=w,w=E,E=D,K=!0),w=z(w),v?q(E,w,v):(C=
1033{forward:function(N){return q(E,w,N)},inverse:function(N){return q(w,E,N)}},K&&(C.oProj=w),C)}},{"./Proj":2,"./transform":64}],29:[function(n,A){var q=Math.PI/2,z=function(t){if(!(this instanceof z))return new z(t);if(this.datum_type=4,t){if(t.datumCode&&"none"===t.datumCode&&(this.datum_type=5),t.datum_params){for(var G=0;G<t.datum_params.length;G++)t.datum_params[G]=parseFloat(t.datum_params[G]);0===t.datum_params[0]&&0===t.datum_params[1]&&0===t.datum_params[2]||(this.datum_type=1);3<t.datum_params.length&&
1034(0!==t.datum_params[3]||0!==t.datum_params[4]||0!==t.datum_params[5]||0!==t.datum_params[6])&&(this.datum_type=2,t.datum_params[3]*=4.84813681109536E-6,t.datum_params[4]*=4.84813681109536E-6,t.datum_params[5]*=4.84813681109536E-6,t.datum_params[6]=t.datum_params[6]/1E6+1)}this.datum_type=t.grids?3:this.datum_type;this.a=t.a;this.b=t.b;this.es=t.es;this.ep2=t.ep2;this.datum_params=t.datum_params;3===this.datum_type&&(this.grids=t.grids)}};z.prototype={compare_datums:function(t){return this.datum_type!==
1035t.datum_type?!1:this.a!==t.a||5E-11<Math.abs(this.es-t.es)?!1:1===this.datum_type?this.datum_params[0]===t.datum_params[0]&&this.datum_params[1]===t.datum_params[1]&&this.datum_params[2]===t.datum_params[2]:2===this.datum_type?this.datum_params[0]===t.datum_params[0]&&this.datum_params[1]===t.datum_params[1]&&this.datum_params[2]===t.datum_params[2]&&this.datum_params[3]===t.datum_params[3]&&this.datum_params[4]===t.datum_params[4]&&this.datum_params[5]===t.datum_params[5]&&this.datum_params[6]===
1036t.datum_params[6]:3===this.datum_type||3===t.datum_type?this.nadgrids===t.na
1036dgrids:!0},geodetic_to_geocentric:function(t){var G,D,E,w,v,C,K,N=t.x,J=t.y,V=t.z?t.z:0;if(-q>J&&J>-1.001*q)J=-q;else if(J>q&&1.001*q>J)J=q;else if(-q>J||J>q)return null;return N>Math.PI&&(N-=2*Math.PI),v=Math.sin(J),K=Math.cos(J),C=v*v,w=this.a/Math.sqrt(1-this.es*C),G=(w+V)*K*Math.cos(N),D=(w+V)*K*Math.sin(N),E=(w*(1-this.es)+V)*v,t.x=G,t.y=D,t.z=E,0},geocentric_to_geodetic:function(t){var G,D,E;var w=t.x;var v=t.y;var C=
1037t.z?t.z:0;if(G=Math.sqrt(w*w+v*v),D=Math.sqrt(w*w+v*v+C*C),1E-12>G/this.a){if(v=0,1E-12>D/this.a)return}else v=Math.atan2(v,w);w=C/D;D=G/D;var K=1/Math.sqrt(1-this.es*(2-this.es)*D*D);var N=D*(1-this.es)*K;var J=w*K;var V=0;do{V++;var I=this.a/Math.sqrt(1-this.es*J*J);var ia=G*N+C*J-I*(1-this.es*J*J);I=this.es*I/(I+ia);K=1/Math.sqrt(1-I*(2-I)*D*D);I=D*(1-I)*K;K*=w;var ra=K*N-I*J;N=I;J=K}while(1E-24<ra*ra&&30>V);return E=Math.atan(K/Math.abs(I)),t.x=v,t.y=E,t.z=ia,t},geocentric_to_geodetic_noniter:function(t){var G,
1038D,E,w,v,C,K,N,J,V,I,ia,ra,qa,Za,Na=t.x,Mb=t.y,fb=t.z?t.z:0;if(Na=parseFloat(Na),Mb=parseFloat(Mb),fb=parseFloat(fb),Za=!1,0!==Na)var Nb=Math.atan2(Mb,Na);else if(0<Mb)Nb=q;else if(0>Mb)Nb=-q;else if(Za=!0,Nb=0,0<fb)var Oa=q;else{if(!(0>fb))return;Oa=-q}return E=Na*Na+Mb*Mb,D=Math.sqrt(E),w=1.0026*fb,C=Math.sqrt(w*w+E),N=w/C,V=D/C,J=N*N*N,v=fb+this.b*this.ep2*J,qa=D-this.a*this.es*V*V*V,K=Math.sqrt(v*v+qa*qa),I=v/K,ia=qa/K,ra=this.a/Math.sqrt(1-this.es*I*I),G=.3826834323650898<=ia?D/ia-ra:-.3826834323650898>=
1039ia?D/-ia-ra:fb/I+ra*(this.es-1),!1===Za&&(Oa=Math.atan(I/ia)),t.x=Nb,t.y=Oa,t.z=G,t},geocentric_to_wgs84:function(t){if(1===this.datum_type)t.x+=this.datum_params[0],t.y+=this.datum_params[1],t.z+=this.datum_params[2];else if(2===this.datum_type){var G=this.datum_params[3],D=this.datum_params[4],E=this.datum_params[5],w=this.datum_params[6],v=w*(E*t.x+t.y-G*t.z)+this.datum_params[1];G=w*(-D*t.x+G*t.y+t.z)+this.datum_params[2];t.x=w*(t.x-E*t.y+D*t.z)+this.datum_params[0];t.y=v;t.z=G}},geocentric_from_wgs84:function(t){if(1===
1040this.datum_type)t.x-=this.datum_params[0],t.y-=this.datum_params[1],t.z-=this.datum_params[2];else if(2===this.datum_type){var G=this.datum_params[3],D=this.datum_params[4],E=this.datum_params[5],w=this.datum_params[6],v=(t.x-this.datum_params[0])/w,C=(t.y-this.datum_params[1])/w;w=(t.z-this.datum_params[2])/w;t.x=v+E*C-D*w;t.y=-E*v+C+G*w;t.z=D*v-G*C+w}}};A.exports=z},{}],30:[function(n,A){A.exports=function(q,z,t){function G(J){return 1===J||2===J}var D;if(q.compare_datums(z)||5===q.datum_type||
10415===z.datum_type)return t;var E=q.a,w=q.es,v=z.a,C=z.es;var K=q.datum_type;if(3===K)if(0===this.apply_gridshift(q,0,t))q.a=6378137,q.es=.006694379990141316;else{if(!q.datum_params)return q.a=E,q.es=q.es,t;K=1;var N=0;for(D=q.datum_params.length;D>N;N++)K*=q.datum_params[N];if(0===K)return q.a=E,q.es=q.es,t;K=3<q.datum_params.length?2:1}return 3===z.datum_type&&(z.a=6378137,z.es=.006694379990141316),(q.es!==z.es||q.a!==z.a||G(K)||G(z.datum_type))&&(q.geodetic_to_geocentric(t),G(q.datum_type)&&q.geocentric_to_wgs84(t),
1042G(z.datum_type)&&z.geocentric_from_wgs84(t),z.geocentric_to_geodetic(t)),3===z.datum_type&&this.apply_gridshift(z,1,t),q.a=E,q.es=w,z.a=v,z.es=C,t}},{}],31:[function(n,A){function q(D){var E=this;if(2===arguments.length){var w=arguments[1];q[D]="string"==typeof w?"+"===w[0]?t(arguments[1]):G(arguments[1]):w}else if(1===arguments.length){if(Array.isArray(D))return D.map(function(v){Array.isArray(v)?q.apply(E,v):q(v)});if("string"==typeof D){if(D in q)return q[D]}else"EPSG"in D?q["EPSG:"+D.EPSG]=D:
1043"ESRI"in D?q["ESRI:"+D.ESRI]=D:"IAU2000"in D?q["IAU2000:"+D.IAU2000]=D:console.log(D)}}var z=n("./global"),t=n("./projString"),G=n("./wkt");z(q);A.exports=q},{"./global":34,"./projString":37,"./wkt":65}],32:[function(n,A){var q=n("./constants/Datum"),z=n("./constants/Ellipsoid"),t=n("./extend"),G=n("./datum");A.exports=function(D){if(D.datumCode&&"none"!==D.datumCode){var E=q[D.datumCode];E&&(D.datum_params=E.towgs84?E.towgs84.split(","):null,D.ellps=E.ellipse,D.datumName=E.datumName?E.datumName:
1044D.datumCode)}D.a||t(D,z[D.ellps]?z[D.ellps]:z.WGS84);return D.rf&&!D.b&&(D.b=(1-1/D.rf)*D.a),(0===D.rf||1E-10>Math.abs(D.a-D.b))&&(D.sphere=!0,D.b=D.a),D.a2=D.a*D.a,D.b2=D.b*D.b,D.es=(D.a2-D.b2)/D.a2,D.e=Math.sqrt(D.es),D.R_A&&(D.a*=1-D.es*(.16666666666666666+D.es*(.
104404722222222222222+.022156084656084655*D.es)),D.a2=D.a*D.a,D.b2=D.b*D.b,D.es=0),D.ep2=(D.a2-D.b2)/D.b2,D.k0||(D.k0=1),D.axis||(D.axis="enu"),D.datum=G(D),D}},{"./constants/Datum":25,"./constants/Ellipsoid":26,"./datum":29,"./extend":33}],
104533:[function(n,A){A.exports=function(q,z){q=q||{};var t;if(!z)return q;for(t in z){var G=z[t];void 0!==G&&(q[t]=G)}return q}},{}],34:[function(n,A){A.exports=function(q){q("EPSG:4326","+title\x3dWGS 84 (long/lat) +proj\x3dlonglat +ellps\x3dWGS84 +datum\x3dWGS84 +units\x3ddegrees");q("EPSG:4269","+title\x3dNAD83 (long/lat) +proj\x3dlonglat +a\x3d6378137.0 +b\x3d6356752.31414036 +ellps\x3dGRS80 +datum\x3dNAD83 +units\x3ddegrees");q("EPSG:3857","+title\x3dWGS 84 / Pseudo-Mercator +proj\x3dmerc +a\x3d6378137 +b\x3d6378137 +lat_ts\x3d0.0 +lon_0\x3d0.0 +x_0\x3d0.0 +y_0\x3d0 +k\x3d1.0 +units\x3dm +nadgrids\x3d@null +no_defs");
1046q.WGS84=q["EPSG:4326"];q["EPSG:3785"]=q["EPSG:3857"];q.GOOGLE=q["EPSG:3857"];q["EPSG:900913"]=q["EPSG:3857"];q["EPSG:102113"]=q["EPSG:3857"]}},{}],35:[function(n,A){var q=n("./core");q.defaultDatum="WGS84";q.Proj=n("./Proj");q.WGS84=new q.Proj("WGS84");q.Point=n("./Point");q.toPoint=n("./common/toPoint");q.defs=n("./defs");q.transform=n("./transform");q.mgrs=n("mgrs");q.version=n("../package.json").version;n("./includedProjections")(q);A.exports=q},{"../package.json":67,"./Point":1,"./Proj":2,"./common/toPoint":23,
1047"./core":28,"./defs":31,"./includedProjections":"gWUPNW","./transform":64,mgrs:66}],36:[function(n,A){function q(D){return["GEOGCS","GEOCCS","PROJCS","LOCAL_CS"].reduce(function(E,w){return E+1+D.indexOf(w)},0)}var z=n("./defs"),t=n("./wkt"),G=n("./projString");A.exports=function(D){return"string"==typeof D?D in z?z[D]:q(D)?t(D):"+"===D[0]?G(D):void 0:D}},{"./defs":31,"./projString":37,"./wkt":65}],37:[function(n,A){var q=n("./constants/PrimeMeridian");A.exports=function(z){var t={},G={};z.split("+").map(function(v){return v.trim()}).filter(function(v){return v}).forEach(function(v){v=
1048v.split("\x3d");v.push(!0);G[v[0].toLowerCase()]=v[1]});var D,E,w={proj:"projName",datum:"datumCode",rf:function(v){t.rf=parseFloat(v,10)},lat_0:function(v){t.lat0=.017453292519943295*v},lat_1:function(v){t.lat1=.017453292519943295*v},lat_2:function(v){t.lat2=.017453292519943295*v},lat_ts:function(v){t.lat_ts=.017453292519943295*v},lon_0:function(v){t.long0=.017453292519943295*v},lon_1:function(v){t.long1=.017453292519943295*v},lon_2:function(v){t.long2=.017453292519943295*v},alpha:function(v){t.alpha=
1049.017453292519943295*parseFloat(v)},lonc:function(v){t.longc=.017453292519943295*v},x_0:function(v){t.x0=parseFloat(v,10)},y_0:function(v){t.y0=parseFloat(v,10)},k_0:function(v){t.k0=parseFloat(v,10)},k:function(v){t.k0=parseFloat(v,10)},r_a:function(){t.R_A=!0},zone:function(v){t.zone=parseInt(v,10)},south:function(){t.utmSouth=!0},towgs84:function(v){t.datum_params=v.split(",").map(function(C){return parseFloat(C,10)})},to_meter:function(v){t.to_meter=parseFloat(v,10)},from_greenwich:function(v){t.from_greenwich=
1050.017453292519943295*v},pm:function(v){t.from_greenwich=.017453292519943295*(q[v]?q[v]:parseFloat(v,10))},nadgrids:function(v){"@null"===v?t.datumCode="none":t.nadgrids=v},axis:function(v){3===v.length&&-1!=="ewnsud".indexOf(v.substr(0,1))&&-1!=="ewnsud".indexOf(v.substr(1,1))&&-1!=="ewnsud".indexOf(v.substr(2,1))&&(t.axis=v)}};for(D in G)z=G[D],D in w?(E=w[D],"function"==typeof E?E(z):t[E]=z):t[D]=z;return"string"==typeof t.datumCode&&"WGS84"!==t.datumCode&&(t.datumCode=t.datumCode.toLowerCase()),
1051t}},{"./constants/PrimeMeridian":27}],38:[function(n,A,q){function z(E,w){var v=D.length;return E.names?(D[v]=E,E.names.forEach(function(C){G[C.toLowerCase()]=v}),this):(console.log(w),!0)}var t=[n("./projections/merc"),n("./projections/longlat")],G={},D=[];q.add=z;q.get=function(E){if(!E)return!1;E=E.toLowerCase();return"undefined"!=typeof G[E]&&D[G[E]]?D[G[E]]:void 0};q.start=function(){t.forEach(z)}},{"./projections/longlat":50,"./projections/merc":51}],39:[function(n,A,q){var z=n("../common/msfnz"),
1052t=n("../common/qsfnz"),G=n("../common/adjust_lon"),D=n("../common/asinz");q.init=function(){1E-10>Math.abs(this.lat1+this.lat2)||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=z(this.e3,this.sin_po,this.cos_po),this.qs1=t(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=z(this.e3,
1053this.sin_po,this.cos_po),this.qs2=t(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=t(this.e3,this.sin_po,this.cos_po),this.ns0=1E-10<Math.abs(this.lat1-this.lat2)?(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)};q.forward=function(E){var w=E.x,v=E.y;this.sin_phi=Math.sin(v);this.cos_phi=Math.cos(v);
1054v=t(this.e3,this.sin_phi,this.cos_phi);v=this.a*Math.sqrt(this.c-this.ns0*v)/this.ns0;
1054w=this.ns0*G(w-this.long0);var C=this.rh-v*Math.cos(w)+this.y0;return E.x=v*Math.sin(w)+this.x0,E.y=C,E};q.inverse=function(E){var w,v,C,K,N,J;return E.x-=this.x0,E.y=this.rh-E.y+this.y0,0<=this.ns0?(w=Math.sqrt(E.x*E.x+E.y*E.y),C=1):(w=-Math.sqrt(E.x*E.x+E.y*E.y),C=-1),K=0,0!==w&&(K=Math.atan2(C*E.x,C*E.y)),C=w*this.ns0/this.a,this.sphere?J=Math.asin((this.c-C*C)/(2*this.ns0)):(v=(this.c-C*C)/this.ns0,J=this.phi1z(this.e3,
1055v)),N=G(K/this.ns0+this.long0),E.x=N,E.y=J,E};q.phi1z=function(E,w){var v,C,K,N,J,V=D(.5*w);if(1E-10>E)return V;for(var I=E*E,ia=1;25>=ia;ia++)if(v=Math.sin(V),C=Math.cos(V),K=E*v,N=1-K*K,J=.5*N*N/C*(w/(1-I)-v/N+.5/E*Math.log((1-K)/(1+K))),V+=J,1E-7>=Math.abs(J))return V;return null};q.names=["Albers_Conic_Equal_Area","Albers","aea"]},{"../common/adjust_lon":5,"../common/asinz":6,"../common/msfnz":15,"../common/qsfnz":20}],40:[function(n,A,q){var z=n("../common/adjust_lon"),t=Math.PI/2,G=n("../common/mlfn"),
1056D=n("../common/e0fn"),E=n("../common/e1fn"),w=n("../common/e2fn"),v=n("../common/e3fn"),C=n("../common/gN"),K=n("../common/asinz"),N=n("../common/imlfn");q.init=function(){this.sin_p12=Math.sin(this.lat0);this.cos_p12=Math.cos(this.lat0)};q.forward=function(J){var V,I,ia,ra,qa,Za,Na,Mb,fb,Nb,Oa,ke,Jc,pf,Ud,ce,Nc,Ee,td,Pe,Tb,de,Qe,Bd=J.y,rd=Math.sin(J.y),bf=Math.cos(J.y),ha=z(J.x-this.long0);return this.sphere?1E-10>=Math.abs(this.sin_p12-1)?(J.x=this.x0+this.a*(t-Bd)*Math.sin(ha),J.y=this.y0-this.a*
1057(t-Bd)*Math.cos(ha),J):1E-10>=Math.abs(this.sin_p12+1)?(J.x=this.x0+this.a*(t+Bd)*Math.sin(ha),J.y=this.y0+this.a*(t+Bd)*Math.cos(ha),J):(Ee=this.sin_p12*rd+this.cos_p12*bf*Math.cos(ha),ce=Math.acos(Ee),Nc=ce/Math.sin(ce),J.x=this.x0+this.a*Nc*bf*Math.sin(ha),J.y=this.y0+this.a*Nc*(this.cos_p12*rd-this.sin_p12*bf*Math.cos(ha)),J):(V=D(this.es),I=E(this.es),ia=w(this.es),ra=v(this.es),1E-10>=Math.abs(this.sin_p12-1)?(qa=this.a*G(V,I,ia,ra,t),Za=this.a*G(V,I,ia,ra,Bd),J.x=this.x0+(qa-Za)*Math.sin(ha),
1058J.y=this.y0-(qa-Za)*Math.cos(ha),J):1E-10>=Math.abs(this.sin_p12+1)?(qa=this.a*G(V,I,ia,ra,t),Za=this.a*G(V,I,ia,ra,Bd),J.x=this.x0+(qa+Za)*Math.sin(ha),J.y=this.y0+(qa+Za)*Math.cos(ha),J):(Na=rd/bf,Mb=C(this.a,this.e,this.sin_p12),fb=C(this.a,this.e,rd),Nb=Math.atan((1-this.es)*Na+this.es*Mb*this.sin_p12/(fb*bf)),Oa=Math.atan2(Math.sin(ha),this.cos_p12*Math.tan(Nb)-this.sin_p12*Math.cos(ha)),td=0===Oa?Math.asin(this.cos_p12*Math.sin(Nb)-this.sin_p12*Math.cos(Nb)):1E-10>=Math.abs(Math.abs(Oa)-Math.PI)?
1059-Math.asin(this.cos_p12*Math.sin(Nb)-this.sin_p12*Math.cos(Nb)):Math.asin(Math.sin(ha)*Math.cos(Nb)/Math.sin(Oa)),ke=this.e*this.sin_p12/Math.sqrt(1-this.es),Jc=this.e*this.cos_p12*Math.cos(Oa)/Math.sqrt(1-this.es),pf=ke*Jc,Ud=Jc*Jc,Pe=td*td,Tb=Pe*td,de=Tb*td,Qe=de*td,ce=Mb*td*(1-Pe*Ud*(1-Ud)/6+Tb/8*pf*(1-2*Ud)+de/120*(Ud*(4-7*Ud)-3*ke*ke*(1-7*Ud))-Qe/48*pf),J.x=this.x0+ce*Math.sin(Oa),J.y=this.y0+ce*Math.cos(Oa),J))};q.inverse=function(J){J.x-=this.x0;J.y-=this.y0;var V,I,ia,ra,qa,Za,Na,Mb,fb,Nb,
1060Oa,ke,Jc,pf,Ud,ce,Nc,Ee,td,Pe,Tb,de,Qe;return this.sphere?(V=Math.sqrt(J.x*J.x+J.y*J.y),V>2*t*this.a)?void 0:(I=V/this.a,ia=Math.sin(I),ra=Math.cos(I),qa=this.long0,1E-10>=Math.abs(V)?Za=this.lat0:(Za=K(ra*this.sin_p12+J.y*ia*this.cos_p12/V),Na=Math.abs(this.lat0)-t,qa=z(1E-10>=Math.abs(Na)?0<=this.lat0?this.long0+Math.atan2(J.x,-J.y):this.long0-Math.atan2(-J.x,J.y):this.long0+Math.atan2(J.x*ia,V*this.cos_p12*ra-J.y*this.sin_p12*ia))),J.x=qa,J.y=Za,J):(Mb=D(this.es),fb=E(this.es),Nb=w(this.es),Oa=
1061v(this.es),1E-10>=Math.abs(this.sin_p12-1)?(ke=this.a*G(Mb,fb,Nb,Oa,t),V=Math.sqrt(J.x*J.x+J.y*J.y),Jc=ke-V,Za=N(Jc/this.a,Mb,fb,Nb,Oa),qa=z(this.long0+Math.atan2(J.x,-1*J.y)),J.x=qa,J.y=Za,J):1E-10>=Math.abs(this.sin_p12+1)?(ke=this.a*G(Mb,fb,Nb,Oa,t),V=Math.sqrt(J.x*J.x+J.y*J.y),Jc=V-ke,Za=N(Jc/this.a,Mb,fb,Nb,Oa),qa=z(this.long0+Math.atan2(J.x,J.y)),J.x=qa,J.y=Za,J):(V=Math.sqrt(J.x*J.x+J.y*J.y),ce=Math.atan2(J.x,J.y),pf=C(this.a,this.e,this.sin_p12),Nc=Math.cos(ce),Ee=this.e*this.cos_p12*Nc,td=
1062-Ee*Ee/(1-this.es),Pe=3*this.es*(1-td)*this.sin_p12*this.cos_p12*Nc/(1-this.es),Tb=V/pf,de=Tb-td*(1+td)*Math.pow(Tb,3)/6-Pe*(1+3*td)*Math.pow(Tb,4)/24,Qe=1-td*de*de/2-Tb*de*de*de/6,Ud=Math.asin(this.sin_p12*Math.cos(de)+this.cos_p12*Math.sin(de)*Nc),qa=z(this.long0+Math.asin(Math.sin(ce)*Math.sin(de)/Math.cos(Ud)
1062)),Za=Math.atan((1-this.es*Qe*this.sin_p12/Math.sin(Ud))*Math.tan(Ud)/(1-this.es)),J.x=qa,J.y=Za,J))};q.names=["Azimuthal_Equidistant","aeqd"]},{"../common/adjust_lon":5,"../common/asinz":6,
1063"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/gN":11,"../common/imlfn":12,"../common/mlfn":14}],41:[function(n,A,q){var z=n("../common/mlfn"),t=n("../common/e0fn"),G=n("../common/e1fn"),D=n("../common/e2fn"),E=n("../common/e3fn"),w=n("../common/gN"),v=n("../common/adjust_lon"),C=n("../common/adjust_lat"),K=n("../common/imlfn"),N=Math.PI/2;q.init=function(){this.sphere||(this.e0=t(this.es),this.e1=G(this.es),this.e2=D(this.es),this.e3=E(this.es),this.ml0=this.a*
1064z(this.e0,this.e1,this.e2,this.e3,this.lat0))};q.forward=function(J){var V=J.x,I=J.y;if(V=v(V-this.long0),this.sphere){var ia=this.a*Math.asin(Math.cos(I)*Math.sin(V));var ra=this.a*(Math.atan2(Math.tan(I),Math.cos(V))-this.lat0)}else{ra=Math.sin(I);var qa=Math.cos(I),Za=w(this.a,this.e,ra),Na=Math.tan(I)*Math.tan(I);ia=V*Math.cos(I);V=ia*ia;var Mb=this.es*qa*qa/(1-this.es);I=this.a*z(this.e0,this.e1,this.e2,this.e3,I);ia=Za*ia*(1-V*Na*(1/6-(8-Na+8*Mb)*V/120));ra=I-this.ml0+Za*ra/qa*V*(.5+(5-Na+6*
1065Mb)*V/24)}return J.x=ia+this.x0,J.y=ra+this.y0,J};q.inverse=function(J){J.x-=this.x0;J.y-=this.y0;var V=J.x/this.a;var I=J.y/this.a;if(this.sphere){var ia=I+this.lat0;I=Math.asin(Math.sin(ia)*Math.cos(V));ia=Math.atan2(Math.tan(V),Math.cos(ia))}else{ia=K(this.ml0/this.a+I,this.e0,this.e1,this.e2,this.e3);if(1E-10>=Math.abs(Math.abs(ia)-N))return J.x=this.long0,J.y=N,0>I&&(J.y*=-1),J;I=w(this.a,this.e,Math.sin(ia));var ra=Math.pow(Math.tan(ia),2);V=V*this.a/I;var qa=V*V;I=ia-I*Math.tan(ia)/(I*I*I/
1066this.a/this.a*(1-this.es))*V*V*(.5-(1+3*ra)*V*V/24);ia=V*(1-qa*(ra/3+(1+3*ra)*ra*qa/15))/Math.cos(ia)}return J.x=v(ia+this.long0),J.y=C(I),J};q.names=["Cassini","Cassini_Soldner","cass"]},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/gN":11,"../common/imlfn":12,"../common/mlfn":14}],42:[function(n,A,q){var z=n("../common/adjust_lon"),t=n("../common/qsfnz"),G=n("../common/msfnz"),D=n("../common/iqsfnz");q.init=
1067function(){this.sphere||(this.k0=G(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))};q.forward=function(E){var w=E.y;var v=z(E.x-this.long0);this.sphere?(v=this.x0+this.a*v*Math.cos(this.lat_ts),w=this.y0+this.a*Math.sin(w)/Math.cos(this.lat_ts)):(w=t(this.e,Math.sin(w)),v=this.x0+this.a*this.k0*v,w=this.y0+this.a*w*.5/this.k0);return E.x=v,E.y=w,E};q.inverse=function(E){E.x-=this.x0;E.y-=this.y0;var w,v;return this.sphere?(w=z(this.long0+E.x/this.a/Math.cos(this.lat_ts)),v=Math.asin(E.y/this.a*
1068Math.cos(this.lat_ts))):(v=D(this.e,2*E.y*this.k0/this.a),w=z(this.long0+E.x/(this.a*this.k0))),E.x=w,E.y=v,E};q.names=["cea"]},{"../common/adjust_lon":5,"../common/iqsfnz":13,"../common/msfnz":15,"../common/qsfnz":20}],43:[function(n,A,q){var z=n("../common/adjust_lon"),t=n("../common/adjust_lat");q.init=function(){this.x0=this.x0||0;this.y0=this.y0||0;this.lat0=this.lat0||0;this.long0=this.long0||0;this.lat_ts=this.lat_ts||0;this.title=this.title||"Equidistant Cylindrical (Plate Carre)";this.rc=
1069Math.cos(this.lat_ts)};q.forward=function(G){var D=G.y,E=z(G.x-this.long0);D=t(D-this.lat0);return G.x=this.x0+this.a*E*this.rc,G.y=this.y0+this.a*D,G};q.inverse=function(G){var D=G.y;return G.x=z(this.long0+(G.x-this.x0)/(this.a*this.rc)),G.y=t(this.lat0+(D-this.y0)/this.a),G};q.names=["Equirectangular","Equidistant_Cylindrical","eqc"]},{"../common/adjust_lat":4,"../common/adjust_lon":5}],44:[function(n,A,q){var z=n("../common/e0fn"),t=n("../common/e1fn"),G=n("../common/e2fn"),D=n("../common/e3fn"),
1070E=n("../common/msfnz"),w=n("../common/mlfn"),v=n("../common/adjust_lon"),C=n("../common/adjust_lat"),K=n("../common/imlfn");q.init=function(){1E-10>Math.abs(this.lat1+this.lat2)||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=z(this.es),this.e1=t(this.es),this.e2=G(this.es),this.e3=D(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=E(this.e,this.sinphi,this.cosphi),this.ml1=w(this.e0,this.e1,
1071this.e2,this.e3,this.lat1),1E-10>Math.abs(this.lat1-this.lat2)?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=E(this.e,this.sinphi,this.cosphi),this.ml2=w(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=w(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))};q.forward=function(N){var J=N.x;var V=N.y;this.sphere?V=this.a*(this.g-V):(V=w(this.e0,
1072this.e1,this.e2,this.e3,V),V=this.a*(this.g-V));J=this.ns*v(J-this.long0);var I=this.y0+this.rh-V*Math.cos(J);return N.x=this.x0+V*Math.sin(J),N.y=I,N};q.inverse=function(N){N.x-=this.x0;N.y=this.rh-N.y+this.y0;var J,V,I,ia;0<=this.ns?(V=Math.sqrt(N.x*N.x+N.y*N.y),J=1):(V=-Math.sqrt(N.x*N.x+N.y*N.y),J=-1);var ra=0;return(0!==V&&(ra=Math.atan2(J*N.x,J*N.y)),this.sphere)?(ia=v(this.long0+ra/this.ns),I=C(this.g-V/this.a),N.x=ia,N.y=I,N):(I=K(this.g-V/this.a,this.e0,this.e1,this.e2,this.e3),ia=v(this.long0+
1073ra/this.ns),N.x=ia,N.y=I,N)};q.names=["Equidistant_Conic","eqdc"]},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/imlfn":12,"../common/mlfn":14,"../common/msfnz":15}],45:[function(n,A,q){var z=Math.PI/4,t=n("../common/srat"),G=Math.PI/2;q.init=function(){var D=Math.sin(this.lat0),E=Math.cos(this.lat0);E*=E;this.rc=Math.sqrt(1-this.es)/(1-this.es*D*D);this.C=Math.sqrt(1+this.es*E*E/(1-this.es));this.phic0=Math.asin(D/
1074this.C);this.ratexp=.5*this.C*this.e;this.K=Math.tan(.5*this.phic0+z)/(Math.pow(Math.tan(.5*this.lat0+z),this.C)*t(this.e*D,this.ratexp))};q.forward=function(D){var E=D.x,w=D.y;return D.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*w+z),this.C)*t(this.e*Math.sin(w),this.ratexp))-G,D.x=this.C*E,D};q.inverse=function(D){for(var E=D.x/this.C,w=D.y,v=Math.pow(Math.tan(.5*w+z)/this.K,1/this.C),C=20;0<C&&(w=2*Math.atan(v*t(this.e*Math.sin(D.y),-.5*this.e))-G,!(1E-14>Math.abs(w-D.y)));--C)D.y=w;return C?(D.x=
1075E,D.y=w,D):null};q.names=["gauss"]},{"../common/srat":22}],46:[function(n,A,q){var z=n("../common/adjust_lon"),t=n("../common/asinz");q.init=function(){this.sin_p14=Math.sin(this.lat0);this.cos_p14=Math.cos(this.lat0);this.infinity_dist=1E3*this.a;this.rc=1};q.forward=function(G){var D,E,w,v,C,K,N,J=G.y;return w=z(G.x-this.long0),D=Math.sin(J),E=Math.cos(J),v=Math.cos(w),C=this.sin_p14*D+this.cos_p14*E*v,0<C||1E-10>=Math.abs(C)?(K=this.x0+1*this.a*E*Math.sin(w)/C,N=this.y0+1*this.a*(this.cos_p14*
1076D-this.sin_p14*E*v)/C):(K=this.x0+this.infinity_dist*E*Math.sin(w),N=this.y0+this.infinity_dist*(this.cos_p14*D-this.sin_p14*E*v)),G.x=K,G.y=N,G};
1076q.inverse=function(G){var D,E,w,v,C,K;return G.x=(G.x-this.x0)/this.a,G.y=(G.y-this.y0)/this.a,G.x/=this.k0,G.y/=this.k0,(D=Math.sqrt(G.x*G.x+G.y*G.y))?(v=Math.atan2(D,this.rc),E=Math.sin(v),w=Math.cos(v),K=t(w*this.sin_p14+G.y*E*this.cos_p14/D),C=Math.atan2(G.x*E,D*this.cos_p14*w-G.y*this.sin_p14*E),C=z(this.long0+C)):(K=this.phic0,C=0),G.x=C,G.y=K,G};
1077q.names=["gnom"]},{"../common/adjust_lon":5,"../common/asinz":6}],47:[function(n,A,q){var z=n("../common/adjust_lon");q.init=function(){this.a=6377397.155;this.es=.006674372230614;this.e=Math.sqrt(this.es);this.lat0||(this.lat0=.863937979737193);this.long0||(this.long0=.4334234309119251);this.k0||(this.k0=.9999);this.s45=.785398163397448;this.s90=2*this.s45;this.fi0=this.lat0;this.e2=this.es;this.e=Math.sqrt(this.e2);this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2));this.uq=
10781.04216856380474;this.u0=Math.asin(Math.sin(this.fi0)/this.alfa);this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2);this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g;this.k1=this.k0;this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2));this.s0=1.37008346281555;this.n=Math.sin(this.s0);this.ro0=this.k1*this.n0/Math.tan(this.s0);this.ad=this.s90-this.uq};q.forward=function(t){var G,D,E,w,
1079v,C,K,N=t.y,J=z(t.x-this.long0);return G=Math.pow((1+this.e*Math.sin(N))/(1-this.e*Math.sin(N)),this.alfa*this.e/2),D=2*(Math.atan(this.k*Math.pow(Math.tan(N/2+this.s45),this.alfa)/G)-this.s45),E=-J*this.alfa,w=Math.asin(Math.cos(this.ad)*Math.sin(D)+Math.sin(this.ad)*Math.cos(D)*Math.cos(E)),v=Math.asin(Math.cos(D)*Math.sin(E)/Math.cos(w)),C=this.n*v,K=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(w/2+this.s45),this.n),t.y=K*Math.cos(C),t.x=K*Math.sin(C),this.czech||(t.y*=
1080-1,t.x*=-1),t};q.inverse=function(t){var G=t.x;t.x=t.y;t.y=G;this.czech||(t.y*=-1,t.x*=-1);G=Math.sqrt(t.x*t.x+t.y*t.y);var D=Math.atan2(t.y,t.x)/Math.sin(this.s0);var E=2*(Math.atan(Math.pow(this.ro0/G,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45);G=Math.asin(Math.cos(this.ad)*Math.sin(E)-Math.sin(this.ad)*Math.cos(E)*Math.cos(D));t.x=this.long0-Math.asin(Math.cos(E)*Math.sin(D)/Math.cos(G))/this.alfa;D=G;var w=E=0;do t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(G/2+this.s45),
10811/this.alfa)*Math.pow((1+this.e*Math.sin(D))/(1-this.e*Math.sin(D)),this.e/2))-this.s45),1E-10>Math.abs(D-t.y)&&(E=1),D=t.y,w+=1;while(0===E&&15>w);return 15<=w?null:t};q.names=["Krovak","krovak"]},{"../common/adjust_lon":5}],48:[function(n,A,q){var z=Math.PI/2,t=Math.PI/4,G=n("../common/qsfnz"),D=n("../common/adjust_lon");q.S_POLE=1;q.N_POLE=2;q.EQUIT=3;q.OBLIQ=4;q.init=function(){var E=Math.abs(this.lat0);if(this.mode=1E-10>Math.abs(E-z)?0>this.lat0?this.S_POLE:this.N_POLE:1E-10>Math.abs(E)?this.EQUIT:
1082this.OBLIQ,0<this.es)switch(this.qp=G(this.e,1),this.mmf=.5/(1-this.es),this.apa=this.authset(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp);this.dd=1/this.rq;this.xmf=1;this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),E=Math.sin(this.lat0),this.sinb1=G(this.e,E)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*E*E)*this.rq*this.cosb1),this.ymf=
1083(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))};q.forward=function(E){var w,v,C,K,N,J,V,I,ia=E.x,ra=E.y;if(ia=D(ia-this.long0),this.sphere)if(K=Math.sin(ra),C=Math.cos(ra),v=Math.cos(ia),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(w=this.mode===this.EQUIT?1+C*v:1+this.sinph0*K+this.cosph0*C*v,1E-10>=w)return null;w=Math.sqrt(2/w);var qa=w*C*Math.sin(ia);w*=this.mode===this.EQUIT?K:this.cosph0*K-this.sinph0*
1084C*v}else{if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(v=-v),1E-10>Math.abs(ra+this.phi0))return null;w=t-.5*ra;w=2*(this.mode===this.S_POLE?Math.cos(w):Math.sin(w));qa=w*Math.sin(ia);w*=v}}else{switch(J=0,V=0,I=0,v=Math.cos(ia),C=Math.sin(ia),K=Math.sin(ra),N=G(this.e,K),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(J=N/this.qp,V=Math.sqrt(1-J*J)),this.mode){case this.OBLIQ:I=1+this.sinb1*J+this.cosb1*V*v;break;case this.EQUIT:I=1+V*v;break;case this.N_POLE:I=
1085z+ra;N=this.qp-N;break;case this.S_POLE:I=ra-z,N=this.qp+N}if(1E-10>Math.abs(I))return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:I=Math.sqrt(2/I);w=this.mode===this.OBLIQ?this.ymf*I*(this.cosb1*J-this.sinb1*V*v):(I=Math.sqrt(2/(1+V*v)))*J*this.ymf;qa=this.xmf*I*V*C;break;case this.N_POLE:case this.S_POLE:0<=N?(qa=(I=Math.sqrt(N))*C,w=v*(this.mode===this.S_POLE?I:-I)):qa=w=0}}return E.x=this.a*qa+this.x0,E.y=this.a*w+this.y0,E};q.inverse=function(E){E.x-=this.x0;E.y-=this.y0;var w,v,C;
1086var K=E.x/this.a;var N=E.y/this.a;if(this.sphere){var J=C=0;if(v=Math.sqrt(K*K+N*N),w=.5*v,1<w)return null;switch(w=2*Math.asin(w),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(J=Math.sin(w),C=Math.cos(w)),this.mode){case this.EQUIT:w=1E-10>=Math.abs(v)?0:Math.asin(N*J/v);K*=J;N=C*v;break;case this.OBLIQ:w=1E-10>=Math.abs(v)?this.phi0:Math.asin(C*this.sinph0+N*J*this.cosph0/v);K*=J*this.cosph0;N=(C-Math.sin(w)*this.sinph0)*v;break;case this.N_POLE:N=-N;w=z-w;break;case this.S_POLE:w-=z}K=0!==
1087N||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(K,N):0}else{if(w=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(K/=this.dd,N*=this.dd,C=Math.sqrt(K*K+N*N),1E-10>C)return E.x=0,E.y=this.phi0,E;J=2*Math.asin(.5*C/this.rq);v=Math.cos(J);K*=J=Math.sin(J);this.mode===this.OBLIQ?(w=v*this.sinb1+N*J*this.cosb1/C,N=C*this.cosb1*v-N*this.sinb1*J):(w=N*J/C,N=C*v)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(N=-N),J=K*K+N*N,!J)return E.x=0,E.y=this.phi0,
1088E;w=1-J/this.qp;this.mode===this.S_POLE&&(w=-w)}K=Math.atan2(K,N);w=this.authlat(Math.asin(w),this.apa)}return E.x=D(this.long0+K),E.y=w,E};q.P00=.3333333333333333;q.P01=.17222222222222222;q.P02=.10257936507936508;q.P10=.06388888888888888;q.P11=.0664021164021164;q.P20=.016415012942191543;q.authset=function(E){var w,v=[];return v[0]=E*this.P00,w=E*E,v[0]+=w*this.P01,v[1]=w*this.P10,w*=E,v[0]+=w*this.P02,v[1]+=w*this.P11,v[2]=w*this.P20,v};q.authlat=function(E,w){var v=E+E;return E+w[0]*Math.sin(v)+
1089w[1]*Math.sin(v+v)+w[2]*Math.sin(v+v+v)};
1089q.names=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"]},{"../common/adjust_lon":5,"../common/qsfnz":20}],49:[function(n,A,q){var z=n("../common/msfnz"),t=n("../common/tsfnz"),G=Math.PI/2,D=n("../common/sign"),E=n("../common/adjust_lon"),w=n("../common/phi2z");q.init=function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(1E-10>Math.abs(this.lat1+this.lat2))){var v=this.b/this.a;this.e=
1090Math.sqrt(1-v*v);v=Math.sin(this.lat1);var C=z(this.e,v,Math.cos(this.lat1)),K=t(this.e,this.lat1,v),N=Math.sin(this.lat2),J=z(this.e,N,Math.cos(this.lat2));N=t(this.e,this.lat2,N);var V=t(this.e,this.lat0,Math.sin(this.lat0));this.ns=1E-10<Math.abs(this.lat1-this.lat2)?Math.log(C/J)/Math.log(K/N):v;isNaN(this.ns)&&(this.ns=v);this.f0=C/(this.ns*Math.pow(K,this.ns));this.rh=this.a*this.f0*Math.pow(V,this.ns);this.title||(this.title="Lambert Conformal Conic")}};q.forward=function(v){var C=v.x,K=v.y;
10911E-10>=Math.abs(2*Math.abs(K)-Math.PI)&&(K=D(K)*(G-2E-10));var N=Math.abs(Math.abs(K)-G);if(1E-10<N)K=t(this.e,K,Math.sin(K)),K=this.a*this.f0*Math.pow(K,this.ns);else{if(N=K*this.ns,0>=N)return null;K=0}C=this.ns*E(C-this.long0);return v.x=this.k0*K*Math.sin(C)+this.x0,v.y=this.k0*(this.rh-K*Math.cos(C))+this.y0,v};q.inverse=function(v){var C,K,N,J,V,I=(v.x-this.x0)/this.k0,ia=this.rh-(v.y-this.y0)/this.k0;0<this.ns?(C=Math.sqrt(I*I+ia*ia),K=1):(C=-Math.sqrt(I*I+ia*ia),K=-1);var ra=0;if(0!==C&&(ra=
1092Math.atan2(K*I,K*ia)),0!==C||0<this.ns){if(K=1/this.ns,N=Math.pow(C/(this.a*this.f0),K),J=w(this.e,N),-9999===J)return null}else J=-G;return V=E(ra/this.ns+this.long0),v.x=V,v.y=J,v};q.names=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]},{"../common/adjust_lon":5,"../common/msfnz":15,"../common/phi2z":16,"../common/sign":21,"../common/tsfnz":24}],50:[function(n,A,q){function z(t){return t}q.init=function(){};q.forward=z;q.inverse=z;
1093q.names=["longlat","identity"]},{}],51:[function(n,A,q){var z=n("../common/msfnz"),t=Math.PI/2,G=n("../common/adjust_lon"),D=Math.PI/4,E=n("../common/tsfnz"),w=n("../common/phi2z");q.init=function(){var v=this.b/this.a;this.es=1-v*v;"x0"in this||(this.x0=0);"y0"in this||(this.y0=0);this.e=Math.sqrt(this.es);this.lat_ts?this.k0=this.sphere?Math.cos(this.lat_ts):z(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k0=this.k?this.k:1)};q.forward=function(v){var C=v.x,K=v.y;if(90<57.29577951308232*
1094K&&-90>57.29577951308232*K&&180<57.29577951308232*C&&-180>57.29577951308232*C||1E-10>=Math.abs(Math.abs(K)-t))return null;this.sphere?(C=this.x0+this.a*this.k0*G(C-this.long0),K=this.y0+this.a*this.k0*Math.log(Math.tan(D+.5*K))):(K=E(this.e,K,Math.sin(K)),C=this.x0+this.a*this.k0*G(C-this.long0),K=this.y0-this.a*this.k0*Math.log(K));return v.x=C,v.y=K,v};q.inverse=function(v){var C,K=v.x-this.x0,N=v.y-this.y0;if(this.sphere)var J=t-2*Math.atan(Math.exp(-N/(this.a*this.k0)));else if(J=w(this.e,Math.exp(-N/
1095(this.a*this.k0))),-9999===J)return null;return C=G(this.long0+K/(this.a*this.k0)),v.x=C,v.y=J,v};q.names=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{"../common/adjust_lon":5,"../common/msfnz":15,"../common/phi2z":16,"../common/tsfnz":24}],52:[function(n,A,q){var z=n("../common/adjust_lon");q.init=function(){};q.forward=function(t){var G=t.y,D=z(t.x-this.long0);G=this.y0+this.a*Math.log(Math.tan(Math.PI/4+G/2.5))*1.25;return t.x=this.x0+
1096this.a*D,t.y=G,t};q.inverse=function(t){t.x-=this.x0;t.y-=this.y0;var G=z(this.long0+t.x/this.a),D=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=G,t.y=D,t};q.names=["Miller_Cylindrical","mill"]},{"../common/adjust_lon":5}],53:[function(n,A,q){var z=n("../common/adjust_lon");q.init=function(){};q.forward=function(t){for(var G=t.y,D=z(t.x-this.long0),E=G,w=Math.PI*Math.sin(G),v=0;;v++){var C=-(E+Math.sin(E)-w)/(1+Math.cos(E));if(E+=C,1E-10>Math.abs(C))break}E/=2;1E-10>Math.PI/2-Math.abs(G)&&
1097(D=0);G=1.4142135623731*this.a*Math.sin(E)+this.y0;return t.x=.900316316158*this.a*D*Math.cos(E)+this.x0,t.y=G,t};q.inverse=function(t){t.x-=this.x0;t.y-=this.y0;var G=t.y/(1.4142135623731*this.a);.999999999999<Math.abs(G)&&(G=.999999999999);G=Math.asin(G);var D=z(this.long0+t.x/(.900316316158*this.a*Math.cos(G)));D<-Math.PI&&(D=-Math.PI);D>
1097Math.PI&&(D=Math.PI);G=(2*G+Math.sin(2*G))/Math.PI;1<Math.abs(G)&&(G=1);G=Math.asin(G);return t.x=D,t.y=G,t};q.names=["Mollweide","moll"]},{"../common/adjust_lon":5}],
109854:[function(n,A,q){q.iterations=1;q.init=function(){this.A=[];this.A[1]=.6399175073;this.A[2]=-.1358797613;this.A[3]=.063294409;this.A[4]=-.02526853;this.A[5]=.0117879;this.A[6]=-.0055161;this.A[7]=.0026906;this.A[8]=-.001333;this.A[9]=6.7E-4;this.A[10]=-3.4E-4;this.B_re=[];this.B_im=[];this.B_re[1]=.7557853228;this.B_im[1]=0;this.B_re[2]=.249204646;this.B_im[2]=.003371507;this.B_re[3]=-.001541739;this.B_im[3]=.04105856;this.B_re[4]=-.10162907;this.B_im[4]=.01727609;this.B_re[5]=-.26623489;this.B_im[5]=
1099-.36249218;this.B_re[6]=-.6870983;this.B_im[6]=-1.1651967;this.C_re=[];this.C_im=[];this.C_re[1]=1.3231270439;this.C_im[1]=0;this.C_re[2]=-.577245789;this.C_im[2]=-.007809598;this.C_re[3]=.508307513;this.C_im[3]=-.112208952;this.C_re[4]=-.15094762;this.C_im[4]=.18200602;this.C_re[5]=1.01418179;this.C_im[5]=1.64497696;this.C_re[6]=1.9660549;this.C_im[6]=2.5127645;this.D=[];this.D[1]=1.5627014243;this.D[2]=.5185406398;this.D[3]=-.03333098;this.D[4]=-.1052906;this.D[5]=-.0368594;this.D[6]=.007317;this.D[7]=
1100.0122;this.D[8]=.00394;this.D[9]=-.0013};q.forward=function(z){var t,G=z.x-this.long0,D=(z.y-this.lat0)/4.84813681109536E-6*1E-5,E=1,w=0;for(t=1;10>=t;t++)E*=D,w+=this.A[t]*E;var v;E=w;w=1;var C=v=0,K=0;for(t=1;6>=t;t++)D=w*E-v*G,v=v*E+w*G,w=D,C=C+this.B_re[t]*w-this.B_im[t]*v,K=K+this.B_im[t]*w+this.B_re[t]*v;return z.x=K*this.a+this.x0,z.y=C*this.a+this.y0,z};q.inverse=function(z){var t,G,D=(z.y-this.y0)/this.a,E=(z.x-this.x0)/this.a,w=1,v=G=0,C=0;for(t=1;6>=t;t++){var K=w*D-G*E;G=G*D+w*E;w=K;v=
1101v+this.C_re[t]*w-this.C_im[t]*G;C=C+this.C_im[t]*w+this.C_re[t]*G}for(K=0;K<this.iterations;K++){var N=v;var J=C;w=D;G=E;for(t=2;6>=t;t++){var V=N*v-J*C;J=J*v+N*C;N=V;w+=(t-1)*(this.B_re[t]*N-this.B_im[t]*J);G+=(t-1)*(this.B_im[t]*N+this.B_re[t]*J)}N=1;J=0;var I=this.B_re[1],ia=this.B_im[1];for(t=2;6>=t;t++)V=N*v-J*C,J=J*v+N*C,N=V,I+=t*(this.B_re[t]*N-this.B_im[t]*J),ia+=t*(this.B_im[t]*N+this.B_re[t]*J);C=I*I+ia*ia;v=(w*I+G*ia)/C;C=(G*I-w*ia)/C}D=v;E=1;v=0;for(t=1;9>=t;t++)E*=D,v+=this.D[t]*E;t=
1102this.lat0+.484813681109536*v;return z.x=this.long0+C,z.y=t,z};q.names=["New_Zealand_Map_Grid","nzmg"]},{}],55:[function(n,A,q){var z=n("../common/tsfnz"),t=n("../common/adjust_lon"),G=n("../common/phi2z"),D=Math.PI/2,E=Math.PI/4;q.init=function(){this.no_off=this.no_off||!1;this.no_rot=this.no_rot||!1;isNaN(this.k0)&&(this.k0=1);var w=Math.sin(this.lat0),v=Math.cos(this.lat0),C=this.e*w;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(v,4));this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-C*
1103C);w=z(this.e,this.lat0,w);v=this.bl/v*Math.sqrt((1-this.es)/(1-C*C));1>v*v&&(v=1);if(isNaN(this.longc)){C=z(this.e,this.lat1,Math.sin(this.lat1));var K=z(this.e,this.lat2,Math.sin(this.lat2));this.el=0<=this.lat0?(v+Math.sqrt(v*v-1))*Math.pow(w,this.bl):(v-Math.sqrt(v*v-1))*Math.pow(w,this.bl);C=Math.pow(C,this.bl);var N=Math.pow(K,this.bl);K=this.el/C;w=.5*(K-1/K);K=(this.el*this.el-N*C)/(this.el*this.el+N*C);C=(N-C)/(N+C);N=t(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(K*
1104Math.tan(.5*this.bl*N)/C)/this.bl;this.long0=t(this.long0);C=t(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*C)/w);this.alpha=Math.asin(v*Math.sin(this.gamma0))}else K=0<=this.lat0?v+Math.sqrt(v*v-1):v-Math.sqrt(v*v-1),this.el=K*Math.pow(w,this.bl),this.gamma0=Math.asin(Math.sin(this.alpha)/v),this.long0=this.longc-Math.asin(.5*(K-1/K)*Math.tan(this.gamma0))/this.bl;this.uc=this.no_off?0:0<=this.lat0?this.al/this.bl*Math.atan2(Math.sqrt(v*v-1),Math.cos(this.alpha)):-1*this.al/this.bl*
1105Math.atan2(Math.sqrt(v*v-1),Math.cos(this.alpha))};q.forward=function(w){var v=w.y;var C=t(w.x-this.long0);if(1E-10>=Math.abs(Math.abs(v)-D))C=0<v?-1:1,v=this.al/this.bl*Math.log(Math.tan(E+C*this.gamma0*.5)),C=-1*C*D*this.al/this.bl;else{v=z(this.e,v,Math.sin(v));v=this.el/Math.pow(v,this.bl);var K=.5*(v-1/v),N=Math.sin(this.bl*C);v=(K*Math.sin(this.gamma0)-N*Math.cos(this.gamma0))/(.5*(v+1/v));v=1E-10>=Math.abs(Math.abs(v)-1)?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-v)/(1+v))/this.bl;C=1E-10>=
1106Math.abs(Math.cos(this.bl*C))?this.al*this.bl*C:this.al*Math.atan2(K*Math.cos(this.gamma0)+N*Math.sin(this.gamma0),Math.cos(this.bl*C))/this.bl}return this.no_rot?(w.x=this.x0+C,w.y=this.y0+v):(C-=this.uc,w.x=this.x0+v*Math.cos(this.alpha)+C*Math.sin(this.alpha),w.y=this.y0+C*Math.cos(this.alpha)-v*Math.sin(this.alpha)),w};q.inverse=function(w){var v,C;this.no_rot?(C=w.y-this.y0,v=w.x-this.x0):(C=(w.x-this.x0)*Math.cos(this.alpha)-(w.y-this.y0)*Math.sin(this.alpha),v=(w.y-this.y0)*Math.cos(this.alpha)+
1107(w.x-this.x0)*Math.sin(this.alpha),v+=this.uc);var K=Math.exp(-1*this.bl*C/this.al);C=.5*(K-1/K);var N=Math.sin(this.bl*v/this.al);K=(N*Math.cos(this.gamma0)+C*Math.sin(this.gamma0))/(.5*(K+1/K));var J=Math.pow(this.el/Math.sqrt((1+K)/(1-K)),1/this.bl);return 1E-10>Math.abs(K-1)?(w.x=this.long0,w.y=D):1E-10>Math.abs(K+1)?(w.x=this.long0,w.y=-1*D):(w.y=G(this.e,J),w.x=t(this.long0-Math.atan2(C*Math.cos(this.gamma0)-N*Math.sin(this.gamma0),Math.cos(this.bl*v/this.al))/this.bl)),w};q.names=["Hotine_Oblique_Mercator",
1108"Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]},{"../common/adjust_lon":5,"../common/phi2z":16,"../common/tsfnz":24}],56:[function(n,A,q){var z=n("../common/e0fn"),t=n("../common/e1fn"),G=n("../common/e2fn"),D=n("../common/e3fn"),E=n("../common/adjust_lon"),w=n("../common/adjust_lat"),v=n("../common/mlfn"),C=n("../common/gN");q.init=function(){this.temp=this.b/this.a;this.es=1-Math.pow(this.temp,2);this.e=Math.sqrt(this.es);
1109this.e0=z(this.es);this.e1=t(this.es);this.e2=G(this.es);this.e3=D(this.es);this.ml0=this.a*v(this.e0,this.e1,this.e2,this.e3,this.lat0)};q.forward=function(K){var N,J,V,I=K.y,ia=E(K.x-this.long0);(V=ia*Math.sin(I),this.sphere)?1E-10>=Math.abs(I)?(N=this.a*ia,J=-1*this.a*this.lat0):(N=this.a*Math.sin(V)/Math.tan(I),J=this.a*(w(I-this.lat0)+(1-Math.cos(V))/Math.tan(I))):1E-10>=Math.abs(I)?(N=this.a*ia,J=-1*this.ml0):(J=C(this.a,this.e,Math.sin(I))/Math.tan(I),N=J*Math.sin(V),J=this.a*v(this.e0,this.e1,
1110this.e2,this.e3,I)-this.ml0+J*(1-Math.cos(V)));return K.x=N+this.x0,K.y=J+this.y0,K};q.inverse=function(K){var N,J,V;if(N=K.x-this.x0,J=K.y-this.y0,this.sphere)if(1E-10>=Math.abs(J+this.a*this.lat0)){N=E(N/this.a+this.long0);var I=0}else{var ia=this.lat0+J/this.a;var ra=N*N/this.a/this.a+ia*ia;var qa=ia;var Za;for(J=20;J;--J)if(Za=Math.tan(qa),V=-1*(ia*(qa*Za+1)-qa-.5*(qa*qa+ra)*Za)/((qa-ia)/Za-1),qa+=V,1E-10>=Math.abs(V)){I=qa;break}N=E(this.long0+Math.asin(N*Math.tan(qa)/this.a)/Math.sin(I))}else if(1E-10>=
1111Math.abs(J+this.ml0))I=0,N=E(this.long0+N/this.a);else{ia=(this.ml0+J)/this.a;ra=N*N/this.a/this.a+ia*ia;qa=ia;var Na,Mb,fb,Nb,Oa;for(J=20;J;--J)if(Oa=this.e*Math.sin(qa),Na=Math.sqrt(1-Oa*Oa)*Math.tan(qa),Mb=this.a*v(this.e0,this.e1,this.e2,this.e3,qa),fb=this.e0-2*this.e1*Math.cos(2*qa)+4*this.e2*Math.cos(4*qa)-6*this.e3*Math.cos(6*qa),Nb=Mb/this.a,V=(ia*(Na*Nb+1)-Nb-.5*Na*(Nb*Nb+ra))/(this.es*Math.sin(2*qa)*(Nb*Nb+ra-2*ia*Nb)/(4*Na)+(ia-Nb)*(Na*fb-2/Math.sin(2*qa))-fb),qa-=V,1E-10>=Math.abs(V)){I=
1112qa;break}Na=Math.sqrt(1-this.es*Math.pow(Math.sin(I),2))*Math.tan(I);N=E(this.long0+Math.asin(N*Na/this.a)/Math.sin(I))}return K.x=N,K.y=I,K};q.names=["Polyconic","poly"]},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/gN":11,"../common/mlfn":14}],57:[function(n,A,q){var z=n("../common/adjust_lon"),t=n("../common/adjust_lat"),G=n("../common/pj_enfn"),D=n("../common/pj_mlfn"),E=n("../common/pj_
1112inv_mlfn"),w=
1113Math.PI/2,v=n("../common/asinz");q.init=function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=G(this.es)};q.forward=function(C){var K=C.x;var N=C.y;if(K=z(K-this.long0),this.sphere){if(this.m)for(var J=this.n*Math.sin(N),V=20;V;--V){var I=(this.m*N+Math.sin(N)-J)/(this.m+Math.cos(N));if(N-=I,1E-10>Math.abs(I))break}else N=1!==this.n?Math.asin(this.n*Math.sin(N)):N;K=this.a*this.C_x*K*(this.m+Math.cos(N));N*=this.a*this.C_y}else J=
1114Math.sin(N),V=Math.cos(N),N=this.a*D(N,J,V,this.en),K=this.a*K*V/Math.sqrt(1-this.es*J*J);return C.x=K,C.y=N,C};q.inverse=function(C){var K,N,J,V;return C.x-=this.x0,J=C.x/this.a,C.y-=this.y0,K=C.y/this.a,this.sphere?(K/=this.C_y,J/=this.C_x*(this.m+Math.cos(K)),this.m?K=v((this.m*K+Math.sin(K))/this.n):1!==this.n&&(K=v(Math.sin(K)/this.n)),J=z(J+this.long0),K=t(K)):(K=E(C.y/this.a,this.es,this.en),V=Math.abs(K),w>V?(V=Math.sin(K),N=this.long0+C.x*Math.sqrt(1-this.es*V*V)/(this.a*Math.cos(K)),J=z(N)):
1115w>V-1E-10&&(J=this.long0)),C.x=J,C.y=K,C};q.names=["Sinusoidal","sinu"]},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/asinz":6,"../common/pj_enfn":17,"../common/pj_inv_mlfn":18,"../common/pj_mlfn":19}],58:[function(n,A,q){q.init=function(){var z=this.lat0;this.lambda0=this.long0;var t=Math.sin(z),G=this.a,D=1/this.rf;D=2*D-Math.pow(D,2);var E=this.e=Math.sqrt(D);this.R=this.k0*G*Math.sqrt(1-D)/(1-D*Math.pow(t,2));this.alpha=Math.sqrt(1+D/(1-D)*Math.pow(Math.cos(z),4));this.b0=Math.asin(t/
1116this.alpha);this.K=Math.log(Math.tan(Math.PI/4+this.b0/2))-this.alpha*Math.log(Math.tan(Math.PI/4+z/2))+this.alpha*E/2*Math.log((1+E*t)/(1-E*t))};q.forward=function(z){var t=2*(Math.atan(Math.exp(-this.alpha*(Math.log(Math.tan(Math.PI/4-z.y/2))+this.e/2*Math.log((1+this.e*Math.sin(z.y))/(1-this.e*Math.sin(z.y))))+this.K))-Math.PI/4),G=this.alpha*(z.x-this.lambda0),D=Math.atan(Math.sin(G)/(Math.sin(this.b0)*Math.tan(t)+Math.cos(this.b0)*Math.cos(G)));t=Math.asin(Math.cos(this.b0)*Math.sin(t)-Math.sin(this.b0)*
1117Math.cos(t)*Math.cos(G));return z.y=this.R/2*Math.log((1+Math.sin(t))/(1-Math.sin(t)))+this.y0,z.x=this.R*D+this.x0,z};q.inverse=function(z){var t=(z.x-this.x0)/this.R,G=2*(Math.atan(Math.exp((z.y-this.y0)/this.R))-Math.PI/4),D=Math.asin(Math.cos(this.b0)*Math.sin(G)+Math.sin(this.b0)*Math.cos(G)*Math.cos(t));t=this.lambda0+Math.atan(Math.sin(t)/(Math.cos(this.b0)*Math.cos(t)-Math.sin(this.b0)*Math.tan(G)))/this.alpha;for(var E=D,w=-1E3,v=0;1E-7<Math.abs(E-w);){if(20<++v)return;G=1/this.alpha*(Math.log(Math.tan(Math.PI/
11184+D/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(E))/2));w=E;E=2*Math.atan(Math.exp(G))-Math.PI/2}return z.x=t,z.y=E,z};q.names=["somerc"]},{}],59:[function(n,A,q){var z=Math.PI/2,t=n("../common/sign"),G=n("../common/msfnz"),D=n("../common/tsfnz"),E=n("../common/phi2z"),w=n("../common/adjust_lon");q.ssfn_=function(v,C,K){return C*=K,Math.tan(.5*(z+v))*Math.pow((1-C)/(1+C),.5*K)};q.init=function(){this.coslat0=Math.cos(this.lat0);this.sinlat0=Math.sin(this.lat0);this.sphere?
11191===this.k0&&!isNaN(this.lat_ts)&&1E-10>=Math.abs(this.coslat0)&&(this.k0=.5*(1+t(this.lat0)*Math.sin(this.lat_ts))):(1E-10>=Math.abs(this.coslat0)&&(this.con=0<this.lat0?1:-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&1E-10>=Math.abs(this.coslat0)&&(this.k0=.5*this.cons*G(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/D(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=G(this.e,this.sinlat0,this.coslat0),
1120this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-z,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))};q.forward=function(v){var C,K,N,J,V,I,ia=v.x,ra=v.y,qa=Math.sin(ra),Za=Math.cos(ra),Na=w(ia-this.long0);return 1E-10>=Math.abs(Math.abs(ia-this.long0)-Math.PI)&&1E-10>=Math.abs(ra+this.lat0)?(v.x=0/0,v.y=0/0,v):this.sphere?(C=2*this.k0/(1+this.sinlat0*qa+this.coslat0*Za*Math.cos(Na)),v.x=this.a*C*Za*Math.sin(Na)+this.x0,v.y=this.a*C*(this.coslat0*qa-this.sinlat0*Za*Math.cos(Na))+
1121this.y0,v):(K=2*Math.atan(this.ssfn_(ra,qa,this.e))-z,J=Math.cos(K),N=Math.sin(K),1E-10>=Math.abs(this.coslat0)?(V=D(this.e,ra*this.con,this.con*qa),I=2*this.a*this.k0*V/this.cons,v.x=this.x0+I*Math.sin(ia-this.long0),v.y=this.y0-this.con*I*Math.cos(ia-this.long0),v):(1E-10>Math.abs(this.sinlat0)?(C=2*this.a*this.k0/(1+J*Math.cos(Na)),v.y=C*N):(C=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*N+this.cosX0*J*Math.cos(Na))),v.y=C*(this.cosX0*N-this.sinX0*J*Math.cos(Na))+this.y0),v.x=C*J*Math.sin(Na)+
1122this.x0,v))};q.inverse=function(v){v.x-=this.x0;v.y-=this.y0;var C,K,N=Math.sqrt(v.x*v.x+v.y*v.y);if(this.sphere){var J=2*Math.atan(N/(.5*this.a*this.k0));return C=this.long0,K=this.lat0,1E-10>=N?(v.x=C,v.y=K,v):(K=Math.asin(Math.cos(J)*this.sinlat0+v.y*Math.sin(J)*this.coslat0/N),C=w(1E-10>Math.abs(this.coslat0)?0<this.lat0?this.long0+Math.atan2(v.x,-1*v.y):this.long0+Math.atan2(v.x,v.y):this.long0+Math.atan2(v.x*Math.sin(J),N*this.coslat0*Math.cos(J)-v.y*this.sinlat0*Math.sin(J))),v.x=C,v.y=K,v)}if(1E-10>=
1123Math.abs(this.coslat0)){if(1E-10>=N)return K=this.lat0,C=this.long0,v.x=C,v.y=K,v;v.x*=this.con;v.y*=this.con;C=N*this.cons/(2*this.a*this.k0);K=this.con*E(this.e,C);C=this.con*w(this.con*this.long0+Math.atan2(v.x,-1*v.y))}else K=2*Math.atan(N*this.cosX0/(2*this.a*this.k0*this.ms1)),C=this.long0,1E-10>
1123=N?J=this.X0:(J=Math.asin(Math.cos(K)*this.sinX0+v.y*Math.sin(K)*this.cosX0/N),C=w(this.long0+Math.atan2(v.x*Math.sin(K),N*this.cosX0*Math.cos(K)-v.y*this.sinX0*Math.sin(K)))),K=-1*E(this.e,Math.tan(.5*
1124(z+J)));return v.x=C,v.y=K,v};q.names=["stere"]},{"../common/adjust_lon":5,"../common/msfnz":15,"../common/phi2z":16,"../common/sign":21,"../common/tsfnz":24}],60:[function(n,A,q){var z=n("./gauss"),t=n("../common/adjust_lon");q.init=function(){z.init.apply(this);this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))};q.forward=function(G){var D,E,w,v;return G.x=t(G.x-this.long0),z.forward.apply(this,
1125[G]),D=Math.sin(G.y),E=Math.cos(G.y),w=Math.cos(G.x),v=this.k0*this.R2/(1+this.sinc0*D+this.cosc0*E*w),G.x=v*E*Math.sin(G.x),G.y=v*(this.cosc0*D-this.sinc0*E*w),G.x=this.a*G.x+this.x0,G.y=this.a*G.y+this.y0,G};q.inverse=function(G){var D;if(G.x=(G.x-this.x0)/this.a,G.y=(G.y-this.y0)/this.a,G.x/=this.k0,G.y/=this.k0,D=Math.sqrt(G.x*G.x+G.y*G.y)){var E=2*Math.atan2(D,this.R2);var w=Math.sin(E);var v=Math.cos(E);E=Math.asin(v*this.sinc0+G.y*w*this.cosc0/D);w=Math.atan2(G.x*w,D*this.cosc0*v-G.y*this.sinc0*
1126w)}else E=this.phic0,w=0;return G.x=w,G.y=E,z.inverse.apply(this,[G]),G.x=t(G.x+this.long0),G};q.names=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative"]},{"../common/adjust_lon":5,"./gauss":45}],61:[function(n,A,q){var z=n("../common/e0fn"),t=n("../common/e1fn"),G=n("../common/e2fn"),D=n("../common/e3fn"),E=n("../common/mlfn"),w=n("../common/adjust_lon"),v=Math.PI/2,C=n("../common/sign"),K=n("../common/asinz");q.init=function(){this.e0=
1127z(this.es);this.e1=t(this.es);this.e2=G(this.es);this.e3=D(this.es);this.ml0=this.a*E(this.e0,this.e1,this.e2,this.e3,this.lat0)};q.forward=function(N){var J=N.y;var V=w(N.x-this.long0);var I=Math.sin(J);var ia=Math.cos(J);if(this.sphere){var ra=ia*Math.sin(V);if(1E-10>Math.abs(Math.abs(ra)-1))return 93;var qa=.5*this.a*this.k0*Math.log((1+ra)/(1-ra));I=Math.acos(ia*Math.cos(V)/Math.sqrt(1-ra*ra));0>J&&(I=-I);J=this.a*this.k0*(I-this.lat0)}else{qa=ia*V;V=Math.pow(qa,2);ia=this.ep2*Math.pow(ia,2);
1128ra=Math.tan(J);var Za=Math.pow(ra,2);I=1-this.es*Math.pow(I,2);I=this.a/Math.sqrt(I);J=this.a*E(this.e0,this.e1,this.e2,this.e3,J);qa=this.k0*I*qa*(1+V/6*(1-Za+ia+V/20*(5-18*Za+Math.pow(Za,2)+72*ia-58*this.ep2)))+this.x0;J=this.k0*(J-this.ml0+I*ra*V*(.5+V/24*(5-Za+9*ia+4*Math.pow(ia,2)+V/30*(61-58*Za+Math.pow(Za,2)+600*ia-330*this.ep2))))+this.y0}return N.x=qa,N.y=J,N};q.inverse=function(N){var J;if(this.sphere){var V=Math.exp(N.x/(this.a*this.k0));var I=.5*(V-1/V);var ia=this.lat0+N.y/(this.a*this.k0);
1129var ra=Math.cos(ia);V=Math.sqrt((1-ra*ra)/(1+I*I));V=K(V);0>ia&&(V=-V);I=0===I&&0===ra?this.long0:w(Math.atan2(I,ra)+this.long0)}else{ia=N.x-this.x0;var qa=N.y-this.y0;I=V=(this.ml0+qa/this.k0)/this.a;for(J=0;ra=(V+this.e1*Math.sin(2*I)-this.e2*Math.sin(4*I)+this.e3*Math.sin(6*I))/this.e0-I,I+=ra,!(1E-10>=Math.abs(ra));J++)if(6<=J)return 95;if(Math.abs(I)<v){ra=Math.cos(I);var Za=Math.tan(I);J=this.ep2*Math.pow(ra,2);qa=Math.pow(J,2);var Na=Math.pow(Za,2),Mb=Math.pow(Na,2);V=1-this.es*Math.pow(Math.sin(I),
11302);var fb=this.a/Math.sqrt(V);ia/=fb*this.k0;var Nb=Math.pow(ia,2);V=I-fb*Za*Nb/(fb*(1-this.es)/V)*(.5-Nb/24*(5+3*Na+10*J-4*qa-9*this.ep2-Nb/30*(61+90*Na+298*J+45*Mb-252*this.ep2-3*qa)));I=w(this.long0+ia*(1-Nb/6*(1+2*Na+J-Nb/20*(5-2*J+28*Na-3*qa+8*this.ep2+24*Mb)))/ra)}else V=v*C(qa),I=this.long0}return N.x=I,N.y=V,N};q.names=["Transverse_Mercator","Transverse Mercator","tmerc"]},{"../common/adjust_lon":5,"../common/asinz":6,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,
1131"../common/mlfn":14,"../common/sign":21}],62:[function(n,A,q){var z=n("./tmerc");q.dependsOn="tmerc";q.init=function(){this.zone&&(this.lat0=0,this.long0=.017453292519943295*(6*Math.abs(this.zone)-183),this.x0=5E5,this.y0=this.utmSouth?1E7:0,this.k0=.9996,z.init.apply(this),this.forward=z.forward,this.inverse=z.inverse)};q.names=["Universal Transverse Mercator System","utm"]},{"./tmerc":61}],63:[function(n,A,q){var z=n("../common/adjust_lon"),t=Math.PI/2,G=n("../common/asinz");q.init=function(){this.R=
1132this.a};q.forward=function(D){var E,w=D.y;var v=z(D.x-this.long0);1E-10>=Math.abs(w)&&(E=this.y0);
1132var C=G(2*Math.abs(w/Math.PI));(1E-10>=Math.abs(v)||1E-10>=Math.abs(Math.abs(w)-t))&&(E=0<=w?this.y0+Math.PI*this.R*Math.tan(.5*C):this.y0+Math.PI*this.R*-Math.tan(.5*C));var K=.5*Math.abs(Math.PI/v-v/Math.PI),N=K*K,J=Math.sin(C);C=Math.cos(C);C/=J+C-1;J=C*(2/J-1);var V=J*J,I=Math.PI*this.R*(K*(C-V)+Math.sqrt(N*(C-V)*(C-V)-(V+N)*(C*C-V)))/(V+N);0>v&&(I=-I);v=this.x0+I;C=N+C;return I=Math.PI*this.R*(J*
1133C-K*Math.sqrt((V+N)*(N+1)-C*C))/(V+N),E=0<=w?this.y0+I:this.y0-I,D.x=v,D.y=E,D};q.inverse=function(D){var E,w,v,C,K,N,J,V,I,ia,ra,qa,Za;return D.x-=this.x0,D.y-=this.y0,ra=Math.PI*this.R,v=D.x/ra,C=D.y/ra,K=v*v+C*C,N=-Math.abs(C)*(1+K),J=N-2*C*C+v*v,V=-2*N+1+2*C*C+K*K,Za=C*C/V+(2*J*J*J/V/V/V-9*N*J/V/V)/27,I=(N-J*J/3/V)/V,ia=2*Math.sqrt(-I/3),ra=3*Za/I/ia,1<Math.abs(ra)&&(ra=0<=ra?1:-1),qa=Math.acos(ra)/3,w=0<=D.y?(-ia*Math.cos(qa+Math.PI/3)-J/3/V)*Math.PI:-(-ia*Math.cos(qa+Math.PI/3)-J/3/V)*Math.PI,
1134E=1E-10>Math.abs(v)?this.long0:z(this.long0+Math.PI*(K-1+Math.sqrt(1+2*(v*v-C*C)+K*K))/2/v),D.x=E,D.y=w,D};q.names=["Van_der_Grinten_I","VanDerGrinten","vandg"]},{"../common/adjust_lon":5,"../common/asinz":6}],64:[function(n,A){var q=n("./datum_transform"),z=n("./adjust_axis"),t=n("./Proj"),G=n("./common/toPoint");A.exports=function C(E,w,v){var K;return Array.isArray(v)&&(v=G(v)),E.datum&&w.datum&&((1===E.datum.datum_type||2===E.datum.datum_type)&&"WGS84"!==w.datumCode||(1===w.datum.datum_type||
11352===w.datum.datum_type)&&"WGS84"!==E.datumCode)&&(K=new t("WGS84"),C(E,K,v),E=K),"enu"!==E.axis&&z(E,!1,v),"longlat"===E.projName?(v.x*=.017453292519943295,v.y*=.017453292519943295):(E.to_meter&&(v.x*=E.to_meter,v.y*=E.to_meter),E.inverse(v)),E.from_greenwich&&(v.x+=E.from_greenwich),v=q(E.datum,w.datum,v),w.from_greenwich&&(v.x-=w.from_greenwich),"longlat"===w.projName?(v.x*=57.29577951308232,v.y*=57.29577951308232):(w.forward(v),w.to_meter&&(v.x/=w.to_meter,v.y/=w.to_meter)),"enu"!==w.axis&&z(w,
1136!0,v),v}},{"./Proj":2,"./adjust_axis":3,"./common/toPoint":23,"./datum_transform":30}],65:[function(n,A){function q(w,v,C){w[v]=C.map(function(K){var N={};return z(K,N),N}).reduce(function(K,N){return E(K,N)},{})}function z(w,v){var C;return Array.isArray(w)?(C=w.shift(),"PARAMETER"===C&&(C=w.shift()),1===w.length?Array.isArray(w[0])?(v[C]={},z(w[0],v[C])):v[C]=w[0]:w.length?"TOWGS84"===C?v[C]=w:(v[C]={},-1<["UNIT","PRIMEM","VERT_DATUM"].indexOf(C)?(v[C]={name:w[0].toLowerCase(),convert:w[1]},3===
1137w.length&&(v[C].auth=w[2])):"SPHEROID"===C?(v[C]={name:w[0],a:w[1],rf:w[2]},4===w.length&&(v[C].auth=w[3])):-1<"GEOGCS GEOCCS DATUM VERT_CS COMPD_CS LOCAL_CS FITTED_CS LOCAL_DATUM".split(" ").indexOf(C)?(w[0]=["name",w[0]],q(v,C,w)):w.every(function(K){return Array.isArray(K)})?q(v,C,w):z(w,v[C])):v[C]=!0,void 0):void(v[w]=!0)}function t(w){return w*D}function G(w){function v(C){var K=w.to_meter||1;return parseFloat(C,10)*K}"GEOGCS"===w.type?w.projName="longlat":"LOCAL_CS"===w.type?(w.projName="identity",
1138w.local=!0):w.projName="object"==typeof w.PROJECTION?Object.keys(w.PROJECTION)[0]:w.PROJECTION;w.UNIT&&(w.units=w.UNIT.name.toLowerCase(),"metre"===w.units&&(w.units="meter"),w.UNIT.convert&&(w.to_meter=parseFloat(w.UNIT.convert,10)));w.GEOGCS&&(w.datumCode=w.GEOGCS.DATUM?w.GEOGCS.DATUM.name.toLowerCase():w.GEOGCS.name.toLowerCase(),"d_"===w.datumCode.slice(0,2)&&(w.datumCode=w.datumCode.slice(2)),("new_zealand_geodetic_datum_1949"===w.datumCode||"new_zealand_1949"===w.datumCode)&&(w.datumCode="nzgd49"),
1139"wgs_1984"===w.datumCode&&("Mercator_Auxiliary_Sphere"===w.PROJECTION&&(w.sphere=!0),w.datumCode="wgs84"),"_ferro"===w.datumCode.slice(-6)&&(w.datumCode=w.datumCode.slice(0,-6)),"_jakarta"===w.datumCode.slice(-8)&&(w.datumCode=w.datumCode.slice(0,-8)),~w.datumCode.indexOf("belge")&&(w.datumCode="rnb72"),w.GEOGCS.DATUM&&w.GEOGCS.DATUM.SPHEROID&&(w.ellps=w.GEOGCS.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke_18/,"clrk"),"international"===w.ellps.toLowerCase().slice(0,13)&&(w.ellps="intl"),
1140w.a=w.GEOGCS.DATUM.SPHEROID.a,w.rf=parseFloat(w.GEOGCS.DATUM.SPHEROID.rf,10)),~w.datumCode.indexOf("osgb_1936")&&(w.datumCode="osgb36"));w.b&&!isFinite(w.b)&&(w.b=w.a);[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_of_center"],
1141["lat0","latitude_of_center",t],["longitude_of_center","Longitude_Of_Center"],["longc","longitude_of_center",t],["x0","false_easting",v],["y0","fal
1141se_northing",v],["long0","central_meridian",t],["lat0","latitude_of_origin",t],["lat0","standard_parallel_1",t],["lat1","standard_parallel_1",t],["lat2","standard_parallel_2",t],["alpha","azimuth",t],["srsCode","name"]].forEach(function(C){var K=C[0],N=C[1];!(K in w)&&N in w&&(w[K]=w[N],3===C.length&&(w[K]=C[2](w[K])))});w.long0||!w.longc||"Albers_Conic_Equal_Area"!==
1142w.PROJECTION&&"Lambert_Azimuthal_Equal_Area"!==w.PROJECTION||(w.long0=w.longc)}var D=.017453292519943295,E=n("./extend");A.exports=function(w,v){w=JSON.parse((","+w).replace(/\s*,\s*([A-Z_0-9]+?)(\[)/g,',["$1",').slice(1).replace(/\s*,\s*([A-Z_0-9]+?)\]/g,',"$1"]'));var C=w.shift(),K=w.shift();w.unshift(["name",K]);w.unshift(["type",C]);w.unshift("output");C={};return z(w,C),G(C.output),E(v,C.output)}},{"./extend":33}],66:[function(n,A,q){function z(E){var w=E.easting,v=E.zoneNumber;if(0>v||60<v)return null;
1143var C=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562));var K=E.northing;"N">E.zoneLetter&&(K-=1E7);K=K/.9996/6367449.145945056;var N=K+(3*C/2-27*C*C*C/32)*Math.sin(2*K)+(21*C*C/16-55*C*C*C*C/32)*Math.sin(4*K)+151*C*C*C/96*Math.sin(6*K);var J=6378137/Math.sqrt(1-.00669438*Math.sin(N)*Math.sin(N));C=Math.tan(N)*Math.tan(N);K=.006739496752268451*Math.cos(N)*Math.cos(N);var V=6335439.32722994/Math.pow(1-.00669438*Math.sin(N)*Math.sin(N),1.5);w=(w-5E5)/(.9996*J);J=N-J*Math.tan(N)/V*(w*w/2-(5+3*C+10*K-
11444*K*K-.06065547077041606)*w*w*w*w/24+(61+90*C+298*K+45*C*C-1.6983531815716497-3*K*K)*w*w*w*w*w*w/720);J=J/Math.PI*180;w=(w-(1+2*C+K)*w*w*w/6+(5-2*K+28*C-3*K*K+.05391597401814761+24*C*C)*w*w*w*w*w/120)/Math.cos(N);w=6*(v-1)-180+3+w/Math.PI*180;E.accuracy?(E=z({northing:E.northing+E.accuracy,easting:E.easting+E.accuracy,zoneLetter:E.zoneLetter,zoneNumber:E.zoneNumber}),E={top:E.lat,right:E.lon,bottom:J,left:w}):E={lat:J,lon:w};return E}function t(E){E%=D;return 0===E&&(E=D),E}function G(E){switch(E){case "C":var w=
114511E5;break;case "D":w=2E6;break;case "E":w=28E5;break;case "F":w=37E5;break;case "G":w=46E5;break;case "H":w=55E5;break;case "J":w=64E5;break;case "K":w=73E5;break;case "L":w=82E5;break;case "M":w=91E5;break;case "N":w=0;break;case "P":w=8E5;break;case "Q":w=17E5;break;case "R":w=26E5;break;case "S":w=35E5;break;case "T":w=44E5;break;case "U":w=53E5;break;case "V":w=62E5;break;case "W":w=7E6;break;case "X":w=79E5;break;default:w=-1}if(0<=w)return w;throw"Invalid zone letter: "+E;}var D=6;q.forward=
1146function(E,w){var v=E[1];var C=E[0];var K=Math.PI/180*v;var N=Math.PI/180*C;E=Math.floor((C+180)/6)+1;180===C&&(E=60);56<=v&&64>v&&3<=C&&12>C&&(E=32);72<=v&&84>v&&(0<=C&&9>C?E=31:9<=C&&21>C?E=33:21<=C&&33>C?E=35:33<=C&&42>C&&(E=37));var J=Math.PI/180*(6*(E-1)-180+3);C=6378137/Math.sqrt(1-.00669438*Math.sin(K)*Math.sin(K));var V=Math.tan(K)*Math.tan(K);var I=.006739496752268451*Math.cos(K)*Math.cos(K);N=Math.cos(K)*(N-J);K=.9996*(6378137*(.9983242984503243*K-.002514607064228144*Math.sin(2*K)+2.639046602129982E-6*
1147Math.sin(4*K)-3.4180461016968582E-9*Math.sin(6*K))+C*Math.tan(K)*(N*N/2+(5-V+9*I+4*I*I)*N*N*N*N/24+(61-58*V+V*V+600*I-2.2240339282485886)*N*N*N*N*N*N/720));0>v&&(K+=1E7);K=Math.round(K);N=Math.round(.9996*C*(N+(1-V+I)*N*N*N/6+(5-18*V+V*V+72*I-.39089081163157013)*N*N*N*N*N/120)+5E5);C="Z";J=(84>=v&&72<=v?C="X":72>v&&64<=v?C="W":64>v&&56<=v?C="V":56>v&&48<=v?C="U":48>v&&40<=v?C="T":40>v&&32<=v?C="S":32>v&&24<=v?C="R":24>v&&16<=v?C="Q":16>v&&8<=v?C="P":8>v&&0<=v?C="N":0>v&&-8<=v?C="M":-8>v&&-16<=v?C=
1148"L":-16>v&&-24<=v?C="K":-24>v&&-32<=v?C="J":-32>v&&-40<=v?C="H":-40>v&&-48<=v?C="G":-48>v&&-56<=v?C="F":-56>v&&-64<=v?C="E":-64>v&&-72<=v?C="D":-72>v&&-80<=v&&(C="C"),C);I=K;K=N;V=E;C=J;w=w||5;E=""+K;v=""+I;C=V+C;N=I;V=t(V);I=Math.floor(K/1E5);K=Math.floor(N/1E5)%20;N=V-1;V="AJSAJS".charCodeAt(N);N="AFAFAF".charCodeAt(N);I=V+I-1;K=N+K;J=!1;90<I&&(I=I-90+65-1,J=!0);(73===I||73>V&&73<I||(73<I||73>V)&&J)&&I++;(79===I||79>V&&79<I||(79<I||79>V)&&J)&&(I++,73===I&&I++);90<I&&(I=I-90+65-1);86<K?(K=K-86+65-
11491,J=!0):J=!1;(73===K||73>N&&73<K||(73<K||73>N)&&J)&&K++;(79===K||79>N&&79<K||(79<K||79>N)&&J)&&(K++,73===K&&K++);86<K&&(K=K-86+65-1);V=String.fromCharCode(I)+String.fromCharCode(K);return C+V+E.substr(E.length-5,w)+v.substr(v.length-5,w)};q.inverse=function(E){if((E=E.toUpperCase())&&0===E.length)throw"MGRSPoint coverting from nothing";var w;var v=E.length;for(var C,K="",N=0;!/[A-Z]/.test(w=E.charAt(N));){if(2<=N)throw"MGRSPoint bad conversion from: "+E;K+=w;N++}w=parseInt(K,10);if(0===N||N+3>v)throw"MGRSPoint bad conversion from: "+
1150E;K=E.charAt(N++);if("A">=K||"B"===K||"Y"===K||"Z"<=K||"I"===K||"O"===K)throw"MGRSPoint zone letter "+K+" not handled: "+E;C=E.substring(N,N+=2);var J=t(w);var V=C.charAt(0);for(var I="AJSAJS".charCodeAt(J-1),ia=1E5,ra=!1;I!==V.charCodeAt(0);){if(I++,73===I&&I++,79===I&&I++,90<I){if(ra)throw"Bad character: "+V;I=65;ra=!0}ia+=1E5}V=ia;C=C.charAt(1);if("V"<C)throw"MGRSPoint given invalid Northing "+C;J="AFAFAF".charCodeAt(J-1);I=0;for(ia=!1;J!==C.charCodeAt(0);){if(J++,73===J&&J++,79===J&&J++,86<J){if(ia)throw"Bad character: "+
1151C;J=65;ia=!0}I+=1E5}for(J=I;J<G(K);)J+=2E6;v-=N;if(0!==v%2)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+E;var qa,Za,Na,Mb,fb;C=v/2;ia=I=0;v=(0<C&&(qa=1E5/Math.pow(10,C),Za=E.substring(N,N+C),I=parseFloat(Za)*qa,Na=E.substring(N+C),ia=parseFloat(Na)*qa),Mb=I+V,fb=ia+J,{easting:Mb,northing:fb,zoneLetter:K,zoneNumber:w,accuracy:qa});qa=z(v);return[qa.left,qa.bottom,qa.right,qa.top]};
1152q.toPoint=function(E){E=q.inverse(E);return[(E[2]+E[0])/2,(E[3]+E[1])/2]}},{}],67:[function(n,A){A.exports={name:"proj4",version:"2.2.1",description:"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",main:"lib/index.js",directories:{test:"test",doc:"docs"},scripts:{test:"./node_modules/istanbul/lib/cli.js test ./node_modules/mocha/bin/_mocha test/test.js"},repository:{type:"git",url:"git://github.com/proj4js/proj4js.git"},
1153author:"",license:"MIT",jam:{main:"dist/proj4.js",include:["dist/proj4.js","README.md","AUTHORS","LICENSE.md"]},devDependencies:{"grunt-cli":"~0.1.13",grunt:"~0.4.2","grunt-contrib-connect":"~0.6.0","grunt-contrib-jshint":"~0.8.0",chai:"~1.8.1",mocha:"~1.17.1","grunt-mocha-phantomjs":"~0.4.0",browserify:"~3.24.5","grunt-browserify":"~1.3.0","grunt-contrib-uglify":"~0.3.2",curl:"git://github.com/cujojs/curl.git",istanbul:"~0.2.4",tin:"~0.4.0"},dependencies:{mgrs:"0.0.0"}}},{}],"./includedProjections":[function(n,
1154A){A.exports=n("gWUPNW")},{}],gWUPNW:[function(n,A){var q=[n("./lib/projections/tmerc"),n("./lib/projections/utm"),n("./lib/projections/sterea"),n("./lib/projections/stere"),n("./lib/projections/somerc"),n("./lib/projections/omerc"),n("./lib/projections/lcc"),n("./lib/projections/krovak"),n("./lib/projections/cass"),n("./lib/projections/laea"),n("./lib/projections/aea"),n("./lib/projections/gnom"),n("./lib/projections/cea"),n("./lib/projections/eqc"),n("./lib/projections/poly"),n("./lib/projections/nzmg"),
1155n("./lib/projections/mill"),n("./lib/projections/sinu"),n("./lib/projections/moll"),n("./lib/projections/eqdc"),n("./lib/projections/vandg"),n("./lib/projections/aeqd")];A.exports=function(z){q.forEach(function(t){z.Proj.projections.add(t)})}},{"./lib/projections/aea":39,"./lib/projections/aeqd":40,"./lib/projections/cass":41,"./lib/projections/cea":42,"./lib/projections/eqc":43,"./lib/projections/eqdc":44,"./lib/projections/gnom":46,"./lib/projections/krovak":47,"./lib/projections/laea":48,"./lib/projections/lcc":49,
1156"./lib/projections/mill":52,"./lib/projections/moll":53,"./lib/projections/nzmg":54,"./lib/projections/omerc":55,"./lib/projections/poly":56,"./lib/projections/sinu":57,"./lib/projections/somerc":58,"./lib/projections/stere":59,"./lib/projections/sterea":60,"./lib/projections/tmerc":61,"./lib/projections/utm":62,"./lib/projections/vandg":63}]},{},[35])(35)});
1157(function(f,n){"object"===typeof module&&"object"===typeof module.exports?module.exports=f.document?n(f,!0):function(A){if(!A.document)throw Error("jQuery requires a window with a document");return n(A)}:n(f)})("undefined"!==typeof window?window:this,function(f,n){function A(k,p,u){u=u||rc;var y,H=u.createElement("script");H.text=k;if(p)for(y in Ul)(k=p[y]||p.getAttribute&&p.getAttribute(y))&&H.setAttribute(y,k);
1157u.head.appendChild(H).parentNode.removeChild(H)}function q(k){return null==k?k+"":"object"===
1158typeof k||"function"===typeof k?Cd[Hd.call(k)]||"object":typeof k}function z(k){var p=!!k&&"length"in k&&k.length,u=q(k);return Wb(k)||cg(k)?!1:"array"===u||0===p||"number"===typeof p&&0<p&&p-1 in k}function t(k,p){return k.nodeName&&k.nodeName.toLowerCase()===p.toLowerCase()}function G(k,p,u){return Wb(p)?B.grep(k,function(y,H){return!!p.call(y,H,y)!==u}):p.nodeType?B.grep(k,function(y){return y===p!==u}):"string"!==typeof p?B.grep(k,function(y){return-1<xh.call(p,y)!==u}):B.filter(p,k,u)}function D(k,
1159p){for(;(k=k[p])&&1!==k.nodeType;);return k}function E(k){var p={};B.each(k.match(Hf)||[],function(u,y){p[y]=!0});return p}function w(k){return k}function v(k){throw k;}function C(k,p,u,y){var H;try{k&&Wb(H=k.promise)?H.call(k).done(p).fail(u):k&&Wb(H=k.then)?H.call(k,p,u):p.apply(void 0,[k].slice(y))}catch(L){u.apply(void 0,[L])}}function K(){rc.removeEventListener("DOMContentLoaded",K);f.removeEventListener("load",K);B.ready()}function N(k,p){return p.toUpperCase()}function J(k){return k.replace(rj,
1160"ms-").replace(Sg,N)}function V(){this.expando=B.expando+V.uid++}function I(k,p,u){if(void 0===u&&1===k.nodeType)if(u="data-"+p.replace(tj,"-$\x26").toLowerCase(),u=k.getAttribute(u),"string"===typeof u){try{var y=u;u="true"===y?!0:"false"===y?!1:"null"===y?null:y===+y+""?+y:sj.test(y)?JSON.parse(y):y}catch(H){}ee.set(k,p,u)}else u=void 0;return u}function ia(k,p,u,y){var H,L=20,R=y?function(){return y.cur()}:function(){return B.css(k,p,"")},aa=R(),U=u&&u[3]||(B.cssNumber[p]?"":"px"),X=k.nodeType&&
1161(B.cssNumber[p]||"px"!==U&&+aa)&&xg.exec(B.css(k,p));if(X&&X[3]!==U){aa/=2;U=U||X[3];for(X=+aa||1;L--;)B.style(k,p,X+U),0>=(1-H)*(1-(H=R()/aa||.5))&&(L=0),X/=H;X*=2;B.style(k,p,X+U);u=u||[]}if(u){X=+X||+aa||0;var la=u[1]?X+(u[1]+1)*u[2]:+u[2];y&&(y.unit=U,y.start=X,y.end=la)}return la}function ra(k,p){for(var u,y,H=[],L=0,R=k.length;L<R;L++)if(y=k[L],y.style)if(u=y.style.display,p){if("none"===u&&(H[L]=pb.get(y,"display")||null,H[L]||(y.style.display="")),""===y.style.display&&Ge(y)){u=L;var aa=y.ownerDocument;
1162y=y.nodeName;var U=Hb[y];U||(aa=aa.body.appendChild(aa.createElement(y)),U=B.css(aa,"display"),aa.parentNode.removeChild(aa),"none"===U&&(U="block"),Hb[y]=U);aa=U;H[u]=aa}}else"none"!==u&&(H[L]="none",pb.set(y,"display",u));for(L=0;L<R;L++)null!=H[L]&&(k[L].style.display=H[L]);return k}function qa(k,p){var u="undefined"!==typeof k.getElementsByTagName?k.getElementsByTagName(p||"*"):"undefined"!==typeof k.querySelectorAll?k.querySelectorAll(p||"*"):[];return void 0===p||p&&t(k,p)?B.merge([k],u):u}
1163function Za(k,p){for(var u=0,y=k.length;u<y;u++)pb.set(k[u],"globalEval",!p||pb.get(p[u],"globalEval"))}function Na(k,p,u,y,H){for(var L,R,aa,U=p.createDocumentFragment(),X=[],la=0,ta=k.length;la<ta;la++)if((L=k[la])||0===L)if("object"===q(L))B.merge(X,L.nodeType?[L]:L);else if(Tg.test(L)){R=R||U.appendChild(p.createElement("div"));aa=(vj.exec(L)||["",""])[1].toLowerCase();aa=cf[aa]||cf._default;R.innerHTML=aa[1]+B.htmlPrefilter(L)+aa[2];for(aa=aa[0];aa--;)R=R.lastChild;B.merge(X,R.childNodes);R=
1164U.firstChild;R.textContent=""}else X.push(p.createTextNode(L));U.textContent="";for(la=0;L=X[la++];)if(y&&-1<B.inArray(L,y))H&&H.push(L);else if(k=Ug(L),R=qa(U.appendChild(L),"script"),k&&Za(R),u)for(aa=0;L=R[aa++];)wj.test(L.type||"")&&u.push(L);return U}function Mb(){return!0}function fb(){return!1}function Nb(k,p){a:{try{var u=rc.activeElement;break a}catch(y){}u=void 0}return k===u===("focus"===p)}function Oa(k,p,u,y,H,L){var R;if("object"===typeof p){"string"!==typeof u&&(y=y||u,u=void 0);for(R in p)Oa(k,
1165R,u,y,p[R],L);return k}null==y&&null==H?(H=u,y=u=void 0):null==H&&("string"===typeof u?(H=y,y=void 0):(H=y,y=u,u=void 0));if(!1===H)H=fb;else if(!H)return k;if(1===L){var aa=H;H=function(U){B().off(U);return aa.apply(this,arguments)};H.guid=aa.guid||(aa.guid=B.guid++)}return k.each(function(){B.event.add(this,p,H,y,u)})}function ke(k,p,u){u?(pb.set(k,p,!1),B.event.add(k,p,{namespace:!1,handler:function(y){var H=pb.get(this,p);if(y.isTrigger&1&&this[p])if(H.length)(B.event.special[p]||{}).delegateType&&
1166y.stopPropagation();else{H=Gd.call(arguments);pb.set(this,p,H);var L=u(this,p);this[p]();var R=pb.get(this,p);H!==R||L?pb.set(this,p,!1):R={};if(H!==R)return y.stopImmediatePropagation(),y.preventDefault(),R&&R.value}else H.length&&(pb.set(this,p,{value:B.event.trigger(B.extend(H[
11660],B.Event.prototype),H.slice(1),this)}),y.stopImmediatePropagation())}})):void 0===pb.get(k,p)&&B.event.add(k,p,Mb)}function Jc(k,p){return t(k,"table")&&t(11!==p.nodeType?p:p.firstChild,"tr")?B(k).children("tbody")[0]||
1167k:k}function pf(k){k.type=(null!==k.getAttribute("type"))+"/"+k.type;return k}function Ud(k){"true/"===(k.type||"").slice(0,5)?k.type=k.type.slice(5):k.removeAttribute("type");return k}function ce(k,p){var u,y,H;if(1===p.nodeType){if(pb.hasData(k)){var L=pb.get(k);if(H=L.events)for(y in pb.remove(p,"handle events"),H)for(L=0,u=H[y].length;L<u;L++)B.event.add(p,y,H[y][L])}ee.hasData(k)&&(k=ee.access(k),k=B.extend({},k),ee.set(p,k))}}function Nc(k,p,u,y){p=vd(p);var H,L=0,R=k.length,aa=R-1,U=p[0],X=
1168Wb(U);if(X||1<R&&"string"===typeof U&&!Sc.checkClone&&ji.test(U))return k.each(function(Vc){var vb=k.eq(Vc);X&&(p[0]=U.call(this,Vc,vb.html()));Nc(vb,p,u,y)});if(R){var la=Na(p,k[0].ownerDocument,!1,k,y);var ta=la.firstChild;1===la.childNodes.length&&(la=ta);if(ta||y){ta=B.map(qa(la,"script"),pf);for(H=ta.length;L<R;L++){var Ja=la;L!==aa&&(Ja=B.clone(Ja,!0,!0),H&&B.merge(ta,qa(Ja,"script")));u.call(k[L],Ja,L)}if(H)for(la=ta[ta.length-1].ownerDocument,B.map(ta,Ud),L=0;L<H;L++)Ja=ta[L],wj.test(Ja.type||
1169"")&&!pb.access(Ja,"globalEval")&&B.contains(la,Ja)&&(Ja.src&&"module"!==(Ja.type||"").toLowerCase()?B._evalUrl&&!Ja.noModule&&B._evalUrl(Ja.src,{nonce:Ja.nonce||Ja.getAttribute("nonce")},la):A(Ja.textContent.replace(Jf,""),Ja,la))}}return k}function Ee(k,p,u){for(var y=p?B.filter(p,k):k,H=0;null!=(p=y[H]);H++)u||1!==p.nodeType||B.cleanData(qa(p)),p.parentNode&&(u&&Ug(p)&&Za(qa(p,"script")),p.parentNode.removeChild(p));return k}function td(k,p,u){var y=k.style;if(u=u||Wg(k)){var H=u.getPropertyValue(p)||
1170u[p];""!==H||Ug(k)||(H=B.style(k,p));if(!Sc.pixelBoxStyles()&&Id.test(H)&&ub.test(p)){k=y.width;p=y.minWidth;var L=y.maxWidth;y.minWidth=y.maxWidth=y.width=H;H=u.width;y.width=k;y.minWidth=p;y.maxWidth=L}}return void 0!==H?H+"":H}function Pe(k,p){return{get:function(){if(k())delete this.get;else return(this.get=p).apply(this,arguments)}}}function Tb(k){var p=B.cssProps[k]||yj[k];if(p)return p;if(k in xj)return k;a:{p=k;for(var u=p[0].toUpperCase()+p.slice(1),y=Uc.length;y--;)if(p=Uc[y]+u,p in xj)break a;
1171p=void 0}return yj[k]=p||k}function de(k,p,u){return(k=xg.exec(p))?Math.max(0,k[2]-(u||0))+(k[3]||"px"):p}function Qe(k,p,u,y,H,L){var R="width"===p?1:0,aa=0,U=0;if(u===(y?"border":"content"))return 0;for(;4>R;R+=2)"margin"===u&&(U+=B.css(k,u+ma[R],!0,H)),y?("content"===u&&(U-=B.css(k,"padding"+ma[R],!0,H)),"margin"!==u&&(U-=B.css(k,"border"+ma[R]+"Width",!0,H))):(U+=B.css(k,"padding"+ma[R],!0,H),"padding"!==u?U+=B.css(k,"border"+ma[R]+"Width",!0,H):aa+=B.css(k,"border"+ma[R]+"Width",!0,H));!y&&0<=
1172L&&(U+=Math.max(0,Math.ceil(k["offset"+p[0].toUpperCase()+p.slice(1)]-L-U-aa-.5))||0);return U}function Bd(k,p,u){var y=Wg(k),H=(!Sc.boxSizingReliable()||u)&&"border-box"===B.css(k,"boxSizing",!1,y),L=H,R=td(k,p,y),aa="offset"+p[0].toUpperCase()+p.slice(1);if(Id.test(R)){if(!u)return R;R="auto"}(!Sc.boxSizingReliable()&&H||!Sc.reliableTrDimensions()&&t(k,"tr")||"auto"===R||!parseFloat(R)&&"inline"===B.css(k,"display",!1,y))&&k.getClientRects().length&&(H="border-box"===B.css(k,"boxSizing",!1,y),(L=
1173aa in k)&&(R=k[aa]));R=parseFloat(R)||0;return R+Qe(k,p,u||(H?"border":"content"),L,y,R)+"px"}function rd(k,p,u,y,H){return new rd.prototype.init(k,p,u,y,H)}function bf(){Ch&&(!1===rc.hidden&&f.requestAnimationFrame?f.requestAnimationFrame(bf):f.setTimeout(bf,B.fx.interval),B.fx.tick())}function ha(){f.setTimeout(function(){yg=void 0});return yg=Date.now()}function pa(k,p){var u=0,y={height:k};for(p=p?1:0;4>u;u+=2-p){var H=ma[u];y["margin"+H]=y["padding"+H]=k}p&&(y.opacity=y.width=k);return y}function Pa(k,
1174p,u){for(var y,H=(ic.tweeners[p]||[]).concat(ic.tweeners["*"]),L=0,R=H.length;L<R;L++)if(y=H[L].call(u,p,k))return y}function ob(k,p){var u,y;for(u in k){var H=J(u);var L=p[H];var R=k[u];Array.isArray(R)&&(L=R[1],R=k[u]=R[0]);u!==H&&(k[H]=R,delete k[u]);if((y=B.cssHooks[H])&&"expand"in y)for(u in R=y.expand(R),delete k[H],R)u in k||(k[u]=R[u],p[u]=L);else p[H]=L}}function ic(k,p,u){var y,H=0,L=ic.prefilters.length,R=B.Deferred().always(function(){delete aa.elem}),aa=function(){if(y)return!1;var X=
1175yg||ha();X=Math.max(0,U.startTime+U.duration-X);for(var la=1-(X/U.duration||0),ta=0,Ja=U.tweens.length;ta<Ja;ta++)U.tweens[ta].run(la);R.notifyWith(k,[U,la,X]);if(1>la&&Ja)return X;Ja||R.notifyWith(k,[U,1,0]);R.resolveWith(k,[U]);return!1},U=R.promise({elem:k,props:B.extend({},p),opts:B.extend(!0,{specialEasing:{},easing:B.easing._default},u),originalProperties:p,originalOptions:u,startTime:yg||ha(),duration:u.duration,tweens:[],createTween:function(X,la){X=B.Tween(k,U.opts,X,la,U.opts.specialEasing[X]||
1176U.opts.easing);U.tweens.push(X);return X},stop:function(X){var la=0,ta=X?U.tweens.length:0;if(y)return this;for(y=!0;la<ta;la++)U.tweens[la].run(1);X?(R.notifyWith(k,[U,1,0]),R.resolveWith(k,[U,X])):R.rejectWith(k,[U,X]);return this}});u=U.props;for(ob(u,U.opts.specialEasing);H<L;H++)if(p=ic.prefilters[H].call(U,k,u,U.opts))return Wb(p.stop)&&(B._queueHooks(U.elem,U.opts.queue).stop=p.stop.bind(p)),p;B.map(u,Pa,U);Wb(U.opts.start)&&U.opts.start.call(k,U);U.progress(U.opts.progress).done(U.opts.done,
1177U.opts.complete).fail(U.opts.fail).always(U.opts.always);B.fx.timer(B.extend(aa,{elem:k,anim:U,queue:U.opts.queue}));return U}function ud(k){return(k.match(Hf)||[]).join(" ")}function Vd(k){return k.getAttribute&&k.getAttribute("class")||""}function Fd(k){return Array.isArray(k)?k:"string"===typeof k?k.match(Hf)||[]:[]}function ag(k,p,u,y){var H;
1177if(Array.isArray(p))B.each(p,function(L,R){u||wf.test(k)?y(k,R):ag(k+"["+("object"===typeof R&&null!=R?L:"")+"]",R,u,y)});else if(u||"object"!==q(p))y(k,
1178p);else for(H in p)ag(k+"["+H+"]",p[H],u,y)}function Dk(k){return function(p,u){"string"!==typeof p&&(u=p,p="*");var y=0,H=p.toLowerCase().match(Hf)||[];if(Wb(u))for(;p=H[y++];)"+"===p[0]?(p=p.slice(1)||"*",(k[p]=k[p]||[]).unshift(u)):(k[p]=k[p]||[]).push(u)}}function oj(k,p,u,y){function H(aa){var U;L[aa]=!0;B.each(k[aa]||[],function(X,la){X=la(p,u,y);if("string"===typeof X&&!R&&!L[X])return p.dataTypes.unshift(X),H(X),!1;if(R)return!(U=X)});return U}var L={},R=k===qe;return H(p.dataTypes[0])||!L["*"]&&
1179H("*")}function le(k,p){var u,y,H=B.ajaxSettings.flatOptions||{};for(u in p)void 0!==p[u]&&((H[u]?k:y||={})[u]=p[u]);y&&B.extend(!0,k,y);return k}function bg(k,p,u){for(var y,H,L,R,aa=k.contents,U=k.dataTypes;"*"===U[0];)U.shift(),void 0===y&&(y=k.mimeType||p.getResponseHeader("Content-Type"));if(y)for(H in aa)if(aa[H]&&aa[H].test(y)){U.unshift(H);break}if(U[0]in u)L=U[0];else{for(H in u){if(!U[0]||k.converters[H+" "+U[0]]){L=H;break}R||=H}L=L||R}if(L)return L!==U[0]&&U.unshift(L),u[L]}function Fe(k,
1180p,u,y){var H,L,R={},aa=k.dataTypes.slice();if(aa[1])for(X in k.converters)R[X.toLowerCase()]=k.converters[X];for(L=aa.shift();L;){k.responseFields[L]&&(u[k.responseFields[L]]=p);!U&&y&&k.dataFilter&&(p=k.dataFilter(p,k.dataType));var U=L;if(L=aa.shift())if("*"===L)L=U;else if("*"!==U&&U!==L){var X=R[U+" "+L]||R["* "+L];if(!X)for(H in R){var la=H.split(" ");if(la[1]===L&&(X=R[U+" "+la[0]]||R["* "+la[0]])){!0===X?X=R[H]:!0!==R[H]&&(L=la[0],aa.unshift(la[1]));break}}if(!0!==X)if(X&&k.throws)p=X(p);else try{p=
1181X(p)}catch(ta){return{state:"parsererror",error:X?ta:"No conversion from "+U+" to "+L}}}}return{state:"success",data:p}}var qc=[],pj=Object.getPrototypeOf,Gd=qc.slice,vd=qc.flat?function(k){return qc.flat.call(k)}:function(k){return qc.concat.apply([],k)},ii=qc.push,xh=qc.indexOf,Cd={},Hd=Cd.toString,Gf=Cd.hasOwnProperty,yh=Gf.toString,me=yh.call(Object),Sc={},Wb=function(k){return"function"===typeof k&&"number"!==typeof k.nodeType&&"function"!==typeof k.item},cg=function(k){return null!=k&&k===k.window},
1182rc=f.document,Ul={type:!0,src:!0,nonce:!0,noModule:!0},B=function(k,p){return new B.fn.init(k,p)};B.fn=B.prototype={jquery:"3.6.0",constructor:B,length:0,toArray:function(){return Gd.call(this)},get:function(k){return null==k?Gd.call(this):0>k?this[k+this.length]:this[k]},pushStack:function(k){k=B.merge(this.constructor(),k);k.prevObject=this;return k},each:function(k){return B.each(this,k)},map:function(k){return this.pushStack(B.map(this,function(p,u){return k.call(p,u,p)}))},slice:function(){return this.pushStack(Gd.apply(this,
1183arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(B.grep(this,function(k,p){return(p+1)%2}))},odd:function(){return this.pushStack(B.grep(this,function(k,p){return p%2}))},eq:function(k){var p=this.length;k=+k+(0>k?p:0);return this.pushStack(0<=k&&k<p?[this[k]]:[])},end:function(){return this.prevObject||this.constructor()},push:ii,sort:qc.sort,splice:qc.splice};B.extend=B.fn.extend=function(){var k,p,u,y=arguments[0]||{},H=
11841,L=arguments.length,R=!1;"boolean"===typeof y&&(R=y,y=arguments[H]||{},H++);"object"===typeof y||Wb(y)||(y={});H===L&&(y=this,H--);for(;H<L;H++)if(null!=(k=arguments[H]))for(p in k){var aa=k[p];if("__proto__"!==p&&y!==aa)if(R&&aa&&(B.isPlainObject(aa)||(u=Array.isArray(aa)))){var U=y[p];U=u&&!Array.isArray(U)?[]:u||B.isPlainObject(U)?U:{};u=!1;y[p]=B.extend(R,U,aa)}else void 0!==aa&&(y[p]=aa)}return y};B.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(k){throw Error(k);
1185},noop:function(){},isPlainObject:function(k){if(!k||"[object Object]"!==Hd.call(k))return!1;k=pj(k);if(!k)return!0;k=Gf.call(k,"constructor")&&k.constructor;return"function"===typeof k&&yh.call(k)===me},isEmptyObject:function(k){for(var p in k)return!1;return!0},globalEval:function(k,p,u){A(k,{nonce:p&&p.nonce},u)},each:function(k,p){var u,y=0;if(z(k))for(u=k.length;y<u&&!1!==p.call(k[y],y,k[y]);y++);else for(y in k)if(!1===p.call(k[y],y,k[y]))break;return k},makeArray:function(k,p){p=p||[];null!=
1186k&&(z(Object(k))?B.merge(p,"string"===typeof k?[k]:k):ii.call(p,k));return p},inArray:function(k,p,u){return null==p?-1:xh.call(p,k,u)},merge:function(k,p){for(var u=+p.length,y=0,H=k.length;y<u;y++)k[H++]=p[y];k.length=H;return k},grep:function(k,p,u){for(var y=[],H=0,L=k.length,R=!u;H<L;H++)u=!p(k[H],H),u!==R&&y.push(k[H]);return y},map:function(k,p,u){var y,H=0,L=[];if(z(k))for(y=k.length;H<y;H++){var R=p(k[H],H,u);null!=R&&L.push(R)}else for(H in k)R=p(k[H],H,u),null!=R&&L.push(R);return vd(L)},
1187guid:1,support:Sc});"function"===typeof Symbol&&(B.fn[Symbol.iterator]=qc[Symbol.iterator]);B.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(k,p){Cd["[object "+p+"]"]=p.toLowerCase()});var dg=function(k){function p(Q,W,T,fa){var oa,za,Da,xb,xa=W&&W.ownerDocument;var kb=W?W.nodeType:9;T=T||[];if("string"!==typeof Q||!Q||1!==kb&&9!==kb&&11!==kb)return T;if(!fa&&(kg(W),W=W||Ob,sd)){if(11!==kb&&(xb=Ej.exec(Q)))if(oa=xb[1])if(9===kb)if(za=W.getElementById(oa)){if(za.id===
1188oa)return T.push(za),T}else return T;else{if(xa&&(za=xa.getElementById(oa))&&Ag(W,za)&&za.id===oa)return T.push(za),T}else{if(xb[2])return Ue.apply(T,W.getElementsByTagName(Q)),T;if((oa=xb[3])&&Fc.getElementsByClassName&&W.getElementsByClassName)return Ue.apply(T,W.getElementsByClassName(oa)),T}if(!(!Fc.qsa||Hh[Q+" "]||Wc&&Wc.test(Q)||1===kb&&"object"===W.nodeName.toLowerCase())){oa=Q;xa=W;if(1===kb&&(si.test(Q)||jg.test(Q))){xa=ti.test(Q)&&ta(W.parentNode)||W;xa===W&&Fc.scope||((Da=W.getAttribute("id"))?
1189Da=Da.replace(Fj,Gj):W.setAttribute("id",Da=od));oa=Jh(Q);for(kb=oa.length;kb--;)oa[kb]=(Da?"#"+Da:":scope")+" "+Vc(oa[kb]);oa=oa.join(",")}try{return Ue.apply(T,xa.querySelectorAll(oa)),T}catch(Xb){Hh(Q,!0)}finally{Da===od&&W.removeAttribute("id")}}}return Qk(Q.replace(Ih,"$1"),W,T,fa)}function u(){function Q(T,fa){W.push(T+" ")>db.cacheLength&&delete Q[W.shift()];return Q[T+" "]=fa}var W=[];return Q}function y(Q){Q[od]=!0;return Q}function H(Q){var W=Ob.createElement("fieldset");try{return!!Q(W)}catch(T){return!1}finally{W.parentNode&&
1190W.parentNode.removeChild(W)}}function L(Q,W){Q=Q.split("|");for(var T=Q.length;T--;)db.attrHandle[Q[T]]=W}function R(Q,W){var T=W&&Q,fa=T&&1===Q.nodeType&&1===W.nodeType&&Q.sourceIndex-W.sourceIndex;if(fa)return fa;if(T)for(;T=T.nextSibling;)if(T===W)return-1;return Q?1:-1}function aa(Q){return function(W){return"input"===W.nodeName.toLowerCase()&&W.type===Q}}function U(Q){return function(W){var T=W.nodeName.toLowerCase();return("input"===T||"button"===T)&&W.type===Q}}function X(Q){return function(W){return"form"in
1191W?W.parentNode&&!1===W.disabled?"label"in W?"label"in W.parentNode?W.parentNode.disabled===Q:W.disabled===Q:W.isDisabled===Q||W.isDisabled!==!Q&&Af(W)===Q:W.disabled===Q:"label"in W?W.disabled===Q:!1}}function la(Q){return y(function(W){W=+W;return y(function(T,fa){for(var oa,za=Q([],T.length,W),Da=za.length;Da--;)T[oa=za[Da]]&&(T[oa]=!(fa[oa]=T[oa]))})})}function ta(Q){return Q&&"undefined"!==typeof Q.getElementsByTagName&&Q}function Ja(){}function Vc(Q){for(var W=0,T=Q.length,fa="";W<T;W++)fa+=
1192Q[W].value;return fa}function vb(Q,W,T){var fa=W.dir,oa=W.next,za=oa||fa,Da=T&&"parentNode"===za,xb=Bj++;return W.first?function(xa,kb,Xb){for(;xa=xa[fa];)if(1===xa.nodeType||Da)return Q(xa,kb,Xb);return!1}:function(xa,kb,Xb){var wb,Pc=[Ma,xb];if(Xb)for(;xa=xa[fa];){if((1===xa.nodeType||Da)&&Q(xa,kb,Xb))return!0}else for(;xa=xa[fa];)if(1===xa.nodeType||Da){var Xc=xa[od]||(xa[od]={});Xc=Xc[xa.uniqueID]||(Xc[xa.uniqueID]={});if(oa&&oa===xa.nodeName.toLowerCase())xa=xa[fa]||xa;else{if((wb=Xc[za])&&wb[0]===
1193Ma&&wb[1]===xb)return Pc[2]=wb[2];Xc[za]=Pc;if(Pc[2]=Q(xa,kb,Xb))return!0}}return!1}}function nd(Q){return 1<Q.length?function(W,T,fa){for(var oa=Q.length;oa--;)if(!Q[oa](W,T,fa))return!1;return!0}:Q[0]}function Cb(Q,W,T,fa,oa){for(var za,Da=[],xb=0,xa=Q.length,kb=null!=W;xb<xa;xb++)if(za=Q[xb])if(!T||T(za,fa,oa))Da.push(za),kb&&W.push(xb);return Da}function Ie(Q,W,T,fa,oa,za){fa&&!fa[od]&&(fa=Ie(fa));oa&&!oa[od]&&(oa=Ie(oa,za));return y(function(Da,xb,xa,kb){var Xb,wb=[],Pc=[],Xc=xb.length,xd;if(!(xd=
1194Da)){xd=W||"*";for(var yb=xa.nodeType?[xa]:xa,re=[],kd=0,gf=yb.length;kd<gf;kd++)p(xd,yb[kd],re);xd=re}xd=!Q||!Da&&W?xd:Cb(xd,wb,Q,xa,kb);yb=T?oa||(Da?Q:Xc||fa)?[]:xb:xd;T&&T(xd,yb,xa,kb);if(fa){var We=Cb(yb,Pc);fa(We,[],xa,kb);for(xa=We.length;xa--;)if(Xb=We[xa])yb[Pc[xa]]=!(xd[Pc[xa]]=Xb)}if(Da){if(oa||Q){if(oa){We=[];for(xa=yb.length;xa--;)(Xb=yb[xa])&&We.push(xd[xa]=Xb);oa(null,yb=[],We,kb)}for(xa=yb.length;xa--;)(Xb=yb[xa])&&-1<(We=oa?zf(Da,Xb):wb[xa])&&(Da[We]=!(xb[We]=Xb))}}else yb=Cb(yb===
1195xb?yb.splice(Xc,yb.length):yb),oa?oa(null,xb,yb,kb):Ue.apply(xb,yb)})}function Ab(Q){var W,T,fa=Q.length,oa=db.relative[Q[0].type];var za=oa||db.relative[" "];for(var Da=oa?1:0,xb=vb(function(Xb){return Xb===W},za,!0),xa=vb(function(Xb){return-1<zf(W,Xb)},za,!0),kb=[function(Xb,wb,Pc){Xb=!oa&&(Pc||wb!==ac)||((W=wb).nodeType?xb(Xb,wb,Pc):xa(Xb,wb,Pc));W=null;return Xb}];Da<fa;Da++)if(za=db.relative[Q[Da].type])kb=[vb(nd(kb),za)];else{za=db.filter[Q[Da].type].apply(null,Q[Da].matches);if(za[od]){for(T=
1196++Da;T<fa&&!db.relative[Q[T].type];T++);return Ie(1<Da&&nd(kb),1<Da&&Vc(Q.slice(0,Da-1).concat({value:" "===Q[Da-2].type?"*":""})).replace(Ih,"$1"),za,Da<T&&Ab(Q.slice(Da,T)),T<fa&&Ab(Q=Q.slice(T)),T<fa&&Vc(Q))}kb.push(za)}return nd(kb)}function Jd(Q,W){var T=0<W.length,fa=0<Q.length,oa=function(za,Da,xb,xa,kb){var Xb,wb,Pc=0,Xc="0",xd=za&&[],yb=[],re=ac,kd=za||fa&&db.find.TAG("*",kb),gf=Ma+=null==re?1:Math.random()||.1,We=kd.length;for(kb&&(ac=Da==Ob||Da||kb);Xc!==We&&null!=(Xb=kd[Xc]);Xc++){if(fa&&
1197Xb){var vi=0;Da||Xb.ownerDocument==Ob||(kg(Xb),xb=!sd);for(;wb=Q[vi++];)if(wb(Xb,Da||Ob,xb)){xa.push(Xb);break}kb&&(Ma=gf)}T&&((Xb=!wb&&Xb)&&Pc--,za&&xd.push(Xb))}Pc+=Xc;if(T&&Xc!==Pc){for(vi=0;wb=W[vi++];)wb(xd,yb,Da,xb);if(za){if(0<Pc)for(;Xc--;)xd[Xc]||yb[Xc]||(yb[Xc]=Ok.call(xa));yb=Cb(yb)}Ue.apply(xa,yb);kb&&!za&&0<yb.length&&1<Pc+W.length&&p.uniqueSort(xa)}kb&&(Ma=gf,ac=re);return xd};return T?y(oa):oa}
1197var fe,ac,Oc,Je,Ob,Ka,sd,Wc,Qd,ah,Ag,od="sizzle"+1*new Date,Te=k.document,Ma=0,Bj=0,Mk=u(),
1198Nk=u(),bh=u(),Hh=u(),Ke=function(Q,W){Q===W&&(Je=!0);return 0},Sf={}.hasOwnProperty,df=[],Ok=df.pop,Pk=df.push,Ue=df.push,qi=df.slice,zf=function(Q,W){for(var T=0,fa=Q.length;T<fa;T++)if(Q[T]===W)return T;return-1},ri=RegExp("[\\x20\\t\\r\\n\\f]+","g"),Ih=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),ig=RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),jg=RegExp("^[\\x20\\t\\r\\n\\f]*([\x3e+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),si=RegExp("[\\x20\\t\\r\\n\\f]|\x3e"),
1199Cj=RegExp(":((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)"),
1200$l=RegExp("^(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+$"),ef={ID:RegExp("^#((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)"),CLASS:RegExp("^\\.((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)"),TAG:RegExp("^((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+|[*])"),ATTR:RegExp("^\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\]"),
1201PSEUDO:RegExp("^:((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)"),
1202CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[\x3e+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?\x3d[^-]|$)",
1203"i")},Dj=/HTML$/i,ff=/^(?:input|select|textarea|button)$/i,Tf=/^h\d$/i,Sa=/^[^{]+\{\s*\[native \w/,Ej=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ti=/[+~]/,pd=RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),Mf=function(Q,W){Q="0x"+Q.slice(1)-65536;return W?W:0>Q?String.fromCharCode(Q+65536):String.fromCharCode(Q>>10|55296,Q&1023|56320)},Fj=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Gj=function(Q,W){return W?"\x00"===Q?"\ufffd":Q.slice(0,-1)+"\\"+Q.charCodeAt(Q.length-1).toString(16)+
1204" ":"\\"+Q},Ve=function(){kg()},Af=vb(function(Q){return!0===Q.disabled&&"fieldset"===Q.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Ue.apply(df=qi.call(Te.childNodes),Te.childNodes),df[Te.childNodes.length].nodeType}
1204catch(Q){Ue={apply:df.length?function(W,T){Pk.apply(W,qi.call(T))}:function(W,T){for(var fa=W.length,oa=0;W[fa++]=T[oa++];);W.length=fa-1}}}var Fc=p.support={};var Hj=p.isXML=function(Q){var W=Q&&(Q.ownerDocument||Q).documentElement;return!Dj.test(Q&&Q.namespaceURI||
1205W&&W.nodeName||"HTML")};var kg=p.setDocument=function(Q){var W;Q=Q?Q.ownerDocument||Q:Te;if(Q==Ob||9!==Q.nodeType||!Q.documentElement)return Ob;Ob=Q;Ka=Ob.documentElement;sd=!Hj(Ob);Te!=Ob&&(W=Ob.defaultView)&&W.top!==W&&(W.addEventListener?W.addEventListener("unload",Ve,!1):W.attachEvent&&W.attachEvent("onunload",Ve));Fc.scope=H(function(T){Ka.appendChild(T).appendChild(Ob.createElement("div"));return"undefined"!==typeof T.querySelectorAll&&!T.querySelectorAll(":scope fieldset div").length});Fc.attributes=
1206H(function(T){T.className="i";return!T.getAttribute("className")});Fc.getElementsByTagName=H(function(T){T.appendChild(Ob.createComment(""));return!T.getElementsByTagName("*").length});Fc.getElementsByClassName=Sa.test(Ob.getElementsByClassName);Fc.getById=H(function(T){Ka.appendChild(T).id=od;return!Ob.getElementsByName||!Ob.getElementsByName(od).length});Fc.getById?(db.filter.ID=function(T){var fa=T.replace(pd,Mf);return function(oa){return oa.getAttribute("id")===fa}},db.find.ID=function(T,fa){if("undefined"!==
1207typeof fa.getElementById&&sd)return(T=fa.getElementById(T))?[T]:[]}):(db.filter.ID=function(T){var fa=T.replace(pd,Mf);return function(oa){return(oa="undefined"!==typeof oa.getAttributeNode&&oa.getAttributeNode("id"))&&oa.value===fa}},db.find.ID=function(T,fa){if("undefined"!==typeof fa.getElementById&&sd){var oa,za=fa.getElementById(T);if(za){if((oa=za.getAttributeNode("id"))&&oa.value===T)return[za];var Da=fa.getElementsByName(T);for(fa=0;za=Da[fa++];)if((oa=za.getAttributeNode("id"))&&oa.value===
1208T)return[za]}return[]}});db.find.TAG=Fc.getElementsByTagName?function(T,fa){if("undefined"!==typeof fa.getElementsByTagName)return fa.getElementsByTagName(T);if(Fc.qsa)return fa.querySelectorAll(T)}:function(T,fa){var oa=[],za=0;fa=fa.getElementsByTagName(T);if("*"===T){for(;T=fa[za++];)1===T.nodeType&&oa.push(T);return oa}return fa};db.find.CLASS=Fc.getElementsByClassName&&function(T,fa){if("undefined"!==typeof fa.getElementsByClassName&&sd)return fa.getElementsByClassName(T)};Qd=[];Wc=[];if(Fc.qsa=
1209Sa.test(Ob.querySelectorAll))H(function(T){Ka.appendChild(T).innerHTML="\x3ca id\x3d'"+od+"'\x3e\x3c/a\x3e\x3cselect id\x3d'"+od+"-\r\\' msallowcapture\x3d''\x3e\x3coption selected\x3d''\x3e\x3c/option\x3e\x3c/select\x3e";T.querySelectorAll("[msallowcapture^\x3d'']").length&&Wc.push("[*^$]\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");T.querySelectorAll("[selected]").length||Wc.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");
1210T.querySelectorAll("[id~\x3d"+od+"-]").length||Wc.push("~\x3d");var fa=Ob.createElement("input");fa.setAttribute("name","");T.appendChild(fa);T.querySelectorAll("[name\x3d'']").length||Wc.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");T.querySelectorAll(":checked").length||Wc.push(":checked");T.querySelectorAll("a#"+od+"+*").length||Wc.push(".#.+[+~]");T.querySelectorAll("\\\f");Wc.push("[\\r\\n\\f]")}),H(function(T){T.innerHTML="\x3ca href\x3d'' disabled\x3d'disabled'\x3e\x3c/a\x3e\x3cselect disabled\x3d'disabled'\x3e\x3coption/\x3e\x3c/select\x3e";
1211var fa=Ob.createElement("input");fa.setAttribute("type","hidden");T.appendChild(fa).setAttribute("name","D");T.querySelectorAll("[name\x3dd]").length&&Wc.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?\x3d");2!==T.querySelectorAll(":enabled").length&&Wc.push(":enabled",":disabled");Ka.appendChild(T).disabled=!0;2!==T.querySelectorAll(":disabled").length&&Wc.push(":enabled",":disabled");T.querySelectorAll("*,:x");Wc.push(",.*:")});(Fc.matchesSelector=Sa.test(ah=Ka.matches||Ka.webkitMatchesSelector||Ka.mozMatchesSelector||
1212Ka.oMatchesSelector||Ka.msMatchesSelector))&&H(function(T){Fc.disconnectedMatch=ah.call(T,"*");ah.call(T,"[s!\x3d'']:x");Qd.push("!\x3d",":((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?
1212:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")});
1213Wc=Wc.length&&new RegExp(Wc.join("|"));Qd=Qd.length&&new RegExp(Qd.join("|"));Ag=(W=Sa.test(Ka.compareDocumentPosition))||Sa.test(Ka.contains)?function(T,fa){var oa=9===T.nodeType?T.documentElement:T;fa=fa&&fa.parentNode;return T===fa||!!(fa&&1===fa.nodeType&&(oa.contains?oa.contains(fa):T.compareDocumentPosition&&T.compareDocumentPosition(fa)&16))}:function(T,fa){if(fa)for(;fa=fa.parentNode;)if(fa===T)return!0;return!1};Ke=W?function(T,fa){if(T===fa)return Je=!0,0;var oa=!T.compareDocumentPosition-
1214!fa.compareDocumentPosition;if(oa)return oa;oa=(T.ownerDocument||T)==(fa.ownerDocument||fa)?T.compareDocumentPosition(fa):1;return oa&1||!Fc.sortDetached&&fa.compareDocumentPosition(T)===oa?T==Ob||T.ownerDocument==Te&&Ag(Te,T)?-1:fa==Ob||fa.ownerDocument==Te&&Ag(Te,fa)?1:Oc?zf(Oc,T)-zf(Oc,fa):0:oa&4?-1:1}:function(T,fa){if(T===fa)return Je=!0,0;var oa=0,za=T.parentNode,Da=fa.parentNode,xb=[T],xa=[fa];if(!za||!Da)return T==Ob?-1:fa==Ob?1:za?-1:Da?1:Oc?zf(Oc,T)-zf(Oc,fa):0;if(za===Da)return R(T,fa);
1215for(;T=T.parentNode;)xb.unshift(T);for(T=fa;T=T.parentNode;)xa.unshift(T);for(;xb[oa]===xa[oa];)oa++;return oa?R(xb[oa],xa[oa]):xb[oa]==Te?-1:xa[oa]==Te?1:0};return Ob};p.matches=function(Q,W){return p(Q,null,null,W)};p.matchesSelector=function(Q,W){kg(Q);if(!(!Fc.matchesSelector||!sd||Hh[W+" "]||Qd&&Qd.test(W)||Wc&&Wc.test(W)))try{var T=ah.call(Q,W);if(T||Fc.disconnectedMatch||Q.document&&11!==Q.document.nodeType)return T}catch(fa){Hh(W,!0)}return 0<p(W,Ob,null,[Q]).length};p.contains=function(Q,
1216W){(Q.ownerDocument||Q)!=Ob&&kg(Q);return Ag(Q,W)};p.attr=function(Q,W){(Q.ownerDocument||Q)!=Ob&&kg(Q);var T=db.attrHandle[W.toLowerCase()];T=T&&Sf.call(db.attrHandle,W.toLowerCase())?T(Q,W,!sd):void 0;return void 0!==T?T:Fc.attributes||!sd?Q.getAttribute(W):(T=Q.getAttributeNode(W))&&T.specified?T.value:null};p.escape=function(Q){return(Q+"").replace(Fj,Gj)};p.error=function(Q){throw Error("Syntax error, unrecognized expression: "+Q);};p.uniqueSort=function(Q){var W,T=[],fa=0,oa=0;Je=!Fc.detectDuplicates;
1217Oc=!Fc.sortStable&&Q.slice(0);Q.sort(Ke);if(Je){for(;W=Q[oa++];)W===Q[oa]&&(fa=T.push(oa));for(;fa--;)Q.splice(T[fa],1)}Oc=null;return Q};var ui=p.getText=function(Q){var W="",T=0;var fa=Q.nodeType;if(!fa)for(;fa=Q[T++];)W+=ui(fa);else if(1===fa||9===fa||11===fa){if("string"===typeof Q.textContent)return Q.textContent;for(Q=Q.firstChild;Q;Q=Q.nextSibling)W+=ui(Q)}else if(3===fa||4===fa)return Q.nodeValue;return W};var db=p.selectors={cacheLength:50,createPseudo:y,match:ef,attrHandle:{},find:{},relative:{"\x3e":{dir:"parentNode",
1218first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Q){Q[1]=Q[1].replace(pd,Mf);Q[3]=(Q[3]||Q[4]||Q[5]||"").replace(pd,Mf);"~\x3d"===Q[2]&&(Q[3]=" "+Q[3]+" ");return Q.slice(0,4)},CHILD:function(Q){Q[1]=Q[1].toLowerCase();"nth"===Q[1].slice(0,3)?(Q[3]||p.error(Q[0]),Q[4]=+(Q[4]?Q[5]+(Q[6]||1):2*("even"===Q[3]||"odd"===Q[3])),Q[5]=+(Q[7]+Q[8]||"odd"===Q[3])):Q[3]&&p.error(Q[0]);return Q},PSEUDO:function(Q){var W,T=!Q[6]&&Q[2];
1219if(ef.CHILD.test(Q[0]))return null;Q[3]?Q[2]=Q[4]||Q[5]||"":T&&Cj.test(T)&&(W=Jh(T,!0))&&(W=T.indexOf(")",T.length-W)-T.length)&&(Q[0]=Q[0].slice(0,W),Q[2]=T.slice(0,W));return Q.slice(0,3)}},filter:{TAG:function(Q){var W=Q.replace(pd,Mf).toLowerCase();return"*"===Q?function(){return!0}:function(T){return T.nodeName&&T.nodeName.toLowerCase()===W}},CLASS:function(Q){var W=Mk[Q+" "];return W||(W=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+Q+"([\\x20\\t\\r\\n\\f]|$)"),Mk(Q,function(T){return W.test("string"===
1220typeof T.className&&T.className||"undefined"!==typeof T.getAttribute&&T.getAttribute("class")||"")}))},ATTR:function(Q,W,T){return function(fa){fa=p.attr(fa,Q);if(null==fa)return"!\x3d"===W;if(!W)return!0;fa+="";return"\x3d"===W?fa===T:"!\x3d"===W?fa!==T:"^\x3d"===W?T&&0===fa.indexOf(T):"*\x3d"===W?T&&-1<fa.indexOf(T):"$\x3d"===W?T&&fa.slice(-T.length)===T:"~\x3d"===W?-1<(" "+fa.replace(ri," ")+" ").indexOf(T):"|\x3d"===W?fa===T||fa.slice(0,T.length+1)===T+"-":!1}},CHILD:function(Q,W,T,fa,oa){var za=
1221"nth"!==Q.slice(0,3),Da="last"!==Q.slice(-4),xb="of-type"===W;return 1===fa&&0===oa?function(xa){return!!xa.parentNode}:function(xa,kb,Xb){var wb,Pc;kb=za!==Da?"nextSibling":"previousSibling";var Xc=xa.parentNode,xd=xb&&xa.nodeName.toLowerCase();Xb=!Xb&&!xb;var yb=!1;if(Xc){if(za){for(;kb;){for(wb=xa;wb=wb[kb];)if(xb?wb.nodeName.toLowerCase()===xd:1===wb.nodeType)return!1;var re=kb="only"===Q&&!re&&"nextSibling"}return!0}re=[Da?Xc.firstChild:Xc.lastChild];if(Da&&Xb){wb=Xc;var kd=wb[od]||(wb[od]={});
1222kd=kd[wb.uniqueID]||(kd[wb.uniqueID]={});yb=kd[Q]||[];yb=(Pc=yb[0]===Ma&&yb[1])&&yb[2];for(wb=Pc&&Xc.childNodes[Pc];wb=++Pc&&wb&&wb[kb]||(yb=Pc=0)||re.pop();)if(1===wb.nodeType&&++yb&&wb===xa){kd[Q]=[Ma,Pc,yb];break}}else if(Xb&&(wb=xa,kd=wb[od]||(wb[od]={}),kd=kd[wb.uniqueID]||(kd[wb.uniqueID]={}),yb=kd[Q]||[],yb=Pc=yb[0]===Ma&&yb[1]),!1===yb)for(;(wb=++Pc&&wb&&wb[kb]||(yb=Pc=0)||re.pop())&&((xb?wb.nodeName.toLowerCase()!==xd:1!==wb.nodeType)||!++yb||(Xb&&(kd=wb[od]||(wb[od]={}),kd=kd[wb.uniqueID]||
1223(kd[wb.uniqueID]={}),kd[Q]=[Ma,yb]),wb!==xa)););yb-=oa;return yb===fa||0===yb%fa&&0<=yb/fa}}},PSEUDO:function(Q,W){var T=db.pseudos[Q]||db.setFilters[Q.toLowerCase()]||p.error("unsupported pseudo: "+Q);if(T[od])return T(W);if(1<T.length){var fa=[Q,Q,"",W];return db.setFilters.hasOwnProperty(Q.toLowerCase())?y(function(oa,za){for(var Da,xb=T(oa,W),xa=xb.length;xa--;)Da=zf(oa,xb[xa]),oa[Da]=!(za[Da]=xb[xa])}):function(oa){return T(oa,0,fa)}}return T}},pseudos:{not:y(function(Q){var W=[],T=[],fa=Kd(Q.replace(Ih,
1224"$1"));return fa[od]?y(function(oa,za,Da,xb){xb=fa(oa,null,xb,[]);for(var xa=oa.length;xa--;)if(Da=xb[xa])oa[xa]=!(za[xa]=Da)}):function(oa,za,Da){W[0]=oa;fa(W,null,Da,T);W[0]=null;return!T.pop()}}),has:y(function(Q){return function(W){return 0<p(Q,W).length}}
1224),contains:y(function(Q){Q=Q.replace(pd,Mf);return function(W){return-1<(W.textContent||ui(W)).indexOf(Q)}}),lang:y(function(Q){$l.test(Q||"")||p.error("unsupported lang: "+Q);Q=Q.replace(pd,Mf).toLowerCase();return function(W){var T;do if(T=
1225sd?W.lang:W.getAttribute("xml:lang")||W.getAttribute("lang"))return T=T.toLowerCase(),T===Q||0===T.indexOf(Q+"-");while((W=W.parentNode)&&1===W.nodeType);return!1}}),target:function(Q){var W=k.location&&k.location.hash;return W&&W.slice(1)===Q.id},root:function(Q){return Q===Ka},focus:function(Q){return Q===Ob.activeElement&&(!Ob.hasFocus||Ob.hasFocus())&&!!(Q.type||Q.href||~Q.tabIndex)},enabled:X(!1),disabled:X(!0),checked:function(Q){var W=Q.nodeName.toLowerCase();return"input"===W&&!!Q.checked||
1226"option"===W&&!!Q.selected},selected:function(Q){Q.parentNode&&Q.parentNode.selectedIndex;return!0===Q.selected},empty:function(Q){for(Q=Q.firstChild;Q;Q=Q.nextSibling)if(6>Q.nodeType)return!1;return!0},parent:function(Q){return!db.pseudos.empty(Q)},header:function(Q){return Tf.test(Q.nodeName)},input:function(Q){return ff.test(Q.nodeName)},button:function(Q){var W=Q.nodeName.toLowerCase();return"input"===W&&"button"===Q.type||"button"===W},text:function(Q){var W;return"input"===Q.nodeName.toLowerCase()&&
1227"text"===Q.type&&(null==(W=Q.getAttribute("type"))||"text"===W.toLowerCase())},first:la(function(){return[0]}),last:la(function(Q,W){return[W-1]}),eq:la(function(Q,W,T){return[0>T?T+W:T]}),even:la(function(Q,W){for(var T=0;T<W;T+=2)Q.push(T);return Q}),odd:la(function(Q,W){for(var T=1;T<W;T+=2)Q.push(T);return Q}),lt:la(function(Q,W,T){for(W=0>T?T+W:T>W?W:T;0<=--W;)Q.push(W);return Q}),gt:la(function(Q,W,T){for(T=0>T?T+W:T;++T<W;)Q.push(T);return Q})}};db.pseudos.nth=db.pseudos.eq;for(fe in{radio:!0,
1228checkbox:!0,file:!0,password:!0,image:!0})db.pseudos[fe]=aa(fe);for(fe in{submit:!0,reset:!0})db.pseudos[fe]=U(fe);Ja.prototype=db.filters=db.pseudos;db.setFilters=new Ja;var Jh=p.tokenize=function(Q,W){var T,fa,oa,za,Da;if(za=Nk[Q+" "])return W?0:za.slice(0);za=Q;var xb=[];for(Da=db.preFilter;za;){if(!xa||(T=ig.exec(za)))T&&(za=za.slice(T[0].length)||za),xb.push(fa=[]);var xa=!1;if(T=jg.exec(za))xa=T.shift(),fa.push({value:xa,type:T[0].replace(Ih," ")}),za=za.slice(xa.length);for(oa in db.filter)!(T=
1229ef[oa].exec(za))||Da[oa]&&!(T=Da[oa](T))||(xa=T.shift(),fa.push({value:xa,type:oa,matches:T}),za=za.slice(xa.length));if(!xa)break}return W?za.length:za?p.error(Q):Nk(Q,xb).slice(0)};var Kd=p.compile=function(Q,W){var T,fa=[],oa=[],za=bh[Q+" "];if(!za){W||=Jh(Q);for(T=W.length;T--;)za=Ab(W[T]),za[od]?fa.push(za):oa.push(za);za=bh(Q,Jd(oa,fa));za.selector=Q}return za};var Qk=p.select=function(Q,W,T,fa){var oa,za,Da,xb="function"===typeof Q&&Q,xa=!fa&&Jh(Q=xb.selector||Q);T=T||[];if(1===xa.length){var kb=
1230xa[0]=xa[0].slice(0);if(2<kb.length&&"ID"===(za=kb[0]).type&&9===W.nodeType&&sd&&db.relative[kb[1].type]){W=(db.find.ID(za.matches[0].replace(pd,Mf),W)||[])[0];if(!W)return T;xb&&(W=W.parentNode);Q=Q.slice(kb.shift().value.length)}for(oa=ef.needsContext.test(Q)?0:kb.length;oa--;){za=kb[oa];if(db.relative[Da=za.type])break;if(Da=db.find[Da])if(fa=Da(za.matches[0].replace(pd,Mf),ti.test(kb[0].type)&&ta(W.parentNode)||W)){kb.splice(oa,1);Q=fa.length&&Vc(kb);if(!Q)return Ue.apply(T,fa),T;break}}}(xb||
1231Kd(Q,xa))(fa,W,!sd,T,!W||ti.test(Q)&&ta(W.parentNode)||W);return T};Fc.sortStable=od.split("").sort(Ke).join("")===od;Fc.detectDuplicates=!!Je;kg();Fc.sortDetached=H(function(Q){return Q.compareDocumentPosition(Ob.createElement("fieldset"))&1});H(function(Q){Q.innerHTML="\x3ca href\x3d'#'\x3e\x3c/a\x3e";return"#"===Q.firstChild.getAttribute("href")})||L("type|href|height|width",function(Q,W,T){if(!T)return Q.getAttribute(W,"type"===W.toLowerCase()?1:2)});Fc.attributes&&H(function(Q){Q.innerHTML="\x3cinput/\x3e";
1232Q.firstChild.setAttribute("value","");return""===Q.firstChild.getAttribute("value")})||L("value",function(Q,W,T){if(!T&&"input"===Q.nodeName.toLowerCase())return Q.defaultValue});H(function(Q){return null==Q.getAttribute("disabled")})||L("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(Q,W,T){var fa;if(!T)return!0===Q[W]?W.toLowerCase():(fa=Q.getAttributeNode(W))&&fa.specified?fa.value:null});return p}(f);B.find=
1233dg;
1233B.expr=dg.selectors;B.expr[":"]=B.expr.pseudos;B.uniqueSort=B.unique=dg.uniqueSort;B.text=dg.getText;B.isXMLDoc=dg.isXML;B.contains=dg.contains;B.escapeSelector=dg.escape;var Rg=function(k,p,u){for(var y=[],H=void 0!==u;(k=k[p])&&9!==k.nodeType;)if(1===k.nodeType){if(H&&B(k).is(u))break;y.push(k)}return y},Ek=function(k,p){for(var u=[];k;k=k.nextSibling)1===k.nodeType&&k!==p&&u.push(k);return u},Fk=B.expr.match.needsContext,Re=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;B.filter=
1234function(k,p,u){var y=p[0];u&&(k=":not("+k+")");return 1===p.length&&1===y.nodeType?B.find.matchesSelector(y,k)?[y]:[]:B.find.matches(k,B.grep(p,function(H){return 1===H.nodeType}))};B.fn.extend({find:function(k){var p,u=this.length,y=this;if("string"!==typeof k)return this.pushStack(B(k).filter(function(){for(p=0;p<u;p++)if(B.contains(y[p],this))return!0}));var H=this.pushStack([]);for(p=0;p<u;p++)B.find(k,y[p],H);return 1<u?B.uniqueSort(H):H},filter:function(k){return this.pushStack(G(this,k||[],
1235!1))},not:function(k){return this.pushStack(G(this,k||[],!0))},is:function(k){return!!G(this,"string"===typeof k&&Fk.test(k)?B(k):k||[],!1).length}});var eg=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(B.fn.init=function(k,p,u){if(!k)return this;u=u||qf;if("string"===typeof k){var y="\x3c"===k[0]&&"\x3e"===k[k.length-1]&&3<=k.length?[null,k,null]:eg.exec(k);if(!y||!y[1]&&p)return!p||p.jquery?(p||u).find(k):this.constructor(p).find(k);if(y[1]){if(p=p instanceof B?p[0]:p,B.merge(this,B.parseHTML(y[1],p&&
1236p.nodeType?p.ownerDocument||p:rc,!0)),Re.test(y[1])&&B.isPlainObject(p))for(y in p)if(Wb(this[y]))this[y](p[y]);else this.attr(y,p[y])}else if(k=rc.getElementById(y[2]))this[0]=k,this.length=1;return this}return k.nodeType?(this[0]=k,this.length=1,this):Wb(k)?void 0!==u.ready?u.ready(k):k(B):B.makeArray(k,this)}).prototype=B.fn;var qf=B(rc);var tc=/^(?:parents|prev(?:Until|All))/,Gk={children:!0,contents:!0,next:!0,prev:!0};B.fn.extend({has:function(k){var p=B(k,this),u=p.length;return this.filter(function(){for(var y=
12370;y<u;y++)if(B.contains(this,p[y]))return!0})},closest:function(k,p){var u,y=0,H=this.length,L=[],R="string"!==typeof k&&B(k);if(!Fk.test(k))for(;y<H;y++)for(u=this[y];u&&u!==p;u=u.parentNode)if(11>u.nodeType&&(R?-1<R.index(u):1===u.nodeType&&B.find.matchesSelector(u,k))){L.push(u);break}return this.pushStack(1<L.length?B.uniqueSort(L):L)},index:function(k){return k?"string"===typeof k?xh.call(B(k),this[0]):xh.call(this,k.jquery?k[0]:k):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},
1238add:function(k,p){return this.pushStack(B.uniqueSort(B.merge(this.get(),B(k,p))))},addBack:function(k){return this.add(null==k?this.prevObject:this.prevObject.filter(k))}});B.each({parent:function(k){return(k=k.parentNode)&&11!==k.nodeType?k:null},parents:function(k){return Rg(k,"parentNode")},parentsUntil:function(k,p,u){return Rg(k,"parentNode",u)},next:function(k){return D(k,"nextSibling")},prev:function(k){return D(k,"previousSibling")},nextAll:function(k){return Rg(k,"nextSibling")},prevAll:function(k){return Rg(k,
1239"previousSibling")},nextUntil:function(k,p,u){return Rg(k,"nextSibling",u)},prevUntil:function(k,p,u){return Rg(k,"previousSibling",u)},siblings:function(k){return Ek((k.parentNode||{}).firstChild,k)},children:function(k){return Ek(k.firstChild)},contents:function(k){if(null!=k.contentDocument&&pj(k.contentDocument))return k.contentDocument;t(k,"template")&&(k=k.content||k);return B.merge([],k.childNodes)}},function(k,p){B.fn[k]=function(u,y){var H=B.map(this,p,u);"Until"!==k.slice(-5)&&(y=u);y&&
1240"string"===typeof y&&(H=B.filter(y,H));1<this.length&&(Gk[k]||B.uniqueSort(H),tc.test(k)&&H.reverse());return this.pushStack(H)}});var Hf=/[^\x20\t\r\n\f]+/g;B.Callbacks=function(k){k="string"===typeof k?E(k):B.extend({},k);var p,u,y,H,L=[],R=[],aa=-1,U=function(){H=H||k.once;for(y=p=!0;R.length;aa=-1)for(u=R.shift();++aa<L.length;)!1===L[aa].apply(u[0],u[1])&&k.stopOnFalse&&(aa=L.length,u=!1);k.memory||(u=!1);p=!1;H&&(L=u?[]:"")},X={add:function(){L&&(u&&!p&&(aa=L.length-1,R.push(u)),function Ja(ta){B.each(ta,
1241function(Vc,vb){Wb(vb)?k.unique&&X.has(vb)||L.push(vb):vb&&vb.length&&"string"!==q(vb)&&Ja(vb)})}(arguments),u&&!p&&U());return this},remove:function(){B.each(arguments,function(la,ta){for(var Ja;-1<(Ja=B.inArray(ta,L,Ja));)L.splice(Ja,1),Ja<=aa&&aa--});return this},has:function(la){return la?-1<B.inArray(la,L):0<L.length},empty:function(){L&&=[];return this},disable:function(){H=R=[];L=u="";return this},disabled:function(){return!L},lock:function(){H=R=[];u||p||(L=u="");return this},locked:function(){return!!H},
1242fireWith:function(la,ta){H||(ta=ta||[],ta=[la,ta.slice?ta.slice():ta],R.push(ta),p||U());return this},fire:function(){X.fireWith(this,arguments);return this},fired:function(){return!!y}};return X};B.extend({Deferred:function(k){var p=[["notify","progress",B.Callbacks("memory"),B.Callbacks("memory"),2],["resolve","done",B.Callbacks("once memory"),B.Callbacks("once memory"),0,"resolved"],["reject","fail",B.Callbacks("once memory"),B.Callbacks("once memory"),1,"rejected"]],u="pending",y={state:function(){return u},
1243always:function(){H.done(arguments).fail(arguments);return this},"catch":function(L){return y.then(null,L)},pipe:function(){var L=arguments;return B.Deferred(function(R){B.each(p,function(aa,U){var X=Wb(L[U[4]])&&L[U[4]];H[U[1]](function(){var la=X&&X.apply(this,arguments);if(la&&Wb(la.promise))la.promise().progress(R.notify).done(R.resolve).fail(R.reject);else R[U[0]+"With"](this,X?[la]:arguments)})});L=null}).promise()},then:function(L,R,aa){function U(la,ta,Ja,Vc){return function(){var vb=this,
1244nd=arguments,Cb=function(){if(!(la<X)){var Ab=Ja.apply(vb,nd);
1244if(Ab===ta.promise())throw new TypeError("Thenable self-resolution");var Jd=Ab&&("object"===typeof Ab||"function"===typeof Ab)&&Ab.then;Wb(Jd)?Vc?Jd.call(Ab,U(X,ta,w,Vc),U(X,ta,v,Vc)):(X++,Jd.call(Ab,U(X,ta,w,Vc),U(X,ta,v,Vc),U(X,ta,w,ta.notifyWith))):(Ja!==w&&(vb=void 0,nd=[Ab]),(Vc||ta.resolveWith)(vb,nd))}},Ie=Vc?Cb:function(){try{Cb()}catch(Ab){B.Deferred.exceptionHook&&B.Deferred.exceptionHook(Ab,Ie.stackTrace),la+1>=X&&(Ja!==v&&(vb=
1245void 0,nd=[Ab]),ta.rejectWith(vb,nd))}};la?Ie():(B.Deferred.getStackHook&&(Ie.stackTrace=B.Deferred.getStackHook()),f.setTimeout(Ie))}}var X=0;return B.Deferred(function(la){p[0][3].add(U(0,la,Wb(aa)?aa:w,la.notifyWith));p[1][3].add(U(0,la,Wb(L)?L:w));p[2][3].add(U(0,la,Wb(R)?R:v))}).promise()},promise:function(L){return null!=L?B.extend(L,y):y}},H={};B.each(p,function(L,R){var aa=R[2],U=R[5];y[R[1]]=aa.add;U&&aa.add(function(){u=U},p[3-L][2].disable,p[3-L][3].disable,p[0][2].lock,p[0][3].lock);aa.add(R[3].fire);
1246H[R[0]]=function(){H[R[0]+"With"](this===H?void 0:this,arguments);return this};H[R[0]+"With"]=aa.fireWith});y.promise(H);k&&k.call(H,H);return H},when:function(k){var p=arguments.length,u=p,y=Array(u),H=Gd.call(arguments),L=B.Deferred(),R=function(aa){return function(U){y[aa]=this;H[aa]=1<arguments.length?Gd.call(arguments):U;--p||L.resolveWith(y,H)}};if(1>=p&&(C(k,L.done(R(u)).resolve,L.reject,!p),"pending"===L.state()||Wb(H[u]&&H[u].then)))return L.then();for(;u--;)C(H[u],R(u),L.reject);return L.promise()}});
1247var qj=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;B.Deferred.exceptionHook=function(k,p){f.console&&f.console.warn&&k&&qj.test(k.name)&&f.console.warn("jQuery.Deferred exception: "+k.message,k.stack,p)};B.readyException=function(k){f.setTimeout(function(){throw k;})};var Se=B.Deferred();B.fn.ready=function(k){Se.then(k).catch(function(p){B.readyException(p)});return this};B.extend({isReady:!1,readyWait:1,ready:function(k){(!0===k?--B.readyWait:B.isReady)||(B.isReady=!0,!0!==k&&0<--B.readyWait||
1248Se.resolveWith(rc,[B]))}});B.ready.then=Se.then;"complete"===rc.readyState||"loading"!==rc.readyState&&!rc.documentElement.doScroll?f.setTimeout(B.ready):(rc.addEventListener("DOMContentLoaded",K),f.addEventListener("load",K));var rf=function(k,p,u,y,H,L,R){var aa=0,U=k.length,X=null==u;if("object"===q(u))for(aa in H=!0,u)rf(k,p,aa,u[aa],!0,L,R);else if(void 0!==y&&(H=!0,Wb(y)||(R=!0),X&&(R?(p.call(k,y),p=null):(X=p,p=function(la,ta,Ja){return X.call(B(la),Ja)})),p))for(;aa<U;aa++)p(k[aa],u,R?y:y.call(k[aa],
1249aa,p(k[aa],u)));return H?k:X?p.call(k):U?p(k[0],u):L},rj=/^-ms-/,Sg=/-([a-z])/g,zh=function(k){return 1===k.nodeType||9===k.nodeType||!+k.nodeType};V.uid=1;V.prototype={cache:function(k){var p=k[this.expando];p||(p={},zh(k)&&(k.nodeType?k[this.expando]=p:Object.defineProperty(k,this.expando,{value:p,configurable:!0})));return p},set:function(k,p,u){var y;k=this.cache(k);if("string"===typeof p)k[J(p)]=u;else for(y in p)k[J(y)]=p[y];return k},get:function(k,p){return void 0===p?this.cache(k):k[this.expando]&&
1250k[this.expando][J(p)]},access:function(k,p,u){if(void 0===p||p&&"string"===typeof p&&void 0===u)return this.get(k,p);this.set(k,p,u);return void 0!==u?u:p},remove:function(k,p){var u,y=k[this.expando];if(void 0!==y){if(void 0!==p)for(Array.isArray(p)?p=p.map(J):(p=J(p),p=p in y?[p]:p.match(Hf)||[]),u=p.length;u--;)delete y[p[u]];if(void 0===p||B.isEmptyObject(y))k.nodeType?k[this.expando]=void 0:delete k[this.expando]}},hasData:function(k){k=k[this.expando];return void 0!==k&&!B.isEmptyObject(k)}};
1251var pb=new V,ee=new V,sj=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tj=/[A-Z]/g;B.extend({hasData:function(k){return ee.hasData(k)||pb.hasData(k)},data:function(k,p,u){return ee.access(k,p,u)},removeData:function(k,p){ee.remove(k,p)},_data:function(k,p,u){return pb.access(k,p,u)},_removeData:function(k,p){pb.remove(k,p)}});B.fn.extend({data:function(k,p){var u,y=this[0],H=y&&y.attributes;if(void 0===k){if(this.length){var L=ee.get(y);if(1===y.nodeType&&!pb.get(y,"hasDataAttrs")){for(u=H.length;u--;)if(H[u]){var R=
1252H[u].name;0===R.indexOf("data-")&&(R=J(R.slice(5)),I(y,R,L[R]))}pb.set(y,"hasDataAttrs",!0)}}return L}return"object"===typeof k?this.each(function(){ee.set(this,k)}):rf(this,function(aa){if(y&&void 0===aa){var U=ee.get(y,k);if(void 0!==U)return U;U=I(y,k);if(void 0!==U)return U}else this.each(function(){ee.set(this,k,aa)})},null,p,1<arguments.length,null,!0)},removeData:function(k){return this.each(function(){ee.remove(this,k)})}});B.extend({queue:function(k,p,u){if(k){p=(p||"fx")+"queue";var y=pb.get(k,
1253p);u&&(!y||Array.isArray(u)?y=pb.access(k,p,B.makeArray(u)):y.push(u));return y||[]}},dequeue:function(k,p){p=p||"fx";var u=B.queue(k,p),y=u.length,H=u.shift(),L=B._queueHooks(k,p),R=function(){B.dequeue(k,p)};"inprogress"===H&&(H=u.shift(),y--);H&&("fx"===p&&u.unshift("inprogress"),delete L.stop,H.call(k,R,L));!y&&L&&L.empty.fire()},_queueHooks:function(k,p){var u=p+"queueHooks";
1253return pb.get(k,u)||pb.access(k,u,{empty:B.Callbacks("once memory").add(function(){pb.remove(k,[p+"queue",u])})})}});B.fn.extend({queue:function(k,
1254p){var u=2;"string"!==typeof k&&(p=k,k="fx",u--);return arguments.length<u?B.queue(this[0],k):void 0===p?this:this.each(function(){var y=B.queue(this,k,p);B._queueHooks(this,k);"fx"===k&&"inprogress"!==y[0]&&B.dequeue(this,k)})},dequeue:function(k){return this.each(function(){B.dequeue(this,k)})},clearQueue:function(k){return this.queue(k||"fx",[])},promise:function(k,p){var u,y=1,H=B.Deferred(),L=this,R=this.length,aa=function(){--y||H.resolveWith(L,[L])};"string"!==typeof k&&(p=k,k=void 0);for(k=
1255k||"fx";R--;)(u=pb.get(L[R],k+"queueHooks"))&&u.empty&&(y++,u.empty.add(aa));aa();return H.promise(p)}});var uj=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,xg=new RegExp("^(?:([+-])\x3d|)("+uj+")([a-z%]*)$","i"),ma=["Top","Right","Bottom","Left"],fg=rc.documentElement,Ug=function(k){return B.contains(k.ownerDocument,k)},If={composed:!0};fg.getRootNode&&(Ug=function(k){return B.contains(k.ownerDocument,k)||k.getRootNode(If)===k.ownerDocument});var Ge=function(k,p){k=p||k;return"none"===k.style.display||
1256""===k.style.display&&Ug(k)&&"none"===B.css(k,"display")},Hb={};B.fn.extend({show:function(){return ra(this,!0)},hide:function(){return ra(this)},toggle:function(k){return"boolean"===typeof k?k?this.show():this.hide():this.each(function(){Ge(this)?B(this).show():B(this).hide()})}});var Vg=/^(?:checkbox|radio)$/i,vj=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,wj=/^$|^module$|\/(?:java|ecma)script/i;(function(){var k=rc.createDocumentFragment().appendChild(rc.createElement("div")),p=rc.createElement("input");
1257p.setAttribute("type","radio");p.setAttribute("checked","checked");p.setAttribute("name","t");k.appendChild(p);Sc.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked;k.innerHTML="\x3ctextarea\x3ex\x3c/textarea\x3e";Sc.noCloneChecked=!!k.cloneNode(!0).lastChild.defaultValue;k.innerHTML="\x3coption\x3e\x3c/option\x3e";Sc.option=!!k.lastChild})();var cf={thead:[1,"\x3ctable\x3e","\x3c/table\x3e"],col:[2,"\x3ctable\x3e\x3ccolgroup\x3e","\x3c/colgroup\x3e\x3c/table\x3e"],tr:[2,"\x3ctable\x3e\x3ctbody\x3e",
1258"\x3c/tbody\x3e\x3c/table\x3e"],td:[3,"\x3ctable\x3e\x3ctbody\x3e\x3ctr\x3e","\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e"],_default:[0,"",""]};cf.tbody=cf.tfoot=cf.colgroup=cf.caption=cf.thead;cf.th=cf.td;Sc.option||(cf.optgroup=cf.option=[1,"\x3cselect multiple\x3d'multiple'\x3e","\x3c/select\x3e"]);var Tg=/<|&#?\w+;/,Ah=/^([^.]*)(?:\.(.+)|)/;B.event={global:{},add:function(k,p,u,y,H){var L,R,aa,U;var X=pb.get(k);if(zh(k)){if(u.handler){var la=u;u=la.handler;H=la.selector}H&&B.find.matchesSelector(fg,
1259H);u.guid||(u.guid=B.guid++);(R=X.events)||(R=X.events=Object.create(null));(L=X.handle)||(L=X.handle=function(vb){return"undefined"!==typeof B&&B.event.triggered!==vb.type?B.event.dispatch.apply(k,arguments):void 0});p=(p||"").match(Hf)||[""];for(X=p.length;X--;){var ta=Ah.exec(p[X])||[];var Ja=aa=ta[1];var Vc=(ta[2]||"").split(".").sort();Ja&&(ta=B.event.special[Ja]||{},Ja=(H?ta.delegateType:ta.bindType)||Ja,ta=B.event.special[Ja]||{},aa=B.extend({type:Ja,origType:aa,data:y,handler:u,guid:u.guid,
1260selector:H,needsContext:H&&B.expr.match.needsContext.test(H),namespace:Vc.join(".")},la),(U=R[Ja])||(U=R[Ja]=[],U.delegateCount=0,ta.setup&&!1!==ta.setup.call(k,y,Vc,L)||k.addEventListener&&k.addEventListener(Ja,L)),ta.add&&(ta.add.call(k,aa),aa.handler.guid||(aa.handler.guid=u.guid
1260)),H?U.splice(U.delegateCount++,0,aa):U.push(aa),B.event.global[Ja]=!0)}}},remove:function(k,p,u,y,H){var L,R,aa,U,X,la=pb.hasData(k)&&pb.get(k);if(la&&(aa=la.events)){p=(p||"").match(Hf)||[""];for(U=p.length;U--;){var ta=
1261Ah.exec(p[U])||[];var Ja=X=ta[1];var Vc=(ta[2]||"").split(".").sort();if(Ja){var vb=B.event.special[Ja]||{};Ja=(y?vb.delegateType:vb.bindType)||Ja;var nd=aa[Ja]||[];ta=ta[2]&&new RegExp("(^|\\.)"+Vc.join("\\.(?:.*\\.|)")+"(\\.|$)");for(R=L=nd.length;L--;){var Cb=nd[L];!H&&X!==Cb.origType||u&&u.guid!==Cb.guid||ta&&!ta.test(Cb.namespace)||y&&y!==Cb.selector&&("**"!==y||!Cb.selector)||(nd.splice(L,1),Cb.selector&&nd.delegateCount--,vb.remove&&vb.remove.call(k,Cb))}R&&!nd.length&&(vb.teardown&&!1!==vb.teardown.call(k,
1262Vc,la.handle)||B.removeEvent(k,Ja,la.handle),delete aa[Ja])}else for(Ja in aa)B.event.remove(k,Ja+p[U],u,y,!0)}B.isEmptyObject(aa)&&pb.remove(k,"handle events")}},dispatch:function(k){var p,u,y,H=Array(arguments.length),L=B.event.fix(k);var R=(pb.get(this,"events")||Object.create(null))[L.type]||[];var aa=B.event.special[L.type]||{};H[0]=L;for(p=1;p<arguments.length;p++)H[p]=arguments[p];L.delegateTarget=this;if(!aa.preDispatch||!1!==aa.preDispatch.call(this,L)){var U=B.event.handlers.call(this,L,
1263R);for(p=0;(y=U[p++])&&!L.isPropagationStopped();)for(L.currentTarget=y.elem,R=0;(u=y.handlers[R++])&&!L.isImmediatePropagationStopped();)if(!L.rnamespace||!1===u.namespace||L.rnamespace.test(u.namespace))L.handleObj=u,L.data=u.data,u=((B.event.special[u.origType]||{}).handle||u.handler).apply(y.elem,H),void 0!==u&&!1===(L.result=u)&&(L.preventDefault(),L.stopPropagation());aa.postDispatch&&aa.postDispatch.call(this,L);return L.result}},handlers:function(k,p){var u,y=[],H=p.delegateCount,L=k.target;
1264if(H&&L.nodeType&&!("click"===k.type&&1<=k.button))for(;L!==this;L=L.parentNode||this)if(1===L.nodeType&&("click"!==k.type||!0!==L.disabled)){var R=[];var aa={};for(u=0;u<H;u++){var U=p[u];var X=U.selector+" ";void 0===aa[X]&&(aa[X]=U.needsContext?-1<B(X,this).index(L):B.find(X,this,null,[L]).length);aa[X]&&R.push(U)}R.length&&y.push({elem:L,handlers:R})}H<p.length&&y.push({elem:this,handlers:p.slice(H)});return y},addProp:function(k,p){Object.defineProperty(B.Event.prototype,k,{enumerable:!0,configurable:!0,
1265get:Wb(p)?function(){if(this.originalEvent)return p(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[k]},set:function(u){Object.defineProperty(this,k,{enumerable:!0,configurable:!0,writable:!0,value:u})}})},fix:function(k){return k[B.expando]?k:new B.Event(k)},special:{load:{noBubble:!0},click:{setup:function(k){k=this||k;Vg.test(k.type)&&k.click&&t(k,"input")&&ke(k,"click",Mb);return!1},trigger:function(k){k=this||k;Vg.test(k.type)&&k.click&&t(k,"input")&&ke(k,"click");
1266return!0},_default:function(k){k=k.target;return Vg.test(k.type)&&k.click&&t(k,"input")&&pb.get(k,"click")||t(k,"a")}},beforeunload:{postDispatch:function(k){void 0!==k.result&&k.originalEvent&&(k.originalEvent.returnValue=k.result)}}}};B.removeEvent=function(k,p,u){k.removeEventListener&&k.removeEventListener(p,u)};B.Event=function(k,p){if(!(this instanceof B.Event))return new B.Event(k,p);k&&k.type?(this.originalEvent=k,this.type=k.type,this.isDefaultPrevented=k.defaultPrevented||void 0===k.defaultPrevented&&
1267!1===k.returnValue?Mb:fb,this.target=k.target&&3===k.target.nodeType?k.target.parentNode:k.target,this.currentTarget=k.currentTarget,this.relatedTarget=k.relatedTarget):this.type=k;p&&B.extend(this,p);this.timeStamp=k&&k.timeStamp||Date.now();this[B.expando]=!0};B.Event.prototype={constructor:B.Event,isDefaultPrevented:fb,isPropagationStopped:fb,isImmediatePropagationStopped:fb,isSimulated:!1,preventDefault:function(){var k=this.originalEvent;this.isDefaultPrevented=Mb;k&&!this.isSimulated&&k.preventDefault()},
1268stopPropagation:function(){var k=this.originalEvent;this.isPropagationStopped=Mb;k&&!this.isSimulated&&k.stopPropagation()},stopImmediatePropagation:function(){var k=this.originalEvent;this.isImmediatePropagationStopped=Mb;k&&!this.isSimulated&&k.stopImmediatePropagation();this.stopPropagation()}};B.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,
1269buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},B.event.addProp);B.each({focus:"focusin",blur:"focusout"},function(k,p){B.event.special[k]={setup:function(){ke(this,k,Nb);return!1},trigger:function(){ke(this,k);return!0},_default:function(){return!0},delegateType:p}});
1269B.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(k,p){B.event.special[k]=
1270{delegateType:p,bindType:p,handle:function(u){var y=u.relatedTarget,H=u.handleObj;if(!y||y!==this&&!B.contains(this,y)){u.type=H.origType;var L=H.handler.apply(this,arguments);u.type=p}return L}}});B.fn.extend({on:function(k,p,u,y){return Oa(this,k,p,u,y)},one:function(k,p,u,y){return Oa(this,k,p,u,y,1)},off:function(k,p,u){if(k&&k.preventDefault&&k.handleObj){var y=k.handleObj;B(k.delegateTarget).off(y.namespace?y.origType+"."+y.namespace:y.origType,y.selector,y.handler);return this}if("object"===
1271typeof k){for(y in k)this.off(y,p,k[y]);return this}if(!1===p||"function"===typeof p)u=p,p=void 0;!1===u&&(u=fb);return this.each(function(){B.event.remove(this,k,u,p)})}});var Tc=/<script|<style|<link/i,ji=/checked\s*(?:[^=]|=\s*.checked.)/i,Jf=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;B.extend({htmlPrefilter:function(k){return k},clone:function(k,p,u){var y,H=k.cloneNode(!0),L=Ug(k);if(!(Sc.noCloneChecked||1!==k.nodeType&&11!==k.nodeType||B.isXMLDoc(k))){var R=qa(H);var aa=qa(k);var U=0;for(y=
1272aa.length;U<y;U++){var X=aa[U],la=R[U],ta=la.nodeName.toLowerCase();if("input"===ta&&Vg.test(X.type))la.checked=X.checked;else if("input"===ta||"textarea"===ta)la.defaultValue=X.defaultValue}}if(p)if(u)for(aa=aa||qa(k),R=R||qa(H),U=0,y=aa.length;U<y;U++)ce(aa[U],R[U]);else ce(k,H);R=qa(H,"script");0<R.length&&Za(R,!L&&qa(k,"script"));return H},cleanData:function(k){for(var p,u,y,H=B.event.special,L=0;void 0!==(u=k[L]);L++)if(zh(u)){if(p=u[pb.expando]){if(p.events)for(y in p.events)H[y]?B.event.remove(u,
1273y):B.removeEvent(u,y,p.handle);u[pb.expando]=void 0}u[ee.expando]&&(u[ee.expando]=void 0)}}});B.fn.extend({detach:function(k){return Ee(this,k,!0)},remove:function(k){return Ee(this,k)},text:function(k){return rf(this,function(p){return void 0===p?B.text(this):this.empty().each(function(){if(1===this.nodeType||11===this.nodeType||9===this.nodeType)this.textContent=p})},null,k,arguments.length)},append:function(){return Nc(this,arguments,function(k){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||
1274Jc(this,k).appendChild(k)})},prepend:function(){return Nc(this,arguments,function(k){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var p=Jc(this,k);p.insertBefore(k,p.firstChild)}})},before:function(){return Nc(this,arguments,function(k){this.parentNode&&this.parentNode.insertBefore(k,this)})},after:function(){return Nc(this,arguments,function(k){this.parentNode&&this.parentNode.insertBefore(k,this.nextSibling)})},empty:function(){for(var k,p=0;null!=(k=this[p]);p++)1===k.nodeType&&
1275(B.cleanData(qa(k,!1)),k.textContent="");return this},clone:function(k,p){k=null==k?!1:k;p=null==p?k:p;return this.map(function(){return B.clone(this,k,p)})},html:function(k){return rf(this,function(p){var u=this[0]||{},y=0,H=this.length;if(void 0===p&&1===u.nodeType)return u.innerHTML;if("string"===typeof p&&!Tc.test(p)&&!cf[(vj.exec(p)||["",""])[1].toLowerCase()]){p=B.htmlPrefilter(p);try{for(;y<H;y++)u=this[y]||{},1===u.nodeType&&(B.cleanData(qa(u,!1)),u.innerHTML=p);u=0}catch(L){}}u&&this.empty().append(p)},
1276null,k,arguments.length)},replaceWith:function(){var k=[];return Nc(this,arguments,function(p){var u=this.parentNode;0>B.inArray(this,k)&&(B.cleanData(qa(this)),u&&u.replaceChild(p,this))},k)}});B.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(k,p){B.fn[k]=function(u){for(var y=[],H=B(u),L=H.length-1,R=0;R<=L;R++)u=R===L?this:this.clone(!0),B(H[R])[p](u),ii.apply(y,u.get());return this.pushStack(y)}});var Id=new RegExp("^("+
1277uj+")(?!px)[a-z%]+$","i"),Wg=function(k){var p=k.ownerDocument.defaultView;p&&p.opener||(p=f);return p.getComputedStyle(k)},gg=function(k,p,u){var y,H={};for(y in p)H[y]=k.style[y],k.style[y]=p[y];u=u.call(k);for(y in p)k.style[y]=H[y];return u},ub=new RegExp(ma.join("|"),"i");(function(){function k(){if(U){aa.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";U.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";
1278fg.appendChild(aa).appendChild(U);var X=f.getComputedStyle(U);p="1%"!==X.top;R=12===Math.round(parseFloat(X.marginLeft));U.style.right="60%";H=36===Math.round(parseFloat(X.right));u=36===Math.round(parseFloat(X.width));U.style.position="absolute";y=12===Math.round(parseFloat(U.offsetWidth/3));fg.removeChild(aa);
1278U=null}}var p,u,y,H,L,R,aa=rc.createElement("div"),U=rc.createElement("div");U.style&&(U.style.backgroundClip="content-box",U.cloneNode(!0).style.backgroundClip="",Sc.clearCloneStyle="content-box"===
1279U.style.backgroundClip,B.extend(Sc,{boxSizingReliable:function(){k();return u},pixelBoxStyles:function(){k();return H},pixelPosition:function(){k();return p},reliableMarginLeft:function(){k();return R},scrollboxSize:function(){k();return y},reliableTrDimensions:function(){if(null==L){var X=rc.createElement("table");var la=rc.createElement("tr");var ta=rc.createElement("div");X.style.cssText="position:absolute;left:-11111px;border-collapse:separate";la.style.cssText="border:1px solid";la.style.height=
1280"1px";ta.style.height="9px";ta.style.display="block";fg.appendChild(X).appendChild(la).appendChild(ta);ta=f.getComputedStyle(la);L=parseInt(ta.height,10)+parseInt(ta.borderTopWidth,10)+parseInt(ta.borderBottomWidth,10)===la.offsetHeight;fg.removeChild(X)}return L}}))})();var Uc=["Webkit","Moz","ms"],xj=rc.createElement("div").style,yj={},Bh=/^(none|table(?!-c[ea]).+)/,Xd=/^--/,Xg={position:"absolute",visibility:"hidden",display:"block"},ki={letterSpacing:"0",fontWeight:"400"};B.extend({cssHooks:{opacity:{get:function(k,
1281p){if(p)return k=td(k,"opacity"),""===k?"1":k}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(k,p,u,y){if(k&&3!==k.nodeType&&8!==k.nodeType&&k.style){var H,L=J(p),R=Xd.test(p),aa=k.style;R||(p=Tb(L));var U=B.cssHooks[p]||B.cssHooks[L];
1282if(void 0!==u){var X=typeof u;"string"===X&&(H=xg.exec(u))&&H[1]&&(u=ia(k,p,H),X="number");null!=u&&u===u&&("number"!==X||R||(u+=H&&H[3]||(B.cssNumber[L]?"":"px")),Sc.clearCloneStyle||""!==u||0!==p.indexOf("background")||(aa[p]="inherit"),U&&"set"in U&&void 0===(u=U.set(k,u,y))||(R?aa.setProperty(p,u):aa[p]=u))}else return U&&"get"in U&&void 0!==(H=U.get(k,!1,y))?H:aa[p]}},css:function(k,p,u,y){var H;var L=J(p);Xd.test(p)||(p=Tb(L));(L=B.cssHooks[p]||B.cssHooks[L])&&"get"in L&&(H=L.get(k,!0,u));void 0===
1283H&&(H=td(k,p,y));"normal"===H&&p in ki&&(H=ki[p]);return""===u||u?(k=parseFloat(H),!0===u||isFinite(k)?k||0:H):H}});B.each(["height","width"],function(k,p){B.cssHooks[p]={get:function(u,y,H){if(y)return!Bh.test(B.css(u,"display"))||u.getClientRects().length&&u.getBoundingClientRect().width?Bd(u,p,H):gg(u,Xg,function(){return Bd(u,p,H)})},set:function(u,y,H){var L,R=Wg(u),aa=!Sc.scrollboxSize()&&"absolute"===R.position,U=(aa||H)&&"border-box"===B.css(u,"boxSizing",!1,R);H=H?Qe(u,p,H,U,R):0;U&&aa&&
1284(H-=Math.ceil(u["offset"+p[0].toUpperCase()+p.slice(1)]-parseFloat(R[p])-Qe(u,p,"border",!1,R)-.5));H&&(L=xg.exec(y))&&"px"!==(L[3]||"px")&&(u.style[p]=y,y=B.css(u,p));return de(u,y,H)}}});B.cssHooks.marginLeft=Pe(Sc.reliableMarginLeft,function(k,p){if(p)return(parseFloat(td(k,"marginLeft"))||k.getBoundingClientRect().left-gg(k,{marginLeft:0},function(){return k.getBoundingClientRect().left}))+"px"});B.each({margin:"",padding:"",border:"Width"},function(k,p){B.cssHooks[k+p]={expand:function(u){var y=
12850,H={};for(u="string"===typeof u?u.split(" "):[u];4>y;y++)H[k+ma[y]+p]=u[y]||u[y-2]||u[0];return H}};"margin"!==k&&(B.cssHooks[k+p].set=de)});B.fn.extend({css:function(k,p){return rf(this,function(u,y,H){var L,R={},aa=0;if(Array.isArray(y)){H=Wg(u);for(L=y.length;aa<L;aa++)R[y[aa]]=B.css(u,y[aa],!1,H);return R}return void 0!==H?B.style(u,y,H):B.css(u,y)},k,p,1<arguments.length)}});B.Tween=rd;rd.prototype={constructor:rd,init:function(k,p,u,y,H,L){this.elem=k;this.prop=u;this.easing=H||B.easing._default;
1286this.options=p;this.start=this.now=this.cur();this.end=y;this.unit=L||(B.cssNumber[u]?"":"px")},cur:function(){var k=rd.propHooks[this.prop];return k&&k.get?k.get(this):rd.propHooks._default.get(this)},run:function(k){var p,u=rd.propHooks[this.prop];this.pos=this.options.duration?p=B.easing[this.easing](k,this.options.duration*k,0,1,this.options.duration):p=k;this.now=(this.end-this.start)*p+this.start;this.options.step&&this.options.step.call(this.elem,this.now,this);u&&u.set?u.set(this):rd.propHooks._default.set(this);
1287return this}};rd.prototype.init.prototype=rd.prototype;rd.propHooks={_default:{get:function(k){return 1!==k.elem.nodeType||null!=k.elem[k.prop]&&null==k.elem.style[k.prop]?k.elem[k.prop]:(k=B.css(k.elem,k.prop,""))&&"auto"!==k?k:0},set:function(k){if(B.fx.step[k.prop])B.fx.step[k.prop](k);else 1!==k.elem.nodeType||!B.cssHooks[k.prop]&&null==k.elem.style[Tb(k.prop)]?k.elem[k.prop]=k.now:B.style(k.elem,k.prop,k.now+k.unit)}}};rd.propHooks.scrollTop=rd.propHooks.scrollLeft={set:function(k){k.elem.nodeType&&
1288k.elem.parentNode&&(k.elem[k.prop]=k.now)}};B.easing={linear:function(k){return k},swing:function(k){return.5-Math.cos(k*Math.PI)/2},_default:"swing"};B.fx=rd.prototype.init;B.fx.step={};var yg,Ch,Yg=/^(?:toggle|show|hide)$/,Zg=/queueHooks$/;B.Animation=B.extend(ic,{tweeners:{"*":[function(k,p){var u=this.createTween(k,p);ia(u.elem,k,xg.exec(p),u);return u}]},tweener:function(k,p){Wb(k)?(p=k,k=["*"]):k=k.match(Hf);for(var u,y=0,H=k.length;y<H;y++)u=k[y],ic.tweeners[u]=ic.tweeners[u]||[],ic.tweeners[u].unshift(p)},
1289prefilters:[function(k,p,u){var y;var H="width"in p||"height"in p;var L=this,R={},aa=k.style,U=k.nodeType&&Ge(k),X=pb.get(k,"fxshow");if(!u.queue){var la=B._queueHooks(k,"fx");if(null==la.unqueued){la.unqueued=0;var ta=la.empty.fire;la.empty.fire=function(){la.unqueued||ta()}}la.unqueued++;L.always(function(){L.always(function(){la.unqueued--;B.queue(k,"fx").length||la.empty.fire()})})}for(y in p){var Ja=p[y];if(Yg.test(Ja)){delete p[y];var Vc=Vc||"toggle"===Ja;if(Ja===(U?"hide":"show"))if("show"===
1290Ja&&X&&void 0!==X[y])U=!0;else continue;R[y]=X&&X[y]||B.style(k,y)}}if((p=!B.isEmptyObject(p))||!B.isEmptyObject(R)){if(H&&1===k.nodeType){u.overflow=[aa.overflow,aa.overflowX,aa.overflowY];var vb=X&&X.display;null==vb&&(vb=pb.get(k,"display"));H=B.css(k,"display");"none"===H&&(vb?H=vb:(ra([k],!0),vb=k.style.display||vb,H=B.css(k,"display"),ra([k])));("inline"===H||"inline-block"===H&&null!=vb)&&"none"===B.css(k,"float")&&(p||(L.done(function(){aa.display=vb}),null==vb&&(H=aa.display,vb="none"===
1291H?"":H)),aa.display="inline-block")}u.overflow&&(aa.overflow="hidden",L.always(function(){aa.overflow=u.overflow[0];aa.overflowX=u.overflow[1];aa.overflowY=u.overflow[2]}));p=!1;for(y in R)p||(X?"hidden"in X&&(U=X.hidden):X=pb.access(k,"fxshow",{display:vb}),Vc&&(X.hidden=!U),U&&ra([k],!0),L.done(function(){U||ra([k]);pb.remove(k,"fxshow");for(y in R)B.style(k,y,R[y])})),p=Pa(U?X[y]:0,y,L),y in X||(X[y]=p.start,U&&(p.end=p.start,p.start=0))}}],prefilter:function(k,p){p?ic.prefilters.unshift(k):ic.prefilters.push(k)}});
1292B.speed=function(k,p,u){var y=k&&"object"===typeof k?B.extend({},k):{complete:u||!u&&p||Wb(k)&&k,duration:k,easing:u&&p||p&&!Wb(p)&&p};B.fx.off?y.duration=0:"number"!==typeof y.duration&&(y.duration=y.duration in B.fx.speeds?B.fx.speeds[y.duration]:B.fx.speeds._default);if(null==y.queue||!0===y.queue)y.queue="fx";y.old=y.complete;y.complete=function(){Wb(y.old)&&y.old.call(this);y.queue&&B.dequeue(this,y.queue)};return y};B.fn.extend({fadeTo:function(k,p,u,y){return this.filter(Ge).css("opacity",
12930).show().end().animate({opacity:p},k,u,y)},animate:function(k,p,u,y){var H=B.isEmptyObject(k),L=B.speed(p,u,y);p=function(){var R=ic(this,B.extend({},k),L);(H||pb.get(this,"finish"))&&R.stop(!0)};p.finish=p;return H||!1===L.queue?this.each(p):this.queue(L.queue,p)},stop:function(k,p,u){var y=function(H){var L=H.stop;delete H.stop;L(u)};"string"!==typeof k&&(u=p,p=k,k=void 0);p&&this.queue(k||"fx",[]);return this.each(function(){var H=!0,L=null!=k&&k+"queueHooks",R=B.timers,aa=pb.get(this);if(L)aa[L]&&
1294aa[L].stop&&y(aa[L]);else for(L in aa)aa[L]&&aa[L].stop&&Zg.test(L)&&y(aa[L]);for(L=R.length;L--;)R[L].elem!==this||null!=k&&R[L].queue!==k||(R[L].anim.stop(u),H=!1,R.splice(L,1));!H&&u||B.dequeue(this,k)})},finish:function(k){!1!==k&&(k=k||"fx");return this.each(function(){var p=pb.get(this),u=p[k+"queue"];var y=p[k+"queueHooks"];var H=B.timers,L=u?u.length:0;p.finish=!0;B.queue(this,k,[]);y&&y.stop&&y.stop.call(this,!0);for(y=H.length;y--;)H[y].elem===this&&H[y].queue===k&&(H[y].anim.stop(!0),H.splice(y,
12951));for(y=0;y<L;y++)u[y]&&u[y].finish&&u[y].finish.call(this);delete p.finish})}});B.each(["toggle","show","hide"],function(k,p){var u=B.fn[p];B.fn[p]=function(y,H,L){return null==y||"boolean"===typeof y?u.apply(this,arguments):this.animate(pa(p,!0),y,H,L)}});B.each({slideDown:pa("show"),slideUp:pa("hide"),slideToggle:pa("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(k,p){B.fn[k]=function(u,y,H){return this.animate(p,u,y,H)}});B.timers=[];B.fx.tick=
1296function(){var k=0,p=B.timers;for(yg=Date.now();k<p.length;k++){var u=p[k];u()||p[k]!==u||p.splice(k--,1)}p.length||B.fx.stop();yg=void 0};B.fx.timer=function(k){B.timers.push(k);B.fx.start()};B.fx.interval=13;B.fx.start=function(){Ch||(Ch=!0,bf())};B.fx.stop=function(){Ch=null};B.fx.speeds={slow:600,fast:200,_default:400};B.fn.delay=function(k,p){k=B.fx?B.fx.speeds[k]||k:k;return this.queue(p||"fx",function(u,y){var H=f.setTimeout(u,k);y.stop=function(){f.clearTimeout(H)}})};(function(){var k=rc.createElement("input"),
1297p=rc.createElement("select").appendChild(rc.createElement("option"));k.type="checkbox";Sc.checkOn=""!==k.value;Sc.optSelected=p.selected;k=rc.createElement("input");k.value="t";k.type="radio";Sc.radioValue="t"===k.value})();var tf=B.expr.attrHandle;B.fn.extend({attr:function(k,p){return rf(this,B.attr,k,p,1<arguments.length)},removeAttr:function(k){return this.each(function(){B.removeAttr(this,k)})}});B.extend({attr:function(k,p,u){var y,H,L=k.nodeType;if(3!==L&&8!==L&&2!==L){if("undefined"===typeof k.getAttribute)return B.prop(k,
1298p,u);1===L&&B.isXMLDoc(k)||(H=B.attrHooks[p.toLowerCase()]||(B.expr.match.bool.test(p)?li:void 0));if(void 0!==u){if(null===u){B.removeAttr(k,p);return}if(H&&"set"in H&&void 0!==(y=H.set(k,u,p)))return y;k.setAttribute(p,u+"");return u}if(H&&"get"in H&&null!==(y=H.get(k,p)))return y;y=B.find.attr(k,p);return null==y?void 0:y}},attrHooks:{type:{set:function(k,p){if(!Sc.radioValue&&"radio"===p&&t(k,"input")){var u=k.value;k.setAttribute("type",p);u&&(k.value=u);return p}}}},removeAttr:function(k,p){var u=
12990,y=p&&p.match(Hf);if(y&&1===k.nodeType)for(;p=y[u++];)k.removeAttribute(p)}});var li={set:function(k,p,u){!1===p?B.removeAttr(k,u):k.setAttribute(u,u);return u}};B.each(B.expr.match.bool.source.match(/\w+/g),function(k,p){var u=tf[p]||B.find.attr;tf[p]=function(y,H,L){var R=H.toLowerCase();if(!L){var aa=tf[R];tf[R]=U;var U=null!=u(y,H,L)?R:null;tf[R]=aa}return U}});var Hk=/^(?:input|select|textarea|button)$/i,uf=/^(?:a|area)$/i;B.fn.extend({prop:function(k,p){return rf(this,B.prop,k,p,1<arguments.length)},
1300removeProp:function(k){return this.each(function(){delete this[B.propFix[k]||k]})}});B.extend({prop:function(k,p,u){var y,H=k.nodeType;
1300if(3!==H&&8!==H&&2!==H){if(1!==H||!B.isXMLDoc(k)){p=B.propFix[p]||p;var L=B.propHooks[p]}return void 0!==u?L&&"set"in L&&void 0!==(y=L.set(k,u,p))?y:k[p]=u:L&&"get"in L&&null!==(y=L.get(k,p))?y:k[p]}},propHooks:{tabIndex:{get:function(k){var p=B.find.attr(k,"tabindex");return p?parseInt(p,10):Hk.test(k.nodeName)||uf.test(k.nodeName)&&k.href?0:-1}}},propFix:{"for":"htmlFor",
1301"class":"className"}});Sc.optSelected||(B.propHooks.selected={get:function(k){(k=k.parentNode)&&k.parentNode&&k.parentNode.selectedIndex;return null},set:function(k){if(k=k.parentNode)k.selectedIndex,k.parentNode&&k.parentNode.selectedIndex}});B.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),function(){B.propFix[this.toLowerCase()]=this});B.fn.extend({addClass:function(k){var p,u,y,H,L=0;if(Wb(k))return this.each(function(U){B(this).addClass(k.call(this,
1302U,Vd(this)))});var R=Fd(k);if(R.length)for(;p=this[L++];){var aa=Vd(p);if(u=1===p.nodeType&&" "+ud(aa)+" "){for(H=0;y=R[H++];)0>u.indexOf(" "+y+" ")&&(u+=y+" ");u=ud(u);aa!==u&&p.setAttribute("class",u)}}return this},removeClass:function(k){var p,u,y,H,L=0;if(Wb(k))return this.each(function(U){B(this).removeClass(k.call(this,U,Vd(this)))});if(!arguments.length)return this.attr("class","");var R=Fd(k);if(R.length)for(;p=this[L++];){var aa=Vd(p);if(u=1===p.nodeType&&" "+ud(aa)+" "){for(H=0;y=R[H++];)for(;-1<
1303u.indexOf(" "+y+" ");)u=u.replace(" "+y+" "," ");u=ud(u);aa!==u&&p.setAttribute("class",u)}}return this},toggleClass:function(k,p){var u=typeof k,y="string"===u||Array.isArray(k);return"boolean"===typeof p&&y?p?this.addClass(k):this.removeClass(k):Wb(k)?this.each(function(H){B(this).toggleClass(k.call(this,H,Vd(this),p),p)}):this.each(function(){var H,L;if(y){var R=0;var aa=B(this);for(L=Fd(k);H=L[R++];)aa.hasClass(H)?aa.removeClass(H):aa.addClass(H)}else if(void 0===k||"boolean"===u)(H=Vd(this))&&
1304pb.set(this,"__className__",H),this.setAttribute&&this.setAttribute("class",H||!1===k?"":pb.get(this,"__className__")||"")})},hasClass:function(k){var p,u=0;for(k=" "+k+" ";p=this[u++];)if(1===p.nodeType&&-1<(" "+ud(Vd(p))+" ").indexOf(k))return!0;return!1}});var vf=/\r/g;B.fn.extend({val:function(k){var p,u,y=this[0];if(arguments.length){var H=Wb(k);return this.each(function(L){1===this.nodeType&&(L=H?k.call(this,L,B(this).val()):k,null==L?L="":"number"===typeof L?L+="":Array.isArray(L)&&(L=B.map(L,
1305function(R){return null==R?"":R+""})),p=B.valHooks[this.type]||B.valHooks[this.nodeName.toLowerCase()],p&&"set"in p&&void 0!==p.set(this,L,"value")||(this.value=L))})}if(y){if((p=B.valHooks[y.type]||B.valHooks[y.nodeName.toLowerCase()])&&"get"in p&&void 0!==(u=p.get(y,"value")))return u;u=y.value;return"string"===typeof u?u.replace(vf,""):null==u?"":u}}});B.extend({valHooks:{option:{get:function(k){var p=B.find.attr(k,"value");return null!=p?p:ud(B.text(k))}},select:{get:function(k){var p=k.options,
1306u=k.selectedIndex,y="select-one"===k.type,H=y?null:[],L=y?u+1:p.length;for(k=0>u?L:y?u:0;k<L;k++){var R=p[k];if(!(!R.selected&&k!==u||R.disabled||R.parentNode.disabled&&t(R.parentNode,"optgroup"))){R=B(R).val();if(y)return R;H.push(R)}}return H},set:function(k,p){for(var u,y=k.options,H=B.makeArray(p),L=y.length;L--;)if(p=y[L],p.selected=-1<B.inArray(B.valHooks.option.get(p),H))u=!0;u||(k.selectedIndex=-1);return H}}}});B.each(["radio","checkbox"],function(){B.valHooks[this]={set:function(k,p){if(Array.isArray(p))return k.checked=
1307-1<B.inArray(B(k).val(),p)}};Sc.checkOn||(B.valHooks[this].get=function(k){return null===k.getAttribute("value")?"on":k.value})});Sc.focusin="onfocusin"in f;var Ik=/^(?:focusinfocus|focusoutblur)$/,fd=function(k){k.stopPropagation()};B.extend(B.event,{trigger:function(k,p,u,y){var H,L,R,aa=[u||rc],U=Gf.call(k,"type")?k.type:k;var X=Gf.call(k,"namespace")?k.namespace.split("."):[];var la=R=H=u=u||rc;if(3!==u.nodeType&&8!==u.nodeType&&!Ik.test(U+B.event.triggered)){-1<U.indexOf(".")&&(X=U.split("."),
1308U=X.shift(),X.sort());var ta=0>U.indexOf(":")&&"on"+U;k=k[B.expando]?k:new B.Event(U,"object"===typeof k&&k);k.isTrigger=y?2:3;k.namespace=X.join(".");k.rnamespace=k.namespace?new RegExp("(^|\\.)"+X.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;k.result=void 0;k.target||(k.target=u);p=null==p?[k]:B.makeArray(p,[k]);X=B.event.special[U]||{};if(y||!X.trigger||!1!==X.trigger.apply(u,p)){if(!y&&!X.noBubble&&!cg(u)){var Ja=X.delegateType||U;Ik.test(Ja+U)||(la=la.parentNode);for(;la;la=la.parentNode)aa.push(la),
1309H=la;H===(u.ownerDocument||rc)&&aa.push(H.defaultView||H.parentWindow||f)}for(H=0;(la=aa[H++])&&!k.isPropagationStopped();)R=la,k.type=1<H?Ja:X.bindType||U,(L=(pb.get(la,"events")||Object.create(null))[k.type]&&pb.get(la,"handle"))&&L.apply(la,p),(L=ta&&la[ta])&&L.apply&&zh(la)&&(k.result=L.apply(la,p),!1===k.result&&k.preventDefault());k.type=U;y||k.isDefaultPrevented()||X._default&&!1!==X._default.apply(aa.pop(),p)||!zh(u)||!ta||!Wb(u[U])||cg(u)||((H=u[ta])&&(u[ta]=null),B.event.triggered=U,k.isPropagationStopped()&&
1310R.addEventListener(U,fd),u[U](),k.isPropagationStopped()&&R.removeEventListener(U,fd),B.event.triggered=void 0,H&&(u[ta]=H));return k.result}}},simulate:function(k,p,u){k=B.extend(new B.Event,u,{type:k,isSimulated:!0});B.event.trigger(k,null,p)}});B.fn.extend({trigger:function(k,p){return this.each(function(){B.event.trigger(k,p,this)})},triggerHandler:function(k,p){var u=this[0];if(u)return B.event.trigger(k,p,u,!0)}});Sc.focusin||B.each({focus:"focusin",blur:"focusout"},function(k,p){var u=function(y){B.event.simulate(p,
1311y.target,B.event.fix(y))};B.event.special[p]={setup:function(){var y=this.ownerDocument||this.document||this,H=pb.access(y,p);H||y.addEventListener(k,u,!0);pb.access(y,p,(H||0)+1)},teardown:function(){var y=this.ownerDocument||this.document||this,H=pb.access(y,p)-1;H?pb.access(y,p,H):(y.removeEventListener(k,u,!0),pb.remove(y,p))}}});var Kf=f.location,$g=Date.now(),Dh=/\?/;B.parseXML=function(k){if(!k||"string"!==typeof k)return null;try{var p=(new f.DOMParser).parseFromString(k,"text/xml")}catch(y){}var u=
1312p&&p.getElementsByTagName("parsererror")[0];p&&!u||B.error("Invalid XML: "+(u?B.map(u.childNodes,function(y){return y.textContent}).join("\n"):k));return p};var wf=/\[\]$/,zg=/\r?\n/g,mi=/^(?:submit|button|image|reset|file)$/i,xf=/^(?:input|select|textarea|keygen)/i;B.param=function(k,p){var u,y=[],H=function(L,R){R=Wb(R)?R():R;y[y.length]=encodeURIComponent(L)+"\x3d"+encodeURIComponent(null==R?"":R)};if(null==k)return"";if(Array.isArray(k)||k.jquery&&!B.isPlainObject(k))B.each(k,function(){H(this.name,
1313this.value)});else for(u in k)ag(u,k[u],p,H);return y.join("\x26")};B.fn.extend({serialize:function(){return B.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var k=B.prop(this,"elements");return k?B.makeArray(k):this}).filter(function(){var k=this.type;return this.name&&!B(this).is(":disabled")&&xf.test(this.nodeName)&&!mi.test(k)&&(this.checked||!Vg.test(k))}).map(function(k,p){k=B(this).val();return null==k?null:Array.isArray(k)?B.map(k,function(u){return{name:p.name,
1314value:u.replace(zg,"\r\n")}}):{name:p.name,value:k.replace(zg,"\r\n")}}).get()}});var Qf=/%20/g,ni=/#.*$/,ne=/([?&])_=[^&]*/,Kk=/^(.*?):[ \t]*([^\r\n]*)$/mg,yf=/^(?:GET|HEAD)$/,zj=/^\/\//,hg={},qe={},Eh="*/".concat("*"),Fh=rc.createElement("a");Fh.href=Kf.href;B.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Kf.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Kf.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset\x3dUTF-8",
1315accepts:{"*":Eh,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":B.parseXML}
1315,flatOptions:{url:!0,context:!0}},ajaxSetup:function(k,p){return p?le(le(k,B.ajaxSettings),p):le(B.ajaxSettings,k)},ajaxPrefilter:Dk(hg),ajaxTransport:Dk(qe),
1316ajax:function(k,p){function u(ac,Oc,Je,Ob){var Ka,sd=Oc;if(!fe){fe=!0;R&&f.clearTimeout(R);y=void 0;H=Ob||"";Ab.readyState=0<ac?4:0;Ob=200<=ac&&300>ac||304===ac;Je&&(Ka=bg(X,Ab,Je));!Ob&&-1<B.inArray("script",X.dataTypes)&&0>B.inArray("json",X.dataTypes)&&(X.converters["text script"]=function(){});Ka=Fe(X,Ka,Ab,Ob);if(Ob)if(X.ifModified&&((Je=Ab.getResponseHeader("Last-Modified"))&&(B.lastModified[Jd]=Je),(Je=Ab.getResponseHeader("etag"))&&(B.etag[Jd]=Je)),204===ac||"HEAD"===X.type)sd="nocontent";
1317else if(304===ac)sd="notmodified";else{sd=Ka.state;var Wc=Ka.data;var Qd=Ka.error;Ob=!Qd}else if(Qd=sd,ac||!sd)sd="error",0>ac&&(ac=0);Ab.status=ac;Ab.statusText=(Oc||sd)+"";Ob?Ja.resolveWith(la,[Wc,sd,Ab]):Ja.rejectWith(la,[Ab,sd,Qd]);Ab.statusCode(vb);vb=void 0;aa&&ta.trigger(Ob?"ajaxSuccess":"ajaxError",[Ab,X,Ob?Wc:Qd]);Vc.fireWith(la,[Ab,sd]);aa&&(ta.trigger("ajaxComplete",[Ab,X]),--B.active||B.event.trigger("ajaxStop"))}}"object"===typeof k&&(p=k,k=void 0);p=p||{};var y,H,L,R,aa,U,X=B.ajaxSetup({},
1318p),la=X.context||X,ta=X.context&&(la.nodeType||la.jquery)?B(la):B.event,Ja=B.Deferred(),Vc=B.Callbacks("once memory"),vb=X.statusCode||{},nd={},Cb={},Ie="canceled",Ab={readyState:0,getResponseHeader:function(ac){var Oc;if(fe){if(!L)for(L={};Oc=Kk.exec(H);)L[Oc[1].toLowerCase()+" "]=(L[Oc[1].toLowerCase()+" "]||[]).concat(Oc[2]);Oc=L[ac.toLowerCase()+" "]}return null==Oc?null:Oc.join(", ")},getAllResponseHeaders:function(){return fe?H:null},setRequestHeader:function(ac,Oc){null==fe&&(ac=Cb[ac.toLowerCase()]=
1319Cb[ac.toLowerCase()]||ac,nd[ac]=Oc);return this},overrideMimeType:function(ac){null==fe&&(X.mimeType=ac);return this},statusCode:function(ac){var Oc;if(ac)if(fe)Ab.always(ac[Ab.status]);else for(Oc in ac)vb[Oc]=[vb[Oc],ac[Oc]];return this},abort:function(ac){ac=ac||Ie;y&&y.abort(ac);u(0,ac);return this}};Ja.promise(Ab);X.url=((k||X.url||Kf.href)+"").replace(zj,Kf.protocol+"//");X.type=p.method||p.type||X.method||X.type;X.dataTypes=(X.dataType||"*").toLowerCase().match(Hf)||[""];if(null==X.crossDomain){k=
1320rc.createElement("a");try{k.href=X.url,k.href=k.href,X.crossDomain=Fh.protocol+"//"+Fh.host!==k.protocol+"//"+k.host}catch(ac){X.crossDomain=!0}}X.data&&X.processData&&"string"!==typeof X.data&&(X.data=B.param(X.data,X.traditional));oj(hg,X,p,Ab);if(fe)return Ab;(aa=B.event&&X.global)&&0===B.active++&&B.event.trigger("ajaxStart");X.type=X.type.toUpperCase();X.hasContent=!yf.test(X.type);var Jd=X.url.replace(ni,"");X.hasContent?X.data&&X.processData&&0===(X.contentType||"").indexOf("application/x-www-form-urlencoded")&&
1321(X.data=X.data.replace(Qf,"+")):(k=X.url.slice(Jd.length),X.data&&(X.processData||"string"===typeof X.data)&&(Jd+=(Dh.test(Jd)?"\x26":"?")+X.data,delete X.data),!1===X.cache&&(Jd=Jd.replace(ne,"$1"),k=(Dh.test(Jd)?"\x26":"?")+"_\x3d"+$g++ +k),X.url=Jd+k);X.ifModified&&(B.lastModified[Jd]&&Ab.setRequestHeader("If-Modified-Since",B.lastModified[Jd]),B.etag[Jd]&&Ab.setRequestHeader("If-None-Match",B.etag[Jd]));(X.data&&X.hasContent&&!1!==X.contentType||p.contentType)&&Ab.setRequestHeader("Content-Type",
1322X.contentType);Ab.setRequestHeader("Accept",X.dataTypes[0]&&X.accepts[X.dataTypes[0]]?X.accepts[X.dataTypes[0]]+("*"!==X.dataTypes[0]?", "+Eh+"; q\x3d0.01":""):X.accepts["*"]);for(U in X.headers)Ab.setRequestHeader(U,X.headers[U]);if(X.beforeSend&&(!1===X.beforeSend.call(la,Ab,X)||fe))return Ab.abort();Ie="abort";Vc.add(X.complete);Ab.done(X.success);Ab.fail(X.error);if(y=oj(qe,X,p,Ab)){Ab.readyState=1;aa&&ta.trigger("ajaxSend",[Ab,X]);if(fe)return Ab;X.async&&0<X.timeout&&(R=f.setTimeout(function(){Ab.abort("timeout")},
1323X.timeout));try{var fe=!1;y.send(nd,u)}catch(ac){if(fe)throw ac;u(-1,ac)}}else u(-1,"No Transport");return Ab},getJSON:function(k,p,u){return B.get(k,p,u,"json")},getScript:function(k,p){return B.get(k,void 0,p,"script")}});B.each(["get","post"],function(k,p){B[p]=function(u,y,H,L){Wb(y)&&(L=L||H,H=y,y=void 0);return B.ajax(B.extend({url:u,type:p,dataType:L,data:y,success:H},B.isPlainObject(u)&&u))}});B.ajaxPrefilter(function(k){for(var p in k.headers)"content-type"===p.toLowerCase()&&(k.contentType=
1324k.headers[p]||"")});B._evalUrl=function(k,p,u){return B.ajax({url:k,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(y){B.globalEval(y,p,u)}})};B.fn.extend({wrapAll:function(k){this[0]&&(Wb(k)&&(k=k.call(this[0])),k=B(k,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&k.insertBefore(this[0]),k.map(function(){for(var p=this;p.firstElementChild;)p=p.firstElementChild;return p}).append(this));return this},wrapInner:function(k){return Wb(k)?
1325this.each(function(p){B(this).wrapInner(k.call(this,p))}):this.each(function(){var p=B(this),u=p.contents();u.length?u.wrapAll(k):p.append(k)})},wrap:function(k){var p=Wb(k);return this.each(function(u){B(this).wrapAll(p?k.call(this,u):k)})},unwrap:function(k){this.parent(k).not("body").each(function(){B(this).replaceWith(this.childNodes)});return this}});B.expr.pseudos.hidden=function(k){return!B.expr.pseudos.visible(k)};B.expr.pseudos.visible=function(k){return!!(k.offsetWidth||k.offsetHeight||
1326k.getClientRects().length)};B.ajaxSettings.xhr=function(){try{return new f.XMLHttpRequest}catch(k){}};var Yd={0:200,1223:204},He=B.ajaxSettings.xhr();Sc.cors=!!He&&"withCredentials"in He;Sc.ajax=He=!!He;B.ajaxTransport(function(k){var p,u;if(Sc.cors||He&&!k.crossDomain)return{send:function(y,H){var L,R=k.xhr();R.open(k.type,k.url,k.async,k.username,k.password);if(k.xhrFields)for(L in k.xhrFields)R[L]=k.xhrFields[L];k.mimeType&&R.overrideMimeType&&R.overrideMimeType(k.mimeType);k.crossDomain||y["X-Requested-With"]||
1327(y["X-Requested-With"]="XMLHttpRequest");for(L in y)R.setRequestHeader(L,y[L]);p=function(aa){return function(){p&&(p=u=R.onload=R.onerror=R.onabort=R.ontimeout=R.onreadystatechange=null,"abort"===aa?R.abort():"error"===aa?"number"!==typeof R.status?H(0,"error"):H(R.status,R.statusText):H(Yd[R.status]||R.status,R.statusText,"text"!==(R.responseType||"text")||"string"!==typeof R.responseText?{binary:R.response}:{text:R.responseText},R.getAllResponseHeaders()))}};R.onload=p();u=R.onerror=R.ontimeout=
1328p("error");void 0!==R.onabort?R.onabort=u:R.onreadystatechange=function(){4===R.readyState&&f.setTimeout(function(){p&&u()})};p=p("abort");try{R.send(k.hasContent&&k.data||null)}catch(aa){if(p)throw aa;}},abort:function(){p&&p()}}});B.ajaxPrefilter(function(k){k.crossDomain&&(k.contents.script=!1)});B.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(k){B.globalEval(k);
1329return k}}});B.ajaxPrefilter("script",function(k){void 0===k.cache&&(k.cache=!1);k.crossDomain&&(k.type="GET")});B.ajaxTransport("script",function(k){if(k.crossDomain||k.scriptAttrs){var p,u;return{send:function(y,H){p=B("\x3cscript\x3e").attr(k.scriptAttrs||{}
1329).prop({charset:k.scriptCharset,src:k.url}).on("load error",u=function(L){p.remove();u=null;L&&H("error"===L.type?404:200,L.type)});rc.head.appendChild(p[0])},abort:function(){u&&u()}}}});var oi=[],Gh=/(=)\?(?=&|$)|\?\?/;B.ajaxSetup({jsonp:"callback",
1330jsonpCallback:function(){var k=oi.pop()||B.expando+"_"+$g++;this[k]=!0;return k}});B.ajaxPrefilter("json jsonp",function(k,p,u){var y,H=!1!==k.jsonp&&(Gh.test(k.url)?"url":"string"===typeof k.data&&0===(k.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gh.test(k.data)&&"data");if(H||"jsonp"===k.dataTypes[0]){var L=k.jsonpCallback=Wb(k.jsonpCallback)?k.jsonpCallback():k.jsonpCallback;H?k[H]=k[H].replace(Gh,"$1"+L):!1!==k.jsonp&&(k.url+=(Dh.test(k.url)?"\x26":"?")+k.jsonp+"\x3d"+L);k.converters["script json"]=
1331function(){y||B.error(L+" was not called");return y[0]};k.dataTypes[0]="json";var R=f[L];f[L]=function(){y=arguments};u.always(function(){void 0===R?B(f).removeProp(L):f[L]=R;k[L]&&(k.jsonpCallback=p.jsonpCallback,oi.push(L));y&&Wb(R)&&R(y[0]);y=R=void 0});return"script"}});Sc.createHTMLDocument=function(){var k=rc.implementation.createHTMLDocument("").body;k.innerHTML="\x3cform\x3e\x3c/form\x3e\x3cform\x3e\x3c/form\x3e";return 2===k.childNodes.length}();B.parseHTML=function(k,p,u){if("string"!==
1332typeof k)return[];"boolean"===typeof p&&(u=p,p=!1);if(!p)if(Sc.createHTMLDocument){p=rc.implementation.createHTMLDocument("");var y=p.createElement("base");y.href=rc.location.href;p.head.appendChild(y)}else p=rc;y=Re.exec(k);u=!u&&[];if(y)return[p.createElement(y[1])];y=Na([k],p,u);u&&u.length&&B(u).remove();return B.merge([],y.childNodes)};B.fn.load=function(k,p,u){var y,H,L=this,R=k.indexOf(" ");if(-1<R){var aa=ud(k.slice(R));k=k.slice(0,R)}Wb(p)?(u=p,p=void 0):p&&"object"===typeof p&&(y="POST");
13330<L.length&&B.ajax({url:k,type:y||"GET",dataType:"html",data:p}).done(function(U){H=arguments;L.html(aa?B("\x3cdiv\x3e").append(B.parseHTML(U)).find(aa):U)}).always(u&&function(U,X){L.each(function(){u.apply(this,H||[U.responseText,X,U])})});return this};B.expr.pseudos.animated=function(k){return B.grep(B.timers,function(p){return k===p.elem}).length};B.offset={setOffset:function(k,p,u){var y=B.css(k,"position"),H=B(k),L={};"static"===y&&(k.style.position="relative");var R=H.offset();var aa=B.css(k,
1334"top");var U=B.css(k,"left");("absolute"===y||"fixed"===y)&&-1<(aa+U).indexOf("auto")?(U=H.position(),aa=U.top,U=U.left):(aa=parseFloat(aa)||0,U=parseFloat(U)||0);Wb(p)&&(p=p.call(k,u,B.extend({},R)));null!=p.top&&(L.top=p.top-R.top+aa);null!=p.left&&(L.left=p.left-R.left+U);"using"in p?p.using.call(k,L):H.css(L)}};B.fn.extend({offset:function(k){if(arguments.length)return void 0===k?this:this.each(function(y){B.offset.setOffset(this,k,y)});var p;if(p=this[0]){if(!p.getClientRects().length)return{top:0,
1335left:0};var u=p.getBoundingClientRect();p=p.ownerDocument.defaultView;return{top:u.top+p.pageYOffset,left:u.left+p.pageXOffset}}},position:function(){if(this[0]){var k,p=this[0],u={top:0,left:0};if("fixed"===B.css(p,"position"))var y=p.getBoundingClientRect();else{y=this.offset();var H=p.ownerDocument;for(k=p.offsetParent||H.documentElement;k&&(k===H.body||k===H.documentElement)&&"static"===B.css(k,"position");)k=k.parentNode;k&&k!==p&&1===k.nodeType&&(u=B(k).offset(),u.top+=B.css(k,"borderTopWidth",
1336!0),u.left+=B.css(k,"borderLeftWidth",!0))}return{top:y.top-u.top-B.css(p,"marginTop",!0),left:y.left-u.left-B.css(p,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var k=this.offsetParent;k&&"static"===B.css(k,"position");)k=k.offsetParent;return k||fg})}});B.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(k,p){var u="pageYOffset"===p;B.fn[k]=function(y){return rf(this,function(H,L,R){if(cg(H))var aa=H;else 9===H.nodeType&&(aa=H.defaultView);if(void 0===
1337R)return aa?aa[p]:H[L];aa?aa.scrollTo(u?aa.pageXOffset:R,u?R:aa.pageYOffset):H[L]=R},k,y,arguments.length)}});B.each(["top","left"],function(k,p){B.cssHooks[p]=Pe(Sc.pixelPosition,function(u,y){if(y)return y=td(u,p),Id.test(y)?B(u).position()[p]+"px":y})});B.each({Height:"height",Width:"width"},function(k,p){B.each({padding:"inner"+k,content:p,"":"outer"+k},function(u,y){B.fn[y]=function(H,L){var R=arguments.length&&(u||"boolean"!==typeof H),aa=u||(!0===H||!0===L?"margin":"border");return rf(this,
1338function(U,X,la){return cg(U)?0===y.indexOf("outer")?U["inner"+k]:U.document.documentElement["client"+k]:9===U.nodeType?(X=U.documentElement,Math.max(U.body["scroll"+k],X["scroll"+k],U.body["offset"+k],X["offset"+k],X["client"+k])):void 0===la?B.css(U,X,aa):B.style(U,X,la,aa)},p,R?H:void 0,R)}})});B.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(k,p){B.fn[p]=function(u){return this.on(p,u)}});B.fn.extend({bind:function(k,p,u){return this.on(k,null,p,u)},
1339unbind:function(k,p){return this.off(k,null,p)},delegate:function(k,p,u,y){return this.on(p,k,u,y)},undelegate:function(k,p,u){return 1===arguments.length?this.off(k,"**"):this.off(p,k||"**",u)},hover:function(k,p){return this.mouseenter(k).mouseleave(p||k)}});B.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(k,p){B.fn[p]=function(u,y){return 0<
1340arguments.length?this.on(p,null,u,y):this.trigger(p)}});var Lk=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;B.proxy=function(k,p){if("string"===typeof p){var u=k[p];p=k;k=u}if(Wb(k)){var y=Gd.call(arguments,2);
1340u=function(){return k.apply(p||this,y.concat(Gd.call(arguments)))};u.guid=k.guid=k.guid||B.guid++;return u}};B.holdReady=function(k){k?B.readyWait++:B.ready(!0)};B.isArray=Array.isArray;B.parseJSON=JSON.parse;B.nodeName=t;B.isFunction=Wb;B.isWindow=cg;B.camelCase=J;B.type=q;B.now=Date.now;B.isNumeric=
1341function(k){var p=B.type(k);return("number"===p||"string"===p)&&!isNaN(k-parseFloat(k))};B.trim=function(k){return null==k?"":(k+"").replace(Lk,"")};"function"===typeof define&&define.amd&&define("jquery",[],function(){return B});var Jk=f.jQuery,Aj=f.$;B.noConflict=function(k){f.$===B&&(f.$=Aj);k&&f.jQuery===B&&(f.jQuery=Jk);return B};"undefined"===typeof n&&(f.jQuery=f.$=B);return B});
1342(function(f){"function"===typeof define&&define.amd?define(["jquery"],function(n){return f(n,window)}):"object"===typeof module&&module.exports?module.exports=f(require("jquery"),window):f(jQuery,window)})(function(f,n){function A(ha){a:{var pa=/^(\d+)\.(\d+)\.(\d+)/;var Pa=pa.exec(f.fn.jquery)||[];pa=pa.exec(ha)||[];for(ha=1;3>=ha;ha++){if(+Pa[ha]>+pa[ha]){Pa=1;break a}if(+Pa[ha]<+pa[ha]){Pa=-1;break a}}Pa=0}return 0<=Pa}function q(ha){var pa=n.console;f.migrateDeduplicateWarnings&&E[ha]||(E[ha]=
1343!0,f.migrateWarnings.push(ha),pa&&pa.warn&&!f.migrateMute&&(pa.warn("JQMIGRATE: "+ha),f.migrateTrace&&pa.trace&&pa.trace()))}function z(ha,pa,Pa,ob){Object.defineProperty(ha,pa,{configurable:!0,enumerable:!0,get:function(){q(ob);return Pa},set:function(ic){q(ob);Pa=ic}})}function t(ha,pa,Pa,ob){ha[pa]=function(){q(ob);return Pa.apply(this,arguments)}}function G(ha){return ha.replace(/-([a-z])/g,function(pa,Pa){return Pa.toUpperCase()})}function D(ha){return Mb.test(ha)&&fb.test(ha[0].toUpperCase()+
1344ha.slice(1))}f.migrateVersion="3.3.2";n.console&&n.console.log&&(f&&A("3.0.0")||n.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),f.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(f.migrateMute?"":" with logging active")+", version "+f.migrateVersion));var E={};f.migrateDeduplicateWarnings=!0;f.migrateWarnings=[];void 0===f.migrateTrace&&(f.migrateTrace=!0);f.migrateReset=function(){E={};f.migrateWarnings.length=0};
1345"BackCompat"===n.document.compatMode&&q("jQuery is not compatible with Quirks Mode");var w,v={},C=f.fn.init,K=f.find,N=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,J=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,V=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;f.fn.init=function(ha){var pa=Array.prototype.slice.call(arguments);"string"===typeof ha&&"#"===ha&&(q("jQuery( '#' ) is not a valid selector"),pa[0]=[]);return C.apply(this,pa)};f.fn.init.prototype=f.fn;f.find=function(ha){var pa=
1346Array.prototype.slice.call(arguments);if("string"===typeof ha&&N.test(ha))try{n.document.querySelector(ha)}catch(Pa){ha=ha.replace(J,function(ob,ic,ud,Vd){return"["+ic+ud+'"'+Vd+'"]'});try{n.document.querySelector(ha),q("Attribute selector with '#' must be quoted: "+pa[0]),pa[0]=ha}catch(ob){q("Attribute selector with '#' was not fixed: "+pa[0])}}return K.apply(this,pa)};for(w in K)Object.prototype.hasOwnProperty.call(K,w)&&(f.find[w]=K[w]);t(f.fn,"size",function(){return this.length},"jQuery.fn.size() is deprecated and removed; use the .length property");
1347t(f,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"jQuery.parseJSON is deprecated; use JSON.parse");t(f,"holdReady",f.holdReady,"jQuery.holdReady is deprecated");t(f,"unique",f.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort");z(f.expr,"filters",f.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos");z(f.expr,":",f.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos");A("3.1.1")&&t(f,"trim",function(ha){return null==ha?"":(ha+
1348"").replace(V,"")},"jQuery.trim is deprecated; use String.prototype.trim");A("3.2.0")&&(t(f,"nodeName",function(ha,pa){return ha.nodeName&&ha.nodeName.toLowerCase()===pa.toLowerCase()},"jQuery.nodeName is deprecated"),t(f,"isArray",Array.isArray,"jQuery.isArray is deprecated; use Array.isArray"));A("3.3.0")&&(t(f,"isNumeric",function(ha){var pa=typeof ha;return("number"===pa||"string"===pa)&&!isNaN(ha-parseFloat(ha))},"jQuery.isNumeric() is deprecated"),f.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),
1349function(ha,pa){v["[object "+pa+"]"]=pa.toLowerCase()}),t(f,"type",function(ha){return null==ha?ha+"":"object"===typeof ha||"function"===typeof ha?v[Object.prototype.toString.call(ha)]||"object":typeof ha},"jQuery.type is deprecated"),t(f,"isFunction",function(ha){return"function"===typeof ha},"jQuery.isFunction() is deprecated"),t(f,"isWindow",function(ha){return null!=ha&&ha===ha.window},"jQuery.isWindow() is deprecated"));if(f.ajax){var I=f.ajax,ia=/(=)\?(?=&|$)|\?\?/;f.ajax=function(){var ha=
1350I.apply(this,arguments);ha.promise&&(t(ha,"success",ha.done,"jQXHR.success is deprecated and removed"),t(ha,"error",ha.fail,"jQXHR.error is deprecated and removed"),t(ha,"complete",ha.always,"jQXHR.complete is deprecated and removed"));return ha};A("4.0.0")||f.ajaxPrefilter("+json",function(ha){!1!==ha.jsonp&&(ia.test(ha.url)||"string"===typeof ha.data&&0===(ha.contentType||"").indexOf("application/x-www-form-urlencoded")&&ia.test(ha.data))&&q("JSON-to-JSONP auto-promotion is deprecated")})}var ra=
1351f.fn.removeAttr,qa=f.fn.toggleClass,Za=/\S+/g;f.fn.removeAttr=function(ha){var pa=this;f.each(ha.match(Za),function(Pa,ob){f.expr.match.bool.test(ob)&&(q("jQuery.fn.removeAttr no longer sets boolean properties: "+ob),pa.prop(ob,!1))});return ra.apply(this,arguments)};f.fn.toggleClass=function(ha){if(void 0!==ha&&"boolean"!==typeof ha)return qa.apply(this,arguments);q("jQuery.fn.toggleClass( boolean ) is deprecated");return this.each(function(){var pa=this.getAttribute&&this.getAttribute("class")||
1352"";pa&&f.data(this,"__className__",pa);this.setAttribute&&this.setAttribute("class",pa||!1===ha?"":f.data(this,"__className__")||"")})};var Na=!1,Mb=/^[a-z]/,fb=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;f.swap&&f.each(["height","width","reliableMarginRight"],function(ha,pa){var Pa=f.cssHooks[pa]&&f.cssHooks[pa].get;Pa&&(f.cssHooks[pa].get=function(){Na=!0;var ob=Pa.apply(this,arguments);Na=!1;return ob})});f.swap=
1353function(ha,pa,Pa,ob){var ic,ud={};Na||q("jQuery.swap() is undocumented and deprecated");for(ic in pa)ud[ic]=ha.style[ic],ha.style[ic]=pa[ic];Pa=Pa.apply(ha,ob||[]);for(ic in pa)ha.style[ic]=ud[ic];return Pa};A("3.4.0")&&"undefined"!==typeof Proxy&&(f.cssProps=new Proxy(f.cssProps||{},{set:function(){q("JQMIGRATE: jQuery.cssProps is deprecated");return Reflect.set.apply(this,arguments)}}));f.cssNumber||(f.cssNumber={});var Nb=f.fn.css;f.fn.css=function(ha,pa){var Pa=this;if(ha&&"object"===typeof ha&&
1354!Array.isArray(ha))return f.each(ha,function(ic,ud){f.fn.css.call(Pa,ic,ud)}),this;if("number"===typeof pa){var ob=G(ha);D(ob)||f.cssNumber[ob]||q('Number-typed values are deprecated for jQuery.fn.css( "'+ha+'", value )')}return Nb.apply(this,arguments)};var Oa=f.data;f.data=function(ha,pa,Pa){var ob;if(pa&&"object"===typeof pa&&2===arguments.length){var ic=f.hasData(ha)&&Oa.call(this,ha);var ud={};for(ob in pa)ob!==G(ob)?(q("jQuery.data() always sets/gets camelCased names: "+ob),ic[ob]=pa[ob]):ud[ob]=
1355pa[ob];Oa.call(this,ha,ud);return pa}return pa&&"string"===typeof pa&&pa!==G(pa)&&(ic=f.hasData(ha)&&Oa.call(this,ha))&&pa in ic?(q("jQuery.data() always sets/gets camelCased names: "+pa),2<arguments.length&&(ic[pa]=Pa),ic[pa]):Oa.apply(this,arguments)};if(f.fx){var ke=f.Tween.prototype.run,Jc=function(ha){return ha};f.Tween.prototype.run=function(){1<f.easing[this.easing].length&&(q("'jQuery.easing."+this.easing.toString()+"' should use only one argument"),f.easing[this.easing]=Jc);ke.apply(this,
1356arguments)};var pf=f.fx.interval||13;n.requestAnimationFrame&&Object.defineProperty(f.fx,"interval",{configurable:!0,enumerable:!0,get:function(){n.document.hidden||q("jQuery.fx.interval is deprecated");return pf},set:function(ha){q("jQuery.fx.interval is deprecated");pf=ha}})}var Ud=f.fn.load,ce=f.event.add,Nc=f.event.fix;f.event.props=[];f.event.fixHooks={};z(f.event.props,"concat",f.event.props.concat,"jQuery.event.props.concat() is deprecated and removed");f.event.fix=function(ha){var pa=ha.type;
1357var Pa=this.fixHooks[pa],ob=f.event.props;if(ob.length)for(q("jQuery.event.props are deprecated and removed: "+ob.join());ob.length;)f.event.addProp(ob.pop());if(Pa&&!Pa._migrated_&&(Pa._migrated_=!0,q("jQuery.event.fixHooks are deprecated and removed: "+pa),(ob=Pa.props)&&ob.length))for(;ob.length;)f.event.addProp(ob.pop());pa=Nc.call(this,ha);return Pa&&Pa.filter?Pa.filter(pa,ha):pa};f.event.add=function(ha,pa){ha===n&&"load"===pa&&"complete"===n.document.readyState&&q("jQuery(window).on('load'...) called after load event occurred");
1358return ce.apply(this,arguments)};f.each(["load","unload","error"],function(ha,pa){f.fn[pa]=function(){var Pa=Array.prototype.slice.call(arguments,0);if("load"===pa&&"string"===typeof Pa[0])return Ud.apply(this,Pa);q("jQuery.fn."+pa+"() is deprecated");Pa.splice(0,0,pa);if(arguments.length)return this.on.apply(this,Pa);this.triggerHandler.apply(this,Pa);return this}});f.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),
1359function(ha,pa){f.fn[pa]=function(Pa,ob){q("jQuery.fn."+pa+"() event shorthand is deprecated");return 0<arguments.length?this.on(pa,null,Pa,ob):this.trigger(pa)}});f(function(){f(n.document).triggerHandler("ready")});f.event.special.ready={setup:function(){this===n.document&&q("'ready' event is deprecated")}};f.fn.extend({bind:function(ha,pa,Pa){q("jQuery.fn.bind() is deprecated");return this.on(ha,null,pa,Pa)},unbind:function(ha,pa){q("jQuery.fn.unbind() is deprecated");return this.off(ha,null,pa)},
1360delegate:function(ha,pa,Pa,ob){q("jQuery.fn.delegate() is deprecated");return this.on(pa,ha,Pa,ob)},undelegate:function(ha,pa,Pa){q("jQuery.fn.undelegate() is deprecated");return 1===arguments.length?this.off(ha,"**"):this.off(pa,ha||"**",Pa)},hover:function(ha,pa){q("jQuery.fn.hover() is deprecated");return this.on("mouseenter",ha).on("mouseleave",pa||ha)}});var Ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,td=f.htmlPrefilter,Pe=function(ha){var pa=
1361n.document.implementation.createHTMLDocument("");pa.body.innerHTML=ha;return pa.body&&pa.body.innerHTML},Tb=function(ha){var pa=ha.replace(Ee,"\x3c$1\x3e\x3c/$2\x3e");pa!==ha&&Pe(ha)!==Pe(pa)&&q("HTML tags must be properly nested and closed: "+ha)};f.UNSAFE_restoreLegacyHtmlPrefilter=function(){f.htmlPrefilter=function(ha){Tb(ha);return ha.replace(Ee,"\x3c$1\x3e\x3c/$2\x3e")}};f.htmlPrefilter=function(ha){Tb(ha);return td(ha)};var de=f.fn.offset;f.fn.offset=function(){var ha=this[0];return!ha||ha.nodeType&&
1362ha.getBoundingClientRect?de.apply(this,arguments):(q("jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)};if(f.ajax){var Qe=f.param;f.param=function(ha,pa){var Pa=f.ajaxSettings&&f.ajaxSettings.traditional;void 0===pa&&Pa&&(q("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),pa=Pa);return Qe.call(this,ha,pa)}}var Bd=f.fn.andSelf||f.fn.addBack;f.fn.andSelf=function(){q("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()");return Bd.apply(this,
1363arguments)};if(f.Deferred){var rd=f.Deferred,bf=[["resolve","done",f.Callbacks("once memory"),f.Callbacks("once memory"),"resolved"],["reject","fail",f.Callbacks("once memory"),f.Callbacks("once memory"),"rejected"],["notify","progress",f.Callbacks("memory"),f.Callbacks("memory")]];f.Deferred=function(ha){var pa=rd(),Pa=pa.promise();pa.pipe=Pa.pipe=function(){var ob=arguments;q("deferred.pipe() is deprecated");return f.Deferred(function(ic){f.each(bf,function(ud,Vd){var Fd="function"===typeof ob[ud]&&
1364ob[ud];pa[Vd[1]](function(){var ag=Fd&&Fd.apply(this,arguments);if(ag&&"function"===typeof ag.promise)ag.promise().done(ic.resolve).fail(ic.reject).progress(ic.notify);else ic[Vd[0]+"With"](this===Pa?ic.promise():this,Fd?[ag]:arguments)})});ob=null}).promise()};ha&&ha.call(pa,pa);return pa};f.Deferred.exceptionHook=rd.exceptionHook}return f});"use strict";var ol=ol||{},google=google||{};
1365if(String.prototype.endsWith||(String.prototype.endsWith=function(f,n){var A=this.toString();("number"!=typeof n||!isFinite(n)||Math.floor(n)!==n||n>A.length)&&(n=A.length);n-=f.length;f=A.indexOf(f,n);return-1!==f&&f===n}),!ol)throw Error("OpenLayers is not loaded.");!google||!google.maps;var geoapi=geoapi||{};geoapi.jQuery=geoapi.jQuery||jQuery.noConflict();geoapi.proj4=proj4;proj4=null;
1366ol.proj.addProjection(new ol.proj.Projection({code:"EPSG:25831",units:"m",extent:[238379.2278,4265559.3497,761620.7722,6914547.3835]}));ol.proj.addProjection(new ol.proj.Projection({code:"EPSG:23031",units:"m",extent:[238730.0252,4276730.7754,761269.9748,7434723.1222]}));ol.proj.addProjection(new ol.proj.Projection({code:"urn:ogc:def:crs:EPSG::23031",units:"m",extent:[238730.0252,4276730.7754,761269.9748,7434723.1222]}));geoapi.proj4.defs("EPSG:25831","+proj\x3dutm +zone\x3d31 +ellps\x3dGRS80 +units\x3dm +no_defs");
1367geoapi.proj4.defs("EPSG:23031","+title\x3dED50 / UTM zone 31N  +proj\x3dutm +zone\x3d31 +ellps\x3dintl +units\x3dm +towgs84\x3d-87,-98,-121,0,0,0,0");geoapi.proj4.defs("urn:ogc:def:crs:EPSG::23031","+title\x3dED50 / UTM zone 31N  +proj\x3dutm +zone\x3d31 +ellps\x3dintl +units\x3dm +towgs84\x3d-87,-98,-121,0,0,0,0");geoapi.findIndex=function(f,n){for(var A=0;A<f.length;A++)if(n(f[A]))return A;return-1};geoapi.find=function(f,n){for(var A=0;A<f.length;A++)if(n(f[A]))return f[A];return null};
1368geoapi.version="1.1.0";
1369geoapi.BaseMap=function(f){if(f||={},!f.appKeyTMB)throw Error("APP key is mandatory.");if(!f.appIdTMB)throw Error("APP id is mandatory.");this.config={};this.config.debug=f.debug;
1369this.config.appKeyTMB=f.appKeyTMB;this.config.appIdTMB=f.appIdTMB;this.config.projectionMap="EPSG:3857";this.dom={};this.dom.parentDiv=geoapi.jQuery(f.element?"#"+f.element:"body");this.dom.map=null;this.baseMaps={};this.baseMaps.enableCluster=f.enableCluster||!1;this.baseMaps.distanceCluster=f.distanceCluster||10;this.baseMaps.styleCluster=
1370f.styleCluster;this.layers={};this.markersLayer=null;this.functions={};this.functions.rightClick=f.rightClick?f.rightClick:null;this.functions.leftClick=f.leftClick?f.leftClick:null;this.functions.pointerMove=f.pointerMove?f.pointerMove:null;this.functions.featureClick=f.featureClick?f.featureClick:null;this.functions.changeZoom=f.changeZoom?f.changeZoom:null;this.functions.zoomInClick=f.zoomInClick?f.zoomInClick:null;this.functions.zoomOutClick=f.zoomOutClick?f.zoomOutClick:null;this.map=null;this.clickableFeaturesLayerList=
1371["GEOAPI_MARKERS"];this.cursorFeatureLayerList=["GEOAPI_MARKERS"]};geoapi.BaseMap.prototype.addFeatureToLayer=function(f,n){if(this.layers[f])return this.layers[f].getSource().addFeature(n);throw Error("Layer not found");};geoapi.BaseMap.prototype.removeInteraction=function(f){f&&this.map.removeInteraction(f)};geoapi.BaseMap.prototype.getMarkerLayer=function(){return this.markersLayer};
1372geoapi.BaseMap.prototype.isPointInPoly_=function(f,n){n=[[n[0],n[1]],[n[0],n[3]],[n[2],n[3]],[n[2],n[1]]];var A=f[0];f=f[1];for(var q=!1,z=0,t=n.length-1;z<n.length;t=z++){var G=n[z][0],D=n[z][1],E=n[t][0];t=n[t][1];D>f!=t>f&&(E-G)*(f-D)/(t-D)+G>A&&(q=!q)}return q};geoapi.BaseMap.prototype.addInteraction=function(f){this.map.addInteraction(f)};geoapi.BaseMap.prototype.addMarker=function(f){this.baseMaps.enableCluster?this.markersLayer.getSource().getSource().addFeature(f):this.markersLayer.getSource().addFeature(f)};
1373geoapi.BaseMap.prototype.addFeature=function(f){this.baseMaps.enableCluster?this.markersLayer.getSource().getSource().addFeature(f):this.markersLayer.getSource().addFeature(f)};geoapi.BaseMap.prototype.addOverlay=function(f){this.map.addOverlay(f)};geoapi.BaseMap.prototype.centerTo=function(f,n){null!=n&&0<n.length&&n!=this.config.projectionMap&&(f=geoapi.proj4(n,this.config.projectionMap,f));this.map.getView().setCenter(f)};
1374geoapi.BaseMap.prototype.centerToIf=function(f,n){null!=n&&0<n.length&&n!=this.config.projectionMap&&(f=geoapi.proj4(n,this.config.projectionMap,f));this.isPointInPoly_(f,this.map.getView().calculateExtent(this.map.getSize()))||this.map.getView().setCenter(f)};
1375geoapi.BaseMap.prototype.createVectorLayer=function(f,n,A){return this.getLayerByName(f)?null:(this.layers[f]=new ol.layer.Vector({source:new ol.source.Vector,renderBuffer:A||100}),this.layers[f].name=f,this.map.addLayer(this.layers[f]),n&&(this.clickableFeaturesLayerList.push(f),this.cursorFeatureLayerList.push(f)),this.markersLayer&&this.setLayerTop(this.markersLayer),this.getLayerByName(f))};
1376geoapi.BaseMap.prototype.deleteMarkersLayer=function(f){this.layers[f]?this.layers[f].getSource().clear():this.markersLayer.getSource().clear()};geoapi.BaseMap.prototype.fitCoords=function(f,n,A){null!=n&&0<n.length&&this.config.projectionMap!=n&&(f=ol.proj.transform(f,n,this.config.projectionMap));this.map.getView().setCenter(f);A&&"number"==typeof A&&this.map.getView().getZoom()>A&&this.map.getView().setZoom(A)};
1377geoapi.BaseMap.prototype.fitBounds=function(f,n,A,q){try{null!=n&&0<n.length&&this.config.projectionMap!=n&&(f=ol.proj.transformExtent(f,n,this.config.projectionMap));var z=this.map.getSize();"number"==typeof q?q=[q,q,q,q]:("object"!=typeof q||"object"==typeof q&&4!=q.length)&&(q=[0,0,0,0]);var t=new ol.geom.LineString([[f[0],f[1]],[f[2],f[3]]]);this.map.getView().fitGeometry(t,z,{constraintResolution:!1,nearest:!1,padding:q});A&&"number"==typeof A&&this.map.getView().getZoom()>A&&this.map.getView().setZoom(A)}catch(G){}};
1378geoapi.BaseMap.prototype.fitCoordIfLimits=function(f,n,A){null!=n&&0<n.length&&this.config.projectionMap!=n&&(f=ol.proj.transform(f,n,this.config.projectionMap));n=this.map.getView().getResolution();A=ol.extent.buffer(ol.extent.boundingExtent([f]),A*n);ol.extent.containsExtent(this.map.getView().calculateExtent(this.map.getSize()),A)||this.fitCoords(f)};geoapi.BaseMap.prototype.getContainer=function(){return this.dom.parentDiv};
1379geoapi.BaseMap.prototype.getExtensionMarkers=function(){return this.baseMaps.enableCluster?this.markersLayer.getSource().getSource().getExtent():this.markersLayer.getSource().getExtent()};
1380geoapi.BaseMap.prototype.getFeatureLine=function(f,n,A,q,z,t,G){var D;"string"==typeof f?D=geoapi.MapUtils.decodeFeature(f,this.config.projectionMap):(D=[],f.forEach(function(w,v,C){D[v]=geoapi.proj4(n,this.config.projectionMap,w)},this));z=z?z:5;t=t?parseInt(t):1;f=[];var E=new ol.Feature({geometry:new ol.geom.LineString(D)});return null!=q&&f.push(new ol.style.Style({stroke:new ol.style.Stroke({color:q,width:z+3,lineDash:G?[1,10]:void 0}),zIndex:t+1}
1380)),f.push(new ol.style.Style({stroke:new ol.style.Stroke({color:A,
1381width:z,lineDash:G?[1,10]:void 0}),zIndex:q?t+2:1})),E.setStyle(f),E};
1382geoapi.BaseMap.prototype.getFeaturePoint=function(f,n,A,q,z,t){null!=n&&0<n.length&&this.config.projectionMap!=n&&(f=ol.proj.transform(f,n,this.config.projectionMap));"string"!=typeof t&&(t=q,z=0);"number"!=typeof z&&(z=5);var G;f=new ol.Feature(new ol.geom.Point(f));return G=new ol.style.Style({image:new ol.style.Circle({radius:A,fill:new ol.style.Fill({color:q}),stroke:new ol.style.Stroke({color:t,width:z})}),zIndex:800}),f.setStyle(G),f};
1383geoapi.BaseMap.prototype.getLayerIndex=function(f){for(var n=!1,A=0;A<this.map.getLayers().getLength();A++)this.map.getLayers().getArray()[A]===f&&(n=A);return n};geoapi.BaseMap.prototype.getLayerByName=function(f){return this.layers[f]};geoapi.BaseMap.prototype.getMap=function(){return this.map};geoapi.BaseMap.prototype.getMapProjection=function(){return this.map.getView().getProjection().getCode()};geoapi.BaseMap.prototype.getMapContainer=function(){return this.dom.map};
1384geoapi.BaseMap.prototype.getMarker=function(f,n,A){f.proj=f.proj||"EPSG:4326";f=this.config.projectionMap!=f.proj?geoapi.proj4(f.proj,this.config.projectionMap,f.coords):f.coords;f=new ol.Feature({geometry:new ol.geom.Point(f)});"function"!=typeof n?(n=new ol.style.Style({image:new ol.style.Icon({src:n.src,size:n.size,anchor:n.anchor?n.anchor:[.5,1],rotation:n.rotation?n.rotation:0,scale:n.scale?n.scale:1,anchorXUnits:n.anchorXUnits?n.anchorXUnits:"fraction",anchorYUnits:n.anchorXUnits?n.anchorXUnits:
1385"fraction",opacity:n.opacity?n.opacity:1}),zIndex:1E3}),f.setStyle(n)):f.setStyle(n);return f.set("name",A),f};geoapi.BaseMap.prototype.getMarkerAtPixel=function(f){var n=this,A=[];return this.map.forEachFeatureAtPixel(f,function(q,z){A.push(q)},null,function(q){return 0<=n.clickableFeaturesLayerList.indexOf(q.name)}),A};
1386geoapi.BaseMap.prototype.getClosestFeature=function(f,n){if(n||=!1,this.markersLayer){if(n=this.baseMaps.enableCluster&&n&&this.baseMaps.enableCluster?this.markersLayer.getSource().getSource().getClosestFeatureToCoordinate(f):this.markersLayer.getSource().getClosestFeatureToCoordinate(f)){var A=this.map.getView().getResolution();var q=n.getGeometry()instanceof ol.geom.Point?n.getGeometry().getCoordinates():ol.extent.getCenter(n.getGeometry().getExtent().getCoordinates());(Math.abs(parseInt(f[0]-q[0]))>
138710*A||Math.abs(parseInt(f[1]-q[1]))>10*A)&&(n=null)}return n}return null};geoapi.BaseMap.prototype.hideLayer=function(f){this.layers[f]&&this.layers[f].setVisible(!1)};geoapi.BaseMap.prototype.isClusterActivated=function(){return this.baseMaps.enableCluster};
1388geoapi.BaseMap.prototype.moveMarker=function(f,n,A,q,z,t){var G=q?q:2E3;q=z?z:100;var D=(new Date).getTime();z=G/q;var E=f.getGeometry().getCoordinates(),w=geoapi.proj4(A,this.config.projectionMap,n),v=(w[0]-E[0])/q,C=(w[1]-E[1])/q,K=E[0],N=E[1],J=function(ia){clearInterval(I);f.getGeometry().setCoordinates(w);t&&t()},V=0,I=setInterval(function(){(new Date).getTime()-D>=G?J(I):(K+=v,N+=C,5>Math.abs(w[0]-K)||5>Math.abs(w[1]-N)?J(I):f.getGeometry().setCoordinates([K,N]));V++},.95*z)};
1389geoapi.BaseMap.prototype.removeLayer=function(f){if(this.layers[f]){this.deleteMarkersLayer(f);this.map.removeLayer(this.getLayerByName(f));var n=this.clickableFeaturesLayerList.indexOf(f),A=this.cursorFeatureLayerList.indexOf(f);0<=n&&this.clickableFeaturesLayerList.splice(n,1);0<=A&&this.cursorFeatureLayerList.splice(A,1);this.layers[f]=null}};
1390geoapi.BaseMap.prototype.removeMarker=function(f){var n=this.baseMaps.enableCluster?this.markersLayer.getSource().getSource():this.markersLayer.getSource();0<n.getFeatures().length&&n.removeFeature(f)};geoapi.BaseMap.prototype.setLayerBottom=function(f){if("string"==typeof f&&(f=this.getLayerByName(f)),"object"!=typeof f)throw Error("Layer is not an object");var n=this.getLayerIndex(f);0!=n&&(this.map.getLayers().getArray().splice(n,1),this.map.getLayers().getArray().splice(0,0,f),this.map.updateSize())};
1391geoapi.BaseMap.prototype.setLayerDown=function(f){if("string"==typeof f&&(f=this.getLayerByName(f)),"object"!=typeof f)throw Error("Layer is not an object");var n=this.getLayerIndex(f);if(0!=n&&0!=n){var A=this.map.getLayers().getArray()[n-1];this.map.getLayers().getArray()[n-1]=f;this.map.getLayers().getArray()[n]=A;this.map.updateSize()}};
1392geoapi.BaseMap.prototype.setLayerTop=function(f){if("string"==typeof f&&(f=this.getLayerByName(f)),"object"!=typeof f)throw Error("Layer is not an object");
1392if(0!=this.getLayerIndex(f)){var n=this.map.getLayers().getLength();this.map.getLayers().remove(f);this.map.getLayers().insertAt(n,f)}};
1393geoapi.BaseMap.prototype.setLayerUp=function(f){if("string"==typeof f&&(f=this.getLayerByName(f)),"object"!=typeof f)throw Error("Layer is not an object");var n=this.getLayerIndex(f);if(0!=n&&n+1<this.map.getLayers().getLength()){var A=this.map.getLayers().getArray()[n+1];this.map.getLayers().getArray()[n+1]=f;this.map.getLayers().getArray()[n]=A;this.map.updateSize()}};geoapi.BaseMap.prototype.showLayer=function(f){this.layers[f]&&this.layers[f].setVisible(!0)};
1394geoapi.BaseMap.prototype.toogleCluster=function(){this.markersLayer&&(this.map.removeLayer(this.markersLayer),this.markersLayer=this.baseMaps.enableCluster?new ol.layer.Vector({source:this.markersLayer.getSource().getSource(),opacity:1,visible:!0}):new ol.layer.AnimatedCluster({name:"GEOAPI_MARKERS",opacity:1,visible:!0,source:new ol.source.Cluster({distance:this.baseMaps.distanceCluster,source:this.markersLayer.getSource()}),style:this.baseMaps.styleCluster}),this.markersLayer.name="GEOAPI_MARKERS",
1395this.map.addLayer(this.markersLayer),this.baseMaps.enableCluster=!this.baseMaps.enableCluster)};geoapi.BaseMap.prototype.updateSize=function(f){var n=this.map.getSize();f||=[];f[0]=f[0]?f[0]:n[0];f[1]=f[1]?f[1]:n[1];this.dom.parentDiv.css({height:f[1],width:f[0]});this.config.gmMode?(this.map.setSize(f),google.maps.event.trigger(this.gmap,"resize"),this.map.getView().setCenter(this.map.getView().getCenter())):this.map.updateSize()};
1396geoapi.Map=function(f){geoapi.BaseMap.call(this,f);this.config.minMapZoom=f.minMapZoom?f.minMapZoom:11;this.config.maxMapZoom=f.maxMapZoom?f.maxMapZoom:20;this.config.bcnExtent=f.extent?f.extent:[2.2148208302084074,41.34834335209742,2.087442290169345,41.42844106806185];this.config.gmMode="undefined"==typeof f.gmMode||null==f.gmMode?!0:f.gmMode;this.config.gmImageLocation=f.gmImageLocation?f.gmImageLocation:window.pathTheme+"/images/powered-by-google-on-white.png";this.config.styleGoogleMaps=[{featureType:"transit",
1397stylers:[{visibility:"off"}]},{featureType:"poi.business",stylers:[{visibility:"off"}]}];this.config.breakpointMobile=f.breakpointMobile?f.breakpointMobile:465;this.baseMaps.tmbSoft=null;this.baseMaps.tmbCarto=null;this.baseMaps.baseMapStart=f.baseMap;this.dom.gmap=null;this.dom.gimage=null;null!=f.wmsLayers&&"undefined"!=typeof f.wmsLayers||(f.wmsLayers=["PARADES_BUS","PARADES_METRO","TRAFFIC"]);this.wmsInfo={};this.wmsInfo.layers=f.wmsLayers;this.wmsInfo.urlServerMapsWMS=f.serverWMS?f.serverWMS:
1398["https://api1.tmb.cat/v1/maps/wms","https://api2.tmb.cat/v1/maps/wms","https://api3.tmb.cat/v1/maps/wms"];this.wmsInfo.urlServerMapsWFS=f.serverWFS?f.serverWFS:"https://api.tmb.cat/v1/maps/wfs";this.wmsInfo.urlServerMapsGWC=f.serverGWC?f.serverGWC:["https://api1.tmb.cat/v1/maps/gwc/wms","https://api2.tmb.cat/v1/maps/gwc/wms","https://api3.tmb.cat/v1/maps/gwc/wms"];this.wmsInfo.limits={wms_fons:[5E4,50],accessos_fisics:[2500,50],accessos:[15E3,2500],estacions_linia:[15E3,50],estacions:[5E4,15E3],
1399parades_actives:[25E3,50]};this.wmsLayers={};this.gmap=null;this.print=!1;this.createDivs_();this.inicialize_()};geoapi.Map.prototype=Object.create(geoapi.BaseMap.prototype);
1400geoapi.Map.prototype.createDivs_=function(){this.dom.parentDiv.addClass("mapContainer");this.dom.map=geoapi.jQuery("\x3cdiv /\x3e").addClass("map").appendTo(this.dom.parentDiv);this.dom.gmap=geoapi.jQuery("\x3cdiv /\x3e").addClass("gmap").appendTo(this.dom.parentDiv);this.config.gmMode?(this.dom.gimage=geoapi.jQuery("\x3cdiv /\x3e").addClass("gmapLogo").appendTo(this.dom.parentDiv),geoapi.jQuery("\x3cimg /\x3e").attr("alt","Powered by Google").attr("src",this.config.gmImageLocation).appendTo(this.dom.gimage)):
1401this.dom.gmap.hide()};
1402geoapi.Map.prototype.createWMSLayers_=function(){var f=[];return-1<this.wmsInfo.layers.indexOf("PARADES_BUS")&&(this.wmsLayers.PARADES_BUS=new ol.layer.Tile({source:new ol.source.TileWMS({params:{LAYERS:"PARADES_ACTIVES",FORMAT:"image/png",VERSION:"1.1.1",buffer:10,app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,CQL_FILTER:"TIPIFICACIO_PARADA NOT IN ('X') and NOM_TIPUS_PARADA NOT IN ('MONBBT')"},urls:this.wmsInfo.urlServerMapsWMS}),minResolution:geoapi.MapUtils.scale2Resolution(this.wmsInfo.limits.wms_fons[1],this.config.projectionMap),
1403maxResolution:geoapi.MapUtils.scale2Resolution(this.wmsInfo.limits.wms_fons[0],this.config.projectionMap)}),this.wmsLayers.PARADES_BUS.name="PARADES_BUS",f.push(this.wmsLayers.PARADES_BUS),f.push(this.createMouseOverLayer_("PARADES_BUS","PARADES_ACTIVES")),this.config.debug),-1<this.wmsInfo.layers.indexOf("PARADES_METRO")&&(this.wmsLayers.PARADES_METRO=new ol.layer.Tile({source:new ol.source.TileWMS({params:{LAYERS:"ESTACIONS_I_ACCESSOS",FORMAT:"image/png",VERSION:"1.1.1",buffer:10,app_key:this.config.appKeyTMB,
1404app_id:this.config.appIdTMB},urls:this.wmsInfo.urlServerMapsWMS}),minResolution:geoapi.MapUtils.scale2Resolution(this.wmsInfo.limits.wms_fons[1],this.config.projectionMap),maxResolution:geoapi.MapUtils.scale2Resolution(this.wmsInfo.limits.wms_fons[0],this.config.projectionMap)}),this.wmsLayers.PARADES_METRO.name="PARADES_METRO",f.push(this.wmsLayers.PARADES_METRO),f=f.concat(this.createMouseOverLayer_("PARADES_METRO",["ESTACIONS_LINIA","ACCESSOS_FISICS","ACCESSOS","ESTACIONS"])),this.config.debug),
1405f};
1406geoapi.Map.prototype.createMouseOverLayer_=function(f,n){var A=this,q=this.config.debug?.7:.01,z={ACCESSOS_FISICS:[220,36,31,q],ACCESSOS:[159,197,77,q],ESTACIONS_LINIA:[137,71,150,q],ESTACIONS:[0,171,255,q],PARADES_ACTIVES:[255,219,0,q]},t=[254,254,254,q];q=function(E){var w=A.wmsInfo.urlServerMapsWFS+"?app_key\x3d"+A.config.appKeyTMB;w+="\x26app_id\x3d"+A.config.appIdTMB;w=w+"\x26REQUEST\x3dGetFeature\x26TYPENAME\x3d"+E+"\x26outputFormat\x3djson";w+="\x26srsName\x3d"+A.config.projectionMap;w+="PARADES_BUS"==
1407f?"\x26CQL_FILTER\x3dTIPIFICACIO_PARADA NOT IN ('X')":"";E=new ol.layer.Vector({source:new ol.source.Vector({url:w,format:new ol.format.GeoJSON}),minResolution:geoapi.MapUtils.scale2Resolution(A.wmsInfo.limits[E.toLowerCase()][1],A.config.projectionMap),maxResolution:geoapi.MapUtils.scale2Resolution(A.wmsInfo.limits[E.toLowerCase()][0],A.config.projectionMap),style:new ol.style.Style({image:new ol.style.Circle({radius:6,fill:new ol.style.Fill({color:z[E]}),stroke:new ol.style.Stroke({color:t,width:2})})})});
1408return E.name=f,E.clicable=!0,E};var G=[];if("string"==typeof n)G=q(n);else if(1==n.length)G=q(n[0]);else for(var D in n)G.push(q(n[D]));return this.clickableFeaturesLayerList.push(f),this.cursorFeatureLayerList.push(f),this.layers[f]=G,G};
1409geoapi.Map.prototype.inicialize_=function(){var f=[];
1409this.wmsInfo.urlServerMapsVTS="https://api.tmb.cat/v1/maps/vts/xyz/tmb-basic/{z}/{x}/{y}.png?app_id\x3d"+this.config.appIdTMB+"\x26app_key\x3d"+this.config.appKeyTMB;this.baseMaps.tmbCarto=new ol.layer.Tile({title:"TMB Carto",type:"base",source:new ol.source.XYZ({url:this.wmsInfo.urlServerMapsVTS})});f.push(this.baseMaps.tmbCarto);f=f.concat(this.createWMSLayers_());this.wmsLayers.XARXA_METRO=1<this.wmsInfo.urlServerMapsWMS.length?new ol.layer.Tile({source:new ol.source.TileWMS({params:{LAYERS:"XARXA_METRO",
1410FORMAT:"image/png",VERSION:"1.1.1",TRANSPARENT:!0,app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB},urls:this.wmsInfo.urlServerMapsWMS})}):new ol.layer.Image({source:new ol.source.ImageWMS({params:{LAYERS:"XARXA_METRO",FORMAT:"image/png",VERSION:"1.1.1",TRANSPARENT:!0,app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB},url:this.wmsInfo.urlServerMapsWMS[0]})});this.wmsLayers.XARXA_METRO.name="XARXA_METRO";this.wmsLayers.XARXA_METRO.setVisible(!1);f.push(this.wmsLayers.XARXA_METRO);
1411this.config.debug;this.wmsLayers.XARXA_BUS=1<this.wmsInfo.urlServerMapsWMS.length?new ol.layer.Tile({source:new ol.source.TileWMS({params:{LAYERS:"XARXA_BUS",FORMAT:"image/png",VERSION:"1.1.1",app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB},urls:this.wmsInfo.urlServerMapsWMS})}):new ol.layer.Image({source:new ol.source.ImageWMS({params:{LAYERS:"XARXA_BUS",FORMAT:"image/png",TRANSPARENT:!0,app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB},url:this.wmsInfo.urlServerMapsWMS[0]})});
1412this.wmsLayers.XARXA_BUS.name="XARXA_BUS";this.wmsLayers.XARXA_BUS.setVisible(!1);f.push(this.wmsLayers.XARXA_BUS);this.config.debug;this.wmsLayers.XARXA_BAD=1<this.wmsInfo.urlServerMapsWMS.length?new ol.layer.Tile({source:new ol.source.TileWMS({params:{LAYERS:"XARXA_BAD",FORMAT:"image/png",VERSION:"1.1.1",app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB},urls:this.wmsInfo.urlServerMapsWMS})}):new ol.layer.Image({source:new ol.source.ImageWMS({params:{LAYERS:"XARXA_BAD",FORMAT:"image/png",
1413TRANSPARENT:!0,app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB},url:this.wmsInfo.urlServerMapsWMS[0]})});this.wmsLayers.XARXA_BAD.name="XARXA_BAD";this.wmsLayers.XARXA_BAD.setVisible(!1);f.push(this.wmsLayers.XARXA_BAD);this.config.debug;this.markersLayer=this.baseMaps.enableCluster?new ol.layer.AnimatedCluster({name:"GEOAPI_MARKERS",opacity:1,visible:!0,source:new ol.source.Cluster({distance:this.baseMaps.distanceCluster,source:new ol.source.Vector({})}),style:this.baseMaps.styleCluster}):
1414new ol.layer.Vector({source:new ol.source.Vector({}),opacity:1,visible:!0});this.markersLayer.name="GEOAPI_MARKERS";f.push(this.markersLayer);this.config.debug;this.config.gmMode&&(this.gmap=new google.maps.Map(this.dom.gmap[0],{mapTypeId:google.maps.MapTypeId.ROADMAP,disableDefaultUI:!0,keyboardShortcuts:!1,draggable:!1,disableDoubleClickZoom:!0,scrollwheel:!1,streetViewControl:!1,panControl:!1,styles:this.config.styleGoogleMaps,mapTypeControlOptions:{mapTypeIds:["blank",google.maps.MapTypeId.ROADMAP,
1415google.maps.MapTypeId.SATELLITE]}}),this.gmap.mapTypes.set("blank",new geoapi.GMBlank(new google.maps.Size(256,256))),this.dom.gimage.hide(),-1<this.wmsInfo.layers.indexOf("TRAFFIC")&&(this.wmsLayers.TRAFFIC=new google.maps.TrafficLayer));var n=new ol.View({minZoom:this.config.minMapZoom,maxZoom:this.config.maxMapZoom,projection:this.config.projectionMap}),A=this;if(this.config.gmMode){var q=function(z){return 1<z.touches.length&&z.preventDefault(),!1};document.body.addEventListener("touchmove",q,
1416!0);this.dom.gmap[0].addEventListener("touchmove",q,!0);n.on("change:center",function(z){try{var t=ol.proj.transform(n.getCenter(),A.config.projectionMap,"EPSG:4326");A.gmap.setCenter(new google.maps.LatLng(t[1],t[0]))}catch(G){}});n.on("change:resolution",function(){try{A.gmap.setZoom(n.getZoom()),A.functions.changeZoom&&A.functions.changeZoom()}catch(z){}});geoapi.jQuery(window).resize(function(){var z=ol.proj.transform(n.getCenter(),A.config.projectionMap,"EPSG:4326");A.gmap.setCenter(new google.maps.LatLng(z[1],
1417z[0]))});google.maps.event.addListenerOnce(A.gmap,"idle",function(){})}else n.on("change:resolution",function(){A.functions.changeZoom&&A.functions.changeZoom()});this.map=new ol.Map({layers:f,interactions:ol.interaction.defaults({altShiftDragRotate:!1,pinchRotate:!1,dragPan:!1}).extend([new ol.interaction.DragPan({kinetic:null})]),target:this.dom.map[0],view:n,logo:!1});this.baseMaps.baseMapStart&&this.setBaseMap(this.baseMaps.baseMapStart);this.config.debug;this.dom.map.bind("contextmenu",function(z){z.preventDefault()});
1418this.dom.map.bind("mousedown",function(z){z.preventDefault();2!=z.button?null!=A.functions.rightClick&&A.functions.rightClick(z,A.map):null!=A.functions.leftClick&&A.functions.leftClick(z,A.map)});this.map.on("pointermove",function(z){if(!z.dragging){var t=A.map.getEventPixel(z.originalEvent);t=A.map.hasFeatureAtPixel(t,function(G){return 0<=A.cursorFeatureLayerList.indexOf(G.name)});A.map.getTarget().style.cursor=t?"pointer":"";null!=A.functions.pointerMove&&A.functions.pointerMove(z,A.map)}});this.map.on("singleclick",
1419function(z){null!=A.functions.featureClick&&A.functions.featureClick(z,A.map,A.config);z.preventDefault()});this.config.gmMode&&(this.dom.map.detach(),this.gmap.controls[google.maps.ControlPosition.TOP_LEFT].push(this.dom.map[0]));f=ol.proj.transformExtent(this.config.bcnExtent,"EPSG:4326",this.config.projectionMap);n.fitExtent(f,this.map.getSize());f=this.dom.map.find(".ol-zoom.ol-control button.ol-zoom-in");q=this.dom.map.find(".ol-zoom.ol-control button.ol-zoom-out");geoapi.jQuery(f).bind("click",
1420function(z){null!=A.functions.zoomInClick&&A.functions.zoomInClick(z)});geoapi.jQuery(q).bind("click",function(z){null!=A.functions.zoomOutClick&&A.functions.zoomOutClick(z)})};geoapi.Map.prototype.toRadians_=function(f){return f*Math.PI/180};
1421geoapi.Map.prototype.centerToAddedFeatures=function(f){this.baseMaps.enableCluster?this.fitBounds(this.markersLayer.getSource().getSource().getExtent(),this.config.projectionMap,void 0,f):this.fitBounds(this.markersLayer.getSource().getExtent(),this.config.projectionMap,void 0,f)};geoapi.Map.prototype.getGMap=function(){return null==this.gmap?this.gmapLogo:this.gmap};geoapi.Map.prototype.getGMapContainer=function(){return this.dom.gmap};
1422geoapi.Map.prototype.getLayerByName=function(f){return this.layers[f]||this.wmsLayers[f]};
1423geoapi.Map.prototype.getMarkerAtPixel=function(f){var n=this,A=this.map.forEac
1423hFeatureAtPixel(f,function(q,z){return[q,z]},null,function(q){return 0<=n.clickableFeaturesLayerList.indexOf(q.name)});return A?this.wmsLayers[A[1].name]?(A=this.wmsLayers[A[1].name],f=this.map.getCoordinateFromPixel(f),{url:A.getSource().getGetFeatureInfoUrl(f,this.map.getView().getResolution(),this.config.projectionMap,{INFO_FORMAT:"application/json"}),maxResolution:A.getMaxResolution(),name:A.name,type:"WMS"}):A[0]:null};
1424geoapi.Map.prototype.hideLayer=function(f){this.layers[f]&&(this.layers[f]instanceof Array?this.layers[f].forEach(function(n){n.setVisible(!1)}):this.layers[f].setVisible(!1));this.wmsLayers[f]&&("TRAFFIC"==f?this.gmap&&this.wmsLayers[f].setMap(null):this.wmsLayers[f].setVisible(!1))};geoapi.Map.prototype.isPrintMode=function(f){return this.print};
1425geoapi.Map.prototype.refreshWmsBusLines=function(f){this.wmsLayers.XARXA_BUS&&(f&&0<f.length?(this.wmsLayers.XARXA_BUS.setVisible(!0),this.wmsLayers.XARXA_BUS.getSource().updateParams({CQL_FILTER:"CODI_LINIA IN ("+f+")"})):this.wmsLayers.XARXA_BUS.setVisible(!1))};geoapi.Map.prototype.refreshWmsBusOnDemand=function(f){this.wmsLayers.XARXA_BAD&&(f&&0<f.length?(this.wmsLayers.XARXA_BAD.setVisible(!0),this.wmsLayers.XARXA_BAD.getSource().updateParams({CQL_FILTER:"CODI_LINIA IN ("+f+")"})):this.wmsLayers.XARXA_BAD.setVisible(!1))};
1426geoapi.Map.prototype.refreshWmsMetroLines=function(f){this.wmsLayers.XARXA_METRO&&(f&&0<f.length?(this.wmsLayers.XARXA_METRO.setVisible(!0),this.wmsLayers.XARXA_METRO.getSource().updateParams({CQL_FILTER:"CODI_LINIA IN ("+f+")"})):this.wmsLayers.XARXA_METRO.setVisible(!1))};
1427geoapi.Map.prototype.setBaseMap=function(f){if(!this.config.gmMode&&("ROADMAP"==f||"SATELLITE"==f))throw"No GoogleMaps loaded.";if("ROADMAP"==f||"SATELLITE"==f)this.baseMaps.tmbSoft.setVisible(!1),this.baseMaps.tmbCarto.setVisible(!1),this.gmap.setMapTypeId(google.maps.MapTypeId[f]);else if("SOFT_TMB"==f)this.config.gmMode&&this.gmap.setMapTypeId("blank"),this.baseMaps.tmbCarto.setVisible(!1),this.baseMaps.tmbSoft.setVisible(!0);else{if("CARTO_TMB"==f)this.config.gmMode&&this.gmap.setMapTypeId("blank"),
1428this.baseMaps.tmbCarto.setVisible(!0);else{if("NO_MAP"!=f)throw"Bad base map name.";this.config.gmMode&&this.gmap.setMapTypeId("blank");this.baseMaps.tmbCarto.setVisible(!1)}this.baseMaps.tmbSoft.setVisible(!1)}};geoapi.Map.prototype.setPrint=function(f){this.print=f};
1429geoapi.Map.prototype.showLayer=function(f){this.layers[f]&&(this.layers[f]instanceof Array?this.layers[f].forEach(function(n){n.setVisible(!0)}):this.layers[f].setVisible(!0));this.wmsLayers[f]&&("TRAFFIC"==f?this.gmap&&this.wmsLayers[f].setMap(this.gmap):this.wmsLayers[f].setVisible(!0))};
1430geoapi.SynopticMap=function(f){geoapi.BaseMap.call(this,f);this.config.projectionMap="EPSG:23031";this.config.svgFolder=f.svgFolder||"./img/svg/";this.config.svgFolder.endsWith("/")||(this.config.svgFolder+="/");this.config.gmImageLocation=window.pathTheme+"/images/powered-by-google-on-white.png";this.config.serverTMB=f.serverTMB||"https://tmbapi.tmb.cat/v1";this.config.placesStyleFunction=f.getPlacesStyle;this.config.isIE11=!!window.MSInputMethodContext&&!!document.documentMode;this.dom.gimage=null;
1431this.baseMaps.svgFons=[];this.IMAGE_SIZE=[585,411];this.IMAGE_EXTENT=[431865.557576,4571378.85886,441985.456834,4578469.67263];this.metrorList={1:{CODI_LINIA:1,ORDRE_SVG:6,OPACITY:1,VISIBLE:!0,STATIC_METRO:[434445,4577358]},2:{CODI_LINIA:2,ORDRE_SVG:8,OPACITY:1,VISIBLE:!0,STATIC_METRO:[434748,4577358]},3:{CODI_LINIA:3,ORDRE_SVG:5,OPACITY:1,VISIBLE:!0,STATIC_METRO:[435087,4577358]},4:{CODI_LINIA:4,ORDRE_SVG:4,OPACITY:1,VISIBLE:!0,STATIC_METRO:[435394,4577358]},5:{CODI_LINIA:5,ORDRE_SVG:3,OPACITY:1,
1432VISIBLE:!0,STATIC_METRO:[435702,4577358]},94:{CODI_LINIA:94,ORDRE_SVG:7,OPACITY:1,VISIBLE:!0,STATIC_METRO:[436009,4577358]},91:{CODI_LINIA:91,ORDRE_SVG:2,OPACITY:1,VISIBLE:!0},10:{CODI_LINIA:10,ORDRE_SVG:1,OPACITY:1,VISIBLE:!0},11:{CODI_LINIA:11,ORDRE_SVG:0,OPACITY:1,VISIBLE:!0}};this.placesList=[];var n=this;this.inicializeDivs_();this.inicialize_();this.inicializeData_().then(function(){n.inicializeLayers_()})};geoapi.SynopticMap.prototype=Object.create(geoapi.BaseMap.prototype);
1433geoapi.SynopticMap.prototype.getMetroLines_=function(){var f=(this.metrorList,geoapi.jQuery.Deferred()),n=this;
1433return geoapi.jQuery.ajax(this.config.serverTMB+"/transit/linies/metro/",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,propertyName:"ID_LINIA,CODI_LINIA,NOM_LINIA,DESC_LINIA,ORIGEN_LINIA,DESTI_LINIA,COLOR_LINIA,COLOR_TEXT_LINIA,ID_OPERADOR,ORDRE_FAMILIA,NOM_TIPUS_TRANSPORT,ORDRE_LINIA",sortBy:"ORDRE_LINIA",srsName:this.config.projectionMap}}).done(function(A){if(!A.error)for(var q,
1434z=0;q=A.features[z];z++){var t=q.properties.NOM_LINIA,G=q.properties.NOM_TIPUS_TRANSPORT,D=(new RegExp(/([A-Z]+)([0-9]+)/)).exec(t);"FUNICULAR"!==G.toUpperCase()&&(null===D?q.properties.NOM_LINIA_TEXT=t:(q.properties.NOM_LINIA_TEXT=D[0],q.properties.NOM_LINIA_LLETRA=t.replace(D[0],"")),n.metrorList[q.properties.CODI_LINIA]=geoapi.jQuery.extend(n.metrorList[q.properties.CODI_LINIA]||{},q.properties))}f.resolve()}).fail(function(A,q){f.resolve()}),f.promise()};
1435geoapi.SynopticMap.prototype.getMetroPlaces_=function(f){var n=f?"linies/"+f.CODI_LINIA+"/":"",A=geoapi.jQuery.Deferred(),q=this;return geoapi.jQuery.ajax("https://tmbapi.tmb.cat/dev/transit/schematic/"+n+"emplacaments",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB}}).done(function(z){if(!z.error)for(var t in z.features){var G=z.features[t],D=geoapi.findIndex(q.placesList,function(E){return G.properties.ID_EMPLACAMENT==E.properties.ID_EMPLACAMENT});delete G.properties.CODI_LINIA;
1436delete G.properties.PICTO;G.properties.LINIES=f?[f]:[];0>D?q.placesList.push(G):0<=D&&f&&q.placesList[D].properties.LINIES.push(f)}A.resolve()}).fail(function(z,t){A.resolve()}),A.promise()};
1437geoapi.SynopticMap.prototype.inicializeData_=function(){var f=geoapi.jQuery.Deferred(),n=this;return this.getMetroLines_().then(function(A){var q=0,z=1,t;for(t in n.metrorList)z++,n.getMetroPlaces_(n.metrorList[t]).then(function(){q++;q>=z&&f.resolve()});n.getMetroPlaces_().then(function(){q++;q>=z&&f.resolve()})}),f.promise()};
1438geoapi.SynopticMap.prototype.inicializeDivs_=function(){this.dom.parentDiv.addClass("mapContainer");this.dom.map=geoapi.jQuery("\x3cdiv /\x3e").addClass("map").appendTo(this.dom.parentDiv);this.dom.gimage=geoapi.jQuery("\x3cdiv /\x3e").addClass("gmapLogo").appendTo(this.dom.parentDiv).hide();geoapi.jQuery("\x3cimg /\x3e").attr("alt","Powered by Google").attr("src",this.config.gmImageLocation).appendTo(this.dom.gimage)};
1439geoapi.SynopticMap.prototype.inicializeLayers_=function(){var f=this.createSvgLayer_(this.IMAGE_EXTENT,this.IMAGE_SIZE);this.config.debug;this.map.addLayer(f);this.setLayerBottom(f);f=this.createVectorLayer("EMPLACAMENTS",!0,500);var n=this,A;for(A in this.placesList){var q=new ol.Feature(new ol.geom.Point(this.placesList[A].geometry.coordinates));q.setStyle(function(z){return n.getPlacesStyle_(this,z)});q.name="EMPLACAMENT";q.info=this.placesList[A].properties;f.getSource().addFeature(q)}};
1440geoapi.SynopticMap.prototype.createSvgLayer_=function(f,n){var A=this,q=[],z=Object.keys(this.metrorList).map(function(E){return A.metrorList[E]});z=geoapi.jQuery.extend([],z).sort(function(E,w){return E.ordre-w.ordre});var t=function(E,w){E=E.getImage();E.width=n[0];E.height=n[1];E.src=w};f={url:this.config.svgFolder+"Fondo.svg",projection:this.config.projectionMap,imageExtent:f};this.config.isIE11&&(f.imageLoadFunction=t);this.baseMaps.svgFons.fons=new ol.layer.Image({source:new ol.source.ImageStatic(f)});
1441this.baseMaps.svgFons.fons.name="SVG FONS";q.push(this.baseMaps.svgFons.fons);this.baseMaps.svgFons.trens=new ol.layer.Vector({source:new ol.source.Vector});this.baseMaps.svgFons.fons.name="SVG TRENS";q.push(this.baseMaps.svgFons.trens);for(var G in z){var D=z[G].CODI_LINIA;if(f.url=this.config.svgFolder+z[G].NOM_LINIA+".svg",this.config.isIE11&&(f.imageLoadFunction=t),this.baseMaps.svgFons[D]=new ol.layer.Image({source:new ol.source.ImageStatic(f)}),this.baseMaps.svgFons[D].name="SVG "+z[G].NOM_LINIA,
1442this.baseMaps.svgFons[D].setOpacity(z[G].OPACITY),this.baseMaps.svgFons[D].setVisible(z[G].VISIBLE),q.push(this.baseMaps.svgFons[D]),z[G].STATIC_METRO)D=new ol.Feature({geometry:new ol.geom.Point(z[G].STATIC_METRO)}),D.setStyle(new ol.style.Style({image:new ol.style.Icon({src:this.config.svgFolder+"metro.png",size:[72,72],scale:.5,anchor:[.5,.5]}),zIndex:1E3})),this.baseMaps.svgFons.trens.getSource().addFeature(D)}return new ol.layer.Group({layers:q})};
1443geoapi.SynopticMap.prototype.refreshPlacesVisibility_=function(){var f=this.getLayerByName("EMPLACAMENTS");if(f){for(var n in f.getSource().getFeatures()){var A=f.getSource().getFeatures()[n];if(A.info){var q=A.info;var z=void 0;A=A.info.LINIES;if(0>=A.length)z=!0;else{var t=!1;for(z in A)t=A[z].VISIBLE||t;z=t}q.VISIBLE=z}}this.getLayerByName("EMPLACAMENTS").changed()}};
1444geoapi.SynopticMap.prototype.getPlacesStyle_=function(f,n){var A=[];return(void 0===f.info.VISIBLE||null===f.info.VISIBLE)&&(f.info.VISIBLE=!0),this.config.placesStyleFunction&&f.info.VISIBLE&&(A=this.config.placesStyleFunction(f,n)),A};
1445geoapi.SynopticMap.prototype.inicialize_=function(){var f=[],n=new ol.View({projection:this.config.projectionMap,center:ol.extent.getCenter(this.IMAGE_EXTENT),zoom:0,resolutions:[8,6,4,2]});this.markersLayer=this.baseMaps.enableCluster?new ol.layer.AnimatedCluster({name:"GEOAPI_MARKERS",opacity:1,visible:!0,source:new ol.source.Cluster({distance:this.baseMaps.distanceCluster,source:new ol.source.Vector({})}),style:this.baseMaps.styleCluster}):new ol.layer.Vector({source:new ol.source.Vector({}),opacity:1,
1446visible:!0});this.markersLayer.name="GEOAPI_MARKERS";f.push(this.markersLayer);this.config.debug;this.map=new ol.Map({layers:f,target:this.dom.map[0],view:n,logo:!1});var A=this;this.dom.map.bind("contextmenu",function(q){A.config.debug;q.preventDefault()});this.dom.map.bind("mousedown",function(q){q.preventDefault();var z=A.map.getEventPixel(q.originalEvent);A.map.getCoordinateFromPixel(z);A.config.debug;2!=q.button?(A.config.debug,null!=A.functions.rightClick&&A.functions.rightClick(q,A.map)):(A.config.debug,
1447null!=A.functions.leftClick&&A.functions.leftClick(q,A.map))});this.map.on("pointermove",function(q){if(!q.dragging){var z=A.map.getEventPixel(q.originalEvent);z=A.map.hasFeatureAtPixel(z,function(t){return 0<=A.cursorFeatureLayerList.indexOf(t.name)});A.map.getTarget().style.cursor=z?"pointer":"";null!=A.functions.pointerMove&&A.functions.pointerMove(q,A.map)}});this.map.on("singleclick",function(q){A.config.debug;null!=A.functions.featureClick&&A.functions.featureClick(q,A.map,A.config);q.preventDefault()});
1448n.on("change:resolution",function(){A.functions.changeZoom&&(A.config.debug,A.functions.changeZoom())});this.config.debug};geoapi.SynopticMap.prototype.getGoogleImatge=function(){return this.dom.gimage};geoapi.SynopticMap.prototype.getSvgLayersList=function(){var f=this;return Object.keys(this.metrorList).map(function(n){return f.metrorList[n]})};
1449geoapi.SynopticMap.prototype.hideBackLine=function(f){this.baseMaps.svgFons[f]&&this.metrorList[f].VISIBLE&&(this.baseMaps.svgFons[f].setVisible(!1),this.metrorList[f].VISIBLE=!1,this.refreshPlacesVisibility_())};geoapi.SynopticMap.prototype.setOpacity=function(f,n){this.baseMaps.svgFons[f]&&(this.config.isIE11?this.baseMaps.svgFons[f].setVisible(1==n):this.baseMaps.svgFons[f].setOpacity(n));this.metrorList[f].OPACITY=n};
1450geoapi.SynopticMap.prototype.showBackLine=function(f){this.baseMaps.svgFons[f]&&!this.metrorList[f].VISIBLE&&(this.baseMaps.svgFons[f].setVisible(!0),this.metrorList[f].VISIBLE=!0,this.refreshPlacesVisibility_())};geoapi.MapUtils={};geoapi.MapUtils.defaultOptions_=function(){return options={},options.precision=5,options.factor=Math.pow(10,options.precision),options.dimension=2,options};
1451geoapi.MapUtils.decodeDeltas_=function(f,n){n=this.defaultOptions_(n);var A=[];f=this.decodeFloats_(f,n);for(var q=0,z=f.length;z>q;)for(var t=0;t<n.dimension;++t,++q)f[q]=Math.round((A[t]=f[q]+(A[t]||0))*n.factor)/n.factor;return f};geoapi.MapUtils.decodeFloats_=function(f,n){f=this.decodeSignedIntegers_(f);for(var A=0,q=f.length;q>A;++A)f[A]/=n.factor;return f};
1452geoapi.MapUtils.decodeSignedIntegers_=function(f){f=this.decodeUnsignedIntegers_(f);for(var n=0,A=f.length;A>n;++n){var q=f[n];f[n]=1&q?~(q>>1):q>>1}return f};geoapi.MapUtils.decodeUnsignedIntegers_=function(f){for(var n=[],A=0,q=0,z=0,t=f.length;t>z;++z){var G=f.charCodeAt(z)-63;A|=(31&G)<<q;32>G?(n.push(A),A=0,q=0):q+=5}return n};geoapi.MapUtils.closeEnoughCoordinates=function(f,n,A){return Math.abs(parseInt(f[0]-n[0]))<=10*A||Math.abs(parseInt(f[1]-n[1]))<=10*A};
1453geoapi.MapUtils.decodeFeature=function(f,n){var A=this.defaultOptions_();f=this.decodeDeltas_(f,A);for(var q=[],z=0,t=f.length;z+(A.dimension-1)<t;){for(var G=[],D=0;D<A.dimension;++D)G.push(f[z++]);q.push(geoapi.proj4("EPSG:4326",n,[G[1],G[0]]))}return q};
1454geoapi.MapUtils.distanceTo=function(f,n){var A=this.toRadians_(f[1]),q=this.toRadians_(f[0]);f=this.toRadians_(n[1]);var z=this.toRadians_(n[0]);n=f-A;q=z-q;A=Math.sin(n/2)*Math.sin(n/2)+Math.cos(A)*Math.cos(f)*Math.sin(q/2)*Math.sin(q/2);return 12742E3*Math.atan2(Math.sqrt(A),Math.sqrt(1-A))};
1455geoapi.MapUtils.getExtendFrom=function(f){switch(f.type){case "MultiLineString":return f=new ol.geom.MultiLineString(f.coordinates),f.getExtent();case "Point":return f=new ol.geom.Point(f.coordinates),f.getExtent();default:return null}};geoapi.MapUtils.scale2Resolution=function(f,n){n=ol.proj.get(n).getUnits();return f/(25.4/.28*ol.proj.METERS_PER_UNIT[n]*39.37)};
1456geoapi.Service=function(f){this.config={};this.config.appKeyTMB=f.appKeyTMB;this.config.appIdTMB=f.appIdTMB;this.config.serverTMB=f.serverTMB?f.serverTMB:"https://api.tmb.cat/v1";this.config.serverTMBTransit=f.serverTMBTransit?f.serverTMBTransit:"https://api.tmb.cat/v1/transit";this.config.serverTMBPlanner=f.serverTMBPlanner?f.serverTMBPlanner:"https://api.tmb.cat/v1/planner";this.config.busAlertsUrl=f.busAlertsUrl?f.busAlertsUrl:"/alerts/bus/channels/WEB";this.config.metroAlertsUrl=f.metroAlertsUrl?
1457f.metroAlertsUrl:"/alerts/metro/channels/WEB";this.config.serverWFS=f.serverWFS||"https://tmbapi.tmb.cat/v1/maps/wfs";this.config.projectionMap=f.projectionMap?f.projectionMap:"EPSG:3857";this.staticAeroport={};this.staticAeroport.aeroportT1LatLng=f.aeroportT1LatLng?f.aeroportT1LatLng:[2.071084018974261,41.288302426507215];this.staticAeroport.aeroportT2LatLng=f.aeroportT2LatLng?f.aeroportT2LatLng:[2.073257405552681,41.30367575635768];this.staticAeroport.portLatLng=f.portLatLng?f.portLatLng:[2.1779946,
145841.3739466];this.staticAeroport.airportNamesSearch=f.airportNamesSearch?f.airportNamesSearch:"airport;air;airp;airpo;airpor;aeropuerto;aeropuert;aeropuer;aeropue;aeropu;aerop;aero;aeroport;aeropor;aeropo;terminal;termina;termin;termi;term;ter;terminal ;terminal 1;terminal 2".split(";");this.data={};this.data.allBusLines=null;this.data.allMetroLines=null;this.data.allOtherLines=null;this.requests={};this.requests.autocompleteRequest=null;this.requests.plannerRequest=null;this.requests.nearRequest=
1459null;this.requests.busLinesRequest=null;this.requests.metroLinesRequest=null;this.requests.otherLinesRequest=null};
1460geoapi.Service.prototype.getNextBusMetroTime_v2=function(f,n,A,q){var z=geoapi.jQuery.Deferred(),t=this.config.appKeyTMB,G=this.config.appIdTMB,D=this.config.serverTMB;q={app_key:t,app_id:G,temps_teoric:!0};var E=D+"/itransit/"+n+"/parades/"+f,w=this;"metro"==n&&(E=D+"/itransit/"+n+"/estacions/"+f,q={app_key:t,app_id:G,temps_teoric:!0,co
1460di_linia:A});return geoapi.jQuery.ajax(E,{data:q}).done(function(v){v=w.postSend(v);v.error?z.reject(v):"bus"==n?(v.parades&&0>v.parades.length&&v.parades[0].linies_trajectes&&
14610>=v.parades[0].linies_trajectes.length?v.parades[0].linies_trajectes.push({"text-ca":"Sense info"}):v.parades[0].linies_trajectes.forEach(function(C){geoapi.jQuery.ajax(D+"/transit/core/horaris/",{data:{app_key:t,app_id:G,transit_namespace_element:n,codi_element:f,transit_namespace:C.transit_namespace,codi_linia:C.codi_linia}}).done(function(K){K=w.postSend(K);K.error?z.reject(K):C.hores_pas=K.features[0].properties.HORES_PAS}).fail(function(K,N){z.reject(K,N)})}),z.resolve(v.parades[0].linies_trajectes)):
1462(v.linies&&0>v.linies.length?v.linies.push({"text-ca":"Sense info"}):v.linies.forEach(function(C){C.estacions.forEach(function(K){K.linies_trajectes.forEach(function(N){geoapi.jQuery.ajax(D+"/transit/core/horaris/",{data:{app_key:t,app_id:G,transit_namespace_element:n,codi_element:f,transit_namespace:n,codi_linia:N.CODI_LINIA}}).done(function(J){J=w.postSend(J);J.error?z.reject(J):N.hores_pas=J.features[0].properties.HORES_PAS}).fail(function(J,V){z.reject(J,V)})})})}),z.resolve(v.linies))}).fail(function(v,
1463C){z.reject(v,C)}),z.promise()};geoapi.Service.prototype.lineNotExist_=function(f,n,A){if(0>=A.length)return!0;for(var q in A){var z=A[q];if(z.CODI_LINIA==n&&z.ID_OPERADOR==f)return!1}return!0};geoapi.Service.prototype.operador2string_=function(f){return 1==f?"subway":2==f?"bus":"other"};
1464geoapi.Service.prototype.postSend=function(f){var n;if(f.crs&&0<=f.crs.properties.name.indexOf("urn:ogc:def:crs:")&&(f.crs.properties.name=f.crs.properties.name.replace("urn:ogc:def:crs:",""),f.crs.properties.name=f.crs.properties.name.replace("::",":"),n=f.crs),f.features)for(var A in f.features){var q=f.features[A];q.geometry&&(q.geometry.bbox=geoapi.MapUtils.getExtendFrom(q.geometry),q.geometry.crs=n)}return f};
1465geoapi.Service.prototype.autocompleteAddress=function(f){null!=this.requests.autocompleteRequest&&(this.requests.autocompleteRequest.resolve(),this.requests.autocompleteRequest=null);this.requests.autocompleteRequest=geoapi.jQuery.Deferred();var n=this;return geoapi.jQuery.ajax(this.config.serverTMB+"/geocode/icc/cercaCaixaUnica",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,entrada:f}}).done(function(A){n.requests.autocompleteRequest.resolve(A.ok?A.localitzacionsCaixaUnica.localitzacions.localitzacions:
1466[])}).fail(function(A,q){n.requests.autocompleteRequest.resolve([])}),this.requests.autocompleteRequest.promise()};
1467geoapi.Service.prototype.autocompletePlace=function(f,n){null!=this.requests.autocompleteRequest&&(this.requests.autocompleteRequest.resolve(),this.requests.autocompleteRequest=null);this.requests.autocompleteRequest=geoapi.jQuery.Deferred();var A=this;return geoapi.jQuery.ajax(this.config.serverTMB+"/geocode/icc/localitzaToponim",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,nomMunicipi:f,nom:n}}).done(function(q){if(q.ok){var z=[];"Barcelona"==f&&0<=A.staticAeroport.airportNamesSearch.indexOf(n.toLowerCase())&&
1468(z=manualToposAreo);A.requests.autocompleteRequest.resolve(z.concat(q.toponims.toponims))}else A.requests.autocompleteRequest.resolve([])}).fail(function(q,z){A.requests.autocompleteRequest.resolve([])}),this.requests.autocompleteRequest.promise()};
1469geoapi.Service.prototype.plannerRoute=function(f){null!=this.requests.plannerRequest&&(this.requests.plannerRequest.resolve(),this.requests.plannerRequest=null);this.requests.plannerRequest=geoapi.jQuery.Deferred();var n=this,A={app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,fromPlace:f.fromPlaceY+","+f.fromPlaceX,toPlace:f.toPlaceY+","+f.toPlaceX,date:f.date,time:f.time,arriveBy:f.arriveBy,mode:f.mode,modeGroup:f.modeGroup,maxWalkDistance:f.maxWalkDistance,showIntermediateStops:f.showIntermediateStops,
1470optimizationMode:f.optimizationMode,bannedOperators:f.bannedOperators,bannedNetworks:f.bannedNetworks};try{f.maxTransfers&&0<f.maxTransfers.length&&(A.maxTransfers=f.maxTransfers)}catch(q){}return geoapi.jQuery.ajax(this.config.serverTMBPlanner+"/plan",{data:A}).done(function(q){q.error&&n.requests.plannerRequest.resolve({});n.requests.plannerRequest.resolve(q)}).fail(function(q,z){n.requests.plannerRequest.resolve({})}),this.requests.plannerRequest.promise()};
1471geoapi.Service.prototype.plannerRouteAsync=function(f){var n=geoapi.jQuery.Deferred(),A={app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,fromPlace:f.fromPlaceY+","+f.fromPlaceX,toPlace:f.toPlaceY+","+f.toPlaceX,date:f.date,time:f.time,arriveBy:f.arriveBy,mode:f.mode,modeGroup:f.modeGroup,maxWalkDistance:f.maxWalkDistance,showIntermediateStops:f.showIntermediateStops,optimizationMode:f.optimizationMode,bannedOperators:f.bannedOperators,bannedNetworks:f.bannedNetworks};try{f.maxTransfers&&
14720<f.maxTransfers.length&&(A.maxTransfers=f.maxTransfers)}catch(q){}return geoapi.jQuery.ajax(this.config.serverTMBPlanner+"/plan",{data:A}).done(function(q){q.error&&n.resolve({});n.resolve(q)}).fail(function(q,z){n.resolve({})}),n.promise()};
1473geoapi.Service.prototype.nearStops=function(f){null!=this.requests.nearRequest&&(this.requests.nearRequest.resolve(),this.requests.nearRequest=null);this.requests.nearRequest=geoapi.jQuery.Deferred();var n="";switch(f.mode){case "subway":n="(CODI_TIPUS\x3d1)";break;case "bus":n="(CODI_TIPUS\x3d2)";break;default:n="( (CODI_TIPUS\x3d1) OR (CODI_TIPUS\x3d2) )"}var A=this;return geoapi.jQuery.ajax(this.config.serverTMB+"/maps/wfs",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,SERVICE:"WFS",
1474VERSION:"1.1.0",REQUEST:"GetFeature",TYPENAME:"ELEMENTS_SUPERFICIE",outputFormat:"json",srsName:"EPSG:4326",viewparams:"P_LON:"+f.lon+";P_LAT:"+f.lat+";P_DIST:"+f.radius,sortBy:"DISTANCE_IN_METERS",cql_filter:n}}).done(function(q){q=A.postSend(q);q.error&&A.requests.nearRequest.reject(q,status);var z=0,t=q.features.length,G=function(){if(z++,z>=t){var w=[],v;for(v in q.features){var C=q.features[v];0<C.properties.LINES.length&&w.push(C)}q.features=w;A.requests.nearRequest.resolve(q)}},D=function(w,
1475v){if(null==v||0>=v.features.length)w=null,G();else{var C=0,K=v.features.length,N;for(N in v.features)A[1==w.CODI_TIPUS?"getMetroLine":"getBusLine"](v.features[N].properties.NOM_LINIA).then(function(J){if(null==J||null==J.properties,J.properties.mode=1==w.CODI_TIPUS?"subway":"bus",w.LINES[J.properties.CODI_LINIA]=J.properties,C++,C>=K){J=[];for(var V in w.LINES)J.push(w.LINES[V]);w.LINES=J;G()}})}},E=function(w){A.getLinesByStop(w.CODI,1==w.CODI_TIPUS?"METRO":"BUS").then(function(v){null==v||0>=v.features.length;
1476w.LINES={};D(w,v)})};
1476q.features.forEach(function(w,v){E(w.properties)})}).fail(function(q,z){A.requests.nearRequest.reject(q,z)}),this.requests.nearRequest.promise()};
1477geoapi.Service.prototype.getGeometryById=function(f,n){var A=geoapi.jQuery.Deferred();f={app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,propertyName:"ID_LINIA,GEOMETRY",cql_filter:"(ID_LINIA IN ("+f+"))",srsName:this.config.projectionMap};var q=this.config.serverTMBTransit+"/linies/"+n+"/",z=this;return this.config.appViewParams&&null!==this.config.appViewParams&&0<=n.indexOf("metro")&&(q+=this.config.appViewParams),geoapi.jQuery.ajax(q,{data:f}).done(function(t){t=z.postSend(t);t.error?
1478A.reject(t):A.resolve(t)}).fail(function(t,G){A.reject(t,G)}),A.promise()};geoapi.Service.prototype.getLineExtension=function(f,n){var A=geoapi.jQuery.Deferred();return this.getGeometryById(f,n).then(function(q){q=q.features[0].geometry;q.bbox?A.resolve(q.bbox):A.reject(null)}),A.promise()};
1479geoapi.Service.prototype.getBusLines=function(f){if(this.data.allBusLines)return this.requests.busLinesRequest.resolve(this.data.allBusLines);if(this.requests.busLinesRequest)return this.requests.busLinesRequest.promise();this.requests.busLinesRequest=geoapi.jQuery.Deferred();var n=this;return geoapi.jQuery.ajax(this.config.serverTMBTransit+"/linies/bus/",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,propertyName:"ID_LINIA,NOM_LINIA,DESC_LINIA,CODI_LINIA,CODI_FAMILIA,ORIGEN_LINIA,DESTI_LINIA,NOM_TIPUS_TRANSPORT,ORDRE_FAMILIA,COLOR_LINIA,COLOR_TEXT_LINIA,ID_OPERADOR",
1480cql_filter:f?"(CODI_FAMILIA IN (1,3,4,5,6,7,9,11))":"(CODI_FAMILIA IN (1,3,5,6,7,9,11))",srsName:this.config.projectionMap}}).done(function(A){A=n.postSend(A);A.error?this.requests.busLinesRequest.reject(A):(A.features&&0<A.features.length&&A.features.sort(function(q,z){var t=13<=q.properties.ORDRE_FAMILIA?13:q.properties.ORDRE_FAMILIA,G=13<=z.properties.ORDRE_FAMILIA?13:z.properties.ORDRE_FAMILIA;return t==G?q.properties.CODI_LINIA-z.properties.CODI_LINIA:t-G}),n.data.allBusLines=A,n.requests.busLinesRequest.resolve(A))}).fail(function(A,
1481q){n.requests.busLinesRequest.reject(A,q)}),this.requests.busLinesRequest.promise()};geoapi.Service.prototype.getBusLine=function(f){var n=geoapi.jQuery.Deferred();return this.getBusLines().then(function(A){a:{for(var q in A.features){var z=A.features[q];if(z.properties.NOM_LINIA==f){A=z;break a}}A=null}n.resolve(A)}),n.promise()};
1482geoapi.Service.prototype.getMetroLines=function(){if(this.data.allMetroLines)return this.requests.metroLinesRequest.resolve(this.data.allMetroLines);if(!this.requests.metroLinesRequest){this.requests.metroLinesRequest=geoapi.jQuery.Deferred();var f={app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,propertyName:"ID_LINIA,CODI_LINIA,NOM_LINIA,DESC_LINIA,ORIGEN_LINIA,DESTI_LINIA,COLOR_LINIA,COLOR_TEXT_LINIA,ID_OPERADOR,ORDRE_FAMILIA,NOM_TIPUS_TRANSPORT,ORDRE_LINIA",sortBy:"ORDRE_LINIA",srsName:this.config.projectionMap},
1483n=this,A=this.config.serverTMBTransit+"/linies/metro/";this.config.appViewParams&&null!==this.config.appViewParams&&(A+=this.config.appViewParams);geoapi.jQuery.ajax(A,{data:f}).done(function(q){if(q=n.postSend(q),q.error)n.requests.metroLinesRequest.reject(q);else{n.data.allMetroLines=q;for(var z,t=0;z=n.data.allMetroLines.features[t];t++){var G=z.properties.NOM_LINIA;"FUNICULAR"===z.properties.NOM_TIPUS_TRANSPORT.toUpperCase()&&(z.properties.DESC_LINIA="Funicular ("+z.properties.DESC_LINIA+")");
1484var D=(new RegExp(/([A-Z]+)([0-9]+)/)).exec(G);null===D?z.properties.NOM_LINIA_TEXT=G:(z.properties.NOM_LINIA_TEXT=D[0],z.properties.NOM_LINIA_LLETRA=G.replace(D[0],""))}n.requests.metroLinesRequest.resolve(q)}}).fail(function(q,z){n.requests.metroLinesRequest.reject(q,z)})}return this.requests.metroLinesRequest.promise()};
1485geoapi.Service.prototype.getMetroLine=function(f){var n=geoapi.jQuery.Deferred();return this.getMetroLines().then(function(A){a:{for(var q in A.features){var z=A.features[q],t=z.properties.NOM_LINIA,G=(new RegExp(/([A-Z]+)([0-9]+)/)).exec(t);if(null===G?z.properties.NOM_LINIA_TEXT=t:(z.properties.NOM_LINIA_TEXT=G[0],z.properties.NOM_LINIA_LLETRA=t.replace(G[0],"")),z.properties.NOM_LINIA==f){A=z;break a}}A=null}n.resolve(A)}),n.promise()};
1486geoapi.Service.prototype.getOtherLines=function(){if(this.data.allOtherLines)return this.requests.otherLinesRequest.resolve(this.data.allOtherLines);if(!this.requests.otherLinesRequest){this.requests.otherLinesRequest=geoapi.jQuery.Deferred();var f=this;geoapi.jQuery.ajax(this.config.serverTMBTransit+"/linies/altres/",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,propertyName:"ID_LINIA,CODI_LINIA,NOM_LINIA,DESC_LINIA,ORIGEN_LINIA,DESTI_LINIA,COLOR_LINIA,COLOR_TEXT_LINIA,ID_OPERADOR,ORDRE_FAMILIA,NOM_TIPUS_TRANSPORT,GEOMETRY",
1487sortBy:"CODI_LINIA",srsName:this.config.projectionMap}}).done(function(n){if(n=f.postSend(n),n.error)f.otherLinesRequest.reject(n);else{var A={},q;for(q in n.features){var z=n.features[q];
1487A[z.properties.ID_OPERADOR]||(A[z.properties.ID_OPERADOR]=[]);A[z.properties.ID_OPERADOR].push(z)}n.features=A;f.data.allOtherLines=n;f.requests.otherLinesRequest.resolve(n)}}).fail(function(n,A){f.requests.otherLinesRequest.reject(n,A)})}return this.requests.otherLinesRequest.promise()};
1488geoapi.Service.prototype.getOtherLine=function(f,n,A){var q=geoapi.jQuery.Deferred();return this.getOtherLines().then(function(z){a:{z=z.features[n];for(G in z){var t=z[G];if(t.properties.NOM_LINIA==f&&t.properties.ID_LINIA==A){var G=t;break a}}G=null}q.resolve(G)}),q.promise()};
1489geoapi.Service.prototype.getAccess=function(f,n){var A=geoapi.jQuery.Deferred(),q={app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,srsName:this.config.projectionMap},z=this;f=this.config.serverTMBTransit+"/estacions"+(n?"/"+n:"")+"/accessos"+(f?"/"+f:"");return this.config.appViewParams&&null!==this.config.appViewParams&&(f+="/"+this.config.appViewParams),geoapi.jQuery.ajax(f,{data:q}).done(function(t){t=z.postSend(t);t.error?A.reject(t):A.resolve(t)}).fail(function(t,G){A.reject(t,G)}),
1490A.promise()};
1491geoapi.Service.prototype.getAccessFisics=function(f,n){var A=geoapi.jQuery.Deferred(),q={app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,srsName:this.config.projectionMap},z=this;f=this.config.serverTMBTransit+"/estacions"+(n?"/"+n:"")+"/accessos"+(f?"/"+f:"")+"/fisics";return this.config.appViewParams&&null!==this.config.appViewParams&&(f+="/"+this.config.appViewParams),geoapi.jQuery.ajax(f,{data:q}).done(function(t){t=z.postSend(t);t.error?A.reject(t):A.resolve(t)}).fail(function(t,G){A.reject(t,
1492G)}),A.promise()};
1493geoapi.Service.prototype.getAccessLines=function(f){var n=geoapi.jQuery.Deferred(),A=this;return this.getAccess(f).then(function(q){var z=null;if(0<q.features.length){var t={app_key:A.config.appKeyTMB,app_id:A.config.appIdTMB,srsName:A.config.projectionMap,sortBy:"ORDRE_LINIA"};z=q.features[0].properties;geoapi.jQuery.ajax(A.config.serverTMBTransit+"/linies/metro/estacions/accessos/"+z.CODI_ACCES,{data:t}).done(function(G){G=A.postSend(G);G.error?n.reject(G):n.resolve(G)}).fail(function(G,D){n.reject(G,
1494D)})}}),n.promise()};
1495geoapi.Service.prototype.getStop=function(f,n,A,q){var z=geoapi.jQuery.Deferred();if("string"!=typeof A)return z.reject(null,"No type");var t="";"undefined"!=typeof f&&0<f.toString().length&&(t="/"+f);f="";"undefined"!=typeof n&&0<n.toString().length&&(f="/"+n);var G,D=n="",E="";"BUS"==A?(n="/bus",D="/parades",E=q?"(("+q+") AND (CODI_FAMILIA IN (1,3,5,6,7,9)) )":"(CODI_FAMILIA IN (1,3,5,6,7,9))",G="SENTIT,ORDRE"):(n="/metro",D="/estacions",E=q?"("+q+" and ID_TIPUS_SERVEI\x3d1)":"",G="ORDRE_ESTACIO");
1496A={app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,cql_filter:E,sortBy:G,srsName:this.config.projectionMap};var w=this;t=this.config.serverTMBTransit+"/linies"+n+t+D+f;return this.config.appViewParams&&null!==this.config.appViewParams&&0<=n.indexOf("metro")&&(t+="/"+this.config.appViewParams),geoapi.jQuery.ajax(t,{data:A}).done(function(v){if(v=w.postSend(v),v.error||v.exceptions)z.reject(v);else{for(var C in v.features)v.features[C].geometry.crs=v.crs;z.resolve(v)}}).fail(function(v,C){z.reject(v,
1497C)}),z.promise()};geoapi.Service.prototype.getStops=function(f,n){return this.getStop(f,void 0,n)};geoapi.Service.prototype.getLinesByStop=function(f,n){return this.getStop(void 0,f,n)};geoapi.Service.prototype.getLinesByGroupMetroStop=function(f){return this.getStop(void 0,void 0,"METRO","CODI_GRUP_ESTACIO\x3d"+f)};
1498geoapi.Service.prototype.existBusStop=function(f){var n=geoapi.jQuery.Deferred();return this.getStop(void 0,f,"BUS",void 0).then(function(A){n.resolve(0<A.totalFeatures?!0:!1)},function(){n.resolve(!1)}),n.promise()};
1499geoapi.Service.prototype.getLineConnections=function(f,n,A,q){var z=geoapi.jQuery.Deferred();if("string"!=typeof A)return z.reject(null,"No type");"string"!=typeof q&&(q="all");var t="";"undefined"!=typeof f&&0<f.toString().length&&(t="/"+f);f="";"undefined"!=typeof n&&0<n.toString().length&&(f="/"+n);var G=n="",D="";switch("BUS"==A?(n="/bus",G="/parades",D="NOM_LINIA,CODI_PARADA,ID_LINIA,CODI_LINIA,ID_OPERADOR"):(n="/metro",G="/estacions",D="NOM_LINIA,CODI_ESTACIO,ID_LINIA,CODI_LINIA,ID_OPERADOR"),
1500q){case "metro":q="ID_OPERADOR IN (1)";break;
1500case "mfrt":q="ID_OPERADOR IN (1,3,4,5)";break;case "mb1f":q="(ID_OPERADOR IN (2) AND CODI_FAMILIA IN (5,6,7)) OR (ID_OPERADOR IN (1,3))";break;case "fgc":q="ID_OPERADOR NOT IN (1,2)";break;default:q="ID_OPERADOR IN (1)"}var E=this;return geoapi.jQuery.ajax(this.config.serverTMBTransit+"/linies"+n+t+G+f+"/corresp",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,propertyName:D,cql_filter:q?"("+q+")":"",srsName:this.config.projectionMap}}).done(function(w){if(w=
1501E.postSend(w),w.error)z.reject(w);else{var v=function(){if(N++,N>=K){for(var ra in J){var qa=J[ra],Za=[],Na={},Mb;for(Mb in qa){var fb=qa[Mb];3==fb.ID_OPERADOR||5==fb.ID_OPERADOR?Na[fb.ID_OPERADOR]?(Na[fb.ID_OPERADOR].CODI_LINIA.push(fb.CODI_LINIA),Na[fb.ID_OPERADOR].DESC_LINIA+=", "+fb.DESC_LINIA,Na[fb.ID_OPERADOR].NOM_LINIA+=", "+fb.NOM_LINIA):(Na[fb.ID_OPERADOR]=jQuery.extend({},fb),Na[fb.ID_OPERADOR].CODI_LINIA=[fb.CODI_LINIA],Na[fb.ID_OPERADOR].COLOR_LINIA="ffffff",Na[fb.ID_OPERADOR].COLOR_TEXT_LINIA=
1502"000000",Za.push(Na[fb.ID_OPERADOR])):Za.push(fb)}Za.sort(function(Nb,Oa){return Nb.ID_OPERADOR-Oa.ID_OPERADOR});J[ra]=Za}w.features=J;z.resolve(w)}},C=function(ra,qa){var Za=E.operador2string_(ra.ID_OPERADOR);E["subway"==Za?"getMetroLine":"bus"==Za?"getBusLine":"getOtherLine"](ra.NOM_LINIA,ra.ID_OPERADOR,ra.ID_LINIA).then(function(Na){null==Na||(Na.properties.mode=Za,J[qa][Na.properties.ID_LINIA]=Na.properties);v()})},K=w.features.length,N=0,J={};if(0<w.features.length)for(var V in w.features){var I=
1503w.features[V],ia="BUS"==A?I.properties.CODI_PARADA:I.properties.CODI_ESTACIO;J[ia]||(J[ia]=[]);C(I.properties,ia)}else v()}}).fail(function(w,v){z.reject(w,v)}),z.promise()};
1504geoapi.Service.prototype.getBusStopInfo=function(f){var n=geoapi.jQuery.Deferred(),A=this;return geoapi.jQuery.ajax(this.config.serverTMBTransit+"/parades/"+f,{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,propertyName:"ID_PARADA,CODI_PARADA,DESC_PARADA,ADRECA,NOM_PARADA,GEOMETRY",srsName:this.config.projectionMap}}).done(function(q){q=A.postSend(q);q.error?n.reject(q):0<q.features.length?n.resolve(q.features[0]):n.reject(q,status)}).fail(function(q,z){n.reject(q,z)}),n.promise()};
1505geoapi.Service.prototype.getMetroStopInfo=function(f){var n=geoapi.jQuery.Deferred(),A=this;return this.getStop(void 0,f,"METRO",void 0).then(function(q){if(q.error)n.reject(q);else{var z=null;0<q.features.length?(z=q.features[0],z.lines=[],A.getLinesByGroupMetroStop(z.properties.CODI_GRUP_ESTACIO).then(function(t){var G=t.features.length,D=0,E=function(v){A.getMetroLine(v.NOM_LINIA).then(function(C){z.lines.push(C);D++;D>=G&&n.resolve(z)})},w;for(w in t.features)E(t.features[w].properties)})):n.reject(q)}}),
1506n.promise()};
1507geoapi.Service.prototype.getLinesByBusStop=function(f,n,A,q){var z=geoapi.jQuery.Deferred(),t=this;return geoapi.jQuery.ajax(this.config.serverTMBTransit+"/parades/"+f+"/corresp",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,cql_filter:"(ID_OPERADOR \x3d 1 OR ID_OPERADOR \x3d 4 OR (ID_OPERADOR \x3d 2 AND CODI_FAMILIA IN (1,3,5,6,7,9,11)) )",srsName:this.config.projectionMap}}).done(function(G){if(G=t.postSend(G),G.error)z.reject(G);else{G.features&&0<G.features.length&&G.features.sort(function(N,
1508J){var V=13<=N.properties.ORDRE_FAMILIA?13:N.properties.ORDRE_FAMILIA,I=13<=J.properties.ORDRE_FAMILIA?13:J.properties.ORDRE_FAMILIA;return V==I?N.properties.CODI_LINIA-J.properties.CODI_LINIA:V-I});var D={busLines:[],busCorresp:[],metro:[],other:[]},E;for(E in G.features){var w=G.features[E].properties,v=w.NOM_LINIA,C=(new RegExp(/([A-Z]+)([0-9]+)/)).exec(v);null===C?G.features[E].properties.NOM_LINIA_TEXT=v:(G.features[E].properties.NOM_LINIA_TEXT=C[0],G.features[E].properties.NOM_LINIA_LLETRA=
1509v.replace(C[0],""));1==w.ID_OPERADOR?D.metro.push(G.features[E]):2==w.ID_OPERADOR&&(1==w.NUM_SENTITS&&0==w.DIST_AGR||2==w.NUM_SENTITS&&0==w.DIST_AGR.split(".")[0]||2==w.NUM_SENTITS&&0==w.DIST_AGR.split(".")[1])?D.busLines.push(G.features[E]):2==w.ID_OPERADOR&&(1==w.NUM_SENTITS&&0!=w.DIST_AGR||2==w.NUM_SENTITS&&0!=w.DIST_AGR)?D.busCorresp.push(G.features[E]):D.other.push(G.features[E])}if(q&&0<D.busLines.length){var K=D.busLines.length;(function(N){t.getNextBusMetroTime_v2(N,n,A,q).then(function(J){for(var V=
15100;D.busLines[V];V++){for(var I,ia=[],ra=0;
1510I=J[ra];ra++)D.busLines[V].properties.NOM_LINIA===I.nom_linia&&ia.push(I);D.busLines[V].properties.nextBus=ia;K--;0>=K&&z.resolve(D)}})})(f)}else z.resolve(D)}}).fail(function(G,D){z.reject(G,D)}),z.promise()};
1511geoapi.Service.prototype.getNextBusTime=function(f,n){var A=geoapi.jQuery.Deferred(),q=this;return geoapi.jQuery.ajax(this.config.serverTMB+"/ibus/lines/"+f+"/stops/"+n,{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,numberOfPredictions:3}}).done(function(z){z=q.postSend(z);z.error?A.reject(z):(z.data.ibus&&0>=z.data.ibus.length&&z.data.ibus.push({"text-ca":"Sense info"}),A.resolve(z.data.ibus))}).fail(function(z,t){A.reject(z,t)}),A.promise()};
1512geoapi.Service.prototype.getLinesByBusStop_v3=function(f,n){var A=geoapi.jQuery.Deferred(),q=this;return geoapi.jQuery.ajax(this.config.serverTMBTransit+"/parades/"+f+"/corresp",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,cql_filter:"(ID_OPERADOR \x3d 1 OR ID_OPERADOR \x3d 4 OR (ID_OPERADOR \x3d 2 AND CODI_FAMILIA IN (1,3,5,6,7,9,11)) )",srsName:this.config.projectionMap}}).done(function(z){if(z=q.postSend(z),z.error)A.reject(z);else{z.features&&0<z.features.length&&z.features.sort(function(C,
1513K){var N=13<=C.properties.ORDRE_FAMILIA?13:C.properties.ORDRE_FAMILIA,J=13<=K.properties.ORDRE_FAMILIA?13:K.properties.ORDRE_FAMILIA;return N==J?C.properties.CODI_LINIA-K.properties.CODI_LINIA:N-J});var t={busLines:[],busCorresp:[],metro:[],other:[]},G;for(G in z.features){var D=z.features[G].properties,E=D.NOM_LINIA,w=(new RegExp(/([A-Z]+)([0-9]+)/)).exec(E);null===w?z.features[G].properties.NOM_LINIA_TEXT=E:(z.features[G].properties.NOM_LINIA_TEXT=w[0],z.features[G].properties.NOM_LINIA_LLETRA=
1514E.replace(w[0],""));1==D.ID_OPERADOR?t.metro.push(z.features[G]):2==D.ID_OPERADOR&&(1==D.NUM_SENTITS&&0==D.DIST_AGR||2==D.NUM_SENTITS&&0==D.DIST_AGR.split(".")[0]||2==D.NUM_SENTITS&&0==D.DIST_AGR.split(".")[1])?t.busLines.push(z.features[G]):2==D.ID_OPERADOR&&(1==D.NUM_SENTITS&&0!=D.DIST_AGR||2==D.NUM_SENTITS&&0!=D.DIST_AGR)?t.busCorresp.push(z.features[G]):t.other.push(z.features[G])}if(n&&0<t.busLines.length){var v=t.busLines.length;(function(C){q.getNextBusTime_v3(C).then(function(K){for(var N=
15150;t.busLines[N];N++){for(var J,V=[],I=0;J=K[I];I++)t.busLines[N].properties.NOM_LINIA===J.line&&V.push(J);t.busLines[N].properties.nextBus=V;v--;0>=v&&A.resolve(t)}})})(f)}else A.resolve(t)}}).fail(function(z,t){A.reject(z,t)}),A.promise()};
1516geoapi.Service.prototype.getMetroAccessInfo=function(f){var n=geoapi.jQuery.Deferred(),A=this;return this.getStop(void 0,f,"METRO",void 0).then(function(q){if(q.error)n.reject(q);else{var z=null;0<q.features.length?(z=q.features[0],z.lines=[],A.getAccess(null,z.properties.CODI_GRUP_ESTACIO).then(function(t){n.resolve(t)})):n.reject(q)}}),n.promise()};
1517geoapi.Service.prototype.getMetroAccessFisicsInfo=function(f){var n=geoapi.jQuery.Deferred(),A=this;return this.getStop(void 0,f,"METRO",void 0).then(function(q){if(q.error)n.reject(q);else{var z=null;0<q.features.length?(z=q.features[0],z.lines=[],A.getAccessFisics(null,z.properties.CODI_GRUP_ESTACIO).then(function(t){n.resolve(t)})):n.reject(q)}}),n.promise()};
1518geoapi.Service.prototype.getNextBusTime_v3=function(f){var n=geoapi.jQuery.Deferred(),A=this;return geoapi.jQuery.ajax(this.config.serverTMB+"/ibus/stops/"+f,{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,numberOfPredictions:3}}).done(function(q){q=A.postSend(q);q.error?n.reject(q):(q.data.ibus&&0>=q.data.ibus.length&&q.data.ibus.push({"text-ca":"Sense info"}),n.resolve(q.data.ibus))}).fail(function(q,z){n.reject(q,z)}),n.promise()};
1519geoapi.Service.prototype.getLinesByBusStop_v4=function(f,n,A,q,z){var t=geoapi.jQuery.Deferred(),G=this;return geoapi.jQuery.ajax(this.config.serverTMBTransit+"/parades/"+f+"/corresp",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,cql_filter:"(ID_OPERADOR \x3d 1 OR ID_OPERADOR \x3d 4 OR (ID_OPERADOR \x3d 2 AND CODI_FAMILIA IN (1,3,5,6,7,9,11)) )",srsName:this.config.projectionMap}}).done(function(D){if(D=G.postSend(D),D.error)t.reject(D);else{D.features&&0<D.features.length&&D.features.sort(function(J,
1520V){var I=13<=J.properties.ORDRE_FAMILIA?13:J.properties.ORDRE_FAMILIA,ia=13<=V.properties.ORDRE_FAMILIA?13:V.properties.ORDRE_FAMILIA;return I==ia?J.properties.CODI_LINIA-V.properties.CODI_LINIA:I-ia});var E={busLines:[],busCorresp:[],metro:[],other:[]},w;for(w in D.features){var v=D.features[w].properties,C=v.NOM_LINIA,K=(new RegExp(/([A-Z]+)([0-9]+)/)).exec(C);null===K?D.features[w].properties.NOM_LINIA_TEXT=C:(D.features[w].properties.NOM_LINIA_TEXT=K[0],D.features[w].properties.NOM_LINIA_LLETRA=
1521C.replace(K[0],""));1==v.ID_OPERADOR?E.metro.push(D.features[w]):2==v.ID_OPERADOR&&(1==v.NUM_SENTITS&&0==v.DIST_AGR||2==v.NUM_SENTITS&&0==v.DIST_AGR.split(".")[0]||2==v.NUM_SENTITS&&0==v.DIST_AGR.split(".")[1])?E.busLines.push(D.features[w]):2==v.ID_OPERADOR&&(1==v.NUM_SENTITS&&0!=v.DIST_AGR||2==v.NUM_SENTITS&&0!=v.DIST_AGR)?E.busCorresp.push(D.features[w]):E.other.push(D.features[w])}if(q&&0<E.busLines.length){var N=E.busLines.length;(function(J){G.getNextBusMetroTime_v4(J,n,A,z).then(function(V){for(var I=
15220;E.busLines[I];I++){for(var ia,ra=[],qa=0;ia=V[qa];qa++)E.busLines[I].properties.NOM_LINIA===ia.nom_linia&&ra.push(ia);E.busLines[I].properties.nextBus=ra;N--;0>=N&&t.resolve(E)}})})(f)}else t.resolve(E)}}).fail(function(D,E){t.reject(D,E)}),t.promise()};
1523geoapi.Service.prototype.getNextBusMetroTime_v4=function(f,n,A,q){var z=geoapi.jQuery.Deferred(),t=this.config.appKeyTMB,G=this.config.appIdTMB,D=this.config.serverTMB,E={app_key:t,app_id:G,temps_teoric:q},w=D+"/itransit/"+n+"/parades/"+f,v=this;"metro"==n&&(w=D+"/itransit/"+n+"/estacions/"+f,E={app_key:t,app_id:G,temps_teoric:q,codi_linia:A});return geoapi.jQuery.ajax(w,{data:E}).done(function(C){C=v.postSend(C);C.error?z.reject(C):"bus"==n?(C.parades&&0>C.parades.length&&C.parades[0].linies_trajectes&&
15240>=C.parades[0].linies_trajectes.length?C.parades[0].linies_trajectes.push({"text-ca":"Sense info"}):q&&C.parades[0].linies_trajectes.forEach(function(K){geoapi.jQuery.ajax(D+"/transit/core/horaris/",{data:{app_key:t,app_id:G,transit_namespace_element:n,codi_element:f,transit_namespace:K.transit_namespace,codi_linia:K.codi_linia}}).done(function(N){N=v.postSend(N);N.error?z.reject(N):K.hores_pas=N.features[0].properties.HORES_PAS}).fail(function(N,J){z.reject(N,J)})}),z.resolve(C.parades[0].linies_trajectes)):
1525(C.linies&&0>C.linies.length?C.linies.push({"text-ca":"Sense info"}):C.linies.forEach(function(K){K.estacions.forEach(function(N){N.linies_trajectes.forEach(function(J){geoapi.jQuery.ajax(D+"/transit/core/horaris/",{data:{app_key:t,app_id:G,transit_namespace_element:n,codi_element:f,transit_namespace:n,codi_linia:J.CODI_LINIA}}).done(function(V){V=v.postSend(V);V.error?z.reject(V):J.hores_pas=V.features[0].properties.HORES_PAS}).fail(function(V,I){z.reject(V,I)})})})}),z.resolve(C.linies))}).fail(function(C,
1526K){z.reject(C,K)}),z.promise()};geoapi.Service.prototype.getBusAffectations=function(f,n){var A=geoapi.jQuery.Deferred(),q="";f&&(q="/routes/"+f);n&&(q="/stops/"+n);var z=this;return geoapi.jQuery.ajax(this.config.serverTMB+this.config.busAlertsUrl+q,{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB}}).done(function(t){t=z.postSend(t);t.error?A.reject(t):A.resolve(t)}).fail(function(t,G){A.reject(t,G)}),A.promise()};
1527geoapi.Service.prototype.getMetroAffectations=function(f,n){var A=geoapi.jQuery.Deferred(),q="";n&&0<n.length&&f&&0<f.length?q="/routes/"+f+"/stops/"+n:f&&0<f.length&&(q="/routes/"+f);var z=this;return geoapi.jQuery.ajax(this.config.serverTMB+this.config.metroAlertsUrl+q,{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB}}).done(function(t){t=z.postSend(t);t.error?A.reject(t):A.resolve(t)}).fail(function(t,G){A.reject(t,G)}),A.promise()};
1528geoapi.Service.prototype.getMetroLocations=function(f){var n=geoapi.jQuery.Deferred(),A="";f&&(A="linies/"+f+"/");f={app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB};f={app_key:"9403af51251dc86df05a0c49f71df403",app_id:"62c5e646"};var q=this;return geoapi.jQuery.ajax("https://tmbapi.tmb.cat/dev/transit/schematic/"+A+"emplacaments",{data:f}).done(function(z){z=q.postSend(z);z.error?n.reject(z):n.resolve(z)}).fail(function(z,t){n.reject(z,t)}),n.promise()};
1529geoapi.Service.prototype.getMetroTimetable=function(f){var n=geoapi.jQuery.Deferred(),A={propertyName:"ID_HORARI,HORARI,PRIMERA_SORTIDA,ULTIMA_SORTIDA,ID_TIPUS_DIA,DESC_TIPUS_DIA",app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB};f=this.config.serverTMBTransit+"/linies/metro/"+f+"/horaris";var q=this;return this.config.appViewParams&&null!==this.config.appViewParams&&(f+="/"+this.config.appViewParams),geoapi.jQuery.ajax(f,{data:A}).done(function(z){z=q.postSend(z);z.error?n.reject(z):n.resolve(z)}).fail(function(z,
1530t){n.reject(z,t)}),n.promise()};geoapi.Service.prototype.getBusTimetable=function(f,n,A){var q=geoapi.jQuery.Deferred(),z=this;return geoapi.jQuery.ajax(this.config.serverTMBTransit+"/linies/bus/"+f+"/parades/"+n+"/horespas",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,cql_filter:"SENTIT \x3d '"+A+"'",sortBy:"ID_TIPUS_DIA,ORDRE_LITERAL"}}).done(function(t){(t=z.postSend(t),t.error)?q.reject(t):q.resolve(t.features)}).fail(function(t,G){q.reject(t,G)}),q.promise()};
1531geoapi.Service.prototype.getJsonFromWfs=function(f,n){var A=this.config.serverWFS+"?SERVICE\x3dWFS\x26VERSION\x3d1.1.1\x26REQUEST\x3dGetFeature\x26outputFormat\x3djson";
1531A=A+("\x26typeNames\x3d"+f)+("\x26app_key\x3d"+this.config.appKeyTMB);A+="\x26app_id\x3d"+this.config.appIdTMB;A+=n?"\x26CQL_FILTER\x3d"+n:"";var q=geoapi.jQuery.Deferred(),z=this;return geoapi.jQuery.ajax(A).done(function(t){t=z.postSend(t);t.error?q.reject(t):(t.crs="EPSG:4326",q.resolve(t))}).fail(function(t,G){q.reject(t,G)}),
1532q.promise()};
1533geoapi.Service.prototype.getTmbPoints=function(){var f=geoapi.jQuery.Deferred();if(0<=window.location.href.indexOf("www.tmb.cat")){var n=this;geoapi.jQuery.ajax(url,{data:getParams}).done(function(A){A=n.postSend(A);A.error?f.reject(A):(A.crs="EPSG:4326",f.resolve(A))}).fail(function(A,q){f.reject(A,q)})}else f.resolve({type:"FeatureCollection",features:[{type:"Feature",id:"VIEW_EXPORT_PUNTS.63858",geometry:{type:"Point",coordinates:[2.158764954437297,41.39435090750432]},geometry_name:"GEOMETRY",properties:{CODI:"PUNTTMB1",
1534NOM:"Punt TMB Diagonal",CODI_TIPUS:12,DESC_TIPUS:"Centre d'Informaci\u00c3\u00b3 a Client",HORARI_CAT:"Dies feiners, de dilluns a divendres de 8.00 a 20.00 h. Dissabtes, de 9.00 a 14.00 i de 15.00 a 19.00 h. Diumenges i festius, de 9.00 a 14.00 h. Festius 1 de gener, 25 de desembre i 26 de desembre, tancat. Juliol, agost i fins al 13 de setembre incl\u00c3\u00b2s, caps de setmana i festius, tancat. Del 3 d'agost al 4 de setembre incl\u00c3\u00b2s, dies feiners, obert de 8.00 a 15.00 h. Vest\u00c3\u00adbul de l'estaci\u00c3\u00b3 de Diagonal. Entrada pel carrer Rossell\u00c3\u00b3 - Rambla de Catalunya.",
1535CORRESPONDENCIES:"L3; L5",HORARI_CAST:"D\u00c3\u00adas laborables, de lunes a viernes de 8.00 a 20.00 h. S\u00c3\u00a1bados, de 9.00 a 14.00 y de 15.00 a 19.00 h. Domingos y festivos, de 9.00 a 14.00 h. Festivos 1 de enero, 25 de diciembre y 26 de diciembre, cerrado. Julio, agosto y hasta el 13 de septiembre incluido, fines de semana y festivos, cerrado. Del 3 de agosto al 4 de septiembre incluido, d\u00c3\u00adas laborables, abierto de 8.00 a 15.00 h. Vest\u00c3\u00adbulo de la estaci\u00c3\u00b3n de Diagonal. Entrada por la calle Rossell\u00c3\u00b3 - Rambla de Catalunya.",
1536HORARI_ENG:"Monday to Friday from 8.00 am to 8.00 pm. Saturday from 9.00 am to 2 pm and from 3 pm to 7.00 pm. Sundays and public holidays from 9.00 am to 2.00 pm. Public holidays 1 January, 25 and 26 December, closed. July, August and up to 13 September inclusive, weekends and public holidays, closed. From 3 August to 4 September inclusive, weekdays, from 8.00 am to 3.00 pm. Diagonal station lobby. Entrance: Carrer Rossell\u00c3\u00b3 - Rambla de Catalunya."}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63862",
1537geometry:{type:"Point",coordinates:[2.1646529061362445,41.38583514326069]},geometry_name:"GEOMETRY",properties:{CODI:"PUNTTMB5",NOM:"Punt TMB Universitat",CODI_TIPUS:12,DESC_TIPUS:"Centre d'Informaci\u00c3\u00b3 a Client",CORRESPONDENCIES:"L1; L2",HORARI_CAT:"Dies feiners, de dilluns a divendres de 8.00 a 20.00 h. Del 3 d'agost al 4 de setembre incl\u00c3\u00b2s, dies feiners, obert de 8.00 a 15.00 h. Vest\u00c3\u00adbul de l\u00e2\u20ac\u2122estaci\u00c3\u00b3 d\u00e2\u20ac\u2122Universitat. Entrada pel carrer de Pelai.",
1538HORARI_CAST:"D\u00c3\u00adas laborables, de lunes a viernes de 8.00 a 20.00 h. Del 3 de agosto al 4 de septiembre incluido, d\u00c3\u00adas laborables, abierto de 8.00 a 15.00 h. Vest\u00c3\u00adbulo de la estaci\u00c3\u00b3n de Universitat. Entrada por la calle Pelai.",HORARI_ENG:"Monday to Friday from 8.00 am to 8.00 pm. From 3 August to 4 September inclusive, weekdays, from 8.00 am to 3.00 pm. Universitat station lobby. Entrance: Carrer Pelai."}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63860",geometry:{type:"Point",
1539coordinates:[2.1872013991026362,41.42189137563292]},geometry_name:"GEOMETRY",properties:{CODI:"PUNTTMB3",NOM:"Punt TMB La Sagrera",CODI_TIPUS:12,DESC_TIPUS:"Centre d'Informaci\u00c3\u00b3 a Client",CORRESPONDENCIES:"L1; L5; L9; L10",HORARI_CAT:"Dies feiners, de dilluns a divendres de 8.00 a 20.00 h. Del 29 de juny al 31 de juliol, tancat per treballs de millora. Del 3 d'agost al 10 de setembre incl\u00c3\u00b2s, dies feiners, obert de 8.00 a 15.00 h. Vest\u00c3\u00adbul de l'estaci\u00c3\u00b3 de La Sagrera. Entrada pel carrer d'Hondures.",
1540HORARI_CAST:"D\u00c3\u00adas laborables, de lunes a viernes de 8.00 a 20.00 h. Del 29 de junio al 31 de julio, cerrado por trabajos de mejora. Del 3 de agosto al 10 de septiembre incluido, d\u00c3\u00adas laborables, abierto de 8.00 a 15.00 h. Vest\u00c3\u00adbulo de la estaci\u00c3\u00b3n de La Sagrera. Entrada por la calle Hondures.",HORARI_ENG:"Monday to Frid
1540ay from 8.00 am to 8.00 pm. From 3 August to 10 September inclusive, weekdays, from 8.00 am to 3.00 pm. La Sagrera station lobby. Entrance: Carrer Hondures."}}],
1541crs:"EPSG:4326"});return f.promise()};
1542geoapi.Service.prototype.getPois=function(){var f=geoapi.jQuery.Deferred(),n=this;0<=window.location.href.indexOf("www.tmb.cat")?geoapi.jQuery.ajax(url,{data:getParams}).done(function(A){A=n.postSend(A);A.error?f.reject(A):(A.crs="EPSG:4326",f.resolve(A))}).fail(function(A,q){f.reject(A,q)}):f.resolve({type:"FeatureCollection",features:[{type:"Feature",id:"VIEW_EXPORT_PUNTS.63184",geometry:{type:"Point",coordinates:[2.170425518378345,41.38485890892246]},geometry_name:"GEOMETRY",properties:{CODI:"TUR589",
1543NOM:"La Rambla",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63185",geometry:{type:"Point",coordinates:[2.136959500506292,41.410409514242666]},geometry_name:"GEOMETRY",properties:{CODI:"TUR590",NOM:"Tramvia Blau",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63186",geometry:{type:"Point",coordinates:[2.133765744924558,41.39980286889365]},geometry_name:"GEOMETRY",properties:{CODI:"TUR591",NOM:"Col\u00c2\u00b7legi de les Teresianes",
1544CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63187",geometry:{type:"Point",coordinates:[2.1189384476769817,41.38622080338176]},geometry_name:"GEOMETRY",properties:{CODI:"TUR592",NOM:"Museu de Cer\u00c3\u00a0mica",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63188",geometry:{type:"Point",coordinates:[2.117113397386087,41.38824808700245]},geometry_name:"GEOMETRY",properties:{CODI:"TUR593",NOM:"Disseny HUB Barcelona",
1545CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63189",geometry:{type:"Point",coordinates:[2.11801461780206,41.387128674471526]},geometry_name:"GEOMETRY",properties:{CODI:"TUR594",NOM:"Jardins del Palau Reial de Pedralbes",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63190",geometry:{type:"Point",coordinates:[2.1214692720795387,41.38049552947651]},geometry_name:"GEOMETRY",properties:{CODI:"TUR595",NOM:"Estadi Camp Nou",
1546CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63191",geometry:{type:"Point",coordinates:[2.143259938072556,41.40877091394631]},geometry_name:"GEOMETRY",properties:{CODI:"TUR596",NOM:"Tur\u00c3\u00b3 Parc",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63192",geometry:{type:"Point",coordinates:[2.1506089501820393,41.365656929185]},geometry_name:"GEOMETRY",properties:{CODI:"TUR597",NOM:"Piscines Picornell",
1547CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63193",geometry:{type:"Point",coordinates:[2.1570275595958144,41.36709700414309]},geometry_name:"GEOMETRY",properties:{CODI:"TUR598",NOM:"Jardins Laribal",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63194",geometry:{type:"Point",coordinates:[2.159736644310332,41.36951052396074]},geometry_name:"GEOMETRY",properties:{CODI:"TUR599",NOM:"Teatre Grec",CODI_TIPUS:401,
1548DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63195",geometry:{type:"Point",coordinates:[2.1634622647784734,41.36876491257836]},geometry_name:"GEOMETRY",properties:{CODI:"TUR600",NOM:"Telef\u00c3\u00a8ric de Montju\u00c3\u00afc",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63196",geometry:{type:"Point",coordinates:[2.1800707146347027,41.372122318225394]},geometry_name:"GEOMETRY",properties:{CODI:"TUR601",NOM:"Torre Jaume I (Transbordador aeri del port)",
1549CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63197",geometry:{type:"Point",coordinates:[2.182838814878103,41.375150078267424]},geometry_name:"GEOMETRY",properties:{CODI:"TUR602",NOM:"Maremagnum",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63198",geometry:{type:"Point",coordinates:[2.1966792616971578,41.38497145327588]},geometry_name:"GEOMETRY",properties:{CODI:"TUR603",NOM:"Platges",CODI_TIPUS:401,
1550DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63199",geometry:{type:"Point",coordinates:[2.183193000670056,41.387893530777404]},geometry_name:"GEOMETRY",properties:{CODI:"TUR604",NOM:"Museu de Ci\u00c3\u00a8ncies Naturals de la Ciutadella",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63200",geometry:{type:"Point",coordinates:[2.181138101268424,41.38518743089442]},geometry_name:"GEOMETRY",properties:{CODI:"TUR605",
1551NOM:"Museu Barbier-Mueller",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63201",geometry:{type:"Point",coordinates:[2.212263275309906,41.40575253522374]},geometry_name:"GEOMETRY",properties:{CODI:"TUR606",NOM:"Torre de les aig\u00c3\u00bces del Bes\u00c3\u00b2s",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63202",geometry:{type:"Point",coordinates:[2.2207982077362773,41.41084562228309]},geometry_name:"GEOMETRY",
1552properties:{CODI:"TUR607",NOM:"Edifici F\u00c3\u00b2rum",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62741",geometry:{type:"Point",coordinates:[2.149435056980303,41.3705080532044]},geometry_name:"GEOMETRY",properties:{CODI:"TUR466",NOM:"CaixaForum",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62742",geometry:{type:"Point",coordinates:[2.168531056960876,41.367565053189416]},geometry_name:"GEOMETRY",
1553properties:{CODI:"TUR467",NOM:"Castell de Montju\u00c3\u00afc",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62744",geometry:{type:"Point",coordinates:[2.149201056980316,41.36977205320475]},geometry_name:"GEOMETRY",properties:{CODI:"TUR469",NOM:"El Poble Espanyol",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62745",geometry:{type:"Point",coordinates:[2.152138056976458,41.36638305320317]},geometry_name:"GEOMETRY",
1554properties:{CODI:"TUR470",NOM:"Estadi Ol\u00c3\u00admpic Llu\u00c3\u00ads Companys",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62747",geometry:{type:"Point",coordinates:[2.151550056978524,41.3714400532024]},geometry_name:"GEOMETRY",properties:{CODI:"TUR472",NOM:"Font M\u00c3\u00a0gica",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62750",geometry:{type:"Point",coordinates:[2.159970056969376,41.368170053196316]},
1555geometry_name:"GEOMETRY",properties:{CODI:"TUR475",NOM:"Fundaci\u00c3\u00b3 Joan Mir\u00c3\u00b3",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62753",geometry:{type:"Point",coordinates:[2.1685100569608435,41.36739005318949]},geometry_name:"GEOMETRY",properties:{CODI:"TUR478",NOM:"Mirador de l'Alcalde",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62755",geometry:{type:"Point",coordinates:[2.157687056972091,
155641.369847053197724]},geometry_name:"GEOMETRY",properties:{CODI:"TUR480",NOM:"Museu d'Arqueologia de Catalunya",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62756",geometry:{type:"Point",coordinates:[2.1532600569760953,41.36883005320165]},geometry_name:"GEOMETRY",properties:{CODI:"TUR481",NOM:"Museu Nacional d'Art de Catalunya",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62757",geometry:{type:"Point",
1557coordinates:[2.157555056971211,41.36643405319868]},geometry_name:"GEOMETRY",properties:{CODI:"TUR482",NOM:"Museu Ol\u00c3\u00admpic i de l'Esport Joan A. Samaranch",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62758",geometry:{type:"Point",coordinates:[2.152386056974906,41.361952053203986]},geometry_name:"GEOMETRY",properties:{CODI:"TUR483",NOM:"Palau Sant Jordi",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62759",
1558geometry:{type:"Point",coordinates:[2.1494910569803016,41.37066605320426]},geometry_name:"GEOMETRY",properties:{CODI:"TUR484",NOM:"Pavell\u00c3\u00b3 Mies van der Rohe",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62761",geometry:{type:"Point",coordinates:[2.143914056987045,41.375150053207705]},geometry_name:"GEOMETRY",properties:{CODI:"TUR486",NOM:"Mercat d'Hostafrancs",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62764",
1559geometry:{type:"Point",coordinates:[2.1398350569913966,41.376448053210815]},geometry_name:"GEOMETRY",properties:{CODI:"TUR489",NOM:"Parc de l'Espanya Industrial",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62769",geometry:{type:"Point",coordinates:[2.128910057012524,41.411900053210964]},geometry_name:"GEOMETRY",properties:{CODI:"TUR494",NOM:"CosmoCaixa - Museu de la Ci\u00c3\u00a8ncia",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",
1560id:"VIEW_EXPORT_PUNTS.62773",geometry:{type:"Point",coordinates:[2.1188610570251596,41.42155405321683]},geometry_name:"GEOMETRY",properties:{CODI:"TUR498",NOM:"Parc d'Atraccions del Tibidabo",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62775",geometry:{type:"Point",coordinates:[2.1207190570168875,41.399810053220726]},geometry_name:"GEOMETRY",properties:{CODI:"TUR500",NOM:"Mercat de Sarri\u00c3\u00a0",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},
1561{type:"Feature",id:"VIEW_EXPORT_PUNTS.62779",geometry:{type:"Point",coordinates:[2.165335056971163,41.391809053186066]},geometry_name:"GEOMETRY",properties:{CODI:"TUR504",NOM:"Casa Amatller",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62780",geometry:{type:"Point",coordinates:[2.165125056971422,41.39197605318623]},geometry_name:"GEOMETRY",properties:{CODI:"TUR505",NOM:"Casa Batll\u00c3\u00b3",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},
1562{type:"Feature",id:"VIEW_EXPORT_PUNTS.62783",geometry:{type:"Point",coordinates:[2.165515056970805,41.39117905318615]},geometry_name:"GEOMETRY",properties:{CODI:"TUR508",NOM:"Casa Lle\u00c3\u00b3 Morera",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62790",geometry:{type:"Point",coordinates:[2.1637840569725886,41.39153105318741]},geometry_name:"GEOMETRY",properties:{CODI:"TUR515",NOM:"Fundaci\u00c3\u00b3 Antoni T\u00c3\u00a0pies",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},
1563{type:"Feature",id:"VIEW_EXPORT_PUNTS.62791",geometry:{type:"Point",coordinates:[2.1653230569703257,41.3889570531868]},geometry_name:"GEOMETRY",properties:{CODI:"TUR516",NOM:"Fundaci\u00c3\u00b3 Francisco Godia",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62798",geometry:{type:"Point",coordinates:[2.1647230569723046,41.39364905318608]},geometry_name:"GEOMETRY",properties:{CODI:"TUR523",NOM:"Museu Egipci de Barcelona",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},
1564{type:"Feature",id:"VIEW_EXPORT_PUNTS.62805",geometry:{type:"Point",coordinates:[2.1747040569653295,41.4028350531757]},geometry_name:"GEOMETRY",properties:{CODI:"TUR530",NOM:"Bas\u00c3\u00adlica de la Sagrada Fam\u00c3\u00adlia",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62806",geometry:{type:"Point",coordinates:[2.1743740569681993,41.41141605317383]},geometry_name:"GEOMETRY",properties:{CODI:"TUR531",NOM:"L'Hospital de la Santa Creu i Sant Pau",
1565CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62810",geometry:{type:"Point",coordinates:[2.147720056984548,41.37920005320361]},geometry_name:"GEOMETRY",properties:{CODI:"TUR535",NOM:"Parc de Joan Mir\u
156500c3\u00b3",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62811",geometry:{type:"Point",coordinates:[2.1640420569708625,41.38657405318842]},geometry_name:"GEOMETRY",properties:{CODI:"TUR536",NOM:"Universitat de Barcelona",
1566CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62819",geometry:{type:"Point",coordinates:[2.158124056980011,41.39800305319049]},geometry_name:"GEOMETRY",properties:{CODI:"TUR544",NOM:"Casa Fuster",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62821",geometry:{type:"Point",coordinates:[2.1507110569888157,41.4034060531952]},geometry_name:"GEOMETRY",properties:{CODI:"TUR546",NOM:"Casa Vicens",CODI_TIPUS:401,
1567DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62827",geometry:{type:"Point",coordinates:[2.1529000569896333,41.413310053190976]},geometry_name:"GEOMETRY",properties:{CODI:"TUR552",NOM:"Park G\u00c3\u00bcell",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62828",geometry:{type:"Point",coordinates:[2.155820056984079,41.404180053190856]},geometry_name:"GEOMETRY",properties:{CODI:"TUR553",NOM:"Places de Gr\u00c3\u00a0cia",
1568CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62838",geometry:{type:"Point",coordinates:[2.1951170569415104,41.38939105316224]},geometry_name:"GEOMETRY",properties:{CODI:"TUR563",NOM:"Cementiri de Poblenou",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62842",geometry:{type:"Point",coordinates:[2.2027300569372557,41.40000005315346]},geometry_name:"GEOMETRY",properties:{CODI:"TUR567",NOM:"Rambla del Poblenou",
1569CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62664",geometry:{type:"Point",coordinates:[2.174033056959254,41.38015205318181]},geometry_name:"GEOMETRY",properties:{CODI:"TUR389",NOM:"Gran Teatre del Liceu",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62665",geometry:{type:"Point",coordinates:[2.171734056962196,41.382530053183096]},geometry_name:"GEOMETRY",properties:{CODI:"TUR390",NOM:"La Virreina. Centre de la Imatge",
1570CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62666",geometry:{type:"Point",coordinates:[2.172345056961424,41.38195105318275]},geometry_name:"GEOMETRY",properties:{CODI:"TUR391",NOM:"Mercat de la Boqueria",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62667",geometry:{type:"Point",coordinates:[2.1785750569538327,41.37673705317898]},geometry_name:"GEOMETRY",properties:{CODI:"TUR392",NOM:"Mirador de Colom",
1571CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62668",geometry:{type:"Point",coordinates:[2.1774070569550967,41.377169053179806]},geometry_name:"GEOMETRY",properties:{CODI:"TUR393",NOM:"Museu de Cera",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62669",geometry:{type:"Point",coordinates:[2.172551056961288,41.382165053182504]},geometry_name:"GEOMETRY",properties:{CODI:"TUR394",NOM:"Museu de l'Er\u00c3\u00b2tica",
1572CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62670",geometry:{type:"Point",coordinates:[2.1755740569565525,41.37607605318156]},geometry_name:"GEOMETRY",properties:{CODI:"TUR395",NOM:"Museu Mar\u00c3\u00adtim de Barcelona",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62672",geometry:{type:"Point",coordinates:[2.170372056962907,41.38047405318478]},geometry_name:"GEOMETRY",properties:{CODI:"TUR397",NOM:"Antic Hospital de la Santa Creu",
1573CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62673",geometry:{type:"Point",coordinates:[2.166866056967312,41.38384505318682]},geometry_name:"GEOMETRY",properties:{CODI:"TUR398",NOM:"CCCB - Centre de Cultura Contempor\u00c3\u00a0nia de Barcelona.",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62675",geometry:{type:"Point",coordinates:[2.1675150569664585,41.38309705318646]},geometry_name:"GEOMETRY",properties:{CODI:"TUR400",
1574NOM:"MACBA - Museu d'Art Contemporani de Barcelona",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62676",geometry:{type:"Point",coordinates:[2.1741600569588004,41.37902005318203]},geometry_name:"GEOMETRY",properties:{CODI:"TUR401",NOM:"Palau G\u00c3\u00bcell",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62678",geometry:{type:"Point",coordinates:[2.169133
157405696279,41.37602605318684]},geometry_name:"GEOMETRY",
1575properties:{CODI:"TUR403",NOM:"Sant Pau del Camp",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62682",geometry:{type:"Point",coordinates:[2.1759940569586638,41.384601053179175]},geometry_name:"GEOMETRY",properties:{CODI:"TUR407",NOM:"Catedral",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62683",geometry:{type:"Point",coordinates:[2.1771430569572003,41.383437053178504]},geometry_name:"GEOMETRY",properties:{CODI:"TUR408",
1576NOM:"Columnes del Temple d'August",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62693",geometry:{type:"Point",coordinates:[2.1773870569571794,41.384136053178075]},geometry_name:"GEOMETRY",properties:{CODI:"TUR418",NOM:"MUHBA - Museu d'Hist\u00c3\u00b2ria de Barcelona",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62698",geometry:{type:"Point",coordinates:[2.176791056957773,41.38417605317855]},geometry_name:"GEOMETRY",
1577properties:{CODI:"TUR423",NOM:"Museu Frederic Mar\u00c3\u00a8s",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62701",geometry:{type:"Point",coordinates:[2.1750370569582302,41.37999005318106]},geometry_name:"GEOMETRY",properties:{CODI:"TUR426",NOM:"Pla\u00c3\u00a7a Reial",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62703",geometry:{type:"Point",coordinates:[2.177217056956937,41.38277905317858]},geometry_name:"GEOMETRY",
1578properties:{CODI:"TUR428",NOM:"Pla\u00c3\u00a7a Sant Jaume",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62705",geometry:{type:"Point",coordinates:[2.1828600569520265,41.384720053173524]},geometry_name:"GEOMETRY",properties:{CODI:"TUR430",NOM:"Antic Mercat del Born",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62710",geometry:{type:"Point",coordinates:[2.180828056954142,41.38516405317505]},geometry_name:"GEOMETRY",
1579properties:{CODI:"TUR435",NOM:"Museu Picasso",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62712",geometry:{type:"Point",coordinates:[2.1817850569527155,41.38349705317464]},geometry_name:"GEOMETRY",properties:{CODI:"TUR437",NOM:"Santa Maria del Mar",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62716",geometry:{type:"Point",coordinates:[2.1748370569605187,41.3870320531795]},geometry_name:"GEOMETRY",
1580properties:{CODI:"TUR441",NOM:"Palau de la M\u00c3\u00basica Catalana",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62724",geometry:{type:"Point",coordinates:[2.183830056949125,41.37809005317425]},geometry_name:"GEOMETRY",properties:{CODI:"TUR449",NOM:"Imax Port Vell",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62725",geometry:{type:"Point",coordinates:[2.183900056948757,41.37707005317452]},geometry_name:"GEOMETRY",
1581properties:{CODI:"TUR450",NOM:"L'Aqu\u00c3\u00a0rium de Barcelona",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62727",geometry:{type:"Point",coordinates:[2.1851950569490737,41.38236905317211]},geometry_name:"GEOMETRY",properties:{CODI:"TUR452",NOM:"Museu d'Hist\u00c3\u00b2ria de Catalunya",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62729",geometry:{type:"Point",coordinates:[2.179890056952538,41.37667005317789]},
1582geometry_name:"GEOMETRY",properties:{CODI:"TUR454",NOM:"Pailebot Santa Eul\u00c3\u00a0lia",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62733",geometry:{type:"Point",coordinates:[2.1839980569522672,41.3892570531714]},geometry_name:"GEOMETRY",properties:{CODI:"TUR458",NOM:"Parlament de Catalunya",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62734",geometry:{type:"Point",coordinates:[2.1839980569522672,
158341.3892570531714]},geometry_name:"GEOMETRY",properties:{CODI:"TUR459",NOM:"Zoo de Barcelona",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62735",geometry:{type:"Point",coordinates:[2.1129040570232562,41.39567905322809]},geometry_name:"GEOMETRY",properties:{CODI:"TUR460",NOM:"Reial Monestir de Santa Maria de Pedralbes",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62739",geometry:{type:"Point",coordinates:[2.1208600570133744,
158441.38840005322346]},geometry_name:"GEOMETRY",properties:{CODI:"TUR464",NOM:"Pavellons de la Finca G\u00c3\u00bcell",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}}],crs:"EPSG:4326"});return f.promise()};geoapi.GMBlank=function(f){this.tileSize=f};geoapi.GMBlank.prototype.maxZoom=19;geoapi.GMBlank.prototype.name="Blank";geoapi.GMBlank.prototype.alt="Blank Map";
1585geoapi.GMBlank.prototype.getTile=function(f,n,A){f=A.createElement("div");return f.style.width=this.tileSize.width+"px",f.style.height=this.tileSize.height+"px",f.style.backgroundColor="#FFFFFF",f};
1586/*
1587 For license information please see vullWidget.js.LICENSE.txt */
1588!function(C,L){"object"==typeof exports&&"object"==typeof module?module.exports=L():"function"==typeof define&&define.amd?define("widget",[],L):"object"==typeof exports?exp
1588orts.widget=L():C.widget=L()}(window,function(){return function(C){function L(u){if(I[u])return I[u].exports;var q=I[u]={i:u,l:!1,exports:{}};return C[u].call(q.exports,q,q.exports,L),q.l=!0,q.exports}var I={};return L.m=C,L.c=I,L.d=function(u,q,D){L.o(u,q)||Object.defineProperty(u,q,{enumerable:!0,get:D})},L.r=function(u){"undefined"!=
1589typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"});Object.defineProperty(u,"__esModule",{value:!0})},L.t=function(u,q){if((1&q&&(u=L(u)),8&q)||4&q&&"object"==typeof u&&u&&u.__esModule)return u;var D=Object.create(null);if(L.r(D),Object.defineProperty(D,"default",{enumerable:!0,value:u}),2&q&&"string"!=typeof u)for(var B in u)L.d(D,B,function(w){return u[w]}.bind(null,B));return D},L.n=function(u){var q=u&&u.__esModule?function(){return u.default}:function(){return u};
1590return L.d(q,"a",q),q},L.o=function(u,q){return Object.prototype.hasOwnProperty.call(u,q)},L.p="",L(L.s=6)}([function(C,L,I){C.exports={origin:"",desti:""}},function(C,L,I){var u,q=I(10),D=(u=I(0))&&u.__esModule?u:{default:u},B=null,w=null,p=null,E=null,x=null,t=[];C.exports={cleanMap:function(){window.geoWrapper.map.deleteMarkersLayer();this.removeMarker(!0);this.removeMarker()},checkIfResultAndClick:function(){return $("#tmb-maps__origen__carrer-lng").val()&&($(".form__tooltip--geolocation-error").hide(),
1591$(".has-geolocation .form__field__control").removeClass("form__field__control--error")),!(""==$("#tmb-maps__origen__carrer-lng").val()||""==$("#tmb-maps__desti__carrer-lng").val()&&!$("#f__va_near").is(":checked")||(this.removeLines(),$(".js__va-widget-submit").prop("disabled",!1),$(".js__va-widget-submit").removeClass("button--disabled"),$(".js__va-widget-submit").data("fromClick",2),$(".js__va-widget-submit").click(),0))},reloadMarkers:function(){B&&window.geoWrapper.map.removeInteraction(B.translateInteraction);
1592w&&window.geoWrapper.map.removeInteraction(w.translateInteraction);window.geoWrapper.map.deleteMarkersLayer();p&&this.addMarker(p,!0);E&&this.addMarker(E)},removeMarker:function(b){b?(B&&window.geoWrapper.map.removeInteraction(B.translateInteraction),p=null):(w&&window.geoWrapper.map.removeInteraction(w.translateInteraction),E=null);$("#tooltip-bus").hide();$("#tooltip-metro").hide();window.geoWrapper.map.removeMarker(b?B:w);b?B=null:w=null},removeLines:function(){window.geoWrapper.map.deleteMarkersLayer();
1593B&&(window.geoWrapper.map.addMarker(B),w&&window.geoWrapper.map.addMarker(w))},addMouseoverLinesInteraction:function(){x||((x=new ol.interaction.Select({condition:ol.events.condition.pointerMove,filter:function(b,k){return b&&null!=b.get("type")&&"line"===b.get("type")}})).on("select",function(b){0<b.selected.length&&Array.isArray(t)&&t.forEach(function(k){k&&"[object Function]"==={}.toString.call(k)&&k(b)})}),window.geoWrapper.map.addInteraction(x))},onMouseoverLine:function(b){this.mouseoverLinesInteraction||
1594this.addMouseoverLinesInteraction();t.push(b)},removeMouseoverLinesInteraction:function(){if(null!=x&&(x.getFeatures().clear(),window.geoWrapper.map.removeInteraction(x)),Array.isArray(t))for(;t.length;)t.pop()},clearMouseoverLinesSelected:function(){null!=x&&x.getFeatures().clear()},onMouseoverMap:function(b){b&&window.geoWrapper.map&&window.geoWrapper.map.functions&&(window.geoWrapper.map.functions.pointerMove=b)},clearOnMouseoverMap:function(){window.geoWrapper.map&&window.geoWrapper.map.functions&&
1595(window.geoWrapper.map.functions.pointerMove=null)},centerInRoute:function(b,k){window.geoWrapper.map.fitCoords([(parseFloat(k[0])+parseFloat(b[0]))/2,(parseFloat(b[1])+parseFloat(k[1]))/2],"EPSG:4326")},setMarkerAndCenter:function(b,k){C.exports.addMarker(b,k);window.geoWrapper.map.fitCoords([b.lon,b.lat],"EPSG:4326")},setNewMarkerPosition:function(b,k,c,d){var g=this,e=b?"origen":"desti",l=d||"";$("#tmb-maps__"+e+"__carrer-lng"+l).val(k[1]);$("#tmb-maps__"+e+"__carrer-lat"+l).val(k[0]);(new google.maps.Geocoder).geocode({latLng:new google.maps.LatLng(k[1],
1596k[0])},function(h,v){v===google.maps.GeocoderStatus.OK?h[1]?($("#tmb-maps__"+e+"__carrer"+l).val(h[1].formatted_address),$("#tmb-maps__"+e+"__carrer"+l).
1596change(),c)||(h=C.exports.checkIfResultAndClick(),D.default["origen"==e?"origin":"desti"]="search",h&&0==$("#widget-portlet").length&&("traject"==D.default.origin||"traject"==D.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRoute(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRouteWhereIAm()):
1597"pois"==D.default.origin||"pois"==D.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchLocation(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchLocationWhereIAm()):(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearch(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchWhereIAm()),Analytics&&Analytics.VullAnar.eventVirtualPage())):console.warn("No results found"):(C.exports.removeLines(),
1598$(document).trigger("deleteItineraries",b),setTimeout(function(){return g.removeMarker(b)},0),console.warn("Geocoder failed due to: "+v))})},addMarker:function(b,k,c){k&&null!=B?this.removeMarker(k):k||null==w||this.removeMarker();var d=window.geoWrapper.map.getMarker({coords:[b.lon,b.lat],proj:"EPSG:4326"},{src:k?window.pathTheme+"/images/A.png":window.pathTheme+"/images/B.png",size:[19,25],anchor:[9.5,25],anchorXUnits:"pixels",anchorYUnits:"pixels"});d.origin=!!k;var g,e,l=new ol.interaction.Modify({features:new ol.Collection([d])});
1599return window.geoWrapper.map.addInteraction(l),d.translateInteraction=l,d.on("change",(g=function(h,v){h=ol.proj.transform(h.target.getGeometry().getCoordinates(),"EPSG:3857","EPSG:4326");C.exports.setNewMarkerPosition(k,h)},400,function(){var h=this,v=arguments;clearTimeout(e);e=setTimeout(function(){e=null;g.apply(h,v)},400)}),d),d.type="marker",window.geoWrapper.map.addMarker(d),k?(B=d,window.markerA=d,p=b):(w=d,E=b),c&&C.exports.checkIfResultAndClick(),d},showItinerary:function(b){var k=1<arguments.length&&
1600void 0!==arguments[1]?arguments[1]:0,c=2<arguments.length?arguments[2]:void 0,d=3<arguments.length?arguments[3]:void 0;B&&this.cleanMap();this.addMarker({lon:b.from.lon,lat:b.from.lat},!0);this.addMarker({lon:b.to.lon,lat:b.to.lat});var g={bicing:"D51B24",ambici:"FF3B0F",donkey:"FF6400",bolt:"32BA78",cooltra:"07E501"};if(b.itineraries.forEach(function(l,h){for(var v in l.legs){var m=l.legs[v],y=k==h?m.routeColor?m.routeColor:g[m.transitNamespace]?g[m.transitNamespace]:"BICYCLE"===m.mode?"323232":
1601"656565":"cccccc",z=k==h?3:2,A=geoapi.MapUtils.decodeFeature(m.legGeometry.points,"EPSG:4326");m=window.geoWrapper.map.getFeatureLine(A,"EPSG:4326","#"+y,"#"+y,2,z,"WALK"===m.mode);m.setProperties({type:"line",itineraryIndex:h});window.geoWrapper.map.addFeature(m);c&&h&&window.geoWrapper.map.fitBounds("left",window.geoWrapper.map.getMarkerLayer().getSource().getExtent(),"EPSG:3857")}}),d&&0<Object.keys(d).length){var e=[];d.fromInZone&&e.push(d.fromInZone.codiLinia);d.toInZone&&e.push(d.toInZone.codiLinia);
1602"true"===window.busDemanda&&window.geoWrapper.map.refreshWmsBusOnDemand(e.join(","))}},showNear:function(b){B&&this.cleanMap();b=this.addMarker({lon:b.lon,lat:b.lat},!0);b=ol.proj.transform(b.getGeometry().getCoordinates(),"EPSG:3857","EPSG:4326");window.geoWrapper.map.fitCoords(b,"EPSG:4326");window.geoWrapper.map.getMap().getView().setZoom(18)},getNearPlan:function(b){var k=this;return window.geoWrapper.service.nearStops(jQuery.extend({},b)).then(function(c){return c&&c.features&&c.features.length?
1603(c=c.features,k.showNear(b),c):[]})},setPlan:function(b,k){var c=(0,q.getDateTime)().split("/");return b.fromPlaceText=b.fromPlaceText,b.arriveBy=b.arriveBy||!1,b.toPlaceText=b.toPlaceText,b.date=b.date||c[0],b.time=b.time||c[1],b.fromClick?$(".main__container .screen-reader-vullanar-reload").html("-"):$(".main__container .screen-reader-vullanar-reload").html(window.translate("journey.reloaded")),k&&k.plan?(k.plan.itineraries&&k.plan.itineraries.forEach(function(d){d.arriveBy=b.arriveBy;d.date=b.date;
1604d.time=b.time;d.origin=b.fromPlaceText;d.desti=b.toPlaceText}),$(document).trigger("searchPlan"),$(document).trigger("initTooltips"),this.showItinerary(k.plan,0,!0,k.zonesBaDMetadata),k):(C.exports.removeLines(),
1604k)},getPlan:function(b){var k=this,c=(0,q.getDateTime)().split("/");return b.fromAlternativa=b.fromAlternativa||"Alternativafom",b.fromPlaceY=b.fromPlaceY,b.fromPlaceX=b.fromPlaceX,b.fromPlaceText=b.fromPlaceText,b.arriveBy=b.arriveBy||!1,b.toAlternativa=b.toAlternativa||"Alternativato",b.toPlaceY=
1605b.toPlaceY,b.toPlaceX=b.toPlaceX,b.toPlaceText=b.toPlaceText,b.mode=b.mode||"TRANSIT,WALK",b.date=b.date||c[0],b.time=b.time||c[1],b.ruteId=b.ruteId||1,b.optimizationMode=b.optimizationMode||"BEST_ROUTE",b.showIntermediateStops=!0,window.geoWrapper.service.plannerRoute(jQuery.extend({},b)).then(function(d){return b.fromClick?$(".main__container .screen-reader-vullanar-reload").html("-"):$(".main__container .screen-reader-vullanar-reload").html(window.translate("journey.reloaded")),d&&d.plan?(d.plan.itineraries&&
1606d.plan.itineraries.forEach(function(g){g.arriveBy=b.arriveBy;g.date=b.date;g.time=b.time;g.origin=b.fromPlaceText;g.desti=b.toPlaceText}),$(document).trigger("searchPlan"),$(document).trigger("initTooltips"),k.showItinerary(d.plan,0,!0,d.zonesBaDMetadata),d):(C.exports.removeLines(),d)})},getPlanData:function(b){var k=(0,q.getDateTime)().split("/");return b.fromAlternativa=b.fromAlternativa||"Alternativafom",b.fromPlaceY=b.fromPlaceY,b.fromPlaceX=b.fromPlaceX,b.fromPlaceText=b.fromPlaceText,b.arriveBy=
1607b.arriveBy||!1,b.toAlternativa=b.toAlternativa||"Alternativato",b.toPlaceY=b.toPlaceY,b.toPlaceX=b.toPlaceX,b.toPlaceText=b.toPlaceText,b.mode=b.mode||"TRANSIT,WALK",b.date=b.date||k[0],b.time=b.time||k[1],b.ruteId=b.ruteId||1,b.optimizationMode=b.optimizationMode||"BEST_ROUTE",b.showIntermediateStops=!0,window.geoWrapper.service.plannerRouteAsync(jQuery.extend({},b)).then(function(c){return c&&c.plan?(c.plan.itineraries&&c.plan.itineraries.forEach(function(d){d.arriveBy=b.arriveBy;d.date=b.date;
1608d.time=b.time;d.origin=b.fromPlaceText;d.desti=b.toPlaceText}),c):c})}}},function(C,L,I){var u,q=(u=I(3))&&u.__esModule?u:{default:u};C.exports={data:[],searchData:!1,retrieveData:function(){var D=q.default.getLogin();if(D){C.exports.searchData=!0;var B=D.getLocations("routings");D=D.getLocations();C.exports.data=Promise.all([B,D]).then(function(w){var p=[],E=[];w[0].data&&w[0].data.routings&&w[0].data.routings.forEach(function(x){p.push({label:x.alias,valor:{from:{lat:x.originPoint.coordinates[0],
1609lon:x.originPoint.coordinates[1],label:x.originText},to:{lat:x.destinationPoint.coordinates[0],lon:x.destinationPoint.coordinates[1],label:x.destinationText}},category:window.translate("myTrips")})});w[1].data&&w[1].data.pois&&w[1].data.pois.forEach(function(x){var t=x.geometry.coordinates;E.push({label:x.properties.alias,valor:{lat:t[0],lon:t[1],label:x.properties.address},category:window.translate("pois")})});w=[].concat(p,E);return C.exports.data=w,C.exports.searchData=!1,w}).catch(function(w){return console.error(w),
1610C.exports.searchData=!1,C.exports.data=[],[]})}},getData:function(){return{search:C.exports.searchData,data:C.exports.data}}}},function(C,L,I){function u(q,D){function B(w,p){var E=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},x=3<arguments.length?arguments[3]:void 0;return new Promise(function(t,b){return x?w(D,p,x,E,function(k){return t(k)},function(k){return b(k)},q):w(D,p,E,function(k){return t(k)},function(k){return b(k)},q)})}this.getFavs=function(w){return B("lines"==w?favouriteLines:
1611favouriteStops,"GET")};this.addFavs=function(w,p){return B("lines"==w?favouriteLines:favouriteStops,"POST",p)};this.updateFavs=function(w){return B("lines"==w?favouriteLineById:favouriteStopById,"PUT",1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},2<arguments.length?arguments[2]:void 0)};this.delFavs=function(w,p){return B("lines"==w?favouriteLineById:favouriteStopById,"DELET
1611E",{},p)};this.getLocations=function(w){return B("routings"==w?routes:locations,"GET")};this.addLocations=function(w,
1612p){return B("routings"==w?routes:locations,"POST",p)};this.delLocation=function(w,p){return B("routings"==w?routeById:locationById,"DELETE",{},p)}}C.exports={getLogin:function(){var q=localStorage.getItem("uuid"),D=localStorage.getItem("kc_token");return null!=D&&""!=D&&null!=q&&""!=q?new u(D,q):null}}},function(C,L,I){function u(c){return c&&c.__esModule?c:{default:c}}var q=u(I(14)),D=u(I(18)),B=u(I(3)),w=u(I(19)),p=I(20),E=I(21),x=I(22),t=I(23),b=I(24),k=I(25);I(26);C.exports={deleteLineOrStop:function(c,
1613d,g){var e="bus"==c.transport.toLowerCase(),l=langJotmbeClose;g?e?w.default.deleteBusLineOfFavourites(c.id,c.code,c.name,d):w.default.deleteMetroLineOfFavourites(c.id,c.code,c.name,d):e?w.default.deleteBusStopOfFavourites(c.id,c.code,c.name,d):w.default.deleteMetroStationOfFavourites(c.id,c.code,c.name,d);TMB.dialog.newModal(l,"dialog--medium","delete-a-fragment",null)},addLineOrStop:function(c,d,g){var e="bus"==c.transport.toLowerCase(),l=e?"edit-favourite-b-fragment":"edit-favourite-a-fragment",
1614h=langJotmbeClose;g?e?w.default.addBusLineToFavourites(c.code,c.name,c.description,d):w.default.addMetroLineToFavourites(c.code,c.name,c.description,d):e?w.default.addBusStopToFavourites(c.code,c.name,d):w.default.addMetroStationToFavourites(c.code,c.name,d);TMB.dialog.newModal(h,"dialog--medium",l,null)},modalChoose:function(c,d,g){c=new q.default(b,c,!1);c.onCancel=function(){g&&g()};c.onConfirm=function(){d&&d()}},sendRequest:function(c,d,g,e){B.default.getLogin().updateFavs(c?"lines":"stops",
1615$.extend(e,{transportNotification:{status:"ENABLED",channelNotifications:[{channel:"APP_PUSH",status:"DISABLED"},{channel:"EMAIL",status:d}]}}),g.data.route||g.data.stop)},confirmLineOrStop:function(c,d){C.exports.confirmModal(window.pathTheme+"/images/jotmbe/48px/svg/48px_Favorit_gris.svg",window.translate(c?d?"lineDeleted":"lineAdded":d?"stopDeleted":"stopAdded"),window.translate("modalRemember"),window.translate("myFavourites"),"els-meus-favorits")},deleteTrajecte:function(c,d,g){var e=B.default.getLogin();
1616e&&Analytics&&Analytics.VullAnar.eventRemoveRoute();e&&C.exports.modalChoose({text1:window.translate("deleteTrajecteText1"),text2:window.translate("deleteTrajecteText2"),button1:window.translate("delete")},function(){return e.delLocation("routings",c).then(function(){C.exports.confirmTrajecte(!0);d&&d()})},function(){g&&g()})},confirmTrajecte:function(c){C.exports.confirmModal(window.pathTheme+"/images/jotmbe/48px/svg/48px_Trajecte_gris.svg",window.translate(c?"trajecteDeleted":"trajecteAdded"),c?
1617window.translate("modalRememberTrajecte"):"",c?window.translate("llocsAndTrajects"):"","llocs-i-trajectes")},addTrajecte:function(c,d){var g=new q.default(E,{text1:window.translate("trajectText1"),text2:window.translate("trajectText2"),button1:window.translate("b.saveRoute"),disabled:"disabled",origen:window.translate("m.origin"),desti:window.translate("m.destination"),text3:window.translate("alias"),carrerOrLoc:window.translate("carrerOrLoc")},!0,function(){function e(){0<$("#modal-trajectes-area-privada #f__camp__trajectes__1").val().length&&
16180<$("#modal-trajectes-area-privada #f__camp__trajectes__2").val().length&&0<$("#modal-trajectes-area-privada #f__camp__trajectes__1-lat").val().length&&0<$("#modal-trajectes-area-privada #f__camp__trajectes__2-lat").val().length&&0<$("#modal-trajectes-area-privada #f__camp__trajectes__3").val().length?($("#modal-trajectes-area-privada .button.button--a").removeClass("disabled"),$("#modal-trajectes-area-privada .button.button--a").removeAttr("disabled")):($("#modal-trajectes-area-privada .button.button--a").addClass("disabled"),
1619$("#modal-trajectes-area-privada .button.button--a").attr("disabled",!0))}$("#stopsPopup").css("display","none");$("#modal-trajectes-area-privada #f__camp__trajectes__1, #modal-trajectes-area-privada #f__camp__trajectes__2, #modal-trajectes-area-privada #f__camp__trajectes__3").on("input",e);$("#modal-trajectes-area-privada #f__camp__trajectes__1, #modal-trajectes-area-privada #f__camp__trajectes__2, #modal-trajectes-area-privada #f__camp__trajectes__3").on("blur",e);$("#modal-trajectes-area-privada .button--close").focus();
1620d&&($("#modal-trajectes-area-privada #f__camp__trajectes__1").val(d.origin.name),$("#modal-trajectes-area-privada #f__camp__trajectes__1-lat").val(d.origin.lat),$("#modal-trajectes-area-privada #f__camp__trajectes__1-lon").val(d.origin.lon),$("#modal-trajectes-area-privada #f__camp__trajectes__2").val(d.desti.name),$("#modal-trajectes-area-privada #f__camp__trajectes__2-lat").val(d.desti.lat),$("#modal-trajectes-area-privada #f__camp__trajectes__2-lon").val(d.desti.lon))});return g.removeEvents=function(){$("#modal-trajectes-area-privada #f__camp__trajectes__1, #modal-trajectes-area-privada #f__camp__trajectes__2, #modal-trajectes-area-privada #f__camp__trajectes__3").off("input");
1621$("#modal-trajectes-area-privada #f__camp__trajectes__1, #modal-trajectes-area-privada #f__camp__trajectes__2, #modal-trajectes-area-privada #f__camp__trajectes__3").off("blur")},g.onConfirm=function(){var e=D.default.prepareRoutingsObject($("#modal
1621-trajectes-area-privada #f__camp__trajectes__3").val(),$("#modal-trajectes-area-privada #f__camp__trajectes__1").val(),$("#modal-trajectes-area-privada #f__camp__trajectes__1-lat").val(),$("#modal-trajectes-area-privada #f__camp__trajectes__1-lon").val(),
1622$("#modal-trajectes-area-privada #f__camp__trajectes__2").val(),$("#modal-trajectes-area-privada #f__camp__trajectes__2-lat").val(),$("#modal-trajectes-area-privada #f__camp__trajectes__2-lon").val()),l=B.default.getLogin();l&&Analytics&&Analytics.VullAnar.eventSaveRouteOK();l&&l.addLocations("routings",D.default.prepareRoutingsObject($("#modal-trajectes-area-privada #f__camp__trajectes__3").val(),$("#modal-trajectes-area-privada #f__camp__trajectes__1").val(),parseFloat($("#modal-trajectes-area-privada #f__camp__trajectes__1-lat").val()),
1623parseFloat($("#modal-trajectes-area-privada #f__camp__trajectes__1-lon").val()),$("#modal-trajectes-area-privada #f__camp__trajectes__2").val(),parseFloat($("#modal-trajectes-area-privada #f__camp__trajectes__2-lat").val()),parseFloat($("#modal
1623-trajectes-area-privada #f__camp__trajectes__2-lon").val()))).then(function(h){c&&c(e);$(document).trigger("refreshTrajectes");C.exports.confirmTrajecte(!1)})},g},addLocation:function(c,d){var g=new q.default(x,{text1:window.translate("modalAddLocationText1"),
1624text2:window.translate("modalAddLocationText3"),text3:window.translate("modalAddLocationText3"),rb1:window.translate("other"),rb2:window.translate("house"),rb3:window.translate("work"),button1:window.translate("b.saveLocation"),alias:window.translate("alias"),carrerOrLoc:window.translate("carrerOrLoc")},!0,function(){function e(){0<$("#modal-llocs-area-privada #f__camp__llocs-ap__1").val().length&&0<$("#modal-llocs-area-privada #f__camp__llocs-ap__1-lat").val().length?($("#modal-llocs-area-privada .button.button--a").removeClass("disabled"),
1625$("#modal-llocs-area-privada .button.button--a").removeAttr("disabled")):($("#modal-llocs-area-privada .button.button--a").addClass("disabled"),$("#modal-llocs-area-privada .button.button--a").attr("disabled"))}$("#modal-llocs-area-privada #f__camp__llocs-ap__1, #modal-llocs-area-privada #f__camp__llocs-ap__2").on("input",e);$("#modal-llocs-area-privada #f__camp__llocs-ap__1, #modal-llocs-area-privada #f__camp__llocs-ap__2").on("blur",e);$("#modal-llocs-area-privada .button--close").focus();var l=
1626$("#modal-llocs-area-privada .option-group__items--pois .radio");l.on("click",function(h){l.removeClass("checked");$("#modal-llocs-area-privada .option-group__items--pois .radio input").attr("checked",!1);$("#modal-llocs-area-privada .option-group__items--pois .radio input").removeClass("checked");$(h.target).parent().addClass("checked");$(h.target).attr("checked",!0);$(h.target).addClass("checked");console.dir(h);$(h.target).children().attr("checked",!0);$("#modal-llocs-area-privada #f__camp__llocs-ap__2").val($(h.target).children().data("alias"))});
1627d&&($("#modal-llocs-area-privada #f__camp__llocs-ap__1").val(d.name),$("#modal-llocs-area-privada #f__camp__llocs-ap__1-lat").val(d.lat),$("#modal-llocs-area-privada #f__camp__llocs-ap__1-lon").val(d.lon))});g.removeEvents=function(){$("#modal-llocs-area-privada #f__camp__llocs-ap__1, #modal-llocs-area-privada #f__camp__llocs-ap__2").off("input");$("#modal-llocs-area-privada #f__camp__llocs-ap__1, #modal-llocs-area-privada #f__camp__llocs-ap__2").off("blur");$("#modal-llocs-area-privada .option-group__items--pois .radio").off("click")};
1628g.onConfirm=function(){var e=B.default.getLogin(),l=$("#modal-llocs-area-privada #f__camp__llocs-ap__2").val();""==l&&(l=$("#modal-llocs-area-privada #f__camp__llocs-ap__1").val());e&&Analytics&&Analytics.VullAnar.eventSaveLocOK();e&&e.addLocations("pois",D.default.prepareLocationsObject(l,$("#modal-llocs-area-privada #f__camp__llocs-ap__1").val(),parseFloat($("#modal-llocs-area-privada #f__camp__llocs-ap__1-lat").val()),parseFloat($("#modal-llocs-area-privada #f__camp__llocs-ap__1-lon").val()),$('input[name\x3d"f__camp-llocs_poi"]:checked').data("val"))).then(function(h){c&&
1629c(h);C.exports.confirmLocation()})}},confirmLocation:function(){C.exports.confirmModal(window.pathTheme+"/images/jotmbe/48px/svg/48px_Trajecte_gris.svg",window.translate("modalConfirmLocation"),"","")},confirmModal:function(c,d,g,e,l){(new q.default(p,{icon:c,text1:d,text2:g,favourites:e,link:l},!1,function(){$(".dialog-vullanar #modal-link").on("click",function(){C.exports.modalExit(l)});$(".dialog__header .button--close").focus()})).removeEvents=function(){$(".dialog-vullanar #modal-link").off("click")}},
1630horariModal:function(c,d){(new q.default(k,{title:c,content:d},!1,function(){$(".dialog-vullanar #modal-link").on("click",function(){C.exports.modalExit(link)})})).removeEvents=function(){$(".dialog-vullanar #modal-link").off("click")}},modalExit:function(c,d){localStorage.getItem("notShowExitDialog")?location.href=c:(d=new q.default(t,{accept:window.translate("b.accept"),cancel:window.translate("b.cancel"),text1:d||window.translate("exitText"),attention:window.translate("attention"),noShowAgain:window.translate("noShowAgain"),
1631closeIcon:"../images/basic/16px/svg/close.svg",url:c},!1,function(){$("#exit-dialog .checkbox").on("click",function(){$("#exit-dialog .checkbox").toggleClass("checked")})}),d.onConfirm=function(){$("#exit-dialog .checkbox").hasClass("checked")&&localStorage.setItem("notShowExitDialog",!0);location.href=c},d.removeEvents=function(){$(".exit-dialog .checkbox").off("click")})},genericModal:function(c,d){new q.default(k,{title:c,content:d},!1,function(){$(".dialog-vullanar #modal-link").on("click",function(){C.exports.modalExit(link)})})}}},
1632function(C,L,I){function u(t){return t&&t.__esModule?t:{default:t}}function q(t,b){var k="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!k){if(Array.isArray(t)||(k=function(l,h){if(l){if("string"==typeof l)return D(l,h);var v={}.toString.call(l).slice(8,-1);return"Object"===v&&l.constructor&&(v=l.constructor.name),"Map"===v||"Set"===v?Array.from(l):"Arguments"===v||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?D(l,h):void 0}}(t))||b&&t&&"number"==typeof t.length){k&&(t=k);
1633var c=0;b=function(){};return{s:b,n:function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function(l){throw l;},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var d,g=!0,e=!1;return{s:function(){k=k.call(t)},n:function(){var l=k.next();return g=l.done,l},e:function(l){e=!0;d=l},f:function(){try{g||null==k.return||k.return()}finally{if(e)throw d;}}}}function D(t,b){(null==
1634b||b>t.length)&&(b=t.length);for(var k=0,c=Array(b);k<b;k++)c[k]=t[k];return c}var B=u(I(2)),w=u(I(1)),p=u(I(0)),E=I(16),x=null;String.prototype.supplant||(String.prototype.supplant=function(t){return this.replace(/{([^{}]*)}/g,function(b,k){k=t[k];return"string"==typeof k||"number"==typeof k?k:b})});C.exports={init:function(t){$.widget("custom.vullcomplete",$.ui.autocomplete,{_create:function(){return this._super(),this.widget().menu("option","items","\x3e :not(.va-suggest__title)"),this},_renderMenu:function(b,
1635k){var c=this,d="";b.addClass("va-suggest__list");b.attr("aria-live","polite");b.attr("aria-relevant","additions");$.each(k,function(g,e){e.category!=d&&(b.append("\x3cli class\x3d'va-suggest__title'\x3e"+e.category+"\x3c/li\x3e"),d=e.category);c._renderItemData(b,e)});$(".autocomplete-screen-reader").html(k.length+" "+translate("helpSearch.results"))}});window.translate||(window.translate=function(b){switch(b.substr(0,2)){case "m.":b="map.goingTo."+b.substr(2);break;case "r.":b="radio.goingTo."+
1636b.substr(2);break;case "b.":b="button.goingTo."+b.substr(2);break;case "a.":b="access.goingTo."+b.substr(2);break;case "s.":b="step.goingTo."+b.substr(2);break;case "t.":b="text.goingTo."+b.substr(2);break;case "o.":b="option.goingTo."+b.substr(2);break;case "e.":b="error.goingTo."+b.substr(2);break;default:b="label.goingTo."+b}return TMB.l10n.vullanar.get(b)});$(t).each(function(b,k){$(k).on("focus",function(c){c.stopPropagation();B.default.retrieveData();$(this).data("customVullcomplete").search("")})})},
1637setHistory:function(t,b,k){C.exports.paintMarker([parseFloat(b.valor.lat),parseFloat(b.valor.lon)],k,b.label);
1637$(document).trigger("changeInput",{input:-1!=k.attr("id").indexOf("origen"),label:b.label});setTimeout(function(){""!=$("#tmb-maps__origen__carrer").val()&&""!=$("#tmb-maps__desti__carrer").val()||""!=$("#tmb-maps__origen__carrer").val()&&$("#f__va_near").is(":checked")?($(".js__va-widget-submit").prop("disabled",!1),$(".js__va-widget-submit").removeClass("button--disabled"),$(".js-search-vullanar").prop("disabled",
1638!1),$(".js-search-vullanar").removeClass("disabled")):($(".js__va-widget-submit").prop("disabled",!0),$(".js__va-widget-submit").addClass("button--disabled"),$(".js-search-vullanar").prop("disabled",!0),$(".js-search-vullanar").addClass("disabled"))},0)},setStop:function(t,b,k){window.geoWrapper.service.getBusStopInfo(b.valor.code).then(function(c){var d=ol.proj.transform(c.geometry.coordinates,"EPSG:3857","EPSG:4326");C.exports.paintMarker(d,k,b.label);C.exports.showPopup($(k).parent(),"stop",c.properties);
1639$(document).trigger("changeInput",{input:-1!=k.attr("id").indexOf("origen"),label:b.label})})},setStation:function(t,b,k){window.geoWrapper.service.getMetroStopInfo(b.valor.code).then(function(c){var d=ol.proj.transform(c.geometry.coordinates,"EPSG:3857","EPSG:4326");C.exports.paintMarker(d,k,b.label);C.exports.showPopup($(k).parent(),"station",c.properties);$(document).trigger("changeInput",{input:-1!=k.attr("id").indexOf("origen"),label:b.label})})},setTraject:function(t,b,k){-1<t.target.id.indexOf("origen")?
1640(b.value=b.valor.from.label,b.label=b.valor.from.label):(b.value=b.valor.to.label,b.label=b.valor.to.label);C.exports.paintMarker([parseFloat(b.valor.from.lat),parseFloat(b.valor.from.lon)],$("#tmb-maps__origen__carrer"),b.valor.from.label,!0,!0);b.valor.near?($("#f__va_near").click(),$("#tmb-maps__desti__carrer").prop("disabled",!0),$(".js-search-vullanar").prop("disabled",!0)):(C.exports.paintMarker([parseFloat(b.valor.to.lat),parseFloat(b.valor.to.lon)],$("#tmb-maps__desti__carrer"),b.valor.to.label,
1641!0,!0),w.default.centerInRoute([parseFloat(b.valor.from.lat),parseFloat(b.valor.from.lon)],[parseFloat(b.valor.to.lat),parseFloat(b.valor.to.lon)]));$(".js__va-widget-submit").prop("disabled",!1);$(".js__va-widget-submit").removeClass("button--disabled");$(".js-search-vullanar").prop("disabled",!1);$(".js-search-vullanar").removeClass("disabled");var c=w.default.checkIfResultAndClick();setTimeout(function(){c&&c&&0==$("#widget-portlet").length&&("traject"==p.default.origin||"traject"==p.default.desti?
1642(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRoute(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRouteWhereIAm()):"pois"==p.default.origin||"pois"==p.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchLocation(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchLocationWhereIAm()):(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearch(),$("#f__va_near").is(":checked")&&
1643Analytics&&Analytics.VullAnar.eventSearchWhereIAm()),Analytics&&Analytics.VullAnar.eventVirtualPage())},0);$(document).trigger("changeInput",{input:!0,label:b.valor.from.label});$(document).trigger("changeInput",{input:!1,label:b.valor.to.label})},setPoi:function(t,b,k){C.exports.paintMarker([b.valor.lat,b.valor.lon],k,b.valor.label);$(document).trigger("changeInput",{input:-1!=k.attr("id").indexOf("origen"),label:b.valor.label});setTimeout(function(){""!=$("#tmb-maps__origen__carrer").val()&&""!=
1644$("#tmb-maps__desti__carrer").val()||""!=$("#tmb-maps__origen__carrer").val()&&$("#f__va_near").is(":checked")?($(".js__va-widget-submit").prop("disabled",!1),$(".js__va-widget-submit").removeClass("button--disabled"),$(".js-search-vullanar").prop("disabled",!1),$(".js-search-vullanar").removeClass("disabled")):($(".js__va-widget-submit").prop("disabled",!0),$(".js__va-widget-submit").addClass("button--disabled"),$(".js-search-vullanar").prop("disabled",!0),$(".js-search-vullanar").addClass("disabled"))},
16450)},paintMarker:function(t,b,k,c,d){c?w.default.addMarker({lon:t[0],lat:t[1]},-1!=b.attr("id").indexOf("origen")):w.default.setMarkerAndCenter({lon:t[0],lat:t[1]},-1!=b.attr("id").indexOf("origen"));$("#"+b.attr("id")+"-lng").val(t[1]);$("#"+b.attr("id")+"-lat").val(t[0]);$("#"+b.attr("id")).val(k);
1645$(document).trigger("changeInput",{input:-1!=b.attr("id").indexOf("origen"),label:k});setTimeout(function(){w.default.checkIfResultAndClick()&&!d&&0==$("#widget-portlet").length&&("traject"==p.default.origin||
1646"traject"==p.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRoute(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRouteWhereIAm()):"pois"==p.default.origin||"pois"==p.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchLocation(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchLocationWhereIAm()):(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearch(),
1647$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchWhereIAm()),Analytics&&Analytics.VullAnar.eventVirtualPage())},0)},setSearch:function(t,b,k,c){k.geocode({placeId:b.item.valor.place_id},function(d,g){if("OK"==g){var e=d[0];d=e.geometry.location.lng();g=e.geometry.location.lat();var l=b.item.label;d=[parseFloat(d),parseFloat(g)];d=ol.proj.transform(d,"EPSG:4326","EPSG:4326");$("#"+c.attr("id")+"-lng").val(d[1]);$("#"+c.attr("id")+"-lat").val(d[0]);$("#"+c.attr("id")).val(l);
1648w.default.setMarkerAndCenter({lon:d[0],lat:d[1]},-1!=c.attr("id").indexOf("origen"));w.default.checkIfResultAndClick()&&0==$("#widget-portlet").length&&("traject"==p.default.origin||"traject"==p.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRoute(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRouteWhereIAm()):"pois"==p.default.origin||"pois"==p.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchLocation(),
1649$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchLocationWhereIAm()):(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearch(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchWhereIAm()),Analytics&&Analytics.VullAnar.eventVirtualPage());$(document).trigger("changeInput",{input:-1!=c.attr("id").indexOf("origen"),label:l});g=JSON.parse(window.localStorage.getItem("searchHistory"))||[];g.find(function(h){return h.label===l})||(5<=
1650g.length&&g.shift(),g.push({label:l,valor:{lat:d[0],lon:d[1]}}),window.localStorage.setItem("searchHistory",JSON.stringify(g)));C.exports.showPopup($(c).parent(),"location",e)}else console.error(g,e)})},renderItem:function(t,b){var k="",c="";switch(b.category){case window.translate("search"):k='\x3cspan class\x3d"icon suggest-icon '+(-1!=b.types.indexOf("point_of_interest")?"ico--poi":-1!=b.types.indexOf("street_address")?"ico--dir":-1!=b.types.indexOf("bus_station")?"ico--bus":-1!=b.types.indexOf("train_station")?
1651"ico--metro":-1!=b.types.indexOf("transit_station")?"ico--transit":"ico--dir")+'"\x3e\x3c/span\x3e';break;case window.translate("lastSearchs"):k='\x3cspan class\x3d"icon suggest-icon icon--history-clock"\x3e\x3c/span\x3e';break;case window.translate("pois"):k='\x3cspan class\x3d"icon suggest-icon icon--place"\x3e\x3c/span\x3e';break;case window.translate("myTrips"):k='\x3cspan class\x3d"icon suggest-icon label-icon--trajecte"\x3e\x3c/span\x3e';break;case window.translate("Parades"):k='\x3cspan style\x3d"display: table-cell;vertical-align: middle;padding-right:8px;"\x3e\x3cimg src\x3d"'+
1652window.pathTheme+'/images/basic/32px/svg/bus_home.svg" alt\x3d"" class\x3d"va-view__stop-icon" style\x3d"position: relative;width: 1.5rem;height: 1.5rem;top: 0;transform: none;left: -3px;"\x3e\x3c/span\x3e';break;case window.translate("Estacions"):var d=b.valor.icon.split("L"),g;for(g in d.shift(),k="",d)d[g].split("9")[1]?k+='\x3cspan class\x3d"line line--l9" style\x3d"position: relative;display: table-cell;vertical-align: middle;transform: none;left: -1px;"\x3eL'+d[g]+"\x3c/span\x3e":d[g].split("10")[1]?
1653k+='\x3cspan class\x3d"line line--l10" style\x3d"position: relative;display: table-cell;vertical-align: middle;transform: none;left: 3px;"\x3eL'+d[g]+"\x3c/span\x3e":k+='\x3cspan class\x3d"line line--'+b.valor.icon.toLowerCase()+'" style\x3d"position: relative;display: table-cell;vertical-align: middle;transform: none;left: -1px;"\x3e'+b.valor.icon+"\x3c/span\x3e",c="padding-left:8px;"}return $('\x3cli class\x3d"datalist__item" role\x3d"presentation"\x3e\x3c/li\x3e').data("item.autocomplete",b).append('\x3ca href\x3d"#" onclick\x3d"return false;" class\x3d"suggest-item"\x3e'+
1654k+'\x3cspan class\x3d"suggest-text" style\x3d'+c+"\x3e"+b.label+"\x3c/span\x3e\x3c/a\x3e").appendTo(t)},showPopup:function(t,b,k){if($("#popup-autocomplete").length&&(x&&(x.disconnect(),x=null),$("#popup-autocomplete").unbind("DOMNodeRemoved"),C.exports.removePopup()),!window.localStorage.getItem("noPopup")){var c=function(){$("#popup-autocomplete .checkbox").hasClass("checked")&&window.localStorage.setItem("noPopup",!0)},d="undefined"!=typeof TJS?TJS.velocity.getCookie("JoTMBeKCSession"):window.getCookie("JoTMBeKCSession"),
1655g=window.translate("popupAddButton1"),e="location"!=b?window.translate("popupText"):window.translate("popupLocations"),l=k.CODI_ESTACIO,h={name:l?k.NOM_ESTACIO:k.NOM_PARADA,description:l?k.NOM_ESTACIO?k.NOM_ESTACIO:k.DESC_ESTACIO:k.NOM_PARADA?k.NOM_PARADA:k.DESC_PARADA,transport:"stop"==b?"Bus":"Metro",code:l||k.CODI_PARADA},v=function(){$(t).append(E.supplant({pathTheme:window.pathTheme,noShowAgain:window.translate("noShowAgain"),button1:g,text:e}));$("#popup-autocomplete .popup-autocomplete-button").on("click",
1656function(){if($("#popup-autocomplete").unbind("DOMNodeRemoved"),x&&(x.disconnect(),x=null),d){if("location"!=b)window.widget.modals.addLineOrStop(h,function(){c();C.exports.removePopup()},!1);else{var m=t.children("input").first().attr("id");m={name:$("#"+m).val(),lat:$("#"+m+"-lat").val(),lon:$("#"+m+"-lng").val()};window.widget.modals.addLocation(void 0,m)}0==$("#widget-portlet").length&&Analytics&&Analytics.VullAnar.eventFavorite();0<$("#widget-portlet").length&&Analytics&&Analytics.Widget.VullAnar.eventFavorite()}else c(),
1657m=t.children("input").first().attr("id"),m={inputId:m,name:$("#"+m).val(),lat:$("#"+m+"-lat").val(),lon:$("#"+m+"-lng").val()},"location"==b?localStorage.setItem("signup_add_location",JSON.stringify(m)):(m
1657=Object.assign(m,h),localStorage.setItem("signup_add_line_or_stop",JSON.stringify(m))),initModalRegister("Flyout JOTMBE"),0==$("#widget-portlet").length&&Analytics&&Analytics.VullAnar.eventFavoriteSignUp(),0<$("#widget-portlet").length&&Analytics&&Analytics.Widget.VullAnar.eventFavoriteSignUp();
1658C.exports.removePopup()});$("#popup-autocomplete .checkbox").on("click",function(m){m.preventDefault();$("#popup-autocomplete .checkbox").toggleClass("checked")});$("#popup-autocomplete .popup-close").on("click",function(){c();$("#popup-autocomplete").unbind("DOMNodeRemoved");x&&(x.disconnect(),x=null);C.exports.removePopup()});$("#popup-autocomplete").bind("DOMNodeRemoved",function(){v();$("#popup-autocomplete").unbind("DOMNodeRemoved")});x&&(x.disconnect(),x=null);(x=new MutationObserver(function(m,
1659y){var z;m=q(m);try{for(m.s();!(z=m.n()).done;)"childList"!==z.value.type||$("#popup-autocomplete").length||v()}catch(A){m.e(A)}finally{m.f()}})).observe(document.body,{childList:!0,subtree:!0})};v()}},removePopup:function(){$("#popup-autocomplete").remove();$("#popup-autocomplete .checkbox").off("click");$("#popup-autocomplete .popup-autocomplete-button").off("click");$("#popup-autocomplete .popup-close").off("click")},throttle:function(t,b,k){var c,d;return function(){var g=this,e=arguments;k.closed?
1660(t.apply(g,e),d=Date.now()):d?(clearTimeout(c),c=setTimeout(function(){Date.now()-d>=b&&(t.apply(g,e),d=Date.now())},b-(Date.now()-d))):(t.apply(g,e),d=Date.now())}}}},function(C,L,I){C.exports=I(7)},function(C,L,I){function u(p){return p&&p.__esModule?p:{default:p}}L=u(I(8));var q=u(I(1)),D=u(I(27)),B=u(I(0)),w=u(I(4));I=u(I(28));C.exports={geoMap:L.default,mapCtrl:q.default,autoComplete:D.default,autoCompleteAnalytics:B.default,modals:w.default,portalUtils:I.default}},function(C,L,I){function u(c){return c&&
1661c.__esModule?c:{default:c}}function q(c){var d=new ol.interaction.Select({condition:ol.events.condition.click});d.on("select",function(g){var e=g.selected[0];if(e&&"marker"!=e.type)if(d.getFeatures().clear(),e.getProperties().CODI_PARADA)window.geoWrapper.service.getBusStopInfo(e.getProperties().CODI_PARADA).then(function(h){!function(v,m,y){var z={stopInfo:y};z.url="../barcelona/autobusos/-/lineabus/parada/"+y.CODI_PARADA;y=window.geoWrapper.service.getLinesByBusStop_v3(m,!0).then(function(A){return A});
1662m=window.geoWrapper.service.getBusAffectations(void 0,m).then(function(A){return 0<A.data.alerts.length?A.data.alerts:null});Promise.all([y,m]).then(function(A){z.linesParada=A[0].busLines.map(function(G){return G.properties});z.linesCorresp=A[0].busCorresp.concat(A[0].metro).map(function(G){return G.properties});z.stopAlerts=A[1];$(document).trigger("show-bus-tooltip",z);B("bus",v,z.url)},function(A){console.error("Promise all reason \x3d\x3e",A)})}(e,e.getProperties().CODI_PARADA,h.properties)});
1663else if(e.getProperties().ID_ACCES){var l=e.getProperties();window.geoWrapper.service.getStops(void 0,"METRO").then(function(h){if(h=h.features.find(function(v){return v.properties.NOM_ESTACIO==l.NOM_ESTACIO}))h=h.properties,h.NOM_ESTACIO=l.NOM_ACCES,h.ID_TIPUS_ACCESSIBILITAT=l.ID_TIPUS_ACCES||l.ID_TIPUS_ACCESSIBILITAT,D(e,h.CODI_ESTACIO,h,l.CODI_ACCES)})}else null==e.getProperties().CODI_ESTACIO?e.getProperties().ID_ESTACIO&&window.geoWrapper.service.getMetroStopInfo(e.getProperties().ID_ESTACIO).then(function(h){D(e,
1664e.getProperties().ID_ESTACIO,h.properties)}):window.geoWrapper.service.getMetroStopInfo(e.getProperties().CODI_ESTACIO).then(function(h){D(e,e.getProperties().CODI_ESTACIO,h.properties)});else d.getFeatures().clear()});c.addInteraction(d)}function D(c,d,g,e){var l={stopInfo:g};l.url="../barcelona/metro/-/lineametro/estacion/"+d;l.code=e||d;d=[];e||d.push(window.geoWrapper.service.getAccess(void 0,g.CODI_GRUP_ESTACIO).then(function(h){return h.features}));d.push(window.geoWrapper.service.getMetroTimetable(g.CODI_LINIA).then(function(h){return h.features}));
1665d.push(window.geoWrapper.service.getMetroAffectations(g.NOM_LINIA,g.CODI_ESTACIO.toString()).then(function(h){return 0<h.data.alerts.length?h.data.alerts:null}));d.push($.ajax({url:varApiGisTransit+"/linies/metro/estacions/"+g.CODI_ESTACIO+"/corresp?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26cql_filter\x3d(ID_OPERADOR+IN+(1,3,4,5))\x26sortBy\x3dCODI_ESTACIO,ID_OPERADOR,NOM_LINIA\x26srsName\x3dEPSG:3857",contentType:"application/json; charset\x3dutf-8",dataType:"json",type:"GET",error:function(h,
1666v,m){return console.error(v,h.status,m),h}}));Promise.all(d).then(function(h){if(e)l.linesByStop=h[2].features.map(function(m){return m.properties}),l.metroTimetable=h[0].map(function(m){return m.properties}),l.stopAlerts=h[1],$(document).trigger("show-metro-tooltip",l),B("metro",c,l.url);else{l.accesses=h[0].map(function(m){return m.properties});l.linesByStop=h[3].features.map(function(m){return m.properties});l.metroTimetable=h[1].map(function(m){return m.properties});l.stopAlerts=h[2];var v=[];
1667h=l.linesByStop.findIndex(function(m){return m.CODI_LINIA==l.stopInfo.CODI_LINIA});-1!=h&&l.linesByStop.splice(h,1);
1667l.accesses.forEach(function(m){v.push(window.geoWrapper.service.getAccessLines(m.CODI_ACCES).then(function(y){return y.features.map(function(z){return z.properties})}))});Promise.all(v).then(function(m){l.accesses.forEach(function(y,z){y.lines=m[z]});$(document).trigger("show-metro-tooltip",l);B("metro",c,l.url)})}},function(h){console.error("Promise all reason \x3d\x3e",h)})}function B(c,
1668d,g){var e=$("#tooltip-"+c),l=window.geoWrapper.map;d=d.getGeometry().getCoordinates();var h=l.map.getPixelFromCoordinate(d),v=l.map.getSize()[1],m="bottom-center";h[1]>2*v/3&&(m="top-center");e.removeClass("va-popup-up-orientation va-popup-down-orientation");e.addClass("top-center"===m?"va-popup-up-orientation":"va-popup-down-orientation");h=new ol.Overlay({element:e,positioning:m});setTimeout(function(){e.show();$(".link-"+c+"-popup").on("click",function(){x.default.modalExit(g)})},100);h.setPosition(d);
1669l.addOverlay(h)}var w=u(I(9)),p=u(I(12)),E=u(I(13)),x=u(I(4)),t=varApiGis,b=varApiGisTransit,k=varApiGisPlanner;C.exports=function(c,d){var g=this;if(this.service=new p.default(varTmbApiId,varTmbApiKey,t,b,k,varBusAlertsUrl,varMetroAlertsUrl),this.created=!1,document.getElementById(c))this.map=new w.default(varTmbApiId,varTmbApiKey,c),q(this.map),this.created=!0,null!=d&&d.showResizeHandler&&(this.resizeHandler=new E.default(c,d.minContainerHeight),this.resizeHandler&&d.onResizing&&this.resizeHandler.onResizing(function(l){d.onResizing(l);
1670g.map.updateSize()}));else var e=setInterval(function(){document.getElementById(c)&&(g.map=new w.default(varTmbApiId,varTmbApiKey,c),q(g.map),g.created=!0,null!=d&&d.showResizeHandler&&(g.resizeHandler=new E.default(c,d.minContainerHeight),g.resizeHandler&&d.onResizing&&g.resizeHandler.onResizing(function(l){d.onResizing(l);g.map.updateSize()})),clearInterval(e))},100)}},function(C,L,I){function u(k){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:
1671function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(k)}function q(k){return k&&k.__esModule?k:{default:k}}function D(k,c){for(var d=0;d<c.length;d++){var g=c[d];g.enumerable=g.enumerable||!1;g.configurable=!0;"value"in g&&(g.writable=!0);var e=Object,l=e.defineProperty;var h=g.key;a:if("object"==u(h)&&h){var v=h[Symbol.toPrimitive];if(void 0!==v){h=v.call(h,"string");if("object"!=u(h))break a;throw new TypeError("@@toPrimitive must return a primitive value.");
1672}h=String(h)}h="symbol"==u(h)?h:h+"";l.call(e,k,h,g)}}function B(k,c,d){return c=p(c),function(g,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(k,function(){try{var g=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return!!g}()?Reflect.construct(c,d||
1673[],p(k).constructor):c.apply(k,d))}function w(){return(w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(k,c,d){var g;for(g=k;!{}.hasOwnProperty.call(g,c)&&null!==(g=p(g)););if(g)return g=Object.getOwnPropertyDescriptor(g,c),g.get?g.get.call(3>arguments.length?k:d):g.value}).apply(null,arguments)}function p(k){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)})(k)}function E(k,c){return(E=Object.setPrototypeOf?
1674Object.setPrototypeOf.bind():function(d,g){return d.__proto__=g,d})(k,c)}var x=q(I(1)),t=q(I(11)),b=function(k,c){var d=c?"origen":"destination";$("#contextMenu ."+d).off("click");$("#contextMenu ."+d).on("click",function(){$("#contextMenu").hide();x.default.addMarker({lon:k[0],lat:k[1]},c);x.default.setNewMarkerPosition(c,k)})};C.exports=function(){function k(g,e,l){var h;if(!(this instanceof k))throw new TypeError("Cannot call a class as a function");return(h=B(this,k,[{gmMode:!1,element:l,appIdTMB:g,
1675appKeyTMB:e,rightClick:function(v,m){$("#contextMenu").hide()},leftClick:function(v,m){h.showContextMenu(v.originalEvent,m,ol)}}])).tapMap(h.map,ol,l),h}return function(g,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(e&&e.prototype,{constructor:{value:g,writable:!0,configurable:!0}});Object.defineProperty(g,"prototype",{writable:!1});e&&E(g,e)}(k,geoapi.Map),c=k,d=[{key:"fitBounds",value:function(g,e,l,h,v){return(m=
1676k,"fitBounds",y=this,"function"==typeof(z=w(p(m.prototype),"fitBounds",y))?function(A){return z.apply(y,A)}:z)([e,l,h,v]);var m,y,z}},{key:"showContextMenu",value:function(g,e,l){g=e.getEventPixel(g);var h=l.proj.transform(e.getCoordinateFromPixel(g),"EPSG:3857","EPSG:4326");
1676l=new l.Overlay({element:$("#contextMenu"),positioning:"top-right"});l.setPosition(e.getCoordinateFromPixel(g));e.addOverlay(l);$("#contextMenu").show();b(h,!0);b(h)}},{key:"tapMap",value:function(g,e,l){var h=this,v=setInterval(function(){if(document.getElementById(l)){var m=
1677new t.default.Manager(document.getElementById(l));m.add(new t.default.Press({time:500}));m.on("press",function(y){h.showContextMenu(y.srcEvent,g,e)});clearInterval(v)}},100)}},{key:"updateSize",value:function(){this.map&&this.map.updateSize()}}],D(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c;var c,d}()},function(C,L,I){var u=C.exports={dateTime:null,getDateTime:function(q){var D=(q=q||new Date).getFullYear(),B=q.getMonth()+1,w=q.getDate(),p=q.getHours(),E=q.getMinutes();q.getSeconds();
1678return 1===B.toString().length&&(B="0"+B),1===w.toString().length&&(w="0"+w),1===p.toString().length&&(p="0"+p),1===E.toString().length&&(E="0"+E),D+"-"+B+"-"+w+"/"+p+":"+E},setDateTime:function(){u.dateTime=u.getDateTime().split("/").join(" - ")+"h"},formatDate:function(q){if(q){var D=q.split("/")[0].split("-")[0],B=q.split("/")[0].split("-")[1];return q.split("/")[0].split("-")[2]+"-"+B+"-"+D+" - "+q.split("/")[1].split(":")[0]+":"+q.split("/")[1].split(":")[1]+"h"}},formatDateWithSlash:function(q){if(q){var D=
1679q.split("/")[0].split("-")[0],B=q.split("/")[0].split("-")[1];return q.split("/")[0].split("-")[2]+"/"+B+"/"+D+" - "+q.split("/")[1].split(":")[0]+":"+q.split("/")[1].split(":")[1]+"h"}},getFormatDate:function(q){var D=q.split(" - ")[0].split("-")[2],B=q.split(" - ")[0].split("-")[1]-1,w=q.split(" - ")[0].split("-")[0],p=q.split(" - ")[1].split(":")[0];q=q.split(" - ")[1].split(":")[1].replace("h","");return new Date(D,B,w,p,q)},addMinutes:function(q,D){return new Date(q.getTime()+6E4*D)}}},function(C,
1680L,I){var u;!function(q,D,B,w){function p(a,f,n){return setTimeout(k(a,n),f)}function E(a,f,n){return!!Array.isArray(a)&&(x(a,n[f],n),!0)}function x(a,f,n){var r;if(a)if(a.forEach)a.forEach(f,n);else if(a.length!==w)for(r=0;r<a.length;)f.call(n,a[r],r,a),r++;else for(r in a)a.hasOwnProperty(r)&&f.call(n,a[r],r,a)}function t(a,f,n){var r="DEPRECATED METHOD: "+f+"\n"+n+" AT \n";return function(){var H=Error("get-stack-trace");
1680H=H&&H.stack?H.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,
1681"{anonymous}()@"):"Unknown Stack Trace";var N=q.console&&(q.console.warn||q.console.log);return N&&N.call(q.console,r,H),a.apply(this,arguments)}}function b(a,f,n){var r=f.prototype;(f=a.prototype=Object.create(r)).constructor=a;f._super=r;n&&qa(f,n)}function k(a,f){return function(){return a.apply(f,arguments)}}function c(a,f){return"function"==typeof a?a.apply(f&&f[0]||w,f):a}function d(a,f,n){x(l(f),function(r){a.addEventListener(r,n,!1)})}function g(a,f,n){x(l(f),function(r){a.removeEventListener(r,
1682n,!1)})}function e(a,f){for(;a;){if(a==f)return!0;a=a.parentNode}return!1}function l(a){return a.trim().split(/\s+/g)}function h(a,f,n){if(a.indexOf&&!n)return a.indexOf(f);for(var r=0;r<a.length;){if(n&&a[r][n]==f||!n&&a[r]===f)return r;r++}return-1}function v(a){return Array.prototype.slice.call(a,0)}function m(a,f,n){for(var r=[],H=[],N=0;N<a.length;){var aa=f?a[N][f]:a[N];0>h(H,aa)&&r.push(a[N]);H[N]=aa;N++}return n&&(r=f?r.sort(function(Q,ja){return Q[f]>ja[f]}):r.sort()),r}function y(a,f){for(var n,
1683r,H=f[0].toUpperCase()+f.slice(1),N=0;N<Fa.length;){if((r=(n=Fa[N])?n+H:f)in a)return r;N++}return w}function z(a){a=a.ownerDocument||a;return a.defaultView||a.parentWindow||q}function A(a,f){var n=this;this.manager=a;this.callback=f;this.element=a.element;this.target=a.options.inputTarget;this.domHandler=function(r){c(a.options.enable,[a])&&n.handler(r)};this.init()}function G(a,f,n){var r=n.pointers.length,H=n.changedPointers.length,N=1&f&&0==r-H;n.isFirst=!!N;n.isFinal=!!(12&f&&0==r-H);N&&(a.session=
1684{});n.eventType=f;(function(aa,Q){var ja=aa.session,va=Q.pointers,ra=va.length;ja.firstInput||(ja.firstInput=F(Q));1<ra&&!ja.firstMultiple?ja.firstMultiple=F(Q):1===ra&&(ja.firstMultiple=!1);var na=ja.firstInput,Ga=(ra=ja.firstMultiple)?ra.center:na.center,Ha=Q.center=K(va);Q.timeStamp=Aa();Q.deltaTime=Q.timeStamp-na.timeStamp;Q.angle=O(Ga,Ha);Q.distance=X(Ga,Ha);(function(ma,fa){var ia=fa.center,oa=ma.offsetDelta||{},pa=ma.prevDelta||{},la=ma.prevInput||{};1!==fa.eventType&&4!==la.eventType||(pa=
1685ma.prevDelta={x:la.deltaX||0,y:la.deltaY||0},oa=ma.offsetDelta={x:ia.x,y:ia.y});fa.deltaX=pa.x+(ia.x-oa.x);fa.deltaY=pa.y+(ia.y-oa.y)})(ja,Q);Q.offsetDirection=P(Q.deltaX,Q.deltaY);var Ba;na=U(Q.deltaTime,Q.deltaX,Q.deltaY);Q.overallVelocityX=na.x;Q.overallVelocityY=na.y;Q.overallVelocity=sa(na.x)>sa(na.y)?na.x:na.y;Q.scale=ra?(Ba=ra.pointers,X(va[0],va[1],xa)/X(Ba[0],Ba[1],xa)):1;Q.rotation=ra?function(ma,fa){return O(fa[1],fa[0],xa)+O(ma[1],ma[0],xa)}(ra.pointers,va):0;Q.maxPointers=ja.prevInput?
1686Q.pointers.length>ja.prevInput.maxPointers?Q.pointers.length:ja.prevInput.maxPointers:Q.pointers.length;(function(ma,fa){var ia=ma.lastInterval||fa;var oa=fa.timeStamp-ia.timeStamp;if(8!=fa.eventType&&(25<oa||ia.velocity===w)){var pa=fa.deltaX-ia.deltaX;ia=fa.deltaY-ia.deltaY;var la=U(oa,pa,ia);oa=la.x;var Ia=la.y;la=sa(la.x)>sa(la.y)?la.x:la.y;pa=P(pa,ia);ma.lastInterval=fa}else la=ia.velocity,oa=ia.velocityX,Ia=ia.velocityY,pa=ia.direction;fa.velocity=la;fa.velocityX=oa;fa.velocityY=Ia;fa.direction=
1687pa})(ja,Q);aa=aa.element;e(Q.srcEvent.target,aa)&&(aa=Q.srcEvent.target);Q.target=aa})(a,n);a.emit("hammer.input",n);a.recognize(n);a.session.prevInput=n}function F(a){for(var f=[],n=0;n<a.pointers.length;)f[n]={clientX:ua(a.pointers[n].clientX),clientY:ua(a.pointers[n].clientY)},n++;return{timeStamp:Aa(),pointers:f,center:K(f),deltaX:a.deltaX,deltaY:a.deltaY}}function K(a){var f=a.length;if(1===f)return{x:ua(a[0].clientX),y:ua(a[0].clientY)};for(var n=0,r=0,H=0;H<f;)n+=a[H].clientX,r+=a[H].clientY,
1688H++;return{x:ua(n/f),y:ua(r/f)}}function U(a,f,n){return{x:f/a||0,y:n/a||0}}function P(a,f){return a===f?1:sa(a)>=sa(f)?0>a?2:4:0>f?8:16}function X(a,f,n){n||=Ja;var r=f[n[0]]-a[n[0]];a=f[n[1]]-a[n[1]];return Math.sqrt(r*r+a*a)}function O(a,f,n){n||=Ja;return 180*Math.atan2(f[n[1]]-a[n[1]],f[n[0]]-a[n[0]])/Math.PI}function Y(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.pressed=!1;A.apply(this,arguments)}function V(){this.evEl=Ka;this.evWin=La;A.apply(this,arguments);this.store=this.manager.session.pointerEvents=
1689[]}function J(){this.evTarget="touchstart";this.evWin="touchstart touchmove touchend touchcancel";this.started=!1;A.apply(this,arguments)}function M(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};A.apply(this,arguments)}function T(a,f){var n=v(a.touches),r=this.targetIds;if(3&f&&1===n.length)return r[n[0].identifier]=!0,[n,n];var H;a=v(a.changedTouches);var N=[],aa=this.target;if(H=n.filter(function(Q){return e(Q.target,aa)}),1===f)for(n=0;n<H.length;)r[H[n].identifier]=
1690!0,n++;for(n=0;n<a.length;)r[a[n].identifier]&&N.push(a[n]),12&f&&delete r[a[n].identifier],n++;
1690return N.length?[m(H.concat(N),"identifier",!0),N]:void 0}function R(){A.apply(this,arguments);var a=k(this.handler,this);this.touch=new M(this.manager,a);this.mouse=new Y(this.manager,a);this.primaryTouch=null;this.lastTouches=[]}function ca(a){a=a.changedPointers[0];if(a.identifier===this.primaryTouch){var f={x:a.clientX,y:a.clientY};this.lastTouches.push(f);var n=this.lastTouches;setTimeout(function(){var r=
1691n.indexOf(f);-1<r&&n.splice(r,1)},2500)}}function ea(a,f){this.manager=a;this.set(f)}function W(a){this.options=qa({},this.defaults,a||{});this.id=Ra++;this.manager=null;a=this.options.enable;this.options.enable=a===w?!0:a;this.state=1;this.simultaneous={};this.requireFail=[]}function Z(a){return 16&a?"cancel":8&a?"end":4&a?"move":2&a?"start":""}function ba(a){return 16==a?"down":8==a?"up":2==a?"left":4==a?"right":""}function da(a,f){return(f=f.manager)?f.get(a):a}function S(){W.apply(this,arguments)}
1692function ha(){S.apply(this,arguments);this.pY=this.pX=null}function ka(){S.apply(this,arguments)}function wa(){W.apply(this,arguments);this._input=this._timer=null}function Ca(){S.apply(this,arguments)}function Da(){S.apply(this,arguments)}function ya(){W.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}function ta(a,f){var n=f=f||{},r=f.recognizers;return n.recognizers=r===w?ta.defaults.preset:r,new Ea(a,f)}function Ea(a,f){this.options=qa({},ta.defaults,
1693f||{});this.options.inputTarget=this.options.inputTarget||a;this.handlers={};this.session={};this.recognizers=[];this.oldCssProps={};this.element=a;this.input=new (this.options.inputClass||(Sa?V:Ta?M:Ma?R:Y))(this,G);this.touchAction=new ea(this,this.options.touchAction);Na(this,!0);x(this.options.recognizers,function(n){var r=this.add(new n[0](n[1]));n[2]&&r.recognizeWith(n[2]);n[3]&&r.requireFailure(n[3])},this)}function Na(a,f){var n,r=a.element;r.style&&(x(a.options.cssProps,function(H,N){n=y(r.style,
1694N);f?(a.oldCssProps[n]=r.style[n],r.style[n]=H):r.style[n]=a.oldCssProps[n]||""}),f||(a.oldCssProps={}))}var Fa=" webkit Moz MS ms o".split(" ");B=D.createElement("div");var ua=Math.round,sa=Math.abs,Aa=Date.now;var qa="function"!=typeof Object.assign?function(a){if(a===w||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var f=Object(a),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==w&&null!==r)for(var H in r)r.hasOwnProperty(H)&&(f[H]=r[H])}return f}:Object.assign;
1695var Oa=t(function(a,f,n){for(var r=Object.keys(f),H=0;H<r.length;)(!n||n&&a[r[H]]===w)&&(a[r[H]]=f[r[H]]),H++;return a},"extend","Use `assign`."),Ua=t(function(a,f){return Oa(a,f,!0)},"merge","Use `assign`."),Ra=1,Ma="ontouchstart"in q,Sa=y(q,"PointerEvent")!==w,Ta=Ma&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Ja=["x","y"],xa=["clientX","clientY"];A.prototype={handler:function(){},init:function(){this.evEl&&d(this.element,this.evEl,this.domHandler);this.evTarget&&d(this.target,
1696this.evTarget,this.domHandler);this.evWin&&d(z(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler);this.evTarget&&g(this.target,this.evTarget,this.domHandler);this.evWin&&g(z(this.element),this.evWin,this.domHandler)}};var Va={mousedown:1,mousemove:2,mouseup:4};b(Y,A,{handler:function(a){var f=Va[a.type];1&f&&0===a.button&&(this.pressed=!0);2&f&&1!==a.which&&(f=4);this.pressed&&(4&f&&(this.pressed=!1),this.callback(this.manager,f,{pointers:[a],
1697changedPointers:[a],pointerType:"mouse",srcEvent:a}))}});var Wa={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Xa={2:"touch",3:"pen",4:"mouse",5:"kinect"},Ka="pointerdown",La="pointermove pointerup pointercancel";q.MSPointerEvent&&!q.PointerEvent&&(Ka="MSPointerDown",La="MSPointerMove MSPointerUp MSPointerCancel");b(V,A,{handler:function(a){var f=this.store,n=!1,r=a.type.toLowerCase().replace("ms","");r=Wa[r];var H=Xa[a.pointerType]||a.pointerType,N="touch"==H,aa=h(f,a.pointerId,
1698"pointerId");1&r&&(0===a.button||N)?0>aa&&(f.push(a),aa=f.length-1):12&r&&(n=!0);0>aa||(f[aa]=a,this.callback(this.manager,r,{pointers:f,changedPointers:[a],pointerType:H,srcEvent:a}),n&&f.splice(aa,1))}});var Ya={touchstart:1,touchmove:2,touchend:4,touchcancel:8};b(J,A,{handler:function(a){var f=Ya[a.type];if(1===f&&(this.started=!0),this.started){var n=v(a.touches),r=v(a.changedTouches);var H=(12&f&&(n=m(n.concat(r),"identifier",!0)),[n,r]);12&f&&0==H[0].length-H[1].length&&(this.started=!1);this.callback(this.manager,
1699f,{pointers:H[0],changedPointers:H[1],pointerType:"touch",srcEvent:a})}}});var Za={touchstart:1,touchmove:2,touchend:4,touchcancel:8};b(M,A,{handler:function(a){var f=Za[a.type],n=T.call(this,a,f);n&&this.callback(this.manager,f,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:a})}});b(R,A,{handler:function(a,f,n){var r="touch"==n.pointerType,H="mouse"==n.pointerType;if(!(H&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)1&f?(this.primaryTouch=n.changedPointers[0].identifier,
1700ca.call(this,n)):12&f&&ca.call(this,n);else{if(r=H)a:{r=n.srcEvent.clientX;H=n.srcEvent.clientY;for(var N=0;N<this.lastTouches.length;N++){var aa=this.lastTouches[N],Q=Math.abs(H-aa.y);if(25>=Math.abs(r-aa.x)&&25>=Q){r=!0;break a}}r=!1}if(r)return}this.callback(a,f,n)}},destroy:function(){this.touch.destroy();this.mouse.destroy()}});var Pa=y(B.style,"touchAction"),Qa=Pa!==w,za=function(){if(!Qa)return!1;var a={},f=q.CSS&&q.CSS.supports;return"auto;manipulation;pan-y;pan-x;pan-x pan-y;none".split(";").forEach(function(n){a[n]=
1701!f||q.CSS.supports("touch-action",n)}),a}();ea.prototype={set:function(a){"compute"==a&&(a=this.compute());Qa&&this.manager.element.style&&za[a]&&(this.manager.element.style[Pa]=a);this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return x(this.manager.recognizers,function(f){c(f.options.enable,[f])&&(a=a.concat(f.getTouchAction()))}),function(f){if(-1<f.indexOf("none"))return"none";var n=-1<f.indexOf("pan-x"),r=-1<f.indexOf("pan-y");
1702return n&&r?"none":n||r?n?"pan-x":"pan-y":-1<f.indexOf("manipulation")?"manipulation":"auto"}(a.join(" "))},preventDefaults:function(a){var f=a.srcEvent,n=a.offsetDirection;if(this.manager.session.prevented)f.preventDefault();else{var r=this.actions,H=-1<r.indexOf("none")&&!za.none,N=-1<r.indexOf("pan-y")&&!za["pan-y"];r=-1<r.indexOf("pan-x")&&!za["pan-x"];if(H){var aa=2>a.distance,Q=250>
1702a.deltaTime;if(1===a.pointers.length&&aa&&Q)return}if(!r||!N)return H||N&&6&n||r&&24&n?this.preventSrc(f):void 0}},
1703preventSrc:function(a){this.manager.session.prevented=!0;a.preventDefault()}};W.prototype={defaults:{},set:function(a){return qa(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(E(a,"recognizeWith",this))return this;var f=this.simultaneous;return f[(a=da(a,this)).id]||(f[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return E(a,"dropRecognizeWith",this)||(a=da(a,this),delete this.simultaneous[a.id]),this},requireFailure:function(a){if(E(a,
1704"requireFailure",this))return this;var f=this.requireFail;return-1===h(f,a=da(a,this))&&(f.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(E(a,"dropRequireFailure",this))return this;a=da(a,this);a=h(this.requireFail,a);return-1<a&&this.requireFail.splice(a,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function f(H){n.manager.emit(H,a)}var n=this,r=this.state;8>r&&f(n.options.event+
1705Z(r));f(n.options.event);a.additionalEvent&&f(a.additionalEvent);8<=r&&f(n.options.event+Z(r))},tryEmit:function(a){if(this.canEmit())return this.emit(a);this.state=32},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(33&this.requireFail[a].state))return!1;a++}return!0},recognize:function(a){a=qa({},a);if(!c(this.options.enable,[this,a]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1);this.state=this.process(a);30&this.state&&this.tryEmit(a)},process:function(a){},
1706getTouchAction:function(){},reset:function(){}};b(S,W,{defaults:{pointers:1},attrTest:function(a){var f=this.options.pointers;return 0===f||a.pointers.length===f},process:function(a){var f=this.state,n=a.eventType,r=6&f;a=this.attrTest(a);return r&&(8&n||!a)?16|f:r||a?4&n?8|f:2&f?4|f:2:32}});b(ha,S,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var a=this.options.direction,f=[];return 6&a&&f.push("pan-y"),24&a&&f.push("pan-x"),f},directionTest:function(a){var f=
1707this.options,n=!0,r=a.distance,H=a.direction,N=a.deltaX,aa=a.deltaY;return H&f.direction||(6&f.direction?(H=0===N?1:0>N?2:4,n=N!=this.pX,r=Math.abs(a.deltaX)):(H=0===aa?1:0>aa?8:16,n=aa!=this.pY,r=Math.abs(a.deltaY))),a.direction=H,n&&r>f.threshold&&H&f.direction},attrTest:function(a){return S.prototype.attrTest.call(this,a)&&(2&this.state||!(2&this.state)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX;this.pY=a.deltaY;var f=ba(a.direction);f&&(a.additionalEvent=this.options.event+f);
1708this._super.emit.call(this,a)}});b(ka,S,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||2&this.state)},emit:function(a){1!==a.scale&&(a.additionalEvent=this.options.event+(1>a.scale?"in":"out"));this._super.emit.call(this,a)}});b(wa,W,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(a){var f=
1709this.options,n=a.pointers.length===f.pointers,r=a.distance<f.threshold,H=a.deltaTime>f.time;if(this._input=a,!r||!n||12&a.eventType&&!H)this.reset();else if(1&a.eventType)this.reset(),this._timer=p(function(){this.state=8;this.tryEmit()},f.time,this);else if(4&a.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(a){8===this.state&&(a&&4&a.eventType?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=Aa(),this.manager.emit(this.options.event,this._input)))}});
1710b(Ca,S,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||2&this.state)}});b(Da,S,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return ha.prototype.getTouchAction.call(this)},attrTest:function(a){var f,n=this.options.direction;return 30&n?f=a.overallVelocity:6&n?f=a.overallVelocityX:24&n&&(f=a.overallVelocityY),
1711this._super.attrTest.call(this,a)&&n&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&sa(f)>this.options.velocity&&4&a.eventType},emit:function(a){var f=ba(a.offsetDirection);f&&this.manager.emit(this.options.event+f,a);this.manager.emit(this.options.event,a)}});b(ya,W,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(a){var f=this.options,n=a.pointers.length===
1712f.pointers,r=a.distance<f.threshold,H=a.deltaTime<f.time;if(this.reset(),1&a.eventType&&0===this.count)return this.failTimeout();if(r&&H&&n){if(4!=a.eventType)return this.failTimeout();n=!this.pTime||a.timeStamp-this.pTime<f.interval;r=!this.pCenter||X(this.pCenter,a.center)<f.posThreshold;if(this.pTime=a.timeStamp,this.pCenter=a.center,r&&n?this.count+=1:this.count=1,this._input=a,0==this.count%f.taps)return this.hasRequireFailures()?(this._timer=p(function(){this.state=8;this.tryEmit()},f.interval,
1713this),2):8}return 32},failTimeout:function(){return this._timer=p(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});ta.VERSION="2.0.7";ta.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Ca,{enable:!1}],[ka,{enable:!1},["rotate"]],[Da,{direction:6}],[ha,{direction:6},["swipe"]],[ya],
1714[ya,{event:"doubletap",taps:2},["tap"]],[wa]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Ea.prototype={set:function(a){return qa(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},stop:function(a){this.session.stopped=a?2:1},recognize:function(a){var f=this.session;if(!f.stopped){this.touchAction.preventDefaults(a);
1715var n=this.recognizers,r=f.curRecognizer;(!r||r&&8&r.state)&&(r=f.curRecognizer=null);for(var H=0;H<n.length;){var N=n[H];2===f.stopped||r&&N!=r&&!N.canRecognizeWith(r)?N.reset():N.recognize(a);!r&&14&N.state&&(r=f.curRecognizer=N);H++}}},get:function(a){if(a instanceof W)return a;for(var f=this.recognizers,n=0;n<f.length;n++)if(f[n].options.event==a)return f[n];return null},add:function(a){if(E(a,"add",this))return this;var f=this.get(a.options.event);return f&&this.remove(f),this.recognizers.push(a),
1716a.manager=this,this.touchAction.update(),a},remove:function(a){if(E(a,"remove",this))return this;if(a=this.get(a)){var f=this.recognizers;a=h(f,a);-1!==a&&(f.splice(a,1),this.touchAction.update())}return this},on:function(a,f){if(a!==w&&f!==w){var n=this.handlers;return x(l(a),function(r){n[r]=n[r]||[];n[r].push(f)}),this}},off:function(a,f){if(a!==w){var n=this.handlers;return x(l(a),function(r){f?n[r]&&n[r].splice(h(n[r],f),1):delete n[r]}),this}},emit:function(a,f){this.options.domEvents&&function(r,
1717H){var N=D.createEvent("Event");N.initEvent(r,!0,!0);N.gesture=H;H.target.dispatchEvent(N)}(a,f);var n=this.handlers[a]&&this.handlers[a].slice();if(n&&n.length)for(f.type=a,f.preventDefault=function(){f.srcEvent.preventDefault()},a=0;a<n.length;)n[a](f),a++},destroy:function(){this.element&&Na(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};qa(ta,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,
1718STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Ea,Input:A,TouchAction:ea,TouchInput:M,MouseInput:Y,PointerEventInput:V,TouchMouseInput:R,SingleTouchInput:J,Recognizer:W,AttrRecognizer:S,Tap:ya,Pan:ha,Swipe:Da,Pinch:ka,Rotate:Ca,Press:wa,on:d,off:g,each:x,merge:Ua,extend:Oa,assign:qa,inherit:b,bindFn:k,prefixed:y});(void 0!==q?q:"undefined"!=
1719typeof self?self:{}).Hammer=ta;(u=ta)===w||(C.exports=u)}(window,document)},function(C,L,I){function u(c){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(c)}function q(c){if(null!=c){var d=c["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],g=0;if(d)return d.call(c);if("function"==typeof c.next)return c;if(!isNaN(c.length))return{next:function(){return c&&
1720g>=c.length&&(c=void 0),{value:c&&c[g++],done:!c}}}}throw new TypeError(u(c)+" is not iterable");}function D(){function c(F,K,U,P){K=Object.create((K&&K.prototype instanceof d?K:d).prototype);return B(K,"_invoke",function(X,O,Y){function V(Z,ba){M=Z;T=ba;for(A=0;!ea&&R&&!da&&A<ca.length;A++){var da,S=ca[A],ha=W.p,ka=S[2];3<Z?(da=ka===ba)&&(T=S[(M=S[4])?5:(M=3,3)],S[4]=S[5]=h):S[0]<=ha&&((da=2>
1720Z&&ha<S[1])?(M=0,W.v=ba,W.n=S[1]):ha<ka&&(da=3>Z||S[0]>ba||ba>ka)&&(S[4]=Z,S[5]=ba,W.n=ka,M=0))}if(da||1<
1721Z)return z;throw ea=!0,ba;}var J,M,T,R=0,ca=Y||[],ea=!1,W={p:0,n:0,v:h,a:V,f:V.bind(h,4),d:function(Z,ba){return J=Z,M=0,T=h,W.n=ba,z}};return function(Z,ba,da){if(1<R)throw TypeError("Generator is already running");ea&&1===ba&&V(ba,da);M=ba;for(T=da;(A=2>M?h:T)||!ea;){J||(M?3>M?(1<M&&(W.n=-1),V(M,T)):W.n=T:W.v=T);try{if(R=2,J){if(M||(Z="next"),A=J[Z]){if(!(A=A.call(J,T)))throw TypeError("iterator result is not an object");if(!A.done)return A;T=A.value;2>M&&(M=0)}else 1===M&&(A=J.return)&&A.call(J),
17222>M&&(T=TypeError("The iterator does not provide a '"+Z+"' method"),M=1);J=h}else if((A=(ea=0>W.n)?T:X.call(O,W))!==z)break}catch(S){J=h,M=1,T=S}finally{R=1}}return{value:A,done:ea}}}(F,U,P),!0),K}function d(){}function g(){}function e(){}function l(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,e):(F.__proto__=e,B(F,y,"GeneratorFunction")),F.prototype=Object.create(G),F}var h,v="function"==typeof Symbol?Symbol:{},m=v.iterator||"@@iterator",y=v.toStringTag||"@@toStringTag",z={};var A=Object.getPrototypeOf;
1723v=[][m]?A(A([][m]())):(B(A={},m,function(){return this}),A);var G=e.prototype=d.prototype=Object.create(v);return g.prototype=e,B(G,"constructor",e),B(e,"constructor",g),g.displayName="GeneratorFunction",B(e,y,"GeneratorFunction"),B(G),B(G,y,"Generator"),B(G,m,function(){return this}),B(G,"toString",function(){return"[object Generator]"}),(D=function(){return{w:c,m:l}})()}function B(c,d,g,e){var l=Object.defineProperty;try{l({},"",{})}catch(h){l=0}(B=function(h,v,m,y){function z(A,G){B(h,A,function(F){return this._invoke(A,
1724G,F)})}v?l?l(h,v,{value:m,enumerable:!y,configurable:!y,writable:!y}):h[v]=m:(z("next",0),z("throw",1),z("return",2))})(c,d,g,e)}function w(c,d){var g="undefined"!=typeof Symbol&&c[Symbol.iterator]||c["@@iterator"];if(!g){if(Array.isArray(c)||(g=function(m,y){if(m){if("string"==typeof m)return p(m,y);var z={}.toString.call(m).slice(8,-1);return"Object"===z&&m.constructor&&(z=m.constructor.name),"Map"===z||"Set"===z?Array.from(m):"Arguments"===z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?
1725p(m,y):void 0}}(c))||d&&c&&"number"==typeof c.length){g&&(c=g);var e=0;d=function(){};return{s:d,n:function(){return e>=c.length?{done:!0}:{done:!1,value:c[e++]}},e:function(m){throw m;},f:d}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var l,h=!0,v=!1;return{s:function(){g=g.call(c)},n:function(){var m=g.next();return h=m.done,m},e:function(m){v=!0;l=m},f:function(){try{h||null==g.return||
1726g.return()}finally{if(v)throw l;}}}}function p(c,d){(null==d||d>c.length)&&(d=c.length);for(var g=0,e=Array(d);g<d;g++)e[g]=c[g];return e}function E(c,d,g,e,l,h,v){try{var m=c[h](v),y=m.value}catch(z){return void g(z)}m.done?d(y):Promise.resolve(y).then(e,l)}function x(c,d){for(var g=0;g<d.length;g++){var e=d[g];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);var l=Object,h=l.defineProperty;var v=e.key;a:if("object"==u(v)&&v){var m=v[Symbol.toPrimitive];if(void 0!==m){v=
1727m.call(v,"string");if("object"!=u(v))break a;throw new TypeError("@@toPrimitive must return a primitive value.");}v=String(v)}v="symbol"==u(v)?v:v+"";h.call(l,c,v,e)}}function t(c,d,g){return d=b(d),function(e,l){if(l&&("object"==u(l)||"function"==typeof l))return l;if(void 0!==l)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(c,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,
1728[],function(){}))}catch(l){}return!!e}()?Reflect.construct(d,g||[],b(c).constructor):d.apply(c,g))}function b(c){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(d){return d.__proto__||Object.getPrototypeOf(d)})(c)}function k(c,d){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,e){return g.__proto__=e,g})(c,d)}C.exports=function(){function c(e,l,h,v,m,y,z){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");return t(this,c,[{appIdTMB:e,
1729appKeyTMB:l,serverTMB:h,busAlertsUrl:y,metroAlertsUrl:z,serverTMBTransit:v,serverTMBPlanner:m}])}return function(e,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(l&&l.prototype,{constructor:{value:e,writable:!0,configurable:!0}});Object.defineProperty(e,"prototype",{writable:!1});l&&k(e,l)}(c,geoapi.Service),d=c,g=[{key:"nearStops",value:function(e){var l=this.config.appKeyTMB,h=this.config.appIdTMB,v=this;return new Promise(function(m,
1730y){$.ajax({url:varApiGis+"/itransit/nearby/radius?lon\x3d"+e.lon+"\x26lat\x3d"+e.lat+"\x26distancia\x3d"
1730+e.radius+"\x26app_key\x3d"+l+"\x26app_id\x3d"+h,contentType:"application/json; charset\x3dutf-8",dataType:"json",type:"GET",success:function(z){var A;(A=D().m(function F(){var K,U,P,X;return D().w(function(O){for(;;)switch(O.p=O.n){case 0:if(!z||!z.features){O.n=7;break}K=w(z.features);O.p=1;P=D().m(function V(){var J,M,T,R;return D().w(function(ca){for(;;)switch(ca.n){case 0:if((J=U.value).properties.CODI=
1731J.properties.TIPUS_ELEMENT&&J.properties.TIPUS_ELEMENT.includes("accessos_")&&J.properties.ELEMENT_PARE?J.properties.ELEMENT_PARE:J.properties.CODI_ELEMENT,J.properties.NOM=J.properties.NOM_ELEMENT,J.properties.CODI_TIPUS=J.properties.CODI_DISTRICTE,J.properties.NOM_TIPUS=J.properties.TIPUS_ELEMENT&&J.properties.TIPUS_ELEMENT.includes("accessos_")?J.properties.TIPUS_ELEMENT.split("_")[0].toUpperCase():J.properties.TIPUS_ELEMENT.toUpperCase(),J.properties.PICTO=J.properties.PICTO,J.properties.DATA=
1732"",J.properties.DISTANCE_IN_METERS=J.properties.DISTANCIA,J.properties.BEARING_IN_DEGREES=J.properties.ORIENTACIO,J.properties.NOM_ESTACIO="",J.properties.NOM_LINIA="",!(J.properties.TIPUS_ELEMENT&&J.properties.TIPUS_ELEMENT.includes("accessos_")&&J.properties.ELEMENT_PARE)){ca.n=3;break}if(M=J.properties.ELEMENT_PARE.toString().substring(0,3),!(T=z.features.find(function(ea){return ea.properties.CODI_ELEMENT===M}))){ca.n=1;break}J.properties.NOM_ESTACIO=T.properties.NOM_ELEMENT;J.properties.NOM_LINIA=
1733T.properties.PICTO_DETALL;ca.n=3;break;case 1:return ca.n=2,v.getLineData(M);case 2:(R=ca.v)&&R.features&&R.features.length&&(J.properties.NOM_ESTACIO=R.features[0].properties.NOM_ESTACIO,J.properties.NOM_LINIA=R.features[0].properties.NOM_LINIA);case 3:return ca.a(2)}},V)});K.s();case 2:if((U=K.n()).done){O.n=4;break}return O.d(q(P()),3);case 3:O.n=2;break;case 4:O.n=6;break;case 5:O.p=5,X=O.v,K.e(X);case 6:return O.p=6,K.f(),O.f(6);case 7:m(z);case 8:return O.a(2)}},F,null,[[1,5,6,7]])}),function(){var F=
1734this,K=arguments;return new Promise(function(U,P){function X(V){E(Y,U,P,X,O,"next",V)}function O(V){E(Y,U,P,X,O,"throw",V)}var Y=A.apply(F,K);X(void 0)})})().catch(y)},error:function(z,A,G){console.error(A,z.status,G);y(G)}})})}},{key:"getLineData",value:function(e){var l=this.config.appKeyTMB,h=this.config.appIdTMB;return new Promise(function(v,m){$.ajax({url:varApiGisTransit+"/linies/metro/estacions/"+e+"?app_key\x3d"+l+"\x26app_id\x3d"+h,contentType:"application/json; charset\x3dutf-8",dataType:"json",
1735type:"GET",success:function(y){v(y)},error:function(y,z,A){console.error(z,y.status,A);m(A)}})})}},{key:"getStationWithHours",value:function(e,l,h){var v=this.config.appKeyTMB,m=this.config.appIdTMB;return new Promise(function(y,z){$.ajax({url:varApiGisTransit+"/linies/bus/"+e+"/parades/"+l+"/horespas?app_id\x3d"+m+"\x26app_key\x3d"+v+"\x26cql_filter\x3dSENTIT+%3D+%27"+h+"%27\x26sortBy\x3dID_TIPUS_DIA,ORDRE_LITERAL",contentType:"application/json; charset\x3dutf-8",dataType:"json",type:"GET",success:function(A){y(A)},
1736error:function(A,G,F){console.error(G,A.status,F);z(F)}})})}},{key:"searchStations",value:function(e){var l=this.config.appKeyTMB,h=this.config.appIdTMB;return new Promise(function(v,m){$.ajax({url:varApiGis+"/itransit/nearby/search?\x26app_key\x3d"+l+"\x26app_id\x3d"+h+"\x26q\x3d"+e+"\x26transit_namespace\x3dbus,metro",contentType:"application/json; charset\x3dutf-8",dataType:"json",type:"GET",success:function(y){v(y.features||[])},error:function(y,z,A){console.error(z,y.status,A);m(A)}})})}},{key:"getInfoNextTrain",
1737value:function(e,l){var h=this.config.appKeyTMB,v=this.config.appIdTMB,m=varApiGis+"/imetro";return e&&(m+="/linia/"+e),l&&(m+="/estacio/"+l),new Promise(function(y,z){$.ajax({url:m+"?app_key\x3d"+h+"\x26app_id\x3d"+v,contentType:"application/json; charset\x3dutf-8",dataType:"json",type:"GET",success:function(A){y(A)},error:function(A,G,F){console.error(G,A.status,F);z(F)}})})}}],x(d.prototype,g),Object.defineProperty(d,"prototype",{writable:!1}),d;var d,g}()},function(C,L,I){function u(D){return(u=
1738"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(B){return typeof B}:function(B){return B&&"function"==typeof Symbol&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B})(D)}function q(D,B){for(var w=0;w<B.length;w++){var p=B[w];p.enumerable=p.enumerable||!1;p.configurable=!0;"value"in p&&(p.writable=!0);var E=Object,x=E.defineProperty;var t=p.key;a:if("object"==u(t)&&t){var b=t[Symbol.toPrimitive];if(void 0!==b){t=b.call(t,"string");if("object"!=u(t))break a;throw new TypeError("@@toPrimitive must return a primitive value.");
1739}t=String(t)}t="symbol"==u(t)?t:t+"";x.call(E,D,t,p)}}C.exports=function(){return D=function x(p,E){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");!0;null!=p&&(this.containerId=p,this.minContainerHeight=E,this.container=document.getElementById(p),this.createResizeHandlerElement(),this.createResizeHandlerStyles(),this.applyFuncionalityToResizeHandler())}
1739,B=[{key:"onResizing",value:function(p){null!=p&&p instanceof Function&&(this.resizingCallback=p)}},{key:"createResizeHandlerElement",
1740value:function(){if(null!=this.container){this.resizeHandler=document.createElement("div");this.resizeHandler.className="va-map__resizer-handler";var p=document.createElement("div");p.className="arrow-up";this.resizeHandler.appendChild(p);p=document.createElement("div");p.className="arrows-separator";this.resizeHandler.appendChild(p);p=document.createElement("div");p.className="arrow-down-wrapper";var E=document.createElement("div");E.className="arrow-down";p.appendChild(E);this.resizeHandler.appendChild(p);
1741this.container.appendChild(this.resizeHandler);null!=this.container.className?this.container.className+=" va-map__wrapper_map":this.container.className="va-map__wrapper_map"}}},{key:"createResizeHandlerStyles",value:function(){this.writeStyles("resizer_handler_"+this.containerId,"#"+this.containerId+".va-map__wrapper_map .va-map__resizer-handler { display: none }@media (max-width: 767px) {#"+this.containerId+".va-map__wrapper_map { position: relative !important; border-bottom: 0; }#"+this.containerId+
1742".va-map__wrapper_map .va-map__resizer-handler {display: block; content: ''; position: absolute; bottom: 0; cursor: s-resize;width: 100%; }#"+this.containerId+".va-map__wrapper_map .va-map__resizer-handler .arrow-up {width: 0; height: 0; border-right: 10px solid transparent; border-left: 10px solid transparent; border-bottom: 6px solid #000000;margin-bottom: 2px; margin: 0 auto 1px; }#"+this.containerId+".va-map__wrapper_map .va-map__resizer-handler .arrow-down-wrapper {background-color: #FFFFFF; padding-top: 1px; }#"+
1743this.containerId+".va-map__wrapper_map .va-map__resizer-handler .arrow-down {width: 0; height: 0; border-right: 10px solid transparent; border-left: 10px solid transparent; border-top: 6px solid #000000;margin: 0 auto; }#"+this.containerId+".va-map__wrapper_map .va-map__resizer-handler .arrows-separator {height: 2px; background-color: #000000; }}")}},{key:"applyFuncionalityToResizeHandler",value:function(){if(null!=this.resizeHandler){var p=function(b){if(b instanceof MouseEvent)(k=x(b.clientY))&&
1744t.resizingCallback&&t.resizingCallback(k);else if(b instanceof TouchEvent&&1===b.touches.length){var k;(k=x(b.touches[0].clientY))&&t.resizingCallback&&t.resizingCallback(k)}},E=function(){window.removeEventListener("mousemove",p);window.removeEventListener("mouseup",E);window.removeEventListener("touchmove",p);window.removeEventListener("touchend",E)},x=function(b){var k=document.body.getBoundingClientRect();b=b-(t.container.getBoundingClientRect().top-k.top)+8;if(!(null!=t.minContainerHeight&&t.minContainerHeight>
1745b))return k=[].slice.call(t.container.classList).map(function(c){return".".concat(c)}).join("").concat("#").concat(t.containerId),t.writeStyles("map_container_"+t.containerId,"@media (max-width: 767px) { "+k+" { height: "+b+"px !important; } }"),b},t=this;this.resizeHandler.addEventListener("mousedown",function(b){b.preventDefault();window.addEventListener("mousemove",p);window.addEventListener("mouseup",E)});this.resizeHandler.addEventListener("touchstart",function(b){b.preventDefault();window.addEventListener("touchmove",
1746p);window.addEventListener("touchend",E)})}}},{key:"writeStyles",value:function(p,E){var x=document.getElementById(p);x&&document.getElementsByTagName("head")[0].removeChild(x);(x=document.createElement("style")).type="text/css";x.id=p;x.styleSheet?x.styleSheet.cssText=E:x.appendChild(document.createTextNode(E));document.getElementsByTagName("head")[0].appendChild(x)}}],q(D.prototype,B),Object.defineProperty(D,"prototype",{writable:!1}),D;var D,B}()},function(C,L,I){function u(p){return p&&p.__esModule?
1747p:{default:p}}function q(p){return(q="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})(p)}function D(p,E){for(var x=0;x<E.length;x++){var t=E[x];t.enumerable=t.enumerable||!1;t.configurable=!0;"value"in t&&(t.writable=!0);var b=Object,k=b.defineProperty;var c=t.key;a:if("object"==q(c)&&c){var d=c[Symbol.toPrimitive];if(void 0!==d){c=d.call(c,"string");
1748if("object"!=q(c))break a;throw new TypeError("@@toPrimitive must return a primitive value.");}c=String(c)}c="symbol"==q(c)?c:c+"";k.call(b,p,c,t)}}var B=u(I(15)),w=u(I(17));String.prototype.supplant||(String.prototype.supplant=function(p){return this.replace(/{([^{}]*)}/g,function(E,x){x=p[x];return"string"==typeof x||"number"==typeof x?x:E})});C.exports=function(){return p=function d(t,b,k,c){var g=this;if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");!0;$("body").append(t.supplant($.extend({disabled:"",
1749close:window.translate("close"),pathTheme:window.pathTheme,button1:window.translate("delete"),button2:window.translate("b.cancel")},b)));$("body").css("overflow","hidden");$(".dialog-vullanar .button--close, .dialog-vullanar .button--b").on("click",function(){var e=g.onCancel();e&&"function"==typeof e.then?g.onCancel().then(function(){return g.close()}):g.close()});$(".dialog-vullanar #modal-link").on("click",function(){g.close()});$(".dialog-vullanar .button--a").on("click",function(){var e=g.onConfirm();
1750e&&"function"==typeof e.then?g.onConfirm().then(function(){return g.close()}):g.close()});$(".dialog-vullanar .button--close").focus();w.default.setKeyboardSupportToDialog(".dialog-vullanar",this);c&&c();k&&B.default.init()},E=[{key:"close",value:function(){var t=this,b=this.onClose();b&&"function"==typeof b.then?b.then(function(){$(".dialog-vullanar .button--close, .dialog-vullanar .button--b").off("click");
1750$(".dialog-vullanar .button--a").off("click");$(".dialog-vullanar").remove();$("body").css("overflow",
1751"auto");$(".dialog-vullanar #modal-link").off("click");t.removeEvents()}):($(".dialog-vullanar .button--close, .dialog-vullanar .button--b").off("click"),$(".dialog-vullanar .button--a").off("click"),$(".dialog-vullanar").remove(),$("body").css("overflow","auto"),$(".dialog-vullanar #modal-link").off("click"),this.removeEvents())}},{key:"onConfirm",value:function(){}},{key:"onCancel",value:function(){}},{key:"onClose",value:function(){}},{key:"removeEvents",value:function(){}}],D(p.prototype,E),Object.defineProperty(p,
1752"prototype",{writable:!1}),p;var p,E}()},function(C,L,I){function u(p){return p&&p.__esModule?p:{default:p}}function q(p){var E;(E=function(x){if(Array.isArray(x))return D(x)}(p))||(E="undefined"!=typeof Symbol&&null!=p[Symbol.iterator]||null!=p["@@iterator"]?Array.from(p):void 0);if(!(p=E||function(x,t){if(x){if("string"==typeof x)return D(x,t);var b={}.toString.call(x).slice(8,-1);return"Object"===b&&x.constructor&&(b=x.constructor.name),"Map"===b||"Set"===b?Array.from(x):"Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?
1753D(x,t):void 0}}(p)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return p}function D(p,E){(null==E||E>p.length)&&(E=p.length);for(var x=0,t=Array(E);x<E;x++)t[x]=p[x];return t}var B=u(I(5)),w=u(I(2));C.exports={init:function(){var p=new google.maps.Geocoder,E=new google.maps.Map(document.createElement("div")),x=(new google.maps.places.PlacesService(E),new google.maps.places.AutocompleteService({placeIdOnly:!0})),
1754t=new google.maps.Circle({center:{lat:41.383333,lng:2.183333},radius:50}),b={closed:!0};B.default.init(".modal-autocomplete");$(".modal-autocomplete").each(function(k,c){c=$(c);var d=!1;c.vullcomplete({html:!0,autoFocus:!0,minChars:0,minLength:0,source:B.default.throttle(function(g,e){var l=$("#"+c.attr("data-parent")+" #"+c.attr("id")).val(),h=[];l&&4<=l.length&&x.getPredictions({bounds:t.getBounds(),input:$("#"+c.attr("data-parent")+" #"+c.attr("id")).val(),componentRestrictions:{country:"es"},
1755fields:"address_component adr_address alt_id formatted_address geometry icon id name permanently_closed photo place_id plus_code scope type url utc_offset vicinity".split(" ")},function(v,m){m=[];for(var y in v){var z=v[y],A=z.description,G=A.toLowerCase(),F=!1,K=l.toLowerCase();l&&4<=l.length&&(-1!=G.indexOf("aero")&&-1!=G.indexOf("barcelona")&&-1==G.indexOf("t1")&&-1==G.indexOf("t2")&&-1==G.indexOf("aerob")||(F=!0),F&&m.push({label:A,valor:z,category:window.translate("search"),types:z.types}))}!K||
1756-1==K.indexOf("aerop")&&-1==K.indexOf("airp")||-1!=K.indexOf("aeroport t")||x.getPredictions({bounds:t.getBounds(),input:"aeroport t",componentRestrictions:{country:"es"},fields:"formatted_address geometry icon id name place_id plus_code scope types".split(" ")},function(U,P){for(var X in U){$("#"+c.attr("id")).val(l.toLowerCase());var O=U[X];P=O.description;for(var Y in O)O[Y];-1==h.findIndex(function(V){return V.valor.id==O.id})&&h.unshift({label:P,valor:O,category:window.translate("search"),types:O.types})}e(h)});
1757h=[].concat(m,q(h));e(h)});g=JSON.parse(window.localStorage.getItem("searchHistory"))||[];(0<g.length&&(!l||0==l.length)&&(g.forEach(function(v){v.category=window.translate("lastSearchs");h.push(v)}),e(h)),"modal-trajectes-area-privada"!=c.attr("data-parent")||l&&0!=l.length)||(g=w.default.getData(),g.search?g.data.then(function(v){v=v.filter(function(m){return m.category==window.translate("pois")});(h=[].concat(q(h),q(v)))&&0<h.length&&e(h)}):(g=g.data.filter(function(v){return v.category==window.translate("pois")}),
1758(h=[].concat(q(h),q(g)))&&0<h.length&&e(h)))},3E3,b),open:function(g,e){b.closed=!1;g=$(".ui-autocomplete");e="".concat(window.pathTheme,"/images/powered-by-google-on-white.png");g.addClass("va-suggest");g.css({"max-width":"300px","min-width":"300px"});g.append('\x3cli\x3e\x3cdiv class\x3d"powered-by-google-image"\x3e\x3cimg src\x3d"'+e+'" alt\x3d""\x3e\x3c/div\x3e\x3c/li\x3e');$("#tmb-maps-panel-1").css("overflow","visible")},select:function(g,e){setTimeout(function(){c.val(e.item.valor&&e.
1758item.valor.label||
1759e.item.label)},0);e.item.category==window.translate("search")?p.geocode({placeId:e.item.valor.place_id},function(l,h){if("OK"==h){var v=l[0];l=v.geometry.location.lng();v=v.geometry.location.lat();v=[parseFloat(l),parseFloat(v)];v=ol.proj.transform(v,"EPSG:4326","EPSG:4326");$("#"+c.attr("data-parent")+" #"+c.attr("id")+"-lat").val(v[0]);$("#"+c.attr("data-parent")+" #"+c.attr("id")+"-lon").val(v[1]);setTimeout(function(){""!=$("#tmb-maps__origen__carrer-lng").val()&&""!=$("#tmb-maps__desti__carrer-lng").val()?
1760($(".js-search-vullanar").prop("disabled",!1),$(".js-search-vullanar").removeClass("disabled")):($(".js-search-vullanar").prop("disabled",!0),$(".js-search-vullanar").addClass("disabled"))},200)}else console.error(h,v)}):($("#"+c.attr("data-parent")+" #"+c.attr("id")+"-lon").val(e.item.valor.lon),$("#"+c.attr("data-parent")+" #"+c.attr("id")+"-lat").val(e.item.valor.lat),setTimeout(function(){""!=$("#tmb-maps__origen__carrer-lng").val()&&""!=$("#tmb-maps__desti__carrer-lng").val()?($(".js-search-vullanar").prop("disabled",
1761!1),$(".js-search-vullanar").removeClass("disabled")):($(".js-search-vullanar").prop("disabled",!0),$(".js-search-vullanar").addClass("disabled"))},200));$("#"+c.attr("data-parent")+" #"+c.attr("id")).parent().removeClass("form__field__control--error").addClass("form__field__control--correct");$("#"+c.attr("data-parent")+" #"+c.attr("id")).parent().find(".form__tooltip.form__field__control--error__tooltip").hide()},close:function(g,e){d||$("#"+c.attr("data-parent")+" #"+c.attr("id")).val("");d=!1;
1762b.closed=!0}}).blur(function(){$("."+c.attr("id")+"-wrapper ul.ui-autocomplete li:first a").trigger("click")}).data("customVullcomplete")._renderItem=B.default.renderItem})}}},function(C,L){C.exports='\x3cdiv class\x3d"va-suggest__flyout" id\x3d"popup-autocomplete"\x3e \x3ca style\x3d"cursor:pointer" class\x3d"va-suggest__flyout-close popup-close" href\x3d"javascript: void(0)"\x3eX\x3c/a\x3e \x3ca class\x3d"button--a popup-autocomplete-button" href\x3d"javascript: void(0)" style\x3d"cursor:pointer;margin:.75rem 0;padding:.625rem 1rem;width:100%;display:inline-block;line-height:normal;text-align:center"\x3e {button1} \x3c/a\x3e \x3clabel for\x3d"va-flyout-2" class\x3d"js__va-flyout-cookie checkbox" data-cookie\x3d"va-flyout-2"\x3e\x3cinput id\x3d"va-flyout-2" type\x3d"checkbox"/\x3e{noShowAgain}\x3c/label\x3e \x3c/div\x3e '},
1763function(C,L,I){C.exports={getMetroLineClass:function(u){return u.split("9")[1]?"l9":u.split("10")[1]?"l10":u.toLowerCase()},formatImetroDate:function(u,q){q=parseInt((u-q)/1E3);u=q%60;q=(q-u)/60;return 0==q&&15>u?translate("imminent"):q+" min "+u+" sec"},backFocusElementId:null,setKeyboardSupportToDialog:function(u,q){u=$(u);var D=u.find("a[href], area[href], input:not([disabled]),select:not([disabled]), textarea:not([disabled]),button:not([disabled]), iframe, object, embed, *[tabindex],*[contenteditable]"),
1764B=D[0],w=D[D.length-1];B.focus();u.on("keydown",function(p){27===p.keyCode&&(q.cancel&&q.cancel(),q.close&&q.close(),varBackFocusDialogCallback&&varBackFocusDialogCallback());9===p.keyCode&&(p.target!==w||p.shiftKey?p.target===B&&p.shiftKey&&(p.preventDefault(),w.focus()):(p.preventDefault(),B.focus()))})}}},function(C,L,I){C.exports={prepareRoutingsObject:function(u,q,D,B,w,p,E){return{alias:u,originText:q,originPoint:{x:D,y:B},destinationText:w,destinationPoint:{x:p,y:E}}},prepareLocationsObject:function(u,
1765q,D,B,w){return{address:q,alias:u,type:w,coordinates:{x:D,y:B}}}}},function(C,L,I){function u(){h("a")}function q(){h("a")}function D(){$("#edit-favourite-a-fragment").find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&($("#edit-favourite-a-fragment").find(".jotmbe__dialog__fav-switch__info-right").click(),$("#edit-favourite-a-fragment").find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&$("#edit-favourite-a-fragment").find(".jotmbe__dialog__fav-switch__info-right").click());
1766$('label[for\x3d"f__checkbox__4"]').hasClass("checked")||$("#f__checkbox__4").click()}function B(){h("a")}function w(){h("a")}function p(){h("a")}function E(){h("a")}function x(m){$("#edit-favourite-b-fragment").find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&($("#edit-favourite-b-fragment").find(".jotmbe__dialog__fav-switch__info-right").
1766click(),$("#edit-favourite-b-fragment").find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&$("#edit-favourite-b-fragment").find(".jotmbe__dialog__fav-switch__info-right").click());
1767m&&!$('label[for\x3d"f__checkbox__3"]').hasClass("checked")&&$("#f__checkbox__3").click()}function t(){h("a")}function b(){h("a")}function k(m){m&&1<m.find(".dialog__body--jotmbe p").length&&m.find(".dialog__body--jotmbe p").eq(1).text(langJotmbeEditFavouriteStopInfo)}function c(){h("a")}function d(){h("a")}function g(){h("a")}function e(){h("a")}function l(m,y){var z=$("#error-"+y+"-fragment");m=(TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__error",
1768"error-"+y+"-fragment",""),0<=m.indexOf("1000"))?langJotmbeError1000:0<=m.indexOf("2000")?langJotmbeError2000:0<=m.indexOf("3000")?langJotmbeError3000:0<=m.indexOf("1001")?langJotmbeError1001:0<=m.indexOf("1002")?langJotmbeError1002:0<=m.indexOf("1003")?langJotmbeError1003:0<=m.indexOf("1004")?langJotmbeError1004:0<=m.indexOf("1005")?langJotmbeError1005:0<=m.indexOf("1006")?langJotmbeError1006:0<=m.indexOf("1007")?langJotmbeError1007:0<=m.indexOf("1008")?langJotmbeError1008:0<=m.indexOf("4001")?langJotmbeError4001:
17690<=m.indexOf("4002")?langJotmbeError4002:0<=m.indexOf("4003")?langJotmbeError4003:0<=m.indexOf("4004")?langJotmbeError4004:0<=m.indexOf("4007")?langJotmbeError4007:0<=m.indexOf("2001")?langJotmbeError2001:0<=m.indexOf("2012")?langJotmbeError2012:0<=m.indexOf("2015")?langJotmbeError2015:0<=m.indexOf("2002")?langJotmbeError2002:0<=m.indexOf("2014")?langJotmbeError2014:langJotmbeErrorDESC;z.find(".dialog__body p").html(m.replace("--","/"))}function h(m){var y=$("#error-"+m+"-fragment");TMB.dialog.newModal(langJotmbeClose,
1770"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__error","error-"+m+"-fragment","");m=langJotmbeErrorDESC;y.find(".dialog__body p").html(m.replace("--","/"))}function v(m,y){var z=$('label[for\x3d"f__checkbox__1-1-1"]').hasClass("checked")?"ENABLED":"DISABLED",A=$('label[for\x3d"f__checkbox__1-2-1"]').hasClass("checked")?"ENABLED":"DISABLED",G=$('label[for\x3d"f__checkbox__2-1-1"]').hasClass("checked")?"ENABLED":"DISABLED";m=JSON.parse($('label[for\x3d"weekday_0"]').attr("aria-checked"))?
1771"ENABLED":"DISABLED";var F=JSON.parse($('label[for\x3d"weekday_1"]').attr("aria-checked"))?"ENABLED":"DISABLED",K=JSON.parse($('label[for\x3d"weekday_2"]').attr("aria-checked"))?"ENABLED":"DISABLED",U=JSON.parse($('label[for\x3d"weekday_3"]').attr("aria-checked"))?"ENABLED":"DISABLED",P=JSON.parse($('label[for\x3d"weekday_4"]').attr("aria-checked"))?"ENABLED":"DISABLED",X=JSON.parse($('label[for\x3d"weekday_5"]').attr("aria-checked"))?"ENABLED":"DISABLED",O=JSON.parse($('label[for\x3d"weekday_6"]').attr("aria-checked"))?
1772"ENABLED":"DISABLED",Y=$('label[for\x3d"f__radio__2"]').hasClass("checked")?"TIME_INTERVAL":"ALLDAY",V=$('label[for\x3d"f__radio__2"]').hasClass("checked")?$("#f__camp__de1-1").val():"",J=$('label[for\x3d"f__radio__2"]').hasClass("checked")?$("#f__camp__fins1-1").val():"",M=$('label[for\x3d"f__radio__2"]').hasClass("checked")&&$(".form__time-range__row--2").is(":visible")?$("#f__camp__de2-1").val():"",T=$('label[for\x3d"f__radio__2"]').hasClass("checked")&&$(".form__time-range__row--2").is(":visible")?
1773$("#f__camp__fins2-1").val():"",R=[];if("ENABLED"===A&&R.push({channel:"APP_PUSH",type:"PLANIFICADA"}),"ENABLED"===z&&R.push({channel:"EMAIL",type:"PLANIFICADA"}),"ENABLED"===G)z=[],"ALLDAY"===Y?z.push({startInterval:"00:00",endInterval:"23:59"}):""!=V&&(z.push({startInterval:V,endInterval:J}),""!=M&&z.push({startInterval:M,endInterval:T})),R.push({channel:"APP_PUSH",type:"NO_PLANIFICADA",monday:"ENABLED"===m,tuesday:"ENABLED"===F,wednesday:"ENABLED"===K,thursday:"ENABLED"===U,friday:"ENABLED"===
1774P,saturday:"ENABLED"===X,sunday:"ENABLED"===O,intervals:z});return{alerts:R,description:y}}C.exports={addMetroLineToFavourites:function(m,y,z,A){y=y?y.replace("-","/"):"";D();var G="".concat(window.translate("favourites.edit-favourite-line-title1")).concat(" ").concat(m).concat(" ").concat(y).concat(" ").concat(window.translate("favourites.edit-favourite-line-title2")),F="".concat(window.translate("favourites.edit-favourite-line-message")),K=$("#edit-favourite-a-fragment");K.find(".dialog__body h2").html(G);
1775K.find(".dialog__body--jotmbe p").text(F);K.find(".dialog__body input").val(y.replace("/","-"));K.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&K.find(".jotmbe__dialog__fav-switch__info-right").
1775click();K.find(".button--a").unbind("click");K.find(".button--a").click(function(){!function(U,P,X){var O=localStorage.getItem("kc_token"),Y=localStorage.getItem("uuid"),V={transport:"Metro",element:U,description:P,elementType:"route"};favouriteLines(Y,"POST",V,function(J){!function(M,T,
1776R){if(""!=M.code)if((ca=$("#edit-favourite-a-fragment")).find(".dialog__body--jotmbe p").text(langJotmbeEditFavouriteLineInfo),ca.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked"))!function(ea,W,Z,ba){W=localStorage.getItem("kc_token");var da=localStorage.getItem("uuid");Z=v(0,Z.replace("/","--"));favouriteLineById(da,"PUT",ea,Z,function(S){if(""!==S.code){TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio",
1777"confirm-a-fragment","");var ha=langJotmbeSuccessCreateLine;$("#confirm-a-fragment").find(".dialog__body h2").html(ha.replace("--","/"));$dialog.find(".jotmbe__dialog__fav-switch__info-right").click();ba&&ba({status:"success",id:S.code})}else l(JSON.stringify(S),"a");!0},q,W)}(M.code,0,T.description,R);else{TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio","confirm-a-fragment","");var ca;T=langJotmbeSuccessCreateLine;
1778(ca=$("#confirm-a-fragment")).find(".dialog__body h2").html(T.replace("--","/"));D();R&&R({status:"success",id:M.code})}else l(JSON.stringify(M),"a")}(J,V,X)},u,O)}(m,z,A)});addClickEvent();K.find("#form__time-range__add-row").hide();K.find("#f__checkbox__3-1-1").is(":checked")||K.find("#f__checkbox__3-1-1").click()},addMetroStationToFavourites:function(m,y,z){D();var A="".concat(window.translate("favourites.edit-favourite-station-title1")).concat(" ").concat(y).concat(" ").concat(window.translate("favourites.edit-favourite-station-title2")),
1779G="".concat(window.translate("favourites.edit-favourite-station-message")),F=$("#edit-favourite-a-fragment");F.find(".dialog__body h2").html(A);F.find(".dialog__body--jotmbe p").text(G);F.find(".dialog__body input").val(y);F.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&F.find(".jotmbe__dialog__fav-switch__info-right").click();F.find(".button--a").unbind("click");F.find(".button--a").click(function(){!function(K,U,P){var X=localStorage.getItem("kc_token"),O=localStorage.getItem("uuid"),
1780Y={transport:"Metro",element:K,description:U,elementType:"stop"};favouriteStops(O,"POST",Y,function(V){!function(J,M,T){if(""!=J.code){var R=$("#edit-favourite-a-fragment");(R.find(".dialog__body--jotmbe p").text(langJotmbeEditFavouriteStationInfo),R.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked"))?!function(ca,ea,W,Z){ea=localStorage.getItem("kc_token");var ba=localStorage.getItem("uuid");W=v(0,W.replace("/","--"));favouriteStopById(ba,"PUT",ca,W,function(da){if(""!=da.code){TMB.dialog.newModal(langJotmbeClose,
1781"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio","confirm-a-fragment","");var S=langJotmbeSuccessCreateStation;$("#confirm-a-fragment").find(".dialog__body h2").html(S.replace("--","/"));D();Z&&Z({status:"success",id:da.code})}else l(JSON.stringify(da),"a");$dialog.find(".jotmbe__dialog__fav-switch__info-right").click();!0},w,ea)}(J.code,0,M.description,T):(TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio",
1782"confirm-a-fragment",""),M=langJotmbeSuccessCreateStation,$("#confirm-a-fragment").find(".dialog__body h2").html(M.replace("--","/")),D(),T&&T({status:"success",id:J.code}))}else l(JSON.stringify(J),"a")}(V,Y,P)},B,X)}(m,y,z)});addClickEvent();F.find("#form__time-range__add-row").hide();F.find("#f__checkbox__3-1-1").is(":checked")||F.find("#f__checkbox__3-1-1").click()},addBusLineToFavourites:function(m,y,z,A){x(!1);y=y.replace("-","/");var G="".concat(window.translate("favourites.edit-favourite-line-title1")).concat(" ").concat(m).concat(" ").concat(y).concat(" ").concat(window.translate("favourites.edit-favourite-line-title2")),
1783F=$("#edit-favourite-b-fragment");
1783if(F.find(".dialog__body h2").html(G),F&&1<F.find(".dialog__body--jotmbe p").length)G="".concat(window.translate("favourites.edit-favourite-line-message")),F.find(".dialog__body--jotmbe p").eq(1).text(G);F.find("#p_stop").hide();F.find("#div_stop").hide();F.find(".dialog__body input").val(y.replace("/","-"));F.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&F.find(".jotmbe__dialog__fav-switch__info-right").click();F.find(".button--a").unbind("click");
1784F.find(".button--a").click(function(){!function(K,U,P){var X=localStorage.getItem("kc_token"),O=localStorage.getItem("uuid");favouriteLines(O,"POST",{transport:"Bus",element:K,description:U,elementType:"route"},function(Y){!function(V,J,M,T){if(""!=V.code)if((R=$("#edit-favourite-b-fragment")).find(".dialog__body--jotmbe p").eq(1).text(langJotmbeEditFavouriteLineInfo),R.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked"))J=R="DISABLED",$('label[for\x3d"f__checkbox__1-1"]').hasClass("checked")&&
1785(R="ENABLED"),$('label[for\x3d"f__checkbox__1-2"]').hasClass("checked")&&(J="ENABLED"),function(ca,ea,W,Z,ba,da){Z=localStorage.getItem("kc_token");var S=localStorage.getItem("uuid"),ha=[];"ENABLED"===ea&&ha.push({channel:"APP_PUSH",type:"PLANIFICADA"});"ENABLED"===ca&&ha.push({channel:"EMAIL",type:"PLANIFICADA"});ca={alerts:ha,description:ba.replace("/","--")};favouriteLineById(S,"PUT",W,ca,function(ka){if(ka.code){$("#edit-favourite-b-fragment").find(".dialog__body--jotmbe p").eq(1).text(langJotmbeEditFavouriteLineInfo);
1786TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio","confirm-a-fragment","");var wa=langJotmbeSuccessCreateLine;$("#confirm-a-fragment").find(".dialog__body h2").html(wa.replace("--","/"));x(!1);da&&da({status:"success",id:ka.code})}else l(JSON.stringify(ka),"a");$dialog.find(".jotmbe__dialog__fav-switch__info-right").click();!0},E,Z)}(R,J,V.code,0,M,T);else{TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio",
1787"confirm-a-fragment","");var R;M=langJotmbeSuccessCreateLine;(R=$("#confirm-a-fragment")).find(".dialog__body h2").html(M.replace("--","/"));x(!1);T&&T({status:"success",id:V.code})}else l(V,"a")}(Y,0,U,P)},p,X)}(m,z,A)});F.find(".dialog__actions .button--a").hasClass("button--disabled")&&(F.find(".dialog__actions .button--a").removeClass("button--disabled"),F.find(".dialog__actions .button--a").removeAttr("disabled"));addClickEvent()},addBusStopToFavourites:function(m,y,z){x();var A="".concat(window.translate("favourites.edit-favourite-stop-title1")).concat(" ").concat(y).concat(" ").concat(window.translate("favourites.edit-favourite-stop-title2")),
1788G=$("#edit-favourite-b-fragment");if(G.find(".dialog__body h2").html(A),G&&1<G.find(".dialog__body--jotmbe p").length)A="".concat(window.translate("favourites.edit-favourite-stop-message")),G.find(".dialog__body--jotmbe p").eq(1).text(A);G.find("#p_stop").show();G.find("#div_stop").show();G.find(".dialog__body input").val(y);G.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&G.find(".jotmbe__dialog__fav-switch__info-right").click();G.find(".button--update").unbind("click");G.find(".button--update").click(function(){var F=
1789$("#edit-favourite-b-fragment");k(F);F.find("#f__camp__parada-ap__2").val(y);F.find(".dialog__body input").trigger("change");!0});G.find(".button--a").unbind("click");G.find(".button--a").click(function(){!function(F,K){var U=localStorage.getItem("kc_token"),P=localStorage.getItem("uuid"),X=($("#edit-favourite-b-fragment #f__camp__parada-ap__2").val(),{transport:"Bus",element:F,description:F,elementType:"stop"});favouriteStops(P,"POST",X,function(O){!function(Y,V,J){if(""!=Y.code){var M=$("#edit-favourite-b-fragment");
1790if(k(M),M.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")){var T=M="DISABLED";$('label[for\x3d"f__checkbox__1-1"]').hasClass("checked")&&(M="ENABLED");$('label[for\x3d"f__checkbox__1-2"]').hasClass("checked")&&(T="ENABLED");!function(R,ca,ea,W,Z,ba){W=localStorage.getItem("kc_token");var da=localStorage.getItem("uuid"),S=[];"ENABLED"===ca&&S.push({channel:"APP_PUSH",type:"PLANIFICADA"});"ENABLED"===R&&S.push({channel:"EMAIL",type:"PLANIFICADA"});R={alerts:S,description:Z};k($("#edit-favourite-b-fragment"));
1791favouriteStopById(da,"PUT",ea,R,function(ha){if(""!=ha.code){TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio","confirm-a-fragment","");var ka=langJotmbeSuccessCreateStop;$("#confirm-a-fragment").find(".dialog__body h2").html(ka.replace("--","/"));x(!0);ba&&ba({status:"success",id:ha.code})}else l(JSON.stringify(ha),"a");
1791$dialog.find(".jotmbe__dialog__fav-switch__info-right").click();!0},b,W)}(M,T,Y.code,0,V.description,
1792J)}else TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio","confirm-a-fragment",""),V=langJotmbeSuccessCreateStop,$("#confirm-a-fragment").find(".dialog__body h2").html(V.replace("--","/")),x(!0),J&&J({status:"success",id:Y.code})}else l(JSON.stringify(Y),"a")}(O,X,K)},t,U)}(m,z)});G.find(".dialog__actions .button--a").hasClass("button--disabled")&&(G.find(".dialog__actions .button--a").removeClass("button--disabled"),
1793G.find(".dialog__actions .button--a").removeAttr("disabled"));addClickEvent()},deleteMetroLineOfFavourites:function(m,y,z,A){z=z.replace("-","/");y="".concat(langJotmbeDeleteFavouriteTitle1).concat(" ").concat(y).concat(" ").concat(z).concat(" ").concat(langJotmbeDeleteFavouriteTitle2);$("#delete-a-fragment").find(".dialog__body h2").html(y);$("#delete-a-fragment").find(".button--a").unbind("click");$("#delete-a-fragment").find(".button--a").click(function(){!function(G,F){var K=localStorage.getItem("kc_token"),
1794U=localStorage.getItem("uuid");favouriteLineById(U,"DELETE",G,null,function(P){TMB.dialog.newModal(langJotmbeClose,"dialog dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__confirmacio","confirm-a-fragment","");P=langJotmbeSuccessDeleteLines;$("#confirm-a-fragment").find(".dialog__body h2").html(P.replace("--","/"));F&&F({status:"success"});!0},c,K)}(m,A)})},deleteMetroStationOfFavourites:function(m,y,z,A){z=z.replace("-","/");y="".concat(langJotmbeDeleteFavouriteTitle1).concat(" ").concat(z).concat(" ").concat(langJotmbeDeleteFavouriteTitle2);
1795$("#delete-a-fragment").find(".dialog__body h2").html(y);$("#delete-a-fragment").find(".button--a").unbind("click");$("#delete-a-fragment").find(".button--a").click(function(){!function(G,F){var K=localStorage.getItem("kc_token"),U=localStorage.getItem("uuid");favouriteLineById(U,"DELETE",G,null,function(P){TMB.dialog.newModal(langJotmbeClose,"dialog dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__confirmacio","confirm-a-fragment","");P=langJotmbeSuccessDeleteStation;$("#confirm-a-fragment").find(".dialog__body h2").html(P.replace("--",
1796"/"));F&&F({status:"success"});!0},d,K)}(m,A)})},deleteBusLineOfFavourites:function(m,y,z,A){z=z.replace("-","/");y="".concat(langJotmbeDeleteFavouriteTitle1).concat(" ").concat(y).concat(" ").concat(z).concat(" ").concat(langJotmbeDeleteFavouriteTitle2);$("#delete-a-fragment").find(".dialog__body h2").html(y);$("#delete-a-fragment").find(".button--a").unbind("click");$("#delete-a-fragment").find(".button--a").click(function(){!function(G,F){var K=localStorage.getItem("kc_token"),U=localStorage.getItem("uuid");
1797favouriteLineById(U,"DELETE",G,"",function(P){TMB.dialog.newModal(langJotmbeClose,"dialog dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__confirmacio","confirm-a-fragment","");P=langJotmbeSuccessDeleteLines;$("#confirm-a-fragment").find(".dialog__body h2").html(P.replace("--","/"));F&&F({status:"success"});!0},g,K)}(m,A)})},deleteBusStopOfFavourites:function(m,y,z,A){z=z.replace("-","/");y="".concat(langJotmbeDeleteFavouriteTitle1).concat(" ").concat(z).concat(" ").concat(langJotmbeDeleteFavouriteTitle2);
1798$("#delete-a-fragment").find(".dialog__body h2").html(y.replace("--","/"));$("#delete-a-fragment").find(".button--a").unbind("click");$("#delete-a-fragment").find(".button--a").click(function(){!function(G,F){var K=localStorage.getItem("kc_token"),U=localStorage.getItem("uuid");favouriteStopById(U,"DELETE",G,"",function(P){TMB.dialog.newModal(langJotmbeClose,"dialog dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__confirmacio","confirm-a-fragment","");P=langJotmbeSuccessDeleteStop;$("#confirm-a-fragment").find(".dialog__body h2").html(P.replace("--",
1799"/"));F&&F({status:"success"});!0},e,K)}(m,A)})}}},function(C,L){C.exports='\x3cdiv class\x3d"dialog-vullanar"\x3e \x3cdiv class\x3d"backdrop"\x3e\x3c/div\x3e \x3cdiv id\x3d"dialog" class\x3d"dialog dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio" role\x3d"dialog" aria-labelledby\x3d"dialog__title" tabindex\x3d"-1" open\x3d"open" aria-modal\x3d"true"\x3e \x3cheader class\x3d"dialog__header"\x3e \x3cbutton class\x3d"button button--icon button--close" type\x3d"button"\x3e \x3cimg src\x3d"{pathTheme}/images/basic/16px/svg/close.svg" alt\x3d"{close}" title\x3d"{close}"\x3e \x3c/button\x3e \x3c/header\x3e \x3cdiv class\x3d"dialog__container is-fragment"\x3e \x3cdiv class\x3d"spinner" style\x3d"display:none"\x3e\x3c/div\x3e \x3cdiv id\x3d"confirm-a-fragment" class\x3d""\x3e \x3cdiv class\x3d"dialog__icon"\x3e \x3cimg src\x3d"{icon}" alt\x3d""\x3e \x3c/div\x3e \x3cdiv class\x3d"dialog__body dialog__body--jotmbe"\x3e \x3ch2\x3e{text1}\x3c/h2\x3e \x3cp\x3e{text2} \x3ca style\x3d"cursor:pointer" id\x3d"modal-link" title\x3d"Els meus favorits"\x3e{favourites}\x3c/a\x3e \x3c/p\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e'},
1800function(C,L){C.exports='\x3cdiv class\x3d"dialog-vullanar"\x3e \x3cdiv class\x3d"backdrop"\x3e\x3c/div\x3e \x3cdiv id\x3d"modal-trajectes-area-privada" class\x3d"dialog dialog--jotmbe dialog--jotmbe__with-actions" role\x3d"dialog" aria-labelledby\x3d"dialog__title" aria-modal\x3d"true"\x3e \x3cheader class\x3d"dialog__header"\x3e \x3cbutton title\x3d"{close}" class\x3d"button button--icon button--close" type\x3d"button"\x3e \x3cimg class\x3d"js-image-hover" src\x3d"{pathTheme}/images/basic/16px/svg/close.svg" alt\x3d"{close}" title\x3d"{close}"\x3e \x3c/button\x3e \x3c/header\x3e \x3cdiv class\x3d"dialog__icon"\x3e \x3cimg src\x3d"{pathTheme}/images/jotmbe/48px/svg/48px_Trajecte_gris.svg" alt\x3d""\x3e \x3c/div\x3e \x3cdiv class\x3d"dialog__body dialog__body--jotmbe"\x3e \x3ch2\x3e{text1}\x3c/h2\x3e \x3c/div\x3e \x3cform action\x3d"#" class\x3d"form form--vali
1800date"\x3e \x3cdiv class\x3d"dialog__form dialog__form--centered"\x3e \x3cdiv class\x3d"form__field"\x3e \x3cdiv class\x3d"form__field__label"\x3e \x3clabel class\x3d"label-icon label-icon--place" for\x3d"f__camp__trajectes__1"\x3e{origen}*\x3c/label\x3e \x3c/div\x3e \x3cdiv class\x3d"form__field__control"\x3e \x3cinput title\x3d"{origen}" data-parent\x3d"modal-trajectes-area-privada" class\x3d"modal-autocomplete" required\x3d"required" placeholder\x3d"{carrerOrLoc}" aria-labelledby\x3d"f__camp__trajectes__1__ajuda" id\x3d"f__camp__trajectes__1" type\x3d"text"\x3e \x3cinput type\x3d"hidden" id\x3d"f__camp__trajectes__1-lat"\x3e \x3cinput type\x3d"hidden" id\x3d"f__camp__trajectes__1-lon"\x3e \x3c/div\x3e \x3c/div\x3e \x3cdiv class\x3d"form__field"\x3e \x3cdiv class\x3d"form__field__label"\x3e \x3clabel class\x3d"label-icon label-icon--place" for\x3d"f__camp__trajectes__2"\x3e{desti}*\x3c/label\x3e \x3c/div\x3e \x3cdiv class\x3d"form__field__control"\x3e \x3cinput title\x3d"{desti}" data-parent\x3d"modal-trajectes-area-privada" class\x3d"modal-autocomplete" required\x3d"required" placeholder\x3d"{carrerOrLoc}" aria-labelledby\x3d"f__camp__trajectes__2__ajuda" id\x3d"f__camp__trajectes__2" type\x3d"text"\x3e \x3cinput type\x3d"hidden" id\x3d"f__camp__trajectes__2-lat"\x3e \x3cinput type\x3d"hidden" id\x3d"f__camp__trajectes__2-lon"\x3e \x3c/div\x3e \x3c/div\x3e \x3cdiv class\x3d"form__field form__field--alias has-tip"\x3e \x3cdiv class\x3d"form__field__label"\x3e \x3clabel for\x3d"f__camp__trajectes__3"\x3e{text3}*\x3c/label\x3e \x3c/div\x3e \x3cdiv class\x3d"form__field__control"\x3e \x3cinput title\x3d"{text3}" aria-labelledby\x3d"f__camp__trajectes__3__ajuda" id\x3d"f__camp__trajectes__3" type\x3d"text" maxlength\x3d"95" required\x3d"required"\x3e \x3c/div\x3e \x3csmall class\x3d"form__field--alias__tip" id\x3d"f__camp__3__ajuda"\x3e{text2}\x3c/small\x3e \x3c/div\x3e \x3c/div\x3e \x3cfooter class\x3d"dialog__footer dialog__footer--jotmbe"\x3e \x3cdiv class\x3d"dialog__actions"\x3e \x3cbutton title\x3d"{button1}" class\x3d"button button--a {disabled}" {disabled} type\x3d"submit"\x3e{button1}\x3c/button\x3e \x3cbutton title\x3d"{button2}" class\x3d"button button--b" type\x3d"button"\x3e{button2}\x3c/button\x3e \x3c/div\x3e \x3c/footer\x3e \x3c/form\x3e \x3c/div\x3e \x3c/div\x3e'},
1801function(C,L){C.exports='\x3cdiv class\x3d"dialog-vullanar"\x3e \x3cdiv class\x3d"backdrop"\x3e\x3c/div\x3e \x3cdiv id\x3d"modal-llocs-area-privada" class\x3d"dialog dialog--jotmbe dialog--jotmbe__with-actions" role\x3d"dialog" aria-labelledby\x3d"dialog__title" aria-modal\x3d"true"\x3e \x3cheader class\x3d"dialog__header"\x3e \x3cbutton class\x3d"button button--icon button--close" type\x3d"button"\x3e \x3cimg class\x3d"js-image-hover" src\x3d"{pathTheme}/images/basic/16px/svg/close.svg" alt\x3d"{close}" title\x3d"{close}"\x3e \x3c/button\x3e \x3c/header\x3e \x3cdiv class\x3d"dialog__icon"\x3e \x3cimg src\x3d"{pathTheme}/images/jotmbe/48px/svg/48px_Lloc_gris.svg" alt\x3d""\x3e \x3c/div\x3e \x3cdiv class\x3d"dialog__body dialog__body--jotmbe"\x3e \x3ch2\x3e{text1}\x3c/h2\x3e \x3c/div\x3e \x3cform action\x3d"#" class\x3d"form form--validate"\x3e \x3cdiv class\x3d"dialog__form dialog__form--centered"\x3e \x3cdiv class\x3d"form__field"\x3e \x3cdiv class\x3d"form__field__label"\x3e \x3clabel class\x3d"label-icon label-icon--place" for\x3d"f__camp__llocs-ap__1"\x3e{text2}\x3c/label\x3e \x3c/div\x3e \x3cdiv class\x3d"form__field__control"\x3e \x3cinput title\x3d"{carrerOrLoc}" data-parent\x3d"modal-llocs-area-privada" required\x3d"required" placeholder\x3d"{carrerOrLoc}" aria-labelledby\x3d"f__camp__llocs-ap__1__ajuda" id\x3d"f__camp__llocs-ap__1" type\x3d"text" class\x3d"modal-autocomplete"\x3e \x3cinput type\x3d"hidden" id\x3d"f__camp__llocs-ap__1-lat"\x3e \x3cinput type\x3d"hidden" id\x3d"f__camp__llocs-ap__1-lon"\x3e \x3c/div\x3e \x3c/div\x3e \x3cfieldset class\x3d"option-group option-group--v"\x3e \x3cul class\x3d"option-group__items option-group__items--h option-group__items--pois"\x3e \x3cli class\x3d"option-group__item"\x3e \x3clabel for\x3d"f__camp-llocs_poi_1" class\x3d"radio checked"\x3e \x3cinput title\x3d"{rb1}" data-val\x3d"ALTRES" data-alias\x3d"" id\x3d"f__camp-llocs_poi_1" name\x3d"f__camp-llocs_poi" type\x3d"radio" class\x3d"checked" checked\x3d"checked"\x3e {rb1} \x3c/label\x3e \x3c/li\x3e \x3cli class\x3d"option-group__item"\x3e \x3clabel for\x3d"f__camp-llocs_poi_2" class\x3d"radio"\x3e \x3cinput title\x3d"{rb2}" data-val\x3d"CASA" data-alias\x3d"{rb2}" id\x3d"f__camp-llocs_poi_2" name\x3d"f__camp-llocs_poi" type\x3d"radio"\x3e {rb2} \x3c/label\x3e \x3c/li\x3e \x3cli class\x3d"option-group__item"\x3e \x3clabel for\x3d"f__camp-llocs_poi_3" class\x3d"radio"\x3e \x3cinput title\x3d"{rb3}" data-val\x3d"FEINA" data-alias\x3d"{rb3}" id\x3d"f__camp-llocs_poi_3" name\x3d"f__camp-llocs_poi" type\x3d"radio"\x3e {rb3} \x3c/label\x3e \x3c/li\x3e \x3c/ul\x3e \x3c/fieldset\x3e \x3cdiv class\x3d"form__field form__field--alias has-tip"\x3e \x3cdiv class\x3d"form__field__label"\x3e \x3clabel for\x3d"f__camp__llocs-ap__2"\x3e{alias}\x3c/label\x3e \x3c/div\x3e \x3cdiv class\x3d"form__field__control"\x3e \x3cinput aria-labelledby\x3d"f__camp__llocs-ap__2__ajuda" id\x3d"f__camp__llocs-ap__2" maxlength\x3d"95" type\x3d"text"\x3e \x3c/div\x3e \x3csmall class\x3d"form__field--alias__tip" id\x3d"f__camp__llocs-ap__2__ajuda"\x3e{text3}\x3c/small\x3e \x3c/div\x3e \x3c/div\x3e \x3cfooter class\x3d"dialog__footer dialog__footer--jotmbe"\x3e \x3cdiv class\x3d"dialog__actions"\x3e \x3cbutton title\x3d"{button1}" class\x3d"button button--a" type\x3d"submit"\x3e{button1}\x3c/button\x3e \x3cbutton title\x3d"{button2}" class\x3d"button button--b" type\x3d"button"\x3e{button2}\x3c/button\x3e \x3c/div\x3e \x3c/footer\x3e \x3c/form\x3e \x3c/div\x3e \x3c/div\x3e'},
1802function(C,L){C.exports='\x3cdiv class\x3d"dialog-vullanar"\x3e \x3cdiv class\x3d"backdrop"\x3e\x3c/div\x3e \x3cdiv id\x3d"exit-dialog" style\x3d"padding-bottom:0" class\x3d"dialog dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio" role\x3d"dialog" aria-labelledby\x3d"dialog__title" tabindex\x3d"-1" open\x3d"open" aria-modal\x3d"true"\x3e \x3cdiv id\x3d"modal-exit" role\x3d"dialog" aria-labelledby\x3d"dialog__title" aria-modal\x3d"true"\x3e \x3cheader class\x3d"dialog__header"\x3e\x3cbutton class\x3d"button button--icon button--close" type\x3d"button"\x3e\x3cimg src\x3d"{pathTheme}/images/basic/16px/svg/close.svg" alt\x3d"{close}" title\x3d"{close}"\x3e\x3c/button\x3e\x3c/header\x3e \x3cdiv class\x3d"dialog__body dialog__body--jotmbe" style\x3d"margin-top:0"\x3e \x3ch2\x3e{attention}\x3c/h2\x3e \x3cp style\x3d"color:#656565;font-style:italic;font-size:.875rem;line-height:1.125rem"\x3e{text1}\x3c/p\x3e \x3c/div\x3e \x3clabel style\x3d"margin-left:40px" for\x3d"va-flyout-3" class\x3d"js__va-flyout-cookie checkbox" data-cookie\x3d"va-flyout-3"\x3e {noShowAgain} \x3c/label\x3e \x3cfooter class\x3d"dialog__footer dialog__footer--jotmbe"\x3e \x3cdiv class\x3d"dialog__actions"\x3e \x3cbutton title\x3d"{accept}" class\x3d"button button--a" type\x3d"submit"\x3e{accept}\x3c/button\x3e \x3cbutton title\x3d"{cancel}" class\x3d"button button--b" type\x3d"button"\x3e{cancel}\x3c/button\x3e \x3c/div\x3e \x3c/footer\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e'},
1803function(C,L){C.exports='\x3cdiv class\x3d"dialog-vullanar"\x3e \x3cdiv class\x3d"backdrop"\x3e\x3c/div\x3e \x3cdiv id\x3d"dialog-choose" class\x3d"dialog dialog--jotmbe dialog--jotmbe__no-icon dialog--jotmbe__confirmacio" role\x3d"dialog" aria-labelledby\x3d"dialog__title" tabindex\x3d"-1" open\x3d"open" aria-modal\x3d"true"\x3e \x3cheader class\x3d"dialog__header"\x3e \x3cbutton class\x3d"button button--icon button--close" type\x3d"button"\x3e \x3cimg src\x3d"{pathTheme}/images/basic/16px/svg/close.svg" alt\x3d"{close}" title\x3d"{close}"\x3e \x3c/button\x3e \x3c/header\x3e \x3cdiv class\x3d"dialog__container is-fragment"\x3e \x3cdiv class\x3d"spinner" style\x3d"display:none"\x3e\x3c/div\x3e \x3cdiv id\x3d"confirm-a-fragment" class\x3d""\x3e \x3cdiv class\x3d"dialog__icon"\x3e \x3cimg src\x3d"{icon}" alt\x3d""\x3e \x3c/div\x3e \x3cdiv class\x3d"dialog__body dialog__body--jotmbe"\x3e \x3ch2\x3e{text1}\x3c/h2\x3e \x3cp\x3e{text2}\x3c/p\x3e \x3c/div\x3e \x3cfooter class\x3d"dialog__footer dialog__footer--jotmbe"\x3e \x3cdiv class\x3d"dialog__actions"\x3e \x3cbutton title\x3d"{button1}" class\x3d"button button--a" type\x3d"submit"\x3e{button1}\x3c/button\x3e \x3cbutton title\x3d"{button2}" class\x3d"button button--b" type\x3d"button"\x3e{button2}\x3c/button\x3e \x3c/div\x3e \x3c/footer\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e'},
1804function(C,L){C.exports='\x3cdiv class\x3d"dialog-vullanar"\x3e \x3cdiv class\x3d"backdrop"\x3e\x3c/div\x3e \x3cdiv id\x3d"dialog" class\x3d"dialog dialog--jotmbe dialog--jotmbe__a dialog--jotmbe__timetable" role\x3d"dialog" aria-modal\x3d"true" aria-labelledby\x3d"dialog__title" tabindex\x3d"-1" open\x3d"open"\x3e \x3cheader class\x3d"dialog__header"\x3e \x3cbutton class\x3d"button button--icon button--close" type\x3d"button"\x3e \x3cimg class\x3d"js-image-hover" src\x3d"{pathTheme}/images/basic/16px/svg/close.svg" alt\x3d"Tancar" title\x3d"Tancar"/\x3e \x3c/button\x3e \x3c/header\x3e \x3cdiv class\x3d"dialog__body dialog__body--jotmbe"\x3e \x3ch2\x3e{title}
1804\x3c/h2\x3e \x3cdiv class\x3d"dialog__content"\x3e {content} \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e'},
1805function(C,L){C.exports='\x3cdiv class\x3d"dialog-vullanar"\x3e \x3cdiv class\x3d"backdrop"\x3e\x3c/div\x3e \x3cdiv id\x3d"dialog" class\x3d"dialog dialog--jotmbe dialog--jotmbe__a dialog--jotmbe__timetable" role\x3d"dialog" aria-labelledby\x3d"dialog__title" tabindex\x3d"-1" aria-modal\x3d"true" open\x3d"open"\x3e \x3cheader class\x3d"dialog__header"\x3e \x3cbutton class\x3d"button button--icon button--close" type\x3d"button"\x3e \x3cimg class\x3d"js-image-hover" src\x3d"{pathTheme}/images/basic/16px/svg/close.svg" alt\x3d"Tancar" title\x3d"Tancar"/\x3e \x3c/button\x3e \x3c/header\x3e \x3cdiv class\x3d"dialog__body dialog__body--jotmbe"\x3e \x3ch2\x3e{title}\x3c/h2\x3e \x3cdiv class\x3d"dialog__content"\x3e {content} \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e'},
1806function(C,L,I){function u(t){return t&&t.__esModule?t:{default:t}}function q(t){var b;(b=function(k){if(Array.isArray(k))return D(k)}(t))||(b="undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]?Array.from(t):void 0);if(!(t=b||function(k,c){if(k){if("string"==typeof k)return D(k,c);var d={}.toString.call(k).slice(8,-1);return"Object"===d&&k.constructor&&(d=k.constructor.name),"Map"===d||"Set"===d?Array.from(k):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?
1807D(k,c):void 0}}(t)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return t}function D(t,b){(null==b||b>t.length)&&(b=t.length);for(var k=0,c=Array(b);k<b;k++)c[k]=t[k];return c}var B=u(I(2)),w=u(I(5)),p=u(I(0)),E=u(I(3)),x={closed:!0};C.exports={init:function(){$(window).on("load",function(){if(w.default.init(".all-autocomplete"),void 0!==google.maps.places){var t=new google.maps.Geocoder,
1808b=new google.maps.places.AutocompleteService({placeIdOnly:!0});$(".all-autocomplete").each(function(k,c){c=$(c);var d=!1;c.vullcomplete({html:!0,autoFocus:!0,minChars:0,minLength:0,source:w.default.throttle(function(g,e){var l=$("#"+c.attr("id")).val(),h=[];g=JSON.parse(window.localStorage.getItem("searchHistory"))||[];(0<g.length&&(!l||0==l.length)&&(g.forEach(function(v){v.category=window.translate("lastSearchs");h.push(v)}),h&&0<h.length&&e(h)),!E.default.getLogin(!1)||l&&0!=l.length)||(g=B.default.getData(),
1809g.search?g.data.then(function(v){(h=[].concat(q(h),q(v)))&&0<h.length&&e(h)}):(h=[].concat(q(h),q(g.data)))&&0<h.length&&e(h));l&&4<=l.length&&(window.geoWrapper.service.searchStations($("#"+c.attr("id")).val()).then(function(v){var m=[];v.forEach(function(y){var z,A=(z=y.properties.TIPUS_ELEMENT)&&1<z.length?z.charAt(0).toUpperCase()+z.slice(1):z;z="Estacions"===A&&m.find(function(G){return G.valor.code===y.properties.CODI_ELEMENT});"Linies"==A||"Accessos"==A||"Intercanviadors"==A||z||m.push({label:y.properties.NOM_ELEMENT+
1810" ("+y.properties.CODI_ELEMENT+")",valor:{code:y.properties.CODI_ELEMENT,icon:"PARADA"===y.properties.PICTO?"Bus-Parada":y.properties.PICTO},category:window.translate(A)})});(h=[].concat(q(m.sort(function(y,z){return y.last_nom>z.last_nom?1:z.last_nom>y.last_nom?-1:0})),q(h)))&&0<h.length&&e(h)}),b.getPredictions({bounds:{south:41.38288384235794,west:2.182734365319231,north:41.38378215764206,east:2.1839316346807696},input:$("#"+c.attr("id")).val(),componentRestrictions:{country:"es"},fields:"address_component adr_address alt_id formatted_address geometry icon id name permanently_closed photo place_id plus_code scope type url utc_offset vicinity".split(" ")},
1811function(v,m){m=[];for(var y in v){var z=v[y],A=z.description,G=A.toLowerCase(),F=!1,K=l.toLowerCase();l&&4<=l.length&&(-1!=G.indexOf("aero")&&-1!=G.indexOf("barcelona")&&-1==G.indexOf("t1")&&-1==G.indexOf("t2")&&-1==G.indexOf("aerob")||(F=!0),F&&m.push({label:A,valor:z,category:window.translate("search"),types:z.types}))}!K||-1==K.indexOf("aerop")&&-1==K.indexOf("airp")||-1!=K.indexOf("aeroport t")||b.getPredictions({bounds:circle.getBounds(),input:"aeroport t",componentRestrictions:{country:"es"},
1812fields:"formatted_address geometry icon id name place_id plus_code scope t
1812ypes".split(" ")},function(U,P){for(var X in U){$("#"+c.attr("id")).val(l.toLowerCase());var O=U[X];P=O.description;for(var Y in O)O[Y];-1==h.findIndex(function(V){return V.valor.id==O.id})&&h.unshift({label:P,valor:O,category:window.translate("search"),types:O.types})}h&&0<h.length&&e(h)});(h=[].concat(q(h),m))&&0<h.length&&e(h)}))},3E3,x),open:function(g,e){x.closed=!1;g=$(".ui-autocomplete");e="".concat(window.pathTheme,
1813"/images/powered-by-google-on-white.png");g.addClass("va-suggest");g.css({"max-width":"300px","min-width":"300px"});g.append('\x3cli\x3e\x3cdiv class\x3d"powered-by-google-image"\x3e\x3cimg src\x3d"'+e+'" alt\x3d""\x3e\x3c/div\x3e\x3c/li\x3e');$("#tmb-maps-panel-1").css("overflow","visible")},select:function(g,e){d=!0;var l=-1!=c.attr("id").indexOf("origen")?"origin":"desti";if(e.item){switch(e.item.category){case window.translate("search"):w.default.setSearch(g,e,t,c);p.default[l]="search";break;
1814case window.translate("pois"):w.default.setPoi(g,e.item,c);p.default[l]="pois";break;case window.translate("Parades"):w.default.setStop(g,e.item,c);p.default[l]="search";break;case window.translate("Estacions"):w.default.setStation(g,e.item,c);p.default[l]="search";break;case window.translate("lastSearchs"):w.default.setHistory(g,e.item,c);p.default[l]="search";break;default:w.default.setTraject(g,e.item,c),p.default[l]="traject"}c.change()}},close:function(g,e){d||$("#"+c.attr("id")).val("");d=!1;
1815x.closed=!0}}).blur(function(){$("."+c.attr("id")+"-wrapper ul.ui-autocomplete li:first a").trigger("click")}).data("customVullcomplete")._renderItem=w.default.renderItem})}})}}},function(C,L,I){C.exports={setJourneyPageTitle:function(u,q,D){var B=null;u&&0<u.trim().length&&(q&&0<q.trim().length?B=TMB.l10n.vullanar.get("page.header.title.journeyLabel")+" "+u+" - "+q:D&&(B=TMB.l10n.vullanar.get("page.header.title.journeyNearLabel")+" "+u));this.setPageTitle(B)},setPageTitle:function(u){var q=TMB.l10n.vullanar.get("page.header.title.platformName"),
1816D=TMB.l10n.vullanar.get("page.header.title.separator");null!=u&&0<u.trim().length?(null==window.originalTitle&&(window.originalTitle=document.title),document.title=u+" "+D+" "+q):null!=window.originalTitle&&0<window.originalTitle.trim().length?document.title=window.originalTitle:document.title=q}}}])});
1817function initSearchImetro(){function a(d){var c=[],b;for(b in d)"estacions"==d[b].properties.TIPUS_ELEMENT&&0!=c.length&&"estacions"==c[c.length-1].properties.TIPUS_ELEMENT?c[c.length-1].properties.CODI_ELEMENT!=d[b].properties.CODI_ELEMENT&&c.push(d[b]):c.push(d[b]);return c}$("#imetro-search-input").on("input",function(){$("#button-imetro-search__direct").addClass("button--disabled");$("#button-imetro-search__direct").attr("disabled","disabled")});$("#imetro-search-input").autocomplete({autoFocus:!1,
1818focus:function(d,c){d=$("#imetro-search-input").css("width");$(".form-field--autosuggest-imetro .ui-autocomplete").css("max-width",d);$(".form-field--autosuggest-imetro .ui-autocomplete").css("min-width",d)},source:function(d,c){var b=!1;"favorites"==d.term?"undefined"!==typeof favoriteStopsiBusiMetro&&0<favoriteStopsiBusiMetro.length&&""==$("#imetro-search-input").val()&&c($.map(favoriteStopsiBusiMetro,function(e){var f="";e.transport&&""!==e.transport&&(f=e.transport.toLowerCase(),f=f.charAt(0).toUpperCase()+
1819f.slice(1));if("metro"==e.transport.toLowerCase())return b=!0,{entity:"Favorites",icon:"",name:e.description,code:e.code,type:f,tag:""}})):$.getJSON(varDomain+"/itransit/nearby/search?\x26app_key\x3d"+varTmbApiKey+"\x26app_id\x3d"+varTmbApiId+"\x26transit_namespace\x3dmetro\x26q\x3d"+d.term,function(e){var f=!1;c($.map(a(e.features),function(g){const h=capitalizeFirstLetter(g.properties.TIPUS_ELEMENT);if("Estacions"==h)return f=!0,{entity:h,icon:"PARADA"===g.properties.PICTO?"Bus-Parada":g.properties.PICTO,
1820name:g.properties.NOM_ELEMENT,code:g.properties.CODI_ELEMENT,type:g.properties.SUBTIPUS_ELEMENT,tag:g.properties.DESC_ELEMENT?g.properties.NOM_ELEMENT+": "+g.properties.DESC_ELEMENT:g.properties.CODI_ELEMENT+": "+g.properties.NOM_ELEMENT}}));f||""==$("#imetro-search-input").val()||($("#tmb-maps-panel-4 .tmb-maps-text-err").show(),$("#label-codi-imetro").css("color","#E20110"),$("#imetro-search-input").css("border","1p
1820x solid #E20110"))});b&&($("#tmb-maps-panel-4 .tmb-maps-text-err").hide(),$("#label-codi-imetro").css("color",
1821"#656565"),$("#imetro-search-input").css("border","1px solid transparent"))},messages:{noResults:"",results:function(){}},select:function(d,c){$("#imetro-search-input").val(c.item.name.trim());$("#tmb-maps__imetro__codi").val(c.item.code);d=c.item.icon.split("L");d.shift();var b=c.item.icon;-1<b.indexOf("L9N")?(line="94",lineName="L9N"):-1<b.indexOf("L10N")?(line="104",lineName="L10N"):-1<b.indexOf("L9S")?(line="91",lineName="L9S"):-1<b.indexOf("L10S")?(line="101",lineName="L10S"):"FM"===b?(line=
1822"99",lineName="FM"):(line=d[0],lineName="L"+line);stopNameMetro=c.item.name.trim()+" ("+c.item.code+")";$("#tmb-maps__imetro__line").val(line);$("#tmb-maps__imetro__stop__name").val(stopNameMetro);$("#tmb-maps__imetro__line__name").val(lineName);0<$("#button-imetro-search__direct").length&&(c=getMetroLineURL(),""!=c?($("#button-imetro-search__direct").attr("onclick","location.href\x3d'"+c+"';"),$("#button-imetro-search__direct").removeClass("button--disabled"),$("#button-imetro-search__direct").removeAttr("disabled")):
1823($("#button-imetro-search__direct").addClass("button--disabled"),$("#button-imetro-search__direct").attr("disabled","disabled")));0<$("#button-imetro-search__next").length&&$("#button-imetro-search__next").click();return!1},appendTo:".form__field.form-field--autosuggest-imetro"}).bind("focus",function(){$(this).autocomplete("search","favorites")}).data("ui-autocomplete")._renderItem=function(d,c){if("Estacions"==c.entity||"Favorites"==c.entity){var b=c.icon.split("L");b.shift();var e="";if(""!=b)for(var f in b)e=
1824b[f].split("9")[1]?e+('\x3cspan style\x3d"margin-right: 5px;" class\x3d"line line--suffixed line--l9"\x3e\x3cspan class\x3d"line__name"\x3eL9\x3c/span\x3e\x3cspan class\x3d"line__suffix"\x3e'+b[f].split("9")[1]+"\x3c/span\x3e\x3c/span\x3e "):b[f].split("10")[1]?e+('\x3cspan style\x3d"margin-right: 5px;" class\x3d"line line--suffixed line--l10"\x3e\x3cspan class\x3d"line__name"\x3eL10\x3c/span\x3e\x3cspan class\x3d"line__suffix"\x3e'+b[f].split("10")[1]+"\x3c/span\x3e\x3c/span\x3e "):e+('\x3cspan style\x3d"margin-right: 5px;" class\x3d"line line--l'+
1825b[f].toLowerCase()+'"\x3eL'+b[f]+"\x3c/span\x3e ");else e='\x3cspan\x3e\x3cimg style\x3d"vertical-align: middle; margin-right: 4px;" src\x3d"'+pathImages+'/gallery_pages/24px/png/metro_dist_hover.png"/\x3e\x3c/span\x3e';b=c.name.trim()+" "}c.url="#";d.addClass("form__field__datalist datalist");d.attr("aria-live","polite");d.attr("aria-relevant","additions");"Favorites"==c.entity?(f='\x3cdiv id\x3d"title-favorites-imetro"\x3e\x3cp style\x3d"margin-left: 15px; color: #656565;"\x3e'+favStationsTitle+
1826"\x3c/p\x3e\x3c/div\x3e",0>=$("#title-favorites-imetro").length&&$(".form-field--autosuggest-imetro .ui-autocomplete").prepend(f)):0<$("#title-favorites-imetro").length&&$("#title-favorites-imetro").remove();return $('\x3cli class\x3d"datalist__item"\x3e\x3c/li\x3e').data("item.autocomplete",c).append('\x3ca href\x3d"#"\x3e'+e+" "+b+"\x3c/a\x3e").appendTo(d)};$("#tmb-maps__imetro__linia").on("change",function(){var d=$(this).find("option:selected").data("nomlinia");initLiniaMetro(d,$(this).val())});
1827$("#tmb-maps__imetro__parada").on("change",updateButtonStateMetro);$("#tmb-maps__jotmbe__metro__estacion").on("change",updateButtonStateMetro);$("#tmb-maps__imetro__codi").on("keyup",updateButtonStateMetro);$("#tmb-maps__imetro__opcio__linia").on("change",function(){inicializeTrasportInputsMetro();$("#origen-tab-metro").val(2)});$("#tmb-maps__imetro__opcio__linia:checked").on("change",function(){inicializeTrasportInputsMetro();$("#origen-tab-metro").val(2)});$("#tmb-maps__imetro__opcio__codi").on("change",
1828function(){$("#origen-tab-metro").val(1);updateButtonStateMetro()})}function capitalizeFirstLetter(a){return a&&1<a.length?a.charAt(0).toUpperCase()+a.slice(1):a}function updateButtonStateMetro(){if("1"===$("#origen-tab-metro").val()){var a;codiStop=(a=TJS.velocity.getCookie("JoTMBeKCSession")?$("#tmb-maps__jotmbe__metro__estacion").val():$("#tmb-maps__imetro__codi").val())?a:""}else codiStop=(a=$("#tmb-maps__imetro__parada").val())&&"0"!==a?a:"";toggleButtonMetro(codiStop)}
1829function toggleButtonMetro(a){a?($("#button-imetro-search__next").removeClass("button--disabled"),$("#button-imetro-search__next").removeAttr("disabled")):($("#button-imetro-search__next").addClass("button--disabled"),$("#button-imetro-search__next").attr("disabled","disabled"))}
1830function goToResultsMetro(){if("1"===$('[name\x3d"tmb-imetro__tipus-cerca"]:checked').val()){var a=$("#tmb-maps__imetro__codi").val();var d=$("#tmb-maps__imetro__line__name").val();a||=$("#tmb-maps__jotmbe__metro__estacion").val()}else a=$("#tmb-maps__imetro__parada").val(),d=$("#tmb-maps__imetro__linia").find("option:selected").data("nomlinia");localStorage.setItem("favouriteCodeMetro",a);window.location=iMetroResultsUrl+"/-/lineametro/"+d+"/estacion-imetro/"+a}
1831function calcLineIcon(a){return a.split("9")[1]?'\x3cspan class\x3d"line line--suffixed line--l9"\x3e\x3cspan class\x3d"line__name"\x3eL9\x3c/span\x3e\x3cspan class\x3d"line__suffix"\x3e'+a.split("9")[1]+"\x3c/span\x3e\x3c/span\x3e":a.split("10")[1]?'\x3cspan class\x3d"line line--suffixed line--l10"\x3e\x3cspan class\x3d"line__name"\x3eL10\x3c/span\x3e\x3cspan class\x3d"line__suffix"\x3e'+a.split("10")[1]+"\x3c/span\x3e\x3c/span\x3e":'\x3cspan class\x3d"line line--'+a.toLowerCase()+'"\x3e'+a+"\x3c/span\x3e"}
1832function inicializeTrasportInputsMetro(){jQuery.ajax({url:apiGisTransit+"/linies/metro/?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26propertyName\x3dID_LINIA,CODI_LINIA,NOM_LINIA,DESC_LINIA,ORIGEN_LINIA,DESTI_LINIA,COLOR_LINIA,COLOR_TEXT_LINIA,ID_OPERADOR,ORDRE_FAMILIA,NOM_TIPUS_TRANSPORT\x26sortBy\x3dORDRE_LINIA",type:"GET",dataType:"json",async:!0,success:function(a){var d=!0,c="",b;for(b in a.features)d&&(initLiniaMetro(a.features[b].properties.NOM_LINIA,a.features[b].properties.CODI_LINIA),
1833d=!1),c+='\x3coption value\x3d"'+a.features[b].properties.CODI_LINIA+'" data-nomlinia\x3d"'+a.features[b].properties.NOM_LINIA+'"\x3e'+a.features[b].properties.NOM_LINIA+"  "+a.features[b].properties.DESC_LINIA+"\x3c/option\x3e";$("#tmb-maps__imetro__linia").html(c);$("#tmb-maps__imetro__codi").removeAttr("required");TMB.customInput.init()}})}
1834function initLiniaMetro(a,d){jQuery.ajax({url:apiGisTransit+"/linies/metro/nom/"+a+"/estacions?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26cql_filter\x3d\x26sortBy\x3dORDRE_ESTACIO\x26propertyName\x3dNOM_ESTACIO,CODI_LINIA,ORDRE_ESTACIO,CODI_ESTACIO,ID_TIPUS_ACCESSIBILITAT,NOM_LINIA,COLOR_LINIA,CODI_GRUP_ESTACIO,GEOMETRY",type:"GET",dataType:"json",async:!0,success:function(c){var b={},e=[];e.push($("\x3coption\x3e",{value:"",disabled:"disabled",selected:"true",text:langSelectStation}));
1835for(var f in c.features){var g=c.features[f].properties,h=$("\x3coption\x3e",{value:g.CODI_ESTACIO,text:g.NOM_ESTACIO+" ("+g.CODI_ESTACIO+")"});b[g.CODI_ESTACIO]||(e.push(h),b[g.CODI_ESTACIO]=g.NOM_ESTACIO)}$("#tmb-maps__imetro__parada option:gt(0)").remove();$("#tmb-maps__imetro__parada").html(e);$("#tmb-maps__imetro__parada").change();TMB.customInput.init()}})};
1836var codeLocated=null,codeLocatedBus=null,map=null,view,locatedPosition,markersVullAnarLayer,overlayFeatureDiv=document.getElementsByClassName("tmbPopup")[0],overlayFeatureType=null,overlayFeature=new ol.Overlay({positioning:"top-right",offset:[-18,-15]}),featureInfo=null,affectacionsType=null,affectacionsWhereItIs=null,arr_coord=[],iconFeature=null,olMapDiv;if("undefined"===typeof varDomain)var varDomain="https://api.tmb.cat/v1";if("undefined"===typeof apiGisTransit)var apiGisTransit=varDomain;
1837var urlServerMapsWFS=varDomain+"/maps/wfs",urlServerMapsWMS=["https://api1.tmb.cat/v1/maps/wms","https://api2.tmb.cat/v1/maps/wms","https://api3.tmb.cat/v1/maps/wms"],limit={accessos_fisics_over:[2500,50],accessos_over:[15E3,2500],estacions_linia_over:[15E3,50],estacions_over:[5E4,15E3],parades_actives_over:[25E3,50]};
1838function initCurrentGeolocation(a){navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition(function(b){localStorage.origin=a;onGetCurrentGeolocationPosition(b,urlGis)},function(b){switch(b.code){case b.PERMISSION_DENIED:$(".dialog__container").html(langErrorPermissionDenied);break;case b.POSITION_UNAVAILABLE:$(".dialog__container").html(langErrorPositionUnavailable);break;case b.PERMISSION_DENIED_TIMEOUT:$(".dialog__container").html(langErrorPermissionTimeout);break;case b.UNKNOWN_ERROR:$(".dialog__container").html(langErrorUnknown);
1839break;case b.TIMEOUT:$(".dialog__container").html(langErrorPermissionDenied)}},{enableHighAccuracy:!0,timeout:5E3}):error("Geo Location is not supported")}
1840function onGetCurrentGeolocationPosition(a,b){TMB.dialog.newModal(langJotmbeClose,"dialog--medium","initgeo-fragment","");dialog=$("#initgeo-fragment");dialog.find(".form__actions .button--a").attr("onclick","javascript:setValues("+a.coords.latitude+","+a.coords.longitude+");");null==map&&(initializeMap(b),b=new ol.style.Style({image:new ol.style.Icon({anchor:[.5,25],anchorXUnits:"fraction",anchorYUnits:"pixels",src:pathTheme+"/images/A.png"}),zIndex:1E3}),iconFeature.setStyle(b),b=new ol.source.Vector({features:[iconFeature]}),
1841b=new ol.layer.Vector({source:b,name:"mark"}),map.addLayer(b),b=ol.proj.transform([a.coords.longitude,a.coords.latitude],"EPSG:4326","EPSG:3857"),iconFeature.setGeometry(new ol.geom.Point(b)),getAddressFromLatLang(a.coords.latitude,a.coords.longitude),map.on("singleclick",function(d){locatedPosition=d.coordinate;var g=ol.proj.transform(locatedPosition,"EPSG:3857","EPSG:4326");iconFeature.setGeometry(new ol.geom.Point(d.coordinate));getAddressFromLatLang(g[1],g[0])}))}
1842function showValueLocatedPoint(a){$(".dialog__container .street_name").html(a)}
1843function initializeMap(a){var b=document.getElementById("map");
1843a=a+"/maps/vts/xyz/tmb-basic/{z}/{x}/{y}.png?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey;view=new ol.View({minZoom:11,maxZoom:20});a=new ol.layer.Tile({title:"TMB Carto",type:"base",source:new ol.source.XYZ({url:a})});wmsFons=new ol.layer.Tile({source:new ol.source.TileWMS({params:{LAYERS:"PARADES_ACTIVES,ESTACIONS_I_ACCESSOS",FORMAT:"image/png",VERSION:"1.1.1",buffer:10,app_key:varTmbApiKey,app_id:varTmbApiId},urls:urlServerMapsWMS}),
1844minResolution:scale2Resolution("50","EPSG:3857"),maxResolution:scale2Resolution("50000","EPSG:3857")});var d=createMouseOverLayer();map=new ol.Map({layers:[a,wmsFons,d],interactions:ol.interaction.defaults({altShiftDragRotate:!1,dragPan:!1,rotate:!1}).extend([new ol.interaction.DragPan({kinetic:null})]),target:b,view,logo:!1});view.setCenter([243182.4475019037,5068818.472291455]);view.setZoom(13);markersVullAnarLayer=new ol.layer.Vector({source:new ol.source.Vector({}),opacity:1,visible:!0});markersVullAnarLayer.name=
1845"MARKERS_VULLANAR";map.addLayer(markersVullAnarLayer)}function initGeo2Medium(a){TMB.dialog.newModal(langJotmbeClose,"dialog--medium","initgeo-fragment","");dialog=$("#initgeo-fragment");dialog.find(".form__actions .button--a").attr("onclick",'javascript:setValueLocatedPoint("'+a+'");');TMB.mapMobile.init()}
1846function initGeo2Large(a){TMB.dialog.newModal(langJotmbeClose,"dialog--large","initgeo-fragment","");dialog=$("#initgeo-fragment");dialog.find(".form__actions .button--a").attr("onclick",'javascript:setValueLocatedPoint("'+a+'");');TMB.mapMobile.init()}
1847function getAddressFromLatLang(a,b){var d=new google.maps.Geocoder;a=new google.maps.LatLng(a,b);d.geocode({latLng:a},function(g,e){e==google.maps.GeocoderStatus.OK?g[0]&&showValueLocatedPoint(g[0].formatted_address):console.log("Geocode was not successful for the following reason: "+e)})}
1848function initMapUbicaMapa(){if(null==map){initializeMap();iconFeature=new ol.Feature({name:"Null Island",population:4E3,rainfall:500});var a=new ol.style.Style({image:new ol.style.Icon({anchor:[.5,25],anchorXUnits:"fraction",anchorYUnits:"pixels",src:pathTheme+"/images/A.png"}),zIndex:1E3});iconFeature.setStyle(a);a=new ol.source.Vector({features:[iconFeature]});a=new ol.layer.Vector({source:a,name:"mark"});map.addLayer(a);map.on("singleclick",function(b){locatedPosition=b.coordinate;var d=ol.proj.transform(locatedPosition,
1849"EPSG:3857","EPSG:4326");iconFeature.setGeometry(new ol.geom.Point(b.coordinate));getAddressFromLatLang(d[1],d[0])})}}function scale2Resolution(a,b){b=ol.proj.get(b).getUnits();return a/(25.4/.28*ol.proj.METERS_PER_UNIT[b]*39.37)}
1850function createMouseOverLayer(){var a=new ol.Collection,b=["ACCESSOS_FISICS","ACCESSOS","ESTACIONS_LINIA","ESTACIONS","PARADES_ACTIVES"],d=[[220,36,31,.01],[159,197,77,.01],[137,71,150,.01],[0,171,255,.01],[255,219,0,.01]],g=[254,254,254,.01],e;for(e in b){var h=b[e],c=h+"_OVER",k=urlServerMapsWFS+"?app_key\x3d"+varTmbApiKey+"\x26app_id\x3d"+varTmbApiId+"\x26REQUEST\x3dGetFeature\x26TYPENAME\x3d"+h+"\x26outputFormat\x3djson\x26srsName\x3dEPSG:3857";"PARADES_ACTIVES"==h&&(k+="\x26CQL_FILTER\x3dTIPIFICACIO_PARADA NOT IN ('X')");
1851h=new ol.layer.Vector({source:new ol.source.Vector({url:k,format:new ol.format.GeoJSON}),minResolution:scale2Resolution(limit[c.toLowerCase()][1],"EPSG:3857"),maxResolution:scale2Resolution(limit[c.toLowerCase()][0],"EPSG:3857"),style:new ol.style.Style({image:new ol.style.Circle({radius:6,fill:new ol.style.Fill({color:d[e]}),stroke:new ol.style.Stroke({color:g,width:2})})})});h.name=c;a.push(h)}return new ol.layer.Group({layers:a})}
1852function showPopup(a){$(overlayFeatureDiv).hide();overlayFeatureType="feature";var b=a.geometry.coordinates;changeOverlayData(a);$(overlayFeatureDiv).show();overlayFeature.setPosition(b)}function fitCoords(a,b,d){"EPSG:3857"!=b&&(a=ol.proj.transform(a,b,"EPSG:3857"));b=map.getSize();b=[parseInt(2*(b[0]-0)/3),parseInt(b[1]/3)];map.getView().centerOn(a,map.getSize(),b);d&&"number"==typeof d&&map.getView().getZoom()>d&&map.getView().setZoom(d)}
1853function changeOverlayData(a){featureInfo={type:a.properties.NOM_ACCES?"access":a.properties.NOM_ESTACIO?"metro":"bus",title:a.properties.NOM_ACCES?a.properties.NOM_ACCES:a.properties.NOM_ESTACIO?a.properties.NOM_ESTACIO:a.properties.NOM_PARADA,stopCode:a.properties.CODI_PARADA?a.properties.CODI_PARADA:-1,viewMore:a.properties.NOM_ACCES?!1:!0,viewMoreUrl:"/"+a.properties.MODE+"/"+("metro"==a.properties.MODE?"estacio/":"parada/")+("metro"==a.properties.MODE?a.properties.CODI_ESTACIO?a.properties.CODI_ESTACIO:
1854a.properties.ID_ESTACIO:a.properties.CODI_PARADA),access:a.properties.ID_TIPUS_ACCESSIBILITAT&&3!=a.properties.ID_TIPUS_ACCESSIBILITAT,lift:a.properties.NUM_ASCENSORS&&0<a.properties.NUM_ASCENSORS||a.properties.ID_TIPUS_ACCES&&3==a.properties.ID_TIPUS_ACCES,lines:"undefined"!==typeof a.properties.LINES?a.properties.LINES.sort(function(b,d){var g=13<=b.ORDRE_FAMILIA?
185413:b.ORDRE_FAMILIA,e=13<=d.ORDRE_FAMILIA?13:d.ORDRE_FAMILIA;return g==e?b.CODI_LINIA-d.CODI_LINIA:g-e}):{},info:{},position:ol.proj.transform(a.geometry.coordinates,
1855"EPSG:23031","EPSG:3857")};"access"===featureInfo.type?(affectacionsType="Metro",affectacionsWhereItIs="Vinyeta Acc\u00e9s Metro"):"metro"===featureInfo.type?(affectacionsType="Metro",affectacionsWhereItIs="Vinyeta Estaci\u00f3 Metro"):(affectacionsType="Bus",affectacionsWhereItIs="Vinyeta Parada Bus");setInfoPopup()}
1856function setInfoPopup(){var a=getTmbTypeClass();$(".panel.panel-default").addClass(a);a=getStopIcon();$(".icons").removeClass().addClass("icons "+a);a=$(".tmbPopup-heading-txt");a.empty();$("\x3cp\x3e",{"class":"panel-title",text:featureInfo.title}).appendTo(a);-1!==featureInfo.stopCode&&$("\x3cspan\x3e",{text:"Parada "+featureInfo.stopCode}).appendTo(a)}
1857function getTmbTypeClass(){return featureInfo.type&&"tmb"==featureInfo.type?"tmbPopup-tmb":featureInfo.type&&"pois"==featureInfo.type?"tmbPopup-pois":""}function getStopIcon(){return"bus"==featureInfo.type?"bus-red-icon":"metro"==featureInfo.type||"access"==featureInfo.type?"metro-red-icon":"tmb"==featureInfo.type?"tmb-point-vermell-icon":"loading"==featureInfo.type?"":"turistic-point-vermell-icon"}
1858function closePopup(){$(overlayFeatureDiv).hide();$(overlayFeatureDiv).find(".tmbPopup-heading-txt").empty();overlayFeatureType=null}
1859function initiBus(){var a=$(".dialog__container #map")[0],b="https://api.tmb.cat/v1/maps/vts
1859/xyz/tmb-basic/{z}/{x}/{y}.png?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey;view=new ol.View({maxZoom:21});b=new ol.layer.Tile({title:"TMB Carto",type:"base",source:new ol.source.XYZ({url:b})});wmsFons=new ol.layer.Tile({source:new ol.source.TileWMS({params:{LAYERS:"PARADES_ACTIVES,ESTACIONS_I_ACCESSOS",FORMAT:"image/png",VERSION:"1.1.1",buffer:10,app_key:varTmbApiKey,app_id:varTmbApiId},urls:urlServerMapsWMS}),
1860minResolution:scale2Resolution("50","EPSG:3857"),maxResolution:scale2Resolution("50000","EPSG:3857")});map=new ol.Map({layers:[b,wmsFons],interactions:ol.interaction.defaults({altShiftDragRotate:!1,dragPan:!1,rotate:!1}).extend([new ol.interaction.DragPan({kinetic:null})]),target:a,view,logo:!1});view.setCenter([243182.4475019037,5068818.472291455]);view.setZoom(13);markersVullAnarLayer=new ol.layer.Vector({source:new ol.source.Vector({}),opacity:1,visible:!0});markersVullAnarLayer.name="MARKERS_VULLANAR";
1861map.addLayer(markersVullAnarLayer)}function initChooseLocation(){$("#modalText").text(langMapModalSelectPositionText)}
1862function initMapiBusCurrentGeoLocation(){navigator&&navigator.geolocation?(navigator.geolocation.getCurrentPosition(function(a){onGetMapiBusCurrentGeolocationPosition(a)},function(a){switch(a.code){case a.PERMISSION_DENIED:$(".dialog__container").html(langErrorPermissionDenied);break;case a.POSITION_UNAVAILABLE:$(".dialog__container").html(langErrorPositionUnavailable);break;case a.PERMISSION_DENIED_TIMEOUT:$(".dialog__container").html(langErrorPermissionTimeout);break;case a.UNKNOWN_ERROR:$(".dialog__container").html(langErrorUnknown);
1863break;case a.TIMEOUT:$(".dialog__container").html(langErrorPermissionDenied)}},{enableHighAccuracy:!0,timeout:5E3}),$("#modalText").text(langMapModalCurrentPositionText)):error("Geo Location is not supported")}
1864function onGetMapiBusCurrentGeolocationPosition(a){initMapiBus();initMapiBusLocateMap();getAddressFromLatLang(a.coords.latitude,a.coords.longitude);var b=ol.proj.transform([a.coords.longitude,a.coords.latitude],"EPSG:4326","EPSG:3857");iconFeature.setGeometry(new ol.geom.Point(b));view.setCenter([b[0],b[1]]);view.setZoom(18);showStops([a.coords.longitude,a.coords.latitude])}function initMapiBus(){$(".dialog__container").html($("#ibus-dialog-maps").html())}
1865function initMapiBusLocateMap(){initiBus();iconFeature=new ol.Feature({name:"Null Island",population:4E3,rainfall:500});var a=new ol.style.Style({image:new ol.style.Icon({anchor:[.5,25],anchorXUnits:"fraction",anchorYUnits:"pixels",src:pathTheme+"/images/A.png"}),zIndex:1E3});iconFeature.setStyle(a);a=new ol.source.Vector({features:[iconFeature]});a=new ol.layer.Vector({source:a,name:"mark"});map.addLayer(a);map.on("singleclick",function(b){locatedPosition=ol.proj.transform(b.coordinate,"EPSG:3857",
1866"EPSG:4326");iconFeature.setGeometry(new ol.geom.Point(b.coordinate));getAddressFromLatLang(locatedPosition[1],locatedPosition[0]);showStops(locatedPosition)})}
1867function showStops(a){jQuery.ajax({url:apiGis+"/itransit/nearby/radius?lon\x3d"+a[0]+"\x26lat\x3d"+a[1]+"\x26distancia\x3d200\x26app_key\x3d"+varTmbApiKey+"\x26app_id\x3d"+varTmbApiId,type:"GET",dataType:"json",success:function(b){b&&b.features&&b.features.forEach(f=>{f.properties.CODI=f.properties.TIPUS_ELEMENT&&f.properties.TIPUS_ELEMENT.includes("accessos_")&&f.properties.ELEMENT_PARE?f.properties.ELEMENT_PARE:f.properties.CODI_ELEMENT;f.properties.NOM=f.properties.NOM_ELEMENT;f.properties.CODI_TIPUS=
1868f.properties.CODI_DISTRICTE;f.properties.NOM_TIPUS=f.properties.TIPUS_ELEMENT&&f.properties.TIPUS_ELEMENT.includes("accessos_")?f.properties.TIPUS_ELEMENT.split("_")[0].toUpperCase():f.properties.TIPUS_ELEMENT.toUpperCase();f.properties.PICTO=f.properties.PICTO;f.properties.DATA="";f.properties.DISTANCE_IN_METERS=f.properties.DISTANCIA;f.properties.BEARING_IN_DEGREES=f.properties.ORIENTACIO});var d=[],g=[],e=!0,h='\x3cdiv class\x3d"holder holder--near-transports"\x3e\x3ctable class\x3d"near-transports" summary\x3d"Sumari de la taula"\x3e\x3ccaption class\x3d"near-transports__caption"\x3e'+
1869transportNear+'\x3c/caption\x3e\x3cthead class\x3d"near-transports__head"\x3e\x3ctr\x3e\x3cth scope\x3d"col"\x3e'+lines+'\x3c/th\x3e\x3cth scope\x3d"col"\x3e'+langLocation+'\x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3ctbody class\x3d"near-transports__body"\x3e',c;for(c in b.features)if(2==b.features[c].properties.CODI_TIPUS){e&&(codeLocated=b.features[c].properties.CODI,e=!1);var k=b.features[c].properties.NOM.replace("'","\\'");h+='\x3ctr\x3e\x3cth class\x3d"near-transports__lines" scope\x3d"row"\x3e\x3cul class\x3d"lines" id\x3d"ul_'+
1870b.features[c].properties.CODI+'"\x3e\x3c/ul\x3e\x3c/th\x3e\x3ctd\x3e';h+='\x3ca href\x3d"javascript:void(0);" onclick\x3d"showStopData(\''+c+"', '"+k+"', '"+b.features[c].properties.CODI+'\');" \x3e\x3cdl class\x3d"near-transports__route"\x3e\x3cdt class\x3d"near-transports__route__address"\x3e'+b.features[c].properties.NOM+" ("+b.features[c].properties.CODI+')\x3c/dt\x3e\x3cdd class\x3d"near-transports__route__directions"\x3eA '+Math.round(b.features[c].properties.DISTANCE_IN_METERS)+" m.\x3c/dd\x3e\x3c/dl\x3e\x3c/a\x3e\x3c/td\x3e\x3c/tr\x3e";
1871d.push(b.features[c].properties.CODI_TIPUS+","+b.features[c].properties.CODI);g.push(b.features[c].geometry.coordinates)}h+="\x3c/tbody\x3e\x3c/table\x3e\x3c/div\x3e";$(".dialog__container .panel-stops").html(h);initStopsData(d);setCoordinatesStop(g)}})}function setCoordinatesStop(a){arr_coord=a}
1872function showStopData(a,b,d){a=a?a:0;var g=ol.proj.transform(arr_coord[a],"EPSG:4326","EPSG:3857");view.setCenter([g[0],g[1]]);view.setZoom(18);$(".dialog__container .street_name").html("S'ha seleccionat la parada \x3cb\x3e"+b+"\x3c/b\x3e");a=ol.proj.transform(arr_coord[a],"EPSG:4326","EPSG:3857");iconFeature.setGeometry(new ol.geom.Point(a));codeLocated=d}
1873function initStopsData(a){for(var b,d,g=0;g<a.length;g++)parada_key=a[g].split(","),b=parada_key[1],jQuery.ajax({url:apiGisTransit+"/linies/bus/parades/"+b+"?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26cql_filter\x3d(CODI_FAMILIA+IN+(1,3,5,6,7,11))\x26sortBy\x3dSENTIT,ORDRE\x26srsName\x3dEPSG:3857",type:"GET",dataType:"json",async:!0,success:function(e){d="";for(var h in e.features)d+='\x3cli class\x3d"lines__item"\x3e\x3cspan class\x3d"line line--bus line--bus-'+e.features[h].properties.NOM_LINIA.charAt(0).toLowerCase()+
1874'"\x3e'+e.features[h].properties.NOM_LINIA+"\x3c/span\x3e\x3c/li\x3e";0<e.features.length&&void 0!=e.features[h]&&$("#ul_"+e.features[h].properties.CODI_PARADA).html(d)}})}function setValueCodeLocated(){null!=codeLocated&&($("#tmb-ibus__codi").val(codeLocated),TMB.dialog.close(),$("#tmb-ibus__codi").focusout(),$("#tmb-ibus__codi").focus());$("#tmb-ibus__opcio__linia:checked")&&($("#tmb-ibus__opcio__codi").click(),TMB.customInput.init())}
1875function suggestedLocationSuccess(a){var b=$(".tmb-maps__form--vull-anar .form__field"),d="",g="",e="",h;for(h in a){var c=a[h],k="";k=c.alias?c.alias:c.address;e="CASA"===c.type?e+('\x3cli class\x3d"datalist__item datalist__item--home" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+c.address+"','"+c.alias+"','"+c.coordinates.y+","+c.coordinates.x+'\');" aria-label\x3d"'+langHome+'"\x3e'+k+" \x3c/a\x3e\x3c/li\x3e"):"FEINA"===c.type?e+('\x3cli class\x3d"datalist__item datalist__item--work" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+
1876c.address+"','"+c.alias+"','"+c.coordinates.y+","+c.coordinates.x+'\');" aria-label\x3d"'+langWork+'"\x3e'+k+" \x3c/a\x3e\x3c/li\x3e"):e+('\x3cli class\x3d"datalist__item datalist__item--place" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+c.address+"','"+c.alias+"','"+c.coordinates.y+","+c.coordinates.x+'\');" aria-label\x3d"'+c.alias+'"\x3e'+k+" \x3c/a\x3e\x3c/li\x3e")}""!=e&&(d='\x3cul class\x3d"form__field__datalist form__field__datalist--suggested datalist jotmbe-suggested-location" role\x3d"list"\x3e \x3cli class\x3d"datalist__item datalist__item--get-location" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:void(0);" aria-label\x3d"'+
1877langCurrentLocation+'"\x3e'+langCurrentLocation+' \x3c/a\x3e\x3c/li\x3e\x3cli class\x3d"datalist__item datalist__item--title"\x3e'+langMyPlaces+"\x3c/li\x3e"+e+"\x3c/ul\x3e",g='\x3cul class\x3d"form__field__datalist form__field__datalist--suggested datalist jotmbe-suggested-location" role\x3d"list"\x3e\x3cli class\x3d"datalist__item datalist__item--title"\x3e'+langMyPlaces+"\x3c/li\x3e"+e+"\x3c/ul\x3e",b.find("input[type\x3dtext]").on("focus",function(f){$(".form__field__datalist--suggested.jotmbe-suggested-location").remove();
1878$(".suggest-active").removeClass("suggest-active");$(this).parents(".form__field--suggest-location").addClass("suggest-active");1>$(this).parents(".form__field--suggest-location").find(".form__field__datalist--suggested.jotmbe-suggested-location").length&&(1==$(this).parents(".form__field--suggest-location").data("suggestfull")?$(this).parent().append(d):2==$(this).parents(".form__field--suggest-location").data("suggestfull")?$(this).parent().append(g):3==$(this).parents(".form__field--suggest-location").data("suggestfull")&&
1879$(this).parent().append(d));$(this).parents(".form__field__control").removeClass("form__field__control--error").find("form__tooltip").remove();$(this).parents(".form__field--suggest-location").on("focusout",function(l){$(l.target).closest(".form__field--suggest-location").hasClass("suggest-active")||($(".suggest-active").removeClass("suggest-active"),$(this).find(".form__field__datalist--suggested.jotmbe-suggested-location").remove())})}));$("body").on("click focusin",function(f){$(".suggest-active").length&&
18801>$(f.target).parents(".suggest-active").length&&($(".form__field__datalist--suggested.jotmbe-suggested-location").remove(),$(".suggest-active").removeClass("suggest-active"))});b.find("input[type\x3dtext]").on("keypress",function(f){$(this).parents(".form__field--suggest-location").find(".form__field__datalist--suggested.jotmbe-suggested-location").remove()});b.on("mousedown",".datalist__item--get-location",function(f){f.preventDefault()}).on("click",".datalist__item--get-location",function(){initGeoSuggestedLocation();
18810===$(this).parents("form__field__control").find("form__field__control--error__tooltip").length&&$(this).parents(".form__field__control").append("").children(":last").hide().fadeIn(400,function(){$("#errorbox-1").click(function(f){$(this).is(":visible")&&$(this).fadeOut(400,function(){$(".suggest-active").removeClass("suggest-active");$(this).remove()})})})})}function suggestedLocationError(){console.error("Error getting pois info")}var token=localStorage.getItem("kc_token");
1882function suggestedLocation(){$(".tmb-maps__form--vull-anar .form__field");var a=localStorage.getItem("uuid");locations(a,"GET",null,suggestedLocationSuccess,suggestedLocationError,token)}
1883function initGeoSuggestedLocation(){navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition(function(a){successSuggestedLocation(a)},function(a){switch(a.code){case a.PERMISSION_DENIED:console.log(langErrorPermissionDenied);break;case a.POSITION_UNAVAILABLE:console.log(langErrorPositionUnavailable);break;case a.PERMISSION_DENIED_TIMEOUT:console.log(langErrorPermissionTimeout);break;case a.UNKNOWN_ERROR:console.log(langErrorUnknown);break;case a.TIMEOUT:console.log(langErrorPermissionDenied)}},
1884{enableHighAccuracy:!0,timeout:5E3}):error("Geo Location is not supported")}
1885function successSuggestedLocation(a){var b=new google.maps.Geocoder,d=new google.maps.LatLng(a.coords.latitude,a.coords.longitude);b.geocode({latLng:d},function(g,e){e==google.maps.GeocoderStatus.OK?g[0]&&(e=ol.proj.transform([a.coords.longitude,a.coords.latitude],"EPSG:4326","EPSG:3857"),$(".suggest-active").find("input[type\x3dtext]").val(g[0].formatted_address),$(".suggest-active").find("input[type\x3d
1885hidden]").eq(0).val(e[0]),$(".suggest-active").find("input[type\x3dhidden]").eq(1).val(e[1]),
1886$(".form__field__datalist--suggested.jotmbe-suggested-location").remove()):console.log("Geocode was not successful for the following reason: "+e)})};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.