(function(){var h=void 0,i=!0,k=null,l=!1;function aa(){return function(a){return a}}function n(a){return function(){return this[a]}}var p,w=this;function ba(){}function ca(a){a.Xa=function(){return a.oc?a.oc:a.oc=new a}} function da(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 x(a){return a!==h}function ea(a){return"array"==da(a)}function fa(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ga(a){return"string"==typeof a}function ha(a){return"function"==da(a)}function ia(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function y(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 ua=/&/g,va=//g,xa=/\"/g,ta=/[&<>\"]/;var ya=Array.prototype,za=ya.indexOf?function(a,b,c){return ya.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ga(a))return!ga(b)||1!=b.length?-1:a.indexOf(b,c);for(;c=arguments.length?ya.slice.call(a,b):ya.slice.call(a,b,c)}function Ia(a){ya.sort.call(a,Ja)}function Ja(a,b){return a>b?1:a2*this.o&&Ya(this),i):l};function Ya(a){if(a.o!=a.a.length){for(var b=0,c=0;bparseFloat(rb)){qb=String(vb);break a}}qb=rb}var xb={}; function yb(a){var b;if(!(b=xb[a])){b=0;for(var c=String(qb).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==s[2].length)<(0==q[2].length)?-1:(0==s[2].length)>(0==q[2].length)?1:0)||(s[2]q[2]?1:0)}while(0==b)}b=xb[a]=0<=b}return b}var zb={};function Ab(a){return zb[a]||(zb[a]=F&&!!document.documentMode&&document.documentMode>=a)};var Bb,Cb=!F||Ab(9);!mb&&!F||F&&Ab(9)||mb&&yb("1.9.1");F&&yb("9");function Db(a,b){var c;c=a.className;c=ga(c)&&c.match(/\S+/g)||[];for(var d=Ha(arguments,1),e=c.length+d.length,f=c,g=0;gc*b?c+b:c};function Gb(a,b){this.x=x(a)?a:0;this.y=x(b)?b:0}Gb.prototype.Q=function(){return new Gb(this.x,this.y)};function Hb(a,b){this.width=a;this.height=b}p=Hb.prototype;p.Q=function(){return new Hb(this.width,this.height)};p.Ha=function(){return!(this.width*this.height)};p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ib(a){return a?new Jb(Kb(a)):Bb||(Bb=new Jb)}function Lb(a,b){Ka(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Mb?a.setAttribute(Mb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Mb={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 Nb(a){a=a.document.documentElement;return new Hb(a.clientWidth,a.clientHeight)}function Ob(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Cb&&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 j={};Ua(j,g);delete j.type;g=j}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ga(g)?f.className=g:ea(g)?Db.apply(k,[f].concat(g)):Lb(f,g));2=a.keyCode)a.keyCode=-1}catch(b){}};p.fd=n("K");function lc(){}var mc=0;lc.prototype.key=0;lc.prototype.ya=l;lc.prototype.a=l;lc.prototype.handleEvent=function(a){return this.b?this.Ia.call(this.Nb||this.src,a):this.Ia.handleEvent.call(this.Ia,a)};var nc={},oc={},pc={},qc={}; function H(a,b,c,d,e){if(b){if(ea(b)){for(var f=0;ff.keyCode||f.returnValue!=h)return i;a:{var r=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(s){r=i}if(r||f.returnValue==h)f.returnValue=i}}r=new hc;ic(r,f,this);f=i;try{if(j){for(var q=[],v=r.c;v;v=v.parentNode)q.push(v);g=e[i];g.O=g.o;for(var u=q.length- 1;!r.pa&&0<=u&&g.O;u--)r.c=q[u],f&=vc(g,q[u],d,i,r);if(m){g=e[l];g.O=g.o;for(u=0;!r.pa&&u=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function yc(a,b){var c=Kb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function zc(a,b){return a.currentStyle?a.currentStyle[b]:k}function Ac(a,b){return yc(a,b)||zc(a,b)||a.style&&a.style[b]}function Bc(a,b){var c,d,e=mb&&(eb||pb)&&yb("1.9");b instanceof Gb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Cc(c,e);a.style.top=Cc(d,e)} function Dc(a){var b=a.getBoundingClientRect();F&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b} function Ec(a){if(F&&!Ab(8))return a.offsetParent;for(var b=Kb(a),c=Ac(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ac(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 k}function Fc(a,b){var c=Gc(a),d=Gc(b);return new Gb(c.x-d.x,c.y-d.y)} function Gc(a){var b=new Gb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Dc(a);b.x=c.left;b.y=c.top}else{c=Vb(Ib(a));var d,e=Kb(a),f=Ac(a,"position"),g=mb&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new Gb(0,0),m;d=e?Kb(e):document;if(m=F)if(m=!Ab(9))Ib(d),m=l;m=m?d.body:d.documentElement;if(a!=m)if(a.getBoundingClientRect)d=Dc(a),e=Vb(Ib(e)),j.x=d.left+e.x,j.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a), e=e.getBoxObjectFor(m),j.x=d.screenX-e.screenX,j.y=d.screenY-e.screenY;else{g=a;do{j.x+=g.offsetLeft;j.y+=g.offsetTop;g!=a&&(j.x+=g.clientLeft||0,j.y+=g.clientTop||0);if(G&&"fixed"==Ac(g,"position")){j.x+=e.body.scrollLeft;j.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(lb||G&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=Ec(g))&&g!=e.body&&g!=m;)if(j.x-=g.scrollLeft,!lb||"TR"!=g.tagName)j.y-=g.scrollTop}b.x=j.x-c.x;b.y=j.y-c.y}if(mb&&!yb(12)){var r;F?r="-ms-transform":G?r="-webkit-transform": lb?r="-o-transform":mb&&(r="-moz-transform");var s;r&&(s=Ac(a,r));s||(s=Ac(a,"transform"));s?(a=s.match(Hc),a=!a?new Gb(0,0):new Gb(parseFloat(a[1]),parseFloat(a[2]))):a=new Gb(0,0);b=new Gb(b.x+a.x,b.y+a.y)}}else r=ha(a.fd),s=a,a.targetTouches?s=a.targetTouches[0]:r&&a.K.targetTouches&&(s=a.K.targetTouches[0]),b.x=s.clientX,b.y=s.clientY;return b}function Cc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Ic(a,b){a.style.display=b?"":"none"} function Jc(a,b){Ib(Kb(a));if(F&&!yb("8")){var c=a.style,d;if(F){d=Kc(a,zc(a,"paddingLeft"));var e=Kc(a,zc(a,"paddingRight")),f=Kc(a,zc(a,"paddingTop")),g=Kc(a,zc(a,"paddingBottom"));d=new xc(f,e,g,d)}else d=yc(a,"paddingLeft"),e=yc(a,"paddingRight"),f=yc(a,"paddingTop"),g=yc(a,"paddingBottom"),d=new xc(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(F)var e=Lc(a,"borderLeft"),f=Lc(a,"borderRight"),g=Lc(a,"borderTop"),j=Lc(a,"borderBottom"),e=new xc(g,f,j,e);else e=yc(a,"borderLeftWidth"), f=yc(a,"borderRightWidth"),g=yc(a,"borderTopWidth"),j=yc(a,"borderBottomWidth"),e=new xc(parseFloat(g),parseFloat(f),parseFloat(j),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,mb?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 Kc(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 Mc={thin:2,medium:4,thick:6};function Lc(a,b){if("none"==zc(a,b+"Style"))return 0;var c=zc(a,b+"Width");return c in Mc?Mc[c]:Kc(a,c)}var Hc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Nc(a,b){this.x=a;this.y=b}B(Nc,Gb);Nc.prototype.Q=function(){return new Nc(this.x,this.y)};Nc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Nc.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 L(a,b){Nc.call(this,a,b)}B(L,Nc);function Oc(a,b){var c=Fb(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)};var Pc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Qc(a,b,c){if(ea(b))for(var d=0;db)throw Error("Bad port number "+b);a.pb=b}else a.pb=k} function Vc(a,b,c){Tc(a);if(b instanceof Wc){a.a=b;b=a.a;if((a=a.la)&&!b.b){bd(b);b.a=k;var d=b.D,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),cd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(fa(d)||ga(d))C(d,c,b);else{var e;if("function"==typeof d.V)e=d.V();else if("function"!=typeof d.M)if(fa(d)||ga(d)){e=[];for(var f=d.length,g=0;g>4&15).toString(16)+(a&15).toString(16)}var Yc=/[#\/\?@]/g,$c=/[\#\?:]/g,Zc=/[\#\?]/g,dd=/[\#\?@]/g,ad=/#/g;function Wc(a,b,c){this.a=a||k;this.b=!!c} function bd(a){if(!a.D&&(a.D=new Wa,a.o=0,a.a))for(var b=a.a.split("&"),c=0;c=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 zd(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Ad(a,b){Zb.call(this);a&&(this.fb&&Bd(this),this.Ca=a,this.eb=H(this.Ca,"keypress",this,b),this.Ob=H(this.Ca,"keydown",this.a,b,this),this.fb=H(this.Ca,"keyup",this.b,b,this))}B(Ad,jd);p=Ad.prototype;p.Ca=k;p.eb=k;p.Ob=k;p.fb=k;p.fa=-1;p.ea=-1;p.zb=l; var Cd={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},Dd={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},Ed=F||G&&yb("525"),Fd=eb&&mb; Ad.prototype.a=function(a){if(G&&(17==this.fa&&!a.$a||18==this.fa&&!a.ba))this.ea=this.fa=-1;Ed&&!xd(a.va,this.fa,a.ma,a.$a,a.ba)?this.handleEvent(a):(this.ea=mb?zd(a.va):a.va,Fd&&(this.zb=a.ba))};Ad.prototype.b=function(a){this.ea=this.fa=-1;this.zb=a.ba}; Ad.prototype.handleEvent=function(a){var b=a.K,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.ea,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.ea,d=0<=b.charCode&&63232>b.charCode&&yd(c)?b.charCode:0):lb?(c=this.ea,d=yd(c)?b.keyCode:0):(c=b.keyCode||this.ea,d=b.charCode||0,Fd&&(e=this.zb),eb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Cd?f=Cd[c]:25==c&&a.ma&&(f=9):g&&g in Dd&&(f=Dd[g]);a=f==this.fa;this.fa=f;b=new Gd(f,d,a,b);b.ba=e;K(this,b)}; function Bd(a){a.eb&&(J(a.eb),J(a.Ob),J(a.fb),a.eb=k,a.Ob=k,a.fb=k);a.Ca=k;a.fa=-1;a.ea=-1}Ad.prototype.r=function(){Ad.v.r.call(this);Bd(this)};function Gd(a,b,c,d){d&&ic(this,d,h);this.type="key";this.va=a;this.Za=b;this.b=c}B(Gd,hc);function Hd(a){Zb.call(this);this.a=a;a=ia(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==Ac(a,"direction");this.b=H(this.a,mb?"DOMMouseScroll":"mousewheel",this)}B(Hd,jd); Hd.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.K;if("mousewheel"==a.type){c=1;if(F||G&&(fb||yb("532.0")))c=40;d=Id(-a.wheelDelta,c);x(a.wheelDeltaX)?(b=Id(-a.wheelDeltaX,c),c=Id(-a.wheelDeltaY,c)):c=d}else d=a.detail,100d&&(d=-3),x(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Eb(b,-this.c,this.c));"number"==typeof this.d&&(c=Eb(c,-this.d,this.d));this.e&&(b=-b);b=new Jd(d,a,b,c);K(this,b)};function Id(a,b){return G&&(eb||gb)&&0!=a%b?a:a/b} Hd.prototype.r=function(){Hd.v.r.call(this);J(this.b);delete this.b};function Jd(a,b,c,d){b&&ic(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Jd,hc);var Kd=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function M(a){Zb.call(this);this.l={};x(a)&&this.lb(a)}B(M,jd);var Ld={},Md={},Nd={};function Od(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Pd(a){return a.ol_accessors_||(a.ol_accessors_={})}function Qd(a){return Ld.hasOwnProperty(a)?Ld[a]:Ld[a]=a.toLowerCase()+"_changed"}function Rd(a){return a.ol_bindings_||(a.ol_bindings_={})}p=M.prototype; p.Vc=function(a,b,c,d){c=c||a;this.Vb(a);var e=Qd(c);Rd(this)[a]=H(b,e,function(){Sd(this,a)},h,this);Pd(this)[a]={target:b,key:c};d||Sd(this,a)};p.Yc=ba;p.s=function(a){var b,c=Pd(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Md.hasOwnProperty(b)?Md[b]:Md[b]="get"+Od(b),b=a[c]?a[c]():a.s(b)):this.l.hasOwnProperty(a)&&(b=this.l[a]);return b}; p.V=function(){for(var a=Ma(Pd(this)).concat(Ma(this.l)),b={},c=0,d=0;d=b.h&&a.i<=b.k&&a.k>=b.i}Xd.prototype.toString=function(){return"("+[this.h,this.i,this.m,this.k].join(", ")+")"};function Zd(a,b,c,d){Xd.call(this,a,b,c,d)}B(Zd,Xd);function $d(a){var b=arguments[0],b=new Zd(b.x,b.y,b.x,b.y),c;for(c=1;c>=1;return b.join("")}oe.prototype.toString=function(){return[this.n,this.x,this.y].join("/")};function qe(a,b,c,d){this.h=a;this.i=b;this.m=c;this.k=d}B(qe,Xd);qe.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.m&&this.i<=a.y&&a.y<=this.k};qe.prototype.$=function(){return this.k-this.i+1};qe.prototype.da=function(){return this.m-this.h+1};function re(a,b){this.b=a;this.a=b||k};function se(a){Zb.call(this);this.U=a;this.a=0}B(se,jd);se.prototype.c=function(){return y(this).toString()};function te(a){this.d=a;this.e=8;this.c=0;this.a=[];this.b={}}function ue(a,b,c,d){if(0==b.a){var e=b.c();if(!(e in a.b)){var f=a.d(b,c,d);Infinity!=f&&(a.a.push([f,b,c,d]),a.b[e]=i,ve(a,0,a.a.length-1))}}}te.prototype.f=function(){--this.c};function we(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b>1;){var g=2*b+1,j=2*b+2,g=jb;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};/* Latitude/longitude spherical geodesy formulae taken from http://www.movable-type.co.uk/scripts/latlong.html Licenced under CC-BY-3.0. */ function xe(a,b){var c=a.y*Math.PI/180,d=b.y*Math.PI/180,e=(d-c)/2,f=(b.x-a.x)*Math.PI/180/2,c=Math.sin(e)*Math.sin(e)+Math.sin(f)*Math.sin(f)*Math.cos(c)*Math.cos(d);return 2*ye.a*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};var ye=new function(){this.a=6370997};var ze="object"==typeof Proj4js,Ae={Oc:"degrees",pe:"m"};function O(a,b,c,d){this.a=a;this.e=b;this.na=c;this.c=x(d)?d:"enu";this.f=k}O.prototype.l=n("a");O.prototype.H=n("na");O.prototype.j=n("e");O.prototype.g=n("c");function Be(a,b){O.call(this,a,b.units,k,b.axis);this.zc=b;this.d=k}B(Be,O); Be.prototype.b=function(a,b){if("degrees"==this.e)return a;this.d===k&&(this.d=Ce(this,De("EPSG:4326")));var c=[b.x-a/2,b.y,b.x+a/2,b.y,b.x,b.y-a/2,b.x,b.y+a/2],c=this.d(c,c,2);return(xe(new L(c[0],c[1]),new L(c[2],c[3]))+xe(new L(c[4],c[5]),new L(c[6],c[7])))/2};var Ee={},Fe={},Ge={};function He(a){C(a,function(a){Ie(a)});C(a,function(b){C(a,function(a){b!==a&&Je(b,a,Ke)})})}function Ie(a){Fe[a.a]=a;Je(a,a,Ke)}function Le(a){return a!=k?ga(a)?Me(a):a:Me("EPSG:3857")} function Je(a,b,c){a=a.a;b=b.a;a in Ge||(Ge[a]={});Ge[a][b]=c}function Me(a){var b=Fe[a];ze&&!x(b)&&(b=De(a));x(b)||(b=k);return b}function De(a){var b=Ee[a];x(b)||(b=new Proj4js.Proj(a),b=new Be(a,b),Ee[a]=b);return b} function Ce(a,b){var c=a.a,d=b.a,e;c in Ge&&d in Ge[c]&&(e=Ge[c][d]);if(ze&&!x(e)){var f;f=(a instanceof Be?a:De(a.a)).zc;var g;g=(b instanceof Be?b:De(b.a)).zc;e=function(a,b,c){var d=a.length,c=1a?Qe(2*a):1-Qe(2*(a-0.5))},ad:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Ab:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}};var Ue={Ab:function(a){var b=a.resolution,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:Te.Jc;return function(a,g){if(g.timeb-a.f;)d--;if(0<=d){var b=a.a[d],c=a.a[c],d=c.x-b.x,e=c.y-b.y;a.c=Math.atan2(e,d);a.b=Math.sqrt(d*d+e*e)/(c.Na-b.Na);return a.b>a.d}return l}Ve.prototype.Ja=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return Ue.Ja({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Xe(a,b,c){ec.call(this,a);this.map=b;this.ab=l;this.b=x(c)?c:k}B(Xe,ec);Xe.prototype.C=function(){Xe.v.C.call(this);this.ab=i};function Ye(a,b){Gb.call(this,a,b)}B(Ye,Gb);function Ze(a,b,c,d){Xe.call(this,a,b,d);this.a=c;this.f=this.e=k}B(Ze,Xe);Ze.prototype.d=function(){this.e===k&&(this.e=$e(this.map,af(this)));return this.e};function af(a){if(a.f===k){var b=Fc(a.a,a.map.b);a.f=new Ye(b.x,b.y)}return a.f} function bf(a){this.a=a;this.e=k;this.b=l;this.c=this.g=this.d=this.j=this.l=this.f=k;a=this.a.b;this.l=H(a,["click","dblclick"],this.dc,l,this);this.j=H(a,"mousedown",this.zd,l,this);this.g=[H(a,["touchstart","MSPointerDown"],this.Jd,l,this),H(a,["touchmove","MSPointerMove"],this.Id,l,this),H(a,["touchend","MSPointerUp"],this.Hd,l,this)]}B(bf,jd);p=bf.prototype;p.dc=function(a){if(!this.b){var b=a.type;K(this,0==this.f||"dblclick"==b?new Ze(cf,this.a,a):new Ze(df,this.a,a))}}; p.Bd=function(a){this.e&&(this.c=k,C(this.d,J),this.e=this.d=k,this.b&&K(this,new Ze(ef,this.a,a)))};p.zd=function(a){K(this,new Ze(ff,this.a,a));this.e||(this.c=a,this.e={clientX:a.clientX,clientY:a.clientY},this.b=l,this.d=[H(document,"mousemove",this.Ad,l,this),H(document,"mouseup",this.Bd,l,this)],a.C())};p.Ad=function(a){var b;this.b||(this.b=i,b=new Ze(gf,this.a,this.c),K(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new Ze(hf,this.a,a);K(this,b)}; p.Jd=function(a){a.C();this.c=a;this.b=l;K(this,new Ze(jf,this.a,a))};p.Id=function(a){this.b=i;K(this,new Ze(kf,this.a,a))};p.Hd=function(a){K(this,new Ze(lf,this.a,a));this.b||(a=pa(),this.f=!this.f||250c?(b="\u2032",a*=60): b="\u00b0":"imperial"==this.c?0.9144>c?(b="in",a/=0.0254):1609.344>c?(b="ft",a/=0.3048):(b="mi",a/=1609.344):"nautical"==this.c?(a/=1852,b="nm"):"metric"==this.c?1>c?(b="mm",a*=1E3):1E3>c?b="m":(b="km",a/=1E3):"us"==this.c&&(0.9144>c?(b="in",a*=39.37):1609.344>c?(b="ft",a/=0.30480061):(b="mi",a/=1609.3472));for(var c=3*Math.floor(Math.log(this.l*a)/Math.log(10)),e,f;;){e=xf[c%3]*Math.pow(10,Math.floor(c/3));f=Math.round(e/a);if(f>=this.l)break;++c}e=e+b;this.t!=e&&(this.t=this.g.innerHTML=e);this.F!= f&&(this.g.style.width=f+"px",this.F=f);this.f||(Ic(this.j,i),this.f=i)}};wf.prototype.a=function(a){this.e!==k&&(C(this.e,J),this.e=k);wf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.A,l,this)])};function yf(a){var b=Ob("A",{href:"#zoomIn","class":"ol-zoom-in"});H(b,["touchend","click"],this.d,l,this);var c=Ob("A",{href:"#zoomOut","class":"ol-zoom-out"});H(c,["touchend","click"],this.e,l,this);b=Ob("DIV","ol-zoom ol-unselectable",b,c);tf.call(this,{element:b,map:a.map,target:a.target});this.c=x(a.delta)?a.delta:1}B(yf,tf);yf.prototype.d=function(a){a.C();a=this.b;sf(a);a.a().zoom(a,this.c,h,250)};yf.prototype.e=function(a){a.C();a=this.b;sf(a);a.a().zoom(a,-this.c,h,250)};function zf(){};function Af(a){this.a=a}B(Af,zf);Af.prototype.oa=function(a){var b=a.a;if(a.type==cf&&(Kd||kc(a.a))){var c=a.map,d=a.d(),e=a.a.ma?-this.a:this.a;c.a().zoom(c,e,d);a.C();b.C()}};function Bf(a){return a.ba&&!a.ob&&a.ma}function Cf(a){return!a.ba&&!a.ob&&!a.ma}function Df(a){return!a.ba&&!a.ob&&a.ma};function Ef(){this.e=l;this.p=this.na=this.l=this.g=0;this.Ma=this.f=k}B(Ef,zf);p=Ef.prototype;p.Gb=ba;p.Hb=ba;p.bb=ld;p.nc=ba;p.oa=function(a){var b=a.map;if(b.Ga()){var b=b.a(),c=a.a;a.type==ff&&this.nc(a);this.e?a.type==hf?(this.d=c.clientX-this.g,this.b=c.clientY-this.l,this.Gb(a)):a.type==ef&&(this.d=c.clientX-this.g,this.b=c.clientY-this.l,this.Hb(a),this.e=l):a.type==gf&&(this.g=c.clientX,this.l=c.clientY,this.b=this.d=0,this.f=b.S(),this.Ma=a.d(),this.bb(a)&&(this.e=i,a.C()))}};function Ff(a,b){Ef.call(this);this.j=a;this.a=b;this.c=k}B(Ff,Ef);Ff.prototype.Gb=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,Na:pa()});var a=a.map,b=a.a(),c=b.T(),d=b.ka(),c=new L(-c*this.d,c*this.b);c.rotate(d);d=new L(this.f.x+c.x,this.f.y+c.y);sf(a);b.a(d)}; Ff.prototype.Hb=function(a){var b=a.map,a=b.a();Se(a,-1);if(this.a&&We(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.S();this.c=this.a.Ja(e);b.j(this.c);e=Gf(b,e);b=$e(b,new Ye(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};Ff.prototype.bb=function(a){var b=a.a;if(this.j(b)){if(this.a){var c=this.a;c.a.length=0;c.c=0;c.b=0;this.a.a.push({x:b.clientX,y:b.clientY,Na:pa()})}a=a.map;sf(a);Se(a.a(),1);return i}return l}; Ff.prototype.nc=function(a){var b=a.map,c=b.a();this.c!==k&&Da(b.g,this.c)&&(sf(b),c.a(a.b.u.center),this.c=k)};function Hf(a){Ef.call(this);this.c=a}B(Hf,Ef);Hf.prototype.Gb=function(a){var b=a.map,c=b.e(),a=af(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(x(this.a)){var a=c-this.a,d=b.a();sf(b);d.rotate(b,d.ka()-a)}this.a=c};Hf.prototype.bb=function(a){var b=a.a;return kc(b)&&this.c(b)?(a=a.map,a.a(),sf(a),this.a=h,i):l};function If(a){var b=Ob("DIV","ol-dragbox");this.c=k;this.e=a.Ma;this.d=k;tf.call(this,{element:b,map:a.map})}B(If,tf);If.prototype.a=function(a){this.d!==k&&(J(this.d),this.d=k);a!==k&&(this.c=Gf(a,this.e),Bc(this.element,this.c),Jc(this.element,new Wd(0,0)),this.d=H(a,hf,this.f,l,this));If.v.a.call(this,a)};If.prototype.f=function(a){var b=this.b,a=a.d(),b=Gf(b,a);Bc(this.element,new Ye(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Jc(this.element,new Wd(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Jf(a){Ef.call(this);this.c=a;this.a=k}B(Jf,Ef);Jf.prototype.Hb=function(a){this.a.a(k);this.a=k;if(64<=this.d*this.d+this.b*this.b){var b=a.map,c=$d(this.Ma,a.d());qf(b,function(){var a=b.a(),e=b.e();a.a(new L((c.h+c.m)/2,(c.i+c.k)/2));e=Math.max((c.m-c.h)/e.width,(c.k-c.i)/e.height);e=a.b.resolution(e,0);a.c(e);a.d(0)})}};Jf.prototype.bb=function(a){var b=a.a;return kc(b)&&this.c(b)?(this.a=new If({map:a.map,Ma:this.Ma}),i):l};function Kf(a){this.a=a}B(Kf,zf);Kf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.va;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.T()*this.a,c=40==c?new L(0,-e):37==c?new L(-e,0):39==c?new L(e,0):new L(0,e),e=d.S();d.a(new L(e.x+c.x,e.y+c.y));b.C();a.C()}}};function Lf(){}B(Lf,zf);Lf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.Za;if(43==c||45==c){var d=a.map,c=43==c?4:-4;sf(d);d.a().zoom(d,c,h,100);b.C();a.C()}}};function Mf(a){this.a=a}B(Mf,zf);Mf.prototype.oa=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a,d=a.d(),e=0>c.b?this.a:-this.a,f=b.a();sf(b);f.zoom(b,e,d);a.C();c.C()}};function Nf(){this.g=l;this.l={};this.targetTouches=[]}B(Nf,zf);function Of(a){for(var b=a.length,c=0,d=0,e=0;ethis.j&&(this.a=i));this.c=c;var a=a.map,c=a.a(),d=Gc(a.b),e=Of(this.targetTouches);e.x-=d.x;e.y-=d.y;d=$e(a,e);this.a&&c.rotate(a,c.ka()+b,d)};Qf.prototype.d=function(a){return 2>this.targetTouches.length?(Se(a.map.a(),-1),l):i}; Qf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=h,this.a=l,this.b=0,Se(a,1),i):l};function Rf(){Nf.call(this)}B(Rf,Nf);Rf.prototype.e=function(a){var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);x(this.a)&&(b=this.a/e);this.a=e;a=a.map;e=a.a();c=Gc(a.b);d=Of(this.targetTouches);d.x-=c.x;d.y-=c.y;c=$e(a,d);rf(e,a,e.T()*b,c)};Rf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a(),c=b.T(),c=b.b.resolution(c,0);rf(b,a,c,h);Se(b,-1);return l}return i}; Rf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=h,Se(a,1),i):l};function Sf(a){O.call(this,a,"m",Tf)}B(Sf,O);var Uf=6378137*Math.PI,Tf=new Zd(-Uf,-Uf,Uf,Uf),Vf=Aa(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Sf(a)});Sf.prototype.b=function(a,b){return a/((Math.exp(b.y/6378137)+Math.exp(-(b.y/6378137)))/2)};function Wf(a,b){O.call(this,a,"degrees",Xf,b)}B(Wf,O);var Xf=new Zd(-180,-90,180,90),Yf=[new Wf("CRS:84"),new Wf("EPSG:4326","neu"),new Wf("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Wf("urn:ogc:def:crs:OGC:1.3:CRS84")];Wf.prototype.b=aa();function Zf(a,b,c,d,e){this.f=e;this.g=a;this.l=c;this.e=b;this.b=new Image;d!==k&&(this.b.crossOrigin=d);this.d={};this.c=k;this.a=0}B(Zf,jd);Zf.prototype.ja=n("f");Zf.prototype.H=n("g");function $f(a,b){if(x(b)){var c,d=y(b);if(d in a.d)return a.d[d];c=Sa(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}Zf.prototype.j=function(){this.a=3;C(this.c,J);this.c=k;K(this,"change")};Zf.prototype.p=function(){this.a=2;C(this.c,J);this.c=k;K(this,"change")}; function ag(a){0==a.a&&(a.a=1,a.c=[sc(a.b,"error",a.j,l,a),sc(a.b,"load",a.p,l,a)],a.b.src=a.l)};function bg(a){this.a=a.resolutions;this.g=this.a.length;this.d=x(a.origin)?a.origin:k;this.f=k;x(a.origins)&&(this.f=a.origins);this.c=k;x(a.tileSizes)&&(this.c=a.tileSizes);this.e=x(a.tileSize)?a.tileSize:this.c===k?new Wd(256,256):k}bg.prototype.b=function(a,b,c){for(var d=cg(this,a),a=a.n-1;0<=a&&!b.call(c,a,dg(this,d,this.a[a]));)--a};function eg(a,b){return a.d===k?a.f[b]:a.d}bg.prototype.Db=n("a"); function dg(a,b,c){var d=fg(a,new L(b.h,b.i),c),a=fg(a,new L(b.m,b.k),c,i);return new qe(d.x,d.y,a.x,a.y)}function gg(a,b){var c=eg(a,b.n),d=a.a[b.n],e=hg(a,b.n);return new L(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function cg(a,b){var c=eg(a,b.n),d=a.a[b.n],e=hg(a,b.n),f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new Zd(f,c,f+e.width*d,c+e.height*d)} function fg(a,b,c,d){var e=nf(a.a,c),f=c/a.a[e],g=eg(a,e),j=hg(a,e),a=f*(b.x-g.x)/(c*j.width),b=f*(b.y-g.y)/(c*j.height);d?(a=Math.ceil(a)-1,b=Math.ceil(b)-1):(a=Math.floor(a),b=Math.floor(b));return new oe(e,a,b)}function hg(a,b){return a.e===k?a.c[b]:a.e} function ig(a){var b=a.f;if(b===k){for(var b=a.H(),c=Math.max(b.m-b.h,b.k-b.i),d=x(h)?h:new Wd(256,256),e=Array((x(h)?NaN:42)+1),c=c/d.width,f=0,g=e.length;fb?a[1]="?":b==m.length-1&&(a[1]=h));return a.join("")};function yg(a,b,c){return function(d,e,f){return xg(a,b,d,e,f,c)}}function zg(){};function Ag(a){Pe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Fa=x(a.Fa)?a.Fa:zg;this.d=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=x(a.resolutions)?a.resolutions:k}B(Ag,Pe);function Bg(a,b,c,d,e){var f=k,d=a.Fa(b,d,e);x(d)&&(f=new Zf(b,c,d,a.d,a.ja()));return f};function Cg(a){P.call(this,a)}B(Cg,P);function Dg(a){P.call(this,a)}B(Dg,P);function Eg(a,b){lg.call(this,a,b)}B(Eg,lg);function Fg(a,b){lg.call(this,a,b);this.b=k;this.c=de()}B(Fg,Eg);Fg.prototype.I=function(){return this.b===k?k:$f(this.b,this)};Fg.prototype.J=n("c"); Fg.prototype.ga=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.a.W(),g=a.B;!g[0]&&!g[1]&&(b=f.I(a.extent,d,b.projection),b!==k&&(f=b.a,0==f?(sc(b,"change",this.Ib,l,this),ag(b)):2==f&&(this.b=b)));if(this.b!==k){var b=this.b,f=b.H(),g=b.e,j=this.c;he(j);le(j,a.size.width/2,a.size.height/2);ne(j,e);me(j,g/d,g/d);le(j,(f.h-c.x)/g,(c.y-f.k)/g);og(a.attributions,b.ja())}};function Gg(a,b){lg.call(this,a,b);this.e=this.c=this.d=k;this.f=de();this.b=k}B(Gg,Eg);Gg.prototype.I=n("d");Gg.prototype.J=n("f"); Gg.prototype.ga=function(a){var b=a.u,c=b.projection,d=this.a.W(),e=y(d).toString(),f=d.tileGrid;f===k&&(f=ig(c));var g=nf(f.a,b.resolution),j=hg(f,g),m=f.a[g],r=dg(f,a.extent,m),s=r.da(),q=r.$(),j=new Wd(j.width*s,j.height*q),v,u;this.d===k?(v=Qb("CANVAS"),v.width=j.width,v.height=j.height,u=v.getContext("2d"),this.d=v,this.c=j,this.e=u,this.b=Array(s*q)):(v=this.d,u=this.e,this.c.width==j.width&&this.c.height==j.height||(v.width=j.width,v.height=j.height,this.c=j,this.b=Array(s*q)));q={};q[g]={}; var j=na(d.d,d,q,rg(function(a){return a!==k&&2==a.a},d,f,c)),t,z,E,D;for(E=r.h;E<=r.m;++E)for(D=r.i;D<=r.k;++D)if(z=new oe(g,E,D),t=d.b(z,f,c),t!==k){v=t.a;if(0==v)sc(t,"change",this.Pb,l,this),qg(a.Pa,d,z),v=gg(f,z),ue(a.Ub,t,e,v);else if(2==v){q[g][z.toString()]=t;continue}else if(3==v)continue;f.b(z,j)}e=Aa(Ma(q),Number);Ia(e);v=d.G;var c=ae(cg(f,new oe(g,r.h,r.k))),U,Q,I,Y,V,sa;for(U=0;Uc;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Kg(a,b,c){lg.call(this,a,b);this.target=c}B(Kg,lg);Kg.prototype.r=function(){Ub(this.target);Kg.v.r.call(this)};function Lg(a,b){var c=Qb("DIV");c.className="ol-layer-image";c.style.position="absolute";Kg.call(this,a,b,c);this.b=k;this.c=fe()}B(Lg,Kg); Lg.prototype.ga=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.b,g=this.a.W(),j=a.B;!j[0]&&!j[1]&&(b=g.I(a.extent,d,b.projection),b!==k&&(g=b.a,0==g?(sc(b,"change",this.Ib,l,this),ag(b)):2==g&&(f=b)));f!==k&&(g=f.H(),j=f.e,b=de(),he(b),le(b,a.size.width/2,a.size.height/2),ne(b,e),me(b,j/d,j/d),le(b,(g.h-c.x)/j,(c.y-g.k)/j),f!=this.b&&(c=$f(f,this),c.style.position="absolute",Sb(this.target),this.target.appendChild(c),this.b=f),je(b,this.c)||(Jg(this.target,b),ge(this.c,b)),og(a.attributions, f.ja()))};function Mg(a,b){var c=Qb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Kg.call(this,a,b,c);this.c=i;this.d=1;this.b={}}B(Mg,Kg); Mg.prototype.ga=function(a,b){if(b.visible){var c=a.u,d=c.projection,e=this.a.W(),f=y(e).toString(),g=e.tileGrid;g===k&&(g=ig(d));var j=nf(g.a,c.resolution),m=dg(g,a.extent,g.a[j]),r={};r[j]={};var s=na(e.d,e,r,rg(function(a){return a!==k&&2==a.a},e,g,d)),q,v,u,t,z;for(t=m.h;t<=m.m;++t)for(z=m.i;z<=m.k;++z)if(u=new oe(j,t,z),q=e.b(u,g,d),q!==k){v=q.a;if(0==v)sc(q,"change",this.Pb,l,this),qg(a.Pa,e,u),v=gg(g,u),ue(a.Ub,q,f,v);else if(2==v){r[j][u.toString()]=q;continue}else if(3==v)continue;g.b(u, s)}s=Aa(Ma(r),Number);Ia(s);var d={},E;for(q=0;qu&&Tb(this.target,f.target)}else{if(!a.B[0]&&!a.B[1]){v=dg(f.d,a.extent,f.d.a[f.c.n]);u=[];z=t=h;for(z in f.b)t=f.b[z], v.contains(t.U)||u.push(t);v=h;for(v=0;v=a.Z()){for(var a=this.a,d=0;d>1,a[d].L>c.L)a[b]=a[d],b=d;else break;a[b]=c}p=Wg.prototype; p.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ca(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a>1;){var f=2*a+1,g=2*a+2,f=ge.L)break;b[a]=b[f];a=f}b[a]=e}return c.Y}};p.M=function(){for(var a=this.a,b=[],c=a.length,d=0;dc;++c)d=b.remove(),dh(a,d)},b,u));Q?(this.b=q,this.t=v):(this.t=this.b=k,a.P=i)}pg(a.Oa,g,r,q);kg(g,r,a.extent, m);ng(a,g);he(this.d);le(this.d,(d.center.x-v.h)/(v.m-v.h),(d.center.y-v.i)/(v.k-v.i));ne(this.d,d.rotation);me(this.d,a.size.width*d.resolution/(v.m-v.h),a.size.height*d.resolution/(v.k-v.i));le(this.d,-0.5,-0.5)};function eh(){this.o=0;this.c={};this.b=this.a=k}p=eh.prototype;p.clear=function(){this.o=0;this.c={};this.b=this.a=k};function ch(a,b){return a.c.hasOwnProperty(b)}p.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Y,c.L,this),c=c.R};function fh(a,b){var c=a.c[b];if(c===a.b)return c.Y;c===a.a?(a.a=a.a.R,a.a.ha=k):(c.R.ha=c.ha,c.ha.R=c.R);c.R=k;c.ha=a.b;a.b.R=c;a.b=c;return c.Y}p.Z=n("o");p.V=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.ha)a[b++]=c.L;return a}; p.M=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.ha)a[b++]=c.Y;return a};function gh(a){var b=a.a;delete a.c[b.L];b.R!==k&&(b.R.ha=k);a.a=b.R;a.a===k&&(a.b=k);--a.o}function hh(a,b,c){c={L:b,R:k,ha:a.b,Y:c};a.b===k?a.a=c:a.b.R=c;a.b=c;a.c[b]=c;++a.o};var ih=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function jh(a,b){var c,d,e=ih.length;for(d=0;d>1)-1;0<=b;b--)we(a,b);for(a=this.qa;0b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=$d.apply(k,c)}this.d=f;this.J.mb(f);this.p=l;f!==k&&(f.P&&sf(this),Array.prototype.push.apply(this.xb, f.wa));K(this,new Xe("postrender",this,f));w.setTimeout(this.Qc,0)}};p.Rd=function(a){this.q("backgroundColor",a)};S.prototype.setBackgroundColor=S.prototype.Rd;S.prototype.Sc=function(a){this.q(tg,a)};S.prototype.setLayers=S.prototype.Sc;S.prototype.Qa=function(a){this.q("size",a)};S.prototype.setSize=S.prototype.Qa;S.prototype.Tc=function(a){this.q("view",a)};S.prototype.setView=S.prototype.Tc;function qf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.p&&(a=a.c,pd(a),a.Eb())}} qh.Zc=function(a){var b=w.location.search.substring(1),a=x(a)?a:new Wc(b);return hd(a,"renderers")?id(a,"renderers").split(","):hd(a,"renderer")?[id(a,"renderer")]:sh};He(Vf);He(Yf);function th(a,b,c){var d=a.length,c=1this.d&&!(b=this.a.Y,c=b.U.n.toString(),c in a&&a[c].contains(b.U));)gh(this)};function mi(a){jg.call(this,{attributions:a.attributions,extent:a.extent,X:a.X,projection:a.projection,tileGrid:a.tileGrid});this.ca=x(a.ca)?a.ca:ii;this.F=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new li}B(mi,jg);mi.prototype.f=function(){return this.a.Z()>this.a.d};mi.prototype.Ba=function(a){this.a.Ba(a)};mi.prototype.b=function(a,b,c){var d=a.toString();if(ch(this.a,d))return fh(this.a,d);b=this.ca(a,b,c);x(b)?(a=new ki(a,b,this.F),hh(this.a,d,a)):a=k;return a}; mi.prototype.p=function(a){a=a.toString();ch(this.a,a)&&fh(this.a,a)};function ni(a){var b=Array(a.maxZoom+1),c,d=2*Uf/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);bg.call(this,{origin:new L(-Uf,Uf),resolutions:b,tileSize:new Wd(256,256)})}B(ni,bg);ni.prototype.b=function(a,b,c){for(var d=a.x,e=a.y,a=a.n,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new qe(d,e,d,e);if(b.call(c,a,f))break}};function oi(a){mi.call(this,{X:i,projection:Me("EPSG:3857")});this.$c=x(a.culture)?a.culture:"en-us";this.g=l;var b=new Rc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new ci(b),a={include:"ImageryProviders",key:a.key},c=na(this.t,this),a=a||k,d="_"+(di++).toString(36)+pa().toString(36);w._callbacks_||(w._callbacks_={});var e=b.b.Q();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&ed(e,f,a[f]);c&&(w._callbacks_[d]=function(a){ei(d,i);c.apply(h,arguments)},ed(e,b.a,"_callbacks_."+ d));f=Xh(e.toString(),{timeout:b.tb,cc:i});f.a.push([k,function(){ei(d,l)},h]);f.ia&&Th(f)}B(oi,mi); oi.prototype.t=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new ni({maxZoom:d,tileSize:new Wd(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.ca=ji(function(a){if(a.ne||b<=e?k:new oe(a.n,Fb(a.x,b),e)},gi(Aa(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.$c);return function(a){return a===k?h:c.replace("{quadkey}",pe(a))}})));var f=Ce(Me("EPSG:4326"),this.j);this.e= Aa(b.imageryProviders,function(a){var b=a.attribution,c={};C(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new Zd(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=dg(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new re(b,c)});this.g=i;K(this,"load")};oi.prototype.c=n("g");function pi(a,b){se.call(this,a);this.a=2;this.e=a;this.d=hg(b,a.n);this.b={}}B(pi,se);pi.prototype.I=function(a){a=x(a)?y(a):-1;if(a in this.b)return this.b[a];var b=this.d,c=Qb("CANVAS");c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.e.toString(),b.width/2,b.height/2);return this.b[a]=c}; function qi(a){jg.call(this,{extent:a.extent,X:l,projection:a.projection,tileGrid:a.tileGrid});this.a=new li}B(qi,jg);qi.prototype.f=function(){return this.a.Z()>this.a.d};qi.prototype.Ba=function(a){this.a.Ba(a)};qi.prototype.b=function(a){var b=a.toString();if(ch(this.a,b))return fh(this.a,b);a=new pi(a,this.tileGrid);hh(this.a,b,a);return a};function ri(a){var b=a.projection||Me("EPSG:3857"),c=ii;x(a.ca)?c=a.ca:x(a.urls)?c=gi(Aa(a.urls,fi)):x(a.url)&&(c=fi(a.url));var d=new ni({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?ji(function(b){if(a.maxZoomj||c<=j)return k;c=Fb(b.x,c);return!Yd(cg(d,new oe(b.n,c,b.y)),e)?k:new oe(b.n,c,j)},c):ji(function(b){if(a.maxZoomd||c<=d?k:new oe(b.n,Fb(b.x,c),d)},c);mi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin, extent:a.extent,projection:b,tileGrid:d,ca:c})}B(ri,mi);function si(){ri.call(this,{attributions:[new re('Tiles Courtesy of MapQuest '),new re('Data © OpenStreetMap contributors, CC BY-SA')],X:i,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(si,ri); function ti(){ri.call(this,{attributions:[new re('Tiles Courtesy of MapQuest '),new re("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,X:i,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(ti,ri);function ui(){ri.call(this,{attributions:[new re('© OpenStreetMap contributors, CC BY-SA')],X:i,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(ui,ri);function vi(a){Ag.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Fa:x(a.url)?yg(a.url,a.params,a.version):zg});this.b=k;this.f=1.5}B(vi,Ag); vi.prototype.I=function(a,b,c){this.a===k||(b=this.a[nf(this.a,b)]);var d=this.b,e;if(e=d!==k)if(e=d.e==b)e=d.H(),e=e.h<=a.h&&a.m<=e.m&&e.i<=a.i&&a.k<=e.k;if(e)return d;var d=a=new Zd(a.h,a.i,a.m,a.k),f=this.f;e=d.da()/2*(f-1);f=d.$()/2*(f-1);d.h-=e;d.i-=f;d.m+=e;d.k+=f;return this.b=Bg(this,a,b,new Wd(a.da()/b,a.$()/b),c)};var wi={ve:"background",we:"labels",xe:"lines",ze:"2010",Ae:"2011",Be:"2011-labels",Ce:"2011-lines",De:"2011-lite",Ee:"background",Fe:"hybrid",Ge:"labels",He:"lines",Ie:"lite"},xi={ue:"terrain",ye:"toner",Qe:"watercolor"},yi={terrain:{type:"jpg",sc:4,maxZoom:18},toner:{type:"png",sc:0,maxZoom:20},watercolor:{type:"jpg",sc:3,maxZoom:16}}; function zi(a){var b=new re('Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.'),c=a.provider;x(a.flavor)&&(c+="-"+a.flavor);a=yi[a.provider];ri.call(this,{attributions:[b],maxZoom:a.maxZoom,X:l,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}B(zi,ri);function Ai(a){var b=a.imageExtent,c=a.imageSize,d=b.$()/c.height,e=x(a.projection)?a.projection:k,f=a.url;Ag.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Fa:function(){return f},resolutions:[d]});this.b=Bg(this,b,d,c,e)}B(Ai,Ag);Ai.prototype.I=function(a){return Yd(a,this.b.H())?this.b:k};var Bi=[];A("grid",function(a){Bi.push(a)});function Ci(a){mi.call(this,{projection:Me("EPSG:3857")});this.g=l;a=this.t=Xh(a.uri,{cc:i});a.a.push([this.A,k,this]);a.ia&&Th(a)}B(Ci,mi); Ci.prototype.A=function(){var a=Bi.pop(),b=Me("EPSG:4326"),c,d;x(a.bounds)?(c=a.bounds,c=new Zd(c[0],c[1],c[2],c[3]),this.l=d=c.transform(Ce(b,this.j))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new ni({maxZoom:f});this.tileGrid=g;this.ca=ji(function(a){if(a.nc||b<=c)return k;b=Fb(a.x,b);return d!==k&&!Yd(cg(g,new oe(a.n,b,a.y)),d)?k:new oe(a.n,b,c)},gi(Aa(a.tiles,fi)));if(x(a.attribution)){b=d===k?b.H():d;c={};var j,m;for(j=e;j<=f;++j)m=j.toString(), c[m]=[dg(g,b,g.a[j])];this.e=[new re(a.attribution,c)]}this.g=i;K(this,"load")};Ci.prototype.c=n("g");function Di(a){var b=a.version,c;a.urls?(c=Aa(a.urls,function(c){return hi(c,a.params,b)}),c=gi(c)):c=a.url?hi(a.url,a.params,b):ii;mi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,tileGrid:a.tileGrid,X:!(x(a.transparent)?a.transparent:1),projection:a.projection,ca:ji(function(b,c,f){if(c.Db().length<=b.n)return k;var g=b.x,j=cg(c,b),m=f.H(),f=x(a.extent)?a.extent:m;f.h===m.h&&f.m===m.m&&(j=Math.ceil((f.m-f.h)/(j.m-j.h)),g=Fb(g,j),j=cg(c,new oe(b.n,g,b.y)));return!Yd(j, f)?k:new oe(b.n,g,b.y)},c)})}B(Di,mi);A("goog.require",ba);function Ei(a){T.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}B(Ei,T);A("ol.AnchoredElement",Ei);A("ol.AnchoredElementPositioning",vh);vh.BOTTOM_LEFT="bottom-left";vh.BOTTOM_RIGHT="bottom-right";vh.TOP_LEFT="top-left";vh.TOP_RIGHT="top-right";A("ol.Attribution",re);A("ol.Collection",N);N.prototype.clear=N.prototype.clear;N.prototype.forEach=N.prototype.forEach;N.prototype.getArray=N.prototype.dd;N.prototype.getAt=N.prototype.ed; N.prototype.getLength=N.prototype.Ya;N.prototype.insertAt=N.prototype.cb;N.prototype.pop=N.prototype.vc;N.prototype.push=N.prototype.push;N.prototype.removeAt=N.prototype.Bc;N.prototype.setAt=N.prototype.Qd;A("ol.Coordinate",L);L.toStringHDMS=function(a){return x(a)?Oc(a.y,"NS")+" "+Oc(a.x,"EW"):""};A("ol.Extent",Zd);Zd.prototype.getHeight=Zd.prototype.$;Zd.prototype.getWidth=Zd.prototype.da;A("ol.Geolocation",X); function Fi(a){S.call(this,{attributionControl:a.attributionControl,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,mouseWheelZoom:a.mouseWheelZoom,mouseWheelZoomDelta:a.mouseWheelZoomDelta,renderer:a.renderer,renderers:a.renderers,scaleLineControl:a.scaleLineControl,scaleLineUnits:a.scaleLineUnits,shiftDragZoom:a.shiftDragZoom,target:a.target,touchPan:a.touchPan,touchRotate:a.touchRotate,touchZoom:a.touchZoom, view:a.view,zoomControl:a.zoomControl,zoomDelta:a.zoomDelta})}B(Fi,S);A("ol.Map",Fi);S.prototype.addPreRenderFunction=S.prototype.j;S.prototype.addPreRenderFunctions=S.prototype.Lc;S.prototype.getInteractions=S.prototype.Nc;S.prototype.getRenderer=S.prototype.Pc;Ze.prototype.getCoordinate=Ze.prototype.d;A("ol.Object",M);M.prototype.bindTo=M.prototype.Vc;M.prototype.changed=M.prototype.Yc;M.prototype.get=M.prototype.s;M.prototype.notify=M.prototype.uc;M.prototype.set=M.prototype.q; M.prototype.setOptions=M.prototype.Ec;M.prototype.setValues=M.prototype.lb;M.prototype.unbind=M.prototype.Vb;M.prototype.unbindAll=M.prototype.$d;A("ol.Projection",O);O.prototype.getAxisOrientation=O.prototype.g;O.prototype.getCode=O.prototype.l;O.prototype.getExtent=O.prototype.H;O.prototype.getPointResolution=O.prototype.b;O.prototype.getUnits=O.prototype.j;A("ol.ProjectionUnits",Ae);Ae.DEGREES="degrees";Ae.METERS="m";A("ol.RendererHint",rh);rh.CANVAS="canvas";rh.DOM="dom";rh.WEBGL="webgl"; A("ol.RendererHints",qh);qh.createFromQueryData=qh.Zc;function Gi(a){R.call(this,{center:a.center,maxResolution:a.maxResolution,numZoomLevels:a.numZoomLevels,projection:a.projection,resolution:a.resolution,resolutions:a.resolutions,rotation:a.rotation,zoom:a.zoom,zoomFactor:a.zoomFactor})}B(Gi,R);A("ol.View2D",Gi);A("ol.animation",Ue);Ue.bounce=Ue.Ab;Ue.pan=Ue.Ja;Ue.rotate=Ue.rotate;Ue.zoom=Ue.zoom;function Hi(a){uf.call(this,{map:a.map,target:a.target})}B(Hi,uf);A("ol.control.Attribution",Hi); uf.prototype.setMap=uf.prototype.a;function Ii(a){yh.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}B(Ii,yh);A("ol.control.MousePosition",Ii);yh.prototype.setMap=yh.prototype.a;function Ji(a){wf.call(this,{map:a.map,minWidth:a.minWidth,target:a.target,units:a.units})}B(Ji,wf);A("ol.control.ScaleLine",Ji);wf.prototype.setMap=wf.prototype.a;A("ol.control.ScaleLineUnits",vf);vf.DEGREES="degrees";vf.IMPERIAL="imperial"; vf.METRIC="metric";vf.NAUTICAL="nautical";vf.US="us";function Ki(a){yf.call(this,{delta:a.delta,map:a.map,target:a.target})}B(Ki,yf);A("ol.control.Zoom",Ki);yf.prototype.setMap=yf.prototype.a;A("ol.easing",Te);Te.bounce=Te.Ab;Te.elastic=Te.ad;Te.linear=Te.pc;Te.upAndDown=Te.Jc;A("ol.interaction.Keyboard",Ah);Ah.prototype.addCallback=Ah.prototype.b; function Li(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Li,Cg);A("ol.layer.ImageLayer",Li);function Mi(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Mi,Dg);A("ol.layer.TileLayer",Mi);A("ol.parser.ogc.WMSCapabilities",Mh);Mh.prototype.read=Mh.prototype.ra;A("ol.parser.ogc.WMTSCapabilities",Qh); Qh.prototype.read=Qh.prototype.ra;A("ol.projection.addProjection",Ie);A("ol.projection.getFromCode",Me);A("ol.projection.getTransform",Ce);A("ol.projection.getTransformFromCodes",Oe);A("ol.projection.transform",function(a,b,c){b=Ce(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});A("ol.projection.transformWithCodes",function(a,b,c){b=Oe(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});Hg.prototype.getCanvas=Hg.prototype.Wa;A("ol.source.BingMaps",oi); function Ni(a){qi.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}B(Ni,qi);A("ol.source.DebugTileSource",Ni);A("ol.source.MapQuestOSM",si);A("ol.source.MapQuestOpenAerial",ti);A("ol.source.OpenStreetMap",ui);A("ol.source.SingleImageWMS",vi);A("ol.source.Stamen",zi);A("ol.source.StamenFlavor",wi);wi.TERRAIN_BACKGROUND="background";wi.TERRAIN_LABELS="labels";wi.TERRAIN_LINES="lines";wi.TONER_2010="2010";wi.TONER_2011="2011";wi.TONER_2011_LABELS="2011-labels"; wi.TONER_2011_LINES="2011-lines";wi.TONER_2011_LITE="2011-lite";wi.TONER_BACKGROUND="background";wi.TONER_HYBRID="hybrid";wi.TONER_LABELS="labels";wi.TONER_LINES="lines";wi.TONER_LITE="lite";A("ol.source.StamenProvider",xi);xi.TERRAIN="terrain";xi.TONER="toner";xi.WATERCOLOR="watercolor";A("ol.source.StaticImage",Ai);A("ol.source.TileJSON",Ci);A("ol.source.TiledWMS",Di); function Oi(a){bg.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}B(Oi,bg);A("ol.tilegrid.TileGrid",Oi);function Pi(a){ni.call(this,{maxZoom:a.maxZoom})}B(Pi,ni);A("ol.tilegrid.XYZ",Pi);Ue.ce={};Ue.se={};Ue.te={};Ue.Se={};})();