(function(){var h=void 0,i=!0,j=null,l=!1;function da(a){return function(){return this[a]}}var m,n=this;function s(){}function ea(a){a.ta=function(){return a.Bb?a.Bb:a.Bb=new a}} function fa(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 ga(a){return"array"==fa(a)}function ha(a){var b=fa(a);return"array"==b||"object"==b&&"number"==typeof a.length}function v(a){return"string"==typeof a}function ia(a){return"function"==fa(a)}function ja(a){var b=typeof a;return"object"==b&&a!=j||"function"==b}function w(a){return a[ka]||(a[ka]=++la)}var ka="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),la=0; function ma(a,b,c){return a.call.apply(a.bind,arguments)}function na(a,b,c){if(!a)throw Error();if(2")&&(a=a.replace(wa,">"));-1!=a.indexOf('"')&&(a=a.replace(ya,"""));return a}var ua=/&/g,va=//g,ya=/\"/g,ta=/[&<>\"]/;var B=Array.prototype,za=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 Ga(a,b){return a>b?1:ac*b?c+b:c};function D(a,b){this.x=t(a)?a:0;this.y=t(b)?b:0}D.prototype.H=function(){return new D(this.x,this.y)};function Ja(a,b){this.x=a;this.y=b}A(Ja,D);Ja.prototype.H=function(){return new Ja(this.x,this.y)};Ja.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Ja.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function E(a,b){Ja.call(this,a,b)}A(E,Ja);function Ka(a,b){var c=Ia(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};function La(a,b){this.width=a;this.height=b}La.prototype.H=function(){return new La(this.width,this.height)};La.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};La.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};La.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ma(a,b){La.call(this,a,b)}A(Ma,La);function Na(a,b,c,d){this.k=a;this.n=b;this.q=c;this.z=d}Na.prototype.a=function(){return this.z-this.n};Na.prototype.b=function(){return this.q-this.k};function Oa(a,b){return a.k<=b.q&&a.q>=b.k&&a.n<=b.z&&a.z>=b.n}Na.prototype.toString=function(){return"("+[this.k,this.n,this.q,this.z].join(", ")+")"};function Pa(a,b,c,d){Na.call(this,a,b,c,d)}A(Pa,Na);function Qa(a){var b=arguments[0],b=new Pa(b.x,b.y,b.x,b.y),c;for(c=1;cparseFloat(Ob)){Nb=String(Sb);break a}}Nb=Ob}var Ub={}; function L(a){var b;if(!(b=Ub[a])){b=0;for(var c=String(Nb).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==q[1].length?0:parseInt(q[1],10))?1:0)||((0==p[2].length)<(0==q[2].length)?-1:(0==p[2].length)>(0==q[2].length)?1:0)||(p[2]q[2]?1:0)}while(0==b)}b=Ub[a]=0<=b}return b}var Vb={};function Wb(a){return Vb[a]||(Vb[a]=H&&!!document.documentMode&&document.documentMode>=a)};var Xb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Yb(a,b){var c;if(a instanceof Yb)this.T=t(b)?b:a.T,fc(this,a.da),c=a.Pa,gc(this),this.Pa=c,c=a.ga,gc(this),this.ga=c,hc(this,a.Ja),c=a.Ha,gc(this),this.Ha=c,ic(this,a.a.H()),c=a.sa,gc(this),this.sa=c;else if(a&&(c=String(a).match(Xb))){this.T=!!b;fc(this,c[1]||"",i);var d=c[2]||"";gc(this);this.Pa=d?decodeURIComponent(d):"";d=c[3]||"";gc(this);this.ga=d?decodeURIComponent(d):"";hc(this,c[4]);d=c[5]||"";gc(this);this.Ha=d?decodeURIComponent(d):"";ic(this,c[6]||"",i);c=c[7]||"";gc(this);this.sa= c?decodeURIComponent(c):""}else this.T=!!b,this.a=new jc(j,0,this.T)}m=Yb.prototype;m.da="";m.Pa="";m.ga="";m.Ja=j;m.Ha="";m.sa="";m.Bc=l;m.T=l; m.toString=function(){var a=[],b=this.da;b&&a.push(kc(b,lc),":");if(b=this.ga){a.push("//");var c=this.Pa;c&&a.push(kc(c,lc),"@");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(kc(b,"/"==b.charAt(0)?mc:nc));(b=this.a.toString())&&a.push("?",b);(b=this.sa)&&a.push("#",kc(b,oc));return a.join("")};m.H=function(){return new Yb(this)}; function fc(a,b,c){gc(a);a.da=c?b?decodeURIComponent(b):"":b;a.da&&(a.da=a.da.replace(/:$/,""))}function hc(a,b){gc(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 ic(a,b,c){gc(a);if(b instanceof jc){a.a=b;b=a.a;if((a=a.T)&&!b.b){pc(b);b.a=j;var d=b.s,c=function(a,b){var c=b.toLowerCase();b!=c&&(qc(this,b),rc(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(ha(d)||v(d))C(d,c,b);else{var e;if("function"==typeof d.$)e=d.$();else if("function"!=typeof d.M)if(ha(d)||v(d)){e=[];for(var f=d.length,g=0;g>4&15).toString(16)+(a&15).toString(16)}var lc=/[#\/\?@]/g,nc=/[\#\?:]/g,mc=/[\#\?]/g,sc=/[\#\?@]/g,oc=/#/g;function jc(a,b,c){this.a=a||j;this.b=!!c} function pc(a){if(!a.s&&(a.s=new ub,a.l=0,a.a))for(var b=a.a.split("&"),c=0;c2*c.l&&vb(c))}}m.clear=function(){this.s=this.a=j;this.l=0};function wc(a,b){pc(a);b=vc(a,b);return wb(a.s.b,b)}m.$=function(){pc(this);for(var a=this.s.M(),b=this.s.$(),c=[],d=0;d=a.keyCode)a.keyCode=-1}catch(b){}};m.jc=da("C");function Mc(){}var Nc=0;Mc.prototype.key=0;Mc.prototype.ca=l;Mc.prototype.a=l;Mc.prototype.handleEvent=function(a){return this.b?this.ma.call(this.Xa||this.src,a):this.ma.handleEvent.call(this.ma,a)};var Oc={},Pc={},Qc={},Rc={}; function R(a,b,c,d,e){if(b){if(ga(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(p){u=i}if(u||f.returnValue==h)f.returnValue=i}}u=new Ic;Jc(u,f,this);f=i;try{if(k){for(var q=[],x=u.b;x;x=x.parentNode)q.push(x);g=e[i];g.D=g.l;for(var y=q.length- 1;!u.X&&0<=y&&g.D;y--)u.b=q[y],f&=Wc(g,q[y],d,i,u);if(r){g=e[l];g.D=g.l;for(y=0;!u.X&&y");f=f.join("")}f=e.createElement(f);g&&(v(g)?f.className=g:ga(g)?$c.apply(j,[f].concat(g)):dd(f,g));2>=1;return b.join("")}V.prototype.toString=function(){return[this.i,this.x,this.y].join("/")};function Dd(a,b,c,d){Na.call(this,a,b,c,d)}A(Dd,Na);function Ed(a,b,c,d){var e,f;for(e=a.k;e<=a.q;++e)for(f=a.n;f<=a.z;++f)c.call(d,new V(b,e,f))}Dd.prototype.a=function(){return this.z-this.n+1};Dd.prototype.b=function(){return this.q-this.k+1};function Fd(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d=a.q&&(d.x+=1);b.y=a.z&&(d.y+=1);return d};function Md(a,b,c,d){this.extent=b;this.c=a;this.b=c;this.a=d}A(Md,Ra);Md.prototype.transform=function(a){a=this.extent.transform(a);return new Md(this.c,a,this.b,this.a)};function Nd(){M.call(this)}A(Nd,M);m=Nd.prototype;m.pb=i;m.bb=j;m.addEventListener=function(a,b,c,d){R(this,a,b,c,d)};m.removeEventListener=function(a,b,c,d){Uc(this,a,b,c,d)};m.r=function(){Nd.j.r.call(this);var a,b=0,c=a==j;a=!!a;if(this==j)F(Qc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)T(f.key),b++}});else{var d=w(this);if(Qc[d])for(var d=Qc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)T(f.key),b++}}this.bb=j};function Od(a,b,c){M.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(Od,Nd);function Pd(a,b){if(t(b)){var c,d=w(b);if(d in a.d)return a.d[d];c=Ua(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}Od.prototype.e=function(){this.a=3;C(this.c,T);this.c=j};Od.prototype.f=function(){this.a=2;C(this.c,T);this.c=j;U(this,"change")};function Qd(a){0==a.a&&(a.a=1,a.c=[Tc(a.b,"error",a.e,l,a),Tc(a.b,"load",a.f,l,a)],a.b.src=a.g)};function Rd(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 Sd(Aa(c,Rd))}return function(b){return b===j?h:a.replace("{z}",b.i).replace("{x}",b.x).replace("{y}",b.y)}}function Sd(a){return function(b){if(b!==j){var c=Ia(b.hash(),a.length);return a[c](b)}}}function Td(){}function Ud(a,b){return function(c){return c===j?h:b(a(c))}};function Vd(a){return function(){return a}}var Wd=Vd(l),Xd=Vd(i),Yd=Vd(j);function Zd(a){M.call(this);this.h=t(a.projection)?a.projection:j;this.g=t(a.extent)?a.extent:a.projection.b;this.a=t(a.attributions)?a.attributions:j}A(Zd,Nd);Zd.prototype.V=Xd;function $d(a){Zd.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=t(a.tileGrid)?a.tileGrid:j;this.L=t(a.L)?a.L:Td;this.d=t(a.crossOrigin)?a.crossOrigin:"anonymous";this.b={}}A($d,Zd);function ae(a,b){var c=b.toString();if(c in a.b)return a.b[c];var d=a.L(b),d=t(d)?new Od(b,d,a.d):j;return a.b[c]=d};function be(a){var b=Array(a.maxZoom+1),c;for(c=0;c<=a.maxZoom;++c)b[c]=lb/(128<a)break;d=Math.floor(d/2);e=Math.floor(e/2);f=new Dd(d,e,d,e);if(b.call(c,a,f))break}};var ce={Tc:"Aerial",Uc:"AerialWithLabels",ad:"Road",$c:"OrdnanceSurvey",Vc:"CollinsBart"}; function de(a){$d.call(this,{projection:gb("EPSG:3857")});this.ec=t(a.culture)?a.culture:"en-us";this.c=l;var b=new Yb("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new xd(b),a={include:"ImageryProviders",key:a.key},c=oa(this.e,this),a=a||j,d="_"+(yd++).toString(36)+qa().toString(36);n._callbacks_||(n._callbacks_={});var e=b.b.H();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&tc(e,f,a[f]);c&&(n._callbacks_[d]=function(a){zd(d,i);c.apply(h,arguments)},tc(e,b.a,"_callbacks_."+ d));f=rd(e.toString(),{timeout:b.Oa,nb:i});f.a.push([j,function(){zd(d,l)},h]);f.R&&nd(f)}A(de,$d); de.prototype.e=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new be({maxZoom:d,eb:new Ma(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.L=Ud(function(a){if(a.ie||b<=e?j:new V(a.i,Ia(a.x,b),e)},Sd(Aa(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.ec);return function(a){return a===j?h:c.replace("{quadkey}",Cd(a))}})));var f=gb("EPSG:4326");this.a=Aa(b.imageryProviders, function(a){var b=a.attribution,a=Aa(a.coverageAreas,function(a){var b=a.bbox;return new Md(e,new Pa(b[1],b[0],b[3],b[2]),a.zoomMin,a.zoomMax)});return new sb(b,a,f)});this.c=i;U(this,"load")};de.prototype.V=da("c");function W(a){M.call(this);t(a)&&this.Za(a)}A(W,Nd);var ee={},fe={},ge={};function he(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function ie(a){return a.ol_accessors_||(a.ol_accessors_={})}function X(a){return ee[a]||(ee[a]=a.toLowerCase()+"_changed")}function je(a){return a.ol_bindings_||(a.ol_bindings_={})}m=W.prototype;m.ac=function(a,b,c,d){c=c||a;this.gb(a);var e=X(c);je(this)[a]=R(b,e,function(){ke(this,a)},h,this);ie(this)[a]={target:b,key:c};d||ke(this,a)};m.dc=s; m.t=function(a){var b=ie(this);if(a in b){var b=b[a],a=b.target,b=b.key,c=fe[b]||(fe[b]="get"+he(b));return a[c]?a[c]():a.t(b)}return this[a]};m.Gb=function(a){var b=ie(this);a in b?(a=b[a],a.target.Gb(a.key)):ke(this,a)};function ke(a,b){var c=X(b);U(a,c)}m.set=function(a,b){var c=ie(this);if(a in c){var d=c[a],c=d.target,d=d.key,e=ge[d]||(ge[d]="set"+he(d));if(c[e])c[e](b);else c.set(d,b)}else this[a]=b,ke(this,a)}; m.Ob=function(a){F(a,function(a,c){var d=ge[c]||(ge[c]="set"+he(c));if(this[d])this[d](a);else this.set(c,a)},this)};m.Za=W.prototype.Ob;m.gb=function(a){var b=je(this),c=b[a];c&&(delete b[a],T(c),b=this.t(a),delete ie(this)[a],this[a]=b)};m.Sc=function(){var a=je(this);C(Ta(a),function(a){this.gb(a)},this)};function le(a,b,c,d,e){Fc.call(this,a,e);this.a=b;this.index=c;this.c=d}A(le,Fc);function Y(a){W.call(this);this.a=a||[];me(this)}A(Y,W);m=Y.prototype;m.clear=function(){for(;this.length;)this.Hb()};m.forEach=function(a,b){C(this.a,a,b)};m.hc=da("a");m.ic=function(a){return this.a[a]};m.qb=function(){return this.t("length")};m.Ba=function(a,b){Ea(this.a,a,0,b);me(this);U(this,new le("add",b,h,h,this));U(this,new le("insert_at",b,a,h,this))};m.Hb=function(){return this.Lb(this.qb()-1)}; m.push=function(a){var b=this.a.length;this.Ba(b,a);return b};m.Lb=function(a){var b=this.a[a];B.splice.call(this.a,a,1);me(this);U(this,new le("remove",b,h,h,this));U(this,new le("remove_at",h,a,b,this));return b};m.Jc=function(a,b){var c=this.length;if(a=a||96<=a&&106>=a||65<=a&&90>=a||J&&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 re(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function se(a,b){M.call(this);a&&(this.Da&&te(this),this.ha=a,this.Ca=R(this.ha,"keypress",this,b),this.Ya=R(this.ha,"keydown",this.a,b,this),this.Da=R(this.ha,"keyup",this.b,b,this))}A(se,Nd);m=se.prototype;m.ha=j;m.Ca=j;m.Ya=j;m.Da=j;m.P=-1;m.O=-1;m.Ra=l; var ue={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},ve={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},we=H||J&&L("525"),xe=Cb&&I; se.prototype.a=function(a){if(J&&(17==this.P&&!a.va||18==this.P&&!a.J))this.O=this.P=-1;we&&!pe(a.aa,this.P,a.U,a.va,a.J)?this.handleEvent(a):(this.O=I?re(a.aa):a.aa,xe&&(this.Ra=a.J))};se.prototype.b=function(a){this.O=this.P=-1;this.Ra=a.J}; se.prototype.handleEvent=function(a){var b=a.C,c,d,e=b.altKey;H&&"keypress"==a.type?(c=this.O,d=13!=c&&27!=c?b.keyCode:0):J&&"keypress"==a.type?(c=this.O,d=0<=b.charCode&&63232>b.charCode&&qe(c)?b.charCode:0):Jb?(c=this.O,d=qe(c)?b.keyCode:0):(c=b.keyCode||this.O,d=b.charCode||0,xe&&(e=this.Ra),Cb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in ue?f=ue[c]:25==c&&a.U&&(f=9):g&&g in ve&&(f=ve[g]);a=f==this.P;this.P=f;b=new ye(f,d,a,b);b.J=e;U(this,b)}; function te(a){a.Ca&&(T(a.Ca),T(a.Ya),T(a.Da),a.Ca=j,a.Ya=j,a.Da=j);a.ha=j;a.P=-1;a.O=-1}se.prototype.r=function(){se.j.r.call(this);te(this)};function ye(a,b,c,d){d&&Jc(this,d,h);this.type="key";this.aa=a;this.ua=b;this.a=c}A(ye,Ic);function ze(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}ze.prototype.H=function(){return new ze(this.top,this.right,this.bottom,this.left)};function Ae(a,b,c){v(b)?Be(a,c,b):F(b,pa(Be,a))}function Be(a,b,c){a.style[String(c).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()})]=b}function Ce(a,b){var c=cd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,j))?c[b]||c.getPropertyValue(b)||"":""}function De(a,b){return a.currentStyle?a.currentStyle[b]:j}function Ee(a,b){return Ce(a,b)||De(a,b)||a.style&&a.style[b]} function Fe(a,b){var c,d,e=I&&(Cb||Mb)&&L("1.9");b instanceof D?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Ge(c,e);a.style.top=Ge(d,e)}function He(a){var b=a.getBoundingClientRect();H&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b} function Ie(a){if(H&&!Wb(8))return a.offsetParent;for(var b=cd(a),c=Ee(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ee(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 Je(a,b){var c=Ke(a),d=Ke(b);return new D(c.x-d.x,c.y-d.y)} function Ke(a){var b=new D;if(1==a.nodeType){if(a.getBoundingClientRect){var c=He(a);b.x=c.left;b.y=c.top}else{c=kd(ad(a));var d,e=cd(a),f=Ee(a,"position"),g=I&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),k=new D(0,0),r;d=e?cd(e):document;if(r=H)if(r=!Wb(9))ad(d),r=l;r=r?d.body:d.documentElement;if(a!=r)if(a.getBoundingClientRect)d=He(a),e=kd(ad(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(r),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(J&&"fixed"==Ee(g,"position")){k.x+=e.body.scrollLeft;k.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(Jb||J&&"absolute"==f)k.y-=e.body.offsetTop;for(g=a;(g=Ie(g))&&g!=e.body&&g!=r;)if(k.x-=g.scrollLeft,!Jb||"TR"!=g.tagName)k.y-=g.scrollTop}b.x=k.x-c.x;b.y=k.y-c.y}if(I&&!L(12)){var u;H?u="-ms-transform":J?u="-webkit-transform": Jb?u="-o-transform":I&&(u="-moz-transform");var p;u&&(p=Ee(a,u));p||(p=Ee(a,"transform"));p?(a=p.match(Le),a=!a?new D(0,0):new D(parseFloat(a[1]),parseFloat(a[2]))):a=new D(0,0);b=new D(b.x+a.x,b.y+a.y)}}else u=ia(a.jc),p=a,a.targetTouches?p=a.targetTouches[0]:u&&a.C.targetTouches&&(p=a.C.targetTouches[0]),b.x=p.clientX,b.y=p.clientY;return b}function Ge(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Me(a,b){a.style.display=b?"":"none"} function Ne(a,b){ad(cd(a));if(H&&!L("8")){var c=a.style,d;if(H){d=Oe(a,De(a,"paddingLeft"));var e=Oe(a,De(a,"paddingRight")),f=Oe(a,De(a,"paddingTop")),g=Oe(a,De(a,"paddingBottom"));d=new ze(f,e,g,d)}else d=Ce(a,"paddingLeft"),e=Ce(a,"paddingRight"),f=Ce(a,"paddingTop"),g=Ce(a,"paddingBottom"),d=new ze(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(H)var e=Pe(a,"borderLeft"),f=Pe(a,"borderRight"),g=Pe(a,"borderTop"),k=Pe(a,"borderBottom"),e=new ze(g,f,k,e);else e=Ce(a,"borderLeftWidth"), f=Ce(a,"borderRightWidth"),g=Ce(a,"borderTopWidth"),k=Ce(a,"borderBottomWidth"),e=new ze(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,I?c.MozBoxSizing="border-box":J?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 Oe(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 Qe={thin:2,medium:4,thick:6};function Pe(a,b){if("none"==De(a,b+"Style"))return 0;var c=De(a,b+"Width");return c in Qe?Qe[c]:Oe(a,c)}var Le=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Re(a){M.call(this);this.a=a;a=ja(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:j;this.e=!!a&&"rtl"==Ee(a,"direction");this.b=R(this.a,I?"DOMMouseScroll":"mousewheel",this)}A(Re,Nd); Re.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.C;if("mousewheel"==a.type){c=1;if(H||J&&(Db||L("532.0")))c=40;d=Se(-a.wheelDelta,c);t(a.wheelDeltaX)?(b=Se(-a.wheelDeltaX,c),c=Se(-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=Ha(b,-this.c,this.c));"number"==typeof this.d&&(c=Ha(c,-this.d,this.d));this.e&&(b=-b);b=new Te(d,a,b,c);U(this,b)};function Se(a,b){return J&&(Cb||Eb)&&0!=a%b?a:a/b} Re.prototype.r=function(){Re.j.r.call(this);T(this.b);delete this.b};function Te(a,b,c,d){b&&Jc(this,b,h);this.type="mousewheel";this.e=a;this.c=c;this.a=d}A(Te,Ic);var Ue=n.window;function Ve(a,b,c){M.call(this);this.b=a;this.e=b||0;this.c=c;this.d=oa(this.f,this)}A(Ve,M);Ve.prototype.a=0;Ve.prototype.r=function(){Ve.j.r.call(this);We(this);delete this.b;delete this.c};function We(a){0!=a.a&&Ue.clearTimeout(a.a);a.a=0}Ve.prototype.f=function(){this.a=0;this.b&&this.b.call(this.c)};var Xe={},Ye=j;function Ze(){Ye||(Ye=new Ve(function(){qa();F(Xe,function(a){$e(a)});Ua(Xe)||Ze()},20));var a=Ye;if(0==a.a){We(a);var b;b=a.d;var c=t(h)?h:a.e;if(!ia(b))if(b&&"function"==typeof b.handleEvent)b=oa(b.handleEvent,b);else throw Error("Invalid listener argument");b=2147483647c.a?this.a:-this.a,d);a.w();c.w()}};function Rf(a,b){W.call(this);this.e=a;this.a=b;R(this.a,X("brightness"),this.vb,l,this);R(this.a,X("contrast"),this.wb,l,this);R(this.a,X("hue"),this.xb,l,this);R(this.a,"load",this.$a,l,this);R(this.a,X("opacity"),this.xa,l,this);R(this.a,X("saturation"),this.yb,l,this);R(this.a,X("visible"),this.ya,l,this)}A(Rf,W);m=Rf.prototype;m.I=da("a");m.S=da("e");m.vb=s;m.wb=s;m.xb=s;m.$a=s;m.xa=s;m.yb=s;m.ya=s;function Sf(a){this.length=a.length||a;for(var b=0;bthis.m&&(0===this.oa?$e(this):this.na=i)};function $e(a){var b=a.f.u();a.na=l;if(b!=a.Mb){if(b){if(1==++a.m){var c=w(a);c in Xe||(Xe[c]=a);Ze()}}else 0===--a.m&&(c=w(a),delete Xe[c],Ua(Xe)&&Ye&&We(Ye));a.Mb=b}U(a,xg)}m.rotate=function(a,b){a=this.K.a(a,b);this.Ka(a)};m.Kc=function(a){this.set(ag,a)};$.prototype.setBackgroundColor=$.prototype.Kc;$.prototype.h=function(a){this.set(yf,a)}; $.prototype.setCenter=$.prototype.h;$.prototype.Yb=function(a){this.set(xf,a)};$.prototype.setLayers=$.prototype.Yb;$.prototype.Xb=function(a){this.set("projection",a)};$.prototype.setProjection=$.prototype.Xb;$.prototype.B=function(a){this.set(zf,a)};$.prototype.setResolution=$.prototype.B;$.prototype.Ka=function(a){this.set(bg,a)};$.prototype.setRotation=$.prototype.Ka;$.prototype.kb=function(a){this.set(Af,a)};$.prototype.setSize=$.prototype.kb; $.prototype.Zb=function(a){this.set("userProjection",a)};$.prototype.setUserProjection=$.prototype.Zb;function Nf(a,b,c){++a.oa;try{b.call(c)}finally{0===--a.oa&&(1>a.m&&a.na)&&$e(a)}}$.prototype.zoom=function(a,b){var c=this.K.resolution(this.a(),a);if(c!=j&&b!=j){var d=this.c(),e=this.a(),f=new E(b.x-c*(b.x-d.x)/e,b.y-c*(b.y-d.y)/e);Nf(this,function(){this.h(f);this.B(c)},this)}else this.B(c)};function Ig(a){var b=gd("DIV",{"class":"ol-mouse-position"});rf.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=jb;this.b=[];this.f()}A(Ig,rf);Ig.prototype.f=function(){Jg(this);this.element.innerHTML=this.d};Ig.prototype.m=function(a){var b=this.a,a=Je(a,b.b),b=b.A()?jf(b.f,new ff(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}; Ig.prototype.o=function(){this.element.innerHTML=this.d};Ig.prototype.F=function(a){this.b!==j&&(C(this.b,T),this.b=j);Ig.j.F.call(this,a);if(a!==j){var b=a.b;this.v=[R(a,X("projection"),this.f,l,this),R(b,"mousemove",this.m,l,this),R(b,"mouseout",this.o,l,this)];Jg(this)}};function Jg(a){var b=a.a;b===j?a.c=jb:(b=b.g(),a.c=!t(b)||!t(a.h)?jb:ib(b,a.h))};function Kg(){this.a={}}A(Kg,Cf);Kg.prototype.c=function(a,b){var c;for(c=0;ck||c<=k)return j;c=Ia(b.x,c);return!Oa(Hd(d,new V(b.i,c,b.y)),e)?j:new V(b.i,c,k)},c):Ud(function(b){if(a.maxZoomd||c<=d?j:new V(b.i,Ia(b.x,c),d)},c);$d.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin, extent:a.extent,projection:b,tileGrid:d,L:c})}A(Qg,$d);function Rg(){Qg.call(this,{attributions:[new sb('Tiles Courtesy of MapQuest '),new sb('Data © OpenStreetMap contributors, CC BY-SA')],maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}A(Rg,Qg); function Sg(){Qg.call(this,{attributions:[new sb('Tiles Courtesy of MapQuest '),new sb("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}A(Sg,Qg);function Tg(){Qg.call(this,{attributions:[new sb('© OpenStreetMap contributors, CC BY-SA')],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}A(Tg,Qg);var Ug={terrain:{type:"jpg",Eb:4,maxZoom:18},toner:{type:"png",Eb:0,maxZoom:20},watercolor:{type:"jpg",Eb:3,maxZoom:16}}; function Vg(a){var b=new sb('Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.'),c=a.Ic;t(a.gc)&&(c+="-"+a.gc);a=Ug[a.Ic];Qg.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}A(Vg,Qg);var Wg=[];z("grid",function(a){Wg.push(a)});function Xg(a){$d.call(this,{projection:gb("EPSG:3857")});this.c=l;a=this.e=rd(a.uri,{nb:i});a.a.push([this.f,j,this]);a.R&&nd(a)}A(Xg,$d); Xg.prototype.f=function(){var a=Wg.pop(),b=gb("EPSG:4326"),c,d;t(a.bounds)?(c=a.bounds,c=new Pa(c[0],c[1],c[2],c[3]),this.g=d=c.transform(ib(b,this.h))):d=c=j;var e=a.minzoom||0,f=a.maxzoom||22,g=new be({maxZoom:f});this.tileGrid=g;this.L=Ud(function(a){if(a.ic||b<=c)return j;b=Ia(a.x,b);return d!==j&&!Oa(Hd(g,new V(a.i,b,a.y)),d)?j:new V(a.i,b,c)},Sd(Aa(a.tiles,Rd)));t(a.attribution)&&(this.a=[new sb(a.attribution,[new Md(g,c,e,f)],b)]);this.c=i;U(this, "load")};Xg.prototype.V=da("c");function Yg(a){var b=fb(a.projection,"EPSG:3857"),c=b.b,d=t(a.extent)?a.extent:c,e=t(a.version)?a.version:"1.3",f=a.tileGrid;if(!t(f)){Math.max(c.q-c.k,c.z-c.n);for(var g=Array((t(a.maxZoom)?a.maxZoom:18)+1),k=0,r=g.length;k