!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define([],e):t.ol=e()}(this,function(){var r={},n=this;function t(t,e){var o,i=r;(t=t.split("."))[0]in(i=i||n)||!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 D(t,e){return e>>0,r=0;r=e.ca&&t.da<=e.ia&&t.ia>=e.da}function x(t,e,o){return Math.min(Math.max(t,e),o)}e(a,Error);var i="cosh"in Math?Math.cosh:function(t){return((t=Math.exp(t))+1/t)/2};function S(t,e,o,i,r,n){var s,a=r-o,p=n-i;return(a||p)&&(1<(s=((t-o)*a+(e-i)*p)/(a*a+p*p))?(o=r,i=n):0t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function z(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function Y(t,e,o,i,r){for(;oe[0]?t:e)[0],o[1]=(t[1]>e[1]?t:e)[1],o[2]=(t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function st(t){return t[2]=t.minZoom;){if(o.call(null,e,ee(t,r,e,i)))return!0;--e}return!1}function Qt(t,e,o,i){return e[0]T.$)&&(C(E,new B(L(M.ca,j),L(M.$,j),M.da,M.ia))||M.$-M.ca+1>j&&C(E,T))){m=!0;break t}}m=!1}else m=!0}else m=!1;m?(b in l&&delete l[b],(m=v.b)in u||(u[m]=!0,h[b]=v)):l[b]=v}}}for(r in f=(a=[h,l])[0],a=a[1],this.l)r in f?(this.j[r]||(this.l[r].style.display="",this.j[r]=!0),delete f[r]):r in a?(this.j[r]&&(this.l[r].style.display="none",delete this.j[r]),delete a[r]):(qe(this.l[r]),delete this.l[r],delete this.j[r]);for(r in f)g=document.createElement("LI"),g.innerHTML=f[r].b,this.I.appendChild(g),this.l[r]=g,this.j[r]=!0;for(r in a)g=document.createElement("LI"),g.innerHTML=a[r].b,g.style.display="none",this.I.appendChild(g),this.l[r]=g;for(s in r=!ct(this.j)||!ct(t.logos),this.B!=r&&(this.element.style.display=r?"":"none",this.B=r),r&&ct(this.j)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only"),t=t.logos,r=this.T)s in t||(qe(r[s]),delete r[s]);for(n in t)(a=t[n])instanceof HTMLElement&&(this.u.appendChild(a),r[n]=a),n in r||((s=new Image).src=n,""===a?f=s:((f=document.createElement("a")).href=a,f.appendChild(s)),this.u.appendChild(f),r[n]=f);this.u.style.display=ct(t)?"none":""}else this.B&&(this.element.style.display="none",this.B=!1)}function Qe(t){t.element.classList.toggle("ol-collapsed"),t.c?He(t.D,t.C):He(t.C,t.D),t.c=!t.c}function to(t){return Math.pow(t,3)}function eo(t){return 1-to(1-t)}function oo(t){return 3*t*t-2*t*t*t}function io(t){return t}function ro(t){var e=void 0!==(t=t||{}).className?t.className:"ol-rotate",o=void 0!==t.label?t.label:"⇧";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"));var i=t.tipLabel||"Reset rotation";(o=document.createElement("button")).className=e+"-reset",o.setAttribute("type","button"),o.title=i,o.appendChild(this.c),de(o,"click",ro.prototype.D,this),(i=document.createElement("div")).className=e+" ol-unselectable ol-control",i.appendChild(o),e=t.render||no,this.o=t.resetNorth||void 0,Je.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 no(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 so(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",s=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",a=document.createElement("button");a.className=e+"-in",a.setAttribute("type","button"),a.title=n,a.appendChild("string"==typeof i?document.createTextNode(i):i),de(a,"click",so.prototype.j.bind(this,o)),(i=document.createElement("button")).className=e+"-out",i.setAttribute("type","button"),i.title=s,i.appendChild("string"==typeof r?document.createTextNode(r):r),de(i,"click",so.prototype.j.bind(this,-o)),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(a),o.appendChild(i),Je.call(this,{element:o,target:t.target}),this.c=void 0!==t.duration?t.duration:250}function ao(t){t=t||{};var e=new Ne;return void 0!==t.zoom&&!t.zoom||e.push(new so(t.zoomOptions)),void 0!==t.rotate&&!t.rotate||e.push(new ro(t.rotateOptions)),void 0!==t.attribution&&!t.attribution||e.push(new _e(t.attributionOptions)),e}function po(t){this.c=void 0!==(t=t||{}).className?t.className:"ol-full-screen";var e=void 0!==t.label?t.label:"⤢";this.o="string"==typeof e?document.createTextNode(e):e,e=void 0!==t.labelActive?t.labelActive:"×",this.l="string"==typeof e?document.createTextNode(e):e;var o=t.tipLabel||"Toggle full-screen";(e=document.createElement("button")).className=this.c+"-"+lo(),e.setAttribute("type","button"),e.title=o,e.appendChild(this.o),de(e,"click",this.C,this),(o=document.createElement("div")).className=this.c+" ol-unselectable ol-control "+(ho()?"":"ol-unsupported"),o.appendChild(e),Je.call(this,{element:o,target:t.target}),this.D=void 0!==t.keys&&t.keys,this.j=t.source}function ho(){var t=document.body;return t.webkitRequestFullscreen||t.mozRequestFullScreen&&document.mozFullScreenEnabled||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled}function lo(){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(Je,je),Je.prototype.ka=function(){qe(this.element),je.prototype.ka.call(this)},Je.prototype.g=function(){return this.a},Je.prototype.setMap=function(t){this.a&&qe(this.element);for(var e=0,o=this.v.length;e=e.length){for(var r=[],n=0;nt.D||Math.abs(e.clientY-t.c.clientY)>t.D}function yi(t,e){this.l=t,this.c=e,this.b=[],this.i=[],this.a={}}function gi(t){var e=t.b,o=t.i,i=e[0];return 1==e.length?(e.length=0,o.length=0):(e[0]=e.pop(),o[0]=o.pop(),di(t,0)),e=t.c(i),delete t.a[e],i}function di(t,e){for(var o=t.b,i=t.i,r=o.length,n=o[e],s=i[e],a=e;e>1;){var p=2*e+1,h=2*e+2,p=h>1;if(!(t[s]>n))break;i[o]=i[s],t[o]=t[s],o=s}i[o]=r,t[o]=n}function bi(t){for(var e=t.l,o=t.b,i=t.i,r=0,n=o.length,s=0;s>1)-1;0<=e;e--)di(t,e)}function mi(e,t){yi.call(this,function(t){return e.apply(null,t)},function(t){return t[0].bb()}),this.v=t,this.j=0,this.g={}}function wi(t,e,o){for(var i,r,n=0;t.j=l[0]&&r[2]<=l[2]||r[1]>=l[1]&&r[3]<=l[3])||ur(t,e,o,i,function(t,e){var o,i,r,n,s,a=!1,p=R(l,t),h=R(l,e);return 1===p||1===h?a=!0:(o=l[0],i=l[1],r=l[2],n=l[3],s=e[0],t=((e=e[1])-t[1])/(s-t[0]),(a=!(a=!(a=2&h&&!(2&p)?o<=(a=s-(e-n)/t)&&a<=r:a)&&4&h&&!(4&p)?i<=(a=e-(s-r)*t)&&a<=n:a)&&8&h&&!(8&p)?o<=(a=s-(e-i)/t)&&a<=r:a)||!(16&h)||16&p||(a=i<=(a=e-(s-o)*t)&&a<=n)),a}))}function fr(t,e,o,i,r){var n=o[0];if(!(cr(t,e,n,i,r)||pr(t,e,n,i,r[0],r[1])||pr(t,e,n,i,r[0],r[3])||pr(t,e,n,i,r[2],r[1])||pr(t,e,n,i,r[2],r[3])))return!1;if(1===o.length)return!0;for(e=1,n=o.length;ee;)i-=3;if(!((e=t.b[2+o]-t.b[i+2])<1e3/60)){var r=t.b[o]-t.b[i],o=t.b[1+o]-t.b[i+1];return t.i=Math.atan2(o,r),t.a=Math.sqrt(r*r+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:eo})),Ir(t,1,-1),!1)}function on(t){if(0=this.u}function fn(t){var e,o;Hr(t)&&(e=this.a,o=t.pixel,e.c=this.g,e.i=o,ln(e),hn(e),this.b(new mn(vn,t.coordinate,t)))}function yn(t){return!Hr(t)||(this.a.setMap(null),this.l(t,this.g,t.pixel)&&(this.j(t),this.b(new mn(bn,t.coordinate,t))),!1)}function gn(t){if(Hr(t)&&Vr(t)&&this.C(t)){this.g=t.pixel,this.a.setMap(t.map);var e=this.a,o=this.g;return e.c=this.g,e.i=o,ln(e),hn(e),this.b(new mn(dn,t.coordinate,t)),!0}return!1}e(ui,Ae),(Mu=ui.prototype).Jh=function(t){ci(this,t);var e,o=new Wo("pointerup",this.i,t);this.b(o),this.o||t.button||(e=(o=this).c,t=new Wo("click",o.i,e),o.b(t),o.j?(clearTimeout(o.j),o.j=0,t=new Wo("dblclick",o.i,e),o.b(t)):o.j=setTimeout(function(){this.j=0;var t=new Wo("singleclick",this.i,e);this.b(t)}.bind(o),250)),this.S||(this.f.forEach(me),this.f.length=0,this.o=!1,this.c=null,Se(this.a),this.a=null)},Mu.Ol=function(t){ci(this,t);var e=new Wo("pointerdown",this.i,t);this.b(e),this.c=t,this.f.length||(this.a=new oi(document),this.f.push(de(this.a,"pointermove",this.Hm,this),de(this.a,"pointerup",this.Jh,this),de(this.g,"pointercancel",this.Jh,this)))},Mu.Hm=function(t){var e;fi(this,t)&&(this.o=!0,e=new Wo("pointerdrag",this.i,t,this.o),this.b(e)),t.preventDefault()},Mu.Lp=function(t){this.b(new Wo(t.type,this.i,t,!(!this.c||!fi(this,t))))},Mu.ka=function(){this.v&&(me(this.v),this.v=null),this.l&&(me(this.l),this.l=null),this.f.forEach(me),this.f.length=0,this.a&&(Se(this.a),this.a=null),this.g&&(Se(this.g),this.g=null),Ae.prototype.ka.call(this)},yi.prototype.clear=function(){this.b.length=0,this.i.length=0,lt(this.a)},yi.prototype.f=function(t){O(!(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,vi(this,0,this.b.length-1),!0)},e(mi,yi),mi.prototype.f=function(t){var e=yi.prototype.f.call(this,t);return e&&de(t[0],"change",this.o,this),e},mi.prototype.o=function(t){var e=(t=t.target).getState();2!==e&&3!==e&&4!==e&&5!==e||(be(t,"change",this.o,this),(t=t.bb())in this.g&&(delete this.g[t],--this.j),this.v())},e(Ui,je),(Mu=Ui.prototype).Ab=function(t,e){return this.Kb(t[0],t[1],e=e||[NaN,NaN],1/0),e},Mu.sb=function(t){return this.Mc(t[0],t[1])},Mu.Mc=Oi,Mu.G=function(t){this.v!=this.i&&(this.l=this.se(this.l),this.v=this.i);var e=this.l;return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]):t=e,t},Mu.Rb=function(t){return this.Vd(t*t)},Mu.tb=function(t,e){return this.Dc(Vt(t,e)),this},e(Xi,Ui),(Mu=Xi.prototype).Mc=Oi,Mu.se=function(t){return W(this.A,0,this.A.length,this.a,t)},Mu.ac=function(){return this.A.slice(0,this.a)},Mu.ga=function(){return this.A},Mu.bc=function(){return this.A.slice(this.A.length-this.a)},Mu.cc=function(){return this.ja},Mu.Vd=function(t){if(this.o!=this.i&&(lt(this.f),this.g=0,this.o=this.i),t<0||this.g&&t<=this.g)return this;var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];var o=this.hd(t);return o.ga().length=this.f&&t<=this.a){var e=this.l||0;if(this.j){if(e+=i=v(this.j,t,1),i==this.j.length-1)return e;var o=this.j[i],i=o/this.j[i+1]}else o=this.a,i=this.C;e+=Math.log(o/t)/Math.log(i)}return e},Mu.Qf=function(t,e){var o=(o=(e=e||{}).size)||Cr(this);t instanceof Xi?"Circle"===t.U()?(f=xr(t=t.G())).rotate(this.Qa(),$(t)):f=t:(O(Array.isArray(t),24),O(!st(t),25),f=xr(t));var i=e.padding||[0,0,0,0],r=void 0===e.constrainResolution||e.constrainResolution,n=void 0!==e.nearest&&e.nearest,s=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.constrainResolution(this.a,e.maxZoom-this.l,0):0,a=f.ga(),p=this.Qa();t=Math.cos(-p);for(var p=Math.sin(-p),h=1/0,l=1/0,u=-1/0,c=-1/0,f=f.qa(),y=0,g=a.length;ythis.C&&(this.a=!0)),this.j=i,(i=(t=t.map).Z()).g.rotation!==xi&&(r=t.a.getBoundingClientRect(),(e=_r(this.o))[0]-=r.left,e[1]-=r.top,this.g=t.Wa(e),this.a&&(r=i.Qa(),t.render(),Dr(i,r+o,this.g)))}function Rn(t){var e,o,i;return!(this.o.length<2)||(Ir(t=t.map.Z(),1,-1),this.a&&(i=t.Qa(),e=this.g,o=this.u,i=t.constrainRotation(i,0),Dr(t,i,e,o)),!1)}function In(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.j=void 0,this.a=!1,this.l=0,this.D||Ir(t.Z(),1,1),!0)}function Nn(t){Jr.call(this,{handleDownEvent:Dn,handleDragEvent:Fn,handleUpEvent:kn}),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 Fn(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,s=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),Ur(t,i,e,o)),!1}return!0}function Dn(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.a=void 0,this.j=1,this.D||Ir(t.Z(),1,1),!0)}function On(t){t=t||{};var e=new Ne,o=new Nr(-.005,.05,100);return void 0!==t.altShiftDragRotate&&!t.altShiftDragRotate||e.push(new rn),void 0!==t.doubleClickZoom&&!t.doubleClickZoom||e.push(new Gr({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 Cn),void 0!==t.pinchZoom&&!t.pinchZoom||e.push(new Nn({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.keyboard&&!t.keyboard||(e.push(new xn),e.push(new Mn({delta:t.zoomDelta,duration:t.zoomDuration}))),void 0!==t.mouseWheelZoom&&!t.mouseWheelZoom||e.push(new An({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.shiftDragZoom&&!t.shiftDragZoom||e.push(new wn({duration:t.zoomDuration})),e}function Un(t){je.call(this);var e=ht({},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 Gn(t){return t.a.opacity=x(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 Bn(t){var e=t||{};delete(t=ht({},e)).layers,e=e.layers,Un.call(this,t),this.f=[],this.c={},de(this,Le(Xn),this.Hl,this),e?Array.isArray(e)?e=new Ne(e.slice(),{unique:!0}):O(e instanceof Ne,43):e=new Ne(void 0,{unique:!0}),this.xi(e)}e(Cn,Jr),Cn.prototype.Xc=Oi,e(Nn,Jr),Nn.prototype.Xc=Oi,e(Un,je),(Mu=Un.prototype).G=function(){return this.get("extent")},Mu.fc=function(){return this.get("maxResolution")},Mu.gc=function(){return this.get("minResolution")},Mu.hc=function(){return this.get("opacity")},Mu.Mb=function(){return this.get("visible")},Mu.Ba=function(){return this.get("zIndex")},Mu.vc=function(t){this.set("extent",t)},Mu.Ac=function(t){this.set("maxResolution",t)},Mu.Bc=function(t){this.set("minResolution",t)},Mu.wc=function(t){this.set("opacity",t)},Mu.xc=function(t){this.set("visible",t)},Mu.Vb=function(t){this.set("zIndex",t)},e(Bn,Un),(Mu=Bn.prototype).Fd=function(){},Mu.Fe=function(){this.Mb()&&this.s()},Mu.Hl=function(){this.f.forEach(me),this.f.length=0;var t=this.qd();for(e in this.f.push(de(t,"add",this.Gl,this),de(t,"remove",this.Il,this)),this.c)this.c[e].forEach(me);lt(this.c);for(var e=0,o=(t=t.a).length;e=t.minResolution&&eu[2])&&(c=[y+h*Math.ceil((u[0]-y)/h),t[1]])),h=(u=r.layerStatesArray).length-1;0<=h;--h){var f=u[h],y=f.layer;if(Wn(f,l)&&o.call(i,y)&&(f=as(this,y),p=y.ha()?f.Ea(y.ha().u?c:t,r,e,a,s):p))return p}},Mu.Ei=function(t,e,o,i,r){return void 0!==this.Ea(t,e,o,Di,this,i,r)},Mu.Fl=function(){this.o.render()},Mu.Jg=w,Mu.Rp=function(t,e){for(var o in this.c)e&&o in e.layerStates||(o=this.c[t=o],delete this.c[t],me(this.v[t]),delete this.v[t],Se(o))},e(ls,Me);var us=[0,0,0,1],cs=[],fs=[0,0,0,1];function ys(t,e,o,i){e&&(t.translate(o,i),t.rotate(e),t.translate(-o,-i))}function gs(){}function ds(t,e,o,i,r){this.i=t,this.u=e,this.c=o,this.S=i,this.Yb=r,this.M=this.b=this.a=this.Ua=this.R=this.I=null,this.na=this.T=this.l=this.B=this.C=this.D=0,this.fa=!1,this.f=this.fb=0,this.pa=!1,this.oa=0,this.Ia="",this.va=this.Jb=0,this.Sa=!1,this.j=this.$a=0,this.ra=this.o=this.g=null,this.v=[],this.xb=Yn()}function vs(t,e,o){if(t.M){e=Gi(e,0,o,2,t.S,t.v),o=t.i;var i=t.xb,r=o.globalAlpha;1!=t.l&&(o.globalAlpha=r*t.l);var n=t.fb;t.fa&&(n+=t.Yb);for(var s=0,a=e.length;s=a;){var p=this.i[s];o[G(this.f[s]).toString()]&&(i!==n&&Us(t,e,i,n),n=p),s--,i=p}i!==n&&Us(t,e,i,n),i=n=a}},Mu.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.u.length-1;0<=p;--p){var h=this.j[p];for(t.uniform4fv(this.v.B,h[0]),Ys(this,t,h[1],h[2]),n=this.u[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Us(t,e,h,a),a=i(l)))return a;s--,a=h}}},Mu.Ma=function(t,e){var o;e=e?(o=e.i,this.c.lineDash=o||Bs,o=e.g,this.c.lineDashOffset=o||0,o=!((o=e.a)instanceof CanvasGradient||o instanceof CanvasPattern)&&Be(o).map(function(t,e){return 3!=e?t/255:t})||Xs,void 0!==(e=e.c)?e:1):(o=[0,0,0,0],0),t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Gs,this.c.strokeColor&&U(this.c.strokeColor,o)&&this.c.fillColor&&U(this.c.fillColor,t)&&this.c.lineWidth===e||(this.c.s=!0,this.c.fillColor=t,this.c.strokeColor=o,this.c.lineWidth=e,this.j.push([t,o,e]))},e(Hs,js);var qs=new Hs;function Js(){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=i;if(g==1.0){offsetMatrix=i*j;}vec4 offsets=offsetMatrix*vec4(e,0.0,0.0);gl_Position=h*vec4(c,0.0,1.0)+offsets;a=d;b=f;}"}e(Js,Cs);var _s=new Js;function $s(t,e){this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"k"),this.i=t.getUniformLocation(e,"h"),this.v=t.getAttribLocation(e,"e"),this.u=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"c"),this.D=t.getAttribLocation(e,"g"),this.C=t.getAttribLocation(e,"d")}function Qs(t,e){this.j=t,this.b=e,this.a={},this.c={},this.i={},this.l=this.v=this.f=this.o=null,(this.g=d(Bo,"OES_element_index_uint"))&&e.getExtension("OES_element_index_uint"),de(this.j,"webglcontextlost",this.Xo,this),de(this.j,"webglcontextrestored",this.Yo,this)}function ta(t,e,o){var i,r,n=t.b,s=o.b,a=String(G(o));a in t.a?n.bindBuffer(e,t.a[a].buffer):(i=n.createBuffer(),n.bindBuffer(e,i),34962==e?r=new Float32Array(s):34963==e&&(r=new(t.g?Uint32Array:Uint16Array)(s)),n.bufferData(e,r,o.a),t.a[a]={lc:o,buffer:i})}function ea(t,e){var o=t.b;e=String(G(e));var i=t.a[e];o.isContextLost()||o.deleteBuffer(i.buffer),delete t.a[e]}function oa(t){var e,o,i,r;return t.f||(o=(e=t.b).createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,o),i=sa(e,1,1),r=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,r),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,1,1),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,i,0),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,r),e.bindTexture(e.TEXTURE_2D,null),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),t.f=o,t.v=i,t.l=r),t.f}function ia(t,e){var o=String(G(e));if(o in t.c)return t.c[o];var i=t.b,r=i.createShader(e.U());return i.shaderSource(r,e.b),i.compileShader(r),t.c[o]=r}function ra(t,e,o){var i=G(e)+"/"+G(o);if(i in t.i)return t.i[i];var r=t.b,n=r.createProgram();return r.attachShader(n,ia(t,e)),r.attachShader(n,ia(t,o)),r.linkProgram(n),t.i[i]=n}function na(t,e,o){var i=t.createTexture();return t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),void 0!==e&&t.texParameteri(3553,10242,e),void 0!==o&&t.texParameteri(3553,10243,o),i}function sa(t,e,o){var i=na(t,void 0,void 0);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,o,0,t.RGBA,t.UNSIGNED_BYTE,null),i}function aa(t,e){var o=na(t,33071,33071);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),o}function pa(t,e){Os.call(this,0,e),this.C=this.D=void 0,this.S=[],this.v=[],this.oa=void 0,this.j=[],this.c=[],this.I=this.ra=void 0,this.B=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.va=[],this.u=[],this.pa=void 0}function ha(t,e,o,i){for(var r=t.D,n=t.C,s=t.oa,a=t.ra,p=t.I,h=t.R,l=t.Ua,u=t.T,c=t.na?1:0,f=-t.fa,y=t.fb,g=t.pa,d=Math.cos(f),f=Math.sin(f),v=t.b.length,b=t.a.length,m=0;m=a;){var h=this.i[n],l=this.f[n];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Us(t,e,h,p),p=i(l)))return p;p=h,n--}}},Mu.Ub=function(t){var e=t.Hc(),o=t.Y(1),i=t.ye(),r=t.qg(1),n=t.f,s=t.Oc(),a=t.l,p=t.g,h=t.ic();t=t.a,this.j.length?G(this.j[this.j.length-1])!=G(o)&&(this.S.push(this.b.length),this.j.push(o)):this.j.push(o),this.c.length?G(this.c[this.c.length-1])!=G(r)&&(this.v.push(this.b.length),this.c.push(r)):this.c.push(r),this.D=e[0],this.C=e[1],this.oa=h[1],this.ra=i[1],this.I=i[0],this.R=n,this.Ua=s[0],this.T=s[1],this.fa=p,this.na=a,this.fb=t,this.pa=h[0]},e(ca,js);var fa=new ca;function ya(){this.b="varying float a;varying vec2 b;varying float c;attribute vec2 d;attribute vec2 e;attribute vec2 f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;bool nearlyEquals(in float value,in float ref){float epsilon=0.000000000001;return value>=ref-epsilon&&value<=ref+epsilon;}void alongNormal(out vec2 offset,in vec2 nextP,in float turnDir,in float direction){vec2 dirVect=nextP-e;vec2 normal=normalize(vec2(-turnDir*dirVect.y,turnDir*dirVect.x));offset=k/2.0*normal*direction;}void miterUp(out vec2 offset,out float round,in bool isRound,in float direction){float halfWidth=k/2.0;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=f-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;round=0.0;if(isRound){round=1.0;}else if(miterLength>l+k){offset=halfWidth*tmpNormal*direction;}} bool miterDown(out vec2 offset,in vec4 projPos,in mat4 offsetMatrix,in float direction){bool degenerate=false;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=d-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));vec2 longOffset,shortOffset,longVertex;vec4 shortProjVertex;float halfWidth=k/2.0;if(length(f-e)>length(d-e)){longOffset=tmpNormal*direction*halfWidth;shortOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=f;shortProjVertex=h*vec4(d,0.0,1.0);}else{shortOffset=tmpNormal*direction*halfWidth;longOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=d;shortProjVertex=h*vec4(f,0.0,1.0);}vec4 p1=h*vec4(longVertex,0.0,1.0)+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p2=projPos+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p3=shortProjVertex+offsetMatrix*vec4(-shortOffset,0.0,0.0);vec4 p4=shortProjVertex+offsetMatrix*vec4(shortOffset,0.0,0.0);float denom=(p4.y-p3.y)*(p2.x-p1.x)-(p4.x-p3.x)*(p2.y-p1.y);float firstU=((p4.x-p3.x)*(p1.y-p3.y)-(p4.y-p3.y)*(p1.x-p3.x))/denom;float secondU=((p2.x-p1.x)*(p1.y-p3.y)-(p2.y-p1.y)*(p1.x-p3.x))/denom;float epsilon=0.000000000001;if(firstU>epsilon&&firstU<1.0-epsilon&&secondU>epsilon&&secondU<1.0-epsilon){shortProjVertex.x=p1.x+firstU*(p2.x-p1.x);shortProjVertex.y=p1.y+firstU*(p2.y-p1.y);offset=shortProjVertex.xy;degenerate=true;}else{float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;}return degenerate;}void squareCap(out vec2 offset,out float round,in bool isRound,in vec2 nextP,in float turnDir,in float direction){round=0.0;vec2 dirVect=e-nextP;vec2 firstNormal=normalize(dirVect);vec2 secondNormal=vec2(turnDir*firstNormal.y*direction,-turnDir*firstNormal.x*direction);vec2 hypotenuse=normalize(firstNormal-secondNormal);vec2 normal=vec2(turnDir*hypotenuse.y*direction,-turnDir*hypotenuse.x*direction);float length=sqrt(c*c*2.0);offset=normal*length;if(isRound){round=1.0;}} void main(void){bool degenerate=false;float direction=float(sign(g));mat4 offsetMatrix=i*j;vec2 offset;vec4 projPos=h*vec4(e,0.0,1.0);bool round=nearlyEquals(mod(g,2.0),0.0);a=0.0;c=k/2.0;b=projPos.xy;if(nearlyEquals(mod(g,3.0),0.0)||nearlyEquals(mod(g,17.0),0.0)){alongNormal(offset,f,1.0,direction);}else if(nearlyEquals(mod(g,5.0),0.0)||nearlyEquals(mod(g,13.0),0.0)){alongNormal(offset,d,-1.0,direction);}else if(nearlyEquals(mod(g,23.0),0.0)){miterUp(offset,a,round,direction);}else if(nearlyEquals(mod(g,19.0),0.0)){degenerate=miterDown(offset,projPos,offsetMatrix,direction);}else if(nearlyEquals(mod(g,7.0),0.0)){squareCap(offset,a,round,f,1.0,direction);}else if(nearlyEquals(mod(g,11.0),0.0)){squareCap(offset,a,round,d,-1.0,direction);}if(!degenerate){vec4 offsets=offsetMatrix*vec4(offset,0.0,0.0);gl_Position=projPos+offsets;}else{gl_Position=vec4(offset,0.0,1.0);}}"}e(ya,Cs);var ga=new ya;function da(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.R=t.getUniformLocation(e,"l"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"p"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"o"),this.g=t.getAttribLocation(e,"g"),this.o=t.getAttribLocation(e,"d"),this.l=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e")}function va(t,e){Os.call(this,0,e),this.v=null,this.u=[],this.j=[],this.c={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0,s:!1}}function ba(t,e,o,i){for(var r=t.a.length,n=t.b.length,s="bevel"===t.c.lineJoin?0:"miter"===t.c.lineJoin?1:2,a="butt"===t.c.lineCap?0:"square"===t.c.lineCap?1:2,p=ua(e,o,i),h=n,l=1,u=0;uo&&(this.i.push(o),this.f.push(e),this.c.s&&(this.j.push(o),this.c.s=!1))},Mu.Db=function(){this.l=new Zs(this.a),this.o=new Zs(this.b),this.i.push(this.b.length),!this.j.length&&0=l;){var u=this.i[h];o[G(this.f[h]).toString()]&&(s!==p&&(Us(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(Us(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},Mu.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.j.length-1;0<=p;--p)for(Ma(this,t,(h=this.u[p])[0],h[1],h[2]),n=this.j[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Us(t,e,h,a),a=i(l)))return a;s--,a=h}},Mu.Ma=function(t,e){t=e.f,this.c.lineCap=void 0!==t?t:"round",t=e.i,this.c.lineDash=t||Bs,t=e.g,this.c.lineDashOffset=t||0,t=e.j,this.c.lineJoin=void 0!==t?t:"round",t=!((t=e.a)instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Xs;var o=void 0!==(o=e.c)?o:1;e=void 0!==(e=e.o)?e:10,this.c.strokeColor&&U(this.c.strokeColor,t)&&this.c.lineWidth===o&&this.c.miterLimit===e||(this.c.s=!0,this.c.strokeColor=t,this.c.lineWidth=o,this.c.miterLimit=e,this.u.push([t,o,e]))};var Pa=3,Aa=5,Ea=7,Ta=11,ja=13,Ca=17,La=19,Ra=23;function Ia(){this.b="precision mediump float;uniform vec4 e;uniform float f;void main(void){gl_FragColor=e;float alpha=e.a*f;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(Ia,js);var Na=new Ia;function Fa(){this.b="attribute vec2 a;uniform mat4 b;uniform mat4 c;uniform mat4 d;void main(void){gl_Position=b*vec4(a,0.0,1.0);}"}e(Fa,Cs);var ka=new Fa;function Da(t,e){this.B=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"c"),this.a=t.getUniformLocation(e,"f"),this.i=t.getUniformLocation(e,"b"),this.b=t.getAttribLocation(e,"a")}function Oa(t){this.a=void 0!==(t=t||{}).color?t.color:null,this.f=t.lineCap,this.i=void 0!==t.lineDash?t.lineDash:null,this.g=t.lineDashOffset,this.j=t.lineJoin,this.o=t.miterLimit,this.c=t.width,this.b=void 0}function Ua(t){this.b=this.a=this.i=void 0,this.f=void 0===t||t,this.c=0}function Ga(t){var e,o,i=t.b;i&&(e=i.next,o=i.ub,e&&(e.ub=o),o&&(o.next=e),t.b=e||o,t.i===t.a?(t.b=void 0,t.i=void 0,t.a=void 0):t.i===i?t.i=t.b:t.a===i&&(t.a=o?t.b.ub:t.b),t.c--)}function Ba(t){if(t.b=t.i,t.b)return t.b.data}function Xa(t){if(t.b&&t.b.next)return t.b=t.b.next,t.b.data}function Va(t){if(t.b&&t.b.next)return t.b.next.data}function Wa(t){if(t.b&&t.b.ub)return t.b=t.b.ub,t.b.data}function Za(t){if(t.b&&t.b.ub)return t.b.ub.data}function Ka(t){if(t.b)return t.b.data}(Mu=Oa.prototype).clone=function(){var t=this.a;return new Oa({color:t&&t.slice?t.slice():t||void 0,lineCap:this.f,lineDash:this.i?this.i.slice():void 0,lineDashOffset:this.g,lineJoin:this.j,miterLimit:this.o,width:this.c})},Mu.No=function(){return this.a},Mu.Vk=function(){return this.f},Mu.Oo=function(){return this.i},Mu.Wk=function(){return this.g},Mu.Xk=function(){return this.j},Mu.bl=function(){return this.o},Mu.Po=function(){return this.c},Mu.Qo=function(t){this.a=t,this.b=void 0},Mu.aq=function(t){this.f=t,this.b=void 0},Mu.setLineDash=function(t){this.i=t,this.b=void 0},Mu.bq=function(t){this.g=t,this.b=void 0},Mu.cq=function(t){this.j=t,this.b=void 0},Mu.gq=function(t){this.o=t,this.b=void 0},Mu.jq=function(t){this.c=t,this.b=void 0},Ua.prototype.concat=function(t){var e;t.b&&(this.b?(e=this.b.next,this.b.next=t.i,t.i.ub=this.b,e.ub=t.a,t.a.next=e,this.c+=t.c):(this.b=t.b,this.i=t.i,this.a=t.a,this.c=t.c),t.b=void 0,t.i=void 0,t.a=void 0,t.c=0)};var za,Ya={$d:function(){}};function Ha(t,e,o){var i=t[e];t[e]=t[o],t[o]=i}function qa(t,e){return t=t.ca&&e.ia>=t.da}function sp(t){return{children:t,height:1,ib:!0,ca:1/0,da:1/0,$:-1/0,ia:-1/0}}function ap(t,e,o,i,r){for(var n,s=[e,o];s.length;)(o=s.pop())-(e=s.pop())<=i||(n=e+Math.ceil((o-e)/i/2)*i,za(t,n,e,o,r),s.push(e,n,n,o))}function pp(t){this.a=Ya.$d(t),this.b={}}function hp(t,e,o){var i=t.b[G(o)];Z([i.ca,i.da,i.$,i.ia],e)||(t.remove(o),t.Ca(e,o))}function lp(t){return t.a.all().map(function(t){return t.value})}function up(t,e){return t.a.search({ca:e[0],da:e[1],$:e[2],ia:e[3]}).map(function(t){return t.value})}function cp(t,e,o,i){return fp(up(t,e),o,i)}function fp(t,e,o){for(var i,r=0,n=t.length;rn&&(n=e[c],u=e[c+1]),l=y}}else for(l=s=xp(t,e[c=e.length-o],e[c+1],a++),n=e[c],u=e[c+1],c-=o,f=0;f<=c;c-=o)y=xp(t,e[c],e[c+1],a++),h.push(Sp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y;return h.push(Sp(y,s,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),r.load(p,h),[n,u]}function vp(t,e,o){var i=Ba(t),r=i,n=Xa(t),s=!1;do{var a=o?Vs(n.W.x,n.W.y,r.W.x,r.W.y,r.aa.x,r.aa.y):Vs(r.aa.x,r.aa.y,r.W.x,r.W.y,n.W.x,n.W.y)}while(void 0===a?(Mp(r,n,t,e),s=!0,n===i&&(i=Va(t)),n=r,Wa(t)):r.W.Fb!==a&&(r.W.Fb=a,s=!0),r=n,n=Xa(t),r!==i);return s}function bp(t,e,o,i,r){var n=t.b.length,s=Ba(e),a=Za(e),p=s,h=Xa(e),l=Va(e),u=!1;do{var c,f=p.aa,y=p.W,g=h.W}while(!1===y.Fb&&(c=r?Tp(l.W,g,y,f,a.aa):Tp(a.aa,f,y,g,l.W),!i&&Ap({aa:f,W:g},o).length||!c||Pp(f,y,g,o,!0).length||!i&&!1!==f.Fb&&!1!==g.Fb&&yr([a.aa.x,a.aa.y,f.x,f.y,y.x,y.y,g.x,g.y,l.W.x,l.W.y],0,10,2)!==!r||(t.b[n++]=f.hb,t.b[n++]=y.hb,t.b[n++]=g.hb,Mp(p,h,e,o),h===s&&(s=l),u=!0)),a=Za(e),p=Ka(e),h=Xa(e),l=Va(e),p!==s&&3(o.y-i.y)*(e.x-i.x);return 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 jp(){}function Cp(t,e,o){this.f=e,this.g=t,this.c=o,this.a={}}function Lp(t,e){var o,i=[];for(o in t.a){var r,n=t.a[o];for(r in n)i.push(n[r].Eb(e))}return function(){for(var t,e=i.length,o=0;othis.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=sp(o.children.splice(i,o.children.length-i))).height=o.height,i.ib=o.ib,_a(o,this.wb),_a(i,this.wb),e?t[e-1].children.push(i):this.hh(o,i)},hh:function(t,e){this.data=sp([t,e]),this.data.height=t.height+1,this.data.ib=!1,_a(this.data,this.wb)},ak:function(t,e,o){for(var i=s=1/0,r=e;r<=o-e;r++){var n,s,a=$a(t,0,r,this.wb),p=$a(t,r,o,this.wb),h=Math.max(0,Math.min(a.$,p.$)-Math.max(a.ca,p.ca))*Math.max(0,Math.min(a.ia,p.ia)-Math.max(a.da,p.da)),a=op(a)+op(p);hr&&(this.i.push(r),this.f.push(e),this.j.s&&(this.c.push(r),this.j.s=!1)),this.g.b.length>n&&Sa(this.g,e,n)},Mu.rc=function(t,e){var o=t.Bb(),i=t.qa();if(0=l;){var u=this.i[h];o[G(this.f[h]).toString()]&&(s!==p&&(Us(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(Us(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},Mu.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.c.length-1;0<=p;--p){var h=this.u[p];for(t.uniform4fv(this.v.B,h),n=this.c[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Us(t,e,h,a),a=i(l)))return a;s--,a=h}}},Mu.Ma=function(t,e){t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Gs,this.j.fillColor&&U(t,this.j.fillColor)||(this.j.fillColor=t,this.j.s=!0,this.u.push(t)),e?this.g.Ma(null,e):this.g.Ma(null,new Oa({color:[0,0,0,0],lineWidth:0}))},jp.prototype.La=function(){},e(Cp,Es),Cp.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 Np[e](this.g,this.f),t[e]=o),o},Cp.prototype.i=function(){return ct(this.a)},Cp.prototype.La=function(t,e,o,i,r,n,s,a){var p=Object.keys(this.a).map(Number);p.sort(D);for(var h=0,l=p.length;h=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)}oh.prototype.C=function(){return this.get(sh)},oh.prototype.T=function(){nh(this)},oh.prototype.I=function(t){this.set(sh,t)};var sh="units";function ah(t){t=t||{},this.c=void 0,this.j=ph,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");o.setAttribute("type","button"),o.className=e+"-thumb ol-unselectable";var i=document.createElement("div");i.className=e+" ol-unselectable ol-control",i.appendChild(o),this.o=new oi(i),de(this.o,"pointerdown",this.yl,this),de(this.o,"pointermove",this.wl,this),de(this.o,"pointerup",this.xl,this),de(i,"click",this.vl,this),de(o,"click",Pe),Je.call(this,{element:i,render:t.render||hh})}e(ah,Je),ah.prototype.ka=function(){Se(this.o),Je.prototype.ka.call(this)};var ph=0;function hh(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?p=r+1:(h=r,l=!a);a=(r=l?p:~p)<0?(o=(o-s[-r-2])/(s[-r-1]-s[-r-2]),s=f(t[e+=(-r-2)*i],t[e+i],o),f(t[e+1],t[e+i+1],o)):(s=t[e+r*i],t[e+r*i+1])}return n?(n[0]=s,n[1]=a,n):[s,a]}function al(t,e,o,i,r,n){if(o==e)return null;if(r>1)+1)*i-1]?o=n:e=n+1;if(r==(o=t[e*i-1]))return t.slice((e-1)*i,(e-1)*i+i);var s;for(n=(r-o)/(t[(e+1)*i-1]-o),o=[],s=0;s>>0):4294967296*(e>>>0)+(t>>>0)}var o=function(t,e,o,i,r){var n=8*r-i-1,s=(1<>1,p=-7,h=o?-1:1,l=t[e+(r=o?r-1:0)];for(r+=h,o=l&(1<<-p)-1,l>>=-p,p+=n;0>=-p,p+=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=o(this.lc,this.ea,!0,23,4);return this.ea+=4,t},up:function(){var t=o(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;return o<128?i:(i|=(127&(o=e[this.ea++]))<<7,o<128?i:(i|=(127&(o=e[this.ea++]))<<14,o<128?i:(i|=(127&(o=e[this.ea++]))<<21,o<128?i:function(t,e,o){var i=o.lc,r=i[o.ea++],n=(112&r)>>4;if(r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<3,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<10,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<17,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<24,r<128)return s(t,n,e);if((r=i[o.ea++])<128)return s(t,n|(1&r)<<31,e);throw Error("Expected varint not more than 10 bytes")}(i|(15&e[this.ea])<<28,t,this))))},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),p=56320|1023&p),o+=String.fromCharCode(p),i+=h}return this.ea=t,o},mq:function(t){if((t&=7)===e.c)for(;127>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 s(t,e,o){3===t&&((t=new a(o,o.Ka()+o.ea)).length&&(e[t.name]=t))}p.prototype={clone:function(){return new p(this.x,this.y)},add:function(t){return this.clone().Yj(t)},rotate:function(t){return this.clone().hk(t)},round:function(){return this.clone().ik()},angle:function(){return Math.atan2(this.y,this.x)},Yj:function(t){return this.x+=t.x,this.y+=t.y,this},hk:function(t){var e=Math.cos(t),o=(t=Math.sin(t))*this.x+e*this.y;return this.x=e*this.x-t*this.y,this.y=o,this},ik:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},p.Kq=function(t){return!(t instanceof p)&&Array.isArray(t)?new p(t[0],t[1]):t},o.b=["Unknown","Point","LineString","Polygon"],o.prototype.Oh=function(){var t=this.Cc;t.ea=this.Ef;for(var e,o=t.Ka()+t.ea,i=1,r=0,n=0,s=0,a=[];t.ea>=3),r--,1===i||2===i)n+=t.ce(),s+=t.ce(),1===i&&(e&&a.push(e),e=[]),e.push(new p(n,s));else{if(7!==i)throw Error("unknown command "+i);e&&e.push(e[0].clone())}return e&&a.push(e),a},o.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,s=1/0,a=-1/0,p=1/0,h=-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 o(this.Cc,t,this.extent,this.ne,this.pe)};var h=a;t.default={Bf:e,Wj:o,Xj:h},t.Bf=e,t.Wj=o,t.Xj=h}(Ya.xf=Ya.xf||{}),(Mu=Dy.prototype).get=function(t){return this.c[t]},Mu.Bb=function(){return this.f},Mu.G=function(){return this.a||(this.a="Point"===this.i?k(this.b):W(this.b,0,this.b.length,2)),this.a},Mu.Wn=function(){return this.g},Mu.ec=function(){return this.b},Mu.ga=Dy.prototype.ec,Mu.V=function(){return this},Mu.Xn=function(){return this.c},Mu.Vd=Dy.prototype.V,Mu.qa=function(){return 2},Mu.Lc=w,Mu.U=function(){return this.i},e(Oy,tl),(Mu=Oy.prototype).U=function(){return"arraybuffer"},Mu.Oa=function(t,e){var o=this.c;t=new Ya.Dd(t),t=new Ya.xf.Bf(t);var i,r=[],n=this.b;for(i in t.layers)if(!o||-1!=o.indexOf(i))for(var s,a,p,h,l,u,c,f,y,g=t.layers[i],d=0,v=g.length;d>=5;e+=n+=String.fromCharCode(r+63)}return e}function fg(t,e){e=e||1e5;for(var o=[],i=0,r=0,n=0,s=t.length;n>1):r>>1;for(t=0,i=o.length;t=e[0]||t[1]<=e[1]&&t[3]>=e[1]||H(t,this.sb,this))},Mu.ob=function(t){var e,o=this.a,i=t.slice();for(i[o]=i[0]+(this.A[o]-this.A[0]),e=1;eg[2])&&(c=e*Math.ceil((g[0]-c)/e),f=[f[0]+c,f[1],f[2]+c,f[3]]),c=this.S[0],g=this.S[1],e=-1,i=Math.pow(this.Jb*d,2),r=[],n=[],d=0,o=Kd.length;dx.width?x.width-E:I,D=P+T>x.height?x.height-T:P;e.drawImage(x,E,T,k,D,F,j,k*o,D*o),1!=A&&(e.globalAlpha=N),1==L&&!C||e.setTransform.apply(e,d)}++c;break;case 5:for(y=F[1],w=F[2],M=F[3],P=F[4]*o,A=F[5]*o,C=F[6],L=F[7]*o,x=F[8],S=F[9],(j=F[10])&&(C+=r);ythis.c&&(this.c=this.i.lineWidth,this.f=null)},e(Pv,yv),(Mu=Pv.prototype).Zb=function(t,e){var o,i=this.i,r=i.strokeStyle;void 0===i.fillStyle&&void 0===r||(Ev(this,t),dv(this,e),this.b.push([9,Xe(us)]),void 0!==i.strokeStyle&&this.b.push([10,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset,!0,1]),o=t.ga(),r=this.coordinates.length,gv(this,o,0,o.length,t.qa(),!1,!1),this.a.push(t=[1],r=[2,r]),this.b.push(t,r),this.b.push(t=[7]),void 0!==i.fillStyle&&this.a.push(t),void 0!==i.strokeStyle&&(this.a.push(i=[12]),this.b.push(i)),mv(this,e))},Mu.rc=function(t,e){var o=this.i;Ev(this,t),dv(this,e),this.b.push([9,Xe(us)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]);o=t.Bb();Av(this,t.ec(),0,o,t.qa()),mv(this,e)},Mu.pc=function(t,e){var o=this.i,i=o.strokeStyle;if(void 0!==o.fillStyle||void 0!==i){Ev(this,t),dv(this,e),this.b.push([9,Xe(us)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]),o=t.c,i=dl(t),t=t.qa();for(var r=0,n=0,s=o.length;nthis.c&&(this.c=o.lineWidth,this.f=null)):(o.strokeStyle=void 0,o.lineCap=void 0,o.lineDash=null,o.lineDashOffset=void 0,o.lineJoin=void 0,o.lineWidth=void 0,o.miterLimit=void 0)},e(Tv,yv),Tv.prototype.yc=function(t,e,o,i,r,n){var s,a;""!==this.Ia&&this.g&&(this.i||this.f)&&(this.i&&(r=this.i,(s=this.S)&&s.fillStyle==r.fillStyle||(a=[9,r.fillStyle],this.a.push(a),this.b.push(a),s?s.fillStyle=r.fillStyle:this.S={fillStyle:r.fillStyle})),this.f&&(r=this.f,(s=this.D)&&s.lineCap==r.lineCap&&s.lineDash==r.lineDash&&s.lineDashOffset==r.lineDashOffset&&s.lineJoin==r.lineJoin&&s.lineWidth==r.lineWidth&&s.miterLimit==r.miterLimit&&s.strokeStyle==r.strokeStyle||(a=[10,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset,!1,1],this.a.push(a),this.b.push(a),s?(s.lineCap=r.lineCap,s.lineDash=r.lineDash,s.lineDashOffset=r.lineDashOffset,s.lineJoin=r.lineJoin,s.lineWidth=r.lineWidth,s.miterLimit=r.miterLimit,s.strokeStyle=r.strokeStyle):this.D={lineCap:r.lineCap,lineDash:r.lineDash,lineDashOffset:r.lineDashOffset,lineJoin:r.lineJoin,lineWidth:r.lineWidth,miterLimit:r.miterLimit,strokeStyle:r.strokeStyle})),r=this.g,(s=this.C)&&s.font==r.font&&s.textAlign==r.textAlign&&s.textBaseline==r.textBaseline||(a=[11,r.font,r.textAlign,r.textBaseline],this.a.push(a),this.b.push(a),s?(s.font=r.font,s.textAlign=r.textAlign,s.textBaseline=r.textBaseline):this.C={font:r.font,textAlign:r.textAlign,textBaseline:r.textBaseline}),dv(this,n),t=[5,r=this.coordinates.length,t=gv(this,t,e,o,i,!1,!1),this.Ia,this.j,this.o,this.v,this.u,!!this.i,!!this.f,this.l],this.a.push(t),this.b.push(t),mv(this,n))},Tv.prototype.Cb=function(t){var e,o,i,r,n,s,a,p,h;t?((o=t.Fa())?(o=ze((o=o.b)||us),this.i?this.i.fillStyle=o:this.i={fillStyle:o}):this.i=null,(s=t.Ga())?(o=s.a,i=s.f,r=s.i,a=s.g,p=s.j,n=s.c,s=s.o,i=void 0!==i?i:"round",r=r?r.slice():cs,a=void 0!==a?a:0,p=void 0!==p?p:"round",n=void 0!==n?n:1,s=void 0!==s?s:10,o=ze(o||fs),this.f?((h=this.f).lineCap=i,h.lineDash=r,h.lineDashOffset=a,h.lineJoin=p,h.lineWidth=n,h.miterLimit=s,h.strokeStyle=o):this.f={lineCap:i,lineDash:r,lineDashOffset:a,lineJoin:p,lineWidth:n,miterLimit:s,strokeStyle:o}):this.f=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,h=t.j,t=void 0!==e?e:"10px sans-serif",p=void 0!==p?p:"center",h=void 0!==h?h:"middle",this.g?((e=this.g).font=t,e.textAlign=p,e.textBaseline=h):this.g={font:t,textAlign:p,textBaseline:h},this.Ia=void 0!==a?a:"",this.j=void 0!==o?o:0,this.o=void 0!==i?i:0,this.l=void 0!==r&&r,this.v=void 0!==n?n:0,this.u=void 0!==s?s:1):this.Ia=""},e(jv,Es);var Cv={0:[[!0]]};function Lv(t,e,o){var i,r=Math.floor(t.length/2);if(r<=e)for(i=r;it.$&&(t.$=i.$),i.dat.ia&&(t.ia=i.ia)):t[e][o]=i:(t[e]={},t[e][o]=i)}function Xv(t,e,o,i,r,n,s,a,p,h){var l=G(e).toString();l in t.wantedTiles||(t.wantedTiles[l]={});var u=t.wantedTiles[l];t=t.tileQueue;for(var c,f=o.minZoom,y=s;f<=y;--y)for(var g,d=ee(o,n,y,d),v=o.Da(y),b=d.ca;b<=d.$;++b)for(c=d.da;c<=d.ia;++c)s-y<=a?(0==(g=e.Nc(y,b,c,i,r)).getState()&&(u[g.bb()]=!0,g.bb()in t.a||t.f([g,l,oe(o,g.ta),v])),p&&p.call(h,g)):e.Ug(y,b,c,r)}function Vv(t){Fv.call(this,t),this.fa=Yn()}function Wv(t,e,o){var i=e.pixelRatio,r=e.size[0]*i,n=e.size[1]*i,s=e.viewState.rotation,a=ot(o),p=it(o),h=_(o);o=J(o),$n(e.coordinateToPixelTransform,a),$n(e.coordinateToPixelTransform,p),$n(e.coordinateToPixelTransform,h),$n(e.coordinateToPixelTransform,o),t.save(),ys(t,-s,r/2,n/2),t.beginPath(),t.moveTo(a[0]*i,a[1]*i),t.lineTo(p[0]*i,p[1]*i),t.lineTo(h[0]*i,h[1]*i),t.lineTo(o[0]*i,o[1]*i),t.clip(),ys(t,s,r/2,n/2)}function Zv(t,e,o,i,r){var n,s,a,p=t.a;Ee(p,e)&&(n=i.size[0]*i.pixelRatio,s=i.size[1]*i.pixelRatio,ys(o,-(a=i.viewState.rotation),n/2,s/2),t=r||Kv(t,i,0),p.b(new ls(e,new ds(o,i.pixelRatio,i.extent,t,i.viewState.rotation),i,o,null)),ys(o,a,n/2,s/2))}function Kv(t,e,o){var i=e.viewState,r=e.pixelRatio,n=r/i.resolution;return os(t.fa,r*e.size[0]/2,r*e.size[1]/2,n,-n,-i.rotation,-i.center[0]+o,-i.center[1])}function zv(t,e){return G(t)-G(e)}function Yv(t,e){return(t=.5*t/e)*t}function Hv(t,e,o,i,r,n){var s,a,p=!1;return(s=o.Y())&&(2==(a=s.Ye())||3==a?s.Bj(r,n):(0==a&&s.load(),s.Nh(r,n),p=!0)),(r=(0,o.Za)(e))&&(i=r.Vd(i),(0,qv[i.U()])(t,i,o,e)),p}e(Fv,Te),Fv.prototype.Ea=w,Fv.prototype.Ue=Oi,Fv.prototype.Nf=function(o,i,r){return function(e,t){return uw(o,i,e,t,function(t){r[e]||(r[e]={}),r[e][t.ta.toString()]=t})}},Fv.prototype.na=function(t){2===t.target.getState()&&Dv(this)},e(Vv,Fv),Vv.prototype.u=function(t,e,o,i){if(this.Ea(t,e,0,Di,this))return o.call(i,this.a,null)},Vv.prototype.ef=function(t,e,o,i){Zv(this,"postcompose",t,e,i)};var qv={Point:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.qc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),t.yc(e.ga(),0,2,2,e,i))},LineString:function(t,e,o,i){var r,n=o.Ga();n&&((r=t.b(o.Ba(),"LineString")).Ma(null,n),r.mc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(hl(e),0,2,2,e,i))},Polygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.rc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(mr(e),0,2,2,e,i))},MultiPoint:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.oc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),o=e.ga(),t.yc(o,0,o.length,e.qa(),e,i))},MultiLineString:function(t,e,o,i){var r,n=o.Ga();n&&((r=t.b(o.Ba(),"LineString")).Ma(null,n),r.nc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=ul(e),t.yc(o,0,o.length,2,e,i))},MultiPolygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(s||n)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.pc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=gl(e),t.yc(o,0,o.length,2,e,i))},GeometryCollection:function(t,e,o,i){for(var r=0,n=(e=e.a).length;rp[2];)l=Kv(this,t,l=h*++m),u.La(f,r,l,a,n),s-=h;l=Kv(this,t,0)}ys(f,a,v/2,b/2),f!=o&&(Zv(this,"render",f,t,l),o.drawImage(f.canvas,-y,-g),f.translate(-y,-g)),f.globalAlpha=d}c&&o.restore(),this.ef(o,t,e,l)},Jv.prototype.Ea=function(t,e,o,i,r){if(this.f){var n=this.a,s={};return this.f.Ea(t,e.viewState.resolution,e.viewState.rotation,o,{},function(t){var e=G(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})}},Jv.prototype.D=function(){Dv(this)},Jv.prototype.sd=function(t){function e(t){var e,o=t.Lc();if(o?e=o.call(t,h):(o=n.f)&&(e=o(t,h)),e){if(e){if(o=!1,Array.isArray(e))for(var i=0,r=e.length;it.ad:r<=t.ad),t.l?(r=e.coordinate,i=t.j.V(),t.g===Tb?o=t.a:t.g===Cb?(o=(o=t.a[0])[o.length-1],Sb(t,e)&&(r=t.l.slice())):o=(o=t.a)[o.length-1],o[0]=r[0],o[1]=r[1],t.Za(t.a,i),t.B&&t.B.V().ma(r),i instanceof br&&t.g!==Cb?(t.C||(t.C=new Lh(new pl(null))),r=i.Ch(0),(e=t.C.V()).ba(r.ja,r.ga())):t.I&&(e=t.C.V()).ma(t.I),Eb(t)):(e=e.coordinate.slice(),t.B?t.B.V().ma(e):(t.B=new Lh(new ar(e)),Eb(t))),!0}function Sb(t,e){var o=!1;if(t.j){var i=!1,r=[t.l];if(t.g===jb?i=t.a.length>t.Sa:t.g===Cb&&(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,s=r.length;n=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),t.Za(i,r)):t.g===Cb&&((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)),Eb(t),o&&t.Pd()}function Ab(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 Eb(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(pb,je),(Mu=pb.prototype).Ea=w,Mu.ya=function(){return this.j},Mu.xa=function(){return this.D},Mu.za=function(){return this.c},Mu.getState=function(){return this.na},Mu.sa=function(){this.s()},Mu.ua=function(t){this.j=hb(t),this.s()},e(ub,pb),(Mu=ub.prototype).yb=function(t){var e,o=G(t).toString();fb(this,o,t)&&(cb(this,o,t),(e=t.V())?(o=e.G(),this.a&&this.a.Ca(o,t)):this.g[o]=t,this.b(new db("addfeature",t))),this.s()},Mu.cd=function(t){yb(this,t),this.s()},Mu.clear=function(t){if(t){for(var e in this.v)this.v[e].forEach(me);this.f||(this.v={},this.o={},this.l={})}else if(this.a)for(var o in this.a.forEach(this.Ig,this),this.g)this.Ig(this.g[o]);this.f&&this.f.clear(),this.a&&this.a.clear(),this.R.clear(),this.g={},this.b(new db("clear")),this.s()},Mu.sh=function(t,e){return this.a?this.a.forEach(t,e):this.f?this.f.forEach(t,e):void 0},Mu.$b=function(t,e,o){return this.a?cp(this.a,t,e,o):this.f?this.f.forEach(e,o):void 0},Mu.th=function(e,o,i){return this.$b(e,function(t){if(t.V().Xa(e)&&(t=o.call(i,t)))return t})},Mu.Ah=function(){return this.f},Mu.Xe=function(){var t;return this.f?t=this.f.a:this.a&&(t=lp(this.a),ct(this.g)||c(t,ut(this.g))),t},Mu.zh=function(t){var e,o,i=[];return e=t,o=function(t){i.push(t)},this.$b([e[0],e[1],e[0],e[1]],function(t){if(t.V().sb(e))return o.call(void 0,t)}),i},Mu.Uf=function(t){return up(this.a,t)},Mu.vh=function(t,e){var o=t[0],i=t[1],r=null,n=[NaN,NaN],s=1/0,a=[-1/0,-1/0,1/0,1/0],p=e||Di;return cp(this.a,a,function(t){var e;p(t)&&(e=t.V(),(s=e.Kb(o,i,n,e=s))o&&(t.index+=r)})}function om(t,e,o){Me.call(this,t),this.features=e,this.mapBrowserEvent=o}function im(t){var e,o;kr.call(this,{handleEvent:rm}),this.C=(t=t||{}).condition||Zr,this.D=t.addCondition||Oi,this.B=t.removeCondition||Oi,this.I=t.toggleCondition||zr,this.l=t.multi||!1,this.o=t.filter||Di,this.j=t.hitTolerance||0,this.g=new nb({source:new ub({useSpatialIndex:!1,features:t.features,wrapX:t.wrapX}),style:t.style||(c((e=jh()).Polygon,e.LineString),c(e.GeometryCollection,e.LineString),function(t){return t.V()?e[t.V().U()]:null}),updateWhileAnimating:!0,updateWhileInteracting:!0}),t=t.layers?"function"==typeof t.layers?t.layers:(o=t.layers,function(t){return d(o,t)}):Di,this.u=t,this.a={},de(t=this.g.ha().f,"add",this.Fn,this),de(t,"remove",this.Jn,this)}function rm(t){if(!this.C(t))return!0;var o=this.D(t),i=this.B(t),r=this.I(t),e=!o&&!i&&!r,n=t.map,s=this.g.ha().f,a=[],p=[];if(e){for(lt(this.a),n.we(t.pixel,function(t,e){if(this.o(t,e))return p.push(t),t=G(t),this.a[t]=e,!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=s.dc()-1;0<=e;--e){var n=s.item(e),h=p.indexOf(n);-1e.v),g))Math.abs(o[0]-r[0])<=Math.abs(o[1]-r[1])?(y=[(i[0]+r[0])/2,(i[1]+r[1])/2],f=e.a(y),u=[(n[0]+o[0])/2,(n[1]+o[1])/2],c=e.a(u),t(e,o,i,y,u,s,a,f,c,l-1),t(e,u,y,r,n,c,f,p,h,l-1)):(y=[(o[0]+i[0])/2,(o[1]+i[1])/2],f=e.a(y),u=[(r[0]+n[0])/2,(r[1]+n[1])/2],c=e.a(u),t(e,o,y,u,n,s,f,c,h,l-1),t(e,y,i,r,u,f,a,p,c,l-1));else{if(y){if(!e.l)return;e.o=!0}e.c.push({source:[s,p,h],target:[o,r,n]}),e.c.push({source:[s,a,p],target:[o,i,r]})}}}(this,t,e,i,o,r,p,h,l,10),this.o&&(a=1/0,this.c.forEach(function(t){a=Math.min(a,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])-a>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]-a>this.b/2&&(e[0][0]-=this.b),e[1][0]-a>this.b/2&&(e[1][0]-=this.b),e[2][0]-a>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=Ye(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(Vm,Vn),Vm.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Am(this):"webgl"===o&&(e=new Xm(t,this)),e},e(Wm,Pm),Wm.prototype.sd=function(t,e){var o=t.pixelRatio,i=t.size,r=(s=t.viewState).projection,n=s.resolution,s=s.center,a=this.a,p=a.ha(),h=p.i,l=p.Ta(r),u=l.tc(n,this.T),c=l.Da(u),f=Math.round(n/c)||1,y=t.extent;if(st(y=void 0!==e.extent?et(y,e.extent):y))return!1;var g=te(l,y,c),d=l.Pc(u),v=l.Da(u),b=X(l.gb(u),l.j),d=F(d[0]+g.ca*b[0]*v,d[1]+g.da*b[1]*v,d[0]+(g.$+1)*b[0]*v,d[1]+(g.ia+1)*b[1]*v,void 0),v=p.nb(o);(b={})[u]={};var m=this.Nf(p,r,b),w=this.l,x=this.va,S=!1;for(C=g.ca;C<=g.$;++C)for(L=g.da;L<=g.ia;++L){var M=p.Nc(u,C,L,o,r);3!=M.getState()||this.a.kd()||Qd(M,2),Zm(this,M)||(M=$d(M)),Zm(this,M)?2==M.getState()&&(b[u][M.ta.toString()]=M,S||-1!=this.g.indexOf(M)||(S=!0)):$t(l,M.ta,m,x,w)||(M=Qt(l,M.ta,x,w))&&m(u+1,M)}if(C=(C=t.viewHints)[0]||C[1],!(this.f&&16t.highWaterMark}function lw(t){pb.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 pw(t.cacheSize),this.o=[0,0],this.uc=""}function uw(t,e,o,i,r){if(!(e=t.Wd(e)))return!1;for(var n,s,a=!0,p=i.ca;p<=i.$;++p)for(var h=i.da;h<=i.ia;++h)n=t.Sb(o,p,h),s=!1,e.b.hasOwnProperty(n)&&((s=2===(n=e.get(n)).getState())&&(s=!1!==r(n))),s||(a=!1);return a}function cw(t,e){t.uc!==e&&(t.uc=e,t.s())}function fw(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=oe(o,i),e=T(n=pe(n),t)?i:(i=rt(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||i>o.maxZoom)&&(!(o=(r=o.G())?ee(o,r,i):o.a?o.a[i]:null)||p(o,n,t)))?e:null}function yw(t,e){Me.call(this,t),this.tile=e}function gw(t){lw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX}),this.tileLoadFunction=t.tileLoadFunction,this.tileUrlFunction=this.Fc?this.Fc.bind(this):sw,this.urls=null,t.urls?this.eb(t.urls):t.url&&this.jb(t.url),t.tileUrlFunction&&this.cb(t.tileUrlFunction)}function dw(t){gw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||mw,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=t.tileClass||tv,this.g={},this.v={},this.Sa=t.reprojectionErrorThreshold,this.I=!1}function vw(t,e,o,i,r,n,s){return r=(o=fw(t,e=[e,o,i],n))?t.tileUrlFunction(o,r,n):void 0,(r=new t.tileClass(e,void 0!==r?0:4,void 0!==r?r:"",t.crossOrigin,t.tileLoadFunction)).key=s,de(r,"change",t.Li,t),r}function bw(t,e,o,i,r,n){var s=t.Sb(e,o,i),a=t.uc;if(t.a.b.hasOwnProperty(s)){if((h=t.a.get(s)).key!=a){var p=h,h=vw(t,e,o,i,r,n,a);if(0==p.getState()?h.i=p.i:h.i=p,h.i){e=h.i,o=h;do{if(2==e.getState()){e.i=null;break}}while(1!=e.getState()&&0==e.getState()?o.i=e.i:o=e,e=o.i)}t.a.replace(s,h)}}else h=vw(t,e,o,i,r,n,a),t.a.set(s,h);return h}function mw(t,e){t.Y().src=e}function ww(t){this.B=void 0!==t.hidpi&&t.hidpi,dw.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:Bt("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,tilePixelRatio:this.B?2:1,wrapX:void 0===t.wrapX||t.wrapX}),this.R=void 0!==t.culture?t.culture:"en-us",this.C=void 0!==t.maxZoom?t.maxZoom:-1,this.f=t.key,this.l=t.imagerySet,ow("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.l+"?uriScheme=https&include=ImageryProviders&key="+this.f,this.pa.bind(this),void 0,"jsonp")}(Mu=$m.prototype).sd=function(t,e){var o=this.a,i=o.i;return this.pa!=i&&(this.g.length=0,o=o.j,this.c||"vector"==o||(this.c=Ye()),this.c&&"vector"==o&&(this.c=null)),this.pa=i,Wm.prototype.sd.apply(this,arguments)},Mu.Of=function(t,e,o,i,r,n,s,a){var p=t,h=this.a,l=e.pixelRatio,u=e.viewState.projection,c=h.i,f=h.get(sb)||null,y=p.o;if(y.Nd||y.mf!=c||y.Kg!=f){for(var g=0,d=p.a.length;gTerms of Use'});function Sw(t){var e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",o=void 0!==t.tileGrid?t.tileGrid:ne({extent:pe(e),maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});dw.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 Mw(t){this.C=t.account,this.B=t.map||"",this.f=t.config||{},this.l={},Sw.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}),Pw(this)}function Pw(t){var e,o,i=JSON.stringify(t.f);t.l[i]?Aw(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 Aw(t,e){t.jb("https://"+e.cdn_url.https+"/"+t.C+"/api/v1/map/"+e.layergroupid+"/{z}/{x}/{y}.png")}function Ew(t){ub.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 O((t=t.V())instanceof ar,10),t},this.source=t.source,this.source.J("change",Ew.prototype.sa,this)}function Tw(t){if(void 0!==t.resolution){t.features.length=0;for(var e=V(),o=t.distance*t.resolution,i=t.source.Xe(),r={},n=0,s=i.length;n>=1}return o.join("")}(e))}})),i.imageryProviders&&(p=Wt(Bt("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,s);for(t=pt([(t=t.bbox)[1],t[0],t[3],t[2]],p),e=o;e<=i;++e){var r=e.toString(),o=ee(a,t,e);r in n?n[r].push(o):n[r]=[o]}}),new he({html:e,tileRanges:n})})).push(xw),this.ua(t)),this.D=e,lb(this,"ready"))},e(Sw,dw),e(Mw,Sw),(Mu=Mw.prototype).Kk=function(){return this.f},Mu.tq=function(t){ht(this.f,t),Pw(this)},Mu.Xp=function(t){this.f=t||{},Pw(this)},Mu.Dl=function(t,e){if(!(e=e.target).status||200<=e.status&&e.status<300){try{var o=JSON.parse(e.responseText)}catch(t){return void lb(this,"error")}Aw(this,o),this.l[t]=o,lb(this,"ready")}else lb(this,"error")},Mu.Cl=function(){lb(this,"error")},e(Ew,ub),(Mu=Ew.prototype).$n=function(){return this.distance},Mu.ao=function(){return this.source},Mu.Yd=function(t,e,o){this.source.Yd(t,e,o),e!==this.resolution&&(this.clear(),this.resolution=e,Tw(this),this.cd(this.features))},Mu.Yp=function(t){this.distance=t,this.sa()},Mu.sa=function(){this.clear(),Tw(this),this.cd(this.features),ub.prototype.sa.call(this)},e(Cw,Im),(Mu=Cw.prototype).co=function(){return this.v},Mu.Jc=function(t,e,o,i){if(void 0===this.f)return null;e=Nm(this,e),o=this.T?o:1;var r=this.M;if(r&&this.I==this.i&&r.resolution==e&&r.a==o&&N(r.G(),t))return r;ht(r={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.v);var n=((t=t.slice())[0]+t[2])/2,s=(t[1]+t[3])/2;1!=this.B&&(a=this.B*rt(t)/2,p=this.B*tt(t)/2,t[0]=n-a,t[1]=s-p,t[2]=n+a,t[3]=s+p);var a=e/o,p=Math.ceil(rt(t)/a),h=Math.ceil(tt(t)/a);return t[0]=n-a*p/2,t[2]=n+a*p/2,t[1]=s-a*h/2,t[3]=s+a*h/2,this.l[0]=p,this.l[1]=h,n=t,s=this.l,a=o,i=i.mb.split(":").pop(),r.SIZE=s[0]+","+s[1],r.BBOX=n.join(","),r.BBOXSR=i,r.IMAGESR=i,r.DPI=Math.round(90*a),(n=(i=this.f).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"))==i&&O(!1,50),r=jw(n,r),this.M=new qd(t,e,o,this.j,r,this.R,this.g),this.I=this.i,de(this.M,"change",this.o,this),this.M},Mu.bo=function(){return this.g},Mu.eo=function(){return this.f},Mu.fo=function(t){this.M=null,this.g=t,this.s()},Mu.ho=function(t){t!=this.f&&(this.f=t,this.M=null,this.s())},Mu.io=function(t){ht(this.v,t),this.M=null,this.s()},e(Lw,Im),(Mu=Lw.prototype).ko=function(){return this.g},Mu.Jc=function(t,e,o){e=Nm(this,e),o=this.T?o:1;var i=this.M;if(i&&this.B==this.i&&i.resolution==e&&i.a==o&&N(i.G(),t))return i;1!=this.v&&at(t=t.slice(),this.v);var r,n,s,a,p,h,l,u=[rt(t)/e*o,tt(t)/e*o];return void 0!==this.I?(i=this.I,r=$(t),n=this.pa,s=rt(t),a=tt(t),p=u[0],h=u[1],l=.0254/this.l,u={OPERATION:this.va?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.l,SETDISPLAYWIDTH:Math.round(u[0]),SETDISPLAYHEIGHT:Math.round(u[1]),SETVIEWSCALE:p*aOpenStreetMap contributors.'});function Uw(t){this.B=null,this.va=void 0!==t.operationType?t.operationType:"pixel",this.Sa=void 0!==t.threads?t.threads:1,this.g=function(t){for(var e=t.length,o=Array(e),i=0;ithis.fk;)this.Ed.shift().callback(null,null)},e.prototype.dh=function(){if(0===this.oe&&0Stamen Design, under CC BY 3.0.'}),Ow],Kw={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}},zw={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}};function Yw(t){dw.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=V(),cw(this,Hw(this))}function Hw(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function qw(t){lw.call(this,{opaque:!1,projection:t.projection,tileGrid:t.tileGrid,wrapX:void 0===t.wrapX||t.wrapX})}function Jw(t,e,o){_d.call(this,t,2),this.c=e,this.Ia=o,this.a=null}function _w(t){var e;this.f=null,dw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,projection:Bt("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX}),t.url?t.jsonp?ow(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):O(!1,51)}function $w(t){var e;lw.call(this,{projection:Bt("EPSG:3857"),state:"loading"}),this.v=void 0===t.preemptive||t.preemptive,this.l=sw,this.g=void 0,this.f=t.jsonp||!1,t.url?this.f?ow(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):O(!1,51)}function Qw(t,e,o,i,r,n){_d.call(this,t,e),this.o=o,this.a=i,this.v=r,this.c=this.j=this.g=null,this.l=n}function tx(t){var e;0==t.state&&(t.state=1,t.l?ow(t.o,t.Ji.bind(t),t.De.bind(t)):((e=new XMLHttpRequest).addEventListener("load",t.Co.bind(t)),e.addEventListener("error",t.Bo.bind(t)),e.open("GET",t.o),e.send()))}function ex(t){var e=(t=t||{}).params||{};dw.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="",ix(this),this.fa=V(),nx(this),cw(this,rx(this))}function ox(t,e,o,i,r,n,s){var a=t.urls;if(a){if(s.WIDTH=o[0],s.HEIGHT=o[1],s[t.l?"CRS":"SRS"]=n.mb,"STYLES"in t.f||(s.STYLES=""),1!=r)switch(t.B){case"geoserver":o=90*r+.5|0,s.FORMAT_OPTIONS="FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+";dpi:"+o:"dpi:"+o;break;case"mapserver":s.MAP_RESOLUTION=90*r;break;case"carmentaserver":case"qgis":s.DPI=90*r;break;default:O(!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),s.BBOX=i.join(","),jw(1==a.length?a[0]:a[L((e[1]<>=1,i>>=1;break;default:O(!1,53)}n.push([1,1]),n.reverse();for(var r=[1],s=[0],i=1,o=n.length;i=e+this.b&&a.height>=o+this.b)return s={offsetX:a.x+this.b,offsetY:a.y+this.b,image:this.f},this.c[t]=s,i.call(r,this.i,a.x+this.b,a.y+this.b),e+=this.b,i=o+this.b,e=a.width-e>a.height-i?(o={x:a.x+e,y:a.y,width:a.width-e,height:a.height},{x:a.x,y:a.y+i,width:e,height:a.height-i}):(o={x:a.x+e,y:a.y,width:a.width-e,height:i},{x:a.x,y:a.y+i,width:a.width,height:a.height-i}),mx(this,t=n,o,e),s}return null},wx.prototype.add=function(t,e,o,i,r,n){return!(e+this.b>this.i||o+this.b>this.i)&&(i=xx(this,!1,t,e,o,i,n))?(t=xx(this,!0,t,e,o,r||w,n),{offsetX:i.offsetX,offsetY:i.offsetY,image:i.image,Zl:t.image}):null},t("ol.Attribution",he),he.prototype.getHTML=he.prototype.i,t("ol.Collection",Ne),Ne.prototype.extend=Ne.prototype.fg,Ne.prototype.getArray=Ne.prototype.tm,Ne.prototype.getLength=Ne.prototype.dc,Ne.prototype.insertAt=Ne.prototype.He,Ne.prototype.removeAt=Ne.prototype.Hg,Ne.prototype.setAt=Ne.prototype.Wp,t("ol.color.asArray",Be),t("ol.color.asString",Xe),t("ol.colorlike.asColorLike",ze),t("ol.control.defaults",ao),t("ol.coordinate.add",Ai),t("ol.coordinate.createStringXY",function(e){return function(t){return ki(t,e)}}),t("ol.coordinate.format",ji),t("ol.coordinate.rotate",Li),t("ol.coordinate.toStringHDMS",function(t,e){return t?Ti("NS",t[1],e)+" "+Ti("EW",t[0],e):""}),t("ol.coordinate.toStringXY",ki),t("ol.DeviceOrientation",fh),fh.prototype.getAlpha=fh.prototype.Fk,fh.prototype.getBeta=fh.prototype.Ik,fh.prototype.getGamma=fh.prototype.Ok,fh.prototype.getHeading=fh.prototype.um,fh.prototype.getTracking=fh.prototype.Th,fh.prototype.setTracking=fh.prototype.gg,t("ol.easing.easeIn",to),t("ol.easing.easeOut",eo),t("ol.easing.inAndOut",oo),t("ol.easing.linear",io),t("ol.easing.upAndDown",function(t){return t<.5?oo(2*t):1-oo(2*(t-.5))}),t("ol.extent.boundingExtent",P),t("ol.extent.buffer",A),t("ol.extent.containsCoordinate",T),t("ol.extent.containsExtent",N),t("ol.extent.containsXY",j),t("ol.extent.createEmpty",V),t("ol.extent.equals",Z),t("ol.extent.extend",K),t("ol.extent.getArea",q),t("ol.extent.getBottomLeft",J),t("ol.extent.getBottomRight",_),t("ol.extent.getCenter",$),t("ol.extent.getHeight",tt),t("ol.extent.getIntersection",et),t("ol.extent.getSize",function(t){return[t[2]-t[0],t[3]-t[1]]}),t("ol.extent.getTopLeft",ot),t("ol.extent.getTopRight",it),t("ol.extent.getWidth",rt),t("ol.extent.intersects",nt),t("ol.extent.isEmpty",st),t("ol.extent.applyTransform",pt),t("ol.Feature",Lh),Lh.prototype.getGeometry=Lh.prototype.V,Lh.prototype.getId=Lh.prototype.wm,Lh.prototype.getGeometryName=Lh.prototype.Qk,Lh.prototype.getStyle=Lh.prototype.xm,Lh.prototype.getStyleFunction=Lh.prototype.Lc,Lh.prototype.setGeometry=Lh.prototype.Ra,Lh.prototype.setStyle=Lh.prototype.hg,Lh.prototype.setId=Lh.prototype.jc,Lh.prototype.setGeometryName=Lh.prototype.Tc,t("ol.featureloader.xhr",Qh),t("ol.Geolocation",Gd),Gd.prototype.getAccuracy=Gd.prototype.Dk,Gd.prototype.getAccuracyGeometry=Gd.prototype.Ek,Gd.prototype.getAltitude=Gd.prototype.Gk,Gd.prototype.getAltitudeAccuracy=Gd.prototype.Hk,Gd.prototype.getHeading=Gd.prototype.ym,Gd.prototype.getPosition=Gd.prototype.zm,Gd.prototype.getProjection=Gd.prototype.Uh,Gd.prototype.getSpeed=Gd.prototype.ll,Gd.prototype.getTracking=Gd.prototype.Vh,Gd.prototype.getTrackingOptions=Gd.prototype.Gh,Gd.prototype.setProjection=Gd.prototype.Wh,Gd.prototype.setTracking=Gd.prototype.Ke,Gd.prototype.setTrackingOptions=Gd.prototype.wj,t("ol.Graticule",Wd),Wd.prototype.getMap=Wd.prototype.Cm,Wd.prototype.getMeridians=Wd.prototype.al,Wd.prototype.getParallels=Wd.prototype.hl,t("ol.has.DEVICE_PIXEL_RATIO",Co),t("ol.has.CANVAS",Ro),t("ol.has.DEVICE_ORIENTATION",Io),t("ol.has.GEOLOCATION",No),t("ol.has.TOUCH",Fo),t("ol.has.WEBGL",Go),qd.prototype.getImage=qd.prototype.Y,tv.prototype.getImage=tv.prototype.Y,t("ol.inherits",e),t("ol.interaction.defaults",On),t("ol.Kinetic",Nr),t("ol.loadingstrategy.all",ab),t("ol.loadingstrategy.bbox",function(t){return[t]}),t("ol.loadingstrategy.tile",function(i){return function(t,e){e=i.tc(e),t=ee(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",Xp),Xp.prototype.addControl=Xp.prototype.kk,Xp.prototype.addInteraction=Xp.prototype.lk,Xp.prototype.addLayer=Xp.prototype.ih,Xp.prototype.addOverlay=Xp.prototype.jh,Xp.prototype.forEachFeatureAtPixel=Xp.prototype.we,Xp.prototype.forEachLayerAtPixel=Xp.prototype.Im,Xp.prototype.hasFeatureAtPixel=Xp.prototype.Yl,Xp.prototype.getEventCoordinate=Xp.prototype.Tf,Xp.prototype.getEventPixel=Xp.prototype.xe,Xp.prototype.getTarget=Xp.prototype.ag,Xp.prototype.getTargetElement=Xp.prototype.jd,Xp.prototype.getCoordinateFromPixel=Xp.prototype.Wa,Xp.prototype.getControls=Xp.prototype.Lk,Xp.prototype.getOverlays=Xp.prototype.fl,Xp.prototype.getOverlayById=Xp.prototype.el,Xp.prototype.getInteractions=Xp.prototype.Sk,Xp.prototype.getLayerGroup=Xp.prototype.Kc,Xp.prototype.getLayers=Xp.prototype.Xh,Xp.prototype.getPixelFromCoordinate=Xp.prototype.Ja,Xp.prototype.getSize=Xp.prototype.Ob,Xp.prototype.getView=Xp.prototype.Z,Xp.prototype.getViewport=Xp.prototype.sl,Xp.prototype.renderSync=Xp.prototype.Tp,Xp.prototype.removeControl=Xp.prototype.Mp,Xp.prototype.removeInteraction=Xp.prototype.Np,Xp.prototype.removeLayer=Xp.prototype.Pp,Xp.prototype.removeOverlay=Xp.prototype.Qp,Xp.prototype.setLayerGroup=Xp.prototype.qj,Xp.prototype.setSize=Xp.prototype.Qg,Xp.prototype.setTarget=Xp.prototype.Le,Xp.prototype.setView=Xp.prototype.iq,Xp.prototype.updateSize=Xp.prototype.Ad,t("ol.Object",je),je.prototype.getKeys=je.prototype.O,je.prototype.getProperties=je.prototype.N,je.prototype.setProperties=je.prototype.H,je.prototype.unset=je.prototype.P,t("ol.Observable",Te),t("ol.Observable.unByKey",function(t){if(Array.isArray(t))for(var e=0,o=t.length;e