(function(){function aa(a){throw a;}var g=void 0,i=!0,k=null,l=!1;function ba(){return function(a){return a}}function n(a){return function(){return this[a]}}function ca(a){return function(){return a}}var p,r=this;function da(){}function fa(a){a.lb=function(){return a.Tc?a.Tc:a.Tc=new a}} function ga(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!==g}function ha(a){return"array"==ga(a)}function ia(a){var b=ga(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ja(a){return"string"==typeof a}function ka(a){return"function"==ga(a)}function la(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function z(a){return a[na]||(a[na]=++oa)}var na="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),oa=0; function pa(a,b,c){return a.call.apply(a.bind,arguments)}function qa(a,b,c){a||aa(Error());if(2")&&(a=a.replace(Ba,">"));-1!=a.indexOf('"')&&(a=a.replace(Ca,"""));return a}var ya=/&/g,za=//g,Ca=/\"/g,xa=/[&<>\"]/;var Da=Array.prototype,Fa=Da.indexOf?function(a,b,c){return Da.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ja(a))return!ja(b)||1!=b.length?-1:a.indexOf(b,c);for(;c=arguments.length?Da.slice.call(a,b):Da.slice.call(a,b,c)}function Sa(a){Da.sort.call(a,Ta)}function Ta(a,b){return a>b?1:a2*this.o&&db(this),i):l};function db(a){if(a.o!=a.a.length){for(var b=0,c=0;bparseFloat(Eb)){Bb=String(Ib);break a}}Bb=Eb}var Kb={}; function Lb(a){var b;if(!(b=Kb[a])){b=0;for(var c=String(Bb).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==s[1].length?0:parseInt(s[1],10))?1:0)||((0==v[2].length)<(0==s[2].length)?-1:(0==v[2].length)>(0==s[2].length)?1:0)||(v[2]s[2]?1:0)}while(0==b)}b=Kb[a]=0<=b}return b}var Mb={};function Nb(a){return Mb[a]||(Mb[a]=G&&!!document.documentMode&&document.documentMode>=a)};var Ob,Pb=!G||Nb(9);!ub&&!G||G&&Nb(9)||ub&&Lb("1.9.1");G&&Lb("9");function Qb(a,b){var c;c=a.className;c=ja(c)&&c.match(/\S+/g)||[];for(var d=Ra(arguments,1),e=c.length+d.length,f=c,h=0;hc*b?c+b:c};function Tb(a,b){this.x=x(a)?a:0;this.y=x(b)?b:0}Tb.prototype.V=function(){return new Tb(this.x,this.y)};function Ub(a,b){this.width=a;this.height=b}p=Ub.prototype;p.V=function(){return new Ub(this.width,this.height)};p.Wa=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 Vb(a){return a?new Zb($b(a)):Ob||(Ob=new Zb)}function ac(a,b){Ua(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in bc?a.setAttribute(bc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var bc={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 cc(a){a=a.document.documentElement;return new Ub(a.clientWidth,a.clientHeight)}function dc(a,b,c){var d=arguments,e=document,f=d[0],h=d[1];if(!Pb&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',va(h.name),'"');if(h.type){f.push(' type="',va(h.type),'"');var j={};$a(j,h);delete j.type;h=j}f.push(">");f=f.join("")}f=e.createElement(f);h&&(ja(h)?f.className=h:ha(h)?Qb.apply(k,[f].concat(h)):ac(f,h));2=a.keyCode)a.keyCode=-1}catch(b){}};p.Kd=n("L");function Hc(){}var Ic=0;Hc.prototype.key=0;Hc.prototype.La=l;Hc.prototype.a=l;Hc.prototype.handleEvent=function(a){return this.b?this.Xa.call(this.fc||this.src,a):this.Xa.handleEvent.call(this.Xa,a)};var Jc={},Kc={},Lc={},Mc={}; function I(a,b,c,d,e){if(b){if(ha(b)){for(var f=0;ff.keyCode||f.returnValue!=g)return i;a:{var q=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(v){q=i}if(q||f.returnValue==g)f.returnValue=i}}q=new Dc;Ec(q,f,this);f=i;try{if(j){for(var s=[],A=q.b;A;A=A.parentNode)s.push(A);h=e[i];h.Y=h.o;for(var u=s.length- 1;!q.Ga&&0<=u&&h.Y;u--)q.b=s[u],f&=Wc(h,s[u],d,i,q);if(m){h=e[l];h.Y=h.o;for(u=0;!q.Ga&&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 Zc(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}Zc.prototype.V=function(){return new Zc(this.left,this.top,this.width,this.height)};Zc.prototype.ha=function(a){return this.left<=a.left+a.width&&a.left<=this.left+this.width&&this.top<=a.top+a.height&&a.top<=this.top+this.height}; Zc.prototype.contains=function(a){return a instanceof Zc?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};function $c(a,b){var c=$b(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function ad(a,b){return $c(a,b)||(a.currentStyle?a.currentStyle[b]:k)||a.style&&a.style[b]}function bd(a,b,c){var d,e=ub&&(kb||Ab)&&Lb("1.9");b instanceof Tb?(d=b.x,b=b.y):(d=b,b=c);a.style.left=cd(d,e);a.style.top=cd(b,e)} function dd(a){var b=a.getBoundingClientRect();G&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b} function ed(a){if(G&&!Nb(8))return a.offsetParent;for(var b=$b(a),c=ad(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=ad(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 fd(a){var b,c=$b(a),d=ad(a,"position"),e=ub&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new Tb(0,0),h;b=c?$b(c):document;h=G&&!Nb(9)&&!lc(Vb(b))?b.body:b.documentElement;if(a==h)return f;if(a.getBoundingClientRect)b=dd(a),a=mc(Vb(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(h),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+= b.offsetTop;b!=a&&(f.x+=b.clientLeft||0,f.y+=b.clientTop||0);if(xb&&"fixed"==ad(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(tb||xb&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=ed(b))&&b!=c.body&&b!=h;)if(f.x-=b.scrollLeft,!tb||"TR"!=b.tagName)f.y-=b.scrollTop}return f}function gd(a,b){var c=hd(a),d=hd(b);return new Tb(c.x-d.x,c.y-d.y)} function hd(a){var b=new Tb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=dd(a);b.x=c.left;b.y=c.top}else{var c=mc(Vb(a)),d=fd(a);b.x=d.x-c.x;b.y=d.y-c.y}if(ub&&!Lb(12)){var e;G?e="-ms-transform":xb?e="-webkit-transform":tb?e="-o-transform":ub&&(e="-moz-transform");var f;e&&(f=ad(a,e));f||(f=ad(a,"transform"));f?(a=f.match(id),a=!a?new Tb(0,0):new Tb(parseFloat(a[1]),parseFloat(a[2]))):a=new Tb(0,0);b=new Tb(b.x+a.x,b.y+a.y)}}else e=ka(a.Kd),f=a,a.targetTouches?f=a.targetTouches[0]:e&&a.L.targetTouches&& (f=a.L.targetTouches[0]),b.x=f.clientX,b.y=f.clientY;return b}function cd(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function jd(a){if("none"!=ad(a,"display"))return kd(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=kd(a);b.display=c;b.position=e;b.visibility=d;return a} function kd(a){var b=a.offsetWidth,c=a.offsetHeight,d=xb&&!b&&!c;return(!x(b)||d)&&a.getBoundingClientRect?(a=dd(a),new Ub(a.right-a.left,a.bottom-a.top)):new Ub(b,c)}function ld(a,b){a.style.display=b?"":"none"}function md(a){return"rtl"==ad(a,"direction")} function nd(a,b){var c=lc(Vb($b(a)));if(G&&(!c||!Lb("8"))){var d=a.style;if(c){var c=od(a,"padding"),e=pd(a);d.pixelWidth=b.width-e.left-c.left-c.right-e.right;d.pixelHeight=b.height-e.top-c.top-c.bottom-e.bottom}else d.pixelWidth=b.width,d.pixelHeight=b.height}else d=a.style,ub?d.MozBoxSizing="border-box":xb?d.WebkitBoxSizing="border-box":d.boxSizing="border-box",d.width=Math.max(b.width,0)+"px",d.height=Math.max(b.height,0)+"px"} function qd(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b}function rd(a,b){return qd(a,a.currentStyle?a.currentStyle[b]:k,"left","pixelLeft")} function od(a,b){if(G){var c=rd(a,b+"Left"),d=rd(a,b+"Right"),e=rd(a,b+"Top"),f=rd(a,b+"Bottom");return new Yc(e,d,f,c)}c=$c(a,b+"Left");d=$c(a,b+"Right");e=$c(a,b+"Top");f=$c(a,b+"Bottom");return new Yc(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}var sd={thin:2,medium:4,thick:6};function td(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:k))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:k;return c in sd?sd[c]:qd(a,c,"left","pixelLeft")} function pd(a){if(G){var b=td(a,"borderLeft"),c=td(a,"borderRight"),d=td(a,"borderTop"),a=td(a,"borderBottom");return new Yc(d,c,a,b)}b=$c(a,"borderLeftWidth");c=$c(a,"borderRightWidth");d=$c(a,"borderTopWidth");a=$c(a,"borderBottomWidth");return new Yc(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var id=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function ud(a,b){this.x=a;this.y=b}D(ud,Tb);ud.prototype.V=function(){return new ud(this.x,this.y)};ud.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){ud.call(this,a,b)}D(L,ud);function vd(a,b){var c=Sb(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 wd(a,b){if(x(a)){var c=b||0;return a.x.toFixed(c)+", "+a.y.toFixed(c)}return""}function xd(a,b){var c=b.charAt(0);return"n"===c||"s"===c?new L(a[1],a[0]):new L(a[0],a[1])};var yd=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function zd(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=g)}return a.join("")}function Ad(a,b,c){if(ha(b))for(var d=0;db)&&aa(Error("Bad port number "+b)),a.Hb=b):a.Hb=k} function Gd(a,b,c){Ed(a);if(b instanceof Hd){a.a=b;b=a.a;if((a=a.Aa)&&!b.b){Nd(b);b.a=k;var d=b.H,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),$d(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(ia(d)||ja(d))F(d,c,b);else{var e;if("function"==typeof d.ba)e=d.ba();else if("function"!=typeof d.W)if(ia(d)||ja(d)){e=[];for(var f=d.length,h=0;h>4&15).toString(16)+(a&15).toString(16)}var Jd=/[#\/\?@]/g,Ld=/[\#\?:]/g,Kd=/[\#\?]/g,ae=/[\#\?@]/g,Md=/#/g;function Hd(a,b,c){this.a=a||k;this.b=!!c} function Nd(a){if(!a.H&&(a.H=new bb,a.o=0,a.a))for(var b=a.a.split("&"),c=0;c=a||96<=a&&106>=a||65<=a&&90>=a||xb&&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 te(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function ue(a,b){tc.call(this);a&&(this.xb&&ve(this),this.Ra=a,this.wb=I(this.Ra,"keypress",this,b),this.gc=I(this.Ra,"keydown",this.a,b,this),this.xb=I(this.Ra,"keyup",this.b,b,this))}D(ue,ge);p=ue.prototype;p.Ra=k;p.wb=k;p.gc=k;p.xb=k;p.ua=-1;p.ta=-1;p.Qb=l; var we={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},xe={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},ye=G||xb&&Lb("525"),ze=kb&&ub; ue.prototype.a=function(a){if(xb&&(17==this.ua&&!a.qb||18==this.ua&&!a.na))this.ta=this.ua=-1;ye&&!re(a.Ia,this.ua,a.Ca,a.qb,a.na)?this.handleEvent(a):(this.ta=ub?te(a.Ia):a.Ia,ze&&(this.Qb=a.na))};ue.prototype.b=function(a){this.ta=this.ua=-1;this.Qb=a.na}; ue.prototype.handleEvent=function(a){var b=a.L,c,d,e=b.altKey;G&&"keypress"==a.type?(c=this.ta,d=13!=c&&27!=c?b.keyCode:0):xb&&"keypress"==a.type?(c=this.ta,d=0<=b.charCode&&63232>b.charCode&&se(c)?b.charCode:0):tb?(c=this.ta,d=se(c)?b.keyCode:0):(c=b.keyCode||this.ta,d=b.charCode||0,ze&&(e=this.Qb),kb&&(63==d&&224==c)&&(c=191));var f=c,h=b.keyIdentifier;c?63232<=c&&c in we?f=we[c]:25==c&&a.Ca&&(f=9):h&&h in xe&&(f=xe[h]);a=f==this.ua;this.ua=f;b=new Ae(f,d,a,b);b.na=e;K(this,b)}; function ve(a){a.wb&&(J(a.wb),J(a.gc),J(a.xb),a.wb=k,a.gc=k,a.xb=k);a.Ra=k;a.ua=-1;a.ta=-1}ue.prototype.r=function(){ue.z.r.call(this);ve(this)};function Ae(a,b,c,d){d&&Ec(this,d,g);this.type="key";this.Ia=a;this.pb=b;this.c=c}D(Ae,Dc);function Be(a){tc.call(this);this.a=a;a=la(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&md(a);this.b=I(this.a,ub?"DOMMouseScroll":"mousewheel",this)}D(Be,ge); Be.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.L;if("mousewheel"==a.type){c=1;if(G||xb&&(lb||Lb("532.0")))c=40;d=Ce(-a.wheelDelta,c);x(a.wheelDeltaX)?(b=Ce(-a.wheelDeltaX,c),c=Ce(-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=Rb(b,-this.c,this.c));"number"==typeof this.d&&(c=Rb(c,-this.d,this.d));this.e&&(b=-b);b=new De(d,a,b,c);K(this,b)};function Ce(a,b){return xb&&(kb||ob)&&0!=a%b?a:a/b} Be.prototype.r=function(){Be.z.r.call(this);J(this.b);delete this.b};function De(a,b,c,d){b&&Ec(this,b,g);this.type="mousewheel";this.c=a;this.O=c;this.N=d}D(De,Dc);var Ee=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function M(a){tc.call(this);this.s={};x(a)&&this.Db(a)}D(M,ge);var Fe={},Ge={},He={};function Ie(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Je(a){return a.ol_accessors_||(a.ol_accessors_={})}function Ke(a){return Fe.hasOwnProperty(a)?Fe[a]:Fe[a]=a.toLowerCase()+"_changed"}function Le(a){return a.ol_bindings_||(a.ol_bindings_={})}p=M.prototype; p.xd=function(a,b,c,d){c=c||a;this.nc(a);var e=Ke(c);Le(this)[a]=I(b,e,function(){Me(this,a)},g,this);Je(this)[a]={target:b,key:c};d||Me(this,a)};p.Ad=da;p.q=function(a){var b,c=Je(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Ge.hasOwnProperty(b)?Ge[b]:Ge[b]="get"+Ie(b),b=a[c]?a[c]():a.q(b)):this.s.hasOwnProperty(a)&&(b=this.s[a]);return b}; p.ba=function(){for(var a=Wa(Je(this)).concat(Wa(this.s)),b={},c=0,d=0;d=a.h&&this.l<=a.k&&this.k>=a.l};p.toString=function(){return"("+[this.h,this.l,this.j,this.k].join(", ")+")"};function O(a,b,c,d){Re.call(this,a,b,c,d)}D(O,Re);function Te(a){var b=arguments[0],b=new O(b.x,b.y,b.x,b.y),c;for(c=1;cf;++f)h=e[f],j=c[f],e[f]=a.x+h*b-j*d,c[f]=a.y+h*d+j*b;a=Math.min.apply(k,e);b=Math.min.apply(k,c);e=Math.max.apply(k,e);c=Math.max.apply(k,c);return new O(a,b,e,c)}p=O.prototype;p.Bd=function(a){return this.h<=a.x&&a.x<=this.j&&this.l<=a.y&&a.y<=this.k};p.yc=function(a){return this.h<=a.h&&a.j<=this.j&&this.l<=a.l&&a.k<=this.k};p.Gc=function(){return new L(this.h,this.l)}; p.Jd=function(){return new L(this.j,this.l)};p.ob=function(){return new L(this.h,this.k)};p.Nd=function(){return new L(this.j,this.k)};p.transform=function(a){var b=[this.h,this.l,this.j,this.k],b=a(b,b,2);return new O(Math.min(b[0],b[2]),Math.min(b[1],b[3]),Math.max(b[0],b[2]),Math.max(b[1],b[3]))};function Ve(a){this.length=a.length||a;for(var b=0;b>=1;return b.join("")}yf.prototype.toString=function(){return[this.n,this.x,this.y].join("/")};function Af(a,b,c,d){this.h=a;this.l=b;this.j=c;this.k=d}D(Af,Re);Af.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.j&&this.l<=a.y&&a.y<=this.k};Af.prototype.ga=function(){return this.k-this.l+1};Af.prototype.ma=function(){return this.j-this.h+1};function Bf(a,b){this.b=a;this.a=b||k};function Cf(a,b){tc.call(this);this.fa=a;this.a=b}D(Cf,ge);Cf.prototype.b=function(){return z(this).toString()};function Df(a){this.d=a;this.f=8;this.c=0;this.a=[];this.b={}}function Ef(a,b,c,d){if(0==b.a){var e=b.b();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,Ff(a,0,a.a.length-1))}}}Df.prototype.e=function(){--this.c};function Gf(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b>1;){var h=2*b+1,j=2*b+2,h=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 Hf(a){this.a=a}function If(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*Jf.a*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))} Hf.prototype.offset=function(a,b,c){var d=a.y*Math.PI/180,b=b/this.a,e=Math.asin(Math.sin(d)*Math.cos(b)+Math.cos(d)*Math.sin(b)*Math.cos(c));return new L(180*(a.x*Math.PI/180+Math.atan2(Math.sin(c)*Math.sin(b)*Math.cos(d),Math.cos(b)-Math.sin(d)*Math.sin(e)))/Math.PI,180*e/Math.PI)};var Jf=new Hf(6370997);var Kf="object"==typeof Proj4js,Lf={rd:"degrees",of:"ft",vf:"m"},Mf={};Mf.degrees=2*Math.PI*Jf.a/360;Mf.ft=0.3048;Mf.m=1;function Nf(a){this.a=a.code;this.b=a.units;this.g=a.extent;this.d=x(a.axisOrientation)?a.axisOrientation:"enu";this.Vb=x(a.global)?a.global:l;this.f=k}p=Nf.prototype;p.Ld=n("a");p.I=n("g");p.Od=n("b");p.Hc=function(){return Mf[this.b]};p.Id=n("d");p.ve=n("Vb");function Of(a,b){var c={units:a.units,axisOrientation:a.axis};$a(c,b);Nf.call(this,c);this.dd=a;this.e=k}D(Of,Nf); Of.prototype.c=function(a,b){if("degrees"==this.b)return a;this.e===k&&(this.e=Pf(this,Qf({code:"EPSG:4326",extent:k})));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.e(c,c,2),c=(If(new L(c[0],c[1]),new L(c[2],c[3]))+If(new L(c[4],c[5]),new L(c[6],c[7])))/2;"ft"==this.b&&(c/=0.3048);return c};var Rf={},Sf={},Tf={};function Uf(a){F(a,function(a){Vf(a)});F(a,function(b){F(a,function(a){b!==a&&Wf(b,a,Xf)})})}function Vf(a){Sf[a.a]=a;Wf(a,a,Xf)} function Yf(a){return a!=k?ja(a)?Zf(a):a:Zf("EPSG:3857")}function Wf(a,b,c){a=a.a;b=b.a;a in Tf||(Tf[a]={});Tf[a][b]=c}function Zf(a){var b;a instanceof Nf?b=a:ja(a)?(b=Sf[a],Kf&&!x(b)&&(b=Qf({code:a,extent:k})),x(b)||(b=k)):b=k;return b}function Qf(a){var b=a.code,c=Rf[b];if(!x(c)){var d=new Proj4js.Proj(b),e=d.srsCode,c=Rf[e];x(c)||(a=Ya(a),a.code=e,c=new Of(d,a),Rf[e]=c);Rf[b]=c}return c}function $f(a,b){var c=Zf(a),d=Zf(b);return Pf(c,d)} function Pf(a,b){var c=a.a,d=b.a,e;c in Tf&&d in Tf[c]&&(e=Tf[c][d]);if(Kf&&!x(e)){var f;f=(a instanceof Of?a:Qf({code:c,extent:k})).dd;var h;h=(b instanceof Of?b:Qf({code:d,extent:k})).dd;e=function(a,b,c){var d=a.length,c=1=Math.abs(a+c)?0:a+c}};var wg={Rb: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},Ed:function(a){return a*a*a},Oa:function(a){return 1-Math.pow(1-a,3)},Fd:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Ja:function(a){return 3*a*a-2*a*a*a},Uc:ba(),pd:function(a){return 0.5>a?wg.Ja(2*a):1-wg.Ja(2*(a-0.5))}};var xg={Rb:function(a){var b=a.resolution,c=x(a.start)?a.start:ta(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:wg.pd;return function(a,h){if(h.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.$a-b.$a);return a.b>a.d}return l}Hg.prototype.ia=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return xg.ia({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Jg(){};function Kg(a){this.a=a}D(Kg,Jg);Kg.prototype.Ea=function(a){var b=a.a;if(a.type==ig&&(Ee||Gc(a.a))){var c=a.map,d=a.d(),e=a.a.Ca?-this.a:this.a;Cg(c.a(),c,e,d,250);a.A();b.A()}};function Lg(a){return a.na&&!a.Gb&&a.Ca}function Mg(a){return!a.na&&!a.Gb&&!a.Ca}function Ng(a){return!a.na&&!a.Gb&&a.Ca};function Og(){this.c=l;this.s=this.i=this.e=this.d=0;this.Za=this.f=k}D(Og,Jg);p=Og.prototype;p.$b=da;p.sb=da;p.tb=ie;p.Rc=da;p.Ea=function(a){var b=a.map;if(b.Va()){var b=b.a(),c=a.a;a.type==lg&&this.Rc(a);this.c?a.type==ng?(this.O=c.clientX-this.d,this.N=c.clientY-this.e,this.$b(a)):a.type==kg&&(this.O=c.clientX-this.d,this.N=c.clientY-this.e,this.sb(a),this.c=l):a.type==mg&&(this.d=c.clientX,this.e=c.clientY,this.N=this.O=0,this.f=b.R(),this.Za=a.d(),this.tb(a)&&(this.c=i,a.A()))}};function Pg(a,b){Og.call(this);this.g=a;this.a=b;this.b=k}D(Pg,Og);Pg.prototype.$b=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,$a:ta()});var a=a.map,b=a.a(),c=b.S(),d=b.ca(),c=new L(-c*this.O,c*this.N);c.rotate(d);d=new L(this.f.x+c.x,this.f.y+c.y);yg(a);b.a(d)}; Pg.prototype.sb=function(a){var b=a.map,a=b.a();tg(a,-1);if(this.a&&Ig(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.R();this.b=this.a.ia(e);b.ra(this.b);e=Qg(b,e);b=fg(b,new dg(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};Pg.prototype.tb=function(a){var b=a.a;if(this.g(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,$a:ta()})}a=a.map;yg(a);tg(a.a(),1);return i}return l}; Pg.prototype.Rc=function(a){var b=a.map,c=b.a();this.b!==k&&Ma(b.i,this.b)&&(yg(b),c.a(a.c.v.center),this.b=k)};function Rg(a){Og.call(this);this.b=a}D(Rg,Og);Rg.prototype.$b=function(a){var b=a.map,c=b.f(),a=gg(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();yg(b);zg(d,b,d.ca()-a)}this.a=c};Rg.prototype.sb=function(a){var a=a.map,b=a.a();b.rotate(a,b.ca(),g,250);tg(b,-1)};Rg.prototype.tb=function(a){var b=a.a;return Gc(b)&&this.b(b)?(a=a.map,b=a.a(),yg(a),this.a=g,tg(b,1),i):l};function Sg(a){var b=dc("DIV","ol-dragbox");this.c=k;this.e=a.Za;this.d=k;Dg.call(this,{element:b,map:a.map})}D(Sg,Dg);Sg.prototype.a=function(a){this.d!==k&&(J(this.d),this.d=k);a!==k&&(this.c=Qg(a,this.e),bd(this.element,this.c),nd(this.element,new Qe(0,0)),this.d=I(a,ng,this.f,l,this));Sg.z.a.call(this,a)};Sg.prototype.f=function(a){var b=this.b,a=a.d(),b=Qg(b,a);bd(this.element,new dg(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));nd(this.element,new Qe(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Tg(a){Og.call(this);this.b=a;this.a=k}D(Tg,Og);Tg.prototype.sb=function(a){this.a.a(k);this.a=k;if(64<=this.O*this.O+this.N*this.N){var b=a.map,c=Te(this.Za,a.d());Ag(b,function(){var a=b.a(),e=b.f();a.f(c,e);a.d(0)})}};Tg.prototype.tb=function(a){var b=a.a;return Gc(b)&&this.b(b)?(this.a=new Sg({map:a.map,Za:this.Za}),i):l};function Ug(a){a=x(a)?a:{};this.a=x(a.delta)?a.delta:128}D(Ug,Jg);Ug.prototype.Ea=function(a){if("key"==a.type){var b=a.a,c=b.Ia;if(40==c||37==c||39==c||38==c){var d=a.map,e=d.a(),f=e.S(),h=e.ca(),f=f*this.a,j=0,m=0;40==c?m=-f:37==c?j=-f:39==c?j=f:m=f;c=new L(j,m);c.rotate(h);e.ia(d,c,100);b.A();a.A()}}};function Vg(a){a=x(a)?a:{};this.a=x(a.delta)?a.delta:1}D(Vg,Jg);Vg.prototype.Ea=function(a){if("key"==a.type){var b=a.a,c=b.pb;if(43==c||45==c){var d=a.map,c=43==c?this.a:-this.a;yg(d);Cg(d.a(),d,c,g,100);b.A();a.A()}}};function Wg(){this.a=0;this.c=k;this.d=this.b=g}D(Wg,Jg);Wg.prototype.Ea=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a;this.c=a.d();this.a+=c.N/3;x(this.b)||(this.b=ta());var d=Math.max(80-(ta()-this.b),0);r.clearTimeout(this.d);this.d=r.setTimeout(ra(this.e,this,b),d);a.A();c.A()}};Wg.prototype.e=function(a){var b=Rb(this.a,-1,1),c=a.a();yg(a);Cg(c,a,-b,this.c,250);this.a=0;this.c=k;this.d=this.b=g};function Xg(){this.g=l;this.i={};this.targetTouches=[]}D(Xg,Jg);function Yg(a){for(var b=a.length,c=0,d=0,e=0;ethis.s&&(this.a=i));this.c=c;var a=a.map,c=a.a(),d=hd(a.b),e=Yg(this.targetTouches);e.x-=d.x;e.y-=d.y;d=fg(a,e);this.a&&zg(c,a,c.ca()+b,d)}; $g.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();this.a&&b.rotate(a,b.ca(),g,250);tg(b,-1);return l}return i};$g.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=g,this.a=l,this.b=0,tg(a,1),i):l};function ah(){Xg.call(this)}D(ah,Xg);ah.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=hd(a.b);d=Yg(this.targetTouches);d.x-=c.x;d.y-=c.y;c=fg(a,d);Bg(e,a,e.S()*b,c)};ah.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();b.zoom(a,b.S(),g,250);tg(b,-1);return l}return i}; ah.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=g,tg(a,1),i):l};function bh(a,b){var c=x(a)?a:{},d=new N;(x(c.rotate)?c.rotate:1)&&d.push(new Rg(Lg));if(x(c.Ce)?c.Ce:1)d.push(new Kg(x(c.$e)?c.$e:1));(x(c.He)?c.He:1)&&d.push(new Zg(new Hg(-0.005,0.05,100)));(x(c.Ie)?c.Ie:1)&&d.push(new $g);(x(c.Je)?c.Je:1)&&d.push(new ah);(x(c.De)?c.De:1)&&d.push(new Pg(Mg,new Hg(-0.005,0.05,100)));if(x(c.Ee)?c.Ee:1)d.push(new Ug),d.push(new Vg);(x(c.Fe)?c.Fe:1)&&d.push(new Wg);(x(c.Ge)?c.Ge:1)&&d.push(new Tg(Ng));if(x(b))for(c=0;cb.d&&(j=b.a.length,0!==j))for(var q=Math.ceil(j/2),m=h=g,v=0;vthis.d&&!(b=this.a.U,c=b.fa.n.toString(),c in a&&a[c].contains(b.fa));)this.pop()};function ej(a,b){this.a=k;var c=b;x(c)||(c=a[0].length,c=new wi({P:c}));this.a=c;this.b=xi(c,a);this.P=c.a;this.e=k}D(ej,zi);ej.prototype.J=function(){return this.a.J(this.b)};ej.prototype.d=function(){if(this.e===k){var a=this.P,b=this.a,c=this.b,d=b.J(c),e=b.d[c],d=e+d*a,b=b.b,f,h,j,m,q,c=f=b[e];h=j=b[e+1];for(q=e+a;qf&&(f=e),mj&&(j=m);this.e=new O(c,h,f,j)}return this.e};ej.prototype.c=ca("linestring");function fj(){this.bounds=this.b=this.a=k}D(fj,zi);fj.prototype.d=function(){if(this.bounds===k){var a,b=a=Number.POSITIVE_INFINITY,c,d=c=Number.NEGATIVE_INFINITY,e=this.b,f=e.length,h,j;for(j=0;j=oc;++oc)Pd=hk[oc],Pd instanceof Pi?ph=Pd:Pd instanceof Oi&&(qh=Pd);qh&&ph&&(Wb=Ii(Od.b,qh.I(), ph.b))}}if(!x(Wb)){var ik=Od.a,rh=g,Wb={};for(oc in ik)rh=ik[oc],Cb.a(rh)===i&&(Wb[oc]=rh)}}else Wb=Od.a;Sm(Tm,Wb)}wa[Ia]=S}for(nc in ea){var jk=ea[nc],Qd={},Rd=[],kk=e.Pb,lk=g,jf=g,mk=g,kf=g,Sd=g,nk=g,Td=g,sh=g,lf=g;for(lk in jk){var mf=kf=jk[lk],th=k;if(mf.b!==k)for(var ok=mf.b.length,th=Array(ok),nf=0;nfthis.b.d;)this.b.pop();this.e=l};var Hj=128;function Ij(a,b){ki.call(this,a,b);this.f=new Qe(a.clientHeight,a.clientWidth);this.c=fc("CANVAS");this.c.height=this.f.height;this.c.width=this.f.width;this.c.className="ol-unselectable";ic(a,this.c);this.g=i;this.i=this.c.getContext("2d")}D(Ij,ki);Ij.prototype.gb=function(a){return a instanceof ui?new Yi(this,a):a instanceof vi?new Zi(this,a):a instanceof Vi?new Gj(this,a):k};Ij.prototype.kb=n("c"); Ij.prototype.Eb=function(a){if(a===k)this.g&&(ld(this.c,l),this.g=l);else{var b=a.size;this.f.width==b.width&&this.f.height==b.height||(this.c.width=b.width,this.c.height=b.height,this.f=b);var c=this.i;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.c.toFixed(0)+","+d.b.toFixed(0)+","+d.a.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);ni(a);F(a.zb,function(b){var d=a.yb[z(b)];if(d.visible)if(d.Ib){var h=oi(this,b);h.oa(a,d);b=h.M();b!==k&&(h=h.Ub(),c.setTransform(h[0], h[1],h[4],h[5],h[12],h[13]),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.$=i},this);this.g||(ld(this.c,i),this.g=i)}};var Jj=function(){if(!("HTMLCanvasElement"in r))return l;try{return fc("CANVAS").getContext("2d")!==k}catch(a){return l}}();function Kj(a,b){var c;if(x(6)){var d=Array(16);for(c=0;16>c;++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 Lj(a,b,c){bi.call(this,a,b);this.target=c}D(Lj,bi);Lj.prototype.r=function(){jc(this.target);Lj.z.r.call(this)};function Mj(a,b){var c=fc("DIV");c.className="ol-layer-image";c.style.position="absolute";Lj.call(this,a,b,c);this.b=k;this.c=Ze()}D(Mj,Lj); Mj.prototype.oa=function(a){var b=a.v,c=b.center,d=b.resolution,e=b.rotation,f=this.b,h=this.a.da(),j=a.F;!j[0]&&!j[1]&&(b=h.M(a.extent,d,b.projection),b!==k&&(h=b.a,0==h?(Oc(b,"change",this.ac,l,this),lh(b)):2==h&&(f=b)));f!==k&&(h=f.I(),j=f.e,b=Xe(),af(b),ef(b,a.size.width/2,a.size.height/2),xf(b,e),ff(b,j/d,j/d),ef(b,(h.h-c.x)/j,(c.y-h.k)/j),f!=this.b&&(c=kh(f,this),c.style.position="absolute",hc(this.target),this.target.appendChild(c),this.b=f),cf(b,this.c)||(Kj(this.target,b),$e(this.c,b)),fi(a.attributions, f.za()))};function Nj(a,b){var c=fc("DIV");c.className="ol-layer-tile";c.style.position="absolute";Lj.call(this,a,b,c);this.c=i;this.d=1;this.b={}}D(Nj,Lj); Nj.prototype.oa=function(a,b){if(b.visible){var c=a.v,d=c.projection,e=this.a.da(),f=z(e).toString(),h=e.tileGrid;h===k&&(h=Yh(d));var j=ug(h.a,c.resolution),m=h.a[j],q=c.center,v;m==c.resolution?(q=ji(q,m,a.size),v=Ue(q,m,c.rotation,a.size)):v=a.extent;var m=Th(h,v,m),s={};s[j]={};var A=ra(e.e,e,s,ii(function(a){return a!==k&&2==a.a},e,h,d)),u,t,y,w,B;for(w=m.h;w<=m.j;++w)for(B=m.l;B<=m.k;++B){y=new yf(j,w,B);u=e.b(y,h,d);t=u.a;if(0==t)hi(a.bb,e,y),t=Wh(h,y),Ef(a.mc,u,f,t);else if(1==t)di(this,u); else if(2==t){s[j][y.toString()]=u;continue}else if(3==t||4==t)continue;h.b(y,A)}A=Ga(Wa(s),Number);Sa(A);var d={},E;for(u=0;uy&&ic(this.target,f.target)}else{if(!a.F[0]&&!a.F[1]){t= Th(f.c,v,f.c.a[f.d.n]);y=[];B=w=g;for(B in f.b)w=f.b[B],t.contains(w.fa)||y.push(w);t=g;for(t=0;t=a.J()){for(var a=this.a,d=0;d>1,a[d].Q>c.Q)a[b]=a[d],b=d;else break;a[b]=c}p=Xj.prototype; p.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)La(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,h=2*a+2,f=he.Q)break;b[a]=b[f];a=f}b[a]=e}return c.U}};p.W=function(){for(var a=this.a,b=[],c=a.length,d=0;dc;++c)d=b.remove(),Hk(a,d)},b,t));H?(this.b=A,this.w=u):(this.w=this.b=k, a.$=i)}gi(a.ab,f,m,A);ai(f,m,s,j);ei(a,f);af(this.d);ef(this.d,(v.x-u.h)/(u.j-u.h),(v.y-u.l)/(u.k-u.l));xf(this.d,d.rotation);ff(this.d,a.size.width*d.resolution/(u.j-u.h),a.size.height*d.resolution/(u.k-u.l));ef(this.d,-0.5,-0.5)};var Ik=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function Jk(a,b){var c,d,e=Ik.length;for(d=0;d>1)-1;0<=b;b--)Gf(a,b);for(var a=this.G,m;0b?(d="\u2032",a*=60):d="\u00b0":"imperial"==this.c?0.9144>b?(d="in",a/=0.0254):1609.344>b?(d="ft",a/=0.3048):(d="mi",a/=1609.344):"nautical"==this.c?(a/=1852,d="nm"):"metric"==this.c?1>b?(d="mm",a*=1E3):1E3>b?d="m":(d="km",a/=1E3):"us"==this.c&&(0.9144>b?(d="in",a*=39.37):1609.344>b?(d="ft",a/=0.30480061):(d="mi",a/=1609.3472));for(var b=3*Math.floor(Math.log(this.i*a)/Math.log(10)),e,f;;){e=cl[b%3]*Math.pow(10,Math.floor(b/3));f=Math.round(e/a);if(f>=this.i)break;++b}e=e+d;this.t!=e&& (this.t=this.g.innerHTML=e);this.B!=f&&(this.g.style.width=f+"px",this.B=f);this.f||(ld(this.s,i),this.f=i)}};bl.prototype.a=function(a){this.e!==k&&(F(this.e,J),this.e=k);bl.z.a.call(this,a);a!==k&&(this.e=[I(a,"postrender",this.w,l,this)])};function dl(a){tc.call(this);this.b=a;this.a=[]}D(dl,tc);var el=[];function fl(a,b,c,d,e){ha(c)||(el[0]=c,c=el);for(var f=0;fthis.Sc)if(K(this,new ll("start",this,a.clientX,a.clientY,a)))this.Da=i;else{this.hc||this.ib(a);return}}c=pl(this,b,c);b=c.x;c=c.y;this.Da&&K(this,new ll("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(ql(this,a,b,c),a.A())}}; function pl(a,b,c){var d=mc(Vb(a.c)),b=b+(d.x-a.e.x),c=c+(d.y-a.e.y);a.e=d;a.O+=b;a.N+=c;b=ml(a,a.O);a=nl(a,a.N);return new Tb(b,a)}p.Ke=function(a){var b=pl(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;ql(this,a,b.x,b.y)};function ql(a,b,c,d){a.oc&&jl(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";K(a,new ll("drag",a,b.clientX,b.clientY,b,c,d))} function ml(a,b){var c=a.b,d=!isNaN(c.left)?c.left:k,c=!isNaN(c.width)?c.width:0;return Math.min(d!=k?d+c:Infinity,Math.max(d!=k?d:-Infinity,b))}function nl(a,b){var c=a.b,d=!isNaN(c.top)?c.top:k,c=!isNaN(c.height)?c.height:0;return Math.min(d!=k?d+c:Infinity,Math.max(d!=k?d:-Infinity,b))}function ll(a,b,c,d,e,f,h,j){zc.call(this,a);this.clientX=c;this.clientY=d;this.d=e;this.left=x(f)?f:b.O;this.top=x(h)?h:b.N;this.c=b;this.a=!!j}D(ll,zc);function rl(a){this.s=x(a.maxResolution)?a.maxResolution:156543.0339;this.g=x(a.minResolution)?a.minResolution:0.5971642833948135;this.t=this.s-this.g;this.d=sl;this.e=this.f=k;var b=dc("DIV","ol-zoomslider ol-unselectable",dc("DIV","ol-zoomslider-thumb ol-unselectable"));this.e!==k&&(F(this.e,J),this.e=k);var c=new hl(b.childNodes[0]);this.e=[I(c,["drag","end"],this.G,g,this)];this.i=c;I(b,["touchend","click"],this.w,l,this);Dg.call(this,{element:b,map:a.map})}D(rl,Dg);var sl=0; rl.prototype.a=function(a){rl.z.a.call(this,a);this.c=a.a().S();this.f!==k&&(F(this.f,J),this.f=k);this.b!==k&&(this.f=[I(this.b,"postrender",this.B,g,this)]);var b=this.element,a=b.firstElementChild!=g?b.firstElementChild:kc(b.firstChild);var c=$b(b),d=G&&b.currentStyle;d&&lc(Vb(c))&&"auto"!=d.width&&"auto"!=d.height&&!d.boxSizing?(c=qd(b,d.width,"width","pixelWidth"),b=qd(b,d.height,"height","pixelHeight"),b=new Ub(c,b)):(d=new Ub(b.offsetWidth,b.offsetHeight),c=od(b,"padding"),b=pd(b),b=new Ub(d.width- b.left-c.left-c.right-b.right,d.height-b.top-c.top-c.bottom-b.bottom));var d=fd(a),c=jd(a),d=new Zc(d.x,d.y,c.width,c.height),c=od(a,"margin"),e=pd(a),a=b.width-c.left-c.right-e.left-e.right-d.width,d=b.height-c.top-c.bottom-e.top-e.bottom-d.height;b.width>b.height?(this.d=1,a=new Zc(0,0,a,0)):(this.d=sl,a=new Zc(0,0,0,d));this.i.b=a||new Zc(NaN,NaN,NaN,NaN);tl(this,this.c)};rl.prototype.B=function(a){a=a.c.v.resolution;a!==this.c&&(this.c=a,tl(this,a))};rl.prototype.w=function(){}; function tl(a,b){var c=(Rb(b,a.g,a.s)-a.g)/a.t,d=a.i,e=a.element.firstElementChild!=g?a.element.firstElementChild:kc(a.element.firstChild);1==a.d?bd(e,d.b.left+d.b.width*c):bd(e,d.b.left,d.b.top+d.b.height*c)}rl.prototype.G=function(a){var b=this.b,c=this.i.b,d=0,d=1===this.d?(a.left-c.left)/c.width:(a.top-c.top)/c.height,a=Rb(d,0,1),a=this.g+this.t*a;a!==this.c&&(this.c=a,b.a().b(a))};function ul(){this.a={}}D(ul,Jg);ul.prototype.b=function(a,b){var c;for(c=0;cthis.a.d};km.prototype.Pa=function(a){this.a.Pa(a)};km.prototype.b=function(a,b,c){var d=a.toString();if(aj(this.a,d))return bj(this.a,d);b=this.ja(a,b,c);a=new jm(a,x(b)?0:4,x(b)?b:"",this.B);cj(this.a,d,a);return a}; km.prototype.u=function(a){aj(this.a,a)&&bj(this.a,a)};function lm(a){var b=Array(a.maxZoom+1),c,d=2*eh/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);Rh.call(this,{origin:new L(-eh,eh),resolutions:b,tileSize:new Qe(256,256)})}D(lm,Rh);lm.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 Af(d,e,d,e);if(b.call(c,a,f))break}};function mm(a){km.call(this,{opaque:i,projection:Zf("EPSG:3857")});this.Dd=x(a.culture)?a.culture:"en-us";this.i=l;var b=new Cd("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new bm(b),a={include:"ImageryProviders",key:a.key},c=ra(this.t,this),a=a||k,d="_"+(cm++).toString(36)+ta().toString(36);r._callbacks_||(r._callbacks_={});var e=b.b.V();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&be(e,f,a[f]);c&&(r._callbacks_[d]=function(a){dm(d,i);c.apply(g,arguments)},be(e, b.a,"_callbacks_."+d));f=Wl(e.toString(),{timeout:b.Lb,wc:i});f.a.push([k,function(){dm(d,l)},g]);f.ya&&Sl(f)}D(mm,km); mm.prototype.t=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new lm({maxZoom:d,tileSize:new Qe(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.ja=hm(function(a){if(a.ne||b<=e?k:new yf(a.n,Sb(a.x,b),e)},fm(Ga(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.Dd);return function(a){return a===k?g:c.replace("{quadkey}",zf(a))}})));var f=Pf(Zf("EPSG:4326"),this.c);this.f= Ga(b.imageryProviders,function(a){var b=a.attribution,c={};F(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new O(a[1],a[0],a[3],a[2])).transform(f),h,j;for(h=b;h<=d;++h)j=h.toString(),b=Th(e,a,e.a[h]),j in c?c[j].push(b):c[j]=[b]});return new Bf(b,c)});this.i=i;K(this,"load")};mm.prototype.d=n("i");function nm(a,b){Cf.call(this,a,2);this.e=a;this.d=Xh(b,a.n);this.c={}}D(nm,Cf);nm.prototype.M=function(a){a=x(a)?z(a):-1;if(a in this.c)return this.c[a];var b=this.d,c=fc("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.c[a]=c}; function om(a){$h.call(this,{extent:a.extent,opaque:l,projection:a.projection,tileGrid:a.tileGrid});this.a=new dj}D(om,$h);om.prototype.g=function(){return this.a.J()>this.a.d};om.prototype.Pa=function(a){this.a.Pa(a)};om.prototype.b=function(a){var b=a.toString();if(aj(this.a,b))return bj(this.a,b);a=new nm(a,this.tileGrid);cj(this.a,b,a);return a};function pm(a){var b=a.projection||Zf("EPSG:3857"),c=gm;x(a.ja)?c=a.ja:x(a.urls)?c=fm(Ga(a.urls,em)):x(a.url)&&(c=im(a.url),c=fm(Ga(c,em)));var d=new lm({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?hm(function(b){if(a.maxZoomj||c<=j)return k;c=Sb(b.x,c);return!Sh(d,new yf(b.n,c,b.y)).ha(e)?k:new yf(b.n,c,j)},c):hm(function(b){if(a.maxZoomd||c<=d?k:new yf(b.n,Sb(b.x,c),d)},c);km.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin, extent:a.extent,projection:b,tileGrid:d,ja:c})}D(pm,km);function qm(){pm.call(this,{attributions:[new Bf('Tiles Courtesy of MapQuest '),new Bf('Data © OpenStreetMap contributors, CC BY-SA')],opaque:i,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}D(qm,pm); function rm(){pm.call(this,{attributions:[new Bf('Tiles Courtesy of MapQuest '),new Bf("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,opaque:i,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}D(rm,pm);function sm(){pm.call(this,{attributions:[new Bf('© OpenStreetMap contributors, CC BY-SA')],opaque:i,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}D(sm,pm);function tm(a){si.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Ua:x(a.url)?qi(a.url,a.params):ri});this.b=k;this.g=x(a.ratio)?a.ratio:1.5}D(tm,si); tm.prototype.M=function(a,b,c){this.a===k||(b=this.a[ug(this.a,b)]);var d=this.b;if(d!==k&&d.e==b&&d.I().yc(a))return d;var d=a=new O(a.h,a.l,a.j,a.k),e=this.g,f=d.ma()/2*(e-1),e=d.ga()/2*(e-1);d.h-=f;d.l-=e;d.j+=f;d.k+=e;return this.b=ti(this,a,b,new Qe(a.ma()/b,a.ga()/b),c)};var um={terrain:{aa:"jpg",opaque:i},"terrain-background":{aa:"jpg",opaque:i},"terrain-labels":{aa:"png",opaque:l},"terrain-lines":{aa:"png",opaque:l},"toner-background":{aa:"png",opaque:i},toner:{aa:"png",opaque:i},"toner-hybrid":{aa:"png",opaque:l},"toner-labels":{aa:"png",opaque:l},"toner-lines":{aa:"png",opaque:l},"toner-lite":{aa:"png",opaque:i},watercolor:{aa:"jpg",opaque:i}},vm={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}},wm=[new Bf('Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.')]; function xm(a){var b=a.layer.indexOf("-"),b=-1==b?a.layer:a.layer.slice(0,b),c=um[a.layer];pm.call(this,{attributions:wm,maxZoom:vm[b].maxZoom,opaque:c.opaque,url:x(a.url)?a.url:"http://{a-d}.tile.stamen.com/"+a.layer+"/{z}/{x}/{y}."+c.aa})}D(xm,pm);function ym(a){var b=a.url,c=a.imageExtent,d=a.imageSize,e=c.ga()/d.height,f=Zf(a.projection);si.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Ua:function(){return b},resolutions:[e]});this.b=ti(this,c,e,d,f)}D(ym,si);ym.prototype.M=function(a){return a.ha(this.b.I())?this.b:k};var zm=[];C("grid",function(a){zm.push(a)});function Am(a){km.call(this,{projection:Zf("EPSG:3857")});this.i=l;a=this.t=Wl(a.uri,{wc:i});a.a.push([this.w,k,this]);a.ya&&Sl(a)}D(Am,km); Am.prototype.w=function(){var a=zm.pop(),b=Zf("EPSG:4326"),c,d;x(a.bounds)?(c=a.bounds,c=new O(c[0],c[1],c[2],c[3]),this.s=d=c.transform(Pf(b,this.c))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,h=new lm({maxZoom:f});this.tileGrid=h;this.ja=hm(function(a){if(a.nc||b<=c)return k;b=Sb(a.x,b);return d!==k&&!Sh(h,new yf(a.n,b,a.y)).ha(d)?k:new yf(a.n,b,c)},fm(Ga(a.tiles,em)));if(x(a.attribution)){b=d===k?b.I():d;c={};var j,m;for(j=e;j<=f;++j)m=j.toString(), c[m]=[Th(h,b,h.a[j])];this.f=[new Bf(a.attribution,c)]}this.i=i;K(this,"load")};Am.prototype.d=n("i");function Bm(a){var b=gm,c=a.urls;!x(c)&&x(a.url)&&(c=im(a.url));x(c)&&(b=Ga(c,function(b){var c=a.params;return function(a,d,m){return a===k?g:pi(b,c,Sh(d,a),Xh(d,a.n),m)}}),b=fm(b));var d=a.extent;km.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:a.tileGrid,opaque:!(x(a.params.TRANSPARENT)?a.params.TRANSPARENT:1),projection:a.projection,ja:hm(function(a,b,c){if(b.nb().length<=a.n)return k;var j=a.x,m=Sh(b,a),q=c.I();d=x(d)?d:q;d!==k&&(c.Vb&&d.h===q.h&&d.j===q.j)&& (c=Math.ceil((d.j-d.h)/(m.j-m.h)),j=Sb(j,c),m=Sh(b,new yf(a.n,j,a.y)));return!m.ha(d)?k:new yf(a.n,j,a.y)},b)})}D(Bm,km);function Cm(a){this.g=a.matrixIds;Rh.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}D(Cm,Rh);function Dm(a){var b=x(a.version)?a.version:"1.0.0",c=x(a.format)?a.format:"image/jpeg",d=x(a.requestEncoding)?a.requestEncoding:"KVP",e=a.tileGrid,f={Layer:a.layer,style:a.style,TileMatrixSet:a.matrixSet};$a(f,a.dimensions||{});var h;"KVP"==d&&(h={Service:"WMTS",Request:"GetTile",Version:b,Format:c,TileMatrix:"{TileMatrix}",TileRow:"{TileRow}",TileCol:"{TileCol}"},$a(h,f));b=gm;c=a.urls;!x(c)&&x(a.url)&&(c=im(a.url));x(c)&&(b=fm(Ga(c,function(a){x(h)&&(a=zd(Bd([a],h)));var b=a;return function(a){if(a!== k){a={TileMatrix:e.g[a.n],TileCol:a.x,TileRow:a.y};"KVP"!=d&&$a(a,f);var c=b,h;for(h in a)c=c.replace("{"+h+"}",a[h]).replace("%7B"+h+"%7D",a[h]);return c}}})));b=hm(function(b,c,d){if(c.nb().length<=b.n)return k;var e=b.x,f=-b.y-1,h=Sh(c,b),u=d.I(),t=x(a.extent)?a.extent:u;t!==k&&(d.Vb&&t.h===u.h&&t.j===u.j)&&(d=Math.ceil((t.j-t.h)/(h.j-h.h)),e=Sb(e,d),h=Sh(c,new yf(b.n,e,b.y)));return!h.ha(t)?k:new yf(b.n,e,f)},b);km.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent, projection:a.projection,tileGrid:e,ja:b})}D(Dm,km);C("goog.require",da);function Em(a){Wk.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}D(Em,Wk);C("ol.AnchoredElement",Em);C("ol.AnchoredElementPositioning",Vk);Vk.BOTTOM_LEFT="bottom-left";Vk.BOTTOM_RIGHT="bottom-right";Vk.TOP_LEFT="top-left";Vk.TOP_RIGHT="top-right";C("ol.Attribution",Bf);C("ol.Collection",N);N.prototype.clear=N.prototype.clear;N.prototype.forEach=N.prototype.forEach;N.prototype.getAt=N.prototype.Hd;N.prototype.getLength=N.prototype.mb; N.prototype.insertAt=N.prototype.ub;N.prototype.pop=N.prototype.pop;N.prototype.push=N.prototype.push;N.prototype.remove=N.prototype.remove;N.prototype.removeAt=N.prototype.jc;N.prototype.setAt=N.prototype.Ne;C("ol.Coordinate",L);C("ol.Coordinate.createStringXY",function(a){return function(b){return wd(b,a)}});C("ol.Coordinate.fromProjectedArray",xd);C("ol.Coordinate.toStringHDMS",function(a){return x(a)?vd(a.y,"NS")+" "+vd(a.x,"EW"):""});C("ol.Coordinate.toStringXY",wd);C("ol.Expression",mj); C("ol.Extent",O);O.prototype.containsCoordinate=O.prototype.Bd;O.prototype.containsExtent=O.prototype.yc;O.prototype.getBottomLeft=O.prototype.Gc;O.prototype.getBottomRight=O.prototype.Jd;O.prototype.getCenter=O.prototype.ad;O.prototype.getHeight=O.prototype.ga;O.prototype.getTopLeft=O.prototype.ob;O.prototype.getTopRight=O.prototype.Nd;O.prototype.getWidth=O.prototype.ma;O.prototype.transform=O.prototype.transform;C("ol.Feature",Bi);Bi.prototype.get=Bi.prototype.q;Bi.prototype.getAttributes=Bi.prototype.Qa; Bi.prototype.getGeometry=Bi.prototype.sa;Bi.prototype.set=Bi.prototype.p;Bi.prototype.setGeometry=Bi.prototype.gd;Bi.prototype.setSymbolizers=Bi.prototype.Pe;C("ol.Geolocation",W);function Fm(a){V.call(this,{controls:a.controls,interactions:a.interactions,layers:a.layers,renderer:a.renderer,renderers:a.renderers,target:a.target,view:a.view})}D(Fm,V);C("ol.Map",Fm);V.prototype.addLayer=V.prototype.ze;V.prototype.addPreRenderFunction=V.prototype.ra;V.prototype.addPreRenderFunctions=V.prototype.wd; V.prototype.getInteractions=V.prototype.xa;V.prototype.getRenderer=V.prototype.Pb;V.prototype.removeLayer=V.prototype.Ae;eg.prototype.getCoordinate=eg.prototype.d;C("ol.Object",M);M.prototype.bindTo=M.prototype.xd;M.prototype.changed=M.prototype.Ad;M.prototype.get=M.prototype.q;M.prototype.notify=M.prototype.Yc;M.prototype.set=M.prototype.p;M.prototype.setOptions=M.prototype.hd;M.prototype.setValues=M.prototype.Db;M.prototype.unbind=M.prototype.nc;M.prototype.unbindAll=M.prototype.Ye; function Gm(a){Nf.call(this,{axisOrientation:a.axisOrientation,code:a.code,extent:a.extent,global:a.global,units:a.units})}D(Gm,Nf);C("ol.Projection",Gm);Nf.prototype.getAxisOrientation=Nf.prototype.Id;Nf.prototype.getCode=Nf.prototype.Ld;Nf.prototype.getExtent=Nf.prototype.I;Nf.prototype.getMetersPerUnit=Nf.prototype.Hc;Nf.prototype.getPointResolution=Nf.prototype.c;Nf.prototype.getUnits=Nf.prototype.Od;Nf.prototype.isGlobal=Nf.prototype.ve;C("ol.ProjectionUnits",Lf);Lf.DEGREES="degrees"; Lf.FEET="ft";Lf.METERS="m";C("ol.RendererHint",Rk);Rk.CANVAS="canvas";Rk.DOM="dom";Rk.WEBGL="webgl";C("ol.RendererHints",Qk);Qk.createFromQueryData=Qk.Cd;function Hm(a){T.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})}D(Hm,T);C("ol.View2D",Hm);T.prototype.fitExtent=T.prototype.f;T.prototype.getView2D=T.prototype.g; C("ol.animation",xg);xg.bounce=xg.Rb;xg.pan=xg.ia;xg.rotate=xg.rotate;xg.zoom=xg.zoom;function Im(a){Eg.call(this,{map:a.map,target:a.target})}D(Im,Eg);C("ol.control.Attribution",Im);Eg.prototype.setMap=Eg.prototype.a;function Jm(a){Zk.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}D(Jm,Zk);C("ol.control.MousePosition",Jm);Zk.prototype.setMap=Zk.prototype.a; function Km(a){bl.call(this,{map:a.map,minWidth:a.minWidth,target:a.target,units:a.units})}D(Km,bl);C("ol.control.ScaleLine",Km);bl.prototype.setMap=bl.prototype.a;C("ol.control.ScaleLineUnits",al);al.DEGREES="degrees";al.IMPERIAL="imperial";al.METRIC="metric";al.NAUTICAL="nautical";al.US="us";function Lm(a){Fg.call(this,{delta:a.delta,map:a.map,target:a.target})}D(Lm,Fg);C("ol.control.Zoom",Lm);Fg.prototype.setMap=Fg.prototype.a; function Mm(a){rl.call(this,{map:a.map,maxResolution:a.maxResolution,minResolution:a.minResolution})}D(Mm,rl);C("ol.control.ZoomSlider",Mm);C("ol.control.defaults",Gg);C("ol.easing",wg);wg.bounce=wg.Rb;wg.easeIn=wg.Ed;wg.easeOut=wg.Oa;wg.elastic=wg.Fd;wg.inAndOut=wg.Ja;wg.linear=wg.Uc;wg.upAndDown=wg.pd;C("ol.filter.Filter",Ji);C("ol.filter.Geometry",Pi);C("ol.filter.Logical",Qi);C("ol.filter.LogicalOperator",Ti);Ti.AND=Ri;Ti.OR=Si;C("ol.geom.LineString",ej);C("ol.geom.MultiLineString",gj); C("ol.geom.MultiPoint",ij);C("ol.geom.MultiPolygon",lj);C("ol.geom.Point",hj);C("ol.geom.Polygon",kj);C("ol.interaction.Keyboard",ul);ul.prototype.addCallback=ul.prototype.b;C("ol.interaction.defaults",bh);function Nm(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})}D(Nm,ui);C("ol.layer.ImageLayer",Nm); function Om(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})}D(Om,vi);C("ol.layer.TileLayer",Om);function Pm(a){Vi.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}D(Pm,Vi);C("ol.layer.Vector",Pm);Vi.prototype.parseFeatures=Vi.prototype.xa;C("ol.parser.GeoJSON",wl);wl.prototype.read=wl.prototype.pa; C("ol.parser.ogc.WMSCapabilities",Ll);Ll.prototype.read=Ll.prototype.pa;C("ol.parser.ogc.WMTSCapabilities",Pl);Pl.prototype.read=Pl.prototype.pa;C("ol.projection.addProjection",Vf);C("ol.projection.configureProj4jsProjection",function(a){return Qf(a)});C("ol.projection.get",Zf);C("ol.projection.getTransform",$f);C("ol.projection.getTransformFromProjections",Pf);C("ol.projection.transform",function(a,b,c){b=$f(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])}); C("ol.projection.transformWithProjections",function(a,b,c){b=Pf(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});Ij.prototype.getCanvas=Ij.prototype.kb;function Qm(a){mm.call(this,{culture:a.culture,key:a.key,style:a.style})}D(Qm,mm);C("ol.source.BingMaps",Qm);function Xm(a){om.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}D(Xm,om);C("ol.source.DebugTileSource",Xm);C("ol.source.MapQuestOSM",qm);C("ol.source.MapQuestOpenAerial",rm);C("ol.source.OpenStreetMap",sm); function Ym(a){tm.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,params:a.params,projection:a.projection,ratio:a.ratio,resolutions:a.resolutions,url:a.url})}D(Ym,tm);C("ol.source.SingleImageWMS",Ym);function Zm(a){xm.call(this,{layer:a.layer,maxZoom:a.maxZoom,minZoom:a.minZoom,opaque:a.opaque,url:a.url})}D(Zm,xm);C("ol.source.Stamen",Zm); function $m(a){ym.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,imageExtent:a.imageExtent,imageSize:a.imageSize,projection:a.projection,url:a.url})}D($m,ym);C("ol.source.StaticImage",$m);function an(a){Am.call(this,{uri:a.uri})}D(an,Am);C("ol.source.TileJSON",an);function bn(a){Bm.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,maxZoom:a.maxZoom,params:a.params,projection:a.projection,tileGrid:a.tileGrid,url:a.url,urls:a.urls})} D(bn,Bm);C("ol.source.TiledWMS",bn);function cn(a){bg.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection})}D(cn,Ci);C("ol.source.Vector",cn);function dn(a){Dm.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,dimensions:a.dimensions,extent:a.extent,format:a.format,layer:a.layer,matrixSet:a.matrixSet,maxZoom:a.maxZoom,projection:a.projection,requestEncoding:a.requestEncoding,style:a.style,tileGrid:a.tileGrid,url:a.url,urls:a.urls})}D(dn,Dm); C("ol.source.WMTS",dn); C("ol.source.WMTS.optionsFromCapabilities",function(a,b){var c;c=a.contents.layers;var d=Ja(c,function(a){return a.identifier==b},g);c=0>d?k:ja(c)?c.charAt(d):c[d];var d=c.tileMatrixSetLinks[0].tileMatrixSet,e=c.formats[0],f=Ja(c.styles,function(a){return a.isDefault});0>f&&(f=0);var f=c.styles[f].identifier,h={};F(c.dimensions,function(a){var b=a.identifier,c=a["default"];x(c)||(c=a.values[0]);h[b]=c});var j=a.contents.tileMatrixSets[d],m,q=[],v=[],s=[],A=[],u=Zf(j.supportedCRS).Hc();F(j.matrixIds, function(a){v.push(a.identifier);s.push(a.topLeftCorner);q.push(2.8E-4*a.scaleDenominator/u);A.push(new Qe(a.tileWidth,a.tileHeight))});m=new Cm({origins:s,resolutions:q,matrixIds:v,tileSizes:A});var j=Zf(j.supportedCRS),t=a.operationsMetadata.GetTile.dcp.http.get,y=Wa(t[0].constraints.GetEncoding.allowedValues)[0],w;switch(y){case "REST":w=c.resourceUrls.tile[e];break;case "KVP":w=[],F(t,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty("KVP")&&w.push(a.url)})}return{urls:w,layer:b, matrixSet:d,format:e,projection:j,requestEncoding:y,tileGrid:m,style:f,dimensions:h}});function en(a){pj.call(this,{height:a.height,opacity:a.opacity,rotation:a.rotation,url:a.url,width:a.width})}D(en,pj);C("ol.style.Icon",en);C("ol.style.IconType",{});function fn(a){sj.call(this,{opacity:a.opacity,strokeColor:a.strokeColor,strokeWidth:a.strokeWidth})}D(fn,sj);C("ol.style.Line",fn); function gn(a){vj.call(this,{fillColor:a.fillColor,opacity:a.opacity,strokeColor:a.strokeColor,strokeWidth:a.strokeWidth})}D(gn,vj);C("ol.style.Polygon",gn);function hn(a){Mi.call(this,{filter:a.filter,symbolizers:a.symbolizers})}D(hn,Mi);C("ol.style.Rule",hn);function jn(a){zj.call(this,{fillColor:a.fillColor,opacity:a.opacity,size:a.size,strokeColor:a.strokeColor,strokeWidth:a.strokeWidth,type:a.type})}D(jn,zj);C("ol.style.Shape",jn);C("ol.style.ShapeType",xj);xj.CIRCLE="circle"; function kn(a){Ni.call(this,{rules:a.rules})}D(kn,Ni);C("ol.style.Style",kn);function ln(a){Rh.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}D(ln,Rh);C("ol.tilegrid.TileGrid",ln);function mn(a){Cm.call(this,{matrixIds:a.matrixIds,origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}D(mn,Cm);C("ol.tilegrid.WMTS",mn);function nn(a){lm.call(this,{maxZoom:a.maxZoom})}D(nn,lm); C("ol.tilegrid.XYZ",nn);xg.cf={};xg.Df={};xg.Ef={};xg.Nf={};})();