// OpenLayers 3. See http://openlayers.org/ // License: https://raw.githubusercontent.com/openlayers/ol3/master/LICENSE.md // Version: v3.4.0 (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.xf?b.xf:b.xf=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(Ga,">"));-1!=b.indexOf('"')&&(b=b.replace(Ha,"""));-1!=b.indexOf("'")&&(b=b.replace(Ia,"'"));-1!=b.indexOf("\x00")&&(b=b.replace(Ja,"�"));return b}var Ea=/&/g,Fa=//g,Ha=/"/g,Ia=/'/g,Ja=/\x00/g,Da=/[\x00&<>"']/; function Ka(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 La(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||fb)}function gb(b,c){if(!ha(b)||!ha(c)||b.length!=c.length)return!1;for(var d=b.length,e=hb,f=0;fc?1:bparseFloat(b))?String(c):b}(),Ob={};function Pb(b){return Ob[b]||(Ob[b]=0<=La(Nb,b))}var Qb=ba.document,Rb=Qb&&Gb?Mb()||("CSS1Compat"==Qb.compatMode?parseInt(Nb,10):5):void 0;var Sb="https:"===ba.location.protocol,Tb=Gb&&!Pb("9.0")&&""!==Nb;function Vb(b,c,d){return Math.min(Math.max(b,c),d)}function Wb(b,c){var d=b%c;return 0>d*c?d+c:d}function Xb(b,c,d){return b+d*(c-b)}function Yb(b){return b*Math.PI/180};function Zb(b){return function(c){if(m(c))return[Vb(c[0],b[0],b[2]),Vb(c[1],b[1],b[3])]}}function $b(b){return b};function ac(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 dc(b){if(m(b))return 0}function ec(b,c){if(m(b))return b+c}function fc(b){var c=2*Math.PI/b;return function(b,e){if(m(b))return b=Math.floor((b+e)/c+.5)*c}}function gc(){var b=Yb(5);return function(c,d){if(m(c))return Math.abs(c+d)<=b?0:c+d}};function hc(b,c,d){this.center=b;this.resolution=c;this.rotation=d};var ic=!Gb||Gb&&9<=Rb,jc=!Gb||Gb&&9<=Rb,kc=Gb&&!Pb("9");!Ib||Pb("528");Hb&&Pb("1.9b")||Gb&&Pb("8")||Fb&&Pb("9.5")||Ib&&Pb("528");Hb&&!Pb("8")||Gb&&Pb("9");function lc(){0!=mc&&(nc[ma(this)]=this);this.oa=this.oa;this.qa=this.qa}var mc=0,nc={};lc.prototype.oa=!1;lc.prototype.Jc=function(){if(!this.oa&&(this.oa=!0,this.P(),0!=mc)){var b=ma(this);delete nc[b]}};function oc(b,c){var d=sa(pc,c);b.oa?d.call(void 0):(b.qa||(b.qa=[]),b.qa.push(m(void 0)?ra(d,void 0):d))}lc.prototype.P=function(){if(this.qa)for(;this.qa.length;)this.qa.shift()()};function pc(b){b&&"function"==typeof b.Jc&&b.Jc()};function qc(b,c){this.type=b;this.b=this.target=c;this.e=!1;this.og=!0}qc.prototype.pb=function(){this.e=!0};qc.prototype.preventDefault=function(){this.og=!1};function rc(b){b.pb()}function tc(b){b.preventDefault()};var uc=Gb?"focusout":"DOMFocusOut";function vc(b){vc[" "](b);return b}vc[" "]=ca;function wc(b,c){qc.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.d=this.c=this.n=!1;this.state=null;this.g=!1;this.a=null;b&&xc(this,b,c)}v(wc,qc);var yc=[1,4,2]; function xc(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{vc(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.of,set:b.cm},offsetY:{configurable:!0,enumerable:!0,get:b.pf,set:b.dm}}):(b.offsetX=b.of(),b.offsetY=b.pf());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.c=c.altKey;b.d=c.shiftKey;b.k=c.metaKey;b.g=Jb?c.metaKey:c.ctrlKey;b.state=c.state;c.defaultPrevented&&b.preventDefault()}function zc(b){return(ic?0==b.a.button:"click"==b.type?!0:!!(b.a.button&yc[0]))&&!(Ib&&Jb&&b.n)}l=wc.prototype; l.pb=function(){wc.T.pb.call(this);this.a.stopPropagation?this.a.stopPropagation():this.a.cancelBubble=!0};l.preventDefault=function(){wc.T.preventDefault.call(this);var b=this.a;if(b.preventDefault)b.preventDefault();else if(b.returnValue=!1,kc)try{if(b.ctrlKey||112<=b.keyCode&&123>=b.keyCode)b.keyCode=-1}catch(c){}};l.zh=function(){return this.a};l.of=function(){return Ib||void 0!==this.a.offsetX?this.a.offsetX:this.a.layerX}; l.cm=function(b){Object.defineProperties(this,{offsetX:{writable:!0,enumerable:!0,configurable:!0,value:b}})};l.pf=function(){return Ib||void 0!==this.a.offsetY?this.a.offsetY:this.a.layerY};l.dm=function(b){Object.defineProperties(this,{offsetY:{writable:!0,enumerable:!0,configurable:!0,value:b}})};var Ac="closure_listenable_"+(1E6*Math.random()|0);function Bc(b){return!(!b||!b[Ac])}var Cc=0;function Dc(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=++Cc;this.uc=this.cd=!1}function Ec(b){b.uc=!0;b.$b=null;b.a=null;b.src=null;b.yd=null};function Fc(b){this.src=b;this.a={};this.c=0}Fc.prototype.add=function(b,c,d,e,f){var g=b.toString();b=this.a[g];b||(b=this.a[g]=[],this.c++);var h=Gc(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=Xc(f[k],g,!0,d),e=e&&n}for(k=0;!d.e&&k>>0);function Oc(b){if(ka(b))return b;b[Zc]||(b[Zc]=function(c){return b.handleEvent(c)});return b[Zc]};function $c(b){return function(){return b}}var ad=$c(!1),bd=$c(!0),cd=$c(null);function dd(b){return b}function ed(b){var c;c=c||0;return function(){return b.apply(this,Array.prototype.slice.call(arguments,0,c))}}function fd(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 xd(b,c){var d=Wb(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 yd(b,c,d){return m(b)?c.replace("{x}",b[0].toFixed(d)).replace("{y}",b[1].toFixed(d)):""}function zd(b,c){for(var d=!0,e=b.length-1;0<=e;--e)if(b[e]!=c[e]){d=!1;break}return d}function Ad(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 Bd(b,c){var d=b[0]-c[0],e=b[1]-c[1];return d*d+e*e}function Cd(b,c){return yd(b,"{x}, {y}",c)};function Dd(b){this.length=b.length||b;for(var c=0;ce&&(k=k|4);hf&&(k|=2);0===k&&(k=1);return k}function Sd(){return[Infinity,Infinity,-Infinity,-Infinity]}function Vd(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 be(b,c){var d=b[0],e=b[1];return Vd(d,e,d,e,c)}function ce(b,c){return b[0]==c[0]&&b[2]==c[2]&&b[1]==c[1]&&b[3]==c[3]}function de(b,c){c[0]b[2]&&(b[2]=c[2]);c[1]b[3]&&(b[3]=c[3]);return b}function Td(b,c){c[0]b[2]&&(b[2]=c[0]);c[1]b[3]&&(b[3]=c[1])} function ee(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 Ud(f,e,void 0)}function ne(b){return b[3]-b[1]} function oe(b,c,d){d=m(d)?d:Sd();pe(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 re(b){return b[2]this.H)}return m(b)?this.o+b:b};l.pe=function(b,c){if(!re(b)){this.Ha(ke(b));var d=this.k(b,c),e=this.constrainResolution(d,0,0);eb?$e(2*b):1-$e(2*(b-.5))};function cf(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:$e;return function(b,c){if(c.time>=1;return d.join("")}function jf(b){return gf(b[0],b[1],b[2])};function kf(b,c,d,e){this.a=b;this.d=c;this.b=d;this.c=e}function lf(b,c,d,e,f){return m(f)?(f.a=b,f.d=c,f.b=d,f.c=e,f):new kf(b,c,d,e)}kf.prototype.contains=function(b){return mf(this,b[1],b[2])};function mf(b,c,d){return b.a<=c&&c<=b.d&&b.b<=d&&d<=b.c}function nf(b,c){return b.a==c.a&&b.b==c.b&&b.d==c.d&&b.c==c.c}function of(b){return b.d-b.a+1}function pf(b,c){return b.a<=c.d&&b.d>=c.a&&b.b<=c.c&&b.c>=c.b};function qf(b){this.c=b.html;this.a=m(b.tileRanges)?b.tileRanges:null}qf.prototype.b=function(){return this.c};var rf=!Gb||Gb&&9<=Rb;!Hb&&!Gb||Gb&&Gb&&9<=Rb||Hb&&Pb("1.9.1");Gb&&Pb("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 sf(b,c){this.x=m(b)?b:0;this.y=m(c)?c:0}l=sf.prototype;l.clone=function(){return new sf(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 tf(b,c){this.width=b;this.height=c}l=tf.prototype;l.clone=function(){return new tf(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 uf(b){return b?new vf(wf(b)):xa||(xa=new vf)}function xf(b){var c=document;return ia(b)?c.getElementById(b):b}function yf(b,c){mb(c,function(c,e){"style"==e?b.style.cssText=c:"class"==e?b.className=c:"for"==e?b.htmlFor=c:e in zf?b.setAttribute(zf[e],c):0==e.lastIndexOf("aria-",0)||0==e.lastIndexOf("data-",0)?b.setAttribute(e,c):b[e]=c})} var zf={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 Af(b){b=b.document.documentElement;return new tf(b.clientWidth,b.clientHeight)} function Bf(b,c,d){var e=arguments,f=document,g=e[0],h=e[1];if(!rf&&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(" "):yf(g,h));2d;++d)e[d]=c[d].toFixed(6);d=e.join(",")}else d=c.join(",");Qf(b,"matrix3d("+d+")")}else if(Of()){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(",");Qf(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 Cg(b,c,d,e){this.left=b;this.top=c;this.width=d;this.height=e}l=Cg.prototype;l.clone=function(){return new Cg(this.left,this.top,this.width,this.height)};l.contains=function(b){return b instanceof Cg?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 Dg(b,c){var d=c.xb.f};function Zg(b,c){hd.call(this);this.a=b;this.state=c}v(Zg,hd);function $g(b){b.dispatchEvent("change")}Zg.prototype.qb=function(){return ma(this).toString()};Zg.prototype.e=function(){return this.a};function ah(b){qd.call(this);this.e=ze(b.projection);this.f=m(b.attributions)?b.attributions:null;this.D=b.logo;this.q=m(b.state)?b.state:"ready"}v(ah,qd);l=ah.prototype;l.Jd=ca;l.Y=function(){return this.f};l.X=function(){return this.D};l.Z=function(){return this.e};l.$=function(){return this.q};function bh(b,c){b.q=c;b.l()};function ch(b){this.minZoom=m(b.minZoom)?b.minZoom:0;this.a=b.resolutions;this.maxZoom=this.a.length-1;this.f=m(b.origin)?b.origin:null;this.g=null;m(b.origins)&&(this.g=b.origins);this.c=null;m(b.tileSizes)&&(this.c=b.tileSizes);this.e=m(b.tileSize)?b.tileSize:null===this.c?256:void 0;this.b=null;m(b.widths)&&(this.b=b.widths)}var dh=[0,0,0];l=ch.prototype;l.Db=function(){return dd};l.gd=function(b,c,d,e,f){f=eh(this,b,f);for(b=b[0]-1;b>=this.minZoom;){if(c.call(d,b,fh(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.f?this.g[b]:this.f};l.na=function(b){return this.a[b]};l.Qd=function(){return this.a};l.td=function(b,c,d){return b[0]Ca.d)if(pf(U,new kf(Wb(N.a,eb),Wb(N.d,eb),N.b,N.c))||of(N)>eb&&pf(U,Ca)){r=!0;break a}}r=!1}}}else r=!1;r?(n in y&&delete y[n],u[n]=k):y[n]=k}c=[u,y];d=c[0];c=c[1];for(var R in this.k)R in d?(this.e[R]||(Mg(this.k[R],!0),this.e[R]=!0),delete d[R]):R in c?(this.e[R]&&(Mg(this.k[R],!1),delete this.e[R]),delete c[R]):(If(this.k[R]),delete this.k[R],delete this.e[R]);for(R in d)e= Ef("LI"),e.innerHTML=d[R].c,this.r.appendChild(e),this.k[R]=e,this.e[R]=!0;for(R in c)e=Ef("LI"),e.innerHTML=c[R].c,Mg(e,!1),this.r.appendChild(e),this.k[R]=e;R=!wb(this.e)||!wb(b.logos);this.p!=R&&(Mg(this.element,R),this.p=R);R&&wb(this.e)?yg(this.element,"ol-logo-only"):zg(this.element,"ol-logo-only");var Ma;b=b.logos;R=this.N;for(Ma in R)Ma in b||(If(R[Ma]),delete R[Ma]);for(var sb in b)sb in R||(Ma=new Image,Ma.src=sb,d=b[sb],""===d?d=Ma:(d=Bf("A",{href:d}),d.appendChild(Ma)),this.o.appendChild(d), R[sb]=d);Mg(this.o,!wb(b))}}l=th.prototype;l.Dj=function(b){b.preventDefault();vh(this)};function vh(b){Ag(b.element,"ol-collapsed");b.d?Jf(b.D,b.H):Jf(b.H,b.D);b.d=!b.d}l.Cj=function(){return this.g};l.Fj=function(b){this.g!==b&&(this.g=b,Ag(this.element,"ol-uncollapsible"),!b&&this.d&&vh(this))};l.Ej=function(b){this.g&&this.d!==b&&vh(this)};l.Bj=function(){return this.d};function wh(b){b=m(b)?b:{};var c=m(b.className)?b.className:"ol-rotate",d=m(b.label)?b.label:"\u21e7";this.d=null;ia(d)?this.d=Bf("SPAN","ol-compass",d):(this.d=d,yg(this.d,"ol-compass"));d=Bf("BUTTON",{"class":c+"-reset",type:"button",title:m(b.tipLabel)?b.tipLabel:"Reset rotation"},this.d);w(d,"click",wh.prototype.o,!1,this);w(d,["mouseout",uc],function(){this.blur()},!1);c=Bf("DIV",c+" ol-unselectable ol-control",d);Ug.call(this,{element:c,render:m(b.render)?b.render:xh,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&&yg(this.element,"ol-hidden")}v(wh,Ug);wh.prototype.o=function(b){b.preventDefault();b=this.a;var c=b.a();if(null!==c){for(var d=c.d();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 ai(b){if(Hb)b=bi(b);else if(Jb&&Ib)a:switch(b){case 93:b=91;break a}return b} function bi(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 ci(b,c){hd.call(this);b&&di(this,b,c)}v(ci,hd);l=ci.prototype;l.ba=null;l.Ad=null;l.ue=null;l.Bd=null;l.Qa=-1;l.Gb=-1;l.je=!1; var ei={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},fi={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},gi=Gb||Ib&&Pb("525"),hi=Jb&&Hb; ci.prototype.a=function(b){Ib&&(17==this.Qa&&!b.n||18==this.Qa&&!b.c||Jb&&91==this.Qa&&!b.k)&&(this.Gb=this.Qa=-1);-1==this.Qa&&(b.n&&17!=b.f?this.Qa=17:b.c&&18!=b.f?this.Qa=18:b.k&&91!=b.f&&(this.Qa=91));gi&&!Yh(b.f,this.Qa,b.d,b.n,b.c)?this.handleEvent(b):(this.Gb=ai(b.f),hi&&(this.je=b.c))};ci.prototype.c=function(b){this.Gb=this.Qa=-1;this.je=b.c}; ci.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&&$h(d)?c.charCode:0):Fb?(d=this.Gb,e=$h(d)?c.keyCode:0):(d=c.keyCode||this.Gb,e=c.charCode||0,hi&&(f=this.je),Jb&&63==e&&224==d&&(d=191));var g=d=ai(d),h=c.keyIdentifier;d?63232<=d&&d in ei?g=ei[d]:25==d&&b.d&&(g=9):h&&h in fi&&(g=fi[h]);this.Qa=g;b=new ii(g,e,0,c);b.c=f;this.dispatchEvent(b)}; function di(b,c,d){b.Bd&&ji(b);b.ba=c;b.Ad=w(b.ba,"keypress",b,d);b.ue=w(b.ba,"keydown",b.a,d,b);b.Bd=w(b.ba,"keyup",b.c,d,b)}function ji(b){b.Ad&&(Wc(b.Ad),Wc(b.ue),Wc(b.Bd),b.Ad=null,b.ue=null,b.Bd=null);b.ba=null;b.Qa=-1;b.Gb=-1}ci.prototype.P=function(){ci.T.P.call(this);ji(this)};function ii(b,c,d,e){wc.call(this,e);this.type="key";this.f=b;this.i=c}v(ii,wc);function ki(b,c){hd.call(this);var d=this.ba=b;(d=la(d)&&1==d.nodeType?this.ba:this.ba?this.ba.body:null)&&Fg(d,"direction");this.a=w(this.ba,Hb?"DOMMouseScroll":"mousewheel",this,c)}v(ki,hd); ki.prototype.handleEvent=function(b){var c=0,d=0,e=0;b=b.a;if("mousewheel"==b.type){d=1;if(Gb||Ib&&(Kb||Pb("532.0")))d=40;e=li(-b.wheelDelta,d);m(b.wheelDeltaX)?(c=li(-b.wheelDeltaX,d),d=li(-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.c)&&Vb(c,-this.c,this.c);ja(this.b)&&(d=Vb(d,-this.b,this.b));c=new mi(e,b,0,d);this.dispatchEvent(c)};function li(b,c){return Ib&&(Jb||Lb)&&0!=b%c?b:b/c} ki.prototype.P=function(){ki.T.P.call(this);Wc(this.a);this.a=null};function mi(b,c,d,e){wc.call(this,c);this.type="mousewheel";this.detail=b;this.q=e}v(mi,wc);function ni(b,c,d){qc.call(this,b);this.a=c;b=m(d)?d:{};this.buttons=oi(b);this.pressure=pi(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(ni,qc);function oi(b){if(b.buttons||qi)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 pi(b,c){var d=0;b.pressure?d=b.pressure:d=c?.5:0;return d}var qi=!1;try{qi=1===(new MouseEvent("click",{buttons:1})).buttons}catch(ri){};function si(b,c){this.a=b;this.f=c};function ti(b){si.call(this,b,{mousedown:this.Wi,mousemove:this.Xi,mouseup:this.$i,mouseover:this.Zi,mouseout:this.Yi});this.c=b.c;this.b=[]}v(ti,si);function ui(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 vi(b){var c=wi(b,b.a),d=c.preventDefault;c.preventDefault=function(){b.preventDefault();d()};c.pointerId=1;c.isPrimary=!0;c.pointerType="mouse";return c}l=ti.prototype; l.Wi=function(b){if(!ui(this,b)){(1).toString()in this.c&&this.cancel(b);var c=vi(b);this.c[(1).toString()]=b;xi(this.a,yi,c,b)}};l.Xi=function(b){if(!ui(this,b)){var c=vi(b);xi(this.a,zi,c,b)}};l.$i=function(b){if(!ui(this,b)){var c=this.c[(1).toString()];c&&c.button===b.button&&(c=vi(b),xi(this.a,Ai,c,b),yb(this.c,(1).toString()))}};l.Zi=function(b){if(!ui(this,b)){var c=vi(b);Bi(this.a,c,b)}};l.Yi=function(b){if(!ui(this,b)){var c=vi(b);Ci(this.a,c,b)}}; l.cancel=function(b){var c=vi(b);this.a.cancel(c,b);yb(this.c,(1).toString())};function Di(b){si.call(this,b,{MSPointerDown:this.ej,MSPointerMove:this.fj,MSPointerUp:this.ij,MSPointerOut:this.gj,MSPointerOver:this.hj,MSPointerCancel:this.dj,MSGotPointerCapture:this.bj,MSLostPointerCapture:this.cj});this.c=b.c;this.b=["","unavailable","touch","pen","mouse"]}v(Di,si);function Ei(b,c){var d=c;ja(c.a.pointerType)&&(d=wi(c,c.a),d.pointerType=b.b[c.a.pointerType]);return d}l=Di.prototype;l.ej=function(b){this.c[b.a.pointerId]=b;var c=Ei(this,b);xi(this.a,yi,c,b)}; l.fj=function(b){var c=Ei(this,b);xi(this.a,zi,c,b)};l.ij=function(b){var c=Ei(this,b);xi(this.a,Ai,c,b);yb(this.c,b.a.pointerId)};l.gj=function(b){var c=Ei(this,b);Ci(this.a,c,b)};l.hj=function(b){var c=Ei(this,b);Bi(this.a,c,b)};l.dj=function(b){var c=Ei(this,b);this.a.cancel(c,b);yb(this.c,b.a.pointerId)};l.cj=function(b){this.a.dispatchEvent(new ni("lostpointercapture",b,b.a))};l.bj=function(b){this.a.dispatchEvent(new ni("gotpointercapture",b,b.a))};function Fi(b){si.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.Vi})}v(Fi,si);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.Vi=function(b){Gi(this.a,b)};l.li=function(b){Gi(this.a,b)};function Hi(b,c){si.call(this,b,{touchstart:this.pm,touchmove:this.om,touchend:this.nm,touchcancel:this.mm});this.c=b.c;this.g=c;this.b=void 0;this.e=0;this.d=void 0}v(Hi,si);l=Hi.prototype;l.ng=function(){this.e=0;this.d=void 0}; function Ii(b,c,d){c=wi(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.d&&(b.d=e.d),e.bb.c&&(b.c=e.c)):b[c][d]=e:(b[c]={},b[c][d]=e)}function wj(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 xj(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,y,z,A,E,x;for(x=h;x>=s;--x)for(y=fh(d,g,x,y),z=d.na(x),A=y.a;A<=y.d;++A)for(E=y.b;E<=y.c;++E)h-x<=k?(u=c.Vb(x,A,E,e,f),0==u.state&&(r[jf(u.a)]=!0,u.qb()in b.b||yj(b,[u,q,ih(d,u.a),z])),m(n)&&n.call(p,u)):c.Oe(x,A,E)};function zj(b){this.o=b.opacity;this.p=b.rotateWithView;this.i=b.rotation;this.k=b.scale;this.r=b.snapToPixel}l=zj.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 Aj(b){b=m(b)?b:{};this.f=m(b.anchor)?b.anchor:[.5,.5];this.d=null;this.c=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=Bj.Pa(),h=g.get(e,c);null===h&&(h=new Cj(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;zj.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(Aj,zj);l=Aj.prototype; l.wb=function(){if(null!==this.d)return this.d;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.c){if(null===c)return null;b===this.f&&(b=this.f.slice());if("top-right"==this.c||"bottom-right"==this.c)b[0]=-b[0]+c[0];if("bottom-left"==this.c||"bottom-right"==this.c)b[1]=-b[1]+c[1]}return this.d=b};l.Bb=function(){return this.a.a};l.kd=function(){return this.a.c}; l.Pc=function(){return this.a.b};l.Kd=function(){var b=this.a;if(null===b.f)if(b.n){var c=b.c[0],d=b.c[1],e=Nf(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.c;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.c:this.q};l.we=function(b,c){return w(this.a,"change",b,!1,c)};l.load=function(){this.a.load()};l.Ne=function(b,c){Vc(this.a,"change",b,!1,c)};function Cj(b,c,d,e){hd.call(this);this.f=null;this.a=null===b?new Image:b;null!==d&&(this.a.crossOrigin=d);this.d=null;this.b=e;this.c=null;this.e=c;this.n=!1}v(Cj,hd);Cj.prototype.g=function(){this.b=3;Qa(this.d,Wc);this.d=null;this.dispatchEvent("change")}; Cj.prototype.i=function(){this.b=2;this.c=[this.a.width,this.a.height];Qa(this.d,Wc);this.d=null;var b=Nf(1,1);b.drawImage(this.a,0,0);try{b.getImageData(0,0,1,1)}catch(c){this.n=!0}this.dispatchEvent("change")};Cj.prototype.load=function(){if(0==this.b){this.b=1;this.d=[Uc(this.a,"error",this.g,!1,this),Uc(this.a,"load",this.i,!1,this)];try{this.a.src=this.e}catch(b){this.g()}}};function Bj(){this.a={};this.c=0}da(Bj);Bj.prototype.clear=function(){this.a={};this.c=0}; Bj.prototype.get=function(b,c){var d=c+":"+b;return d in this.a?this.a[d]:null};Bj.prototype.set=function(b,c,d){this.a[c+":"+b]=d;++this.c};function Dj(b,c){lc.call(this);this.g=c;this.b=null;this.e={};this.q={}}v(Dj,lc);function Ej(b){var c=b.viewState,d=b.coordinateToPixelMatrix;lj(d,b.size[0]/2,b.size[1]/2,1/c.resolution,-1/c.resolution,-c.rotation,-c.center[0],-c.center[1]);Nd(d,b.pixelToCoordinateMatrix)}l=Dj.prototype;l.P=function(){mb(this.e,pc);Dj.T.P.call(this)}; function Fj(){var b=Bj.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 Mj(b){var c=b.e,d=b.a,e=b.c,f=0,g=d.length,h,k,n;for(k=0;k>1)-1;0<=c;c--)Kj(b,c)};function Nj(b,c){Ij.call(this,function(c){return b.apply(null,c)},function(b){return b[0].qb()});this.n=c;this.d=0}v(Nj,Ij);Nj.prototype.g=function(b){b=b.target.state;if(2===b||3===b||4===b)--this.d,this.n()};function Oj(b,c,d){this.d=b;this.b=c;this.e=d;this.a=[];this.c=this.f=0}Oj.prototype.update=function(b,c){this.a.push(b,c,ta())};function Pj(b,c){var d=b.d,e=b.c,f=b.b-e,g=Qj(b);return cf({source:c,duration:g,easing:function(b){return e*(Math.exp(d*b*g)-1)/f}})}function Qj(b){return Math.log(b.b/b.c)/b.d};function Rj(b){qd.call(this);this.k=null;this.d(!0);this.handleEvent=b.handleEvent}v(Rj,qd);Rj.prototype.b=function(){return this.get("active")};Rj.prototype.getActive=Rj.prototype.b;Rj.prototype.d=function(b){this.set("active",b)};Rj.prototype.setActive=Rj.prototype.d;Rj.prototype.setMap=function(b){this.k=b};function Sj(b,c,d,e,f){if(null!=d){var g=c.d(),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.c=Math.sqrt(h*h+f*f)/e;d=d.c>d.b}}d&&(d=this.a,d=(d.b-d.c)/d.d,f=this.a.f,g=c.b(),this.g=Pj(this.a,g),b.La(this.g),g=b.e(g),d=b.sa([g[0]-d*Math.cos(f),g[1]-d*Math.sin(f)]),d=c.i(d),c.Ha(d));Ye(c,-1);b.render(); return!1}this.e=null;return!0}function ik(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 Bk(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+eU&&ebU)&&(0>Ca&&RCa)||(z[h++]=x,z[h++]=Q,A=x,E=Q);x=N;Q=L}}z[h++]=x;z[h++]=Q}}k.push(h);c=q}return h};function Lk(b,c){rk.call(this);this.b=this.n=-1;this.W(b,c)}v(Lk,rk);l=Lk.prototype;l.clone=function(){var b=new Lk(null);Mk(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 Rk(b,c,d,e,f,g){if(0===d.length||!Qk(b,c,d[0],e,f,g))return!1;var h;c=1;for(h=d.length;cr&&(p=(p+q)/2,Rk(b,c,d,e,p,s)&&(y=p,r=z));p=q}isNaN(y)&&(y=f[g]);return m(h)?(h.push(y,s),h):[y,s]};function Tk(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:Tk(b,c,d,e,function(b,c){var d=!1,e=ae(f,b),g=ae(f,c);if(1===e||1===g)d=!0;else{var r=f[0],s=f[1],u=f[2],y=f[3],z=c[0],A=c[1],E=(A-b[1])/(z-b[0]);g&2&&!(e&2)?(s=z-(A-y)/E,d=s>=r&&s<=u):g&4&&!(e&4)?(r=A-(z-u)*E,d=r>=s&&r<=y):g&8&&!(e&8)?(s=z-(A-s)/E,d=s>=r&&s<=u):g&16&&!(e&16)&&(r=A-(z-r)*E,d=r>=s&&r<=y)}return d}):!1} function Vk(b,c,d,e,f){var g=d[0];if(!(Uk(b,c,g,e,f)||Qk(b,c,g,e,f[0],f[1])||Qk(b,c,g,e,f[0],f[3])||Qk(b,c,g,e,f[2],f[1])||Qk(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 Lk(null);Mk(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} nl.prototype.update=function(b,c){m(c)||(c=b.length);for(var d=c-this.c,e=this.f,f=this.b,g=0;gc.b?c.c:2*c.c)-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.o&&(this.a=!0));this.g=d;b=b.map;d=Jg(b.b);e=gk(this.f);e[0]-=d.x;e[1]-=d.y;this.e=b.sa(e);this.a&&(d=b.a(),e=d.d(),b.render(),Sj(b,d,e+c,this.e))}function Ll(b){if(2>this.f.length){b=b.map;var c=b.a();Ye(c,-1);if(this.a){var d=c.d(),e=this.e,d=c.constrainRotation(d,0);Sj(b,c,d,e,250)}return!1}return!0} function Jl(b){return 2<=this.f.length?(b=b.map,this.e=null,this.g=void 0,this.a=!1,this.i=0,this.q||Ye(b.a(),1),b.render(),!0):!1}Il.prototype.r=ad;function Ml(b){ek.call(this,{handleDownEvent:Nl,handleDragEvent:Ol,handleUpEvent:Pl});b=m(b)?b:{};this.e=null;this.i=m(b.duration)?b.duration:400;this.a=void 0;this.g=1}v(Ml,ek);function Ol(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=Jg(b.b),g=gk(this.f);g[0]-=e.x;g[1]-=e.y;this.e=b.sa(g);b.render();Uj(b,f,d*c,this.e)} function Pl(b){if(2>this.f.length){b=b.map;var c=b.a();Ye(c,-1);var d=c.a(),e=this.e,f=this.i,d=c.constrainResolution(d,0,this.g-1);Uj(b,c,d,e,f);return!1}return!0}function Nl(b){return 2<=this.f.length?(b=b.map,this.e=null,this.a=void 0,this.g=1,this.q||Ye(b.a(),1),b.render(),!0):!1}Ml.prototype.r=ad;function Ql(b){b=m(b)?b:{};var c=new lg,d=new Oj(-.005,.05,100);(m(b.altShiftDragRotate)?b.altShiftDragRotate:1)&&c.push(new lk);(m(b.doubleClickZoom)?b.doubleClickZoom:1)&&c.push(new Vj({delta:b.zoomDelta,duration:b.zoomDuration}));(m(b.dragPan)?b.dragPan:1)&&c.push(new hk({kinetic:d}));(m(b.pinchRotate)?b.pinchRotate:1)&&c.push(new Il);(m(b.pinchZoom)?b.pinchZoom:1)&&c.push(new Ml({duration:b.zoomDuration}));if(m(b.keyboard)?b.keyboard:1)c.push(new Cl),c.push(new El({delta:b.zoomDelta,duration:b.zoomDuration})); (m(b.mouseWheelZoom)?b.mouseWheelZoom:1)&&c.push(new Gl({duration:b.zoomDuration}));(m(b.shiftDragZoom)?b.shiftDragZoom:1)&&c.push(new Bl);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,ud("layers"),this.Di,!1,this);null!=c?ga(c)&&(c=new lg(c.slice())):c=new lg;this.r(c)}v(G,C);l=G.prototype;l.sf=function(){this.b()&&this.l()}; l.Di=function(){null!==this.a&&(Qa(qb(this.a),Wc),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.d=null)}; function wm(b,c,d){mm.call(this,b,c,d);this.b={ff: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(wm,mm); function xm(b,c,d,e,f){var g=b.b,h=[1];b.c.push(h);b.a.push(h);var k,h=0;for(k=e.length;hthis.f&&(this.f=d.lineWidth,this.d=null))}; function ym(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.ff!=d&&(b.c.push([9,d]),c.ff=c.fillStyle);!m(e)||c.Ic==e&&c.Dc==f&&c.Ec==g&&c.Fc==h&&c.Gc==k&&c.Hc==n||(b.c.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 zm(b,c,d){mm.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(zm,mm); zm.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.c.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.c.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.c.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);om(this,g);f=this.coordinates.length;b=nm(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.c.push(b);this.a.push(b);rm(this,g)}}; zm.prototype.Ca=function(b){if(null===b)this.n="";else{var c=b.a;null===c?this.b=null:(c=c.a,c=sg(null===c?rl: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.d,f=d.b,g=d.f,h=d.c,d=d.e,e=m(e)?e:"round",f=null!=f?f.slice():sl,g=m(g)?g:"round",h=m(h)?h:1,d=m(d)?d:10,c=sg(null===c?tl: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.d,c=b.i,e=b.k,f=b.f,h=b.c,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 Am(b,c,d,e){this.i=b;this.d=c;this.n=d;this.f=e;this.c={};this.e=Nf(1,1);this.g=Hd()} function Bm(b){for(var c in b.c){var d=b.c[c],e;for(e in d)d[e].Kb()}}Am.prototype.b=function(b,c,d,e,f){var g=this.g;lj(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=Sd(),Td(k,b),Wd(k,c*this.f,k));return Cm(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=Xb(b[c],b[c+e],d),h=Xb(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 Rm(b,c,d,e,f,g){if(d==c)return null;if(f>1,fb||this.b.length<=b)return null;var c=new Tm(null);Um(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 Nk(null);Ok(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.eh(e,c),c--;else break;this.Yg(d,e,c)},eh:function(b,c){var e=b[c],f=e.children.length,g=this.Ye;this.Zg(e,g,f);f={children:e.children.splice(this.$g(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.Ze(e, f)},Ze:function(b,c){this.data={children:[b,c],height:b.height+1};d(this.data,this.Ka)},$g: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 Ma=Math.max(s[1],u[1]),sb=Math.min(s[2],u[2]),s=Math.min(s[3],u[3]);n=Math.max(0,sb-n)*Math.max(0,s-Ma);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},Yg:function(b,c,d){for(;0<=d;d--)f(c[d].bbox,b)},bh:function(b){for(var c=b.length-1,e;0<=c;c--)0===b[c].children.length?0A||this.b[1]>E)?(x.width=A,x.height=E,this.b=[A,E],this.i=!Jm(this.b),this.d=null):(A=this.b[0],E=this.b[1],(x=p!=this.o)||(x=this.d,x=!(x.a<=z.a&&z.d<=x.d&&x.b<=z.b&&z.c<=x.c)),x&&(this.d=null)));var N,L;null===this.d?(A/=q,E/=q,N=z.a-Math.floor((A-of(z))/2),L=z.b-Math.floor((E-(z.c-z.b+1))/2),this.o=p,this.p=q,this.d=new kf(N,N+A-1,L,L+E-1),this.n=Array(A*E),E=this.d):(E=this.d,A=of(E));x={};x[p]={};var U=[],Ca=this.ed(h,x),eb=g.ea(),R=Sd(),Ma=new kf(0,0,0,0),sb,$a,Ub;for(L= z.a;L<=z.d;++L)for(Ub=z.b;Ub<=z.c;++Ub)$a=h.Vb(p,L,Ub,d,f),N=$a.state,2==N||4==N||3==N&&!eb?x[p][jf($a.a)]=$a:(sb=k.gd($a.a,Ca,null,Ma,R),sb||(U.push($a),sb=k.td($a.a,Ma,R),null===sb||Ca(p+1,sb)));Ca=0;for(sb=U.length;CaU&&Hf(this.target,z.target,0)}else{if(!b.viewHints[0]&&!b.viewHints[1]){Q=fh(z.d,s,z.b[0],E);U=[];x=L=void 0;for(x in z.c)L=z.c[x],Q.contains(L.a)||U.push(L);eb=Q=void 0;Q= 0;for(eb=U.length;Q=k;){n=this.b[p];u=this.k[p];x=ma(u).toString();if(!m(r[x])&&(!m(y)||pe(y,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),mo(this,g,b,r,this.g,this.e),r=(r=s(null))?r:void 0;x=r}else mo(this,g,b,r,this.ia,this.o);g.disableVertexAttribArray(A.d); g.disableVertexAttribArray(A.a);g.disableVertexAttribArray(A.f);g.disableVertexAttribArray(A.c);g.disableVertexAttribArray(A.b);return x}; function mo(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=Nf(1,1)),this.g.clearRect(0,0,1,1),this.g.drawImage(this.d.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(cf(this.g))),b.a().Ha(b.sa(c)))}}};l.Li=function(){Uo(this)};l.Le=function(b){this.set("element",b)};M.prototype.setElement=M.prototype.Le;M.prototype.setMap=function(b){this.set("map",b)};M.prototype.setMap=M.prototype.setMap;M.prototype.o=function(b){this.set("offset",b)};M.prototype.setOffset=M.prototype.o;M.prototype.e=function(b){this.set("position",b)}; M.prototype.setPosition=M.prototype.e;function Vo(b,c){var d=wf(b);Fg(b,"position");var e=new sf(0,0),f;f=d?wf(d):document;f=!Gb||Gb&&9<=Rb||Lf(uf(f))?f.documentElement:f.body;b!=f&&(f=Ig(b),d=Mf(uf(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]]}M.prototype.p=function(b){this.set("positioning",b)};M.prototype.setPositioning=M.prototype.p; function Uo(b){var c=b.d(),d=b.q();if(m(c)&&null!==c.d&&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-=Kg(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-=Kg(b.ba).height/2;d=Math.round(d[1]+f)+"px";b.a.$d!=d&&(b.a.$d=c.top=d)}b.a.visible||(Mg(b.ba,!0),b.a.visible=!0)}else b.a.visible&&(Mg(b.ba,!1),b.a.visible=!1)};function Wo(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)?Bf("SPAN",{},e):e;e=m(b.label)?b.label:"\u00bb";this.p=ia(e)?Bf("SPAN",{},e):e;d=Bf("BUTTON",{type:"button",title:d},this.g&&!this.e?this.o:this.p);w(d,"click",this.Ij,!1,this);w(d,["mouseout",uc],function(){this.blur()},!1); var e=Bf("DIV","ol-overviewmap-map"),f=this.d=new K({controls:new lg,interactions:new lg,target:e});m(b.layers)&&b.layers.forEach(function(b){f.af(b)},this);var g=Bf("DIV","ol-overviewmap-box");this.k=new M({position:[0,0],positioning:"bottom-left",element:g});this.d.bf(this.k);c=Bf("DIV",c+" ol-unselectable ol-control"+(this.e&&this.g?" ol-collapsed":"")+(this.g?"":" ol-uncollapsible"),e,d);Ug.call(this,{element:c,render:m(b.render)?b.render:Xo,target:b.target})}v(Wo,Ug);l=Wo.prototype; l.setMap=function(b){var c=this.a;null===b&&null!==c&&Vc(c,ud("view"),this.Ff,!1,this);Wo.T.setMap.call(this,b);null!==b&&(0===this.d.ea().Ib()&&this.d.K("layergroup",b),Yo(this),w(b,ud("view"),this.Ff,!1,this),this.d.q(),Zo(this))};function Yo(b){var c=b.a.a();null===c||b.d.a().K("rotation",c)} function Xo(){var b=this.a,c=this.d;if(null!==b.d&&null!==c.d){var d=b.f(),b=b.a().g(d),e=c.f(),d=c.a().g(e),f=c.e(je(b)),c=c.e(he(b)),c=new tf(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?Zo(this):Zd(d,b)||(b=this.d,d=this.a.a(),b.a().Ha(d.b()))}$o(this)}l.Ff=function(){Yo(this)};function Zo(b){var c=b.a;b=b.d;var d=c.f(),c=c.a().g(d),d=b.f();b=b.a();var e=Math.log(7.5)/Math.LN2;se(c,1/(.1*Math.pow(2,e/2)));b.pe(c,d)} function $o(b){var c=b.a,d=b.d;if(null!==c.d&&null!==d.d){var e=c.f(),f=c.a(),g=d.a();d.f();var c=f.d(),h=b.k,d=b.k.b(),f=f.g(e),e=g.a(),g=ge(f),f=ie(f),k;b=b.a.a().b();m(b)&&(k=[g[0]-b[0],g[1]-b[1]],Ad(k,c),vd(k,b));h.e(k);null!=d&&(k=new tf(Math.abs((g[0]-f[0])/e),Math.abs((f[1]-g[1])/e)),c=Lf(uf(wf(d))),!Gb||Pb("10")||c&&Pb("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=Pg(d,"padding"),d=Sg(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.Ij=function(b){b.preventDefault();ap(this)};function ap(b){Ag(b.element,"ol-collapsed");b.e?Jf(b.o,b.p):Jf(b.p,b.o);b.e=!b.e;var c=b.d;b.e||null!==c.d||(c.q(),Zo(b),Uc(c,"postrender",function(){$o(this)},!1,b))}l.Hj=function(){return this.g}; l.Kj=function(b){this.g!==b&&(this.g=b,Ag(this.element,"ol-uncollapsible"),!b&&this.e&&ap(this))};l.Jj=function(b){this.g&&this.e!==b&&ap(this)};l.Gj=function(){return this.e};function bp(b){b=m(b)?b:{};var c=m(b.className)?b.className:"ol-scale-line";this.g=Bf("DIV",c+"-inner");this.ba=Bf("DIV",c+" ol-unselectable",this.g);this.r=null;this.k=m(b.minWidth)?b.minWidth:64;this.d=!1;this.H=void 0;this.D="";this.e=null;Ug.call(this,{element:this.ba,render:m(b.render)?b.render:cp,target:b.target});w(this,ud("units"),this.N,!1,this);this.p(b.units||"metric")}v(bp,Ug);var dp=[1,2,5];bp.prototype.o=function(){return this.get("units")};bp.prototype.getUnits=bp.prototype.o; function cp(b){b=b.frameState;null===b?this.r=null:this.r=b.viewState;ep(this)}bp.prototype.N=function(){ep(this)};bp.prototype.p=function(b){this.set("units",b)};bp.prototype.setUnits=bp.prototype.p; function ep(b){var c=b.r;if(null===c)b.d&&(Mg(b.ba,!1),b.d=!1);else{var d=c.center,e=c.projection,c=e.getPointResolution(c.resolution,d),f=e.c,g=b.o();"degrees"!=f||"metric"!=g&&"imperial"!=g&&"us"!=g&&"nautical"!=g?"degrees"!=f&&"degrees"==g?(null===b.e&&(b.e=De(e,ze("EPSG:4326"))),d=Math.cos(Yb(b.e(d)[1])),e=ve.radius,e/=we[f],c*=180/(Math.PI*d*e)):b.e=null:(b.e=null,d=Math.cos(Yb(d[1])),c*=Math.PI*d*ve.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=dp[d%3]*Math.pow(10,Math.floor(d/3));g=Math.round(e/c);if(isNaN(g)){Mg(b.ba,!1);b.d=!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.d||(Mg(b.ba,!0),b.d=!0)}};function fp(b){lc.call(this);this.c=b;this.a={}}v(fp,lc);var gp=[];fp.prototype.Ra=function(b,c,d,e){ga(c)||(c&&(gp[0]=c.toString()),c=gp);for(var f=0;fd.height?(this.g=1,d=new Cg(0,0,e,0)):(this.g=rp,d=new Cg(0,0,0,c));this.d.a=d||new Cg(NaN,NaN,NaN,NaN);this.o=!0}b=b.frameState.viewState.resolution;b!==this.e&&(this.e=b,b=1-We(this.a.a())(b),d=this.d,c=Kf(this.element),1==this.g?Gg(c,d.a.left+d.a.width*b):Gg(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(ef({resolution:e,duration:200,easing:Ze}));b=tp(this,b.offsetX-this.k[0]/2,b.offsetY-this.k[1]/2);b=up(this,b);d.f(d.constrainResolution(b))};l.qi=function(){Ye(this.a.a(),1)};l.oi=function(b){b=tp(this,b.left,b.top);this.e=up(this,b);this.a.a().f(this.e)};l.pi=function(){var b=this.a,c=b.a();Ye(c,-1);b.La(ef({resolution:this.e,duration:200,easing:Ze}));b=c.constrainResolution(this.e);c.f(b)}; function tp(b,c,d){var e=b.d.a;return Vb(1===b.g?(c-e.left)/e.width:(d-e.top)/e.height,0,1)}function up(b,c){return Ve(b.a.a())(1-c)};function vp(b){b=m(b)?b:{};this.d=m(b.extent)?b.extent:null;var c=m(b.className)?b.className:"ol-zoom-extent",d=Bf("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",uc],function(){this.blur()},!1);c=Bf("DIV",c+" ol-unselectable ol-control",d);Ug.call(this,{element:c,target:b.target})}v(vp,Ug); vp.prototype.e=function(b){b.preventDefault();var c=this.a;b=c.a();var d=null===this.d?b.p.J():this.d,c=c.f();b.pe(d,c)};function wp(b){qd.call(this);b=m(b)?b:{};this.a=null;w(this,ud("tracking"),this.k,!1,this);this.b(m(b.tracking)?b.tracking:!1)}v(wp,qd);wp.prototype.P=function(){this.b(!1);wp.T.P.call(this)}; wp.prototype.q=function(b){b=b.a;if(null!=b.alpha){var c=Yb(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",Yb(b.webkitCompassHeading))}null!=b.beta&&this.set("beta",Yb(b.beta));null!=b.gamma&&this.set("gamma",Yb(b.gamma));this.l()};wp.prototype.f=function(){return this.get("alpha")};wp.prototype.getAlpha=wp.prototype.f;wp.prototype.e=function(){return this.get("beta")}; wp.prototype.getBeta=wp.prototype.e;wp.prototype.g=function(){return this.get("gamma")};wp.prototype.getGamma=wp.prototype.g;wp.prototype.i=function(){return this.get("heading")};wp.prototype.getHeading=wp.prototype.i;wp.prototype.d=function(){return this.get("tracking")};wp.prototype.getTracking=wp.prototype.d;wp.prototype.k=function(){if($f){var b=this.d();b&&null===this.a?this.a=w(ba,"deviceorientation",this.q,!1,this):b||null===this.a||(Wc(this.a),this.a=null)}}; wp.prototype.b=function(b){this.set("tracking",b)};wp.prototype.setTracking=wp.prototype.b;function xp(b){qd.call(this);this.i=b;w(this.i,["change","input"],this.g,!1,this);w(this,ud("value"),this.k,!1,this);w(this,ud("checked"),this.e,!1,this)}v(xp,qd);xp.prototype.a=function(){return this.get("checked")};xp.prototype.getChecked=xp.prototype.a;xp.prototype.b=function(){return this.get("value")};xp.prototype.getValue=xp.prototype.b;xp.prototype.f=function(b){this.set("value",b)};xp.prototype.setValue=xp.prototype.f;xp.prototype.d=function(b){this.set("checked",b)}; xp.prototype.setChecked=xp.prototype.d;xp.prototype.g=function(){var b=this.i;"checkbox"===b.type||"radio"===b.type?this.d(b.checked):this.f(b.value)};xp.prototype.e=function(){this.i.checked=this.a()};xp.prototype.k=function(){this.i.value=this.b()};function O(b){qd.call(this);this.aa=void 0;this.b="geometry";this.g=null;this.a=void 0;this.e=null;w(this,ud(this.b),this.xd,!1,this);m(b)&&(b instanceof pk||null===b?this.Sa(b):this.C(b))}v(O,qd);O.prototype.clone=function(){var b=new O(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};O.prototype.R=function(){return this.get(this.b)};O.prototype.getGeometry=O.prototype.R;l=O.prototype;l.Jh=function(){return this.aa};l.Ih=function(){return this.b}; l.qj=function(){return this.g};l.rj=function(){return this.a};l.xi=function(){this.l()};l.xd=function(){null!==this.e&&(Wc(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)};O.prototype.setGeometry=O.prototype.Sa;O.prototype.i=function(b){this.g=b;null===b?b=void 0:ka(b)||(b=ga(b)?b:[b],b=$c(b));this.a=b;this.l()};O.prototype.d=function(b){this.aa=b;this.l()}; O.prototype.f=function(b){Vc(this,ud(this.b),this.xd,!1,this);this.b=b;w(this,ud(this.b),this.xd,!1,this);this.xd()};function yp(b){b=m(b)?b:{};this.g=this.f=this.d=this.c=this.b=this.a=null;this.e=void 0;this.Ef(m(b.style)?b.style:zl);m(b.features)?ga(b.features)?this.Tc(new lg(b.features.slice())):this.Tc(b.features):this.Tc(new lg);m(b.map)&&this.setMap(b.map)}l=yp.prototype;l.Cf=function(b){this.a.push(b)};l.kj=function(){return this.a};l.lj=function(){return this.d};l.Df=function(){zp(this)};l.vi=function(b){b=b.element;this.c[ma(b).toString()]=w(b,"change",this.Df,!1,this);zp(this)}; l.wi=function(b){b=ma(b.element).toString();Wc(this.c[b]);delete this.c[b];zp(this)};l.oj=function(){zp(this)};l.pj=function(b){if(null!==this.a){var c=this.e;m(c)||(c=zl);var d=b.a;b=b.frameState;var e=b.viewState.resolution,f=cn(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 Ur(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 Zr(b,c,d){c instanceof as?(b.a=c,gs(b.a,b.Yb)):(d||(c=bs(c,hs)),b.a=new as(c,0,b.Yb))}function is(b){return b instanceof Wr?b.clone():new Wr(b,void 0)} function js(b,c){b instanceof Wr||(b=is(b));c instanceof Wr||(c=is(c));var d=b,e=c,f=d.clone(),g=!!e.Pb;g?Xr(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)Yr(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 cs=/[#\/\?@]/g,es=/[\#\?:]/g,ds=/[\#\?]/g,hs=/[\#\?@]/g,fs=/#/g;function as(b,c,d){this.a=b||null;this.c=!!d}function ls(b){b.ga||(b.ga=new Th,b.ya=0,b.a&&Sr(b.a,function(c,d){b.add(decodeURIComponent(c.replace(/\+/g," ")),d)}))}l=as.prototype;l.ga=null;l.ya=null;l.Tb=function(){ls(this);return this.ya};l.add=function(b,c){ls(this);this.a=null;b=ms(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){ls(this);b=ms(this,b);return Vh(this.ga.c,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(){ls(this);return 0==this.ya};function ns(b,c){ls(b);c=ms(b,c);return Vh(b.ga.c,c)}l.G=function(){ls(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}Oq(b,d.join(""))} function pt(b,c,d){Bq({node:b},qt,rt,[c],d)}function st(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 Cu(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 dv(b){var c=b.c.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(fv(c)||"-"==c){d.type=4;var e,c=b.a,f=!1;do"."==e&&(f=!0),e=b.c.charAt(++b.a);while(fv(e,f));b=parseFloat(b.c.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.c.charAt(++b.a);while("a"<=e&&"z">=e||"A"<=e&&"Z">=e);b=b.c.substring(c,b.a--).toUpperCase();d.value=b}else{if(" "==c||"\t"==c||"\r"==c||"\n"==c)return dv(b);if(""=== c)d.type=6;else throw Error("Unexpected character: "+c);}return d}function bv(b){this.c=b}l=bv.prototype;l.match=function(b){if(b=this.a.type==b)this.a=dv(this.c);return b}; function ev(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(ev(b));while(b.match(5));if(b.match(3)){b=c;break a}}else if(gv(b)){b=[];break a}throw Error(hv(b));}return new Mm(b)}var e=iv[d],c=jv[d];if(!m(e)||!m(c))throw Error("Invalid geometry type: "+d);b=e.call(b);return new c(b)}throw Error(hv(b));}l.De=function(){if(this.match(2)){var b=kv(this);if(this.match(3))return b}else if(gv(this))return null;throw Error(hv(this));}; l.Ce=function(){if(this.match(2)){var b=lv(this);if(this.match(3))return b}else if(gv(this))return[];throw Error(hv(this));};l.Ee=function(){if(this.match(2)){var b=mv(this);if(this.match(3))return b}else if(gv(this))return[];throw Error(hv(this));};l.nl=function(){if(this.match(2)){var b;if(2==this.a.type)for(b=[this.De()];this.match(5);)b.push(this.De());else b=lv(this);if(this.match(3))return b}else if(gv(this))return[];throw Error(hv(this));}; l.ml=function(){if(this.match(2)){var b=mv(this);if(this.match(3))return b}else if(gv(this))return[];throw Error(hv(this));};l.ol=function(){if(this.match(2)){for(var b=[this.Ee()];this.match(5);)b.push(this.Ee());if(this.match(3))return b}else if(gv(this))return[];throw Error(hv(this));};function kv(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(hv(b));}function lv(b){for(var c=[kv(b)];b.match(5);)c.push(kv(b));return c} function mv(b){for(var c=[b.Ce()];b.match(5);)c.push(b.Ce());return c}function gv(b){var c=1==b.a.type&&"EMPTY"==b.a.value;c&&(b.a=dv(b.c));return c}function hv(b){return"Unexpected `"+b.a.value+"` at position "+b.a.position+" in `"+b.c.c+"`"}var jv={POINT:Nk,LINESTRING:Tm,POLYGON:F,MULTIPOINT:Ym,MULTILINESTRING:Vm,MULTIPOLYGON:Zm},iv={POINT:bv.prototype.De,LINESTRING:bv.prototype.Ce,POLYGON:bv.prototype.Ee,MULTIPOINT:bv.prototype.nl,MULTILINESTRING:bv.prototype.ml,MULTIPOLYGON:bv.prototype.ol};function nv(){this.version=void 0}v(nv,gu);nv.prototype.c=function(b){for(b=b.firstChild;null!==b;b=b.nextSibling)if(1==b.nodeType)return this.a(b);return null};nv.prototype.a=function(b){this.version=Aa(b.getAttribute("version"));b=V({version:this.version},ov,b,[]);return m(b)?b:null};function pv(b,c){return V({},qv,b,c)}function rv(b,c){return V({},sv,b,c)}function tv(b,c){var d=pv(b,c);if(m(d)){var e=[Mq(b.getAttribute("width")),Mq(b.getAttribute("height"))];d.size=e;return d}} function uv(b,c){return V([],vv,b,c)} var wv=[null,"http://www.opengis.net/wms"],ov=S(wv,{Service:P(function(b,c){return V({},xv,b,c)}),Capability:P(function(b,c){return V({},yv,b,c)})}),yv=S(wv,{Request:P(function(b,c){return V({},zv,b,c)}),Exception:P(function(b,c){return V([],Av,b,c)}),Layer:P(function(b,c){return V({},Bv,b,c)})}),xv=S(wv,{Name:P(W),Title:P(W),Abstract:P(W),KeywordList:P(uv),OnlineResource:P(fu),ContactInformation:P(function(b,c){return V({},Cv,b,c)}),Fees:P(W),AccessConstraints:P(W),LayerLimit:P(Lq),MaxWidth:P(Lq), MaxHeight:P(Lq)}),Cv=S(wv,{ContactPersonPrimary:P(function(b,c){return V({},Dv,b,c)}),ContactPosition:P(W),ContactAddress:P(function(b,c){return V({},Ev,b,c)}),ContactVoiceTelephone:P(W),ContactFacsimileTelephone:P(W),ContactElectronicMailAddress:P(W)}),Dv=S(wv,{ContactPerson:P(W),ContactOrganization:P(W)}),Ev=S(wv,{AddressType:P(W),Address:P(W),City:P(W),StateOrProvince:P(W),PostCode:P(W),Country:P(W)}),Av=S(wv,{Format:rq(W)}),Bv=S(wv,{Name:P(W),Title:P(W),Abstract:P(W),KeywordList:P(uv),CRS:tq(W), EX_GeographicBoundingBox:P(function(b,c){var d=V({},Fv,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:tq(function(b){var c=[Kq(b.getAttribute("minx")),Kq(b.getAttribute("miny")),Kq(b.getAttribute("maxx")),Kq(b.getAttribute("maxy"))],d=[Kq(b.getAttribute("resx")),Kq(b.getAttribute("resy"))];return{crs:b.getAttribute("CRS"),extent:c,res:d}}),Dimension:tq(function(b){return{name:b.getAttribute("name"), units:b.getAttribute("units"),unitSymbol:b.getAttribute("unitSymbol"),"default":b.getAttribute("default"),multipleValues:Hq(b.getAttribute("multipleValues")),nearestValue:Hq(b.getAttribute("nearestValue")),current:Hq(b.getAttribute("current")),values:W(b)}}),Attribution:P(function(b,c){return V({},Gv,b,c)}),AuthorityURL:tq(function(b,c){var d=pv(b,c);if(m(d))return d.name=b.getAttribute("name"),d}),Identifier:tq(W),MetadataURL:tq(function(b,c){var d=pv(b,c);if(m(d))return d.type=b.getAttribute("type"), d}),DataURL:tq(pv),FeatureListURL:tq(pv),Style:tq(function(b,c){return V({},Hv,b,c)}),MinScaleDenominator:P(Jq),MaxScaleDenominator:P(Jq),Layer:tq(function(b,c){var d=c[c.length-1],e=V({},Bv,b,c);if(m(e)){var f=Hq(b.getAttribute("queryable"));m(f)||(f=d.queryable);e.queryable=m(f)?f:!1;f=Mq(b.getAttribute("cascaded"));m(f)||(f=d.cascaded);e.cascaded=f;f=Hq(b.getAttribute("opaque"));m(f)||(f=d.opaque);e.opaque=m(f)?f:!1;f=Hq(b.getAttribute("noSubsets"));m(f)||(f=d.noSubsets);e.noSubsets=m(f)?f:!1; f=Kq(b.getAttribute("fixedWidth"));m(f)||(f=d.fixedWidth);e.fixedWidth=f;f=Kq(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}})}),Gv=S(wv,{Title:P(W),OnlineResource:P(fu),LogoURL:P(tv)}),Fv=S(wv,{westBoundLongitude:P(Jq), eastBoundLongitude:P(Jq),southBoundLatitude:P(Jq),northBoundLatitude:P(Jq)}),zv=S(wv,{GetCapabilities:P(rv),GetMap:P(rv),GetFeatureInfo:P(rv)}),sv=S(wv,{Format:tq(W),DCPType:tq(function(b,c){return V({},Iv,b,c)})}),Iv=S(wv,{HTTP:P(function(b,c){return V({},Jv,b,c)})}),Jv=S(wv,{Get:P(pv),Post:P(pv)}),Hv=S(wv,{Name:P(W),Title:P(W),Abstract:P(W),LegendURL:tq(tv),StyleSheetURL:P(pv),StyleURL:P(pv)}),qv=S(wv,{Format:P(W),OnlineResource:P(fu)}),vv=S(wv,{Keyword:rq(W)});function Kv(){this.b="http://mapserver.gis.umn.edu/mapserver";this.c=new $q;this.defaultDataProjection=null}v(Kv,Cq); function Lv(b,c,d){c.namespaceURI=b.b;var e=$p(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 Kw,Lw(this),Mw(this,!1,b))}};Jw.prototype.k=function(b,c){this.g=!1;Mw(this,b,c)};function Mw(b,c,d){b.a=!0;b.b=d;b.d=!c;Nw(b)} function Lw(b){if(b.a){if(!b.i)throw new Ow;b.i=!1}}function Pw(b,c,d,e){b.f.push([c,d,e]);b.a&&Nw(b)}Jw.prototype.then=function(b,c,d){var e,f,g=new vw(function(b,c){e=b;f=c});Pw(this,e,function(b){b instanceof Kw?g.cancel():f(b)});return g.then(b,c,d)};mw(Jw);function Qw(b){return Ta(b.f,function(b){return ka(b[1])})} function Nw(b){if(b.e&&b.a&&Qw(b)){var c=b.e,d=Rw[c];d&&(ba.clearTimeout(d.aa),delete Rw[c]);b.e=0}b.c&&(b.c.n--,delete b.c);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.d?h:g)try{var k=g.call(f||b.q,c);m(k)&&(b.d=b.d&&(k==c||k instanceof Error),b.b=c=k);nw(c)&&(e=!0,b.g=!0)}catch(n){c=n,b.d=!0,Qw(b)||(d=!0)}}b.b=c;e&&(k=ra(b.k,b,!0),e=ra(b.k,b,!1),c instanceof Jw?(Pw(c,k,e),c.p=!0):c.then(k,e));d&&(c=new Sw(c),Rw[c.aa]=c,b.e=c.aa)} function Ow(){wa.call(this)}v(Ow,wa);Ow.prototype.message="Deferred has already fired";Ow.prototype.name="AlreadyCalledError";function Kw(){wa.call(this)}v(Kw,wa);Kw.prototype.message="Deferred was canceled";Kw.prototype.name="CanceledError";function Sw(b){this.aa=ba.setTimeout(ra(this.c,this),0);this.a=b}Sw.prototype.c=function(){delete Rw[this.aa];throw this.a;};var Rw={};function Tw(b,c){m(b.name)?(this.name=b.name,this.code=Uw[b.name]):(this.code=b.code,this.name=Vw(b.code));wa.call(this,za("%s %s",this.name,c))}v(Tw,wa);function Vw(b){var c=vb(Uw,function(c){return b==c});if(!m(c))throw Error("Invalid code: "+b);return c}var Uw={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 Ww(b,c){qc.call(this,b.type,c)}v(Ww,qc);function Xw(){hd.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(Xw,hd);Xw.prototype.getError=function(){return this.hb.error&&new Tw(this.hb.error,"reading file")};Xw.prototype.a=function(b){this.dispatchEvent(new Ww(b,this))};Xw.prototype.P=function(){Xw.T.P.call(this);delete this.hb}; function Yw(b){var c=new Jw;b.Ra("loadend",sa(function(b,c){var f=c.hb.result,g=c.getError();null==f||g?(Lw(b),Mw(b,!1,g)):(Lw(b),Mw(b,!0,f));c.Jc()},c,b));return c};function Zw(b){b=m(b)?b:{};Rj.call(this,{handleEvent:bd});this.e=m(b.formatConstructors)?b.formatConstructors:[];this.q=m(b.projection)?ze(b.projection):null;this.f=null;this.a=void 0}v(Zw,Rj);Zw.prototype.P=function(){m(this.a)&&Wc(this.a);Zw.T.P.call(this)};Zw.prototype.g=function(b){b=b.a.dataTransfer.files;var c,d,e;c=0;for(d=b.length;c=e*e+c*c&&(qx(this,b),null===this.i?rx(this,b):this.a===lx||this.a===ox&&null!==this.i||sx(this,b)?this.U():(b=b.coordinate,e=this.g.R(),this.a===mx?(this.i=b.slice(),c=e.Q(),c.push(b.slice()),e.W(c)):this.a===nx&&(this.e[0].push(b.slice()),e.W(this.e)),tx(this)),d=!1);return d} function qx(b,c){if(b.a===lx&&null===b.i)rx(b,c);else if(null===b.i){var d=c.coordinate.slice();null===b.p?(b.p=new O(new Nk(d)),tx(b)):b.p.R().W(d)}else{var d=c.coordinate,e=b.g.R(),f,g;b.a===lx?(g=e.Q(),g[0]=d[0],g[1]=d[1],e.W(g)):(b.a===mx?f=e.Q():b.a===nx?f=b.e[0]:b.a===ox&&(f=e.Oc()),sx(b,c)&&(d=b.i.slice()),b.p.R().W(d),g=f[f.length-1],g[0]=d[0],g[1]=d[1],b.a===mx?e.W(f):b.a===nx?(g=b.o.R(),g.W(f),e.W(b.e)):b.a===ox&&(g=b.o.R(),g.W([e.Oc(),d]),e.Hf(g.If())));tx(b)}return!0} function sx(b,c){var d=!1;if(null!==b.g){var e=b.g.R(),f=!1,g=[b.i];b.a===mx?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]);Cx(b,k);d={};d[ma(h)]=!0;c=1;for(n=g.length;cd&&(b.index+=f)})}function Ax(){var b=Al();return function(){return b.Point}};function Fx(b,c,d){qc.call(this,b);this.selected=c;this.deselected=d}v(Fx,qc); function Gx(b){Rj.call(this,{handleEvent:Hx});b=m(b)?b:{};this.i=m(b.condition)?b.condition:Zj;this.e=m(b.addCondition)?b.addCondition:ad;this.p=m(b.removeCondition)?b.removeCondition:ad;this.D=m(b.toggleCondition)?b.toggleCondition:bk;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=bd;this.f=c;this.a=new yp({style:m(b.style)?b.style:Ix()});b=this.a.a;w(b,"add",this.q,!1,this);w(b,"remove",this.r,!1,this)}v(Gx,Rj); Gx.prototype.o=function(){return this.a.a}; function Hx(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.xe(k);if(0c.d?(k=Wb(k,of(c)),c=[h,k,b[2]]):c=b):(h=b[1],c=kh(d,b[0],c),c=hc.d?null:b):c=b;e=null===c?void 0:this.tileUrlFunction(c,e,f);e=new this.tileClass(b,m(e)?0:4,m(e)?e:"",this.crossOrigin,this.tileLoadFunction); w(e,"change",this.tk,!1,this);this.a.set(g,e);return e};l.bb=function(){return this.tileLoadFunction};l.cb=function(){return this.tileUrlFunction};l.tk=function(b){b=b.target;switch(b.state){case 1:this.dispatchEvent(new sh("tileloadstart",b));break;case 2:this.dispatchEvent(new sh("tileloadend",b));break;case 3:this.dispatchEvent(new sh("tileloaderror",b))}};l.jb=function(b){this.a.clear();this.tileLoadFunction=b;this.l()};l.ua=function(b){this.a.clear();this.tileUrlFunction=b;this.l()}; l.Oe=function(b,c,d){b=this.nb(b,c,d);Wg(this.a,b)&&this.a.get(b)};function ey(b){var c=m(b.extent)?b.extent:Sl,d=oh(c,b.maxZoom,b.tileSize);ch.call(this,{minZoom:b.minZoom,origin:le(c,"top-left"),resolutions:d,tileSize:b.tileSize})}v(ey,ch);ey.prototype.Db=function(b){b=m(b)?b:{};var c=this.minZoom,d=this.maxZoom,e=null;if(m(b.extent)){var e=Array(d+1),f;for(f=0;f<=d;++f)e[f]=f=this.minZoom;--b)if(e.a=e.d>>=1,e.b=e.c>>=1,c.call(d,b,e))return!0;return!1};function fy(b){cy.call(this,{crossOrigin:"anonymous",opaque:!0,projection:ze("EPSG:3857"),state:"loading",tileLoadFunction:b.tileLoadFunction,wrapX:m(b.wrapX)?b.wrapX:!0});this.d=m(b.culture)?b.culture:"en-us";this.b=m(b.maxZoom)?b.maxZoom:-1;var c=new Wr((Sb?"https:":"http:")+"//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+b.imagerySet);(new Sx(c,"jsonp")).send({include:"ImageryProviders",uriScheme:Sb?"https":"http",key:b.key},ra(this.g,this))}v(fy,cy);var gy=new qf({html:'Terms of Use'}); fy.prototype.g=function(b){if(200!=b.statusCode||"OK"!=b.statusDescription||"ValidCredentials"!=b.authenticationResultCode||1!=b.resourceSets.length||1!=b.resourceSets[0].resources.length)bh(this,"error");else{var c=b.brandLogoUri;Sb&&-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 ey({extent:lh(this.e),minZoom:d.zoomMin,maxZoom:e,tileSize:d.imageWidth});this.tileGrid=f;var g=this.d;this.tileUrlFunction=ay(f.Db(),Zx(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}",hf(b))}})));if(d.imageryProviders){var h=De(ze("EPSG:4326"),this.e);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=te([b[1],b[0],b[3],b[2]],h);var k,n;for(k=c;k<=g;++k)n=k.toString(),c=fh(f,b,k),n in d?d[n].push(c):d[n]=[c]});return new qf({html:c,tileRanges:d})}); b.push(gy);this.f=b}this.D=c;bh(this,"ready")}};function hy(b){vn.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",hy.prototype.N,this)}v(hy,vn);hy.prototype.H=function(){return this.a};hy.prototype.Hb=function(b,c,d){c!==this.p&&(this.clear(),this.p=c,this.a.Hb(b,c,d),iy(this),this.Ga(this.o))};hy.prototype.N=function(){this.clear();iy(this);this.Ga(this.o);this.l()}; function iy(b){if(m(b.p)){b.o.length=0;for(var c=Sd(),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=ke(d);e={OPERATION:this.U?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.g,SETDISPLAYWIDTH:Math.round(e[0]),SETDISPLAYHEIGHT:Math.round(e[1]),SETVIEWSCALE:f,SETVIEWCENTERX:d[0],SETVIEWCENTERY:d[1]};Db(e,c);return Tr(Vr([b],e))};l.ak=function(b){this.b=null;this.a=b;this.l()};function My(b){var c=m(b.attributions)?b.attributions:null,d=b.imageExtent,e,f;m(b.imageSize)&&(e=ne(d)/b.imageSize[1],f=[e]);var g=m(b.crossOrigin)?b.crossOrigin:null,h=m(b.imageLoadFunction)?b.imageLoadFunction:nn;gn.call(this,{attributions:c,logo:b.logo,projection:ze(b.projection),resolutions:f});this.a=new gw(d,e,1,c,b.url,g,h)}v(My,gn);My.prototype.sc=function(b){return pe(b,this.a.J())?this.a:null};function Ny(b){b=m(b)?b:{};gn.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection,resolutions:b.resolutions});this.S=m(b.crossOrigin)?b.crossOrigin:null;this.d=b.url;this.k=m(b.imageLoadFunction)?b.imageLoadFunction:nn;this.b=b.params;this.g=!0;Oy(this);this.N=b.serverType;this.U=m(b.hidpi)?b.hidpi:!0;this.a=null;this.o=[0,0];this.H=0;this.p=m(b.ratio)?b.ratio:1.5}v(Ny,gn);var Py=[101,101];l=Ny.prototype; l.hk=function(b,c,d,e){if(m(this.d)){var f=me(b,c,0,Py),g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.b.LAYERS};Db(g,this.b,e);e=Math.floor((f[3]-b[1])/c);g[this.g?"I":"X"]=Math.floor((b[0]-f[0])/c);g[this.g?"J":"Y"]=e;return Qy(this,f,Py,1,ze(d),g)}};l.jk=function(){return this.b}; l.sc=function(b,c,d,e){if(!m(this.d))return null;c=hn(this,c);1==d||this.U&&m(this.N)||(d=1);var f=this.a;if(null!==f&&this.H==this.c&&f.resolution==c&&f.f==d&&Zd(f.J(),b))return f;f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Db(f,this.b);b=b.slice();var g=(b[0]+b[2])/2,h=(b[1]+b[3])/2;if(1!=this.p){var k=this.p*qe(b)/2,n=this.p*ne(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(qe(b)/k),p=Math.ceil(ne(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=Qy(this,b,this.o,d,e,f);this.a=new gw(b,c,d,this.f,e,this.S,this.k);this.H=this.c;w(this.a,"change",this.r,!1,this);return this.a};l.ik=function(){return this.k}; function Qy(b,c,d,e,f,g){g[b.g?"CRS":"SRS"]=f.a;"STYLES"in b.b||(g.STYLES=new String(""));if(1!=e)switch(b.N){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.g&&"ne"==d.substr(0,2)?h=[c[1],c[0],c[3],c[2]]:h=c;g.BBOX=h.join(",");return Tr(Vr([b.d],g))}l.kk=function(){return this.d};l.lk=function(b){this.a=null;this.k=b;this.l()}; l.mk=function(b){b!=this.d&&(this.d=b,this.a=null,this.l())};l.nk=function(b){Db(this.b,b);Oy(this);this.a=null;this.l()};function Oy(b){b.g=0<=La(zb(b.b,"VERSION","1.3.0"),"1.3")};function Ry(b){b=m(b)?b:{};$.call(this,{attributions:b.attributions,doc:b.doc,format:new qs({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(Ry,$);function Sy(b){var c=m(b.projection)?b.projection:"EPSG:3857",d=new ey({extent:lh(c),maxZoom:b.maxZoom,tileSize:b.tileSize});cy.call(this,{attributions:b.attributions,crossOrigin:b.crossOrigin,logo:b.logo,projection:c,tileGrid:d,tileLoadFunction:b.tileLoadFunction,tilePixelRatio:b.tilePixelRatio,tileUrlFunction:$x,wrapX:m(b.wrapX)?b.wrapX:!0});this.i=d.Db();m(b.tileUrlFunction)?this.ua(b.tileUrlFunction):m(b.urls)?this.ua(Yx(b.urls)):m(b.url)&&this.b(b.url)}v(Sy,cy); Sy.prototype.ua=function(b){Sy.T.ua.call(this,ay(this.i,b))};Sy.prototype.b=function(b){this.ua(Yx(by(b)))};function Ty(b){b=m(b)?b:{};var c;m(b.attributions)?c=b.attributions:c=[Uy];var d=Sb?"https:":"http:";Sy.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(Ty,Sy);var Uy=new qf({html:'© OpenStreetMap contributors.'});function Vy(b){b=m(b)?b:{};var c=Wy[b.layer];this.d=b.layer;var d=Sb?"https:":"http:";Sy.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.d+"/{z}/{x}/{y}.jpg"})}v(Vy,Sy); var Xy=new qf({html:'Tiles Courtesy of MapQuest'}),Wy={osm:{maxZoom:19,attributions:[Xy,Uy]},sat:{maxZoom:18,attributions:[Xy,new qf({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[Xy,Uy]}};Vy.prototype.g=function(){return this.d};function Yy(b){b=m(b)?b:{};$.call(this,{attributions:b.attributions,doc:b.doc,format:new $t,logo:b.logo,node:b.node,projection:b.projection,text:b.text,url:b.url,urls:b.urls})}v(Yy,$);function Zy(b){Z.call(this,{attributions:b.attributions,format:b.format,logo:b.logo,projection:b.projection});this.p=new qn;this.r=b.loader;this.H=m(b.strategy)?b.strategy:Kx;this.o={}}v(Zy,Z);Zy.prototype.lb=function(b){var c=[],d,e;d=0;for(e=b.length;dStamen Design, under CC BY 3.0.'}),Uy];function dz(b){b=m(b)?b:{};var c=m(b.params)?b.params:{};cy.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection,tileGrid:b.tileGrid,tileLoadFunction:b.tileLoadFunction,tileUrlFunction:ra(this.rk,this),wrapX:m(b.wrapX)?b.wrapX:!0});var d=b.urls;!m(d)&&m(b.url)&&(d=by(b.url));this.d=null!=d?d:[];this.b=c;this.g=Sd()}v(dz,cy);l=dz.prototype;l.ok=function(){return this.b};l.Xb=function(b,c,d){b=dz.T.Xb.call(this,b,c,d);return 1==c?b:b*c+.5|0};l.pk=function(){return this.d}; l.qk=function(b){b=m(b)?by(b):null;this.Of(b)};l.Of=function(b){this.d=null!=b?b:[];this.l()}; l.rk=function(b,c,d){var e=this.tileGrid;null===e&&(e=rh(this,d));if(!(e.a.length<=b[0])){var f=eh(e,b,this.g),g=e.pa(b[0]);1!=c&&(g=g*c+.5|0);e={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};Db(e,this.b);var h=this.d;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[Wb((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=Cz(this,!1,b,c,d,e,g);if(null===e)return null;b=Cz(this,!0,b,c,d,m(f)?f:cd,g);return{offsetX:e.offsetX,offsetY:e.offsetY,image:e.image,wf:b.image}}; function Cz(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.d[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},Dz(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},Dz(this,b,e,f)),k;return null};function Dz(b,c,d,e){c=[c,1];0e&&(e=0);f=d.TileMatrixSetLink[e].TileMatrixSet;e=d.WGS84BoundingBox;m(e)&&(g=ze("EPSG:4326").J(),g=e[0]== g[0]&&e[2]==g[2]);var h=d.Format[0];m(c.format)&&(h=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 k={};m(d.Dimension)&&Qa(d.Dimension,function(b){var c=b.Identifier,d=b["default"];m(d)||(d=b.values[0]);k[c]=d});var n=Ua(b.Contents.TileMatrixSet,function(b){return b.Identifier==f}),p=uz(n),n=m(c.projection)?ze(c.projection):ze(n.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3")),q=[],r=c.requestEncoding,r= m(r)?r:"";if(b.OperationsMetadata.hasOwnProperty("GetTile")&&0!=r.lastIndexOf("REST",0)){var d=b.OperationsMetadata.GetTile.DCP.HTTP.Get,s=Ua(d[0].Constraint,function(b){return"GetEncoding"==b.name}).AllowedValues.Value;0