|
|
|
|
@@ -1,161 +1,164 @@
|
|
|
|
|
(function(){var h=void 0,i=!0,k=null,n=!1;function p(a){return function(){return this[a]}}var v,x=this;function y(){}function aa(a){a.wa=function(){return a.Jb?a.Jb:a.Jb=new a}}
|
|
|
|
|
(function(){var h=void 0,i=!0,k=null,m=!1;function p(a){return function(){return this[a]}}var v,x=this;function y(){}function aa(a){a.wa=function(){return a.Ib?a.Ib:a.Ib=new a}}
|
|
|
|
|
function ba(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 z(a){return a!==h}function ca(a){return"array"==ba(a)}function da(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}function D(a){return"string"==typeof a}function ea(a){return"function"==ba(a)}function fa(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function E(a){return a[ga]||(a[ga]=++ha)}var ga="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ha=0;
|
|
|
|
|
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function z(a){return a!==h}function ca(a){return"array"==ba(a)}function da(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}function C(a){return"string"==typeof a}function ea(a){return"function"==ba(a)}function fa(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function E(a){return a[ga]||(a[ga]=++ha)}var ga="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ha=0;
|
|
|
|
|
function ia(a,b,c){return a.call.apply(a.bind,arguments)}function ja(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 ka(a,b,c){ka=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ia:ja;return ka.apply(k,arguments)}
|
|
|
|
|
function la(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 ma=Date.now||function(){return+new Date};function F(a,b){var c=a.split("."),d=x;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&z(b)?d[e]=b:d=d[e]?d[e]:d[e]={}}function G(a,b){function c(){}c.prototype=b.prototype;a.p=b.prototype;a.prototype=new c};function na(a,b){this.b=a;this.a=b||k};function oa(a){Error.captureStackTrace?Error.captureStackTrace(this,oa):this.stack=Error().stack||"";a&&(this.message=String(a))}G(oa,Error);oa.prototype.name="CustomError";function pa(a){if(!qa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ra,"&"));-1!=a.indexOf("<")&&(a=a.replace(sa,"<"));-1!=a.indexOf(">")&&(a=a.replace(ta,">"));-1!=a.indexOf('"')&&(a=a.replace(ua,"""));return a}var ra=/&/g,sa=/</g,ta=/>/g,ua=/\"/g,qa=/[&<>\"]/;var H=Array.prototype,Ca=H.indexOf?function(a,b,c){return H.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(D(a))return!D(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},I=H.forEach?function(a,b,c){H.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=D(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Da=H.filter?function(a,b,c){return H.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=D(a)?a.split(""):
|
|
|
|
|
a,j=0;j<d;j++)if(j in g){var s=g[j];b.call(c,s,j,a)&&(e[f++]=s)}return e},Ea=H.map?function(a,b,c){return H.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=D(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Fa=H.some?function(a,b,c){return H.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=D(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return i;return n};function Ga(a){if(!ca(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}
|
|
|
|
|
function Ha(a){return H.concat.apply(H,arguments)}function Ia(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 Ja(a,b,c,d){H.splice.apply(a,Ka(arguments,1))}function Ka(a,b,c){return 2>=arguments.length?H.slice.call(a,b):H.slice.call(a,b,c)}function La(a){H.sort.call(a,Ma)}function Ma(a,b){return a>b?1:a<b?-1:0};function Na(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Oa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Pa(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}var Qa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Ra(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<Qa.length;f++)c=Qa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Sa(a){if("function"==typeof a.F)return a.F();if(D(a))return a.split("");if(da(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Oa(a)};function Ta(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)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Ta?(c=a.P(),d=a.F()):(c=Pa(a),d=Oa(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}v=Ta.prototype;v.l=0;v.xb=0;v.Za=p("l");v.F=function(){Ua(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};v.P=function(){Ua(this);return this.a.concat()};v.$=function(){return 0==this.l};
|
|
|
|
|
v.clear=function(){this.b={};this.xb=this.l=this.a.length=0};v.remove=function(a){return Va(this.b,a)?(delete this.b[a],this.l--,this.xb++,this.a.length>2*this.l&&Ua(this),i):n};function Ua(a){if(a.l!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Va(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.l!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Va(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function Wa(a,b){return Va(a.b,b)?a.b[b]:h}
|
|
|
|
|
v.set=function(a,b){Va(this.b,a)||(this.l++,this.a.push(a),this.xb++);this.b[a]=b};v.I=function(){return new Ta(this)};function Va(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Xa,Ya,Za,$a,ab,bb,cb;function db(){return x.navigator?x.navigator.userAgent:k}function eb(){return x.navigator}$a=Za=Ya=Xa=n;var fb;if(fb=db()){var gb=eb();Xa=0==fb.indexOf("Opera");Ya=!Xa&&-1!=fb.indexOf("MSIE");Za=!Xa&&-1!=fb.indexOf("WebKit");$a=!Xa&&!Za&&"Gecko"==gb.product}var hb=Xa,J=Ya,ib=$a,K=Za,jb,kb=eb();jb=kb&&kb.platform||"";ab=-1!=jb.indexOf("Mac");bb=-1!=jb.indexOf("Win");cb=-1!=jb.indexOf("Linux");var lb=!!eb()&&-1!=(eb().appVersion||"").indexOf("X11"),mb;
|
|
|
|
|
function la(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 ma=Date.now||function(){return+new Date};function F(a,b){var c=a.split("."),d=x;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&z(b)?d[e]=b:d=d[e]?d[e]:d[e]={}}function G(a,b){function c(){}c.prototype=b.prototype;a.p=b.prototype;a.prototype=new c};function na(a,b){this.b=a;this.a=b||k};function oa(a){Error.captureStackTrace?Error.captureStackTrace(this,oa):this.stack=Error().stack||"";a&&(this.message=String(a))}G(oa,Error);oa.prototype.name="CustomError";function pa(a){if(!qa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ra,"&"));-1!=a.indexOf("<")&&(a=a.replace(sa,"<"));-1!=a.indexOf(">")&&(a=a.replace(ta,">"));-1!=a.indexOf('"')&&(a=a.replace(ua,"""));return a}var ra=/&/g,sa=/</g,ta=/>/g,ua=/\"/g,qa=/[&<>\"]/;var H=Array.prototype,va=H.indexOf?function(a,b,c){return H.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(C(a))return!C(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},I=H.forEach?function(a,b,c){H.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=C(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},wa=H.filter?function(a,b,c){return H.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=C(a)?a.split(""):
|
|
|
|
|
a,j=0;j<d;j++)if(j in g){var s=g[j];b.call(c,s,j,a)&&(e[f++]=s)}return e},Ea=H.map?function(a,b,c){return H.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=C(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Fa=H.some?function(a,b,c){return H.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=C(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return i;return m};function Ga(a){if(!ca(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}
|
|
|
|
|
function Ha(a){return H.concat.apply(H,arguments)}function Ia(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 Ja(a,b,c,d){H.splice.apply(a,Ka(arguments,1))}function Ka(a,b,c){return 2>=arguments.length?H.slice.call(a,b):H.slice.call(a,b,c)}function La(a){H.sort.call(a,Ma)}function Ma(a,b){return a>b?1:a<b?-1:0};function Na(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Oa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Pa(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}var Qa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Ra(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<Qa.length;f++)c=Qa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Sa(a){if("function"==typeof a.G)return a.G();if(C(a))return a.split("");if(da(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Oa(a)};function Ta(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)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Ta?(c=a.P(),d=a.G()):(c=Pa(a),d=Oa(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}v=Ta.prototype;v.l=0;v.wb=0;v.Ya=p("l");v.G=function(){Ua(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};v.P=function(){Ua(this);return this.a.concat()};v.$=function(){return 0==this.l};
|
|
|
|
|
v.clear=function(){this.b={};this.wb=this.l=this.a.length=0};v.remove=function(a){return Va(this.b,a)?(delete this.b[a],this.l--,this.wb++,this.a.length>2*this.l&&Ua(this),i):m};function Ua(a){if(a.l!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Va(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.l!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Va(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function Wa(a,b){return Va(a.b,b)?a.b[b]:h}
|
|
|
|
|
v.set=function(a,b){Va(this.b,a)||(this.l++,this.a.push(a),this.wb++);this.b[a]=b};v.I=function(){return new Ta(this)};function Va(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Xa,Ya,Za,$a,ab,bb,cb;function db(){return x.navigator?x.navigator.userAgent:k}function eb(){return x.navigator}$a=Za=Ya=Xa=m;var fb;if(fb=db()){var gb=eb();Xa=0==fb.indexOf("Opera");Ya=!Xa&&-1!=fb.indexOf("MSIE");Za=!Xa&&-1!=fb.indexOf("WebKit");$a=!Xa&&!Za&&"Gecko"==gb.product}var hb=Xa,J=Ya,ib=$a,K=Za,jb,kb=eb();jb=kb&&kb.platform||"";ab=-1!=jb.indexOf("Mac");bb=-1!=jb.indexOf("Win");cb=-1!=jb.indexOf("Linux");var lb=!!eb()&&-1!=(eb().appVersion||"").indexOf("X11"),mb;
|
|
|
|
|
a:{var nb="",ob;if(hb&&x.opera)var pb=x.opera.version,nb="function"==typeof pb?pb():pb;else if(ib?ob=/rv\:([^\);]+)(\)|;)/:J?ob=/MSIE\s+([^\);]+)(\)|;)/:K&&(ob=/WebKit\/(\S+)/),ob)var qb=ob.exec(db()),nb=qb?qb[1]:"";if(J){var rb,sb=x.document;rb=sb?sb.documentMode:h;if(rb>parseFloat(nb)){mb=String(rb);break a}}mb=nb}var tb={};
|
|
|
|
|
function ub(a){var b;if(!(b=tb[a])){b=0;for(var c=String(mb).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]||"",s=RegExp("(\\d*)(\\D*)","g"),q=RegExp("(\\d*)(\\D*)","g");do{var l=s.exec(g)||["","",""],m=q.exec(j)||["","",""];if(0==l[0].length&&0==m[0].length)break;b=((0==l[1].length?0:parseInt(l[1],10))<(0==m[1].length?0:parseInt(m[1],10))?-1:(0==l[1].length?0:parseInt(l[1],
|
|
|
|
|
10))>(0==m[1].length?0:parseInt(m[1],10))?1:0)||((0==l[2].length)<(0==m[2].length)?-1:(0==l[2].length)>(0==m[2].length)?1:0)||(l[2]<m[2]?-1:l[2]>m[2]?1:0)}while(0==b)}b=tb[a]=0<=b}return b}var vb={};function wb(a){return vb[a]||(vb[a]=J&&!!document.documentMode&&document.documentMode>=a)};var xb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function yb(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=h)}return a.join("")}function zb(a,b,c){if(ca(b))for(var d=0;d<b.length;d++)zb(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}
|
|
|
|
|
function Ab(a,b){for(var c in b)zb(c,b[c],a);return a};function Bb(a,b){var c;if(a instanceof Bb)this.Y=z(b)?b:a.Y,Cb(this,a.ja),c=a.Ua,Db(this),this.Ua=c,c=a.ma,Db(this),this.ma=c,Eb(this,a.Na),c=a.La,Db(this),this.La=c,Fb(this,a.a.I()),c=a.va,Db(this),this.va=c;else if(a&&(c=String(a).match(xb))){this.Y=!!b;Cb(this,c[1]||"",i);var d=c[2]||"";Db(this);this.Ua=d?decodeURIComponent(d):"";d=c[3]||"";Db(this);this.ma=d?decodeURIComponent(d):"";Eb(this,c[4]);d=c[5]||"";Db(this);this.La=d?decodeURIComponent(d):"";Fb(this,c[6]||"",i);c=c[7]||"";Db(this);this.va=
|
|
|
|
|
c?decodeURIComponent(c):""}else this.Y=!!b,this.a=new Gb(k,0,this.Y)}v=Bb.prototype;v.ja="";v.Ua="";v.ma="";v.Na=k;v.La="";v.va="";v.Nc=n;v.Y=n;
|
|
|
|
|
v.toString=function(){var a=[],b=this.ja;b&&a.push(Hb(b,Ib),":");if(b=this.ma){a.push("//");var c=this.Ua;c&&a.push(Hb(c,Ib),"@");a.push(encodeURIComponent(String(b)));b=this.Na;b!=k&&a.push(":",String(b))}if(b=this.La)this.ma&&"/"!=b.charAt(0)&&a.push("/"),a.push(Hb(b,"/"==b.charAt(0)?Jb:Kb));(b=this.a.toString())&&a.push("?",b);(b=this.va)&&a.push("#",Hb(b,Lb));return a.join("")};v.I=function(){return new Bb(this)};
|
|
|
|
|
function ub(a){var b;if(!(b=tb[a])){b=0;for(var c=String(mb).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]||"",s=RegExp("(\\d*)(\\D*)","g"),q=RegExp("(\\d*)(\\D*)","g");do{var n=s.exec(g)||["","",""],l=q.exec(j)||["","",""];if(0==n[0].length&&0==l[0].length)break;b=((0==n[1].length?0:parseInt(n[1],10))<(0==l[1].length?0:parseInt(l[1],10))?-1:(0==n[1].length?0:parseInt(n[1],
|
|
|
|
|
10))>(0==l[1].length?0:parseInt(l[1],10))?1:0)||((0==n[2].length)<(0==l[2].length)?-1:(0==n[2].length)>(0==l[2].length)?1:0)||(n[2]<l[2]?-1:n[2]>l[2]?1:0)}while(0==b)}b=tb[a]=0<=b}return b}var vb={};function wb(a){return vb[a]||(vb[a]=J&&!!document.documentMode&&document.documentMode>=a)};var xb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function yb(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=h)}return a.join("")}function zb(a,b,c){if(ca(b))for(var d=0;d<b.length;d++)zb(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}
|
|
|
|
|
function Ab(a,b){for(var c in b)zb(c,b[c],a);return a};function Bb(a,b){var c;if(a instanceof Bb)this.Y=z(b)?b:a.Y,Cb(this,a.ja),c=a.Ta,Db(this),this.Ta=c,c=a.ma,Db(this),this.ma=c,Eb(this,a.Na),c=a.La,Db(this),this.La=c,Fb(this,a.a.I()),c=a.va,Db(this),this.va=c;else if(a&&(c=String(a).match(xb))){this.Y=!!b;Cb(this,c[1]||"",i);var d=c[2]||"";Db(this);this.Ta=d?decodeURIComponent(d):"";d=c[3]||"";Db(this);this.ma=d?decodeURIComponent(d):"";Eb(this,c[4]);d=c[5]||"";Db(this);this.La=d?decodeURIComponent(d):"";Fb(this,c[6]||"",i);c=c[7]||"";Db(this);this.va=
|
|
|
|
|
c?decodeURIComponent(c):""}else this.Y=!!b,this.a=new Gb(k,0,this.Y)}v=Bb.prototype;v.ja="";v.Ta="";v.ma="";v.Na=k;v.La="";v.va="";v.Mc=m;v.Y=m;
|
|
|
|
|
v.toString=function(){var a=[],b=this.ja;b&&a.push(Hb(b,Ib),":");if(b=this.ma){a.push("//");var c=this.Ta;c&&a.push(Hb(c,Ib),"@");a.push(encodeURIComponent(String(b)));b=this.Na;b!=k&&a.push(":",String(b))}if(b=this.La)this.ma&&"/"!=b.charAt(0)&&a.push("/"),a.push(Hb(b,"/"==b.charAt(0)?Jb:Kb));(b=this.a.toString())&&a.push("?",b);(b=this.va)&&a.push("#",Hb(b,Lb));return a.join("")};v.I=function(){return new Bb(this)};
|
|
|
|
|
function Cb(a,b,c){Db(a);a.ja=c?b?decodeURIComponent(b):"":b;a.ja&&(a.ja=a.ja.replace(/:$/,""))}function Eb(a,b){Db(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Na=b}else a.Na=k}
|
|
|
|
|
function Fb(a,b,c){Db(a);if(b instanceof Gb){a.a=b;b=a.a;if((a=a.Y)&&!b.b){Mb(b);b.a=k;var d=b.s,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),Nb(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(da(d)||D(d))I(d,c,b);else{var e;if("function"==typeof d.P)e=d.P();else if("function"!=typeof d.F)if(da(d)||D(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=Pa(d);else e=h;d=Sa(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=Hb(b,Ob)),a.a=new Gb(b,
|
|
|
|
|
0,a.Y)}function Pb(a,b,c){Db(a);ca(c)||(c=[String(c)]);Nb(a.a,b,c)}function Db(a){if(a.Nc)throw Error("Tried to modify a read-only Uri");}function Hb(a,b){return D(a)?encodeURI(a).replace(b,Qb):k}function Qb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Ib=/[#\/\?@]/g,Kb=/[\#\?:]/g,Jb=/[\#\?]/g,Ob=/[\#\?@]/g,Lb=/#/g;function Gb(a,b,c){this.a=a||k;this.b=!!c}
|
|
|
|
|
function Mb(a){if(!a.s&&(a.s=new Ta,a.l=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=Rb(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}v=Gb.prototype;v.s=k;v.l=k;v.Za=function(){Mb(this);return this.l};v.add=function(a,b){Mb(this);this.a=k;var a=Rb(this,a),c=Wa(this.s,a);c||this.s.set(a,c=[]);c.push(b);this.l++;return this};
|
|
|
|
|
v.remove=function(a){Mb(this);a=Rb(this,a);return Va(this.s.b,a)?(this.a=k,this.l-=Wa(this.s,a).length,this.s.remove(a)):n};v.clear=function(){this.s=this.a=k;this.l=0};v.$=function(){Mb(this);return 0==this.l};function Sb(a,b){Mb(a);b=Rb(a,b);return Va(a.s.b,b)}v.P=function(){Mb(this);for(var a=this.s.F(),b=this.s.P(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
|
|
|
|
|
v.F=function(a){Mb(this);var b=[];if(a)Sb(this,a)&&(b=Ha(b,Wa(this.s,Rb(this,a))));else for(var a=this.s.F(),c=0;c<a.length;c++)b=Ha(b,a[c]);return b};v.set=function(a,b){Mb(this);this.a=k;a=Rb(this,a);Sb(this,a)&&(this.l-=Wa(this.s,a).length);this.s.set(a,[b]);this.l++;return this};function Tb(a,b){var c=b?a.F(b):[];return 0<c.length?String(c[0]):h}function Nb(a,b,c){a.remove(b);0<c.length&&(a.a=k,a.s.set(Rb(a,b),Ia(c)),a.l+=c.length)}
|
|
|
|
|
v.toString=function(){if(this.a)return this.a;if(!this.s)return"";for(var a=[],b=this.s.P(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.F(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("&")};v.I=function(){var a=new Gb;a.a=this.a;this.s&&(a.s=this.s.I());return a};function Rb(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};var Ub=!J||wb(9),Vb=!J||wb(9),Wb=J&&!ub("9");!K||ub("528");ib&&ub("1.9b")||J&&ub("8")||hb&&ub("9.5")||K&&ub("528");ib&&!ub("8")||J&&ub("9");function L(){0!=Xb&&(this.hd=Error().stack,Yb[E(this)]=this)}var Xb=0,Yb={};L.prototype.Pb=n;L.prototype.Ya=function(){if(!this.Pb&&(this.Pb=i,this.q(),0!=Xb)){var a=E(this);delete Yb[a]}};function Zb(a,b){a.Q||(a.Q=[]);a.Q.push(b)}L.prototype.q=function(){this.Q&&$b.apply(k,this.Q);if(this.Wb)for(;this.Wb.length;)this.Wb.shift()()};function ac(a){a&&"function"==typeof a.Ya&&a.Ya()}function $b(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];da(d)?$b.apply(k,d):ac(d)}};function bc(a,b){this.type=a;this.b=this.target=b}v=bc.prototype;v.Ya=function(){};v.ba=n;v.Aa=n;v.Pa=i;v.$a=function(){this.ba=i};v.v=function(){this.Aa=i;this.Pa=n};function cc(a){a.$a()};function dc(a){dc[" "](a);return a}dc[" "]=y;function ec(a,b){a&&fc(this,a,b)}G(ec,bc);var gc=[1,4,2];v=ec.prototype;v.target=k;v.Ac=k;v.yc=0;v.zc=0;v.clientX=0;v.clientY=0;v.Bc=0;v.Cc=0;v.wc=0;v.ga=0;v.ya=0;v.za=n;v.M=n;v.Z=n;v.xc=n;v.Ma=n;v.C=k;
|
|
|
|
|
function fc(a,b,c){var d=a.type=b.type;bc.call(a,d);a.target=b.target||b.srcElement;a.b=c;if(c=b.relatedTarget){if(ib){var e;a:{try{dc(c.nodeName);e=i;break a}catch(f){}e=n}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.Ac=c;a.yc=K||b.offsetX!==h?b.offsetX:b.layerX;a.zc=K||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.Bc=b.screenX||0;a.Cc=b.screenY||0;a.wc=b.button;a.ga=b.keyCode||0;a.ya=b.charCode||
|
|
|
|
|
("keypress"==d?b.keyCode:0);a.za=b.ctrlKey;a.M=b.altKey;a.Z=b.shiftKey;a.xc=b.metaKey;a.Ma=ab?b.metaKey:b.ctrlKey;a.d=b.state;a.C=b;b.defaultPrevented&&a.v();delete a.ba}function hc(a){return(Ub?0==a.C.button:"click"==a.type?i:!!(a.C.button&gc[0]))&&!(K&&ab&&a.za)}v.$a=function(){ec.p.$a.call(this);this.C.stopPropagation?this.C.stopPropagation():this.C.cancelBubble=i};
|
|
|
|
|
v.v=function(){ec.p.v.call(this);var a=this.C;if(a.preventDefault)a.preventDefault();else if(a.returnValue=n,Wb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};v.uc=p("C");function ic(){}var jc=0;ic.prototype.key=0;ic.prototype.ha=n;ic.prototype.a=n;ic.prototype.handleEvent=function(a){return this.b?this.qa.call(this.mb||this.src,a):this.qa.handleEvent.call(this.qa,a)};var kc={},lc={},mc={},nc={};
|
|
|
|
|
function M(a,b,c,d,e){if(b){if(ca(b)){for(var f=0;f<b.length;f++)M(a,b[f],c,d,e);return k}var d=!!d,g=lc;b in g||(g[b]={l:0,G:0});g=g[b];d in g||(g[d]={l:0,G:0},g.l++);var g=g[d],j=E(a),s;g.G++;if(g[j]){s=g[j];for(f=0;f<s.length;f++)if(g=s[f],g.qa==c&&g.mb==e){if(g.ha)break;return s[f].key}}else s=g[j]=[],g.l++;var q=oc,l=Vb?function(a){return q.call(l.src,l.key,a)}:function(a){a=q.call(l.src,l.key,a);if(!a)return a},f=l;f.src=a;var m=g=new ic;if(ea(c))m.b=i;else if(c&&c.handleEvent&&ea(c.handleEvent))m.b=
|
|
|
|
|
n;else throw Error("Invalid listener argument");m.qa=c;m.c=f;m.src=a;m.type=b;m.capture=!!d;m.mb=e;m.a=n;m.key=++jc;m.ha=n;c=g.key;f.key=c;s.push(g);kc[c]=g;mc[j]||(mc[j]=[]);mc[j].push(g);a.addEventListener?(a==x||!a.Cb)&&a.addEventListener(b,f,d):a.attachEvent(b in nc?nc[b]:nc[b]="on"+b,f);return c}throw Error("Invalid event type");}function pc(a,b,c,d,e){if(ca(b)){for(var f=0;f<b.length;f++)pc(a,b[f],c,d,e);return k}a=M(a,b,c,d,e);kc[a].a=i;return a}
|
|
|
|
|
function qc(a,b,c,d,e){if(ca(b))for(var f=0;f<b.length;f++)qc(a,b[f],c,d,e);else{d=!!d;a:{f=lc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=E(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].qa==c&&a[f].capture==d&&a[f].mb==e){N(a[f].key);break}}}
|
|
|
|
|
function N(a){if(!kc[a])return n;var b=kc[a];if(b.ha)return n;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==x||!c.Cb)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in nc?nc[d]:nc[d]="on"+d,e);c=E(c);if(mc[c]){var e=mc[c],g=Ca(e,b);0<=g&&H.splice.call(e,g,1);0==e.length&&delete mc[c]}b.ha=i;if(b=lc[d][f][c])b.Nb=i,rc(d,f,c,b);delete kc[a];return i}
|
|
|
|
|
function rc(a,b,c,d){if(!d.Ja&&d.Nb){for(var e=0,f=0;e<d.length;e++)d[e].ha?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.Nb=n;0==f&&(delete lc[a][b][c],lc[a][b].l--,0==lc[a][b].l&&(delete lc[a][b],lc[a].l--),0==lc[a].l&&delete lc[a])}}function sc(a,b,c,d,e){var f=1,b=E(b);if(a[b]){a.G--;a=a[b];a.Ja?a.Ja++:a.Ja=1;try{for(var g=a.length,j=0;j<g;j++){var s=a[j];s&&!s.ha&&(f&=tc(s,e)!==n)}}finally{a.Ja--,rc(c,d,b,a)}}return Boolean(f)}function tc(a,b){a.a&&N(a.key);return a.handleEvent(b)}
|
|
|
|
|
function O(a,b){var c=b.type||b,d=lc;if(!(c in d))return i;if(D(b))b=new bc(b,a);else if(b instanceof bc)b.target=b.target||a;else{var e=b,b=new bc(c,a);Ra(b,e)}var e=1,f,d=d[c],c=i in d,g;if(c){f=[];for(g=a;g;g=g.ob)f.push(g);g=d[i];g.G=g.l;for(var j=f.length-1;!b.ba&&0<=j&&g.G;j--)b.b=f[j],e&=sc(g,f[j],b.type,i,b)&&b.Pa!=n}if(n in d)if(g=d[n],g.G=g.l,c)for(j=0;!b.ba&&j<f.length&&g.G;j++)b.b=f[j],e&=sc(g,f[j],b.type,n,b)&&b.Pa!=n;else for(d=a;!b.ba&&d&&g.G;d=d.ob)b.b=d,e&=sc(g,d,b.type,n,b)&&b.Pa!=
|
|
|
|
|
n;return Boolean(e)}
|
|
|
|
|
function oc(a,b){if(!kc[a])return i;var c=kc[a],d=c.type,e=lc;if(!(d in e))return i;var e=e[d],f,g;if(!Vb){var j;if(!(j=b))a:{j=["window","event"];for(var s=x;f=j.shift();)if(s[f]!=k)s=s[f];else{j=k;break a}j=s}f=j;j=i in e;s=n in e;if(j){if(0>f.keyCode||f.returnValue!=h)return i;a:{var q=n;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(l){q=i}if(q||f.returnValue==h)f.returnValue=i}}q=new ec;fc(q,f,this);f=i;try{if(j){for(var m=[],u=q.b;u;u=u.parentNode)m.push(u);g=e[i];g.G=g.l;for(var w=m.length-
|
|
|
|
|
1;!q.ba&&0<=w&&g.G;w--)q.b=m[w],f&=sc(g,m[w],d,i,q);if(s){g=e[n];g.G=g.l;for(w=0;!q.ba&&w<m.length&&g.G;w++)q.b=m[w],f&=sc(g,m[w],d,n,q)}}else f=tc(c,q)}finally{m&&(m.length=0)}return f}d=new ec(b,this);return f=tc(c,d)};var uc,vc=!J||wb(9);!ib&&!J||J&&wb(9)||ib&&ub("1.9.1");J&&ub("9");function wc(a,b){var c;c=a.className;c=D(c)&&c.match(/\S+/g)||[];for(var d=Ka(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=Ca(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function xc(a,b,c){return Math.min(Math.max(a,b),c)}function yc(a,b){var c=a%b;return 0>c*b?c+b:c};function zc(a,b){this.x=z(a)?a:0;this.y=z(b)?b:0}zc.prototype.I=function(){return new zc(this.x,this.y)};function Ac(a,b){this.width=a;this.height=b}v=Ac.prototype;v.I=function(){return new Ac(this.width,this.height)};v.$=function(){return!(this.width*this.height)};v.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};v.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};v.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Bc(a){return a?new Cc(Dc(a)):uc||(uc=new Cc)}function Ec(a,b){Na(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Fc?a.setAttribute(Fc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Fc={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 Gc(a){a=a.document.documentElement;return new Ac(a.clientWidth,a.clientHeight)}function Hc(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!vc&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',pa(g.name),'"');if(g.type){f.push(' type="',pa(g.type),'"');var j={};Ra(j,g);delete j.type;g=j}f.push(">");f=f.join("")}f=e.createElement(f);g&&(D(g)?f.className=g:ca(g)?wc.apply(k,[f].concat(g)):Ec(f,g));2<d.length&&Ic(e,f,d,2);return f}
|
|
|
|
|
function Ic(a,b,c,d){function e(c){c&&b.appendChild(D(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(da(f)&&!(fa(f)&&0<f.nodeType)){var g=I,j;a:{if((j=f)&&"number"==typeof j.length){if(fa(j)){j="function"==typeof j.item||"string"==typeof j.item;break a}if(ea(j)){j="function"==typeof j.item;break a}}j=n}g(j?Ia(f):f,e)}else e(f)}}function Jc(a,b){Ic(Dc(a),a,arguments,1)}function Kc(a,b){a.insertBefore(b,a.childNodes[0]||k)}function Lc(a){a&&a.parentNode&&a.parentNode.removeChild(a)}
|
|
|
|
|
function Fb(a,b,c){Db(a);if(b instanceof Gb){a.a=b;b=a.a;if((a=a.Y)&&!b.b){Mb(b);b.a=k;var d=b.s,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),Nb(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(da(d)||C(d))I(d,c,b);else{var e;if("function"==typeof d.P)e=d.P();else if("function"!=typeof d.G)if(da(d)||C(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=Pa(d);else e=h;d=Sa(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=Hb(b,Ob)),a.a=new Gb(b,
|
|
|
|
|
0,a.Y)}function Pb(a,b,c){Db(a);ca(c)||(c=[String(c)]);Nb(a.a,b,c)}function Db(a){if(a.Mc)throw Error("Tried to modify a read-only Uri");}function Hb(a,b){return C(a)?encodeURI(a).replace(b,Qb):k}function Qb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Ib=/[#\/\?@]/g,Kb=/[\#\?:]/g,Jb=/[\#\?]/g,Ob=/[\#\?@]/g,Lb=/#/g;function Gb(a,b,c){this.a=a||k;this.b=!!c}
|
|
|
|
|
function Mb(a){if(!a.s&&(a.s=new Ta,a.l=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=Rb(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}v=Gb.prototype;v.s=k;v.l=k;v.Ya=function(){Mb(this);return this.l};v.add=function(a,b){Mb(this);this.a=k;var a=Rb(this,a),c=Wa(this.s,a);c||this.s.set(a,c=[]);c.push(b);this.l++;return this};
|
|
|
|
|
v.remove=function(a){Mb(this);a=Rb(this,a);return Va(this.s.b,a)?(this.a=k,this.l-=Wa(this.s,a).length,this.s.remove(a)):m};v.clear=function(){this.s=this.a=k;this.l=0};v.$=function(){Mb(this);return 0==this.l};function Sb(a,b){Mb(a);b=Rb(a,b);return Va(a.s.b,b)}v.P=function(){Mb(this);for(var a=this.s.G(),b=this.s.P(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
|
|
|
|
|
v.G=function(a){Mb(this);var b=[];if(a)Sb(this,a)&&(b=Ha(b,Wa(this.s,Rb(this,a))));else for(var a=this.s.G(),c=0;c<a.length;c++)b=Ha(b,a[c]);return b};v.set=function(a,b){Mb(this);this.a=k;a=Rb(this,a);Sb(this,a)&&(this.l-=Wa(this.s,a).length);this.s.set(a,[b]);this.l++;return this};function Tb(a,b){var c=b?a.G(b):[];return 0<c.length?String(c[0]):h}function Nb(a,b,c){a.remove(b);0<c.length&&(a.a=k,a.s.set(Rb(a,b),Ia(c)),a.l+=c.length)}
|
|
|
|
|
v.toString=function(){if(this.a)return this.a;if(!this.s)return"";for(var a=[],b=this.s.P(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.G(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("&")};v.I=function(){var a=new Gb;a.a=this.a;this.s&&(a.s=this.s.I());return a};function Rb(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};var Ub=!J||wb(9),Vb=!J||wb(9),Wb=J&&!ub("9");!K||ub("528");ib&&ub("1.9b")||J&&ub("8")||hb&&ub("9.5")||K&&ub("528");ib&&!ub("8")||J&&ub("9");function L(){0!=Xb&&(this.ed=Error().stack,Yb[E(this)]=this)}var Xb=0,Yb={};L.prototype.Ob=m;L.prototype.Xa=function(){if(!this.Ob&&(this.Ob=i,this.q(),0!=Xb)){var a=E(this);delete Yb[a]}};function Zb(a,b){a.Q||(a.Q=[]);a.Q.push(b)}L.prototype.q=function(){this.Q&&$b.apply(k,this.Q);if(this.Vb)for(;this.Vb.length;)this.Vb.shift()()};function ac(a){a&&"function"==typeof a.Xa&&a.Xa()}function $b(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];da(d)?$b.apply(k,d):ac(d)}};function bc(a,b){this.type=a;this.b=this.target=b}v=bc.prototype;v.Xa=function(){};v.ba=m;v.Aa=m;v.Pa=i;v.Za=function(){this.ba=i};v.v=function(){this.Aa=i;this.Pa=m};function cc(a){a.Za()};function dc(a){dc[" "](a);return a}dc[" "]=y;function ec(a,b){a&&fc(this,a,b)}G(ec,bc);var gc=[1,4,2];v=ec.prototype;v.target=k;v.zc=k;v.xc=0;v.yc=0;v.clientX=0;v.clientY=0;v.Ac=0;v.Bc=0;v.vc=0;v.ga=0;v.ya=0;v.za=m;v.M=m;v.Z=m;v.wc=m;v.Ma=m;v.F=k;
|
|
|
|
|
function fc(a,b,c){var d=a.type=b.type;bc.call(a,d);a.target=b.target||b.srcElement;a.b=c;if(c=b.relatedTarget){if(ib){var e;a:{try{dc(c.nodeName);e=i;break a}catch(f){}e=m}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.zc=c;a.xc=K||b.offsetX!==h?b.offsetX:b.layerX;a.yc=K||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.Ac=b.screenX||0;a.Bc=b.screenY||0;a.vc=b.button;a.ga=b.keyCode||0;a.ya=b.charCode||
|
|
|
|
|
("keypress"==d?b.keyCode:0);a.za=b.ctrlKey;a.M=b.altKey;a.Z=b.shiftKey;a.wc=b.metaKey;a.Ma=ab?b.metaKey:b.ctrlKey;a.d=b.state;a.F=b;b.defaultPrevented&&a.v();delete a.ba}function hc(a){return(Ub?0==a.F.button:"click"==a.type?i:!!(a.F.button&gc[0]))&&!(K&&ab&&a.za)}v.Za=function(){ec.p.Za.call(this);this.F.stopPropagation?this.F.stopPropagation():this.F.cancelBubble=i};
|
|
|
|
|
v.v=function(){ec.p.v.call(this);var a=this.F;if(a.preventDefault)a.preventDefault();else if(a.returnValue=m,Wb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};v.tc=p("F");function ic(){}var jc=0;ic.prototype.key=0;ic.prototype.ha=m;ic.prototype.a=m;ic.prototype.handleEvent=function(a){return this.b?this.qa.call(this.lb||this.src,a):this.qa.handleEvent.call(this.qa,a)};var kc={},lc={},mc={},nc={};
|
|
|
|
|
function M(a,b,c,d,e){if(b){if(ca(b)){for(var f=0;f<b.length;f++)M(a,b[f],c,d,e);return k}var d=!!d,g=lc;b in g||(g[b]={l:0,H:0});g=g[b];d in g||(g[d]={l:0,H:0},g.l++);var g=g[d],j=E(a),s;g.H++;if(g[j]){s=g[j];for(f=0;f<s.length;f++)if(g=s[f],g.qa==c&&g.lb==e){if(g.ha)break;return s[f].key}}else s=g[j]=[],g.l++;var q=oc,n=Vb?function(a){return q.call(n.src,n.key,a)}:function(a){a=q.call(n.src,n.key,a);if(!a)return a},f=n;f.src=a;var l=g=new ic;if(ea(c))l.b=i;else if(c&&c.handleEvent&&ea(c.handleEvent))l.b=
|
|
|
|
|
m;else throw Error("Invalid listener argument");l.qa=c;l.c=f;l.src=a;l.type=b;l.capture=!!d;l.lb=e;l.a=m;l.key=++jc;l.ha=m;c=g.key;f.key=c;s.push(g);kc[c]=g;mc[j]||(mc[j]=[]);mc[j].push(g);a.addEventListener?(a==x||!a.Bb)&&a.addEventListener(b,f,d):a.attachEvent(b in nc?nc[b]:nc[b]="on"+b,f);return c}throw Error("Invalid event type");}function pc(a,b,c,d,e){if(ca(b)){for(var f=0;f<b.length;f++)pc(a,b[f],c,d,e);return k}a=M(a,b,c,d,e);kc[a].a=i;return a}
|
|
|
|
|
function qc(a,b,c,d,e){if(ca(b))for(var f=0;f<b.length;f++)qc(a,b[f],c,d,e);else{d=!!d;a:{f=lc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=E(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].qa==c&&a[f].capture==d&&a[f].lb==e){N(a[f].key);break}}}
|
|
|
|
|
function N(a){if(!kc[a])return m;var b=kc[a];if(b.ha)return m;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==x||!c.Bb)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in nc?nc[d]:nc[d]="on"+d,e);c=E(c);if(mc[c]){var e=mc[c],g=va(e,b);0<=g&&H.splice.call(e,g,1);0==e.length&&delete mc[c]}b.ha=i;if(b=lc[d][f][c])b.Mb=i,rc(d,f,c,b);delete kc[a];return i}
|
|
|
|
|
function rc(a,b,c,d){if(!d.Ja&&d.Mb){for(var e=0,f=0;e<d.length;e++)d[e].ha?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.Mb=m;0==f&&(delete lc[a][b][c],lc[a][b].l--,0==lc[a][b].l&&(delete lc[a][b],lc[a].l--),0==lc[a].l&&delete lc[a])}}function sc(a,b,c,d,e){var f=1,b=E(b);if(a[b]){a.H--;a=a[b];a.Ja?a.Ja++:a.Ja=1;try{for(var g=a.length,j=0;j<g;j++){var s=a[j];s&&!s.ha&&(f&=tc(s,e)!==m)}}finally{a.Ja--,rc(c,d,b,a)}}return Boolean(f)}function tc(a,b){a.a&&N(a.key);return a.handleEvent(b)}
|
|
|
|
|
function O(a,b){var c=b.type||b,d=lc;if(!(c in d))return i;if(C(b))b=new bc(b,a);else if(b instanceof bc)b.target=b.target||a;else{var e=b,b=new bc(c,a);Ra(b,e)}var e=1,f,d=d[c],c=i in d,g;if(c){f=[];for(g=a;g;g=g.nb)f.push(g);g=d[i];g.H=g.l;for(var j=f.length-1;!b.ba&&0<=j&&g.H;j--)b.b=f[j],e&=sc(g,f[j],b.type,i,b)&&b.Pa!=m}if(m in d)if(g=d[m],g.H=g.l,c)for(j=0;!b.ba&&j<f.length&&g.H;j++)b.b=f[j],e&=sc(g,f[j],b.type,m,b)&&b.Pa!=m;else for(d=a;!b.ba&&d&&g.H;d=d.nb)b.b=d,e&=sc(g,d,b.type,m,b)&&b.Pa!=
|
|
|
|
|
m;return Boolean(e)}
|
|
|
|
|
function oc(a,b){if(!kc[a])return i;var c=kc[a],d=c.type,e=lc;if(!(d in e))return i;var e=e[d],f,g;if(!Vb){var j;if(!(j=b))a:{j=["window","event"];for(var s=x;f=j.shift();)if(s[f]!=k)s=s[f];else{j=k;break a}j=s}f=j;j=i in e;s=m in e;if(j){if(0>f.keyCode||f.returnValue!=h)return i;a:{var q=m;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(n){q=i}if(q||f.returnValue==h)f.returnValue=i}}q=new ec;fc(q,f,this);f=i;try{if(j){for(var l=[],u=q.b;u;u=u.parentNode)l.push(u);g=e[i];g.H=g.l;for(var w=l.length-
|
|
|
|
|
1;!q.ba&&0<=w&&g.H;w--)q.b=l[w],f&=sc(g,l[w],d,i,q);if(s){g=e[m];g.H=g.l;for(w=0;!q.ba&&w<l.length&&g.H;w++)q.b=l[w],f&=sc(g,l[w],d,m,q)}}else f=tc(c,q)}finally{l&&(l.length=0)}return f}d=new ec(b,this);return f=tc(c,d)};var uc,vc=!J||wb(9);!ib&&!J||J&&wb(9)||ib&&ub("1.9.1");J&&ub("9");function wc(a,b){var c;c=a.className;c=C(c)&&c.match(/\S+/g)||[];for(var d=Ka(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=va(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function xc(a,b,c){return Math.min(Math.max(a,b),c)}function yc(a,b){var c=a%b;return 0>c*b?c+b:c};function zc(a,b){this.x=z(a)?a:0;this.y=z(b)?b:0}zc.prototype.I=function(){return new zc(this.x,this.y)};function Ac(a,b){this.width=a;this.height=b}v=Ac.prototype;v.I=function(){return new Ac(this.width,this.height)};v.$=function(){return!(this.width*this.height)};v.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};v.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};v.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Bc(a){return a?new Cc(Dc(a)):uc||(uc=new Cc)}function Ec(a,b){Na(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Fc?a.setAttribute(Fc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Fc={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 Gc(a){a=a.document.documentElement;return new Ac(a.clientWidth,a.clientHeight)}function Hc(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!vc&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',pa(g.name),'"');if(g.type){f.push(' type="',pa(g.type),'"');var j={};Ra(j,g);delete j.type;g=j}f.push(">");f=f.join("")}f=e.createElement(f);g&&(C(g)?f.className=g:ca(g)?wc.apply(k,[f].concat(g)):Ec(f,g));2<d.length&&Ic(e,f,d,2);return f}
|
|
|
|
|
function Ic(a,b,c,d){function e(c){c&&b.appendChild(C(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(da(f)&&!(fa(f)&&0<f.nodeType)){var g=I,j;a:{if((j=f)&&"number"==typeof j.length){if(fa(j)){j="function"==typeof j.item||"string"==typeof j.item;break a}if(ea(j)){j="function"==typeof j.item;break a}}j=m}g(j?Ia(f):f,e)}else e(f)}}function Jc(a,b){Ic(Dc(a),a,arguments,1)}function Kc(a,b){a.insertBefore(b,a.childNodes[0]||k)}function Lc(a){a&&a.parentNode&&a.parentNode.removeChild(a)}
|
|
|
|
|
function Dc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Cc(a){this.a=a||x.document||document}Cc.prototype.createElement=function(a){return this.a.createElement(a)};Cc.prototype.createTextNode=function(a){return this.a.createTextNode(a)};function Mc(a){var b=a.a,a=!K?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new zc(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Cc.prototype.appendChild=function(a,b){a.appendChild(b)};
|
|
|
|
|
Cc.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};/*
|
|
|
|
|
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 Nc(a,b){this.a=[];this.f=a;this.e=b||k}v=Nc.prototype;v.V=n;v.pa=n;v.ra=0;v.ac=n;v.jc=n;v.ic=0;v.Ab=function(a,b){Oc(this,a,b);this.ra--;0==this.ra&&this.V&&Pc(this)};function Oc(a,b,c){a.V=i;a.b=c;a.pa=!b;Pc(a)}function Qc(a){if(a.V){if(!a.ac)throw new Rc(a);a.ac=n}}function Sc(a){return Fa(a.a,function(a){return ea(a[1])})}
|
|
|
|
|
function Pc(a){a.c&&(a.V&&Sc(a))&&(x.clearTimeout(a.c),delete a.c);a.d&&(a.d.ic--,delete a.d);for(var b=a.b,c=n,d=n;a.a.length&&0==a.ra;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.pa?g:f)try{var j=f.call(e||a.e,b);z(j)&&(a.pa=a.pa&&(j==b||j instanceof Error),a.b=b=j);b instanceof Nc&&(d=i,a.ra++)}catch(s){b=s,a.pa=i,Sc(a)||(c=i)}}a.b=b;d&&a.ra&&(d=b,j=ka(a.Ab,a,i),f=ka(a.Ab,a,n),d.a.push([j,f,h]),d.V&&Pc(d),b.jc=i);c&&(a.c=x.setTimeout(function(){throw b;},0))}
|
|
|
|
|
function Rc(a){oa.call(this);this.a=a}G(Rc,oa);Rc.prototype.message="Deferred has already fired";Rc.prototype.name="AlreadyCalledError";function Tc(a,b){var c=b||{},d=c.document||document,e=document.createElement("SCRIPT"),f={Yb:e,Ta:h},g=new Nc(Uc,f),j=k,s=c.timeout!=k?c.timeout:5E3;0<s&&(j=window.setTimeout(function(){Vc(e,i);var b=new Wc(Xc,"Timeout reached for loading script "+a);Qc(g);Oc(g,n,b)},s),f.Ta=j);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)Vc(e,c.zb||n,j),Qc(g),Oc(g,i,k)};e.onerror=function(){Vc(e,i,j);var b=new Wc(ad,"Error while loading script "+a);Qc(g);
|
|
|
|
|
Oc(g,n,b)};Ec(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 Uc(){if(this&&this.Yb){var a=this.Yb;a&&"SCRIPT"==a.tagName&&Vc(a,i,this.Ta)}}function Vc(a,b,c){c!=k&&x.clearTimeout(c);a.onload=y;a.onerror=y;a.onreadystatechange=y;b&&window.setTimeout(function(){Lc(a)},0)}var ad=0,Xc=1;function Wc(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);oa.call(this,c);this.a=a}G(Wc,oa);function bd(a){this.b=new Bb(a);this.a="jsonp";this.Ta=5E3}var cd=0;function dd(a,b){x._callbacks_[a]&&(b?delete x._callbacks_[a]:x._callbacks_[a]=y)};function ed(a,b){this.x=a;this.y=b}G(ed,zc);ed.prototype.I=function(){return new ed(this.x,this.y)};ed.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};ed.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 R(a,b){ed.call(this,a,b)}G(R,ed);function fd(a,b){var c=yc(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};function gd(a,b){Ac.call(this,a,b)}G(gd,Ac);function hd(a,b,c,d){this.h=a;this.i=b;this.j=c;this.m=d}hd.prototype.a=function(){return this.m-this.i};hd.prototype.b=function(){return this.j-this.h};function id(a,b){return a.h<=b.j&&a.j>=b.h&&a.i<=b.m&&a.m>=b.i}hd.prototype.toString=function(){return"("+[this.h,this.i,this.j,this.m].join(", ")+")"};function S(a,b,c){ed.call(this,b,c);this.k=a}G(S,R);S.prototype.hash=function(){return(this.x<<this.k)+this.y};function jd(a){var b=Array(a.k),c=1<<a.k-1,d,e;for(d=0;d<a.k;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}S.prototype.toString=function(){return[this.k,this.x,this.y].join("/")};function kd(a,b,c,d){hd.call(this,a,b,c,d)}G(kd,hd);kd.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.j&&this.i<=a.y&&a.y<=this.m};kd.prototype.a=function(){return this.m-this.i+1};kd.prototype.b=function(){return this.j-this.h+1};function ld(a,b,c,d){hd.call(this,a,b,c,d)}G(ld,hd);function md(a){var b=arguments[0],b=new ld(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.j=Math.max(b.j,d.x);b.m=Math.max(b.m,d.y)}return b}ld.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.j&&this.i<=a.y&&a.y<=this.m};function nd(a){return new R(a.h,a.m)}
|
|
|
|
|
ld.prototype.transform=function(a){var b=a(new R(this.h,this.i)),a=a(new R(this.j,this.m));return new ld(b.x,b.y,a.x,a.y)};function od(){L.call(this)}G(od,L);v=od.prototype;v.Cb=i;v.ob=k;v.addEventListener=function(a,b,c,d){M(this,a,b,c,d)};v.removeEventListener=function(a,b,c,d){qc(this,a,b,c,d)};v.q=function(){od.p.q.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)Na(mc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)N(f.key),b++}});else{var d=E(this);if(mc[d])for(var d=mc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)N(f.key),b++}}this.ob=k};function pd(a){L.call(this);this.da=a;this.a=0}G(pd,od);pd.prototype.getKey=function(){return E(this).toString()};function qd(a,b,c){pd.call(this,a);this.e=b;this.b=new Image;c!==k&&(this.b.crossOrigin=c);this.d={};this.c=k}G(qd,pd);v=qd.prototype;v.W=function(a){if(z(a)){var b,a=E(a);if(a in this.d)return this.d[a];a:{for(b in this.d){b=n;break a}b=i}b=b?this.b:this.b.cloneNode(n);return this.d[a]=b}return this.b};v.getKey=p("e");v.Fc=function(){this.a=3;I(this.c,N);this.c=k;O(this,"change")};v.Gc=function(){this.a=2;I(this.c,N);this.c=k;O(this,"change")};
|
|
|
|
|
v.load=function(){0==this.a&&(this.a=1,this.c=[pc(this.b,"error",this.Fc,n,this),pc(this.b,"load",this.Gc,n,this)],this.b.src=this.e)};var rd={fd:"degrees",jd:"m"};function U(a,b,c){this.a=a;this.e=b;this.d=c}U.prototype.b=p("a");U.prototype.K=p("d");U.prototype.c=p("e");function sd(a,b){U.call(this,a,b.units,k);this.Vb=b}G(sd,U);var td={},ud={},vd={};function wd(a){I(a,function(a){xd(a)});I(a,function(b){I(a,function(a){b!==a&&yd(b,a,zd)})})}function xd(a){ud[a.a]=a;yd(a,a,zd)}function Ad(a){return a!=k?D(a)?Bd(a):a:Bd("EPSG:3857")}function yd(a,b,c){a=a.a;b=b.a;a in vd||(vd[a]={});vd[a][b]=c}
|
|
|
|
|
function Bd(a){var b=ud[a];"Proj4js"in x&&!z(b)&&(b=Cd(a));z(b)||(b=k);return b}function Cd(a){var b=td[a];z(b)||(b=new Proj4js.Proj(a),b=new sd(a,b),td[a]=b);return b}function Dd(a,b){var c=a.a,d=b.a,e;c in vd&&d in vd[c]&&(e=vd[c][d]);if("Proj4js"in x&&!z(e)){var f;f=(a instanceof sd?a:Cd(a.a)).Vb;var g;g=(b instanceof sd?b:Cd(a.a)).Vb;e=function(a){a=new Proj4js.Point(a.x,a.y);a=Proj4js.transform(f,g,a);return new R(a.x,a.y)};yd(a,b,e)}z(e)||(e=Ed);return e}
|
|
|
|
|
function Nc(a,b){this.a=[];this.f=a;this.e=b||k}v=Nc.prototype;v.V=m;v.pa=m;v.ra=0;v.$b=m;v.ic=m;v.hc=0;v.zb=function(a,b){Oc(this,a,b);this.ra--;0==this.ra&&this.V&&Pc(this)};function Oc(a,b,c){a.V=i;a.b=c;a.pa=!b;Pc(a)}function Qc(a){if(a.V){if(!a.$b)throw new Rc(a);a.$b=m}}function Sc(a){return Fa(a.a,function(a){return ea(a[1])})}
|
|
|
|
|
function Pc(a){a.c&&(a.V&&Sc(a))&&(x.clearTimeout(a.c),delete a.c);a.d&&(a.d.hc--,delete a.d);for(var b=a.b,c=m,d=m;a.a.length&&0==a.ra;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.pa?g:f)try{var j=f.call(e||a.e,b);z(j)&&(a.pa=a.pa&&(j==b||j instanceof Error),a.b=b=j);b instanceof Nc&&(d=i,a.ra++)}catch(s){b=s,a.pa=i,Sc(a)||(c=i)}}a.b=b;d&&a.ra&&(d=b,j=ka(a.zb,a,i),f=ka(a.zb,a,m),d.a.push([j,f,h]),d.V&&Pc(d),b.ic=i);c&&(a.c=x.setTimeout(function(){throw b;},0))}
|
|
|
|
|
function Rc(a){oa.call(this);this.a=a}G(Rc,oa);Rc.prototype.message="Deferred has already fired";Rc.prototype.name="AlreadyCalledError";function Tc(a,b){var c=b||{},d=c.document||document,e=document.createElement("SCRIPT"),f={Xb:e,Sa:h},g=new Nc(Uc,f),j=k,s=c.timeout!=k?c.timeout:5E3;0<s&&(j=window.setTimeout(function(){Vc(e,i);var b=new Wc(Xc,"Timeout reached for loading script "+a);Qc(g);Oc(g,m,b)},s),f.Sa=j);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)Vc(e,c.yb||m,j),Qc(g),Oc(g,i,k)};e.onerror=function(){Vc(e,i,j);var b=new Wc(ad,"Error while loading script "+a);Qc(g);
|
|
|
|
|
Oc(g,m,b)};Ec(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 Uc(){if(this&&this.Xb){var a=this.Xb;a&&"SCRIPT"==a.tagName&&Vc(a,i,this.Sa)}}function Vc(a,b,c){c!=k&&x.clearTimeout(c);a.onload=y;a.onerror=y;a.onreadystatechange=y;b&&window.setTimeout(function(){Lc(a)},0)}var ad=0,Xc=1;function Wc(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);oa.call(this,c);this.a=a}G(Wc,oa);function bd(a){this.b=new Bb(a);this.a="jsonp";this.Sa=5E3}var cd=0;function dd(a,b){x._callbacks_[a]&&(b?delete x._callbacks_[a]:x._callbacks_[a]=y)};function ed(a,b){this.x=a;this.y=b}G(ed,zc);ed.prototype.I=function(){return new ed(this.x,this.y)};ed.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};ed.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 R(a,b){ed.call(this,a,b)}G(R,ed);function fd(a,b){var c=yc(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};function gd(a,b){Ac.call(this,a,b)}G(gd,Ac);function hd(a,b,c,d){this.h=a;this.i=b;this.j=c;this.m=d}hd.prototype.a=function(){return this.m-this.i};hd.prototype.b=function(){return this.j-this.h};function id(a,b){return a.h<=b.j&&a.j>=b.h&&a.i<=b.m&&a.m>=b.i}hd.prototype.toString=function(){return"("+[this.h,this.i,this.j,this.m].join(", ")+")"};function S(a,b,c){ed.call(this,b,c);this.k=a}G(S,R);S.prototype.hash=function(){return(this.x<<this.k)+this.y};function jd(a){var b=Array(a.k),c=1<<a.k-1,d,e;for(d=0;d<a.k;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}S.prototype.toString=function(){return[this.k,this.x,this.y].join("/")};function kd(a,b,c,d){hd.call(this,a,b,c,d)}G(kd,hd);kd.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.j&&this.i<=a.y&&a.y<=this.m};kd.prototype.a=function(){return this.m-this.i+1};kd.prototype.b=function(){return this.j-this.h+1};function ld(a,b,c,d){hd.call(this,a,b,c,d)}G(ld,hd);function md(a){var b=arguments[0],b=new ld(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.j=Math.max(b.j,d.x);b.m=Math.max(b.m,d.y)}return b}ld.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.j&&this.i<=a.y&&a.y<=this.m};function nd(a){return new R(a.h,a.m)}
|
|
|
|
|
ld.prototype.transform=function(a){var b=a(new R(this.h,this.i)),a=a(new R(this.j,this.m));return new ld(b.x,b.y,a.x,a.y)};function od(){L.call(this)}G(od,L);v=od.prototype;v.Bb=i;v.nb=k;v.addEventListener=function(a,b,c,d){M(this,a,b,c,d)};v.removeEventListener=function(a,b,c,d){qc(this,a,b,c,d)};v.q=function(){od.p.q.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)Na(mc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)N(f.key),b++}});else{var d=E(this);if(mc[d])for(var d=mc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)N(f.key),b++}}this.nb=k};function pd(a){L.call(this);this.da=a;this.a=0}G(pd,od);pd.prototype.getKey=function(){return E(this).toString()};function qd(a,b,c){pd.call(this,a);this.e=b;this.b=new Image;c!==k&&(this.b.crossOrigin=c);this.d={};this.c=k}G(qd,pd);v=qd.prototype;v.W=function(a){if(z(a)){var b,a=E(a);if(a in this.d)return this.d[a];a:{for(b in this.d){b=m;break a}b=i}b=b?this.b:this.b.cloneNode(m);return this.d[a]=b}return this.b};v.getKey=p("e");v.Ec=function(){this.a=3;I(this.c,N);this.c=k;O(this,"change")};v.Fc=function(){this.a=2;I(this.c,N);this.c=k;O(this,"change")};
|
|
|
|
|
v.load=function(){0==this.a&&(this.a=1,this.c=[pc(this.b,"error",this.Ec,m,this),pc(this.b,"load",this.Fc,m,this)],this.b.src=this.e)};var rd={cd:"degrees",fd:"m"};function U(a,b,c){this.a=a;this.e=b;this.d=c}U.prototype.b=p("a");U.prototype.K=p("d");U.prototype.c=p("e");function sd(a,b){U.call(this,a,b.units,k);this.Ub=b}G(sd,U);var td={},ud={},vd={};function wd(a){I(a,function(a){xd(a)});I(a,function(b){I(a,function(a){b!==a&&yd(b,a,zd)})})}function xd(a){ud[a.a]=a;yd(a,a,zd)}function Ad(a){return a!=k?C(a)?Bd(a):a:Bd("EPSG:3857")}function yd(a,b,c){a=a.a;b=b.a;a in vd||(vd[a]={});vd[a][b]=c}
|
|
|
|
|
function Bd(a){var b=ud[a];"Proj4js"in x&&!z(b)&&(b=Cd(a));z(b)||(b=k);return b}function Cd(a){var b=td[a];z(b)||(b=new Proj4js.Proj(a),b=new sd(a,b),td[a]=b);return b}function Dd(a,b){var c=a.a,d=b.a,e;c in vd&&d in vd[c]&&(e=vd[c][d]);if("Proj4js"in x&&!z(e)){var f;f=(a instanceof sd?a:Cd(a.a)).Ub;var g;g=(b instanceof sd?b:Cd(a.a)).Ub;e=function(a){a=new Proj4js.Point(a.x,a.y);a=Proj4js.transform(f,g,a);return new R(a.x,a.y)};yd(a,b,e)}z(e)||(e=Ed);return e}
|
|
|
|
|
function Fd(a,b){var c=Bd(a),d=Bd(b);return Dd(c,d)}function Ed(a){return a}function zd(a){return new R(a.x,a.y)}var Gd=6378137*Math.PI,Hd=new ld(-Gd,-Gd,Gd,Gd),Id=Ea(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new U(a,"m",Hd)}),Jd=new ld(-180,-90,180,90),Kd=Ea(["CRS:84","EPSG:4326","urn:ogc:def:crs:EPSG:6.6:4326"],function(a){return new U(a,"degrees",Jd)});wd(Id);wd(Kd);
|
|
|
|
|
function Ld(a){var b=6378137*Math.PI*a.x/180,a=6378137*Math.log(Math.tan(Math.PI*(a.y+90)/360));return new R(b,a)}function Md(a){return new R(180*a.x/(6378137*Math.PI),360*Math.atan(Math.exp(a.y/6378137))/Math.PI-90)}I(Kd,function(a){I(Id,function(b){yd(a,b,Ld);yd(b,a,Md)})});function Nd(a,b,c,d){hd.call(this,a,b,c,d)}G(Nd,hd);function Od(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 Pd(a){this.a=a.resolutions;this.g=this.a.length;this.f=z(a.extent)?a.extent:k;this.d=z(a.origin)?a.origin:k;this.e=k;z(a.Qc)&&(this.e=a.Qc);this.b=z(a.Ra)?a.Ra:new gd(256,256)}Pd.prototype.c=function(a,b,c){for(var d=Qd(this,a),a=a.k-1;0<=a&&!b.call(c,a,Rd(this,d,this.a[a]));)--a};Pd.prototype.K=p("f");function Sd(a,b){return a.d===k?a.e[b]:a.d}function Rd(a,b,c){var d=Td(a,new R(b.h,b.i),c),a=Td(a,new R(b.j,b.m),c);return new kd(d.x,d.y,a.x,a.y)}
|
|
|
|
|
function Ld(a){var b=6378137*Math.PI*a.x/180,a=6378137*Math.log(Math.tan(Math.PI*(a.y+90)/360));return new R(b,a)}function Md(a){return new R(180*a.x/(6378137*Math.PI),360*Math.atan(Math.exp(a.y/6378137))/Math.PI-90)}I(Kd,function(a){I(Id,function(b){yd(a,b,Ld);yd(b,a,Md)})});function Nd(a,b,c,d){hd.call(this,a,b,c,d)}G(Nd,hd);function Od(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 Pd(a){this.a=a.resolutions;this.g=this.a.length;this.f=z(a.extent)?a.extent:k;this.d=z(a.origin)?a.origin:k;this.e=k;z(a.origins)&&(this.e=a.origins);this.b=z(a.tileSize)?a.tileSize:new gd(256,256)}Pd.prototype.c=function(a,b,c){for(var d=Qd(this,a),a=a.k-1;0<=a&&!b.call(c,a,Rd(this,d,this.a[a]));)--a};Pd.prototype.K=p("f");function Sd(a,b){return a.d===k?a.e[b]:a.d}function Rd(a,b,c){var d=Td(a,new R(b.h,b.i),c),a=Td(a,new R(b.j,b.m),c);return new kd(d.x,d.y,a.x,a.y)}
|
|
|
|
|
function Ud(a,b){var c=Sd(a,b.k),d=a.a[b.k],e=a.b;return new R(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function Qd(a,b){var c=Sd(a,b.k),d=a.a[b.k],e=a.b,f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new ld(f,c,f+e.width*d,c+e.height*d)}
|
|
|
|
|
function Td(a,b,c){var d=Od(a.a,c),e=c/a.a[d],f=Sd(a,d),b=new R(Math.floor((b.x-f.x)/c),Math.floor((b.y-f.y)/c)),f=a.b,f=new gd(f.width/e,f.height/e),d=new S(d,Math.floor(b.x/f.width),Math.floor(b.y/f.height)),c=c/a.a[d.k],a=a.b,a=new gd(a.width/c,a.height/c),c=Math.round(d.x*a.width),e=Math.round((d.x+1)*a.width),f=Math.round(d.y*a.height),a=Math.round((d.y+1)*a.height),a=new Nd(c,f,e,a);b.x<a.h?d.x-=1:b.x>=a.j&&(d.x+=1);b.y<a.i?d.y-=1:b.y>=a.m&&(d.y+=1);return d};function Vd(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 Wd(Ea(c,Vd))}return function(b){return b===k?h:a.replace("{z}",b.k).replace("{x}",b.x).replace("{y}",b.y)}}function Wd(a){return function(b){if(b!==k){var c=yc(b.hash(),a.length);return a[c](b)}}}
|
|
|
|
|
function Xd(a,b){return function(c){if(c!==k)return c=Qd(b,c),yb([a,"&","BBOX","=",encodeURIComponent(String([c.h,c.i,c.j,c.m].join()))])}}function Yd(){}function Zd(a,b){return function(c){return c===k?h:b(a(c))}};function $d(a){return function(){return a}}var ae=$d(n),be=$d(i),ce=$d(k);function de(a){L.call(this);this.e=z(a.projection)?a.projection:k;this.d=z(a.extent)?a.extent:a.projection.K();this.ta=z(a.attributions)?a.attributions:k}G(de,od);de.prototype.K=p("d");de.prototype.a=be;function ee(a){de.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=z(a.tileGrid)?a.tileGrid:k}G(ee,de);function fe(a){ee.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.O=z(a.O)?a.O:Yd;this.f=z(a.crossOrigin)?a.crossOrigin:"anonymous";this.b={}}G(fe,ee);function ge(a,b){var c=b.toString();if(c in a.b)return a.b[c];var d=a.O(b),d=z(d)?new qd(b,d,a.f):k;return a.b[c]=d};function he(a){var b=Array(a.maxZoom+1),c;for(c=0;c<=a.maxZoom;++c)b[c]=2*Gd/(256<<c);Pd.call(this,{extent:Hd,origin:new R(-Gd,Gd),resolutions:b,Ra:new gd(256,256)})}G(he,Pd);he.prototype.c=function(a,b,c){for(var d=a.x,e=a.y,a=a.k,f;;){a-=1;if(0>a)break;d=Math.floor(d/2);e=Math.floor(e/2);f=new kd(d,e,d,e);if(b.call(c,a,f))break}};var ie={bd:"Aerial",cd:"AerialWithLabels",ld:"Road",kd:"OrdnanceSurvey",ed:"CollinsBart"};
|
|
|
|
|
function je(a){fe.call(this,{projection:Bd("EPSG:3857")});this.pc=z(a.culture)?a.culture:"en-us";this.c=n;var b=new Bb("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new bd(b),a={include:"ImageryProviders",key:a.key},c=ka(this.g,this),a=a||k,d="_"+(cd++).toString(36)+ma().toString(36);x._callbacks_||(x._callbacks_={});var e=b.b.I();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&Pb(e,f,a[f]);c&&(x._callbacks_[d]=function(a){dd(d,i);c.apply(h,arguments)},Pb(e,b.a,"_callbacks_."+
|
|
|
|
|
d));f=Tc(e.toString(),{timeout:b.Ta,zb:i});f.a.push([k,function(){dd(d,n)},h]);f.V&&Pc(f)}G(je,fe);
|
|
|
|
|
je.prototype.g=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new he({maxZoom:d,Ra:new gd(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.O=Zd(function(a){if(a.k<c||d<a.k)return k;var b=1<<a.k,e=-a.y-1;return 0>e||b<=e?k:new S(a.k,yc(a.x,b),e)},Wd(Ea(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.pc);return function(a){return a===k?h:c.replace("{quadkey}",jd(a))}})));var f=Dd(Bd("EPSG:4326"),this.e);this.ta=Ea(b.imageryProviders,
|
|
|
|
|
function(a){var b=a.attribution,c={};I(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new ld(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=Rd(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new na(b,c)});this.c=i;O(this,"load")};je.prototype.a=p("c");function V(a){L.call(this);z(a)&&this.Ka(a)}G(V,od);var ke={},le={},me={};function ne(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function oe(a){return a.ol_accessors_||(a.ol_accessors_={})}function pe(a){return ke[a]||(ke[a]=a.toLowerCase()+"_changed")}function qe(a){return a.ol_bindings_||(a.ol_bindings_={})}v=V.prototype;v.hc=function(a,b,c,d){c=c||a;this.wb(a);var e=pe(c);qe(this)[a]=M(b,e,function(){re(this,a)},h,this);oe(this)[a]={target:b,key:c};d||re(this,a)};v.kc=y;
|
|
|
|
|
v.u=function(a){var b=oe(this);if(a in b){var b=b[a],a=b.target,b=b.key,c=le[b]||(le[b]="get"+ne(b));return a[c]?a[c]():a.u(b)}return this[a]};v.Ob=function(a){var b=oe(this);a in b?(a=b[a],a.target.Ob(a.key)):re(this,a)};function re(a,b){var c=pe(b);O(a,c);O(a,"changed")}v.set=function(a,b){var c=oe(this);if(a in c){var d=c[a],c=d.target,d=d.key,e=me[d]||(me[d]="set"+ne(d));if(c[e])c[e](b);else c.set(d,b)}else this[a]=b,re(this,a)};
|
|
|
|
|
v.$b=function(a){Na(a,function(a,c){var d=me[c]||(me[c]="set"+ne(c));if(this[d])this[d](a);else this.set(c,a)},this)};v.Ka=V.prototype.$b;v.wb=function(a){var b=qe(this),c=b[a];c&&(delete b[a],N(c),b=this.u(a),delete oe(this)[a],this[a]=b)};v.Zc=function(){var a=qe(this);I(Pa(a),function(a){this.wb(a)},this)};function se(a,b,c,d,e){bc.call(this,a,e);this.a=b;this.index=c;this.c=d}G(se,bc);function W(a){V.call(this);this.a=a||[];te(this)}G(W,V);v=W.prototype;v.clear=function(){for(;this.length;)this.Qb()};v.forEach=function(a,b){I(this.a,a,b)};v.sc=p("a");v.tc=function(a){return this.a[a]};v.Db=function(){return this.u("length")};v.Ca=function(a,b){Ja(this.a,a,0,b);te(this);O(this,new se("add",b,h,h,this));O(this,new se("insert_at",b,a,h,this))};v.Qb=function(){return this.Xb(this.Db()-1)};
|
|
|
|
|
v.push=function(a){var b=this.a.length;this.Ca(b,a);return b};v.Xb=function(a){var b=this.a[a];H.splice.call(this.a,a,1);te(this);O(this,new se("remove",b,h,h,this));O(this,new se("remove_at",h,a,b,this));return b};v.Tc=function(a,b){var c=this.length;if(a<c)c=this.a[a],this.a[a]=b,O(this,new se("set_at",b,a,c,this)),O(this,new se("remove",c,h,h,this)),O(this,new se("add",b,h,h,this));else{for(;c<a;++c)this.Ca(c,h);this.Ca(a,b)}};function te(a){a.set("length",a.a.length)};function ue(a,b,c){L.call(this);this.g=a;this.f=c;this.b=b||window;this.c=ka(this.d,this)}G(ue,L);ue.prototype.a=k;ue.prototype.e=n;function ve(a){if(a.a!=k){var b=we(a),c=xe(a);b&&!c&&a.b.mozRequestAnimationFrame?N(a.a):b&&c?c.call(a.b,a.a):a.b.clearTimeout(a.a)}a.a=k}ue.prototype.d=function(){this.e&&this.a&&N(this.a);this.a=k;this.g.call(this.f,ma())};ue.prototype.q=function(){ve(this);ue.p.q.call(this)};
|
|
|
|
|
function we(a){a=a.b;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}function xe(a){a=a.b;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function ye(a){L.call(this);this.ea=a||window;this.Ia=M(this.ea,"resize",this.Lc,n,this);this.ca=Gc(this.ea||window);if(K&&bb||hb&&this.ea.self!=this.ea.top)this.Va=window.setInterval(ka(this.yb,this),ze)}G(ye,od);var ze=500;v=ye.prototype;v.Ia=k;v.ea=k;v.ca=k;v.Va=k;v.q=function(){ye.p.q.call(this);this.Ia&&(N(this.Ia),this.Ia=k);this.Va&&(window.clearInterval(this.Va),this.Va=k);this.ca=this.ea=k};v.Lc=function(){this.yb()};
|
|
|
|
|
v.yb=function(){var a=Gc(this.ea||window);if(!(a==this.ca||(!a||!this.ca?0:a.width==this.ca.width&&a.height==this.ca.height)))this.ca=a,O(this,"resize")};function Ae(a,b,c,d,e){if(!J&&(!K||!ub("525")))return i;if(ab&&e)return Be(a);if(e&&!d||!c&&(17==b||18==b)||J&&d&&b==a)return n;switch(a){case 13:return!(J&&wb(9));case 27:return!K}return Be(a)}function Be(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||K&&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 n}}
|
|
|
|
|
function Ce(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function De(a,b){L.call(this);a&&(this.Fa&&Ee(this),this.oa=a,this.Ea=M(this.oa,"keypress",this,b),this.nb=M(this.oa,"keydown",this.a,b,this),this.Fa=M(this.oa,"keyup",this.b,b,this))}G(De,od);v=De.prototype;v.oa=k;v.Ea=k;v.nb=k;v.Fa=k;v.S=-1;v.R=-1;v.Wa=n;
|
|
|
|
|
function Xd(a,b){return function(c){if(c!==k)return c=Qd(b,c),yb([a,"&","BBOX","=",encodeURIComponent(String([c.h,c.i,c.j,c.m].join()))])}}function Yd(){}function Zd(a,b){return function(c){return c===k?h:b(a(c))}};function $d(a){return function(){return a}}var ae=$d(m),be=$d(i),ce=$d(k);function de(a){L.call(this);this.e=z(a.projection)?a.projection:k;this.d=z(a.extent)?a.extent:a.projection.K();this.ta=z(a.attributions)?a.attributions:k}G(de,od);de.prototype.K=p("d");de.prototype.a=be;function ee(a){de.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=z(a.tileGrid)?a.tileGrid:k}G(ee,de);function fe(a){ee.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.O=z(a.O)?a.O:Yd;this.f=z(a.crossOrigin)?a.crossOrigin:"anonymous";this.b={}}G(fe,ee);function ge(a,b){var c=b.toString();if(c in a.b)return a.b[c];var d=a.O(b),d=z(d)?new qd(b,d,a.f):k;return a.b[c]=d};function he(a){var b=Array(a.maxZoom+1),c;for(c=0;c<=a.maxZoom;++c)b[c]=2*Gd/(256<<c);Pd.call(this,{extent:Hd,origin:new R(-Gd,Gd),resolutions:b,tileSize:new gd(256,256)})}G(he,Pd);he.prototype.c=function(a,b,c){for(var d=a.x,e=a.y,a=a.k,f;;){a-=1;if(0>a)break;d=Math.floor(d/2);e=Math.floor(e/2);f=new kd(d,e,d,e);if(b.call(c,a,f))break}};var ie={Zc:"Aerial",$c:"AerialWithLabels",hd:"Road",gd:"OrdnanceSurvey",bd:"CollinsBart"};
|
|
|
|
|
function je(a){fe.call(this,{projection:Bd("EPSG:3857")});this.pc=z(a.culture)?a.culture:"en-us";this.c=m;var b=new Bb("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new bd(b),a={include:"ImageryProviders",key:a.key},c=ka(this.g,this),a=a||k,d="_"+(cd++).toString(36)+ma().toString(36);x._callbacks_||(x._callbacks_={});var e=b.b.I();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&Pb(e,f,a[f]);c&&(x._callbacks_[d]=function(a){dd(d,i);c.apply(h,arguments)},Pb(e,b.a,"_callbacks_."+
|
|
|
|
|
d));f=Tc(e.toString(),{timeout:b.Sa,yb:i});f.a.push([k,function(){dd(d,m)},h]);f.V&&Pc(f)}G(je,fe);
|
|
|
|
|
je.prototype.g=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new he({maxZoom:d,tileSize:new gd(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.O=Zd(function(a){if(a.k<c||d<a.k)return k;var b=1<<a.k,e=-a.y-1;return 0>e||b<=e?k:new S(a.k,yc(a.x,b),e)},Wd(Ea(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.pc);return function(a){return a===k?h:c.replace("{quadkey}",jd(a))}})));var f=Dd(Bd("EPSG:4326"),this.e);this.ta=
|
|
|
|
|
Ea(b.imageryProviders,function(a){var b=a.attribution,c={};I(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new ld(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=Rd(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new na(b,c)});this.c=i;O(this,"load")};je.prototype.a=p("c");function V(a){L.call(this);z(a)&&this.Ka(a)}G(V,od);var ke={},le={},me={};function ne(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function oe(a){return a.ol_accessors_||(a.ol_accessors_={})}function pe(a){return ke[a]||(ke[a]=a.toLowerCase()+"_changed")}function qe(a){return a.ol_bindings_||(a.ol_bindings_={})}v=V.prototype;v.gc=function(a,b,c,d){c=c||a;this.vb(a);var e=pe(c);qe(this)[a]=M(b,e,function(){re(this,a)},h,this);oe(this)[a]={target:b,key:c};d||re(this,a)};v.jc=y;
|
|
|
|
|
v.u=function(a){var b=oe(this);if(a in b){var b=b[a],a=b.target,b=b.key,c=le[b]||(le[b]="get"+ne(b));return a[c]?a[c]():a.u(b)}return this[a]};v.Nb=function(a){var b=oe(this);a in b?(a=b[a],a.target.Nb(a.key)):re(this,a)};function re(a,b){var c=pe(b);O(a,c);O(a,"changed")}v.set=function(a,b){var c=oe(this);if(a in c){var d=c[a],c=d.target,d=d.key,e=me[d]||(me[d]="set"+ne(d));if(c[e])c[e](b);else c.set(d,b)}else this[a]=b,re(this,a)};
|
|
|
|
|
v.Zb=function(a){Na(a,function(a,c){var d=me[c]||(me[c]="set"+ne(c));if(this[d])this[d](a);else this.set(c,a)},this)};v.Ka=V.prototype.Zb;v.vb=function(a){var b=qe(this),c=b[a];c&&(delete b[a],N(c),b=this.u(a),delete oe(this)[a],this[a]=b)};v.Wc=function(){var a=qe(this);I(Pa(a),function(a){this.vb(a)},this)};function se(a,b,c,d,e){bc.call(this,a,e);this.a=b;this.index=c;this.c=d}G(se,bc);function W(a){V.call(this);this.a=a||[];te(this)}G(W,V);v=W.prototype;v.clear=function(){for(;this.length;)this.Pb()};v.forEach=function(a,b){I(this.a,a,b)};v.rc=p("a");v.sc=function(a){return this.a[a]};v.Cb=function(){return this.u("length")};v.Ca=function(a,b){Ja(this.a,a,0,b);te(this);O(this,new se("add",b,h,h,this));O(this,new se("insert_at",b,a,h,this))};v.Pb=function(){return this.Wb(this.Cb()-1)};
|
|
|
|
|
v.push=function(a){var b=this.a.length;this.Ca(b,a);return b};v.Wb=function(a){var b=this.a[a];H.splice.call(this.a,a,1);te(this);O(this,new se("remove",b,h,h,this));O(this,new se("remove_at",h,a,b,this));return b};v.Qc=function(a,b){var c=this.length;if(a<c)c=this.a[a],this.a[a]=b,O(this,new se("set_at",b,a,c,this)),O(this,new se("remove",c,h,h,this)),O(this,new se("add",b,h,h,this));else{for(;c<a;++c)this.Ca(c,h);this.Ca(a,b)}};function te(a){a.set("length",a.a.length)};function ue(a,b,c){L.call(this);this.g=a;this.f=c;this.b=b||window;this.c=ka(this.d,this)}G(ue,L);ue.prototype.a=k;ue.prototype.e=m;function ve(a){if(a.a!=k){var b=we(a),c=xe(a);b&&!c&&a.b.mozRequestAnimationFrame?N(a.a):b&&c?c.call(a.b,a.a):a.b.clearTimeout(a.a)}a.a=k}ue.prototype.d=function(){this.e&&this.a&&N(this.a);this.a=k;this.g.call(this.f,ma())};ue.prototype.q=function(){ve(this);ue.p.q.call(this)};
|
|
|
|
|
function we(a){a=a.b;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}function xe(a){a=a.b;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function ye(a){L.call(this);this.ea=a||window;this.Ia=M(this.ea,"resize",this.Kc,m,this);this.ca=Gc(this.ea||window);if(K&&bb||hb&&this.ea.self!=this.ea.top)this.Ua=window.setInterval(ka(this.xb,this),ze)}G(ye,od);var ze=500;v=ye.prototype;v.Ia=k;v.ea=k;v.ca=k;v.Ua=k;v.q=function(){ye.p.q.call(this);this.Ia&&(N(this.Ia),this.Ia=k);this.Ua&&(window.clearInterval(this.Ua),this.Ua=k);this.ca=this.ea=k};v.Kc=function(){this.xb()};
|
|
|
|
|
v.xb=function(){var a=Gc(this.ea||window);if(!(a==this.ca||(!a||!this.ca?0:a.width==this.ca.width&&a.height==this.ca.height)))this.ca=a,O(this,"resize")};function Ae(a,b,c,d,e){if(!J&&(!K||!ub("525")))return i;if(ab&&e)return Be(a);if(e&&!d||!c&&(17==b||18==b)||J&&d&&b==a)return m;switch(a){case 13:return!(J&&wb(9));case 27:return!K}return Be(a)}function Be(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||K&&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 m}}
|
|
|
|
|
function Ce(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function De(a,b){L.call(this);a&&(this.Fa&&Ee(this),this.oa=a,this.Ea=M(this.oa,"keypress",this,b),this.mb=M(this.oa,"keydown",this.a,b,this),this.Fa=M(this.oa,"keyup",this.b,b,this))}G(De,od);v=De.prototype;v.oa=k;v.Ea=k;v.mb=k;v.Fa=k;v.S=-1;v.R=-1;v.Va=m;
|
|
|
|
|
var Fe={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},Ge={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},He=J||K&&ub("525"),Ie=ab&&ib;
|
|
|
|
|
De.prototype.a=function(a){if(K&&(17==this.S&&!a.za||18==this.S&&!a.M))this.R=this.S=-1;He&&!Ae(a.ga,this.S,a.Z,a.za,a.M)?this.handleEvent(a):(this.R=ib?Ce(a.ga):a.ga,Ie&&(this.Wa=a.M))};De.prototype.b=function(a){this.R=this.S=-1;this.Wa=a.M};
|
|
|
|
|
De.prototype.handleEvent=function(a){var b=a.C,c,d,e=b.altKey;J&&"keypress"==a.type?(c=this.R,d=13!=c&&27!=c?b.keyCode:0):K&&"keypress"==a.type?(c=this.R,d=0<=b.charCode&&63232>b.charCode&&Be(c)?b.charCode:0):hb?(c=this.R,d=Be(c)?b.keyCode:0):(c=b.keyCode||this.R,d=b.charCode||0,Ie&&(e=this.Wa),ab&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Fe?f=Fe[c]:25==c&&a.Z&&(f=9):g&&g in Ge&&(f=Ge[g]);a=f==this.S;this.S=f;b=new Je(f,d,a,b);b.M=e;O(this,b)};
|
|
|
|
|
function Ee(a){a.Ea&&(N(a.Ea),N(a.nb),N(a.Fa),a.Ea=k,a.nb=k,a.Fa=k);a.oa=k;a.S=-1;a.R=-1}De.prototype.q=function(){De.p.q.call(this);Ee(this)};function Je(a,b,c,d){d&&fc(this,d,h);this.type="key";this.ga=a;this.ya=b;this.a=c}G(Je,ec);function Ke(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}Ke.prototype.I=function(){return new Ke(this.top,this.right,this.bottom,this.left)};Ke.prototype.contains=function(a){return!this||!a?n:a instanceof Ke?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 Le(a,b,c){D(b)?Me(a,c,b):Na(b,la(Me,a))}function Me(a,b,c){a.style[String(c).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()})]=b}function Ne(a,b){var c=Dc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function Oe(a,b){return a.currentStyle?a.currentStyle[b]:k}function Pe(a,b){return Ne(a,b)||Oe(a,b)||a.style&&a.style[b]}
|
|
|
|
|
De.prototype.a=function(a){if(K&&(17==this.S&&!a.za||18==this.S&&!a.M))this.R=this.S=-1;He&&!Ae(a.ga,this.S,a.Z,a.za,a.M)?this.handleEvent(a):(this.R=ib?Ce(a.ga):a.ga,Ie&&(this.Va=a.M))};De.prototype.b=function(a){this.R=this.S=-1;this.Va=a.M};
|
|
|
|
|
De.prototype.handleEvent=function(a){var b=a.F,c,d,e=b.altKey;J&&"keypress"==a.type?(c=this.R,d=13!=c&&27!=c?b.keyCode:0):K&&"keypress"==a.type?(c=this.R,d=0<=b.charCode&&63232>b.charCode&&Be(c)?b.charCode:0):hb?(c=this.R,d=Be(c)?b.keyCode:0):(c=b.keyCode||this.R,d=b.charCode||0,Ie&&(e=this.Va),ab&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Fe?f=Fe[c]:25==c&&a.Z&&(f=9):g&&g in Ge&&(f=Ge[g]);a=f==this.S;this.S=f;b=new Je(f,d,a,b);b.M=e;O(this,b)};
|
|
|
|
|
function Ee(a){a.Ea&&(N(a.Ea),N(a.mb),N(a.Fa),a.Ea=k,a.mb=k,a.Fa=k);a.oa=k;a.S=-1;a.R=-1}De.prototype.q=function(){De.p.q.call(this);Ee(this)};function Je(a,b,c,d){d&&fc(this,d,h);this.type="key";this.ga=a;this.ya=b;this.a=c}G(Je,ec);function Ke(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}Ke.prototype.I=function(){return new Ke(this.top,this.right,this.bottom,this.left)};Ke.prototype.contains=function(a){return!this||!a?m:a instanceof Ke?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 Le(a,b,c){C(b)?Me(a,c,b):Na(b,la(Me,a))}function Me(a,b,c){a.style[String(c).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()})]=b}function Ne(a,b){var c=Dc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function Oe(a,b){return a.currentStyle?a.currentStyle[b]:k}function Pe(a,b){return Ne(a,b)||Oe(a,b)||a.style&&a.style[b]}
|
|
|
|
|
function Qe(a,b){var c,d,e=ib&&(ab||lb)&&ub("1.9");b instanceof zc?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Re(c,e);a.style.top=Re(d,e)}function Se(a){var b=a.getBoundingClientRect();J&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
|
|
|
|
|
function Te(a){if(J&&!wb(8))return a.offsetParent;for(var b=Dc(a),c=Pe(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Pe(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 Ue(a,b){var c=Ve(a),d=Ve(b);return new zc(c.x-d.x,c.y-d.y)}
|
|
|
|
|
function Ve(a){var b=new zc;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Se(a);b.x=c.left;b.y=c.top}else{c=Mc(Bc(a));var d,e=Dc(a),f=Pe(a,"position"),g=ib&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new zc(0,0),s;d=e?Dc(e):document;if(s=J)if(s=!wb(9))Bc(d),s=n;s=s?d.body:d.documentElement;if(a!=s)if(a.getBoundingClientRect)d=Se(a),e=Mc(Bc(e)),j.x=d.left+e.x,j.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
|
|
|
|
|
function Ve(a){var b=new zc;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Se(a);b.x=c.left;b.y=c.top}else{c=Mc(Bc(a));var d,e=Dc(a),f=Pe(a,"position"),g=ib&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new zc(0,0),s;d=e?Dc(e):document;if(s=J)if(s=!wb(9))Bc(d),s=m;s=s?d.body:d.documentElement;if(a!=s)if(a.getBoundingClientRect)d=Se(a),e=Mc(Bc(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(s),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(K&&"fixed"==Pe(g,"position")){j.x+=e.body.scrollLeft;j.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(hb||K&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=Te(g))&&g!=e.body&&g!=s;)if(j.x-=g.scrollLeft,!hb||"TR"!=g.tagName)j.y-=g.scrollTop}b.x=j.x-c.x;b.y=j.y-c.y}if(ib&&!ub(12)){var q;J?q="-ms-transform":K?q="-webkit-transform":
|
|
|
|
|
hb?q="-o-transform":ib&&(q="-moz-transform");var l;q&&(l=Pe(a,q));l||(l=Pe(a,"transform"));l?(a=l.match(We),a=!a?new zc(0,0):new zc(parseFloat(a[1]),parseFloat(a[2]))):a=new zc(0,0);b=new zc(b.x+a.x,b.y+a.y)}}else q=ea(a.uc),l=a,a.targetTouches?l=a.targetTouches[0]:q&&a.C.targetTouches&&(l=a.C.targetTouches[0]),b.x=l.clientX,b.y=l.clientY;return b}function Re(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Xe(a,b){a.style.display=b?"":"none"}
|
|
|
|
|
hb?q="-o-transform":ib&&(q="-moz-transform");var n;q&&(n=Pe(a,q));n||(n=Pe(a,"transform"));n?(a=n.match(We),a=!a?new zc(0,0):new zc(parseFloat(a[1]),parseFloat(a[2]))):a=new zc(0,0);b=new zc(b.x+a.x,b.y+a.y)}}else q=ea(a.tc),n=a,a.targetTouches?n=a.targetTouches[0]:q&&a.F.targetTouches&&(n=a.F.targetTouches[0]),b.x=n.clientX,b.y=n.clientY;return b}function Re(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Xe(a,b){a.style.display=b?"":"none"}
|
|
|
|
|
function Ye(a,b){Bc(Dc(a));if(J&&!ub("8")){var c=a.style,d;if(J){d=Ze(a,Oe(a,"paddingLeft"));var e=Ze(a,Oe(a,"paddingRight")),f=Ze(a,Oe(a,"paddingTop")),g=Ze(a,Oe(a,"paddingBottom"));d=new Ke(f,e,g,d)}else d=Ne(a,"paddingLeft"),e=Ne(a,"paddingRight"),f=Ne(a,"paddingTop"),g=Ne(a,"paddingBottom"),d=new Ke(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(J)var e=$e(a,"borderLeft"),f=$e(a,"borderRight"),g=$e(a,"borderTop"),j=$e(a,"borderBottom"),e=new Ke(g,f,j,e);else e=Ne(a,"borderLeftWidth"),
|
|
|
|
|
f=Ne(a,"borderRightWidth"),g=Ne(a,"borderTopWidth"),j=Ne(a,"borderBottomWidth"),e=new Ke(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,ib?c.MozBoxSizing="border-box":K?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 Ze(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 af={thin:2,medium:4,thick:6};function $e(a,b){if("none"==Oe(a,b+"Style"))return 0;var c=Oe(a,b+"Width");return c in af?af[c]:Ze(a,c)}var We=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function bf(a){L.call(this);this.a=a;a=fa(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==Pe(a,"direction");this.b=M(this.a,ib?"DOMMouseScroll":"mousewheel",this)}G(bf,od);
|
|
|
|
|
bf.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.C;if("mousewheel"==a.type){c=1;if(J||K&&(bb||ub("532.0")))c=40;d=cf(-a.wheelDelta,c);z(a.wheelDeltaX)?(b=cf(-a.wheelDeltaX,c),c=cf(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),z(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=xc(b,-this.c,this.c));"number"==typeof this.d&&(c=xc(c,-this.d,this.d));this.e&&(b=-b);b=new df(d,a,b,c);O(this,b)};function cf(a,b){return K&&(ab||cb)&&0!=a%b?a:a/b}
|
|
|
|
|
bf.prototype.q=function(){bf.p.q.call(this);N(this.b);delete this.b};function df(a,b,c,d){b&&fc(this,b,h);this.type="mousewheel";this.e=a;this.c=c;this.a=d}G(df,ec);var ef=document&&"ontouchstart"in document.documentElement;function ff(){this.d=xc(255,0,255);this.c=xc(255,0,255);this.b=xc(255,0,255);this.a=xc(1,0,1)};function gf(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}gf.prototype.a=4;gf.prototype.set=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};gf.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(gf.BYTES_PER_ELEMENT=4,gf.prototype.BYTES_PER_ELEMENT=gf.prototype.a,gf.prototype.set=gf.prototype.set,gf.prototype.toString=gf.prototype.toString,F("Float32Array",gf));function hf(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}hf.prototype.a=8;hf.prototype.set=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};hf.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(hf.BYTES_PER_ELEMENT=8,hf.prototype.BYTES_PER_ELEMENT=hf.prototype.a,hf.prototype.set=hf.prototype.set,hf.prototype.toString=hf.prototype.toString,F("Float64Array",hf));function jf(){var a=Array(16);kf(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function kf(a,b,c,d,e,f,g,j,s,q,l,m,u,w,r,t,B){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=j;a[7]=s;a[8]=q;a[9]=l;a[10]=m;a[11]=u;a[12]=w;a[13]=r;a[14]=t;a[15]=B}function lf(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 mf(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],j=a[4],s=a[5],q=a[6],l=a[7],m=a[8],u=a[9],w=a[10],r=a[11],t=a[12],B=a[13],C=a[14],a=a[15],A=b[0],P=b[1],Y=b[2],T=b[3],va=b[4],wa=b[5],xa=b[6],ya=b[7],za=b[8],Aa=b[9],Ba=b[10],Q=b[11],Yc=b[12],Zc=b[13],$c=b[14],b=b[15];c[0]=d*A+j*P+m*Y+t*T;c[1]=e*A+s*P+u*Y+B*T;c[2]=f*A+q*P+w*Y+C*T;c[3]=g*A+l*P+r*Y+a*T;c[4]=d*va+j*wa+m*xa+t*ya;c[5]=e*va+s*wa+u*xa+B*ya;c[6]=f*va+q*wa+w*xa+C*ya;c[7]=g*va+l*wa+r*xa+a*ya;c[8]=d*za+j*Aa+m*Ba+t*Q;c[9]=e*za+s*Aa+u*Ba+B*Q;
|
|
|
|
|
c[10]=f*za+q*Aa+w*Ba+C*Q;c[11]=g*za+l*Aa+r*Ba+a*Q;c[12]=d*Yc+j*Zc+m*$c+t*b;c[13]=e*Yc+s*Zc+u*$c+B*b;c[14]=f*Yc+q*Zc+w*$c+C*b;c[15]=g*Yc+l*Zc+r*$c+a*b}function nf(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 of(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 pf(a,b,c){kf(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 qf(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],j=a[5],s=a[6],q=a[7],l=Math.cos(b),m=Math.sin(b);a[0]=c*l+g*m;a[1]=d*l+j*m;a[2]=e*l+s*m;a[3]=f*l+q*m;a[4]=c*-m+g*l;a[5]=d*-m+j*l;a[6]=e*-m+s*l;a[7]=f*-m+q*l}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function rf(a,b){this.b=a;this.a=b}rf.prototype.getKey=p("b");rf.prototype.I=function(){return new rf(this.b,this.a)};function sf(a){this.a=[];if(a)a:{var b,c;if(a instanceof sf){if(b=a.P(),c=a.F(),0>=a.Za()){for(var a=this.a,d=0;d<b.length;d++)a.push(new rf(b[d],c[d]));break a}}else b=Pa(a),c=Oa(a);for(d=0;d<b.length;d++)tf(this,b[d],c[d])}}function tf(a,b,c){var d=a.a;d.push(new rf(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c}v=sf.prototype;
|
|
|
|
|
v.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ga(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].getKey()<b[f].getKey()?g:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.a}};v.F=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].a);return b};v.P=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};v.I=function(){return new sf(this)};v.Za=function(){return this.a.length};
|
|
|
|
|
v.$=function(){return 0==this.a.length};v.clear=function(){Ga(this.a)};function uf(){sf.call(this)}G(uf,sf);function vf(a){this.g=a;this.f=8;this.d=0;this.a=new uf;this.c={}}vf.prototype.b=function(a,b,c){if(0==a.a){var d=a.getKey();if(!(d in this.c)){var e=this.g(a,b,c);z(e)&&(tf(this.a,e,arguments),this.c[d]=i)}}};vf.prototype.e=function(){--this.d};function X(a){V.call(this);this.g=a.source;this.n(z(a.brightness)?a.brightness:0);this.o(z(a.contrast)?a.contrast:1);this.r(z(a.hue)?a.hue:0);this.w(z(a.opacity)?a.opacity:1);this.A(z(a.saturation)?a.saturation:1);this.D(z(a.visible)?a.visible:i);this.g.a()||pc(this.g,"load",this.J,n,this)}G(X,V);X.prototype.b=function(){return this.u("brightness")};X.prototype.getBrightness=X.prototype.b;X.prototype.c=function(){return this.u("contrast")};X.prototype.getContrast=X.prototype.c;X.prototype.d=function(){return this.u("hue")};
|
|
|
|
|
bf.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.F;if("mousewheel"==a.type){c=1;if(J||K&&(bb||ub("532.0")))c=40;d=cf(-a.wheelDelta,c);z(a.wheelDeltaX)?(b=cf(-a.wheelDeltaX,c),c=cf(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),z(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=xc(b,-this.c,this.c));"number"==typeof this.d&&(c=xc(c,-this.d,this.d));this.e&&(b=-b);b=new df(d,a,b,c);O(this,b)};function cf(a,b){return K&&(ab||cb)&&0!=a%b?a:a/b}
|
|
|
|
|
bf.prototype.q=function(){bf.p.q.call(this);N(this.b);delete this.b};function df(a,b,c,d){b&&fc(this,b,h);this.type="mousewheel";this.e=a;this.c=c;this.a=d}G(df,ec);var ef=document&&"ontouchstart"in document.documentElement;function ff(){this.c=xc(255,0,255);this.b=xc(255,0,255);this.a=xc(255,0,255);this.d=xc(1,0,1)};function gf(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}gf.prototype.a=4;gf.prototype.set=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};gf.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(gf.BYTES_PER_ELEMENT=4,gf.prototype.BYTES_PER_ELEMENT=gf.prototype.a,gf.prototype.set=gf.prototype.set,gf.prototype.toString=gf.prototype.toString,F("Float32Array",gf));function hf(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}hf.prototype.a=8;hf.prototype.set=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};hf.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(hf.BYTES_PER_ELEMENT=8,hf.prototype.BYTES_PER_ELEMENT=hf.prototype.a,hf.prototype.set=hf.prototype.set,hf.prototype.toString=hf.prototype.toString,F("Float64Array",hf));function jf(){var a=Array(16);kf(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function kf(a,b,c,d,e,f,g,j,s,q,n,l,u,w,r,t,B){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=j;a[7]=s;a[8]=q;a[9]=n;a[10]=l;a[11]=u;a[12]=w;a[13]=r;a[14]=t;a[15]=B}function lf(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 mf(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],j=a[4],s=a[5],q=a[6],n=a[7],l=a[8],u=a[9],w=a[10],r=a[11],t=a[12],B=a[13],D=a[14],a=a[15],A=b[0],P=b[1],Y=b[2],T=b[3],xa=b[4],ya=b[5],za=b[6],Aa=b[7],Ba=b[8],Ca=b[9],Da=b[10],Q=b[11],Yc=b[12],Zc=b[13],$c=b[14],b=b[15];c[0]=d*A+j*P+l*Y+t*T;c[1]=e*A+s*P+u*Y+B*T;c[2]=f*A+q*P+w*Y+D*T;c[3]=g*A+n*P+r*Y+a*T;c[4]=d*xa+j*ya+l*za+t*Aa;c[5]=e*xa+s*ya+u*za+B*Aa;c[6]=f*xa+q*ya+w*za+D*Aa;c[7]=g*xa+n*ya+r*za+a*Aa;c[8]=d*Ba+j*Ca+l*Da+t*Q;c[9]=e*Ba+s*Ca+u*Da+B*Q;
|
|
|
|
|
c[10]=f*Ba+q*Ca+w*Da+D*Q;c[11]=g*Ba+n*Ca+r*Da+a*Q;c[12]=d*Yc+j*Zc+l*$c+t*b;c[13]=e*Yc+s*Zc+u*$c+B*b;c[14]=f*Yc+q*Zc+w*$c+D*b;c[15]=g*Yc+n*Zc+r*$c+a*b}function nf(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 of(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 pf(a,b,c){kf(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 qf(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],j=a[5],s=a[6],q=a[7],n=Math.cos(b),l=Math.sin(b);a[0]=c*n+g*l;a[1]=d*n+j*l;a[2]=e*n+s*l;a[3]=f*n+q*l;a[4]=c*-l+g*n;a[5]=d*-l+j*n;a[6]=e*-l+s*n;a[7]=f*-l+q*n}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function rf(a,b){this.b=a;this.a=b}rf.prototype.getKey=p("b");rf.prototype.I=function(){return new rf(this.b,this.a)};function sf(a){this.a=[];if(a)a:{var b,c;if(a instanceof sf){if(b=a.P(),c=a.G(),0>=a.Ya()){for(var a=this.a,d=0;d<b.length;d++)a.push(new rf(b[d],c[d]));break a}}else b=Pa(a),c=Oa(a);for(d=0;d<b.length;d++)tf(this,b[d],c[d])}}function tf(a,b,c){var d=a.a;d.push(new rf(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c}v=sf.prototype;
|
|
|
|
|
v.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ga(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].getKey()<b[f].getKey()?g:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.a}};v.G=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].a);return b};v.P=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};v.I=function(){return new sf(this)};v.Ya=function(){return this.a.length};
|
|
|
|
|
v.$=function(){return 0==this.a.length};v.clear=function(){Ga(this.a)};function uf(){sf.call(this)}G(uf,sf);function vf(a){this.g=a;this.f=8;this.d=0;this.a=new uf;this.c={}}vf.prototype.b=function(a,b,c){if(0==a.a){var d=a.getKey();if(!(d in this.c)){var e=this.g(a,b,c);z(e)&&(tf(this.a,e,arguments),this.c[d]=i)}}};vf.prototype.e=function(){--this.d};function X(a){V.call(this);this.g=a.source;this.n(z(a.brightness)?a.brightness:0);this.o(z(a.contrast)?a.contrast:1);this.r(z(a.hue)?a.hue:0);this.w(z(a.opacity)?a.opacity:1);this.B(z(a.saturation)?a.saturation:1);this.C(z(a.visible)?a.visible:i);this.g.a()||pc(this.g,"load",this.J,m,this)}G(X,V);X.prototype.b=function(){return this.u("brightness")};X.prototype.getBrightness=X.prototype.b;X.prototype.c=function(){return this.u("contrast")};X.prototype.getContrast=X.prototype.c;X.prototype.d=function(){return this.u("hue")};
|
|
|
|
|
X.prototype.getHue=X.prototype.d;X.prototype.e=function(){return this.u("opacity")};X.prototype.getOpacity=X.prototype.e;X.prototype.f=function(){return this.u("saturation")};X.prototype.getSaturation=X.prototype.f;X.prototype.X=p("g");X.prototype.a=function(){return this.u("visible")};X.prototype.getVisible=X.prototype.a;X.prototype.J=function(){O(this,"load")};X.prototype.n=function(a){a=xc(a,-1,1);a!=this.b()&&this.set("brightness",a)};X.prototype.setBrightness=X.prototype.n;
|
|
|
|
|
X.prototype.o=function(a){a=Math.max(0,a);a!=this.c()&&this.set("contrast",a)};X.prototype.setContrast=X.prototype.o;X.prototype.r=function(a){a!=this.d()&&this.set("hue",a)};X.prototype.setHue=X.prototype.r;X.prototype.w=function(a){a=xc(a,0,1);a!=this.e()&&this.set("opacity",a)};X.prototype.setOpacity=X.prototype.w;X.prototype.A=function(a){a=Math.max(0,a);a!=this.f()&&this.set("saturation",a)};X.prototype.setSaturation=X.prototype.A;
|
|
|
|
|
X.prototype.D=function(a){a=!!a;a!=this.a()&&this.set("visible",a)};X.prototype.setVisible=X.prototype.D;function wf(a,b,c){bc.call(this,a);this.map=b;this.Aa=n;this.f=z(c)?c:k}G(wf,bc);wf.prototype.v=function(){wf.p.v.call(this);this.Aa=i};function xf(a,b){zc.call(this,a,b)}G(xf,zc);function yf(a,b,c){wf.call(this,a,b);this.a=c;this.e=this.d=k}G(yf,wf);yf.prototype.c=function(){this.d===k&&(this.d=zf(this.map,Af(this)));return this.d};function Af(a){if(a.e===k){var b=Ue(a.a,a.map.b);a.e=new xf(b.x,b.y)}return a.e}function Bf(a){this.a=a;this.d=k;this.c=n;this.f=0;this.e=this.b=k;a=this.a.b;ef||M(a,["click","dblclick"],this.Xa,n,this);M(a,ef?"touchstart":"mousedown",this.Gb,n,this)}G(Bf,od);
|
|
|
|
|
function Cf(a){if(ef){var b=a.C;b.touches&&b.touches.length&&(b=b.touches[0],a.clientX=b.clientX,a.clientY=b.clientY)}}v=Bf.prototype;v.Xa=function(a){if(!this.c){var b;"dblclick"!==a.type&&(b=new yf(Df,this.a,a),O(this,b));this.f||(b=new yf(Ef,this.a,a),O(this,b))}};v.Hb=function(a){if(this.d){if(!this.c){var b=(new Date).getTime();this.f=!this.f||250<b-this.f?b:0;ef&&this.Xa(this.e)}this.e=k;I(this.b,N);this.d=this.b=k;this.c&&O(this,new yf(Ff,this.a,a))}};
|
|
|
|
|
v.Gb=function(a){this.d||(Cf(a),this.e=a,this.d={clientX:a.clientX,clientY:a.clientY},this.c=n,this.b=[M(document,ef?"touchmove":"mousemove",this.qc,n,this),M(document,ef?"touchend":"mouseup",this.Hb,n,this)],"mousedown"===a.type&&a.v())};v.qc=function(a){var b;this.c||(this.c=i,b=new yf(Gf,this.a,this.e),O(this,b));Cf(a);this.d={clientX:a.clientX,clientY:a.clientY};a.v();b=new yf(Hf,this.a,a);O(this,b)};
|
|
|
|
|
v.q=function(){var a=this.a.b;qc(a,ef?"touchstart":"mousedown",this.Gb,n,this);qc(a,ef?"touchend":"mouseup",this.Hb,n,this);qc(a,"click",this.Xa,n,this);this.b!==k&&(I(this.b,N),this.b=k);Bf.p.q.call(this)};var Df="click",Ef="dblclick",Gf="dragstart",Hf="drag",Ff="dragend";function If(a,b){if(z(a))return a+b};function Jf(){this.a=[0,0]}G(Jf,V);function Kf(a){this.resolution=a;this.rotation=If};function Z(a){this.a=[0,0];var a=a||{},b={};b.center=z(a.center)?a.center:k;b.projection=Ad(a.projection);if(z(a.resolution))b.resolution=a.resolution;else if(z(a.a)){var c=b.projection.K(),c=Math.max(c.j-c.h,c.m-c.i);b.resolution=c/(256<<a.a)}b.rotation=a.rotation;this.Ka(b);if(z(a.resolutions))var d=a.resolutions,a=function(a,b){if(z(a)){var c=Od(d,a),c=xc(c+b,0,d.length-1);return d[c]}};else{z(a.maxResolution)&&z(a.numZoomLevels)&&z(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,a=a.zoomFactor):
|
|
|
|
|
X.prototype.o=function(a){a=Math.max(0,a);a!=this.c()&&this.set("contrast",a)};X.prototype.setContrast=X.prototype.o;X.prototype.r=function(a){a!=this.d()&&this.set("hue",a)};X.prototype.setHue=X.prototype.r;X.prototype.w=function(a){a=xc(a,0,1);a!=this.e()&&this.set("opacity",a)};X.prototype.setOpacity=X.prototype.w;X.prototype.B=function(a){a=Math.max(0,a);a!=this.f()&&this.set("saturation",a)};X.prototype.setSaturation=X.prototype.B;
|
|
|
|
|
X.prototype.C=function(a){a=!!a;a!=this.a()&&this.set("visible",a)};X.prototype.setVisible=X.prototype.C;function wf(a,b,c){bc.call(this,a);this.map=b;this.Aa=m;this.f=z(c)?c:k}G(wf,bc);wf.prototype.v=function(){wf.p.v.call(this);this.Aa=i};function xf(a,b){zc.call(this,a,b)}G(xf,zc);function yf(a,b,c){wf.call(this,a,b);this.a=c;this.e=this.d=k}G(yf,wf);yf.prototype.c=function(){this.d===k&&(this.d=zf(this.map,Af(this)));return this.d};function Af(a){if(a.e===k){var b=Ue(a.a,a.map.b);a.e=new xf(b.x,b.y)}return a.e}function Bf(a){this.a=a;this.d=k;this.c=m;this.f=0;this.e=this.b=k;a=this.a.b;ef||M(a,["click","dblclick"],this.Wa,m,this);M(a,ef?"touchstart":"mousedown",this.Fb,m,this)}G(Bf,od);
|
|
|
|
|
function Cf(a){if(ef){var b=a.F;b.touches&&b.touches.length&&(b=b.touches[0],a.clientX=b.clientX,a.clientY=b.clientY)}}v=Bf.prototype;v.Wa=function(a){if(!this.c){var b;"dblclick"!==a.type&&(b=new yf(Df,this.a,a),O(this,b));this.f||(b=new yf(Ef,this.a,a),O(this,b))}};v.Gb=function(a){if(this.d){if(!this.c){var b=(new Date).getTime();this.f=!this.f||250<b-this.f?b:0;ef&&this.Wa(this.e)}this.e=k;I(this.b,N);this.d=this.b=k;this.c&&O(this,new yf(Ff,this.a,a))}};
|
|
|
|
|
v.Fb=function(a){this.d||(Cf(a),this.e=a,this.d={clientX:a.clientX,clientY:a.clientY},this.c=m,this.b=[M(document,ef?"touchmove":"mousemove",this.qc,m,this),M(document,ef?"touchend":"mouseup",this.Gb,m,this)],"mousedown"===a.type&&a.v())};v.qc=function(a){var b;this.c||(this.c=i,b=new yf(Gf,this.a,this.e),O(this,b));Cf(a);this.d={clientX:a.clientX,clientY:a.clientY};a.v();b=new yf(Hf,this.a,a);O(this,b)};
|
|
|
|
|
v.q=function(){var a=this.a.b;qc(a,ef?"touchstart":"mousedown",this.Fb,m,this);qc(a,ef?"touchend":"mouseup",this.Gb,m,this);qc(a,"click",this.Wa,m,this);this.b!==k&&(I(this.b,N),this.b=k);Bf.p.q.call(this)};var Df="click",Ef="dblclick",Gf="dragstart",Hf="drag",Ff="dragend";function If(a,b){if(z(a))return a+b};function Jf(){this.a=[0,0]}G(Jf,V);function Kf(a){this.resolution=a;this.rotation=If};function Lf(a){return 3*a*a-2*a*a*a};function Mf(a){return a}function Nf(a){return 0.5>a?Lf(2*a):1-Lf(2*(a-0.5))};var Of={kc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=z(b)?b:1E3,g=z(d)?d:Nf;return function(b,c){if(c.time<e)return c.D=i,c.A[0]+=1,i;if(c.time<e+f){var d=g((c.time-e)/f),n=a-c.z.resolution;c.D=i;c.z.resolution+=d*n;c.A[0]+=1;return i}return m}},mc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=a.x,g=a.y,j=z(b)?b:1E3,s=z(d)?d:Lf;return function(a,b){if(b.time<e)return b.D=i,b.A[0]+=1,i;if(b.time<e+j){var c=1-s((b.time-e)/j),d=f-b.z.center.x,w=g-b.z.center.y;b.D=i;b.z.center.x+=c*d;b.z.center.y+=c*
|
|
|
|
|
w;b.A[0]+=1;return i}return m}},nc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=z(a)?a:1E3,g=2*(z(b)?b:1)*Math.PI,j=z(d)?d:Lf;return function(a,b){if(b.time<e)return b.D=i,b.A[0]+=1,i;if(b.time<e+f){var c=j((b.time-e)/f);b.D=i;b.z.rotation+=c*g;b.A[0]+=1;return i}return m}},oc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=z(b)?b:1E3,g=z(d)?d:Mf;return function(b,c){if(c.time<e)return c.D=i,c.A[0]+=1,i;if(c.time<e+f){var d=1-g((c.time-e)/f),n=a-c.z.resolution;c.D=i;c.z.resolution+=d*n;c.A[0]+=1;return i}return m}}};function Z(a){this.a=[0,0];var a=a||{},b={};b.center=z(a.center)?a.center:k;b.projection=Ad(a.projection);if(z(a.resolution))b.resolution=a.resolution;else if(z(a.zoom)){var c=b.projection.K(),c=Math.max(c.j-c.h,c.m-c.i);b.resolution=c/(256<<a.zoom)}b.rotation=a.rotation;this.Ka(b);if(z(a.resolutions))var d=a.resolutions,a=function(a,b){if(z(a)){var c=Od(d,a),c=xc(c+b,0,d.length-1);return d[c]}};else{z(a.maxResolution)&&z(a.numZoomLevels)&&z(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,a=a.zoomFactor):
|
|
|
|
|
(a=Ad(a.projection).K(),b=Math.max(a.j-a.h,a.m-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(z(a)){var c=Math.floor(Math.log(f/a)/Math.log(e)+0.5),c=Math.max(c+b,0);z(g)&&(c=Math.min(c,g));return f/Math.pow(e,c)}}}this.d=new Kf(a)}G(Z,Jf);Z.prototype.aa=function(){return this.u("center")};Z.prototype.getCenter=Z.prototype.aa;Z.prototype.K=function(a){var b=this.aa(),c=this.T();return new ld(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};
|
|
|
|
|
Z.prototype.Rb=function(){return this.u("projection")};Z.prototype.getProjection=Z.prototype.Rb;Z.prototype.T=function(){return this.u("resolution")};Z.prototype.getResolution=Z.prototype.T;Z.prototype.xa=function(){return this.u("rotation")||0};Z.prototype.getRotation=Z.prototype.xa;Z.prototype.Da=function(){return this.aa()!=k&&z(this.T())};Z.prototype.b=function(a){this.set("center",a)};Z.prototype.setCenter=Z.prototype.b;Z.prototype.f=function(a){this.set("projection",a)};
|
|
|
|
|
Z.prototype.setProjection=Z.prototype.f;Z.prototype.c=function(a){this.set("resolution",a)};Z.prototype.setResolution=Z.prototype.c;Z.prototype.e=function(a){this.set("rotation",a)};Z.prototype.setRotation=Z.prototype.e;Z.prototype.rotate=function(a,b,c){b=this.d.rotation(b,c);this.e(b)};function Lf(a,b,c,d){var e=a.d.resolution(a.T(),c);if(e!=k&&d!=k){var c=a.aa(),f=a.T(),g=new R(d.x-e*(d.x-c.x)/f,d.y-e*(d.y-c.y)/f);Mf(b,function(){this.b(g);this.c(e)},a)}else a.c(e)};function Nf(a){L.call(this);this.element=z(a.element)?a.element:k;this.n=a.target;this.b=k;z(a.map)&&this.a(a.map)}G(Nf,L);Nf.prototype.q=function(){Lc(this.element);Nf.p.q.call(this)};Nf.prototype.a=function(a){this.b===k||Lc(this.element);this.b=a;this.b!==k&&(z(this.n)?this.n:a.o).appendChild(this.element)};function Of(a){this.g=document.createElement("UL");var b=Hc("DIV",{"class":"ol-attribution"},this.g);Nf.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}G(Of,Nf);Of.prototype.o=function(a){a=a.f;a===k?Pf(this,k):Pf(this,a.Sa)};Of.prototype.a=function(a){this.e!==k&&(I(this.e,N),this.e=k);Of.p.a.call(this,a);a!==k&&(this.e=[M(a,"postrender",this.o,n,this)])};
|
|
|
|
|
function Pf(a,b){if(b===k)a.f&&(Xe(a.element,n),a.f=n);else{var c={},d={},e=a.b.u(Qf);z(e)&&e.forEach(function(a){a=a.X();a instanceof ee&&(d[E(a).toString()]=a);a=a.ta;if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],r=E(b).toString(),c[r]=i}});var e={},f,g,j,s,q,l;for(l in b)if(f=d[l],q=f.ta,q!==k){g=b[l];for(f=0;f<q.length;++f)if(j=q[f],s=E(j).toString(),!(s in e)){var m;a:if(j.a===k)m=i;else{var u=m=h,w=h;for(w in g)if(w in j.a){u=g[w];for(m=0;m<j.a[w].length;++m)if(id(j.a[w][m],u)){m=i;break a}}m=
|
|
|
|
|
n}m&&(e[s]=j)}}l=Ea(Pa(e),Number);La(l);var r;for(f=0;f<l.length;++f)r=l[f].toString(),r in a.c?a.d[r]||(Xe(a.c[r],i),a.d[r]=i):(g=document.createElement("LI"),g.innerHTML=e[r].b,a.g.appendChild(g),a.c[r]=g,a.d[r]=i),delete c[r];for(r in c)Lc(a.c[r]),delete a.c[r],delete a.d[r];e=0!=l.length;a.f!=e&&(Xe(a.element,e),a.f=e)}};function Rf(a){var b=ef?"touchend":"click",c=Hc("A",{href:"#zoomIn","class":"ol-zoom-in"},"+");M(c,b,this.d,n,this);var d=Hc("A",{href:"#zoomOut","class":"ol-zoom-out"},"\u2212");M(d,b,this.e,n,this);b=Hc("DIV","ol-zoom ol-unselectable",c,d);Nf.call(this,{element:b,map:a.map,target:a.target});this.c=z(a.delta)?a.delta:1}G(Rf,Nf);Rf.prototype.d=function(a){a.v();a=this.b;Lf(a.a(),a,this.c)};Rf.prototype.e=function(a){a.v();a=this.b;Lf(a.a(),a,-this.c)};function Sf(){};function Tf(a){this.a=a}G(Tf,Sf);Tf.prototype.b=function(a){var b=a.a;if(a.type==Ef&&(ef||hc(a.a))){var c=a.map,d=a.c(),e=a.a.Z?-this.a:this.a;Lf(c.a(),c,e,d);a.v();b.v()}};function Uf(a){return a.M&&!a.Ma&&!a.Z}function Vf(a){return!a.M&&!a.Ma&&!a.Z}function Wf(a){return!a.M&&!a.Ma&&a.Z};function Xf(){this.f=n;this.D=this.A=this.r=this.o=0;this.sa=this.Q=k}G(Xf,Sf);Xf.prototype.g=y;Xf.prototype.n=y;Xf.prototype.d=ae;Xf.prototype.b=function(a){var b=a.map;if(b.Da()){var b=b.a(),c=a.a;this.f?a.type==Hf?(this.c=c.clientX-this.o,this.a=c.clientY-this.r,this.g(a)):a.type==Ff&&(this.c=c.clientX-this.o,this.a=c.clientY-this.r,this.n(a),this.f=n):a.type==Gf&&(this.o=c.clientX,this.r=c.clientY,this.a=this.c=0,this.Q=b.aa(),this.sa=a.c(),this.d(a)&&(this.f=i,a.v()))}};function Yf(a){Xf.call(this);this.e=a}G(Yf,Xf);Yf.prototype.g=function(a){var a=a.map,b=a.a(),c=b.T(),d=b.xa(),c=new R(-c*this.c,c*this.a);c.rotate(d);d=new R(this.Q.x+c.x,this.Q.y+c.y);Zf(a);b.b(d)};Yf.prototype.n=function(a){a=a.map;Zf(a);a=a.a();a.a[1]+=-1};Yf.prototype.d=function(a){return this.e(a.a)?(a=a.map,Zf(a),a=a.a(),a.a[1]+=1,i):n};function $f(a){Xf.call(this);this.w=a;this.e=0}G($f,Xf);$f.prototype.g=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),a=b.a();Zf(b);a.rotate(b,this.e,-c)};$f.prototype.d=function(a){var b=a.a,c=a.map,d=c.a();return hc(b)&&this.w(b)?(Zf(c),b=c.e(),a=Af(a),a=Math.atan2(b.height/2-a.y,a.x-b.width/2),this.e=(d.xa()||0)+a,i):n};function ag(a){var b=Hc("DIV","ol-dragbox");this.c=k;this.e=a.sa;this.d=k;Nf.call(this,{element:b,map:a.map})}G(ag,Nf);ag.prototype.a=function(a){this.d!==k&&(N(this.d),this.d=k);a!==k&&(this.c=bg(a,this.e),Qe(this.element,this.c),Ye(this.element,new gd(0,0)),this.d=M(a,Hf,this.f,n,this));ag.p.a.call(this,a)};ag.prototype.f=function(a){var b=this.b,a=a.c(),b=bg(b,a);Qe(this.element,new xf(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Ye(this.element,new gd(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function cg(a){Xf.call(this);this.w=a;this.e=k}G(cg,Xf);cg.prototype.n=function(a){this.e.a(k);this.e=k;if(64<=this.c*this.c+this.a*this.a){var b=a.map,c=md(this.sa,a.c());Mf(b,function(){var a=b.a(),e=b.e();a.b(new R((c.h+c.j)/2,(c.i+c.m)/2));e=Math.max((c.j-c.h)/e.width,(c.m-c.i)/e.height);e=a.d.resolution(e,0);a.c(e);a.e(0)})}};cg.prototype.d=function(a){var b=a.a;return hc(b)&&this.w(b)?(this.e=new ag({map:a.map,sa:this.sa}),i):n};function dg(a){this.a=a}G(dg,Sf);dg.prototype.b=function(a){if("key"==a.type){var b=a.a,c=b.ga;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.T()*this.a,c=40==c?new R(0,-e):37==c?new R(-e,0):39==c?new R(e,0):new R(0,e),e=d.aa();d.b(new R(e.x+c.x,e.y+c.y));b.v();a.v()}}};function eg(){}G(eg,Sf);eg.prototype.b=function(a){if("key"==a.type){var b=a.a,c=b.ya;if(43==c||45==c){var d=a.map;Lf(d.a(),d,43==c?4:-4);b.v();a.v()}}};function fg(a){this.a=a}G(fg,Sf);fg.prototype.b=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a,d=a.c(),e=0>c.a?this.a:-this.a,f=b.a();Zf(b);Lf(f,b,e,d);a.v();c.v()}};function gg(a,b){V.call(this);this.o=a;this.a=b;M(this.a,pe("brightness"),this.bb,n,this);M(this.a,pe("contrast"),this.cb,n,this);M(this.a,pe("hue"),this.eb,n,this);M(this.a,"load",this.fb,n,this);M(this.a,pe("opacity"),this.gb,n,this);M(this.a,pe("saturation"),this.hb,n,this);M(this.a,pe("visible"),this.ib,n,this)}G(gg,V);v=gg.prototype;v.na=p("o");v.bb=y;v.cb=y;v.eb=y;v.fb=y;v.gb=y;v.hb=y;v.ib=y;
|
|
|
|
|
function hg(a,b,c,d){var b=E(b).toString(),e=c.toString();b in a?c in a[b]?(a=a[b][e],a.h=Math.min(a.h,d.h),a.i=Math.min(a.i,d.i),a.j=Math.max(a.j,d.j),a.m=Math.max(a.m,d.m)):a[b][e]=d:(a[b]={},a[b][e]=d)};function ig(a,b){L.call(this);this.ia=a;this.map=b;this.c={};this.f=this.d=k;this.D=[M(b,pe(jg),this.ab,n,this),M(b,pe(Qf),this.Ic,n,this),M(b,pe(kg),this.jb,n,this),M(b,pe(lg),this.kb,n,this)]}G(ig,L);v=ig.prototype;v.fa=function(a){var b=this.ua(a);this.sb(a,b)};
|
|
|
|
|
function mg(a){var b=a.z,c=a.Bb;lf(c);of(c,a.size.width/2,a.size.height/2);pf(c,1/b.resolution,-1/b.resolution);qf(c,-b.rotation);of(c,-b.center.x,-b.center.y);var a=a.Ub,b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],j=c[5],s=c[6],q=c[7],l=c[8],m=c[9],u=c[10],w=c[11],r=c[12],t=c[13],B=c[14],c=c[15],C=b*j-d*g,A=b*s-e*g,P=b*q-f*g,Y=d*s-e*j,T=d*q-f*j,va=e*q-f*s,wa=l*t-m*r,xa=l*B-u*r,ya=l*c-w*r,za=m*B-u*t,Aa=m*c-w*t,Ba=u*c-w*B,Q=C*Ba-A*Aa+P*za+Y*ya-T*xa+va*wa;0!=Q&&(Q=1/Q,a[0]=(j*Ba-s*Aa+q*za)*Q,a[1]=(-d*Ba+e*Aa-
|
|
|
|
|
f*za)*Q,a[2]=(t*va-B*T+c*Y)*Q,a[3]=(-m*va+u*T-w*Y)*Q,a[4]=(-g*Ba+s*ya-q*xa)*Q,a[5]=(b*Ba-e*ya+f*xa)*Q,a[6]=(-r*va+B*P-c*A)*Q,a[7]=(l*va-u*P+w*A)*Q,a[8]=(g*Aa-j*ya+q*wa)*Q,a[9]=(-b*Aa+d*ya-f*wa)*Q,a[10]=(r*T-t*P+c*C)*Q,a[11]=(-l*T+m*P-w*C)*Q,a[12]=(-g*za+j*xa-s*wa)*Q,a[13]=(b*za-d*xa+e*wa)*Q,a[14]=(-r*Y+t*A-B*C)*Q,a[15]=(l*Y-m*A+u*C)*Q)}v.ua=ce;v.q=function(){Na(this.c,function(a){ac(a)});I(this.D,N);this.f===k||N(this.f);this.d===k||I(this.d,N);ig.p.q.call(this)};
|
|
|
|
|
function ng(a,b){var c=E(b);return a.c[c]}v.ab=y;v.Hc=function(a){this.fa(a.a)};v.Ic=function(){$b(Oa(this.c));this.c={};this.d!==k&&(I(this.d,N),this.d=k);var a=this.map.u(Qf);a!=k&&(a.forEach(this.fa,this),this.d=[M(a,"add",this.Hc,n,this),M(a,"remove",this.Jc,n,this)])};v.Jc=function(a){this.qb(a.a)};v.lb=function(){og(this.map)};v.jb=function(){og(this.map)};v.kb=function(){this.f!==k&&(N(this.f),this.f=k);var a=this.map.a();a!=k&&(this.f=M(a,"changed",this.lb,n,this));og(this.map)};v.qb=function(a){ac(this.rb(a))};
|
|
|
|
|
v.rb=function(a){a=E(a);if(a in this.c){var b=this.c[a];delete this.c[a];return b}return k};v.L=y;v.sb=function(a,b){var c=E(a);this.c[c]=b};function pg(){if(!("HTMLCanvasElement"in x))return n;try{return document.createElement("CANVAS").getContext("2d")!==k}catch(a){return n}};function qg(a){X.call(this,a)}G(qg,X);function rg(a,b){gg.call(this,a,b)}G(rg,gg);function sg(a,b){gg.call(this,a,b);this.e=this.b=this.c=k;this.N=jf()}G(sg,rg);sg.prototype.W=p("c");
|
|
|
|
|
sg.prototype.L=function(a){function b(a,b){var c=i,e,f,g,j;for(g=b.h;g<=b.j;++g)for(j=b.i;j<=b.m;++j){e=new S(a,g,j);f=e.toString();if(u[a]&&u[a][f])return;e=ge(d,e);e!==k&&2==e.a?(u[a]||(u[a]={}),u[a][f]=e):c=n}return c}var c=a.z,d=this.a.X(),e=d.tileGrid,f=e.b,g=Od(e.a,c.resolution),j=e.a[g],s=Rd(e,a.extent,j),q=new gd(f.width*s.b(),f.height*s.a()),l,m;this.c===k?(l=document.createElement("CANVAS"),l.width=q.width,l.height=q.height,m=l.getContext("2d"),this.c=l,this.b=q,this.e=m):(l=this.c,m=this.e,
|
|
|
|
|
this.b.width==q.width&&this.b.height==q.height||(l.width=q.width,l.height=q.height,this.b=q));m.clearRect(0,0,q.width,q.height);var u={};u[g]={};var q=i,w,r,t,B;for(t=s.h;t<=s.j;++t)for(B=s.i;B<=s.m;++B)if(w=new S(g,t,B),l=ge(d,w),l!==k){r=l.a;if(0==r)q=Ud(e,w),a.tb.b(l,q,j);else if(2==r){u[g][w.toString()]=l;continue}else if(3==r)continue;q=n;e.c(w,b)}t=Ea(Pa(u),Number);La(t);w=nd(Qd(e,new S(g,s.h,s.m)));var C,A,P;for(B=0;B<t.length;++B)if(l=t[B],r=u[l],l==g)for(A in r)l=r[A],m.drawImage(l.W(),f.width*
|
|
|
|
|
(l.da.x-s.h),f.height*(s.m-l.da.y));else for(A in C=e.a[l]/j,r)l=r[A],P=Qd(e,l.da),m.drawImage(l.W(),(P.h-w.x)/j,(w.y-P.m)/j,C*f.width,C*f.height);q||(a.H=i);hg(a.Sa,d,g,s);e=this.N;lf(e);of(e,a.size.width/2,a.size.height/2);qf(e,c.rotation);pf(e,j/c.resolution,j/c.resolution);of(e,(w.x-c.center.x)/j,(c.center.y-w.y)/j)};function tg(a,b){ig.call(this,a,b);this.g=new gd(a.clientHeight,a.clientWidth);this.a=document.createElement("CANVAS");this.a.height=this.g.height;this.a.width=this.g.width;this.a.className="ol-unselectable";Kc(a,this.a);this.n=i;this.o=this.a.getContext("2d")}G(tg,ig);v=tg.prototype;v.ua=function(a){return a instanceof qg?new sg(this,a):k};v.ab=function(){og(this.map)};v.lb=function(){tg.p.lb.call(this);og(this.map)};v.jb=function(){tg.p.jb.call(this);og(this.map)};
|
|
|
|
|
v.kb=function(){tg.p.kb.call(this);og(this.map)};
|
|
|
|
|
v.L=function(a){if(a===k)this.n&&(Xe(this.a,n),this.n=n);else{var b=a.size;this.g.width==b.width&&this.g.height==b.height||(this.a.width=b.width,this.a.height=b.height,this.g=b);var c=this.o;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.d.toFixed(0)+","+d.c.toFixed(0)+","+d.b.toFixed(0)+")";c.globalAlpha=d.a;c.fillRect(0,0,b.width,b.height);I(a.Ha,function(b){var d=a.Ga[E(b)];if(d.visible)if(d.Oa){b=ng(this,b);b.L(a,d);var g=b.N;c.setTransform(g[0],g[1],g[4],g[5],g[12],
|
|
|
|
|
g[13]);c.globalAlpha=d.opacity;c.drawImage(b.W(),0,0)}else a.H=i},this);this.n||(Xe(this.a,i),this.n=i);mg(a)}};function ug(a,b,c){gg.call(this,a,b);this.target=c}G(ug,gg);ug.prototype.q=function(){Lc(this.target);ug.p.q.call(this)};ug.prototype.fb=function(){og(this.o.map)};ug.prototype.gb=function(){og(this.o.map)};ug.prototype.ib=function(){og(this.o.map)};function vg(a,b){var c=document.createElement("DIV");c.className="ol-layer";c.style.position="absolute";ug.call(this,a,b,c);this.c=i;this.e=1;this.b={}}G(vg,ug);
|
|
|
|
|
vg.prototype.L=function(a,b){if(b.visible){var c=a.z,d=this.a.X(),e=d.tileGrid,f=Od(e.a,c.resolution),g=e.a[f],j=Rd(e,a.extent,g),s={};s[f]={};var q=function(a,b){var c=i,e,f,g,j;for(g=b.h;g<=b.j;++g)for(j=b.i;j<=b.m;++j){e=new S(a,g,j);f=e.toString();if(s[a]&&s[a][f])return;e=ge(d,e);e!==k&&2==e.a?(s[a]||(s[a]={}),s[a][f]=e):c=n}return c},l=i,m,u,w,r,t;for(r=j.h;r<=j.j;++r)for(t=j.i;t<=j.m;++t)if(u=new S(f,r,t),m=ge(d,u),m!==k){w=m.a;if(0==w)l=Ud(e,u),a.tb.b(m,l,g);else if(2==w){s[f][u.toString()]=
|
|
|
|
|
m;continue}else if(3==w)continue;l=n;e.c(u,q)}m=Ea(Pa(s),Number);La(m);var g={},B;for(r=0;r<m.length;++r){u=m[r];u in this.b?q=this.b[u]:(q=Td(e,c.center,e.a[u]),q=new wg(e,q),g[u]=i,this.b[u]=q);u=s[u];for(B in u){t=q;w=u[B];var C=w.da,A=C.toString();if(!(A in t.c)){var P=t.e.b,Y=w.W(t),T=Y.style;T.position="absolute";T.left=(C.x-t.d.x)*P.width+"px";T.top=(t.d.y-C.y)*P.height+"px";t.b===k&&(t.b=document.createDocumentFragment());t.b.appendChild(Y);t.c[A]=w}}q.b!==k&&(q.target.appendChild(q.b),q.b=
|
|
|
|
|
k)}e=Ea(Pa(this.b),Number);La(e);m=jf();for(B=0;B<e.length;++B)if(u=e[B],q=this.b[u],u in s){t=q.g;r=q.f;lf(m);of(m,a.size.width/2,a.size.height/2);qf(m,c.rotation);pf(m,t/c.resolution,t/c.resolution);of(m,(r.x-c.center.x)/t,(c.center.y-r.y)/t);t=q;r=m;if(!(r.length==t.a.length&&r[0]==t.a[0]&&r[1]==t.a[1]&&r[2]==t.a[2]&&r[3]==t.a[3]&&r[4]==t.a[4]&&r[5]==t.a[5]&&r[6]==t.a[6]&&r[7]==t.a[7]&&r[8]==t.a[8]&&r[9]==t.a[9]&&r[10]==t.a[10]&&r[11]==t.a[11]&&r[12]==t.a[12]&&r[13]==t.a[13]&&r[14]==t.a[14]&&r[15]==
|
|
|
|
|
t.a[15])){w=t.target;C=r;A=A=h;if(z(6)){P=Array(16);for(A=0;16>A;++A)P[A]=C[A].toFixed(6);A=P.join(",")}else A=C.join(",");C="matrix3d("+A+")";w=w.style;w.WebkitTransform=C;w.MozTransform=C;w.a=C;w.transform=C;t=t.a;t[0]=r[0];t[1]=r[1];t[2]=r[2];t[3]=r[3];t[4]=r[4];t[5]=r[5];t[6]=r[6];t[7]=r[7];t[8]=r[8];t[9]=r[9];t[10]=r[10];t[11]=r[11];t[12]=r[12];t[13]=r[13];t[14]=r[14];t[15]=r[15]}if(u in g){for(u-=1;0<=u;--u)if(u in this.b){r=this.b[u].target;r.parentNode&&r.parentNode.insertBefore(q.target,
|
|
|
|
|
r.nextSibling);break}0>u&&Kc(this.target,q.target)}else if(!a.B[0]&&!a.B[1]){w=Rd(q.e,a.extent,q.e.a[q.d.k]);u=[];t=r=h;for(t in q.c)r=q.c[t],w.contains(r.da)||u.push(r);w=h;for(w=0;w<u.length;++w)r=u[w],t=r.da.toString(),Lc(r.W(q)),delete q.c[t]}}else Lc(q.target),delete this.b[u];b.opacity!=this.e&&(c=b.opacity,g=this.target.style,"opacity"in g?g.opacity=c:"MozOpacity"in g?g.MozOpacity=c:"filter"in g&&(g.filter=""===c?"":"alpha(opacity="+100*c+")"),this.e=b.opacity);b.visible&&!this.c&&(Xe(this.target,
|
|
|
|
|
i),this.c=i);l||(a.H=i);hg(a.Sa,d,f,j)}else this.c&&(Xe(this.target,n),this.c=n)};function wg(a,b){this.target=document.createElement("DIV");this.target.style.position="absolute";this.e=a;this.d=b;this.f=nd(Qd(a,b));this.g=a.a[b.k];this.c={};this.b=k;var c=Array(16);kf(c,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);this.a=c};function xg(a,b){ig.call(this,a,b);this.a=document.createElement("DIV");this.a.className="ol-layers-pane ol-unselectable";var c=this.a.style;c.position="absolute";c.width="100%";c.height="100%";Kc(a,this.a);this.g=i}G(xg,ig);xg.prototype.fa=function(a){xg.p.fa.call(this,a);og(this.map)};xg.prototype.ua=function(a){return a instanceof qg?(a=new vg(this,a),this.a.appendChild(a.target),a):k};
|
|
|
|
|
xg.prototype.L=function(a){a===k?this.g&&(Xe(this.a,n),this.g=n):(I(a.Ha,function(b){var c=a.Ga[E(b)];c.Oa&&ng(this,b).L(a,c)},this),this.g||(Xe(this.a,i),this.g=i),mg(a))};var yg=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function zg(a,b){var c,d,e=yg.length;for(d=0;d<e;++d)try{if(c=a.getContext(yg[d],b),c!==k)return c}catch(f){}return k};function Ag(){if(!("WebGLRenderingContext"in x))return n;try{var a=document.createElement("CANVAS");return zg(a)!==k}catch(b){return n}};function Bg(a){this.a=a}Bg.prototype.X=p("a");function Cg(a){this.a=a}G(Cg,Bg);Cg.prototype.b=function(){return 35632};function Dg(a){this.a=a}G(Dg,Bg);Dg.prototype.b=function(){return 35633};function Eg(a,b){gg.call(this,a,b);this.w=new Float32Array(16);this.D=new Float32Array(16);this.J=new Float32Array(16);this.ia=new Float32Array(16);this.A=new Float32Array(16);this.c=i;this.bb();this.cb();this.eb();this.hb()}G(Eg,gg);function Fg(a){O(a,"change")}function Gg(a){if(a.c){var b=a.A;lf(b);mf(b,a.D,b);mf(b,a.w,b);mf(b,a.ia,b);mf(b,a.J,b);a.c=n}return a.A}v=Eg.prototype;v.na=function(){return Eg.p.na.call(this)};
|
|
|
|
|
v.bb=function(){var a=this.a.b(),b=this.w;lf(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;Fg(this)};v.cb=function(){var a=this.a.c(),b=this.D;lf(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;Fg(this)};
|
|
|
|
|
v.eb=function(){var a=this.a.d(),b=Math.cos(a),a=Math.sin(a);kf(this.J,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;Fg(this)};v.fb=function(){Fg(this)};v.gb=function(){Fg(this)};
|
|
|
|
|
v.hb=function(){var a=this.a.f();kf(this.ia,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;Fg(this)};v.ib=function(){Fg(this)};v.Ba=y;function Hg(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}G(Hg,Cg);aa(Hg);function Ig(){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}"}G(Ig,Dg);aa(Ig);
|
|
|
|
|
function Jg(a,b){Eg.call(this,a,b);this.Qa=Hg.wa();this.ub=Ig.wa();this.e=this.g=this.f=this.t=k;this.n=h;this.d=jf();this.r=this.b=k}G(Jg,Eg);Jg.prototype.q=function(){var a=this.na().b;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));Jg.p.q.call(this)};Jg.prototype.Ba=function(){this.e=this.g=this.f=this.t=k;this.n=h};
|
|
|
|
|
Jg.prototype.L=function(a){var b=this.na(),c=b.b,d=a.z,e=d.center,f=this.a.X(),g=f.tileGrid,j=Od(g.a,d.resolution),s=g.a[j],q=Rd(g,a.extent,s),l;if(this.b!==k&&this.b.h==q.h&&q.j==this.b.j&&this.b.i==q.i&&q.i==this.b.i)l=this.r;else{var m=new gd(q.b(),q.a()),u=g.b,m=Math.max(m.width*u.width,m.height*u.height),m=Math.pow(2,Math.ceil(Math.log(m)/Math.log(2))),w=new gd(s*m,s*m),r=Sd(g,j),t=r.x+q.h*u.width*s,u=r.y+q.i*u.height*s;l=new ld(t,u,t+w.width,u+w.height);u=this.na().b;!z(this.n)||this.n!=m?(a.pb.push(la(function(a,
|
|
|
|
|
b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},u,this.e,this.g)),t=u.createTexture(),u.bindTexture(3553,t),u.texImage2D(3553,0,6408,m,m,0,6408,5121,k),u.texParameteri(3553,10240,9729),u.texParameteri(3553,10241,9729),r=u.createFramebuffer(),u.bindFramebuffer(36160,r),u.framebufferTexture2D(36160,36064,3553,t,0),this.g=t,this.e=r,this.n=m):u.bindFramebuffer(36160,this.e);c.viewport(0,0,m,m);c.clearColor(0,0,0,0);c.clear(16384);c.disable(3042);m=Kg(b,this.Qa,this.ub);c.useProgram(m);
|
|
|
|
|
this.t===k&&(this.t={ka:c.getAttribLocation(m,"aPosition"),la:c.getAttribLocation(m,"aTexCoord"),Yc:c.getUniformLocation(m,"uTileOffset"),vb:c.getUniformLocation(m,"uTexture")});this.f===k?(m=c.createBuffer(),c.bindBuffer(34962,m),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=m):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.t.ka);c.vertexAttribPointer(this.t.ka,2,5126,n,16,0);c.enableVertexAttribArray(this.t.la);c.vertexAttribPointer(this.t.la,2,
|
|
|
|
|
5126,n,16,8);c.uniform1i(this.t.vb,0);var B={};B[j]={};var u=function(a,c){var d=i,e,g,j,l;for(j=c.h;j<=c.j;++j)for(l=c.i;l<=c.m;++l){e=new S(a,j,l);g=e.toString();if(B[a]&&B[a][g])return;e=ge(f,e);e!==k&&2==e.a&&e.getKey()in b.e?(B[a]||(B[a]={}),B[a][g]=e):d=n}return d},m=new uf,C=i,A,P,Y;for(P=q.h;P<=q.j;++P)for(Y=q.i;Y<=q.m;++Y)if(r=new S(j,P,Y),t=ge(f,r),t!==k){A=t.a;if(0==A)A=Ud(g,r),a.tb.b(t,A,s);else if(2==A)if(t.getKey()in b.e){B[j][r.toString()]=t;continue}else A=Ud(g,r),C=A.x-e.x,A=A.y-
|
|
|
|
|
e.y,C=Math.sqrt(C*C+A*A),tf(m,C,t);else if(3==A)continue;C=n;g.c(r,u)}e=Ea(Pa(B),Number);La(e);var T=new Float32Array(4);I(e,function(a){Na(B[a],function(a){var d=Qd(g,a.da),e=2*d.a()/w.height,f=2*(d.h-l.h)/w.width-1,j=2*(d.i-l.i)/w.height-1;T[0]=2*d.b()/w.width;T[1]=e;T[2]=f;T[3]=j;c.uniform4fv(this.t.Yc,T);Lg(b,a);c.drawArrays(5,0,4)},this)},this);m.$()||a.pb.push(la(function(a,b){var c,d;for(c=0;!b.$()&&4>c;++c)d=b.remove(),Lg(a,d)},b,m));C?(this.b=q,this.r=l):(this.r=this.b=k,a.H=i)}hg(a.Sa,f,
|
|
|
|
|
j,q);lf(this.d);of(this.d,(d.center.x-l.h)/(l.j-l.h),(d.center.y-l.i)/(l.m-l.i));qf(this.d,d.rotation);pf(this.d,a.size.width*d.resolution/(l.j-l.h),a.size.height*d.resolution/(l.m-l.i));of(this.d,-0.5,-0.5)};function Mg(){this.a="precision mediump float;\n\nuniform mat4 uColorMatrix;\nuniform float uOpacity;\nuniform mat4 uMatrix;\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n\n vec4 texCoord = uMatrix * vec4(vTexCoord, 0., 1.);\n vec4 texColor = texture2D(uTexture, texCoord.st);\n vec4 color = uColorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * uOpacity;\n\n gl_FragColor = color;\n\n}"}G(Mg,Cg);aa(Mg);
|
|
|
|
|
function Ng(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_Position = vec4(aPosition, 0., 1.);\n vTexCoord = aTexCoord;\n}"}G(Ng,Dg);aa(Ng);
|
|
|
|
|
function Og(a,b){ig.call(this,a,b);this.a=document.createElement("CANVAS");this.a.height=a.clientHeight;this.a.width=a.clientWidth;this.a.className="ol-unselectable";Kc(a,this.a);this.r=i;this.A=new gd(a.clientHeight,a.clientWidth);this.b=zg(this.a,{alpha:n,antialias:i,depth:n,preserveDrawingBuffer:n,stencil:n});M(this.a,"webglcontextlost",this.Ba,n,this);M(this.a,"webglcontextrestored",this.Mc,n,this);this.o=this.t=k;this.n={};this.g={};this.e={};this.J=Mg.wa();this.N=Ng.wa();this.w={};Pg(this)}
|
|
|
|
|
G(Og,ig);v=Og.prototype;v.fa=function(a){Og.p.fa.call(this,a);a.a()&&og(this.map)};
|
|
|
|
|
function Lg(a,b){var c=a.b,d=b.getKey(),e=a.e[d];z(e)?(c.bindTexture(3553,e.bc),9729!=e.Kb&&(c.texParameteri(3553,10240,9729),e.Kb=9729),9729!=e.Lb&&(c.texParameteri(3553,10240,9729),e.Lb=9729)):(e=c.createTexture(),c.bindTexture(3553,e),c.texImage2D(3553,0,6408,6408,5121,b.W()),c.texParameteri(3553,10240,9729),c.texParameteri(3553,10241,9729),c.texParameteri(3553,10242,33071),c.texParameteri(3553,10243,33071),a.e[d]={bc:e,Kb:9729,Lb:9729})}v.ua=function(a){return a instanceof qg?new Jg(this,a):k};
|
|
|
|
|
v.q=function(){var a=this.b;a.isContextLost()||(Na(this.g,function(b){a.deleteProgram(b)}),Na(this.n,function(b){a.deleteShader(b)}),Na(this.e,function(b){a.deleteTexture(b.bc)}));Og.p.q.call(this)};function Kg(a,b,c){var d=E(b)+"/"+E(c);if(d in a.g)return a.g[d];var e=a.b,f=e.createProgram();e.attachShader(f,Qg(a,b));e.attachShader(f,Qg(a,c));e.linkProgram(f);return a.g[d]=f}
|
|
|
|
|
function Qg(a,b){var c=E(b);if(c in a.n)return a.n[c];var d=a.b,e=d.createShader(b.b());d.shaderSource(e,b.X());d.compileShader(e);return a.n[c]=e}v.ab=function(){og(this.map)};v.Pc=function(){og(this.map)};v.Ba=function(a){a.v();this.o=this.t=k;this.n={};this.g={};this.e={};Na(this.c,function(a){a.Ba()})};v.Mc=function(){Pg(this);og(this.map)};function Pg(a){a=a.b;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}
|
|
|
|
|
v.qb=function(a){Og.p.qb.call(this,a);a.a()&&og(this.map)};v.rb=function(a){var b=Og.p.rb.call(this,a);b!==k&&(a=E(a),N(this.w[a]),delete this.w[a]);return b};
|
|
|
|
|
v.L=function(a){var b=this.b;if(a===k)return this.r&&(Xe(this.a,n),this.r=n),n;I(a.Ha,function(b){var c=a.Ga[E(b)];c.visible&&c.Oa&&ng(this,b).L(a,c)},this);var c=a.size;this.A.width==c.width&&this.A.height==c.height||(this.a.width=c.width,this.a.height=c.height,this.A=c);b.bindFramebuffer(36160,k);var d=a.backgroundColor;b.clearColor(d.d/255,d.c/255,d.b/255,d.a);b.clear(16384);b.enable(3042);b.viewport(0,0,c.width,c.height);c=Kg(this,this.J,this.N);b.useProgram(c);this.t===k&&(this.t={ka:b.getAttribLocation(c,
|
|
|
|
|
"aPosition"),la:b.getAttribLocation(c,"aTexCoord"),Vc:b.getUniformLocation(c,"uColorMatrix"),Wc:b.getUniformLocation(c,"uMatrix"),Xc:b.getUniformLocation(c,"uOpacity"),vb:b.getUniformLocation(c,"uTexture")});this.o===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.o=c):b.bindBuffer(34962,this.o);b.enableVertexAttribArray(this.t.ka);b.vertexAttribPointer(this.t.ka,2,5126,n,16,0);b.enableVertexAttribArray(this.t.la);
|
|
|
|
|
b.vertexAttribPointer(this.t.la,2,5126,n,16,8);b.uniform1i(this.t.vb,0);I(a.Ha,function(c){var d=a.Ga[E(c)];d.visible&&d.Oa&&(d=ng(this,c),b.uniformMatrix4fv(this.t.Wc,n,d.d),b.uniformMatrix4fv(this.t.Vc,n,Gg(d)),b.uniform1f(this.t.Xc,c.e()),b.bindTexture(3553,d.g),b.drawArrays(5,0,4))},this);this.r||(Xe(this.a,i),this.r=i);mg(a)};v.sb=function(a,b){Og.p.sb.call(this,a,b);var c=E(a);this.w[c]=M(b,"change",this.Pc,n,this)};var Rg={},Sg={dd:"canvas",gd:"dom",md:"webgl"},Tg=["webgl","canvas","dom"],jg="backgroundColor",Qf="layers",kg="size",lg="view";
|
|
|
|
|
function $(a){var b,c;V.call(this);var d={};d[Qf]=z(a.layers)?a.layers:new W;d[lg]=z(a.view)?a.view:new Z;c=ig;var e;e=z(a.renderers)?a.renderers:z(a.renderer)?[a.renderer]:Tg;var f;for(b=0;b<e.length;++b)if(f=e[b],"canvas"==f){if(pg()){c=tg;break}}else if("dom"==f){if(be()){c=xg;break}}else if("webgl"==f&&Ag()){c=Og;break}z(a.controls)?e=a.controls:(e=new W,e.push(new Of({})),e.push(new Rf({delta:z(a.zoomDelta)?a.zoomDelta:4})));if(z(a.interactions))b=a.interactions;else{b=new W;(z(a.rotate)?a.rotate:
|
|
|
|
|
1)&&b.push(new $f(Uf));if(z(a.doubleClickZoom)?a.doubleClickZoom:1)b.push(new Tf(z(a.zoomDelta)?a.zoomDelta:4));(z(a.dragPan)?a.dragPan:1)&&b.push(new Yf(Vf));f=z(a.keyboardPanOffset)?a.keyboardPanOffset:80;if(z(a.keyboard)?a.keyboard:1)b.push(new dg(f)),b.push(new eg);if(z(a.mouseWheelZoom)?a.mouseWheelZoom:1)b.push(new fg(z(a.mouseWheelZoomDelta)?a.mouseWheelZoomDelta:1));(z(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new cg(Wf))}a=D(a.target)?document.getElementById(a.target):a.target;this.c=new ue(this.Sc,
|
|
|
|
|
h,this);Zb(this,this.c);this.ub=jf();this.dc=jf();this.d=k;this.f=0;this.n=n;this.r=a;this.b=Hc("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.r.appendChild(this.b);this.o=Hc("DIV","ol-overlaycontainer");M(this.o,["click",ef?"touchstart":"mousedown"],cc);this.b.appendChild(this.o);a=new Bf(this);M(a,[Df,Ef,Gf,Hf,Ff],this.Sb,n,this);Zb(this,a);a=new De(document);M(a,"key",this.Eb,n,this);Zb(this,a);a=new bf(this.b);
|
|
|
|
|
M(a,"mousewheel",this.Eb,n,this);Zb(this,a);this.g=e;M(this.g,"add",this.Dc,n,this);M(this.g,"remove",this.Ec,n,this);this.J=b;this.ia=new c(this.b,this);Zb(this,this.ia);this.gc=new ye;M(this.gc,"resize",this.Fb,n,this);this.N=[];this.w=[];this.cc=ka(this.Kc,this);this.A=new vf(ka(this.vc,this));this.Ka(d);this.Fb();this.g.forEach(function(a){a.a(this)},this)}G($,V);$.prototype.q=function(){Lc(this.b);$.p.q.call(this)};$.prototype.D=function(){return this.u(jg)};$.prototype.getBackgroundColor=$.prototype.D;
|
|
|
|
|
$.prototype.$c=p("g");function zf(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];nf(c.Ub,d,d);return new R(d[0],d[1])}$.prototype.ad=p("J");function bg(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];nf(c.Bb,d,d);return new xf(d[0],d[1])}$.prototype.e=function(){return this.u(kg)};$.prototype.getSize=$.prototype.e;$.prototype.a=function(){return this.u(lg)};$.prototype.getView=$.prototype.a;v=$.prototype;
|
|
|
|
|
v.vc=function(a,b,c){if(this.d!==k){var d=this.d.z.center,a=b.x-d.x,b=b.y-d.y;return Math.sqrt(a*a+b*b)/c}};v.Eb=function(a,b){this.Sb(new yf(b||a.type,this,a))};v.Dc=function(a){a.a.a(this)};v.Ec=function(a){a.a.a(k)};v.Sb=function(a){var b=this.J.a;if(O(this,a)!==n)for(var c=b.length-1;0<=c&&!(b[c].b(a),a.Aa);c--);};
|
|
|
|
|
v.Kc=function(){var a=this.A;if(!a.a.$()){var b=a.a.F();a.a.clear();a.c={};var c;for(c=0;c<b.length;++c)a.b.apply(a,b[c])}for(a=this.A;!a.a.$()&&a.d<a.f;)b=a.a.remove()[0],c=b.getKey(),delete a.c[c],M(b,"change",a.e,n,a),b.load(),++a.d;I(this.w,function(a){a(this,this.d)},this);this.w.length=0};v.Fb=function(){this.Qa(new gd(this.r.clientWidth,this.r.clientHeight))};v.Da=function(){var a=this.a(),b;if(b=z(a)){if(a=a.Da())a=this.e()!=k;b=a}return b};
|
|
|
|
|
function og(a){a.c.a==k&&(0===a.f?(a=a.c,ve(a),a.d()):a.n=i)}function Zf(a){if(0===a.f){if(a.c.a==k){a=a.c;ve(a);a.e=n;var b=we(a),c=xe(a);if(b&&!c&&a.b.mozRequestAnimationFrame)a.a=M(a.b,"MozBeforePaint",a.c),a.b.mozRequestAnimationFrame(k),a.e=i;else{if(b&&c)b=b.call(a.b,a.c);else{var d=a.c,e;e=e||0;b=a.b.setTimeout(function(){return d.apply(this,Array.prototype.slice.call(arguments,0,e))},20)}a.a=b}}}else a.n=i}
|
|
|
|
|
v.Sc=function(a){var b;if(0==this.f){b=this.e();var c=this.u(Qf),c=z(c)?c.a:h,d=this.a(),e=z(d)?this.a():h,f=k;if(z(c)&&z(b)&&z(e)&&e.Da()){var g=this.D(),d=Ia(d.a),j={};I(c,function(a){var b=E(a),c=a.b(),d=a.c(),e=a.d(),f=a.e(),g=a.X().a(),l=a.f(),a=a.a();j[b]={brightness:z(c)?c:0,contrast:z(d)?d:1,hue:z(e)?e:0,opacity:z(f)?f:1,Oa:g,saturation:z(l)?l:1,visible:z(a)?a:i}});var s;s=e.aa();var q=e.Rb(),l=e.T(),e=e.xa();s={center:new R(s.x,s.y),projection:q,resolution:l,rotation:e};f={H:n,backgroundColor:z(g)?
|
|
|
|
|
g:new ff,Bb:this.ub,extent:k,Ha:c,Ga:j,Ub:this.dc,pb:[],size:b,tb:this.A,Sa:{},z:s,B:d,time:a}}this.N=Da(this.N,function(a){return a(this,f)},this);if(f!==k){a=s.center;g=s.resolution;c=s.rotation;e=g*b.width/2;b=g*b.height/2;g=[new R(-e,-b),new R(-e,b),new R(e,-b),new R(e,b)];for(b=0;4>b;++b)e=g[b],e.rotate(c),e.add(a);f.extent=md.apply(k,g)}this.ia.L(f);f!==k&&(f.H&&Zf(this),Array.prototype.push.apply(this.w,f.pb));this.d=f;this.n=n;O(this,new wf("postrender",this,f));x.setTimeout(this.cc,0)}};
|
|
|
|
|
v.Uc=function(a){this.set(jg,a)};$.prototype.setBackgroundColor=$.prototype.Uc;$.prototype.ec=function(a){this.set(Qf,a)};$.prototype.setLayers=$.prototype.ec;$.prototype.Qa=function(a){this.set(kg,a)};$.prototype.setSize=$.prototype.Qa;$.prototype.fc=function(a){this.set(lg,a)};$.prototype.setView=$.prototype.fc;function Mf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.n&&(a=a.c,ve(a),a.d())}}
|
|
|
|
|
Rg.mc=function(a){var b=x.location.search.substring(1),a=z(a)?a:new Gb(b);return Sb(a,"renderers")?Tb(a,"renderers").split(","):Sb(a,"renderer")?[Tb(a,"renderer")]:Tg};function Ug(a){return 3*a*a-2*a*a*a};function Vg(a){return 0.5>a?Ug(2*a):1-Ug(2*(a-0.5))};var Wg={lc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=z(b)?b:1E3,g=z(d)?d:Vg;return function(b,c){if(c.time<e)return c.H=i,c.B[0]+=1,i;if(c.time<e+f){var d=g((c.time-e)/f),l=a-c.z.resolution;c.H=i;c.z.resolution+=d*l;c.B[0]+=1;return i}return n}},nc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=a.x,g=a.y,j=z(b)?b:1E3,s=z(d)?d:Ug;return function(a,b){if(b.time<e)return b.H=i,b.B[0]+=1,i;if(b.time<e+j){var c=1-s((b.time-e)/j),d=f-b.z.center.x,w=g-b.z.center.y;b.H=i;b.z.center.x+=c*d;b.z.center.y+=c*
|
|
|
|
|
w;b.B[0]+=1;return i}return n}},oc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=z(a)?a:1E3,g=2*(z(b)?b:1)*Math.PI,j=z(d)?d:Ug;return function(a,b){if(b.time<e)return b.H=i,b.B[0]+=1,i;if(b.time<e+f){var c=j((b.time-e)/f);b.H=i;b.z.rotation+=c*g;b.B[0]+=1;return i}return n}}};function Xg(a){var b=Hc("DIV",{"class":"ol-mouse-position"});Nf.call(this,{element:b,map:a.map,target:a.target});this.o=a.projection;this.g=a.coordinateFormat;this.N=z(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.r=Ed;this.d=this.e=this.w=k}G(Xg,Nf);Xg.prototype.J=function(a){a=a.f;a===k?this.c=k:this.c=a.z.projection;Yg(this,this.e)};Xg.prototype.A=function(a){a=Ue(a,this.b.b);a=new xf(a.x,a.y);Yg(this,a);this.e=a};Xg.prototype.D=function(){Yg(this,k);this.e=k};
|
|
|
|
|
Xg.prototype.a=function(a){this.d!==k&&(I(this.d,N),this.d=k);Xg.p.a.call(this,a);if(a!==k){var b=a.b;this.d=[M(b,"mousemove",this.A,n,this),M(b,"mouseout",this.D,n,this),M(a,"postrender",this.J,n,this)]}};function Yg(a,b){var c=a.N;if(b!==k){a.w!=a.c&&(a.r=z(a.o)?Dd(a.c,a.o):Ed,a.w=a.c);var d=zf(a.b,b);d!==k&&(d=a.r(d),c=z(a.g)?a.g(d):d.toString())}if(!z(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};function Zg(){this.a={}}G(Zg,Sf);Zg.prototype.c=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Zg.prototype.b=function(a){if("key"==a.type){var b=this.a[a.a.ya];b&&(b(),a.v())}};function $g(a){this.b=this.a=this.f=k;this.c=[ah,bh];this.e=this.d=k;z(a.coordinate)&&this.Zb(a.coordinate);z(a.element)&&ch(this,a.element);z(a.map)&&this.Tb(a.map);z(a.positioning)&&(this.c=a.positioning,this.U())}v=$g.prototype;v.Ib=function(){this.e!==k&&(I(this.e,N),this.e=k);var a=this.b.a();a!=k&&(this.e=[M(a,pe("center"),this.U,n,this),M(a,pe("resolution"),this.U,n,this),M(a,pe("rotation"),this.U,n,this)],this.U())};v.Zb=function(a){this.f=a;this.U()};
|
|
|
|
|
function ch(a,b){a.a&&Lc(a.a);a.a=b;a.b&&(Le(a.a,"position","absolute"),Jc(a.b.o,a.a));a.U()}v.Oc=p("a");v.Tb=function(a){this.b=a;this.d!==k&&(I(this.d,N),this.d=k);this.a&&ch(this,this.a);a!=k&&(this.d=[M(a,pe(kg),this.U,n,this),M(a,pe(lg),this.Ib,n,this)],this.Ib())};
|
|
|
|
|
v.U=function(){if(this.b!==k&&this.f!==k&&this.a!==k){var a=bg(this.b,this.f),b=this.b.u(kg),c=Math.round(a.x);this.c[0]===dh&&(c=b.width-c);a=Math.round(a.y);this.c[1]===bh&&(a=b.height-a);Le(this.a,this.c[0],c+"px");Le(this.a,this.c[1],a+"px")}};var ah="left",dh="right",bh="bottom";function eh(a){var b=a.projection||Bd("EPSG:3857"),c=Yd;z(a.O)?c=a.O:z(a.urls)?c=Wd(Ea(a.urls,Vd)):z(a.url)&&(c=Vd(a.url));var d=new he({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?Zd(function(b){if(a.maxZoom<b.k)return k;var c=1<<b.k,j=-b.y-1;if(0>j||c<=j)return k;c=yc(b.x,c);return!id(Qd(d,new S(b.k,c,b.y)),e)?k:new S(b.k,c,j)},c):Zd(function(b){if(a.maxZoom<b.k)return k;var c=1<<b.k,d=-b.y-1;return 0>d||c<=d?k:new S(b.k,yc(b.x,c),d)},c);fe.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
|
|
|
|
|
Z.prototype.Qb=function(){return this.u("projection")};Z.prototype.getProjection=Z.prototype.Qb;Z.prototype.T=function(){return this.u("resolution")};Z.prototype.getResolution=Z.prototype.T;Z.prototype.xa=function(){return this.u("rotation")||0};Z.prototype.getRotation=Z.prototype.xa;Z.prototype.Da=function(){return this.aa()!=k&&z(this.T())};Z.prototype.b=function(a){this.set("center",a)};Z.prototype.setCenter=Z.prototype.b;Z.prototype.f=function(a){this.set("projection",a)};
|
|
|
|
|
Z.prototype.setProjection=Z.prototype.f;Z.prototype.c=function(a){this.set("resolution",a)};Z.prototype.setResolution=Z.prototype.c;Z.prototype.e=function(a){this.set("rotation",a)};Z.prototype.setRotation=Z.prototype.e;Z.prototype.rotate=function(a,b,c){b=this.d.rotation(b,c);this.e(b)};
|
|
|
|
|
Z.prototype.zoom=function(a,b,c,d){var e=this.T();z(e)&&z(d)&&(Pf(a),d=Of.oc(e,d),Pf(a),a.B.push(d));var f=this.d.resolution(e,b);if(f!=k&&c!=k){var b=this.aa(),e=this.T(),g=new R(c.x-f*(c.x-b.x)/e,c.y-f*(c.y-b.y)/e);Qf(a,function(){this.b(g);this.c(f)},this)}else this.c(f)};function Rf(a){L.call(this);this.element=z(a.element)?a.element:k;this.n=a.target;this.b=k;z(a.map)&&this.a(a.map)}G(Rf,L);Rf.prototype.q=function(){Lc(this.element);Rf.p.q.call(this)};Rf.prototype.a=function(a){this.b===k||Lc(this.element);this.b=a;this.b!==k&&(z(this.n)?this.n:a.o).appendChild(this.element)};function Sf(a){this.g=document.createElement("UL");var b=Hc("DIV",{"class":"ol-attribution"},this.g);Rf.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}G(Sf,Rf);Sf.prototype.o=function(a){a=a.f;a===k?Tf(this,k):Tf(this,a.Ra)};Sf.prototype.a=function(a){this.e!==k&&(I(this.e,N),this.e=k);Sf.p.a.call(this,a);a!==k&&(this.e=[M(a,"postrender",this.o,m,this)])};
|
|
|
|
|
function Tf(a,b){if(b===k)a.f&&(Xe(a.element,m),a.f=m);else{var c={},d={},e=a.b.u(Uf);z(e)&&e.forEach(function(a){a=a.X();a instanceof ee&&(d[E(a).toString()]=a);a=a.ta;if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],r=E(b).toString(),c[r]=i}});var e={},f,g,j,s,q,n;for(n in b)if(f=d[n],q=f.ta,q!==k){g=b[n];for(f=0;f<q.length;++f)if(j=q[f],s=E(j).toString(),!(s in e)){var l;a:if(j.a===k)l=i;else{var u=l=h,w=h;for(w in g)if(w in j.a){u=g[w];for(l=0;l<j.a[w].length;++l)if(id(j.a[w][l],u)){l=i;break a}}l=
|
|
|
|
|
m}l&&(e[s]=j)}}n=Ea(Pa(e),Number);La(n);var r;for(f=0;f<n.length;++f)r=n[f].toString(),r in a.c?a.d[r]||(Xe(a.c[r],i),a.d[r]=i):(g=document.createElement("LI"),g.innerHTML=e[r].b,a.g.appendChild(g),a.c[r]=g,a.d[r]=i),delete c[r];for(r in c)Lc(a.c[r]),delete a.c[r],delete a.d[r];e=0!=n.length;a.f!=e&&(Xe(a.element,e),a.f=e)}};function Vf(a){var b=ef?"touchend":"click",c=Hc("A",{href:"#zoomIn","class":"ol-zoom-in"},"+");M(c,b,this.d,m,this);var d=Hc("A",{href:"#zoomOut","class":"ol-zoom-out"},"\u2212");M(d,b,this.e,m,this);b=Hc("DIV","ol-zoom ol-unselectable",c,d);Rf.call(this,{element:b,map:a.map,target:a.target});this.c=z(a.delta)?a.delta:1}G(Vf,Rf);Vf.prototype.d=function(a){a.v();a=this.b;Pf(a);a.a().zoom(a,this.c,h,250)};Vf.prototype.e=function(a){a.v();a=this.b;Pf(a);a.a().zoom(a,-this.c,h,250)};function Wf(){};function Xf(a){this.a=a}G(Xf,Wf);Xf.prototype.b=function(a){var b=a.a;if(a.type==Ef&&(ef||hc(a.a))){var c=a.map,d=a.c(),e=a.a.Z?-this.a:this.a;c.a().zoom(c,e,d);a.v();b.v()}};function Yf(a){return a.M&&!a.Ma&&!a.Z}function Zf(a){return!a.M&&!a.Ma&&!a.Z}function $f(a){return!a.M&&!a.Ma&&a.Z};function ag(){this.f=m;this.C=this.B=this.r=this.o=0;this.sa=this.Q=k}G(ag,Wf);ag.prototype.g=y;ag.prototype.n=y;ag.prototype.d=ae;ag.prototype.b=function(a){var b=a.map;if(b.Da()){var b=b.a(),c=a.a;this.f?a.type==Hf?(this.c=c.clientX-this.o,this.a=c.clientY-this.r,this.g(a)):a.type==Ff&&(this.c=c.clientX-this.o,this.a=c.clientY-this.r,this.n(a),this.f=m):a.type==Gf&&(this.o=c.clientX,this.r=c.clientY,this.a=this.c=0,this.Q=b.aa(),this.sa=a.c(),this.d(a)&&(this.f=i,a.v()))}};function bg(a){ag.call(this);this.e=a}G(bg,ag);bg.prototype.g=function(a){var a=a.map,b=a.a(),c=b.T(),d=b.xa(),c=new R(-c*this.c,c*this.a);c.rotate(d);d=new R(this.Q.x+c.x,this.Q.y+c.y);Pf(a);b.b(d)};bg.prototype.n=function(a){a=a.map;Pf(a);a=a.a();a.a[1]+=-1};bg.prototype.d=function(a){return this.e(a.a)?(a=a.map,Pf(a),a=a.a(),a.a[1]+=1,i):m};function cg(a){ag.call(this);this.w=a;this.e=0}G(cg,ag);cg.prototype.g=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),a=b.a();Pf(b);a.rotate(b,this.e,-c)};cg.prototype.d=function(a){var b=a.a,c=a.map,d=c.a();return hc(b)&&this.w(b)?(Pf(c),b=c.e(),a=Af(a),a=Math.atan2(b.height/2-a.y,a.x-b.width/2),this.e=(d.xa()||0)+a,i):m};function dg(a){var b=Hc("DIV","ol-dragbox");this.c=k;this.e=a.sa;this.d=k;Rf.call(this,{element:b,map:a.map})}G(dg,Rf);dg.prototype.a=function(a){this.d!==k&&(N(this.d),this.d=k);a!==k&&(this.c=eg(a,this.e),Qe(this.element,this.c),Ye(this.element,new gd(0,0)),this.d=M(a,Hf,this.f,m,this));dg.p.a.call(this,a)};dg.prototype.f=function(a){var b=this.b,a=a.c(),b=eg(b,a);Qe(this.element,new xf(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Ye(this.element,new gd(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function fg(a){ag.call(this);this.w=a;this.e=k}G(fg,ag);fg.prototype.n=function(a){this.e.a(k);this.e=k;if(64<=this.c*this.c+this.a*this.a){var b=a.map,c=md(this.sa,a.c());Qf(b,function(){var a=b.a(),e=b.e();a.b(new R((c.h+c.j)/2,(c.i+c.m)/2));e=Math.max((c.j-c.h)/e.width,(c.m-c.i)/e.height);e=a.d.resolution(e,0);a.c(e);a.e(0)})}};fg.prototype.d=function(a){var b=a.a;return hc(b)&&this.w(b)?(this.e=new dg({map:a.map,sa:this.sa}),i):m};function gg(a){this.a=a}G(gg,Wf);gg.prototype.b=function(a){if("key"==a.type){var b=a.a,c=b.ga;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.T()*this.a,c=40==c?new R(0,-e):37==c?new R(-e,0):39==c?new R(e,0):new R(0,e),e=d.aa();d.b(new R(e.x+c.x,e.y+c.y));b.v();a.v()}}};function hg(){}G(hg,Wf);hg.prototype.b=function(a){if("key"==a.type){var b=a.a,c=b.ya;if(43==c||45==c){var d=a.map,c=43==c?4:-4;Pf(d);d.a().zoom(d,c,h,100);b.v();a.v()}}};function ig(a){this.a=a}G(ig,Wf);ig.prototype.b=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a,d=a.c(),e=0>c.a?this.a:-this.a,f=b.a();Pf(b);f.zoom(b,e,d);a.v();c.v()}};function jg(a,b){V.call(this);this.o=a;this.a=b;M(this.a,pe("brightness"),this.ab,m,this);M(this.a,pe("contrast"),this.bb,m,this);M(this.a,pe("hue"),this.cb,m,this);M(this.a,"load",this.eb,m,this);M(this.a,pe("opacity"),this.fb,m,this);M(this.a,pe("saturation"),this.gb,m,this);M(this.a,pe("visible"),this.hb,m,this)}G(jg,V);v=jg.prototype;v.na=p("o");v.ab=y;v.bb=y;v.cb=y;v.eb=y;v.fb=y;v.gb=y;v.hb=y;
|
|
|
|
|
function kg(a,b,c,d){var b=E(b).toString(),e=c.toString();b in a?c in a[b]?(a=a[b][e],a.h=Math.min(a.h,d.h),a.i=Math.min(a.i,d.i),a.j=Math.max(a.j,d.j),a.m=Math.max(a.m,d.m)):a[b][e]=d:(a[b]={},a[b][e]=d)};function lg(a,b){L.call(this);this.ia=a;this.map=b;this.c={};this.f=this.d=k;this.C=[M(b,pe(mg),this.$a,m,this),M(b,pe(Uf),this.Hc,m,this),M(b,pe(ng),this.ib,m,this),M(b,pe(og),this.jb,m,this)]}G(lg,L);v=lg.prototype;v.fa=function(a){var b=this.ua(a);this.rb(a,b)};
|
|
|
|
|
function pg(a){var b=a.z,c=a.Ab;lf(c);of(c,a.size.width/2,a.size.height/2);pf(c,1/b.resolution,-1/b.resolution);qf(c,-b.rotation);of(c,-b.center.x,-b.center.y);var a=a.Tb,b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],j=c[5],s=c[6],q=c[7],n=c[8],l=c[9],u=c[10],w=c[11],r=c[12],t=c[13],B=c[14],c=c[15],D=b*j-d*g,A=b*s-e*g,P=b*q-f*g,Y=d*s-e*j,T=d*q-f*j,xa=e*q-f*s,ya=n*t-l*r,za=n*B-u*r,Aa=n*c-w*r,Ba=l*B-u*t,Ca=l*c-w*t,Da=u*c-w*B,Q=D*Da-A*Ca+P*Ba+Y*Aa-T*za+xa*ya;0!=Q&&(Q=1/Q,a[0]=(j*Da-s*Ca+q*Ba)*Q,a[1]=(-d*Da+e*Ca-
|
|
|
|
|
f*Ba)*Q,a[2]=(t*xa-B*T+c*Y)*Q,a[3]=(-l*xa+u*T-w*Y)*Q,a[4]=(-g*Da+s*Aa-q*za)*Q,a[5]=(b*Da-e*Aa+f*za)*Q,a[6]=(-r*xa+B*P-c*A)*Q,a[7]=(n*xa-u*P+w*A)*Q,a[8]=(g*Ca-j*Aa+q*ya)*Q,a[9]=(-b*Ca+d*Aa-f*ya)*Q,a[10]=(r*T-t*P+c*D)*Q,a[11]=(-n*T+l*P-w*D)*Q,a[12]=(-g*Ba+j*za-s*ya)*Q,a[13]=(b*Ba-d*za+e*ya)*Q,a[14]=(-r*Y+t*A-B*D)*Q,a[15]=(n*Y-l*A+u*D)*Q)}v.ua=ce;v.q=function(){Na(this.c,function(a){ac(a)});I(this.C,N);this.f===k||N(this.f);this.d===k||I(this.d,N);lg.p.q.call(this)};
|
|
|
|
|
function qg(a,b){var c=E(b);return a.c[c]}v.$a=y;v.Gc=function(a){this.fa(a.a)};v.Hc=function(){$b(Oa(this.c));this.c={};this.d!==k&&(I(this.d,N),this.d=k);var a=this.map.u(Uf);a!=k&&(a.forEach(this.fa,this),this.d=[M(a,"add",this.Gc,m,this),M(a,"remove",this.Ic,m,this)])};v.Ic=function(a){this.pb(a.a)};v.kb=function(){rg(this.map)};v.ib=function(){rg(this.map)};v.jb=function(){this.f!==k&&(N(this.f),this.f=k);var a=this.map.a();a!=k&&(this.f=M(a,"changed",this.kb,m,this));rg(this.map)};v.pb=function(a){ac(this.qb(a))};
|
|
|
|
|
v.qb=function(a){a=E(a);if(a in this.c){var b=this.c[a];delete this.c[a];return b}return k};v.L=y;v.rb=function(a,b){var c=E(a);this.c[c]=b};function sg(){if(!("HTMLCanvasElement"in x))return m;try{return document.createElement("CANVAS").getContext("2d")!==k}catch(a){return m}};function tg(a){X.call(this,a)}G(tg,X);function ug(a,b){jg.call(this,a,b)}G(ug,jg);function vg(a,b){jg.call(this,a,b);this.e=this.b=this.c=k;this.N=jf()}G(vg,ug);vg.prototype.W=p("c");
|
|
|
|
|
vg.prototype.L=function(a){function b(a,b){var c=i,e,f,g,j;for(g=b.h;g<=b.j;++g)for(j=b.i;j<=b.m;++j){e=new S(a,g,j);f=e.toString();if(u[a]&&u[a][f])return;e=ge(d,e);e!==k&&2==e.a?(u[a]||(u[a]={}),u[a][f]=e):c=m}return c}var c=a.z,d=this.a.X(),e=d.tileGrid,f=e.b,g=Od(e.a,c.resolution),j=e.a[g],s=Rd(e,a.extent,j),q=new gd(f.width*s.b(),f.height*s.a()),n,l;this.c===k?(n=document.createElement("CANVAS"),n.width=q.width,n.height=q.height,l=n.getContext("2d"),this.c=n,this.b=q,this.e=l):(n=this.c,l=this.e,
|
|
|
|
|
this.b.width==q.width&&this.b.height==q.height||(n.width=q.width,n.height=q.height,this.b=q));l.clearRect(0,0,q.width,q.height);var u={};u[g]={};var q=i,w,r,t,B;for(t=s.h;t<=s.j;++t)for(B=s.i;B<=s.m;++B)if(w=new S(g,t,B),n=ge(d,w),n!==k){r=n.a;if(0==r)q=Ud(e,w),a.sb.b(n,q,j);else if(2==r){u[g][w.toString()]=n;continue}else if(3==r)continue;q=m;e.c(w,b)}t=Ea(Pa(u),Number);La(t);w=nd(Qd(e,new S(g,s.h,s.m)));var D,A,P;for(B=0;B<t.length;++B)if(n=t[B],r=u[n],n==g)for(A in r)n=r[A],l.drawImage(n.W(),f.width*
|
|
|
|
|
(n.da.x-s.h),f.height*(s.m-n.da.y));else for(A in D=e.a[n]/j,r)n=r[A],P=Qd(e,n.da),l.drawImage(n.W(),(P.h-w.x)/j,(w.y-P.m)/j,D*f.width,D*f.height);q||(a.D=i);kg(a.Ra,d,g,s);e=this.N;lf(e);of(e,a.size.width/2,a.size.height/2);qf(e,c.rotation);pf(e,j/c.resolution,j/c.resolution);of(e,(w.x-c.center.x)/j,(c.center.y-w.y)/j)};function wg(a,b){lg.call(this,a,b);this.g=new gd(a.clientHeight,a.clientWidth);this.a=document.createElement("CANVAS");this.a.height=this.g.height;this.a.width=this.g.width;this.a.className="ol-unselectable";Kc(a,this.a);this.n=i;this.o=this.a.getContext("2d")}G(wg,lg);v=wg.prototype;v.ua=function(a){return a instanceof tg?new vg(this,a):k};v.$a=function(){rg(this.map)};v.kb=function(){wg.p.kb.call(this);rg(this.map)};v.ib=function(){wg.p.ib.call(this);rg(this.map)};
|
|
|
|
|
v.jb=function(){wg.p.jb.call(this);rg(this.map)};
|
|
|
|
|
v.L=function(a){if(a===k)this.n&&(Xe(this.a,m),this.n=m);else{var b=a.size;this.g.width==b.width&&this.g.height==b.height||(this.a.width=b.width,this.a.height=b.height,this.g=b);var c=this.o;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);I(a.Ha,function(b){var d=a.Ga[E(b)];if(d.visible)if(d.Oa){b=qg(this,b);b.L(a,d);var g=b.N;c.setTransform(g[0],g[1],g[4],g[5],g[12],g[13]);
|
|
|
|
|
c.globalAlpha=d.opacity;c.drawImage(b.W(),0,0)}else a.D=i},this);this.n||(Xe(this.a,i),this.n=i);pg(a)}};function xg(a,b,c){jg.call(this,a,b);this.target=c}G(xg,jg);xg.prototype.q=function(){Lc(this.target);xg.p.q.call(this)};xg.prototype.eb=function(){rg(this.o.map)};xg.prototype.fb=function(){rg(this.o.map)};xg.prototype.hb=function(){rg(this.o.map)};function yg(a,b){var c=document.createElement("DIV");c.className="ol-layer";c.style.position="absolute";xg.call(this,a,b,c);this.c=i;this.e=1;this.b={}}G(yg,xg);
|
|
|
|
|
yg.prototype.L=function(a,b){if(b.visible){var c=a.z,d=this.a.X(),e=d.tileGrid,f=Od(e.a,c.resolution),g=e.a[f],j=Rd(e,a.extent,g),s={};s[f]={};var q=function(a,b){var c=i,e,f,g,j;for(g=b.h;g<=b.j;++g)for(j=b.i;j<=b.m;++j){e=new S(a,g,j);f=e.toString();if(s[a]&&s[a][f])return;e=ge(d,e);e!==k&&2==e.a?(s[a]||(s[a]={}),s[a][f]=e):c=m}return c},n=i,l,u,w,r,t;for(r=j.h;r<=j.j;++r)for(t=j.i;t<=j.m;++t)if(u=new S(f,r,t),l=ge(d,u),l!==k){w=l.a;if(0==w)n=Ud(e,u),a.sb.b(l,n,g);else if(2==w){s[f][u.toString()]=
|
|
|
|
|
l;continue}else if(3==w)continue;n=m;e.c(u,q)}l=Ea(Pa(s),Number);La(l);var g={},B;for(r=0;r<l.length;++r){u=l[r];u in this.b?q=this.b[u]:(q=Td(e,c.center,e.a[u]),q=new zg(e,q),g[u]=i,this.b[u]=q);u=s[u];for(B in u){t=q;w=u[B];var D=w.da,A=D.toString();if(!(A in t.c)){var P=t.e.b,Y=w.W(t),T=Y.style;T.position="absolute";T.left=(D.x-t.d.x)*P.width+"px";T.top=(t.d.y-D.y)*P.height+"px";t.b===k&&(t.b=document.createDocumentFragment());t.b.appendChild(Y);t.c[A]=w}}q.b!==k&&(q.target.appendChild(q.b),q.b=
|
|
|
|
|
k)}e=Ea(Pa(this.b),Number);La(e);l=jf();for(B=0;B<e.length;++B)if(u=e[B],q=this.b[u],u in s){t=q.g;r=q.f;lf(l);of(l,a.size.width/2,a.size.height/2);qf(l,c.rotation);pf(l,t/c.resolution,t/c.resolution);of(l,(r.x-c.center.x)/t,(c.center.y-r.y)/t);t=q;r=l;if(!(r.length==t.a.length&&r[0]==t.a[0]&&r[1]==t.a[1]&&r[2]==t.a[2]&&r[3]==t.a[3]&&r[4]==t.a[4]&&r[5]==t.a[5]&&r[6]==t.a[6]&&r[7]==t.a[7]&&r[8]==t.a[8]&&r[9]==t.a[9]&&r[10]==t.a[10]&&r[11]==t.a[11]&&r[12]==t.a[12]&&r[13]==t.a[13]&&r[14]==t.a[14]&&r[15]==
|
|
|
|
|
t.a[15])){w=t.target;D=r;A=A=h;if(z(6)){P=Array(16);for(A=0;16>A;++A)P[A]=D[A].toFixed(6);A=P.join(",")}else A=D.join(",");D="matrix3d("+A+")";w=w.style;w.WebkitTransform=D;w.MozTransform=D;w.a=D;w.transform=D;t=t.a;t[0]=r[0];t[1]=r[1];t[2]=r[2];t[3]=r[3];t[4]=r[4];t[5]=r[5];t[6]=r[6];t[7]=r[7];t[8]=r[8];t[9]=r[9];t[10]=r[10];t[11]=r[11];t[12]=r[12];t[13]=r[13];t[14]=r[14];t[15]=r[15]}if(u in g){for(u-=1;0<=u;--u)if(u in this.b){r=this.b[u].target;r.parentNode&&r.parentNode.insertBefore(q.target,
|
|
|
|
|
r.nextSibling);break}0>u&&Kc(this.target,q.target)}else if(!a.A[0]&&!a.A[1]){w=Rd(q.e,a.extent,q.e.a[q.d.k]);u=[];t=r=h;for(t in q.c)r=q.c[t],w.contains(r.da)||u.push(r);w=h;for(w=0;w<u.length;++w)r=u[w],t=r.da.toString(),Lc(r.W(q)),delete q.c[t]}}else Lc(q.target),delete this.b[u];b.opacity!=this.e&&(c=b.opacity,g=this.target.style,"opacity"in g?g.opacity=c:"MozOpacity"in g?g.MozOpacity=c:"filter"in g&&(g.filter=""===c?"":"alpha(opacity="+100*c+")"),this.e=b.opacity);b.visible&&!this.c&&(Xe(this.target,
|
|
|
|
|
i),this.c=i);n||(a.D=i);kg(a.Ra,d,f,j)}else this.c&&(Xe(this.target,m),this.c=m)};function zg(a,b){this.target=document.createElement("DIV");this.target.style.position="absolute";this.e=a;this.d=b;this.f=nd(Qd(a,b));this.g=a.a[b.k];this.c={};this.b=k;var c=Array(16);kf(c,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);this.a=c};function Ag(a,b){lg.call(this,a,b);this.a=document.createElement("DIV");this.a.className="ol-layers-pane ol-unselectable";var c=this.a.style;c.position="absolute";c.width="100%";c.height="100%";Kc(a,this.a);this.g=i}G(Ag,lg);Ag.prototype.fa=function(a){Ag.p.fa.call(this,a);rg(this.map)};Ag.prototype.ua=function(a){return a instanceof tg?(a=new yg(this,a),this.a.appendChild(a.target),a):k};
|
|
|
|
|
Ag.prototype.L=function(a){a===k?this.g&&(Xe(this.a,m),this.g=m):(I(a.Ha,function(b){var c=a.Ga[E(b)];c.Oa&&qg(this,b).L(a,c)},this),this.g||(Xe(this.a,i),this.g=i),pg(a))};var Bg=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function Cg(a,b){var c,d,e=Bg.length;for(d=0;d<e;++d)try{if(c=a.getContext(Bg[d],b),c!==k)return c}catch(f){}return k};function Dg(){if(!("WebGLRenderingContext"in x))return m;try{var a=document.createElement("CANVAS");return Cg(a)!==k}catch(b){return m}};function Eg(a){this.a=a}Eg.prototype.X=p("a");function Fg(a){this.a=a}G(Fg,Eg);Fg.prototype.b=function(){return 35632};function Gg(a){this.a=a}G(Gg,Eg);Gg.prototype.b=function(){return 35633};function Hg(a,b){jg.call(this,a,b);this.w=new Float32Array(16);this.C=new Float32Array(16);this.J=new Float32Array(16);this.ia=new Float32Array(16);this.B=new Float32Array(16);this.c=i;this.ab();this.bb();this.cb();this.gb()}G(Hg,jg);function Ig(a){O(a,"change")}function Jg(a){if(a.c){var b=a.B;lf(b);mf(b,a.C,b);mf(b,a.w,b);mf(b,a.ia,b);mf(b,a.J,b);a.c=m}return a.B}v=Hg.prototype;v.na=function(){return Hg.p.na.call(this)};
|
|
|
|
|
v.ab=function(){var a=this.a.b(),b=this.w;lf(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;Ig(this)};v.bb=function(){var a=this.a.c(),b=this.C;lf(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;Ig(this)};
|
|
|
|
|
v.cb=function(){var a=this.a.d(),b=Math.cos(a),a=Math.sin(a);kf(this.J,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;Ig(this)};v.eb=function(){Ig(this)};v.fb=function(){Ig(this)};
|
|
|
|
|
v.gb=function(){var a=this.a.f();kf(this.ia,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;Ig(this)};v.hb=function(){Ig(this)};v.Ba=y;function Kg(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}G(Kg,Fg);aa(Kg);function Lg(){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}"}G(Lg,Gg);aa(Lg);
|
|
|
|
|
function Mg(a,b){Hg.call(this,a,b);this.Qa=Kg.wa();this.tb=Lg.wa();this.e=this.g=this.f=this.t=k;this.n=h;this.d=jf();this.r=this.b=k}G(Mg,Hg);Mg.prototype.q=function(){var a=this.na().b;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));Mg.p.q.call(this)};Mg.prototype.Ba=function(){this.e=this.g=this.f=this.t=k;this.n=h};
|
|
|
|
|
Mg.prototype.L=function(a){var b=this.na(),c=b.b,d=a.z,e=d.center,f=this.a.X(),g=f.tileGrid,j=Od(g.a,d.resolution),s=g.a[j],q=Rd(g,a.extent,s),n;if(this.b!==k&&this.b.h==q.h&&q.j==this.b.j&&this.b.i==q.i&&q.i==this.b.i)n=this.r;else{var l=new gd(q.b(),q.a()),u=g.b,l=Math.max(l.width*u.width,l.height*u.height),l=Math.pow(2,Math.ceil(Math.log(l)/Math.log(2))),w=new gd(s*l,s*l),r=Sd(g,j),t=r.x+q.h*u.width*s,u=r.y+q.i*u.height*s;n=new ld(t,u,t+w.width,u+w.height);u=this.na().b;!z(this.n)||this.n!=l?(a.ob.push(la(function(a,
|
|
|
|
|
b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},u,this.e,this.g)),t=u.createTexture(),u.bindTexture(3553,t),u.texImage2D(3553,0,6408,l,l,0,6408,5121,k),u.texParameteri(3553,10240,9729),u.texParameteri(3553,10241,9729),r=u.createFramebuffer(),u.bindFramebuffer(36160,r),u.framebufferTexture2D(36160,36064,3553,t,0),this.g=t,this.e=r,this.n=l):u.bindFramebuffer(36160,this.e);c.viewport(0,0,l,l);c.clearColor(0,0,0,0);c.clear(16384);c.disable(3042);l=Ng(b,this.Qa,this.tb);c.useProgram(l);
|
|
|
|
|
this.t===k&&(this.t={ka:c.getAttribLocation(l,"aPosition"),la:c.getAttribLocation(l,"aTexCoord"),Vc:c.getUniformLocation(l,"uTileOffset"),ub:c.getUniformLocation(l,"uTexture")});this.f===k?(l=c.createBuffer(),c.bindBuffer(34962,l),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=l):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.t.ka);c.vertexAttribPointer(this.t.ka,2,5126,m,16,0);c.enableVertexAttribArray(this.t.la);c.vertexAttribPointer(this.t.la,2,
|
|
|
|
|
5126,m,16,8);c.uniform1i(this.t.ub,0);var B={};B[j]={};var u=function(a,c){var d=i,e,g,j,l;for(j=c.h;j<=c.j;++j)for(l=c.i;l<=c.m;++l){e=new S(a,j,l);g=e.toString();if(B[a]&&B[a][g])return;e=ge(f,e);e!==k&&2==e.a&&e.getKey()in b.e?(B[a]||(B[a]={}),B[a][g]=e):d=m}return d},l=new uf,D=i,A,P,Y;for(P=q.h;P<=q.j;++P)for(Y=q.i;Y<=q.m;++Y)if(r=new S(j,P,Y),t=ge(f,r),t!==k){A=t.a;if(0==A)A=Ud(g,r),a.sb.b(t,A,s);else if(2==A)if(t.getKey()in b.e){B[j][r.toString()]=t;continue}else A=Ud(g,r),D=A.x-e.x,A=A.y-
|
|
|
|
|
e.y,D=Math.sqrt(D*D+A*A),tf(l,D,t);else if(3==A)continue;D=m;g.c(r,u)}e=Ea(Pa(B),Number);La(e);var T=new Float32Array(4);I(e,function(a){Na(B[a],function(a){var d=Qd(g,a.da),e=2*d.a()/w.height,f=2*(d.h-n.h)/w.width-1,j=2*(d.i-n.i)/w.height-1;T[0]=2*d.b()/w.width;T[1]=e;T[2]=f;T[3]=j;c.uniform4fv(this.t.Vc,T);Og(b,a);c.drawArrays(5,0,4)},this)},this);l.$()||a.ob.push(la(function(a,b){var c,d;for(c=0;!b.$()&&4>c;++c)d=b.remove(),Og(a,d)},b,l));D?(this.b=q,this.r=n):(this.r=this.b=k,a.D=i)}kg(a.Ra,f,
|
|
|
|
|
j,q);lf(this.d);of(this.d,(d.center.x-n.h)/(n.j-n.h),(d.center.y-n.i)/(n.m-n.i));qf(this.d,d.rotation);pf(this.d,a.size.width*d.resolution/(n.j-n.h),a.size.height*d.resolution/(n.m-n.i));of(this.d,-0.5,-0.5)};function Pg(){this.a="precision mediump float;\n\nuniform mat4 uColorMatrix;\nuniform float uOpacity;\nuniform mat4 uMatrix;\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n\n vec4 texCoord = uMatrix * vec4(vTexCoord, 0., 1.);\n vec4 texColor = texture2D(uTexture, texCoord.st);\n vec4 color = uColorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * uOpacity;\n\n gl_FragColor = color;\n\n}"}G(Pg,Fg);aa(Pg);
|
|
|
|
|
function Qg(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_Position = vec4(aPosition, 0., 1.);\n vTexCoord = aTexCoord;\n}"}G(Qg,Gg);aa(Qg);
|
|
|
|
|
function Rg(a,b){lg.call(this,a,b);this.a=document.createElement("CANVAS");this.a.height=a.clientHeight;this.a.width=a.clientWidth;this.a.className="ol-unselectable";Kc(a,this.a);this.r=i;this.B=new gd(a.clientHeight,a.clientWidth);this.b=Cg(this.a,{alpha:m,antialias:i,depth:m,preserveDrawingBuffer:m,stencil:m});M(this.a,"webglcontextlost",this.Ba,m,this);M(this.a,"webglcontextrestored",this.Lc,m,this);this.o=this.t=k;this.n={};this.g={};this.e={};this.J=Pg.wa();this.N=Qg.wa();this.w={};Sg(this)}
|
|
|
|
|
G(Rg,lg);v=Rg.prototype;v.fa=function(a){Rg.p.fa.call(this,a);a.a()&&rg(this.map)};
|
|
|
|
|
function Og(a,b){var c=a.b,d=b.getKey(),e=a.e[d];z(e)?(c.bindTexture(3553,e.ac),9729!=e.Jb&&(c.texParameteri(3553,10240,9729),e.Jb=9729),9729!=e.Kb&&(c.texParameteri(3553,10240,9729),e.Kb=9729)):(e=c.createTexture(),c.bindTexture(3553,e),c.texImage2D(3553,0,6408,6408,5121,b.W()),c.texParameteri(3553,10240,9729),c.texParameteri(3553,10241,9729),c.texParameteri(3553,10242,33071),c.texParameteri(3553,10243,33071),a.e[d]={ac:e,Jb:9729,Kb:9729})}v.ua=function(a){return a instanceof tg?new Mg(this,a):k};
|
|
|
|
|
v.q=function(){var a=this.b;a.isContextLost()||(Na(this.g,function(b){a.deleteProgram(b)}),Na(this.n,function(b){a.deleteShader(b)}),Na(this.e,function(b){a.deleteTexture(b.ac)}));Rg.p.q.call(this)};function Ng(a,b,c){var d=E(b)+"/"+E(c);if(d in a.g)return a.g[d];var e=a.b,f=e.createProgram();e.attachShader(f,Tg(a,b));e.attachShader(f,Tg(a,c));e.linkProgram(f);return a.g[d]=f}
|
|
|
|
|
function Tg(a,b){var c=E(b);if(c in a.n)return a.n[c];var d=a.b,e=d.createShader(b.b());d.shaderSource(e,b.X());d.compileShader(e);return a.n[c]=e}v.$a=function(){rg(this.map)};v.Oc=function(){rg(this.map)};v.Ba=function(a){a.v();this.o=this.t=k;this.n={};this.g={};this.e={};Na(this.c,function(a){a.Ba()})};v.Lc=function(){Sg(this);rg(this.map)};function Sg(a){a=a.b;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}
|
|
|
|
|
v.pb=function(a){Rg.p.pb.call(this,a);a.a()&&rg(this.map)};v.qb=function(a){var b=Rg.p.qb.call(this,a);b!==k&&(a=E(a),N(this.w[a]),delete this.w[a]);return b};
|
|
|
|
|
v.L=function(a){var b=this.b;if(a===k)return this.r&&(Xe(this.a,m),this.r=m),m;I(a.Ha,function(b){var c=a.Ga[E(b)];c.visible&&c.Oa&&qg(this,b).L(a,c)},this);var c=a.size;this.B.width==c.width&&this.B.height==c.height||(this.a.width=c.width,this.a.height=c.height,this.B=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=Ng(this,this.J,this.N);b.useProgram(c);this.t===k&&(this.t={ka:b.getAttribLocation(c,
|
|
|
|
|
"aPosition"),la:b.getAttribLocation(c,"aTexCoord"),Sc:b.getUniformLocation(c,"uColorMatrix"),Tc:b.getUniformLocation(c,"uMatrix"),Uc:b.getUniformLocation(c,"uOpacity"),ub:b.getUniformLocation(c,"uTexture")});this.o===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.o=c):b.bindBuffer(34962,this.o);b.enableVertexAttribArray(this.t.ka);b.vertexAttribPointer(this.t.ka,2,5126,m,16,0);b.enableVertexAttribArray(this.t.la);
|
|
|
|
|
b.vertexAttribPointer(this.t.la,2,5126,m,16,8);b.uniform1i(this.t.ub,0);I(a.Ha,function(c){var d=a.Ga[E(c)];d.visible&&d.Oa&&(d=qg(this,c),b.uniformMatrix4fv(this.t.Tc,m,d.d),b.uniformMatrix4fv(this.t.Sc,m,Jg(d)),b.uniform1f(this.t.Uc,c.e()),b.bindTexture(3553,d.g),b.drawArrays(5,0,4))},this);this.r||(Xe(this.a,i),this.r=i);pg(a)};v.rb=function(a,b){Rg.p.rb.call(this,a,b);var c=E(a);this.w[c]=M(b,"change",this.Oc,m,this)};var Ug={},Vg={ad:"canvas",dd:"dom",zd:"webgl"},Wg=["webgl","canvas","dom"],mg="backgroundColor",Uf="layers",ng="size",og="view";
|
|
|
|
|
function $(a){var b,c;V.call(this);var d={};d[Uf]=z(a.layers)?a.layers:new W;d[og]=z(a.view)?a.view:new Z;c=lg;var e;e=z(a.renderers)?a.renderers:z(a.renderer)?[a.renderer]:Wg;var f;for(b=0;b<e.length;++b)if(f=e[b],"canvas"==f){if(sg()){c=wg;break}}else if("dom"==f){if(be()){c=Ag;break}}else if("webgl"==f&&Dg()){c=Rg;break}z(a.controls)?e=a.controls:(e=new W,e.push(new Sf({})),e.push(new Vf({delta:z(a.zoomDelta)?a.zoomDelta:4})));if(z(a.interactions))b=a.interactions;else{b=new W;(z(a.rotate)?a.rotate:
|
|
|
|
|
1)&&b.push(new cg(Yf));if(z(a.doubleClickZoom)?a.doubleClickZoom:1)b.push(new Xf(z(a.zoomDelta)?a.zoomDelta:4));(z(a.dragPan)?a.dragPan:1)&&b.push(new bg(Zf));f=z(a.keyboardPanOffset)?a.keyboardPanOffset:80;if(z(a.keyboard)?a.keyboard:1)b.push(new gg(f)),b.push(new hg);if(z(a.mouseWheelZoom)?a.mouseWheelZoom:1)b.push(new ig(z(a.mouseWheelZoomDelta)?a.mouseWheelZoomDelta:1));(z(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new fg($f))}a=C(a.target)?document.getElementById(a.target):a.target;this.c=new ue(this.Pc,
|
|
|
|
|
h,this);Zb(this,this.c);this.tb=jf();this.cc=jf();this.d=k;this.f=0;this.n=m;this.r=a;this.b=Hc("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.r.appendChild(this.b);this.o=Hc("DIV","ol-overlaycontainer");M(this.o,["click",ef?"touchstart":"mousedown"],cc);this.b.appendChild(this.o);a=new Bf(this);M(a,[Df,Ef,Gf,Hf,Ff],this.Rb,m,this);Zb(this,a);a=new De(document);M(a,"key",this.Db,m,this);Zb(this,a);a=new bf(this.b);
|
|
|
|
|
M(a,"mousewheel",this.Db,m,this);Zb(this,a);this.g=e;M(this.g,"add",this.Cc,m,this);M(this.g,"remove",this.Dc,m,this);this.N=b;this.ia=new c(this.b,this);Zb(this,this.ia);this.fc=new ye;M(this.fc,"resize",this.Eb,m,this);this.B=[];this.w=[];this.bc=ka(this.Jc,this);this.C=new vf(ka(this.uc,this));this.Ka(d);this.Eb();this.g.forEach(function(a){a.a(this)},this)}G($,V);$.prototype.q=function(){Lc(this.b);$.p.q.call(this)};$.prototype.J=function(){return this.u(mg)};$.prototype.getBackgroundColor=$.prototype.J;
|
|
|
|
|
$.prototype.Xc=p("g");function zf(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];nf(c.Tb,d,d);return new R(d[0],d[1])}$.prototype.Yc=p("N");function eg(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];nf(c.Ab,d,d);return new xf(d[0],d[1])}$.prototype.e=function(){return this.u(ng)};$.prototype.getSize=$.prototype.e;$.prototype.a=function(){return this.u(og)};$.prototype.getView=$.prototype.a;v=$.prototype;
|
|
|
|
|
v.uc=function(a,b,c){if(this.d!==k){var d=this.d.z.center,a=b.x-d.x,b=b.y-d.y;return Math.sqrt(a*a+b*b)/c}};v.Db=function(a,b){this.Rb(new yf(b||a.type,this,a))};v.Cc=function(a){a.a.a(this)};v.Dc=function(a){a.a.a(k)};v.Rb=function(a){var b=this.N.a;if(O(this,a)!==m)for(var c=b.length-1;0<=c&&!(b[c].b(a),a.Aa);c--);};
|
|
|
|
|
v.Jc=function(){var a=this.C;if(!a.a.$()){var b=a.a.G();a.a.clear();a.c={};var c;for(c=0;c<b.length;++c)a.b.apply(a,b[c])}for(a=this.C;!a.a.$()&&a.d<a.f;)b=a.a.remove()[0],c=b.getKey(),delete a.c[c],M(b,"change",a.e,m,a),b.load(),++a.d;I(this.w,function(a){a(this,this.d)},this);this.w.length=0};v.Eb=function(){this.Qa(new gd(this.r.clientWidth,this.r.clientHeight))};v.Da=function(){var a=this.a(),b;if(b=z(a)){if(a=a.Da())a=this.e()!=k;b=a}return b};
|
|
|
|
|
function rg(a){a.c.a==k&&(0===a.f?(a=a.c,ve(a),a.d()):a.n=i)}function Pf(a){if(0===a.f){if(a.c.a==k){a=a.c;ve(a);a.e=m;var b=we(a),c=xe(a);if(b&&!c&&a.b.mozRequestAnimationFrame)a.a=M(a.b,"MozBeforePaint",a.c),a.b.mozRequestAnimationFrame(k),a.e=i;else{if(b&&c)b=b.call(a.b,a.c);else{var d=a.c,e;e=e||0;b=a.b.setTimeout(function(){return d.apply(this,Array.prototype.slice.call(arguments,0,e))},20)}a.a=b}}}else a.n=i}
|
|
|
|
|
v.Pc=function(a){var b;if(0==this.f){b=this.e();var c=this.u(Uf),c=z(c)?c.a:h,d=this.a(),e=z(d)?this.a():h,f=k;if(z(c)&&z(b)&&z(e)&&e.Da()){var g=this.J(),d=Ia(d.a),j={};I(c,function(a){var b=E(a),c=a.b(),d=a.c(),e=a.d(),f=a.e(),g=a.X().a(),n=a.f(),a=a.a();j[b]={brightness:z(c)?c:0,contrast:z(d)?d:1,hue:z(e)?e:0,opacity:z(f)?f:1,Oa:g,saturation:z(n)?n:1,visible:z(a)?a:i}});var s;s=e.aa();var q=e.Qb(),n=e.T(),e=e.xa();s={center:new R(s.x,s.y),projection:q,resolution:n,rotation:e};f={D:m,backgroundColor:z(g)?
|
|
|
|
|
g:new ff,Ab:this.tb,extent:k,Ha:c,Ga:j,Tb:this.cc,ob:[],size:b,sb:this.C,Ra:{},z:s,A:d,time:a}}this.B=wa(this.B,function(a){return a(this,f)},this);if(f!==k){a=s.center;g=s.resolution;c=s.rotation;e=g*b.width/2;b=g*b.height/2;g=[new R(-e,-b),new R(-e,b),new R(e,-b),new R(e,b)];for(b=0;4>b;++b)e=g[b],e.rotate(c),e.add(a);f.extent=md.apply(k,g)}this.ia.L(f);f!==k&&(f.D&&Pf(this),Array.prototype.push.apply(this.w,f.ob));this.d=f;this.n=m;O(this,new wf("postrender",this,f));x.setTimeout(this.bc,0)}};
|
|
|
|
|
v.Rc=function(a){this.set(mg,a)};$.prototype.setBackgroundColor=$.prototype.Rc;$.prototype.dc=function(a){this.set(Uf,a)};$.prototype.setLayers=$.prototype.dc;$.prototype.Qa=function(a){this.set(ng,a)};$.prototype.setSize=$.prototype.Qa;$.prototype.ec=function(a){this.set(og,a)};$.prototype.setView=$.prototype.ec;function Qf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.n&&(a=a.c,ve(a),a.d())}}
|
|
|
|
|
Ug.lc=function(a){var b=x.location.search.substring(1),a=z(a)?a:new Gb(b);return Sb(a,"renderers")?Tb(a,"renderers").split(","):Sb(a,"renderer")?[Tb(a,"renderer")]:Wg};function Xg(a){var b=Hc("DIV",{"class":"ol-mouse-position"});Rf.call(this,{element:b,map:a.map,target:a.target});this.o=a.projection;this.g=a.coordinateFormat;this.N=z(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.r=Ed;this.d=this.e=this.w=k}G(Xg,Rf);Xg.prototype.J=function(a){a=a.f;a===k?this.c=k:this.c=a.z.projection;Yg(this,this.e)};Xg.prototype.B=function(a){a=Ue(a,this.b.b);a=new xf(a.x,a.y);Yg(this,a);this.e=a};Xg.prototype.C=function(){Yg(this,k);this.e=k};
|
|
|
|
|
Xg.prototype.a=function(a){this.d!==k&&(I(this.d,N),this.d=k);Xg.p.a.call(this,a);if(a!==k){var b=a.b;this.d=[M(b,"mousemove",this.B,m,this),M(b,"mouseout",this.C,m,this),M(a,"postrender",this.J,m,this)]}};function Yg(a,b){var c=a.N;if(b!==k){a.w!=a.c&&(a.r=z(a.o)?Dd(a.c,a.o):Ed,a.w=a.c);var d=zf(a.b,b);d!==k&&(d=a.r(d),c=z(a.g)?a.g(d):d.toString())}if(!z(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};function Zg(){this.a={}}G(Zg,Wf);Zg.prototype.c=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Zg.prototype.b=function(a){if("key"==a.type){var b=this.a[a.a.ya];b&&(b(),a.v())}};function $g(a){this.b=this.a=this.f=k;this.c=[ah,bh];this.e=this.d=k;z(a.coordinate)&&this.Yb(a.coordinate);z(a.element)&&ch(this,a.element);z(a.map)&&this.Sb(a.map);z(a.positioning)&&(this.c=a.positioning,this.U())}v=$g.prototype;v.Hb=function(){this.e!==k&&(I(this.e,N),this.e=k);var a=this.b.a();a!=k&&(this.e=[M(a,pe("center"),this.U,m,this),M(a,pe("resolution"),this.U,m,this),M(a,pe("rotation"),this.U,m,this)],this.U())};v.Yb=function(a){this.f=a;this.U()};
|
|
|
|
|
function ch(a,b){a.a&&Lc(a.a);a.a=b;a.b&&(Le(a.a,"position","absolute"),Jc(a.b.o,a.a));a.U()}v.Nc=p("a");v.Sb=function(a){this.b=a;this.d!==k&&(I(this.d,N),this.d=k);this.a&&ch(this,this.a);a!=k&&(this.d=[M(a,pe(ng),this.U,m,this),M(a,pe(og),this.Hb,m,this)],this.Hb())};
|
|
|
|
|
v.U=function(){if(this.b!==k&&this.f!==k&&this.a!==k){var a=eg(this.b,this.f),b=this.b.u(ng),c=Math.round(a.x);this.c[0]===dh&&(c=b.width-c);a=Math.round(a.y);this.c[1]===bh&&(a=b.height-a);Le(this.a,this.c[0],c+"px");Le(this.a,this.c[1],a+"px")}};var ah="left",dh="right",bh="bottom";function eh(a){var b=a.projection||Bd("EPSG:3857"),c=Yd;z(a.O)?c=a.O:z(a.urls)?c=Wd(Ea(a.urls,Vd)):z(a.url)&&(c=Vd(a.url));var d=new he({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?Zd(function(b){if(a.maxZoom<b.k)return k;var c=1<<b.k,j=-b.y-1;if(0>j||c<=j)return k;c=yc(b.x,c);return!id(Qd(d,new S(b.k,c,b.y)),e)?k:new S(b.k,c,j)},c):Zd(function(b){if(a.maxZoom<b.k)return k;var c=1<<b.k,d=-b.y-1;return 0>d||c<=d?k:new S(b.k,yc(b.x,c),d)},c);fe.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
|
|
|
|
|
extent:a.extent,projection:b,tileGrid:d,O:c})}G(eh,fe);function fh(){eh.call(this,{attributions:[new na('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 na('Data © <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}G(fh,eh);
|
|
|
|
|
function gh(){eh.call(this,{attributions:[new na('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 na("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}G(gh,eh);function hh(){eh.call(this,{attributions:[new na('© <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}G(hh,eh);var ih={terrain:{type:"jpg",Mb:4,maxZoom:18},toner:{type:"png",Mb:0,maxZoom:20},watercolor:{type:"jpg",Mb:3,maxZoom:16}};
|
|
|
|
|
function jh(a){var b=new na('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.Rc;z(a.rc)&&(c+="-"+a.rc);a=ih[a.Rc];eh.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}G(jh,eh);var kh=[];F("grid",function(a){kh.push(a)});function lh(a){fe.call(this,{projection:Bd("EPSG:3857")});this.c=n;a=this.g=Tc(a.uri,{zb:i});a.a.push([this.n,k,this]);a.V&&Pc(a)}G(lh,fe);
|
|
|
|
|
lh.prototype.n=function(){var a=kh.pop(),b=Bd("EPSG:4326"),c,d;z(a.bounds)?(c=a.bounds,c=new ld(c[0],c[1],c[2],c[3]),this.d=d=c.transform(Dd(b,this.e))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new he({maxZoom:f});this.tileGrid=g;this.O=Zd(function(a){if(a.k<e||f<a.k)return k;var b=1<<a.k,c=-a.y-1;if(0>c||b<=c)return k;b=yc(a.x,b);return d!==k&&!id(Qd(g,new S(a.k,b,a.y)),d)?k:new S(a.k,b,c)},Wd(Ea(a.tiles,Vd)));if(z(a.attribution)){b=d===k?b.K():d;c={};var j,s;for(j=e;j<=f;++j)s=j.toString(),c[s]=
|
|
|
|
|
[Rd(g,b,g.a[j])];this.ta=[new na(a.attribution,c)]}this.c=i;O(this,"load")};lh.prototype.a=p("c");function mh(a){var b=Ad(a.projection),c=b.K(),d=z(a.extent)?a.extent:c,e=z(a.version)?a.version:"1.3",f,g;if(z(a.tileGrid))g=a.tileGrid;else{var j=a.maxZoom;g=b.K();for(var s=Math.max(g.j-g.h,g.m-g.i),q=z(h)?h:new gd(256,256),j=Array((z(j)?j:18)+1),l=0,m=j.length;l<m;++l)j[l]=s/(q.width<<l);g=new Pd({origin:nd(g),resolutions:j,Ra:q})}f=g;var u={SERVICE:"WMS",VERSION:e,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:i};g=f.b;u.WIDTH=g.width;u.HEIGHT=g.height;u["1.3"<=e?"CRS":"SRS"]=b.a;Ra(u,
|
|
|
|
|
a.params);a.urls?(e=Ea(a.urls,function(a){a=yb(Ab([a],u));return Xd(a,f)}),e=Wd(e)):a.url?(e=yb(Ab([a.url],u)),e=Xd(e,f)):e=Yd;fe.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:f,projection:b,O:Zd(function(a){if(f.a.length<=a.k)return k;var b=a.x,e=Qd(f,a);d.h===c.h&&d.j===c.j&&(e=Math.ceil((d.j-d.h)/(e.j-e.h)),b=yc(b,e),e=Qd(f,new S(a.k,b,a.y)));return!id(e,d)?k:new S(a.k,b,a.y)},e)})}G(mh,fe);F("goog.require",y);F("ol.Attribution",na);F("ol.BingMapsStyle",ie);ie.AERIAL="Aerial";ie.AERIAL_WITH_LABELS="AerialWithLabels";ie.COLLINS_BART="CollinsBart";ie.ORDNANCE_SURVEY="OrdnanceSurvey";ie.ROAD="Road";F("ol.Collection",W);W.prototype.clear=W.prototype.clear;W.prototype.forEach=W.prototype.forEach;W.prototype.getArray=W.prototype.sc;W.prototype.getAt=W.prototype.tc;W.prototype.getLength=W.prototype.Db;W.prototype.insertAt=W.prototype.Ca;W.prototype.pop=W.prototype.Qb;W.prototype.push=W.prototype.push;
|
|
|
|
|
W.prototype.removeAt=W.prototype.Xb;W.prototype.setAt=W.prototype.Tc;F("ol.Coordinate",R);R.toStringHDMS=function(a){return z(a)?fd(a.y,"NS")+" "+fd(a.x,"EW"):""};F("ol.Extent",ld);
|
|
|
|
|
function nh(a){$.call(this,{controls:a.controls,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,shiftDragZoom:a.shiftDragZoom,target:a.target,view:a.view,zoomDelta:a.zoomDelta})}G(nh,$);F("ol.Map",nh);$.prototype.getControls=$.prototype.$c;$.prototype.getInteractions=$.prototype.ad;
|
|
|
|
|
yf.prototype.getCoordinate=yf.prototype.c;F("ol.Object",V);V.prototype.bindTo=V.prototype.hc;V.prototype.changed=V.prototype.kc;V.prototype.get=V.prototype.u;V.prototype.notify=V.prototype.Ob;V.prototype.set=V.prototype.set;V.prototype.setOptions=V.prototype.$b;V.prototype.setValues=V.prototype.Ka;V.prototype.unbind=V.prototype.wb;V.prototype.unbindAll=V.prototype.Zc;F("ol.Projection",U);U.addProjection=xd;U.getFromCode=Bd;U.getTransform=Dd;U.getTransformFromCodes=Fd;
|
|
|
|
|
U.transform=function(a,b,c){return Dd(b,c)(a)};U.transformWithCodes=function(a,b,c){return Fd(b,c)(a)};U.prototype.getCode=U.prototype.b;U.prototype.getExtent=U.prototype.K;U.prototype.getUnits=U.prototype.c;F("ol.ProjectionUnits",rd);rd.DEGREES="degrees";rd.METERS="m";F("ol.RendererHint",Sg);Sg.CANVAS="canvas";Sg.DOM="dom";Sg.WEBGL="webgl";F("ol.RendererHints",Rg);Rg.createFromQueryData=Rg.mc;F("ol.animation",Wg);Wg.createBounce=Wg.lc;Wg.createPanFrom=Wg.nc;Wg.createSpin=Wg.oc;
|
|
|
|
|
function oh(a){Of.call(this,{map:a.map,target:a.target})}G(oh,Of);F("ol.control.Attribution",oh);function ph(a){Xg.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}G(ph,Xg);F("ol.control.MousePosition",ph);function qh(a){Rf.call(this,{delta:a.delta,map:a.map,target:a.target})}G(qh,Rf);F("ol.control.Zoom",qh);F("ol.interaction.Keyboard",Zg);Zg.prototype.addCallback=Zg.prototype.c;
|
|
|
|
|
function rh(a){X.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}G(rh,qg);F("ol.layer.TileLayer",rh);function sh(a){$g.call(this,{coordinate:a.coordinate,element:a.element,map:a.map,positioning:a.positioning})}G(sh,$g);F("ol.overlay.Overlay",sh);$g.prototype.getElement=$g.prototype.Oc;$g.prototype.setCoordinate=$g.prototype.Zb;$g.prototype.setMap=$g.prototype.Tb;F("ol.source.BingMaps",je);
|
|
|
|
|
F("ol.source.MapQuestOSM",fh);F("ol.source.MapQuestOpenAerial",gh);F("ol.source.OpenStreetMap",hh);F("ol.source.Stamen",jh);F("ol.source.TileJSON",lh);F("ol.source.TiledWMS",mh);})();
|
|
|
|
|
function gh(){eh.call(this,{attributions:[new na('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 na("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}G(gh,eh);function hh(){eh.call(this,{attributions:[new na('© <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}G(hh,eh);var ih={kd:"background",ld:"labels",md:"lines",od:"2010",pd:"2011",qd:"2011-labels",rd:"2011-lines",sd:"2011-lite",td:"background",ud:"hybrid",vd:"labels",wd:"lines",xd:"lite"},jh={jd:"terrain",nd:"toner",yd:"watercolor"},kh={terrain:{type:"jpg",Lb:4,maxZoom:18},toner:{type:"png",Lb:0,maxZoom:20},watercolor:{type:"jpg",Lb:3,maxZoom:16}};
|
|
|
|
|
function lh(a){var b=new na('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;z(a.flavor)&&(c+="-"+a.flavor);a=kh[a.provider];eh.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}G(lh,eh);var mh=[];F("grid",function(a){mh.push(a)});function nh(a){fe.call(this,{projection:Bd("EPSG:3857")});this.c=m;a=this.g=Tc(a.uri,{yb:i});a.a.push([this.n,k,this]);a.V&&Pc(a)}G(nh,fe);
|
|
|
|
|
nh.prototype.n=function(){var a=mh.pop(),b=Bd("EPSG:4326"),c,d;z(a.bounds)?(c=a.bounds,c=new ld(c[0],c[1],c[2],c[3]),this.d=d=c.transform(Dd(b,this.e))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new he({maxZoom:f});this.tileGrid=g;this.O=Zd(function(a){if(a.k<e||f<a.k)return k;var b=1<<a.k,c=-a.y-1;if(0>c||b<=c)return k;b=yc(a.x,b);return d!==k&&!id(Qd(g,new S(a.k,b,a.y)),d)?k:new S(a.k,b,c)},Wd(Ea(a.tiles,Vd)));if(z(a.attribution)){b=d===k?b.K():d;c={};var j,s;for(j=e;j<=f;++j)s=j.toString(),c[s]=
|
|
|
|
|
[Rd(g,b,g.a[j])];this.ta=[new na(a.attribution,c)]}this.c=i;O(this,"load")};nh.prototype.a=p("c");function oh(a){var b=Ad(a.projection),c=b.K(),d=z(a.extent)?a.extent:c,e=z(a.version)?a.version:"1.3",f,g;if(z(a.tileGrid))g=a.tileGrid;else{var j=a.maxZoom;g=b.K();for(var s=Math.max(g.j-g.h,g.m-g.i),q=z(h)?h:new gd(256,256),j=Array((z(j)?j:18)+1),n=0,l=j.length;n<l;++n)j[n]=s/(q.width<<n);g=new Pd({origin:nd(g),resolutions:j,tileSize:q})}f=g;var u={SERVICE:"WMS",VERSION:e,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:i};g=f.b;u.WIDTH=g.width;u.HEIGHT=g.height;u["1.3"<=e?"CRS":"SRS"]=
|
|
|
|
|
b.a;Ra(u,a.params);a.urls?(e=Ea(a.urls,function(a){a=yb(Ab([a],u));return Xd(a,f)}),e=Wd(e)):a.url?(e=yb(Ab([a.url],u)),e=Xd(e,f)):e=Yd;fe.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:f,projection:b,O:Zd(function(a){if(f.a.length<=a.k)return k;var b=a.x,e=Qd(f,a);d.h===c.h&&d.j===c.j&&(e=Math.ceil((d.j-d.h)/(e.j-e.h)),b=yc(b,e),e=Qd(f,new S(a.k,b,a.y)));return!id(e,d)?k:new S(a.k,b,a.y)},e)})}G(oh,fe);F("goog.require",y);F("ol.Attribution",na);F("ol.BingMapsStyle",ie);ie.AERIAL="Aerial";ie.AERIAL_WITH_LABELS="AerialWithLabels";ie.COLLINS_BART="CollinsBart";ie.ORDNANCE_SURVEY="OrdnanceSurvey";ie.ROAD="Road";F("ol.Collection",W);W.prototype.clear=W.prototype.clear;W.prototype.forEach=W.prototype.forEach;W.prototype.getArray=W.prototype.rc;W.prototype.getAt=W.prototype.sc;W.prototype.getLength=W.prototype.Cb;W.prototype.insertAt=W.prototype.Ca;W.prototype.pop=W.prototype.Pb;W.prototype.push=W.prototype.push;
|
|
|
|
|
W.prototype.removeAt=W.prototype.Wb;W.prototype.setAt=W.prototype.Qc;F("ol.Coordinate",R);R.toStringHDMS=function(a){return z(a)?fd(a.y,"NS")+" "+fd(a.x,"EW"):""};F("ol.Extent",ld);
|
|
|
|
|
function ph(a){$.call(this,{controls:a.controls,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,shiftDragZoom:a.shiftDragZoom,target:a.target,view:a.view,zoomDelta:a.zoomDelta})}G(ph,$);F("ol.Map",ph);$.prototype.getControls=$.prototype.Xc;$.prototype.getInteractions=$.prototype.Yc;
|
|
|
|
|
yf.prototype.getCoordinate=yf.prototype.c;F("ol.Object",V);V.prototype.bindTo=V.prototype.gc;V.prototype.changed=V.prototype.jc;V.prototype.get=V.prototype.u;V.prototype.notify=V.prototype.Nb;V.prototype.set=V.prototype.set;V.prototype.setOptions=V.prototype.Zb;V.prototype.setValues=V.prototype.Ka;V.prototype.unbind=V.prototype.vb;V.prototype.unbindAll=V.prototype.Wc;F("ol.Projection",U);U.addProjection=xd;U.getFromCode=Bd;U.getTransform=Dd;U.getTransformFromCodes=Fd;
|
|
|
|
|
U.transform=function(a,b,c){return Dd(b,c)(a)};U.transformWithCodes=function(a,b,c){return Fd(b,c)(a)};U.prototype.getCode=U.prototype.b;U.prototype.getExtent=U.prototype.K;U.prototype.getUnits=U.prototype.c;F("ol.ProjectionUnits",rd);rd.DEGREES="degrees";rd.METERS="m";F("ol.RendererHint",Vg);Vg.CANVAS="canvas";Vg.DOM="dom";Vg.WEBGL="webgl";F("ol.RendererHints",Ug);Ug.createFromQueryData=Ug.lc;
|
|
|
|
|
function qh(a){Z.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})}G(qh,Z);F("ol.View2D",qh);F("ol.animation",Of);Of.createBounce=Of.kc;Of.createPanFrom=Of.mc;Of.createSpin=Of.nc;function rh(a){Sf.call(this,{map:a.map,target:a.target})}G(rh,Sf);F("ol.control.Attribution",rh);
|
|
|
|
|
function sh(a){Xg.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}G(sh,Xg);F("ol.control.MousePosition",sh);function th(a){Vf.call(this,{delta:a.delta,map:a.map,target:a.target})}G(th,Vf);F("ol.control.Zoom",th);F("ol.interaction.Keyboard",Zg);Zg.prototype.addCallback=Zg.prototype.c;
|
|
|
|
|
function uh(a){X.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}G(uh,tg);F("ol.layer.TileLayer",uh);function vh(a){$g.call(this,{coordinate:a.coordinate,element:a.element,map:a.map,positioning:a.positioning})}G(vh,$g);F("ol.overlay.Overlay",vh);$g.prototype.getElement=$g.prototype.Nc;$g.prototype.setCoordinate=$g.prototype.Yb;$g.prototype.setMap=$g.prototype.Sb;F("ol.source.BingMaps",je);
|
|
|
|
|
F("ol.source.MapQuestOSM",fh);F("ol.source.MapQuestOpenAerial",gh);F("ol.source.OpenStreetMap",hh);F("ol.source.Stamen",lh);F("ol.source.StamenFlavor",ih);ih.TERRAIN_BACKGROUND="background";ih.TERRAIN_LABELS="labels";ih.TERRAIN_LINES="lines";ih.TONER_2010="2010";ih.TONER_2011="2011";ih.TONER_2011_LABELS="2011-labels";ih.TONER_2011_LINES="2011-lines";ih.TONER_2011_LITE="2011-lite";ih.TONER_BACKGROUND="background";ih.TONER_HYBRID="hybrid";ih.TONER_LABELS="labels";ih.TONER_LINES="lines";
|
|
|
|
|
ih.TONER_LITE="lite";F("ol.source.StamenProvider",jh);jh.TERRAIN="terrain";jh.TONER="toner";jh.WATERCOLOR="watercolor";F("ol.source.TileJSON",nh);F("ol.source.TiledWMS",oh);function wh(a){Pd.call(this,{extent:a.extent,origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize})}G(wh,Pd);F("ol.tilegrid.TileGrid",wh);function xh(a){he.call(this,{maxZoom:a.maxZoom})}G(xh,he);F("ol.tilegrid.XYZ",xh);})();
|
|
|
|
|
|