!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define([],e):t.ol=e()}(this,function(){var O={},D=this;function t(t,e){var o,i=O;(t=t.split("."))[0]in(i=i||D)||!i.execScript||i.execScript("var "+t[0]);for(;t.length&&(o=t.shift());)t.length||void 0===e?i=i[o]&&i[o]!==Object.prototype[o]?i[o]:i[o]={}:i[o]=e}function U(t,e){return e>>0,r=0;re[0]?t:e)[0],o[1]=(e[1]=t.minZoom;){if(o.call(null,e,Re(t,r,e,i)))return!0;--e}return!1}function je(t,e,o,i){return e[0]A.$)&&(tt(E,new $(rt(P.ca,C),rt(P.$,C),P.da,P.ia))||P.$-P.ca+1>C&&tt(E,A))){b=!0;break t}}b=!1}else b=!0}else b=!1;b?(m in h&&delete h[m],(b=v.b)in y||(y[b]=!0,l[m]=v)):h[m]=v}}}for(r in c=(s=[l,h])[0],s=s[1],this.l)r in c?(this.j[r]||(this.l[r].style.display="",this.j[r]=!0),delete c[r]):r in s?(this.j[r]&&(this.l[r].style.display="none",delete this.j[r]),delete s[r]):(So(this.l[r]),delete this.l[r],delete this.j[r]);for(r in c)d=document.createElement("LI"),d.innerHTML=c[r].b,this.I.appendChild(d),this.l[r]=d,this.j[r]=!0;for(r in s)d=document.createElement("LI"),d.innerHTML=s[r].b,d.style.display="none",this.I.appendChild(d),this.l[r]=d;for(p in r=!Wt(this.j)||!Wt(t.logos),this.B!=r&&(this.element.style.display=r?"":"none",this.B=r),r&&Wt(this.j)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only"),t=t.logos,r=this.T)p in t||(So(r[p]),delete r[p]);for(n in t)(s=t[n])instanceof HTMLElement&&(this.u.appendChild(s),r[n]=s),n in r||((p=new Image).src=n,""===s?c=p:((c=document.createElement("a")).href=s,c.appendChild(p)),this.u.appendChild(c),r[n]=c);this.u.style.display=Wt(t)?"none":""}else this.B&&(this.element.style.display="none",this.B=!1)}function Eo(t){t.element.classList.toggle("ol-collapsed"),t.c?wo(t.D,t.C):wo(t.C,t.D),t.c=!t.c}function Ao(t){return Math.pow(t,3)}function Co(t){return 1-Ao(1-t)}function jo(t){return 3*t*t-2*t*t*t}function Lo(t){return t}function Ro(t){var e=void 0!==(t=t||{}).className?t.className:"ol-rotate",o=void 0!==t.label?t.label:"⇧",i=(this.c=null,"string"==typeof o?(this.c=document.createElement("span"),this.c.className="ol-compass",this.c.textContent=o):(this.c=o,this.c.classList.add("ol-compass")),t.tipLabel||"Reset rotation");(o=document.createElement("button")).className=e+"-reset",o.setAttribute("type","button"),o.title=i,o.appendChild(this.c),g(o,"click",Ro.prototype.D,this),(i=document.createElement("div")).className=e+" ol-unselectable ol-control",i.appendChild(o),e=t.render||Fo,this.o=t.resetNorth||void 0,Po.call(this,{element:i,render:e,target:t.target}),this.l=void 0!==t.duration?t.duration:250,this.j=void 0===t.autoHide||t.autoHide,this.u=void 0,this.j&&this.element.classList.add("ol-hidden")}function Fo(t){var e,o;(t=t.frameState)&&((t=t.viewState.rotation)!=this.u&&(e="rotate("+t+"rad)",this.j&&((o=this.element.classList.contains("ol-hidden"))||t?o&&t&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")),this.c.style.msTransform=e,this.c.style.webkitTransform=e,this.c.style.transform=e),this.u=t)}function No(t){var e=void 0!==(t=t||{}).className?t.className:"ol-zoom",o=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInLabel?t.zoomInLabel:"+",r=void 0!==t.zoomOutLabel?t.zoomOutLabel:"−",n=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",p=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",s=document.createElement("button");s.className=e+"-in",s.setAttribute("type","button"),s.title=n,s.appendChild("string"==typeof i?document.createTextNode(i):i),g(s,"click",No.prototype.j.bind(this,o)),(i=document.createElement("button")).className=e+"-out",i.setAttribute("type","button"),i.title=p,i.appendChild("string"==typeof r?document.createTextNode(r):r),g(i,"click",No.prototype.j.bind(this,-o)),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(s),o.appendChild(i),Po.call(this,{element:o,target:t.target}),this.c=void 0!==t.duration?t.duration:250}function Io(t){t=t||{};var e=new y;return void 0!==t.zoom&&!t.zoom||e.push(new No(t.zoomOptions)),void 0!==t.rotate&&!t.rotate||e.push(new Ro(t.rotateOptions)),void 0!==t.attribution&&!t.attribution||e.push(new Mo(t.attributionOptions)),e}function ko(t){this.c=void 0!==(t=t||{}).className?t.className:"ol-full-screen";var e=void 0!==t.label?t.label:"⤢",o=(this.o="string"==typeof e?document.createTextNode(e):e,this.l="string"==typeof(e=void 0!==t.labelActive?t.labelActive:"×")?document.createTextNode(e):e,t.tipLabel||"Toggle full-screen");(e=document.createElement("button")).className=this.c+"-"+Do(),e.setAttribute("type","button"),e.title=o,e.appendChild(this.o),g(e,"click",this.C,this),(o=document.createElement("div")).className=this.c+" ol-unselectable ol-control "+(Oo()?"":"ol-unsupported"),o.appendChild(e),Po.call(this,{element:o,target:t.target}),this.D=void 0!==t.keys&&t.keys,this.j=t.source}function Oo(){var t=document.body;return t.webkitRequestFullscreen||t.mozRequestFullScreen&&document.mozFullScreenEnabled||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled}function Do(){return!!(document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||document.fullscreenElement)}function Uo(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}e(Po,oo),Po.prototype.ka=function(){So(this.element),oo.prototype.ka.call(this)},Po.prototype.g=function(){return this.a},Po.prototype.setMap=function(t){this.a&&So(this.element);for(var e=0,o=this.v.length;e>1;){var a=2*e+1,l=2*e+2,a=l>1;if(!(t[p]>n))break;i[o]=i[p],t[o]=t[p],o=p}i[o]=r,t[o]=n}function Oi(t){for(var e=t.l,o=t.b,i=t.i,r=0,n=o.length,p=0;p>1)-1;0<=e;e--)Ii(t,e)}function Di(e,t){Fi.call(this,function(t){return e.apply(null,t)},function(t){return t[0].bb()}),this.v=t,this.j=0,this.g={}}function Ui(t,e,o){for(var i,r,n=0;t.je;)r-=3;if(!((e=t.b[2+o]-t.b[r+2])<1e3/60))return i=t.b[o]-t.b[r],o=t.b[1+o]-t.b[r+1],t.i=Math.atan2(o,i),t.a=Math.sqrt(i*i+o*o)/e,t.a>t.c}}}(this.a)&&(e=((e=this.a).c-e.a)/e.f,o=this.a.i,i=t.wa(),i=r.Ja(i),r=r.Wa([i[0]-e*Math.cos(o),i[1]-e*Math.sin(o)]),t.animate({center:t.Ec(r),duration:500,easing:Co})),Ar(t,1,-1),!1)}function _r(t){var e;return!!(0=this.u}function an(t){var e,o;Vr(t)&&(e=this.a,o=t.pixel,e.c=this.g,e.i=o,nn(e),rn(e),this.b(new fn(un,t.coordinate,t)))}function ln(t){return!Vr(t)||(this.a.setMap(null),this.l(t,this.g,t.pixel)&&(this.j(t),this.b(new fn(cn,t.coordinate,t))),!1)}function hn(t){var e,o;return!!(Vr(t)&&Dr(t)&&this.C(t))&&(this.g=t.pixel,this.a.setMap(t.map),e=this.a,o=this.g,e.c=this.g,e.i=o,nn(e),rn(e),this.b(new fn(yn,t.coordinate,t)),!0)}e(Li,Qe),Li.prototype.Jh=function(t){Ri(this,t);var e,o=new ci("pointerup",this.i,t);this.b(o),this.o||t.button||(e=(o=this).c,t=new ci("click",o.i,e),o.b(t),o.j?(clearTimeout(o.j),o.j=0,t=new ci("dblclick",o.i,e),o.b(t)):o.j=setTimeout(function(){this.j=0;var t=new ci("singleclick",this.i,e);this.b(t)}.bind(o),250)),this.S||(this.f.forEach(Ze),this.f.length=0,this.o=!1,this.c=null,Ye(this.a),this.a=null)},Fi.prototype.clear=function(){this.b.length=0,this.i.length=0,Bt(this.a)},Fi.prototype.f=function(t){_(!(this.c(t)in this.a),31);var e=this.l(t);return 1/0!=e&&(this.b.push(t),this.i.push(e),this.a[this.c(t)]=!0,ki(this,0,this.b.length-1),!0)},e(Di,Fi),Di.prototype.f=function(t){var e=Fi.prototype.f.call(this,t);return e&&g(t[0],"change",this.o,this),e},Di.prototype.o=function(t){var e=(t=t.target).getState();2!==e&&3!==e&&4!==e&&5!==e||(He(t,"change",this.o,this),(t=t.bb())in this.g&&(delete this.g[t],--this.j),this.v())},e(or,oo),or.prototype.Ab=function(t,e){return this.Kb(t[0],t[1],e=e||[NaN,NaN],1/0),e},e(i,or),i.prototype.Mc=er,e(lr,i),lr.prototype.clone=function(){var t=new lr(null);return hr(t,this.ja,this.A.slice()),t},e(p,i),p.prototype.clone=function(){var t=new p(null);return t.ba(this.ja,this.A.slice()),t},e(s,i),s.prototype.pk=function(t){this.A?K(this.A,t.ga()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},e(l,oo),l.prototype.animate=function(t){var e,o=Date.now(),i=this.wa().slice(),r=this.Pa(),n=this.Qa(),p=arguments.length;1this.C&&(this.a=!0),this.j=i,(i=(t=t.map).Z()).g.rotation!==Gi&&(r=t.a.getBoundingClientRect(),(e=Hr(this.o))[0]-=r.left,e[1]-=r.top,this.g=t.Wa(e),this.a)&&(r=i.Qa(),t.render(),Rr(i,r+o,this.g))}function En(t){var e,o,i;return!(this.o.length<2&&(Ar(t=t.map.Z(),1,-1),this.a&&(i=t.Qa(),e=this.g,o=this.u,i=t.constrainRotation(i,0),Rr(t,i,e,o)),1))}function An(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.j=void 0,this.a=!1,this.l=0,this.D||Ar(t.Z(),1,1),!0)}function Cn(t){zr.call(this,{handleDownEvent:Rn,handleDragEvent:jn,handleUpEvent:Ln}),this.l=(t=t||{}).constrainResolution||!1,this.g=null,this.u=void 0!==t.duration?t.duration:400,this.a=void 0,this.j=1}function jn(t){var e=1,o=this.o[0],i=this.o[1],r=o.clientX-i.clientX,o=o.clientY-i.clientY,r=Math.sqrt(r*r+o*o);void 0!==this.a&&(e=this.a/r),this.a=r;var i=(r=(t=t.map).Z()).Pa(),n=r.a,p=r.f;n<(o=i*e)?(e=n/i,o=n):ot.a)&&(e=this.g,o=this.u,i=t.constrainResolution(i,0,this.j-1),Nr(t,i,e,o)),1))}function Rn(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.a=void 0,this.j=1,this.D||Ar(t.Z(),1,1),!0)}function Fn(t){t=t||{};var e=new y,o=new Cr(-.005,.05,100);return void 0!==t.altShiftDragRotate&&!t.altShiftDragRotate||e.push(new $r),void 0!==t.doubleClickZoom&&!t.doubleClickZoom||e.push(new Ir({delta:t.zoomDelta,duration:t.zoomDuration})),void 0!==t.dragPan&&!t.dragPan||e.push(new qr({kinetic:o})),void 0!==t.pinchRotate&&!t.pinchRotate||e.push(new Mn),void 0!==t.pinchZoom&&!t.pinchZoom||e.push(new Cn({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.keyboard&&!t.keyboard||(e.push(new gn),e.push(new mn({delta:t.zoomDelta,duration:t.zoomDuration}))),void 0!==t.mouseWheelZoom&&!t.mouseWheelZoom||e.push(new xn({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.shiftDragZoom&&!t.shiftDragZoom||e.push(new dn({duration:t.zoomDuration})),e}function Nn(t){oo.call(this);var e=Gt({},t);e.opacity=void 0!==t.opacity?t.opacity:1,e.visible=void 0===t.visible||t.visible,e.zIndex=void 0!==t.zIndex?t.zIndex:0,e.maxResolution=void 0!==t.maxResolution?t.maxResolution:1/0,e.minResolution=void 0!==t.minResolution?t.minResolution:0,this.H(e),this.a={layer:this,Je:!0}}function In(t){return t.a.opacity=et(t.hc(),0,1),t.a.yj=t.$f(),t.a.visible=t.Mb(),t.a.extent=t.G(),t.a.zIndex=t.Ba(),t.a.maxResolution=t.fc(),t.a.minResolution=Math.max(t.gc(),0),t.a}function kn(t){var e=t||{};delete(t=Gt({},e)).layers,e=e.layers,Nn.call(this,t),this.f=[],this.c={},g(this,ro(On),this.Hl,this),e?Array.isArray(e)?e=new y(e.slice(),{unique:!0}):_(e instanceof y,43):e=new y(void 0,{unique:!0}),this.xi(e)}e(Mn,zr),Mn.prototype.Xc=er,e(Cn,zr),Cn.prototype.Xc=er,e(Nn,oo),Nn.prototype.G=function(){return this.get("extent")},e(kn,Nn),kn.prototype.Fd=function(){};var On="layers";function o(t){var e=Gt({},t);delete e.source,Nn.call(this,e),this.v=this.l=this.o=null,t.map&&this.setMap(t.map),g(this,ro("source"),this.Ul,this),this.Wc(t.source||null)}function Dn(t,e){return t.visible&&t.minResolution<=e&&en&&(n=e[u],y=e[u+1]),h=f}else for(h=p=Vs(t,e[u=e.length-o],e[u+1],s++),n=e[u],y=e[u+1],u-=o,c=0;c<=u;u-=o)f=Vs(t,e[u],e[u+1],s++),l.push(Xs(h,f,i)),a.push([Math.min(h.x,f.x),Math.min(h.y,f.y),Math.max(h.x,f.x),Math.max(h.y,f.y)]),e[u]>n&&(n=e[u],y=e[u+1]),h=f;return l.push(Xs(f,p,i)),a.push([Math.min(h.x,f.x),Math.min(h.y,f.y),Math.max(h.x,f.x),Math.max(h.y,f.y)]),r.load(a,l),[n,y]}function Gs(t,e,o){var i=ys(t),r=i,n=us(t),p=!1;do{var s=o?Ep(n.W.x,n.W.y,r.W.x,r.W.y,r.aa.x,r.aa.y):Ep(r.aa.x,r.aa.y,r.W.x,r.W.y,n.W.x,n.W.y)}while(void 0===s?(zs(r,n,t,e),p=!0,n===i&&(i=cs(t)),n=r,fs(t)):r.W.Fb!==s&&(r.W.Fb=s,p=!0),r=n,n=us(t),r!==i);return p}function Bs(t,e,o,i,r){var n=t.b.length,p=ys(e),s=ds(e),a=p,l=us(e),h=cs(e),y=!1;do{var u,c=a.aa,f=a.W,d=l.W}while(!1===f.Fb&&(u=r?Js(h.W,d,f,c,s.aa):Js(s.aa,c,f,d,h.W),!i&&Zs({aa:c,W:d},o).length||!u||Hs(c,f,d,o,!0).length||!i&&!1!==c.Fb&&!1!==d.Fb&&fr([s.aa.x,s.aa.y,c.x,c.y,f.x,f.y,d.x,d.y,h.W.x,h.W.y],0,10,2)!==!r||(t.b[n++]=c.hb,t.b[n++]=f.hb,t.b[n++]=d.hb,zs(a,l,e,o),l===p&&(p=h),y=!0)),s=ds(e),a=gs(e),l=us(e),h=cs(e),a!==p&&3(o.y-i.y)*(e.x-i.x),r=(r.x-i.x)*(e.y-i.y)<(r.y-i.y)*(e.x-i.x),t=(t.x-e.x)*(i.y-e.y)>(t.y-e.y)*(i.x-e.x),o=(o.x-e.x)*(i.y-e.y)<(o.y-e.y)*(i.x-e.x),e=e.Fb?o||t:o&&t,i.Fb?r||n:r&&n)&&e}function Ys(){}function _s(t,e,o){this.f=e,this.g=t,this.c=o,this.a={}}function $s(t,e,o,i,r,n,p,s,a,l,h){for(var y=Qs,u=Object.keys(t.a).map(Number),c=(u.sort(function(t,e){return e-t}),0),f=u.length;cthis.Hf;)this.jk(i,e),e--;this.Zj(o,i,e)},jk:function(t,e){var o=t[e],i=o.children.length,r=this.fh;this.$j(o,r,i),i=this.ak(o,r,i),(i=Rs(o.children.splice(i,o.children.length-i))).height=o.height,i.ib=o.ib,Ss(o,this.wb),Ss(i,this.wb),e?t[e-1].children.push(i):this.hh(o,i)},hh:function(t,e){this.data=Rs([t,e]),this.data.height=t.height+1,this.data.ib=!1,Ss(this.data,this.wb)},ak:function(t,e,o){for(var i=p=1/0,r=e;r<=o-e;r++){var n,p,s=Ps(t,0,r,this.wb),a=Ps(t,r,o,this.wb),l=Math.max(0,Math.min(s.$,a.$)-Math.max(s.ca,a.ca))*Math.max(0,Math.min(s.ia,a.ia)-Math.max(s.da,a.da)),s=As(s)+As(a);lr&&(this.i.push(r),this.f.push(e),this.j.s)&&(this.c.push(r),this.j.s=!1),this.g.b.length>n&&_p(this.g,e,n)},Ys.prototype.La=function(){},e(_s,vp),_s.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(this.a[o]=t={}),void 0===(o=t[e])&&(o=new ta[e](this.g,this.f),t[e]=o),o},_s.prototype.i=function(){return Wt(this.a)},_s.prototype.La=function(t,e,o,i,r,n,p,s){for(var a=Object.keys(this.a).map(Number),l=(a.sort(U),0),h=a.length;l=t.l)break;++n}t.D!=(o=r+" "+i)&&(t.o.innerHTML=o,t.D=o),t.B!=e&&(t.o.style.width=e+"px",t.B=e),t.j||(t.c.style.display="",t.j=!0)}else t.j&&(t.c.style.display="none",t.j=!1)}va.prototype.C=function(){return this.get(wa)},va.prototype.T=function(){xa(this)},va.prototype.I=function(t){this.set(wa,t)};var wa="units";function Sa(t){t=t||{},this.c=void 0,this.j=Pa,this.D=this.l=0,this.I=null,this.na=!1,this.T=void 0!==t.duration?t.duration:200;var e=void 0!==t.className?t.className:"ol-zoomslider",o=document.createElement("button"),i=(o.setAttribute("type","button"),o.className=e+"-thumb ol-unselectable",document.createElement("div"));i.className=e+" ol-unselectable ol-control",i.appendChild(o),this.o=new Mi(i),g(this.o,"pointerdown",this.yl,this),g(this.o,"pointermove",this.wl,this),g(this.o,"pointerup",this.xl,this),g(i,"click",this.vl,this),g(o,"click",$e),Po.call(this,{element:i,render:t.render||Ma})}e(Sa,Po),Sa.prototype.ka=function(){Ye(this.o),Po.prototype.ka.call(this)};var Pa=0;function Ma(t){var e,o,i,r,n;t.frameState&&(this.na||(e=(r=this.element).offsetWidth,o=r.offsetHeight,n=r.firstElementChild,i=getComputedStyle(n),r=n.offsetWidth+parseFloat(i.marginRight)+parseFloat(i.marginLeft),n=n.offsetHeight+parseFloat(i.marginTop)+parseFloat(i.marginBottom),this.I=[r,n],o>1)],o))<0?a=r+1:(l=r,h=!s);s=(r=h?a:~a)<0?(p=nt(t[e+=(-r-2)*i],t[e+i],o=(o-p[-r-2])/(p[-r-1]-p[-r-2])),nt(t[e+1],t[e+i+1],o)):(p=t[e+r*i],t[e+r*i+1])}return n?(n[0]=p,n[1]=s,n):[p,s]}function m(t,e){i.call(this),this.c=null,this.u=this.D=this.j=-1,this.ma(t,e)}function yl(t){return t.j!=t.i&&(t.c=t.wh(.5,t.c),t.j=t.i),t.c}function a(t,e){i.call(this),this.c=[],this.j=this.u=-1,this.ma(t,e)}function ul(t){for(var e=[],o=t.A,i=0,r=t.c,n=(t=t.a,0),p=r.length;n>>0):4294967296*(e>>>0)+(t>>>0)}function ec(t,e){this.layers=t.Ag(sc,{},e)}function oc(t,e){this.x=t,this.y=e}function ic(t,e,o,i,r){this.properties={},this.extent=o,this.type=0,this.Cc=t,this.Ef=-1,this.ne=i,this.pe=r,t.Ag(rc,this,e)}function rc(t,e,o){if(1==t)e.id=o.Ka();else if(2==t)for(t=o.Ka()+o.ea;o.ea>3)?t.Gg():2===e?t.yp():3===e?t.up():4===e?t.Kp():5===e?t.Ka():6===e?t.ce():7===e?t.sp():null;return e}(o))}function sc(t,e,o){3===t&&(t=new Ku(o,o.Ka()+o.ea)).length&&(e[t.name]=t)}function ac(t,e,o,i,r){this.g=r,this.i=t,this.b=e,this.f=o,this.c=i}function lc(t){nl.call(this),t=t||{},this.defaultDataProjection=new Zt({code:"",units:"tile-pixels"}),this.b=t.featureClass||ac,this.a=t.geometryName,this.i=t.layerName||"layer",this.c=t.layers||null}function hc(){Yl.call(this),this.defaultDataProjection=ge("EPSG:4326")}function yc(t,e){e[e.length-1].fe[t.getAttribute("k")]=t.getAttribute("v")}by.prototype.Xb=function(t,e){e=sl(this,e);var o=Ka(wy[4],"kml"),i=(o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:gx",xy[0]),o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd"),{node:o}),r={};return 1>1,a=-7,l=o?-1:1,h=t[e+(r=o?r-1:0)];for(r+=l,o=h&(1<<-a)-1,h>>=-a,a+=n;0>=-a,a+=i;0>3,n=this.ea;this.type=7&i,t(r,e,this),this.ea===n&&this.mq(i)}return e},yp:function(){var t=Bu(this.lc,this.ea,!0,23,4);return this.ea+=4,t},up:function(){var t=Bu(this.lc,this.ea,!0,52,8);return this.ea+=8,t},Ka:function(t){var e=this.lc,o=e[this.ea++],i=127&o;if(o<128)return i;if(i|=(127&(o=e[this.ea++]))<<7,o<128)return i;if(i|=(127&(o=e[this.ea++]))<<14,o<128)return i;if(i|=(127&(o=e[this.ea++]))<<21,o<128)return i;var o=i|(15&e[this.ea])<<28,i=t,e=this,t=e.lc,r=t[e.ea++],n=(112&r)>>4;if(r<128)return tc(o,n,i);if(n|=(127&(r=t[e.ea++]))<<3,r<128)return tc(o,n,i);if(n|=(127&(r=t[e.ea++]))<<10,r<128)return tc(o,n,i);if(n|=(127&(r=t[e.ea++]))<<17,r<128)return tc(o,n,i);if(n|=(127&(r=t[e.ea++]))<<24,r<128)return tc(o,n,i);if((r=t[e.ea++])<128)return tc(o,n|(1&r)<<31,i);throw Error("Expected varint not more than 10 bytes")},Kp:function(){return this.Ka(!0)},ce:function(){var t=this.Ka();return 1==t%2?(t+1)/-2:t/2},sp:function(){return!!this.Ka()},Gg:function(){for(var t=this.Ka()+this.ea,e=this.lc,o="",i=this.ea;i>>10&1023|55296),a=56320|1023&a),o+=String.fromCharCode(a),i+=l}return this.ea=t,o},mq:function(t){if((t&=7)===Qu.c)for(;127>=3),r--,1===i||2===i)n+=t.ce(),p+=t.ce(),1===i&&(e&&s.push(e),e=[]),e.push(new oc(n,p));else{if(7!==i)throw Error("unknown command "+i);e&&e.push(e[0].clone())}return e&&s.push(e),s},ic.prototype.bbox=function(){var t=this.Cc;t.ea=this.Ef;for(var e=t.Ka()+t.ea,o=1,i=0,r=0,n=0,p=1/0,s=-1/0,a=1/0,l=-1/0;t.ea>=3),i--,1===o||2===o)(r+=t.ce())=this.me.length)throw Error("feature index out of bounds");return this.Cc.ea=this.me[t],t=this.Cc.Ka()+this.Cc.ea,new ic(this.Cc,t,this.extent,this.ne,this.pe)},Wu=Ku,si.default={Bf:ec,Wj:ic,Xj:Wu},si.Bf=ec,si.Wj=ic,si.Xj=Wu,ac.prototype.get=function(t){return this.c[t]},e(lc,nl),lc.prototype.U=function(){return"arraybuffer"},e(hc,Yl);var pi=[null],uc=h(pi,{nd:function(t,e){e[e.length-1].md.push(t.getAttribute("ref"))},tag:yc}),cc=h(pi,{node:function(t,e){var o=e[0],i=e[e.length-1],r=t.getAttribute("id"),n=[parseFloat(t.getAttribute("lon")),parseFloat(t.getAttribute("lat"))];i.Sh[r]=n,Wt((t=d({fe:{}},fc,t,e)).fe)||(al(n=new p(n),!1,o),(o=new v(n)).jc(r),o.H(t.fe),i.features.push(o))},way:function(t,e){var o=e[0],i=t.getAttribute("id");t=d({md:[],fe:{}},uc,t,e),e=e[e.length-1];for(var r=[],n=0,p=t.md.length;n>=5;e+=n+=String.fromCharCode(r+63)}return e}function Oc(t,e){e=e||1e5;for(var o=[],i=0,r=0,n=0,p=t.length;n>1):r>>1;for(t=0,i=o.length;tx.width?x.width-T:R),D=P+E>x.height?x.height-E:P;e.drawImage(x,T,E,I,D,N,A,I*o,D*o),1!=M&&(e.globalAlpha=F),1==j&&!C||e.setTransform.apply(e,d)}++u;break;case 5:for(c=N[1],b=N[2],S=N[3],P=N[4]*o,M=N[5]*o,C=N[6],j=N[7]*o,x=N[8],w=N[9],(A=N[10])&&(C+=r);ca[2];)h=qd(this,t,h=l*++b),y.La(f,r,h,s,n),p-=l;h=qd(this,t,0)}ap(f,s,v/2,m/2),f!=o&&(Zd(this,"render",f,t,h),o.drawImage(f.canvas,-d,-g),f.translate(-d,-g)),f.globalAlpha=c}u&&o.restore(),this.ef(o,t,e,h)},Qd.prototype.Ea=function(t,e,o,i,r){var n,p;if(this.f)return n=this.a,p={},this.f.Ea(t,e.viewState.resolution,e.viewState.rotation,o,{},function(t){var e=q(t).toString();if(!(e in p))return p[e]=!0,i.call(r,t,n)})},Qd.prototype.D=function(){Gd(this)},Qd.prototype.sd=function(t){function e(t){var e,o=t.Lc();if(o?e=o.call(t,n):(o=a.f)&&(e=o(t,n)),e){if(o=!1,Array.isArray(e))for(var i=0,r=e.length;it.Sa:t.g===jg&&(i=t.a[0].length>t.Sa,r=[t.a[0][0],t.a[0][t.a[0].length-2]]),i)for(var i=e.map,n=0,p=r.length;n=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),t.Za(i,r)):t.g===jg&&((i=t.a[0]).length>=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),o&&(t.l=i[0]),t.Za(t.a,r)),Eg(t),o&&t.Pd()}function Tg(t){t.l=null;var e=t.j;return e&&(t.j=null,t.B=null,t.C=null,t.pa.ha().clear(!0)),e}function Eg(t){var e=[];t.j&&e.push(t.j),t.C&&e.push(t.C),t.B&&e.push(t.B),(t=t.pa.ha()).clear(!0),t.cd(e)}e(hg,oo),hg.prototype.Ea=Z,e(P,hg),P.prototype.yb=function(t){var e,o=q(t).toString();fg(this,o,t)&&(cg(this,o,t),(e=t.V())?(o=e.G(),this.a&&this.a.Ca(o,t)):this.g[o]=t,this.b(new gg("addfeature",t))),this.s()},e(gg,_e),e(vg,zr),vg.prototype.setMap=function(t){zr.prototype.setMap.call(this,t),this.ri()};var Ag="Point",Cg="LineString",jg="Polygon",Lg="Circle";function Rg(t,e){_e.call(this,t),this.feature=e}function Fg(t){var e,o;this.a=this.j=null,this.C=!1,this.B=this.l=null,(t=t||{}).extent&&this.g(t.extent),zr.call(this,{handleDownEvent:Ig,handleDragEvent:kg,handleEvent:Ng,handleUpEvent:Og}),this.u=new S({source:new P({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.boxStyle||(e=Ua(),function(){return e.Polygon}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.I=new S({source:new P({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.pointerStyle||(o=Ua(),function(){return o.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0})}function Ng(t){var e,o;return!(t instanceof ci&&("pointermove"!=t.type||this.D||Bg(this,Gg(this,e=t.pixel,o=t.map)||o.Wa(e)),Zr.call(this,t),1))}function Ig(t){function e(t){var e=null,o=null;return t[0]==r[0]?e=r[2]:t[0]==r[2]&&(e=r[0]),t[1]==r[1]?o=r[3]:t[1]==r[3]&&(o=r[1]),null!==e&&null!==o?[e,o]:null}var o=t.pixel,i=t.map,r=this.G();return(t=Gg(this,o,i))&&r?(o=t[0]==r[0]||t[0]==r[2]?t[0]:null,i=t[1]==r[1]||t[1]==r[3]?t[1]:null,null!==o&&null!==i?this.a=Dg(e(t)):null!==o?this.a=Ug(e([o,r[1]]),e([o,r[3]])):null!==i&&(this.a=Ug(e([r[0],i]),e([r[2],i])))):(t=i.Wa(o),this.g([t[0],t[1],t[0],t[1]]),this.a=Dg(t)),!0}function kg(t){return this.a&&(t=t.coordinate,this.g(this.a(t)),Bg(this,t)),!0}function Og(){this.a=null;var t=this.G();return t&&Tt(t)||this.g(null),!1}function Dg(e){return function(t){return lt([e,t])}}function Ug(e,o){return e[0]==o[0]?function(t){return lt([e,[t[0],o[1]]])}:e[1]==o[1]?function(t){return lt([e,[o[0],t[1]]])}:null}function Gg(t,e,o){var i=o.Wa(e);if(r=t.G()){(r=[[[r[0],r[1]],[r[0],r[3]]],[[r[0],r[3]],[r[2],r[3]]],[[r[2],r[3]],[r[2],r[1]]],[[r[2],r[1]],[r[0],r[1]]]]).sort(function(t,e){return $i(i,t)-$i(i,e)});var r=r[0],n=Xi(i,r),p=o.Ja(n);if(_i(e,p)<=10)return e=o.Ja(r[0]),o=o.Ja(r[1]),e=Yi(p,e),o=Yi(p,o),t.C=Math.sqrt(Math.min(e,o))<=10,n=t.C?oe.v),d))Math.abs(o[0]-r[0])<=Math.abs(o[1]-r[1])?(f=[(i[0]+r[0])/2,(i[1]+r[1])/2],c=e.a(f),y=[(n[0]+o[0])/2,(n[1]+o[1])/2],u=e.a(y),t(e,o,i,f,y,p,s,c,u,h-1),t(e,y,f,r,n,u,c,a,l,h-1)):(f=[(o[0]+i[0])/2,(o[1]+i[1])/2],c=e.a(f),y=[(r[0]+n[0])/2,(r[1]+n[1])/2],u=e.a(y),t(e,o,f,y,n,p,c,u,l,h-1),t(e,f,i,r,y,c,s,a,u,h-1));else{if(f){if(!e.l)return;e.o=!0}e.c.push({source:[p,a,l],target:[o,r,n]}),e.c.push({source:[p,s,a],target:[o,i,r]})}}}(this,t,e,i,o,r,a,l,h,10),this.o&&(n=1/0,this.c.forEach(function(t){n=Math.min(n,t.source[0][0],t.source[1][0],t.source[2][0])}),this.c.forEach(function(t){var e;Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-n>this.b/2&&((e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]])[0][0]-n>this.b/2&&(e[0][0]-=this.b),e[1][0]-n>this.b/2&&(e[1][0]-=this.b),e[2][0]-n>this.b/2&&(e[2][0]-=this.b),Math.max(e[0][0],e[1][0],e[2][0])-Math.min(e[0][0],e[1][0],e[2][0])r[0]||t[1]<0||t[1]>r[1])&&(this.f||(this.f=xo(1,1)),this.f.clearRect(0,0,1,1),this.f.drawImage(this.M.Y(),t[0],t[1],1,1,0,0,1,1),0<(r=this.f.getImageData(0,0,1,1).data)[3]))return o.call(i,this.a,r)}},e(G0,o),G0.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new S0(this):"webgl"===o&&(e=new U0(t,this)),e},e(B0,w0),B0.prototype.sd=function(t,e){var o=t.pixelRatio,i=t.size,r=(p=t.viewState).projection,n=p.resolution,p=p.center,s=this.a,a=s.ha(),l=a.i,h=a.Ta(r),y=h.tc(n,this.T),u=h.Da(y),c=Math.round(n/u)||1,f=t.extent;if(Ot(f=void 0!==e.extent?Rt(f,e.extent):f))return!1;var d=Le(h,f,u),g=h.Pc(y),v=h.Da(y),m=at(h.gb(y),h.j),g=vt(g[0]+d.ca*m[0]*v,g[1]+d.da*m[1]*v,g[0]+(d.$+1)*m[0]*v,g[1]+(d.ia+1)*m[1]*v,void 0),v=a.nb(o),b=((m={})[y]={},this.Nf(a,r,m)),x=this.l,w=this.va,S=!1;for(j=d.ca;j<=d.$;++j)for(L=d.da;L<=d.ia;++L){var P=a.Nc(y,j,L,o,r);3!=P.getState()||this.a.kd()||pd(P,2),K0(this,P)||(P=nd(P)),K0(this,P)?2==P.getState()&&(m[y][P.ta.toString()]=P,S||-1!=this.g.indexOf(P)||(S=!0)):Ce(h,P.ta,b,w,x)||(P=je(h,P.ta,w,x))&&b(y+1,P)}if(j=(j=t.viewHints)[0]||j[1],!(this.f&&16t.highWaterMark}function ev(t){hg.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state,wrapX:t.wrapX}),this.va=void 0!==t.opaque&&t.opaque,this.$a=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null,this.a=new Q0(t.cacheSize),this.o=[0,0],this.uc=""}function ov(t,e,o,i,r){if(!(e=t.Wd(e)))return!1;for(var n,p,s=!0,a=i.ca;a<=i.$;++a)for(var l=i.da;l<=i.ia;++l)n=t.Sb(o,a,l),p=!1,(p=e.b.hasOwnProperty(n)?(p=2===(n=e.get(n)).getState())&&!1!==r(n):p)||(s=!1);return s}function iv(t,e){t.uc!==e&&(t.uc=e,t.s())}function rv(t,e,o){var i,r,n=void 0!==o?o:t.c;return o=t.Ta(n),t.u&&n.c&&(e=(i=e)[0],t=Fe(o,i),e=ut(n=De(n),t)?i:(i=It(n),t[0]+=i*Math.ceil((n[0]-t[0])/i),o.bg(t,e))),i=e[0],n=e[1],t=e[2],(o=!(o.minZoom>i||o.maxZoomTerms of Use'});function j(t){var e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",o=void 0!==t.tileGrid?t.tileGrid:Ie({extent:De(e),maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});A.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX})}function L(t){this.C=t.account,this.B=t.map||"",this.f=t.config||{},this.l={},j.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,maxZoom:void 0!==t.maxZoom?t.maxZoom:18,minZoom:t.minZoom,projection:t.projection,state:"loading",wrapX:t.wrapX}),lv(this)}function lv(t){var e,o,i=JSON.stringify(t.f);t.l[i]?hv(t,t.l[i]):(e="https://"+t.C+".cartodb.com/api/v1/map",t.B&&(e+="/named/"+t.B),(o=new XMLHttpRequest).addEventListener("load",t.Dl.bind(t,i)),o.addEventListener("error",t.Cl.bind(t)),o.open("POST",e),o.setRequestHeader("Content-type","application/json"),o.send(JSON.stringify(t.f)))}function hv(t,e){t.jb("https://"+e.cdn_url.https+"/"+t.C+"/api/v1/map/"+e.layergroupid+"/{z}/{x}/{y}.png")}function R(t){P.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,wrapX:t.wrapX}),this.resolution=void 0,this.distance=void 0!==t.distance?t.distance:20,this.features=[],this.geometryFunction=t.geometryFunction||function(t){return _((t=t.V())instanceof p,10),t},this.source=t.source,this.source.J("change",R.prototype.sa,this)}function yv(t,e){var o=[],i=(Object.keys(e).forEach(function(t){null!==e[t]&&void 0!==e[t]&&o.push(t+"="+encodeURIComponent(e[t]))}),o.join("&"));return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+i}function uv(t){j0.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions}),this.R=void 0!==t.crossOrigin?t.crossOrigin:null,this.T=void 0===t.hidpi||t.hidpi,this.f=t.url,this.g=t.imageLoadFunction||R0,this.v=t.params||{},this.M=null,this.l=[0,0],this.I=0,this.B=void 0!==t.ratio?t.ratio:1.5}function cv(t){j0.call(this,{projection:t.projection,resolutions:t.resolutions}),this.R=void 0!==t.crossOrigin?t.crossOrigin:null,this.l=void 0!==t.displayDpi?t.displayDpi:96,this.g=t.params||{},this.I=t.url,this.f=t.imageLoadFunction||R0,this.T=void 0===t.hidpi||t.hidpi,this.pa=void 0!==t.metersPerUnit?t.metersPerUnit:1,this.v=void 0!==t.ratio?t.ratio:1,this.va=void 0!==t.useOverlay&&t.useOverlay,this.M=null,this.B=0}function fv(t){var e=t.imageExtent,o=void 0!==t.crossOrigin?t.crossOrigin:null,i=t.imageLoadFunction||R0;j0.call(this,{attributions:t.attributions,logo:t.logo,projection:ge(t.projection)}),this.M=new od(e,void 0,1,this.j,t.url,o,i),this.f=t.imageSize||null,g(this.M,"change",this.o,this)}function dv(t){j0.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions}),this.pa=void 0!==t.crossOrigin?t.crossOrigin:null,this.g=t.url,this.v=t.imageLoadFunction||R0,this.f=t.params||{},this.l=!0,mv(this),this.T=t.serverType,this.va=void 0===t.hidpi||t.hidpi,this.M=null,this.B=[0,0],this.R=0,this.I=void 0!==t.ratio?t.ratio:1.5}C.prototype.T=function(){return this.f},C.prototype.fa=function(){return this.l},C.prototype.pa=function(t){var e,i,p,s,r,n,a;200!=t.statusCode||"OK"!=t.statusDescription||"ValidCredentials"!=t.authenticationResultCode||1!=t.resourceSets.length||1!=t.resourceSets[0].resources.length?ug(this,"error"):(-1==(e=t.brandLogoUri).indexOf("https")&&(e=e.replace("http","https")),i=t.resourceSets[0].resources[0],p=-1==this.C?i.zoomMax:this.C,s=Ie({extent:t=De(this.c),minZoom:i.zoomMin,maxZoom:p,tileSize:(i.imageWidth==i.imageHeight?i.imageWidth:[i.imageWidth,i.imageHeight])/this.nb()}),this.tileGrid=s,r=this.R,n=this.B,this.tileUrlFunction=Y0(i.imageUrlSubdomains.map(function(t){var e=[0,0,0],o=i.imageUrl.replace("{subdomain}",t).replace("{culture}",r);return function(t){if(t)return Te(t[0],t[1],-t[2]-1,e),t=o,n&&(t+="&dpi=d1&device=mobile"),t.replace("{quadkey}",function(t){for(var e=t[0],o=Array(e),i=1<>=1}return o.join("")}(e))}})),i.imageryProviders&&(a=be(ge("EPSG:4326"),this.c),(t=i.imageryProviders.map(function(t){var e=t.attribution,n={};return t.coverageAreas.forEach(function(t){var e,o=t.zoomMin,i=Math.min(t.zoomMax,p);for(t=Ut([(t=t.bbox)[1],t[0],t[3],t[2]],a),e=o;e<=i;++e){var r=e.toString(),o=Re(s,t,e);r in n?n[r].push(o):n[r]=[o]}}),new Ue({html:e,tileRanges:n})})).push(av),this.ua(t)),this.D=e,ug(this,"ready"))},e(j,A),e(L,j),L.prototype.Kk=function(){return this.f},e(R,P),R.prototype.$n=function(){return this.distance},e(uv,j0),uv.prototype.co=function(){return this.v},e(cv,j0),cv.prototype.ko=function(){return this.g},e(fv,j0),fv.prototype.Jc=function(t){return kt(t,this.M.G())?this.M:null},fv.prototype.o=function(t){var e,o,i,r,n;2==this.M.getState()&&(i=this.M.G(),e=this.M.Y(),n=this.f?(o=this.f[0],this.f[1]):(o=e.width,e.height),(i=Math.ceil(It(i)/(Lt(i)/n)))!=o)&&(r=(i=xo(i,n)).canvas,i.drawImage(e,0,0,o,n,0,0,r.width,r.height),this.M.Og(r)),j0.prototype.o.call(this,t)},e(dv,j0);var gv=[101,101];function vv(t,e,o,i,r,n){if(_(void 0!==t.g,9),n[t.l?"CRS":"SRS"]=r.mb,"STYLES"in t.f||(n.STYLES=""),1!=i)switch(t.T){case"geoserver":i=90*i+.5|0,n.FORMAT_OPTIONS="FORMAT_OPTIONS"in n?n.FORMAT_OPTIONS+";dpi:"+i:"dpi:"+i;break;case"mapserver":n.MAP_RESOLUTION=90*i;break;case"carmentaserver":case"qgis":n.DPI=90*i;break;default:_(!1,8)}return n.WIDTH=o[0],n.HEIGHT=o[1],o=r.b,r=t.l&&"ne"==o.substr(0,2)?[e[1],e[0],e[3],e[2]]:e,n.BBOX=r.join(","),yv(t.g,n)}function mv(t){t.l=0<=Wi(t.f.VERSION||"1.3.0")}function bv(t){var e=void 0!==(t=t||{}).attributions?t.attributions:[xv];j.call(this,{attributions:e,cacheSize:t.cacheSize,crossOrigin:void 0!==t.crossOrigin?t.crossOrigin:"anonymous",opaque:void 0===t.opaque||t.opaque,maxZoom:void 0!==t.maxZoom?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,url:void 0!==t.url?t.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:t.wrapX})}dv.prototype.so=function(t,e,o,i){var r,n;if(void 0!==this.g)return r=jt(t,e,0,gv),n={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS},Gt(n,this.f,i),i=Math.floor((r[3]-t[1])/e),n[this.l?"I":"X"]=Math.floor((t[0]-r[0])/e),n[this.l?"J":"Y"]=i,vv(this,r,gv,1,ge(o),n)},e(bv,j);var xv=new Ue({html:'© OpenStreetMap contributors.'}),pi=(ms.df={},ms.df.Af=function(){},ms.df=ms.df||{});function wv(y){var u=!0;try{new ImageData(10,10)}catch(t){u=!1}return function(t){var e=t.buffers,o=t.meta,i=t.width,r=t.height,n=e.length,p=e[0].byteLength;if(t.imageOps){for(p=Array(n),t=0;tthis.fk;)this.Ed.shift().callback(null,null)},Sv.prototype.dh=function(){if(0===this.oe&&0Stamen Design, under CC BY 3.0.'}),xv],Fv={terrain:{Lb:"jpg",opaque:!0},"terrain-background":{Lb:"jpg",opaque:!0},"terrain-labels":{Lb:"png",opaque:!1},"terrain-lines":{Lb:"png",opaque:!1},"toner-background":{Lb:"png",opaque:!0},toner:{Lb:"png",opaque:!0},"toner-hybrid":{Lb:"png",opaque:!1},"toner-labels":{Lb:"png",opaque:!1},"toner-lines":{Lb:"png",opaque:!1},"toner-lite":{Lb:"png",opaque:!0},watercolor:{Lb:"jpg",opaque:!0}},Nv={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}};function F(t){A.call(this,{attributions:(t=t||{}).attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.f=t.params||{},this.l=gt(),iv(this,Iv(this))}function Iv(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function kv(t){ev.call(this,{opaque:!1,projection:t.projection,tileGrid:t.tileGrid,wrapX:void 0===t.wrapX||t.wrapX})}function Ov(t,e,o){rd.call(this,t,2),this.c=e,this.Ia=o,this.a=null}function N(t){var e;this.f=null,A.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,projection:ge("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX}),t.url?t.jsonp?q0(t.url,this.og.bind(this),this.Ve.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Ao.bind(this)),e.addEventListener("error",this.zo.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.og(t.tileJSON):_(!1,51)}function Dv(t){var e;ev.call(this,{projection:ge("EPSG:3857"),state:"loading"}),this.v=void 0===t.preemptive||t.preemptive,this.l=_0,this.g=void 0,this.f=t.jsonp||!1,t.url?this.f?q0(t.url,this.pg.bind(this),this.We.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Eo.bind(this)),e.addEventListener("error",this.Do.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.pg(t.tileJSON):_(!1,51)}function Uv(t,e,o,i,r,n){rd.call(this,t,e),this.o=o,this.a=i,this.v=r,this.c=this.j=this.g=null,this.l=n}function I(t){var e=(t=t||{}).params||{};A.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:!(!("TRANSPARENT"in e)||e.TRANSPARENT),projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.C=void 0!==t.gutter?t.gutter:0,this.f=e,this.l=!0,this.B=t.serverType,this.T=void 0===t.hidpi||t.hidpi,this.R="",Bv(this),this.fa=gt(),Wv(this),iv(this,Kv(this))}function Gv(t,e,o,i,r,n,p){var s=t.urls;if(s){if(p.WIDTH=o[0],p.HEIGHT=o[1],p[t.l?"CRS":"SRS"]=n.mb,"STYLES"in t.f||(p.STYLES=""),1!=r)switch(t.B){case"geoserver":o=90*r+.5|0,p.FORMAT_OPTIONS="FORMAT_OPTIONS"in p?p.FORMAT_OPTIONS+";dpi:"+o:"dpi:"+o;break;case"mapserver":p.MAP_RESOLUTION=90*r;break;case"carmentaserver":case"qgis":p.DPI=90*r;break;default:_(!1,52)}return n=n.b,t.l&&"ne"==n.substr(0,2)&&(t=i[0],i[0]=i[1],i[1]=t,t=i[2],i[2]=i[3],i[3]=t),p.BBOX=i.join(","),yv(1==s.length?s[0]:s[rt((e[1]<>=1,i>>=1;break;default:_(!1,53)}n.push([1,1]),n.reverse();for(var r=[1],p=[0],i=1,o=n.length;i=e+this.b&&s.height>=o+this.b)return p={offsetX:s.x+this.b,offsetY:s.y+this.b,image:this.f},this.c[t]=p,i.call(r,this.i,s.x+this.b,s.y+this.b),t=n,e+=this.b,i=o+this.b,e=s.width-e>s.height-i?(o={x:s.x+e,y:s.y,width:s.width-e,height:s.height},{x:s.x,y:s.y+i,width:e,height:s.height-i}):(o={x:s.x+e,y:s.y,width:s.width-e,height:i},{x:s.x,y:s.y+i,width:s.width,height:s.height-i}),em(this,t,o,e),p}return null},om.prototype.add=function(t,e,o,i,r,n){return!(e+this.b>this.i||o+this.b>this.i)&&(i=im(this,!1,t,e,o,i,n))?(t=im(this,!0,t,e,o,r||Z,n),{offsetX:i.offsetX,offsetY:i.offsetY,image:i.image,Zl:t.image}):null},t("ol.Attribution",Ue),Ue.prototype.getHTML=Ue.prototype.i,t("ol.Collection",y),y.prototype.extend=y.prototype.fg,y.prototype.getArray=y.prototype.tm,y.prototype.getLength=y.prototype.dc,y.prototype.insertAt=y.prototype.He,y.prototype.removeAt=y.prototype.Hg,y.prototype.setAt=y.prototype.Wp,t("ol.color.asArray",uo),t("ol.color.asString",co),t("ol.colorlike.asColorLike",bo),t("ol.control.defaults",Io),t("ol.coordinate.add",Vi),t("ol.coordinate.createStringXY",function(e){return function(t){return Qi(t,e)}}),t("ol.coordinate.format",Hi),t("ol.coordinate.rotate",qi),t("ol.coordinate.toStringHDMS",function(t,e){return t?zi("NS",t[1],e)+" "+zi("EW",t[0],e):""}),t("ol.coordinate.toStringXY",Qi),t("ol.DeviceOrientation",Aa),Aa.prototype.getAlpha=Aa.prototype.Fk,Aa.prototype.getBeta=Aa.prototype.Ik,Aa.prototype.getGamma=Aa.prototype.Ok,Aa.prototype.getHeading=Aa.prototype.um,Aa.prototype.getTracking=Aa.prototype.Th,Aa.prototype.setTracking=Aa.prototype.gg,t("ol.easing.easeIn",Ao),t("ol.easing.easeOut",Co),t("ol.easing.inAndOut",jo),t("ol.easing.linear",Lo),t("ol.easing.upAndDown",function(t){return t<.5?jo(2*t):1-jo(2*(t-.5))}),t("ol.extent.boundingExtent",lt),t("ol.extent.buffer",ht),t("ol.extent.containsCoordinate",ut),t("ol.extent.containsExtent",ct),t("ol.extent.containsXY",ft),t("ol.extent.createEmpty",gt),t("ol.extent.equals",wt),t("ol.extent.extend",St),t("ol.extent.getArea",Tt),t("ol.extent.getBottomLeft",Et),t("ol.extent.getBottomRight",At),t("ol.extent.getCenter",Ct),t("ol.extent.getHeight",Lt),t("ol.extent.getIntersection",Rt),t("ol.extent.getSize",function(t){return[t[2]-t[0],t[3]-t[1]]}),t("ol.extent.getTopLeft",Ft),t("ol.extent.getTopRight",Nt),t("ol.extent.getWidth",It),t("ol.extent.intersects",kt),t("ol.extent.isEmpty",Ot),t("ol.extent.applyTransform",Ut),t("ol.Feature",v),v.prototype.getGeometry=v.prototype.V,v.prototype.getId=v.prototype.wm,v.prototype.getGeometryName=v.prototype.Qk,v.prototype.getStyle=v.prototype.xm,v.prototype.getStyleFunction=v.prototype.Lc,v.prototype.setGeometry=v.prototype.Ra,v.prototype.setStyle=v.prototype.hg,v.prototype.setId=v.prototype.jc,v.prototype.setGeometryName=v.prototype.Tc,t("ol.featureloader.xhr",rl),t("ol.Geolocation",$f),$f.prototype.getAccuracy=$f.prototype.Dk,$f.prototype.getAccuracyGeometry=$f.prototype.Ek,$f.prototype.getAltitude=$f.prototype.Gk,$f.prototype.getAltitudeAccuracy=$f.prototype.Hk,$f.prototype.getHeading=$f.prototype.ym,$f.prototype.getPosition=$f.prototype.zm,$f.prototype.getProjection=$f.prototype.Uh,$f.prototype.getSpeed=$f.prototype.ll,$f.prototype.getTracking=$f.prototype.Vh,$f.prototype.getTrackingOptions=$f.prototype.Gh,$f.prototype.setProjection=$f.prototype.Wh,$f.prototype.setTracking=$f.prototype.Ke,$f.prototype.setTrackingOptions=$f.prototype.wj,t("ol.Graticule",Qf),Qf.prototype.getMap=Qf.prototype.Cm,Qf.prototype.getMeridians=Qf.prototype.al,Qf.prototype.getParallels=Qf.prototype.hl,t("ol.has.DEVICE_PIXEL_RATIO",Qo),t("ol.has.CANVAS",ei),t("ol.has.DEVICE_ORIENTATION",ee),t("ol.has.GEOLOCATION",oi),t("ol.has.TOUCH",ii),t("ol.has.WEBGL",li),od.prototype.getImage=od.prototype.Y,sd.prototype.getImage=sd.prototype.Y,t("ol.inherits",e),t("ol.interaction.defaults",Fn),t("ol.Kinetic",Cr),t("ol.loadingstrategy.all",lg),t("ol.loadingstrategy.bbox",function(t){return[t]}),t("ol.loadingstrategy.tile",function(i){return function(t,e){e=i.tc(e),t=Re(i,t,e);var o=[];for((e=[e,0,0])[1]=t.ca;e[1]<=t.$;++e[1])for(e[2]=t.da;e[2]<=t.ia;++e[2])o.push(i.Aa(e));return o}}),t("ol.Map",u),u.prototype.addControl=u.prototype.kk,u.prototype.addInteraction=u.prototype.lk,u.prototype.addLayer=u.prototype.ih,u.prototype.addOverlay=u.prototype.jh,u.prototype.forEachFeatureAtPixel=u.prototype.we,u.prototype.forEachLayerAtPixel=u.prototype.Im,u.prototype.hasFeatureAtPixel=u.prototype.Yl,u.prototype.getEventCoordinate=u.prototype.Tf,u.prototype.getEventPixel=u.prototype.xe,u.prototype.getTarget=u.prototype.ag,u.prototype.getTargetElement=u.prototype.jd,u.prototype.getCoordinateFromPixel=u.prototype.Wa,u.prototype.getControls=u.prototype.Lk,u.prototype.getOverlays=u.prototype.fl,u.prototype.getOverlayById=u.prototype.el,u.prototype.getInteractions=u.prototype.Sk,u.prototype.getLayerGroup=u.prototype.Kc,u.prototype.getLayers=u.prototype.Xh,u.prototype.getPixelFromCoordinate=u.prototype.Ja,u.prototype.getSize=u.prototype.Ob,u.prototype.getView=u.prototype.Z,u.prototype.getViewport=u.prototype.sl,u.prototype.renderSync=u.prototype.Tp,u.prototype.removeControl=u.prototype.Mp,u.prototype.removeInteraction=u.prototype.Np,u.prototype.removeLayer=u.prototype.Pp,u.prototype.removeOverlay=u.prototype.Qp,u.prototype.setLayerGroup=u.prototype.qj,u.prototype.setSize=u.prototype.Qg,u.prototype.setTarget=u.prototype.Le,u.prototype.setView=u.prototype.iq,u.prototype.updateSize=u.prototype.Ad,t("ol.Object",oo),oo.prototype.getKeys=oo.prototype.O,oo.prototype.getProperties=oo.prototype.N,oo.prototype.setProperties=oo.prototype.H,oo.prototype.unset=oo.prototype.P,t("ol.Observable",eo),t("ol.Observable.unByKey",function(t){if(Array.isArray(t))for(var e=0,o=t.length;e