mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-31 17:43:19 -05:00
1 line
343 KiB
JavaScript
1 line
343 KiB
JavaScript
!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<t?1:t<e?-1:0}function G(t,e){return 0<=t.indexOf(e)}function B(t,e,o){var i=t.length;if(t[0]<=e)return 0;if(!(e<=t[i-1]))if(0<o){for(o=1;o<i;++o)if(t[o]<e)return o-1}else if(o<0){for(o=1;o<i;++o)if(t[o]<=e)return o}else for(o=1;o<i;++o){if(t[o]==e)return o;if(t[o]<e)return t[o-1]-e<e-t[o]?o-1:o}return i-1}function K(t,e){var o=Array.isArray(e)?e:[e],i=o.length;for(e=0;e<i;e++)t[t.length]=o[e]}function W(t,e){-1<(e=t.indexOf(e))&&t.splice(e,1)}function V(t,e){for(var o,i=t.length>>>0,r=0;r<i;r++)if(e(o=t[r],r,t))return o;return null}function X(t,e){var o=t.length;if(o===e.length){for(var i=0;i<o;i++)if(t[i]!==e[i])return;return 1}}function z(t){for(var o=ip,e=t.length,i=Array(t.length),r=0;r<e;r++)i[r]={index:r,value:t[r]};for(i.sort(function(t,e){return o(t.value,e.value)||t.index-e.index}),r=0;r<t.length;r++)t[r]=i[r].value}function H(o,i){var r;return o.every(function(t,e){return!i(t,r=e,o)})?-1:r}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function Z(){}function q(t){return t.Vo||(t.Vo=++J)}var J=0;function Y(t){this.message="Assertion failed. See https://openlayers.org/en/v4.2.0/doc/errors/#"+t+" for details.",this.code=t,this.name="AssertionError"}function _(t,e){if(!t)throw new Y(e)}function $(t,e,o,i){this.ca=t,this.$=e,this.da=o,this.ia=i}function Q(t,e,o){return t.ca<=e&&e<=t.$&&t.da<=o&&o<=t.ia}function tt(t,e){return t.ca<=e.$&&e.ca<=t.$&&t.da<=e.ia&&e.da<=t.ia}function et(t,e,o){return Math.min(Math.max(t,e),o)}e(Y,Error);var ot="cosh"in Math?Math.cosh:function(t){return((t=Math.exp(t))+1/t)/2};function it(t){return t*Math.PI/180}function rt(t,e){return(t%=e)*e<0?t+e:t}function nt(t,e,o){return t+o*(e-t)}function pt(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]+2*e,o[1]=t[1]+2*e,o}function st(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]*e+.5|0,o[1]=t[1]*e+.5|0,o}function at(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}function lt(t){for(var e=gt(),o=0,i=t.length;o<i;++o)Pt(e,t[o]);return e}function ht(t,e,o){return o?(o[0]=t[0]-e,o[1]=t[1]-e,o[2]=t[2]+e,o[3]=t[3]+e,o):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function yt(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function ut(t,e){return ft(t,e[0],e[1])}function ct(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function ft(t,e,o){return t[0]<=e&&e<=t[2]&&t[1]<=o&&o<=t[3]}function dt(t,e){var o=t[1],i=e[0],r=0;return i<t[0]?r|=16:t[2]<i&&(r|=4),(e=e[1])<o?r|=8:t[3]<e&&(r|=2),r=r||1}function gt(){return[1/0,1/0,-1/0,-1/0]}function vt(t,e,o,i,r){return r?(r[0]=t,r[1]=e,r[2]=o,r[3]=i,r):[t,e,o,i]}function mt(t){return vt(1/0,1/0,-1/0,-1/0,t)}function bt(t,e){var o=t[0];return vt(o,t=t[1],o,t,e)}function xt(t,e,o,i,r){return Mt(r=mt(r),t,e,o,i)}function wt(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function St(t,e){return e[0]<t[0]&&(t[0]=e[0]),t[2]<e[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),t[3]<e[3]&&(t[3]=e[3]),t}function Pt(t,e){e[0]<t[0]&&(t[0]=e[0]),t[2]<e[0]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),t[3]<e[1]&&(t[3]=e[1])}function Mt(t,e,o,i,r){for(;o<i;o+=r){var n=t,p=e[o],s=e[o+1];n[0]=Math.min(n[0],p),n[1]=Math.min(n[1],s),n[2]=Math.max(n[2],p),n[3]=Math.max(n[3],s)}return t}function Tt(t){var e=0;return e=Ot(t)?e:It(t)*Lt(t)}function Et(t){return[t[0],t[1]]}function At(t){return[t[2],t[1]]}function Ct(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function jt(t,e,o,i,r){var n=e*i[0]/2,p=(i=e*i[1]/2,e=Math.cos(o),Math.sin(o)),s=(o=n*e,n*=p,e*=i,i*p),a=t[0],l=t[1],s=(t=a-o+s,i=a-o-s,p=a+o-s,o=a+o+s,l-n-e),a=l-n+e,h=l+n+e,n=l+n-e;return vt(Math.min(t,i,p,o),Math.min(s,a,h,n),Math.max(t,i,p,o),Math.max(s,a,h,n),r)}function Lt(t){return t[3]-t[1]}function Rt(t,e,o){return o=o||gt(),kt(t,e)&&(o[0]=(t[0]>e[0]?t:e)[0],o[1]=(e[1]<t[1]?t:e)[1],o[2]=(t[2]<e[2]?t:e)[2],o[3]=(t[3]<e[3]?t:e)[3]),o}function Ft(t){return[t[0],t[3]]}function Nt(t){return[t[2],t[3]]}function It(t){return t[2]-t[0]}function kt(t,e){return t[0]<=e[2]&&e[0]<=t[2]&&t[1]<=e[3]&&e[1]<=t[3]}function Ot(t){return t[2]<t[0]||t[3]<t[1]}function Dt(t,e){var o=(t[2]-t[0])/2*(e-1);e=(t[3]-t[1])/2*(e-1),t[0]-=o,t[2]+=o,t[1]-=e,t[3]+=e}function Ut(t,e,o){e(t=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]],t,2);var i=[t[0],t[2],t[4],t[6]],r=[t[1],t[3],t[5],t[7]];return vt(e=Math.min.apply(null,i),t=Math.min.apply(null,r),Math.max.apply(null,i),Math.max.apply(null,r),o)}var Gt="function"==typeof Object.assign?Object.assign:function(t,e){if(!t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),i=1,r=arguments.length;i<r;++i){var n=arguments[i];if(null!=n)for(var p in n)n.hasOwnProperty(p)&&(o[p]=n[p])}return o};function Bt(t){for(var e in t)delete t[e]}function Kt(t){var e,o=[];for(e in t)o.push(t[e]);return o}function Wt(t){for(var e in t)return!1;return!e}function Vt(t){this.radius=t}Vt.prototype.a=function(t){for(var e=0,o=t.length,i=t[o-1][0],r=t[o-1][1],n=0;n<o;n++)var p=t[n][0],s=t[n][1],e=e+it(p-i)*(2+Math.sin(it(r))+Math.sin(it(s))),i=p,r=s;return e*this.radius*this.radius/2},Vt.prototype.b=function(t,e){var o=it(t[1]),i=it(e[1]),r=(i-o)/2;return t=it(e[0]-t[0])/2,o=Math.sin(r)*Math.sin(r)+Math.sin(t)*Math.sin(t)*Math.cos(o)*Math.cos(i),2*this.radius*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))},Vt.prototype.offset=function(t,e,o){var i=it(t[1]),r=(e/=this.radius,Math.asin(Math.sin(i)*Math.cos(e)+Math.cos(i)*Math.sin(e)*Math.cos(o)));return[180*(it(t[0])+Math.atan2(Math.sin(o)*Math.sin(e)*Math.cos(i),Math.cos(e)-Math.sin(i)*Math.sin(r)))/Math.PI,180*r/Math.PI]};var Xt=new Vt(6370997),zt={},Ht=(zt.degrees=2*Math.PI*Xt.radius/360,zt.ft=.3048,zt.m=1,zt["us-ft"]=1200/3937,null);function Zt(t){this.mb=t.code,this.a=t.units,this.f=void 0!==t.extent?t.extent:null,this.g=void 0!==t.worldExtent?t.worldExtent:null,this.b=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.c=void 0!==t.global&&t.global,this.i=!(!this.c||!this.f),this.o=t.getPointResolution,this.j=null,this.l=t.metersPerUnit;var e=t.code,o=Ht||window.proj4;"function"==typeof o&&void 0!==(e=o.defs(e))&&(void 0!==e.axis&&void 0===t.axisOrientation&&(this.b=e.axis),void 0===t.metersPerUnit&&(this.l=e.to_meter),void 0===t.units)&&(this.a=e.units)}function qt(t){Zt.call(this,{code:t,units:"m",extent:Yt,global:!0,worldExtent:_t,getPointResolution:function(t,e){return t/ot(e[1]/6378137)}})}Zt.prototype.Jk=function(){return this.mb},e(qt,Zt);var Jt=6378137*Math.PI,Yt=[-Jt,-Jt,Jt,Jt],_t=[-180,-85,180,85],$t="EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" ").map(function(t){return new qt(t)});function Qt(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var r=0;r<i;r+=o){e[r]=Jt*t[r]/180;var n=6378137*Math.log(Math.tan(Math.PI*(t[r+1]+90)/360));Jt<n?n=Jt:n<-Jt&&(n=-Jt),e[r+1]=n}return e}function te(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var r=0;r<i;r+=o)e[r]=180*t[r]/Jt,e[r+1]=360*Math.atan(Math.exp(t[r+1]/6378137))/Math.PI-90;return e}var ee=new Vt(6378137);function oe(t,e){Zt.call(this,{code:t,units:"degrees",extent:ie,axisOrientation:e,global:!0,metersPerUnit:re,worldExtent:ie})}e(oe,Zt);var ie=[-180,-90,180,90],re=Math.PI*ee.radius/180,ne=[new oe("CRS:84"),new oe("EPSG:4326","neu"),new oe("urn:ogc:def:crs:EPSG::4326","neu"),new oe("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new oe("urn:ogc:def:crs:OGC:1.3:CRS84"),new oe("urn:ogc:def:crs:OGC:2:84"),new oe("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new oe("urn:x-ogc:def:crs:EPSG:4326","neu")],pe={},se={};function ae(t,e,o){t=t.mb,e=e.mb,t in se||(se[t]={}),se[t][e]=o}function le(t,e){var o;return o=t in se&&e in se[t]?se[t][e]:o}function he(t,e,o){var i=(t=ge(t)).o;return i?e=i(e,o):"degrees"!=t.a&&(e=(i=be(t,ge("EPSG:4326")))(e=[o[0]-e/2,o[1],o[0]+e/2,o[1],o[0],o[1]-e/2,o[0],o[1]+e/2],e,2),e=(Xt.b(e.slice(0,2),e.slice(2,4))+Xt.b(e.slice(4,6),e.slice(6,8)))/2,void 0!==(t=t.sc()))&&(e/=t),e}function ye(t){t.forEach(ue),t.forEach(function(e){t.forEach(function(t){e!==t&&ae(e,t,we)})})}function ue(t){ae(pe[t.mb]=t,t,we)}function ce(t){return t?"string"==typeof t?ge(t):t:ge("EPSG:3857")}function fe(t,e,o,i){ae(t=ge(t),e=ge(e),de(o)),ae(e,t,de(i))}function de(p){return function(t,e,o){var i,r=t.length;for(o=void 0!==o?o:2,e=void 0!==e?e:Array(r),i=0;i<r;i+=o){var n=p([t[i],t[i+1]]);for(e[i]=n[0],e[i+1]=n[1],n=o-1;2<=n;--n)e[i+n]=t[i+n]}return e}}function ge(t){var e,o=null;return t instanceof Zt?o=t:"string"==typeof t&&(o=pe[t]||null,e=Ht||window.proj4,o||"function"!=typeof e||void 0===e.defs(t)||ue(o=new Zt({code:t}))),o}function ve(t,e){var o;return t===e||(o=t.a===e.a,(t.mb===e.mb||be(t,e)===we)&&o)}function me(t,e){return be(t=ge(t),e=ge(e))}function be(t,e){var o,i,r,n=t.mb,p=e.mb,s=le(n,p);return s||"function"==typeof(o=Ht||window.proj4)&&(i=o.defs(n),r=o.defs(p),void 0!==i)&&void 0!==r&&(i===r?ye([e,t]):fe(e,t,(s=o(p,n)).forward,s.inverse),s=le(n,p)),s=s||xe}function xe(t,e){if(void 0!==e&&t!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}return t}function we(t,e){if(void 0!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}else t=t.slice();return t}function Se(t,e,o){return me(e,o)(t,void 0,t.length)}function Pe(t,e,o){return Ut(t,e=me(e,o))}function Me(){ye($t),ye(ne),ne.forEach(function(e){$t.forEach(function(t){ae(e,t,Qt),ae(t,e,te)})})}function Te(t,e,o,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=o,i):[t,e,o]}function Ee(t){this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.b=t.resolutions,_((o=this.b,i=function(t,e){return e-t}||U,o.every(function(t,e){return!e||!(0<(t=i(o[e-1],t))||0===t)})),17),this.maxZoom=this.b.length-1,this.i=void 0!==t.origin?t.origin:null,this.c=null,void 0!==t.origins&&(this.c=t.origins,_(this.c.length==this.b.length,20));var o,i,e=t.extent;if(void 0===e||this.i||this.c||(this.i=Ft(e)),_(!this.i&&this.c||this.i&&!this.c,18),this.f=null,void 0!==t.tileSizes&&(this.f=t.tileSizes,_(this.f.length==this.b.length,19)),this.g=void 0!==t.tileSize?t.tileSize:this.f?null:256,_(!this.g&&this.f||this.g&&!this.f,22),this.v=void 0!==e?e:null,this.a=null,this.j=[0,0],void 0!==t.sizes)this.a=t.sizes.map(function(t){return new $(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))},this);else if(e){for(var r=this,n=e,p=r.b.length,s=Array(p),a=r.minZoom;a<p;++a)s[a]=Re(r,n,a);r.a=s}}Me();var Ae=[0,0,0];function Ce(t,e,o,i,r){for(r=t.Aa(e,r),e=e[0]-1;e>=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]<t.maxZoom?(i=t.Aa(e,i),Re(t,i,e[0]+1,o)):null}function Le(t,e,o,i){Ne(t,e[0],e[1],o,!1,Ae);var r=Ae[1],n=Ae[2];return Ne(t,e[2],e[3],o,!0,Ae),t=Ae[1],e=Ae[2],void 0!==i?(i.ca=r,i.$=t,i.da=n,i.ia=e):i=new $(r,t,n,e),i}function Re(t,e,o,i){return Le(t,e,t.Da(o),i)}function Fe(t,e){var o=t.Pc(e[0]),i=t.Da(e[0]);return t=at(t.gb(e[0]),t.j),[o[0]+(e[1]+.5)*t[0]*i,o[1]+(e[2]+.5)*t[1]*i]}function Ne(t,e,o,i,r,n){var p=t.tc(i),s=i/t.Da(p),a=t.Pc(p);return t=at(t.gb(p),t.j),e=s*Math.floor((e-a[0])/i+(r?.5:0))/t[0],o=s*Math.floor((o-a[1])/i+(r?0:.5))/t[1],o=r?(e=Math.ceil(e)-1,Math.ceil(o)-1):(e=Math.floor(e),Math.floor(o)),Te(p,e,o,n)}function Ie(t){var e={};return Gt(e,t||{}),void 0===e.extent&&(e.extent=ge("EPSG:3857").G()),e.resolutions=ke(e.extent,e.maxZoom,e.tileSize),delete e.maxZoom,new Ee(e)}function ke(t,e,o){e=void 0!==e?e:42;var i=Lt(t);for(t=It(t),o=at(void 0!==o?o:256),o=Math.max(t/o[0],i/o[1]),e+=1,i=Array(e),t=0;t<e;++t)i[t]=o/Math.pow(2,t);return i}function Oe(t,e,o){return e=ke(t=De(t),e,o),new Ee({extent:t,origin:Ft(t),resolutions:e,tileSize:o})}function De(t){var e=(t=ge(t)).G();return e=e?e:vt(-(t=180*zt.degrees/t.sc()),-t,t,t)}function Ue(t){this.b=t.html,this.a=t.tileRanges||null}function Ge(t){return t}function Be(i){return i.mh=function(t){var e=i.listener,o=i.lh||i.target;return i.nh&&Ze(i),e.call(o,t)}}function Ke(t,e,o,i){for(var r,n=0,p=t.length;n<p;++n)if((r=t[n]).listener===e&&r.lh===o)return i&&(r.deleteIndex=n),r}function We(t,e){return(t=t.fb)?t[e]:void 0}function Ve(t){return t.fb||(t.fb={})}function Xe(t,e){var o=We(t,e);if(o){for(var i=0,r=o.length;i<r;++i)t.removeEventListener(e,o[i].mh),Bt(o[i]);o.length=0,(o=t.fb)&&(delete o[e],Object.keys(o).length||delete t.fb)}}function g(t,e,o,i,r){var n=Ve(t),p=n[e];return(n=Ke(p=p||(n[e]=[]),o,i,!1))?r||(n.nh=!1):(t.addEventListener(e,Be(n={lh:i,nh:!!r,listener:o,target:t,type:e})),p.push(n)),n}function ze(t,e,o,i){return g(t,e,o,i,!0)}function He(t,e,o,i){(t=We(t,e))&&(o=Ke(t,o,i,!0))&&Ze(o)}function Ze(t){var e,o;t&&t.target&&(t.target.removeEventListener(t.type,t.mh),(e=We(t.target,t.type))&&(-1!==(o="deleteIndex"in t?t.deleteIndex:e.indexOf(t))&&e.splice(o,1),e.length||Xe(t.target,t.type)),Bt(t))}function qe(t){for(var e in Ve(t))Xe(t,e)}function Je(){}function Ye(t){t.Jb||(t.Jb=!0,t.ka())}function _e(t){this.type=t,this.target=null}function $e(t){t.stopPropagation()}function Qe(){this.Ua={},this.ra={},this.oa={}}function to(t,e){return e?e in t.oa:0<Object.keys(t.oa).length}function eo(){Qe.call(this),this.i=0}function oo(t){eo.call(this),q(this),this.S={},void 0!==t&&this.H(t)}Ee.prototype.Rf=function(t,e,o){for(var i=(t=Re(this,t,e)).ca,r=t.$;i<=r;++i)for(var n=t.da,p=t.ia;n<=p;++n)o([e,i,n])},Je.prototype.Jb=!(Ue.prototype.i=function(){return this.b}),Je.prototype.ka=Z,_e.prototype.preventDefault=_e.prototype.stopPropagation=function(){this.qp=!0},e(Qe,Je),Qe.prototype.addEventListener=function(t,e){var o=this.oa[t];-1===(o=o||(this.oa[t]=[])).indexOf(e)&&o.push(e)},Qe.prototype.b=function(t){var e="string"==typeof t?new _e(t):t,o=(t=e.type,(e.target=this).oa[t]);if(o){t in this.ra||(this.ra[t]=0,this.Ua[t]=0),++this.ra[t];for(var i=0,r=o.length;i<r;++i)if(!1===o[i].call(this,e)||e.qp){var n=!1;break}if(--this.ra[t],!this.ra[t]){for(e=this.Ua[t],delete this.Ua[t];e--;)this.removeEventListener(t,Z);delete this.ra[t]}return n}},Qe.prototype.ka=function(){qe(this)},Qe.prototype.removeEventListener=function(t,e){var o=this.oa[t];o&&(e=o.indexOf(e),t in this.Ua?(o[e]=Z,++this.Ua[t]):(o.splice(e,1),o.length||delete this.oa[t]))},e(eo,Qe),eo.prototype.s=function(){++this.i,this.b("change")},e(oo,eo);var io={};function ro(t){return io.hasOwnProperty(t)?io[t]:io[t]="change:"+t}function no(t,e,o){_e.call(this,t),this.key=e,this.oldValue=o}function y(t,e){if(oo.call(this),this.c=!!(e||{}).unique,this.a=t||[],this.c)for(t=0,e=this.a.length;t<e;++t)so(this,this.a[t],t);po(this)}function po(t){t.set(ao,t.a.length)}function so(t,e,o){for(var i=0,r=t.a.length;i<r;++i)if(t.a[i]===e&&i!==o)throw new Y(58)}oo.prototype.get=function(t){var e;return e=this.S.hasOwnProperty(t)?this.S[t]:e},e(no,_e),e(y,oo),y.prototype.clear=function(){for(;0<this.dc();)this.pop()};var ao="length";function lo(t,e){_e.call(this,t),this.element=e}e(lo,_e);var ho=/^#(?:[0-9a-f]{3}){1,2}$/i,yo=/^([a-z]*)$/i;function uo(t){return Array.isArray(t)?t:vo(t)}function co(t){var e;return t="string"!=typeof t?"rgba("+(e=(e=t[0])!=(0|e)?e+.5|0:e)+","+(e=(e=t[1])!=(0|e)?e+.5|0:e)+","+(e=(e=t[2])!=(0|e)?e+.5|0:e)+","+(void 0===t[3]?1:t[3])+")":t}fo={},go=0;var fo,go,vo=function(t){if(fo.hasOwnProperty(t))var e=fo[t];else{if(1024<=go)for(var o in e=0,fo)3&e++||(delete fo[o],--go);var i,r;yo.exec(e=t)&&((o=document.createElement("div")).style.color=e,document.body.appendChild(o),e=getComputedStyle(o).color,document.body.removeChild(o)),ho.exec(e)?(_(3==(r=e.length-1)||6==r,54),i=3==r?1:2,r=parseInt(e.substr(1+0*i,i),16),o=parseInt(e.substr(1+i,i),16),e=parseInt(e.substr(1+2*i,i),16),1==i&&(r=(r<<4)+r,o=(o<<4)+o,e=(e<<4)+e),r=[r,o,e,1]):e.indexOf("rgba(")?e.indexOf("rgb(")?_(!1,14):((e=e.slice(4,-1).split(",").map(Number)).push(1),r=mo(e)):r=mo(e=e.slice(5,-1).split(",").map(Number)),e=r,fo[t]=e,++go}return e};function mo(t){var e=[];return e[0]=et(t[0]+.5|0,0,255),e[1]=et(t[1]+.5|0,0,255),e[2]=et(t[2]+.5|0,0,255),e[3]=et(t[3],0,1),e}function bo(t){return"string"==typeof t||t instanceof CanvasPattern||t instanceof CanvasGradient?t:co(t)}function xo(t,e){var o=document.createElement("CANVAS");return t&&(o.width=t),e&&(o.height=e),o.getContext("2d")}function wo(t,e){var o=e.parentNode;o&&o.replaceChild(t,e)}function So(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Po(t){oo.call(this),this.element=t.element||null,this.a=this.R=null,this.v=[],this.render=t.render||Z,t.target&&this.f(t.target)}function Mo(t){t=t||{},this.I=document.createElement("UL"),this.u=document.createElement("LI"),this.I.appendChild(this.u),this.u.style.display="none",this.c=void 0===t.collapsed||t.collapsed,this.o=void 0===t.collapsible||t.collapsible,this.o||(this.c=!1);var e=void 0!==t.className?t.className:"ol-attribution",o=void 0!==t.tipLabel?t.tipLabel:"Attributions",i=void 0!==t.collapseLabel?t.collapseLabel:"»",r=("string"==typeof i?(this.D=document.createElement("span"),this.D.textContent=i):this.D=i,"string"==typeof(i=void 0!==t.label?t.label:"i")?(this.C=document.createElement("span"),this.C.textContent=i):this.C=i,this.o&&!this.c?this.D:this.C);(i=document.createElement("button")).setAttribute("type","button"),i.title=o,i.appendChild(r),g(i,"click",this.Vm,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control"+(this.c&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible"),o.appendChild(this.I),o.appendChild(i),Po.call(this,{element:o,render:t.render||To,target:t.target}),this.B=!0,this.l={},this.j={},this.T={}}function To(t){if(t=t.frameState){var e,o,i,r,n,p,s,a=t.layerStatesArray,l=Gt({},t.attributions),h={},y={},u=t.viewState.projection,c=0;for(s=a.length;c<s;c++)if(o=a[c].layer.ha()){var f=q(o).toString();if(i=o.j)for(var d=0,g=i.length;d<g;d++){var v=i[d],m=q(v).toString();if(!(m in l)){if(e=t.usedTiles[f])t:{var b=void 0,x=v,w=P=o.Ta(u),S=u;if(x.a){for(b in e)if(b in x.a)for(var P=e[b],M=0,T=x.a[b].length;M<T;++M){var E=x.a[b][M];if(tt(E,P)){b=!0;break t}var A=Re(w,De(S),parseInt(b,10)),C=A.$-A.ca+1;if((P.ca<A.ca||P.$>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<o;++e)Ze(this.v[e]);this.v.length=0,(this.a=t)&&((this.R||t.D).appendChild(this.element),this.render!==Z&&this.v.push(g(t,"postrender",this.render,this)),t.render())},Po.prototype.f=function(t){this.R="string"==typeof t?document.getElementById(t):t},e(Mo,Po),Mo.prototype.Vm=function(t){t.preventDefault(),Eo(this)},e(Ro,Po),Ro.prototype.D=function(t){t.preventDefault(),this.o?this.o():(t=this.a.Z())&&void 0!==t.Qa()&&(0<this.l?t.animate({rotation:0,duration:this.l,easing:Co}):t.Oe(0))},e(No,Po),No.prototype.j=function(t,e){var o;e.preventDefault(),(e=this.a.Z())&&(o=e.Pa())&&(t=e.constrainResolution(o,t),0<this.c?(e.Ic()&&e.ed(),e.animate({resolution:t,duration:this.c,easing:Co})):e.Vc(t))},e(ko,Po),ko.prototype.C=function(t){t.preventDefault(),Oo()&&(t=this.a)&&(Do()?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():(t=this.j?"string"==typeof this.j?document.getElementById(this.j):this.j:t.jd(),this.D?t.mozRequestFullScreenWithKeys?t.mozRequestFullScreenWithKeys():t.webkitRequestFullscreen?t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):Uo(t):Uo(t)))},ko.prototype.u=function(){var t=this.element.firstElementChild,e=this.a;Do()?(t.className=this.c+"-true",wo(this.l,this.o)):(t.className=this.c+"-false",wo(this.o,this.l)),e&&e.Ad()},ko.prototype.setMap=function(t){Po.prototype.setMap.call(this,t),t&&this.v.push(g(document,Bo(),this.u,this))};var Go,Bo=function(){var t;return Go||((t=document.body).webkitRequestFullscreen?Go="webkitfullscreenchange":t.mozRequestFullScreen?Go="mozfullscreenchange":t.msRequestFullscreen?Go="MSFullscreenChange":t.requestFullscreen&&(Go="fullscreenchange")),Go};function Ko(t){t=t||{};var e=document.createElement("DIV");e.className=void 0!==t.className?t.className:"ol-mouse-position",Po.call(this,{element:e,render:t.render||Wo,target:t.target}),g(this,ro(Xo),this.Ym,this),t.coordinateFormat&&this.kj(t.coordinateFormat),t.projection&&this.$h(t.projection),this.u=void 0!==t.undefinedHTML?t.undefinedHTML:"",this.l=e.innerHTML,this.o=this.j=this.c=null}function Wo(t){(t=t.frameState)?this.c!=t.viewState.projection&&(this.c=t.viewState.projection,this.j=null):this.c=null,Vo(this,this.o)}function Vo(t,e){var o,i=t.u;e&&t.c&&(t.j||(o=t.Zh(),t.j=o?be(t.c,o):xe),e=t.a.Wa(e))&&(t.j(e,e),i=(i=t.xh())?i(e):e.toString()),t.l&&i==t.l||(t.element.innerHTML=i,t.l=i)}e(Ko,Po),Ko.prototype.Ym=function(){this.j=null};var Xo="projection";function zo(t,e,o){_e.call(this,t),this.map=e,this.frameState=void 0!==o?o:null}function Ho(t,e,o,i,r){zo.call(this,t,e,r),this.originalEvent=o,this.pixel=e.xe(o),this.coordinate=e.Wa(this.pixel),this.dragging=void 0!==i&&i}e(zo,_e),e(Ho,zo),Ho.prototype.preventDefault=function(){zo.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},Ho.prototype.stopPropagation=function(){zo.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()};var Zo=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function qo(t,e){for(var o,i=Zo.length,r=0;r<i;++r)try{if(o=t.getContext(Zo[r],e))return o}catch(t){}return null}var ee="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",Jo=-1!==ee.indexOf("firefox"),Yo=-1!==ee.indexOf("safari")&&-1==ee.indexOf("chrom"),_o=-1!==ee.indexOf("webkit")&&-1==ee.indexOf("edge"),$o=-1!==ee.indexOf("macintosh"),Qo=window.devicePixelRatio||1,ti=!1,ei=function(){if(!("HTMLCanvasElement"in window))return!1;try{var t=document.createElement("CANVAS").getContext("2d");return!!t&&(void 0!==t.setLineDash&&(ti=!0),!0)}catch(t){return!1}}(),ee="DeviceOrientationEvent"in window,oi="geolocation"in navigator,ii="ontouchstart"in window,ri="PointerEvent"in window,ni=!!navigator.msPointerEnabled,pi=!1,si=[];if("WebGLRenderingContext"in window)try{var ai=qo(document.createElement("CANVAS"),{failIfMajorPerformanceCaveat:!0});ai&&(pi=!0,Wu=ai.getParameter(ai.MAX_TEXTURE_SIZE),si=ai.getSupportedExtensions())}catch(t){}var li=pi,hi=si,yi=Wu,ui={Iq:"singleclick",xq:"click",yq:"dblclick",Bq:"pointerdrag",Eq:"pointermove",Aq:"pointerdown",Hq:"pointerup",Gq:"pointerover",Fq:"pointerout",Cq:"pointerenter",Dq:"pointerleave",zq:"pointercancel"};function ci(t,e,o,i,r){Ho.call(this,t,e,o.b,i,r),this.b=o}function fi(t,e){this.b=t,this.f=e}function di(t){fi.call(this,t,{mousedown:this.fm,mousemove:this.gm,mouseup:this.jm,mouseover:this.im,mouseout:this.hm}),this.a=t.i,this.i=[]}function gi(t,e){t=t.i;var o=e.clientX;e=e.clientY;for(var i,r=0,n=t.length;r<n&&(i=t[r]);r++){var p=Math.abs(e-i[1]);if(Math.abs(o-i[0])<=25&&p<=25)return 1}}function vi(t){var e=Ei(t,t),o=e.preventDefault;return e.preventDefault=function(){t.preventDefault(),o()},e.pointerId=1,e.isPrimary=!0,e.pointerType="mouse",e}function mi(t){fi.call(this,t,{MSPointerDown:this.om,MSPointerMove:this.pm,MSPointerUp:this.sm,MSPointerOut:this.qm,MSPointerOver:this.rm,MSPointerCancel:this.nm,MSGotPointerCapture:this.lm,MSLostPointerCapture:this.mm}),this.a=t.i,this.i=["","unavailable","touch","pen","mouse"]}function bi(t,e){var o=e;return"number"==typeof e.pointerType&&((o=Ei(e,e)).pointerType=t.i[e.pointerType]),o}function xi(t){fi.call(this,t,{pointerdown:this.ip,pointermove:this.jp,pointerup:this.mp,pointerout:this.kp,pointerover:this.lp,pointercancel:this.hp,gotpointercapture:this.ul,lostpointercapture:this.em})}function wi(t,e,o){var i;_e.call(this,t),this.b=e,this.buttons=function(t){if(t.buttons||Si)t=t.buttons;else switch(t.which){case 1:t=1;break;case 2:t=4;break;case 3:t=2;break;default:t=0}return t}(t=o||{}),this.pressure=(o=t,i=this.buttons,o.pressure||(i?.5:0)),this.bubbles="bubbles"in t&&t.bubbles,this.cancelable="cancelable"in t&&t.cancelable,this.view="view"in t?t.view:null,this.detail="detail"in t?t.detail:null,this.screenX="screenX"in t?t.screenX:0,this.screenY="screenY"in t?t.screenY:0,this.clientX="clientX"in t?t.clientX:0,this.clientY="clientY"in t?t.clientY:0,this.ctrlKey="ctrlKey"in t&&t.ctrlKey,this.altKey="altKey"in t&&t.altKey,this.shiftKey="shiftKey"in t&&t.shiftKey,this.metaKey="metaKey"in t&&t.metaKey,this.button="button"in t?t.button:0,this.relatedTarget="relatedTarget"in t?t.relatedTarget:null,this.pointerId="pointerId"in t?t.pointerId:0,this.width="width"in t?t.width:0,this.height="height"in t?t.height:0,this.tiltX="tiltX"in t?t.tiltX:0,this.tiltY="tiltY"in t?t.tiltY:0,this.pointerType="pointerType"in t?t.pointerType:"",this.isPrimary="isPrimary"in t&&t.isPrimary,e.preventDefault&&(this.preventDefault=function(){e.preventDefault()})}e(ci,Ho),e(di,fi),di.prototype.fm=function(t){var e;gi(this,t)||(1..toString()in this.a&&this.cancel(t),e=vi(t),this.a[1..toString()]=t,Ai(this.b,"pointerdown",e,t))},e(mi,fi),mi.prototype.om=function(t){this.a[t.pointerId.toString()]=t;var e=bi(this,t);Ai(this.b,"pointerdown",e,t)},e(xi,fi),xi.prototype.ip=function(t){Ci(this.b,t)},e(wi,_e);var Si=!1;try{Si=1===new MouseEvent("click",{buttons:1}).buttons}catch(t){}function Pi(t,e){fi.call(this,t,{touchstart:this.rq,touchmove:this.qq,touchend:this.pq,touchcancel:this.oq}),this.a=t.i,this.j=e,this.i=void 0,this.g=0,this.c=void 0}function Mi(t){Qe.call(this),this.g=t,this.i={},this.f={},this.a=[],ri?Ti(this,new xi(this)):ni?Ti(this,new mi(this)):(Ti(this,t=new di(this)),ii&&Ti(this,new Pi(this,t))),t=this.a.length;for(var e,o,i=0;i<t;i++)e=this.a[i],o=this,Object.keys(e.f).forEach(function(t){g(this.g,t,this.c,this)},o)}function Ti(t,o){var e=Object.keys(o.f);e&&(e.forEach(function(t){var e=o.f[t];e&&(this.f[t]=e.bind(o))},t),t.a.push(o))}function Ei(t,e){for(var o,i={},r=0,n=ji.length;r<n;r++)i[o=ji[r][0]]=t[o]||e[o]||ji[r][1];return i}function Ai(t,e,o,i){t.b(new wi(e,i,o))}function Ci(t,e){t.b(new wi(e.type,e,e))}e(Pi,fi),Pi.prototype.ij=function(){this.g=0,this.c=void 0},e(Mi,Qe),Mi.prototype.c=function(t){var e=this.f[t.type];e&&e(t)},Mi.prototype.out=function(t,e){t.bubbles=!0,Ai(this,"pointerout",t,e)},Mi.prototype.cancel=function(t,e){Ai(this,"pointercancel",t,e)};var ji=[["bubbles",!(Mi.prototype.ka=function(){for(var t,e,o=this.a.length,i=0;i<o;i++)t=this.a[i],e=this,Object.keys(t.f).forEach(function(t){He(this.g,t,this.c,this)},e);Qe.prototype.ka.call(this)})],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]];function Li(t,e){Qe.call(this),this.i=t,this.j=0,this.o=!1,this.f=[],this.D=e?e*Qo:Qo,this.c=null,t=this.i.a,this.S=0,this.u={},this.g=new Mi(t),this.a=null,this.l=g(this.g,"pointerdown",this.Ol,this),this.v=g(this.g,"pointermove",this.Lp,this)}function Ri(t,e){"pointerup"==e.type||"pointercancel"==e.type?delete t.u[e.pointerId]:"pointerdown"==e.type&&(t.u[e.pointerId]=!0),t.S=Object.keys(t.u).length}function Fi(t,e){this.l=t,this.c=e,this.b=[],this.i=[],this.a={}}function Ni(t){var e=t.b,o=t.i,i=e[0];return 1==e.length?o.length=e.length=0:(e[0]=e.pop(),o[0]=o.pop(),Ii(t,0)),e=t.c(i),delete t.a[e],i}function Ii(t,e){for(var o=t.b,i=t.i,r=o.length,n=o[e],p=i[e],s=e;e<r>>1;){var a=2*e+1,l=2*e+2,a=l<r&&i[l]<i[a]?l:a;o[e]=o[a],i[e]=i[a],e=a}o[e]=n,i[e]=p,ki(t,s,e)}function ki(t,e,o){for(var i=t.b,r=i[o],n=(t=t.i)[o];e<o;){var p=o-1>>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<n;++p){var s=o[p],a=e(s);1/0==a?delete t.a[t.c(s)]:(i[r]=a,o[r++]=s)}for(o.length=r,i.length=r,e=(t.b.length>>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.j<e&&n<o&&0<t.b.length;)r=(i=Ni(t)[0]).bb(),0!==i.getState()||r in t.g||(t.g[r]=!0,++t.j,++n,i.load())}function Gi(t){if(void 0!==t)return 0}function Bi(t,e){if(void 0!==t)return t+e}function Ki(t,e){return 2<(e=-1===(e=(t=void 0!==e?t.toFixed(e):""+t).indexOf("."))?t.length:e)?t:Array(3-e).join("0")+t}function Wi(t){t=(""+t).split(".");for(var e=["1","3"],o=0;o<Math.max(t.length,e.length);o++){var i=parseInt(t[o]||"0",10),r=parseInt(e[o]||"0",10);if(r<i)return 1;if(i<r)return-1}return 0}function Vi(t,e){return t[0]+=e[0],t[1]+=e[1],t}function Xi(t,e){var o=t[0],i=(t=t[1],e[0]),r=e[1],i=(e=i[0],i[1]),n=r[0],p=n-e,s=(r=r[1])-i;return o=(o=p||s?(p*(o-e)+s*(t-i))/(p*p+s*s||0):0)<=0?(t=e,i):1<=o?(t=n,r):(t=e+o*p,i+o*s),[t,o]}function zi(t,e,o){e=rt(e+180,360)-180;var i=Math.abs(3600*e),r=(o=o||0,Math.pow(10,o)),n=Math.floor(i/3600),p=Math.floor((i-3600*n)/60);return 60<=(i=Math.ceil((i-3600*n-60*p)*r)/r)&&(i=0,p+=1),60<=p&&(p=0,n+=1),n+"° "+Ki(p)+"′ "+Ki(i,o)+"″"+(e?" "+t.charAt(e<0?1:0):"")}function Hi(t,e,o){return t?e.replace("{x}",t[0].toFixed(o)).replace("{y}",t[1].toFixed(o)):""}function Zi(t,e){for(var o=!0,i=t.length-1;0<=i;--i)if(t[i]!=e[i]){o=!1;break}return o}function qi(t,e){var o=Math.cos(e),i=(e=Math.sin(e),t[1]*o+t[0]*e);return t[0]=t[0]*o-t[1]*e,t[1]=i,t}function Ji(t,e){t[0]*=e,t[1]*=e}function Yi(t,e){var o=t[0]-e[0];return o*o+(t=t[1]-e[1])*t}function _i(t,e){return Math.sqrt(Yi(t,e))}function $i(t,e){return Yi(t,Xi(t,e))}function Qi(t,e){return Hi(t,"{x}, {y}",e)}function tr(){return!0}function er(){return!1}function or(){oo.call(this),this.l=gt(),this.v=-1,this.f={},this.o=this.g=0}function ir(t,e,o,i,r,n){for(var p=n||[],s=0;e<o;e+=i){var a=t[e],l=t[e+1];p[s++]=r[0]*a+r[2]*l+r[4],p[s++]=r[1]*a+r[3]*l+r[5]}return n&&p.length!=s&&(p.length=s),p}function rr(t,e,o,i,r,n,p){for(var s,a=p||[],l=0;e<o;e+=i)for(a[l++]=t[e]+r,a[l++]=t[e+1]+n,s=e+2;s<e+i;++s)a[l++]=t[s];return p&&a.length!=l&&(a.length=l),a}function i(){or.call(this),this.ja="XY",this.a=2,this.A=null}function nr(t){var e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function pr(t,e,o){t.a=nr(e),t.ja=e,t.A=o}function sr(t,e,o,i){for(var r=0,n=t[o-i],p=t[o-i+1];e<o;e+=i)var s=t[e],a=t[e+1],r=r+(p*s-n*a),n=s,p=a;return r/2}function ar(t,e,o,i){for(var r=0,n=o.length;r<n;++r)for(var p=o[r],s=0;s<i;++s)t[e++]=p[s];return e}function lr(t,e){i.call(this),this.c=this.j=-1,this.ma(t,e)}function hr(t,e,o){pr(t,e,o),t.s()}function p(t,e){i.call(this),this.ma(t,e)}function yr(t,e,o,i,r,n){for(var p=0,s=t[o-i],a=t[o-i+1];e<o;e+=i){var l=t[e],h=t[e+1];a<=n?n<h&&0<(l-s)*(n-a)-(r-s)*(h-a)&&p++:h<=n&&(l-s)*(n-a)-(r-s)*(h-a)<0&&p--,s=l,a=h}return p}function ur(t,e,o,i,r,n){if(!o.length||!yr(t,e,o[0],i,r,n))return!1;var p;for(e=1,p=o.length;e<p;++e)if(yr(t,o[e-1],o[e],i,r,n))return!1;return!0}function cr(t,e,o,i,r,n,p){for(var s=r[n+1],a=[],l=o[0],h=t[l-i],y=t[l-i+1],u=e;u<l;u+=i){var c=t[u],f=t[u+1];(s<=y&&f<=s||y<=s&&s<=f)&&a.push(h=(s-y)/(f-y)*(c-h)+h),h=c,y=f}for(l=NaN,y=-1/0,a.sort(U),h=a[0],u=1,f=a.length;u<f;++u){var c=a[u],d=Math.abs(c-h);y<d&&ur(t,e,o,i,h=(h+c)/2,s)&&(l=h,y=d),h=c}return isNaN(l)&&(l=r[n]),p?(p.push(l,s),p):[l,s]}function fr(t,e,o,i){for(var r=0,n=t[o-i],p=t[o-i+1];e<o;e+=i)var s=t[e],a=t[e+1],r=r+(s-n)*(a+p),n=s,p=a;return 0<r}function dr(t,e,o,i){for(var r=0,n=(i=void 0!==i&&i,0),p=e.length;n<p;++n){var s=e[n],r=fr(t,r,s,o);if(n){if(i&&!r||!i&&r)return}else if(i&&r||!i&&!r)return;r=s}return 1}function gr(t,e,o,i,r){r=void 0!==r&&r;for(var n=0,p=o.length;n<p;++n){var s=o[n],a=fr(t,e,s,i);if(n?r&&!a||!r&&a:r&&a||!r&&!a)for(var a=t,l=s,h=i;e<l-h;){for(var y=0;y<h;++y){var u=a[e+y];a[e+y]=a[l-h+y],a[l-h+y]=u}e+=h,l-=h}e=s}return e}function vr(t,e,o,i){for(var r=0,n=0,p=e.length;n<p;++n)r=gr(t,r,e[n],o,i);return r}function s(t,e){i.call(this),this.c=[],this.u=-1,this.D=null,this.I=this.C=this.B=-1,this.j=null,this.ma(t,e)}function mr(t){var e;return t.u!=t.i&&(e=Ct(t.G()),t.D=cr(t.ec(),0,t.c,t.a,e,0),t.u=t.i),t.D}function br(t,e,o,i){var r,n=i||32;for(i=[],r=0;r<n;++r)K(i,t.offset(e,o,2*Math.PI*r/n));return i.push(i[0],i[1]),(t=new s(null)).ba("XY",i,[i.length]),t}function xr(t){var e=t[0],o=t[1],i=t[2],e=[e,o,e,t=t[3],i,t,i,o,e,o];return(o=new s(null)).ba("XY",e,[e.length]),o}function wr(t,e,o){for(var i=e||32,r=t.qa(),n=new s(null,e=t.ja),i=r*(i+1),r=Array(i),p=0;p<i;p++)r[p]=0;return n.ba(e,r,[r.length]),Sr(n,t.wa(),t.pd(),o),n}function Sr(t,e,o,i){var r=t.ga(),n=t.ja,p=t.qa(),s=t.Bb(),a=r.length/p-1;i=i||0;for(var l,h,y=0;y<=a;++y)h=y*p,l=i+2*rt(y,a)*Math.PI/a,r[h]=e[0]+o*Math.cos(l),r[1+h]=e[1]+o*Math.sin(l);t.ba(n,r,s)}function l(t){oo.call(this),t=Gt({},t),this.o=[0,0],this.c=[],this.wf=this.wf.bind(this),this.v=ce(t.projection),Pr(this,t)}function Pr(t,e){var o,i,r,n,p,s,a,l,h,y,u,c={},f=(c.center=void 0!==e.center?e.center:null,void 0!==e.minZoom?e.minZoom:0),d=void 0!==e.maxZoom?e.maxZoom:28,g=void 0!==e.zoomFactor?e.zoomFactor:2;d=void 0!==e.resolutions?(o=(d=e.resolutions)[0],i=d[d.length-1],a=d,function(t,e,o){if(void 0!==t)return(t=et((t=B(a,t,o))+e,0,a.length-1))!=(e=Math.floor(t))&&e<a.length-1?a[e]/Math.pow(a[e]/a[e+1],t-e):a[e]}):(r=(l=((i=(o=ce(e.projection)).G())?Math.max(It(i),Lt(i)):360*zt.degrees/o.sc())/256/Math.pow(2,0))/Math.pow(2,28),void 0!==(o=e.maxResolution)?f=0:o=l/Math.pow(g,f),void 0===(i=e.minResolution)&&(i=void 0!==e.maxZoom?void 0!==e.maxResolution?o/Math.pow(g,d):l/Math.pow(g,d):r),d=f+Math.floor(Math.log(o/i)/Math.log(g)),i=o/Math.pow(g,d-f),n=g,p=o,s=d-f,function(t,e,o){if(void 0!==t)return t=Math.max(Math.floor(Math.log(p/t)/Math.log(n)+(-o/2+.5))+e,0),void 0!==s&&(t=Math.min(t,s)),p/Math.pow(n,t)}),t.a=o,t.f=i,t.C=g,t.j=e.resolutions,t.l=f,f=void 0===e.enableRotation||e.enableRotation?void 0===(f=e.constrainRotation)||!0===f?(y=it(5),function(t,e){if(void 0!==t)return Math.abs(t+e)<=y?0:t+e}):!1!==f&&"number"==typeof f?(l=f,h=2*Math.PI/l,function(t,e){if(void 0!==t)return Math.floor((t+e)/h+.5)*h}):Bi:Gi,t.g={center:void 0!==e.extent?(u=e.extent,function(t){if(t)return[et(t[0],u[0],u[2]),et(t[1],u[1],u[3])]}):Ge,resolution:d,rotation:f},void 0!==e.resolution?c.resolution=e.resolution:void 0!==e.zoom&&(c.resolution=t.constrainResolution(t.a,e.zoom-t.l)),c.rotation=void 0!==e.rotation?e.rotation:0,t.H(c),t.D=e}function Mr(t,e,o){var i,r=t.wa();return t=t.Pa(),i=void 0!==r&&void 0!==t?[o[0]-e*(o[0]-r[0])/t,o[1]-e*(o[1]-r[1])/t]:i}function Tr(t,e){return void 0!==e?(e[0]=t.o[0],e[1]=t.o[1],e):t.o.slice()}function Er(t){return t.wa()&&void 0!==t.Pa()}function Ar(t,e,o){t.o[e]+=o,t.s()}function Cr(t,e,o){this.f=t,this.c=e,this.g=o,this.b=[],this.a=this.i=0}function jr(t){t.b.length=0,t.i=0,t.a=0}function Lr(t){oo.call(this),this.v=null,this.Ha(!0),this.handleEvent=t.handleEvent}function Rr(t,e,o,i){var r,n;void 0!==e&&(r=t.Qa(),n=t.wa(),void 0!==r&&n&&0<i?t.animate({rotation:e,anchor:o,duration:i,easing:Co}):t.rotate(e,o))}function Fr(t,e,o,i){var r,n=t.Pa();e=t.constrainResolution(n,e,0),o&&void 0!==e&&e!==n&&(r=t.wa(),o=Mr(t,e,o),o=t.Ec(o),o=[(e*r[0]-n*o[0])/(e-n),(e*r[1]-n*o[1])/(e-n)]),Nr(t,e,o,i)}function Nr(t,e,o,i){var r,n;e&&(r=t.Pa(),n=t.wa(),void 0!==r&&n&&e!==r&&i?t.animate({resolution:e,anchor:o,duration:i,easing:Co}):(o&&(o=Mr(t,e,o),t.ob(o)),t.Vc(e)))}function Ir(t){this.a=(t=t||{}).delta||1,Lr.call(this,{handleEvent:kr}),this.g=void 0!==t.duration?t.duration:250}function kr(t){var e=!1,o=t.originalEvent;return"dblclick"==t.type&&(e=t.coordinate,o=o.shiftKey?-this.a:this.a,Fr(t.map.Z(),o,e,this.g),t.preventDefault(),e=!0),!e}function Or(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function Dr(t){return!((t=t.originalEvent).button||_o&&$o&&t.ctrlKey)}function Ur(t){return"pointermove"==t.type}function Gr(t){return"singleclick"==t.type}function Br(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}function Kr(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function Wr(t){return"INPUT"!==(t=t.originalEvent.target.tagName)&&"SELECT"!==t&&"TEXTAREA"!==t}function Vr(t){return _(t.b,56),"mouse"==t.b.pointerType}function Xr(t){return(t=t.b).isPrimary&&0===t.button}function zr(t){Lr.call(this,{handleEvent:(t=t||{}).handleEvent||Zr}),this.yf=t.handleDownEvent||er,this.If=t.handleDragEvent||Z,this.Jf=t.handleMoveEvent||Z,this.sk=t.handleUpEvent||er,this.D=!1,this.na={},this.o=[]}function Hr(t){for(var e=t.length,o=0,i=0,r=0;r<e;r++)o+=t[r].clientX,i+=t[r].clientY;return[o/e,i/e]}function Zr(t){var e,o;return!(t instanceof ci&&(e=!1,"pointerdown"!==(o=t.type)&&"pointerdrag"!==o&&"pointerup"!==o||(o=t.b,"pointerup"==t.type?delete this.na[o.pointerId]:("pointerdown"==t.type||o.pointerId in this.na)&&(this.na[o.pointerId]=o),this.o=Kt(this.na)),this.D?"pointerdrag"==t.type?this.If(t):"pointerup"==t.type&&(this.D=this.sk(t)&&0<this.o.length):"pointerdown"==t.type?(this.D=t=this.yf(t),e=this.Xc(t)):"pointermove"==t.type&&this.Jf(t),e))}function qr(t){zr.call(this,{handleDownEvent:_r,handleDragEvent:Jr,handleUpEvent:Yr}),this.a=(t=t||{}).kinetic,this.g=null,this.u=t.condition||Br,this.j=!1}function Jr(t){var e,o,i=this.o,r=Hr(i);i.length==this.l?(this.a&&this.a.b.push(r[0],r[1],Date.now()),this.g&&(Ji(o=[o=this.g[0]-r[0],r[1]-this.g[1]],(e=(t=t.map.Z()).getState()).resolution),qi(o,e.rotation),Vi(o,e.center),o=t.Ec(o),t.ob(o))):this.a&&jr(this.a),this.g=r,this.l=i.length}function Yr(t){var e,o,i,r=t.map;return t=r.Z(),this.o.length?(this.a&&jr(this.a),!(this.g=null)):(!this.j&&this.a&&function(t){if(!(t.b.length<6)){var e=Date.now()-t.g,o=t.b.length-3;if(!(t.b[2+o]<e)){for(var i,r=o-3;0<r&&t.b[r+2]>e;)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.o.length&&this.u(t))&&(e=t.map.Z(),this.g=null,this.D||Ar(e,1,1),Tr(e)[0]&&e.ob(t.frameState.viewState.center),this.a&&jr(this.a),this.j=1<this.o.length,!0)}function $r(t){t=t||{},zr.call(this,{handleDownEvent:en,handleDragEvent:Qr,handleUpEvent:tn}),this.g=t.condition||Or,this.a=void 0,this.j=void 0!==t.duration?t.duration:250}function Qr(t){var e,o,i;Vr(t)&&(e=(o=t.map).Z()).g.rotation!==Gi&&(o=o.Ob(),t=t.pixel,t=Math.atan2(o[1]/2-t[1],t[0]-o[0]/2),void 0!==this.a&&(o=t-this.a,i=e.Qa(),Rr(e,i-o)),this.a=t)}function tn(t){if(!Vr(t))return!0;Ar(t=t.map.Z(),1,-1);var e=t.Qa(),o=this.j,e=t.constrainRotation(e,0);return Rr(t,e,void 0,o),!1}function en(t){return!!(Vr(t)&&Dr(t)&&this.g(t))&&(Ar(t.map.Z(),1,1),!(this.a=void 0))}function on(t){this.Gc=null,this.a=document.createElement("div"),this.a.style.position="absolute",this.a.className="ol-box "+t,this.i=this.c=this.b=null}function rn(t){var e=t.c,o=t.i;(t=t.a.style).left=Math.min(e[0],o[0])+"px",t.top=Math.min(e[1],o[1])+"px",t.width=Math.abs(o[0]-e[0])+"px",t.height=Math.abs(o[1]-e[1])+"px"}function nn(t){var e=t.c,o=t.i;(e=[e,[e[0],o[1]],o,[o[0],e[1]]].map(t.b.Wa,t.b))[4]=e[0].slice(),t.Gc?t.Gc.ma([e]):t.Gc=new s([e])}function pn(t){zr.call(this,{handleDownEvent:hn,handleDragEvent:an,handleUpEvent:ln}),this.a=new on((t=t||{}).className||"ol-dragbox"),this.u=void 0!==t.minArea?t.minArea:64,this.g=null,this.C=t.condition||tr,this.l=t.boxEndCondition||sn}function sn(t,e,o){return(t=o[0]-e[0])*t+(e=o[1]-e[1])*e>=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;1<p&&"function"==typeof arguments[p-1]&&(e=arguments[p-1],--p);for(var s=[],a=0;a<p;++a){var l=arguments[a],h={start:o,complete:!1,anchor:l.anchor,duration:void 0!==l.duration?l.duration:1e3,easing:l.easing||jo};l.center&&(h.Rg=i,h.Tg=l.center,i=h.Tg),void 0!==l.zoom?(h.tf=r,h.zd=this.constrainResolution(this.a,l.zoom-this.l,0),r=h.zd):l.resolution&&(h.tf=r,h.zd=l.resolution,r=h.zd),void 0!==l.rotation&&(h.Sg=n,h.uf=l.rotation,n=h.uf),h.callback=e,o+=h.duration,s.push(h)}this.c.push(s),Ar(this,0,1),this.wf()},e(Lr,oo),Lr.prototype.c=function(){return this.get("active")},Lr.prototype.f=function(){return this.v},Lr.prototype.Ha=function(t){this.set("active",t)},Lr.prototype.setMap=function(t){this.v=t},e(Ir,Lr),e(zr,Lr),zr.prototype.Xc=function(t){return t},e(qr,zr),qr.prototype.Xc=er,e($r,zr),$r.prototype.Xc=er,e(on,Je),on.prototype.ka=function(){this.setMap(null)},on.prototype.setMap=function(t){var e;this.b&&(this.b.C.removeChild(this.a),(e=this.a.style).left=e.top=e.width=e.height="inherit"),(this.b=t)&&this.b.C.appendChild(this.a)},on.prototype.V=function(){return this.Gc},e(pn,zr),pn.prototype.V=function(){return this.a.V()},pn.prototype.j=Z;var yn="boxstart",un="boxdrag",cn="boxend";function fn(t,e,o){_e.call(this,t),this.coordinate=e,this.mapBrowserEvent=o}function dn(t){var e=(t=t||{}).condition||Kr;this.B=void 0!==t.duration?t.duration:200,this.I=void 0!==t.out&&t.out,pn.call(this,{condition:e,className:t.className||"ol-dragzoom"})}function gn(t){Lr.call(this,{handleEvent:vn}),t=t||{},this.a=function(t){return Br(t)&&Wr(t)},this.g=t.condition||this.a,this.j=void 0!==t.duration?t.duration:100,this.o=void 0!==t.pixelDelta?t.pixelDelta:128}function vn(t){var e,o,i,r,n=!1;return"keydown"==t.type&&(e=t.originalEvent.keyCode,!this.g(t)||40!=e&&37!=e&&39!=e&&38!=e||(o=(n=t.map.Z()).Pa()*this.o,r=i=0,40==e?r=-o:37==e?i=-o:39==e?i=o:r=o,qi(o=[i,r],n.Qa()),e=this.j,(i=n.wa())&&(o=n.Ec([i[0]+o[0],i[1]+o[1]]),e?n.animate({duration:e,easing:Lo,center:o}):n.ob(o)),t.preventDefault(),n=!0)),!n}function mn(t){Lr.call(this,{handleEvent:bn}),this.g=(t=t||{}).condition||Wr,this.a=t.delta||1,this.j=void 0!==t.duration?t.duration:100}function bn(t){var e,o=!1;return"keydown"!=t.type&&"keypress"!=t.type||(e=t.originalEvent.charCode,!this.g(t))||43!=e&&45!=e||(o=43==e?this.a:-this.a,Fr(e=t.map.Z(),o,void 0,this.j),t.preventDefault(),o=!0),!o}function xn(t){Lr.call(this,{handleEvent:wn}),t=t||{},this.j=0,this.D=void 0!==t.duration?t.duration:250,this.na=void 0!==t.timeout?t.timeout:80,this.C=void 0===t.useAnchor||t.useAnchor,this.R=t.constrainResolution||!1,this.a=null,this.l=this.o=this.u=this.g=void 0}function wn(t){if("wheel"!==(p=t.type)&&"mousewheel"!==p)return!0;t.preventDefault();var e,o,i,r,n,p=t.map,s=t.originalEvent;return this.C&&(this.a=t.coordinate),"wheel"==t.type?(e=s.deltaY,Jo&&s.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=Qo),s.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)):"mousewheel"==t.type&&(e=-s.wheelDeltaY,Yo)&&(e/=3),0!==e&&(t=Date.now(),void 0===this.g&&(this.g=t),(!this.o||400<t-this.g)&&(this.o=Math.abs(e)<4?Sn:Pn),this.o===Sn?(p=p.Z(),this.l?clearTimeout(this.l):Ar(p,1,1),this.l=setTimeout(this.B.bind(this),400),s=p.Pa()*Math.pow(2,e/300),o=p.f,i=p.a,r=0,s<o?(s=Math.max(s,o/1.5),r=1):i<s&&(s=Math.min(s,1.5*i),r=-1),this.a&&(n=Mr(p,s,this.a),p.ob(p.Ec(n))),p.Vc(s),!r&&this.R&&p.animate({resolution:p.constrainResolution(s,0<e?-1:1),easing:Co,anchor:this.a,duration:this.D}),0<r?p.animate({resolution:o,easing:Co,anchor:this.a,duration:500}):r<0&&p.animate({resolution:i,easing:Co,anchor:this.a,duration:500}),this.g=t):(this.j+=e,e=Math.max(this.na-(t-this.g),0),clearTimeout(this.u),this.u=setTimeout(this.I.bind(this,p),e))),!1}e(fn,_e),e(dn,pn),dn.prototype.j=function(){var t=(r=this.v).Z(),e=r.Ob(),o=this.V().G();if(this.I){for(var i=t.dd(e),o=[r.Ja(Et(o)),r.Ja(Nt(o))],r=mt(void 0),n=0,p=o.length;n<p;++n)Pt(r,o[n]);Dt(i,1/(o=t.ze(r,e))),o=i}e=t.constrainResolution(t.ze(o,e)),i=Ct(o),i=t.Ec(i),t.animate({resolution:e,center:i,duration:this.B,easing:Co})},e(gn,Lr),e(mn,Lr),e(xn,Lr),xn.prototype.B=function(){this.l=void 0,Ar(this.v.Z(),1,-1)},xn.prototype.I=function(t){(t=t.Z()).Ic()&&t.ed(),Fr(t,-et(this.j,-1,1),this.a,this.D),this.o=void 0,this.j=0,this.a=null,this.u=this.g=void 0},xn.prototype.T=function(t){(this.C=t)||(this.a=null)};var Sn="trackpad",Pn="wheel";function Mn(t){zr.call(this,{handleDownEvent:An,handleDragEvent:Tn,handleUpEvent:En}),t=t||{},this.g=null,this.j=void 0,this.a=!1,this.l=0,this.C=void 0!==t.threshold?t.threshold:.3,this.u=void 0!==t.duration?t.duration:250}function Tn(t){var e,o=0,i=this.o[0],r=this.o[1],i=Math.atan2(r.clientY-i.clientY,r.clientX-i.clientX);void 0!==this.j&&(o=i-this.j,this.l+=o,!this.a)&&Math.abs(this.l)>this.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):o<p&&(e=p/i,o=p),1!=e&&(this.j=e),e=t.a.getBoundingClientRect(),(i=Hr(this.o))[0]-=e.left,i[1]-=e.top,this.g=t.Wa(i),t.render(),Nr(r,o,this.g)}function Ln(t){var e,o,i;return!(this.o.length<2&&(Ar(t=t.map.Z(),1,-1),i=t.Pa(),(this.l||i<t.f||i>t.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&&e<t.maxResolution}function Un(){this.b={},this.a=0}e(o,Nn),o.prototype.Yf=function(t){return(t=t||[]).push(In(this)),t},Un.prototype.clear=function(){this.b={},this.a=0},Un.prototype.get=function(t,e,o){return(t=e+":"+t+":"+(o?co(o):"null"))in this.b?this.b[t]:null},Un.prototype.set=function(t,e,o,i){this.b[e+":"+t+":"+(o?co(o):"null")]=i,++this.a};var Gn=new Un,Bn=Array(6);function Kn(){return[1,0,0,1,0,0]}function Wn(t){return Xn(t,1,0,0,1,0,0)}function Vn(t,e){var o=t[0],i=t[1],r=t[2],n=t[3],p=t[4],s=t[5],a=e[0],l=e[1],h=e[2],y=e[3],u=e[4];return e=e[5],t[0]=o*a+r*l,t[1]=i*a+n*l,t[2]=o*h+r*y,t[3]=i*h+n*y,t[4]=o*u+r*e+p,t[5]=i*u+n*e+s,t}function Xn(t,e,o,i,r,n,p){return t[0]=e,t[1]=o,t[2]=i,t[3]=r,t[4]=n,t[5]=p,t}function zn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Hn(t,e){var o=e[0],i=e[1];return e[0]=t[0]*o+t[2]*i+t[4],e[1]=t[1]*o+t[3]*i+t[5],e}function Zn(t,e){var o=Math.cos(e);e=Math.sin(e),Vn(t,Xn(Bn,o,e,-e,o,0,0))}function qn(t,e,o){return Vn(t,Xn(Bn,e,0,0,o,0,0))}function Jn(t,e,o){Vn(t,Xn(Bn,1,0,0,1,e,o))}function Yn(t,e,o,i,r,n,p,s){var a=Math.sin(n);return n=Math.cos(n),t[0]=i*n,t[1]=r*a,t[2]=-i*a,t[3]=r*n,t[4]=p*i*n-s*i*a+e,t[5]=p*r*a+s*r*n+o,t}function _n(t){var e=t[0]*t[3]-t[1]*t[2],o=(_(!!e,32),t[0]),i=t[1],r=t[2],n=t[3],p=t[4],s=t[5];return t[0]=n/e,t[1]=-i/e,t[2]=-r/e,t[3]=o/e,t[4]=(r*s-n*p)/e,t[5]=-(o*s-i*p)/e,t}function $n(t,e){this.o=e,this.c={},this.v={}}function Qn(t){var e=t.viewState,o=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;Yn(o,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),_n(zn(i,o))}function tp(){if(32<Gn.a){var t,e=0;for(t in Gn.b){var o=Gn.b[t];3&e++||to(o)||(delete Gn.b[t],--Gn.a)}}}function ep(t,e){var o=q(e).toString();return o in t.c?t.c[o]:(e=e.Fd(t),t.c[o]=e,t.v[o]=g(e,"change",t.Fl,t),e)}function op(t,e){for(var o in t.c)if(!(o in e.layerStates)){e.postRenderFunctions.push(t.Rp.bind(t));break}}function ip(t,e){return t.zIndex-e.zIndex}function rp(t,e,o,i,r){_e.call(this,t),this.vectorContext=e,this.frameState=o,this.context=i,this.glContext=r}e($n,Je),$n.prototype.ka=function(){for(var t in this.c)Ye(this.c[t])},e(rp,_e);var np=[0,0,0,1],pp=[],sp=[0,0,0,1];function ap(t,e,o,i){e&&(t.translate(o,i),t.rotate(e),t.translate(-o,-i))}function lp(){}function hp(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=Kn()}function yp(t,e,o,i){var r=0;if(t.ra&&""!==t.Ia){t.g&&up(t,t.g),t.o&&cp(t,t.o);var n=t.ra,p=t.i;for((a=t.Ua)?(a.font!=n.font&&(a.font=p.font=n.font),a.textAlign!=n.textAlign&&(a.textAlign=p.textAlign=n.textAlign),a.textBaseline!=n.textBaseline&&(a.textBaseline=p.textBaseline=n.textBaseline)):(p.font=n.font,p.textAlign=n.textAlign,p.textBaseline=n.textBaseline,t.Ua={font:n.font,textAlign:n.textAlign,textBaseline:n.textBaseline}),e=ir(e,r,o,i,t.S,t.v),n=t.i,p=t.$a,t.Sa&&(p+=t.Yb);r<o;r+=i){var s,a=e[r]+t.Jb,l=e[r+1]+t.va;!p&&1==t.j||(s=Yn(t.xb,a,l,t.j,t.j,p,-a,-l),n.setTransform.apply(n,s)),t.o&&n.strokeText(t.Ia,a,l),t.g&&n.fillText(t.Ia,a,l)}!p&&1==t.j||n.setTransform(1,0,0,1,0,0)}}function up(t,e){var o=t.i,i=t.I;i?i.fillStyle!=e.fillStyle&&(i.fillStyle=o.fillStyle=e.fillStyle):(o.fillStyle=e.fillStyle,t.I={fillStyle:e.fillStyle})}function cp(t,e){var o=t.i,i=t.R;i?(i.lineCap!=e.lineCap&&(i.lineCap=o.lineCap=e.lineCap),ti&&!X(i.lineDash,e.lineDash)&&o.setLineDash(i.lineDash=e.lineDash),i.lineJoin!=e.lineJoin&&(i.lineJoin=o.lineJoin=e.lineJoin),i.lineWidth!=e.lineWidth&&(i.lineWidth=o.lineWidth=e.lineWidth),i.miterLimit!=e.miterLimit&&(i.miterLimit=o.miterLimit=e.miterLimit),i.strokeStyle!=e.strokeStyle&&(i.strokeStyle=o.strokeStyle=e.strokeStyle)):(o.lineCap=e.lineCap,ti&&o.setLineDash(e.lineDash),o.lineJoin=e.lineJoin,o.lineWidth=e.lineWidth,o.miterLimit=e.miterLimit,o.strokeStyle=e.strokeStyle,t.R={lineCap:e.lineCap,lineDash:e.lineDash,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})}function fp(t,e){$n.call(this,0,e),this.i=xo(),this.b=this.i.canvas,this.b.style.width="100%",this.b.style.height="100%",this.b.style.display="block",this.b.className="ol-unselectable",t.insertBefore(this.b,t.childNodes[0]||null),this.a=!0,this.f=Kn()}function dp(t,e,o){var i,r,n,p,s,a=t.o,l=t.i;to(a,e)&&(i=o.extent,n=o.viewState.rotation,s=(r=o.pixelRatio)/(p=o.viewState).resolution,t=Yn(t.f,t.b.width/2,t.b.height/2,s,-s,-p.rotation,-p.center[0],-p.center[1]),a.b(new rp(e,new hp(l,r,i,t,n),o,l,null)))}lp.prototype.zb=function(){},e(hp,lp),hp.prototype.Zb=function(t){var e,o,i;kt(this.c,t.G())&&((this.a||this.b)&&(this.a&&up(this,this.a),this.b&&cp(this,this.b),e=this.S,o=this.v,o=(e=(i=t.ga())?ir(i,0,i.length,t.qa(),e,o):null)[2]-e[0],i=e[3]-e[1],o=Math.sqrt(o*o+i*i),(i=this.i).beginPath(),i.arc(e[0],e[1],o,0,2*Math.PI),this.a&&i.fill(),this.b)&&i.stroke(),""!==this.Ia)&&yp(this,t.wa(),2,2)},e(fp,$n),fp.prototype.U=function(){return"canvas"},fp.prototype.Jg=function(t){if(t){for(var e=this.i,o=t.pixelRatio,i=Math.round(t.size[0]*o),r=Math.round(t.size[1]*o),n=(this.b.width!=i||this.b.height!=r?(this.b.width=i,this.b.height=r):e.clearRect(0,0,i,r),o=t.viewState.rotation,Qn(t),dp(this,"precompose",t),t.layerStatesArray),i=(z(n),o&&(e.save(),ap(e,o,i/2,r/2)),t.viewState.resolution),r=0,p=n.length;r<p;++r){var s=n[r],a=ep(this,a=s.layer);Dn(s,i)&&"ready"==s.yj&&a.sd(t,s)&&a.S(t,s,e)}o&&e.restore(),dp(this,"postcompose",t),this.a||(this.b.style.display="",this.a=!0),op(this,t),t.postRenderFunctions.push(tp)}else this.a&&(this.b.style.display="none",this.a=!1)},fp.prototype.Di=function(t,e,o,i,r,n){var p=e.viewState.resolution,s=e.layerStatesArray,a=s.length;for(t=Hn(e.pixelToCoordinateTransform,t.slice()),--a;0<=a;--a){var l=s[a],h=l.layer;if(Dn(l,p)&&r.call(n,h)&&(l=ep(this,h).u(t,e,o,i)))return l}};var gp=["Polygon","Circle","LineString","Image","Text"];function vp(){}function mp(t){this.b=t}function bp(t){this.b=t}function xp(t){this.b=t}function wp(){this.b="precision mediump float;varying vec2 a;varying vec2 b;varying float c;varying float d;uniform float m;uniform vec4 n;uniform vec4 o;uniform vec2 p;void main(void){vec2 windowCenter=vec2((a.x+1.0)/2.0*p.x*d,(a.y+1.0)/2.0*p.y*d);vec2 windowOffset=vec2((b.x+1.0)/2.0*p.x*d,(b.y+1.0)/2.0*p.y*d);float radius=length(windowCenter-windowOffset);float dist=length(windowCenter-gl_FragCoord.xy);if(dist>radius+c){if(o.a==0.0){gl_FragColor=n;}else{gl_FragColor=o;}gl_FragColor.a=gl_FragColor.a-(dist-(radius+c));}else if(n.a==0.0){gl_FragColor=o;if(dist<radius-c){gl_FragColor.a=gl_FragColor.a-(radius-c-dist);}} else{gl_FragColor=n;float strokeDist=radius-c;float antialias=2.0*d;if(dist>strokeDist){gl_FragColor=o;}else if(dist>=strokeDist-antialias){float step=smoothstep(strokeDist-antialias,strokeDist,dist);gl_FragColor=mix(n,o,step);}} gl_FragColor.a=gl_FragColor.a*m;if(gl_FragColor.a<=0.0){discard;}}"}e(bp,mp),bp.prototype.U=function(){return 35632},e(xp,mp),xp.prototype.U=function(){return 35633},e(wp,bp);function Sp(){this.b="varying vec2 a;varying vec2 b;varying float c;varying float d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;void main(void){mat4 offsetMatrix=i*j;a=vec4(h*vec4(e,0.0,1.0)).xy;d=l;float lineWidth=k*l;c=lineWidth/2.0;if(lineWidth==0.0){lineWidth=2.0*l;}vec2 offset;float radius=g+3.0*l;if(f==0.0){offset=vec2(-1.0,1.0);}else if(f==1.0){offset=vec2(-1.0,-1.0);}else if(f==2.0){offset=vec2(1.0,-1.0);}else{offset=vec2(1.0,1.0);}gl_Position=h*vec4(e+offset*radius,0.0,1.0)+offsetMatrix*vec4(offset*lineWidth,0.0,0.0);b=vec4(h*vec4(e.x+g,e.y,0.0,1.0)).xy;if(distance(a,b)>20000.0){gl_Position=vec4(a,0.0,1.0);}}"}e(Sp,xp);function Pp(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function Mp(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}function Tp(t,e){this.origin=Ct(e),this.xb=Kn(),this.Sa=Kn(),this.$a=Kn(),this.Jb=Pp(),this.b=[],this.o=null,this.i=[],this.f=[],this.a=[],this.l=null,this.g=void 0}e(Tp,lp),Tp.prototype.La=function(t,e,o,i,r,n,p,s,a,l,h){var y,u,c,f,d,g,v,m,b,x=t.b,w=(this.g&&(y=x.isEnabled(x.STENCIL_TEST),u=x.getParameter(x.STENCIL_FUNC),c=x.getParameter(x.STENCIL_VALUE_MASK),f=x.getParameter(x.STENCIL_REF),d=x.getParameter(x.STENCIL_WRITEMASK),g=x.getParameter(x.STENCIL_FAIL),v=x.getParameter(x.STENCIL_PASS_DEPTH_PASS),m=x.getParameter(x.STENCIL_PASS_DEPTH_FAIL),x.enable(x.STENCIL_TEST),x.clear(x.STENCIL_BUFFER_BIT),x.stencilMask(255),x.stencilFunc(x.ALWAYS,1,255),x.stencilOp(x.KEEP,x.KEEP,x.REPLACE),this.g.La(t,e,o,i,r,n,p,s,a,l,h),x.stencilMask(0),x.stencilFunc(x.NOTEQUAL,1,255)),Ip(t,34962,this.l),Ip(t,34963,this.o),n=this.rf(x,t,r,n),Wn(this.xb));return qn(w,2/(o*r[0]),2/(o*r[1])),Zn(w,-i),Jn(w,-(e[0]-this.origin[0]),-(e[1]-this.origin[1])),qn(e=Wn(this.$a),2/r[0],2/r[1]),r=Wn(this.Sa),i&&Zn(r,-i),x.uniformMatrix4fv(n.i,!1,Mp(this.Jb,w)),x.uniformMatrix4fv(n.f,!1,Mp(this.Jb,e)),x.uniformMatrix4fv(n.c,!1,Mp(this.Jb,r)),x.uniform1f(n.a,p),a?b=t=l?this.ve(x,t,s,a,h):(x.clear(x.COLOR_BUFFER_BIT|x.DEPTH_BUFFER_BIT),this.Od(x,t,s,!0),(t=a(null))||void 0):this.Od(x,t,s,!1),this.sf(x,n),this.g&&(y||x.disable(x.STENCIL_TEST),x.clear(x.STENCIL_BUFFER_BIT),x.stencilFunc(u,f,c),x.stencilMask(d),x.stencilOp(g,m,v)),b};function Ep(t,e,o,i,r,n){return(t=(o-t)*(n-e)-(r-t)*(i-e))<=Ap&&-Ap<=t?void 0:0<t}var Ap=Number.EPSILON||2220446049250313e-31;function Cp(t){this.b=void 0!==t?t:[],this.a=jp}var jp=35044;function Lp(t,e){Tp.call(this,0,e),this.v=null,this.j=[],this.u=[],this.S=0,this.c={fillColor:null,strokeColor:null,lineDash:null,lineDashOffset:void 0,lineWidth:void 0,s:!1}}function Rp(){this.b="precision mediump float;varying vec2 a;varying float b;uniform float k;uniform sampler2D l;void main(void){vec4 texColor=texture2D(l,a);gl_FragColor.rgb=texColor.rgb;float alpha=texColor.a*b*k;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(Lp,Tp),Lp.prototype.Zb=function(t,e){var o=t.pd(),i=t.qa();if(o){this.i.push(this.b.length),this.f.push(e),this.c.s&&(this.u.push(this.b.length),this.c.s=!1),this.S=o,t=rr(t=t.ga(),0,2,i,-this.origin[0],-this.origin[1]),e=this.a.length;for(var o=this.b.length,r=e/4,n=0;n<2;n+=i)this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=0,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=1,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=2,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=3,this.a[e++]=this.S,this.b[o++]=r,this.b[o++]=r+1,this.b[o++]=r+2,this.b[o++]=r+2,this.b[o++]=r+3,this.b[o++]=r,r+=4}else this.c.s&&(this.j.pop(),this.j.length)&&(i=this.j[this.j.length-1],this.c.fillColor=i[0],this.c.strokeColor=i[1],this.c.lineWidth=i[2],this.c.s=!1)},e(Rp,bp);function Fp(){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(Fp,xp);function Np(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=G(hi,"OES_element_index_uint"))&&e.getExtension("OES_element_index_uint"),g(this.j,"webglcontextlost",this.Xo,this),g(this.j,"webglcontextrestored",this.Yo,this)}function Ip(t,e,o){var i,r,n=t.b,p=o.b,s=String(q(o));s in t.a?n.bindBuffer(e,t.a[s].buffer):(i=n.createBuffer(),n.bindBuffer(e,i),34962==e?r=new Float32Array(p):34963==e&&(r=new(t.g?Uint32Array:Uint16Array)(p)),n.bufferData(e,r,o.a),t.a[s]={lc:o,buffer:i})}function kp(t,e){var o=t.b,i=(e=String(q(e)),t.a[e]);o.isContextLost()||o.deleteBuffer(i.buffer),delete t.a[e]}function Op(t){var e,o,i,r;return t.f||(o=(e=t.b).createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,o),i=Bp(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 Dp(t,e){var o,i,r=String(q(e));return r in t.c?t.c[r]:(i=(o=t.b).createShader(e.U()),o.shaderSource(i,e.b),o.compileShader(i),t.c[r]=i)}function Up(t,e,o){var i,r,n=q(e)+"/"+q(o);return n in t.i?t.i[n]:(r=(i=t.b).createProgram(),i.attachShader(r,Dp(t,e)),i.attachShader(r,Dp(t,o)),i.linkProgram(r),t.i[n]=r)}function Gp(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 Bp(t,e,o){var i=Gp(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 Kp(t,e){var o=Gp(t,33071,33071);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),o}function Wp(t,e){Tp.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 Vp(t,e,o){var i=e-o;return t[0]===t[i]&&t[1]===t[1+i]&&3<+e/o&&!!sr(t,0,e,o)}function Xp(){this.b="precision mediump float;varying float a;varying vec2 b;varying float c;uniform float m;uniform vec4 n;uniform vec2 o;uniform float p;void main(void){if(a>0.0){vec2 windowCoords=vec2((b.x+1.0)/2.0*o.x*p,(b.y+1.0)/2.0*o.y*p);if(length(windowCoords-gl_FragCoord.xy)>c*p){discard;}} gl_FragColor=n;float alpha=n.a*m;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(Np,Je),Np.prototype.ka=function(){qe(this.j);var t=this.b;if(!t.isContextLost()){for(var e in this.a)t.deleteBuffer(this.a[e].buffer);for(e in this.i)t.deleteProgram(this.i[e]);for(e in this.c)t.deleteShader(this.c[e]);t.deleteFramebuffer(this.f),t.deleteRenderbuffer(this.l),t.deleteTexture(this.v)}},e(Wp,Tp),Wp.prototype.Eb=function(o){var i=this.l,r=this.o,n=this.va,p=this.u,s=o.b;return function(){if(!s.isContextLost()){for(var t=0,e=n.length;t<e;++t)s.deleteTexture(n[t]);for(t=0,e=p.length;t<e;++t)s.deleteTexture(p[t])}kp(o,i),kp(o,r)}},e(Xp,bp);function zp(){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(zp,xp);function Hp(t,e){Tp.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 Zp(t,e,o,i){for(var r=t.a.length,n=t.b.length,p="bevel"===t.c.lineJoin?0:"miter"===t.c.lineJoin?1:2,s="butt"===t.c.lineCap?0:"square"===t.c.lineCap?1:2,a=Vp(e,o,i),l=n,h=1,y=0;y<o;y+=i){var u,c=r/7,f=d,d=u||[e[y],e[y+1]];if(y){if(y===o-i){a?u=g:(r=qp(t,f=f||[0,0],d,[0,0],h*Qp*(s||1),r),r=qp(t,f,d,[0,0],-h*Qp*(s||1),r),t.b[n++]=c,t.b[n++]=l-1,t.b[n++]=l,t.b[n++]=l,t.b[n++]=c+1,t.b[n++]=c,s&&(r=qp(t,f,d,[0,0],h*es*s,r),r=qp(t,f,d,[0,0],-h*es*s,r),t.b[n++]=c+2,t.b[n++]=c,t.b[n++]=c+1,t.b[n++]=c+1,t.b[n++]=c+3,t.b[n++]=c+2));break}u=[e[y+i],e[y+i+1]]}else{if(u=[e[y+i],e[y+i+1]],+o==2*i&&X(d,u))break;if(!a){s&&(r=qp(t,[0,0],d,u,h*ts*s,r),r=qp(t,[0,0],d,u,-h*ts*s,r),t.b[n++]=c+2,t.b[n++]=c,t.b[n++]=c+1,t.b[n++]=c+1,t.b[n++]=c+3,t.b[n++]=c+2),r=qp(t,[0,0],d,u,h*$p*(s||1),r),l=(r=qp(t,[0,0],d,u,-h*$p*(s||1),r))/7-1;continue}var f=[e[o-2*i],e[o-2*i+1]],g=u}var v=Ep(f[0],f[1],d[0],d[1],u[0],u[1])?-1:1,r=qp(t,f,d,u,v*os*(p||1),r);r=qp(t,f,d,u,v*is*(p||1),r),r=qp(t,f,d,u,-v*rs*(p||1),r),0<y&&(t.b[n++]=c,t.b[n++]=l-1,t.b[n++]=l,t.b[n++]=c+2,t.b[n++]=c,t.b[n++]=0<h*v?l:l-1),t.b[n++]=c,t.b[n++]=c+2,t.b[n++]=c+1,l=c+2,h=v,p&&(r=qp(t,f,d,u,v*ns*p,r),t.b[n++]=c+1,t.b[n++]=c+3,t.b[n++]=c)}a&&(c=c||r/7,r=qp(t,f,d,u,(v=fr([f[0],f[1],d[0],d[1],u[0],u[1]],0,6,2)?1:-1)*os*(p||1),r),qp(t,f,d,u,-v*rs*(p||1),r),t.b[n++]=c,t.b[n++]=l-1,t.b[n++]=l,t.b[n++]=c+1,t.b[n++]=c,t.b[n++]=0<h*v?l:l-1)}function qp(t,e,o,i,r,n){return t.a[n++]=e[0],t.a[n++]=e[1],t.a[n++]=o[0],t.a[n++]=o[1],t.a[n++]=i[0],t.a[n++]=i[1],t.a[n++]=r,n}function Jp(t,e,o,i){return!((o-=e)<2*i||o===2*i&&X([t[e],t[e+1]],[t[e+i],t[e+i+1]]))}function Yp(t,e,o,i){var r;if(Vp(e,e.length,i)||(e.push(e[0]),e.push(e[1])),Zp(t,e,e.length,i),o.length)for(e=0,r=o.length;e<r;++e)Vp(o[e],o[e].length,i)||(o[e].push(o[e][0]),o[e].push(o[e][1])),Zp(t,o[e],o[e].length,i)}function _p(t,e,o){o=void 0===o?t.b.length:o,t.i.push(o),t.f.push(e),t.c.s&&(t.j.push(o),t.c.s=!1)}e(Hp,Tp),Hp.prototype.mc=function(t,e){var o=t.ga();t=t.qa(),Jp(o,0,o.length,t)&&(o=rr(o,0,o.length,t,-this.origin[0],-this.origin[1]),this.c.s&&(this.j.push(this.b.length),this.c.s=!1),this.i.push(this.b.length),this.f.push(e),Zp(this,o,o.length,t))};var $p=3,Qp=5,ts=7,es=11,os=13,is=17,rs=19,ns=23;function ps(){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(ps,bp);function ss(){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(ss,xp);function as(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 ls(t){this.b=this.a=this.i=void 0,this.f=void 0===t||t,this.c=0}function hs(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 ys(t){if(t.b=t.i,t.b)return t.b.data}function us(t){if(t.b&&t.b.next)return t.b=t.b.next,t.b.data}function cs(t){if(t.b&&t.b.next)return t.b.next.data}function fs(t){if(t.b&&t.b.ub)return t.b=t.b.ub,t.b.data}function ds(t){if(t.b&&t.b.ub)return t.b.ub.data}function gs(t){if(t.b)return t.b.data}as.prototype.clone=function(){var t=this.a;return new as({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})},ls.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 vs,ms={$d:function(){}};function bs(t,e,o){var i=t[e];t[e]=t[o],t[o]=i}function xs(t,e){return t<e?-1:e<t?1:0}function ws(t,e){if(!(this instanceof ws))return new ws(t,e);this.Hf=Math.max(4,t||9),this.fh=Math.max(2,Math.ceil(.4*this.Hf)),e&&this.ek(e),this.clear()}function Ss(t,e){Ps(t,0,t.children.length,e,t)}function Ps(t,e,o,i,r){(r=r||Rs(null)).ca=1/0,r.da=1/0,r.$=-1/0,r.ia=-1/0;for(var n;e<o;e++)n=t.children[e],Ms(r,t.ib?i(n):n);return r}function Ms(t,e){t.ca=Math.min(t.ca,e.ca),t.da=Math.min(t.da,e.da),t.$=Math.max(t.$,e.$),t.ia=Math.max(t.ia,e.ia)}function Ts(t,e){return t.ca-e.ca}function Es(t,e){return t.da-e.da}function As(t){return(t.$-t.ca)*(t.ia-t.da)}function Cs(t){return t.$-t.ca+(t.ia-t.da)}function js(t,e){return t.ca<=e.ca&&t.da<=e.da&&e.$<=t.$&&e.ia<=t.ia}function Ls(t,e){return e.ca<=t.$&&e.da<=t.ia&&t.ca<=e.$&&t.da<=e.ia}function Rs(t){return{children:t,height:1,ib:!0,ca:1/0,da:1/0,$:-1/0,ia:-1/0}}function Fs(t,e,o,i,r){for(var n,p=[e,o];p.length;)(o=p.pop())-(e=p.pop())<=i||(n=e+Math.ceil((o-e)/i/2)*i,vs(t,n,e,o,r),p.push(e,n,n,o))}function Ns(t){this.a=ms.$d(t),this.b={}}function Is(t,e,o){var i=t.b[q(o)];wt([i.ca,i.da,i.$,i.ia],e)||(t.remove(o),t.Ca(e,o))}function ks(t,e){return t.a.search({ca:e[0],da:e[1],$:e[2],ia:e[3]}).map(function(t){return t.value})}function Os(t,e){Tp.call(this,0,e),this.g=new Hp(0,e),this.v=null,this.u=[],this.c=[],this.j={fillColor:null,s:!1}}function Ds(t,e,o,i){var r=new ls,n=new Ns;if(e=Us(t,e,i,r,n,!0),o.length){for(var p=[],s=0,a=o.length;s<a;++s){var l={list:new ls,$:void 0,Mg:new Ns};p.push(l),l.$=Us(t,o[s],i,l.list,l.Mg,!1)}for(p.sort(function(t,e){return e.$[0]===t.$[0]?t.$[1]-e.$[1]:e.$[0]-t.$[0]}),s=0;s<p.length;++s){a=i=ys(o=p[s].list);do{if(Zs(a,n).length){var h=!0;break}}while(i!==(a=us(o)));h||(Gs(o,p[s].Mg,!0),function(t,e,o,i,r){for(var n=ys(t);n.W.x!==e;)n=us(t);e=n.W,i={x:i,y:e.y,hb:-1};var p,s=1/0,a=Zs({aa:e,W:i},r,!0),l=0;for(p=a.length;l<p;++l){var h,y=a[l],u=qs(e,i,y.aa,y.W,!0),c=Math.abs(e.x-u[0]);c<s&&void 0!==Ep(e.x,e.y,y.aa.x,y.aa.y,y.W.x,y.W.y)&&(s=c,h={x:u[0],y:u[1],hb:-1},n=y)}if(1/0===s)return;if(a=n.W,0<s&&(n=Hs(e,h,n.W,r)).length)for(h=1/0,l=0,p=n.length;l<p;++l)s=n[l],((y=Math.atan2(e.y-s.y,i.x-s.x))<h||y===h&&s.x<a.x)&&(h=y,a=s);for(n=ys(o);n.W.x!==a.x||n.W.y!==a.y;)n=us(o);return i={x:e.x,y:e.y,hb:e.hb,Fb:void 0},l={x:n.W.x,y:n.W.y,hb:n.W.hb,Fb:void 0},cs(t).aa=i,Xs(e,n.W,t,r),Xs(l,i,t,r),n.W=l,t.f&&t.b&&(t.i=t.b,t.a=t.b.ub),o.concat(t),1}(o,p[s].$[0],r,e[0],n)&&(n.concat(p[s].Mg),Gs(r,n,!1)))}}else Gs(r,n,!1);!function t(e,o,i){for(var r=!1,n=Ws(o,i);3<o.c;)if(n){if(!Bs(e,o,i,n,r)&&!Gs(o,i,r)&&!Ks(e,o,i,!0))break}else if(!Bs(e,o,i,n,r)&&!Gs(o,i,r)&&!Ks(e,o,i)){if(!(n=Ws(o,i))){n=e,p=s=ys(r=o);do{if((a=Zs(p,i)).length){for(s=a[0],a=qs(p.aa,p.W,s.aa,s.W),a=Vs(n,a[0],a[1],n.a.length/2),l=new ls,h=new Ns,Xs(a,p.W,l,h),p.W=a,Is(i,[Math.min(p.aa.x,a.x),Math.min(p.aa.y,a.y),Math.max(p.aa.x,a.x),Math.max(p.aa.y,a.y)],p),p=us(r);p!==s;)Xs(p.aa,p.W,l,h),i.remove(p),hs(r),p=gs(r);Xs(s.aa,a,l,h),s.aa=a,Is(i,[Math.min(s.W.x,a.x),Math.min(s.W.y,a.y),Math.max(s.W.x,a.x),Math.max(s.W.y,a.y)],s),Gs(r,i,!1),t(n,r,i),Gs(l,h,!1),t(n,l,h);break}}while((p=us(r))!==s);break}for(var p=2*(r=o).c,s=Array(p),a=ys(r),l=a,h=0;s[h++]=l.aa.x,s[h++]=l.aa.y,(l=us(r))!==a;);r=!fr(s,0,p,2),Gs(o,i,r)}3===o.c&&(n=e.b.length,e.b[n++]=ds(o).aa.hb,e.b[n++]=gs(o).aa.hb,e.b[n++]=cs(o).aa.hb)}(t,r,n)}function Us(t,e,o,i,r,n){var p,s=t.a.length/2,a=[],l=[];if(n===fr(e,0,e.length,o))for(var h=p=Vs(t,e[0],e[1],s++),y=(n=e[0],e[1]),u=o,c=e.length;u<c;u+=o){var 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}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<e.c);return y}function Ks(t,e,o,i){var r=ys(e),n=(us(e),r),p=us(e),s=!1;do{var a=qs(n.aa,n.W,p.aa,p.W,i);if(a){var s=t.b.length,l=t.a.length/2,h=fs(e),y=(hs(e),o.remove(h),h===r);if(i?(y=a[0]===n.aa.x&&a[1]===n.aa.y?(fs(e),a=n.aa,p.aa=a,o.remove(n),y||n===r):(a=p.W,n.W=a,o.remove(p),y||p===r),hs(e)):(a=Vs(t,a[0],a[1],l),n.W=a,p.aa=a,Is(o,[Math.min(n.aa.x,n.W.x),Math.min(n.aa.y,n.W.y),Math.max(n.aa.x,n.W.x),Math.max(n.aa.y,n.W.y)],n),Is(o,[Math.min(p.aa.x,p.W.x),Math.min(p.aa.y,p.W.y),Math.max(p.aa.x,p.W.x),Math.max(p.aa.y,p.W.y)],p)),t.b[s++]=h.aa.hb,t.b[s++]=h.W.hb,t.b[s++]=a.hb,s=!0,y)break}}while(n=ds(e),p=us(e),n!==r);return s}function Ws(t,e){var o=ys(t),i=o;do{if(Zs(i,e).length)return!1}while((i=us(t))!==o);return!0}function Vs(t,e,o,i){var r=t.a.length;return{x:t.a[r++]=e,y:t.a[+r]=o,hb:i,Fb:void 0}}function Xs(t,e,o,i){var r,n={aa:t,W:e},p={ub:void 0,next:void 0,data:n},s=o.b;return s?(r=s.next,p.ub=s,p.next=r,s.next=p,r&&(r.ub=p),s===o.a&&(o.a=p)):(o.i=p,o.a=p,o.f&&((p.next=p).ub=p)),o.b=p,o.c++,i&&i.Ca([Math.min(t.x,e.x),Math.min(t.y,e.y),Math.max(t.x,e.x),Math.max(t.y,e.y)],n),n}function zs(t,e,o,i){gs(o)===e&&(hs(o),t.W=e.W,i.remove(e),Is(i,[Math.min(t.aa.x,t.W.x),Math.min(t.aa.y,t.W.y),Math.max(t.aa.x,t.W.x),Math.max(t.aa.y,t.W.y)],t))}function Hs(t,e,o,i,r){var n,p,s=[],a=ks(i,[Math.min(t.x,e.x,o.x),Math.min(t.y,e.y,o.y),Math.max(t.x,e.x,o.x),Math.max(t.y,e.y,o.y)]);for(i=0,n=a.length;i<n;++i)for(p in a[i]){var l=a[i][p];"object"!=typeof l||r&&!l.Fb||l.x===t.x&&l.y===t.y||l.x===e.x&&l.y===e.y||l.x===o.x&&l.y===o.y||-1!==s.indexOf(l)||!yr([t.x,t.y,e.x,e.y,o.x,o.y],0,6,2,l.x,l.y)||s.push(l)}return s}function Zs(t,e,o){for(var i=t.aa,r=t.W,n=[],p=0,s=(e=ks(e,[Math.min(i.x,r.x),Math.min(i.y,r.y),Math.max(i.x,r.x),Math.max(i.y,r.y)])).length;p<s;++p){var a=e[p];t!==a&&(o||a.aa!==r||a.W!==i)&&qs(i,r,a.aa,a.W,o)&&n.push(a)}return n}function qs(t,e,o,i,r){var n=(i.y-o.y)*(e.x-t.x)-(i.x-o.x)*(e.y-t.y);if(n&&(i=((i.x-o.x)*(t.y-o.y)-(i.y-o.y)*(t.x-o.x))/n,o=((e.x-t.x)*(t.y-o.y)-(e.y-t.y)*(t.x-o.x))/n,!r&&Ap<i&&i<1-Ap&&Ap<o&&o<1-Ap||r&&0<=i&&i<=1&&0<=o&&o<=1))return[t.x+i*(e.x-t.x),t.y+i*(e.y-t.y)]}function Js(t,e,o,i,r){var n;return void 0!==e.Fb&&void 0!==i.Fb&&(n=(o.x-i.x)*(e.y-i.y)>(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;c<f;++c)for(var d=t.a[u[c].toString()],g=gp.length-1;0<=g;--g){var v=d[gp[g]];if(void 0!==v&&(v=v.La(e,o,i,r,y,n,p,s,a,l,h)))return v}}ai=ms.$d=ms.$d||{},vs=function t(e,o,i,r,n){for(i=i||0,r=r||e.length-1,n=n||xs;i<r;){var p,s,a,l;for(600<r-i&&(p=r-i+1,s=o-i+1,l=Math.log(p),a=.5*Math.exp(2*l/3),l=.5*Math.sqrt(l*a*(p-a)/p)*(s-p/2<0?-1:1),t(e,o,Math.max(i,Math.floor(o-s*a/p+l)),Math.min(r,Math.floor(o+(p-s)*a/p+l)),n)),p=e[o],a=r,bs(e,s=i,o),0<n(e[r],p)&&bs(e,i,r);s<a;){for(bs(e,s,a),s++,a--;n(e[s],p)<0;)s++;for(;0<n(e[a],p);)a--}0===n(e[i],p)?bs(e,i,a):bs(e,++a,r),a<=o&&(i=a+1),o<=a&&(r=a-1)}},ws.prototype={all:function(){return this.$g(this.data,[])},search:function(t){var e=this.data,o=[],i=this.wb;if(Ls(t,e))for(var r,n,p,s,a=[];e;){for(r=0,n=e.children.length;r<n;r++)p=e.children[r],Ls(t,s=e.ib?i(p):p)&&(e.ib?o.push(p):js(t,s)?this.$g(p,o):a.push(p));e=a.pop()}return o},load:function(t){if(t&&t.length)if(t.length<this.fh)for(var e=0,o=t.length;e<o;e++)this.Ca(t[e]);else t=this.bh(t.slice(),0,t.length-1,0),this.data.children.length?this.data.height===t.height?this.hh(this.data,t):(this.data.height<t.height&&(e=this.data,this.data=t,t=e),this.eh(t,this.data.height-t.height-1,!0)):this.data=t;return this},Ca:function(t){return t&&this.eh(t,this.data.height-1),this},clear:function(){return this.data=Rs([]),this},remove:function(t,e){if(t)for(var o,i,r,n=this.data,p=this.wb(t),s=[],a=[];n||s.length;){if(n||(n=s.pop(),i=s[s.length-1],o=a.pop(),r=!0),n.ib){t:{var l=t,h=n.children,y=e;if(y){for(var u=0;u<h.length;u++)if(y(l,h[u])){l=u;break t}l=-1}else l=h.indexOf(l)}if(-1!==l){n.children.splice(l,1),s.push(n),this.ck(s);break}}r||n.ib||!js(n,p)?i?(o++,n=i.children[o],r=!1):n=null:(s.push(n),a.push(o),n=(i=n).children[o=0])}return this},wb:function(t){return t},Lf:Ts,Mf:Es,toJSON:function(){return this.data},$g:function(t,e){for(var o=[];t;)t.ib?e.push.apply(e,t.children):o.push.apply(o,t.children),t=o.pop();return e},bh:function(t,e,o,i){var r,n,p=o-e+1,s=this.Hf;if(p<=s)Ss(r=Rs(t.slice(e,o+1)),this.wb);else{for(i||(i=Math.ceil(Math.log(p)/Math.log(s)),s=Math.ceil(p/Math.pow(s,i-1))),(r=Rs([])).ib=!1,r.height=i,Fs(t,e,o,s=(p=Math.ceil(p/s))*Math.ceil(Math.sqrt(s)),this.Lf);e<=o;e+=s){var a=Math.min(e+s-1,o);for(Fs(t,e,a,p,this.Mf),n=e;n<=a;n+=p){var l=Math.min(n+p-1,a);r.children.push(this.bh(t,n,l,i-1))}}Ss(r,this.wb)}return r},bk:function(t,e,o,i){for(var r,n,p,s,a,l,h,y;i.push(e),!e.ib&&i.length-1!==o;){for(h=y=1/0,r=0,n=e.children.length;r<n;r++)a=As(p=e.children[r]),(l=(Math.max(p.$,t.$)-Math.min(p.ca,t.ca))*(Math.max(p.ia,t.ia)-Math.min(p.da,t.da))-a)<y?(y=l,h=a<h?a:h,s=p):l===y&&a<h&&(h=a,s=p);e=s||e.children[0]}return e},eh:function(t,e,o){var i=this.wb,i=(o=o?t:i(t),[]),r=this.bk(o,this.data,e,i);for(r.children.push(t),Ms(r,o);0<=e&&i[e].children.length>this.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);l<i?(i=l,n=r,p=s<p?s:p):l===i&&s<p&&(p=s,n=r)}return n},$j:function(t,e,o){var i=t.ib?this.Lf:Ts,r=t.ib?this.Mf:Es;this.ah(t,e,o,i)<(e=this.ah(t,e,o,r))&&t.children.sort(i)},ah:function(t,e,o,i){t.children.sort(i);for(var r=Ps(t,0,e,i=this.wb),n=Ps(t,o-e,o,i),p=Cs(r)+Cs(n),s=e;s<o-e;s++){var a=t.children[s];Ms(r,t.ib?i(a):a),p+=Cs(r)}for(s=o-e-1;e<=s;s--)a=t.children[s],Ms(n,t.ib?i(a):a),p+=Cs(n);return p},Zj:function(t,e,o){for(;0<=o;o--)Ms(e[o],t)},ck:function(t){for(var e,o=t.length-1;0<=o;o--)0===t[o].children.length?0<o?(e=t[o-1].children).splice(e.indexOf(t[o]),1):this.clear():Ss(t[o],this.wb)},ek:function(t){var e=["return a"," - b",";"];this.Lf=new Function("a","b",e.join(t[0])),this.Mf=new Function("a","b",e.join(t[1])),this.wb=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}},ai.default=ws,ms.$d=ms.$d.default,Ns.prototype.Ca=function(t,e){t={ca:t[0],da:t[1],$:t[2],ia:t[3],value:e},this.a.Ca(t),this.b[q(e)]=t},e(Os,Tp),Os.prototype.pc=function(t,e){for(var o=t.c,i=t.qa(),r=this.b.length,n=this.g.b.length,p=(t=t.ga(),u=0),s=o.length;p<s;++p){var a=o[p];if(0<a.length){var l=rr(t,u,a[0],i,-this.origin[0],-this.origin[1]);if(l.length){for(var h,y=[],u=1,c=a.length;u<c;++u)a[u]!==a[u-1]&&(h=rr(t,a[u-1],a[u],i,-this.origin[0],-this.origin[1]),y.push(h));Yp(this.g,l,y,i),Ds(this,l,y,i)}}u=a[a.length-1]}this.b.length>r&&(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<h;++l)for(var y=this.a[a[l].toString()],u=0,c=gp.length;u<c;++u){var f=y[gp[u]];void 0!==f&&f.La(t,e,o,i,r,n,p,s,void 0,!1)}},_s.prototype.Ea=function(t,e,o,i,r,n,p,s,a,l){var h,y=e.b;return y.bindFramebuffer(y.FRAMEBUFFER,Op(e)),$s(this,e,t,i,r,p,s,a,function(t){var e=new Uint8Array(4);if(y.readPixels(0,0,1,1,y.RGBA,y.UNSIGNED_BYTE,e),0<e[3]&&(t=l(t)))return t},!0,h=void 0!==this.c?ht(bt(t),i*this.c):h)};var Qs=[1,1],ta={Circle:Lp,Image:Wp,LineString:Hp,Polygon:Os,Text:Ys};function ea(t,e,o,i,r,n,p){this.b=t,this.i=e,this.a=n,this.c=p,this.j=r,this.g=i,this.f=o,this.o=this.l=this.v=null}function oa(){this.c=0,this.b={},this.i=this.a=null}function ia(t,e){$n.call(this,0,e),this.b=document.createElement("CANVAS"),this.b.style.width="100%",this.b.style.height="100%",this.b.style.display="block",this.b.className="ol-unselectable",t.insertBefore(this.b,t.childNodes[0]||null),this.S=this.D=0,this.C=xo(),this.l=!0,this.i=qo(this.b,{antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0}),this.f=new Np(this.b,this.i),g(this.b,"webglcontextlost",this.Yn,this),g(this.b,"webglcontextrestored",this.Zn,this),this.a=new oa,this.u=null,this.j=new Fi(function(t){var e=t[1],o=(t=t[2],e[0]-this.u[0]),e=e[1]-this.u[1];return 65536*Math.log(t)+Math.sqrt(o*o+e*e)/t}.bind(this),function(t){return t[0].bb()}),this.B=function(){var t;return this.j.b.length&&(Oi(this.j),ra(this,(t=Ni(this.j))[0],t[3],t[4])),!1}.bind(this),this.g=0,na(this)}function ra(t,e,o,i){var r,n,p,s=t.i,a=e.bb();t.a.b.hasOwnProperty(a)?(t=t.a.get(a),s.bindTexture(3553,t.Ib),9729!=t.Ph&&(s.texParameteri(3553,10240,9729),t.Ph=9729),9729!=t.Rh&&(s.texParameteri(3553,10241,9729),t.Rh=9729)):(r=s.createTexture(),s.bindTexture(3553,r),0<i?(n=t.C.canvas,p=t.C,t.D!==o[0]||t.S!==o[1]?(n.width=o[0],n.height=o[1],t.D=o[0],t.S=o[1]):p.clearRect(0,0,o[0],o[1]),p.drawImage(e.Y(),i,i,o[0],o[1],0,0,o[0],o[1]),s.texImage2D(3553,0,6408,6408,5121,n)):s.texImage2D(3553,0,6408,6408,5121,e.Y()),s.texParameteri(3553,10240,9729),s.texParameteri(3553,10241,9729),s.texParameteri(3553,10242,33071),s.texParameteri(3553,10243,33071),t.a.set(a,{Ib:r,Ph:9729,Rh:9729}))}function na(t){(t=t.i).activeTexture(33984),t.blendFuncSeparate(770,771,1,771),t.disable(2884),t.disable(2929),t.disable(3089),t.disable(2960)}e(ea,lp),ea.prototype.rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y())},oa.prototype.clear=function(){this.c=0,this.b={},this.i=this.a=null},e(ia,$n),ia.prototype.ka=function(){var e=this.i;e.isContextLost()||this.a.forEach(function(t){t&&e.deleteTexture(t.Ib)}),Ye(this.f),$n.prototype.ka.call(this)};var pa=["canvas","webgl"];function u(t){oo.call(this);var e=function(t){var e=null,o=(void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget),{}),i={};void 0===t.logo||"boolean"==typeof t.logo&&t.logo?i["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]="https://openlayers.org/":"string"==typeof(p=t.logo)?i[p]="":p instanceof HTMLElement?i[q(p).toString()]=p:p&&(_("string"==typeof p.href,44),_("string"==typeof p.src,45),i[p.src]=p.href);p=t.layers instanceof kn?t.layers:new kn({layers:t.layers}),o.layergroup=p,o.target=t.target,o.view=void 0!==t.view?t.view:new l;var r,n,p=$n,s=(void 0!==t.renderer?(Array.isArray(t.renderer)?r=t.renderer:"string"==typeof t.renderer?r=[t.renderer]:_(!1,46),0<=r.indexOf("dom")&&(r=r.concat(pa))):r=pa,0);for(n=r.length;s<n;++s){var a=r[s];if("canvas"==a){if(ei){p=fp;break}}else if("webgl"==a&&li){p=ia;break}}return r=void 0!==t.controls?Array.isArray(t.controls)?new y(t.controls.slice()):(_(t.controls instanceof y,47),t.controls):Io(),s=void 0!==t.interactions?Array.isArray(t.interactions)?new y(t.interactions.slice()):(_(t.interactions instanceof y,48),t.interactions):Fn(),t=void 0!==t.overlays?Array.isArray(t.overlays)?new y(t.overlays.slice()):(_(t.overlays instanceof y,49),t.overlays):new y,{controls:r,interactions:s,keyboardEventTarget:e,logos:i,overlays:t,Up:p,values:o}}(t);this.Cf=void 0!==t.loadTilesWhileAnimating&&t.loadTilesWhileAnimating,this.Df=void 0!==t.loadTilesWhileInteracting&&t.loadTilesWhileInteracting,this.If=void 0!==t.pixelRatio?t.pixelRatio:Qo,this.yf=e.logos,this.pa=function(){this.j=void 0,this.Sp.call(this,Date.now())}.bind(this),this.Yb=Kn(),this.Jf=Kn(),this.ad=0,this.I=this.R=this.T=this.g=this.c=null,this.a=document.createElement("DIV"),this.a.className="ol-viewport"+(ii?" ol-touch":""),this.a.style.position="relative",this.a.style.overflow="hidden",this.a.style.width="100%",this.a.style.height="100%",this.a.style.msTouchAction="none",this.a.style.touchAction="none",this.C=document.createElement("DIV"),this.C.className="ol-overlaycontainer",this.a.appendChild(this.C),this.D=document.createElement("DIV"),this.D.className="ol-overlaycontainer-stopevent";for(var o,i="click dblclick mousedown touchstart MSPointerDown pointerdown mousewheel wheel".split(" "),r=0,n=i.length;r<n;++r)g(this.D,i[r],$e);for(o in this.a.appendChild(this.D),this.Sa=new Li(this,t.moveTolerance),ui)g(this.Sa,ui[o],this.Ih,this);this.va=e.keyboardEventTarget,this.u=null,g(this.a,"wheel",this.ld,this),g(this.a,"mousewheel",this.ld,this),this.l=e.controls,this.o=e.interactions,this.v=e.overlays,this.rg={},this.B=new e.Up(this.a,this),this.na=null,this.xb=[],this.$a=new Di(this.ql.bind(this),this.Wl.bind(this)),this.fa={},g(this,ro("layergroup"),this.El,this),g(this,ro("view"),this.Xl,this),g(this,ro("size"),this.Tl,this),g(this,ro("target"),this.Vl,this),this.H(e.values),this.l.forEach(function(t){t.setMap(this)},this),g(this.l,"add",function(t){t.element.setMap(this)},this),g(this.l,"remove",function(t){t.element.setMap(null)},this),this.o.forEach(function(t){t.setMap(this)},this),g(this.o,"add",function(t){t.element.setMap(this)},this),g(this.o,"remove",function(t){t.element.setMap(null)},this),this.v.forEach(this.kh,this),g(this.v,"add",function(t){this.kh(t.element)},this),g(this.v,"remove",function(t){var e=t.element.g;void 0!==e&&delete this.rg[e.toString()],t.element.setMap(null)},this)}function sa(t){oo.call(this),this.g=t.id,this.l=void 0===t.insertFirst||t.insertFirst,this.v=void 0===t.stopEvent||t.stopEvent,this.c=document.createElement("DIV"),this.c.className="ol-overlay-container ol-selectable",this.c.style.position="absolute",this.autoPan=void 0!==t.autoPan&&t.autoPan,this.j=t.autoPanAnimation||{},this.o=void 0!==t.autoPanMargin?t.autoPanMargin:20,this.a={re:"",Ie:"",nf:"",vf:"",visible:!0},this.f=null,g(this,ro(aa),this.zl,this),g(this,ro(la),this.Jl,this),g(this,ro(ha),this.Nl,this),g(this,ro(ya),this.Pl,this),g(this,ro(ua),this.Ql,this),void 0!==t.element&&this.lj(t.element),this.rj(void 0!==t.offset?t.offset:[0,0]),this.uj(void 0!==t.positioning?t.positioning:"top-left"),void 0!==t.position&&this.Ne(t.position)}e(u,oo),u.prototype.kk=function(t){this.l.push(t)},e(sa,oo),sa.prototype.Rd=function(){return this.get(aa)};var aa="element",la="map",ha="offset",ya="position",ua="positioning";function ca(t){function e(t){t=s.Tf(t),a.a.Z().ob(t),window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",e)}function o(t){t=s.Tf({clientX:t.clientX-h.offsetWidth/2,clientY:t.clientY+h.offsetHeight/2}),l.Ne(t)}this.j=void 0===(t=t||{}).collapsed||t.collapsed,this.o=void 0===t.collapsible||t.collapsible,this.o||(this.j=!1);var i=void 0!==t.className?t.className:"ol-overviewmap",r=void 0!==t.tipLabel?t.tipLabel:"Overview map",n=void 0!==t.collapseLabel?t.collapseLabel:"«",p=("string"==typeof n?(this.u=document.createElement("span"),this.u.textContent=n):this.u=n,"string"==typeof(n=void 0!==t.label?t.label:"»")?(this.D=document.createElement("span"),this.D.textContent=n):this.D=n,this.o&&!this.j?this.u:this.D),s=((n=document.createElement("button")).setAttribute("type","button"),n.title=r,n.appendChild(p),g(n,"click",this.an,this),this.C=document.createElement("DIV"),this.C.className="ol-overviewmap-map",this.c=new u({controls:new y,interactions:new y,view:t.view})),a=(t.layers&&t.layers.forEach(function(t){s.ih(t)},this),(r=document.createElement("DIV")).className="ol-overviewmap-box",r.style.boxSizing="border-box",this.l=new sa({position:[0,0],positioning:"bottom-left",element:r}),this.c.jh(this.l),(r=document.createElement("div")).className=i+" ol-unselectable ol-control"+(this.j&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible"),r.appendChild(this.C),r.appendChild(n),Po.call(this,{element:r,render:t.render||fa,target:t.target}),this),l=this.l,h=this.l.Rd();h.addEventListener("mousedown",function(){window.addEventListener("mousemove",o),window.addEventListener("mouseup",e)})}function fa(){var t,e,o,i,r=this.a,n=this.c;r.c&&n.c&&(t=r.Ob(),r=r.Z().dd(t),i=n.Ob(),t=n.Z().dd(i),e=n.Ja(Ft(r)),o=n.Ja(At(r)),n=Math.abs(e[0]-o[0]),e=Math.abs(e[1]-o[1]),o=i[0],i=i[1],n<.1*o||e<.1*i||.75*o<n||.75*i<e?da(this):ct(t,r)||(r=this.c,t=this.a.Z(),r.Z().ob(t.wa()))),ga(this)}function da(t){var e=t.a,o=(t=t.c,e.Ob()),e=e.Z().dd(o);t=t.Z(),Dt(e,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2))),t.Qf(e)}function ga(t){var e,o,i,r,n,p,s=t.a,a=t.c;s.c&&a.c&&(i=s.Ob(),r=s.Z(),n=a.Z(),a=r.Qa(),s=t.l,e=t.l.Rd(),o=r.dd(i),i=n.Pa(),r=Et(o),n=Nt(o),(t=t.a.Z().wa())&&(qi(p=[r[0]-t[0],r[1]-t[1]],a),Vi(p,t)),s.Ne(p),e)&&(e.style.width=Math.abs((r[0]-n[0])/i)+"px",e.style.height=Math.abs((n[1]-r[1])/i)+"px")}function va(t){var e=void 0!==(t=t||{}).className?t.className:"ol-scale-line";this.o=document.createElement("DIV"),this.o.className=e+"-inner",this.c=document.createElement("DIV"),this.c.className=e+" ol-unselectable",this.c.appendChild(this.o),this.u=null,this.l=void 0!==t.minWidth?t.minWidth:64,this.j=!1,this.B=void 0,this.D="",Po.call(this,{element:this.c,render:t.render||ba,target:t.target}),g(this,ro(wa),this.T,this),this.I(t.units||"metric")}e(ca,Po),ca.prototype.setMap=function(t){var e=this.a;t!==e&&(e&&((e=e.Z())&&He(e,ro("rotation"),this.Ge,this),this.c.Le(null)),Po.prototype.setMap.call(this,t),t)&&(this.c.Le(this.C),this.v.push(g(t,"propertychange",this.Kl,this)),this.c.Xh().dc()||this.c.qj(t.Kc()),t=t.Z())&&(g(t,ro("rotation"),this.Ge,this),Er(t)&&(this.c.Ad(),da(this)))},e(va,Po);var ma=[1,2,5];function ba(t){(t=t.frameState)?this.u=t.viewState:this.u=null,xa(this)}function xa(t){if(o=t.u){var e=(i=o.projection).sc(),o=he(i,o.resolution,o.center)*e,e=t.l*o,i="";"degrees"==(n=t.C())?(o/=i=zt.degrees,e<i/60?(i="″",o*=3600):e<i?(i="′",o*=60):i="°"):"imperial"==n?e<.9144?(i="in",o/=.0254):e<1609.344?(i="ft",o/=.3048):(i="mi",o/=1609.344):"nautical"==n?(o/=1852,i="nm"):"metric"==n?e<.001?(i="μm",o*=1e6):e<1?(i="mm",o*=1e3):e<1e3?i="m":(i="km",o/=1e3):"us"==n?e<.9144?(i="in",o*=39.37):e<1609.344?(i="ft",o/=.30480061):(i="mi",o/=1609.3472):_(!1,33);for(var r,n=3*Math.floor(Math.log(t.l*o)/Math.log(10));;){if(r=ma[(n%3+3)%3]*Math.pow(10,Math.floor(n/3)),e=Math.round(r/o),isNaN(e))return t.c.style.display="none",void(t.j=!1);if(e>=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<e?(this.j=1,this.D=e-r):(this.j=Pa,this.l=o-n),this.na=!0),(t=t.frameState.viewState.resolution)!==this.c)&&(this.c=t,Ta(this,t))}function Ta(t,e){e=1-(r=t.a.Z(),o=r.a,i=Math.log(o/r.f)/Math.log(2),function(t){return Math.log(o/t)/Math.log(2)/i}(e));var o,i,r=t.element.firstElementChild;1==t.j?r.style.left=t.D*e+"px":r.style.top=t.l*e+"px"}function Ea(t){this.c=(t=t||{}).extent||null;var e=void 0!==t.className?t.className:"ol-zoom-extent",o=void 0!==t.label?t.label:"E",i=void 0!==t.tipLabel?t.tipLabel:"Fit to extent",r=document.createElement("button");r.setAttribute("type","button"),r.title=i,r.appendChild("string"==typeof o?document.createTextNode(o):o),g(r,"click",this.j,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(r),Po.call(this,{element:o,target:t.target})}function Aa(t){oo.call(this),t=t||{},this.a=null,g(this,ro(Ca),this.vm,this),this.gg(void 0!==t.tracking&&t.tracking)}Sa.prototype.setMap=function(t){Po.prototype.setMap.call(this,t),t&&t.render()},e(Ea,Po),Ea.prototype.j=function(t){t.preventDefault(),t=this.a.Z();var e=this.c||t.v.G();t.Qf(e)},e(Aa,oo),Aa.prototype.ka=function(){this.gg(!1),oo.prototype.ka.call(this)};var Ca="tracking";function ja(t){this.f=t.opacity,this.l=t.rotateWithView,this.g=t.rotation,this.a=t.scale,this.v=t.snapToPixel}function La(t){this.D=this.u=this.c=null,this.Va=void 0!==t.fill?t.fill:null,this.oa=[0,0],this.o=t.points,this.b=void 0!==t.radius?t.radius:t.radius1,this.i=t.radius2,this.j=void 0!==t.angle?t.angle:0,this.Ya=void 0!==t.stroke?t.stroke:null,this.B=this.ra=this.C=null,this.S=t.atlasManager,Ra(this,this.S),ja.call(this,{opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:1,snapToPixel:void 0===t.snapToPixel||t.snapToPixel})}function Ra(t,e){var o,i,r="",n="",p=0,s=null,a=0,l=(t.Ya&&(o=bo(o=null===(o=t.Ya.a)?sp:o),void 0===(a=t.Ya.c)&&(a=1),s=t.Ya.i,ti||(s=null),void 0===(n=t.Ya.j)&&(n="round"),void 0===(r=t.Ya.f)&&(r="round"),void 0===(p=t.Ya.o))&&(p=10),2*(t.b+a)+1),r={strokeStyle:o,zj:a,size:l,lineCap:r,lineDash:s,lineJoin:n,miterLimit:p};void 0===e?(i=xo(l,l),t.u=i.canvas,e=l=t.u.width,t.rh(r,i,0,0),t.Va?t.D=t.u:(i=xo(r.size,r.size),t.D=i.canvas,t.qh(r,i,0,0))):(l=Math.round(l),(n=!t.Va)&&(i=t.qh.bind(t,r)),p=t.Ya?(void 0===(p=t.Ya).b&&(p.b="s",p.b=p.a?"string"==typeof p.a?p.b+p.a:p.b+q(p.a).toString():p.b+"-",p.b+=","+(void 0!==p.f?p.f.toString():"-")+","+(p.i?p.i.toString():"-")+","+(void 0!==p.g?p.g:"-")+","+(void 0!==p.j?p.j:"-")+","+(void 0!==p.o?p.o.toString():"-")+","+(void 0!==p.c?p.c.toString():"-")),p.b):"-",s=t.Va?(void 0===(s=t.Va).a&&(s.a=s.b instanceof CanvasPattern||s.b instanceof CanvasGradient?q(s.b).toString():"f"+(s.b?co(s.b):"-")),s.a):"-",t.c&&p==t.c[1]&&s==t.c[2]&&t.b==t.c[3]&&t.i==t.c[4]&&t.j==t.c[5]&&t.o==t.c[6]||(t.c=["r"+p+s+(void 0!==t.b?t.b.toString():"-")+(void 0!==t.i?t.i.toString():"-")+(void 0!==t.j?t.j.toString():"-")+(void 0!==t.o?t.o.toString():"-"),p,s,t.b,t.i,t.j,t.o]),i=e.add(t.c[0],l,l,t.rh.bind(t,r),i),t.u=i.image,t.oa=[i.offsetX,i.offsetY],e=i.image.width,t.D=n?i.Zl:t.u),t.C=[l/2,l/2],t.ra=[l,l],t.B=[e,e]}function Fa(t){La.call(this,{points:1/0,fill:(t=t||{}).fill,radius:t.radius,snapToPixel:t.snapToPixel,stroke:t.stroke,atlasManager:t.atlasManager})}function Na(t){this.b=void 0!==(t=t||{}).color?t.color:null,this.a=void 0}function Ia(t){t=t||{},this.Gc=null,this.Za=Ga,void 0!==t.geometry&&this.Ra(t.geometry),this.Va=void 0!==t.fill?t.fill:null,this.M=void 0!==t.image?t.image:null,this.Ya=void 0!==t.stroke?t.stroke:null,this.Ia=void 0!==t.text?t.text:null,this.Fj=t.zIndex}function ka(t){var e;return"function"!=typeof t&&(e=Array.isArray(t)?t:(_(t instanceof Ia,41),[t]),t=function(){return e}),t}ja.prototype.Ze=function(){return this.f},e(La,ja),La.prototype.clone=function(){var t=new La({fill:this.Fa()?this.Fa().clone():void 0,points:this.o,radius:this.b,radius2:this.i,angle:this.j,snapToPixel:this.v,stroke:this.Ga()?this.Ga().clone():void 0,rotation:this.g,rotateWithView:this.l,atlasManager:this.S});return t.td(this.f),t.ud(this.a),t},e(Fa,La),Fa.prototype.clone=function(){var t=new Fa({fill:this.Fa()?this.Fa().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,radius:this.b,snapToPixel:this.v,atlasManager:this.S});return t.td(this.f),t.ud(this.a),t},Fa.prototype.Uc=function(t){this.b=t,Ra(this,this.S)},Na.prototype.clone=function(){var t=this.b;return new Na({color:t&&t.slice?t.slice():t||void 0})},Na.prototype.i=function(){return this.b},Na.prototype.c=function(t){this.b=t,this.a=void 0},Ia.prototype.clone=function(){var t=this.V();return new Ia({geometry:t=t&&t.clone?t.clone():t,fill:this.Fa()?this.Fa().clone():void 0,image:this.Y()?this.Y().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,text:this.Na()?this.Na().clone():void 0,zIndex:this.Ba()})};var Oa=null;function Da(){var t,e;return Oa||(t=new Na({color:"rgba(255,255,255,0.4)"}),e=new as({color:"#3399CC",width:1.25}),Oa=[new Ia({image:new Fa({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]),Oa}function Ua(){var t={},e=[255,255,255,1],o=[0,153,255,1];return t.Polygon=[new Ia({fill:new Na({color:[255,255,255,.5]})})],t.MultiPolygon=t.Polygon,t.LineString=[new Ia({stroke:new as({color:e,width:5})}),new Ia({stroke:new as({color:o,width:3})})],t.MultiLineString=t.LineString,t.Circle=t.Polygon.concat(t.LineString),t.Point=[new Ia({image:new Fa({radius:6,fill:new Na({color:o}),stroke:new as({color:e,width:1.5})}),zIndex:1/0})],t.MultiPoint=t.Point,t.GeometryCollection=t.Polygon.concat(t.LineString,t.Point),t}function Ga(t){return t.V()}function v(t){oo.call(this),this.a=void 0,this.c="geometry",this.g=null,this.j=void 0,this.f=null,g(this,ro(this.c),this.Ee,this),void 0!==t&&(t instanceof or||!t?this.Ra(t):this.H(t))}e(v,oo),v.prototype.clone=function(){var t=new v(this.N()),e=(t.Tc(this.c),this.V());return e&&t.Ra(e.clone()),(e=this.g)&&t.hg(e),t};var Ba=document.implementation.createDocument("","",null);function Ka(t,e){return Ba.createElementNS(t,e)}function Wa(t,e){return function t(e,o,i){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)o?i.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):i.push(e.nodeValue);else for(e=e.firstChild;e;e=e.nextSibling)t(e,o,i);return i}(t,e,[]).join("")}function Va(t){return t instanceof Document}function Xa(t){return t instanceof Node}function za(t){return(new DOMParser).parseFromString(t,"application/xml")}function Ha(o,i){return function(t,e){void 0!==(t=o.call(i,t,e))&&K(e[e.length-1],t)}}function Za(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&e[e.length-1].push(t)}}function qa(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&(e[e.length-1]=t)}}function Ja(i){return function(t,e){var o=i.call(this,t,e);void 0!==o&&(e=e[e.length-1],((t=t.localName)in e?e[t]:e[t]=[]).push(o))}}function r(i,r){return function(t,e){var o=i.call(this,t,e);void 0!==o&&(e[e.length-1][void 0!==r?r:t.localName]=o)}}function c(i,r){return function(t,e,o){i.call(void 0!==r?r:this,t,e,o),o[o.length-1].node.appendChild(t)}}function Ya(r){var n,p;return function(t,e,o){var i;n||(n={},(i={})[t.localName]=r,n[t.namespaceURI]=i,p=_a(t.localName)),el(n,p,e,o)}}function _a(i,r){return function(t,e,o){return t=e[e.length-1].node,void 0===(e=i)&&(e=o),Ka(o=void 0===(o=r)?t.namespaceURI:r,e)}}var $a=_a();function Qa(t,e){for(var o=e.length,i=Array(o),r=0;r<o;++r)i[r]=t[e[r]];return i}function h(t,e,o){o=void 0!==o?o:{};for(var i=0,r=t.length;i<r;++i)o[t[i]]=e;return o}function tl(t,e,o,i){for(e=e.firstElementChild;e;e=e.nextElementSibling){var r=t[e.namespaceURI];void 0!==r&&(r=r[e.localName])&&r.call(i,e,o)}}function d(t,e,o,i,r){return i.push(t),tl(e,o,i,r),i.pop()}function el(t,e,o,i,r,n){for(var p,s,a=(void 0!==r?r:o).length,l=0;l<a;++l)void 0!==(p=o[l])&&void 0!==(s=e.call(n,p,i,void 0!==r?r[l]:void 0))&&t[s.namespaceURI][s.localName].call(n,s,p,i)}function ol(t,e,o,i,r,n,p){r.push(t),el(e,o,i,r,n,p),r.pop()}function il(r,n,p,s){return function(t,e,o){var i=new XMLHttpRequest;i.open("GET","function"==typeof r?r(t,e,o):r,!0),"arraybuffer"==n.U()&&(i.responseType="arraybuffer"),i.onload=function(){var t,e;(!i.status||200<=i.status&&i.status<300)&&("json"==(t=n.U())||"text"==t?e=i.responseText:"xml"==t?e=(e=i.responseXML)||za(i.responseText):"arraybuffer"==t&&(e=i.response),e)?p.call(this,n.Oa(e,{featureProjection:o}),n.kb(e)):s.call(this)}.bind(this),i.onerror=function(){s.call(this)}.bind(this),i.send()}}function rl(t,e){return il(t,e,function(t){this.cd(t)},Z)}function nl(){this.f=this.defaultDataProjection=null}function pl(t,e,o){var i;return o&&(i={dataProjection:o.dataProjection||t.kb(e),featureProjection:o.featureProjection}),sl(t,i)}function sl(t,e){return Gt({dataProjection:t.defaultDataProjection,featureProjection:t.f},e)}function al(t,e,o){var i,r=o?ge(o.featureProjection):null,n=o?ge(o.dataProjection):null,n=r&&n&&!ve(r,n)?t instanceof or?(e?t.clone():t).tb(e?r:n,e?n:r):Pe(t,n,r):t;return e&&o&&void 0!==o.decimals&&(i=Math.pow(10,o.decimals),(n=n===t?n.clone():n).Dc(function(t){for(var e=0,o=t.length;e<o;++e)t[e]=Math.round(t[e]*i)/i;return t})),n}function ll(){nl.call(this)}function hl(t,e,o,i,r,n){var p=NaN,s=NaN;if(1===(a=(o-e)/i))p=t[e],s=t[e+1];else if(2==a)p=(1-r)*t[e]+r*t[e+i],s=(1-r)*t[e+1]+r*t[e+i+1];else if(a){for(var s=t[e],a=t[e+1],l=0,p=[0],h=e+i;h<o;h+=i){var y=t[h],u=t[h+1],l=l+Math.sqrt((y-s)*(y-s)+(u-a)*(u-a));p.push(l),s=y,a=u}for(o=r*l,a=0,l=p.length,h=!1;a<l;)(s=+U(p[r=a+(l-a>>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<p;++n){var s=r[n];K(e,i=hl(o,i,s,t,.5)),i=s}return e}function cl(t,e){for(var o=t.ja,i=[],r=[],n=0,p=e.length;n<p;++n){var s=e[n];n||(o=s.ja),K(i,s.ga()),r.push(i.length)}t.ba(o,i,r)}function f(t,e){i.call(this),this.ma(t,e)}function b(t,e){i.call(this),this.c=[],this.u=-1,this.D=null,this.I=this.C=this.B=-1,this.j=null,this.ma(t,e)}function fl(t){if(t.u!=t.i){var e=t.A,o=t.c,i=t.a,r=0,n=[],p=0;for(l=o.length;p<l;++p){var s=o[p],r=xt(e,r,s[0],i);n.push((r[0]+r[2])/2,(r[1]+r[3])/2),r=s[s.length-1]}for(e=dl(t),i=t.a,l=[],s=p=0,r=(o=t.c).length;s<r;++s)var a=o[s],l=cr(e,p,a,i,n,2*s,l),p=a[a.length-1];t.D=l,t.u=t.i}return t.D}function dl(t){if(t.I!=t.i){var e=t.A;t:{for(var o=t.c,i=0,r=o.length;i<r;++i)if(!dr(e,o[i],t.a,void 0)){o=!1;break t}o=!0}o?t.j=e:(t.j=e.slice(),t.j.length=vr(t.j,t.c,t.a)),t.I=t.i}return t.j}function gl(t,e,o,i){pr(t,e,o),t.c=i,t.s()}function vl(t,e){for(var o=t.ja,i=[],r=[],n=0,p=e.length;n<p;++n){for(var s=e[n],a=(n||(o=s.ja),i.length),l=s.Bb(),h=0,y=l.length;h<y;++h)l[h]+=a;K(i,s.ga()),r.push(l)}gl(t,o,i,r)}function ml(t){t=t||{},nl.call(this),this.b=t.geometryName}function bl(t,e){if(!t)return null;if("number"==typeof t.x&&"number"==typeof t.y)var o="Point";else if(t.points)o="MultiPoint";else if(t.paths)o=1===t.paths.length?"LineString":"MultiLineString";else if(t.rings){for(var i=t.rings,r=xl(t),n=[],p=[],o=[],s=0,a=i.length;s<a;++s)n.length=0,ar(n,0,i[s],r.length),fr(n,0,n.length,r.length)?p.push([i[s]]):o.push(i[s]);for(;o.length;){for(i=o.shift(),r=!1,s=p.length-1;0<=s;s--)if(ct(new lr(p[s][0]).G(),new lr(i).G())){p[s].push(i),r=!0;break}r||p.push([i.reverse()])}t=Gt({},t),1===p.length?(o="Polygon",t.rings=p[0]):(o="MultiPolygon",t.rings=p)}return al((0,wl[o])(t),!1,e)}function xl(t){var e="XY";return!0===t.hasZ&&!0===t.hasM?e="XYZM":!0===t.hasZ?e="XYZ":!0===t.hasM&&(e="XYM"),e}e(ll,nl),ll.prototype.U=function(){return"json"},e(m,i),m.prototype.mk=function(t){this.A?K(this.A,t):this.A=t.slice(),this.s()},e(a,i),a.prototype.nk=function(t){this.A?K(this.A,t.ga().slice()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},e(f,i),f.prototype.qk=function(t){this.A?K(this.A,t.ga()):this.A=t.ga().slice(),this.s()},e(b,i),b.prototype.rk=function(t){if(this.A)for(var e=this.A.length,o=(K(this.A,t.ga()),0),i=(t=t.Bb().slice()).length;o<i;++o)t[o]+=e;else this.A=t.ga().slice(),t=t.Bb().slice(),this.c.push();this.c.push(t),this.s()},e(ml,ll);var wl={Point:function(t){return void 0!==t.m&&void 0!==t.z?new p([t.x,t.y,t.z,t.m],"XYZM"):void 0!==t.z?new p([t.x,t.y,t.z],"XYZ"):void 0!==t.m?new p([t.x,t.y,t.m],"XYM"):new p([t.x,t.y])},LineString:function(t){return new m(t.paths[0],xl(t))},Polygon:function(t){return new s(t.rings,xl(t))},MultiPoint:function(t){return new f(t.points,xl(t))},MultiLineString:function(t){return new a(t.paths,xl(t))},MultiPolygon:function(t){return new b(t.rings,xl(t))}};function Sl(t){this.kc=t}function Pl(t,e){this.kc=t,this.b=Array.prototype.slice.call(arguments,1),_(2<=this.b.length,57)}function Ml(t){var e=["And"].concat(Array.prototype.slice.call(arguments));Pl.apply(this,e)}function Tl(t,e,o){this.kc="BBOX",this.geometryName=t,this.extent=e,this.srsName=o}function El(t,e){this.kc=t,this.b=e}function Al(t,e,o){El.call(this,"During",t),this.a=e,this.i=o}function Cl(t,e,o,i){El.call(this,t,e),this.i=o,this.a=i}function jl(t,e,o){Cl.call(this,"PropertyIsEqualTo",t,e,o)}function Ll(t,e){Cl.call(this,"PropertyIsGreaterThan",t,e)}function Rl(t,e){Cl.call(this,"PropertyIsGreaterThanOrEqualTo",t,e)}function Fl(t,e,o,i){this.kc=t,this.geometryName=e||"the_geom",this.geometry=o,this.srsName=i}function Nl(t,e,o){Fl.call(this,"Intersects",t,e,o)}function Il(t,e,o){El.call(this,"PropertyIsBetween",t),this.a=e,this.i=o}function kl(t,e,o,i,r,n){El.call(this,"PropertyIsLike",t),this.c=e,this.g=void 0!==o?o:"*",this.f=void 0!==i?i:".",this.i=void 0!==r?r:"!",this.a=n}function Ol(t){El.call(this,"PropertyIsNull",t)}function Dl(t,e){Cl.call(this,"PropertyIsLessThan",t,e)}function Ul(t,e){Cl.call(this,"PropertyIsLessThanOrEqualTo",t,e)}function Gl(t){this.kc="Not",this.condition=t}function Bl(t,e,o){Cl.call(this,"PropertyIsNotEqualTo",t,e,o)}function Kl(t){var e=["Or"].concat(Array.prototype.slice.call(arguments));Pl.apply(this,e)}function Wl(t,e,o){Fl.call(this,"Within",t,e,o)}function Vl(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Ml,e))}function Xl(t,e,o){return new Tl(t,e,o)}function zl(t){or.call(this),this.a=t||null,Hl(this)}function Hl(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)g(t.a[e],"change",t.s,t)}function Zl(t){t=t||{},nl.call(this),this.defaultDataProjection=ge(t.defaultDataProjection||"EPSG:4326"),t.featureProjection&&(this.f=ge(t.featureProjection)),this.b=t.geometryName}function ql(t,e){return t?al((0,Jl[t.type])(t),!1,e):null}ml.prototype.Rc=function(t,e){var o=bl(t.geometry,e),i=new v;return this.b&&i.Tc(this.b),i.Ra(o),e&&e.dg&&t.attributes[e.dg]&&i.jc(t.attributes[e.dg]),t.attributes&&i.H(t.attributes),i},e(Pl,Sl),e(Ml,Pl),e(Tl,Sl),e(El,Sl),e(Al,El),e(Cl,El),e(jl,Cl),e(Ll,Cl),e(Rl,Cl),e(Fl,Sl),e(Nl,Fl),e(Il,El),e(kl,El),e(Ol,El),e(Dl,Cl),e(Ul,Cl),e(Gl,Sl),e(Bl,Cl),e(Kl,Pl),e(Wl,Fl),e(zl,or),zl.prototype.clone=function(){var t=new zl(null);return t.oj(this.a),t},e(Zl,ll);var Jl={Point:function(t){return new p(t.coordinates)},LineString:function(t){return new m(t.coordinates)},Polygon:function(t){return new s(t.coordinates)},MultiPoint:function(t){return new f(t.coordinates)},MultiLineString:function(t){return new a(t.coordinates)},MultiPolygon:function(t){return new b(t.coordinates)},GeometryCollection:function(t,e){return new zl(t=t.geometries.map(function(t){return ql(t,e)}))}};function Yl(){this.i=new XMLSerializer,nl.call(this)}function _l(t){this.featureType=(t=t||{}).featureType,this.featureNS=t.featureNS,this.srsName=t.srsName,this.schemaLocation="",this.b={},this.b["http://www.opengis.net/gml"]={featureMember:qa(_l.prototype.be),featureMembers:qa(_l.prototype.be)},Yl.call(this)}Zl.prototype.Rc=function(t,e){e=ql((t="Feature"===t.type?t:{type:"Feature",geometry:t}).geometry,e);var o=new v;return this.b&&o.Tc(this.b),o.Ra(e),void 0!==t.id&&o.jc(t.id),t.properties&&o.H(t.properties),o},e(Yl,nl),Yl.prototype.U=function(){return"xml"},e(_l,Yl);function $l(t){return Ql(t=Wa(t,!1))}function Ql(t){if(t=/^\s*(true|1)|(false|0)\s*$/.exec(t))return void 0!==t[1]||!1}function th(t){return t=Wa(t,!1),t=Date.parse(t),isNaN(t)?void 0:t/1e3}function eh(t){return oh(t=Wa(t,!1))}function oh(t){if(t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t))return parseFloat(t[1])}function ih(t){return rh(t=Wa(t,!1))}function rh(t){if(t=/^\s*(\d+)\s*$/.exec(t))return parseInt(t[1],10)}function n(t){return Wa(t,!1).trim()}function nh(t,e){ah(t,e?"1":"0")}function ph(t,e){t.appendChild(Ba.createTextNode(e.toPrecision()))}function sh(t,e){t.appendChild(Ba.createTextNode(e.toString()))}function ah(t,e){t.appendChild(Ba.createTextNode(e))}function x(t){_l.call(this,t=t||{}),this.l=void 0!==t.surface&&t.surface,this.c=void 0!==t.curve&&t.curve,this.g=void 0===t.multiCurve||t.multiCurve,this.j=void 0===t.multiSurface||t.multiSurface,this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}_l.prototype.be=function(t,e){var o=t.localName,i=null;if("FeatureCollection"==o)i=d("http://www.opengis.net/wfs"===t.namespaceURI?[]:null,this.b,t,e,this);else if("featureMembers"==o||"featureMember"==o){var r=(f=e[0]).featureType,n=f.featureNS;if(!r&&t.childNodes){r=[];for(var n={},p=0,s=t.childNodes.length;p<s;++p)if(1===(u=t.childNodes[p]).nodeType){var a=u.nodeName.split(":").pop();if(-1===r.indexOf(a)){var l,h="",y=0,u=u.namespaceURI;for(l in n){if(n[l]===u){h=l;break}++y}h||(n[h="p"+y]=u),r.push(h+":"+a)}}"featureMember"!=o&&(f.featureType=r,f.featureNS=n)}"string"==typeof n&&(p=n,(n={}).p0=p);var c,f={},r=Array.isArray(r)?r:[r];for(c in n){for(a={},p=0,s=r.length;p<s;++p)(-1===r[p].indexOf(":")?"p0":r[p].split(":")[0])===c&&(a[r[p].split(":").pop()]=("featureMembers"==o?Za:qa)(this.wg,this));f[n[c]]=a}i=d("featureMember"==o?void 0:[],f,t,e)}return i=null===i?[]:i},Za(_l.prototype.Xi),Za(_l.prototype.Xi),Za(_l.prototype.Mh),Za(_l.prototype.Mh),Za(_l.prototype.Yi),Za(_l.prototype.Yi),Za(_l.prototype.ff),Za(_l.prototype.hf),Za(_l.prototype.jf),qa(_l.prototype.wp),e(x,_l),x.prototype.Ap=function(t,e){if(t=d([],this.Lj,t,e,this))return cl(e=new a(null),t),e},qa(x.prototype.xp),qa(x.prototype.Bg),qa(_l.prototype.fj),qa(_l.prototype.dj),qa(_l.prototype.hf),qa(_l.prototype.cj),qa(_l.prototype.bj),qa(_l.prototype.jf),qa(_l.prototype.ej),qa(x.prototype.gj),qa(x.prototype.Bp),qa(x.prototype.Zi),qa(x.prototype.Ap),qa(x.prototype.vp),Za(x.prototype.ph),Za(x.prototype.ph),Za(x.prototype.Aj),Za(x.prototype.Aj),Za(_l.prototype.hf),Za(x.prototype.Zi),Za(_l.prototype.jf),Za(x.prototype.gj),qa(x.prototype.Ep),qa(x.prototype.Hp),Za(x.prototype.Bg),Za(x.prototype.Bg),qa(x.prototype.Fp),qa(x.prototype.zp);var lh={"http://www.opengis.net/gml":{lowerCorner:c(ah),upperCorner:c(ah)}},hh=(x.prototype.jn=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),ol({node:t},lh,$a,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)},c(x.prototype.pi),c(x.prototype.pi),c(x.prototype.ln),c(x.prototype.ji),c(x.prototype.ji),c(x.prototype.oi),c(x.prototype.oi),c(x.prototype.Re),c(x.prototype.li),c(x.prototype.ni),c(x.prototype.kn),c(x.prototype.Re),c(x.prototype.li),c(x.prototype.ki),c(x.prototype.Se),c(x.prototype.mi),c(x.prototype.Se),c(x.prototype.mi),c(x.prototype.jn),{MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"});function yh(t){_l.call(this,t=t||{}),this.b["http://www.opengis.net/gml"].featureMember=Za(_l.prototype.be),this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}x.prototype.o=function(t,e){return Ka("http://www.opengis.net/gml",hh[e[e.length-1].node.nodeName])},x.prototype.a=function(t,e){e=(r=e[e.length-1]).multiSurface;var o=r.surface,i=r.curve,r=r.multiCurve;return Array.isArray(t)?t="Envelope":"MultiPolygon"===(t=t.U())&&!0===e?t="MultiSurface":"Polygon"===t&&!0===o?t="Surface":"LineString"===t&&!0===i?t="Curve":"MultiLineString"===t&&!0===r&&(t="MultiCurve"),Ka("http://www.opengis.net/gml",t)},x.prototype.ie=function(t,e){e=sl(this,e);var o=Ka("http://www.opengis.net/gml","geom"),i={node:o,hasZ:this.hasZ,srsName:this.srsName,curve:this.c,surface:this.l,multiSurface:this.j,multiCurve:this.g};return e&&Gt(i,e),this.od(o,t,[i]),o},x.prototype.Xb=function(t,e){e=sl(this,e);var o=Ka("http://www.opengis.net/gml","featureMembers"),i=(o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation),{srsName:this.srsName,hasZ:this.hasZ,curve:this.c,surface:this.l,multiSurface:this.j,multiCurve:this.g,featureNS:this.featureNS,featureType:this.featureType}),r=(e&&Gt(i,e),(e=[i])[e.length-1]),i=r.featureType,n=r.featureNS,p={};return p[n]={},p[n][i]=c(this.ii,this),(r=Gt({},r)).node=o,ol(r,p,_a(i,n),t,e),o},e(yh,_l),yh.prototype.$i=function(t,e){t=Wa(t,!1).replace(/^\s*|\s*$/g,"");var o=e[0].srsName;e="enu",(o=o&&ge(o))&&(e=o.b);for(var i,r,n=[],p=0,s=(t=t.trim().split(/\s+/)).length;p<s;p++)r=t[p].split(/,+/),o=parseFloat(r[0]),i=parseFloat(r[1]),r=3===r.length?parseFloat(r[2]):0,"en"===e.substr(0,2)?n.push(o,i,r):n.push(i,o,r);return n},qa(yh.prototype.$i),Za(yh.prototype.$i),qa(_l.prototype.fj),qa(_l.prototype.dj),qa(_l.prototype.hf),qa(_l.prototype.cj),qa(_l.prototype.bj),qa(_l.prototype.jf),qa(_l.prototype.ej),qa(yh.prototype.tp);c(yh.prototype.Pe),c(yh.prototype.di),c(yh.prototype.fi),c(yh.prototype.fn),c(yh.prototype.Pe),c(yh.prototype.di),c(yh.prototype.ci),c(yh.prototype.Qe),c(yh.prototype.ei),c(yh.prototype.Qe),c(yh.prototype.ei),c(yh.prototype.en),c(yh.prototype.gi),c(yh.prototype.gi),c(yh.prototype.gn),c(yh.prototype.bi),c(yh.prototype.bi);yh.prototype.a=function(t,e){return Ka("http://www.opengis.net/gml",uh[e[e.length-1].node.nodeName])};var uh={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};c(yh.prototype.hi),c(yh.prototype.hi),c(ah),c(ah);function ch(t){t=t||{},Yl.call(this),this.defaultDataProjection=ge("EPSG:4326"),this.b=t.readExtensions}e(ch,Yl);var fh=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function dh(t,e,o,i){return t.push(parseFloat(o.getAttribute("lon")),parseFloat(o.getAttribute("lat"))),"ele"in i?(t.push(i.ele),delete i.ele,e.hasZ=!0):t.push(0),"time"in i?(t.push(i.time),delete i.time,e.hasM=!0):t.push(0),t}function gh(t,e,o){var i="XY",r=2;if(t.hasZ&&t.hasM?(i="XYZM",r=4):t.hasZ?(i="XYZ",r=3):t.hasM&&(i="XYM",r=3),4!==r){for(var n=0,p=e.length/4;n<p;n++)e[n*r]=e[4*n],e[n*r+1]=e[4*n+1],t.hasZ&&(e[n*r+2]=e[4*n+2]),t.hasM&&(e[n*r+2]=e[4*n+3]);if(e.length=e.length/4*r,o)for(n=0,p=o.length;n<p;n++)o[n]=o[n]/4*r}return i}function vh(t,e){var o=e[e.length-1],i=t.getAttribute("href");null!==i&&(o.link=i),tl(Mh,t,e)}function mh(t,e){e[e.length-1].extensionsNode_=t}function bh(t,e){var o,i,r=e[0];if(t=d({flatCoordinates:[],layoutOptions:{}},Th,t,e))return e=t.flatCoordinates,delete t.flatCoordinates,o=t.layoutOptions,delete t.layoutOptions,o=gh(o,e),(i=new m(null)).ba(o,e),al(i,!1,r),(r=new v(i)).H(t),r}function xh(t,e){var o,i,r,n=e[0];if(t=d({flatCoordinates:[],ends:[],layoutOptions:{}},Ah,t,e))return e=t.flatCoordinates,delete t.flatCoordinates,o=t.ends,delete t.ends,i=t.layoutOptions,delete t.layoutOptions,i=gh(i,e,o),(r=new a(null)).ba(i,e,o),al(r,!1,n),(n=new v(r)).H(t),n}function wh(t,e){var o,i=e[0];if(e=d({},Lh,t,e))return al(t=new p(t=dh([],o={},t,e),o=gh(o,t)),!1,i),(i=new v(t)).H(e),i}var Sh={rte:bh,trk:xh,wpt:wh},Ph=h(fh,{rte:Za(bh),trk:Za(xh),wpt:Za(wh)}),Mh=h(fh,{text:r(n,"linkText"),type:r(n,"linkType")}),Th=h(fh,{name:r(n),cmt:r(n),desc:r(n),src:r(n),link:vh,number:r(ih),extensions:mh,type:r(n),rtept:function(t,e){var o=d({},Eh,t,e);o&&dh((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),Eh=h(fh,{ele:r(eh),time:r(th)}),Ah=h(fh,{name:r(n),cmt:r(n),desc:r(n),src:r(n),link:vh,number:r(ih),type:r(n),extensions:mh,trkseg:function(t,e){var o=e[e.length-1];tl(Ch,t,e),o.ends.push(o.flatCoordinates.length)}}),Ch=h(fh,{trkpt:function(t,e){var o=d({},jh,t,e);o&&dh((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),jh=h(fh,{ele:r(eh),time:r(th)}),Lh=h(fh,{ele:r(eh),time:r(th),magvar:r(eh),geoidheight:r(eh),name:r(n),cmt:r(n),desc:r(n),src:r(n),link:vh,sym:r(n),type:r(n),fix:r(n),sat:r(ih),hdop:r(eh),vdop:r(eh),pdop:r(eh),ageofdgpsdata:r(eh),dgpsid:r(ih),extensions:mh});function Rh(t,e){for(var o=0,i=(e=e||[]).length;o<i;++o){var r,n=e[o];t.b&&(r=n.get("extensionsNode_")||null,t.b(n,r)),n.set("extensionsNode_",void 0)}}function Fh(t,e,o){t.setAttribute("href",e),e=o[o.length-1].properties,ol({node:t},kh,$a,[e.linkText,e.linkType],o,Ih)}function Nh(t,e,o){var i=o[o.length-1],r=i.node.namespaceURI,n=i.properties;switch(t.setAttributeNS(null,"lat",e[1]),t.setAttributeNS(null,"lon",e[0]),i.geometryLayout){case"XYZM":e[3]&&(n.time=e[3]);case"XYZ":e[2]&&(n.ele=e[2]);break;case"XYM":e[2]&&(n.time=e[2])}i=Qa(n,e=("rtept"==t.nodeName?Uh:Vh)[r]),ol({node:t,properties:n},Xh,$a,i,o,e)}ch.prototype.xg=function(t,e){var o;return G(fh,t.namespaceURI)&&(o=Sh[t.localName])&&(t=o(t,[pl(this,t,e)]))?(Rh(this,[t]),t):null},ch.prototype.zc=function(t,e){return G(fh,t.namespaceURI)&&"gpx"==t.localName&&(t=d([],Ph,t,[pl(this,t,e)]))?(Rh(this,t),t):[]};var Ih=["text","type"],kh=h(fh,{text:c(ah),type:c(ah)}),Oh=h(fh,"name cmt desc src link number type rtept".split(" ")),Dh=h(fh,{name:c(ah),cmt:c(ah),desc:c(ah),src:c(ah),link:c(Fh),number:c(sh),type:c(ah),rtept:Ya(c(Nh))}),Uh=h(fh,["ele","time"]),Gh=h(fh,"name cmt desc src link number type trkseg".split(" ")),Bh=h(fh,{name:c(ah),cmt:c(ah),desc:c(ah),src:c(ah),link:c(Fh),number:c(sh),type:c(ah),trkseg:Ya(c(function(t,e,o){ol({node:t,geometryLayout:e.ja,properties:{}},Wh,Kh,e.X(),o)}))}),Kh=_a("trkpt"),Wh=h(fh,{trkpt:c(Nh)}),Vh=h(fh,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),Xh=h(fh,{ele:c(ph),time:c(function(t,e){e=new Date(1e3*e),t.appendChild(Ba.createTextNode(e.getUTCFullYear()+"-"+Ki(e.getUTCMonth()+1)+"-"+Ki(e.getUTCDate())+"T"+Ki(e.getUTCHours())+":"+Ki(e.getUTCMinutes())+":"+Ki(e.getUTCSeconds())+"Z"))}),magvar:c(ph),geoidheight:c(ph),name:c(ah),cmt:c(ah),desc:c(ah),src:c(ah),link:c(Fh),sym:c(ah),type:c(ah),fix:c(ah),sat:c(sh),hdop:c(ph),vdop:c(ph),pdop:c(ph),ageofdgpsdata:c(ph),dgpsid:c(sh)}),zh={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function Hh(t,e){if(t=(t=t.V())&&zh[t.U()])return Ka(e[e.length-1].node.namespaceURI,t)}var Zh=h(fh,{rte:c(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=al(e,!0,i),t.geometryLayout=e.ja,r.rtept=e.X()),r=Qa(r,i=Oh[o[o.length-1].node.namespaceURI]),ol(t,Dh,$a,r,o,i)}),trk:c(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=al(e,!0,i),r.trkseg=e.gd()),r=Qa(r,i=Gh[o[o.length-1].node.namespaceURI]),ol(t,Bh,$a,r,o,i)}),wpt:c(function(t,e,o){var i=o[0],r=o[o.length-1];r.properties=e.N(),(e=e.V())&&(e=al(e,!0,i),r.geometryLayout=e.ja,Nh(t,e.X(),o))})});function qh(){nl.call(this)}function Jh(t){t=t||{},nl.call(this),this.defaultDataProjection=ge("EPSG:4326"),this.b=t.altitudeMode||"none"}ch.prototype.Xb=function(t,e){e=sl(this,e);var o=Ka("http://www.topografix.com/GPX/1/1","gpx");return 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.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"),o.setAttribute("version","1.1"),o.setAttribute("creator","OpenLayers"),ol({node:o},Zh,Hh,t,[e]),o},e(qh,nl),qh.prototype.U=function(){return"text"},e(Jh,qh);var Yh,_h,$h,Qh,ty,ey,oy,iy,ry,ny,py,sy,ay,ly,hy,yy=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,uy=/^H.([A-Z]{3}).*?:(.*)/,cy=/^HFDTE(\d{2})(\d{2})(\d{2})/,fy=/\r\n|\r|\n/;function dy(t,e,o,i,r,n){Qe.call(this),this.j=null,this.M=t||new Image,null!==i&&(this.M.crossOrigin=i),this.c=n?document.createElement("CANVAS"):null,this.g=n,this.f=null,this.i=r,this.a=o,this.o=e,this.l=!1,2==this.i&&gy(this)}function gy(e){var t=xo(1,1);try{t.drawImage(e.M,0,0),t.getImageData(0,0,1,1)}catch(t){e.l=!0}}function vy(t){this.o=void 0!==(t=t||{}).anchor?t.anchor:[.5,.5],this.u=null,this.i=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.C=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.B=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.ra=void 0!==t.crossOrigin?t.crossOrigin:null;var e=void 0!==t.img?t.img:null,o=void 0!==t.imgSize?t.imgSize:null,i=t.src,r=(_(!(void 0!==i&&e),4),_(!e||o,5),_(void 0!==(i=void 0!==i&&i.length||!e?i:e.src||q(e).toString())&&0<i.length,6),void 0!==t.src?0:2),n=(this.j=void 0!==t.color?uo(t.color):null,this.ra),p=this.j,s=Gn.get(i,n,p);s||(s=new dy(e,i,o,n,r,p),Gn.set(i,n,p,s)),this.b=s,this.oa=void 0!==t.offset?t.offset:[0,0],this.c=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.S=null,this.D=void 0!==t.size?t.size:null,ja.call(this,{opacity:void 0!==t.opacity?t.opacity:1,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,snapToPixel:void 0===t.snapToPixel||t.snapToPixel,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView})}function my(t){this.a=(t=t||{}).font,this.f=t.rotation,this.o=t.rotateWithView,this.b=t.scale,this.Ia=t.text,this.g=t.textAlign,this.j=t.textBaseline,this.Va=void 0!==t.fill?t.fill:new Na({color:"#333"}),this.Ya=void 0!==t.stroke?t.stroke:null,this.i=void 0!==t.offsetX?t.offsetX:0,this.c=void 0!==t.offsetY?t.offsetY:0}function by(t){t=t||{},Yl.call(this),Yh||($h=new Na({color:_h=[255,255,255,1]}),ey=ty="pixels",ny=new vy({anchor:Qh=[20,2],anchorOrigin:"bottom-left",anchorXUnits:ty,anchorYUnits:ey,crossOrigin:"anonymous",rotation:0,scale:ry=.5,size:oy=[64,64],src:iy="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),py="NO_IMAGE",sy=new as({color:_h,width:1}),ay=new as({color:[51,51,51,1],width:2}),ly=new my({font:"bold 16px Helvetica",fill:$h,stroke:ay,scale:.8}),hy=new Ia({fill:$h,image:ny,text:ly,stroke:sy,zIndex:0}),Yh=[hy]),this.defaultDataProjection=ge("EPSG:4326"),this.a=t.defaultStyle||Yh,this.c=void 0===t.extractStyles||t.extractStyles,this.j=void 0===t.writeStyles||t.writeStyles,this.b={},this.g=void 0===t.showPointNames||t.showPointNames}Jh.prototype.ae=function(t,e){for(var o=this.b,i=t.split(fy),r=(t={},[]),n=2e3,p=0,s=1,a=-1,l=0,h=i.length;l<h;++l){var y,u,c,f,d,g=i[l];"B"==g.charAt(0)?(y=yy.exec(g))&&(g=parseInt(y[1],10),u=parseInt(y[2],10),c=parseInt(y[3],10),f=parseInt(y[4],10)+parseInt(y[5],10)/6e4,"S"==y[6]&&(f=-f),d=parseInt(y[7],10)+parseInt(y[8],10)/6e4,"W"==y[9]&&(d=-d),r.push(d,f),"none"!=o&&r.push("gps"==o?parseInt(y[11],10):"barometric"==o?parseInt(y[12],10):0),(y=Date.UTC(n,p,s,g,u,c))<a&&(y=Date.UTC(n,p,s+1,g,u,c)),r.push(y/1e3),a=y):"H"==g.charAt(0)&&((y=cy.exec(g))?(s=parseInt(y[1],10),p=parseInt(y[2],10)-1,n=2e3+parseInt(y[3],10)):(y=uy.exec(g))&&(t[y[1]]=y[2].trim()))}return r.length?((i=new m(null)).ba("none"==o?"XYM":"XYZM",r),(e=new v(al(i,!1,e))).H(t),e):null},e(dy,Qe),dy.prototype.v=function(){this.i=3,this.f.forEach(Ze),this.f=null,this.b("change")},dy.prototype.u=function(){if(this.i=2,this.a&&(this.M.width=this.a[0],this.M.height=this.a[1]),this.a=[this.M.width,this.M.height],this.f.forEach(Ze),this.f=null,gy(this),!this.l&&null!==this.g){this.c.width=this.M.width,this.c.height=this.M.height;var t=this.c.getContext("2d");t.drawImage(this.M,0,0);for(var e=t.getImageData(0,0,this.M.width,this.M.height),o=e.data,i=this.g[0]/255,r=this.g[1]/255,n=this.g[2]/255,p=0,s=o.length;p<s;p+=4)o[p]*=i,o[p+1]*=r,o[p+2]*=n;t.putImageData(e,0,0)}this.b("change")},dy.prototype.Y=function(){return this.c||this.M},dy.prototype.load=function(){if(0==this.i){this.i=1,this.f=[ze(this.M,"error",this.v,this),ze(this.M,"load",this.u,this)];try{this.M.src=this.o}catch(t){this.v()}}},e(vy,ja),vy.prototype.clone=function(){var t,e,o=this.Y(1);return 2===this.b.i&&("IMG"===o.tagName.toUpperCase()?t=o.cloneNode(!0):(e=(t=document.createElement("canvas")).getContext("2d"),t.width=o.width,t.height=o.height,e.drawImage(o,0,0))),new vy({anchor:this.o.slice(),anchorOrigin:this.i,anchorXUnits:this.C,anchorYUnits:this.B,crossOrigin:this.ra,color:this.j&&this.j.slice?this.j.slice():this.j||void 0,img:t||void 0,imgSize:t?this.b.a.slice():void 0,src:t?void 0:this.b.o,offset:this.oa.slice(),offsetOrigin:this.c,size:null!==this.D?this.D.slice():void 0,opacity:this.f,scale:this.a,snapToPixel:this.v,rotation:this.g,rotateWithView:this.l})},my.prototype.clone=function(){return new my({font:this.a,rotation:this.f,rotateWithView:this.o,scale:this.b,text:this.Na(),textAlign:this.g,textBaseline:this.j,fill:this.Fa()?this.Fa().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,offsetX:this.i,offsetY:this.c})},e(by,Yl);var xy=["http://www.google.com/kml/ext/2.2"],wy=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],Sy={fraction:"fraction",pixels:"pixels",insetPixels:"pixels"};function Py(t){if(t=Wa(t,!1),t=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(t))return t=t[1],[parseInt(t.substr(6,2),16),parseInt(t.substr(4,2),16),parseInt(t.substr(2,2),16),parseInt(t.substr(0,2),16)/255]}function My(t){t=Wa(t,!1);for(var e,o=[],i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i;e=i.exec(t);)o.push(parseFloat(e[1]),parseFloat(e[2]),e[3]?parseFloat(e[3]):0),t=t.substr(e[0].length);if(""===t)return o}function Ty(t){var e=Wa(t,!1).trim();return t.baseURI&&"about:blank"!==t.baseURI?new URL(e,t.baseURI).href:e}function Ey(t){return eh(t)}function Ay(t,e){return d(null,Xy,t,e)}function Cy(t,e){if(e=d({A:[],Ej:[]},Hy,t,e)){t=e.A,e=e.Ej;for(var o=0,i=Math.min(t.length,e.length);o<i;++o)t[4*o+3]=e[o];return(e=new m(null)).ba("XYZM",t),e}}function jy(t,e){var o=d({},Vy,t,e);if(t=d(null,Zy,t,e))return(e=new m(null)).ba("XYZ",t),e.H(o),e}function Ly(t,e){var o=d({},Vy,t,e);if(t=d(null,Zy,t,e))return(e=new s(null)).ba("XYZ",t,[t.length]),e.H(o),e}function Ry(t,e){if(!(t=d([],Qy,t,e)))return null;if(!t.length)return new zl(t);var o=!0,i=t[0].U(),r=1;for(p=t.length;r<p;++r)if((e=t[r]).U()!=i){o=!1;break}if(o)if("Point"==i){for(var n=t[0],o=n.ja,i=n.ga(),r=1,p=t.length;r<p;++r)K(i,(e=t[r]).ga());(n=new f(null)).ba(o,i),ky(n,t)}else"LineString"==i?(cl(n=new a(null),t),ky(n,t)):"Polygon"==i?(vl(n=new b(null),t),ky(n,t)):"GeometryCollection"==i?n=new zl(t):_(!1,37);else n=new zl(t);return n}function Fy(t,e){var o=d({},Vy,t,e);if(t=d(null,Zy,t,e))return(e=new p(null)).ba("XYZ",t),e.H(o),e}function Ny(t,e){var o=d({},Vy,t,e);if((t=d([null],zy,t,e))&&t[0]){e=new s(null);for(var i=t[0],r=[i.length],n=1,p=t.length;n<p;++n)K(i,t[n]),r.push(i.length);return e.ba("XYZ",i,r),e.H(o),e}}function Iy(t,e){if(!(e=d({},pu,t,e)))return null;t="fillStyle"in e?e.fillStyle:$h;var o=e.fill,i=(void 0===o||o||(t=null),(o="imageStyle"in e?e.imageStyle:ny)==py&&(o=void 0),"textStyle"in e?e.textStyle:ly),r="strokeStyle"in e?e.strokeStyle:sy;return[new Ia({fill:t,image:o,stroke:r=void 0===(e=e.outline)||e?r:null,text:i,zIndex:void 0})]}function ky(t,e){for(var o,i=e.length,r=Array(e.length),n=Array(e.length),p=o=!1,s=0;s<i;++s){var a=e[s];r[s]=a.get("extrude"),n[s]=a.get("altitudeMode"),p=p||void 0!==r[s],o=o||n[s]}p&&t.set("extrude",r),o&&t.set("altitudeMode",n)}function Oy(t,e){tl(Gy,t,e)}function Dy(t,e){tl(By,t,e)}var Uy=h(wy,{displayName:r(n),value:r(n)}),Gy=h(wy,{Data:function(t,e){var o=t.getAttribute("name");tl(Uy,t,e),t=e[e.length-1],null!==o?t[o]=t.value:null!==t.displayName&&(t[t.displayName]=t.value)},SchemaData:function(t,e){tl(nu,t,e)}}),By=h(wy,{LatLonAltBox:function(t,e){(t=d({},Ky,t,e))&&((e=e[e.length-1]).extent=[parseFloat(t.west),parseFloat(t.south),parseFloat(t.east),parseFloat(t.north)],e.altitudeMode=t.altitudeMode,e.minAltitude=parseFloat(t.minAltitude),e.maxAltitude=parseFloat(t.maxAltitude))},Lod:function(t,e){(t=d({},Wy,t,e))&&((e=e[e.length-1]).minLodPixels=parseFloat(t.minLodPixels),e.maxLodPixels=parseFloat(t.maxLodPixels),e.minFadeExtent=parseFloat(t.minFadeExtent),e.maxFadeExtent=parseFloat(t.maxFadeExtent))}}),Ky=h(wy,{altitudeMode:r(n),minAltitude:r(eh),maxAltitude:r(eh),north:r(eh),south:r(eh),east:r(eh),west:r(eh)}),Wy=h(wy,{minLodPixels:r(eh),maxLodPixels:r(eh),minFadeExtent:r(eh),maxFadeExtent:r(eh)}),Vy=h(wy,{extrude:r($l),altitudeMode:r(n)}),Xy=h(wy,{coordinates:qa(My)}),zy=h(wy,{innerBoundaryIs:function(t,e){(t=d(void 0,Yy,t,e))&&e[e.length-1].push(t)},outerBoundaryIs:function(t,e){(t=d(void 0,ou,t,e))&&(e[e.length-1][0]=t)}}),Hy=h(wy,{when:function(t,e){e=e[e.length-1].Ej,t=Wa(t,!1),t=Date.parse(t),e.push(isNaN(t)?0:t)}},h(xy,{coord:function(t,e){e=e[e.length-1].A,t=Wa(t,!1),(t=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(t))?e.push(parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3]),0):e.push(0,0,0,0)}})),Zy=h(wy,{coordinates:qa(My)}),qy=h(wy,{href:r(Ty)},h(xy,{x:r(eh),y:r(eh),w:r(eh),h:r(eh)})),Jy=h(wy,{Icon:r(function(t,e){return(t=d({},qy,t,e))||null}),heading:r(eh),hotSpot:r(function(t){var e=t.getAttribute("xunits"),o=t.getAttribute("yunits"),i="insetPixels"!==e?"insetPixels"!==o?"bottom-left":"top-left":"insetPixels"!==o?"bottom-right":"top-right";return{x:parseFloat(t.getAttribute("x")),Xg:Sy[e],y:parseFloat(t.getAttribute("y")),Yg:Sy[o],origin:i}}),scale:r(Ey)}),Yy=h(wy,{LinearRing:qa(Ay)}),_y=h(wy,{color:r(Py),scale:r(Ey)}),$y=h(wy,{color:r(Py),width:r(eh)}),Qy=h(wy,{LineString:Za(jy),LinearRing:Za(Ly),MultiGeometry:Za(Ry),Point:Za(Fy),Polygon:Za(Ny)}),tu=h(xy,{Track:Za(Cy)}),eu=(h(wy,{ExtendedData:Oy,Region:Dy,Link:function(t,e){tl(eu,t,e)},address:r(n),description:r(n),name:r(n),open:r($l),phoneNumber:r(n),visibility:r($l)}),h(wy,{href:r(Ty)})),ou=h(wy,{LinearRing:qa(Ay)}),iu=h(wy,{Style:r(Iy),key:r(n),styleUrl:r(Ty)}),ru=(h(wy,{ExtendedData:Oy,Region:Dy,MultiGeometry:r(Ry,"geometry"),LineString:r(jy,"geometry"),LinearRing:r(Ly,"geometry"),Point:r(Fy,"geometry"),Polygon:r(Ny,"geometry"),Style:r(Iy),StyleMap:function(t,e){(t=d(void 0,su,t,e))&&(e=e[e.length-1],Array.isArray(t)?e.Style=t:"string"==typeof t?e.styleUrl=t:_(!1,38))},address:r(n),description:r(n),name:r(n),open:r($l),phoneNumber:r(n),styleUrl:r(Ty),visibility:r($l)},h(xy,{MultiTrack:r(function(t,e){if(t=d([],tu,t,e))return cl(e=new a(null),t),e},"geometry"),Track:r(Cy,"geometry")})),h(wy,{color:r(Py),fill:r($l),outline:r($l)})),nu=h(wy,{SimpleData:function(t,e){var o=t.getAttribute("name");null!==o&&(t=n(t),e[e.length-1][o]=t)}}),pu=h(wy,{IconStyle:function(t,e){var o,i,r,n,p,s,a,l,h,y,u,c;(t=d({},Jy,t,e))&&(e=e[e.length-1],c="Icon"in t?t.Icon:{},o=!("Icon"in t)||0<Object.keys(c).length,(r=c.href)?i=r:o&&(i=iy),r="bottom-left",(y=t.hotSpot)?(n=[y.x,y.y],p=y.Xg,s=y.Yg,r=y.origin):i===iy?(n=Qh,p=ty,s=ey):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(i)&&(n=[.5,0],s=p="fraction"),l=c.y,void 0!==(y=c.x)&&void 0!==l&&(a=[y,l]),y=c.w,c=c.h,void 0!==y&&void 0!==c&&(h=[y,c]),void 0!==(c=t.heading)&&(u=it(c)),t=t.scale,o?(i=new vy({anchor:n,anchorOrigin:r,anchorXUnits:p,anchorYUnits:s,crossOrigin:"anonymous",offset:a,offsetOrigin:"bottom-left",rotation:u,scale:t=i==iy&&(h=oy,void 0===t)?ry:t,size:h,src:i}),e.imageStyle=i):e.imageStyle=py)},LabelStyle:function(t,e){(t=d({},_y,t,e))&&(e[e.length-1].textStyle=new my({fill:new Na({color:"color"in t?t.color:_h}),scale:t.scale}))},LineStyle:function(t,e){(t=d({},$y,t,e))&&(e[e.length-1].strokeStyle=new as({color:"color"in t?t.color:_h,width:"width"in t?t.width:1}))},PolyStyle:function(t,e){var o;(t=d({},ru,t,e))&&((e=e[e.length-1]).fillStyle=new Na({color:"color"in t?t.color:_h}),void 0!==(o=t.fill)&&(e.fill=o),void 0!==(t=t.outline))&&(e.outline=t)}}),su=h(wy,{Pair:function(t,e){var o;(t=d({},iu,t,e))&&(o=t.key)&&"normal"==o&&((o=t.styleUrl)&&(e[e.length-1]=o),t=t.Style)&&(e[e.length-1]=t)}});function au(t,e){var o;for(e=[255*(4==(e=uo(e)).length?e[3]:1),e[2],e[1],e[0]],o=0;o<4;++o){var i=parseInt(e[o],10).toString(16);e[o]=1==i.length?"0"+i:i}ah(t,e.join(""))}function lu(t,e,o){t={node:t};var i,r,n=e.U();"GeometryCollection"==n?(i=e.Vf(),r=Gu):"MultiPoint"==n?(i=e.Zd(),r=qu):"MultiLineString"==n?(i=e.gd(),r=Ju):"MultiPolygon"==n?(i=e.Td(),r=_u):_(!1,39),ol(t,ju,r,i,o)}function hu(t,e,o){ol({node:t},Cu,Yu,[e],o)}function yu(t,e,o){var i,r={node:t},n=(e.a&&t.setAttribute("id",e.a),t=e.N(),{address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1}),p=(n[e.c]=1,Object.keys(t||{}).sort().filter(function(t){return!n[t]}));0<p.length&&(i=Qa(t,p),ol(r,Ru,Hu,[{names:p,values:i}],o)),(p=(p=e.Lc())&&p.call(e,0))&&(p=Array.isArray(p)?p[0]:p,this.j&&(t.Style=p),p=p.Na())&&(t.name=p.Na()),t=Qa(t,p=Lu[o[o.length-1].node.namespaceURI]),ol(r,Ru,$a,t,o,p),t=o[0],e=(e=e.V())&&al(e,!0,t),ol(r,Ru,Gu,[e],o)}function uu(t,e,o){var i=e.ga();(t={node:t}).layout=e.ja,t.stride=e.qa(),ol(t,Fu,Xu,[i],o)}function cu(t,e,o){var i=(e=e.Sd()).shift();ol(t={node:t},Nu,Zu,e,o),ol(t,Nu,$u,[i],o)}function fu(t,e){ph(t,Math.round(1e6*e)/1e6)}by.prototype.vg=function(t,e){if(t=d([],h(wy,{Document:Ha(this.vg,this),Folder:Ha(this.vg,this),Placemark:Za(this.Dg,this),Style:this.Jp.bind(this),StyleMap:this.Ip.bind(this)}),t,e,this))return t};var du=h(wy,["Document","Placemark"]),gu=h(wy,{Document:c(function(t,e,o){ol({node:t},vu,Uu,e,o,void 0,this)}),Placemark:c(yu)}),vu=h(wy,{Placemark:c(yu)}),mu=h(wy,{Data:c(function(t,e,o){t.setAttribute("name",e.name),t={node:t},"object"==typeof(e=e.value)?(null!==e&&e.displayName&&ol(t,mu,$a,[e.displayName],o,["displayName"]),null!==e&&e.value&&ol(t,mu,$a,[e.value],o,["value"])):ol(t,mu,$a,[e],o,["value"])}),value:c(function(t,e){ah(t,e)}),displayName:c(function(t,e){t.appendChild(Ba.createCDATASection(e))})}),bu={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},xu=h(wy,["href"],h(xy,["x","y","w","h"])),wu=h(wy,{href:c(ah)},h(xy,{x:c(ph),y:c(ph),w:c(ph),h:c(ph)})),Su=h(wy,["scale","heading","Icon","hotSpot"]),Pu=h(wy,{Icon:c(function(t,e,o){t={node:t};var i=xu[o[o.length-1].node.namespaceURI],r=Qa(e,i);ol(t,wu,$a,r,o,i),r=Qa(e,i=xu[xy[0]]),ol(t,wu,Du,r,o,i)}),heading:c(ph),hotSpot:c(function(t,e){t.setAttribute("x",e.x),t.setAttribute("y",e.y),t.setAttribute("xunits",e.Xg),t.setAttribute("yunits",e.Yg)}),scale:c(fu)}),Mu=h(wy,["color","scale"]),Tu=h(wy,{color:c(au),scale:c(fu)}),Eu=h(wy,["color","width"]),Au=h(wy,{color:c(au),width:c(ph)}),Cu=h(wy,{LinearRing:c(uu)}),ju=h(wy,{LineString:c(uu),Point:c(uu),Polygon:c(cu),GeometryCollection:c(lu)}),Lu=h(wy,"name open visibility address phoneNumber description styleUrl Style".split(" ")),Ru=h(wy,{ExtendedData:c(function(t,e,o){t={node:t};var i=e.names;e=e.values;for(var r=i.length,n=0;n<r;n++)ol(t,mu,zu,[{name:i[n],value:e[n]}],o)}),MultiGeometry:c(lu),LineString:c(uu),LinearRing:c(uu),Point:c(uu),Polygon:c(cu),Style:c(function(t,e,o){t={node:t};var i={},r=e.Fa(),n=e.Ga(),p=e.Y();e=e.Na(),p instanceof vy&&(i.IconStyle=p),e&&(i.LabelStyle=e),n&&(i.LineStyle=n),r&&(i.PolyStyle=r),i=Qa(i,e=ku[o[o.length-1].node.namespaceURI]),ol(t,Ou,$a,i,o,e)}),address:c(ah),description:c(ah),name:c(ah),open:c(nh),phoneNumber:c(ah),styleUrl:c(ah),visibility:c(nh)}),Fu=h(wy,{coordinates:c(function(t,e,o){var i,r=(o=o[o.length-1]).layout;o=o.stride,"XY"==r||"XYM"==r?i=2:"XYZ"==r||"XYZM"==r?i=3:_(!1,34);var n,p=e.length,s="";if(0<p){for(s+=e[0],r=1;r<i;++r)s+=","+e[r];for(n=o;n<p;n+=o)for(s+=" "+e[n],r=1;r<i;++r)s+=","+e[n+r]}ah(t,s)})}),Nu=h(wy,{outerBoundaryIs:c(hu),innerBoundaryIs:c(hu)}),Iu=h(wy,{color:c(au)}),ku=h(wy,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Ou=h(wy,{IconStyle:c(function(t,e,o){t={node:t};var i,r,n={},p=e.ic(),s=e.ye(),a={href:e.b.o};p&&(a.w=p[0],a.h=p[1],i=e.Hc(),(r=e.Oc())&&s&&r[0]&&r[1]!==p[1]&&(a.x=r[0],a.y=s[1]-(r[1]+p[1])),i)&&i[0]&&i[1]!==p[1]&&(n.hotSpot={x:i[0],Xg:"pixels",y:p[1]-i[1],Yg:"pixels"}),n.Icon=a,1!==(p=e.a)&&(n.scale=p),(e=e.g)&&(n.heading=e),n=Qa(n,e=Su[o[o.length-1].node.namespaceURI]),ol(t,Pu,$a,n,o,e)}),LabelStyle:c(function(t,e,o){t={node:t};var i={},r=e.Fa();r&&(i.color=r.b),(e=e.b)&&1!==e&&(i.scale=e),i=Qa(i,e=Mu[o[o.length-1].node.namespaceURI]),ol(t,Tu,$a,i,o,e)}),LineStyle:c(function(t,e,o){t={node:t};var i=Eu[o[o.length-1].node.namespaceURI];e=Qa({color:e.a,width:e.c},i),ol(t,Au,$a,e,o,i)}),PolyStyle:c(function(t,e,o){ol({node:t},Iu,Vu,[e.b],o)})});function Du(t,e,o){return Ka(xy[0],"gx:"+o)}function Uu(t,e){return Ka(e[e.length-1].node.namespaceURI,"Placemark")}function Gu(t,e){if(t)return Ka(e[e.length-1].node.namespaceURI,bu[t.U()])}var Bu,Ku,Wu,Vu=_a("color"),Xu=_a("coordinates"),zu=_a("Data"),Hu=_a("ExtendedData"),Zu=_a("innerBoundaryIs"),qu=_a("Point"),Ju=_a("LineString"),Yu=_a("LinearRing"),_u=_a("Polygon"),$u=_a("outerBoundaryIs");function Qu(t){this.lc=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.type=this.ea=0,this.length=this.lc.length}function tc(t,e,o){return o?4294967296*e+(t>>>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<t;){var i=e.ne[o.Ka()],r=e.pe[o.Ka()];e.properties[i]=r}else 3==t?e.type=o.Ka():4==t&&(e.Ef=o.ea)}function nc(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this.Cc=t,this.ne=[],this.pe=[],this.me=[],t.Ag(pc,this,e),this.length=this.me.length}function pc(t,e,o){15===t?e.version=o.Ka():1===t?e.name=o.Gg():5===t?e.extent=o.Ka():2===t?e.me.push(o.ea):3===t?e.ne.push(o.Gg()):4===t&&e.pe.push(function(t){for(var e=null,o=t.Ka()+t.ea;t.ea<o;)e=1==(e=t.Ka()>>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<t.length?r.Document=t:1==t.length&&(r.Placemark=t[0]),r=Qa(r,t=du[o.namespaceURI]),ol(i,gu,$a,r,[e],t,this),o},ms.Dd=function(){},pi=ms.Dd=ms.Dd||{},Bu=function(t,e,o,i,r){var n=8*r-i-1,p=(1<<n)-1,s=p>>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;o=256*o+t[e+r],r+=l,a-=8);for(n=o&(1<<-a)-1,o>>=-a,a+=i;0<a;n=256*n+t[e+r],r+=l,a-=8);if(0===o)o=1-s;else{if(o===p)return n?NaN:1/0*(h?-1:1);n+=Math.pow(2,i),o-=s}return(h?-1:1)*n*Math.pow(2,o-i)},Qu.c=0,Qu.i=1,Qu.b=2,Qu.a=5,Qu.prototype={Ag:function(t,e,o){for(o=o||this.length;this.ea<o;){var i=this.Ka(),r=i>>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<t;){var r,n,p,s=e[i],a=null,l=239<s?4:223<s?3:191<s?2:1;if(t<i+l)break;1===l?s<128&&(a=s):2===l?128==(192&(r=e[i+1]))&&(a=(31&s)<<6|63&r)<=127&&(a=null):3===l?(r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&((a=(15&s)<<12|(63&r)<<6|63&n)<=2047||55296<=a&&a<=57343)&&(a=null)):4===l&&(r=e[i+1],n=e[i+2],p=e[i+3],128==(192&r))&&128==(192&n)&&128==(192&p)&&((a=(15&s)<<18|(63&r)<<12|(63&n)<<6|63&p)<=65535||1114112<=a)&&(a=null),null===a?(a=65533,l=1):65535<a&&(a-=65536,o+=String.fromCharCode(a>>>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<this.lc[this.ea++];);else if(t===Qu.b)this.ea=this.Ka()+this.ea;else if(t===Qu.a)this.ea+=4;else{if(t!==Qu.i)throw Error("Unimplemented type: "+t);this.ea+=8}}},pi.default=Qu,ms.Dd=ms.Dd.default,ms.xf={},ms.xf.Bf=function(){},si=ms.xf=ms.xf||{},oc.prototype={clone:function(){return new oc(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}},oc.Kq=function(t){return!(t instanceof oc)&&Array.isArray(t)?new oc(t[0],t[1]):t},ic.b=["Unknown","Point","LineString","Polygon"],ic.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,p=0,s=[];t.ea<o;)if(r||(i=7&(r=t.Ka()),r>>=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<e;)if(i||(o=7&(i=t.Ka()),i>>=3),i--,1===o||2===o)(r+=t.ce())<p&&(p=r),s<r&&(s=r),(n+=t.ce())<a&&(a=n),l<n&&(l=n);else if(7!==o)throw Error("unknown command "+o);return[p,a,s,l]},(Ku=nc).prototype.feature=function(t){if(t<0||t>=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<p;n++)K(r,e.Sh[t.md[n]]);t.md[0]==t.md[t.md.length-1]?(n=new s(null)).ba("XY",r,[r.length]):(n=new m(null)).ba("XY",r),al(n,!1,o),(o=new v(n)).jc(i),o.H(t.fe),e.features.push(o)}}),fc=h(pi,{tag:yc});function dc(t){return t.getAttributeNS("http://www.w3.org/1999/xlink","href")}function gc(){}function vc(){}hc.prototype.zc=function(t,e){return e=pl(this,t,e),"osm"==t.localName&&(t=d({Sh:{},features:[]},cc,t,[e])).features?t.features:[]},hc.prototype.Vg=function(){},hc.prototype.Xb=function(){},hc.prototype.ie=function(){},gc.prototype.read=function(t){return Va(t)?this.a(t):Xa(t)?this.b(t):"string"==typeof t?(t=za(t),this.a(t)):null},e(vc,gc),vc.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},vc.prototype.b=function(t){return(t=d({},mc,t,[]))||null};var si=[null,"http://www.opengis.net/ows/1.1"],mc=h(si,{ServiceIdentification:r(function(t,e){return d({},Lc,t,e)}),ServiceProvider:r(function(t,e){return d({},Rc,t,e)}),OperationsMetadata:r(function(t,e){return d({},Ec,t,e)})}),bc=h(si,{DeliveryPoint:r(n),City:r(n),AdministrativeArea:r(n),PostalCode:r(n),Country:r(n),ElectronicMailAddress:r(n)}),xc=h(si,{Value:Ja(n)}),wc=h(si,{AllowedValues:r(function(t,e){return d({},xc,t,e)})}),Sc=h(si,{Phone:r(function(t,e){return d({},Ac,t,e)}),Address:r(function(t,e){return d({},bc,t,e)})}),Pc=h(si,{HTTP:r(function(t,e){return d({},Mc,t,e)})}),Mc=h(si,{Get:Ja(function(t,e){var o=dc(t);if(o)return d({href:o},Cc,t,e)}),Post:void 0}),Tc=h(si,{DCP:r(function(t,e){return d({},Pc,t,e)})}),Ec=h(si,{Operation:function(t,e){var o=t.getAttribute("name");(t=d({},Tc,t,e))&&(e[e.length-1][o]=t)}}),Ac=h(si,{Voice:r(n),Facsimile:r(n)}),Cc=h(si,{Constraint:Ja(function(t,e){var o=t.getAttribute("name");if(o)return d({name:o},wc,t,e)})}),jc=h(si,{IndividualName:r(n),PositionName:r(n),ContactInfo:r(function(t,e){return d({},Sc,t,e)})}),Lc=h(si,{Title:r(n),ServiceTypeVersion:r(n),ServiceType:r(n)}),Rc=h(si,{ProviderName:r(n),ProviderSite:r(dc),ServiceContact:r(function(t,e){return d({},jc,t,e)})});function Fc(t){t=t||{},nl.call(this),this.defaultDataProjection=ge("EPSG:4326"),this.b=t.factor||1e5,this.a=t.geometryLayout||"XY"}function Nc(t,e,o){for(var i=Array(e),r=0;r<e;++r)i[r]=0;for(var n=0,p=t.length;n<p;)for(r=0;r<e;++r,++n){var s=t[n],a=s-i[r];i[r]=s,t[n]=a}return kc(t,o||1e5)}function Ic(t,e,o){for(var i,r=Array(e),n=0;n<e;++n)r[n]=0;for(t=Oc(t,o||1e5),o=0,i=t.length;o<i;)for(n=0;n<e;++n,++o)r[n]+=t[o],t[o]=r[n];return t}function kc(t,e){e=e||1e5;for(var o=0,i=t.length;o<i;++o)t[o]=Math.round(t[o]*e);for(e=0,o=t.length;e<o;++e)i=t[e],t[e]=i<0?~(i<<1):i<<1;for(e="",o=0,i=t.length;o<i;++o){for(var r=t[o],n="";32<=r;)n+=String.fromCharCode(63+(32|31&r)),r>>=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<p;++n){var s=t.charCodeAt(n)-63,i=i|(31&s)<<r;s<32?(o.push(i),r=i=0):r+=5}for(t=0,i=o.length;t<i;++t)o[t]=1&(r=o[t])?~(r>>1):r>>1;for(t=0,i=o.length;t<i;++t)o[t]/=e;return o}function Dc(t){t=t||{},nl.call(this),this.a=t.layerName,this.b=t.layers||null,this.defaultDataProjection=ge(t.defaultDataProjection||"EPSG:4326")}function Uc(t,e){for(var o=[],i=0,r=t.length;i<r;++i){var n=t[i];0<i&&o.pop(),n=0<=n?e[n]:e[~n].slice().reverse(),o.push.apply(o,n)}for(t=0,e=o.length;t<e;++t)o[t]=o[t].slice();return o}function Gc(t,e,o,i,r,n,p){var s=t.type,a=Kc[s];return o="Point"===s||"MultiPoint"===s?a(t,o,i):a(t,e),(e=new v).Ra(al(o,!1,p)),void 0!==t.id&&e.jc(t.id),t=t.properties,r&&((t=t||{})[r]=n),t&&e.H(t),e}function Bc(t,e,o){t[0]=t[0]*e[0]+o[0],t[1]=t[1]*e[1]+o[1]}e(Fc,qh),Fc.prototype.ae=function(t,e){return new v(t=this.wd(t,e))},e(Dc,ll),Dc.prototype.yg=function(t,e){if("Topology"!=t.type)return[];var o=null,i=null,r=(t.transform&&(o=(n=t.transform).scale,i=n.translate),t.arcs);if(n)for(var n=o,p=i,s=0,a=r.length;s<a;++s)for(var l=r[s],h=n,y=p,u=0,c=0,f=0,d=l.length;f<d;++f){var g=l[f];u+=g[0],c+=g[1],g[0]=u,g[1]=c,Bc(g,h,y)}n=[];var v,p=this.a;for(v in t=t.objects)this.b&&-1==this.b.indexOf(v)||("GeometryCollection"===t[v].type?(s=t[v],n.push.apply(n,function(t,e,o,i,r,n,p){for(var s=[],a=0,l=(t=t.geometries).length;a<l;++a)s[a]=Gc(t[a],e,o,i,r,n,p);return s}(s,r,o,i,p,v,e))):(s=t[v],n.push(Gc(s,r,o,i,p,v,e))));return n},Dc.prototype.Fg=function(){return this.defaultDataProjection};var Kc={Point:function(t,e,o){return t=t.coordinates,e&&o&&Bc(t,e,o),new p(t)},LineString:function(t,e){return new m(t=Uc(t.arcs,e))},Polygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=Uc(t.arcs[i],e);return new s(o)},MultiPoint:function(t,e,o){if(t=t.coordinates,e&&o)for(var i=0,r=t.length;i<r;++i)Bc(t[i],e,o);return new f(t)},MultiLineString:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=Uc(t.arcs[i],e);return new a(o)},MultiPolygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i){for(var n=t.arcs[i],p=[],s=0,a=n.length;s<a;++s)p[s]=Uc(n[s],e);o[i]=p}return new b(o)}};function Wc(t){this.c=(t=t||{}).featureType,this.a=t.featureNS,this.b=t.gmlFormat||new x,this.o=t.schemaLocation||Vc["1.1.0"],Yl.call(this)}Dc.prototype.Zc=function(){},e(Wc,Yl);var Vc={"1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"};function Xc(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return Hc(t,e)}Wc.prototype.zc=function(t,e){var o={featureType:this.c,featureNS:this.a};return Gt(o,pl(this,t,e||{})),e=[o],this.b.b["http://www.opengis.net/gml"].featureMember=Za(_l.prototype.be),t=(t=d([],this.b.b,t,e,this.b))||[]},Wc.prototype.j=function(t){return Va(t)?_c(t):Xa(t)?d({},Yc,t,[]):"string"==typeof t?_c(t=za(t)):void 0},Wc.prototype.g=function(t){return Va(t)?Xc(this,t):Xa(t)?Hc(this,t):"string"==typeof t?Xc(this,t=za(t)):void 0};var zc={"http://www.opengis.net/gml":{boundedBy:r(_l.prototype.gf,"bounds")}};function Hc(t,e){var o={},i=rh(e.getAttribute("numberOfFeatures"));return o.numberOfFeatures=i,d(o,zc,e,[],t.b)}var Zc={"http://www.opengis.net/wfs":{totalInserted:r(ih),totalUpdated:r(ih),totalDeleted:r(ih)}},qc={"http://www.opengis.net/ogc":{FeatureId:Za(function(t){return t.getAttribute("fid")})}},Jc={"http://www.opengis.net/wfs":{Feature:function(t,e){tl(qc,t,e)}}},Yc={"http://www.opengis.net/wfs":{TransactionSummary:r(function(t,e){return d({},Zc,t,e)},"transactionSummary"),InsertResults:r(function(t,e){return d([],Jc,t,e)},"insertIds")}};function _c(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return d({},Yc,t,[])}var $c={"http://www.opengis.net/wfs":{PropertyName:c(ah)}};function Qc(t,e){var o=Ka("http://www.opengis.net/ogc","Filter"),i=Ka("http://www.opengis.net/ogc","FeatureId");o.appendChild(i),i.setAttribute("fid",e),t.appendChild(o)}function tf(t,e){return e.indexOf(t=(t||"feature")+":")?t+e:e}var ef={"http://www.opengis.net/wfs":{Insert:c(function(t,e,o){var i=(r=o[o.length-1]).gmlVersion,r=Ka(r.featureNS,r.featureType);if(t.appendChild(r),2===i){t=yh.prototype,(i=e.a)&&r.setAttribute("fid",i);var n=(i=o[o.length-1]).featureNS,p=e.c,s=(i.lb||(i.lb={},i.lb[n]={}),e.N()),a=(e=[],[]);for(h in s){var l=s[h];null!==l&&(e.push(h),a.push(l),h==p||l instanceof or?h in i.lb[n]||(i.lb[n][h]=c(t.ai,t)):h in i.lb[n]||(i.lb[n][h]=c(ah)))}var h=Gt({},i);h.node=r,ol(h,i.lb,_a(void 0,n),a,o,e)}else x.prototype.ii(r,e,o)}),Update:c(function(t,e,o){var i=o[o.length-1],r=(_(void 0!==e.a,27),i.featurePrefix),n=i.featureNS;if(t.setAttribute("typeName",tf(r,i.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),void 0!==(r=e.a)){for(var p=[],s=0,a=(n=e.O()).length;s<a;s++){var l=e.get(n[s]);void 0!==l&&p.push({name:n[s],value:l})}ol({gmlVersion:i.gmlVersion,node:t,hasZ:i.hasZ,srsName:i.srsName},ef,_a("Property"),p,o),Qc(t,r)}}),Delete:c(function(t,e,o){o=o[o.length-1],_(void 0!==e.a,26);var i=o.featurePrefix,r=o.featureNS;t.setAttribute("typeName",tf(i,o.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+i,r),void 0!==(e=e.a)&&Qc(t,e)}),Property:c(function(t,e,o){var i=Ka("http://www.opengis.net/wfs","Name"),r=o[o.length-1].gmlVersion;t.appendChild(i),ah(i,e.name),null!=e.value&&(i=Ka("http://www.opengis.net/wfs","Value"),t.appendChild(i),e.value instanceof or?2===r?yh.prototype.ai(i,e.value,o):x.prototype.od(i,e.value,o):ah(i,e.value))}),Native:c(function(t,e){e.vq&&t.setAttribute("vendorId",e.vq),void 0!==e.Vp&&t.setAttribute("safeToIgnore",e.Vp),void 0!==e.value&&ah(t,e.value)})}};function of(t,e,o){var i={node:t};e.b.forEach(function(t){ol(i,lf,_a(t.kc),[t],o)})}function rf(t,e){void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),pf(t,e.b),sf(t,""+e.i)}function nf(t,e,o){ah(t=Ka("http://www.opengis.net/ogc",t),o),e.appendChild(t)}function pf(t,e){nf("PropertyName",t,e)}function sf(t,e){nf("Literal",t,e)}function af(t,e){var o=Ka("http://www.opengis.net/gml","TimeInstant");t.appendChild(o),t=Ka("http://www.opengis.net/gml","timePosition"),o.appendChild(t),ah(t,e)}var lf={"http://www.opengis.net/wfs":{Query:c(function(t,e,o){var i=o[o.length-1],r=i.featurePrefix,n=i.featureNS,p=i.propertyNames,s=i.srsName;t.setAttribute("typeName",r?tf(r,e):e),s&&t.setAttribute("srsName",s),n&&t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),(e=Gt({},i)).node=t,ol(e,$c,_a("PropertyName"),p,o),(i=i.filter)&&(p=Ka("http://www.opengis.net/ogc","Filter"),t.appendChild(p),ol({node:p},lf,_a(i.kc),[i],o))})},"http://www.opengis.net/ogc":{During:c(function(t,e){var o=Ka("http://www.opengis.net/fes","ValueReference");ah(o,e.b),t.appendChild(o),o=Ka("http://www.opengis.net/gml","TimePeriod"),t.appendChild(o),t=Ka("http://www.opengis.net/gml","begin"),o.appendChild(t),af(t,e.a),t=Ka("http://www.opengis.net/gml","end"),o.appendChild(t),af(t,e.i)}),And:c(of),Or:c(of),Not:c(function(t,e,o){e=e.condition,ol({node:t},lf,_a(e.kc),[e],o)}),BBOX:c(function(t,e,o){o[o.length-1].srsName=e.srsName,pf(t,e.geometryName),x.prototype.od(t,e.extent,o)}),Intersects:c(function(t,e,o){o[o.length-1].srsName=e.srsName,pf(t,e.geometryName),x.prototype.od(t,e.geometry,o)}),Within:c(function(t,e,o){o[o.length-1].srsName=e.srsName,pf(t,e.geometryName),x.prototype.od(t,e.geometry,o)}),PropertyIsEqualTo:c(rf),PropertyIsNotEqualTo:c(rf),PropertyIsLessThan:c(rf),PropertyIsLessThanOrEqualTo:c(rf),PropertyIsGreaterThan:c(rf),PropertyIsGreaterThanOrEqualTo:c(rf),PropertyIsNull:c(function(t,e){pf(t,e.b)}),PropertyIsBetween:c(function(t,e){pf(t,e.b);var o=Ka("http://www.opengis.net/ogc","LowerBoundary");t.appendChild(o),sf(o,""+e.a),o=Ka("http://www.opengis.net/ogc","UpperBoundary"),t.appendChild(o),sf(o,""+e.i)}),PropertyIsLike:c(function(t,e){t.setAttribute("wildCard",e.g),t.setAttribute("singleChar",e.f),t.setAttribute("escapeChar",e.i),void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),pf(t,e.b),sf(t,""+e.c)})}};function hf(t){t=t||{},nl.call(this),this.b=void 0!==t.splitCollection&&t.splitCollection}Wc.prototype.l=function(t){var e,o,i=Ka("http://www.opengis.net/wfs","GetFeature");return i.setAttribute("service","WFS"),i.setAttribute("version","1.1.0"),t&&(t.handle&&i.setAttribute("handle",t.handle),t.outputFormat&&i.setAttribute("outputFormat",t.outputFormat),void 0!==t.maxFeatures&&i.setAttribute("maxFeatures",t.maxFeatures),t.resultType&&i.setAttribute("resultType",t.resultType),void 0!==t.startIndex&&i.setAttribute("startIndex",t.startIndex),void 0!==t.count&&i.setAttribute("count",t.count),o=t.filter,t.bbox)&&(_(t.geometryName,12),e=Xl(t.geometryName,t.bbox,t.srsName),o=o?Vl(o,e):e),i.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.o),o={node:i,srsName:t.srsName,featureNS:t.featureNS||this.a,featurePrefix:t.featurePrefix,geometryName:t.geometryName,filter:o,propertyNames:t.propertyNames||[]},_(Array.isArray(t.featureTypes),11),t=t.featureTypes,(e=Gt({},(o=[o])[o.length-1])).node=i,ol(e,lf,_a("Query"),t,o),i},Wc.prototype.v=function(t,e,o,i){var r,n=[],p=Ka("http://www.opengis.net/wfs","Transaction"),s=i.version||"1.1.0",a="1.0.0"===s?2:3;return p.setAttribute("service","WFS"),p.setAttribute("version",s),i&&(r=i.gmlOptions||{},i.handle)&&p.setAttribute("handle",i.handle),p.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",Vc[s]),t&&(s={node:p,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:a,hasZ:i.hasZ,srsName:i.srsName},Gt(s,r),ol(s,ef,_a("Insert"),t,n)),e&&(s={node:p,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:a,hasZ:i.hasZ,srsName:i.srsName},Gt(s,r),ol(s,ef,_a("Update"),e,n)),o&&ol({node:p,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:a,srsName:i.srsName},ef,_a("Delete"),o,n),i.nativeElements&&ol({node:p,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:a,srsName:i.srsName},ef,_a("Native"),i.nativeElements,n),p},Wc.prototype.Eg=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.kf(t);return null},Wc.prototype.kf=function(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild)for(t=(t=t.firstElementChild.firstElementChild).firstElementChild;t;t=t.nextElementSibling){var e;if(0!==t.childNodes.length&&(1!==t.childNodes.length||3!==t.firstChild.nodeType))return this.b.gf(t,e=[{}]),ge(e.pop().srsName)}return null},e(hf,qh);function yf(t){t.b=function t(e){var o=e.a.charAt(++e.b),i={position:e.b,value:o};if("("==o)i.type=2;else if(","==o)i.type=5;else if(")"==o)i.type=3;else if("0"<=o&&o<="9"||"."==o||"-"==o){var o=e.b,r=!(i.type=4),n=!1;do{"."==p?r=!0:"e"!=p&&"E"!=p||(n=!0);var p=e.a.charAt(++e.b)}while("0"<=p&&p<="9"||"."==p&&(void 0===r||!r)||!n&&("e"==p||"E"==p)||n&&("-"==p||"+"==p));e=parseFloat(e.a.substring(o,e.b--)),i.value=e}else if("a"<=o&&o<="z"||"A"<=o&&o<="Z"){for(i.type=1,o=e.b;"a"<=(p=e.a.charAt(++e.b))&&p<="z"||"A"<=p&&p<="Z";);e=e.a.substring(o,e.b--).toUpperCase(),i.value=e}else{if(" "==o||"\t"==o||"\r"==o||"\n"==o)return t(e);if(""!==o)throw Error("Unexpected character: "+o);i.type=6}return i}(t.i)}function uf(t,e){return(e=t.b.type==e)&&yf(t),e}function cf(t){for(var e=[],o=t.a.length,i=0;i<o;++i){var r=t.b;if(!uf(t,4))break;e.push(r.value)}if(e.length==o)return e;throw Error(df(t))}function ff(t){var e=1==t.b.type&&"EMPTY"==t.b.value;return e&&yf(t),e}function df(t){return"Unexpected `"+t.b.value+"` at position "+t.b.position+" in `"+t.i.a+"`"}hf.prototype.ae=function(t,e){return(t=this.wd(t,e))?((e=new v).Ra(t),e):null};function gf(){this.version=void 0}function vf(t,e){return d({},Of,t,e)}function mf(t,e){return d({},Ff,t,e)}function bf(t,e){if(e=vf(t,e))return t=[rh(t.getAttribute("width")),rh(t.getAttribute("height"))],e.size=t,e}function xf(t,e){return d([],Df,t,e)}e(gf,gc),gf.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},gf.prototype.b=function(t){return this.version=t.getAttribute("version").trim(),(t=d({version:this.version},wf,t,[]))||null};var pi=[null,"http://www.opengis.net/wms"],wf=h(pi,{Service:r(function(t,e){return d({},Pf,t,e)}),Capability:r(function(t,e){return d({},Sf,t,e)})}),Sf=h(pi,{Request:r(function(t,e){return d({},Rf,t,e)}),Exception:r(function(t,e){return d([],Af,t,e)}),Layer:r(function(t,e){return d({},Cf,t,e)})}),Pf=h(pi,{Name:r(n),Title:r(n),Abstract:r(n),KeywordList:r(xf),OnlineResource:r(dc),ContactInformation:r(function(t,e){return d({},Mf,t,e)}),Fees:r(n),AccessConstraints:r(n),LayerLimit:r(ih),MaxWidth:r(ih),MaxHeight:r(ih)}),Mf=h(pi,{ContactPersonPrimary:r(function(t,e){return d({},Tf,t,e)}),ContactPosition:r(n),ContactAddress:r(function(t,e){return d({},Ef,t,e)}),ContactVoiceTelephone:r(n),ContactFacsimileTelephone:r(n),ContactElectronicMailAddress:r(n)}),Tf=h(pi,{ContactPerson:r(n),ContactOrganization:r(n)}),Ef=h(pi,{AddressType:r(n),Address:r(n),City:r(n),StateOrProvince:r(n),PostCode:r(n),Country:r(n)}),Af=h(pi,{Format:Za(n)}),Cf=h(pi,{Name:r(n),Title:r(n),Abstract:r(n),KeywordList:r(xf),CRS:Ja(n),EX_GeographicBoundingBox:r(function(t,e){if(i=d({},Lf,t,e)){t=i.westBoundLongitude,e=i.southBoundLatitude;var o=i.eastBoundLongitude,i=i.northBoundLatitude;if(void 0!==t&&void 0!==e&&void 0!==o&&void 0!==i)return[t,e,o,i]}}),BoundingBox:Ja(function(t){var e=[oh(t.getAttribute("minx")),oh(t.getAttribute("miny")),oh(t.getAttribute("maxx")),oh(t.getAttribute("maxy"))],o=[oh(t.getAttribute("resx")),oh(t.getAttribute("resy"))];return{crs:t.getAttribute("CRS"),extent:e,res:o}}),Dimension:Ja(function(t){return{name:t.getAttribute("name"),units:t.getAttribute("units"),unitSymbol:t.getAttribute("unitSymbol"),default:t.getAttribute("default"),multipleValues:Ql(t.getAttribute("multipleValues")),nearestValue:Ql(t.getAttribute("nearestValue")),current:Ql(t.getAttribute("current")),values:n(t)}}),Attribution:r(function(t,e){return d({},jf,t,e)}),AuthorityURL:Ja(function(t,e){if(e=vf(t,e))return e.name=t.getAttribute("name"),e}),Identifier:Ja(n),MetadataURL:Ja(function(t,e){if(e=vf(t,e))return e.type=t.getAttribute("type"),e}),DataURL:Ja(vf),FeatureListURL:Ja(vf),Style:Ja(function(t,e){return d({},kf,t,e)}),MinScaleDenominator:r(eh),MaxScaleDenominator:r(eh),Layer:Ja(function(t,e){var o=e[e.length-1],i=d({},Cf,t,e);if(i)return void 0===(e=Ql(t.getAttribute("queryable")))&&(e=o.queryable),i.queryable=void 0!==e&&e,void 0===(e=rh(t.getAttribute("cascaded")))&&(e=o.cascaded),i.cascaded=e,void 0===(e=Ql(t.getAttribute("opaque")))&&(e=o.opaque),i.opaque=void 0!==e&&e,void 0===(e=Ql(t.getAttribute("noSubsets")))&&(e=o.noSubsets),i.noSubsets=void 0!==e&&e,e=(e=oh(t.getAttribute("fixedWidth")))||o.fixedWidth,i.fixedWidth=e,t=(t=oh(t.getAttribute("fixedHeight")))||o.fixedHeight,i.fixedHeight=t,["Style","CRS","AuthorityURL"].forEach(function(t){t in o&&(i[t]=(i[t]||[]).concat(o[t]))}),"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" ").forEach(function(t){t in i||(i[t]=o[t])}),i})}),jf=h(pi,{Title:r(n),OnlineResource:r(dc),LogoURL:r(bf)}),Lf=h(pi,{westBoundLongitude:r(eh),eastBoundLongitude:r(eh),southBoundLatitude:r(eh),northBoundLatitude:r(eh)}),Rf=h(pi,{GetCapabilities:r(mf),GetMap:r(mf),GetFeatureInfo:r(mf)}),Ff=h(pi,{Format:Ja(n),DCPType:Ja(function(t,e){return d({},Nf,t,e)})}),Nf=h(pi,{HTTP:r(function(t,e){return d({},If,t,e)})}),If=h(pi,{Get:r(vf),Post:r(vf)}),kf=h(pi,{Name:r(n),Title:r(n),Abstract:r(n),LegendURL:Ja(bf),StyleSheetURL:r(vf),StyleURL:r(vf)}),Of=h(pi,{Format:r(n),OnlineResource:r(dc)}),Df=h(pi,{Keyword:Za(n)});function Uf(t){t=t||{},this.a="http://mapserver.gis.umn.edu/mapserver",this.b=new yh,this.c=t.layers||null,Yl.call(this)}function Gf(){this.i=new vc}function Bf(t){var e=n(t).split(" ");if(e&&2==e.length&&(t=+e[0],e=+e[1],!isNaN(t))&&!isNaN(e))return[t,e]}e(Uf,Yl),Uf.prototype.zc=function(t,e){var o={},i=(e&&Gt(o,pl(this,t,e)),o=[o],t.setAttribute("namespaceURI",this.a),t.localName);if(e=[],t.childNodes.length){if("msGMLOutput"==i)for(var r=0,n=t.childNodes.length;r<n;r++){var p,s,a,l=t.childNodes[r];l.nodeType===Node.ELEMENT_NODE&&(p=o[0],s=l.localName.replace("_layer",""),!this.c||G(this.c,s))&&(s+="_feature",p.featureType=s,p.featureNS=this.a,(a={})[s]=Za(this.b.wg,this.b),p=h([p.featureNS,null],a),l.setAttribute("namespaceURI",this.a),l=d([],p,l,o,this.b))&&K(e,l)}"FeatureCollection"==i&&(t=d([],this.b.b,t,[{}],this.b))&&(e=t)}return e},Uf.prototype.Vg=function(){},Uf.prototype.Xb=function(){},Uf.prototype.ie=function(){},e(Gf,gc),Gf.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},Gf.prototype.b=function(t){var e=t.getAttribute("version").trim(),o=this.i.b(t);return o&&(o.version=e,o=d(o,Kf,t,[]))||null};var si=[null,"http://www.opengis.net/wmts/1.0"],pi=[null,"http://www.opengis.net/ows/1.1"],Kf=h(si,{Contents:r(function(t,e){return d({},Wf,t,e)})}),Wf=h(si,{Layer:Ja(function(t,e){return d({},Vf,t,e)}),TileMatrixSet:Ja(function(t,e){return d({},Yf,t,e)})}),Vf=h(si,{Style:Ja(function(t,e){if(e=d({},Xf,t,e))return t="true"===t.getAttribute("isDefault"),e.isDefault=t,e}),Format:Ja(n),TileMatrixSetLink:Ja(function(t,e){return d({},zf,t,e)}),Dimension:Ja(function(t,e){return d({},qf,t,e)}),ResourceURL:Ja(function(t){var e=t.getAttribute("format"),o=t.getAttribute("template"),i=(t=t.getAttribute("resourceType"),{});return e&&(i.format=e),o&&(i.template=o),t&&(i.resourceType=t),i})},h(pi,{Title:r(n),Abstract:r(n),WGS84BoundingBox:r(function(t,e){if(2==(t=d([],Jf,t,e)).length)return lt(t)}),Identifier:r(n)})),Xf=h(si,{LegendURL:Ja(function(t){var e={};return e.format=t.getAttribute("format"),e.href=dc(t),e})},h(pi,{Title:r(n),Identifier:r(n)})),zf=h(si,{TileMatrixSet:r(n),TileMatrixSetLimits:r(function(t,e){return d([],Hf,t,e)})}),Hf=h(si,{TileMatrixLimits:Za(function(t,e){return d({},Zf,t,e)})}),Zf=h(si,{TileMatrix:r(n),MinTileRow:r(ih),MaxTileRow:r(ih),MinTileCol:r(ih),MaxTileCol:r(ih)}),qf=h(si,{Default:r(n),Value:Ja(n)},h(pi,{Identifier:r(n)})),Jf=h(pi,{LowerCorner:Za(Bf),UpperCorner:Za(Bf)}),Yf=h(si,{WellKnownScaleSet:r(n),TileMatrix:Ja(function(t,e){return d({},_f,t,e)})},h(pi,{SupportedCRS:r(n),Identifier:r(n)})),_f=h(si,{TopLeftCorner:r(Bf),ScaleDenominator:r(eh),TileWidth:r(ih),TileHeight:r(ih),MatrixWidth:r(ih),MatrixHeight:r(ih)},h(pi,{Identifier:r(n)}));function $f(t){oo.call(this),t=t||{},this.a=null,this.f=xe,this.c=void 0,g(this,ro("projection"),this.Am,this),g(this,ro("tracking"),this.Bm,this),void 0!==t.projection&&this.Wh(t.projection),void 0!==t.trackingOptions&&this.wj(t.trackingOptions),this.Ke(void 0!==t.tracking&&t.tracking)}function w(t,e,o){i.call(this),this.Ng(t,e||0,o)}function Qf(t){t=t||{},this.j=this.v=null,this.f=this.o=1/0,this.g=this.l=-1/0,this.ra=this.oa=1/0,this.R=this.I=-1/0,this.Jb=void 0!==t.targetSize?t.targetSize:100,this.fb=void 0!==t.maxLines?t.maxLines:100,this.i=[],this.c=[],this.pa=void 0!==t.strokeStyle?t.strokeStyle:td,this.D=this.u=void 0,this.a=this.b=this.S=null,1==t.showLabels&&(this.na=t.lonLabelFormatter||zi.bind(this,"EW"),this.Ua=t.latLabelFormatter||zi.bind(this,"NS"),this.fa=null==t.lonLabelPosition?0:t.lonLabelPosition,this.T=null==t.latLabelPosition?1:t.latLabelPosition,this.B=void 0!==t.lonLabelStyle?t.lonLabelStyle:new my({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new Na({color:"rgba(0,0,0,1)"}),stroke:new as({color:"rgba(255,255,255,1)",width:3})}),this.C=void 0!==t.latLabelStyle?t.latLabelStyle:new my({font:"12px Calibri,sans-serif",textAlign:"end",fill:new Na({color:"rgba(0,0,0,1)"}),stroke:new as({color:"rgba(255,255,255,1)",width:3})}),this.b=[],this.a=[]),this.setMap(void 0!==t.map?t.map:null)}e($f,oo),$f.prototype.ka=function(){this.Ke(!1),oo.prototype.ka.call(this)},e(w,i),w.prototype.clone=function(){var t=new w(null);return pr(t,this.ja,this.A.slice()),t.s(),t};var td=new as({color:"rgba(0,0,0,0.2)"});function ed(t,e,o,i,r){Qe.call(this),this.f=r,this.extent=t,this.a=o,this.resolution=e,this.state=i}function od(t,e,o,i,r,n,p){ed.call(this,t,e,o,0,i),this.j=r,this.M=new Image,null!==n&&(this.M.crossOrigin=n),this.c={},this.i=null,this.state=0,this.g=p}function id(t,e,o,i,r,n){this.c=n||null,ed.call(this,t,e,o,n?0:2,i),this.i=r}function rd(t,e){Qe.call(this),this.ta=t,this.state=e,this.i=null,this.key=""}function nd(t){if(t.i){var e=t.i;do{if(2==e.getState())return e}while(e=e.i)}return t}function pd(t,e){t.state=e,t.s()}function sd(t,e,o,i,r){rd.call(this,t,e),this.g=o,this.M=new Image,null!==i&&(this.M.crossOrigin=i),this.c=null,this.j=r}function ad(t){t.c.forEach(Ze),t.c=null}Qf.prototype.Cm=function(){return this.v},e(ed,Qe),ed.prototype.s=function(){this.b("change")},ed.prototype.G=function(){return this.extent},ed.prototype.getState=function(){return this.state},e(od,ed),od.prototype.Y=function(t){var e;return void 0!==t?(t=q(t))in this.c?this.c[t]:(e=Wt(this.c)?this.M:this.M.cloneNode(!1),this.c[t]=e):this.M},e(id,ed),id.prototype.g=function(t){this.state=t?3:2,this.s()},id.prototype.load=function(){0==this.state&&(this.state=1,this.s(),this.c(this.g.bind(this)))},id.prototype.Y=function(){return this.i},e(rd,Qe),rd.prototype.s=function(){this.b("change")},rd.prototype.bb=function(){return this.key+"/"+this.ta},rd.prototype.f=function(){return this.ta},rd.prototype.getState=function(){return this.state},e(sd,rd),sd.prototype.ka=function(){1==this.state&&ad(this),this.i&&Ye(this.i),this.state=5,this.s(),rd.prototype.ka.call(this)};si=new Image;function ld(t){t=t||{},Lr.call(this,{handleEvent:tr}),this.g=t.formatConstructors||[],this.o=t.projection?ge(t.projection):null,this.a=null,this.target=t.target||null}function hd(t){for(var e=0,o=(t=t.dataTransfer.files).length;e<o;++e){var i=t.item(e),r=new FileReader;r.addEventListener("load",this.j.bind(this,i)),r.readAsText(i)}}function yd(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"}function ud(t){var e=t.v;e&&(e=t.target||e.a,t.a=[g(e,"drop",hd,t),g(e,"dragenter",yd,t),g(e,"dragover",yd,t),g(e,"drop",yd,t)])}function cd(t){t.a&&(t.a.forEach(Ze),t.a=null)}si.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e(ld,Lr),ld.prototype.j=function(t,e){e=e.target.result;for(var o=this.v,i=(i=this.o)||o.Z().v,r=[],n=0,p=(o=this.g).length;n<p;++n){var s=new o[n],a={featureProjection:i};try{r=s.Oa(e,a)}catch(t){r=null}if(r&&0<r.length)break}this.b(new dd(fd,t,r,i))},ld.prototype.Ha=function(t){Lr.prototype.Ha.call(this,t),(t?ud:cd)(this)},ld.prototype.setMap=function(t){cd(this),Lr.prototype.setMap.call(this,t),this.c()&&ud(this)};var fd="addfeatures";function dd(t,e,o,i){_e.call(this,t),this.features=o,this.file=e,this.projection=i}function gd(t){t=t||{},zr.call(this,{handleDownEvent:bd,handleDragEvent:vd,handleUpEvent:md}),this.l=t.condition||Kr,this.a=this.g=void 0,this.j=0,this.u=void 0!==t.duration?t.duration:400}function vd(t){var e,o,i;Vr(t)&&(o=(e=t.map).Ob(),t=(i=t.pixel)[0]-o[0]/2,i=o[1]/2-i[1],o=Math.atan2(i,t),t=Math.sqrt(t*t+i*i),(e=e.Z()).g.rotation!==Gi&&void 0!==this.g&&(i=o-this.g,Rr(e,e.Qa()-i)),this.g=o,void 0!==this.a&&(o=this.a*(e.Pa()/t),Nr(e,o)),void 0!==this.a&&(this.j=this.a/t),this.a=t)}function md(t){if(!Vr(t))return!0;Ar(t=t.map.Z(),1,-1);var e=this.j-1,o=t.Qa(),o=t.constrainRotation(o,0),o=(Rr(t,o,void 0,void 0),t.Pa()),i=this.u,o=t.constrainResolution(o,0,e);return Nr(t,o,void 0,i),this.j=0,!1}function bd(t){return!(!Vr(t)||!this.l(t)||(Ar(t.map.Z(),1,1),this.a=this.g=void 0))}function xd(t,e,o,i){this.fb=t,this.Ua=e,this.overlaps=i,this.c=0,this.resolution=o,this.ra=this.oa=null,this.a=[],this.coordinates=[],this.T=Kn(),this.b=[],this.B=null,this.fa=Kn(),this.na=Kn()}function wd(t,e,o,i,r,n,p){for(var s=t.coordinates.length,a=t.Sf(),l=(p&&(o+=r),p=[e[o],e[o+1]],[NaN,NaN]),h=!0,y=o+r;y<i;y+=r){l[0]=e[y],l[1]=e[y+1];var u=dt(a,l),h=u!==c?(h&&(t.coordinates[s++]=p[0],t.coordinates[s++]=p[1]),t.coordinates[s++]=l[0],t.coordinates[s++]=l[1],!1):1!==u||(t.coordinates[s++]=l[0],t.coordinates[s++]=l[1],!1),c=(p[0]=l[0],p[1]=l[1],u)}return(n&&h||y===o+r)&&(t.coordinates[s++]=p[0],t.coordinates[s++]=p[1]),s}function Sd(t,e){t.oa=[0,e,0],t.a.push(t.oa),t.ra=[0,e,0],t.b.push(t.ra)}function Pd(t,e,o,i,r,n,p,s,a){var l;t.B&&X(i,t.T)?l=t.B:(t.B||(t.B=[]),l=ir(t.coordinates,0,t.coordinates.length,2,i,t.B),zn(t.T,i)),i=!Wt(n);for(var h,y,u=0,O=p.length,c=0,f=t.fa,d=t.na,g=0,v=0,m=t.a!=p||t.overlaps?0:200;u<O;)switch((N=p[u])[0]){case 0:c=N[1],i&&n[q(c).toString()]||!c.V()?u=N[2]:void 0===a||kt(a,c.V().G())?++u:u=N[2]+1;break;case 1:m<g&&(t.Va(e,r),g=0),m<v&&(e.stroke(),v=0),g||v||(e.beginPath(),h=y=NaN),++u;break;case 2:b=l[c=N[1]],N=l[c+1],C=l[c+2]-b,c=l[c+3]-N,c=Math.sqrt(C*C+c*c),e.moveTo(b+c,N),e.arc(b,N,c,0,2*Math.PI,!0),++u;break;case 3:e.closePath(),++u;break;case 4:c=N[1];var b=N[2],x=N[3],w=N[4]*o,S=N[5]*o,P=N[6],M=N[7],T=N[8],E=N[9],A=N[10],C=N[11],j=N[12],L=N[13],R=N[14];for(A&&(C+=r);c<b;c+=2){var F,N=l[c]-w,A=l[c+1]-S,I=(L&&(N=Math.round(N),A=Math.round(A)),1==j&&!C||(Yn(f,F=N+w,I=A+S,j,j,C,-F,-I),e.setTransform.apply(e,f)),F=e.globalAlpha,1!=M&&(e.globalAlpha=F*M),R+T>x.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);c<b;c+=2){for(N=l[c]+P,A=l[c+1]+M,1==j&&!C||(Yn(f,N,A,j,j,C,-N,-A),e.setTransform.apply(e,f)),1<(E=(T=S.split("\n")).length)?A-=(E-1)/2*(L=Math.round(1.5*e.measureText("M").width)):L=0,R=0;R<E;R++)F=T[R],w&&e.strokeText(F,N,A),x&&e.fillText(F,N,A),A+=L;1==j&&!C||e.setTransform.apply(e,d)}++u;break;case 6:if(s&&(c=s(c=N[1])))return c;++u;break;case 7:m?g++:t.Va(e,r),++u;break;case 8:for(c=N[1],b=N[2],N=l[c],j=(A=l[c+1])+.5|0,(C=N+.5|0)===h&&j===y||(e.moveTo(N,A),h=C,y=j),c+=2;c<b;c+=2)C=(N=l[c])+.5|0,j=(A=l[c+1])+.5|0,c!=b-2&&C===h&&j===y||(e.lineTo(N,A),h=C,y=j);++u;break;case 9:t.R=N[2],g&&(t.Va(e,r),g=0,v)&&(e.stroke(),v=0),e.fillStyle=N[1],++u;break;case 10:var c=void 0===N[8]||N[8],k=N[9];b=N[2],v&&(e.stroke(),v=0),e.strokeStyle=N[1],e.lineWidth=c?b*o:b,e.lineCap=N[3],e.lineJoin=N[4],e.miterLimit=N[5],ti&&(b=N[6],C=N[7],c&&o!==k&&(b=b.map(function(t){return t*o/k}),C*=o/k,N[6]=b,N[7]=C,N[9]=o),e.lineDashOffset=C,e.setLineDash(b)),++u;break;case 11:e.font=N[1],e.textAlign=N[2],e.textBaseline=N[3],++u;break;case 12:m?v++:e.stroke(),++u;break;default:++u}g&&t.Va(e,r),v&&e.stroke()}function Md(t){var e=t.b;e.reverse();for(var o=e.length,i=-1,r=0;r<o;++r){var n=e[r],p=n[0];if(6==p)i=r;else if(0==p){for(n[2]=r,n=t.b,p=r;i<p;){var s=n[i];n[i]=n[p],n[p]=s,++i,--p}i=-1}}}function Td(t,e){t.oa[2]=t.a.length,t.oa=null,t.ra[2]=t.b.length,t.ra=null,t.a.push(e=[6,e]),t.b.push(e)}function Ed(t,e,o,i){xd.call(this,t,e,o,i),this.M=this.I=null,this.C=this.D=this.S=this.u=this.v=this.l=this.o=this.j=this.g=this.f=this.i=void 0}function Ad(t,e,o,i){xd.call(this,t,e,o,i),this.f=null,this.i={Md:void 0,Gd:void 0,Hd:null,Id:void 0,Jd:void 0,Kd:void 0,Ld:void 0,eg:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function Cd(t,e,o,i){xd.call(this,t,e,o,i),this.f=null,this.i={oh:void 0,Md:void 0,Gd:void 0,Hd:null,Id:void 0,Jd:void 0,Kd:void 0,Ld:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function jd(t,e){var o,i=t.i,r=i.fillStyle,n=i.strokeStyle,p=i.lineCap,s=i.lineDash,a=i.lineDashOffset,l=i.lineJoin,h=i.lineWidth,y=i.miterLimit;void 0===r||"string"==typeof r&&i.oh==r||(o=[9,r],"string"!=typeof r&&(e=e.G(),o.push([e[0],e[3]])),t.a.push(o),i.oh=i.fillStyle),void 0===n||i.Md==n&&i.Gd==p&&X(i.Hd,s)&&i.Id==a&&i.Jd==l&&i.Kd==h&&i.Ld==y||(t.a.push([10,n,h,p,l,y,s,a,!0,1]),i.Md=n,i.Gd=p,i.Hd=s,i.Id=a,i.Jd=l,i.Kd=h,i.Ld=y)}function Ld(t,e,o,i){xd.call(this,t,e,o,i),this.C=this.D=this.S=null,this.Ia="",this.o=this.j=0,this.l=void 0,this.u=this.v=0,this.g=this.f=this.i=null}function Rd(t,e,o,i,r){this.v=t,this.c=e,this.o=i,this.l=o,this.f=r,this.a={},this.g=xo(1,1),this.j=Kn()}e(dd,_e),e(gd,zr),e(xd,lp),xd.prototype.Va=function(t,e){var o;this.R&&(o=Hn(this.T,this.R.slice()),t.translate(o[0],o[1]),t.rotate(e)),t.fill(),this.R&&t.setTransform.apply(t,this.na)},xd.prototype.La=function(t,e,o,i,r){Pd(this,t,e,o,i,r,this.a,void 0,void 0)},xd.prototype.Te=Z,xd.prototype.Sf=function(){return this.Ua},e(Ed,xd),Ed.prototype.qc=function(t,e){var o,i;this.M&&(Sd(this,e),o=t.ga(),i=this.coordinates.length,t=wd(this,o,0,o.length,t.qa(),!1,!1),this.a.push([4,i,t,this.M,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),this.b.push([4,i,t,this.I,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),Td(this,e))},Ed.prototype.oc=function(t,e){var o,i;this.M&&(Sd(this,e),o=t.ga(),i=this.coordinates.length,t=wd(this,o,0,o.length,t.qa(),!1,!1),this.a.push([4,i,t,this.M,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),this.b.push([4,i,t,this.I,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),Td(this,e))},Ed.prototype.Te=function(){Md(this),this.f=this.i=void 0,this.M=this.I=null,this.C=this.D=this.u=this.v=this.l=this.o=this.j=this.S=this.g=void 0},Ed.prototype.Ub=function(t){var e=t.Hc(),o=t.ic(),i=t.qg(1),r=t.Y(1),n=t.Oc();this.i=e[0],this.f=e[1],this.I=i,this.M=r,this.g=o[1],this.j=t.f,this.o=n[0],this.l=n[1],this.v=t.l,this.u=t.g,this.S=t.a,this.D=t.v,this.C=o[0]},e(Ad,xd),Ad.prototype.Sf=function(){return this.f||(this.f=yt(this.Ua),0<this.c&&ht(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},e(Cd,xd),Cd.prototype.Zb=function(t,e){var o,i=this.i,r=i.strokeStyle;void 0===i.fillStyle&&void 0===r||(jd(this,t),Sd(this,e),this.b.push([9,co(np)]),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,wd(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)),Td(this,e))},e(Ld,xd),Ld.prototype.yc=function(t,e,o,i,r,n){var p,s;""!==this.Ia&&this.g&&(this.i||this.f)&&(this.i&&(r=this.i,(p=this.S)&&p.fillStyle==r.fillStyle||(s=[9,r.fillStyle],this.a.push(s),this.b.push(s),p?p.fillStyle=r.fillStyle:this.S={fillStyle:r.fillStyle})),this.f&&(r=this.f,(p=this.D)&&p.lineCap==r.lineCap&&p.lineDash==r.lineDash&&p.lineDashOffset==r.lineDashOffset&&p.lineJoin==r.lineJoin&&p.lineWidth==r.lineWidth&&p.miterLimit==r.miterLimit&&p.strokeStyle==r.strokeStyle||(s=[10,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset,!1,1],this.a.push(s),this.b.push(s),p?(p.lineCap=r.lineCap,p.lineDash=r.lineDash,p.lineDashOffset=r.lineDashOffset,p.lineJoin=r.lineJoin,p.lineWidth=r.lineWidth,p.miterLimit=r.miterLimit,p.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,(p=this.C)&&p.font==r.font&&p.textAlign==r.textAlign&&p.textBaseline==r.textBaseline||(s=[11,r.font,r.textAlign,r.textBaseline],this.a.push(s),this.b.push(s),p?(p.font=r.font,p.textAlign=r.textAlign,p.textBaseline=r.textBaseline):this.C={font:r.font,textAlign:r.textAlign,textBaseline:r.textBaseline}),Sd(this,n),t=[5,r=this.coordinates.length,t=wd(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),Td(this,n))},Ld.prototype.Cb=function(t){var e,o,i,r,n,p,s,a,l;t?((o=t.Fa())?(o=bo((o=o.b)||np),this.i?this.i.fillStyle=o:this.i={fillStyle:o}):this.i=null,(p=t.Ga())?(o=p.a,i=p.f,r=p.i,s=p.g,a=p.j,n=p.c,p=p.o,i=void 0!==i?i:"round",r=r?r.slice():pp,s=void 0!==s?s:0,a=void 0!==a?a:"round",n=void 0!==n?n:1,p=void 0!==p?p:10,o=bo(o||sp),this.f?((l=this.f).lineCap=i,l.lineDash=r,l.lineDashOffset=s,l.lineJoin=a,l.lineWidth=n,l.miterLimit=p,l.strokeStyle=o):this.f={lineCap:i,lineDash:r,lineDashOffset:s,lineJoin:a,lineWidth:n,miterLimit:p,strokeStyle:o}):this.f=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,p=t.b,s=t.Na(),a=t.g,l=t.j,t=void 0!==e?e:"10px sans-serif",a=void 0!==a?a:"center",l=void 0!==l?l:"middle",this.g?((e=this.g).font=t,e.textAlign=a,e.textBaseline=l):this.g={font:t,textAlign:a,textBaseline:l},this.Ia=void 0!==s?s:"",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!==p?p:1):this.Ia=""},e(Rd,vp);var Fd={0:[[!0]]};function Nd(t,e,o){var i,r=Math.floor(t.length/2);if(r<=e)for(i=r;i<e;i++)t[i][o]=!0;else if(e<r)for(i=e+1;i<r;i++)t[i][o]=!0}function Id(t){for(var e in t.a){var o,i=t.a[e];for(o in i)i[o].Te()}}function kd(t,e){var o=t.c,i=(t=o[0],o[1]),r=o[2];return ir(t=[t,i,t,o=o[3],r,o,r,i],0,8,2,e,t),t}Rd.prototype.Ea=function(t,e,o,i,r,n){var p,s,a,l=2*(i=Math.round(i))+1,h=Yn(this.j,i+.5,i+.5,1/e,-1/e,-o,-t[0],-t[1]),y=this.g,u=(y.canvas.width!==l||y.canvas.height!==l?(y.canvas.width=l,y.canvas.height=l):y.clearRect(0,0,l,l),void 0!==this.f&&(Pt(p=gt(),t),ht(p,e*(this.f+i),p)),function(t){if(void 0!==Fd[t])return Fd[t];for(var e=2*t+1,o=Array(e),i=0;i<e;i++)o[i]=Array(e);for(var e=t,r=i=0;i<=e;)Nd(o,t+e,t+i),Nd(o,t+i,t+e),Nd(o,t-i,t+e),Nd(o,t-e,t+i),Nd(o,t-e,t-i),Nd(o,t-i,t-e),Nd(o,t+i,t-e),Nd(o,t+e,t-i),0<2*((r+=1+2*++i)-e)+1&&(r+=1-2*--e);return Fd[t]=o}(i)),c=this,f=y,d=h,g=o,v=r,m=function(t){for(var e=y.getImageData(0,0,l,l).data,o=0;o<l;o++)for(var i=0;i<l;i++)if(u[o][i]&&0<e[4*(i*l+o)+3])return(t=n(t))||void y.clearRect(0,0,l,l)},b=p,x=Object.keys(c.a).map(Number),w=(x.sort(function(t,e){return e-t}),0);for(s=x.length;w<s;++w){var S=c.a[x[w].toString()];for(a=gp.length-1;0<=a;--a){var P=S[gp[a]];if(void 0!==P&&(P=Pd(P,f,1,d,g,v,P.b,m,b)))return P}}},Rd.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 Od[e](this.v,this.c,this.l,this.o),t[e]=o),o},Rd.prototype.i=function(){return Wt(this.a)},Rd.prototype.La=function(t,e,o,i,r,n){var p=Object.keys(this.a).map(Number),s=(p.sort(U),kd(this,o));t.save(),t.beginPath(),t.moveTo(s[0],s[1]),t.lineTo(s[2],s[3]),t.lineTo(s[4],s[5]),t.lineTo(s[6],s[7]),t.clip(),n=n||gp;for(var s=0,a=p.length;s<a;++s)for(var l=this.a[p[s].toString()],h=0,y=n.length;h<y;++h){var u=l[n[h]];void 0!==u&&u.La(t,e,o,i,r)}t.restore()};var Od={Circle:Cd,Image:Ed,LineString:Ad,Polygon:Cd,Text:Ld};function Dd(t){eo.call(this),this.a=t}function Ud(t,e){var o=e.getState();return 2!=o&&3!=o&&g(e,"change",t.na,t),0==o&&(e.load(),o=e.getState()),2==o}function Gd(t){var e=t.a;e.Mb()&&"ready"==e.$f()&&t.s()}function Bd(t,e){e.Ki()&&t.postRenderFunctions.push(function(t,e,o){e=q(t).toString(),t.fd(o.viewState.projection,o.usedTiles[e])}.bind(null,e))}function Kd(t,e){if(e)for(var o=0,i=e.length;o<i;++o){var r=e[o];t[q(r).toString()]=r}}function Wd(t,e){void 0!==(e=e.D)&&("string"==typeof e?t.logos[e]="":e&&(_("string"==typeof e.href,44),_("string"==typeof e.src,45),t.logos[e.src]=e.href))}function Vd(t,e,o,i){e=q(e).toString(),o=o.toString(),e in t?o in t[e]?(t=t[e][o],i.ca<t.ca&&(t.ca=i.ca),t.$<i.$&&(t.$=i.$),i.da<t.da&&(t.da=i.da),t.ia<i.ia&&(t.ia=i.ia)):t[e][o]=i:(t[e]={},t[e][o]=i)}function Xd(t,e,o,i,r,n,p,s,a,l){for(var h,y=q(e).toString(),u=(y in t.wantedTiles||(t.wantedTiles[y]={}),t.wantedTiles[y]),c=(t=t.tileQueue,o.minZoom),f=p;c<=f;--f)for(var d,g=Re(o,n,f,g),v=o.Da(f),m=g.ca;m<=g.$;++m)for(h=g.da;h<=g.ia;++h)p-f<=s?(0==(d=e.Nc(f,m,h,i,r)).getState()&&(u[d.bb()]=!0,d.bb()in t.a||t.f([d,y,Fe(o,d.ta),v])),a&&a.call(l,d)):e.Ug(f,m,h,r)}function zd(t){Dd.call(this,t),this.fa=Kn()}function Hd(t,e,o){var i=e.pixelRatio,r=e.size[0]*i,n=e.size[1]*i,p=e.viewState.rotation,s=Ft(o),a=Nt(o),l=At(o);o=Et(o),Hn(e.coordinateToPixelTransform,s),Hn(e.coordinateToPixelTransform,a),Hn(e.coordinateToPixelTransform,l),Hn(e.coordinateToPixelTransform,o),t.save(),ap(t,-p,r/2,n/2),t.beginPath(),t.moveTo(s[0]*i,s[1]*i),t.lineTo(a[0]*i,a[1]*i),t.lineTo(l[0]*i,l[1]*i),t.lineTo(o[0]*i,o[1]*i),t.clip(),ap(t,p,r/2,n/2)}function Zd(t,e,o,i,r){var n,p,s,a=t.a;to(a,e)&&(n=i.size[0]*i.pixelRatio,p=i.size[1]*i.pixelRatio,ap(o,-(s=i.viewState.rotation),n/2,p/2),t=r||qd(t,i,0),a.b(new rp(e,new hp(o,i.pixelRatio,i.extent,t,i.viewState.rotation),i,o,null)),ap(o,s,n/2,p/2))}function qd(t,e,o){var i=e.viewState,r=e.pixelRatio,n=r/i.resolution;return Yn(t.fa,r*e.size[0]/2,r*e.size[1]/2,n,-n,-i.rotation,-i.center[0]+o,-i.center[1])}function Jd(t,e){return q(t)-q(e)}function Yd(t,e){return(t=.5*t/e)*t}function _d(t,e,o,i,r,n){var p,s,a=!1;return(p=o.Y())&&(2==(s=p.Ye())||3==s?p.Bj(r,n):(0==s&&p.load(),p.Nh(r,n),a=!0)),(r=(0,o.Za)(e))&&(i=r.Vd(i),(0,$d[i.U()])(t,i,o,e)),a}e(Dd,eo),Dd.prototype.Ea=Z,Dd.prototype.Ue=er,Dd.prototype.Nf=function(o,i,r){return function(e,t){return ov(o,i,e,t,function(t){r[e]||(r[e]={}),r[e][t.ta.toString()]=t})}},Dd.prototype.na=function(t){2===t.target.getState()&&Gd(this)},e(zd,Dd),zd.prototype.u=function(t,e,o,i){if(this.Ea(t,e,0,tr,this))return o.call(i,this.a,null)},zd.prototype.ef=function(t,e,o,i){Zd(this,"postcompose",t,e,i)};var $d={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(yl(e),0,2,2,e,i))},Polygon:function(t,e,o,i){var r,n=o.Fa(),p=o.Ga();(n||p)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,p),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(),p=o.Ga();(p||n)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,p),r.pc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=fl(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;r<n;++r)(0,$d[e[r].U()])(t,e[r],o,i)},Circle:function(t,e,o,i){var r,n=o.Fa(),p=o.Ga();(n||p)&&((r=t.b(o.Ba(),"Circle")).Ma(n,p),r.Zb(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(e.wa(),0,2,2,e,i))}};function Qd(t){zd.call(this,t),this.c=!1,this.v=-1,this.l=NaN,this.j=gt(),this.f=this.o=null,this.g=xo()}function tg(){this.b="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor=texture2D(g,a);gl_FragColor.rgb=texColor.rgb;gl_FragColor.a=texColor.a*f;}"}e(Qd,zd),Qd.prototype.S=function(t,e,o){var i=t.extent,r=t.pixelRatio,n=e.Je?t.skippedFeatureUids:{},p=(s=t.viewState).projection,s=s.rotation,a=p.G(),l=this.a.ha(),h=qd(this,t,0),y=(Zd(this,"precompose",o,t,h),e.extent),u=void 0!==y;if(u&&Hd(o,t,y),(y=this.f)&&!y.i()){var c,f,d=0,g=0,v=(c=(f=to(this.a,"render")?(f=o.canvas.width,c=o.canvas.height,s&&(d=((v=Math.round(Math.sqrt(f*f+c*c)))-f)/2,g=(v-c)/2,f=c=v),this.g.canvas.width=f,this.g.canvas.height=c,this.g):o).globalAlpha,f.globalAlpha=e.opacity,f!=o&&f.translate(d,g),t.size[0]*r),m=t.size[1]*r;if(ap(f,-s,v/2,m/2),y.La(f,r,h,s,n),l.u&&p.i&&!ct(a,i)){for(var p=i[0],l=It(a),b=0;p<a[0];)h=qd(this,t,h=l*--b),y.La(f,r,h,s,n),p+=l;for(b=0,p=i[2];p>a[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;i<r;++i)o=_d(s,t,e[i],Yd(n,p),this.D,this)||o;else o=_d(s,t,e,Yd(n,p),this.D,this)||o;t=o,this.c=this.c||t}}var o,n,p,i,s,r,a=this.a,l=a.ha(),h=(Kd(t.attributions,l.j),Wd(t,l),t.viewHints[0]),y=t.viewHints[1],u=a.T,c=a.na;return!this.c&&!u&&h||!c&&y||(o=t.extent,h=(c=t.viewState).projection,n=c.resolution,p=t.pixelRatio,y=a.i,i=a.c,void 0===(u=a.get(ag))&&(u=Jd),o=ht(o,i*n),i=c.projection.G(),l.u&&c.projection.i&&!ct(i,t.extent)&&(t=Math.max(It(o)/2,It(i)),o[0]=i[0]-t,o[2]=i[2]+t),!this.c&&this.l==n&&this.v==y&&this.o==u&&ct(this.j,o))||(this.f=null,this.c=!1,s=new Rd(.5*n/p,o,n,l.T,a.c),l.Yd(o,n,h),u?(r=[],l.$b(o,function(t){r.push(t)},this),r.sort(u),r.forEach(e,this)):l.$b(o,e,this),Id(s),this.l=n,this.v=y,this.o=u,this.j=o,this.f=s),!0},e(tg,bp);var eg=new tg;function og(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position=e*vec4(b,0.,1.);a=(d*vec4(c,0.,1.)).st;}"}e(og,xp);var ig=new og;function rg(t,e){this.i=t.getUniformLocation(e,"f"),this.c=t.getUniformLocation(e,"e"),this.g=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"g"),this.b=t.getAttribLocation(e,"b"),this.a=t.getAttribLocation(e,"c")}function ng(t,e){Dd.call(this,e),this.c=t,this.T=new Cp([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),this.g=this.Ib=null,this.j=void 0,this.v=Kn(),this.S=Kn(),this.C=Pp(),this.u=null}function pg(t,e,o,i){var r;to(t=t.a,e)&&(r=i.viewState,t.b(new rp(e,new ea(o,r.center,r.resolution,r.rotation,i.size,i.extent,i.pixelRatio),i,null,o)))}function sg(t,e){ng.call(this,t,e),this.l=!1,this.R=-1,this.I=NaN,this.D=gt(),this.o=this.f=this.B=null}function S(t){var e=Gt({},t=t||{});delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,o.call(this,e),this.c=void 0!==t.renderBuffer?t.renderBuffer:100,this.u=null,this.f=void 0,this.g(t.style),this.T=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.na=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}e(ng,Dd),ng.prototype.Gi=function(t,e,o){pg(this,"precompose",o,t),Ip(o,34962,this.T);var i,r=o.b,n=Up(o,eg,ig);this.u?i=this.u:this.u=i=new rg(r,n),o.Qc(n)&&(r.enableVertexAttribArray(i.b),r.vertexAttribPointer(i.b,2,5126,!1,16,0),r.enableVertexAttribArray(i.a),r.vertexAttribPointer(i.a,2,5126,!1,16,8),r.uniform1i(i.f,0)),r.uniformMatrix4fv(i.g,!1,Mp(this.C,this.v)),r.uniformMatrix4fv(i.c,!1,Mp(this.C,this.S)),r.uniform1f(i.i,e.opacity),r.bindTexture(3553,this.Ib),r.drawArrays(5,0,4),pg(this,"postcompose",o,t)},ng.prototype.mg=function(){this.g=this.Ib=null,this.j=void 0},e(sg,ng),sg.prototype.Gi=function(t,e,o){this.o=e;var i=t.viewState,r=this.f,n=t.size,p=t.pixelRatio,s=this.c.i;r&&!r.i()&&(s.enable(s.SCISSOR_TEST),s.scissor(0,0,n[0]*p,n[1]*p),r.La(o,i.center,i.resolution,i.rotation,n,p,e.opacity,e.Je?t.skippedFeatureUids:{}),s.disable(s.SCISSOR_TEST))},e(S,o),S.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Qd(this):"webgl"===o&&(e=new sg(t,this)),e},S.prototype.D=function(){return this.u},S.prototype.C=function(){return this.f},S.prototype.g=function(t){this.u=void 0!==t?t:Da,this.f=null===t?void 0:ka(this.u),this.s()};var ag="renderOrder";function lg(){return[[-1/0,-1/0,1/0,1/0]]}function hg(t){oo.call(this),this.c=ge(t.projection),this.j=yg(t.attributions),this.D=t.logo,this.na=void 0!==t.state?t.state:"ready",this.u=void 0!==t.wrapX&&t.wrapX}function yg(t){if("string"==typeof t)return[new Ue({html:t})];if(t instanceof Ue)return[t];if(Array.isArray(t)){for(var e=t.length,o=Array(e),i=0;i<e;i++){var r=t[i];o[i]="string"==typeof r?new Ue({html:r}):r}return o}return null}function ug(t,e){t.na=e,t.s()}function P(t){hg.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.B=Z,this.C=t.format,this.T=null==t.overlaps||t.overlaps,this.I=t.url,t.loader?this.B=t.loader:void 0!==this.I&&(_(this.C,7),this.B=rl(this.I,this.C)),this.fa=t.strategy||lg;var e,o,i,r,n=void 0===t.useSpatialIndex||t.useSpatialIndex;this.a=n?new Ns:null,this.R=new Ns,this.g={},this.o={},this.l={},this.v={},this.f=null,t.features instanceof y?o=(e=t.features).a:Array.isArray(t.features)&&(o=t.features),n||(e=e||new y(o)),o&&dg(this,o),e&&(i=e,r=!1,g(t=this,"addfeature",function(t){r||(r=!0,i.push(t.feature),r=!1)}),g(t,"removefeature",function(t){r||(r=!0,i.remove(t.feature),r=!1)}),g(i,"add",function(t){r||(r=!0,this.yb(t.element),r=!1)},t),g(i,"remove",function(t){r||(r=!0,this.Gb(t.element),r=!1)},t),t.f=i)}function cg(t,e,o){t.v[e]=[g(o,"change",t.Oi,t),g(o,"propertychange",t.Oi,t)]}function fg(t,e,o){var i=!0,r=o.a;return void 0!==r?r.toString()in t.o?i=!1:t.o[r.toString()]=o:(_(!(e in t.l),30),t.l[e]=o),i}function dg(t,e){for(var o=[],i=[],r=[],n=0,p=e.length;n<p;n++){var s=e[n],a=q(s).toString();fg(t,a,s)&&i.push(s)}for(n=0,p=i.length;n<p;n++)cg(t,a=q(s=i[n]).toString(),s),(e=s.V())?(a=e.G(),o.push(a),r.push(s)):t.g[a]=s;for(t.a&&t.a.load(o,r),n=0,p=i.length;n<p;n++)t.b(new gg("addfeature",i[n]))}function gg(t,e){_e.call(this,t),this.feature=e}function vg(t){var e;zr.call(this,{handleDownEvent:bg,handleEvent:mg,handleUpEvent:xg}),this.T=!1,this.fa=null,this.u=!1,this.Yb=t.source||null,this.$a=t.features||null,this.wk=t.snapTolerance||12,this.R=t.type,this.g=("Point"===(n=this.R)||"MultiPoint"===n?e=Ag:"LineString"===n||"MultiLineString"===n?e=Cg:"Polygon"===n||"MultiPolygon"===n?e=jg:"Circle"===n&&(e=Lg),e),this.Sa=t.minPoints||(this.g===jg?3:2),this.va=t.maxPoints||1/0,this.Cf=t.finishCondition||tr;var o,i,r,n=(n=t.geometryFunction)||("Circle"===this.R?function(t,e){return(e=e||new w([NaN,NaN])).Ng(t[0],Math.sqrt(Yi(t[0],t[1]))),e}:((i=this.g)===Ag?o=p:i===Cg?o=m:i===jg&&(o=s),function(t,e){return e?i===jg?e.ma([t[0].concat([t[0][0]])]):e.ma(t):e=new o(t),e}));this.Za=n,this.I=this.C=this.a=this.B=this.j=this.l=null,this.ad=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,this.pa=new S({source:new P({useSpatialIndex:!1,wrapX:t.wrapX||!1}),style:t.style||(r=Ua(),function(t){return r[t.V().U()]})}),this.xb=t.geometryName,this.vk=t.condition||Br,this.Df=t.freehand?tr:t.freehandCondition||Kr,g(this,ro("active"),this.ri,this)}function mg(t){this.u=this.g!==Ag&&this.Df(t);var e=!this.u;return this.u&&"pointerdrag"===t.type&&null!==this.j?(Mg(this,t),e=!1):"pointermove"===t.type?e=wg(this,t):"dblclick"===t.type&&(e=!1),Zr.call(this,t)&&e}function bg(t){return this.T=!this.u,this.u?(this.fa=t.pixel,this.l||Pg(this,t),!0):!!this.vk(t)&&(this.fa=t.pixel,!0)}function xg(t){var e=!0,o=(wg(this,t),this.g===Lg);return this.T?(this.l?this.u||o?this.Pd():Sg(this,t)?this.Cf(t)&&this.Pd():Mg(this,t):(Pg(this,t),this.g===Ag&&this.Pd()),e=!1):this.u&&(this.l=null,Tg(this)),e}function wg(t,e){var o,i,r;return t.fa&&(!t.u&&t.T||t.u&&!t.T)&&(o=e.pixel,r=(r=(i=t.fa)[0]-o[0])*r+(i=i[1]-o[1])*i,t.T=t.u?t.ad<r:r<=t.ad),t.l?(r=e.coordinate,i=t.j.V(),t.g===Ag?o=t.a:t.g===jg?(o=(o=t.a[0])[o.length-1],Sg(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 s&&t.g!==jg?(t.C||(t.C=new v(new m(null))),r=i.Ch(0),(e=t.C.V()).ba(r.ja,r.ga())):t.I&&(e=t.C.V()).ma(t.I),Eg(t)):(e=e.coordinate.slice(),t.B?t.B.V().ma(e):(t.B=new v(new p(e)),Eg(t))),!0}function Sg(t,e){var o=!1;if(t.j){var i=!1,r=[t.l];if(t.g===Cg?i=t.a.length>t.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<p;n++){var s=r[n],a=i.Ja(s),l=e.pixel,o=l[0]-a[0],a=l[1]-a[1];if(o=Math.sqrt(o*o+a*a)<=(t.u?1:t.wk)){t.l=s;break}}}return o}function Pg(t,e){e=e.coordinate,t.l=e,t.g===Ag?t.a=e.slice():t.g===jg?(t.a=[[e.slice(),e.slice()]],t.I=t.a[0]):(t.a=[e.slice(),e.slice()],t.g===Lg&&(t.I=t.a)),t.I&&(t.C=new v(new m(t.I))),e=t.Za(t.a),t.j=new v,t.xb&&t.j.Tc(t.xb),t.j.Ra(e),Eg(t),t.b(new Rg("drawstart",t.j))}function Mg(t,e){e=e.coordinate;var o,i,r=t.j.V();t.g===Cg?(t.l=e.slice(),(i=t.a).length>=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?o<e?r[1]:r[0]:n}return null}function Bg(t,e){var o=t.B;o?o.V().ma(e):(o=new v(new p(e)),t.B=o,t.I.ha().yb(o))}function Kg(t){_e.call(this,Wg),this.b=t}e(Rg,_e),e(Fg,zr),Fg.prototype.setMap=function(t){this.u.setMap(t),this.I.setMap(t),zr.prototype.setMap.call(this,t)},Fg.prototype.G=function(){return this.j},Fg.prototype.g=function(t){this.j=t||null;var e=this.l;e?t?e.Ra(xr(t)):e.Ra(void 0):(this.l=e=new v(t?xr(t):{}),this.u.ha().yb(e)),this.b(new Kg(this.j))},e(Kg,_e);var Wg="extentchanged";function Vg(t){var e;zr.call(this,{handleDownEvent:Zg,handleDragEvent:qg,handleEvent:Yg,handleUpEvent:Jg}),this.ad=t.condition||Xr,this.$a=function(t){return Br(t)&&Gr(t)},this.xb=t.deleteCondition||this.$a,this.Yb=t.insertVertexCondition||tr,this.Sa=this.g=null,this.va=[0,0],this.C=this.I=!1,this.a=new Ns,this.fa=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.l=this.pa=!1,this.j=[],this.B=new S({source:new P({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style||(e=Ua(),function(){return e.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.T={Point:this.Dn,LineString:this.ti,LinearRing:this.ti,Polygon:this.En,MultiPoint:this.Bn,MultiLineString:this.An,MultiPolygon:this.Cn,Circle:this.yn,GeometryCollection:this.zn},this.u=t.features,this.u.forEach(this.kg,this),g(this.u,"add",this.wn,this),g(this.u,"remove",this.xn,this),this.R=null}function Xg(t,e){t.C||(t.C=!0,t.b(new t0("modifystart",t.u,e)))}function zg(t,e){var o=t.g;o?o.V().ma(e):(o=new v(new p(e)),t.g=o,t.B.ha().yb(o))}function Hg(t,e){return t.index-e.index}function Zg(t){if(!this.ad(t))return!1;_g(this,t.pixel,t.map);var e=t.map.Wa(t.pixel);if(this.j.length=0,this.C=!1,o=this.g){var o,i=[],r=lt([o=o.V().X()]),n={};(r=ks(this.a,r)).sort(Hg);for(var p=0,s=r.length;p<s;++p){var a=r[p],l=a.la,h=q(a.feature),y=a.depth;y&&(h+="-"+y.join("-")),n[h]||(n[h]=Array(2)),"Circle"===a.geometry.U()&&1===a.index?Zi(l=Qg(e,a),o)&&!n[h][0]&&(this.j.push([a,0]),n[h][0]=a):Zi(l[0],o)&&!n[h][0]?(this.j.push([a,0]),n[h][0]=a):Zi(l[1],o)&&!n[h][1]?("LineString"===a.geometry.U()||"MultiLineString"===a.geometry.U())&&n[h][0]&&0===n[h][0].index||(this.j.push([a,1]),n[h][1]=a):this.Yb(t)&&q(l)in this.Sa&&!n[h][0]&&!n[h][1]&&i.push([a,o])}for(i.length&&Xg(this,t),t=i.length-1;0<=t;--t)this.bm.apply(this,i[t])}return!!this.g}function qg(t){this.I=!1,Xg(this,t),t=t.coordinate;for(var e=0,o=this.j.length;e<o;++e){for(var i,r=(a=this.j[e])[0],n=r.depth,p=r.geometry,s=r.la,a=a[1];t.length<p.qa();)t.push(s[a][t.length]);switch(p.U()){case"Point":i=t,s[0]=s[1]=t;break;case"MultiPoint":(i=p.X())[r.index]=t,s[0]=s[1]=t;break;case"LineString":(i=p.X())[r.index+a]=t,s[a]=t;break;case"MultiLineString":case"Polygon":(i=p.X())[n[0]][r.index+a]=t,s[a]=t;break;case"MultiPolygon":(i=p.X())[n[1]][n[0]][r.index+a]=t,s[a]=t;break;case"Circle":s[0]=s[1]=t,0===r.index?(this.l=!0,p.ob(t)):(this.l=!0,p.Uc(_i(p.wa(),t))),this.l=!1}i&&(r=p,n=i,this.l=!0,r.ma(n),this.l=!1)}zg(this,t)}function Jg(t){for(var e,o,i,r,n=this.j.length-1;0<=n;--n)"Circle"===(e=(r=this.j[n][0]).geometry).U()?(o=e.wa(),i=r.Pf[0],r=r.Pf[1],i.la[0]=i.la[1]=o,r.la[0]=r.la[1]=o,Is(this.a,bt(o),i),Is(this.a,e.G(),r)):Is(this.a,lt(r.la),r);return this.C&&(this.b(new t0("modifyend",this.u,t)),this.C=!1),!1}function Yg(t){var e;return!(t instanceof ci)||(Tr((this.R=t).map.Z())[1]||"pointermove"!=t.type||this.D||(this.va=t.pixel,_g(this,t.pixel,t.map)),this.g&&this.xb(t)&&(e=!("singleclick"!=t.type||!this.I)||this.hj()),"singleclick"==t.type&&(this.I=!1),Zr.call(this,t)&&!e)}function _g(t,e,o){var i=o.Wa(e),r=ht(bt(i),o.Z().Pa()*t.fa);if(0<(r=ks(t.a,r)).length){r.sort(function(t,e){return $g(i,t)-$g(i,e)});var n,p=r[0],s=p.la,a=Qg(i,p),l=o.Ja(a);if(_i(e,l)<=t.fa){if(e={},"Circle"===p.geometry.U()&&1===p.index)t.pa=!0,zg(t,a);else for(n=o.Ja(s[0]),p=o.Ja(s[1]),o=Yi(l,n),l=Yi(l,p),n=Math.sqrt(Math.min(o,l)),t.pa=n<=t.fa,zg(t,a=t.pa?l<o?s[1]:s[0]:a),l=1,o=r.length;l<o&&(a=r[l].la,Zi(s[0],a[0])&&Zi(s[1],a[1])||Zi(s[0],a[1])&&Zi(s[1],a[0]));++l)e[q(a)]=!0;return e[q(s)]=!0,void(t.Sa=e)}}t.g&&(t.B.ha().Gb(t.g),t.g=null)}function $g(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?(t=Yi(o.wa(),t),(o=Math.sqrt(t)-o.pd())*o):$i(t,e.la)}function Qg(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?o.Ab(t):Xi(t,e.la)}function t0(t,e,o){_e.call(this,t),this.features=e,this.mapBrowserEvent=o}function e0(t){var e,o;Lr.call(this,{handleEvent:o0}),this.C=(t=t||{}).condition||Gr,this.D=t.addCondition||er,this.B=t.removeCondition||er,this.I=t.toggleCondition||Kr,this.l=t.multi||!1,this.o=t.filter||tr,this.j=t.hitTolerance||0,this.g=new S({source:new P({useSpatialIndex:!1,features:t.features,wrapX:t.wrapX}),style:t.style||(K((e=Ua()).Polygon,e.LineString),K(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 G(o,t)}):tr,this.u=t,this.a={},g(t=this.g.ha().f,"add",this.Fn,this),g(t,"remove",this.Jn,this)}function o0(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,p=this.g.ha().f,s=[],a=[];if(e){for(Bt(this.a),n.we(t.pixel,function(t,e){if(this.o(t,e))return a.push(t),t=q(t),this.a[t]=e,!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=p.dc()-1;0<=e;--e){var n=p.item(e),l=a.indexOf(n);-1<l?a.splice(l,1):(p.remove(n),s.push(n))}a.length&&p.fg(a)}else{for(n.we(t.pixel,function(t,e){if(this.o(t,e))return!o&&!r||G(p.a,t)?(i||r)&&G(p.a,t)&&(s.push(t),e=q(t),delete this.a[e]):(a.push(t),t=q(t),this.a[t]=e),!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=s.length-1;0<=e;--e)p.remove(s[e]);p.fg(a)}return(0<a.length||0<s.length)&&this.b(new i0(r0,a,s,t)),Ur(t)}function i0(t,e,o,i){_e.call(this,t),this.selected=e,this.deselected=o,this.mapBrowserEvent=i}e(Vg,zr),Vg.prototype.kg=function(t){var e=t.V();e&&e.U()in this.T&&this.T[e.U()].call(this,t,e),(e=this.v)&&e.c&&this.c()&&_g(this,this.va,e),g(t,"change",this.si,this)},e(t0,_e),e(e0,Lr),e0.prototype.Gn=function(){return this.g.ha().f},e(i0,_e);var r0="select";function n0(t){zr.call(this,{handleEvent:s0,handleDownEvent:tr,handleUpEvent:a0}),this.l=(t=t||{}).source||null,this.R=void 0===t.vertex||t.vertex,this.C=void 0===t.edge||t.edge,this.j=t.features||null,this.pa=[],this.B={},this.T={},this.u={},this.I=null,this.g=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.va=function(t,e){return $i(this.I,t.la)-$i(this.I,e.la)}.bind(this),this.a=new Ns,this.fa={Point:this.Rn,LineString:this.wi,LinearRing:this.wi,Polygon:this.Sn,MultiPoint:this.Pn,MultiLineString:this.On,MultiPolygon:this.Qn,GeometryCollection:this.Nn,Circle:this.Mn}}function p0(t,e,o,i){var r,n,p,s,a,l,h=i.Wa([e[0]-t.g,e[1]+t.g]),y=i.Wa([e[0]+t.g,e[1]-t.g]),h=lt([h,y]),u=ks(t.a,h),c=!1,h=!1,f=y=null;return 0<(u=t.R&&!t.C?u.filter(function(t){return"Circle"!==t.feature.V().U()}):u).length&&(t.I=o,u.sort(t.va),r=u[0].la,c="Circle"===u[0].feature.V().U(),t.R&&!t.C?(o=i.Ja(r[0]),c=i.Ja(r[1]),o=Yi(e,o),e=Yi(e,c),(c=(c=Math.sqrt(Math.min(o,e)))<=t.g)&&(h=!0,y=e<o?r[1]:r[0],f=i.Ja(y))):t.C&&(y=c?(n=o,u=u[0].feature.V(),p=u.pd(),u=(s=u.wa())[0],s=s[1],a=n[0]-u,n=n[1]-s,a||n||(a=1),l=Math.sqrt(a*a+n*n),[u+p*a/l,s+p*n/l]):Xi(o,r),_i(e,f=i.Ja(y))<=t.g)&&(h=!0,t.R)&&!c&&(o=i.Ja(r[0]),c=i.Ja(r[1]),o=Yi(f,o),e=Yi(f,c),c=(c=Math.sqrt(Math.min(o,e)))<=t.g)&&(y=e<o?r[1]:r[0],f=i.Ja(y)),h)&&(f=[Math.round(f[0]),Math.round(f[1])]),{nq:h,vertex:y,wq:f}}function s0(t){var e=p0(this,t.pixel,t.coordinate,t.map);return e.nq&&(t.coordinate=e.vertex.slice(0,2),t.pixel=e.wq),Zr.call(this,t)}function a0(){var t=Kt(this.u);return t.length&&(t.forEach(this.Dj,this),this.u={}),!1}function l0(t){var e,o;zr.call(this,{handleDownEvent:h0,handleDragEvent:u0,handleMoveEvent:c0,handleUpEvent:y0}),t=t||{},this.a=null,this.j=void 0!==t.features?t.features:null,o=t.layers?"function"==typeof t.layers?t.layers:(e=t.layers,function(t){return G(e,t)}):tr,this.C=o,this.l=t.hitTolerance||0,this.g=null,g(this,ro("active"),this.u,this)}function h0(t){var e;return this.g=f0(this,t.pixel,t.map),!(this.a||!this.g||(this.a=t.coordinate,c0.call(this,t),e=this.j||new y([this.g]),this.b(new g0("translatestart",e,t.coordinate)),0))}function y0(t){var e;return!!this.a&&(this.a=null,c0.call(this,t),e=this.j||new y([this.g]),this.b(new g0("translateend",e,t.coordinate)),!0)}function u0(t){var o,i,e;this.a&&(o=(t=t.coordinate)[0]-this.a[0],i=t[1]-this.a[1],(e=this.j||new y([this.g])).forEach(function(t){var e=t.V();e.translate(o,i),t.Ra(e)}),this.a=t,this.b(new g0("translating",e,t)))}function c0(t){var e=t.map.a;f0(this,t.pixel,t.map)?(e.classList.remove(this.a?"ol-grab":"ol-grabbing"),e.classList.add(this.a?"ol-grabbing":"ol-grab")):e.classList.remove("ol-grab","ol-grabbing")}function f0(t,e,o){return o.we(e,function(t){if(!this.j||G(this.j.a,t))return t}.bind(t),{layerFilter:t.C,hitTolerance:t.l})}function d0(t,e){var o=t.v;t=t.c(),o&&t||(o=o||e).a.classList.remove("ol-grab","ol-grabbing")}function g0(t,e,o){_e.call(this,t),this.features=e,this.coordinate=o}function M(t){var e=Gt({},t=t||{}),o=(delete e.gradient,delete e.radius,delete e.blur,delete e.shadow,delete e.weight,S.call(this,e),this.j=null,this.R=void 0!==t.shadow?t.shadow:250,this.I=void 0,this.B=null,g(this,ro(b0),this.Bl,this),this.pj(t.gradient||v0),this.jj(void 0!==t.blur?t.blur:15),this.Uc(void 0!==t.radius?t.radius:8),g(this,ro(m0),this.cg,this),g(this,ro(x0),this.cg,this),this.cg(),t.weight||"weight"),i="string"==typeof o?function(t){return t.get(o)}:o;this.g(function(t){var e=255*(t=void 0!==(t=i(t))?et(t,0,1):1)|0,o=this.B[e];return o||(o=[new Ia({image:new vy({opacity:t,src:this.I})})],this.B[e]=o),o}.bind(this)),this.set(ag,null),g(this,"render",this.Sl,this)}e(n0,zr),n0.prototype.yb=function(t,e){e=void 0===e||e;var o,i=q(t),r=t.V();r&&(o=this.fa[r.U()])&&(this.T[i]=r.G(gt()),o.call(this,t,r)),e&&(this.B[i]=g(t,"change",this.Ln,this))},e(l0,zr),l0.prototype.B=function(){return this.l},l0.prototype.I=function(t){this.l=t},l0.prototype.setMap=function(t){var e=this.v;zr.prototype.setMap.call(this,t),d0(this,e)},l0.prototype.u=function(){d0(this,null)},e(g0,_e),e(M,S);var v0=["#00f","#0ff","#0f0","#ff0","#f00"],m0=(M.prototype.uh=function(){return this.get(m0)},"blur"),b0="gradient",x0="radius";function w0(t){zd.call(this,t),this.v=Kn(),this.j=null}function S0(t){w0.call(this,t),this.M=null,this.c=Kn()}function P0(t,e,o,i){var r=Se(o,e,t);return o=he(e,i,o),void 0!==(e=e.sc())&&(o*=e),void 0!==(e=t.sc())&&(o/=e),t=he(t,o,r)/o,isFinite(t)&&0<t&&(o/=t),o}function M0(t,e,o,i){t=o-t,e=i-e;var r=Math.sqrt(t*t+e*e);return[Math.round(o+t/r),Math.round(i+e/r)]}function T0(t,e,d,g,o,v,i,r,n,p,s){var m,b,a,x,w=xo(Math.round(d*t),Math.round(d*e));return n.length&&(w.scale(d,d),m=gt(),n.forEach(function(t){St(m,t.extent)}),b=xo(Math.round(d*It(m)/g),Math.round(d*Lt(m)/g)),a=d/g,n.forEach(function(t){b.drawImage(t.image,p,p,t.image.width-2*p,t.image.height-2*p,(t.extent[0]-m[0])*a,-(t.extent[3]-m[3])*a,It(t.extent)*a,Lt(t.extent)*a)}),x=Ft(i),r.c.forEach(function(t){var e=t.source,o=t.target,i=e[1][0],r=e[1][1],n=e[2][0],p=e[2][1],s=(t=(o[0][0]-x[0])/v,-(o[0][1]-x[1])/v),a=(o[1][0]-x[0])/v,l=-(o[1][1]-x[1])/v,h=(o[2][0]-x[0])/v,y=-(o[2][1]-x[1])/v;t:{for(r=(i=[[i=i-(o=e[0][0]),r=r-(e=e[0][1]),0,0,a-t],[n=n-o,p=p-e,0,0,h-t],[0,0,i,r,l-s],[0,0,n,p,y-s]]).length,n=0;n<r;n++){for(var p=n,u=Math.abs(i[n][n]),c=n+1;c<r;c++){var f=Math.abs(i[c][n]);u<f&&(u=f,p=c)}if(!u){i=null;break t}for(u=i[p],i[p]=i[n],i[n]=u,p=n+1;p<r;p++)for(u=-i[p][n]/i[n][n],c=n;c<r+1;c++)i[p][c]=n==c?0:i[p][c]+u*i[n][c]}for(n=Array(r),p=r-1;0<=p;p--)for(n[p]=i[p][r]/i[p][p],u=p-1;0<=u;u--)i[u][r]-=i[u][p]*n[p];i=n}i&&(w.save(),w.beginPath(),r=M0(n=(t+a+h)/3,p=(s+l+y)/3,t,s),a=M0(n,p,a,l),h=M0(n,p,h,y),w.moveTo(a[0],a[1]),w.lineTo(r[0],r[1]),w.lineTo(h[0],h[1]),w.clip(),w.transform(i[0],i[2],i[1],i[3],t,s),w.translate(m[0]-o,m[3]-e),w.scale(g/d,-g/d),w.drawImage(b.canvas,0,0),w.restore())}),s)&&(w.save(),w.strokeStyle="black",w.lineWidth=1,r.c.forEach(function(t){t=((n=t.target)[0][0]-x[0])/v;var e=-(n[0][1]-x[1])/v,o=(n[1][0]-x[0])/v,i=-(n[1][1]-x[1])/v,r=(n[2][0]-x[0])/v,n=-(n[2][1]-x[1])/v;w.beginPath(),w.moveTo(o,i),w.lineTo(t,e),w.lineTo(r,n),w.closePath(),w.stroke()}),w.restore()),w.canvas}function E0(t,e,o,i,r){this.i=t,this.f=e;var n,p={},s=me(this.f,this.i),a=(this.a=function(t){var e=t[0]+"/"+t[1];return p[e]||(p[e]=s(t)),p[e]},this.g=i,this.v=r*r,this.c=[],this.o=!1,this.l=this.i.i&&!!i&&!!this.i.G()&&It(i)==It(this.i.G()),this.b=this.i.G()?It(this.i.G()):null,this.j=this.f.G()?It(this.f.G()):null,t=Ft(o),e=Nt(o),i=At(o),o=Et(o),r=this.a(t),this.a(e)),l=this.a(i),h=this.a(o);!function t(e,o,i,r,n,p,s,a,l,h){var y=lt([p,s,a,l]),u=e.b?It(y)/e.b:null,c=e.b,f=e.i.i&&.5<u&&u<1,d=!1;{var g;0<h&&(e.f.c&&e.j&&(g=lt([o,i,r,n]),d|=.25<It(g)/e.j),!f)&&e.i.c&&u&&(d|=.25<u)}if(d||!e.g||kt(y,e.g)){if(!(d||isFinite(p[0])&&isFinite(p[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(l[0])&&isFinite(l[1]))){if(!(0<h))return;d=!0}if(0<h&&(d||(y=e.a([(o[0]+r[0])/2,(o[1]+r[1])/2]),c=f?(rt(p[0],c)+rt(a[0],c))/2-rt(y[0],c):(p[0]+a[0])/2-y[0],y=(p[1]+a[1])/2-y[1],d=c*c+y*y>e.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])<this.b/2)&&(t.source=e)},this)),p={}}function A0(t){var e=gt();return t.c.forEach(function(t){t=t.source,Pt(e,t[0]),Pt(e,t[1]),Pt(e,t[2])}),e}function C0(t,e,o,i,r,n){this.v=e,this.l=t.G();var p=(s=e.G())?Rt(o,s):o,s=P0(t,e,Ct(p),i);this.j=new E0(t,e,p,this.l,.5*s),this.c=i,this.i=o,t=A0(this.j),this.o=(this.Hb=n(t,s,r))?this.Hb.a:1,this.ee=this.g=null,r=2,n=[],this.Hb&&(r=0,n=this.Hb.f),ed.call(this,o,i,this.o,r,n)}function j0(t){hg.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state}),this.C=void 0!==t.resolutions?t.resolutions:null,this.a=null,this.fa=0}function L0(t,e){return e=t.C?t.C[B(t.C,e,0)]:e}function R0(t,e){t.Y().src=e}function F0(t,e){_e.call(this,t),this.image=e}e(w0,zd),w0.prototype.S=function(t,e,o){Zd(this,"precompose",o,t,void 0);var i,r,n,p=this.Y();p&&((i=void 0!==(r=e.extent)&&!ct(r,t.extent)&&kt(r,t.extent))&&Hd(o,t,r),r=this.C(),n=o.globalAlpha,o.globalAlpha=e.opacity,o.drawImage(p,0,0,+p.width,+p.height,Math.round(r[4]),Math.round(r[5]),Math.round(p.width*r[0]),Math.round(p.height*r[3])),o.globalAlpha=n,i)&&o.restore(),this.ef(o,t,e)},w0.prototype.Ea=function(t,e,o,i,r){var n=this.a;return n.ha().Ea(t,e.viewState.resolution,e.viewState.rotation,o,e.skippedFeatureUids,function(t){return i.call(r,t,n)})},w0.prototype.u=function(t,e,o,i){if(this.Y())return this.a.ha().Ea!==Z?zd.prototype.u.apply(this,arguments):(Ji(t=Hn(this.v,t.slice()),e.viewState.resolution/this.f),this.j||(this.j=xo(1,1)),this.j.clearRect(0,0,1,1),this.j.drawImage(this.Y(),t[0],t[1],1,1,0,0,1,1),0<(t=this.j.getImageData(0,0,1,1).data)[3]?o.call(i,this.a,t):void 0)},e(S0,w0),S0.prototype.Y=function(){return this.M?this.M.Y():null},S0.prototype.C=function(){return this.c},S0.prototype.sd=function(t,e){var o,i=t.pixelRatio,r=t.size,n=t.viewState,p=n.center,s=n.resolution,a=this.a.ha(),l=t.viewHints,h=t.extent;return void 0!==e.extent&&(h=Rt(h,e.extent)),l[0]||l[1]||Ot(h)||(e=a.Y(h,s,i,n.projection))&&Ud(this,e)&&(this.M=e),this.M&&(l=(e=this.M).G(),o=i*(h=e.resolution)/(s*(n=e.a)),l=Yn(this.c,i*r[0]/2,i*r[1]/2,o,o,0,n*(l[0]-p[0])/h,n*(p[1]-l[3])/h),Yn(this.v,i*r[0]/2-l[4],i*r[1]/2-l[5],i/s,-i/s,0,-p[0],-p[1]),Kd(t.attributions,e.f),Wd(t,a),this.f=s*i/n),!!this.M},e(C0,ed),C0.prototype.ka=function(){1==this.state&&(Ze(this.ee),this.ee=null),ed.prototype.ka.call(this)},C0.prototype.Y=function(){return this.g},C0.prototype.de=function(){var t=this.Hb.getState();2==t&&(this.g=T0(It(this.i)/this.c,Lt(this.i)/this.c,this.o,this.Hb.resolution,0,this.c,this.i,this.j,[{extent:this.Hb.G(),image:this.Hb.Y()}],0)),this.state=t,this.s()},C0.prototype.load=function(){var t;0==this.state&&(this.state=1,this.s(),2==(t=this.Hb.getState())||3==t?this.de():(this.ee=g(this.Hb,"change",function(){var t=this.Hb.getState();2!=t&&3!=t||(Ze(this.ee),this.ee=null,this.de())},this),this.Hb.load()))},e(j0,hg),j0.prototype.Y=function(t,e,o,i){var r=this.c;if(r&&i&&!ve(r,i)){if(this.a){if(this.fa==this.i&&ve(this.a.v,i)&&this.a.resolution==e&&this.a.a==o&&wt(this.a.G(),t))return this.a;Ye(this.a),this.a=null}return this.a=new C0(r,i,t,e,o,function(t,e,o){return this.Jc(t,e,o,r)}.bind(this)),this.fa=this.i,this.a}return this.Jc(t,e,o,i=r?r:i)},j0.prototype.o=function(t){switch((t=t.target).getState()){case 1:this.b(new F0(N0,t));break;case 2:this.b(new F0(I0,t));break;case 3:this.b(new F0(k0,t))}},e(F0,_e);var N0="imageloadstart",I0="imageloadend",k0="imageloaderror";function O0(t){j0.call(this,{attributions:t.attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions,state:t.state}),this.pa=t.canvasFunction,this.R=null,this.T=0,this.va=void 0!==t.ratio?t.ratio:1.5}function D0(t){this.f=t.source,this.$a=Kn(),this.g=xo(),this.l=[0,0],this.Sa=null==t.renderBuffer?100:t.renderBuffer,this.B=null,O0.call(this,{attributions:t.attributions,canvasFunction:this.tk.bind(this),logo:t.logo,projection:t.projection,ratio:t.ratio,resolutions:t.resolutions,state:this.f.getState()}),this.I=null,this.v=void 0,this.Ii(t.style),g(this.f,"change",this.ro,this)}function U0(t,e){ng.call(this,t,e),this.o=this.f=this.M=null}function G0(t){o.call(this,t||{})}function B0(t){w0.call(this,t),this.c=null===this.c?null:xo(),this.o=null,this.g=[],this.l=gt(),this.va=new $(0,0,0,0),this.B=Kn(),this.T=0}function K0(t,e){return e=e.getState(),t=t.a.kd(),2==e||4==e||3==e&&!t}function W0(){this.b="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor=texture2D(e,a);}"}e(O0,j0),O0.prototype.Jc=function(t,e,o,i){e=L0(this,e);var r=this.R;return r&&this.T==this.i&&r.resolution==e&&r.a==o&&ct(r.G(),t)||(Dt(t=t.slice(),this.va),(i=this.pa(t,e,o,[It(t)/e*o,Lt(t)/e*o],i))&&(r=new id(t,e,o,this.j,i)),this.R=r,this.T=this.i),r},e(D0,O0),D0.prototype.tk=function(t,n,p,e,o){var i,r,s=new Rd(.5*n/p,t,n,this.f.T,this.Sa),a=(this.f.Yd(t,n,o),!1);return this.f.$b(t,function(t){var e;if(!(i=a))if((i=t.Lc())?e=i.call(t,n):this.v&&(e=this.v(t,n)),e){for(var o=!1,i=0,r=(e=Array.isArray(e)?e:[e]).length;i<r;++i)o=_d(s,t,e[i],Yd(n,p),this.qo,this)||o;i=o}else i=!1;a=i},this),Id(s),a?null:(this.l[0]!=e[0]||this.l[1]!=e[1]?(this.g.canvas.width=e[0],this.g.canvas.height=e[1],this.l[0]=e[0],this.l[1]=e[1]):this.g.clearRect(0,0,e[0],e[1]),o=this,i=Ct(t),r=p/(r=n),t=Yn(o.$a,e[0]/2,e[1]/2,r,-r,0,-i[0],-i[1]),s.La(this.g,p,t,0,{}),this.B=s,this.g.canvas)},e(U0,ng),U0.prototype.Ea=function(t,e,o,i,r){var n=this.a;return n.ha().Ea(t,e.viewState.resolution,e.viewState.rotation,o,e.skippedFeatureUids,function(t){return i.call(r,t,n)})},U0.prototype.ng=function(t,e){var o=this.c.i,i=t.pixelRatio,r=t.viewState,n=r.center,p=r.resolution,s=r.rotation,a=this.M,l=this.Ib,h=this.a.ha(),y=t.viewHints,u=t.extent;return void 0!==e.extent&&(u=Rt(u,e.extent)),y[0]||y[1]||Ot(u)||(e=h.Y(u,p,i,r.projection))&&Ud(this,e)&&(y=this,u=(u=a=e).Y(),l=Kp(y.c.i,u),this.Ib)&&t.postRenderFunctions.push(function(t,e){t.isContextLost()||t.deleteTexture(e)}.bind(null,o,this.Ib)),a&&(o=this.c.f.j,r=this,e=o.width,y=o.height,u=i,o=n,n=p,p=s,s=a.G(),e*=n,y*=n,Wn(r=r.S),qn(r,2*u/e,2*u/y),Zn(r,-p),Jn(r,s[0]-o[0],s[1]-o[1]),qn(r,(s[2]-s[0])/2,(s[3]-s[1])/2),Jn(r,1,1),this.o=null,Wn(i=this.v),qn(i,1,-1),Jn(i,0,-1),this.M=a,this.Ib=l,Kd(t.attributions,a.f),Wd(t,h)),!!a},U0.prototype.Ue=function(t,e){return void 0!==this.Ea(t,e,0,tr,this)},U0.prototype.lg=function(t,e,o,i){if(this.M&&this.M.Y())if(this.a.ha()instanceof D0){var r=Hn(e.pixelToCoordinateTransform,t.slice());if(this.Ea(r,e,0,tr,this))return o.call(i,this.a,null)}else{var n,p,r=[this.M.Y().width,this.M.Y().height];if(this.o||(n=e.size,Jn(e=Kn(),-1,-1),qn(e,2/n[0],2/n[1]),Jn(e,0,n[1]),qn(e,1,-1),n=_n(this.S.slice()),Jn(p=Kn(),0,r[1]),qn(p,1,-1),qn(p,r[0]/2,r[1]/2),Jn(p,1,1),Vn(p,n),Vn(p,e),this.o=p),!((t=Hn(this.o,t.slice()))[0]<0||t[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&&16<Date.now()-t.time&&j||!S&&this.o&&ct(this.o,f)&&this.mf==l&&c==this.R&&(j||u*o/v*c==this.f))){(j=this.c)&&(L=a.Xd(y,o,r),P=Math.round((d.$-d.ca+1)*L[0]/c),L=Math.round((d.ia-d.da+1)*L[1]/c),(S=j.canvas).width!=P||S.height!=L?(this.R=c,S.width=P,S.height=L):(j.clearRect(0,0,P,L),c=this.R)),this.g.length=0,(S=Object.keys(m).map(Number)).sort(U);for(var w=0,M=S.length;w<M;++w){j=S[w];var T,b=a.Xd(j,o,r),E=(P=h.Da(j))/u,A=v*a.Wf(r),C=m[j];for(T in C){var P=C[T],j=((L=h.Aa(P.ta,x))[0]-g[0])/u*v/c,L=(g[3]-L[3])/u*v/c,R=b[0]*E/c,F=b[1]*E/c;this.Of(P,t,e,j,L,R,F,A),this.g.push(P)}}this.mf=l,this.f=u*o/v*c,this.o=g}return e=this.f/n,e=Yn(this.B,o*i[0]/2,o*i[1]/2,e,e,0,(this.o[0]-p[0])/this.f*o,(p[1]-this.o[3])/this.f*o),Yn(this.v,o*i[0]/2-e[4],o*i[1]/2-e[5],o/n,-o/n,0,-p[0],-p[1]),Vd(t.usedTiles,a,y,d),Xd(t,a,h,o,r,f,y,s.Ud()),Bd(t,a),Wd(t,a),0<this.g.length},B0.prototype.Of=function(t,e,o,i,r,n,p,s){this.a.ha().Zf(e.viewState.projection)||this.c.clearRect(i,r,n,p),(t=t.Y())&&this.c.drawImage(t,s,s,t.width-2*s,t.height-2*s,i,r,n,p)},B0.prototype.Y=function(){var t=this.c;return t?t.canvas:null},B0.prototype.C=function(){return this.B},e(W0,bp);var V0=new W0;function X0(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position=vec4(b*d.xy+d.zw,0.,1.);a=c;}"}e(X0,xp);var z0=new X0;function H0(t,e){ng.call(this,t,e),this.I=V0,this.fa=z0,this.f=null,this.B=new Cp([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),this.D=this.o=null,this.l=-1,this.R=[0,0]}function T(t){var e=Gt({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,o.call(this,e),this.zi(void 0!==t.preload?t.preload:0),this.Ai(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}function Z0(t){this.c=null,B0.call(this,t),this.I=!1,this.D=Kn(),this.T="vector"==t.j?1:0}e(H0,ng),H0.prototype.ka=function(){kp(this.c.f,this.B),ng.prototype.ka.call(this)},e(T,o),T.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new B0(this):"webgl"===o&&(e=new H0(t,this)),e},e(Z0,B0);function E(t){var e=Gt({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,S.call(this,e),this.Bi(t.preload||0),this.Ci(t.useInterimTilesOnError||!0),_(null==t.renderMode||"image"==t.renderMode||"hybrid"==t.renderMode||"vector"==t.renderMode,28),this.j=t.renderMode||"hybrid"}function q0(t,e,o,i){function r(){delete window[p],n.parentNode.removeChild(n)}var n=document.createElement("script"),p="olc_"+q(e),s=(n.async=!0,n.src=t+(-1==t.indexOf("?")?"?":"&")+(i||"callback")+"="+p,setTimeout(function(){r(),o&&o()},1e4));window[p]=function(t){clearTimeout(s),r(),e(t)},document.getElementsByTagName("head")[0].appendChild(n)}function J0(t,e,o,i,r,n,p,s,a,l,h){if(rd.call(this,r,0),this.D=void 0!==h&&h,this.S=p,this.u=s,this.v=null,this.c=e,this.j=i,this.o=n||r,this.a=[],this.yd=null,this.g=0,n=i.Aa(this.o),s=this.j.G(),r=this.c.G(),Tt(n=s?Rt(n,s):n))if((s=t.G())&&(r=r?Rt(r,s):s),i=P0(t,o,Ct(n),i.Da(this.o[0])),!isFinite(i)||i<=0)this.state=4;else if(this.l=new E0(t,o,n,r,i*(void 0!==l?l:.5)),this.l.c.length)if(this.g=e.tc(i),o=A0(this.l),r&&(t.i?(o[1]=et(o[1],r[1],r[3]),o[3]=et(o[3],r[1],r[3])):o=Rt(o,r)),Tt(o)){for(e=(t=Re(e,o,this.g)).ca;e<=t.$;e++)for(o=t.da;o<=t.ia;o++)(l=a(this.g,e,o,p))&&this.a.push(l);this.a.length||(this.state=4)}else this.state=4;else this.state=4;else this.state=4}function Y0(i){return 1===i.length?i[0]:function(t,e,o){if(t)return i[rt((t[1]<<t[0])+t[2],i.length)](t,e,o)}}function _0(){}function $0(t){var e=[],o=/\{([a-z])-([a-z])\}/.exec(t);if(o)for(var i=o[2].charCodeAt(0),r=o[1].charCodeAt(0);r<=i;++r)e.push(t.replace(o[0],String.fromCharCode(r)));else if(o=/\{(\d+)-(\d+)\}/.exec(t))for(i=parseInt(o[2],10),r=parseInt(o[1],10);r<=i;r++)e.push(t.replace(o[0],r.toString()));else e.push(t);return e}function Q0(t){oa.call(this),this.highWaterMark=void 0!==t?t:2048}function tv(t){return t.c>t.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.maxZoom<i)&&(!(o=(r=o.G())?Re(o,r,i):o.a?o.a[i]:null)||Q(o,n,t)))?e:null}function nv(t,e){_e.call(this,t),this.tile=e}function pv(t){ev.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):_0,this.urls=null,t.urls?this.eb(t.urls):t.url&&this.jb(t.url),t.tileUrlFunction&&this.cb(t.tileUrlFunction)}function A(t){pv.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||sv,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||sd,this.g={},this.v={},this.Sa=t.reprojectionErrorThreshold,this.I=!1}function sv(t,e){t.Y().src=e}function C(t){this.B=void 0!==t.hidpi&&t.hidpi,A.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:ge("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,q0("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.l+"?uriScheme=https&include=ImageryProviders&key="+this.f,this.pa.bind(this),void 0,"jsonp")}Z0.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=xo()),this.c)&&"vector"==o&&(this.c=null),this.pa=i,B0.prototype.sd.apply(this,arguments)},e(E,S),E.prototype.Fd=function(t){var e=null;return e="canvas"===t.U()?new Z0(this):e},e(J0,rd),J0.prototype.ka=function(){1==this.state&&(this.yd.forEach(Ze),this.yd=null),rd.prototype.ka.call(this)},J0.prototype.Y=function(){return this.v},J0.prototype.de=function(){var t,e,o,i,r,n=[];this.a.forEach(function(t){t&&2==t.getState()&&n.push({extent:this.c.Aa(t.ta),image:t.Y()})},this),this.a.length=0,n.length?(o=this.o[0],t="number"==typeof(e=this.j.gb(o))?e:e[0],e="number"==typeof e?e:e[1],o=this.j.Da(o),i=this.c.Da(this.g),r=this.j.Aa(this.o),this.v=T0(t,e,this.S,i,this.c.G(),o,r,this.l,n,this.u,this.D),this.state=2):this.state=3,this.s()},J0.prototype.load=function(){var i;0==this.state&&(this.state=1,this.s(),i=0,this.yd=[],this.a.forEach(function(e){var o,t=e.getState();0!=t&&1!=t||(i++,o=g(e,"change",function(){var t=e.getState();2!=t&&3!=t&&4!=t||(Ze(o),--i)||(this.yd.forEach(Ze),this.yd=null,this.de())},this),this.yd.push(o))},this),this.a.forEach(function(t){0==t.getState()&&t.load()}),i||setTimeout(this.de.bind(this),0))},e(Q0,oa),Q0.prototype.fd=function(t){for(var e,o,i;tv(this);){if((e=(i=(o=this.a.Yc).ta[0].toString())in t)&&(o=o.ta,e=Q(t[i],o[1],o[2])),e)break;Ye(this.pop())}},e(ev,hg),ev.prototype.Ki=function(){return tv(this.a)},e(nv,_e),e(pv,ev),pv.prototype.pb=function(){return this.tileLoadFunction},e(A,pv),A.prototype.Ki=function(){if(tv(this.a))return!0;for(var t in this.g)if(tv(this.g[t]))return!0;return!1},e(C,A);var av=new Ue({html:'<a class="ol-attribution-bing-tos" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a>'});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<<e-1,r=0;r<e;++r){var n=48;t[1]&i&&(n+=1),t[2]&i&&(n+=2),o[r]=String.fromCharCode(n),i>>=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:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> 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;t<n;++t){var s=t,a=new Uint8ClampedArray(e[t]),l=i,h=r,a=u?new ImageData(a,l,h):{data:a,width:l,height:h};p[s]=a}i=y(p,o).data}else{for(i=new Uint8ClampedArray(p),r=Array(n),s=Array(n),t=0;t<n;++t)r[t]=new Uint8ClampedArray(e[t]),s[t]=[0,0,0,0];for(e=0;e<p;e+=4){for(t=0;t<n;++t)a=r[t],s[t][0]=a[e],s[t][1]=a[e+1],s[t][2]=a[e+2],s[t][3]=a[e+3];t=y(s,o),i[e]=t[0],i[e+1]=t[1],i[e+2]=t[2],i[e+3]=t[3]}}return i.buffer}}function Sv(t){this.Ff=!!t.$l;var e,o,i,r,n=[];if(e=0===t.threads?0:!this.Ff&&t.threads||1)for(var p=0;p<e;++p)n[p]=function(e,t){var o=Object.keys(e.lib||{}).map(function(t){return"var "+t+" = "+e.lib[t].toString()+";"}).concat(["var __minion__ = ("+wv.toString()+")(",e.operation.toString(),");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),o=URL.createObjectURL(new Blob(o,{type:"text/javascript"}));return(o=new Worker(o)).addEventListener("message",t),o}(t,this.gh.bind(this,p));else n[0]=(o=t,i=this.gh.bind(this,0),r=wv(o.operation),{postMessage:function(t){setTimeout(function(){i({data:{buffer:r(t),meta:t.meta}})},0)}});this.qe=n,this.Ed=[],this.fk=t.rp||1/0,this.oe=0,this.bd={},this.Gf=null}var Pv=!0;try{new ImageData(10,10)}catch(t){Pv=!1}var Mv=document.createElement("canvas").getContext("2d");function Tv(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;i<e;++i){var r=i,n=t[i],p=null;n instanceof ev?(n=new T({source:n}),p=new B0(n)):n instanceof j0&&(n=new G0({source:n}),p=new S0(n)),o[r]=p}return o}(t.sources);for(var e=0,o=this.g.length;e<o;++e)g(this.g[e],"change",this.s,this);this.T=new Di(function(){return 1},this.s.bind(this));for(var o={},i=0,r=(e=this.g.map(function(t){return In(t.a)})).length;i<r;++i)o[q(e[i].layer)]=e[i];this.f=null,this.I={animate:!1,attributions:{},coordinateToPixelTransform:Kn(),extent:null,focus:null,index:0,layerStates:o,layerStatesArray:e,logos:{},pixelRatio:1,pixelToCoordinateTransform:Kn(),postRenderFunctions:[],size:[0,0],skippedFeatureUids:{},tileQueue:this.T,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{}},j0.call(this,{}),t.operation&&this.v(t.operation,t.lib)}Sv.prototype.pp=function(t,e,o){this.dk({inputs:t,Qh:e,callback:o}),this.dh()},Sv.prototype.dk=function(t){for(this.Ed.push(t);this.Ed.length>this.fk;)this.Ed.shift().callback(null,null)},Sv.prototype.dh=function(){if(0===this.oe&&0<this.Ed.length){var t=this.Gf=this.Ed.shift(),e=t.inputs[0].width,o=t.inputs[0].height,i=t.inputs.map(function(t){return t.data.buffer}),r=this.qe.length;if(1===(this.oe=r))this.qe[0].postMessage({buffers:i,meta:t.Qh,imageOps:this.Ff,width:e,height:o},i);else for(var n=4*Math.ceil(t.inputs[0].data.length/4/r),p=0;p<r;++p){for(var s=p*n,a=[],l=0,h=i.length;l<h;++l)a.push(i[p].slice(s,s+n));this.qe[p].postMessage({buffers:a,meta:t.Qh,imageOps:this.Ff,width:e,height:o},a)}}},Sv.prototype.gh=function(t,e){this.Jq||(this.bd[t]=e.data,--this.oe,0===this.oe&&this.gk())},Sv.prototype.gk=function(){var t,e,o=this.Gf,i=this.qe.length;if(1===i)var r=new Uint8ClampedArray(this.bd[0].buffer),n=this.bd[0].meta;else for(var p=o.inputs[0].data.length,r=new Uint8ClampedArray(p),n=Array(p),p=4*Math.ceil(p/4/i),s=0;s<i;++s){var a=s*p;r.set(new Uint8ClampedArray(this.bd[s].buffer),a),n[s]=this.bd[s].meta}this.Gf=null,this.bd={},o.callback(null,(t=r,e=o.inputs[0].width,o=o.inputs[0].height,Pv?new ImageData(t,e,o):((e=Mv.createImageData(e,o)).data.set(t),e)),n),this.dh()},pi.default={Af:Sv},pi.Af=Sv,e(Tv,j0),Tv.prototype.v=function(t,e){this.B=new ms.df.Af({operation:t,$l:"image"===this.va,rp:1,lib:e,threads:this.Sa}),this.s()},Tv.prototype.Y=function(t,e,o,i){o=!0;for(var r=0,n=this.g.length;r<n;++r)if("ready"!==(l=this.g[r].a.ha()).getState()){o=!1;break}if(!o)return null;if((o=Gt({},this.I)).viewState=Gt({},o.viewState),l=Ct(t),o.extent=t.slice(),o.focus=l,o.size[0]=Math.round(It(t)/e),o.size[1]=Math.round(Lt(t)/e),(r=o.viewState).center=l,r.projection=i,r.resolution=e,Ui((this.l=o).tileQueue,16,16),this.f&&(i=this.f.resolution,o=this.f.G(),e===i&&wt(t,o)||(this.f=null)),!this.f||this.i!==this.R)t:{for(t=this.l,i=this.g.length,e=Array(i),o=0;o<i;++o){var p,s,a,l=this.g[o],r=t,n=t.layerStatesArray[o];if(!(l=l.sd(r,n)?(p=r.size[0],s=r.size[1],!Ev||(a=Ev.canvas).width!==p||a.height!==s?Ev=xo(p,s):Ev.clearRect(0,0,p,s),l.S(r,n,Ev),Ev.getImageData(0,0,p,s)):null))break t;e[o]=l}this.b(new Av(Cv,t,i={})),this.B.pp(e,i,this.pa.bind(this,t))}return this.f},Tv.prototype.pa=function(t,e,o,i){var r,n;!e&&o&&(e=t.extent,(r=t.viewState.resolution)===this.l.viewState.resolution)&&wt(e,this.l.extent)&&(this.f?n=this.f.Y().getContext("2d"):(n=xo(Math.round(It(e)/r),Math.round(Lt(e)/r)),this.f=new id(e,r,1,this.j,n.canvas)),n.putImageData(o,0,0),this.s(),this.R=this.i,this.b(new Av(jv,t,i)))};var Ev=null;function Av(t,e,o){_e.call(this,t),this.extent=e.extent,this.resolution=e.viewState.resolution/e.pixelRatio,this.data=o}e(Av,_e),Tv.prototype.Jc=function(){return null};var Cv="beforeoperations",jv="afteroperations";function Lv(t){var e=t.layer.indexOf("-"),e=Nv[-1==e?t.layer:t.layer.slice(0,e)],o=Fv[t.layer];j.call(this,{attributions:Rv,cacheSize:t.cacheSize,crossOrigin:"anonymous",maxZoom:(null!=t.maxZoom?t:e).maxZoom,minZoom:(null!=t.minZoom?t:e).minZoom,opaque:o.opaque,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,url:void 0!==t.url?t.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+t.layer+"/{z}/{x}/{y}."+o.Lb,wrapX:t.wrapX})}e(Lv,j);var Rv=[new Ue({html:'Map tiles by <a href="http://stamen.com/">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.'}),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]<<e[0])+e[2],s.length)],p)}}function Bv(t){var e=0,o=[];if(t.urls)for(var i=0,r=t.urls.length;i<r;++i)o[e++]=t.urls[i];t.R=o.join("#")}function Kv(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function Wv(t){t.l=0<=Wi(t.f.VERSION||"1.3.0")}function Vv(t,e,o,i,r,n,p,s,a,l,h,y,u,c){var f,d;rd.call(this,t,e),this.j=null,this.o={Nd:!1,Kg:null,mf:-1,Lg:-1},this.c=l,this.a=[],this.u=o,this.v=n,this.g=[],this.l=[],n&&(f=a.Aa(n),d=a.Da(t[0]),s.Rf(f,s.tc(d),function(t){var e,o=Rt(f,s.Aa(t));.5<=It(o)/d&&.5<=Lt(o)/d&&(o=t.toString(),(e=l[o])||(e=p(t,h,y),e=l[o]=new u(t,null==e?4:0,null==e?"":e,i,r),this.l.push(g(e,"change",c))),e.j++,this.a.push(o))}.bind(this)))}function Xv(t,e){t.Pg(il(e,t.o,t.$o.bind(t),t.Zo.bind(t)))}function zv(t,e,o,i,r){rd.call(this,t,e),this.j=0,this.o=i,this.g=null,this.c={},this.u=r,this.l=o}function Hv(t){pv.call(this,{attributions:t.attributions,cacheSize:void 0!==t.cacheSize?t.cacheSize:128,extent:t.extent,logo:t.logo,opaque:!1,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||Xv,tileUrlFunction:t.tileUrlFunction,tilePixelRatio:t.tilePixelRatio,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.g=t.format||null,this.v={},this.l=null==t.overlaps||t.overlaps,this.tileClass=t.tileClass||zv,this.f={},this.tileGrid||(this.tileGrid=this.Ta(ge(t.projection||"EPSG:3857")))}function Zv(t){this.o=t.matrixIds,Ee.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})}function qv(t,e,o){var r=[],n=[],p=[],s=[],a=[],l=void 0!==o?o:[],h=(o=ge(t.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))).sc(),y="ne"==o.b.substr(0,2);return t.TileMatrix.sort(function(t,e){return e.ScaleDenominator-t.ScaleDenominator}),t.TileMatrix.forEach(function(e){var t,o,i;(t=!(0<l.length)||V(l,function(t){return e.Identifier==t.TileMatrix}))&&(n.push(e.Identifier),t=28e-5*e.ScaleDenominator/h,o=e.TileWidth,i=e.TileHeight,p.push(y?[e.TopLeftCorner[1],e.TopLeftCorner[0]]:e.TopLeftCorner),r.push(t),s.push(o==i?o:[o,i]),a.push([e.MatrixWidth,-e.MatrixHeight]))}),new Zv({extent:e,origins:p,resolutions:r,matrixIds:n,tileSizes:s,sizes:a})}function k(t){this.fa=void 0!==t.version?t.version:"1.0.0",this.C=void 0!==t.format?t.format:"image/jpeg",this.f=t.dimensions||{},this.B=t.layer,this.l=t.matrixSet,this.R=t.style;var e=t.urls,i=(void 0===e&&void 0!==t.url&&(e=$0(t.url)),this.T=void 0!==t.requestEncoding?t.requestEncoding:"KVP"),r=t.tileGrid,o={layer:this.B,style:this.R,tilematrixset:this.l},n=("KVP"==i&&Gt(o,{Service:"WMTS",Request:"GetTile",Version:this.fa,Format:this.C}),this.f),p=e&&0<e.length?Y0(e.map(function(e){return e="KVP"==i?yv(e,o):e.replace(/\{(\w+?)\}/g,function(t,e){return e.toLowerCase()in o?o[e.toLowerCase()]:t}),function(t){var o;if(t)return o={TileMatrix:r.o[t[0]],TileCol:t[1],TileRow:-t[2]-1},Gt(o,n),t=e,"KVP"==i?yv(t,o):t.replace(/\{(\w+?)\}/g,function(t,e){return o[e]})}})):_0;A.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:r,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:p,urls:e,wrapX:void 0!==t.wrapX&&t.wrapX}),iv(this,Jv(this))}function Jv(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function Yv(t){var e=(t=t||{}).size,o=e[0],i=e[1],n=[],r=256;switch(void 0!==t.tierSizeCalculation?t.tierSizeCalculation:$v){case $v:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),r+=r;break;case Qv:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),o>>=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<o;i++)r.push(1<<i),p.push(n[i-1][0]*n[i-1][1]+p[i-1]);r.reverse(),e=new Ee({extent:e=[0,-e[1],e[0],0],origin:Ft(e),resolutions:r}),(r=t.url)&&-1==r.indexOf("{TileGroup}")&&(r+="{TileGroup}/{z}-{x}-{y}.jpg"),r=Y0((r=$0(r)).map(function(r){return function(t){var e,o,i;if(t)return e=t[0],i={z:e,x:o=t[1],y:t=-t[2]-1,TileGroup:"TileGroup"+((o+t*n[e][0]+p[e])/256|0)},r.replace(/\{(\w+?)\}/g,function(t,e){return i[e]})}})),A.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:_v,tileGrid:e,tileUrlFunction:r})}function _v(t,e,o,i,r){sd.call(this,t,e,o,i,r),this.a=null}e(F,A),F.prototype.C=function(){return this.f},F.prototype.nb=function(t){return t},F.prototype.Fc=function(t,e,o){var i,r,n,p=this.tileGrid;if(!((p=p||this.Ta(o)).b.length<=t[0]))return i=p.Aa(t,this.l),r=at(p.gb(t[0]),this.o),1!=e&&(r=st(r,e,this.o)),Gt(p={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.f),(n=this.urls)?(o=o.mb.split(":").pop(),p.SIZE=r[0]+","+r[1],p.BBOX=i.join(","),p.BBOXSR=o,p.IMAGESR=o,p.DPI=Math.round(p.DPI?p.DPI*e:90*e),yv(t=(1==n.length?n[0]:n[rt((t[1]<<t[0])+t[2],n.length)]).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),p)):void 0},F.prototype.B=function(t){Gt(this.f,t),iv(this,Iv(this))},e(kv,ev),kv.prototype.Nc=function(t,e,o){var i,r=this.Sb(t,e,o);return this.a.b.hasOwnProperty(r)?this.a.get(r):(i=at(this.tileGrid.gb(t)),i=new Ov(t=[t,e,o],i,e=(e=rv(this,t))?rv(this,e).toString():""),this.a.set(r,i),i)},e(Ov,rd),Ov.prototype.Y=function(){var t,e;return this.a||((e=xo((t=this.c)[0],t[1])).strokeStyle="black",e.strokeRect(.5,.5,t[0]+.5,t[1]+.5),e.fillStyle="black",e.textAlign="center",e.textBaseline="middle",e.font="24px sans-serif",e.fillText(this.Ia,t[0]/2,t[1]/2),this.a=e.canvas)},Ov.prototype.load=function(){},e(N,A),N.prototype.Ao=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.Ve()}this.og(e)}else this.Ve()},e(Dv,ev),Dv.prototype.Eo=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.We()}this.pg(e)}else this.We()},e(Uv,rd),Uv.prototype.Y=function(){return null},e(I,A),I.prototype.Fo=function(t,e,o,i){o=ge(o);var r,n,p,s=this.tileGrid;if(e=(s=s||this.Ta(o)).Be(t,e),!(s.b.length<=e[0]))return r=s.Da(e[0]),n=s.Aa(e,this.fa),s=at(s.gb(e[0]),this.o),(p=this.C)&&(s=pt(s,p,this.o),n=ht(n,r*p,n)),p={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS},Gt(p,this.f,i),i=Math.floor((n[3]-t[1])/r),p[this.l?"I":"X"]=Math.floor((t[0]-n[0])/r),p[this.l?"J":"Y"]=i,Gv(this,e,s,n,1,o,p)},e(Vv,rd),Vv.prototype.ka=function(){for(var t=0,e=this.a.length;t<e;++t){var o=this.a[t],i=this.c[o];i.j--,i.j||(delete this.c[o],Ye(i))}this.a.length=0,this.c=null,1==this.state&&(this.g.forEach(Ze),this.g.length=0),this.i&&Ye(this.i),this.state=5,this.s(),this.l.forEach(Ze),this.l.length=0,rd.prototype.ka.call(this)},Vv.prototype.Y=function(){return-1==this.o.Lg?null:this.j.canvas},Vv.prototype.bb=function(){return this.a.join("/")+"/"+this.u},Vv.prototype.load=function(){var r=0,n=!1;0==this.state&&pd(this,1),1==this.state&&this.a.forEach(function(e){var o,i=this.c[e];0==i.state?(i.Pg(this.S),i.load()):3==i.state?n=!0:4==i.state&&W(this.a,e),1==i.state&&(o=g(i,"change",function(){var t=i.getState();2!=t&&3!=t||(--r,Ze(o),W(this.g,o),3==t&&(W(this.a,e),n=!0),r)||pd(this,0<this.a.length?2:3)}.bind(this)),this.g.push(o),++r)}.bind(this)),r||setTimeout(function(){pd(this,0<this.a.length?2:n?3:4)}.bind(this),0)},e(zv,rd),zv.prototype.ka=function(){this.g=null,this.c={},this.state=5,this.s(),rd.prototype.ka.call(this)},e(Hv,pv),Hv.prototype.Nc=function(t,e,o,i,r){var n=this.Sb(t,e,o);return this.a.b.hasOwnProperty(n)?this.a.get(n):(i=new Vv(t=[t,e,o],void 0!==(o=(e=rv(this,t,r))?this.tileUrlFunction(e,i,r):void 0)?0:4,void 0!==o?o:"",this.g,this.tileLoadFunction,e,this.tileUrlFunction,this.tileGrid,this.Ta(r),this.v,i,r,this.tileClass,this.Li.bind(this)),this.a.set(n,i),i)},Hv.prototype.Ta=function(t){var e=t.mb,o=this.f[e];return o||(o=this.tileGrid,o=this.f[e]=Oe(t,void 0,o?o.gb(o.minZoom):void 0)),o},Hv.prototype.nb=function(t){return null==t?pv.prototype.nb.call(this,t):t},Hv.prototype.Xd=function(t,e,o){return t=at(this.Ta(o).gb(t)),[Math.round(t[0]*e),Math.round(t[1]*e)]},e(Zv,Ee),Zv.prototype.l=function(){return this.o},e(k,A),k.prototype.Mk=function(){return this.f},e(Yv,A),e(_v,sd),_v.prototype.Y=function(){var t,e;return this.a||(t=sd.prototype.Y.call(this),2==this.state?256==t.width&&256==t.height?this.a=t:((e=xo(256,256)).drawImage(t,0,0),this.a=e.canvas):t)};var $v="default",Qv="truncated";function tm(t,e){this.b=e,this.a=[{x:0,y:0,width:t,height:t}],this.c={},this.i=xo(t,t),this.f=this.i.canvas}function em(t,e,o,i){e=[e,1],0<o.width&&0<o.height&&e.push(o),0<i.width&&0<i.height&&e.push(i),t.a.splice.apply(t.a,e)}function om(t){this.a=void 0!==(t=t||{}).initialSize?t.initialSize:256,this.i=void 0!==t.maxSize?t.maxSize:void 0!==yi?yi:2048,this.b=void 0!==t.space?t.space:1,this.f=[new tm(this.a,this.b)],this.c=this.a,this.g=[new tm(this.c,this.b)]}function im(t,e,o,i,r,n,p){for(var s=e?t.g:t.f,a=0,l=s.length;a<l;++a){var h=s[a];if(h=h.add(o,i,r,n,p))return h;h||a!==l-1||(e?(h=Math.min(2*t.c,t.i),t.c=h):(h=Math.min(2*t.a,t.i),t.a=h),h=new tm(h,t.b),s.push(h),++l)}return null}return tm.prototype.get=function(t){return this.c[t]||null},tm.prototype.add=function(t,e,o,i,r){for(var n=0,p=this.a.length;n<p;++n){var s=this.a[n];if(s.width>=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<o;++e)Ze(t[e]);else Ze(t)}),eo.prototype.changed=eo.prototype.s,eo.prototype.dispatchEvent=eo.prototype.b,eo.prototype.getRevision=eo.prototype.L,eo.prototype.on=eo.prototype.J,eo.prototype.un=eo.prototype.K,t("ol.Overlay",sa),sa.prototype.getElement=sa.prototype.Rd,sa.prototype.getId=sa.prototype.Jm,sa.prototype.getMap=sa.prototype.Me,sa.prototype.getOffset=sa.prototype.Dh,sa.prototype.getPosition=sa.prototype.Yh,sa.prototype.getPositioning=sa.prototype.Eh,sa.prototype.setElement=sa.prototype.lj,sa.prototype.setOffset=sa.prototype.rj,sa.prototype.setPosition=sa.prototype.Ne,sa.prototype.setPositioning=sa.prototype.uj,t("ol.proj.METERS_PER_UNIT",zt),t("ol.proj.setProj4",function(t){Ht=t}),t("ol.proj.getPointResolution",he),t("ol.proj.addEquivalentProjections",ye),t("ol.proj.addProjection",ue),t("ol.proj.addCoordinateTransforms",fe),t("ol.proj.fromLonLat",function(t,e){return Se(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}),t("ol.proj.toLonLat",function(t,e){return Se(t,void 0!==e?e:"EPSG:3857","EPSG:4326")}),t("ol.proj.get",ge),t("ol.proj.equivalent",ve),t("ol.proj.getTransform",me),t("ol.proj.transform",Se),t("ol.proj.transformExtent",Pe),t("ol.render.toContext",function(t,e){var o=t.canvas,i=e||{};return e=i.pixelRatio||Qo,(i=i.size)&&(o.width=i[0]*e,o.height=i[1]*e,o.style.width=i[0]+"px",o.style.height=i[1]+"px"),new hp(t,e,o=[0,0,o.width,o.height],qn(Kn(),e,e),0)}),t("ol.size.toSize",at),t("ol.Sphere",Vt),Vt.prototype.geodesicArea=Vt.prototype.a,Vt.prototype.haversineDistance=Vt.prototype.b,rd.prototype.getTileCoord=rd.prototype.f,t("ol.tilegrid.createXYZ",Ie),zv.prototype.getFormat=zv.prototype.Lm,zv.prototype.getFeatures=zv.prototype.Km,zv.prototype.getProjection=zv.prototype.Mm,zv.prototype.setFeatures=zv.prototype.mj,zv.prototype.setProjection=zv.prototype.ig,zv.prototype.setLoader=zv.prototype.Pg,t("ol.View",l),l.prototype.getAnimating=l.prototype.Ic,l.prototype.getInteracting=l.prototype.Rk,l.prototype.cancelAnimations=l.prototype.ed,l.prototype.constrainCenter=l.prototype.Ec,l.prototype.getCenter=l.prototype.wa,l.prototype.calculateExtent=l.prototype.dd,l.prototype.getMaxResolution=l.prototype.Nm,l.prototype.getMinResolution=l.prototype.Pm,l.prototype.getMaxZoom=l.prototype.Om,l.prototype.setMaxZoom=l.prototype.eq,l.prototype.getMinZoom=l.prototype.Qm,l.prototype.setMinZoom=l.prototype.fq,l.prototype.getProjection=l.prototype.Rm,l.prototype.getResolution=l.prototype.Pa,l.prototype.getResolutions=l.prototype.Sm,l.prototype.getResolutionForExtent=l.prototype.ze,l.prototype.getRotation=l.prototype.Qa,l.prototype.getZoom=l.prototype.Hh,l.prototype.getZoomForResolution=l.prototype.Ce,l.prototype.fit=l.prototype.Qf,l.prototype.centerOn=l.prototype.uk,l.prototype.setCenter=l.prototype.ob,l.prototype.setResolution=l.prototype.Vc,l.prototype.setRotation=l.prototype.Oe,l.prototype.setZoom=l.prototype.lq,t("ol.xml.getAllTextContent",Wa),t("ol.xml.parse",za),Np.prototype.getGL=Np.prototype.Wo,Np.prototype.useProgram=Np.prototype.Qc,t("ol.tilegrid.TileGrid",Ee),Ee.prototype.forEachTileCoord=Ee.prototype.Rf,Ee.prototype.getMaxZoom=Ee.prototype.Ti,Ee.prototype.getMinZoom=Ee.prototype.Ui,Ee.prototype.getOrigin=Ee.prototype.Pc,Ee.prototype.getResolution=Ee.prototype.Da,Ee.prototype.getResolutions=Ee.prototype.Vi,Ee.prototype.getTileCoordExtent=Ee.prototype.Aa,Ee.prototype.getTileCoordForCoordAndResolution=Ee.prototype.Be,Ee.prototype.getTileCoordForCoordAndZ=Ee.prototype.bg,Ee.prototype.getTileSize=Ee.prototype.gb,Ee.prototype.getZForResolution=Ee.prototype.tc,t("ol.tilegrid.WMTS",Zv),Zv.prototype.getMatrixIds=Zv.prototype.l,t("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",qv),t("ol.style.AtlasManager",om),t("ol.style.Circle",Fa),Fa.prototype.setRadius=Fa.prototype.Uc,t("ol.style.Fill",Na),Na.prototype.getColor=Na.prototype.i,Na.prototype.setColor=Na.prototype.c,t("ol.style.Icon",vy),vy.prototype.getAnchor=vy.prototype.Hc,vy.prototype.getColor=vy.prototype.Lo,vy.prototype.getImage=vy.prototype.Y,vy.prototype.getOrigin=vy.prototype.Oc,vy.prototype.getSrc=vy.prototype.Mo,vy.prototype.getSize=vy.prototype.ic,t("ol.style.Image",ja),ja.prototype.getOpacity=ja.prototype.Ze,ja.prototype.getRotateWithView=ja.prototype.$e,ja.prototype.getRotation=ja.prototype.af,ja.prototype.getScale=ja.prototype.bf,ja.prototype.getSnapToPixel=ja.prototype.Ae,ja.prototype.setOpacity=ja.prototype.td,ja.prototype.setRotation=ja.prototype.cf,ja.prototype.setScale=ja.prototype.ud,t("ol.style.RegularShape",La),La.prototype.getAnchor=La.prototype.Hc,La.prototype.getAngle=La.prototype.Pi,La.prototype.getFill=La.prototype.Fa,La.prototype.getImage=La.prototype.Y,La.prototype.getOrigin=La.prototype.Oc,La.prototype.getPoints=La.prototype.Qi,La.prototype.getRadius=La.prototype.Ri,La.prototype.getRadius2=La.prototype.Fh,La.prototype.getSize=La.prototype.ic,La.prototype.getStroke=La.prototype.Ga,t("ol.style.Stroke",as),as.prototype.getColor=as.prototype.No,as.prototype.getLineCap=as.prototype.Vk,as.prototype.getLineDash=as.prototype.Oo,as.prototype.getLineDashOffset=as.prototype.Wk,as.prototype.getLineJoin=as.prototype.Xk,as.prototype.getMiterLimit=as.prototype.bl,as.prototype.getWidth=as.prototype.Po,as.prototype.setColor=as.prototype.Qo,as.prototype.setLineCap=as.prototype.aq,as.prototype.setLineDashOffset=as.prototype.bq,as.prototype.setLineJoin=as.prototype.cq,as.prototype.setMiterLimit=as.prototype.gq,as.prototype.setWidth=as.prototype.jq,t("ol.style.Style",Ia),Ia.prototype.getGeometry=Ia.prototype.V,Ia.prototype.getGeometryFunction=Ia.prototype.Pk,Ia.prototype.getFill=Ia.prototype.Fa,Ia.prototype.setFill=Ia.prototype.pf,Ia.prototype.getImage=Ia.prototype.Y,Ia.prototype.setImage=Ia.prototype.Og,Ia.prototype.getStroke=Ia.prototype.Ga,Ia.prototype.setStroke=Ia.prototype.qf,Ia.prototype.getText=Ia.prototype.Na,Ia.prototype.setText=Ia.prototype.xd,Ia.prototype.getZIndex=Ia.prototype.Ba,Ia.prototype.setGeometry=Ia.prototype.Ra,Ia.prototype.setZIndex=Ia.prototype.Vb,t("ol.style.Text",my),my.prototype.getFont=my.prototype.Nk,my.prototype.getOffsetX=my.prototype.cl,my.prototype.getOffsetY=my.prototype.dl,my.prototype.getFill=my.prototype.Fa,my.prototype.getRotateWithView=my.prototype.Ro,my.prototype.getRotation=my.prototype.So,my.prototype.getScale=my.prototype.To,my.prototype.getStroke=my.prototype.Ga,my.prototype.getText=my.prototype.Na,my.prototype.getTextAlign=my.prototype.nl,my.prototype.getTextBaseline=my.prototype.ol,my.prototype.setFont=my.prototype.nj,my.prototype.setOffsetX=my.prototype.sj,my.prototype.setOffsetY=my.prototype.tj,my.prototype.setFill=my.prototype.pf,my.prototype.setRotation=my.prototype.Uo,my.prototype.setScale=my.prototype.Si,my.prototype.setStroke=my.prototype.qf,my.prototype.setText=my.prototype.xd,my.prototype.setTextAlign=my.prototype.vj,my.prototype.setTextBaseline=my.prototype.hq,t("ol.source.BingMaps",C),t("ol.source.BingMaps.TOS_ATTRIBUTION",av),C.prototype.getApiKey=C.prototype.T,C.prototype.getImagerySet=C.prototype.fa,t("ol.source.CartoDB",L),L.prototype.getConfig=L.prototype.Kk,L.prototype.updateConfig=L.prototype.tq,L.prototype.setConfig=L.prototype.Xp,t("ol.source.Cluster",R),R.prototype.getDistance=R.prototype.$n,R.prototype.getSource=R.prototype.ao,R.prototype.setDistance=R.prototype.Yp,t("ol.source.Image",j0),t("ol.source.ImageArcGISRest",uv),uv.prototype.getParams=uv.prototype.co,uv.prototype.getImageLoadFunction=uv.prototype.bo,uv.prototype.getUrl=uv.prototype.eo,uv.prototype.setImageLoadFunction=uv.prototype.fo,uv.prototype.setUrl=uv.prototype.ho,uv.prototype.updateParams=uv.prototype.io,t("ol.source.ImageCanvas",O0),t("ol.source.ImageMapGuide",cv),cv.prototype.getParams=cv.prototype.ko,cv.prototype.getImageLoadFunction=cv.prototype.jo,cv.prototype.updateParams=cv.prototype.mo,cv.prototype.setImageLoadFunction=cv.prototype.lo,t("ol.source.ImageStatic",fv),t("ol.source.ImageVector",D0),D0.prototype.getSource=D0.prototype.no,D0.prototype.getStyle=D0.prototype.oo,D0.prototype.getStyleFunction=D0.prototype.po,D0.prototype.setStyle=D0.prototype.Ii,t("ol.source.ImageWMS",dv),dv.prototype.getGetFeatureInfoUrl=dv.prototype.so,dv.prototype.getParams=dv.prototype.uo,dv.prototype.getImageLoadFunction=dv.prototype.to,dv.prototype.getUrl=dv.prototype.vo,dv.prototype.setImageLoadFunction=dv.prototype.wo,dv.prototype.setUrl=dv.prototype.xo,dv.prototype.updateParams=dv.prototype.yo,t("ol.source.OSM",bv),t("ol.source.OSM.ATTRIBUTION",xv),t("ol.source.Raster",Tv),Tv.prototype.setOperation=Tv.prototype.v,t("ol.source.Source",hg),hg.prototype.getAttributions=hg.prototype.ya,hg.prototype.getLogo=hg.prototype.xa,hg.prototype.getProjection=hg.prototype.za,hg.prototype.refresh=hg.prototype.sa,hg.prototype.setAttributions=hg.prototype.ua,t("ol.source.Stamen",Lv),t("ol.source.Tile",ev),ev.prototype.getTileGrid=ev.prototype.ab,t("ol.source.TileArcGISRest",F),F.prototype.getParams=F.prototype.C,F.prototype.updateParams=F.prototype.B,t("ol.source.TileDebug",kv),t("ol.source.TileImage",A),A.prototype.setRenderReprojectionEdges=A.prototype.Pb,A.prototype.setTileGridForProjection=A.prototype.Qb,t("ol.source.TileJSON",N),N.prototype.getTileJSON=N.prototype.pl,t("ol.source.TileUTFGrid",Dv),Dv.prototype.getTemplate=Dv.prototype.ml,Dv.prototype.forDataAtCoordinateAndResolution=Dv.prototype.zk,t("ol.source.TileWMS",I),I.prototype.getGetFeatureInfoUrl=I.prototype.Fo,I.prototype.getParams=I.prototype.Go,I.prototype.updateParams=I.prototype.Ho,pv.prototype.getTileLoadFunction=pv.prototype.pb,pv.prototype.getTileUrlFunction=pv.prototype.qb,pv.prototype.getUrls=pv.prototype.rb,pv.prototype.setTileLoadFunction=pv.prototype.vb,pv.prototype.setTileUrlFunction=pv.prototype.cb,pv.prototype.setUrl=pv.prototype.jb,pv.prototype.setUrls=pv.prototype.eb,t("ol.source.Vector",P),P.prototype.addFeature=P.prototype.yb,P.prototype.addFeatures=P.prototype.cd,P.prototype.forEachFeature=P.prototype.sh,P.prototype.forEachFeatureInExtent=P.prototype.$b,P.prototype.forEachFeatureIntersectingExtent=P.prototype.th,P.prototype.getFeaturesCollection=P.prototype.Ah,P.prototype.getFeatures=P.prototype.Xe,P.prototype.getFeaturesAtCoordinate=P.prototype.zh,P.prototype.getFeaturesInExtent=P.prototype.Uf,P.prototype.getClosestFeatureToCoordinate=P.prototype.vh,P.prototype.getExtent=P.prototype.G,P.prototype.getFeatureById=P.prototype.yh,P.prototype.getFormat=P.prototype.Mi,P.prototype.getUrl=P.prototype.Ni,P.prototype.removeFeature=P.prototype.Gb,t("ol.source.VectorTile",Hv),t("ol.source.WMTS",k),k.prototype.getDimensions=k.prototype.Mk,k.prototype.getFormat=k.prototype.Io,k.prototype.getLayer=k.prototype.Jo,k.prototype.getMatrixSet=k.prototype.$k,k.prototype.getRequestEncoding=k.prototype.kl,k.prototype.getStyle=k.prototype.Ko,k.prototype.getVersion=k.prototype.rl,k.prototype.updateDimensions=k.prototype.uq,t("ol.source.WMTS.optionsFromCapabilities",function(t,r){var e=V(t.Contents.Layer,function(t){return t.Identifier==r.layer});if(null===e)return null;var o,i,n=t.Contents.TileMatrixSet,p=1<e.TileMatrixSetLink.length?"projection"in r?H(e.TileMatrixSetLink,function(e){var t=V(n,function(t){return t.Identifier==e.TileMatrixSet}).SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"),o=ge(t),i=ge(r.projection);return o&&i?ve(o,i):t==r.projection}):H(e.TileMatrixSetLink,function(t){return t.TileMatrixSet==r.matrixSet}):0,s=e.TileMatrixSetLink[p=p<0?0:p].TileMatrixSet,a=e.TileMatrixSetLink[p].TileMatrixSetLimits,l=e.Format[0],h=("format"in r&&(l=r.format),p=H(e.Style,function(t){return"style"in r?t.Title==r.style:t.isDefault}),p=e.Style[p=p<0?0:p].Identifier,{}),y=("Dimension"in e&&e.Dimension.forEach(function(t){var e=t.Identifier,o=t.Default;void 0===o&&(o=t.Value[0]),h[e]=o}),V(t.Contents.TileMatrixSet,function(t){return t.Identifier==s})),u="projection"in r?ge(r.projection):ge(y.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3")),c=e.WGS84BoundingBox,f=(a=qv(y,i=void 0!==c&&(o=ge("EPSG:4326").G(),o=c[0]==o[0]&&c[2]==o[2],i=Pe(c,"EPSG:4326",u),c=u.G())&&!ct(c,i)?void 0:i,a),[]),y=void 0!==(y=r.requestEncoding)?y:"";if("OperationsMetadata"in t&&"GetTile"in t.OperationsMetadata)for(i=0,c=(t=t.OperationsMetadata.GetTile.DCP.HTTP.Get).length;i<c;++i){var d=V(t[i].Constraint,function(t){return"GetEncoding"==t.name}).AllowedValues.Value;if("KVP"!==(y=""===y?d[0]:y))break;G(d,"KVP")&&f.push(t[i].href)}return f.length||(y="REST",e.ResourceURL.forEach(function(t){"tile"===t.resourceType&&(l=t.format,f.push(t.template))})),{urls:f,layer:r.layer,matrixSet:s,format:l,projection:u,requestEncoding:y,tileGrid:a,style:p,dimensions:h,wrapX:o,crossOrigin:r.crossOrigin}}),t("ol.source.XYZ",j),t("ol.source.Zoomify",Yv),ac.prototype.getExtent=ac.prototype.G,ac.prototype.getId=ac.prototype.Wn,ac.prototype.getGeometry=ac.prototype.V,ac.prototype.getProperties=ac.prototype.Xn,ac.prototype.getType=ac.prototype.U,t("ol.render.VectorContext",lp),ea.prototype.setStyle=ea.prototype.rd,ea.prototype.drawGeometry=ea.prototype.zb,ea.prototype.drawFeature=ea.prototype.te,hp.prototype.drawCircle=hp.prototype.Zb,hp.prototype.setStyle=hp.prototype.rd,hp.prototype.drawGeometry=hp.prototype.zb,hp.prototype.drawFeature=hp.prototype.te,t("ol.proj.common.add",Me),t("ol.proj.Projection",Zt),Zt.prototype.getCode=Zt.prototype.Jk,Zt.prototype.getExtent=Zt.prototype.G,Zt.prototype.getUnits=Zt.prototype.Un,Zt.prototype.getMetersPerUnit=Zt.prototype.sc,Zt.prototype.getWorldExtent=Zt.prototype.tl,Zt.prototype.isGlobal=Zt.prototype.dm,Zt.prototype.setGlobal=Zt.prototype.$p,Zt.prototype.setExtent=Zt.prototype.Vn,Zt.prototype.setWorldExtent=Zt.prototype.kq,Zt.prototype.setGetPointResolution=Zt.prototype.Zp,t("ol.proj.Units.METERS_PER_UNIT",zt),t("ol.layer.Base",Nn),Nn.prototype.getExtent=Nn.prototype.G,Nn.prototype.getMaxResolution=Nn.prototype.fc,Nn.prototype.getMinResolution=Nn.prototype.gc,Nn.prototype.getOpacity=Nn.prototype.hc,Nn.prototype.getVisible=Nn.prototype.Mb,Nn.prototype.getZIndex=Nn.prototype.Ba,Nn.prototype.setExtent=Nn.prototype.vc,Nn.prototype.setMaxResolution=Nn.prototype.Ac,Nn.prototype.setMinResolution=Nn.prototype.Bc,Nn.prototype.setOpacity=Nn.prototype.wc,Nn.prototype.setVisible=Nn.prototype.xc,Nn.prototype.setZIndex=Nn.prototype.Vb,t("ol.layer.Group",kn),kn.prototype.getLayers=kn.prototype.qd,kn.prototype.setLayers=kn.prototype.xi,t("ol.layer.Heatmap",M),M.prototype.getBlur=M.prototype.uh,M.prototype.getGradient=M.prototype.Bh,M.prototype.getRadius=M.prototype.yi,M.prototype.setBlur=M.prototype.jj,M.prototype.setGradient=M.prototype.pj,M.prototype.setRadius=M.prototype.Uc,t("ol.layer.Image",G0),G0.prototype.getSource=G0.prototype.ha,t("ol.layer.Layer",o),o.prototype.getSource=o.prototype.ha,o.prototype.setSource=o.prototype.Wc,t("ol.layer.Tile",T),T.prototype.getPreload=T.prototype.Ud,T.prototype.getSource=T.prototype.ha,T.prototype.setPreload=T.prototype.zi,T.prototype.getUseInterimTilesOnError=T.prototype.kd,T.prototype.setUseInterimTilesOnError=T.prototype.Ai,t("ol.layer.Vector",S),S.prototype.getSource=S.prototype.ha,S.prototype.getStyle=S.prototype.D,S.prototype.getStyleFunction=S.prototype.C,S.prototype.setStyle=S.prototype.g,t("ol.layer.VectorTile",E),E.prototype.getPreload=E.prototype.Ud,E.prototype.getUseInterimTilesOnError=E.prototype.kd,E.prototype.setPreload=E.prototype.Bi,E.prototype.setUseInterimTilesOnError=E.prototype.Ci,t("ol.interaction.DoubleClickZoom",Ir),t("ol.interaction.DoubleClickZoom.handleEvent",kr),t("ol.interaction.DragAndDrop",ld),t("ol.interaction.DragAndDrop.handleEvent",tr),t("ol.interaction.DragBox",pn),pn.prototype.getGeometry=pn.prototype.V,t("ol.interaction.DragPan",qr),t("ol.interaction.DragRotate",$r),t("ol.interaction.DragRotateAndZoom",gd),t("ol.interaction.DragZoom",dn),t("ol.interaction.Draw",vg),t("ol.interaction.Draw.handleEvent",mg),vg.prototype.removeLastPoint=vg.prototype.Op,vg.prototype.finishDrawing=vg.prototype.Pd,vg.prototype.extend=vg.prototype.vn,t("ol.interaction.Draw.createRegularPolygon",function(r,n){return function(t,e){var o=t[0],i=(t=t[1],Math.sqrt(Yi(o,t)));return Sr(e=e||wr(new w(o),r),o,i,n||Math.atan((t[1]-o[1])/(t[0]-o[0]))),e}}),t("ol.interaction.Draw.createBox",function(){return function(t,e){return t=lt(t),(e=e||new s(null)).ma([[Et(t),At(t),Nt(t),Ft(t),Et(t)]]),e}}),t("ol.interaction.Extent",Fg),Fg.prototype.getExtent=Fg.prototype.G,Fg.prototype.setExtent=Fg.prototype.g,Kg.prototype.extent_=Kg.prototype.b,t("ol.interaction.Interaction",Lr),Lr.prototype.getActive=Lr.prototype.c,Lr.prototype.getMap=Lr.prototype.f,Lr.prototype.setActive=Lr.prototype.Ha,t("ol.interaction.KeyboardPan",gn),t("ol.interaction.KeyboardPan.handleEvent",vn),t("ol.interaction.KeyboardZoom",mn),t("ol.interaction.KeyboardZoom.handleEvent",bn),t("ol.interaction.Modify",Vg),t("ol.interaction.Modify.handleEvent",Yg),Vg.prototype.removePoint=Vg.prototype.hj,t("ol.interaction.MouseWheelZoom",xn),t("ol.interaction.MouseWheelZoom.handleEvent",wn),xn.prototype.setMouseAnchor=xn.prototype.T,t("ol.interaction.PinchRotate",Mn),t("ol.interaction.PinchZoom",Cn),t("ol.interaction.Pointer",zr),t("ol.interaction.Pointer.handleEvent",Zr),t("ol.interaction.Select",e0),e0.prototype.getFeatures=e0.prototype.Gn,e0.prototype.getHitTolerance=e0.prototype.Hn,e0.prototype.getLayer=e0.prototype.In,t("ol.interaction.Select.handleEvent",o0),e0.prototype.setHitTolerance=e0.prototype.Kn,t("ol.interaction.Snap",n0),n0.prototype.addFeature=n0.prototype.yb,n0.prototype.removeFeature=n0.prototype.Gb,t("ol.interaction.Translate",l0),l0.prototype.getHitTolerance=l0.prototype.B,l0.prototype.setHitTolerance=l0.prototype.I,t("ol.geom.Circle",w),w.prototype.getCenter=w.prototype.wa,w.prototype.getRadius=w.prototype.pd,w.prototype.getType=w.prototype.U,w.prototype.intersectsExtent=w.prototype.Xa,w.prototype.setCenter=w.prototype.ob,w.prototype.setCenterAndRadius=w.prototype.Ng,w.prototype.setRadius=w.prototype.Uc,w.prototype.transform=w.prototype.tb,t("ol.geom.Geometry",or),or.prototype.getClosestPoint=or.prototype.Ab,or.prototype.intersectsCoordinate=or.prototype.sb,or.prototype.getExtent=or.prototype.G,or.prototype.simplify=or.prototype.Rb,or.prototype.transform=or.prototype.tb,t("ol.geom.GeometryCollection",zl),zl.prototype.getGeometries=zl.prototype.Vf,zl.prototype.getType=zl.prototype.U,zl.prototype.intersectsExtent=zl.prototype.Xa,zl.prototype.setGeometries=zl.prototype.oj,zl.prototype.applyTransform=zl.prototype.Dc,t("ol.geom.LinearRing",lr),lr.prototype.getArea=lr.prototype.qn,lr.prototype.getCoordinates=lr.prototype.X,lr.prototype.getType=lr.prototype.U,lr.prototype.setCoordinates=lr.prototype.ma,t("ol.geom.LineString",m),m.prototype.appendCoordinate=m.prototype.mk,m.prototype.forEachSegment=m.prototype.Ck,m.prototype.getCoordinateAtM=m.prototype.nn,m.prototype.getCoordinates=m.prototype.X,m.prototype.getCoordinateAt=m.prototype.wh,m.prototype.getLength=m.prototype.pn,m.prototype.getType=m.prototype.U,m.prototype.intersectsExtent=m.prototype.Xa,m.prototype.setCoordinates=m.prototype.ma,t("ol.geom.MultiLineString",a),a.prototype.appendLineString=a.prototype.nk,a.prototype.getCoordinateAtM=a.prototype.rn,a.prototype.getCoordinates=a.prototype.X,a.prototype.getLineString=a.prototype.Yk,a.prototype.getLineStrings=a.prototype.gd,a.prototype.getType=a.prototype.U,a.prototype.intersectsExtent=a.prototype.Xa,a.prototype.setCoordinates=a.prototype.ma,t("ol.geom.MultiPoint",f),f.prototype.appendPoint=f.prototype.qk,f.prototype.getCoordinates=f.prototype.X,f.prototype.getPoint=f.prototype.il,f.prototype.getPoints=f.prototype.Zd,f.prototype.getType=f.prototype.U,f.prototype.intersectsExtent=f.prototype.Xa,f.prototype.setCoordinates=f.prototype.ma,t("ol.geom.MultiPolygon",b),b.prototype.appendPolygon=b.prototype.rk,b.prototype.getArea=b.prototype.sn,b.prototype.getCoordinates=b.prototype.X,b.prototype.getInteriorPoints=b.prototype.Uk,b.prototype.getPolygon=b.prototype.jl,b.prototype.getPolygons=b.prototype.Td,b.prototype.getType=b.prototype.U,b.prototype.intersectsExtent=b.prototype.Xa,b.prototype.setCoordinates=b.prototype.ma,t("ol.geom.Point",p),p.prototype.getCoordinates=p.prototype.X,p.prototype.getType=p.prototype.U,p.prototype.intersectsExtent=p.prototype.Xa,p.prototype.setCoordinates=p.prototype.ma,t("ol.geom.Polygon",s),s.prototype.appendLinearRing=s.prototype.pk,s.prototype.getArea=s.prototype.tn,s.prototype.getCoordinates=s.prototype.X,s.prototype.getInteriorPoint=s.prototype.Tk,s.prototype.getLinearRingCount=s.prototype.Zk,s.prototype.getLinearRing=s.prototype.Ch,s.prototype.getLinearRings=s.prototype.Sd,s.prototype.getType=s.prototype.U,s.prototype.intersectsExtent=s.prototype.Xa,s.prototype.setCoordinates=s.prototype.ma,t("ol.geom.Polygon.circular",br),t("ol.geom.Polygon.fromExtent",xr),t("ol.geom.Polygon.fromCircle",wr),t("ol.geom.SimpleGeometry",i),i.prototype.getFirstCoordinate=i.prototype.ac,i.prototype.getLastCoordinate=i.prototype.bc,i.prototype.getLayout=i.prototype.cc,i.prototype.applyTransform=i.prototype.Dc,t("ol.format.EsriJSON",ml),ml.prototype.readFeature=ml.prototype.Tb,ml.prototype.readFeatures=ml.prototype.Oa,ml.prototype.readGeometry=ml.prototype.Sc,ml.prototype.readProjection=ml.prototype.kb,ml.prototype.writeGeometry=ml.prototype.$c,ml.prototype.writeGeometryObject=ml.prototype.je,ml.prototype.writeFeature=ml.prototype.Bd,ml.prototype.writeFeatureObject=ml.prototype.Zc,ml.prototype.writeFeatures=ml.prototype.Wb,ml.prototype.writeFeaturesObject=ml.prototype.he,t("ol.format.Feature",nl),t("ol.format.filter.and",Vl),t("ol.format.filter.or",function(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Kl,e))}),t("ol.format.filter.not",function(t){return new Gl(t)}),t("ol.format.filter.bbox",Xl),t("ol.format.filter.intersects",function(t,e,o){return new Nl(t,e,o)}),t("ol.format.filter.within",function(t,e,o){return new Wl(t,e,o)}),t("ol.format.filter.equalTo",function(t,e,o){return new jl(t,e,o)}),t("ol.format.filter.notEqualTo",function(t,e,o){return new Bl(t,e,o)}),t("ol.format.filter.lessThan",function(t,e){return new Dl(t,e)}),t("ol.format.filter.lessThanOrEqualTo",function(t,e){return new Ul(t,e)}),t("ol.format.filter.greaterThan",function(t,e){return new Ll(t,e)}),t("ol.format.filter.greaterThanOrEqualTo",function(t,e){return new Rl(t,e)}),t("ol.format.filter.isNull",function(t){return new Ol(t)}),t("ol.format.filter.between",function(t,e,o){return new Il(t,e,o)}),t("ol.format.filter.like",function(t,e,o,i,r,n){return new kl(t,e,o,i,r,n)}),t("ol.format.filter.during",function(t,e,o){return new Al(t,e,o)}),t("ol.format.GeoJSON",Zl),Zl.prototype.readFeature=Zl.prototype.Tb,Zl.prototype.readFeatures=Zl.prototype.Oa,Zl.prototype.readGeometry=Zl.prototype.Sc,Zl.prototype.readProjection=Zl.prototype.kb,Zl.prototype.writeFeature=Zl.prototype.Bd,Zl.prototype.writeFeatureObject=Zl.prototype.Zc,Zl.prototype.writeFeatures=Zl.prototype.Wb,Zl.prototype.writeFeaturesObject=Zl.prototype.he,Zl.prototype.writeGeometry=Zl.prototype.$c,Zl.prototype.writeGeometryObject=Zl.prototype.je,t("ol.format.GML",x),x.prototype.writeFeatures=x.prototype.Wb,x.prototype.writeFeaturesNode=x.prototype.Xb,t("ol.format.GML2",yh),t("ol.format.GML3",x),x.prototype.writeGeometryNode=x.prototype.ie,x.prototype.writeFeatures=x.prototype.Wb,x.prototype.writeFeaturesNode=x.prototype.Xb,_l.prototype.readFeatures=_l.prototype.Oa,t("ol.format.GPX",ch),ch.prototype.readFeature=ch.prototype.Tb,ch.prototype.readFeatures=ch.prototype.Oa,ch.prototype.readProjection=ch.prototype.kb,ch.prototype.writeFeatures=ch.prototype.Wb,ch.prototype.writeFeaturesNode=ch.prototype.Xb,t("ol.format.IGC",Jh),Jh.prototype.readFeature=Jh.prototype.Tb,Jh.prototype.readFeatures=Jh.prototype.Oa,Jh.prototype.readProjection=Jh.prototype.kb,t("ol.format.KML",by),by.prototype.readFeature=by.prototype.Tb,by.prototype.readFeatures=by.prototype.Oa,by.prototype.readName=by.prototype.Cp,by.prototype.readNetworkLinks=by.prototype.Dp,by.prototype.readRegion=by.prototype.Gp,by.prototype.readRegionFromNode=by.prototype.lf,by.prototype.readProjection=by.prototype.kb,by.prototype.writeFeatures=by.prototype.Wb,by.prototype.writeFeaturesNode=by.prototype.Xb,t("ol.format.MVT",lc),lc.prototype.readFeatures=lc.prototype.Oa,lc.prototype.readProjection=lc.prototype.kb,lc.prototype.setLayers=lc.prototype.mn,t("ol.format.OSMXML",hc),hc.prototype.readFeatures=hc.prototype.Oa,hc.prototype.readProjection=hc.prototype.kb,t("ol.format.Polyline",Fc),t("ol.format.Polyline.encodeDeltas",Nc),t("ol.format.Polyline.decodeDeltas",Ic),t("ol.format.Polyline.encodeFloats",kc),t("ol.format.Polyline.decodeFloats",Oc),Fc.prototype.readFeature=Fc.prototype.Tb,Fc.prototype.readFeatures=Fc.prototype.Oa,Fc.prototype.readGeometry=Fc.prototype.Sc,Fc.prototype.readProjection=Fc.prototype.kb,Fc.prototype.writeGeometry=Fc.prototype.$c,t("ol.format.TopoJSON",Dc),Dc.prototype.readFeatures=Dc.prototype.Oa,Dc.prototype.readProjection=Dc.prototype.kb,t("ol.format.WFS",Wc),Wc.prototype.readFeatures=Wc.prototype.Oa,Wc.prototype.readTransactionResponse=Wc.prototype.j,Wc.prototype.readFeatureCollectionMetadata=Wc.prototype.g,t("ol.format.WFS.writeFilter",function(t){var e=Ka("http://www.opengis.net/ogc","Filter");return ol({node:e},lf,_a(t.kc),[t],[]),e}),Wc.prototype.writeGetFeature=Wc.prototype.l,Wc.prototype.writeTransaction=Wc.prototype.v,Wc.prototype.readProjection=Wc.prototype.kb,t("ol.format.WKT",hf),hf.prototype.readFeature=hf.prototype.Tb,hf.prototype.readFeatures=hf.prototype.Oa,hf.prototype.readGeometry=hf.prototype.Sc,hf.prototype.writeFeature=hf.prototype.Bd,hf.prototype.writeFeatures=hf.prototype.Wb,hf.prototype.writeGeometry=hf.prototype.$c,t("ol.format.WMSCapabilities",gf),t("ol.format.WMSGetFeatureInfo",Uf),Uf.prototype.readFeatures=Uf.prototype.Oa,t("ol.format.WMTSCapabilities",Gf),t("ol.format.filter.And",Ml),t("ol.format.filter.Bbox",Tl),t("ol.format.filter.Comparison",El),t("ol.format.filter.ComparisonBinary",Cl),t("ol.format.filter.During",Al),t("ol.format.filter.EqualTo",jl),t("ol.format.filter.Filter",Sl),t("ol.format.filter.GreaterThan",Ll),t("ol.format.filter.GreaterThanOrEqualTo",Rl),t("ol.format.filter.Intersects",Nl),t("ol.format.filter.IsBetween",Il),t("ol.format.filter.IsLike",kl),t("ol.format.filter.IsNull",Ol),t("ol.format.filter.LessThan",Dl),t("ol.format.filter.LessThanOrEqualTo",Ul),t("ol.format.filter.Not",Gl),t("ol.format.filter.NotEqualTo",Bl),t("ol.format.filter.Or",Kl),t("ol.format.filter.Spatial",Fl),t("ol.format.filter.Within",Wl),t("ol.events.condition.altKeyOnly",function(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.altShiftKeysOnly",Or),t("ol.events.condition.always",tr),t("ol.events.condition.click",function(t){return"click"==t.type}),t("ol.events.condition.never",er),t("ol.events.condition.pointerMove",Ur),t("ol.events.condition.singleClick",Gr),t("ol.events.condition.doubleClick",function(t){return"dblclick"==t.type}),t("ol.events.condition.noModifierKeys",Br),t("ol.events.condition.platformModifierKeyOnly",function(t){return!(t=t.originalEvent).altKey&&($o?t.metaKey:t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.shiftKeyOnly",Kr),t("ol.events.condition.targetNotEditable",Wr),t("ol.events.condition.mouseOnly",Vr),t("ol.events.condition.primaryAction",Xr),t("ol.control.Attribution",Mo),t("ol.control.Attribution.render",To),Mo.prototype.getCollapsible=Mo.prototype.Um,Mo.prototype.setCollapsible=Mo.prototype.Xm,Mo.prototype.setCollapsed=Mo.prototype.Wm,Mo.prototype.getCollapsed=Mo.prototype.Tm,t("ol.control.Control",Po),Po.prototype.getMap=Po.prototype.g,Po.prototype.setTarget=Po.prototype.f,t("ol.control.FullScreen",ko),t("ol.control.MousePosition",Ko),t("ol.control.MousePosition.render",Wo),Ko.prototype.getCoordinateFormat=Ko.prototype.xh,Ko.prototype.getProjection=Ko.prototype.Zh,Ko.prototype.setCoordinateFormat=Ko.prototype.kj,Ko.prototype.setProjection=Ko.prototype.$h,t("ol.control.OverviewMap",ca),t("ol.control.OverviewMap.render",fa),ca.prototype.getCollapsible=ca.prototype.$m,ca.prototype.setCollapsible=ca.prototype.cn,ca.prototype.setCollapsed=ca.prototype.bn,ca.prototype.getCollapsed=ca.prototype.Zm,ca.prototype.getOverviewMap=ca.prototype.gl,t("ol.control.Rotate",Ro),t("ol.control.Rotate.render",Fo),t("ol.control.ScaleLine",va),va.prototype.getUnits=va.prototype.C,t("ol.control.ScaleLine.render",ba),va.prototype.setUnits=va.prototype.I,t("ol.control.Zoom",No),t("ol.control.ZoomSlider",Sa),t("ol.control.ZoomSlider.render",Ma),t("ol.control.ZoomToExtent",Ea),oo.prototype.changed=oo.prototype.s,oo.prototype.dispatchEvent=oo.prototype.b,oo.prototype.getRevision=oo.prototype.L,oo.prototype.on=oo.prototype.J,oo.prototype.un=oo.prototype.K,y.prototype.getKeys=y.prototype.O,y.prototype.getProperties=y.prototype.N,y.prototype.setProperties=y.prototype.H,y.prototype.unset=y.prototype.P,y.prototype.changed=y.prototype.s,y.prototype.dispatchEvent=y.prototype.b,y.prototype.getRevision=y.prototype.L,y.prototype.on=y.prototype.J,y.prototype.un=y.prototype.K,Aa.prototype.getKeys=Aa.prototype.O,Aa.prototype.getProperties=Aa.prototype.N,Aa.prototype.setProperties=Aa.prototype.H,Aa.prototype.unset=Aa.prototype.P,Aa.prototype.changed=Aa.prototype.s,Aa.prototype.dispatchEvent=Aa.prototype.b,Aa.prototype.getRevision=Aa.prototype.L,Aa.prototype.on=Aa.prototype.J,Aa.prototype.un=Aa.prototype.K,v.prototype.getKeys=v.prototype.O,v.prototype.getProperties=v.prototype.N,v.prototype.setProperties=v.prototype.H,v.prototype.unset=v.prototype.P,v.prototype.changed=v.prototype.s,v.prototype.dispatchEvent=v.prototype.b,v.prototype.getRevision=v.prototype.L,v.prototype.on=v.prototype.J,v.prototype.un=v.prototype.K,$f.prototype.getKeys=$f.prototype.O,$f.prototype.getProperties=$f.prototype.N,$f.prototype.setProperties=$f.prototype.H,$f.prototype.unset=$f.prototype.P,$f.prototype.changed=$f.prototype.s,$f.prototype.dispatchEvent=$f.prototype.b,$f.prototype.getRevision=$f.prototype.L,$f.prototype.on=$f.prototype.J,$f.prototype.un=$f.prototype.K,sd.prototype.getTileCoord=sd.prototype.f,u.prototype.getKeys=u.prototype.O,u.prototype.getProperties=u.prototype.N,u.prototype.setProperties=u.prototype.H,u.prototype.unset=u.prototype.P,u.prototype.changed=u.prototype.s,u.prototype.dispatchEvent=u.prototype.b,u.prototype.getRevision=u.prototype.L,u.prototype.on=u.prototype.J,u.prototype.un=u.prototype.K,sa.prototype.getKeys=sa.prototype.O,sa.prototype.getProperties=sa.prototype.N,sa.prototype.setProperties=sa.prototype.H,sa.prototype.unset=sa.prototype.P,sa.prototype.changed=sa.prototype.s,sa.prototype.dispatchEvent=sa.prototype.b,sa.prototype.getRevision=sa.prototype.L,sa.prototype.on=sa.prototype.J,sa.prototype.un=sa.prototype.K,Vv.prototype.getTileCoord=Vv.prototype.f,zv.prototype.getTileCoord=zv.prototype.f,l.prototype.getKeys=l.prototype.O,l.prototype.getProperties=l.prototype.N,l.prototype.setProperties=l.prototype.H,l.prototype.unset=l.prototype.P,l.prototype.changed=l.prototype.s,l.prototype.dispatchEvent=l.prototype.b,l.prototype.getRevision=l.prototype.L,l.prototype.on=l.prototype.J,l.prototype.un=l.prototype.K,Zv.prototype.forEachTileCoord=Zv.prototype.Rf,Zv.prototype.getMaxZoom=Zv.prototype.Ti,Zv.prototype.getMinZoom=Zv.prototype.Ui,Zv.prototype.getOrigin=Zv.prototype.Pc,Zv.prototype.getResolution=Zv.prototype.Da,Zv.prototype.getResolutions=Zv.prototype.Vi,Zv.prototype.getTileCoordExtent=Zv.prototype.Aa,Zv.prototype.getTileCoordForCoordAndResolution=Zv.prototype.Be,Zv.prototype.getTileCoordForCoordAndZ=Zv.prototype.bg,Zv.prototype.getTileSize=Zv.prototype.gb,Zv.prototype.getZForResolution=Zv.prototype.tc,La.prototype.getOpacity=La.prototype.Ze,La.prototype.getRotateWithView=La.prototype.$e,La.prototype.getRotation=La.prototype.af,La.prototype.getScale=La.prototype.bf,La.prototype.getSnapToPixel=La.prototype.Ae,La.prototype.setOpacity=La.prototype.td,La.prototype.setRotation=La.prototype.cf,La.prototype.setScale=La.prototype.ud,Fa.prototype.getAngle=Fa.prototype.Pi,Fa.prototype.getFill=Fa.prototype.Fa,Fa.prototype.getPoints=Fa.prototype.Qi,Fa.prototype.getRadius=Fa.prototype.Ri,Fa.prototype.getRadius2=Fa.prototype.Fh,Fa.prototype.getStroke=Fa.prototype.Ga,Fa.prototype.getOpacity=Fa.prototype.Ze,Fa.prototype.getRotateWithView=Fa.prototype.$e,Fa.prototype.getRotation=Fa.prototype.af,Fa.prototype.getScale=Fa.prototype.bf,Fa.prototype.getSnapToPixel=Fa.prototype.Ae,Fa.prototype.setOpacity=Fa.prototype.td,Fa.prototype.setRotation=Fa.prototype.cf,Fa.prototype.setScale=Fa.prototype.ud,vy.prototype.getOpacity=vy.prototype.Ze,vy.prototype.getRotateWithView=vy.prototype.$e,vy.prototype.getRotation=vy.prototype.af,vy.prototype.getScale=vy.prototype.bf,vy.prototype.getSnapToPixel=vy.prototype.Ae,vy.prototype.setOpacity=vy.prototype.td,vy.prototype.setRotation=vy.prototype.cf,vy.prototype.setScale=vy.prototype.ud,hg.prototype.getKeys=hg.prototype.O,hg.prototype.getProperties=hg.prototype.N,hg.prototype.setProperties=hg.prototype.H,hg.prototype.unset=hg.prototype.P,hg.prototype.changed=hg.prototype.s,hg.prototype.dispatchEvent=hg.prototype.b,hg.prototype.getRevision=hg.prototype.L,hg.prototype.on=hg.prototype.J,hg.prototype.un=hg.prototype.K,ev.prototype.getAttributions=ev.prototype.ya,ev.prototype.getLogo=ev.prototype.xa,ev.prototype.getProjection=ev.prototype.za,ev.prototype.refresh=ev.prototype.sa,ev.prototype.setAttributions=ev.prototype.ua,ev.prototype.getKeys=ev.prototype.O,ev.prototype.getProperties=ev.prototype.N,ev.prototype.setProperties=ev.prototype.H,ev.prototype.unset=ev.prototype.P,ev.prototype.changed=ev.prototype.s,ev.prototype.dispatchEvent=ev.prototype.b,ev.prototype.getRevision=ev.prototype.L,ev.prototype.on=ev.prototype.J,ev.prototype.un=ev.prototype.K,pv.prototype.getTileGrid=pv.prototype.ab,pv.prototype.refresh=pv.prototype.sa,pv.prototype.getAttributions=pv.prototype.ya,pv.prototype.getLogo=pv.prototype.xa,pv.prototype.getProjection=pv.prototype.za,pv.prototype.setAttributions=pv.prototype.ua,pv.prototype.getKeys=pv.prototype.O,pv.prototype.getProperties=pv.prototype.N,pv.prototype.setProperties=pv.prototype.H,pv.prototype.unset=pv.prototype.P,pv.prototype.changed=pv.prototype.s,pv.prototype.dispatchEvent=pv.prototype.b,pv.prototype.getRevision=pv.prototype.L,pv.prototype.on=pv.prototype.J,pv.prototype.un=pv.prototype.K,A.prototype.getTileLoadFunction=A.prototype.pb,A.prototype.getTileUrlFunction=A.prototype.qb,A.prototype.getUrls=A.prototype.rb,A.prototype.setTileLoadFunction=A.prototype.vb,A.prototype.setTileUrlFunction=A.prototype.cb,A.prototype.setUrl=A.prototype.jb,A.prototype.setUrls=A.prototype.eb,A.prototype.getTileGrid=A.prototype.ab,A.prototype.refresh=A.prototype.sa,A.prototype.getAttributions=A.prototype.ya,A.prototype.getLogo=A.prototype.xa,A.prototype.getProjection=A.prototype.za,A.prototype.setAttributions=A.prototype.ua,A.prototype.getKeys=A.prototype.O,A.prototype.getProperties=A.prototype.N,A.prototype.setProperties=A.prototype.H,A.prototype.unset=A.prototype.P,A.prototype.changed=A.prototype.s,A.prototype.dispatchEvent=A.prototype.b,A.prototype.getRevision=A.prototype.L,A.prototype.on=A.prototype.J,A.prototype.un=A.prototype.K,C.prototype.setRenderReprojectionEdges=C.prototype.Pb,C.prototype.setTileGridForProjection=C.prototype.Qb,C.prototype.getTileLoadFunction=C.prototype.pb,C.prototype.getTileUrlFunction=C.prototype.qb,C.prototype.getUrls=C.prototype.rb,C.prototype.setTileLoadFunction=C.prototype.vb,C.prototype.setTileUrlFunction=C.prototype.cb,C.prototype.setUrl=C.prototype.jb,C.prototype.setUrls=C.prototype.eb,C.prototype.getTileGrid=C.prototype.ab,C.prototype.refresh=C.prototype.sa,C.prototype.getAttributions=C.prototype.ya,C.prototype.getLogo=C.prototype.xa,C.prototype.getProjection=C.prototype.za,C.prototype.setAttributions=C.prototype.ua,C.prototype.getKeys=C.prototype.O,C.prototype.getProperties=C.prototype.N,C.prototype.setProperties=C.prototype.H,C.prototype.unset=C.prototype.P,C.prototype.changed=C.prototype.s,C.prototype.dispatchEvent=C.prototype.b,C.prototype.getRevision=C.prototype.L,C.prototype.on=C.prototype.J,C.prototype.un=C.prototype.K,j.prototype.setRenderReprojectionEdges=j.prototype.Pb,j.prototype.setTileGridForProjection=j.prototype.Qb,j.prototype.getTileLoadFunction=j.prototype.pb,j.prototype.getTileUrlFunction=j.prototype.qb,j.prototype.getUrls=j.prototype.rb,j.prototype.setTileLoadFunction=j.prototype.vb,j.prototype.setTileUrlFunction=j.prototype.cb,j.prototype.setUrl=j.prototype.jb,j.prototype.setUrls=j.prototype.eb,j.prototype.getTileGrid=j.prototype.ab,j.prototype.refresh=j.prototype.sa,j.prototype.getAttributions=j.prototype.ya,j.prototype.getLogo=j.prototype.xa,j.prototype.getProjection=j.prototype.za,j.prototype.setAttributions=j.prototype.ua,j.prototype.getKeys=j.prototype.O,j.prototype.getProperties=j.prototype.N,j.prototype.setProperties=j.prototype.H,j.prototype.unset=j.prototype.P,j.prototype.changed=j.prototype.s,j.prototype.dispatchEvent=j.prototype.b,j.prototype.getRevision=j.prototype.L,j.prototype.on=j.prototype.J,j.prototype.un=j.prototype.K,L.prototype.setRenderReprojectionEdges=L.prototype.Pb,L.prototype.setTileGridForProjection=L.prototype.Qb,L.prototype.getTileLoadFunction=L.prototype.pb,L.prototype.getTileUrlFunction=L.prototype.qb,L.prototype.getUrls=L.prototype.rb,L.prototype.setTileLoadFunction=L.prototype.vb,L.prototype.setTileUrlFunction=L.prototype.cb,L.prototype.setUrl=L.prototype.jb,L.prototype.setUrls=L.prototype.eb,L.prototype.getTileGrid=L.prototype.ab,L.prototype.refresh=L.prototype.sa,L.prototype.getAttributions=L.prototype.ya,L.prototype.getLogo=L.prototype.xa,L.prototype.getProjection=L.prototype.za,L.prototype.setAttributions=L.prototype.ua,L.prototype.getKeys=L.prototype.O,L.prototype.getProperties=L.prototype.N,L.prototype.setProperties=L.prototype.H,L.prototype.unset=L.prototype.P,L.prototype.changed=L.prototype.s,L.prototype.dispatchEvent=L.prototype.b,L.prototype.getRevision=L.prototype.L,L.prototype.on=L.prototype.J,L.prototype.un=L.prototype.K,P.prototype.getAttributions=P.prototype.ya,P.prototype.getLogo=P.prototype.xa,P.prototype.getProjection=P.prototype.za,P.prototype.refresh=P.prototype.sa,P.prototype.setAttributions=P.prototype.ua,P.prototype.getKeys=P.prototype.O,P.prototype.getProperties=P.prototype.N,P.prototype.setProperties=P.prototype.H,P.prototype.unset=P.prototype.P,P.prototype.changed=P.prototype.s,P.prototype.dispatchEvent=P.prototype.b,P.prototype.getRevision=P.prototype.L,P.prototype.on=P.prototype.J,P.prototype.un=P.prototype.K,R.prototype.addFeature=R.prototype.yb,R.prototype.addFeatures=R.prototype.cd,R.prototype.forEachFeature=R.prototype.sh,R.prototype.forEachFeatureInExtent=R.prototype.$b,R.prototype.forEachFeatureIntersectingExtent=R.prototype.th,R.prototype.getFeaturesCollection=R.prototype.Ah,R.prototype.getFeatures=R.prototype.Xe,R.prototype.getFeaturesAtCoordinate=R.prototype.zh,R.prototype.getFeaturesInExtent=R.prototype.Uf,R.prototype.getClosestFeatureToCoordinate=R.prototype.vh,R.prototype.getExtent=R.prototype.G,R.prototype.getFeatureById=R.prototype.yh,R.prototype.getFormat=R.prototype.Mi,R.prototype.getUrl=R.prototype.Ni,R.prototype.removeFeature=R.prototype.Gb,R.prototype.getAttributions=R.prototype.ya,R.prototype.getLogo=R.prototype.xa,R.prototype.getProjection=R.prototype.za,R.prototype.refresh=R.prototype.sa,R.prototype.setAttributions=R.prototype.ua,R.prototype.getKeys=R.prototype.O,R.prototype.getProperties=R.prototype.N,R.prototype.setProperties=R.prototype.H,R.prototype.unset=R.prototype.P,R.prototype.changed=R.prototype.s,R.prototype.dispatchEvent=R.prototype.b,R.prototype.getRevision=R.prototype.L,R.prototype.on=R.prototype.J,R.prototype.un=R.prototype.K,j0.prototype.getAttributions=j0.prototype.ya,j0.prototype.getLogo=j0.prototype.xa,j0.prototype.getProjection=j0.prototype.za,j0.prototype.refresh=j0.prototype.sa,j0.prototype.setAttributions=j0.prototype.ua,j0.prototype.getKeys=j0.prototype.O,j0.prototype.getProperties=j0.prototype.N,j0.prototype.setProperties=j0.prototype.H,j0.prototype.unset=j0.prototype.P,j0.prototype.changed=j0.prototype.s,j0.prototype.dispatchEvent=j0.prototype.b,j0.prototype.getRevision=j0.prototype.L,j0.prototype.on=j0.prototype.J,j0.prototype.un=j0.prototype.K,uv.prototype.getAttributions=uv.prototype.ya,uv.prototype.getLogo=uv.prototype.xa,uv.prototype.getProjection=uv.prototype.za,uv.prototype.refresh=uv.prototype.sa,uv.prototype.setAttributions=uv.prototype.ua,uv.prototype.getKeys=uv.prototype.O,uv.prototype.getProperties=uv.prototype.N,uv.prototype.setProperties=uv.prototype.H,uv.prototype.unset=uv.prototype.P,uv.prototype.changed=uv.prototype.s,uv.prototype.dispatchEvent=uv.prototype.b,uv.prototype.getRevision=uv.prototype.L,uv.prototype.on=uv.prototype.J,uv.prototype.un=uv.prototype.K,O0.prototype.getAttributions=O0.prototype.ya,O0.prototype.getLogo=O0.prototype.xa,O0.prototype.getProjection=O0.prototype.za,O0.prototype.refresh=O0.prototype.sa,O0.prototype.setAttributions=O0.prototype.ua,O0.prototype.getKeys=O0.prototype.O,O0.prototype.getProperties=O0.prototype.N,O0.prototype.setProperties=O0.prototype.H,O0.prototype.unset=O0.prototype.P,O0.prototype.changed=O0.prototype.s,O0.prototype.dispatchEvent=O0.prototype.b,O0.prototype.getRevision=O0.prototype.L,O0.prototype.on=O0.prototype.J,O0.prototype.un=O0.prototype.K,cv.prototype.getAttributions=cv.prototype.ya,cv.prototype.getLogo=cv.prototype.xa,cv.prototype.getProjection=cv.prototype.za,cv.prototype.refresh=cv.prototype.sa,cv.prototype.setAttributions=cv.prototype.ua,cv.prototype.getKeys=cv.prototype.O,cv.prototype.getProperties=cv.prototype.N,cv.prototype.setProperties=cv.prototype.H,cv.prototype.unset=cv.prototype.P,cv.prototype.changed=cv.prototype.s,cv.prototype.dispatchEvent=cv.prototype.b,cv.prototype.getRevision=cv.prototype.L,cv.prototype.on=cv.prototype.J,cv.prototype.un=cv.prototype.K,fv.prototype.getAttributions=fv.prototype.ya,fv.prototype.getLogo=fv.prototype.xa,fv.prototype.getProjection=fv.prototype.za,fv.prototype.refresh=fv.prototype.sa,fv.prototype.setAttributions=fv.prototype.ua,fv.prototype.getKeys=fv.prototype.O,fv.prototype.getProperties=fv.prototype.N,fv.prototype.setProperties=fv.prototype.H,fv.prototype.unset=fv.prototype.P,fv.prototype.changed=fv.prototype.s,fv.prototype.dispatchEvent=fv.prototype.b,fv.prototype.getRevision=fv.prototype.L,fv.prototype.on=fv.prototype.J,fv.prototype.un=fv.prototype.K,D0.prototype.getAttributions=D0.prototype.ya,D0.prototype.getLogo=D0.prototype.xa,D0.prototype.getProjection=D0.prototype.za,D0.prototype.refresh=D0.prototype.sa,D0.prototype.setAttributions=D0.prototype.ua,D0.prototype.getKeys=D0.prototype.O,D0.prototype.getProperties=D0.prototype.N,D0.prototype.setProperties=D0.prototype.H,D0.prototype.unset=D0.prototype.P,D0.prototype.changed=D0.prototype.s,D0.prototype.dispatchEvent=D0.prototype.b,D0.prototype.getRevision=D0.prototype.L,D0.prototype.on=D0.prototype.J,D0.prototype.un=D0.prototype.K,dv.prototype.getAttributions=dv.prototype.ya,dv.prototype.getLogo=dv.prototype.xa,dv.prototype.getProjection=dv.prototype.za,dv.prototype.refresh=dv.prototype.sa,dv.prototype.setAttributions=dv.prototype.ua,dv.prototype.getKeys=dv.prototype.O,dv.prototype.getProperties=dv.prototype.N,dv.prototype.setProperties=dv.prototype.H,dv.prototype.unset=dv.prototype.P,dv.prototype.changed=dv.prototype.s,dv.prototype.dispatchEvent=dv.prototype.b,dv.prototype.getRevision=dv.prototype.L,dv.prototype.on=dv.prototype.J,dv.prototype.un=dv.prototype.K,bv.prototype.setRenderReprojectionEdges=bv.prototype.Pb,bv.prototype.setTileGridForProjection=bv.prototype.Qb,bv.prototype.getTileLoadFunction=bv.prototype.pb,bv.prototype.getTileUrlFunction=bv.prototype.qb,bv.prototype.getUrls=bv.prototype.rb,bv.prototype.setTileLoadFunction=bv.prototype.vb,bv.prototype.setTileUrlFunction=bv.prototype.cb,bv.prototype.setUrl=bv.prototype.jb,bv.prototype.setUrls=bv.prototype.eb,bv.prototype.getTileGrid=bv.prototype.ab,bv.prototype.refresh=bv.prototype.sa,bv.prototype.getAttributions=bv.prototype.ya,bv.prototype.getLogo=bv.prototype.xa,bv.prototype.getProjection=bv.prototype.za,bv.prototype.setAttributions=bv.prototype.ua,bv.prototype.getKeys=bv.prototype.O,bv.prototype.getProperties=bv.prototype.N,bv.prototype.setProperties=bv.prototype.H,bv.prototype.unset=bv.prototype.P,bv.prototype.changed=bv.prototype.s,bv.prototype.dispatchEvent=bv.prototype.b,bv.prototype.getRevision=bv.prototype.L,bv.prototype.on=bv.prototype.J,bv.prototype.un=bv.prototype.K,Tv.prototype.getAttributions=Tv.prototype.ya,Tv.prototype.getLogo=Tv.prototype.xa,Tv.prototype.getProjection=Tv.prototype.za,Tv.prototype.refresh=Tv.prototype.sa,Tv.prototype.setAttributions=Tv.prototype.ua,Tv.prototype.getKeys=Tv.prototype.O,Tv.prototype.getProperties=Tv.prototype.N,Tv.prototype.setProperties=Tv.prototype.H,Tv.prototype.unset=Tv.prototype.P,Tv.prototype.changed=Tv.prototype.s,Tv.prototype.dispatchEvent=Tv.prototype.b,Tv.prototype.getRevision=Tv.prototype.L,Tv.prototype.on=Tv.prototype.J,Tv.prototype.un=Tv.prototype.K,Lv.prototype.setRenderReprojectionEdges=Lv.prototype.Pb,Lv.prototype.setTileGridForProjection=Lv.prototype.Qb,Lv.prototype.getTileLoadFunction=Lv.prototype.pb,Lv.prototype.getTileUrlFunction=Lv.prototype.qb,Lv.prototype.getUrls=Lv.prototype.rb,Lv.prototype.setTileLoadFunction=Lv.prototype.vb,Lv.prototype.setTileUrlFunction=Lv.prototype.cb,Lv.prototype.setUrl=Lv.prototype.jb,Lv.prototype.setUrls=Lv.prototype.eb,Lv.prototype.getTileGrid=Lv.prototype.ab,Lv.prototype.refresh=Lv.prototype.sa,Lv.prototype.getAttributions=Lv.prototype.ya,Lv.prototype.getLogo=Lv.prototype.xa,Lv.prototype.getProjection=Lv.prototype.za,Lv.prototype.setAttributions=Lv.prototype.ua,Lv.prototype.getKeys=Lv.prototype.O,Lv.prototype.getProperties=Lv.prototype.N,Lv.prototype.setProperties=Lv.prototype.H,Lv.prototype.unset=Lv.prototype.P,Lv.prototype.changed=Lv.prototype.s,Lv.prototype.dispatchEvent=Lv.prototype.b,Lv.prototype.getRevision=Lv.prototype.L,Lv.prototype.on=Lv.prototype.J,Lv.prototype.un=Lv.prototype.K,F.prototype.setRenderReprojectionEdges=F.prototype.Pb,F.prototype.setTileGridForProjection=F.prototype.Qb,F.prototype.getTileLoadFunction=F.prototype.pb,F.prototype.getTileUrlFunction=F.prototype.qb,F.prototype.getUrls=F.prototype.rb,F.prototype.setTileLoadFunction=F.prototype.vb,F.prototype.setTileUrlFunction=F.prototype.cb,F.prototype.setUrl=F.prototype.jb,F.prototype.setUrls=F.prototype.eb,F.prototype.getTileGrid=F.prototype.ab,F.prototype.refresh=F.prototype.sa,F.prototype.getAttributions=F.prototype.ya,F.prototype.getLogo=F.prototype.xa,F.prototype.getProjection=F.prototype.za,F.prototype.setAttributions=F.prototype.ua,F.prototype.getKeys=F.prototype.O,F.prototype.getProperties=F.prototype.N,F.prototype.setProperties=F.prototype.H,F.prototype.unset=F.prototype.P,F.prototype.changed=F.prototype.s,F.prototype.dispatchEvent=F.prototype.b,F.prototype.getRevision=F.prototype.L,F.prototype.on=F.prototype.J,F.prototype.un=F.prototype.K,kv.prototype.getTileGrid=kv.prototype.ab,kv.prototype.refresh=kv.prototype.sa,kv.prototype.getAttributions=kv.prototype.ya,kv.prototype.getLogo=kv.prototype.xa,kv.prototype.getProjection=kv.prototype.za,kv.prototype.setAttributions=kv.prototype.ua,kv.prototype.getKeys=kv.prototype.O,kv.prototype.getProperties=kv.prototype.N,kv.prototype.setProperties=kv.prototype.H,kv.prototype.unset=kv.prototype.P,kv.prototype.changed=kv.prototype.s,kv.prototype.dispatchEvent=kv.prototype.b,kv.prototype.getRevision=kv.prototype.L,kv.prototype.on=kv.prototype.J,kv.prototype.un=kv.prototype.K,N.prototype.setRenderReprojectionEdges=N.prototype.Pb,N.prototype.setTileGridForProjection=N.prototype.Qb,N.prototype.getTileLoadFunction=N.prototype.pb,N.prototype.getTileUrlFunction=N.prototype.qb,N.prototype.getUrls=N.prototype.rb,N.prototype.setTileLoadFunction=N.prototype.vb,N.prototype.setTileUrlFunction=N.prototype.cb,N.prototype.setUrl=N.prototype.jb,N.prototype.setUrls=N.prototype.eb,N.prototype.getTileGrid=N.prototype.ab,N.prototype.refresh=N.prototype.sa,N.prototype.getAttributions=N.prototype.ya,N.prototype.getLogo=N.prototype.xa,N.prototype.getProjection=N.prototype.za,N.prototype.setAttributions=N.prototype.ua,N.prototype.getKeys=N.prototype.O,N.prototype.getProperties=N.prototype.N,N.prototype.setProperties=N.prototype.H,N.prototype.unset=N.prototype.P,N.prototype.changed=N.prototype.s,N.prototype.dispatchEvent=N.prototype.b,N.prototype.getRevision=N.prototype.L,N.prototype.on=N.prototype.J,N.prototype.un=N.prototype.K,Dv.prototype.getTileGrid=Dv.prototype.ab,Dv.prototype.refresh=Dv.prototype.sa,Dv.prototype.getAttributions=Dv.prototype.ya,Dv.prototype.getLogo=Dv.prototype.xa,Dv.prototype.getProjection=Dv.prototype.za,Dv.prototype.setAttributions=Dv.prototype.ua,Dv.prototype.getKeys=Dv.prototype.O,Dv.prototype.getProperties=Dv.prototype.N,Dv.prototype.setProperties=Dv.prototype.H,Dv.prototype.unset=Dv.prototype.P,Dv.prototype.changed=Dv.prototype.s,Dv.prototype.dispatchEvent=Dv.prototype.b,Dv.prototype.getRevision=Dv.prototype.L,Dv.prototype.on=Dv.prototype.J,Dv.prototype.un=Dv.prototype.K,I.prototype.setRenderReprojectionEdges=I.prototype.Pb,I.prototype.setTileGridForProjection=I.prototype.Qb,I.prototype.getTileLoadFunction=I.prototype.pb,I.prototype.getTileUrlFunction=I.prototype.qb,I.prototype.getUrls=I.prototype.rb,I.prototype.setTileLoadFunction=I.prototype.vb,I.prototype.setTileUrlFunction=I.prototype.cb,I.prototype.setUrl=I.prototype.jb,I.prototype.setUrls=I.prototype.eb,I.prototype.getTileGrid=I.prototype.ab,I.prototype.refresh=I.prototype.sa,I.prototype.getAttributions=I.prototype.ya,I.prototype.getLogo=I.prototype.xa,I.prototype.getProjection=I.prototype.za,I.prototype.setAttributions=I.prototype.ua,I.prototype.getKeys=I.prototype.O,I.prototype.getProperties=I.prototype.N,I.prototype.setProperties=I.prototype.H,I.prototype.unset=I.prototype.P,I.prototype.changed=I.prototype.s,I.prototype.dispatchEvent=I.prototype.b,I.prototype.getRevision=I.prototype.L,I.prototype.on=I.prototype.J,I.prototype.un=I.prototype.K,Hv.prototype.getTileLoadFunction=Hv.prototype.pb,Hv.prototype.getTileUrlFunction=Hv.prototype.qb,Hv.prototype.getUrls=Hv.prototype.rb,Hv.prototype.setTileLoadFunction=Hv.prototype.vb,Hv.prototype.setTileUrlFunction=Hv.prototype.cb,Hv.prototype.setUrl=Hv.prototype.jb,Hv.prototype.setUrls=Hv.prototype.eb,Hv.prototype.getTileGrid=Hv.prototype.ab,Hv.prototype.refresh=Hv.prototype.sa,Hv.prototype.getAttributions=Hv.prototype.ya,Hv.prototype.getLogo=Hv.prototype.xa,Hv.prototype.getProjection=Hv.prototype.za,Hv.prototype.setAttributions=Hv.prototype.ua,Hv.prototype.getKeys=Hv.prototype.O,Hv.prototype.getProperties=Hv.prototype.N,Hv.prototype.setProperties=Hv.prototype.H,Hv.prototype.unset=Hv.prototype.P,Hv.prototype.changed=Hv.prototype.s,Hv.prototype.dispatchEvent=Hv.prototype.b,Hv.prototype.getRevision=Hv.prototype.L,Hv.prototype.on=Hv.prototype.J,Hv.prototype.un=Hv.prototype.K,k.prototype.setRenderReprojectionEdges=k.prototype.Pb,k.prototype.setTileGridForProjection=k.prototype.Qb,k.prototype.getTileLoadFunction=k.prototype.pb,k.prototype.getTileUrlFunction=k.prototype.qb,k.prototype.getUrls=k.prototype.rb,k.prototype.setTileLoadFunction=k.prototype.vb,k.prototype.setTileUrlFunction=k.prototype.cb,k.prototype.setUrl=k.prototype.jb,k.prototype.setUrls=k.prototype.eb,k.prototype.getTileGrid=k.prototype.ab,k.prototype.refresh=k.prototype.sa,k.prototype.getAttributions=k.prototype.ya,k.prototype.getLogo=k.prototype.xa,k.prototype.getProjection=k.prototype.za,k.prototype.setAttributions=k.prototype.ua,k.prototype.getKeys=k.prototype.O,k.prototype.getProperties=k.prototype.N,k.prototype.setProperties=k.prototype.H,k.prototype.unset=k.prototype.P,k.prototype.changed=k.prototype.s,k.prototype.dispatchEvent=k.prototype.b,k.prototype.getRevision=k.prototype.L,k.prototype.on=k.prototype.J,k.prototype.un=k.prototype.K,Yv.prototype.setRenderReprojectionEdges=Yv.prototype.Pb,Yv.prototype.setTileGridForProjection=Yv.prototype.Qb,Yv.prototype.getTileLoadFunction=Yv.prototype.pb,Yv.prototype.getTileUrlFunction=Yv.prototype.qb,Yv.prototype.getUrls=Yv.prototype.rb,Yv.prototype.setTileLoadFunction=Yv.prototype.vb,Yv.prototype.setTileUrlFunction=Yv.prototype.cb,Yv.prototype.setUrl=Yv.prototype.jb,Yv.prototype.setUrls=Yv.prototype.eb,Yv.prototype.getTileGrid=Yv.prototype.ab,Yv.prototype.refresh=Yv.prototype.sa,Yv.prototype.getAttributions=Yv.prototype.ya,Yv.prototype.getLogo=Yv.prototype.xa,Yv.prototype.getProjection=Yv.prototype.za,Yv.prototype.setAttributions=Yv.prototype.ua,Yv.prototype.getKeys=Yv.prototype.O,Yv.prototype.getProperties=Yv.prototype.N,Yv.prototype.setProperties=Yv.prototype.H,Yv.prototype.unset=Yv.prototype.P,Yv.prototype.changed=Yv.prototype.s,Yv.prototype.dispatchEvent=Yv.prototype.b,Yv.prototype.getRevision=Yv.prototype.L,Yv.prototype.on=Yv.prototype.J,Yv.prototype.un=Yv.prototype.K,J0.prototype.getTileCoord=J0.prototype.f,Dd.prototype.changed=Dd.prototype.s,Dd.prototype.dispatchEvent=Dd.prototype.b,Dd.prototype.getRevision=Dd.prototype.L,Dd.prototype.on=Dd.prototype.J,Dd.prototype.un=Dd.prototype.K,ng.prototype.changed=ng.prototype.s,ng.prototype.dispatchEvent=ng.prototype.b,ng.prototype.getRevision=ng.prototype.L,ng.prototype.on=ng.prototype.J,ng.prototype.un=ng.prototype.K,U0.prototype.changed=U0.prototype.s,U0.prototype.dispatchEvent=U0.prototype.b,U0.prototype.getRevision=U0.prototype.L,U0.prototype.on=U0.prototype.J,U0.prototype.un=U0.prototype.K,H0.prototype.changed=H0.prototype.s,H0.prototype.dispatchEvent=H0.prototype.b,H0.prototype.getRevision=H0.prototype.L,H0.prototype.on=H0.prototype.J,H0.prototype.un=H0.prototype.K,sg.prototype.changed=sg.prototype.s,sg.prototype.dispatchEvent=sg.prototype.b,sg.prototype.getRevision=sg.prototype.L,sg.prototype.on=sg.prototype.J,sg.prototype.un=sg.prototype.K,zd.prototype.changed=zd.prototype.s,zd.prototype.dispatchEvent=zd.prototype.b,zd.prototype.getRevision=zd.prototype.L,zd.prototype.on=zd.prototype.J,zd.prototype.un=zd.prototype.K,w0.prototype.changed=w0.prototype.s,w0.prototype.dispatchEvent=w0.prototype.b,w0.prototype.getRevision=w0.prototype.L,w0.prototype.on=w0.prototype.J,w0.prototype.un=w0.prototype.K,S0.prototype.changed=S0.prototype.s,S0.prototype.dispatchEvent=S0.prototype.b,S0.prototype.getRevision=S0.prototype.L,S0.prototype.on=S0.prototype.J,S0.prototype.un=S0.prototype.K,B0.prototype.changed=B0.prototype.s,B0.prototype.dispatchEvent=B0.prototype.b,B0.prototype.getRevision=B0.prototype.L,B0.prototype.on=B0.prototype.J,B0.prototype.un=B0.prototype.K,Qd.prototype.changed=Qd.prototype.s,Qd.prototype.dispatchEvent=Qd.prototype.b,Qd.prototype.getRevision=Qd.prototype.L,Qd.prototype.on=Qd.prototype.J,Qd.prototype.un=Qd.prototype.K,Z0.prototype.changed=Z0.prototype.s,Z0.prototype.dispatchEvent=Z0.prototype.b,Z0.prototype.getRevision=Z0.prototype.L,Z0.prototype.on=Z0.prototype.J,Z0.prototype.un=Z0.prototype.K,Nn.prototype.getKeys=Nn.prototype.O,Nn.prototype.getProperties=Nn.prototype.N,Nn.prototype.setProperties=Nn.prototype.H,Nn.prototype.unset=Nn.prototype.P,Nn.prototype.changed=Nn.prototype.s,Nn.prototype.dispatchEvent=Nn.prototype.b,Nn.prototype.getRevision=Nn.prototype.L,Nn.prototype.on=Nn.prototype.J,Nn.prototype.un=Nn.prototype.K,kn.prototype.getExtent=kn.prototype.G,kn.prototype.getMaxResolution=kn.prototype.fc,kn.prototype.getMinResolution=kn.prototype.gc,kn.prototype.getOpacity=kn.prototype.hc,kn.prototype.getVisible=kn.prototype.Mb,kn.prototype.getZIndex=kn.prototype.Ba,kn.prototype.setExtent=kn.prototype.vc,kn.prototype.setMaxResolution=kn.prototype.Ac,kn.prototype.setMinResolution=kn.prototype.Bc,kn.prototype.setOpacity=kn.prototype.wc,kn.prototype.setVisible=kn.prototype.xc,kn.prototype.setZIndex=kn.prototype.Vb,kn.prototype.getKeys=kn.prototype.O,kn.prototype.getProperties=kn.prototype.N,kn.prototype.setProperties=kn.prototype.H,kn.prototype.unset=kn.prototype.P,kn.prototype.changed=kn.prototype.s,kn.prototype.dispatchEvent=kn.prototype.b,kn.prototype.getRevision=kn.prototype.L,kn.prototype.on=kn.prototype.J,kn.prototype.un=kn.prototype.K,o.prototype.getExtent=o.prototype.G,o.prototype.getMaxResolution=o.prototype.fc,o.prototype.getMinResolution=o.prototype.gc,o.prototype.getOpacity=o.prototype.hc,o.prototype.getVisible=o.prototype.Mb,o.prototype.getZIndex=o.prototype.Ba,o.prototype.setExtent=o.prototype.vc,o.prototype.setMaxResolution=o.prototype.Ac,o.prototype.setMinResolution=o.prototype.Bc,o.prototype.setOpacity=o.prototype.wc,o.prototype.setVisible=o.prototype.xc,o.prototype.setZIndex=o.prototype.Vb,o.prototype.getKeys=o.prototype.O,o.prototype.getProperties=o.prototype.N,o.prototype.setProperties=o.prototype.H,o.prototype.unset=o.prototype.P,o.prototype.changed=o.prototype.s,o.prototype.dispatchEvent=o.prototype.b,o.prototype.getRevision=o.prototype.L,o.prototype.on=o.prototype.J,o.prototype.un=o.prototype.K,S.prototype.setSource=S.prototype.Wc,S.prototype.getExtent=S.prototype.G,S.prototype.getMaxResolution=S.prototype.fc,S.prototype.getMinResolution=S.prototype.gc,S.prototype.getOpacity=S.prototype.hc,S.prototype.getVisible=S.prototype.Mb,S.prototype.getZIndex=S.prototype.Ba,S.prototype.setExtent=S.prototype.vc,S.prototype.setMaxResolution=S.prototype.Ac,S.prototype.setMinResolution=S.prototype.Bc,S.prototype.setOpacity=S.prototype.wc,S.prototype.setVisible=S.prototype.xc,S.prototype.setZIndex=S.prototype.Vb,S.prototype.getKeys=S.prototype.O,S.prototype.getProperties=S.prototype.N,S.prototype.setProperties=S.prototype.H,S.prototype.unset=S.prototype.P,S.prototype.changed=S.prototype.s,S.prototype.dispatchEvent=S.prototype.b,S.prototype.getRevision=S.prototype.L,S.prototype.on=S.prototype.J,S.prototype.un=S.prototype.K,M.prototype.getSource=M.prototype.ha,M.prototype.getStyle=M.prototype.D,M.prototype.getStyleFunction=M.prototype.C,M.prototype.setStyle=M.prototype.g,M.prototype.setSource=M.prototype.Wc,M.prototype.getExtent=M.prototype.G,M.prototype.getMaxResolution=M.prototype.fc,M.prototype.getMinResolution=M.prototype.gc,M.prototype.getOpacity=M.prototype.hc,M.prototype.getVisible=M.prototype.Mb,M.prototype.getZIndex=M.prototype.Ba,M.prototype.setExtent=M.prototype.vc,M.prototype.setMaxResolution=M.prototype.Ac,M.prototype.setMinResolution=M.prototype.Bc,M.prototype.setOpacity=M.prototype.wc,M.prototype.setVisible=M.prototype.xc,M.prototype.setZIndex=M.prototype.Vb,M.prototype.getKeys=M.prototype.O,M.prototype.getProperties=M.prototype.N,M.prototype.setProperties=M.prototype.H,M.prototype.unset=M.prototype.P,M.prototype.changed=M.prototype.s,M.prototype.dispatchEvent=M.prototype.b,M.prototype.getRevision=M.prototype.L,M.prototype.on=M.prototype.J,M.prototype.un=M.prototype.K,G0.prototype.setSource=G0.prototype.Wc,G0.prototype.getExtent=G0.prototype.G,G0.prototype.getMaxResolution=G0.prototype.fc,G0.prototype.getMinResolution=G0.prototype.gc,G0.prototype.getOpacity=G0.prototype.hc,G0.prototype.getVisible=G0.prototype.Mb,G0.prototype.getZIndex=G0.prototype.Ba,G0.prototype.setExtent=G0.prototype.vc,G0.prototype.setMaxResolution=G0.prototype.Ac,G0.prototype.setMinResolution=G0.prototype.Bc,G0.prototype.setOpacity=G0.prototype.wc,G0.prototype.setVisible=G0.prototype.xc,G0.prototype.setZIndex=G0.prototype.Vb,G0.prototype.getKeys=G0.prototype.O,G0.prototype.getProperties=G0.prototype.N,G0.prototype.setProperties=G0.prototype.H,G0.prototype.unset=G0.prototype.P,G0.prototype.changed=G0.prototype.s,G0.prototype.dispatchEvent=G0.prototype.b,G0.prototype.getRevision=G0.prototype.L,G0.prototype.on=G0.prototype.J,G0.prototype.un=G0.prototype.K,T.prototype.setSource=T.prototype.Wc,T.prototype.getExtent=T.prototype.G,T.prototype.getMaxResolution=T.prototype.fc,T.prototype.getMinResolution=T.prototype.gc,T.prototype.getOpacity=T.prototype.hc,T.prototype.getVisible=T.prototype.Mb,T.prototype.getZIndex=T.prototype.Ba,T.prototype.setExtent=T.prototype.vc,T.prototype.setMaxResolution=T.prototype.Ac,T.prototype.setMinResolution=T.prototype.Bc,T.prototype.setOpacity=T.prototype.wc,T.prototype.setVisible=T.prototype.xc,T.prototype.setZIndex=T.prototype.Vb,T.prototype.getKeys=T.prototype.O,T.prototype.getProperties=T.prototype.N,T.prototype.setProperties=T.prototype.H,T.prototype.unset=T.prototype.P,T.prototype.changed=T.prototype.s,T.prototype.dispatchEvent=T.prototype.b,T.prototype.getRevision=T.prototype.L,T.prototype.on=T.prototype.J,T.prototype.un=T.prototype.K,E.prototype.getSource=E.prototype.ha,E.prototype.getStyle=E.prototype.D,E.prototype.getStyleFunction=E.prototype.C,E.prototype.setStyle=E.prototype.g,E.prototype.setSource=E.prototype.Wc,E.prototype.getExtent=E.prototype.G,E.prototype.getMaxResolution=E.prototype.fc,E.prototype.getMinResolution=E.prototype.gc,E.prototype.getOpacity=E.prototype.hc,E.prototype.getVisible=E.prototype.Mb,E.prototype.getZIndex=E.prototype.Ba,E.prototype.setExtent=E.prototype.vc,E.prototype.setMaxResolution=E.prototype.Ac,E.prototype.setMinResolution=E.prototype.Bc,E.prototype.setOpacity=E.prototype.wc,E.prototype.setVisible=E.prototype.xc,E.prototype.setZIndex=E.prototype.Vb,E.prototype.getKeys=E.prototype.O,E.prototype.getProperties=E.prototype.N,E.prototype.setProperties=E.prototype.H,E.prototype.unset=E.prototype.P,E.prototype.changed=E.prototype.s,E.prototype.dispatchEvent=E.prototype.b,E.prototype.getRevision=E.prototype.L,E.prototype.on=E.prototype.J,E.prototype.un=E.prototype.K,Lr.prototype.getKeys=Lr.prototype.O,Lr.prototype.getProperties=Lr.prototype.N,Lr.prototype.setProperties=Lr.prototype.H,Lr.prototype.unset=Lr.prototype.P,Lr.prototype.changed=Lr.prototype.s,Lr.prototype.dispatchEvent=Lr.prototype.b,Lr.prototype.getRevision=Lr.prototype.L,Lr.prototype.on=Lr.prototype.J,Lr.prototype.un=Lr.prototype.K,Ir.prototype.getActive=Ir.prototype.c,Ir.prototype.getMap=Ir.prototype.f,Ir.prototype.setActive=Ir.prototype.Ha,Ir.prototype.getKeys=Ir.prototype.O,Ir.prototype.getProperties=Ir.prototype.N,Ir.prototype.setProperties=Ir.prototype.H,Ir.prototype.unset=Ir.prototype.P,Ir.prototype.changed=Ir.prototype.s,Ir.prototype.dispatchEvent=Ir.prototype.b,Ir.prototype.getRevision=Ir.prototype.L,Ir.prototype.on=Ir.prototype.J,Ir.prototype.un=Ir.prototype.K,ld.prototype.getActive=ld.prototype.c,ld.prototype.getMap=ld.prototype.f,ld.prototype.setActive=ld.prototype.Ha,ld.prototype.getKeys=ld.prototype.O,ld.prototype.getProperties=ld.prototype.N,ld.prototype.setProperties=ld.prototype.H,ld.prototype.unset=ld.prototype.P,ld.prototype.changed=ld.prototype.s,ld.prototype.dispatchEvent=ld.prototype.b,ld.prototype.getRevision=ld.prototype.L,ld.prototype.on=ld.prototype.J,ld.prototype.un=ld.prototype.K,zr.prototype.getActive=zr.prototype.c,zr.prototype.getMap=zr.prototype.f,zr.prototype.setActive=zr.prototype.Ha,zr.prototype.getKeys=zr.prototype.O,zr.prototype.getProperties=zr.prototype.N,zr.prototype.setProperties=zr.prototype.H,zr.prototype.unset=zr.prototype.P,zr.prototype.changed=zr.prototype.s,zr.prototype.dispatchEvent=zr.prototype.b,zr.prototype.getRevision=zr.prototype.L,zr.prototype.on=zr.prototype.J,zr.prototype.un=zr.prototype.K,pn.prototype.getActive=pn.prototype.c,pn.prototype.getMap=pn.prototype.f,pn.prototype.setActive=pn.prototype.Ha,pn.prototype.getKeys=pn.prototype.O,pn.prototype.getProperties=pn.prototype.N,pn.prototype.setProperties=pn.prototype.H,pn.prototype.unset=pn.prototype.P,pn.prototype.changed=pn.prototype.s,pn.prototype.dispatchEvent=pn.prototype.b,pn.prototype.getRevision=pn.prototype.L,pn.prototype.on=pn.prototype.J,pn.prototype.un=pn.prototype.K,qr.prototype.getActive=qr.prototype.c,qr.prototype.getMap=qr.prototype.f,qr.prototype.setActive=qr.prototype.Ha,qr.prototype.getKeys=qr.prototype.O,qr.prototype.getProperties=qr.prototype.N,qr.prototype.setProperties=qr.prototype.H,qr.prototype.unset=qr.prototype.P,qr.prototype.changed=qr.prototype.s,qr.prototype.dispatchEvent=qr.prototype.b,qr.prototype.getRevision=qr.prototype.L,qr.prototype.on=qr.prototype.J,qr.prototype.un=qr.prototype.K,$r.prototype.getActive=$r.prototype.c,$r.prototype.getMap=$r.prototype.f,$r.prototype.setActive=$r.prototype.Ha,$r.prototype.getKeys=$r.prototype.O,$r.prototype.getProperties=$r.prototype.N,$r.prototype.setProperties=$r.prototype.H,$r.prototype.unset=$r.prototype.P,$r.prototype.changed=$r.prototype.s,$r.prototype.dispatchEvent=$r.prototype.b,$r.prototype.getRevision=$r.prototype.L,$r.prototype.on=$r.prototype.J,$r.prototype.un=$r.prototype.K,gd.prototype.getActive=gd.prototype.c,gd.prototype.getMap=gd.prototype.f,gd.prototype.setActive=gd.prototype.Ha,gd.prototype.getKeys=gd.prototype.O,gd.prototype.getProperties=gd.prototype.N,gd.prototype.setProperties=gd.prototype.H,gd.prototype.unset=gd.prototype.P,gd.prototype.changed=gd.prototype.s,gd.prototype.dispatchEvent=gd.prototype.b,gd.prototype.getRevision=gd.prototype.L,gd.prototype.on=gd.prototype.J,gd.prototype.un=gd.prototype.K,dn.prototype.getGeometry=dn.prototype.V,dn.prototype.getActive=dn.prototype.c,dn.prototype.getMap=dn.prototype.f,dn.prototype.setActive=dn.prototype.Ha,dn.prototype.getKeys=dn.prototype.O,dn.prototype.getProperties=dn.prototype.N,dn.prototype.setProperties=dn.prototype.H,dn.prototype.unset=dn.prototype.P,dn.prototype.changed=dn.prototype.s,dn.prototype.dispatchEvent=dn.prototype.b,dn.prototype.getRevision=dn.prototype.L,dn.prototype.on=dn.prototype.J,dn.prototype.un=dn.prototype.K,vg.prototype.getActive=vg.prototype.c,vg.prototype.getMap=vg.prototype.f,vg.prototype.setActive=vg.prototype.Ha,vg.prototype.getKeys=vg.prototype.O,vg.prototype.getProperties=vg.prototype.N,vg.prototype.setProperties=vg.prototype.H,vg.prototype.unset=vg.prototype.P,vg.prototype.changed=vg.prototype.s,vg.prototype.dispatchEvent=vg.prototype.b,vg.prototype.getRevision=vg.prototype.L,vg.prototype.on=vg.prototype.J,vg.prototype.un=vg.prototype.K,Fg.prototype.getActive=Fg.prototype.c,Fg.prototype.getMap=Fg.prototype.f,Fg.prototype.setActive=Fg.prototype.Ha,Fg.prototype.getKeys=Fg.prototype.O,Fg.prototype.getProperties=Fg.prototype.N,Fg.prototype.setProperties=Fg.prototype.H,Fg.prototype.unset=Fg.prototype.P,Fg.prototype.changed=Fg.prototype.s,Fg.prototype.dispatchEvent=Fg.prototype.b,Fg.prototype.getRevision=Fg.prototype.L,Fg.prototype.on=Fg.prototype.J,Fg.prototype.un=Fg.prototype.K,gn.prototype.getActive=gn.prototype.c,gn.prototype.getMap=gn.prototype.f,gn.prototype.setActive=gn.prototype.Ha,gn.prototype.getKeys=gn.prototype.O,gn.prototype.getProperties=gn.prototype.N,gn.prototype.setProperties=gn.prototype.H,gn.prototype.unset=gn.prototype.P,gn.prototype.changed=gn.prototype.s,gn.prototype.dispatchEvent=gn.prototype.b,gn.prototype.getRevision=gn.prototype.L,gn.prototype.on=gn.prototype.J,gn.prototype.un=gn.prototype.K,mn.prototype.getActive=mn.prototype.c,mn.prototype.getMap=mn.prototype.f,mn.prototype.setActive=mn.prototype.Ha,mn.prototype.getKeys=mn.prototype.O,mn.prototype.getProperties=mn.prototype.N,mn.prototype.setProperties=mn.prototype.H,mn.prototype.unset=mn.prototype.P,mn.prototype.changed=mn.prototype.s,mn.prototype.dispatchEvent=mn.prototype.b,mn.prototype.getRevision=mn.prototype.L,mn.prototype.on=mn.prototype.J,mn.prototype.un=mn.prototype.K,Vg.prototype.getActive=Vg.prototype.c,Vg.prototype.getMap=Vg.prototype.f,Vg.prototype.setActive=Vg.prototype.Ha,Vg.prototype.getKeys=Vg.prototype.O,Vg.prototype.getProperties=Vg.prototype.N,Vg.prototype.setProperties=Vg.prototype.H,Vg.prototype.unset=Vg.prototype.P,Vg.prototype.changed=Vg.prototype.s,Vg.prototype.dispatchEvent=Vg.prototype.b,Vg.prototype.getRevision=Vg.prototype.L,Vg.prototype.on=Vg.prototype.J,Vg.prototype.un=Vg.prototype.K,xn.prototype.getActive=xn.prototype.c,xn.prototype.getMap=xn.prototype.f,xn.prototype.setActive=xn.prototype.Ha,xn.prototype.getKeys=xn.prototype.O,xn.prototype.getProperties=xn.prototype.N,xn.prototype.setProperties=xn.prototype.H,xn.prototype.unset=xn.prototype.P,xn.prototype.changed=xn.prototype.s,xn.prototype.dispatchEvent=xn.prototype.b,xn.prototype.getRevision=xn.prototype.L,xn.prototype.on=xn.prototype.J,xn.prototype.un=xn.prototype.K,Mn.prototype.getActive=Mn.prototype.c,Mn.prototype.getMap=Mn.prototype.f,Mn.prototype.setActive=Mn.prototype.Ha,Mn.prototype.getKeys=Mn.prototype.O,Mn.prototype.getProperties=Mn.prototype.N,Mn.prototype.setProperties=Mn.prototype.H,Mn.prototype.unset=Mn.prototype.P,Mn.prototype.changed=Mn.prototype.s,Mn.prototype.dispatchEvent=Mn.prototype.b,Mn.prototype.getRevision=Mn.prototype.L,Mn.prototype.on=Mn.prototype.J,Mn.prototype.un=Mn.prototype.K,Cn.prototype.getActive=Cn.prototype.c,Cn.prototype.getMap=Cn.prototype.f,Cn.prototype.setActive=Cn.prototype.Ha,Cn.prototype.getKeys=Cn.prototype.O,Cn.prototype.getProperties=Cn.prototype.N,Cn.prototype.setProperties=Cn.prototype.H,Cn.prototype.unset=Cn.prototype.P,Cn.prototype.changed=Cn.prototype.s,Cn.prototype.dispatchEvent=Cn.prototype.b,Cn.prototype.getRevision=Cn.prototype.L,Cn.prototype.on=Cn.prototype.J,Cn.prototype.un=Cn.prototype.K,e0.prototype.getActive=e0.prototype.c,e0.prototype.getMap=e0.prototype.f,e0.prototype.setActive=e0.prototype.Ha,e0.prototype.getKeys=e0.prototype.O,e0.prototype.getProperties=e0.prototype.N,e0.prototype.setProperties=e0.prototype.H,e0.prototype.unset=e0.prototype.P,e0.prototype.changed=e0.prototype.s,e0.prototype.dispatchEvent=e0.prototype.b,e0.prototype.getRevision=e0.prototype.L,e0.prototype.on=e0.prototype.J,e0.prototype.un=e0.prototype.K,n0.prototype.getActive=n0.prototype.c,n0.prototype.getMap=n0.prototype.f,n0.prototype.setActive=n0.prototype.Ha,n0.prototype.getKeys=n0.prototype.O,n0.prototype.getProperties=n0.prototype.N,n0.prototype.setProperties=n0.prototype.H,n0.prototype.unset=n0.prototype.P,n0.prototype.changed=n0.prototype.s,n0.prototype.dispatchEvent=n0.prototype.b,n0.prototype.getRevision=n0.prototype.L,n0.prototype.on=n0.prototype.J,n0.prototype.un=n0.prototype.K,l0.prototype.getActive=l0.prototype.c,l0.prototype.getMap=l0.prototype.f,l0.prototype.setActive=l0.prototype.Ha,l0.prototype.getKeys=l0.prototype.O,l0.prototype.getProperties=l0.prototype.N,l0.prototype.setProperties=l0.prototype.H,l0.prototype.unset=l0.prototype.P,l0.prototype.changed=l0.prototype.s,l0.prototype.dispatchEvent=l0.prototype.b,l0.prototype.getRevision=l0.prototype.L,l0.prototype.on=l0.prototype.J,l0.prototype.un=l0.prototype.K,or.prototype.getKeys=or.prototype.O,or.prototype.getProperties=or.prototype.N,or.prototype.setProperties=or.prototype.H,or.prototype.unset=or.prototype.P,or.prototype.changed=or.prototype.s,or.prototype.dispatchEvent=or.prototype.b,or.prototype.getRevision=or.prototype.L,or.prototype.on=or.prototype.J,or.prototype.un=or.prototype.K,i.prototype.getClosestPoint=i.prototype.Ab,i.prototype.intersectsCoordinate=i.prototype.sb,i.prototype.getExtent=i.prototype.G,i.prototype.simplify=i.prototype.Rb,i.prototype.transform=i.prototype.tb,i.prototype.getKeys=i.prototype.O,i.prototype.getProperties=i.prototype.N,i.prototype.setProperties=i.prototype.H,i.prototype.unset=i.prototype.P,i.prototype.changed=i.prototype.s,i.prototype.dispatchEvent=i.prototype.b,i.prototype.getRevision=i.prototype.L,i.prototype.on=i.prototype.J,i.prototype.un=i.prototype.K,w.prototype.getFirstCoordinate=w.prototype.ac,w.prototype.getLastCoordinate=w.prototype.bc,w.prototype.getLayout=w.prototype.cc,w.prototype.getClosestPoint=w.prototype.Ab,w.prototype.intersectsCoordinate=w.prototype.sb,w.prototype.getExtent=w.prototype.G,w.prototype.simplify=w.prototype.Rb,w.prototype.getKeys=w.prototype.O,w.prototype.getProperties=w.prototype.N,w.prototype.setProperties=w.prototype.H,w.prototype.unset=w.prototype.P,w.prototype.changed=w.prototype.s,w.prototype.dispatchEvent=w.prototype.b,w.prototype.getRevision=w.prototype.L,w.prototype.on=w.prototype.J,w.prototype.un=w.prototype.K,zl.prototype.getClosestPoint=zl.prototype.Ab,zl.prototype.intersectsCoordinate=zl.prototype.sb,zl.prototype.getExtent=zl.prototype.G,zl.prototype.simplify=zl.prototype.Rb,zl.prototype.transform=zl.prototype.tb,zl.prototype.getKeys=zl.prototype.O,zl.prototype.getProperties=zl.prototype.N,zl.prototype.setProperties=zl.prototype.H,zl.prototype.unset=zl.prototype.P,zl.prototype.changed=zl.prototype.s,zl.prototype.dispatchEvent=zl.prototype.b,zl.prototype.getRevision=zl.prototype.L,zl.prototype.on=zl.prototype.J,zl.prototype.un=zl.prototype.K,lr.prototype.getFirstCoordinate=lr.prototype.ac,lr.prototype.getLastCoordinate=lr.prototype.bc,lr.prototype.getLayout=lr.prototype.cc,lr.prototype.getClosestPoint=lr.prototype.Ab,lr.prototype.intersectsCoordinate=lr.prototype.sb,lr.prototype.getExtent=lr.prototype.G,lr.prototype.simplify=lr.prototype.Rb,lr.prototype.transform=lr.prototype.tb,lr.prototype.getKeys=lr.prototype.O,lr.prototype.getProperties=lr.prototype.N,lr.prototype.setProperties=lr.prototype.H,lr.prototype.unset=lr.prototype.P,lr.prototype.changed=lr.prototype.s,lr.prototype.dispatchEvent=lr.prototype.b,lr.prototype.getRevision=lr.prototype.L,lr.prototype.on=lr.prototype.J,lr.prototype.un=lr.prototype.K,m.prototype.getFirstCoordinate=m.prototype.ac,m.prototype.getLastCoordinate=m.prototype.bc,m.prototype.getLayout=m.prototype.cc,m.prototype.getClosestPoint=m.prototype.Ab,m.prototype.intersectsCoordinate=m.prototype.sb,m.prototype.getExtent=m.prototype.G,m.prototype.simplify=m.prototype.Rb,m.prototype.transform=m.prototype.tb,m.prototype.getKeys=m.prototype.O,m.prototype.getProperties=m.prototype.N,m.prototype.setProperties=m.prototype.H,m.prototype.unset=m.prototype.P,m.prototype.changed=m.prototype.s,m.prototype.dispatchEvent=m.prototype.b,m.prototype.getRevision=m.prototype.L,m.prototype.on=m.prototype.J,m.prototype.un=m.prototype.K,a.prototype.getFirstCoordinate=a.prototype.ac,a.prototype.getLastCoordinate=a.prototype.bc,a.prototype.getLayout=a.prototype.cc,a.prototype.getClosestPoint=a.prototype.Ab,a.prototype.intersectsCoordinate=a.prototype.sb,a.prototype.getExtent=a.prototype.G,a.prototype.simplify=a.prototype.Rb,a.prototype.transform=a.prototype.tb,a.prototype.getKeys=a.prototype.O,a.prototype.getProperties=a.prototype.N,a.prototype.setProperties=a.prototype.H,a.prototype.unset=a.prototype.P,a.prototype.changed=a.prototype.s,a.prototype.dispatchEvent=a.prototype.b,a.prototype.getRevision=a.prototype.L,a.prototype.on=a.prototype.J,a.prototype.un=a.prototype.K,f.prototype.getFirstCoordinate=f.prototype.ac,f.prototype.getLastCoordinate=f.prototype.bc,f.prototype.getLayout=f.prototype.cc,f.prototype.getClosestPoint=f.prototype.Ab,f.prototype.intersectsCoordinate=f.prototype.sb,f.prototype.getExtent=f.prototype.G,f.prototype.simplify=f.prototype.Rb,f.prototype.transform=f.prototype.tb,f.prototype.getKeys=f.prototype.O,f.prototype.getProperties=f.prototype.N,f.prototype.setProperties=f.prototype.H,f.prototype.unset=f.prototype.P,f.prototype.changed=f.prototype.s,f.prototype.dispatchEvent=f.prototype.b,f.prototype.getRevision=f.prototype.L,f.prototype.on=f.prototype.J,f.prototype.un=f.prototype.K,b.prototype.getFirstCoordinate=b.prototype.ac,b.prototype.getLastCoordinate=b.prototype.bc,b.prototype.getLayout=b.prototype.cc,b.prototype.getClosestPoint=b.prototype.Ab,b.prototype.intersectsCoordinate=b.prototype.sb,b.prototype.getExtent=b.prototype.G,b.prototype.simplify=b.prototype.Rb,b.prototype.transform=b.prototype.tb,b.prototype.getKeys=b.prototype.O,b.prototype.getProperties=b.prototype.N,b.prototype.setProperties=b.prototype.H,b.prototype.unset=b.prototype.P,b.prototype.changed=b.prototype.s,b.prototype.dispatchEvent=b.prototype.b,b.prototype.getRevision=b.prototype.L,b.prototype.on=b.prototype.J,b.prototype.un=b.prototype.K,p.prototype.getFirstCoordinate=p.prototype.ac,p.prototype.getLastCoordinate=p.prototype.bc,p.prototype.getLayout=p.prototype.cc,p.prototype.getClosestPoint=p.prototype.Ab,p.prototype.intersectsCoordinate=p.prototype.sb,p.prototype.getExtent=p.prototype.G,p.prototype.simplify=p.prototype.Rb,p.prototype.transform=p.prototype.tb,p.prototype.getKeys=p.prototype.O,p.prototype.getProperties=p.prototype.N,p.prototype.setProperties=p.prototype.H,p.prototype.unset=p.prototype.P,p.prototype.changed=p.prototype.s,p.prototype.dispatchEvent=p.prototype.b,p.prototype.getRevision=p.prototype.L,p.prototype.on=p.prototype.J,p.prototype.un=p.prototype.K,s.prototype.getFirstCoordinate=s.prototype.ac,s.prototype.getLastCoordinate=s.prototype.bc,s.prototype.getLayout=s.prototype.cc,s.prototype.getClosestPoint=s.prototype.Ab,s.prototype.intersectsCoordinate=s.prototype.sb,s.prototype.getExtent=s.prototype.G,s.prototype.simplify=s.prototype.Rb,s.prototype.transform=s.prototype.tb,s.prototype.getKeys=s.prototype.O,s.prototype.getProperties=s.prototype.N,s.prototype.setProperties=s.prototype.H,s.prototype.unset=s.prototype.P,s.prototype.changed=s.prototype.s,s.prototype.dispatchEvent=s.prototype.b,s.prototype.getRevision=s.prototype.L,s.prototype.on=s.prototype.J,s.prototype.un=s.prototype.K,x.prototype.readFeatures=x.prototype.Oa,yh.prototype.readFeatures=yh.prototype.Oa,x.prototype.readFeatures=x.prototype.Oa,Po.prototype.getKeys=Po.prototype.O,Po.prototype.getProperties=Po.prototype.N,Po.prototype.setProperties=Po.prototype.H,Po.prototype.unset=Po.prototype.P,Po.prototype.changed=Po.prototype.s,Po.prototype.dispatchEvent=Po.prototype.b,Po.prototype.getRevision=Po.prototype.L,Po.prototype.on=Po.prototype.J,Po.prototype.un=Po.prototype.K,Mo.prototype.getMap=Mo.prototype.g,Mo.prototype.setTarget=Mo.prototype.f,Mo.prototype.getKeys=Mo.prototype.O,Mo.prototype.getProperties=Mo.prototype.N,Mo.prototype.setProperties=Mo.prototype.H,Mo.prototype.unset=Mo.prototype.P,Mo.prototype.changed=Mo.prototype.s,Mo.prototype.dispatchEvent=Mo.prototype.b,Mo.prototype.getRevision=Mo.prototype.L,Mo.prototype.on=Mo.prototype.J,Mo.prototype.un=Mo.prototype.K,ko.prototype.getMap=ko.prototype.g,ko.prototype.setTarget=ko.prototype.f,ko.prototype.getKeys=ko.prototype.O,ko.prototype.getProperties=ko.prototype.N,ko.prototype.setProperties=ko.prototype.H,ko.prototype.unset=ko.prototype.P,ko.prototype.changed=ko.prototype.s,ko.prototype.dispatchEvent=ko.prototype.b,ko.prototype.getRevision=ko.prototype.L,ko.prototype.on=ko.prototype.J,ko.prototype.un=ko.prototype.K,Ko.prototype.getMap=Ko.prototype.g,Ko.prototype.setTarget=Ko.prototype.f,Ko.prototype.getKeys=Ko.prototype.O,Ko.prototype.getProperties=Ko.prototype.N,Ko.prototype.setProperties=Ko.prototype.H,Ko.prototype.unset=Ko.prototype.P,Ko.prototype.changed=Ko.prototype.s,Ko.prototype.dispatchEvent=Ko.prototype.b,Ko.prototype.getRevision=Ko.prototype.L,Ko.prototype.on=Ko.prototype.J,Ko.prototype.un=Ko.prototype.K,ca.prototype.getMap=ca.prototype.g,ca.prototype.setTarget=ca.prototype.f,ca.prototype.getKeys=ca.prototype.O,ca.prototype.getProperties=ca.prototype.N,ca.prototype.setProperties=ca.prototype.H,ca.prototype.unset=ca.prototype.P,ca.prototype.changed=ca.prototype.s,ca.prototype.dispatchEvent=ca.prototype.b,ca.prototype.getRevision=ca.prototype.L,ca.prototype.on=ca.prototype.J,ca.prototype.un=ca.prototype.K,Ro.prototype.getMap=Ro.prototype.g,Ro.prototype.setTarget=Ro.prototype.f,Ro.prototype.getKeys=Ro.prototype.O,Ro.prototype.getProperties=Ro.prototype.N,Ro.prototype.setProperties=Ro.prototype.H,Ro.prototype.unset=Ro.prototype.P,Ro.prototype.changed=Ro.prototype.s,Ro.prototype.dispatchEvent=Ro.prototype.b,Ro.prototype.getRevision=Ro.prototype.L,Ro.prototype.on=Ro.prototype.J,Ro.prototype.un=Ro.prototype.K,va.prototype.getMap=va.prototype.g,va.prototype.setTarget=va.prototype.f,va.prototype.getKeys=va.prototype.O,va.prototype.getProperties=va.prototype.N,va.prototype.setProperties=va.prototype.H,va.prototype.unset=va.prototype.P,va.prototype.changed=va.prototype.s,va.prototype.dispatchEvent=va.prototype.b,va.prototype.getRevision=va.prototype.L,va.prototype.on=va.prototype.J,va.prototype.un=va.prototype.K,No.prototype.getMap=No.prototype.g,No.prototype.setMap=No.prototype.setMap,No.prototype.setTarget=No.prototype.f,No.prototype.get=No.prototype.get,No.prototype.getKeys=No.prototype.O,No.prototype.getProperties=No.prototype.N,No.prototype.set=No.prototype.set,No.prototype.setProperties=No.prototype.H,No.prototype.unset=No.prototype.P,No.prototype.changed=No.prototype.s,No.prototype.dispatchEvent=No.prototype.b,No.prototype.getRevision=No.prototype.L,No.prototype.on=No.prototype.J,No.prototype.once=No.prototype.once,No.prototype.un=No.prototype.K,Sa.prototype.getMap=Sa.prototype.g,Sa.prototype.setTarget=Sa.prototype.f,Sa.prototype.getKeys=Sa.prototype.O,Sa.prototype.getProperties=Sa.prototype.N,Sa.prototype.setProperties=Sa.prototype.H,Sa.prototype.unset=Sa.prototype.P,Sa.prototype.changed=Sa.prototype.s,Sa.prototype.dispatchEvent=Sa.prototype.b,Sa.prototype.getRevision=Sa.prototype.L,Sa.prototype.on=Sa.prototype.J,Sa.prototype.un=Sa.prototype.K,Ea.prototype.getMap=Ea.prototype.g,Ea.prototype.setTarget=Ea.prototype.f,Ea.prototype.getKeys=Ea.prototype.O,Ea.prototype.getProperties=Ea.prototype.N,Ea.prototype.setProperties=Ea.prototype.H,Ea.prototype.unset=Ea.prototype.P,Ea.prototype.changed=Ea.prototype.s,Ea.prototype.dispatchEvent=Ea.prototype.b,Ea.prototype.getRevision=Ea.prototype.L,Ea.prototype.on=Ea.prototype.J,Ea.prototype.un=Ea.prototype.K,O.ol}) |