(function(){var h=void 0,i=!0,j=null,l=!1;function ca(a){return function(){return this[a]}}var m,n=this;function s(){}function da(a){a.ta=function(){return a.Db?a.Db:a.Db=new a}} function ea(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function t(a){return a!==h}function fa(a){return"array"==ea(a)}function ga(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length}function v(a){return"string"==typeof a}function ha(a){return"function"==ea(a)}function ia(a){var b=typeof a;return"object"==b&&a!=j||"function"==b}function w(a){return a[ja]||(a[ja]=++ka)}var ja="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ka=0; function la(a,b,c){return a.call.apply(a.bind,arguments)}function ma(a,b,c){if(!a)throw Error();if(2")&&(a=a.replace(wa,">"));-1!=a.indexOf('"')&&(a=a.replace(xa,"""));return a}var ta=/&/g,ua=//g,xa=/\"/g,sa=/[&<>\"]/;var B=Array.prototype,ya=B.indexOf?function(a,b,c){return B.indexOf.call(a,b,c)}:function(a,b,c){c=c==j?0:0>c?Math.max(0,a.length+c):c;if(v(a))return!v(b)||1!=b.length?-1:a.indexOf(b,c);for(;c=arguments.length?B.slice.call(a,b):B.slice.call(a,b,c)}function Fa(a,b){return a>b?1:aparseFloat(fb)){eb=String(jb);break a}}eb=fb}var lb={}; function H(a){var b;if(!(b=lb[a])){b=0;for(var c=String(eb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f(0==p[1].length?0:parseInt(p[1],10))?1:0)||((0==r[2].length)<(0==p[2].length)?-1:(0==r[2].length)>(0==p[2].length)?1:0)||(r[2]p[2]?1:0)}while(0==b)}b=lb[a]=0<=b}return b}var mb={};function nb(a){return mb[a]||(mb[a]=E&&!!document.documentMode&&document.documentMode>=a)};var ob=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function pb(a,b){var c;if(a instanceof pb)this.T=t(b)?b:a.T,qb(this,a.da),c=a.Pa,rb(this),this.Pa=c,c=a.ga,rb(this),this.ga=c,sb(this,a.Ja),c=a.Ha,rb(this),this.Ha=c,tb(this,a.a.G()),c=a.sa,rb(this),this.sa=c;else if(a&&(c=String(a).match(ob))){this.T=!!b;qb(this,c[1]||"",i);var d=c[2]||"";rb(this);this.Pa=d?decodeURIComponent(d):"";d=c[3]||"";rb(this);this.ga=d?decodeURIComponent(d):"";sb(this,c[4]);d=c[5]||"";rb(this);this.Ha=d?decodeURIComponent(d):"";tb(this,c[6]||"",i);c=c[7]||"";rb(this);this.sa= c?decodeURIComponent(c):""}else this.T=!!b,this.a=new ub(j,0,this.T)}m=pb.prototype;m.da="";m.Pa="";m.ga="";m.Ja=j;m.Ha="";m.sa="";m.Ec=l;m.T=l; m.toString=function(){var a=[],b=this.da;b&&a.push(vb(b,wb),":");if(b=this.ga){a.push("//");var c=this.Pa;c&&a.push(vb(c,wb),"@");a.push(encodeURIComponent(String(b)));b=this.Ja;b!=j&&a.push(":",String(b))}if(b=this.Ha)this.ga&&"/"!=b.charAt(0)&&a.push("/"),a.push(vb(b,"/"==b.charAt(0)?xb:yb));(b=this.a.toString())&&a.push("?",b);(b=this.sa)&&a.push("#",vb(b,zb));return a.join("")};m.G=function(){return new pb(this)}; function qb(a,b,c){rb(a);a.da=c?b?decodeURIComponent(b):"":b;a.da&&(a.da=a.da.replace(/:$/,""))}function sb(a,b){rb(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Ja=b}else a.Ja=j} function tb(a,b,c){rb(a);if(b instanceof ub){a.a=b;b=a.a;if((a=a.T)&&!b.b){Ab(b);b.a=j;var d=b.q,c=function(a,b){var c=b.toLowerCase();b!=c&&(Bb(this,b),Cb(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(ga(d)||v(d))C(d,c,b);else{var e;if("function"==typeof d.$)e=d.$();else if("function"!=typeof d.L)if(ga(d)||v(d)){e=[];for(var f=d.length,g=0;g>4&15).toString(16)+(a&15).toString(16)}var wb=/[#\/\?@]/g,yb=/[\#\?:]/g,xb=/[\#\?]/g,Db=/[\#\?@]/g,zb=/#/g;function ub(a,b,c){this.a=a||j;this.b=!!c} function Ab(a){if(!a.q&&(a.q=new Ma,a.k=0,a.a))for(var b=a.a.split("&"),c=0;c2*c.k&&Na(c))}}m.clear=function(){this.q=this.a=j;this.k=0};function Hb(a,b){Ab(a);b=Gb(a,b);return Oa(a.q.b,b)}m.$=function(){Ab(this);for(var a=this.q.L(),b=this.q.$(),c=[],d=0;d=a.keyCode)a.keyCode=-1}catch(b){}};m.lc=ca("A");function dc(){}var ec=0;dc.prototype.key=0;dc.prototype.ca=l;dc.prototype.a=l;dc.prototype.handleEvent=function(a){return this.b?this.ma.call(this.Wa||this.src,a):this.ma.handleEvent.call(this.ma,a)};var fc={},gc={},hc={},ic={}; function J(a,b,c,d,e){if(b){if(fa(b)){for(var f=0;ff.keyCode||f.returnValue!=h)return i;a:{var u=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(r){u=i}if(u||f.returnValue==h)f.returnValue=i}}u=new Tb;Ub(u,f,this);f=i;try{if(k){for(var p=[],x=u.b;x;x=x.parentNode)p.push(x);g=e[i];g.B=g.k;for(var y=p.length- 1;!u.X&&0<=y&&g.B;y--)u.b=p[y],f&=nc(g,p[y],d,i,u);if(q){g=e[l];g.B=g.k;for(y=0;!u.X&&yc*b?c+b:c};function R(a,b){this.x=t(a)?a:0;this.y=t(b)?b:0}R.prototype.G=function(){return new R(this.x,this.y)};function uc(a,b){this.width=a;this.height=b}uc.prototype.G=function(){return new uc(this.width,this.height)};uc.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};uc.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};uc.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function vc(a){return a?new wc(xc(a)):pc||(pc=new wc)}function yc(a,b){D(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in zc?a.setAttribute(zc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var zc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"}; function Ac(a){a=a.document.documentElement;return new uc(a.clientWidth,a.clientHeight)}function Bc(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!qc&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ra(g.name),'"');if(g.type){f.push(' type="',ra(g.type),'"');var k={};Ka(k,g);delete k.type;g=k}f.push(">");f=f.join("")}f=e.createElement(f);g&&(v(g)?f.className=g:fa(g)?rc.apply(j,[f].concat(g)):yc(f,g));2=b.b&&a.a<=b.d&&a.d>=b.a}Xc.prototype.toString=function(){return"("+[this.b,this.a,this.c,this.d].join(", ")+")"};function Zc(a,b,c,d){Xc.call(this,a,b,c,d)}A(Zc,Xc);function $c(a){var b=arguments[0],b=new Zc(b.x,b.y,b.x,b.y),c;for(c=1;c>=1;return b.join("")}cd.prototype.toString=function(){return[this.j,this.x,this.y].join("/")};function fd(a,b,c,d){Xc.call(this,a,b,c,d)}A(fd,Xc);function gd(a,b,c,d){var e,f;for(e=a.b;e<=a.c;++e)for(f=a.a;f<=a.d;++f)c.call(d,new cd(b,e,f))}fd.prototype.e=function(){return this.d-this.a+1};fd.prototype.f=function(){return this.c-this.b+1};function hd(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d=a.c&&(d.x+=1);b.y=a.d&&(d.y+=1);return d};function od(a,b,c,d){this.w=b;this.c=a;this.b=c;this.a=d}A(od,ad);od.prototype.transform=function(a){a=this.w.transform(a);return new od(this.c,a,this.b,this.a)};function U(a,b,c){this.a=a;this.b=b;this.c=c}U.prototype.d=ca("a");U.prototype.f=ca("c");U.prototype.e=ca("b");function pd(a,b){U.call(this,a,b.units,j);this.Mb=b}A(pd,U);var qd={},rd={},sd={};function td(a){C(a,function(a){rd[a.a]=a});C(a,function(b){C(a,function(a){ud(b,a,vd)})})}function ud(a,b,c){a=a.a;b=b.a;a in sd||(sd[a]={});sd[a][b]=c}function wd(a){var b=rd[a];"Proj4js"in n&&!t(b)&&(b=xd(a));t(b)||(b=j);return b} function xd(a){var b=qd[a];t(b)||(b=new Proj4js.Proj(a),b=new pd(a,b),qd[a]=b);return b}function yd(a,b){var c=a.a,d=b.a,e;c in sd&&d in sd[c]&&(e=sd[c][d]);if("Proj4js"in n&&!t(e)){var f;f=(a instanceof pd?a:xd(a.a)).Mb;var g;g=(b instanceof pd?b:xd(a.a)).Mb;e=function(a){a=new Proj4js.Point(a.x,a.y);a=Proj4js.transform(f,g,a);return new T(a.x,a.y)};ud(a,b,e)}t(e)||(e=zd);return e}function Ad(a,b){var c=wd(a),d=wd(b);return yd(c,d)}function zd(a){return a}function vd(a){return new T(a.x,a.y)} var Bd=6378137*Math.PI,Cd=new Zc(-Bd,-Bd,Bd,Bd),Dd=za(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new U(a,"m",Cd)}),Ed=new Zc(-180,-90,180,90),Fd=za(["CRS:84","EPSG:4326","urn:ogc:def:crs:EPSG:6.6:4326"],function(a){return new U(a,"degrees",Ed)});td(Dd);td(Fd);function Gd(a){var b=6378137*Math.PI*a.x/180,a=6378137*Math.log(Math.tan(Math.PI*(a.y+90)/360));return new T(b,a)} function Hd(a){return new T(180*a.x/(6378137*Math.PI),360*Math.atan(Math.exp(a.y/6378137))/Math.PI-90)}C(Fd,function(a){C(Dd,function(b){ud(a,b,Gd);ud(b,a,Hd)})});function Id(a,b,c){this.b=a;this.a=b||j;this.c=c||j};function Jd(){I.call(this)}A(Jd,I);m=Jd.prototype;m.qb=i;m.ab=j;m.addEventListener=function(a,b,c,d){J(this,a,b,c,d)};m.removeEventListener=function(a,b,c,d){lc(this,a,b,c,d)};m.o=function(){Jd.i.o.call(this);var a,b=0,c=a==j;a=!!a;if(this==j)D(hc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)L(f.key),b++}});else{var d=w(this);if(hc[d])for(var d=hc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)L(f.key),b++}}this.ab=j};function Kd(a,b,c){I.call(this);this.Na=a;this.g=b;this.a=0;this.b=new Image;c!==j&&(this.b.crossOrigin=c);this.d={};this.c=j}A(Kd,Jd);function Ld(a,b){if(t(b)){var c,d=w(b);if(d in a.d)return a.d[d];c=Ia(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}Kd.prototype.e=function(){this.a=3;C(this.c,L);this.c=j};Kd.prototype.f=function(){this.a=2;C(this.c,L);this.c=j;P(this,"change")};function Md(a){0==a.a&&(a.a=1,a.c=[kc(a.b,"error",a.e,l,a),kc(a.b,"load",a.f,l,a)],a.b.src=a.g)};function Nd(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){var c=[],d=b[2].charCodeAt(0),e;for(e=b[1].charCodeAt(0);e<=d;++e)c.push(a.replace(b[0],String.fromCharCode(e)));return Od(za(c,Nd))}return function(b){return b===j?h:a.replace("{z}",b.j).replace("{x}",b.x).replace("{y}",b.y)}}function Od(a){return function(b){if(b!==j){var c=tc(b.hash(),a.length);return a[c](b)}}}function Pd(){}function Qd(a,b){return function(c){return c===j?h:b(a(c))}};function Rd(a){return function(){return a}}var Sd=Rd(l),Td=Rd(i);function Ud(a){I.call(this);this.h=t(a.projection)?a.projection:j;this.g=t(a.w)?a.w:a.projection.c;this.a=t(a.F)?a.F:j}A(Ud,Jd);Ud.prototype.V=Td;function Vd(a){Ud.call(this,{F:a.F,w:a.w,projection:a.projection});this.K=t(a.K)?a.K:j;this.P=t(a.P)?a.P:Pd;this.d=t(a.crossOrigin)?a.crossOrigin:"anonymous";this.b={}}A(Vd,Ud);function Wd(a,b){var c=b.toString();if(c in a.b)return a.b[c];var d=a.P(b),d=t(d)?new Kd(b,d,a.d):j;return a.b[c]=d};function Xd(a){var b=Array(a.z+1),c;for(c=0;c<=a.z;++c)b[c]=Bd/(128<a)break;d=Math.floor(d/2);e=Math.floor(e/2);f=new fd(d,e,d,e);if(b.call(c,a,f))break}};var Yd={Xc:"Aerial",Yc:"AerialWithLabels",cd:"Road",bd:"OrdnanceSurvey",Zc:"CollinsBart"}; function Zd(a){Vd.call(this,{projection:wd("EPSG:3857")});this.gc=t(a.culture)?a.culture:"en-us";this.c=l;var b=new pb("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new Sc(b),a={include:"ImageryProviders",key:a.key},c=na(this.e,this),a=a||j,d="_"+(Tc++).toString(36)+pa().toString(36);n._callbacks_||(n._callbacks_={});var e=b.b.G();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&Eb(e,f,a[f]);c&&(n._callbacks_[d]=function(a){Uc(d,i);c.apply(h,arguments)},Eb(e,b.a,"_callbacks_."+ d));f=Mc(e.toString(),{timeout:b.Oa,nb:i});f.a.push([j,function(){Uc(d,l)},h]);f.R&&Ic(f)}A(Zd,Vd); Zd.prototype.e=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new Xd({z:d,eb:new Wc(b.imageWidth,b.imageHeight)});this.K=e;this.P=Qd(function(a){if(a.je||b<=e?j:new cd(a.j,tc(a.x,b),e)},Od(za(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.gc);return function(a){return a===j?h:c.replace("{quadkey}",ed(a))}})));var f=wd("EPSG:4326");this.a=za(b.imageryProviders,function(a){var b= a.attribution,a=za(a.coverageAreas,function(a){var b=a.bbox;return new od(e,new Zc(b[1],b[0],b[3],b[2]),a.zoomMin,a.zoomMax)});return new Id(b,a,f)});this.c=i;P(this,"load")};Zd.prototype.V=ca("c");function V(a){I.call(this);t(a)&&this.Ya(a)}A(V,Jd);var $d={},ae={},be={};function ce(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function de(a){return a.ol_accessors_||(a.ol_accessors_={})}function W(a){return $d[a]||($d[a]=a.toLowerCase()+"_changed")}function ee(a){return a.ol_bindings_||(a.ol_bindings_={})}m=V.prototype;m.cc=function(a,b,c,d){c=c||a;this.gb(a);var e=W(c);ee(this)[a]=J(b,e,function(){fe(this,a)},h,this);de(this)[a]={target:b,key:c};d||fe(this,a)};m.fc=s; m.r=function(a){var b=de(this);if(a in b){var b=b[a],a=b.target,b=b.key,c=ae[b]||(ae[b]="get"+ce(b));return a[c]?a[c]():a.r(b)}return this[a]};m.Ib=function(a){var b=de(this);a in b?(a=b[a],a.target.Ib(a.key)):fe(this,a)};function fe(a,b){var c=W(b);P(a,c)}m.set=function(a,b){var c=de(this);if(a in c){var d=c[a],c=d.target,d=d.key,e=be[d]||(be[d]="set"+ce(d));if(c[e])c[e](b);else c.set(d,b)}else this[a]=b,fe(this,a)}; m.Pb=function(a){D(a,function(a,c){var d=be[c]||(be[c]="set"+ce(c));if(this[d])this[d](a);else this.set(c,a)},this)};m.Ya=V.prototype.Pb;m.gb=function(a){var b=ee(this),c=b[a];c&&(delete b[a],L(c),b=this.r(a),delete de(this)[a],this[a]=b)};m.Vc=function(){var a=ee(this);C(Ha(a),function(a){this.gb(a)},this)};function ge(a,b,c,d,e){Qb.call(this,a,e);this.a=b;this.index=c;this.c=d}A(ge,Qb);function X(a){V.call(this);this.a=a||[];he(this)}A(X,V);m=X.prototype;m.clear=function(){for(;this.length;)this.Jb()};m.forEach=function(a,b){C(this.a,a,b)};m.jc=ca("a");m.kc=function(a){return this.a[a]};m.sb=function(){return this.r("length")};m.Ba=function(a,b){Da(this.a,a,0,b);he(this);P(this,new ge("add",b,h,h,this));P(this,new ge("insert_at",b,a,h,this))};m.Jb=function(){return this.Nb(this.sb()-1)}; m.push=function(a){var b=this.a.length;this.Ba(b,a);return b};m.Nb=function(a){var b=this.a[a];B.splice.call(this.a,a,1);he(this);P(this,new ge("remove",b,h,h,this));P(this,new ge("remove_at",h,a,b,this));return b};m.Mc=function(a,b){var c=this.length;if(ac?1:0)},Dc:function(a){return t(a)?ie.rb(a.y,"NS")+" "+ie.rb(a.x,"EW"):""}};function je(a){I.call(this);this.Z=a||window;this.Ea=J(this.Z,"resize",this.zc,l,this);this.Y=Ac(this.Z||window);if(G&&Va||ab&&this.Z.self!=this.Z.top)this.Qa=window.setInterval(na(this.mb,this),ke)}A(je,Jd);var ke=500;m=je.prototype;m.Ea=j;m.Z=j;m.Y=j;m.Qa=j;m.o=function(){je.i.o.call(this);this.Ea&&(L(this.Ea),this.Ea=j);this.Qa&&(window.clearInterval(this.Qa),this.Qa=j);this.Y=this.Z=j};m.zc=function(){this.mb()}; m.mb=function(){var a=Ac(this.Z||window);if(!(a==this.Y||(!a||!this.Y?0:a.width==this.Y.width&&a.height==this.Y.height)))this.Y=a,P(this,"resize")};function le(a,b,c,d,e){if(!E&&(!G||!H("525")))return i;if(Ua&&e)return me(a);if(e&&!d||!c&&(17==b||18==b)||E&&d&&b==a)return l;switch(a){case 13:return!(E&&nb(9));case 27:return!G}return me(a)}function me(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||G&&0==a)return i;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return i;default:return l}} function ne(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function oe(a,b){I.call(this);a&&(this.Da&&pe(this),this.ha=a,this.Ca=J(this.ha,"keypress",this,b),this.Xa=J(this.ha,"keydown",this.a,b,this),this.Da=J(this.ha,"keyup",this.b,b,this))}A(oe,Jd);m=oe.prototype;m.ha=j;m.Ca=j;m.Xa=j;m.Da=j;m.O=-1;m.N=-1;m.Ra=l; var qe={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},re={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},se=E||G&&H("525"),te=Ua&&F; oe.prototype.a=function(a){if(G&&(17==this.O&&!a.va||18==this.O&&!a.I))this.N=this.O=-1;se&&!le(a.aa,this.O,a.U,a.va,a.I)?this.handleEvent(a):(this.N=F?ne(a.aa):a.aa,te&&(this.Ra=a.I))};oe.prototype.b=function(a){this.N=this.O=-1;this.Ra=a.I}; oe.prototype.handleEvent=function(a){var b=a.A,c,d,e=b.altKey;E&&"keypress"==a.type?(c=this.N,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.N,d=0<=b.charCode&&63232>b.charCode&&me(c)?b.charCode:0):ab?(c=this.N,d=me(c)?b.keyCode:0):(c=b.keyCode||this.N,d=b.charCode||0,te&&(e=this.Ra),Ua&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in qe?f=qe[c]:25==c&&a.U&&(f=9):g&&g in re&&(f=re[g]);a=f==this.O;this.O=f;b=new ue(f,d,a,b);b.I=e;P(this,b)}; function pe(a){a.Ca&&(L(a.Ca),L(a.Xa),L(a.Da),a.Ca=j,a.Xa=j,a.Da=j);a.ha=j;a.O=-1;a.N=-1}oe.prototype.o=function(){oe.i.o.call(this);pe(this)};function ue(a,b,c,d){d&&Ub(this,d,h);this.type="key";this.aa=a;this.ua=b;this.a=c}A(ue,Tb);function ve(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}ve.prototype.G=function(){return new ve(this.top,this.right,this.bottom,this.left)};function we(a,b,c){v(b)?xe(a,c,b):D(b,oa(xe,a))}function xe(a,b,c){a.style[String(c).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()})]=b}function ye(a,b){var c=xc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,j))?c[b]||c.getPropertyValue(b)||"":""}function ze(a,b){return a.currentStyle?a.currentStyle[b]:j}function Ae(a,b){return ye(a,b)||ze(a,b)||a.style&&a.style[b]} function Be(a,b){var c,d,e=F&&(Ua||db)&&H("1.9");b instanceof R?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Ce(c,e);a.style.top=Ce(d,e)}function De(a){var b=a.getBoundingClientRect();E&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b} function Ee(a){if(E&&!nb(8))return a.offsetParent;for(var b=xc(a),c=Ae(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ae(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return j}function Fe(a,b){var c=Ge(a),d=Ge(b);return new R(c.x-d.x,c.y-d.y)} function Ge(a){var b=new R;if(1==a.nodeType){if(a.getBoundingClientRect){var c=De(a);b.x=c.left;b.y=c.top}else{c=Fc(vc(a));var d,e=xc(a),f=Ae(a,"position"),g=F&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),k=new R(0,0),q;d=e?xc(e):document;if(q=E)if(q=!nb(9))vc(d),q=l;q=q?d.body:d.documentElement;if(a!=q)if(a.getBoundingClientRect)d=De(a),e=Fc(vc(e)),k.x=d.left+e.x,k.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a), e=e.getBoxObjectFor(q),k.x=d.screenX-e.screenX,k.y=d.screenY-e.screenY;else{g=a;do{k.x+=g.offsetLeft;k.y+=g.offsetTop;g!=a&&(k.x+=g.clientLeft||0,k.y+=g.clientTop||0);if(G&&"fixed"==Ae(g,"position")){k.x+=e.body.scrollLeft;k.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(ab||G&&"absolute"==f)k.y-=e.body.offsetTop;for(g=a;(g=Ee(g))&&g!=e.body&&g!=q;)if(k.x-=g.scrollLeft,!ab||"TR"!=g.tagName)k.y-=g.scrollTop}b.x=k.x-c.x;b.y=k.y-c.y}if(F&&!H(12)){var u;E?u="-ms-transform":G?u="-webkit-transform": ab?u="-o-transform":F&&(u="-moz-transform");var r;u&&(r=Ae(a,u));r||(r=Ae(a,"transform"));r?(a=r.match(He),a=!a?new R(0,0):new R(parseFloat(a[1]),parseFloat(a[2]))):a=new R(0,0);b=new R(b.x+a.x,b.y+a.y)}}else u=ha(a.lc),r=a,a.targetTouches?r=a.targetTouches[0]:u&&a.A.targetTouches&&(r=a.A.targetTouches[0]),b.x=r.clientX,b.y=r.clientY;return b}function Ce(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Ie(a,b){a.style.display=b?"":"none"} function Je(a,b){vc(xc(a));if(E&&!H("8")){var c=a.style,d;if(E){d=Ke(a,ze(a,"paddingLeft"));var e=Ke(a,ze(a,"paddingRight")),f=Ke(a,ze(a,"paddingTop")),g=Ke(a,ze(a,"paddingBottom"));d=new ve(f,e,g,d)}else d=ye(a,"paddingLeft"),e=ye(a,"paddingRight"),f=ye(a,"paddingTop"),g=ye(a,"paddingBottom"),d=new ve(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(E)var e=Le(a,"borderLeft"),f=Le(a,"borderRight"),g=Le(a,"borderTop"),k=Le(a,"borderBottom"),e=new ve(g,f,k,e);else e=ye(a,"borderLeftWidth"), f=ye(a,"borderRightWidth"),g=ye(a,"borderTopWidth"),k=ye(a,"borderBottomWidth"),e=new ve(parseFloat(g),parseFloat(f),parseFloat(k),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,F?c.MozBoxSizing="border-box":G?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"} function Ke(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Me={thin:2,medium:4,thick:6};function Le(a,b){if("none"==ze(a,b+"Style"))return 0;var c=ze(a,b+"Width");return c in Me?Me[c]:Ke(a,c)}var He=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Ne(a){I.call(this);this.a=a;a=ia(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:j;this.e=!!a&&"rtl"==Ae(a,"direction");this.b=J(this.a,F?"DOMMouseScroll":"mousewheel",this)}A(Ne,Jd); Ne.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.A;if("mousewheel"==a.type){c=1;if(E||G&&(Va||H("532.0")))c=40;d=Oe(-a.wheelDelta,c);t(a.wheelDeltaX)?(b=Oe(-a.wheelDeltaX,c),c=Oe(-a.wheelDeltaY,c)):c=d}else d=a.detail,100d&&(d=-3),t(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=sc(b,-this.c,this.c));"number"==typeof this.d&&(c=sc(c,-this.d,this.d));this.e&&(b=-b);b=new Pe(d,a,b,c);P(this,b)};function Oe(a,b){return G&&(Ua||Wa)&&0!=a%b?a:a/b} Ne.prototype.o=function(){Ne.i.o.call(this);L(this.b);delete this.b};function Pe(a,b,c,d){b&&Ub(this,b,h);this.type="mousewheel";this.e=a;this.c=c;this.a=d}A(Pe,Tb);var Qe=n.window;function Re(a,b,c){I.call(this);this.b=a;this.e=b||0;this.c=c;this.d=na(this.f,this)}A(Re,I);Re.prototype.a=0;Re.prototype.o=function(){Re.i.o.call(this);Se(this);delete this.b;delete this.c};function Se(a){0!=a.a&&Qe.clearTimeout(a.a);a.a=0}Re.prototype.f=function(){this.a=0;this.b&&this.b.call(this.c)};var Te={},Ue=j;function Ve(){Ue||(Ue=new Re(function(){pa();D(Te,function(a){We(a)});Ia(Te)||Ve()},20));var a=Ue;if(0==a.a){Se(a);var b;b=a.d;var c=t(h)?h:a.e;if(!ha(b))if(b&&"function"==typeof b.handleEvent)b=na(b.handleEvent,b);else throw Error("Invalid listener argument");b=2147483647c.a?this.a:-this.a,d);a.t();c.t()}};function Nf(a,b){V.call(this);this.e=a;this.a=b;J(this.a,W("brightness"),this.xb,l,this);J(this.a,W("contrast"),this.yb,l,this);J(this.a,W("hue"),this.zb,l,this);J(this.a,"load",this.Za,l,this);J(this.a,W("opacity"),this.xa,l,this);J(this.a,W("saturation"),this.Ab,l,this);J(this.a,W("visible"),this.ya,l,this)}A(Nf,V);m=Nf.prototype;m.H=ca("a");m.S=ca("e");m.xb=s;m.yb=s;m.zb=s;m.Za=s;m.xa=s;m.Ab=s;m.ya=s;function Of(a){this.length=a.length||a;for(var b=0;bthis.l&&(0===this.oa?We(this):this.na=i)}; function We(a){var b=a.f.p();a.na=l;if(b!=a.Rb){if(b){if(1==++a.l){var c=w(a);c in Te||(Te[c]=a);Ve()}}else 0===--a.l&&(c=w(a),delete Te[c],Ia(Te)&&Ue&&Se(Ue));a.Rb=b}P(a,tg)}m.rotate=function(a,b){a=this.J.a(a,b);this.Ka(a)};m.Nc=function(a){this.set(Xf,a)};Z.prototype.setBackgroundColor=Z.prototype.Nc;Z.prototype.h=function(a){this.set(uf,a)};Z.prototype.setCenter=Z.prototype.h;Z.prototype.Zb=function(a){this.set(tf,a)};Z.prototype.setLayers=Z.prototype.Zb; Z.prototype.Yb=function(a){this.set("projection",a)};Z.prototype.setProjection=Z.prototype.Yb;Z.prototype.v=function(a){this.set(vf,a)};Z.prototype.setResolution=Z.prototype.v;Z.prototype.Ka=function(a){this.set(Yf,a)};Z.prototype.setRotation=Z.prototype.Ka;Z.prototype.lb=function(a){this.set(wf,a)};Z.prototype.setSize=Z.prototype.lb;Z.prototype.$b=function(a){this.h(this.bb(a))};Z.prototype.setUserCenter=Z.prototype.$b;Z.prototype.ac=function(a){this.set("userProjection",a)}; Z.prototype.setUserProjection=Z.prototype.ac;function Jf(a,b,c){++a.oa;try{b.call(c)}finally{0===--a.oa&&(1>a.l&&a.na)&&We(a)}}Z.prototype.zoom=function(a,b){var c=this.J.resolution(this.a(),a);if(c!=j&&b!=j){var d=this.c(),e=this.a(),f=new T(b.x-c*(b.x-d.x)/e,b.y-c*(b.y-d.y)/e);Jf(this,function(){this.h(f);this.v(c)},this)}else this.v(c)};function Eg(a){var b=Bc("DIV",{"class":"ol-mouse-position"});nf.call(this,{element:b,map:a.map,target:a.target});this.h=a.projection;this.e=a.coordinateFormat;this.d=t(a.undefinedHtml)?a.undefinedHtml:"";this.c=zd;this.b=[];this.f()}A(Eg,nf);Eg.prototype.f=function(){Fg(this);this.element.innerHTML=this.d};Eg.prototype.l=function(a){var b=this.a,a=Fe(a,b.b),b=b.u()?ef(b.f,new bf(a.x,a.y)):j;b===j?b=this.d:(b=this.c(b),b=t(this.e)?this.e(b):b.toString());this.element.innerHTML=b}; Eg.prototype.m=function(){this.element.innerHTML=this.d};Eg.prototype.C=function(a){this.b!==j&&(C(this.b,L),this.b=j);Eg.i.C.call(this,a);if(a!==j){var b=a.b;this.s=[J(a,W("projection"),this.f,l,this),J(b,"mousemove",this.l,l,this),J(b,"mouseout",this.m,l,this)];Fg(this)}};function Fg(a){var b=a.a;b===j?a.c=zd:(b=b.g(),a.c=!t(b)||!t(a.h)?zd:yd(b,a.h))};function Gg(){this.a={}}A(Gg,yf);Gg.prototype.c=function(a,b){var c;for(c=0;cg||f<=g)return j;f=tc(b.x,f);return!Yc(jd(c,new cd(b.j,f,b.y)),d)?j:new cd(b.j,f,g)},b):Qd(function(b){if(a.zd||c<=d?j:new cd(b.j,tc(b.x,c),d)},b);Vd.call(this,{F:a.F,crossOrigin:a.crossOrigin,w:a.w,projection:wd("EPSG:3857"),K:c,P:b})}A(Mg,Vd);function Ng(){Mg.call(this,{F:[new Id('Tiles Courtesy of MapQuest '),new Id('Data © OpenStreetMap contributors, CC BY-SA')],z:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}A(Ng,Mg); function Og(){Mg.call(this,{F:[new Id('Tiles Courtesy of MapQuest '),new Id("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],z:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}A(Og,Mg);function Pg(){Mg.call(this,{F:[new Id('© OpenStreetMap contributors, CC BY-SA')],z:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}A(Pg,Mg);var Qg={terrain:{type:"jpg",Gb:4,z:18},toner:{type:"png",Gb:0,z:20},watercolor:{type:"jpg",Gb:3,z:16}}; function Rg(a){var b=new Id('Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.'),c=a.Lc;t(a.ic)&&(c+="-"+a.ic);a=Qg[a.Lc];Mg.call(this,{F:[b],z:a.z,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}A(Rg,Mg);var Sg=[];z("grid",function(a){Sg.push(a)});function Tg(a){Vd.call(this,{projection:wd("EPSG:3857")});this.c=l;a=this.e=Mc(a.uri,{nb:i});a.a.push([this.f,j,this]);a.R&&Ic(a)}A(Tg,Vd); Tg.prototype.f=function(){var a=Sg.pop(),b=wd("EPSG:4326"),c,d;t(a.bounds)?(c=a.bounds,c=new Zc(c[0],c[1],c[2],c[3]),this.g=d=c.transform(yd(b,this.h))):d=c=j;var e=a.minzoom||0,f=a.maxzoom||22,g=new Xd({z:f});this.K=g;this.P=Qd(function(a){if(a.jc||b<=c)return j;b=tc(a.x,b);return d!==j&&!Yc(jd(g,new cd(a.j,b,a.y)),d)?j:new cd(a.j,b,c)},Od(za(a.tiles,Nd)));t(a.attribution)&&(this.a=[new Id(a.attribution,[new od(g,c,e,f)],b)]);this.c=i;P(this,"load")}; Tg.prototype.V=ca("c");z("goog.require",s);z("ol.BingMapsStyle",Yd);Yd.AERIAL="Aerial";Yd.AERIAL_WITH_LABELS="AerialWithLabels";Yd.COLLINS_BART="CollinsBart";Yd.ORDNANCE_SURVEY="OrdnanceSurvey";Yd.ROAD="Road";z("ol.Collection",X);X.prototype.clear=X.prototype.clear;X.prototype.forEach=X.prototype.forEach;X.prototype.getArray=X.prototype.jc;X.prototype.getAt=X.prototype.kc;X.prototype.getLength=X.prototype.sb;X.prototype.insertAt=X.prototype.Ba;X.prototype.pop=X.prototype.Jb;X.prototype.push=X.prototype.push; X.prototype.removeAt=X.prototype.Nb;X.prototype.setAt=X.prototype.Mc;z("ol.Coordinate",T);z("ol.CoordinateFormat",ie);ie.hdms=ie.Dc;z("ol.Extent",Zc); function Ug(a){Z.call(this,{center:a.center,controls:a.controls,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,maxResolution:a.maxResolution,mouseWheelZoom:a.mouseWheelZoom,mouseWheelZoomDelta:a.mouseWheelZoomDelta,numZoomLevels:a.numZoomLevels,projection:a.projection,renderer:a.renderer,renderers:a.renderers,resolution:a.resolution,resolutions:a.resolutions,rotate:a.rotate,shiftDragZoom:a.shiftDragZoom, target:a.target,userProjection:a.userProjection,zoom:a.zoom,zoomDelta:a.zoomDelta,zoomFactor:a.zoomFactor})}A(Ug,Z);z("ol.Map",Ug);Z.prototype.getControls=Z.prototype.Wb;Z.prototype.getInteractions=Z.prototype.Xb;cf.prototype.getCoordinate=cf.prototype.c;z("ol.Object",V);V.prototype.bindTo=V.prototype.cc;V.prototype.changed=V.prototype.fc;V.prototype.get=V.prototype.r;V.prototype.notify=V.prototype.Ib;V.prototype.set=V.prototype.set;V.prototype.setOptions=V.prototype.Pb;V.prototype.setValues=V.prototype.Ya; V.prototype.unbind=V.prototype.gb;V.prototype.unbindAll=V.prototype.Vc;z("ol.Projection",U);U.getFromCode=wd;U.getTransform=yd;U.getTransformFromCodes=Ad;U.transform=function(a,b,c){return yd(b,c)(a)};U.transformWithCodes=function(a,b,c){return Ad(b,c)(a)};U.prototype.getCode=U.prototype.d;U.prototype.getExtent=U.prototype.f;U.prototype.getUnits=U.prototype.e;z("ol.RendererHint",Bg);Bg.DOM="dom";Bg.WEBGL="webgl";function Vg(a){of.call(this,{map:a.map,target:a.target})}A(Vg,of); z("ol.control.Attribution",Vg);function Wg(a){Eg.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHtml:a.undefinedHtml})}A(Wg,Eg);z("ol.control.MousePosition",Wg);function Xg(a){xf.call(this,{delta:a.delta,map:a.map,target:a.target})}A(Xg,xf);z("ol.control.Zoom",Xg);z("ol.interaction.Keyboard",Gg);Gg.prototype.addCallback=Gg.prototype.c; function Yg(a){Y.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}A(Yg,ag);z("ol.layer.TileLayer",Yg);function Zg(a){Hg.call(this,{coordinate:a.coordinate,element:a.element,map:a.map,positioning:a.positioning})}A(Zg,Hg);z("ol.overlay.Overlay",Zg);Hg.prototype.getElement=Hg.prototype.l;Hg.prototype.setCoordinate=Hg.prototype.h;Hg.prototype.setMap=Hg.prototype.g;z("ol.source.BingMaps",Zd); z("ol.source.MapQuestOSM",Ng);z("ol.source.MapQuestOpenAerial",Og);z("ol.source.OpenStreetMap",Pg);z("ol.source.Stamen",Rg);z("ol.source.TileJSON",Tg);})();