238 lines
130 KiB
JavaScript
238 lines
130 KiB
JavaScript
(function(){var h=void 0,i=!0,k=null,l=!1;function aa(){return function(a){return a}}function n(a){return function(){return this[a]}}var p,w=this;function ba(){}function ca(a){a.Xa=function(){return a.oc?a.oc:a.oc=new a}}
|
|
function da(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
|
|
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function x(a){return a!==h}function ea(a){return"array"==da(a)}function fa(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ga(a){return"string"==typeof a}function ha(a){return"function"==da(a)}function ia(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function y(a){return a[ja]||(a[ja]=++ka)}var ja="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ka=0;
|
|
function la(a,b,c){return a.call.apply(a.bind,arguments)}function ma(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function na(a,b,c){na=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return na.apply(k,arguments)}
|
|
function oa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var pa=Date.now||function(){return+new Date};function A(a,b){var c=a.split("."),d=w;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&x(b)?d[e]=b:d=d[e]?d[e]:d[e]={}}function B(a,b){function c(){}c.prototype=b.prototype;a.v=b.prototype;a.prototype=new c};function qa(a){Error.captureStackTrace?Error.captureStackTrace(this,qa):this.stack=Error().stack||"";a&&(this.message=String(a))}B(qa,Error);qa.prototype.name="CustomError";function ra(a){if(!ta.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ua,"&"));-1!=a.indexOf("<")&&(a=a.replace(va,"<"));-1!=a.indexOf(">")&&(a=a.replace(wa,">"));-1!=a.indexOf('"')&&(a=a.replace(xa,"""));return a}var ua=/&/g,va=/</g,wa=/>/g,xa=/\"/g,ta=/[&<>\"]/;var ya=Array.prototype,za=ya.indexOf?function(a,b,c){return ya.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ga(a))return!ga(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},C=ya.forEach?function(a,b,c){ya.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ga(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Aa=ya.map?function(a,b,c){return ya.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=
|
|
ga(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ba=ya.some?function(a,b,c){return ya.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ga(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return i;return l};function Ca(a){if(!ea(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Da(a,b){var c=za(a,b),d;(d=0<=c)&&ya.splice.call(a,c,1);return d}function Ea(a){return ya.concat.apply(ya,arguments)}
|
|
function Fa(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Ga(a,b,c,d){ya.splice.apply(a,Ha(arguments,1))}function Ha(a,b,c){return 2>=arguments.length?ya.slice.call(a,b):ya.slice.call(a,b,c)}function Ia(a){ya.sort.call(a,Ja)}function Ja(a,b){return a>b?1:a<b?-1:0};function Ka(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function La(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ma(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Sa(a){for(var b in a)return l;return i}var Ta="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
|
|
function Ua(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Ta.length;f++)c=Ta[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Va(a){if("function"==typeof a.M)return a.M();if(ga(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return La(a)};function Wa(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)Xa(this,arguments[d],arguments[d+1])}else if(a){a instanceof Wa?(c=a.V(),d=a.M()):(c=Ma(a),d=La(a));for(var e=0;e<c.length;e++)Xa(this,c[e],d[e])}}p=Wa.prototype;p.o=0;p.Xb=0;p.Z=n("o");p.M=function(){Ya(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};p.V=function(){Ya(this);return this.a.concat()};p.Ha=function(){return 0==this.o};
|
|
p.clear=function(){this.b={};this.Xb=this.o=this.a.length=0};p.remove=function(a){return Za(this.b,a)?(delete this.b[a],this.o--,this.Xb++,this.a.length>2*this.o&&Ya(this),i):l};function Ya(a){if(a.o!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Za(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.o!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Za(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function $a(a,b){return Za(a.b,b)?a.b[b]:h}
|
|
function Xa(a,b,c){Za(a.b,b)||(a.o++,a.a.push(b),a.Xb++);a.b[b]=c}p.Q=function(){return new Wa(this)};function Za(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var ab,bb,cb,db,eb,fb,gb;function hb(){return w.navigator?w.navigator.userAgent:k}function ib(){return w.navigator}db=cb=bb=ab=l;var jb;if(jb=hb()){var kb=ib();ab=0==jb.indexOf("Opera");bb=!ab&&-1!=jb.indexOf("MSIE");cb=!ab&&-1!=jb.indexOf("WebKit");db=!ab&&!cb&&"Gecko"==kb.product}var lb=ab,F=bb,mb=db,G=cb,nb,ob=ib();nb=ob&&ob.platform||"";eb=-1!=nb.indexOf("Mac");fb=-1!=nb.indexOf("Win");gb=-1!=nb.indexOf("Linux");var pb=!!ib()&&-1!=(ib().appVersion||"").indexOf("X11"),qb;
|
|
a:{var rb="",sb;if(lb&&w.opera)var tb=w.opera.version,rb="function"==typeof tb?tb():tb;else if(mb?sb=/rv\:([^\);]+)(\)|;)/:F?sb=/MSIE\s+([^\);]+)(\)|;)/:G&&(sb=/WebKit\/(\S+)/),sb)var ub=sb.exec(hb()),rb=ub?ub[1]:"";if(F){var vb,wb=w.document;vb=wb?wb.documentMode:h;if(vb>parseFloat(rb)){qb=String(vb);break a}}qb=rb}var xb={};
|
|
function yb(a){var b;if(!(b=xb[a])){b=0;for(var c=String(qb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",j=d[f]||"",m=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var s=m.exec(g)||["","",""],q=r.exec(j)||["","",""];if(0==s[0].length&&0==q[0].length)break;b=((0==s[1].length?0:parseInt(s[1],10))<(0==q[1].length?0:parseInt(q[1],10))?-1:(0==s[1].length?0:parseInt(s[1],
|
|
10))>(0==q[1].length?0:parseInt(q[1],10))?1:0)||((0==s[2].length)<(0==q[2].length)?-1:(0==s[2].length)>(0==q[2].length)?1:0)||(s[2]<q[2]?-1:s[2]>q[2]?1:0)}while(0==b)}b=xb[a]=0<=b}return b}var zb={};function Ab(a){return zb[a]||(zb[a]=F&&!!document.documentMode&&document.documentMode>=a)};var Bb,Cb=!F||Ab(9);!mb&&!F||F&&Ab(9)||mb&&yb("1.9.1");F&&yb("9");function Db(a,b){var c;c=a.className;c=ga(c)&&c.match(/\S+/g)||[];for(var d=Ha(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=za(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function Eb(a,b,c){return Math.min(Math.max(a,b),c)}function Fb(a,b){var c=a%b;return 0>c*b?c+b:c};function Gb(a,b){this.x=x(a)?a:0;this.y=x(b)?b:0}Gb.prototype.Q=function(){return new Gb(this.x,this.y)};function Hb(a,b){this.width=a;this.height=b}p=Hb.prototype;p.Q=function(){return new Hb(this.width,this.height)};p.Ha=function(){return!(this.width*this.height)};p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ib(a){return a?new Jb(Kb(a)):Bb||(Bb=new Jb)}function Lb(a,b){Ka(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Mb?a.setAttribute(Mb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Mb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
|
|
function Nb(a){a=a.document.documentElement;return new Hb(a.clientWidth,a.clientHeight)}function Ob(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Cb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ra(g.name),'"');if(g.type){f.push(' type="',ra(g.type),'"');var j={};Ua(j,g);delete j.type;g=j}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ga(g)?f.className=g:ea(g)?Db.apply(k,[f].concat(g)):Lb(f,g));2<d.length&&Pb(e,f,d,2);return f}
|
|
function Pb(a,b,c,d){function e(c){c&&b.appendChild(ga(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(fa(f)&&!(ia(f)&&0<f.nodeType)){var g=C,j;a:{if((j=f)&&"number"==typeof j.length){if(ia(j)){j="function"==typeof j.item||"string"==typeof j.item;break a}if(ha(j)){j="function"==typeof j.item;break a}}j=l}g(j?Fa(f):f,e)}else e(f)}}function Qb(a){return document.createElement(a)}function Rb(a,b){Pb(Kb(a),a,arguments,1)}function Sb(a){for(var b;b=a.firstChild;)a.removeChild(b)}
|
|
function Tb(a,b){a.insertBefore(b,a.childNodes[0]||k)}function Ub(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Kb(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Jb(a){this.a=a||w.document||document}Jb.prototype.createElement=function(a){return this.a.createElement(a)};Jb.prototype.createTextNode=function(a){return this.a.createTextNode(a)};
|
|
function Vb(a){var b=a.a,a=!G?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new Gb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Jb.prototype.appendChild=function(a,b){a.appendChild(b)};Jb.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var Wb=!F||Ab(9),Xb=!F||Ab(9),Yb=F&&!yb("9");!G||yb("528");mb&&yb("1.9b")||F&&yb("8")||lb&&yb("9.5")||G&&yb("528");mb&&!yb("8")||F&&yb("9");function Zb(){0!=$b&&(this.oe=Error().stack,ac[y(this)]=this)}var $b=0,ac={};Zb.prototype.Ac=l;Zb.prototype.Bb=function(){if(!this.Ac&&(this.Ac=i,this.r(),0!=$b)){var a=y(this);delete ac[a]}};function bc(a,b){a.na||(a.na=[]);a.na.push(b)}Zb.prototype.r=function(){this.na&&cc.apply(k,this.na);if(this.Kc)for(;this.Kc.length;)this.Kc.shift()()};function dc(a){a&&"function"==typeof a.Bb&&a.Bb()}function cc(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];fa(d)?cc.apply(k,d):dc(d)}};function ec(a,b){this.type=a;this.c=this.target=b}p=ec.prototype;p.Bb=function(){};p.pa=l;p.ab=l;p.rb=i;p.Fb=function(){this.pa=i};p.C=function(){this.ab=i;this.rb=l};function fc(a){a.Fb()};function gc(a){gc[" "](a);return a}gc[" "]=ba;function hc(a,b){a&&ic(this,a,b)}B(hc,ec);var jc=[1,4,2];p=hc.prototype;p.target=k;p.md=k;p.kd=0;p.ld=0;p.clientX=0;p.clientY=0;p.nd=0;p.od=0;p.hd=0;p.va=0;p.Za=0;p.$a=l;p.ba=l;p.ma=l;p.jd=l;p.ob=l;p.K=k;
|
|
function ic(a,b,c){var d=a.type=b.type;ec.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(mb){var e;a:{try{gc(c.nodeName);e=i;break a}catch(f){}e=l}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.md=c;a.kd=G||b.offsetX!==h?b.offsetX:b.layerX;a.ld=G||b.offsetY!==h?b.offsetY:b.layerY;a.clientX=b.clientX!==h?b.clientX:b.pageX;a.clientY=b.clientY!==h?b.clientY:b.pageY;a.nd=b.screenX||0;a.od=b.screenY||0;a.hd=b.button;a.va=b.keyCode||0;a.Za=b.charCode||
|
|
("keypress"==d?b.keyCode:0);a.$a=b.ctrlKey;a.ba=b.altKey;a.ma=b.shiftKey;a.jd=b.metaKey;a.ob=eb?b.metaKey:b.ctrlKey;a.a=b.state;a.K=b;b.defaultPrevented&&a.C();delete a.pa}function kc(a){return(Wb?0==a.K.button:"click"==a.type?i:!!(a.K.button&jc[0]))&&!(G&&eb&&a.$a)}p.Fb=function(){hc.v.Fb.call(this);this.K.stopPropagation?this.K.stopPropagation():this.K.cancelBubble=i};
|
|
p.C=function(){hc.v.C.call(this);var a=this.K;if(a.preventDefault)a.preventDefault();else if(a.returnValue=l,Yb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};p.fd=n("K");function lc(){}var mc=0;lc.prototype.key=0;lc.prototype.ya=l;lc.prototype.a=l;lc.prototype.handleEvent=function(a){return this.b?this.Ia.call(this.Nb||this.src,a):this.Ia.handleEvent.call(this.Ia,a)};var nc={},oc={},pc={},qc={};
|
|
function H(a,b,c,d,e){if(b){if(ea(b)){for(var f=0;f<b.length;f++)H(a,b[f],c,d,e);return k}var d=!!d,g=oc;b in g||(g[b]={o:0,O:0});g=g[b];d in g||(g[d]={o:0,O:0},g.o++);var g=g[d],j=y(a),m;g.O++;if(g[j]){m=g[j];for(f=0;f<m.length;f++)if(g=m[f],g.Ia==c&&g.Nb==e){if(g.ya)break;return m[f].key}}else m=g[j]=[],g.o++;var r=rc,s=Xb?function(a){return r.call(s.src,s.key,a)}:function(a){a=r.call(s.src,s.key,a);if(!a)return a},f=s;f.src=a;var q=g=new lc;if(ha(c))q.b=i;else if(c&&c.handleEvent&&ha(c.handleEvent))q.b=
|
|
l;else throw Error("Invalid listener argument");q.Ia=c;q.c=f;q.src=a;q.type=b;q.capture=!!d;q.Nb=e;q.a=l;q.key=++mc;q.ya=l;c=g.key;f.key=c;m.push(g);nc[c]=g;pc[j]||(pc[j]=[]);pc[j].push(g);a.addEventListener?(a==w||!a.gc)&&a.addEventListener(b,f,d):a.attachEvent(b in qc?qc[b]:qc[b]="on"+b,f);return c}throw Error("Invalid event type");}function sc(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)sc(a,b[f],c,d,e);return k}a=H(a,b,c,d,e);nc[a].a=i;return a}
|
|
function tc(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)tc(a,b[f],c,d,e);else{d=!!d;a:{f=oc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=y(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].Ia==c&&a[f].capture==d&&a[f].Nb==e){J(a[f].key);break}}}
|
|
function J(a){if(!nc[a])return l;var b=nc[a];if(b.ya)return l;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==w||!c.gc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in qc?qc[d]:qc[d]="on"+d,e);c=y(c);pc[c]&&(e=pc[c],Da(e,b),0==e.length&&delete pc[c]);b.ya=i;if(b=oc[d][f][c])b.tc=i,uc(d,f,c,b);delete nc[a];return i}
|
|
function uc(a,b,c,d){if(!d.kb&&d.tc){for(var e=0,f=0;e<d.length;e++)d[e].ya?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.tc=l;0==f&&(delete oc[a][b][c],oc[a][b].o--,0==oc[a][b].o&&(delete oc[a][b],oc[a].o--),0==oc[a].o&&delete oc[a])}}function vc(a,b,c,d,e){var f=1,b=y(b);if(a[b]){a.O--;a=a[b];a.kb?a.kb++:a.kb=1;try{for(var g=a.length,j=0;j<g;j++){var m=a[j];m&&!m.ya&&(f&=wc(m,e)!==l)}}finally{a.kb--,uc(c,d,b,a)}}return Boolean(f)}function wc(a,b){a.a&&J(a.key);return a.handleEvent(b)}
|
|
function K(a,b){var c=b.type||b,d=oc;if(!(c in d))return i;if(ga(b))b=new ec(b,a);else if(b instanceof ec)b.target=b.target||a;else{var e=b,b=new ec(c,a);Ua(b,e)}var e=1,f,d=d[c],c=i in d,g;if(c){f=[];for(g=a;g;g=g.Qb)f.push(g);g=d[i];g.O=g.o;for(var j=f.length-1;!b.pa&&0<=j&&g.O;j--)b.c=f[j],e&=vc(g,f[j],b.type,i,b)&&b.rb!=l}if(l in d)if(g=d[l],g.O=g.o,c)for(j=0;!b.pa&&j<f.length&&g.O;j++)b.c=f[j],e&=vc(g,f[j],b.type,l,b)&&b.rb!=l;else for(d=a;!b.pa&&d&&g.O;d=d.Qb)b.c=d,e&=vc(g,d,b.type,l,b)&&b.rb!=
|
|
l;return Boolean(e)}
|
|
function rc(a,b){if(!nc[a])return i;var c=nc[a],d=c.type,e=oc;if(!(d in e))return i;var e=e[d],f,g;if(!Xb){var j;if(!(j=b))a:{j=["window","event"];for(var m=w;f=j.shift();)if(m[f]!=k)m=m[f];else{j=k;break a}j=m}f=j;j=i in e;m=l in e;if(j){if(0>f.keyCode||f.returnValue!=h)return i;a:{var r=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(s){r=i}if(r||f.returnValue==h)f.returnValue=i}}r=new hc;ic(r,f,this);f=i;try{if(j){for(var q=[],v=r.c;v;v=v.parentNode)q.push(v);g=e[i];g.O=g.o;for(var u=q.length-
|
|
1;!r.pa&&0<=u&&g.O;u--)r.c=q[u],f&=vc(g,q[u],d,i,r);if(m){g=e[l];g.O=g.o;for(u=0;!r.pa&&u<q.length&&g.O;u++)r.c=q[u],f&=vc(g,q[u],d,l,r)}}else f=wc(c,r)}finally{q&&(q.length=0)}return f}d=new hc(b,this);return f=wc(c,d)};function xc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}xc.prototype.Q=function(){return new xc(this.top,this.right,this.bottom,this.left)};xc.prototype.contains=function(a){return!this||!a?l:a instanceof xc?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function yc(a,b){var c=Kb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function zc(a,b){return a.currentStyle?a.currentStyle[b]:k}function Ac(a,b){return yc(a,b)||zc(a,b)||a.style&&a.style[b]}function Bc(a,b){var c,d,e=mb&&(eb||pb)&&yb("1.9");b instanceof Gb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Cc(c,e);a.style.top=Cc(d,e)}
|
|
function Dc(a){var b=a.getBoundingClientRect();F&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
|
|
function Ec(a){if(F&&!Ab(8))return a.offsetParent;for(var b=Kb(a),c=Ac(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ac(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return k}function Fc(a,b){var c=Gc(a),d=Gc(b);return new Gb(c.x-d.x,c.y-d.y)}
|
|
function Gc(a){var b=new Gb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Dc(a);b.x=c.left;b.y=c.top}else{c=Vb(Ib(a));var d,e=Kb(a),f=Ac(a,"position"),g=mb&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new Gb(0,0),m;d=e?Kb(e):document;if(m=F)if(m=!Ab(9))Ib(d),m=l;m=m?d.body:d.documentElement;if(a!=m)if(a.getBoundingClientRect)d=Dc(a),e=Vb(Ib(e)),j.x=d.left+e.x,j.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
|
|
e=e.getBoxObjectFor(m),j.x=d.screenX-e.screenX,j.y=d.screenY-e.screenY;else{g=a;do{j.x+=g.offsetLeft;j.y+=g.offsetTop;g!=a&&(j.x+=g.clientLeft||0,j.y+=g.clientTop||0);if(G&&"fixed"==Ac(g,"position")){j.x+=e.body.scrollLeft;j.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(lb||G&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=Ec(g))&&g!=e.body&&g!=m;)if(j.x-=g.scrollLeft,!lb||"TR"!=g.tagName)j.y-=g.scrollTop}b.x=j.x-c.x;b.y=j.y-c.y}if(mb&&!yb(12)){var r;F?r="-ms-transform":G?r="-webkit-transform":
|
|
lb?r="-o-transform":mb&&(r="-moz-transform");var s;r&&(s=Ac(a,r));s||(s=Ac(a,"transform"));s?(a=s.match(Hc),a=!a?new Gb(0,0):new Gb(parseFloat(a[1]),parseFloat(a[2]))):a=new Gb(0,0);b=new Gb(b.x+a.x,b.y+a.y)}}else r=ha(a.fd),s=a,a.targetTouches?s=a.targetTouches[0]:r&&a.K.targetTouches&&(s=a.K.targetTouches[0]),b.x=s.clientX,b.y=s.clientY;return b}function Cc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Ic(a,b){a.style.display=b?"":"none"}
|
|
function Jc(a,b){Ib(Kb(a));if(F&&!yb("8")){var c=a.style,d;if(F){d=Kc(a,zc(a,"paddingLeft"));var e=Kc(a,zc(a,"paddingRight")),f=Kc(a,zc(a,"paddingTop")),g=Kc(a,zc(a,"paddingBottom"));d=new xc(f,e,g,d)}else d=yc(a,"paddingLeft"),e=yc(a,"paddingRight"),f=yc(a,"paddingTop"),g=yc(a,"paddingBottom"),d=new xc(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(F)var e=Lc(a,"borderLeft"),f=Lc(a,"borderRight"),g=Lc(a,"borderTop"),j=Lc(a,"borderBottom"),e=new xc(g,f,j,e);else e=yc(a,"borderLeftWidth"),
|
|
f=yc(a,"borderRightWidth"),g=yc(a,"borderTopWidth"),j=yc(a,"borderBottomWidth"),e=new xc(parseFloat(g),parseFloat(f),parseFloat(j),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,mb?c.MozBoxSizing="border-box":G?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"}
|
|
function Kc(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Mc={thin:2,medium:4,thick:6};function Lc(a,b){if("none"==zc(a,b+"Style"))return 0;var c=zc(a,b+"Width");return c in Mc?Mc[c]:Kc(a,c)}var Hc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Nc(a,b){this.x=a;this.y=b}B(Nc,Gb);Nc.prototype.Q=function(){return new Nc(this.x,this.y)};Nc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Nc.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function L(a,b){Nc.call(this,a,b)}B(L,Nc);function Oc(a,b){var c=Fb(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};var Pc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Qc(a,b,c){if(ea(b))for(var d=0;d<b.length;d++)Qc(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))};function Rc(a,b){var c;if(a instanceof Rc)this.la=x(b)?b:a.la,Sc(this,a.za),c=a.wb,Tc(this),this.wb=c,c=a.Aa,Tc(this),this.Aa=c,Uc(this,a.pb),c=a.nb,Tc(this),this.nb=c,Vc(this,a.a.Q()),c=a.Va,Tc(this),this.Va=c;else if(a&&(c=String(a).match(Pc))){this.la=!!b;Sc(this,c[1]||"",i);var d=c[2]||"";Tc(this);this.wb=d?decodeURIComponent(d):"";d=c[3]||"";Tc(this);this.Aa=d?decodeURIComponent(d):"";Uc(this,c[4]);d=c[5]||"";Tc(this);this.nb=d?decodeURIComponent(d):"";Vc(this,c[6]||"",i);c=c[7]||"";Tc(this);
|
|
this.Va=c?decodeURIComponent(c):""}else this.la=!!b,this.a=new Wc(k,0,this.la)}p=Rc.prototype;p.za="";p.wb="";p.Aa="";p.pb=k;p.nb="";p.Va="";p.Nd=l;p.la=l;
|
|
p.toString=function(){var a=[],b=this.za;b&&a.push(Xc(b,Yc),":");if(b=this.Aa){a.push("//");var c=this.wb;c&&a.push(Xc(c,Yc),"@");a.push(encodeURIComponent(String(b)));b=this.pb;b!=k&&a.push(":",String(b))}if(b=this.nb)this.Aa&&"/"!=b.charAt(0)&&a.push("/"),a.push(Xc(b,"/"==b.charAt(0)?Zc:$c));(b=this.a.toString())&&a.push("?",b);(b=this.Va)&&a.push("#",Xc(b,ad));return a.join("")};p.Q=function(){return new Rc(this)};
|
|
function Sc(a,b,c){Tc(a);a.za=c?b?decodeURIComponent(b):"":b;a.za&&(a.za=a.za.replace(/:$/,""))}function Uc(a,b){Tc(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.pb=b}else a.pb=k}
|
|
function Vc(a,b,c){Tc(a);if(b instanceof Wc){a.a=b;b=a.a;if((a=a.la)&&!b.b){bd(b);b.a=k;var d=b.D,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),cd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(fa(d)||ga(d))C(d,c,b);else{var e;if("function"==typeof d.V)e=d.V();else if("function"!=typeof d.M)if(fa(d)||ga(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=Ma(d);else e=h;d=Va(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=Xc(b,dd)),a.a=
|
|
new Wc(b,0,a.la)}function ed(a,b,c){Tc(a);ea(c)||(c=[String(c)]);cd(a.a,b,c)}function Tc(a){if(a.Nd)throw Error("Tried to modify a read-only Uri");}function Xc(a,b){return ga(a)?encodeURI(a).replace(b,fd):k}function fd(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Yc=/[#\/\?@]/g,$c=/[\#\?:]/g,Zc=/[\#\?]/g,dd=/[\#\?@]/g,ad=/#/g;function Wc(a,b,c){this.a=a||k;this.b=!!c}
|
|
function bd(a){if(!a.D&&(a.D=new Wa,a.o=0,a.a))for(var b=a.a.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=k,f=k;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=gd(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}p=Wc.prototype;p.D=k;p.o=k;p.Z=function(){bd(this);return this.o};p.add=function(a,b){bd(this);this.a=k;var a=gd(this,a),c=$a(this.D,a);c||Xa(this.D,a,c=[]);c.push(b);this.o++;return this};
|
|
p.remove=function(a){bd(this);a=gd(this,a);return Za(this.D.b,a)?(this.a=k,this.o-=$a(this.D,a).length,this.D.remove(a)):l};p.clear=function(){this.D=this.a=k;this.o=0};p.Ha=function(){bd(this);return 0==this.o};function hd(a,b){bd(a);b=gd(a,b);return Za(a.D.b,b)}p.V=function(){bd(this);for(var a=this.D.M(),b=this.D.V(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
|
|
p.M=function(a){bd(this);var b=[];if(a)hd(this,a)&&(b=Ea(b,$a(this.D,gd(this,a))));else for(var a=this.D.M(),c=0;c<a.length;c++)b=Ea(b,a[c]);return b};function id(a,b){var c=b?a.M(b):[];return 0<c.length?String(c[0]):h}function cd(a,b,c){a.remove(b);0<c.length&&(a.a=k,Xa(a.D,gd(a,b),Fa(c)),a.o+=c.length)}
|
|
p.toString=function(){if(this.a)return this.a;if(!this.D)return"";for(var a=[],b=this.D.V(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.M(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("&")};p.Q=function(){var a=new Wc;a.a=this.a;this.D&&(a.D=this.D.Q());return a};function gd(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};function jd(){Zb.call(this)}B(jd,Zb);p=jd.prototype;p.gc=i;p.Qb=k;p.addEventListener=function(a,b,c,d){H(this,a,b,c,d)};p.removeEventListener=function(a,b,c,d){tc(this,a,b,c,d)};p.r=function(){jd.v.r.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)Ka(pc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)J(f.key),b++}});else{var d=y(this);if(pc[d])for(var d=pc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)J(f.key),b++}}this.Qb=k};function kd(a){return function(){return a}}var ld=kd(l),md=kd(i),nd=kd(k);function od(a,b,c){Zb.call(this);this.d=a;this.c=c;this.a=b||window;this.b=na(this.Eb,this)}B(od,Zb);p=od.prototype;p.N=k;p.Wb=l;p.start=function(){pd(this);this.Wb=l;var a=qd(this),b=rd(this);if(a&&!b&&this.a.mozRequestAnimationFrame)this.N=H(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(k),this.Wb=i;else{if(a&&b)a=a.call(this.a,this.b);else{var c=this.b,d;d=d||0;a=this.a.setTimeout(function(){return c.apply(this,Array.prototype.slice.call(arguments,0,d))},20)}this.N=a}};
|
|
function pd(a){if(a.N!=k){var b=qd(a),c=rd(a);b&&!c&&a.a.mozRequestAnimationFrame?J(a.N):b&&c?c.call(a.a,a.N):a.a.clearTimeout(a.N)}a.N=k}p.Eb=function(){this.Wb&&this.N&&J(this.N);this.N=k;this.d.call(this.c,pa())};p.r=function(){pd(this);od.v.r.call(this)};function qd(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}
|
|
function rd(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function vd(a){Zb.call(this);this.ta=a||window;this.jb=H(this.ta,"resize",this.Fd,l,this);this.sa=Nb(this.ta||window);if(G&&fb||lb&&this.ta.self!=this.ta.top)this.yb=window.setInterval(na(this.bc,this),wd)}B(vd,jd);var wd=500;p=vd.prototype;p.jb=k;p.ta=k;p.sa=k;p.yb=k;p.r=function(){vd.v.r.call(this);this.jb&&(J(this.jb),this.jb=k);this.yb&&(window.clearInterval(this.yb),this.yb=k);this.sa=this.ta=k};p.Fd=function(){this.bc()};
|
|
p.bc=function(){var a=Nb(this.ta||window);if(!(a==this.sa||(!a||!this.sa?0:a.width==this.sa.width&&a.height==this.sa.height)))this.sa=a,K(this,"resize")};function xd(a,b,c,d,e){if(!F&&(!G||!yb("525")))return i;if(eb&&e)return yd(a);if(e&&!d||!c&&(17==b||18==b)||F&&d&&b==a)return l;switch(a){case 13:return!(F&&Ab(9));case 27:return!G}return yd(a)}function yd(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||G&&0==a)return i;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return i;default:return l}}
|
|
function zd(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Ad(a,b){Zb.call(this);a&&(this.fb&&Bd(this),this.Ca=a,this.eb=H(this.Ca,"keypress",this,b),this.Ob=H(this.Ca,"keydown",this.a,b,this),this.fb=H(this.Ca,"keyup",this.b,b,this))}B(Ad,jd);p=Ad.prototype;p.Ca=k;p.eb=k;p.Ob=k;p.fb=k;p.fa=-1;p.ea=-1;p.zb=l;
|
|
var Cd={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Dd={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Ed=F||G&&yb("525"),Fd=eb&&mb;
|
|
Ad.prototype.a=function(a){if(G&&(17==this.fa&&!a.$a||18==this.fa&&!a.ba))this.ea=this.fa=-1;Ed&&!xd(a.va,this.fa,a.ma,a.$a,a.ba)?this.handleEvent(a):(this.ea=mb?zd(a.va):a.va,Fd&&(this.zb=a.ba))};Ad.prototype.b=function(a){this.ea=this.fa=-1;this.zb=a.ba};
|
|
Ad.prototype.handleEvent=function(a){var b=a.K,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.ea,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.ea,d=0<=b.charCode&&63232>b.charCode&&yd(c)?b.charCode:0):lb?(c=this.ea,d=yd(c)?b.keyCode:0):(c=b.keyCode||this.ea,d=b.charCode||0,Fd&&(e=this.zb),eb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Cd?f=Cd[c]:25==c&&a.ma&&(f=9):g&&g in Dd&&(f=Dd[g]);a=f==this.fa;this.fa=f;b=new Gd(f,d,a,b);b.ba=e;K(this,b)};
|
|
function Bd(a){a.eb&&(J(a.eb),J(a.Ob),J(a.fb),a.eb=k,a.Ob=k,a.fb=k);a.Ca=k;a.fa=-1;a.ea=-1}Ad.prototype.r=function(){Ad.v.r.call(this);Bd(this)};function Gd(a,b,c,d){d&&ic(this,d,h);this.type="key";this.va=a;this.Za=b;this.b=c}B(Gd,hc);function Hd(a){Zb.call(this);this.a=a;a=ia(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==Ac(a,"direction");this.b=H(this.a,mb?"DOMMouseScroll":"mousewheel",this)}B(Hd,jd);
|
|
Hd.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.K;if("mousewheel"==a.type){c=1;if(F||G&&(fb||yb("532.0")))c=40;d=Id(-a.wheelDelta,c);x(a.wheelDeltaX)?(b=Id(-a.wheelDeltaX,c),c=Id(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),x(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Eb(b,-this.c,this.c));"number"==typeof this.d&&(c=Eb(c,-this.d,this.d));this.e&&(b=-b);b=new Jd(d,a,b,c);K(this,b)};function Id(a,b){return G&&(eb||gb)&&0!=a%b?a:a/b}
|
|
Hd.prototype.r=function(){Hd.v.r.call(this);J(this.b);delete this.b};function Jd(a,b,c,d){b&&ic(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Jd,hc);var Kd=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function M(a){Zb.call(this);this.l={};x(a)&&this.lb(a)}B(M,jd);var Ld={},Md={},Nd={};function Od(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Pd(a){return a.ol_accessors_||(a.ol_accessors_={})}function Qd(a){return Ld.hasOwnProperty(a)?Ld[a]:Ld[a]=a.toLowerCase()+"_changed"}function Rd(a){return a.ol_bindings_||(a.ol_bindings_={})}p=M.prototype;
|
|
p.Vc=function(a,b,c,d){c=c||a;this.Vb(a);var e=Qd(c);Rd(this)[a]=H(b,e,function(){Sd(this,a)},h,this);Pd(this)[a]={target:b,key:c};d||Sd(this,a)};p.Yc=ba;p.s=function(a){var b,c=Pd(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Md.hasOwnProperty(b)?Md[b]:Md[b]="get"+Od(b),b=a[c]?a[c]():a.s(b)):this.l.hasOwnProperty(a)&&(b=this.l[a]);return b};
|
|
p.V=function(){for(var a=Ma(Pd(this)).concat(Ma(this.l)),b={},c=0,d=0;d<a.length;){var e=a[d++],f=ia(e)?"o"+y(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=i,a[c++]=e)}a.length=c;return a};p.uc=function(a){var b=Pd(this);b.hasOwnProperty(a)?(a=b[a],a.target.uc(a.key)):Sd(this,a)};function Sd(a,b){var c=Qd(b);K(a,c);K(a,"changed")}
|
|
p.q=function(a,b){var c=Pd(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=Nd.hasOwnProperty(d)?Nd[d]:Nd[d]="set"+Od(d);if(c[e])c[e](b);else c.q(d,b)}else this.l[a]=b,Sd(this,a)};p.Ec=function(a){var b,c,d;for(b in a)if(c=a[b],d=Nd.hasOwnProperty(b)?Nd[b]:Nd[b]="set"+Od(b),this[d])this[d](c);else this.q(b,c)};p.lb=M.prototype.Ec;p.Vb=function(a){var b=Rd(this),c=b[a];c&&(delete b[a],J(c),b=this.s(a),delete Pd(this)[a],this.l[a]=b)};p.$d=function(){for(var a in Rd(this))this.Vb(a)};function Td(a,b,c,d,e){ec.call(this,a,e);this.a=b;this.index=c;this.b=d}B(Td,ec);function N(a){M.call(this);this.a=a||[];Ud(this)}B(N,M);p=N.prototype;p.clear=function(){for(;0<this.Ya();)this.vc()};p.forEach=function(a,b){C(this.a,a,b)};p.dd=n("a");p.ed=function(a){return this.a[a]};p.Ya=function(){return this.s("length")};p.cb=function(a,b){Ga(this.a,a,0,b);Ud(this);K(this,new Td("add",b,h,h,this));K(this,new Td("insert_at",b,a,h,this))};p.vc=function(){return this.Bc(this.Ya()-1)};
|
|
p.push=function(a){var b=this.a.length;this.cb(b,a);return b};p.Bc=function(a){var b=this.a[a];ya.splice.call(this.a,a,1);Ud(this);K(this,new Td("remove",b,h,h,this));K(this,new Td("remove_at",h,a,b,this));return b};p.Qd=function(a,b){var c=this.Ya();if(a<c)c=this.a[a],this.a[a]=b,K(this,new Td("set_at",b,a,c,this)),K(this,new Td("remove",c,h,h,this)),K(this,new Td("add",b,h,h,this));else{for(;c<a;++c)this.cb(c,h);this.cb(a,b)}};function Ud(a){a.q("length",a.a.length)};function Vd(){this.c=Eb(255,0,255);this.b=Eb(255,0,255);this.a=Eb(255,0,255);this.d=Eb(1,0,1)};function Wd(a,b){Hb.call(this,a,b)}B(Wd,Hb);function Xd(a,b,c,d){this.h=a;this.i=b;this.m=c;this.k=d}Xd.prototype.$=function(){return this.k-this.i};Xd.prototype.da=function(){return this.m-this.h};function Yd(a,b){return a.h<=b.m&&a.m>=b.h&&a.i<=b.k&&a.k>=b.i}Xd.prototype.toString=function(){return"("+[this.h,this.i,this.m,this.k].join(", ")+")"};function Zd(a,b,c,d){Xd.call(this,a,b,c,d)}B(Zd,Xd);function $d(a){var b=arguments[0],b=new Zd(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.h=Math.min(b.h,d.x);b.i=Math.min(b.i,d.y);b.m=Math.max(b.m,d.x);b.k=Math.max(b.k,d.y)}return b}function ae(a){return new L(a.h,a.k)}Zd.prototype.transform=function(a){var b=[this.h,this.i,this.m,this.k],b=a(b,b,2);return new Zd(Math.min(b[0],b[2]),Math.min(b[1],b[3]),Math.max(b[0],b[2]),Math.max(b[1],b[3]))};function be(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}be.prototype.a=4;be.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};be.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(be.BYTES_PER_ELEMENT=4,be.prototype.BYTES_PER_ELEMENT=be.prototype.a,be.prototype.set=be.prototype.b,be.prototype.toString=be.prototype.toString,A("Float32Array",be));function ce(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}ce.prototype.a=8;ce.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};ce.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(ce.BYTES_PER_ELEMENT=8,ce.prototype.BYTES_PER_ELEMENT=ce.prototype.a,ce.prototype.set=ce.prototype.b,ce.prototype.toString=ce.prototype.toString,A("Float64Array",ce));function de(){var a=Array(16);ee(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function fe(){var a=Array(16);ee(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function ee(a,b,c,d,e,f,g,j,m,r,s,q,v,u,t,z,E){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=j;a[7]=m;a[8]=r;a[9]=s;a[10]=q;a[11]=v;a[12]=u;a[13]=t;a[14]=z;a[15]=E}
|
|
function ge(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function he(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}
|
|
function ie(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],j=a[4],m=a[5],r=a[6],s=a[7],q=a[8],v=a[9],u=a[10],t=a[11],z=a[12],E=a[13],D=a[14],a=a[15],U=b[0],Q=b[1],I=b[2],Y=b[3],V=b[4],sa=b[5],Na=b[6],Oa=b[7],Pa=b[8],Qa=b[9],Ra=b[10],W=b[11],sd=b[12],td=b[13],ud=b[14],b=b[15];c[0]=d*U+j*Q+q*I+z*Y;c[1]=e*U+m*Q+v*I+E*Y;c[2]=f*U+r*Q+u*I+D*Y;c[3]=g*U+s*Q+t*I+a*Y;c[4]=d*V+j*sa+q*Na+z*Oa;c[5]=e*V+m*sa+v*Na+E*Oa;c[6]=f*V+r*sa+u*Na+D*Oa;c[7]=g*V+s*sa+t*Na+a*Oa;c[8]=d*Pa+j*Qa+q*Ra+z*W;c[9]=e*Pa+m*Qa+v*Ra+E*W;c[10]=
|
|
f*Pa+r*Qa+u*Ra+D*W;c[11]=g*Pa+s*Qa+t*Ra+a*W;c[12]=d*sd+j*td+q*ud+z*b;c[13]=e*sd+m*td+v*ud+E*b;c[14]=f*sd+r*td+u*ud+D*b;c[15]=g*sd+s*td+t*ud+a*b}function je(a,b){return a.length==b.length&&a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]&&a[4]==b[4]&&a[5]==b[5]&&a[6]==b[6]&&a[7]==b[7]&&a[8]==b[8]&&a[9]==b[9]&&a[10]==b[10]&&a[11]==b[11]&&a[12]==b[12]&&a[13]==b[13]&&a[14]==b[14]&&a[15]==b[15]}
|
|
function ke(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14]}function le(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}function me(a,b,c){ee(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}
|
|
function ne(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],j=a[5],m=a[6],r=a[7],s=Math.cos(b),q=Math.sin(b);a[0]=c*s+g*q;a[1]=d*s+j*q;a[2]=e*s+m*q;a[3]=f*s+r*q;a[4]=c*-q+g*s;a[5]=d*-q+j*s;a[6]=e*-q+m*s;a[7]=f*-q+r*s}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function oe(a,b,c){Nc.call(this,b,c);this.n=a}B(oe,L);oe.prototype.hash=function(){return(this.x<<this.n)+this.y};function pe(a){var b=Array(a.n),c=1<<a.n-1,d,e;for(d=0;d<a.n;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}oe.prototype.toString=function(){return[this.n,this.x,this.y].join("/")};function qe(a,b,c,d){this.h=a;this.i=b;this.m=c;this.k=d}B(qe,Xd);qe.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.m&&this.i<=a.y&&a.y<=this.k};qe.prototype.$=function(){return this.k-this.i+1};qe.prototype.da=function(){return this.m-this.h+1};function re(a,b){this.b=a;this.a=b||k};function se(a){Zb.call(this);this.U=a;this.a=0}B(se,jd);se.prototype.c=function(){return y(this).toString()};function te(a){this.d=a;this.e=8;this.c=0;this.a=[];this.b={}}function ue(a,b,c,d){if(0==b.a){var e=b.c();if(!(e in a.b)){var f=a.d(b,c,d);Infinity!=f&&(a.a.push([f,b,c,d]),a.b[e]=i,ve(a,0,a.a.length-1))}}}te.prototype.f=function(){--this.c};function we(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b<d>>1;){var g=2*b+1,j=2*b+2,g=j<d&&c[j][0]<c[g][0]?j:g;c[b]=c[g];b=g}c[b]=e;ve(a,f,b)}function ve(a,b,c){for(var a=a.a,d=a[c];c>b;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};/*
|
|
|
|
Latitude/longitude spherical geodesy formulae taken from
|
|
http://www.movable-type.co.uk/scripts/latlong.html
|
|
Licenced under CC-BY-3.0.
|
|
*/
|
|
function xe(a,b){var c=a.y*Math.PI/180,d=b.y*Math.PI/180,e=(d-c)/2,f=(b.x-a.x)*Math.PI/180/2,c=Math.sin(e)*Math.sin(e)+Math.sin(f)*Math.sin(f)*Math.cos(c)*Math.cos(d);return 2*ye.a*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};var ye=new function(){this.a=6370997};var ze="object"==typeof Proj4js,Ae={Oc:"degrees",pe:"m"};function O(a,b,c,d){this.a=a;this.e=b;this.na=c;this.c=x(d)?d:"enu";this.f=k}O.prototype.l=n("a");O.prototype.H=n("na");O.prototype.j=n("e");O.prototype.g=n("c");function Be(a,b){O.call(this,a,b.units,k,b.axis);this.zc=b;this.d=k}B(Be,O);
|
|
Be.prototype.b=function(a,b){if("degrees"==this.e)return a;this.d===k&&(this.d=Ce(this,De("EPSG:4326")));var c=[b.x-a/2,b.y,b.x+a/2,b.y,b.x,b.y-a/2,b.x,b.y+a/2],c=this.d(c,c,2);return(xe(new L(c[0],c[1]),new L(c[2],c[3]))+xe(new L(c[4],c[5]),new L(c[6],c[7])))/2};var Ee={},Fe={},Ge={};function He(a){C(a,function(a){Ie(a)});C(a,function(b){C(a,function(a){b!==a&&Je(b,a,Ke)})})}function Ie(a){Fe[a.a]=a;Je(a,a,Ke)}function Le(a){return a!=k?ga(a)?Me(a):a:Me("EPSG:3857")}
|
|
function Je(a,b,c){a=a.a;b=b.a;a in Ge||(Ge[a]={});Ge[a][b]=c}function Me(a){var b=Fe[a];ze&&!x(b)&&(b=De(a));x(b)||(b=k);return b}function De(a){var b=Ee[a];x(b)||(b=new Proj4js.Proj(a),b=new Be(a,b),Ee[a]=b);return b}
|
|
function Ce(a,b){var c=a.a,d=b.a,e;c in Ge&&d in Ge[c]&&(e=Ge[c][d]);if(ze&&!x(e)){var f;f=(a instanceof Be?a:De(a.a)).zc;var g;g=(b instanceof Be?b:De(b.a)).zc;e=function(a,b,c){var d=a.length,c=1<c?c:2;x(b)||(b=2<c?a.slice():Array(d));for(var e,v=0;v<d;v+=c)e=new Proj4js.Point(a[v],a[v+1]),e=Proj4js.transform(f,g,e),b[v]=e.x,b[v+1]=e.y;return b};Je(a,b,e)}x(e)||(e=Ne);return e}function Oe(a,b){var c=Me(a),d=Me(b);return Ce(c,d)}
|
|
function Ne(a,b){if(x(b)&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}function Ke(a,b){var c;if(x(b)){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c};function Pe(a){Zb.call(this);this.j=x(a.projection)?a.projection:k;this.l=x(a.extent)?a.extent:x(a.projection)?a.projection.H():k;this.e=x(a.attributions)?a.attributions:k}B(Pe,jd);Pe.prototype.ja=n("e");Pe.prototype.H=n("l");Pe.prototype.c=md;function P(a){M.call(this);this.g=a.source;this.j(x(a.brightness)?a.brightness:0);this.p(x(a.contrast)?a.contrast:1);this.t(x(a.hue)?a.hue:0);this.A(x(a.opacity)?a.opacity:1);this.F(x(a.saturation)?a.saturation:1);this.G(x(a.visible)?a.visible:i);this.g.c()||sc(this.g,"load",this.J,l,this)}B(P,M);P.prototype.b=function(){return this.s("brightness")};P.prototype.getBrightness=P.prototype.b;P.prototype.c=function(){return this.s("contrast")};P.prototype.getContrast=P.prototype.c;P.prototype.d=function(){return this.s("hue")};
|
|
P.prototype.getHue=P.prototype.d;P.prototype.e=function(){return this.s("opacity")};P.prototype.getOpacity=P.prototype.e;P.prototype.f=function(){return this.s("saturation")};P.prototype.getSaturation=P.prototype.f;P.prototype.W=n("g");P.prototype.a=function(){return this.s("visible")};P.prototype.getVisible=P.prototype.a;P.prototype.J=function(){K(this,"load")};P.prototype.j=function(a){a=Eb(a,-1,1);a!=this.b()&&this.q("brightness",a)};P.prototype.setBrightness=P.prototype.j;
|
|
P.prototype.p=function(a){a=Math.max(0,a);a!=this.c()&&this.q("contrast",a)};P.prototype.setContrast=P.prototype.p;P.prototype.t=function(a){a!=this.d()&&this.q("hue",a)};P.prototype.setHue=P.prototype.t;P.prototype.A=function(a){a=Eb(a,0,1);a!=this.e()&&this.q("opacity",a)};P.prototype.setOpacity=P.prototype.A;P.prototype.F=function(a){a=Math.max(0,a);a!=this.f()&&this.q("saturation",a)};P.prototype.setSaturation=P.prototype.F;P.prototype.G=function(a){a=!!a;a!=this.a()&&this.q("visible",a)};
|
|
P.prototype.setVisible=P.prototype.G;function Qe(a){return 3*a*a-2*a*a*a};function Re(){M.call(this);this.e=[0,0]}B(Re,M);function Se(a,b){a.e[1]+=b};var Te={pc:aa(),Jc:function(a){return 0.5>a?Qe(2*a):1-Qe(2*(a-0.5))},ad:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Ab:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}};var Ue={Ab:function(a){var b=a.resolution,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:Te.Jc;return function(a,g){if(g.time<c)return g.P=i,g.B[0]+=1,i;if(g.time<c+d){var j=e((g.time-c)/d),m=b-g.u.resolution;g.P=i;g.u.resolution+=j*m;g.B[0]+=1;return i}return l}},Ja:function(a){var b=a.source,c=x(a.start)?a.start:pa(),d=b.x,e=b.y,f=x(a.duration)?a.duration:1E3,g=x(a.easing)?a.easing:Qe;return function(a,b){if(b.time<c)return b.P=i,b.B[0]+=1,i;if(b.time<c+f){var r=
|
|
1-g((b.time-c)/f),s=d-b.u.center.x,q=e-b.u.center.y;b.P=i;b.u.center.x+=r*s;b.u.center.y+=r*q;b.B[0]+=1;return i}return l}},rotate:function(a){var b=a.rotation,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:Qe;return function(a,g){if(g.time<c)return g.P=i,g.B[0]+=1,i;if(g.time<c+d){var j=1-e((g.time-c)/d),m=b-g.u.rotation;g.P=i;g.u.rotation+=j*m;g.B[0]+=1;return i}return l}},zoom:function(a){var b=a.resolution,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,
|
|
e=x(a.easing)?a.easing:Te.pc;return function(a,g){if(g.time<c)return g.P=i,g.B[0]+=1,i;if(g.time<c+d){var j=1-e((g.time-c)/d),m=b-g.u.resolution;g.P=i;g.u.resolution+=j*m;g.B[0]+=1;return i}return l}}};function Ve(a,b,c){this.e=a;this.d=b;this.f=c;this.a=[];this.b=this.c=0}function We(a){for(var b=pa(),c=a.a.length-1,d=c-1;0<=d&&a.a[d].Na>b-a.f;)d--;if(0<=d){var b=a.a[d],c=a.a[c],d=c.x-b.x,e=c.y-b.y;a.c=Math.atan2(e,d);a.b=Math.sqrt(d*d+e*e)/(c.Na-b.Na);return a.b>a.d}return l}Ve.prototype.Ja=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return Ue.Ja({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Xe(a,b,c){ec.call(this,a);this.map=b;this.ab=l;this.b=x(c)?c:k}B(Xe,ec);Xe.prototype.C=function(){Xe.v.C.call(this);this.ab=i};function Ye(a,b){Gb.call(this,a,b)}B(Ye,Gb);function Ze(a,b,c,d){Xe.call(this,a,b,d);this.a=c;this.f=this.e=k}B(Ze,Xe);Ze.prototype.d=function(){this.e===k&&(this.e=$e(this.map,af(this)));return this.e};function af(a){if(a.f===k){var b=Fc(a.a,a.map.b);a.f=new Ye(b.x,b.y)}return a.f}
|
|
function bf(a){this.a=a;this.e=k;this.b=l;this.c=this.g=this.d=this.j=this.l=this.f=k;a=this.a.b;this.l=H(a,["click","dblclick"],this.dc,l,this);this.j=H(a,"mousedown",this.zd,l,this);this.g=[H(a,["touchstart","MSPointerDown"],this.Jd,l,this),H(a,["touchmove","MSPointerMove"],this.Id,l,this),H(a,["touchend","MSPointerUp"],this.Hd,l,this)]}B(bf,jd);p=bf.prototype;p.dc=function(a){if(!this.b){var b=a.type;K(this,0==this.f||"dblclick"==b?new Ze(cf,this.a,a):new Ze(df,this.a,a))}};
|
|
p.Bd=function(a){this.e&&(this.c=k,C(this.d,J),this.e=this.d=k,this.b&&K(this,new Ze(ef,this.a,a)))};p.zd=function(a){K(this,new Ze(ff,this.a,a));this.e||(this.c=a,this.e={clientX:a.clientX,clientY:a.clientY},this.b=l,this.d=[H(document,"mousemove",this.Ad,l,this),H(document,"mouseup",this.Bd,l,this)],a.C())};p.Ad=function(a){var b;this.b||(this.b=i,b=new Ze(gf,this.a,this.c),K(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new Ze(hf,this.a,a);K(this,b)};
|
|
p.Jd=function(a){a.C();this.c=a;this.b=l;K(this,new Ze(jf,this.a,a))};p.Id=function(a){this.b=i;K(this,new Ze(kf,this.a,a))};p.Hd=function(a){K(this,new Ze(lf,this.a,a));this.b||(a=pa(),this.f=!this.f||250<a-this.f?a:0,this.dc(this.c));this.c=k};p.r=function(){J(this.l);J(this.j);this.d!==k&&(C(this.d,J),this.d=k);this.g!==k&&(C(this.g,J),this.g=k);bf.v.r.call(this)};
|
|
var df="click",cf="dblclick",ff="down",gf="dragstart",hf="drag",ef="dragend",jf="touchstart",kf="touchmove",lf="touchend",mf={ee:df,fe:cf,he:ff,ke:gf,ie:hf,je:ef,Ne:jf,Me:kf,Le:lf};function nf(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d<c;++d){if(a[d]==b)return d;if(a[d]<b)return a[d-1]-b<b-a[d]?d-1:d}}return c-1};function of(a,b){if(x(a))return a+b};function pf(a){this.resolution=a;this.rotation=of};function R(a){Re.call(this);var a=a||{},b={};b.center=x(a.center)?a.center:k;b.projection=Le(a.projection);if(x(a.resolution))b.resolution=a.resolution;else if(x(a.zoom)){var c=b.projection.H(),c=Math.max(c.m-c.h,c.k-c.i);b.resolution=c/(256*Math.pow(2,a.zoom))}b.rotation=a.rotation;this.lb(b);if(x(a.resolutions))var d=a.resolutions,a=function(a,b){if(x(a)){var c=nf(d,a),c=Eb(c+b,0,d.length-1);return d[c]}};else{x(a.maxResolution)&&x(a.numZoomLevels)&&x(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,
|
|
a=a.zoomFactor):(a=Le(a.projection).H(),b=Math.max(a.m-a.h,a.k-a.i)/256,c=116,a=Math.exp(Math.log(2)/4));var e=a,f=b,g=c-1,a=function(a,b){if(x(a)){var c=Math.floor(Math.log(f/a)/Math.log(e)+0.5),c=Math.max(c+b,0);x(g)&&(c=Math.min(c,g));return f/Math.pow(e,c)}}}this.b=new pf(a)}B(R,Re);R.prototype.S=function(){return this.s("center")};R.prototype.getCenter=R.prototype.S;
|
|
R.prototype.H=function(a){var b=this.S(),c=this.T();return new Zd(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};R.prototype.wc=function(){return this.s("projection")};R.prototype.getProjection=R.prototype.wc;R.prototype.T=function(){return this.s("resolution")};R.prototype.getResolution=R.prototype.T;R.prototype.ka=function(){return this.s("rotation")||0};R.prototype.getRotation=R.prototype.ka;R.prototype.Ga=function(){return this.S()!=k&&x(this.T())};
|
|
R.prototype.a=function(a){this.q("center",a)};R.prototype.setCenter=R.prototype.a;R.prototype.f=function(a){this.q("projection",a)};R.prototype.setProjection=R.prototype.f;R.prototype.c=function(a){this.q("resolution",a)};R.prototype.setResolution=R.prototype.c;R.prototype.d=function(a){this.q("rotation",a)};R.prototype.setRotation=R.prototype.d;
|
|
R.prototype.rotate=function(a,b,c){b=this.b.rotation(b,0);if(c!=k){var d=this.S(),e=new L(d.x-c.x,d.y-c.y);e.rotate(b-this.ka());e.x+=c.x;e.y+=c.y;qf(a,function(){this.a(e);this.d(b)},this)}else this.d(b)};function rf(a,b,c,d){if(c!=k&&d!=k){var e=a.S(),f=a.T(),g=new L(d.x-c*(d.x-e.x)/f,d.y-c*(d.y-e.y)/f);qf(b,function(){this.a(g);this.c(c)},a)}else a.c(c)}
|
|
R.prototype.zoom=function(a,b,c,d){var e=this.T();x(e)&&x(d)&&(sf(a),a.j(Ue.zoom({resolution:e,duration:d})));b=this.b.resolution(e,b);rf(this,a,b,c)};function tf(a){Zb.call(this);this.element=x(a.element)?a.element:k;this.p=a.target;this.b=k;x(a.map)&&this.a(a.map)}B(tf,Zb);tf.prototype.r=function(){Ub(this.element);tf.v.r.call(this)};tf.prototype.a=function(a){this.b===k||Ub(this.element);this.b=a;this.b!==k&&(x(this.p)?this.p:a.A).appendChild(this.element)};function uf(a){this.g=Qb("UL");var b=Ob("DIV",{"class":"ol-attribution ol-unselectable"},this.g);tf.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}B(uf,tf);
|
|
uf.prototype.l=function(a){var b=a.b;if(b===k)this.f&&(Ic(this.element,l),this.f=l);else{var c={},d={},a=this.b.t();x(a)&&a.forEach(function(a){a=a.W();d[y(a).toString()]=a;a=a.ja();if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],t=y(b).toString(),c[t]=i}});var e=b.attributions,a={},f;for(f in e)a[f]=e[f];f=b.Oa;var b={},g,j,m,r,s;for(s in f)if(e=d[s],r=e.ja(),r!==k){g=f[s];for(e=0;e<r.length;++e)if(j=r[e],m=y(j).toString(),!(m in b)){var q;a:if(j.a===k)q=i;else{var v=q=h,u=h;for(u in g)if(u in j.a){v=
|
|
g[u];for(q=0;q<j.a[u].length;++q)if(Yd(j.a[u][q],v)){q=i;break a}}q=l}q&&(b[m]=j)}}Ua(a,b);s=Aa(Ma(a),Number);Ia(s);var t;for(f=0;f<s.length;++f)t=s[f].toString(),t in this.c?this.d[t]||(Ic(this.c[t],i),this.d[t]=i):(b=Qb("LI"),b.innerHTML=a[t].b,this.g.appendChild(b),this.c[t]=b,this.d[t]=i),delete c[t];for(t in c)Ub(this.c[t]),delete this.c[t],delete this.d[t];a=0!=s.length;this.f!=a&&(Ic(this.element,a),this.f=a)}};
|
|
uf.prototype.a=function(a){this.e!==k&&(C(this.e,J),this.e=k);uf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.l,l,this)])};var vf={Oc:"degrees",ne:"imperial",re:"nautical",qe:"metric",Oe:"us"};function wf(a){a=a||{};this.g=Ob("DIV",{"class":"ol-scale-line-inner"});this.j=Ob("DIV",{"class":"ol-scale-line ol-unselectable"},this.g);this.l=x(a.minWidth)?a.minWidth:64;this.c=x(a.units)?a.units:"metric";this.e=k;this.f=l;this.t="";this.d=k;tf.call(this,{element:this.j,map:a.map,target:a.target})}B(wf,tf);var xf=[1,2,5];
|
|
wf.prototype.A=function(a){a=a.b;if(a===k)this.f&&(Ic(this.j,l),this.f=l);else{var a=a.u,b=a.center,c=a.projection,a=c.b(a.resolution,b),d=c.e;"degrees"==d&&("metric"==this.c||"imperial"==this.c)?(this.d=k,b=Math.cos(b.y*Math.PI/180),a*=Math.PI*b*ye.a/180):"m"==d&&"degrees"==this.c?(this.d===k&&(this.d=Ce(c,Me("EPSG:4326"))),b=[b.x,b.y],b=this.d(b,b,2),b=Math.cos(b[1]*Math.PI/180),a*=180/(Math.PI*b*ye.a)):this.d=k;c=this.l*a;b="";"degrees"==this.c?c<1/60?(b="\u2033",a*=3600):1>c?(b="\u2032",a*=60):
|
|
b="\u00b0":"imperial"==this.c?0.9144>c?(b="in",a/=0.0254):1609.344>c?(b="ft",a/=0.3048):(b="mi",a/=1609.344):"nautical"==this.c?(a/=1852,b="nm"):"metric"==this.c?1>c?(b="mm",a*=1E3):1E3>c?b="m":(b="km",a/=1E3):"us"==this.c&&(0.9144>c?(b="in",a*=39.37):1609.344>c?(b="ft",a/=0.30480061):(b="mi",a/=1609.3472));for(var c=3*Math.floor(Math.log(this.l*a)/Math.log(10)),e,f;;){e=xf[c%3]*Math.pow(10,Math.floor(c/3));f=Math.round(e/a);if(f>=this.l)break;++c}e=e+b;this.t!=e&&(this.t=this.g.innerHTML=e);this.F!=
|
|
f&&(this.g.style.width=f+"px",this.F=f);this.f||(Ic(this.j,i),this.f=i)}};wf.prototype.a=function(a){this.e!==k&&(C(this.e,J),this.e=k);wf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.A,l,this)])};function yf(a){var b=Ob("A",{href:"#zoomIn","class":"ol-zoom-in"});H(b,["touchend","click"],this.d,l,this);var c=Ob("A",{href:"#zoomOut","class":"ol-zoom-out"});H(c,["touchend","click"],this.e,l,this);b=Ob("DIV","ol-zoom ol-unselectable",b,c);tf.call(this,{element:b,map:a.map,target:a.target});this.c=x(a.delta)?a.delta:1}B(yf,tf);yf.prototype.d=function(a){a.C();a=this.b;sf(a);a.a().zoom(a,this.c,h,250)};yf.prototype.e=function(a){a.C();a=this.b;sf(a);a.a().zoom(a,-this.c,h,250)};function zf(){};function Af(a){this.a=a}B(Af,zf);Af.prototype.oa=function(a){var b=a.a;if(a.type==cf&&(Kd||kc(a.a))){var c=a.map,d=a.d(),e=a.a.ma?-this.a:this.a;c.a().zoom(c,e,d);a.C();b.C()}};function Bf(a){return a.ba&&!a.ob&&a.ma}function Cf(a){return!a.ba&&!a.ob&&!a.ma}function Df(a){return!a.ba&&!a.ob&&a.ma};function Ef(){this.e=l;this.p=this.na=this.l=this.g=0;this.Ma=this.f=k}B(Ef,zf);p=Ef.prototype;p.Gb=ba;p.Hb=ba;p.bb=ld;p.nc=ba;p.oa=function(a){var b=a.map;if(b.Ga()){var b=b.a(),c=a.a;a.type==ff&&this.nc(a);this.e?a.type==hf?(this.d=c.clientX-this.g,this.b=c.clientY-this.l,this.Gb(a)):a.type==ef&&(this.d=c.clientX-this.g,this.b=c.clientY-this.l,this.Hb(a),this.e=l):a.type==gf&&(this.g=c.clientX,this.l=c.clientY,this.b=this.d=0,this.f=b.S(),this.Ma=a.d(),this.bb(a)&&(this.e=i,a.C()))}};function Ff(a,b){Ef.call(this);this.j=a;this.a=b;this.c=k}B(Ff,Ef);Ff.prototype.Gb=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,Na:pa()});var a=a.map,b=a.a(),c=b.T(),d=b.ka(),c=new L(-c*this.d,c*this.b);c.rotate(d);d=new L(this.f.x+c.x,this.f.y+c.y);sf(a);b.a(d)};
|
|
Ff.prototype.Hb=function(a){var b=a.map,a=b.a();Se(a,-1);if(this.a&&We(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.S();this.c=this.a.Ja(e);b.j(this.c);e=Gf(b,e);b=$e(b,new Ye(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};Ff.prototype.bb=function(a){var b=a.a;if(this.j(b)){if(this.a){var c=this.a;c.a.length=0;c.c=0;c.b=0;this.a.a.push({x:b.clientX,y:b.clientY,Na:pa()})}a=a.map;sf(a);Se(a.a(),1);return i}return l};
|
|
Ff.prototype.nc=function(a){var b=a.map,c=b.a();this.c!==k&&Da(b.g,this.c)&&(sf(b),c.a(a.b.u.center),this.c=k)};function Hf(a){Ef.call(this);this.c=a}B(Hf,Ef);Hf.prototype.Gb=function(a){var b=a.map,c=b.e(),a=af(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(x(this.a)){var a=c-this.a,d=b.a();sf(b);d.rotate(b,d.ka()-a)}this.a=c};Hf.prototype.bb=function(a){var b=a.a;return kc(b)&&this.c(b)?(a=a.map,a.a(),sf(a),this.a=h,i):l};function If(a){var b=Ob("DIV","ol-dragbox");this.c=k;this.e=a.Ma;this.d=k;tf.call(this,{element:b,map:a.map})}B(If,tf);If.prototype.a=function(a){this.d!==k&&(J(this.d),this.d=k);a!==k&&(this.c=Gf(a,this.e),Bc(this.element,this.c),Jc(this.element,new Wd(0,0)),this.d=H(a,hf,this.f,l,this));If.v.a.call(this,a)};If.prototype.f=function(a){var b=this.b,a=a.d(),b=Gf(b,a);Bc(this.element,new Ye(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Jc(this.element,new Wd(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Jf(a){Ef.call(this);this.c=a;this.a=k}B(Jf,Ef);Jf.prototype.Hb=function(a){this.a.a(k);this.a=k;if(64<=this.d*this.d+this.b*this.b){var b=a.map,c=$d(this.Ma,a.d());qf(b,function(){var a=b.a(),e=b.e();a.a(new L((c.h+c.m)/2,(c.i+c.k)/2));e=Math.max((c.m-c.h)/e.width,(c.k-c.i)/e.height);e=a.b.resolution(e,0);a.c(e);a.d(0)})}};Jf.prototype.bb=function(a){var b=a.a;return kc(b)&&this.c(b)?(this.a=new If({map:a.map,Ma:this.Ma}),i):l};function Kf(a){this.a=a}B(Kf,zf);Kf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.va;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.T()*this.a,c=40==c?new L(0,-e):37==c?new L(-e,0):39==c?new L(e,0):new L(0,e),e=d.S();d.a(new L(e.x+c.x,e.y+c.y));b.C();a.C()}}};function Lf(){}B(Lf,zf);Lf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.Za;if(43==c||45==c){var d=a.map,c=43==c?4:-4;sf(d);d.a().zoom(d,c,h,100);b.C();a.C()}}};function Mf(a){this.a=a}B(Mf,zf);Mf.prototype.oa=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a,d=a.d(),e=0>c.b?this.a:-this.a,f=b.a();sf(b);f.zoom(b,e,d);a.C();c.C()}};function Nf(){this.g=l;this.l={};this.targetTouches=[]}B(Nf,zf);function Of(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return new Ye(c/b,d/b)}Nf.prototype.e=ba;Nf.prototype.d=ld;Nf.prototype.f=ld;Nf.prototype.oa=function(a){var b=a.a.K;x(b.targetTouches)?this.targetTouches=b.targetTouches:(a.type==lf?delete this.l[b.pointerId]:this.l[b.pointerId]=b,this.targetTouches=La(this.l));this.g&&(a.type==kf?this.e(a):a.type==lf&&(this.g=this.d(a)));a.type==jf&&(this.g=this.f(a))};function Pf(a){Nf.call(this);this.a=a;this.b=this.c=k}B(Pf,Nf);Pf.prototype.e=function(a){var b=Of(this.targetTouches);if(this.b!==k){this.a&&this.a.a.push({x:b.x,y:b.y,Na:pa()});var c=this.b.x-b.x,d=b.y-this.b.y,a=a.map.a(),c=new L(c,d),d=a.T();c.x*=d;c.y*=d;c=c.rotate(a.ka()).add(a.S());a.a(c)}this.b=b};
|
|
Pf.prototype.d=function(a){var b=a.map,a=b.a();if(0==this.targetTouches.length){Se(a,-1);if(this.a&&We(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.S();this.c=this.a.Ja(e);b.j(this.c);e=Gf(b,e);b=$e(b,new Ye(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}return l}this.b=k;return i};Pf.prototype.f=function(a){if(1<=this.targetTouches.length){var b=a.map,c=b.a();this.b=k;this.c!==k&&Da(b.g,this.c)&&(sf(b),c.a(a.b.u.center),this.c=k);this.a&&(a=this.a,a.a.length=0,a.c=0,a.b=0);Se(c,1);return i}return l};function Qf(a){Nf.call(this);this.a=l;this.b=0;this.j=x(a)?a:0.3}B(Qf,Nf);Qf.prototype.e=function(a){var b=0,c=this.targetTouches[0],d=this.targetTouches[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);x(this.c)&&(b=c-this.c,this.b+=b,!this.a&&Math.abs(this.b)>this.j&&(this.a=i));this.c=c;var a=a.map,c=a.a(),d=Gc(a.b),e=Of(this.targetTouches);e.x-=d.x;e.y-=d.y;d=$e(a,e);this.a&&c.rotate(a,c.ka()+b,d)};Qf.prototype.d=function(a){return 2>this.targetTouches.length?(Se(a.map.a(),-1),l):i};
|
|
Qf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=h,this.a=l,this.b=0,Se(a,1),i):l};function Rf(){Nf.call(this)}B(Rf,Nf);Rf.prototype.e=function(a){var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);x(this.a)&&(b=this.a/e);this.a=e;a=a.map;e=a.a();c=Gc(a.b);d=Of(this.targetTouches);d.x-=c.x;d.y-=c.y;c=$e(a,d);rf(e,a,e.T()*b,c)};Rf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a(),c=b.T(),c=b.b.resolution(c,0);rf(b,a,c,h);Se(b,-1);return l}return i};
|
|
Rf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=h,Se(a,1),i):l};function Sf(a){O.call(this,a,"m",Tf)}B(Sf,O);var Uf=6378137*Math.PI,Tf=new Zd(-Uf,-Uf,Uf,Uf),Vf=Aa(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Sf(a)});Sf.prototype.b=function(a,b){return a/((Math.exp(b.y/6378137)+Math.exp(-(b.y/6378137)))/2)};function Wf(a,b){O.call(this,a,"degrees",Xf,b)}B(Wf,O);var Xf=new Zd(-180,-90,180,90),Yf=[new Wf("CRS:84"),new Wf("EPSG:4326","neu"),new Wf("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Wf("urn:ogc:def:crs:OGC:1.3:CRS84")];Wf.prototype.b=aa();function Zf(a,b,c,d,e){this.f=e;this.g=a;this.l=c;this.e=b;this.b=new Image;d!==k&&(this.b.crossOrigin=d);this.d={};this.c=k;this.a=0}B(Zf,jd);Zf.prototype.ja=n("f");Zf.prototype.H=n("g");function $f(a,b){if(x(b)){var c,d=y(b);if(d in a.d)return a.d[d];c=Sa(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}Zf.prototype.j=function(){this.a=3;C(this.c,J);this.c=k;K(this,"change")};Zf.prototype.p=function(){this.a=2;C(this.c,J);this.c=k;K(this,"change")};
|
|
function ag(a){0==a.a&&(a.a=1,a.c=[sc(a.b,"error",a.j,l,a),sc(a.b,"load",a.p,l,a)],a.b.src=a.l)};function bg(a){this.a=a.resolutions;this.g=this.a.length;this.d=x(a.origin)?a.origin:k;this.f=k;x(a.origins)&&(this.f=a.origins);this.c=k;x(a.tileSizes)&&(this.c=a.tileSizes);this.e=x(a.tileSize)?a.tileSize:this.c===k?new Wd(256,256):k}bg.prototype.b=function(a,b,c){for(var d=cg(this,a),a=a.n-1;0<=a&&!b.call(c,a,dg(this,d,this.a[a]));)--a};function eg(a,b){return a.d===k?a.f[b]:a.d}bg.prototype.Db=n("a");
|
|
function dg(a,b,c){var d=fg(a,new L(b.h,b.i),c),a=fg(a,new L(b.m,b.k),c,i);return new qe(d.x,d.y,a.x,a.y)}function gg(a,b){var c=eg(a,b.n),d=a.a[b.n],e=hg(a,b.n);return new L(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function cg(a,b){var c=eg(a,b.n),d=a.a[b.n],e=hg(a,b.n),f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new Zd(f,c,f+e.width*d,c+e.height*d)}
|
|
function fg(a,b,c,d){var e=nf(a.a,c),f=c/a.a[e],g=eg(a,e),j=hg(a,e),a=f*(b.x-g.x)/(c*j.width),b=f*(b.y-g.y)/(c*j.height);d?(a=Math.ceil(a)-1,b=Math.ceil(b)-1):(a=Math.floor(a),b=Math.floor(b));return new oe(e,a,b)}function hg(a,b){return a.e===k?a.c[b]:a.e}
|
|
function ig(a){var b=a.f;if(b===k){for(var b=a.H(),c=Math.max(b.m-b.h,b.k-b.i),d=x(h)?h:new Wd(256,256),e=Array((x(h)?NaN:42)+1),c=c/d.width,f=0,g=e.length;f<g;++f)e[f]=c/Math.pow(2,f);b=new bg({origin:ae(b),resolutions:e,tileSize:d});a.f=b}return b};function jg(a){Pe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.G=x(a.X)?a.X:l;this.tileGrid=x(a.tileGrid)?a.tileGrid:k}B(jg,Pe);jg.prototype.f=ld;jg.prototype.d=function(a,b,c,d){var e=i,f,g,j,m;for(j=d.h;j<=d.m;++j)for(m=d.i;m<=d.k;++m)if(f=new oe(c,j,m),g=f.toString(),!a[c]||!a[c][g])f=b(f),f===k?e=l:(a[c]||(a[c]={}),a[c][g]=f);return e};jg.prototype.Db=function(){return this.tileGrid.Db()};
|
|
function kg(a,b,c,d){for(var e,f,g;0<=b;--b){e=dg(d,c,d.a[b]);for(f=e.h;f<=e.m;++f)for(g=e.i;g<=e.k;++g)a.p(b+"/"+f+"/"+g)}}jg.prototype.p=ba;function lg(a,b){M.call(this);this.p=a;this.a=b;H(this.a,Qd("brightness"),this.Jb,l,this);H(this.a,Qd("contrast"),this.Kb,l,this);H(this.a,Qd("hue"),this.Lb,l,this);H(this.a,"load",this.rd,l,this);H(this.a,Qd("opacity"),this.sd,l,this);H(this.a,Qd("saturation"),this.Mb,l,this);H(this.a,Qd("visible"),this.ud,l,this)}B(lg,M);function mg(a){K(a,"change")}p=lg.prototype;p.aa=n("p");p.Jb=ba;p.Kb=ba;p.Lb=ba;p.Ib=function(a){2===a.target.a&&sf(this.p.map)};p.rd=function(){mg(this)};p.sd=function(){mg(this)};
|
|
p.Mb=ba;p.ud=function(){mg(this)};p.Pb=function(a){2===a.target.a&&sf(this.p.map)};function ng(a,b){b.f()&&a.wa.push(oa(function(a,b,e){b=y(a).toString();a.Ba(e.Oa[b])},b))}function og(a,b){var c,d;for(c=0;c<b.length;++c)d=b[c],a[y(d).toString()]=d}function pg(a,b,c,d){b=y(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],a.h=Math.min(a.h,d.h),a.i=Math.min(a.i,d.i),a.m=Math.max(a.m,d.m),a.k=Math.max(a.k,d.k)):a[b][c]=d:(a[b]={},a[b][c]=d)}
|
|
function qg(a,b,c){b=y(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=i}function rg(a,b,c,d){return function(e){e=b.b(e,c,d);return a(e)?e:k}};function sg(a,b){Zb.call(this);this.qa=a;this.map=b;this.d={};this.F=H(b,Qd(tg),this.wd,l,this);this.e=k;this.t={}}B(sg,Zb);p=sg.prototype;p.ua=function(a){var b=this.Ta(a),a=y(a);this.d[a]=b;this.t[a]=H(b,"change",this.td,l,this)};
|
|
function ug(a){var b=a.u,c=a.fc;he(c);le(c,a.size.width/2,a.size.height/2);me(c,1/b.resolution,-1/b.resolution);ne(c,-b.rotation);le(c,-b.center.x,-b.center.y);var a=a.yc,b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],j=c[5],m=c[6],r=c[7],s=c[8],q=c[9],v=c[10],u=c[11],t=c[12],z=c[13],E=c[14],c=c[15],D=b*j-d*g,U=b*m-e*g,Q=b*r-f*g,I=d*m-e*j,Y=d*r-f*j,V=e*r-f*m,sa=s*z-q*t,Na=s*E-v*t,Oa=s*c-u*t,Pa=q*E-v*z,Qa=q*c-u*z,Ra=v*c-u*E,W=D*Ra-U*Qa+Q*Pa+I*Oa-Y*Na+V*sa;0!=W&&(W=1/W,a[0]=(j*Ra-m*Qa+r*Pa)*W,a[1]=(-d*Ra+e*Qa-
|
|
f*Pa)*W,a[2]=(z*V-E*Y+c*I)*W,a[3]=(-q*V+v*Y-u*I)*W,a[4]=(-g*Ra+m*Oa-r*Na)*W,a[5]=(b*Ra-e*Oa+f*Na)*W,a[6]=(-t*V+E*Q-c*U)*W,a[7]=(s*V-v*Q+u*U)*W,a[8]=(g*Qa-j*Oa+r*sa)*W,a[9]=(-b*Qa+d*Oa-f*sa)*W,a[10]=(t*Y-z*Q+c*D)*W,a[11]=(-s*Y+q*Q-u*D)*W,a[12]=(-g*Pa+j*Na-m*sa)*W,a[13]=(b*Pa-d*Na+e*sa)*W,a[14]=(-t*I+z*U-E*D)*W,a[15]=(s*I-q*U+v*D)*W)}p.Ta=function(a){return new lg(this,a)};p.r=function(){Ka(this.d,function(a){dc(a)});J(this.F);this.e===k||C(this.e,J);sg.v.r.call(this)};p.Wa=nd;
|
|
function vg(a,b){var c=y(b);return a.d[c]}p.td=function(){wg(this.map)};p.vd=function(a){this.ua(a.a)};p.wd=function(){cc(La(this.d));this.d={};this.e!==k&&(C(this.e,J),this.e=k);var a=this.map.t();a!=k&&(a.forEach(this.ua,this),this.e=[H(a,"add",this.vd,l,this),H(a,"remove",this.xd,l,this)])};p.xd=function(a){this.Rb(a.a)};p.Rb=function(a){a=y(a);if(a in this.d){var b=this.d[a];delete this.d[a];J(this.t[a]);delete this.t[a];a=b}else a=k;dc(a)};p.mb=ba;function xg(a,b,c,d,e,f){var g=x(f)?f:"1.3.0",f="1.3"<=g,j=e.c,c={SERVICE:"WMS",VERSION:g,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:i,WIDTH:d.width,HEIGHT:d.height,BBOX:(f&&"ne"==j.substr(0,2)?[c.i,c.h,c.k,c.m]:[c.h,c.i,c.m,c.k]).join(",")};Ua(c,b);c[f?"CRS":"SRS"]=e.a;c.STYLES=b.STYLES||new String("");var a=[a],m;for(m in c)Qc(m,c[m],a);a[1]&&(m=a[0],b=m.indexOf("#"),0<=b&&(a.push(m.substr(b)),a[0]=m=m.substr(0,b)),b=m.indexOf("?"),0>b?a[1]="?":b==m.length-1&&(a[1]=h));return a.join("")};function yg(a,b,c){return function(d,e,f){return xg(a,b,d,e,f,c)}}function zg(){};function Ag(a){Pe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Fa=x(a.Fa)?a.Fa:zg;this.d=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=x(a.resolutions)?a.resolutions:k}B(Ag,Pe);function Bg(a,b,c,d,e){var f=k,d=a.Fa(b,d,e);x(d)&&(f=new Zf(b,c,d,a.d,a.ja()));return f};function Cg(a){P.call(this,a)}B(Cg,P);function Dg(a){P.call(this,a)}B(Dg,P);function Eg(a,b){lg.call(this,a,b)}B(Eg,lg);function Fg(a,b){lg.call(this,a,b);this.b=k;this.c=de()}B(Fg,Eg);Fg.prototype.I=function(){return this.b===k?k:$f(this.b,this)};Fg.prototype.J=n("c");
|
|
Fg.prototype.ga=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.a.W(),g=a.B;!g[0]&&!g[1]&&(b=f.I(a.extent,d,b.projection),b!==k&&(f=b.a,0==f?(sc(b,"change",this.Ib,l,this),ag(b)):2==f&&(this.b=b)));if(this.b!==k){var b=this.b,f=b.H(),g=b.e,j=this.c;he(j);le(j,a.size.width/2,a.size.height/2);ne(j,e);me(j,g/d,g/d);le(j,(f.h-c.x)/g,(c.y-f.k)/g);og(a.attributions,b.ja())}};function Gg(a,b){lg.call(this,a,b);this.e=this.c=this.d=k;this.f=de();this.b=k}B(Gg,Eg);Gg.prototype.I=n("d");Gg.prototype.J=n("f");
|
|
Gg.prototype.ga=function(a){var b=a.u,c=b.projection,d=this.a.W(),e=y(d).toString(),f=d.tileGrid;f===k&&(f=ig(c));var g=nf(f.a,b.resolution),j=hg(f,g),m=f.a[g],r=dg(f,a.extent,m),s=r.da(),q=r.$(),j=new Wd(j.width*s,j.height*q),v,u;this.d===k?(v=Qb("CANVAS"),v.width=j.width,v.height=j.height,u=v.getContext("2d"),this.d=v,this.c=j,this.e=u,this.b=Array(s*q)):(v=this.d,u=this.e,this.c.width==j.width&&this.c.height==j.height||(v.width=j.width,v.height=j.height,this.c=j,this.b=Array(s*q)));q={};q[g]={};
|
|
var j=na(d.d,d,q,rg(function(a){return a!==k&&2==a.a},d,f,c)),t,z,E,D;for(E=r.h;E<=r.m;++E)for(D=r.i;D<=r.k;++D)if(z=new oe(g,E,D),t=d.b(z,f,c),t!==k){v=t.a;if(0==v)sc(t,"change",this.Pb,l,this),qg(a.Pa,d,z),v=gg(f,z),ue(a.Ub,t,e,v);else if(2==v){q[g][z.toString()]=t;continue}else if(3==v)continue;f.b(z,j)}e=Aa(Ma(q),Number);Ia(e);v=d.G;var c=ae(cg(f,new oe(g,r.h,r.k))),U,Q,I,Y,V,sa;for(U=0;U<e.length;++U)if(t=e[U],j=hg(f,t),Y=q[t],t==g)for(Q in Y)t=Y[Q],z=t.U,z=(z.y-r.i)*s+(z.x-r.h),this.b[z]!=t&&
|
|
(E=j.width*(t.U.x-r.h),D=j.height*(r.k-t.U.y),v||u.clearRect(E,D,j.width,j.height),u.drawImage(t.I(),E,D),this.b[z]=t);else for(Q in z=f.a[t]/m,Y){t=Y[Q];I=cg(f,t.U);E=(I.h-c.x)/m;D=(c.y-I.k)/m;sa=z*j.width;V=z*j.height;v||u.clearRect(E,D,sa,V);u.drawImage(t.I(),E,D,sa,V);D=dg(f,I,f.a[g]);I=Math.max(D.h,r.h);t=Math.min(D.m,r.m);E=Math.max(D.i,r.i);for(D=Math.min(D.k,r.k);I<=t;++I)for(V=E;V<=D;++V)this.b[(V-r.i)*s+(I-r.h)]=h}pg(a.Oa,d,g,r);kg(d,g,a.extent,f);ng(a,d);d=this.f;he(d);le(d,a.size.width/
|
|
2,a.size.height/2);ne(d,b.rotation);me(d,m/b.resolution,m/b.resolution);le(d,(c.x-b.center.x)/m,(b.center.y-c.y)/m)};function Hg(a,b){sg.call(this,a,b);this.f=new Wd(a.clientHeight,a.clientWidth);this.c=Qb("CANVAS");this.c.height=this.f.height;this.c.width=this.f.width;this.c.className="ol-unselectable";Tb(a,this.c);this.g=i;this.l=this.c.getContext("2d")}B(Hg,sg);Hg.prototype.Ta=function(a){return a instanceof Cg?new Fg(this,a):a instanceof Dg?new Gg(this,a):k};Hg.prototype.Wa=n("c");
|
|
Hg.prototype.mb=function(a){if(a===k)this.g&&(Ic(this.c,l),this.g=l);else{var b=a.size;this.f.width==b.width&&this.f.height==b.height||(this.c.width=b.width,this.c.height=b.height,this.f=b);var c=this.l;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.c.toFixed(0)+","+d.b.toFixed(0)+","+d.a.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);C(a.hb,function(b){var d=a.gb[y(b)];if(d.visible)if(d.qb){var g=vg(this,b);g.ga(a,d);b=g.I();b!==k&&(g=g.J(),c.setTransform(g[0],
|
|
g[1],g[4],g[5],g[12],g[13]),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.P=i},this);this.g||(Ic(this.c,i),this.g=i);ug(a)}};var Ig=function(){if(!("HTMLCanvasElement"in w))return l;try{return Qb("CANVAS").getContext("2d")!==k}catch(a){return l}}();function Jg(a,b){var c;if(x(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Kg(a,b,c){lg.call(this,a,b);this.target=c}B(Kg,lg);Kg.prototype.r=function(){Ub(this.target);Kg.v.r.call(this)};function Lg(a,b){var c=Qb("DIV");c.className="ol-layer-image";c.style.position="absolute";Kg.call(this,a,b,c);this.b=k;this.c=fe()}B(Lg,Kg);
|
|
Lg.prototype.ga=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.b,g=this.a.W(),j=a.B;!j[0]&&!j[1]&&(b=g.I(a.extent,d,b.projection),b!==k&&(g=b.a,0==g?(sc(b,"change",this.Ib,l,this),ag(b)):2==g&&(f=b)));f!==k&&(g=f.H(),j=f.e,b=de(),he(b),le(b,a.size.width/2,a.size.height/2),ne(b,e),me(b,j/d,j/d),le(b,(g.h-c.x)/j,(c.y-g.k)/j),f!=this.b&&(c=$f(f,this),c.style.position="absolute",Sb(this.target),this.target.appendChild(c),this.b=f),je(b,this.c)||(Jg(this.target,b),ge(this.c,b)),og(a.attributions,
|
|
f.ja()))};function Mg(a,b){var c=Qb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Kg.call(this,a,b,c);this.c=i;this.d=1;this.b={}}B(Mg,Kg);
|
|
Mg.prototype.ga=function(a,b){if(b.visible){var c=a.u,d=c.projection,e=this.a.W(),f=y(e).toString(),g=e.tileGrid;g===k&&(g=ig(d));var j=nf(g.a,c.resolution),m=dg(g,a.extent,g.a[j]),r={};r[j]={};var s=na(e.d,e,r,rg(function(a){return a!==k&&2==a.a},e,g,d)),q,v,u,t,z;for(t=m.h;t<=m.m;++t)for(z=m.i;z<=m.k;++z)if(u=new oe(j,t,z),q=e.b(u,g,d),q!==k){v=q.a;if(0==v)sc(q,"change",this.Pb,l,this),qg(a.Pa,e,u),v=gg(g,u),ue(a.Ub,q,f,v);else if(2==v){r[j][u.toString()]=q;continue}else if(3==v)continue;g.b(u,
|
|
s)}s=Aa(Ma(r),Number);Ia(s);var d={},E;for(q=0;q<s.length;++q){u=s[q];u in this.b?f=this.b[u]:(f=fg(g,c.center,g.a[u]),f=new Ng(g,f),d[u]=i,this.b[u]=f);u=r[u];for(E in u){t=f;z=u[E];v=z.U;var D=v.toString();if(!(D in t.b)){var U=hg(t.d,v.n),Q=z.I(t),I=Q.style;I.position="absolute";I.left=(v.x-t.c.x)*U.width+"px";I.top=(t.c.y-v.y)*U.height+"px";t.a===k&&(t.a=document.createDocumentFragment());t.a.appendChild(Q);t.b[D]=z}}f.a!==k&&(f.target.appendChild(f.a),f.a=k)}E=Aa(Ma(this.b),Number);Ia(E);q=de();
|
|
for(s=0;s<E.length;++s)if(u=E[s],f=this.b[u],u in r)if(z=f.g,t=f.f,he(q),le(q,a.size.width/2,a.size.height/2),ne(q,c.rotation),me(q,z/c.resolution,z/c.resolution),le(q,(t.x-c.center.x)/z,(c.center.y-t.y)/z),t=f,z=q,je(z,t.e)||(Jg(t.target,z),ge(t.e,z)),u in d){for(u-=1;0<=u;--u)if(u in this.b){t=this.b[u].target;t.parentNode&&t.parentNode.insertBefore(f.target,t.nextSibling);break}0>u&&Tb(this.target,f.target)}else{if(!a.B[0]&&!a.B[1]){v=dg(f.d,a.extent,f.d.a[f.c.n]);u=[];z=t=h;for(z in f.b)t=f.b[z],
|
|
v.contains(t.U)||u.push(t);v=h;for(v=0;v<u.length;++v)t=u[v],z=t.U.toString(),Ub(t.I(f)),delete f.b[z]}}else Ub(f.target),delete this.b[u];b.opacity!=this.d&&(c=b.opacity,r=this.target.style,"opacity"in r?r.opacity=c:"MozOpacity"in r?r.MozOpacity=c:"filter"in r&&(r.filter=""===c?"":"alpha(opacity="+100*c+")"),this.d=b.opacity);b.visible&&!this.c&&(Ic(this.target,i),this.c=i);pg(a.Oa,e,j,m);kg(e,j,a.extent,g);ng(a,e)}else this.c&&(Ic(this.target,l),this.c=l)};
|
|
function Ng(a,b){this.target=Qb("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=ae(cg(a,b));this.g=a.a[b.n];this.b={};this.a=k;this.e=fe()};function Og(a,b){sg.call(this,a,b);this.c=Qb("DIV");this.c.className="ol-layers ol-unselectable";var c=this.c.style;c.position="absolute";c.width="100%";c.height="100%";Tb(a,this.c);this.f=i}B(Og,sg);Og.prototype.ua=function(a){Og.v.ua.call(this,a);wg(this.map)};Og.prototype.Ta=function(a){var b;a instanceof Dg?b=new Mg(this,a):a instanceof Cg&&(b=new Lg(this,a));this.c.appendChild(b.target);return b};
|
|
Og.prototype.mb=function(a){a===k?this.f&&(Ic(this.c,l),this.f=l):(C(a.hb,function(b){var c=a.gb[y(b)];c.qb&&vg(this,b).ga(a,c)},this),this.f||(Ic(this.c,i),this.f=i),ug(a))};function Pg(a){this.a=a}Pg.prototype.W=n("a");function Qg(a){this.a=a}B(Qg,Pg);Qg.prototype.b=function(){return 35632};function Rg(a){this.a=a}B(Rg,Pg);Rg.prototype.b=function(){return 35633};function Sg(a,b){lg.call(this,a,b);this.A=new Float32Array(16);this.G=new Float32Array(16);this.qa=new Float32Array(16);this.La=new Float32Array(16);this.F=new Float32Array(16);this.c=i;this.Jb();this.Kb();this.Lb();this.Mb()}B(Sg,lg);function Tg(a){if(a.c){var b=a.F;he(b);ie(b,a.G,b);ie(b,a.A,b);ie(b,a.La,b);ie(b,a.qa,b);a.c=l}return a.F}p=Sg.prototype;p.aa=function(){return Sg.v.aa.call(this)};p.Jb=function(){var a=this.a.b(),b=this.A;he(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;mg(this)};
|
|
p.Kb=function(){var a=this.a.c(),b=this.G;he(b);b[0]=a;b[5]=a;b[10]=a;b[15]=1;a=-0.5*a+0.5;b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;mg(this)};p.Lb=function(){var a=this.a.d(),b=Math.cos(a),a=Math.sin(a);ee(this.qa,0.213+0.787*b-0.213*a,0.213-0.213*b+0.143*a,0.213-0.213*b-0.787*a,0,0.715-0.715*b-0.715*a,0.715+0.285*b+0.14*a,0.715-0.715*b+0.715*a,0,0.072-0.072*b+0.928*a,0.072-0.072*b-0.283*a,0.072+0.928*b+0.072*a,0,0,0,0,1);this.c=i;mg(this)};
|
|
p.Mb=function(){var a=this.a.f();ee(this.La,0.213+0.787*a,0.213-0.213*a,0.213-0.213*a,0,0.715-0.715*a,0.715+0.285*a,0.715-0.715*a,0,0.072-0.072*a,0.072-0.072*a,0.072+0.928*a,0,0,0,0,1);this.c=i;mg(this)};p.Ea=ba;function Ug(a,b){Sg.call(this,a,b);this.b=this.d=k;this.f=fe();this.e=de()}B(Ug,Sg);p=Ug.prototype;p.r=function(){var a=this.aa().a;a.isContextLost()||a.deleteTexture(this.b);Ug.v.r.call(this)};p.jc=n("f");p.kc=n("b");p.ic=n("e");p.Ea=function(){this.b=k};
|
|
p.ga=function(a){var b=this.aa().a,c=a.u,d=c.center,e=c.resolution,f=c.rotation,g=this.d,j=this.b,m=this.a.W(),r=a.B;!r[0]&&!r[1]&&(c=m.I(a.extent,e,c.projection),c!==k&&(m=c.a,0==m?(sc(c,"change",this.Ib,l,this),ag(c)):2==m&&(g=c,j=$f(c,this),c=this.aa().a,m=c.createTexture(),c.bindTexture(3553,m),c.texImage2D(3553,0,6408,6408,5121,j),c.texParameteri(3553,10242,33071),c.texParameteri(3553,10243,33071),c.texParameteri(3553,10241,9729),c.texParameteri(3553,10240,9729),j=m,this.b===k||a.wa.push(oa(function(a,
|
|
b){a.isContextLost()||a.deleteTexture(b)},b,this.b)))));g!==k&&(m=this.aa().Wa(),b=g.H(),c=m.width*e,e*=m.height,m=this.e,he(m),me(m,2/c,2/e),ne(m,-f),le(m,b.h-d.x,b.i-d.y),me(m,b.da()/2,b.$()/2),le(m,1,1),d=this.f,he(d),me(d,1,-1),le(d,0,-1),this.d=g,this.b=j,og(a.attributions,g.ja()))};function Vg(a,b){this.L=a;this.Y=b}Vg.prototype.Q=function(){return new Vg(this.L,this.Y)};function Wg(a){this.a=[];if(a)a:{var b,c;if(a instanceof Wg){if(b=a.V(),c=a.M(),0>=a.Z()){for(var a=this.a,d=0;d<b.length;d++)a.push(new Vg(b[d],c[d]));break a}}else b=Ma(a),c=La(a);for(d=0;d<b.length;d++)Xg(this,b[d],c[d])}}function Xg(a,b,c){var d=a.a;d.push(new Vg(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].L>c.L)a[b]=a[d],b=d;else break;a[b]=c}p=Wg.prototype;
|
|
p.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ca(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,g=2*a+2,f=g<d&&b[g].L<b[f].L?g:f;if(b[f].L>e.L)break;b[a]=b[f];a=f}b[a]=e}return c.Y}};p.M=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Y);return b};p.V=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].L);return b};p.Q=function(){return new Wg(this)};p.Z=function(){return this.a.length};
|
|
p.Ha=function(){return 0==this.a.length};p.clear=function(){Ca(this.a)};function Yg(){Wg.call(this)}B(Yg,Wg);function Zg(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}B(Zg,Qg);ca(Zg);function $g(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nuniform vec4 uTileOffset;\n\nvoid main(void) {\n gl_Position.xy = aPosition * uTileOffset.xy + uTileOffset.zw;\n gl_Position.z = 0.;\n gl_Position.w = 1.;\n vTexCoord = aTexCoord;\n}"}B($g,Rg);ca($g);
|
|
function ah(a,b){Sg.call(this,a,b);this.vb=Zg.Xa();this.Qa=$g.Xa();this.e=this.g=this.f=this.z=k;this.j=h;this.d=de();this.xb=fe();this.t=this.b=k}B(ah,Sg);p=ah.prototype;p.r=function(){var a=this.aa().a;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));ah.v.r.call(this)};p.jc=n("d");p.kc=n("g");p.ic=n("xb");p.Ea=function(){this.e=this.g=this.f=this.z=k;this.j=h};
|
|
p.ga=function(a){var b=this.aa(),c=b.a,d=a.u,e=d.projection,f=d.center,g=this.a.W(),j=y(g).toString(),m=g.tileGrid;m===k&&(m=ig(e));var r=nf(m.a,d.resolution),s=m.a[r],q=dg(m,a.extent,s),v;if(this.b!==k&&this.b.h==q.h&&this.b.i==q.i&&this.b.m==q.m&&this.b.k==q.k)v=this.t;else{var u=new Wd(q.da(),q.$()),t=hg(m,r),u=Math.max(u.width*t.width,u.height*t.height),u=Math.pow(2,Math.ceil(Math.log(u)/Math.log(2))),z=new Wd(s*u,s*u),E=eg(m,r),D=E.x+q.h*t.width*s,s=E.y+q.i*t.height*s;v=new Zd(D,s,D+z.width,
|
|
s+z.height);s=this.aa().a;!x(this.j)||this.j!=u?(a.wa.push(oa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},s,this.e,this.g)),t=s.createTexture(),s.bindTexture(3553,t),s.texImage2D(3553,0,6408,u,u,0,6408,5121,k),s.texParameteri(3553,10240,9729),s.texParameteri(3553,10241,9729),D=s.createFramebuffer(),s.bindFramebuffer(36160,D),s.framebufferTexture2D(36160,36064,3553,t,0),this.g=t,this.e=D,this.j=u):s.bindFramebuffer(36160,this.e);c.viewport(0,0,u,u);c.clearColor(0,
|
|
0,0,0);c.clear(16384);c.disable(3042);u=bh(b,this.vb,this.Qa);c.useProgram(u);this.z===k&&(this.z={Yb:c.getAttribLocation(u,"aPosition"),Zb:c.getAttribLocation(u,"aTexCoord"),Ud:c.getUniformLocation(u,"uTileOffset"),Td:c.getUniformLocation(u,"uTexture")});this.f===k?(u=c.createBuffer(),c.bindBuffer(34962,u),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=u):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.z.Yb);c.vertexAttribPointer(this.z.Yb,2,5126,l,
|
|
16,0);c.enableVertexAttribArray(this.z.Zb);c.vertexAttribPointer(this.z.Zb,2,5126,l,16,8);c.uniform1i(this.z.Td,0);var U={};U[r]={};for(var s=na(g.d,g,U,rg(function(a){return a!==k&&2==a.a&&ch(b.b,a.c())},g,m,e)),u=new Yg,Q=i,I,Y,E=q.h;E<=q.m;++E)for(Y=q.i;Y<=q.k;++Y)if(D=new oe(r,E,Y),t=g.b(D,m,e),t!==k){I=t.a;if(0==I)sc(t,"change",this.Pb,l,this),qg(a.Pa,g,D),I=gg(m,D),ue(a.Ub,t,j,I);else if(2==I)if(ch(b.b,t.c())){U[r][D.toString()]=t;continue}else I=gg(m,D),Q=I.x-f.x,I=I.y-f.y,Q=Math.sqrt(Q*Q+
|
|
I*I),Xg(u,Q,t);else if(3==I)continue;Q=l;m.b(D,s)}e=Aa(Ma(U),Number);Ia(e);var V=new Float32Array(4);C(e,function(a){Ka(U[a],function(a){var d=cg(m,a.U),e=2*d.$()/z.height,f=2*(d.h-v.h)/z.width-1,g=2*(d.i-v.i)/z.height-1;V[0]=2*d.da()/z.width;V[1]=e;V[2]=f;V[3]=g;c.uniform4fv(this.z.Ud,V);dh(b,a);c.drawArrays(5,0,4)},this)},this);u.Ha()||a.wa.push(oa(function(a,b){var c,d;for(c=0;!b.Ha()&&4>c;++c)d=b.remove(),dh(a,d)},b,u));Q?(this.b=q,this.t=v):(this.t=this.b=k,a.P=i)}pg(a.Oa,g,r,q);kg(g,r,a.extent,
|
|
m);ng(a,g);he(this.d);le(this.d,(d.center.x-v.h)/(v.m-v.h),(d.center.y-v.i)/(v.k-v.i));ne(this.d,d.rotation);me(this.d,a.size.width*d.resolution/(v.m-v.h),a.size.height*d.resolution/(v.k-v.i));le(this.d,-0.5,-0.5)};function eh(){this.o=0;this.c={};this.b=this.a=k}p=eh.prototype;p.clear=function(){this.o=0;this.c={};this.b=this.a=k};function ch(a,b){return a.c.hasOwnProperty(b)}p.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Y,c.L,this),c=c.R};function fh(a,b){var c=a.c[b];if(c===a.b)return c.Y;c===a.a?(a.a=a.a.R,a.a.ha=k):(c.R.ha=c.ha,c.ha.R=c.R);c.R=k;c.ha=a.b;a.b.R=c;a.b=c;return c.Y}p.Z=n("o");p.V=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.ha)a[b++]=c.L;return a};
|
|
p.M=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.ha)a[b++]=c.Y;return a};function gh(a){var b=a.a;delete a.c[b.L];b.R!==k&&(b.R.ha=k);a.a=b.R;a.a===k&&(a.b=k);--a.o}function hh(a,b,c){c={L:b,R:k,ha:a.b,Y:c};a.b===k?a.a=c:a.b.R=c;a.b=c;a.c[b]=c;++a.o};var ih=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function jh(a,b){var c,d,e=ih.length;for(d=0;d<e;++d)try{if(c=a.getContext(ih[d],b),c!==k)return c}catch(f){}return k}var kh=function(){if(!("WebGLRenderingContext"in w))return l;try{var a=Qb("CANVAS");return jh(a)!==k}catch(b){return l}}();function lh(){this.a="precision mediump float;\n\nuniform mat4 u_colorMatrix;\nuniform float u_opacity;\nuniform sampler2D u_texture;\n\nvarying vec2 v_texCoord;\n\nvoid main(void) {\n\n vec4 texColor = texture2D(u_texture, v_texCoord);\n vec4 color = u_colorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * u_opacity;\n\n gl_FragColor = color;\n\n}"}B(lh,Qg);ca(lh);
|
|
function mh(){this.a="attribute vec2 a_position;\nattribute vec2 a_texCoord;\n\nuniform mat4 u_texCoordMatrix;\nuniform mat4 u_projectionMatrix;\n\nvarying vec2 v_texCoord;\n\nvoid main(void) {\n gl_Position = u_projectionMatrix * vec4(a_position, 0., 1.);\n v_texCoord = (u_texCoordMatrix * vec4(a_texCoord, 0., 1.)).st;\n}"}B(mh,Rg);ca(mh);
|
|
function nh(a,b){sg.call(this,a,b);this.c=Qb("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";Tb(a,this.c);this.p=i;this.A=new Wd(a.clientHeight,a.clientWidth);this.a=jh(this.c,{alpha:l,antialias:i,depth:l,preserveDrawingBuffer:l,stencil:l});H(this.c,"webglcontextlost",this.Ea,l,this);H(this.c,"webglcontextrestored",this.Md,l,this);this.j=this.z=k;this.g={};this.f={};this.b=new eh;this.l=0;this.G=lh.Xa();this.J=mh.Xa();oh(this)}B(nh,sg);p=nh.prototype;
|
|
p.ua=function(a){nh.v.ua.call(this,a);a.a()&&wg(this.map)};
|
|
function dh(a,b){var c=a.a,d=b.c();if(ch(a.b,d))d=fh(a.b,d),c.bindTexture(3553,d.Tb),9729!=d.qc&&(c.texParameteri(3553,10240,9729),d.qc=9729),9729!=d.rc&&(c.texParameteri(3553,10240,9729),d.rc=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.I());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);hh(a.b,d,{Tb:e,qc:9729,rc:9729})}}
|
|
p.Ta=function(a){var b=k;a instanceof Dg?b=new ah(this,a):a instanceof Cg&&(b=new Ug(this,a));return b};p.r=function(){var a=this.a;a.isContextLost()||(Ka(this.f,function(b){a.deleteProgram(b)}),Ka(this.g,function(b){a.deleteShader(b)}),this.b.forEach(function(b){b===k||a.deleteTexture(b.Tb)}));nh.v.r.call(this)};p.cd=function(a,b){for(var c=this.a,d;1024<this.b.Z()-this.l;){d=this.b.a.Y;if(d===k)if(+this.b.a.L==b.time)break;else--this.l;else c.deleteTexture(d.Tb);gh(this.b)}};p.Wa=n("c");
|
|
function bh(a,b,c){var d=y(b)+"/"+y(c);if(d in a.f)return a.f[d];var e=a.a,f=e.createProgram();e.attachShader(f,ph(a,b));e.attachShader(f,ph(a,c));e.linkProgram(f);return a.f[d]=f}function ph(a,b){var c=y(b);if(c in a.g)return a.g[c];var d=a.a,e=d.createShader(b.b());d.shaderSource(e,b.W());d.compileShader(e);return a.g[c]=e}p.Ea=function(a){a.C();this.j=this.z=k;this.g={};this.f={};this.b.clear();this.l=0;Ka(this.d,function(a){a.Ea()})};p.Md=function(){oh(this);wg(this.map)};
|
|
function oh(a){a=a.a;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}p.Rb=function(a){nh.v.Rb.call(this,a);a.a()&&wg(this.map)};
|
|
p.mb=function(a){var b=this.a;if(a===k)return this.p&&(Ic(this.c,l),this.p=l),l;hh(this.b,a.time.toString(),k);++this.l;C(a.hb,function(b){var c=a.gb[y(b)];c.visible&&c.qb&&vg(this,b).ga(a,c)},this);var c=a.size;this.A.width==c.width&&this.A.height==c.height||(this.c.width=c.width,this.c.height=c.height,this.A=c);b.bindFramebuffer(36160,k);var d=a.backgroundColor;b.clearColor(d.c/255,d.b/255,d.a/255,d.d);b.clear(16384);b.enable(3042);b.viewport(0,0,c.width,c.height);c=bh(this,this.G,this.J);b.useProgram(c);
|
|
this.z===k&&(this.z={$b:b.getAttribLocation(c,"a_position"),ac:b.getAttribLocation(c,"a_texCoord"),Vd:b.getUniformLocation(c,"u_colorMatrix"),Yd:b.getUniformLocation(c,"u_texCoordMatrix"),Xd:b.getUniformLocation(c,"u_projectionMatrix"),Wd:b.getUniformLocation(c,"u_opacity"),Zd:b.getUniformLocation(c,"u_texture")});this.j===k?(c=b.createBuffer(),b.bindBuffer(34962,c),b.bufferData(34962,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),35044),this.j=c):b.bindBuffer(34962,this.j);b.enableVertexAttribArray(this.z.$b);
|
|
b.vertexAttribPointer(this.z.$b,2,5126,l,16,0);b.enableVertexAttribArray(this.z.ac);b.vertexAttribPointer(this.z.ac,2,5126,l,16,8);b.uniform1i(this.z.Zd,0);C(a.hb,function(c){var d=a.gb[y(c)];d.visible&&d.qb&&(d=vg(this,c),b.uniformMatrix4fv(this.z.Yd,l,d.jc()),b.uniformMatrix4fv(this.z.Xd,l,d.ic()),b.uniformMatrix4fv(this.z.Vd,l,Tg(d)),b.uniform1f(this.z.Wd,c.e()),b.bindTexture(3553,d.kc()),b.drawArrays(5,0,4))},this);this.p||(Ic(this.c,i),this.p=i);ug(a);1024<this.b.Z()-this.l&&a.wa.push(na(this.cd,
|
|
this))};var qh={},rh={de:"canvas",ge:"dom",Re:"webgl"},sh=["webgl","canvas","dom"],tg="layers";
|
|
function S(a){var b,c;M.call(this);var d={};d[tg]=x(a.layers)?a.layers:new N;d.view=x(a.view)?a.view:new R;c=sg;var e;e=x(a.renderers)?a.renderers:x(a.renderer)?[a.renderer]:sh;var f;for(b=0;b<e.length;++b)if(f=e[b],"canvas"==f){if(Ig){c=Hg;break}}else if("dom"==f){c=Og;break}else if("webgl"==f&&kh){c=nh;break}e=[];(x(a.attributionControl)?a.attributionControl:1)&&e.push(new uf({}));x(a.scaleLineControl)&&a.scaleLineControl&&e.push(new wf({units:x(a.scaleLineUnits)?a.scaleLineUnits:h}));if(x(a.zoomControl)?
|
|
a.zoomControl:1)e.push(new yf({delta:x(a.zoomDelta)?a.zoomDelta:4}));if(x(a.interactions))b=a.interactions;else{b=new N;(x(a.rotate)?a.rotate:1)&&b.push(new Hf(Bf));if(x(a.doubleClickZoom)?a.doubleClickZoom:1)b.push(new Af(x(a.zoomDelta)?a.zoomDelta:4));(x(a.touchPan)?a.touchPan:1)&&b.push(new Pf(new Ve(-0.005,0.05,100)));(x(a.touchRotate)?a.touchRotate:1)&&b.push(new Qf);(x(a.touchZoom)?a.touchZoom:1)&&b.push(new Rf);(x(a.dragPan)?a.dragPan:1)&&b.push(new Ff(Cf,new Ve(-0.005,0.05,100)));f=x(a.keyboardPanOffset)?
|
|
a.keyboardPanOffset:80;if(x(a.keyboard)?a.keyboard:1)b.push(new Kf(f)),b.push(new Lf);if(x(a.mouseWheelZoom)?a.mouseWheelZoom:1)b.push(new Mf(x(a.mouseWheelZoomDelta)?a.mouseWheelZoomDelta:1));(x(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Jf(Df))}a=ga(a.target)?document.getElementById(a.target):a.target;this.c=new od(this.Pd,h,this);bc(this,this.c);this.Mc=de();this.Rc=de();this.d=k;this.f=0;this.p=l;this.G=a;this.F=k;this.b=Ob("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow=
|
|
"hidden";this.b.style.width="100%";this.b.style.height="100%";this.b.style.msTouchAction="none";this.G.appendChild(this.b);this.A=Ob("DIV","ol-overlaycontainer");H(this.A,["click",Kd?"touchstart":"mousedown"],fc);this.b.appendChild(this.A);a=new bf(this);H(a,La(mf),this.xc,l,this);bc(this,a);a=new Ad(document);H(a,"key",this.lc,l,this);bc(this,a);a=new Hd(this.b);H(a,"mousewheel",this.lc,l,this);bc(this,a);this.vb=b;this.J=new c(this.b,this);bc(this,this.J);this.Uc=new vd;H(this.Uc,"resize",this.mc,
|
|
l,this);this.g=[];this.xb=[];this.Qc=na(this.Ed,this);this.qa=new te(na(this.gd,this));H(this,Qd("view"),this.Kd,l,this);H(this,Qd("size"),this.Gd,l,this);H(this,Qd("backgroundColor"),this.pd,l,this);this.lb(d);this.mc();C(e,function(a){a.a(this)},this)}B(S,M);S.prototype.j=function(a){sf(this);this.g.push(a)};S.prototype.Lc=function(a){sf(this);Array.prototype.push.apply(this.g,a)};S.prototype.r=function(){Ub(this.b);S.v.r.call(this)};S.prototype.La=function(){return this.s("backgroundColor")};
|
|
S.prototype.getBackgroundColor=S.prototype.La;S.prototype.Pc=n("J");function $e(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];ke(c.yc,d,d);return new L(d[0],d[1])}S.prototype.Nc=n("vb");S.prototype.t=function(){return this.s(tg)};S.prototype.getLayers=S.prototype.t;function Gf(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];ke(c.fc,d,d);return new Ye(d[0],d[1])}S.prototype.e=function(){return this.s("size")};S.prototype.getSize=S.prototype.e;S.prototype.a=function(){return this.s("view")};
|
|
S.prototype.getView=S.prototype.a;p=S.prototype;p.gd=function(a,b,c){var d=this.d;if(d===k||!(b in d.Pa)||!d.Pa[b][a.U.toString()])return Infinity;b=d.u.center;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};p.lc=function(a,b){this.xc(new Ze(b||a.type,this,a))};p.xc=function(a){a.b=this.d;var b=this.vb.a;if(K(this,a)!==l)for(var c=b.length-1;0<=c&&!(b[c].oa(a),a.ab);c--);};
|
|
p.Ed=function(){var a=this.qa,b=a.a,c,d=0,e,f,g,j;for(c=0;c<b.length;++c)e=b[c],g=e[1],j=e[2],f=e[3],f=a.d(g,j,f),Infinity==f?(e=g.c(),delete a.b[e]):(e[0]=f,b[d++]=e);b.length=d;for(b=(a.a.length>>1)-1;0<=b;b--)we(a,b);for(a=this.qa;0<a.a.length&&a.c<a.e;)b=a,d=b.a,c=d[0][1],1==d.length?d.length=0:(d[0]=d.pop(),we(b,0)),d=c.c(),delete b.b[d],b=c,sc(b,"change",a.f,l,a),0==b.a&&(b.a=1,b.d=[sc(b.b,"error",b.g,l,b),sc(b.b,"load",b.l,l,b)],b.b.src=b.f),++a.c;a=this.xb;for(b=0;b<a.length;++b)a[b](this,
|
|
this.d);a.length=0};p.pd=function(){wg(this)};p.mc=function(){this.Qa(new Wd(this.G.clientWidth,this.G.clientHeight))};p.Gd=function(){wg(this)};p.Ld=function(){wg(this)};p.Kd=function(){this.F!==k&&(J(this.F),this.F=k);var a=this.a();a!=k&&(this.F=H(a,"changed",this.Ld,l,this));wg(this)};p.Ga=function(){var a=this.a(),b;if(b=x(a)){if(a=a.Ga())a=this.e()!=k;b=a}return b};function wg(a){a.c.N==k&&(0===a.f?(a=a.c,pd(a),a.Eb()):a.p=i)}function sf(a){0===a.f?a.c.N!=k||a.c.start():a.p=i}
|
|
p.Pd=function(a){var b;if(0==this.f){var c=this.e();b=this.t();var d=x(b)?b.a:h;b=this.a();var e=x(b)?this.a():h,f=k;if(x(d)&&x(c)&&x(e)&&e.Ga()){var f=this.La(),g=Fa(b.e),j={},m;for(b=0;b<d.length;++b){m=d[b];var r=j,s=y(m),q=m;m=q.b();var v=q.c(),u=q.d(),t=q.e(),z=q.W().c(),E=q.f(),q=q.a();r[s]={brightness:x(m)?m:0,contrast:x(v)?v:1,hue:x(u)?u:0,opacity:x(t)?t:1,qb:z,saturation:x(E)?E:1,visible:x(q)?q:i}}b=e.S();r=e.wc();s=e.T();e=e.ka();r={center:new L(b.x,b.y),projection:r,resolution:s,rotation:e};
|
|
f={P:l,attributions:{},backgroundColor:x(f)?f:new Vd,fc:this.Mc,extent:k,hb:d,gb:j,yc:this.Rc,wa:[],size:c,Ub:this.qa,time:a,Oa:{},u:r,B:g,Pa:{}}}a=this.g;for(b=d=0;b<a.length;++b)e=a[b],e(this,f)&&(a[d++]=e);a.length=d;if(f!==k){a=r.center;b=r.resolution;d=r.rotation;e=b*c.width/2;c=b*c.height/2;c=[new L(-e,-c),new L(-e,c),new L(e,-c),new L(e,c)];for(b=0;4>b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=$d.apply(k,c)}this.d=f;this.J.mb(f);this.p=l;f!==k&&(f.P&&sf(this),Array.prototype.push.apply(this.xb,
|
|
f.wa));K(this,new Xe("postrender",this,f));w.setTimeout(this.Qc,0)}};p.Rd=function(a){this.q("backgroundColor",a)};S.prototype.setBackgroundColor=S.prototype.Rd;S.prototype.Sc=function(a){this.q(tg,a)};S.prototype.setLayers=S.prototype.Sc;S.prototype.Qa=function(a){this.q("size",a)};S.prototype.setSize=S.prototype.Qa;S.prototype.Tc=function(a){this.q("view",a)};S.prototype.setView=S.prototype.Tc;function qf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.p&&(a=a.c,pd(a),a.Eb())}}
|
|
qh.Zc=function(a){var b=w.location.search.substring(1),a=x(a)?a:new Wc(b);return hd(a,"renderers")?id(a,"renderers").split(","):hd(a,"renderer")?[id(a,"renderer")]:sh};He(Vf);He(Yf);function th(a,b,c){var d=a.length,c=1<c?c:2;x(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=6378137*Math.PI*a[e]/180,b[e+1]=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b}
|
|
function uh(a,b,c){var d=a.length,c=1<c?c:2;x(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/(6378137*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b}C(Yf,function(a){C(Vf,function(b){Je(a,b,th);Je(b,a,uh)})});var vh={ae:"bottom-left",be:"bottom-right",Je:"top-left",Ke:"top-right"};function T(a){M.call(this);this.b=Qb("DIV");this.b.style.position="absolute";this.a={Sa:"",ib:"",sb:"",ub:"",visible:i};H(this,Qd("element"),this.qd,l,this);H(this,Qd("map"),this.yd,l,this);H(this,Qd("position"),this.Cd,l,this);H(this,Qd("positioning"),this.Dd,l,this);x(a.element)&&this.Dc(a.element);x(a.position)&&this.p(a.position);x(a.positioning)&&this.q("positioning",a.positioning);x(a.map)&&this.j(a.map)}B(T,M);
|
|
T.prototype.f=function(){return this.s("element")};T.prototype.getElement=T.prototype.f;T.prototype.d=function(){return this.s("map")};T.prototype.getMap=T.prototype.d;T.prototype.g=function(){return this.s("position")};T.prototype.getPosition=T.prototype.g;T.prototype.e=function(){return this.s("positioning")};T.prototype.getPositioning=T.prototype.e;p=T.prototype;p.qd=function(){Sb(this.b);var a=this.f();a!=k&&Rb(this.b,a)};
|
|
p.yd=function(){this.c!==k&&(Ub(this.b),J(this.c),this.c=k);var a=this.d();a!=k&&(this.c=H(a,"postrender",this.Od,l,this),wh(this),Rb(a.A,this.b))};p.Od=function(){wh(this)};p.Cd=function(){wh(this)};p.Dd=function(){wh(this)};p.Dc=function(a){this.q("element",a)};T.prototype.setElement=T.prototype.Dc;T.prototype.j=function(a){this.q("map",a)};T.prototype.setMap=T.prototype.j;T.prototype.p=function(a){this.q("position",a)};T.prototype.setPosition=T.prototype.p;
|
|
function wh(a){var b=a.d(),c=a.g();if(!x(b)||!b.Ga()||!x(c))a.a.visible&&(Ic(a.b,l),a.a.visible=l);else{var c=Gf(b,c),d=b.e(),b=a.b.style,e=a.e();if("bottom-right"==e||"top-right"==e){""!==a.a.ib&&(a.a.ib=b.left="");var f=Math.round(d.width-c.x)+"px";a.a.sb!=f&&(a.a.sb=b.right=f)}else""!==a.a.sb&&(a.a.sb=b.right=""),f=Math.round(c.x)+"px",a.a.ib!=f&&(a.a.ib=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.Sa&&(a.a.Sa=b.bottom=""),c=Math.round(c.y)+"px",a.a.ub!=c&&(a.a.ub=b.top=c)):(""!==a.a.ub&&
|
|
(a.a.ub=b.top=""),c=Math.round(d.height-c.y)+"px",a.a.Sa!=c&&(a.a.Sa=b.bottom=c));a.a.visible||(Ic(a.b,i),a.a.visible=i)}};function X(a){M.call(this);this.a=k;xh&&(H(this,Qd("projection"),this.p,l,this),this.J=navigator.geolocation.watchPosition(na(this.F,this),na(this.G,this),a))}B(X,M);X.prototype.r=function(){navigator.geolocation.clearWatch(this.J);X.v.r.call(this)};X.prototype.p=function(){var a=this.c();a!=k&&(this.b=Ce(Me("EPSG:4326"),a),this.a!==k&&(a=[this.a.x,this.a.y],a=this.b(a,a,2),this.q("position",new L(a[0],a[1]))))};var xh="geolocation"in navigator;
|
|
X.prototype.F=function(a){a=a.coords;this.q("accuracy",a.accuracy);this.q("altitude",a.altitude===k?h:a.altitude);this.q("altitudeAccuracy",a.altitudeAccuracy===k?h:a.altitudeAccuracy);this.q("heading",a.heading===k?h:a.heading*Math.PI/180);this.a=new L(a.longitude,a.latitude);var b=[a.longitude,a.latitude],b=this.b(b,b,2);this.q("position",new L(b[0],b[1]));this.q("speed",a.speed===k?h:a.speed)};X.prototype.G=function(){};X.prototype.d=function(){return this.s("accuracy")};
|
|
X.prototype.getAccuracy=X.prototype.d;X.prototype.e=function(){return this.s("altitude")};X.prototype.getAltitude=X.prototype.e;X.prototype.f=function(){return this.s("altitudeAccuracy")};X.prototype.getAltitudeAccuracy=X.prototype.f;X.prototype.g=function(){return this.s("heading")};X.prototype.getHeading=X.prototype.g;X.prototype.t=function(){return this.s("position")};X.prototype.getPosition=X.prototype.t;X.prototype.c=function(){return this.s("projection")};X.prototype.getProjection=X.prototype.c;
|
|
X.prototype.j=function(){return this.s("speed")};X.prototype.getSpeed=X.prototype.j;X.prototype.A=function(a){this.q("projection",a)};X.prototype.setProjection=X.prototype.A;X.prototype.b=aa();function yh(a){var b=Ob("DIV",{"class":"ol-mouse-position"});tf.call(this,{element:b,map:a.map,target:a.target});this.l=a.projection;this.g=a.coordinateFormat;this.J=x(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.j=Ne;this.d=this.e=this.t=k}B(yh,tf);yh.prototype.G=function(a){a=a.b;a===k?this.c=k:this.c=a.u.projection;zh(this,this.e)};yh.prototype.A=function(a){a=Fc(a,this.b.b);a=new Ye(a.x,a.y);zh(this,a);this.e=a};yh.prototype.F=function(){zh(this,k);this.e=k};
|
|
yh.prototype.a=function(a){this.d!==k&&(C(this.d,J),this.d=k);yh.v.a.call(this,a);if(a!==k){var b=a.b;this.d=[H(b,"mousemove",this.A,l,this),H(b,"mouseout",this.F,l,this),H(a,"postrender",this.G,l,this)]}};function zh(a,b){var c=a.J;if(b!==k){a.t!=a.c&&(a.j=x(a.l)?Ce(a.c,a.l):Ne,a.t=a.c);var d=$e(a.b,b);d!==k&&(c=[d.x,d.y],c=a.j(c,c),d=new L(c[0],c[1]),c=x(a.g)?a.g(d):d.toString())}if(!x(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};function Ah(){this.a={}}B(Ah,zf);Ah.prototype.b=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Ah.prototype.oa=function(a){if("key"==a.type){var b=this.a[a.a.Za];b&&(b(),a.C())}};function Bh(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=l;b.validateOnParse=l;try{b.setProperty("ProhibitDTD",i),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};function Ch(){this.xa={Ic:/^\s*|\s*$/g,a:/\s*/g,Gc:/\s+/,Hc:/\s*,\s*/g}}function Dh(a,b,c){c||(c={});var d=a.w[b.namespaceURI]||a.w[a.a];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function Z(a,b,c){c||(c={});for(var b=b.childNodes,d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&Dh(a,d,c)}function $(a){var b="";if(a)for(a=a.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:case 4:b+=a.nodeValue}return b}
|
|
Ch.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=k;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else for(var a=a.attributes,f,g,j=0,m=a.length;j<m;++j)if(f=a[j],f.namespaceURI==b&&(g=f.prefix?f.prefix+":"+c:c,g==f.nodeName)){e=f;break}if(b=e)d=b.nodeValue}return d};function Eh(){function a(a,b){b.Sd.push($(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),Te:a.getAttribute("locator"),Sd:[]};b.hc.push(e);Z(this,a,e)}this.w={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];Z(this,a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=a.getAttribute("locator");e.text=$(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,
|
|
b){b.Ue=l;b.Cb={version:a.getAttribute("version"),language:a.getAttribute("language"),hc:[]};Z(this,a,b.Cb)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}},"http://www.opengis.net/ows/1.1":{ExceptionReport:function(a,b){b.Cb={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),hc:[]};Z(this,a,b.Cb)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};Ch.call(this)}B(Eh,Ch);
|
|
Eh.prototype.ra=function(a){"string"==typeof a&&(a=Bh(a));var b={exceptionReport:k};a&&Z(this,a,b);return b};function Fh(a){this.c=a=a||{};this.Ua=a.Ua||k;this.version=a.version;this.profile=a.profile;a.Ra!==h?this.Ra=a.Ra:this.Ra=l;a.Sb!==h?this.Sb=a.Sb:this.Sb=l}
|
|
Fh.prototype.ra=function(a,b){"string"==typeof a&&(a=Bh(a));var c;c=a.documentElement;var d;c?(d=this.version,d||(d=c.getAttribute("version"),d||(d=this.Ua))):d=this.version||this.Ua;d=(c=d)||this.Ua;var e=this.profile?"_"+this.profile:"";if(!this.b||this.b.VERSION!=d){var f=this.a["v"+d.replace(/\./g,"_")+e];if(!f&&(""!==e&&this.Ra&&(e="",f=this.a["v"+d.replace(/\./g,"_")+e]),!f))throw"Can't find a parser for version "+d+e;this.b=new f(this.c)}this.b=this.b;d=this.b.ra(a,b);e=this.b.bd||k;e!==k&&
|
|
d[e]===h&&(d.error=(new Eh).ra(a));d.version=c;return d};function Gh(){this.a="http://www.opengis.net/wms";this.bd="service";this.w={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};Z(this,a,b.service)},Name:function(a,b){b.name=$(a)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};
|
|
if(!isNaN(a.x)||!isNaN(a.y))b.res=a;return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ContactInformation:function(a,b){b.contactInformation={};Z(this,a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};Z(this,a,b.personPrimary)},ContactPerson:function(a,b){b.person=$(a)},ContactOrganization:function(a,b){b.organization=$(a)},ContactPosition:function(a,b){b.position=$(a)},ContactAddress:function(a,b){b.contactAddress=
|
|
{};Z(this,a,b.contactAddress)},AddressType:function(a,b){b.type=$(a)},Address:function(a,b){b.address=$(a)},City:function(a,b){b.city=$(a)},StateOrProvince:function(a,b){b.stateOrProvince=$(a)},PostCode:function(a,b){b.postcode=$(a)},Country:function(a,b){b.country=$(a)},ContactVoiceTelephone:function(a,b){b.phone=$(a)},ContactFacsimileTelephone:function(a,b){b.fax=$(a)},ContactElectronicMailAddress:function(a,b){b.email=$(a)},Fees:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.fees=c)},
|
|
AccessConstraints:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},Capability:function(a,b){b.capability={};b.capability.nestedLayers=[];b.capability.layers=[];Z(this,a,b.capability)},Request:function(a,b){b.request={};Z(this,a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];Z(this,a,b.getcapabilities)},Format:function(a,b){ea(b.formats)?b.formats.push($(a)):b.format=$(a)},DCPType:function(a,b){Z(this,a,b)},HTTP:function(a,b){Z(this,
|
|
a,b)},Get:function(a,b){b.get={};Z(this,a,b.get)},Post:function(a,b){b.post={};Z(this,a,b.post)},GetMap:function(a,b){b.getmap={};b.getmap.formats=[];Z(this,a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={};b.getfeatureinfo.formats=[];Z(this,a,b.getfeatureinfo)},Exception:function(a,b){b.exception={};b.exception.formats=[];Z(this,a,b.exception)},Layer:function(a,b){var c,d;b.capability?(d=b.capability,c=b):d=b;var e=a.getAttributeNode("queryable"),f=e&&e.specified?a.getAttribute("queryable"):
|
|
k,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):k,j=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):k,m=a.getAttribute("noSubsets"),r=a.getAttribute("fixedWidth"),s=a.getAttribute("fixedHeight"),e=c||{},f={nestedLayers:[],styles:c?[].concat(c.styles):[],srs:{},metadataURLs:[],bbox:{},llbbox:e.llbbox,dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:f&&""!==f?"1"===f||"true"===f:e.queryable||l,cascaded:g!==k?parseInt(g,10):e.cascaded||
|
|
0,opaque:j?"1"===j||"true"===j:e.opaque||l,noSubsets:m!==k?"1"===m||"true"===m:e.noSubsets||l,fixedWidth:r!==k?parseInt(r,10):e.fixedWidth||0,fixedHeight:s!==k?parseInt(s,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&(Ua(f.srs,e.srs),Ua(f.bbox,e.bbox),Ua(f.dimensions,e.dimensions),Ua(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;Z(this,a,f);delete f.capability;f.name&&(c=f.name.split(":"),g=d.request,e=g.getfeatureinfo,0<c.length&&
|
|
(f.prefix=c[0]),d.layers.push(f),f.formats===h&&(f.formats=g.getmap.formats),f.infoFormats===h&&e&&(f.infoFormats=e.formats))},Attribution:function(a,b){b.attribution={};Z(this,a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};Z(this,a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);Z(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;Z(this,a,c)},MetadataURL:function(a,
|
|
b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);Z(this,a,c)},DataURL:function(a,b){b.dataURL={};Z(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};Z(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};Z(this,a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=$(a)},KeywordList:function(a,b){Z(this,a,b)},SRS:function(a,b){b.srs[$(a)]=i}}};Ch.call(this)}B(Gh,Ch);
|
|
Gh.prototype.ra=function(a){"string"==typeof a&&(a=Bh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Dh(this,a,b);return b};function Hh(){Gh.call(this);var a=this.w["http://www.opengis.net/wms"].BoundingBox;Ua(this.w["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){Z(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:$(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};Z(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};Z(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};Z(this,a,c.getstyles)},PutStyles:function(a,
|
|
c){c.putstyles={formats:[]};Z(this,a,c.putstyles)},UserDefinedSymbolization:function(a,c){var d={supportSLD:1==parseInt(a.getAttribute("SupportSLD"),10),userLayer:1==parseInt(a.getAttribute("UserLayer"),10),userStyle:1==parseInt(a.getAttribute("UserStyle"),10),remoteWFS:1==parseInt(a.getAttribute("RemoteWFS"),10)};c.userSymbols=d},LatLonBoundingBox:function(a,c){c.llbbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]},
|
|
BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("SRS");c.bbox[d.srs]=d},ScaleHint:function(a,c){var d=parseFloat(a.getAttribute("min")),e=parseFloat(a.getAttribute("max")),f=Math.pow(2,0.5),g=25.4/0.28;0!==d&&(c.maxScale=parseFloat(39.37*(d/f)*g));e!=Number.POSITIVE_INFINITY&&(c.minScale=parseFloat(39.37*(e/f)*g))},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol")};c.dimensions[d.name]=
|
|
d},Extent:function(a,c){var d=a.getAttribute("name").toLowerCase();d in c.dimensions&&(d=c.dimensions[d],d.nearestVal="1"===a.getAttribute("nearestValue"),d.multipleVal="1"===a.getAttribute("multipleValues"),d.current="1"===a.getAttribute("current"),d["default"]=a.getAttribute("default")||"",d.values=$(a).split(","))}})}B(Hh,Gh);function Ih(){Hh.call(this);this.version="1.1.0";Ua(this.w["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=$(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=i}})}B(Ih,Hh);function Jh(){Hh.call(this);this.version="1.1.1";Ua(this.w["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[$(a)]=i}})}B(Jh,Hh);function Kh(){Jh.call(this);this.profile="WMSC";Ua(this.w["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};Z(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};Z(this,a,c);b.We.push(c)},Resolutions:function(a,b){for(var c=$(a).split(" "),d=0,e=c.length;d<e;d++)""!==c[d]&&b.resolutions.push(parseFloat(c[d]))},Width:function(a,b){b.width=parseInt($(a),10)},Height:function(a,b){b.height=parseInt($(a),10)},Layers:function(a,
|
|
b){b.layers=$(a)},Styles:function(a,b){b.styles=$(a)}})}B(Kh,Jh);function Lh(){Gh.call(this);var a=this.w["http://www.opengis.net/wms"].BoundingBox;Ua(this.w["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){Z(this,a,c)},LayerLimit:function(a,c){c.layerLimit=parseInt($(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt($(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt($(a),10)},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("CRS");c.bbox[d.srs]=d},CRS:function(a,c){this.w["http://www.opengis.net/wms"].SRS.apply(this,
|
|
arguments)},EX_GeographicBoundingBox:function(a,c){c.llbbox=[];Z(this,a,c.llbbox)},westBoundLongitude:function(a,c){c[0]=$(a)},eastBoundLongitude:function(a,c){c[2]=$(a)},southBoundLatitude:function(a,c){c[1]=$(a)},northBoundLatitude:function(a,c){c[3]=$(a)},MinScaleDenominator:function(a,c){c.maxScale=parseFloat($(a)).toPrecision(16)},MaxScaleDenominator:function(a,c){c.minScale=parseFloat($(a)).toPrecision(16)},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),
|
|
unitsymbol:a.getAttribute("unitSymbol"),nearestVal:"1"===a.getAttribute("nearestValue"),multipleVal:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",current:"1"===a.getAttribute("current"),values:$(a).split(",")};c.dimensions[d.name]=d},Keyword:function(a,c){var d={value:$(a),vocabulary:a.getAttribute("vocabulary")};c.keywords&&c.keywords.push(d)}});this.w.sld={UserDefinedSymbolization:function(a,c){this.w["http://www.opengis.net/wms"].Pe.apply(this,arguments);var d=
|
|
a.getAttribute("InlineFeature");c.userSymbols.inlineFeature=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");c.userSymbols.remoteWCS=1==parseInt(d,10)},DescribeLayer:function(a,c){this.w["http://www.opengis.net/wms"].le.apply(this,arguments)},GetLegendGraphic:function(a,c){this.w["http://www.opengis.net/wms"].me.apply(this,arguments)}}}B(Lh,Gh);function Mh(a){a=a||{};a.defaultVersion="1.1.1";this.a={};this.a.v1_1_0=Ih;this.a.v1_1_1=Jh;this.a.v1_1_1_WMSC=Kh;this.a.v1_3_0=Lh;Fh.call(this,a)}B(Mh,Fh);function Nh(){this.w={"http://www.opengis.net/ows":{ServiceIdentification:function(a,b){b.serviceIdentification={};Z(this,a,b.serviceIdentification)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},Keywords:function(a,b){b.keywords={};Z(this,a,b.keywords)},Keyword:function(a,b){b[$(a)]=i},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:$(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=$(a)},Fees:function(a,b){b.fees=$(a)},
|
|
AccessConstraints:function(a,b){b.accessConstraints=$(a)},ServiceProvider:function(a,b){b.serviceProvider={};Z(this,a,b.serviceProvider)},ProviderName:function(a,b){b.providerName=$(a)},ProviderSite:function(a,b){b.providerSite=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceContact:function(a,b){b.serviceContact={};Z(this,a,b.serviceContact)},IndividualName:function(a,b){b.individualName=$(a)},PositionName:function(a,b){b.positionName=$(a)},ContactInfo:function(a,b){b.contactInfo=
|
|
{};Z(this,a,b.contactInfo)},Phone:function(a,b){b.phone={};Z(this,a,b.phone)},Voice:function(a,b){b.voice=$(a)},Address:function(a,b){b.address={};Z(this,a,b.address)},DeliveryPoint:function(a,b){b.deliveryPoint=$(a)},City:function(a,b){b.city=$(a)},AdministrativeArea:function(a,b){b.administrativeArea=$(a)},PostalCode:function(a,b){b.postalCode=$(a)},Country:function(a,b){b.country=$(a)},ElectronicMailAddress:function(a,b){b.electronicMailAddress=$(a)},Role:function(a,b){b.role=$(a)},OperationsMetadata:function(a,
|
|
b){b.operationsMetadata={};Z(this,a,b.operationsMetadata)},Operation:function(a,b){var c=a.getAttribute("name");b[c]={};Z(this,a,b[c])},DCP:function(a,b){b.dcp={};Z(this,a,b.dcp)},HTTP:function(a,b){b.http={};Z(this,a,b.http)},Get:function(a,b){b.get||(b.get=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};Z(this,a,c);b.get.push(c)},Post:function(a,b){b.post||(b.post=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};Z(this,a,c);b.post.push(c)},
|
|
Parameter:function(a,b){b.parameters||(b.parameters={});var c=a.getAttribute("name");b.parameters[c]={};Z(this,a,b.parameters[c])},Constraint:function(a,b){b.constraints||(b.constraints={});var c=a.getAttribute("name");b.constraints[c]={};Z(this,a,b.constraints[c])},Value:function(a,b){b[$(a)]=i},OutputFormat:function(a,b){b.formats.push({value:$(a)});Z(this,a,b)},WGS84BoundingBox:function(a,b){var c={};c.crs=a.getAttribute("crs");b.BoundingBox?b.BoundingBox.push(c):(b.projection=c.crs,c=b);Z(this,
|
|
a,c)},BoundingBox:function(a,b){this.w["http://www.opengis.net/ows"].WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=$(a).replace(this.xa.Ic,""),c=c.replace(this.xa.Hc,","),c=c.split(this.xa.Gc);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=$(a).replace(this.xa.Ic,""),c=c.replace(this.xa.Hc,","),c=c.split(this.xa.Gc);b.right=c[0];b.top=c[1];b.bounds=new Zd(parseFloat(b.left),parseFloat(b.bottom),parseFloat(b.right),parseFloat(b.top));delete b.left;delete b.bottom;
|
|
delete b.right;delete b.top},Language:function(a,b){b.language=$(a)}}};Ch.call(this)}B(Nh,Ch);function Oh(){Nh.call(this);this.w["http://www.opengis.net/ows/1.1"]=this.w["http://www.opengis.net/ows"];Ua(this.w["http://www.opengis.net/ows/1.1"],{AllowedValues:function(a,b){b.allowedValues={};Z(this,a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=i},DataType:function(a,b){b.dataType=$(a)},Range:function(a,b){b.range={};Z(this,a,b.range)},MinimumValue:function(a,b){b.minValue=$(a)},MaximumValue:function(a,b){b.maxValue=$(a)},Identifier:function(a,b){b.identifier=$(a)},SupportedCRS:function(a,
|
|
b){b.supportedCRS=$(a)}})}B(Oh,Nh);function Ph(){this.w={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){Z(this,a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};Z(this,a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};Z(this,a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");Z(this,a,d);c.styles.push(d)},Format:function(a,c){c.formats.push($(a))},TileMatrixSetLink:function(a,
|
|
c){var d={};Z(this,a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};Z(this,a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=$(a)},TileMatrix:function(a,c){var d={supportedCRS:c.Ve};Z(this,a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat($(a))},TopLeftCorner:function(a,c){var d=$(a).split(" "),e=Me(c.supportedCRS).c,d=[parseFloat(d[0]),parseFloat(d[1])],e=e.charAt(0);c.topLeftCorner="n"===e||"s"===e?new L(d[1],
|
|
d[0]):new L(d[0],d[1])},TileWidth:function(a,c){c.tileWidth=parseInt($(a),10)},TileHeight:function(a,c){c.tileHeight=parseInt($(a),10)},MatrixWidth:function(a,c){c.matrixWidth=parseInt($(a),10)},MatrixHeight:function(a,c){c.matrixHeight=parseInt($(a),10)},ResourceURL:function(a,c){var d=a.getAttribute("resourceType"),e=a.getAttribute("format"),f=a.getAttribute("template");c.resourceUrls||(c.resourceUrls={});c.resourceUrls[d]||(c.resourceUrls[d]={});c.resourceUrls[d][e]||(c.resourceUrls[d][e]=[]);
|
|
c.resourceUrls[d][e].push(f)},WSDL:function(a,c){c.wsdl={};c.wsdl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceMetadataURL:function(a,c){c.serviceMetadataUrl={};c.serviceMetadataUrl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},LegendURL:function(a,c){c.legend={};c.legend.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href");c.legend.format=a.getAttribute("format")},Dimension:function(a,c){var d={values:[]};Z(this,a,d);c.dimensions.push(d)},
|
|
Default:function(a,c){c["default"]=$(a)},Value:function(a,c){c.values.push($(a))}}};var a=new Oh;this.w["http://www.opengis.net/ows/1.1"]=a.w["http://www.opengis.net/ows/1.1"];Ch.call(this)}B(Ph,Ch);Ph.prototype.ra=function(a){"string"==typeof a&&(a=Bh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Dh(this,a,b);return b};function Qh(a){a=a||{};a.defaultVersion="1.0.0";this.a={};this.a.v1_0_0=Ph;Fh.call(this,a)}B(Qh,Fh);/*
|
|
Portions of this code are from MochiKit, received by
|
|
The Closure Authors under the MIT license. All other code is Copyright
|
|
2005-2009 The Closure Authors. All Rights Reserved.
|
|
*/
|
|
function Rh(a,b){this.a=[];this.f=a;this.e=b||k}p=Rh.prototype;p.ia=l;p.Da=l;p.Ka=0;p.Fc=l;p.Xc=l;p.Wc=0;p.ec=function(a,b){Sh(this,a,b);this.Ka--;0==this.Ka&&this.ia&&Th(this)};function Sh(a,b,c){a.ia=i;a.b=c;a.Da=!b;Th(a)}function Uh(a){if(a.ia){if(!a.Fc)throw new Vh(a);a.Fc=l}}function Wh(a){return Ba(a.a,function(a){return ha(a[1])})}
|
|
function Th(a){a.c&&(a.ia&&Wh(a))&&(w.clearTimeout(a.c),delete a.c);a.d&&(a.d.Wc--,delete a.d);for(var b=a.b,c=l,d=l;a.a.length&&0==a.Ka;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Da?g:f)try{var j=f.call(e||a.e,b);x(j)&&(a.Da=a.Da&&(j==b||j instanceof Error),a.b=b=j);b instanceof Rh&&(d=i,a.Ka++)}catch(m){b=m,a.Da=i,Wh(a)||(c=i)}}a.b=b;d&&a.Ka&&(d=b,j=na(a.ec,a,i),f=na(a.ec,a,l),d.a.push([j,f,h]),d.ia&&Th(d),b.Xc=i);c&&(a.c=w.setTimeout(function(){throw b;},0))}
|
|
function Vh(a){qa.call(this);this.a=a}B(Vh,qa);Vh.prototype.message="Deferred has already fired";Vh.prototype.name="AlreadyCalledError";function Xh(a,b){var c=b||{},d=c.document||document,e=Qb("SCRIPT"),f={Cc:e,tb:h},g=new Rh(Yh,f),j=k,m=c.timeout!=k?c.timeout:5E3;0<m&&(j=window.setTimeout(function(){Zh(e,i);var b=new $h(ai,"Timeout reached for loading script "+a);Uh(g);Sh(g,l,b)},m),f.tb=j);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)Zh(e,c.cc||l,j),Uh(g),Sh(g,i,k)};e.onerror=function(){Zh(e,i,j);var b=new $h(bi,"Error while loading script "+a);Uh(g);Sh(g,l,b)};Lb(e,
|
|
{type:"text/javascript",charset:"UTF-8",src:a});f=d.getElementsByTagName("HEAD");(!f||0==f.length?d.documentElement:f[0]).appendChild(e);return g}function Yh(){if(this&&this.Cc){var a=this.Cc;a&&"SCRIPT"==a.tagName&&Zh(a,i,this.tb)}}function Zh(a,b,c){c!=k&&w.clearTimeout(c);a.onload=ba;a.onerror=ba;a.onreadystatechange=ba;b&&window.setTimeout(function(){Ub(a)},0)}var bi=0,ai=1;function $h(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);qa.call(this,c);this.code=a}B($h,qa);function ci(a){this.b=new Rc(a);this.a="jsonp";this.tb=5E3}var di=0;function ei(a,b){w._callbacks_[a]&&(b?delete w._callbacks_[a]:w._callbacks_[a]=ba)};function fi(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){var c=[],d=b[2].charCodeAt(0),e;for(e=b[1].charCodeAt(0);e<=d;++e)c.push(a.replace(b[0],String.fromCharCode(e)));return gi(Aa(c,fi))}return function(b){return b===k?h:a.replace("{z}",b.n).replace("{x}",b.x).replace("{y}",b.y)}}function gi(a){return function(b,c,d){if(b!==k){var e=Fb(b.hash(),a.length);return a[e](b,c,d)}}}function hi(a,b,c){return function(d,e,f){return d===k?h:xg(a,b,cg(e,d),hg(e,d.n),f,c)}}
|
|
function ii(){}function ji(a,b){return function(c,d,e){return c===k?h:b(a(c,d,e),d,e)}};function ki(a,b,c){se.call(this,a);this.f=b;this.b=new Image;c!==k&&(this.b.crossOrigin=c);this.e={};this.d=k}B(ki,se);ki.prototype.I=function(a){if(x(a)){var b=y(a);if(b in this.e)return this.e[b];a=Sa(this.e)?this.b:this.b.cloneNode(l);return this.e[b]=a}return this.b};ki.prototype.c=n("f");ki.prototype.g=function(){this.a=3;C(this.d,J);this.d=k;K(this,"change")};ki.prototype.l=function(){this.a=2;C(this.d,J);this.d=k;K(this,"change")};function li(a){eh.call(this);this.d=x(a)?a:512}B(li,eh);li.prototype.Ba=function(a){for(var b,c;this.Z()>this.d&&!(b=this.a.Y,c=b.U.n.toString(),c in a&&a[c].contains(b.U));)gh(this)};function mi(a){jg.call(this,{attributions:a.attributions,extent:a.extent,X:a.X,projection:a.projection,tileGrid:a.tileGrid});this.ca=x(a.ca)?a.ca:ii;this.F=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new li}B(mi,jg);mi.prototype.f=function(){return this.a.Z()>this.a.d};mi.prototype.Ba=function(a){this.a.Ba(a)};mi.prototype.b=function(a,b,c){var d=a.toString();if(ch(this.a,d))return fh(this.a,d);b=this.ca(a,b,c);x(b)?(a=new ki(a,b,this.F),hh(this.a,d,a)):a=k;return a};
|
|
mi.prototype.p=function(a){a=a.toString();ch(this.a,a)&&fh(this.a,a)};function ni(a){var b=Array(a.maxZoom+1),c,d=2*Uf/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);bg.call(this,{origin:new L(-Uf,Uf),resolutions:b,tileSize:new Wd(256,256)})}B(ni,bg);ni.prototype.b=function(a,b,c){for(var d=a.x,e=a.y,a=a.n,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new qe(d,e,d,e);if(b.call(c,a,f))break}};function oi(a){mi.call(this,{X:i,projection:Me("EPSG:3857")});this.$c=x(a.culture)?a.culture:"en-us";this.g=l;var b=new Rc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new ci(b),a={include:"ImageryProviders",key:a.key},c=na(this.t,this),a=a||k,d="_"+(di++).toString(36)+pa().toString(36);w._callbacks_||(w._callbacks_={});var e=b.b.Q();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&ed(e,f,a[f]);c&&(w._callbacks_[d]=function(a){ei(d,i);c.apply(h,arguments)},ed(e,b.a,"_callbacks_."+
|
|
d));f=Xh(e.toString(),{timeout:b.tb,cc:i});f.a.push([k,function(){ei(d,l)},h]);f.ia&&Th(f)}B(oi,mi);
|
|
oi.prototype.t=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new ni({maxZoom:d,tileSize:new Wd(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.ca=ji(function(a){if(a.n<c||d<a.n)return k;var b=1<<a.n,e=-a.y-1;return 0>e||b<=e?k:new oe(a.n,Fb(a.x,b),e)},gi(Aa(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.$c);return function(a){return a===k?h:c.replace("{quadkey}",pe(a))}})));var f=Ce(Me("EPSG:4326"),this.j);this.e=
|
|
Aa(b.imageryProviders,function(a){var b=a.attribution,c={};C(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new Zd(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=dg(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new re(b,c)});this.g=i;K(this,"load")};oi.prototype.c=n("g");function pi(a,b){se.call(this,a);this.a=2;this.e=a;this.d=hg(b,a.n);this.b={}}B(pi,se);pi.prototype.I=function(a){a=x(a)?y(a):-1;if(a in this.b)return this.b[a];var b=this.d,c=Qb("CANVAS");c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.e.toString(),b.width/2,b.height/2);return this.b[a]=c};
|
|
function qi(a){jg.call(this,{extent:a.extent,X:l,projection:a.projection,tileGrid:a.tileGrid});this.a=new li}B(qi,jg);qi.prototype.f=function(){return this.a.Z()>this.a.d};qi.prototype.Ba=function(a){this.a.Ba(a)};qi.prototype.b=function(a){var b=a.toString();if(ch(this.a,b))return fh(this.a,b);a=new pi(a,this.tileGrid);hh(this.a,b,a);return a};function ri(a){var b=a.projection||Me("EPSG:3857"),c=ii;x(a.ca)?c=a.ca:x(a.urls)?c=gi(Aa(a.urls,fi)):x(a.url)&&(c=fi(a.url));var d=new ni({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?ji(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,j=-b.y-1;if(0>j||c<=j)return k;c=Fb(b.x,c);return!Yd(cg(d,new oe(b.n,c,b.y)),e)?k:new oe(b.n,c,j)},c):ji(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,d=-b.y-1;return 0>d||c<=d?k:new oe(b.n,Fb(b.x,c),d)},c);mi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
|
|
extent:a.extent,projection:b,tileGrid:d,ca:c})}B(ri,mi);function si(){ri.call(this,{attributions:[new re('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new re('Data © <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],X:i,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(si,ri);
|
|
function ti(){ri.call(this,{attributions:[new re('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new re("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,X:i,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(ti,ri);function ui(){ri.call(this,{attributions:[new re('© <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],X:i,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(ui,ri);function vi(a){Ag.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Fa:x(a.url)?yg(a.url,a.params,a.version):zg});this.b=k;this.f=1.5}B(vi,Ag);
|
|
vi.prototype.I=function(a,b,c){this.a===k||(b=this.a[nf(this.a,b)]);var d=this.b,e;if(e=d!==k)if(e=d.e==b)e=d.H(),e=e.h<=a.h&&a.m<=e.m&&e.i<=a.i&&a.k<=e.k;if(e)return d;var d=a=new Zd(a.h,a.i,a.m,a.k),f=this.f;e=d.da()/2*(f-1);f=d.$()/2*(f-1);d.h-=e;d.i-=f;d.m+=e;d.k+=f;return this.b=Bg(this,a,b,new Wd(a.da()/b,a.$()/b),c)};var wi={ve:"background",we:"labels",xe:"lines",ze:"2010",Ae:"2011",Be:"2011-labels",Ce:"2011-lines",De:"2011-lite",Ee:"background",Fe:"hybrid",Ge:"labels",He:"lines",Ie:"lite"},xi={ue:"terrain",ye:"toner",Qe:"watercolor"},yi={terrain:{type:"jpg",sc:4,maxZoom:18},toner:{type:"png",sc:0,maxZoom:20},watercolor:{type:"jpg",sc:3,maxZoom:16}};
|
|
function zi(a){var b=new re('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'),c=a.provider;x(a.flavor)&&(c+="-"+a.flavor);a=yi[a.provider];ri.call(this,{attributions:[b],maxZoom:a.maxZoom,X:l,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}B(zi,ri);function Ai(a){var b=a.imageExtent,c=a.imageSize,d=b.$()/c.height,e=x(a.projection)?a.projection:k,f=a.url;Ag.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Fa:function(){return f},resolutions:[d]});this.b=Bg(this,b,d,c,e)}B(Ai,Ag);Ai.prototype.I=function(a){return Yd(a,this.b.H())?this.b:k};var Bi=[];A("grid",function(a){Bi.push(a)});function Ci(a){mi.call(this,{projection:Me("EPSG:3857")});this.g=l;a=this.t=Xh(a.uri,{cc:i});a.a.push([this.A,k,this]);a.ia&&Th(a)}B(Ci,mi);
|
|
Ci.prototype.A=function(){var a=Bi.pop(),b=Me("EPSG:4326"),c,d;x(a.bounds)?(c=a.bounds,c=new Zd(c[0],c[1],c[2],c[3]),this.l=d=c.transform(Ce(b,this.j))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new ni({maxZoom:f});this.tileGrid=g;this.ca=ji(function(a){if(a.n<e||f<a.n)return k;var b=1<<a.n,c=-a.y-1;if(0>c||b<=c)return k;b=Fb(a.x,b);return d!==k&&!Yd(cg(g,new oe(a.n,b,a.y)),d)?k:new oe(a.n,b,c)},gi(Aa(a.tiles,fi)));if(x(a.attribution)){b=d===k?b.H():d;c={};var j,m;for(j=e;j<=f;++j)m=j.toString(),
|
|
c[m]=[dg(g,b,g.a[j])];this.e=[new re(a.attribution,c)]}this.g=i;K(this,"load")};Ci.prototype.c=n("g");function Di(a){var b=a.version,c;a.urls?(c=Aa(a.urls,function(c){return hi(c,a.params,b)}),c=gi(c)):c=a.url?hi(a.url,a.params,b):ii;mi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,tileGrid:a.tileGrid,X:!(x(a.transparent)?a.transparent:1),projection:a.projection,ca:ji(function(b,c,f){if(c.Db().length<=b.n)return k;var g=b.x,j=cg(c,b),m=f.H(),f=x(a.extent)?a.extent:m;f.h===m.h&&f.m===m.m&&(j=Math.ceil((f.m-f.h)/(j.m-j.h)),g=Fb(g,j),j=cg(c,new oe(b.n,g,b.y)));return!Yd(j,
|
|
f)?k:new oe(b.n,g,b.y)},c)})}B(Di,mi);A("goog.require",ba);function Ei(a){T.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}B(Ei,T);A("ol.AnchoredElement",Ei);A("ol.AnchoredElementPositioning",vh);vh.BOTTOM_LEFT="bottom-left";vh.BOTTOM_RIGHT="bottom-right";vh.TOP_LEFT="top-left";vh.TOP_RIGHT="top-right";A("ol.Attribution",re);A("ol.Collection",N);N.prototype.clear=N.prototype.clear;N.prototype.forEach=N.prototype.forEach;N.prototype.getArray=N.prototype.dd;N.prototype.getAt=N.prototype.ed;
|
|
N.prototype.getLength=N.prototype.Ya;N.prototype.insertAt=N.prototype.cb;N.prototype.pop=N.prototype.vc;N.prototype.push=N.prototype.push;N.prototype.removeAt=N.prototype.Bc;N.prototype.setAt=N.prototype.Qd;A("ol.Coordinate",L);L.toStringHDMS=function(a){return x(a)?Oc(a.y,"NS")+" "+Oc(a.x,"EW"):""};A("ol.Extent",Zd);Zd.prototype.getHeight=Zd.prototype.$;Zd.prototype.getWidth=Zd.prototype.da;A("ol.Geolocation",X);
|
|
function Fi(a){S.call(this,{attributionControl:a.attributionControl,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,mouseWheelZoom:a.mouseWheelZoom,mouseWheelZoomDelta:a.mouseWheelZoomDelta,renderer:a.renderer,renderers:a.renderers,scaleLineControl:a.scaleLineControl,scaleLineUnits:a.scaleLineUnits,shiftDragZoom:a.shiftDragZoom,target:a.target,touchPan:a.touchPan,touchRotate:a.touchRotate,touchZoom:a.touchZoom,
|
|
view:a.view,zoomControl:a.zoomControl,zoomDelta:a.zoomDelta})}B(Fi,S);A("ol.Map",Fi);S.prototype.addPreRenderFunction=S.prototype.j;S.prototype.addPreRenderFunctions=S.prototype.Lc;S.prototype.getInteractions=S.prototype.Nc;S.prototype.getRenderer=S.prototype.Pc;Ze.prototype.getCoordinate=Ze.prototype.d;A("ol.Object",M);M.prototype.bindTo=M.prototype.Vc;M.prototype.changed=M.prototype.Yc;M.prototype.get=M.prototype.s;M.prototype.notify=M.prototype.uc;M.prototype.set=M.prototype.q;
|
|
M.prototype.setOptions=M.prototype.Ec;M.prototype.setValues=M.prototype.lb;M.prototype.unbind=M.prototype.Vb;M.prototype.unbindAll=M.prototype.$d;A("ol.Projection",O);O.prototype.getAxisOrientation=O.prototype.g;O.prototype.getCode=O.prototype.l;O.prototype.getExtent=O.prototype.H;O.prototype.getPointResolution=O.prototype.b;O.prototype.getUnits=O.prototype.j;A("ol.ProjectionUnits",Ae);Ae.DEGREES="degrees";Ae.METERS="m";A("ol.RendererHint",rh);rh.CANVAS="canvas";rh.DOM="dom";rh.WEBGL="webgl";
|
|
A("ol.RendererHints",qh);qh.createFromQueryData=qh.Zc;function Gi(a){R.call(this,{center:a.center,maxResolution:a.maxResolution,numZoomLevels:a.numZoomLevels,projection:a.projection,resolution:a.resolution,resolutions:a.resolutions,rotation:a.rotation,zoom:a.zoom,zoomFactor:a.zoomFactor})}B(Gi,R);A("ol.View2D",Gi);A("ol.animation",Ue);Ue.bounce=Ue.Ab;Ue.pan=Ue.Ja;Ue.rotate=Ue.rotate;Ue.zoom=Ue.zoom;function Hi(a){uf.call(this,{map:a.map,target:a.target})}B(Hi,uf);A("ol.control.Attribution",Hi);
|
|
uf.prototype.setMap=uf.prototype.a;function Ii(a){yh.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}B(Ii,yh);A("ol.control.MousePosition",Ii);yh.prototype.setMap=yh.prototype.a;function Ji(a){wf.call(this,{map:a.map,minWidth:a.minWidth,target:a.target,units:a.units})}B(Ji,wf);A("ol.control.ScaleLine",Ji);wf.prototype.setMap=wf.prototype.a;A("ol.control.ScaleLineUnits",vf);vf.DEGREES="degrees";vf.IMPERIAL="imperial";
|
|
vf.METRIC="metric";vf.NAUTICAL="nautical";vf.US="us";function Ki(a){yf.call(this,{delta:a.delta,map:a.map,target:a.target})}B(Ki,yf);A("ol.control.Zoom",Ki);yf.prototype.setMap=yf.prototype.a;A("ol.easing",Te);Te.bounce=Te.Ab;Te.elastic=Te.ad;Te.linear=Te.pc;Te.upAndDown=Te.Jc;A("ol.interaction.Keyboard",Ah);Ah.prototype.addCallback=Ah.prototype.b;
|
|
function Li(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Li,Cg);A("ol.layer.ImageLayer",Li);function Mi(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Mi,Dg);A("ol.layer.TileLayer",Mi);A("ol.parser.ogc.WMSCapabilities",Mh);Mh.prototype.read=Mh.prototype.ra;A("ol.parser.ogc.WMTSCapabilities",Qh);
|
|
Qh.prototype.read=Qh.prototype.ra;A("ol.projection.addProjection",Ie);A("ol.projection.getFromCode",Me);A("ol.projection.getTransform",Ce);A("ol.projection.getTransformFromCodes",Oe);A("ol.projection.transform",function(a,b,c){b=Ce(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});A("ol.projection.transformWithCodes",function(a,b,c){b=Oe(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});Hg.prototype.getCanvas=Hg.prototype.Wa;A("ol.source.BingMaps",oi);
|
|
function Ni(a){qi.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}B(Ni,qi);A("ol.source.DebugTileSource",Ni);A("ol.source.MapQuestOSM",si);A("ol.source.MapQuestOpenAerial",ti);A("ol.source.OpenStreetMap",ui);A("ol.source.SingleImageWMS",vi);A("ol.source.Stamen",zi);A("ol.source.StamenFlavor",wi);wi.TERRAIN_BACKGROUND="background";wi.TERRAIN_LABELS="labels";wi.TERRAIN_LINES="lines";wi.TONER_2010="2010";wi.TONER_2011="2011";wi.TONER_2011_LABELS="2011-labels";
|
|
wi.TONER_2011_LINES="2011-lines";wi.TONER_2011_LITE="2011-lite";wi.TONER_BACKGROUND="background";wi.TONER_HYBRID="hybrid";wi.TONER_LABELS="labels";wi.TONER_LINES="lines";wi.TONER_LITE="lite";A("ol.source.StamenProvider",xi);xi.TERRAIN="terrain";xi.TONER="toner";xi.WATERCOLOR="watercolor";A("ol.source.StaticImage",Ai);A("ol.source.TileJSON",Ci);A("ol.source.TiledWMS",Di);
|
|
function Oi(a){bg.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}B(Oi,bg);A("ol.tilegrid.TileGrid",Oi);function Pi(a){ni.call(this,{maxZoom:a.maxZoom})}B(Pi,ni);A("ol.tilegrid.XYZ",Pi);Ue.ce={};Ue.se={};Ue.te={};Ue.Se={};})();
|