// OpenLayers 3. See http://openlayers.org/ // License: https://raw.githubusercontent.com/openlayers/ol3/master/LICENSE.md // Version: v3.10.1 (function (root, factory) { if (typeof exports === "object") { module.exports = factory(); } else if (typeof define === "function" && define.amd) { define([], factory); } else { root.ol = factory(); } }(this, function () { var OPENLAYERS = {}; var l,aa=aa||{},ba=this;function ca(a){return void 0!==a}function t(a,c,d){a=a.split(".");d=d||ba;a[0]in d||!d.execScript||d.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)!a.length&&ca(c)?d[e]=c:d[e]?d=d[e]:d=d[e]={}}function da(){}function ea(a){a.Bb=function(){return a.eg?a.eg:a.eg=new a}} function fa(a){var c=typeof a;if("object"==c)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return c;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==c&&"undefined"==typeof a.call)return"object";return c}function ga(a){return"array"==fa(a)}function ha(a){var c=fa(a);return"array"==c||"object"==c&&"number"==typeof a.length}function ia(a){return"string"==typeof a}function ja(a){return"number"==typeof a}function ka(a){return"function"==fa(a)}function la(a){var c=typeof a;return"object"==c&&null!=a||"function"==c}function v(a){return a[ma]||(a[ma]=++na)}var ma="closure_uid_"+(1E9*Math.random()>>>0),na=0; function oa(a,c,d){return a.call.apply(a.bind,arguments)}function pa(a,c,d){if(!a)throw Error();if(2")&&(a=a.replace(Ga,">"));-1!=a.indexOf('"')&&(a=a.replace(Ha,"""));-1!=a.indexOf("'")&&(a=a.replace(Ja,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(Ka,"�"));return a}var Ea=/&/g,Fa=//g,Ha=/"/g,Ja=/'/g,Ka=/\x00/g,Da=/[\x00&<>"']/,La=String.prototype.repeat?function(a,c){return a.repeat(c)}:function(a,c){return Array(c+1).join(a)}; function Na(a){a=ca(void 0)?a.toFixed(void 0):String(a);var c=a.indexOf(".");-1==c&&(c=a.length);return La("0",Math.max(0,2-c))+a} function Oa(a,c){for(var d=0,e=Ba(String(a)).split("."),f=Ba(String(c)).split("."),g=Math.max(e.length,f.length),h=0;0==d&&hc?1:0};function Qa(a,c,d){return Math.min(Math.max(a,c),d)}function Sa(a,c,d,e,f,g){var h=f-d,k=g-e;if(0!==h||0!==k){var m=((a-d)*h+(c-e)*k)/(h*h+k*k);1d?null:ia(a)?a.charAt(d):a[d]}function db(a,c,d){for(var e=a.length,f=ia(a)?a.split(""):a,g=0;g=arguments.length?Wa.slice.call(a,c):Wa.slice.call(a,c,d)}function kb(a,c){a.sort(c||lb)}function mb(a){for(var c=nb,d=0;dc?1:ad)for(d=1;dg?1:.5))+f,0),void 0!==d&&(e=Math.min(e,d)),c/Math.pow(a,e)}};function wb(a,c){var d=a%c;return 0>d*c?d+c:d}function xb(a,c,d){return a+d*(c-a)}function yb(a){return a*Math.PI/180};function zb(a){if(void 0!==a)return 0}function Ab(a,c){if(void 0!==a)return a+c}function Bb(a){var c=2*Math.PI/a;return function(a,e){if(void 0!==a)return a=Math.floor((a+e)/c+.5)*c}}function Cb(){var a=yb(5);return function(c,d){if(void 0!==c)return Math.abs(c+d)<=a?0:c+d}};function Db(a,c,d){this.center=a;this.resolution=c;this.rotation=d};var Fb;a:{var Gb=ba.navigator;if(Gb){var Hb=Gb.userAgent;if(Hb){Fb=Hb;break a}}Fb=""}function Ib(a){return-1!=Fb.indexOf(a)};function Jb(a,c,d){for(var e in a)c.call(d,a[e],e,a)}function Kb(a,c){for(var d in a)if(c.call(void 0,a[d],d,a))return!0;return!1}function Lb(a){var c=0,d;for(d in a)c++;return c}function Mb(a){var c=[],d=0,e;for(e in a)c[d++]=a[e];return c}function Nb(a){var c=[],d=0,e;for(e in a)c[d++]=e;return c}function Ob(a,c){return c in a}function Pb(a,c){for(var d in a)if(a[d]==c)return!0;return!1}function Qb(a,c){for(var d in a)if(c.call(void 0,a[d],d,a))return d} function Rb(a){for(var c in a)return!1;return!0}function Sb(a){for(var c in a)delete a[c]}function Tb(a,c,d){return c in a?a[c]:d}function Ub(a,c){var d=[];return c in a?a[c]:a[c]=d}function Vb(a){var c={},d;for(d in a)c[d]=a[d];return c}function Wb(a){var c=fa(a);if("object"==c||"array"==c){if(ka(a.clone))return a.clone();var c="array"==c?[]:{},d;for(d in a)c[d]=Wb(a[d]);return c}return a}var Xb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); function Yb(a,c){for(var d,e,f=1;fparseFloat(a))?String(c):a}(),kc={};function lc(a){return kc[a]||(kc[a]=0<=Oa(ic,a))}var mc=ba.document,nc=mc&&$b?hc()||("CSS1Compat"==mc.compatMode?parseInt(ic,10):5):void 0;var oc=!$b||9<=nc,pc=!$b||9<=nc,qc=$b&&!lc("9");!cc||lc("528");bc&&lc("1.9b")||$b&&lc("8")||Zb&&lc("9.5")||cc&&lc("528");bc&&!lc("8")||$b&&lc("9");function rc(){0!=sc&&(tc[v(this)]=this);this.ca=this.ca;this.ka=this.ka}var sc=0,tc={};rc.prototype.ca=!1;rc.prototype.Tc=function(){if(!this.ca&&(this.ca=!0,this.Y(),0!=sc)){var a=v(this);delete tc[a]}};function uc(a,c){var d=ra(vc,c);a.ca?d.call(void 0):(a.ka||(a.ka=[]),a.ka.push(ca(void 0)?qa(d,void 0):d))}rc.prototype.Y=function(){if(this.ka)for(;this.ka.length;)this.ka.shift()()};function vc(a){a&&"function"==typeof a.Tc&&a.Tc()};function wc(a,c){this.type=a;this.g=this.target=c;this.i=!1;this.ah=!0}wc.prototype.c=function(){this.i=!0};wc.prototype.preventDefault=function(){this.ah=!1};function xc(a){a.c()}function yc(a){a.preventDefault()};var zc=$b?"focusout":"DOMFocusOut";function Ac(a){Ac[" "](a);return a}Ac[" "]=da;function Bc(a,c){wc.call(this,a?a.type:"");this.relatedTarget=this.g=this.target=null;this.A=this.j=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.v=this.f=this.a=this.C=!1;this.state=null;this.l=!1;this.b=null;if(a){var d=this.type=a.type,e=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.g=c;var f=a.relatedTarget;if(f){if(bc){var g;a:{try{Ac(f.nodeName);g=!0;break a}catch(h){}g=!1}g||(f=null)}}else"mouseover"==d? f=a.fromElement:"mouseout"==d&&(f=a.toElement);this.relatedTarget=f;null===e?(this.offsetX=cc||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=cc||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0);this.button= a.button;this.j=a.keyCode||0;this.A=a.charCode||("keypress"==d?a.keyCode:0);this.C=a.ctrlKey;this.a=a.altKey;this.f=a.shiftKey;this.v=a.metaKey;this.l=dc?a.metaKey:a.ctrlKey;this.state=a.state;this.b=a;a.defaultPrevented&&this.preventDefault()}}w(Bc,wc);var Cc=[1,4,2];function Dc(a){return(oc?0==a.b.button:"click"==a.type?!0:!!(a.b.button&Cc[0]))&&!(cc&&dc&&a.C)}Bc.prototype.c=function(){Bc.ba.c.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0}; Bc.prototype.preventDefault=function(){Bc.ba.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,qc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(c){}};var Fc="closure_listenable_"+(1E6*Math.random()|0);function Gc(a){return!(!a||!a[Fc])}var Hc=0;function Ic(a,c,d,e,f){this.listener=a;this.b=null;this.src=c;this.type=d;this.Mc=!!e;this.Nd=f;this.key=++Hc;this.Cc=this.td=!1}function Jc(a){a.Cc=!0;a.listener=null;a.b=null;a.src=null;a.Nd=null};function Kc(a){this.src=a;this.b={};this.a=0}Kc.prototype.add=function(a,c,d,e,f){var g=a.toString();a=this.b[g];a||(a=this.b[g]=[],this.a++);var h=Lc(a,c,e,f);-1f.keyCode||void 0!=f.returnValue)){a:{var g=!1;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(m){g=!0}if(g||void 0==f.returnValue)f.returnValue=!0}f=[];for(g=d.g;g;g=g.parentNode)f.push(g);for(var g=a.type,h=f.length-1;!d.i&&0<=h;h--){d.g=f[h];var k=ad(f[h],g,!0,d),e=e&&k}for(h=0;!d.i&&h>>0);function Sc(a){if(ka(a))return a;a[cd]||(a[cd]=function(c){return a.handleEvent(c)});return a[cd]};function dd(){rc.call(this);this.fb=new Kc(this);this.pd=this;this.Ma=null}w(dd,rc);dd.prototype[Fc]=!0;l=dd.prototype;l.addEventListener=function(a,c,d,e){B(this,a,c,d,e)};l.removeEventListener=function(a,c,d,e){Zc(this,a,c,d,e)}; function C(a,c){var d,e=a.Ma;if(e)for(d=[];e;e=e.Ma)d.push(e);var e=a.pd,f=c,g=f.type||f;if(ia(f))f=new wc(f,e);else if(f instanceof wc)f.target=f.target||e;else{var h=f,f=new wc(g,e);Yb(f,h)}var h=!0,k;if(d)for(var m=d.length-1;!f.i&&0<=m;m--)k=f.g=d[m],h=ed(k,g,!0,f)&&h;f.i||(k=f.g=e,h=ed(k,g,!0,f)&&h,f.i||(h=ed(k,g,!1,f)&&h));if(d)for(m=0;!f.i&&m=d||(1<=d?(h=k,f=g):(h+=d*m,f+=d*n));return[h,f]}function sd(a,c){var d=wb(a+180,360)-180,e=Math.abs(Math.round(3600*d));return Math.floor(e/3600)+"\u00b0 "+Na(Math.floor(e/60%60))+"\u2032 "+Na(Math.floor(e%60))+"\u2033 "+c.charAt(0>d?1:0)} function td(a,c,d){return a?c.replace("{x}",a[0].toFixed(d)).replace("{y}",a[1].toFixed(d)):""}function ud(a,c){for(var d=!0,e=a.length-1;0<=e;--e)if(a[e]!=c[e]){d=!1;break}return d}function vd(a,c){var d=Math.cos(c),e=Math.sin(c),f=a[1]*d+a[0]*e;a[0]=a[0]*d-a[1]*e;a[1]=f;return a}function wd(a,c){var d=a[0]-c[0],e=a[1]-c[1];return d*d+e*e}function xd(a,c){return wd(a,rd(a,c))}function yd(a,c){return td(a,"{x}, {y}",c)};function zd(a){this.length=a.length||a;for(var c=0;ce&&(k=k|4);hf&&(k|=2);0===k&&(k=1);return k}function Nd(){return[Infinity,Infinity,-Infinity,-Infinity]} function Qd(a,c,d,e,f){return f?(f[0]=a,f[1]=c,f[2]=d,f[3]=e,f):[a,c,d,e]}function Yd(a,c){var d=a[0],e=a[1];return Qd(d,e,d,e,c)}function Zd(a,c){return a[0]==c[0]&&a[2]==c[2]&&a[1]==c[1]&&a[3]==c[3]}function $d(a,c){c[0]a[2]&&(a[2]=c[2]);c[1]a[3]&&(a[3]=c[3]);return a}function Od(a,c){c[0]a[2]&&(a[2]=c[0]);c[1]a[3]&&(a[3]=c[1])} function ae(a,c,d,e,f){for(;dg;++g)h=f[g],k=e[g],f[g]=a[0]+h*c-k*d,e[g]=a[1]+h*d+k*c;return Pd(f,e,void 0)}function ie(a){return a[3]-a[1]}function je(a,c,d){d=d?d:Nd();ke(a,c)&&(d[0]=a[0]>c[0]?a[0]:c[0],d[1]=a[1]>c[1]?a[1]:c[1],d[2]=a[2]=c[0]&&a[1]<=c[3]&&a[3]>=c[1]}function me(a){return a[2]a||0!==this.j&&a<=this.j)return this;var c=a.toString();if(this.g.hasOwnProperty(c))return this.g[c];var d=this.tc(a);if(d.o.lengthf&&(f=g);g=k;h=m}return f}function jf(a,c,d,e,f){var g,h;g=0;for(h=d.length;gk){for(;cu&&(n=p,u=x)}u>f&&(m[(n-c)/e]=1,r+eN&&RaN)&&(0>va&&Mva)||(A[h++]=x,A[h++]=K,F=x,z=K);x=J;K=I}}A[h++]=x;A[h++]=K}}k.push(h);c=p}return h};function tf(a,c){af.call(this);this.c=this.i=-1;this.ja(a,c)}w(tf,af);l=tf.prototype;l.clone=function(){var a=new tf(null);uf(a,this.a,this.o.slice());return a};l.Va=function(a,c,d,e){if(eg!=p>g&&f<(n-k)*(g-m)/(p-m)+k&&(h=!h);k=n;m=p}return h}function yf(a,c,d,e,f,g){if(0===d.length||!xf(a,c,d[0],e,f,g))return!1;var h;c=1;for(h=d.length;cq&&(n=(n+p)/2,yf(a,c,d,e,n,r)&&(y=n,q=A));n=p}isNaN(y)&&(y=f[g]);return h?(h.push(y,r),h):[y,r]};function Af(a,c,d,e,f,g){for(var h=[a[c],a[c+1]],k=[],m;c+e=f[0]&&g[2]<=f[2]||g[1]>=f[1]&&g[3]<=f[3]?!0:Af(a,c,d,e,function(a,c){var d=!1,e=Xd(f,a),g=Xd(f,c);if(1===e||1===g)d=!0;else{var q=f[0],r=f[1],u=f[2],y=f[3],A=c[0],F=c[1],z=(F-a[1])/(A-a[0]);g&2&&!(e&2)&&(d=A-(F-y)/z,d=d>=q&&d<=u);d||!(g&4)||e&4||(d=F-(A-u)*z,d=d>=r&&d<=y);d||!(g&8)||e&8||(d=A-(F-r)/z,d=d>=q&&d<=u);d||!(g&16)||e&16||(d=F-(A-q)*z,d=d>=r&&d<=y)}return d}):!1} function Cf(a,c,d,e,f){var g=d[0];if(!(Bf(a,c,g,e,f)||xf(a,c,g,e,f[0],f[1])||xf(a,c,g,e,f[0],f[3])||xf(a,c,g,e,f[2],f[1])||xf(a,c,g,e,f[2],f[3])))return!1;if(1===d.length)return!0;c=1;for(g=d.length;ca||this.c.length<=a)return null;var c=new tf(null);uf(c,this.a,this.o.slice(0===a?0:this.c[a-1],this.c[a]));return c};l.Dd=function(){var a=this.a,c=this.o,d=this.c,e=[],f=0,g,h;g=0;for(h=d.length;gthis.i)}return void 0!==a?this.f+a:a}; l.Ke=function(a,c,d){a instanceof af||(a=Lf(a));var e=d||{};d=void 0!==e.padding?e.padding:[0,0,0,0];var f=void 0!==e.constrainResolution?e.constrainResolution:!0,g=void 0!==e.nearest?e.nearest:!1,h;void 0!==e.minResolution?h=e.minResolution:void 0!==e.maxZoom?h=this.constrainResolution(this.a,e.maxZoom-this.f,0):h=0;var k=a.o,m=this.va(),e=Math.cos(-m),m=Math.sin(-m),n=Infinity,p=Infinity,q=-Infinity,r=-Infinity;a=a.G;for(var u=0,y=k.length;ua?Xf(2*a):1-Xf(2*(a-.5))};function $f(a){var c=a.source,d=a.start?a.start:Date.now(),e=c[0],f=c[1],g=void 0!==a.duration?a.duration:1E3,h=a.easing?a.easing:Xf;return function(a,c){if(c.time>=1;return d.join("")}function fg(a){return dg(a[0],a[1],a[2])}function gg(a,c,d){var e=a[0],f=hg(c,a);d=ig(d);if(Ud(d,f))return a;a=le(d);f[0]+=a*Math.ceil((d[0]-f[0])/a);return c.Jd(f,e)} function jg(a,c){var d=a[0],e=a[1],f=a[2];if(c.minZoom>d||d>c.maxZoom)return!1;var g=c.R();return(d=g?kg(c,g,d):c.a?c.a[d]:null)?lg(d,e,f):!0};function mg(a,c,d,e){this.b=a;this.f=c;this.a=d;this.c=e}mg.prototype.contains=function(a){return lg(this,a[1],a[2])};function lg(a,c,d){return a.b<=c&&c<=a.f&&a.a<=d&&d<=a.c}function ng(a,c){return a.b==c.b&&a.a==c.a&&a.f==c.f&&a.c==c.c}function og(a){return a.c-a.a+1}function pg(a){return a.f-a.b+1}function qg(a,c){return a.b<=c.f&&a.f>=c.b&&a.a<=c.c&&a.c>=c.a};function rg(a){this.a=a.html;this.b=a.tileRanges?a.tileRanges:null}rg.prototype.c=function(){return this.a};function sg(a,c,d){wc.call(this,a,d);this.element=c}w(sg,wc);function tg(a){jd.call(this);this.a=a?a:[];ug(this)}w(tg,jd);l=tg.prototype;l.clear=function(){for(;0");g=g.join("")}g=f.createElement(g);h&&(ia(h)?g.className=h:ga(h)?g.className=h.join(" "):Jg(g,h));2=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!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(a,c){var d=ja(c)?c:a;this.left*=a;this.right*=a;this.top*=d;this.bottom*=d;return this};function eh(a,c,d,e){this.left=a;this.top=c;this.width=d;this.height=e}l=eh.prototype;l.clone=function(){return new eh(this.left,this.top,this.width,this.height)};l.contains=function(a){return a instanceof eh?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height}; l.distance=function(a){var c=a.xa.g};function Ah(a,c){dd.call(this);this.b=a;this.state=c}w(Ah,dd);function Bh(a){C(a,"change")}Ah.prototype.jb=function(){return v(this).toString()};Ah.prototype.j=function(){return this.b};function Ch(a){jd.call(this);this.i=Ce(a.projection);this.j=void 0!==a.attributions?a.attributions:null;this.T=a.logo;this.v=void 0!==a.state?a.state:"ready";this.N=void 0!==a.wrapX?a.wrapX:!1}w(Ch,jd);l=Ch.prototype;l.be=wa;l.na=function(){return this.j};l.ma=function(){return this.T};l.oa=function(){return this.i};l.pa=function(){return this.v};function Dh(a){return a.N}l.la=function(a){this.j=a;this.s()};function Eh(a,c){a.v=c;a.s()};function Fh(a){this.minZoom=void 0!==a.minZoom?a.minZoom:0;this.b=a.resolutions;this.maxZoom=this.b.length-1;this.c=void 0!==a.origin?a.origin:null;this.g=null;void 0!==a.origins&&(this.g=a.origins);var c=a.extent;void 0===c||this.c||this.g||(this.c=fe(c));this.j=null;void 0!==a.tileSizes&&(this.j=a.tileSizes);this.l=void 0!==a.tileSize?a.tileSize:this.j?null:256;this.A=void 0!==c?c:null;this.a=null;void 0!==a.sizes?this.a=a.sizes.map(function(a){return new mg(Math.min(0,a[0]),Math.max(a[0]-1,-1), Math.min(0,a[1]),Math.max(a[1]-1,-1))},this):c&&Gh(this,c);this.f=[0,0]}var Hh=[0,0,0];function Ih(a,c,d,e,f){f=Jh(a,c,f);for(c=c[0]-1;c>=a.minZoom;){if(d.call(null,c,kg(a,f,c,e)))return!0;--c}return!1}l=Fh.prototype;l.R=function(){return this.A};l.Uf=function(){return this.maxZoom};l.Vf=function(){return this.minZoom};l.ta=function(a){return this.c?this.c:this.g[a]};l.aa=function(a){return this.b[a]};l.Kg=function(){return this.b}; function Kh(a,c,d,e){return c[0]va.f)if(qg(N,new mg(wb(J.b,Ra),wb(J.f,Ra),J.a,J.c))||pg(J)>Ra&&qg(N,va)){q=!0;break a}}q=!1}else q=!0}}else q=!1;q?(m in y&&delete y[m],u[m]=k):y[m]=k}c=[u,y];d=c[0];c=c[1];for(var M in this.l)M in d?(this.j[M]||(nh(this.l[M],!0),this.j[M]=!0),delete d[M]):M in c?(this.j[M]&&(nh(this.l[M],!1),delete this.j[M]),delete c[M]):(Tg(this.l[M]),delete this.l[M],delete this.j[M]);for(M in d)e=Pg("LI"),e.innerHTML=d[M].a,this.B.appendChild(e),this.l[M]=e,this.j[M]=!0;for(M in c)e= Pg("LI"),e.innerHTML=c[M].a,nh(e,!1),this.B.appendChild(e),this.l[M]=e;M=!Rb(this.j)||!Rb(a.logos);this.u!=M&&(nh(this.element,M),this.u=M);M&&Rb(this.j)?ah(this.element,"ol-logo-only"):bh(this.element,"ol-logo-only");var Ia;a=a.logos;M=this.X;for(Ia in M)Ia in a||(Tg(M[Ia]),delete M[Ia]);for(var pb in a)pb in M||(Ia=new Image,Ia.src=pb,d=a[pb],""===d?d=Ia:(d=Mg("A",{href:d}),d.appendChild(Ia)),this.v.appendChild(d),M[pb]=d);nh(this.v,!Rb(a))}else this.u&&(nh(this.element,!1),this.u=!1)}l=Wh.prototype; l.Nk=function(a){a.preventDefault();Yh(this)};function Yh(a){ch(a.element,"ol-collapsed");a.f?Ug(a.N,a.I):Ug(a.I,a.N);a.f=!a.f}l.Mk=function(){return this.i};l.Pk=function(a){this.i!==a&&(this.i=a,ch(this.element,"ol-uncollapsible"),!a&&this.f&&Yh(this))};l.Ok=function(a){this.i&&this.f!==a&&Yh(this)};l.Lk=function(){return this.f};function Zh(a){a=a?a:{};var c=a.className?a.className:"ol-rotate",d=a.label?a.label:"\u21e7";this.f=null;ia(d)?this.f=Mg("SPAN","ol-compass",d):(this.f=d,ah(this.f,"ol-compass"));d=Mg("BUTTON",{"class":c+"-reset",type:"button",title:a.tipLabel?a.tipLabel:"Reset rotation"},this.f);B(d,"click",Zh.prototype.v,!1,this);c=Mg("DIV",c+" ol-unselectable ol-control",d);vh.call(this,{element:c,render:a.render?a.render:$h,target:a.target});this.i=a.duration?a.duration:250;this.j=void 0!==a.autoHide?a.autoHide: !0;this.l=void 0;this.j&&ah(this.element,"ol-hidden")}w(Zh,vh);Zh.prototype.v=function(a){a.preventDefault();a=this.a;var c=a.Z();if(c){var d=c.va();void 0!==d&&(0Math.PI&&(d-=2*Math.PI),a.Aa(ag({rotation:d,duration:this.i,easing:Wf}))),c.Xd(0))}}; function $h(a){if(a=a.frameState){a=a.viewState.rotation;if(a!=this.l){var c="rotate("+a+"rad)";if(this.j){var d=this.element;0===a?ah(d,"ol-hidden"):bh(d,"ol-hidden")}this.f.style.msTransform=c;this.f.style.webkitTransform=c;this.f.style.transform=c}this.l=a}};function ai(a){a=a?a:{};var c=a.className?a.className:"ol-zoom",d=a.delta?a.delta:1,e=a.zoomOutLabel?a.zoomOutLabel:"\u2212",f=a.zoomOutTipLabel?a.zoomOutTipLabel:"Zoom out",g=Mg("BUTTON",{"class":c+"-in",type:"button",title:a.zoomInTipLabel?a.zoomInTipLabel:"Zoom in"},a.zoomInLabel?a.zoomInLabel:"+");B(g,"click",ra(ai.prototype.j,d),!1,this);e=Mg("BUTTON",{"class":c+"-out",type:"button",title:f},e);B(e,"click",ra(ai.prototype.j,-d),!1,this);c=Mg("DIV",c+" ol-unselectable ol-control",g,e);vh.call(this, {element:c,target:a.target});this.f=a.duration?a.duration:250}w(ai,vh);ai.prototype.j=function(a,c){c.preventDefault();var d=this.a,e=d.Z();if(e){var f=e.aa();f&&(02*this.c&&ui(this),!0):!1};function ui(a){if(a.c!=a.b.length){for(var c=0,d=0;c=a||96<=a&&106>=a||65<=a&&90>=a||(cc||ac)&&0==a)return!0;switch(a){case 32:case 43:case 63:case 64: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(a){if(bc)a=Bi(a);else if(dc&&cc)a:switch(a){case 93:a=91;break a}return a} function Bi(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};function Ci(a,c){dd.call(this);a&&Di(this,a,c)}w(Ci,dd);l=Ci.prototype;l.Zc=null;l.Pd=null;l.We=null;l.Qd=null;l.Oa=-1;l.Eb=-1;l.De=!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=$b||ac||cc&&lc("525"),Hi=dc&&bc; Ci.prototype.b=function(a){if(cc||ac)if(17==this.Oa&&!a.C||18==this.Oa&&!a.a||dc&&91==this.Oa&&!a.v)this.Eb=this.Oa=-1;-1==this.Oa&&(a.C&&17!=a.j?this.Oa=17:a.a&&18!=a.j?this.Oa=18:a.v&&91!=a.j&&(this.Oa=91));Gi&&!yi(a.j,this.Oa,a.f,a.C,a.a)?this.handleEvent(a):(this.Eb=Ai(a.j),Hi&&(this.De=a.a))};Ci.prototype.a=function(a){this.Eb=this.Oa=-1;this.De=a.a}; Ci.prototype.handleEvent=function(a){var c=a.b,d,e,f=c.altKey;$b&&"keypress"==a.type?(d=this.Eb,e=13!=d&&27!=d?c.keyCode:0):(cc||ac)&&"keypress"==a.type?(d=this.Eb,e=0<=c.charCode&&63232>c.charCode&&zi(d)?c.charCode:0):Zb&&!cc?(d=this.Eb,e=zi(d)?c.keyCode:0):(d=c.keyCode||this.Eb,e=c.charCode||0,Hi&&(f=this.De),dc&&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&&a.f&&(g=9):h&&h in Fi&&(g=Fi[h]);this.Oa=g;a=new Ii(g,e,0,c);a.a=f;C(this,a)}; function Di(a,c,d){a.Qd&&Ji(a);a.Zc=c;a.Pd=B(a.Zc,"keypress",a,d);a.We=B(a.Zc,"keydown",a.b,d,a);a.Qd=B(a.Zc,"keyup",a.a,d,a)}function Ji(a){a.Pd&&($c(a.Pd),$c(a.We),$c(a.Qd),a.Pd=null,a.We=null,a.Qd=null);a.Zc=null;a.Oa=-1;a.Eb=-1}Ci.prototype.Y=function(){Ci.ba.Y.call(this);Ji(this)};function Ii(a,c,d,e){Bc.call(this,e);this.type="key";this.j=a;this.A=c}w(Ii,Bc);function Ki(a,c){dd.call(this);var d=this.b=a;(d=la(d)&&1==d.nodeType?this.b:this.b?this.b.body:null)&&gh(d,"direction");this.a=B(this.b,bc?"DOMMouseScroll":"mousewheel",this,c)}w(Ki,dd); Ki.prototype.handleEvent=function(a){var c=0,d=0;a=a.b;if("mousewheel"==a.type){c=1;if($b||cc&&(ec||lc("532.0")))c=40;d=Li(-a.wheelDelta,c);c=ca(a.wheelDeltaX)?Li(-a.wheelDeltaY,c):d}else d=a.detail,100d&&(d=-3),ca(a.axis)&&a.axis===a.HORIZONTAL_AXIS||(c=d);ja(this.c)&&(c=Math.min(Math.max(c,-this.c),this.c));d=new Mi(d,a,0,c);C(this,d)};function Li(a,c){return cc&&(dc||fc)&&0!=a%c?a:a/c}Ki.prototype.Y=function(){Ki.ba.Y.call(this);$c(this.a);this.a=null}; function Mi(a,c,d,e){Bc.call(this,c);this.type="mousewheel";this.detail=a;this.u=e}w(Mi,Bc);function Ni(a,c,d){wc.call(this,a);this.b=c;a=d?d:{};this.buttons=Oi(a);this.pressure=Pi(a,this.buttons);this.bubbles="bubbles"in a?a.bubbles:!1;this.cancelable="cancelable"in a?a.cancelable:!1;this.view="view"in a?a.view:null;this.detail="detail"in a?a.detail:null;this.screenX="screenX"in a?a.screenX:0;this.screenY="screenY"in a?a.screenY:0;this.clientX="clientX"in a?a.clientX:0;this.clientY="clientY"in a?a.clientY:0;this.button="button"in a?a.button:0;this.relatedTarget="relatedTarget"in a?a.relatedTarget: null;this.pointerId="pointerId"in a?a.pointerId:0;this.width="width"in a?a.width:0;this.height="height"in a?a.height:0;this.pointerType="pointerType"in a?a.pointerType:"";this.isPrimary="isPrimary"in a?a.isPrimary:!1;c.preventDefault&&(this.preventDefault=function(){c.preventDefault()})}w(Ni,wc);function Oi(a){if(a.buttons||Qi)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a} function Pi(a,c){var d=0;a.pressure?d=a.pressure:d=c?.5:0;return d}var Qi=!1;try{Qi=1===(new MouseEvent("click",{buttons:1})).buttons}catch(a){};function Ri(a,c){var d=Pg("CANVAS");a&&(d.width=a);c&&(d.height=c);return d.getContext("2d")} var Si=function(){var a;return function(){if(void 0===a)if(ba.getComputedStyle){var c=Pg("P"),d,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(c);for(var f in e)f in c.style&&(c.style[f]="translate(1px,1px)",d=ba.getComputedStyle(c).getPropertyValue(e[f]));Tg(c);a=d&&"none"!==d}else a=!1;return a}}(),Ti=function(){var a;return function(){if(void 0===a)if(ba.getComputedStyle){var c= Pg("P"),d,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(c);for(var f in e)f in c.style&&(c.style[f]="translate3d(1px,1px,1px)",d=ba.getComputedStyle(c).getPropertyValue(e[f]));Tg(c);a=d&&"none"!==d}else a=!1;return a}}();function Ui(a,c){var d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.b=c;d.msTransform=c;d.transform=c;$b&&lc("9.0")&&(a.style.transformOrigin="0 0")} function Vi(a,c){var d;if(Ti()){var e=Array(16);for(d=0;16>d;++d)e[d]=c[d].toFixed(6);Ui(a,"matrix3d("+e.join(",")+")")}else if(Si()){var e=[c[0],c[1],c[4],c[5],c[12],c[13]],f=Array(6);for(d=0;6>d;++d)f[d]=e[d].toFixed(6);Ui(a,"matrix("+f.join(",")+")")}else a.style.left=Math.round(c[12])+"px",a.style.top=Math.round(c[13])+"px"};var Wi=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Xi(a,c){var d,e,f=Wi.length;for(e=0;e=Math.abs(e-k[0])&&25>=m)return!0}return!1}function nj(a){var c=oj(a,a.b),d=c.preventDefault;c.preventDefault=function(){a.preventDefault();d()};c.pointerId=1;c.isPrimary=!0;c.pointerType="mouse";return c}l=lj.prototype; l.ek=function(a){if(!mj(this,a)){(1).toString()in this.a&&this.cancel(a);var c=nj(a);this.a[(1).toString()]=a;pj(this.b,rj,c,a)}};l.fk=function(a){if(!mj(this,a)){var c=nj(a);pj(this.b,sj,c,a)}};l.ik=function(a){if(!mj(this,a)){var c=this.a[(1).toString()];c&&c.button===a.button&&(c=nj(a),pj(this.b,tj,c,a),delete this.a[(1).toString()])}};l.hk=function(a){if(!mj(this,a)){var c=nj(a);uj(this.b,c,a)}};l.gk=function(a){if(!mj(this,a)){var c=nj(a);vj(this.b,c,a)}}; l.cancel=function(a){var c=nj(a);this.b.cancel(c,a);delete this.a[(1).toString()]};function wj(a){kj.call(this,a,{MSPointerDown:this.nk,MSPointerMove:this.pk,MSPointerUp:this.sk,MSPointerOut:this.qk,MSPointerOver:this.rk,MSPointerCancel:this.mk,MSGotPointerCapture:this.kk,MSLostPointerCapture:this.lk});this.a=a.a;this.c=["","unavailable","touch","pen","mouse"]}w(wj,kj);function xj(a,c){var d=c;ja(c.b.pointerType)&&(d=oj(c,c.b),d.pointerType=a.c[c.b.pointerType]);return d}l=wj.prototype;l.nk=function(a){this.a[a.b.pointerId.toString()]=a;var c=xj(this,a);pj(this.b,rj,c,a)}; l.pk=function(a){var c=xj(this,a);pj(this.b,sj,c,a)};l.sk=function(a){var c=xj(this,a);pj(this.b,tj,c,a);delete this.a[a.b.pointerId.toString()]};l.qk=function(a){var c=xj(this,a);vj(this.b,c,a)};l.rk=function(a){var c=xj(this,a);uj(this.b,c,a)};l.mk=function(a){var c=xj(this,a);this.b.cancel(c,a);delete this.a[a.b.pointerId.toString()]};l.lk=function(a){C(this.b,new Ni("lostpointercapture",a,a.b))};l.kk=function(a){C(this.b,new Ni("gotpointercapture",a,a.b))};function yj(a){kj.call(this,a,{pointerdown:this.an,pointermove:this.bn,pointerup:this.en,pointerout:this.cn,pointerover:this.dn,pointercancel:this.$m,gotpointercapture:this.sj,lostpointercapture:this.dk})}w(yj,kj);l=yj.prototype;l.an=function(a){zj(this.b,a)};l.bn=function(a){zj(this.b,a)};l.en=function(a){zj(this.b,a)};l.cn=function(a){zj(this.b,a)};l.dn=function(a){zj(this.b,a)};l.$m=function(a){zj(this.b,a)};l.dk=function(a){zj(this.b,a)};l.sj=function(a){zj(this.b,a)};function Aj(a,c){kj.call(this,a,{touchstart:this.fo,touchmove:this.eo,touchend:this.co,touchcancel:this.bo});this.a=a.a;this.i=c;this.c=void 0;this.j=0;this.f=void 0}w(Aj,kj);l=Aj.prototype;l.$g=function(){this.j=0;this.f=void 0}; function Bj(a,c,d){c=oj(c,d);c.pointerId=d.identifier+2;c.bubbles=!0;c.cancelable=!0;c.detail=a.j;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=a.c===d.identifier;c.pointerType="touch";c.clientX=d.clientX;c.clientY=d.clientY;c.screenX=d.screenX;c.screenY=d.screenY;return c} function Cj(a,c,d){function e(){c.preventDefault()}var f=Array.prototype.slice.call(c.b.changedTouches),g=f.length,h,k;for(h=0;h=c.length){var f=[],g,h,k;for(g=0;g=a.minResolution&&ca.f&&(a.f=e.f),e.aa.c&&(a.c=e.c)):a[c][d]=e:(a[c]={},a[c][d]=e)}function uk(a,c,d){return[c*(Math.round(a[0]/c)+d[0]%2/2),c*(Math.round(a[1]/c)+d[1]%2/2)]} function vk(a,c,d,e,f,g,h,k,m,n){var p=v(c).toString();p in a.wantedTiles||(a.wantedTiles[p]={});var q=a.wantedTiles[p];a=a.tileQueue;var r=d.minZoom,u,y,A,F,z,x;for(x=h;x>=r;--x)for(y=kg(d,g,x,y),A=d.aa(x),F=y.b;F<=y.f;++F)for(z=y.a;z<=y.c;++z)h-x<=k?(u=c.Sb(x,F,z,e,f),0==u.state&&(q[fg(u.b)]=!0,u.jb()in a.c||wk(a,[u,p,hg(d,u.b),A])),void 0!==m&&m.call(n,u)):c.yf(x,F,z)};function xk(a){this.v=a.opacity;this.B=a.rotateWithView;this.C=a.rotation;this.A=a.scale;this.N=a.snapToPixel}l=xk.prototype;l.de=function(){return this.v};l.Gd=function(){return this.B};l.ee=function(){return this.C};l.fe=function(){return this.A};l.Id=function(){return this.N};l.ge=function(a){this.v=a};l.he=function(a){this.C=a};l.ie=function(a){this.A=a};function yk(a){a=a||{};this.g=void 0!==a.anchor?a.anchor:[.5,.5];this.f=null;this.a=void 0!==a.anchorOrigin?a.anchorOrigin:"top-left";this.i=void 0!==a.anchorXUnits?a.anchorXUnits:"fraction";this.l=void 0!==a.anchorYUnits?a.anchorYUnits:"fraction";var c=void 0!==a.crossOrigin?a.crossOrigin:null,d=void 0!==a.img?a.img:null,e=void 0!==a.imgSize?a.imgSize:null,f=a.src;void 0!==f&&0!==f.length||!d||(f=d.src);var g=void 0!==a.src?0:2,h=zk.Bb(),k=h.get(f,c);k||(k=new Ak(d,f,e,c,g),h.set(f,c,k));this.b= k;this.ca=void 0!==a.offset?a.offset:[0,0];this.c=void 0!==a.offsetOrigin?a.offsetOrigin:"top-left";this.j=null;this.u=void 0!==a.size?a.size:null;xk.call(this,{opacity:void 0!==a.opacity?a.opacity:1,rotation:void 0!==a.rotation?a.rotation:0,scale:void 0!==a.scale?a.scale:1,snapToPixel:void 0!==a.snapToPixel?a.snapToPixel:!0,rotateWithView:void 0!==a.rotateWithView?a.rotateWithView:!1})}w(yk,xk);l=yk.prototype; l.Ab=function(){if(this.f)return this.f;var a=this.g,c=this.kb();if("fraction"==this.i||"fraction"==this.l){if(!c)return null;a=this.g.slice();"fraction"==this.i&&(a[0]*=c[0]);"fraction"==this.l&&(a[1]*=c[1])}if("top-left"!=this.a){if(!c)return null;a===this.g&&(a=this.g.slice());if("top-right"==this.a||"bottom-right"==this.a)a[0]=-a[0]+c[0];if("bottom-left"==this.a||"bottom-right"==this.a)a[1]=-a[1]+c[1]}return this.f=a};l.Jb=function(){return this.b.b};l.Cd=function(){return this.b.c};l.dd=function(){return this.b.a}; l.ce=function(){var a=this.b;if(!a.g)if(a.l){var c=a.c[0],d=a.c[1],e=Ri(c,d);e.fillRect(0,0,c,d);a.g=e.canvas}else a.g=a.b;return a.g};l.ta=function(){if(this.j)return this.j;var a=this.ca;if("top-left"!=this.c){var c=this.kb(),d=this.b.c;if(!c||!d)return null;a=a.slice();if("top-right"==this.c||"bottom-right"==this.c)a[0]=d[0]-c[0]-a[0];if("bottom-left"==this.c||"bottom-right"==this.c)a[1]=d[1]-c[1]-a[1]}return this.j=a};l.om=function(){return this.b.j};l.kb=function(){return this.u?this.u:this.b.c}; l.Ye=function(a,c){return B(this.b,"change",a,!1,c)};l.load=function(){this.b.load()};l.xf=function(a,c){Zc(this.b,"change",a,!1,c)};function Ak(a,c,d,e,f){dd.call(this);this.g=null;this.b=a?a:new Image;e&&(this.b.crossOrigin=e);this.f=null;this.a=f;this.c=d;this.j=c;this.l=!1;2==this.a&&Bk(this)}w(Ak,dd);function Bk(a){var c=Ri(1,1);try{c.drawImage(a.b,0,0),c.getImageData(0,0,1,1)}catch(d){a.l=!0}}Ak.prototype.i=function(){this.a=3;this.f.forEach($c);this.f=null;C(this,"change")}; Ak.prototype.C=function(){this.a=2;this.c=[this.b.width,this.b.height];this.f.forEach($c);this.f=null;Bk(this);C(this,"change")};Ak.prototype.load=function(){if(0==this.a){this.a=1;this.f=[Yc(this.b,"error",this.i,!1,this),Yc(this.b,"load",this.C,!1,this)];try{this.b.src=this.j}catch(a){this.i()}}};function zk(){this.b={};this.a=0}ea(zk);zk.prototype.clear=function(){this.b={};this.a=0};zk.prototype.get=function(a,c){var d=c+":"+a;return d in this.b?this.b[d]:null}; zk.prototype.set=function(a,c,d){this.b[c+":"+a]=d;++this.a};function Ck(a,c){rc.call(this);this.j=c;this.f={};this.A={}}w(Ck,rc);function Dk(a){var c=a.viewState,d=a.coordinateToPixelMatrix;kk(d,a.size[0]/2,a.size[1]/2,1/c.resolution,-1/c.resolution,-c.rotation,-c.center[0],-c.center[1]);Id(d,a.pixelToCoordinateMatrix)}l=Ck.prototype;l.Y=function(){Jb(this.f,vc);Ck.ba.Y.call(this)}; function Ek(){var a=zk.Bb();if(32n[2])k=[q+p*Math.ceil((n[0]-q)/p),a[1]]}n=c.layerStatesArray;for(p=n.length-1;0<=p;--p){var r=n[p],q=r.layer;if(!r.Fb||hk(r,m)&&f.call(g,q))if(r=Fk(this,q),q.ea()&&(h=r.Ta(Dh(q.ea())?k:a,c,d,e)),h)return h}}; l.yg=function(a,c,d,e,f,g){var h,k=c.viewState.resolution,m=c.layerStatesArray,n;for(n=m.length-1;0<=n;--n){h=m[n];var p=h.layer;if(hk(h,k)&&f.call(g,p)&&(h=Fk(this,p).bc(a,c,d,e)))return h}};l.zg=function(a,c,d,e){return void 0!==this.ff(a,c,re,this,d,e)};function Fk(a,c){var d=v(c).toString();if(d in a.f)return a.f[d];var e=a.Ie(c);a.f[d]=e;a.A[d]=B(e,"change",a.Ej,!1,a);return e}l.Ej=function(){this.j.render()};l.pe=wa; l.Gn=function(a,c){for(var d in this.f)if(!(c&&d in c.layerStates)){var e=d,f=this.f[e];delete this.f[e];$c(this.A[e]);delete this.A[e];vc(f)}};function Gk(a,c){for(var d in a.f)if(!(d in c.layerStates)){c.postRenderFunctions.push(qa(a.Gn,a));break}}function nb(a,c){return a.zIndex-c.zIndex};function Hk(a,c){this.i=a;this.g=c;this.b=[];this.a=[];this.c={}}Hk.prototype.clear=function(){this.b.length=0;this.a.length=0;Sb(this.c)};function Ik(a){var c=a.b,d=a.a,e=c[0];1==c.length?(c.length=0,d.length=0):(c[0]=c.pop(),d[0]=d.pop(),Jk(a,0));c=a.g(e);delete a.c[c];return e}function wk(a,c){var d=a.i(c);Infinity!=d&&(a.b.push(c),a.a.push(d),a.c[a.g(c)]=!0,Kk(a,0,a.b.length-1))}Hk.prototype.Qb=function(){return this.b.length};Hk.prototype.ya=function(){return 0===this.b.length}; function Jk(a,c){for(var d=a.b,e=a.a,f=d.length,g=d[c],h=e[c],k=c;c>1;){var m=2*c+1,n=2*c+2,m=nc;){var h=d-1>>1;if(a[h]>g)e[d]=e[h],a[d]=a[h],d=h;else break}e[d]=f;a[d]=g}function Lk(a){var c=a.i,d=a.b,e=a.a,f=0,g=d.length,h,k,m;for(k=0;k>1)-1;0<=c;c--)Jk(a,c)};function Mk(a,c){Hk.call(this,function(c){return a.apply(null,c)},function(a){return a[0].jb()});this.l=c;this.f=0}w(Mk,Hk);Mk.prototype.j=function(a){a=a.target;var c=a.state;if(2===c||3===c||4===c)Zc(a,"change",this.j,!1,this),--this.f,this.l()};function Nk(a,c,d){for(var e=0,f;a.fd.b.length)d=!1;else{var e=Date.now()-d.j,f=d.b.length-3;if(d.b[f+2]e;)g-=3;var e=d.b[f+2]-d.b[g+2],h=d.b[f]-d.b[g],f=d.b[f+1]-d.b[g+1];d.g=Math.atan2(f,h);d.a=Math.sqrt(h*h+f*f)/e;d=d.a>d.c}}d&&(d=this.a,d=(d.c-d.a)/d.f,f=this.a.g,g=c.Fa(),this.i=Pk(this.a,g),a.Aa(this.i),g=a.Ba(g),d=a.xa([g[0]-d*Math.cos(f),g[1]-d*Math.sin(f)]),d=c.vd(d),c.Ra(d));Uf(c,-1);a.render(); return!1}this.f=null;return!0}function gl(a){if(0f;++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=a.b[0];d=a.b[1];var f=a.b[2],g=a.b[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;a.b[0]=a.b[0]+c&4294967295;a.b[1]=a.b[1]+(f+(h<<21&4294967295|h>>>11))&4294967295;a.b[2]=a.b[2]+f&4294967295;a.b[3]=a.b[3]+g&4294967295} function zl(a,c){var d;ca(d)||(d=c.length);for(var e=d-a.a,f=a.g,g=a.c,h=0;hc.c?c.a:2*c.a)-c.c);d[0]=128;for(a=1;aa;++a)for(var f=0;32>f;f+=8)d[e++]=c.b[a]>>> f&255;if(8192>=d.length)c=String.fromCharCode.apply(null,d);else for(c="",a=0;athis.B&&(this.a=!0));this.i=d;a=a.map;d=kh(a.a);e=el(this.j);e[0]-=d.x;e[1]-=d.y;this.f=a.xa(e);this.a&&(d=a.Z(),e=d.va(),a.render(),Rk(a,d,e+c,this.f))}function Wl(a){if(2>this.j.length){a=a.map;var c=a.Z();Uf(c,-1);if(this.a){var d=c.va(),e=this.f,f=this.v,d=c.constrainRotation(d,0);Rk(a,c,d,e,f)}return!1}return!0} function Ul(a){return 2<=this.j.length?(a=a.map,this.f=null,this.i=void 0,this.a=!1,this.l=0,this.u||Uf(a.Z(),1),a.render(),!0):!1}Tl.prototype.ic=qe;function Xl(a){cl.call(this,{handleDownEvent:Yl,handleDragEvent:Zl,handleUpEvent:$l});a=a?a:{};this.f=null;this.l=void 0!==a.duration?a.duration:400;this.a=void 0;this.i=1}w(Xl,cl);function Zl(a){var c=1,d=this.j[0],e=this.j[1],f=d.clientX-e.clientX,d=d.clientY-e.clientY,f=Math.sqrt(f*f+d*d);void 0!==this.a&&(c=this.a/f);this.a=f;1!=c&&(this.i=c);a=a.map;var f=a.Z(),d=f.aa(),e=kh(a.a),g=el(this.j);g[0]-=e.x;g[1]-=e.y;this.f=a.xa(g);a.render();Tk(a,f,d*c,this.f)} function $l(a){if(2>this.j.length){a=a.map;var c=a.Z();Uf(c,-1);var d=c.aa(),e=this.f,f=this.l,d=c.constrainResolution(d,0,this.i-1);Tk(a,c,d,e,f);return!1}return!0}function Yl(a){return 2<=this.j.length?(a=a.map,this.f=null,this.a=void 0,this.i=1,this.u||Uf(a.Z(),1),a.render(),!0):!1}Xl.prototype.ic=qe;function am(a){a=a?a:{};var c=new tg,d=new Ok(-.005,.05,100);(void 0!==a.altShiftDragRotate?a.altShiftDragRotate:1)&&c.push(new jl);(void 0!==a.doubleClickZoom?a.doubleClickZoom:1)&&c.push(new Uk({delta:a.zoomDelta,duration:a.zoomDuration}));(void 0!==a.dragPan?a.dragPan:1)&&c.push(new fl({kinetic:d}));(void 0!==a.pinchRotate?a.pinchRotate:1)&&c.push(new Tl);(void 0!==a.pinchZoom?a.pinchZoom:1)&&c.push(new Xl({duration:a.zoomDuration}));if(void 0!==a.keyboard?a.keyboard:1)c.push(new Nl),c.push(new Pl({delta:a.zoomDelta, duration:a.zoomDuration}));(void 0!==a.mouseWheelZoom?a.mouseWheelZoom:1)&&c.push(new Rl({duration:a.zoomDuration}));(void 0!==a.shiftDragZoom?a.shiftDragZoom:1)&&c.push(new Ml);return c};function bm(a){var c=a||{};a=Vb(c);delete a.layers;c=c.layers;ck.call(this,a);this.c=[];this.a={};B(this,ld("layers"),this.Gj,!1,this);c?ga(c)&&(c=new tg(c.slice())):c=new tg;this.jh(c)}w(bm,ck);l=bm.prototype;l.Ld=function(){this.ib()&&this.s()}; l.Gj=function(){this.c.forEach($c);this.c.length=0;var a=this.xc();this.c.push(B(a,"add",this.Fj,!1,this),B(a,"remove",this.Hj,!1,this));Jb(this.a,function(a){a.forEach($c)});Sb(this.a);var a=a.a,c,d,e;c=0;for(d=a.length;cthis.g&&(this.g=this.c.lineWidth,this.f=null)}; function Om(a,c,d){Em.call(this,a,c,d);this.c={Nf:void 0,Sc:void 0,Nc:void 0,Oc:null,Pc:void 0,Qc:void 0,Rc:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}w(Om,Em); function Pm(a,c,d,e,f){var g=a.c,h=[1];a.a.push(h);a.b.push(h);var k,h=0;for(k=e.length;hthis.g&&(this.g=d.lineWidth,this.f=null)):(d.strokeStyle=void 0,d.lineCap=void 0,d.lineDash=null,d.lineJoin=void 0,d.lineWidth=void 0,d.miterLimit=void 0)}; function Qm(a){var c=a.c,d=c.fillStyle,e=c.strokeStyle,f=c.lineCap,g=c.lineDash,h=c.lineJoin,k=c.lineWidth,m=c.miterLimit;void 0!==d&&c.Nf!=d&&(a.a.push([9,d]),c.Nf=c.fillStyle);void 0===e||c.Sc==e&&c.Nc==f&&c.Oc==g&&c.Pc==h&&c.Qc==k&&c.Rc==m||(a.a.push([10,e,k,f,h,m,g]),c.Sc=e,c.Nc=f,c.Oc=g,c.Pc=h,c.Qc=k,c.Rc=m)}function Rm(a,c,d){Em.call(this,a,c,d);this.ca=this.N=this.B=null;this.l="";this.u=this.v=this.A=this.C=0;this.i=this.j=this.c=null}w(Rm,Em); Rm.prototype.qb=function(a,c,d,e,f,g){if(""!==this.l&&this.i&&(this.c||this.j)){if(this.c){f=this.c;var h=this.B;if(!h||h.fillStyle!=f.fillStyle){var k=[9,f.fillStyle];this.a.push(k);this.b.push(k);h?h.fillStyle=f.fillStyle:this.B={fillStyle:f.fillStyle}}}this.j&&(f=this.j,h=this.N,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.a.push(k),this.b.push(k),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):this.N={lineCap:f.lineCap,lineDash:f.lineDash,lineJoin:f.lineJoin,lineWidth:f.lineWidth,miterLimit:f.miterLimit,strokeStyle:f.strokeStyle}));f=this.i;h=this.ca;h&&h.font==f.font&&h.textAlign==f.textAlign&&h.textBaseline==f.textBaseline||(k=[11,f.font,f.textAlign,f.textBaseline],this.a.push(k),this.b.push(k),h? (h.font=f.font,h.textAlign=f.textAlign,h.textBaseline=f.textBaseline):this.ca={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});Gm(this,g);f=this.coordinates.length;a=Fm(this,a,c,d,e,!1);a=[5,f,a,this.l,this.C,this.A,this.v,this.u,!!this.c,!!this.j];this.a.push(a);this.b.push(a);Jm(this,g)}}; Rm.prototype.Ja=function(a){if(a){var c=a.b;c?(c=c.b,c=Ag(c?c:Bl),this.c?this.c.fillStyle=c:this.c={fillStyle:c}):this.c=null;var d=a.j;if(d){var c=d.b,e=d.f,f=d.c,g=d.g,h=d.a,d=d.j,e=void 0!==e?e:"round",f=f?f.slice():Cl,g=void 0!==g?g:"round",h=void 0!==h?h:1,d=void 0!==d?d:10,c=Ag(c?c:Dl);if(this.j){var k=this.j;k.lineCap=e;k.lineDash=f;k.lineJoin=g;k.lineWidth=h;k.miterLimit=d;k.strokeStyle=c}else this.j={lineCap:e,lineDash:f,lineJoin:g,lineWidth:h,miterLimit:d,strokeStyle:c}}else this.j=null; var m=a.f,c=a.C,e=a.A,f=a.g,h=a.a,d=a.c,g=a.i,k=a.l;a=void 0!==m?m:"10px sans-serif";g=void 0!==g?g:"center";k=void 0!==k?k:"middle";this.i?(m=this.i,m.font=a,m.textAlign=g,m.textBaseline=k):this.i={font:a,textAlign:g,textBaseline:k};this.l=void 0!==d?d:"";this.C=void 0!==c?c:0;this.A=void 0!==e?e:0;this.v=void 0!==f?f:0;this.u=void 0!==h?h:1}else this.l=""};function Sm(a,c,d,e){this.l=a;this.c=c;this.i=d;this.f=e;this.a={};this.g=Ri(1,1);this.j=Cd()} function Tm(a){for(var c in a.a){var d=a.a[c],e;for(e in d)d[e].Zd()}}function Um(a,c,d,e,f,g){var h=a.j;kk(h,.5,.5,1/d,-1/d,-e,-c[0],-c[1]);var k=a.g;k.clearRect(0,0,1,1);var m;void 0!==a.f&&(m=Nd(),Od(m,c),Rd(m,d*a.f,m));return Vm(a,k,h,e,f,function(a){if(0=c[0]||a[1]<=c[1]&&a[3]>=c[1]?!0:be(a,this.He,this)):!1}; l.Wk=function(a){var c=this.G,d=a.slice();d[c]=d[0]+(this.o[c]-this.o[0]);var e;for(e=1;ea||0!==this.j&&a>1,p=h(d,g[n]),0r?(d=(d-g[-r-2])/(g[-r-1]-g[-r-2]),c+=(-r-2)*e,g=xb(a[c],a[c+e],d),h=xb(a[c+1],a[c+e+1],d)):(g=a[c+r*e],h=a[c+r*e+1])}return f?(f[0]= g,f[1]=h,f):[g,h]}function en(a,c,d,e,f,g){if(d==c)return null;if(f>1,fa||this.c.length<=a)return null;var c=new L(null);gn(c,this.a,this.o.slice(0===a?0:this.c[a-1],this.c[a]));return c};l.Xc=function(){var a=this.o,c=this.c,d=this.a,e=[],f=0,g,h;g=0;for(h=c.length;ga||c<=a)return null;c=new D(null);vf(c,this.a,this.o.slice(a*this.G,(a+1)*this.G));return c};l.Yd=function(){var a=this.o,c=this.a,d=this.G,e=[],f,g;f=0;for(g=a.length;fa||this.c.length<=a)return null;var c;0===a?c=0:(c=this.c[a-1],c=c[c.length-1]);a=this.c[a].slice();var d=a[a.length-1];if(0!==c){var e,f;e=0;for(f=a.length;ed?a[1]="?":d==c.length-1&&(a[1]=void 0)}return a.join("")}function to(a,c,d){if(ga(c))for(var e=0;e=a[0]&&c[3]>=a[1]}function q(a,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,r(a,c,d,h,f),g.push(c,h,h,d))}function r(a,c,d,e,f){for(var g,h,k,m,n;d>c;){600h-g/2?-1:1),k=Math.max(c,Math.floor(e-h*m/g+n)),h=Math.min(d,Math.floor(e+(g-h)*m/g+n)),r(a,k,h,e,f));g=a[e];h=c;m=d;u(a,c,e);for(0f(a[h],g);)h++;for(;0this.Ce)this.fi(e,c),c--;else break;this.Xh(d,e,c)},fi:function(a,c){var e=a[c],f=e.children.length,g=this.Hf;this.Yh(e,g,f);f={children:e.children.splice(this.Zh(e,g,f)),height:e.height};e.Da&&(f.Da=!0);d(e,this.La);d(f,this.La);c?a[c-1].children.push(f):this.Jf(e,f)},Jf:function(a, c){this.data={children:[a,c],height:a.height+1};d(this.data,this.La)},Zh:function(a,c,d){var f,g,h,m,n,p,q;n=p=Infinity;for(f=c;f<=d-c;f++)g=e(a,0,f,this.La),h=e(a,f,d,this.La),m=Math.max(0,Math.min(g[2],h[2])-Math.max(g[0],h[0]))*Math.max(0,Math.min(g[3],h[3])-Math.max(g[1],h[1])),g=k(g)+k(h),m=c;p--)q=a.children[p],f(k,a.Da?g(q):q.bbox),n+=m(k);return n},Xh:function(a,c,d){for(;0<=d;d--)f(c[d].bbox,a)},ai:function(a){for(var c=a.length-1,e;0<=c;c--)0===a[c].children.length?0F||this.c[1]> z)?(x.width=F,x.height=z,this.c=[F,z],this.C=!Cm(this.c),this.f=null):(F=this.c[0],z=this.c[1],(x=n!=this.u)||(x=this.f,x=!(x.b<=A.b&&A.f<=x.f&&x.a<=A.a&&A.c<=x.c)),x&&(this.f=null))):(K=Ri(F,z),this.j=K.canvas,this.c=[F,z],this.i=K,this.C=!Cm(this.c));var J,I;this.f?(z=this.f,F=pg(z)):(F/=p[0],z/=p[1],J=A.b-Math.floor((F-pg(A))/2),I=A.a-Math.floor((z-og(A))/2),this.u=n,this.N=p[0],this.B=p[1],this.f=new mg(J,J+F-1,I,I+z-1),this.l=Array(F*z),z=this.f);x={};x[n]={};var N=[],va=this.wd(h,x),Ra=g.c(), M=Nd(),Ia=new mg(0,0,0,0),pb,Ma,Eb;for(I=A.b;I<=A.f;++I)for(Eb=A.a;Eb<=A.c;++Eb)Ma=h.Sb(n,I,Eb,d,f),J=Ma.state,2==J||4==J||3==J&&!Ra?x[n][fg(Ma.b)]=Ma:(pb=Ih(k,Ma.b,va,Ia,M),pb||(N.push(Ma),(pb=Kh(k,Ma.b,Ia,M))&&va(n+1,pb)));va=0;for(pb=N.length;vam[2];)++n,p=k*n,p=Am(this,a,p),Xm(q,r,f,p,h,g),c-=k;p=Am(this,a,0)}r!=d&&(zm(this,"render",r,a,p),d.drawImage(r.canvas,0,0));r.globalAlpha=u}zm(this,"postcompose",d,a,p)};Vp.prototype.Ta=function(a,c,d,e){if(this.c){var f=c.viewState.resolution,g=c.viewState.rotation,h=this.a,k=c.layerStates[v(h)],m={};return Um(this.c,a,f,g,k.Fb?c.skippedFeatureUids:{},function(a){var c=v(a).toString();if(!(c in m))return m[c]=!0,d.call(e,a,h)})}};Vp.prototype.A=function(){ok(this)}; Vp.prototype.ae=function(a){function c(a){var c,e=a.c;e?c=e.call(a,n):(e=d.c)&&(c=e(a,n));if(c){if(c){var f,g=!1,e=0;for(f=c.length;eN&&Sg(this.target,A.target,0)}else{if(!a.viewHints[0]&&!a.viewHints[1]){K=kg(A.f,r,A.c[0],z);N=[];x=I=void 0;for(x in A.a)I=A.a[x],K.contains(I.b)||N.push(I); Ra=K=void 0;K=0;for(Ra=N.length;K=n;){y=a.c[g];d=a.A[g]; e=v(d).toString();if(void 0===k[e]&&d.V()&&(void 0===p||ke(p,d.V().R()))&&(q.clear(q.COLOR_BUFFER_BIT|q.DEPTH_BUFFER_BIT),q.drawElements(4,u-y,f,y*c),u=m(d))){a=u;break a}u=y;g--}a=void 0}else q.clear(q.COLOR_BUFFER_BIT|q.DEPTH_BUFFER_BIT),Bq(a,q,c,k,a.i,a.j),a=(a=m(null))?a:void 0;y=a}q.disableVertexAttribArray(r.f);q.disableVertexAttribArray(r.b);q.disableVertexAttribArray(r.g);q.disableVertexAttribArray(r.a);q.disableVertexAttribArray(r.c);return y} function Bq(a,c,d,e,f,g){var h=d.c?5125:5123;d=d.c?4:2;if(Rb(e)){var k;a=0;e=f.length;for(k=0;ac[0]||c[0]>f[0]||0> c[1]||c[1]>f[1])&&(this.i||(this.i=Ri(1,1)),this.i.clearRect(0,0,1,1),this.i.drawImage(this.f.b(),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=a.Z().Fa(),e=a.Ba(d),c=[e[0]+c[0],e[1]+c[1]],this.g&&(this.g.source=d,a.Aa($f(this.g))),a.Z().Ra(a.xa(c)))}}};l.Qj=function(){gr(this)};l.fh=function(a){this.set("element",a)};l.setMap=function(a){this.set("map",a)};l.kh=function(a){this.set("offset",a)};l.cf=function(a){this.set("position",a)}; function hr(a,c){var d=Hg(a),e=new Dg(0,0),f;f=d?Hg(d):document;f=!$b||9<=nc||Xg(Fg(f))?f.documentElement:f.body;a!=f&&(f=jh(a),d=Yg(Fg(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]]}l.lh=function(a){this.set("positioning",a)};function ir(a,c){a.a.visible!==c&&(nh(a.c,c),a.a.visible=c)} function gr(a){var c=a.Wd(),d=a.og();if(void 0!==c&&c.c&&void 0!==d){var d=c.Ba(d),e=c.Ea(),c=a.c.style,f=a.Wf(),g=a.Xf(),h=f[0],f=f[1];if("bottom-right"==g||"center-right"==g||"top-right"==g)""!==a.a.Sd&&(a.a.Sd=c.left=""),h=Math.round(e[0]-d[0]-h)+"px",a.a.qe!=h&&(a.a.qe=c.right=h);else{""!==a.a.qe&&(a.a.qe=c.right="");if("bottom-center"==g||"center-center"==g||"top-center"==g)h-=lh(a.c).width/2;h=Math.round(d[0]+h)+"px";a.a.Sd!=h&&(a.a.Sd=c.left=h)}if("bottom-left"==g||"bottom-center"==g||"bottom-right"== g)""!==a.a.re&&(a.a.re=c.top=""),d=Math.round(e[1]-d[1]-f)+"px",a.a.sd!=d&&(a.a.sd=c.bottom=d);else{""!==a.a.sd&&(a.a.sd=c.bottom="");if("center-left"==g||"center-center"==g||"center-right"==g)f-=lh(a.c).height/2;d=Math.round(d[1]+f)+"px";a.a.re!=d&&(a.a.re=c.top=d)}ir(a,!0)}else ir(a,!1)};function jr(a){a=a?a:{};this.j=void 0!==a.collapsed?a.collapsed:!0;this.i=void 0!==a.collapsible?a.collapsible:!0;this.i||(this.j=!1);var c=a.className?a.className:"ol-overviewmap",d=a.tipLabel?a.tipLabel:"Overview map",e=a.collapseLabel?a.collapseLabel:"\u00ab";this.v=ia(e)?Mg("SPAN",{},e):e;e=a.label?a.label:"\u00bb";this.u=ia(e)?Mg("SPAN",{},e):e;d=Mg("BUTTON",{type:"button",title:d},this.i&&!this.j?this.v:this.u);B(d,"click",this.Tk,!1,this);var e=Mg("DIV","ol-overviewmap-map"),f=this.f=new W({controls:new tg, interactions:new tg,target:e,view:a.view});a.layers&&a.layers.forEach(function(a){f.Kf(a)},this);var g=Mg("DIV","ol-overviewmap-box");this.l=new fr({position:[0,0],positioning:"bottom-left",element:g});this.f.Lf(this.l);c=Mg("DIV",c+" ol-unselectable ol-control"+(this.j&&this.i?" ol-collapsed":"")+(this.i?"":" ol-uncollapsible"),e,d);vh.call(this,{element:c,render:a.render?a.render:kr,target:a.target})}w(jr,vh);l=jr.prototype; l.setMap=function(a){var c=this.a;a!==c&&(c&&(c=c.Z())&&Zc(c,ld("rotation"),this.Md,!1,this),jr.ba.setMap.call(this,a),a&&(this.A.push(B(a,"propertychange",this.Jj,!1,this)),0===this.f.ng().Gb()&&this.f.ih(a.Rb()),a=a.Z()))&&(B(a,ld("rotation"),this.Md,!1,this),Tf(a)&&(this.f.Fc(),lr(this)))};l.Jj=function(a){"view"===a.key&&((a=a.oldValue)&&Zc(a,ld("rotation"),this.Md,!1,this),a=this.a.Z(),B(a,ld("rotation"),this.Md,!1,this))};l.Md=function(){this.f.Z().Xd(this.a.Z().va())}; function kr(){var a=this.a,c=this.f;if(a.c&&c.c){var d=a.Ea(),a=a.Z().Kc(d),e=c.Ea(),d=c.Z().Kc(e),f=c.Ba(fe(a)),c=c.Ba(de(a)),c=new Eg(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?lr(this):Wd(d,a)||(a=this.f,d=this.a.Z(),a.Z().Ra(d.Fa()))}mr(this)}function lr(a){var c=a.a;a=a.f;var d=c.Ea(),c=c.Z().Kc(d),d=a.Ea();a=a.Z();ne(c,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2)));a.Ke(c,d)} function mr(a){var c=a.a,d=a.f;if(c.c&&d.c){var e=c.Ea(),f=c.Z(),g=d.Z();d.Ea();var c=f.va(),h=a.l,d=a.l.Vd(),f=f.Kc(e),e=g.aa(),g=ce(f),f=ee(f),k;if(a=a.a.Z().Fa())k=[g[0]-a[0],g[1]-a[1]],vd(k,c),qd(k,a);h.cf(k);d&&(k=new Eg(Math.abs((g[0]-f[0])/e),Math.abs((f[1]-g[1])/e)),c=Xg(Fg(Hg(d))),!$b||lc("10")||c&&lc("8")?(d=d.style,bc?d.MozBoxSizing="border-box":cc?d.WebkitBoxSizing="border-box":d.boxSizing="border-box",d.width=Math.max(k.width,0)+"px",d.height=Math.max(k.height,0)+"px"):(a=d.style,c?(c= qh(d,"padding"),d=th(d),a.pixelWidth=k.width-d.left-c.left-c.right-d.right,a.pixelHeight=k.height-d.top-c.top-c.bottom-d.bottom):(a.pixelWidth=k.width,a.pixelHeight=k.height)))}}l.Tk=function(a){a.preventDefault();nr(this)};function nr(a){ch(a.element,"ol-collapsed");a.j?Ug(a.v,a.u):Ug(a.u,a.v);a.j=!a.j;var c=a.f;a.j||c.c||(c.Fc(),lr(a),Yc(c,"postrender",function(){mr(this)},!1,a))}l.Sk=function(){return this.i}; l.Vk=function(a){this.i!==a&&(this.i=a,ch(this.element,"ol-uncollapsible"),!a&&this.j&&nr(this))};l.Uk=function(a){this.i&&this.j!==a&&nr(this)};l.Rk=function(){return this.j};function or(a){a=a?a:{};var c=a.className?a.className:"ol-scale-line";this.l=Mg("DIV",c+"-inner");this.i=Mg("DIV",c+" ol-unselectable",this.l);this.u=null;this.v=void 0!==a.minWidth?a.minWidth:64;this.f=!1;this.I=void 0;this.B="";this.j=null;vh.call(this,{element:this.i,render:a.render?a.render:pr,target:a.target});B(this,ld("units"),this.$,!1,this);this.X(a.units||"metric")}w(or,vh);var qr=[1,2,5];or.prototype.N=function(){return this.get("units")}; function pr(a){(a=a.frameState)?this.u=a.viewState:this.u=null;rr(this)}or.prototype.$=function(){rr(this)};or.prototype.X=function(a){this.set("units",a)}; function rr(a){var c=a.u;if(c){var d=c.center,e=c.projection,c=e.getPointResolution(c.resolution,d),f=e.a,g=a.N();"degrees"!=f||"metric"!=g&&"imperial"!=g&&"us"!=g&&"nautical"!=g?"degrees"!=f&&"degrees"==g?(a.j||(a.j=Ge(e,Ce("EPSG:4326"))),d=Math.cos(yb(a.j(d)[1])),e=ye.radius,e/=ze[f],c*=180/(Math.PI*d*e)):a.j=null:(a.j=null,d=Math.cos(yb(d[1])),c*=Math.PI*d*ye.radius/180);d=a.v*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(a.v*c)/Math.log(10));;){e=qr[d%3]*Math.pow(10,Math.floor(d/3));g=Math.round(e/c);if(isNaN(g)){nh(a.i,!1);a.f=!1;return}if(g>=a.v)break;++d}c=e+" "+f;a.B!=c&&(a.l.innerHTML=c,a.B=c);a.I!=g&&(a.l.style.width=g+"px",a.I=g);a.f||(nh(a.i,!0),a.f= !0)}else a.f&&(nh(a.i,!1),a.f=!1)};function sr(a){rc.call(this);this.a=a;this.b={}}w(sr,rc);var tr=[];sr.prototype.Pa=function(a,c,d,e){ga(c)||(c&&(tr[0]=c.toString()),c=tr);for(var f=0;fd.height?(this.i=1,d=new eh(0,0,e,0)):(this.i=Dr,d=new eh(0,0,0,c));this.f.b=d||new eh(NaN,NaN,NaN,NaN);this.u=!0}a=a.frameState.viewState.resolution;a!==this.j&&(this.j=a,a=1-Rf(this.a.Z())(a),d=this.f,c=Vg(this.element),1==this.i?hh(c,d.b.left+d.b.width*a):hh(c,d.b.left, d.b.top+d.b.height*a))}}l.tj=function(a){var c=this.a,d=c.Z(),e=d.aa();c.Aa(bg({resolution:e,duration:this.v,easing:Wf}));a=Fr(this,Gr(this,a.offsetX-this.l[0]/2,a.offsetY-this.l[1]/2));d.wb(d.constrainResolution(a))};l.wj=function(){Uf(this.a.Z(),1)};l.uj=function(a){this.j=Fr(this,Gr(this,a.left,a.top));this.a.Z().wb(this.j)};l.vj=function(){var a=this.a,c=a.Z();Uf(c,-1);a.Aa(bg({resolution:this.j,duration:this.v,easing:Wf}));a=c.constrainResolution(this.j);c.wb(a)}; function Gr(a,c,d){var e=a.f.b;return Qa(1===a.i?(c-e.left)/e.width:(d-e.top)/e.height,0,1)}function Fr(a,c){return Qf(a.a.Z())(1-c)};function Hr(a){a=a?a:{};this.f=a.extent?a.extent:null;var c=a.className?a.className:"ol-zoom-extent",d=Mg("BUTTON",{type:"button",title:a.tipLabel?a.tipLabel:"Fit to extent"},a.label?a.label:"E");B(d,"click",this.j,!1,this);c=Mg("DIV",c+" ol-unselectable ol-control",d);vh.call(this,{element:c,target:a.target})}w(Hr,vh);Hr.prototype.j=function(a){a.preventDefault();var c=this.a;a=c.Z();var d=this.f?this.f:a.g.R(),c=c.Ea();a.Ke(d,c)};function Ir(a){jd.call(this);a=a?a:{};this.a=null;B(this,ld("tracking"),this.vk,!1,this);this.$e(void 0!==a.tracking?a.tracking:!1)}w(Ir,jd);l=Ir.prototype;l.Y=function(){this.$e(!1);Ir.ba.Y.call(this)}; l.Um=function(a){a=a.b;if(null!==a.alpha){var c=yb(a.alpha);this.set("alpha",c);"boolean"==typeof a.absolute&&a.absolute?this.set("heading",c):ja(a.webkitCompassHeading)&&-1!=a.webkitCompassAccuracy&&this.set("heading",yb(a.webkitCompassHeading))}null!==a.beta&&this.set("beta",yb(a.beta));null!==a.gamma&&this.set("gamma",yb(a.gamma));this.s()};l.Ci=function(){return this.get("alpha")};l.Fi=function(){return this.get("beta")};l.Ni=function(){return this.get("gamma")};l.uk=function(){return this.get("heading")}; l.jg=function(){return this.get("tracking")};l.vk=function(){if(bj){var a=this.jg();a&&!this.a?this.a=B(ba,"deviceorientation",this.Um,!1,this):!a&&this.a&&($c(this.a),this.a=null)}};l.$e=function(a){this.set("tracking",a)};function Jr(){this.defaultDataProjection=null}function Kr(a,c,d){var e;d&&(e={dataProjection:d.dataProjection?d.dataProjection:a.Ha(c),featureProjection:d.featureProjection});return Lr(a,e)}function Lr(a,c){var d;c&&(d={featureProjection:c.featureProjection,dataProjection:c.dataProjection?c.dataProjection:a.defaultDataProjection,rightHanded:c.rightHanded});return d} function Mr(a,c,d){var e=d?Ce(d.featureProjection):null;d=d?Ce(d.dataProjection):null;return e&&d&&!Ue(e,d)?a instanceof Ze?(c?a.clone():a).Sa(c?e:d,c?d:e):Ye(c?a.slice():a,c?e:d,c?d:e):a};function Nr(){this.defaultDataProjection=null}w(Nr,Jr);function Or(a){return la(a)?a:ia(a)?(a=io(a))?a:null:null}l=Nr.prototype;l.W=function(){return"json"};l.vb=function(a,c){return this.Ac(Or(a),Kr(this,a,c))};l.sa=function(a,c){return this.of(Or(a),Kr(this,a,c))};l.Bc=function(a,c){return this.Rg(Or(a),Kr(this,a,c))};l.Ha=function(a){return this.Xg(Or(a))};l.kd=function(a,c){return jo(this.Gc(a,c))};l.xb=function(a,c){return jo(this.ue(a,c))};l.Hc=function(a,c){return jo(this.we(a,c))};function Pr(a){a=a?a:{};this.defaultDataProjection=null;this.b=a.geometryName}w(Pr,Nr); function Qr(a,c){if(!a)return null;var d;if(ja(a.x)&&ja(a.y))d="Point";else if(a.points)d="MultiPoint";else if(a.paths)d=1===a.paths.length?"LineString":"MultiLineString";else if(a.rings){var e=a.rings,f=Rr(a),g=[];d=[];var h,k;h=0;for(k=e.length;hc)throw Error("Bad port number "+c);a.l=c}else a.l=null}function qt(a,c,d){c instanceof st?(a.c=c,yt(a.c,a.j)):(d||(c=tt(c,zt)),a.c=new st(c,0,a.j))}function At(a){return a instanceof nt?a.clone():new nt(a,void 0)} function Bt(a,c){a instanceof nt||(a=At(a));c instanceof nt||(c=At(c));var d=a,e=c,f=d.clone(),g=!!e.f;g?ot(f,e.f):g=!!e.i;g?f.i=e.i:g=!!e.a;g?f.a=e.a:g=null!=e.l;var h=e.b;if(g)pt(f,e.l);else if(g=!!e.b)if("/"!=h.charAt(0)&&(d.a&&!d.b?h="/"+h:(d=f.b.lastIndexOf("/"),-1!=d&&(h=f.b.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=[],m=0;m>4&15).toString(16)+(a&15).toString(16)} var ut=/[#\/\?@]/g,wt=/[\#\?:]/g,vt=/[\#\?]/g,zt=/[\#\?@]/g,xt=/#/g;function st(a,c,d){this.a=this.b=null;this.c=a||null;this.f=!!d}function Dt(a){a.b||(a.b=new ti,a.a=0,a.c&&ro(a.c,function(c,d){a.add(decodeURIComponent(c.replace(/\+/g," ")),d)}))}l=st.prototype;l.Qb=function(){Dt(this);return this.a};l.add=function(a,c){Dt(this);this.c=null;a=Et(this,a);var d=this.b.get(a);d||this.b.set(a,d=[]);d.push(c);this.a++;return this}; l.remove=function(a){Dt(this);a=Et(this,a);return vi(this.b.a,a)?(this.c=null,this.a-=this.b.get(a).length,this.b.remove(a)):!1};l.clear=function(){this.b=this.c=null;this.a=0};l.ya=function(){Dt(this);return 0==this.a};function Ft(a,c){Dt(a);c=Et(a,c);return vi(a.b.a,c)}l.O=function(){Dt(this);for(var a=this.b.Ub(),c=this.b.O(),d=[],e=0;ee;++e){var f=parseInt(d[e],10).toString(16);d[e]=1==f.length?"0"+f:f}ms(a,d.join(""))} function Lu(a,c,d){yp({node:a},Mu,Nu,[c],d)}function Ou(a,c,d){var e={node:a};c.ha&&a.setAttribute("id",c.ha);a=c.P();var f=c.c;f&&(f=f.call(c,0))&&0f?~(f<<1):f<<1;d="";e=0;for(f=a.length;e>=5;h=g+63;k+=String.fromCharCode(h);d+=k}return d} function Yv(a,c){var d=c?c:1E5,e=[],f=0,g=0,h,k;h=0;for(k=a.length;hm?(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=a||"."==a&&!(void 0!==c&&c)} function zw(a){var c=a.a.charAt(++a.b),d={position:a.b,value:c};if("("==c)d.type=2;else if(","==c)d.type=5;else if(")"==c)d.type=3;else if(Bw(c)||"-"==c){d.type=4;var e,c=a.b,f=!1,g=!1;do{if("."==e)f=!0;else if("e"==e||"E"==e)g=!0;e=a.a.charAt(++a.b)}while(Bw(e,f)||!g&&("e"==e||"E"==e)||g&&("-"==e||"+"==e));a=parseFloat(a.a.substring(c,a.b--));d.value=a}else if("a"<=c&&"z">=c||"A"<=c&&"Z">=c){d.type=1;c=a.b;do e=a.a.charAt(++a.b);while("a"<=e&&"z">=e||"A"<=e&&"Z">=e);a=a.a.substring(c,a.b--).toUpperCase(); d.value=a}else{if(" "==c||"\t"==c||"\r"==c||"\n"==c)return zw(a);if(""===c)d.type=6;else throw Error("Unexpected character: "+c);}return d}function xw(a){this.a=a}l=xw.prototype;l.match=function(a){if(a=this.b.type==a)this.b=zw(this.a);return a}; function Aw(a){var c=a.b;if(a.match(1)){var d=c.value;if("GEOMETRYCOLLECTION"==d){a:{if(a.match(2)){c=[];do c.push(Aw(a));while(a.match(5));if(a.match(3)){a=c;break a}}else if(Cw(a)){a=[];break a}throw Error(Dw(a));}return new $m(a)}var e=Ew[d],c=Fw[d];if(!e||!c)throw Error("Invalid geometry type: "+d);a=e.call(a);return new c(a)}throw Error(Dw(a));}l.kf=function(){if(this.match(2)){var a=Gw(this);if(this.match(3))return a}else if(Cw(this))return null;throw Error(Dw(this));}; l.jf=function(){if(this.match(2)){var a=Hw(this);if(this.match(3))return a}else if(Cw(this))return[];throw Error(Dw(this));};l.lf=function(){if(this.match(2)){var a=Iw(this);if(this.match(3))return a}else if(Cw(this))return[];throw Error(Dw(this));};l.Ym=function(){if(this.match(2)){var a;if(2==this.b.type)for(a=[this.kf()];this.match(5);)a.push(this.kf());else a=Hw(this);if(this.match(3))return a}else if(Cw(this))return[];throw Error(Dw(this));}; l.Xm=function(){if(this.match(2)){var a=Iw(this);if(this.match(3))return a}else if(Cw(this))return[];throw Error(Dw(this));};l.Zm=function(){if(this.match(2)){for(var a=[this.lf()];this.match(5);)a.push(this.lf());if(this.match(3))return a}else if(Cw(this))return[];throw Error(Dw(this));};function Gw(a){for(var c=[],d=0;2>d;++d){var e=a.b;if(a.match(4))c.push(e.value);else break}if(2==c.length)return c;throw Error(Dw(a));}function Hw(a){for(var c=[Gw(a)];a.match(5);)c.push(Gw(a));return c} function Iw(a){for(var c=[a.jf()];a.match(5);)c.push(a.jf());return c}function Cw(a){var c=1==a.b.type&&"EMPTY"==a.b.value;c&&(a.b=zw(a.a));return c}function Dw(a){return"Unexpected `"+a.b.value+"` at position "+a.b.position+" in `"+a.a.a+"`"}var Fw={POINT:D,LINESTRING:L,POLYGON:E,MULTIPOINT:kn,MULTILINESTRING:O,MULTIPOLYGON:P},Ew={POINT:xw.prototype.kf,LINESTRING:xw.prototype.jf,POLYGON:xw.prototype.lf,MULTIPOINT:xw.prototype.Ym,MULTILINESTRING:xw.prototype.Xm,MULTIPOLYGON:xw.prototype.Zm};function Jw(){this.version=void 0}w(Jw,Cv);Jw.prototype.a=function(a){for(a=a.firstChild;a;a=a.nextSibling)if(1==a.nodeType)return this.b(a);return null};Jw.prototype.b=function(a){this.version=a.getAttribute("version").trim();return(a=U({version:this.version},Kw,a,[]))?a:null};function Lw(a,c){return U({},Mw,a,c)}function Nw(a,c){return U({},Ow,a,c)}function Pw(a,c){var d=Lw(a,c);if(d){var e=[ks(a.getAttribute("width")),ks(a.getAttribute("height"))];d.size=e;return d}} function Qw(a,c){return U([],Rw,a,c)} var Sw=[null,"http://www.opengis.net/wms"],Kw=T(Sw,{Service:R(function(a,c){return U({},Tw,a,c)}),Capability:R(function(a,c){return U({},Uw,a,c)})}),Uw=T(Sw,{Request:R(function(a,c){return U({},Vw,a,c)}),Exception:R(function(a,c){return U([],Ww,a,c)}),Layer:R(function(a,c){return U({},Xw,a,c)})}),Tw=T(Sw,{Name:R(X),Title:R(X),Abstract:R(X),KeywordList:R(Qw),OnlineResource:R(Bv),ContactInformation:R(function(a,c){return U({},Yw,a,c)}),Fees:R(X),AccessConstraints:R(X),LayerLimit:R(js),MaxWidth:R(js), MaxHeight:R(js)}),Yw=T(Sw,{ContactPersonPrimary:R(function(a,c){return U({},Zw,a,c)}),ContactPosition:R(X),ContactAddress:R(function(a,c){return U({},$w,a,c)}),ContactVoiceTelephone:R(X),ContactFacsimileTelephone:R(X),ContactElectronicMailAddress:R(X)}),Zw=T(Sw,{ContactPerson:R(X),ContactOrganization:R(X)}),$w=T(Sw,{AddressType:R(X),Address:R(X),City:R(X),StateOrProvince:R(X),PostCode:R(X),Country:R(X)}),Ww=T(Sw,{Format:pp(X)}),Xw=T(Sw,{Name:R(X),Title:R(X),Abstract:R(X),KeywordList:R(Qw),CRS:rp(X), EX_GeographicBoundingBox:R(function(a,c){var d=U({},ax,a,c);if(d){var e=d.westBoundLongitude,f=d.southBoundLatitude,g=d.eastBoundLongitude,d=d.northBoundLatitude;return void 0===e||void 0===f||void 0===g||void 0===d?void 0:[e,f,g,d]}}),BoundingBox:rp(function(a){var c=[is(a.getAttribute("minx")),is(a.getAttribute("miny")),is(a.getAttribute("maxx")),is(a.getAttribute("maxy"))],d=[is(a.getAttribute("resx")),is(a.getAttribute("resy"))];return{crs:a.getAttribute("CRS"),extent:c,res:d}}),Dimension:rp(function(a){return{name:a.getAttribute("name"), units:a.getAttribute("units"),unitSymbol:a.getAttribute("unitSymbol"),"default":a.getAttribute("default"),multipleValues:fs(a.getAttribute("multipleValues")),nearestValue:fs(a.getAttribute("nearestValue")),current:fs(a.getAttribute("current")),values:X(a)}}),Attribution:R(function(a,c){return U({},bx,a,c)}),AuthorityURL:rp(function(a,c){var d=Lw(a,c);if(d)return d.name=a.getAttribute("name"),d}),Identifier:rp(X),MetadataURL:rp(function(a,c){var d=Lw(a,c);if(d)return d.type=a.getAttribute("type"), d}),DataURL:rp(Lw),FeatureListURL:rp(Lw),Style:rp(function(a,c){return U({},cx,a,c)}),MinScaleDenominator:R(hs),MaxScaleDenominator:R(hs),Layer:rp(function(a,c){var d=c[c.length-1],e=U({},Xw,a,c);if(e){var f=fs(a.getAttribute("queryable"));void 0===f&&(f=d.queryable);e.queryable=void 0!==f?f:!1;f=ks(a.getAttribute("cascaded"));void 0===f&&(f=d.cascaded);e.cascaded=f;f=fs(a.getAttribute("opaque"));void 0===f&&(f=d.opaque);e.opaque=void 0!==f?f:!1;f=fs(a.getAttribute("noSubsets"));void 0===f&&(f=d.noSubsets); e.noSubsets=void 0!==f?f:!1;(f=is(a.getAttribute("fixedWidth")))||(f=d.fixedWidth);e.fixedWidth=f;(f=is(a.getAttribute("fixedHeight")))||(f=d.fixedHeight);e.fixedHeight=f;["Style","CRS","AuthorityURL"].forEach(function(a){if(a in d){var c=Ub(e,a),c=c.concat(d[a]);e[a]=c}});"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" ").forEach(function(a){a in e||(e[a]=d[a])});return e}})}),bx=T(Sw,{Title:R(X),OnlineResource:R(Bv),LogoURL:R(Pw)}),ax= T(Sw,{westBoundLongitude:R(hs),eastBoundLongitude:R(hs),southBoundLatitude:R(hs),northBoundLatitude:R(hs)}),Vw=T(Sw,{GetCapabilities:R(Nw),GetMap:R(Nw),GetFeatureInfo:R(Nw)}),Ow=T(Sw,{Format:rp(X),DCPType:rp(function(a,c){return U({},dx,a,c)})}),dx=T(Sw,{HTTP:R(function(a,c){return U({},ex,a,c)})}),ex=T(Sw,{Get:R(Lw),Post:R(Lw)}),cx=T(Sw,{Name:R(X),Title:R(X),Abstract:R(X),LegendURL:rp(Pw),StyleSheetURL:R(Lw),StyleURL:R(Lw)}),Mw=T(Sw,{Format:R(X),OnlineResource:R(Bv)}),Rw=T(Sw,{Keyword:pp(X)});function fx(){this.c="http://mapserver.gis.umn.edu/mapserver";this.b=new ps;this.defaultDataProjection=null}w(fx,as); fx.prototype.Lb=function(a,c){var d={featureType:this.featureType,featureNS:this.featureNS};c&&Yb(d,Kr(this,a,c));var e=[d];a.namespaceURI=this.c;var f=Yo(a),d=[];if(0!==a.childNodes.length){if("msGMLOutput"==f)for(var g=0,h=a.childNodes.length;gg[2])&&(k*=Math.ceil((g[0]-d)/k),e=[e[0]+ k,e[1],e[2]+k,e[3]]);d=this.A[0];g=this.A[1];k=-1;n=Math.pow(this.T*h,2);q=[];r=[];h=0;for(m=zx.length;h=c.l&&c.cancel())}this.u?this.u.call(this.v,this):this.C=!0;this.b||(a=new Jx,Kx(this),Lx(this,!1,a))}};Ix.prototype.A=function(a,c){this.i=!1;Lx(this,a,c)};function Lx(a,c,d){a.b=!0;a.c=d;a.f=!c;Mx(a)} function Kx(a){if(a.b){if(!a.C)throw new Nx;a.C=!1}}Ix.prototype.Lc=function(a){Kx(this);Lx(this,!0,a)};function Ox(a,c,d,e){a.g.push([c,d,e]);a.b&&Mx(a)}Ix.prototype.then=function(a,c,d){var e,f,g=new On(function(a,c){e=a;f=c});Ox(this,e,function(a){a instanceof Jx?g.cancel():f(a)});return g.then(a,c,d)};Bn(Ix);function Px(a){return bb(a.g,function(a){return ka(a[1])})} function Mx(a){if(a.j&&a.b&&Px(a)){var c=a.j,d=Qx[c];d&&(ba.clearTimeout(d.ha),delete Qx[c]);a.j=0}a.a&&(a.a.l--,delete a.a);for(var c=a.c,e=d=!1;a.g.length&&!a.i;){var f=a.g.shift(),g=f[0],h=f[1],f=f[2];if(g=a.f?h:g)try{var k=g.call(f||a.v,c);ca(k)&&(a.f=a.f&&(k==c||k instanceof Error),a.c=c=k);if(Cn(c)||"function"===typeof ba.Promise&&c instanceof ba.Promise)e=!0,a.i=!0}catch(m){c=m,a.f=!0,Px(a)||(d=!0)}}a.c=c;e&&(k=qa(a.A,a,!0),e=qa(a.A,a,!1),c instanceof Ix?(Ox(c,k,e),c.B=!0):c.then(k,e));d&& (c=new Rx(c),Qx[c.ha]=c,a.j=c.ha)}function Nx(){xa.call(this)}w(Nx,xa);Nx.prototype.message="Deferred has already fired";Nx.prototype.name="AlreadyCalledError";function Jx(){xa.call(this)}w(Jx,xa);Jx.prototype.message="Deferred was canceled";Jx.prototype.name="CanceledError";function Rx(a){this.ha=ba.setTimeout(qa(this.a,this),0);this.b=a}Rx.prototype.a=function(){delete Qx[this.ha];throw this.b;};var Qx={};function Sx(a,c){ca(a.name)?(this.name=a.name,this.code=Tx[a.name]):(this.code=a.code,this.name=Ux(a.code));xa.call(this,Aa("%s %s",this.name,c))}w(Sx,xa);function Ux(a){var c=Qb(Tx,function(c){return a==c});if(!ca(c))throw Error("Invalid code: "+a);return c}var Tx={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 Vx(a,c){wc.call(this,a.type,c)}w(Vx,wc);function Wx(){dd.call(this);this.ab=new FileReader;this.ab.onloadstart=qa(this.b,this);this.ab.onprogress=qa(this.b,this);this.ab.onload=qa(this.b,this);this.ab.onabort=qa(this.b,this);this.ab.onerror=qa(this.b,this);this.ab.onloadend=qa(this.b,this)}w(Wx,dd);Wx.prototype.getError=function(){return this.ab.error&&new Sx(this.ab.error,"reading file")};Wx.prototype.b=function(a){C(this,new Vx(a,this))};Wx.prototype.Y=function(){Wx.ba.Y.call(this);delete this.ab}; function Xx(a){var c=new Ix;a.Pa("loadend",ra(function(a,c){var f=c.ab.result,g=c.getError();null==f||g?(Kx(a),Lx(a,!1,g)):a.Lc(f);c.Tc()},c,a));return c};function Yx(a){a=a?a:{};Qk.call(this,{handleEvent:re});this.j=a.formatConstructors?a.formatConstructors:[];this.v=a.projection?Ce(a.projection):null;this.f=null;this.a=void 0}w(Yx,Qk);Yx.prototype.Y=function(){this.a&&$c(this.a);Yx.ba.Y.call(this)};Yx.prototype.i=function(a){a=a.b.dataTransfer.files;var c,d,e;c=0;for(d=a.length;ca.Na:a.f===ly&&(e=a.a[0].length>a.Na,f=[a.a[0][0],a.a[0][a.a[0].length-2]]);if(e)for(var e=c.map,g=0,h=f.length;ga.wa,a.B(g,e);else if(a.f===ly){g=a.a[0];g.push(d.slice());if(f=g.length>a.wa)a.l=g[0];a.B(a.a,e)}uy(a);f&&a.Vc()}l.Dn=function(){var a=this.i.V(),c,d;this.f===ny?(c=this.a,c.splice(-2,1),this.B(c,a)):this.f===ly&&(c=this.a[0],c.splice(-2,1),d=this.v.V(),d.ja(c),this.B(this.a,a));0===c.length&&(this.l=null);uy(this)}; l.Vc=function(){var a=vy(this),c=this.a,d=a.V();this.f===ny?(c.pop(),this.B(c,d)):this.f===ly&&(c[0].pop(),c[0].push(c[0][0]),this.B(c,d));"MultiPoint"===this.$?a.za(new kn([c])):"MultiLineString"===this.$?a.za(new O([c])):"MultiPolygon"===this.$&&a.za(new P([c]));C(this,new fy("drawend",a));this.lb&&this.lb.push(a);this.nb&&this.nb.yc(a)};function vy(a){a.l=null;var c=a.i;c&&(a.i=null,a.N=null,a.v=null,a.fa.ea().clear(!0));return c} l.dl=function(a){var c=a.V();this.i=a;this.a=c.U();a=this.a[this.a.length-1];this.l=a.slice();this.a.push(a.slice());uy(this);C(this,new fy("drawstart",this.i))};l.ic=qe;function uy(a){var c=[];a.i&&c.push(a.i);a.v&&c.push(a.v);a.N&&c.push(a.N);a=a.fa.ea();a.clear(!0);a.Nb(c)}l.sh=function(){var a=this.A,c=this.c();a&&c||vy(this);this.fa.setMap(c?a:null)}; function ky(a){var c;"Point"===a||"MultiPoint"===a?c=my:"LineString"===a||"MultiLineString"===a?c=ny:"Polygon"===a||"MultiPolygon"===a?c=ly:"Circle"===a&&(c=sy);return c}var my="Point",ny="LineString",ly="Polygon",sy="Circle";function wy(a,c,d){wc.call(this,a);this.features=c;this.mapBrowserPointerEvent=d}w(wy,wc); function xy(a){cl.call(this,{handleDownEvent:yy,handleDragEvent:zy,handleEvent:Ay,handleUpEvent:By});this.wa=a.deleteCondition?a.deleteCondition:we(Zk,Yk);this.ra=this.f=null;this.da=[0,0];this.B=this.T=!1;this.a=new Ep;this.N=void 0!==a.pixelTolerance?a.pixelTolerance:10;this.l=this.fa=!1;this.i=null;this.I=new H({source:new V({useSpatialIndex:!1,wrapX:!!a.wrapX}),style:a.style?a.style:Cy(),updateWhileAnimating:!0,updateWhileInteracting:!0});this.$={Point:this.kl,LineString:this.sg,LinearRing:this.sg, Polygon:this.ll,MultiPoint:this.il,MultiLineString:this.hl,MultiPolygon:this.jl,GeometryCollection:this.gl};this.v=a.features;this.v.forEach(this.ef,this);B(this.v,"add",this.el,!1,this);B(this.v,"remove",this.fl,!1,this)}w(xy,cl);l=xy.prototype;l.ef=function(a){var c=a.V();c.W()in this.$&&this.$[c.W()].call(this,a,c);(c=this.A)&&Dy(this,this.da,c);B(a,"change",this.rg,!1,this)};function Ey(a,c){a.B||(a.B=!0,C(a,new wy("modifystart",a.v,c)))} function Fy(a,c){Gy(a,c);a.f&&0===a.v.Gb()&&(a.I.ea().dc(a.f),a.f=null);Zc(c,"change",a.rg,!1,a)}function Gy(a,c){var d=a.a,e=[];d.forEach(function(a){c===a.feature&&e.push(a)});for(var f=e.length-1;0<=f;--f)d.remove(e[f])}l.setMap=function(a){this.I.setMap(a);xy.ba.setMap.call(this,a)};l.el=function(a){this.ef(a.element)};l.rg=function(a){this.l||(a=a.target,Fy(this,a),this.ef(a))};l.fl=function(a){Fy(this,a.element)}; l.kl=function(a,c){var d=c.U(),d={feature:a,geometry:c,ia:[d,d]};this.a.qa(c.R(),d)};l.il=function(a,c){var d=c.U(),e,f,g;f=0;for(g=d.length;fd?h[1]:h[0]);Hy(a,k);d={};d[v(h)]=!0;c=1;for(m=g.length;cd&&(a.index+=f)})}function Cy(){var a=Ll();return function(){return a.Point}};function Ky(a,c,d,e){wc.call(this,a);this.selected=c;this.deselected=d;this.mapBrowserEvent=e}w(Ky,wc); function Ly(a){Qk.call(this,{handleEvent:My});a=a?a:{};this.u=a.condition?a.condition:Yk;this.l=a.addCondition?a.addCondition:qe;this.B=a.removeCondition?a.removeCondition:qe;this.N=a.toggleCondition?a.toggleCondition:$k;this.v=a.multi?a.multi:!1;this.j=a.filter?a.filter:re;var c;if(a.layers)if(ka(a.layers))c=a.layers;else{var d=a.layers;c=function(a){return sb(d,a)}}else c=re;this.i=c;this.a={};this.f=new H({source:new V({useSpatialIndex:!1,features:a.features,wrapX:a.wrapX}),style:a.style?a.style: Ny(),updateWhileAnimating:!0,updateWhileInteracting:!0});a=this.f.ea().c;B(a,"add",this.ml,!1,this);B(a,"remove",this.pl,!1,this)}w(Ly,Qk);l=Ly.prototype;l.nl=function(){return this.f.ea().c};l.ol=function(a){a=v(a);return this.a[a]}; function My(a){if(!this.u(a))return!0;var c=this.l(a),d=this.B(a),e=this.N(a),f=!c&&!d&&!e,g=a.map,h=this.f.ea().c,k=[],m=[],n=!1;if(f)g.Wc(a.pixel,function(a,c){if(this.j(a,c)){m.push(a);var d=v(a);this.a[d]=c;return!this.v}},this,this.i),0f?h[1]:h[0],d=c.Ba(m),d=[Math.round(d[0]),Math.round(d[1])]);c=m;g&&(a.coordinate=c.slice(0,2),a.pixel=d);return dl.call(this,a)} function Qy(){var a=Mb(this.v);a.length&&(a.forEach(this.rh,this),this.v={});return!1}function Ry(a,c){return xd(this.I,a.ia)-xd(this.I,c.ia)};function Sy(a){cl.call(this,{handleDownEvent:Ty,handleDragEvent:Uy,handleMoveEvent:Vy,handleUpEvent:Wy});this.l=void 0;this.a=null;this.f=void 0!==a.features?a.features:null;this.i=null}w(Sy,cl);function Ty(a){this.i=Xy(this,a.pixel,a.map);return!this.a&&this.i?(this.a=a.coordinate,Vy.call(this,a),!0):!1}function Wy(a){return this.a?(this.a=null,Vy.call(this,a),!0):!1} function Uy(a){if(this.a){a=a.coordinate;var c=a[0]-this.a[0],d=a[1]-this.a[1];if(this.f)this.f.forEach(function(a){var e=a.V();e.wc(c,d);a.za(e)});else if(this.i){var e=this.i.V();e.wc(c,d);this.i.za(e)}this.a=a}} function Vy(a){var c=a.map.uc();if(a=a.map.Wc(a.pixel,function(a){return a})){var d=!1;this.f&&sb(this.f.a,a)&&(d=!0);this.l=c.style.cursor;c.style.cursor=this.a?"-webkit-grabbing":d?"-webkit-grab":"pointer";c.style.cursor=this.a?d?"grab":"pointer":"grabbing"}else c.style.cursor=void 0!==this.l?this.l:"",this.l=void 0}function Xy(a,c,d){var e=null;c=d.Wc(c,function(a){return a});a.f&&sb(a.f.a,c)&&(e=c);return e};function Y(a){a=a?a:{};var c=Vb(a);delete c.gradient;delete c.radius;delete c.blur;delete c.shadow;delete c.weight;H.call(this,c);this.f=null;this.$=void 0!==a.shadow?a.shadow:250;this.I=void 0;this.u=null;B(this,ld("gradient"),this.Aj,!1,this);this.hh(a.gradient?a.gradient:Yy);this.dh(void 0!==a.blur?a.blur:15);this.xg(void 0!==a.radius?a.radius:8);B(this,[ld("blur"),ld("radius")],this.cg,!1,this);this.cg();var d=a.weight?a.weight:"weight",e;ia(d)?e=function(a){return a.get(d)}:e=d;this.g(qa(function(a){a= e(a);a=void 0!==a?Qa(a,0,1):1;var c=255*a|0,d=this.u[c];d||(d=[new Gl({image:new yk({opacity:a,src:this.I})})],this.u[c]=d);return d},this));this.set("renderOrder",null);B(this,"render",this.Sj,!1,this)}w(Y,H);var Yy=["#00f","#0ff","#0f0","#ff0","#f00"];l=Y.prototype;l.Pf=function(){return this.get("blur")};l.Sf=function(){return this.get("gradient")};l.wg=function(){return this.get("radius")}; l.Aj=function(){for(var a=this.Sf(),c=Ri(1,256),d=c.createLinearGradient(0,0,1,256),e=1/(a.length-1),f=0,g=a.length;fTerms of Use'}); sz.prototype.l=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)Eh(this,"error");else{var c=a.brandLogoUri;-1==c.indexOf("https")&&(c=c.replace("http","https"));var d=a.resourceSets[0].resources[0],e=-1==this.f?d.zoomMax:this.f;a=ig(this.i);var f=Oh({extent:a,minZoom:d.zoomMin,maxZoom:e,tileSize:d.imageWidth==d.imageHeight?d.imageWidth:[d.imageWidth,d.imageHeight]});this.tileGrid= f;var g=this.g;this.tileUrlFunction=nz(d.imageUrlSubdomains.map(function(a){var c=[0,0,0],e=d.imageUrl.replace("{subdomain}",a).replace("{culture}",g);return function(a){if(a)return cg(a[0],a[1],-a[2]-1,c),e.replace("{quadkey}",eg(c))}}));if(d.imageryProviders){var h=Ge(Ce("EPSG:4326"),this.i);a=d.imageryProviders.map(function(a){var c=a.attribution,d={};a.coverageAreas.forEach(function(a){var c=a.zoomMin,g=Math.min(a.zoomMax,e);a=a.bbox;a=oe([a[1],a[0],a[3],a[2]],h);var k,m;for(k=c;k<=g;++k)m=k.toString(), c=kg(f,a,k),m in d?d[m].push(c):d[m]=[c]});return new rg({html:c,tileRanges:d})});a.push(tz);this.la(a)}this.T=c;Eh(this,"ready")}};function Z(a){V.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.I=void 0;this.da=void 0!==a.distance?a.distance:20;this.B=[];this.u=a.source;this.u.D("change",Z.prototype.ra,this)}w(Z,V);Z.prototype.fa=function(){return this.u};Z.prototype.Wb=function(a,c,d){this.u.Wb(a,c,d);c!==this.I&&(this.clear(),this.I=c,uz(this),this.Nb(this.B))};Z.prototype.ra=function(){this.clear();uz(this);this.Nb(this.B);this.s()}; function uz(a){if(void 0!==a.I){a.B.length=0;for(var c=Nd(),d=a.da*a.I,e=a.u.zc(),f={},g=0,h=e.length;gk*d?h*g/(k*n):d*g/(m*n),SETVIEWCENTERX:f[0],SETVIEWCENTERY:f[1]};Yb(e,c);return so(uo([a],e))};l.Hl=function(a){this.c=null;this.a=a;this.s()};function xz(a){var c=void 0!==a.attributions?a.attributions:null,d=a.imageExtent,e,f;void 0!==a.imageSize&&(e=ie(d)/a.imageSize[1],f=[e]);var g=void 0!==a.crossOrigin?a.crossOrigin:null,h=void 0!==a.imageLoadFunction?a.imageLoadFunction:yn;sn.call(this,{attributions:c,logo:a.logo,projection:Ce(a.projection),resolutions:f});this.a=new Cx(d,e,1,c,a.url,g,h);B(this.a,"change",this.l,!1,this)}w(xz,sn);xz.prototype.cc=function(a){return ke(a,this.a.R())?this.a:null};function yz(a){a=a||{};sn.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.da=void 0!==a.crossOrigin?a.crossOrigin:null;this.f=a.url;this.u=void 0!==a.imageLoadFunction?a.imageLoadFunction:yn;this.c=a.params;this.g=!0;zz(this);this.$=a.serverType;this.fa=void 0!==a.hidpi?a.hidpi:!0;this.a=null;this.B=[0,0];this.X=0;this.I=void 0!==a.ratio?a.ratio:1.5}w(yz,sn);var Az=[101,101];l=yz.prototype; l.Ol=function(a,c,d,e){if(void 0!==this.f){var f=he(a,c,0,Az),g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.c.LAYERS};Yb(g,this.c,e);e=Math.floor((f[3]-a[1])/c);g[this.g?"I":"X"]=Math.floor((a[0]-f[0])/c);g[this.g?"J":"Y"]=e;return Bz(this,f,Az,1,Ce(d),g)}};l.Ql=function(){return this.c}; l.cc=function(a,c,d,e){if(void 0===this.f)return null;c=tn(this,c);1==d||this.fa&&void 0!==this.$||(d=1);a=a.slice();var f=(a[0]+a[2])/2,g=(a[1]+a[3])/2;if(1!=this.I){var h=this.I*le(a)/2,k=this.I*ie(a)/2;a[0]=f-h;a[1]=g-k;a[2]=f+h;a[3]=g+k}var m=c/d,h=Math.ceil(le(a)/m),k=Math.ceil(ie(a)/m);a[0]=f-m*h/2;a[2]=f+m*h/2;a[1]=g-m*k/2;a[3]=g+m*k/2;if((f=this.a)&&this.X==this.b&&f.aa()==c&&f.g==d&&Wd(f.R(),a))return f;f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0}; Yb(f,this.c);this.B[0]=h;this.B[1]=k;e=Bz(this,a,this.B,d,e,f);this.a=new Cx(a,c,d,this.j,e,this.da,this.u);this.X=this.b;B(this.a,"change",this.l,!1,this);return this.a};l.Pl=function(){return this.u}; function Bz(a,c,d,e,f,g){g[a.g?"CRS":"SRS"]=f.b;"STYLES"in a.c||(g.STYLES=new String(""));if(1!=e)switch(a.$){case "geoserver":e=90*e+.5|0;g.FORMAT_OPTIONS="FORMAT_OPTIONS"in g?g.FORMAT_OPTIONS+(";dpi:"+e):"dpi:"+e;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.g;var h;a.g&&"ne"==d.substr(0,2)?h=[c[1],c[0],c[3],c[2]]:h=c;g.BBOX=h.join(",");return so(uo([a.f],g))}l.Rl=function(){return this.f}; l.Sl=function(a){this.a=null;this.u=a;this.s()};l.Tl=function(a){a!=this.f&&(this.f=a,this.a=null,this.s())};l.Ul=function(a){Yb(this.c,a);zz(this);this.a=null;this.s()};function zz(a){a.g=0<=Oa(Tb(a.c,"VERSION","1.3.0"),"1.3")};function Cz(a){var c=void 0!==a.projection?a.projection:"EPSG:3857",d=void 0!==a.tileGrid?a.tileGrid:Oh({extent:ig(c),maxZoom:a.maxZoom,tileSize:a.tileSize});this.l=null;qz.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,projection:c,tileGrid:d,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:oz,wrapX:void 0!==a.wrapX?a.wrapX:!0});void 0!==a.tileUrlFunction?this.Ga(a.tileUrlFunction):void 0!==a.urls?(a=a.urls,this.Ga(mz(a,this.tileGrid)), this.l=a):void 0!==a.url&&this.f(a.url)}w(Cz,qz);Cz.prototype.g=function(){return this.l};Cz.prototype.f=function(a){this.Ga(mz(pz(a),this.tileGrid));this.l=[a]};function Dz(a){a=a||{};var c;void 0!==a.attributions?c=a.attributions:c=[Ez];Cz.call(this,{attributions:c,crossOrigin:void 0!==a.crossOrigin?a.crossOrigin:"anonymous",opaque:!0,maxZoom:void 0!==a.maxZoom?a.maxZoom:19,tileLoadFunction:a.tileLoadFunction,url:void 0!==a.url?a.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:a.wrapX})}w(Dz,Cz);var Ez=new rg({html:'© OpenStreetMap contributors.'});function Fz(a){a=a||{};var c=Gz[a.layer];this.A=a.layer;Cz.call(this,{attributions:c.attributions,crossOrigin:"anonymous",logo:"https://developer.mapquest.com/content/osm/mq_logo.png",maxZoom:c.maxZoom,opaque:!0,tileLoadFunction:a.tileLoadFunction,url:void 0!==a.url?a.url:"https://otile{1-4}-s.mqcdn.com/tiles/1.0.0/"+this.A+"/{z}/{x}/{y}.jpg"})}w(Fz,Cz); var Hz=new rg({html:'Tiles Courtesy of MapQuest'}),Gz={osm:{maxZoom:19,attributions:[Hz,Ez]},sat:{maxZoom:18,attributions:[Hz,new rg({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[Hz,Ez]}};Fz.prototype.u=function(){return this.A};(function(){var a={},c={gb:a};(function(d){if("object"===typeof a&&"undefined"!==typeof c)c.gb=d();else{var e;"undefined"!==typeof window?e=window:"undefined"!==typeof global?e=global:"undefined"!==typeof self?e=self:e=this;e.Bo=d()}})(function(){return function e(a,c,h){function k(n,q){if(!c[n]){if(!a[n]){var r="function"==typeof require&&require;if(!q&&r)return r(n,!0);if(m)return m(n,!0);r=Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r;}r=c[n]={gb:{}};a[n][0].call(r.gb,function(c){var e= a[n][1][c];return k(e?e:c)},r,r.gb,e,a,c,h)}return c[n].gb}for(var m="function"==typeof require&&require,n=0;nthis.di;)this.Jc.shift().Lc(null,null)};m.prototype.Ff=function(){if(0===this.qd&&0Stamen Design, under CC BY 3.0.'}),Ez];function Uz(a){a=a||{};var c=void 0!==a.params?a.params:{};qz.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,projection:a.projection,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:qa(this.Yl,this),wrapX:void 0!==a.wrapX?a.wrapX:!0});var d=a.urls;void 0===d&&void 0!==a.url&&(d=pz(a.url));this.g=d||[];this.f=c;this.l=Nd()}w(Uz,qz);l=Uz.prototype;l.Vl=function(){return this.f}; l.Tb=function(a,c,d){a=Uz.ba.Tb.call(this,a,c,d);return 1==c?a:od(a,c,this.c)};l.Wl=function(){return this.g};l.Xl=function(a){a=void 0!==a?pz(a):null;this.Cg(a)};l.Cg=function(a){this.g=a||[];this.s()}; l.Yl=function(a,c,d){var e=this.tileGrid;e||(e=Th(this,d));if(!(e.b.length<=a[0])){var f=Jh(e,a,this.l),g=pd(e.Ka(a[0]),this.c);1!=c&&(g=od(g,c,this.c));e={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};Yb(e,this.f);var h=this.g;0!==h.length?(d=d.b.split(":").pop(),e.SIZE=g[0]+","+g[1],e.BBOX=f.join(","),e.BBOXSR=d,e.IMAGESR=d,e.DPI=Math.round(90*c),a=1==h.length?h[0]:h[wb((a[1]<g||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.c||d+this.b>this.c)return null;e=rA(this,!1,a,c,d,e,g);if(!e)return null;a=rA(this,!0,a,c,d,void 0!==f?f:se,g);return{offsetX:e.offsetX,offsetY:e.offsetY,image:e.image,dg:a.image}}; function rA(a,c,d,e,f,g,h){var k=c?a.j:a.g,m,n,p;n=0;for(p=k.length;n=c+this.b&&g.height>=d+this.b)return k={offsetX:g.x+this.b,offsetY:g.y+this.b,image:this.c},this.f[a]=k,e.call(f,this.g,g.x+this.b,g.y+this.b),a=h,c=c+this.b,d=d+this.b,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},sA(this,a,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},sA(this,a,e,f)),k;return null};function sA(a,c,d,e){c=[c,1];0f&&(f=0);g=d.TileMatrixSetLink[f].TileMatrixSet; var h=d.Format[0];"format"in c&&(h=c.format);f=db(d.Style,function(a){return"style"in c?a.Title==c.style:a.isDefault});0>f&&(f=0);f=d.Style[f].Identifier;var k={};"Dimension"in d&&d.Dimension.forEach(function(a){var c=a.Identifier,d=a["default"];void 0===d&&(d=a.values[0]);k[c]=d});var m=cb(a.Contents.TileMatrixSet,function(a){return a.Identifier==g}),n;n="projection"in c?Ce(c.projection):Ce(m.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var p=d.WGS84BoundingBox,q,r;void 0!== p&&(r=Ce("EPSG:4326").R(),r=p[0]==r[0]&&p[2]==r[2],q=Ye(p,"EPSG:4326",n),(p=n.R())&&(Wd(p,q)||(q=void 0)));var m=kA(m,q),u=[];q=c.requestEncoding;q=void 0!==q?q:"";if(a.hasOwnProperty("OperationsMetadata")&&a.OperationsMetadata.hasOwnProperty("GetTile")&&0!==q.indexOf("REST"))for(var d=a.OperationsMetadata.GetTile.DCP.HTTP.Get,p=0,y=d.length;p