mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-30 09:03:20 -05:00
1 line
473 KiB
JavaScript
1 line
473 KiB
JavaScript
!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define([],e):t.ol=e()}(this,function(){var F={},k=this;function t(t,e){var o,i=F;(t=t.split("."))[0]in(i=i||k)||!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 G(t,e){return e<t?1:t<e?-1:0}function D(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 X(t,e){var o=Array.isArray(e)?e:[e],i=o.length;for(e=0;e<i;e++)t[t.length]=o[e]}function V(t,e){-1<(e=t.indexOf(e))&&t.splice(e,1)}function W(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 Z(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 K(t){for(var o=ks,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 z(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 Y(){}function U(t){return t.Vo||(t.Vo=++H)}var H=0;function q(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 O(t,e){if(!t)throw new q(e)}function J(t,e,o,i){this.ca=t,this.$=e,this.da=o,this.ia=i}function _(t,e,o){return t.ca<=e&&e<=t.$&&t.da<=o&&o<=t.ia}function $(t,e){return t.ca<=e.$&&t.$>=e.ca&&t.da<=e.ia&&t.ia>=e.da}function Q(t,e,o){return Math.min(Math.max(t,e),o)}e(q,Error);var tt="cosh"in Math?Math.cosh:function(t){return((t=Math.exp(t))+1/t)/2};function et(t,e,o,i,r,n){var s,a=r-o,p=n-i;return(a||p)&&(1<(s=((t-o)*a+(e-i)*p)/(a*a+p*p))?(o=r,i=n):0<s&&(o+=a*s,i+=p*s)),ot(t,e,o,i)}function ot(t,e,o,i){return(t=o-t)*t+(e=i-e)*e}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 st(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]+2*e,o[1]=t[1]+2*e,o}function at(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 pt(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}function ht(t){for(var e=vt(),o=0,i=t.length;o<i;++o)Pt(e,t[o]);return e}function lt(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 ut(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function ct(t,e,o){return(e=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*e+(t=o<t[1]?t[1]-o:t[3]<o?o-t[3]:0)*t}function ft(t,e){return gt(t,e[0],e[1])}function yt(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function gt(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=t[2],r=t[3],n=e[0],s=(e=e[1],0);return n<t[0]?s|=16:i<n&&(s|=4),e<o?s|=8:r<e&&(s|=2),s=s||1}function vt(){return[1/0,1/0,-1/0,-1/0]}function bt(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 bt(1/0,1/0,-1/0,-1/0,t)}function wt(t,e){var o=t[0];return bt(o,t=t[1],o,t,e)}function xt(t,e,o,i,r){return At(r=mt(r),t,e,o,i)}function St(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function Mt(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function Pt(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function At(t,e,o,i,r){for(;o<i;o+=r){var n=t,s=e[o],a=e[o+1];n[0]=Math.min(n[0],s),n[1]=Math.min(n[1],a),n[2]=Math.max(n[2],s),n[3]=Math.max(n[3],a)}return t}function Et(t,e,o){return e.call(o,jt(t))||e.call(o,Ct(t))||e.call(o,kt(t))||e.call(o,Ft(t))||!1}function Tt(t){var e=0;return e=Ut(t)?e:Dt(t)*It(t)}function jt(t){return[t[0],t[1]]}function Ct(t){return[t[2],t[1]]}function Lt(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function Rt(t,e,o,i,r){var n=e*i[0]/2,s=(i=e*i[1]/2,e=Math.cos(o),Math.sin(o)),a=(o=n*e,n*=s,e*=i,i*s),p=t[0],h=t[1],a=(t=p-o+a,i=p-o-a,s=p+o-a,o=p+o+a,h-n-e),p=h-n+e,l=h+n+e,n=h+n-e;return bt(Math.min(t,i,s,o),Math.min(a,p,l,n),Math.max(t,i,s,o),Math.max(a,p,l,n),r)}function It(t){return t[3]-t[1]}function Nt(t,e,o){return o=o||vt(),Ot(t,e)&&(o[0]=(t[0]>e[0]?t:e)[0],o[1]=(t[1]>e[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 kt(t){return[t[2],t[3]]}function Dt(t){return t[2]-t[0]}function Ot(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function Ut(t){return t[2]<t[0]||t[3]<t[1]}function Gt(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 Bt(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 bt(e=Math.min.apply(null,i),t=Math.min.apply(null,r),Math.max.apply(null,i),Math.max.apply(null,r),o)}var Xt="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 s in n)n.hasOwnProperty(s)&&(o[s]=n[s])}return o};function Vt(t){for(var e in t)delete t[e]}function Wt(t){var e,o=[];for(e in t)o.push(t[e]);return o}function Zt(t){for(var e in t)return!1;return!e}function Kt(t){this.radius=t}Kt.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 s=t[n][0],a=t[n][1],e=e+it(s-i)*(2+Math.sin(it(r))+Math.sin(it(a))),i=s,r=a;return e*this.radius*this.radius/2},Kt.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))},Kt.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 zt=new Kt(6370997),Yt={},Ht=(Yt.degrees=2*Math.PI*zt.radius/360,Yt.ft=.3048,Yt.m=1,Yt["us-ft"]=1200/3937,null);function qt(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 Jt(t){qt.call(this,{code:t,units:"m",extent:$t,global:!0,worldExtent:Qt,getPointResolution:function(t,e){return t/tt(e[1]/6378137)}})}(r=qt.prototype).Jk=function(){return this.mb},r.G=function(){return this.f},r.Un=function(){return this.a},r.sc=function(){return this.l||Yt[this.a]},r.tl=function(){return this.g},r.dm=function(){return this.c},r.$p=function(t){this.c=t,this.i=!(!t||!this.f)},r.Vn=function(t){this.f=t,this.i=!(!this.c||!t)},r.kq=function(t){this.g=t},r.Zp=function(t){this.o=t},e(Jt,qt);var _t=6378137*Math.PI,$t=[-_t,-_t,_t,_t],Qt=[-180,-85,180,85],te="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 Jt(t)});function ee(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]=_t*t[r]/180;var n=6378137*Math.log(Math.tan(Math.PI*(t[r+1]+90)/360));_t<n?n=_t:n<-_t&&(n=-_t),e[r+1]=n}return e}function oe(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]/_t,e[r+1]=360*Math.atan(Math.exp(t[r+1]/6378137))/Math.PI-90;return e}var ie=new Kt(6378137);function re(t,e){qt.call(this,{code:t,units:"degrees",extent:ne,axisOrientation:e,global:!0,metersPerUnit:se,worldExtent:ne})}e(re,qt);var ne=[-180,-90,180,90],se=Math.PI*ie.radius/180,ae=[new re("CRS:84"),new re("EPSG:4326","neu"),new re("urn:ogc:def:crs:EPSG::4326","neu"),new re("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new re("urn:ogc:def:crs:OGC:1.3:CRS84"),new re("urn:ogc:def:crs:OGC:2:84"),new re("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new re("urn:x-ogc:def:crs:EPSG:4326","neu")],pe={},he={};function le(t,e,o){t=t.mb,e=e.mb,t in he||(he[t]={}),he[t][e]=o}function ue(t,e){var o;return o=t in he&&e in he[t]?he[t][e]:o}function ce(t,e,o){var i=(t=v(t)).o;return i?e=i(e,o):"degrees"!=t.a&&(e=(i=we(t,v("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=(zt.b(e.slice(0,2),e.slice(2,4))+zt.b(e.slice(4,6),e.slice(6,8)))/2,void 0!==(t=t.sc()))&&(e/=t),e}function fe(t){t.forEach(ye),t.forEach(function(e){t.forEach(function(t){e!==t&&le(e,t,Se)})})}function ye(t){le(pe[t.mb]=t,t,Se)}function ge(t){return t?"string"==typeof t?v(t):t:v("EPSG:3857")}function de(t,e,o,i){le(t=v(t),e=v(e),ve(o)),le(e,t,ve(i))}function ve(s){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=s([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 v(t){var e,o=null;return t instanceof qt?o=t:"string"==typeof t&&(o=pe[t]||null,e=Ht||window.proj4,o||"function"!=typeof e||void 0===e.defs(t)||ye(o=new qt({code:t}))),o}function be(t,e){var o;return t===e||(o=t.a===e.a,(t.mb===e.mb||we(t,e)===Se)&&o)}function me(t,e){return we(t=v(t),e=v(e))}function we(t,e){var o,i,r,n=t.mb,s=e.mb,a=ue(n,s);return a||"function"==typeof(o=Ht||window.proj4)&&(i=o.defs(n),r=o.defs(s),void 0!==i)&&void 0!==r&&(i===r?fe([e,t]):de(e,t,(a=o(s,n)).forward,a.inverse),a=ue(n,s)),a=a||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 Se(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 Me(t,e,o){return me(e,o)(t,void 0,t.length)}function Pe(t,e,o){return Bt(t,e=me(e,o))}function Ae(){fe(te),fe(ae),ae.forEach(function(e){te.forEach(function(t){le(e,t,ee),le(t,e,oe)})})}function Ee(t,e,o,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=o,i):[t,e,o]}function Te(t){this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.b=t.resolutions,O((o=this.b,i=function(t,e){return e-t}||G,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,O(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)),O(!this.i&&this.c||this.i&&!this.c,18),this.f=null,void 0!==t.tileSizes&&(this.f=t.tileSizes,O(this.f.length==this.b.length,19)),this.g=void 0!==t.tileSize?t.tileSize:this.f?null:256,O(!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 J(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,s=r.b.length,a=Array(s),p=r.minZoom;p<s;++p)a[p]=Ie(r,n,p);r.a=a}}Ae();var je=[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,Ie(t,r,e,i)))return!0;--e}return!1}function Le(t,e,o,i){return e[0]<t.maxZoom?(i=t.Aa(e,i),Ie(t,i,e[0]+1,o)):null}function Re(t,e,o,i){Fe(t,e[0],e[1],o,!1,je);var r=je[1],n=je[2];return Fe(t,e[2],e[3],o,!0,je),t=je[1],e=je[2],void 0!==i?(i.ca=r,i.$=t,i.da=n,i.ia=e):i=new J(r,t,n,e),i}function Ie(t,e,o,i){return Re(t,e,t.Da(o),i)}function Ne(t,e){var o=t.Pc(e[0]),i=t.Da(e[0]);return t=pt(t.gb(e[0]),t.j),[o[0]+(e[1]+.5)*t[0]*i,o[1]+(e[2]+.5)*t[1]*i]}function Fe(t,e,o,i,r,n){var s=t.tc(i),a=i/t.Da(s),p=t.Pc(s);return t=pt(t.gb(s),t.j),e=a*Math.floor((e-p[0])/i+(r?.5:0))/t[0],o=a*Math.floor((o-p[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)),Ee(s,e,o,n)}function ke(t){var e=t.j;return e||(e=Ue(t),t.j=e),e}function De(t){var e={};return Xt(e,t||{}),void 0===e.extent&&(e.extent=v("EPSG:3857").G()),e.resolutions=Oe(e.extent,e.maxZoom,e.tileSize),delete e.maxZoom,new Te(e)}function Oe(t,e,o){e=void 0!==e?e:42;var i=It(t);for(t=Dt(t),o=pt(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 Ue(t,e,o){return e=Oe(t=Ge(t),e,o),new Te({extent:t,origin:Ft(t),resolutions:e,tileSize:o})}function Ge(t){var e=(t=v(t)).G();return e=e?e:bt(-(t=180*Yt.degrees/t.sc()),-t,t,t)}function Be(t){this.b=t.html,this.a=t.tileRanges||null}function Xe(t){return t}function Ve(i){return i.mh=function(t){var e=i.listener,o=i.lh||i.target;return i.nh&&qe(i),e.call(o,t)}}function We(t,e,o,i){for(var r,n=0,s=t.length;n<s;++n)if((r=t[n]).listener===e&&r.lh===o)return i&&(r.deleteIndex=n),r}function Ze(t,e){return(t=t.fb)?t[e]:void 0}function Ke(t){return t.fb||(t.fb={})}function ze(t,e){var o=Ze(t,e);if(o){for(var i=0,r=o.length;i<r;++i)t.removeEventListener(e,o[i].mh),Vt(o[i]);o.length=0,(o=t.fb)&&(delete o[e],Object.keys(o).length||delete t.fb)}}function d(t,e,o,i,r){var n=Ke(t),s=n[e];return(n=We(s=s||(n[e]=[]),o,i,!1))?r||(n.nh=!1):(t.addEventListener(e,Ve(n={lh:i,nh:!!r,listener:o,target:t,type:e})),s.push(n)),n}function Ye(t,e,o,i){return d(t,e,o,i,!0)}function He(t,e,o,i){(t=Ze(t,e))&&(o=We(t,o,i,!0))&&qe(o)}function qe(t){var e,o;t&&t.target&&(t.target.removeEventListener(t.type,t.mh),(e=Ze(t.target,t.type))&&(-1!==(o="deleteIndex"in t?t.deleteIndex:e.indexOf(t))&&e.splice(o,1),e.length||ze(t.target,t.type)),Vt(t))}function Je(t){for(var e in Ke(t))ze(t,e)}function _e(){}function $e(t){t.Jb||(t.Jb=!0,t.ka())}function Qe(t){this.type=t,this.target=null}function to(t){t.stopPropagation()}function eo(){this.Ua={},this.ra={},this.oa={}}function oo(t,e){return e?e in t.oa:0<Object.keys(t.oa).length}function io(){eo.call(this),this.i=0}function ro(t){io.call(this),U(this),this.S={},void 0!==t&&this.H(t)}(r=Te.prototype).Rf=function(t,e,o){for(var i=(t=Ie(this,t,e)).ca,r=t.$;i<=r;++i)for(var n=t.da,s=t.ia;n<=s;++n)o([e,i,n])},r.G=function(){return this.v},r.Ti=function(){return this.maxZoom},r.Ui=function(){return this.minZoom},r.Pc=function(t){return this.i||this.c[t]},r.Da=function(t){return this.b[t]},r.Vi=function(){return this.b},r.Aa=function(t,e){var o=this.Pc(t[0]),i=this.Da(t[0]),r=pt(this.gb(t[0]),this.j),n=o[0]+t[1]*r[0]*i;return bt(n,t=o[1]+t[2]*r[1]*i,n+r[0]*i,t+r[1]*i,e)},r.Be=function(t,e,o){return Fe(this,t[0],t[1],e,!1,o)},r.bg=function(t,e,o){return Fe(this,t[0],t[1],this.Da(e),!1,o)},r.gb=function(t){return this.g||this.f[t]},r.tc=function(t,e){return Q(B(this.b,t,e||0),this.minZoom,this.maxZoom)},_e.prototype.Jb=!(Be.prototype.i=function(){return this.b}),_e.prototype.ka=Y,Qe.prototype.preventDefault=Qe.prototype.stopPropagation=function(){this.qp=!0},e(eo,_e),eo.prototype.addEventListener=function(t,e){var o=this.oa[t];-1===(o=o||(this.oa[t]=[])).indexOf(e)&&o.push(e)},eo.prototype.b=function(t){var e="string"==typeof t?new Qe(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,Y);delete this.ra[t]}return n}},eo.prototype.ka=function(){Je(this)},eo.prototype.removeEventListener=function(t,e){var o=this.oa[t];o&&(e=o.indexOf(e),t in this.Ua?(o[e]=Y,++this.Ua[t]):(o.splice(e,1),o.length||delete this.oa[t]))},e(io,eo),(r=io.prototype).s=function(){++this.i,this.b("change")},r.L=function(){return this.i},r.J=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=d(this,t[n],e,o);return r}return d(this,t,e,o)},r.once=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=Ye(this,t[n],e,o);return r}return Ye(this,t,e,o)},r.K=function(t,e,o){if(Array.isArray(t))for(var i=0,r=t.length;i<r;++i)He(this,t[i],e,o);else He(this,t,e,o)},e(ro,io);var no={};function so(t){return no.hasOwnProperty(t)?no[t]:no[t]="change:"+t}function ao(t,e,o){var i=so(e);t.b(new po(i,e,o)),t.b(new po("propertychange",e,o))}function po(t,e,o){Qe.call(this,t),this.key=e,this.oldValue=o}function ho(t,e){if(ro.call(this),this.c=!!(e||{}).unique,this.a=t||[],this.c)for(t=0,e=this.a.length;t<e;++t)uo(this,this.a[t],t);lo(this)}function lo(t){t.set(co,t.a.length)}function uo(t,e,o){for(var i=0,r=t.a.length;i<r;++i)if(t.a[i]===e&&i!==o)throw new q(58)}(r=ro.prototype).get=function(t){var e;return e=this.S.hasOwnProperty(t)?this.S[t]:e},r.O=function(){return Object.keys(this.S)},r.N=function(){return Xt({},this.S)},r.set=function(t,e,o){o?this.S[t]=e:(o=this.S[t])!==(this.S[t]=e)&&ao(this,t,o)},r.H=function(t,e){for(var o in t)this.set(o,t[o],e)},r.P=function(t,e){var o;t in this.S&&(o=this.S[t],delete this.S[t],e||ao(this,t,o))},e(po,Qe),e(ho,ro),(r=ho.prototype).clear=function(){for(;0<this.dc();)this.pop()},r.fg=function(t){for(var e=0,o=t.length;e<o;++e)this.push(t[e]);return this},r.forEach=function(t,e){this.a.forEach(t,e)},r.tm=function(){return this.a},r.item=function(t){return this.a[t]},r.dc=function(){return this.get(co)},r.He=function(t,e){this.c&&uo(this,e),this.a.splice(t,0,e),lo(this),this.b(new fo("add",e))},r.pop=function(){return this.Hg(this.dc()-1)},r.push=function(t){this.c&&uo(this,t);var e=this.dc();return this.He(e,t),this.dc()},r.remove=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o]===t)return this.Hg(o)},r.Hg=function(t){var e=this.a[t];return this.a.splice(t,1),lo(this),this.b(new fo("remove",e)),e},r.Wp=function(t,e){var o=this.dc();if(t<o)this.c&&uo(this,e,t),o=this.a[t],this.a[t]=e,this.b(new fo("remove",o)),this.b(new fo("add",e));else{for(;o<t;++o)this.He(o,void 0);this.He(t,e)}};var co="length";function fo(t,e){Qe.call(this,t),this.element=e}e(fo,Qe);var yo=/^#(?:[0-9a-f]{3}){1,2}$/i,go=/^([a-z]*)$/i;function vo(t){return Array.isArray(t)?t:xo(t)}function bo(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}mo={},wo=0;var mo,wo,xo=function(t){if(mo.hasOwnProperty(t))var e=mo[t];else{if(1024<=wo)for(var o in e=0,mo)3&e++||(delete mo[o],--wo);var i,r;go.exec(e=t)&&((o=document.createElement("div")).style.color=e,document.body.appendChild(o),e=getComputedStyle(o).color,document.body.removeChild(o)),yo.exec(e)?(O(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(")?O(!1,14):((e=e.slice(4,-1).split(",").map(Number)).push(1),r=So(e)):r=So(e=e.slice(5,-1).split(",").map(Number)),e=r,mo[t]=e,++wo}return e};function So(t){var e=[];return e[0]=Q(t[0]+.5|0,0,255),e[1]=Q(t[1]+.5|0,0,255),e[2]=Q(t[2]+.5|0,0,255),e[3]=Q(t[3],0,1),e}function Mo(t){return"string"==typeof t||t instanceof CanvasPattern||t instanceof CanvasGradient?t:bo(t)}function Po(t,e){var o=document.createElement("CANVAS");return t&&(o.width=t),e&&(o.height=e),o.getContext("2d")}function Ao(t,e){var o=e.parentNode;o&&o.replaceChild(t,e)}function Eo(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function To(t){ro.call(this),this.element=t.element||null,this.a=this.R=null,this.v=[],this.render=t.render||Y,t.target&&this.f(t.target)}function jo(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),d(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),To.call(this,{element:o,render:t.render||Co,target:t.target}),this.B=!0,this.l={},this.j={},this.T={}}function Co(t){if(t=t.frameState){var e,o,i,r,n,s,a,p=t.layerStatesArray,h=Xt({},t.attributions),l={},u={},c=t.viewState.projection,f=0;for(a=p.length;f<a;f++)if(o=p[f].layer.ha()){var y=U(o).toString();if(i=o.j)for(var g=0,d=i.length;g<d;g++){var v=i[g],b=U(v).toString();if(!(b in h)){if(e=t.usedTiles[y])t:{var m=void 0,w=v,x=M=o.Ta(c),S=c;if(w.a){for(m in e)if(m in w.a)for(var M=e[m],P=0,A=w.a[m].length;P<A;++P){var E=w.a[m][P];if($(E,M)){m=!0;break t}var T=Ie(x,Ge(S),parseInt(m,10)),j=T.$-T.ca+1;if((M.ca<T.ca||M.$>T.$)&&($(E,new J(rt(M.ca,j),rt(M.$,j),M.da,M.ia))||M.$-M.ca+1>j&&$(E,T))){m=!0;break t}}m=!1}else m=!0}else m=!1;m?(b in l&&delete l[b],(m=v.b)in u||(u[m]=!0,h[b]=v)):l[b]=v}}}for(r in f=(a=[h,l])[0],a=a[1],this.l)r in f?(this.j[r]||(this.l[r].style.display="",this.j[r]=!0),delete f[r]):r in a?(this.j[r]&&(this.l[r].style.display="none",delete this.j[r]),delete a[r]):(Eo(this.l[r]),delete this.l[r],delete this.j[r]);for(r in f)g=document.createElement("LI"),g.innerHTML=f[r].b,this.I.appendChild(g),this.l[r]=g,this.j[r]=!0;for(r in a)g=document.createElement("LI"),g.innerHTML=a[r].b,g.style.display="none",this.I.appendChild(g),this.l[r]=g;for(s in r=!Zt(this.j)||!Zt(t.logos),this.B!=r&&(this.element.style.display=r?"":"none",this.B=r),r&&Zt(this.j)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only"),t=t.logos,r=this.T)s in t||(Eo(r[s]),delete r[s]);for(n in t)(a=t[n])instanceof HTMLElement&&(this.u.appendChild(a),r[n]=a),n in r||((s=new Image).src=n,""===a?f=s:((f=document.createElement("a")).href=a,f.appendChild(s)),this.u.appendChild(f),r[n]=f);this.u.style.display=Zt(t)?"none":""}else this.B&&(this.element.style.display="none",this.B=!1)}function Lo(t){t.element.classList.toggle("ol-collapsed"),t.c?Ao(t.D,t.C):Ao(t.C,t.D),t.c=!t.c}function Ro(t){return Math.pow(t,3)}function Io(t){return 1-Ro(1-t)}function No(t){return 3*t*t-2*t*t*t}function Fo(t){return t}function ko(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),d(o,"click",ko.prototype.D,this),(i=document.createElement("div")).className=e+" ol-unselectable ol-control",i.appendChild(o),e=t.render||Do,this.o=t.resetNorth||void 0,To.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 Do(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 Oo(t){var e=void 0!==(t=t||{}).className?t.className:"ol-zoom",o=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInLabel?t.zoomInLabel:"+",r=void 0!==t.zoomOutLabel?t.zoomOutLabel:"−",n=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",s=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",a=document.createElement("button");a.className=e+"-in",a.setAttribute("type","button"),a.title=n,a.appendChild("string"==typeof i?document.createTextNode(i):i),d(a,"click",Oo.prototype.j.bind(this,o)),(i=document.createElement("button")).className=e+"-out",i.setAttribute("type","button"),i.title=s,i.appendChild("string"==typeof r?document.createTextNode(r):r),d(i,"click",Oo.prototype.j.bind(this,-o)),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(a),o.appendChild(i),To.call(this,{element:o,target:t.target}),this.c=void 0!==t.duration?t.duration:250}function Uo(t){t=t||{};var e=new ho;return void 0!==t.zoom&&!t.zoom||e.push(new Oo(t.zoomOptions)),void 0!==t.rotate&&!t.rotate||e.push(new ko(t.rotateOptions)),void 0!==t.attribution&&!t.attribution||e.push(new jo(t.attributionOptions)),e}function Go(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,e=void 0!==t.labelActive?t.labelActive:"×",this.l="string"==typeof e?document.createTextNode(e):e,t.tipLabel||"Toggle full-screen");(e=document.createElement("button")).className=this.c+"-"+Xo(),e.setAttribute("type","button"),e.title=o,e.appendChild(this.o),d(e,"click",this.C,this),(o=document.createElement("div")).className=this.c+" ol-unselectable ol-control "+(Bo()?"":"ol-unsupported"),o.appendChild(e),To.call(this,{element:o,target:t.target}),this.D=void 0!==t.keys&&t.keys,this.j=t.source}function Bo(){var t=document.body;return t.webkitRequestFullscreen||t.mozRequestFullScreen&&document.mozFullScreenEnabled||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled}function Xo(){return!!(document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||document.fullscreenElement)}function Vo(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}e(To,ro),To.prototype.ka=function(){Eo(this.element),ro.prototype.ka.call(this)},To.prototype.g=function(){return this.a},To.prototype.setMap=function(t){this.a&&Eo(this.element);for(var e=0,o=this.v.length;e<o;++e)qe(this.v[e]);this.v.length=0,(this.a=t)&&((this.R||t.D).appendChild(this.element),this.render!==Y&&this.v.push(d(t,"postrender",this.render,this)),t.render())},To.prototype.f=function(t){this.R="string"==typeof t?document.getElementById(t):t},e(jo,To),(r=jo.prototype).Vm=function(t){t.preventDefault(),Lo(this)},r.Um=function(){return this.o},r.Xm=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t)&&this.c&&Lo(this)},r.Wm=function(t){this.o&&this.c!==t&&Lo(this)},r.Tm=function(){return this.c},e(ko,To),ko.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:Io}):t.Oe(0))},e(Oo,To),Oo.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:Io})):e.Vc(t))},e(Go,To),Go.prototype.C=function(t){t.preventDefault(),Bo()&&(t=this.a)&&(Xo()?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):Vo(t):Vo(t)))},Go.prototype.u=function(){var t=this.element.firstElementChild,e=this.a;Xo()?(t.className=this.c+"-true",Ao(this.l,this.o)):(t.className=this.c+"-false",Ao(this.o,this.l)),e&&e.Ad()},Go.prototype.setMap=function(t){To.prototype.setMap.call(this,t),t&&this.v.push(d(document,Zo(),this.u,this))};var Wo,Zo=function(){var t;return Wo||((t=document.body).webkitRequestFullscreen?Wo="webkitfullscreenchange":t.mozRequestFullScreen?Wo="mozfullscreenchange":t.msRequestFullscreen?Wo="MSFullscreenChange":t.requestFullscreen&&(Wo="fullscreenchange")),Wo};function Ko(t){t=t||{};var e=document.createElement("DIV");e.className=void 0!==t.className?t.className:"ol-mouse-position",To.call(this,{element:e,render:t.render||zo,target:t.target}),d(this,so(Ho),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 zo(t){(t=t.frameState)?this.c!=t.viewState.projection&&(this.c=t.viewState.projection,this.j=null):this.c=null,Yo(this,this.o)}function Yo(t,e){var o,i=t.u;e&&t.c&&(t.j||(o=t.Zh(),t.j=o?we(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,To),(r=Ko.prototype).Ym=function(){this.j=null},r.xh=function(){return this.get(qo)},r.Zh=function(){return this.get(Ho)},r.Ll=function(t){this.o=this.a.xe(t),Yo(this,this.o)},r.Ml=function(){Yo(this,null),this.o=null},r.setMap=function(t){To.prototype.setMap.call(this,t),t&&(t=t.a,this.v.push(d(t,"mousemove",this.Ll,this),d(t,"mouseout",this.Ml,this)))},r.kj=function(t){this.set(qo,t)},r.$h=function(t){this.set(Ho,v(t))};var Ho="projection",qo="coordinateFormat";function Jo(t,e,o){Qe.call(this,t),this.map=e,this.frameState=void 0!==o?o:null}function _o(t,e,o,i,r){Jo.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(Jo,Qe),e(_o,Jo),_o.prototype.preventDefault=function(){Jo.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},_o.prototype.stopPropagation=function(){Jo.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()};var $o=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Qo(t,e){for(var o,i=$o.length,r=0;r<i;++r)try{if(o=t.getContext($o[r],e))return o}catch(t){}return null}var ti="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",ei=-1!==ti.indexOf("firefox"),oi=-1!==ti.indexOf("safari")&&-1==ti.indexOf("chrom"),ii=-1!==ti.indexOf("webkit")&&-1==ti.indexOf("edge"),ri=-1!==ti.indexOf("macintosh"),ni=window.devicePixelRatio||1,si=!1,ai=function(){if(!("HTMLCanvasElement"in window))return!1;try{var t=document.createElement("CANVAS").getContext("2d");return!!t&&(void 0!==t.setLineDash&&(si=!0),!0)}catch(t){return!1}}(),pi="DeviceOrientationEvent"in window,hi="geolocation"in navigator,li="ontouchstart"in window,ui="PointerEvent"in window,ci=!!navigator.msPointerEnabled,ti=!1,fi=[];if("WebGLRenderingContext"in window)try{var yi=Qo(document.createElement("CANVAS"),{failIfMajorPerformanceCaveat:!0});yi&&(ti=!0,By=yi.getParameter(yi.MAX_TEXTURE_SIZE),fi=yi.getSupportedExtensions())}catch(t){}var gi=ti,di=fi,vi=By,bi={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 mi(t,e,o,i,r){_o.call(this,t,e,o.b,i,r),this.b=o}function wi(t,e){this.b=t,this.f=e}function xi(t){wi.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 Si(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 s=Math.abs(e-i[1]);if(Math.abs(o-i[0])<=25&&s<=25)return 1}}function Mi(t){var e=Fi(t,t),o=e.preventDefault;return e.preventDefault=function(){t.preventDefault(),o()},e.pointerId=1,e.isPrimary=!0,e.pointerType="mouse",e}function Pi(t){wi.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 Ai(t,e){var o=e;return"number"==typeof e.pointerType&&((o=Fi(e,e)).pointerType=t.i[e.pointerType]),o}function Ei(t){wi.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 Ti(t,e,o){var i;Qe.call(this,t),this.b=e,this.buttons=function(t){if(t.buttons||ji)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(mi,_o),e(xi,wi),(r=xi.prototype).fm=function(t){var e;Si(this,t)||(1..toString()in this.a&&this.cancel(t),e=Mi(t),this.a[1..toString()]=t,Ui(this.b,"pointerdown",e,t))},r.gm=function(t){var e;Si(this,t)||(e=Mi(t),Ui(this.b,"pointermove",e,t))},r.jm=function(t){var e;Si(this,t)||(e=this.a[1..toString()])&&e.button===t.button&&(e=Mi(t),Ui(this.b,"pointerup",e,t),delete this.a[1..toString()])},r.im=function(t){var e;Si(this,t)||(e=Mi(t),Oi(this.b,e,t))},r.hm=function(t){var e;Si(this,t)||(e=Mi(t),Di(this.b,e,t))},r.cancel=function(t){var e=Mi(t);this.b.cancel(e,t),delete this.a[1..toString()]},e(Pi,wi),(r=Pi.prototype).om=function(t){this.a[t.pointerId.toString()]=t;var e=Ai(this,t);Ui(this.b,"pointerdown",e,t)},r.pm=function(t){var e=Ai(this,t);Ui(this.b,"pointermove",e,t)},r.sm=function(t){var e=Ai(this,t);Ui(this.b,"pointerup",e,t),delete this.a[t.pointerId.toString()]},r.qm=function(t){var e=Ai(this,t);Di(this.b,e,t)},r.rm=function(t){var e=Ai(this,t);Oi(this.b,e,t)},r.nm=function(t){var e=Ai(this,t);this.b.cancel(e,t),delete this.a[t.pointerId.toString()]},r.mm=function(t){this.b.b(new Ti("lostpointercapture",t,t))},r.lm=function(t){this.b.b(new Ti("gotpointercapture",t,t))},e(Ei,wi),(r=Ei.prototype).ip=function(t){Gi(this.b,t)},r.jp=function(t){Gi(this.b,t)},r.mp=function(t){Gi(this.b,t)},r.kp=function(t){Gi(this.b,t)},r.lp=function(t){Gi(this.b,t)},r.hp=function(t){Gi(this.b,t)},r.em=function(t){Gi(this.b,t)},r.ul=function(t){Gi(this.b,t)},e(Ti,Qe);var ji=!1;try{ji=1===new MouseEvent("click",{buttons:1}).buttons}catch(t){}function Ci(t,e){wi.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 Li(t,e,o){function i(){e.preventDefault()}for(var r,n,s=Array.prototype.slice.call(e.changedTouches),a=s.length,p=0;p<a;++p){h=t,r=e,n=s[p],(r=Fi(r,n)).pointerId=n.identifier+2,r.bubbles=!0,r.cancelable=!0,r.detail=h.g,r.button=0,r.buttons=1,r.width=n.webkitRadiusX||n.radiusX||0,r.height=n.webkitRadiusY||n.radiusY||0,r.pressure=n.webkitForce||n.force||.5,r.isPrimary=h.i===n.identifier,r.pointerType="touch",r.clientX=n.clientX,r.clientY=n.clientY,r.screenX=n.screenX,r.screenY=n.screenY;var h=r;h.preventDefault=i,o.call(t,e,h)}}function Ri(t,e){var o,i=t.j.i;e=e.changedTouches[0],t.i===e.identifier&&(o=[e.clientX,e.clientY],i.push(o),setTimeout(function(){V(i,o)},2500))}function Ii(t){eo.call(this),this.g=t,this.i={},this.f={},this.a=[],ui?Ni(this,new Ei(this)):ci?Ni(this,new Pi(this)):(Ni(this,t=new xi(this)),li&&Ni(this,new Ci(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){d(this.g,t,this.c,this)},o)}function Ni(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 Fi(t,e){for(var o,i={},r=0,n=Bi.length;r<n;r++)i[o=Bi[r][0]]=t[o]||e[o]||Bi[r][1];return i}function ki(t,e,o){e.bubbles=!1,Ui(t,"pointerleave",e,o)}function Di(t,e,o){t.out(e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||ki(t,e,o)}function Oi(t,e,o){e.bubbles=!0,Ui(t,"pointerover",e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||(e.bubbles=!1,Ui(t,"pointerenter",e,o))}function Ui(t,e,o,i){t.b(new Ti(e,i,o))}function Gi(t,e){t.b(new Ti(e.type,e,e))}e(Ci,wi),(r=Ci.prototype).ij=function(){this.g=0,this.c=void 0},r.rq=function(t){var e=t.touches,o=Object.keys(this.a),i=o.length;if(i>=e.length){for(var r=[],n=0;n<i;++n){var s,a=o[n],p=this.a[a];if(!(s=1==a))t:{for(var h=e.length,l=0;l<h;l++)if((s=e[l]).identifier===a-2){s=!0;break t}s=!1}s||r.push(p.out)}for(n=0;n<r.length;++n)this.Kf(t,r[n])}e=t.changedTouches[0],(!(o=Object.keys(this.a).length)||1===o&&1..toString()in this.a)&&(this.i=e.identifier,void 0!==this.c)&&clearTimeout(this.c),Ri(this,t),this.g++,Li(this,t,this.cp)},r.cp=function(t,e){this.a[e.pointerId]={target:e.target,out:e,Wi:e.target};var o=this.b;e.bubbles=!0,Ui(o,"pointerover",e,t),o=this.b,e.bubbles=!1,Ui(o,"pointerenter",e,t),Ui(this.b,"pointerdown",e,t)},r.qq=function(t){t.preventDefault(),Li(this,t,this.km)},r.km=function(t,e){var o,i,r=this.a[e.pointerId];r&&(o=r.out,i=r.Wi,Ui(this.b,"pointermove",e,t),o&&i!==e.target&&(o.relatedTarget=e.target,e.relatedTarget=i,o.target=i,e.target?(Di(this.b,o,t),Oi(this.b,e,t)):(e.target=i,e.relatedTarget=null,this.Kf(t,e))),r.out=e,r.Wi=e.target)},r.pq=function(t){Ri(this,t),Li(this,t,this.sq)},r.sq=function(t,e){Ui(this.b,"pointerup",e,t),this.b.out(e,t),ki(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},r.oq=function(t){Li(this,t,this.Kf)},r.Kf=function(t,e){this.b.cancel(e,t),this.b.out(e,t),ki(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},e(Ii,eo),Ii.prototype.c=function(t){var e=this.f[t.type];e&&e(t)},Ii.prototype.out=function(t,e){t.bubbles=!0,Ui(this,"pointerout",t,e)},Ii.prototype.cancel=function(t,e){Ui(this,"pointercancel",t,e)};var Bi=[["bubbles",!(Ii.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);eo.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 Xi(t,e){eo.call(this),this.i=t,this.j=0,this.o=!1,this.f=[],this.D=e?e*ni:ni,this.c=null,t=this.i.a,this.S=0,this.u={},this.g=new Ii(t),this.a=null,this.l=d(this.g,"pointerdown",this.Ol,this),this.v=d(this.g,"pointermove",this.Lp,this)}function Vi(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 Wi(t,e){return Math.abs(e.clientX-t.c.clientX)>t.D||Math.abs(e.clientY-t.c.clientY)>t.D}function Zi(t,e){this.l=t,this.c=e,this.b=[],this.i=[],this.a={}}function Ki(t){var e=t.b,o=t.i,i=e[0];return 1==e.length?(e.length=0,o.length=0):(e[0]=e.pop(),o[0]=o.pop(),zi(t,0)),e=t.c(i),delete t.a[e],i}function zi(t,e){for(var o=t.b,i=t.i,r=o.length,n=o[e],s=i[e],a=e;e<r>>1;){var p=2*e+1,h=2*e+2,p=h<r&&i[h]<i[p]?h:p;o[e]=o[p],i[e]=i[p],e=p}o[e]=n,i[e]=s,Yi(t,a,e)}function Yi(t,e,o){var i=t.b;t=t.i;for(var r=i[o],n=t[o];e<o;){var s=o-1>>1;if(!(t[s]>n))break;i[o]=i[s],t[o]=t[s],o=s}i[o]=r,t[o]=n}function Hi(t){for(var e=t.l,o=t.b,i=t.i,r=0,n=o.length,s=0;s<n;++s){var a=o[s],p=e(a);1/0==p?delete t.a[t.c(a)]:(i[r]=p,o[r++]=a)}for(o.length=r,i.length=r,e=(t.b.length>>1)-1;0<=e;e--)zi(t,e)}function qi(e,t){Zi.call(this,function(t){return e.apply(null,t)},function(t){return t[0].bb()}),this.v=t,this.j=0,this.g={}}function Ji(t,e,o){for(var i,r,n=0;t.j<e&&n<o&&0<t.b.length;)r=(i=Ki(t)[0]).bb(),0!==i.getState()||r in t.g||(t.g[r]=!0,++t.j,++n,i.load())}function _i(t){if(void 0!==t)return 0}function $i(t,e){if(void 0!==t)return t+e}function Qi(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 tr(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 er(t,e){return t[0]+=e[0],t[1]+=e[1],t}function or(t,e){var o=t[0],i=(t=t[1],e[0]),r=e[1],i=(e=i[0],i[1]),n=r[0],s=n-e,a=(r=r[1])-i;return o=(o=s||a?(s*(o-e)+a*(t-i))/(s*s+a*a||0):0)<=0?(t=e,i):1<=o?(t=n,r):(t=e+o*s,i+o*a),[t,o]}function ir(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),s=Math.floor((i-3600*n)/60);return 60<=(i=Math.ceil((i-3600*n-60*s)*r)/r)&&(i=0,s+=1),60<=s&&(s=0,n+=1),n+"° "+Qi(s)+"′ "+Qi(i,o)+"″"+(e?" "+t.charAt(e<0?1:0):"")}function rr(t,e,o){return t?e.replace("{x}",t[0].toFixed(o)).replace("{y}",t[1].toFixed(o)):""}function nr(t,e){for(var o=!0,i=t.length-1;0<=i;--i)if(t[i]!=e[i]){o=!1;break}return o}function sr(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 ar(t,e){t[0]*=e,t[1]*=e}function pr(t,e){var o=t[0]-e[0];return o*o+(t=t[1]-e[1])*t}function hr(t,e){return Math.sqrt(pr(t,e))}function lr(t,e){return pr(t,or(t,e))}function ur(t,e){return rr(t,"{x}, {y}",e)}function cr(){return!0}function fr(){return!1}function yr(){ro.call(this),this.l=vt(),this.v=-1,this.f={},this.o=this.g=0}function gr(t,e,o,i,r,n){for(var s=n||[],a=0;e<o;e+=i){var p=t[e],h=t[e+1];s[a++]=r[0]*p+r[2]*h+r[4],s[a++]=r[1]*p+r[3]*h+r[5]}return n&&s.length!=a&&(s.length=a),s}function dr(t,e,o,i,r,n,s){for(var a,p=s||[],h=0;e<o;e+=i)for(p[h++]=t[e]+r,p[h++]=t[e+1]+n,a=e+2;a<e+i;++a)p[h++]=t[a];return s&&p.length!=h&&(p.length=h),p}function b(){yr.call(this),this.ja="XY",this.a=2,this.A=null}function vr(t){var e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function br(t,e,o){t.a=vr(e),t.ja=e,t.A=o}function mr(t,e,o,i){if(e)o=vr(e);else{for(e=0;e<i;++e){if(!o.length)return t.ja="XY",void(t.a=2);o=o[0]}var r;2==(o=o.length)?r="XY":3==o?r="XYZ":4==o&&(r="XYZM"),e=r}t.ja=e,t.a=o}function wr(t,e,o,i){for(var r=0,n=t[o-i],s=t[o-i+1];e<o;e+=i)var a=t[e],p=t[e+1],r=r+(s*a-n*p),n=a,s=p;return r/2}function xr(t,e,o,i){for(var r=0,n=0,s=o.length;n<s;++n){var a=o[n],r=r+wr(t,e,a,i);e=a}return r}function Sr(t,e,o,i,r,n,s){var a=t[e],p=t[e+1],h=t[o]-a,l=t[o+1]-p;if(h||l)if(1<(n=((r-a)*h+(n-p)*l)/(h*h+l*l)))e=o;else if(0<n){for(r=0;r<i;++r)s[r]=nt(t[e+r],t[o+r],n);return void(s.length=i)}for(r=0;r<i;++r)s[r]=t[e+r];s.length=i}function Mr(t,e,o,i,r){var n=t[e],s=t[e+1];for(e+=i;e<o;e+=i){var a=t[e],p=t[e+1];r<(n=ot(n,s,a,p))&&(r=n),n=a,s=p}return r}function Pr(t,e,o,i,r){for(var n=0,s=o.length;n<s;++n){var a=o[n];r=Mr(t,e,a,i,r),e=a}return r}function Ar(t,e,o,i,r,n,s,a,p,h,l){if(e!=o)if(r){for(var u=l||[NaN,NaN],c=e+i;c<o;)if(Sr(t,c-i,c,i,s,a,u),(f=ot(s,a,u[0],u[1]))<h){for(h=f,l=0;l<i;++l)p[l]=u[l];c+=p.length=i}else c+=i*Math.max((Math.sqrt(f)-Math.sqrt(h))/r|0,1);if(n&&(Sr(t,o-i,e,i,s,a,u),(f=ot(s,a,u[0],u[1]))<h)){for(h=f,l=0;l<i;++l)p[l]=u[l];p.length=i}}else{var f=ot(s,a,t[e],t[e+1]);if(f<h){for(l=0;l<i;++l)p[l]=t[e+l];return p.length=i,f}}return h}function Er(t,e,o,i,r,n,s,a,p,h,l){l=l||[NaN,NaN];for(var u=0,c=o.length;u<c;++u){var f=o[u];h=Ar(t,e,f,i,r,n,s,a,p,h,l),e=f}return h}function Tr(t,e){for(var o=0,i=0,r=e.length;i<r;++i)t[o++]=e[i];return o}function jr(t,e,o,i){for(var r=0,n=o.length;r<n;++r)for(var s=o[r],a=0;a<i;++a)t[e++]=s[a];return e}function Cr(t,e,o,i,r){r=r||[];for(var n=0,s=0,a=o.length;s<a;++s)e=jr(t,e,o[s],i),r[n++]=e;return r.length=n,r}function Lr(t,e,o,i,r){r=void 0!==r?r:[];for(var n=0;e<o;e+=i)r[n++]=t.slice(e,e+i);return r.length=n,r}function Rr(t,e,o,i,r){r=void 0!==r?r:[];for(var n=0,s=0,a=o.length;s<a;++s){var p=o[s];r[n++]=Lr(t,e,p,i,r[n]),e=p}return r.length=n,r}function Ir(t,e,o,i,r,n,s){var a=(o-e)/i;if(a<3)for(;e<o;e+=i)n[s++]=t[e],n[s++]=t[e+1];else{var p=Array(a);p[0]=1,p[a-1]=1,o=[e,o-i];for(var h=0;0<o.length;){for(var l=o.pop(),u=o.pop(),c=0,f=t[u],y=t[u+1],g=t[l],d=t[l+1],v=u+i;v<l;v+=i){var b=et(t[v],t[v+1],f,y,g,d);c<b&&(h=v,c=b)}r<c&&(p[(h-e)/i]=1,u+i<h&&o.push(u,h),h+i<l)&&o.push(h,l)}for(v=0;v<a;++v)p[v]&&(n[s++]=t[e+v*i],n[s++]=t[e+v*i+1])}return s}function Nr(t,e,o,i,r,n,s,a){for(var p=0,h=o.length;p<h;++p){var l=o[p];t:{var u=t,c=l,f=i,y=r,g=n,d=s;if(e!=c){var v=y*Math.round(u[e]/y),b=y*Math.round(u[e+1]/y);e+=f,g[d++]=v,g[d++]=b;do{var m=y*Math.round(u[e]/y);if(s=y*Math.round(u[e+1]/y),(e+=f)==c){g[d++]=m,g[d++]=s,s=d;break t}}while(m==v&&s==b);for(;e<c;){var w,x,S,M,P=y*Math.round(u[e]/y),A=y*Math.round(u[e+1]/y);e+=f,P==m&&A==s||((w=m-v)*(M=A-b)==(x=s-b)*(S=P-v)&&(w<0&&S<w||w==S||0<w&&w<S)&&(x<0&&M<x||x==M||0<x&&x<M)||(v=g[d++]=m,b=g[d++]=s),m=P,s=A)}g[d++]=m,g[d++]=s}s=d}a.push(s),e=l}return s}function Fr(t,e){b.call(this),this.c=this.j=-1,this.ma(t,e)}function kr(t,e,o){br(t,e,o),t.s()}function m(t,e){b.call(this),this.ma(t,e)}function Dr(t,e,o,i,r,n){for(var s=0,a=t[o-i],p=t[o-i+1];e<o;e+=i){var h=t[e],l=t[e+1];p<=n?n<l&&0<(h-a)*(n-p)-(r-a)*(l-p)&&s++:l<=n&&(h-a)*(n-p)-(r-a)*(l-p)<0&&s--,a=h,p=l}return s}function Or(t,e,o,i,r,n){if(!o.length||!Dr(t,e,o[0],i,r,n))return!1;var s;for(e=1,s=o.length;e<s;++e)if(Dr(t,o[e-1],o[e],i,r,n))return!1;return!0}function Ur(t,e,o,i,r,n,s){for(var a=r[n+1],p=[],h=o[0],l=t[h-i],u=t[h-i+1],c=e;c<h;c+=i){var f=t[c],y=t[c+1];(a<=u&&y<=a||u<=a&&a<=y)&&p.push(l=(a-u)/(y-u)*(f-l)+l),l=f,u=y}for(h=NaN,u=-1/0,p.sort(G),l=p[0],c=1,y=p.length;c<y;++c){var f=p[c],g=Math.abs(f-l);u<g&&Or(t,e,o,i,l=(l+f)/2,a)&&(h=l,u=g),l=f}return isNaN(h)&&(h=r[n]),s?(s.push(h,a),s):[h,a]}function Gr(t,e,o,i,r,n){for(var s,a=[t[e],t[e+1]],p=[];e+i<o;e+=i){if(p[0]=t[e+i],p[1]=t[e+i+1],s=r.call(n,a,p))return s;a[0]=p[0],a[1]=p[1]}return!1}function Br(t,e,o,i,l){var r=At(vt(),t,e,o,i);return!!Ot(l,r)&&(!!(yt(l,r)||r[0]>=l[0]&&r[2]<=l[2]||r[1]>=l[1]&&r[3]<=l[3])||Gr(t,e,o,i,function(t,e){var o,i,r,n,s,a=!1,p=dt(l,t),h=dt(l,e);return 1===p||1===h?a=!0:(o=l[0],i=l[1],r=l[2],n=l[3],s=e[0],t=((e=e[1])-t[1])/(s-t[0]),(a=(a=(a=2&h&&!(2&p)?o<=(a=s-(e-n)/t)&&a<=r:a)||!(4&h)||4&p?a:i<=(a=e-(s-r)*t)&&a<=n)||!(8&h)||8&p?a:o<=(a=s-(e-i)/t)&&a<=r)||!(16&h)||16&p||(a=i<=(a=e-(s-o)*t)&&a<=n)),a}))}function Xr(t,e,o,i,r){var n=o[0];if(!(Br(t,e,n,i,r)||Dr(t,e,n,i,r[0],r[1])||Dr(t,e,n,i,r[0],r[3])||Dr(t,e,n,i,r[2],r[1])||Dr(t,e,n,i,r[2],r[3])))return!1;if(1!==o.length)for(e=1,n=o.length;e<n;++e)if(function(e,o,i,r,t){return!Et(t,function(t){return!Dr(e,o,i,r,t[0],t[1])})}(t,o[e-1],o[e],i,r))return!1;return!0}function Vr(t,e,o,i){for(var r=0,n=t[o-i],s=t[o-i+1];e<o;e+=i)var a=t[e],p=t[e+1],r=r+(a-n)*(p+s),n=a,s=p;return 0<r}function Wr(t,e,o,i){for(var r=0,n=(i=void 0!==i&&i,0),s=e.length;n<s;++n){var a=e[n],r=Vr(t,r,a,o);if(n){if(i&&!r||!i&&r)return}else if(i&&r||!i&&!r)return;r=a}return 1}function Zr(t,e,o,i,r){r=void 0!==r&&r;for(var n=0,s=o.length;n<s;++n){var a=o[n],p=Vr(t,e,a,i);if(n?r&&!p||!r&&p:r&&p||!r&&!p)for(var p=t,h=a,l=i;e<h-l;){for(var u=0;u<l;++u){var c=p[e+u];p[e+u]=p[h-l+u],p[h-l+u]=c}e+=l,h-=l}e=a}return e}function Kr(t,e,o,i){for(var r=0,n=0,s=e.length;n<s;++n)r=Zr(t,r,e[n],o,i);return r}function w(t,e){b.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 zr(t){var e;return t.u!=t.i&&(e=Lt(t.G()),t.D=Ur(t.ec(),0,t.c,t.a,e,0),t.u=t.i),t.D}function Yr(t,e,o,i){var r,n=i||32;for(i=[],r=0;r<n;++r)X(i,t.offset(e,o,2*Math.PI*r/n));return i.push(i[0],i[1]),(t=new w(null)).ba("XY",i,[i.length]),t}function Hr(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 w(null)).ba("XY",e,[e.length]),o}function qr(t,e,o){for(var i=e||32,r=t.qa(),n=new w(null,e=t.ja),i=r*(i+1),r=Array(i),s=0;s<i;s++)r[s]=0;return n.ba(e,r,[r.length]),Jr(n,t.wa(),t.pd(),o),n}function Jr(t,e,o,i){var r=t.ga(),n=t.ja,s=t.qa(),a=t.Bb(),p=r.length/s-1;i=i||0;for(var h,l,u=0;u<=p;++u)l=u*s,h=i+2*rt(u,p)*Math.PI/p,r[l]=e[0]+o*Math.cos(h),r[1+l]=e[1]+o*Math.sin(h);t.ba(n,r,a)}function h(t){ro.call(this),t=Xt({},t),this.o=[0,0],this.c=[],this.wf=this.wf.bind(this),this.v=ge(t.projection),_r(this,t)}function _r(t,e){var o,i,r,n,s,a,p,h,l,u,c,f={},y=(f.center=void 0!==e.center?e.center:null,void 0!==e.minZoom?e.minZoom:0),g=void 0!==e.maxZoom?e.maxZoom:28,d=void 0!==e.zoomFactor?e.zoomFactor:2;g=void 0!==e.resolutions?(o=(g=e.resolutions)[0],i=g[g.length-1],p=g,function(t,e,o){if(void 0!==t)return(t=Q((t=B(p,t,o))+e,0,p.length-1))!=(e=Math.floor(t))&&e<p.length-1?p[e]/Math.pow(p[e]/p[e+1],t-e):p[e]}):(r=(h=((i=(o=ge(e.projection)).G())?Math.max(Dt(i),It(i)):360*Yt.degrees/o.sc())/256/Math.pow(2,0))/Math.pow(2,28),void 0!==(o=e.maxResolution)?y=0:o=h/Math.pow(d,y),void 0===(i=e.minResolution)&&(i=void 0!==e.maxZoom?void 0!==e.maxResolution?o/Math.pow(d,g):h/Math.pow(d,g):r),g=y+Math.floor(Math.log(o/i)/Math.log(d)),i=o/Math.pow(d,g-y),n=d,s=o,a=g-y,function(t,e,o){if(void 0!==t)return t=Math.max(Math.floor(Math.log(s/t)/Math.log(n)+(-o/2+.5))+e,0),void 0!==a&&(t=Math.min(t,a)),s/Math.pow(n,t)}),t.a=o,t.f=i,t.C=d,t.j=e.resolutions,t.l=y,y=void 0===e.enableRotation||e.enableRotation?void 0===(y=e.constrainRotation)||!0===y?(u=it(5),function(t,e){if(void 0!==t)return Math.abs(t+e)<=u?0:t+e}):!1!==y&&"number"==typeof y?(h=y,l=2*Math.PI/h,function(t,e){if(void 0!==t)return Math.floor((t+e)/l+.5)*l}):$i:_i,t.g={center:void 0!==e.extent?(c=e.extent,function(t){if(t)return[Q(t[0],c[0],c[2]),Q(t[1],c[1],c[3])]}):Xe,resolution:g,rotation:y},void 0!==e.resolution?f.resolution=e.resolution:void 0!==e.zoom&&(f.resolution=t.constrainResolution(t.a,e.zoom-t.l)),f.rotation=void 0!==e.rotation?e.rotation:0,t.H(f),t.D=e}function $r(t,e){var o=Xt({},t.D);return void 0!==o.resolution?o.resolution=t.Pa():o.zoom=t.Hh(),o.center=t.wa(),o.rotation=t.Qa(),Xt({},o,e)}function Qr(t,e,o){var i,r=t.wa();return void 0!==r&&(sr(i=[r[0]-o[0],r[1]-o[1]],e-t.Qa()),er(i,o)),i}function tn(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 en(t){var e=[100,100];return t='.ol-viewport[data-view="'+U(t)+'"]',(t=document.querySelector(t))&&(t=getComputedStyle(t),e[0]=parseInt(t.width,10),e[1]=parseInt(t.height,10)),e}function on(t,e){return void 0!==e?(e[0]=t.o[0],e[1]=t.o[1],e):t.o.slice()}function rn(t){return t.wa()&&void 0!==t.Pa()}function nn(t,e,o){t.o[e]+=o,t.s()}function sn(t,e,o){this.f=t,this.c=e,this.g=o,this.b=[],this.a=this.i=0}function an(t){t.b.length=0,t.i=0,t.a=0}function pn(t){ro.call(this),this.v=null,this.Ha(!0),this.handleEvent=t.handleEvent}function hn(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:Io}):t.rotate(e,o))}function ln(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=tn(t,e,o),o=t.Ec(o),o=[(e*r[0]-n*o[0])/(e-n),(e*r[1]-n*o[1])/(e-n)]),un(t,e,o,i)}function un(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:Io}):(o&&(o=tn(t,e,o),t.ob(o)),t.Vc(e)))}function cn(t){this.a=(t=t||{}).delta||1,pn.call(this,{handleEvent:fn}),this.g=void 0!==t.duration?t.duration:250}function fn(t){var e=!1,o=t.originalEvent;return"dblclick"==t.type&&(e=t.coordinate,o=o.shiftKey?-this.a:this.a,ln(t.map.Z(),o,e,this.g),t.preventDefault(),e=!0),!e}function yn(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function gn(t){return!((t=t.originalEvent).button||ii&&ri&&t.ctrlKey)}function dn(t){return"pointermove"==t.type}function vn(t){return"singleclick"==t.type}function bn(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}function mn(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function wn(t){return"INPUT"!==(t=t.originalEvent.target.tagName)&&"SELECT"!==t&&"TEXTAREA"!==t}function xn(t){return O(t.b,56),"mouse"==t.b.pointerType}function Sn(t){return(t=t.b).isPrimary&&0===t.button}function Mn(t){pn.call(this,{handleEvent:(t=t||{}).handleEvent||An}),this.yf=t.handleDownEvent||fr,this.If=t.handleDragEvent||Y,this.Jf=t.handleMoveEvent||Y,this.sk=t.handleUpEvent||fr,this.D=!1,this.na={},this.o=[]}function Pn(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 An(t){var e,o;return!(t instanceof mi&&(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=Wt(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 En(t){Mn.call(this,{handleDownEvent:Cn,handleDragEvent:Tn,handleUpEvent:jn}),this.a=(t=t||{}).kinetic,this.g=null,this.u=t.condition||bn,this.j=!1}function Tn(t){var e,o,i=this.o,r=Pn(i);i.length==this.l?(this.a&&this.a.b.push(r[0],r[1],Date.now()),this.g&&(ar(o=[o=this.g[0]-r[0],r[1]-this.g[1]],(e=(t=t.map.Z()).getState()).resolution),sr(o,e.rotation),er(o,e.center),o=t.Ec(o),t.ob(o))):this.a&&an(this.a),this.g=r,this.l=i.length}function jn(t){var e,o,i,r=t.map;return t=r.Z(),this.o.length?(this.a&&an(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:Io})),nn(t,1,-1),!1)}function Cn(t){var e;return!!(0<this.o.length&&this.u(t))&&(e=t.map.Z(),this.g=null,this.D||nn(e,1,1),on(e)[0]&&e.ob(t.frameState.viewState.center),this.a&&an(this.a),this.j=1<this.o.length,!0)}function Ln(t){t=t||{},Mn.call(this,{handleDownEvent:Nn,handleDragEvent:Rn,handleUpEvent:In}),this.g=t.condition||yn,this.a=void 0,this.j=void 0!==t.duration?t.duration:250}function Rn(t){var e,o,i;xn(t)&&(e=(o=t.map).Z()).g.rotation!==_i&&(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(),hn(e,i-o)),this.a=t)}function In(t){if(!xn(t))return!0;nn(t=t.map.Z(),1,-1);var e=t.Qa(),o=this.j,e=t.constrainRotation(e,0);return hn(t,e,void 0,o),!1}function Nn(t){return!!(xn(t)&&gn(t)&&this.g(t))&&(nn(t.map.Z(),1,1),!(this.a=void 0))}function Fn(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 kn(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 Dn(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 w([e])}function On(t){Mn.call(this,{handleDownEvent:Xn,handleDragEvent:Gn,handleUpEvent:Bn}),this.a=new Fn((t=t||{}).className||"ol-dragbox"),this.u=void 0!==t.minArea?t.minArea:64,this.g=null,this.C=t.condition||cr,this.l=t.boxEndCondition||Un}function Un(t,e,o){return(t=o[0]-e[0])*t+(e=o[1]-e[1])*e>=this.u}function Gn(t){var e,o;xn(t)&&(e=this.a,o=t.pixel,e.c=this.g,e.i=o,Dn(e),kn(e),this.b(new Kn(Wn,t.coordinate,t)))}function Bn(t){return!xn(t)||(this.a.setMap(null),this.l(t,this.g,t.pixel)&&(this.j(t),this.b(new Kn(Zn,t.coordinate,t))),!1)}function Xn(t){var e,o;return!!(xn(t)&&gn(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,Dn(e),kn(e),this.b(new Kn(Vn,t.coordinate,t)),!0)}e(Xi,eo),(r=Xi.prototype).Jh=function(t){Vi(this,t);var e,o=new mi("pointerup",this.i,t);this.b(o),this.o||t.button||(e=(o=this).c,t=new mi("click",o.i,e),o.b(t),o.j?(clearTimeout(o.j),o.j=0,t=new mi("dblclick",o.i,e),o.b(t)):o.j=setTimeout(function(){this.j=0;var t=new mi("singleclick",this.i,e);this.b(t)}.bind(o),250)),this.S||(this.f.forEach(qe),this.f.length=0,this.o=!1,this.c=null,$e(this.a),this.a=null)},r.Ol=function(t){Vi(this,t);var e=new mi("pointerdown",this.i,t);this.b(e),this.c=t,this.f.length||(this.a=new Ii(document),this.f.push(d(this.a,"pointermove",this.Hm,this),d(this.a,"pointerup",this.Jh,this),d(this.g,"pointercancel",this.Jh,this)))},r.Hm=function(t){var e;Wi(this,t)&&(this.o=!0,e=new mi("pointerdrag",this.i,t,this.o),this.b(e)),t.preventDefault()},r.Lp=function(t){this.b(new mi(t.type,this.i,t,!(!this.c||!Wi(this,t))))},r.ka=function(){this.v&&(qe(this.v),this.v=null),this.l&&(qe(this.l),this.l=null),this.f.forEach(qe),this.f.length=0,this.a&&($e(this.a),this.a=null),this.g&&($e(this.g),this.g=null),eo.prototype.ka.call(this)},Zi.prototype.clear=function(){this.b.length=0,this.i.length=0,Vt(this.a)},Zi.prototype.f=function(t){O(!(this.c(t)in this.a),31);var e=this.l(t);return 1/0!=e&&(this.b.push(t),this.i.push(e),this.a[this.c(t)]=!0,Yi(this,0,this.b.length-1),!0)},e(qi,Zi),qi.prototype.f=function(t){var e=Zi.prototype.f.call(this,t);return e&&d(t[0],"change",this.o,this),e},qi.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(yr,ro),(r=yr.prototype).Ab=function(t,e){return this.Kb(t[0],t[1],e=e||[NaN,NaN],1/0),e},r.sb=function(t){return this.Mc(t[0],t[1])},r.Mc=fr,r.G=function(t){this.v!=this.i&&(this.l=this.se(this.l),this.v=this.i);var e=this.l;return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]):t=e,t},r.Rb=function(t){return this.Vd(t*t)},r.tb=function(t,e){return this.Dc(me(t,e)),this},e(b,yr),(r=b.prototype).Mc=fr,r.se=function(t){return xt(this.A,0,this.A.length,this.a,t)},r.ac=function(){return this.A.slice(0,this.a)},r.ga=function(){return this.A},r.bc=function(){return this.A.slice(this.A.length-this.a)},r.cc=function(){return this.ja},r.Vd=function(t){if(this.o!=this.i&&(Vt(this.f),this.g=0,this.o=this.i),!(t<0||this.g&&t<=this.g)){var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];var o=this.hd(t);if(o.ga().length<this.A.length)return this.f[e]=o;this.g=t}return this},r.hd=function(){return this},r.qa=function(){return this.a},r.Dc=function(t){this.A&&(t(this.A,this.A,this.a),this.s())},r.rotate=function(t,e){var o=this.ga();if(o){var i=o.length,r=this.qa(),n=o||[],s=Math.cos(t),a=(t=Math.sin(t),e[0]);e=e[1];for(var p=0,h=0;h<i;h+=r){var l=o[h]-a,u=o[h+1]-e;for(n[p++]=a+l*s-u*t,n[p++]=e+l*t+u*s,l=h+2;l<h+r;++l)n[p++]=o[l]}o&&n.length!=p&&(n.length=p),this.s()}},r.scale=function(t,e,o){var i=void 0===e?t:e;if(a=(a=o)||Lt(this.G()),o=this.ga()){e=o.length;for(var r=this.qa(),n=o||[],s=a[0],a=a[1],p=0,h=0;h<e;h+=r){var l=o[h]-s,u=o[h+1]-a;for(n[p++]=s+t*l,n[p++]=a+i*u,l=h+2;l<h+r;++l)n[p++]=o[l]}o&&n.length!=p&&(n.length=p),this.s()}},r.translate=function(t,e){var o=this.ga();o&&(dr(o,0,o.length,this.qa(),t,e,o),this.s())},e(Fr,b),(r=Fr.prototype).clone=function(){var t=new Fr(null);return kr(t,this.ja,this.A.slice()),t},r.Kb=function(t,e,o,i){return i<ct(this.G(),t,e)?i:(this.c!=this.i&&(this.j=Math.sqrt(Mr(this.A,0,this.A.length,this.a,0)),this.c=this.i),Ar(this.A,0,this.A.length,this.a,this.j,!0,t,e,o,i))},r.qn=function(){return wr(this.A,0,this.A.length,this.a)},r.X=function(){return Lr(this.A,0,this.A.length,this.a)},r.hd=function(t){var e=[];return e.length=Ir(this.A,0,this.A.length,this.a,t,e,0),kr(t=new Fr(null),"XY",e),t},r.U=function(){return"LinearRing"},r.Xa=function(){},r.ma=function(t,e){t?(mr(this,e,t,1),this.A||(this.A=[]),this.A.length=jr(this.A,0,t,this.a),this.s()):kr(this,"XY",null)},e(m,b),(r=m.prototype).clone=function(){var t=new m(null);return t.ba(this.ja,this.A.slice()),t},r.Kb=function(t,e,o,i){var r=this.A;if((t=ot(t,e,r[0],r[1]))<i){for(i=this.a,e=0;e<i;++e)o[e]=r[e];return o.length=i,t}return i},r.X=function(){return this.A?this.A.slice():[]},r.se=function(t){return wt(this.A,t)},r.U=function(){return"Point"},r.Xa=function(t){return gt(t,this.A[0],this.A[1])},r.ma=function(t,e){t?(mr(this,e,t,0),this.A||(this.A=[]),this.A.length=Tr(this.A,t),this.s()):this.ba("XY",null)},r.ba=function(t,e){br(this,t,e),this.s()},e(w,b),(r=w.prototype).pk=function(t){this.A?X(this.A,t.ga()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},r.clone=function(){var t=new w(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},r.Kb=function(t,e,o,i){return i<ct(this.G(),t,e)?i:(this.C!=this.i&&(this.B=Math.sqrt(Pr(this.A,0,this.c,this.a,0)),this.C=this.i),Er(this.A,0,this.c,this.a,this.B,!0,t,e,o,i))},r.Mc=function(t,e){return Or(this.ec(),0,this.c,this.a,t,e)},r.tn=function(){return xr(this.ec(),0,this.c,this.a)},r.X=function(t){var e;return void 0!==t?Zr(e=this.ec().slice(),0,this.c,this.a,t):e=this.A,Rr(e,0,this.c,this.a)},r.Bb=function(){return this.c},r.Tk=function(){return new m(zr(this))},r.Zk=function(){return this.c.length},r.Ch=function(t){var e;return t<0||this.c.length<=t?null:(kr(e=new Fr(null),this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e)},r.Sd=function(){for(var t=this.ja,e=this.A,o=this.c,i=[],r=0,n=0,s=o.length;n<s;++n){var a=o[n],p=new Fr(null);kr(p,t,e.slice(r,a)),i.push(p),r=a}return i},r.ec=function(){var t;return this.I!=this.i&&(Wr(t=this.A,this.c,this.a)?this.j=t:(this.j=t.slice(),this.j.length=Zr(this.j,0,this.c,this.a)),this.I=this.i),this.j},r.hd=function(t){var e=[],o=[];return e.length=Nr(this.A,0,this.c,this.a,Math.sqrt(t),e,0,o),(t=new w(null)).ba("XY",e,o),t},r.U=function(){return"Polygon"},r.Xa=function(t){return Xr(this.ec(),0,this.c,this.a,t)},r.ma=function(t,e){t?(mr(this,e,t,2),this.A||(this.A=[]),t=Cr(this.A,0,t,this.a,this.c),this.A.length=t.length?t[t.length-1]:0,this.s()):this.ba("XY",null,this.c)},r.ba=function(t,e,o){br(this,t,e),this.c=o,this.s()},e(h,ro),(r=h.prototype).animate=function(t){var e,o=Date.now(),i=this.wa().slice(),r=this.Pa(),n=this.Qa(),s=arguments.length;1<s&&"function"==typeof arguments[s-1]&&(e=arguments[s-1],--s);for(var a=[],p=0;p<s;++p){var h=arguments[p],l={start:o,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||No};h.center&&(l.Rg=i,l.Tg=h.center,i=l.Tg),void 0!==h.zoom?(l.tf=r,l.zd=this.constrainResolution(this.a,h.zoom-this.l,0),r=l.zd):h.resolution&&(l.tf=r,l.zd=h.resolution,r=l.zd),void 0!==h.rotation&&(l.Sg=n,l.uf=h.rotation,n=l.uf),l.callback=e,o+=l.duration,a.push(l)}this.c.push(a),nn(this,0,1),this.wf()},r.Ic=function(){return 0<on(this)[0]},r.Rk=function(){return 0<on(this)[1]},r.ed=function(){nn(this,0,-on(this)[0]);for(var t=0,e=this.c.length;t<e;++t){var o=this.c[t];o[0].callback&&o[0].callback(!1)}this.c.length=0},r.wf=function(){if(void 0!==this.u&&(cancelAnimationFrame(this.u),this.u=void 0),this.Ic()){for(var t=Date.now(),e=!1,o=this.c.length-1;0<=o;--o){for(var i=this.c[o],r=!0,n=0,s=i.length;n<s;++n){var a=i[n];if(!a.complete){var p,h,e=t-a.start;if(1<=(e=0<a.duration?e/a.duration:1)?(a.complete=!0,e=1):r=!1,e=a.easing(e),a.Rg&&(p=a.Rg[0],h=a.Rg[1],this.set("center",[p+e*(a.Tg[0]-p),h+e*(a.Tg[1]-h)])),a.tf&&a.zd&&(p=1===e?a.zd:a.tf+e*(a.zd-a.tf),a.anchor&&this.set("center",tn(this,p,a.anchor)),this.set("resolution",p)),void 0!==a.Sg&&void 0!==a.uf&&(e=1===e?a.uf:a.Sg+e*(a.uf-a.Sg),a.anchor&&this.set("center",Qr(this,e,a.anchor)),this.set("rotation",e)),e=!0,!a.complete)break}}r&&(this.c[o]=null,nn(this,0,-1),i=i[0].callback)&&i(!0)}this.c=this.c.filter(Boolean),e&&void 0===this.u&&(this.u=requestAnimationFrame(this.wf))}},r.Ec=function(t){return this.g.center(t)},r.constrainResolution=function(t,e,o){return this.g.resolution(t,e||0,o||0)},r.constrainRotation=function(t,e){return this.g.rotation(t,e||0)},r.wa=function(){return this.get("center")},r.dd=function(t){t=t||en(this);var e=this.wa(),o=(O(e,1),this.Pa()),i=(O(void 0!==o,2),this.Qa());return O(void 0!==i,3),Rt(e,o,i,t)},r.Nm=function(){return this.a},r.Pm=function(){return this.f},r.Om=function(){return this.Ce(this.f)},r.eq=function(t){_r(this,$r(this,{maxZoom:t}))},r.Qm=function(){return this.Ce(this.a)},r.fq=function(t){_r(this,$r(this,{minZoom:t}))},r.Rm=function(){return this.v},r.Pa=function(){return this.get("resolution")},r.Sm=function(){return this.j},r.ze=function(t,e){return e=e||en(this),Math.max(Dt(t)/e[0],It(t)/e[1])},r.Qa=function(){return this.get("rotation")},r.getState=function(){var t=this.wa(),e=this.v,o=this.Pa(),i=this.Qa();return{center:t.slice(),projection:void 0!==e?e:null,resolution:o,rotation:i}},r.Hh=function(){var t,e=this.Pa();return t=void 0!==e?this.Ce(e):t},r.Ce=function(t){if(t>=this.f&&t<=this.a){var e=this.l||0;if(this.j){if(e+=i=B(this.j,t,1),i==this.j.length-1)return e;var o=this.j[i],i=o/this.j[i+1]}else o=this.a,i=this.C;e+=Math.log(o/t)/Math.log(i)}return e},r.Qf=function(t,e){var o=(o=(e=e||{}).size)||en(this);t instanceof b?"Circle"===t.U()?(f=Hr(t=t.G())).rotate(this.Qa(),Lt(t)):f=t:(O(Array.isArray(t),24),O(!Ut(t),25),f=Hr(t));for(var i=e.padding||[0,0,0,0],r=void 0===e.constrainResolution||e.constrainResolution,n=void 0!==e.nearest&&e.nearest,s=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.constrainResolution(this.a,e.maxZoom-this.l,0):0,a=f.ga(),p=this.Qa(),p=(t=Math.cos(-p),Math.sin(-p)),h=1/0,l=1/0,u=-1/0,c=-1/0,f=f.qa(),y=0,g=a.length;y<g;y+=f)var d=a[y]*t-a[y+1]*p,v=a[y]*p+a[y+1]*t,h=Math.min(h,d),l=Math.min(l,v),u=Math.max(u,d),c=Math.max(c,v);o=this.ze([h,l,u,c],[o[0]-i[1]-i[3],o[1]-i[0]-i[2]]),o=isNaN(o)?s:Math.max(o,s),r&&(s=this.constrainResolution(o,0,0),o=s=!n&&s<o?this.constrainResolution(s,-1,0):s),t=[(s=(h+u)/2+(i[1]-i[3])/2*o)*t-(i=(l+c)/2+(i[0]-i[2])/2*o)*(p=-p),i*t+s*p],i=e.callback||Y,void 0!==e.duration?this.animate({resolution:o,center:t,duration:e.duration,easing:e.easing},i):(this.Vc(o),this.ob(t),setTimeout(i.bind(void 0,!0),0))},r.uk=function(t,e,o){var i=this.Qa(),r=Math.cos(-i),i=Math.sin(-i),n=t[0]*r-t[1]*i,s=(t=t[1]*r+t[0]*i,this.Pa()),n=n+(e[0]/2-o[0])*s;t+=(o[1]-e[1]/2)*s,this.ob([n*r-t*(i=-i),t*r+n*i])},r.rotate=function(t,e){void 0!==e&&(e=Qr(this,t,e),this.ob(e)),this.Oe(t)},r.ob=function(t){this.set("center",t),this.Ic()&&this.ed()},r.Vc=function(t){this.set("resolution",t),this.Ic()&&this.ed()},r.Oe=function(t){this.set("rotation",t),this.Ic()&&this.ed()},r.lq=function(t){t=this.constrainResolution(this.a,t-this.l,0),this.Vc(t)},e(pn,ro),pn.prototype.c=function(){return this.get("active")},pn.prototype.f=function(){return this.v},pn.prototype.Ha=function(t){this.set("active",t)},pn.prototype.setMap=function(t){this.v=t},e(cn,pn),e(Mn,pn),Mn.prototype.Xc=function(t){return t},e(En,Mn),En.prototype.Xc=fr,e(Ln,Mn),Ln.prototype.Xc=fr,e(Fn,_e),Fn.prototype.ka=function(){this.setMap(null)},Fn.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)},Fn.prototype.V=function(){return this.Gc},e(On,Mn),On.prototype.V=function(){return this.a.V()},On.prototype.j=Y;var Vn="boxstart",Wn="boxdrag",Zn="boxend";function Kn(t,e,o){Qe.call(this,t),this.coordinate=e,this.mapBrowserEvent=o}function zn(t){var e=(t=t||{}).condition||mn;this.B=void 0!==t.duration?t.duration:200,this.I=void 0!==t.out&&t.out,On.call(this,{condition:e,className:t.className||"ol-dragzoom"})}function Yn(t){pn.call(this,{handleEvent:Hn}),t=t||{},this.a=function(t){return bn(t)&&wn(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 Hn(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,sr(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:Fo,center:o}):n.ob(o)),t.preventDefault(),n=!0)),!n}function qn(t){pn.call(this,{handleEvent:Jn}),this.g=(t=t||{}).condition||wn,this.a=t.delta||1,this.j=void 0!==t.duration?t.duration:100}function Jn(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,ln(e=t.map.Z(),o,void 0,this.j),t.preventDefault(),o=!0),!o}function _n(t){pn.call(this,{handleEvent:$n}),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 $n(t){if("wheel"!==(s=t.type)&&"mousewheel"!==s)return!0;t.preventDefault();var e,o,i,r,n,s=t.map,a=t.originalEvent;return this.C&&(this.a=t.coordinate),"wheel"==t.type?(e=a.deltaY,ei&&a.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=ni),a.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)):"mousewheel"==t.type&&(e=-a.wheelDeltaY,oi)&&(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?Qn:ts),this.o===Qn?(s=s.Z(),this.l?clearTimeout(this.l):nn(s,1,1),this.l=setTimeout(this.B.bind(this),400),a=s.Pa()*Math.pow(2,e/300),o=s.f,i=s.a,r=0,a<o?(a=Math.max(a,o/1.5),r=1):i<a&&(a=Math.min(a,1.5*i),r=-1),this.a&&(n=tn(s,a,this.a),s.ob(s.Ec(n))),s.Vc(a),!r&&this.R&&s.animate({resolution:s.constrainResolution(a,0<e?-1:1),easing:Io,anchor:this.a,duration:this.D}),0<r?s.animate({resolution:o,easing:Io,anchor:this.a,duration:500}):r<0&&s.animate({resolution:i,easing:Io,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,s),e))),!1}e(Kn,Qe),e(zn,On),zn.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(jt(o)),r.Ja(kt(o))],r=mt(void 0),n=0,s=o.length;n<s;++n)Pt(r,o[n]);Gt(i,1/(o=t.ze(r,e))),o=i}e=t.constrainResolution(t.ze(o,e)),i=Lt(o),i=t.Ec(i),t.animate({resolution:e,center:i,duration:this.B,easing:Io})},e(Yn,pn),e(qn,pn),e(_n,pn),_n.prototype.B=function(){this.l=void 0,nn(this.v.Z(),1,-1)},_n.prototype.I=function(t){(t=t.Z()).Ic()&&t.ed(),ln(t,-Q(this.j,-1,1),this.a,this.D),this.o=void 0,this.j=0,this.a=null,this.u=this.g=void 0},_n.prototype.T=function(t){(this.C=t)||(this.a=null)};var Qn="trackpad",ts="wheel";function es(t){Mn.call(this,{handleDownEvent:rs,handleDragEvent:os,handleUpEvent:is}),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 os(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!==_i&&(r=t.a.getBoundingClientRect(),(e=Pn(this.o))[0]-=r.left,e[1]-=r.top,this.g=t.Wa(e),this.a)&&(r=i.Qa(),t.render(),hn(i,r+o,this.g))}function is(t){var e,o,i;return!(this.o.length<2&&(nn(t=t.map.Z(),1,-1),this.a&&(i=t.Qa(),e=this.g,o=this.u,i=t.constrainRotation(i,0),hn(t,i,e,o)),1))}function rs(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.j=void 0,this.a=!1,this.l=0,this.D||nn(t.Z(),1,1),!0)}function ns(t){Mn.call(this,{handleDownEvent:ps,handleDragEvent:ss,handleUpEvent:as}),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 ss(t){var e=1,o=this.o[0],i=this.o[1],r=o.clientX-i.clientX,o=o.clientY-i.clientY,r=Math.sqrt(r*r+o*o);void 0!==this.a&&(e=this.a/r),this.a=r;var i=(r=(t=t.map).Z()).Pa(),n=r.a,s=r.f;n<(o=i*e)?(e=n/i,o=n):o<s&&(e=s/i,o=s),1!=e&&(this.j=e),e=t.a.getBoundingClientRect(),(i=Pn(this.o))[0]-=e.left,i[1]-=e.top,this.g=t.Wa(i),t.render(),un(r,o,this.g)}function as(t){var e,o,i;return!(this.o.length<2&&(nn(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),un(t,i,e,o)),1))}function ps(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.a=void 0,this.j=1,this.D||nn(t.Z(),1,1),!0)}function hs(t){t=t||{};var e=new ho,o=new sn(-.005,.05,100);return void 0!==t.altShiftDragRotate&&!t.altShiftDragRotate||e.push(new Ln),void 0!==t.doubleClickZoom&&!t.doubleClickZoom||e.push(new cn({delta:t.zoomDelta,duration:t.zoomDuration})),void 0!==t.dragPan&&!t.dragPan||e.push(new En({kinetic:o})),void 0!==t.pinchRotate&&!t.pinchRotate||e.push(new es),void 0!==t.pinchZoom&&!t.pinchZoom||e.push(new ns({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.keyboard&&!t.keyboard||(e.push(new Yn),e.push(new qn({delta:t.zoomDelta,duration:t.zoomDuration}))),void 0!==t.mouseWheelZoom&&!t.mouseWheelZoom||e.push(new _n({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.shiftDragZoom&&!t.shiftDragZoom||e.push(new zn({duration:t.zoomDuration})),e}function ls(t){ro.call(this);var e=Xt({},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 us(t){return t.a.opacity=Q(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 cs(t){var e=t||{};delete(t=Xt({},e)).layers,e=e.layers,ls.call(this,t),this.f=[],this.c={},d(this,so(fs),this.Hl,this),e?Array.isArray(e)?e=new ho(e.slice(),{unique:!0}):O(e instanceof ho,43):e=new ho(void 0,{unique:!0}),this.xi(e)}e(es,Mn),es.prototype.Xc=fr,e(ns,Mn),ns.prototype.Xc=fr,e(ls,ro),(r=ls.prototype).G=function(){return this.get("extent")},r.fc=function(){return this.get("maxResolution")},r.gc=function(){return this.get("minResolution")},r.hc=function(){return this.get("opacity")},r.Mb=function(){return this.get("visible")},r.Ba=function(){return this.get("zIndex")},r.vc=function(t){this.set("extent",t)},r.Ac=function(t){this.set("maxResolution",t)},r.Bc=function(t){this.set("minResolution",t)},r.wc=function(t){this.set("opacity",t)},r.xc=function(t){this.set("visible",t)},r.Vb=function(t){this.set("zIndex",t)},e(cs,ls),(r=cs.prototype).Fd=function(){},r.Fe=function(){this.Mb()&&this.s()},r.Hl=function(){this.f.forEach(qe),this.f.length=0;var t=this.qd();for(e in this.f.push(d(t,"add",this.Gl,this),d(t,"remove",this.Il,this)),this.c)this.c[e].forEach(qe);Vt(this.c);for(var e=0,o=(t=t.a).length;e<o;e++){var i=t[e];this.c[U(i).toString()]=[d(i,"propertychange",this.Fe,this),d(i,"change",this.Fe,this)]}this.s()},r.Gl=function(t){var e=U(t=t.element).toString();this.c[e]=[d(t,"propertychange",this.Fe,this),d(t,"change",this.Fe,this)],this.s()},r.Il=function(t){t=U(t.element).toString(),this.c[t].forEach(qe),delete this.c[t],this.s()},r.qd=function(){return this.get(fs)},r.xi=function(t){this.set(fs,t)},r.Yf=function(t){var e,o=void 0!==t?t:[],i=o.length;for(this.qd().forEach(function(t){t.Yf(o)}),t=us(this),e=o.length;i<e;i++){var r=o[i];r.opacity*=t.opacity,r.visible=r.visible&&t.visible,r.maxResolution=Math.min(r.maxResolution,t.maxResolution),r.minResolution=Math.max(r.minResolution,t.minResolution),void 0!==t.extent&&(r.extent=void 0!==r.extent?Nt(r.extent,t.extent):t.extent)}return o},r.$f=function(){return"ready"};var fs="layers";function ys(t){var e=Xt({},t);delete e.source,ls.call(this,e),this.v=this.l=this.o=null,t.map&&this.setMap(t.map),d(this,so("source"),this.Ul,this),this.Wc(t.source||null)}function gs(t,e){return t.visible&&e>=t.minResolution&&e<t.maxResolution}function ds(){this.b={},this.a=0}e(ys,ls),(r=ys.prototype).Yf=function(t){return(t=t||[]).push(us(this)),t},r.ha=function(){return this.get("source")||null},r.$f=function(){var t=this.ha();return t?t.getState():"undefined"},r.Tn=function(){this.s()},r.Ul=function(){this.v&&(qe(this.v),this.v=null);var t=this.ha();t&&(this.v=d(t,"change",this.Tn,this)),this.s()},r.setMap=function(t){this.o&&(qe(this.o),this.o=null),t||this.s(),this.l&&(qe(this.l),this.l=null),t&&(this.o=d(t,"precompose",function(t){var e=us(this);e.Je=!1,e.zIndex=1/0,t.frameState.layerStatesArray.push(e),t.frameState.layerStates[U(this)]=e},this),this.l=d(this,"change",t.render,t),this.s())},r.Wc=function(t){this.set("source",t)},ds.prototype.clear=function(){this.b={},this.a=0},ds.prototype.get=function(t,e,o){return(t=e+":"+t+":"+(o?bo(o):"null"))in this.b?this.b[t]:null},ds.prototype.set=function(t,e,o,i){this.b[e+":"+t+":"+(o?bo(o):"null")]=i,++this.a};var vs=new ds,bs=Array(6);function ms(){return[1,0,0,1,0,0]}function ws(t){return Ss(t,1,0,0,1,0,0)}function xs(t,e){var o=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5],p=e[0],h=e[1],l=e[2],u=e[3],c=e[4];return e=e[5],t[0]=o*p+r*h,t[1]=i*p+n*h,t[2]=o*l+r*u,t[3]=i*l+n*u,t[4]=o*c+r*e+s,t[5]=i*c+n*e+a,t}function Ss(t,e,o,i,r,n,s){return t[0]=e,t[1]=o,t[2]=i,t[3]=r,t[4]=n,t[5]=s,t}function Ms(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 Ps(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 As(t,e){var o=Math.cos(e);e=Math.sin(e),xs(t,Ss(bs,o,e,-e,o,0,0))}function Es(t,e,o){return xs(t,Ss(bs,e,0,0,o,0,0))}function Ts(t,e,o){xs(t,Ss(bs,1,0,0,1,e,o))}function js(t,e,o,i,r,n,s,a){var p=Math.sin(n);return n=Math.cos(n),t[0]=i*n,t[1]=r*p,t[2]=-i*p,t[3]=r*n,t[4]=s*i*n-a*i*p+e,t[5]=s*r*p+a*r*n+o,t}function Cs(t){var e=t[0]*t[3]-t[1]*t[2],o=(O(!!e,32),t[0]),i=t[1],r=t[2],n=t[3],s=t[4],a=t[5];return t[0]=n/e,t[1]=-i/e,t[2]=-r/e,t[3]=o/e,t[4]=(r*a-n*s)/e,t[5]=-(o*a-i*s)/e,t}function Ls(t,e){this.o=e,this.c={},this.v={}}function Rs(t){var e=t.viewState,o=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;js(o,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Cs(Ms(i,o))}function Is(){if(32<vs.a){var t,e=0;for(t in vs.b){var o=vs.b[t];3&e++||oo(o)||(delete vs.b[t],--vs.a)}}}function Ns(t,e){var o=U(e).toString();return o in t.c?t.c[o]:(e=e.Fd(t),t.c[o]=e,t.v[o]=d(e,"change",t.Fl,t),e)}function Fs(t,e){for(var o in t.c)if(!(o in e.layerStates)){e.postRenderFunctions.push(t.Rp.bind(t));break}}function ks(t,e){return t.zIndex-e.zIndex}function Ds(t,e,o,i,r){Qe.call(this,t),this.vectorContext=e,this.frameState=o,this.context=i,this.glContext=r}e(Ls,_e),(r=Ls.prototype).ka=function(){for(var t in this.c)$e(this.c[t])},r.Ea=function(t,r,e,n,s,o,i){function a(t,e){var o=U(t).toString(),i=r.layerStates[U(e)].Je;if(!(o in r.skippedFeatureUids)||i)return n.call(s,t,i?e:null)}var p,h,l=(c=r.viewState).resolution,u=c.projection,c=t;for(u.i&&(h=Dt(u=u.G()),(y=t[0])<u[0]||y>u[2])&&(c=[y+h*Math.ceil((u[0]-y)/h),t[1]]),h=(u=r.layerStatesArray).length-1;0<=h;--h){var f=u[h],y=f.layer;if(gs(f,l)&&o.call(i,y)&&(f=Ns(this,y),p=y.ha()?f.Ea(y.ha().u?c:t,r,e,a,s):p))return p}},r.Ei=function(t,e,o,i,r){return void 0!==this.Ea(t,e,o,cr,this,i,r)},r.Fl=function(){this.o.render()},r.Jg=Y,r.Rp=function(t,e){for(var o in this.c)e&&o in e.layerStates||(t=o,o=this.c[t],delete this.c[t],qe(this.v[t]),delete this.v[t],$e(o))},e(Ds,Qe);var Os=[0,0,0,1],Us=[],Gs=[0,0,0,1];function Bs(t,e,o,i){e&&(t.translate(o,i),t.rotate(e),t.translate(-o,-i))}function Xs(){}function Vs(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=ms()}function Ws(t,e,o){if(t.M){e=gr(e,0,o,2,t.S,t.v),o=t.i;for(var i=t.xb,r=o.globalAlpha,n=(1!=t.l&&(o.globalAlpha=r*t.l),t.fb),s=(t.fa&&(n+=t.Yb),0),a=e.length;s<a;s+=2){var p,h,l=e[s]-t.D,u=e[s+1]-t.C;t.pa&&(l=Math.round(l),u=Math.round(u)),!n&&1==t.f||(js(i,p=l+t.D,h=u+t.C,t.f,t.f,n,-p,-h),o.setTransform.apply(o,i)),o.drawImage(t.M,t.T,t.na,t.oa,t.B,l,u,t.oa,t.B)}!n&&1==t.f||o.setTransform(1,0,0,1,0,0),1!=t.l&&(o.globalAlpha=r)}}function Zs(t,e,o,i){var r=0;if(t.ra&&""!==t.Ia){t.g&&Ys(t,t.g),t.o&&Hs(t,t.o);var n=t.ra,s=t.i;for((p=t.Ua)?(p.font!=n.font&&(p.font=s.font=n.font),p.textAlign!=n.textAlign&&(p.textAlign=s.textAlign=n.textAlign),p.textBaseline!=n.textBaseline&&(p.textBaseline=s.textBaseline=n.textBaseline)):(s.font=n.font,s.textAlign=n.textAlign,s.textBaseline=n.textBaseline,t.Ua={font:n.font,textAlign:n.textAlign,textBaseline:n.textBaseline}),e=gr(e,r,o,i,t.S,t.v),n=t.i,s=t.$a,t.Sa&&(s+=t.Yb);r<o;r+=i){var a,p=e[r]+t.Jb,h=e[r+1]+t.va;!s&&1==t.j||(a=js(t.xb,p,h,t.j,t.j,s,-p,-h),n.setTransform.apply(n,a)),t.o&&n.strokeText(t.Ia,p,h),t.g&&n.fillText(t.Ia,p,h)}!s&&1==t.j||n.setTransform(1,0,0,1,0,0)}}function Ks(t,e,o,i,r,n){var s=t.i;for(t=gr(e,o,i,r,t.S,t.v),s.moveTo(t[0],t[1]),e=t.length,n&&(e-=2),o=2;o<e;o+=2)s.lineTo(t[o],t[o+1]);return n&&s.closePath(),i}function zs(t,e,o,i,r){for(var n=0,s=i.length;n<s;++n)o=Ks(t,e,o,i[n],r,!0);return o}function Ys(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 Hs(t,e){var o=t.i,i=t.R;i?(i.lineCap!=e.lineCap&&(i.lineCap=o.lineCap=e.lineCap),si&&!Z(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,si&&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 qs(t,e){Ls.call(this,0,e),this.i=Po(),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=ms()}function Js(t,e,o){var i,r,n,s,a,p=t.o,h=t.i;oo(p,e)&&(i=o.extent,r=o.pixelRatio,n=o.viewState.rotation,s=o.viewState,a=o.pixelRatio/s.resolution,t=js(t.f,t.b.width/2,t.b.height/2,a,-a,-s.rotation,-s.center[0],-s.center[1]),p.b(new Ds(e,new Vs(h,r,i,t,n),o,h,null)))}(r=Xs.prototype).zb=function(){},r.rd=function(){},r.Zb=function(){},r.te=function(){},r.ue=function(){},r.mc=function(){},r.nc=function(){},r.oc=function(){},r.pc=function(){},r.qc=function(){},r.rc=function(){},r.yc=function(){},r.Ma=function(){},r.Ub=function(){},r.Cb=function(){},e(Vs,Xs),(r=Vs.prototype).Zb=function(t){var e,o,i;Ot(this.c,t.G())&&((this.a||this.b)&&(this.a&&Ys(this,this.a),this.b&&Hs(this,this.b),e=this.S,o=this.v,o=(e=(i=t.ga())?gr(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)&&Zs(this,t.wa(),2,2)},r.rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y()),this.Cb(t.Na())},r.zb=function(t){switch(t.U()){case"Point":this.qc(t);break;case"LineString":this.mc(t);break;case"Polygon":this.rc(t);break;case"MultiPoint":this.oc(t);break;case"MultiLineString":this.nc(t);break;case"MultiPolygon":this.pc(t);break;case"GeometryCollection":this.ue(t);break;case"Circle":this.Zb(t)}},r.te=function(t,e){(t=(0,e.Za)(t))&&Ot(this.c,t.G())&&(this.rd(e),this.zb(t))},r.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},r.qc=function(t){var e=t.ga();t=t.qa(),this.M&&Ws(this,e,e.length),""!==this.Ia&&Zs(this,e,e.length,t)},r.oc=function(t){var e=t.ga();t=t.qa(),this.M&&Ws(this,e,e.length),""!==this.Ia&&Zs(this,e,e.length,t)},r.mc=function(t){var e,o;Ot(this.c,t.G())&&(this.b&&(Hs(this,this.b),e=this.i,o=t.ga(),e.beginPath(),Ks(this,o,0,o.length,t.qa(),!1),e.stroke()),""!==this.Ia)&&Zs(this,t=jl(t),2,2)},r.nc=function(t){var e=t.G();if(Ot(this.c,e)){if(this.b){Hs(this,this.b);for(var e=this.i,o=t.ga(),i=0,r=t.Bb(),n=t.qa(),s=(e.beginPath(),0),a=r.length;s<a;++s)i=Ks(this,o,i,r[s],n,!1);e.stroke()}""!==this.Ia&&Zs(this,t=Cl(t),t.length,2)}},r.rc=function(t){var e;Ot(this.c,t.G())&&((this.b||this.a)&&(this.a&&Ys(this,this.a),this.b&&Hs(this,this.b),(e=this.i).beginPath(),zs(this,t.ec(),0,t.Bb(),t.qa()),this.a&&e.fill(),this.b)&&e.stroke(),""!==this.Ia)&&Zs(this,t=zr(t),2,2)},r.pc=function(t){if(Ot(this.c,t.G())){if(this.b||this.a){this.a&&Ys(this,this.a),this.b&&Hs(this,this.b);for(var e=this.i,o=Il(t),i=0,r=t.c,n=t.qa(),s=(e.beginPath(),0),a=r.length;s<a;++s)i=zs(this,o,i,r[s],n);this.a&&e.fill(),this.b&&e.stroke()}""!==this.Ia&&Zs(this,t=Rl(t),t.length,2)}},r.Ma=function(t,e){var o,i,r,n,s;t?(t=t.b,this.a={fillStyle:Mo(t||Os)}):this.a=null,e?(t=e.a,o=e.f,i=e.i,r=e.g,n=e.j,s=e.c,e=e.o,this.b={lineCap:void 0!==o?o:"round",lineDash:i||Us,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:this.u*(void 0!==s?s:1),miterLimit:void 0!==e?e:10,strokeStyle:Mo(t||Gs)}):this.b=null},r.Ub=function(t){var e,o,i,r;t?(e=t.Hc(),o=t.Y(1),i=t.Oc(),r=t.ic(),this.D=e[0],this.C=e[1],this.B=r[1],this.M=o,this.l=t.f,this.T=i[0],this.na=i[1],this.fa=t.l,this.fb=t.g,this.f=t.a,this.pa=t.v,this.oa=r[0]):this.M=null},r.Cb=function(t){var e,o,i,r,n,s,a,p;t?((e=t.Fa())?(e=e.b,this.g={fillStyle:Mo(e||Os)}):this.g=null,(a=t.Ga())?(e=a.a,o=a.f,i=a.i,r=a.g,n=a.j,s=a.c,a=a.o,this.o={lineCap:void 0!==o?o:"round",lineDash:i||Us,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:void 0!==s?s:1,miterLimit:void 0!==a?a:10,strokeStyle:Mo(e||Gs)}):this.o=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,t=t.j,this.ra={font:void 0!==e?e:"10px sans-serif",textAlign:void 0!==p?p:"center",textBaseline:void 0!==t?t:"middle"},this.Ia=void 0!==a?a:"",this.Jb=void 0!==o?this.u*o:0,this.va=void 0!==i?this.u*i:0,this.Sa=void 0!==r&&r,this.$a=void 0!==n?n:0,this.j=this.u*(void 0!==s?s:1)):this.Ia=""},e(qs,Ls),qs.prototype.U=function(){return"canvas"},qs.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,Rs(t),Js(this,"precompose",t),t.layerStatesArray),i=(K(n),o&&(e.save(),Bs(e,o,i/2,r/2)),t.viewState.resolution),r=0,s=n.length;r<s;++r){var a=n[r],p=Ns(this,p=a.layer);gs(a,i)&&"ready"==a.yj&&p.sd(t,a)&&p.S(t,a,e)}o&&e.restore(),Js(this,"postcompose",t),this.a||(this.b.style.display="",this.a=!0),Fs(this,t),t.postRenderFunctions.push(Is)}else this.a&&(this.b.style.display="none",this.a=!1)},qs.prototype.Di=function(t,e,o,i,r,n){var s=e.viewState.resolution,a=e.layerStatesArray,p=a.length;for(t=Ps(e.pixelToCoordinateTransform,t.slice()),--p;0<=p;--p){var h=a[p],l=h.layer;if(gs(h,s)&&r.call(n,l)&&(h=Ns(this,l).u(t,e,o,i)))return h}};var _s=["Polygon","Circle","LineString","Image","Text"];function $s(){}function Qs(t){this.b=t}function ta(t){this.b=t}function ea(t){this.b=t}function oa(){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(ta,Qs),ta.prototype.U=function(){return 35632},e(ea,Qs),ea.prototype.U=function(){return 35633},e(oa,ta);var ia=new oa;function ra(){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(ra,ea);var na=new ra;function sa(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"l"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"p"),this.R=t.getUniformLocation(e,"o"),this.j=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e"),this.S=t.getAttribLocation(e,"g")}function aa(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function pa(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 ha(t,e){this.origin=Lt(e),this.xb=ms(),this.Sa=ms(),this.$a=ms(),this.Jb=aa(),this.b=[],this.o=null,this.i=[],this.f=[],this.a=[],this.l=null,this.g=void 0}function la(t,e,o,i){t.drawElements(4,i-o,e.g?5125:5123,o*(e.g?4:2))}e(ha,Xs),ha.prototype.La=function(t,e,o,i,r,n,s,a,p,h,l){var u,c,f,y,g,d,v,b,m,w=t.b,x=(this.g&&(u=w.isEnabled(w.STENCIL_TEST),c=w.getParameter(w.STENCIL_FUNC),f=w.getParameter(w.STENCIL_VALUE_MASK),y=w.getParameter(w.STENCIL_REF),g=w.getParameter(w.STENCIL_WRITEMASK),d=w.getParameter(w.STENCIL_FAIL),v=w.getParameter(w.STENCIL_PASS_DEPTH_PASS),b=w.getParameter(w.STENCIL_PASS_DEPTH_FAIL),w.enable(w.STENCIL_TEST),w.clear(w.STENCIL_BUFFER_BIT),w.stencilMask(255),w.stencilFunc(w.ALWAYS,1,255),w.stencilOp(w.KEEP,w.KEEP,w.REPLACE),this.g.La(t,e,o,i,r,n,s,a,p,h,l),w.stencilMask(0),w.stencilFunc(w.NOTEQUAL,1,255)),Ea(t,34962,this.l),Ea(t,34963,this.o),n=this.rf(w,t,r,n),ws(this.xb));return Es(x,2/(o*r[0]),2/(o*r[1])),As(x,-i),Ts(x,-(e[0]-this.origin[0]),-(e[1]-this.origin[1])),Es(e=ws(this.$a),2/r[0],2/r[1]),r=ws(this.Sa),i&&As(r,-i),w.uniformMatrix4fv(n.i,!1,pa(this.Jb,x)),w.uniformMatrix4fv(n.f,!1,pa(this.Jb,e)),w.uniformMatrix4fv(n.c,!1,pa(this.Jb,r)),w.uniform1f(n.a,s),p?m=t=h?this.ve(w,t,a,p,l):(w.clear(w.COLOR_BUFFER_BIT|w.DEPTH_BUFFER_BIT),this.Od(w,t,a,!0),(t=p(null))||void 0):this.Od(w,t,a,!1),this.sf(w,n),this.g&&(u||w.disable(w.STENCIL_TEST),w.clear(w.STENCIL_BUFFER_BIT),w.stencilFunc(c,y,f),w.stencilMask(g),w.stencilOp(d,b,v)),m};var ua=[0,0,0,1],ca=[],fa=[0,0,0,1];function ya(t,e,o,i,r,n){return(t=(o-t)*(n-e)-(r-t)*(i-e))<=ga&&-ga<=t?void 0:0<t}var ga=Number.EPSILON||2220446049250313e-31;function da(t){this.b=void 0!==t?t:[],this.a=va}var va=35044;function ba(t,e){ha.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 ma(t,e,o,i){e.uniform4fv(t.v.R,o),e.uniform1f(t.v.oa,i)}function wa(){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(ba,ha),(r=ba.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=dr(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)},r.Db=function(){this.l=new da(this.a),this.o=new da(this.b),this.i.push(this.b.length),!this.u.length&&0<this.j.length&&(this.j=[]),this.b=this.a=null},r.Eb=function(t){var e=this.l,o=this.o;return function(){Ta(t,e),Ta(t,o)}},r.rf=function(t,e,o,i){var r,n=La(e,ia,na);return this.v?r=this.v:this.v=r=new sa(t,n),e.Qc(n),t.enableVertexAttribArray(r.b),t.vertexAttribPointer(r.b,2,5126,!1,16,0),t.enableVertexAttribArray(r.j),t.vertexAttribPointer(r.j,1,5126,!1,16,8),t.enableVertexAttribArray(r.S),t.vertexAttribPointer(r.S,1,5126,!1,16,12),t.uniform2fv(r.I,o),t.uniform1f(r.ra,i),r},r.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.j),t.disableVertexAttribArray(e.S)},r.Od=function(t,e,o){if(Zt(o)){var i=this.i[this.i.length-1];for(o=this.u.length-1;0<=o;--o){var r=this.u[o],n=this.j[o];t.uniform4fv(this.v.B,n[0]),ma(this,t,n[1],n[2]),la(t,e,r,i),i=r}}else for(var s=this.i.length-2,n=i=this.i[s+1],r=this.u.length-1;0<=r;--r){var a=this.j[r];for(t.uniform4fv(this.v.B,a[0]),ma(this,t,a[1],a[2]),a=this.u[r];0<=s&&this.i[s]>=a;){var p=this.i[s];o[U(this.f[s]).toString()]&&(i!==n&&la(t,e,i,n),n=p),s--,i=p}i!==n&&la(t,e,i,n),i=n=a}},r.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.u.length-1;0<=p;--p){var h=this.j[p];for(t.uniform4fv(this.v.B,h[0]),ma(this,t,h[1],h[2]),n=this.u[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[U(l).toString()]&&l.V()&&(void 0===r||Ot(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),la(t,e,h,a),a=i(l)))return a;s--,a=h}}},r.Ma=function(t,e){var o;e=e?(o=e.i,this.c.lineDash=o||ca,o=e.g,this.c.lineDashOffset=o||0,o=!((o=e.a)instanceof CanvasGradient||o instanceof CanvasPattern)&&vo(o).map(function(t,e){return 3!=e?t/255:t})||fa,void 0!==(e=e.c)?e:1):(o=[0,0,0,0],0),t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&vo(t).map(function(t,e){return 3!=e?t/255:t})||ua,this.c.strokeColor&&Z(this.c.strokeColor,o)&&this.c.fillColor&&Z(this.c.fillColor,t)&&this.c.lineWidth===e||(this.c.s=!0,this.c.fillColor=t,this.c.strokeColor=o,this.c.lineWidth=e,this.j.push([t,o,e]))},e(wa,ta);var xa=new wa;function Sa(){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(Sa,ea);var Ma=new Sa;function Pa(t,e){this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"k"),this.i=t.getUniformLocation(e,"h"),this.v=t.getAttribLocation(e,"e"),this.u=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"c"),this.D=t.getAttribLocation(e,"g"),this.C=t.getAttribLocation(e,"d")}function Aa(t,e){this.j=t,this.b=e,this.a={},this.c={},this.i={},this.l=this.v=this.f=this.o=null,(this.g=D(di,"OES_element_index_uint"))&&e.getExtension("OES_element_index_uint"),d(this.j,"webglcontextlost",this.Xo,this),d(this.j,"webglcontextrestored",this.Yo,this)}function Ea(t,e,o){var i,r,n=t.b,s=o.b,a=String(U(o));a in t.a?n.bindBuffer(e,t.a[a].buffer):(i=n.createBuffer(),n.bindBuffer(e,i),34962==e?r=new Float32Array(s):34963==e&&(r=new(t.g?Uint32Array:Uint16Array)(s)),n.bufferData(e,r,o.a),t.a[a]={lc:o,buffer:i})}function Ta(t,e){var o=t.b,i=(e=String(U(e)),t.a[e]);o.isContextLost()||o.deleteBuffer(i.buffer),delete t.a[e]}function ja(t){var e,o,i,r;return t.f||(o=(e=t.b).createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,o),i=Ia(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 Ca(t,e){var o,i,r=String(U(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 La(t,e,o){var i,r,n=U(e)+"/"+U(o);return n in t.i?t.i[n]:(r=(i=t.b).createProgram(),i.attachShader(r,Ca(t,e)),i.attachShader(r,Ca(t,o)),i.linkProgram(r),t.i[n]=r)}function Ra(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 Ia(t,e,o){var i=Ra(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 Na(t,e){var o=Ra(t,33071,33071);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),o}function Fa(t,e){ha.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 ka(t,e,o,i){for(var r=t.D,n=t.C,s=t.oa,a=t.ra,p=t.I,h=t.R,l=t.Ua,u=t.T,c=t.na?1:0,f=-t.fa,y=t.fb,g=t.pa,d=Math.cos(f),f=Math.sin(f),v=t.b.length,b=t.a.length,m=0;m<o;m+=i){var w=e[m]-t.origin[0],x=e[m+1]-t.origin[1],S=b/8,M=-y*r,P=-y*(s-n);t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=l/p,t.a[b++]=(u+s)/a,t.a[b++]=h,t.a[b++]=c,M=y*(g-r),P=-y*(s-n),t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=(l+g)/p,t.a[b++]=(u+s)/a,t.a[b++]=h,t.a[b++]=c,M=y*(g-r),P=y*n,t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=(l+g)/p,t.a[b++]=u/a,t.a[b++]=h,t.a[b++]=c,M=-y*r,P=y*n,t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=l/p,t.a[b++]=u/a,t.a[b++]=h,t.a[b++]=c,t.b[v++]=S,t.b[v++]=1+S,t.b[v++]=2+S,t.b[v++]=S,t.b[v++]=2+S,t.b[v++]=3+S}}function Da(t,e,o,i){for(var r=e.length,n=0;n<r;++n){var s=e[n],a=U(s).toString();a in o?s=o[a]:(s=Na(i,s),o[a]=s),t[n]=s}}function Oa(t,e,o){var i=e-o;return t[0]===t[i]&&t[1]===t[1+i]&&3<+e/o&&!!wr(t,0,e,o)}function Ua(){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(Aa,_e),(r=Aa.prototype).ka=function(){Je(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)}},r.Wo=function(){return this.b},r.Xo=function(){Vt(this.a),Vt(this.c),Vt(this.i),this.l=this.v=this.f=this.o=null},r.Yo=function(){},r.Qc=function(t){return t!=this.o&&(this.b.useProgram(t),this.o=t,!0)},e(Fa,ha),(r=Fa.prototype).Eb=function(o){var i=this.l,r=this.o,n=this.va,s=this.u,a=o.b;return function(){if(!a.isContextLost()){for(var t=0,e=n.length;t<e;++t)a.deleteTexture(n[t]);for(t=0,e=s.length;t<e;++t)a.deleteTexture(s[t])}Ta(o,i),Ta(o,r)}},r.oc=function(t,e){this.i.push(this.b.length),this.f.push(e),ka(this,e=t.ga(),e.length,t.qa())},r.qc=function(t,e){this.i.push(this.b.length),this.f.push(e),ka(this,e=t.ga(),e.length,t.qa())},r.Db=function(t){t=t.b,this.S.push(this.b.length),this.v.push(this.b.length),this.l=new da(this.a),this.o=new da(this.b);var e={};Da(this.va,this.j,e,t),Da(this.u,this.c,e,t),this.oa=this.C=this.D=void 0,this.c=this.j=null,this.I=this.ra=void 0,this.b=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.a=null,this.pa=void 0},r.rf=function(t,e){var o,i=La(e,xa,Ma);return this.B?o=this.B:this.B=o=new Pa(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,32,0),t.enableVertexAttribArray(o.v),t.vertexAttribPointer(o.v,2,5126,!1,32,8),t.enableVertexAttribArray(o.C),t.vertexAttribPointer(o.C,2,5126,!1,32,16),t.enableVertexAttribArray(o.u),t.vertexAttribPointer(o.u,1,5126,!1,32,24),t.enableVertexAttribArray(o.D),t.vertexAttribPointer(o.D,1,5126,!1,32,28),o},r.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.v),t.disableVertexAttribArray(e.C),t.disableVertexAttribArray(e.u),t.disableVertexAttribArray(e.D)},r.Od=function(t,e,o,i){var r=i?this.u:this.va;if(i=i?this.v:this.S,Zt(o))for(var n=r.length,s=o=0;o<n;++o){t.bindTexture(3553,r[o]);var a=i[o];la(t,e,s,a),s=a}else for(s=n=0,a=r.length;s<a;++s){t.bindTexture(3553,r[s]);for(var p=0<s?i[s-1]:0,h=i[s],l=p;n<this.i.length&&this.i[n]<=h;){p=void 0!==o[U(this.f[n]).toString()]?(l!==p&&la(t,e,l,p),l=n===this.i.length-1?h:this.i[n+1]):n===this.i.length-1?h:this.i[n+1];n++}l!==p&&la(t,e,l,p)}},r.ve=function(t,e,o,i,r){for(var n=this.i.length-1,s=this.u.length-1;0<=s;--s){t.bindTexture(3553,this.u[s]);for(var a=0<s?this.v[s-1]:0,p=this.v[s];0<=n&&this.i[n]>=a;){var h=this.i[n],l=this.f[n];if(void 0===o[U(l).toString()]&&l.V()&&(void 0===r||Ot(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),la(t,e,h,p),p=i(l)))return p;p=h,n--}}},r.Ub=function(t){var e=t.Hc(),o=t.Y(1),i=t.ye(),r=t.qg(1),n=t.f,s=t.Oc(),a=t.l,p=t.g,h=t.ic();t=t.a,this.j.length?U(this.j[this.j.length-1])!=U(o)&&(this.S.push(this.b.length),this.j.push(o)):this.j.push(o),this.c.length?U(this.c[this.c.length-1])!=U(r)&&(this.v.push(this.b.length),this.c.push(r)):this.c.push(r),this.D=e[0],this.C=e[1],this.oa=h[1],this.ra=i[1],this.I=i[0],this.R=n,this.Ua=s[0],this.T=s[1],this.fa=p,this.na=a,this.fb=t,this.pa=h[0]},e(Ua,ta);var Ga=new Ua;function Ba(){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(Ba,ea);var Xa=new Ba;function Va(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.R=t.getUniformLocation(e,"l"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"p"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"o"),this.g=t.getAttribLocation(e,"g"),this.o=t.getAttribLocation(e,"d"),this.l=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e")}function Wa(t,e){ha.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 Za(t,e,o,i){for(var r=t.a.length,n=t.b.length,s="bevel"===t.c.lineJoin?0:"miter"===t.c.lineJoin?1:2,a="butt"===t.c.lineCap?0:"square"===t.c.lineCap?1:2,p=Oa(e,o,i),h=n,l=1,u=0;u<o;u+=i){var c,f=r/7,y=g,g=c||[e[u],e[u+1]];if(u){if(u===o-i){p?c=d:(r=Ka(t,y=y||[0,0],g,[0,0],l*_a*(a||1),r),r=Ka(t,y,g,[0,0],-l*_a*(a||1),r),t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=h,t.b[n++]=f+1,t.b[n++]=f,a&&(r=Ka(t,y,g,[0,0],l*Qa*a,r),r=Ka(t,y,g,[0,0],-l*Qa*a,r),t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=f+1,t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f+2));break}c=[e[u+i],e[u+i+1]]}else{if(c=[e[u+i],e[u+i+1]],+o==2*i&&Z(g,c))break;if(!p){a&&(r=Ka(t,[0,0],g,c,l*$a*a,r),r=Ka(t,[0,0],g,c,-l*$a*a,r),t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=f+1,t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f+2),r=Ka(t,[0,0],g,c,l*Ja*(a||1),r),h=(r=Ka(t,[0,0],g,c,-l*Ja*(a||1),r))/7-1;continue}var y=[e[o-2*i],e[o-2*i+1]],d=c}var v=ya(y[0],y[1],g[0],g[1],c[0],c[1])?-1:1,r=Ka(t,y,g,c,v*tp*(s||1),r);r=Ka(t,y,g,c,v*ep*(s||1),r),r=Ka(t,y,g,c,-v*op*(s||1),r),0<u&&(t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=0<l*v?h:h-1),t.b[n++]=f,t.b[n++]=f+2,t.b[n++]=f+1,h=f+2,l=v,s&&(r=Ka(t,y,g,c,v*ip*s,r),t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f)}p&&(f=f||r/7,r=Ka(t,y,g,c,(v=Vr([y[0],y[1],g[0],g[1],c[0],c[1]],0,6,2)?1:-1)*tp*(s||1),r),Ka(t,y,g,c,-v*op*(s||1),r),t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=f+1,t.b[n++]=f,t.b[n++]=0<l*v?h:h-1)}function Ka(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 za(t,e,o,i){return!((o-=e)<2*i||o===2*i&&Z([t[e],t[e+1]],[t[e+i],t[e+i+1]]))}function Ya(t,e,o,i){var r;if(Oa(e,e.length,i)||(e.push(e[0]),e.push(e[1])),Za(t,e,e.length,i),o.length)for(e=0,r=o.length;e<r;++e)Oa(o[e],o[e].length,i)||(o[e].push(o[e][0]),o[e].push(o[e][1])),Za(t,o[e],o[e].length,i)}function Ha(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)}function qa(t,e,o,i,r){e.uniform4fv(t.v.B,o),e.uniform1f(t.v.oa,i),e.uniform1f(t.v.R,r)}e(Wa,ha),(r=Wa.prototype).mc=function(t,e){var o=t.ga();t=t.qa(),za(o,0,o.length,t)&&(o=dr(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),Za(this,o,o.length,t))},r.nc=function(t,e){var o=this.b.length,i=t.Bb(),r=(i.unshift(0),t.ga());if(t=t.qa(),1<i.length)for(var n,s=1,a=i.length;s<a;++s)za(r,i[s-1],i[s],t)&&Za(this,n=dr(r,i[s-1],i[s],t,-this.origin[0],-this.origin[1]),n.length,t);this.b.length>o&&(this.i.push(o),this.f.push(e),this.c.s)&&(this.j.push(o),this.c.s=!1)},r.Db=function(){this.l=new da(this.a),this.o=new da(this.b),this.i.push(this.b.length),!this.j.length&&0<this.u.length&&(this.u=[]),this.b=this.a=null},r.Eb=function(t){var e=this.l,o=this.o;return function(){Ta(t,e),Ta(t,o)}},r.rf=function(t,e,o,i){var r,n=La(e,Ga,Xa);return this.v?r=this.v:this.v=r=new Va(t,n),e.Qc(n),t.enableVertexAttribArray(r.o),t.vertexAttribPointer(r.o,2,5126,!1,28,0),t.enableVertexAttribArray(r.b),t.vertexAttribPointer(r.b,2,5126,!1,28,8),t.enableVertexAttribArray(r.l),t.vertexAttribPointer(r.l,2,5126,!1,28,16),t.enableVertexAttribArray(r.g),t.vertexAttribPointer(r.g,1,5126,!1,28,24),t.uniform2fv(r.I,o),t.uniform1f(r.ra,i),r},r.sf=function(t,e){t.disableVertexAttribArray(e.o),t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.l),t.disableVertexAttribArray(e.g)},r.Od=function(t,e,o,i){var r=t.getParameter(t.DEPTH_FUNC),n=t.getParameter(t.DEPTH_WRITEMASK);if(i||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),Zt(o)){var s=this.i[this.i.length-1];for(o=this.j.length-1;0<=o;--o){var a=this.j[o],p=this.u[o];qa(this,t,p[0],p[1],p[2]),la(t,e,a,s),t.clear(t.DEPTH_BUFFER_BIT),s=a}}else for(var h=this.i.length-2,p=s=this.i[h+1],a=this.j.length-1;0<=a;--a){var l=this.u[a];for(qa(this,t,l[0],l[1],l[2]),l=this.j[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[U(this.f[h]).toString()]&&(s!==p&&(la(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(la(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},r.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.j.length-1;0<=p;--p)for(qa(this,t,(h=this.u[p])[0],h[1],h[2]),n=this.j[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[U(l).toString()]&&l.V()&&(void 0===r||Ot(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),la(t,e,h,a),a=i(l)))return a;s--,a=h}},r.Ma=function(t,e){t=e.f,this.c.lineCap=void 0!==t?t:"round",t=e.i,this.c.lineDash=t||ca,t=e.g,this.c.lineDashOffset=t||0,t=e.j,this.c.lineJoin=void 0!==t?t:"round",t=!((t=e.a)instanceof CanvasGradient||t instanceof CanvasPattern)&&vo(t).map(function(t,e){return 3!=e?t/255:t})||fa;var o=void 0!==(o=e.c)?o:1;e=void 0!==(e=e.o)?e:10,this.c.strokeColor&&Z(this.c.strokeColor,t)&&this.c.lineWidth===o&&this.c.miterLimit===e||(this.c.s=!0,this.c.strokeColor=t,this.c.lineWidth=o,this.c.miterLimit=e,this.u.push([t,o,e]))};var Ja=3,_a=5,$a=7,Qa=11,tp=13,ep=17,op=19,ip=23;function rp(){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(rp,ta);var np=new rp;function sp(){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(sp,ea);var ap=new sp;function pp(t,e){this.B=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"c"),this.a=t.getUniformLocation(e,"f"),this.i=t.getUniformLocation(e,"b"),this.b=t.getAttribLocation(e,"a")}function hp(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 lp(t){this.b=this.a=this.i=void 0,this.f=void 0===t||t,this.c=0}function up(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 cp(t){if(t.b=t.i,t.b)return t.b.data}function fp(t){if(t.b&&t.b.next)return t.b=t.b.next,t.b.data}function yp(t){if(t.b&&t.b.next)return t.b.next.data}function gp(t){if(t.b&&t.b.ub)return t.b=t.b.ub,t.b.data}function dp(t){if(t.b&&t.b.ub)return t.b.ub.data}function vp(t){if(t.b)return t.b.data}(r=hp.prototype).clone=function(){var t=this.a;return new hp({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})},r.No=function(){return this.a},r.Vk=function(){return this.f},r.Oo=function(){return this.i},r.Wk=function(){return this.g},r.Xk=function(){return this.j},r.bl=function(){return this.o},r.Po=function(){return this.c},r.Qo=function(t){this.a=t,this.b=void 0},r.aq=function(t){this.f=t,this.b=void 0},r.setLineDash=function(t){this.i=t,this.b=void 0},r.bq=function(t){this.g=t,this.b=void 0},r.cq=function(t){this.j=t,this.b=void 0},r.gq=function(t){this.o=t,this.b=void 0},r.jq=function(t){this.c=t,this.b=void 0},lp.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 bp,mp={$d:function(){}};function wp(t,e,o){var i=t[e];t[e]=t[o],t[o]=i}function xp(t,e){return t<e?-1:e<t?1:0}function Sp(t,e){if(!(this instanceof Sp))return new Sp(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 Mp(t,e){Pp(t,0,t.children.length,e,t)}function Pp(t,e,o,i,r){(r=r||Ip(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],Ap(r,t.ib?i(n):n);return r}function Ap(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 Ep(t,e){return t.ca-e.ca}function Tp(t,e){return t.da-e.da}function jp(t){return(t.$-t.ca)*(t.ia-t.da)}function Cp(t){return t.$-t.ca+(t.ia-t.da)}function Lp(t,e){return t.ca<=e.ca&&t.da<=e.da&&e.$<=t.$&&e.ia<=t.ia}function Rp(t,e){return e.ca<=t.$&&e.da<=t.ia&&e.$>=t.ca&&e.ia>=t.da}function Ip(t){return{children:t,height:1,ib:!0,ca:1/0,da:1/0,$:-1/0,ia:-1/0}}function Np(t,e,o,i,r){for(var n,s=[e,o];s.length;)(o=s.pop())-(e=s.pop())<=i||(n=e+Math.ceil((o-e)/i/2)*i,bp(t,n,e,o,r),s.push(e,n,n,o))}function Fp(t){this.a=mp.$d(t),this.b={}}function kp(t,e,o){var i=t.b[U(o)];St([i.ca,i.da,i.$,i.ia],e)||(t.remove(o),t.Ca(e,o))}function Dp(t){return t.a.all().map(function(t){return t.value})}function Op(t,e){return t.a.search({ca:e[0],da:e[1],$:e[2],ia:e[3]}).map(function(t){return t.value})}function Up(t,e,o,i){return Gp(Op(t,e),o,i)}function Gp(t,e,o){for(var i,r=0,n=t.length;r<n&&!(i=e.call(o,t[r]));r++);return i}function Bp(t,e){ha.call(this,0,e),this.g=new Wa(0,e),this.v=null,this.u=[],this.c=[],this.j={fillColor:null,s:!1}}function Xp(t,e,o,i){var r=new lp,n=new Fp;if(e=Vp(t,e,i,r,n,!0),o.length){for(var s=[],a=0,p=o.length;a<p;++a){var h={list:new lp,$:void 0,Mg:new Fp};s.push(h),h.$=Vp(t,o[a],i,h.list,h.Mg,!1)}for(s.sort(function(t,e){return e.$[0]===t.$[0]?t.$[1]-e.$[1]:e.$[0]-t.$[0]}),a=0;a<s.length;++a){p=i=cp(o=s[a].list);do{if(_p(p,n).length){var l=!0;break}}while(i!==(p=fp(o)));l||(Wp(o,s[a].Mg,!0),function(t,e,o,i,r){for(var n=cp(t);n.W.x!==e;)n=fp(t);e=n.W,i={x:i,y:e.y,hb:-1};var s,a=1/0,p=_p({aa:e,W:i},r,!0),h=0;for(s=p.length;h<s;++h){var l,u=p[h],c=$p(e,i,u.aa,u.W,!0),f=Math.abs(e.x-c[0]);f<a&&void 0!==ya(e.x,e.y,u.aa.x,u.aa.y,u.W.x,u.W.y)&&(a=f,l={x:c[0],y:c[1],hb:-1},n=u)}if(1/0===a)return;if(p=n.W,0<a&&(n=Jp(e,l,n.W,r)).length)for(l=1/0,h=0,s=n.length;h<s;++h)a=n[h],((u=Math.atan2(e.y-a.y,i.x-a.x))<l||u===l&&a.x<p.x)&&(l=u,p=a);for(n=cp(o);n.W.x!==p.x||n.W.y!==p.y;)n=fp(o);return i={x:e.x,y:e.y,hb:e.hb,Fb:void 0},h={x:n.W.x,y:n.W.y,hb:n.W.hb,Fb:void 0},yp(t).aa=i,Hp(e,n.W,t,r),Hp(h,i,t,r),n.W=h,t.f&&t.b&&(t.i=t.b,t.a=t.b.ub),o.concat(t),1}(o,s[a].$[0],r,e[0],n)&&(n.concat(s[a].Mg),Wp(r,n,!1)))}}else Wp(r,n,!1);!function t(e,o,i){for(var r=!1,n=zp(o,i);3<o.c;)if(n){if(!Zp(e,o,i,n,r)&&!Wp(o,i,r)&&!Kp(e,o,i,!0))break}else if(!Zp(e,o,i,n,r)&&!Wp(o,i,r)&&!Kp(e,o,i)){if(!(n=zp(o,i))){n=e,s=a=cp(r=o);do{if((p=_p(s,i)).length){for(a=p[0],p=$p(s.aa,s.W,a.aa,a.W),p=Yp(n,p[0],p[1],n.a.length/2),h=new lp,l=new Fp,Hp(p,s.W,h,l),s.W=p,kp(i,[Math.min(s.aa.x,p.x),Math.min(s.aa.y,p.y),Math.max(s.aa.x,p.x),Math.max(s.aa.y,p.y)],s),s=fp(r);s!==a;)Hp(s.aa,s.W,h,l),i.remove(s),up(r),s=vp(r);Hp(a.aa,p,h,l),a.aa=p,kp(i,[Math.min(a.W.x,p.x),Math.min(a.W.y,p.y),Math.max(a.W.x,p.x),Math.max(a.W.y,p.y)],a),Wp(r,i,!1),t(n,r,i),Wp(h,l,!1),t(n,h,l);break}}while((s=fp(r))!==a);break}for(var s=2*(r=o).c,a=Array(s),p=cp(r),h=p,l=0;a[l++]=h.aa.x,a[l++]=h.aa.y,(h=fp(r))!==p;);r=!Vr(a,0,s,2),Wp(o,i,r)}3===o.c&&(n=e.b.length,e.b[n++]=dp(o).aa.hb,e.b[n++]=vp(o).aa.hb,e.b[n++]=yp(o).aa.hb)}(t,r,n)}function Vp(t,e,o,i,r,n){var s,a=t.a.length/2,p=[],h=[];if(n===Vr(e,0,e.length,o))for(var l=s=Yp(t,e[0],e[1],a++),u=(n=e[0],e[1]),c=o,f=e.length;c<f;c+=o){var y=Yp(t,e[c],e[c+1],a++);h.push(Hp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y}else for(l=s=Yp(t,e[c=e.length-o],e[c+1],a++),n=e[c],u=e[c+1],c-=o,f=0;f<=c;c-=o)y=Yp(t,e[c],e[c+1],a++),h.push(Hp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y;return h.push(Hp(y,s,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),r.load(p,h),[n,u]}function Wp(t,e,o){var i=cp(t),r=i,n=fp(t),s=!1;do{var a=o?ya(n.W.x,n.W.y,r.W.x,r.W.y,r.aa.x,r.aa.y):ya(r.aa.x,r.aa.y,r.W.x,r.W.y,n.W.x,n.W.y)}while(void 0===a?(qp(r,n,t,e),s=!0,n===i&&(i=yp(t)),n=r,gp(t)):r.W.Fb!==a&&(r.W.Fb=a,s=!0),r=n,n=fp(t),r!==i);return s}function Zp(t,e,o,i,r){var n=t.b.length,s=cp(e),a=dp(e),p=s,h=fp(e),l=yp(e),u=!1;do{var c,f=p.aa,y=p.W,g=h.W}while(!1===y.Fb&&(c=r?Qp(l.W,g,y,f,a.aa):Qp(a.aa,f,y,g,l.W),!i&&_p({aa:f,W:g},o).length||!c||Jp(f,y,g,o,!0).length||!i&&!1!==f.Fb&&!1!==g.Fb&&Vr([a.aa.x,a.aa.y,f.x,f.y,y.x,y.y,g.x,g.y,l.W.x,l.W.y],0,10,2)!==!r||(t.b[n++]=f.hb,t.b[n++]=y.hb,t.b[n++]=g.hb,qp(p,h,e,o),h===s&&(s=l),u=!0)),a=dp(e),p=vp(e),h=fp(e),l=yp(e),p!==s&&3<e.c);return u}function Kp(t,e,o,i){var r=cp(e),n=(fp(e),r),s=fp(e),a=!1;do{var p=$p(n.aa,n.W,s.aa,s.W,i);if(p){var a=t.b.length,h=t.a.length/2,l=gp(e),u=(up(e),o.remove(l),l===r);if(i?(u=p[0]===n.aa.x&&p[1]===n.aa.y?(gp(e),p=n.aa,s.aa=p,o.remove(n),u||n===r):(p=s.W,n.W=p,o.remove(s),u||s===r),up(e)):(p=Yp(t,p[0],p[1],h),n.W=p,s.aa=p,kp(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),kp(o,[Math.min(s.aa.x,s.W.x),Math.min(s.aa.y,s.W.y),Math.max(s.aa.x,s.W.x),Math.max(s.aa.y,s.W.y)],s)),t.b[a++]=l.aa.hb,t.b[a++]=l.W.hb,t.b[a++]=p.hb,a=!0,u)break}}while(n=dp(e),s=fp(e),n!==r);return a}function zp(t,e){var o=cp(t),i=o;do{if(_p(i,e).length)return!1}while((i=fp(t))!==o);return!0}function Yp(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 Hp(t,e,o,i){var r,n={aa:t,W:e},s={ub:void 0,next:void 0,data:n},a=o.b;return a?(r=a.next,s.ub=a,s.next=r,a.next=s,r&&(r.ub=s),a===o.a&&(o.a=s)):(o.i=s,o.a=s,o.f&&((s.next=s).ub=s)),o.b=s,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 qp(t,e,o,i){vp(o)===e&&(up(o),t.W=e.W,i.remove(e),kp(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 Jp(t,e,o,i,r){var n,s,a=[],p=Op(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=p.length;i<n;++i)for(s in p[i]){var h=p[i][s];"object"!=typeof h||r&&!h.Fb||h.x===t.x&&h.y===t.y||h.x===e.x&&h.y===e.y||h.x===o.x&&h.y===o.y||-1!==a.indexOf(h)||!Dr([t.x,t.y,e.x,e.y,o.x,o.y],0,6,2,h.x,h.y)||a.push(h)}return a}function _p(t,e,o){for(var i=t.aa,r=t.W,n=[],s=0,a=(e=Op(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;s<a;++s){var p=e[s];t!==p&&(o||p.aa!==r||p.W!==i)&&$p(i,r,p.aa,p.W,o)&&n.push(p)}return n}function $p(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&&ga<i&&i<1-ga&&ga<o&&o<1-ga||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 Qp(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 th(){}function eh(t,e,o){this.f=e,this.g=t,this.c=o,this.a={}}function oh(t,e){var o,i=[];for(o in t.a){var r,n=t.a[o];for(r in n)i.push(n[r].Eb(e))}return function(){for(var t,e=i.length,o=0;o<e;o++)t=i[o].apply(this,arguments);return t}}function ih(t,e,o,i,r,n,s,a,p,h,l){for(var u=rh,c=Object.keys(t.a).map(Number),f=(c.sort(function(t,e){return e-t}),0),y=c.length;f<y;++f)for(var g=t.a[c[f].toString()],d=_s.length-1;0<=d;--d){var v=g[_s[d]];if(void 0!==v&&(v=v.La(e,o,i,r,u,n,s,a,p,h,l)))return v}}yi=mp.$d=mp.$d||{},bp=function t(e,o,i,r,n){for(i=i||0,r=r||e.length-1,n=n||xp;i<r;){var s,a,p,h;for(600<r-i&&(s=r-i+1,a=o-i+1,h=Math.log(s),p=.5*Math.exp(2*h/3),h=.5*Math.sqrt(h*p*(s-p)/s)*(a-s/2<0?-1:1),t(e,o,Math.max(i,Math.floor(o-a*p/s+h)),Math.min(r,Math.floor(o+(s-a)*p/s+h)),n)),s=e[o],p=r,wp(e,a=i,o),0<n(e[r],s)&&wp(e,i,r);a<p;){for(wp(e,a,p),a++,p--;n(e[a],s)<0;)a++;for(;0<n(e[p],s);)p--}0===n(e[i],s)?wp(e,i,p):wp(e,++p,r),p<=o&&(i=p+1),o<=p&&(r=p-1)}},Sp.prototype={all:function(){return this.$g(this.data,[])},search:function(t){var e=this.data,o=[],i=this.wb;if(Rp(t,e))for(var r,n,s,a,p=[];e;){for(r=0,n=e.children.length;r<n;r++)s=e.children[r],Rp(t,a=e.ib?i(s):s)&&(e.ib?o.push(s):Lp(t,a)?this.$g(s,o):p.push(s));e=p.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=Ip([]),this},remove:function(t,e){if(t)for(var o,i,r,n=this.data,s=this.wb(t),a=[],p=[];n||a.length;){if(n||(n=a.pop(),i=a[a.length-1],o=p.pop(),r=!0),n.ib){t:{var h=t,l=n.children,u=e;if(u){for(var c=0;c<l.length;c++)if(u(h,l[c])){h=c;break t}h=-1}else h=l.indexOf(h)}if(-1!==h){n.children.splice(h,1),a.push(n),this.ck(a);break}}r||n.ib||!Lp(n,s)?i?(o++,n=i.children[o],r=!1):n=null:(a.push(n),p.push(o),n=(i=n).children[o=0])}return this},wb:function(t){return t},Lf:Ep,Mf:Tp,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,s=o-e+1,a=this.Hf;if(s<=a)Mp(r=Ip(t.slice(e,o+1)),this.wb);else{for(i||(i=Math.ceil(Math.log(s)/Math.log(a)),a=Math.ceil(s/Math.pow(a,i-1))),(r=Ip([])).ib=!1,r.height=i,Np(t,e,o,a=(s=Math.ceil(s/a))*Math.ceil(Math.sqrt(a)),this.Lf);e<=o;e+=a){var p=Math.min(e+a-1,o);for(Np(t,e,p,s,this.Mf),n=e;n<=p;n+=s){var h=Math.min(n+s-1,p);r.children.push(this.bh(t,n,h,i-1))}}Mp(r,this.wb)}return r},bk:function(t,e,o,i){for(var r,n,s,a,p,h,l,u;i.push(e),!e.ib&&i.length-1!==o;){for(l=u=1/0,r=0,n=e.children.length;r<n;r++)p=jp(s=e.children[r]),(h=(Math.max(s.$,t.$)-Math.min(s.ca,t.ca))*(Math.max(s.ia,t.ia)-Math.min(s.da,t.da))-p)<u?(u=h,l=p<l?p:l,a=s):h===u&&p<l&&(l=p,a=s);e=a||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),Ap(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=Ip(o.children.splice(i,o.children.length-i))).height=o.height,i.ib=o.ib,Mp(o,this.wb),Mp(i,this.wb),e?t[e-1].children.push(i):this.hh(o,i)},hh:function(t,e){this.data=Ip([t,e]),this.data.height=t.height+1,this.data.ib=!1,Mp(this.data,this.wb)},ak:function(t,e,o){for(var i=s=1/0,r=e;r<=o-e;r++){var n,s,a=Pp(t,0,r,this.wb),p=Pp(t,r,o,this.wb),h=Math.max(0,Math.min(a.$,p.$)-Math.max(a.ca,p.ca))*Math.max(0,Math.min(a.ia,p.ia)-Math.max(a.da,p.da)),a=jp(a)+jp(p);h<i?(i=h,n=r,s=a<s?a:s):h===i&&a<s&&(s=a,n=r)}return n},$j:function(t,e,o){var i=t.ib?this.Lf:Ep,r=t.ib?this.Mf:Tp;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=Pp(t,0,e,i=this.wb),n=Pp(t,o-e,o,i),s=Cp(r)+Cp(n),a=e;a<o-e;a++){var p=t.children[a];Ap(r,t.ib?i(p):p),s+=Cp(r)}for(a=o-e-1;e<=a;a--)p=t.children[a],Ap(n,t.ib?i(p):p),s+=Cp(n);return s},Zj:function(t,e,o){for(;0<=o;o--)Ap(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():Mp(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]+"};")}},yi.default=Sp,mp.$d=mp.$d.default,(r=Fp.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[U(e)]=t},r.load=function(t,e){for(var o=Array(e.length),i=0,r=e.length;i<r;i++){var n=t[i],s=e[i],n={ca:n[0],da:n[1],$:n[2],ia:n[3],value:s};o[i]=n,this.b[U(s)]=n}this.a.load(o)},r.remove=function(t){t=U(t);var e=this.b[t];return delete this.b[t],null!==this.a.remove(e)},r.forEach=function(t,e){return Gp(Dp(this),t,e)},r.clear=function(){this.a.clear(),this.b={}},r.G=function(t){var e=this.a.data;return bt(e.ca,e.da,e.$,e.ia,t)},r.concat=function(t){for(var e in this.a.load(t.a.all()),t.b)this.b[0|e]=t.b[0|e]},e(Bp,ha),(r=Bp.prototype).pc=function(t,e){for(var o=t.c,i=t.qa(),r=this.b.length,n=this.g.b.length,s=(t=t.ga(),c=0),a=o.length;s<a;++s){var p=o[s];if(0<p.length){var h=dr(t,c,p[0],i,-this.origin[0],-this.origin[1]);if(h.length){for(var l,u=[],c=1,f=p.length;c<f;++c)p[c]!==p[c-1]&&(l=dr(t,p[c-1],p[c],i,-this.origin[0],-this.origin[1]),u.push(l));Ya(this.g,h,u,i),Xp(this,h,u,i)}}c=p[p.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&&Ha(this.g,e,n)},r.rc=function(t,e){var o=t.Bb(),i=t.qa();if(0<o.length){var r=dr(t=t.ga().map(Number),0,o[0],i,-this.origin[0],-this.origin[1]);if(r.length){for(var n,s=[],a=1,p=o.length;a<p;++a)o[a]!==o[a-1]&&(n=dr(t,o[a-1],o[a],i,-this.origin[0],-this.origin[1]),s.push(n));this.i.push(this.b.length),this.f.push(e),this.j.s&&(this.c.push(this.b.length),this.j.s=!1),Ha(this.g,e),Ya(this.g,r,s,i),Xp(this,r,s,i)}}},r.Db=function(t){this.l=new da(this.a),this.o=new da(this.b),this.i.push(this.b.length),this.g.Db(t),!this.c.length&&0<this.u.length&&(this.u=[]),this.b=this.a=null},r.Eb=function(t){var e=this.l,o=this.o,i=this.g.Eb(t);return function(){Ta(t,e),Ta(t,o),i()}},r.rf=function(t,e){var o,i=La(e,np,ap);return this.v?o=this.v:this.v=o=new pp(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,8,0),o},r.sf=function(t,e){t.disableVertexAttribArray(e.b)},r.Od=function(t,e,o,i){var r=t.getParameter(t.DEPTH_FUNC),n=t.getParameter(t.DEPTH_WRITEMASK);if(i||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),Zt(o)){var s=this.i[this.i.length-1];for(o=this.c.length-1;0<=o;--o){var a=this.c[o],p=this.u[o];t.uniform4fv(this.v.B,p),la(t,e,a,s),s=a}}else for(var h=this.i.length-2,p=s=this.i[h+1],a=this.c.length-1;0<=a;--a){var l=this.u[a];for(t.uniform4fv(this.v.B,l),l=this.c[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[U(this.f[h]).toString()]&&(s!==p&&(la(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(la(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},r.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.c.length-1;0<=p;--p){var h=this.u[p];for(t.uniform4fv(this.v.B,h),n=this.c[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[U(l).toString()]&&l.V()&&(void 0===r||Ot(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),la(t,e,h,a),a=i(l)))return a;s--,a=h}}},r.Ma=function(t,e){t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&vo(t).map(function(t,e){return 3!=e?t/255:t})||ua,this.j.fillColor&&Z(t,this.j.fillColor)||(this.j.fillColor=t,this.j.s=!0,this.u.push(t)),e?this.g.Ma(null,e):this.g.Ma(null,new hp({color:[0,0,0,0],lineWidth:0}))},th.prototype.La=function(){},e(eh,$s),eh.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 nh[e](this.g,this.f),t[e]=o),o},eh.prototype.i=function(){return Zt(this.a)},eh.prototype.La=function(t,e,o,i,r,n,s,a){for(var p=Object.keys(this.a).map(Number),h=(p.sort(G),0),l=p.length;h<l;++h)for(var u=this.a[p[h].toString()],c=0,f=_s.length;c<f;++c){var y=u[_s[c]];void 0!==y&&y.La(t,e,o,i,r,n,s,a,void 0,!1)}},eh.prototype.Ea=function(t,e,o,i,r,n,s,a,p,h){var l,u=e.b;return u.bindFramebuffer(u.FRAMEBUFFER,ja(e)),ih(this,e,t,i,r,s,a,p,function(t){var e=new Uint8Array(4);if(u.readPixels(0,0,1,1,u.RGBA,u.UNSIGNED_BYTE,e),0<e[3]&&(t=h(t)))return t},!0,l=void 0!==this.c?lt(wt(t),i*this.c):l)};var rh=[1,1],nh={Circle:ba,Image:Fa,LineString:Wa,Polygon:Bp,Text:th};function sh(t,e,o,i,r,n,s){this.b=t,this.i=e,this.a=n,this.c=s,this.j=r,this.g=i,this.f=o,this.o=this.l=this.v=null}function ah(){this.c=0,this.b={},this.i=this.a=null}function ph(t,e){Ls.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=Po(),this.l=!0,this.i=Qo(this.b,{antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0}),this.f=new Aa(this.b,this.i),d(this.b,"webglcontextlost",this.Yn,this),d(this.b,"webglcontextrestored",this.Zn,this),this.a=new ah,this.u=null,this.j=new Zi(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&&(Hi(this.j),hh(this,(t=Ki(this.j))[0],t[3],t[4])),!1}.bind(this),this.g=0,uh(this)}function hh(t,e,o,i){var r,n,s,a=t.i,p=e.bb();t.a.b.hasOwnProperty(p)?(t=t.a.get(p),a.bindTexture(3553,t.Ib),9729!=t.Ph&&(a.texParameteri(3553,10240,9729),t.Ph=9729),9729!=t.Rh&&(a.texParameteri(3553,10241,9729),t.Rh=9729)):(r=a.createTexture(),a.bindTexture(3553,r),0<i?(n=t.C.canvas,s=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]):s.clearRect(0,0,o[0],o[1]),s.drawImage(e.Y(),i,i,o[0],o[1],0,0,o[0],o[1]),a.texImage2D(3553,0,6408,6408,5121,n)):a.texImage2D(3553,0,6408,6408,5121,e.Y()),a.texParameteri(3553,10240,9729),a.texParameteri(3553,10241,9729),a.texParameteri(3553,10242,33071),a.texParameteri(3553,10243,33071),t.a.set(p,{Ib:r,Ph:9729,Rh:9729}))}function lh(t,e,o){var i,r=t.o;oo(r,e)&&(t=t.f,i=o.viewState,r.b(new Ds(e,new sh(t,i.center,i.resolution,i.rotation,o.size,o.extent,o.pixelRatio),o,null,t)))}function uh(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(sh,Xs),(r=sh.prototype).rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y())},r.zb=function(t){switch(t.U()){case"Point":this.qc(t,null);break;case"LineString":this.mc(t,null);break;case"Polygon":this.rc(t,null);break;case"MultiPoint":this.oc(t,null);break;case"MultiLineString":this.nc(t,null);break;case"MultiPolygon":this.pc(t,null);break;case"GeometryCollection":this.ue(t,null);break;case"Circle":this.Zb(t,null)}},r.te=function(t,e){(t=(0,e.Za)(t))&&Ot(this.a,t.G())&&(this.rd(e),this.zb(t))},r.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},r.qc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Image");i.Ub(this.v),i.qc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.oc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Image");i.Ub(this.v),i.oc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.mc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"LineString");i.Ma(null,this.o),i.mc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.nc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"LineString");i.Ma(null,this.o),i.nc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.rc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Polygon");i.Ma(this.l,this.o),i.rc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.pc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Polygon");i.Ma(this.l,this.o),i.pc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.Zb=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Circle");i.Ma(this.l,this.o),i.Zb(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.Ub=function(t){this.v=t},r.Ma=function(t,e){this.l=t,this.o=e},(r=ah.prototype).clear=function(){this.c=0,this.b={},this.i=this.a=null},r.forEach=function(t,e){for(var o=this.a;o;)t.call(e,o.Yc,o.uc,this),o=o.Nb},r.get=function(t){return O(!!(t=this.b[t]),15),t!==this.i&&(t===this.a?(this.a=this.a.Nb,this.a.vd=null):(t.Nb.vd=t.vd,t.vd.Nb=t.Nb),t.Nb=null,t.vd=this.i,this.i=this.i.Nb=t),t.Yc},r.pop=function(){var t=this.a;return delete this.b[t.uc],t.Nb&&(t.Nb.vd=null),this.a=t.Nb,this.a||(this.i=null),--this.c,t.Yc},r.replace=function(t,e){this.get(t),this.b[t].Yc=e},r.set=function(t,e){O(!(t in this.b),16),e={uc:t,Nb:null,vd:this.i,Yc:e},this.i?this.i.Nb=e:this.a=e,this.i=e,this.b[t]=e,++this.c},e(ph,Ls),(r=ph.prototype).ka=function(){var e=this.i;e.isContextLost()||this.a.forEach(function(t){t&&e.deleteTexture(t.Ib)}),$e(this.f),Ls.prototype.ka.call(this)},r.xk=function(t,e){t=this.i;for(var o;1024<this.a.c-this.g;){if(o=this.a.a.Yc)t.deleteTexture(o.Ib);else{if(+this.a.a.uc==e.index)break;--this.g}this.a.pop()}},r.U=function(){return"webgl"},r.Yn=function(t){for(var e in t.preventDefault(),this.a.clear(),this.g=0,t=this.c)t[e].mg()},r.Zn=function(){uh(this),this.o.render()},r.Jg=function(t){var e=this.f,o=this.i;if(o.isContextLost())return!1;if(!t)return this.l&&(this.b.style.display="none",this.l=!1),!1;this.u=t.focus,this.a.set((-t.index).toString(),null),++this.g,lh(this,"precompose",t);for(var i=[],r=t.layerStatesArray,n=(K(r),t.viewState.resolution),s=0,a=r.length;s<a;++s){var p=r[s];gs(p,n)&&"ready"==p.yj&&Ns(this,p.layer).ng(t,p,e)&&i.push(p)}for(r=t.size[0]*t.pixelRatio,n=t.size[1]*t.pixelRatio,this.b.width==r&&this.b.height==n||(this.b.width=r,this.b.height=n),o.bindFramebuffer(36160,null),o.clearColor(0,0,0,0),o.clear(16384),o.enable(3042),o.viewport(0,0,this.b.width,this.b.height),s=0,a=i.length;s<a;++s)Ns(this,(p=i[s]).layer).Gi(t,p,e);this.l||(this.b.style.display="",this.l=!0),Rs(t),1024<this.a.c-this.g&&t.postRenderFunctions.push(this.xk.bind(this)),this.j.b.length&&(t.postRenderFunctions.push(this.B),t.animate=!0),lh(this,"postcompose",t),Fs(this,t),t.postRenderFunctions.push(Is)},r.Ea=function(t,e,o,i,r,n,s){if(this.i.isContextLost())return!1;for(var a=e.viewState,p=e.layerStatesArray,h=p.length-1;0<=h;--h){var l=p[h],u=l.layer;if(gs(l,a.resolution)&&n.call(s,u)&&(l=Ns(this,u).Ea(t,e,o,i,r)))return l}},r.Ei=function(t,e,o,i,r){if(o=!1,this.i.isContextLost())return!1;for(var n=e.viewState,s=e.layerStatesArray,a=s.length-1;0<=a;--a){var p=s[a],h=p.layer;if(gs(p,n.resolution)&&i.call(r,h)&&(o=Ns(this,h).Ue(t,e)))return!0}return o},r.Di=function(t,e,o,i,r){if(this.i.isContextLost())return!1;for(var n=e.viewState,s=e.layerStatesArray,a=s.length-1;0<=a;--a){var p=s[a],h=p.layer;if(gs(p,n.resolution)&&r.call(i,h)&&(p=Ns(this,h).lg(t,e,o,i)))return p}};var ch=["canvas","webgl"];function u(t){ro.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(s=t.logo)?i[s]="":s instanceof HTMLElement?i[U(s).toString()]=s:s&&(O("string"==typeof s.href,44),O("string"==typeof s.src,45),i[s.src]=s.href);s=t.layers instanceof cs?t.layers:new cs({layers:t.layers}),o.layergroup=s,o.target=t.target,o.view=void 0!==t.view?t.view:new h;var r,n,s=Ls,a=(void 0!==t.renderer?(Array.isArray(t.renderer)?r=t.renderer:"string"==typeof t.renderer?r=[t.renderer]:O(!1,46),0<=r.indexOf("dom")&&(r=r.concat(ch))):r=ch,0);for(n=r.length;a<n;++a){var p=r[a];if("canvas"==p){if(ai){s=qs;break}}else if("webgl"==p&&gi){s=ph;break}}return r=void 0!==t.controls?Array.isArray(t.controls)?new ho(t.controls.slice()):(O(t.controls instanceof ho,47),t.controls):Uo(),a=void 0!==t.interactions?Array.isArray(t.interactions)?new ho(t.interactions.slice()):(O(t.interactions instanceof ho,48),t.interactions):hs(),t=void 0!==t.overlays?Array.isArray(t.overlays)?new ho(t.overlays.slice()):(O(t.overlays instanceof ho,49),t.overlays):new ho,{controls:r,interactions:a,keyboardEventTarget:e,logos:i,overlays:t,Up:s,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:ni,this.yf=e.logos,this.pa=function(){this.j=void 0,this.Sp.call(this,Date.now())}.bind(this),this.Yb=ms(),this.Jf=ms(),this.ad=0,this.I=this.R=this.T=this.g=this.c=null,this.a=document.createElement("DIV"),this.a.className="ol-viewport"+(li?" 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)d(this.D,i[r],to);for(o in this.a.appendChild(this.D),this.Sa=new Xi(this,t.moveTolerance),bi)d(this.Sa,bi[o],this.Ih,this);this.va=e.keyboardEventTarget,this.u=null,d(this.a,"wheel",this.ld,this),d(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 qi(this.ql.bind(this),this.Wl.bind(this)),this.fa={},d(this,so("layergroup"),this.El,this),d(this,so("view"),this.Xl,this),d(this,so("size"),this.Tl,this),d(this,so("target"),this.Vl,this),this.H(e.values),this.l.forEach(function(t){t.setMap(this)},this),d(this.l,"add",function(t){t.element.setMap(this)},this),d(this.l,"remove",function(t){t.element.setMap(null)},this),this.o.forEach(function(t){t.setMap(this)},this),d(this.o,"add",function(t){t.element.setMap(this)},this),d(this.o,"remove",function(t){t.element.setMap(null)},this),this.v.forEach(this.kh,this),d(this.v,"add",function(t){this.kh(t.element)},this),d(this.v,"remove",function(t){var e=t.element.g;void 0!==e&&delete this.rg[e.toString()],t.element.setMap(null)},this)}function fh(t){ro.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,d(this,so(vh),this.zl,this),d(this,so(bh),this.Jl,this),d(this,so(mh),this.Nl,this),d(this,so(wh),this.Pl,this),d(this,so(xh),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)}function yh(t,e){var o=t.getBoundingClientRect();return[t=o.left+window.pageXOffset,o=o.top+window.pageYOffset,t+e[0],o+e[1]]}function gh(t,e){t.a.visible!==e&&(t.c.style.display=e?"":"none",t.a.visible=e)}function dh(t){var e,o,i,r,n=t.Me(),s=t.Yh();n&&n.c&&s?(s=n.Ja(s),e=n.Ob(),n=t.c.style,r=t.Dh(),o=t.Eh(),gh(t,!0),i=r[0],r=r[1],"bottom-right"==o||"center-right"==o||"top-right"==o?(""!==t.a.Ie&&(t.a.Ie=n.left=""),i=Math.round(e[0]-s[0]-i)+"px",t.a.nf!=i&&(t.a.nf=n.right=i)):(""!==t.a.nf&&(t.a.nf=n.right=""),"bottom-center"!=o&&"center-center"!=o&&"top-center"!=o||(i-=t.c.offsetWidth/2),i=Math.round(s[0]+i)+"px",t.a.Ie!=i&&(t.a.Ie=n.left=i)),"bottom-left"==o||"bottom-center"==o||"bottom-right"==o?(""!==t.a.vf&&(t.a.vf=n.top=""),s=Math.round(e[1]-s[1]-r)+"px",t.a.re!=s&&(t.a.re=n.bottom=s)):(""!==t.a.re&&(t.a.re=n.bottom=""),"center-left"!=o&&"center-center"!=o&&"center-right"!=o||(r-=t.c.offsetHeight/2),s=Math.round(s[1]+r)+"px",t.a.vf!=s&&(t.a.vf=n.top=s))):gh(t,!1)}e(u,ro),(r=u.prototype).kk=function(t){this.l.push(t)},r.lk=function(t){this.o.push(t)},r.ih=function(t){this.Kc().qd().push(t)},r.jh=function(t){this.v.push(t)},r.kh=function(t){var e=t.g;void 0!==e&&(this.rg[e.toString()]=t),t.setMap(this)},r.ka=function(){$e(this.Sa),$e(this.B),He(this.a,"wheel",this.ld,this),He(this.a,"mousewheel",this.ld,this),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0),this.j&&(cancelAnimationFrame(this.j),this.j=void 0),this.Le(null),ro.prototype.ka.call(this)},r.we=function(t,e,o){if(this.c)return t=this.Wa(t),this.B.Ea(t,this.c,void 0!==(o=o||{}).hitTolerance?o.hitTolerance*this.c.pixelRatio:0,e,null,o.layerFilter||cr,null)},r.Im=function(t,e,o,i,r){if(this.c)return this.B.Di(t,this.c,e,void 0!==o?o:null,i||cr,void 0!==r?r:null)},r.Yl=function(t,e){return!!this.c&&(t=this.Wa(t),this.B.Ei(t,this.c,void 0!==(e=e||{}).hitTolerance?e.hitTolerance*this.c.pixelRatio:0,e.layerFilter||cr,null))},r.Tf=function(t){return this.Wa(this.xe(t))},r.xe=function(t){var e=this.a.getBoundingClientRect();return[(t=t.changedTouches?t.changedTouches[0]:t).clientX-e.left,t.clientY-e.top]},r.ag=function(){return this.get("target")},r.jd=function(){var t=this.ag();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},r.Wa=function(t){var e=this.c;return e?Ps(e.pixelToCoordinateTransform,t.slice()):null},r.Lk=function(){return this.l},r.fl=function(){return this.v},r.el=function(t){return void 0!==(t=this.rg[t.toString()])?t:null},r.Sk=function(){return this.o},r.Kc=function(){return this.get("layergroup")},r.Xh=function(){return this.Kc().qd()},r.Ja=function(t){var e=this.c;return e?Ps(e.coordinateToPixelTransform,t.slice(0,2)):null},r.Ob=function(){return this.get("size")},r.Z=function(){return this.get("view")},r.sl=function(){return this.a},r.ql=function(t,e,o,i){var r=this.c;return r&&e in r.wantedTiles&&r.wantedTiles[e][t.bb()]?(t=o[0]-r.focus[0],o=o[1]-r.focus[1],65536*Math.log(i)+Math.sqrt(t*t+o*o)/i):1/0},r.ld=function(t,e){t=new _o(e||t.type,this,t),this.Ih(t)},r.Ih=function(t){if(this.c){this.na=t.coordinate,t.frameState=this.c;var e,o=this.o.a;if(!1!==this.b(t))for(e=o.length-1;0<=e;e--){var i=o[e];if(i.c()&&!i.handleEvent(t))break}}},r.Rl=function(){var t,e,o,i=this.c,r=this.$a;for(r.b.length&&(e=t=16,i&&((o=i.viewHints)[0]&&(t=this.Cf?8:0,e=2),o[1])&&(t=this.Df?8:0,e=2),r.j<t)&&(Hi(r),Ji(r,t,e)),t=0,e=(r=this.xb).length;t<e;++t)r[t](this,i);r.length=0},r.Tl=function(){this.render()},r.Vl=function(){var t;if(this.ag()&&(t=this.jd()),this.u){for(var e=0,o=this.u.length;e<o;++e)qe(this.u[e]);this.u=null}t?(t.appendChild(this.a),t=this.va||t,this.u=[d(t,"keydown",this.ld,this),d(t,"keypress",this.ld,this)],this.f||(this.f=this.Ad.bind(this),window.addEventListener("resize",this.f,!1))):(Eo(this.a),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0)),this.Ad()},r.Wl=function(){this.render()},r.Lh=function(){this.render()},r.Xl=function(){this.T&&(qe(this.T),this.T=null),this.R&&(qe(this.R),this.R=null);var t=this.Z();t&&(this.a.setAttribute("data-view",U(t)),this.T=d(t,"propertychange",this.Lh,this),this.R=d(t,"change",this.Lh,this)),this.render()},r.El=function(){this.I&&(this.I.forEach(qe),this.I=null);var t=this.Kc();t&&(this.I=[d(t,"propertychange",this.render,this),d(t,"change",this.render,this)]),this.render()},r.Tp=function(){this.j&&cancelAnimationFrame(this.j),this.pa()},r.render=function(){void 0===this.j&&(this.j=requestAnimationFrame(this.pa))},r.Mp=function(t){return this.l.remove(t)},r.Np=function(t){return this.o.remove(t)},r.Pp=function(t){return this.Kc().qd().remove(t)},r.Qp=function(t){return this.v.remove(t)},r.Sp=function(t){var e=this.Ob(),o=this.Z(),i=vt(),r=this.c,n=null;if(void 0!==e&&0<e[0]&&0<e[1]&&o&&rn(o)){for(var n=on(o,this.c?this.c.viewHints:void 0),s=this.Kc().Yf(),a={},p=0,h=s.length;p<h;++p)a[U(s[p].layer)]=s[p];p=o.getState(),n={animate:!1,attributions:{},coordinateToPixelTransform:this.Yb,extent:i,focus:this.na||p.center,index:this.ad++,layerStates:a,layerStatesArray:s,logos:Xt({},this.yf),pixelRatio:this.If,pixelToCoordinateTransform:this.Jf,postRenderFunctions:[],size:e,skippedFeatureUids:this.fa,tileQueue:this.$a,time:t,usedTiles:{},viewState:p,viewHints:n,wantedTiles:{}}}n&&(n.extent=Rt(p.center,p.resolution,p.rotation,n.size,i)),this.c=n,this.B.Jg(n),n&&(n.animate&&this.render(),Array.prototype.push.apply(this.xb,n.postRenderFunctions),!r||this.g&&(Ut(this.g)||St(n.extent,this.g))||(this.b(new Jo("movestart",this,r)),this.g=mt(this.g)),!this.g||n.viewHints[0]||n.viewHints[1]||St(n.extent,this.g)||(this.b(new Jo("moveend",this,n)),ut(n.extent,this.g))),this.b(new Jo("postrender",this,n)),setTimeout(this.Rl.bind(this),0)},r.qj=function(t){this.set("layergroup",t)},r.Qg=function(t){this.set("size",t)},r.Le=function(t){this.set("target",t)},r.iq=function(t){this.set("view",t)},r.xj=function(t){t=U(t).toString(),this.fa[t]=!0,this.render()},r.Ad=function(){var t,e=this.jd();e?(t=getComputedStyle(e),this.Qg([e.offsetWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)-parseFloat(t.borderRightWidth),e.offsetHeight-parseFloat(t.borderTopWidth)-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)-parseFloat(t.borderBottomWidth)])):this.Qg(void 0)},r.Cj=function(t){t=U(t).toString(),delete this.fa[t],this.render()},e(fh,ro),(r=fh.prototype).Rd=function(){return this.get(vh)},r.Jm=function(){return this.g},r.Me=function(){return this.get(bh)},r.Dh=function(){return this.get(mh)},r.Yh=function(){return this.get(wh)},r.Eh=function(){return this.get(xh)},r.zl=function(){for(var t=this.c;t.lastChild;)t.removeChild(t.lastChild);(t=this.Rd())&&this.c.appendChild(t)},r.Jl=function(){this.f&&(Eo(this.c),qe(this.f),this.f=null);var t=this.Me();t&&(this.f=d(t,"postrender",this.render,this),dh(this),t=this.v?t.D:t.C,this.l?t.insertBefore(this.c,t.childNodes[0]||null):t.appendChild(this.c))},r.render=function(){dh(this)},r.Nl=function(){dh(this)},r.Pl=function(){var t,e,o,i,r,n,s;dh(this),this.get(wh)&&this.autoPan&&(t=this.Me())&&t.jd()&&(e=yh(t.jd(),t.Ob()),o=(s=this.Rd()).offsetWidth,r=getComputedStyle(s),o+=parseInt(r.marginLeft,10)+parseInt(r.marginRight,10),r=s.offsetHeight,i=getComputedStyle(s),n=yh(s,[o,r=r+(parseInt(i.marginTop,10)+parseInt(i.marginBottom,10))]),s=this.o,yt(e,n)||(o=n[0]-e[0],r=e[2]-n[2],i=n[1]-e[1],n=e[3]-n[3],e=[0,0],o<0?e[0]=o-s:r<0&&(e[0]=Math.abs(r)+s),i<0?e[1]=i-s:n<0&&(e[1]=Math.abs(n)+s),0===e[0]&&0===e[1])||(s=t.Z().wa(),e=[(s=t.Ja(s))[0]+e[0],s[1]+e[1]],t.Z().animate({center:t.Wa(e),duration:this.j.duration,easing:this.j.easing})))},r.Ql=function(){dh(this)},r.lj=function(t){this.set(vh,t)},r.setMap=function(t){this.set(bh,t)},r.rj=function(t){this.set(mh,t)},r.Ne=function(t){this.set(wh,t)},r.uj=function(t){this.set(xh,t)};var vh="element",bh="map",mh="offset",wh="position",xh="positioning";function Sh(t){function e(t){t=a.Tf(t),p.a.Z().ob(t),window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",e)}function o(t){t=a.Tf({clientX:t.clientX-l.offsetWidth/2,clientY:t.clientY+l.offsetHeight/2}),h.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:"«",s=("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),a=((n=document.createElement("button")).setAttribute("type","button"),n.title=r,n.appendChild(s),d(n,"click",this.an,this),this.C=document.createElement("DIV"),this.C.className="ol-overviewmap-map",this.c=new u({controls:new ho,interactions:new ho,view:t.view})),p=(t.layers&&t.layers.forEach(function(t){a.ih(t)},this),(r=document.createElement("DIV")).className="ol-overviewmap-box",r.style.boxSizing="border-box",this.l=new fh({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),To.call(this,{element:r,render:t.render||Mh,target:t.target}),this),h=this.l,l=this.l.Rd();l.addEventListener("mousedown",function(){window.addEventListener("mousemove",o),window.addEventListener("mouseup",e)})}function Mh(){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(Ct(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?Ph(this):yt(t,r)||(r=this.c,t=this.a.Z(),r.Z().ob(t.wa()))),Ah(this)}function Ph(t){var e=t.a,o=(t=t.c,e.Ob()),e=e.Z().dd(o);t=t.Z(),Gt(e,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2))),t.Qf(e)}function Ah(t){var e,o,i,r,n,s,a=t.a,p=t.c;a.c&&p.c&&(i=a.Ob(),r=a.Z(),n=p.Z(),p=r.Qa(),a=t.l,e=t.l.Rd(),o=r.dd(i),i=n.Pa(),r=jt(o),n=kt(o),(t=t.a.Z().wa())&&(sr(s=[r[0]-t[0],r[1]-t[1]],p),er(s,t)),a.Ne(s),e)&&(e.style.width=Math.abs((r[0]-n[0])/i)+"px",e.style.height=Math.abs((n[1]-r[1])/i)+"px")}function Eh(t){t.element.classList.toggle("ol-collapsed"),t.j?Ao(t.u,t.D):Ao(t.D,t.u),t.j=!t.j;var e=t.c;t.j||e.c||(e.Ad(),Ph(t),Ye(e,"postrender",function(){Ah(this)},t))}function Th(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="",To.call(this,{element:this.c,render:t.render||Ch,target:t.target}),d(this,so(Rh),this.T,this),this.I(t.units||"metric")}e(Sh,To),(r=Sh.prototype).setMap=function(t){var e=this.a;t!==e&&(e&&((e=e.Z())&&He(e,so("rotation"),this.Ge,this),this.c.Le(null)),To.prototype.setMap.call(this,t),t)&&(this.c.Le(this.C),this.v.push(d(t,"propertychange",this.Kl,this)),this.c.Xh().dc()||this.c.qj(t.Kc()),t=t.Z())&&(d(t,so("rotation"),this.Ge,this),rn(t)&&(this.c.Ad(),Ph(this)))},r.Kl=function(t){"view"===t.key&&((t=t.oldValue)&&He(t,so("rotation"),this.Ge,this),d(t=this.a.Z(),so("rotation"),this.Ge,this))},r.Ge=function(){this.c.Z().Oe(this.a.Z().Qa())},r.an=function(t){t.preventDefault(),Eh(this)},r.$m=function(){return this.o},r.cn=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t)&&this.j&&Eh(this)},r.bn=function(t){this.o&&this.j!==t&&Eh(this)},r.Zm=function(){return this.j},r.gl=function(){return this.c},e(Th,To);var jh=[1,2,5];function Ch(t){(t=t.frameState)?this.u=t.viewState:this.u=null,Lh(this)}function Lh(t){if(o=t.u){var e=(i=o.projection).sc(),o=ce(i,o.resolution,o.center)*e,e=t.l*o,i="";"degrees"==(n=t.C())?(o/=i=Yt.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):O(!1,33);for(var r,n=3*Math.floor(Math.log(t.l*o)/Math.log(10));;){if(r=jh[(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)}Th.prototype.C=function(){return this.get(Rh)},Th.prototype.T=function(){Lh(this)},Th.prototype.I=function(t){this.set(Rh,t)};var Rh="units";function Ih(t){t=t||{},this.c=void 0,this.j=Nh,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 Ii(i),d(this.o,"pointerdown",this.yl,this),d(this.o,"pointermove",this.wl,this),d(this.o,"pointerup",this.xl,this),d(i,"click",this.vl,this),d(o,"click",to),To.call(this,{element:i,render:t.render||Fh})}e(Ih,To),Ih.prototype.ka=function(){$e(this.o),To.prototype.ka.call(this)};var Nh=0;function Fh(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=Nh,this.l=o-n),this.na=!0),(t=t.frameState.viewState.resolution)!==this.c)&&(this.c=t,kh(this,t))}function kh(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 Dh(t,e){t=t.a.Z(),o=t.a,t=Math.log(o/t.f)/Math.log(2);var o,e=1-e;return o/Math.pow(2,e*t)}function Oh(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),d(r,"click",this.j,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(r),To.call(this,{element:o,target:t.target})}function Uh(t){ro.call(this),t=t||{},this.a=null,d(this,so(Wh),this.vm,this),this.gg(void 0!==t.tracking&&t.tracking)}(r=Ih.prototype).setMap=function(t){To.prototype.setMap.call(this,t),t&&t.render()},r.vl=function(t){var e=this.a.Z();t=Dh(this,Q(1===this.j?(t.offsetX-this.I[0]/2)/this.D:(t.offsetY-this.I[1]/2)/this.l,0,1)),e.animate({resolution:e.constrainResolution(t),duration:this.T,easing:Io})},r.yl=function(t){this.u||t.b.target!==this.element.firstElementChild||(nn(this.a.Z(),1,1),this.C=t.clientX,this.B=t.clientY,this.u=!0)},r.wl=function(t){var e;this.u&&(e=this.element.firstElementChild,this.c=Dh(this,Q(1===this.j?(t.clientX-this.C+parseInt(e.style.left,10))/this.D:(t.clientY-this.B+parseInt(e.style.top,10))/this.l,0,1)),this.a.Z().Vc(this.c),kh(this,this.c),this.C=t.clientX,this.B=t.clientY)},r.xl=function(){var t;this.u&&(nn(t=this.a.Z(),1,-1),t.animate({resolution:t.constrainResolution(this.c),duration:this.T,easing:Io}),this.u=!1,this.B=this.C=void 0)},e(Oh,To),Oh.prototype.j=function(t){t.preventDefault(),t=this.a.Z();var e=this.c||t.v.G();t.Qf(e)},e(Uh,ro),(r=Uh.prototype).ka=function(){this.gg(!1),ro.prototype.ka.call(this)},r.ap=function(t){var e;null!==t.alpha&&(e=it(t.alpha),this.set(Gh,e),"boolean"==typeof t.absolute&&t.absolute?this.set(Vh,e):"number"==typeof t.webkitCompassHeading&&-1!=t.webkitCompassAccuracy&&this.set(Vh,it(t.webkitCompassHeading))),null!==t.beta&&this.set(Bh,it(t.beta)),null!==t.gamma&&this.set(Xh,it(t.gamma)),this.s()},r.Fk=function(){return this.get(Gh)},r.Ik=function(){return this.get(Bh)},r.Ok=function(){return this.get(Xh)},r.um=function(){return this.get(Vh)},r.Th=function(){return this.get(Wh)},r.vm=function(){var t;pi&&((t=this.Th())&&!this.a?this.a=d(window,"deviceorientation",this.ap,this):t||null===this.a||(qe(this.a),this.a=null))},r.gg=function(t){this.set(Wh,t)};var Gh="alpha",Bh="beta",Xh="gamma",Vh="heading",Wh="tracking";function Zh(t){this.f=t.opacity,this.l=t.rotateWithView,this.g=t.rotation,this.a=t.scale,this.v=t.snapToPixel}function Kh(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,zh(this,this.S),Zh.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 zh(t,e){var o,i,r="",n="",s=0,a=null,p=0,h=(t.Ya&&(o=Mo(o=null===(o=t.Ya.a)?Gs:o),void 0===(p=t.Ya.c)&&(p=1),a=t.Ya.i,si||(a=null),void 0===(n=t.Ya.j)&&(n="round"),void 0===(r=t.Ya.f)&&(r="round"),void 0===(s=t.Ya.o))&&(s=10),2*(t.b+p)+1),r={strokeStyle:o,zj:p,size:h,lineCap:r,lineDash:a,lineJoin:n,miterLimit:s};void 0===e?(i=Po(h,h),t.u=i.canvas,e=h=t.u.width,t.rh(r,i,0,0),t.Va?t.D=t.u:(i=Po(r.size,r.size),t.D=i.canvas,t.qh(r,i,0,0))):(h=Math.round(h),(n=!t.Va)&&(i=t.qh.bind(t,r)),s=t.Ya?(void 0===(s=t.Ya).b&&(s.b="s",s.b=s.a?"string"==typeof s.a?s.b+s.a:s.b+U(s.a).toString():s.b+"-",s.b+=","+(void 0!==s.f?s.f.toString():"-")+","+(s.i?s.i.toString():"-")+","+(void 0!==s.g?s.g:"-")+","+(void 0!==s.j?s.j:"-")+","+(void 0!==s.o?s.o.toString():"-")+","+(void 0!==s.c?s.c.toString():"-")),s.b):"-",a=t.Va?(void 0===(a=t.Va).a&&(a.a=a.b instanceof CanvasPattern||a.b instanceof CanvasGradient?U(a.b).toString():"f"+(a.b?bo(a.b):"-")),a.a):"-",t.c&&s==t.c[1]&&a==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"+s+a+(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():"-"),s,a,t.b,t.i,t.j,t.o]),i=e.add(t.c[0],h,h,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=[h/2,h/2],t.ra=[h,h],t.B=[e,e]}function Yh(t){Kh.call(this,{points:1/0,fill:(t=t||{}).fill,radius:t.radius,snapToPixel:t.snapToPixel,stroke:t.stroke,atlasManager:t.atlasManager})}function Hh(t){this.b=void 0!==(t=t||{}).color?t.color:null,this.a=void 0}function qh(t){t=t||{},this.Gc=null,this.Za=tl,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 Jh(t){var e;return"function"!=typeof t&&(e=Array.isArray(t)?t:(O(t instanceof qh,41),[t]),t=function(){return e}),t}(r=Zh.prototype).Ze=function(){return this.f},r.$e=function(){return this.l},r.af=function(){return this.g},r.bf=function(){return this.a},r.Ae=function(){return this.v},r.td=function(t){this.f=t},r.cf=function(t){this.g=t},r.ud=function(t){this.a=t},e(Kh,Zh),(r=Kh.prototype).clone=function(){var t=new Kh({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},r.Hc=function(){return this.C},r.Pi=function(){return this.j},r.Fa=function(){return this.Va},r.qg=function(){return this.D},r.Y=function(){return this.u},r.ye=function(){return this.B},r.Ye=function(){return 2},r.Oc=function(){return this.oa},r.Qi=function(){return this.o},r.Ri=function(){return this.b},r.Fh=function(){return this.i},r.ic=function(){return this.ra},r.Ga=function(){return this.Ya},r.Nh=function(){},r.load=function(){},r.Bj=function(){},r.rh=function(t,e,o,i){e.setTransform(1,0,0,1,0,0),e.translate(o,i),e.beginPath();var r=this.o;if(1/0===r)e.arc(t.size/2,t.size/2,this.b,0,2*Math.PI,!0);else{var n=void 0!==this.i?this.i:this.b;for(n!==this.b&&(r*=2),o=0;o<=r;o++){i=2*o*Math.PI/r-Math.PI/2+this.j;var s=o%2?n:this.b;e.lineTo(t.size/2+s*Math.cos(i),t.size/2+s*Math.sin(i))}}this.Va&&(o=this.Va.b,e.fillStyle=Mo(o=null===o?Os:o),e.fill()),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},r.qh=function(t,e,o,i){var r;if(e.setTransform(1,0,0,1,0,0),e.translate(o,i),e.beginPath(),1/0===(o=this.o))e.arc(t.size/2,t.size/2,this.b,0,2*Math.PI,!0);else for((i=void 0!==this.i?this.i:this.b)!==this.b&&(o*=2),r=0;r<=o;r++){var n=2*r*Math.PI/o-Math.PI/2+this.j,s=r%2?i:this.b;e.lineTo(t.size/2+s*Math.cos(n),t.size/2+s*Math.sin(n))}e.fillStyle=Os,e.fill(),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.stroke()),e.closePath()},e(Yh,Kh),Yh.prototype.clone=function(){var t=new Yh({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},Yh.prototype.Uc=function(t){this.b=t,zh(this,this.S)},Hh.prototype.clone=function(){var t=this.b;return new Hh({color:t&&t.slice?t.slice():t||void 0})},Hh.prototype.i=function(){return this.b},Hh.prototype.c=function(t){this.b=t,this.a=void 0},(r=qh.prototype).clone=function(){var t=this.V();return new qh({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()})},r.V=function(){return this.Gc},r.Pk=function(){return this.Za},r.Fa=function(){return this.Va},r.pf=function(t){this.Va=t},r.Y=function(){return this.M},r.Og=function(t){this.M=t},r.Ga=function(){return this.Ya},r.qf=function(t){this.Ya=t},r.Na=function(){return this.Ia},r.xd=function(t){this.Ia=t},r.Ba=function(){return this.Fj},r.Ra=function(e){this.Za="function"==typeof e?e:"string"==typeof e?function(t){return t.get(e)}:e?function(){return e}:tl,this.Gc=e},r.Vb=function(t){this.Fj=t};var _h=null;function $h(){var t,e;return _h||(t=new Hh({color:"rgba(255,255,255,0.4)"}),e=new hp({color:"#3399CC",width:1.25}),_h=[new qh({image:new Yh({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]),_h}function Qh(){var t={},e=[255,255,255,1],o=[0,153,255,1];return t.Polygon=[new qh({fill:new Hh({color:[255,255,255,.5]})})],t.MultiPolygon=t.Polygon,t.LineString=[new qh({stroke:new hp({color:e,width:5})}),new qh({stroke:new hp({color:o,width:3})})],t.MultiLineString=t.LineString,t.Circle=t.Polygon.concat(t.LineString),t.Point=[new qh({image:new Yh({radius:6,fill:new Hh({color:o}),stroke:new hp({color:e,width:1.5})}),zIndex:1/0})],t.MultiPoint=t.Point,t.GeometryCollection=t.Polygon.concat(t.LineString,t.Point),t}function tl(t){return t.V()}function x(t){ro.call(this),this.a=void 0,this.c="geometry",this.g=null,this.j=void 0,this.f=null,d(this,so(this.c),this.Ee,this),void 0!==t&&(t instanceof yr||!t?this.Ra(t):this.H(t))}e(x,ro),(r=x.prototype).clone=function(){var t=new x(this.N()),e=(t.Tc(this.c),this.V());return e&&t.Ra(e.clone()),(e=this.g)&&t.hg(e),t},r.V=function(){return this.get(this.c)},r.wm=function(){return this.a},r.Qk=function(){return this.c},r.xm=function(){return this.g},r.Lc=function(){return this.j},r.Al=function(){this.s()},r.Ee=function(){this.f&&(qe(this.f),this.f=null);var t=this.V();t&&(this.f=d(t,"change",this.Al,this)),this.s()},r.Ra=function(t){this.set(this.c,t)},r.hg=function(t){this.j=(this.g=t)?function(e){var t;{var o;t="function"==typeof e?2==e.length?function(t){return e(this,t)}:e:(o=Array.isArray(e)?e:(O(e instanceof qh,41),[e]),function(){return o})}return t}(t):void 0,this.s()},r.jc=function(t){this.a=t,this.s()},r.Tc=function(t){He(this,so(this.c),this.Ee,this),this.c=t,d(this,so(this.c),this.Ee,this),this.Ee()};var el=document.implementation.createDocument("","",null);function ol(t,e){return el.createElementNS(t,e)}function il(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 rl(t){return t instanceof Document}function nl(t){return t instanceof Node}function sl(t){return(new DOMParser).parseFromString(t,"application/xml")}function al(o,i){return function(t,e){void 0!==(t=o.call(i,t,e))&&X(e[e.length-1],t)}}function pl(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 hl(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&(e[e.length-1]=t)}}function ll(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 o(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 ul(r){var n,s;return function(t,e,o){var i;n||(n={},(i={})[t.localName]=r,n[t.namespaceURI]=i,s=cl(t.localName)),dl(n,s,e,o)}}function cl(i,r){return function(t,e,o){return t=e[e.length-1].node,void 0===(e=i)&&(e=o),ol(o=void 0===(o=r)?t.namespaceURI:r,e)}}var fl=cl();function yl(t,e){for(var o=e.length,i=Array(o),r=0;r<o;++r)i[r]=t[e[r]];return i}function l(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 gl(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 g(t,e,o,i,r){return i.push(t),gl(e,o,i,r),i.pop()}function dl(t,e,o,i,r,n){for(var s,a,p=(void 0!==r?r:o).length,h=0;h<p;++h)void 0!==(s=o[h])&&void 0!==(a=e.call(n,s,i,void 0!==r?r[h]:void 0))&&t[a.namespaceURI][a.localName].call(n,a,s,i)}function vl(t,e,o,i,r,n,s){r.push(t),dl(e,o,i,r,n,s),r.pop()}function bl(r,n,s,a){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)||sl(i.responseText):"arraybuffer"==t&&(e=i.response),e)?s.call(this,n.Oa(e,{featureProjection:o}),n.kb(e)):a.call(this)}.bind(this),i.onerror=function(){a.call(this)}.bind(this),i.send()}}function ml(t,e){return bl(t,e,function(t){this.cd(t)},Y)}function wl(){this.f=this.defaultDataProjection=null}function xl(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 Xt({dataProjection:t.defaultDataProjection,featureProjection:t.f},e)}function Ml(t,e,o){var i,r=o?v(o.featureProjection):null,n=o?v(o.dataProjection):null,n=r&&n&&!be(r,n)?t instanceof yr?(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 Pl(){wl.call(this)}function Al(t){return"string"==typeof t?(t=JSON.parse(t))||null:null!==t?t:null}function El(t,e,o,i,r,n){var s=NaN,a=NaN;if(1===(p=(o-e)/i))s=t[e],a=t[e+1];else if(2==p)s=(1-r)*t[e]+r*t[e+i],a=(1-r)*t[e+1]+r*t[e+i+1];else if(p){for(var a=t[e],p=t[e+1],h=0,s=[0],l=e+i;l<o;l+=i){var u=t[l],c=t[l+1],h=h+Math.sqrt((u-a)*(u-a)+(c-p)*(c-p));s.push(h),a=u,p=c}for(o=r*h,p=0,h=s.length,l=!1;p<h;)(a=+G(s[r=p+(h-p>>1)],o))<0?p=r+1:(h=r,l=!a);a=(r=l?p:~p)<0?(o=(o-s[-r-2])/(s[-r-1]-s[-r-2]),s=nt(t[e+=(-r-2)*i],t[e+i],o),nt(t[e+1],t[e+i+1],o)):(s=t[e+r*i],t[e+r*i+1])}return n?(n[0]=s,n[1]=a,n):[s,a]}function Tl(t,e,o,i,r,n){if(o==e)return null;if(r<t[e+i-1])return n?((o=t.slice(e,e+i))[i-1]=r,o):null;if(t[o-1]<r)return n?((o=t.slice(o-i,o))[i-1]=r,o):null;if(r==t[e+i-1])return t.slice(e,e+i);for(e/=i,o/=i;e<o;)r<t[((n=e+o>>1)+1)*i-1]?o=n:e=n+1;if(r==(o=t[e*i-1]))return t.slice((e-1)*i,(e-1)*i+i);var s;for(n=(r-o)/(t[(e+1)*i-1]-o),o=[],s=0;s<i-1;++s)o.push(nt(t[(e-1)*i+s],t[e*i+s],n));return o.push(r),o}function S(t,e){b.call(this),this.c=null,this.u=this.D=this.j=-1,this.ma(t,e)}function jl(t){return t.j!=t.i&&(t.c=t.wh(.5,t.c),t.j=t.i),t.c}function M(t,e){b.call(this),this.c=[],this.j=this.u=-1,this.ma(t,e)}function Cl(t){for(var e=[],o=t.A,i=0,r=t.c,n=(t=t.a,0),s=r.length;n<s;++n){var a=r[n];X(e,i=El(o,i,a,t,.5)),i=a}return e}function Ll(t,e){for(var o=t.ja,i=[],r=[],n=0,s=e.length;n<s;++n){var a=e[n];n||(o=a.ja),X(i,a.ga()),r.push(i.length)}t.ba(o,i,r)}function P(t,e){b.call(this),this.ma(t,e)}function f(t,e){b.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 Rl(t){if(t.u!=t.i){var e=t.A,o=t.c,i=t.a,r=0,n=[],s=0;for(h=o.length;s<h;++s){var a=o[s],r=xt(e,r,a[0],i);n.push((r[0]+r[2])/2,(r[1]+r[3])/2),r=a[a.length-1]}for(e=Il(t),o=t.c,i=t.a,h=[],a=s=0,r=o.length;a<r;++a)var p=o[a],h=Ur(e,s,p,i,n,2*a,h),s=p[p.length-1];t.D=h,t.u=t.i}return t.D}function Il(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(!Wr(e,o[i],t.a,void 0)){o=!1;break t}o=!0}o?t.j=e:(t.j=e.slice(),t.j.length=Kr(t.j,t.c,t.a)),t.I=t.i}return t.j}function Nl(t,e,o,i){br(t,e,o),t.c=i,t.s()}function Fl(t,e){for(var o=t.ja,i=[],r=[],n=0,s=e.length;n<s;++n){for(var a=e[n],p=(n||(o=a.ja),i.length),h=a.Bb(),l=0,u=h.length;l<u;++l)h[l]+=p;X(i,a.ga()),r.push(h)}Nl(t,o,i,r)}function kl(t){t=t||{},wl.call(this),this.b=t.geometryName}function Dl(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=Ol(t),n=[],s=[],o=[],a=0,p=i.length;a<p;++a)n.length=0,jr(n,0,i[a],r.length),Vr(n,0,n.length,r.length)?s.push([i[a]]):o.push(i[a]);for(;o.length;){for(i=o.shift(),r=!1,a=s.length-1;0<=a;a--)if(yt(new Fr(s[a][0]).G(),new Fr(i).G())){s[a].push(i),r=!0;break}r||s.push([i.reverse()])}t=Xt({},t),1===s.length?(o="Polygon",t.rings=s[0]):(o="MultiPolygon",t.rings=s)}return Ml((0,Gl[o])(t),!1,e)}function Ol(t){var e="XY";return!0===t.hasZ&&!0===t.hasM?e="XYZM":!0===t.hasZ?e="XYZ":!0===t.hasM&&(e="XYM"),e}function Ul(t){return{hasZ:"XYZ"===(t=t.ja)||"XYZM"===t,hasM:"XYM"===t||"XYZM"===t}}e(Pl,wl),(r=Pl.prototype).U=function(){return"json"},r.Tb=function(t,e){return this.Rc(Al(t),xl(this,t,e))},r.Oa=function(t,e){return this.yg(Al(t),xl(this,t,e))},r.Sc=function(t,e){return this.Cg(Al(t),xl(this,t,e))},r.kb=function(t){return this.Fg(Al(t))},r.Bd=function(t,e){return JSON.stringify(this.Zc(t,e))},r.Wb=function(t,e){return JSON.stringify(this.he(t,e))},r.$c=function(t,e){return JSON.stringify(this.je(t,e))},e(S,b),(r=S.prototype).mk=function(t){this.A?X(this.A,t):this.A=t.slice(),this.s()},r.clone=function(){var t=new S(null);return t.ba(this.ja,this.A.slice()),t},r.Kb=function(t,e,o,i){return i<ct(this.G(),t,e)?i:(this.u!=this.i&&(this.D=Math.sqrt(Mr(this.A,0,this.A.length,this.a,0)),this.u=this.i),Ar(this.A,0,this.A.length,this.a,this.D,!1,t,e,o,i))},r.Ck=function(t,e){return Gr(this.A,0,this.A.length,this.a,t,e)},r.nn=function(t,e){return"XYM"!=this.ja&&"XYZM"!=this.ja?null:Tl(this.A,0,this.A.length,this.a,t,void 0!==e&&e)},r.X=function(){return Lr(this.A,0,this.A.length,this.a)},r.wh=function(t,e){return El(this.A,0,this.A.length,this.a,t,e)},r.pn=function(){for(var t=this.A,e=this.a,o=t[0],i=t[1],r=0,n=0+e;n<this.A.length;n+=e)var s=t[n],a=t[n+1],r=r+Math.sqrt((s-o)*(s-o)+(a-i)*(a-i)),o=s,i=a;return r},r.hd=function(t){var e=[];return e.length=Ir(this.A,0,this.A.length,this.a,t,e,0),(t=new S(null)).ba("XY",e),t},r.U=function(){return"LineString"},r.Xa=function(t){return Br(this.A,0,this.A.length,this.a,t)},r.ma=function(t,e){t?(mr(this,e,t,1),this.A||(this.A=[]),this.A.length=jr(this.A,0,t,this.a),this.s()):this.ba("XY",null)},r.ba=function(t,e){br(this,t,e),this.s()},e(M,b),(r=M.prototype).nk=function(t){this.A?X(this.A,t.ga().slice()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},r.clone=function(){var t=new M(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},r.Kb=function(t,e,o,i){return i<ct(this.G(),t,e)?i:(this.j!=this.i&&(this.u=Math.sqrt(Pr(this.A,0,this.c,this.a,0)),this.j=this.i),Er(this.A,0,this.c,this.a,this.u,!1,t,e,o,i))},r.rn=function(t,e,o){if(("XYM"==this.ja||"XYZM"==this.ja)&&this.A.length){var i=this.A,r=this.c,n=this.a,s=t,a=void 0!==e&&e,p=void 0!==o&&o,h=0;if(p)return Tl(i,h,r[r.length-1],n,s,a);if(s<i[n-1])return a?((i=i.slice(0,n))[n-1]=s,i):null;if(i[i.length-1]<s)return a?((i=i.slice(i.length-n))[n-1]=s,i):null;for(a=0,p=r.length;a<p;++a){var l=r[a];if(h!=l){if(s<i[h+n-1])break;if(s<=i[l-1])return Tl(i,h,l,n,s,!1);h=l}}}return null},r.X=function(){return Rr(this.A,0,this.c,this.a)},r.Bb=function(){return this.c},r.Yk=function(t){var e;return t<0||this.c.length<=t?null:((e=new S(null)).ba(this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e)},r.gd=function(){for(var t=this.A,e=this.c,o=this.ja,i=[],r=0,n=0,s=e.length;n<s;++n){var a=e[n],p=new S(null);p.ba(o,t.slice(r,a)),i.push(p),r=a}return i},r.hd=function(t){for(var e=[],o=[],i=this.A,r=this.c,n=this.a,s=0,a=0,p=0,h=r.length;p<h;++p){var l=r[p],a=Ir(i,s,l,n,t,e,a);o.push(a),s=l}return e.length=a,(t=new M(null)).ba("XY",e,o),t},r.U=function(){return"MultiLineString"},r.Xa=function(t){t:{for(var e=this.A,o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){if(Br(e,r,o[n],i,t)){t=!0;break t}r=o[n]}t=!1}return t},r.ma=function(t,e){t?(mr(this,e,t,2),this.A||(this.A=[]),t=Cr(this.A,0,t,this.a,this.c),this.A.length=t.length?t[t.length-1]:0,this.s()):this.ba("XY",null,this.c)},r.ba=function(t,e,o){br(this,t,e),this.c=o,this.s()},e(P,b),(r=P.prototype).qk=function(t){this.A?X(this.A,t.ga()):this.A=t.ga().slice(),this.s()},r.clone=function(){var t=new P(null);return t.ba(this.ja,this.A.slice()),t},r.Kb=function(t,e,o,i){if(!(i<ct(this.G(),t,e)))for(var r=this.A,n=this.a,s=0,a=r.length;s<a;s+=n){var p=ot(t,e,r[s],r[s+1]);if(p<i){for(i=p,p=0;p<n;++p)o[p]=r[s+p];o.length=n}}return i},r.X=function(){return Lr(this.A,0,this.A.length,this.a)},r.il=function(t){var e=this.A?this.A.length/this.a:0;return t<0||e<=t?null:((e=new m(null)).ba(this.ja,this.A.slice(t*this.a,(t+1)*this.a)),e)},r.Zd=function(){for(var t=this.A,e=this.ja,o=this.a,i=[],r=0,n=t.length;r<n;r+=o){var s=new m(null);s.ba(e,t.slice(r,r+o)),i.push(s)}return i},r.U=function(){return"MultiPoint"},r.Xa=function(t){for(var e=this.A,o=this.a,i=0,r=e.length;i<r;i+=o)if(gt(t,e[i],e[i+1]))return!0;return!1},r.ma=function(t,e){t?(mr(this,e,t,1),this.A||(this.A=[]),this.A.length=jr(this.A,0,t,this.a),this.s()):this.ba("XY",null)},r.ba=function(t,e){br(this,t,e),this.s()},e(f,b),(r=f.prototype).rk=function(t){if(this.A)for(var e=this.A.length,o=(X(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()},r.clone=function(){for(var t=new f(null),e=this.c.length,o=Array(e),i=0;i<e;++i)o[i]=this.c[i].slice();return Nl(t,this.ja,this.A.slice(),o),t},r.Kb=function(t,e,o,i){if(!(i<ct(this.G(),t,e))){if(this.C!=this.i){for(var r=this.c,n=0,s=0,a=0,p=r.length;a<p;++a)var h=r[a],s=Pr(this.A,n,h,this.a,s),n=h[h.length-1];this.B=Math.sqrt(s),this.C=this.i}r=Il(this),n=this.c,s=this.a;for(var a=this.B,h=[NaN,NaN],l=p=0,u=n.length;l<u;++l){var c=n[l];i=Er(r,p,c,s,a,!0,t,e,o,i,h),p=c[c.length-1]}}return i},r.Mc=function(t,e){t:{var o=Il(this),i=this.c,r=0;if(i.length)for(var n=0,s=i.length;n<s;++n){var a=i[n];if(Or(o,r,a,this.a,t,e)){t=!0;break t}r=a[a.length-1]}t=!1}return t},r.sn=function(){for(var t=Il(this),e=this.c,o=0,i=0,r=0,n=e.length;r<n;++r)var s=e[r],i=i+xr(t,o,s,this.a),o=s[s.length-1];return i},r.X=function(t){void 0!==t?Kr(e=Il(this).slice(),this.c,this.a,t):e=this.A,t=e,e=this.c;for(var e,o=this.a,i=0,r=[],n=0,s=0,a=e.length;s<a;++s){var p=e[s];r[n++]=Rr(t,i,p,o,r[n]),i=p[p.length-1]}return r.length=n,r},r.Uk=function(){var t=new P(null);return t.ba("XY",Rl(this).slice()),t},r.hd=function(t){for(var e=[],o=[],i=this.A,r=this.c,n=this.a,s=(t=Math.sqrt(t),0),a=0,p=0,h=r.length;p<h;++p){var l=r[p],u=[],a=Nr(i,s,l,n,t,e,a,u);o.push(u),s=l[l.length-1]}return e.length=a,Nl(i=new f(null),"XY",e,o),i},r.jl=function(t){if(t<0||this.c.length<=t)return null;e=t?(e=this.c[t-1])[e.length-1]:0;var e,o=(t=this.c[t].slice())[t.length-1];if(e)for(var i=0,r=t.length;i<r;++i)t[i]-=e;return(i=new w(null)).ba(this.ja,this.A.slice(e,o),t),i},r.Td=function(){for(var t=this.ja,e=this.A,o=this.c,i=[],r=0,n=0,s=o.length;n<s;++n){var a=o[n].slice(),p=a[a.length-1];if(r)for(var h=0,l=a.length;h<l;++h)a[h]-=r;(h=new w(null)).ba(t,e.slice(r,p),a),i.push(h),r=p}return i},r.U=function(){return"MultiPolygon"},r.Xa=function(t){t:{for(var e=Il(this),o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){var a=o[n];if(Xr(e,r,a,i,t)){t=!0;break t}r=a[a.length-1]}t=!1}return t},r.ma=function(t,e){if(t){mr(this,e,t,3),this.A||(this.A=[]),e=this.A;for(var o=this.a,i=0,r=(r=this.c)||[],n=0,s=0,a=t.length;s<a;++s)i=Cr(e,i,t[s],o,r[n]),i=(r[n++]=i)[i.length-1];r.length=n,r.length?(t=r[r.length-1],this.A.length=t.length?t[t.length-1]:0):this.A.length=0,this.s()}else Nl(this,"XY",null,this.c)},e(kl,Pl);var Gl={Point:function(t){return void 0!==t.m&&void 0!==t.z?new m([t.x,t.y,t.z,t.m],"XYZM"):void 0!==t.z?new m([t.x,t.y,t.z],"XYZ"):void 0!==t.m?new m([t.x,t.y,t.m],"XYM"):new m([t.x,t.y])},LineString:function(t){return new S(t.paths[0],Ol(t))},Polygon:function(t){return new w(t.rings,Ol(t))},MultiPoint:function(t){return new P(t.points,Ol(t))},MultiLineString:function(t){return new M(t.paths,Ol(t))},MultiPolygon:function(t){return new f(t.rings,Ol(t))}},Bl={Point:function(t){var e,o=t.X();return"XYZ"===(t=t.ja)?e={x:o[0],y:o[1],z:o[2]}:"XYM"===t?e={x:o[0],y:o[1],m:o[2]}:"XYZM"===t?e={x:o[0],y:o[1],z:o[2],m:o[3]}:"XY"===t?e={x:o[0],y:o[1]}:O(!1,34),e},LineString:function(t){var e=Ul(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:[t.X()]}},Polygon:function(t){var e=Ul(t);return{hasZ:e.hasZ,hasM:e.hasM,rings:t.X(!1)}},MultiPoint:function(t){var e=Ul(t);return{hasZ:e.hasZ,hasM:e.hasM,points:t.X()}},MultiLineString:function(t){var e=Ul(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:t.X()}},MultiPolygon:function(t){var e=Ul(t);t=t.X(!1);for(var o=[],i=0;i<t.length;i++)for(var r=t[i].length-1;0<=r;r--)o.push(t[i][r]);return{hasZ:e.hasZ,hasM:e.hasM,rings:o}}};function Xl(t,e){return(0,Bl[t.U()])(Ml(t,!0,e),e)}function Vl(t){this.kc=t}function Wl(t,e){this.kc=t,this.b=Array.prototype.slice.call(arguments,1),O(2<=this.b.length,57)}function Zl(t){var e=["And"].concat(Array.prototype.slice.call(arguments));Wl.apply(this,e)}function Kl(t,e,o){this.kc="BBOX",this.geometryName=t,this.extent=e,this.srsName=o}function zl(t,e){this.kc=t,this.b=e}function Yl(t,e,o){zl.call(this,"During",t),this.a=e,this.i=o}function Hl(t,e,o,i){zl.call(this,t,e),this.i=o,this.a=i}function ql(t,e,o){Hl.call(this,"PropertyIsEqualTo",t,e,o)}function Jl(t,e){Hl.call(this,"PropertyIsGreaterThan",t,e)}function _l(t,e){Hl.call(this,"PropertyIsGreaterThanOrEqualTo",t,e)}function $l(t,e,o,i){this.kc=t,this.geometryName=e||"the_geom",this.geometry=o,this.srsName=i}function Ql(t,e,o){$l.call(this,"Intersects",t,e,o)}function tu(t,e,o){zl.call(this,"PropertyIsBetween",t),this.a=e,this.i=o}function eu(t,e,o,i,r,n){zl.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 ou(t){zl.call(this,"PropertyIsNull",t)}function iu(t,e){Hl.call(this,"PropertyIsLessThan",t,e)}function ru(t,e){Hl.call(this,"PropertyIsLessThanOrEqualTo",t,e)}function nu(t){this.kc="Not",this.condition=t}function su(t,e,o){Hl.call(this,"PropertyIsNotEqualTo",t,e,o)}function au(t){var e=["Or"].concat(Array.prototype.slice.call(arguments));Wl.apply(this,e)}function pu(t,e,o){$l.call(this,"Within",t,e,o)}function hu(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Zl,e))}function lu(t,e,o){return new Kl(t,e,o)}function uu(t){yr.call(this),this.a=t||null,yu(this)}function cu(t){for(var e=[],o=0,i=t.length;o<i;++o)e.push(t[o].clone());return e}function fu(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)He(t.a[e],"change",t.s,t)}function yu(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)d(t.a[e],"change",t.s,t)}function gu(t){t=t||{},wl.call(this),this.defaultDataProjection=v(t.defaultDataProjection||"EPSG:4326"),t.featureProjection&&(this.f=v(t.featureProjection)),this.b=t.geometryName}function du(t,e){return t?Ml((0,bu[t.type])(t),!1,e):null}function vu(t,e){return(0,mu[t.U()])(Ml(t,!0,e),e)}(r=kl.prototype).Rc=function(t,e){var o=Dl(t.geometry,e),i=new x;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},r.yg=function(t,e){if(e=e||{},t.features){var o,i=[],r=t.features;for(e.dg=t.objectIdFieldName,t=0,o=r.length;t<o;++t)i.push(this.Rc(r[t],e));return i}return[this.Rc(t,e)]},r.Cg=Dl,r.Fg=function(t){return t.spatialReference&&t.spatialReference.wkid?v("EPSG:"+t.spatialReference.wkid):null},r.je=function(t,e){return Xl(t,Sl(this,e))},r.Zc=function(t,e){e=Sl(this,e);var o={},i=t.V();return i&&(o.geometry=Xl(i,e)),delete(i=t.N())[t.c],o.attributes=Zt(i)?{}:i,e&&e.featureProjection&&(o.spatialReference={wkid:v(e.featureProjection).mb.split(":").pop()}),o},r.he=function(t,e){e=Sl(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{features:o}},e(Wl,Vl),e(Zl,Wl),e(Kl,Vl),e(zl,Vl),e(Yl,zl),e(Hl,zl),e(ql,Hl),e(Jl,Hl),e(_l,Hl),e($l,Vl),e(Ql,$l),e(tu,zl),e(eu,zl),e(ou,zl),e(iu,Hl),e(ru,Hl),e(nu,Vl),e(su,Hl),e(au,Wl),e(pu,$l),e(uu,yr),(r=uu.prototype).clone=function(){var t=new uu(null);return t.oj(this.a),t},r.Kb=function(t,e,o,i){if(!(i<ct(this.G(),t,e)))for(var r=this.a,n=0,s=r.length;n<s;++n)i=r[n].Kb(t,e,o,i);return i},r.Mc=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)if(o[i].Mc(t,e))return!0;return!1},r.se=function(t){mt(t);for(var e=this.a,o=0,i=e.length;o<i;++o)Mt(t,e[o].G());return t},r.Vf=function(){return cu(this.a)},r.Vd=function(t){if(this.o!=this.i&&(Vt(this.f),this.g=0,this.o=this.i),!(t<0||this.g&&t<this.g)){var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];for(var o=[],i=this.a,r=!1,n=0,s=i.length;n<s;++n){var a=i[n],p=a.Vd(t);o.push(p),p!==a&&(r=!0)}if(r)return fu(t=new uu(null)),t.a=o,yu(t),t.s(),this.f[e]=t;this.g=t}return this},r.U=function(){return"GeometryCollection"},r.Xa=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o].Xa(t))return!0;return!1},r.rotate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].rotate(t,e);this.s()},r.scale=function(t,e,o){o=o||Lt(this.G());for(var i=this.a,r=0,n=i.length;r<n;++r)i[r].scale(t,e,o);this.s()},r.oj=function(t){t=cu(t),fu(this),this.a=t,yu(this),this.s()},r.Dc=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)e[o].Dc(t);this.s()},r.translate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].translate(t,e);this.s()},r.ka=function(){fu(this),yr.prototype.ka.call(this)},e(gu,Pl);var bu={Point:function(t){return new m(t.coordinates)},LineString:function(t){return new S(t.coordinates)},Polygon:function(t){return new w(t.coordinates)},MultiPoint:function(t){return new P(t.coordinates)},MultiLineString:function(t){return new M(t.coordinates)},MultiPolygon:function(t){return new f(t.coordinates)},GeometryCollection:function(t,e){return new uu(t=t.geometries.map(function(t){return du(t,e)}))}},mu={Point:function(t){return{type:"Point",coordinates:t.X()}},LineString:function(t){return{type:"LineString",coordinates:t.X()}},Polygon:function(t,e){var o;return e&&(o=e.rightHanded),{type:"Polygon",coordinates:t.X(o)}},MultiPoint:function(t){return{type:"MultiPoint",coordinates:t.X()}},MultiLineString:function(t){return{type:"MultiLineString",coordinates:t.X()}},MultiPolygon:function(t,e){var o;return e&&(o=e.rightHanded),{type:"MultiPolygon",coordinates:t.X(o)}},GeometryCollection:function(t,o){return{type:"GeometryCollection",geometries:t.a.map(function(t){var e=Xt({},o);return delete e.featureProjection,vu(t,e)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};function wu(){this.i=new XMLSerializer,wl.call(this)}function xu(t,e,o){return 0<(t=Su(t,e,o)).length?t[0]:null}function Su(t,e,o){var i=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&X(i,t.zc(e,o));return i}function Mu(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:hl(Mu.prototype.be),featureMembers:hl(Mu.prototype.be)},wu.call(this)}(r=gu.prototype).Rc=function(t,e){e=du((t="Feature"===t.type?t:{type:"Feature",geometry:t}).geometry,e);var o=new x;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},r.yg=function(t,e){if("FeatureCollection"===t.type)for(var o=[],i=0,r=(t=t.features).length;i<r;++i)o.push(this.Rc(t[i],e));else o=[this.Rc(t,e)];return o},r.Cg=du,r.Fg=function(t){var e;return(t=t.crs)?"name"==t.type?e=v(t.properties.name):"EPSG"==t.type?e=v("EPSG:"+t.properties.code):O(!1,36):e=this.defaultDataProjection,e},r.Zc=function(t,e){e=Sl(this,e);var o={type:"Feature"},i=t.a;return void 0!==i&&(o.id=i),(i=t.V())?o.geometry=vu(i,e):o.geometry=null,delete(e=t.N())[t.c],Zt(e)?o.properties=null:o.properties=e,o},r.he=function(t,e){e=Sl(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{type:"FeatureCollection",features:o}},r.je=function(t,e){return vu(t,Sl(this,e))},e(wu,wl),(r=wu.prototype).U=function(){return"xml"},r.Tb=function(t,e){return rl(t)?xu(this,t,e):nl(t)?this.xg(t,e):"string"==typeof t?xu(this,t=sl(t),e):null},r.xg=function(){return null},r.Oa=function(t,e){return rl(t)?Su(this,t,e):nl(t)?this.zc(t,e):"string"==typeof t?Su(this,t=sl(t),e):[]},r.Sc=function(t,e){if(!rl(t)){if(nl(t))return this.aj(t,e);"string"==typeof t&&sl(t)}return null},r.aj=function(){return null},r.kb=function(t){return rl(t)?this.Eg(t):nl(t)?this.kf(t):"string"==typeof t?(t=sl(t),this.Eg(t)):null},r.Eg=function(){return this.defaultDataProjection},r.kf=function(){return this.defaultDataProjection},r.Bd=function(t,e){return this.i.serializeToString(this.Vg(t,e))},r.Vg=function(){return null},r.Wb=function(t,e){return t=this.Xb(t,e),this.i.serializeToString(t)},r.Xb=function(){return null},r.$c=function(t,e){return t=this.ie(t,e),this.i.serializeToString(t)},r.ie=function(){return null},e(Mu,wu);var Pu=/^[\s\xa0]*$/;function Au(t){return Eu(t=il(t,!1))}function Eu(t){if(t=/^\s*(true|1)|(false|0)\s*$/.exec(t))return void 0!==t[1]||!1}function Tu(t){return t=il(t,!1),t=Date.parse(t),isNaN(t)?void 0:t/1e3}function ju(t){return Cu(t=il(t,!1))}function Cu(t){if(t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t))return parseFloat(t[1])}function Lu(t){return Ru(t=il(t,!1))}function Ru(t){if(t=/^\s*(\d+)\s*$/.exec(t))return parseInt(t[1],10)}function i(t){return il(t,!1).trim()}function Iu(t,e){ku(t,e?"1":"0")}function Nu(t,e){t.appendChild(el.createTextNode(e.toPrecision()))}function Fu(t,e){t.appendChild(el.createTextNode(e.toString()))}function ku(t,e){t.appendChild(el.createTextNode(e))}function y(t){Mu.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"}function Du(t,e,o){o=(i=o[o.length-1]).hasZ;for(var i=i.srsName,r=(e=e.X()).length,n=Array(r),s=0;s<r;++s){var a=e[s],p=s,h=o,l="enu",l="en"===(l=i?v(i).b:l).substr(0,2)?a[0]+" "+a[1]:a[1]+" "+a[0];h&&(l+=" "+(a[2]||0)),n[p]=l}ku(t,n.join(" "))}(r=Mu.prototype).be=function(t,e){var o=t.localName,i=null;if("FeatureCollection"==o)i="http://www.opengis.net/wfs"===t.namespaceURI?g([],this.b,t,e,this):g(null,this.b,t,e,this);else if("featureMembers"==o||"featureMember"==o){var r=(y=e[0]).featureType,n=y.featureNS;if(!r&&t.childNodes){r=[];for(var n={},s=0,a=t.childNodes.length;s<a;++s)if(1===(c=t.childNodes[s]).nodeType){var p=c.nodeName.split(":").pop();if(-1===r.indexOf(p)){var h,l="",u=0,c=c.namespaceURI;for(h in n){if(n[h]===c){l=h;break}++u}l||(n[l="p"+u]=c),r.push(l+":"+p)}}"featureMember"!=o&&(y.featureType=r,y.featureNS=n)}"string"==typeof n&&(s=n,(n={}).p0=s);var f,y={},r=Array.isArray(r)?r:[r];for(f in n){for(p={},s=0,a=r.length;s<a;++s)(-1===r[s].indexOf(":")?"p0":r[s].split(":")[0])===f&&(p[r[s].split(":").pop()]=("featureMembers"==o?pl:hl)(this.wg,this));y[n[f]]=p}i=g("featureMember"==o?void 0:[],y,t,e)}return i=null===i?[]:i},r.gf=function(t,e){var o=e[0];if(o.srsName=t.firstElementChild.getAttribute("srsName"),t=g(null,this.Zg,t,e,this))return Ml(t,!1,o)},r.wg=function(t,e){var o,i=(i=t.getAttribute("fid"))||t.getAttributeNS("http://www.opengis.net/gml","id")||"",r={};for(t=t.firstElementChild;t;t=t.nextElementSibling){var n,s=t.localName;0===t.childNodes.length||1===t.childNodes.length&&(3===t.firstChild.nodeType||4===t.firstChild.nodeType)?(n=il(t,!1),Pu.test(n)&&(n=void 0),r[s]=n):("boundedBy"!==s&&(o=s),r[s]=this.gf(t,e))}return e=new x(r),o&&e.Tc(o),i&&e.jc(i),e},r.fj=function(t,e){if(t=this.ff(t,e))return(e=new m(null)).ba("XYZ",t),e},r.dj=function(t,e){if(t=g([],this.Nj,t,e,this))return new P(t)},r.cj=function(t,e){if(t=g([],this.Mj,t,e,this))return Ll(e=new M(null),t),e},r.ej=function(t,e){if(t=g([],this.Oj,t,e,this))return Fl(e=new f(null),t),e},r.Xi=function(t,e){gl(this.Rj,t,e,this)},r.Mh=function(t,e){gl(this.Kj,t,e,this)},r.Yi=function(t,e){gl(this.Sj,t,e,this)},r.hf=function(t,e){if(t=this.ff(t,e))return(e=new S(null)).ba("XYZ",t),e},r.wp=function(t,e){if(t=g(null,this.ke,t,e,this))return t},r.bj=function(t,e){if(t=this.ff(t,e))return kr(e=new Fr(null),"XYZ",t),e},r.jf=function(t,e){if((t=g([null],this.zf,t,e,this))&&t[0]){e=new w(null);for(var o=t[0],i=[o.length],r=1,n=t.length;r<n;++r)X(o,t[r]),i.push(o.length);return e.ba("XYZ",o,i),e}},r.ff=function(t,e){return g(null,this.ke,t,e,this)},r.Nj={"http://www.opengis.net/gml":{pointMember:pl(Mu.prototype.Xi),pointMembers:pl(Mu.prototype.Xi)}},r.Mj={"http://www.opengis.net/gml":{lineStringMember:pl(Mu.prototype.Mh),lineStringMembers:pl(Mu.prototype.Mh)}},r.Oj={"http://www.opengis.net/gml":{polygonMember:pl(Mu.prototype.Yi),polygonMembers:pl(Mu.prototype.Yi)}},r.Rj={"http://www.opengis.net/gml":{Point:pl(Mu.prototype.ff)}},r.Kj={"http://www.opengis.net/gml":{LineString:pl(Mu.prototype.hf)}},r.Sj={"http://www.opengis.net/gml":{Polygon:pl(Mu.prototype.jf)}},r.le={"http://www.opengis.net/gml":{LinearRing:hl(Mu.prototype.wp)}},r.aj=function(t,e){return(t=this.gf(t,[xl(this,t,e||{})]))||null},r.zc=function(t,e){var o={featureType:this.featureType,featureNS:this.featureNS};return e&&Xt(o,xl(this,t,e)),this.be(t,[o])||[]},r.kf=function(t){return v(this.srsName||t.firstElementChild.getAttribute("srsName"))},e(y,Mu),(r=y.prototype).Ap=function(t,e){if(t=g([],this.Lj,t,e,this))return Ll(e=new M(null),t),e},r.Bp=function(t,e){if(t=g([],this.Pj,t,e,this))return Fl(e=new f(null),t),e},r.ph=function(t,e){gl(this.Hj,t,e,this)},r.Aj=function(t,e){gl(this.Uj,t,e,this)},r.Ep=function(t,e){return g([null],this.Qj,t,e,this)},r.Hp=function(t,e){return g([null],this.Tj,t,e,this)},r.Fp=function(t,e){return g([null],this.zf,t,e,this)},r.zp=function(t,e){return g([null],this.ke,t,e,this)},r.cm=function(t,e){(t=g(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},r.yk=function(t,e){(t=g(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},r.gj=function(t,e){if((t=g([null],this.Vj,t,e,this))&&t[0]){e=new w(null);for(var o=t[0],i=[o.length],r=1,n=t.length;r<n;++r)X(o,t[r]),i.push(o.length);return e.ba("XYZ",o,i),e}},r.Zi=function(t,e){if(t=g([null],this.Ij,t,e,this))return(e=new S(null)).ba("XYZ",t),e},r.vp=function(t,e){return bt((t=g([null],this.Jj,t,e,this))[1][0],t[1][1],t[2][0],t[2][1])},r.xp=function(t,e){var o,i=il(t,!1),r=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/;for(t=[];o=r.exec(i);)t.push(parseFloat(o[1])),i=i.substr(o[0].length);if(""===i){if(i="enu","neu"===(i=(e=e[0].srsName)?v(e).b:i))for(e=0,i=t.length;e<i;e+=3)r=t[e],t[e]=t[e+1],t[e+1]=r;if(2==(e=t.length)&&t.push(0),e)return t}},r.Bg=function(t,e){var o=il(t,!1).replace(/^\s*|\s*$/g,""),i=e[0].srsName,r=t.parentNode.getAttribute("srsDimension");e="enu",i&&(e=v(i).b),o=o.split(/\s+/),i=2,t.getAttribute("srsDimension")?i=Ru(t.getAttribute("srsDimension")):t.getAttribute("dimension")?i=Ru(t.getAttribute("dimension")):r&&(i=Ru(r));for(var n,s=[],a=0,p=o.length;a<p;a+=i)t=parseFloat(o[a]),r=parseFloat(o[a+1]),n=3===i?parseFloat(o[a+2]):0,"en"===e.substr(0,2)?s.push(t,r,n):s.push(r,t,n);return s},r.ke={"http://www.opengis.net/gml":{pos:hl(y.prototype.xp),posList:hl(y.prototype.Bg)}},r.zf={"http://www.opengis.net/gml":{interior:y.prototype.cm,exterior:y.prototype.yk}},r.Zg={"http://www.opengis.net/gml":{Point:hl(Mu.prototype.fj),MultiPoint:hl(Mu.prototype.dj),LineString:hl(Mu.prototype.hf),MultiLineString:hl(Mu.prototype.cj),LinearRing:hl(Mu.prototype.bj),Polygon:hl(Mu.prototype.jf),MultiPolygon:hl(Mu.prototype.ej),Surface:hl(y.prototype.gj),MultiSurface:hl(y.prototype.Bp),Curve:hl(y.prototype.Zi),MultiCurve:hl(y.prototype.Ap),Envelope:hl(y.prototype.vp)}},r.Lj={"http://www.opengis.net/gml":{curveMember:pl(y.prototype.ph),curveMembers:pl(y.prototype.ph)}},r.Pj={"http://www.opengis.net/gml":{surfaceMember:pl(y.prototype.Aj),surfaceMembers:pl(y.prototype.Aj)}},r.Hj={"http://www.opengis.net/gml":{LineString:pl(Mu.prototype.hf),Curve:pl(y.prototype.Zi)}},r.Uj={"http://www.opengis.net/gml":{Polygon:pl(Mu.prototype.jf),Surface:pl(y.prototype.gj)}},r.Vj={"http://www.opengis.net/gml":{patches:hl(y.prototype.Ep)}},r.Ij={"http://www.opengis.net/gml":{segments:hl(y.prototype.Hp)}},r.Jj={"http://www.opengis.net/gml":{lowerCorner:pl(y.prototype.Bg),upperCorner:pl(y.prototype.Bg)}},r.Qj={"http://www.opengis.net/gml":{PolygonPatch:hl(y.prototype.Fp)}},r.Tj={"http://www.opengis.net/gml":{LineStringSegment:hl(y.prototype.zp)}},r.ni=function(t,e,o){var i=o[o.length-1].srsName,r=(i&&t.setAttribute("srsName",i),i=ol(t.namespaceURI,"pos"),t.appendChild(i),t=(o=o[o.length-1]).hasZ,o.srsName);o="enu",r&&(o=v(r).b),e=e.X(),o="en"===o.substr(0,2)?e[0]+" "+e[1]:e[1]+" "+e[0],t&&(o+=" "+(e[2]||0)),ku(i,o)};var r,Ou={"http://www.opengis.net/gml":{lowerCorner:c(ku),upperCorner:c(ku)}},Uu=((r=y.prototype).jn=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),vl({node:t},Ou,fl,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)},r.ki=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=ol(t.namespaceURI,"posList"),t.appendChild(i),Du(i,e,o)},r.hn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),ol(e.namespaceURI,void 0!==o?"interior":"exterior")},r.Se=function(t,e,o){var i=(r=o[o.length-1]).hasZ,r=r.srsName;"PolygonPatch"!==t.nodeName&&r&&t.setAttribute("srsName",r),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName?(e=e.Sd(),vl({node:t,hasZ:i,srsName:r},Xu,this.hn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=ol(t.namespaceURI,"patches"),t.appendChild(i),t=ol(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Se(t,e,o))},r.Re=function(t,e,o){var i=o[o.length-1].srsName;"LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName?(i=ol(t.namespaceURI,"posList"),t.appendChild(i),Du(i,e,o)):"Curve"===t.nodeName&&(i=ol(t.namespaceURI,"segments"),t.appendChild(i),t=ol(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Re(t,e,o))},r.mi=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.surface;r&&t.setAttribute("srsName",r),e=e.Td(),vl({node:t,hasZ:i,srsName:r,surface:n},Uu,this.o,e,o,void 0,this)},r.kn=function(t,e,o){var i=(r=o[o.length-1]).srsName,r=r.hasZ;i&&t.setAttribute("srsName",i),e=e.Zd(),vl({node:t,hasZ:r,srsName:i},Gu,cl("pointMember"),e,o,void 0,this)},r.li=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.curve;r&&t.setAttribute("srsName",r),e=e.gd(),vl({node:t,hasZ:i,srsName:r,curve:n},Bu,this.o,e,o,void 0,this)},r.oi=function(t,e,o){var i=ol(t.namespaceURI,"LinearRing");t.appendChild(i),this.ki(i,e,o)},r.pi=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Se(i,e,o))},r.ln=function(t,e,o){var i=ol(t.namespaceURI,"Point");t.appendChild(i),this.ni(i,e,o)},r.ji=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Re(i,e,o))},r.od=function(t,e,o){var i=o[o.length-1],r=Xt({},i);r.node=t,t=Array.isArray(e)?i.dataProjection?Pe(e,i.featureProjection,i.dataProjection):e:Ml(e,!0,i),vl(r,Vu,this.a,[t],o,void 0,this)},r.ii=function(t,e,o){var i=e.a;i&&t.setAttribute("fid",i);var r=(i=o[o.length-1]).featureNS,n=e.c,s=(i.lb||(i.lb={},i.lb[r]={}),e.N()),a=(e=[],[]);for(h in s){var p=s[h];null!==p&&(e.push(h),a.push(p),h==n||p instanceof yr?h in i.lb[r]||(i.lb[r][h]=c(this.od,this)):h in i.lb[r]||(i.lb[r][h]=c(ku)))}var h=Xt({},i);h.node=t,vl(h,i.lb,cl(void 0,r),a,o,e)},{"http://www.opengis.net/gml":{surfaceMember:c(y.prototype.pi),polygonMember:c(y.prototype.pi)}}),Gu={"http://www.opengis.net/gml":{pointMember:c(y.prototype.ln)}},Bu={"http://www.opengis.net/gml":{lineStringMember:c(y.prototype.ji),curveMember:c(y.prototype.ji)}},Xu={"http://www.opengis.net/gml":{exterior:c(y.prototype.oi),interior:c(y.prototype.oi)}},Vu={"http://www.opengis.net/gml":{Curve:c(y.prototype.Re),MultiCurve:c(y.prototype.li),Point:c(y.prototype.ni),MultiPoint:c(y.prototype.kn),LineString:c(y.prototype.Re),MultiLineString:c(y.prototype.li),LinearRing:c(y.prototype.ki),Polygon:c(y.prototype.Se),MultiPolygon:c(y.prototype.mi),Surface:c(y.prototype.Se),MultiSurface:c(y.prototype.mi),Envelope:c(y.prototype.jn)}},Wu={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};function Zu(t){Mu.call(this,t=t||{}),this.b["http://www.opengis.net/gml"].featureMember=pl(Mu.prototype.be),this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}function Ku(t){return(t=ol(t,"coordinates")).setAttribute("decimal","."),t.setAttribute("cs",","),t.setAttribute("ts"," "),t}function zu(t,e,o){o=(r=o[o.length-1]).hasZ;for(var i,r=r.srsName,n=(e=e.X()).length,s=Array(n),a=0;a<n;++a)i=e[a],s[a]=Yu(i,r,o);ku(t,s.join(" "))}function Yu(t,e,o){var i="enu";return e="en"===(i=e?v(e).b:i).substr(0,2)?t[0]+","+t[1]:t[1]+","+t[0],o&&(e+=","+(t[2]||0)),e}y.prototype.o=function(t,e){return ol("http://www.opengis.net/gml",Wu[e[e.length-1].node.nodeName])},y.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"),ol("http://www.opengis.net/gml",t)},y.prototype.ie=function(t,e){e=Sl(this,e);var o=ol("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&&Xt(i,e),this.od(o,t,[i]),o},y.prototype.Xb=function(t,e){e=Sl(this,e);var o=ol("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&&Xt(i,e),(e=[i])[e.length-1]),i=r.featureType,n=r.featureNS,s={};return s[n]={},s[n][i]=c(this.ii,this),(r=Xt({},r)).node=o,vl(r,s,cl(i,n),t,e),o},e(Zu,Mu),(r=Zu.prototype).$i=function(t,e){t=il(t,!1).replace(/^\s*|\s*$/g,"");var o=e[0].srsName;e="enu",(o=o&&v(o))&&(e=o.b);for(var i,r,n=[],s=0,a=(t=t.trim().split(/\s+/)).length;s<a;s++)r=t[s].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},r.tp=function(t,e){return bt((t=g([null],this.Gj,t,e,this))[1][0],t[1][1],t[1][3],t[1][4])},r.am=function(t,e){(t=g(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},r.bp=function(t,e){(t=g(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},r.ke={"http://www.opengis.net/gml":{coordinates:hl(Zu.prototype.$i)}},r.zf={"http://www.opengis.net/gml":{innerBoundaryIs:Zu.prototype.am,outerBoundaryIs:Zu.prototype.bp}},r.Gj={"http://www.opengis.net/gml":{coordinates:pl(Zu.prototype.$i)}},r.Zg={"http://www.opengis.net/gml":{Point:hl(Mu.prototype.fj),MultiPoint:hl(Mu.prototype.dj),LineString:hl(Mu.prototype.hf),MultiLineString:hl(Mu.prototype.cj),LinearRing:hl(Mu.prototype.bj),Polygon:hl(Mu.prototype.jf),MultiPolygon:hl(Mu.prototype.ej),Box:hl(Zu.prototype.tp)}},r.jg=function(t,e){e=(i=e[e.length-1]).multiSurface;var o=i.surface,i=i.multiCurve;return Array.isArray(t)?t="Envelope":"MultiPolygon"===(t=t.U())&&!0===e?t="MultiSurface":"Polygon"===t&&!0===o?t="Surface":"MultiLineString"===t&&!0===i&&(t="MultiCurve"),ol("http://www.opengis.net/gml",t)},r.ai=function(t,e,o){var i=o[o.length-1],r=Xt({},i);r.node=t,t=Array.isArray(e)?i.dataProjection?Pe(e,i.featureProjection,i.dataProjection):e:Ml(e,!0,i),vl(r,Hu,this.jg,[t],o,void 0,this)},r.Pe=function(t,e,o){var i=o[o.length-1].srsName;"LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName?(i=Ku(t.namespaceURI),t.appendChild(i),zu(i,e,o)):"Curve"===t.nodeName&&(i=ol(t.namespaceURI,"segments"),t.appendChild(i),t=ol(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Pe(t,e,o))},r.Qe=function(t,e,o){var i=(r=o[o.length-1]).hasZ,r=r.srsName;"PolygonPatch"!==t.nodeName&&r&&t.setAttribute("srsName",r),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName?(e=e.Sd(),vl({node:t,hasZ:i,srsName:r},qu,this.dn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=ol(t.namespaceURI,"patches"),t.appendChild(i),t=ol(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Qe(t,e,o))},r.dn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),ol(e.namespaceURI,void 0!==o?"innerBoundaryIs":"outerBoundaryIs")},r.gi=function(t,e,o){var i=ol(t.namespaceURI,"LinearRing");t.appendChild(i),this.ci(i,e,o)},r.di=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.curve;r&&t.setAttribute("srsName",r),e=e.gd(),vl({node:t,hasZ:i,srsName:r,curve:n},_u,this.a,e,o,void 0,this)},r.fi=function(t,e,o){var i=o[o.length-1],r=(o=i.hasZ,i.srsName);r&&t.setAttribute("srsName",r),i=Ku(t.namespaceURI),t.appendChild(i),ku(i,t=Yu(t=e.X(),r,o))},r.fn=function(t,e,o){var i=o[o.length-1],r=i.hasZ;(i=i.srsName)&&t.setAttribute("srsName",i),e=e.Zd(),vl({node:t,hasZ:r,srsName:i},Ju,cl("pointMember"),e,o,void 0,this)},r.gn=function(t,e,o){var i=ol(t.namespaceURI,"Point");t.appendChild(i),this.fi(i,e,o)},r.bi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Pe(i,e,o))},r.ci=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Ku(t.namespaceURI),t.appendChild(i),zu(i,e,o)},r.ei=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.surface;r&&t.setAttribute("srsName",r),e=e.Td(),vl({node:t,hasZ:i,srsName:r,surface:n},Qu,this.a,e,o,void 0,this)},r.hi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Qe(i,e,o))},r.en=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),vl({node:t},tc,fl,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)};var Hu={"http://www.opengis.net/gml":{Curve:c(Zu.prototype.Pe),MultiCurve:c(Zu.prototype.di),Point:c(Zu.prototype.fi),MultiPoint:c(Zu.prototype.fn),LineString:c(Zu.prototype.Pe),MultiLineString:c(Zu.prototype.di),LinearRing:c(Zu.prototype.ci),Polygon:c(Zu.prototype.Qe),MultiPolygon:c(Zu.prototype.ei),Surface:c(Zu.prototype.Qe),MultiSurface:c(Zu.prototype.ei),Envelope:c(Zu.prototype.en)}},qu={"http://www.opengis.net/gml":{outerBoundaryIs:c(Zu.prototype.gi),innerBoundaryIs:c(Zu.prototype.gi)}},Ju={"http://www.opengis.net/gml":{pointMember:c(Zu.prototype.gn)}},_u={"http://www.opengis.net/gml":{lineStringMember:c(Zu.prototype.bi),curveMember:c(Zu.prototype.bi)}},$u=(Zu.prototype.a=function(t,e){return ol("http://www.opengis.net/gml",$u[e[e.length-1].node.nodeName])},{MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"}),Qu={"http://www.opengis.net/gml":{surfaceMember:c(Zu.prototype.hi),polygonMember:c(Zu.prototype.hi)}},tc={"http://www.opengis.net/gml":{lowerCorner:c(ku),upperCorner:c(ku)}};function ec(t){t=t||{},wu.call(this),this.defaultDataProjection=v("EPSG:4326"),this.b=t.readExtensions}e(ec,wu);var oc=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function ic(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 rc(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,s=e.length/4;n<s;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,s=o.length;n<s;n++)o[n]=o[n]/4*r}return i}function nc(t,e){var o=e[e.length-1],i=t.getAttribute("href");null!==i&&(o.link=i),gl(cc,t,e)}function sc(t,e){e[e.length-1].extensionsNode_=t}function ac(t,e){var o,i,r=e[0];if(t=g({flatCoordinates:[],layoutOptions:{}},fc,t,e))return e=t.flatCoordinates,delete t.flatCoordinates,o=t.layoutOptions,delete t.layoutOptions,o=rc(o,e),(i=new S(null)).ba(o,e),Ml(i,!1,r),(r=new x(i)).H(t),r}function pc(t,e){var o,i,r,n=e[0];if(t=g({flatCoordinates:[],ends:[],layoutOptions:{}},gc,t,e))return e=t.flatCoordinates,delete t.flatCoordinates,o=t.ends,delete t.ends,i=t.layoutOptions,delete t.layoutOptions,i=rc(i,e,o),(r=new M(null)).ba(i,e,o),Ml(r,!1,n),(n=new x(r)).H(t),n}function hc(t,e){var o,i=e[0];if(e=g({},bc,t,e))return Ml(t=new m(t=ic([],o={},t,e),o=rc(o,t)),!1,i),(i=new x(t)).H(e),i}var lc={rte:ac,trk:pc,wpt:hc},uc=l(oc,{rte:pl(ac),trk:pl(pc),wpt:pl(hc)}),cc=l(oc,{text:o(i,"linkText"),type:o(i,"linkType")}),fc=l(oc,{name:o(i),cmt:o(i),desc:o(i),src:o(i),link:nc,number:o(Lu),extensions:sc,type:o(i),rtept:function(t,e){var o=g({},yc,t,e);o&&ic((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),yc=l(oc,{ele:o(ju),time:o(Tu)}),gc=l(oc,{name:o(i),cmt:o(i),desc:o(i),src:o(i),link:nc,number:o(Lu),type:o(i),extensions:sc,trkseg:function(t,e){var o=e[e.length-1];gl(dc,t,e),o.ends.push(o.flatCoordinates.length)}}),dc=l(oc,{trkpt:function(t,e){var o=g({},vc,t,e);o&&ic((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),vc=l(oc,{ele:o(ju),time:o(Tu)}),bc=l(oc,{ele:o(ju),time:o(Tu),magvar:o(ju),geoidheight:o(ju),name:o(i),cmt:o(i),desc:o(i),src:o(i),link:nc,sym:o(i),type:o(i),fix:o(i),sat:o(Lu),hdop:o(ju),vdop:o(ju),pdop:o(ju),ageofdgpsdata:o(ju),dgpsid:o(Lu),extensions:sc});function mc(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 wc(t,e,o){t.setAttribute("href",e),e=o[o.length-1].properties,vl({node:t},Mc,fl,[e.linkText,e.linkType],o,Sc)}function xc(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=yl(n,e=("rtept"==t.nodeName?Ec:Rc)[r]),vl({node:t,properties:n},Ic,fl,i,o,e)}ec.prototype.xg=function(t,e){var o;return D(oc,t.namespaceURI)&&(o=lc[t.localName])&&(t=o(t,[xl(this,t,e)]))?(mc(this,[t]),t):null},ec.prototype.zc=function(t,e){return D(oc,t.namespaceURI)&&"gpx"==t.localName&&(t=g([],uc,t,[xl(this,t,e)]))?(mc(this,t),t):[]};var Sc=["text","type"],Mc=l(oc,{text:c(ku),type:c(ku)}),Pc=l(oc,"name cmt desc src link number type rtept".split(" ")),Ac=l(oc,{name:c(ku),cmt:c(ku),desc:c(ku),src:c(ku),link:c(wc),number:c(Fu),type:c(ku),rtept:ul(c(xc))}),Ec=l(oc,["ele","time"]),Tc=l(oc,"name cmt desc src link number type trkseg".split(" ")),jc=l(oc,{name:c(ku),cmt:c(ku),desc:c(ku),src:c(ku),link:c(wc),number:c(Fu),type:c(ku),trkseg:ul(c(function(t,e,o){vl({node:t,geometryLayout:e.ja,properties:{}},Lc,Cc,e.X(),o)}))}),Cc=cl("trkpt"),Lc=l(oc,{trkpt:c(xc)}),Rc=l(oc,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),Ic=l(oc,{ele:c(Nu),time:c(function(t,e){e=new Date(1e3*e),t.appendChild(el.createTextNode(e.getUTCFullYear()+"-"+Qi(e.getUTCMonth()+1)+"-"+Qi(e.getUTCDate())+"T"+Qi(e.getUTCHours())+":"+Qi(e.getUTCMinutes())+":"+Qi(e.getUTCSeconds())+"Z"))}),magvar:c(Nu),geoidheight:c(Nu),name:c(ku),cmt:c(ku),desc:c(ku),src:c(ku),link:c(wc),sym:c(ku),type:c(ku),fix:c(ku),sat:c(Fu),hdop:c(Nu),vdop:c(Nu),pdop:c(Nu),ageofdgpsdata:c(Nu),dgpsid:c(Fu)}),Nc={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function Fc(t,e){if(t=(t=t.V())&&Nc[t.U()])return ol(e[e.length-1].node.namespaceURI,t)}var kc=l(oc,{rte:c(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=Ml(e,!0,i),t.geometryLayout=e.ja,r.rtept=e.X()),r=yl(r,i=Pc[o[o.length-1].node.namespaceURI]),vl(t,Ac,fl,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=Ml(e,!0,i),r.trkseg=e.gd()),r=yl(r,i=Tc[o[o.length-1].node.namespaceURI]),vl(t,jc,fl,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=Ml(e,!0,i),r.geometryLayout=e.ja,xc(t,e.X(),o))})});function Dc(){wl.call(this)}function Oc(t){return"string"==typeof t?t:""}function Uc(t){t=t||{},wl.call(this),this.defaultDataProjection=v("EPSG:4326"),this.b=t.altitudeMode||"none"}ec.prototype.Xb=function(t,e){e=Sl(this,e);var o=ol("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"),vl({node:o},kc,Fc,t,[e]),o},e(Dc,wl),(r=Dc.prototype).U=function(){return"text"},r.Tb=function(t,e){return this.ae(Oc(t),Sl(this,e))},r.Oa=function(t,e){return this.zg(Oc(t),Sl(this,e))},r.Sc=function(t,e){return this.wd(Oc(t),Sl(this,e))},r.kb=function(){return this.defaultDataProjection},r.Bd=function(t,e){return this.ge(t,Sl(this,e))},r.Wb=function(t,e){return this.Wg(t,Sl(this,e))},r.$c=function(t,e){return this.Cd(t,Sl(this,e))},e(Uc,Dc);var Gc,Bc,Xc,Vc,Wc,Zc,Kc,zc,Yc,Hc,qc,Jc,_c,$c,Qc,tf=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,ef=/^H.([A-Z]{3}).*?:(.*)/,of=/^HFDTE(\d{2})(\d{2})(\d{2})/,rf=/\r\n|\r|\n/;function nf(t,e,o,i,r,n){eo.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&&sf(this)}function sf(e){var t=Po(1,1);try{t.drawImage(e.M,0,0),t.getImageData(0,0,1,1)}catch(t){e.l=!0}}function af(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=(O(!(void 0!==i&&e),4),O(!e||o,5),O(void 0!==(i=void 0!==i&&i.length||!e?i:e.src||U(e).toString())&&0<i.length,6),void 0!==t.src?0:2),n=(this.j=void 0!==t.color?vo(t.color):null,this.ra),s=this.j,a=vs.get(i,n,s);a||(a=new nf(e,i,o,n,r,s),vs.set(i,n,s,a)),this.b=a,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,Zh.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 pf(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 Hh({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 hf(t){t=t||{},wu.call(this),Gc||(Xc=new Hh({color:Bc=[255,255,255,1]}),Zc=Wc="pixels",Hc=new af({anchor:Vc=[20,2],anchorOrigin:"bottom-left",anchorXUnits:Wc,anchorYUnits:Zc,crossOrigin:"anonymous",rotation:0,scale:Yc=.5,size:Kc=[64,64],src:zc="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),qc="NO_IMAGE",Jc=new hp({color:Bc,width:1}),_c=new hp({color:[51,51,51,1],width:2}),$c=new pf({font:"bold 16px Helvetica",fill:Xc,stroke:_c,scale:.8}),Qc=new qh({fill:Xc,image:Hc,text:$c,stroke:Jc,zIndex:0}),Gc=[Qc]),this.defaultDataProjection=v("EPSG:4326"),this.a=t.defaultStyle||Gc,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}(r=Uc.prototype).ae=function(t,e){for(var o=this.b,i=t.split(rf),r=(t={},[]),n=2e3,s=0,a=1,p=-1,h=0,l=i.length;h<l;++h){var u,c,f,y,g,d=i[h];"B"==d.charAt(0)?(u=tf.exec(d))&&(d=parseInt(u[1],10),c=parseInt(u[2],10),f=parseInt(u[3],10),y=parseInt(u[4],10)+parseInt(u[5],10)/6e4,"S"==u[6]&&(y=-y),g=parseInt(u[7],10)+parseInt(u[8],10)/6e4,"W"==u[9]&&(g=-g),r.push(g,y),"none"!=o&&r.push("gps"==o?parseInt(u[11],10):"barometric"==o?parseInt(u[12],10):0),(u=Date.UTC(n,s,a,d,c,f))<p&&(u=Date.UTC(n,s,a+1,d,c,f)),r.push(u/1e3),p=u):"H"==d.charAt(0)&&((u=of.exec(d))?(a=parseInt(u[1],10),s=parseInt(u[2],10)-1,n=2e3+parseInt(u[3],10)):(u=ef.exec(d))&&(t[u[1]]=u[2].trim()))}return r.length?((i=new S(null)).ba("none"==o?"XYM":"XYZM",r),(e=new x(Ml(i,!1,e))).H(t),e):null},r.zg=function(t,e){return(t=this.ae(t,e))?[t]:[]},r.ge=function(){},r.Wg=function(){},r.Cd=function(){},r.wd=function(){},e(nf,eo),nf.prototype.v=function(){this.i=3,this.f.forEach(qe),this.f=null,this.b("change")},nf.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(qe),this.f=null,sf(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,s=0,a=o.length;s<a;s+=4)o[s]*=i,o[s+1]*=r,o[s+2]*=n;t.putImageData(e,0,0)}this.b("change")},nf.prototype.Y=function(){return this.c||this.M},nf.prototype.load=function(){if(0==this.i){this.i=1,this.f=[Ye(this.M,"error",this.v,this),Ye(this.M,"load",this.u,this)];try{this.M.src=this.o}catch(t){this.v()}}},e(af,Zh),(r=af.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 af({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})},r.Hc=function(){if(this.u)return this.u;var t=this.o,e=this.ic();if("fraction"==this.C||"fraction"==this.B){if(!e)return null;t=this.o.slice(),"fraction"==this.C&&(t[0]*=e[0]),"fraction"==this.B&&(t[1]*=e[1])}if("top-left"!=this.i){if(!e)return null;t===this.o&&(t=this.o.slice()),"top-right"!=this.i&&"bottom-right"!=this.i||(t[0]=-t[0]+e[0]),"bottom-left"!=this.i&&"bottom-right"!=this.i||(t[1]=-t[1]+e[1])}return this.u=t},r.Lo=function(){return this.j},r.Y=function(t){return this.b.Y(t)},r.ye=function(){return this.b.a},r.Ye=function(){return this.b.i},r.qg=function(){var t,e,o,i=this.b;return i.j||(i.l?((o=Po(t=i.a[0],e=i.a[1])).fillRect(0,0,t,e),i.j=o.canvas):i.j=i.M),i.j},r.Oc=function(){if(this.S)return this.S;var t=this.oa;if("top-left"!=this.c){var e=this.ic(),o=this.b.a;if(!e||!o)return null;t=t.slice(),"top-right"!=this.c&&"bottom-right"!=this.c||(t[0]=o[0]-e[0]-t[0]),"bottom-left"!=this.c&&"bottom-right"!=this.c||(t[1]=o[1]-e[1]-t[1])}return this.S=t},r.Mo=function(){return this.b.o},r.ic=function(){return this.D||this.b.a},r.Nh=function(t,e){return d(this.b,"change",t,e)},r.load=function(){this.b.load()},r.Bj=function(t,e){He(this.b,"change",t,e)},(r=pf.prototype).clone=function(){return new pf({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})},r.Nk=function(){return this.a},r.cl=function(){return this.i},r.dl=function(){return this.c},r.Fa=function(){return this.Va},r.Ro=function(){return this.o},r.So=function(){return this.f},r.To=function(){return this.b},r.Ga=function(){return this.Ya},r.Na=function(){return this.Ia},r.nl=function(){return this.g},r.ol=function(){return this.j},r.nj=function(t){this.a=t},r.sj=function(t){this.i=t},r.tj=function(t){this.c=t},r.pf=function(t){this.Va=t},r.Uo=function(t){this.f=t},r.Si=function(t){this.b=t},r.qf=function(t){this.Ya=t},r.xd=function(t){this.Ia=t},r.vj=function(t){this.g=t},r.hq=function(t){this.j=t},e(hf,wu);var lf=["http://www.google.com/kml/ext/2.2"],n=[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"],uf={fraction:"fraction",pixels:"pixels",insetPixels:"pixels"};function cf(t,e){var o,i=[0,0],r="start";return t.Y()&&2==(o=null===(o=t.Y().ye())?Kc:o).length&&(r=t.Y().a,i[0]=r*o[0]/2,i[1]=-r*o[1]/2,r="left"),null!==t.Na()?((t=(o=t.Na()).clone()).nj(o.a||$c.a),t.Si(o.b||$c.b),t.pf(o.Fa()||$c.Fa()),t.qf(o.Ga()||_c)):t=$c.clone(),t.xd(e),t.sj(i[0]),t.tj(i[1]),t.vj(r),new qh({text:t})}function ff(i,r,n,s,a){return function(){var t,e=a,o="";return(e=e&&this.V()?"Point"===this.V().U():e)&&(o=this.get("name"),e=e&&o),i?e?(e=cf(i[0],o),i.concat(e)):i:r?(t=function t(e,o,i){return Array.isArray(e)?e:"string"==typeof e?(!(e in i)&&"#"+e in i&&(e="#"+e),t(i[e],o,i)):o}(r,n,s),e?(e=cf(t[0],o),t.concat(e)):t):e?(e=cf(n[0],o),n.concat(e)):n}}function yf(t){if(t=il(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 gf(t){t=il(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 df(t){var e=il(t,!1).trim();return t.baseURI&&"about:blank"!==t.baseURI?new URL(e,t.baseURI).href:e}function vf(t){return ju(t)}function bf(t,e){return g(null,kf,t,e)}function mf(t,e){if(e=g({A:[],Ej:[]},Of,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 S(null)).ba("XYZM",t),e}}function wf(t,e){var o=g({},Ff,t,e);if(t=g(null,Uf,t,e))return(e=new S(null)).ba("XYZ",t),e.H(o),e}function xf(t,e){var o=g({},Ff,t,e);if(t=g(null,Uf,t,e))return(e=new w(null)).ba("XYZ",t,[t.length]),e.H(o),e}function Sf(t,e){if(!(t=g([],Zf,t,e)))return null;if(!t.length)return new uu(t);var o=!0,i=t[0].U(),r=1;for(s=t.length;r<s;++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,s=t.length;r<s;++r)X(i,(e=t[r]).ga());(n=new P(null)).ba(o,i),Ef(n,t)}else"LineString"==i?(Ll(n=new M(null),t),Ef(n,t)):"Polygon"==i?(Fl(n=new f(null),t),Ef(n,t)):"GeometryCollection"==i?n=new uu(t):O(!1,37);else n=new uu(t);return n}function Mf(t,e){var o=g({},Ff,t,e);if(t=g(null,Uf,t,e))return(e=new m(null)).ba("XYZ",t),e.H(o),e}function Pf(t,e){var o=g({},Ff,t,e);if((t=g([null],Df,t,e))&&t[0]){e=new w(null);for(var i=t[0],r=[i.length],n=1,s=t.length;n<s;++n)X(i,t[n]),r.push(i.length);return e.ba("XYZ",i,r),e.H(o),e}}function Af(t,e){if(!(e=g({},Qf,t,e)))return null;t="fillStyle"in e?e.fillStyle:Xc;var o=e.fill,i=(void 0===o||o||(t=null),(o="imageStyle"in e?e.imageStyle:Hc)==qc&&(o=void 0),"textStyle"in e?e.textStyle:$c),r="strokeStyle"in e?e.strokeStyle:Jc;return[new qh({fill:t,image:o,stroke:r=void 0===(e=e.outline)||e?r:null,text:i,zIndex:void 0})]}function Ef(t,e){for(var o,i=e.length,r=Array(e.length),n=Array(e.length),s=o=!1,a=0;a<i;++a){var p=e[a];r[a]=p.get("extrude"),n[a]=p.get("altitudeMode"),s=s||void 0!==r[a],o=o||n[a]}s&&t.set("extrude",r),o&&t.set("altitudeMode",n)}function Tf(t,e){gl(Lf,t,e)}function jf(t,e){gl(Rf,t,e)}var Cf=l(n,{displayName:o(i),value:o(i)}),Lf=l(n,{Data:function(t,e){var o=t.getAttribute("name");gl(Cf,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){gl($f,t,e)}}),Rf=l(n,{LatLonAltBox:function(t,e){(t=g({},If,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=g({},Nf,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))}}),If=l(n,{altitudeMode:o(i),minAltitude:o(ju),maxAltitude:o(ju),north:o(ju),south:o(ju),east:o(ju),west:o(ju)}),Nf=l(n,{minLodPixels:o(ju),maxLodPixels:o(ju),minFadeExtent:o(ju),maxFadeExtent:o(ju)}),Ff=l(n,{extrude:o(Au),altitudeMode:o(i)}),kf=l(n,{coordinates:hl(gf)}),Df=l(n,{innerBoundaryIs:function(t,e){(t=g(void 0,Xf,t,e))&&e[e.length-1].push(t)},outerBoundaryIs:function(t,e){(t=g(void 0,Hf,t,e))&&(e[e.length-1][0]=t)}}),Of=l(n,{when:function(t,e){e=e[e.length-1].Ej,t=il(t,!1),t=Date.parse(t),e.push(isNaN(t)?0:t)}},l(lf,{coord:function(t,e){e=e[e.length-1].A,t=il(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)}})),Uf=l(n,{coordinates:hl(gf)}),Gf=l(n,{href:o(df)},l(lf,{x:o(ju),y:o(ju),w:o(ju),h:o(ju)})),Bf=l(n,{Icon:o(function(t,e){return(t=g({},Gf,t,e))||null}),heading:o(ju),hotSpot:o(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:uf[e],y:parseFloat(t.getAttribute("y")),Yg:uf[o],origin:i}}),scale:o(vf)}),Xf=l(n,{LinearRing:hl(bf)}),Vf=l(n,{color:o(yf),scale:o(vf)}),Wf=l(n,{color:o(yf),width:o(ju)}),Zf=l(n,{LineString:pl(wf),LinearRing:pl(xf),MultiGeometry:pl(Sf),Point:pl(Mf),Polygon:pl(Pf)}),Kf=l(lf,{Track:pl(mf)}),zf=l(n,{ExtendedData:Tf,Region:jf,Link:function(t,e){gl(Yf,t,e)},address:o(i),description:o(i),name:o(i),open:o(Au),phoneNumber:o(i),visibility:o(Au)}),Yf=l(n,{href:o(df)}),Hf=l(n,{LinearRing:hl(bf)}),qf=l(n,{Style:o(Af),key:o(i),styleUrl:o(df)}),Jf=l(n,{ExtendedData:Tf,Region:jf,MultiGeometry:o(Sf,"geometry"),LineString:o(wf,"geometry"),LinearRing:o(xf,"geometry"),Point:o(Mf,"geometry"),Polygon:o(Pf,"geometry"),Style:o(Af),StyleMap:function(t,e){(t=g(void 0,ty,t,e))&&(e=e[e.length-1],Array.isArray(t)?e.Style=t:"string"==typeof t?e.styleUrl=t:O(!1,38))},address:o(i),description:o(i),name:o(i),open:o(Au),phoneNumber:o(i),styleUrl:o(df),visibility:o(Au)},l(lf,{MultiTrack:o(function(t,e){if(t=g([],Kf,t,e))return Ll(e=new M(null),t),e},"geometry"),Track:o(mf,"geometry")})),_f=l(n,{color:o(yf),fill:o(Au),outline:o(Au)}),$f=l(n,{SimpleData:function(t,e){var o=t.getAttribute("name");null!==o&&(t=i(t),e[e.length-1][o]=t)}}),Qf=l(n,{IconStyle:function(t,e){var o,i,r,n,s,a,p,h,l,u,c,f;(t=g({},Bf,t,e))&&(e=e[e.length-1],f="Icon"in t?t.Icon:{},o=!("Icon"in t)||0<Object.keys(f).length,(r=f.href)?i=r:o&&(i=zc),r="bottom-left",(u=t.hotSpot)?(n=[u.x,u.y],s=u.Xg,a=u.Yg,r=u.origin):i===zc?(n=Vc,s=Wc,a=Zc):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(i)&&(n=[.5,0],a=s="fraction"),u=f.x,h=f.y,void 0!==u&&void 0!==h&&(p=[u,h]),u=f.w,f=f.h,void 0!==u&&void 0!==f&&(l=[u,f]),void 0!==(f=t.heading)&&(c=it(f)),t=t.scale,o?(i=new af({anchor:n,anchorOrigin:r,anchorXUnits:s,anchorYUnits:a,crossOrigin:"anonymous",offset:p,offsetOrigin:"bottom-left",rotation:c,scale:t=i==zc&&(l=Kc,void 0===t)?Yc:t,size:l,src:i}),e.imageStyle=i):e.imageStyle=qc)},LabelStyle:function(t,e){(t=g({},Vf,t,e))&&(e[e.length-1].textStyle=new pf({fill:new Hh({color:"color"in t?t.color:Bc}),scale:t.scale}))},LineStyle:function(t,e){(t=g({},Wf,t,e))&&(e[e.length-1].strokeStyle=new hp({color:"color"in t?t.color:Bc,width:"width"in t?t.width:1}))},PolyStyle:function(t,e){var o;(t=g({},_f,t,e))&&((e=e[e.length-1]).fillStyle=new Hh({color:"color"in t?t.color:Bc}),void 0!==(o=t.fill)&&(e.fill=o),void 0!==(t=t.outline))&&(e.outline=t)}}),ty=l(n,{Pair:function(t,e){var o;(t=g({},qf,t,e))&&(o=t.key)&&"normal"==o&&((o=t.styleUrl)&&(e[e.length-1]=o),t=t.Style)&&(e[e.length-1]=t)}});function ey(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){var o=oy(t,e);if(o)return o}}function oy(t,e){for(var o=e.firstElementChild;o;o=o.nextElementSibling)if(D(n,o.namespaceURI)&&"name"==o.localName)return i(o);for(o=e.firstElementChild;o;o=o.nextElementSibling)if(e=o.localName,D(n,o.namespaceURI)&&("Document"==e||"Folder"==e||"Placemark"==e||"kml"==e)&&(e=oy(t,o)))return e}function iy(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&X(o,ry(t,e));return o}function ry(t,e){for(var o,i=[],r=e.firstElementChild;r;r=r.nextElementSibling)D(n,r.namespaceURI)&&"NetworkLink"==r.localName&&(o=g({},zf,r,[]),i.push(o));for(r=e.firstElementChild;r;r=r.nextElementSibling)e=r.localName,!D(n,r.namespaceURI)||"Document"!=e&&"Folder"!=e&&"kml"!=e||X(i,ry(t,r));return i}function ny(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&X(o,t.lf(e));return o}function sy(t,e){var o;for(e=[255*(4==(e=vo(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}ku(t,e.join(""))}function ay(t,e,o){t={node:t};var i,r,n=e.U();"GeometryCollection"==n?(i=e.Vf(),r=Oy):"MultiPoint"==n?(i=e.Zd(),r=zy):"MultiLineString"==n?(i=e.gd(),r=Yy):"MultiPolygon"==n?(i=e.Td(),r=qy):O(!1,39),vl(t,Ty,r,i,o)}function py(t,e,o){vl({node:t},Ey,Hy,[e],o)}function hy(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}),s=(n[e.c]=1,Object.keys(t||{}).sort().filter(function(t){return!n[t]}));0<s.length&&(i=yl(t,s),vl(r,Cy,Zy,[{names:s,values:i}],o)),(s=(s=e.Lc())&&s.call(e,0))&&(s=Array.isArray(s)?s[0]:s,this.j&&(t.Style=s),s=s.Na())&&(t.name=s.Na()),t=yl(t,s=jy[o[o.length-1].node.namespaceURI]),vl(r,Cy,fl,t,o,s),t=o[0],e=(e=e.V())&&Ml(e,!0,t),vl(r,Cy,Oy,[e],o)}function ly(t,e,o){var i=e.ga();(t={node:t}).layout=e.ja,t.stride=e.qa(),vl(t,Ly,Vy,[i],o)}function uy(t,e,o){var i=(e=e.Sd()).shift();vl(t={node:t},Ry,Ky,e,o),vl(t,Ry,Jy,[i],o)}function cy(t,e){Nu(t,Math.round(1e6*e)/1e6)}(r=hf.prototype).vg=function(t,e){if(t=g([],l(n,{Document:al(this.vg,this),Folder:al(this.vg,this),Placemark:pl(this.Dg,this),Style:this.Jp.bind(this),StyleMap:this.Ip.bind(this)}),t,e,this))return t},r.Dg=function(t,e){var o,i=g({geometry:null},Jf,t,e);if(i)return o=new x,null!==(t=t.getAttribute("id"))&&o.jc(t),e=e[0],(t=i.geometry)&&Ml(t,!1,e),o.Ra(t),delete i.geometry,this.c&&o.hg(ff(i.Style,i.styleUrl,this.a,this.b,this.g)),delete i.Style,o.H(i),o},r.Jp=function(t,e){var o=t.getAttribute("id");null!==o&&(e=Af(t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},r.Ip=function(t,e){var o=t.getAttribute("id");null!==o&&(e=g(void 0,ty,t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},r.xg=function(t,e){return D(n,t.namespaceURI)&&(t=this.Dg(t,[xl(this,t,e)]))||null},r.zc=function(t,e){if(!D(n,t.namespaceURI))return[];var o=t.localName;if("Document"==o||"Folder"==o)return(o=this.vg(t,[xl(this,t,e)]))||[];if("Placemark"==o)return(e=this.Dg(t,[xl(this,t,e)]))?[e]:[];if("kml"!=o)return[];for(o=[],t=t.firstElementChild;t;t=t.nextElementSibling){var i=this.zc(t,e);i&&X(o,i)}return o},r.Cp=function(t){return rl(t)?ey(this,t):nl(t)?oy(this,t):"string"==typeof t?ey(this,t=sl(t)):void 0},r.Dp=function(t){var e=[];return rl(t)?X(e,iy(this,t)):nl(t)?X(e,ry(this,t)):"string"==typeof t&&X(e,iy(this,t=sl(t))),e},r.Gp=function(t){var e=[];return rl(t)?X(e,ny(this,t)):nl(t)?X(e,this.lf(t)):"string"==typeof t&&X(e,ny(this,t=sl(t))),e},r.lf=function(t){for(var e,o=[],i=t.firstElementChild;i;i=i.nextElementSibling)D(n,i.namespaceURI)&&"Region"==i.localName&&(e=g({},Rf,i,[]),o.push(e));for(i=t.firstElementChild;i;i=i.nextElementSibling)t=i.localName,!D(n,i.namespaceURI)||"Document"!=t&&"Folder"!=t&&"kml"!=t||X(o,this.lf(i));return o};var fy=l(n,["Document","Placemark"]),yy=l(n,{Document:c(function(t,e,o){vl({node:t},gy,Dy,e,o,void 0,this)}),Placemark:c(hy)}),gy=l(n,{Placemark:c(hy)}),dy=l(n,{Data:c(function(t,e,o){t.setAttribute("name",e.name),t={node:t},"object"==typeof(e=e.value)?(null!==e&&e.displayName&&vl(t,dy,fl,[e.displayName],o,["displayName"]),null!==e&&e.value&&vl(t,dy,fl,[e.value],o,["value"])):vl(t,dy,fl,[e],o,["value"])}),value:c(function(t,e){ku(t,e)}),displayName:c(function(t,e){t.appendChild(el.createCDATASection(e))})}),vy={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},by=l(n,["href"],l(lf,["x","y","w","h"])),my=l(n,{href:c(ku)},l(lf,{x:c(Nu),y:c(Nu),w:c(Nu),h:c(Nu)})),wy=l(n,["scale","heading","Icon","hotSpot"]),xy=l(n,{Icon:c(function(t,e,o){t={node:t};var i=by[o[o.length-1].node.namespaceURI],r=yl(e,i);vl(t,my,fl,r,o,i),r=yl(e,i=by[lf[0]]),vl(t,my,ky,r,o,i)}),heading:c(Nu),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(cy)}),Sy=l(n,["color","scale"]),My=l(n,{color:c(sy),scale:c(cy)}),Py=l(n,["color","width"]),Ay=l(n,{color:c(sy),width:c(Nu)}),Ey=l(n,{LinearRing:c(ly)}),Ty=l(n,{LineString:c(ly),Point:c(ly),Polygon:c(uy),GeometryCollection:c(ay)}),jy=l(n,"name open visibility address phoneNumber description styleUrl Style".split(" ")),Cy=l(n,{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++)vl(t,dy,Wy,[{name:i[n],value:e[n]}],o)}),MultiGeometry:c(ay),LineString:c(ly),LinearRing:c(ly),Point:c(ly),Polygon:c(uy),Style:c(function(t,e,o){t={node:t};var i={},r=e.Fa(),n=e.Ga(),s=e.Y();e=e.Na(),s instanceof af&&(i.IconStyle=s),e&&(i.LabelStyle=e),n&&(i.LineStyle=n),r&&(i.PolyStyle=r),i=yl(i,e=Ny[o[o.length-1].node.namespaceURI]),vl(t,Fy,fl,i,o,e)}),address:c(ku),description:c(ku),name:c(ku),open:c(Iu),phoneNumber:c(ku),styleUrl:c(ku),visibility:c(Iu)}),Ly=l(n,{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:O(!1,34);var n,s=e.length,a="";if(0<s){for(a+=e[0],r=1;r<i;++r)a+=","+e[r];for(n=o;n<s;n+=o)for(a+=" "+e[n],r=1;r<i;++r)a+=","+e[n+r]}ku(t,a)})}),Ry=l(n,{outerBoundaryIs:c(py),innerBoundaryIs:c(py)}),Iy=l(n,{color:c(sy)}),Ny=l(n,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Fy=l(n,{IconStyle:c(function(t,e,o){t={node:t};var i,r,n={},s=e.ic(),a=e.ye(),p={href:e.b.o};s&&(p.w=s[0],p.h=s[1],i=e.Hc(),(r=e.Oc())&&a&&r[0]&&r[1]!==s[1]&&(p.x=r[0],p.y=a[1]-(r[1]+s[1])),i)&&i[0]&&i[1]!==s[1]&&(n.hotSpot={x:i[0],Xg:"pixels",y:s[1]-i[1],Yg:"pixels"}),n.Icon=p,1!==(s=e.a)&&(n.scale=s),(e=e.g)&&(n.heading=e),n=yl(n,e=wy[o[o.length-1].node.namespaceURI]),vl(t,xy,fl,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=yl(i,e=Sy[o[o.length-1].node.namespaceURI]),vl(t,My,fl,i,o,e)}),LineStyle:c(function(t,e,o){t={node:t};var i=Py[o[o.length-1].node.namespaceURI];e=yl({color:e.a,width:e.c},i),vl(t,Ay,fl,e,o,i)}),PolyStyle:c(function(t,e,o){vl({node:t},Iy,Xy,[e.b],o)})});function ky(t,e,o){return ol(lf[0],"gx:"+o)}function Dy(t,e){return ol(e[e.length-1].node.namespaceURI,"Placemark")}function Oy(t,e){if(t)return ol(e[e.length-1].node.namespaceURI,vy[t.U()])}var Uy,Gy,By,Xy=cl("color"),Vy=cl("coordinates"),Wy=cl("Data"),Zy=cl("ExtendedData"),Ky=cl("innerBoundaryIs"),zy=cl("Point"),Yy=cl("LineString"),Hy=cl("LinearRing"),qy=cl("Polygon"),Jy=cl("outerBoundaryIs");function _y(t){this.lc=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.type=this.ea=0,this.length=this.lc.length}function $y(t,e,o){return o?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function Qy(t,e){this.layers=t.Ag(ng,{},e)}function tg(t,e){this.x=t,this.y=e}function eg(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(og,this,e)}function og(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 ig(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(rg,this,e),this.length=this.me.length}function rg(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 ng(t,e,o){3===t&&(t=new Gy(o,o.Ka()+o.ea)).length&&(e[t.name]=t)}function sg(t,e,o,i,r){this.g=r,this.i=t,this.b=e,this.f=o,this.c=i}function ag(t){wl.call(this),t=t||{},this.defaultDataProjection=new qt({code:"",units:"tile-pixels"}),this.b=t.featureClass||sg,this.a=t.geometryName,this.i=t.layerName||"layer",this.c=t.layers||null}function pg(t,e,o){for(var i=0,r=0,n=t.length;r<n;++r){for(var s=t[r],a=0,p=s.length;a<p;++a){var h=s[a];e.push(h.x,h.y)}i+=2*a,o.push(i)}}function hg(){wu.call(this),this.defaultDataProjection=v("EPSG:4326")}function lg(t,e){e[e.length-1].fe[t.getAttribute("k")]=t.getAttribute("v")}hf.prototype.Xb=function(t,e){e=Sl(this,e);var o=ol(n[4],"kml"),i=(o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:gx",lf[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=yl(r,t=fy[o.namespaceURI]),vl(i,yy,fl,r,[e],t,this),o},mp.Dd=function(){},ti=mp.Dd=mp.Dd||{},Uy=function(t,e,o,i,r){var n=8*r-i-1,s=(1<<n)-1,a=s>>1,p=-7,h=o?-1:1,l=t[e+(r=o?r-1:0)];for(r+=h,o=l&(1<<-p)-1,l>>=-p,p+=n;0<p;o=256*o+t[e+r],r+=h,p-=8);for(n=o&(1<<-p)-1,o>>=-p,p+=i;0<p;n=256*n+t[e+r],r+=h,p-=8);if(0===o)o=1-a;else{if(o===s)return n?NaN:1/0*(l?-1:1);n+=Math.pow(2,i),o-=a}return(l?-1:1)*n*Math.pow(2,o-i)},_y.c=0,_y.i=1,_y.b=2,_y.a=5,_y.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=Uy(this.lc,this.ea,!0,23,4);return this.ea+=4,t},up:function(){var t=Uy(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 $y(o,n,i);if(n|=(127&(r=t[e.ea++]))<<3,r<128)return $y(o,n,i);if(n|=(127&(r=t[e.ea++]))<<10,r<128)return $y(o,n,i);if(n|=(127&(r=t[e.ea++]))<<17,r<128)return $y(o,n,i);if(n|=(127&(r=t[e.ea++]))<<24,r<128)return $y(o,n,i);if((r=t[e.ea++])<128)return $y(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,s,a=e[i],p=null,h=239<a?4:223<a?3:191<a?2:1;if(t<i+h)break;1===h?a<128&&(p=a):2===h?128==(192&(r=e[i+1]))&&(p=(31&a)<<6|63&r)<=127&&(p=null):3===h?(r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&((p=(15&a)<<12|(63&r)<<6|63&n)<=2047||55296<=p&&p<=57343)&&(p=null)):4===h&&(r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r))&&128==(192&n)&&128==(192&s)&&((p=(15&a)<<18|(63&r)<<12|(63&n)<<6|63&s)<=65535||1114112<=p)&&(p=null),null===p?(p=65533,h=1):65535<p&&(p-=65536,o+=String.fromCharCode(p>>>10&1023|55296),p=56320|1023&p),o+=String.fromCharCode(p),i+=h}return this.ea=t,o},mq:function(t){if((t&=7)===_y.c)for(;127<this.lc[this.ea++];);else if(t===_y.b)this.ea=this.Ka()+this.ea;else if(t===_y.a)this.ea+=4;else{if(t!==_y.i)throw Error("Unimplemented type: "+t);this.ea+=8}}},ti.default=_y,mp.Dd=mp.Dd.default,mp.xf={},mp.xf.Bf=function(){},fi=mp.xf=mp.xf||{},tg.prototype={clone:function(){return new tg(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}},tg.Kq=function(t){return!(t instanceof tg)&&Array.isArray(t)?new tg(t[0],t[1]):t},eg.b=["Unknown","Point","LineString","Polygon"],eg.prototype.Oh=function(){var t=this.Cc;t.ea=this.Ef;for(var e,o=t.Ka()+t.ea,i=1,r=0,n=0,s=0,a=[];t.ea<o;)if(r||(i=7&(r=t.Ka()),r>>=3),r--,1===i||2===i)n+=t.ce(),s+=t.ce(),1===i&&(e&&a.push(e),e=[]),e.push(new tg(n,s));else{if(7!==i)throw Error("unknown command "+i);e&&e.push(e[0].clone())}return e&&a.push(e),a},eg.prototype.bbox=function(){var t=this.Cc;t.ea=this.Ef;for(var e=t.Ka()+t.ea,o=1,i=0,r=0,n=0,s=1/0,a=-1/0,p=1/0,h=-1/0;t.ea<e;)if(i||(o=7&(i=t.Ka()),i>>=3),i--,1===o||2===o)(r+=t.ce())<s&&(s=r),a<r&&(a=r),(n+=t.ce())<p&&(p=n),h<n&&(h=n);else if(7!==o)throw Error("unknown command "+o);return[s,p,a,h]},(Gy=ig).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 eg(this.Cc,t,this.extent,this.ne,this.pe)},By=Gy,fi.default={Bf:Qy,Wj:eg,Xj:By},fi.Bf=Qy,fi.Wj=eg,fi.Xj=By,(r=sg.prototype).get=function(t){return this.c[t]},r.Bb=function(){return this.f},r.G=function(){return this.a||(this.a="Point"===this.i?wt(this.b):xt(this.b,0,this.b.length,2)),this.a},r.Wn=function(){return this.g},r.ec=function(){return this.b},r.ga=sg.prototype.ec,r.V=function(){return this},r.Xn=function(){return this.c},r.Vd=sg.prototype.V,r.qa=function(){return 2},r.Lc=Y,r.U=function(){return this.i},e(ag,wl),(r=ag.prototype).U=function(){return"arraybuffer"},r.Oa=function(t,e){var o,i=this.c,r=(t=new mp.Dd(t),t=new mp.xf.Bf(t),[]),n=this.b;for(o in t.layers)if(!i||-1!=i.indexOf(o))for(var s,a,p,h,l,u,c,f,y,g=t.layers[o],d=0,v=g.length;d<v;++d)n===sg?(s=void 0,p=o,pg(h=(a=g.feature(d)).Oh(),u=[],l=[]),1===(c=a.type)?s=1===h.length?"Point":"MultiPoint":2===c?s=1===h.length?"LineString":"MultiLineString":3===c&&(s="Polygon"),(h=a.properties)[this.i]=p,s=new this.b(s,u,l,h,a.id)):(c=g.feature(d),u=o,l=e,s=new this.b,a=c.id,(p=c.properties)[this.i]=u,this.a&&s.Tc(this.a),u=void 0,0===(h=c.type)?u=null:(f=[],y=[],pg(c=c.Oh(),y,f),1===h?u=new(1===c.length?m:P)(null):2===h?u=new(1===c.length?S:M)(null):3===h&&(u=new w(null)),u.ba("XY",y,f)),l=Ml(u,!1,Sl(this,l)),s.Ra(l),s.jc(a),s.H(p)),r.push(s);return r},r.kb=function(){return this.defaultDataProjection},r.mn=function(t){this.c=t},r.Tb=function(){},r.Sc=function(){},r.Bd=function(){},r.$c=function(){},r.Wb=function(){},e(hg,wu);var ti=[null],ug=l(ti,{nd:function(t,e){e[e.length-1].md.push(t.getAttribute("ref"))},tag:lg}),cg=l(ti,{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,Zt((t=g({fe:{}},fg,t,e)).fe)||(Ml(n=new m(n),!1,o),(o=new x(n)).jc(r),o.H(t.fe),i.features.push(o))},way:function(t,e){var o=e[0],i=t.getAttribute("id");t=g({md:[],fe:{}},ug,t,e),e=e[e.length-1];for(var r=[],n=0,s=t.md.length;n<s;n++)X(r,e.Sh[t.md[n]]);t.md[0]==t.md[t.md.length-1]?(n=new w(null)).ba("XY",r,[r.length]):(n=new S(null)).ba("XY",r),Ml(n,!1,o),(o=new x(n)).jc(i),o.H(t.fe),e.features.push(o)}}),fg=l(ti,{tag:lg});function yg(t){return t.getAttributeNS("http://www.w3.org/1999/xlink","href")}function gg(){}function dg(){}hg.prototype.zc=function(t,e){return e=xl(this,t,e),"osm"==t.localName&&(t=g({Sh:{},features:[]},cg,t,[e])).features?t.features:[]},hg.prototype.Vg=function(){},hg.prototype.Xb=function(){},hg.prototype.ie=function(){},gg.prototype.read=function(t){return rl(t)?this.a(t):nl(t)?this.b(t):"string"==typeof t?(t=sl(t),this.a(t)):null},e(dg,gg),dg.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},dg.prototype.b=function(t){return(t=g({},vg,t,[]))||null};var fi=[null,"http://www.opengis.net/ows/1.1"],vg=l(fi,{ServiceIdentification:o(function(t,e){return g({},Cg,t,e)}),ServiceProvider:o(function(t,e){return g({},Lg,t,e)}),OperationsMetadata:o(function(t,e){return g({},Ag,t,e)})}),bg=l(fi,{DeliveryPoint:o(i),City:o(i),AdministrativeArea:o(i),PostalCode:o(i),Country:o(i),ElectronicMailAddress:o(i)}),mg=l(fi,{Value:ll(i)}),wg=l(fi,{AllowedValues:o(function(t,e){return g({},mg,t,e)})}),xg=l(fi,{Phone:o(function(t,e){return g({},Eg,t,e)}),Address:o(function(t,e){return g({},bg,t,e)})}),Sg=l(fi,{HTTP:o(function(t,e){return g({},Mg,t,e)})}),Mg=l(fi,{Get:ll(function(t,e){var o=yg(t);if(o)return g({href:o},Tg,t,e)}),Post:void 0}),Pg=l(fi,{DCP:o(function(t,e){return g({},Sg,t,e)})}),Ag=l(fi,{Operation:function(t,e){var o=t.getAttribute("name");(t=g({},Pg,t,e))&&(e[e.length-1][o]=t)}}),Eg=l(fi,{Voice:o(i),Facsimile:o(i)}),Tg=l(fi,{Constraint:ll(function(t,e){var o=t.getAttribute("name");if(o)return g({name:o},wg,t,e)})}),jg=l(fi,{IndividualName:o(i),PositionName:o(i),ContactInfo:o(function(t,e){return g({},xg,t,e)})}),Cg=l(fi,{Title:o(i),ServiceTypeVersion:o(i),ServiceType:o(i)}),Lg=l(fi,{ProviderName:o(i),ProviderSite:o(yg),ServiceContact:o(function(t,e){return g({},jg,t,e)})});function Rg(t,e,o,i){for(var r=void 0!==i?i:[],n=i=0;n<e;){var s=t[n++];for(r[i++]=t[n++],r[i++]=s,s=2;s<o;++s)r[i++]=t[n++]}r.length=i}function Ig(t){t=t||{},wl.call(this),this.defaultDataProjection=v("EPSG:4326"),this.b=t.factor||1e5,this.a=t.geometryLayout||"XY"}function Ng(t,e,o){for(var i=Array(e),r=0;r<e;++r)i[r]=0;for(var n=0,s=t.length;n<s;)for(r=0;r<e;++r,++n){var a=t[n],p=a-i[r];i[r]=a,t[n]=p}return kg(t,o||1e5)}function Fg(t,e,o){for(var i,r=Array(e),n=0;n<e;++n)r[n]=0;for(t=Dg(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 kg(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 Dg(t,e){e=e||1e5;for(var o=[],i=0,r=0,n=0,s=t.length;n<s;++n){var a=t.charCodeAt(n)-63,i=i|(31&a)<<r;a<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 Og(t){t=t||{},wl.call(this),this.a=t.layerName,this.b=t.layers||null,this.defaultDataProjection=v(t.defaultDataProjection||"EPSG:4326")}function Ug(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 Gg(t,e,o,i,r,n,s){var a=t.type,p=Xg[a];return o="Point"===a||"MultiPoint"===a?p(t,o,i):p(t,e),(e=new x).Ra(Ml(o,!1,s)),void 0!==t.id&&e.jc(t.id),t=t.properties,r&&((t=t||{})[r]=n),t&&e.H(t),e}function Bg(t,e,o){t[0]=t[0]*e[0]+o[0],t[1]=t[1]*e[1]+o[1]}e(Ig,Dc),(r=Ig.prototype).ae=function(t,e){return new x(t=this.wd(t,e))},r.zg=function(t,e){return[this.ae(t,e)]},r.wd=function(t,e){var o=vr(this.a);return Rg(t=Fg(t,o,this.b),t.length,o,t),Ml(new S(Lr(t,0,t.length,o),this.a),!1,Sl(this,e))},r.ge=function(t,e){return(t=t.V())?this.Cd(t,e):(O(!1,40),"")},r.Wg=function(t,e){return this.ge(t[0],e)},r.Cd=function(t,e){return e=(t=Ml(t,!0,Sl(this,e))).ga(),t=t.qa(),Rg(e,e.length,t,e),Ng(e,t,this.b)},e(Og,Pl),Og.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,s=i,a=0,p=r.length;a<p;++a)for(var h=r[a],l=n,u=s,c=0,f=0,y=0,g=h.length;y<g;++y){var d=h[y];c+=d[0],f+=d[1],d[0]=c,d[1]=f,Bg(d,l,u)}n=[],t=t.objects;var v,s=this.a;for(v in t)this.b&&-1==this.b.indexOf(v)||("GeometryCollection"===t[v].type?(a=t[v],n.push.apply(n,function(t,e,o,i,r,n,s){for(var a=[],p=0,h=(t=t.geometries).length;p<h;++p)a[p]=Gg(t[p],e,o,i,r,n,s);return a}(a,r,o,i,s,v,e))):(a=t[v],n.push(Gg(a,r,o,i,s,v,e))));return n},Og.prototype.Fg=function(){return this.defaultDataProjection};var Xg={Point:function(t,e,o){return t=t.coordinates,e&&o&&Bg(t,e,o),new m(t)},LineString:function(t,e){return new S(t=Ug(t.arcs,e))},Polygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=Ug(t.arcs[i],e);return new w(o)},MultiPoint:function(t,e,o){if(t=t.coordinates,e&&o)for(var i=0,r=t.length;i<r;++i)Bg(t[i],e,o);return new P(t)},MultiLineString:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=Ug(t.arcs[i],e);return new M(o)},MultiPolygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i){for(var n=t.arcs[i],s=[],a=0,p=n.length;a<p;++a)s[a]=Ug(n[a],e);o[i]=s}return new f(o)}};function Vg(t){this.c=(t=t||{}).featureType,this.a=t.featureNS,this.b=t.gmlFormat||new y,this.o=t.schemaLocation||Wg["1.1.0"],wu.call(this)}(r=Og.prototype).Zc=function(){},r.he=function(){},r.je=function(){},r.Cg=function(){},r.Rc=function(){},e(Vg,wu);var Wg={"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 Zg(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return zg(t,e)}Vg.prototype.zc=function(t,e){var o={featureType:this.c,featureNS:this.a};return Xt(o,xl(this,t,e||{})),e=[o],this.b.b["http://www.opengis.net/gml"].featureMember=pl(Mu.prototype.be),t=(t=g([],this.b.b,t,e,this.b))||[]},Vg.prototype.j=function(t){return rl(t)?_g(t):nl(t)?g({},Jg,t,[]):"string"==typeof t?_g(t=sl(t)):void 0},Vg.prototype.g=function(t){return rl(t)?Zg(this,t):nl(t)?zg(this,t):"string"==typeof t?Zg(this,t=sl(t)):void 0};var Kg={"http://www.opengis.net/gml":{boundedBy:o(Mu.prototype.gf,"bounds")}};function zg(t,e){var o={},i=Ru(e.getAttribute("numberOfFeatures"));return o.numberOfFeatures=i,g(o,Kg,e,[],t.b)}var Yg={"http://www.opengis.net/wfs":{totalInserted:o(Lu),totalUpdated:o(Lu),totalDeleted:o(Lu)}},Hg={"http://www.opengis.net/ogc":{FeatureId:pl(function(t){return t.getAttribute("fid")})}},qg={"http://www.opengis.net/wfs":{Feature:function(t,e){gl(Hg,t,e)}}},Jg={"http://www.opengis.net/wfs":{TransactionSummary:o(function(t,e){return g({},Yg,t,e)},"transactionSummary"),InsertResults:o(function(t,e){return g([],qg,t,e)},"insertIds")}};function _g(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return g({},Jg,t,[])}var $g={"http://www.opengis.net/wfs":{PropertyName:c(ku)}};function Qg(t,e){var o=ol("http://www.opengis.net/ogc","Filter"),i=ol("http://www.opengis.net/ogc","FeatureId");o.appendChild(i),i.setAttribute("fid",e),t.appendChild(o)}function td(t,e){return e.indexOf(t=(t||"feature")+":")?t+e:e}var ed={"http://www.opengis.net/wfs":{Insert:c(function(t,e,o){var i=(r=o[o.length-1]).gmlVersion,r=ol(r.featureNS,r.featureType);if(t.appendChild(r),2===i){t=Zu.prototype,(i=e.a)&&r.setAttribute("fid",i);var n=(i=o[o.length-1]).featureNS,s=e.c,a=(i.lb||(i.lb={},i.lb[n]={}),e.N()),p=(e=[],[]);for(l in a){var h=a[l];null!==h&&(e.push(l),p.push(h),l==s||h instanceof yr?l in i.lb[n]||(i.lb[n][l]=c(t.ai,t)):l in i.lb[n]||(i.lb[n][l]=c(ku)))}var l=Xt({},i);l.node=r,vl(l,i.lb,cl(void 0,n),p,o,e)}else y.prototype.ii(r,e,o)}),Update:c(function(t,e,o){var i=o[o.length-1],r=(O(void 0!==e.a,27),i.featurePrefix),n=i.featureNS;if(t.setAttribute("typeName",td(r,i.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),void 0!==(r=e.a)){for(var s=[],a=0,p=(n=e.O()).length;a<p;a++){var h=e.get(n[a]);void 0!==h&&s.push({name:n[a],value:h})}vl({gmlVersion:i.gmlVersion,node:t,hasZ:i.hasZ,srsName:i.srsName},ed,cl("Property"),s,o),Qg(t,r)}}),Delete:c(function(t,e,o){o=o[o.length-1],O(void 0!==e.a,26);var i=o.featurePrefix,r=o.featureNS;t.setAttribute("typeName",td(i,o.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+i,r),void 0!==(e=e.a)&&Qg(t,e)}),Property:c(function(t,e,o){var i=ol("http://www.opengis.net/wfs","Name"),r=o[o.length-1].gmlVersion;t.appendChild(i),ku(i,e.name),void 0!==e.value&&null!==e.value&&(i=ol("http://www.opengis.net/wfs","Value"),t.appendChild(i),e.value instanceof yr?2===r?Zu.prototype.ai(i,e.value,o):y.prototype.od(i,e.value,o):ku(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&&ku(t,e.value)})}};function od(t,e,o){var i={node:t};e.b.forEach(function(t){vl(i,pd,cl(t.kc),[t],o)})}function id(t,e){void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),nd(t,e.b),sd(t,""+e.i)}function rd(t,e,o){ku(t=ol("http://www.opengis.net/ogc",t),o),e.appendChild(t)}function nd(t,e){rd("PropertyName",t,e)}function sd(t,e){rd("Literal",t,e)}function ad(t,e){var o=ol("http://www.opengis.net/gml","TimeInstant");t.appendChild(o),t=ol("http://www.opengis.net/gml","timePosition"),o.appendChild(t),ku(t,e)}var pd={"http://www.opengis.net/wfs":{Query:c(function(t,e,o){var i=o[o.length-1],r=i.featurePrefix,n=i.featureNS,s=i.propertyNames,a=i.srsName;t.setAttribute("typeName",r?td(r,e):e),a&&t.setAttribute("srsName",a),n&&t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),(e=Xt({},i)).node=t,vl(e,$g,cl("PropertyName"),s,o),(i=i.filter)&&(s=ol("http://www.opengis.net/ogc","Filter"),t.appendChild(s),vl({node:s},pd,cl(i.kc),[i],o))})},"http://www.opengis.net/ogc":{During:c(function(t,e){var o=ol("http://www.opengis.net/fes","ValueReference");ku(o,e.b),t.appendChild(o),o=ol("http://www.opengis.net/gml","TimePeriod"),t.appendChild(o),t=ol("http://www.opengis.net/gml","begin"),o.appendChild(t),ad(t,e.a),t=ol("http://www.opengis.net/gml","end"),o.appendChild(t),ad(t,e.i)}),And:c(od),Or:c(od),Not:c(function(t,e,o){e=e.condition,vl({node:t},pd,cl(e.kc),[e],o)}),BBOX:c(function(t,e,o){o[o.length-1].srsName=e.srsName,nd(t,e.geometryName),y.prototype.od(t,e.extent,o)}),Intersects:c(function(t,e,o){o[o.length-1].srsName=e.srsName,nd(t,e.geometryName),y.prototype.od(t,e.geometry,o)}),Within:c(function(t,e,o){o[o.length-1].srsName=e.srsName,nd(t,e.geometryName),y.prototype.od(t,e.geometry,o)}),PropertyIsEqualTo:c(id),PropertyIsNotEqualTo:c(id),PropertyIsLessThan:c(id),PropertyIsLessThanOrEqualTo:c(id),PropertyIsGreaterThan:c(id),PropertyIsGreaterThanOrEqualTo:c(id),PropertyIsNull:c(function(t,e){nd(t,e.b)}),PropertyIsBetween:c(function(t,e){nd(t,e.b);var o=ol("http://www.opengis.net/ogc","LowerBoundary");t.appendChild(o),sd(o,""+e.a),o=ol("http://www.opengis.net/ogc","UpperBoundary"),t.appendChild(o),sd(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()),nd(t,e.b),sd(t,""+e.c)})}};function hd(t){t=t||{},wl.call(this),this.b=void 0!==t.splitCollection&&t.splitCollection}function ld(t){return(t=t.X()).length?t.join(" "):""}function ud(t){for(var e=[],o=0,i=(t=t.X()).length;o<i;++o)e.push(t[o].join(" "));return e.join(",")}function cd(t){for(var e=[],o=0,i=(t=t.Sd()).length;o<i;++o)e.push("("+ud(t[o])+")");return e.join(",")}function fd(t){var e,o=t.U(),i=(0,yd[o])(t),o=o.toUpperCase();return t instanceof b&&(e="","XYZ"!==(t=t.ja)&&"XYZM"!==t||(e+="Z"),"XYM"!==t&&"XYZM"!==t||(e+="M"),0<(t=e).length)&&(o+=" "+t),i.length?o+"("+i+")":o+" EMPTY"}Vg.prototype.l=function(t){var e,o,i=ol("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)&&(O(t.geometryName,12),e=lu(t.geometryName,t.bbox,t.srsName),o=o?hu(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||[]},O(Array.isArray(t.featureTypes),11),t=t.featureTypes,(e=Xt({},(o=[o])[o.length-1])).node=i,vl(e,pd,cl("Query"),t,o),i},Vg.prototype.v=function(t,e,o,i){var r,n=[],s=ol("http://www.opengis.net/wfs","Transaction"),a=i.version||"1.1.0",p="1.0.0"===a?2:3;return s.setAttribute("service","WFS"),s.setAttribute("version",a),i&&(r=i.gmlOptions||{},i.handle)&&s.setAttribute("handle",i.handle),s.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",Wg[a]),t&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},Xt(a,r),vl(a,ed,cl("Insert"),t,n)),e&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},Xt(a,r),vl(a,ed,cl("Update"),e,n)),o&&vl({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},ed,cl("Delete"),o,n),i.nativeElements&&vl({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},ed,cl("Native"),i.nativeElements,n),s},Vg.prototype.Eg=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.kf(t);return null},Vg.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=[{}]),v(e.pop().srsName)}return null},e(hd,Dc);var yd={Point:ld,LineString:ud,Polygon:cd,MultiPoint:function(t){for(var e=[],o=0,i=(t=t.Zd()).length;o<i;++o)e.push("("+ld(t[o])+")");return e.join(",")},MultiLineString:function(t){for(var e=[],o=0,i=(t=t.gd()).length;o<i;++o)e.push("("+ud(t[o])+")");return e.join(",")},MultiPolygon:function(t){for(var e=[],o=0,i=(t=t.Td()).length;o<i;++o)e.push("("+cd(t[o])+")");return e.join(",")},GeometryCollection:function(t){for(var e=[],o=0,i=(t=t.Vf()).length;o<i;++o)e.push(fd(t[o]));return e.join(",")}};function gd(t){this.a=t,this.b=-1}function dd(t){this.i=t,this.a="XY"}function vd(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{"."==s?r=!0:"e"!=s&&"E"!=s||(n=!0);var s=e.a.charAt(++e.b)}while("0"<=s&&s<="9"||"."==s&&(void 0===r||!r)||!n&&("e"==s||"E"==s)||n&&("-"==s||"+"==s));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"<=(s=e.a.charAt(++e.b))&&s<="z"||"A"<=s&&s<="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 bd(t,e){return(e=t.b.type==e)&&vd(t),e}function md(t){for(var e=[],o=t.a.length,i=0;i<o;++i){var r=t.b;if(!bd(t,4))break;e.push(r.value)}if(e.length==o)return e;throw Error(Md(t))}function wd(t){for(var e=[md(t)];bd(t,5);)e.push(md(t));return e}function xd(t){for(var e=[t.sg()];bd(t,5);)e.push(t.sg());return e}function Sd(t){var e=1==t.b.type&&"EMPTY"==t.b.value;return e&&vd(t),e}function Md(t){return"Unexpected `"+t.b.value+"` at position "+t.b.position+" in `"+t.i.a+"`"}(r=hd.prototype).ae=function(t,e){return(t=this.wd(t,e))?((e=new x).Ra(t),e):null},r.zg=function(t,e){var o=[];t=this.wd(t,e),e=[];for(var i=0,r=(o=this.b&&"GeometryCollection"==t.U()?t.a:[t]).length;i<r;++i)(t=new x).Ra(o[i]),e.push(t);return e},r.wd=function(t,e){return vd(t=new dd(new gd(t))),(t=function t(e){var o=e.b;if(bd(e,1)){var o=o.value,i="XY",r=e.b;if(1==e.b.type&&("Z"===(r=r.value)?i="XYZ":"M"===r?i="XYM":"ZM"===r&&(i="XYZM"),"XY"!==i)&&vd(e),e.a=i,"GEOMETRYCOLLECTION"==o){t:{if(bd(e,2)){for(o=[];o.push(t(e)),bd(e,5););if(bd(e,3)){e=o;break t}}else if(Sd(e)){e=[];break t}throw Error(Md(e))}return new uu(e)}if(r=Ad[o],i=Pd[o],r&&i)return o=r.call(e),new i(o,e.a);throw Error("Invalid geometry type: "+o)}throw Error(Md(e))}(t))?Ml(t,!1,e):null},r.ge=function(t,e){return(t=t.V())?this.Cd(t,e):""},r.Wg=function(t,e){if(1==t.length)return this.ge(t[0],e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(t[i].V());return t=new uu(o),this.Cd(t,e)},r.Cd=function(t,e){return fd(Ml(t,!0,e))},(r=dd.prototype).tg=function(){if(bd(this,2)){var t=md(this);if(bd(this,3))return t}else if(Sd(this))return null;throw Error(Md(this))},r.sg=function(){if(bd(this,2)){var t=wd(this);if(bd(this,3))return t}else if(Sd(this))return[];throw Error(Md(this))},r.ug=function(){if(bd(this,2)){var t=xd(this);if(bd(this,3))return t}else if(Sd(this))return[];throw Error(Md(this))},r.fp=function(){if(bd(this,2)){var t;if(2==this.b.type)for(t=[this.tg()];bd(this,5);)t.push(this.tg());else t=wd(this);if(bd(this,3))return t}else if(Sd(this))return[];throw Error(Md(this))},r.ep=function(){if(bd(this,2)){var t=xd(this);if(bd(this,3))return t}else if(Sd(this))return[];throw Error(Md(this))},r.gp=function(){if(bd(this,2)){for(var t=[this.ug()];bd(this,5);)t.push(this.ug());if(bd(this,3))return t}else if(Sd(this))return[];throw Error(Md(this))};var Pd={POINT:m,LINESTRING:S,POLYGON:w,MULTIPOINT:P,MULTILINESTRING:M,MULTIPOLYGON:f},Ad={POINT:dd.prototype.tg,LINESTRING:dd.prototype.sg,POLYGON:dd.prototype.ug,MULTIPOINT:dd.prototype.fp,MULTILINESTRING:dd.prototype.ep,MULTIPOLYGON:dd.prototype.gp};function Ed(){this.version=void 0}function Td(t,e){return g({},zd,t,e)}function jd(t,e){return g({},Vd,t,e)}function Cd(t,e){if(e=Td(t,e))return t=[Ru(t.getAttribute("width")),Ru(t.getAttribute("height"))],e.size=t,e}function Ld(t,e){return g([],Yd,t,e)}e(Ed,gg),Ed.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},Ed.prototype.b=function(t){return this.version=t.getAttribute("version").trim(),(t=g({version:this.version},Rd,t,[]))||null};var ti=[null,"http://www.opengis.net/wms"],Rd=l(ti,{Service:o(function(t,e){return g({},Nd,t,e)}),Capability:o(function(t,e){return g({},Id,t,e)})}),Id=l(ti,{Request:o(function(t,e){return g({},Xd,t,e)}),Exception:o(function(t,e){return g([],Od,t,e)}),Layer:o(function(t,e){return g({},Ud,t,e)})}),Nd=l(ti,{Name:o(i),Title:o(i),Abstract:o(i),KeywordList:o(Ld),OnlineResource:o(yg),ContactInformation:o(function(t,e){return g({},Fd,t,e)}),Fees:o(i),AccessConstraints:o(i),LayerLimit:o(Lu),MaxWidth:o(Lu),MaxHeight:o(Lu)}),Fd=l(ti,{ContactPersonPrimary:o(function(t,e){return g({},kd,t,e)}),ContactPosition:o(i),ContactAddress:o(function(t,e){return g({},Dd,t,e)}),ContactVoiceTelephone:o(i),ContactFacsimileTelephone:o(i),ContactElectronicMailAddress:o(i)}),kd=l(ti,{ContactPerson:o(i),ContactOrganization:o(i)}),Dd=l(ti,{AddressType:o(i),Address:o(i),City:o(i),StateOrProvince:o(i),PostCode:o(i),Country:o(i)}),Od=l(ti,{Format:pl(i)}),Ud=l(ti,{Name:o(i),Title:o(i),Abstract:o(i),KeywordList:o(Ld),CRS:ll(i),EX_GeographicBoundingBox:o(function(t,e){if(i=g({},Bd,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:ll(function(t){var e=[Cu(t.getAttribute("minx")),Cu(t.getAttribute("miny")),Cu(t.getAttribute("maxx")),Cu(t.getAttribute("maxy"))],o=[Cu(t.getAttribute("resx")),Cu(t.getAttribute("resy"))];return{crs:t.getAttribute("CRS"),extent:e,res:o}}),Dimension:ll(function(t){return{name:t.getAttribute("name"),units:t.getAttribute("units"),unitSymbol:t.getAttribute("unitSymbol"),default:t.getAttribute("default"),multipleValues:Eu(t.getAttribute("multipleValues")),nearestValue:Eu(t.getAttribute("nearestValue")),current:Eu(t.getAttribute("current")),values:i(t)}}),Attribution:o(function(t,e){return g({},Gd,t,e)}),AuthorityURL:ll(function(t,e){if(e=Td(t,e))return e.name=t.getAttribute("name"),e}),Identifier:ll(i),MetadataURL:ll(function(t,e){if(e=Td(t,e))return e.type=t.getAttribute("type"),e}),DataURL:ll(Td),FeatureListURL:ll(Td),Style:ll(function(t,e){return g({},Kd,t,e)}),MinScaleDenominator:o(ju),MaxScaleDenominator:o(ju),Layer:ll(function(t,e){var o=e[e.length-1],i=g({},Ud,t,e);if(i)return void 0===(e=Eu(t.getAttribute("queryable")))&&(e=o.queryable),i.queryable=void 0!==e&&e,void 0===(e=Ru(t.getAttribute("cascaded")))&&(e=o.cascaded),i.cascaded=e,void 0===(e=Eu(t.getAttribute("opaque")))&&(e=o.opaque),i.opaque=void 0!==e&&e,void 0===(e=Eu(t.getAttribute("noSubsets")))&&(e=o.noSubsets),i.noSubsets=void 0!==e&&e,e=(e=Cu(t.getAttribute("fixedWidth")))||o.fixedWidth,i.fixedWidth=e,t=(t=Cu(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})}),Gd=l(ti,{Title:o(i),OnlineResource:o(yg),LogoURL:o(Cd)}),Bd=l(ti,{westBoundLongitude:o(ju),eastBoundLongitude:o(ju),southBoundLatitude:o(ju),northBoundLatitude:o(ju)}),Xd=l(ti,{GetCapabilities:o(jd),GetMap:o(jd),GetFeatureInfo:o(jd)}),Vd=l(ti,{Format:ll(i),DCPType:ll(function(t,e){return g({},Wd,t,e)})}),Wd=l(ti,{HTTP:o(function(t,e){return g({},Zd,t,e)})}),Zd=l(ti,{Get:o(Td),Post:o(Td)}),Kd=l(ti,{Name:o(i),Title:o(i),Abstract:o(i),LegendURL:ll(Cd),StyleSheetURL:o(Td),StyleURL:o(Td)}),zd=l(ti,{Format:o(i),OnlineResource:o(yg)}),Yd=l(ti,{Keyword:pl(i)});function Hd(t){t=t||{},this.a="http://mapserver.gis.umn.edu/mapserver",this.b=new Zu,this.c=t.layers||null,wu.call(this)}function qd(){this.i=new dg}function Jd(t){var e=i(t).split(" ");if(e&&2==e.length&&(t=+e[0],e=+e[1],!isNaN(t))&&!isNaN(e))return[t,e]}e(Hd,wu),Hd.prototype.zc=function(t,e){var o={},i=(e&&Xt(o,xl(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 s,a,p,h=t.childNodes[r];h.nodeType===Node.ELEMENT_NODE&&(s=o[0],a=h.localName.replace("_layer",""),!this.c||D(this.c,a))&&(a+="_feature",s.featureType=a,s.featureNS=this.a,(p={})[a]=pl(this.b.wg,this.b),s=l([s.featureNS,null],p),h.setAttribute("namespaceURI",this.a),h=g([],s,h,o,this.b))&&X(e,h)}"FeatureCollection"==i&&(t=g([],this.b.b,t,[{}],this.b))&&(e=t)}return e},Hd.prototype.Vg=function(){},Hd.prototype.Xb=function(){},Hd.prototype.ie=function(){},e(qd,gg),qd.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},qd.prototype.b=function(t){var e=t.getAttribute("version").trim(),o=this.i.b(t);return o&&(o.version=e,o=g(o,_d,t,[]))||null};var fi=[null,"http://www.opengis.net/wmts/1.0"],ti=[null,"http://www.opengis.net/ows/1.1"],_d=l(fi,{Contents:o(function(t,e){return g({},$d,t,e)})}),$d=l(fi,{Layer:ll(function(t,e){return g({},Qd,t,e)}),TileMatrixSet:ll(function(t,e){return g({},s0,t,e)})}),Qd=l(fi,{Style:ll(function(t,e){if(e=g({},t0,t,e))return t="true"===t.getAttribute("isDefault"),e.isDefault=t,e}),Format:ll(i),TileMatrixSetLink:ll(function(t,e){return g({},e0,t,e)}),Dimension:ll(function(t,e){return g({},r0,t,e)}),ResourceURL:ll(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})},l(ti,{Title:o(i),Abstract:o(i),WGS84BoundingBox:o(function(t,e){if(2==(t=g([],n0,t,e)).length)return ht(t)}),Identifier:o(i)})),t0=l(fi,{LegendURL:ll(function(t){var e={};return e.format=t.getAttribute("format"),e.href=yg(t),e})},l(ti,{Title:o(i),Identifier:o(i)})),e0=l(fi,{TileMatrixSet:o(i),TileMatrixSetLimits:o(function(t,e){return g([],o0,t,e)})}),o0=l(fi,{TileMatrixLimits:pl(function(t,e){return g({},i0,t,e)})}),i0=l(fi,{TileMatrix:o(i),MinTileRow:o(Lu),MaxTileRow:o(Lu),MinTileCol:o(Lu),MaxTileCol:o(Lu)}),r0=l(fi,{Default:o(i),Value:ll(i)},l(ti,{Identifier:o(i)})),n0=l(ti,{LowerCorner:pl(Jd),UpperCorner:pl(Jd)}),s0=l(fi,{WellKnownScaleSet:o(i),TileMatrix:ll(function(t,e){return g({},a0,t,e)})},l(ti,{SupportedCRS:o(i),Identifier:o(i)})),a0=l(fi,{TopLeftCorner:o(Jd),ScaleDenominator:o(ju),TileWidth:o(Lu),TileHeight:o(Lu),MatrixWidth:o(Lu),MatrixHeight:o(Lu)},l(ti,{Identifier:o(i)}));function p0(t){ro.call(this),t=t||{},this.a=null,this.f=xe,this.c=void 0,d(this,so("projection"),this.Am,this),d(this,so("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 h0(t,e,o){b.call(this),this.Ng(t,e||0,o)}function l0(t){var e=t.A[t.a]-t.A[0];return e*e+(t=t.A[t.a+1]-t.A[1])*t}function u0(t,e,o){for(var i,r,n,s,a,p,h=[],l=t(0),u=t(1),c=e(l),f=[u,l],y=[e(u),c],g=[1,0],d={},v=1e5;0<--v&&0<g.length;)s=g.pop(),l=f.pop(),c=y.pop(),(u=s.toString())in d||(h.push(c[0],c[1]),d[u]=!0),a=g.pop(),u=f.pop(),i=y.pop(),et((n=e(r=t(p=(s+a)/2)))[0],n[1],c[0],c[1],i[0],i[1])<o?(h.push(i[0],i[1]),d[u=a.toString()]=!0):(g.push(a,p,p,s),y.push(i,n,n,c),f.push(u,r,r,l));return h}function c0(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:f0,this.D=this.u=void 0,this.a=this.b=this.S=null,1==t.showLabels&&(this.na=t.lonLabelFormatter||ir.bind(this,"EW"),this.Ua=t.latLabelFormatter||ir.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 pf({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new Hh({color:"rgba(0,0,0,1)"}),stroke:new hp({color:"rgba(255,255,255,1)",width:3})}),this.C=void 0!==t.latLabelStyle?t.latLabelStyle:new pf({font:"12px Calibri,sans-serif",textAlign:"end",fill:new Hh({color:"rgba(0,0,0,1)"}),stroke:new hp({color:"rgba(255,255,255,1)",width:3})}),this.b=[],this.a=[]),this.setMap(void 0!==t.map?t.map:null)}e(p0,ro),(r=p0.prototype).ka=function(){this.Ke(!1),ro.prototype.ka.call(this)},r.Am=function(){var t=this.Uh();t&&(this.f=we(v("EPSG:4326"),t),this.a)&&this.set("position",this.f(this.a))},r.Bm=function(){var t;hi&&((t=this.Vh())&&void 0===this.c?this.c=navigator.geolocation.watchPosition(this.np.bind(this),this.op.bind(this),this.Gh()):t||void 0===this.c||(navigator.geolocation.clearWatch(this.c),this.c=void 0))},r.np=function(t){t=t.coords,this.set("accuracy",t.accuracy),this.set("altitude",null===t.altitude?void 0:t.altitude),this.set("altitudeAccuracy",null===t.altitudeAccuracy?void 0:t.altitudeAccuracy),this.set("heading",null===t.heading?void 0:it(t.heading)),this.a?(this.a[0]=t.longitude,this.a[1]=t.latitude):this.a=[t.longitude,t.latitude];var e=this.f(this.a);this.set("position",e),this.set("speed",null===t.speed?void 0:t.speed),(t=Yr(ie,this.a,t.accuracy)).Dc(this.f),this.set("accuracyGeometry",t),this.s()},r.op=function(t){t.type="error",this.Ke(!1),this.b(t)},r.Dk=function(){return this.get("accuracy")},r.Ek=function(){return this.get("accuracyGeometry")||null},r.Gk=function(){return this.get("altitude")},r.Hk=function(){return this.get("altitudeAccuracy")},r.ym=function(){return this.get("heading")},r.zm=function(){return this.get("position")},r.Uh=function(){return this.get("projection")},r.ll=function(){return this.get("speed")},r.Vh=function(){return this.get("tracking")},r.Gh=function(){return this.get("trackingOptions")},r.Wh=function(t){this.set("projection",v(t))},r.Ke=function(t){this.set("tracking",t)},r.wj=function(t){this.set("trackingOptions",t)},e(h0,b),(r=h0.prototype).clone=function(){var t=new h0(null);return br(t,this.ja,this.A.slice()),t.s(),t},r.Kb=function(t,e,o,i){var r=this.A,n=(t-=r[0],e-r[1]);if((e=t*t+n*n)<i){if(e)for(i=this.pd()/Math.sqrt(e),o[0]=r[0]+i*t,o[1]=r[1]+i*n,i=2;i<this.a;++i)o[i]=r[i];else for(i=0;i<this.a;++i)o[i]=r[i];return o.length=this.a,e}return i},r.Mc=function(t,e){var o=this.A;return(t-=o[0])*t+(e-=o[1])*e<=l0(this)},r.wa=function(){return this.A.slice(0,this.a)},r.se=function(t){var e=this.A,o=e[this.a]-e[0];return bt(e[0]-o,e[1]-o,e[0]+o,e[1]+o,t)},r.pd=function(){return Math.sqrt(l0(this))},r.U=function(){return"Circle"},r.Xa=function(t){var e;return!!Ot(t,this.G())&&(e=this.wa(),t[0]<=e[0]&&t[2]>=e[0]||t[1]<=e[1]&&t[3]>=e[1]||Et(t,this.sb,this))},r.ob=function(t){var e,o=this.a,i=t.slice();for(i[o]=i[0]+(this.A[o]-this.A[0]),e=1;e<o;++e)i[o+e]=t[e];br(this,this.ja,i),this.s()},r.Ng=function(t,e,o){if(t){var i;for(mr(this,o,t,0),this.A||(this.A=[]),t=Tr(o=this.A,t),o[t++]=o[0]+e,e=1,i=this.a;e<i;++e)o[t++]=o[e];o.length=t}else br(this,"XY",null);this.s()},r.X=function(){},r.ma=function(){},r.Uc=function(t){this.A[this.a]=this.A[0]+t,this.s()};var f0=new hp({color:"rgba(0,0,0,0.2)"}),y0=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];function g0(t,e,o,i,r,n,s){var a,p,h,l,u=s;return a=e,p=o,h=i,l=t.j,r=r,o=u0(function(t){return[a,p+(h-p)*t]},me(v("EPSG:4326"),l),r),(u=void 0!==t.i[u]?t.i[u]:new S(null)).ba("XY",o),Ot(u.G(),n)&&(t.b&&(o=s,n=[(i=u.ga())[0],Q(n[1]+Math.abs(n[1]-n[3])*t.fa,Math.max(n[1],i[1]),Math.min(n[3],i[i.length-1]))],(o=t.b[o]?t.b[o].Qd:new m(null)).ma(n),t.b[s]={Qd:o,text:t.na(e)}),t.i[s++]=u),s}function d0(t,e,o,i,r){var n,s,a,p,h,l=r;return n=e,s=t.g,a=t.f,h=t.j,p=o,o=u0(function(t){return[s+(a-s)*t,n]},me(v("EPSG:4326"),h),p),(l=void 0!==t.c[l]?t.c[l]:new S(null)).ba("XY",o),Ot(l.G(),i)&&(t.a&&(o=r,h=l.ga(),i=[Q(i[0]+Math.abs(i[0]-i[2])*t.T,Math.max(i[0],h[0]),Math.min(i[2],h[h.length-2])),h[1]],(o=t.a[o]?t.a[o].Qd:new m(null)).ma(i),t.a[r]={Qd:o,text:t.Ua(e)}),t.c[r++]=l),r}function v0(t,e,o,i,r){eo.call(this),this.f=r,this.extent=t,this.a=o,this.resolution=e,this.state=i}function b0(t,e,o,i,r,n,s){v0.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=s}function m0(t,e,o,i,r,n){this.c=n||null,v0.call(this,t,e,o,n?0:2,i),this.i=r}function w0(t,e){eo.call(this),this.ta=t,this.state=e,this.i=null,this.key=""}function x0(t){if(t.i){var e=t.i;do{if(2==e.getState())return e}while(e=e.i)}return t}function S0(t,e){t.state=e,t.s()}function M0(t,e,o,i,r){w0.call(this,t,e),this.g=o,this.M=new Image,null!==i&&(this.M.crossOrigin=i),this.c=null,this.j=r}function P0(t){t.c.forEach(qe),t.c=null}(r=c0.prototype).Cm=function(){return this.v},r.al=function(){return this.i},r.hl=function(){return this.c},r.Kh=function(t){var e,o,i,r,n,s,a,p,h,l,u=t.vectorContext,c=t.frameState,f=c.extent,y=(t=c.viewState).center,g=t.projection,d=t.resolution;for(t=d*d/(4*(t=c.pixelRatio)*t),this.j&&be(this.j,g)||(e=v("EPSG:4326"),o=g.G(),l=Pe(i=g.g,e,g),r=i[2],n=i[1],s=i[0],a=l[3],p=l[2],h=l[1],l=l[0],this.o=i[3],this.f=r,this.l=n,this.g=s,this.oa=a,this.ra=p,this.I=h,this.R=l,this.u=me(e,g),this.D=me(g,e),this.S=this.D(Lt(o)),this.j=g),g.i&&(e=Dt(g=g.G()),(c=c.focus[0])<g[0]||c>g[2])&&(c=e*Math.ceil((g[0]-c)/e),f=[f[0]+c,f[1],f[2]+c,f[3]]),c=this.S[0],g=this.S[1],e=-1,i=Math.pow(this.Jb*d,2),r=[],n=[],d=0,o=y0.length;d<o&&(r[0]=c-(s=y0[d]/2),r[1]=g-s,n[0]=c+s,n[1]=g+s,this.u(r,r),this.u(n,n),!((s=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2))<=i));++d)e=y0[d];if(-1==(d=e))this.i.length=this.c.length=0,this.b&&(this.b.length=0),this.a&&(this.a.length=0);else{for(y=(c=this.D(y))[0],c=c[1],g=this.fb,i=(e=Pe(e=[Math.max(f[0],this.R),Math.max(f[1],this.I),Math.min(f[2],this.ra),Math.min(f[3],this.oa)],this.j,"EPSG:4326"))[3],n=e[1],o=g0(this,r=Q(y=Math.floor(y/d)*d,this.g,this.f),n,i,t,f,0),e=0;r!=this.g&&e++<g;)o=g0(this,r=Math.max(r-d,this.g),n,i,t,f,o);for(r=Q(y,this.g,this.f),e=0;r!=this.f&&e++<g;)o=g0(this,r=Math.min(r+d,this.f),n,i,t,f,o);for(this.i.length=o,this.b&&(this.b.length=o),o=d0(this,y=Q(c=Math.floor(c/d)*d,this.l,this.o),t,f,0),e=0;y!=this.l&&e++<g;)o=d0(this,y=Math.max(y-d,this.l),t,f,o);for(y=Q(c,this.l,this.o),e=0;y!=this.o&&e++<g;)o=d0(this,y=Math.min(y+d,this.o),t,f,o);this.c.length=o,this.a&&(this.a.length=o)}for(u.Ma(null,this.pa),t=0,y=this.i.length;t<y;++t)d=this.i[t],u.zb(d);for(t=0,y=this.c.length;t<y;++t)d=this.c[t],u.zb(d);if(this.b)for(t=0,y=this.b.length;t<y;++t)d=this.b[t],this.B.xd(d.text),u.Cb(this.B),u.zb(d.Qd);if(this.a)for(t=0,y=this.a.length;t<y;++t)d=this.a[t],this.C.xd(d.text),u.Cb(this.C),u.zb(d.Qd)},r.setMap=function(t){this.v&&(this.v.K("postcompose",this.Kh,this),this.v.render()),t&&(t.J("postcompose",this.Kh,this),t.render()),this.v=t},e(v0,eo),v0.prototype.s=function(){this.b("change")},v0.prototype.G=function(){return this.extent},v0.prototype.getState=function(){return this.state},e(b0,v0),(r=b0.prototype).Y=function(t){var e;return void 0!==t?(t=U(t))in this.c?this.c[t]:(e=Zt(this.c)?this.M:this.M.cloneNode(!1),this.c[t]=e):this.M},r.Fm=function(){this.state=3,this.i.forEach(qe),this.i=null,this.s()},r.Gm=function(){void 0===this.resolution&&(this.resolution=It(this.extent)/this.M.height),this.state=2,this.i.forEach(qe),this.i=null,this.s()},r.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.i=[Ye(this.M,"error",this.Fm,this),Ye(this.M,"load",this.Gm,this)],this.g(this,this.j))},r.Og=function(t){this.M=t},e(m0,v0),m0.prototype.g=function(t){this.state=t?3:2,this.s()},m0.prototype.load=function(){0==this.state&&(this.state=1,this.s(),this.c(this.g.bind(this)))},m0.prototype.Y=function(){return this.i},e(w0,eo),w0.prototype.s=function(){this.b("change")},w0.prototype.bb=function(){return this.key+"/"+this.ta},w0.prototype.f=function(){return this.ta},w0.prototype.getState=function(){return this.state},e(M0,w0),(r=M0.prototype).ka=function(){1==this.state&&P0(this),this.i&&$e(this.i),this.state=5,this.s(),w0.prototype.ka.call(this)},r.Y=function(){return this.M},r.bb=function(){return this.g},r.Dm=function(){this.state=3,this.M=A0,P0(this),this.s()},r.Em=function(){this.state=this.M.naturalWidth&&this.M.naturalHeight?2:4,P0(this),this.s()},r.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.c=[Ye(this.M,"error",this.Dm,this),Ye(this.M,"load",this.Em,this)],this.j(this,this.g))};var A0=new Image;function E0(t){t=t||{},pn.call(this,{handleEvent:cr}),this.g=t.formatConstructors||[],this.o=t.projection?v(t.projection):null,this.a=null,this.target=t.target||null}function T0(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 j0(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"}function C0(t){var e=t.v;e&&(e=t.target||e.a,t.a=[d(e,"drop",T0,t),d(e,"dragenter",j0,t),d(e,"dragover",j0,t),d(e,"drop",j0,t)])}function L0(t){t.a&&(t.a.forEach(qe),t.a=null)}A0.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e(E0,pn),E0.prototype.j=function(t,e){e=e.target.result;for(var o=this.v,i=(i=this.o)||o.Z().v,r=[],n=0,s=(o=this.g).length;n<s;++n){var a=new o[n],p={featureProjection:i};try{r=a.Oa(e,p)}catch(t){r=null}if(r&&0<r.length)break}this.b(new I0(R0,t,r,i))},E0.prototype.Ha=function(t){pn.prototype.Ha.call(this,t),(t?C0:L0)(this)},E0.prototype.setMap=function(t){L0(this),pn.prototype.setMap.call(this,t),this.c()&&C0(this)};var R0="addfeatures";function I0(t,e,o,i){Qe.call(this,t),this.features=o,this.file=e,this.projection=i}function N0(t){t=t||{},Mn.call(this,{handleDownEvent:D0,handleDragEvent:F0,handleUpEvent:k0}),this.l=t.condition||mn,this.a=this.g=void 0,this.j=0,this.u=void 0!==t.duration?t.duration:400}function F0(t){var e,o,i;xn(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!==_i&&void 0!==this.g&&(i=o-this.g,hn(e,e.Qa()-i)),this.g=o,void 0!==this.a&&(o=this.a*(e.Pa()/t),un(e,o)),void 0!==this.a&&(this.j=this.a/t),this.a=t)}function k0(t){if(!xn(t))return!0;nn(t=t.map.Z(),1,-1);var e=this.j-1,o=t.Qa(),o=t.constrainRotation(o,0),o=(hn(t,o,void 0,void 0),t.Pa()),i=this.u,o=t.constrainResolution(o,0,e);return un(t,o,void 0,i),this.j=0,!1}function D0(t){return!(!xn(t)||!this.l(t)||(nn(t.map.Z(),1,1),this.a=this.g=void 0))}function O0(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=ms(),this.b=[],this.B=null,this.fa=ms(),this.na=ms()}function U0(t,e,o,i,r,n,s){for(var a=t.coordinates.length,p=t.Sf(),h=(s&&(o+=r),s=[e[o],e[o+1]],[NaN,NaN]),l=!0,u=o+r;u<i;u+=r){h[0]=e[u],h[1]=e[u+1];var c=dt(p,h),l=c!==f?(l&&(t.coordinates[a++]=s[0],t.coordinates[a++]=s[1]),t.coordinates[a++]=h[0],t.coordinates[a++]=h[1],!1):1!==c||(t.coordinates[a++]=h[0],t.coordinates[a++]=h[1],!1),f=(s[0]=h[0],s[1]=h[1],c)}return(n&&l||u===o+r)&&(t.coordinates[a++]=s[0],t.coordinates[a++]=s[1]),a}function G0(t,e){t.oa=[0,e,0],t.a.push(t.oa),t.ra=[0,e,0],t.b.push(t.ra)}function B0(t,e,o,i,r,n,s,a,p){var h;t.B&&Z(i,t.T)?h=t.B:(t.B||(t.B=[]),h=gr(t.coordinates,0,t.coordinates.length,2,i,t.B),Ms(t.T,i)),i=!Zt(n);for(var l,u,c=0,D=s.length,f=0,y=t.fa,g=t.na,d=0,v=0,b=t.a!=s||t.overlaps?0:200;c<D;)switch((N=s[c])[0]){case 0:f=N[1],i&&n[U(f).toString()]||!f.V()?c=N[2]:void 0===p||Ot(p,f.V().G())?++c:c=N[2]+1;break;case 1:b<d&&(t.Va(e,r),d=0),b<v&&(e.stroke(),v=0),d||v||(e.beginPath(),l=u=NaN),++c;break;case 2:m=h[f=N[1]],N=h[f+1],j=h[f+2]-m,f=h[f+3]-N,f=Math.sqrt(j*j+f*f),e.moveTo(m+f,N),e.arc(m,N,f,0,2*Math.PI,!0),++c;break;case 3:e.closePath(),++c;break;case 4:f=N[1];var m=N[2],w=N[3],x=N[4]*o,S=N[5]*o,M=N[6],P=N[7],A=N[8],E=N[9],T=N[10],j=N[11],C=N[12],L=N[13],R=N[14];for(T&&(j+=r);f<m;f+=2){var I,N=h[f]-x,T=h[f+1]-S,F=(L&&(N=Math.round(N),T=Math.round(T)),1==C&&!j||(js(y,I=N+x,F=T+S,C,C,j,-I,-F),e.setTransform.apply(e,y)),I=e.globalAlpha,1!=P&&(e.globalAlpha=I*P),R+A>w.width?w.width-A:R),O=M+E>w.height?w.height-E:M;e.drawImage(w,A,E,F,O,N,T,F*o,O*o),1!=P&&(e.globalAlpha=I),1==C&&!j||e.setTransform.apply(e,g)}++c;break;case 5:for(f=N[1],m=N[2],S=N[3],M=N[4]*o,P=N[5]*o,j=N[6],C=N[7]*o,w=N[8],x=N[9],(T=N[10])&&(j+=r);f<m;f+=2){for(N=h[f]+M,T=h[f+1]+P,1==C&&!j||(js(y,N,T,C,C,j,-N,-T),e.setTransform.apply(e,y)),1<(E=(A=S.split("\n")).length)?T-=(E-1)/2*(L=Math.round(1.5*e.measureText("M").width)):L=0,R=0;R<E;R++)I=A[R],x&&e.strokeText(I,N,T),w&&e.fillText(I,N,T),T+=L;1==C&&!j||e.setTransform.apply(e,g)}++c;break;case 6:if(a&&(f=a(f=N[1])))return f;++c;break;case 7:b?d++:t.Va(e,r),++c;break;case 8:for(f=N[1],m=N[2],N=h[f],C=(T=h[f+1])+.5|0,(j=N+.5|0)===l&&C===u||(e.moveTo(N,T),l=j,u=C),f+=2;f<m;f+=2)j=(N=h[f])+.5|0,C=(T=h[f+1])+.5|0,f!=m-2&&j===l&&C===u||(e.lineTo(N,T),l=j,u=C);++c;break;case 9:t.R=N[2],d&&(t.Va(e,r),d=0,v)&&(e.stroke(),v=0),e.fillStyle=N[1],++c;break;case 10:var f=void 0===N[8]||N[8],k=N[9];m=N[2],v&&(e.stroke(),v=0),e.strokeStyle=N[1],e.lineWidth=f?m*o:m,e.lineCap=N[3],e.lineJoin=N[4],e.miterLimit=N[5],si&&(m=N[6],j=N[7],f&&o!==k&&(m=m.map(function(t){return t*o/k}),j*=o/k,N[6]=m,N[7]=j,N[9]=o),e.lineDashOffset=j,e.setLineDash(m)),++c;break;case 11:e.font=N[1],e.textAlign=N[2],e.textBaseline=N[3],++c;break;case 12:b?v++:e.stroke(),++c;break;default:++c}d&&t.Va(e,r),v&&e.stroke()}function X0(t){var e=t.b;e.reverse();for(var o=e.length,i=-1,r=0;r<o;++r){var n=e[r],s=n[0];if(6==s)i=r;else if(0==s){for(n[2]=r,n=t.b,s=r;i<s;){var a=n[i];n[i]=n[s],n[s]=a,++i,--s}i=-1}}}function V0(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 W0(t,e,o,i){O0.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 Z0(t,e,o,i){O0.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 K0(t,e,o,i,r){var n=t.coordinates.length;return e=U0(t,e,o,i,r,!1,!1),t.a.push(n=[8,n,e]),t.b.push(n),i}function z0(t){var e=t.i,o=e.strokeStyle,i=e.lineCap,r=e.lineDash,n=e.lineDashOffset,s=e.lineJoin,a=e.lineWidth,p=e.miterLimit;e.Md==o&&e.Gd==i&&Z(e.Hd,r)&&e.Id==n&&e.Jd==s&&e.Kd==a&&e.Ld==p||(e.eg!=t.coordinates.length&&(t.a.push([12]),e.eg=t.coordinates.length),t.a.push([10,o,a,i,s,p,r,n,!0,1],[1]),e.Md=o,e.Gd=i,e.Hd=r,e.Id=n,e.Jd=s,e.Kd=a,e.Ld=p)}function Y0(t,e,o,i){O0.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 H0(t,e,o,i,r){var n=void 0!==(s=t.i).fillStyle,s=null!=s.strokeStyle,a=i.length,p=[1];for(t.a.push(p),t.b.push(p),p=0;p<a;++p){var h=i[p],l=t.coordinates.length;o=U0(t,e,o,h,r,!0,!s),t.a.push(o=[8,l,o]),t.b.push(o),s&&(t.a.push(o=[3]),t.b.push(o)),o=h}return t.b.push(e=[7]),n&&t.a.push(e),s&&(t.a.push(n=[12]),t.b.push(n)),o}function q0(t,e){var o,i=t.i,r=i.fillStyle,n=i.strokeStyle,s=i.lineCap,a=i.lineDash,p=i.lineDashOffset,h=i.lineJoin,l=i.lineWidth,u=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==s&&Z(i.Hd,a)&&i.Id==p&&i.Jd==h&&i.Kd==l&&i.Ld==u||(t.a.push([10,n,l,s,h,u,a,p,!0,1]),i.Md=n,i.Gd=s,i.Hd=a,i.Id=p,i.Jd=h,i.Kd=l,i.Ld=u)}function J0(t,e,o,i){O0.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 _0(t,e,o,i,r){this.v=t,this.c=e,this.o=i,this.l=o,this.f=r,this.a={},this.g=Po(1,1),this.j=ms()}e(I0,Qe),e(N0,Mn),e(O0,Xs),O0.prototype.Va=function(t,e){var o;this.R&&(o=Ps(this.T,this.R.slice()),t.translate(o[0],o[1]),t.rotate(e)),t.fill(),this.R&&t.setTransform.apply(t,this.na)},O0.prototype.La=function(t,e,o,i,r){B0(this,t,e,o,i,r,this.a,void 0,void 0)},O0.prototype.Te=Y,O0.prototype.Sf=function(){return this.Ua},e(W0,O0),W0.prototype.qc=function(t,e){var o,i;this.M&&(G0(this,e),o=t.ga(),i=this.coordinates.length,t=U0(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]),V0(this,e))},W0.prototype.oc=function(t,e){var o,i;this.M&&(G0(this,e),o=t.ga(),i=this.coordinates.length,t=U0(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]),V0(this,e))},W0.prototype.Te=function(){X0(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},W0.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(Z0,O0),(r=Z0.prototype).Sf=function(){return this.f||(this.f=ut(this.Ua),0<this.c&<(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},r.mc=function(t,e){var o=this.i,i=o.lineWidth;void 0!==o.strokeStyle&&void 0!==i&&(z0(this),G0(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),K0(this,o=t.ga(),0,o.length,t.qa()),this.b.push([12]),V0(this,e))},r.nc=function(t,e){var o=this.i,i=o.lineWidth;if(void 0!==o.strokeStyle&&void 0!==i){z0(this),G0(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),o=t.Bb(),i=t.ga(),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=K0(this,i,r,o[n],t);this.b.push([12]),V0(this,e)}},r.Te=function(){this.i.eg!=this.coordinates.length&&this.a.push([12]),X0(this),this.i=null},r.Ma=function(t,e){t=e.a,this.i.strokeStyle=Mo(t||Gs),t=e.f,this.i.lineCap=void 0!==t?t:"round",t=e.i,this.i.lineDash=t||Us,t=e.g,this.i.lineDashOffset=t||0,t=e.j,this.i.lineJoin=void 0!==t?t:"round",t=e.c,this.i.lineWidth=void 0!==t?t:1,e=e.o,this.i.miterLimit=void 0!==e?e:10,this.i.lineWidth>this.c&&(this.c=this.i.lineWidth,this.f=null)},e(Y0,O0),(r=Y0.prototype).Zb=function(t,e){var o,i=this.i,r=i.strokeStyle;void 0===i.fillStyle&&void 0===r||(q0(this,t),G0(this,e),this.b.push([9,bo(Os)]),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,U0(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)),V0(this,e))},r.rc=function(t,e){var o=this.i,o=(q0(this,t),G0(this,e),this.b.push([9,bo(Os)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]),t.Bb());H0(this,t.ec(),0,o,t.qa()),V0(this,e)},r.pc=function(t,e){var o=this.i,i=o.strokeStyle;if(void 0!==o.fillStyle||void 0!==i){q0(this,t),G0(this,e),this.b.push([9,bo(Os)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]),o=t.c,i=Il(t),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=H0(this,i,r,o[n],t);V0(this,e)}},r.Te=function(){X0(this),this.i=null;var t=this.fb;if(t)for(var e=this.coordinates,o=0,i=e.length;o<i;++o)e[o]=t*Math.round(e[o]/t)},r.Sf=function(){return this.f||(this.f=ut(this.Ua),0<this.c&<(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},r.Ma=function(t,e){var o=this.i;t?(t=t.b,o.fillStyle=Mo(t||Os)):o.fillStyle=void 0,e?(t=e.a,o.strokeStyle=Mo(t||Gs),t=e.f,o.lineCap=void 0!==t?t:"round",t=e.i,o.lineDash=t?t.slice():Us,t=e.g,o.lineDashOffset=t||0,t=e.j,o.lineJoin=void 0!==t?t:"round",t=e.c,o.lineWidth=void 0!==t?t:1,e=e.o,o.miterLimit=void 0!==e?e:10,o.lineWidth>this.c&&(this.c=o.lineWidth,this.f=null)):(o.strokeStyle=void 0,o.lineCap=void 0,o.lineDash=null,o.lineDashOffset=void 0,o.lineJoin=void 0,o.lineWidth=void 0,o.miterLimit=void 0)},e(J0,O0),J0.prototype.yc=function(t,e,o,i,r,n){var s,a;""!==this.Ia&&this.g&&(this.i||this.f)&&(this.i&&(r=this.i,(s=this.S)&&s.fillStyle==r.fillStyle||(a=[9,r.fillStyle],this.a.push(a),this.b.push(a),s?s.fillStyle=r.fillStyle:this.S={fillStyle:r.fillStyle})),this.f&&(r=this.f,(s=this.D)&&s.lineCap==r.lineCap&&s.lineDash==r.lineDash&&s.lineDashOffset==r.lineDashOffset&&s.lineJoin==r.lineJoin&&s.lineWidth==r.lineWidth&&s.miterLimit==r.miterLimit&&s.strokeStyle==r.strokeStyle||(a=[10,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset,!1,1],this.a.push(a),this.b.push(a),s?(s.lineCap=r.lineCap,s.lineDash=r.lineDash,s.lineDashOffset=r.lineDashOffset,s.lineJoin=r.lineJoin,s.lineWidth=r.lineWidth,s.miterLimit=r.miterLimit,s.strokeStyle=r.strokeStyle):this.D={lineCap:r.lineCap,lineDash:r.lineDash,lineDashOffset:r.lineDashOffset,lineJoin:r.lineJoin,lineWidth:r.lineWidth,miterLimit:r.miterLimit,strokeStyle:r.strokeStyle})),r=this.g,(s=this.C)&&s.font==r.font&&s.textAlign==r.textAlign&&s.textBaseline==r.textBaseline||(a=[11,r.font,r.textAlign,r.textBaseline],this.a.push(a),this.b.push(a),s?(s.font=r.font,s.textAlign=r.textAlign,s.textBaseline=r.textBaseline):this.C={font:r.font,textAlign:r.textAlign,textBaseline:r.textBaseline}),G0(this,n),t=[5,r=this.coordinates.length,t=U0(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),V0(this,n))},J0.prototype.Cb=function(t){var e,o,i,r,n,s,a,p,h;t?((o=t.Fa())?(o=Mo((o=o.b)||Os),this.i?this.i.fillStyle=o:this.i={fillStyle:o}):this.i=null,(s=t.Ga())?(o=s.a,i=s.f,r=s.i,a=s.g,p=s.j,n=s.c,s=s.o,i=void 0!==i?i:"round",r=r?r.slice():Us,a=void 0!==a?a:0,p=void 0!==p?p:"round",n=void 0!==n?n:1,s=void 0!==s?s:10,o=Mo(o||Gs),this.f?((h=this.f).lineCap=i,h.lineDash=r,h.lineDashOffset=a,h.lineJoin=p,h.lineWidth=n,h.miterLimit=s,h.strokeStyle=o):this.f={lineCap:i,lineDash:r,lineDashOffset:a,lineJoin:p,lineWidth:n,miterLimit:s,strokeStyle:o}):this.f=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,h=t.j,t=void 0!==e?e:"10px sans-serif",p=void 0!==p?p:"center",h=void 0!==h?h:"middle",this.g?((e=this.g).font=t,e.textAlign=p,e.textBaseline=h):this.g={font:t,textAlign:p,textBaseline:h},this.Ia=void 0!==a?a:"",this.j=void 0!==o?o:0,this.o=void 0!==i?i:0,this.l=void 0!==r&&r,this.v=void 0!==n?n:0,this.u=void 0!==s?s:1):this.Ia=""},e(_0,$s);var $0={0:[[!0]]};function Q0(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 tv(t){for(var e in t.a){var o,i=t.a[e];for(o in i)i[o].Te()}}function ev(t,e){var o=t.c,i=(t=o[0],o[1]),r=o[2];return gr(t=[t,i,t,o=o[3],r,o,r,i],0,8,2,e,t),t}_0.prototype.Ea=function(t,e,o,i,r,n){var s,a,p,h=2*(i=Math.round(i))+1,l=js(this.j,i+.5,i+.5,1/e,-1/e,-o,-t[0],-t[1]),u=this.g,c=(u.canvas.width!==h||u.canvas.height!==h?(u.canvas.width=h,u.canvas.height=h):u.clearRect(0,0,h,h),void 0!==this.f&&(Pt(s=vt(),t),lt(s,e*(this.f+i),s)),function(t){if(void 0!==$0[t])return $0[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;)Q0(o,t+e,t+i),Q0(o,t+i,t+e),Q0(o,t-i,t+e),Q0(o,t-e,t+i),Q0(o,t-e,t-i),Q0(o,t-i,t-e),Q0(o,t+i,t-e),Q0(o,t+e,t-i),0<2*((r+=1+2*++i)-e)+1&&(r+=1-2*--e);return $0[t]=o}(i)),f=this,y=u,g=l,d=o,v=r,b=function(t){for(var e=u.getImageData(0,0,h,h).data,o=0;o<h;o++)for(var i=0;i<h;i++)if(c[o][i]&&0<e[4*(i*h+o)+3])return(t=n(t))||void u.clearRect(0,0,h,h)},m=s,w=Object.keys(f.a).map(Number),x=(w.sort(function(t,e){return e-t}),0);for(a=w.length;x<a;++x){var S=f.a[w[x].toString()];for(p=_s.length-1;0<=p;--p){var M=S[_s[p]];if(void 0!==M&&(M=B0(M,y,1,g,d,v,M.b,b,m)))return M}}},_0.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 ov[e](this.v,this.c,this.l,this.o),t[e]=o),o},_0.prototype.i=function(){return Zt(this.a)},_0.prototype.La=function(t,e,o,i,r,n){var s=Object.keys(this.a).map(Number),a=(s.sort(G),ev(this,o));t.save(),t.beginPath(),t.moveTo(a[0],a[1]),t.lineTo(a[2],a[3]),t.lineTo(a[4],a[5]),t.lineTo(a[6],a[7]),t.clip(),n=n||_s;for(var a=0,p=s.length;a<p;++a)for(var h=this.a[s[a].toString()],l=0,u=n.length;l<u;++l){var c=h[n[l]];void 0!==c&&c.La(t,e,o,i,r)}t.restore()};var ov={Circle:Y0,Image:W0,LineString:Z0,Polygon:Y0,Text:J0};function iv(t){io.call(this),this.a=t}function rv(t,e){var o=e.getState();return 2!=o&&3!=o&&d(e,"change",t.na,t),0==o&&(e.load(),o=e.getState()),2==o}function nv(t){var e=t.a;e.Mb()&&"ready"==e.$f()&&t.s()}function sv(t,e){e.Ki()&&t.postRenderFunctions.push(function(t,e,o){e=U(t).toString(),t.fd(o.viewState.projection,o.usedTiles[e])}.bind(null,e))}function av(t,e){if(e)for(var o=0,i=e.length;o<i;++o){var r=e[o];t[U(r).toString()]=r}}function pv(t,e){void 0!==(e=e.D)&&("string"==typeof e?t.logos[e]="":e&&(O("string"==typeof e.href,44),O("string"==typeof e.src,45),t.logos[e.src]=e.href))}function hv(t,e,o,i){e=U(e).toString(),o=o.toString(),e in t?o in t[e]?(t=t[e][o],i.ca<t.ca&&(t.ca=i.ca),i.$>t.$&&(t.$=i.$),i.da<t.da&&(t.da=i.da),i.ia>t.ia&&(t.ia=i.ia)):t[e][o]=i:(t[e]={},t[e][o]=i)}function lv(t,e,o,i,r,n,s,a,p,h){for(var l,u=U(e).toString(),c=(u in t.wantedTiles||(t.wantedTiles[u]={}),t.wantedTiles[u]),f=(t=t.tileQueue,o.minZoom),y=s;f<=y;--y)for(var g,d=Ie(o,n,y,d),v=o.Da(y),b=d.ca;b<=d.$;++b)for(l=d.da;l<=d.ia;++l)s-y<=a?(0==(g=e.Nc(y,b,l,i,r)).getState()&&(c[g.bb()]=!0,g.bb()in t.a||t.f([g,u,Ne(o,g.ta),v])),p&&p.call(h,g)):e.Ug(y,b,l,r)}function uv(t){iv.call(this,t),this.fa=ms()}function cv(t,e,o){var i=e.pixelRatio,r=e.size[0]*i,n=e.size[1]*i,s=e.viewState.rotation,a=Ft(o),p=kt(o),h=Ct(o);o=jt(o),Ps(e.coordinateToPixelTransform,a),Ps(e.coordinateToPixelTransform,p),Ps(e.coordinateToPixelTransform,h),Ps(e.coordinateToPixelTransform,o),t.save(),Bs(t,-s,r/2,n/2),t.beginPath(),t.moveTo(a[0]*i,a[1]*i),t.lineTo(p[0]*i,p[1]*i),t.lineTo(h[0]*i,h[1]*i),t.lineTo(o[0]*i,o[1]*i),t.clip(),Bs(t,s,r/2,n/2)}function fv(t,e,o,i,r){var n,s,a,p=t.a;oo(p,e)&&(n=i.size[0]*i.pixelRatio,s=i.size[1]*i.pixelRatio,Bs(o,-(a=i.viewState.rotation),n/2,s/2),t=r||yv(t,i,0),p.b(new Ds(e,new Vs(o,i.pixelRatio,i.extent,t,i.viewState.rotation),i,o,null)),Bs(o,a,n/2,s/2))}function yv(t,e,o){var i=e.viewState,r=e.pixelRatio,n=r/i.resolution;return js(t.fa,r*e.size[0]/2,r*e.size[1]/2,n,-n,-i.rotation,-i.center[0]+o,-i.center[1])}function gv(t,e){return U(t)-U(e)}function dv(t,e){return(t=.5*t/e)*t}function vv(t,e,o,i,r,n){var s,a,p=!1;return(s=o.Y())&&(2==(a=s.Ye())||3==a?s.Bj(r,n):(0==a&&s.load(),s.Nh(r,n),p=!0)),(r=(0,o.Za)(e))&&(i=r.Vd(i),(0,bv[i.U()])(t,i,o,e)),p}e(iv,io),iv.prototype.Ea=Y,iv.prototype.Ue=fr,iv.prototype.Nf=function(o,i,r){return function(e,t){return Cm(o,i,e,t,function(t){r[e]||(r[e]={}),r[e][t.ta.toString()]=t})}},iv.prototype.na=function(t){2===t.target.getState()&&nv(this)},e(uv,iv),uv.prototype.u=function(t,e,o,i){if(this.Ea(t,e,0,cr,this))return o.call(i,this.a,null)},uv.prototype.ef=function(t,e,o,i){fv(this,"postcompose",t,e,i)};var bv={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(jl(e),0,2,2,e,i))},Polygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.rc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(zr(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=Cl(e),t.yc(o,0,o.length,2,e,i))},MultiPolygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(s||n)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.pc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=Rl(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,bv[e[r].U()])(t,e[r],o,i)},Circle:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Circle")).Ma(n,s),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 mv(t){uv.call(this,t),this.c=!1,this.v=-1,this.l=NaN,this.j=vt(),this.f=this.o=null,this.g=Po()}function wv(){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(mv,uv),mv.prototype.S=function(t,e,o){var i=t.extent,r=t.pixelRatio,n=e.Je?t.skippedFeatureUids:{},s=(a=t.viewState).projection,a=a.rotation,p=s.G(),h=this.a.ha(),l=yv(this,t,0),u=(fv(this,"precompose",o,t,l),e.extent),c=void 0!==u;if(c&&cv(o,t,u),(u=this.f)&&!u.i()){var f,y,g=0,d=0,v=(f=(y=oo(this.a,"render")?(y=o.canvas.width,f=o.canvas.height,a&&(g=((v=Math.round(Math.sqrt(y*y+f*f)))-y)/2,d=(v-f)/2,y=f=v),this.g.canvas.width=y,this.g.canvas.height=f,this.g):o).globalAlpha,y.globalAlpha=e.opacity,y!=o&&y.translate(g,d),t.size[0]*r),b=t.size[1]*r;if(Bs(y,-a,v/2,b/2),u.La(y,r,l,a,n),h.u&&s.i&&!yt(p,i)){for(var s=i[0],h=Dt(p),m=0;s<p[0];)l=yv(this,t,l=h*--m),u.La(y,r,l,a,n),s+=h;for(m=0,s=i[2];s>p[2];)l=yv(this,t,l=h*++m),u.La(y,r,l,a,n),s-=h;l=yv(this,t,0)}Bs(y,a,v/2,b/2),y!=o&&(fv(this,"render",y,t,l),o.drawImage(y.canvas,-g,-d),y.translate(-g,-d)),y.globalAlpha=f}c&&o.restore(),this.ef(o,t,e,l)},mv.prototype.Ea=function(t,e,o,i,r){var n,s;if(this.f)return n=this.a,s={},this.f.Ea(t,e.viewState.resolution,e.viewState.rotation,o,{},function(t){var e=U(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})},mv.prototype.D=function(){nv(this)},mv.prototype.sd=function(t){function e(t){var e,o=t.Lc();if(o?e=o.call(t,n):(o=p.f)&&(e=o(t,n)),e){if(o=!1,Array.isArray(e))for(var i=0,r=e.length;i<r;++i)o=vv(a,t,e[i],dv(n,s),this.D,this)||o;else o=vv(a,t,e,dv(n,s),this.D,this)||o;t=o,this.c=this.c||t}}var o,n,s,i,a,r,p=this.a,h=p.ha(),l=(av(t.attributions,h.j),pv(t,h),t.viewHints[0]),u=t.viewHints[1],c=p.T,f=p.na;return!this.c&&!c&&l||!f&&u||(o=t.extent,l=(f=t.viewState).projection,n=f.resolution,s=t.pixelRatio,u=p.i,i=p.c,void 0===(c=p.get(jv))&&(c=gv),o=lt(o,i*n),i=f.projection.G(),h.u&&f.projection.i&&!yt(i,t.extent)&&(t=Math.max(Dt(o)/2,Dt(i)),o[0]=i[0]-t,o[2]=i[2]+t),!this.c&&this.l==n&&this.v==u&&this.o==c&&yt(this.j,o))||(this.f=null,this.c=!1,a=new _0(.5*n/s,o,n,h.T,p.c),h.Yd(o,n,l),c?(r=[],h.$b(o,function(t){r.push(t)},this),r.sort(c),r.forEach(e,this)):h.$b(o,e,this),tv(a),this.l=n,this.v=u,this.o=c,this.j=o,this.f=a),!0},e(wv,ta);var xv=new wv;function Sv(){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(Sv,ea);var Mv=new Sv;function Pv(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 Av(t,e){iv.call(this,e),this.c=t,this.T=new da([-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=ms(),this.S=ms(),this.C=aa(),this.u=null}function Ev(t,e,o,i){var r;oo(t=t.a,e)&&(r=i.viewState,t.b(new Ds(e,new sh(o,r.center,r.resolution,r.rotation,i.size,i.extent,i.pixelRatio),i,null,o)))}function Tv(t,e){Av.call(this,t,e),this.l=!1,this.R=-1,this.I=NaN,this.D=vt(),this.o=this.f=this.B=null}function s(t){var e=Xt({},t=t||{});delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,ys.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(Av,iv),Av.prototype.Gi=function(t,e,o){Ev(this,"precompose",o,t),Ea(o,34962,this.T);var i,r=o.b,n=La(o,xv,Mv);this.u?i=this.u:this.u=i=new Pv(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,pa(this.C,this.v)),r.uniformMatrix4fv(i.c,!1,pa(this.C,this.S)),r.uniform1f(i.i,e.opacity),r.bindTexture(3553,this.Ib),r.drawArrays(5,0,4),Ev(this,"postcompose",o,t)},Av.prototype.mg=function(){this.g=this.Ib=null,this.j=void 0},e(Tv,Av),(r=Tv.prototype).Gi=function(t,e,o){this.o=e;var i=t.viewState,r=this.f,n=t.size,s=t.pixelRatio,a=this.c.i;r&&!r.i()&&(a.enable(a.SCISSOR_TEST),a.scissor(0,0,n[0]*s,n[1]*s),r.La(o,i.center,i.resolution,i.rotation,n,s,e.opacity,e.Je?t.skippedFeatureUids:{}),a.disable(a.SCISSOR_TEST))},r.ka=function(){var t=this.f;t&&(oh(t,this.c.f)(),this.f=null),Av.prototype.ka.call(this)},r.Ea=function(t,e,o,i,r){var n,s;if(this.f&&this.o)return o=e.viewState,n=this.a,s={},this.f.Ea(t,this.c.f,o.center,o.resolution,o.rotation,e.size,e.pixelRatio,this.o.opacity,{},function(t){var e=U(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})},r.Ue=function(t,e){var o,i,r,n,s,a,p;return!(!this.f||!this.o)&&(n=e.viewState,o=this.f,t=t,i=this.c.f,r=n.resolution,n=n.rotation,s=e.pixelRatio,a=this.o.opacity,e=e.skippedFeatureUids,(p=i.b).bindFramebuffer(p.FRAMEBUFFER,ja(i)),void 0!==ih(o,i,t,r,n,s,a,e,function(){var t=new Uint8Array(4);return p.readPixels(0,0,1,1,p.RGBA,p.UNSIGNED_BYTE,t),0<t[3]},!1))},r.lg=function(t,e,o,i){if(t=Ps(e.pixelToCoordinateTransform,t.slice()),this.Ue(t,e))return o.call(i,this.a,null)},r.Hi=function(){nv(this)},r.ng=function(t,e,o){function i(t){var e,o=t.Lc();if(o?e=o.call(t,h):(o=r.f)&&(e=o(t,h)),e){if(o=!1,Array.isArray(e))for(var i=e.length-1;0<=i;--i)o=vv(y,t,e[i],dv(h,l),this.Hi,this)||o;else o=vv(y,t,e,dv(h,l),this.Hi,this)||o;t=o,this.l=this.l||t}}var r=this.a,n=(e=r.ha(),av(t.attributions,e.j),pv(t,e),t.viewHints[0]),s=t.viewHints[1],a=r.T,p=r.na;if(!(!this.l&&!a&&n||!p&&s)){var s=t.extent,n=(a=t.viewState).projection,h=a.resolution,l=t.pixelRatio,a=r.i,u=r.c,p=r.get(jv);if(void 0===p&&(p=gv),s=lt(s,u*h),this.l||this.I!=h||this.R!=a||this.B!=p||!yt(this.D,s)){this.f&&t.postRenderFunctions.push(oh(this.f,o)),this.l=!1;var c,f,y=new eh(.5*h/l,s,r.c),g=(e.Yd(s,h,n),p?(c=[],e.$b(s,function(t){c.push(t)},this),c.sort(p),c.forEach(i,this)):e.$b(s,i,this),y),d=o;for(f in g.a){var v,b=g.a[f];for(v in b)b[v].Db(d)}this.I=h,this.R=a,this.B=p,this.D=s,this.f=y}}return!0},e(s,ys),s.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new mv(this):"webgl"===o&&(e=new Tv(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:$h,this.f=null===t?void 0:Jh(this.u),this.s()};var jv="renderOrder";function Cv(){return[[-1/0,-1/0,1/0,1/0]]}function Lv(t){ro.call(this),this.c=v(t.projection),this.j=Rv(t.attributions),this.D=t.logo,this.na=void 0!==t.state?t.state:"ready",this.u=void 0!==t.wrapX&&t.wrapX}function Rv(t){if("string"==typeof t)return[new Be({html:t})];if(t instanceof Be)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 Be({html:r}):r}return o}return null}function Iv(t,e){t.na=e,t.s()}function a(t){Lv.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.B=Y,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&&(O(this.C,7),this.B=ml(this.I,this.C)),this.fa=t.strategy||Cv;var e,o,i,r,n=void 0===t.useSpatialIndex||t.useSpatialIndex;this.a=n?new Fp:null,this.R=new Fp,this.g={},this.o={},this.l={},this.v={},this.f=null,t.features instanceof ho?o=(e=t.features).a:Array.isArray(t.features)&&(o=t.features),n||(e=e||new ho(o)),o&&kv(this,o),e&&(i=e,r=!1,d(t=this,"addfeature",function(t){r||(r=!0,i.push(t.feature),r=!1)}),d(t,"removefeature",function(t){r||(r=!0,i.remove(t.feature),r=!1)}),d(i,"add",function(t){r||(r=!0,this.yb(t.element),r=!1)},t),d(i,"remove",function(t){r||(r=!0,this.Gb(t.element),r=!1)},t),t.f=i)}function Nv(t,e,o){t.v[e]=[d(o,"change",t.Oi,t),d(o,"propertychange",t.Oi,t)]}function Fv(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:(O(!(e in t.l),30),t.l[e]=o),i}function kv(t,e){for(var o=[],i=[],r=[],n=0,s=e.length;n<s;n++){var a=e[n],p=U(a).toString();Fv(t,p,a)&&i.push(a)}for(n=0,s=i.length;n<s;n++)Nv(t,p=U(a=i[n]).toString(),a),(e=a.V())?(p=e.G(),o.push(p),r.push(a)):t.g[p]=a;for(t.a&&t.a.load(o,r),n=0,s=i.length;n<s;n++)t.b(new Ov("addfeature",i[n]))}function Dv(t,e){for(var o in t.o)if(t.o[o]===e){delete t.o[o];break}}function Ov(t,e){Qe.call(this,t),this.feature=e}function Uv(t){var e;Mn.call(this,{handleDownEvent:Bv,handleEvent:Gv,handleUpEvent:Xv}),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=Hv:"LineString"===n||"MultiLineString"===n?e=qv:"Polygon"===n||"MultiPolygon"===n?e=Jv:"Circle"===n&&(e=_v),e),this.Sa=t.minPoints||(this.g===Jv?3:2),this.va=t.maxPoints||1/0,this.Cf=t.finishCondition||cr;var o,i,r,n=(n=t.geometryFunction)||("Circle"===this.R?function(t,e){return(e=e||new h0([NaN,NaN])).Ng(t[0],Math.sqrt(pr(t[0],t[1]))),e}:((i=this.g)===Hv?o=m:i===qv?o=S:i===Jv&&(o=w),function(t,e){return e?i===Jv?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 a({useSpatialIndex:!1,wrapX:t.wrapX||!1}),style:t.style||(r=Qh(),function(t){return r[t.V().U()]})}),this.xb=t.geometryName,this.vk=t.condition||bn,this.Df=t.freehand?cr:t.freehandCondition||mn,d(this,so("active"),this.ri,this)}function Gv(t){this.u=this.g!==Hv&&this.Df(t);var e=!this.u;return this.u&&"pointerdrag"===t.type&&null!==this.j?(Kv(this,t),e=!1):"pointermove"===t.type?e=Vv(this,t):"dblclick"===t.type&&(e=!1),An.call(this,t)&&e}function Bv(t){return this.T=!this.u,this.u?(this.fa=t.pixel,this.l||Zv(this,t),!0):!!this.vk(t)&&(this.fa=t.pixel,!0)}function Xv(t){var e=!0,o=(Vv(this,t),this.g===_v);return this.T?(this.l?this.u||o?this.Pd():Wv(this,t)?this.Cf(t)&&this.Pd():Kv(this,t):(Zv(this,t),this.g===Hv&&this.Pd()),e=!1):this.u&&(this.l=null,zv(this)),e}function Vv(t,e){var o,i,r;return t.fa&&(!t.u&&t.T||t.u&&!t.T)&&(i=t.fa,o=e.pixel,r=(r=i[0]-o[0])*r+(i=i[1]-o[1])*i,t.T=t.u?r>t.ad:r<=t.ad),t.l?(r=e.coordinate,i=t.j.V(),t.g===Hv?o=t.a:t.g===Jv?(o=(o=t.a[0])[o.length-1],Wv(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 w&&t.g!==Jv?(t.C||(t.C=new x(new S(null))),r=i.Ch(0),(e=t.C.V()).ba(r.ja,r.ga())):t.I&&(e=t.C.V()).ma(t.I),Yv(t)):(e=e.coordinate.slice(),t.B?t.B.V().ma(e):(t.B=new x(new m(e)),Yv(t))),!0}function Wv(t,e){var o=!1;if(t.j){var i=!1,r=[t.l];if(t.g===qv?i=t.a.length>t.Sa:t.g===Jv&&(i=t.a[0].length>t.Sa,r=[t.a[0][0],t.a[0][t.a[0].length-2]]),i)for(var i=e.map,n=0,s=r.length;n<s;n++){var a=r[n],p=i.Ja(a),h=e.pixel,o=h[0]-p[0],p=h[1]-p[1];if(o=Math.sqrt(o*o+p*p)<=(t.u?1:t.wk)){t.l=a;break}}}return o}function Zv(t,e){e=e.coordinate,t.l=e,t.g===Hv?t.a=e.slice():t.g===Jv?(t.a=[[e.slice(),e.slice()]],t.I=t.a[0]):(t.a=[e.slice(),e.slice()],t.g===_v&&(t.I=t.a)),t.I&&(t.C=new x(new S(t.I))),e=t.Za(t.a),t.j=new x,t.xb&&t.j.Tc(t.xb),t.j.Ra(e),Yv(t),t.b(new $v("drawstart",t.j))}function Kv(t,e){e=e.coordinate;var o,i,r=t.j.V();t.g===qv?(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===Jv&&((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)),Yv(t),o&&t.Pd()}function zv(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 Yv(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(Lv,ro),(r=Lv.prototype).Ea=Y,r.ya=function(){return this.j},r.xa=function(){return this.D},r.za=function(){return this.c},r.getState=function(){return this.na},r.sa=function(){this.s()},r.ua=function(t){this.j=Rv(t),this.s()},e(a,Lv),(r=a.prototype).yb=function(t){var e,o=U(t).toString();Fv(this,o,t)&&(Nv(this,o,t),(e=t.V())?(o=e.G(),this.a&&this.a.Ca(o,t)):this.g[o]=t,this.b(new Ov("addfeature",t))),this.s()},r.cd=function(t){kv(this,t),this.s()},r.clear=function(t){if(t){for(var e in this.v)this.v[e].forEach(qe);this.f||(this.v={},this.o={},this.l={})}else if(this.a)for(var o in this.a.forEach(this.Ig,this),this.g)this.Ig(this.g[o]);this.f&&this.f.clear(),this.a&&this.a.clear(),this.R.clear(),this.g={},this.b(new Ov("clear")),this.s()},r.sh=function(t,e){return this.a?this.a.forEach(t,e):this.f?this.f.forEach(t,e):void 0},r.$b=function(t,e,o){return this.a?Up(this.a,t,e,o):this.f?this.f.forEach(e,o):void 0},r.th=function(e,o,i){return this.$b(e,function(t){if(t.V().Xa(e)&&(t=o.call(i,t)))return t})},r.Ah=function(){return this.f},r.Xe=function(){var t;return this.f?t=this.f.a:this.a&&(t=Dp(this.a),Zt(this.g)||X(t,Wt(this.g))),t},r.zh=function(t){var e,o,i=[];return e=t,o=function(t){i.push(t)},this.$b([e[0],e[1],e[0],e[1]],function(t){if(t.V().sb(e))return o.call(void 0,t)}),i},r.Uf=function(t){return Op(this.a,t)},r.vh=function(t,e){var i=t[0],r=t[1],n=null,s=[NaN,NaN],a=1/0,p=[-1/0,-1/0,1/0,1/0],h=e||cr;return Up(this.a,p,function(t){var e,o;h(t)&&(e=t.V(),o=a,(a=e.Kb(i,r,s,a))<o)&&(n=t,t=Math.sqrt(a),p[0]=i-t,p[1]=r-t,p[2]=i+t,p[3]=r+t)}),n},r.G=function(t){return this.a.G(t)},r.yh=function(t){return void 0!==(t=this.o[t.toString()])?t:null},r.Mi=function(){return this.C},r.Ni=function(){return this.I},r.Oi=function(t){var e=U(t=t.target).toString(),o=t.V();o?(o=o.G(),e in this.g?(delete this.g[e],this.a&&this.a.Ca(o,t)):this.a&&kp(this.a,o,t)):e in this.g||(this.a&&this.a.remove(t),this.g[e]=t),void 0!==(o=t.a)?(o=o.toString(),e in this.l?(delete this.l[e],this.o[o]=t):this.o[o]!==t&&(Dv(this,t),this.o[o]=t)):e in this.l||(Dv(this,t),this.l[e]=t),this.s(),this.b(new Ov("changefeature",t))},r.Yd=function(t,e,o){for(var i=this.R,r=0,n=(t=this.fa(t,e)).length;r<n;++r){var s=t[r];Up(i,s,function(t){return yt(t.extent,s)})||(this.B.call(this,s,e,o),i.Ca(s,{extent:s.slice()}))}},r.Gb=function(t){var e=U(t).toString();e in this.g?delete this.g[e]:this.a&&this.a.remove(t),this.Ig(t),this.s()},r.Ig=function(t){var e=U(t).toString(),o=(this.v[e].forEach(qe),delete this.v[e],t.a);void 0!==o?delete this.o[o.toString()]:delete this.l[e],this.b(new Ov("removefeature",t))},e(Ov,Qe),e(Uv,Mn),(r=Uv.prototype).setMap=function(t){Mn.prototype.setMap.call(this,t),this.ri()},r.Op=function(){var t,e;this.j&&(t=this.j.V(),this.g===qv?((e=this.a).splice(-2,1),this.Za(e,t),2<=e.length&&(this.l=e[e.length-2].slice())):this.g===Jv&&((e=this.a[0]).splice(-2,1),this.C.V().ma(e),this.Za(this.a,t)),0===e.length&&(this.l=null),Yv(this))},r.Pd=function(){var t=zv(this),e=this.a,o=t.V();this.g===qv?(e.pop(),this.Za(e,o)):this.g===Jv&&(e[0].pop(),this.Za(e,o),e=o.X()),"MultiPoint"===this.R?t.Ra(new P([e])):"MultiLineString"===this.R?t.Ra(new M([e])):"MultiPolygon"===this.R&&t.Ra(new f([e])),this.b(new $v("drawend",t)),this.$a&&this.$a.push(t),this.Yb&&this.Yb.yb(t)},r.vn=function(t){var e=t.V();this.j=t,this.a=e.X(),t=this.a[this.a.length-1],this.l=t.slice(),this.a.push(t.slice()),Yv(this),this.b(new $v("drawstart",this.j))},r.Xc=fr,r.ri=function(){var t=this.v,e=this.c();t&&e||zv(this),this.pa.setMap(e?t:null)};var Hv="Point",qv="LineString",Jv="Polygon",_v="Circle";function $v(t,e){Qe.call(this,t),this.feature=e}function Qv(t){var e,o;this.a=this.j=null,this.C=!1,this.B=this.l=null,(t=t||{}).extent&&this.g(t.extent),Mn.call(this,{handleDownEvent:eb,handleDragEvent:ob,handleEvent:tb,handleUpEvent:ib}),this.u=new s({source:new a({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.boxStyle||(e=Qh(),function(){return e.Polygon}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.I=new s({source:new a({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.pointerStyle||(o=Qh(),function(){return o.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0})}function tb(t){var e,o;return!(t instanceof mi&&("pointermove"!=t.type||this.D||ab(this,sb(this,e=t.pixel,o=t.map)||o.Wa(e)),An.call(this,t),1))}function eb(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=sb(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=rb(e(t)):null!==o?this.a=nb(e([o,r[1]]),e([o,r[3]])):null!==i&&(this.a=nb(e([r[0],i]),e([r[2],i])))):(t=i.Wa(o),this.g([t[0],t[1],t[0],t[1]]),this.a=rb(t)),!0}function ob(t){return this.a&&(t=t.coordinate,this.g(this.a(t)),ab(this,t)),!0}function ib(){this.a=null;var t=this.G();return t&&Tt(t)||this.g(null),!1}function rb(e){return function(t){return ht([e,t])}}function nb(e,o){return e[0]==o[0]?function(t){return ht([e,[t[0],o[1]]])}:e[1]==o[1]?function(t){return ht([e,[o[0],t[1]]])}:null}function sb(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 lr(i,t)-lr(i,e)});var r=r[0],n=or(i,r),s=o.Ja(n);if(hr(e,s)<=10)return e=o.Ja(r[0]),o=o.Ja(r[1]),e=pr(s,e),o=pr(s,o),t.C=Math.sqrt(Math.min(e,o))<=10,n=t.C?o<e?r[1]:r[0]:n}return null}function ab(t,e){var o=t.B;o?o.V().ma(e):(o=new x(new m(e)),t.B=o,t.I.ha().yb(o))}function pb(t){Qe.call(this,hb),this.b=t}e($v,Qe),e(Qv,Mn),Qv.prototype.setMap=function(t){this.u.setMap(t),this.I.setMap(t),Mn.prototype.setMap.call(this,t)},Qv.prototype.G=function(){return this.j},Qv.prototype.g=function(t){this.j=t||null;var e=this.l;e?t?e.Ra(Hr(t)):e.Ra(void 0):(this.l=e=new x(t?Hr(t):{}),this.u.ha().yb(e)),this.b(new pb(this.j))},e(pb,Qe);var hb="extentchanged";function lb(t){var e;Mn.call(this,{handleDownEvent:gb,handleDragEvent:db,handleEvent:bb,handleUpEvent:vb}),this.ad=t.condition||Sn,this.$a=function(t){return bn(t)&&vn(t)},this.xb=t.deleteCondition||this.$a,this.Yb=t.insertVertexCondition||cr,this.Sa=this.g=null,this.va=[0,0],this.C=this.I=!1,this.a=new Fp,this.fa=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.l=this.pa=!1,this.j=[],this.B=new s({source:new a({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style||(e=Qh(),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),d(this.u,"add",this.wn,this),d(this.u,"remove",this.xn,this),this.R=null}function ub(t,e){t.C||(t.C=!0,t.b(new Mb("modifystart",t.u,e)))}function cb(t,e){var o=t,i=e,r=(o=o.a,[]);o.forEach(function(t){i===t.feature&&r.push(t)});for(var n=r.length-1;0<=n;--n)o.remove(r[n]);t.g&&!t.u.dc()&&(t.B.ha().Gb(t.g),t.g=null),He(e,"change",t.si,t)}function fb(t,e){var o=t.g;o?o.V().ma(e):(o=new x(new m(e)),t.g=o,t.B.ha().yb(o))}function yb(t,e){return t.index-e.index}function gb(t){if(!this.ad(t))return!1;mb(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=ht([o=o.V().X()]),n={};(r=Op(this.a,r)).sort(yb);for(var s=0,a=r.length;s<a;++s){var p=r[s],h=p.la,l=U(p.feature),u=p.depth;u&&(l+="-"+u.join("-")),n[l]||(n[l]=Array(2)),"Circle"===p.geometry.U()&&1===p.index?nr(h=xb(e,p),o)&&!n[l][0]&&(this.j.push([p,0]),n[l][0]=p):nr(h[0],o)&&!n[l][0]?(this.j.push([p,0]),n[l][0]=p):nr(h[1],o)&&!n[l][1]?("LineString"===p.geometry.U()||"MultiLineString"===p.geometry.U())&&n[l][0]&&0===n[l][0].index||(this.j.push([p,1]),n[l][1]=p):this.Yb(t)&&U(h)in this.Sa&&!n[l][0]&&!n[l][1]&&i.push([p,o])}for(i.length&&ub(this,t),t=i.length-1;0<=t;--t)this.bm.apply(this,i[t])}return!!this.g}function db(t){this.I=!1,ub(this,t),t=t.coordinate;for(var e=0,o=this.j.length;e<o;++e){for(var i,r=(p=this.j[e])[0],n=r.depth,s=r.geometry,a=r.la,p=p[1];t.length<s.qa();)t.push(a[p][t.length]);switch(s.U()){case"Point":i=t,a[0]=a[1]=t;break;case"MultiPoint":(i=s.X())[r.index]=t,a[0]=a[1]=t;break;case"LineString":(i=s.X())[r.index+p]=t,a[p]=t;break;case"MultiLineString":case"Polygon":(i=s.X())[n[0]][r.index+p]=t,a[p]=t;break;case"MultiPolygon":(i=s.X())[n[1]][n[0]][r.index+p]=t,a[p]=t;break;case"Circle":a[0]=a[1]=t,0===r.index?(this.l=!0,s.ob(t)):(this.l=!0,s.Uc(hr(s.wa(),t))),this.l=!1}i&&(r=s,n=i,this.l=!0,r.ma(n),this.l=!1)}fb(this,t)}function vb(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,kp(this.a,wt(o),i),kp(this.a,e.G(),r)):kp(this.a,ht(r.la),r);return this.C&&(this.b(new Mb("modifyend",this.u,t)),this.C=!1),!1}function bb(t){var e;return!(t instanceof mi)||(on((this.R=t).map.Z())[1]||"pointermove"!=t.type||this.D||(this.va=t.pixel,mb(this,t.pixel,t.map)),this.g&&this.xb(t)&&(e=!("singleclick"!=t.type||!this.I)||this.hj()),"singleclick"==t.type&&(this.I=!1),An.call(this,t)&&!e)}function mb(t,e,o){var i=o.Wa(e),r=lt(wt(i),o.Z().Pa()*t.fa);if(0<(r=Op(t.a,r)).length){r.sort(function(t,e){return wb(i,t)-wb(i,e)});var n,s=r[0],a=s.la,p=xb(i,s),h=o.Ja(p);if(hr(e,h)<=t.fa){if(e={},"Circle"===s.geometry.U()&&1===s.index)t.pa=!0,fb(t,p);else for(n=o.Ja(a[0]),s=o.Ja(a[1]),o=pr(h,n),h=pr(h,s),n=Math.sqrt(Math.min(o,h)),t.pa=n<=t.fa,fb(t,p=t.pa?h<o?a[1]:a[0]:p),h=1,o=r.length;h<o&&(p=r[h].la,nr(a[0],p[0])&&nr(a[1],p[1])||nr(a[0],p[1])&&nr(a[1],p[0]));++h)e[U(p)]=!0;return e[U(a)]=!0,void(t.Sa=e)}}t.g&&(t.B.ha().Gb(t.g),t.g=null)}function wb(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?(t=pr(o.wa(),t),(o=Math.sqrt(t)-o.pd())*o):lr(t,e.la)}function xb(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?o.Ab(t):or(t,e.la)}function Sb(t,e,o,i,r){Up(t.a,e.G(),function(t){t.geometry===e&&(void 0===i||void 0===t.depth||Z(t.depth,i))&&t.index>o&&(t.index+=r)})}function Mb(t,e,o){Qe.call(this,t),this.features=e,this.mapBrowserEvent=o}function Pb(t){var e,o;pn.call(this,{handleEvent:Ab}),this.C=(t=t||{}).condition||vn,this.D=t.addCondition||fr,this.B=t.removeCondition||fr,this.I=t.toggleCondition||mn,this.l=t.multi||!1,this.o=t.filter||cr,this.j=t.hitTolerance||0,this.g=new s({source:new a({useSpatialIndex:!1,features:t.features,wrapX:t.wrapX}),style:t.style||(X((e=Qh()).Polygon,e.LineString),X(e.GeometryCollection,e.LineString),function(t){return t.V()?e[t.V().U()]:null}),updateWhileAnimating:!0,updateWhileInteracting:!0}),t=t.layers?"function"==typeof t.layers?t.layers:(o=t.layers,function(t){return D(o,t)}):cr,this.u=t,this.a={},d(t=this.g.ha().f,"add",this.Fn,this),d(t,"remove",this.Jn,this)}function Ab(t){if(!this.C(t))return!0;var o=this.D(t),i=this.B(t),r=this.I(t),e=!o&&!i&&!r,n=t.map,s=this.g.ha().f,a=[],p=[];if(e){for(Vt(this.a),n.we(t.pixel,function(t,e){if(this.o(t,e))return p.push(t),t=U(t),this.a[t]=e,!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=s.dc()-1;0<=e;--e){var n=s.item(e),h=p.indexOf(n);-1<h?p.splice(h,1):(s.remove(n),a.push(n))}p.length&&s.fg(p)}else{for(n.we(t.pixel,function(t,e){if(this.o(t,e))return!o&&!r||D(s.a,t)?(i||r)&&D(s.a,t)&&(a.push(t),e=U(t),delete this.a[e]):(p.push(t),t=U(t),this.a[t]=e),!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=a.length-1;0<=e;--e)s.remove(a[e]);s.fg(p)}return(0<p.length||0<a.length)&&this.b(new Eb(Tb,p,a,t)),dn(t)}function Eb(t,e,o,i){Qe.call(this,t),this.selected=e,this.deselected=o,this.mapBrowserEvent=i}e(lb,Mn),(r=lb.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()&&mb(this,this.va,e),d(t,"change",this.si,this)},r.Ha=function(t){this.g&&!t&&(this.B.ha().Gb(this.g),this.g=null),Mn.prototype.Ha.call(this,t)},r.setMap=function(t){this.B.setMap(t),Mn.prototype.setMap.call(this,t)},r.wn=function(t){this.kg(t.element)},r.si=function(t){this.l||(cb(this,t=t.target),this.kg(t))},r.xn=function(t){cb(this,t.element)},r.Dn=function(t,e){var o=e.X();t={feature:t,geometry:e,la:[o,o]},this.a.Ca(e.G(),t)},r.Bn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i){var n={feature:t,geometry:e,depth:[i],index:i,la:[n=o[i],n]};this.a.Ca(e.G(),n)}},r.ti=function(t,e){for(var o=e.X(),i=0,r=o.length-1;i<r;++i){var n=o.slice(i,i+2),s={feature:t,geometry:e,index:i,la:n};this.a.Ca(ht(n),s)}},r.An=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length-1;s<a;++s){var p=n.slice(s,s+2),h={feature:t,geometry:e,depth:[i],index:s,la:p};this.a.Ca(ht(p),h)}},r.En=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length-1;s<a;++s){var p=n.slice(s,s+2),h={feature:t,geometry:e,depth:[i],index:s,la:p};this.a.Ca(ht(p),h)}},r.Cn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length;s<a;++s)for(var p=n[s],h=0,l=p.length-1;h<l;++h){var u=p.slice(h,h+2),c={feature:t,geometry:e,depth:[s,i],index:h,la:u};this.a.Ca(ht(u),c)}},r.yn=function(t,e){var o=e.wa(),i={feature:t,geometry:e,index:0,la:[o,o]};i.Pf=(t={feature:t,geometry:e,index:1,la:[o,o]}).Pf=[i,t],this.a.Ca(wt(o),i),this.a.Ca(e.G(),t)},r.zn=function(t,e){var o=e.a;for(e=0;e<o.length;++e)this.T[o[e].U()].call(this,t,o[e])},r.bm=function(t,e){for(var o,i=t.la,r=t.feature,n=t.geometry,s=t.depth,a=t.index;e.length<n.qa();)e.push(0);switch(n.U()){case"MultiLineString":case"Polygon":(o=n.X())[s[0]].splice(a+1,0,e);break;case"MultiPolygon":(o=n.X())[s[1]][s[0]].splice(a+1,0,e);break;case"LineString":(o=n.X()).splice(a+1,0,e);break;default:return}this.l=!0,n.ma(o),this.l=!1,(o=this.a).remove(t),Sb(this,n,a,s,1),t={la:[i[0],e],feature:r,geometry:n,depth:s,index:a},o.Ca(ht(t.la),t),this.j.push([t,1]),e={la:[e,i[1]],feature:r,geometry:n,depth:s,index:a+1},o.Ca(ht(e.la),e),this.j.push([e,0]),this.I=!0},r.hj=function(){if(this.R&&"pointerdrag"!=this.R.type){var t,e=this.R,o=(ub(this,e),this.j),i={};for(a=o.length-1;0<=a;--a){var r=o[a],n=r[0],s=U(n.feature);n.depth&&(s+="-"+n.depth.join("-")),s in i||(i[s]={}),0===r[1]?(i[s].right=n,i[s].index=n.index):1==r[1]&&(i[s].left=n,i[s].index=n.index+1)}for(s in i){var a,p=i[s].right,h=i[s].left,l=(a=i[s].index)-1;l<0&&(l=0);var u=t=(r=(n=void 0!==h?h:p).geometry).X(),c=!1;switch(r.U()){case"MultiLineString":2<t[n.depth[0]].length&&(t[n.depth[0]].splice(a,1),c=!0);break;case"LineString":2<t.length&&(t.splice(a,1),c=!0);break;case"MultiPolygon":u=u[n.depth[1]];case"Polygon":4<(u=u[n.depth[0]]).length&&(a==u.length-1&&(a=0),u.splice(a,1),c=!0,0===a)&&(u.pop(),u.push(u[0]),l=u.length-1)}c&&(c=r,this.l=!0,c.ma(t),this.l=!1,t=[],void 0!==h&&(this.a.remove(h),t.push(h.la[0])),void 0!==p&&(this.a.remove(p),t.push(p.la[1])),void 0!==h&&void 0!==p&&(h={depth:n.depth,feature:n.feature,geometry:n.geometry,index:l,la:t},this.a.Ca(ht(h.la),h)),Sb(this,r,a,n.depth,-1),this.g&&(this.B.ha().Gb(this.g),this.g=null),o.length=0)}return this.b(new Mb("modifyend",this.u,e)),!(this.C=!1)}return!1},e(Mb,Qe),e(Pb,pn),(r=Pb.prototype).Gn=function(){return this.g.ha().f},r.Hn=function(){return this.j},r.In=function(t){return t=U(t),this.a[t]},r.Kn=function(t){this.j=t},r.setMap=function(t){var e=this.v,o=this.g.ha().f;e&&o.forEach(e.Cj,e),pn.prototype.setMap.call(this,t),this.g.setMap(t),t&&o.forEach(t.xj,t)},r.Fn=function(t){var e=this.v;e&&e.xj(t.element)},r.Jn=function(t){var e=this.v;e&&e.Cj(t.element)},e(Eb,Qe);var Tb="select";function jb(t){Mn.call(this,{handleEvent:Lb,handleDownEvent:cr,handleUpEvent:Rb}),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 lr(this.I,t.la)-lr(this.I,e.la)}.bind(this),this.a=new Fp,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 Cb(t,e,o,i){var r,n,s,a,p,h,l=i.Wa([e[0]-t.g,e[1]+t.g]),u=i.Wa([e[0]+t.g,e[1]-t.g]),l=ht([l,u]),c=Op(t.a,l),f=!1,l=!1,y=u=null;return 0<(c=t.R&&!t.C?c.filter(function(t){return"Circle"!==t.feature.V().U()}):c).length&&(t.I=o,c.sort(t.va),r=c[0].la,f="Circle"===c[0].feature.V().U(),t.R&&!t.C?(o=i.Ja(r[0]),f=i.Ja(r[1]),o=pr(e,o),e=pr(e,f),(f=(f=Math.sqrt(Math.min(o,e)))<=t.g)&&(l=!0,u=e<o?r[1]:r[0],y=i.Ja(u))):t.C&&(u=f?(n=o,c=c[0].feature.V(),s=c.pd(),c=(a=c.wa())[0],a=a[1],p=n[0]-c,n=n[1]-a,p||n||(p=1),h=Math.sqrt(p*p+n*n),[c+s*p/h,a+s*n/h]):or(o,r),hr(e,y=i.Ja(u))<=t.g)&&(l=!0,t.R)&&!f&&(o=i.Ja(r[0]),f=i.Ja(r[1]),o=pr(y,o),e=pr(y,f),f=(f=Math.sqrt(Math.min(o,e)))<=t.g)&&(u=e<o?r[1]:r[0],y=i.Ja(u)),l)&&(y=[Math.round(y[0]),Math.round(y[1])]),{nq:l,vertex:u,wq:y}}function Lb(t){var e=Cb(this,t.pixel,t.coordinate,t.map);return e.nq&&(t.coordinate=e.vertex.slice(0,2),t.pixel=e.wq),An.call(this,t)}function Rb(){var t=Wt(this.u);return t.length&&(t.forEach(this.Dj,this),this.u={}),!1}function Ib(t){var e,o;Mn.call(this,{handleDownEvent:Nb,handleDragEvent:kb,handleMoveEvent:Db,handleUpEvent:Fb}),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 D(e,t)}):cr,this.C=o,this.l=t.hitTolerance||0,this.g=null,d(this,so("active"),this.u,this)}function Nb(t){var e;return this.g=Ob(this,t.pixel,t.map),!(this.a||!this.g||(this.a=t.coordinate,Db.call(this,t),e=this.j||new ho([this.g]),this.b(new Gb("translatestart",e,t.coordinate)),0))}function Fb(t){var e;return!!this.a&&(this.a=null,Db.call(this,t),e=this.j||new ho([this.g]),this.b(new Gb("translateend",e,t.coordinate)),!0)}function kb(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 ho([this.g])).forEach(function(t){var e=t.V();e.translate(o,i),t.Ra(e)}),this.a=t,this.b(new Gb("translating",e,t)))}function Db(t){var e=t.map.a;Ob(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 Ob(t,e,o){return o.we(e,function(t){if(!this.j||D(this.j.a,t))return t}.bind(t),{layerFilter:t.C,hitTolerance:t.l})}function Ub(t,e){var o=t.v;t=t.c(),o&&t||(o=o||e).a.classList.remove("ol-grab","ol-grabbing")}function Gb(t,e,o){Qe.call(this,t),this.features=e,this.coordinate=o}function p(t){var e=Xt({},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,d(this,so(Vb),this.Bl,this),this.pj(t.gradient||Bb),this.jj(void 0!==t.blur?t.blur:15),this.Uc(void 0!==t.radius?t.radius:8),d(this,so(Xb),this.cg,this),d(this,so(Wb),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))?Q(t,0,1):1)|0,o=this.B[e];return o||(o=[new qh({image:new af({opacity:t,src:this.I})})],this.B[e]=o),o}.bind(this)),this.set(jv,null),d(this,"render",this.Sl,this)}e(jb,Mn),(r=jb.prototype).yb=function(t,e){e=void 0===e||e;var o,i=U(t),r=t.V();r&&(o=this.fa[r.U()])&&(this.T[i]=r.G(vt()),o.call(this,t,r)),e&&(this.B[i]=d(t,"change",this.Ln,this))},r.Ak=function(t){this.yb(t)},r.Bk=function(t){this.Gb(t)},r.ui=function(t){var e;t instanceof Ov?e=t.feature:t instanceof fo&&(e=t.element),this.yb(e)},r.vi=function(t){var e;t instanceof Ov?e=t.feature:t instanceof fo&&(e=t.element),this.Gb(e)},r.Ln=function(t){var e;t=t.target,this.D?(e=U(t))in this.u||(this.u[e]=t):this.Dj(t)},r.Gb=function(e,t){t=void 0===t||t;var o=U(e),i=this.T[o];if(i){var r=this.a,n=[];for(Up(r,i,function(t){e===t.feature&&n.push(t)}),i=n.length-1;0<=i;--i)r.remove(n[i])}t&&(qe(this.B[o]),delete this.B[o])},r.setMap=function(t){var e,o=this.v,i=this.pa;this.j?e=this.j:this.l&&(e=this.l.Xe()),o&&(i.forEach(qe),i.length=0,e.forEach(this.Bk,this)),Mn.prototype.setMap.call(this,t),t&&(this.j?i.push(d(this.j,"add",this.ui,this),d(this.j,"remove",this.vi,this)):this.l&&i.push(d(this.l,"addfeature",this.ui,this),d(this.l,"removefeature",this.vi,this)),e.forEach(this.Ak,this))},r.Xc=fr,r.Dj=function(t){this.Gb(t,!1),this.yb(t,!1)},r.Mn=function(t,e){for(var o=0,i=(e=qr(e).X()[0]).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(ht(r),n)}},r.Nn=function(t,e){var o=e.a;for(e=0;e<o.length;++e){var i=this.fa[o[e].U()];i&&i.call(this,t,o[e])}},r.wi=function(t,e){for(var o=0,i=(e=e.X()).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(ht(r),n)}},r.On=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length-1;n<s;++n){var a=r.slice(n,n+2),p={feature:t,la:a};this.a.Ca(ht(a),p)}},r.Pn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i){var n={feature:t,la:[n=o[i],n]};this.a.Ca(e.G(),n)}},r.Qn=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length;n<s;++n)for(var a=r[n],p=0,h=a.length-1;p<h;++p){var l=a.slice(p,p+2),u={feature:t,la:l};this.a.Ca(ht(l),u)}},r.Rn=function(t,e){var o=e.X();t={feature:t,la:[o,o]},this.a.Ca(e.G(),t)},r.Sn=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length-1;n<s;++n){var a=r.slice(n,n+2),p={feature:t,la:a};this.a.Ca(ht(a),p)}},e(Ib,Mn),Ib.prototype.B=function(){return this.l},Ib.prototype.I=function(t){this.l=t},Ib.prototype.setMap=function(t){var e=this.v;Mn.prototype.setMap.call(this,t),Ub(this,e)},Ib.prototype.u=function(){Ub(this,null)},e(Gb,Qe),e(p,s);var Bb=["#00f","#0ff","#0f0","#ff0","#f00"],Xb=((r=p.prototype).uh=function(){return this.get(Xb)},r.Bh=function(){return this.get(Vb)},r.yi=function(){return this.get(Wb)},r.Bl=function(){for(var t=this.Bh(),e=Po(1,256),o=e.createLinearGradient(0,0,1,256),i=1/(t.length-1),r=0,n=t.length;r<n;++r)o.addColorStop(r*i,t[r]);e.fillStyle=o,e.fillRect(0,0,1,256),this.j=e.getImageData(0,0,1,256).data},r.cg=function(){var t=this.yi(),e=this.uh(),o=t+e+1,i=2*o;(i=Po(i,i)).shadowOffsetX=i.shadowOffsetY=this.R,i.shadowBlur=e,i.shadowColor="#000",i.beginPath(),e=o-this.R,i.arc(e,e,t,0,2*Math.PI,!0),i.fill(),this.I=i.canvas.toDataURL(),this.B=Array(256),this.s()},r.Sl=function(t){for(var e,o=(t=t.context).canvas,i=(o=t.getImageData(0,0,o.width,o.height)).data,r=0,n=i.length;r<n;r+=4)(e=4*i[r+3])&&(i[r]=this.j[e],i[r+1]=this.j[1+e],i[r+2]=this.j[2+e]);t.putImageData(o,0,0)},r.jj=function(t){this.set(Xb,t)},r.pj=function(t){this.set(Vb,t)},r.Uc=function(t){this.set(Wb,t)},"blur"),Vb="gradient",Wb="radius";function Zb(t){uv.call(this,t),this.v=ms(),this.j=null}function Kb(t){Zb.call(this,t),this.M=null,this.c=ms()}function zb(t,e,o,i){var r=Me(o,e,t);return o=ce(e,i,o),void 0!==(e=e.sc())&&(o*=e),void 0!==(e=t.sc())&&(o/=e),t=ce(t,o,r)/o,isFinite(t)&&0<t&&(o/=t),o}function Yb(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 Hb(t,e,g,d,o,v,i,r,n,s,a){var b,m,p,w,x=Po(Math.round(g*t),Math.round(g*e));return n.length&&(x.scale(g,g),b=vt(),n.forEach(function(t){Mt(b,t.extent)}),m=Po(Math.round(g*Dt(b)/d),Math.round(g*It(b)/d)),p=g/d,n.forEach(function(t){m.drawImage(t.image,s,s,t.image.width-2*s,t.image.height-2*s,(t.extent[0]-b[0])*p,-(t.extent[3]-b[3])*p,Dt(t.extent)*p,It(t.extent)*p)}),w=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],s=e[2][1],a=(t=(o[0][0]-w[0])/v,-(o[0][1]-w[1])/v),p=(o[1][0]-w[0])/v,h=-(o[1][1]-w[1])/v,l=(o[2][0]-w[0])/v,u=-(o[2][1]-w[1])/v;t:{for(r=(i=[[i=i-(o=e[0][0]),r=r-(e=e[0][1]),0,0,p-t],[n=n-o,s=s-e,0,0,l-t],[0,0,i,r,h-a],[0,0,n,s,u-a]]).length,n=0;n<r;n++){for(var s=n,c=Math.abs(i[n][n]),f=n+1;f<r;f++){var y=Math.abs(i[f][n]);c<y&&(c=y,s=f)}if(!c){i=null;break t}for(c=i[s],i[s]=i[n],i[n]=c,s=n+1;s<r;s++)for(c=-i[s][n]/i[n][n],f=n;f<r+1;f++)i[s][f]=n==f?0:i[s][f]+c*i[n][f]}for(n=Array(r),s=r-1;0<=s;s--)for(n[s]=i[s][r]/i[s][s],c=s-1;0<=c;c--)i[c][r]-=i[c][s]*n[s];i=n}i&&(x.save(),x.beginPath(),r=Yb(n=(t+p+l)/3,s=(a+h+u)/3,t,a),p=Yb(n,s,p,h),l=Yb(n,s,l,u),x.moveTo(p[0],p[1]),x.lineTo(r[0],r[1]),x.lineTo(l[0],l[1]),x.clip(),x.transform(i[0],i[2],i[1],i[3],t,a),x.translate(b[0]-o,b[3]-e),x.scale(d/g,-d/g),x.drawImage(m.canvas,0,0),x.restore())}),a)&&(x.save(),x.strokeStyle="black",x.lineWidth=1,r.c.forEach(function(t){t=((n=t.target)[0][0]-w[0])/v;var e=-(n[0][1]-w[1])/v,o=(n[1][0]-w[0])/v,i=-(n[1][1]-w[1])/v,r=(n[2][0]-w[0])/v,n=-(n[2][1]-w[1])/v;x.beginPath(),x.moveTo(o,i),x.lineTo(t,e),x.lineTo(r,n),x.closePath(),x.stroke()}),x.restore()),x.canvas}function qb(t,e,o,i,r){this.i=t,this.f=e;var n,s={},a=me(this.f,this.i),p=(this.a=function(t){var e=t[0]+"/"+t[1];return s[e]||(s[e]=a(t)),s[e]},this.g=i,this.v=r*r,this.c=[],this.o=!1,this.l=this.i.i&&!!i&&!!this.i.G()&&Dt(i)==Dt(this.i.G()),this.b=this.i.G()?Dt(this.i.G()):null,this.j=this.f.G()?Dt(this.f.G()):null,t=Ft(o),e=kt(o),i=Ct(o),o=jt(o),r=this.a(t),this.a(e)),h=this.a(i),l=this.a(o);!function t(e,o,i,r,n,s,a,p,h,l){var u=ht([s,a,p,h]),c=e.b?Dt(u)/e.b:null,f=e.b,y=e.i.i&&.5<c&&c<1,g=!1;{var d;0<l&&(e.f.c&&e.j&&(d=ht([o,i,r,n]),g|=.25<Dt(d)/e.j),!y)&&e.i.c&&c&&(g|=.25<c)}if(g||!e.g||Ot(u,e.g)){if(!(g||isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(p[0])&&isFinite(p[1])&&isFinite(h[0])&&isFinite(h[1]))){if(!(0<l))return;g=!0}if(0<l&&(g||(u=e.a([(o[0]+r[0])/2,(o[1]+r[1])/2]),f=y?(rt(s[0],f)+rt(p[0],f))/2-rt(u[0],f):(s[0]+p[0])/2-u[0],u=(s[1]+p[1])/2-u[1],g=f*f+u*u>e.v),g))Math.abs(o[0]-r[0])<=Math.abs(o[1]-r[1])?(y=[(i[0]+r[0])/2,(i[1]+r[1])/2],f=e.a(y),u=[(n[0]+o[0])/2,(n[1]+o[1])/2],c=e.a(u),t(e,o,i,y,u,s,a,f,c,l-1),t(e,u,y,r,n,c,f,p,h,l-1)):(y=[(o[0]+i[0])/2,(o[1]+i[1])/2],f=e.a(y),u=[(r[0]+n[0])/2,(r[1]+n[1])/2],c=e.a(u),t(e,o,y,u,n,s,f,c,h,l-1),t(e,y,i,r,u,f,a,p,c,l-1));else{if(y){if(!e.l)return;e.o=!0}e.c.push({source:[s,p,h],target:[o,r,n]}),e.c.push({source:[s,a,p],target:[o,i,r]})}}}(this,t,e,i,o,r,p,h,l,10),this.o&&(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)),s={}}function Jb(t){var e=vt();return t.c.forEach(function(t){t=t.source,Pt(e,t[0]),Pt(e,t[1]),Pt(e,t[2])}),e}function _b(t,e,o,i,r,n){this.v=e,this.l=t.G();var s=(a=e.G())?Nt(o,a):o,a=zb(t,e,Lt(s),i);this.j=new qb(t,e,s,this.l,.5*a),this.c=i,this.i=o,t=Jb(this.j),this.o=(this.Hb=n(t,a,r))?this.Hb.a:1,this.ee=this.g=null,r=2,n=[],this.Hb&&(r=0,n=this.Hb.f),v0.call(this,o,i,this.o,r,n)}function $b(t){Lv.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 Qb(t,e){return e=t.C?t.C[B(t.C,e,0)]:e}function tm(t,e){t.Y().src=e}function em(t,e){Qe.call(this,t),this.image=e}e(Zb,uv),Zb.prototype.S=function(t,e,o){fv(this,"precompose",o,t,void 0);var i,r,n,s=this.Y();s&&((i=void 0!==(r=e.extent)&&!yt(r,t.extent)&&Ot(r,t.extent))&&cv(o,t,r),r=this.C(),n=o.globalAlpha,o.globalAlpha=e.opacity,o.drawImage(s,0,0,+s.width,+s.height,Math.round(r[4]),Math.round(r[5]),Math.round(s.width*r[0]),Math.round(s.height*r[3])),o.globalAlpha=n,i)&&o.restore(),this.ef(o,t,e)},Zb.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)})},Zb.prototype.u=function(t,e,o,i){var r;if(this.Y())return this.a.ha().Ea!==Y?uv.prototype.u.apply(this,arguments):(ar(r=Ps(this.v,t.slice()),e.viewState.resolution/this.f),this.j||(this.j=Po(1,1)),this.j.clearRect(0,0,1,1),this.j.drawImage(this.Y(),r[0],r[1],1,1,0,0,1,1),0<(r=this.j.getImageData(0,0,1,1).data)[3]?o.call(i,this.a,r):void 0)},e(Kb,Zb),Kb.prototype.Y=function(){return this.M?this.M.Y():null},Kb.prototype.C=function(){return this.c},Kb.prototype.sd=function(t,e){var o,i=t.pixelRatio,r=t.size,n=t.viewState,s=n.center,a=n.resolution,p=this.a.ha(),h=t.viewHints,l=t.extent;return void 0!==e.extent&&(l=Nt(l,e.extent)),h[0]||h[1]||Ut(l)||(e=p.Y(l,a,i,n.projection))&&rv(this,e)&&(this.M=e),this.M&&(h=(e=this.M).G(),o=i*(l=e.resolution)/(a*(n=e.a)),h=js(this.c,i*r[0]/2,i*r[1]/2,o,o,0,n*(h[0]-s[0])/l,n*(s[1]-h[3])/l),js(this.v,i*r[0]/2-h[4],i*r[1]/2-h[5],i/a,-i/a,0,-s[0],-s[1]),av(t.attributions,e.f),pv(t,p),this.f=a*i/n),!!this.M},e(_b,v0),_b.prototype.ka=function(){1==this.state&&(qe(this.ee),this.ee=null),v0.prototype.ka.call(this)},_b.prototype.Y=function(){return this.g},_b.prototype.de=function(){var t=this.Hb.getState();2==t&&(this.g=Hb(Dt(this.i)/this.c,It(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()},_b.prototype.load=function(){var t;0==this.state&&(this.state=1,this.s(),2==(t=this.Hb.getState())||3==t?this.de():(this.ee=d(this.Hb,"change",function(){var t=this.Hb.getState();2!=t&&3!=t||(qe(this.ee),this.ee=null,this.de())},this),this.Hb.load()))},e($b,Lv),$b.prototype.Y=function(t,e,o,i){var r=this.c;if(r&&i&&!be(r,i)){if(this.a){if(this.fa==this.i&&be(this.a.v,i)&&this.a.resolution==e&&this.a.a==o&&St(this.a.G(),t))return this.a;$e(this.a),this.a=null}return this.a=new _b(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)},$b.prototype.o=function(t){switch((t=t.target).getState()){case 1:this.b(new em(om,t));break;case 2:this.b(new em(im,t));break;case 3:this.b(new em(rm,t))}},e(em,Qe);var om="imageloadstart",im="imageloadend",rm="imageloaderror";function nm(t){$b.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 sm(t){this.f=t.source,this.$a=ms(),this.g=Po(),this.l=[0,0],this.Sa=null==t.renderBuffer?100:t.renderBuffer,this.B=null,nm.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),d(this.f,"change",this.ro,this)}function am(t,e){Av.call(this,t,e),this.o=this.f=this.M=null}function pm(t){ys.call(this,t||{})}function hm(t){Zb.call(this,t),this.c=null===this.c?null:Po(),this.o=null,this.g=[],this.l=vt(),this.va=new J(0,0,0,0),this.B=ms(),this.T=0}function lm(t,e){return e=e.getState(),t=t.a.kd(),2==e||4==e||3==e&&!t}function um(){this.b="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor=texture2D(e,a);}"}e(nm,$b),nm.prototype.Jc=function(t,e,o,i){e=Qb(this,e);var r=this.R;return r&&this.T==this.i&&r.resolution==e&&r.a==o&&yt(r.G(),t)||(Gt(t=t.slice(),this.va),(i=this.pa(t,e,o,[Dt(t)/e*o,It(t)/e*o],i))&&(r=new m0(t,e,o,this.j,i)),this.R=r,this.T=this.i),r},e(sm,nm),(r=sm.prototype).tk=function(t,n,s,e,o){var i,r,a=new _0(.5*n/s,t,n,this.f.T,this.Sa),p=(this.f.Yd(t,n,o),!1);return this.f.$b(t,function(t){var e;if(!(i=p))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=vv(a,t,e[i],dv(n,s),this.qo,this)||o;i=o}else i=!1;p=i},this),tv(a),p?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=Lt(t),r=s/(r=n),t=js(o.$a,e[0]/2,e[1]/2,r,-r,0,-i[0],-i[1]),a.La(this.g,s,t,0,{}),this.B=a,this.g.canvas)},r.Ea=function(t,e,o,i,r,n){var s;if(this.B)return s={},this.B.Ea(t,e,0,i,r,function(t){var e=U(t).toString();if(!(e in s))return s[e]=!0,n(t)})},r.no=function(){return this.f},r.oo=function(){return this.I},r.po=function(){return this.v},r.qo=function(){this.s()},r.ro=function(){Iv(this,this.f.getState())},r.Ii=function(t){this.I=void 0!==t?t:$h,this.v=t?Jh(this.I):void 0,this.s()},e(am,Av),am.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)})},am.prototype.ng=function(t,e){var o=this.c.i,i=t.pixelRatio,r=t.viewState,n=r.center,s=r.resolution,a=r.rotation,p=this.M,h=this.Ib,l=this.a.ha(),u=t.viewHints,c=t.extent;return void 0!==e.extent&&(c=Nt(c,e.extent)),u[0]||u[1]||Ut(c)||(e=l.Y(c,s,i,r.projection))&&rv(this,e)&&(u=this,c=(c=p=e).Y(),h=Na(u.c.i,c),this.Ib)&&t.postRenderFunctions.push(function(t,e){t.isContextLost()||t.deleteTexture(e)}.bind(null,o,this.Ib)),p&&(o=this.c.f.j,r=this,e=o.width,u=o.height,c=i,o=n,n=s,s=a,a=p.G(),e*=n,u*=n,ws(r=r.S),Es(r,2*c/e,2*c/u),As(r,-s),Ts(r,a[0]-o[0],a[1]-o[1]),Es(r,(a[2]-a[0])/2,(a[3]-a[1])/2),Ts(r,1,1),this.o=null,ws(i=this.v),Es(i,1,-1),Ts(i,0,-1),this.M=p,this.Ib=h,av(t.attributions,p.f),pv(t,l)),!!p},am.prototype.Ue=function(t,e){return void 0!==this.Ea(t,e,0,cr,this)},am.prototype.lg=function(t,e,o,i){if(this.M&&this.M.Y())if(this.a.ha()instanceof sm){var r=Ps(e.pixelToCoordinateTransform,t.slice());if(this.Ea(r,e,0,cr,this))return o.call(i,this.a,null)}else{var n,s,r=[this.M.Y().width,this.M.Y().height];if(this.o||(n=e.size,Ts(e=ms(),-1,-1),Es(e,2/n[0],2/n[1]),Ts(e,0,n[1]),Es(e,1,-1),n=Cs(this.S.slice()),Ts(s=ms(),0,r[1]),Es(s,1,-1),Es(s,r[0]/2,r[1]/2),Ts(s,1,1),xs(s,n),xs(s,e),this.o=s),!((t=Ps(this.o,t.slice()))[0]<0||t[0]>r[0]||t[1]<0||t[1]>r[1])&&(this.f||(this.f=Po(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(pm,ys),pm.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Kb(this):"webgl"===o&&(e=new am(t,this)),e},e(hm,Zb),hm.prototype.sd=function(t,e){var o=t.pixelRatio,i=t.size,r=(s=t.viewState).projection,n=s.resolution,s=s.center,a=this.a,p=a.ha(),h=p.i,l=p.Ta(r),u=l.tc(n,this.T),c=l.Da(u),f=Math.round(n/c)||1,y=t.extent;if(Ut(y=void 0!==e.extent?Nt(y,e.extent):y))return!1;var g=Re(l,y,c),d=l.Pc(u),v=l.Da(u),b=pt(l.gb(u),l.j),d=bt(d[0]+g.ca*b[0]*v,d[1]+g.da*b[1]*v,d[0]+(g.$+1)*b[0]*v,d[1]+(g.ia+1)*b[1]*v,void 0),v=p.nb(o),m=((b={})[u]={},this.Nf(p,r,b)),w=this.l,x=this.va,S=!1;for(C=g.ca;C<=g.$;++C)for(L=g.da;L<=g.ia;++L){var M=p.Nc(u,C,L,o,r);3!=M.getState()||this.a.kd()||S0(M,2),lm(this,M)||(M=x0(M)),lm(this,M)?2==M.getState()&&(b[u][M.ta.toString()]=M,S||-1!=this.g.indexOf(M)||(S=!0)):Ce(l,M.ta,m,x,w)||(M=Le(l,M.ta,x,w))&&m(u+1,M)}if(C=(C=t.viewHints)[0]||C[1],!(this.f&&16<Date.now()-t.time&&C||!S&&this.o&&yt(this.o,y)&&this.mf==h&&f==this.R&&(C||c*o/v*f==this.f))){(C=this.c)&&(L=p.Xd(u,o,r),M=Math.round((g.$-g.ca+1)*L[0]/f),L=Math.round((g.ia-g.da+1)*L[1]/f),(S=C.canvas).width!=M||S.height!=L?(this.R=f,S.width=M,S.height=L):(C.clearRect(0,0,M,L),f=this.R)),this.g.length=0,(S=Object.keys(b).map(Number)).sort(G);for(var x=0,P=S.length;x<P;++x){C=S[x];var A,m=p.Xd(C,o,r),E=(M=l.Da(C))/c,T=v*p.Wf(r),j=b[C];for(A in j){var M=j[A],C=((L=l.Aa(M.ta,w))[0]-d[0])/c*v/f,L=(d[3]-L[3])/c*v/f,R=m[0]*E/f,I=m[1]*E/f;this.Of(M,t,e,C,L,R,I,T),this.g.push(M)}}this.mf=h,this.f=c*o/v*f,this.o=d}return e=this.f/n,e=js(this.B,o*i[0]/2,o*i[1]/2,e,e,0,(this.o[0]-s[0])/this.f*o,(s[1]-this.o[3])/this.f*o),js(this.v,o*i[0]/2-e[4],o*i[1]/2-e[5],o/n,-o/n,0,-s[0],-s[1]),hv(t.usedTiles,p,u,g),lv(t,p,l,o,r,y,u,a.Ud()),sv(t,p),pv(t,p),0<this.g.length},hm.prototype.Of=function(t,e,o,i,r,n,s,a){this.a.ha().Zf(e.viewState.projection)||this.c.clearRect(i,r,n,s),(t=t.Y())&&this.c.drawImage(t,a,a,t.width-2*a,t.height-2*a,i,r,n,s)},hm.prototype.Y=function(){var t=this.c;return t?t.canvas:null},hm.prototype.C=function(){return this.B},e(um,ta);var cm=new um;function fm(){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(fm,ea);var ym=new fm;function gm(t,e){this.i=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.b=t.getAttribLocation(e,"b"),this.a=t.getAttribLocation(e,"c")}function dm(t,e){Av.call(this,t,e),this.I=cm,this.fa=ym,this.f=null,this.B=new da([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 A(t){var e=Xt({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,ys.call(this,e),this.zi(void 0!==t.preload?t.preload:0),this.Ai(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}function vm(t){this.c=null,hm.call(this,t),this.I=!1,this.D=ms(),this.T="vector"==t.j?1:0}e(dm,Av),(r=dm.prototype).ka=function(){Ta(this.c.f,this.B),Av.prototype.ka.call(this)},r.Nf=function(e,i,r){var n=this.c;return function(o,t){return Cm(e,i,o,t,function(t){var e=n.a.b.hasOwnProperty(t.bb());return e&&(r[o]||(r[o]={}),r[o][t.ta.toString()]=t),e})}},r.mg=function(){Av.prototype.mg.call(this),this.f=null},r.ng=function(t,e,o){var i,r,n,s,a,p,h=this.c,l=o.b,u=t.viewState,c=u.projection,f=this.a,y=f.ha(),g=y.Ta(c),d=g.tc(u.resolution),v=g.Da(d),b=y.Xd(d,t.pixelRatio,c),m=b[0]/pt(g.gb(d),this.R)[0],w=v/m,x=y.nb(m)*y.Wf(c),S=u.center,M=t.extent,P=Re(g,M,v);if(this.o&&(a=this.o,p=P,a.ca==p.ca)&&a.da==p.da&&a.$==p.$&&a.ia==p.ia&&this.l==y.i)w=this.D;else{var A=[P.$-P.ca+1,P.ia-P.da+1];O(0<(a=Math.max(A[0]*b[0],A[1]*b[1])),29);for(var E,A=w*(L=Math.pow(2,Math.ceil(Math.log(a)/Math.LN2))),T=g.Pc(d),w=[R=T[0]+P.ca*b[0]*w,w=T[1]+P.da*b[1]*w,R+A,w+A],j=(p=t,r=L,s=(i=this).c.i,void 0===i.j||i.j!=r?(p.postRenderFunctions.push(function(t,e,o){t.isContextLost()||(t.deleteFramebuffer(e),t.deleteTexture(o))}.bind(null,s,i.g,i.Ib)),p=Ia(s,r,r),n=s.createFramebuffer(),s.bindFramebuffer(36160,n),s.framebufferTexture2D(36160,36064,3553,p,0),i.Ib=p,i.g=n,i.j=r):s.bindFramebuffer(36160,i.g),l.viewport(0,0,L,L),l.clearColor(0,0,0,0),l.clear(16384),l.disable(3042),L=La(o,this.I,this.fa),o.Qc(L),this.f||(this.f=new gm(l,L)),Ea(o,34962,this.B),l.enableVertexAttribArray(this.f.b),l.vertexAttribPointer(this.f.b,2,5126,!1,16,0),l.enableVertexAttribArray(this.f.a),l.vertexAttribPointer(this.f.a,2,5126,!1,16,8),l.uniform1i(this.f.i,0),(o={})[d]={},this.Nf(y,c,o)),C=f.kd(),L=!0,R=vt(),I=new J(0,0,0,0),N=P.ca;N<=P.$;++N)for(E=P.da;E<=P.ia;++E){if(T=y.Nc(d,N,E,m,c),void 0!==e.extent){var F=g.Aa(T.ta,R);if(!Ot(F,e.extent))continue}if(2==(F=(T=(F=2==(F=T.getState())||4==F||3==F&&!C)?T:x0(T)).getState())){if(h.a.b.hasOwnProperty(T.bb())){o[d][T.ta.toString()]=T;continue}}else if(4==F||3==F&&!C)continue;L=!1,(F=Ce(g,T.ta,j,I,R))||(T=Le(g,T.ta,I,R))&&j(d+1,T)}(e=Object.keys(o).map(Number)).sort(G);for(var k,j=new Float32Array(4),C=0,I=e.length;C<I;++C)for(k in N=o[e[C]])T=N[k],F=g.Aa(T.ta,R),j[0]=2*(F[2]-F[0])/A,j[1]=2*(F[3]-F[1])/A,j[2]=2*(F[0]-w[0])/A-1,j[3]=2*(F[1]-w[1])/A-1,l.uniform4fv(this.f.c,j),hh(h,T,b,x*m),l.drawArrays(5,0,4);L?(this.o=P,this.D=w,this.l=y.i):(this.D=this.o=null,this.l=-1,t.animate=!0)}hv(t.usedTiles,y,d,P);var D=h.j;return lv(t,y,g,m,c,M,d,f.Ud(),function(t){2!=t.getState()||h.a.b.hasOwnProperty(t.bb())||t.bb()in D.a||D.f([t,Ne(g,t.ta),g.Da(t.ta[0]),b,x*m])},this),sv(t,y),pv(t,y),ws(l=this.v),Ts(l,(Math.round(S[0]/v)*v-w[0])/(w[2]-w[0]),(Math.round(S[1]/v)*v-w[1])/(w[3]-w[1])),u.rotation&&As(l,u.rotation),Es(l,t.size[0]*u.resolution/(w[2]-w[0]),t.size[1]*u.resolution/(w[3]-w[1])),Ts(l,-.5,-.5),!0},r.lg=function(t,e,o,i){if(this.g){t=[(t=Ps(this.v,[t[0]/e.size[0],(e.size[1]-t[1])/e.size[1]].slice()))[0]*this.j,t[1]*this.j],(e=this.c.f.b).bindFramebuffer(e.FRAMEBUFFER,this.g);var r=new Uint8Array(4);if(e.readPixels(t[0],t[1],1,1,e.RGBA,e.UNSIGNED_BYTE,r),0<r[3])return o.call(i,this.a,r)}},e(A,ys),(r=A.prototype).Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new hm(this):"webgl"===o&&(e=new dm(t,this)),e},r.Ud=function(){return this.get("preload")},r.zi=function(t){this.set("preload",t)},r.kd=function(){return this.get("useInterimTilesOnError")},r.Ai=function(t){this.set("useInterimTilesOnError",t)},e(vm,hm);var bm={image:_s,hybrid:["Polygon","LineString"]},mm={hybrid:["Image","Text"],vector:_s};function E(t){var e=Xt({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,s.call(this,e),this.Bi(t.preload||0),this.Ci(t.useInterimTilesOnError||!0),O(null==t.renderMode||"image"==t.renderMode||"hybrid"==t.renderMode||"vector"==t.renderMode,28),this.j=t.renderMode||"hybrid"}function wm(t,e,o,i){function r(){delete window[s],n.parentNode.removeChild(n)}var n=document.createElement("script"),s="olc_"+U(e),a=(n.async=!0,n.src=t+(-1==t.indexOf("?")?"?":"&")+(i||"callback")+"="+s,setTimeout(function(){r(),o&&o()},1e4));window[s]=function(t){clearTimeout(a),r(),e(t)},document.getElementsByTagName("head")[0].appendChild(n)}function xm(t,e,o,i,r,n,s,a,p,h,l){if(w0.call(this,r,0),this.D=void 0!==l&&l,this.S=s,this.u=a,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),a=this.j.G(),r=this.c.G(),Tt(n=a?Nt(n,a):n))if((a=t.G())&&(r=r?Nt(r,a):a),i=zb(t,o,Lt(n),i.Da(this.o[0])),!isFinite(i)||i<=0)this.state=4;else if(this.l=new qb(t,o,n,r,i*(void 0!==h?h:.5)),this.l.c.length)if(this.g=e.tc(i),o=Jb(this.l),r&&(t.i?(o[1]=Q(o[1],r[1],r[3]),o[3]=Q(o[3],r[1],r[3])):o=Nt(o,r)),Tt(o)){for(e=(t=Ie(e,o,this.g)).ca;e<=t.$;e++)for(o=t.da;o<=t.ia;o++)(h=p(this.g,e,o,s))&&this.a.push(h);this.a.length||(this.state=4)}else this.state=4;else this.state=4;else this.state=4}function Sm(t,e){for(var o=t.length,i=Array(o),r=0;r<o;++r)i[r]=function(t,o){var i=/\{z\}/g,r=/\{x\}/g,n=/\{y\}/g,s=/\{-y\}/g;return function(e){if(e)return t.replace(i,e[0].toString()).replace(r,e[1].toString()).replace(n,function(){return(-e[2]-1).toString()}).replace(s,function(){var t=o.a?o.a[e[0]]:null;return O(t,55),(t.ia-t.da+1+e[2]).toString()})}}(t[r],e);return Mm(i)}function Mm(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 Pm(){}function Am(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 Em(t){ah.call(this),this.highWaterMark=void 0!==t?t:2048}function Tm(t){return t.c>t.highWaterMark}function jm(t){Lv.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 Em(t.cacheSize),this.o=[0,0],this.uc=""}function Cm(t,e,o,i,r){if(!(e=t.Wd(e)))return!1;for(var n,s,a=!0,p=i.ca;p<=i.$;++p)for(var h=i.da;h<=i.ia;++h)n=t.Sb(o,p,h),s=!1,(s=e.b.hasOwnProperty(n)?(s=2===(n=e.get(n)).getState())&&!1!==r(n):s)||(a=!1);return a}function Lm(t,e){t.uc!==e&&(t.uc=e,t.s())}function Rm(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=Ne(o,i),e=ft(n=Ge(n),t)?i:(i=Dt(n),t[0]+=i*Math.ceil((n[0]-t[0])/i),o.bg(t,e))),i=e[0],n=e[1],t=e[2],(o=!(o.minZoom>i||i>o.maxZoom)&&(!(o=(r=o.G())?Ie(o,r,i):o.a?o.a[i]:null)||_(o,n,t)))?e:null}function Im(t,e){Qe.call(this,t),this.tile=e}function Nm(t){jm.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):Pm,this.urls=null,t.urls?this.eb(t.urls):t.url&&this.jb(t.url),t.tileUrlFunction&&this.cb(t.tileUrlFunction)}function T(t){Nm.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||Dm,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||M0,this.g={},this.v={},this.Sa=t.reprojectionErrorThreshold,this.I=!1}function Fm(t,e,o,i,r,n,s){return r=(o=Rm(t,e=[e,o,i],n))?t.tileUrlFunction(o,r,n):void 0,(r=new t.tileClass(e,void 0!==r?0:4,void 0!==r?r:"",t.crossOrigin,t.tileLoadFunction)).key=s,d(r,"change",t.Li,t),r}function km(t,e,o,i,r,n){var s=t.Sb(e,o,i),a=t.uc;if(t.a.b.hasOwnProperty(s)){if((h=t.a.get(s)).key!=a){var p=h,h=Fm(t,e,o,i,r,n,a);if(0==p.getState()?h.i=p.i:h.i=p,h.i){e=h.i,o=h;do{if(2==e.getState()){e.i=null;break}}while(1!=e.getState()&&0==e.getState()?o.i=e.i:o=e,e=o.i)}t.a.replace(s,h)}}else h=Fm(t,e,o,i,r,n,a),t.a.set(s,h);return h}function Dm(t,e){t.Y().src=e}function j(t){this.B=void 0!==t.hidpi&&t.hidpi,T.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:v("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,wm("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.l+"?uriScheme=https&include=ImageryProviders&key="+this.f,this.pa.bind(this),void 0,"jsonp")}(r=vm.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=Po()),this.c)&&"vector"==o&&(this.c=null),this.pa=i,hm.prototype.sd.apply(this,arguments)},r.Of=function(t,e,o,i,r,n,s,a){var p=t,h=this.a,l=e.pixelRatio,u=e.viewState.projection,c=h.i,f=h.get(jv)||null,y=p.o;if(y.Nd||y.mf!=c||y.Kg!=f){for(var g=0,d=p.a.length;g<d;++g){var v,b,m=p.c[p.a[g]],w=(m.S=null,y.Nd=!1,h.ha()),x=w.tileGrid,S=m.ta,M=m.a,P=(E=w.Ta(u)).Da(p.ta[0]),A=x.Da(m.ta[0]),E=Nt(E=E.Aa(p.v),S=x.Aa(S));for("tile-pixels"==M.a?(v=x=w.nb(),A=Ps(A=js(this.D,0,0,1/A*v,-1/A*v,0,-S[0],-S[3]),[E[0],E[3]]).concat(Ps(A,[E[2],E[1]]))):(x=P,A=E,be(u,M)||(b=!0,m.ig(u))),y.Nd=!1,w=new _0(0,A,x,w.l,h.c),A=dv(x,l),x=m.g,f&&f!==y.Kg&&x.sort(f),S=0,E=x.length;S<E;++S){v=x[S],b&&v.V().tb(M,u);var T=void 0;if((j=v.Lc())?T=j.call(v,P):(j=h.f)&&(T=j(v,P)),T){var j=A,C=w;if(T=Array.isArray(T)?T:[T]){var L=!1;if(Array.isArray(T))for(var R=0,I=T.length;R<I;++R)L=vv(C,v,T[R],j,this.Fi,this)||L;else L=vv(C,v,T,j,this.Fi,this)||L;v=L}else v=!1;this.I=this.I||v,y.Nd=y.Nd||v}}tv(w),m.c[p.ta.toString()]=w}y.mf=c,y.Kg=f}if(this.c){if(g=e,u=this.a,l=p.o,c=u.i,(h=bm[u.j])&&l.Lg!==c)for(l.Lg=c,m=(d=p.v)[0],l=g.pixelRatio,u=(P=u.ha()).tileGrid,c=(M=P.Ta(g.viewState.projection)).Da(m),f=P.nb(),p.j||(p.j=Po()),y=p.j,g=P.Xd(m,l,g.viewState.projection),y.canvas.width=g[0],y.canvas.height=g[1],g=M.Aa(d),d=0,m=p.a.length;d<m;++d)w=(M=p.c[p.a[d]]).ta,b=l/c,P=ws(this.D),"tile-pixels"==M.a.a?(b=u.Aa(w,this.l),Es(P,A=l/f*(w=u.Da(w[0]))/c,A),Ts(P,Math.round((b[0]-g[0])/w*f),Math.round((g[3]-b[3])/w*f))):(Es(P,b,-b),Ts(P,-g[0],-g[3])),M.c[p.ta.toString()].La(y,l,P,0,{},h);hm.prototype.Of.apply(this,arguments)}},r.Ea=function(t,e,o,i,r){for(var n=e.viewState.resolution,s=e.viewState.rotation,a=(o=null==o?0:o,this.a),p={},h=this.g,l=a.ha(),u=(e=l.Ta(e.viewState.projection),l.tileGrid),c=0,f=h.length;c<f;++c){var y=h[c],g=y.ta,d=lt(g=e.Aa(g,this.l),o*n,d);if(ft(d,t))for(var g=0,v=y.a.length;g<v;++g)var b,m="tile-pixels"===(w=y.c[y.a[g]]).a.a?(b=w.ta,m=Ft(n=u.Aa(b,this.l)),n=l.nb(),b=u.Da(b[0])/n,[(t[0]-m[0])/b,(m[1]-t[1])/b]):t,w=w.c[y.ta],x=x||w.Ea(m,n,s,o,{},function(t){var e=U(t).toString();if(!(e in p))return p[e]=!0,i.call(r,t,a)})}return x},r.Fi=function(){nv(this)},r.ef=function(t,e,o){var i=(l=this.a).ha(),r=mm[l.j];if(r)for(var n=e.pixelRatio,s=e.viewState.rotation,a=e.size,p=Math.round(n*a[0]/2),a=Math.round(n*a[1]/2),h=this.g,l=l.ha().nb(),u=i.tileGrid,i=i.Ta(e.viewState.projection),c=[],f=[],y=h.length-1;0<=y;--y){var g=h[y];if(5!=g.getState())for(var d=g.ta,v=i.Aa(d)[0]-i.Aa(g.v)[0],b=0,m=g.a.length;b<m;++b){var w,x,S,M,P,A=g.c[g.a[b]],E=A.ta[0],T=u.Da(E),j=A,C=e;for(Ts(C="tile-pixels"==j.a.a?(M=(w=this.a.ha()).tileGrid,P=j.ta,w=M.Da(P[0])/w.nb(),j=C.viewState,x=C.pixelRatio,S=j.resolution/x,P=M.Aa(P,this.l),M=j.center,P=Ft(P),C=C.size,js(this.D,Math.round(x*C[0]/2),Math.round(x*C[1]/2),w/S,w/S,j.rotation,(P[0]-M[0])/w,(M[1]-P[1])/w)):yv(this,C,0),v*l/T,0),T=ev(A=A.c[d.toString()],C),t.save(),t.globalAlpha=o.opacity,Bs(t,-s,p,a),w=0,j=c.length;w<j;++w)x=c[w],E<f[w]&&(t.beginPath(),t.moveTo(T[0],T[1]),t.lineTo(T[2],T[3]),t.lineTo(T[4],T[5]),t.lineTo(T[6],T[7]),t.moveTo(x[6],x[7]),t.lineTo(x[4],x[5]),t.lineTo(x[2],x[3]),t.lineTo(x[0],x[1]),t.clip());A.La(t,n,C,s,{},r),t.restore(),c.push(T),f.push(E)}}hm.prototype.ef.apply(this,arguments)},e(E,s),(r=E.prototype).Fd=function(t){var e=null;return e="canvas"===t.U()?new vm(this):e},r.Ud=function(){return this.get("preload")},r.kd=function(){return this.get("useInterimTilesOnError")},r.Bi=function(t){this.set("preload",t)},r.Ci=function(t){this.set("useInterimTilesOnError",t)},e(xm,w0),xm.prototype.ka=function(){1==this.state&&(this.yd.forEach(qe),this.yd=null),w0.prototype.ka.call(this)},xm.prototype.Y=function(){return this.v},xm.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=Hb(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()},xm.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=d(e,"change",function(){var t=e.getState();2!=t&&3!=t&&4!=t||(qe(o),--i)||(this.yd.forEach(qe),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(Em,ah),Em.prototype.fd=function(t){for(var e,o,i;Tm(this);){if((e=(i=(o=this.a.Yc).ta[0].toString())in t)&&(o=o.ta,e=_(t[i],o[1],o[2])),e)break;$e(this.pop())}},e(jm,Lv),(r=jm.prototype).Ki=function(){return Tm(this.a)},r.fd=function(t,e){(t=this.Wd(t))&&t.fd(e)},r.Wf=function(){return 0},r.Sb=function(t,e,o){return t+"/"+e+"/"+o},r.Zf=function(){return this.va},r.ab=function(){return this.tileGrid},r.Ta=function(t){return this.tileGrid||ke(t)},r.Wd=function(t){var e=this.c;return e&&!be(e,t)?null:this.a},r.nb=function(){return this.$a},r.Xd=function(t,e,o){return o=this.Ta(o),e=this.nb(e),t=pt(o.gb(t),this.o),1==e?t:at(t,e,this.o)},r.sa=function(){this.a.clear(),this.s()},r.Ug=Y,e(Im,Qe),e(Nm,jm),(r=Nm.prototype).pb=function(){return this.tileLoadFunction},r.qb=function(){return this.tileUrlFunction},r.rb=function(){return this.urls},r.Li=function(t){switch((t=t.target).getState()){case 1:this.b(new Im("tileloadstart",t));break;case 2:this.b(new Im("tileloadend",t));break;case 3:this.b(new Im("tileloaderror",t))}},r.vb=function(t){this.a.clear(),this.tileLoadFunction=t,this.s()},r.cb=function(t,e){this.tileUrlFunction=t,void 0!==e?Lm(this,e):this.s()},r.jb=function(t){var e=this.urls=Am(t);this.cb(this.Fc?this.Fc.bind(this):Sm(e,this.tileGrid),t)},r.eb=function(t){var e=(this.urls=t).join("\n");this.cb(this.Fc?this.Fc.bind(this):Sm(t,this.tileGrid),e)},r.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},e(T,Nm),(r=T.prototype).Ki=function(){if(Tm(this.a))return!0;for(var t in this.g)if(Tm(this.g[t]))return!0;return!1},r.fd=function(t,e){for(var o in t=this.Wd(t),this.a.fd(this.a==t?e:{}),this.g){o=this.g[o];o.fd(o==t?e:{})}},r.Wf=function(t){return this.c&&t&&!be(this.c,t)?0:this.Xf()},r.Xf=function(){return 0},r.Zf=function(t){return!(this.c&&t&&!be(this.c,t))&&Nm.prototype.Zf.call(this,t)},r.Ta=function(t){var e=this.c;return!this.tileGrid||e&&!be(e,t)?((e=U(t).toString())in this.v||(this.v[e]=ke(t)),this.v[e]):this.tileGrid},r.Wd=function(t){var e=this.c;return!e||be(e,t)?this.a:((t=U(t).toString())in this.g||(this.g[t]=new Em(this.a.highWaterMark)),this.g[t])},r.Nc=function(t,e,o,i,r){var n,s,a,p,h,l;return this.c&&r&&!be(this.c,r)?(n=this.Wd(r),t=this.Sb.apply(this,o=[t,e,o]),n.b.hasOwnProperty(t)&&(s=n.get(t)),e=this.uc,s&&s.key==e?s:(a=this.c,p=this.Ta(a),h=this.Ta(r),l=Rm(this,o,r),(i=new xm(a,p,r,h,o,l,this.nb(i),this.Xf(),function(t,e,o,i){return km(this,t,e,o,i,a)}.bind(this),this.Sa,this.I)).key=e,s?(i.i=s,n.replace(t,i)):n.set(t,i),i)):km(this,t,e,o,i,r)},r.Pb=function(t){if(this.I!=t){for(var e in this.I=t,this.g)this.g[e].clear();this.s()}},r.Qb=function(t,e){(t=v(t))&&((t=U(t).toString())in this.v||(this.v[t]=e))},e(j,T);var Om=new Be({html:'<a class="ol-attribution-bing-tos" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a>'});function Um(t){var e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",o=void 0!==t.tileGrid?t.tileGrid:De({extent:Ge(e),maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});T.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 C(t){this.C=t.account,this.B=t.map||"",this.f=t.config||{},this.l={},Um.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}),Gm(this)}function Gm(t){var e,o,i=JSON.stringify(t.f);t.l[i]?Bm(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 Bm(t,e){t.jb("https://"+e.cdn_url.https+"/"+t.C+"/api/v1/map/"+e.layergroupid+"/{z}/{x}/{y}.png")}function L(t){a.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,wrapX:t.wrapX}),this.resolution=void 0,this.distance=void 0!==t.distance?t.distance:20,this.features=[],this.geometryFunction=t.geometryFunction||function(t){return O((t=t.V())instanceof m,10),t},this.source=t.source,this.source.J("change",L.prototype.sa,this)}function Xm(t){if(void 0!==t.resolution){t.features.length=0;for(var e=vt(),o=t.distance*t.resolution,i=t.source.Xe(),r={},n=0,s=i.length;n<s;n++){var a=i[n];U(a).toString()in r||!(a=t.geometryFunction(a))||(wt(a=a.X(),e),lt(e,o,e),a=(a=t.source.Uf(e)).filter(function(t){return!((t=U(t).toString())in r)&&(r[t]=!0)}),t.features.push(function(t,e){for(var o=[0,0],i=e.length-1;0<=i;--i){var r=t.geometryFunction(e[i]);r?er(o,r.X()):e.splice(i,1)}return ar(o,1/e.length),(t=new x(new m(o))).set("features",e),t}(t,a)))}}}function Vm(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 Wm(t){$b.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||tm,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 Zm(t){$b.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||tm,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 Km(t){var e=t.imageExtent,o=void 0!==t.crossOrigin?t.crossOrigin:null,i=t.imageLoadFunction||tm;$b.call(this,{attributions:t.attributions,logo:t.logo,projection:v(t.projection)}),this.M=new b0(e,void 0,1,this.j,t.url,o,i),this.f=t.imageSize||null,d(this.M,"change",this.o,this)}function zm(t){$b.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||tm,this.f=t.params||{},this.l=!0,qm(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}j.prototype.T=function(){return this.f},j.prototype.fa=function(){return this.l},j.prototype.pa=function(t){var e,i,s,a,r,n,p;200!=t.statusCode||"OK"!=t.statusDescription||"ValidCredentials"!=t.authenticationResultCode||1!=t.resourceSets.length||1!=t.resourceSets[0].resources.length?Iv(this,"error"):(-1==(e=t.brandLogoUri).indexOf("https")&&(e=e.replace("http","https")),i=t.resourceSets[0].resources[0],s=-1==this.C?i.zoomMax:this.C,a=De({extent:t=Ge(this.c),minZoom:i.zoomMin,maxZoom:s,tileSize:(i.imageWidth==i.imageHeight?i.imageWidth:[i.imageWidth,i.imageHeight])/this.nb()}),this.tileGrid=a,r=this.R,n=this.B,this.tileUrlFunction=Mm(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 Ee(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&&(p=we(v("EPSG:4326"),this.c),(t=i.imageryProviders.map(function(t){var e=t.attribution,n={};return t.coverageAreas.forEach(function(t){var e,o=t.zoomMin,i=Math.min(t.zoomMax,s);for(t=Bt([(t=t.bbox)[1],t[0],t[3],t[2]],p),e=o;e<=i;++e){var r=e.toString(),o=Ie(a,t,e);r in n?n[r].push(o):n[r]=[o]}}),new Be({html:e,tileRanges:n})})).push(Om),this.ua(t)),this.D=e,Iv(this,"ready"))},e(Um,T),e(C,Um),(r=C.prototype).Kk=function(){return this.f},r.tq=function(t){Xt(this.f,t),Gm(this)},r.Xp=function(t){this.f=t||{},Gm(this)},r.Dl=function(t,e){if(!(e=e.target).status||200<=e.status&&e.status<300){try{var o=JSON.parse(e.responseText)}catch(t){return void Iv(this,"error")}Bm(this,o),this.l[t]=o,Iv(this,"ready")}else Iv(this,"error")},r.Cl=function(){Iv(this,"error")},e(L,a),(r=L.prototype).$n=function(){return this.distance},r.ao=function(){return this.source},r.Yd=function(t,e,o){this.source.Yd(t,e,o),e!==this.resolution&&(this.clear(),this.resolution=e,Xm(this),this.cd(this.features))},r.Yp=function(t){this.distance=t,this.sa()},r.sa=function(){this.clear(),Xm(this),this.cd(this.features),a.prototype.sa.call(this)},e(Wm,$b),(r=Wm.prototype).co=function(){return this.v},r.Jc=function(t,e,o,i){if(void 0===this.f)return null;e=Qb(this,e),o=this.T?o:1;var r=this.M;if(r&&this.I==this.i&&r.resolution==e&&r.a==o&&yt(r.G(),t))return r;Xt(r={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.v);var n=((t=t.slice())[0]+t[2])/2,s=(t[1]+t[3])/2,a=(1!=this.B&&(a=this.B*Dt(t)/2,p=this.B*It(t)/2,t[0]=n-a,t[1]=s-p,t[2]=n+a,t[3]=s+p),e/o),p=Math.ceil(Dt(t)/a),h=Math.ceil(It(t)/a);return t[0]=n-a*p/2,t[2]=n+a*p/2,t[1]=s-a*h/2,t[3]=s+a*h/2,this.l[0]=p,this.l[1]=h,n=t,s=this.l,a=o,i=i.mb.split(":").pop(),r.SIZE=s[0]+","+s[1],r.BBOX=n.join(","),r.BBOXSR=i,r.IMAGESR=i,r.DPI=Math.round(90*a),(n=(i=this.f).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"))==i&&O(!1,50),r=Vm(n,r),this.M=new b0(t,e,o,this.j,r,this.R,this.g),this.I=this.i,d(this.M,"change",this.o,this),this.M},r.bo=function(){return this.g},r.eo=function(){return this.f},r.fo=function(t){this.M=null,this.g=t,this.s()},r.ho=function(t){t!=this.f&&(this.f=t,this.M=null,this.s())},r.io=function(t){Xt(this.v,t),this.M=null,this.s()},e(Zm,$b),(r=Zm.prototype).ko=function(){return this.g},r.Jc=function(t,e,o){e=Qb(this,e),o=this.T?o:1;var i,r,n,s,a,p,h,l,u=this.M;return u&&this.B==this.i&&u.resolution==e&&u.a==o&&yt(u.G(),t)||(1!=this.v&&Gt(t=t.slice(),this.v),l=[Dt(t)/e*o,It(t)/e*o],void 0!==this.I?(u=this.I,i=Lt(t),r=this.pa,n=Dt(t),s=It(t),a=l[0],p=l[1],h=.0254/this.l,l={OPERATION:this.va?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.l,SETDISPLAYWIDTH:Math.round(l[0]),SETDISPLAYHEIGHT:Math.round(l[1]),SETVIEWSCALE:a*s<p*n?n*r/(a*h):s*r/(p*h),SETVIEWCENTERX:i[0],SETVIEWCENTERY:i[1]},Xt(l,this.g),u=Vm(u,l),d(u=new b0(t,e,o,this.j,u,this.R,this.f),"change",this.o,this)):u=null,this.M=u,this.B=this.i),u},r.jo=function(){return this.f},r.mo=function(t){Xt(this.g,t),this.s()},r.lo=function(t){this.M=null,this.f=t,this.s()},e(Km,$b),Km.prototype.Jc=function(t){return Ot(t,this.M.G())?this.M:null},Km.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(Dt(i)/(It(i)/n)))!=o)&&(r=(i=Po(i,n)).canvas,i.drawImage(e,0,0,o,n,0,0,r.width,r.height),this.M.Og(r)),$b.prototype.o.call(this,t)},e(zm,$b);var Ym=[101,101];function Hm(t,e,o,i,r,n){if(O(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:O(!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(","),Vm(t.g,n)}function qm(t){t.l=0<=tr(t.f.VERSION||"1.3.0")}function Jm(t){var e=void 0!==(t=t||{}).attributions?t.attributions:[_m];Um.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})}(r=zm.prototype).so=function(t,e,o,i){var r,n;if(void 0!==this.g)return r=Rt(t,e,0,Ym),n={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS},Xt(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,Hm(this,r,Ym,1,v(o),n)},r.uo=function(){return this.f},r.Jc=function(t,e,o,i){var r,n,s;return void 0===this.g?null:(r=(e=Qb(this,e))/(o=1==o||this.va&&void 0!==this.T?o:1),s=Rt(n=Lt(t),r,0,[Math.ceil(Dt(t)/r),Math.ceil(It(t)/r)]),t=Rt(n,r,0,[Math.ceil(this.I*Dt(t)/r),Math.ceil(this.I*It(t)/r)]),(n=this.M)&&this.R==this.i&&n.resolution==e&&n.a==o&&yt(n.G(),s)?n:(Xt(s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),this.B[0]=Math.round(Dt(t)/r),this.B[1]=Math.round(It(t)/r),i=Hm(this,t,this.B,o,i,s),this.M=new b0(t,e,o,this.j,i,this.pa,this.v),this.R=this.i,d(this.M,"change",this.o,this),this.M))},r.to=function(){return this.v},r.vo=function(){return this.g},r.wo=function(t){this.M=null,this.v=t,this.s()},r.xo=function(t){t!=this.g&&(this.g=t,this.M=null,this.s())},r.yo=function(t){Xt(this.f,t),qm(this),this.M=null,this.s()},e(Jm,Um);var _m=new Be({html:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.'}),fi=(mp.df={},mp.df.Af=function(){},mp.df=mp.df||{});function $m(u){var c=!0;try{new ImageData(10,10)}catch(t){c=!1}return function(t){var e=t.buffers,o=t.meta,i=t.width,r=t.height,n=e.length,s=e[0].byteLength;if(t.imageOps){for(s=Array(n),t=0;t<n;++t){var a=t,p=new Uint8ClampedArray(e[t]),h=i,l=r,p=c?new ImageData(p,h,l):{data:p,width:h,height:l};s[a]=p}i=u(s,o).data}else{for(i=new Uint8ClampedArray(s),r=Array(n),a=Array(n),t=0;t<n;++t)r[t]=new Uint8ClampedArray(e[t]),a[t]=[0,0,0,0];for(e=0;e<s;e+=4){for(t=0;t<n;++t)p=r[t],a[t][0]=p[e],a[t][1]=p[e+1],a[t][2]=p[e+2],a[t][3]=p[e+3];t=u(a,o),i[e]=t[0],i[e+1]=t[1],i[e+2]=t[2],i[e+3]=t[3]}}return i.buffer}}function Qm(t){this.Ff=!!t.$l;var e,o,i,r,n=[];if(e=0===t.threads?0:!this.Ff&&t.threads||1)for(var s=0;s<e;++s)n[s]=function(e,t){var o=Object.keys(e.lib||{}).map(function(t){return"var "+t+" = "+e.lib[t].toString()+";"}).concat(["var __minion__ = ("+$m.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,s));else n[0]=(o=t,i=this.gh.bind(this,0),r=$m(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 t1=!0;try{new ImageData(10,10)}catch(t){t1=!1}var e1=document.createElement("canvas").getContext("2d");function o1(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],s=null;n instanceof jm?(n=new A({source:n}),s=new hm(n)):n instanceof $b&&(n=new pm({source:n}),s=new Kb(n)),o[r]=s}return o}(t.sources);for(var e=0,o=this.g.length;e<o;++e)d(this.g[e],"change",this.s,this);this.T=new qi(function(){return 1},this.s.bind(this));for(var o={},i=0,r=(e=this.g.map(function(t){return us(t.a)})).length;i<r;++i)o[U(e[i].layer)]=e[i];this.f=null,this.I={animate:!1,attributions:{},coordinateToPixelTransform:ms(),extent:null,focus:null,index:0,layerStates:o,layerStatesArray:e,logos:{},pixelRatio:1,pixelToCoordinateTransform:ms(),postRenderFunctions:[],size:[0,0],skippedFeatureUids:{},tileQueue:this.T,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{}},$b.call(this,{}),t.operation&&this.v(t.operation,t.lib)}Qm.prototype.pp=function(t,e,o){this.dk({inputs:t,Qh:e,callback:o}),this.dh()},Qm.prototype.dk=function(t){for(this.Ed.push(t);this.Ed.length>this.fk;)this.Ed.shift().callback(null,null)},Qm.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),s=0;s<r;++s){for(var a=s*n,p=[],h=0,l=i.length;h<l;++h)p.push(i[s].slice(a,a+n));this.qe[s].postMessage({buffers:p,meta:t.Qh,imageOps:this.Ff,width:e,height:o},p)}}},Qm.prototype.gh=function(t,e){this.Jq||(this.bd[t]=e.data,--this.oe,0===this.oe&&this.gk())},Qm.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 s=o.inputs[0].data.length,r=new Uint8ClampedArray(s),n=Array(s),s=4*Math.ceil(s/4/i),a=0;a<i;++a){var p=a*s;r.set(new Uint8ClampedArray(this.bd[a].buffer),p),n[a]=this.bd[a].meta}this.Gf=null,this.bd={},o.callback(null,(t=r,e=o.inputs[0].width,o=o.inputs[0].height,t1?new ImageData(t,e,o):((e=e1.createImageData(e,o)).data.set(t),e)),n),this.dh()},fi.default={Af:Qm},fi.Af=Qm,e(o1,$b),o1.prototype.v=function(t,e){this.B=new mp.df.Af({operation:t,$l:"image"===this.va,rp:1,lib:e,threads:this.Sa}),this.s()},o1.prototype.Y=function(t,e,o,i){o=!0;for(var r=0,n=this.g.length;r<n;++r)if("ready"!==(h=this.g[r].a.ha()).getState()){o=!1;break}if(!o)return null;if((o=Xt({},this.I)).viewState=Xt({},o.viewState),h=Lt(t),o.extent=t.slice(),o.focus=h,o.size[0]=Math.round(Dt(t)/e),o.size[1]=Math.round(It(t)/e),(r=o.viewState).center=h,r.projection=i,r.resolution=e,Ji((this.l=o).tileQueue,16,16),this.f&&(i=this.f.resolution,o=this.f.G(),e===i&&St(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 s,a,p,h=this.g[o],r=t,n=t.layerStatesArray[o];if(!(h=h.sd(r,n)?(s=r.size[0],a=r.size[1],!i1||(p=i1.canvas).width!==s||p.height!==a?i1=Po(s,a):i1.clearRect(0,0,s,a),h.S(r,n,i1),i1.getImageData(0,0,s,a)):null))break t;e[o]=h}this.b(new r1(n1,t,i={})),this.B.pp(e,i,this.pa.bind(this,t))}return this.f},o1.prototype.pa=function(t,e,o,i){var r,n;!e&&o&&(e=t.extent,(r=t.viewState.resolution)===this.l.viewState.resolution)&&St(e,this.l.extent)&&(this.f?n=this.f.Y().getContext("2d"):(n=Po(Math.round(Dt(e)/r),Math.round(It(e)/r)),this.f=new m0(e,r,1,this.j,n.canvas)),n.putImageData(o,0,0),this.s(),this.R=this.i,this.b(new r1(s1,t,i)))};var i1=null;function r1(t,e,o){Qe.call(this,t),this.extent=e.extent,this.resolution=e.viewState.resolution/e.pixelRatio,this.data=o}e(r1,Qe),o1.prototype.Jc=function(){return null};var n1="beforeoperations",s1="afteroperations";function a1(t){var e=t.layer.indexOf("-"),e=l1[-1==e?t.layer:t.layer.slice(0,e)],o=h1[t.layer];Um.call(this,{attributions:p1,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(a1,Um);var p1=[new Be({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>.'}),_m],h1={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}},l1={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}};function R(t){T.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=vt(),Lm(this,u1(this))}function u1(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function c1(t){jm.call(this,{opaque:!1,projection:t.projection,tileGrid:t.tileGrid,wrapX:void 0===t.wrapX||t.wrapX})}function f1(t,e,o){w0.call(this,t,2),this.c=e,this.Ia=o,this.a=null}function y1(t){var e;this.f=null,T.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,projection:v("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX}),t.url?t.jsonp?wm(t.url,this.og.bind(this),this.Ve.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Ao.bind(this)),e.addEventListener("error",this.zo.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.og(t.tileJSON):O(!1,51)}function g1(t){var e;jm.call(this,{projection:v("EPSG:3857"),state:"loading"}),this.v=void 0===t.preemptive||t.preemptive,this.l=Pm,this.g=void 0,this.f=t.jsonp||!1,t.url?this.f?wm(t.url,this.pg.bind(this),this.We.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Eo.bind(this)),e.addEventListener("error",this.Do.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.pg(t.tileJSON):O(!1,51)}function d1(t,e,o,i,r,n){w0.call(this,t,e),this.o=o,this.a=i,this.v=r,this.c=this.j=this.g=null,this.l=n}function v1(t){var e;0==t.state&&(t.state=1,t.l?wm(t.o,t.Ji.bind(t),t.De.bind(t)):((e=new XMLHttpRequest).addEventListener("load",t.Co.bind(t)),e.addEventListener("error",t.Bo.bind(t)),e.open("GET",t.o),e.send()))}function I(t){var e=(t=t||{}).params||{};T.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="",m1(this),this.fa=vt(),x1(this),Lm(this,w1(this))}function b1(t,e,o,i,r,n,s){var a=t.urls;if(a){if(s.WIDTH=o[0],s.HEIGHT=o[1],s[t.l?"CRS":"SRS"]=n.mb,"STYLES"in t.f||(s.STYLES=""),1!=r)switch(t.B){case"geoserver":o=90*r+.5|0,s.FORMAT_OPTIONS="FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+";dpi:"+o:"dpi:"+o;break;case"mapserver":s.MAP_RESOLUTION=90*r;break;case"carmentaserver":case"qgis":s.DPI=90*r;break;default:O(!1,52)}return n=n.b,t.l&&"ne"==n.substr(0,2)&&(t=i[0],i[0]=i[1],i[1]=t,t=i[2],i[2]=i[3],i[3]=t),s.BBOX=i.join(","),Vm(1==a.length?a[0]:a[rt((e[1]<<e[0])+e[2],a.length)],s)}}function m1(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 w1(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function x1(t){t.l=0<=tr(t.f.VERSION||"1.3.0")}function S1(t,e,o,i,r,n,s,a,p,h,l,u,c,f){var y,g;w0.call(this,t,e),this.j=null,this.o={Nd:!1,Kg:null,mf:-1,Lg:-1},this.c=h,this.a=[],this.u=o,this.v=n,this.g=[],this.l=[],n&&(y=p.Aa(n),g=p.Da(t[0]),a.Rf(y,a.tc(g),function(t){var e,o=Nt(y,a.Aa(t));.5<=Dt(o)/g&&.5<=It(o)/g&&(o=t.toString(),(e=h[o])||(e=s(t,l,u),e=h[o]=new c(t,null==e?4:0,null==e?"":e,i,r),this.l.push(d(e,"change",f))),e.j++,this.a.push(o))}.bind(this)))}function M1(t,e){t.Pg(bl(e,t.o,t.$o.bind(t),t.Zo.bind(t)))}function P1(t,e,o,i,r){w0.call(this,t,e),this.j=0,this.o=i,this.g=null,this.c={},this.u=r,this.l=o}function A1(t){Nm.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||M1,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||P1,this.f={},this.tileGrid||(this.tileGrid=this.Ta(v(t.projection||"EPSG:3857")))}function E1(t){this.o=t.matrixIds,Te.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})}function T1(t,e,o){var r=[],n=[],s=[],a=[],p=[],h=void 0!==o?o:[],l=(o=v(t.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))).sc(),u="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<h.length)||W(h,function(t){return e.Identifier==t.TileMatrix}))&&(n.push(e.Identifier),t=28e-5*e.ScaleDenominator/l,o=e.TileWidth,i=e.TileHeight,s.push(u?[e.TopLeftCorner[1],e.TopLeftCorner[0]]:e.TopLeftCorner),r.push(t),a.push(o==i?o:[o,i]),p.push([e.MatrixWidth,-e.MatrixHeight]))}),new E1({extent:e,origins:s,resolutions:r,matrixIds:n,tileSizes:a,sizes:p})}function N(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=Am(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&&Xt(o,{Service:"WMTS",Request:"GetTile",Version:this.fa,Format:this.C}),this.f),s=e&&0<e.length?Mm(e.map(function(e){return e="KVP"==i?Vm(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},Xt(o,n),t=e,"KVP"==i?Vm(t,o):t.replace(/\{(\w+?)\}/g,function(t,e){return o[e]})}})):Pm;T.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:s,urls:e,wrapX:void 0!==t.wrapX&&t.wrapX}),Lm(this,j1(this))}function j1(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function C1(t){var e=(t=t||{}).size,o=e[0],i=e[1],n=[],r=256;switch(void 0!==t.tierSizeCalculation?t.tierSizeCalculation:R1){case R1:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),r+=r;break;case I1:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),o>>=1,i>>=1;break;default:O(!1,53)}n.push([1,1]),n.reverse();for(var r=[1],s=[0],i=1,o=n.length;i<o;i++)r.push(1<<i),s.push(n[i-1][0]*n[i-1][1]+s[i-1]);r.reverse(),e=new Te({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=Mm((r=Am(r)).map(function(r){return function(t){var e,o,i;if(t)return e=t[0],o=t[1],i={z:e,x:o,y:t=-t[2]-1,TileGroup:"TileGroup"+((o+t*n[e][0]+s[e])/256|0)},r.replace(/\{(\w+?)\}/g,function(t,e){return i[e]})}})),T.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:L1,tileGrid:e,tileUrlFunction:r})}function L1(t,e,o,i,r){M0.call(this,t,e,o,i,r),this.a=null}e(R,T),R.prototype.C=function(){return this.f},R.prototype.nb=function(t){return t},R.prototype.Fc=function(t,e,o){var i,r,n,s=this.tileGrid;if(!((s=s||this.Ta(o)).b.length<=t[0]))return i=s.Aa(t,this.l),r=pt(s.gb(t[0]),this.o),1!=e&&(r=at(r,e,this.o)),Xt(s={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.f),(n=this.urls)?(o=o.mb.split(":").pop(),s.SIZE=r[0]+","+r[1],s.BBOX=i.join(","),s.BBOXSR=o,s.IMAGESR=o,s.DPI=Math.round(s.DPI?s.DPI*e:90*e),Vm(t=(1==n.length?n[0]:n[rt((t[1]<<t[0])+t[2],n.length)]).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),s)):void 0},R.prototype.B=function(t){Xt(this.f,t),Lm(this,u1(this))},e(c1,jm),c1.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=pt(this.tileGrid.gb(t)),i=new f1(t=[t,e,o],i,e=(e=Rm(this,t))?Rm(this,e).toString():""),this.a.set(r,i),i)},e(f1,w0),f1.prototype.Y=function(){var t,e;return this.a||((e=Po((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)},f1.prototype.load=function(){},e(y1,T),(r=y1.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()},r.zo=function(){this.Ve()},r.pl=function(){return this.f},r.og=function(t){var e,o=v("EPSG:4326"),i=this.c,r=(t.bounds&&(n=we(o,i),e=Bt(t.bounds,n)),t.minzoom||0),n=t.maxzoom||22;if(this.tileGrid=i=De({extent:Ge(i),maxZoom:n,minZoom:r}),this.tileUrlFunction=Sm(t.tiles,i),void 0!==t.attribution&&!this.j){o=void 0!==e?e:o.G(),e={};for(;r<=n;++r)e[r.toString()]=[Ie(i,o,r)];this.ua([new Be({html:t.attribution,tileRanges:e})])}this.f=t,Iv(this,"ready")},r.Ve=function(){Iv(this,"error")},e(g1,jm),(r=g1.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()},r.Do=function(){this.We()},r.ml=function(){return this.g},r.zk=function(t,e,o,i,r){var n,s,a;this.tileGrid?(e=this.tileGrid.Be(t,e),e=this.Nc(e[0],e[1],e[2],1,this.c),n=t,s=o,a=i,t=r,0==e.state&&!0===t?(Ye(e,"change",function(){s.call(a,this.getData(n))},e),v1(e)):!0===t?setTimeout(function(){s.call(a,this.getData(n))}.bind(e),0):s.call(a,e.getData(n))):!0===r?setTimeout(function(){o.call(i,null)},0):o.call(i,null)},r.We=function(){Iv(this,"error")},r.pg=function(t){var e,o=v("EPSG:4326"),i=this.c,r=(t.bounds&&(n=we(o,i),e=Bt(t.bounds,n)),t.minzoom||0),n=t.maxzoom||22,s=(this.tileGrid=i=De({extent:Ge(i),maxZoom:n,minZoom:r}),this.g=t.template,t.grids);if(s){if(this.l=Sm(s,i),void 0!==t.attribution){for(o=void 0!==e?e:o.G(),e={};r<=n;++r)e[s=r.toString()]=[Ie(i,o,r)];this.ua([new Be({html:t.attribution,tileRanges:e})])}Iv(this,"ready")}else Iv(this,"error")},r.Nc=function(t,e,o,i,r){var n=this.Sb(t,e,o);return this.a.b.hasOwnProperty(n)?this.a.get(n):(e=Rm(this,t=[t,e,o],r),i=new d1(t,void 0!==(i=this.l(e,i,r))?0:4,void 0!==i?i:"",this.tileGrid.Aa(t),this.v,this.f),this.a.set(n,i),i)},r.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},e(d1,w0),(r=d1.prototype).Y=function(){return null},r.getData=function(t){var e;return!this.g||!this.j||"string"!=typeof(e=this.g[Math.floor((1-(t[1]-this.a[1])/(this.a[3]-this.a[1]))*this.g.length)])?null:(93<=(e=e.charCodeAt(Math.floor((t[0]-this.a[0])/(this.a[2]-this.a[0])*e.length)))&&e--,35<=e&&e--,t=null,(e-=32)in this.j&&(e=this.j[e],t=this.c&&e in this.c?this.c[e]:e),t)},r.bb=function(){return this.o},r.De=function(){this.state=3,this.s()},r.Ji=function(t){this.g=t.grid,this.j=t.keys,this.c=t.data,this.state=4,this.s()},r.Co=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.De()}this.Ji(e)}else this.De()},r.Bo=function(){this.De()},r.load=function(){this.v&&v1(this)},e(I,T),(r=I.prototype).Fo=function(t,e,o,i){o=v(o);var r,n,s,a=this.tileGrid;if(e=(a=a||this.Ta(o)).Be(t,e),!(a.b.length<=e[0]))return r=a.Da(e[0]),n=a.Aa(e,this.fa),a=pt(a.gb(e[0]),this.o),(s=this.C)&&(a=st(a,s,this.o),n=lt(n,r*s,n)),s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS},Xt(s,this.f,i),i=Math.floor((n[3]-t[1])/r),s[this.l?"I":"X"]=Math.floor((t[0]-n[0])/r),s[this.l?"J":"Y"]=i,b1(this,e,a,n,1,o,s)},r.Xf=function(){return this.C},r.Sb=function(t,e,o){return this.R+T.prototype.Sb.call(this,t,e,o)},r.Go=function(){return this.f},r.nb=function(t){return this.T&&void 0!==this.B?t:1},r.Fc=function(t,e,o){var i,r,n,s=this.tileGrid;if(!((s=s||this.Ta(o)).b.length<=t[0]))return 1==e||this.T&&void 0!==this.B||(e=1),i=s.Da(t[0]),r=s.Aa(t,this.fa),s=pt(s.gb(t[0]),this.o),(n=this.C)&&(s=st(s,n,this.o),r=lt(r,i*n,r)),1!=e&&(s=at(s,e,this.o)),Xt(i={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),b1(this,t,s,r,e,o,i)},r.eb=function(t){T.prototype.eb.call(this,t),m1(this)},r.Ho=function(t){Xt(this.f,t),m1(this),x1(this),Lm(this,w1(this))},e(S1,w0),S1.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],$e(i))}this.a.length=0,this.c=null,1==this.state&&(this.g.forEach(qe),this.g.length=0),this.i&&$e(this.i),this.state=5,this.s(),this.l.forEach(qe),this.l.length=0,w0.prototype.ka.call(this)},S1.prototype.Y=function(){return-1==this.o.Lg?null:this.j.canvas},S1.prototype.bb=function(){return this.a.join("/")+"/"+this.u},S1.prototype.load=function(){var r=0,n=!1;0==this.state&&S0(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&&V(this.a,e),1==i.state&&(o=d(i,"change",function(){var t=i.getState();2!=t&&3!=t||(--r,qe(o),V(this.g,o),3==t&&(V(this.a,e),n=!0),r)||S0(this,0<this.a.length?2:3)}.bind(this)),this.g.push(o),++r)}.bind(this)),r||setTimeout(function(){S0(this,0<this.a.length?2:n?3:4)}.bind(this),0)},e(P1,w0),(r=P1.prototype).ka=function(){this.g=null,this.c={},this.state=5,this.s(),w0.prototype.ka.call(this)},r.Lm=function(){return this.o},r.Km=function(){return this.g},r.bb=function(){return this.l},r.Mm=function(){return this.a},r.load=function(){0==this.state&&(S0(this,1),this.u(this,this.l),this.v(null,NaN,null))},r.$o=function(t,e){this.ig(e),this.mj(t)},r.Zo=function(){S0(this,3)},r.mj=function(t){this.g=t,S0(this,2)},r.ig=function(t){this.a=t},r.Pg=function(t){this.v=t},e(A1,Nm),A1.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 S1(t=[t,e,o],void 0!==(o=(e=Rm(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)},A1.prototype.Ta=function(t){var e=t.mb,o=this.f[e];return o||(o=this.tileGrid,o=this.f[e]=Ue(t,void 0,o?o.gb(o.minZoom):void 0)),o},A1.prototype.nb=function(t){return null==t?Nm.prototype.nb.call(this,t):t},A1.prototype.Xd=function(t,e,o){return t=pt(this.Ta(o).gb(t)),[Math.round(t[0]*e),Math.round(t[1]*e)]},e(E1,Te),E1.prototype.l=function(){return this.o},e(N,T),(r=N.prototype).Mk=function(){return this.f},r.Io=function(){return this.C},r.Jo=function(){return this.B},r.$k=function(){return this.l},r.kl=function(){return this.T},r.Ko=function(){return this.R},r.rl=function(){return this.fa},r.uq=function(t){Xt(this.f,t),Lm(this,j1(this))},e(C1,T),e(L1,M0),L1.prototype.Y=function(){var t,e;return this.a||(t=M0.prototype.Y.call(this),2==this.state?256==t.width&&256==t.height?this.a=t:((e=Po(256,256)).drawImage(t,0,0),this.a=e.canvas):t)};var R1="default",I1="truncated";function N1(t,e){this.b=e,this.a=[{x:0,y:0,width:t,height:t}],this.c={},this.i=Po(t,t),this.f=this.i.canvas}function F1(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 k1(t){this.a=void 0!==(t=t||{}).initialSize?t.initialSize:256,this.i=void 0!==t.maxSize?t.maxSize:void 0!==vi?vi:2048,this.b=void 0!==t.space?t.space:1,this.f=[new N1(this.a,this.b)],this.c=this.a,this.g=[new N1(this.c,this.b)]}function D1(t,e,o,i,r,n,s){for(var a=e?t.g:t.f,p=0,h=a.length;p<h;++p){var l=a[p];if(l=l.add(o,i,r,n,s))return l;l||p!==h-1||(e?(l=Math.min(2*t.c,t.i),t.c=l):(l=Math.min(2*t.a,t.i),t.a=l),l=new N1(l,t.b),a.push(l),++h)}return null}return N1.prototype.get=function(t){return this.c[t]||null},N1.prototype.add=function(t,e,o,i,r){for(var n=0,s=this.a.length;n<s;++n){var a=this.a[n];if(a.width>=e+this.b&&a.height>=o+this.b)return s={offsetX:a.x+this.b,offsetY:a.y+this.b,image:this.f},this.c[t]=s,i.call(r,this.i,a.x+this.b,a.y+this.b),t=n,e+=this.b,i=o+this.b,e=a.width-e>a.height-i?(o={x:a.x+e,y:a.y,width:a.width-e,height:a.height},{x:a.x,y:a.y+i,width:e,height:a.height-i}):(o={x:a.x+e,y:a.y,width:a.width-e,height:i},{x:a.x,y:a.y+i,width:a.width,height:a.height-i}),F1(this,t,o,e),s}return null},k1.prototype.add=function(t,e,o,i,r,n){return!(e+this.b>this.i||o+this.b>this.i)&&(i=D1(this,!1,t,e,o,i,n))?(t=D1(this,!0,t,e,o,r||Y,n),{offsetX:i.offsetX,offsetY:i.offsetY,image:i.image,Zl:t.image}):null},t("ol.Attribution",Be),Be.prototype.getHTML=Be.prototype.i,t("ol.Collection",ho),ho.prototype.extend=ho.prototype.fg,ho.prototype.getArray=ho.prototype.tm,ho.prototype.getLength=ho.prototype.dc,ho.prototype.insertAt=ho.prototype.He,ho.prototype.removeAt=ho.prototype.Hg,ho.prototype.setAt=ho.prototype.Wp,t("ol.color.asArray",vo),t("ol.color.asString",bo),t("ol.colorlike.asColorLike",Mo),t("ol.control.defaults",Uo),t("ol.coordinate.add",er),t("ol.coordinate.createStringXY",function(e){return function(t){return ur(t,e)}}),t("ol.coordinate.format",rr),t("ol.coordinate.rotate",sr),t("ol.coordinate.toStringHDMS",function(t,e){return t?ir("NS",t[1],e)+" "+ir("EW",t[0],e):""}),t("ol.coordinate.toStringXY",ur),t("ol.DeviceOrientation",Uh),Uh.prototype.getAlpha=Uh.prototype.Fk,Uh.prototype.getBeta=Uh.prototype.Ik,Uh.prototype.getGamma=Uh.prototype.Ok,Uh.prototype.getHeading=Uh.prototype.um,Uh.prototype.getTracking=Uh.prototype.Th,Uh.prototype.setTracking=Uh.prototype.gg,t("ol.easing.easeIn",Ro),t("ol.easing.easeOut",Io),t("ol.easing.inAndOut",No),t("ol.easing.linear",Fo),t("ol.easing.upAndDown",function(t){return t<.5?No(2*t):1-No(2*(t-.5))}),t("ol.extent.boundingExtent",ht),t("ol.extent.buffer",lt),t("ol.extent.containsCoordinate",ft),t("ol.extent.containsExtent",yt),t("ol.extent.containsXY",gt),t("ol.extent.createEmpty",vt),t("ol.extent.equals",St),t("ol.extent.extend",Mt),t("ol.extent.getArea",Tt),t("ol.extent.getBottomLeft",jt),t("ol.extent.getBottomRight",Ct),t("ol.extent.getCenter",Lt),t("ol.extent.getHeight",It),t("ol.extent.getIntersection",Nt),t("ol.extent.getSize",function(t){return[t[2]-t[0],t[3]-t[1]]}),t("ol.extent.getTopLeft",Ft),t("ol.extent.getTopRight",kt),t("ol.extent.getWidth",Dt),t("ol.extent.intersects",Ot),t("ol.extent.isEmpty",Ut),t("ol.extent.applyTransform",Bt),t("ol.Feature",x),x.prototype.getGeometry=x.prototype.V,x.prototype.getId=x.prototype.wm,x.prototype.getGeometryName=x.prototype.Qk,x.prototype.getStyle=x.prototype.xm,x.prototype.getStyleFunction=x.prototype.Lc,x.prototype.setGeometry=x.prototype.Ra,x.prototype.setStyle=x.prototype.hg,x.prototype.setId=x.prototype.jc,x.prototype.setGeometryName=x.prototype.Tc,t("ol.featureloader.xhr",ml),t("ol.Geolocation",p0),p0.prototype.getAccuracy=p0.prototype.Dk,p0.prototype.getAccuracyGeometry=p0.prototype.Ek,p0.prototype.getAltitude=p0.prototype.Gk,p0.prototype.getAltitudeAccuracy=p0.prototype.Hk,p0.prototype.getHeading=p0.prototype.ym,p0.prototype.getPosition=p0.prototype.zm,p0.prototype.getProjection=p0.prototype.Uh,p0.prototype.getSpeed=p0.prototype.ll,p0.prototype.getTracking=p0.prototype.Vh,p0.prototype.getTrackingOptions=p0.prototype.Gh,p0.prototype.setProjection=p0.prototype.Wh,p0.prototype.setTracking=p0.prototype.Ke,p0.prototype.setTrackingOptions=p0.prototype.wj,t("ol.Graticule",c0),c0.prototype.getMap=c0.prototype.Cm,c0.prototype.getMeridians=c0.prototype.al,c0.prototype.getParallels=c0.prototype.hl,t("ol.has.DEVICE_PIXEL_RATIO",ni),t("ol.has.CANVAS",ai),t("ol.has.DEVICE_ORIENTATION",pi),t("ol.has.GEOLOCATION",hi),t("ol.has.TOUCH",li),t("ol.has.WEBGL",gi),b0.prototype.getImage=b0.prototype.Y,M0.prototype.getImage=M0.prototype.Y,t("ol.inherits",e),t("ol.interaction.defaults",hs),t("ol.Kinetic",sn),t("ol.loadingstrategy.all",Cv),t("ol.loadingstrategy.bbox",function(t){return[t]}),t("ol.loadingstrategy.tile",function(i){return function(t,e){e=i.tc(e),t=Ie(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",ro),ro.prototype.getKeys=ro.prototype.O,ro.prototype.getProperties=ro.prototype.N,ro.prototype.setProperties=ro.prototype.H,ro.prototype.unset=ro.prototype.P,t("ol.Observable",io),t("ol.Observable.unByKey",function(t){if(Array.isArray(t))for(var e=0,o=t.length;e<o;++e)qe(t[e]);else qe(t)}),io.prototype.changed=io.prototype.s,io.prototype.dispatchEvent=io.prototype.b,io.prototype.getRevision=io.prototype.L,io.prototype.on=io.prototype.J,io.prototype.un=io.prototype.K,t("ol.Overlay",fh),fh.prototype.getElement=fh.prototype.Rd,fh.prototype.getId=fh.prototype.Jm,fh.prototype.getMap=fh.prototype.Me,fh.prototype.getOffset=fh.prototype.Dh,fh.prototype.getPosition=fh.prototype.Yh,fh.prototype.getPositioning=fh.prototype.Eh,fh.prototype.setElement=fh.prototype.lj,fh.prototype.setOffset=fh.prototype.rj,fh.prototype.setPosition=fh.prototype.Ne,fh.prototype.setPositioning=fh.prototype.uj,t("ol.proj.METERS_PER_UNIT",Yt),t("ol.proj.setProj4",function(t){Ht=t}),t("ol.proj.getPointResolution",ce),t("ol.proj.addEquivalentProjections",fe),t("ol.proj.addProjection",ye),t("ol.proj.addCoordinateTransforms",de),t("ol.proj.fromLonLat",function(t,e){return Me(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}),t("ol.proj.toLonLat",function(t,e){return Me(t,void 0!==e?e:"EPSG:3857","EPSG:4326")}),t("ol.proj.get",v),t("ol.proj.equivalent",be),t("ol.proj.getTransform",me),t("ol.proj.transform",Me),t("ol.proj.transformExtent",Pe),t("ol.render.toContext",function(t,e){var o=t.canvas,i=e||{};return e=i.pixelRatio||ni,(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 Vs(t,e,o=[0,0,o.width,o.height],Es(ms(),e,e),0)}),t("ol.size.toSize",pt),t("ol.Sphere",Kt),Kt.prototype.geodesicArea=Kt.prototype.a,Kt.prototype.haversineDistance=Kt.prototype.b,w0.prototype.getTileCoord=w0.prototype.f,t("ol.tilegrid.createXYZ",De),P1.prototype.getFormat=P1.prototype.Lm,P1.prototype.getFeatures=P1.prototype.Km,P1.prototype.getProjection=P1.prototype.Mm,P1.prototype.setFeatures=P1.prototype.mj,P1.prototype.setProjection=P1.prototype.ig,P1.prototype.setLoader=P1.prototype.Pg,t("ol.View",h),h.prototype.getAnimating=h.prototype.Ic,h.prototype.getInteracting=h.prototype.Rk,h.prototype.cancelAnimations=h.prototype.ed,h.prototype.constrainCenter=h.prototype.Ec,h.prototype.getCenter=h.prototype.wa,h.prototype.calculateExtent=h.prototype.dd,h.prototype.getMaxResolution=h.prototype.Nm,h.prototype.getMinResolution=h.prototype.Pm,h.prototype.getMaxZoom=h.prototype.Om,h.prototype.setMaxZoom=h.prototype.eq,h.prototype.getMinZoom=h.prototype.Qm,h.prototype.setMinZoom=h.prototype.fq,h.prototype.getProjection=h.prototype.Rm,h.prototype.getResolution=h.prototype.Pa,h.prototype.getResolutions=h.prototype.Sm,h.prototype.getResolutionForExtent=h.prototype.ze,h.prototype.getRotation=h.prototype.Qa,h.prototype.getZoom=h.prototype.Hh,h.prototype.getZoomForResolution=h.prototype.Ce,h.prototype.fit=h.prototype.Qf,h.prototype.centerOn=h.prototype.uk,h.prototype.setCenter=h.prototype.ob,h.prototype.setResolution=h.prototype.Vc,h.prototype.setRotation=h.prototype.Oe,h.prototype.setZoom=h.prototype.lq,t("ol.xml.getAllTextContent",il),t("ol.xml.parse",sl),Aa.prototype.getGL=Aa.prototype.Wo,Aa.prototype.useProgram=Aa.prototype.Qc,t("ol.tilegrid.TileGrid",Te),Te.prototype.forEachTileCoord=Te.prototype.Rf,Te.prototype.getMaxZoom=Te.prototype.Ti,Te.prototype.getMinZoom=Te.prototype.Ui,Te.prototype.getOrigin=Te.prototype.Pc,Te.prototype.getResolution=Te.prototype.Da,Te.prototype.getResolutions=Te.prototype.Vi,Te.prototype.getTileCoordExtent=Te.prototype.Aa,Te.prototype.getTileCoordForCoordAndResolution=Te.prototype.Be,Te.prototype.getTileCoordForCoordAndZ=Te.prototype.bg,Te.prototype.getTileSize=Te.prototype.gb,Te.prototype.getZForResolution=Te.prototype.tc,t("ol.tilegrid.WMTS",E1),E1.prototype.getMatrixIds=E1.prototype.l,t("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",T1),t("ol.style.AtlasManager",k1),t("ol.style.Circle",Yh),Yh.prototype.setRadius=Yh.prototype.Uc,t("ol.style.Fill",Hh),Hh.prototype.getColor=Hh.prototype.i,Hh.prototype.setColor=Hh.prototype.c,t("ol.style.Icon",af),af.prototype.getAnchor=af.prototype.Hc,af.prototype.getColor=af.prototype.Lo,af.prototype.getImage=af.prototype.Y,af.prototype.getOrigin=af.prototype.Oc,af.prototype.getSrc=af.prototype.Mo,af.prototype.getSize=af.prototype.ic,t("ol.style.Image",Zh),Zh.prototype.getOpacity=Zh.prototype.Ze,Zh.prototype.getRotateWithView=Zh.prototype.$e,Zh.prototype.getRotation=Zh.prototype.af,Zh.prototype.getScale=Zh.prototype.bf,Zh.prototype.getSnapToPixel=Zh.prototype.Ae,Zh.prototype.setOpacity=Zh.prototype.td,Zh.prototype.setRotation=Zh.prototype.cf,Zh.prototype.setScale=Zh.prototype.ud,t("ol.style.RegularShape",Kh),Kh.prototype.getAnchor=Kh.prototype.Hc,Kh.prototype.getAngle=Kh.prototype.Pi,Kh.prototype.getFill=Kh.prototype.Fa,Kh.prototype.getImage=Kh.prototype.Y,Kh.prototype.getOrigin=Kh.prototype.Oc,Kh.prototype.getPoints=Kh.prototype.Qi,Kh.prototype.getRadius=Kh.prototype.Ri,Kh.prototype.getRadius2=Kh.prototype.Fh,Kh.prototype.getSize=Kh.prototype.ic,Kh.prototype.getStroke=Kh.prototype.Ga,t("ol.style.Stroke",hp),hp.prototype.getColor=hp.prototype.No,hp.prototype.getLineCap=hp.prototype.Vk,hp.prototype.getLineDash=hp.prototype.Oo,hp.prototype.getLineDashOffset=hp.prototype.Wk,hp.prototype.getLineJoin=hp.prototype.Xk,hp.prototype.getMiterLimit=hp.prototype.bl,hp.prototype.getWidth=hp.prototype.Po,hp.prototype.setColor=hp.prototype.Qo,hp.prototype.setLineCap=hp.prototype.aq,hp.prototype.setLineDashOffset=hp.prototype.bq,hp.prototype.setLineJoin=hp.prototype.cq,hp.prototype.setMiterLimit=hp.prototype.gq,hp.prototype.setWidth=hp.prototype.jq,t("ol.style.Style",qh),qh.prototype.getGeometry=qh.prototype.V,qh.prototype.getGeometryFunction=qh.prototype.Pk,qh.prototype.getFill=qh.prototype.Fa,qh.prototype.setFill=qh.prototype.pf,qh.prototype.getImage=qh.prototype.Y,qh.prototype.setImage=qh.prototype.Og,qh.prototype.getStroke=qh.prototype.Ga,qh.prototype.setStroke=qh.prototype.qf,qh.prototype.getText=qh.prototype.Na,qh.prototype.setText=qh.prototype.xd,qh.prototype.getZIndex=qh.prototype.Ba,qh.prototype.setGeometry=qh.prototype.Ra,qh.prototype.setZIndex=qh.prototype.Vb,t("ol.style.Text",pf),pf.prototype.getFont=pf.prototype.Nk,pf.prototype.getOffsetX=pf.prototype.cl,pf.prototype.getOffsetY=pf.prototype.dl,pf.prototype.getFill=pf.prototype.Fa,pf.prototype.getRotateWithView=pf.prototype.Ro,pf.prototype.getRotation=pf.prototype.So,pf.prototype.getScale=pf.prototype.To,pf.prototype.getStroke=pf.prototype.Ga,pf.prototype.getText=pf.prototype.Na,pf.prototype.getTextAlign=pf.prototype.nl,pf.prototype.getTextBaseline=pf.prototype.ol,pf.prototype.setFont=pf.prototype.nj,pf.prototype.setOffsetX=pf.prototype.sj,pf.prototype.setOffsetY=pf.prototype.tj,pf.prototype.setFill=pf.prototype.pf,pf.prototype.setRotation=pf.prototype.Uo,pf.prototype.setScale=pf.prototype.Si,pf.prototype.setStroke=pf.prototype.qf,pf.prototype.setText=pf.prototype.xd,pf.prototype.setTextAlign=pf.prototype.vj,pf.prototype.setTextBaseline=pf.prototype.hq,t("ol.source.BingMaps",j),t("ol.source.BingMaps.TOS_ATTRIBUTION",Om),j.prototype.getApiKey=j.prototype.T,j.prototype.getImagerySet=j.prototype.fa,t("ol.source.CartoDB",C),C.prototype.getConfig=C.prototype.Kk,C.prototype.updateConfig=C.prototype.tq,C.prototype.setConfig=C.prototype.Xp,t("ol.source.Cluster",L),L.prototype.getDistance=L.prototype.$n,L.prototype.getSource=L.prototype.ao,L.prototype.setDistance=L.prototype.Yp,t("ol.source.Image",$b),t("ol.source.ImageArcGISRest",Wm),Wm.prototype.getParams=Wm.prototype.co,Wm.prototype.getImageLoadFunction=Wm.prototype.bo,Wm.prototype.getUrl=Wm.prototype.eo,Wm.prototype.setImageLoadFunction=Wm.prototype.fo,Wm.prototype.setUrl=Wm.prototype.ho,Wm.prototype.updateParams=Wm.prototype.io,t("ol.source.ImageCanvas",nm),t("ol.source.ImageMapGuide",Zm),Zm.prototype.getParams=Zm.prototype.ko,Zm.prototype.getImageLoadFunction=Zm.prototype.jo,Zm.prototype.updateParams=Zm.prototype.mo,Zm.prototype.setImageLoadFunction=Zm.prototype.lo,t("ol.source.ImageStatic",Km),t("ol.source.ImageVector",sm),sm.prototype.getSource=sm.prototype.no,sm.prototype.getStyle=sm.prototype.oo,sm.prototype.getStyleFunction=sm.prototype.po,sm.prototype.setStyle=sm.prototype.Ii,t("ol.source.ImageWMS",zm),zm.prototype.getGetFeatureInfoUrl=zm.prototype.so,zm.prototype.getParams=zm.prototype.uo,zm.prototype.getImageLoadFunction=zm.prototype.to,zm.prototype.getUrl=zm.prototype.vo,zm.prototype.setImageLoadFunction=zm.prototype.wo,zm.prototype.setUrl=zm.prototype.xo,zm.prototype.updateParams=zm.prototype.yo,t("ol.source.OSM",Jm),t("ol.source.OSM.ATTRIBUTION",_m),t("ol.source.Raster",o1),o1.prototype.setOperation=o1.prototype.v,t("ol.source.Source",Lv),Lv.prototype.getAttributions=Lv.prototype.ya,Lv.prototype.getLogo=Lv.prototype.xa,Lv.prototype.getProjection=Lv.prototype.za,Lv.prototype.refresh=Lv.prototype.sa,Lv.prototype.setAttributions=Lv.prototype.ua,t("ol.source.Stamen",a1),t("ol.source.Tile",jm),jm.prototype.getTileGrid=jm.prototype.ab,t("ol.source.TileArcGISRest",R),R.prototype.getParams=R.prototype.C,R.prototype.updateParams=R.prototype.B,t("ol.source.TileDebug",c1),t("ol.source.TileImage",T),T.prototype.setRenderReprojectionEdges=T.prototype.Pb,T.prototype.setTileGridForProjection=T.prototype.Qb,t("ol.source.TileJSON",y1),y1.prototype.getTileJSON=y1.prototype.pl,t("ol.source.TileUTFGrid",g1),g1.prototype.getTemplate=g1.prototype.ml,g1.prototype.forDataAtCoordinateAndResolution=g1.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,Nm.prototype.getTileLoadFunction=Nm.prototype.pb,Nm.prototype.getTileUrlFunction=Nm.prototype.qb,Nm.prototype.getUrls=Nm.prototype.rb,Nm.prototype.setTileLoadFunction=Nm.prototype.vb,Nm.prototype.setTileUrlFunction=Nm.prototype.cb,Nm.prototype.setUrl=Nm.prototype.jb,Nm.prototype.setUrls=Nm.prototype.eb,t("ol.source.Vector",a),a.prototype.addFeature=a.prototype.yb,a.prototype.addFeatures=a.prototype.cd,a.prototype.forEachFeature=a.prototype.sh,a.prototype.forEachFeatureInExtent=a.prototype.$b,a.prototype.forEachFeatureIntersectingExtent=a.prototype.th,a.prototype.getFeaturesCollection=a.prototype.Ah,a.prototype.getFeatures=a.prototype.Xe,a.prototype.getFeaturesAtCoordinate=a.prototype.zh,a.prototype.getFeaturesInExtent=a.prototype.Uf,a.prototype.getClosestFeatureToCoordinate=a.prototype.vh,a.prototype.getExtent=a.prototype.G,a.prototype.getFeatureById=a.prototype.yh,a.prototype.getFormat=a.prototype.Mi,a.prototype.getUrl=a.prototype.Ni,a.prototype.removeFeature=a.prototype.Gb,t("ol.source.VectorTile",A1),t("ol.source.WMTS",N),N.prototype.getDimensions=N.prototype.Mk,N.prototype.getFormat=N.prototype.Io,N.prototype.getLayer=N.prototype.Jo,N.prototype.getMatrixSet=N.prototype.$k,N.prototype.getRequestEncoding=N.prototype.kl,N.prototype.getStyle=N.prototype.Ko,N.prototype.getVersion=N.prototype.rl,N.prototype.updateDimensions=N.prototype.uq,t("ol.source.WMTS.optionsFromCapabilities",function(t,r){var e=W(t.Contents.Layer,function(t){return t.Identifier==r.layer});if(null===e)return null;var o,i,n=t.Contents.TileMatrixSet,s=1<e.TileMatrixSetLink.length?"projection"in r?z(e.TileMatrixSetLink,function(e){var t=W(n,function(t){return t.Identifier==e.TileMatrixSet}).SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"),o=v(t),i=v(r.projection);return o&&i?be(o,i):t==r.projection}):z(e.TileMatrixSetLink,function(t){return t.TileMatrixSet==r.matrixSet}):0,a=e.TileMatrixSetLink[s=s<0?0:s].TileMatrixSet,p=e.TileMatrixSetLink[s].TileMatrixSetLimits,h=e.Format[0],l=("format"in r&&(h=r.format),s=z(e.Style,function(t){return"style"in r?t.Title==r.style:t.isDefault}),s=e.Style[s=s<0?0:s].Identifier,{}),u=("Dimension"in e&&e.Dimension.forEach(function(t){var e=t.Identifier,o=t.Default;void 0===o&&(o=t.Value[0]),l[e]=o}),W(t.Contents.TileMatrixSet,function(t){return t.Identifier==a})),c="projection"in r?v(r.projection):v(u.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3")),f=e.WGS84BoundingBox,y=(p=T1(u,i=void 0!==f&&(o=v("EPSG:4326").G(),o=f[0]==o[0]&&f[2]==o[2],i=Pe(f,"EPSG:4326",c),f=c.G())&&!yt(f,i)?void 0:i,p),[]),u=void 0!==(u=r.requestEncoding)?u:"";if("OperationsMetadata"in t&&"GetTile"in t.OperationsMetadata)for(i=0,f=(t=t.OperationsMetadata.GetTile.DCP.HTTP.Get).length;i<f;++i){var g=W(t[i].Constraint,function(t){return"GetEncoding"==t.name}).AllowedValues.Value;if("KVP"!==(u=""===u?g[0]:u))break;D(g,"KVP")&&y.push(t[i].href)}return y.length||(u="REST",e.ResourceURL.forEach(function(t){"tile"===t.resourceType&&(h=t.format,y.push(t.template))})),{urls:y,layer:r.layer,matrixSet:a,format:h,projection:c,requestEncoding:u,tileGrid:p,style:s,dimensions:l,wrapX:o,crossOrigin:r.crossOrigin}}),t("ol.source.XYZ",Um),t("ol.source.Zoomify",C1),sg.prototype.getExtent=sg.prototype.G,sg.prototype.getId=sg.prototype.Wn,sg.prototype.getGeometry=sg.prototype.V,sg.prototype.getProperties=sg.prototype.Xn,sg.prototype.getType=sg.prototype.U,t("ol.render.VectorContext",Xs),sh.prototype.setStyle=sh.prototype.rd,sh.prototype.drawGeometry=sh.prototype.zb,sh.prototype.drawFeature=sh.prototype.te,Vs.prototype.drawCircle=Vs.prototype.Zb,Vs.prototype.setStyle=Vs.prototype.rd,Vs.prototype.drawGeometry=Vs.prototype.zb,Vs.prototype.drawFeature=Vs.prototype.te,t("ol.proj.common.add",Ae),t("ol.proj.Projection",qt),qt.prototype.getCode=qt.prototype.Jk,qt.prototype.getExtent=qt.prototype.G,qt.prototype.getUnits=qt.prototype.Un,qt.prototype.getMetersPerUnit=qt.prototype.sc,qt.prototype.getWorldExtent=qt.prototype.tl,qt.prototype.isGlobal=qt.prototype.dm,qt.prototype.setGlobal=qt.prototype.$p,qt.prototype.setExtent=qt.prototype.Vn,qt.prototype.setWorldExtent=qt.prototype.kq,qt.prototype.setGetPointResolution=qt.prototype.Zp,t("ol.proj.Units.METERS_PER_UNIT",Yt),t("ol.layer.Base",ls),ls.prototype.getExtent=ls.prototype.G,ls.prototype.getMaxResolution=ls.prototype.fc,ls.prototype.getMinResolution=ls.prototype.gc,ls.prototype.getOpacity=ls.prototype.hc,ls.prototype.getVisible=ls.prototype.Mb,ls.prototype.getZIndex=ls.prototype.Ba,ls.prototype.setExtent=ls.prototype.vc,ls.prototype.setMaxResolution=ls.prototype.Ac,ls.prototype.setMinResolution=ls.prototype.Bc,ls.prototype.setOpacity=ls.prototype.wc,ls.prototype.setVisible=ls.prototype.xc,ls.prototype.setZIndex=ls.prototype.Vb,t("ol.layer.Group",cs),cs.prototype.getLayers=cs.prototype.qd,cs.prototype.setLayers=cs.prototype.xi,t("ol.layer.Heatmap",p),p.prototype.getBlur=p.prototype.uh,p.prototype.getGradient=p.prototype.Bh,p.prototype.getRadius=p.prototype.yi,p.prototype.setBlur=p.prototype.jj,p.prototype.setGradient=p.prototype.pj,p.prototype.setRadius=p.prototype.Uc,t("ol.layer.Image",pm),pm.prototype.getSource=pm.prototype.ha,t("ol.layer.Layer",ys),ys.prototype.getSource=ys.prototype.ha,ys.prototype.setSource=ys.prototype.Wc,t("ol.layer.Tile",A),A.prototype.getPreload=A.prototype.Ud,A.prototype.getSource=A.prototype.ha,A.prototype.setPreload=A.prototype.zi,A.prototype.getUseInterimTilesOnError=A.prototype.kd,A.prototype.setUseInterimTilesOnError=A.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",cn),t("ol.interaction.DoubleClickZoom.handleEvent",fn),t("ol.interaction.DragAndDrop",E0),t("ol.interaction.DragAndDrop.handleEvent",cr),t("ol.interaction.DragBox",On),On.prototype.getGeometry=On.prototype.V,t("ol.interaction.DragPan",En),t("ol.interaction.DragRotate",Ln),t("ol.interaction.DragRotateAndZoom",N0),t("ol.interaction.DragZoom",zn),t("ol.interaction.Draw",Uv),t("ol.interaction.Draw.handleEvent",Gv),Uv.prototype.removeLastPoint=Uv.prototype.Op,Uv.prototype.finishDrawing=Uv.prototype.Pd,Uv.prototype.extend=Uv.prototype.vn,t("ol.interaction.Draw.createRegularPolygon",function(r,n){return function(t,e){var o=t[0],i=(t=t[1],Math.sqrt(pr(o,t)));return Jr(e=e||qr(new h0(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=ht(t),(e=e||new w(null)).ma([[jt(t),Ct(t),kt(t),Ft(t),jt(t)]]),e}}),t("ol.interaction.Extent",Qv),Qv.prototype.getExtent=Qv.prototype.G,Qv.prototype.setExtent=Qv.prototype.g,pb.prototype.extent_=pb.prototype.b,t("ol.interaction.Interaction",pn),pn.prototype.getActive=pn.prototype.c,pn.prototype.getMap=pn.prototype.f,pn.prototype.setActive=pn.prototype.Ha,t("ol.interaction.KeyboardPan",Yn),t("ol.interaction.KeyboardPan.handleEvent",Hn),t("ol.interaction.KeyboardZoom",qn),t("ol.interaction.KeyboardZoom.handleEvent",Jn),t("ol.interaction.Modify",lb),t("ol.interaction.Modify.handleEvent",bb),lb.prototype.removePoint=lb.prototype.hj,t("ol.interaction.MouseWheelZoom",_n),t("ol.interaction.MouseWheelZoom.handleEvent",$n),_n.prototype.setMouseAnchor=_n.prototype.T,t("ol.interaction.PinchRotate",es),t("ol.interaction.PinchZoom",ns),t("ol.interaction.Pointer",Mn),t("ol.interaction.Pointer.handleEvent",An),t("ol.interaction.Select",Pb),Pb.prototype.getFeatures=Pb.prototype.Gn,Pb.prototype.getHitTolerance=Pb.prototype.Hn,Pb.prototype.getLayer=Pb.prototype.In,t("ol.interaction.Select.handleEvent",Ab),Pb.prototype.setHitTolerance=Pb.prototype.Kn,t("ol.interaction.Snap",jb),jb.prototype.addFeature=jb.prototype.yb,jb.prototype.removeFeature=jb.prototype.Gb,t("ol.interaction.Translate",Ib),Ib.prototype.getHitTolerance=Ib.prototype.B,Ib.prototype.setHitTolerance=Ib.prototype.I,t("ol.geom.Circle",h0),h0.prototype.getCenter=h0.prototype.wa,h0.prototype.getRadius=h0.prototype.pd,h0.prototype.getType=h0.prototype.U,h0.prototype.intersectsExtent=h0.prototype.Xa,h0.prototype.setCenter=h0.prototype.ob,h0.prototype.setCenterAndRadius=h0.prototype.Ng,h0.prototype.setRadius=h0.prototype.Uc,h0.prototype.transform=h0.prototype.tb,t("ol.geom.Geometry",yr),yr.prototype.getClosestPoint=yr.prototype.Ab,yr.prototype.intersectsCoordinate=yr.prototype.sb,yr.prototype.getExtent=yr.prototype.G,yr.prototype.simplify=yr.prototype.Rb,yr.prototype.transform=yr.prototype.tb,t("ol.geom.GeometryCollection",uu),uu.prototype.getGeometries=uu.prototype.Vf,uu.prototype.getType=uu.prototype.U,uu.prototype.intersectsExtent=uu.prototype.Xa,uu.prototype.setGeometries=uu.prototype.oj,uu.prototype.applyTransform=uu.prototype.Dc,t("ol.geom.LinearRing",Fr),Fr.prototype.getArea=Fr.prototype.qn,Fr.prototype.getCoordinates=Fr.prototype.X,Fr.prototype.getType=Fr.prototype.U,Fr.prototype.setCoordinates=Fr.prototype.ma,t("ol.geom.LineString",S),S.prototype.appendCoordinate=S.prototype.mk,S.prototype.forEachSegment=S.prototype.Ck,S.prototype.getCoordinateAtM=S.prototype.nn,S.prototype.getCoordinates=S.prototype.X,S.prototype.getCoordinateAt=S.prototype.wh,S.prototype.getLength=S.prototype.pn,S.prototype.getType=S.prototype.U,S.prototype.intersectsExtent=S.prototype.Xa,S.prototype.setCoordinates=S.prototype.ma,t("ol.geom.MultiLineString",M),M.prototype.appendLineString=M.prototype.nk,M.prototype.getCoordinateAtM=M.prototype.rn,M.prototype.getCoordinates=M.prototype.X,M.prototype.getLineString=M.prototype.Yk,M.prototype.getLineStrings=M.prototype.gd,M.prototype.getType=M.prototype.U,M.prototype.intersectsExtent=M.prototype.Xa,M.prototype.setCoordinates=M.prototype.ma,t("ol.geom.MultiPoint",P),P.prototype.appendPoint=P.prototype.qk,P.prototype.getCoordinates=P.prototype.X,P.prototype.getPoint=P.prototype.il,P.prototype.getPoints=P.prototype.Zd,P.prototype.getType=P.prototype.U,P.prototype.intersectsExtent=P.prototype.Xa,P.prototype.setCoordinates=P.prototype.ma,t("ol.geom.MultiPolygon",f),f.prototype.appendPolygon=f.prototype.rk,f.prototype.getArea=f.prototype.sn,f.prototype.getCoordinates=f.prototype.X,f.prototype.getInteriorPoints=f.prototype.Uk,f.prototype.getPolygon=f.prototype.jl,f.prototype.getPolygons=f.prototype.Td,f.prototype.getType=f.prototype.U,f.prototype.intersectsExtent=f.prototype.Xa,f.prototype.setCoordinates=f.prototype.ma,t("ol.geom.Point",m),m.prototype.getCoordinates=m.prototype.X,m.prototype.getType=m.prototype.U,m.prototype.intersectsExtent=m.prototype.Xa,m.prototype.setCoordinates=m.prototype.ma,t("ol.geom.Polygon",w),w.prototype.appendLinearRing=w.prototype.pk,w.prototype.getArea=w.prototype.tn,w.prototype.getCoordinates=w.prototype.X,w.prototype.getInteriorPoint=w.prototype.Tk,w.prototype.getLinearRingCount=w.prototype.Zk,w.prototype.getLinearRing=w.prototype.Ch,w.prototype.getLinearRings=w.prototype.Sd,w.prototype.getType=w.prototype.U,w.prototype.intersectsExtent=w.prototype.Xa,w.prototype.setCoordinates=w.prototype.ma,t("ol.geom.Polygon.circular",Yr),t("ol.geom.Polygon.fromExtent",Hr),t("ol.geom.Polygon.fromCircle",qr),t("ol.geom.SimpleGeometry",b),b.prototype.getFirstCoordinate=b.prototype.ac,b.prototype.getLastCoordinate=b.prototype.bc,b.prototype.getLayout=b.prototype.cc,b.prototype.applyTransform=b.prototype.Dc,t("ol.format.EsriJSON",kl),kl.prototype.readFeature=kl.prototype.Tb,kl.prototype.readFeatures=kl.prototype.Oa,kl.prototype.readGeometry=kl.prototype.Sc,kl.prototype.readProjection=kl.prototype.kb,kl.prototype.writeGeometry=kl.prototype.$c,kl.prototype.writeGeometryObject=kl.prototype.je,kl.prototype.writeFeature=kl.prototype.Bd,kl.prototype.writeFeatureObject=kl.prototype.Zc,kl.prototype.writeFeatures=kl.prototype.Wb,kl.prototype.writeFeaturesObject=kl.prototype.he,t("ol.format.Feature",wl),t("ol.format.filter.and",hu),t("ol.format.filter.or",function(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(au,e))}),t("ol.format.filter.not",function(t){return new nu(t)}),t("ol.format.filter.bbox",lu),t("ol.format.filter.intersects",function(t,e,o){return new Ql(t,e,o)}),t("ol.format.filter.within",function(t,e,o){return new pu(t,e,o)}),t("ol.format.filter.equalTo",function(t,e,o){return new ql(t,e,o)}),t("ol.format.filter.notEqualTo",function(t,e,o){return new su(t,e,o)}),t("ol.format.filter.lessThan",function(t,e){return new iu(t,e)}),t("ol.format.filter.lessThanOrEqualTo",function(t,e){return new ru(t,e)}),t("ol.format.filter.greaterThan",function(t,e){return new Jl(t,e)}),t("ol.format.filter.greaterThanOrEqualTo",function(t,e){return new _l(t,e)}),t("ol.format.filter.isNull",function(t){return new ou(t)}),t("ol.format.filter.between",function(t,e,o){return new tu(t,e,o)}),t("ol.format.filter.like",function(t,e,o,i,r,n){return new eu(t,e,o,i,r,n)}),t("ol.format.filter.during",function(t,e,o){return new Yl(t,e,o)}),t("ol.format.GeoJSON",gu),gu.prototype.readFeature=gu.prototype.Tb,gu.prototype.readFeatures=gu.prototype.Oa,gu.prototype.readGeometry=gu.prototype.Sc,gu.prototype.readProjection=gu.prototype.kb,gu.prototype.writeFeature=gu.prototype.Bd,gu.prototype.writeFeatureObject=gu.prototype.Zc,gu.prototype.writeFeatures=gu.prototype.Wb,gu.prototype.writeFeaturesObject=gu.prototype.he,gu.prototype.writeGeometry=gu.prototype.$c,gu.prototype.writeGeometryObject=gu.prototype.je,t("ol.format.GML",y),y.prototype.writeFeatures=y.prototype.Wb,y.prototype.writeFeaturesNode=y.prototype.Xb,t("ol.format.GML2",Zu),t("ol.format.GML3",y),y.prototype.writeGeometryNode=y.prototype.ie,y.prototype.writeFeatures=y.prototype.Wb,y.prototype.writeFeaturesNode=y.prototype.Xb,Mu.prototype.readFeatures=Mu.prototype.Oa,t("ol.format.GPX",ec),ec.prototype.readFeature=ec.prototype.Tb,ec.prototype.readFeatures=ec.prototype.Oa,ec.prototype.readProjection=ec.prototype.kb,ec.prototype.writeFeatures=ec.prototype.Wb,ec.prototype.writeFeaturesNode=ec.prototype.Xb,t("ol.format.IGC",Uc),Uc.prototype.readFeature=Uc.prototype.Tb,Uc.prototype.readFeatures=Uc.prototype.Oa,Uc.prototype.readProjection=Uc.prototype.kb,t("ol.format.KML",hf),hf.prototype.readFeature=hf.prototype.Tb,hf.prototype.readFeatures=hf.prototype.Oa,hf.prototype.readName=hf.prototype.Cp,hf.prototype.readNetworkLinks=hf.prototype.Dp,hf.prototype.readRegion=hf.prototype.Gp,hf.prototype.readRegionFromNode=hf.prototype.lf,hf.prototype.readProjection=hf.prototype.kb,hf.prototype.writeFeatures=hf.prototype.Wb,hf.prototype.writeFeaturesNode=hf.prototype.Xb,t("ol.format.MVT",ag),ag.prototype.readFeatures=ag.prototype.Oa,ag.prototype.readProjection=ag.prototype.kb,ag.prototype.setLayers=ag.prototype.mn,t("ol.format.OSMXML",hg),hg.prototype.readFeatures=hg.prototype.Oa,hg.prototype.readProjection=hg.prototype.kb,t("ol.format.Polyline",Ig),t("ol.format.Polyline.encodeDeltas",Ng),t("ol.format.Polyline.decodeDeltas",Fg),t("ol.format.Polyline.encodeFloats",kg),t("ol.format.Polyline.decodeFloats",Dg),Ig.prototype.readFeature=Ig.prototype.Tb,Ig.prototype.readFeatures=Ig.prototype.Oa,Ig.prototype.readGeometry=Ig.prototype.Sc,Ig.prototype.readProjection=Ig.prototype.kb,Ig.prototype.writeGeometry=Ig.prototype.$c,t("ol.format.TopoJSON",Og),Og.prototype.readFeatures=Og.prototype.Oa,Og.prototype.readProjection=Og.prototype.kb,t("ol.format.WFS",Vg),Vg.prototype.readFeatures=Vg.prototype.Oa,Vg.prototype.readTransactionResponse=Vg.prototype.j,Vg.prototype.readFeatureCollectionMetadata=Vg.prototype.g,t("ol.format.WFS.writeFilter",function(t){var e=ol("http://www.opengis.net/ogc","Filter");return vl({node:e},pd,cl(t.kc),[t],[]),e}),Vg.prototype.writeGetFeature=Vg.prototype.l,Vg.prototype.writeTransaction=Vg.prototype.v,Vg.prototype.readProjection=Vg.prototype.kb,t("ol.format.WKT",hd),hd.prototype.readFeature=hd.prototype.Tb,hd.prototype.readFeatures=hd.prototype.Oa,hd.prototype.readGeometry=hd.prototype.Sc,hd.prototype.writeFeature=hd.prototype.Bd,hd.prototype.writeFeatures=hd.prototype.Wb,hd.prototype.writeGeometry=hd.prototype.$c,t("ol.format.WMSCapabilities",Ed),t("ol.format.WMSGetFeatureInfo",Hd),Hd.prototype.readFeatures=Hd.prototype.Oa,t("ol.format.WMTSCapabilities",qd),t("ol.format.filter.And",Zl),t("ol.format.filter.Bbox",Kl),t("ol.format.filter.Comparison",zl),t("ol.format.filter.ComparisonBinary",Hl),t("ol.format.filter.During",Yl),t("ol.format.filter.EqualTo",ql),t("ol.format.filter.Filter",Vl),t("ol.format.filter.GreaterThan",Jl),t("ol.format.filter.GreaterThanOrEqualTo",_l),t("ol.format.filter.Intersects",Ql),t("ol.format.filter.IsBetween",tu),t("ol.format.filter.IsLike",eu),t("ol.format.filter.IsNull",ou),t("ol.format.filter.LessThan",iu),t("ol.format.filter.LessThanOrEqualTo",ru),t("ol.format.filter.Not",nu),t("ol.format.filter.NotEqualTo",su),t("ol.format.filter.Or",au),t("ol.format.filter.Spatial",$l),t("ol.format.filter.Within",pu),t("ol.events.condition.altKeyOnly",function(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.altShiftKeysOnly",yn),t("ol.events.condition.always",cr),t("ol.events.condition.click",function(t){return"click"==t.type}),t("ol.events.condition.never",fr),t("ol.events.condition.pointerMove",dn),t("ol.events.condition.singleClick",vn),t("ol.events.condition.doubleClick",function(t){return"dblclick"==t.type}),t("ol.events.condition.noModifierKeys",bn),t("ol.events.condition.platformModifierKeyOnly",function(t){return!(t=t.originalEvent).altKey&&(ri?t.metaKey:t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.shiftKeyOnly",mn),t("ol.events.condition.targetNotEditable",wn),t("ol.events.condition.mouseOnly",xn),t("ol.events.condition.primaryAction",Sn),t("ol.control.Attribution",jo),t("ol.control.Attribution.render",Co),jo.prototype.getCollapsible=jo.prototype.Um,jo.prototype.setCollapsible=jo.prototype.Xm,jo.prototype.setCollapsed=jo.prototype.Wm,jo.prototype.getCollapsed=jo.prototype.Tm,t("ol.control.Control",To),To.prototype.getMap=To.prototype.g,To.prototype.setTarget=To.prototype.f,t("ol.control.FullScreen",Go),t("ol.control.MousePosition",Ko),t("ol.control.MousePosition.render",zo),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",Sh),t("ol.control.OverviewMap.render",Mh),Sh.prototype.getCollapsible=Sh.prototype.$m,Sh.prototype.setCollapsible=Sh.prototype.cn,Sh.prototype.setCollapsed=Sh.prototype.bn,Sh.prototype.getCollapsed=Sh.prototype.Zm,Sh.prototype.getOverviewMap=Sh.prototype.gl,t("ol.control.Rotate",ko),t("ol.control.Rotate.render",Do),t("ol.control.ScaleLine",Th),Th.prototype.getUnits=Th.prototype.C,t("ol.control.ScaleLine.render",Ch),Th.prototype.setUnits=Th.prototype.I,t("ol.control.Zoom",Oo),t("ol.control.ZoomSlider",Ih),t("ol.control.ZoomSlider.render",Fh),t("ol.control.ZoomToExtent",Oh),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,ho.prototype.getKeys=ho.prototype.O,ho.prototype.getProperties=ho.prototype.N,ho.prototype.setProperties=ho.prototype.H,ho.prototype.unset=ho.prototype.P,ho.prototype.changed=ho.prototype.s,ho.prototype.dispatchEvent=ho.prototype.b,ho.prototype.getRevision=ho.prototype.L,ho.prototype.on=ho.prototype.J,ho.prototype.un=ho.prototype.K,Uh.prototype.getKeys=Uh.prototype.O,Uh.prototype.getProperties=Uh.prototype.N,Uh.prototype.setProperties=Uh.prototype.H,Uh.prototype.unset=Uh.prototype.P,Uh.prototype.changed=Uh.prototype.s,Uh.prototype.dispatchEvent=Uh.prototype.b,Uh.prototype.getRevision=Uh.prototype.L,Uh.prototype.on=Uh.prototype.J,Uh.prototype.un=Uh.prototype.K,x.prototype.getKeys=x.prototype.O,x.prototype.getProperties=x.prototype.N,x.prototype.setProperties=x.prototype.H,x.prototype.unset=x.prototype.P,x.prototype.changed=x.prototype.s,x.prototype.dispatchEvent=x.prototype.b,x.prototype.getRevision=x.prototype.L,x.prototype.on=x.prototype.J,x.prototype.un=x.prototype.K,p0.prototype.getKeys=p0.prototype.O,p0.prototype.getProperties=p0.prototype.N,p0.prototype.setProperties=p0.prototype.H,p0.prototype.unset=p0.prototype.P,p0.prototype.changed=p0.prototype.s,p0.prototype.dispatchEvent=p0.prototype.b,p0.prototype.getRevision=p0.prototype.L,p0.prototype.on=p0.prototype.J,p0.prototype.un=p0.prototype.K,M0.prototype.getTileCoord=M0.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,fh.prototype.getKeys=fh.prototype.O,fh.prototype.getProperties=fh.prototype.N,fh.prototype.setProperties=fh.prototype.H,fh.prototype.unset=fh.prototype.P,fh.prototype.changed=fh.prototype.s,fh.prototype.dispatchEvent=fh.prototype.b,fh.prototype.getRevision=fh.prototype.L,fh.prototype.on=fh.prototype.J,fh.prototype.un=fh.prototype.K,S1.prototype.getTileCoord=S1.prototype.f,P1.prototype.getTileCoord=P1.prototype.f,h.prototype.getKeys=h.prototype.O,h.prototype.getProperties=h.prototype.N,h.prototype.setProperties=h.prototype.H,h.prototype.unset=h.prototype.P,h.prototype.changed=h.prototype.s,h.prototype.dispatchEvent=h.prototype.b,h.prototype.getRevision=h.prototype.L,h.prototype.on=h.prototype.J,h.prototype.un=h.prototype.K,E1.prototype.forEachTileCoord=E1.prototype.Rf,E1.prototype.getMaxZoom=E1.prototype.Ti,E1.prototype.getMinZoom=E1.prototype.Ui,E1.prototype.getOrigin=E1.prototype.Pc,E1.prototype.getResolution=E1.prototype.Da,E1.prototype.getResolutions=E1.prototype.Vi,E1.prototype.getTileCoordExtent=E1.prototype.Aa,E1.prototype.getTileCoordForCoordAndResolution=E1.prototype.Be,E1.prototype.getTileCoordForCoordAndZ=E1.prototype.bg,E1.prototype.getTileSize=E1.prototype.gb,E1.prototype.getZForResolution=E1.prototype.tc,Kh.prototype.getOpacity=Kh.prototype.Ze,Kh.prototype.getRotateWithView=Kh.prototype.$e,Kh.prototype.getRotation=Kh.prototype.af,Kh.prototype.getScale=Kh.prototype.bf,Kh.prototype.getSnapToPixel=Kh.prototype.Ae,Kh.prototype.setOpacity=Kh.prototype.td,Kh.prototype.setRotation=Kh.prototype.cf,Kh.prototype.setScale=Kh.prototype.ud,Yh.prototype.getAngle=Yh.prototype.Pi,Yh.prototype.getFill=Yh.prototype.Fa,Yh.prototype.getPoints=Yh.prototype.Qi,Yh.prototype.getRadius=Yh.prototype.Ri,Yh.prototype.getRadius2=Yh.prototype.Fh,Yh.prototype.getStroke=Yh.prototype.Ga,Yh.prototype.getOpacity=Yh.prototype.Ze,Yh.prototype.getRotateWithView=Yh.prototype.$e,Yh.prototype.getRotation=Yh.prototype.af,Yh.prototype.getScale=Yh.prototype.bf,Yh.prototype.getSnapToPixel=Yh.prototype.Ae,Yh.prototype.setOpacity=Yh.prototype.td,Yh.prototype.setRotation=Yh.prototype.cf,Yh.prototype.setScale=Yh.prototype.ud,af.prototype.getOpacity=af.prototype.Ze,af.prototype.getRotateWithView=af.prototype.$e,af.prototype.getRotation=af.prototype.af,af.prototype.getScale=af.prototype.bf,af.prototype.getSnapToPixel=af.prototype.Ae,af.prototype.setOpacity=af.prototype.td,af.prototype.setRotation=af.prototype.cf,af.prototype.setScale=af.prototype.ud,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,jm.prototype.getAttributions=jm.prototype.ya,jm.prototype.getLogo=jm.prototype.xa,jm.prototype.getProjection=jm.prototype.za,jm.prototype.refresh=jm.prototype.sa,jm.prototype.setAttributions=jm.prototype.ua,jm.prototype.getKeys=jm.prototype.O,jm.prototype.getProperties=jm.prototype.N,jm.prototype.setProperties=jm.prototype.H,jm.prototype.unset=jm.prototype.P,jm.prototype.changed=jm.prototype.s,jm.prototype.dispatchEvent=jm.prototype.b,jm.prototype.getRevision=jm.prototype.L,jm.prototype.on=jm.prototype.J,jm.prototype.un=jm.prototype.K,Nm.prototype.getTileGrid=Nm.prototype.ab,Nm.prototype.refresh=Nm.prototype.sa,Nm.prototype.getAttributions=Nm.prototype.ya,Nm.prototype.getLogo=Nm.prototype.xa,Nm.prototype.getProjection=Nm.prototype.za,Nm.prototype.setAttributions=Nm.prototype.ua,Nm.prototype.getKeys=Nm.prototype.O,Nm.prototype.getProperties=Nm.prototype.N,Nm.prototype.setProperties=Nm.prototype.H,Nm.prototype.unset=Nm.prototype.P,Nm.prototype.changed=Nm.prototype.s,Nm.prototype.dispatchEvent=Nm.prototype.b,Nm.prototype.getRevision=Nm.prototype.L,Nm.prototype.on=Nm.prototype.J,Nm.prototype.un=Nm.prototype.K,T.prototype.getTileLoadFunction=T.prototype.pb,T.prototype.getTileUrlFunction=T.prototype.qb,T.prototype.getUrls=T.prototype.rb,T.prototype.setTileLoadFunction=T.prototype.vb,T.prototype.setTileUrlFunction=T.prototype.cb,T.prototype.setUrl=T.prototype.jb,T.prototype.setUrls=T.prototype.eb,T.prototype.getTileGrid=T.prototype.ab,T.prototype.refresh=T.prototype.sa,T.prototype.getAttributions=T.prototype.ya,T.prototype.getLogo=T.prototype.xa,T.prototype.getProjection=T.prototype.za,T.prototype.setAttributions=T.prototype.ua,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,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,Um.prototype.setRenderReprojectionEdges=Um.prototype.Pb,Um.prototype.setTileGridForProjection=Um.prototype.Qb,Um.prototype.getTileLoadFunction=Um.prototype.pb,Um.prototype.getTileUrlFunction=Um.prototype.qb,Um.prototype.getUrls=Um.prototype.rb,Um.prototype.setTileLoadFunction=Um.prototype.vb,Um.prototype.setTileUrlFunction=Um.prototype.cb,Um.prototype.setUrl=Um.prototype.jb,Um.prototype.setUrls=Um.prototype.eb,Um.prototype.getTileGrid=Um.prototype.ab,Um.prototype.refresh=Um.prototype.sa,Um.prototype.getAttributions=Um.prototype.ya,Um.prototype.getLogo=Um.prototype.xa,Um.prototype.getProjection=Um.prototype.za,Um.prototype.setAttributions=Um.prototype.ua,Um.prototype.getKeys=Um.prototype.O,Um.prototype.getProperties=Um.prototype.N,Um.prototype.setProperties=Um.prototype.H,Um.prototype.unset=Um.prototype.P,Um.prototype.changed=Um.prototype.s,Um.prototype.dispatchEvent=Um.prototype.b,Um.prototype.getRevision=Um.prototype.L,Um.prototype.on=Um.prototype.J,Um.prototype.un=Um.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,a.prototype.getAttributions=a.prototype.ya,a.prototype.getLogo=a.prototype.xa,a.prototype.getProjection=a.prototype.za,a.prototype.refresh=a.prototype.sa,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,L.prototype.addFeature=L.prototype.yb,L.prototype.addFeatures=L.prototype.cd,L.prototype.forEachFeature=L.prototype.sh,L.prototype.forEachFeatureInExtent=L.prototype.$b,L.prototype.forEachFeatureIntersectingExtent=L.prototype.th,L.prototype.getFeaturesCollection=L.prototype.Ah,L.prototype.getFeatures=L.prototype.Xe,L.prototype.getFeaturesAtCoordinate=L.prototype.zh,L.prototype.getFeaturesInExtent=L.prototype.Uf,L.prototype.getClosestFeatureToCoordinate=L.prototype.vh,L.prototype.getExtent=L.prototype.G,L.prototype.getFeatureById=L.prototype.yh,L.prototype.getFormat=L.prototype.Mi,L.prototype.getUrl=L.prototype.Ni,L.prototype.removeFeature=L.prototype.Gb,L.prototype.getAttributions=L.prototype.ya,L.prototype.getLogo=L.prototype.xa,L.prototype.getProjection=L.prototype.za,L.prototype.refresh=L.prototype.sa,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,$b.prototype.getAttributions=$b.prototype.ya,$b.prototype.getLogo=$b.prototype.xa,$b.prototype.getProjection=$b.prototype.za,$b.prototype.refresh=$b.prototype.sa,$b.prototype.setAttributions=$b.prototype.ua,$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,Wm.prototype.getAttributions=Wm.prototype.ya,Wm.prototype.getLogo=Wm.prototype.xa,Wm.prototype.getProjection=Wm.prototype.za,Wm.prototype.refresh=Wm.prototype.sa,Wm.prototype.setAttributions=Wm.prototype.ua,Wm.prototype.getKeys=Wm.prototype.O,Wm.prototype.getProperties=Wm.prototype.N,Wm.prototype.setProperties=Wm.prototype.H,Wm.prototype.unset=Wm.prototype.P,Wm.prototype.changed=Wm.prototype.s,Wm.prototype.dispatchEvent=Wm.prototype.b,Wm.prototype.getRevision=Wm.prototype.L,Wm.prototype.on=Wm.prototype.J,Wm.prototype.un=Wm.prototype.K,nm.prototype.getAttributions=nm.prototype.ya,nm.prototype.getLogo=nm.prototype.xa,nm.prototype.getProjection=nm.prototype.za,nm.prototype.refresh=nm.prototype.sa,nm.prototype.setAttributions=nm.prototype.ua,nm.prototype.getKeys=nm.prototype.O,nm.prototype.getProperties=nm.prototype.N,nm.prototype.setProperties=nm.prototype.H,nm.prototype.unset=nm.prototype.P,nm.prototype.changed=nm.prototype.s,nm.prototype.dispatchEvent=nm.prototype.b,nm.prototype.getRevision=nm.prototype.L,nm.prototype.on=nm.prototype.J,nm.prototype.un=nm.prototype.K,Zm.prototype.getAttributions=Zm.prototype.ya,Zm.prototype.getLogo=Zm.prototype.xa,Zm.prototype.getProjection=Zm.prototype.za,Zm.prototype.refresh=Zm.prototype.sa,Zm.prototype.setAttributions=Zm.prototype.ua,Zm.prototype.getKeys=Zm.prototype.O,Zm.prototype.getProperties=Zm.prototype.N,Zm.prototype.setProperties=Zm.prototype.H,Zm.prototype.unset=Zm.prototype.P,Zm.prototype.changed=Zm.prototype.s,Zm.prototype.dispatchEvent=Zm.prototype.b,Zm.prototype.getRevision=Zm.prototype.L,Zm.prototype.on=Zm.prototype.J,Zm.prototype.un=Zm.prototype.K,Km.prototype.getAttributions=Km.prototype.ya,Km.prototype.getLogo=Km.prototype.xa,Km.prototype.getProjection=Km.prototype.za,Km.prototype.refresh=Km.prototype.sa,Km.prototype.setAttributions=Km.prototype.ua,Km.prototype.getKeys=Km.prototype.O,Km.prototype.getProperties=Km.prototype.N,Km.prototype.setProperties=Km.prototype.H,Km.prototype.unset=Km.prototype.P,Km.prototype.changed=Km.prototype.s,Km.prototype.dispatchEvent=Km.prototype.b,Km.prototype.getRevision=Km.prototype.L,Km.prototype.on=Km.prototype.J,Km.prototype.un=Km.prototype.K,sm.prototype.getAttributions=sm.prototype.ya,sm.prototype.getLogo=sm.prototype.xa,sm.prototype.getProjection=sm.prototype.za,sm.prototype.refresh=sm.prototype.sa,sm.prototype.setAttributions=sm.prototype.ua,sm.prototype.getKeys=sm.prototype.O,sm.prototype.getProperties=sm.prototype.N,sm.prototype.setProperties=sm.prototype.H,sm.prototype.unset=sm.prototype.P,sm.prototype.changed=sm.prototype.s,sm.prototype.dispatchEvent=sm.prototype.b,sm.prototype.getRevision=sm.prototype.L,sm.prototype.on=sm.prototype.J,sm.prototype.un=sm.prototype.K,zm.prototype.getAttributions=zm.prototype.ya,zm.prototype.getLogo=zm.prototype.xa,zm.prototype.getProjection=zm.prototype.za,zm.prototype.refresh=zm.prototype.sa,zm.prototype.setAttributions=zm.prototype.ua,zm.prototype.getKeys=zm.prototype.O,zm.prototype.getProperties=zm.prototype.N,zm.prototype.setProperties=zm.prototype.H,zm.prototype.unset=zm.prototype.P,zm.prototype.changed=zm.prototype.s,zm.prototype.dispatchEvent=zm.prototype.b,zm.prototype.getRevision=zm.prototype.L,zm.prototype.on=zm.prototype.J,zm.prototype.un=zm.prototype.K,Jm.prototype.setRenderReprojectionEdges=Jm.prototype.Pb,Jm.prototype.setTileGridForProjection=Jm.prototype.Qb,Jm.prototype.getTileLoadFunction=Jm.prototype.pb,Jm.prototype.getTileUrlFunction=Jm.prototype.qb,Jm.prototype.getUrls=Jm.prototype.rb,Jm.prototype.setTileLoadFunction=Jm.prototype.vb,Jm.prototype.setTileUrlFunction=Jm.prototype.cb,Jm.prototype.setUrl=Jm.prototype.jb,Jm.prototype.setUrls=Jm.prototype.eb,Jm.prototype.getTileGrid=Jm.prototype.ab,Jm.prototype.refresh=Jm.prototype.sa,Jm.prototype.getAttributions=Jm.prototype.ya,Jm.prototype.getLogo=Jm.prototype.xa,Jm.prototype.getProjection=Jm.prototype.za,Jm.prototype.setAttributions=Jm.prototype.ua,Jm.prototype.getKeys=Jm.prototype.O,Jm.prototype.getProperties=Jm.prototype.N,Jm.prototype.setProperties=Jm.prototype.H,Jm.prototype.unset=Jm.prototype.P,Jm.prototype.changed=Jm.prototype.s,Jm.prototype.dispatchEvent=Jm.prototype.b,Jm.prototype.getRevision=Jm.prototype.L,Jm.prototype.on=Jm.prototype.J,Jm.prototype.un=Jm.prototype.K,o1.prototype.getAttributions=o1.prototype.ya,o1.prototype.getLogo=o1.prototype.xa,o1.prototype.getProjection=o1.prototype.za,o1.prototype.refresh=o1.prototype.sa,o1.prototype.setAttributions=o1.prototype.ua,o1.prototype.getKeys=o1.prototype.O,o1.prototype.getProperties=o1.prototype.N,o1.prototype.setProperties=o1.prototype.H,o1.prototype.unset=o1.prototype.P,o1.prototype.changed=o1.prototype.s,o1.prototype.dispatchEvent=o1.prototype.b,o1.prototype.getRevision=o1.prototype.L,o1.prototype.on=o1.prototype.J,o1.prototype.un=o1.prototype.K,a1.prototype.setRenderReprojectionEdges=a1.prototype.Pb,a1.prototype.setTileGridForProjection=a1.prototype.Qb,a1.prototype.getTileLoadFunction=a1.prototype.pb,a1.prototype.getTileUrlFunction=a1.prototype.qb,a1.prototype.getUrls=a1.prototype.rb,a1.prototype.setTileLoadFunction=a1.prototype.vb,a1.prototype.setTileUrlFunction=a1.prototype.cb,a1.prototype.setUrl=a1.prototype.jb,a1.prototype.setUrls=a1.prototype.eb,a1.prototype.getTileGrid=a1.prototype.ab,a1.prototype.refresh=a1.prototype.sa,a1.prototype.getAttributions=a1.prototype.ya,a1.prototype.getLogo=a1.prototype.xa,a1.prototype.getProjection=a1.prototype.za,a1.prototype.setAttributions=a1.prototype.ua,a1.prototype.getKeys=a1.prototype.O,a1.prototype.getProperties=a1.prototype.N,a1.prototype.setProperties=a1.prototype.H,a1.prototype.unset=a1.prototype.P,a1.prototype.changed=a1.prototype.s,a1.prototype.dispatchEvent=a1.prototype.b,a1.prototype.getRevision=a1.prototype.L,a1.prototype.on=a1.prototype.J,a1.prototype.un=a1.prototype.K,R.prototype.setRenderReprojectionEdges=R.prototype.Pb,R.prototype.setTileGridForProjection=R.prototype.Qb,R.prototype.getTileLoadFunction=R.prototype.pb,R.prototype.getTileUrlFunction=R.prototype.qb,R.prototype.getUrls=R.prototype.rb,R.prototype.setTileLoadFunction=R.prototype.vb,R.prototype.setTileUrlFunction=R.prototype.cb,R.prototype.setUrl=R.prototype.jb,R.prototype.setUrls=R.prototype.eb,R.prototype.getTileGrid=R.prototype.ab,R.prototype.refresh=R.prototype.sa,R.prototype.getAttributions=R.prototype.ya,R.prototype.getLogo=R.prototype.xa,R.prototype.getProjection=R.prototype.za,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,c1.prototype.getTileGrid=c1.prototype.ab,c1.prototype.refresh=c1.prototype.sa,c1.prototype.getAttributions=c1.prototype.ya,c1.prototype.getLogo=c1.prototype.xa,c1.prototype.getProjection=c1.prototype.za,c1.prototype.setAttributions=c1.prototype.ua,c1.prototype.getKeys=c1.prototype.O,c1.prototype.getProperties=c1.prototype.N,c1.prototype.setProperties=c1.prototype.H,c1.prototype.unset=c1.prototype.P,c1.prototype.changed=c1.prototype.s,c1.prototype.dispatchEvent=c1.prototype.b,c1.prototype.getRevision=c1.prototype.L,c1.prototype.on=c1.prototype.J,c1.prototype.un=c1.prototype.K,y1.prototype.setRenderReprojectionEdges=y1.prototype.Pb,y1.prototype.setTileGridForProjection=y1.prototype.Qb,y1.prototype.getTileLoadFunction=y1.prototype.pb,y1.prototype.getTileUrlFunction=y1.prototype.qb,y1.prototype.getUrls=y1.prototype.rb,y1.prototype.setTileLoadFunction=y1.prototype.vb,y1.prototype.setTileUrlFunction=y1.prototype.cb,y1.prototype.setUrl=y1.prototype.jb,y1.prototype.setUrls=y1.prototype.eb,y1.prototype.getTileGrid=y1.prototype.ab,y1.prototype.refresh=y1.prototype.sa,y1.prototype.getAttributions=y1.prototype.ya,y1.prototype.getLogo=y1.prototype.xa,y1.prototype.getProjection=y1.prototype.za,y1.prototype.setAttributions=y1.prototype.ua,y1.prototype.getKeys=y1.prototype.O,y1.prototype.getProperties=y1.prototype.N,y1.prototype.setProperties=y1.prototype.H,y1.prototype.unset=y1.prototype.P,y1.prototype.changed=y1.prototype.s,y1.prototype.dispatchEvent=y1.prototype.b,y1.prototype.getRevision=y1.prototype.L,y1.prototype.on=y1.prototype.J,y1.prototype.un=y1.prototype.K,g1.prototype.getTileGrid=g1.prototype.ab,g1.prototype.refresh=g1.prototype.sa,g1.prototype.getAttributions=g1.prototype.ya,g1.prototype.getLogo=g1.prototype.xa,g1.prototype.getProjection=g1.prototype.za,g1.prototype.setAttributions=g1.prototype.ua,g1.prototype.getKeys=g1.prototype.O,g1.prototype.getProperties=g1.prototype.N,g1.prototype.setProperties=g1.prototype.H,g1.prototype.unset=g1.prototype.P,g1.prototype.changed=g1.prototype.s,g1.prototype.dispatchEvent=g1.prototype.b,g1.prototype.getRevision=g1.prototype.L,g1.prototype.on=g1.prototype.J,g1.prototype.un=g1.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,A1.prototype.getTileLoadFunction=A1.prototype.pb,A1.prototype.getTileUrlFunction=A1.prototype.qb,A1.prototype.getUrls=A1.prototype.rb,A1.prototype.setTileLoadFunction=A1.prototype.vb,A1.prototype.setTileUrlFunction=A1.prototype.cb,A1.prototype.setUrl=A1.prototype.jb,A1.prototype.setUrls=A1.prototype.eb,A1.prototype.getTileGrid=A1.prototype.ab,A1.prototype.refresh=A1.prototype.sa,A1.prototype.getAttributions=A1.prototype.ya,A1.prototype.getLogo=A1.prototype.xa,A1.prototype.getProjection=A1.prototype.za,A1.prototype.setAttributions=A1.prototype.ua,A1.prototype.getKeys=A1.prototype.O,A1.prototype.getProperties=A1.prototype.N,A1.prototype.setProperties=A1.prototype.H,A1.prototype.unset=A1.prototype.P,A1.prototype.changed=A1.prototype.s,A1.prototype.dispatchEvent=A1.prototype.b,A1.prototype.getRevision=A1.prototype.L,A1.prototype.on=A1.prototype.J,A1.prototype.un=A1.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,C1.prototype.setRenderReprojectionEdges=C1.prototype.Pb,C1.prototype.setTileGridForProjection=C1.prototype.Qb,C1.prototype.getTileLoadFunction=C1.prototype.pb,C1.prototype.getTileUrlFunction=C1.prototype.qb,C1.prototype.getUrls=C1.prototype.rb,C1.prototype.setTileLoadFunction=C1.prototype.vb,C1.prototype.setTileUrlFunction=C1.prototype.cb,C1.prototype.setUrl=C1.prototype.jb,C1.prototype.setUrls=C1.prototype.eb,C1.prototype.getTileGrid=C1.prototype.ab,C1.prototype.refresh=C1.prototype.sa,C1.prototype.getAttributions=C1.prototype.ya,C1.prototype.getLogo=C1.prototype.xa,C1.prototype.getProjection=C1.prototype.za,C1.prototype.setAttributions=C1.prototype.ua,C1.prototype.getKeys=C1.prototype.O,C1.prototype.getProperties=C1.prototype.N,C1.prototype.setProperties=C1.prototype.H,C1.prototype.unset=C1.prototype.P,C1.prototype.changed=C1.prototype.s,C1.prototype.dispatchEvent=C1.prototype.b,C1.prototype.getRevision=C1.prototype.L,C1.prototype.on=C1.prototype.J,C1.prototype.un=C1.prototype.K,xm.prototype.getTileCoord=xm.prototype.f,iv.prototype.changed=iv.prototype.s,iv.prototype.dispatchEvent=iv.prototype.b,iv.prototype.getRevision=iv.prototype.L,iv.prototype.on=iv.prototype.J,iv.prototype.un=iv.prototype.K,Av.prototype.changed=Av.prototype.s,Av.prototype.dispatchEvent=Av.prototype.b,Av.prototype.getRevision=Av.prototype.L,Av.prototype.on=Av.prototype.J,Av.prototype.un=Av.prototype.K,am.prototype.changed=am.prototype.s,am.prototype.dispatchEvent=am.prototype.b,am.prototype.getRevision=am.prototype.L,am.prototype.on=am.prototype.J,am.prototype.un=am.prototype.K,dm.prototype.changed=dm.prototype.s,dm.prototype.dispatchEvent=dm.prototype.b,dm.prototype.getRevision=dm.prototype.L,dm.prototype.on=dm.prototype.J,dm.prototype.un=dm.prototype.K,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,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,Zb.prototype.changed=Zb.prototype.s,Zb.prototype.dispatchEvent=Zb.prototype.b,Zb.prototype.getRevision=Zb.prototype.L,Zb.prototype.on=Zb.prototype.J,Zb.prototype.un=Zb.prototype.K,Kb.prototype.changed=Kb.prototype.s,Kb.prototype.dispatchEvent=Kb.prototype.b,Kb.prototype.getRevision=Kb.prototype.L,Kb.prototype.on=Kb.prototype.J,Kb.prototype.un=Kb.prototype.K,hm.prototype.changed=hm.prototype.s,hm.prototype.dispatchEvent=hm.prototype.b,hm.prototype.getRevision=hm.prototype.L,hm.prototype.on=hm.prototype.J,hm.prototype.un=hm.prototype.K,mv.prototype.changed=mv.prototype.s,mv.prototype.dispatchEvent=mv.prototype.b,mv.prototype.getRevision=mv.prototype.L,mv.prototype.on=mv.prototype.J,mv.prototype.un=mv.prototype.K,vm.prototype.changed=vm.prototype.s,vm.prototype.dispatchEvent=vm.prototype.b,vm.prototype.getRevision=vm.prototype.L,vm.prototype.on=vm.prototype.J,vm.prototype.un=vm.prototype.K,ls.prototype.getKeys=ls.prototype.O,ls.prototype.getProperties=ls.prototype.N,ls.prototype.setProperties=ls.prototype.H,ls.prototype.unset=ls.prototype.P,ls.prototype.changed=ls.prototype.s,ls.prototype.dispatchEvent=ls.prototype.b,ls.prototype.getRevision=ls.prototype.L,ls.prototype.on=ls.prototype.J,ls.prototype.un=ls.prototype.K,cs.prototype.getExtent=cs.prototype.G,cs.prototype.getMaxResolution=cs.prototype.fc,cs.prototype.getMinResolution=cs.prototype.gc,cs.prototype.getOpacity=cs.prototype.hc,cs.prototype.getVisible=cs.prototype.Mb,cs.prototype.getZIndex=cs.prototype.Ba,cs.prototype.setExtent=cs.prototype.vc,cs.prototype.setMaxResolution=cs.prototype.Ac,cs.prototype.setMinResolution=cs.prototype.Bc,cs.prototype.setOpacity=cs.prototype.wc,cs.prototype.setVisible=cs.prototype.xc,cs.prototype.setZIndex=cs.prototype.Vb,cs.prototype.getKeys=cs.prototype.O,cs.prototype.getProperties=cs.prototype.N,cs.prototype.setProperties=cs.prototype.H,cs.prototype.unset=cs.prototype.P,cs.prototype.changed=cs.prototype.s,cs.prototype.dispatchEvent=cs.prototype.b,cs.prototype.getRevision=cs.prototype.L,cs.prototype.on=cs.prototype.J,cs.prototype.un=cs.prototype.K,ys.prototype.getExtent=ys.prototype.G,ys.prototype.getMaxResolution=ys.prototype.fc,ys.prototype.getMinResolution=ys.prototype.gc,ys.prototype.getOpacity=ys.prototype.hc,ys.prototype.getVisible=ys.prototype.Mb,ys.prototype.getZIndex=ys.prototype.Ba,ys.prototype.setExtent=ys.prototype.vc,ys.prototype.setMaxResolution=ys.prototype.Ac,ys.prototype.setMinResolution=ys.prototype.Bc,ys.prototype.setOpacity=ys.prototype.wc,ys.prototype.setVisible=ys.prototype.xc,ys.prototype.setZIndex=ys.prototype.Vb,ys.prototype.getKeys=ys.prototype.O,ys.prototype.getProperties=ys.prototype.N,ys.prototype.setProperties=ys.prototype.H,ys.prototype.unset=ys.prototype.P,ys.prototype.changed=ys.prototype.s,ys.prototype.dispatchEvent=ys.prototype.b,ys.prototype.getRevision=ys.prototype.L,ys.prototype.on=ys.prototype.J,ys.prototype.un=ys.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,p.prototype.getSource=p.prototype.ha,p.prototype.getStyle=p.prototype.D,p.prototype.getStyleFunction=p.prototype.C,p.prototype.setStyle=p.prototype.g,p.prototype.setSource=p.prototype.Wc,p.prototype.getExtent=p.prototype.G,p.prototype.getMaxResolution=p.prototype.fc,p.prototype.getMinResolution=p.prototype.gc,p.prototype.getOpacity=p.prototype.hc,p.prototype.getVisible=p.prototype.Mb,p.prototype.getZIndex=p.prototype.Ba,p.prototype.setExtent=p.prototype.vc,p.prototype.setMaxResolution=p.prototype.Ac,p.prototype.setMinResolution=p.prototype.Bc,p.prototype.setOpacity=p.prototype.wc,p.prototype.setVisible=p.prototype.xc,p.prototype.setZIndex=p.prototype.Vb,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,pm.prototype.setSource=pm.prototype.Wc,pm.prototype.getExtent=pm.prototype.G,pm.prototype.getMaxResolution=pm.prototype.fc,pm.prototype.getMinResolution=pm.prototype.gc,pm.prototype.getOpacity=pm.prototype.hc,pm.prototype.getVisible=pm.prototype.Mb,pm.prototype.getZIndex=pm.prototype.Ba,pm.prototype.setExtent=pm.prototype.vc,pm.prototype.setMaxResolution=pm.prototype.Ac,pm.prototype.setMinResolution=pm.prototype.Bc,pm.prototype.setOpacity=pm.prototype.wc,pm.prototype.setVisible=pm.prototype.xc,pm.prototype.setZIndex=pm.prototype.Vb,pm.prototype.getKeys=pm.prototype.O,pm.prototype.getProperties=pm.prototype.N,pm.prototype.setProperties=pm.prototype.H,pm.prototype.unset=pm.prototype.P,pm.prototype.changed=pm.prototype.s,pm.prototype.dispatchEvent=pm.prototype.b,pm.prototype.getRevision=pm.prototype.L,pm.prototype.on=pm.prototype.J,pm.prototype.un=pm.prototype.K,A.prototype.setSource=A.prototype.Wc,A.prototype.getExtent=A.prototype.G,A.prototype.getMaxResolution=A.prototype.fc,A.prototype.getMinResolution=A.prototype.gc,A.prototype.getOpacity=A.prototype.hc,A.prototype.getVisible=A.prototype.Mb,A.prototype.getZIndex=A.prototype.Ba,A.prototype.setExtent=A.prototype.vc,A.prototype.setMaxResolution=A.prototype.Ac,A.prototype.setMinResolution=A.prototype.Bc,A.prototype.setOpacity=A.prototype.wc,A.prototype.setVisible=A.prototype.xc,A.prototype.setZIndex=A.prototype.Vb,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,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,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,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,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,On.prototype.getActive=On.prototype.c,On.prototype.getMap=On.prototype.f,On.prototype.setActive=On.prototype.Ha,On.prototype.getKeys=On.prototype.O,On.prototype.getProperties=On.prototype.N,On.prototype.setProperties=On.prototype.H,On.prototype.unset=On.prototype.P,On.prototype.changed=On.prototype.s,On.prototype.dispatchEvent=On.prototype.b,On.prototype.getRevision=On.prototype.L,On.prototype.on=On.prototype.J,On.prototype.un=On.prototype.K,En.prototype.getActive=En.prototype.c,En.prototype.getMap=En.prototype.f,En.prototype.setActive=En.prototype.Ha,En.prototype.getKeys=En.prototype.O,En.prototype.getProperties=En.prototype.N,En.prototype.setProperties=En.prototype.H,En.prototype.unset=En.prototype.P,En.prototype.changed=En.prototype.s,En.prototype.dispatchEvent=En.prototype.b,En.prototype.getRevision=En.prototype.L,En.prototype.on=En.prototype.J,En.prototype.un=En.prototype.K,Ln.prototype.getActive=Ln.prototype.c,Ln.prototype.getMap=Ln.prototype.f,Ln.prototype.setActive=Ln.prototype.Ha,Ln.prototype.getKeys=Ln.prototype.O,Ln.prototype.getProperties=Ln.prototype.N,Ln.prototype.setProperties=Ln.prototype.H,Ln.prototype.unset=Ln.prototype.P,Ln.prototype.changed=Ln.prototype.s,Ln.prototype.dispatchEvent=Ln.prototype.b,Ln.prototype.getRevision=Ln.prototype.L,Ln.prototype.on=Ln.prototype.J,Ln.prototype.un=Ln.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,zn.prototype.getGeometry=zn.prototype.V,zn.prototype.getActive=zn.prototype.c,zn.prototype.getMap=zn.prototype.f,zn.prototype.setActive=zn.prototype.Ha,zn.prototype.getKeys=zn.prototype.O,zn.prototype.getProperties=zn.prototype.N,zn.prototype.setProperties=zn.prototype.H,zn.prototype.unset=zn.prototype.P,zn.prototype.changed=zn.prototype.s,zn.prototype.dispatchEvent=zn.prototype.b,zn.prototype.getRevision=zn.prototype.L,zn.prototype.on=zn.prototype.J,zn.prototype.un=zn.prototype.K,Uv.prototype.getActive=Uv.prototype.c,Uv.prototype.getMap=Uv.prototype.f,Uv.prototype.setActive=Uv.prototype.Ha,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,Qv.prototype.getActive=Qv.prototype.c,Qv.prototype.getMap=Qv.prototype.f,Qv.prototype.setActive=Qv.prototype.Ha,Qv.prototype.getKeys=Qv.prototype.O,Qv.prototype.getProperties=Qv.prototype.N,Qv.prototype.setProperties=Qv.prototype.H,Qv.prototype.unset=Qv.prototype.P,Qv.prototype.changed=Qv.prototype.s,Qv.prototype.dispatchEvent=Qv.prototype.b,Qv.prototype.getRevision=Qv.prototype.L,Qv.prototype.on=Qv.prototype.J,Qv.prototype.un=Qv.prototype.K,Yn.prototype.getActive=Yn.prototype.c,Yn.prototype.getMap=Yn.prototype.f,Yn.prototype.setActive=Yn.prototype.Ha,Yn.prototype.getKeys=Yn.prototype.O,Yn.prototype.getProperties=Yn.prototype.N,Yn.prototype.setProperties=Yn.prototype.H,Yn.prototype.unset=Yn.prototype.P,Yn.prototype.changed=Yn.prototype.s,Yn.prototype.dispatchEvent=Yn.prototype.b,Yn.prototype.getRevision=Yn.prototype.L,Yn.prototype.on=Yn.prototype.J,Yn.prototype.un=Yn.prototype.K,qn.prototype.getActive=qn.prototype.c,qn.prototype.getMap=qn.prototype.f,qn.prototype.setActive=qn.prototype.Ha,qn.prototype.getKeys=qn.prototype.O,qn.prototype.getProperties=qn.prototype.N,qn.prototype.setProperties=qn.prototype.H,qn.prototype.unset=qn.prototype.P,qn.prototype.changed=qn.prototype.s,qn.prototype.dispatchEvent=qn.prototype.b,qn.prototype.getRevision=qn.prototype.L,qn.prototype.on=qn.prototype.J,qn.prototype.un=qn.prototype.K,lb.prototype.getActive=lb.prototype.c,lb.prototype.getMap=lb.prototype.f,lb.prototype.setActive=lb.prototype.Ha,lb.prototype.getKeys=lb.prototype.O,lb.prototype.getProperties=lb.prototype.N,lb.prototype.setProperties=lb.prototype.H,lb.prototype.unset=lb.prototype.P,lb.prototype.changed=lb.prototype.s,lb.prototype.dispatchEvent=lb.prototype.b,lb.prototype.getRevision=lb.prototype.L,lb.prototype.on=lb.prototype.J,lb.prototype.un=lb.prototype.K,_n.prototype.getActive=_n.prototype.c,_n.prototype.getMap=_n.prototype.f,_n.prototype.setActive=_n.prototype.Ha,_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,es.prototype.getActive=es.prototype.c,es.prototype.getMap=es.prototype.f,es.prototype.setActive=es.prototype.Ha,es.prototype.getKeys=es.prototype.O,es.prototype.getProperties=es.prototype.N,es.prototype.setProperties=es.prototype.H,es.prototype.unset=es.prototype.P,es.prototype.changed=es.prototype.s,es.prototype.dispatchEvent=es.prototype.b,es.prototype.getRevision=es.prototype.L,es.prototype.on=es.prototype.J,es.prototype.un=es.prototype.K,ns.prototype.getActive=ns.prototype.c,ns.prototype.getMap=ns.prototype.f,ns.prototype.setActive=ns.prototype.Ha,ns.prototype.getKeys=ns.prototype.O,ns.prototype.getProperties=ns.prototype.N,ns.prototype.setProperties=ns.prototype.H,ns.prototype.unset=ns.prototype.P,ns.prototype.changed=ns.prototype.s,ns.prototype.dispatchEvent=ns.prototype.b,ns.prototype.getRevision=ns.prototype.L,ns.prototype.on=ns.prototype.J,ns.prototype.un=ns.prototype.K,Pb.prototype.getActive=Pb.prototype.c,Pb.prototype.getMap=Pb.prototype.f,Pb.prototype.setActive=Pb.prototype.Ha,Pb.prototype.getKeys=Pb.prototype.O,Pb.prototype.getProperties=Pb.prototype.N,Pb.prototype.setProperties=Pb.prototype.H,Pb.prototype.unset=Pb.prototype.P,Pb.prototype.changed=Pb.prototype.s,Pb.prototype.dispatchEvent=Pb.prototype.b,Pb.prototype.getRevision=Pb.prototype.L,Pb.prototype.on=Pb.prototype.J,Pb.prototype.un=Pb.prototype.K,jb.prototype.getActive=jb.prototype.c,jb.prototype.getMap=jb.prototype.f,jb.prototype.setActive=jb.prototype.Ha,jb.prototype.getKeys=jb.prototype.O,jb.prototype.getProperties=jb.prototype.N,jb.prototype.setProperties=jb.prototype.H,jb.prototype.unset=jb.prototype.P,jb.prototype.changed=jb.prototype.s,jb.prototype.dispatchEvent=jb.prototype.b,jb.prototype.getRevision=jb.prototype.L,jb.prototype.on=jb.prototype.J,jb.prototype.un=jb.prototype.K,Ib.prototype.getActive=Ib.prototype.c,Ib.prototype.getMap=Ib.prototype.f,Ib.prototype.setActive=Ib.prototype.Ha,Ib.prototype.getKeys=Ib.prototype.O,Ib.prototype.getProperties=Ib.prototype.N,Ib.prototype.setProperties=Ib.prototype.H,Ib.prototype.unset=Ib.prototype.P,Ib.prototype.changed=Ib.prototype.s,Ib.prototype.dispatchEvent=Ib.prototype.b,Ib.prototype.getRevision=Ib.prototype.L,Ib.prototype.on=Ib.prototype.J,Ib.prototype.un=Ib.prototype.K,yr.prototype.getKeys=yr.prototype.O,yr.prototype.getProperties=yr.prototype.N,yr.prototype.setProperties=yr.prototype.H,yr.prototype.unset=yr.prototype.P,yr.prototype.changed=yr.prototype.s,yr.prototype.dispatchEvent=yr.prototype.b,yr.prototype.getRevision=yr.prototype.L,yr.prototype.on=yr.prototype.J,yr.prototype.un=yr.prototype.K,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,h0.prototype.getFirstCoordinate=h0.prototype.ac,h0.prototype.getLastCoordinate=h0.prototype.bc,h0.prototype.getLayout=h0.prototype.cc,h0.prototype.getClosestPoint=h0.prototype.Ab,h0.prototype.intersectsCoordinate=h0.prototype.sb,h0.prototype.getExtent=h0.prototype.G,h0.prototype.simplify=h0.prototype.Rb,h0.prototype.getKeys=h0.prototype.O,h0.prototype.getProperties=h0.prototype.N,h0.prototype.setProperties=h0.prototype.H,h0.prototype.unset=h0.prototype.P,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,uu.prototype.getClosestPoint=uu.prototype.Ab,uu.prototype.intersectsCoordinate=uu.prototype.sb,uu.prototype.getExtent=uu.prototype.G,uu.prototype.simplify=uu.prototype.Rb,uu.prototype.transform=uu.prototype.tb,uu.prototype.getKeys=uu.prototype.O,uu.prototype.getProperties=uu.prototype.N,uu.prototype.setProperties=uu.prototype.H,uu.prototype.unset=uu.prototype.P,uu.prototype.changed=uu.prototype.s,uu.prototype.dispatchEvent=uu.prototype.b,uu.prototype.getRevision=uu.prototype.L,uu.prototype.on=uu.prototype.J,uu.prototype.un=uu.prototype.K,Fr.prototype.getFirstCoordinate=Fr.prototype.ac,Fr.prototype.getLastCoordinate=Fr.prototype.bc,Fr.prototype.getLayout=Fr.prototype.cc,Fr.prototype.getClosestPoint=Fr.prototype.Ab,Fr.prototype.intersectsCoordinate=Fr.prototype.sb,Fr.prototype.getExtent=Fr.prototype.G,Fr.prototype.simplify=Fr.prototype.Rb,Fr.prototype.transform=Fr.prototype.tb,Fr.prototype.getKeys=Fr.prototype.O,Fr.prototype.getProperties=Fr.prototype.N,Fr.prototype.setProperties=Fr.prototype.H,Fr.prototype.unset=Fr.prototype.P,Fr.prototype.changed=Fr.prototype.s,Fr.prototype.dispatchEvent=Fr.prototype.b,Fr.prototype.getRevision=Fr.prototype.L,Fr.prototype.on=Fr.prototype.J,Fr.prototype.un=Fr.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,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,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,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,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,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.transform=w.prototype.tb,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,y.prototype.readFeatures=y.prototype.Oa,Zu.prototype.readFeatures=Zu.prototype.Oa,y.prototype.readFeatures=y.prototype.Oa,To.prototype.getKeys=To.prototype.O,To.prototype.getProperties=To.prototype.N,To.prototype.setProperties=To.prototype.H,To.prototype.unset=To.prototype.P,To.prototype.changed=To.prototype.s,To.prototype.dispatchEvent=To.prototype.b,To.prototype.getRevision=To.prototype.L,To.prototype.on=To.prototype.J,To.prototype.un=To.prototype.K,jo.prototype.getMap=jo.prototype.g,jo.prototype.setTarget=jo.prototype.f,jo.prototype.getKeys=jo.prototype.O,jo.prototype.getProperties=jo.prototype.N,jo.prototype.setProperties=jo.prototype.H,jo.prototype.unset=jo.prototype.P,jo.prototype.changed=jo.prototype.s,jo.prototype.dispatchEvent=jo.prototype.b,jo.prototype.getRevision=jo.prototype.L,jo.prototype.on=jo.prototype.J,jo.prototype.un=jo.prototype.K,Go.prototype.getMap=Go.prototype.g,Go.prototype.setTarget=Go.prototype.f,Go.prototype.getKeys=Go.prototype.O,Go.prototype.getProperties=Go.prototype.N,Go.prototype.setProperties=Go.prototype.H,Go.prototype.unset=Go.prototype.P,Go.prototype.changed=Go.prototype.s,Go.prototype.dispatchEvent=Go.prototype.b,Go.prototype.getRevision=Go.prototype.L,Go.prototype.on=Go.prototype.J,Go.prototype.un=Go.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,Sh.prototype.getMap=Sh.prototype.g,Sh.prototype.setTarget=Sh.prototype.f,Sh.prototype.getKeys=Sh.prototype.O,Sh.prototype.getProperties=Sh.prototype.N,Sh.prototype.setProperties=Sh.prototype.H,Sh.prototype.unset=Sh.prototype.P,Sh.prototype.changed=Sh.prototype.s,Sh.prototype.dispatchEvent=Sh.prototype.b,Sh.prototype.getRevision=Sh.prototype.L,Sh.prototype.on=Sh.prototype.J,Sh.prototype.un=Sh.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,Th.prototype.getMap=Th.prototype.g,Th.prototype.setTarget=Th.prototype.f,Th.prototype.getKeys=Th.prototype.O,Th.prototype.getProperties=Th.prototype.N,Th.prototype.setProperties=Th.prototype.H,Th.prototype.unset=Th.prototype.P,Th.prototype.changed=Th.prototype.s,Th.prototype.dispatchEvent=Th.prototype.b,Th.prototype.getRevision=Th.prototype.L,Th.prototype.on=Th.prototype.J,Th.prototype.un=Th.prototype.K,Oo.prototype.getMap=Oo.prototype.g,Oo.prototype.setMap,Oo.prototype.setTarget=Oo.prototype.f,Oo.prototype.get,Oo.prototype.getKeys=Oo.prototype.O,Oo.prototype.getProperties=Oo.prototype.N,Oo.prototype.set,Oo.prototype.setProperties=Oo.prototype.H,Oo.prototype.unset=Oo.prototype.P,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.once,Oo.prototype.un=Oo.prototype.K,Ih.prototype.getMap=Ih.prototype.g,Ih.prototype.setTarget=Ih.prototype.f,Ih.prototype.getKeys=Ih.prototype.O,Ih.prototype.getProperties=Ih.prototype.N,Ih.prototype.setProperties=Ih.prototype.H,Ih.prototype.unset=Ih.prototype.P,Ih.prototype.changed=Ih.prototype.s,Ih.prototype.dispatchEvent=Ih.prototype.b,Ih.prototype.getRevision=Ih.prototype.L,Ih.prototype.on=Ih.prototype.J,Ih.prototype.un=Ih.prototype.K,Oh.prototype.getMap=Oh.prototype.g,Oh.prototype.setTarget=Oh.prototype.f,Oh.prototype.getKeys=Oh.prototype.O,Oh.prototype.getProperties=Oh.prototype.N,Oh.prototype.setProperties=Oh.prototype.H,Oh.prototype.unset=Oh.prototype.P,Oh.prototype.changed=Oh.prototype.s,Oh.prototype.dispatchEvent=Oh.prototype.b,Oh.prototype.getRevision=Oh.prototype.L,Oh.prototype.on=Oh.prototype.J,Oh.prototype.un=Oh.prototype.K,F.ol}) |