// OpenLayers 3. See http://openlayers.org/ // License: https://raw.githubusercontent.com/openlayers/ol3/master/LICENSE.md // Version: v3.3.0-49-g7512e78 (function (root, factory) { if (typeof define === "function" && define.amd) { define([], factory); } else if (typeof exports === "object") { module.exports = factory(); } else { root.ol = factory(); } }(this, function () { var OPENLAYERS = {}; var l,aa=aa||{},ba=this;function m(b){return void 0!==b}function t(b,c,d){b=b.split(".");d=d||ba;b[0]in d||!d.execScript||d.execScript("var "+b[0]);for(var e;b.length&&(e=b.shift());)!b.length&&m(c)?d[e]=c:d[e]?d=d[e]:d=d[e]={}}function ca(){}function da(b){b.Pa=function(){return b.yf?b.yf:b.yf=new b}} function ea(b){var c=typeof b;if("object"==c)if(b){if(b instanceof Array)return"array";if(b instanceof Object)return c;var d=Object.prototype.toString.call(b);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof b.length&&"undefined"!=typeof b.splice&&"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof b.call&&"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==c&&"undefined"==typeof b.call)return"object";return c}function fa(b){return null===b}function ga(b){return"array"==ea(b)}function ha(b){var c=ea(b);return"array"==c||"object"==c&&"number"==typeof b.length}function ia(b){return"string"==typeof b}function ja(b){return"number"==typeof b}function ka(b){return"function"==ea(b)}function la(b){var c=typeof b;return"object"==c&&null!=b||"function"==c}function ma(b){return b[na]||(b[na]=++oa)} var na="closure_uid_"+(1E9*Math.random()>>>0),oa=0;function pa(b,c,d){return b.call.apply(b.bind,arguments)}function qa(b,c,d){if(!b)throw Error();if(2")&&(b=b.replace(Fa,">"));-1!=b.indexOf('"')&&(b=b.replace(Ga,"""));-1!=b.indexOf("'")&&(b=b.replace(Ha,"'"));-1!=b.indexOf("\x00")&&(b=b.replace(Ia,"�"));return b}var Da=/&/g,Ea=//g,Ga=/"/g,Ha=/'/g,Ia=/\x00/g,Ca=/[\x00&<>"']/; function La(b){b=m(void 0)?b.toFixed(void 0):String(b);var c=b.indexOf(".");-1==c&&(c=b.length);c=Math.max(0,2-c);return Array(c+1).join("0")+b} function Ma(b,c){for(var d=0,e=Aa(String(b)).split("."),f=Aa(String(c)).split("."),g=Math.max(e.length,f.length),h=0;0==d&&hc?1:0};var Oa=Array.prototype;function Pa(b,c){return Oa.indexOf.call(b,c,void 0)}function Qa(b,c,d){Oa.forEach.call(b,c,d)}function Ra(b,c){return Oa.filter.call(b,c,void 0)}function Sa(b,c,d){return Oa.map.call(b,c,d)}function Ta(b,c){return Oa.some.call(b,c,void 0)}function Ua(b,c){var d=Va(b,c,void 0);return 0>d?null:ia(b)?b.charAt(d):b[d]}function Va(b,c,d){for(var e=b.length,f=ia(b)?b.split(""):b,g=0;g=arguments.length?Oa.slice.call(b,c):Oa.slice.call(b,c,d)}function db(b,c){b.sort(c||eb)}function fb(b,c){if(!ha(b)||!ha(c)||b.length!=c.length)return!1;for(var d=b.length,e=gb,f=0;fc?1:bparseFloat(b))?String(c):b}(),Ob={};function Qb(b){return Ob[b]||(Ob[b]=0<=Ma(Nb,b))}var Rb=ba.document,Sb=Rb&&Gb?Mb()||("CSS1Compat"==Rb.compatMode?parseInt(Nb,10):5):void 0;var Tb="https:"===ba.location.protocol,Vb=Gb&&!Qb("9.0")&&""!==Nb;function Wb(b,c,d){return Math.min(Math.max(b,c),d)}function Xb(b,c){var d=b%c;return 0>d*c?d+c:d}function Yb(b,c,d){return b+d*(c-b)}function Zb(b){return b*Math.PI/180};function $b(b){return function(c){if(m(c))return[Wb(c[0],b[0],b[2]),Wb(c[1],b[1],b[3])]}}function ac(b){return b};function bc(b,c,d){var e=b.length;if(b[0]<=c)return 0;if(!(c<=b[e-1]))if(0d)for(d=1;dg?1:.5,e=Math.floor(Math.log(c/e)/Math.log(b)+g),f=Math.max(e+f,0),m(d)&&(f=Math.min(f,d)),c/Math.pow(b,f)}};function ec(b){if(m(b))return 0}function fc(b,c){if(m(b))return b+c}function gc(b){var c=2*Math.PI/b;return function(b,e){if(m(b))return b=Math.floor((b+e)/c+.5)*c}}function hc(){var b=Zb(5);return function(c,d){if(m(c))return Math.abs(c+d)<=b?0:c+d}};function ic(b,c,d){this.center=b;this.resolution=c;this.rotation=d};var jc=!Gb||Gb&&9<=Sb,kc=!Gb||Gb&&9<=Sb,lc=Gb&&!Qb("9");!Ib||Qb("528");Hb&&Qb("1.9b")||Gb&&Qb("8")||Fb&&Qb("9.5")||Ib&&Qb("528");Hb&&!Qb("8")||Gb&&Qb("9");function mc(){0!=nc&&(oc[ma(this)]=this);this.oa=this.oa;this.pa=this.pa}var nc=0,oc={};mc.prototype.oa=!1;mc.prototype.Jc=function(){if(!this.oa&&(this.oa=!0,this.P(),0!=nc)){var b=ma(this);delete oc[b]}};function pc(b,c){var d=sa(qc,c);b.oa?d.call(void 0):(b.pa||(b.pa=[]),b.pa.push(m(void 0)?ra(d,void 0):d))}mc.prototype.P=function(){if(this.pa)for(;this.pa.length;)this.pa.shift()()};function qc(b){b&&"function"==typeof b.Jc&&b.Jc()};function rc(b,c){this.type=b;this.b=this.target=c;this.e=!1;this.pg=!0}rc.prototype.pb=function(){this.e=!0};rc.prototype.preventDefault=function(){this.pg=!1};function tc(b){b.pb()}function uc(b){b.preventDefault()};var vc=Gb?"focusout":"DOMFocusOut";function wc(b){wc[" "](b);return b}wc[" "]=ca;function xc(b,c){rc.call(this,b?b.type:"");this.relatedTarget=this.b=this.target=null;this.i=this.f=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.k=this.c=this.d=this.n=!1;this.state=null;this.g=!1;this.a=null;b&&yc(this,b,c)}v(xc,rc);var zc=[1,4,2]; function yc(b,c,d){b.a=c;var e=b.type=c.type;b.target=c.target||c.srcElement;b.b=d;if(d=c.relatedTarget){if(Hb){var f;a:{try{wc(d.nodeName);f=!0;break a}catch(g){}f=!1}f||(d=null)}}else"mouseover"==e?d=c.fromElement:"mouseout"==e&&(d=c.toElement);b.relatedTarget=d;Object.defineProperties?Object.defineProperties(b,{offsetX:{configurable:!0,enumerable:!0,get:b.pf,set:b.am},offsetY:{configurable:!0,enumerable:!0,get:b.qf,set:b.bm}}):(b.offsetX=b.pf(),b.offsetY=b.qf());b.clientX=void 0!==c.clientX?c.clientX: c.pageX;b.clientY=void 0!==c.clientY?c.clientY:c.pageY;b.screenX=c.screenX||0;b.screenY=c.screenY||0;b.button=c.button;b.f=c.keyCode||0;b.i=c.charCode||("keypress"==e?c.keyCode:0);b.n=c.ctrlKey;b.d=c.altKey;b.c=c.shiftKey;b.k=c.metaKey;b.g=Jb?c.metaKey:c.ctrlKey;b.state=c.state;c.defaultPrevented&&b.preventDefault()}function Ac(b){return(jc?0==b.a.button:"click"==b.type?!0:!!(b.a.button&zc[0]))&&!(Ib&&Jb&&b.n)}l=xc.prototype; l.pb=function(){xc.T.pb.call(this);this.a.stopPropagation?this.a.stopPropagation():this.a.cancelBubble=!0};l.preventDefault=function(){xc.T.preventDefault.call(this);var b=this.a;if(b.preventDefault)b.preventDefault();else if(b.returnValue=!1,lc)try{if(b.ctrlKey||112<=b.keyCode&&123>=b.keyCode)b.keyCode=-1}catch(c){}};l.Ah=function(){return this.a};l.pf=function(){return Ib||void 0!==this.a.offsetX?this.a.offsetX:this.a.layerX}; l.am=function(b){Object.defineProperties(this,{offsetX:{writable:!0,enumerable:!0,configurable:!0,value:b}})};l.qf=function(){return Ib||void 0!==this.a.offsetY?this.a.offsetY:this.a.layerY};l.bm=function(b){Object.defineProperties(this,{offsetY:{writable:!0,enumerable:!0,configurable:!0,value:b}})};var Bc="closure_listenable_"+(1E6*Math.random()|0);function Cc(b){return!(!b||!b[Bc])}var Dc=0;function Ec(b,c,d,e,f){this.$b=b;this.a=null;this.src=c;this.type=d;this.Bc=!!e;this.yd=f;this.key=++Dc;this.uc=this.cd=!1}function Fc(b){b.uc=!0;b.$b=null;b.a=null;b.src=null;b.yd=null};function Gc(b){this.src=b;this.a={};this.d=0}Gc.prototype.add=function(b,c,d,e,f){var g=b.toString();b=this.a[g];b||(b=this.a[g]=[],this.d++);var h=Hc(b,c,e,f);-1f.keyCode||void 0!=f.returnValue)){a:{var g=!1;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(h){g=!0}if(g||void 0==f.returnValue)f.returnValue=!0}f=[];for(g=d.b;g;g=g.parentNode)f.push(g);for(var g=b.type,k=f.length-1;!d.e&&0<=k;k--){d.b=f[k];var n=Yc(f[k],g,!0,d),e=e&&n}for(k=0;!d.e&&k>>0);function Pc(b){if(ka(b))return b;b[$c]||(b[$c]=function(c){return b.handleEvent(c)});return b[$c]};function ad(b){return function(){return b}}var bd=ad(!1),cd=ad(!0),dd=ad(null);function ed(b){return b}function fd(b){var c;c=c||0;return function(){return b.apply(this,Array.prototype.slice.call(arguments,0,c))}}function gd(b){var c=arguments,d=c.length;return function(){for(var b,f=0;f=d||(1<=d?(h=k,f=g):(h+=d*n,f+=d*p));return[h,f]}function yd(b,c){var d=Xb(b+180,360)-180,e=Math.abs(Math.round(3600*d));return Math.floor(e/3600)+"\u00b0 "+Math.floor(e/60%60)+"\u2032 "+Math.floor(e%60)+"\u2033 "+c.charAt(0>d?1:0)} function zd(b,c,d){return m(b)?c.replace("{x}",b[0].toFixed(d)).replace("{y}",b[1].toFixed(d)):""}function Ad(b,c){for(var d=!0,e=b.length-1;0<=e;--e)if(b[e]!=c[e]){d=!1;break}return d}function Bd(b,c){var d=Math.cos(c),e=Math.sin(c),f=b[1]*d+b[0]*e;b[0]=b[0]*d-b[1]*e;b[1]=f;return b}function Cd(b,c){var d=b[0]-c[0],e=b[1]-c[1];return d*d+e*e}function Dd(b,c){return zd(b,"{x}, {y}",c)};function Ed(b){this.length=b.length||b;for(var c=0;ce&&(k=k|4);hf&&(k|=2);0===k&&(k=1);return k}function Td(){return[Infinity,Infinity,-Infinity,-Infinity]}function Wd(b,c,d,e,f){return m(f)?(f[0]=b,f[1]=c,f[2]=d,f[3]=e,f):[b,c,d,e]} function ce(b,c){var d=b[0],e=b[1];return Wd(d,e,d,e,c)}function de(b,c){return b[0]==c[0]&&b[2]==c[2]&&b[1]==c[1]&&b[3]==c[3]}function ee(b,c){c[0]b[2]&&(b[2]=c[2]);c[1]b[3]&&(b[3]=c[3]);return b}function Ud(b,c){c[0]b[2]&&(b[2]=c[0]);c[1]b[3]&&(b[3]=c[1])} function fe(b,c,d,e,f){for(;dg;++g)h=f[g],k=e[g],f[g]=b[0]+h*c-k*d,e[g]=b[1]+h*d+k*c;return Vd(f,e,void 0)}function oe(b){return b[3]-b[1]} function pe(b,c,d){d=m(d)?d:Td();qe(b,c)&&(d[0]=b[0]>c[0]?b[0]:c[0],d[1]=b[1]>c[1]?b[1]:c[1],d[2]=b[2]=c[0]&&b[1]<=c[3]&&b[3]>=c[1]}function se(b){return b[2]this.H)}return m(b)?this.o+b:b};l.pe=function(b,c){if(!se(b)){this.Ha(le(b));var d=this.k(b,c),e=this.constrainResolution(d,0,0);eb?af(2*b):1-af(2*(b-.5))};function df(b){var c=b.source,d=m(b.start)?b.start:ta(),e=c[0],f=c[1],g=m(b.duration)?b.duration:1E3,h=m(b.easing)?b.easing:af;return function(b,c){if(c.time>=1;return d.join("")}function kf(b){return hf(b[0],b[1],b[2])};function lf(b,c,d,e){this.a=b;this.c=c;this.b=d;this.d=e}function mf(b,c,d,e,f){return m(f)?(f.a=b,f.c=c,f.b=d,f.d=e,f):new lf(b,c,d,e)}lf.prototype.contains=function(b){return nf(this,b[1],b[2])};function nf(b,c,d){return b.a<=c&&c<=b.c&&b.b<=d&&d<=b.d}function of(b,c){return b.a==c.a&&b.b==c.b&&b.c==c.c&&b.d==c.d};function pf(b){this.d=b.html;this.a=m(b.tileRanges)?b.tileRanges:null}pf.prototype.b=function(){return this.d};var qf=!Gb||Gb&&9<=Sb;!Hb&&!Gb||Gb&&Gb&&9<=Sb||Hb&&Qb("1.9.1");Gb&&Qb("9");Eb("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));Eb("action","cite","data","formaction","href","manifest","poster","src");Eb("embed","iframe","link","object","script","style","template");function rf(b,c){this.x=m(b)?b:0;this.y=m(c)?c:0}l=rf.prototype;l.clone=function(){return new rf(this.x,this.y)};l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};l.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};l.scale=function(b,c){var d=ja(c)?c:b;this.x*=b;this.y*=d;return this};function sf(b,c){this.width=b;this.height=c}l=sf.prototype;l.clone=function(){return new sf(this.width,this.height)};l.la=function(){return!(this.width*this.height)};l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; l.scale=function(b,c){var d=ja(c)?c:b;this.width*=b;this.height*=d;return this};function tf(b){return b?new uf(vf(b)):xa||(xa=new uf)}function wf(b){var c=document;return ia(b)?c.getElementById(b):b}function xf(b,c){ob(c,function(c,e){"style"==e?b.style.cssText=c:"class"==e?b.className=c:"for"==e?b.htmlFor=c:e in yf?b.setAttribute(yf[e],c):0==e.lastIndexOf("aria-",0)||0==e.lastIndexOf("data-",0)?b.setAttribute(e,c):b[e]=c})} var yf={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 zf(b){b=b.document.documentElement;return new sf(b.clientWidth,b.clientHeight)} function Af(b,c,d){var e=arguments,f=document,g=e[0],h=e[1];if(!qf&&h&&(h.name||h.type)){g=["<",g];h.name&&g.push(' name="',Ba(h.name),'"');if(h.type){g.push(' type="',Ba(h.type),'"');var k={};Db(k,h);delete k.type;h=k}g.push(">");g=g.join("")}g=f.createElement(g);h&&(ia(h)?g.className=h:ga(h)?g.className=h.join(" "):xf(g,h));2d;++d)e[d]=c[d].toFixed(6);d=e.join(",")}else d=c.join(",");Pf(b,"matrix3d("+d+")")}else if(Nf()){e=[c[0],c[1],c[4],c[5],c[12],c[13]];if(m(6)){var f=Array(6);for(d=0;6>d;++d)f[d]=e[d].toFixed(6);d=f.join(",")}else d=e.join(",");Pf(b,"matrix("+d+")")}else b.style.left=Math.round(c[12])+"px",b.style.top=Math.round(c[13])+"px"};var Sf=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Tf(b,c){var d,e,f=Sf.length;for(e=0;e=this.left&&b.right<=this.right&&b.top>=this.top&&b.bottom<=this.bottom:b.x>=this.left&&b.x<=this.right&&b.y>=this.top&&b.y<=this.bottom:!1}; l.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};l.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};l.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; l.scale=function(b,c){var d=ja(c)?c:b;this.left*=b;this.right*=b;this.top*=d;this.bottom*=d;return this};function Bg(b,c,d,e){this.left=b;this.top=c;this.width=d;this.height=e}l=Bg.prototype;l.clone=function(){return new Bg(this.left,this.top,this.width,this.height)};l.contains=function(b){return b instanceof Bg?this.left<=b.left&&this.left+this.width>=b.left+b.width&&this.top<=b.top&&this.top+this.height>=b.top+b.height:b.x>=this.left&&b.x<=this.left+this.width&&b.y>=this.top&&b.y<=this.top+this.height}; function Cg(b,c){var d=c.x= y.a&&D.b<=y.d&&D.d>=y.b){u=!0;break a}}u=!1}u?(k in s&&delete s[k],r[k]=h):s[k]=h}c=[r,s];d=c[0];c=c[1];for(var x in this.k)x in d?(this.e[x]||(Lg(this.k[x],!0),this.e[x]=!0),delete d[x]):x in c?(this.e[x]&&(Lg(this.k[x],!1),delete this.e[x]),delete c[x]):(Hf(this.k[x]),delete this.k[x],delete this.e[x]);for(x in d)p=Df("LI"),p.innerHTML=d[x].d,this.r.appendChild(p),this.k[x]=p,this.e[x]=!0;for(x in c)p=Df("LI"),p.innerHTML=c[x].d,Lg(p,!1),this.r.appendChild(p),this.k[x]=p;x=!wb(this.e)||!wb(b.logos); this.p!=x&&(Lg(this.element,x),this.p=x);x&&wb(this.e)?xg(this.element,"ol-logo-only"):yg(this.element,"ol-logo-only");var M;b=b.logos;x=this.N;for(M in x)M in b||(Hf(x[M]),delete x[M]);for(var Q in b)Q in x||(M=new Image,M.src=Q,d=b[Q],""===d?d=M:(d=Af("A",{href:d}),d.appendChild(M)),this.o.appendChild(d),x[Q]=d);Lg(this.o,!wb(b))}}l=Ug.prototype;l.Ej=function(b){b.preventDefault();Wg(this)};function Wg(b){zg(b.element,"ol-collapsed");b.c?If(b.D,b.H):If(b.H,b.D);b.c=!b.c}l.Dj=function(){return this.g}; l.Gj=function(b){this.g!==b&&(this.g=b,zg(this.element,"ol-uncollapsible"),!b&&this.c&&Wg(this))};l.Fj=function(b){this.g&&this.c!==b&&Wg(this)};l.Cj=function(){return this.c};function Xg(b){b=m(b)?b:{};var c=m(b.className)?b.className:"ol-rotate",d=m(b.label)?b.label:"\u21e7";this.c=null;ia(d)?this.c=Af("SPAN","ol-compass",d):(this.c=d,xg(this.c,"ol-compass"));d=Af("BUTTON",{"class":c+"-reset",type:"button",title:m(b.tipLabel)?b.tipLabel:"Reset rotation"},this.c);w(d,"click",Xg.prototype.o,!1,this);w(d,["mouseout",vc],function(){this.blur()},!1);c=Af("DIV",c+" ol-unselectable ol-control",d);Tg.call(this,{element:c,render:m(b.render)?b.render:Yg,target:b.target});this.g= m(b.duration)?b.duration:250;this.e=m(b.autoHide)?b.autoHide:!0;this.k=void 0;this.e&&xg(this.element,"ol-hidden")}v(Xg,Tg);Xg.prototype.o=function(b){b.preventDefault();b=this.a;var c=b.a();if(null!==c){for(var d=c.c();d<-Math.PI;)d+=2*Math.PI;for(;d>Math.PI;)d-=2*Math.PI;m(d)&&(02*this.b&&uh(this),!0):!1};function uh(b){if(b.b!=b.a.length){for(var c=0,d=0;c=b||96<=b&&106>=b||65<=b&&90>=b||Ib&&0==b)return!0;switch(b){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!0;default:return!1}}function Ah(b){if(Hb)b=Bh(b);else if(Jb&&Ib)a:switch(b){case 93:b=91;break a}return b} function Bh(b){switch(b){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return b}};function Ch(b,c){id.call(this);b&&Dh(this,b,c)}v(Ch,id);l=Ch.prototype;l.ba=null;l.Ad=null;l.ve=null;l.Bd=null;l.Qa=-1;l.Gb=-1;l.je=!1; var Eh={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},Fh={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},Gh=Gb||Ib&&Qb("525"),Hh=Jb&&Hb; Ch.prototype.a=function(b){Ib&&(17==this.Qa&&!b.n||18==this.Qa&&!b.d||Jb&&91==this.Qa&&!b.k)&&(this.Gb=this.Qa=-1);-1==this.Qa&&(b.n&&17!=b.f?this.Qa=17:b.d&&18!=b.f?this.Qa=18:b.k&&91!=b.f&&(this.Qa=91));Gh&&!yh(b.f,this.Qa,b.c,b.n,b.d)?this.handleEvent(b):(this.Gb=Ah(b.f),Hh&&(this.je=b.d))};Ch.prototype.d=function(b){this.Gb=this.Qa=-1;this.je=b.d}; Ch.prototype.handleEvent=function(b){var c=b.a,d,e,f=c.altKey;Gb&&"keypress"==b.type?(d=this.Gb,e=13!=d&&27!=d?c.keyCode:0):Ib&&"keypress"==b.type?(d=this.Gb,e=0<=c.charCode&&63232>c.charCode&&zh(d)?c.charCode:0):Fb?(d=this.Gb,e=zh(d)?c.keyCode:0):(d=c.keyCode||this.Gb,e=c.charCode||0,Hh&&(f=this.je),Jb&&63==e&&224==d&&(d=191));var g=d=Ah(d),h=c.keyIdentifier;d?63232<=d&&d in Eh?g=Eh[d]:25==d&&b.c&&(g=9):h&&h in Fh&&(g=Fh[h]);this.Qa=g;b=new Ih(g,e,0,c);b.d=f;this.dispatchEvent(b)}; function Dh(b,c,d){b.Bd&&Jh(b);b.ba=c;b.Ad=w(b.ba,"keypress",b,d);b.ve=w(b.ba,"keydown",b.a,d,b);b.Bd=w(b.ba,"keyup",b.d,d,b)}function Jh(b){b.Ad&&(Xc(b.Ad),Xc(b.ve),Xc(b.Bd),b.Ad=null,b.ve=null,b.Bd=null);b.ba=null;b.Qa=-1;b.Gb=-1}Ch.prototype.P=function(){Ch.T.P.call(this);Jh(this)};function Ih(b,c,d,e){xc.call(this,e);this.type="key";this.f=b;this.i=c}v(Ih,xc);function Kh(b,c){id.call(this);var d=this.ba=b;(d=la(d)&&1==d.nodeType?this.ba:this.ba?this.ba.body:null)&&Eg(d,"direction");this.a=w(this.ba,Hb?"DOMMouseScroll":"mousewheel",this,c)}v(Kh,id); Kh.prototype.handleEvent=function(b){var c=0,d=0,e=0;b=b.a;if("mousewheel"==b.type){d=1;if(Gb||Ib&&(Kb||Qb("532.0")))d=40;e=Lh(-b.wheelDelta,d);m(b.wheelDeltaX)?(c=Lh(-b.wheelDeltaX,d),d=Lh(-b.wheelDeltaY,d)):d=e}else e=b.detail,100e&&(e=-3),m(b.axis)&&b.axis===b.HORIZONTAL_AXIS?c=e:d=e;ja(this.d)&&Wb(c,-this.d,this.d);ja(this.b)&&(d=Wb(d,-this.b,this.b));c=new Mh(e,b,0,d);this.dispatchEvent(c)};function Lh(b,c){return Ib&&(Jb||Lb)&&0!=b%c?b:b/c} Kh.prototype.P=function(){Kh.T.P.call(this);Xc(this.a);this.a=null};function Mh(b,c,d,e){xc.call(this,c);this.type="mousewheel";this.detail=b;this.q=e}v(Mh,xc);function Nh(b,c,d){rc.call(this,b);this.a=c;b=m(d)?d:{};this.buttons=Oh(b);this.pressure=Ph(b,this.buttons);this.bubbles=zb(b,"bubbles",!1);this.cancelable=zb(b,"cancelable",!1);this.view=zb(b,"view",null);this.detail=zb(b,"detail",null);this.screenX=zb(b,"screenX",0);this.screenY=zb(b,"screenY",0);this.clientX=zb(b,"clientX",0);this.clientY=zb(b,"clientY",0);this.button=zb(b,"button",0);this.relatedTarget=zb(b,"relatedTarget",null);this.pointerId=zb(b,"pointerId",0);this.width=zb(b,"width",0);this.height= zb(b,"height",0);this.pointerType=zb(b,"pointerType","");this.isPrimary=zb(b,"isPrimary",!1);c.preventDefault&&(this.preventDefault=function(){c.preventDefault()})}v(Nh,rc);function Oh(b){if(b.buttons||Qh)b=b.buttons;else switch(b.which){case 1:b=1;break;case 2:b=4;break;case 3:b=2;break;default:b=0}return b}function Ph(b,c){var d=0;b.pressure?d=b.pressure:d=c?.5:0;return d}var Qh=!1;try{Qh=1===(new MouseEvent("click",{buttons:1})).buttons}catch(Rh){};function Sh(b,c){this.a=b;this.f=c};function Th(b){Sh.call(this,b,{mousedown:this.Xi,mousemove:this.Yi,mouseup:this.aj,mouseover:this.$i,mouseout:this.Zi});this.d=b.d;this.b=[]}v(Th,Sh);function Uh(b,c){for(var d=b.b,e=c.clientX,f=c.clientY,g=0,h=d.length,k;g=Math.abs(e-k[0])&&25>=n)return!0}return!1}function Wh(b){var c=Xh(b,b.a),d=c.preventDefault;c.preventDefault=function(){b.preventDefault();d()};c.pointerId=1;c.isPrimary=!0;c.pointerType="mouse";return c}l=Th.prototype; l.Xi=function(b){if(!Uh(this,b)){(1).toString()in this.d&&this.cancel(b);var c=Wh(b);this.d[(1).toString()]=b;Yh(this.a,Zh,c,b)}};l.Yi=function(b){if(!Uh(this,b)){var c=Wh(b);Yh(this.a,$h,c,b)}};l.aj=function(b){if(!Uh(this,b)){var c=this.d[(1).toString()];c&&c.button===b.button&&(c=Wh(b),Yh(this.a,ai,c,b),yb(this.d,(1).toString()))}};l.$i=function(b){if(!Uh(this,b)){var c=Wh(b);bi(this.a,c,b)}};l.Zi=function(b){if(!Uh(this,b)){var c=Wh(b);ci(this.a,c,b)}}; l.cancel=function(b){var c=Wh(b);this.a.cancel(c,b);yb(this.d,(1).toString())};function di(b){Sh.call(this,b,{MSPointerDown:this.fj,MSPointerMove:this.gj,MSPointerUp:this.jj,MSPointerOut:this.hj,MSPointerOver:this.ij,MSPointerCancel:this.ej,MSGotPointerCapture:this.cj,MSLostPointerCapture:this.dj});this.d=b.d;this.b=["","unavailable","touch","pen","mouse"]}v(di,Sh);function ei(b,c){var d=c;ja(c.a.pointerType)&&(d=Xh(c,c.a),d.pointerType=b.b[c.a.pointerType]);return d}l=di.prototype;l.fj=function(b){this.d[b.a.pointerId]=b;var c=ei(this,b);Yh(this.a,Zh,c,b)}; l.gj=function(b){var c=ei(this,b);Yh(this.a,$h,c,b)};l.jj=function(b){var c=ei(this,b);Yh(this.a,ai,c,b);yb(this.d,b.a.pointerId)};l.hj=function(b){var c=ei(this,b);ci(this.a,c,b)};l.ij=function(b){var c=ei(this,b);bi(this.a,c,b)};l.ej=function(b){var c=ei(this,b);this.a.cancel(c,b);yb(this.d,b.a.pointerId)};l.dj=function(b){this.a.dispatchEvent(new Nh("lostpointercapture",b,b.a))};l.cj=function(b){this.a.dispatchEvent(new Nh("gotpointercapture",b,b.a))};function fi(b){Sh.call(this,b,{pointerdown:this.ql,pointermove:this.rl,pointerup:this.ul,pointerout:this.sl,pointerover:this.tl,pointercancel:this.pl,gotpointercapture:this.li,lostpointercapture:this.Wi})}v(fi,Sh);l=fi.prototype;l.ql=function(b){gi(this.a,b)};l.rl=function(b){gi(this.a,b)};l.ul=function(b){gi(this.a,b)};l.sl=function(b){gi(this.a,b)};l.tl=function(b){gi(this.a,b)};l.pl=function(b){gi(this.a,b)};l.Wi=function(b){gi(this.a,b)};l.li=function(b){gi(this.a,b)};function hi(b,c){Sh.call(this,b,{touchstart:this.nm,touchmove:this.mm,touchend:this.lm,touchcancel:this.km});this.d=b.d;this.g=c;this.b=void 0;this.e=0;this.c=void 0}v(hi,Sh);l=hi.prototype;l.og=function(){this.e=0;this.c=void 0}; function ii(b,c,d){c=Xh(c,d);c.pointerId=d.identifier+2;c.bubbles=!0;c.cancelable=!0;c.detail=b.e;c.button=0;c.buttons=1;c.width=d.webkitRadiusX||d.radiusX||0;c.height=d.webkitRadiusY||d.radiusY||0;c.pressure=d.webkitForce||d.force||.5;c.isPrimary=b.b===d.identifier;c.pointerType="touch";c.clientX=d.clientX;c.clientY=d.clientY;c.screenX=d.screenX;c.screenY=d.screenY;return c} function ji(b,c,d){function e(){c.preventDefault()}var f=Array.prototype.slice.call(c.a.changedTouches),g=f.length,h,k;for(h=0;h=c.length){var f=[],g,h,k;for(g=0;g=b.minResolution&&cb.f};function Ui(b){this.minZoom=m(b.minZoom)?b.minZoom:0;this.a=b.resolutions;this.maxZoom=this.a.length-1;this.c=m(b.origin)?b.origin:null;this.e=null;m(b.origins)&&(this.e=b.origins);this.d=null;m(b.tileSizes)&&(this.d=b.tileSizes);this.f=m(b.tileSize)?b.tileSize:null===this.d?256:void 0}var Vi=[0,0,0];l=Ui.prototype;l.Db=function(){return ed};l.gd=function(b,c,d,e,f){f=Wi(this,b,f);for(b=b[0]-1;b>=this.minZoom;){if(c.call(d,b,Xi(this,f,b,e)))return!0;--b}return!1};l.md=function(){return this.maxZoom}; l.pd=function(){return this.minZoom};l.Lb=function(b){return null===this.c?this.e[b]:this.c};l.na=function(b){return this.a[b]};l.Qd=function(){return this.a};l.td=function(b,c,d){return b[0]b.c&&(b.c=e.c),e.bb.d&&(b.d=e.d)):b[c][d]=e:(b[c]={},b[c][d]=e)}function rj(b,c,d){return[c*(Math.round(b[0]/c)+d[0]%2/2),c*(Math.round(b[1]/c)+d[1]%2/2)]} function sj(b,c,d,e,f,g,h,k,n,p){var q=ma(c).toString();q in b.wantedTiles||(b.wantedTiles[q]={});var r=b.wantedTiles[q];b=b.tileQueue;var s=d.minZoom,u,z,y,A,D,x;for(x=h;x>=s;--x)for(z=Xi(d,g,x,z),y=d.na(x),A=z.a;A<=z.c;++A)for(D=z.b;D<=z.d;++D)h-x<=k?(u=c.Vb(x,A,D,e,f),0==u.state&&(r[kf(u.a)]=!0,u.qb()in b.b||tj(b,[u,q,$i(d,u.a),y])),m(n)&&n.call(p,u)):c.Pe(x,A,D)};function uj(b){this.o=b.opacity;this.p=b.rotateWithView;this.i=b.rotation;this.k=b.scale;this.r=b.snapToPixel}l=uj.prototype;l.Ld=function(){return this.o};l.rd=function(){return this.p};l.Md=function(){return this.i};l.Nd=function(){return this.k};l.sd=function(){return this.r};l.Od=function(b){this.i=b};l.Pd=function(b){this.k=b};function vj(b){b=m(b)?b:{};this.f=m(b.anchor)?b.anchor:[.5,.5];this.c=null;this.d=m(b.anchorOrigin)?b.anchorOrigin:"top-left";this.g=m(b.anchorXUnits)?b.anchorXUnits:"fraction";this.n=m(b.anchorYUnits)?b.anchorYUnits:"fraction";var c=m(b.crossOrigin)?b.crossOrigin:null,d=m(b.img)?b.img:null,e=b.src;m(e)&&0!==e.length||null===d||(e=d.src);var f=m(b.src)?0:2,g=wj.Pa(),h=g.get(e,c);null===h&&(h=new xj(d,e,c,f),g.set(e,c,h));this.a=h;this.D=m(b.offset)?b.offset:[0,0];this.b=m(b.offsetOrigin)?b.offsetOrigin: "top-left";this.e=null;this.q=m(b.size)?b.size:null;uj.call(this,{opacity:m(b.opacity)?b.opacity:1,rotation:m(b.rotation)?b.rotation:0,scale:m(b.scale)?b.scale:1,snapToPixel:m(b.snapToPixel)?b.snapToPixel:!0,rotateWithView:m(b.rotateWithView)?b.rotateWithView:!1})}v(vj,uj);l=vj.prototype; l.wb=function(){if(null!==this.c)return this.c;var b=this.f,c=this.gb();if("fraction"==this.g||"fraction"==this.n){if(null===c)return null;b=this.f.slice();"fraction"==this.g&&(b[0]*=c[0]);"fraction"==this.n&&(b[1]*=c[1])}if("top-left"!=this.d){if(null===c)return null;b===this.f&&(b=this.f.slice());if("top-right"==this.d||"bottom-right"==this.d)b[0]=-b[0]+c[0];if("bottom-left"==this.d||"bottom-right"==this.d)b[1]=-b[1]+c[1]}return this.c=b};l.Bb=function(){return this.a.a};l.kd=function(){return this.a.d}; l.Pc=function(){return this.a.b};l.Kd=function(){var b=this.a;if(null===b.f)if(b.n){var c=b.d[0],d=b.d[1],e=Mf(c,d);e.fillRect(0,0,c,d);b.f=e.canvas}else b.f=b.a;return b.f};l.Cb=function(){if(null!==this.e)return this.e;var b=this.D;if("top-left"!=this.b){var c=this.gb(),d=this.a.d;if(null===c||null===d)return null;b=b.slice();if("top-right"==this.b||"bottom-right"==this.b)b[0]=d[0]-c[0]-b[0];if("bottom-left"==this.b||"bottom-right"==this.b)b[1]=d[1]-c[1]-b[1]}return this.e=b};l.Gk=function(){return this.a.e}; l.gb=function(){return null===this.q?this.a.d:this.q};l.xe=function(b,c){return w(this.a,"change",b,!1,c)};l.load=function(){this.a.load()};l.Oe=function(b,c){Wc(this.a,"change",b,!1,c)};function xj(b,c,d,e){id.call(this);this.f=null;this.a=null===b?new Image:b;null!==d&&(this.a.crossOrigin=d);this.c=null;this.b=e;this.d=null;this.e=c;this.n=!1}v(xj,id);xj.prototype.g=function(){this.b=3;Qa(this.c,Xc);this.c=null;this.dispatchEvent("change")}; xj.prototype.i=function(){this.b=2;this.d=[this.a.width,this.a.height];Qa(this.c,Xc);this.c=null;var b=Mf(1,1);b.drawImage(this.a,0,0);try{b.getImageData(0,0,1,1)}catch(c){this.n=!0}this.dispatchEvent("change")};xj.prototype.load=function(){if(0==this.b){this.b=1;this.c=[Vc(this.a,"error",this.g,!1,this),Vc(this.a,"load",this.i,!1,this)];try{this.a.src=this.e}catch(b){this.g()}}};function wj(){this.a={};this.d=0}da(wj);wj.prototype.clear=function(){this.a={};this.d=0}; wj.prototype.get=function(b,c){var d=c+":"+b;return d in this.a?this.a[d]:null};wj.prototype.set=function(b,c,d){this.a[c+":"+b]=d;++this.d};function yj(b,c){mc.call(this);this.g=c;this.b=null;this.e={};this.q={}}v(yj,mc);function zj(b){var c=b.viewState,d=b.coordinateToPixelMatrix;gj(d,b.size[0]/2,b.size[1]/2,1/c.resolution,-1/c.resolution,-c.rotation,-c.center[0],-c.center[1]);Od(d,b.pixelToCoordinateMatrix)}l=yj.prototype;l.P=function(){ob(this.e,qc);yj.T.P.call(this)}; function Aj(){var b=wj.Pa();if(32>1;){var n=2*c+1,p=2*c+2,n=pc;){var h=d-1>>1;if(b[h]>g)e[d]=e[h],b[d]=b[h],d=h;else break}e[d]=f;b[d]=g}function Hj(b){var c=b.e,d=b.a,e=b.d,f=0,g=d.length,h,k,n;for(k=0;k>1)-1;0<=c;c--)Fj(b,c)};function Ij(b,c){Dj.call(this,function(c){return b.apply(null,c)},function(b){return b[0].qb()});this.n=c;this.c=0}v(Ij,Dj);Ij.prototype.g=function(b){b=b.target.state;if(2===b||3===b||4===b)--this.c,this.n()};function Jj(b,c,d){this.c=b;this.b=c;this.e=d;this.a=[];this.d=this.f=0}Jj.prototype.update=function(b,c){this.a.push(b,c,ta())};function Kj(b,c){var d=b.c,e=b.d,f=b.b-e,g=Lj(b);return df({source:c,duration:g,easing:function(b){return e*(Math.exp(d*b*g)-1)/f}})}function Lj(b){return Math.log(b.b/b.d)/b.c};function Mj(b){rd.call(this);this.k=null;this.c(!0);this.handleEvent=b.handleEvent}v(Mj,rd);Mj.prototype.b=function(){return this.get("active")};Mj.prototype.getActive=Mj.prototype.b;Mj.prototype.c=function(b){this.set("active",b)};Mj.prototype.setActive=Mj.prototype.c;Mj.prototype.setMap=function(b){this.k=b};function Nj(b,c,d,e,f){if(null!=d){var g=c.c(),h=c.b();m(g)&&m(h)&&m(f)&&0d.a.length)d=!1;else{var e=ta()-d.e,f=d.a.length-3;if(d.a[f+2]e;)g-=3;var e=d.a[f+2]-d.a[g+2],h=d.a[f]-d.a[g],f=d.a[f+1]-d.a[g+1];d.f=Math.atan2(f,h);d.d=Math.sqrt(h*h+f*f)/e;d=d.d>d.b}}d&&(d=this.a,d=(d.b-d.d)/d.c,f=this.a.f,g=c.b(),this.g=Kj(this.a,g),b.La(this.g),g=b.e(g),d=b.ra([g[0]-d*Math.cos(f),g[1]-d*Math.sin(f)]),d=c.i(d),c.Ha(d));Ze(c,-1);b.render(); return!1}this.e=null;return!0}function dk(b){if(0b||0!==this.g&&b<=this.g)return this;var c=b.toString();if(this.e.hasOwnProperty(c))return this.e[c];var d=this.oc(b);if(d.j.lengthf&&(f=g);g=k;h=n}return f}function wk(b,c,d,e,f){var g,h;g=0;for(h=d.length;gk){for(;cu&&(p=q,u=x)}u>f&&(n[(p-c)/e]=1,s+eW&&lbW)&&(0>Ja&&KaJa)||(y[h++]=x,y[h++]=M,A=x,D=M);x=Q;M=O}}y[h++]=x;y[h++]=M}}k.push(h);c=q}return h};function Gk(b,c){mk.call(this);this.b=this.n=-1;this.V(b,c)}v(Gk,mk);l=Gk.prototype;l.clone=function(){var b=new Gk(null);Hk(b,this.a,this.j.slice());return b};l.Ya=function(b,c,d,e){if(eg!=q>g&&f<(p-k)*(g-n)/(q-n)+k&&(h=!h);k=p;n=q}return h}function Mk(b,c,d,e,f,g){if(0===d.length||!Lk(b,c,d[0],e,f,g))return!1;var h;c=1;for(h=d.length;cr&&(p=(p+q)/2,Mk(b,c,d,e,p,s)&&(z=p,r=y));p=q}isNaN(z)&&(z=f[g]);return m(h)?(h.push(z,s),h):[z,s]};function Ok(b,c,d,e,f,g){for(var h=[b[c],b[c+1]],k=[],n;c+e=f[0]&&g[2]<=f[2]||g[1]>=f[1]&&g[3]<=f[3]?!0:Ok(b,c,d,e,function(b,c){var d=!1,e=be(f,b),g=be(f,c);if(1===e||1===g)d=!0;else{var r=f[0],s=f[1],u=f[2],z=f[3],y=c[0],A=c[1],D=(A-b[1])/(y-b[0]);g&2&&!(e&2)?(s=y-(A-z)/D,d=s>=r&&s<=u):g&4&&!(e&4)?(r=A-(y-u)*D,d=r>=s&&r<=z):g&8&&!(e&8)?(s=y-(A-s)/D,d=s>=r&&s<=u):g&16&&!(e&16)&&(r=A-(y-r)*D,d=r>=s&&r<=z)}return d}):!1} function Qk(b,c,d,e,f){var g=d[0];if(!(Pk(b,c,g,e,f)||Lk(b,c,g,e,f[0],f[1])||Lk(b,c,g,e,f[0],f[3])||Lk(b,c,g,e,f[2],f[1])||Lk(b,c,g,e,f[2],f[3])))return!1;if(1===d.length)return!0;c=1;for(g=d.length;cb||this.b.length<=b)return null;var c=new Gk(null);Hk(c,this.a,this.j.slice(0===b?0:this.b[b-1],this.b[b]));return c};l.ld=function(){var b=this.a,c=this.j,d=this.b,e=[],f=0,g,h;g=0;for(h=d.length;gf;++f)e[f]=c.charCodeAt(d++)|c.charCodeAt(d++)<<8|c.charCodeAt(d++)<<16|c.charCodeAt(d++)<<24;else for(f=0;16>f;++f)e[f]=c[d++]|c[d++]<<8|c[d++]<<16|c[d++]<<24;c=b.a[0];d=b.a[1];var f=b.a[2],g=b.a[3],h=0,h=c+(g^d&(f^g))+e[0]+3614090360&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[1]+3905402710&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[2]+606105819&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^ c))+e[3]+3250441966&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[4]+4118548399&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[5]+1200080426&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[6]+2821735955&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[7]+4249261313&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[8]+1770035416&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[9]+2336552879&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+ (d^g&(c^d))+e[10]+4294925233&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[11]+2304563134&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[12]+1804603682&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[13]+4254626195&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[14]+2792965006&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[15]+1236535329&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(f^g&(d^f))+e[1]+4129170786&4294967295;c=d+(h<<5&4294967295| h>>>27);h=g+(d^f&(c^d))+e[6]+3225465664&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[11]+643717713&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[0]+3921069994&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(f^g&(d^f))+e[5]+3593408605&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[10]+38016083&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[15]+3634488961&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[4]+3889429448&4294967295;d=f+(h<<20&4294967295| h>>>12);h=c+(f^g&(d^f))+e[9]+568446438&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[14]+3275163606&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[3]+4107603335&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[8]+1163531501&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(f^g&(d^f))+e[13]+2850285829&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[2]+4243563512&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[7]+1735328473&4294967295;f=g+(h<<14&4294967295| h>>>18);h=d+(g^c&(f^g))+e[12]+2368359562&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(d^f^g)+e[5]+4294588738&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[8]+2272392833&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[11]+1839030562&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[14]+4259657740&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[1]+2763975236&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[4]+1272893353&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^ c^d)+e[7]+4139469664&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[10]+3200236656&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[13]+681279174&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[0]+3936430074&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[3]+3572445317&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[6]+76029189&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[9]+3654602809&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[12]+3873151461&4294967295; g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[15]+530742520&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[2]+3299628645&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(f^(d|~g))+e[0]+4096336452&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[7]+1126891415&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[14]+2878612391&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[5]+4237533241&4294967295;d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[12]+1700485571&4294967295;c=d+ (h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[3]+2399980690&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[10]+4293915773&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[1]+2240044497&4294967295;d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[8]+1873313359&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[15]+4264355552&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[6]+2734768916&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[13]+1309151649&4294967295; d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[4]+4149444226&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[11]+3174756917&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[2]+718787259&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[9]+3951481745&4294967295;b.a[0]=b.a[0]+c&4294967295;b.a[1]=b.a[1]+(f+(h<<21&4294967295|h>>>11))&4294967295;b.a[2]=b.a[2]+f&4294967295;b.a[3]=b.a[3]+g&4294967295} hl.prototype.update=function(b,c){m(c)||(c=b.length);for(var d=c-this.d,e=this.f,f=this.b,g=0;gc.b?c.d:2*c.d)-c.b);d[0]=128;for(b=1;bb;++b)for(var f=0;32>f;f+=8)d[e++]=c.a[b]>>>f&255; if(8192>d.length)c=String.fromCharCode.apply(null,d);else for(c="",b=0;bthis.q&&(this.a=!0));this.g=d;b=b.map;d=Ig(b.b);e=bk(this.f);e[0]-=d.x;e[1]-=d.y;this.e=b.ra(e);this.a&&(d=b.a(),e=d.c(),b.render(),Nj(b,d,e+c,this.e))}function Fl(b){if(2>this.f.length){b=b.map;var c=b.a();Ze(c,-1);if(this.a){var d=c.c(),e=this.e,d=c.constrainRotation(d,0);Nj(b,c,d,e,250)}return!1}return!0} function Dl(b){return 2<=this.f.length?(b=b.map,this.e=null,this.g=void 0,this.a=!1,this.i=0,this.p||Ze(b.a(),1),b.render(),!0):!1}Cl.prototype.r=bd;function Gl(b){Zj.call(this,{handleDownEvent:Hl,handleDragEvent:Il,handleUpEvent:Jl});b=m(b)?b:{};this.e=null;this.i=m(b.duration)?b.duration:400;this.a=void 0;this.g=1}v(Gl,Zj);function Il(b){var c=1,d=this.f[0],e=this.f[1],f=d.clientX-e.clientX,d=d.clientY-e.clientY,f=Math.sqrt(f*f+d*d);m(this.a)&&(c=this.a/f);this.a=f;1!=c&&(this.g=c);b=b.map;var f=b.a(),d=f.a(),e=Ig(b.b),g=bk(this.f);g[0]-=e.x;g[1]-=e.y;this.e=b.ra(g);b.render();Pj(b,f,d*c,this.e)} function Jl(b){if(2>this.f.length){b=b.map;var c=b.a();Ze(c,-1);var d=c.a(),e=this.e,f=this.i,d=c.constrainResolution(d,0,this.g-1);Pj(b,c,d,e,f);return!1}return!0}function Hl(b){return 2<=this.f.length?(b=b.map,this.e=null,this.a=void 0,this.g=1,this.p||Ze(b.a(),1),b.render(),!0):!1}Gl.prototype.r=bd;function Kl(b){b=m(b)?b:{};var c=new kg,d=new Jj(-.005,.05,100);(m(b.altShiftDragRotate)?b.altShiftDragRotate:1)&&c.push(new gk);(m(b.doubleClickZoom)?b.doubleClickZoom:1)&&c.push(new Qj({delta:b.zoomDelta,duration:b.zoomDuration}));(m(b.dragPan)?b.dragPan:1)&&c.push(new ck({kinetic:d}));(m(b.pinchRotate)?b.pinchRotate:1)&&c.push(new Cl);(m(b.pinchZoom)?b.pinchZoom:1)&&c.push(new Gl({duration:b.zoomDuration}));if(m(b.keyboard)?b.keyboard:1)c.push(new wl),c.push(new yl({delta:b.zoomDelta,duration:b.zoomDuration})); (m(b.mouseWheelZoom)?b.mouseWheelZoom:1)&&c.push(new Al({duration:b.zoomDuration}));(m(b.shiftDragZoom)?b.shiftDragZoom:1)&&c.push(new vl);return c};function G(b){var c=m(b)?b:{};b=Bb(c);delete b.layers;c=c.layers;C.call(this,b);this.a=null;w(this,vd("layers"),this.Di,!1,this);null!=c?ga(c)&&(c=new kg(c.slice())):c=new kg;this.r(c)}v(G,C);l=G.prototype;l.tf=function(){this.b()&&this.l()}; l.Di=function(){null!==this.a&&(Qa(rb(this.a),Xc),this.a=null);var b=this.ac();if(null!=b){this.a={add:w(b,"add",this.Ci,!1,this),remove:w(b,"remove",this.Ei,!1,this)};var b=b.a,c,d,e;c=0;for(d=b.length;cthis.f&&(this.f=this.b.lineWidth,this.c=null)}; function qm(b,c,d){gm.call(this,b,c,d);this.b={gf:void 0,Ic:void 0,Dc:void 0,Ec:null,Fc:void 0,Gc:void 0,Hc:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}v(qm,gm); function rm(b,c,d,e,f){var g=b.b,h=[1];b.d.push(h);b.a.push(h);var k,h=0;for(k=e.length;hthis.f&&(this.f=d.lineWidth,this.c=null))}; function sm(b){var c=b.b,d=c.fillStyle,e=c.strokeStyle,f=c.lineCap,g=c.lineDash,h=c.lineJoin,k=c.lineWidth,n=c.miterLimit;m(d)&&c.gf!=d&&(b.d.push([9,d]),c.gf=c.fillStyle);!m(e)||c.Ic==e&&c.Dc==f&&c.Ec==g&&c.Fc==h&&c.Gc==k&&c.Hc==n||(b.d.push([10,e,k,f,h,n,g]),c.Ic=e,c.Dc=f,c.Ec=g,c.Fc=h,c.Gc=k,c.Hc=n)}function tm(b,c,d){gm.call(this,b,c,d);this.D=this.r=this.p=null;this.n="";this.o=this.q=this.k=this.i=0;this.g=this.e=this.b=null}v(tm,gm); tm.prototype.vb=function(b,c,d,e,f,g){if(""!==this.n&&null!==this.g&&(null!==this.b||null!==this.e)){if(null!==this.b){f=this.b;var h=this.p;if(null===h||h.fillStyle!=f.fillStyle){var k=[9,f.fillStyle];this.d.push(k);this.a.push(k);null===h?this.p={fillStyle:f.fillStyle}:h.fillStyle=f.fillStyle}}null!==this.e&&(f=this.e,h=this.r,null===h||h.lineCap!=f.lineCap||h.lineDash!=f.lineDash||h.lineJoin!=f.lineJoin||h.lineWidth!=f.lineWidth||h.miterLimit!=f.miterLimit||h.strokeStyle!=f.strokeStyle)&&(k=[10, f.strokeStyle,f.lineWidth,f.lineCap,f.lineJoin,f.miterLimit,f.lineDash,!1],this.d.push(k),this.a.push(k),null===h?this.r={lineCap:f.lineCap,lineDash:f.lineDash,lineJoin:f.lineJoin,lineWidth:f.lineWidth,miterLimit:f.miterLimit,strokeStyle:f.strokeStyle}:(h.lineCap=f.lineCap,h.lineDash=f.lineDash,h.lineJoin=f.lineJoin,h.lineWidth=f.lineWidth,h.miterLimit=f.miterLimit,h.strokeStyle=f.strokeStyle));f=this.g;h=this.D;if(null===h||h.font!=f.font||h.textAlign!=f.textAlign||h.textBaseline!=f.textBaseline)k= [11,f.font,f.textAlign,f.textBaseline],this.d.push(k),this.a.push(k),null===h?this.D={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline}:(h.font=f.font,h.textAlign=f.textAlign,h.textBaseline=f.textBaseline);im(this,g);f=this.coordinates.length;b=hm(this,b,c,d,e,!1);b=[5,f,b,this.n,this.i,this.k,this.q,this.o,null!==this.b,null!==this.e];this.d.push(b);this.a.push(b);lm(this,g)}}; tm.prototype.Ca=function(b){if(null===b)this.n="";else{var c=b.a;null===c?this.b=null:(c=c.a,c=rg(null===c?kl:c),null===this.b?this.b={fillStyle:c}:this.b.fillStyle=c);var d=b.e;if(null===d)this.e=null;else{var c=d.a,e=d.c,f=d.b,g=d.f,h=d.d,d=d.e,e=m(e)?e:"round",f=null!=f?f.slice():ll,g=m(g)?g:"round",h=m(h)?h:1,d=m(d)?d:10,c=rg(null===c?ml:c);if(null===this.e)this.e={lineCap:e,lineDash:f,lineJoin:g,lineWidth:h,miterLimit:d,strokeStyle:c};else{var k=this.e;k.lineCap=e;k.lineDash=f;k.lineJoin=g;k.lineWidth= h;k.miterLimit=d;k.strokeStyle=c}}var n=b.c,c=b.i,e=b.k,f=b.f,h=b.d,d=b.b,g=b.g,k=b.n;b=m(n)?n:"10px sans-serif";g=m(g)?g:"center";k=m(k)?k:"middle";null===this.g?this.g={font:b,textAlign:g,textBaseline:k}:(n=this.g,n.font=b,n.textAlign=g,n.textBaseline=k);this.n=m(d)?d:"";this.i=m(c)?c:0;this.k=m(e)?e:0;this.q=m(f)?f:0;this.o=m(h)?h:1}};function um(b,c,d,e){this.i=b;this.c=c;this.n=d;this.f=e;this.d={};this.e=Mf(1,1);this.g=Id()} function vm(b){for(var c in b.d){var d=b.d[c],e;for(e in d)d[e].Kb()}}um.prototype.b=function(b,c,d,e,f){var g=this.g;gj(g,.5,.5,1/c,-1/c,-d,-b[0],-b[1]);var h=this.e;h.clearRect(0,0,1,1);var k;m(this.f)&&(k=Td(),Ud(k,b),Xd(k,c*this.f,k));return wm(this,h,g,d,e,function(b){if(0b||0!==this.g&&b>1,q=h(d,g[p]),0s?(d=(d-g[-s-2])/(g[-s-1]-g[-s-2]),c+=(-s-2)*e,g=Yb(b[c],b[c+e],d),h=Yb(b[c+1],b[c+e+1],d)):(g=b[c+s*e],h=b[c+s*e+1])}return null!=f? (f[0]=g,f[1]=h,f):[g,h]}function Lm(b,c,d,e,f,g){if(d==c)return null;if(f>1,fb||this.b.length<=b)return null;var c=new K(null);Nm(c,this.a,this.j.slice(0===b?0:this.b[b-1],this.b[b]));return c};l.Lc=function(){var b=this.j,c=this.b,d=this.a,e=[],f=0,g,h;g=0;for(h=c.length;gb||c<=b)return null;c=new Ik(null);Jk(c,this.a,this.j.slice(b*this.B,(b+1)*this.B));return c};l.Gd=function(){var b=this.j,c=this.a,d=this.B,e=[],f,g;f=0;for(g=b.length;fb||this.b.length<=b)return null;var c;0===b?c=0:(c=this.b[b-1],c=c[c.length-1]);b=this.b[b].slice();var d=b[b.length-1];if(0!==c){var e,f;e=0;for(f=b.length;e=b[0]&&c[3]>=b[1]}function r(b,c,d,e,f){for(var g=[c,d],h;g.length;)d=g.pop(),c=g.pop(),d-c<=e||(h=c+Math.ceil((d-c)/e/2)*e,s(b,c,d,h,f),g.push(c,h,h,d))}function s(b,c,d,e,f){for(var g,h,k,n,p;d>c;){600h-g/2?-1:1),k=Math.max(c,Math.floor(e-h*n/g+p)),h=Math.min(d,Math.floor(e+(g-h)*n/g+p)),s(b,k,h,e,f));g=b[e];h=c;n=d;u(b,c,e);for(0f(b[h],g);)h++;for(;0this.ie)this.fh(e,c),c--;else break;this.Zg(d,e,c)},fh:function(b,c){var e=b[c],f=e.children.length,g=this.Ze;this.$g(e,g,f);f={children:e.children.splice(this.ah(e,g,f)),height:e.height};e.za&&(f.za=!0);d(e,this.Ka);d(f,this.Ka);c?b[c-1].children.push(f):this.$e(e, f)},$e:function(b,c){this.data={children:[b,c],height:b.height+1};d(this.data,this.Ka)},ah:function(b,c,d){var f,g,h,n,p,q,r;p=q=Infinity;for(f=c;f<=d-c;f++){g=e(b,0,f,this.Ka);h=e(b,f,d,this.Ka);var s=g,u=h;n=Math.max(s[0],u[0]);var mb=Math.max(s[1],u[1]),Pb=Math.min(s[2],u[2]),s=Math.min(s[3],u[3]);n=Math.max(0,Pb-n)*Math.max(0,s-mb);g=k(g)+k(h);n=c;q--)r=b.children[q],f(k,b.za?g(r):r.bbox),p+=n(k);return p},Zg:function(b,c,d){for(;0<=d;d--)f(c[d].bbox,b)},dh:function(b){for(var c=b.length-1,e;0<=c;c--)0===b[c].children.length?0A||this.b[1]>D)?(x.width=A,x.height=D,this.b=[A,D],this.i=!Dm(this.b),this.c=null):(A=this.b[0],D=this.b[1],(x=p!=this.o)||(x=this.c,x=!(x.a<=y.a&&y.c<=x.c&&x.b<=y.b&&y.d<=x.d)),x&&(this.c=null)));var Q,O;null===this.c?(A/=q,D/=q,Q=y.a-Math.floor((A-(y.c-y.a+1))/2),O=y.b-Math.floor((D-(y.d-y.b+1))/2),this.o=p,this.p=q,this.c=new lf(Q,Q+A-1,O,O+D-1),this.n=Array(A*D),D=this.c):(D=this.c,A=D.c-D.a+1);x={};x[p]={};var W=[],Ja=this.ed(h,x),lb=g.ea(),Ka=Td(),mb=new lf(0, 0,0,0),Pb,Ya,Ub;for(O=y.a;O<=y.c;++O)for(Ub=y.b;Ub<=y.d;++Ub)Ya=h.Vb(p,O,Ub,d,f),Q=Ya.state,2==Q||4==Q||3==Q&&!lb?x[p][kf(Ya.a)]=Ya:(Pb=k.gd(Ya.a,Ja,null,mb,Ka),Pb||(W.push(Ya),Pb=k.td(Ya.a,mb,Ka),null===Pb||Ja(p+1,Pb)));Ja=0;for(Pb=W.length;JaW&&Gf(this.target,y.target,0)}else{if(!b.viewHints[0]&&!b.viewHints[1]){M=Xi(y.c,s,y.b[0],D);W=[];x=O=void 0;for(x in y.d)O=y.d[x],M.contains(O.a)||W.push(O); lb=M=void 0;M=0;for(lb=W.length;M=k;){n=this.b[p];u=this.k[p];x=ma(u).toString();if(!m(r[x])&&(!m(z)||qe(z,u.R().J()))&&(g.clear(g.COLOR_BUFFER_BIT|g.DEPTH_BUFFER_BIT),g.drawElements(4,q-n,e,n*b),q=s(u))){r=q;break a}q=n;p--}r=void 0}else g.clear(g.COLOR_BUFFER_BIT|g.DEPTH_BUFFER_BIT),ao(this,g,b,r,this.g,this.e),r=(r=s(null))?r:void 0;x=r}else ao(this,g,b,r,this.ia,this.o);g.disableVertexAttribArray(A.c); g.disableVertexAttribArray(A.a);g.disableVertexAttribArray(A.f);g.disableVertexAttribArray(A.d);g.disableVertexAttribArray(A.b);return x}; function ao(b,c,d,e,f,g){var h=d.b?5125:5123;d=d.b?4:2;if(wb(e)){var k;b=0;e=f.length;for(k=0;bc[0]|| c[0]>f[0]||0>c[1]||c[1]>f[1])&&(null===this.g&&(this.g=Mf(1,1)),this.g.clearRect(0,0,1,1),this.g.drawImage(this.c.a(),c[0],c[1],1,1,0,0,1,1),0e?c[0]=e-d:0>f&&(c[0]=Math.abs(f)+d), 0>g?c[1]=g-d:0>h&&(c[1]=Math.abs(h)+d),0===c[0]&&0===c[1])||(d=b.a().b(),e=b.e(d),c=[e[0]+c[0],e[1]+c[1]],null!==this.g&&(this.g.source=d,b.La(df(this.g))),b.a().Ha(b.ra(c)))}}};l.Li=function(){Jo(this)};l.Me=function(b){this.set("element",b)};N.prototype.setElement=N.prototype.Me;N.prototype.setMap=function(b){this.set("map",b)};N.prototype.setMap=N.prototype.setMap;N.prototype.o=function(b){this.set("offset",b)};N.prototype.setOffset=N.prototype.o;N.prototype.e=function(b){this.set("position",b)}; N.prototype.setPosition=N.prototype.e;function Ko(b,c){var d=vf(b);Eg(b,"position");var e=new rf(0,0),f;f=d?vf(d):document;f=!Gb||Gb&&9<=Sb||Kf(tf(f))?f.documentElement:f.body;b!=f&&(f=Hg(b),d=Lf(tf(d)),e.x=f.left+d.x,e.y=f.top+d.y);return[e.x,e.y,e.x+c[0],e.y+c[1]]}N.prototype.p=function(b){this.set("positioning",b)};N.prototype.setPositioning=N.prototype.p; function Jo(b){var c=b.c(),d=b.q();if(m(c)&&null!==c.c&&m(d)){var d=c.e(d),e=c.f(),c=b.ba.style,f=b.i(),g=b.k(),h=f[0],f=f[1];if("bottom-right"==g||"center-right"==g||"top-right"==g)""!==b.a.Dd&&(b.a.Dd=c.left=""),h=Math.round(e[0]-d[0]-h)+"px",b.a.Zd!=h&&(b.a.Zd=c.right=h);else{""!==b.a.Zd&&(b.a.Zd=c.right="");if("bottom-center"==g||"center-center"==g||"top-center"==g)h-=Jg(b.ba).width/2;h=Math.round(d[0]+h)+"px";b.a.Dd!=h&&(b.a.Dd=c.left=h)}if("bottom-left"==g||"bottom-center"==g||"bottom-right"== g)""!==b.a.$d&&(b.a.$d=c.top=""),d=Math.round(e[1]-d[1]-f)+"px",b.a.bd!=d&&(b.a.bd=c.bottom=d);else{""!==b.a.bd&&(b.a.bd=c.bottom="");if("center-left"==g||"center-center"==g||"center-right"==g)f-=Jg(b.ba).height/2;d=Math.round(d[1]+f)+"px";b.a.$d!=d&&(b.a.$d=c.top=d)}b.a.visible||(Lg(b.ba,!0),b.a.visible=!0)}else b.a.visible&&(Lg(b.ba,!1),b.a.visible=!1)};function Lo(b){b=m(b)?b:{};this.e=m(b.collapsed)?b.collapsed:!0;this.g=m(b.collapsible)?b.collapsible:!0;this.g||(this.e=!1);var c=m(b.className)?b.className:"ol-overviewmap",d=m(b.tipLabel)?b.tipLabel:"Overview map",e=m(b.collapseLabel)?b.collapseLabel:"\u00ab";this.o=ia(e)?Af("SPAN",{},e):e;e=m(b.label)?b.label:"\u00bb";this.p=ia(e)?Af("SPAN",{},e):e;d=Af("BUTTON",{type:"button",title:d},this.g&&!this.e?this.o:this.p);w(d,"click",this.Jj,!1,this);w(d,["mouseout",vc],function(){this.blur()},!1); var e=Af("DIV","ol-overviewmap-map"),f=this.c=new L({controls:new kg,interactions:new kg,target:e});m(b.layers)&&b.layers.forEach(function(b){f.bf(b)},this);var g=Af("DIV","ol-overviewmap-box");this.k=new N({position:[0,0],positioning:"bottom-left",element:g});this.c.cf(this.k);c=Af("DIV",c+" ol-unselectable ol-control"+(this.e&&this.g?" ol-collapsed":"")+(this.g?"":" ol-uncollapsible"),e,d);Tg.call(this,{element:c,render:m(b.render)?b.render:Mo,target:b.target})}v(Lo,Tg);l=Lo.prototype; l.setMap=function(b){var c=this.a;null===b&&null!==c&&Wc(c,vd("view"),this.Gf,!1,this);Lo.T.setMap.call(this,b);null!==b&&(0===this.c.ea().Ib()&&this.c.K("layergroup",b),No(this),w(b,vd("view"),this.Gf,!1,this),this.c.q(),Oo(this))};function No(b){var c=b.a.a();null===c||b.c.a().K("rotation",c)} function Mo(){var b=this.a,c=this.c;if(null!==b.c&&null!==c.c){var d=b.f(),b=b.a().g(d),e=c.f(),d=c.a().g(e),f=c.e(ke(b)),c=c.e(ie(b)),c=new sf(Math.abs(f[0]-c[0]),Math.abs(f[1]-c[1])),f=e[0],e=e[1];c.width<.1*f||c.height<.1*e||c.width>.75*f||c.height>.75*e?Oo(this):$d(d,b)||(b=this.c,d=this.a.a(),b.a().Ha(d.b()))}Po(this)}l.Gf=function(){No(this)};function Oo(b){var c=b.a;b=b.c;var d=c.f(),c=c.a().g(d),d=b.f();b=b.a();var e=Math.log(7.5)/Math.LN2;te(c,1/(.1*Math.pow(2,e/2)));b.pe(c,d)} function Po(b){var c=b.a,d=b.c;if(null!==c.c&&null!==d.c){var e=c.f(),f=c.a(),g=d.a();d.f();var c=f.c(),h=b.k,d=b.k.b(),f=f.g(e),e=g.a(),g=he(f),f=je(f),k;b=b.a.a().b();m(b)&&(k=[g[0]-b[0],g[1]-b[1]],Bd(k,c),wd(k,b));h.e(k);null!=d&&(k=new sf(Math.abs((g[0]-f[0])/e),Math.abs((f[1]-g[1])/e)),c=Kf(tf(vf(d))),!Gb||Qb("10")||c&&Qb("8")?(d=d.style,Hb?d.MozBoxSizing="border-box":Ib?d.WebkitBoxSizing="border-box":d.boxSizing="border-box",d.width=Math.max(k.width,0)+"px",d.height=Math.max(k.height,0)+"px"): (b=d.style,c?(c=Og(d,"padding"),d=Rg(d),b.pixelWidth=k.width-d.left-c.left-c.right-d.right,b.pixelHeight=k.height-d.top-c.top-c.bottom-d.bottom):(b.pixelWidth=k.width,b.pixelHeight=k.height)))}}l.Jj=function(b){b.preventDefault();Qo(this)};function Qo(b){zg(b.element,"ol-collapsed");b.e?If(b.o,b.p):If(b.p,b.o);b.e=!b.e;var c=b.c;b.e||null!==c.c||(c.q(),Oo(b),Vc(c,"postrender",function(){Po(this)},!1,b))}l.Ij=function(){return this.g}; l.Lj=function(b){this.g!==b&&(this.g=b,zg(this.element,"ol-uncollapsible"),!b&&this.e&&Qo(this))};l.Kj=function(b){this.g&&this.e!==b&&Qo(this)};l.Hj=function(){return this.e};function Ro(b){b=m(b)?b:{};var c=m(b.className)?b.className:"ol-scale-line";this.g=Af("DIV",c+"-inner");this.ba=Af("DIV",c+" ol-unselectable",this.g);this.r=null;this.k=m(b.minWidth)?b.minWidth:64;this.c=!1;this.H=void 0;this.D="";this.e=null;Tg.call(this,{element:this.ba,render:m(b.render)?b.render:So,target:b.target});w(this,vd("units"),this.N,!1,this);this.p(b.units||"metric")}v(Ro,Tg);var To=[1,2,5];Ro.prototype.o=function(){return this.get("units")};Ro.prototype.getUnits=Ro.prototype.o; function So(b){b=b.frameState;null===b?this.r=null:this.r=b.viewState;Uo(this)}Ro.prototype.N=function(){Uo(this)};Ro.prototype.p=function(b){this.set("units",b)};Ro.prototype.setUnits=Ro.prototype.p; function Uo(b){var c=b.r;if(null===c)b.c&&(Lg(b.ba,!1),b.c=!1);else{var d=c.center,e=c.projection,c=e.te(c.resolution,d),f=e.d,g=b.o();"degrees"!=f||"metric"!=g&&"imperial"!=g&&"us"!=g&&"nautical"!=g?"degrees"!=f&&"degrees"==g?(null===b.e&&(b.e=Ae(e,Be("EPSG:4326"))),d=Math.cos(Zb(b.e(d)[1])),e=we.radius,e/=xe[f],c*=180/(Math.PI*d*e)):b.e=null:(b.e=null,d=Math.cos(Zb(d[1])),c*=Math.PI*d*we.radius/180);d=b.k*c;f="";"degrees"==g?d<1/60?(f="\u2033",c*=3600):1>d?(f="\u2032",c*=60):f="\u00b0":"imperial"== g?.9144>d?(f="in",c/=.0254):1609.344>d?(f="ft",c/=.3048):(f="mi",c/=1609.344):"nautical"==g?(c/=1852,f="nm"):"metric"==g?1>d?(f="mm",c*=1E3):1E3>d?f="m":(f="km",c/=1E3):"us"==g&&(.9144>d?(f="in",c*=39.37):1609.344>d?(f="ft",c/=.30480061):(f="mi",c/=1609.3472));for(d=3*Math.floor(Math.log(b.k*c)/Math.log(10));;){e=To[d%3]*Math.pow(10,Math.floor(d/3));g=Math.round(e/c);if(isNaN(g)){Lg(b.ba,!1);b.c=!1;return}if(g>=b.k)break;++d}c=e+" "+f;b.D!=c&&(b.g.innerHTML=c,b.D=c);b.H!=g&&(b.g.style.width=g+"px", b.H=g);b.c||(Lg(b.ba,!0),b.c=!0)}};function Vo(b){mc.call(this);this.d=b;this.a={}}v(Vo,mc);var Wo=[];Vo.prototype.Ra=function(b,c,d,e){ga(c)||(c&&(Wo[0]=c.toString()),c=Wo);for(var f=0;fd.height?(this.g=1,d=new Bg(0,0,e,0)):(this.g=gp,d=new Bg(0,0,0,c));this.c.a=d||new Bg(NaN,NaN,NaN,NaN);this.o=!0}b=b.frameState.viewState.resolution;b!==this.e&&(this.e=b,b=1-Xe(this.a.a())(b),d=this.c,c=Jf(this.element),1==this.g?Fg(c,d.a.left+d.a.width*b):Fg(c, d.a.left,d.a.top+d.a.height*b))}}l.ni=function(b){var c=this.a,d=c.a(),e=d.a();c.La(ff({resolution:e,duration:200,easing:$e}));b=ip(this,b.offsetX-this.k[0]/2,b.offsetY-this.k[1]/2);b=jp(this,b);d.f(d.constrainResolution(b))};l.qi=function(){Ze(this.a.a(),1)};l.oi=function(b){b=ip(this,b.left,b.top);this.e=jp(this,b);this.a.a().f(this.e)};l.pi=function(){var b=this.a,c=b.a();Ze(c,-1);b.La(ff({resolution:this.e,duration:200,easing:$e}));b=c.constrainResolution(this.e);c.f(b)}; function ip(b,c,d){var e=b.c.a;return Wb(1===b.g?(c-e.left)/e.width:(d-e.top)/e.height,0,1)}function jp(b,c){return We(b.a.a())(1-c)};function kp(b){b=m(b)?b:{};this.c=m(b.extent)?b.extent:null;var c=m(b.className)?b.className:"ol-zoom-extent",d=Af("BUTTON",{type:"button",title:m(b.tipLabel)?b.tipLabel:"Fit to extent"},m(b.label)?b.label:"E");w(d,"click",this.e,!1,this);w(d,["mouseout",vc],function(){this.blur()},!1);c=Af("DIV",c+" ol-unselectable ol-control",d);Tg.call(this,{element:c,target:b.target})}v(kp,Tg); kp.prototype.e=function(b){b.preventDefault();var c=this.a;b=c.a();var d=null===this.c?b.p.J():this.c,c=c.f();b.pe(d,c)};function lp(b){rd.call(this);b=m(b)?b:{};this.a=null;w(this,vd("tracking"),this.k,!1,this);this.b(m(b.tracking)?b.tracking:!1)}v(lp,rd);lp.prototype.P=function(){this.b(!1);lp.T.P.call(this)}; lp.prototype.q=function(b){b=b.a;if(null!=b.alpha){var c=Zb(b.alpha);this.set("alpha",c);"boolean"==typeof b.absolute&&b.absolute?this.set("heading",c):null!=b.webkitCompassHeading&&null!=b.webkitCompassAccuracy&&-1!=b.webkitCompassAccuracy&&this.set("heading",Zb(b.webkitCompassHeading))}null!=b.beta&&this.set("beta",Zb(b.beta));null!=b.gamma&&this.set("gamma",Zb(b.gamma));this.l()};lp.prototype.f=function(){return this.get("alpha")};lp.prototype.getAlpha=lp.prototype.f;lp.prototype.e=function(){return this.get("beta")}; lp.prototype.getBeta=lp.prototype.e;lp.prototype.g=function(){return this.get("gamma")};lp.prototype.getGamma=lp.prototype.g;lp.prototype.i=function(){return this.get("heading")};lp.prototype.getHeading=lp.prototype.i;lp.prototype.c=function(){return this.get("tracking")};lp.prototype.getTracking=lp.prototype.c;lp.prototype.k=function(){if(Zf){var b=this.c();b&&null===this.a?this.a=w(ba,"deviceorientation",this.q,!1,this):b||null===this.a||(Xc(this.a),this.a=null)}}; lp.prototype.b=function(b){this.set("tracking",b)};lp.prototype.setTracking=lp.prototype.b;function mp(b){rd.call(this);this.i=b;w(this.i,["change","input"],this.g,!1,this);w(this,vd("value"),this.k,!1,this);w(this,vd("checked"),this.e,!1,this)}v(mp,rd);mp.prototype.a=function(){return this.get("checked")};mp.prototype.getChecked=mp.prototype.a;mp.prototype.b=function(){return this.get("value")};mp.prototype.getValue=mp.prototype.b;mp.prototype.f=function(b){this.set("value",b)};mp.prototype.setValue=mp.prototype.f;mp.prototype.c=function(b){this.set("checked",b)}; mp.prototype.setChecked=mp.prototype.c;mp.prototype.g=function(){var b=this.i;"checkbox"===b.type||"radio"===b.type?this.c(b.checked):this.f(b.value)};mp.prototype.e=function(){this.i.checked=this.a()};mp.prototype.k=function(){this.i.value=this.b()};function P(b){rd.call(this);this.aa=void 0;this.b="geometry";this.g=null;this.a=void 0;this.e=null;w(this,vd(this.b),this.xd,!1,this);m(b)&&(b instanceof kk||null===b?this.Sa(b):this.C(b))}v(P,rd);P.prototype.clone=function(){var b=new P(this.I());b.f(this.b);var c=this.R();null!=c&&b.Sa(c.clone());c=this.g;null===c||b.i(c);return b};P.prototype.R=function(){return this.get(this.b)};P.prototype.getGeometry=P.prototype.R;l=P.prototype;l.Kh=function(){return this.aa};l.Jh=function(){return this.b}; l.rj=function(){return this.g};l.sj=function(){return this.a};l.xi=function(){this.l()};l.xd=function(){null!==this.e&&(Xc(this.e),this.e=null);var b=this.R();null!=b&&(this.e=w(b,"change",this.xi,!1,this),this.l())};l.Sa=function(b){this.set(this.b,b)};P.prototype.setGeometry=P.prototype.Sa;P.prototype.i=function(b){this.g=b;null===b?b=void 0:ka(b)||(b=ga(b)?b:[b],b=ad(b));this.a=b;this.l()};P.prototype.c=function(b){this.aa=b;this.l()}; P.prototype.f=function(b){Wc(this,vd(this.b),this.xd,!1,this);this.b=b;w(this,vd(this.b),this.xd,!1,this);this.xd()};function np(b){b=m(b)?b:{};this.g=this.f=this.c=this.d=this.b=this.a=null;this.e=void 0;this.Ff(m(b.style)?b.style:tl);m(b.features)?ga(b.features)?this.Tc(new kg(b.features.slice())):this.Tc(b.features):this.Tc(new kg);m(b.map)&&this.setMap(b.map)}l=np.prototype;l.Df=function(b){this.a.push(b)};l.lj=function(){return this.a};l.mj=function(){return this.c};l.Ef=function(){op(this)};l.vi=function(b){b=b.element;this.d[ma(b).toString()]=w(b,"change",this.Ef,!1,this);op(this)}; l.wi=function(b){b=ma(b.element).toString();Xc(this.d[b]);delete this.d[b];op(this)};l.pj=function(){op(this)};l.qj=function(b){if(null!==this.a){var c=this.e;m(c)||(c=tl);var d=b.a;b=b.frameState;var e=b.viewState.resolution,f=Wm(e,b.pixelRatio),g,h,k,n;this.a.forEach(function(b){n=b.a;k=m(n)?n.call(b,e):c(b,e);if(null!=k)for(h=k.length,g=0;gd?b[1]="?":d==c.length-1&&(b[1]=void 0)}return b.join("")} function Ir(b,c,d){if(ga(c))for(var e=0;ec)throw Error("Bad port number "+c);b.tc=c}else b.tc=null}function Nr(b,c,d){c instanceof Pr?(b.a=c,Vr(b.a,b.Yb)):(d||(c=Qr(c,Wr)),b.a=new Pr(c,0,b.Yb))}function Xr(b){return b instanceof Kr?b.clone():new Kr(b,void 0)} function Yr(b,c){b instanceof Kr||(b=Xr(b));c instanceof Kr||(c=Xr(c));var d=b,e=c,f=d.clone(),g=!!e.Pb;g?Lr(f,e.Pb):g=!!e.gc;g?f.gc=e.gc:g=!!e.sb;g?f.sb=e.sb:g=null!=e.tc;var h=e.rb;if(g)Mr(f,e.tc);else if(g=!!e.rb)if("/"!=h.charAt(0)&&(d.sb&&!d.rb?h="/"+h:(d=f.rb.lastIndexOf("/"),-1!=d&&(h=f.rb.substr(0,d+1)+h))),d=h,".."==d||"."==d)h="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){for(var h=0==d.lastIndexOf("/",0),d=d.split("/"),k=[],n=0;n>4&15).toString(16)+(b&15).toString(16)} var Rr=/[#\/\?@]/g,Tr=/[\#\?:]/g,Sr=/[\#\?]/g,Wr=/[\#\?@]/g,Ur=/#/g;function Pr(b,c,d){this.a=b||null;this.d=!!d}function $r(b){b.ga||(b.ga=new th,b.ya=0,b.a&&Gr(b.a,function(c,d){b.add(decodeURIComponent(c.replace(/\+/g," ")),d)}))}l=Pr.prototype;l.ga=null;l.ya=null;l.Tb=function(){$r(this);return this.ya};l.add=function(b,c){$r(this);this.a=null;b=as(this,b);var d=this.ga.get(b);d||this.ga.set(b,d=[]);d.push(c);this.ya++;return this}; l.remove=function(b){$r(this);b=as(this,b);return vh(this.ga.d,b)?(this.a=null,this.ya-=this.ga.get(b).length,this.ga.remove(b)):!1};l.clear=function(){this.ga=this.a=null;this.ya=0};l.la=function(){$r(this);return 0==this.ya};function bs(b,c){$r(b);c=as(b,c);return vh(b.ga.d,c)}l.G=function(){$r(this);for(var b=this.ga.ob(),c=this.ga.G(),d=[],e=0;ee;++e){var f=parseInt(d[e],10).toString(16);d[e]=1==f.length?"0"+f:f}Cq(b,d.join(""))} function dt(b,c,d){pq({node:b},et,ft,[c],d)}function gt(b,c,d){var e={node:b};null!=c.aa&&b.setAttribute("id",c.aa);b=c.I();var f=c.a;m(f)&&(f=f.call(c,0),null!==f&&0f?~(f<<1):f<<1;d="";e=0;for(f=b.length;e>=5;h=g+63;k+=String.fromCharCode(h);d+=k}return d} function qu(b,c){var d=m(c)?c:1E5,e=[],f=0,g=0,h,k;h=0;for(k=b.length;hn?(e.push(f),g=f=0):g+=5}f=0;for(g=e.length;f>1):h>>1;f=0;for(g=e.length;f=b||"."==b&&!d} function Su(b){var c=b.d.charAt(++b.a),d={position:b.a,value:c};if("("==c)d.type=2;else if(","==c)d.type=5;else if(")"==c)d.type=3;else if(Uu(c)||"-"==c){d.type=4;var e,c=b.a,f=!1;do"."==e&&(f=!0),e=b.d.charAt(++b.a);while(Uu(e,f));b=parseFloat(b.d.substring(c,b.a--));d.value=b}else if("a"<=c&&"z">=c||"A"<=c&&"Z">=c){d.type=1;c=b.a;do e=b.d.charAt(++b.a);while("a"<=e&&"z">=e||"A"<=e&&"Z">=e);b=b.d.substring(c,b.a--).toUpperCase();d.value=b}else{if(" "==c||"\t"==c||"\r"==c||"\n"==c)return Su(b);if(""=== c)d.type=6;else throw Error("Unexpected character: "+c);}return d}function Qu(b){this.d=b}l=Qu.prototype;l.match=function(b){if(b=this.a.type==b)this.a=Su(this.d);return b}; function Tu(b){var c=b.a;if(b.match(1)){var d=c.value;if("GEOMETRYCOLLECTION"==d){a:{if(b.match(2)){c=[];do c.push(Tu(b));while(b.match(5));if(b.match(3)){b=c;break a}}else if(Vu(b)){b=[];break a}throw Error(Wu(b));}return new Gm(b)}var e=Xu[d],c=Yu[d];if(!m(e)||!m(c))throw Error("Invalid geometry type: "+d);b=e.call(b);return new c(b)}throw Error(Wu(b));}l.Ee=function(){if(this.match(2)){var b=Zu(this);if(this.match(3))return b}else if(Vu(this))return null;throw Error(Wu(this));}; l.De=function(){if(this.match(2)){var b=$u(this);if(this.match(3))return b}else if(Vu(this))return[];throw Error(Wu(this));};l.Fe=function(){if(this.match(2)){var b=av(this);if(this.match(3))return b}else if(Vu(this))return[];throw Error(Wu(this));};l.nl=function(){if(this.match(2)){var b;if(2==this.a.type)for(b=[this.Ee()];this.match(5);)b.push(this.Ee());else b=$u(this);if(this.match(3))return b}else if(Vu(this))return[];throw Error(Wu(this));}; l.ml=function(){if(this.match(2)){var b=av(this);if(this.match(3))return b}else if(Vu(this))return[];throw Error(Wu(this));};l.ol=function(){if(this.match(2)){for(var b=[this.Fe()];this.match(5);)b.push(this.Fe());if(this.match(3))return b}else if(Vu(this))return[];throw Error(Wu(this));};function Zu(b){for(var c=[],d=0;2>d;++d){var e=b.a;if(b.match(4))c.push(e.value);else break}if(2==c.length)return c;throw Error(Wu(b));}function $u(b){for(var c=[Zu(b)];b.match(5);)c.push(Zu(b));return c} function av(b){for(var c=[b.De()];b.match(5);)c.push(b.De());return c}function Vu(b){var c=1==b.a.type&&"EMPTY"==b.a.value;c&&(b.a=Su(b.d));return c}function Wu(b){return"Unexpected `"+b.a.value+"` at position "+b.a.position+" in `"+b.d.d+"`"}var Yu={POINT:Ik,LINESTRING:K,POLYGON:F,MULTIPOINT:Rm,MULTILINESTRING:Om,MULTIPOLYGON:Sm},Xu={POINT:Qu.prototype.Ee,LINESTRING:Qu.prototype.De,POLYGON:Qu.prototype.Fe,MULTIPOINT:Qu.prototype.nl,MULTILINESTRING:Qu.prototype.ml,MULTIPOLYGON:Qu.prototype.ol};function bv(){this.version=void 0}v(bv,Vt);bv.prototype.d=function(b){for(b=b.firstChild;null!==b;b=b.nextSibling)if(1==b.nodeType)return this.a(b);return null};bv.prototype.a=function(b){this.version=Aa(b.getAttribute("version"));b=U({version:this.version},cv,b,[]);return m(b)?b:null};function dv(b,c){return U({},ev,b,c)}function fv(b,c){return U({},gv,b,c)}function hv(b,c){var d=dv(b,c);if(m(d)){var e=[Aq(b.getAttribute("width")),Aq(b.getAttribute("height"))];d.size=e;return d}} function iv(b,c){return U([],jv,b,c)} var kv=[null,"http://www.opengis.net/wms"],cv=S(kv,{Service:R(function(b,c){return U({},lv,b,c)}),Capability:R(function(b,c){return U({},mv,b,c)})}),mv=S(kv,{Request:R(function(b,c){return U({},nv,b,c)}),Exception:R(function(b,c){return U([],ov,b,c)}),Layer:R(function(b,c){return U({},pv,b,c)})}),lv=S(kv,{Name:R(V),Title:R(V),Abstract:R(V),KeywordList:R(iv),OnlineResource:R(Ut),ContactInformation:R(function(b,c){return U({},qv,b,c)}),Fees:R(V),AccessConstraints:R(V),LayerLimit:R(zq),MaxWidth:R(zq), MaxHeight:R(zq)}),qv=S(kv,{ContactPersonPrimary:R(function(b,c){return U({},rv,b,c)}),ContactPosition:R(V),ContactAddress:R(function(b,c){return U({},sv,b,c)}),ContactVoiceTelephone:R(V),ContactFacsimileTelephone:R(V),ContactElectronicMailAddress:R(V)}),rv=S(kv,{ContactPerson:R(V),ContactOrganization:R(V)}),sv=S(kv,{AddressType:R(V),Address:R(V),City:R(V),StateOrProvince:R(V),PostCode:R(V),Country:R(V)}),ov=S(kv,{Format:fq(V)}),pv=S(kv,{Name:R(V),Title:R(V),Abstract:R(V),KeywordList:R(iv),CRS:hq(V), EX_GeographicBoundingBox:R(function(b,c){var d=U({},tv,b,c);if(m(d)){var e=d.westBoundLongitude,f=d.southBoundLatitude,g=d.eastBoundLongitude,d=d.northBoundLatitude;return m(e)&&m(f)&&m(g)&&m(d)?[e,f,g,d]:void 0}}),BoundingBox:hq(function(b){var c=[yq(b.getAttribute("minx")),yq(b.getAttribute("miny")),yq(b.getAttribute("maxx")),yq(b.getAttribute("maxy"))],d=[yq(b.getAttribute("resx")),yq(b.getAttribute("resy"))];return{crs:b.getAttribute("CRS"),extent:c,res:d}}),Dimension:hq(function(b){return{name:b.getAttribute("name"), units:b.getAttribute("units"),unitSymbol:b.getAttribute("unitSymbol"),"default":b.getAttribute("default"),multipleValues:vq(b.getAttribute("multipleValues")),nearestValue:vq(b.getAttribute("nearestValue")),current:vq(b.getAttribute("current")),values:V(b)}}),Attribution:R(function(b,c){return U({},uv,b,c)}),AuthorityURL:hq(function(b,c){var d=dv(b,c);if(m(d))return d.name=b.getAttribute("name"),d}),Identifier:hq(V),MetadataURL:hq(function(b,c){var d=dv(b,c);if(m(d))return d.type=b.getAttribute("type"), d}),DataURL:hq(dv),FeatureListURL:hq(dv),Style:hq(function(b,c){return U({},vv,b,c)}),MinScaleDenominator:R(xq),MaxScaleDenominator:R(xq),Layer:hq(function(b,c){var d=c[c.length-1],e=U({},pv,b,c);if(m(e)){var f=vq(b.getAttribute("queryable"));m(f)||(f=d.queryable);e.queryable=m(f)?f:!1;f=Aq(b.getAttribute("cascaded"));m(f)||(f=d.cascaded);e.cascaded=f;f=vq(b.getAttribute("opaque"));m(f)||(f=d.opaque);e.opaque=m(f)?f:!1;f=vq(b.getAttribute("noSubsets"));m(f)||(f=d.noSubsets);e.noSubsets=m(f)?f:!1; f=yq(b.getAttribute("fixedWidth"));m(f)||(f=d.fixedWidth);e.fixedWidth=f;f=yq(b.getAttribute("fixedHeight"));m(f)||(f=d.fixedHeight);e.fixedHeight=f;Qa(["Style","CRS","AuthorityURL"],function(b){var c=d[b];if(m(c)){var f=Ab(e,b),f=f.concat(c);e[b]=f}});Qa("EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" "),function(b){m(e[b])||(e[b]=d[b])});return e}})}),uv=S(kv,{Title:R(V),OnlineResource:R(Ut),LogoURL:R(hv)}),tv=S(kv,{westBoundLongitude:R(xq), eastBoundLongitude:R(xq),southBoundLatitude:R(xq),northBoundLatitude:R(xq)}),nv=S(kv,{GetCapabilities:R(fv),GetMap:R(fv),GetFeatureInfo:R(fv)}),gv=S(kv,{Format:hq(V),DCPType:hq(function(b,c){return U({},wv,b,c)})}),wv=S(kv,{HTTP:R(function(b,c){return U({},xv,b,c)})}),xv=S(kv,{Get:R(dv),Post:R(dv)}),vv=S(kv,{Name:R(V),Title:R(V),Abstract:R(V),LegendURL:hq(hv),StyleSheetURL:R(dv),StyleURL:R(dv)}),ev=S(kv,{Format:R(V),OnlineResource:R(Ut)}),jv=S(kv,{Keyword:fq(V)});function yv(){this.b="http://mapserver.gis.umn.edu/mapserver";this.d=new Oq;this.defaultDataProjection=null}v(yv,qq); function zv(b,c,d){c.namespaceURI=b.b;var e=Op(c),f=[];if(0===c.childNodes.length)return f;"msGMLOutput"==e&&Qa(c.childNodes,function(b){if(1===b.nodeType){var c=d[0],e=b.localName,n=RegExp,p;p="_layer".replace(/([-()\[\]{}+?*.$\^|,:#=c.n&&c.cancel())}this.o?this.o.call(this.q,this):this.i=!0;this.a||(b=new yw,zw(this),Aw(this,!1,b))}};xw.prototype.k=function(b,c){this.g=!1;Aw(this,b,c)};function Aw(b,c,d){b.a=!0;b.b=d;b.c=!c;Bw(b)} function zw(b){if(b.a){if(!b.i)throw new Cw;b.i=!1}}function Dw(b,c,d,e){b.f.push([c,d,e]);b.a&&Bw(b)}xw.prototype.then=function(b,c,d){var e,f,g=new jw(function(b,c){e=b;f=c});Dw(this,e,function(b){b instanceof yw?g.cancel():f(b)});return g.then(b,c,d)};aw(xw);function Ew(b){return Ta(b.f,function(b){return ka(b[1])})} function Bw(b){if(b.e&&b.a&&Ew(b)){var c=b.e,d=Fw[c];d&&(ba.clearTimeout(d.aa),delete Fw[c]);b.e=0}b.d&&(b.d.n--,delete b.d);for(var c=b.b,e=d=!1;b.f.length&&!b.g;){var f=b.f.shift(),g=f[0],h=f[1],f=f[2];if(g=b.c?h:g)try{var k=g.call(f||b.q,c);m(k)&&(b.c=b.c&&(k==c||k instanceof Error),b.b=c=k);bw(c)&&(e=!0,b.g=!0)}catch(n){c=n,b.c=!0,Ew(b)||(d=!0)}}b.b=c;e&&(k=ra(b.k,b,!0),e=ra(b.k,b,!1),c instanceof xw?(Dw(c,k,e),c.p=!0):c.then(k,e));d&&(c=new Gw(c),Fw[c.aa]=c,b.e=c.aa)} function Cw(){wa.call(this)}v(Cw,wa);Cw.prototype.message="Deferred has already fired";Cw.prototype.name="AlreadyCalledError";function yw(){wa.call(this)}v(yw,wa);yw.prototype.message="Deferred was canceled";yw.prototype.name="CanceledError";function Gw(b){this.aa=ba.setTimeout(ra(this.d,this),0);this.a=b}Gw.prototype.d=function(){delete Fw[this.aa];throw this.a;};var Fw={};function Hw(b,c){m(b.name)?(this.name=b.name,this.code=Iw[b.name]):(this.code=b.code,this.name=Jw(b.code));wa.call(this,za("%s %s",this.name,c))}v(Hw,wa);function Jw(b){var c=vb(Iw,function(c){return b==c});if(!m(c))throw Error("Invalid code: "+b);return c}var Iw={AbortError:3,EncodingError:5,InvalidModificationError:9,InvalidStateError:7,NotFoundError:1,NotReadableError:4,NoModificationAllowedError:6,PathExistsError:12,QuotaExceededError:10,SecurityError:2,SyntaxError:8,TypeMismatchError:11};function Kw(b,c){rc.call(this,b.type,c)}v(Kw,rc);function Lw(){id.call(this);this.hb=new FileReader;this.hb.onloadstart=ra(this.a,this);this.hb.onprogress=ra(this.a,this);this.hb.onload=ra(this.a,this);this.hb.onabort=ra(this.a,this);this.hb.onerror=ra(this.a,this);this.hb.onloadend=ra(this.a,this)}v(Lw,id);Lw.prototype.getError=function(){return this.hb.error&&new Hw(this.hb.error,"reading file")};Lw.prototype.a=function(b){this.dispatchEvent(new Kw(b,this))};Lw.prototype.P=function(){Lw.T.P.call(this);delete this.hb}; function Mw(b){var c=new xw;b.Ra("loadend",sa(function(b,c){var f=c.hb.result,g=c.getError();null==f||g?(zw(b),Aw(b,!1,g)):(zw(b),Aw(b,!0,f));c.Jc()},c,b));return c};function Nw(b){b=m(b)?b:{};Mj.call(this,{handleEvent:cd});this.e=m(b.formatConstructors)?b.formatConstructors:[];this.q=m(b.projection)?Be(b.projection):null;this.f=null;this.a=void 0}v(Nw,Mj);Nw.prototype.P=function(){m(this.a)&&Xc(this.a);Nw.T.P.call(this)};Nw.prototype.g=function(b){b=b.a.dataTransfer.files;var c,d,e;c=0;for(d=b.length;c=e*e+c*c&&(ex(this,b),null===this.i?fx(this,b):this.a===$w||this.a===cx&&null!==this.i||gx(this,b)?this.W():(b=b.coordinate,e=this.g.R(),this.a===ax?(this.i=b.slice(),c=e.Q(),c.push(b.slice()),e.V(c)):this.a===bx&&(this.e[0].push(b.slice()),e.V(this.e)),hx(this)),d=!1);return d} function ex(b,c){if(b.a===$w&&null===b.i)fx(b,c);else if(null===b.i){var d=c.coordinate.slice();null===b.o?(b.o=new P(new Ik(d)),hx(b)):b.o.R().V(d)}else{var d=c.coordinate,e=b.g.R(),f,g;b.a===$w?(g=e.Q(),g[0]=d[0],g[1]=d[1],e.V(g)):(b.a===ax?f=e.Q():b.a===bx?f=b.e[0]:b.a===cx&&(f=e.Oc()),gx(b,c)&&(d=b.i.slice()),b.o.R().V(d),g=f[f.length-1],g[0]=d[0],g[1]=d[1],b.a===ax?e.V(f):b.a===bx?(g=b.q.R(),g.V(f),e.V(b.e)):b.a===cx&&(g=b.q.R(),g.V([e.Oc(),d]),e.If(g.Jf())));hx(b)}return!0} function gx(b,c){var d=!1;if(null!==b.g){var e=b.g.R(),f=!1,g=[b.i];b.a===ax?f=2b.Fa,g=[b.e[0][0],b.e[0][b.e[0].length-2]]);if(f)for(var e=c.map,f=0,h=g.length;fd?h[1]:h[0]);qx(b,k);d={};d[ma(h)]=!0;c=1;for(n=g.length;cd&&(b.index+=f)})}function ox(){var b=ul();return function(){return b.Point}};function sx(b,c,d){rc.call(this,b);this.selected=c;this.deselected=d}v(sx,rc); function tx(b){Mj.call(this,{handleEvent:ux});b=m(b)?b:{};this.i=m(b.condition)?b.condition:Uj;this.e=m(b.addCondition)?b.addCondition:bd;this.p=m(b.removeCondition)?b.removeCondition:bd;this.D=m(b.toggleCondition)?b.toggleCondition:Wj;this.g=m(b.multi)?b.multi:!1;var c;if(m(b.layers))if(ka(b.layers))c=b.layers;else{var d=b.layers;c=function(b){return Wa(d,b)}}else c=cd;this.f=c;this.a=new np({style:m(b.style)?b.style:vx()});b=this.a.a;w(b,"add",this.q,!1,this);w(b,"remove",this.r,!1,this)}v(tx,Mj); tx.prototype.o=function(){return this.a.a}; function ux(b){if(!this.i(b))return!0;var c=this.e(b),d=this.p(b),e=this.D(b),f=b.map,g=this.a.a,h=[],k=[],n=!1;if(c||d||e){f.qe(b.pixel,function(b){-1==Pa(g.a,b)?(c||e)&&k.push(b):(d||e)&&h.push(b)},void 0,this.f);for(f=h.length-1;0<=f;--f)g.remove(h[f]);g.ye(k);if(0q||p<=q)return null;b=b[2];return b<-p||-1=this.minZoom;--b)if(e.a=e.c>>=1,e.b=e.d>>=1,c.call(d,b,e))return!0;return!1};function Tx(b){Qx.call(this,{crossOrigin:"anonymous",opaque:!0,projection:Be("EPSG:3857"),state:"loading",tileLoadFunction:b.tileLoadFunction});this.c=m(b.culture)?b.culture:"en-us";this.b=m(b.maxZoom)?b.maxZoom:-1;this.i=m(b.wrapX)?b.wrapX:!0;var c=new Kr((Tb?"https:":"http:")+"//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+b.imagerySet);(new Fx(c,"jsonp")).send({include:"ImageryProviders",uriScheme:Tb?"https":"http",key:b.key},ra(this.e,this))}v(Tx,Qx);var Ux=new pf({html:'Terms of Use'}); Tx.prototype.e=function(b){if(200!=b.statusCode||"OK"!=b.statusDescription||"ValidCredentials"!=b.authenticationResultCode||1!=b.resourceSets.length||1!=b.resourceSets[0].resources.length)Ki(this,"error");else{var c=b.brandLogoUri;Tb&&-1==c.indexOf("https")&&(c=c.replace("http","https"));var d=b.resourceSets[0].resources[0],e=-1==this.b?d.zoomMax:this.b,f=new Sx({extent:bj(this.g),minZoom:d.zoomMin,maxZoom:e,tileSize:d.imageWidth});this.tileGrid=f;var g=this.c;this.tileUrlFunction=Ox(f.Db({wrapX:this.i}), Mx(Sa(d.imageUrlSubdomains,function(b){var c=d.imageUrl.replace("{subdomain}",b).replace("{culture}",g);return function(b){return null===b?void 0:c.replace("{quadkey}",jf(b))}})));if(d.imageryProviders){var h=Ae(Be("EPSG:4326"),this.g);b=Sa(d.imageryProviders,function(b){var c=b.attribution,d={};Qa(b.coverageAreas,function(b){var c=b.zoomMin,g=Math.min(b.zoomMax,e);b=b.bbox;b=ue([b[1],b[0],b[3],b[2]],h);var k,n;for(k=c;k<=g;++k)n=k.toString(),c=Xi(f,b,k),n in d?d[n].push(c):d[n]=[c]});return new pf({html:c, tileRanges:d})});b.push(Ux);this.f=b}this.D=c;Ki(this,"ready")}};function Vx(b){kn.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,projection:b.projection});this.p=void 0;this.r=m(b.distance)?b.distance:20;this.o=[];this.a=b.source;this.a.s("change",Vx.prototype.N,this)}v(Vx,kn);Vx.prototype.H=function(){return this.a};Vx.prototype.Hb=function(b,c,d){c!==this.p&&(this.clear(),this.p=c,this.a.Hb(b,c,d),Wx(this),this.Ga(this.o))};Vx.prototype.N=function(){this.clear();Wx(this);this.Ga(this.o);this.l()}; function Wx(b){if(m(b.p)){b.o.length=0;for(var c=Td(),d=b.r*b.p,e=b.a.Aa(),f={},g=0,h=e.length;gk*h?g*f/(k*p):h*f/(n*p);d=le(d);e={OPERATION:this.S?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.e,SETDISPLAYWIDTH:Math.round(e[0]),SETDISPLAYHEIGHT:Math.round(e[1]),SETVIEWSCALE:f,SETVIEWCENTERX:d[0],SETVIEWCENTERY:d[1]};Db(e,c);return Hr(Jr([b],e))};l.ak=function(b){this.b=null;this.a=b;this.l()};function zy(b){var c=m(b.attributions)?b.attributions:null,d=b.imageExtent,e,f;m(b.imageSize)&&(e=oe(d)/b.imageSize[1],f=[e]);var g=m(b.crossOrigin)?b.crossOrigin:null,h=m(b.imageLoadFunction)?b.imageLoadFunction:bn;$m.call(this,{attributions:c,logo:b.logo,projection:Be(b.projection),resolutions:f});this.a=new Vv(d,e,1,c,b.url,g,h)}v(zy,$m);zy.prototype.sc=function(b){return qe(b,this.a.J())?this.a:null};function Ay(b){b=m(b)?b:{};$m.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection,resolutions:b.resolutions});this.N=m(b.crossOrigin)?b.crossOrigin:null;this.c=b.url;this.k=m(b.imageLoadFunction)?b.imageLoadFunction:bn;this.a=b.params;this.e=!0;By(this);this.H=b.serverType;this.S=m(b.hidpi)?b.hidpi:!0;this.b=null;this.o=[0,0];this.r=0;this.p=m(b.ratio)?b.ratio:1.5}v(Ay,$m);var Cy=[101,101];l=Ay.prototype; l.hk=function(b,c,d,e){if(m(this.c)){var f=ne(b,c,0,Cy),g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.a.LAYERS};Db(g,this.a,e);e=Math.floor((f[3]-b[1])/c);g[this.e?"I":"X"]=Math.floor((b[0]-f[0])/c);g[this.e?"J":"Y"]=e;return Dy(this,f,Cy,1,Be(d),g)}};l.jk=function(){return this.a}; l.sc=function(b,c,d,e){if(!m(this.c))return null;c=an(this,c);1==d||this.S&&m(this.H)||(d=1);var f=this.b;if(null!==f&&this.r==this.d&&f.resolution==c&&f.f==d&&$d(f.J(),b))return f;f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Db(f,this.a);b=b.slice();var g=(b[0]+b[2])/2,h=(b[1]+b[3])/2;if(1!=this.p){var k=this.p*re(b)/2,n=this.p*oe(b)/2;b[0]=g-k;b[1]=h-n;b[2]=g+k;b[3]=h+n}var k=c/d,n=Math.ceil(re(b)/k),p=Math.ceil(oe(b)/k);b[0]=g-k*n/2;b[2]=g+k*n/2;b[1]=h-k* p/2;b[3]=h+k*p/2;this.o[0]=n;this.o[1]=p;e=Dy(this,b,this.o,d,e,f);this.b=new Vv(b,c,d,this.f,e,this.N,this.k);this.r=this.d;return this.b};l.ik=function(){return this.k}; function Dy(b,c,d,e,f,g){g[b.e?"CRS":"SRS"]=f.a;"STYLES"in b.a||(g.STYLES=new String(""));if(1!=e)switch(b.H){case "geoserver":g.FORMAT_OPTIONS="dpi:"+(90*e+.5|0);break;case "mapserver":g.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":g.DPI=90*e}g.WIDTH=d[0];g.HEIGHT=d[1];d=f.b;var h;b.e&&"ne"==d.substr(0,2)?h=[c[1],c[0],c[3],c[2]]:h=c;g.BBOX=h.join(",");return Hr(Jr([b.c],g))}l.kk=function(){return this.c};l.lk=function(b){this.b=null;this.k=b;this.l()}; l.mk=function(b){b!=this.c&&(this.c=b,this.b=null,this.l())};l.nk=function(b){Db(this.a,b);By(this);this.b=null;this.l()};function By(b){b.e=0<=Ma(zb(b.a,"VERSION","1.3.0"),"1.3")};function Ey(b){b=m(b)?b:{};$.call(this,{attributions:b.attributions,doc:b.doc,format:new es({extractStyles:b.extractStyles,defaultStyle:b.defaultStyle}),logo:b.logo,node:b.node,projection:b.projection,text:b.text,url:b.url,urls:b.urls})}v(Ey,$);function Fy(b){var c=m(b.projection)?b.projection:"EPSG:3857",d=new Sx({extent:bj(c),maxZoom:b.maxZoom,tileSize:b.tileSize});Qx.call(this,{attributions:b.attributions,crossOrigin:b.crossOrigin,logo:b.logo,projection:c,tileGrid:d,tileLoadFunction:b.tileLoadFunction,tilePixelRatio:b.tilePixelRatio,tileUrlFunction:Nx});this.i=d.Db({wrapX:b.wrapX});m(b.tileUrlFunction)?this.ta(b.tileUrlFunction):m(b.urls)?this.ta(Lx(b.urls)):m(b.url)&&this.b(b.url)}v(Fy,Qx); Fy.prototype.ta=function(b){Fy.T.ta.call(this,Ox(this.i,b))};Fy.prototype.b=function(b){this.ta(Lx(Px(b)))};function Gy(b){b=m(b)?b:{};var c;m(b.attributions)?c=b.attributions:c=[Hy];var d=Tb?"https:":"http:";Fy.call(this,{attributions:c,crossOrigin:m(b.crossOrigin)?b.crossOrigin:"anonymous",opaque:!0,maxZoom:m(b.maxZoom)?b.maxZoom:19,tileLoadFunction:b.tileLoadFunction,url:m(b.url)?b.url:d+"//{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:b.wrapX})}v(Gy,Fy);var Hy=new pf({html:'© OpenStreetMap contributors.'});function Iy(b){b=m(b)?b:{};var c=Jy[b.layer];this.c=b.layer;var d=Tb?"https:":"http:";Fy.call(this,{attributions:c.attributions,crossOrigin:"anonymous",logo:"//developer.mapquest.com/content/osm/mq_logo.png",maxZoom:c.maxZoom,opaque:!0,tileLoadFunction:b.tileLoadFunction,url:m(b.url)?b.url:d+"//otile{1-4}-s.mqcdn.com/tiles/1.0.0/"+this.c+"/{z}/{x}/{y}.jpg"})}v(Iy,Fy); var Ky=new pf({html:'Tiles Courtesy of MapQuest'}),Jy={osm:{maxZoom:19,attributions:[Ky,Hy]},sat:{maxZoom:18,attributions:[Ky,new pf({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[Ky,Hy]}};Iy.prototype.e=function(){return this.c};function Ly(b){b=m(b)?b:{};$.call(this,{attributions:b.attributions,doc:b.doc,format:new Ot,logo:b.logo,node:b.node,projection:b.projection,text:b.text,url:b.url,urls:b.urls})}v(Ly,$);function My(b){Z.call(this,{attributions:b.attributions,format:b.format,logo:b.logo,projection:b.projection});this.p=new en;this.r=b.loader;this.H=m(b.strategy)?b.strategy:xx;this.o={}}v(My,Z);My.prototype.lb=function(b){var c=[],d,e;d=0;for(e=b.length;dStamen Design, under CC BY 3.0.'}),Hy];function Ry(b){b=m(b)?b:{};var c=m(b.params)?b.params:{};Qx.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection,tileGrid:b.tileGrid,tileLoadFunction:b.tileLoadFunction,tileUrlFunction:ra(this.rk,this)});var d=b.urls;!m(d)&&m(b.url)&&(d=Px(b.url));this.c=null!=d?d:[];this.b=c;this.e=Td()}v(Ry,Qx);l=Ry.prototype;l.ok=function(){return this.b};l.Xb=function(b,c,d){b=Ry.T.Xb.call(this,b,c,d);return 1==c?b:b*c+.5|0};l.pk=function(){return this.c}; l.qk=function(b){b=m(b)?Px(b):null;this.Pf(b)};l.Pf=function(b){this.c=null!=b?b:[];this.l()}; l.rk=function(b,c,d){var e=this.tileGrid;null===e&&(e=ej(this,d));if(!(e.a.length<=b[0])){var f=Wi(e,b,this.e),g=e.ua(b[0]);1!=c&&(g=g*c+.5|0);e={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};Db(e,this.b);var h=this.c;0==h.length?b=void 0:(d=d.a.split(":").pop(),e.SIZE=g+","+g,e.BBOX=f.join(","),e.BBOXSR=d,e.IMAGESR=d,e.DPI=90*c,b=1==h.length?h[0]:h[Xb((b[1]<p||n<=p)return null;b=b[2];return b<-n||-1g||e>g;)f.push([Math.ceil(d/g),Math.ceil(e/g)]),g+=g;break;case "truncated":for(;d>g||e>g;)f.push([Math.ceil(d/g),Math.ceil(e/g)]),d>>=1,e>>=1}f.push([1,1]);f.reverse();for(var g=[1],h=[0],e=1,d=f.length;ethis.b||d+this.a>this.b)return null;e=pz(this,!1,b,c,d,e,g);if(null===e)return null;b=pz(this,!0,b,c,d,m(f)?f:dd,g);return{offsetX:e.offsetX,offsetY:e.offsetY,image:e.image,xf:b.image}}; function pz(b,c,d,e,f,g,h){var k=c?b.e:b.f,n,p,q;p=0;for(q=k.length;p=c+this.a&&g.height>=d+this.a)return k={offsetX:g.x+this.a,offsetY:g.y+this.a,image:this.b},this.c[b]=k,e.call(f,this.f,g.x+this.a,g.y+this.a),b=h,c=c+this.a,d=d+this.a,f=e=void 0,g.width-c>g.height-d?(e={x:g.x+c,y:g.y,width:g.width-c,height:g.height},f={x:g.x,y:g.y+d,width:c,height:g.height-d},qz(this,b,e,f)):(e={x:g.x+c,y:g.y,width:g.width-c,height:d},f={x:g.x,y:g.y+d,width:g.width,height:g.height- d},qz(this,b,e,f)),k;return null};function qz(b,c,d,e){c=[c,1];0e&&(e=0);f=d.TileMatrixSetLink[e].TileMatrixSet;var g=d.Format[0];m(c.format)&&(g=c.format);e=Va(d.Style,function(b){return m(c.style)? b.Title==c.style:b.isDefault});0>e&&(e=0);e=d.Style[e].Identifier;var h={};m(d.Dimension)&&Qa(d.Dimension,function(b){var c=b.Identifier,d=b["default"];m(d)||(d=b.values[0]);h[c]=d});var k=Ua(b.Contents.TileMatrixSet,function(b){return b.Identifier==f}),n=hz(k),k=m(c.projection)?Be(c.projection):Be(k.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3")),p=[],q=c.requestEncoding,q=m(q)?q:"";if(b.OperationsMetadata.hasOwnProperty("GetTile")&&0!=q.lastIndexOf("REST",0)){var d=b.OperationsMetadata.GetTile.DCP.HTTP.Get, r=Ua(d[0].Constraint,function(b){return"GetEncoding"==b.name}).AllowedValues.Value;0