vendor: 4,669 bytes, lines 1-15
1 2/* 3 AngularJS v1.4.9 4 (c) 2010-2015 Google, Inc. http://angularjs.org 5 License: MIT 6*/ 7(function(S,W,w){'use strict';function M(a){return function(){var b=arguments[0],d;d="["+(a?a+":":"")+b+"] http://errors.angularjs.org/1.4.9/"+(a?a+"/":"")+b;for(b=1;b<arguments.length;b++){d=d+(1==b?"?":"&")+"p"+(b-1)+"=";var c=encodeURIComponent,e;e=arguments[b];e="function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e;d+=c(e)}return Error(d)}}function Aa(a){if(null==a||Xa(a))return!1;if(E(a)||F(a)||A&&a instanceof A)return!0; 8var b="length"in Object(a)&&a.length;return Q(b)&&(0<=b&&(b-1 in a||a instanceof Array)||"function"==typeof a.item)}function n(a,b,d){var c,e;if(a)if(B(a))for(c in a)"prototype"==c||"length"==c||"name"==c||a.hasOwnProperty&&!a.hasOwnProperty(c)||b.call(d,a[c],c,a);else if(E(a)||Aa(a)){var f="object"!==typeof a;c=0;for(e=a.length;c<e;c++)(f||c in a)&&b.call(d,a[c],c,a)}else if(a.forEach&&a.forEach!==n)a.forEach(b,d,a);else if(oc(a))for(c in a)b.call(d,a[c],c,a);else if("function"===typeof a.hasOwnProperty)for(c in a)a.hasOwnProperty(c)&& 9b.call(d,a[c],c,a);else for(c in a)ra.call(a,c)&&b.call(d,a[c],c,a);return a}function pc(a,b,d){for(var c=Object.keys(a).sort(),e=0;e<c.length;e++)b.call(d,a[c[e]],c[e]);return c}function qc(a){return function(b,d){a(d,b)}}function Xd(){return++ob}function Ob(a,b,d){for(var c=a.$$hashKey,e=0,f=b.length;e<f;++e){var g=b[e];if(G(g)||B(g))for(var h=Object.keys(g),k=0,l=h.length;k<l;k++){var m=h[k],r=g[m];d&&G(r)?da(r)?a[m]=new Date(r.valueOf()):La(r)?a[m]=new RegExp(r):r.nodeName?a[m]=r.cloneNode(!0): 10Pb(r)?a[m]=r.clone():(G(a[m])||(a[m]=E(r)?[]:{}),Ob(a[m],[r],!0)):a[m]=r}}c?a.$$hashKey=c:delete a.$$hashKey;return a}function N(a){return Ob(a,sa.call(arguments,1),!1)}function Yd(a){return Ob(a,sa.call(arguments,1),!0)}function Z(a){return parseInt(a,10)}function Qb(a,b){return N(Object.create(a),b)}function z(){}function Ya(a){return a}function na(a){return function(){return a}}function rc(a){return B(a.toString)&&a.toString!==ta}function q(a){return"undefined"===typeof a}function u(a){return"undefined"!== 11typeof a}function G(a){return null!==a&&"object"===typeof a}function oc(a){return null!==a&&"object"===typeof a&&!sc(a)}function F(a){return"string"===typeof a}function Q(a){return"number"===typeof a}function da(a){return"[object Date]"===ta.call(a)}function B(a){return"function"===typeof a}function La(a){return"[object RegExp]"===ta.call(a)}function Xa(a){return a&&a.window===a}function Za(a){return a&&a.$evalAsync&&a.$watch}function $a(a){return"boolean"===typeof a}function tc(a){return a&&Q(a.length)&& 12Zd.test(ta.call(a))}function Pb(a){return!(!a||!(a.nodeName||a.prop&&a.attr&&a.find))}function $d(a){var b={};a=a.split(",");var d;for(d=0;d<a.length;d++)b[a[d]]=!0;return b}function oa(a){return K(a.nodeName||a[0]&&a[0].nodeName)}function ab(a,b){var d=a.indexOf(b);0<=d&&a.splice(d,1);return d}function Ma(a,b){function d(a,b){var d=b.$$hashKey,e;if(E(a)){e=0;for(var f=a.length;e<f;e++)b.push(c(a[e]))}else if(oc(a))for(e in a)b[e]=c(a[e]);else if(a&&"function"===typeof a.hasOwnProperty)for(e in a)a.hasOwnProperty(e)&& 13(b[e]=c(a[e]));else for(e in a)ra.call(a,e)&&(b[e]=c(a[e]));d?b.$$hashKey=d:delete b.$$hashKey;return b}function c(a){if(!G(a))return a;var b=e.indexOf(a);if(-1!==b)return f[b];if(Xa(a)||Za(a))throw Ba("cpws");var b=!1,c;E(a)?(c=[],b=!0):tc(a)?c=new a.constructor(a):da(a)?c=new Date(a.getTime()):La(a)?(c=new RegExp(a.source,a.toString().match(/[^\/]*$/)[0]),c.lastIndex=a.lastIndex):B(a.cloneNode)?c=a.cloneNode(!0):(c=Object.create(sc(a)),b=!0);e.push(a);f.push(c);return b?d(a,c):c}var e=[],f=[];if(b){if(tc(b))throw Ba("cpta"); 14if(a===b)throw Ba("cpi");E(b)?b.length=0:n(b,function(a,c){"$$hashKey"!==c&&delete b[c]});e.push(a);f.push(b);return d(a,b)}return c(a)}function ha(a,b){if(E(a)){b=b||[];for(var d=0,c=a.length;d<c;d++)b[d]=a[d]}else if(G(a))for(d in b=b||{},a)if("$"!==d.charAt(0)||"$"!==d.charAt(1))b[d]=a[d];return b||a}function ka(a,b){if(a===b)return!0;if(null===a||null===b)return!1;if(a!==a&&b!==b)return!0;var d=typeof a,c;if(d==typeof b&&"object"==d)if(E(a)){if(!E(b))return!1;if((d=a.length)==b.length){for(c= 150;c<d;c++)if(!ka(a[c],b[c]))return!1;return!0}}else{if(da(a))return da(b)?ka(a.getTime(),b.getTime()):!1;if(La(a))return La(b)?a.toString()==b.toString():!1;if(Za(a)||Za(b)||Xa(a)||Xa(b)||E(b)||da(b)||La(b))return!1;d=ea();for(c in a)if("$"!==c.charAt(0)&&!B(a[c])){if(!ka(a[c],b[c]))return!1;d[c]=!0}for(c in b)if(!(c in d)&&"$"!==c.charAt(0)&&u(b[c])&&!B(b[c]))return!1;return!0}return!1}function bb(a,b,d){return a.concat(sa.call(b,d))}
vendor: 4,143 bytes, lines 15-24
15function uc(a,b){var d=2<arguments.length?sa.call(arguments,2): 16[];return!B(b)||b instanceof RegExp?b:d.length?function(){return arguments.length?b.apply(a,bb(d,arguments,0)):b.apply(a,d)}:function(){return arguments.length?b.apply(a,arguments):b.call(a)}}function ae(a,b){var d=b;"string"===typeof a&&"$"===a.charAt(0)&&"$"===a.charAt(1)?d=w:Xa(b)?d="$WINDOW":b&&W===b?d="$DOCUMENT":Za(b)&&(d="$SCOPE");return d}function cb(a,b){if("undefined"===typeof a)return w;Q(b)||(b=b?2:null);return JSON.stringify(a,ae,b)}function vc(a){return F(a)?JSON.parse(a):a}function wc(a, 17b){var d=Date.parse("Jan 01, 1970 00:00:00 "+a)/6E4;return isNaN(d)?b:d}function Rb(a,b,d){d=d?-1:1;var c=wc(b,a.getTimezoneOffset());b=a;a=d*(c-a.getTimezoneOffset());b=new Date(b.getTime());b.setMinutes(b.getMinutes()+a);return b}function ua(a){a=A(a).clone();try{a.empty()}catch(b){}var d=A("<div>").append(a).html();try{return a[0].nodeType===Na?K(d):d.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+K(b)})}catch(c){return K(d)}}function xc(a){try{return decodeURIComponent(a)}catch(b){}} 18function yc(a){var b={};n((a||"").split("&"),function(a){var c,e,f;a&&(e=a=a.replace(/\+/g,"%20"),c=a.indexOf("="),-1!==c&&(e=a.substring(0,c),f=a.substring(c+1)),e=xc(e),u(e)&&(f=u(f)?xc(f):!0,ra.call(b,e)?E(b[e])?b[e].push(f):b[e]=[b[e],f]:b[e]=f))});return b}function Sb(a){var b=[];n(a,function(a,c){E(a)?n(a,function(a){b.push(ia(c,!0)+(!0===a?"":"="+ia(a,!0)))}):b.push(ia(c,!0)+(!0===a?"":"="+ia(a,!0)))});return b.length?b.join("&"):""}function pb(a){return ia(a,!0).replace(/%26/gi,"&").replace(/%3D/gi, 19"=").replace(/%2B/gi,"+")}function ia(a,b){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,b?"%20":"+")}function be(a,b){var d,c,e=Oa.length;for(c=0;c<e;++c)if(d=Oa[c]+b,F(d=a.getAttribute(d)))return d;return null}function ce(a,b){var d,c,e={};n(Oa,function(b){b+="app";!d&&a.hasAttribute&&a.hasAttribute(b)&&(d=a,c=a.getAttribute(b))});n(Oa,function(b){b+="app";var e;!d&&(e=a.querySelector("["+b.replace(":", 20"\\:")+"]"))&&(d=e,c=e.getAttribute(b))});d&&(e.strictDi=null!==be(d,"strict-di"),b(d,c?[c]:[],e))}function zc(a,b,d){G(d)||(d={});d=N({strictDi:!1},d);var c=function(){a=A(a);if(a.injector()){var c=a[0]===W?"document":ua(a);throw Ba("btstrpd",c.replace(/</,"<").replace(/>/,">"));}b=b||[];b.unshift(["$provide",function(b){b.value("$rootElement",a)}]);d.debugInfoEnabled&&b.push(["$compileProvider",function(a){a.debugInfoEnabled(!0)}]);b.unshift("ng");c=db(b,d.strictDi);c.invoke(["$rootScope", 21"$rootElement","$compile","$injector",function(a,b,c,d){a.$apply(function(){b.data("$injector",d);c(b)(a)})}]);return c},e=/^NG_ENABLE_DEBUG_INFO!/,f=/^NG_DEFER_BOOTSTRAP!/;S&&e.test(S.name)&&(d.debugInfoEnabled=!0,S.name=S.name.replace(e,""));if(S&&!f.test(S.name))return c();S.name=S.name.replace(f,"");$.resumeBootstrap=function(a){n(a,function(a){b.push(a)});return c()};B($.resumeDeferredBootstrap)&&$.resumeDeferredBootstrap()}function de(){S.name="NG_ENABLE_DEBUG_INFO!"+S.name;S.location.reload()} 22function ee(a){a=$.element(a).injector();if(!a)throw Ba("test");return a.get("$$testability")}function Ac(a,b){b=b||"_";return a.replace(fe,function(a,c){return(c?b:"")+a.toLowerCase()})}function ge(){var a;if(!Bc){var b=qb();(pa=q(b)?S.jQuery:b?S[b]:w)&&pa.fn.on?(A=pa,N(pa.fn,{scope:Pa.scope,isolateScope:Pa.isolateScope,controller:Pa.controller,injector:Pa.injector,inheritedData:Pa.inheritedData}),a=pa.cleanData,pa.cleanData=function(b){var c;if(Tb)Tb=!1;else for(var e=0,f;null!=(f=b[e]);e++)(c= 23pa._data(f,"events"))&&c.$destroy&&pa(f).triggerHandler("$destroy");a(b)}):A=P;$.element=A;Bc=!0}}function rb(a,b,d){if(!a)throw Ba("areq",b||"?",d||"required");return a}function Qa(a,b,d){d&&E(a)&&(a=a[a.length-1]);rb(B(a),b,"not a function, got "+(a&&"object"===typeof a?a.constructor.name||"Object":typeof a));return a}function Ra(a,b){if("hasOwnProperty"===a)throw Ba("badname",b);}function Cc(a,b,d){if(!b)return a;b=b.split(".");for(var c,e=a,f=b.length,g=0;g<f;g++)c=b[g],a&&(a=(e=a)[c]);return!d&& 24B(a)?uc(e,a):a}
vendor: 4,652 bytes, lines 24-33
24function sb(a){for(var b=a[0],d=a[a.length-1],c,e=1;b!==d&&(b=b.nextSibling);e++)if(c||a[e]!==b)c||(c=A(sa.call(a,0,e))),c.push(b);return c||a}function ea(){return Object.create(null)}function he(a){function b(a,b,c){return a[b]||(a[b]=c())}var d=M("$injector"),c=M("ng");a=b(a,"angular",Object);a.$$minErr=a.$$minErr||M;return b(a,"module",function(){var a={};return function(f,g,h){if("hasOwnProperty"===f)throw c("badname","module");g&&a.hasOwnProperty(f)&&(a[f]=null);return b(a,f,function(){function a(b, 25d,e,f){f||(f=c);return function(){f[e||"push"]([b,d,arguments]);return y}}function b(a,d){return function(b,e){e&&B(e)&&(e.$$moduleName=f);c.push([a,d,arguments]);return y}}if(!g)throw d("nomod",f);var c=[],e=[],t=[],C=a("$injector","invoke","push",e),y={_invokeQueue:c,_configBlocks:e,_runBlocks:t,requires:g,name:f,provider:b("$provide","provider"),factory:b("$provide","factory"),service:b("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),decorator:b("$provide", 26"decorator"),animation:b("$animateProvider","register"),filter:b("$filterProvider","register"),controller:b("$controllerProvider","register"),directive:b("$compileProvider","directive"),config:C,run:function(a){t.push(a);return this}};h&&C(h);return y})}})}function ie(a){N(a,{bootstrap:zc,copy:Ma,extend:N,merge:Yd,equals:ka,element:A,forEach:n,injector:db,noop:z,bind:uc,toJson:cb,fromJson:vc,identity:Ya,isUndefined:q,isDefined:u,isString:F,isFunction:B,isObject:G,isNumber:Q,isElement:Pb,isArray:E, 27version:je,isDate:da,lowercase:K,uppercase:tb,callbacks:{counter:0},getTestability:ee,$$minErr:M,$$csp:Ca,reloadWithDebugInfo:de});Ub=he(S);Ub("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:ke});a.provider("$compile",Dc).directive({a:le,input:Ec,textarea:Ec,form:me,script:ne,select:oe,style:pe,option:qe,ngBind:re,ngBindHtml:se,ngBindTemplate:te,ngClass:ue,ngClassEven:ve,ngClassOdd:we,ngCloak:xe,ngController:ye,ngForm:ze,ngHide:Ae,ngIf:Be,ngInclude:Ce,ngInit:De,ngNonBindable:Ee, 28ngPluralize:Fe,ngRepeat:Ge,ngShow:He,ngStyle:Ie,ngSwitch:Je,ngSwitchWhen:Ke,ngSwitchDefault:Le,ngOptions:Me,ngTransclude:Ne,ngModel:Oe,ngList:Pe,ngChange:Qe,pattern:Fc,ngPattern:Fc,required:Gc,ngRequired:Gc,minlength:Hc,ngMinlength:Hc,maxlength:Ic,ngMaxlength:Ic,ngValue:Re,ngModelOptions:Se}).directive({ngInclude:Te}).directive(ub).directive(Jc);a.provider({$anchorScroll:Ue,$animate:Ve,$animateCss:We,$$animateJs:Xe,$$animateQueue:Ye,$$AnimateRunner:Ze,$$animateAsyncRun:$e,$browser:af,$cacheFactory:bf, 29$controller:cf,$document:df,$exceptionHandler:ef,$filter:Kc,$$forceReflow:ff,$interpolate:gf,$interval:hf,$http:jf,$httpParamSerializer:kf,$httpParamSerializerJQLike:lf,$httpBackend:mf,$xhrFactory:nf,$location:of,$log:pf,$parse:qf,$rootScope:rf,$q:sf,$$q:tf,$sce:uf,$sceDelegate:vf,$sniffer:wf,$templateCache:xf,$templateRequest:yf,$$testability:zf,$timeout:Af,$window:Bf,$$rAF:Cf,$$jqLite:Df,$$HashMap:Ef,$$cookieReader:Ff})}])}function eb(a){return a.replace(Gf,function(a,d,c,e){return e?c.toUpperCase(): 30c}).replace(Hf,"Moz$1")}function Lc(a){a=a.nodeType;return 1===a||!a||9===a}function Mc(a,b){var d,c,e=b.createDocumentFragment(),f=[];if(Vb.test(a)){d=d||e.appendChild(b.createElement("div"));c=(If.exec(a)||["",""])[1].toLowerCase();c=ja[c]||ja._default;d.innerHTML=c[1]+a.replace(Jf,"<$1></$2>")+c[2];for(c=c[0];c--;)d=d.lastChild;f=bb(f,d.childNodes);d=e.firstChild;d.textContent=""}else f.push(b.createTextNode(a));e.textContent="";e.innerHTML="";n(f,function(a){e.appendChild(a)});return e}function P(a){if(a instanceof 31P)return a;var b;F(a)&&(a=T(a),b=!0);if(!(this instanceof P)){if(b&&"<"!=a.charAt(0))throw Wb("nosel");return new P(a)}if(b){b=W;var d;a=(d=Kf.exec(a))?[b.createElement(d[1])]:(d=Mc(a,b))?d.childNodes:[]}Nc(this,a)}function Xb(a){return a.cloneNode(!0)}function vb(a,b){b||wb(a);if(a.querySelectorAll)for(var d=a.querySelectorAll("*"),c=0,e=d.length;c<e;c++)wb(d[c])}function Oc(a,b,d,c){if(u(c))throw Wb("offargs");var e=(c=xb(a))&&c.events,f=c&&c.handle;if(f)if(b){var g=function(b){var c=e[b];u(d)&& 32ab(c||[],d);u(d)&&c&&0<c.length||(a.removeEventListener(b,f,!1),delete e[b])};n(b.split(" "),function(a){g(a);yb[a]&&g(yb[a])})}else for(b in e)"$destroy"!==b&&a.removeEventListener(b,f,!1),delete e[b]}function wb(a,b){var d=a.ng339,c=d&&fb[d];c&&(b?delete c.data[b]:(c.handle&&(c.events.$destroy&&c.handle({},"$destroy"),Oc(a)),delete fb[d],a.ng339=w))}function xb(a,b){var d=a.ng339,d=d&&fb[d];b&&!d&&(a.ng339=d=++Lf,d=fb[d]={events:{},data:{},handle:w});return d}function Yb(a,b,d){if(Lc(a)){var c= 33u(d),e=!c&&b&&!G(b),f=!b;a=(a=xb(a,!e))&&a.data;if(c)a[b]=d;else{if(f)return a;
vendor: 4,978 bytes, lines 33-42
33if(e)return a&&a[b];N(a,b)}}}function zb(a,b){return a.getAttribute?-1<(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" "):!1}function Ab(a,b){b&&a.setAttribute&&n(b.split(" "),function(b){a.setAttribute("class",T((" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+T(b)+" "," ")))})}function Bb(a,b){if(b&&a.setAttribute){var d=(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g, 34" ");n(b.split(" "),function(a){a=T(a);-1===d.indexOf(" "+a+" ")&&(d+=a+" ")});a.setAttribute("class",T(d))}}function Nc(a,b){if(b)if(b.nodeType)a[a.length++]=b;else{var d=b.length;if("number"===typeof d&&b.window!==b){if(d)for(var c=0;c<d;c++)a[a.length++]=b[c]}else a[a.length++]=b}}function Pc(a,b){return Cb(a,"$"+(b||"ngController")+"Controller")}function Cb(a,b,d){9==a.nodeType&&(a=a.documentElement);for(b=E(b)?b:[b];a;){for(var c=0,e=b.length;c<e;c++)if(u(d=A.data(a,b[c])))return d;a=a.parentNode|| 3511===a.nodeType&&a.host}}function Qc(a){for(vb(a,!0);a.firstChild;)a.removeChild(a.firstChild)}function Zb(a,b){b||vb(a);var d=a.parentNode;d&&d.removeChild(a)}function Mf(a,b){b=b||S;if("complete"===b.document.readyState)b.setTimeout(a);else A(b).on("load",a)}function Rc(a,b){var d=Db[b.toLowerCase()];return d&&Sc[oa(a)]&&d}function Nf(a,b){var d=function(c,d){c.isDefaultPrevented=function(){return c.defaultPrevented};var f=b[d||c.type],g=f?f.length:0;if(g){if(q(c.immediatePropagationStopped)){var h= 36c.stopImmediatePropagation;c.stopImmediatePropagation=function(){c.immediatePropagationStopped=!0;c.stopPropagation&&c.stopPropagation();h&&h.call(c)}}c.isImmediatePropagationStopped=function(){return!0===c.immediatePropagationStopped};var k=f.specialHandlerWrapper||Of;1<g&&(f=ha(f));for(var l=0;l<g;l++)c.isImmediatePropagationStopped()||k(a,c,f[l])}};d.elem=a;return d}function Of(a,b,d){d.call(a,b)}function Pf(a,b,d){var c=b.relatedTarget;c&&(c===a||Qf.call(a,c))||d.call(a,b)}function Df(){this.$get= 37function(){return N(P,{hasClass:function(a,b){a.attr&&(a=a[0]);return zb(a,b)},addClass:function(a,b){a.attr&&(a=a[0]);return Bb(a,b)},removeClass:function(a,b){a.attr&&(a=a[0]);return Ab(a,b)}})}}function Da(a,b){var d=a&&a.$$hashKey;if(d)return"function"===typeof d&&(d=a.$$hashKey()),d;d=typeof a;return d="function"==d||"object"==d&&null!==a?a.$$hashKey=d+":"+(b||Xd)():d+":"+a}function Sa(a,b){if(b){var d=0;this.nextUid=function(){return++d}}n(a,this.put,this)}function Rf(a){return(a=a.toString().replace(Tc, 38"").match(Uc))?"function("+(a[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function db(a,b){function d(a){return function(b,c){if(G(b))n(b,qc(a));else return a(b,c)}}function c(a,b){Ra(a,"service");if(B(b)||E(b))b=t.instantiate(b);if(!b.$get)throw Ea("pget",a);return r[a+"Provider"]=b}function e(a,b){return function(){var c=y.invoke(b,this);if(q(c))throw Ea("undef",a);return c}}function f(a,b,d){return c(a,{$get:!1!==d?e(a,b):b})}function g(a){rb(q(a)||E(a),"modulesToLoad","not an array");var b=[],c; 39n(a,function(a){function d(a){var b,c;b=0;for(c=a.length;b<c;b++){var e=a[b],f=t.get(e[0]);f[e[1]].apply(f,e[2])}}if(!m.get(a)){m.put(a,!0);try{F(a)?(c=Ub(a),b=b.concat(g(c.requires)).concat(c._runBlocks),d(c._invokeQueue),d(c._configBlocks)):B(a)?b.push(t.invoke(a)):E(a)?b.push(t.invoke(a)):Qa(a,"module")}catch(e){throw E(a)&&(a=a[a.length-1]),e.message&&e.stack&&-1==e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Ea("modulerr",a,e.stack||e.message||e);}}});return b}function h(a,c){function d(b, 40e){if(a.hasOwnProperty(b)){if(a[b]===k)throw Ea("cdep",b+" <- "+l.join(" <- "));return a[b]}try{return l.unshift(b),a[b]=k,a[b]=c(b,e)}catch(f){throw a[b]===k&&delete a[b],f;}finally{l.shift()}}function e(a,c,f,g){"string"===typeof f&&(g=f,f=null);var k=[],h=db.$$annotate(a,b,g),l,m,t;m=0;for(l=h.length;m<l;m++){t=h[m];if("string"!==typeof t)throw Ea("itkn",t);k.push(f&&f.hasOwnProperty(t)?f[t]:d(t,g))}E(a)&&(a=a[l]);return a.apply(c,k)}return{invoke:e,instantiate:function(a,b,c){var d=Object.create((E(a)? 41a[a.length-1]:a).prototype||null);a=e(a,d,b,c);return G(a)||B(a)?a:d},get:d,annotate:db.$$annotate,has:function(b){return r.hasOwnProperty(b+"Provider")||a.hasOwnProperty(b)}}}b=!0===b;var k={},l=[],m=new Sa([],!0),r={$provide:{provider:d(c),factory:d(f),service:d(function(a,b){return f(a,["$injector",function(a){return a.instantiate(b)}])}),value:d(function(a,b){return f(a,na(b),!1)}),constant:d(function(a,b){Ra(a,"constant");r[a]=b;C[a]=b}),decorator:function(a,b){var c=t.get(a+"Provider"),d=c.$get; 42c.$get=function(){var a=y.invoke(d,c);return y.invoke(b,null,{$delegate:a})}}}},t=r.$injector=h(r,function(a,b){$.isString(b)&&l.push(b);throw Ea("unpr",l.join(" <- "));}),C={},y=C.$injector=h(C,function(a,b){var c=t.get(a+"Provider",b);return y.invoke(c.$get,c,w,a)});n(g(a),function(a){a&&y.invoke(a)});return y}function Ue(){var a=!0;this.disableAutoScrolling=function(){a=!1};this.$get=["$window","$location","$rootScope",function(b,d,c){function e(a){var b=null;
vendor: 5,116 bytes, lines 42-52
42Array.prototype.some.call(a,function(a){if("a"=== 43oa(a))return b=a,!0});return b}function f(a){if(a){a.scrollIntoView();var c;c=g.yOffset;B(c)?c=c():Pb(c)?(c=c[0],c="fixed"!==b.getComputedStyle(c).position?0:c.getBoundingClientRect().bottom):Q(c)||(c=0);c&&(a=a.getBoundingClientRect().top,b.scrollBy(0,a-c))}else b.scrollTo(0,0)}function g(a){a=F(a)?a:d.hash();var b;a?(b=h.getElementById(a))?f(b):(b=e(h.getElementsByName(a)))?f(b):"top"===a&&f(null):f(null)}var h=b.document;a&&c.$watch(function(){return d.hash()},function(a,b){a===b&&""===a||Mf(function(){c.$evalAsync(g)})}); 44return g}]}function gb(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;E(a)&&(a=a.join(" "));E(b)&&(b=b.join(" "));return a+" "+b}function Sf(a){F(a)&&(a=a.split(" "));var b=ea();n(a,function(a){a.length&&(b[a]=!0)});return b}function Fa(a){return G(a)?a:{}}function Tf(a,b,d,c){function e(a){try{a.apply(null,sa.call(arguments,1))}finally{if(y--,0===y)for(;R.length;)try{R.pop()()}catch(b){d.error(b)}}}function f(){H=null;g();h()}function g(){a:{try{p=m.state;break a}catch(a){}p=void 0}p=q(p)? 45null:p;ka(p,D)&&(p=D);D=p}function h(){if(v!==k.url()||x!==p)v=k.url(),x=p,n(la,function(a){a(k.url(),p)})}var k=this,l=a.location,m=a.history,r=a.setTimeout,t=a.clearTimeout,C={};k.isMock=!1;var y=0,R=[];k.$$completeOutstandingRequest=e;k.$$incOutstandingRequestCount=function(){y++};k.notifyWhenNoOutstandingRequests=function(a){0===y?a():R.push(a)};var p,x,v=l.href,Y=b.find("base"),H=null;g();x=p;k.url=function(b,d,e){q(e)&&(e=null);l!==a.location&&(l=a.location);m!==a.history&&(m=a.history);if(b){var f= 46x===e;if(v===b&&(!c.history||f))return k;var h=v&&Ga(v)===Ga(b);v=b;x=e;if(!c.history||h&&f){if(!h||H)H=b;d?l.replace(b):h?(d=l,e=b.indexOf("#"),e=-1===e?"":b.substr(e),d.hash=e):l.href=b;l.href!==b&&(H=b)}else m[d?"replaceState":"pushState"](e,"",b),g(),x=p;return k}return H||l.href.replace(/%27/g,"'")};k.state=function(){return p};var la=[],I=!1,D=null;k.onUrlChange=function(b){if(!I){if(c.history)A(a).on("popstate",f);A(a).on("hashchange",f);I=!0}la.push(b);return b};k.$$applicationDestroyed=function(){A(a).off("hashchange popstate", 47f)};k.$$checkUrlChange=h;k.baseHref=function(){var a=Y.attr("href");return a?a.replace(/^(https?\:)?\/\/[^\/]*/,""):""};k.defer=function(a,b){var c;y++;c=r(function(){delete C[c];e(a)},b||0);C[c]=!0;return c};k.defer.cancel=function(a){return C[a]?(delete C[a],t(a),e(z),!0):!1}}function af(){this.$get=["$window","$log","$sniffer","$document",function(a,b,d,c){return new Tf(a,c,b,d)}]}function bf(){this.$get=function(){function a(a,c){function e(a){a!=r&&(t?t==a&&(t=a.n):t=a,f(a.n,a.p),f(a,r),r=a, 48r.n=null)}function f(a,b){a!=b&&(a&&(a.p=b),b&&(b.n=a))}if(a in b)throw M("$cacheFactory")("iid",a);var g=0,h=N({},c,{id:a}),k=ea(),l=c&&c.capacity||Number.MAX_VALUE,m=ea(),r=null,t=null;return b[a]={put:function(a,b){if(!q(b)){if(l<Number.MAX_VALUE){var c=m[a]||(m[a]={key:a});e(c)}a in k||g++;k[a]=b;g>l&&this.remove(t.key);return b}},get:function(a){if(l<Number.MAX_VALUE){var b=m[a];if(!b)return;e(b)}return k[a]},remove:function(a){if(l<Number.MAX_VALUE){var b=m[a];if(!b)return;b==r&&(r=b.p);b== 49t&&(t=b.n);f(b.n,b.p);delete m[a]}a in k&&(delete k[a],g--)},removeAll:function(){k=ea();g=0;m=ea();r=t=null},destroy:function(){m=h=k=null;delete b[a]},info:function(){return N({},h,{size:g})}}}var b={};a.info=function(){var a={};n(b,function(b,e){a[e]=b.info()});return a};a.get=function(a){return b[a]};return a}}function xf(){this.$get=["$cacheFactory",function(a){return a("templates")}]}function Dc(a,b){function d(a,b,c){var d=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,e={};n(a,function(a,f){var g=a.match(d); 50if(!g)throw ga("iscp",b,f,a,c?"controller bindings definition":"isolate scope definition");e[f]={mode:g[1][0],collection:"*"===g[2],optional:"?"===g[3],attrName:g[4]||f}});return e}function c(a){var b=a.charAt(0);if(!b||b!==K(b))throw ga("baddir",a);if(a!==a.trim())throw ga("baddir",a);}var e={},f=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,g=/(([\w\-]+)(?:\:([^;]+))?;?)/,h=$d("ngSrc,ngSrcset,src,srcset"),k=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,l=/^(on[a-z]+|formaction)$/;this.directive=function t(b,f){Ra(b,"directive"); 51F(b)?(c(b),rb(f,"directiveFactory"),e.hasOwnProperty(b)||(e[b]=[],a.factory(b+"Directive",["$injector","$exceptionHandler",function(a,c){var f=[];n(e[b],function(e,g){try{var h=a.invoke(e);B(h)?h={compile:na(h)}:!h.compile&&h.link&&(h.compile=na(h.link));h.priority=h.priority||0;h.index=g;h.name=h.name||b;h.require=h.require||h.controller&&h.name;h.restrict=h.restrict||"EA";var k=h,l=h,m=h.name,t={isolateScope:null,bindToController:null};G(l.scope)&&(!0===l.bindToController?(t.bindToController=d(l.scope, 52m,!0),t.isolateScope={}):t.isolateScope=d(l.scope,m,!1));G(l.bindToController)&&(t.bindToController=d(l.bindToController,m,!0));if(G(t.bindToController)){var y=l.controller,X=l.controllerAs;if(!y)throw ga("noctrl",m);var U;a:if(X&&F(X))U=X;else{if(F(y)){var n=Vc.exec(y);if(n){U=n[3];break a}}U=void 0}if(!U)throw ga("noident",m);}var s=k.$$bindings=t;G(s.isolateScope)&&(h.$$isolateBindings=s.isolateScope);h.$$moduleName=e.$$moduleName;
vendor: 1,393 bytes, lines 52-55
52f.push(h)}catch(w){c(w)}});return f}])),e[b].push(f)):n(b,qc(t)); 53return this};this.aHrefSanitizationWhitelist=function(a){return u(a)?(b.aHrefSanitizationWhitelist(a),this):b.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(a){return u(a)?(b.imgSrcSanitizationWhitelist(a),this):b.imgSrcSanitizationWhitelist()};var m=!0;this.debugInfoEnabled=function(a){return u(a)?(m=a,this):m};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(a,b,c, 54d,p,x,v,Y,H,la){function I(a,b){try{a.addClass(b)}catch(c){}}function D(a,b,c,d,e){a instanceof A||(a=A(a));n(a,function(b,c){b.nodeType==Na&&b.nodeValue.match(/\S+/)&&(a[c]=A(b).wrap("<span></span>").parent()[0])});var f=L(a,b,a,c,d,e);D.$$addScopeClass(a);var g=null;return function(b,c,d){rb(b,"scope");e&&e.needsNewScope&&(b=b.$parent.$new());d=d||{};var h=d.parentBoundTranscludeFn,k=d.transcludeControllers;d=d.futureParentElement;h&&h.$$boundTransclude&&(h=h.$$boundTransclude);g||(g=(d=d&&d[0])? 55"foreignobject"!==oa(d)&&d.toString().match(/SVG/)?"svg":"html":"html");d="html"!==g?A(Q(g,A("<div>").append(a).html())):c?Pa.clone.call(a):a;if(k)for(var l in k)d.data("$"+l+"Controller",k[l].instance);D.$$addScopeInfo(d,b);c&&c(d,b);f&&f(b,d,d,h);return d}}function L(a,b,c,d,e,f){function g(a,c,d,e){var f,k,l,m,t,v,I;
vendor: 8,940 bytes, lines 55-73
55if(p)for(I=Array(c.length),m=0;m<h.length;m+=3)f=h[m],I[f]=c[f];else I=c;m=0;for(t=h.length;m<t;)k=I[h[m++]],c=h[m++],f=h[m++],c?(c.scope?(l=a.$new(),D.$$addScopeInfo(A(k),l)):l=a, 56v=c.transcludeOnThisElement?O(a,c.transclude,e):!c.templateOnThisElement&&e?e:!e&&b?O(a,b):null,c(f,l,k,d,v)):f&&f(a,k.childNodes,w,e)}for(var h=[],k,l,m,t,p,v=0;v<a.length;v++){k=new aa;l=X(a[v],[],k,0===v?d:w,e);(f=l.length?s(l,a[v],k,b,c,null,[],[],f):null)&&f.scope&&D.$$addScopeClass(k.$$element);k=f&&f.terminal||!(m=a[v].childNodes)||!m.length?null:L(m,f?(f.transcludeOnThisElement||!f.templateOnThisElement)&&f.transclude:b);if(f||k)h.push(v,f,k),t=!0,p=p||f;f=null}return t?g:null}function O(a, 57b,c){return function(d,e,f,g,h){d||(d=a.$new(!1,h),d.$$transcluded=!0);return b(d,e,{parentBoundTranscludeFn:c,transcludeControllers:f,futureParentElement:g})}}function X(a,b,c,d,e){var h=c.$attr,k;switch(a.nodeType){case 1:u(b,va(oa(a)),"E",d,e);for(var l,m,t,p=a.attributes,v=0,I=p&&p.length;v<I;v++){var L=!1,C=!1;l=p[v];k=l.name;m=T(l.value);l=va(k);if(t=ia.test(l))k=k.replace(Yc,"").substr(8).replace(/_(.)/g,function(a,b){return b.toUpperCase()});(l=l.match(ja))&&fa(l[1])&&(L=k,C=k.substr(0,k.length- 585)+"end",k=k.substr(0,k.length-6));l=va(k.toLowerCase());h[l]=k;if(t||!c.hasOwnProperty(l))c[l]=m,Rc(a,l)&&(c[l]=!0);P(a,b,m,l,t);u(b,l,"A",d,e,L,C)}a=a.className;G(a)&&(a=a.animVal);if(F(a)&&""!==a)for(;k=g.exec(a);)l=va(k[2]),u(b,l,"C",d,e)&&(c[l]=T(k[3])),a=a.substr(k.index+k[0].length);break;case Na:if(11===Ha)for(;a.parentNode&&a.nextSibling&&a.nextSibling.nodeType===Na;)a.nodeValue+=a.nextSibling.nodeValue,a.parentNode.removeChild(a.nextSibling);J(b,a.nodeValue);break;case 8:try{if(k=f.exec(a.nodeValue))l= 59va(k[1]),u(b,l,"M",d,e)&&(c[l]=T(k[2]))}catch(X){}}b.sort(wa);return b}function U(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw ga("uterdir",b,c);1==a.nodeType&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--);d.push(a);a=a.nextSibling}while(0<e)}else d.push(a);return A(d)}function Ta(a,b,c){return function(d,e,f,g,h){e=U(e[0],b,c);return a(d,e,f,g,h)}}function s(a,b,d,e,f,g,h,l,m){function t(a,b,c,d){if(a){c&&(a=Ta(a,c,d));a.require=q.require;a.directiveName=z;if(O=== 60q||q.$$isolateScope)a=ba(a,{isolateScope:!0});h.push(a)}if(b){c&&(b=Ta(b,c,d));b.require=q.require;b.directiveName=z;if(O===q||q.$$isolateScope)b=ba(b,{isolateScope:!0});l.push(b)}}function p(a,b,c,d){var e;if(F(b)){var f=b.match(k);b=b.substring(f[0].length);var g=f[1]||f[3],f="?"===f[2];"^^"===g?c=c.parent():e=(e=d&&d[b])&&e.instance;e||(d="$"+b+"Controller",e=g?c.inheritedData(d):c.data(d));if(!e&&!f)throw ga("ctreq",b,a);}else if(E(b))for(e=[],g=0,f=b.length;g<f;g++)e[g]=p(a,b[g],c,d);return e|| 61null}function v(a,b,c,d,e,f){var g=ea(),h;for(h in d){var k=d[h],l={$scope:k===O||k.$$isolateScope?e:f,$element:a,$attrs:b,$transclude:c},m=k.controller;"@"==m&&(m=b[k.name]);l=x(m,l,!0,k.controllerAs);g[k.name]=l;hb||a.data("$"+k.name+"Controller",l.instance)}return g}function I(a,c,e,f,g){function k(a,b,c){var d;Za(a)||(c=b,b=a,a=w);hb&&(d=X);c||(c=hb?x.parent():x);return g(a,b,d,c,Ta)}var m,t,L,X,y,x,U;b===e?(f=d,x=d.$$element):(x=A(e),f=new aa(x,d));L=c;O?t=c.$new(!0):C&&(L=c.$parent);g&&(y=k, 62y.$$boundTransclude=g);R&&(X=v(x,f,y,R,t,c));O&&(D.$$addScopeInfo(x,t,!0,!(n&&(n===O||n===O.$$originalDirective))),D.$$addScopeClass(x,!0),t.$$isolateBindings=O.$$isolateBindings,(U=Z(c,f,t,t.$$isolateBindings,O))&&t.$on("$destroy",U));for(var Xc in X){U=R[Xc];var Y=X[Xc],H=U.$$bindings.bindToController;Y.identifier&&H&&(m=Z(L,f,Y.instance,H,U));var q=Y();q!==Y.instance&&(Y.instance=q,x.data("$"+U.name+"Controller",q),m&&m(),m=Z(L,f,Y.instance,H,U))}fa=0;for(K=h.length;fa<K;fa++)m=h[fa],ca(m,m.isolateScope? 63t:c,x,f,m.require&&p(m.directiveName,m.require,x,X),y);var Ta=c;O&&(O.template||null===O.templateUrl)&&(Ta=t);a&&a(Ta,e.childNodes,w,g);for(fa=l.length-1;0<=fa;fa--)m=l[fa],ca(m,m.isolateScope?t:c,x,f,m.require&&p(m.directiveName,m.require,x,X),y)}m=m||{};for(var L=-Number.MAX_VALUE,C=m.newScopeDirective,R=m.controllerDirectives,O=m.newIsolateScopeDirective,n=m.templateDirective,Y=m.nonTlbTranscludeDirective,H=!1,la=!1,hb=m.hasElementTranscludeDirective,u=d.$$element=A(b),q,z,J,ib=e,wa,fa=0,K=a.length;fa< 64K;fa++){q=a[fa];var N=q.$$start,P=q.$$end;N&&(u=U(b,N,P));J=w;if(L>q.priority)break;if(J=q.scope)q.templateUrl||(G(J)?(Ua("new/isolated scope",O||C,q,u),O=q):Ua("new/isolated scope",O,q,u)),C=C||q;z=q.name;!q.templateUrl&&q.controller&&(J=q.controller,R=R||ea(),Ua("'"+z+"' controller",R[z],q,u),R[z]=q);if(J=q.transclude)H=!0,q.$$tlb||(Ua("transclusion",Y,q,u),Y=q),"element"==J?(hb=!0,L=q.priority,J=u,u=d.$$element=A(W.createComment(" "+z+": "+d[z]+" ")),b=u[0],V(f,sa.call(J,0),b),ib=D(J,e,L,g&&g.name, 65{nonTlbTranscludeDirective:Y})):(J=A(Xb(b)).contents(),u.empty(),ib=D(J,e,w,w,{needsNewScope:q.$$isolateScope||q.$$newScope}));if(q.template)if(la=!0,Ua("template",n,q,u),n=q,J=B(q.template)?q.template(u,d):q.template,J=ha(J),q.replace){g=q;J=Vb.test(J)?Zc(Q(q.templateNamespace,T(J))):[];b=J[0];if(1!=J.length||1!==b.nodeType)throw ga("tplrt",z,"");V(f,u,b);J={$attr:{}};var Eb=X(b,[],J),$=a.splice(fa+1,a.length-(fa+1));(O||C)&&Wc(Eb,O,C);a=a.concat(Eb).concat($);M(d,J);K=a.length}else u.html(J);if(q.templateUrl)la= 66!0,Ua("template",n,q,u),n=q,q.replace&&(g=q),I=S(a.splice(fa,a.length-fa),u,d,f,H&&ib,h,l,{controllerDirectives:R,newScopeDirective:C!==q&&C,newIsolateScopeDirective:O,templateDirective:n,nonTlbTranscludeDirective:Y}),K=a.length;else if(q.compile)try{wa=q.compile(u,d,ib),B(wa)?t(null,wa,N,P):wa&&t(wa.pre,wa.post,N,P)}catch(da){c(da,ua(u))}q.terminal&&(I.terminal=!0,L=Math.max(L,q.priority))}I.scope=C&&!0===C.scope;I.transcludeOnThisElement=H;I.templateOnThisElement=la;I.transclude=ib;m.hasElementTranscludeDirective= 67hb;return I}function Wc(a,b,c){for(var d=0,e=a.length;d<e;d++)a[d]=Qb(a[d],{$$isolateScope:b,$$newScope:c})}function u(b,d,f,g,h,k,l){if(d===h)return null;h=null;if(e.hasOwnProperty(d)){var m;d=a.get(d+"Directive");for(var p=0,v=d.length;p<v;p++)try{m=d[p],(q(g)||g>m.priority)&&-1!=m.restrict.indexOf(f)&&(k&&(m=Qb(m,{$$start:k,$$end:l})),b.push(m),h=m)}catch(I){c(I)}}return h}function fa(b){if(e.hasOwnProperty(b))for(var c=a.get(b+"Directive"),d=0,f=c.length;d<f;d++)if(b=c[d],b.multiElement)return!0; 68return!1}function M(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;n(a,function(d,e){"$"!=e.charAt(0)&&(b[e]&&b[e]!==d&&(d+=("style"===e?";":" ")+b[e]),a.$set(e,d,!0,c[e]))});n(b,function(b,f){"class"==f?(I(e,b),a["class"]=(a["class"]?a["class"]+" ":"")+b):"style"==f?(e.attr("style",e.attr("style")+";"+b),a.style=(a.style?a.style+";":"")+b):"$"==f.charAt(0)||a.hasOwnProperty(f)||(a[f]=b,d[f]=c[f])})}function S(a,b,c,e,f,g,h,k){var l=[],m,t,p=b[0],v=a.shift(),C=Qb(v,{templateUrl:null,transclude:null,replace:null, 69$$originalDirective:v}),x=B(v.templateUrl)?v.templateUrl(b,c):v.templateUrl,y=v.templateNamespace;b.empty();d(x).then(function(d){var R,D;d=ha(d);if(v.replace){d=Vb.test(d)?Zc(Q(y,T(d))):[];R=d[0];if(1!=d.length||1!==R.nodeType)throw ga("tplrt",v.name,x);d={$attr:{}};V(e,b,R);var U=X(R,[],d);G(v.scope)&&Wc(U,!0);a=U.concat(a);M(c,d)}else R=p,b.html(d);a.unshift(C);m=s(a,R,c,f,b,v,g,h,k);n(e,function(a,c){a==R&&(e[c]=b[0])});for(t=L(b[0].childNodes,f);l.length;){d=l.shift();D=l.shift();var Y=l.shift(), 70H=l.shift(),U=b[0];if(!d.$$destroyed){if(D!==p){var q=D.className;k.hasElementTranscludeDirective&&v.replace||(U=Xb(R));V(Y,A(D),U);I(A(U),q)}D=m.transcludeOnThisElement?O(d,m.transclude,H):H;m(t,d,U,e,D)}}l=null});return function(a,b,c,d,e){a=e;b.$$destroyed||(l?l.push(b,c,d,a):(m.transcludeOnThisElement&&(a=O(b,m.transclude,e)),m(t,b,c,d,a)))}}function wa(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function Ua(a,b,c,d){function e(a){return a? 71" (module: "+a+")":""}if(b)throw ga("multidir",b.name,e(b.$$moduleName),c.name,e(c.$$moduleName),a,ua(d));}function J(a,c){var d=b(c,!0);d&&a.push({priority:0,compile:function(a){a=a.parent();var b=!!a.length;b&&D.$$addBindingClass(a);return function(a,c){var e=c.parent();b||D.$$addBindingClass(e);D.$$addBindingInfo(e,d.expressions);a.$watch(d,function(a){c[0].nodeValue=a})}}})}function Q(a,b){a=K(a||"html");switch(a){case "svg":case "math":var c=W.createElement("div");c.innerHTML="<"+a+">"+b+"</"+ 72a+">";return c.childNodes[0].childNodes;default:return b}}function Eb(a,b){if("srcdoc"==b)return Y.HTML;var c=oa(a);if("xlinkHref"==b||"form"==c&&"action"==b||"img"!=c&&("src"==b||"ngSrc"==b))return Y.RESOURCE_URL}function P(a,c,d,e,f){var g=Eb(a,e);f=h[e]||f;var k=b(d,!0,g,f);if(k){if("multiple"===e&&"select"===oa(a))throw ga("selmulti",ua(a));c.push({priority:100,compile:function(){return{pre:function(a,c,h){c=h.$$observers||(h.$$observers=ea());if(l.test(e))throw ga("nodomevents");var m=h[e];m!== 73d&&(k=m&&b(m,!0,g,f),d=m);k&&(h[e]=k(a),(c[e]||(c[e]=[])).$$inter=!0,(h.$$observers&&h.$$observers[e].$$
vendor: 4,657 bytes, lines 73-82
73scope||a).$watch(k,function(a,b){"class"===e&&a!=b?h.$updateClass(a,b):h.$set(e,a)}))}}}})}}function V(a,b,c){var d=b[0],e=b.length,f=d.parentNode,g,h;if(a)for(g=0,h=a.length;g<h;g++)if(a[g]==d){a[g++]=c;h=g+e-1;for(var k=a.length;g<k;g++,h++)h<k?a[g]=a[h]:delete a[g];a.length-=e-1;a.context===d&&(a.context=c);break}f&&f.replaceChild(c,d);a=W.createDocumentFragment();a.appendChild(d);A.hasData(d)&& 74(A.data(c,A.data(d)),pa?(Tb=!0,pa.cleanData([d])):delete A.cache[d[A.expando]]);d=1;for(e=b.length;d<e;d++)f=b[d],A(f).remove(),a.appendChild(f),delete b[d];b[0]=c;b.length=1}function ba(a,b){return N(function(){return a.apply(null,arguments)},a,b)}function ca(a,b,d,e,f,g){try{a(b,d,e,f,g)}catch(h){c(h,ua(d))}}function Z(a,c,d,e,f){var g=[];n(e,function(e,h){var k=e.attrName,l=e.optional,m,t,v,I;switch(e.mode){case "@":l||ra.call(c,k)||(d[h]=c[k]=void 0);c.$observe(k,function(a){F(a)&&(d[h]=a)}); 75c.$$observers[k].$$scope=a;F(c[k])&&(d[h]=b(c[k])(a));break;case "=":if(!ra.call(c,k)){if(l)break;c[k]=void 0}if(l&&!c[k])break;t=p(c[k]);I=t.literal?ka:function(a,b){return a===b||a!==a&&b!==b};v=t.assign||function(){m=d[h]=t(a);throw ga("nonassign",c[k],f.name);};m=d[h]=t(a);l=function(b){I(b,d[h])||(I(b,m)?v(a,b=d[h]):d[h]=b);return m=b};l.$stateful=!0;l=e.collection?a.$watchCollection(c[k],l):a.$watch(p(c[k],l),null,t.literal);g.push(l);break;case "&":t=c.hasOwnProperty(k)?p(c[k]):z;if(t===z&& 76l)break;d[h]=function(b){return t(a,b)}}});return g.length&&function(){for(var a=0,b=g.length;a<b;++a)g[a]()}}var aa=function(a,b){if(b){var c=Object.keys(b),d,e,f;d=0;for(e=c.length;d<e;d++)f=c[d],this[f]=b[f]}else this.$attr={};this.$$element=a};aa.prototype={$normalize:va,$addClass:function(a){a&&0<a.length&&H.addClass(this.$$element,a)},$removeClass:function(a){a&&0<a.length&&H.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=$c(a,b);c&&c.length&&H.addClass(this.$$element,c);(c= 77$c(b,a))&&c.length&&H.removeClass(this.$$element,c)},$set:function(a,b,d,e){var f=Rc(this.$$element[0],a),g=ad[a],h=a;f?(this.$$element.prop(a,b),e=f):g&&(this[g]=b,h=g);this[a]=b;e?this.$attr[a]=e:(e=this.$attr[a])||(this.$attr[a]=e=Ac(a,"-"));f=oa(this.$$element);if("a"===f&&"href"===a||"img"===f&&"src"===a)this[a]=b=la(b,"src"===a);else if("img"===f&&"srcset"===a){for(var f="",g=T(b),k=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,k=/\s/.test(g)?k:/(,)/,g=g.split(k),k=Math.floor(g.length/2),l=0;l<k;l++)var m= 782*l,f=f+la(T(g[m]),!0),f=f+(" "+T(g[m+1]));g=T(g[2*l]).split(/\s/);f+=la(T(g[0]),!0);2===g.length&&(f+=" "+T(g[1]));this[a]=b=f}!1!==d&&(null===b||q(b)?this.$$element.removeAttr(e):this.$$element.attr(e,b));(a=this.$$observers)&&n(a[h],function(a){try{a(b)}catch(d){c(d)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers=ea()),e=d[a]||(d[a]=[]);e.push(b);v.$evalAsync(function(){e.$$inter||!c.hasOwnProperty(a)||q(c[a])||b(c[a])});return function(){ab(e,b)}}};var $=b.startSymbol(), 79da=b.endSymbol(),ha="{{"==$||"}}"==da?Ya:function(a){return a.replace(/\{\{/g,$).replace(/}}/g,da)},ia=/^ngAttr[A-Z]/,ja=/^(.+)Start$/;D.$$addBindingInfo=m?function(a,b){var c=a.data("$binding")||[];E(b)?c=c.concat(b):c.push(b);a.data("$binding",c)}:z;D.$$addBindingClass=m?function(a){I(a,"ng-binding")}:z;D.$$addScopeInfo=m?function(a,b,c,d){a.data(c?d?"$isolateScopeNoTemplate":"$isolateScope":"$scope",b)}:z;D.$$addScopeClass=m?function(a,b){I(a,b?"ng-isolate-scope":"ng-scope")}:z;return D}]}function va(a){return eb(a.replace(Yc, 80""))}function $c(a,b){var d="",c=a.split(/\s+/),e=b.split(/\s+/),f=0;a:for(;f<c.length;f++){for(var g=c[f],h=0;h<e.length;h++)if(g==e[h])continue a;d+=(0<d.length?" ":"")+g}return d}function Zc(a){a=A(a);var b=a.length;if(1>=b)return a;for(;b--;)8===a[b].nodeType&&Uf.call(a,b,1);return a}function cf(){var a={},b=!1;this.register=function(b,c){Ra(b,"controller");G(b)?N(a,b):a[b]=c};this.allowGlobals=function(){b=!0};this.$get=["$injector","$window",function(d,c){function e(a,b,c,d){if(!a||!G(a.$scope))throw M("$controller")("noscp", 81d,b);a.$scope[b]=c}return function(f,g,h,k){var l,m,r;h=!0===h;k&&F(k)&&(r=k);if(F(f)){k=f.match(Vc);if(!k)throw Vf("ctrlfmt",f);m=k[1];r=r||k[3];f=a.hasOwnProperty(m)?a[m]:Cc(g.$scope,m,!0)||(b?Cc(c,m,!0):w);Qa(f,m,!0)}if(h)return h=(E(f)?f[f.length-1]:f).prototype,l=Object.create(h||null),r&&e(g,r,l,m||f.name),N(function(){var a=d.invoke(f,l,g,m);a!==l&&(G(a)||B(a))&&(l=a,r&&e(g,r,l,m||f.name));return l},{instance:l,identifier:r});l=d.instantiate(f,g,m);r&&e(g,r,l,m||f.name);return l}}]}function df(){this.$get= 82["$window",function(a){return A(a.document)}]}function ef(){this.$get=["$log",function(a){return function(b,d){a.error.apply(a,arguments)}}]}
vendor: 3,969 bytes, lines 82-89
82function $b(a){return G(a)?da(a)?a.toISOString():cb(a):a}function kf(){this.$get=function(){return function(a){if(!a)return"";var b=[];pc(a,function(a,c){null===a||q(a)||(E(a)?n(a,function(a,d){b.push(ia(c)+"="+ia($b(a)))}):b.push(ia(c)+"="+ia($b(a))))});return b.join("&")}}}function lf(){this.$get=function(){return function(a){function b(a,e,f){null===a||q(a)|| 83(E(a)?n(a,function(a,c){b(a,e+"["+(G(a)?c:"")+"]")}):G(a)&&!da(a)?pc(a,function(a,c){b(a,e+(f?"":"[")+c+(f?"":"]"))}):d.push(ia(e)+"="+ia($b(a))))}if(!a)return"";var d=[];b(a,"",!0);return d.join("&")}}}function ac(a,b){if(F(a)){var d=a.replace(Wf,"").trim();if(d){var c=b("Content-Type");(c=c&&0===c.indexOf(bd))||(c=(c=d.match(Xf))&&Yf[c[0]].test(d));c&&(a=vc(d))}}return a}function cd(a){var b=ea(),d;F(a)?n(a.split("\n"),function(a){d=a.indexOf(":");var e=K(T(a.substr(0,d)));a=T(a.substr(d+1));e&& 84(b[e]=b[e]?b[e]+", "+a:a)}):G(a)&&n(a,function(a,d){var f=K(d),g=T(a);f&&(b[f]=b[f]?b[f]+", "+g:g)});return b}function dd(a){var b;return function(d){b||(b=cd(a));return d?(d=b[K(d)],void 0===d&&(d=null),d):b}}function ed(a,b,d,c){if(B(c))return c(a,b,d);n(c,function(c){a=c(a,b,d)});return a}function jf(){var a=this.defaults={transformResponse:[ac],transformRequest:[function(a){return G(a)&&"[object File]"!==ta.call(a)&&"[object Blob]"!==ta.call(a)&&"[object FormData]"!==ta.call(a)?cb(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"}, 85post:ha(bc),put:ha(bc),patch:ha(bc)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},b=!1;this.useApplyAsync=function(a){return u(a)?(b=!!a,this):b};var d=!0;this.useLegacyPromiseExtensions=function(a){return u(a)?(d=!!a,this):d};var c=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(e,f,g,h,k,l){function m(b){function c(a){var b=N({},a);b.data=ed(a.data,a.headers,a.status,f.transformResponse); 86a=a.status;return 200<=a&&300>a?b:k.reject(b)}function e(a,b){var c,d={};n(a,function(a,e){B(a)?(c=a(b),null!=c&&(d[e]=c)):d[e]=a});return d}if(!$.isObject(b))throw M("$http")("badreq",b);if(!F(b.url))throw M("$http")("badreq",b.url);var f=N({method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse,paramSerializer:a.paramSerializer},b);f.headers=function(b){var c=a.headers,d=N({},b.headers),f,g,h,c=N({},c.common,c[K(b.method)]);a:for(f in c){g=K(f);for(h in d)if(K(h)=== 87g)continue a;d[f]=c[f]}return e(d,ha(b))}(b);f.method=tb(f.method);f.paramSerializer=F(f.paramSerializer)?l.get(f.paramSerializer):f.paramSerializer;var g=[function(b){var d=b.headers,e=ed(b.data,dd(d),w,b.transformRequest);q(e)&&n(d,function(a,b){"content-type"===K(b)&&delete d[b]});q(b.withCredentials)&&!q(a.withCredentials)&&(b.withCredentials=a.withCredentials);return r(b,e).then(c,c)},w],h=k.when(f);for(n(y,function(a){(a.request||a.requestError)&&g.unshift(a.request,a.requestError);(a.response|| 88a.responseError)&&g.push(a.response,a.responseError)});g.length;){b=g.shift();var m=g.shift(),h=h.then(b,m)}d?(h.success=function(a){Qa(a,"fn");h.then(function(b){a(b.data,b.status,b.headers,f)});return h},h.error=function(a){Qa(a,"fn");h.then(null,function(b){a(b.data,b.status,b.headers,f)});return h}):(h.success=fd("success"),h.error=fd("error"));return h}function r(c,d){function g(a,c,d,e){function f(){l(c,a,d,e)}D&&(200<=a&&300>a?D.put(X,[a,c,cd(d),e]):D.remove(X));b?h.$applyAsync(f):(f(),h.$$phase|| 89h.$apply())}function l(a,b,d,e){b=-1<=b?b:0;(200<=b&&300>b?n.resolve:n.reject)({data:a,status:b,headers:dd(d),config:c,statusText:e})}function r(a){l(a.data,a.status,ha(a.headers()),a.statusText)}function y(){var a=m.pendingRequests.indexOf(c);-1!==a&&m.pendingRequests.splice(a,1)}var n=k.defer(),I=n.promise,D,L,O=c.headers,X=t(c.url,c.paramSerializer(c.params));m.pendingRequests.push(c);I.then(y,y);!c.cache&&!a.cache||!1===c.cache||"GET"!==c.method&&"JSONP"!==c.method||(D=G(c.cache)?c.cache:G(a.c
vendor: 5,306 bytes, lines 89-100
89ache)? 90a.cache:C);D&&(L=D.get(X),u(L)?L&&B(L.then)?L.then(r,r):E(L)?l(L[1],L[0],ha(L[2]),L[3]):l(L,200,{},"OK"):D.put(X,I));q(L)&&((L=gd(c.url)?f()[c.xsrfCookieName||a.xsrfCookieName]:w)&&(O[c.xsrfHeaderName||a.xsrfHeaderName]=L),e(c.method,X,d,g,O,c.timeout,c.withCredentials,c.responseType));return I}function t(a,b){0<b.length&&(a+=(-1==a.indexOf("?")?"?":"&")+b);return a}var C=g("$http");a.paramSerializer=F(a.paramSerializer)?l.get(a.paramSerializer):a.paramSerializer;var y=[];n(c,function(a){y.unshift(F(a)? 91l.get(a):l.invoke(a))});m.pendingRequests=[];(function(a){n(arguments,function(a){m[a]=function(b,c){return m(N({},c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){n(arguments,function(a){m[a]=function(b,c,d){return m(N({},d||{},{method:a,url:b,data:c}))}})})("post","put","patch");m.defaults=a;return m}]}function nf(){this.$get=function(){return function(){return new S.XMLHttpRequest}}}function mf(){this.$get=["$browser","$window","$document","$xhrFactory",function(a,b,d, 92c){return Zf(a,c,a.defer,b.angular.callbacks,d[0])}]}function Zf(a,b,d,c,e){function f(a,b,d){var f=e.createElement("script"),m=null;f.type="text/javascript";f.src=a;f.async=!0;m=function(a){f.removeEventListener("load",m,!1);f.removeEventListener("error",m,!1);e.body.removeChild(f);f=null;var g=-1,C="unknown";a&&("load"!==a.type||c[b].called||(a={type:"error"}),C=a.type,g="error"===a.type?404:200);d&&d(g,C)};f.addEventListener("load",m,!1);f.addEventListener("error",m,!1);e.body.appendChild(f);return m} 93return function(e,h,k,l,m,r,t,C){function y(){x&&x();v&&v.abort()}function R(b,c,e,f,g){u(H)&&d.cancel(H);x=v=null;b(c,e,f,g);a.$$completeOutstandingRequest(z)}a.$$incOutstandingRequestCount();h=h||a.url();if("jsonp"==K(e)){var p="_"+(c.counter++).toString(36);c[p]=function(a){c[p].data=a;c[p].called=!0};var x=f(h.replace("JSON_CALLBACK","angular.callbacks."+p),p,function(a,b){R(l,a,c[p].data,"",b);c[p]=z})}else{var v=b(e,h);v.open(e,h,!0);n(m,function(a,b){u(a)&&v.setRequestHeader(b,a)});v.onload= 94function(){var a=v.statusText||"",b="response"in v?v.response:v.responseText,c=1223===v.status?204:v.status;0===c&&(c=b?200:"file"==xa(h).protocol?404:0);R(l,c,b,v.getAllResponseHeaders(),a)};e=function(){R(l,-1,null,null,"")};v.onerror=e;v.onabort=e;t&&(v.withCredentials=!0);if(C)try{v.responseType=C}catch(Y){if("json"!==C)throw Y;}v.send(q(k)?null:k)}if(0<r)var H=d(y,r);else r&&B(r.then)&&r.then(y)}}function gf(){var a="{{",b="}}";this.startSymbol=function(b){return b?(a=b,this):a};this.endSymbol= 95function(a){return a?(b=a,this):b};this.$get=["$parse","$exceptionHandler","$sce",function(d,c,e){function f(a){return"\\\\\\"+a}function g(c){return c.replace(m,a).replace(r,b)}function h(f,h,m,r){function p(a){try{var b=a;a=m?e.getTrusted(m,b):e.valueOf(b);var d;if(r&&!u(a))d=a;else if(null==a)d="";else{switch(typeof a){case "string":break;case "number":a=""+a;break;default:a=cb(a)}d=a}return d}catch(g){c(Ia.interr(f,g))}}r=!!r;for(var x,v,n=0,H=[],s=[],I=f.length,D=[],L=[];n<I;)if(-1!=(x=f.indexOf(a, 96n))&&-1!=(v=f.indexOf(b,x+k)))n!==x&&D.push(g(f.substring(n,x))),n=f.substring(x+k,v),H.push(n),s.push(d(n,p)),n=v+l,L.push(D.length),D.push("");else{n!==I&&D.push(g(f.substring(n)));break}m&&1<D.length&&Ia.throwNoconcat(f);if(!h||H.length){var O=function(a){for(var b=0,c=H.length;b<c;b++){if(r&&q(a[b]))return;D[L[b]]=a[b]}return D.join("")};return N(function(a){var b=0,d=H.length,e=Array(d);try{for(;b<d;b++)e[b]=s[b](a);return O(e)}catch(g){c(Ia.interr(f,g))}},{exp:f,expressions:H,$$watchDelegate:function(a, 97b){var c;return a.$watchGroup(s,function(d,e){var f=O(d);B(b)&&b.call(this,f,d!==e?c:f,a);c=f})}})}}var k=a.length,l=b.length,m=new RegExp(a.replace(/./g,f),"g"),r=new RegExp(b.replace(/./g,f),"g");h.startSymbol=function(){return a};h.endSymbol=function(){return b};return h}]}function hf(){this.$get=["$rootScope","$window","$q","$$q",function(a,b,d,c){function e(e,h,k,l){var m=4<arguments.length,r=m?sa.call(arguments,4):[],t=b.setInterval,C=b.clearInterval,y=0,n=u(l)&&!l,p=(n?c:d).defer(),x=p.promise; 98k=u(k)?k:0;x.then(null,null,m?function(){e.apply(null,r)}:e);x.$$intervalId=t(function(){p.notify(y++);0<k&&y>=k&&(p.resolve(y),C(x.$$intervalId),delete f[x.$$intervalId]);n||a.$apply()},h);f[x.$$intervalId]=p;return x}var f={};e.cancel=function(a){return a&&a.$$intervalId in f?(f[a.$$intervalId].reject("canceled"),b.clearInterval(a.$$intervalId),delete f[a.$$intervalId],!0):!1};return e}]}function cc(a){a=a.split("/");for(var b=a.length;b--;)a[b]=pb(a[b]);return a.join("/")}function hd(a,b){var d= 99xa(a);b.$$protocol=d.protocol;b.$$host=d.hostname;b.$$port=Z(d.port)||$f[d.protocol]||null}function id(a,b){var d="/"!==a.charAt(0);d&&(a="/"+a);var c=xa(a);b.$$path=decodeURIComponent(d&&"/"===c.pathname.charAt(0)?c.pathname.substring(1):c.pathname);b.$$search=yc(c.search);b.$$hash=decodeURIComponent(c.hash);b.$$path&&"/"!=b.$$path.charAt(0)&&(b.$$path="/"+b.$$path)}function qa(a,b){if(0===b.indexOf(a))return b.substr(a.length)}function Ga(a){var b=a.indexOf("#");return-1==b?a:a.substr(0,b)}function jb(a){return a.replace(/(#.+)|#$/, 100"$1")}function dc(a,b,d){this.$$html5=!0;d=d||"";hd(a,this);this.$$parse=function(a){var d=qa(b,a);if(!F(d))throw Fb("ipthprfx",a,b);id(d,this);this.$$path||(this.$$path="/");this.$$compose()};
vendor: 8,994 bytes, lines 100-117
100this.$$compose=function(){var a=Sb(this.$$search),d=this.$$hash?"#"+pb(this.$$hash):"";this.$$url=cc(this.$$path)+(a?"?"+a:"")+d;this.$$absUrl=b+this.$$url.substr(1)};this.$$parseLinkUrl=function(c,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,g;u(f=qa(a,c))?(g=f,g=u(f=qa(d,f))?b+(qa("/",f)||f): 101a+g):u(f=qa(b,c))?g=b+f:b==c+"/"&&(g=b);g&&this.$$parse(g);return!!g}}function ec(a,b,d){hd(a,this);this.$$parse=function(c){var e=qa(a,c)||qa(b,c),f;q(e)||"#"!==e.charAt(0)?this.$$html5?f=e:(f="",q(e)&&(a=c,this.replace())):(f=qa(d,e),q(f)&&(f=e));id(f,this);c=this.$$path;var e=a,g=/^\/[A-Z]:(\/.*)/;0===f.indexOf(e)&&(f=f.replace(e,""));g.exec(f)||(c=(f=g.exec(c))?f[1]:c);this.$$path=c;this.$$compose()};this.$$compose=function(){var b=Sb(this.$$search),e=this.$$hash?"#"+pb(this.$$hash):"";this.$$url= 102cc(this.$$path)+(b?"?"+b:"")+e;this.$$absUrl=a+(this.$$url?d+this.$$url:"")};this.$$parseLinkUrl=function(b,d){return Ga(a)==Ga(b)?(this.$$parse(b),!0):!1}}function jd(a,b,d){this.$$html5=!0;ec.apply(this,arguments);this.$$parseLinkUrl=function(c,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,g;a==Ga(c)?f=c:(g=qa(b,c))?f=a+d+g:b===c+"/"&&(f=b);f&&this.$$parse(f);return!!f};this.$$compose=function(){var b=Sb(this.$$search),e=this.$$hash?"#"+pb(this.$$hash):"";this.$$url=cc(this.$$path)+ 103(b?"?"+b:"")+e;this.$$absUrl=a+d+this.$$url}}function Gb(a){return function(){return this[a]}}function kd(a,b){return function(d){if(q(d))return this[a];this[a]=b(d);this.$$compose();return this}}function of(){var a="",b={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(b){return u(b)?(a=b,this):a};this.html5Mode=function(a){return $a(a)?(b.enabled=a,this):G(a)?($a(a.enabled)&&(b.enabled=a.enabled),$a(a.requireBase)&&(b.requireBase=a.requireBase),$a(a.rewriteLinks)&&(b.rewriteLinks= 104a.rewriteLinks),this):b};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(d,c,e,f,g){function h(a,b,d){var e=l.url(),f=l.$$state;try{c.url(a,b,d),l.$$state=c.state()}catch(g){throw l.url(e),l.$$state=f,g;}}function k(a,b){d.$broadcast("$locationChangeSuccess",l.absUrl(),a,l.$$state,b)}var l,m;m=c.baseHref();var r=c.url(),t;if(b.enabled){if(!m&&b.requireBase)throw Fb("nobase");t=r.substring(0,r.indexOf("/",r.indexOf("//")+2))+(m||"/");m=e.history?dc:jd}else t=Ga(r),m= 105ec;var C=t.substr(0,Ga(t).lastIndexOf("/")+1);l=new m(t,C,"#"+a);l.$$parseLinkUrl(r,r);l.$$state=c.state();var y=/^\s*(javascript|mailto):/i;f.on("click",function(a){if(b.rewriteLinks&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&2!=a.which&&2!=a.button){for(var e=A(a.target);"a"!==oa(e[0]);)if(e[0]===f[0]||!(e=e.parent())[0])return;var h=e.prop("href"),k=e.attr("href")||e.attr("xlink:href");G(h)&&"[object SVGAnimatedString]"===h.toString()&&(h=xa(h.animVal).href);y.test(h)||!h||e.attr("target")||a.isDefaultPrevented()|| 106!l.$$parseLinkUrl(h,k)||(a.preventDefault(),l.absUrl()!=c.url()&&(d.$apply(),g.angular["ff-684208-preventDefault"]=!0))}});jb(l.absUrl())!=jb(r)&&c.url(l.absUrl(),!0);var n=!0;c.onUrlChange(function(a,b){q(qa(C,a))?g.location.href=a:(d.$evalAsync(function(){var c=l.absUrl(),e=l.$$state,f;a=jb(a);l.$$parse(a);l.$$state=b;f=d.$broadcast("$locationChangeStart",a,c,b,e).defaultPrevented;l.absUrl()===a&&(f?(l.$$parse(c),l.$$state=e,h(c,!1,e)):(n=!1,k(c,e)))}),d.$$phase||d.$digest())});d.$watch(function(){var a= 107jb(c.url()),b=jb(l.absUrl()),f=c.state(),g=l.$$replace,m=a!==b||l.$$html5&&e.history&&f!==l.$$state;if(n||m)n=!1,d.$evalAsync(function(){var b=l.absUrl(),c=d.$broadcast("$locationChangeStart",b,a,l.$$state,f).defaultPrevented;l.absUrl()===b&&(c?(l.$$parse(a),l.$$state=f):(m&&h(b,g,f===l.$$state?null:l.$$state),k(a,f)))});l.$$replace=!1});return l}]}function pf(){var a=!0,b=this;this.debugEnabled=function(b){return u(b)?(a=b,this):a};this.$get=["$window",function(d){function c(a){a instanceof Error&& 108(a.stack?a=a.message&&-1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function e(a){var b=d.console||{},e=b[a]||b.log||z;a=!1;try{a=!!e.apply}catch(k){}return a?function(){var a=[];n(arguments,function(b){a.push(c(b))});return e.apply(b,a)}:function(a,b){e(a,null==b?"":b)}}return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){a&&c.apply(b,arguments)}}()}}]} 109function Va(a,b){if("__defineGetter__"===a||"__defineSetter__"===a||"__lookupGetter__"===a||"__lookupSetter__"===a||"__proto__"===a)throw aa("isecfld",b);return a}function ld(a,b){a+="";if(!F(a))throw aa("iseccst",b);return a}function ya(a,b){if(a){if(a.constructor===a)throw aa("isecfn",b);if(a.window===a)throw aa("isecwindow",b);if(a.children&&(a.nodeName||a.prop&&a.attr&&a.find))throw aa("isecdom",b);if(a===Object)throw aa("isecobj",b);}return a}function md(a,b){if(a){if(a.constructor===a)throw aa("isecfn", 110b);if(a===ag||a===bg||a===cg)throw aa("isecff",b);}}function nd(a,b){if(a&&(a===(0).constructor||a===(!1).constructor||a==="".constructor||a==={}.constructor||a===[].constructor||a===Function.constructor))throw aa("isecaf",b);}function dg(a,b){return"undefined"!==typeof a?a:b}function od(a,b){return"undefined"===typeof a?b:"undefined"===typeof b?a:a+b}function V(a,b){var d,c;switch(a.type){case s.Program:d=!0;n(a.body,function(a){V(a.expression,b);d=d&&a.expression.constant});a.constant=d;break;case s.Literal:a.constant= 111!0;a.toWatch=[];break;case s.UnaryExpression:V(a.argument,b);a.constant=a.argument.constant;a.toWatch=a.argument.toWatch;break;case s.BinaryExpression:V(a.left,b);V(a.right,b);a.constant=a.left.constant&&a.right.constant;a.toWatch=a.left.toWatch.concat(a.right.toWatch);break;case s.LogicalExpression:V(a.left,b);V(a.right,b);a.constant=a.left.constant&&a.right.constant;a.toWatch=a.constant?[]:[a];break;case s.ConditionalExpression:V(a.test,b);V(a.alternate,b);V(a.consequent,b);a.constant=a.test.constant&& 112a.alternate.constant&&a.consequent.constant;a.toWatch=a.constant?[]:[a];break;case s.Identifier:a.constant=!1;a.toWatch=[a];break;case s.MemberExpression:V(a.object,b);a.computed&&V(a.property,b);a.constant=a.object.constant&&(!a.computed||a.property.constant);a.toWatch=[a];break;case s.CallExpression:d=a.filter?!b(a.callee.name).$stateful:!1;c=[];n(a.arguments,function(a){V(a,b);d=d&&a.constant;a.constant||c.push.apply(c,a.toWatch)});a.constant=d;a.toWatch=a.filter&&!b(a.callee.name).$stateful?c: 113[a];break;case s.AssignmentExpression:V(a.left,b);V(a.right,b);a.constant=a.left.constant&&a.right.constant;a.toWatch=[a];break;case s.ArrayExpression:d=!0;c=[];n(a.elements,function(a){V(a,b);d=d&&a.constant;a.constant||c.push.apply(c,a.toWatch)});a.constant=d;a.toWatch=c;break;case s.ObjectExpression:d=!0;c=[];n(a.properties,function(a){V(a.value,b);d=d&&a.value.constant;a.value.constant||c.push.apply(c,a.value.toWatch)});a.constant=d;a.toWatch=c;break;case s.ThisExpression:a.constant=!1,a.toWatch= 114[]}}function pd(a){if(1==a.length){a=a[0].expression;var b=a.toWatch;return 1!==b.length?b:b[0]!==a?b:w}}function qd(a){return a.type===s.Identifier||a.type===s.MemberExpression}function rd(a){if(1===a.body.length&&qd(a.body[0].expression))return{type:s.AssignmentExpression,left:a.body[0].expression,right:{type:s.NGValueParameter},operator:"="}}function sd(a){return 0===a.body.length||1===a.body.length&&(a.body[0].expression.type===s.Literal||a.body[0].expression.type===s.ArrayExpression||a.body[0].expression.type=== 115s.ObjectExpression)}function td(a,b){this.astBuilder=a;this.$filter=b}function ud(a,b){this.astBuilder=a;this.$filter=b}function Hb(a){return"constructor"==a}function fc(a){return B(a.valueOf)?a.valueOf():eg.call(a)}function qf(){var a=ea(),b=ea();this.$get=["$filter",function(d){function c(a,b){return null==a||null==b?a===b:"object"===typeof a&&(a=fc(a),"object"===typeof a)?!1:a===b||a!==a&&b!==b}function e(a,b,d,e,f){var g=e.inputs,h;if(1===g.length){var k=c,g=g[0];return a.$watch(function(a){var b= 116g(a);c(b,k)||(h=e(a,w,w,[b]),k=b&&fc(b));return h},b,d,f)}for(var l=[],m=[],r=0,n=g.length;r<n;r++)l[r]=c,m[r]=null;return a.$watch(function(a){for(var b=!1,d=0,f=g.length;d<f;d++){var k=g[d](a);if(b||(b=!c(k,l[d])))m[d]=k,l[d]=k&&fc(k)}b&&(h=e(a,w,w,m));return h},b,d,f)}function f(a,b,c,d){var e,f;return e=a.$watch(function(a){return d(a)},function(a,c,d){f=a;B(b)&&b.apply(this,arguments);u(a)&&d.$$postDigest(function(){u(f)&&e()})},c)}function g(a,b,c,d){function e(a){var b=!0;n(a,function(a){u(a)|| 117(b=!1)});return b}var f,g;return f=a.$watch(function(a){return d(a)},function(a,c,d){g=a;B(b)&&b.call(this,a,c,d);e(a)&&d.$$postDigest(function(){e(g)&&f()})},c)}function h(a,b,c,d){var e;return e=a.$watch(function(a){return d(a)},function(a,c,d){B(b)&&b.apply(this,arguments);e()},c)}function k(a,b){if(!b)return a;var c=a.$$watchDelegate,d=!1,c=c!==g&&c!==f?function(c,e,f,g){f=d&&g?g[0]:a(c,e,f,g);return b(f,c,e)}:function(c,d,e,f){e=a(c,d,e,f);c=b(e,c,d);return u(e)?c:e};a.$$watchDelegate&&a.$$watchDelegate!==
vendor: 18,192 bytes, lines 118-153
118e?c.$$watchDelegate=a.$$watchDelegate:b.$stateful||(c.$$watchDelegate=e,d=!a.inputs,c.inputs=a.inputs?a.inputs:[a]);return c}var l=Ca().noUnsafeEval,m={csp:l,expensiveChecks:!1},r={csp:l,expensiveChecks:!0};return function(c,l,y){var n,p,x;switch(typeof c){case "string":x=c=c.trim();var v=y?b:a;n=v[x];n||(":"===c.charAt(0)&&":"===c.charAt(1)&&(p=!0,c=c.substring(2)),y=y?r:m,n=new gc(y),n=(new hc(n,d,y)).parse(c),n.constant?n.$$watchDelegate=h:p?n.$$watchDelegate=n.literal?g:f:n.inputs&&(n.$$watchDelegate= 119e),v[x]=n);return k(n,l);case "function":return k(c,l);default:return k(z,l)}}}]}function sf(){this.$get=["$rootScope","$exceptionHandler",function(a,b){return vd(function(b){a.$evalAsync(b)},b)}]}function tf(){this.$get=["$browser","$exceptionHandler",function(a,b){return vd(function(b){a.defer(b)},b)}]}function vd(a,b){function d(a,b,c){function d(b){return function(c){e||(e=!0,b.call(a,c))}}var e=!1;return[d(b),d(c)]}function c(){this.$$state={status:0}}function e(a,b){return function(c){b.call(a, 120c)}}function f(c){!c.processScheduled&&c.pending&&(c.processScheduled=!0,a(function(){var a,d,e;e=c.pending;c.processScheduled=!1;c.pending=w;for(var f=0,g=e.length;f<g;++f){d=e[f][0];a=e[f][c.status];try{B(a)?d.resolve(a(c.value)):1===c.status?d.resolve(c.value):d.reject(c.value)}catch(h){d.reject(h),b(h)}}}))}function g(){this.promise=new c;this.resolve=e(this,this.resolve);this.reject=e(this,this.reject);this.notify=e(this,this.notify)}var h=M("$q",TypeError);N(c.prototype,{then:function(a,b,c){if(q(a)&& 121q(b)&&q(c))return this;var d=new g;this.$$state.pending=this.$$state.pending||[];this.$$state.pending.push([d,a,b,c]);0<this.$$state.status&&f(this.$$state);return d.promise},"catch":function(a){return this.then(null,a)},"finally":function(a,b){return this.then(function(b){return l(b,!0,a)},function(b){return l(b,!1,a)},b)}});N(g.prototype,{resolve:function(a){this.promise.$$state.status||(a===this.promise?this.$$reject(h("qcycle",a)):this.$$resolve(a))},$$resolve:function(a){var c,e;e=d(this,this.$$resolve, 122this.$$reject);try{if(G(a)||B(a))c=a&&a.then;B(c)?(this.promise.$$state.status=-1,c.call(a,e[0],e[1],this.notify)):(this.promise.$$state.value=a,this.promise.$$state.status=1,f(this.promise.$$state))}catch(g){e[1](g),b(g)}},reject:function(a){this.promise.$$state.status||this.$$reject(a)},$$reject:function(a){this.promise.$$state.value=a;this.promise.$$state.status=2;f(this.promise.$$state)},notify:function(c){var d=this.promise.$$state.pending;0>=this.promise.$$state.status&&d&&d.length&&a(function(){for(var a, 123e,f=0,g=d.length;f<g;f++){e=d[f][0];a=d[f][3];try{e.notify(B(a)?a(c):c)}catch(h){b(h)}}})}});var k=function(a,b){var c=new g;b?c.resolve(a):c.reject(a);return c.promise},l=function(a,b,c){var d=null;try{B(c)&&(d=c())}catch(e){return k(e,!1)}return d&&B(d.then)?d.then(function(){return k(a,b)},function(a){return k(a,!1)}):k(a,b)},m=function(a,b,c,d){var e=new g;e.resolve(a);return e.promise.then(b,c,d)},r=function C(a){if(!B(a))throw h("norslvr",a);if(!(this instanceof C))return new C(a);var b=new g; 124a(function(a){b.resolve(a)},function(a){b.reject(a)});return b.promise};r.defer=function(){return new g};r.reject=function(a){var b=new g;b.reject(a);return b.promise};r.when=m;r.resolve=m;r.all=function(a){var b=new g,c=0,d=E(a)?[]:{};n(a,function(a,e){c++;m(a).then(function(a){d.hasOwnProperty(e)||(d[e]=a,--c||b.resolve(d))},function(a){d.hasOwnProperty(e)||b.reject(a)})});0===c&&b.resolve(d);return b.promise};return r}function Cf(){this.$get=["$window","$timeout",function(a,b){var d=a.requestAnimationFrame|| 125a.webkitRequestAnimationFrame,c=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.webkitCancelRequestAnimationFrame,e=!!d,f=e?function(a){var b=d(a);return function(){c(b)}}:function(a){var c=b(a,16.66,!1);return function(){b.cancel(c)}};f.supported=e;return f}]}function rf(){function a(a){function b(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=++ob;this.$$ChildScope=null}b.prototype=a; 126return b}var b=10,d=M("$rootScope"),c=null,e=null;this.digestTtl=function(a){arguments.length&&(b=a);return b};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(f,g,h,k){function l(a){a.currentScope.$$destroyed=!0}function m(a){9===Ha&&(a.$$childHead&&m(a.$$childHead),a.$$nextSibling&&m(a.$$nextSibling));a.$parent=a.$$nextSibling=a.$$prevSibling=a.$$childHead=a.$$childTail=a.$root=a.$$watchers=null}function r(){this.$id=++ob;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling= 127this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function t(a){if(v.$$phase)throw d("inprog",v.$$phase);v.$$phase=a}function C(a,b){do a.$$watchersCount+=b;while(a=a.$parent)}function y(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c];while(a=a.$parent)}function s(){}function p(){for(;w.length;)try{w.shift()()}catch(a){g(a)}e= 128null}function x(){null===e&&(e=k.defer(function(){v.$apply(p)}))}r.prototype={constructor:r,$new:function(b,c){var d;c=c||this;b?(d=new r,d.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=a(this)),d=new this.$$ChildScope);d.$parent=c;d.$$prevSibling=c.$$childTail;c.$$childHead?(c.$$childTail.$$nextSibling=d,c.$$childTail=d):c.$$childHead=c.$$childTail=d;(b||c!=this)&&d.$on("$destroy",l);return d},$watch:function(a,b,d,e){var f=h(a);if(f.$$watchDelegate)return f.$$watchDelegate(this,b,d,f, 129a);var g=this,k=g.$$watchers,l={fn:b,last:s,get:f,exp:e||a,eq:!!d};c=null;B(b)||(l.fn=z);k||(k=g.$$watchers=[]);k.unshift(l);C(this,1);return function(){0<=ab(k,l)&&C(g,-1);c=null}},$watchGroup:function(a,b){function c(){h=!1;k?(k=!1,b(e,e,g)):b(e,d,g)}var d=Array(a.length),e=Array(a.length),f=[],g=this,h=!1,k=!0;if(!a.length){var l=!0;g.$evalAsync(function(){l&&b(e,e,g)});return function(){l=!1}}if(1===a.length)return this.$watch(a[0],function(a,c,f){e[0]=a;d[0]=c;b(e,a===c?e:d,f)});n(a,function(a, 130b){var k=g.$watch(a,function(a,f){e[b]=a;d[b]=f;h||(h=!0,g.$evalAsync(c))});f.push(k)});return function(){for(;f.length;)f.shift()()}},$watchCollection:function(a,b){function c(a){e=a;var b,d,g,h;if(!q(e)){if(G(e))if(Aa(e))for(f!==r&&(f=r,p=f.length=0,l++),a=e.length,p!==a&&(l++,f.length=p=a),b=0;b<a;b++)h=f[b],g=e[b],d=h!==h&&g!==g,d||h===g||(l++,f[b]=g);else{f!==t&&(f=t={},p=0,l++);a=0;for(b in e)ra.call(e,b)&&(a++,g=e[b],h=f[b],b in f?(d=h!==h&&g!==g,d||h===g||(l++,f[b]=g)):(p++,f[b]=g,l++));if(p> 131a)for(b in l++,f)ra.call(e,b)||(p--,delete f[b])}else f!==e&&(f=e,l++);return l}}c.$stateful=!0;var d=this,e,f,g,k=1<b.length,l=0,m=h(a,c),r=[],t={},n=!0,p=0;return this.$watch(m,function(){n?(n=!1,b(e,e,d)):b(e,g,d);if(k)if(G(e))if(Aa(e)){g=Array(e.length);for(var a=0;a<e.length;a++)g[a]=e[a]}else for(a in g={},e)ra.call(e,a)&&(g[a]=e[a]);else g=e})},$digest:function(){var a,f,h,l,m,r,n=b,C,x=[],q,y;t("$digest");k.$$checkUrlChange();this===v&&null!==e&&(k.defer.cancel(e),p());c=null;do{r=!1;for(C= 132this;u.length;){try{y=u.shift(),y.scope.$eval(y.expression,y.locals)}catch(w){g(w)}c=null}a:do{if(l=C.$$watchers)for(m=l.length;m--;)try{if(a=l[m])if((f=a.get(C))!==(h=a.last)&&!(a.eq?ka(f,h):"number"===typeof f&&"number"===typeof h&&isNaN(f)&&isNaN(h)))r=!0,c=a,a.last=a.eq?Ma(f,null):f,a.fn(f,h===s?f:h,C),5>n&&(q=4-n,x[q]||(x[q]=[]),x[q].push({msg:B(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):a.exp,newVal:f,oldVal:h}));else if(a===c){r=!1;break a}}catch(la){g(la)}if(!(l=C.$$watchersCount&&C.$$childHead|| 133C!==this&&C.$$nextSibling))for(;C!==this&&!(l=C.$$nextSibling);)C=C.$parent}while(C=l);if((r||u.length)&&!n--)throw v.$$phase=null,d("infdig",b,x);}while(r||u.length);for(v.$$phase=null;H.length;)try{H.shift()()}catch(A){g(A)}},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===v&&k.$$applicationDestroyed();C(this,-this.$$watchersCount);for(var b in this.$$listenerCount)y(this,this.$$listenerCount[b],b);a&&a.$$childHead==this&&(a.$$childHead= 134this.$$nextSibling);a&&a.$$childTail==this&&(a.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=z;this.$on=this.$watch=this.$watchGroup=function(){return z};this.$$listeners={};this.$$nextSibling=null;m(this)}},$eval:function(a,b){return h(a)(this,b)},$evalAsync:function(a,b){v.$$phase||u.length|| 135k.defer(function(){u.length&&v.$digest()});u.push({scope:this,expression:a,locals:b})},$$postDigest:function(a){H.push(a)},$apply:function(a){try{t("$apply");try{return this.$eval(a)}finally{v.$$phase=null}}catch(b){g(b)}finally{try{v.$digest()}catch(c){throw g(c),c;}}},$applyAsync:function(a){function b(){c.$eval(a)}var c=this;a&&w.push(b);x()},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]);c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++; 136while(d=d.$parent);var e=this;return function(){var d=c.indexOf(b);-1!==d&&(c[d]=null,y(e,1,a))}},$emit:function(a,b){var c=[],d,e=this,f=!1,h={name:a,targetScope:e,stopPropagation:function(){f=!0},preventDefault:function(){h.defaultPrevented=!0},defaultPrevented:!1},k=bb([h],arguments,1),l,m;do{d=e.$$listeners[a]||c;h.currentScope=e;l=0;for(m=d.length;l<m;l++)if(d[l])try{d[l].apply(null,k)}catch(r){g(r)}else d.splice(l,1),l--,m--;if(f)return h.currentScope=null,h;e=e.$parent}while(e);h.currentScope= 137null;return h},$broadcast:function(a,b){var c=this,d=this,e={name:a,targetScope:this,preventDefault:function(){e.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[a])return e;for(var f=bb([e],arguments,1),h,k;c=d;){e.currentScope=c;d=c.$$listeners[a]||[];h=0;for(k=d.length;h<k;h++)if(d[h])try{d[h].apply(null,f)}catch(l){g(l)}else d.splice(h,1),h--,k--;if(!(d=c.$$listenerCount[a]&&c.$$childHead||c!==this&&c.$$nextSibling))for(;c!==this&&!(d=c.$$nextSibling);)c=c.$parent}e.currentScope= 138null;return e}};var v=new r,u=v.$$asyncQueue=[],H=v.$$postDigestQueue=[],w=v.$$applyAsyncQueue=[];return v}]}function ke(){var a=/^\s*(https?|ftp|mailto|tel|file):/,b=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(b){return u(b)?(a=b,this):a};this.imgSrcSanitizationWhitelist=function(a){return u(a)?(b=a,this):b};this.$get=function(){return function(d,c){var e=c?b:a,f;f=xa(d).href;return""===f||f.match(e)?d:"unsafe:"+f}}}function fg(a){if("self"===a)return a; 139if(F(a)){if(-1<a.indexOf("***"))throw za("iwcard",a);a=wd(a).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*");return new RegExp("^"+a+"$")}if(La(a))return new RegExp("^"+a.source+"$");throw za("imatcher");}function xd(a){var b=[];u(a)&&n(a,function(a){b.push(fg(a))});return b}function vf(){this.SCE_CONTEXTS=ma;var a=["self"],b=[];this.resourceUrlWhitelist=function(b){arguments.length&&(a=xd(b));return a};this.resourceUrlBlacklist=function(a){arguments.length&&(b=xd(a));return b};this.$get=["$injector", 140function(d){function c(a,b){return"self"===a?gd(b):!!a.exec(b.href)}function e(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};a&&(b.prototype=new a);b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()};b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};return b}var f=function(a){throw za("unsafe");};d.has("$sanitize")&&(f=d.get("$sanitize"));var g=e(),h={};h[ma.HTML]=e(g);h[ma.CSS]=e(g);h[ma.URL]=e(g);h[ma.JS]=e(g);h[ma.RESOURCE_URL]= 141e(h[ma.URL]);return{trustAs:function(a,b){var c=h.hasOwnProperty(a)?h[a]:null;if(!c)throw za("icontext",a,b);if(null===b||q(b)||""===b)return b;if("string"!==typeof b)throw za("itype",a);return new c(b)},getTrusted:function(d,e){if(null===e||q(e)||""===e)return e;var g=h.hasOwnProperty(d)?h[d]:null;if(g&&e instanceof g)return e.$$unwrapTrustedValue();if(d===ma.RESOURCE_URL){var g=xa(e.toString()),r,t,n=!1;r=0;for(t=a.length;r<t;r++)if(c(a[r],g)){n=!0;break}if(n)for(r=0,t=b.length;r<t;r++)if(c(b[r], 142g)){n=!1;break}if(n)return e;throw za("insecurl",e.toString());}if(d===ma.HTML)return f(e);throw za("unsafe");},valueOf:function(a){return a instanceof g?a.$$unwrapTrustedValue():a}}}]}function uf(){var a=!0;this.enabled=function(b){arguments.length&&(a=!!b);return a};this.$get=["$parse","$sceDelegate",function(b,d){if(a&&8>Ha)throw za("iequirks");var c=ha(ma);c.isEnabled=function(){return a};c.trustAs=d.trustAs;c.getTrusted=d.getTrusted;c.valueOf=d.valueOf;a||(c.trustAs=c.getTrusted=function(a,b){return b}, 143c.valueOf=Ya);c.parseAs=function(a,d){var e=b(d);return e.literal&&e.constant?e:b(d,function(b){return c.getTrusted(a,b)})};var e=c.parseAs,f=c.getTrusted,g=c.trustAs;n(ma,function(a,b){var d=K(b);c[eb("parse_as_"+d)]=function(b){return e(a,b)};c[eb("get_trusted_"+d)]=function(b){return f(a,b)};c[eb("trust_as_"+d)]=function(b){return g(a,b)}});return c}]}function wf(){this.$get=["$window","$document",function(a,b){var d={},c=Z((/android (\d+)/.exec(K((a.navigator||{}).userAgent))||[])[1]),e=/Boxee/i.test((a.navigator|| 144{}).userAgent),f=b[0]||{},g,h=/^(Moz|webkit|ms)(?=[A-Z])/,k=f.body&&f.body.style,l=!1,m=!1;if(k){for(var r in k)if(l=h.exec(r)){g=l[0];g=g.substr(0,1).toUpperCase()+g.substr(1);break}g||(g="WebkitOpacity"in k&&"webkit");l=!!("transition"in k||g+"Transition"in k);m=!!("animation"in k||g+"Animation"in k);!c||l&&m||(l=F(k.webkitTransition),m=F(k.webkitAnimation))}return{history:!(!a.history||!a.history.pushState||4>c||e),hasEvent:function(a){if("input"===a&&11>=Ha)return!1;if(q(d[a])){var b=f.createElement("div"); 145d[a]="on"+a in b}return d[a]},csp:Ca(),vendorPrefix:g,transitions:l,animations:m,android:c}}]}function yf(){this.$get=["$templateCache","$http","$q","$sce",function(a,b,d,c){function e(f,g){e.totalPendingRequests++;F(f)&&a.get(f)||(f=c.getTrustedResourceUrl(f));var h=b.defaults&&b.defaults.transformResponse;E(h)?h=h.filter(function(a){return a!==ac}):h===ac&&(h=null);return b.get(f,{cache:a,transformResponse:h})["finally"](function(){e.totalPendingRequests--}).then(function(b){a.put(f,b.data);return b.data}, 146function(a){if(!g)throw ga("tpload",f,a.status,a.statusText);return d.reject(a)})}e.totalPendingRequests=0;return e}]}function zf(){this.$get=["$rootScope","$browser","$location",function(a,b,d){return{findBindings:function(a,b,d){a=a.getElementsByClassName("ng-binding");var g=[];n(a,function(a){var c=$.element(a).data("$binding");c&&n(c,function(c){d?(new RegExp("(^|\\s)"+wd(b)+"(\\s|\\||$)")).test(c)&&g.push(a):-1!=c.indexOf(b)&&g.push(a)})});return g},findModels:function(a,b,d){for(var g=["ng-", 147"data-ng-","ng\\:"],h=0;h<g.length;++h){var k=a.querySelectorAll("["+g[h]+"model"+(d?"=":"*=")+'"'+b+'"]');if(k.length)return k}},getLocation:function(){return d.url()},setLocation:function(b){b!==d.url()&&(d.url(b),a.$digest())},whenStable:function(a){b.notifyWhenNoOutstandingRequests(a)}}}]}function Af(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(a,b,d,c,e){function f(f,k,l){B(f)||(l=k,k=f,f=z);var m=sa.call(arguments,3),r=u(l)&&!l,t=(r?c:d).defer(),n=t.promise,q; 148q=b.defer(function(){try{t.resolve(f.apply(null,m))}catch(b){t.reject(b),e(b)}finally{delete g[n.$$timeoutId]}r||a.$apply()},k);n.$$timeoutId=q;g[q]=t;return n}var g={};f.cancel=function(a){return a&&a.$$timeoutId in g?(g[a.$$timeoutId].reject("canceled"),delete g[a.$$timeoutId],b.defer.cancel(a.$$timeoutId)):!1};return f}]}function xa(a){Ha&&(ba.setAttribute("href",a),a=ba.href);ba.setAttribute("href",a);return{href:ba.href,protocol:ba.protocol?ba.protocol.replace(/:$/,""):"",host:ba.host,search:ba.search? 149ba.search.replace(/^\?/,""):"",hash:ba.hash?ba.hash.replace(/^#/,""):"",hostname:ba.hostname,port:ba.port,pathname:"/"===ba.pathname.charAt(0)?ba.pathname:"/"+ba.pathname}}function gd(a){a=F(a)?xa(a):a;return a.protocol===yd.protocol&&a.host===yd.host}function Bf(){this.$get=na(S)}function zd(a){function b(a){try{return decodeURIComponent(a)}catch(b){return a}}var d=a[0]||{},c={},e="";return function(){var a,g,h,k,l;a=d.cookie||"";if(a!==e)for(e=a,a=e.split("; "),c={},h=0;h<a.length;h++)g=a[h],k= 150g.indexOf("="),0<k&&(l=b(g.substring(0,k)),q(c[l])&&(c[l]=b(g.substring(k+1))));return c}}function Ff(){this.$get=zd}function Kc(a){function b(d,c){if(G(d)){var e={};n(d,function(a,c){e[c]=b(c,a)});return e}return a.factory(d+"Filter",c)}this.register=b;this.$get=["$injector",function(a){return function(b){return a.get(b+"Filter")}}];b("currency",Ad);b("date",Bd);b("filter",gg);b("json",hg);b("limitTo",ig);b("lowercase",jg);b("number",Cd);b("orderBy",Dd);b("uppercase",kg)}function gg(){return function(a, 151b,d){if(!Aa(a)){if(null==a)return a;throw M("filter")("notarray",a);}var c;switch(ic(b)){case "function":break;case "boolean":case "null":case "number":case "string":c=!0;case "object":b=lg(b,d,c);break;default:return a}return Array.prototype.filter.call(a,b)}}function lg(a,b,d){var c=G(a)&&"$"in a;!0===b?b=ka:B(b)||(b=function(a,b){if(q(a))return!1;if(null===a||null===b)return a===b;if(G(b)||G(a)&&!rc(a))return!1;a=K(""+a);b=K(""+b);return-1!==a.indexOf(b)});return function(e){return c&&!G(e)?Ja(e, 152a.$,b,!1):Ja(e,a,b,d)}}function Ja(a,b,d,c,e){var f=ic(a),g=ic(b);if("string"===g&&"!"===b.charAt(0))return!Ja(a,b.substring(1),d,c);if(E(a))return a.some(function(a){return Ja(a,b,d,c)});switch(f){case "object":var h;if(c){for(h in a)if("$"!==h.charAt(0)&&Ja(a[h],b,d,!0))return!0;return e?!1:Ja(a,b,d,!1)}if("object"===g){for(h in b)if(e=b[h],!B(e)&&!q(e)&&(f="$"===h,!Ja(f?a:a[h],e,d,f,f)))return!1;return!0}return d(a,b);case "function":return!1;default:return d(a,b)}}function ic(a){return null=== 153a?"null":typeof a}function Ad(a){var b=a.NUMBER_FORMATS;return function(a,c,e){q(c)&&(c=b.CURRENCY_SYM);q(e)&&(e=b.PATTERNS[1].maxFrac);return null==a?a:Ed(a,b.PATTERNS[1],b.GROUP_SEP,b.DECIMAL_SEP,e).replace(/\u00A4/g,c)}}function Cd(a){var b=a.NUMBER_FORMATS;return function(a,c){return null==a?a:Ed(a,b.PATTERNS[0],b.GROUP_SEP,b.DECIMAL_SEP,c)}}function mg(a){var b=0,d,c,e,f,g;
vendor: 8,814 bytes, lines 153-170
153-1<(c=a.indexOf(Fd))&&(a=a.replace(Fd,""));0<(e=a.search(/e/i))?(0>c&&(c=e),c+=+a.slice(e+1),a=a.substring(0,e)):0>c&&(c= 154a.length);for(e=0;a.charAt(e)==jc;e++);if(e==(g=a.length))d=[0],c=1;else{for(g--;a.charAt(g)==jc;)g--;c-=e;d=[];for(f=0;e<=g;e++,f++)d[f]=+a.charAt(e)}c>Gd&&(d=d.splice(0,Gd-1),b=c-1,c=1);return{d:d,e:b,i:c}}function ng(a,b,d,c){var e=a.d,f=e.length-a.i;b=q(b)?Math.min(Math.max(d,f),c):+b;d=b+a.i;c=e[d];if(0<d)e.splice(d);else{a.i=1;e.length=d=b+1;for(var g=0;g<d;g++)e[g]=0}for(5<=c&&e[d-1]++;f<b;f++)e.push(0);if(b=e.reduceRight(function(a,b,c,d){b+=a;d[c]=b%10;return Math.floor(b/10)},0))e.unshift(b), 155a.i++}function Ed(a,b,d,c,e){if(!F(a)&&!Q(a)||isNaN(a))return"";var f=!isFinite(a),g=!1,h=Math.abs(a)+"",k="";if(f)k="\u221e";else{g=mg(h);ng(g,e,b.minFrac,b.maxFrac);k=g.d;h=g.i;e=g.e;f=[];for(g=k.reduce(function(a,b){return a&&!b},!0);0>h;)k.unshift(0),h++;0<h?f=k.splice(h):(f=k,k=[0]);h=[];for(k.length>b.lgSize&&h.unshift(k.splice(-b.lgSize).join(""));k.length>b.gSize;)h.unshift(k.splice(-b.gSize).join(""));k.length&&h.unshift(k.join(""));k=h.join(d);f.length&&(k+=c+f.join(""));e&&(k+="e+"+e)}return 0> 156a&&!g?b.negPre+k+b.negSuf:b.posPre+k+b.posSuf}function Ib(a,b,d){var c="";0>a&&(c="-",a=-a);for(a=""+a;a.length<b;)a=jc+a;d&&(a=a.substr(a.length-b));return c+a}function ca(a,b,d,c){d=d||0;return function(e){e=e["get"+a]();if(0<d||e>-d)e+=d;0===e&&-12==d&&(e=12);return Ib(e,b,c)}}function Jb(a,b){return function(d,c){var e=d["get"+a](),f=tb(b?"SHORT"+a:a);return c[f][e]}}function Hd(a){var b=(new Date(a,0,1)).getDay();return new Date(a,0,(4>=b?5:12)-b)}function Id(a){return function(b){var d=Hd(b.getFullYear()); 157b=+new Date(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))-+d;b=1+Math.round(b/6048E5);return Ib(b,a)}}function kc(a,b){return 0>=a.getFullYear()?b.ERAS[0]:b.ERAS[1]}function Bd(a){function b(a){var b;if(b=a.match(d)){a=new Date(0);var f=0,g=0,h=b[8]?a.setUTCFullYear:a.setFullYear,k=b[8]?a.setUTCHours:a.setHours;b[9]&&(f=Z(b[9]+b[10]),g=Z(b[9]+b[11]));h.call(a,Z(b[1]),Z(b[2])-1,Z(b[3]));f=Z(b[4]||0)-f;g=Z(b[5]||0)-g;h=Z(b[6]||0);b=Math.round(1E3*parseFloat("0."+(b[7]||0)));k.call(a,f,g, 158h,b)}return a}var d=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,d,f){var g="",h=[],k,l;d=d||"mediumDate";d=a.DATETIME_FORMATS[d]||d;F(c)&&(c=og.test(c)?Z(c):b(c));Q(c)&&(c=new Date(c));if(!da(c)||!isFinite(c.getTime()))return c;for(;d;)(l=pg.exec(d))?(h=bb(h,l,1),d=h.pop()):(h.push(d),d=null);var m=c.getTimezoneOffset();f&&(m=wc(f,c.getTimezoneOffset()),c=Rb(c,f,!0));n(h,function(b){k=qg[b];g+=k?k(c,a.DATETIME_FORMATS,m): 159b.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return g}}function hg(){return function(a,b){q(b)&&(b=2);return cb(a,b)}}function ig(){return function(a,b,d){b=Infinity===Math.abs(Number(b))?Number(b):Z(b);if(isNaN(b))return a;Q(a)&&(a=a.toString());if(!E(a)&&!F(a))return a;d=!d||isNaN(d)?0:Z(d);d=0>d?Math.max(0,a.length+d):d;return 0<=b?a.slice(d,d+b):0===d?a.slice(b,a.length):a.slice(Math.max(0,d+b),d)}}function Dd(a){function b(b,d){d=d?-1:1;return b.map(function(b){var c=1,h=Ya;if(B(b))h=b;else if(F(b)){if("+"== 160b.charAt(0)||"-"==b.charAt(0))c="-"==b.charAt(0)?-1:1,b=b.substring(1);if(""!==b&&(h=a(b),h.constant))var k=h(),h=function(a){return a[k]}}return{get:h,descending:c*d}})}function d(a){switch(typeof a){case "number":case "boolean":case "string":return!0;default:return!1}}return function(a,e,f){if(!Aa(a))return a;E(e)||(e=[e]);0===e.length&&(e=["+"]);var g=b(e,f);g.push({get:function(){return{}},descending:f?-1:1});a=Array.prototype.map.call(a,function(a,b){return{value:a,predicateValues:g.map(function(c){var e= 161c.get(a);c=typeof e;if(null===e)c="string",e="null";else if("string"===c)e=e.toLowerCase();else if("object"===c)a:{if("function"===typeof e.valueOf&&(e=e.valueOf(),d(e)))break a;if(rc(e)&&(e=e.toString(),d(e)))break a;e=b}return{value:e,type:c}})}});a.sort(function(a,b){for(var c=0,d=0,e=g.length;d<e;++d){var c=a.predicateValues[d],f=b.predicateValues[d],n=0;c.type===f.type?c.value!==f.value&&(n=c.value<f.value?-1:1):n=c.type<f.type?-1:1;if(c=n*g[d].descending)break}return c});return a=a.map(function(a){return a.value})}} 162function Ka(a){B(a)&&(a={link:a});a.restrict=a.restrict||"AC";return na(a)}function Jd(a,b,d,c,e){var f=this,g=[];f.$error={};f.$$success={};f.$pending=w;f.$name=e(b.name||b.ngForm||"")(d);f.$dirty=!1;f.$pristine=!0;f.$valid=!0;f.$invalid=!1;f.$submitted=!1;f.$$parentForm=Kb;f.$rollbackViewValue=function(){n(g,function(a){a.$rollbackViewValue()})};f.$commitViewValue=function(){n(g,function(a){a.$commitViewValue()})};f.$addControl=function(a){Ra(a.$name,"input");g.push(a);a.$name&&(f[a.$name]=a);a.$$parentForm= 163f};f.$$renameControl=function(a,b){var c=a.$name;f[c]===a&&delete f[c];f[b]=a;a.$name=b};f.$removeControl=function(a){a.$name&&f[a.$name]===a&&delete f[a.$name];n(f.$pending,function(b,c){f.$setValidity(c,null,a)});n(f.$error,function(b,c){f.$setValidity(c,null,a)});n(f.$$success,function(b,c){f.$setValidity(c,null,a)});ab(g,a);a.$$parentForm=Kb};Kd({ctrl:this,$element:a,set:function(a,b,c){var d=a[b];d?-1===d.indexOf(c)&&d.push(c):a[b]=[c]},unset:function(a,b,c){var d=a[b];d&&(ab(d,c),0===d.length&& 164delete a[b])},$animate:c});f.$setDirty=function(){c.removeClass(a,Wa);c.addClass(a,Lb);f.$dirty=!0;f.$pristine=!1;f.$$parentForm.$setDirty()};f.$setPristine=function(){c.setClass(a,Wa,Lb+" ng-submitted");f.$dirty=!1;f.$pristine=!0;f.$submitted=!1;n(g,function(a){a.$setPristine()})};f.$setUntouched=function(){n(g,function(a){a.$setUntouched()})};f.$setSubmitted=function(){c.addClass(a,"ng-submitted");f.$submitted=!0;f.$$parentForm.$setSubmitted()}}function lc(a){a.$formatters.push(function(b){return a.$isEmpty(b)? 165b:b.toString()})}function kb(a,b,d,c,e,f){var g=K(b[0].type);if(!e.android){var h=!1;b.on("compositionstart",function(a){h=!0});b.on("compositionend",function(){h=!1;k()})}var k=function(a){l&&(f.defer.cancel(l),l=null);if(!h){var e=b.val();a=a&&a.type;"password"===g||d.ngTrim&&"false"===d.ngTrim||(e=T(e));(c.$viewValue!==e||""===e&&c.$$hasNativeValidators)&&c.$setViewValue(e,a)}};if(e.hasEvent("input"))b.on("input",k);else{var l,m=function(a,b,c){l||(l=f.defer(function(){l=null;b&&b.value===c||k(a)}))}; 166b.on("keydown",function(a){var b=a.keyCode;91===b||15<b&&19>b||37<=b&&40>=b||m(a,this,this.value)});if(e.hasEvent("paste"))b.on("paste cut",m)}b.on("change",k);c.$render=function(){var a=c.$isEmpty(c.$viewValue)?"":c.$viewValue;b.val()!==a&&b.val(a)}}function Mb(a,b){return function(d,c){var e,f;if(da(d))return d;if(F(d)){'"'==d.charAt(0)&&'"'==d.charAt(d.length-1)&&(d=d.substring(1,d.length-1));if(rg.test(d))return new Date(d);a.lastIndex=0;if(e=a.exec(d))return e.shift(),f=c?{yyyy:c.getFullYear(), 167MM:c.getMonth()+1,dd:c.getDate(),HH:c.getHours(),mm:c.getMinutes(),ss:c.getSeconds(),sss:c.getMilliseconds()/1E3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},n(e,function(a,c){c<b.length&&(f[b[c]]=+a)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,1E3*f.sss||0)}return NaN}}function lb(a,b,d,c){return function(e,f,g,h,k,l,m){function r(a){return a&&!(a.getTime&&a.getTime()!==a.getTime())}function n(a){return u(a)&&!da(a)?d(a)||w:a}Ld(e,f,g,h);kb(e,f,g,h,k,l);var C=h&&h.$options&&h.$options.timezone, 168y;h.$$parserName=a;h.$parsers.push(function(a){return h.$isEmpty(a)?null:b.test(a)?(a=d(a,y),C&&(a=Rb(a,C)),a):w});h.$formatters.push(function(a){if(a&&!da(a))throw mb("datefmt",a);if(r(a))return(y=a)&&C&&(y=Rb(y,C,!0)),m("date")(a,c,C);y=null;return""});if(u(g.min)||g.ngMin){var s;h.$validators.min=function(a){return!r(a)||q(s)||d(a)>=s};g.$observe("min",function(a){s=n(a);h.$validate()})}if(u(g.max)||g.ngMax){var p;h.$validators.max=function(a){return!r(a)||q(p)||d(a)<=p};g.$observe("max",function(a){p= 169n(a);h.$validate()})}}}function Ld(a,b,d,c){(c.$$hasNativeValidators=G(b[0].validity))&&c.$parsers.push(function(a){var c=b.prop("validity")||{};return c.badInput&&!c.typeMismatch?w:a})}function Md(a,b,d,c,e){if(u(c)){a=a(c);if(!a.constant)throw mb("constexpr",d,c);return a(b)}return e}function mc(a,b){a="ngClass"+a;return["$animate",function(d){function c(a,b){var c=[],d=0;a:for(;d<a.length;d++){for(var e=a[d],m=0;m<b.length;m++)if(e==b[m])continue a;c.push(e)}return c}function e(a){var b=[];return E(a)? 170(n(a,function(a){b=b.concat(e(a))}),b):F(a)?a.split(" "):G(a)?(n(a,function(a,c){a&&(b=b.concat(c.split(" ")))}),b):a}return{restrict:"AC",link:function(f,g,h){function k(a,b){var c=g.data("$classCounts")||ea(),d=[];n(a,function(a){if(0<b||c[a])c[a]=(c[a]||0)+b,c[a]===+(0<b)&&d.push(a)});g.data("$classCounts",c);return d.join(" ")}function l(a){if(!0===b||f.$index%2===b){var l=e(a||[]);if(!m){var n=k(l,1);h.$addClass(n)}else if(!ka(a,m)){var q=e(m),n=c(l,q),l=c(q,l),n=k(n,1),l=k(l,-1);n&&n.length&&
vendor: 2,559 bytes, lines 171-175
171d.addClass(g,n);l&&l.length&&d.removeClass(g,l)}}m=ha(a)}var m;f.$watch(h[a],l,!0);h.$observe("class",function(b){l(f.$eval(h[a]))});"ngClass"!==a&&f.$watch("$index",function(c,d){var g=c&1;if(g!==(d&1)){var l=e(f.$eval(h[a]));g===b?(g=k(l,1),h.$addClass(g)):(g=k(l,-1),h.$removeClass(g))}})}}}]}function Kd(a){function b(a,b){b&&!f[a]?(k.addClass(e,a),f[a]=!0):!b&&f[a]&&(k.removeClass(e,a),f[a]=!1)}function d(a,c){a=a?"-"+Ac(a,"-"):"";b(nb+a,!0===c);b(Nd+a,!1===c)}var c=a.ctrl,e=a.$element,f={},g= 172a.set,h=a.unset,k=a.$animate;f[Nd]=!(f[nb]=e.hasClass(nb));c.$setValidity=function(a,e,f){q(e)?(c.$pending||(c.$pending={}),g(c.$pending,a,f)):(c.$pending&&h(c.$pending,a,f),Od(c.$pending)&&(c.$pending=w));$a(e)?e?(h(c.$error,a,f),g(c.$$success,a,f)):(g(c.$error,a,f),h(c.$$success,a,f)):(h(c.$error,a,f),h(c.$$success,a,f));c.$pending?(b(Pd,!0),c.$valid=c.$invalid=w,d("",null)):(b(Pd,!1),c.$valid=Od(c.$error),c.$invalid=!c.$valid,d("",c.$valid));e=c.$pending&&c.$pending[a]?w:c.$error[a]?!1:c.$$success[a]? 173!0:null;d(a,e);c.$$parentForm.$setValidity(a,e,c)}}function Od(a){if(a)for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}var sg=/^\/(.+)\/([a-z]*)$/,K=function(a){return F(a)?a.toLowerCase():a},ra=Object.prototype.hasOwnProperty,tb=function(a){return F(a)?a.toUpperCase():a},Ha,A,pa,sa=[].slice,Uf=[].splice,tg=[].push,ta=Object.prototype.toString,sc=Object.getPrototypeOf,Ba=M("ng"),$=S.angular||(S.angular={}),Ub,ob=0;Ha=W.documentMode;z.$inject=[];Ya.$inject=[];var E=Array.isArray,Zd=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/, 174T=function(a){return F(a)?a.trim():a},wd=function(a){return a.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Ca=function(){if(!u(Ca.rules)){var a=W.querySelector("[ng-csp]")||W.querySelector("[data-ng-csp]");if(a){var b=a.getAttribute("ng-csp")||a.getAttribute("data-ng-csp");Ca.rules={noUnsafeEval:!b||-1!==b.indexOf("no-unsafe-eval"),noInlineStyle:!b||-1!==b.indexOf("no-inline-style")}}else{a=Ca;try{new Function(""),b=!1}catch(d){b=!0}a.rules={noUnsafeEval:b,noInlineStyle:!1}}}return Ca.rules}, 175qb=function(){if(u(qb.name_))return qb.name_;var a,b,d=Oa.length,c,e;for(b=0;b<d;++b)if(c=Oa[b],a=W.querySelector("["+c.replace(":","\\:")+"jq]")){e=a.getAttribute(c+"jq");break}return qb.name_=e},Oa=["ng-","data-ng-","ng:","x-ng-"],fe=/[A-Z]/g,Bc=!1,Tb,Na=3,je={full:"1.4.9",major:1,minor:4,dot:9,codeName:"implicit-superannuation"};P.expando="ng339";var fb=P.cache={},Lf=1;P._data=function(a){return this.cache[a[this.expando]]||{}};
vendor: 13,482 bytes, lines 175-201
175var Gf=/([\:\-\_]+(.))/g,Hf=/^moz([A-Z])/,yb={mouseleave:"mouseout", 176mouseenter:"mouseover"},Wb=M("jqLite"),Kf=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Vb=/<|&#?\w+;/,If=/<([\w:-]+)/,Jf=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ja={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ja.optgroup=ja.option;ja.tbody=ja.tfoot=ja.colgroup=ja.caption=ja.thead; 177ja.th=ja.td;var Qf=Node.prototype.contains||function(a){return!!(this.compareDocumentPosition(a)&16)},Pa=P.prototype={ready:function(a){function b(){d||(d=!0,a())}var d=!1;"complete"===W.readyState?setTimeout(b):(this.on("DOMContentLoaded",b),P(S).on("load",b))},toString:function(){var a=[];n(this,function(b){a.push(""+b)});return"["+a.join(", ")+"]"},eq:function(a){return 0<=a?A(this[a]):A(this[this.length+a])},length:0,push:tg,sort:[].sort,splice:[].splice},Db={};n("multiple selected checked disabled readOnly required open".split(" "), 178function(a){Db[K(a)]=a});var Sc={};n("input select option textarea button form details".split(" "),function(a){Sc[a]=!0});var ad={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};n({data:Yb,removeData:wb,hasData:function(a){for(var b in fb[a.ng339])return!0;return!1}},function(a,b){P[b]=a});n({data:Yb,inheritedData:Cb,scope:function(a){return A.data(a,"$scope")||Cb(a.parentNode||a,["$isolateScope","$scope"])},isolateScope:function(a){return A.data(a,"$isolateScope")|| 179A.data(a,"$isolateScopeNoTemplate")},controller:Pc,injector:function(a){return Cb(a,"$injector")},removeAttr:function(a,b){a.removeAttribute(b)},hasClass:zb,css:function(a,b,d){b=eb(b);if(u(d))a.style[b]=d;else return a.style[b]},attr:function(a,b,d){var c=a.nodeType;if(c!==Na&&2!==c&&8!==c)if(c=K(b),Db[c])if(u(d))d?(a[b]=!0,a.setAttribute(b,c)):(a[b]=!1,a.removeAttribute(c));else return a[b]||(a.attributes.getNamedItem(b)||z).specified?c:w;else if(u(d))a.setAttribute(b,d);else if(a.getAttribute)return a= 180a.getAttribute(b,2),null===a?w:a},prop:function(a,b,d){if(u(d))a[b]=d;else return a[b]},text:function(){function a(a,d){if(q(d)){var c=a.nodeType;return 1===c||c===Na?a.textContent:""}a.textContent=d}a.$dv="";return a}(),val:function(a,b){if(q(b)){if(a.multiple&&"select"===oa(a)){var d=[];n(a.options,function(a){a.selected&&d.push(a.value||a.text)});return 0===d.length?null:d}return a.value}a.value=b},html:function(a,b){if(q(b))return a.innerHTML;vb(a,!0);a.innerHTML=b},empty:Qc},function(a,b){P.prototype[b]= 181function(b,c){var e,f,g=this.length;if(a!==Qc&&q(2==a.length&&a!==zb&&a!==Pc?b:c)){if(G(b)){for(e=0;e<g;e++)if(a===Yb)a(this[e],b);else for(f in b)a(this[e],f,b[f]);return this}e=a.$dv;g=q(e)?Math.min(g,1):g;for(f=0;f<g;f++){var h=a(this[f],b,c);e=e?e+h:h}return e}for(e=0;e<g;e++)a(this[e],b,c);return this}});n({removeData:wb,on:function(a,b,d,c){if(u(c))throw Wb("onargs");if(Lc(a)){c=xb(a,!0);var e=c.events,f=c.handle;f||(f=c.handle=Nf(a,e));c=0<=b.indexOf(" ")?b.split(" "):[b];for(var g=c.length, 182h=function(b,c,g){var h=e[b];h||(h=e[b]=[],h.specialHandlerWrapper=c,"$destroy"===b||g||a.addEventListener(b,f,!1));h.push(d)};g--;)b=c[g],yb[b]?(h(yb[b],Pf),h(b,w,!0)):h(b)}},off:Oc,one:function(a,b,d){a=A(a);a.on(b,function e(){a.off(b,d);a.off(b,e)});a.on(b,d)},replaceWith:function(a,b){var d,c=a.parentNode;vb(a);n(new P(b),function(b){d?c.insertBefore(b,d.nextSibling):c.replaceChild(b,a);d=b})},children:function(a){var b=[];n(a.childNodes,function(a){1===a.nodeType&&b.push(a)});return b},contents:function(a){return a.contentDocument|| 183a.childNodes||[]},append:function(a,b){var d=a.nodeType;if(1===d||11===d){b=new P(b);for(var d=0,c=b.length;d<c;d++)a.appendChild(b[d])}},prepend:function(a,b){if(1===a.nodeType){var d=a.firstChild;n(new P(b),function(b){a.insertBefore(b,d)})}},wrap:function(a,b){b=A(b).eq(0).clone()[0];var d=a.parentNode;d&&d.replaceChild(b,a);b.appendChild(a)},remove:Zb,detach:function(a){Zb(a,!0)},after:function(a,b){var d=a,c=a.parentNode;b=new P(b);for(var e=0,f=b.length;e<f;e++){var g=b[e];c.insertBefore(g, 184d.nextSibling);d=g}},addClass:Bb,removeClass:Ab,toggleClass:function(a,b,d){b&&n(b.split(" "),function(b){var e=d;q(e)&&(e=!zb(a,b));(e?Bb:Ab)(a,b)})},parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},next:function(a){return a.nextElementSibling},find:function(a,b){return a.getElementsByTagName?a.getElementsByTagName(b):[]},clone:Xb,triggerHandler:function(a,b,d){var c,e,f=b.type||b,g=xb(a);if(g=(g=g&&g.events)&&g[f])c={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0=== 185this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:z,type:f,target:a},b.type&&(c=N(c,b)),b=ha(g),e=d?[c].concat(d):[c],n(b,function(b){c.isImmediatePropagationStopped()||b.apply(a,e)})}},function(a,b){P.prototype[b]=function(b,c,e){for(var f,g=0,h=this.length;g<h;g++)q(f)?(f=a(this[g],b,c,e),u(f)&&(f=A(f))):Nc(f,a(this[g],b,c,e));return u(f)?f:this};P.prototype.bind= 186P.prototype.on;P.prototype.unbind=P.prototype.off});Sa.prototype={put:function(a,b){this[Da(a,this.nextUid)]=b},get:function(a){return this[Da(a,this.nextUid)]},remove:function(a){var b=this[a=Da(a,this.nextUid)];delete this[a];return b}};var Ef=[function(){this.$get=[function(){return Sa}]}],Uc=/^[^\(]*\(\s*([^\)]*)\)/m,ug=/,/,vg=/^\s*(_?)(\S+?)\1\s*$/,Tc=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,Ea=M("$injector");db.$$annotate=function(a,b,d){var c;if("function"===typeof a){if(!(c=a.$inject)){c=[];if(a.length){if(b)throw F(d)&& 187d||(d=a.name||Rf(a)),Ea("strictdi",d);b=a.toString().replace(Tc,"");b=b.match(Uc);n(b[1].split(ug),function(a){a.replace(vg,function(a,b,d){c.push(d)})})}a.$inject=c}}else E(a)?(b=a.length-1,Qa(a[b],"fn"),c=a.slice(0,b)):Qa(a,"fn",!0);return c};var Qd=M("$animate"),Xe=function(){this.$get=function(){}},Ye=function(){var a=new Sa,b=[];this.$get=["$$AnimateRunner","$rootScope",function(d,c){function e(a,b,c){var d=!1;b&&(b=F(b)?b.split(" "):E(b)?b:[],n(b,function(b){b&&(d=!0,a[b]=c)}));return d}function f(){n(b, 188function(b){var c=a.get(b);if(c){var d=Sf(b.attr("class")),e="",f="";n(c,function(a,b){a!==!!d[b]&&(a?e+=(e.length?" ":"")+b:f+=(f.length?" ":"")+b)});n(b,function(a){e&&Bb(a,e);f&&Ab(a,f)});a.remove(b)}});b.length=0}return{enabled:z,on:z,off:z,pin:z,push:function(g,h,k,l){l&&l();k=k||{};k.from&&g.css(k.from);k.to&&g.css(k.to);if(k.addClass||k.removeClass)if(h=k.addClass,l=k.removeClass,k=a.get(g)||{},h=e(k,h,!0),l=e(k,l,!1),h||l)a.put(g,k),b.push(g),1===b.length&&c.$$postDigest(f);g=new d;g.complete(); 189return g}}}]},Ve=["$provide",function(a){var b=this;this.$$registeredAnimations=Object.create(null);this.register=function(d,c){if(d&&"."!==d.charAt(0))throw Qd("notcsel",d);var e=d+"-animation";b.$$registeredAnimations[d.substr(1)]=e;a.factory(e,c)};this.classNameFilter=function(a){if(1===arguments.length&&(this.$$classNameFilter=a instanceof RegExp?a:null)&&/(\s+|\/)ng-animate(\s+|\/)/.test(this.$$classNameFilter.toString()))throw Qd("nongcls","ng-animate");return this.$$classNameFilter};this.$get= 190["$$animateQueue",function(a){function b(a,c,d){if(d){var h;a:{for(h=0;h<d.length;h++){var k=d[h];if(1===k.nodeType){h=k;break a}}h=void 0}!h||h.parentNode||h.previousElementSibling||(d=null)}d?d.after(a):c.prepend(a)}return{on:a.on,off:a.off,pin:a.pin,enabled:a.enabled,cancel:function(a){a.end&&a.end()},enter:function(e,f,g,h){f=f&&A(f);g=g&&A(g);f=f||g.parent();b(e,f,g);return a.push(e,"enter",Fa(h))},move:function(e,f,g,h){f=f&&A(f);g=g&&A(g);f=f||g.parent();b(e,f,g);return a.push(e,"move",Fa(h))}, 191leave:function(b,c){return a.push(b,"leave",Fa(c),function(){b.remove()})},addClass:function(b,c,g){g=Fa(g);g.addClass=gb(g.addclass,c);return a.push(b,"addClass",g)},removeClass:function(b,c,g){g=Fa(g);g.removeClass=gb(g.removeClass,c);return a.push(b,"removeClass",g)},setClass:function(b,c,g,h){h=Fa(h);h.addClass=gb(h.addClass,c);h.removeClass=gb(h.removeClass,g);return a.push(b,"setClass",h)},animate:function(b,c,g,h,k){k=Fa(k);k.from=k.from?N(k.from,c):c;k.to=k.to?N(k.to,g):g;k.tempClasses=gb(k.tempClasses, 192h||"ng-inline-animate");return a.push(b,"animate",k)}}}]}],$e=function(){this.$get=["$$rAF",function(a){function b(b){d.push(b);1<d.length||a(function(){for(var a=0;a<d.length;a++)d[a]();d=[]})}var d=[];return function(){var a=!1;b(function(){a=!0});return function(d){a?d():b(d)}}}]},Ze=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(a,b,d,c,e){function f(a){this.setHost(a);var b=d();this._doneCallbacks=[];this._tick=function(a){var d=c[0];d&&d.hidden?e(a, 1930,!1):b(a)};this._state=0}f.chain=function(a,b){function c(){if(d===a.length)b(!0);else a[d](function(a){!1===a?b(!1):(d++,c())})}var d=0;c()};f.all=function(a,b){function c(f){e=e&&f;++d===a.length&&b(e)}var d=0,e=!0;n(a,function(a){a.done(c)})};f.prototype={setHost:function(a){this.host=a||{}},done:function(a){2===this._state?a():this._doneCallbacks.push(a)},progress:z,getPromise:function(){if(!this.promise){var b=this;this.promise=a(function(a,c){b.done(function(b){!1===b?c():a()})})}return this.promise}, 194then:function(a,b){return this.getPromise().then(a,b)},"catch":function(a){return this.getPromise()["catch"](a)},"finally":function(a){return this.getPromise()["finally"](a)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(a){var b=this;0===b._state&&(b._state=1,b._tick(function(){b._resolve(a)}))}, 195_resolve:function(a){2!==this._state&&(n(this._doneCallbacks,function(b){b(a)}),this._doneCallbacks.length=0,this._state=2)}};return f}]},We=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(a,b,d){return function(b,e){function f(){a(function(){g.addClass&&(b.addClass(g.addClass),g.addClass=null);g.removeClass&&(b.removeClass(g.removeClass),g.removeClass=null);g.to&&(b.css(g.to),g.to=null);h||k.complete();h=!0});return k}var g=e||{};g.$$prepared||(g=Ma(g));g.cleanupStyles&&(g.from=g.to= 196null);g.from&&(b.css(g.from),g.from=null);var h,k=new d;return{start:f,end:f}}}]},ga=M("$compile");Dc.$inject=["$provide","$$sanitizeUriProvider"];var Yc=/^((?:x|data)[\:\-_])/i,Vf=M("$controller"),Vc=/^(\S+)(\s+as\s+([\w$]+))?$/,ff=function(){this.$get=["$document",function(a){return function(b){b?!b.nodeType&&b instanceof A&&(b=b[0]):b=a[0].body;return b.offsetWidth+1}}]},bd="application/json",bc={"Content-Type":bd+";charset=utf-8"},Xf=/^\[|^\{(?!\{)/,Yf={"[":/]$/,"{":/}$/},Wf=/^\)\]\}',?\n/,wg= 197M("$http"),fd=function(a){return function(){throw wg("legacy",a);}},Ia=$.$interpolateMinErr=M("$interpolate");Ia.throwNoconcat=function(a){throw Ia("noconcat",a);};Ia.interr=function(a,b){return Ia("interr",a,b.toString())};var xg=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,$f={http:80,https:443,ftp:21},Fb=M("$location"),yg={$$html5:!1,$$replace:!1,absUrl:Gb("$$absUrl"),url:function(a){if(q(a))return this.$$url;var b=xg.exec(a);(b[1]||""===a)&&this.path(decodeURIComponent(b[1]));(b[2]||b[1]||""===a)&&this.search(b[3]|| 198"");this.hash(b[5]||"");return this},protocol:Gb("$$protocol"),host:Gb("$$host"),port:Gb("$$port"),path:kd("$$path",function(a){a=null!==a?a.toString():"";return"/"==a.charAt(0)?a:"/"+a}),search:function(a,b){switch(arguments.length){case 0:return this.$$search;case 1:if(F(a)||Q(a))a=a.toString(),this.$$search=yc(a);else if(G(a))a=Ma(a,{}),n(a,function(b,c){null==b&&delete a[c]}),this.$$search=a;else throw Fb("isrcharg");break;default:q(b)||null===b?delete this.$$search[a]:this.$$search[a]=b}this.$$compose(); 199return this},hash:kd("$$hash",function(a){return null!==a?a.toString():""}),replace:function(){this.$$replace=!0;return this}};n([jd,ec,dc],function(a){a.prototype=Object.create(yg);a.prototype.state=function(b){if(!arguments.length)return this.$$state;if(a!==dc||!this.$$html5)throw Fb("nostate");this.$$state=q(b)?null:b;return this}});var aa=M("$parse"),ag=Function.prototype.call,bg=Function.prototype.apply,cg=Function.prototype.bind,Nb=ea();n("+ - * / % === !== == != < > <= >= && || ! = |".split(" "), 200function(a){Nb[a]=!0});var zg={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},gc=function(a){this.options=a};gc.prototype={constructor:gc,lex:function(a){this.text=a;this.index=0;for(this.tokens=[];this.index<this.text.length;)if(a=this.text.charAt(this.index),'"'===a||"'"===a)this.readString(a);else if(this.isNumber(a)||"."===a&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(a))this.readIdent();else if(this.is(a,"(){}[].,;:?"))this.tokens.push({index:this.index,text:a}),this.index++; 201else if(this.isWhitespace(a))this.index++;else{var b=a+this.peek(),d=b+this.peek(2),c=Nb[b],e=Nb[d];Nb[a]||c||e?(a=e?d:c?b:a,this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(a,b){return-1!==b.indexOf(a)},peek:function(a){a=a||1;return this.index+a<this.text.length?this.text.charAt(this.index+a):!1},isNumber:function(a){return"0"<=a&&"9">=a&&"string"===typeof a},isWhitespace:function(a){return" "===
vendor: 6,261 bytes, lines 202-214
202a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||"\u00a0"===a},isIdent:function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"===a||"$"===a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,b,d){d=d||this.index;b=u(b)?"s "+b+"-"+this.index+" ["+this.text.substring(b,d)+"]":" "+d;throw aa("lexerr",a,b,this.text);},readNumber:function(){for(var a="",b=this.index;this.index<this.text.length;){var d=K(this.text.charAt(this.index));if("."==d||this.isNumber(d))a+=d;else{var c= 203this.peek();if("e"==d&&this.isExpOperator(c))a+=d;else if(this.isExpOperator(d)&&c&&this.isNumber(c)&&"e"==a.charAt(a.length-1))a+=d;else if(!this.isExpOperator(d)||c&&this.isNumber(c)||"e"!=a.charAt(a.length-1))break;else this.throwError("Invalid exponent")}this.index++}this.tokens.push({index:b,text:a,constant:!0,value:Number(a)})},readIdent:function(){for(var a=this.index;this.index<this.text.length;){var b=this.text.charAt(this.index);if(!this.isIdent(b)&&!this.isNumber(b))break;this.index++}this.tokens.push({index:a, 204text:this.text.slice(a,this.index),identifier:!0})},readString:function(a){var b=this.index;this.index++;for(var d="",c=a,e=!1;this.index<this.text.length;){var f=this.text.charAt(this.index),c=c+f;if(e)"u"===f?(e=this.text.substring(this.index+1,this.index+5),e.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+e+"]"),this.index+=4,d+=String.fromCharCode(parseInt(e,16))):d+=zg[f]||f,e=!1;else if("\\"===f)e=!0;else{if(f===a){this.index++;this.tokens.push({index:b,text:c,constant:!0, 205value:d});return}d+=f}this.index++}this.throwError("Unterminated quote",b)}};var s=function(a,b){this.lexer=a;this.options=b};s.Program="Program";s.ExpressionStatement="ExpressionStatement";s.AssignmentExpression="AssignmentExpression";s.ConditionalExpression="ConditionalExpression";s.LogicalExpression="LogicalExpression";s.BinaryExpression="BinaryExpression";s.UnaryExpression="UnaryExpression";s.CallExpression="CallExpression";s.MemberExpression="MemberExpression";s.Identifier="Identifier";s.Literal= 206"Literal";s.ArrayExpression="ArrayExpression";s.Property="Property";s.ObjectExpression="ObjectExpression";s.ThisExpression="ThisExpression";s.NGValueParameter="NGValueParameter";s.prototype={ast:function(a){this.text=a;this.tokens=this.lexer.lex(a);a=this.program();0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]);return a},program:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.expressionStatement()),!this.expect(";"))return{type:s.Program, 207body:a}},expressionStatement:function(){return{type:s.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var a=this.expression();this.expect("|");)a=this.filter(a);return a},expression:function(){return this.assignment()},assignment:function(){var a=this.ternary();this.expect("=")&&(a={type:s.AssignmentExpression,left:a,right:this.assignment(),operator:"="});return a},ternary:function(){var a=this.logicalOR(),b,d;return this.expect("?")&&(b=this.expression(),this.consume(":"))? 208(d=this.expression(),{type:s.ConditionalExpression,test:a,alternate:b,consequent:d}):a},logicalOR:function(){for(var a=this.logicalAND();this.expect("||");)a={type:s.LogicalExpression,operator:"||",left:a,right:this.logicalAND()};return a},logicalAND:function(){for(var a=this.equality();this.expect("&&");)a={type:s.LogicalExpression,operator:"&&",left:a,right:this.equality()};return a},equality:function(){for(var a=this.relational(),b;b=this.expect("==","!=","===","!==");)a={type:s.BinaryExpression, 209operator:b.text,left:a,right:this.relational()};return a},relational:function(){for(var a=this.additive(),b;b=this.expect("<",">","<=",">=");)a={type:s.BinaryExpression,operator:b.text,left:a,right:this.additive()};return a},additive:function(){for(var a=this.multiplicative(),b;b=this.expect("+","-");)a={type:s.BinaryExpression,operator:b.text,left:a,right:this.multiplicative()};return a},multiplicative:function(){for(var a=this.unary(),b;b=this.expect("*","/","%");)a={type:s.BinaryExpression,operator:b.text, 210left:a,right:this.unary()};return a},unary:function(){var a;return(a=this.expect("+","-","!"))?{type:s.UnaryExpression,operator:a.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var a;this.expect("(")?(a=this.filterChain(),this.consume(")")):this.expect("[")?a=this.arrayDeclaration():this.expect("{")?a=this.object():this.constants.hasOwnProperty(this.peek().text)?a=Ma(this.constants[this.consume().text]):this.peek().identifier?a=this.identifier():this.peek().constant?a=this.constant(): 211this.throwError("not a primary expression",this.peek());for(var b;b=this.expect("(","[",".");)"("===b.text?(a={type:s.CallExpression,callee:a,arguments:this.parseArguments()},this.consume(")")):"["===b.text?(a={type:s.MemberExpression,object:a,property:this.expression(),computed:!0},this.consume("]")):"."===b.text?a={type:s.MemberExpression,object:a,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return a},filter:function(a){a=[a];for(var b={type:s.CallExpression,callee:this.identifier(), 212arguments:a,filter:!0};this.expect(":");)a.push(this.expression());return b},parseArguments:function(){var a=[];if(")"!==this.peekToken().text){do a.push(this.expression());while(this.expect(","))}return a},identifier:function(){var a=this.consume();a.identifier||this.throwError("is not a valid identifier",a);return{type:s.Identifier,name:a.text}},constant:function(){return{type:s.Literal,value:this.consume().value}},arrayDeclaration:function(){var a=[];if("]"!==this.peekToken().text){do{if(this.peek("]"))break; 213a.push(this.expression())}while(this.expect(","))}this.consume("]");return{type:s.ArrayExpression,elements:a}},object:function(){var a=[],b;if("}"!==this.peekToken().text){do{if(this.peek("}"))break;b={type:s.Property,kind:"init"};this.peek().constant?b.key=this.constant():this.peek().identifier?b.key=this.identifier():this.throwError("invalid key",this.peek());this.consume(":");b.value=this.expression();a.push(b)}while(this.expect(","))}this.consume("}");return{type:s.ObjectExpression,properties:a}}, 214throwError:function(a,b){throw aa("syntax",b.text,a,b.index+1,this.text,this.text.substring(b.index));}
vendor: 8,357 bytes, lines 214-230
214,consume:function(a){if(0===this.tokens.length)throw aa("ueoe",this.text);var b=this.expect(a);b||this.throwError("is unexpected, expecting ["+a+"]",this.peek());return b},peekToken:function(){if(0===this.tokens.length)throw aa("ueoe",this.text);return this.tokens[0]},peek:function(a,b,d,c){return this.peekAhead(0,a,b,d,c)},peekAhead:function(a,b,d,c,e){if(this.tokens.length>a){a=this.tokens[a]; 215var f=a.text;if(f===b||f===d||f===c||f===e||!(b||d||c||e))return a}return!1},expect:function(a,b,d,c){return(a=this.peek(a,b,d,c))?(this.tokens.shift(),a):!1},constants:{"true":{type:s.Literal,value:!0},"false":{type:s.Literal,value:!1},"null":{type:s.Literal,value:null},undefined:{type:s.Literal,value:w},"this":{type:s.ThisExpression}}};td.prototype={compile:function(a,b){var d=this,c=this.astBuilder.ast(a);this.state={nextId:0,filters:{},expensiveChecks:b,fn:{vars:[],body:[],own:{}},assign:{vars:[], 216body:[],own:{}},inputs:[]};V(c,d.$filter);var e="",f;this.stage="assign";if(f=rd(c))this.state.computing="assign",e=this.nextId(),this.recurse(f,e),this.return_(e),e="fn.assign="+this.generateFunction("assign","s,v,l");f=pd(c.body);d.stage="inputs";n(f,function(a,b){var c="fn"+b;d.state[c]={vars:[],body:[],own:{}};d.state.computing=c;var e=d.nextId();d.recurse(a,e);d.return_(e);d.state.inputs.push(c);a.watchId=b});this.state.computing="fn";this.stage="main";this.recurse(c);e='"'+this.USE+" "+this.STRICT+ 217'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+e+this.watchFns()+"return fn;";e=(new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",e))(this.$filter,Va,ya,md,ld,nd,dg,od,a);this.state=this.stage=w;e.literal=sd(c);e.constant=c.constant;return e},USE:"use",STRICT:"strict",watchFns:function(){var a=[],b=this.state.inputs,d=this;n(b,function(b){a.push("var "+b+"="+d.generateFunction(b, 218"s"))});b.length&&a.push("fn.inputs=["+b.join(",")+"];");return a.join("")},generateFunction:function(a,b){return"function("+b+"){"+this.varsPrefix(a)+this.body(a)+"};"},filterPrefix:function(){var a=[],b=this;n(this.state.filters,function(d,c){a.push(d+"=$filter("+b.escape(c)+")")});return a.length?"var "+a.join(",")+";":""},varsPrefix:function(a){return this.state[a].vars.length?"var "+this.state[a].vars.join(",")+";":""},body:function(a){return this.state[a].body.join("")},recurse:function(a,b, 219d,c,e,f){var g,h,k=this,l,m;c=c||z;if(!f&&u(a.watchId))b=b||this.nextId(),this.if_("i",this.lazyAssign(b,this.computedMember("i",a.watchId)),this.lazyRecurse(a,b,d,c,e,!0));else switch(a.type){case s.Program:n(a.body,function(b,c){k.recurse(b.expression,w,w,function(a){h=a});c!==a.body.length-1?k.current().body.push(h,";"):k.return_(h)});break;case s.Literal:m=this.escape(a.value);this.assign(b,m);c(m);break;case s.UnaryExpression:this.recurse(a.argument,w,w,function(a){h=a});m=a.operator+"("+this.ifDefined(h, 2200)+")";this.assign(b,m);c(m);break;case s.BinaryExpression:this.recurse(a.left,w,w,function(a){g=a});this.recurse(a.right,w,w,function(a){h=a});m="+"===a.operator?this.plus(g,h):"-"===a.operator?this.ifDefined(g,0)+a.operator+this.ifDefined(h,0):"("+g+")"+a.operator+"("+h+")";this.assign(b,m);c(m);break;case s.LogicalExpression:b=b||this.nextId();k.recurse(a.left,b);k.if_("&&"===a.operator?b:k.not(b),k.lazyRecurse(a.right,b));c(b);break;case s.ConditionalExpression:b=b||this.nextId();k.recurse(a.test, 221b);k.if_(b,k.lazyRecurse(a.alternate,b),k.lazyRecurse(a.consequent,b));c(b);break;case s.Identifier:b=b||this.nextId();d&&(d.context="inputs"===k.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",a.name)+"?l:s"),d.computed=!1,d.name=a.name);Va(a.name);k.if_("inputs"===k.stage||k.not(k.getHasOwnProperty("l",a.name)),function(){k.if_("inputs"===k.stage||"s",function(){e&&1!==e&&k.if_(k.not(k.nonComputedMember("s",a.name)),k.lazyAssign(k.nonComputedMember("s",a.name),"{}"));k.assign(b,k.nonComputedMember("s", 222a.name))})},b&&k.lazyAssign(b,k.nonComputedMember("l",a.name)));(k.state.expensiveChecks||Hb(a.name))&&k.addEnsureSafeObject(b);c(b);break;case s.MemberExpression:g=d&&(d.context=this.nextId())||this.nextId();b=b||this.nextId();k.recurse(a.object,g,w,function(){k.if_(k.notNull(g),function(){if(a.computed)h=k.nextId(),k.recurse(a.property,h),k.getStringValue(h),k.addEnsureSafeMemberName(h),e&&1!==e&&k.if_(k.not(k.computedMember(g,h)),k.lazyAssign(k.computedMember(g,h),"{}")),m=k.ensureSafeObject(k.computedMember(g, 223h)),k.assign(b,m),d&&(d.computed=!0,d.name=h);else{Va(a.property.name);e&&1!==e&&k.if_(k.not(k.nonComputedMember(g,a.property.name)),k.lazyAssign(k.nonComputedMember(g,a.property.name),"{}"));m=k.nonComputedMember(g,a.property.name);if(k.state.expensiveChecks||Hb(a.property.name))m=k.ensureSafeObject(m);k.assign(b,m);d&&(d.computed=!1,d.name=a.property.name)}},function(){k.assign(b,"undefined")});c(b)},!!e);break;case s.CallExpression:b=b||this.nextId();a.filter?(h=k.filter(a.callee.name),l=[],n(a.arguments, 224function(a){var b=k.nextId();k.recurse(a,b);l.push(b)}),m=h+"("+l.join(",")+")",k.assign(b,m),c(b)):(h=k.nextId(),g={},l=[],k.recurse(a.callee,h,g,function(){k.if_(k.notNull(h),function(){k.addEnsureSafeFunction(h);n(a.arguments,function(a){k.recurse(a,k.nextId(),w,function(a){l.push(k.ensureSafeObject(a))})});g.name?(k.state.expensiveChecks||k.addEnsureSafeObject(g.context),m=k.member(g.context,g.name,g.computed)+"("+l.join(",")+")"):m=h+"("+l.join(",")+")";m=k.ensureSafeObject(m);k.assign(b,m)}, 225function(){k.assign(b,"undefined")});c(b)}));break;case s.AssignmentExpression:h=this.nextId();g={};if(!qd(a.left))throw aa("lval");this.recurse(a.left,w,g,function(){k.if_(k.notNull(g.context),function(){k.recurse(a.right,h);k.addEnsureSafeObject(k.member(g.context,g.name,g.computed));k.addEnsureSafeAssignContext(g.context);m=k.member(g.context,g.name,g.computed)+a.operator+h;k.assign(b,m);c(b||m)})},1);break;case s.ArrayExpression:l=[];n(a.elements,function(a){k.recurse(a,k.nextId(),w,function(a){l.push(a)})}); 226m="["+l.join(",")+"]";this.assign(b,m);c(m);break;case s.ObjectExpression:l=[];n(a.properties,function(a){k.recurse(a.value,k.nextId(),w,function(b){l.push(k.escape(a.key.type===s.Identifier?a.key.name:""+a.key.value)+":"+b)})});m="{"+l.join(",")+"}";this.assign(b,m);c(m);break;case s.ThisExpression:this.assign(b,"s");c("s");break;case s.NGValueParameter:this.assign(b,"v"),c("v")}},getHasOwnProperty:function(a,b){var d=a+"."+b,c=this.current().own;c.hasOwnProperty(d)||(c[d]=this.nextId(!1,a+"&&("+ 227this.escape(b)+" in "+a+")"));return c[d]},assign:function(a,b){if(a)return this.current().body.push(a,"=",b,";"),a},filter:function(a){this.state.filters.hasOwnProperty(a)||(this.state.filters[a]=this.nextId(!0));return this.state.filters[a]},ifDefined:function(a,b){return"ifDefined("+a+","+this.escape(b)+")"},plus:function(a,b){return"plus("+a+","+b+")"},return_:function(a){this.current().body.push("return ",a,";")},if_:function(a,b,d){if(!0===a)b();else{var c=this.current().body;c.push("if(",a, 228"){");b();c.push("}");d&&(c.push("else{"),d(),c.push("}"))}},not:function(a){return"!("+a+")"},notNull:function(a){return a+"!=null"},nonComputedMember:function(a,b){return a+"."+b},computedMember:function(a,b){return a+"["+b+"]"},member:function(a,b,d){return d?this.computedMember(a,b):this.nonComputedMember(a,b)},addEnsureSafeObject:function(a){this.current().body.push(this.ensureSafeObject(a),";")},addEnsureSafeMemberName:function(a){this.current().body.push(this.ensureSafeMemberName(a),";")}, 229addEnsureSafeFunction:function(a){this.current().body.push(this.ensureSafeFunction(a),";")},addEnsureSafeAssignContext:function(a){this.current().body.push(this.ensureSafeAssignContext(a),";")},ensureSafeObject:function(a){return"ensureSafeObject("+a+",text)"},ensureSafeMemberName:function(a){return"ensureSafeMemberName("+a+",text)"},ensureSafeFunction:function(a){return"ensureSafeFunction("+a+",text)"},getStringValue:function(a){this.assign(a,"getStringValue("+a+",text)")},ensureSafeAssignContext:function(a){return"ensureSafeAssignContext("+ 230a+",text)"},lazyRecurse:function(a,b,d,c,e,f){var g=this;return function(){g.recurse(a,b,d,c,e,f)}},lazyAssign:function(a,b){var d=this;return function(){d.assign(a,b)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(a){return"\\u"+("0000"+a.charCo
vendor: 7,104 bytes, lines 230-244
230deAt(0).toString(16)).slice(-4)},escape:function(a){if(F(a))return"'"+a.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(Q(a))return a.toString();if(!0===a)return"true";if(!1===a)return"false";if(null===a)return"null";if("undefined"=== 231typeof a)return"undefined";throw aa("esc");},nextId:function(a,b){var d="v"+this.state.nextId++;a||this.current().vars.push(d+(b?"="+b:""));return d},current:function(){return this.state[this.state.computing]}};ud.prototype={compile:function(a,b){var d=this,c=this.astBuilder.ast(a);this.expression=a;this.expensiveChecks=b;V(c,d.$filter);var e,f;if(e=rd(c))f=this.recurse(e);e=pd(c.body);var g;e&&(g=[],n(e,function(a,b){var c=d.recurse(a);a.input=c;g.push(c);a.watchId=b}));var h=[];n(c.body,function(a){h.push(d.recurse(a.expression))}); 232e=0===c.body.length?function(){}:1===c.body.length?h[0]:function(a,b){var c;n(h,function(d){c=d(a,b)});return c};f&&(e.assign=function(a,b,c){return f(a,c,b)});g&&(e.inputs=g);e.literal=sd(c);e.constant=c.constant;return e},recurse:function(a,b,d){var c,e,f=this,g;if(a.input)return this.inputs(a.input,a.watchId);switch(a.type){case s.Literal:return this.value(a.value,b);case s.UnaryExpression:return e=this.recurse(a.argument),this["unary"+a.operator](e,b);case s.BinaryExpression:return c=this.recurse(a.left), 233e=this.recurse(a.right),this["binary"+a.operator](c,e,b);case s.LogicalExpression:return c=this.recurse(a.left),e=this.recurse(a.right),this["binary"+a.operator](c,e,b);case s.ConditionalExpression:return this["ternary?:"](this.recurse(a.test),this.recurse(a.alternate),this.recurse(a.consequent),b);case s.Identifier:return Va(a.name,f.expression),f.identifier(a.name,f.expensiveChecks||Hb(a.name),b,d,f.expression);case s.MemberExpression:return c=this.recurse(a.object,!1,!!d),a.computed||(Va(a.property.name, 234f.expression),e=a.property.name),a.computed&&(e=this.recurse(a.property)),a.computed?this.computedMember(c,e,b,d,f.expression):this.nonComputedMember(c,e,f.expensiveChecks,b,d,f.expression);case s.CallExpression:return g=[],n(a.arguments,function(a){g.push(f.recurse(a))}),a.filter&&(e=this.$filter(a.callee.name)),a.filter||(e=this.recurse(a.callee,!0)),a.filter?function(a,c,d,f){for(var r=[],n=0;n<g.length;++n)r.push(g[n](a,c,d,f));a=e.apply(w,r,f);return b?{context:w,name:w,value:a}:a}:function(a, 235c,d,m){var n=e(a,c,d,m),t;if(null!=n.value){ya(n.context,f.expression);md(n.value,f.expression);t=[];for(var q=0;q<g.length;++q)t.push(ya(g[q](a,c,d,m),f.expression));t=ya(n.value.apply(n.context,t),f.expression)}return b?{value:t}:t};case s.AssignmentExpression:return c=this.recurse(a.left,!0,1),e=this.recurse(a.right),function(a,d,g,m){var n=c(a,d,g,m);a=e(a,d,g,m);ya(n.value,f.expression);nd(n.context);n.context[n.name]=a;return b?{value:a}:a};case s.ArrayExpression:return g=[],n(a.elements,function(a){g.push(f.recurse(a))}), 236function(a,c,d,e){for(var f=[],n=0;n<g.length;++n)f.push(g[n](a,c,d,e));return b?{value:f}:f};case s.ObjectExpression:return g=[],n(a.properties,function(a){g.push({key:a.key.type===s.Identifier?a.key.name:""+a.key.value,value:f.recurse(a.value)})}),function(a,c,d,e){for(var f={},n=0;n<g.length;++n)f[g[n].key]=g[n].value(a,c,d,e);return b?{value:f}:f};case s.ThisExpression:return function(a){return b?{value:a}:a};case s.NGValueParameter:return function(a,c,d,e){return b?{value:d}:d}}},"unary+":function(a, 237b){return function(d,c,e,f){d=a(d,c,e,f);d=u(d)?+d:0;return b?{value:d}:d}},"unary-":function(a,b){return function(d,c,e,f){d=a(d,c,e,f);d=u(d)?-d:0;return b?{value:d}:d}},"unary!":function(a,b){return function(d,c,e,f){d=!a(d,c,e,f);return b?{value:d}:d}},"binary+":function(a,b,d){return function(c,e,f,g){var h=a(c,e,f,g);c=b(c,e,f,g);h=od(h,c);return d?{value:h}:h}},"binary-":function(a,b,d){return function(c,e,f,g){var h=a(c,e,f,g);c=b(c,e,f,g);h=(u(h)?h:0)-(u(c)?c:0);return d?{value:h}:h}},"binary*":function(a, 238b,d){return function(c,e,f,g){c=a(c,e,f,g)*b(c,e,f,g);return d?{value:c}:c}},"binary/":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)/b(c,e,f,g);return d?{value:c}:c}},"binary%":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)%b(c,e,f,g);return d?{value:c}:c}},"binary===":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)===b(c,e,f,g);return d?{value:c}:c}},"binary!==":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)!==b(c,e,f,g);return d?{value:c}:c}},"binary==":function(a,b, 239d){return function(c,e,f,g){c=a(c,e,f,g)==b(c,e,f,g);return d?{value:c}:c}},"binary!=":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)!=b(c,e,f,g);return d?{value:c}:c}},"binary<":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)<b(c,e,f,g);return d?{value:c}:c}},"binary>":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)>b(c,e,f,g);return d?{value:c}:c}},"binary<=":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)<=b(c,e,f,g);return d?{value:c}:c}},"binary>=":function(a,b,d){return function(c, 240e,f,g){c=a(c,e,f,g)>=b(c,e,f,g);return d?{value:c}:c}},"binary&&":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)&&b(c,e,f,g);return d?{value:c}:c}},"binary||":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)||b(c,e,f,g);return d?{value:c}:c}},"ternary?:":function(a,b,d,c){return function(e,f,g,h){e=a(e,f,g,h)?b(e,f,g,h):d(e,f,g,h);return c?{value:e}:e}},value:function(a,b){return function(){return b?{context:w,name:w,value:a}:a}},identifier:function(a,b,d,c,e){return function(f,g,h,k){f= 241g&&a in g?g:f;c&&1!==c&&f&&!f[a]&&(f[a]={});g=f?f[a]:w;b&&ya(g,e);return d?{context:f,name:a,value:g}:g}},computedMember:function(a,b,d,c,e){return function(f,g,h,k){var l=a(f,g,h,k),m,n;null!=l&&(m=b(f,g,h,k),m=ld(m),Va(m,e),c&&1!==c&&l&&!l[m]&&(l[m]={}),n=l[m],ya(n,e));return d?{context:l,name:m,value:n}:n}},nonComputedMember:function(a,b,d,c,e,f){return function(g,h,k,l){g=a(g,h,k,l);e&&1!==e&&g&&!g[b]&&(g[b]={});h=null!=g?g[b]:w;(d||Hb(b))&&ya(h,f);return c?{context:g,name:b,value:h}:h}},inputs:function(a, 242b){return function(d,c,e,f){return f?f[b]:a(d,c,e)}}};var hc=function(a,b,d){this.lexer=a;this.$filter=b;this.options=d;this.ast=new s(this.lexer);this.astCompiler=d.csp?new ud(this.ast,b):new td(this.ast,b)};hc.prototype={constructor:hc,parse:function(a){return this.astCompiler.compile(a,this.options.expensiveChecks)}};var eg=Object.prototype.valueOf,za=M("$sce"),ma={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ga=M("$compile"),ba=W.createElement("a"),yd=xa(S.location.href); 243zd.$inject=["$document"];Kc.$inject=["$provide"];var Gd=22,Fd=".",jc="0";Ad.$inject=["$locale"];Cd.$inject=["$locale"];var qg={yyyy:ca("FullYear",4),yy:ca("FullYear",2,0,!0),y:ca("FullYear",1),MMMM:Jb("Month"),MMM:Jb("Month",!0),MM:ca("Month",2,1),M:ca("Month",1,1),dd:ca("Date",2),d:ca("Date",1),HH:ca("Hours",2),H:ca("Hours",1),hh:ca("Hours",2,-12),h:ca("Hours",1,-12),mm:ca("Minutes",2),m:ca("Minutes",1),ss:ca("Seconds",2),s:ca("Seconds",1),sss:ca("Milliseconds",3),EEEE:Jb("Day"),EEE:Jb("Day",!0), 244a:function(a,b){return 12>a.getHours()?b.AMPMS[0]:b.AMPMS[1]},Z:function(a,b,d){a=-1*d;return a=(0<=a?"+":"")+(Ib(Math[0<a?"floor":"ceil"](a/60),2)+Ib(Math.abs(a%60),2))}
vendor: 6,391 bytes, lines 244-256
244,ww:Id(2),w:Id(1),G:kc,GG:kc,GGG:kc,GGGG:function(a,b){return 0>=a.getFullYear()?b.ERANAMES[0]:b.ERANAMES[1]}},pg=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,og=/^\-?\d+$/;Bd.$inject=["$locale"];var jg=na(K),kg=na(tb);Dd.$inject=["$parse"];var le=na({restrict:"E",compile:function(a,b){if(!b.href&& 245!b.xlinkHref)return function(a,b){if("a"===b[0].nodeName.toLowerCase()){var e="[object SVGAnimatedString]"===ta.call(b.prop("href"))?"xlink:href":"href";b.on("click",function(a){b.attr(e)||a.preventDefault()})}}}}),ub={};n(Db,function(a,b){function d(a,d,e){a.$watch(e[c],function(a){e.$set(b,!!a)})}if("multiple"!=a){var c=va("ng-"+b),e=d;"checked"===a&&(e=function(a,b,e){e.ngModel!==e[c]&&d(a,b,e)});ub[c]=function(){return{restrict:"A",priority:100,link:e}}}});n(ad,function(a,b){ub[b]=function(){return{priority:100, 246link:function(a,c,e){if("ngPattern"===b&&"/"==e.ngPattern.charAt(0)&&(c=e.ngPattern.match(sg))){e.$set("ngPattern",new RegExp(c[1],c[2]));return}a.$watch(e[b],function(a){e.$set(b,a)})}}}});n(["src","srcset","href"],function(a){var b=va("ng-"+a);ub[b]=function(){return{priority:99,link:function(d,c,e){var f=a,g=a;"href"===a&&"[object SVGAnimatedString]"===ta.call(c.prop("href"))&&(g="xlinkHref",e.$attr[g]="xlink:href",f=null);e.$observe(b,function(b){b?(e.$set(g,b),Ha&&f&&c.prop(f,e[g])):"href"=== 247a&&e.$set(g,null)})}}}});var Kb={$addControl:z,$$renameControl:function(a,b){a.$name=b},$removeControl:z,$setValidity:z,$setDirty:z,$setPristine:z,$setSubmitted:z};Jd.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Rd=function(a){return["$timeout","$parse",function(b,d){function c(a){return""===a?d('this[""]').assign:d(a).assign||z}return{name:"form",restrict:a?"EAC":"E",require:["form","^^?form"],controller:Jd,compile:function(d,f){d.addClass(Wa).addClass(nb);var g=f.name?"name": 248a&&f.ngForm?"ngForm":!1;return{pre:function(a,d,e,f){var n=f[0];if(!("action"in e)){var t=function(b){a.$apply(function(){n.$commitViewValue();n.$setSubmitted()});b.preventDefault()};d[0].addEventListener("submit",t,!1);d.on("$destroy",function(){b(function(){d[0].removeEventListener("submit",t,!1)},0,!1)})}(f[1]||n.$$parentForm).$addControl(n);var q=g?c(n.$name):z;g&&(q(a,n),e.$observe(g,function(b){n.$name!==b&&(q(a,w),n.$$parentForm.$$renameControl(n,b),q=c(n.$name),q(a,n))}));d.on("$destroy", 249function(){n.$$parentForm.$removeControl(n);q(a,w);N(n,Kb)})}}}}}]},me=Rd(),ze=Rd(!0),rg=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Ag=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Bg=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Cg=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Sd=/^(\d{4})-(\d{2})-(\d{2})$/,Td=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/, 250nc=/^(\d{4})-W(\d\d)$/,Ud=/^(\d{4})-(\d\d)$/,Vd=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Wd={text:function(a,b,d,c,e,f){kb(a,b,d,c,e,f);lc(c)},date:lb("date",Sd,Mb(Sd,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":lb("datetimelocal",Td,Mb(Td,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:lb("time",Vd,Mb(Vd,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:lb("week",nc,function(a,b){if(da(a))return a;if(F(a)){nc.lastIndex=0;var d=nc.exec(a);if(d){var c=+d[1],e=+d[2],f=d=0,g= 2510,h=0,k=Hd(c),e=7*(e-1);b&&(d=b.getHours(),f=b.getMinutes(),g=b.getSeconds(),h=b.getMilliseconds());return new Date(c,0,k.getDate()+e,d,f,g,h)}}return NaN},"yyyy-Www"),month:lb("month",Ud,Mb(Ud,["yyyy","MM"]),"yyyy-MM"),number:function(a,b,d,c,e,f){Ld(a,b,d,c);kb(a,b,d,c,e,f);c.$$parserName="number";c.$parsers.push(function(a){return c.$isEmpty(a)?null:Cg.test(a)?parseFloat(a):w});c.$formatters.push(function(a){if(!c.$isEmpty(a)){if(!Q(a))throw mb("numfmt",a);a=a.toString()}return a});if(u(d.min)|| 252d.ngMin){var g;c.$validators.min=function(a){return c.$isEmpty(a)||q(g)||a>=g};d.$observe("min",function(a){u(a)&&!Q(a)&&(a=parseFloat(a,10));g=Q(a)&&!isNaN(a)?a:w;c.$validate()})}if(u(d.max)||d.ngMax){var h;c.$validators.max=function(a){return c.$isEmpty(a)||q(h)||a<=h};d.$observe("max",function(a){u(a)&&!Q(a)&&(a=parseFloat(a,10));h=Q(a)&&!isNaN(a)?a:w;c.$validate()})}},url:function(a,b,d,c,e,f){kb(a,b,d,c,e,f);lc(c);c.$$parserName="url";c.$validators.url=function(a,b){var d=a||b;return c.$isEmpty(d)|| 253Ag.test(d)}},email:function(a,b,d,c,e,f){kb(a,b,d,c,e,f);lc(c);c.$$parserName="email";c.$validators.email=function(a,b){var d=a||b;return c.$isEmpty(d)||Bg.test(d)}},radio:function(a,b,d,c){q(d.name)&&b.attr("name",++ob);b.on("click",function(a){b[0].checked&&c.$setViewValue(d.value,a&&a.type)});c.$render=function(){b[0].checked=d.value==c.$viewValue};d.$observe("value",c.$render)},checkbox:function(a,b,d,c,e,f,g,h){var k=Md(h,a,"ngTrueValue",d.ngTrueValue,!0),l=Md(h,a,"ngFalseValue",d.ngFalseValue, 254!1);b.on("click",function(a){c.$setViewValue(b[0].checked,a&&a.type)});c.$render=function(){b[0].checked=c.$viewValue};c.$isEmpty=function(a){return!1===a};c.$formatters.push(function(a){return ka(a,k)});c.$parsers.push(function(a){return a?k:l})},hidden:z,button:z,submit:z,reset:z,file:z},Ec=["$browser","$sniffer","$filter","$parse",function(a,b,d,c){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,f,g,h){h[0]&&(Wd[K(g.type)]||Wd.text)(e,f,g,h[0],b,a,d,c)}}}}],Dg=/^(true|false|\d+)$/, 255Re=function(){return{restrict:"A",priority:100,compile:function(a,b){return Dg.test(b.ngValue)?function(a,b,e){e.$set("value",a.$eval(e.ngValue))}:function(a,b,e){a.$watch(e.ngValue,function(a){e.$set("value",a)})}}}},re=["$compile",function(a){return{restrict:"AC",compile:function(b){a.$$addBindingClass(b);return function(b,c,e){a.$$addBindingInfo(c,e.ngBind);c=c[0];b.$watch(e.ngBind,function(a){c.textContent=q(a)?"":a})}}}}],te=["$interpolate","$compile",function(a,b){return{compile:function(d){b.$$addBindingClass(d); 256return function(c,d,f){c=a(d.attr(f.$attr.ngBindTemplate));b.$$addBindingInfo(d,c.expressions);d=d[0];f.$observe("ngBindTemplate",function(a){d.textContent=q(a)?"":a})}}}}],se=["$sce","$parse","$compile",function(a,b,d){return{restrict:"A",compile:function(c,e){var f=b(e.ngBindHtml),g=b(e.ngBindHtml,function(a){return(a||"").toString()});d.$$addBindingClass(c);return function(b,c,e){d.$$addBindingInfo(c,e.ngBindHtml);
vendor: 5,212 bytes, lines 256-267
256b.$watch(g,function(){c.html(a.getTrustedHtml(f(b))||"")})}}}}],Qe=na({restrict:"A", 257require:"ngModel",link:function(a,b,d,c){c.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),ue=mc("",!0),we=mc("Odd",0),ve=mc("Even",1),xe=Ka({compile:function(a,b){b.$set("ngCloak",w);a.removeClass("ng-cloak")}}),ye=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Jc={},Eg={blur:!0,focus:!0};n("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(a){var b= 258va("ng-"+a);Jc[b]=["$parse","$rootScope",function(d,c){return{restrict:"A",compile:function(e,f){var g=d(f[b],null,!0);return function(b,d){d.on(a,function(d){var e=function(){g(b,{$event:d})};Eg[a]&&c.$$phase?b.$evalAsync(e):b.$apply(e)})}}}}]});var Be=["$animate",function(a){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(b,d,c,e,f){var g,h,k;b.$watch(c.ngIf,function(b){b?h||f(function(b,e){h=e;b[b.length++]=W.createComment(" end ngIf: "+ 259c.ngIf+" ");g={clone:b};a.enter(b,d.parent(),d)}):(k&&(k.remove(),k=null),h&&(h.$destroy(),h=null),g&&(k=sb(g.clone),a.leave(k).then(function(){k=null}),g=null))})}}}],Ce=["$templateRequest","$anchorScroll","$animate",function(a,b,d){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:$.noop,compile:function(c,e){var f=e.ngInclude||e.src,g=e.onload||"",h=e.autoscroll;return function(c,e,m,n,q){var s=0,y,w,p,x=function(){w&&(w.remove(),w=null);y&&(y.$destroy(),y=null);p&& 260(d.leave(p).then(function(){w=null}),w=p,p=null)};c.$watch(f,function(f){var m=function(){!u(h)||h&&!c.$eval(h)||b()},H=++s;f?(a(f,!0).then(function(a){if(!c.$$destroyed&&H===s){var b=c.$new();n.template=a;a=q(b,function(a){x();d.enter(a,null,e).then(m)});y=b;p=a;y.$emit("$includeContentLoaded",f);c.$eval(g)}},function(){c.$$destroyed||H!==s||(x(),c.$emit("$includeContentError",f))}),c.$emit("$includeContentRequested",f)):(x(),n.template=null)})}}}}],Te=["$compile",function(a){return{restrict:"ECA", 261priority:-400,require:"ngInclude",link:function(b,d,c,e){/SVG/.test(d[0].toString())?(d.empty(),a(Mc(e.template,W).childNodes)(b,function(a){d.append(a)},{futureParentElement:d})):(d.html(e.template),a(d.contents())(b))}}}],De=Ka({priority:450,compile:function(){return{pre:function(a,b,d){a.$eval(d.ngInit)}}}}),Pe=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(a,b,d,c){var e=b.attr(d.$attr.ngList)||", ",f="false"!==d.ngTrim,g=f?T(e):e;c.$parsers.push(function(a){if(!q(a)){var b= 262[];a&&n(a.split(g),function(a){a&&b.push(f?T(a):a)});return b}});c.$formatters.push(function(a){return E(a)?a.join(e):w});c.$isEmpty=function(a){return!a||!a.length}}}},nb="ng-valid",Nd="ng-invalid",Wa="ng-pristine",Lb="ng-dirty",Pd="ng-pending",mb=M("ngModel"),Fg=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(a,b,d,c,e,f,g,h,k,l){this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=w;this.$validators={};this.$asyncValidators= 263{};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=w;this.$name=l(d.name||"",!1)(a);this.$$parentForm=Kb;var m=e(d.ngModel),r=m.assign,t=m,s=r,y=null,A,p=this;this.$$setOptions=function(a){if((p.$options=a)&&a.getterSetter){var b=e(d.ngModel+"()"),f=e(d.ngModel+"($$$p)");t=function(a){var c=m(a);B(c)&&(c=b(a));return c};s=function(a, 264b){B(m(a))?f(a,{$$$p:p.$modelValue}):r(a,p.$modelValue)}}else if(!m.assign)throw mb("nonassign",d.ngModel,ua(c));};this.$render=z;this.$isEmpty=function(a){return q(a)||""===a||null===a||a!==a};var x=0;Kd({ctrl:this,$element:c,set:function(a,b){a[b]=!0},unset:function(a,b){delete a[b]},$animate:f});this.$setPristine=function(){p.$dirty=!1;p.$pristine=!0;f.removeClass(c,Lb);f.addClass(c,Wa)};this.$setDirty=function(){p.$dirty=!0;p.$pristine=!1;f.removeClass(c,Wa);f.addClass(c,Lb);p.$$parentForm.$setDirty()}; 265this.$setUntouched=function(){p.$touched=!1;p.$untouched=!0;f.setClass(c,"ng-untouched","ng-touched")};this.$setTouched=function(){p.$touched=!0;p.$untouched=!1;f.setClass(c,"ng-touched","ng-untouched")};this.$rollbackViewValue=function(){g.cancel(y);p.$viewValue=p.$$lastCommittedViewValue;p.$render()};this.$validate=function(){if(!Q(p.$modelValue)||!isNaN(p.$modelValue)){var a=p.$$rawModelValue,b=p.$valid,c=p.$modelValue,d=p.$options&&p.$options.allowInvalid;p.$$runValidators(a,p.$$lastCommittedViewValue, 266function(e){d||b===e||(p.$modelValue=e?a:w,p.$modelValue!==c&&p.$$writeModelToScope())})}};this.$$runValidators=function(a,b,c){function d(){var c=!0;n(p.$validators,function(d,e){var g=d(a,b);c=c&&g;f(e,g)});return c?!0:(n(p.$asyncValidators,function(a,b){f(b,null)}),!1)}function e(){var c=[],d=!0;n(p.$asyncValidators,function(e,g){var h=e(a,b);if(!h||!B(h.then))throw mb("nopromise",h);f(g,w);c.push(h.then(function(){f(g,!0)},function(a){d=!1;f(g,!1)}))});c.length?k.all(c).then(function(){g(d)}, 267z):g(!0)}function f(a,b){h===x&&p.$setValidity(a,b)}
vendor: 8,956 bytes, lines 267-284
267function g(a){h===x&&c(a)}x++;var h=x;(function(){var a=p.$$parserName||"parse";if(q(A))f(a,null);else return A||(n(p.$validators,function(a,b){f(b,null)}),n(p.$asyncValidators,function(a,b){f(b,null)})),f(a,A),A;return!0})()?d()?e():g(!1):g(!1)};this.$commitViewValue=function(){var a=p.$viewValue;g.cancel(y);if(p.$$lastCommittedViewValue!==a||""===a&&p.$$hasNativeValidators)p.$$lastCommittedViewValue=a,p.$pristine&&this.$setDirty(),this.$$parseAndValidate()}; 268this.$$parseAndValidate=function(){var b=p.$$lastCommittedViewValue;if(A=q(b)?w:!0)for(var c=0;c<p.$parsers.length;c++)if(b=p.$parsers[c](b),q(b)){A=!1;break}Q(p.$modelValue)&&isNaN(p.$modelValue)&&(p.$modelValue=t(a));var d=p.$modelValue,e=p.$options&&p.$options.allowInvalid;p.$$rawModelValue=b;e&&(p.$modelValue=b,p.$modelValue!==d&&p.$$writeModelToScope());p.$$runValidators(b,p.$$lastCommittedViewValue,function(a){e||(p.$modelValue=a?b:w,p.$modelValue!==d&&p.$$writeModelToScope())})};this.$$writeModelToScope= 269function(){s(a,p.$modelValue);n(p.$viewChangeListeners,function(a){try{a()}catch(c){b(c)}})};this.$setViewValue=function(a,b){p.$viewValue=a;p.$options&&!p.$options.updateOnDefault||p.$$debounceViewValueCommit(b)};this.$$debounceViewValueCommit=function(b){var c=0,d=p.$options;d&&u(d.debounce)&&(d=d.debounce,Q(d)?c=d:Q(d[b])?c=d[b]:Q(d["default"])&&(c=d["default"]));g.cancel(y);c?y=g(function(){p.$commitViewValue()},c):h.$$phase?p.$commitViewValue():a.$apply(function(){p.$commitViewValue()})};a.$watch(function(){var b= 270t(a);if(b!==p.$modelValue&&(p.$modelValue===p.$modelValue||b===b)){p.$modelValue=p.$$rawModelValue=b;A=w;for(var c=p.$formatters,d=c.length,e=b;d--;)e=c[d](e);p.$viewValue!==e&&(p.$viewValue=p.$$lastCommittedViewValue=e,p.$render(),p.$$runValidators(b,e,z))}return b})}],Oe=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Fg,priority:1,compile:function(b){b.addClass(Wa).addClass("ng-untouched").addClass(nb);return{pre:function(a,b,e,f){var g= 271f[0];b=f[1]||g.$$parentForm;g.$$setOptions(f[2]&&f[2].$options);b.$addControl(g);e.$observe("name",function(a){g.$name!==a&&g.$$parentForm.$$renameControl(g,a)});a.$on("$destroy",function(){g.$$parentForm.$removeControl(g)})},post:function(b,c,e,f){var g=f[0];if(g.$options&&g.$options.updateOn)c.on(g.$options.updateOn,function(a){g.$$debounceViewValueCommit(a&&a.type)});c.on("blur",function(c){g.$touched||(a.$$phase?b.$evalAsync(g.$setTouched):b.$apply(g.$setTouched))})}}}}}],Gg=/(\s+|^)default(\s+|$)/, 272Se=function(){return{restrict:"A",controller:["$scope","$attrs",function(a,b){var d=this;this.$options=Ma(a.$eval(b.ngModelOptions));u(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=T(this.$options.updateOn.replace(Gg,function(){d.$options.updateOnDefault=!0;return" "}))):this.$options.updateOnDefault=!0}]}},Ee=Ka({terminal:!0,priority:1E3}),Hg=M("ngOptions"),Ig=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/, 273Me=["$compile","$parse",function(a,b){function d(a,c,d){function e(a,b,c,d,f){this.selectValue=a;this.viewValue=b;this.label=c;this.group=d;this.disabled=f}function l(a){var b;if(!q&&Aa(a))b=a;else{b=[];for(var c in a)a.hasOwnProperty(c)&&"$"!==c.charAt(0)&&b.push(c)}return b}var m=a.match(Ig);if(!m)throw Hg("iexp",a,ua(c));var n=m[5]||m[7],q=m[6];a=/ as /.test(m[0])&&m[1];var s=m[9];c=b(m[2]?m[1]:n);var y=a&&b(a)||c,u=s&&b(s),p=s?function(a,b){return u(d,b)}:function(a){return Da(a)},x=function(a, 274b){return p(a,D(a,b))},v=b(m[2]||m[1]),w=b(m[3]||""),H=b(m[4]||""),A=b(m[8]),z={},D=q?function(a,b){z[q]=b;z[n]=a;return z}:function(a){z[n]=a;return z};return{trackBy:s,getTrackByValue:x,getWatchables:b(A,function(a){var b=[];a=a||[];for(var c=l(a),e=c.length,f=0;f<e;f++){var g=a===c?f:c[f],k=D(a[g],g),g=p(a[g],k);b.push(g);if(m[2]||m[1])g=v(d,k),b.push(g);m[4]&&(k=H(d,k),b.push(k))}return b}),getOptions:function(){for(var a=[],b={},c=A(d)||[],f=l(c),g=f.length,m=0;m<g;m++){var n=c===f?m:f[m],r= 275D(c[n],n),q=y(d,r),n=p(q,r),t=v(d,r),u=w(d,r),r=H(d,r),q=new e(n,q,t,u,r);a.push(q);b[n]=q}return{items:a,selectValueMap:b,getOptionFromViewValue:function(a){return b[x(a)]},getViewValueFromOption:function(a){return s?$.copy(a.viewValue):a.viewValue}}}}}var c=W.createElement("option"),e=W.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:{pre:function(a,b,c,d){d[0].registerOption=z},post:function(b,g,h,k){function l(a,b){a.element=b;b.disabled=a.disabled; 276a.label!==b.label&&(b.label=a.label,b.textContent=a.label);a.value!==b.value&&(b.value=a.selectValue)}function m(a,b,c,d){b&&K(b.nodeName)===c?c=b:(c=d.cloneNode(!1),b?a.insertBefore(c,b):a.appendChild(c));return c}function r(a){for(var b;a;)b=a.nextSibling,Zb(a),a=b}function q(a){var b=x&&x[0],c=z&&z[0];if(b||c)for(;a&&(a===b||a===c||8===a.nodeType||"option"===oa(a)&&""===a.value);)a=a.nextSibling;return a}function s(){var a=B&&u.readValue();B=D.getOptions();var b={},d=g[0].firstChild;H&&g.prepend(x); 277d=q(d);B.items.forEach(function(a){var f,h;a.group?(f=b[a.group],f||(f=m(g[0],d,"optgroup",e),d=f.nextSibling,f.label=a.group,f=b[a.group]={groupElement:f,currentOptionElement:f.firstChild}),h=m(f.groupElement,f.currentOptionElement,"option",c),l(a,h),f.currentOptionElement=h.nextSibling):(h=m(g[0],d,"option",c),l(a,h),d=h.nextSibling)});Object.keys(b).forEach(function(a){r(b[a].currentOptionElement)});r(d);y.$render();if(!y.$isEmpty(a)){var f=u.readValue();(D.trackBy||p?ka(a,f):a===f)||(y.$setViewValue(f), 278y.$render())}}var y=k[1];if(y){var u=k[0],p=h.multiple,x;k=0;for(var v=g.children(),w=v.length;k<w;k++)if(""===v[k].value){x=v.eq(k);break}var H=!!x,z=A(c.cloneNode(!1));z.val("?");var B,D=d(h.ngOptions,g,b);p?(y.$isEmpty=function(a){return!a||0===a.length},u.writeValue=function(a){B.items.forEach(function(a){a.element.selected=!1});a&&a.forEach(function(a){(a=B.getOptionFromViewValue(a))&&!a.disabled&&(a.element.selected=!0)})},u.readValue=function(){var a=g.val()||[],b=[];n(a,function(a){(a=B.selectValueMap[a])&& 279!a.disabled&&b.push(B.getViewValueFromOption(a))});return b},D.trackBy&&b.$watchCollection(function(){if(E(y.$viewValue))return y.$viewValue.map(function(a){return D.getTrackByValue(a)})},function(){y.$render()})):(u.writeValue=function(a){var b=B.getOptionFromViewValue(a);b&&!b.disabled?g[0].value!==b.selectValue&&(z.remove(),H||x.remove(),g[0].value=b.selectValue,b.element.selected=!0,b.element.setAttribute("selected","selected")):null===a||H?(z.remove(),H||g.prepend(x),g.val(""),x.prop("selected", 280!0),x.attr("selected",!0)):(H||x.remove(),g.prepend(z),g.val("?"),z.prop("selected",!0),z.attr("selected",!0))},u.readValue=function(){var a=B.selectValueMap[g.val()];return a&&!a.disabled?(H||x.remove(),z.remove(),B.getViewValueFromOption(a)):null},D.trackBy&&b.$watch(function(){return D.getTrackByValue(y.$viewValue)},function(){y.$render()}));H?(x.remove(),a(x)(b),x.removeClass("ng-scope")):x=A(c.cloneNode(!1));s();b.$watchCollection(D.getWatchables,s)}}}}}],Fe=["$locale","$interpolate","$log", 281function(a,b,d){var c=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(f,g,h){function k(a){g.text(a||"")}var l=h.count,m=h.$attr.when&&g.attr(h.$attr.when),r=h.offset||0,t=f.$eval(m)||{},s={},u=b.startSymbol(),w=b.endSymbol(),p=u+l+"-"+r+w,x=$.noop,v;n(h,function(a,b){var c=e.exec(b);c&&(c=(c[1]?"-":"")+K(c[2]),t[c]=g.attr(h.$attr[b]))});n(t,function(a,d){s[d]=b(a.replace(c,p))});f.$watch(l,function(b){var c=parseFloat(b),e=isNaN(c);e||c in t||(c=a.pluralCat(c-r));c===v||e&&Q(v)&&isNaN(v)||(x(), 282e=s[c],q(e)?(null!=b&&d.debug("ngPluralize: no rule defined for '"+c+"' in "+m),x=z,k()):x=f.$watch(e,k),v=c)})}}}],Ge=["$parse","$animate",function(a,b){var d=M("ngRepeat"),c=function(a,b,c,d,k,l,m){a[c]=d;k&&(a[k]=l);a.$index=b;a.$first=0===b;a.$last=b===m-1;a.$middle=!(a.$first||a.$last);a.$odd=!(a.$even=0===(b&1))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1E3,terminal:!0,$$tlb:!0,compile:function(e,f){var g=f.ngRepeat,h=W.createComment(" end ngRepeat: "+g+" "),k=g.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/); 283if(!k)throw d("iexp",g);var l=k[1],m=k[2],r=k[3],q=k[4],k=l.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!k)throw d("iidexp",l);var s=k[3]||k[1],u=k[2];if(r&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(r)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(r)))throw d("badident",r);var z,p,x,v,B={$id:Da};q?z=a(q):(x=function(a,b){return Da(b)},v=function(a){return a});return function(a,e,f,k,l){z&&(p=function(b,c,d){u&&(B[u]=b);B[s]=c;B.$index= 284d;return z(a,B)});var q=ea();a.$watchCollection(m,function(f){var k,m,t=e[0],z,B=ea(),D,F,G,E,I,J,K;r&&(a[r]=f);if(Aa(f))I=f,m=p||x;
vendor: 8,632 bytes, lines 284-307
284else for(K in m=p||v,I=[],f)ra.call(f,K)&&"$"!==K.charAt(0)&&I.push(K);D=I.length;K=Array(D);for(k=0;k<D;k++)if(F=f===I?k:I[k],G=f[F],E=m(F,G,k),q[E])J=q[E],delete q[E],B[E]=J,K[k]=J;else{if(B[E])throw n(K,function(a){a&&a.scope&&(q[a.id]=a)}),d("dupes",g,E,G);K[k]={id:E,scope:w,clone:w};B[E]=!0}for(z in q){J=q[z];E=sb(J.clone);b.leave(E);if(E[0].parentNode)for(k=0,m= 285E.length;k<m;k++)E[k].$$NG_REMOVED=!0;J.scope.$destroy()}for(k=0;k<D;k++)if(F=f===I?k:I[k],G=f[F],J=K[k],J.scope){z=t;do z=z.nextSibling;while(z&&z.$$NG_REMOVED);J.clone[0]!=z&&b.move(sb(J.clone),null,A(t));t=J.clone[J.clone.length-1];c(J.scope,k,s,G,u,F,D)}else l(function(a,d){J.scope=d;var e=h.cloneNode(!1);a[a.length++]=e;b.enter(a,null,A(t));t=e;J.clone=a;B[J.id]=J;c(J.scope,k,s,G,u,F,D)});q=B})}}}}],He=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,d,c){b.$watch(c.ngShow, 286function(b){a[b?"removeClass":"addClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Ae=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,d,c){b.$watch(c.ngHide,function(b){a[b?"addClass":"removeClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Ie=Ka(function(a,b,d){a.$watch(d.ngStyle,function(a,d){d&&a!==d&&n(d,function(a,c){b.css(c,"")});a&&b.css(a)},!0)}),Je=["$animate",function(a){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}], 287link:function(b,d,c,e){var f=[],g=[],h=[],k=[],l=function(a,b){return function(){a.splice(b,1)}};b.$watch(c.ngSwitch||c.on,function(b){var c,d;c=0;for(d=h.length;c<d;++c)a.cancel(h[c]);c=h.length=0;for(d=k.length;c<d;++c){var q=sb(g[c].clone);k[c].$destroy();(h[c]=a.leave(q)).then(l(h,c))}g.length=0;k.length=0;(f=e.cases["!"+b]||e.cases["?"])&&n(f,function(b){b.transclude(function(c,d){k.push(d);var e=b.element;c[c.length++]=W.createComment(" end ngSwitchWhen: ");g.push({clone:c});a.enter(c,e.parent(), 288e)})})})}}}],Ke=Ka({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,d,c,e){c.cases["!"+d.ngSwitchWhen]=c.cases["!"+d.ngSwitchWhen]||[];c.cases["!"+d.ngSwitchWhen].push({transclude:e,element:b})}}),Le=Ka({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,d,c,e){c.cases["?"]=c.cases["?"]||[];c.cases["?"].push({transclude:e,element:b})}}),Ne=Ka({restrict:"EAC",link:function(a,b,d,c,e){if(!e)throw M("ngTransclude")("orphan", 289ua(b));e(function(a){b.empty();b.append(a)})}}),ne=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(b,d){"text/ng-template"==d.type&&a.put(d.id,b[0].text)}}}],Jg={$setViewValue:z,$render:z},Kg=["$element","$scope","$attrs",function(a,b,d){var c=this,e=new Sa;c.ngModelCtrl=Jg;c.unknownOption=A(W.createElement("option"));c.renderUnknownOption=function(b){b="? "+Da(b)+" ?";c.unknownOption.val(b);a.prepend(c.unknownOption);a.val(b)};b.$on("$destroy",function(){c.renderUnknownOption= 290z});c.removeUnknownOption=function(){c.unknownOption.parent()&&c.unknownOption.remove()};c.readValue=function(){c.removeUnknownOption();return a.val()};c.writeValue=function(b){c.hasOption(b)?(c.removeUnknownOption(),a.val(b),""===b&&c.emptyOption.prop("selected",!0)):null==b&&c.emptyOption?(c.removeUnknownOption(),a.val("")):c.renderUnknownOption(b)};c.addOption=function(a,b){Ra(a,'"option value"');""===a&&(c.emptyOption=b);var d=e.get(a)||0;e.put(a,d+1);c.ngModelCtrl.$render();b[0].hasAttribute("selected")&& 291(b[0].selected=!0)};c.removeOption=function(a){var b=e.get(a);b&&(1===b?(e.remove(a),""===a&&(c.emptyOption=w)):e.put(a,b-1))};c.hasOption=function(a){return!!e.get(a)};c.registerOption=function(a,b,d,e,l){if(e){var m;d.$observe("value",function(a){u(m)&&c.removeOption(m);m=a;c.addOption(a,b)})}else l?a.$watch(l,function(a,e){d.$set("value",a);e!==a&&c.removeOption(e);c.addOption(a,b)}):c.addOption(d.value,b);b.on("$destroy",function(){c.removeOption(d.value);c.ngModelCtrl.$render()})}}],oe=function(){return{restrict:"E", 292require:["select","?ngModel"],controller:Kg,priority:1,link:{pre:function(a,b,d,c){var e=c[1];if(e){var f=c[0];f.ngModelCtrl=e;b.on("change",function(){a.$apply(function(){e.$setViewValue(f.readValue())})});if(d.multiple){f.readValue=function(){var a=[];n(b.find("option"),function(b){b.selected&&a.push(b.value)});return a};f.writeValue=function(a){var c=new Sa(a);n(b.find("option"),function(a){a.selected=u(c.get(a.value))})};var g,h=NaN;a.$watch(function(){h!==e.$viewValue||ka(g,e.$viewValue)||(g= 293ha(e.$viewValue),e.$render());h=e.$viewValue});e.$isEmpty=function(a){return!a||0===a.length}}}},post:function(a,b,d,c){var e=c[1];if(e){var f=c[0];e.$render=function(){f.writeValue(e.$viewValue)}}}}}},qe=["$interpolate",function(a){return{restrict:"E",priority:100,compile:function(b,d){if(u(d.value))var c=a(d.value,!0);else{var e=a(b.text(),!0);e||d.$set("value",b.text())}return function(a,b,d){var k=b.parent();(k=k.data("$selectController")||k.parent().data("$selectController"))&&k.registerOption(a, 294b,d,c,e)}}}}],pe=na({restrict:"E",terminal:!1}),Gc=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){c&&(d.required=!0,c.$validators.required=function(a,b){return!d.required||!c.$isEmpty(b)},d.$observe("required",function(){c.$validate()}))}}},Fc=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var e,f=d.ngPattern||d.pattern;d.$observe("pattern",function(a){F(a)&&0<a.length&&(a=new RegExp("^"+a+"$"));if(a&&!a.test)throw M("ngPattern")("noregexp", 295f,a,ua(b));e=a||w;c.$validate()});c.$validators.pattern=function(a,b){return c.$isEmpty(b)||q(e)||e.test(b)}}}}},Ic=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var e=-1;d.$observe("maxlength",function(a){a=Z(a);e=isNaN(a)?-1:a;c.$validate()});c.$validators.maxlength=function(a,b){return 0>e||c.$isEmpty(b)||b.length<=e}}}}},Hc=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var e=0;d.$observe("minlength",function(a){e=Z(a)||0;c.$validate()}); 296c.$validators.minlength=function(a,b){return c.$isEmpty(b)||b.length>=e}}}}};S.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(ge(),ie($),$.module("ngLocale",[],["$provide",function(a){function b(a){a+="";var b=a.indexOf(".");return-1==b?0:a.length-b-1}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "), 297SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",", 298PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-\u00a4",negSuf:"",posPre:"\u00a4",posSuf:""}]},id:"en-us",pluralCat:function(a,c){var e=a|0,f=c;w===f&&(f=Math.min(b(a),3));Math.pow(10,f);return 1==e&&0==f?"one":"other"}})}]),A(W).ready(function(){ce(W,zc)}))})(window,document);!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'); 299//# sourceMappingURL=angular.min.js.map 300 301/* 302 AngularJS v1.4.9 303 (c) 2010-2015 Google, Inc. http://angularjs.org 304 License: MIT 305*/ 306(function(n,h,p){'use strict';function E(a){var f=[];r(f,h.noop).chars(a);return f.join("")}function g(a,f){var d={},c=a.split(","),b;for(b=0;b<c.length;b++)d[f?h.lowercase(c[b]):c[b]]=!0;return d}function F(a,f){function d(a,b,d,l){b=h.lowercase(b);if(s[b])for(;e.last()&&t[e.last()];)c("",e.last());u[b]&&e.last()==b&&c("",b);(l=v[b]||!!l)||e.push(b);var m={};d.replace(G,function(b,a,f,c,d){m[a]=q(f||c||d||"")});f.start&&f.start(b,m,l)}function c(b,a){var c=0,d;if(a=h.lowercase(a))for(c=e.length- 3071;0<=c&&e[c]!=a;c--);if(0<=c){for(d=e.length-1;d>=c;d--)f.end&&f.end(e[d]);e.length=c}}"string"!==typeof a&&(a=null===a||"undefined"===typeof a?"":""+a);var b,k,e=[],m=a,l;
vendor: 4,125 bytes, lines 307-313
307for(e.last=function(){return e[e.length-1]};a;){l="";k=!0;if(e.last()&&w[e.last()])a=a.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+e.last()+"[^>]*>","i"),function(a,b){b=b.replace(H,"$1").replace(I,"$1");f.chars&&f.chars(q(b));return""}),c("",e.last());else{if(0===a.indexOf("\x3c!--"))b=a.indexOf("--",4),0<=b&&a.lastIndexOf("--\x3e", 308b)===b&&(f.comment&&f.comment(a.substring(4,b)),a=a.substring(b+3),k=!1);else if(x.test(a)){if(b=a.match(x))a=a.replace(b[0],""),k=!1}else if(J.test(a)){if(b=a.match(y))a=a.substring(b[0].length),b[0].replace(y,c),k=!1}else K.test(a)&&((b=a.match(z))?(b[4]&&(a=a.substring(b[0].length),b[0].replace(z,d)),k=!1):(l+="<",a=a.substring(1)));k&&(b=a.indexOf("<"),l+=0>b?a:a.substring(0,b),a=0>b?"":a.substring(b),f.chars&&f.chars(q(l)))}if(a==m)throw L("badparse",a);m=a}c()}function q(a){if(!a)return"";A.innerHTML= 309a.replace(/</g,"<");return A.textContent}function B(a){return a.replace(/&/g,"&").replace(M,function(a){var d=a.charCodeAt(0);a=a.charCodeAt(1);return"&#"+(1024*(d-55296)+(a-56320)+65536)+";"}).replace(N,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function r(a,f){var d=!1,c=h.bind(a,a.push);return{start:function(a,k,e){a=h.lowercase(a);!d&&w[a]&&(d=a);d||!0!==C[a]||(c("<"),c(a),h.forEach(k,function(d,e){var k=h.lowercase(e),g="img"===a&&"src"===k|| 310"background"===k;!0!==O[k]||!0===D[k]&&!f(d,g)||(c(" "),c(e),c('="'),c(B(d)),c('"'))}),c(e?"/>":">"))},end:function(a){a=h.lowercase(a);d||!0!==C[a]||(c("</"),c(a),c(">"));a==d&&(d=!1)},chars:function(a){d||c(B(a))}}}var L=h.$$minErr("$sanitize"),z=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,y=/^<\/\s*([\w:-]+)[^>]*>/,G=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,K=/^</,J=/^<\//,H=/\x3c!--(.*?)--\x3e/g,x=/<!DOCTYPE([^>]*?)>/i, 311I=/<!\[CDATA\[(.*?)]]\x3e/g,M=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,N=/([^\#-~| |!])/g,v=g("area,br,col,hr,img,wbr");n=g("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr");p=g("rp,rt");var u=h.extend({},p,n),s=h.extend({},n,g("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),t=h.extend({},p,g("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")); 312n=g("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use");var w=g("script,style"),C=h.extend({},v,s,t,u,n),D=g("background,cite,href,longdesc,src,usemap,xlink:href");n=g("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"); 313p=g("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode
313-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan", 314!0);var O=h.extend({},D,p,n),A=document.createElement("pre");h.module("ngSanitize",[]).provider("$sanitize",function(){this.$get=["$$sanitizeUri",function(a){return function(f){var d=[];F(f,r(d,function(c,b){return!/^unsafe/.test(a(c,b))}));return d.join("")}}]});h.module("ngSanitize").filter("linky",["$sanitize",function(a){var f=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,d=/^mailto:/i;return function(c,b){function k(a){a&&g.push(E(a))}function e(a, 315c){g.push("<a ");h.isDefined(b)&&g.push('target="',b,'" ');g.push('href="',a.replace(/"/g,"""),'">');k(c);g.push("</a>")}if(!c)return c;for(var m,l=c,g=[],n,p;m=l.match(f);)n=m[0],m[2]||m[4]||(n=(m[3]?"http://":"mailto:")+n),p=m.index,k(l.substr(0,p)),e(n,m[0].replace(d,"")),l=l.substring(p+m[0].length);k(l);return a(g.join(""))}}])})(window,window.angular); 316//# sourceMappingURL=angular-sanitize.min.js.map 317 318// OpenLayers 3. See http://openlayers.org/ 319// License: https://raw.githubusercontent.com/openlayers/ol3/master/LICENSE.md 320// Version: v3.8.2-79-gff01bba 321 322(function (root, factory) { 323 if (typeof exports === "object") { 324 module.exports = factory(); 325 } else if (typeof define === "function" && define.amd) { 326 define([], factory); 327 } else { 328 root.ol = factory(); 329 } 330}(this, function () { 331 var OPENLAYERS = {}; 332 var l,aa=aa||{},ba=this;function m(a){return void 0!==a}function u(a,c,d){a=a.split(".");d=d||ba;a[0]in d||!d.execScript||d.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)!a.length&&m(c)?d[e]=c:d[e]?d=d[e]:d=d[e]={}}function ca(){}function da(a){a.Na=function(){return a.hg?a.hg:a.hg=new a}} 333function ea(a){var c=typeof a;if("object"==c)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return c;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; 334else if("function"==c&&"undefined"==typeof a.call)return"object";return c}function fa(a){return null===a}function ga(a){return"array"==ea(a)}function ha(a){var c=ea(a);return"array"==c||"object"==c&&"number"==typeof a.length}function ia(a){return"string"==typeof a}function ja(a){return"number"==typeof a}function ka(a){return"function"==ea(a)}function la(a){var c=typeof a;return"object"==c&&null!=a||"function"==c}function ma(a){return a[na]||(a[na]=++oa)} 335var na="closure_uid_"+(1E9*Math.random()>>>0),oa=0;function pa(a,c,d){return a.call.apply(a.bind,arguments)}function qa(a,c,d){if(!a)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,e);return a.apply(c,d)}}return function(){return a.apply(c,arguments)}} 336function ra(a,c,d){ra=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?pa:qa;return ra.apply(null,arguments)}function sa(a,c){var d=Array.prototype.slice.call(arguments,1);return function(){var c=d.slice();c.push.apply(c,arguments);return a.apply(this,c)}}var ta=Date.now||function(){return+new Date}; 337function w(a,c){function d(){}d.prototype=c.prototype;a.aa=c.prototype;a.prototype=new d;a.prototype.constructor=a;a.yo=function(a,d,g){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return c.prototype[d].apply(a,h)}};var ua,va;function xa(a){if(Error.captureStackTrace)Error.captureStackTrace(this,xa);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a))}w(xa,Error);xa.prototype.name="CustomError";var ya;function za(a,c){var d=a.length-c.length;return 0<=d&&a.indexOf(c,d)==d}function Aa(a,c){for(var d=a.split("%s"),e="",f=Array.prototype.slice.call(arguments,1
337);f.length&&1<d.length;)e+=d.shift()+f.shift();return e+d.join("%s")}var Ba=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}; 338function Ca(a){if(!Ea.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Fa,"&"));-1!=a.indexOf("<")&&(a=a.replace(Ga,"<"));-1!=a.indexOf(">")&&(a=a.replace(Ha,">"));-1!=a.indexOf('"')&&(a=a.replace(Ia,"""));-1!=a.indexOf("'")&&(a=a.replace(Ka,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(La,"�"));return a}var Fa=/&/g,Ga=/</g,Ha=/>/g,Ia=/"/g,Ka=/'/g,La=/\x00/g,Ea=/[\x00&<>"']/; 339function Ma(a){a=m(void 0)?a.toFixed(void 0):String(a);var c=a.indexOf(".");-1==c&&(c=a.length);c=Math.max(0,2-c);return Array(c+1).join("0")+a} 340function Na(a,c){for(var d=0,e=Ba(String(a)).split("."),f=Ba(String(c)).split("."),g=Math.max(e.length,f.length),h=0;0==d&&h<g;h++){var k=e[h]||"",n=f[h]||"",p=RegExp("(\\d*)(\\D*)","g"),q=RegExp("(\\d*)(\\D*)","g");do{var r=p.exec(k)||["","",""],t=q.exec(n)||["","",""];if(0==r[0].length&&0==t[0].length)break;d=Oa(0==r[1].length?0:parseInt(r[1],10),0==t[1].length?0:parseInt(t[1],10))||Oa(0==r[2].length,0==t[2].length)||Oa(r[2],t[2])}while(0==d)}return d}function Oa(a,c){return a<c?-1:a>c?1:0};var Qa=Array.prototype;function Ra(a,c){return Qa.indexOf.call(a,c,void 0)}function Sa(a,c,d){Qa.forEach.call(a,c,d)}function Ta(a,c){return Qa.filter.call(a,c,void 0)}function Ua(a,c,d){return Qa.map.call(a,c,d)}function Va(a,c){return Qa.some.call(a,c,void 0)}function Wa(a,c){var d=Xa(a,c,void 0);return 0>d?null:ia(a)?a.charAt(d):a[d]}function Xa(a,c,d){for(var e=a.length,f=ia(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,a))return g;return-1}function Ya(a,c){return 0<=Ra(a,c)} 341function $a(a,c){var d=Ra(a,c),e;(e=0<=d)&&Qa.splice.call(a,d,1);return e}function ab(a){return Qa.concat.apply(Qa,arguments)}function bb(a){var c=a.length;if(0<c){for(var d=Array(c),e=0;e<c;e++)d[e]=a[e];return d}return[]}function cb(a,c){for(var d=1;d<arguments.length;d++){var e=arguments[d];if(ha(e)){var f=a.length||0,g=e.length||0;a.length=f+g;for(var h=0;h<g;h++)a[f+h]=e[h]}else a.push(e)}}function db(a,c,d,e){Qa.splice.apply(a,fb(arguments,1))} 342function fb(a,c,d){return 2>=arguments.length?Qa.slice.call(a,c):Qa.slice.call(a,c,d)}function gb(a,c){a.sort(c||hb)}function ib(a,c){if(!ha(a)||!ha(c)||a.length!=c.length)return!1;for(var d=a.length,e=jb,f=0;f<d;f++)if(!e(a[f],c[f]))return!1;return!0}function hb(a,c){return a>c?1:a<c?-1:0}function jb(a,c){return a===c} 343function kb(a){for(var c=[],d=0;d<arguments.length;d++){var e=arguments[d];if(ga(e))for(var f=0;f<e.length;f+=8192)for(var g=kb.apply(null,fb(e,f,f+8192)),h=0;h<g.length;h++)c.push(g[h]);else c.push(e)}return c};var lb;a:{var mb=ba.navigator;if(mb){var nb=mb.userAgent;if(nb){lb=nb;break a}}lb=""}function ob(a){return-1!=lb.indexOf(a)};function pb(a,c,d){for(var e in a)c.call(d,a[e],e,a)}function qb(a,c){for(var d in a)if(c.call(void 0,a[d],d,a))return!0;return!1}function rb(a){var c=0,d;for(d in a)c++;return c}function sb(a){var c=[],d=0,e;for(e in a)c[d++]=a[e];return c}function tb(a){var c=[],d=0,e;for(e in a)c[d++]=e;return c}function ub(a,c){return c in a}function vb(a,c){for(var d in a)if(a[d]==c)return!0;return!1}function wb(a,c){for(var d in a)if(c.call(void 0,a[d],d,a))return d} 344function xb(a){for(var c in a)return!1;return!0}function yb(a){for(var c in a)delete a[c]}function zb(a,c){c in a&&delete a[c]}function Ab(a,c,d){return c in a?a[c]:d}function Bb(a,c){var d=[];return c in a?a[c]:a[c]=d}function Cb(a){var c={},d;for(d in a)c[d]=a[d];return c}function Db(a){var c=ea(a);if("object"==c||"array"==c){if(a.clone)return a.clone();var c="array"==c?[]:{},d;for(d in a)c[d]=Db(a[d]);return c}return a}var Fb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); 345function Gb(a,c){for(var d,e,f=1;f<arguments.length;f++){e=arguments[f];for(d in e)a[d]=e[d];for(var g=0;g<Fb.length;g++)d=Fb[g],Object.prototype.hasOwnProperty.call(e,d)&&(a[d]=e[d])}};var Hb=ob("Opera")||ob("OPR"),Ib=ob("Trident")||ob("MSIE"),Jb=ob("Edge"),Kb=ob("Gecko")&&!(-1!=lb.toLowerCase().indexOf("webkit")&&!ob("Edge"))&&!(ob("Trident")||ob("MSIE"))&&!ob
345("Edge"),Lb=-1!=lb.toLowerCase().indexOf("webkit")&&!ob("Edge"),Mb=ob("Macintosh"),Nb=ob("Windows"),Ob=ob("Linux")||ob("CrOS");function Pb(){var a=lb;if(Kb)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Jb)return/Edge\/([\d\.]+)/.exec(a);if(Ib)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Lb)return/WebKit\/(\S+)/.exec(a)} 346function Qb(){var a=ba.document;return a?a.documentMode:void 0}var Rb=function(){if(Hb&&ba.opera){var a=ba.opera.version;return ka(a)?a():a}var a="",c=Pb();c&&(a=c?c[1]:"");return Ib&&(c=Qb(),c>parseFloat(a))?String(c):a}(),Sb={};function Tb(a){return Sb[a]||(Sb[a]=0<=Na(Rb,a))}var Ub=ba.document,Vb=Ub&&Ib?Qb()||("CSS1Compat"==Ub.compatMode?parseInt(Rb,10):5):void 0;var Wb=Ib&&!Tb("9.0")&&""!==Rb;function Xb(a,c,d){return Math.min(Math.max(a,c),d)}function Yb(a,c){var d=a%c;return 0>d*c?d+c:d}function Zb(a,c,d){return a+d*(c-a)}function $b(a){return a*Math.PI/180};function ac(a){return function(c){if(m(c))return[Xb(c[0],a[0],a[2]),Xb(c[1],a[1],a[3])]}}function bc(a){return a};function cc(a,c,d){var e=a.length;if(a[0]<=c)return 0;if(!(c<=a[e-1]))if(0<d)for(d=1;d<e;++d){if(a[d]<c)return d-1}else if(0>d)for(d=1;d<e;++d){if(a[d]<=c)return d}else for(d=1;d<e;++d){if(a[d]==c)return d;if(a[d]<c)return a[d-1]-c<c-a[d]?d-1:d}return e-1};function dc(a){return function(c,d,e){if(m(c))return c=cc(a,c,e),c=Xb(c+d,0,a.length-1),a[c]}}function ec(a,c,d){return function(e,f,g){if(m(e))return g=0<g?0:0>g?1:.5,e=Math.floor(Math.log(c/e)/Math.log(a)+g),f=Math.max(e+f,0),m(d)&&(f=Math.min(f,d)),c/Math.pow(a,f)}};function fc(a){if(m(a))return 0}function gc(a,c){if(m(a))return a+c}function hc(a){var c=2*Math.PI/a;return function(a,e){if(m(a))return a=Math.floor((a+e)/c+.5)*c}}function ic(){var a=$b(5);return function(c,d){if(m(c))return Math.abs(c+d)<=a?0:c+d}};function jc(a,c,d){this.center=a;this.resolution=c;this.rotation=d};var kc=!Ib||9<=Vb,lc=!Ib||9<=Vb,mc=Ib&&!Tb("9");!Lb||Tb("528");Kb&&Tb("1.9b")||Ib&&Tb("8")||Hb&&Tb("9.5")||Lb&&Tb("528");Kb&&!Tb("8")||Ib&&Tb("9");function oc(){0!=pc&&(qc[ma(this)]=this);this.ea=this.ea;this.ja=this.ja}var pc=0,qc={};oc.prototype.ea=!1;oc.prototype.Yc=function(){if(!this.ea&&(this.ea=!0,this.Y(),0!=pc)){var a=ma(this);delete qc[a]}};function rc(a,c){var d=sa(sc,c);a.ea?d.call(void 0):(a.ja||(a.ja=[]),a.ja.push(m(void 0)?ra(d,void 0):d))}oc.prototype.Y=function(){if(this.ja)for(;this.ja.length;)this.ja.shift()()};function sc(a){a&&"function"==typeof a.Yc&&a.Yc()};function tc(a,c){this.type=a;this.i=this.target=c;this.j=!1;this.eh=!0}tc.prototype.c=function(){this.j=!0};tc.prototype.preventDefault=function(){this.eh=!1};function uc(a){a.c()}function vc(a){a.preventDefault()};var wc=Ib?"focusout":"DOMFocusOut";function xc(a){xc[" "](a);return a}xc[" "]=ca;function yc(a,c){tc.call(this,a?a.type:"");this.relatedTarget=this.i=this.target=null;this.v=this.g=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.u=this.f=this.a=this.C=!1;this.state=null;this.l=!1;this.b=null;if(a){var d=this.type=a.type,e=a.changedTouches?a.changedTouches[0]:null;this.target=null===e?a.target||a.srcElement:e.target;this.i=c;var f=a.relatedTarget;if(f){if(Kb){var g;a:{try{xc(f.nodeName);g=!0;break a}catch(h){}g=!1}g||(f=null)}}else"mouseover"== 347d?f=a.fromElement:"mouseout"==d&&(f=a.toElement);this.relatedTarget=f;null===e?(this.offsetX=Lb||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=Lb||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0);this.button= 348a.button;this.g=a.keyCode||0;this.v=a.charCode||("keypress"==d?a.keyCode:0);this.C=a.ctrlKey;this.a=a.altKey;this.f=a.shiftKey;this.u=a.metaKey;this.l=Mb?a.metaKey:a.ctrlKey;this.state=a.state;this.b=a;a.defaultPrevented&&this.preventDefault()}}w(yc,tc);var zc=[1,4,2];function Ac(a){return(kc?0==a.b.button:"click"==a.type?!0:!!(a.b.button&zc[0]))&&!(Lb&&Mb&&a.C)}yc.prototype.c=function(){yc.aa.c.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0}; 349yc.prototype.preventDefault=function(){yc.aa.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();
349else if(a.returnValue=!1,mc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(c){}};var Bc="closure_listenable_"+(1E6*Math.random()|0);function Cc(a){return!(!a||!a[Bc])}var Dc=0;function Ec(a,c,d,e,f){this.listener=a;this.b=null;this.src=c;this.type=d;this.Rc=!!e;this.Qd=f;this.key=++Dc;this.Hc=this.xd=!1}function Fc(a){a.Hc=!0;a.listener=null;a.b=null;a.src=null;a.Qd=null};function Gc(a){this.src=a;this.b={};this.a=0}Gc.prototype.add=function(a,c,d,e,f){var g=a.toString();a=this.b[g];a||(a=this.b[g]=[],this.a++);var h=Hc(a,c,e,f);-1<h?(c=a[h],d||(c.xd=!1)):(c=new Ec(c,this.src,g,!!e,f),c.xd=d,a.push(c));return c};Gc.prototype.remove=function(a,c,d,e){a=a.toString();if(!(a in this.b))return!1;var f=this.b[a];c=Hc(f,c,d,e);return-1<c?(Fc(f[c]),Qa.splice.call(f,c,1),0==f.length&&(delete this.b[a],this.a--),!0):!1}; 350function Ic(a,c){var d=c.type;if(!(d in a.b))return!1;var e=$a(a.b[d],c);e&&(Fc(c),0==a.b[d].length&&(delete a.b[d],a.a--));return e}function Kc(a,c,d,e,f){a=a.b[c.toString()];c=-1;a&&(c=Hc(a,d,e,f));return-1<c?a[c]:null}function Lc(a,c,d){var e=m(c),f=e?c.toString():"",g=m(d);return qb(a.b,function(a){for(var c=0;c<a.length;++c)if(!(e&&a[c].type!=f||g&&a[c].Rc!=d))return!0;return!1})} 351function Hc(a,c,d,e){for(var f=0;f<a.length;++f){var g=a[f];if(!g.Hc&&g.listener==c&&g.Rc==!!d&&g.Qd==e)return f}return-1};var Mc="closure_lm_"+(1E6*Math.random()|0),Nc={},Oc=0;function x(a,c,d,e,f){if(ga(c)){for(var g=0;g<c.length;g++)x(a,c[g],d,e,f);return null}d=Pc(d);return Cc(a)?a.Pa(c,d,e,f):Qc(a,c,d,!1,e,f)} 352function Qc(a,c,d,e,f,g){if(!c)throw Error("Invalid event type");var h=!!f,k=Rc(a);k||(a[Mc]=k=new Gc(a));d=k.add(c,d,e,f,g);if(d.b)return d;e=Sc();d.b=e;e.src=a;e.listener=d;if(a.addEventListener)a.addEventListener(c.toString(),e,h);else if(a.attachEvent)a.attachEvent(Tc(c.toString()),e);else throw Error("addEventListener and attachEvent are unavailable.");Oc++;return d} 353function Sc(){var a=Uc,c=lc?function(d){return a.call(c.src,c.listener,d)}:function(d){d=a.call(c.src,c.listener,d);if(!d)return d};return c}function Vc(a,c,d,e,f){if(ga(c)){for(var g=0;g<c.length;g++)Vc(a,c[g],d,e,f);return null}d=Pc(d);return Cc(a)?a.fb.add(String(c),d,!0,e,f):Qc(a,c,d,!0,e,f)}function Wc(a,c,d,e,f){if(ga(c))for(var g=0;g<c.length;g++)Wc(a,c[g],d,e,f);else d=Pc(d),Cc(a)?a.zf(c,d,e,f):a&&(a=Rc(a))&&(c=Kc(a,c,d,!!e,f))&&Xc(c)} 354function Xc(a){if(ja(a)||!a||a.Hc)return!1;var c=a.src;if(Cc(c))return Ic(c.fb,a);var d=a.type,e=a.b;c.removeEventListener?c.removeEventListener(d,e,a.Rc):c.detachEvent&&c.detachEvent(Tc(d),e);Oc--;(d=Rc(c))?(Ic(d,a),0==d.a&&(d.src=null,c[Mc]=null)):Fc(a);return!0}function Tc(a){return a in Nc?Nc[a]:Nc[a]="on"+a}function Yc(a,c,d,e){var f=!0;if(a=Rc(a))if(c=a.b[c.toString()])for(c=c.concat(),a=0;a<c.length;a++){var g=c[a];g&&g.Rc==d&&!g.Hc&&(g=Zc(g,e),f=f&&!1!==g)}return f} 355function Zc(a,c){var d=a.listener,e=a.Qd||a.src;a.xd&&Xc(a);return d.call(e,c)} 356function Uc(a,c){if(a.Hc)return!0;if(!lc){var d;if(!(d=c))a:{d=["window","event"];for(var e=ba,f;f=d.shift();)if(null!=e[f])e=e[f];else{d=null;break a}d=e}f=d;d=new yc(f,this);e=!0;if(!(0>f.keyCode||void 0!=f.returnValue)){a:{var g=!1;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(h){g=!0}if(g||void 0==f.returnValue)f.returnValue=!0}f=[];for(g=d.i;g;g=g.parentNode)f.push(g);for(var g=a.type,k=f.length-1;!d.j&&0<=k;k--){d.i=f[k];var n=Yc(f[k],g,!0,d),e=e&&n}for(k=0;!d.j&&k<f.length;k++)d.i=f[k],n= 357Yc(f[k],g,!1,d),e=e&&n}return e}return Zc(a,new yc(c,this))}function Rc(a){a=a[Mc];return a instanceof Gc?a:null}var $c="__closure_events_fn_"+(1E9*Math.random()>>>0);function Pc(a){if(ka(a))return a;a[$c]||(a[$c]=function(c){return a.handleEvent(c)});return a[$c]};function ad(){oc.call(this);this.fb=new Gc(this);this.qc=this;this.Ka=null}w(ad,oc);ad.prototype[Bc]=!0;l=ad.prototype;l.addEventListener=function(a,c,d,e){x(this,a,c,d,e)};l.removeEventListener=function(a,c,d,e){Wc(this,a,c,d,e)}; 358function C(a,c){var d,e=a.Ka;if(e)for(d=[];e;e=e.Ka)d.push(e);var e=a.qc,f=c,g=f.type||f;if(ia(f))f=new tc(f,e);else if(f instanceof tc)f.target=f.target||e;else{var h=f,f=new tc(g,e);Gb(f,h)}var h=!0,k;if(d)for(var n=d.length-1;!f.j&&0<=n;n--)k=f.i=d[n],h=bd(k,g,!0,f)&&h;f.j||(k=f.i=e,h=bd(k,g,!0,f)&&h,f.j||(h=bd(k,g,!1,f)&&h));if(d)for(n=0;!f.j&&n<d.length;n++)k=f.i=d[n],h=bd(k,g,!1,f)&&h;return h} 359l.Y=function(){ad.aa.Y.call(this);if(this.fb){var a=this.fb,c=0,d;for(d in a.b){for(var e=a.b[d],f=0;f<e.length;f++)++c,Fc(e[f]);delete a.b[d];a.a--}}this.Ka=null};l.Pa=function(a,c,d,e){return this.fb.add(String(a),c,!1,d,e)};l.zf=function(a,c,d,e){return this.fb.remove(String(a),c,d,e)}; 360function bd(a,c,d,e){c=a.fb.b[String(c)];if(!c)return!0;c=c.concat();for(var f=!0,g=0;g<c.length;++g){var h=c[g];if(h&&!h.Hc&&h.Rc==d){var k=h.listener,n=h.Qd||h.src;h.xd&&Ic(a.fb,h);f=!1!==k.call(n,e)&&f}}return f&&0!=e.eh}function cd(a,c,d){return Lc(a.fb,m(c)?String(c):void 0,d)};function dd(){ad.call(this);this.b=0}w(dd,ad);function ed(a){Xc(a)}l=dd.prototype;l.s=function(){++this.b;C(this,"change")};l.L=function(){return this.b};l.G=function(a,c,d){return x(this,a,c,!1,d)};l.M=function(a,c,d){return Vc(this,a,c,!1,d)};l.J=function(a,c,d){Wc(this,a,c,!1,d)};l.N=ed;function fd(a,c,d){tc.call(this,a);this.key=c;this.oldValue=d}w(fd,tc);function gd(a){dd.call(this);ma(this);this.C={};m(a)&&this.I(a)}w(gd,dd);var hd={};function id(a){return hd.hasOwnProperty(a)?hd[a]:hd[a]="change:"+a}l=gd.prototype;l.get=function(a){var c;this.C.hasOwnProperty(a)&&(c=this.C[a]);return c};l.O=function(){return tb(this.C)};l.P=function(){var a={},c;for(c in this.C)a[c]=this.C[c];return a};
360function jd(a,c,d){var e;e=id(c);C(a,new fd(e,c,d));C(a,new fd("propertychange",c,d))} 361l.set=function(a,c){var d=this.C[a];this.C[a]=c;jd(this,a,d)};l.I=function(a){for(var c in a)this.set(c,a[c])};l.S=function(a){if(a in this.C){var c=this.C[a];delete this.C[a];jd(this,a,c)}};function kd(a,c,d){m(d)||(d=[0,0]);d[0]=a[0]+2*c;d[1]=a[1]+2*c;return d}function ld(a,c,d){m(d)||(d=[0,0]);d[0]=a[0]*c+.5|0;d[1]=a[1]*c+.5|0;return d}function md(a,c){if(ga(a))return a;m(c)?(c[0]=a,c[1]=a):c=[a,a];return c};function nd(a,c){a[0]+=c[0];a[1]+=c[1];return a}function od(a,c){var d=a[0],e=a[1],f=c[0],g=c[1],h=f[0],f=f[1],k=g[0],g=g[1],n=k-h,p=g-f,d=0===n&&0===p?0:(n*(d-h)+p*(e-f))/(n*n+p*p||0);0>=d||(1<=d?(h=k,f=g):(h+=d*n,f+=d*p));return[h,f]}function pd(a,c){var d=Yb(a+180,360)-180,e=Math.abs(Math.round(3600*d));return Math.floor(e/3600)+"\u00b0 "+Ma(Math.floor(e/60%60))+"\u2032 "+Ma(Math.floor(e%60))+"\u2033 "+c.charAt(0>d?1:0)} 362function qd(a,c,d){return m(a)?c.replace("{x}",a[0].toFixed(d)).replace("{y}",a[1].toFixed(d)):""}function rd(a,c){for(var d=!0,e=a.length-1;0<=e;--e)if(a[e]!=c[e]){d=!1;break}return d}function sd(a,c){var d=Math.cos(c),e=Math.sin(c),f=a[1]*d+a[0]*e;a[0]=a[0]*d-a[1]*e;a[1]=f;return a}function td(a,c){var d=a[0]-c[0],e=a[1]-c[1];return d*d+e*e}function ud(a,c){return td(a,od(a,c))}function vd(a,c){return qd(a,"{x}, {y}",c)};function wd(a){this.length=a.length||a;for(var c=0;c<this.length;c++)this[c]=a[c]||0}wd.prototype.b=4;wd.prototype.set=function(a,c){c=c||0;for(var d=0;d<a.length&&c+d<this.length;d++)this[c+d]=a[d]};wd.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(wd.BYTES_PER_ELEMENT=4,wd.prototype.BYTES_PER_ELEMENT=wd.prototype.b,wd.prototype.set=wd.prototype.set,wd.prototype.toString=wd.prototype.toString,u("Float32Array",wd,void 0));function xd(a){this.length=a.length||a;for(var c=0;c<this.length;c++)this[c]=a[c]||0}xd.prototype.b=8;xd.prototype.set=function(a,c){c=c||0;for(var d=0;d<a.length&&c+d<this.length;d++)this[c+d]=a[d]};xd.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{xd.BYTES_PER_ELEMENT=8}catch(yd){}xd.prototype.BYTES_PER_ELEMENT=xd.prototype.b;xd.prototype.set=xd.prototype.set;xd.prototype.toString=xd.prototype.toString;u("Float64Array",xd,void 0)};function zd(a,c,d,e,f){a[0]=c;a[1]=d;a[2]=e;a[3]=f};function Ad(){var a=Array(16);Bd(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function Cd(){var a=Array(16);Bd(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function Bd(a,c,d,e,f,g,h,k,n,p,q,r,t,v,B,z,D){a[0]=c;a[1]=d;a[2]=e;a[3]=f;a[4]=g;a[5]=h;a[6]=k;a[7]=n;a[8]=p;a[9]=q;a[10]=r;a[11]=t;a[12]=v;a[13]=B;a[14]=z;a[15]=D} 363function Dd(a,c){a[0]=c[0];a[1]=c[1];a[2]=c[2];a[3]=c[3];a[4]=c[4];a[5]=c[5];a[6]=c[6];a[7]=c[7];a[8]=c[8];a[9]=c[9];a[10]=c[10];a[11]=c[11];a[12]=c[12];a[13]=c[13];a[14]=c[14];a[15]=c[15]}function Ed(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} 364function Fd(a,c,d){var e=a[0],f=a[1],g=a[2],h=a[3],k=a[4],n=a[5],p=a[6],q=a[7],r=a[8],t=a[9],v=a[10],B=a[11],z=a[12],D=a[13],A=a[14];a=a[15];var y=c[0],J=c[1],L=c[2],H=c[3],Q=c[4],wa=c[5],Pa=c[6],P=c[7],Da=c[8],eb=c[9],Ja=c[10],Eb=c[11],Za=c[12],Jc=c[13],nc=c[14];c=c[15];d[0]=e*y+k*J+r*L+z*H;d[1]=f*y+n*J+t*L+D*H;d[2]=g*y+p*J+v*L+A*H;d[3]=h*y+q*J+B*L+a*H;d[4]=e*Q+k*wa+r*Pa+z*P;d[5]=f*Q+n*wa+t*Pa+D*P;d[6]=g*Q+p*wa+v*Pa+A*P;d[7]=h*Q+q*wa+B*Pa+a*P;d[8]=e*Da+k*eb+r*Ja+z*Eb;d[9]=f*Da+n*eb+t*Ja+D*Eb;d[10]= 365g*Da+p*eb+v*Ja+A*Eb;d[11]=h*Da+q*eb+B*Ja+a*Eb;d[12]=e*Za+k*Jc+r*nc+z*c;d[13]=f*Za+n*Jc+t*nc+D*c;d[14]=g*Za+p*Jc+v*nc+A*c;d[15]=h*Za+q*Jc+B*nc+a*c} 366function Gd(a,c){var d=a[0],e=a[1],f=a[2],g=a[3],h=a[4],k=a[5],n=a[6],p=a[7],q=a[8],r=a[9],t=a[10],v=a[11],B=a[12],z=a[13],D=a[14],A=a[15],y=d*k-e*h,J=d*n-f*h,L=d*p-g*h,H=e*n-f*k,Q=e*p-g*k,wa=f*p-g*n,Pa=q*z-r*B,P=q*D-t*B,Da=q*A-v*B,eb=r*D-t*z,Ja=r*A-v*z,Eb=t*A-v*D,Za=y*Eb-J*Ja+L*eb+H*Da-Q*P+wa*Pa;0!=Za&&(Za=1/Za,c[0]=(k*Eb-n*Ja+p*eb)*Za,c[1]=(-e*Eb+f*Ja-g*eb)*Za,c[2]=(z*wa-D*Q+A*H)*Za,c[3]=(-r*wa+t*Q-v*H)*Za,c[4]=(-h*Eb+n*Da-p*P)*Za,c[5]=(d*Eb-f*Da+g*P)*Za,c[6]=(-B*wa+D*L-A*J)*Za,c[7]=(q*wa-t*L+v* 367J)*Za,c[8]=(h*Ja-k*Da+p*Pa)*Za,c[9]=(-d*Ja+e*Da-g*Pa)*Za,c[10]=(B*Q-z*L+A*y)*Za,c[11]=(-q*Q+r*L-v*y)*Za,c[12]=(-h*eb+k*P-n*Pa)*Za,c[13]=(d*eb-e*P+f*Pa)*Za,c[14]=(-B*H+z*J-D*y)*Za,c[15]=(q*H-r*J+t*y)*Za)}function Hd(a,c,d){var e=a[1]*c+a[5]*d+0*a[9]+a[13],f=a[2]*c+a[6]*d+0*a[10]+a[14],g=a[3]*c+a[7]*d+0*a[11]+a[15];a[12]=a[0]*c+a[4]*d+0*a[8]+a[12];a[13]=e;a[14]=f;a[15]=g} 368function Id(a,c,d){Bd(a,a[0]*c,a[1]*c,a[2]*c,a[3]*c,a[4]*d,a[5]*d,a[6]*d,a[7]*d,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}function Jd(a,c){var d=a[0],e=a[1],f=a[2],g=a[3],h=a[4],k=a[5],n=a[6],p=a[7],q=Math.cos(c),r=Math.sin(c);a[0]=d*q+h*r;a[1]=e*q+k*r;a[2]=f*q+n*r;a[3]=g*q+p*r;a[4]=d*-r+h*q;a[5]=e*-r+k*q;a[6]=f*-r+n*q;a[7]=g*-r+p*q}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function Kd(a){for(var c=Ld(),d=0,e=a.length;d<e;++d)Md(c,a[d]);return c}function Nd(a,c,d){var e=Math.min.apply(null,a),f=Math.min.apply(null,c);a=Math.max.apply(null,a);c=Math.max.apply(null,c);return Od(e,f,a,c,d)}function Pd(a,c,d){return m(d)?(d[0]=a[0]-c,d[1]=a[1]-c,d[2]=a[2]+c,d[3]=a[3]+c,d):[a[0]-c,a[1]-c,a[2]+c,a[3]+c]}function Qd(a,c){return m(c)?(c[0]=a[0],c[1]=a[1],c[2]=a[2],c[3]=a[3],c):a.slice()} 369function Rd(a,c,d){c=c<a[0]?a[0]-c:a[2]<c?c-a[2]:0;a=d<a[1]?a[1]-d:a[3]<d?d-a[3]:0;return c*c+a*a}
369function Sd(a,c){return Td(a,c[0],c[1])}function Ud(a,c){return a[0]<=c[0]&&c[2]<=a[2]&&a[1]<=c[1]&&c[3]<=a[3]}function Td(a,c,d){return a[0]<=c&&c<=a[2]&&a[1]<=d&&d<=a[3]}function Vd(a,c){var d=a[1],e=a[2],f=a[3],g=c[0],h=c[1],k=0;g<a[0]?k=k|16:g>e&&(k=k|4);h<d?k|=8:h>f&&(k|=2);0===k&&(k=1);return k}function Ld(){return[Infinity,Infinity,-Infinity,-Infinity]} 370function Od(a,c,d,e,f){return m(f)?(f[0]=a,f[1]=c,f[2]=d,f[3]=e,f):[a,c,d,e]}function Wd(a,c){var d=a[0],e=a[1];return Od(d,e,d,e,c)}function Xd(a,c){return a[0]==c[0]&&a[2]==c[2]&&a[1]==c[1]&&a[3]==c[3]}function Yd(a,c){c[0]<a[0]&&(a[0]=c[0]);c[2]>a[2]&&(a[2]=c[2]);c[1]<a[1]&&(a[1]=c[1]);c[3]>a[3]&&(a[3]=c[3]);return a}function Md(a,c){c[0]<a[0]&&(a[0]=c[0]);c[0]>a[2]&&(a[2]=c[0]);c[1]<a[1]&&(a[1]=c[1]);c[1]>a[3]&&(a[3]=c[1])} 371function Zd(a,c,d,e,f){for(;d<e;d+=f){var g=a,h=c[d],k=c[d+1];g[0]=Math.min(g[0],h);g[1]=Math.min(g[1],k);g[2]=Math.max(g[2],h);g[3]=Math.max(g[3],k)}return a}function $d(a,c,d){var e;return(e=c.call(d,ae(a)))||(e=c.call(d,be(a)))||(e=c.call(d,ce(a)))?e:(e=c.call(d,de(a)))?e:!1}function ae(a){return[a[0],a[1]]}function be(a){return[a[2],a[1]]}function ee(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]} 372function fe(a,c,d,e){var f=c*e[0]/2;e=c*e[1]/2;c=Math.cos(d);d=Math.sin(d);f=[-f,-f,f,f];e=[-e,e,-e,e];var g,h,k;for(g=0;4>g;++g)h=f[g],k=e[g],f[g]=a[0]+h*c-k*d,e[g]=a[1]+h*d+k*c;return Nd(f,e,void 0)}function ge(a){return a[3]-a[1]}function he(a,c,d){d=m(d)?d:Ld();ie(a,c)&&(d[0]=a[0]>c[0]?a[0]:c[0],d[1]=a[1]>c[1]?a[1]:c[1],d[2]=a[2]<c[2]?a[2]:c[2],d[3]=a[3]<c[3]?a[3]:c[3]);return d}function de(a){return[a[0],a[3]]}function ce(a){return[a[2],a[3]]}function je(a){return a[2]-a[0]} 373function ie(a,c){return a[0]<=c[2]&&a[2]>=c[0]&&a[1]<=c[3]&&a[3]>=c[1]}function ke(a){return a[2]<a[0]||a[3]<a[1]}function le(a,c){var d=(a[2]-a[0])/2*(c-1),e=(a[3]-a[1])/2*(c-1);a[0]-=d;a[2]+=d;a[1]-=e;a[3]+=e}function me(a,c,d){a=[a[0],a[1],a[0],a[3],a[2],a[1],a[2],a[3]];c(a,a,2);return Nd([a[0],a[2],a[4],a[6]],[a[1],a[3],a[5],a[7]],d)};function ne(a){return function(){return a}}var oe=ne(!1),pe=ne(!0),qe=ne(null);function re(a){return a}function se(a){var c;c=c||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,c))}}function te(a){var c=arguments,d=c.length;return function(){for(var a,f=0;f<d;f++)a=c[f].apply(this,arguments);return a}}function ue(a){var c=arguments,d=c.length;return function(){for(var a=0;a<d;a++)if(!c[a].apply(this,arguments))return!1;return!0}};/* 374 375 Latitude/longitude spherical geodesy formulae taken from 376 http://www.movable-type.co.uk/scripts/latlong.html 377 Licensed under CC-BY-3.0. 378*/ 379function ve(a){this.radius=a}ve.prototype.a=function(a){for(var c=0,d=a.length,e=a[d-1][0],f=a[d-1][1],g=0;g<d;g++)var h=a[g][0],k=a[g][1],c=c+$b(h-e)*(2+Math.sin($b(f))+Math.sin($b(k))),e=h,f=k;return c*this.radius*this.radius/2};ve.prototype.b=function(a,c){var d=$b(a[1]),e=$b(c[1]),f=(e-d)/2,g=$b(c[0]-a[0])/2,d=Math.sin(f)*Math.sin(f)+Math.sin(g)*Math.sin(g)*Math.cos(d)*Math.cos(e);return 2*this.radius*Math.atan2(Math.sqrt(d),Math.sqrt(1-d))}; 380ve.prototype.offset=function(a,c,d){var e=$b(a[1]);c/=this.radius;var f=Math.asin(Math.sin(e)*Math.cos(c)+Math.cos(e)*Math.sin(c)*Math.cos(d));return[180*($b(a[0])+Math.atan2(Math.sin(d)*Math.sin(c)*Math.cos(e),Math.cos(c)-Math.sin(e)*Math.sin(f)))/Math.PI,180*f/Math.PI]};var we=new ve(6370997);var xe={};xe.degrees=2*Math.PI*we.radius/360;xe.ft=.3048;xe.m=1;xe["us-ft"]=1200/3937; 381function ye(a){this.b=a.code;this.a=a.units;this.g=m(a.extent)?a.extent:null;this.j=m(a.worldExtent)?a.worldExtent:null;this.f=m(a.axisOrientation)?a.axisOrientation:"enu";this.i=(this.c=m(a.global)?a.global:!1)&&null!==this.g;this.C=m(a.getPointResolution)?a.getPointResolution:this.ij;this.l=null;var c=ze,d=a.code;if("function"==typeof proj4&&!m(c[d])){var e=proj4.defs(d);if(m(e)){m(e.axis)&&!m(a.axisOrientation)&&(this.f=e.axis);m(a.units)||(a=e.units,!m(a)&&m(e.to_meter)&&(a=e.to_meter.toString(), 382xe[a]=e.to_meter),this.a=a);for(var f in c)a=proj4.defs(f),m(a)&&(c=Ae(f),a===e?Be([c,this]):(a=proj4(f,d),Ce(c,this,a.forward,a.inverse)))}}}l=ye.prototype;l.Ji=function(){return this.b};l.R=function(){return this.g};l.wl=function(){return this.a};l.Id=function(){return xe[this.a]};l.tj=function(){return this.j};
382function De(a){return a.f}l.gk=function(){return this.c};l.Mn=function(a){this.i=(this.c=a)&&null!==this.g};l.xl=function(a){this.g=a;this.i=this.c&&null!==a};l.Wn=function(a){this.j=a}; 383l.Ln=function(a){this.C=a};l.ij=function(a,c){if("degrees"==this.a)return a;var d=Ee(this,Ae("EPSG:4326")),e=[c[0]-a/2,c[1],c[0]+a/2,c[1],c[0],c[1]-a/2,c[0],c[1]+a/2],e=d(e,e,2),d=(we.b(e.slice(0,2),e.slice(2,4))+we.b(e.slice(4,6),e.slice(6,8)))/2,e=this.Id();m(e)&&(d/=e);return d};l.getPointResolution=function(a,c){return this.C(a,c)};var ze={},Fe={};function Be(a){Ge(a);Sa(a,function(c){Sa(a,function(a){c!==a&&He(c,a,Ie)})})} 384function Je(){var a=Ke,c=Le,d=Me;Sa(Ne,function(e){Sa(a,function(a){He(e,a,c);He(a,e,d)})})}function Oe(a){ze[a.b]=a;He(a,a,Ie)}function Ge(a){var c=[];Sa(a,function(a){c.push(Oe(a))})}function Pe(a){return null!=a?ia(a)?Ae(a):a:Ae("EPSG:3857")}function He(a,c,d){a=a.b;c=c.b;a in Fe||(Fe[a]={});Fe[a][c]=d}function Ce(a,c,d,e){a=Ae(a);c=Ae(c);He(a,c,Qe(d));He(c,a,Qe(e))} 385function Qe(a){return function(c,d,e){var f=c.length;e=m(e)?e:2;d=m(d)?d:Array(f);var g,h;for(h=0;h<f;h+=e)for(g=a([c[h],c[h+1]]),d[h]=g[0],d[h+1]=g[1],g=e-1;2<=g;--g)d[h+g]=c[h+g];return d}}function Ae(a){var c;a instanceof ye?c=a:ia(a)?(c=ze[a],!m(c)&&"function"==typeof proj4&&m(proj4.defs(a))&&(c=new ye({code:a}),Oe(c))):c=null;return c}function Re(a,c){return a===c?!0:a.b===c.b?!0:a.a!=c.a?!1:Ee(a,c)===Ie}function Se(a,c){var d=Ae(a),e=Ae(c);return Ee(d,e)} 386function Ee(a,c){var d=a.b,e=c.b,f;d in Fe&&e in Fe[d]&&(f=Fe[d][e]);m(f)||(f=Ue);return f}function Ue(a,c){if(m(c)&&a!==c){for(var d=0,e=a.length;d<e;++d)c[d]=a[d];a=c}return a}function Ie(a,c){var d;if(m(c)){d=0;for(var e=a.length;d<e;++d)c[d]=a[d];d=c}else d=a.slice();return d}function Ve(a,c,d){return Se(c,d)(a,void 0,a.length)}function We(a,c,d){c=Se(c,d);return me(a,c)};function Xe(){gd.call(this);this.v=Ld();this.u=-1;this.i={};this.l=this.g=0}w(Xe,gd);l=Xe.prototype;l.Wa=function(a,c){var d=m(c)?c:[NaN,NaN];this.Ua(a[0],a[1],d,Infinity);return d};l.Je=function(a){return this.Zb(a[0],a[1])};l.Zb=oe;l.R=function(a){this.u!=this.b&&(this.v=this.yd(this.v),this.u=this.b);var c=this.v;m(a)?(a[0]=c[0],a[1]=c[1],a[2]=c[2],a[3]=c[3]):a=c;return a};l.transform=function(a,c){this.Qb(Se(a,c));return this};function Ye(a,c,d,e,f,g){var h=f[0],k=f[1],n=f[4],p=f[5],q=f[12];f=f[13];for(var r=m(g)?g:[],t=0;c<d;c+=e){var v=a[c],B=a[c+1];r[t++]=h*v+n*B+q;r[t++]=k*v+p*B+f}m(g)&&r.length!=t&&(r.length=t);return r};function Ze(){Xe.call(this);this.a="XY";this.H=2;this.o=null}w(Ze,Xe);function $e(a){if("XY"==a)return 2;if("XYZ"==a||"XYM"==a)return 3;if("XYZM"==a)return 4}l=Ze.prototype;l.Zb=oe;l.yd=function(a){var c=this.o,d=this.o.length,e=this.H;a=Od(Infinity,Infinity,-Infinity,-Infinity,a);return Zd(a,c,0,d,e)};l.rb=function(){return this.o.slice(0,this.H)};l.sb=function(){return this.o.slice(this.o.length-this.H)};l.tb=function(){return this.a}; 387l.Xe=function(a){this.l!=this.b&&(yb(this.i),this.g=0,this.l=this.b);if(0>a||0!==this.g&&a<=this.g)return this;var c=a.toString();if(this.i.hasOwnProperty(c))return this.i[c];var d=this.yc(a);if(d.o.length<this.o.length)return this.i[c]=d;this.g=a;return this};l.yc=function(){return this};function af(a,c,d){a.H=$e(c);a.a=c;a.o=d} 388function bf(a,c,d,e){if(m(c))d=$e(c);else{for(c=0;c<e;++c){if(0===d.length){a.a="XY";a.H=2;return}d=d[0]}d=d.length;c=2==d?"XY":3==d?"XYZ":4==d?"XYZM":void 0}a.a=c;a.H=d}l.Qb=function(a){null!==this.o&&(a(this.o,this.o,this.H),this.s())};l.translate=function(a,c){var d=this.o;if(null!==d){var e=d.length,f=this.H,g=m(d)?d:[],h=0,k,n;for(k=0;k<e;k+=f)for(g[h++]=d[k]+a,g[h++]=d[k+1]+c,n=k+2;n<k+f;++n)g[h++]=d[n];m(d)&&g.length!=h&&(g.length=h);this.s()}};function cf(a,c,d,e){for(var f=0,g=a[d-e],h=a[d-e+1];c<d;c+=e)var k=a[c],n=a[c+1],f=f+(h*k-g*n),g=k,h=n;return f/2}function df(a,c,d,e){var f=0,g,h;g=0;for(h=d.length;g<h;++g){var k=d[g],f=f+cf(a,c,k,e);c=k}return f};function ef(a,c,d,e,f,g){var h=f-d,k=g-e;if(0!==h||0!==k){var n=((a-d)*h+(c-e)*k)/(h*h+k*k);1<n?(d=f,e=g):0<n&&(d+=h*n,e+=k*n)}return ff(a,c,d,e)}function ff(a,c,d,e){a=d-a;c=e-c;return a*a+c*c};function gf(a,c,d,e,f,g,h){var k=a[c],n=a[c+1],p=a[d]-k,q=a[d+1]-n;if(0!==p||0!==q)if(g=((f-k)*p+(g-n)*q)/(p*p+q*q),1<g)c=d;else if(0<g){for(f=0;f<e;++f)h[f]=Zb(a[c+f],a[d+f],g);h.length=e;return}for(f=0;f<e;++f)h[f]=a[c+f];h.length=e}function hf(a,c,d,e,f){var g=a[c],h=a[c+1];for(c+=e;c<d;c+=e){var k=a[c],n=a[c+1],g=ff(g,h,k,n);g>f&&(f=g);g=k;h=n}return f}function jf(a,c,d,e,f){var g,h;g=0;for(h=d.length;g<h;++g){var k=d[g];f=hf(a,c,k,e,f);c=k}return f} 389function kf(a,c,d,e,f,g,h,k,n,p,q){if(c==d)return p;var r;if(0===f){r=ff(h,k,a[c],a[c+1]);if(r<p){for(q=0;q<e;++q)n[q]=a[c+q];n.length=e;return r}return p}for(var t=m(q)?q:[NaN,NaN],v=c+e;v<d;)if(gf(a,v-e,v,e,h,k,t),r=ff(h,k,t[0],t[1]),r<p){p=r;
389for(q=0;q<e;++q)n[q]=t[q];n.length=e;v+=e}else v+=e*Math.max((Math.sqrt(r)-Math.sqrt(p))/f|0,1);if(g&&(gf(a,d-e,c,e,h,k,t),r=ff(h,k,t[0],t[1]),r<p)){p=r;for(q=0;q<e;++q)n[q]=t[q];n.length=e}return p} 390function lf(a,c,d,e,f,g,h,k,n,p,q){q=m(q)?q:[NaN,NaN];var r,t;r=0;for(t=d.length;r<t;++r){var v=d[r];p=kf(a,c,v,e,f,g,h,k,n,p,q);c=v}return p};function mf(a,c){var d=0,e,f;e=0;for(f=c.length;e<f;++e)a[d++]=c[e];return d}function nf(a,c,d,e){var f,g;f=0;for(g=d.length;f<g;++f){var h=d[f],k;for(k=0;k<e;++k)a[c++]=h[k]}return c}function of(a,c,d,e,f){f=m(f)?f:[];var g=0,h,k;h=0;for(k=d.length;h<k;++h)c=nf(a,c,d[h],e),f[g++]=c;f.length=g;return f};function pf(a,c,d,e,f){f=m(f)?f:[];for(var g=0;c<d;c+=e)f[g++]=a.slice(c,c+e);f.length=g;return f}function qf(a,c,d,e,f){f=m(f)?f:[];var g=0,h,k;h=0;for(k=d.length;h<k;++h){var n=d[h];f[g++]=pf(a,c,n,e,f[g]);c=n}f.length=g;return f};function rf(a,c,d,e,f,g,h){var k=(d-c)/e;if(3>k){for(;c<d;c+=e)g[h++]=a[c],g[h++]=a[c+1];return h}var n=Array(k);n[0]=1;n[k-1]=1;d=[c,d-e];for(var p=0,q;0<d.length;){var r=d.pop(),t=d.pop(),v=0,B=a[t],z=a[t+1],D=a[r],A=a[r+1];for(q=t+e;q<r;q+=e){var y=ef(a[q],a[q+1],B,z,D,A);y>v&&(p=q,v=y)}v>f&&(n[(p-c)/e]=1,t+e<p&&d.push(t,p),p+e<r&&d.push(p,r))}for(q=0;q<k;++q)n[q]&&(g[h++]=a[c+q*e],g[h++]=a[c+q*e+1]);return h} 391function sf(a,c,d,e,f,g,h,k){var n,p;n=0;for(p=d.length;n<p;++n){var q=d[n];a:{var r=a,t=q,v=e,B=f,z=g;if(c!=t){var D=B*Math.round(r[c]/B),A=B*Math.round(r[c+1]/B);c+=v;z[h++]=D;z[h++]=A;var y=void 0,J=void 0;do if(y=B*Math.round(r[c]/B),J=B*Math.round(r[c+1]/B),c+=v,c==t){z[h++]=y;z[h++]=J;break a}while(y==D&&J==A);for(;c<t;){var L,H;L=B*Math.round(r[c]/B);H=B*Math.round(r[c+1]/B);c+=v;if(L!=y||H!=J){var Q=y-D,wa=J-A,Pa=L-D,P=H-A;Q*P==wa*Pa&&(0>Q&&Pa<Q||Q==Pa||0<Q&&Pa>Q)&&(0>wa&&P<wa||wa==P||0<wa&& 392P>wa)||(z[h++]=y,z[h++]=J,D=y,A=J);y=L;J=H}}z[h++]=y;z[h++]=J}}k.push(h);c=q}return h};function tf(a,c){Ze.call(this);this.c=this.j=-1;this.ia(a,c)}w(tf,Ze);l=tf.prototype;l.clone=function(){var a=new tf(null);uf(a,this.a,this.o.slice());return a};l.Ua=function(a,c,d,e){if(e<Rd(this.R(),a,c))return e;this.c!=this.b&&(this.j=Math.sqrt(hf(this.o,0,this.o.length,this.H,0)),this.c=this.b);return kf(this.o,0,this.o.length,this.H,this.j,!0,a,c,d,e)};l.cl=function(){return cf(this.o,0,this.o.length,this.H)};l.W=function(){return pf(this.o,0,this.o.length,this.H)}; 393l.yc=function(a){var c=[];c.length=rf(this.o,0,this.o.length,this.H,a,c,0);a=new tf(null);uf(a,"XY",c);return a};l.U=function(){return"LinearRing"};l.ia=function(a,c){null===a?uf(this,"XY",null):(bf(this,c,a,1),null===this.o&&(this.o=[]),this.o.length=nf(this.o,0,a,this.H),this.s())};function uf(a,c,d){af(a,c,d);a.s()};function vf(a,c){Ze.call(this);this.ia(a,c)}w(vf,Ze);l=vf.prototype;l.clone=function(){var a=new vf(null);wf(a,this.a,this.o.slice());return a};l.Ua=function(a,c,d,e){var f=this.o;a=ff(a,c,f[0],f[1]);if(a<e){e=this.H;for(c=0;c<e;++c)d[c]=f[c];d.length=e;return a}return e};l.W=function(){return null===this.o?[]:this.o.slice()};l.yd=function(a){return Wd(this.o,a)};l.U=function(){return"Point"};l.sa=function(a){return Td(a,this.o[0],this.o[1])}; 394l.ia=function(a,c){null===a?wf(this,"XY",null):(bf(this,c,a,0),null===this.o&&(this.o=[]),this.o.length=mf(this.o,a),this.s())};function wf(a,c,d){af(a,c,d);a.s()};function xf(a,c,d,e,f){return!$d(f,function(f){return!yf(a,c,d,e,f[0],f[1])})}function yf(a,c,d,e,f,g){for(var h=!1,k=a[d-e],n=a[d-e+1];c<d;c+=e){var p=a[c],q=a[c+1];n>g!=q>g&&f<(p-k)*(g-n)/(q-n)+k&&(h=!h);k=p;n=q}return h}function zf(a,c,d,e,f,g){if(0===d.length||!yf(a,c,d[0],e,f,g))return!1;var h;c=1;for(h=d.length;c<h;++c)if(yf(a,d[c-1],d[c],e,f,g))return!1;return!0};function Af(a,c,d,e,f,g,h){var k,n,p,q,r,t=f[g+1],v=[],B=d[0];p=a[B-e];r=a[B-e+1];for(k=c;k<B;k+=e){q=a[k];n=a[k+1];if(t<=r&&n<=t||r<=t&&t<=n)p=(t-r)/(n-r)*(q-p)+p,v.push(p);p=q;r=n}B=NaN;r=-Infinity;v.sort();p=v[0];k=1;for(n=v.length;k<n;++k){q=v[k];var z=Math.abs(q-p);z>r&&(p=(p+q)/2,zf(a,c,d,e,p,t)&&(B=p,r=z));p=q}isNaN(B)&&(B=f[g]);return m(h)?(h.push(B,t),h):[B,t]};function Bf(a,c,d,e,f,g){for(var h=[a[c],a[c+1]],k=[],n;c+e<d;c+=e){k[0]=a[c+e];k[1]=a[c+e+1];if(n=f.call(g,h,k))return n;h[0]=k[0];h[1]=k[1]}return!1};function Cf(a,c,d,e,f){var g=Zd(Ld(),a,c,d,e);return ie(f,g)?Ud(f,g)||g[0]>=f[0]&&g[2]<=f[2]||g[1]>=f[1]&&g[3]<=f[3]?!0:Bf(a,c,d,e,function(a,c){var d=!1,e=Vd(f,a),g=Vd(f,c);if(1===e||1===g)d=!0;else{var r=f[0],t=f[1],v=f[2],B=f[3],z=c[0],D=c[1],A=(D-a[1])/(z-a[0]);g&2&&!(e&2)&&(d=z-(D-B)/A,d=d>=r&&d<=v);d||!(g&4)||e&4||(d=D-(z-v)*A,d=d>=t&&d<=B);d||!(g&8)||e&8||(d=z-(D-t)/A,d=d>=r&&d<=v);d||!(g&16)||e&16||(d=D-(z-r)*A,d=d>=t&&d<=B)}return d}):!1} 395function Df(a,c,d,e,f){var g=d[0];if(!(Cf(a,c,g,e,f)||yf(a,c,g,e,f[0],f[1])||yf(a,c,g,e,f[0],f[3])||yf(a,c,g,e,f[2],f[1])||yf(a,c,g,e,f[2],f[3])))return!1;if(1===d.length)return!0;c=1;for(g=d.length;c<g;++c)if(xf(a,d[c-1],d[c],e,f))return!1;return!0};function Ef(a,c,d,e){for(var f=0,g=a[d-e],h=a[d-e+1];c<d;c+=e)var k=a[c],n=a[c+1],f=f+(k-g)*(n+h),g=k,h=n;return 0<f}function Ff(a,c,d,e){var f=0;e=m(e)?e:!1;var g,h;g=0;for(h=c.length;g<h;++g){var k=c[g],f=Ef(a,f,k,d);if(0===g){if(e&&f||!e&&!f)return!1}else if(e&&!f||!e&&f)return!1;f=k}return!0} 396function Gf(a,c,d,e,f){f=m(f)?f:!1;var g,h;g=0;for(h=d.length;g<h;++g){var k=d[g],n=Ef(a,c,k,e);if(0===g?f&&n||!f&&!n:f&&!n||!f&&n)for(var n=a,p=k,q=e;c<p-q;){var r;for(r=0;r<q;++r){var t=n[c+r];n[c+r]=n[p-q+r];n[p-q+r]=t}c+=q;p-=q}c=k}return c}function Hf(a,c,d,e){var f=0,g,h;g=0;for(h=c.length;g<h;++g)f=Gf(a,f,c[g],d,e);return f};function E(a,c){Ze.call(this);this.c=[];this.A=-1;this.D=null;this.T=this.B=this.K=-1;this.j=null;this.ia(a,c)}w(E,Ze);l=E.prototype;l.oi=function(a){null===this.o?this.o=a.o.slice():cb(this.o,a.o);this.c.push(this.o.length);this.s()};l.clone=function(){var a=new E(null);If(a,this.a,this.o.slice(),this.c.slice());return a}; 397l.Ua=function(a,c,d,e){if(e<Rd(this.R(),a,c))return e;this.B!=this.b&&(this.K=Math.sqrt(jf(this.o,0,this.c,this.H,0)),this.B=this.b);return lf(this.o,0,this.c,this.H,this.K,!0,a,c,d,e)};l.Zb=function(a,c){return zf(Jf(this),0,this.c,this.H,a,c)};l.fl=function(){return df(Jf(this),0,this.c,this.H)};l.W=function(a){var c;m(a)?(c=Jf(this).slice(),Gf(c,0,this.c,this.H,a)):c=this.o;return qf(c,0,this.c,this.H)}; 398function Kf(a){if(a.A!=a.b){var c=ee(a.R());a.D=Af(Jf(a),0,a.c,a.H,c,0);a.A=a.b}return a.D}l.Vi=function(){return new vf(Kf(this))};l.$i=function(){return this.c.length};
398l.Wf=function(a){if(0>a||this.c.length<=a)return null;var c=new tf(null);uf(c,this.a,this.o.slice(0===a?0:this.c[a-1],this.c[a]));return c};l.Hd=function(){var a=this.a,c=this.o,d=this.c,e=[],f=0,g,h;g=0;for(h=d.length;g<h;++g){var k=d[g],n=new tf(null);uf(n,a,c.slice(f,k));e.push(n);f=k}return e}; 399function Jf(a){if(a.T!=a.b){var c=a.o;Ff(c,a.c,a.H)?a.j=c:(a.j=c.slice(),a.j.length=Gf(a.j,0,a.c,a.H));a.T=a.b}return a.j}l.yc=function(a){var c=[],d=[];c.length=sf(this.o,0,this.c,this.H,Math.sqrt(a),c,0,d);a=new E(null);If(a,"XY",c,d);return a};l.U=function(){return"Polygon"};l.sa=function(a){return Df(Jf(this),0,this.c,this.H,a)}; 400l.ia=function(a,c){if(null===a)If(this,"XY",null,this.c);else{bf(this,c,a,2);null===this.o&&(this.o=[]);var d=of(this.o,0,a,this.H,this.c);this.o.length=0===d.length?0:d[d.length-1];this.s()}};function If(a,c,d,e){af(a,c,d);a.c=e;a.s()}function Lf(a,c,d,e){var f=m(e)?e:32;e=[];var g;for(g=0;g<f;++g)cb(e,a.offset(c,d,2*Math.PI*g/f));e.push(e[0],e[1]);a=new E(null);If(a,"XY",e,[e.length]);return a} 401function Mf(a){var c=a[0],d=a[1],e=a[2];a=a[3];c=[c,d,c,a,e,a,e,d,c,d];d=new E(null);If(d,"XY",c,[c.length]);return d}function Nf(a,c,d){var e=m(c)?c:32,f=a.H;c=a.a;for(var g=new E(null,c),e=f*(e+1),f=[],h=0;h<e;h++)f[h]=0;If(g,c,f,[f.length]);Of(g,a.ed(),a.hf(),d);return g}function Of(a,c,d,e){var f=a.o,g=a.a,h=a.H,k=a.c,n=f.length/h-1;e=m(e)?e:0;for(var p,q,r=0;r<=n;++r)q=r*h,p=e+2*Yb(r,n)*Math.PI/n,f[q]=c[0]+d*Math.cos(p),f[q+1]=c[1]+d*Math.sin(p);If(a,g,f,k)};function Pf(a){gd.call(this);a=m(a)?a:{};this.c=[0,0];var c={};c.center=m(a.center)?a.center:null;this.i=Pe(a.projection);var d,e,f,g=m(a.minZoom)?a.minZoom:0;d=m(a.maxZoom)?a.maxZoom:28;var h=m(a.zoomFactor)?a.zoomFactor:2;if(m(a.resolutions))d=a.resolutions,e=d[0],f=d[d.length-1],d=dc(d);else{e=Pe(a.projection);f=e.R();var k=(null===f?360*xe.degrees/xe[e.a]:Math.max(je(f),ge(f)))/256/Math.pow(2,0),n=k/Math.pow(2,28);e=a.maxResolution;m(e)?g=0:e=k/Math.pow(h,g);f=a.minResolution;m(f)||(f=m(a.maxZoom)? 402m(a.maxResolution)?e/Math.pow(h,d):k/Math.pow(h,d):n);d=g+Math.floor(Math.log(e/f)/Math.log(h));f=e/Math.pow(h,d-g);d=ec(h,e,d-g)}this.a=e;this.j=f;this.f=g;g=m(a.extent)?ac(a.extent):bc;(m(a.enableRotation)?a.enableRotation:1)?(e=a.constrainRotation,e=m(e)&&!0!==e?!1===e?gc:ja(e)?hc(e):gc:ic()):e=fc;this.g=new jc(g,d,e);m(a.resolution)?c.resolution=a.resolution:m(a.zoom)&&(c.resolution=this.constrainResolution(this.a,a.zoom-this.f));c.rotation=m(a.rotation)?a.rotation:0;this.I(c)}w(Pf,gd);l=Pf.prototype; 403l.zd=function(a){return this.g.center(a)};l.constrainResolution=function(a,c,d){return this.g.resolution(a,c||0,d||0)};l.constrainRotation=function(a,c){return this.g.rotation(a,c||0)};l.Ia=function(){return this.get("center")};l.Pc=function(a){var c=this.Ia(),d=this.Ba(),e=this.Ca();return fe(c,d,e,a)};l.Nk=function(){return this.i};l.Ba=function(){return this.get("resolution")};function Qf(a){var c=a.a,d=Math.log(c/a.j)/Math.log(2);return function(a){return c/Math.pow(2,a*d)}}l.Ca=function(){return this.get("rotation")}; 404function Rf(a){var c=a.a,d=Math.log(c/a.j)/Math.log(2);return function(a){return Math.log(c/a)/Math.log(2)/d}}function Sf(a){var c=a.Ia(),d=a.i,e=a.Ba();a=a.Ca();return{center:[Math.round(c[0]/e)*e,Math.round(c[1]/e)*e],projection:m(d)?d:null,resolution:e,rotation:a}}l.vj=function(){var a,c=this.Ba();if(m(c)){var d,e=0;do{d=this.constrainResolution(this.a,e);if(d==c){a=e;break}++e}while(d>this.j)}return m(a)?this.f+a:a}; 405l.Me=function(a,c,d){a instanceof Ze||(a=Mf(a));var e=m(d)?d:{};d=m(e.padding)?e.padding:[0,0,0,0];var f=m(e.constrainResolution)?e.constrainResolution:!0,g=m(e.nearest)?e.nearest:!1,h;m(e.minResolution)?h=e.minResolution:m(e.maxZoom)?h=this.constrainResolution(this.a,e.maxZoom-this.f,0):h=0;var k=a.o,n=this.Ca(),e=Math.cos(-n),n=Math.sin(-n),p=Infinity,q=Infinity,r=-Infinity,t=-Infinity;a=a.H;for(var v=0,B=k.length;v<B;v+=a)var z=k[v]*e-k[v+1]*n,D=k[v]*n+k[v+1]*e,p=Math.min(p,z),q=Math.min(q,D), 406r=Math.max(r,z),t=Math.max(t,D);k=[p,q,r,t];c=[c[0]-d[1]-d[3],c[1]-d[0]-d[2]];c=Math.max(je(k)/c[0],ge(k)/c[1]);c=isNaN(c)?h:Math.max(c,h);
406f&&(h=this.constrainResolution(c,0,0),!g&&h<c&&(h=this.constrainResolution(h,-1,0)),c=h);this.Ob(c);n=-n;g=(p+r)/2+(d[1]-d[3])/2*c;d=(q+t)/2+(d[0]-d[2])/2*c;this.$a([g*e-d*n,d*e+g*n])}; 407l.ui=function(a,c,d){var e=this.Ca(),f=Math.cos(-e),e=Math.sin(-e),g=a[0]*f-a[1]*e;a=a[1]*f+a[0]*e;var h=this.Ba(),g=g+(c[0]/2-d[0])*h;a+=(d[1]-c[1]/2)*h;e=-e;this.$a([g*f-a*e,a*f+g*e])};function Tf(a){return null!=a.Ia()&&m(a.Ba())}l.rotate=function(a,c){if(m(c)){var d,e=this.Ia();m(e)&&(d=[e[0]-c[0],e[1]-c[1]],sd(d,a-this.Ca()),nd(d,c));this.$a(d)}this.$d(a)};l.$a=function(a){this.set("center",a)};function Uf(a,c){a.c[1]+=c}l.Ob=function(a){this.set("resolution",a)}; 408l.$d=function(a){this.set("rotation",a)};l.Yn=function(a){a=this.constrainResolution(this.a,a-this.f,0);this.Ob(a)};function Wf(a){return 1-Math.pow(1-a,3)};function Xf(a){return 3*a*a-2*a*a*a}function Yf(a){return a}function Zf(a){return.5>a?Xf(2*a):1-Xf(2*(a-.5))};function $f(a){var c=a.source,d=m(a.start)?a.start:ta(),e=c[0],f=c[1],g=m(a.duration)?a.duration:1E3,h=m(a.easing)?a.easing:Xf;return function(a,c){if(c.time<d)return c.animate=!0,c.viewHints[0]+=1,!0;if(c.time<d+g){var p=1-h((c.time-d)/g),q=e-c.viewState.center[0],r=f-c.viewState.center[1];c.animate=!0;c.viewState.center[0]+=p*q;c.viewState.center[1]+=p*r;c.viewHints[0]+=1;return!0}return!1}} 409function ag(a){var c=m(a.rotation)?a.rotation:0,d=m(a.start)?a.start:ta(),e=m(a.duration)?a.duration:1E3,f=m(a.easing)?a.easing:Xf,g=m(a.anchor)?a.anchor:null;return function(a,k){if(k.time<d)return k.animate=!0,k.viewHints[0]+=1,!0;if(k.time<d+e){var n=1-f((k.time-d)/e),n=(c-k.viewState.rotation)*n;k.animate=!0;k.viewState.rotation+=n;if(null!==g){var p=k.viewState.center;p[0]-=g[0];p[1]-=g[1];sd(p,n);nd(p,g)}k.viewHints[0]+=1;return!0}return!1}} 410function bg(a){var c=a.resolution,d=m(a.start)?a.start:ta(),e=m(a.duration)?a.duration:1E3,f=m(a.easing)?a.easing:Xf;return function(a,h){if(h.time<d)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<d+e){var k=1-f((h.time-d)/e),n=c-h.viewState.resolution;h.animate=!0;h.viewState.resolution+=k*n;h.viewHints[0]+=1;return!0}return!1}};function cg(a,c,d,e){return m(e)?(e[0]=a,e[1]=c,e[2]=d,e):[a,c,d]}function dg(a,c,d){return a+"/"+c+"/"+d}function eg(a){var c=a[0],d=Array(c),e=1<<c-1,f,g;for(f=0;f<c;++f)g=48,a[1]&e&&(g+=1),a[2]&e&&(g+=2),d[f]=String.fromCharCode(g),e>>=1;return d.join("")}function fg(a){return dg(a[0],a[1],a[2])}function gg(a,c,d){var e=a[0],f=hg(c,a);d=ig(d);if(Sd(d,f))return a;a=je(d);d=Math.ceil((d[0]-f[0])/a);f[0]+=a*d;return c.Md(f,e)} 411function jg(a,c){var d=a[0],e=a[1],f=a[2];if(c.minZoom>d||d>c.maxZoom)return!1;var g=c.R(),d=null===g?null===c.a?null:c.a[d]:kg(c,g,d);return null===d?!0:lg(d,e,f)};function mg(a,c,d,e){this.b=a;this.f=c;this.a=d;this.c=e}mg.prototype.contains=function(a){return lg(this,a[1],a[2])};function lg(a,c,d){return a.b<=c&&c<=a.f&&a.a<=d&&d<=a.c}function ng(a,c){return a.b==c.b&&a.a==c.a&&a.f==c.f&&a.c==c.c}function og(a){return a.f-a.b+1}function pg(a,c){return a.b<=c.f&&a.f>=c.b&&a.a<=c.c&&a.c>=c.a};function qg(a){this.a=a.html;this.b=m(a.tileRanges)?a.tileRanges:null}qg.prototype.c=function(){return this.a};function rg(a,c,d){tc.call(this,a,d);this.element=c}w(rg,tc);function sg(a){gd.call(this);this.a=m(a)?a:[];tg(this)}w(sg,gd);l=sg.prototype;l.clear=function(){for(;0<this.Ib();)this.pop()};l.cf=function(a){var c,d;c=0;for(d=a.length;c<d;++c)this.push(a[c]);return this};l.forEach=function(a,c){Sa(this.a,a,c)};l.wk=function(){return this.a};l.item=function(a){return this.a[a]};l.Ib=function(){return this.get("length")};l.Rd=function(a,c){db(this.a,a,0,c);tg(this);C(this,new rg("add",c,this))}; 412l.pop=function(){return this.wf(this.Ib()-1)};l.push=function(a){var c=this.a.length;this.Rd(c,a);return c};l.remove=function(a){var c=this.a,d,e;d=0;for(e=c.length;d<e;++d)if(c[d]===a)return this.wf(d)};l.wf=function(a){var c=this.a[a];Qa.splice.call(this.a,a,1);tg(this);C(this,new rg("remove",c,this));return c};l.In=function(a,c){var d=this.Ib();if(a<d)d=this.a[a],this.a[a]=c,C(this,new rg("remove",d,this)),C(this,new rg("add",c,this));else{for(;d<a;++d)this.Rd(d,void 0);this.Rd(a,c)}}; 413function tg(a){a.set("length",a.a.length)};var ug=/^#(?:[0-9a-f]{3}){1,2}$/i,vg=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,wg=/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,10})\)$/i;function xg(a){return ga(a)?a:yg(a)}
413function zg(a){if(!ia(a)){var c=a[0];c!=(c|0)&&(c=c+.5|0);var d=a[1];d!=(d|0)&&(d=d+.5|0);var e=a[2];e!=(e|0)&&(e=e+.5|0);a="rgba("+c+","+d+","+e+","+a[3]+")"}return a} 414var yg=function(){var a={},c=0;return function(d){var e;if(a.hasOwnProperty(d))e=a[d];else{if(1024<=c){e=0;for(var f in a)0===(e++&3)&&(delete a[f],--c)}var g,h;ug.exec(d)?(h=3==d.length-1?1:2,e=parseInt(d.substr(1+0*h,h),16),f=parseInt(d.substr(1+1*h,h),16),g=parseInt(d.substr(1+2*h,h),16),1==h&&(e=(e<<4)+e,f=(f<<4)+f,g=(g<<4)+g),e=[e,f,g,1]):(h=wg.exec(d))?(e=Number(h[1]),f=Number(h[2]),g=Number(h[3]),h=Number(h[4]),e=[e,f,g,h],e=Ag(e,e)):(h=vg.exec(d))?(e=Number(h[1]),f=Number(h[2]),g=Number(h[3]), 415e=[e,f,g,1],e=Ag(e,e)):e=void 0;a[d]=e;++c}return e}}();function Ag(a,c){var d=m(c)?c:[];d[0]=Xb(a[0]+.5|0,0,255);d[1]=Xb(a[1]+.5|0,0,255);d[2]=Xb(a[2]+.5|0,0,255);d[3]=Xb(a[3],0,1);return d};function Bg(){this.j=Ad();this.a=void 0;this.b=Ad();this.f=void 0;this.c=Ad();this.g=void 0;this.i=Ad();this.C=void 0;this.l=Ad()} 416function Cg(a,c,d,e,f){var g=!1;m(c)&&c!==a.a&&(g=a.b,Ed(g),g[12]=c,g[13]=c,g[14]=c,g[15]=1,a.a=c,g=!0);if(m(d)&&d!==a.f){g=a.c;Ed(g);g[0]=d;g[5]=d;g[10]=d;g[15]=1;var h=-.5*d+.5;g[12]=h;g[13]=h;g[14]=h;g[15]=1;a.f=d;g=!0}m(e)&&e!==a.g&&(g=Math.cos(e),h=Math.sin(e),Bd(a.i,.213+.787*g-.213*h,.213-.213*g+.143*h,.213-.213*g-.787*h,0,.715-.715*g-.715*h,.715+.285*g+.14*h,.715-.715*g+.715*h,0,.072-.072*g+.928*h,.072-.072*g-.283*h,.072+.928*g+.072*h,0,0,0,0,1),a.g=e,g=!0);m(f)&&f!==a.C&&(Bd(a.l,.213+.787* 417f,.213-.213*f,.213-.213*f,0,.715-.715*f,.715+.285*f,.715-.715*f,0,.072-.072*f,.072-.072*f,.072+.928*f,0,0,0,0,1),a.C=f,g=!0);g&&(g=a.j,Ed(g),m(d)&&Fd(g,a.c,g),m(c)&&Fd(g,a.b,g),m(f)&&Fd(g,a.l,g),m(e)&&Fd(g,a.i,g));return a.j};var Dg=!Ib||9<=Vb;!Kb&&!Ib||Ib&&9<=Vb||Kb&&Tb("1.9.1");Ib&&Tb("9");function Eg(a,c){this.x=m(a)?a:0;this.y=m(c)?c:0}l=Eg.prototype;l.clone=function(){return new Eg(this.x,this.y)};l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};l.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};l.translate=function(a,c){a instanceof Eg?(this.x+=a.x,this.y+=a.y):(this.x+=a,ja(c)&&(this.y+=c));return this}; 418l.scale=function(a,c){var d=ja(c)?c:a;this.x*=a;this.y*=d;return this};function Fg(a,c){this.width=a;this.height=c}l=Fg.prototype;l.clone=function(){return new Fg(this.width,this.height)};l.si=function(){return this.width*this.height};l.va=function(){return!this.si()};l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; 419l.scale=function(a,c){var d=ja(c)?c:a;this.width*=a;this.height*=d;return this};function Gg(a){return a?new Hg(Ig(a)):ya||(ya=new Hg)}function Jg(a){var c=document;return ia(a)?c.getElementById(a):a}function Kg(a,c){pb(c,function(c,e){"style"==e?a.style.cssText=c:"class"==e?a.className=c:"for"==e?a.htmlFor=c:Lg.hasOwnProperty(e)?a.setAttribute(Lg[e],c):0==e.lastIndexOf("aria-",0)||0==e.lastIndexOf("data-",0)?a.setAttribute(e,c):a[e]=c})} 420var Lg={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 Mg(a){a=a.document.documentElement;return new Fg(a.clientWidth,a.clientHeight)} 421function Ng(a,c,d){var e=arguments,f=document,g=e[0],h=e[1];if(!Dg&&h&&(h.name||h.type)){g=["<",g];
421h.name&&g.push(' name="',Ca(h.name),'"');if(h.type){g.push(' type="',Ca(h.type),'"');var k={};Gb(k,h);delete k.type;h=k}g.push(">");g=g.join("")}g=f.createElement(g);h&&(ia(h)?g.className=h:ga(h)?g.className=h.join(" "):Kg(g,h));2<e.length&&Og(f,g,e,2);return g} 422function Og(a,c,d,e){function f(d){d&&c.appendChild(ia(d)?a.createTextNode(d):d)}for(;e<d.length;e++){var g=d[e];!ha(g)||la(g)&&0<g.nodeType?f(g):Sa(Pg(g)?bb(g):g,f)}}function Qg(a){return document.createElement(a)}function Rg(a,c){Og(Ig(a),a,arguments,1)}function Sg(a){for(var c;c=a.firstChild;)a.removeChild(c)}function Tg(a,c,d){a.insertBefore(c,a.childNodes[d]||null)}function Ug(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Vg(a,c){var d=c.parentNode;d&&d.replaceChild(a,c)} 423function Wg(a){if(m(a.firstElementChild))a=a.firstElementChild;else for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a}function Xg(a,c){if(a.contains&&1==c.nodeType)return a==c||a.contains(c);if("undefined"!=typeof a.compareDocumentPosition)return a==c||Boolean(a.compareDocumentPosition(c)&16);for(;c&&a!=c;)c=c.parentNode;return c==a}function Ig(a){return 9==a.nodeType?a:a.ownerDocument||a.document} 424function Pg(a){if(a&&"number"==typeof a.length){if(la(a))return"function"==typeof a.item||"string"==typeof a.item;if(ka(a))return"function"==typeof a.item}return!1}function Hg(a){this.b=a||ba.document||document}function Yg(){return!0}function Zg(a){var c=a.b;a=c.b?c.b:Lb?c.body||c.documentElement:c.documentElement;c=c.parentWindow||c.defaultView;return Ib&&Tb("10")&&c.pageYOffset!=a.scrollTop?new Eg(a.scrollLeft,a.scrollTop):new Eg(c.pageXOffset||a.scrollLeft,c.pageYOffset||a.scrollTop)} 425Hg.prototype.appendChild=function(a,c){a.appendChild(c)};Hg.prototype.contains=Xg;function $g(a){if(a.classList)return a.classList;a=a.className;return ia(a)&&a.match(/\S+/g)||[]}function ah(a,c){return a.classList?a.classList.contains(c):Ya($g(a),c)}function bh(a,c){a.classList?a.classList.add(c):ah(a,c)||(a.className+=0<a.className.length?" "+c:c)}function ch(a,c){a.classList?a.classList.remove(c):ah(a,c)&&(a.className=Ta($g(a),function(a){return a!=c}).join(" "))}function dh(a,c){ah(a,c)?ch(a,c):bh(a,c)};function eh(a,c,d,e){this.top=a;this.right=c;this.bottom=d;this.left=e}l=eh.prototype;l.clone=function(){return new eh(this.top,this.right,this.bottom,this.left)};l.contains=function(a){return this&&a?a instanceof eh?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:!1}; 426l.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};l.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};l.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; 427l.translate=function(a,c){a instanceof Eg?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,ja(c)&&(this.top+=c,this.bottom+=c));return this};l.scale=function(a,c){var d=ja(c)?c:a;this.left*=a;this.right*=a;this.top*=d;this.bottom*=d;return this};function fh(a,c,d,e){this.left=a;this.top=c;this.width=d;this.height=e}l=fh.prototype;l.clone=function(){return new fh(this.left,this.top,this.width,this.height)};l.contains=function(a){return a instanceof fh?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height}; 428function gh(a,c){var d=c.x<a.left?a.left-c.x:Math.max(c.x-(a.left+a.width),0),e=c.y<a.top?a.top-c.y:Math.max(c.y-(a.top+a.height),0);return d*d+e*e}l.distance=function(a){return Math.sqrt(gh(this,a))};l.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; 429l.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};l.translate=function(a,c){a instanceof Eg?(this.left+=a.x,this.top+=a.y):(this.left+=a,ja(c)&&(this.top+=c));return this}; 430l.scale=function(a,c){var d=ja(c)?c:a;this.left*=a;this.width*=a;this.top*=d;this.height*=d;return this};function hh(a,c){var d=Ig(a);return d.defaultView&&d.defaultView.getComputedStyle&&(d=d.defaultView.getComputedStyle(a,null))?d[c]||d.getPropertyValue(c)||"":""}function ih(a,c){return hh(a,c)||(a.currentStyle?a.currentStyle[c]:null)||a.style&&a.style[c]}function jh(a,c,d){var e;c instanceof Eg?(e=c.x,c=c.y):(e=c,c=d);a.style.left=kh(e);a.style.top=kh(c)} 431function lh(a){var c;try{c=a.getBoundingClientRect()}catch(d){return{left:0,top:0,right:0,bottom:0}}Ib&&a.ownerDocument.body&&(a=a.ownerDocument,c.left-=a.documentElement.clientLeft+a.body.clientLeft,c.top-=a.documentElement.clientTop+a.body.clientTop);return c}function mh(a){if(1==a.nodeType)return a=lh(a),new Eg(a.left,a.top);a=a.changedTouches?a.changedTouches[0]:a;return new Eg(a.clientX,a.clientY)}function kh(a){"number"==typeof a&&(a=a+"px");return a} 432function nh(a){var c=oh;if("none"!=ih(a,"display"))return c(a);var d=a.style,e=d.display,f=d.visibility,g=d.position;d.visibility="hidden";d.position="absolute";d.display="inline";a=c(a);d.display=e;d.position=g;d.visibility=f;return a}function oh(a){var c=a.offsetWidth,d=a.offsetHeight,e=Lb&&!c&&!d;return m(c)&&!e||!a.getBoundingClientRect?new Fg(c,d):(a=lh(a),new Fg(a.right-a.left,a.bottom-a.top))}function ph(a,c){a.style.display=c?"":"none"} 433function qh(a,c,d,e){if(/^\d+px?$/.test(c))return parseInt(c,10);
433var f=a.style[d],g=a.runtimeStyle[d];a.runtimeStyle[d]=a.currentStyle[d];a.style[d]=c;c=a.style[e];a.style[d]=f;a.runtimeStyle[d]=g;return c}function rh(a,c){var d=a.currentStyle?a.currentStyle[c]:null;return d?qh(a,d,"left","pixelLeft"):0} 434function sh(a,c){if(Ib){var d=rh(a,c+"Left"),e=rh(a,c+"Right"),f=rh(a,c+"Top"),g=rh(a,c+"Bottom");return new eh(f,e,g,d)}d=hh(a,c+"Left");e=hh(a,c+"Right");f=hh(a,c+"Top");g=hh(a,c+"Bottom");return new eh(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d))}var th={thin:2,medium:4,thick:6};function uh(a,c){if("none"==(a.currentStyle?a.currentStyle[c+"Style"]:null))return 0;var d=a.currentStyle?a.currentStyle[c+"Width"]:null;return d in th?th[d]:qh(a,d,"left","pixelLeft")} 435function vh(a){if(Ib&&!(9<=Vb)){var c=uh(a,"borderLeft"),d=uh(a,"borderRight"),e=uh(a,"borderTop");a=uh(a,"borderBottom");return new eh(e,d,a,c)}c=hh(a,"borderLeftWidth");d=hh(a,"borderRightWidth");e=hh(a,"borderTopWidth");a=hh(a,"borderBottomWidth");return new eh(parseFloat(e),parseFloat(d),parseFloat(a),parseFloat(c))};function wh(a,c,d){tc.call(this,a);this.map=c;this.frameState=m(d)?d:null}w(wh,tc);function xh(a){gd.call(this);this.element=m(a.element)?a.element:null;this.a=this.T=null;this.v=[];this.render=m(a.render)?a.render:ca;m(a.target)&&this.c(a.target)}w(xh,gd);xh.prototype.Y=function(){Ug(this.element);xh.aa.Y.call(this)};xh.prototype.i=function(){return this.a}; 436xh.prototype.setMap=function(a){null===this.a||Ug(this.element);0!=this.v.length&&(Sa(this.v,Xc),this.v.length=0);this.a=a;null!==this.a&&((null===this.T?a.D:this.T).appendChild(this.element),this.render!==ca&&this.v.push(x(a,"postrender",this.render,!1,this)),a.render())};xh.prototype.c=function(a){this.T=Jg(a)};function yh(){this.c=0;this.f={};this.a=this.b=null}l=yh.prototype;l.clear=function(){this.c=0;this.f={};this.a=this.b=null};function zh(a,c){return a.f.hasOwnProperty(c)}l.forEach=function(a,c){for(var d=this.b;null!==d;)a.call(c,d.pc,d.Ud,this),d=d.Za};l.get=function(a){a=this.f[a];if(a===this.a)return a.pc;a===this.b?(this.b=this.b.Za,this.b.Lb=null):(a.Za.Lb=a.Lb,a.Lb.Za=a.Za);a.Za=null;a.Lb=this.a;this.a=this.a.Za=a;return a.pc};l.Sb=function(){return this.c}; 437l.O=function(){var a=Array(this.c),c=0,d;for(d=this.a;null!==d;d=d.Lb)a[c++]=d.Ud;return a};l.Wb=function(){var a=Array(this.c),c=0,d;for(d=this.a;null!==d;d=d.Lb)a[c++]=d.pc;return a};l.pop=function(){var a=this.b;delete this.f[a.Ud];null!==a.Za&&(a.Za.Lb=null);this.b=a.Za;null===this.b&&(this.a=null);--this.c;return a.pc};l.set=function(a,c){var d={Ud:a,Za:null,Lb:this.a,pc:c};null===this.a?this.b=d:this.a.Za=d;this.a=d;this.f[a]=d;++this.c};function Ah(a){yh.call(this);this.i=m(a)?a:2048}w(Ah,yh);function Bh(a){return a.Sb()>a.i};function Ch(a,c){ad.call(this);this.b=a;this.state=c}w(Ch,ad);function Dh(a){C(a,"change")}Ch.prototype.jb=function(){return ma(this).toString()};Ch.prototype.g=function(){return this.b};function Eh(a){gd.call(this);this.j=Ae(a.projection);this.i=m(a.attributions)?a.attributions:null;this.T=a.logo;this.u=m(a.state)?a.state:"ready";this.D=m(a.wrapX)?a.wrapX:!1}w(Eh,gd);l=Eh.prototype;l.ee=ca;l.la=function(){return this.i};l.ka=function(){return this.T};l.ma=function(){return this.j};l.na=function(){return this.u};function Fh(a){return a.D}function Gh(a,c){a.u=c;a.s()};function Hh(a){this.minZoom=m(a.minZoom)?a.minZoom:0;this.b=a.resolutions;this.maxZoom=this.b.length-1;this.c=m(a.origin)?a.origin:null;this.i=null;m(a.origins)&&(this.i=a.origins);var c=a.extent;m(c)&&null===this.c&&null===this.i&&(this.c=de(c));this.g=null;m(a.tileSizes)&&(this.g=a.tileSizes);this.l=m(a.tileSize)?a.tileSize:null===this.g?256:null;this.v=m(c)?c:null;this.a=null;m(a.sizes)?this.a=Ua(a.sizes,function(a){return new mg(Math.min(0,a[0]),Math.max(a[0]-1,-1),Math.min(0,a[1]),Math.max(a[1]- 4381,-1))},this):null!=c&&Ih(this,c);this.f=[0,0]}var Jh=[0,0,0];function Kh(a,c,d,e,f){f=Lh(a,c,f);for(c=c[0]-1;c>=a.minZoom;){if(d.call(null,c,kg(a,f,c,e)))return!0;--c}return!1}l=Hh.prototype;l.R=function(){return this.v};l.Xf=function(){return this.maxZoom};l.Yf=function(){return this.minZoom};l.Ec=function(a){return null===this.c?this.i[a]:this.c};l.ua=function(a){return this.b[a]};l.Mg=function(){return this.b};function Mh(a,c,d,e){return c[0]<a.maxZoom?(e=Lh(a,c,e),kg(a,e,c[0]+1,d)):null}
439function Nh(a,c,d,e){Oh(a,c[0],c[1],d,!1,Jh);var f=Jh[1],g=Jh[2];Oh(a,c[2],c[3],d,!0,Jh);a=Jh[1];c=Jh[2];m(e)?(e.b=f,e.f=a,e.a=g,e.c=c):e=new mg(f,a,g,c);return e}function kg(a,c,d,e){return Nh(a,c,a.ua(d),e)}function hg(a,c){var d=a.Ec(c[0]),e=a.ua(c[0]),f=md(a.Ha(c[0]),a.f);return[d[0]+(c[1]+.5)*f[0]*e,d[1]+(c[2]+.5)*f[1]*e]}function Lh(a,c,d){var e=a.Ec(c[0]),f=a.ua(c[0]);a=md(a.Ha(c[0]),a.f);var g=e[0]+c[1]*a[0]*f;c=e[1]+c[2]*a[1]*f;return Od(g,c,g+a[0]*f,c+a[1]*f,d)} 440l.cd=function(a,c,d){return Oh(this,a[0],a[1],c,!1,d)};function Oh(a,c,d,e,f,g){var h=Ph(a,e),k=e/a.ua(h),n=a.Ec(h);a=md(a.Ha(h),a.f);c=k*Math.floor((c-n[0])/e+(f?.5:0))/a[0];d=k*Math.floor((d-n[1])/e+(f?0:.5))/a[1];f?(c=Math.ceil(c)-1,d=Math.ceil(d)-1):(c=Math.floor(c),d=Math.floor(d));return cg(h,c,d,g)}l.Md=function(a,c,d){return Oh(this,a[0],a[1],this.ua(c),!1,d)};l.Ha=function(a){return null===this.l?this.g[a]:this.l};function Ph(a,c){var d=cc(a.b,c,0);return Xb(d,a.minZoom,a.maxZoom)} 441function Ih(a,c){for(var d=a.b.length,e=Array(d),f=a.minZoom;f<d;++f)e[f]=kg(a,c,f);a.a=e}function Qh(a){var c={};Gb(c,m(a)?a:{});m(c.extent)||(c.extent=Ae("EPSG:3857").R());c.resolutions=Rh(c.extent,c.maxZoom,c.tileSize);delete c.maxZoom;return new Hh(c)}function Rh(a,c,d){c=m(c)?c:42;var e=ge(a);a=je(a);d=md(m(d)?d:256);d=Math.max(a/d[0],e/d[1]);c+=1;e=Array(c);for(a=0;a<c;++a)e[a]=d/Math.pow(2,a);return e} 442function ig(a){a=Ae(a);var c=a.R();null===c&&(a=180*xe.degrees/a.Id(),c=Od(-a,-a,a,a));return c};function Sh(a){Eh.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state,wrapX:a.wrapX});this.ba=m(a.opaque)?a.opaque:!1;this.ca=m(a.tilePixelRatio)?a.tilePixelRatio:1;this.tileGrid=m(a.tileGrid)?a.tileGrid:null;this.a=new Ah;this.c=[0,0]}w(Sh,Eh);function Th(a,c,d,e){for(var f=!0,g,h,k=d.b;k<=d.f;++k)for(var n=d.a;n<=d.c;++n)g=a.hb(c,k,n),h=!1,zh(a.a,g)&&(g=a.a.get(g),(h=2===g.state)&&(h=!1!==e(g))),h||(f=!1);return f}l=Sh.prototype;l.Fd=function(){return 0}; 443l.hb=dg;l.ya=function(){return this.tileGrid};function Uh(a,c){var d;if(null===a.tileGrid){var e=c.l;if(null===e){var e=ig(c),f=m(void 0)?void 0:"top-left",g=Rh(e,void 0,void 0);"bottom-left"===f?d=ae(e):"bottom-right"===f?d=be(e):"top-left"===f?d=de(e):"top-right"===f&&(d=ce(e));e=new Hh({extent:e,origin:d,resolutions:g,tileSize:void 0});c.l=e}d=e}else d=a.tileGrid;return d}l.Vb=function(a,c,d){c=Uh(this,d);return ld(md(c.Ha(a),this.c),this.ca,this.c)}; 444function Vh(a,c,d){d=m(d)?d:a.j;var e=Uh(a,d);a.D&&d.c&&(c=gg(c,e,d));return jg(c,e)?c:null}l.Bf=ca;function Wh(a,c){tc.call(this,a);this.tile=c}w(Wh,tc);function Xh(a){a=m(a)?a:{};this.D=Qg("UL");this.u=Qg("LI");this.D.appendChild(this.u);ph(this.u,!1);this.f=m(a.collapsed)?a.collapsed:!0;this.j=m(a.collapsible)?a.collapsible:!0;this.j||(this.f=!1);var c=m(a.className)?a.className:"ol-attribution",d=m(a.tipLabel)?a.tipLabel:"Attributions",e=m(a.collapseLabel)?a.collapseLabel:"\u00bb";this.B=ia(e)?Ng("SPAN",{},e):e;e=m(a.label)?a.label:"i";this.K=ia(e)?Ng("SPAN",{},e):e;d=Ng("BUTTON",{type:"button",title:d},this.j&&!this.f?this.B:this.K);x(d,"click", 445this.Qk,!1,this);x(d,["mouseout",wc],function(){this.blur()},!1);c=Ng("DIV",c+" ol-unselectable ol-control"+(this.f&&this.j?" ol-collapsed":"")+(this.j?"":" ol-uncollapsible"),this.D,d);xh.call(this,{element:c,render:m(a.render)?a.render:Yh,target:a.target});this.A=!0;this.l={};this.g={};this.V={}}w(Xh,xh); 446function Yh(a){a=a.frameState;if(null===a)this.A&&(ph(this.element,!1),this.A=!1);else{var c,d,e,f,g,h,k,n,p,q,r,t=a.layerStatesArray,v=Cb(a.attributions),B={},z=a.viewState.projection;d=0;for(c=t.length;d<c;d++)if(h=t[d].layer.da(),null!==h&&(q=ma(h).toString(),p=h.i,null!==p))for(e=0,f=p.length;e<f;e++)if(k=p[e],n=ma(k).toString(),!(n in v)){g=a.usedTiles[q];if(m(g)){var D=Uh(h,z);a:{r=k;var A=z;if(null===r.b)r=!0;else{var y=void 0,J=void 0,L=void 0,H=void 0;for(H in g)if(H in r.b)for(var L=g[H], 447Q,y=0,J=r.b[H].length;y<J;++y){Q=r.b[H][y];if(pg(Q,L)){r=!0;break a}var wa=kg(D,A.R(),parseInt(H,10)),Pa=og(wa);if(L.b<wa.b||L.f>wa.f)if(pg(Q,new mg(Yb(L.b,Pa),Yb(L.f,Pa),L.a,L.c))||og(L)>Pa&&pg(Q,wa)){r=!0;break a}}r=!1}}}else r=!1;r?(n in B&&delete B[n],v[n]=k):B[n]=k}c=[v,B];d=c[0];c=c[1];for(var P in this.l)P in d?(this.g[P]||(ph(this.l[P],!0),this.g[P]=!0),delete d[P]):P in c?(this.g[P]&&(ph(this.l[P],!1),delete this.g[P]),delete c[P]):(Ug(this.l[P]),delete this.l[P],delete this.g[P]);for(P in d)e= 448Qg("LI"),e.innerHTML=d[P].a,this.D.appendChild(e),this.l[P]=e,this.g[P]=!0;for(P in c)e=Qg("LI"),e.innerHTML=c[P].a,ph(e,!1),this.D.appendChild(e),this.l[P]=e;P=!xb(this.g)||!xb(a.logos);this.A!=P&&(ph(this.element,P),this.A=P);P&&xb(this.g)?bh(this.element,"ol-logo-only"):ch(this.element,"ol-logo-only");var Da;a=a.logos;P=this.V;for(Da in P)Da in a||(Ug(P[Da]),delete P[Da]);for(var eb in a)eb in P||(Da=new Image,Da.src=eb,d=a[eb],""===d?d=Da:(d=Ng("A",{href:d}),d.appendChild(Da)),this.u.appendChild(d), 449P[eb]=d);ph(this.u,!xb(a))}}l=Xh.prototype;l.Qk=function(a){a.preventDefault();Zh(this)};function Zh(a){dh(a.element,"ol-collapsed");a.f?Vg(a.B,a.K):Vg(a.K,a.B);a.f=!a.f}l.Pk=function(){return this.j};l.Sk=function(a){this.j!==a&&(this.j=a,dh(this.element,"ol-uncollapsible"),!a&&this.f&&Zh(this))};l.Rk=function(a){this.j&&this.f!==a&&Zh(this)};l.Ok=function(){return this.f};function $h(a){a=m(a)?a:{};var c=m(a.className)?a.className:"ol-rotate",d=m(a.label)?a.label:"\u21e7";this.f=null;ia(d)?this.f=Ng("SPAN","ol-compass",d):(this.f=d,bh(this.f,"ol-compass"));d=Ng("BUTTON",{"class":c+"-reset",type:"button",title:m(a.tipLabel)?a.tipLabel:"Reset rotation"},this.f);x(d,"click",$h.prototype.u,!1,this);c=Ng("DIV",c+" ol-unselectable ol-control",d);xh.call(this,{element:c,render:m(a.render)?a.render:ai,target:a.target});this.j=m(a.duration)?a.duration:250;this.g=m(a.autoHide)? 450a.autoHide:!0;this.l=void 0;this.g&&bh(this.element,"ol-hidden")}w($h,xh);$h.prototype.u=function(a){a.preventDefault();a=this.a;var c=a.$();if(null!==c){for(var d=c.Ca();d<-Math.PI;)d+=2*Math.PI;for(;d>Math.PI;)d-=2*Math.PI;
450m(d)&&(0<this.j&&a.Ma(ag({rotation:d,duration:this.j,easing:Wf})),c.$d(0))}}; 451function ai(a){a=a.frameState;if(null!==a){a=a.viewState.rotation;if(a!=this.l){var c="rotate("+180*a/Math.PI+"deg)";if(this.g){var d=this.element;0===a?bh(d,"ol-hidden"):ch(d,"ol-hidden")}this.f.style.msTransform=c;this.f.style.webkitTransform=c;this.f.style.transform=c}this.l=a}};function bi(a){a=m(a)?a:{};var c=m(a.className)?a.className:"ol-zoom",d=m(a.delta)?a.delta:1,e=m(a.zoomOutLabel)?a.zoomOutLabel:"\u2212",f=m(a.zoomOutTipLabel)?a.zoomOutTipLabel:"Zoom out",g=Ng("BUTTON",{"class":c+"-in",type:"button",title:m(a.zoomInTipLabel)?a.zoomInTipLabel:"Zoom in"},m(a.zoomInLabel)?a.zoomInLabel:"+");x(g,"click",sa(bi.prototype.g,d),!1,this);e=Ng("BUTTON",{"class":c+"-out",type:"button",title:f},e);x(e,"click",sa(bi.prototype.g,-d),!1,this);x(e,["mouseout",wc],function(){this.blur()}, 452!1);c=Ng("DIV",c+" ol-unselectable ol-control",g,e);xh.call(this,{element:c,target:a.target});this.f=m(a.duration)?a.duration:250}w(bi,xh);bi.prototype.g=function(a,c){c.preventDefault();var d=this.a,e=d.$();if(null!==e){var f=e.Ba();m(f)&&(0<this.f&&d.Ma(bg({resolution:f,duration:this.f,easing:Wf})),d=e.constrainResolution(f,a),e.Ob(d))}};function di(a){a=m(a)?a:{};var c=new sg;(m(a.zoom)?a.zoom:1)&&c.push(new bi(a.zoomOptions));(m(a.rotate)?a.rotate:1)&&c.push(new $h(a.rotateOptions));(m(a.attribution)?a.attribution:1)&&c.push(new Xh(a.attributionOptions));return c};var ei=Lb?"webkitfullscreenchange":Kb?"mozfullscreenchange":Ib?"MSFullscreenChange":"fullscreenchange";function fi(){var a=Gg().b,c=a.body;return!!(c.webkitRequestFullscreen||c.mozRequestFullScreen&&a.mozFullScreenEnabled||c.msRequestFullscreen&&a.msFullscreenEnabled||c.requestFullscreen&&a.fullscreenEnabled)} 453function gi(a){a.webkitRequestFullscreen?a.webkitRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.requestFullscreen&&a.requestFullscreen()}function hi(){var a=Gg().b;return!!(a.webkitIsFullScreen||a.mozFullScreen||a.msFullscreenElement||a.fullscreenElement)};function ii(a){a=m(a)?a:{};this.f=m(a.className)?a.className:"ol-full-screen";var c=m(a.label)?a.label:"\u2194";this.g=ia(c)?document.createTextNode(String(c)):c;c=m(a.labelActive)?a.labelActive:"\u00d7";this.j=ia(c)?document.createTextNode(String(c)):c;c=m(a.tipLabel)?a.tipLabel:"Toggle full-screen";c=Ng("BUTTON",{"class":this.f+"-"+hi(),type:"button",title:c},this.g);x(c,"click",this.A,!1,this);x(ba.document,ei,this.l,!1,this);var d=this.f+" ol-unselectable ol-control "+(fi()?"":"ol-unsupported"), 454c=Ng("DIV",d,c);xh.call(this,{element:c,target:a.target});this.u=m(a.keys)?a.keys:!1}w(ii,xh); 455ii.prototype.A=function(a){a.preventDefault();fi()&&(a=this.a,null!==a&&(hi()?(a=Gg().b,a.webkitCancelFullScreen?a.webkitCancelFullScreen():a.mozCancelFullScreen?a.mozCancelFullScreen():a.msExitFullscreen?a.msExitFullscreen():a.exitFullscreen&&a.exitFullscreen()):(a=a.ff(),a=Jg(a),this.u?a.mozRequestFullScreenWithKeys?a.mozRequestFullScreenWithKeys():a.webkitRequestFullscreen?a.webkitRequestFullscreen():gi(a):gi(a))))}; 456ii.prototype.l=function(){var a=this.f+"-true",c=this.f+"-false",d=Wg(this.element),e=this.a;hi()?(ah(d,c)&&(ch(d,c),bh(d,a)),Vg(this.j,this.g)):(ah(d,a)&&(ch(d,a),bh(d,c)),Vg(this.g,this.j));null===e||e.Kc()};function ji(a){a=m(a)?a:{};var c=Ng("DIV",m(a.className)?a.className:"ol-mouse-position");xh.call(this,{element:c,render:m(a.render)?a.render:ki,target:a.target});x(this,id("projection"),this.Tk,!1,this);m(a.coordinateFormat)&&this.hh(a.coordinateFormat);m(a.projection)&&this.tg(Ae(a.projection));this.u=m(a.undefinedHTML)?a.undefinedHTML:"";this.l=c.innerHTML;this.j=this.g=this.f=null}w(ji,xh); 457function ki(a){a=a.frameState;null===a?this.f=null:this.f!=a.viewState.projection&&(this.f=a.viewState.projection,this.g=null);li(this,this.j)}l=ji.prototype;l.Tk=function(){this.g=null};l.Tf=function(){return this.get("coordinateFormat")};l.sg=function(){return this.get("projection")};l.Oj=function(a){this.j=this.a.Dd(a.b);li(this,this.j)};l.Pj=function(){li(this,null);this.j=null}; 458l.setMap=function(a){ji.aa.setMap.call(this,a);null!==a&&(a=a.a,this.v.push(x(a,"mousemove",this.Oj,!1,this),x(a,"mouseout",this.Pj,!1,this)))};l.hh=function(a){this.set("coordinateFormat",a)};l.tg=function(a){this.set("projection",a)};function li(a,c){var d=a.u;if(null!==c&&null!==a.f){if(null===a.g){var e=a.sg();a.g=m(e)?Ee(a.f,e):Ue}e=a.a.ta(c);null!==e&&(a.g(e,e),d=a.Tf(),d=m(d)?d(e):e.toString())}m(a.l)&&d==a.l||(a.element.innerHTML=d,a.l=d)};function mi(a,c,d){oc.call(this);this.ga=null;this.c=!1;this.g=a;this.i=d;this.b=c||window;this.a=ra(this.f,this)}w(mi,oc);mi.prototype.start=function(){ni(this);this.c=!1;var a=oi(this),c=pi(this);a&&!c&&this.b.mozRequestAnimationFrame?(this.ga=x(this.b,"MozBeforePaint",this.a),this.b.mozRequestAnimationFrame(null),this.c=!0):this.ga=a&&c?a.call(this.b,this.a):this.b.setTimeout(se(this.a),20)};
459function ni(a){if(null!=a.ga){var c=oi(a),d=pi(a);c&&!d&&a.b.mozRequestAnimationFrame?Xc(a.ga):c&&d?d.call(a.b,a.ga):a.b.clearTimeout(a.ga)}a.ga=null}mi.prototype.f=function(){this.c&&this.ga&&Xc(this.ga);this.ga=null;this.g.call(this.i,ta())};mi.prototype.Y=function(){ni(this);mi.aa.Y.call(this)};function oi(a){a=a.b;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null} 460function pi(a){a=a.b;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};function qi(a){ba.setTimeout(function(){throw a;},0)}function ri(a,c){var d=a;c&&(d=ra(a,c));d=si(d);!ka(ba.setImmediate)||ba.Window&&ba.Window.prototype&&ba.Window.prototype.setImmediate==ba.setImmediate?(ti||(ti=ui()),ti(d)):ba.setImmediate(d)}var ti; 461function ui(){var a=ba.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!ob("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var c=a.contentWindow,a=c.document;a.open();a.write("");a.close();var d="callImmediate"+Math.random(),e="file:"==c.location.protocol?"*":c.location.protocol+"//"+c.location.host,a=ra(function(a){if(("*"==e||a.origin==e)&&a.data== 462d)this.port1.onmessage()},this);c.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){c.postMessage(d,e)}}});if("undefined"!==typeof a&&!ob("Trident")&&!ob("MSIE")){var c=new a,d={},e=d;c.port1.onmessage=function(){if(m(d.next)){d=d.next;var a=d.Pf;d.Pf=null;a()}};return function(a){e.next={Pf:a};e=e.next;c.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(a){var c=document.createElement("SCRIPT"); 463c.onreadystatechange=function(){c.onreadystatechange=null;c.parentNode.removeChild(c);c=null;a();a=null};document.documentElement.appendChild(c)}:function(a){ba.setTimeout(a,0)}}var si=re;function vi(a,c){this.a={};this.b=[];this.c=0;var d=arguments.length;if(1<d){if(d%2)throw Error("Uneven number of arguments");for(var e=0;e<d;e+=2)this.set(arguments[e],arguments[e+1])}else if(a){a instanceof vi?(d=a.O(),e=a.Wb()):(d=tb(a),e=sb(a));for(var f=0;f<d.length;f++)this.set(d[f],e[f])}}l=vi.prototype;l.Sb=function(){return this.c};l.Wb=function(){wi(this);for(var a=[],c=0;c<this.b.length;c++)a.push(this.a[this.b[c]]);return a};l.O=function(){wi(this);return this.b.concat()}; 464l.va=function(){return 0==this.c};l.clear=function(){this.a={};this.c=this.b.length=0};l.remove=function(a){return xi(this.a,a)?(delete this.a[a],this.c--,this.b.length>2*this.c&&wi(this),!0):!1};function wi(a){if(a.c!=a.b.length){for(var c=0,d=0;c<a.b.length;){var e=a.b[c];xi(a.a,e)&&(a.b[d++]=e);c++}a.b.length=d}if(a.c!=a.b.length){for(var f={},d=c=0;c<a.b.length;)e=a.b[c],xi(f,e)||(a.b[d++]=e,f[e]=1),c++;a.b.length=d}}l.get=function(a,c){return xi(this.a,a)?this.a[a]:c}; 465l.set=function(a,c){xi(this.a,a)||(this.c++,this.b.push(a));this.a[a]=c};l.forEach=function(a,c){for(var d=this.O(),e=0;e<d.length;e++){var f=d[e],g=this.get(f);a.call(c,g,f,this)}};l.clone=function(){return new vi(this)};function xi(a,c){return Object.prototype.hasOwnProperty.call(a,c)};function yi(){this.b=ta()}new yi;yi.prototype.set=function(a){this.b=a};yi.prototype.reset=function(){this.set(ta())};yi.prototype.get=function(){return this.b};function zi(a){ad.call(this);this.b=a||window;this.a=x(this.b,"resize",this.f,!1,this);this.c=Mg(this.b||window)}w(zi,ad);zi.prototype.Y=function(){zi.aa.Y.call(this);this.a&&(Xc(this.a),this.a=null);this.c=this.b=null};zi.prototype.f=function(){var a=Mg(this.b||window),c=this.c;a==c||a&&c&&a.width==c.width&&a.height==c.height||(this.c=a,C(this,"resize"))};function Ai(a,c,d,e,f){if(!(Ib||Jb||Lb&&Tb("525")))return!0;if(Mb&&f)return Bi(a);if(f&&!e)return!1;ja(c)&&(c=Ci(c));if(!d&&(17==c||18==c||Mb&&91==c))return!1;if((Lb||Jb)&&e&&d)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(Ib&&e&&c==a)return!1;switch(a){case 13:return!0;case 27:return!(Lb||Jb)}return Bi(a)} 466function Bi(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||(Lb||Jb)&&0==a)return!0;switch(a){case 32:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}}
466function Ci(a){if(Kb)a=Di(a);else if(Mb&&Lb)a:switch(a){case 93:a=91;break a}return a} 467function Di(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};function Ei(a,c){ad.call(this);a&&Fi(this,a,c)}w(Ei,ad);l=Ei.prototype;l.dd=null;l.Sd=null;l.$e=null;l.Td=null;l.Oa=-1;l.Gb=-1;l.Fe=!1; 468var Gi={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},Hi={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},Ii=Ib||Jb||Lb&&Tb("525"),Ji=Mb&&Kb; 469Ei.prototype.b=function(a){if(Lb||Jb)if(17==this.Oa&&!a.C||18==this.Oa&&!a.a||Mb&&91==this.Oa&&!a.u)this.Gb=this.Oa=-1;-1==this.Oa&&(a.C&&17!=a.g?this.Oa=17:a.a&&18!=a.g?this.Oa=18:a.u&&91!=a.g&&(this.Oa=91));Ii&&!Ai(a.g,this.Oa,a.f,a.C,a.a)?this.handleEvent(a):(this.Gb=Ci(a.g),Ji&&(this.Fe=a.a))};Ei.prototype.a=function(a){this.Gb=this.Oa=-1;this.Fe=a.a}; 470Ei.prototype.handleEvent=function(a){var c=a.b,d,e,f=c.altKey;Ib&&"keypress"==a.type?(d=this.Gb,e=13!=d&&27!=d?c.keyCode:0):(Lb||Jb)&&"keypress"==a.type?(d=this.Gb,e=0<=c.charCode&&63232>c.charCode&&Bi(d)?c.charCode:0):Hb&&!Lb?(d=this.Gb,e=Bi(d)?c.keyCode:0):(d=c.keyCode||this.Gb,e=c.charCode||0,Ji&&(f=this.Fe),Mb&&63==e&&224==d&&(d=191));var g=d=Ci(d),h=c.keyIdentifier;d?63232<=d&&d in Gi?g=Gi[d]:25==d&&a.f&&(g=9):h&&h in Hi&&(g=Hi[h]);this.Oa=g;a=new Ki(g,e,0,c);a.a=f;C(this,a)}; 471function Fi(a,c,d){a.Td&&Li(a);a.dd=c;a.Sd=x(a.dd,"keypress",a,d);a.$e=x(a.dd,"keydown",a.b,d,a);a.Td=x(a.dd,"keyup",a.a,d,a)}function Li(a){a.Sd&&(Xc(a.Sd),Xc(a.$e),Xc(a.Td),a.Sd=null,a.$e=null,a.Td=null);a.dd=null;a.Oa=-1;a.Gb=-1}Ei.prototype.Y=function(){Ei.aa.Y.call(this);Li(this)};function Ki(a,c,d,e){yc.call(this,e);this.type="key";this.g=a;this.v=c}w(Ki,yc);function Mi(a,c){ad.call(this);var d=this.b=a;(d=la(d)&&1==d.nodeType?this.b:this.b?this.b.body:null)&&ih(d,"direction");this.a=x(this.b,Kb?"DOMMouseScroll":"mousewheel",this,c)}w(Mi,ad); 472Mi.prototype.handleEvent=function(a){var c=0,d=0,e=0;a=a.b;if("mousewheel"==a.type){d=1;if(Ib||Lb&&(Nb||Tb("532.0")))d=40;e=Ni(-a.wheelDelta,d);m(a.wheelDeltaX)?(c=Ni(-a.wheelDeltaX,d),d=Ni(-a.wheelDeltaY,d)):d=e}else e=a.detail,100<e?e=3:-100>e&&(e=-3),m(a.axis)&&a.axis===a.HORIZONTAL_AXIS?c=e:d=e;ja(this.c)&&Xb(c,-this.c,this.c);ja(this.f)&&(d=Xb(d,-this.f,this.f));c=new Oi(e,a,0,d);C(this,c)};function Ni(a,c){return Lb&&(Mb||Ob)&&0!=a%c?a:a/c} 473Mi.prototype.Y=function(){Mi.aa.Y.call(this);Xc(this.a);this.a=null};function Oi(a,c,d,e){yc.call(this,c);this.type="mousewheel";this.detail=a;this.A=e}w(Oi,yc);function Pi(a,c,d){tc.call(this,a);this.b=c;a=m(d)?d:{};this.buttons=Qi(a);this.pressure=Ri(a,this.buttons);this.bubbles=Ab(a,"bubbles",!1);this.cancelable=Ab(a,"cancelable",!1);this.view=Ab(a,"view",null);this.detail=Ab(a,"detail",null);this.screenX=Ab(a,"screenX",0);this.screenY=Ab(a,"screenY",0);this.clientX=Ab(a,"clientX",0);this.clientY=Ab(a,"clientY",0);this.button=Ab(a,"button",0);this.relatedTarget=Ab(a,"relatedTarget",null);this.pointerId=Ab(a,"pointerId",0);this.width=Ab(a,"width",0);this.height= 474Ab(a,"height",0);this.pointerType=Ab(a,"pointerType","");this.isPrimary=Ab(a,"isPrimary",!1);c.preventDefault&&(this.preventDefault=function(){c.preventDefault()})}w(Pi,tc);function Qi(a){if(a.buttons||Si)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a}function Ri(a,c){var d=0;a.pressure?d=a.pressure:d=c?.5:0;return d}var Si=!1;try{Si=1===(new MouseEvent("click",{buttons:1})).buttons}catch(Ti){};function Ui(a,c){var d=Qg("CANVAS");m(a)&&(d.width=a);m(c)&&(d.height=c);return d.getContext("2d")} 475var Vi=function(){var a;return function(){if(!m(a))if(ba.getComputedStyle){var c=Qg("P"),d,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(c);for(var f in e)f in c.style&&(c.style[f]="translate(1px,1px)",d=ba.getComputedStyle(c).getPropertyValue(e[f]));Ug(c);a=d&&"none"!==d}else a=!1;return a}}(),Wi=function(){var a;return function(){if(!m(a))if(ba.getComputedStyle){var c=Qg("P"), 476d,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(c);for(var f in e)f in c.style&&(c.style[f]="translate3d(1px,1px,1px)",d=ba.getComputedStyle(c).getPropertyValue(e[f]));Ug(c);a=d&&"none"!==d}else a=!1;return a}}();function Xi(a,c){var d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.b=c;d.msTransform=c;d.transform=c;Ib&&!Wb&&(a.style.transformOrigin="0 0")} 477function Yi(a,c){var d;if(Wi()){if(m(6)){var e=Array(16);for(d=0;16>d;++d)e[d]=c[d].toFixed(6);d=e.join(",")}else d=c.join(",");Xi(a,"matrix3d("+d+")")}
477else if(Vi()){e=[c[0],c[1],c[4],c[5],c[12],c[13]];if(m(6)){var f=Array(6);for(d=0;6>d;++d)f[d]=e[d].toFixed(6);d=f.join(",")}else d=e.join(",");Xi(a,"matrix("+d+")")}else a.style.left=Math.round(c[12])+"px",a.style.top=Math.round(c[13])+"px"};var Zi=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function $i(a,c){var d,e,f=Zi.length;for(e=0;e<f;++e)try{if(d=a.getContext(Zi[e],c),null!==d)return d}catch(g){}return null};var aj,bj=ba.devicePixelRatio||1,cj=!1,dj=function(){if(!("HTMLCanvasElement"in ba))return!1;try{var a=Ui();if(null===a)return!1;m(a.setLineDash)&&(cj=!0);return!0}catch(c){return!1}}(),ej="DeviceOrientationEvent"in ba,fj="geolocation"in ba.navigator,gj="ontouchstart"in ba,hj="PointerEvent"in ba,ij=!!ba.navigator.msPointerEnabled,jj=!1,kj,lj=[]; 478if("WebGLRenderingContext"in ba)try{var mj=$i(Qg("CANVAS"),{failIfMajorPerformanceCaveat:!0});null!==mj&&(jj=!0,kj=mj.getParameter(mj.MAX_TEXTURE_SIZE),lj=mj.getSupportedExtensions())}catch(nj){}aj=jj;va=lj;ua=kj;function oj(a,c){this.b=a;this.i=c};function pj(a){oj.call(this,a,{mousedown:this.ik,mousemove:this.jk,mouseup:this.mk,mouseover:this.lk,mouseout:this.kk});this.a=a.a;this.c=[]}w(pj,oj);function qj(a,c){for(var d=a.c,e=c.clientX,f=c.clientY,g=0,h=d.length,k;g<h&&(k=d[g]);g++){var n=Math.abs(f-k[1]);if(25>=Math.abs(e-k[0])&&25>=n)return!0}return!1}function rj(a){var c=sj(a,a.b),d=c.preventDefault;c.preventDefault=function(){a.preventDefault();d()};c.pointerId=1;c.isPrimary=!0;c.pointerType="mouse";return c}l=pj.prototype; 479l.ik=function(a){if(!qj(this,a)){(1).toString()in this.a&&this.cancel(a);var c=rj(a);this.a[(1).toString()]=a;tj(this.b,uj,c,a)}};l.jk=function(a){if(!qj(this,a)){var c=rj(a);tj(this.b,vj,c,a)}};l.mk=function(a){if(!qj(this,a)){var c=this.a[(1).toString()];c&&c.button===a.button&&(c=rj(a),tj(this.b,wj,c,a),zb(this.a,(1).toString()))}};l.lk=function(a){if(!qj(this,a)){var c=rj(a);xj(this.b,c,a)}};l.kk=function(a){if(!qj(this,a)){var c=rj(a);yj(this.b,c,a)}}; 480l.cancel=function(a){var c=rj(a);this.b.cancel(c,a);zb(this.a,(1).toString())};function zj(a){oj.call(this,a,{MSPointerDown:this.rk,MSPointerMove:this.sk,MSPointerUp:this.vk,MSPointerOut:this.tk,MSPointerOver:this.uk,MSPointerCancel:this.qk,MSGotPointerCapture:this.ok,MSLostPointerCapture:this.pk});this.a=a.a;this.c=["","unavailable","touch","pen","mouse"]}w(zj,oj);function Bj(a,c){var d=c;ja(c.b.pointerType)&&(d=sj(c,c.b),d.pointerType=a.c[c.b.pointerType]);return d}l=zj.prototype;l.rk=function(a){this.a[a.b.pointerId]=a;var c=Bj(this,a);tj(this.b,uj,c,a)}; 481l.sk=function(a){var c=Bj(this,a);tj(this.b,vj,c,a)};l.vk=function(a){var c=Bj(this,a);tj(this.b,wj,c,a);zb(this.a,a.b.pointerId)};l.tk=function(a){var c=Bj(this,a);yj(this.b,c,a)};l.uk=function(a){var c=Bj(this,a);xj(this.b,c,a)};l.qk=function(a){var c=Bj(this,a);this.b.cancel(c,a);zb(this.a,a.b.pointerId)};l.pk=function(a){C(this.b,new Pi("lostpointercapture",a,a.b))};l.ok=function(a){C(this.b,new Pi("gotpointercapture",a,a.b))};function Cj(a){oj.call(this,a,{pointerdown:this.Xm,pointermove:this.Ym,pointerup:this.an,pointerout:this.Zm,pointerover:this.$m,pointercancel:this.Wm,gotpointercapture:this.wj,lostpointercapture:this.hk})}w(Cj,oj);l=Cj.prototype;l.Xm=function(a){Dj(this.b,a)};l.Ym=function(a){Dj(this.b,a)};l.an=function(a){Dj(this.b,a)};l.Zm=function(a){Dj(this.b,a)};l.$m=function(a){Dj(this.b,a)};l.Wm=function(a){Dj(this.b,a)};l.hk=function(a){Dj(this.b,a)};l.wj=function(a){Dj(this.b,a)};function Ej(a,c){oj.call(this,a,{touchstart:this.co,touchmove:this.bo,touchend:this.ao,touchcancel:this.$n});this.a=a.a;this.j=c;this.c=void 0;this.g=0;this.f=void 0}w(Ej,oj);l=Ej.prototype;l.dh=function(){this.g=0;this.f=void 0}; 482function Fj(a,c,d){c=sj(c,d);c.pointerId=d.identifier+2;c.bubbles=!0;c.cancelable=!0;c.detail=a.g;c.button=0;c.buttons=1;c.width=d.webkitRadiusX||d.radiusX||0;c.height=d.webkitRadiusY||d.radiusY||0;c.pressure=d.webkitForce||d.force||.5;c.isPrimary=a.c===d.identifier;c.pointerType="touch";c.clientX=d.clientX;c.clientY=d.clientY;c.screenX=d.screenX;c.screenY=d.screenY;return c} 483function Gj(a,c,d){function e(){c.preventDefault()}var f=Array.prototype.slice.call(c.b.changedTouches),g=f.length,h,k;for(h=0;h<g;++h)k=Fj(a,c,f[h]),k.preventDefault=e,d.call(a,c,k)} 484l.co=function(a){var c=a.b.touches,d=tb(this.a),e=d.length;if(e>=c.length){var f=[],g,h,k;for(g=0;g<e;++g){h=d[g];k=this.a[h];var n;if(!(n=1==h))a:{n=c.length;for(var p=void 0,q=0;q<n;q++)if(p=c[q],p.identifier===h-2){n=!0;break a}n=!1}n||f.push(k.ec)}for(g=0;g<f.length;++g)this.Ge(a,f[g])}c=rb(this.a);
484if(0===c||1===c&&(1).toString()in this.a)this.c=a.b.changedTouches[0].identifier,m(this.f)&&ba.clearTimeout(this.f);Hj(this,a);this.g++;Gj(this,a,this.Sm)}; 485l.Sm=function(a,c){this.a[c.pointerId]={target:c.target,ec:c,Ng:c.target};var d=this.b;c.bubbles=!0;tj(d,Ij,c,a);d=this.b;c.bubbles=!1;tj(d,Jj,c,a);tj(this.b,uj,c,a)};l.bo=function(a){a.preventDefault();Gj(this,a,this.nk)};l.nk=function(a,c){var d=this.a[c.pointerId];if(d){var e=d.ec,f=d.Ng;tj(this.b,vj,c,a);e&&f!==c.target&&(e.relatedTarget=c.target,c.relatedTarget=f,e.target=f,c.target?(yj(this.b,e,a),xj(this.b,c,a)):(c.target=f,c.relatedTarget=null,this.Ge(a,c)));d.ec=c;d.Ng=c.target}}; 486l.ao=function(a){Hj(this,a);Gj(this,a,this.eo)};l.eo=function(a,c){tj(this.b,wj,c,a);this.b.ec(c,a);var d=this.b;c.bubbles=!1;tj(d,Kj,c,a);zb(this.a,c.pointerId);c.isPrimary&&(this.c=void 0,this.f=ba.setTimeout(ra(this.dh,this),200))};l.$n=function(a){Gj(this,a,this.Ge)};l.Ge=function(a,c){this.b.cancel(c,a);this.b.ec(c,a);var d=this.b;c.bubbles=!1;tj(d,Kj,c,a);zb(this.a,c.pointerId);c.isPrimary&&(this.c=void 0,this.f=ba.setTimeout(ra(this.dh,this),200))}; 487function Hj(a,c){var d=a.j.c,e=c.b.changedTouches[0];if(a.c===e.identifier){var f=[e.clientX,e.clientY];d.push(f);ba.setTimeout(function(){$a(d,f)},2500)}};function Lj(a){ad.call(this);this.f=a;this.a={};this.c={};this.b=[];hj?Mj(this,new Cj(this)):ij?Mj(this,new zj(this)):(a=new pj(this),Mj(this,a),gj&&Mj(this,new Ej(this,a)));a=this.b.length;for(var c,d=0;d<a;d++)c=this.b[d],Nj(this,tb(c.i))}w(Lj,ad);function Mj(a,c){var d=tb(c.i);d&&(Sa(d,function(a){var d=c.i[a];d&&(this.c[a]=ra(d,c))},a),a.b.push(c))}Lj.prototype.i=function(a){var c=this.c[a.type];c&&c(a)};function Nj(a,c){Sa(c,function(a){x(this.f,a,this.i,!1,this)},a)} 488function Oj(a,c){Sa(c,function(a){Wc(this.f,a,this.i,!1,this)},a)}function sj(a,c){for(var d={},e,f=0,g=Pj.length;f<g;f++)e=Pj[f][0],d[e]=a[e]||c[e]||Pj[f][1];return d}Lj.prototype.ec=function(a,c){a.bubbles=!0;tj(this,Qj,a,c)};Lj.prototype.cancel=function(a,c){tj(this,Rj,a,c)};function yj(a,c,d){a.ec(c,d);var e=c.relatedTarget;null!==e&&Xg(c.target,e)||(c.bubbles=!1,tj(a,Kj,c,d))} 489function xj(a,c,d){c.bubbles=!0;tj(a,Ij,c,d);var e=c.relatedTarget;null!==e&&Xg(c.target,e)||(c.bubbles=!1,tj(a,Jj,c,d))}function tj(a,c,d,e){C(a,new Pi(c,e,d))}function Dj(a,c){C(a,new Pi(c.type,c,c.b))}Lj.prototype.Y=function(){for(var a=this.b.length,c,d=0;d<a;d++)c=this.b[d],Oj(this,tb(c.i));Lj.aa.Y.call(this)}; 490var vj="pointermove",uj="pointerdown",wj="pointerup",Ij="pointerover",Qj="pointerout",Jj="pointerenter",Kj="pointerleave",Rj="pointercancel",Pj=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary", 491!1],["type",""],["target",null],["currentTarget",null],["which",0]];function Sj(a,c,d,e,f){wh.call(this,a,c,f);this.b=d;this.originalEvent=d.b;this.pixel=c.Dd(this.originalEvent);this.coordinate=c.ta(this.pixel);this.dragging=m(e)?e:!1}w(Sj,wh);Sj.prototype.preventDefault=function(){Sj.aa.preventDefault.call(this);this.b.preventDefault()};Sj.prototype.c=function(){Sj.aa.c.call(this);this.b.c()};function Tj(a,c,d,e,f){Sj.call(this,a,c,d.b,e,f);this.a=d}w(Tj,Sj); 492function Uj(a){ad.call(this);this.c=a;this.g=0;this.j=!1;this.a=this.l=this.f=null;a=this.c.a;this.u=0;this.v={};this.i=new Lj(a);this.b=null;this.l=x(this.i,uj,this.Sj,!1,this);this.C=x(this.i,vj,this.wn,!1,this)}w(Uj,ad);function Vj(a,c){var d;d=new Tj(Wj,a.c,c);C(a,d);0!==a.g?(ba.clearTimeout(a.g),a.g=0,d=new Tj(Xj,a.c,c),C(a,d)):a.g=ba.setTimeout(ra(function(){this.g=0;var a=new Tj(Yj,this.c,c);C(this,a)},a),250)} 493function Zj(a,c){c.type==ak||c.type==bk?delete a.v[c.pointerId]:c.type==ck&&(a.v[c.pointerId]=!0);a.u=rb(a.v)}l=Uj.prototype;l.dg=function(a){Zj(this,a);var c=new Tj(ak,this.c,a);C(this,c);!this.j&&0===a.button&&Vj(this,this.a);0===this.u&&(Sa(this.f,Xc),this.f=null,this.j=!1,this.a=null,sc(this.b),this.b=null)}; 494l.Sj=function(a){Zj(this,a);var c=new Tj(ck,this.c,a);C(this,c);this.a=a;null===this.f&&(this.b=new Lj(document),this.f=[x(this.b,dk,this.Jk,!1,this),x(this.b,ak,this.dg,!1,this),x(this.i,bk,this.dg,!1,this)])};
494l.Jk=function(a){if(a.clientX!=this.a.clientX||a.clientY!=this.a.clientY){this.j=!0;var c=new Tj(ek,this.c,a,this.j);C(this,c)}a.preventDefault()};l.wn=function(a){C(this,new Tj(a.type,this.c,a,null!==this.a&&(a.clientX!=this.a.clientX||a.clientY!=this.a.clientY)))}; 495l.Y=function(){null!==this.C&&(Xc(this.C),this.C=null);null!==this.l&&(Xc(this.l),this.l=null);null!==this.f&&(Sa(this.f,Xc),this.f=null);null!==this.b&&(sc(this.b),this.b=null);null!==this.i&&(sc(this.i),this.i=null);Uj.aa.Y.call(this)};var Yj="singleclick",Wj="click",Xj="dblclick",ek="pointerdrag",dk="pointermove",ck="pointerdown",ak="pointerup",bk="pointercancel",fk={wo:Yj,lo:Wj,mo:Xj,po:ek,so:dk,oo:ck,vo:ak,uo:"pointerover",to:"pointerout",qo:"pointerenter",ro:"pointerleave",no:bk};function gk(a){gd.call(this);var c=Cb(a);c.brightness=m(a.brightness)?a.brightness:0;c.contrast=m(a.contrast)?a.contrast:1;c.hue=m(a.hue)?a.hue:0;c.opacity=m(a.opacity)?a.opacity:1;c.saturation=m(a.saturation)?a.saturation:1;c.visible=m(a.visible)?a.visible:!0;c.maxResolution=m(a.maxResolution)?a.maxResolution:Infinity;c.minResolution=m(a.minResolution)?a.minResolution:0;this.I(c)}w(gk,gd);l=gk.prototype;l.Ab=function(){return this.get("brightness")};l.Bb=function(){return this.get("contrast")}; 496l.Cb=function(){return this.get("hue")};function hk(a){var c=a.Ab(),d=a.Bb(),e=a.Cb(),f=a.Jb(),g=a.Fb(),h=a.Ye(),k=a.ib(),n=a.R(),p=a.Db(),q=a.Eb();return{layer:a,brightness:Xb(c,-1,1),contrast:Math.max(d,0),hue:e,opacity:Xb(f,0,1),saturation:Math.max(g,0),u:h,visible:k,Hb:!0,extent:n,maxResolution:p,minResolution:Math.max(q,0)}}l.R=function(){return this.get("extent")};l.Db=function(){return this.get("maxResolution")};l.Eb=function(){return this.get("minResolution")};l.Jb=function(){return this.get("opacity")}; 497l.Fb=function(){return this.get("saturation")};l.ib=function(){return this.get("visible")};l.gc=function(a){this.set("brightness",a)};l.hc=function(a){this.set("contrast",a)};l.ic=function(a){this.set("hue",a)};l.$b=function(a){this.set("extent",a)};l.jc=function(a){this.set("maxResolution",a)};l.kc=function(a){this.set("minResolution",a)};l.ac=function(a){this.set("opacity",a)};l.lc=function(a){this.set("saturation",a)};l.mc=function(a){this.set("visible",a)};function ik(){};function jk(a,c,d,e,f,g){tc.call(this,a,c);this.vectorContext=d;this.frameState=e;this.context=f;this.glContext=g}w(jk,tc);function F(a){var c=Cb(a);delete c.source;gk.call(this,c);this.g=this.l=this.j=null;m(a.map)&&this.setMap(a.map);x(this,id("source"),this.Yj,!1,this);this.Jc(m(a.source)?a.source:null)}w(F,gk);function kk(a,c){return a.visible&&c>=a.minResolution&&c<a.maxResolution}l=F.prototype;l.We=function(a){a=m(a)?a:[];a.push(hk(this));return a};l.da=function(){var a=this.get("source");return m(a)?a:null};l.Ye=function(){var a=this.da();return null===a?"undefined":a.u};l.vl=function(){this.s()}; 498l.Yj=function(){null!==this.g&&(Xc(this.g),this.g=null);var a=this.da();null!==a&&(this.g=x(a,"change",this.vl,!1,this));this.s()};l.setMap=function(a){Xc(this.j);this.j=null;null===a&&this.s();Xc(this.l);this.l=null;null!==a&&(this.j=x(a,"precompose",function(a){var d=hk(this);d.Hb=!1;a.frameState.layerStatesArray.push(d);a.frameState.layerStates[ma(this)]=d},!1,this),this.l=x(this,"change",a.render,!1,a),this.s())};l.Jc=function(a){this.set("source",a)};function lk(a,c,d,e,f){ad.call(this);this.g=f;this.extent=a;this.i=d;this.resolution=c;this.state=e}w(lk,ad);function mk(a){C(a,"change")}lk.prototype.R=function(){return this.extent};function nk(a,c,d,e,f,g,h,k){Ed(a);0===c&&0===d||Hd(a,c,d);1==e&&1==f||Id(a,e,f);0!==g&&Jd(a,g);0===h&&0===k||Hd(a,h,k);return a}function ok(a,c){return a[0]==c[0]&&a[1]==c[1]&&a[4]==c[4]&&a[5]==c[5]&&a[12]==c[12]&&a[13]==c[13]}function pk(a,c,d){var e=a[1],f=a[5],g=a[13],h=c[0];c=c[1];d[0]=a[0]*h+a[4]*c+a[12];d[1]=e*h+f*c+g;return d};function qk(a){dd.call(this);this.a=a}w(qk,dd);l=qk.prototype;l.Ra=ca;l.bc=function(a,c,d,e){a=a.slice();pk(c.pixelToCoordinateMatrix,a,a);if(this.Ra(a,c,pe,this))return d.call(e,this.a)};l.ce=oe;l.Ad=function(a,c){return function(d,e){return Th(a,d,e,function(a){c[d]||
498(c[d]={});c[d][a.b.toString()]=a})}};l.yl=function(a){2===a.target.state&&rk(this)};function sk(a,c){var d=c.state;2!=d&&3!=d&&x(c,"change",a.yl,!1,a);0==d&&(c.load(),d=c.state);return 2==d} 499function rk(a){var c=a.a;c.ib()&&"ready"==c.Ye()&&a.s()}function tk(a,c){Bh(c.a)&&a.postRenderFunctions.push(sa(function(a,c,f){c=ma(a).toString();a=a.a;f=f.usedTiles[c];for(var g;Bh(a)&&!(c=a.b.pc,g=c.b[0].toString(),g in f&&f[g].contains(c.b));)a.pop().Yc()},c))}function uk(a,c){if(null!=c){var d,e,f;e=0;for(f=c.length;e<f;++e)d=c[e],a[ma(d).toString()]=d}}function vk(a,c){var d=c.T;m(d)&&(ia(d)?a.logos[d]="":la(d)&&(a.logos[d.src]=d.href))} 500function wk(a,c,d,e){c=ma(c).toString();d=d.toString();c in a?d in a[c]?(a=a[c][d],e.b<a.b&&(a.b=e.b),e.f>a.f&&(a.f=e.f),e.a<a.a&&(a.a=e.a),e.c>a.c&&(a.c=e.c)):a[c][d]=e:(a[c]={},a[c][d]=e)}function xk(a,c,d){return[c*(Math.round(a[0]/c)+d[0]%2/2),c*(Math.round(a[1]/c)+d[1]%2/2)]} 501function yk(a,c,d,e,f,g,h,k,n,p){var q=ma(c).toString();q in a.wantedTiles||(a.wantedTiles[q]={});var r=a.wantedTiles[q];a=a.tileQueue;var t=d.minZoom,v,B,z,D,A,y;for(y=h;y>=t;--y)for(B=kg(d,g,y,B),z=d.ua(y),D=B.b;D<=B.f;++D)for(A=B.a;A<=B.c;++A)h-y<=k?(v=c.Ub(y,D,A,e,f),0==v.state&&(r[fg(v.b)]=!0,v.jb()in a.c||zk(a,[v,q,hg(d,v.b),z])),m(n)&&n.call(p,v)):c.Bf(y,D,A)};function Ak(a){this.A=a.opacity;this.D=a.rotateWithView;this.C=a.rotation;this.v=a.scale;this.B=a.snapToPixel}l=Ak.prototype;l.ge=function(){return this.A};l.Kd=function(){return this.D};l.he=function(){return this.C};l.ie=function(){return this.v};l.Ld=function(){return this.B};l.je=function(a){this.C=a};l.ke=function(a){this.v=a};function Bk(a){a=m(a)?a:{};this.i=m(a.anchor)?a.anchor:[.5,.5];this.f=null;this.a=m(a.anchorOrigin)?a.anchorOrigin:"top-left";this.j=m(a.anchorXUnits)?a.anchorXUnits:"fraction";this.l=m(a.anchorYUnits)?a.anchorYUnits:"fraction";var c=m(a.crossOrigin)?a.crossOrigin:null,d=m(a.img)?a.img:null,e=m(a.imgSize)?a.imgSize:null,f=a.src;m(f)&&0!==f.length||null===d||(f=d.src);var g=m(a.src)?0:2,h=Ck.Na(),k=h.get(f,c);null===k&&(k=new Dk(d,f,e,c,g),h.set(f,c,k));this.b=k;this.ea=m(a.offset)?a.offset:[0,0]; 502this.c=m(a.offsetOrigin)?a.offsetOrigin:"top-left";this.g=null;this.u=m(a.size)?a.size:null;Ak.call(this,{opacity:m(a.opacity)?a.opacity:1,rotation:m(a.rotation)?a.rotation:0,scale:m(a.scale)?a.scale:1,snapToPixel:m(a.snapToPixel)?a.snapToPixel:!0,rotateWithView:m(a.rotateWithView)?a.rotateWithView:!1})}w(Bk,Ak);l=Bk.prototype; 503l.pb=function(){if(null!==this.f)return this.f;var a=this.i,c=this.ab();if("fraction"==this.j||"fraction"==this.l){if(null===c)return null;a=this.i.slice();"fraction"==this.j&&(a[0]*=c[0]);"fraction"==this.l&&(a[1]*=c[1])}if("top-left"!=this.a){if(null===c)return null;a===this.i&&(a=this.i.slice());if("top-right"==this.a||"bottom-right"==this.a)a[0]=-a[0]+c[0];if("bottom-left"==this.a||"bottom-right"==this.a)a[1]=-a[1]+c[1]}return this.f=a};l.Kb=function(){return this.b.b};l.Gd=function(){return this.b.a}; 504l.jd=function(){return this.b.c};l.fe=function(){var a=this.b;if(null===a.i)if(a.l){var c=a.a[0],d=a.a[1],e=Ui(c,d);e.fillRect(0,0,c,d);a.i=e.canvas}else a.i=a.b;return a.i};l.ub=function(){if(null!==this.g)return this.g;var a=this.ea;if("top-left"!=this.c){var c=this.ab(),d=this.b.a;if(null===c||null===d)return null;a=a.slice();if("top-right"==this.c||"bottom-right"==this.c)a[0]=d[0]-c[0]-a[0];if("bottom-left"==this.c||"bottom-right"==this.c)a[1]=d[1]-c[1]-a[1]}return this.g=a};l.mm=function(){return this.b.g}; 505l.ab=function(){return null===this.u?this.b.a:this.u};l.bf=function(a,c){return x(this.b,"change",a,!1,c)};l.load=function(){this.b.load()};l.Af=function(a,c){Wc(this.b,"change",a,!1,c)};function Dk(a,c,d,e,f){ad.call(this);this.i=null;this.b=null===a?new Image:a;null!==e&&(this.b.crossOrigin=e);this.f=null;this.c=f;this.a=d;this.g=c;this.l=!1}w(Dk,ad);Dk.prototype.j=function(){this.c=3;Sa(this.f,Xc);this.f=null;C(this,"change")}; 506Dk.prototype.C=function(){this.c=2;this.a=[this.b.width,this.b.height];Sa(this.f,Xc);this.f=null;var a=Ui(1,1);a.drawImage(this.b,0,0);try{a.getImageData(0,0,1,1)}catch(c){this.l=!0}C(this,"change")};Dk.prototype.load=function(){if(0==this.c){this.c=1;this.f=[Vc(this.b,"error",this.j,!1,this),Vc(this.b,"load",this.C,!1,this)];try{this.b.src=this.g}catch(a){this.j()}}};function Ck(){this.b={};this.a=0}da(Ck);Ck.prototype.clear=function(){this.b={};this.a=0}; 507Ck.prototype.get=function(a,c){var d=c+":"+a;return d in this.b?this.b[d]:null};Ck.prototype.set=function(a,c,d){this.b[c+":"+a]=d;++this.a};function Ek(a,c){oc.call(this);this.g=c;this.f={};this.v={}}w(Ek,oc);function Fk(a){var c=a.viewState,d=a.coordinateToPixelMatrix;nk(d,a.size[0]/2,a.size[1]/2,1/c.resolution,-1/c.resolution,-c.rotation,-c.center[0],-c.center[1]);Gd(d,a.pixelToCoordinateMatrix)}l=Ek.prototype;l.Y=function(){pb(this.f,sc);Ek.aa.Y.call(this)}; 508function Gk(){var a=Ck.Na();if(32<a.a){var c=0,d,e;for(d in a.b){e=a.b[d];var f;if(f=0===(c++&3))Cc(e)?e=cd(e,void 0,void 0):(e=Rc(e),e=!!e&&Lc(e,void 0,void 0)),f=!e;f&&(delete a.b[d],--a.a)}}} 509l.kf=function(a,c,d,e,f,g){var h,k=c.viewState,n=k.resolution,p=k.projection,k=a;if(p.i){h=p.R();var p=je(h),q=a[0];if(q<h[0]||q>h[2])k=Math.ceil((h[0]-q)/p),k=[q+p*k,a[1]]}p=c.layerStatesArray;for(q=p.length-1;0<=q;--q){h=p[q];var r=h.layer;if(!h.Hb||kk(h,n)&&f.call(g,r))if(h=Hk(this,r).Ra(Fh(r.da())?k:a,c,d,e))return h}}; 510l.Bg=function(a,c,d,e,f,g){var h,k=c.viewState.resolution,n=c.layerStatesArray,p;for(p=n.length-1;0<=p;--p){h=n[p];var q=h.layer;if(kk(h,k)&&f.call(g,q)&&(h=Hk(this,q).bc(a,c,d,e)))return h}};l.Cg=function(a,c,d,e){a=this.kf(a,c,pe,this,d,e);return m(a)};function Hk(a,c){var d=ma(c).toString();if(d in a.f)return a.f[d];var e=a.Ke(c);a.f[d]=e;a.v[d]=x(e,"change",a.Ij,!1,a);return e}l.Ij=function(){this.g.render()};l.re=ca; 511l.Cn=function(a,c){for(var d in this.f)if(!(null!==c&&d in c.layerStates)){var e=d,f=this.f[e];delete this.f[e];Xc(this.v[e]);delete this.v[e];sc(f)}};function Ik(a,c){for(var d in a.f)if(!(d in c.layerStates)){c.postRenderFunctions.push(ra(a.Cn,a));break}};function Jk(a,c){this.j=a;this.i=c;this.b=[];this.a=[];this.c={}}Jk.prototype.clear=function(){this.b.length=0;this.a.length=0;yb(this.c)};function Kk(a){var c=a.b,d=a.a,e=c[0];1==c.length?(c.length=0,d.length=0):(c[0]=c.pop(),d[0]=d.pop(),Lk(a,0));c=a.i(e);delete a.c[c];return e}function zk(a,c){var d=a.j(c);Infinity!=d&&(a.b.push(c),a.a.push(d),a.c[a.i(c)]=!0,Mk(a,0,a.b.length-1))}Jk.prototype.Sb=function(){return this.b.length};Jk.prototype.va=function(){return 0===this.b.length}; 512function Lk(a,c){for(var d=a.b,e=a.a,f=d.length,g=d[c],h=e[c],k=c;c<f>>1;){var n=2*c+1,p=2*c+2,n=p<f&&e[p]<e[n]?p:n;d[c]=d[n];e[c]=e[n];c=n}d[c]=g;e[c]=h;Mk(a,k,c)}function Mk(a,c,d){var e=a.b;a=a.a;for(var f=e[d],g=a[d];d>c;){var h=d-1>>1;if(a[h]>g)e[d]=e[h],a[d]=a[h],d=h;else break}e[d]=f;a[d]=g}function Nk(a){var c=a.j,d=a.b,e=a.a,f=0,g=d.length,h,k,n;for(k=0;k<g;++k)h=d[k],n=c(h),Infinity==n?delete a.c[a.i(h)]:(e[f]=n,d[f++]=h);d.length=f;e.length=f;
512for(c=(a.b.length>>1)-1;0<=c;c--)Lk(a,c)};function Ok(a,c){Jk.call(this,function(c){return a.apply(null,c)},function(a){return a[0].jb()});this.l=c;this.f=0}w(Ok,Jk);Ok.prototype.g=function(a){a=a.target;var c=a.state;if(2===c||3===c||4===c)Wc(a,"change",this.g,!1,this),--this.f,this.l()};function Pk(a,c,d){for(var e=0,f;a.f<c&&e<d&&0<a.Sb();)f=Kk(a)[0],0===f.state&&(x(f,"change",a.g,!1,a),f.load(),++a.f,++e)};function Qk(a,c,d){this.f=a;this.c=c;this.g=d;this.b=[];this.a=this.i=0}Qk.prototype.update=function(a,c){this.b.push(a,c,ta())};function Rk(a,c){var d=a.f,e=a.a,f=a.c-e,g=Sk(a);return $f({source:c,duration:g,easing:function(a){return e*(Math.exp(d*a*g)-1)/f}})}function Sk(a){return Math.log(a.c/a.a)/a.f};function Tk(a){gd.call(this);this.v=null;this.i(!0);this.handleEvent=a.handleEvent}w(Tk,gd);Tk.prototype.c=function(){return this.get("active")};Tk.prototype.i=function(a){this.set("active",a)};Tk.prototype.setMap=function(a){this.v=a};function Uk(a,c,d,e,f){if(null!=d){var g=c.Ca(),h=c.Ia();m(g)&&m(h)&&m(f)&&0<f&&(a.Ma(ag({rotation:g,duration:f,easing:Wf})),m(e)&&a.Ma($f({source:h,duration:f,easing:Wf})));c.rotate(d,e)}} 513function Vk(a,c,d,e,f){var g=c.Ba();d=c.constrainResolution(g,d,0);Wk(a,c,d,e,f)}function Wk(a,c,d,e,f){if(null!=d){var g=c.Ba(),h=c.Ia();m(g)&&m(h)&&m(f)&&0<f&&(a.Ma(bg({resolution:g,duration:f,easing:Wf})),m(e)&&a.Ma($f({source:h,duration:f,easing:Wf})));if(null!=e){var k;a=c.Ia();f=c.Ba();m(a)&&m(f)&&(k=[e[0]-d*(e[0]-a[0])/f,e[1]-d*(e[1]-a[1])/f]);c.$a(k)}c.Ob(d)}};function Xk(a){a=m(a)?a:{};this.a=m(a.delta)?a.delta:1;Tk.call(this,{handleEvent:Yk});this.f=m(a.duration)?a.duration:250}w(Xk,Tk);function Yk(a){var c=!1,d=a.b;if(a.type==Xj){var c=a.map,e=a.coordinate,d=d.f?-this.a:this.a,f=c.$();Vk(c,f,d,e,this.f);a.preventDefault();c=!0}return!c};function Zk(a){a=a.b;return a.a&&!a.l&&a.f}function $k(a){return"pointermove"==a.type}function al(a){return a.type==Yj}function bl(a){a=a.b;return!a.a&&!a.l&&!a.f}function cl(a){a=a.b;return!a.a&&!a.l&&a.f}function dl(a){a=a.b.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function el(a){return 1==a.a.pointerId};function fl(a){a=m(a)?a:{};Tk.call(this,{handleEvent:m(a.handleEvent)?a.handleEvent:gl});this.xb=m(a.handleDownEvent)?a.handleDownEvent:oe;this.rc=m(a.handleDragEvent)?a.handleDragEvent:ca;this.Nc=m(a.handleMoveEvent)?a.handleMoveEvent:ca;this.Be=m(a.handleUpEvent)?a.handleUpEvent:oe;this.A=!1;this.V={};this.g=[]}w(fl,Tk);function hl(a){for(var c=a.length,d=0,e=0,f=0;f<c;f++)d+=a[f].clientX,e+=a[f].clientY;return[d/c,e/c]} 514function gl(a){if(!(a instanceof Tj))return!0;var c=!1,d=a.type;if(d===ck||d===ek||d===ak)d=a.a,a.type==ak?delete this.V[d.pointerId]:a.type==ck?this.V[d.pointerId]=d:d.pointerId in this.V&&(this.V[d.pointerId]=d),this.g=sb(this.V);this.A&&(a.type==ek?this.rc(a):a.type==ak&&(this.A=this.Be(a)));a.type==ck?(this.A=a=this.xb(a),c=this.nc(a)):a.type==dk&&this.Nc(a);return!c}fl.prototype.nc=re;function il(a){fl.call(this,{handleDownEvent:jl,handleDragEvent:kl,handleUpEvent:ll});a=m(a)?a:{};this.a=a.kinetic;this.f=this.j=null;this.u=m(a.condition)?a.condition:bl;this.l=!1}w(il,fl);function kl(a){var c=hl(this.g);this.a&&this.a.update(c[0],c[1]);if(null!==this.f){var d=this.f[0]-c[0],e=c[1]-this.f[1];a=a.map;var f=a.$(),g=Sf(f),e=d=[d,e],h=g.resolution;e[0]*=h;e[1]*=h;sd(d,g.rotation);nd(d,g.center);d=f.zd(d);a.render();f.$a(d)}this.f=c} 515function ll(a){a=a.map;var c=a.$();if(0===this.g.length){var d;if(d=!this.l&&this.a)if(d=this.a,6>d.b.length)d=!1;else{var e=ta()-d.g,f=d.b.length-3;if(d.b[f+2]<e)d=!1;else{for(var g=f-3;0<g&&d.b[g+2]>e;)g-=3;var e=d.b[f+2]-d.b[g+2],h=d.b[f]-d.b[g],f=d.b[f+1]-d.b[g+1];d.i=Math.atan2(f,h);d.a=Math.sqrt(h*h+f*f)/e;d=d.a>d.c}}d&&(d=this.a,d=(d.c-d.a)/d.f,f=this.a.i,g=c.Ia(),this.j=Rk(this.a,g),a.Ma(this.j),g=a.xa(g),d=a.ta([g[0]-d*Math.cos(f),g[1]-d*Math.sin(f)]),d=c.zd(d),c.$a(d));Uf(c,-1);a.render(); 516return!1}this.f=null;return!0}function jl(a){if(0<this.g.length&&this.u(a)){var c=a.map,d=c.$();this.f=null;this.A||Uf(d,1);c.render();null!==this.j&&$a(c.B,this.j)&&(d.$a(a.frameState.viewState.center),this.j=null);this.a&&(a=this.a,a.b.length=0,a.i=0,a.a=0);this.l=1<this.g.length;return!0}return!1}il.prototype.nc=oe;function ml(a){a=m(a)?a:{};fl.call(this,{handleDownEvent:nl,handleDragEvent:pl,handleUpEvent:ql});this.f=m(a.condition)?a.condition:Zk;this.a=void 0;this.j=m(a.duration)?a.duration:250}w(ml,fl);function pl(a){if(el(a)){var c=a.map,d=c.Aa();a=a.pixel;d=Math.atan2(d[1]/2-a[1],a[0]-d[0]/2);if(m(this.a)){a=d-this.a;var e=c.$(),f=e.Ca();c.render();Uk(c,e,f-a)}this.a=d}} 517function ql(a){if(!el(a))return!0;a=a.map;var c=a.$();Uf(c,-1);var d=c.Ca(),e=this.j,d=c.constrainRotation(d,0);Uk(a,c,d,void 0,e);return!1}function nl(a){return el(a)&&Ac(a.b)&&this.f(a)?(a=a.map,Uf(a.$(),1),a.render(),this.a=void 0,!0):!1}ml.prototype.nc=oe;function rl(a){this.c=this.a=this.f=this.i=this.b=null;this.j=a}w(rl,oc);function sl(a){var c=a.f,d=a.a;a=Ua([c,[c[0],d[1]],d,[d[0],c[1]]],a.b.ta,a.b);a[4]=a[0].slice();return new E([a])}rl.prototype.Y=function(){this.setMap(null)};rl.prototype.g=function(a){var c=this.c,d=this.j;a.vectorContext.tc(Infinity,function(a){a.Fa(d.f,d.c);a.Ga(d.a);a.Rb(c,null)})};rl.prototype.X=function(){return this.c};function tl(a){null===a.b||null===a.f||null===a.a||a.b.render()} 518rl.prototype.setMap=function(a){null!==this.i&&(Xc(this.i),this.i=null,this.b.render(),this.b=null);
518this.b=a;null!==this.b&&(this.i=x(a,"postcompose",this.g,!1,this),tl(this))};function ul(a,c){tc.call(this,a);this.coordinate=c}w(ul,tc);function vl(a){fl.call(this,{handleDownEvent:wl,handleDragEvent:xl,handleUpEvent:yl});a=m(a)?a:{};this.f=new rl(m(a.style)?a.style:null);this.a=null;this.l=m(a.condition)?a.condition:pe}w(vl,fl);function xl(a){if(el(a)){var c=this.f;a=a.pixel;c.f=this.a;c.a=a;c.c=sl(c);tl(c)}}vl.prototype.X=function(){return this.f.X()};vl.prototype.j=ca; 519function yl(a){if(!el(a))return!0;this.f.setMap(null);var c=a.pixel[0]-this.a[0],d=a.pixel[1]-this.a[1];64<=c*c+d*d&&(this.j(a),C(this,new ul("boxend",a.coordinate)));return!1}function wl(a){if(el(a)&&Ac(a.b)&&this.l(a)){this.a=a.pixel;this.f.setMap(a.map);var c=this.f,d=this.a;c.f=this.a;c.a=d;c.c=sl(c);tl(c);C(this,new ul("boxstart",a.coordinate));return!0}return!1};function zl(){this.a=-1};function Al(){this.a=-1;this.a=64;this.b=Array(4);this.i=Array(this.a);this.f=this.c=0;this.reset()}w(Al,zl);Al.prototype.reset=function(){this.b[0]=1732584193;this.b[1]=4023233417;this.b[2]=2562383102;this.b[3]=271733878;this.f=this.c=0}; 520function Bl(a,c,d){d||(d=0);var e=Array(16);if(ia(c))for(var f=0;16>f;++f)e[f]=c.charCodeAt(d++)|c.charCodeAt(d++)<<8|c.charCodeAt(d++)<<16|c.charCodeAt(d++)<<24;else for(f=0;16>f;++f)e[f]=c[d++]|c[d++]<<8|c[d++]<<16|c[d++]<<24;c=a.b[0];d=a.b[1];var f=a.b[2],g=a.b[3],h=0,h=c+(g^d&(f^g))+e[0]+3614090360&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[1]+3905402710&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[2]+606105819&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^ 521c))+e[3]+3250441966&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[4]+4118548399&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[5]+1200080426&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[6]+2821735955&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[7]+4249261313&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[8]+1770035416&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[9]+2336552879&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+ 522(d^g&(c^d))+e[10]+4294925233&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[11]+2304563134&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[12]+1804603682&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[13]+4254626195&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[14]+2792965006&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[15]+1236535329&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(f^g&(d^f))+e[1]+4129170786&4294967295;c=d+(h<<5&4294967295| 523h>>>27);h=g+(d^f&(c^d))+e[6]+3225465664&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[11]+643717713&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[0]+3921069994&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(f^g&(d^f))+e[5]+3593408605&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[10]+38016083&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[15]+3634488961&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[4]+3889429448&4294967295;d=f+(h<<20&4294967295| 524h>>>12);h=c+(f^g&(d^f))+e[9]+568446438&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[14]+3275163606&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[3]+4107603335&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[8]+1163531501&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(f^g&(d^f))+e[13]+2850285829&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[2]+4243563512&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[7]+1735328473&4294967295;f=g+(h<<14&4294967295| 525h>>>18);h=d+(g^c&(f^g))+e[12]+2368359562&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(d^f^g)+e[5]+4294588738&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[8]+2272392833&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[11]+1839030562&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[14]+4259657740&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[1]+2763975236&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[4]+1272893353&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^ 526c^d)+e[7]+4139469664&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[10]+3200236656&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[13]+681279174&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[0]+3936430074&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[3]+3572445317&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[6]+76029189&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[9]+3654602809&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[12]+3873151461&4294967295; 527g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[15]+530742520&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[2]+3299628645&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(f^(d|~g))+e[0]+4096336452&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[7]+1126891415&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[14]+2878612391&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[5]+4237533241&4294967295;d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[12]+1700485571&4294967295;c=d+ 528(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[3]+2399980690&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[10]+4293915773&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[1]+2240044497&4294967295;d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[8]+1873313359&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[15]+4264355552&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[6]+2734768916&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[13]+1309151649&4294967295; 529d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[4]+4149444226&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[11]+3174756917&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[2]+718787259&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[9]+3951481745&4294967295;a.b[0]=a.b[0]+c&4294967295;a.b[1]=a.b[1]+(f+(h<<21&4294967295|h>>>11))&4294967295;a.b[2]=a.b[2]+f&4294967295;a.b[3]=a.b[3]+g&4294967295} 530Al.prototype.update=function(a,c){m(c)||(c=a.length);for(var d=c-this.a,e=this.i,f=this.c,g=0;g<c;){if(0==f)for(;g<=d;)Bl(this,a,g),g+=this.a;if(ia(a))for(;g<c;
530){if(e[f++]=a.charCodeAt(g++),f==this.a){Bl(this,e);f=0;break}}else for(;g<c;)if(e[f++]=a[g++],f==this.a){Bl(this,e);f=0;break}}this.c=f;this.f+=c};function Cl(a){a=m(a)?a:{};this.b=m(a.color)?a.color:null;this.f=a.lineCap;this.c=m(a.lineDash)?a.lineDash:null;this.i=a.lineJoin;this.g=a.miterLimit;this.a=a.width;this.j=void 0}l=Cl.prototype;l.sm=function(){return this.b};l.Xi=function(){return this.f};l.tm=function(){return this.c};l.Yi=function(){return this.i};l.cj=function(){return this.g};l.um=function(){return this.a};l.vm=function(a){this.b=a;this.j=void 0};l.Nn=function(a){this.f=a;this.j=void 0};l.wm=function(a){this.c=a;this.j=void 0}; 531l.On=function(a){this.i=a;this.j=void 0};l.Pn=function(a){this.g=a;this.j=void 0};l.Vn=function(a){this.a=a;this.j=void 0}; 532l.qb=function(){if(!m(this.j)){var a="s"+(null===this.b?"-":zg(this.b))+","+(m(this.f)?this.f.toString():"-")+","+(null===this.c?"-":this.c.toString())+","+(m(this.i)?this.i:"-")+","+(m(this.g)?this.g.toString():"-")+","+(m(this.a)?this.a.toString():"-"),c=new Al;c.update(a);var d=Array((56>c.c?c.a:2*c.a)-c.c);d[0]=128;for(a=1;a<d.length-8;++a)d[a]=0;for(var e=8*c.f,a=d.length-8;a<d.length;++a)d[a]=e&255,e/=256;c.update(d);d=Array(16);for(a=e=0;4>a;++a)for(var f=0;32>f;f+=8)d[e++]=c.b[a]>>>f&255; 533if(8192>=d.length)c=String.fromCharCode.apply(null,d);else for(c="",a=0;a<d.length;a+=8192)c+=String.fromCharCode.apply(null,fb(d,a,a+8192));this.j=c}return this.j};var Dl=[0,0,0,1],El=[],Fl=[0,0,0,1];function Gl(a){a=m(a)?a:{};this.b=m(a.color)?a.color:null;this.a=void 0}Gl.prototype.c=function(){return this.b};Gl.prototype.f=function(a){this.b=a;this.a=void 0};Gl.prototype.qb=function(){m(this.a)||(this.a="f"+(null===this.b?"-":zg(this.b)));return this.a};function Hl(a){a=m(a)?a:{};this.g=this.b=this.i=null;this.f=m(a.fill)?a.fill:null;this.a=m(a.stroke)?a.stroke:null;this.c=a.radius;this.u=[0,0];this.l=this.ea=this.j=null;var c=a.atlasManager,d,e=null,f,g=0;null!==this.a&&(f=zg(this.a.b),g=this.a.a,m(g)||(g=1),e=this.a.c,cj||(e=null));var h=2*(this.c+g)+1;f={strokeStyle:f,od:g,size:h,lineDash:e};m(c)?(h=Math.round(h),(e=null===this.f)&&(d=ra(this.Ig,this,f)),g=this.qb(),f=c.add(g,h,h,ra(this.Jg,this,f),d),this.b=f.image,this.u=[f.offsetX,f.offsetY], 534d=f.image.width,this.g=e?f.gg:this.b):(this.b=Qg("CANVAS"),this.b.height=h,this.b.width=h,d=h=this.b.width,c=this.b.getContext("2d"),this.Jg(f,c,0,0),null===this.f?(c=this.g=Qg("CANVAS"),c.height=f.size,c.width=f.size,c=c.getContext("2d"),this.Ig(f,c,0,0)):this.g=this.b);this.j=[h/2,h/2];this.ea=[h,h];this.l=[d,d];Ak.call(this,{opacity:1,rotateWithView:!1,rotation:0,scale:1,snapToPixel:m(a.snapToPixel)?a.snapToPixel:!0})}w(Hl,Ak);l=Hl.prototype;l.pb=function(){return this.j};l.jm=function(){return this.f}; 535l.fe=function(){return this.g};l.Kb=function(){return this.b};l.jd=function(){return 2};l.Gd=function(){return this.l};l.ub=function(){return this.u};l.km=function(){return this.c};l.ab=function(){return this.ea};l.lm=function(){return this.a};l.bf=ca;l.load=ca;l.Af=ca; 536l.Jg=function(a,c,d,e){c.setTransform(1,0,0,1,0,0);c.translate(d,e);c.beginPath();c.arc(a.size/2,a.size/2,this.c,0,2*Math.PI,!0);null!==this.f&&(c.fillStyle=zg(this.f.b),c.fill());null!==this.a&&(c.strokeStyle=a.strokeStyle,c.lineWidth=a.od,null===a.lineDash||c.setLineDash(a.lineDash),c.stroke());c.closePath()}; 537l.Ig=function(a,c,d,e){c.setTransform(1,0,0,1,0,0);c.translate(d,e);c.beginPath();c.arc(a.size/2,a.size/2,this.c,0,2*Math.PI,!0);c.fillStyle=Dl;c.fill();null!==this.a&&(c.strokeStyle=a.strokeStyle,c.lineWidth=a.od,null===a.lineDash||c.setLineDash(a.lineDash),c.stroke());c.closePath()};l.qb=function(){var a=null===this.a?"-":this.a.qb(),c=null===this.f?"-":this.f.qb();if(null===this.i||a!=this.i[1]||c!=this.i[2]||this.c!=this.i[3])this.i=["c"+a+c+(m(this.c)?this.c.toString():"-"),a,c,this.c];return this.i[0]};function Il(a){a=m(a)?a:{};this.j=null;this.i=Jl;m(a.geometry)&&this.ra(a.geometry);this.f=m(a.fill)?a.fill:null;this.g=m(a.image)?a.image:null;this.c=m(a.stroke)?a.stroke:null;this.a=m(a.text)?a.text:null;this.b=a.zIndex}l=Il.prototype;l.X=function(){return this.j};l.Ri=function(){return this.i};l.xm=function(){return this.f};l.ym=function(){return this.g};l.zm=function(){return this.c};l.Am=function(){return this.a};l.uj=function(){return this.b}; 538l.ra=function(a){ka(a)?this.i=a:ia(a)?this.i=function(c){return c.get(a)}:null===a?this.i=Jl:m(a)&&(this.i=function(){return a});this.j=a};
538l.Xn=function(a){this.b=a};function Kl(a){ka(a)||(a=ga(a)?a:[a],a=ne(a));return a}function Ll(){var a=new Gl({color:"rgba(255,255,255,0.4)"}),c=new Cl({color:"#3399CC",width:1.25}),d=[new Il({image:new Hl({fill:a,stroke:c,radius:5}),fill:a,stroke:c})];Ll=function(){return d};return d} 539function Ml(){var a={},c=[255,255,255,1],d=[0,153,255,1];a.Polygon=[new Il({fill:new Gl({color:[255,255,255,.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new Il({stroke:new Cl({color:c,width:5})}),new Il({stroke:new Cl({color:d,width:3})})];a.MultiLineString=a.LineString;a.Circle=a.Polygon.concat(a.LineString);a.Point=[new Il({image:new Hl({radius:6,fill:new Gl({color:d}),stroke:new Cl({color:c,width:1.5})}),zIndex:Infinity})];a.MultiPoint=a.Point;a.GeometryCollection=a.Polygon.concat(a.LineString, 540a.Point);return a}function Jl(a){return a.X()};function Nl(a){var c=m(a)?a:{};a=m(c.condition)?c.condition:cl;this.u=m(c.duration)?c.duration:200;c=m(c.style)?c.style:new Il({stroke:new Cl({color:[0,0,255,1]})});vl.call(this,{condition:a,style:c})}w(Nl,vl);Nl.prototype.j=function(){var a=this.v,c=a.$(),d=this.X().R(),e=ee(d),f=a.Aa(),d=Math.max(je(d)/f[0],ge(d)/f[1]),f=this.u,d=c.constrainResolution(d,0,void 0);Wk(a,c,d,e,f)};function Ol(a){Tk.call(this,{handleEvent:Pl});a=m(a)?a:{};this.a=m(a.condition)?a.condition:ue(bl,dl);this.f=m(a.duration)?a.duration:100;this.g=m(a.pixelDelta)?a.pixelDelta:128}w(Ol,Tk); 541function Pl(a){var c=!1;if("key"==a.type){var d=a.b.g;if(this.a(a)&&(40==d||37==d||39==d||38==d)){var e=a.map,c=e.$(),f=Sf(c),g=f.resolution*this.g,h=0,k=0;40==d?k=-g:37==d?h=-g:39==d?h=g:k=g;d=[h,k];sd(d,f.rotation);f=this.f;g=c.Ia();m(g)&&(m(f)&&0<f&&e.Ma($f({source:g,duration:f,easing:Yf})),e=c.zd([g[0]+d[0],g[1]+d[1]]),c.$a(e));a.preventDefault();c=!0}}return!c};function Ql(a){Tk.call(this,{handleEvent:Rl});a=m(a)?a:{};this.f=m(a.condition)?a.condition:dl;this.a=m(a.delta)?a.delta:1;this.g=m(a.duration)?a.duration:100}w(Ql,Tk);function Rl(a){var c=!1;if("key"==a.type){var d=a.b.v;if(this.f(a)&&(43==d||45==d)){c=a.map;d=43==d?this.a:-this.a;c.render();var e=c.$();Vk(c,e,d,void 0,this.g);a.preventDefault();c=!0}}return!c};function Sl(a){Tk.call(this,{handleEvent:Tl});a=m(a)?a:{};this.a=0;this.u=m(a.duration)?a.duration:250;this.g=null;this.j=this.f=void 0}w(Sl,Tk);function Tl(a){var c=!1;if("mousewheel"==a.type){var c=a.map,d=a.b;this.g=a.coordinate;this.a+=d.A;m(this.f)||(this.f=ta());d=Math.max(80-(ta()-this.f),0);ba.clearTimeout(this.j);this.j=ba.setTimeout(ra(this.l,this,c),d);a.preventDefault();c=!0}return!c} 542Sl.prototype.l=function(a){var c=Xb(this.a,-1,1),d=a.$();a.render();Vk(a,d,-c,this.g,this.u);this.a=0;this.g=null;this.j=this.f=void 0};function Ul(a){fl.call(this,{handleDownEvent:Vl,handleDragEvent:Wl,handleUpEvent:Xl});a=m(a)?a:{};this.f=null;this.j=void 0;this.a=!1;this.l=0;this.D=m(a.threshold)?a.threshold:.3;this.u=m(a.duration)?a.duration:250}w(Ul,fl); 543function Wl(a){var c=0,d=this.g[0],e=this.g[1],d=Math.atan2(e.clientY-d.clientY,e.clientX-d.clientX);m(this.j)&&(c=d-this.j,this.l+=c,!this.a&&Math.abs(this.l)>this.D&&(this.a=!0));this.j=d;a=a.map;d=mh(a.a);e=hl(this.g);e[0]-=d.x;e[1]-=d.y;this.f=a.ta(e);this.a&&(d=a.$(),e=d.Ca(),a.render(),Uk(a,d,e+c,this.f))}function Xl(a){if(2>this.g.length){a=a.map;var c=a.$();Uf(c,-1);if(this.a){var d=c.Ca(),e=this.f,f=this.u,d=c.constrainRotation(d,0);Uk(a,c,d,e,f)}return!1}return!0} 544function Vl(a){return 2<=this.g.length?(a=a.map,this.f=null,this.j=void 0,this.a=!1,this.l=0,this.A||Uf(a.$(),1),a.render(),!0):!1}Ul.prototype.nc=oe;function Yl(a){fl.call(this,{handleDownEvent:Zl,handleDragEvent:$l,handleUpEvent:am});a=m(a)?a:{};this.f=null;this.l=m(a.duration)?a.duration:400;this.a=void 0;this.j=1}w(Yl,fl);function $l(a){var c=1,d=this.g[0],e=this.g[1],f=d.clientX-e.clientX,d=d.clientY-e.clientY,f=Math.sqrt(f*f+d*d);m(this.a)&&(c=this.a/f);this.a=f;1!=c&&(this.j=c);a=a.map;var f=a.$(),d=f.Ba(),e=mh(a.a),g=hl(this.g);g[0]-=e.x;g[1]-=e.y;this.f=a.ta(g);a.render();Wk(a,f,d*c,this.f)} 545function am(a){if(2>this.g.length){a=a.map;var c=a.$();Uf(c,-1);var d=c.Ba(),e=this.f,f=this.l,d=c.constrainResolution(d,0,this.j-1);Wk(a,c,d,e,f);return!1}return!0}function Zl(a){return 2<=this.g.length?(a=a.map,this.f=null,this.a=void 0,this.j=1,this.A||Uf(a.$(),1),a.render(),!0):!1}Yl.prototype.nc=oe;function bm(a){a=m(a)?a:{};var c=new sg,d=new Qk(-.005,.05,100);(m(a.altShiftDragRotate)?a.altShiftDragRotate:1)&&c.push(new ml);(m(a.doubleClickZoom)?a.doubleClickZoom:1)&&c.push(new Xk({delta:a.zoomDelta,duration:a.zoomDuration}));(m(a.dragPan)?a.dragPan:1)&&c.push(new il({kinetic:d}));(m(a.pinchRotate)?a.pinchRotate:1)&&c.push(new Ul);(m(a.pinchZoom)?a.pinchZoom:1)&&c.push(new Yl({duration:a.zoomDuration}));
545if(m(a.keyboard)?a.keyboard:1)c.push(new Ol),c.push(new Ql({delta:a.zoomDelta,duration:a.zoomDuration})); 546(m(a.mouseWheelZoom)?a.mouseWheelZoom:1)&&c.push(new Sl({duration:a.zoomDuration}));(m(a.shiftDragZoom)?a.shiftDragZoom:1)&&c.push(new Nl);return c};function G(a){var c=m(a)?a:{};a=Cb(c);delete a.layers;c=c.layers;gk.call(this,a);this.c=[];this.a={};x(this,id("layers"),this.Kj,!1,this);null!=c?ga(c)&&(c=new sg(c.slice())):c=new sg;this.mh(c)}w(G,gk);l=G.prototype;l.Od=function(){this.ib()&&this.s()}; 547l.Kj=function(){Sa(this.c,Xc);this.c.length=0;var a=this.Bc();this.c.push(x(a,"add",this.Jj,!1,this),x(a,"remove",this.Lj,!1,this));pb(this.a,function(a){Sa(a,Xc)});yb(this.a);var a=a.a,c,d,e;c=0;for(d=a.length;c<d;c++)e=a[c],this.a[ma(e).toString()]=[x(e,"propertychange",this.Od,!1,this),x(e,"change",this.Od,!1,this)];this.s()};l.Jj=function(a){a=a.element;var c=ma(a).toString();this.a[c]=[x(a,"propertychange",this.Od,!1,this),x(a,"change",this.Od,!1,this)];this.s()}; 548l.Lj=function(a){a=ma(a.element).toString();Sa(this.a[a],Xc);delete this.a[a];this.s()};l.Bc=function(){return this.get("layers")};l.mh=function(a){this.set("layers",a)}; 549l.We=function(a){var c=m(a)?a:[],d=c.length;this.Bc().forEach(function(a){a.We(c)});a=hk(this);var e,f;for(e=c.length;d<e;d++)f=c[d],f.brightness=Xb(f.brightness+a.brightness,-1,1),f.contrast*=a.contrast,f.hue+=a.hue,f.opacity*=a.opacity,f.saturation*=a.saturation,f.visible=f.visible&&a.visible,f.maxResolution=Math.min(f.maxResolution,a.maxResolution),f.minResolution=Math.max(f.minResolution,a.minResolution),m(a.extent)&&(f.extent=m(f.extent)?he(f.extent,a.extent):a.extent);return c};l.Ye=function(){return"ready"};function cm(a){ye.call(this,{code:a,units:"m",extent:dm,global:!0,worldExtent:em})}w(cm,ye);cm.prototype.getPointResolution=function(a,c){var d=c[1]/6378137;return a/((Math.exp(d)+Math.exp(-d))/2)};var fm=6378137*Math.PI,dm=[-fm,-fm,fm,fm],em=[-180,-85,180,85],Ke=Ua("EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" "),function(a){return new cm(a)}); 550function Le(a,c,d){var e=a.length;d=1<d?d:2;m(c)||(2<d?c=a.slice():c=Array(e));for(var f=0;f<e;f+=d)c[f]=6378137*Math.PI*a[f]/180,c[f+1]=6378137*Math.log(Math.tan(Math.PI*(a[f+1]+90)/360));return c}function Me(a,c,d){var e=a.length;d=1<d?d:2;m(c)||(2<d?c=a.slice():c=Array(e));for(var f=0;f<e;f+=d)c[f]=180*a[f]/(6378137*Math.PI),c[f+1]=360*Math.atan(Math.exp(a[f+1]/6378137))/Math.PI-90;return c};function gm(a,c){ye.call(this,{code:a,units:"degrees",extent:hm,axisOrientation:c,global:!0,worldExtent:hm})}w(gm,ye);gm.prototype.getPointResolution=function(a){return a}; 551var hm=[-180,-90,180,90],Ne=[new gm("CRS:84"),new gm("EPSG:4326","neu"),new gm("urn:ogc:def:crs:EPSG::4326","neu"),new gm("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new gm("urn:ogc:def:crs:OGC:1.3:CRS84"),new gm("urn:ogc:def:crs:OGC:2:84"),new gm("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new gm("urn:x-ogc:def:crs:EPSG:4326","neu")];function im(){Be(Ke);Be(Ne);Je()};function I(a){F.call(this,m(a)?a:{})}w(I,F);function K(a){a=m(a)?a:{};var c=Cb(a);delete c.preload;delete c.useInterimTilesOnError;F.call(this,c);this.f(m(a.preload)?a.preload:0);this.i(m(a.useInterimTilesOnError)?a.useInterimTilesOnError:!0)}w(K,F);K.prototype.a=function(){return this.get("preload")};K.prototype.f=function(a){this.set("preload",a)};K.prototype.c=function(){return this.get("useInterimTilesOnError")};K.prototype.i=function(a){this.set("useInterimTilesOnError",a)};function M(a){a=m(a)?a:{};var c=Cb(a);delete c.style;delete c.renderBuffer;delete c.updateWhileAnimating;delete c.updateWhileInteracting;F.call(this,c);this.c=m(a.renderBuffer)?a.renderBuffer:100;this.v=null;this.a=void 0;this.i(a.style);this.D=m(a.updateWhileAnimating)?a.updateWhileAnimating:!1;this.B=m(a.updateWhileInteracting)?a.updateWhileInteracting:!1}w(M,F);M.prototype.T=function(){return this.v};M.prototype.V=function(){return this.a}; 552M.prototype.i=function(a){this.v=m(a)?a:Ll;this.a=null===a?void 0:Kl(this.v);this.s()};function jm(a,c,d,e,f){this.A={};this.c=a;this.B=c;this.i=d;this.ja=e;this.Nc=f;this.g=this.b=this.a=this.pa=this.Ka=this.ca=null;this.La=this.wa=this.u=this.V=this.T=this.K=0;this.Ta=!1;this.j=this.kb=0;this.lb=!1;this.Z=0;this.f="";this.C=this.ea=this.xb=this.qc=0;this.ba=this.v=this.l=null;this.D=[];this.rc=Ad()} 553function km(a,c,d){if(null!==a.g){c=Ye(c,0,d,2,a.ja,a.D);d=a.c;var e=a.rc,f=d.globalAlpha;1!=a.u&&(d.globalAlpha=f*a.u);var g=a.kb;a.Ta&&(g+=a.Nc);var h,k;h=0;for(k=c.length;h<k;h+=2){var n=c[h]-a.K,p=c[h+1]-a.T;a.lb&&(n=n+.5|0,p=p+.5|0);if(0!==g||1!=a.j){var q=n+a.K,r=p+a.T;nk(e,q,r,a.j,a.j,g,-q,-r);d.setTransform(e[0],e[1],e[4],e[5],e[12],e[13])}d.drawImage(a.g,a.wa,a.La,a.Z,a.V,n,p,a.Z,a.V)}0===g&&1==a.j||d.setTransform(1,0,0,1,0,0);1!=a.u&&(d.globalAlpha=f)}} 554function lm(a,c,d,e){var f=0;if(null!==a.ba&&""!==a.f){null===a.l||mm(a,a.l);null===a.v||nm(a,a.v);var g=a.ba,h=a.c,k=a.pa;null===k?(h.font=g.font,h.textAlign=g.textAlign,h.textBaseline=g.textBaseline,a.pa={font:g.font,textAlign:g.textAlign,textBaseline:g.textBaseline}):(k.font!=g.font&&(k.font=h.font=g.font),k.textAlign!=g.textAlign&&(k.textAlign=h.textAlign=g.textAlign),k.textBaseline!=g.textBaseline&&(k.textBaseline=h.textBaseline=g.textBaseline));c=Ye(c,f,d,e,a.ja,a.D);for(g=a.c;f<d;f+=e){h=c[f]+ 555a.qc;k=c[f+1]+a.xb;if(0!==a.ea||1!=a.C){var n=nk(a.rc,h,k,a.C,a.C,a.ea,-h,-k);g.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])}null===a.v||g.strokeText(a.f,h,k);null===a.l||g.fillText(a.f,h,k)}0===a.ea&&1==a.C||g.setTransform(1,0,0,1,0,0)}}function om(a,c,d,e,f,g){var h=a.c;a=Ye(c,d,e,f,a.ja,a.D);h.moveTo(a[0],a[1]);for(c=2;c<a.length;c+=2)h.lineTo(a[c],a[c+1]);g&&h.lineTo(a[0],a[1]);return e} 556function pm(a,c,d,e,f){var g=a.c,h,k;h=0;for(k=e.length;h<k;++h)d=om(a,c,d,e[h],f,!0),g.closePath();return d}l=jm.prototype;l.tc=function(a,c){var d=a.toString(),e=this.A[d];m(e)?e.push(c):this.A[d]=[c]};
557l.uc=function(a){if(ie(this.i,a.R())){if(null!==this.a||null!==this.b){null===this.a||mm(this,this.a);null===this.b||nm(this,this.b);var c;c=a.o;c=null===c?null:Ye(c,0,c.length,a.H,this.ja,this.D);var d=c[2]-c[0],e=c[3]-c[1],d=Math.sqrt(d*d+e*e),e=this.c;e.beginPath();e.arc(c[0],c[1],d,0,2*Math.PI);null===this.a||e.fill();null===this.b||e.stroke()}""!==this.f&&lm(this,a.ed(),2,2)}}; 558l.Le=function(a,c){var d=(0,c.i)(a);if(null!=d&&ie(this.i,d.R())){var e=c.b;m(e)||(e=0);this.tc(e,function(a){a.Fa(c.f,c.c);a.cb(c.g);a.Ga(c.a);qm[d.U()].call(a,d,null)})}};l.Bd=function(a,c){var d=a.f,e,f;e=0;for(f=d.length;e<f;++e){var g=d[e];qm[g.U()].call(this,g,c)}};l.nb=function(a){var c=a.o;a=a.H;null===this.g||km(this,c,c.length);""!==this.f&&lm(this,c,c.length,a)};l.mb=function(a){var c=a.o;a=a.H;null===this.g||km(this,c,c.length);""!==this.f&&lm(this,c,c.length,a)}; 559l.yb=function(a){if(ie(this.i,a.R())){if(null!==this.b){nm(this,this.b);var c=this.c,d=a.o;c.beginPath();om(this,d,0,d.length,a.H,!1);c.stroke()}""!==this.f&&(a=rm(a),lm(this,a,2,2))}};l.vc=function(a){var c=a.R();if(ie(this.i,c)){if(null!==this.b){nm(this,this.b);var c=this.c,d=a.o,e=0,f=a.c,g=a.H;c.beginPath();var h,k;h=0;for(k=f.length;h<k;++h)e=om(this,d,e,f[h],g,!1);c.stroke()}""!==this.f&&(a=sm(a),lm(this,a,a.length,2))}}; 560l.Rb=function(a){if(ie(this.i,a.R())){if(null!==this.b||null!==this.a){null===this.a||mm(this,this.a);null===this.b||nm(this,this.b);var c=this.c;c.beginPath();pm(this,Jf(a),0,a.c,a.H);null===this.a||c.fill();null===this.b||c.stroke()}""!==this.f&&(a=Kf(a),lm(this,a,2,2))}}; 561l.wc=function(a){if(ie(this.i,a.R())){if(null!==this.b||null!==this.a){null===this.a||mm(this,this.a);null===this.b||nm(this,this.b);var c=this.c,d=tm(a),e=0,f=a.c,g=a.H,h,k;h=0;for(k=f.length;h<k;++h){var n=f[h];c.beginPath();e=pm(this,d,e,n,g);null===this.a||c.fill();null===this.b||c.stroke()}}""!==this.f&&(a=um(a),lm(this,a,a.length,2))}};function wm(a){var c=Ua(tb(a.A),Number);gb(c);var d,e,f,g,h;d=0;for(e=c.length;d<e;++d)for(f=a.A[c[d].toString()],g=0,h=f.length;g<h;++g)f[g](a)} 562function mm(a,c){var d=a.c,e=a.ca;null===e?(d.fillStyle=c.fillStyle,a.ca={fillStyle:c.fillStyle}):e.fillStyle!=c.fillStyle&&(e.fillStyle=d.fillStyle=c.fillStyle)} 563function nm(a,c){var d=a.c,e=a.Ka;null===e?(d.lineCap=c.lineCap,cj&&d.setLineDash(c.lineDash),d.lineJoin=c.lineJoin,d.lineWidth=c.lineWidth,d.miterLimit=c.miterLimit,d.strokeStyle=c.strokeStyle,a.Ka={lineCap:c.lineCap,lineDash:c.lineDash,lineJoin:c.lineJoin,lineWidth:c.lineWidth,miterLimit:c.miterLimit,strokeStyle:c.strokeStyle}):(e.lineCap!=c.lineCap&&(e.lineCap=d.lineCap=c.lineCap),cj&&!ib(e.lineDash,c.lineDash)&&d.setLineDash(e.lineDash=c.lineDash),e.lineJoin!=c.lineJoin&&(e.lineJoin=d.lineJoin= 564c.lineJoin),e.lineWidth!=c.lineWidth&&(e.lineWidth=d.lineWidth=c.lineWidth),e.miterLimit!=c.miterLimit&&(e.miterLimit=d.miterLimit=c.miterLimit),e.strokeStyle!=c.strokeStyle&&(e.strokeStyle=d.strokeStyle=c.strokeStyle))} 565l.Fa=function(a,c){if(null===a)this.a=null;else{var d=a.b;this.a={fillStyle:zg(null===d?Dl:d)}}if(null===c)this.b=null;else{var d=c.b,e=c.f,f=c.c,g=c.i,h=c.a,k=c.g;this.b={lineCap:m(e)?e:"round",lineDash:null!=f?f:El,lineJoin:m(g)?g:"round",lineWidth:this.B*(m(h)?h:1),miterLimit:m(k)?k:10,strokeStyle:zg(null===d?Fl:d)}}}; 566l.cb=function(a){if(null===a)this.g=null;else{var c=a.pb(),d=a.Kb(1),e=a.ub(),f=a.ab();this.K=c[0];this.T=c[1];this.V=f[1];this.g=d;this.u=a.A;this.wa=e[0];this.La=e[1];this.Ta=a.D;this.kb=a.C;this.j=a.v;this.lb=a.B;this.Z=f[0]}}; 567l.Ga=function(a){if(null===a)this.f="";else{var c=a.b;null===c?this.l=null:(c=c.b,this.l={fillStyle:zg(null===c?Dl:c)});var d=a.g;if(null===d)this.v=null;else{var c=d.b,e=d.f,f=d.c,g=d.i,h=d.a,d=d.g;this.v={lineCap:m(e)?e:"round",lineDash:null!=f?f:El,lineJoin:m(g)?g:"round",lineWidth:m(h)?h:1,miterLimit:m(d)?d:10,strokeStyle:zg(null===c?Fl:c)}}var c=a.f,e=a.C,f=a.v,g=a.i,h=a.a,d=a.c,k=a.j;a=a.l;this.ba={font:m(c)?c:"10px sans-serif",textAlign:m(k)?k:"center",textBaseline:m(a)?a:"middle"};this.f= 568m(d)?d:"";this.qc=m(e)?this.B*e:0;this.xb=m(f)?this.B*f:0;this.ea=m(g)?g:0;this.C=this.B*(m(h)?h:1)}};var qm={Point:jm.prototype.nb,LineString:jm.prototype.yb,Polygon:jm.prototype.Rb,MultiPoint:jm.prototype.mb,MultiLineString:jm.prototype.vc,MultiPolygon:jm.prototype.wc,GeometryCollection:jm.prototype.Bd,Circle:jm.prototype.uc};function xm(a){qk.call(this,a);this.K=Ad()}w(xm,qk); 569xm.prototype.u=function(a,c,d){ym(this,"precompose",d,a,void 0);var e=this.hd();if(null!==e){var f=c.extent,g=m(f);
569if(g){var h=a.pixelRatio,k=de(f),n=ce(f),p=be(f),f=ae(f);pk(a.coordinateToPixelMatrix,k,k);pk(a.coordinateToPixelMatrix,n,n);pk(a.coordinateToPixelMatrix,p,p);pk(a.coordinateToPixelMatrix,f,f);d.save();d.beginPath();d.moveTo(k[0]*h,k[1]*h);d.lineTo(n[0]*h,n[1]*h);d.lineTo(p[0]*h,p[1]*h);d.lineTo(f[0]*h,f[1]*h);d.clip()}h=this.Ve();k=d.globalAlpha;d.globalAlpha=c.opacity;0===a.viewState.rotation? 570(c=h[13],n=e.width*h[0],p=e.height*h[5],d.drawImage(e,0,0,+e.width,+e.height,Math.round(h[12]),Math.round(c),Math.round(n),Math.round(p))):(d.setTransform(h[0],h[1],h[4],h[5],h[12],h[13]),d.drawImage(e,0,0),d.setTransform(1,0,0,1,0,0));d.globalAlpha=k;g&&d.restore()}ym(this,"postcompose",d,a,void 0)};function ym(a,c,d,e,f){var g=a.a;cd(g,c)&&(a=m(f)?f:zm(a,e,0),a=new jm(d,e.pixelRatio,e.extent,a,e.viewState.rotation),C(g,new jk(c,g,a,e,d,null)),wm(a))} 571function zm(a,c,d){var e=c.viewState,f=c.pixelRatio;return nk(a.K,f*c.size[0]/2,f*c.size[1]/2,f/e.resolution,-f/e.resolution,-e.rotation,-e.center[0]+d,-e.center[1])}function Am(a,c){var d=[0,0];pk(c,a,d);return d} 572var Bm=function(){var a=null,c=null;return function(d){if(null===a){a=Ui(1,1);c=a.createImageData(1,1);var e=c.data;e[0]=42;e[1]=84;e[2]=126;e[3]=255}var e=a.canvas,f=d[0]<=e.width&&d[1]<=e.height;f||(e.width=d[0],e.height=d[1],e=d[0]-1,d=d[1]-1,a.putImageData(c,e,d),d=a.getImageData(e,d,1,1),f=ib(c.data,d.data));return f}}();
572var Cm=["Polygon","LineString","Image","Text"];function Dm(a,c,d){this.pa=a;this.Z=c;this.f=null;this.i=0;this.resolution=d;this.T=this.K=null;this.a=[];this.coordinates=[];this.ca=Ad();this.b=[];this.ba=[];this.Ka=Ad()}w(Dm,ik); 573function Em(a,c,d,e,f,g){var h=a.coordinates.length,k=a.Pe(),n=[c[d],c[d+1]],p=[NaN,NaN],q=!0,r,t,v;for(r=d+f;r<e;r+=f)p[0]=c[r],p[1]=c[r+1],v=Vd(k,p),v!==t?(q&&(a.coordinates[h++]=n[0],a.coordinates[h++]=n[1]),a.coordinates[h++]=p[0],a.coordinates[h++]=p[1],q=!1):1===v?(a.coordinates[h++]=p[0],a.coordinates[h++]=p[1],q=!1):q=!0,n[0]=p[0],n[1]=p[1],t=v;r===d+f&&(a.coordinates[h++]=n[0],a.coordinates[h++]=n[1]);g&&(a.coordinates[h++]=c[d],a.coordinates[h++]=c[d+1]);return h} 574function Fm(a,c){a.K=[0,c,0];a.a.push(a.K);a.T=[0,c,0];a.b.push(a.T)} 575function Gm(a,c,d,e,f,g,h,k,n){var p;ok(e,a.ca)?p=a.ba:(p=Ye(a.coordinates,0,a.coordinates.length,2,e,a.ba),Dd(a.ca,e));e=0;var q=h.length,r=0,t;for(a=a.Ka;e<q;){var v=h[e],B,z,D,A;switch(v[0]){case 0:r=v[1];t=ma(r).toString();(t=m(g[t]))||(t=null==r.X());t?e=v[2]:m(n)&&!ie(n,r.X().R())?e=v[2]:++e;break;case 1:c.beginPath();++e;break;case 2:r=v[1];t=p[r];var y=p[r+1],J=p[r+2]-t,r=p[r+3]-y;c.arc(t,y,Math.sqrt(J*J+r*r),0,2*Math.PI,!0);++e;break;case 3:c.closePath();++e;break;case 4:r=v[1];t=v[2];B= 576v[3];D=v[4]*d;var L=v[5]*d,H=v[6];z=v[7];var Q=v[8],wa=v[9],y=v[11],J=v[12],Pa=v[13],P=v[14];for(v[10]&&(y+=f);r<t;r+=2){v=p[r]-D;A=p[r+1]-L;Pa&&(v=v+.5|0,A=A+.5|0);if(1!=J||0!==y){var Da=v+D,eb=A+L;nk(a,Da,eb,J,J,y,-Da,-eb);c.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])}Da=c.globalAlpha;1!=z&&(c.globalAlpha=Da*z);c.drawImage(B,Q,wa,P,H,v,A,P*d,H*d);1!=z&&(c.globalAlpha=Da);1==J&&0===y||c.setTransform(1,0,0,1,0,0)}++e;break;case 5:r=v[1];t=v[2];D=v[3];L=v[4]*d;H=v[5]*d;y=v[6];J=v[7]*d;B=v[8];for(z= 577v[9];r<t;r+=2){v=p[r]+L;A=p[r+1]+H;if(1!=J||0!==y)nk(a,v,A,J,J,y,-v,-A),c.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]);z&&c.strokeText(D,v,A);B&&c.fillText(D,v,A);1==J&&0===y||c.setTransform(1,0,0,1,0,0)}++e;break;case 6:if(m(k)&&(r=v[1],r=k(r)))return r;++e;break;case 7:c.fill();++e;break;case 8:r=v[1];t=v[2];c.moveTo(p[r],p[r+1]);for(r+=2;r<t;r+=2)c.lineTo(p[r],p[r+1]);++e;break;case 9:c.fillStyle=v[1];++e;break;case 10:r=m(v[7])?v[7]:!0;t=v[2];c.strokeStyle=v[1];c.lineWidth=r?t*d:t;c.lineCap= 578v[3];c.lineJoin=v[4];c.miterLimit=v[5];cj&&c.setLineDash(v[6]);++e;break;case 11:c.font=v[1];c.textAlign=v[2];c.textBaseline=v[3];++e;break;case 12:c.stroke();++e;break;default:++e}}}function Hm(a){var c=a.b;c.reverse();var d,e=c.length,f,g,h=-1;for(d=0;d<e;++d)if(f=c[d],g=f[0],6==g)h=d;else if(0==g){f[2]=d;f=a.b;for(g=d;h<g;){var k=f[h];f[h]=f[g];f[g]=k;++h;--g}h=-1}}function Im(a,c){a.K[2]=a.a.length;a.K=null;a.T[2]=a.b.length;a.T=null;var d=[6,c];a.a.push(d);a.b.push(d)}Dm.prototype.be=ca; 579Dm.prototype.Pe=function(){return this.Z};function Jm(a,c,d){Dm.call(this,a,c,d);this.l=this.V=null;this.ja=this.ea=this.B=this.D=this.A=this.u=this.v=this.C=this.j=this.g=this.c=void 0}w(Jm,Dm); 580Jm.prototype.nb=function(a,c){if(null!==this.l){Fm(this,c);var d=a.o,e=this.coordinates.length,d=Em(this,d,0,d.length,a.H,!1);this.a.push([4,e,d,this.l,this.c,this.g,this.j,this.C,this.v,this.u,this.A,this.D,this.B,this.ea,this.ja]);this.b.push([4,e,d,this.V,this.c,this.g,this.j,this.C,this.v,this.u,this.A,this.D,this.B,this.ea,this.ja]);Im(this,c)}}; 581Jm.prototype.mb=function(a,c){if(null!==this.l){Fm(this,c);var d=a.o,e=this.coordinates.length,d=Em(this,d,0,d.length,a.H,!1);this.a.push([4,e,d,this.l,this.c,this.g,this.j,this.C,this.v,this.u,this.A,this.D,this.B,this.ea,this.ja]);this.b.push([4,e,d,this.V,this.c,this.g,this.j,this.C,this.v,this.u,this.A,this.D,this.B,this.ea,this.ja]);Im(this,c)}};Jm.prototype.be=function(){Hm(this);this.g=this.c=void 0;this.l=this.V=null;this.ja=this.ea=this.D=this.A=this.u=this.v=this.C=this.B=this.j=void 0}; 582Jm.prototype.cb=function(a){var c=a.pb(),d=a.ab(),e=a.fe(1),f=a.Kb(1),g=a.ub();this.c=c[0];this.g=c[1];this.V=e;this.l=f;this.j=d[1];this.C=a.A;this.v=g[0];this.u=g[1];this.A=a.D;this.D=a.C;this.B=a.v;this.ea=a.B;this.ja=d[0]};function Km(a,c,d){Dm.call(this,a,c,d);this.c={Xc:void 0,Sc:void 0,Tc:null,Uc:void 0,Vc:void 0,Wc:void 0,af:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}w(Km,Dm); 583function Lm(a,c,d,e,f){var g=a.coordinates.length;c=Em(a,c,d,e,f,!1);g=[8,g,c];a.a.push(g);a.b.push(g);return e}l=Km.prototype;l.Pe=function(){null===this.f&&(this.f=Qd(this.Z),0<this.i&&Pd(this.f,this.resolution*(this.i+1)/2,this.f));return this.f}; 584function Mm(a){var c=a.c,d=c.strokeStyle,e=c.lineCap,f=c.lineDash,g=c.lineJoin,h=c.lineWidth,k=c.miterLimit;c.Xc==d&&c.Sc==e&&ib(c.Tc,f)&&c.Uc==g&&c.Vc==h&&c.Wc==k||(c.af!=a.c
584oordinates.length&&(a.a.push([12]),c.af=a.coordinates.length),a.a.push([10,d,h,e,g,k,f],[1]),c.Xc=d,c.Sc=e,c.Tc=f,c.Uc=g,c.Vc=h,c.Wc=k)} 585l.yb=function(a,c){var d=this.c,e=d.lineWidth;m(d.strokeStyle)&&m(e)&&(Mm(this),Fm(this,c),this.b.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash],[1]),d=a.o,Lm(this,d,0,d.length,a.H),this.b.push([12]),Im(this,c))}; 586l.vc=function(a,c){var d=this.c,e=d.lineWidth;if(m(d.strokeStyle)&&m(e)){Mm(this);Fm(this,c);this.b.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash],[1]);var d=a.c,e=a.o,f=a.H,g=0,h,k;h=0;for(k=d.length;h<k;++h)g=Lm(this,e,g,d[h],f);this.b.push([12]);Im(this,c)}};l.be=function(){this.c.af!=this.coordinates.length&&this.a.push([12]);Hm(this);this.c=null}; 587l.Fa=function(a,c){var d=c.b;this.c.strokeStyle=zg(null===d?Fl:d);d=c.f;this.c.lineCap=m(d)?d:"round";d=c.c;this.c.lineDash=null===d?El:d;d=c.i;this.c.lineJoin=m(d)?d:"round";d=c.a;this.c.lineWidth=m(d)?d:1;d=c.g;this.c.miterLimit=m(d)?d:10;this.c.lineWidth>this.i&&(this.i=this.c.lineWidth,this.f=null)}; 588function Nm(a,c,d){Dm.call(this,a,c,d);this.c={Qf:void 0,Xc:void 0,Sc:void 0,Tc:null,Uc:void 0,Vc:void 0,Wc:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}w(Nm,Dm); 589function Om(a,c,d,e,f){var g=a.c,h=[1];a.a.push(h);a.b.push(h);var k,h=0;for(k=e.length;h<k;++h){var n=e[h],p=a.coordinates.length;d=Em(a,c,d,n,f,!0);d=[8,p,d];p=[3];a.a.push(d,p);a.b.push(d,p);d=n}c=[7];a.b.push(c);m(g.fillStyle)&&a.a.push(c);m(g.strokeStyle)&&(g=[12],a.a.push(g),a.b.push(g));return d}l=Nm.prototype; 590l.uc=function(a,c){var d=this.c,e=d.strokeStyle;if(m(d.fillStyle)||m(e)){Pm(this);Fm(this,c);this.b.push([9,zg(Dl)]);m(d.strokeStyle)&&this.b.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash]);var f=a.o,e=this.coordinates.length;Em(this,f,0,f.length,a.H,!1);f=[1];e=[2,e];this.a.push(f,e);this.b.push(f,e);e=[7];this.b.push(e);m(d.fillStyle)&&this.a.push(e);m(d.strokeStyle)&&(d=[12],this.a.push(d),this.b.push(d));Im(this,c)}}; 591l.Rb=function(a,c){var d=this.c,e=d.strokeStyle;if(m(d.fillStyle)||m(e))Pm(this),Fm(this,c),this.b.push([9,zg(Dl)]),m(d.strokeStyle)&&this.b.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash]),d=a.c,e=Jf(a),Om(this,e,0,d,a.H),Im(this,c)}; 592l.wc=function(a,c){var d=this.c,e=d.strokeStyle;if(m(d.fillStyle)||m(e)){Pm(this);Fm(this,c);this.b.push([9,zg(Dl)]);m(d.strokeStyle)&&this.b.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash]);var d=a.c,e=tm(a),f=a.H,g=0,h,k;h=0;for(k=d.length;h<k;++h)g=Om(this,e,g,d[h],f);Im(this,c)}};l.be=function(){Hm(this);this.c=null;var a=this.pa;if(0!==a){var c=this.coordinates,d,e;d=0;for(e=c.length;d<e;++d)c[d]=a*Math.round(c[d]/a)}}; 593l.Pe=function(){null===this.f&&(this.f=Qd(this.Z),0<this.i&&Pd(this.f,this.resolution*(this.i+1)/2,this.f));return this.f}; 594l.Fa=function(a,c){var d=this.c;if(null===a)d.fillStyle=void 0;else{var e=a.b;d.fillStyle=zg(null===e?Dl:e)}null===c?(d.strokeStyle=void 0,d.lineCap=void 0,d.lineDash=null,d.lineJoin=void 0,d.lineWidth=void 0,d.miterLimit=void 0):(e=c.b,d.strokeStyle=zg(null===e?Fl:e),e=c.f,d.lineCap=m(e)?e:"round",e=c.c,d.lineDash=null===e?El:e.slice(),e=c.i,d.lineJoin=m(e)?e:"round",e=c.a,d.lineWidth=m(e)?e:1,e=c.g,d.miterLimit=m(e)?e:10,d.lineWidth>this.i&&(this.i=d.lineWidth,this.f=null))}; 595function Pm(a){var c=a.c,d=c.fillStyle,e=c.strokeStyle,f=c.lineCap,g=c.lineDash,h=c.lineJoin,k=c.lineWidth,n=c.miterLimit;m(d)&&c.Qf!=d&&(a.a.push([9,d]),c.Qf=c.fillStyle);!m(e)||c.Xc==e&&c.Sc==f&&c.Tc==g&&c.Uc==h&&c.Vc==k&&c.Wc==n||(a.a.push([10,e,k,f,h,n,g]),c.Xc=e,c.Sc=f,c.Tc=g,c.Uc=h,c.Vc=k,c.Wc=n)}function Qm(a,c,d){Dm.call(this,a,c,d);this.ea=this.B=this.D=null;this.l="";this.A=this.u=this.v=this.C=0;this.j=this.g=this.c=null}w(Qm,Dm); 596Qm.prototype.ob=function(a,c,d,e,f,g){if(""!==this.l&&null!==this.j&&(null!==this.c||null!==this.g)){if(null!==this.c){f=this.c;var h=this.D;if(null===h||h.fillStyle!=f.fillStyle){var k=[9,f.fillStyle];this.a.push(k);this.b.push(k);null===h?this.D={fillStyle:f.fillStyle}:h.fillStyle=f.fillStyle}}null!==this.g&&(f=this.g,h=this.B,null===h||h.lineCap!=f.lineCap||h.lineDash!=f.lineDash||h.lineJoin!=f.lineJoin||h.lineWidth!=f.lineWidth||h.miterLimit!=f.miterLimit||h.strokeStyle!=f.strokeStyle)&&(k=[10, 597f.strokeStyle,f.lineWidth,f.lineCap,f.lineJoin,f.miterLimit,f.lineDash,!1],this.a.push(k),this.b.push(k),null===h?this.B={lineCap:f.lineCap,lineDash:f.lineDash,lineJoin:f.lineJoin,lineWidth:f.lineWidth,miterLimit:f.miterLimit,strokeStyle:f.strokeStyle}:(h.lineCap=f.lineCap,h.lineDash=f.lineDash,h.lineJoin=f.lineJoin,h.lineWidth=f.lineWidth,h.miterLimit=f.miterLimit,h.strokeStyle=f.strokeStyle));f=this.j;h=this.ea;if(null===h||h.font!=f.font||h.textAlign!=f.textAlign||h.textBaseline!=f.textBaseline)k= 598[11,f.font,f.textAlign,f.textBaseline],this.a.push(k),this.b.push(k),null===h?this.ea={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline}:(h.font=f.font,h.textAlign=f.textAlign,h.textBaseline=f.textBaseline);Fm(this,g);f=this.coordinates.length;a=Em(this,a,c,d,e,!1);a=[5,f,a,this.l,this.C,this.v,this.u,this.A,null!==this.c,null!==this.g];this.a.push(a);this.b.push(a);Im(this,g)}};
599Qm.prototype.Ga=function(a){if(null===a)this.l="";else{var c=a.b;null===c?this.c=null:(c=c.b,c=zg(null===c?Dl:c),null===this.c?this.c={fillStyle:c}:this.c.fillStyle=c);var d=a.g;if(null===d)this.g=null;else{var c=d.b,e=d.f,f=d.c,g=d.i,h=d.a,d=d.g,e=m(e)?e:"round",f=null!=f?f.slice():El,g=m(g)?g:"round",h=m(h)?h:1,d=m(d)?d:10,c=zg(null===c?Fl:c);if(null===this.g)this.g={lineCap:e,lineDash:f,lineJoin:g,lineWidth:h,miterLimit:d,strokeStyle:c};else{var k=this.g;k.lineCap=e;k.lineDash=f;k.lineJoin=g;k.lineWidth= 600h;k.miterLimit=d;k.strokeStyle=c}}var n=a.f,c=a.C,e=a.v,f=a.i,h=a.a,d=a.c,g=a.j,k=a.l;a=m(n)?n:"10px sans-serif";g=m(g)?g:"center";k=m(k)?k:"middle";null===this.j?this.j={font:a,textAlign:g,textBaseline:k}:(n=this.j,n.font=a,n.textAlign=g,n.textBaseline=k);this.l=m(d)?d:"";this.C=m(c)?c:0;this.v=m(e)?e:0;this.u=m(f)?f:0;this.A=m(h)?h:1}};function Rm(a,c,d,e){this.l=a;this.c=c;this.j=d;this.f=e;this.a={};this.i=Ui(1,1);this.g=Ad()} 601function Sm(a){for(var c in a.a){var d=a.a[c],e;for(e in d)d[e].be()}}function Tm(a,c,d,e,f,g){var h=a.g;nk(h,.5,.5,1/d,-1/d,-e,-c[0],-c[1]);var k=a.i;k.clearRect(0,0,1,1);var n;m(a.f)&&(n=Ld(),Md(n,c),Pd(n,d*a.f,n));return Um(a,k,h,e,f,function(a){if(0<k.getImageData(0,0,1,1).data[3]){if(a=g(a))return a;k.clearRect(0,0,1,1)}},n)}Rm.prototype.b=function(a,c){var d=m(a)?a.toString():"0",e=this.a[d];m(e)||(e={},this.a[d]=e);d=e[c];m(d)||(d=new Vm[c](this.l,this.c,this.j),e[c]=d);return d}; 602Rm.prototype.va=function(){return xb(this.a)};function Wm(a,c,d,e,f,g){var h=Ua(tb(a.a),Number);gb(h);var k=a.c,n=k[0],p=k[1],q=k[2],k=k[3],n=[n,p,n,k,q,k,q,p];Ye(n,0,8,2,e,n);c.save();c.beginPath();c.moveTo(n[0],n[1]);c.lineTo(n[2],n[3]);c.lineTo(n[4],n[5]);c.lineTo(n[6],n[7]);c.closePath();c.clip();for(var r,t,n=0,p=h.length;n<p;++n)for(r=a.a[h[n].toString()],q=0,k=Cm.length;q<k;++q)t=r[Cm[q]],m(t)&&Gm(t,c,d,e,f,g,t.a,void 0);c.restore()} 603function Um(a,c,d,e,f,g,h){var k=Ua(tb(a.a),Number);gb(k,function(a,c){return c-a});var n,p,q,r,t;n=0;for(p=k.length;n<p;++n)for(r=a.a[k[n].toString()],q=Cm.length-1;0<=q;--q)if(t=r[Cm[q]],m(t)&&(t=Gm(t,c,1,d,e,f,t.b,g,h)))return t}var Vm={Image:Jm,LineString:Km,Polygon:Nm,Text:Qm};function Xm(a,c,d){Ze.call(this);this.xf(a,m(c)?c:0,d)}w(Xm,Ze);l=Xm.prototype;l.clone=function(){var a=new Xm(null);af(a,this.a,this.o.slice());a.s();return a};l.Ua=function(a,c,d,e){var f=this.o;a-=f[0];var g=c-f[1];c=a*a+g*g;if(c<e){if(0===c)for(e=0;e<this.H;++e)d[e]=f[e];else for(e=this.hf()/Math.sqrt(c),d[0]=f[0]+e*a,d[1]=f[1]+e*g,e=2;e<this.H;++e)d[e]=f[e];d.length=this.H;return c}return e};l.Zb=function(a,c){var d=this.o,e=a-d[0],d=c-d[1];return e*e+d*d<=Ym(this)}; 604l.ed=function(){return this.o.slice(0,this.H)};l.yd=function(a){var c=this.o,d=c[this.H]-c[0];return Od(c[0]-d,c[1]-d,c[0]+d,c[1]+d,a)};l.hf=function(){return Math.sqrt(Ym(this))};function Ym(a){var c=a.o[a.H]-a.o[0];a=a.o[a.H+1]-a.o[1];return c*c+a*a}l.U=function(){return"Circle"};l.sa=function(a){var c=this.R();return ie(a,c)?(c=this.ed(),a[0]<=c[0]&&a[2]>=c[0]||a[1]<=c[1]&&a[3]>=c[1]?!0:$d(a,this.Je,this)):!1}; 605l.Zk=function(a){var c=this.H,d=a.slice();d[c]=d[0]+(this.o[c]-this.o[0]);var e;for(e=1;e<c;++e)d[c+e]=a[e];af(this,this.a,d);this.s()};l.xf=function(a,c,d){if(null===a)af(this,"XY",null);else{bf(this,d,a,0);null===this.o&&(this.o=[]);d=this.o;a=mf(d,a);d[a++]=d[0]+c;var e;c=1;for(e=this.H;c<e;++c)d[a++]=d[c];d.length=a}this.s()};l.$k=function(a){this.o[this.H]=this.o[0]+a;this.s()};function Zm(a){Xe.call(this);this.f=m(a)?a:null;$m(this)}w(Zm,Xe);function an(a){var c=[],d,e;d=0;for(e=a.length;d<e;++d)c.push(a[d].clone());return c}function bn(a){var c,d;if(null!==a.f)for(c=0,d=a.f.length;c<d;++c)Wc(a.f[c],"change",a.s,!1,a)}function $m(a){var c,d;if(null!==a.f)for(c=0,d=a.f.length;c<d;++c)x(a.f[c],"change",a.s,!1,a)}l=Zm.prototype;l.clone=function(){var a=new Zm(null);a.jh(this.f);return a}; 606l.Ua=function(a,c,d,e){if(e<Rd(this.R(),a,c))return e;var f=this.f,g,h;g=0;for(h=f.length;g<h;++g)e=f[g].Ua(a,c,d,e);return e};l.Zb=function(a,c){var d=this.f,e,f;e=0;for(f=d.length;e<f;++e)if(d[e].Zb(a,c))return!0;return!1};l.yd=function(a){Od(Infinity,Infinity,-Infinity,-Infinity,a);for(var c=this.f,d=0,e=c.length;d<e;++d)Yd(a,c[d].R());return a};l.Uf=function(){return an(this.f)}; 607l.Xe=function(a){this.l!=this.b&&(yb(this.i),this.g=0,this.l=this.b);if(0>a||0!==this.g&&a<this.g)return this;var c=a.toString();if(this.i.hasOwnProperty(c))return this.i[c];var d=[],e=this.f,f=!1,g,h;g=0;for(h=e.length;g<h;++g){var k=e[g],n=k.Xe(a);d.push(n);n!==k&&(f=!0)}if(f)return a=new Zm(null),bn(a),a.f=d,$m(a),a.s(),this.i[c]=a;this.g=a;return this};l.U=function(){return"GeometryCollection"};l.sa=function(a){var c=this.f,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].sa(a))return!0;return!1}; 608l.va=function(){return 0==this.f.length};l.jh=function(a){a=an(a);bn(this);this.f=a;$m(this);this.s()};l.Qb=function(a){var c=this.f,d,e;d=0;for(e=c.length;d<e;++d)c[d].Qb(a);this.s()};l.translate=function(a,c){var d=this.f,e,f;e=0;for(f=d.length;e<f;++e)d[e].translate(a,c);this.s()};l.Y=function(){bn(this);Zm.aa.Y.call(this)};function cn(a,c,d,e,f){var g=NaN,h=NaN,k=(d-c)/e;if(0!==k)if(1==k)g=a[c],h=a[c+1];
608else if(2==k)g=.5*a[c]+.5*a[c+e],h=.5*a[c+1]+.5*a[c+e+1];else{var h=a[c],k=a[c+1],n=0,g=[0],p;for(p=c+e;p<d;p+=e){var q=a[p],r=a[p+1],n=n+Math.sqrt((q-h)*(q-h)+(r-k)*(r-k));g.push(n);h=q;k=r}d=.5*n;for(var t,h=hb,k=0,n=g.length;k<n;)p=k+n>>1,q=h(d,g[p]),0<q?k=p+1:(n=p,t=!q);t=t?k:~k;0>t?(d=(d-g[-t-2])/(g[-t-1]-g[-t-2]),c+=(-t-2)*e,g=Zb(a[c],a[c+e],d),h=Zb(a[c+1],a[c+e+1],d)):(g=a[c+t*e],h=a[c+t*e+1])}return null!=f? 609(f[0]=g,f[1]=h,f):[g,h]}function dn(a,c,d,e,f,g){if(d==c)return null;if(f<a[c+e-1])return g?(d=a.slice(c,c+e),d[e-1]=f,d):null;if(a[d-1]<f)return g?(d=a.slice(d-e,d),d[e-1]=f,d):null;if(f==a[c+e-1])return a.slice(c,c+e);c/=e;for(d/=e;c<d;)g=c+d>>1,f<a[(g+1)*e-1]?d=g:c=g+1;d=a[c*e-1];if(f==d)return a.slice((c-1)*e,(c-1)*e+e);g=(f-d)/(a[(c+1)*e-1]-d);d=[];var h;for(h=0;h<e-1;++h)d.push(Zb(a[(c-1)*e+h],a[c*e+h],g));d.push(f);return d} 610function en(a,c,d,e,f,g){var h=0;if(g)return dn(a,h,c[c.length-1],d,e,f);if(e<a[d-1])return f?(a=a.slice(0,d),a[d-1]=e,a):null;if(a[a.length-1]<e)return f?(a=a.slice(a.length-d),a[d-1]=e,a):null;f=0;for(g=c.length;f<g;++f){var k=c[f];if(h!=k){if(e<a[h+d-1])break;if(e<=a[k-1])return dn(a,h,k,d,e,!1);h=k}}return null};function N(a,c){Ze.call(this);this.c=null;this.A=this.D=this.j=-1;this.ia(a,c)}w(N,Ze);l=N.prototype;l.mi=function(a){null===this.o?this.o=a.slice():cb(this.o,a);this.s()};l.clone=function(){var a=new N(null);fn(a,this.a,this.o.slice());return a};l.Ua=function(a,c,d,e){if(e<Rd(this.R(),a,c))return e;this.A!=this.b&&(this.D=Math.sqrt(hf(this.o,0,this.o.length,this.H,0)),this.A=this.b);return kf(this.o,0,this.o.length,this.H,this.D,!1,a,c,d,e)}; 611l.Ci=function(a,c){return Bf(this.o,0,this.o.length,this.H,a,c)};l.al=function(a,c){return"XYM"!=this.a&&"XYZM"!=this.a?null:dn(this.o,0,this.o.length,this.H,a,m(c)?c:!1)};l.W=function(){return pf(this.o,0,this.o.length,this.H)};l.bl=function(){var a=this.o,c=this.H,d=a[0],e=a[1],f=0,g;for(g=0+c;g<this.o.length;g+=c)var h=a[g],k=a[g+1],f=f+Math.sqrt((h-d)*(h-d)+(k-e)*(k-e)),d=h,e=k;return f};function rm(a){a.j!=a.b&&(a.c=cn(a.o,0,a.o.length,a.H,a.c),a.j=a.b);return a.c} 612l.yc=function(a){var c=[];c.length=rf(this.o,0,this.o.length,this.H,a,c,0);a=new N(null);fn(a,"XY",c);return a};l.U=function(){return"LineString"};l.sa=function(a){return Cf(this.o,0,this.o.length,this.H,a)};l.ia=function(a,c){null===a?fn(this,"XY",null):(bf(this,c,a,1),null===this.o&&(this.o=[]),this.o.length=nf(this.o,0,a,this.H),this.s())};function fn(a,c,d){af(a,c,d);a.s()};function O(a,c){Ze.call(this);this.c=[];this.j=this.A=-1;this.ia(a,c)}w(O,Ze);l=O.prototype;l.ni=function(a){null===this.o?this.o=a.o.slice():cb(this.o,a.o.slice());this.c.push(this.o.length);this.s()};l.clone=function(){var a=new O(null);gn(a,this.a,this.o.slice(),this.c.slice());return a};l.Ua=function(a,c,d,e){if(e<Rd(this.R(),a,c))return e;this.j!=this.b&&(this.A=Math.sqrt(jf(this.o,0,this.c,this.H,0)),this.j=this.b);return lf(this.o,0,this.c,this.H,this.A,!1,a,c,d,e)}; 613l.dl=function(a,c,d){return"XYM"!=this.a&&"XYZM"!=this.a||0===this.o.length?null:en(this.o,this.c,this.H,a,m(c)?c:!1,m(d)?d:!1)};l.W=function(){return qf(this.o,0,this.c,this.H)};l.Zi=function(a){if(0>a||this.c.length<=a)return null;var c=new N(null);fn(c,this.a,this.o.slice(0===a?0:this.c[a-1],this.c[a]));return c};l.bd=function(){var a=this.o,c=this.c,d=this.a,e=[],f=0,g,h;g=0;for(h=c.length;g<h;++g){var k=c[g],n=new N(null);fn(n,d,a.slice(f,k));e.push(n);f=k}return e}; 614function sm(a){var c=[],d=a.o,e=0,f=a.c;a=a.H;var g,h;g=0;for(h=f.length;g<h;++g){var k=f[g],e=cn(d,e,k,a);cb(c,e);e=k}return c}l.yc=function(a){var c=[],d=[],e=this.o,f=this.c,g=this.H,h=0,k=0,n,p;n=0;for(p=f.length;n<p;++n){var q=f[n],k=rf(e,h,q,g,a,c,k);d.push(k);h=q}c.length=k;a=new O(null);gn(a,"XY",c,d);return a};l.U=function(){return"MultiLineString"};l.sa=function(a){a:{var c=this.o,d=this.c,e=this.H,f=0,g,h;g=0;for(h=d.length;g<h;++g){if(Cf(c,f,d[g],e,a)){a=!0;break a}f=d[g]}a=!1}return a}; 615l.ia=function(a,c){if(null===a)gn(this,"XY",null,this.c);else{bf(this,c,a,2);null===this.o&&(this.o=[]);var d=of(this.o,0,a,this.H,this.c);this.o.length=0===d.length?0:d[d.length-1];this.s()}};function gn(a,c,d,e){af(a,c,d);
615a.c=e;a.s()}function hn(a,c){var d="XY",e=[],f=[],g,h;g=0;for(h=c.length;g<h;++g){var k=c[g];0===g&&(d=k.a);cb(e,k.o);f.push(e.length)}gn(a,d,e,f)};function jn(a,c){Ze.call(this);this.ia(a,c)}w(jn,Ze);l=jn.prototype;l.pi=function(a){null===this.o?this.o=a.o.slice():cb(this.o,a.o);this.s()};l.clone=function(){var a=new jn(null);af(a,this.a,this.o.slice());a.s();return a};l.Ua=function(a,c,d,e){if(e<Rd(this.R(),a,c))return e;var f=this.o,g=this.H,h,k,n;h=0;for(k=f.length;h<k;h+=g)if(n=ff(a,c,f[h],f[h+1]),n<e){e=n;for(n=0;n<g;++n)d[n]=f[h+n];d.length=g}return e};l.W=function(){return pf(this.o,0,this.o.length,this.H)}; 616l.hj=function(a){var c=null===this.o?0:this.o.length/this.H;if(0>a||c<=a)return null;c=new vf(null);wf(c,this.a,this.o.slice(a*this.H,(a+1)*this.H));return c};l.ae=function(){var a=this.o,c=this.a,d=this.H,e=[],f,g;f=0;for(g=a.length;f<g;f+=d){var h=new vf(null);wf(h,c,a.slice(f,f+d));e.push(h)}return e};l.U=function(){return"MultiPoint"};l.sa=function(a){var c=this.o,d=this.H,e,f,g,h;e=0;for(f=c.length;e<f;e+=d)if(g=c[e],h=c[e+1],Td(a,g,h))return!0;return!1}; 617l.ia=function(a,c){null===a?af(this,"XY",null):(bf(this,c,a,1),null===this.o&&(this.o=[]),this.o.length=nf(this.o,0,a,this.H));this.s()};function R(a,c){Ze.call(this);this.c=[];this.A=-1;this.D=null;this.T=this.B=this.K=-1;this.j=null;this.ia(a,c)}w(R,Ze);l=R.prototype;l.ri=function(a){if(null===this.o)this.o=a.o.slice(),a=a.c.slice(),this.c.push();else{var c=this.o.length;cb(this.o,a.o);a=a.c.slice();var d,e;d=0;for(e=a.length;d<e;++d)a[d]+=c}this.c.push(a);this.s()};l.clone=function(){var a=new R(null),c=Db(this.c);kn(a,this.a,this.o.slice(),c);return a}; 618l.Ua=function(a,c,d,e){if(e<Rd(this.R(),a,c))return e;if(this.B!=this.b){var f=this.c,g=0,h=0,k,n;k=0;for(n=f.length;k<n;++k)var p=f[k],h=jf(this.o,g,p,this.H,h),g=p[p.length-1];this.K=Math.sqrt(h);this.B=this.b}f=tm(this);g=this.c;h=this.H;k=this.K;n=0;var p=m(void 0)?void 0:[NaN,NaN],q,r;q=0;for(r=g.length;q<r;++q){var t=g[q];e=lf(f,n,t,h,k,!0,a,c,d,e,p);n=t[t.length-1]}return e}; 619l.Zb=function(a,c){var d;a:{d=tm(this);var e=this.c,f=0;if(0!==e.length){var g,h;g=0;for(h=e.length;g<h;++g){var k=e[g];if(zf(d,f,k,this.H,a,c)){d=!0;break a}f=k[k.length-1]}}d=!1}return d};l.el=function(){var a=tm(this),c=this.c,d=0,e=0,f,g;f=0;for(g=c.length;f<g;++f)var h=c[f],e=e+df(a,d,h,this.H),d=h[h.length-1];return e}; 620l.W=function(a){var c;m(a)?(c=tm(this).slice(),Hf(c,this.c,this.H,a)):c=this.o;a=c;c=this.c;var d=this.H,e=0,f=m(void 0)?void 0:[],g=0,h,k;h=0;for(k=c.length;h<k;++h){var n=c[h];f[g++]=qf(a,e,n,d,f[g]);e=n[n.length-1]}f.length=g;return f}; 621function um(a){if(a.A!=a.b){var c=a.o,d=a.c,e=a.H,f=0,g=[],h,k,n=Ld();h=0;for(k=d.length;h<k;++h){var p=d[h],n=Zd(Od(Infinity,Infinity,-Infinity,-Infinity,void 0),c,f,p[0],e);g.push((n[0]+n[2])/2,(n[1]+n[3])/2);f=p[p.length-1]}c=tm(a);d=a.c;e=a.H;f=0;h=[];k=0;for(n=d.length;k<n;++k)p=d[k],h=Af(c,f,p,e,g,2*k,h),f=p[p.length-1];a.D=h;a.A=a.b}return a.D}l.Wi=function(){var a=new jn(null),c=um(this).slice();af(a,"XY",c);a.s();return a}; 622function tm(a){if(a.T!=a.b){var c=a.o,d;a:{d=a.c;var e,f;e=0;for(f=d.length;e<f;++e)if(!Ff(c,d[e],a.H,void 0)){d=!1;break a}d=!0}d?a.j=c:(a.j=c.slice(),a.j.length=Hf(a.j,a.c,a.H));a.T=a.b}return a.j}l.yc=function(a){var c=[],d=[],e=this.o,f=this.c,g=this.H;a=Math.sqrt(a);var h=0,k=0,n,p;n=0;for(p=f.length;n<p;++n){var q=f[n],r=[],k=sf(e,h,q,g,a,c,k,r);d.push(r);h=q[q.length-1]}c.length=k;e=new R(null);kn(e,"XY",c,d);return e}; 623l.jj=function(a){if(0>a||this.c.length<=a)return null;var c;0===a?c=0:(c=this.c[a-1],c=c[c.length-1]);a=this.c[a].slice();var d=a[a.length-1];if(0!==c){var e,f;e=0;for(f=a.length;e<f;++e)a[e]-=c}e=new E(null);If(e,this.a,this.o.slice(c,d),a);return e};l.Jd=function(){var a=this.a,c=this.o,d=this.c,e=[],f=0,g,h,k,n;g=0;for(h=d.length;g<h;++g){var p=d[g].slice(),q=p[p.length-1];if(0!==f)for(k=0,n=p.length;k<n;++k)p[k]-=f;k=new E(null);If(k,a,c.slice(f,q),p);e.push(k);f=q}return e};l.U=function(){return"MultiPolygon"};
624l.sa=function(a){a:{var c=tm(this),d=this.c,e=this.H,f=0,g,h;g=0;for(h=d.length;g<h;++g){var k=d[g];if(Df(c,f,k,e,a)){a=!0;break a}f=k[k.length-1]}a=!1}return a};l.ia=function(a,c){if(null===a)kn(this,"XY",null,this.c);else{bf(this,c,a,3);null===this.o&&(this.o=[]);var d=this.o,e=this.H,f=this.c,g=0,f=m(f)?f:[],h=0,k,n;k=0;for(n=a.length;k<n;++k)g=of(d,g,a[k],e,f[h]),f[h++]=g,g=g[g.length-1];f.length=h;0===f.length?this.o.length=0:(d=f[f.length-1],this.o.length=0===d.length?0:d[d.length-1]);this.s()}}; 625function kn(a,c,d,e){af(a,c,d);a.c=e;a.s()}function ln(a,c){var d="XY",e=[],f=[],g,h,k;g=0;for(h=c.length;g<h;++g){var n=c[g];0===g&&(d=n.a);var p=e.length;k=n.c;var q,r;q=0;for(r=k.length;q<r;++q)k[q]+=p;cb(e,n.o);f.push(k)}kn(a,d,e,f)};function mn(a,c){return ma(a)-ma(c)}function nn(a,c){var d=.5*a/c;return d*d}function on(a,c,d,e,f,g){var h=!1,k,n;k=d.g;null!==k&&(n=k.jd(),2==n||3==n?k.Af(f,g):(0==n&&k.load(),k.bf(f,g),h=!0));f=(0,d.i)(c);null!=f&&(e=f.Xe(e),(0,pn[e.U()])(a,e,d,c));return h} 626var pn={Point:function(a,c,d,e){var f=d.g;if(null!==f){if(2!=f.jd())return;var g=a.b(d.b,"Image");g.cb(f);g.nb(c,e)}f=d.a;null!==f&&(a=a.b(d.b,"Text"),a.Ga(f),a.ob(c.W(),0,2,2,c,e))},LineString:function(a,c,d,e){var f=d.c;if(null!==f){var g=a.b(d.b,"LineString");g.Fa(null,f);g.yb(c,e)}f=d.a;null!==f&&(a=a.b(d.b,"Text"),a.Ga(f),a.ob(rm(c),0,2,2,c,e))},Polygon:function(a,c,d,e){var f=d.f,g=d.c;if(null!==f||null!==g){var h=a.b(d.b,"Polygon");h.Fa(f,g);h.Rb(c,e)}f=d.a;null!==f&&(a=a.b(d.b,"Text"),a.Ga(f), 627a.ob(Kf(c),0,2,2,c,e))},MultiPoint:function(a,c,d,e){var f=d.g;if(null!==f){if(2!=f.jd())return;var g=a.b(d.b,"Image");g.cb(f);g.mb(c,e)}f=d.a;null!==f&&(a=a.b(d.b,"Text"),a.Ga(f),d=c.o,a.ob(d,0,d.length,c.H,c,e))},MultiLineString:function(a,c,d,e){var f=d.c;if(null!==f){var g=a.b(d.b,"LineString");g.Fa(null,f);g.vc(c,e)}f=d.a;null!==f&&(a=a.b(d.b,"Text"),a.Ga(f),d=sm(c),a.ob(d,0,d.length,2,c,e))},MultiPolygon:function(a,c,d,e){var f=d.f,g=d.c;if(null!==g||null!==f){var h=a.b(d.b,"Polygon");h.Fa(f, 628g);h.wc(c,e)}f=d.a;null!==f&&(a=a.b(d.b,"Text"),a.Ga(f),d=um(c),a.ob(d,0,d.length,2,c,e))},GeometryCollection:function(a,c,d,e){c=c.f;var f,g;f=0;for(g=c.length;f<g;++f)(0,pn[c[f].U()])(a,c[f],d,e)},Circle:function(a,c,d,e){var f=d.f,g=d.c;if(null!==f||null!==g){var h=a.b(d.b,"Polygon");h.Fa(f,g);h.uc(c,e)}f=d.a;null!==f&&(a=a.b(d.b,"Text"),a.Ga(f),a.ob(c.ed(),0,2,2,c,e))}};function qn(a,c,d,e,f,g){this.f=m(g)?g:null;lk.call(this,a,c,d,m(g)?0:2,e);this.c=f;this.a=null}w(qn,lk);qn.prototype.getError=function(){return this.a};qn.prototype.j=function(a){a?(this.a=a,this.state=3):this.state=2;mk(this)};qn.prototype.load=function(){0==this.state&&(this.state=1,mk(this),this.f(ra(this.j,this)))};qn.prototype.b=function(){return this.c};function rn(a){Eh.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.v=m(a.resolutions)?a.resolutions:null}w(rn,Eh);function sn(a,c){if(null!==a.v){var d=cc(a.v,c,0);c=a.v[d]}return c}rn.prototype.l=function(a){a=a.target;switch(a.state){case 1:C(this,new tn(un,a));break;case 2:C(this,new tn(vn,a));break;case 3:C(this,new tn(wn,a))}};function xn(a,c){a.b().src=c}function tn(a,c){tc.call(this,a);this.image=c}w(tn,tc); 629var un="imageloadstart",vn="imageloadend",wn="imageloaderror";function yn(a){rn.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions,state:m(a.state)?a.state:void 0});this.Z=a.canvasFunction;this.K=null;this.V=0;this.ba=m(a.ratio)?a.ratio:1.5}w(yn,rn);yn.prototype.cc=function(a,c,d,e){c=sn(this,c);var f=this.K;if(null!==f&&this.V==this.b&&f.resolution==c&&f.i==d&&Ud(f.R(),a))return f;a=a.slice();le(a,this.ba);e=this.Z(a,c,d,[je(a)/c*d,ge(a)/c*d],e);null===e||(f=new qn(a,c,d,this.i,e));this.K=f;this.V=this.b;return f};function zn(a){gd.call(this);this.ga=void 0;this.a="geometry";this.i=null;this.c=void 0;this.f=null;x(this,id(this.a),this.Nd,!1,this);m(a)&&(a instanceof Xe||null===a?this.ra(a):this.I(a))}w(zn,gd);l=zn.prototype;l.clone=function(){var a=new zn(this.P());a.Ic(this.a);var c=this.X();null!=c&&a.ra(c.clone());c=this.i;null===c||a.ef(c);return a};l.X=function(){return this.get(this.a)};l.Ti=function(){return this.ga};l.Si=function(){return this.a};l.zk=function(){return this.i};l.Ak=function(){return this.c}; 630l.Bk=function(){this.s()};l.Nd=function(){null!==this.f&&(Xc(this.f),this.f=null);var a=this.X();null!=a&&(this.f=x(a,"change",this.Bk,!1,this));this.s()};l.ra=function(a){this.set(this.a,a)};l.ef=function(a){this.i=a;null===a?a=void 0:ka(a)||(a=ga(a)?a:[a],a=ne(a));this.c=a;this.s()};l.Nb=function(a){this.ga=a;this.s()};l.Ic=function(a){Wc(this,id(this.a),this.Nd,!1,this);this.a=a;x(this,id(this.a),this.Nd,!1,this);this.Nd()};function An(a){a.prototype.then=a.prototype.then;
630a.prototype.$goog_Thenable=!0}function Bn(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(c){return!1}};function Cn(a,c,d){this.f=d;this.c=a;this.i=c;this.a=0;this.b=null}Cn.prototype.get=function(){var a;0<this.a?(this.a--,a=this.b,this.b=a.next,a.next=null):a=this.c();return a};function Dn(a,c){a.i(c);a.a<a.f&&(a.a++,c.next=a.b,a.b=c)};function En(){this.a=this.b=null}var Gn=new Cn(function(){return new Fn},function(a){a.reset()},100);En.prototype.add=function(a,c){var d=Gn.get();d.set(a,c);this.a?this.a.next=d:this.b=d;this.a=d};En.prototype.remove=function(){var a=null;this.b&&(a=this.b,this.b=this.b.next,this.b||(this.a=null),a.next=null);return a};function Fn(){this.next=this.a=this.b=null}Fn.prototype.set=function(a,c){this.b=a;this.a=c;this.next=null};Fn.prototype.reset=function(){this.next=this.a=this.b=null};function Hn(a,c){In||Jn();Kn||(In(),Kn=!0);Ln.add(a,c)}var In;function Jn(){if(ba.Promise&&ba.Promise.resolve){var a=ba.Promise.resolve(void 0);In=function(){a.then(Mn)}}else In=function(){ri(Mn)}}var Kn=!1,Ln=new En;function Mn(){for(var a=null;a=Ln.remove();){try{a.b.call(a.a)}catch(c){qi(c)}Dn(Gn,a)}Kn=!1};function Nn(a,c){this.b=On;this.j=void 0;this.f=this.a=this.c=null;this.i=this.g=!1;if(a!=ca)try{var d=this;a.call(c,function(a){Pn(d,Qn,a)},function(a){Pn(d,Rn,a)})}catch(e){Pn(this,Rn,e)}}var On=0,Qn=2,Rn=3;function Sn(){this.next=this.c=this.a=this.f=this.b=null;this.i=!1}Sn.prototype.reset=function(){this.c=this.a=this.f=this.b=null;this.i=!1};var Tn=new Cn(function(){return new Sn},function(a){a.reset()},100);function Un(a,c,d){var e=Tn.get();e.f=a;e.a=c;e.c=d;return e} 631Nn.prototype.then=function(a,c,d){return Vn(this,ka(a)?a:null,ka(c)?c:null,d)};An(Nn);Nn.prototype.cancel=function(a){this.b==On&&Hn(function(){var c=new Wn(a);Xn(this,c)},this)};function Xn(a,c){if(a.b==On)if(a.c){var d=a.c;if(d.a){for(var e=0,f=null,g=null,h=d.a;h&&(h.i||(e++,h.b==a&&(f=h),!(f&&1<e)));h=h.next)f||(g=h);f&&(d.b==On&&1==e?Xn(d,c):(g?(e=g,e.next==d.f&&(d.f=e),e.next=e.next.next):Yn(d),Zn(d,f,Rn,c)))}a.c=null}else Pn(a,Rn,c)} 632function $n(a,c){a.a||a.b!=Qn&&a.b!=Rn||ao(a);a.f?a.f.next=c:a.a=c;a.f=c}function Vn(a,c,d,e){var f=Un(null,null,null);f.b=new Nn(function(a,h){f.f=c?function(d){try{var f=c.call(e,d);a(f)}catch(p){h(p)}}:a;f.a=d?function(c){try{var f=d.call(e,c);!m(f)&&c instanceof Wn?h(c):a(f)}catch(p){h(p)}}:h});f.b.c=a;$n(a,f);return f.b}Nn.prototype.C=function(a){this.b=On;Pn(this,Qn,a)};Nn.prototype.v=function(a){this.b=On;Pn(this,Rn,a)}; 633function Pn(a,c,d){if(a.b==On){a==d&&(c=Rn,d=new TypeError("Promise cannot resolve to itself"));a.b=1;var e;a:{var f=d,g=a.C,h=a.v;if(f instanceof Nn)$n(f,Un(g||ca,h||null,a)),e=!0;else if(Bn(f))f.then(g,h,a),e=!0;else{if(la(f))try{var k=f.then;if(ka(k)){bo(f,k,g,h,a);e=!0;break a}}catch(n){h.call(a,n);e=!0;break a}e=!1}}e||(a.j=d,a.b=c,a.c=null,ao(a),c!=Rn||d instanceof Wn||co(a,d))}} 634function bo(a,c,d,e,f){function g(a){k||(k=!0,e.call(f,a))}function h(a){k||(k=!0,d.call(f,a))}var k=!1;try{c.call(a,h,g)}catch(n){g(n)}}function ao(a){a.g||(a.g=!0,Hn(a.l,a))}function Yn(a){var c=null;a.a&&(c=a.a,a.a=c.next,c.next=null);a.a||(a.f=null);return c}Nn.prototype.l=function(){for(var a=null;a=Yn(this);)Zn(this,a,this.b,this.j);this.g=!1}; 635function Zn(a,c,d,e){if(d==Rn&&c.a&&!c.i)for(;a&&a.i;a=a.c)a.i=!1;if(c.b)c.b.c=null,eo(c,d,e);else try{c.i?c.f.call(c.c):eo(c,d,e)}catch(f){fo.call(null,f)}Dn(Tn,c)}function eo(a,c,d){c==Qn?a.f.call(a.c,d):a.a&&a.a.call(a.c,d)}function co(a,c){a.i=!0;Hn(function(){a.i&&fo.call(null,c)})}var fo=qi;function Wn(a){xa.call(this,a)}w(Wn,xa);Wn.prototype.name="cancel";function go(a,c,d){if(ka(a))d&&(a=ra(a,d));else if(a&&"function"==typeof a.handleEvent)a=ra(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<c?-1:ba.setTimeout(a,c||0)};var ho=ba.JSON.parse,io=ba.JSON.stringify;function jo(){}jo.prototype.b=null;function ko(a){var c;(c=a.b)||(c={},lo(a)&&(c[0]=!0,c[1]=!0),c=a.b=c);return c};var mo;function no(){}w(no,jo);function oo(a){return(a=lo(a))?new ActiveXObject(a):new XMLHttpRequest}function lo(a){if(!a.a&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var c=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],d=0;d<c.length;d++){var e=c[d];try{return new ActiveXObject(e),a.a=e}catch(f){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.a}mo=new no;var po=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;
635function qo(a){if(ro){ro=!1;var c=ba.location;if(c){var d=c.href;if(d&&(d=(d=qo(d)[3]||null)?decodeURI(d):d)&&d!=c.hostname)throw ro=!0,Error();}}return a.match(po)}var ro=Lb; 636function so(a,c){if(a)for(var d=a.split("&"),e=0;e<d.length;e++){var f=d[e].indexOf("="),g=null,h=null;0<=f?(g=d[e].substring(0,f),h=d[e].substring(f+1)):g=d[e];c(g,h?decodeURIComponent(h.replace(/\+/g," ")):"")}}function to(a){if(a[1]){var c=a[0],d=c.indexOf("#");0<=d&&(a.push(c.substr(d)),a[0]=c=c.substr(0,d));d=c.indexOf("?");0>d?a[1]="?":d==c.length-1&&(a[1]=void 0)}return a.join("")} 637function uo(a,c,d){if(ga(c))for(var e=0;e<c.length;e++)uo(a,String(c[e]),d);else null!=c&&d.push("&",a,""===c?"":"=",encodeURIComponent(String(c)))}function vo(a,c){for(var d in c)uo(d,c[d],a);return a};function wo(a){ad.call(this);this.K=new vi;this.l=a||null;this.b=!1;this.j=this.fa=null;this.i=this.T=this.u="";this.a=this.v=this.f=this.C=!1;this.g=0;this.c=null;this.A=xo;this.D=this.Z=!1}w(wo,ad);var xo="",yo=/^https?$/i,zo=["POST","PUT"]; 638function Ao(a,c){if(a.fa)throw Error("[goog.net.XhrIo] Object is active with another request="+a.u+"; newUri="+c);a.u=c;a.i="";a.T="GET";a.C=!1;a.b=!0;a.fa=a.l?oo(a.l):oo(mo);a.j=a.l?ko(a.l):ko(mo);a.fa.onreadystatechange=ra(a.B,a);try{a.v=!0,a.fa.open("GET",String(c),!0),a.v=!1}catch(d){Bo(a,d);return}var e=a.K.clone(),f=Wa(e.O(),Co),g=ba.FormData&&!1;!Ya(zo,"GET")||f||g||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,c){this.fa.setRequestHeader(c,a)},
639a);a.A&&(a.fa.responseType=a.A);"withCredentials"in a.fa&&(a.fa.withCredentials=a.Z);try{Do(a),0<a.g&&(a.D=Eo(a.fa),a.D?(a.fa.timeout=a.g,a.fa.ontimeout=ra(a.oc,a)):a.c=go(a.oc,a.g,a)),a.f=!0,a.fa.send(""),a.f=!1}catch(h){Bo(a,h)}}function Eo(a){return Ib&&Tb(9)&&ja(a.timeout)&&m(a.ontimeout)}function Co(a){return"content-type"==a.toLowerCase()} 640wo.prototype.oc=function(){"undefined"!=typeof aa&&this.fa&&(this.i="Timed out after "+this.g+"ms, aborting",C(this,"timeout"),this.fa&&this.b&&(this.b=!1,this.a=!0,this.fa.abort(),this.a=!1,C(this,"complete"),C(this,"abort"),Fo(this)))};function Bo(a,c){a.b=!1;a.fa&&(a.a=!0,a.fa.abort(),a.a=!1);a.i=c;Go(a);Fo(a)}function Go(a){a.C||(a.C=!0,C(a,"complete"),C(a,"error"))}wo.prototype.Y=function(){this.fa&&(this.b&&(this.b=!1,this.a=!0,this.fa.abort(),this.a=!1),Fo(this,!0));wo.aa.Y.call(this)}; 641wo.prototype.B=function(){this.ea||(this.v||this.f||this.a?Ho(this):this.V())};wo.prototype.V=function(){Ho(this)};function Ho(a){if(a.b&&"undefined"!=typeof aa&&(!a.j[1]||4!=Io(a)||2!=Jo(a)))if(a.f&&4==Io(a))go(a.B,0,a);else if(C(a,"readystatechange"),4==Io(a)){a.b=!1;try{if(Ko(a))C(a,"complete"),C(a,"success");else{var c;try{c=2<Io(a)?a.fa.statusText:""}catch(d){c=""}a.i=c+" ["+Jo(a)+"]";Go(a)}}finally{Fo(a)}}} 642function Fo(a,c){if(a.fa){Do(a);var d=a.fa,e=a.j[0]?ca:null;a.fa=null;a.j=null;c||C(a,"ready");try{d.onreadystatechange=e}catch(f){}}}function Do(a){a.fa&&a.D&&(a.fa.ontimeout=null);ja(a.c)&&(ba.clearTimeout(a.c),a.c=null)} 643function Ko(a){var c=Jo(a),d;a:switch(c){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:d=!0;break a;default:d=!1}if(!d){if(c=0===c)a=qo(String(a.u))[1]||null,!a&&ba.self&&ba.self.location&&(a=ba.self.location.protocol,a=a.substr(0,a.length-1)),c=!yo.test(a?a.toLowerCase():"");d=c}return d}function Io(a){return a.fa?a.fa.readyState:0}function Jo(a){try{return 2<Io(a)?a.fa.status:-1}catch(c){return-1}}function Lo(a){try{return a.fa?a.fa.responseText:""}catch(c){return""}};function Mo(a){if("undefined"!=typeof XMLSerializer)return(new XMLSerializer).serializeToString(a);if(a=a.xml)return a;throw Error("Your browser does not support serializing XML documents");};var No;a:if(document.implementation&&document.implementation.createDocument)No=document.implementation.createDocument("","",null);else{if("undefined"!=typeof ActiveXObject){var Oo=new ActiveXObject("MSXML2.DOMDocument");if(Oo){Oo.resolveExternals=!1;Oo.validateOnParse=!1;try{Oo.setProperty("ProhibitDTD",!0),Oo.setProperty("MaxXMLSize",2048),Oo.setProperty("MaxElementDepth",256)}catch(Po){}}if(Oo){No=Oo;break a}}throw Error("Your browser does not support creating new documents");}var Qo=No; 644function Ro(a,c){return Qo.createElementNS(a,c)}function So(a,c){null===a&&(a="");return Qo.createNode(1,c,a)}var To=document.implementation&&document.implementation.createDocument?Ro:So;function Uo(a,c){return Vo(a,c,[]).join("")}function Vo(a,c,d){if(4==a.nodeType||3==a.nodeType)c?d.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):d.push(a.nodeValue);else for(a=a.firstChild;null!==a;a=a.nextSibling)Vo(a,c,d);return d}function Wo(a){return a.localName} 645function Xo(a){var c=a.localName;return m(c)?c:a.baseName}var Yo=Ib?Xo:Wo;function Zo(a){return a instanceof Document}function $o(a){return la(a)&&9==a.nodeType}var ap=Ib?$o:Zo;function bp(a){return a instanceof Node}function cp(a){return la(a)&&m(a.nodeType)}var dp=Ib?cp:bp;function ep(a,c,d){return a.getAttributeNS(c,d)||""}function fp(a,c,d){var e="";a=gp(a,c,d);m(a)&&(e=a.nodeValue);return e}var hp=document.implementation&&document.implementation.createDocument?ep:fp; 646function ip(a,c,d){return a.getAttributeNodeNS(c,d)}function jp(a,c,d){var e=null;a=a.attributes;for(var f,g,h=0,k=a.length;h<k;++h)if(f=a[h],f.namespaceURI==c&&(g=f.prefix?f.prefix+":"+d:d,g==f.nodeName)){e=f;break}return e}var gp=document.implementation&&document.implementation.createDocument?ip:jp;function kp(a,c,d,e){a.setAttributeNS(c,d,e)}function lp(a,c,d,e){null===c?a.setAttribute(d,e):(c=a.ownerDocument.createNode(2,d,c),c.nodeValue=e,a.setAttributeNode(c))} 647var mp=document.implementation&&document.implementation.createDocument?kp:lp;function np(a){return(new DOMParser).parseFromString(a,"application/xml")}function op(a,c){return function(d,e){var f=a.call(c,d,e);m(f)&&cb(e[e.length-1],f)}}function pp(a,c){return function(d,e){var f=a.call(m(c)?c:this,d,e);m(f)&&e[e.length-1].push(f)}}function qp(a,c){return function(d,e){var f=a.call(m(c)?c:this,d,e);m(f)&&(e[e.length-1]=f)}} 648function rp(a){return function(c,d){var e=a.call(m(void 0)?void 0:this,c,d);m(e)&&Bb(d[d.length-1],m(void 0)?void 0:c.localName).push(e)}}function S(a,c){return function(d,e){var f=a.call(m(void 0)?void 0:this,d,e);m(f)&&(e[e.length-1][m(c)?c:d.localName]=f)}}function T(a,c,d){return sp(a,c,d)}function U(a,c){return function(d,e,f){a.call(m(c)?c:this,d,e,f);f[f.length-1].node.appendChild(d)}} 649function tp(a){var c,d;return function(e,f,g){if(!m(c)){c={};var h={};h[e.localName]=a;c[e.namespaceURI]=h;d=up(e.localName)}vp(c,d,f,g)}}function up(a,c){return function(d,e,f){d=e[e.length-1].node;e=a;m(e)||(e=f);f=c;m(c)||(f=d.namespaceURI);return To(f,e)}}var wp=up();function xp(a,c){for(var d=c.length,e=Array(d),f=0;f<d;++f)e[f]=a[c[f]];return e}function sp(a,c,d){d=m(d)?d:{};var e,f;e=0;for(f=a.length;e<f;++e)d[a[e]]=c;return d} 650function yp(a,c,d,e){for(c=c.firstElementChild;null!==c;c=c.nextElementSibling){var f=a[c.namespaceURI];m(f)&&(f=f[c.localName],m(f)&&f.call(e,c,d))}}function V(a,c,d,e,f){e.push(a);yp(c,d,e,f);return e.pop()}function vp(a,c,d,e,f,g){for(var h=(m(f)?f:d).length,k,n,p=0;p<h;++p)k=d[p],m(k)&&(n=c.call(g,k,e,m(f)?f[p]:void 0),m(n)&&a[n.namespaceURI][n.localName].call(g,n,k,e))}function zp(a,c,d,e,f,g,h){f.push(a);vp(c,d,e,f,g,h);f.pop()};function Ap(a,c,d){return function(e,f,g){e=new wo;e.A="text";x(e,"complete",function(a){a=a.target;if(Ko(a)){var e=c.U(),f;if("json"==e)f=Lo(a);else if("text"==e)f=Lo(a);else if("xml"==e){if(!Ib)try{f=a.fa?a.fa.responseXML:null}catch(p){f=null}
650null!=f||(f=np(Lo(a)))}null!=f&&(f=c.qa(f,{featureProjection:g}),d.call(this,f))}sc(a)},!1,this);Ao(e,a)}}function Bp(a,c){return Ap(a,c,function(a){this.Pb(a)})};function Cp(){return[[-Infinity,-Infinity,Infinity,Infinity]]};var Dp,Ep; 651(function(){var a={gb:{}};(function(){function c(a,d){if(!(this instanceof c))return new c(a,d);this.Ee=Math.max(4,a||9);this.Kf=Math.max(2,Math.ceil(.4*this.Ee));d&&this.fi(d);this.clear()}function d(a,c){a.bbox=e(a,0,a.children.length,c)}function e(a,c,d,e){for(var g=[Infinity,Infinity,-Infinity,-Infinity],h;c<d;c++)h=a.children[c],f(g,a.za?e(h):h.bbox);return g}function f(a,c){a[0]=Math.min(a[0],c[0]);a[1]=Math.min(a[1],c[1]);a[2]=Math.max(a[2],c[2]);a[3]=Math.max(a[3],c[3])}function g(a,c){return a.bbox[0]- 652c.bbox[0]}function h(a,c){return a.bbox[1]-c.bbox[1]}function k(a){return(a[2]-a[0])*(a[3]-a[1])}function n(a){return a[2]-a[0]+(a[3]-a[1])}function p(a,c){return a[0]<=c[0]&&a[1]<=c[1]&&c[2]<=a[2]&&c[3]<=a[3]}function q(a,c){return c[0]<=a[2]&&c[1]<=a[3]&&c[2]>=a[0]&&c[3]>=a[1]}function r(a,c,d,e,f){for(var g=[c,d],h;g.length;)d=g.pop(),c=g.pop(),d-c<=e||(h=c+Math.ceil((d-c)/e/2)*e,t(a,c,d,h,f),g.push(c,h,h,d))}function t(a,c,d,e,f){for(var g,h,k,n,p;d>c;){600<d-c&&(g=d-c+1,h=e-c+1,k=Math.log(g), 653n=.5*Math.exp(2*k/3),p=.5*Math.sqrt(k*n*(g-n)/g)*(0>h-g/2?-1:1),k=Math.max(c,Math.floor(e-h*n/g+p)),h=Math.min(d,Math.floor(e+(g-h)*n/g+p)),t(a,k,h,e,f));g=a[e];h=c;n=d;v(a,c,e);for(0<f(a[d],g)&&v(a,c,d);h<n;){v(a,h,n);h++;for(n--;0>f(a[h],g);)h++;for(;0<f(a[n],g);)n--}0===f(a[c],g)?v(a,c,n):(n++,v(a,n,d));n<=e&&(c=n+1);e<=n&&(d=n-1)}}function v(a,c,d){var e=a[c];a[c]=a[d];a[d]=e}c.prototype={all:function(){return this.Ff(this.data,[])},search:function(a){var c=this.data,d=[],e=this.Ja;if(!q(a,c.bbox))return d; 654for(var f=[],g,h,k,n;c;){g=0;for(h=c.children.length;g<h;g++)k=c.children[g],n=c.za?e(k):k.bbox,q(a,n)&&(c.za?d.push(k):p(a,n)?this.Ff(k,d):f.push(k));c=f.pop()}return d},load:function(a){if(!a||!a.length)return this;if(a.length<this.Kf){for(var c=0,d=a.length;c<d;c++)this.oa(a[c]);return this}a=this.Hf(a.slice(),0,a.length-1,0);this.data.children.length?this.data.height===a.height?this.Mf(this.data,a):(this.data.height<a.height&&(c=this.data,this.data=a,a=c),this.Jf(a,this.data.height-a.height-1, 655!0)):this.data=a;return this},oa:function(a){a&&this.Jf(a,this.data.height-1);return this},clear:function(){this.data={children:[],height:1,bbox:[Infinity,Infinity,-Infinity,-Infinity],za:!0};return this},remove:function(a){if(!a)return this;for(var c=this.data,d=this.Ja(a),e=[],f=[],g,h,k,n;c||e.length;){c||(c=e.pop(),h=e[e.length-1],g=f.pop(),n=!0);if(c.za&&(k=c.children.indexOf(a),-1!==k)){c.children.splice(k,1);e.push(c);this.di(e);break}n||c.za||!p(c.bbox,d)?h?(g++,c=h.children[g],n=!1):c=null: 656(e.push(c),f.push(g),g=0,h=c,c=c.children[0])}return this},Ja:function(a){return a},He:function(a,c){return a[0]-c[0]},Ie:function(a,c){return a[1]-c[1]},toJSON:function(){return this.data},Ff:function(a,c){for(var d=[];a;)a.za?c.push.apply(c,a.children):d.push.apply(d,a.children),a=d.pop();return c},Hf:function(a,c,e,f){var g=e-c+1,h=this.Ee,k;if(g<=h)return k={children:a.slice(c,e+1),height:1,bbox:null,za:!0},d(k,this.Ja),k;f||(f=Math.ceil(Math.log(g)/Math.log(h)),h=Math.ceil(g/Math.pow(h,f-1))); 657k={children:[],height:f,bbox:null};var g=Math.ceil(g/h),h=g*Math.ceil(Math.sqrt(h)),n,p,q;for(r(a,c,e,h,this.He);c<=e;c+=h)for(p=Math.min(c+h-1,e),r(a,c,p,g,this.Ie),n=c;n<=p;n+=g)q=Math.min(n+g-1,p),k.children.push(this.Hf(a,n,q,f-1));d(k,this.Ja);return k},ci:function(a,c,d,e){for(var f,g,h,n,p,q,r,t;;){e.push(c);if(c.za||e.length-1===d)break;r=t=Infinity;f=0;for(g=c.children.length;f<g;f++){h=c.children[f];p=k(h.bbox);q=a;var v=h.bbox;q=(Math.max(v[2],q[2])-Math.min(v[0],q[0]))*(Math.max(v[3], 658q[3])-Math.min(v[1],q[1]))-p;q<t?(t=q,r=p<r?p:r,n=h):q===t&&p<r&&(r=p,n=h)}c=n}return c},Jf:function(a,c,d){var e=this.Ja;d=d?a.bbox:e(a);var e=[],g=this.ci(d,this.data,c,e);g.children.push(a);for(f(g.bbox,d);0<=c;)if(e[c].children.length>this.Ee)this.ii(e,c),c--;else break;this.$h(d,e,c)},ii:function(a,c){var e=a[c],f=e.children.length,g=this.Kf;this.ai(e,g,f);f={children:e.children.splice(this.bi(e,g,f)),height:e.height};e.za&&(f.za=!0);d(e,this.Ja);d(f,this.Ja);c?a[c-1].children.push(f):this.Mf(e, 659f)},Mf:function(a,c){this.data={children:[a,c],height:a.height+1};d(this.data,this.Ja)},bi:function(a,c,d){var f,g,h,n,p,q,r;p=q=Infinity;for(f=c;f<=d-c;f++){g=e(a,0,f,this.Ja);h=e(a,f,d,this.Ja);var t=g,v=h;n=Math.max(t[0],v[0]);var Da=Math.max(t[1],v[1]),eb=Math.min(t[2],v[2]),t=Math.min(t[3],v[3]);n=Math.max(0,eb-n)*Math.max(0,t-Da);g=k(g)+k(h);n<p?(p=n,r=f,q=g<q?g:q):n===p&&g<q&&(q=g,r=f)}return r},ai:function(a,c,d){var e=a.za?this.He:g,f=a.za?this.Ie:h,k=this.Gf(a,c,d,e);c=this.Gf(a,c,d,f); 660k<c&&a.children.sort(e)},Gf:function(a,c,d,g){a.children.sort(g);g=this.Ja;var h=e(a,0,c,g),k=e(a,d-c,d,g),p=n(h)+n(k),q,r;for(q=c;q<d-c;q++)r=a.children[q],f(h,a.za?g(r):r.bbox),p+=n(h);for(q=d-c-1;q>=c;q--)r=a.children[q],f(k,a.za?g(r):r.bbox),p+=n(k);return p},$h:function(a,c,d){for(;0<=d;d--)f(c[d].bbox,a)},di:function(a){for(var c=a.length-1,e;0<=c;c--)0===a[c].children.length?0<c?(e=a[c-1].children,e.splice(e.indexOf(a[c]),1)):this.clear():d(a[c],this.Ja)},fi:function(a){var c=["return a"," - b", 661";"];this.He=new Function("a","b",c.join(a[0]));this.Ie=new Function("a","b",c.join(a[1]));this.Ja=new Function("a","return [a"+a.join(", a")+"];")}};"undefined"!==typeof a?a.gb=c:"undefined"!==typeof self?self.b=c:window.b=c})();Dp=a.gb})();function Fp(a){this.a=Dp(a);this.b={}}l=Fp.prototype;l.oa=function(a,c){var d=[a[0],a[1],a[2],a[3],c];this.a.oa(d);this.b[ma(c)]=d};l.load=function(a,c){for(var d=Array(c.length),e=0,f=c.length;e<f;e++){var g=a[e],h=c[e],g=[g[0],g[1],g[2],g[3],h];d[e]=g;this.b[ma(h)]=g}this.a.load(d)};l.remove=function(a){a=ma(a);var c=this.b[a];zb(this.b,a);return null!==this.a.remove(c)};l.update=function(a,c){var d=ma(c);Xd(this.b[d].slice(0,4),a)||(this.remove(c),this.oa(a,c))}; 662function Gp(a){a=a.a.all();return Ua(a,function(a){return a[4]})}function Hp(a,c){var d=a.a.search(c);return Ua(d,function(a){return a[4]})}l.forEach=function(a,c){return Ip(Gp(this),a,c)};function Jp(a,c,d,e){return Ip(Hp(a,c),d,e)}function Ip(a,c,d){for(var e,f=0,g=a.length;f<g&&!(e=c.call(d,a[f]));f++);return e}l.va=function(){return xb(this.b)};l.clear=function(){this.a.clear();this.b={}};l.R=function(){return this.a.data.bbox};function W(a){a=m(a)?a:{};Eh.call(this,{attributions:a.attributions,logo:a.logo,projection:void 0,state:"ready",wrapX:m(a.wrapX)?a.wrapX:!0});this.V=ca;m(a.loader)?this.V=a.loader:m(a.url)&&(this.V=Bp(a.url,a.format));this.wa=m(a.strategy)?a.strategy:Cp;var c=m(a.useSpatialIndex)?a.useSpatialIndex:!0;this.a=c?new Fp:null;this.Z=new Fp;this.f={};this.g={};this.l={};this.v={};this.c=null;var d,e;a.features instanceof sg?(d=a.features,e=d.a):ga(a.features)&&(e=a.features);c||m(d)||(d=new sg(e));m(e)&& 663Kp(this,e);m(d)&&Lp(this,d)}w(W,Eh);l=W.prototype;l.Cc=function(a){var c=ma(a).toString();if(Mp(this,c,a)){Np(this,c,a);var d=a.X();null!=d?(c=d.R(),null===this.a||this.a.oa(c,a)):this.f[c]=a;C(this,new Op("addfeature",a))}this.s()};function Np(a,c,d){a.v[c]=[x(d,"change",a.Hg,!1,a),x(d,"propertychange",a.Hg,!1,a)]}function Mp(a,c,d){var e=!0,f=d.ga;m(f)?f.toString()in a.g?e=!1:a.g[f.toString()]=d:a.l[c]=d;return e}l.Pb=function(a){Kp(this,a);this.s()}; 664function Kp(a,c){var d,e,f,g,h=[],k=[],n=[];e=0;for(f=c.length;e<f;e++)g=c[e],d=ma(g).toString(),Mp(a,d,g)&&k.push(g);e=0;for(f=k.length;e<f;e++){g=k[e];d=ma(g).toString();Np(a,d,g);var p=g.X();null!=p?(d=p.R(),h.push(d),n.push(g)):a.f[d]=g}null===a.a||a.a.load(h,n);e=0;for(f=k.length;e<f;e++)C(a,new Op("addfeature",k[e]))} 665function Lp(a,c){var d=!1;x(a,"addfeature",function(a){d||(d=!0,c.push(a.feature),d=!1)});x(a,"removefeature",function(a){d||(d=!0,c.remove(a.feature),d=!1)});x(c,"add",function(a){d||(a=a.element,d=!0,this.Cc(a),d=!1)},!1,a);x(c,"remove",function(a){d||(a=a.element,d=!0,this.dc(a),d=!1)},!1,a);a.c=c}
666l.clear=function(a){if(a){for(var c in this.v)Sa(this.v[c],Xc);null===this.c&&(this.v={},this.g={},this.l={})}else a=this.bh,null!==this.a&&(this.a.forEach(a,this),pb(this.f,a,this));null===this.c||this.c.clear();null===this.a||this.a.clear();this.Z.clear();this.f={};C(this,new Op("clear"));this.s()};l.Ne=function(a,c){if(null!==this.a)return this.a.forEach(a,c);if(null!==this.c)return this.c.forEach(a,c)}; 667function Pp(a,c,d){a.xc([c[0],c[1],c[0],c[1]],function(a){if(a.X().Je(c))return d.call(void 0,a)})}l.xc=function(a,c,d){if(null!==this.a)return Jp(this.a,a,c,d);if(null!==this.c)return this.c.forEach(c,d)};l.zb=function(a,c,d,e){return this.xc(a,d,e)};l.Oe=function(a,c,d){return this.xc(a,function(e){if(e.X().sa(a)&&(e=c.call(d,e)))return e})};l.Te=function(){return this.c};l.Dc=function(){var a;null!==this.c?a=this.c.a:null!==this.a&&(a=Gp(this.a),xb(this.f)||cb(a,sb(this.f)));return a}; 668l.Se=function(a){var c=[];Pp(this,a,function(a){c.push(a)});return c};l.Ed=function(a){return Hp(this.a,a)};l.Qe=function(a){var c=a[0],d=a[1],e=null,f=[NaN,NaN],g=Infinity,h=[-Infinity,-Infinity,Infinity,Infinity];Jp(this.a,h,function(a){var n=a.X(),p=g;g=n.Ua(c,d,f,g);g<p&&(e=a,a=Math.sqrt(g),h[0]=c-a,h[1]=d-a,h[2]=c+a,h[3]=d+a)});return e};l.R=function(){return this.a.R()};l.Re=function(a){a=this.g[a.toString()];return m(a)?a:null}; 669l.Hg=function(a){a=a.target;var c=ma(a).toString(),d=a.X();null!=d?(d=d.R(),c in this.f?(delete this.f[c],null===this.a||this.a.oa(d,a)):null===this.a||this.a.update(d,a)):c in this.f||(null===this.a||this.a.remove(a),this.f[c]=a);d=a.ga;m(d)?(d=d.toString(),c in this.l?(delete this.l[c],this.g[d]=a):this.g[d]!==a&&(Qp(this,a),this.g[d]=a)):c in this.l||(Qp(this,a),this.l[c]=a);this.s();C(this,new Op("changefeature",a))};l.va=function(){return this.a.va()&&xb(this.f)}; 670l.Yb=function(a,c,d){var e=this.Z;a=this.wa(a,c);var f,g;f=0;for(g=a.length;f<g;++f){var h=a[f];Jp(e,h,function(a){return Ud(a.extent,h)})||(this.V.call(this,h,c,d),e.oa(h,{extent:h.slice()}))}};l.dc=function(a){var c=ma(a).toString();c in this.f?delete this.f[c]:null===this.a||this.a.remove(a);this.bh(a);this.s()};l.bh=function(a){var c=ma(a).toString();Sa(this.v[c],Xc);delete this.v[c];var d=a.ga;m(d)?delete this.g[d.toString()]:delete this.l[c];C(this,new Op("removefeature",a))}; 671function Qp(a,c){for(var d in a.g)if(a.g[d]===c){delete a.g[d];break}}function Op(a,c){tc.call(this,a);this.feature=c}w(Op,tc);function Rp(a){this.a=a.source;this.ca=Ad();this.c=Ui();this.f=[0,0];this.A=null;yn.call(this,{attributions:a.attributions,canvasFunction:ra(this.ti,this),logo:a.logo,projection:a.projection,ratio:a.ratio,resolutions:a.resolutions,state:this.a.u});this.B=null;this.g=void 0;this.Eg(a.style);x(this.a,"change",this.Ll,void 0,this)}w(Rp,yn);l=Rp.prototype; 672l.ti=function(a,c,d,e,f){var g=new Rm(.5*c/d,a,c);this.a.Yb(a,c,f);var h=!1;this.a.zb(a,c,function(a){var e;if(!(e=h)){var f;m(a.c)?f=a.c.call(a,c):m(this.g)&&(f=this.g(a,c));if(null!=f){var q,r=!1;e=0;for(q=f.length;e<q;++e)r=on(g,a,f[e],nn(c,d),this.Kl,this)||r;e=r}else e=!1}h=e},this);Sm(g);if(h)return null;this.f[0]!=e[0]||this.f[1]!=e[1]?(this.c.canvas.width=e[0],this.c.canvas.height=e[1],this.f[0]=e[0],this.f[1]=e[1]):this.c.clearRect(0,0,e[0],e[1]);a=Sp(this,ee(a),c,d,e);Wm(g,this.c,d,a,0, 673{});this.A=g;return this.c.canvas};l.ee=function(a,c,d,e,f){if(null!==this.A){var g={};return Tm(this.A,a,c,0,e,function(a){var c=ma(a).toString();if(!(c in g))return g[c]=!0,f(a)})}};l.Hl=function(){return this.a};l.Il=function(){return this.B};l.Jl=function(){return this.g};function Sp(a,c,d,e,f){return nk(a.ca,f[0]/2,f[1]/2,e/d,-e/d,0,-c[0],-c[1])}l.Kl=function(){this.s()};l.Ll=function(){Gh(this,this.a.u)};l.Eg=function(a){this.B=m(a)?a:Ll;this.g=null===a?void 0:Kl(this.B);this.s()};function Tp(a){xm.call(this,a);this.i=null;this.g=Ad();this.c=this.f=null}w(Tp,xm);l=Tp.prototype;l.Ra=function(a,c,d,e){var f=this.a;return f.da().ee(a,c.viewState.resolution,c.viewState.rotation,c.skippedFeatureUids,function(a){return d.call(e,a,f)})}; 674l.bc=function(a,c,d,e){if(!fa(this.hd()))if(this.a.da()instanceof Rp){if(a=a.slice(),pk(c.pixelToCoordinateMatrix,a,a),this.Ra(a,c,pe,this))return d.call(e,this.a)}else if(null===this.f&&(this.f=Ad(),Gd(this.g,this.f)),c=Am(a,this.f),null===this.c&&(this.c=Ui(1,1)),this.c.clearRect(0,0,1,1),this.c.drawImage(this.hd(),c[0],c[
6741],1,1,0,0,1,1),0<this.c.getImageData(0,0,1,1).data[3])return d.call(e,this.a)};l.hd=function(){return null===this.i?null:this.i.b()};l.Ve=function(){return this.g}; 675l.de=function(a,c){var d=a.pixelRatio,e=a.viewState,f=e.center,g=e.resolution,h=e.rotation,k,n=this.a.da(),p=a.viewHints;k=a.extent;m(c.extent)&&(k=he(k,c.extent));p[0]||p[1]||ke(k)||(e=e.projection,p=n.j,null===p||(e=p),k=n.cc(k,g,d,e),null!==k&&sk(this,k)&&(this.i=k));if(null!==this.i){k=this.i;var e=k.R(),p=k.resolution,q=k.i,g=d*p/(g*q);nk(this.g,d*a.size[0]/2,d*a.size[1]/2,g,g,h,q*(e[0]-f[0])/p,q*(f[1]-e[3])/p);this.f=null;uk(a.attributions,k.g);vk(a,n)}return!0};function Up(a){xm.call(this,a);this.c=this.g=null;this.C=!1;this.j=null;this.v=Ad();this.i=null;this.D=this.B=this.A=NaN;this.l=this.f=null;this.T=[0,0]}w(Up,xm);Up.prototype.hd=function(){return this.g};Up.prototype.Ve=function(){return this.v}; 676Up.prototype.de=function(a,c){var d=a.pixelRatio,e=a.viewState,f=e.projection,g=this.a,h=g.da(),k=Uh(h,f),n=h.Fd(),p=Ph(k,e.resolution),q=h.Vb(p,a.pixelRatio,f),r=q[0]/md(k.Ha(p),this.T)[0],t=k.ua(p),r=t/r,v=e.center,B;t==e.resolution?(v=xk(v,t,a.size),B=fe(v,t,e.rotation,a.size)):B=a.extent;m(c.extent)&&(B=he(B,c.extent));if(ke(B))return!1;var z=Nh(k,B,t),D=q[0]*og(z),A=q[1]*(z.c-z.a+1),y,J;null===this.g?(J=Ui(D,A),this.g=J.canvas,this.c=[D,A],this.j=J,this.C=!Bm(this.c)):(y=this.g,J=this.j,this.c[0]< 677D||this.c[1]<A||this.B!==q[0]||this.D!==q[1]||this.C&&(this.c[0]>D||this.c[1]>A)?(y.width=D,y.height=A,this.c=[D,A],this.C=!Bm(this.c),this.f=null):(D=this.c[0],A=this.c[1],(y=p!=this.A)||(y=this.f,y=!(y.b<=z.b&&z.f<=y.f&&y.a<=z.a&&z.c<=y.c)),y&&(this.f=null)));var L,H;null===this.f?(D/=q[0],A/=q[1],L=z.b-Math.floor((D-og(z))/2),H=z.a-Math.floor((A-(z.c-z.a+1))/2),this.A=p,this.B=q[0],this.D=q[1],this.f=new mg(L,L+D-1,H,H+A-1),this.l=Array(D*A),A=this.f):(A=this.f,D=og(A));y={};y[p]={};var Q=[],wa= 678this.Ad(h,y),Pa=g.c(),P=Ld(),Da=new mg(0,0,0,0),eb,Ja,Eb;for(H=z.b;H<=z.f;++H)for(Eb=z.a;Eb<=z.c;++Eb)Ja=h.Ub(p,H,Eb,d,f),L=Ja.state,2==L||4==L||3==L&&!Pa?y[p][fg(Ja.b)]=Ja:(eb=Kh(k,Ja.b,wa,Da,P),eb||(Q.push(Ja),eb=Mh(k,Ja.b,Da,P),null===eb||wa(p+1,eb)));wa=0;for(eb=Q.length;wa<eb;++wa)Ja=Q[wa],H=q[0]*(Ja.b[1]-A.b),Eb=q[1]*(A.c-Ja.b[2]),J.clearRect(H,Eb,q[0],q[1]);Q=Ua(tb(y),Number);gb(Q);var Za=h.ba,Jc=de(Lh(k,[p,A.b,A.c],P)),nc,Te,Aj,ci,Vf,vm,wa=0;for(eb=Q.length;wa<eb;++wa)if(nc=Q[wa],q=h.Vb(nc, 679d,f),ci=y[nc],nc==p)for(Aj in ci)Ja=ci[Aj],Te=(Ja.b[2]-A.a)*D+(Ja.b[1]-A.b),this.l[Te]!=Ja&&(H=q[0]*(Ja.b[1]-A.b),Eb=q[1]*(A.c-Ja.b[2]),L=Ja.state,4!=L&&(3!=L||Pa)&&Za||J.clearRect(H,Eb,q[0],q[1]),2==L&&J.drawImage(Ja.Qa(),n,n,q[0],q[1],H,Eb,q[0],q[1]),this.l[Te]=Ja);else for(Aj in nc=k.ua(nc)/t,ci)for(Ja=ci[Aj],Te=Lh(k,Ja.b,P),H=(Te[0]-Jc[0])/r,Eb=(Jc[1]-Te[3])/r,vm=nc*q[0],Vf=nc*q[1],L=Ja.state,4!=L&&Za||J.clearRect(H,Eb,vm,Vf),2==L&&J.drawImage(Ja.Qa(),n,n,q[0],q[1],H,Eb,vm,Vf),Ja=kg(k,Te,p,Da), 680L=Math.max(Ja.b,A.b),Eb=Math.min(Ja.f,A.f),H=Math.max(Ja.a,A.a),Ja=Math.min(Ja.c,A.c);L<=Eb;++L)for(Vf=H;Vf<=Ja;++Vf)Te=(Vf-A.a)*D+(L-A.b),this.l[Te]=void 0;wk(a.usedTiles,h,p,z);yk(a,h,k,d,f,B,p,g.a());tk(a,h);vk(a,h);nk(this.v,d*a.size[0]/2,d*a.size[1]/2,d*r/e.resolution,d*r/e.resolution,e.rotation,(Jc[0]-v[0])/r,(v[1]-Jc[1])/r);this.i=null;return!0}; 681Up.prototype.bc=function(a,c,d,e){if(null!==this.j&&(null===this.i&&(this.i=Ad(),Gd(this.v,this.i)),a=Am(a,this.i),0<this.j.getImageData(a[0],a[1],1,1).data[3]))return d.call(e,this.a)};function Vp(a){xm.call(this,a);this.f=!1;this.C=-1;this.l=NaN;this.g=Ld();this.c=this.j=null;this.i=Ui()}w(Vp,xm); 682Vp.prototype.u=function(a,c,d){var e=a.extent,f=a.pixelRatio,g=c.Hb?a.skippedFeatureUids:{},h=a.viewState,k=h.projection,h=h.rotation,n=k.R(),p=this.a.da(),q=zm(this,a,0);ym(this,"precompose",d,a,q);var r=this.c;if(null!==r&&!r.va()){var t;cd(this.a,"render")?(this.i.canvas.width=d.canvas.width,this.i.canvas.height=d.canvas.height,t=this.i):t=d;var v=t.globalAlpha;t.globalAlpha=c.opacity;Wm(r,t,f,q,h,g);if(p.D&&k.i&&!Ud(n,e)){c=e[0];k=je(n);for(p=0;c<n[0];)--p,q=k*p,q=zm(this,a,q),Wm(r,t,f,q,h,g), 683c+=k;p=0;for(c=e[2];c>n[2];)++p,q=k*p,q=zm(this,a,q),Wm(r,t,f,q,h,g),c-=k;q=zm(this,a,0)}t!=d&&(ym(this,"render",t,a,q),d.drawImage(t.canvas,0,0));t.globalAlpha=v}ym(this,"postcompose",d,a,q)};Vp.prototype.Ra=function(a,c,d,e){if(null!==this.c){var f=c.viewState.resolution,g=c.viewState.rotation,h=this.a,k=c.layerStates[ma(h
683)],n={};return Tm(this.c,a,f,g,k.Hb?c.skippedFeatureUids:{},function(a){var c=ma(a).toString();if(!(c in n))return n[c]=!0,d.call(e,a,h)})}};Vp.prototype.v=function(){rk(this)}; 684Vp.prototype.de=function(a){function c(a){var c;m(a.c)?c=a.c.call(a,p):m(d.a)&&(c=(0,d.a)(a,p));if(null!=c){if(null!=c){var e,f,g=!1;e=0;for(f=c.length;e<f;++e)g=on(t,a,c[e],nn(p,q),this.v,this)||g;a=g}else a=!1;this.f=this.f||a}}var d=this.a,e=d.da();uk(a.attributions,e.i);vk(a,e);var f=a.viewHints[0],g=a.viewHints[1],h=d.D,k=d.B;if(!this.f&&!h&&f||!k&&g)return!0;var n=a.extent,k=a.viewState,f=k.projection,p=k.resolution,q=a.pixelRatio,g=d.b,r=d.c,h=d.get("renderOrder");m(h)||(h=mn);n=Pd(n,r*p); 685r=k.projection.R();e.D&&k.projection.i&&!Ud(r,a.extent)&&(a=Math.max(je(n)/2,je(r)),n[0]=r[0]-a,n[2]=r[2]+a);if(!this.f&&this.l==p&&this.C==g&&this.j==h&&Ud(this.g,n))return!0;sc(this.c);this.c=null;this.f=!1;var t=new Rm(.5*p/q,n,p,d.c);e.Yb(n,p,f);if(null===h)e.zb(n,p,c,this);else{var v=[];e.zb(n,p,function(a){v.push(a)},this);gb(v,h);Sa(v,c,this)}Sm(t);this.l=p;this.C=g;this.j=h;this.g=n;this.c=t;return!0};function Wp(a,c){Ek.call(this,0,c);this.c=Ui();this.b=this.c.canvas;this.b.style.width="100%";this.b.style.height="100%";this.b.className="ol-unselectable";Tg(a,this.b,0);this.a=!0;this.i=Ad()}w(Wp,Ek);Wp.prototype.Ke=function(a){return a instanceof I?new Tp(a):a instanceof K?new Up(a):a instanceof M?new Vp(a):null}; 686function Xp(a,c,d){var e=a.g,f=a.c;if(cd(e,c)){var g=d.extent,h=d.pixelRatio,k=d.viewState.rotation,n=d.pixelRatio,p=d.viewState,q=p.resolution;a=nk(a.i,a.b.width/2,a.b.height/2,n/q,-n/q,-p.rotation,-p.center[0],-p.center[1]);g=new jm(f,h,g,a,k);C(e,new jk(c,e,g,d,f,null));wm(g)}}Wp.prototype.U=function(){return"canvas"}; 687Wp.prototype.re=function(a){if(null===a)this.a&&(ph(this.b,!1),this.a=!1);else{var c=this.c,d=a.size[0]*a.pixelRatio,e=a.size[1]*a.pixelRatio;this.b.width!=d||this.b.height!=e?(this.b.width=d,this.b.height=e):c.clearRect(0,0,this.b.width,this.b.height);Fk(a);Xp(this,"precompose",a);var d=a.layerStatesArray,e=a.viewState.resolution,f,g,h,k;f=0;for(g=d.length;f<g;++f)k=d[f],h=k.layer,h=Hk(this,h),kk(k,e)&&"ready"==k.u&&h.de(a,k)&&h.u(a,k,c);Xp(this,"postcompose",a);this.a||(ph(this.b,!0),this.a=!0); 688Ik(this,a);a.postRenderFunctions.push(Gk)}};function Yp(a,c){qk.call(this,a);this.target=c}w(Yp,qk);Yp.prototype.i=ca;Yp.prototype.l=ca;function Zp(a){var c=Qg("DIV");c.style.position="absolute";Yp.call(this,a,c);this.c=null;this.f=Cd()}w(Zp,Yp);Zp.prototype.Ra=function(a,c,d,e){var f=this.a;return f.da().ee(a,c.viewState.resolution,c.viewState.rotation,c.skippedFeatureUids,function(a){return d.call(e,a,f)})};Zp.prototype.i=function(){Sg(this.target);this.c=null}; 689Zp.prototype.g=function(a,c){var d=a.viewState,e=d.center,f=d.resolution,g=d.rotation,h=this.c,k=this.a.da(),n=a.viewHints,p=a.extent;m(c.extent)&&(p=he(p,c.extent));n[0]||n[1]||ke(p)||(d=d.projection,n=k.j,null===n||(d=n),p=k.cc(p,f,a.pixelRatio,d),null===p||sk(this,p)&&(h=p));null!==h&&(d=h.R(),n=h.resolution,p=Ad(),nk(p,a.size[0]/2,a.size[1]/2,n/f,n/f,g,(d[0]-e[0])/n,(e[1]-d[3])/n),h!=this.c&&(e=h.b(this),e.style.maxWidth="none",e.style.position="absolute",Sg(this.target),this.target.appendChild(e), 690this.c=h),ok(p,this.f)||(Yi(this.target,p),Dd(this.f,p)),uk(a.attributions,h.g),vk(a,k));return!0};function $p(a){var c=Qg("DIV");c.style.position="absolute";Yp.call(this,a,c);this.f=!0;this.C=1;this.j=0;this.c={}}w($p,Yp);$p.prototype.i=function(){Sg(this.target);this.j=0}; 691$p.prototype.g=function(a,c){if(!c.visible)return this.f&&(ph(this.target,!1),this.f=!1),!0;var d=a.pixelRatio,e=a.viewState,f=e.projection,g=this.a,h=g.da(),k=Uh(h,f),n=h.Fd(),p=Ph(k,e.resolution),q=k.ua(p),r=e.center,t;q==e.resolution?(r=xk(r,q,a.size),t=fe(r,q,e.rotation,a.size)):t=a.extent;m(c.extent)&&(t=he(t,c.extent));var q=Nh(k,t,q),v={};v[p]={};var B=this.Ad(h,v),z=g.c(),D=Ld(),A=new mg(0,0,0,0),y,J,L,H;for(L=q.b;L<=q.f;++L)for(H=q.a;H<=q.c;++H)y=h.Ub(p,L,H,d,f),J=y.state,2==J?v[p][fg(y.b)]= 692y:4==J||3==J&&!z||(J=Kh(k,y.b,B,A,D),J||(y=Mh(k,y.b,A,D),null===y||B(p+1,y)));var Q;if(this.j!=h.b){for(Q in this.c)z=this.c[+Q],Ug(z.target);this.c={};this.j=h.b}D=Ua(tb(v),Number);gb(D);var B={},wa;L=0;for(H=D.length;L<H;++L){Q=D[L];Q in this.c?z=this.c[Q]:(z=k.Md(r,Q),z=new aq(k,z),B[Q]=!0,this.c[Q]=z);Q=v[Q];for(wa in Q){y=z;J=Q[wa];var Pa=n,P=J.b,Da=P[0],eb=P[1],Ja=P[2],P=fg(P);if(!(P in y.a)){var Da=md(y.f.Ha(Da),y.l),Eb=J.Qa(y),Za=Eb.style;Za.maxWidth="none";var Jc=void 0,nc=void 0;0<Pa?(Jc= 693Qg("DIV"),nc=Jc.style,nc.overflow="hidden",nc.width=Da[0]+"px",nc.height=Da[1]+"px",Za.position="absolute",Za.left=-Pa+"px",Za.top=-Pa+"px",Za.width=Da[0]+2*Pa+"px",Za.height=Da[1]+2*Pa+"px",Jc.appendChild(Eb)):(Za.width=Da[0]+"px",Za.height=Da[1]+"px",Jc=Eb,nc=Za);nc.position="absolute";nc.left=(eb-y.c[1])*Da[0]+"px";nc.top=(y.c[2]-Ja)*Da[1]+"px";null===y.b&&(y.b=document.createDocumentFragment());y.b.appendChild(Jc);y.a[P]=J}}null!==z.b&&(z.target.appendChild(z.b),z.b=null)}n=Ua(tb(this.c),Number); 694gb(n);L=Ad();wa=0;for(D=n.length;wa<D;++wa)if(Q=n[wa],z=this.c[Q],Q in v)if(y=z.j,H=z.g,nk(L,a.size[0]/2,a.size[1]/2,y/e.resolution,y/e.resolution,e.rotation,(H[0]-r[0])/y,(r[1]-H[1])/y),H=z,y=L,ok(y,H.i)||(Yi(H.target,y),Dd(H.i,y)),Q in B){for(--Q;0<=Q;--Q)if(Q in this.c){H=this.c[Q].target;H.parentNode&&H.parentNode.insertBefore(z.target,H.nextSibling);break}0>Q&&Tg(this.target,z.target,0)}
694else{if(!a.viewHints[0]&&!a.viewHints[1]){J=kg(z.f,t,z.c[0],A);Q=[];y=H=void 0;for(y in z.a)H=z.a[y],J.contains(H.b)|| 695Q.push(H);Pa=J=void 0;J=0;for(Pa=Q.length;J<Pa;++J)H=Q[J],y=fg(H.b),Ug(H.Qa(z)),delete z.a[y]}}else Ug(z.target),delete this.c[Q];c.opacity!=this.C&&(this.C=this.target.style.opacity=c.opacity);c.visible&&!this.f&&(ph(this.target,!0),this.f=!0);wk(a.usedTiles,h,p,q);yk(a,h,k,d,f,t,p,g.a());tk(a,h);vk(a,h);return!0}; 696function aq(a,c){this.target=Qg("DIV");this.target.style.position="absolute";this.target.style.width="100%";this.target.style.height="100%";this.f=a;this.c=c;this.g=de(Lh(a,c));this.j=a.ua(c[0]);this.a={};this.b=null;this.i=Cd();this.l=[0,0]};function bq(a){this.j=Ui();var c=this.j.canvas;c.style.maxWidth="none";c.style.position="absolute";Yp.call(this,a,c);this.f=!1;this.A=-1;this.u=NaN;this.C=Ld();this.c=this.v=null;this.B=Ad();this.D=Ad()}w(bq,Yp); 697bq.prototype.l=function(a,c){var d=a.viewState,e=d.center,f=d.rotation,g=d.resolution,d=a.pixelRatio,h=a.size[0],k=a.size[1],n=h*d,p=k*d,e=nk(this.B,d*h/2,d*k/2,d/g,-d/g,-f,-e[0],-e[1]),g=this.j;g.canvas.width=n;g.canvas.height=p;h=nk(this.D,0,0,1/d,1/d,0,-(n-h)/2*d,-(p-k)/2*d);Yi(g.canvas,h);cq(this,"precompose",a,e);h=this.c;null===h||h.va()||(g.globalAlpha=c.opacity,Wm(h,g,d,e,f,c.Hb?a.skippedFeatureUids:{}),cq(this,"render",a,e));cq(this,"postcompose",a,e)}; 698function cq(a,c,d,e){var f=a.j;a=a.a;cd(a,c)&&(e=new jm(f,d.pixelRatio,d.extent,e,d.viewState.rotation),C(a,new jk(c,a,e,d,f,null)),wm(e))}bq.prototype.Ra=function(a,c,d,e){if(null!==this.c){var f=c.viewState.resolution,g=c.viewState.rotation,h=this.a,k=c.layerStates[ma(h)],n={};return Tm(this.c,a,f,g,k.Hb?c.skippedFeatureUids:{},function(a){var c=ma(a).toString();if(!(c in n))return n[c]=!0,d.call(e,a,h)})}};bq.prototype.K=function(){rk(this)}; 699bq.prototype.g=function(a){function c(a){var c;m(a.c)?c=a.c.call(a,n):m(d.a)&&(c=(0,d.a)(a,n));if(null!=c){if(null!=c){var e,f,g=!1;e=0;for(f=c.length;e<f;++e)g=on(q,a,c[e],nn(n,p),this.K,this)||g;a=g}else a=!1;this.f=this.f||a}}var d=this.a,e=d.da();uk(a.attributions,e.i);vk(a,e);var f=a.viewHints[0],g=a.viewHints[1],h=d.D,k=d.B;if(!this.f&&!h&&f||!k&&g)return!0;var g=a.extent,h=a.viewState,f=h.projection,n=h.resolution,p=a.pixelRatio;a=d.b;k=d.c;h=d.get("renderOrder");m(h)||(h=mn);g=Pd(g,k*n);if(!this.f&& 700this.u==n&&this.A==a&&this.v==h&&Ud(this.C,g))return!0;sc(this.c);this.c=null;this.f=!1;var q=new Rm(.5*n/p,g,n,d.c);e.Yb(g,n,f);if(null===h)e.zb(g,n,c,this);else{var r=[];e.zb(g,n,function(a){r.push(a)},this);gb(r,h);Sa(r,c,this)}Sm(q);this.u=n;this.A=a;this.v=h;this.C=g;this.c=q;return!0};function dq(a,c){Ek.call(this,0,c);this.a=null;this.a=Ui();var d=this.a.canvas;d.style.position="absolute";d.style.width="100%";d.style.height="100%";d.className="ol-unselectable";Tg(a,d,0);this.i=Ad();this.b=Qg("DIV");this.b.className="ol-unselectable";d=this.b.style;d.position="absolute";d.width="100%";d.height="100%";x(this.b,"touchstart",vc);Tg(a,this.b,0);this.c=!0}w(dq,Ek);dq.prototype.Y=function(){Ug(this.b);dq.aa.Y.call(this)}; 701dq.prototype.Ke=function(a){if(a instanceof I)a=new Zp(a);else if(a instanceof K)a=new $p(a);else if(a instanceof M)a=new bq(a);else return null;return a};function eq(a,c,d){var e=a.g;if(cd(e,c)){var f=d.extent,g=d.pixelRatio,h=d.viewState,k=h.rotation,n=a.a,p=n.canvas;nk(a.i,p.width/2,p.height/2,g/h.resolution,-g/h.resolution,-h.rotation,-h.center[0],-h.center[1]);a=new jm(n,g,f,a.i,k);C(e,new jk(c,e,a,d,n,null));wm(a)}}dq.prototype.U=function(){return"dom"}; 702dq.prototype.re=function(a){if(null===a)this.c&&(ph(this.b,!1),this.c=!1);else{var c;c=function(a,c){Tg(this.b,a,c)};var d=this.g;if(cd(d,"precompose")||cd(d,"postcompose")){var d=this.a.canvas,e=a.pixelRatio;d.width=a.size[0]*e;d.height=a.size[1]*e}eq(this,"precompose",a);var d=a.layerStatesArray,e=a.viewState.resolution,f,g,h,k;f=0;for(g=d.length;f<g;++f)k=d[f],h=k.layer,h=Hk(this,h),c.call(this,h.target,f),kk(k,e)&&"ready"==k.u?h.g(a,k)&&h.l(a,k):h.i();c=a.layerStates;for(var n in this.f)n in c|| 703(h=this.f[n],Ug(h.target));this.c||(ph(this.b,!0),this.c=!0);Fk(a);Ik(this,a);a.postRenderFunctions.push(Gk);eq(this,"postcompose",a)}};
703function fq(a){this.b=a}function gq(a){this.b=a}w(gq,fq);gq.prototype.U=function(){return 35632};function hq(a){this.b=a}w(hq,fq);hq.prototype.U=function(){return 35633};function iq(){this.b="precision mediump float;varying vec2 a;varying float b;uniform mat4 k;uniform float l;uniform sampler2D m;void main(void){vec4 texColor=texture2D(m,a);float alpha=texColor.a*b*l;if(alpha==0.0){discard;}gl_FragColor.a=alpha;gl_FragColor.rgb=(k*vec4(texColor.rgb,1.)).rgb;}"}w(iq,gq);da(iq); 704function jq(){this.b="varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix=i;if(g==1.0){offsetMatrix=i*j;}vec4 offsets=offsetMatrix*vec4(e,0.,0.);gl_Position=h*vec4(c,0.,1.)+offsets;a=d;b=f;}"}w(jq,hq);da(jq); 705function kq(a,c){this.v=a.getUniformLocation(c,"k");this.l=a.getUniformLocation(c,"j");this.C=a.getUniformLocation(c,"i");this.g=a.getUniformLocation(c,"l");this.j=a.getUniformLocation(c,"h");this.b=a.getAttribLocation(c,"e");this.a=a.getAttribLocation(c,"f");this.f=a.getAttribLocation(c,"c");this.c=a.getAttribLocation(c,"g");this.i=a.getAttribLocation(c,"d")};function lq(){this.b="precision mediump float;varying vec2 a;varying float b;uniform float k;uniform sampler2D l;void main(void){vec4 texColor=texture2D(l,a);gl_FragColor.rgb=texColor.rgb;float alpha=texColor.a*b*k;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}w(lq,gq);da(lq); 706function mq(){this.b="varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix=i;
706if(g==1.0){offsetMatrix=i*j;}vec4 offsets=offsetMatrix*vec4(e,0.,0.);gl_Position=h*vec4(c,0.,1.)+offsets;a=d;b=f;}"}w(mq,hq);da(mq); 707function nq(a,c){this.l=a.getUniformLocation(c,"j");this.C=a.getUniformLocation(c,"i");this.g=a.getUniformLocation(c,"k");this.j=a.getUniformLocation(c,"h");this.b=a.getAttribLocation(c,"e");this.a=a.getAttribLocation(c,"f");this.f=a.getAttribLocation(c,"c");this.c=a.getAttribLocation(c,"g");this.i=a.getAttribLocation(c,"d")};function oq(a){this.b=m(a)?a:[];this.a=m(void 0)?void 0:35044};function pq(a,c){this.v=a;this.b=c;this.a={};this.g={};this.i={};this.l=this.C=this.f=this.j=null;(this.c=Ya(va,"OES_element_index_uint"))&&c.getExtension("OES_element_index_uint");x(this.v,"webglcontextlost",this.Jm,!1,this);x(this.v,"webglcontextrestored",this.Km,!1,this)} 708function qq(a,c,d){var e=a.b,f=d.b,g=ma(d);if(g in a.a)e.bindBuffer(c,a.a[g].buffer);else{var h=e.createBuffer();e.bindBuffer(c,h);var k;34962==c?k=new Float32Array(f):34963==c&&(k=a.c?new Uint32Array(f):new Uint16Array(f));e.bufferData(c,k,d.a);a.a[g]={c:d,buffer:h}}}function rq(a,c){var d=a.b,e=ma(c),f=a.a[e];d.isContextLost()||d.deleteBuffer(f.buffer);delete a.a[e]}l=pq.prototype; 709l.Y=function(){var a=this.b;a.isContextLost()||(pb(this.a,function(c){a.deleteBuffer(c.buffer)}),pb(this.i,function(c){a.deleteProgram(c)}),pb(this.g,function(c){a.deleteShader(c)}),a.deleteFramebuffer(this.f),a.deleteRenderbuffer(this.l),a.deleteTexture(this.C))};l.Im=function(){return this.b}; 710l.Ue=function(){if(null===this.f){var a=this.b,c=a.createFramebuffer();a.bindFramebuffer(a.FRAMEBUFFER,c);var d=sq(a,1,1),e=a.createRenderbuffer();a.bindRenderbuffer(a.RENDERBUFFER,e);a.renderbufferStorage(a.RENDERBUFFER,a.DEPTH_COMPONENT16,1,1);a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,d,0);a.framebufferRenderbuffer(a.FRAMEBUFFER,a.DEPTH_ATTACHMENT,a.RENDERBUFFER,e);a.bindTexture(a.TEXTURE_2D,null);a.bindRenderbuffer(a.RENDERBUFFER,null);a.bindFramebuffer(a.FRAMEBUFFER, 711null);this.f=c;this.C=d;this.l=e}return this.f};function tq(a,c){var d=ma(c);if(d in a.g)return a.g[d];var e=a.b,f=e.createShader(c.U());e.shaderSource(f,c.b);e.compileShader(f);return a.g[d]=f}function uq(a,c,d){var e=ma(c)+"/"+ma(d);if(e in a.i)return a.i[e];var f=a.b,g=f.createProgram();f.attachShader(g,tq(a,c));f.attachShader(g,tq(a,d));f.linkProgram(g);return a.i[e]=g}l.Jm=function(){yb(this.a);yb(this.g);yb(this.i);this.l=this.C=this.f=this.j=null};l.Km=function(){}; 712l.le=function(a){if(a==this.j)return!1;this.b.useProgram(a);this.j=a;return!0};function vq(a,c,d){var e=a.createTexture();a.bindTexture(a.TEXTURE_2D,e);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR);m(c)&&a.texParameteri(3553,10242,c);m(d)&&a.texParameteri(3553,10243,d);return e}function sq(a,c,d){var e=vq(a,void 0,void 0);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,c,d,0,a.RGBA,a.UNSIGNED_BYTE,null);return e} 713function wq(a,c){var d=vq(a,33071,33071);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,c);return d};function xq(a,c){this.B=this.D=void 0;this.qc=new Bg;this.C=ee(c);this.A=[];this.g=[];this.K=void 0;this.i=[];this.f=[];this.V=this.T=void 0;this.a=[];this.ja=this.ea=this.l=null;this.Z=void 0;this.kb=Cd();this.lb=Cd();this.ca=this.ba=void 0;this.xb=Cd();this.wa=this.pa=this.Ka=void 0;this.Ta=[];this.j=[];this.b=[];this.u=null;this.c=[];this.v=[];this.La=void 0}w(xq,ik); 714function yq(a,c){var d=a.u,e=a.l,f=a.Ta,g=a.j,h=c.b;return function(){if(!h.isContextLost()){var a,n;a=0;for(n=f.length;a<n;++a)h.deleteTexture(f[a]);a=0;for(n=g.length;a<n;++a)h.deleteTexture(g[a])}rq(c,d);rq(c,e)}} 715function zq(a,c,d,e){var f=a.D,g=a.B,h=a.K,k=a.T,n=a.V,p=a.Z,q=a.ba,r=a.ca,t=a.Ka?1:0,v=a.pa,B=a.wa,z=a.La,D=Math.cos(v),v=Math.sin(v),A=a.a.length,y=a.b.length,J,L,H,Q,wa,Pa;for(J=0;J<d;J+=e)wa=c[J]-a.C[0],Pa=c[J+1]-a.C[1],L=y/8,H=-B*f,Q=-B*(h-g),a.b[y++]=wa,a.b[y++]=Pa,a.b[y++]=H*D-Q*v,a.b[y++]=H*v+Q*D,a.b[y++]=q/n,a.b[y++]=(r+h)/k,a.b[y++]=p,a.b[y++]=t,H=B*(z-f),Q=-B*(h-g),a.b[y++]=wa,a.b[y++]=Pa,a.b[y++]=H*D-Q*v,a.b[y++]=H*v+Q*D,a.b[y++]=(q+z)/n,a.b[y++]=(r+h)/k,a.b[y++]=p,a.b[y++]=t,H=B*(z-f), 716Q=B*g,a.b[y++]=wa,a.b[y++]=Pa,a.b[y++]=H*D-Q*v,a.b[y++]=H*v+Q*D,a.b[y++]=(q+z)/n,a.b[y++]=r/k,a.b[y++]=p,a.b[y++]=t,H=-B*f,Q=B*g,a.b[y++]=wa,a.b[y++]=Pa,a.b[y++]=H*D-Q*v,a.b[y++]=H*v+Q*D,a.b[y++]=q/n,a.b[y++]=r/k,a.b[y++]=p,a.b[y++]=t,a.a[A++]=L,a.a[A++]=L+1,a.a[A++]=L+2,a.a[A++]=L,a.a[A++]=L+2,a.a[A++]=L+3}xq.prototype.mb=function(a,c){this.c.push(this.a.length);this.v.push(c);var d=a.o;zq(this,d,d.length,a.H)}; 717xq.prototype.nb=function(a,c){this.c.push(this.a.length);this.v.push(c);var d=a.o;zq(this,d,d.length,a.H)};function Aq(a,c){var d=c.b;a.A.push(a.a.length);a.g.push(a.a.length);a.u=new oq(a.b);qq(c,34962,a.u);a.l=new oq(a.a);qq(c,34963,a.l);var e={};Bq(a.Ta,a.i,e,d);Bq(a.j,a.f,e,d);a.D=void 0;a.B=void 0;a.K=void 0;a.i=null;a.f=null;a.T=void 0;a.V=void 0;a.a=null;a.Z=void 0;a.ba=void 0;
717a.ca=void 0;a.Ka=void 0;a.pa=void 0;a.wa=void 0;a.b=null;a.La=void 0} 718function Bq(a,c,d,e){var f,g,h,k=c.length;for(h=0;h<k;++h)f=c[h],g=ma(f).toString(),g in d?f=d[g]:(f=wq(e,f),d[g]=f),a[h]=f} 719function Cq(a,c,d,e,f,g,h,k,n,p,q,r,t,v,B){var z=c.b;qq(c,34962,a.u);qq(c,34963,a.l);var D=k||1!=n||p||1!=q,A,y;D?(A=iq.Na(),y=jq.Na()):(A=lq.Na(),y=mq.Na());y=uq(c,A,y);D?null===a.ea?(A=new kq(z,y),a.ea=A):A=a.ea:null===a.ja?(A=new nq(z,y),a.ja=A):A=a.ja;c.le(y);z.enableVertexAttribArray(A.f);z.vertexAttribPointer(A.f,2,5126,!1,32,0);z.enableVertexAttribArray(A.b);z.vertexAttribPointer(A.b,2,5126,!1,32,8);z.enableVertexAttribArray(A.i);z.vertexAttribPointer(A.i,2,5126,!1,32,16);z.enableVertexAttribArray(A.a); 720z.vertexAttribPointer(A.a,1,5126,!1,32,24);z.enableVertexAttribArray(A.c);z.vertexAttribPointer(A.c,1,5126,!1,32,28);y=a.xb;nk(y,0,0,2/(e*g[0]),2/(e*g[1]),-f,-(d[0]-a.C[0]),-(d[1]-a.C[1]));d=a.lb;e=2/g[0];g=2/g[1];Ed(d);d[0]=e;d[5]=g;d[10]=1;d[15]=1;g=a.kb;Ed(g);0!==f&&Jd(g,-f);z.uniformMatrix4fv(A.j,!1,y);z.uniformMatrix4fv(A.C,!1,d);z.uniformMatrix4fv(A.l,!1,g);z.uniform1f(A.g,h);D&&z.uniformMatrix4fv(A.v,!1,Cg(a.qc,k,n,p,q));var J;if(m(t)){if(v)a:{f=c.c?5125:5123;c=c.c?4:2;p=a.c.length-1;for(h= 721a.j.length-1;0<=h;--h)for(z.bindTexture(3553,a.j[h]),k=0<h?a.g[h-1]:0,q=a.g[h];0<=p&&a.c[p]>=k;){n=a.c[p];v=a.v[p];D=ma(v).toString();if(D=!m(r[D]))D=null!=v.X();if(D&&(!m(B)||ie(B,v.X().R()))&&(z.clear(z.COLOR_BUFFER_BIT|z.DEPTH_BUFFER_BIT),z.drawElements(4,q-n,f,n*c),q=t(v))){a=q;break a}q=n;p--}a=void 0}else z.clear(z.COLOR_BUFFER_BIT|z.DEPTH_BUFFER_BIT),Dq(a,z,c,r,a.j,a.g),a=(a=t(null))?a:void 0;J=a}else Dq(a,z,c,r,a.Ta,a.A);z.disableVertexAttribArray(A.f);z.disableVertexAttribArray(A.b);z.disableVertexAttribArray(A.i); 722z.disableVertexAttribArray(A.a);z.disableVertexAttribArray(A.c);return J} 723function Dq(a,c,d,e,f,g){var h=d.c?5125:5123;d=d.c?4:2;if(xb(e)){var k;a=0;e=f.length;for(k=0;a<e;++a){c.bindTexture(3553,f[a]);var n=g[a];c.drawElements(4,n-k,h,k*d);k=n}}else{k=0;var p,n=0;for(p=f.length;n<p;++n){c.bindTexture(3553,f[n]);for(var q=0<n?g[n-1]:0,r=g[n],t=q;k<a.c.length&&a.c[k]<=r;){var v=ma(a.v[k]).toString();m(e[v])?(t!==q&&c.drawElements(4,q-t,h,t*d),q=t=k===a.c.length-1?r:a.c[k+1]):q=k===a.c.length-1?r:a.c[k+1];k++}t!==q&&c.drawElements(4,q-t,h,t*d)}}} 724xq.prototype.cb=function(a){var c=a.pb(),d=a.Kb(1),e=a.Gd(),f=a.fe(1),g=a.A,h=a.ub(),k=a.D,n=a.C,p=a.ab();a=a.v;var q;0===this.i.length?this.i.push(d):(q=this.i[this.i.length-1],ma(q)!=ma(d)&&(this.A.push(this.a.length),this.i.push(d)));0===this.f.length?this.f.push(f):(q=this.f[this.f.length-1],ma(q)!=ma(f)&&(this.g.push(this.a.length),this.f.push(f)));this.D=c[0];this.B=c[1];this.K=p[1];this.T=e[1];this.V=e[0];this.Z=g;this.ba=h[0];this.ca=h[1];this.pa=n;this.Ka=k;this.wa=a;this.La=p[0]}; 725function Eq(a,c,d){this.f=c;this.i=a;this.c=d;this.a={}}function Fq(a,c){var d=[],e;for(e in a.a)d.push(yq(a.a[e],c));return te.apply(null,d)}function Gq(a,c){for(var d in a.a)Aq(a.a[d],c)}Eq.prototype.b=function(a,c){var d=this.a[c];m(d)||(d=new Hq[c](this.i,this.f),this.a[c]=d);return d};Eq.prototype.va=function(){return xb(this.a)};function Iq(a,c,d,e,f,g,h,k,n,p,q,r,t,v){var B=Jq,z,D;for(z=Cm.length-1;0<=z;--z)if(D=a.a[Cm[z]],m(D)&&(D=Cq(D,c,d,e,f,B,g,h,k,n,p,q,r,t,v)))return D} 726function Kq(a,c,d,e,f,g,h,k,n,p,q,r){var t=d.b;t.bindFramebuffer(t.FRAMEBUFFER,d.Ue());var v;m(a.c)&&(v=Pd(Wd(c),e*a.c));return Iq(a,d,c,e,f,g,h,k,n,p,q,function(a){var c=new Uint8Array(4);t.readPixels(0,0,1,1,t.RGBA,t.UNSIGNED_BYTE,c);if(0<c[3]&&(a=r(a)))return a},!0,v)}function Lq(a,c,d,e,f,g,h,k,n,p,q){var r=d.b;r.bindFramebuffer(r.FRAMEBUFFER,d.Ue());a=Iq(a,d,c,e,f,g,h,k,n,p,q,function(){var a=new Uint8Array(4);r.readPixels(0,0,1,1,r.RGBA,r.UNSIGNED_BYTE,a);return 0<a[3]},!1);return m(a)} 727var Hq={Image:xq},Jq=[1,1];function Mq(a,c,d,e,f,g){this.a=a;this.i=c;this.f=g;this.l=f;this.j=e;this.g=d;this.c=null;this.b={}}w(Mq,ik);l=Mq.prototype;l.tc=function(a,c){var d=a.toString(),e=this.b[d];m(e)?e.push(c):this.b[d]=[c]};l.uc=function(){};l.Le=function(a,c){var d=(0,c.i)(a);if(null!=d&&ie(this.f,d.R())){var e=c.b;m(e)||(e=0);this.tc(e,function(a){a.Fa(c.f,c.c);a.cb(c.g);a.Ga(c.a);var e=Nq[d.U()];e&&e.call(a,d,null)})}}; 728l.Bd=function(a,c){var d=a.f,e,f;e=0;for(f=d.length;e<f;++e){var g=d[e],h=Nq[g.U()];h&&h.call(this,g,c)}};l.nb=function(a,c){var d=this.a,e=(new Eq(1,this.f)).b(0,"Image");e.cb(this.c);e.nb(a,c);Aq(e,d);Cq(e,this.a,this.i,this.g,this.j,this.l,1,0,1,0,1,{},void 0,!1);yq(e,d)()};l.yb=function(){};l.vc=function(){};l.mb=function(a,c){var d=this.a,e=(new Eq(1,this.f)).b(0,"Image");e.cb(this.c);e.mb(a,c);Aq(e,d);Cq(e,this.a,this.i,this.g,this.j,this.l,1,0,1,0,1,{},void 0,!1);yq(e,d)()};l.wc=function(){}; 729l.Rb=function(){};l.ob=function(){};l.Fa=function(){};l.cb=function(a){this.c=a};l.Ga=function(){};
729var Nq={Point:Mq.prototype.nb,MultiPoint:Mq.prototype.mb,GeometryCollection:Mq.prototype.Bd};function Oq(){this.b="precision mediump float;varying vec2 a;uniform mat4 f;uniform float g;uniform sampler2D h;void main(void){vec4 texColor=texture2D(h,a);gl_FragColor.rgb=(f*vec4(texColor.rgb,1.)).rgb;gl_FragColor.a=texColor.a*g;}"}w(Oq,gq);da(Oq);function Pq(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position=e*vec4(b,0.,1.);a=(d*vec4(c,0.,1.)).st;}"}w(Pq,hq);da(Pq); 730function Qq(a,c){this.j=a.getUniformLocation(c,"f");this.c=a.getUniformLocation(c,"g");this.f=a.getUniformLocation(c,"e");this.g=a.getUniformLocation(c,"d");this.i=a.getUniformLocation(c,"h");this.b=a.getAttribLocation(c,"b");this.a=a.getAttribLocation(c,"c")};function Rq(){this.b="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor=texture2D(g,a);gl_FragColor.rgb=texColor.rgb;gl_FragColor.a=texColor.a*f;}"}w(Rq,gq);da(Rq);function Sq(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position=e*vec4(b,0.,1.);a=(d*vec4(c,0.,1.)).st;}"}w(Sq,hq);da(Sq); 731function Tq(a,c){this.c=a.getUniformLocation(c,"f");this.f=a.getUniformLocation(c,"e");this.g=a.getUniformLocation(c,"d");this.i=a.getUniformLocation(c,"g");this.b=a.getAttribLocation(c,"b");this.a=a.getAttribLocation(c,"c")};function Uq(a,c){qk.call(this,c);this.c=a;this.V=new oq([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);this.i=this.Sa=null;this.g=void 0;this.C=Ad();this.A=Cd();this.Z=new Bg;this.u=this.v=null}w(Uq,qk); 732function Vq(a,c,d){var e=a.c.c;if(m(a.g)&&a.g==d)e.bindFramebuffer(36160,a.i);else{c.postRenderFunctions.push(sa(function(a,c,d){a.isContextLost()||(a.deleteFramebuffer(c),a.deleteTexture(d))},e,a.i,a.Sa));c=sq(e,d,d);var f=e.createFramebuffer();e.bindFramebuffer(36160,f);e.framebufferTexture2D(36160,36064,3553,c,0);a.Sa=c;a.i=f;a.g=d}} 733Uq.prototype.Dg=function(a,c,d){Wq(this,"precompose",d,a);qq(d,34962,this.V);var e=d.b,f=c.brightness||1!=c.contrast||c.hue||1!=c.saturation,g,h;f?(g=Oq.Na(),h=Pq.Na()):(g=Rq.Na(),h=Sq.Na());g=uq(d,g,h);f?null===this.v?this.v=h=new Qq(e,g):h=this.v:null===this.u?this.u=h=new Tq(e,g):h=this.u;d.le(g)&&(e.enableVertexAttribArray(h.b),e.vertexAttribPointer(h.b,2,5126,!1,16,0),e.enableVertexAttribArray(h.a),e.vertexAttribPointer(h.a,2,5126,!1,16,8),e.uniform1i(h.i,0));e.uniformMatrix4fv(h.g,!1,this.C); 734e.uniformMatrix4fv(h.f,!1,this.A);f&&e.uniformMatrix4fv(h.j,!1,Cg(this.Z,c.brightness,c.contrast,c.hue,c.saturation));e.uniform1f(h.c,c.opacity);e.bindTexture(3553,this.Sa);e.drawArrays(5,0,4);Wq(this,"postcompose",d,a)};function Wq(a,c,d,e){a=a.a;if(cd(a,c)){var f=e.viewState;C(a,new jk(c,a,new Mq(d,f.center,f.resolution,f.rotation,e.size,e.extent),e,null,d))}}Uq.prototype.lf=function(){this.i=this.Sa=null;this.g=void 0};function Xq(a,c){Uq.call(this,a,c);this.l=this.j=this.f=null}w(Xq,Uq);function Yq(a,c){var d=c.b();return wq(a.c.c,d)}Xq.prototype.Ra=function(a,c,d,e){var f=this.a;return f.da().ee(a,c.viewState.resolution,c.viewState.rotation,c.skippedFeatureUids,function(a){return d.call(e,a,f)})}; 735Xq.prototype.mf=function(a,c){var d=this.c.c,e=a.pixelRatio,f=a.viewState,g=f.center,h=f.resolution,k=f.rotation,n=this.f,p=this.Sa,q=this.a.da(),r=a.viewHints,t=a.extent;m(c.extent)&&(t=he(t,c.extent));r[0]||r[1]||ke(t)||(f=f.projection,r=q.j,null===r||(f=r),t=q.cc(t,h,e,f),null!==t&&sk(this,t)&&(n=t,p=Yq(this,t),null===this.Sa||a.postRenderFunctions.push(sa(function(a,c){a.isContextLost()||a.deleteTexture(c)},d,this.Sa))));null!==n&&(d=this.c.i.v,Zq(this,d.width,d.height,e,g,h,k,n.R()),this.l=null, 736e=this.C,Ed(e),Id(e,1,-1),Hd(e,0,-1),this.f=n,this.Sa=p,uk(a.attributions,n.g),vk(a,q));return!0};function Zq(a,c,d,e,f,g,h,k){c*=g;d*=g;a=a.A;Ed(a);Id(a,2*e/c,2*e/d);Jd(a,-h);Hd(a,k[0]-f[0],k[1]-f[1]);Id(a,(k[2]-k[0])/2,(k[3]-k[1])/2);Hd(a,1,1)}Xq.prototype.ce=function(a,c){var d=this.Ra(a,c,pe,this);return m(d)}; 737Xq.prototype.bc=function(a,c,d,e){if(null!==this.f&&!fa(this.f.b()))if(this.a.da()instanceof Rp){if(a=a.slice(),pk(c.pixelToCoordinateMatrix,a,a),this.Ra(a,c,pe,this))return d.call(e,this.a)}else{var f=[this.f.b().width,this.f.b().height];if(null===this.l){var g=c.size;c=Ad();Ed(c);Hd(c,-1,-1);Id(c,2/g[0],2/g[1]);Hd(c,0,g[1]);Id(c,1,-1);g=Ad();Gd(this.A,g);var h=Ad();Ed(h);Hd(h,0,f[1]);Id(h,1,-1);Id(h,f[0]/2,f[1]/2);Hd(h,1,1);var k=Ad();Fd(h,g,k);Fd(k,c,k);this.l=k}c=[0,0];pk(this.l,a,c);if(!(0>c[0]|| 738c[0]>f[0]||0>c[1]||c[1]>f[1])&&(null===this.j&&(this.j=Ui(1,1)),this.j.clearRect(0,0,1,1),this.j.drawImage(this.f.b(),c[0],c[
7381],1,1,0,0,1,1),0<this.j.getImageData(0,0,1,1).data[3]))return d.call(e,this.a)}};function $q(){this.b="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor=texture2D(e,a);}"}w($q,gq);da($q);function ar(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position=vec4(b*d.xy+d.zw,0.,1.);a=c;}"}w(ar,hq);da(ar);function br(a,c){this.c=a.getUniformLocation(c,"e");this.f=a.getUniformLocation(c,"d");this.b=a.getAttribLocation(c,"b");this.a=a.getAttribLocation(c,"c")};function cr(a,c){Uq.call(this,a,c);this.K=$q.Na();this.ba=ar.Na();this.f=null;this.B=new oq([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]);this.D=this.j=null;this.l=-1;this.T=[0,0]}w(cr,Uq);l=cr.prototype;l.Y=function(){rq(this.c.i,this.B);cr.aa.Y.call(this)};l.Ad=function(a,c){var d=this.c;return function(e,f){return Th(a,e,f,function(a){var f=zh(d.a,a.jb());f&&(c[e]||(c[e]={}),c[e][a.b.toString()]=a);return f})}};l.lf=function(){cr.aa.lf.call(this);this.f=null}; 739l.mf=function(a,c,d){var e=this.c,f=d.b,g=a.viewState,h=g.projection,k=this.a,n=k.da(),p=Uh(n,h),q=Ph(p,g.resolution),r=p.ua(q),t=n.Vb(q,a.pixelRatio,h),v=t[0]/md(p.Ha(q),this.T)[0],B=r/v,z=n.Fd(),D=g.center,A;r==g.resolution?(D=xk(D,r,a.size),A=fe(D,r,g.rotation,a.size)):A=a.extent;r=Nh(p,A,r);if(null!==this.j&&ng(this.j,r)&&this.l==n.b)B=this.D;else{var y=[og(r),r.c-r.a+1],y=Math.max(y[0]*t[0],y[1]*t[1]),J=Math.pow(2,Math.ceil(Math.log(y)/Math.LN2)),y=B*J,L=p.Ec(q),H=L[0]+r.b*t[0]*B,B=L[1]+r.a* 740t[1]*B,B=[H,B,H+y,B+y];Vq(this,a,J);f.viewport(0,0,J,J);f.clearColor(0,0,0,0);f.clear(16384);f.disable(3042);J=uq(d,this.K,this.ba);d.le(J);null===this.f&&(this.f=new br(f,J));qq(d,34962,this.B);f.enableVertexAttribArray(this.f.b);f.vertexAttribPointer(this.f.b,2,5126,!1,16,0);f.enableVertexAttribArray(this.f.a);f.vertexAttribPointer(this.f.a,2,5126,!1,16,8);f.uniform1i(this.f.c,0);d={};d[q]={};var Q=this.Ad(n,d),wa=k.c(),J=!0,H=Ld(),Pa=new mg(0,0,0,0),P,Da,eb;for(Da=r.b;Da<=r.f;++Da)for(eb=r.a;eb<= 741r.c;++eb){L=n.Ub(q,Da,eb,v,h);if(m(c.extent)&&(P=Lh(p,L.b,H),!ie(P,c.extent)))continue;P=L.state;if(2==P){if(zh(e.a,L.jb())){d[q][fg(L.b)]=L;continue}}else if(4==P||3==P&&!wa)continue;J=!1;P=Kh(p,L.b,Q,Pa,H);P||(L=Mh(p,L.b,Pa,H),null===L||Q(q+1,L))}c=Ua(tb(d),Number);gb(c);for(var Q=new Float32Array(4),Ja,Eb,Za,wa=0,Pa=c.length;wa<Pa;++wa)for(Ja in Eb=d[c[wa]],Eb)L=Eb[Ja],P=Lh(p,L.b,H),Da=2*(P[2]-P[0])/y,eb=2*(P[3]-P[1])/y,Za=2*(P[0]-B[0])/y-1,P=2*(P[1]-B[1])/y-1,zd(Q,Da,eb,Za,P),f.uniform4fv(this.f.f, 742Q),dr(e,L,t,z*v),f.drawArrays(5,0,4);J?(this.j=r,this.D=B,this.l=n.b):(this.D=this.j=null,this.l=-1,a.animate=!0)}wk(a.usedTiles,n,q,r);var Jc=e.l;yk(a,n,p,v,h,A,q,k.a(),function(a){var c;(c=2!=a.state||zh(e.a,a.jb()))||(c=a.jb()in Jc.c);c||zk(Jc,[a,hg(p,a.b),p.ua(a.b[0]),t,z*v])},this);tk(a,n);vk(a,n);f=this.C;Ed(f);Hd(f,(D[0]-B[0])/(B[2]-B[0]),(D[1]-B[1])/(B[3]-B[1]));0!==g.rotation&&Jd(f,g.rotation);Id(f,a.size[0]*g.resolution/(B[2]-B[0]),a.size[1]*g.resolution/(B[3]-B[1]));Hd(f,-.5,-.5);return!0}; 743l.bc=function(a,c,d,e){if(null!==this.i){var f=[0,0];pk(this.C,[a[0]/c.size[0],(c.size[1]-a[1])/c.size[1]],f);a=[f[0]*this.g,f[1]*this.g];c=this.c.i.b;c.bindFramebuffer(c.FRAMEBUFFER,this.i);f=new Uint8Array(4);c.readPixels(a[0],a[1],1,1,c.RGBA,c.UNSIGNED_BYTE,f);if(0<f[3])return d.call(e,this.a)}};function er(a,c){Uq.call(this,a,c);this.l=!1;this.T=-1;this.K=NaN;this.D=Ld();this.j=this.f=this.B=null}w(er,Uq);l=er.prototype;l.Dg=function(a,c,d){this.j=c;var e=a.viewState,f=this.f;if(null!==f&&!f.va()){var g=e.center,h=e.resolution,e=e.rotation,k=a.size,n=c.opacity,p=c.brightness,q=c.contrast,r=c.hue,t=c.saturation;a=c.Hb?a.skippedFeatureUids:{};var v,B;c=0;for(v=Cm.length;c<v;++c)B=f.a[Cm[c]],m(B)&&Cq(B,d,g,h,e,k,n,p,q,r,t,a,void 0,!1)}}; 744l.Y=function(){var a=this.f;null!==a&&(Fq(a,this.c.i)(),this.f=null);er.aa.Y.call(this)};l.Ra=function(a,c,d,e){if(null!==this.f&&null!==this.j){var f=c.viewState,g=this.a,h=this.j,k={};return Kq(this.f,a,this.c.i,f.resolution,f.rotation,h.opacity,h.brightness,h.contrast,h.hue,h.saturation,h.Hb?c.skippedFeatureUids:{},function(a){var c=ma(a).toString();if(!(c in k))return k[c]=!0,d.call(e,a,g)})}}; 745l.ce=function(a,c){if(null===this.f||null===this.j)return!1;var d=c.viewState,e=this.j;return Lq(this.f,a,this.c.i,d.resolution,d.rotation,e.opacity,e.brightness,e.contrast,e.hue,e.saturation,c.skippedFeatureUids)};l.bc=function(a,c,d,e){a=a.slice();pk(c.pixelToCoordinateMatrix,a,a);if(this.ce(a,c))return d.call(e,this.a)};l.Bl=function(){rk(this)}; 746l.mf=function(a,c,d){function e(a){var c;m(a.c)?c=a.c.call(a,p):m(f.a)&&(c=(0,f.a)(a,p));if(null!=c){if(null!=c){var d,e,g=!1;d=0;for(e=c.length;d<e;++d)g=on(t,a,c[d],nn(p,q),this.Bl,this)||g;a=g}else a=!1;this.l=this.l||a}}var f=this.a;c=f.da();uk(a.attributions,c.i);vk(a,c);var g=a.viewHints[0],h=a.viewHints[1],k=f.D,n=f.B;
746if(!this.l&&!k&&g||!n&&h)return!0;var h=a.extent,k=a.viewState,g=k.projection,p=k.resolution,q=a.pixelRatio,k=f.b,r=f.c,n=f.get("renderOrder");m(n)||(n=mn);h=Pd(h,r*p);if(!this.l&& 747this.K==p&&this.T==k&&this.B==n&&Ud(this.D,h))return!0;null===this.f||a.postRenderFunctions.push(Fq(this.f,d));this.l=!1;var t=new Eq(.5*p/q,h,f.c);c.Yb(h,p,g);if(null===n)c.zb(h,p,e,this);else{var v=[];c.zb(h,p,function(a){v.push(a)},this);gb(v,n);Sa(v,e,this)}Gq(t,d);this.K=p;this.T=k;this.B=n;this.D=h;this.f=t;return!0};function fr(a,c){Ek.call(this,0,c);this.b=Qg("CANVAS");this.b.style.width="100%";this.b.style.height="100%";this.b.className="ol-unselectable";Tg(a,this.b,0);this.A=this.D=0;this.B=Ui();this.C=!0;this.c=$i(this.b,{antialias:!0,depth:!1,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0});this.i=new pq(this.b,this.c);x(this.b,"webglcontextlost",this.zl,!1,this);x(this.b,"webglcontextrestored",this.Al,!1,this);this.a=new yh;this.u=null;this.l=new Jk(ra(function(a){var c=a[1];a=a[2]; 748var f=c[0]-this.u[0],c=c[1]-this.u[1];return 65536*Math.log(a)+Math.sqrt(f*f+c*c)/a},this),function(a){return a[0].jb()});this.K=ra(function(){if(!this.l.va()){Nk(this.l);var a=Kk(this.l);dr(this,a[0],a[3],a[4])}},this);this.j=0;gr(this)}w(fr,Ek); 749function dr(a,c,d,e){var f=a.c,g=c.jb();if(zh(a.a,g))a=a.a.get(g),f.bindTexture(3553,a.Sa),9729!=a.jg&&(f.texParameteri(3553,10240,9729),a.jg=9729),9729!=a.kg&&(f.texParameteri(3553,10240,9729),a.kg=9729);else{var h=f.createTexture();f.bindTexture(3553,h);if(0<e){var k=a.B.canvas,n=a.B;a.D!==d[0]||a.A!==d[1]?(k.width=d[0],k.height=d[1],a.D=d[0],a.A=d[1]):n.clearRect(0,0,d[0],d[1]);n.drawImage(c.Qa(),e,e,d[0],d[1],0,0,d[0],d[1]);f.texImage2D(3553,0,6408,6408,5121,k)}else f.texImage2D(3553,0,6408,6408, 7505121,c.Qa());f.texParameteri(3553,10240,9729);f.texParameteri(3553,10241,9729);f.texParameteri(3553,10242,33071);f.texParameteri(3553,10243,33071);a.a.set(g,{Sa:h,jg:9729,kg:9729})}}l=fr.prototype;l.Ke=function(a){return a instanceof I?new Xq(this,a):a instanceof K?new cr(this,a):a instanceof M?new er(this,a):null}; 751function hr(a,c,d){var e=a.g;if(cd(e,c)){var f=a.i;a=d.viewState;a=new Mq(f,a.center,a.resolution,a.rotation,d.size,d.extent);C(e,new jk(c,e,a,d,null,f));c=Ua(tb(a.b),Number);gb(c);var g,h;d=0;for(e=c.length;d<e;++d)for(f=a.b[c[d].toString()],g=0,h=f.length;g<h;++g)f[g](a)}}l.Y=function(){var a=this.c;a.isContextLost()||this.a.forEach(function(c){null===c||a.deleteTexture(c.Sa)});sc(this.i);fr.aa.Y.call(this)}; 752l.xi=function(a,c){for(var d=this.c,e;1024<this.a.Sb()-this.j;){e=this.a.b.pc;if(null===e)if(+this.a.b.Ud==c.index)break;else--this.j;else d.deleteTexture(e.Sa);this.a.pop()}};l.U=function(){return"webgl"};l.zl=function(a){a.preventDefault();this.a.clear();this.j=0;pb(this.f,function(a){a.lf()})};l.Al=function(){gr(this);this.g.render()};function gr(a){a=a.c;a.activeTexture(33984);a.blendFuncSeparate(770,771,1,771);a.disable(2884);a.disable(2929);a.disable(3089);a.disable(2960)} 753l.re=function(a){var c=this.i,d=this.c;if(d.isContextLost())return!1;if(null===a)return this.C&&(ph(this.b,!1),this.C=!1),!1;this.u=a.focus;this.a.set((-a.index).toString(),null);++this.j;hr(this,"precompose",a);var e=[],f=a.layerStatesArray,g=a.viewState.resolution,h,k,n,p;h=0;for(k=f.length;h<k;++h)p=f[h],kk(p,g)&&"ready"==p.u&&(n=Hk(this,p.layer),n.mf(a,p,c)&&e.push(p));f=a.size[0]*a.pixelRatio;g=a.size[1]*a.pixelRatio;if(this.b.width!=f||this.b.height!=g)this.b.width=f,this.b.height=g;d.bindFramebuffer(36160, 754null);d.clearColor(0,0,0,0);d.clear(16384);d.enable(3042);d.viewport(0,0,this.b.width,this.b.height);h=0;for(k=e.length;h<k;++h)p=e[h],n=Hk(this,p.layer),n.Dg(a,p,c);this.C||(ph(this.b,!0),this.C=!0);Fk(a);1024<this.a.Sb()-this.j&&a.postRenderFunctions.push(ra(this.xi,this));this.l.va()||(a.postRenderFunctions.push(this.K),a.animate=!0);hr(this,"postcompose",a);Ik(this,a);a.postRenderFunctions.push(Gk)}; 755l.kf=function(a,c,d,e,f,g){var h;if(this.c.isContextLost())return!1;var k=c.viewState,n=c.layerStatesArray,p;for(p=n.length-1;0<=p;--p){h=n[p];var q=h.layer;if(kk(h,k.resolution)&&f.call(g,q)&&(h=Hk(this,q).Ra(a,c,d,e)))return h}};l.Cg=function(a,c,d,e){var f=!1;if(this.c.isContextLost())return!1;var g=c.viewState,h=c.layerStatesArray,k;for(k=h.length-1;0<=k;--k){var n=h[k],p=n.layer;if(kk(n,g.resolution)&&d.call(e,p)&&(f=Hk(this,p).ce(a,c)))return!0}return f}; 756l.Bg=function(a,c,d,e,f){if(this.c.isContextLost())return!1;var g=c.viewState,h,k=c.layerStatesArray,n;for(n=k.length-1;0<=n;--n){h=k[n];var p=h.layer;if(kk(h,g.resolution)&&f.call(e,p)&&(h=Hk(this,p).bc(a,c,d,e)))return h}};var ir=["canvas","webgl","dom"]; 757function X(a){gd.call(this);var c=jr(a);this.lb=m(a.loadTilesWhileAnimating)?a.loadTilesWhileAnimating:!1;this.xb=m(a.loadTilesWhileInteracting)?a.loadTilesWhileInteracting:!1;this.Nc=m(a.pixelRatio)?a.pixelRatio:bj;this.rc=c.logos;this.u=new mi(this.Dn,void 0,this);rc(this,this.u);this.Ta=Ad();this.Be=Ad();this.kb=0;this.c=null;this.wa=Ld();this.j=this.K=null;this.a=Ng("DIV","ol-viewport");this.a.style.position="relative";this.a.style.overflow="hidden";this.a.style.width="100%";this.a.style.height= 758"100%";this.a.style.msTouchAction="none";gj&&bh(this.a,"ol-touch");this.ca=Ng("DIV","ol-overlaycontainer");this.a.appendChild(this.ca);this.D=Ng("DIV","ol-overlaycontainer-stopevent");x(this.D,["click","dblclick","mousedown","touchstart","MSPointerDown",ck,Kb?"DOMMouseScroll":"mousewheel"],uc);this.a.appendChild(this.D);a=new Uj(this);x(a,sb(fk),this.cg,!1,this);rc(this,a);this.Z=c.keyboardEventTarget;this.A=new Ei;x(this.A,"key",this.bg,!1,this);rc(this,this.A);a=new Mi(this.a);x(a,"mousewheel", 759this.bg,!1,this);rc(this,a);this.i=c.controls;this.f=c.interactions;this.g=c.overlays;this.l=new c.Fn(this.a,this);rc(this,this.l);this.La=new zi;rc(this,this.La);this.T=this.v=null;this.B=[];this.pa=[];this.ba=new Ok(ra(this.qj,this),ra(this.Lk,this));this.V={};x(this,id("layergroup"),this.Fj,!1,this);x(this,id("view"),this.$j,!1,this);x(this,id("size"),this.Xj,!1,this);x(this,id("target"),this.Zj,!1,this);this.I(c.values);
759this.i.forEach(function(a){a.setMap(this)},this);x(this.i,"add",function(a){a.element.setMap(this)}, 760!1,this);x(this.i,"remove",function(a){a.element.setMap(null)},!1,this);this.f.forEach(function(a){a.setMap(this)},this);x(this.f,"add",function(a){a.element.setMap(this)},!1,this);x(this.f,"remove",function(a){a.element.setMap(null)},!1,this);this.g.forEach(function(a){a.setMap(this)},this);x(this.g,"add",function(a){a.element.setMap(this)},!1,this);x(this.g,"remove",function(a){a.element.setMap(null)},!1,this)}w(X,gd);l=X.prototype;l.ki=function(a){this.i.push(a)};l.li=function(a){this.f.push(a)}; 761l.Nf=function(a){this.Tb().Bc().push(a)};l.Of=function(a){this.g.push(a)};l.Ma=function(a){this.render();Array.prototype.push.apply(this.B,arguments)};l.Y=function(){Ug(this.a);X.aa.Y.call(this)};l.ad=function(a,c,d,e,f){if(null!==this.c)return a=this.ta(a),this.l.kf(a,this.c,c,m(d)?d:null,m(e)?e:pe,m(f)?f:null)};l.Kk=function(a,c,d,e,f){if(null!==this.c)return this.l.Bg(a,this.c,c,m(d)?d:null,m(e)?e:pe,m(f)?f:null)}; 762l.bk=function(a,c,d){if(null===this.c)return!1;a=this.ta(a);return this.l.Cg(a,this.c,m(c)?c:pe,m(d)?d:null)};l.Mi=function(a){return this.ta(this.Dd(a))};l.Dd=function(a){var c;c=this.a;a=mh(a);c=mh(c);c=new Eg(a.x-c.x,a.y-c.y);return[c.x,c.y]};l.ff=function(){return this.get("target")};l.zc=function(){var a=this.ff();return m(a)?Jg(a):null};l.ta=function(a){var c=this.c;if(null===c)return null;a=a.slice();return pk(c.pixelToCoordinateMatrix,a,a)};l.Ki=function(){return this.i};l.fj=function(){return this.g}; 763l.Ui=function(){return this.f};l.Tb=function(){return this.get("layergroup")};l.qg=function(){return this.Tb().Bc()};l.xa=function(a){var c=this.c;if(null===c)return null;a=a.slice(0,2);return pk(c.coordinateToPixelMatrix,a,a)};l.Aa=function(){return this.get("size")};l.$=function(){return this.get("view")};l.sj=function(){return this.a}; 764l.qj=function(a,c,d,e){var f=this.c;if(!(null!==f&&c in f.wantedTiles&&f.wantedTiles[c][fg(a.b)]))return Infinity;a=d[0]-f.focus[0];d=d[1]-f.focus[1];return 65536*Math.log(e)+Math.sqrt(a*a+d*d)/e};l.bg=function(a,c){var d=new Sj(c||a.type,this,a);this.cg(d)};l.cg=function(a){if(null!==this.c){this.T=a.coordinate;a.frameState=this.c;var c=this.f.a,d;if(!1!==C(this,a))for(d=c.length-1;0<=d;d--){var e=c[d];if(e.c()&&!e.handleEvent(a))break}}}; 765l.Vj=function(){var a=this.c,c=this.ba;if(!c.va()){var d=16,e=d,f=0;null!==a&&(f=a.viewHints,f[0]&&(d=this.lb?8:0,e=2),f[1]&&(d=this.xb?8:0,e=2),f=rb(a.wantedTiles));d*=f;e*=f;c.f<d&&(Nk(c),Pk(c,d,e))}c=this.pa;d=0;for(e=c.length;d<e;++d)c[d](this,a);c.length=0};l.Xj=function(){this.render()}; 766l.Zj=function(){var a=this.zc();Li(this.A);null===a?(Ug(this.a),null!==this.v&&(Xc(this.v),this.v=null)):(a.appendChild(this.a),Fi(this.A,null===this.Z?a:this.Z),null===this.v&&(this.v=x(this.La,"resize",this.Kc,!1,this)));this.Kc()};l.Lk=function(){this.render()};l.ak=function(){this.render()};l.$j=function(){null!==this.K&&(Xc(this.K),this.K=null);var a=this.$();null!==a&&(this.K=x(a,"propertychange",this.ak,!1,this));this.render()};l.Gj=function(){this.render()};l.Hj=function(){this.render()}; 767l.Fj=function(){if(null!==this.j){for(var a=this.j.length,c=0;c<a;++c)Xc(this.j[c]);this.j=null}a=this.Tb();null!=a&&(this.j=[x(a,"propertychange",this.Hj,!1,this),x(a,"change",this.Gj,!1,this)]);this.render()};l.En=function(){var a=this.u;ni(a);a.f()};l.render=function(){null!=this.u.ga||this.u.start()};l.xn=function(a){if(m(this.i.remove(a)))return a};l.yn=function(a){var c;m(this.f.remove(a))&&(c=a);return c};l.An=function(a){return this.Tb().Bc().remove(a)};l.Bn=function(a){if(m(this.g.remove(a)))return a}; 768l.Dn=function(a){var c,d,e,f=this.Aa(),g=this.$(),h=null;if(m(f)&&0<f[0]&&0<f[1]&&null!==g&&Tf(g)){var h=g.c.slice(),k=this.Tb().We(),n={};c=0;for(d=k.length;c<d;++c)n[ma(k[c].layer)]=k[c];e=Sf(g);h={animate:!1,attributions:{},coordinateToPixelMatrix:this.Ta,extent:null,focus:null===this.T?e.center:this.T,index:this.kb++,layerStates:n,layerStatesArray:k,logos:Cb(this.rc),pixelRatio:this.Nc,pixelToCoordinateMatrix:this.Be,postRenderFunctions:[],size:f,skippedFeatureUids:this.V,tileQueue:this.ba,time:a, 769usedTiles:{},viewState:e,viewHints:h,wantedTiles:{}}}if(null!==h){a=this.B;c=f=0;for(d=a.length;c<d;++c)g=a[c],g(this,h)&&(a[f++]=g);a.length=f;h.extent=fe(e.center,e.resolution,e.rotation,h.size)}this.c=h;this.l.re(h);null!==h&&(h.animate&&this.render(),Array.prototype.push.apply(this.pa,h.postRenderFunctions),0!==this.B.length||h.viewHints[0]||h.viewHints[1]||Xd(h.extent,this.wa)||(C(this,new wh("moveend",this,h)),Qd(h.extent,this.wa)));C(this,new wh("postrender",this,h));ri(this.Vj,this)}; 770l.lh=function(a){this.set("layergroup",a)};l.yf=function(a){this.set("size",a)};l.Mk=function(a){this.set("target",a)};l.Un=function(a){this.set("view",a)};l.qh=function(a){a=ma(a).toString();this.V[a]=!0;this.render()}; 771l.Kc=function(){var a=this.zc();if(null===a)this.yf(void 0);else{var c=Ig(a),d=Ib&&a.currentStyle;d&&Yg(Gg(c))&&"auto"!=d.width&&"auto"!=d.height&&!d.boxSizing?(c=qh(a,d.width,"width","pixelWidth"),a=qh(a,d.height,"height","pixelHeight"),a=new Fg(c,a)):(d=new Fg(a.offsetWidth,a.offsetHeight),c=sh(a,"padding"),a=vh(a),a=new Fg(d.width-a.left-c.left-c.right-a.right,d.height-a.top-c.top-c.bottom-a.bottom));this.yf([a.width,a.height])}};l.th=function(a){a=ma(a).toString();delete this.V[a];this.render()};
772function jr(a){var c=null;m(a.keyboardEventTarget)&&(c=ia(a.keyboardEventTarget)?document.getElementById(a.keyboardEventTarget):a.keyboardEventTarget);var d={},e={};if(!m(a.logo)||"boolean"==typeof a.logo&&a.logo)e["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]= 773"http://openlayers.org/";else{var f=a.logo;ia(f)?e[f]="":la(f)&&(e[f.src]=f.href)}f=a.layers instanceof G?a.layers:new G({layers:a.layers});d.layergroup=f;d.target=a.target;d.view=m(a.view)?a.view:new Pf;var f=Ek,g;m(a.renderer)?ga(a.renderer)?g=a.renderer:ia(a.renderer)&&(g=[a.renderer]):g=ir;var h,k;h=0;for(k=g.length;h<k;++h){var n=g[h];if("canvas"==n){if(dj){f=Wp;break}}else if("dom"==n){f=dq;break}else if("webgl"==n&&aj){f=fr;break}}var p;m(a.controls)?p=ga(a.controls)?new sg(a.controls.slice()): 774a.controls:p=di();var q;m(a.interactions)?q=ga(a.interactions)?new sg(a.interactions.slice()):a.interactions:q=bm();a=m(a.overlays)?ga(a.overlays)?new sg(a.overlays.slice()):a.overlays:new sg;return{controls:p,interactions:q,keyboardEventTarget:c,logos:e,overlays:a,Fn:f,values:d}}im();function kr(a){gd.call(this);this.l=m(a.insertFirst)?a.insertFirst:!0;this.v=m(a.stopEvent)?a.stopEvent:!0;this.c=Ng("DIV",{"class":"ol-overlay-container"});this.c.style.position="absolute";this.j=m(a.autoPan)?a.autoPan:!1;this.i=m(a.autoPanAnimation)?a.autoPanAnimation:{};this.g=m(a.autoPanMargin)?a.autoPanMargin:20;this.a={wd:"",Vd:"",se:"",te:"",visible:!0};this.f=null;x(this,id("element"),this.Bj,!1,this);x(this,id("map"),this.Mj,!1,this);x(this,id("offset"),this.Rj,!1,this);x(this,id("position"), 775this.Tj,!1,this);x(this,id("positioning"),this.Uj,!1,this);m(a.element)&&this.ih(a.element);this.nh(m(a.offset)?a.offset:[0,0]);this.oh(m(a.positioning)?a.positioning:"top-left");m(a.position)&&this.gf(a.position)}w(kr,gd);l=kr.prototype;l.Yd=function(){return this.get("element")};l.Zd=function(){return this.get("map")};l.Zf=function(){return this.get("offset")};l.rg=function(){return this.get("position")};l.$f=function(){return this.get("positioning")}; 776l.Bj=function(){Sg(this.c);var a=this.Yd();null!=a&&Rg(this.c,a)};l.Mj=function(){null!==this.f&&(Ug(this.c),Xc(this.f),this.f=null);var a=this.Zd();null!=a&&(this.f=x(a,"postrender",this.render,!1,this),lr(this),a=this.v?a.D:a.ca,this.l?Tg(a,this.c,0):Rg(a,this.c))};l.render=function(){lr(this)};l.Rj=function(){lr(this)}; 777l.Tj=function(){lr(this);if(m(this.get("position"))&&this.j){var a=this.Zd();if(m(a)&&!fa(a.zc())){var c=mr(a.zc(),a.Aa()),d=this.Yd(),e=d.offsetWidth,f=d.currentStyle||window.getComputedStyle(d),e=e+(parseInt(f.marginLeft,10)+parseInt(f.marginRight,10)),f=d.offsetHeight,g=d.currentStyle||window.getComputedStyle(d),f=f+(parseInt(g.marginTop,10)+parseInt(g.marginBottom,10)),h=mr(d,[e,f]),d=this.g;Ud(c,h)||(e=h[0]-c[0],f=c[2]-h[2],g=h[1]-c[1],h=c[3]-h[3],c=[0,0],0>e?c[0]=e-d:0>f&&(c[0]=Math.abs(f)+ 778d),0>g?c[1]=g-d:0>h&&(c[1]=Math.abs(h)+d),0===c[0]&&0===c[1])||(d=a.$().Ia(),e=a.xa(d),c=[e[0]+c[0],e[1]+c[1]],null!==this.i&&(this.i.source=d,a.Ma($f(this.i))),a.$().$a(a.ta(c)))}}};l.Uj=function(){lr(this)};l.ih=function(a){this.set("element",a)};l.setMap=function(a){this.set("map",a)};l.nh=function(a){this.set("offset",a)};l.gf=function(a){this.set("position",a)}; 779function mr(a,c){var d=Ig(a),e=new Eg(0,0),f;f=d?Ig(d):document;f=!Ib||9<=Vb||Yg(Gg(f))?f.documentElement:f.body;a!=f&&(f=lh(a),d=Zg(Gg(d)),e.x=f.left+d.x,e.y=f.top+d.y);return[e.x,e.y,e.x+c[0],e.y+c[1]]}l.oh=function(a){this.set("positioning",a)}; 780function lr(a){var c=a.Zd(),d=a.rg();if(m(c)&&null!==c.c&&m(d)){var d=c.xa(d),e=c.Aa(),c=a.c.style,f=a.Zf(),g=a.$f(),h=f[0],f=f[1];if("bottom-right"==g||"center-right"==g||"top-right"==g)""!==a.a.Vd&&(a.a.Vd=c.left
780=""),h=Math.round(e[0]-d[0]-h)+"px",a.a.se!=h&&(a.a.se=c.right=h);else{""!==a.a.se&&(a.a.se=c.right="");if("bottom-center"==g||"center-center"==g||"top-center"==g)h-=nh(a.c).width/2;h=Math.round(d[0]+h)+"px";a.a.Vd!=h&&(a.a.Vd=c.left=h)}if("bottom-left"==g||"bottom-center"==g||"bottom-right"== 781g)""!==a.a.te&&(a.a.te=c.top=""),d=Math.round(e[1]-d[1]-f)+"px",a.a.wd!=d&&(a.a.wd=c.bottom=d);else{""!==a.a.wd&&(a.a.wd=c.bottom="");if("center-left"==g||"center-center"==g||"center-right"==g)f-=nh(a.c).height/2;d=Math.round(d[1]+f)+"px";a.a.te!=d&&(a.a.te=c.top=d)}a.a.visible||(ph(a.c,!0),a.a.visible=!0)}else a.a.visible&&(ph(a.c,!1),a.a.visible=!1)};function nr(a){a=m(a)?a:{};this.g=m(a.collapsed)?a.collapsed:!0;this.j=m(a.collapsible)?a.collapsible:!0;this.j||(this.g=!1);var c=m(a.className)?a.className:"ol-overviewmap",d=m(a.tipLabel)?a.tipLabel:"Overview map",e=m(a.collapseLabel)?a.collapseLabel:"\u00ab";this.u=ia(e)?Ng("SPAN",{},e):e;e=m(a.label)?a.label:"\u00bb";this.A=ia(e)?Ng("SPAN",{},e):e;d=Ng("BUTTON",{type:"button",title:d},this.j&&!this.g?this.u:this.A);x(d,"click",this.Wk,!1,this);var e=Ng("DIV","ol-overviewmap-map"),f=this.f=new X({controls:new sg, 782interactions:new sg,target:e});m(a.layers)&&a.layers.forEach(function(a){f.Nf(a)},this);var g=Ng("DIV","ol-overviewmap-box");this.l=new kr({position:[0,0],positioning:"bottom-left",element:g});this.f.Of(this.l);c=Ng("DIV",c+" ol-unselectable ol-control"+(this.g&&this.j?" ol-collapsed":"")+(this.j?"":" ol-uncollapsible"),e,d);xh.call(this,{element:c,render:m(a.render)?a.render:or,target:a.target})}w(nr,xh);l=nr.prototype; 783l.setMap=function(a){var c=this.a;a!==c&&(c&&(c=c.$())&&Wc(c,id("rotation"),this.Pd,!1,this),nr.aa.setMap.call(this,a),a&&(this.v.push(x(a,"propertychange",this.Nj,!1,this)),0===this.f.qg().Ib()&&this.f.lh(a.Tb()),a=a.$()))&&(x(a,id("rotation"),this.Pd,!1,this),Tf(a)&&(this.f.Kc(),pr(this)))};l.Nj=function(a){"view"===a.key&&((a=a.oldValue)&&Wc(a,id("rotation"),this.Pd,!1,this),a=this.a.$(),x(a,id("rotation"),this.Pd,!1,this))};l.Pd=function(){this.f.$().$d(this.a.$().Ca())}; 784function or(){var a=this.a,c=this.f;if(null!==a.c&&null!==c.c){var d=a.Aa(),a=a.$().Pc(d),e=c.Aa(),d=c.$().Pc(e),f=c.xa(de(a)),c=c.xa(be(a)),c=new Fg(Math.abs(f[0]-c[0]),Math.abs(f[1]-c[1])),f=e[0],e=e[1];c.width<.1*f||c.height<.1*e||c.width>.75*f||c.height>.75*e?pr(this):Ud(d,a)||(a=this.f,d=this.a.$(),a.$().$a(d.Ia()))}qr(this)}function pr(a){var c=a.a;a=a.f;var d=c.Aa(),c=c.$().Pc(d),d=a.Aa();a=a.$();var e=Math.log(7.5)/Math.LN2;le(c,1/(.1*Math.pow(2,e/2)));a.Me(c,d)} 785function qr(a){var c=a.a,d=a.f;if(null!==c.c&&null!==d.c){var e=c.Aa(),f=c.$(),g=d.$();d.Aa();var c=f.Ca(),h=a.l,d=a.l.Yd(),f=f.Pc(e),e=g.Ba(),g=ae(f),f=ce(f),k;a=a.a.$().Ia();m(a)&&(k=[g[0]-a[0],g[1]-a[1]],sd(k,c),nd(k,a));h.gf(k);null!=d&&(k=new Fg(Math.abs((g[0]-f[0])/e),Math.abs((f[1]-g[1])/e)),c=Yg(Gg(Ig(d))),!Ib||Tb("10")||c&&Tb("8")?(d=d.style,Kb?d.MozBoxSizing="border-box":Lb?d.WebkitBoxSizing="border-box":d.boxSizing="border-box",d.width=Math.max(k.width,0)+"px",d.height=Math.max(k.height, 7860)+"px"):(a=d.style,c?(c=sh(d,"padding"),d=vh(d),a.pixelWidth=k.width-d.left-c.left-c.right-d.right,a.pixelHeight=k.height-d.top-c.top-c.bottom-d.bottom):(a.pixelWidth=k.width,a.pixelHeight=k.height)))}}l.Wk=function(a){a.preventDefault();rr(this)};function rr(a){dh(a.element,"ol-collapsed");a.g?Vg(a.u,a.A):Vg(a.A,a.u);a.g=!a.g;var c=a.f;a.g||null!==c.c||(c.Kc(),pr(a),Vc(c,"postrender",function(){qr(this)},!1,a))}l.Vk=function(){return this.j}; 787l.Yk=function(a){this.j!==a&&(this.j=a,dh(this.element,"ol-uncollapsible"),!a&&this.g&&rr(this))};l.Xk=function(a){this.j&&this.g!==a&&rr(this)};l.Uk=function(){return this.g};function sr(a){a=m(a)?a:{};var c=m(a.className)?a.className:"ol-scale-line";this.l=Ng("DIV",c+"-inner");this.j=Ng("DIV",c+" ol-unselectable",this.l);this.A=null;this.u=m(a.minWidth)?a.minWidth:64;this.f=!1;this.K=void 0;this.D="";this.g=null;xh.call(this,{element:this.j,render:m(a.render)?a.render:tr,target:a.target});x(this,id("units"),this.Z,!1,this);this.V(a.units||"metric")}w(sr,xh);var ur=[1,2,5];sr.prototype.B=function(){return this.get("units")}; 788function tr(a){a=a.frameState;null===a?this.A=null:this.A=a.viewState;vr(this)}sr.prototype.Z=function(){vr(this)};sr.prototype.V=function(a){this.set("units",a)}; 789function vr(a){var c=a.A;if(null===c)a.f&&(ph(a.j,!1),a.f=!1);else{var d=c.center,e=c.projection,c=e.getPointResolution(c.resolution,d),f=e.a,g=a.B();"degrees"!=f||"metric"!=g&&"imperial"!=g&&"us"!=g&&"nautical"!=g?"degrees"!=f&&"degrees"==g?(null===a.g&&(a.g=Ee(e,Ae("EPSG:4326"))),d=Math.cos($b(a.g(d)[1])),e=we.radius,e/=xe[f],c*=180/(Math.PI*d*e)):a.g=null:(a.g=null,d=Math.cos($b(d[1])),c*=Math.PI*d*we.radius/180);d=a.u*c;f="";"degrees"==g?d<1/60?(f="\u2033",c*=3600):1>d?(f="\u2032",c*=60):f="\u00b0": 790"imperial"==g?.9144>d?(f="in",c/=.0254):1609.344>d?(f="ft",c/=.3048):(f="mi",c/=1609.344):"nautical"==g?(c/=1852,f="nm"):"metric"==g?1>d?(f="mm",c*=1E3):1E3>d?f="m":(f="km",c/=1E3):"us"==g&&(.9144>d?(f="in",c*=39.37):1609.344>d?(f="ft",c/=.30480061):(f="mi",c/=1609.3472));for(d=3*Math.floor(Math.log(a.u*c)/Math.log(10));;){e=ur[d%3]*Math.pow(10,Math.floor(d/3));g=Math.round(e/c);if(isNaN(g)){ph(a.j,!1);a.f=!1;return}if(g>=a.u)break;++d}c=e+" "+f;a.D!=c&&(a.l.innerHTML=c,a.D=c);a.K!=g&&(a.l.style.width= 791g+"px",a.K=g);a.f||(ph(a.j,!0),a.f=!0)}};function wr(a){oc.call(this);this.a=a;this.b={}}w(wr,oc);var xr=[];wr.prototype.Pa=function(a,c,d,e){ga(c)||(c&&(xr[0]=c.toString()),c=xr);for(var f=0;f<c.length;f++){var g=x(a,c[f],d||this.handleEvent,e||!1,this.a||this);if(!g)break;
791this.b[g.key]=g}return this}; 792wr.prototype.zf=function(a,c,d,e,f){if(ga(c))for(var g=0;g<c.length;g++)this.zf(a,c[g],d,e,f);else d=d||this.handleEvent,f=f||this.a||this,d=Pc(d),e=!!e,c=Cc(a)?Kc(a.fb,String(c),d,e,f):a?(a=Rc(a))?Kc(a,c,d,e,f):null:null,c&&(Xc(c),delete this.b[c.key]);return this};function yr(a){pb(a.b,function(a,d){this.b.hasOwnProperty(d)&&Xc(a)},a);a.b={}}wr.prototype.Y=function(){wr.aa.Y.call(this);yr(this)};wr.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function zr(a,c,d){ad.call(this);this.target=a;this.handle=c||a;this.b=d||new fh(NaN,NaN,NaN,NaN);this.g=Ig(a);this.a=new wr(this);rc(this,this.a);this.i=this.f=this.C=this.l=this.screenY=this.screenX=this.clientY=this.clientX=0;this.c=!1;x(this.handle,["touchstart","mousedown"],this.rh,!1,this)}w(zr,ad);var Ar=Ib||Kb&&Tb("1.9.3");l=zr.prototype; 793l.Y=function(){zr.aa.Y.call(this);Wc(this.handle,["touchstart","mousedown"],this.rh,!1,this);yr(this.a);Ar&&this.g.releaseCapture();this.handle=this.target=null}; 794l.rh=function(a){var c="mousedown"==a.type;if(this.c||c&&!Ac(a))C(this,"earlycancel");else if(C(this,new Br("start",this,a.clientX,a.clientY))){this.c=!0;a.preventDefault();var c=this.g,d=c.documentElement,e=!Ar;this.a.Pa(c,["touchmove","mousemove"],this.Qj,e);this.a.Pa(c,["touchend","mouseup"],this.Cd,e);Ar?(d.setCapture(!1),this.a.Pa(d,"losecapture",this.Cd)):this.a.Pa(c?c.parentWindow||c.defaultView:window,"blur",this.Cd);this.v&&this.a.Pa(this.v,"scroll",this.Pm,e);this.clientX=this.l=a.clientX; 795this.clientY=this.C=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.f=this.target.offsetLeft;this.i=this.target.offsetTop;this.j=Zg(Gg(this.g))}};l.Cd=function(a){yr(this.a);Ar&&this.g.releaseCapture();if(this.c){this.c=!1;var c=Cr(this,this.f),d=Dr(this,this.i);C(this,new Br("end",this,a.clientX,a.clientY,0,c,d))}else C(this,"earlycancel")}; 796l.Qj=function(a){var c=1*(a.clientX-this.clientX),d=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.c){var e=this.l-this.clientX,f=this.C-this.clientY;if(0<e*e+f*f)if(C(this,new Br("start",this,a.clientX,a.clientY)))this.c=!0;else{this.ea||this.Cd(a);return}}d=Er(this,c,d);c=d.x;d=d.y;this.c&&C(this,new Br("beforedrag",this,a.clientX,a.clientY,0,c,d))&&(Fr(this,a,c,d),a.preventDefault())}; 797function Er(a,c,d){var e=Zg(Gg(a.g));c+=e.x-a.j.x;d+=e.y-a.j.y;a.j=e;a.f+=c;a.i+=d;c=Cr(a,a.f);a=Dr(a,a.i);return new Eg(c,a)}l.Pm=function(a){var c=Er(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Fr(this,a,c.x,c.y)};function Fr(a,c,d,e){a.target.style.left=d+"px";a.target.style.top=e+"px";C(a,new Br("drag",a,c.clientX,c.clientY,0,d,e))} 798function Cr(a,c){var d=a.b,e=isNaN(d.left)?null:d.left,d=isNaN(d.width)?0:d.width;return Math.min(null!=e?e+d:Infinity,Math.max(null!=e?e:-Infinity,c))}function Dr(a,c){var d=a.b,e=isNaN(d.top)?null:d.top,d=isNaN(d.height)?0:d.height;return Math.min(null!=e?e+d:Infinity,Math.max(null!=e?e:-Infinity,c))}function Br(a,c,d,e,f,g,h){tc.call(this,a);this.clientX=d;this.clientY=e;this.left=m(g)?g:c.f;this.top=m(h)?h:c.i}w(Br,tc);function Gr(a){a=m(a)?a:{};this.g=void 0;this.j=Hr;this.l=null;this.A=!1;this.u=m(a.duration)?a.duration:200;var c=m(a.className)?a.className:"ol-zoomslider",d=Ng("DIV",[c+"-thumb","ol-unselectable"]),c=Ng("DIV",[c,"ol-unselectable","ol-control"],d);this.f=new zr(d);rc(this,this.f);x(this.f,"start",this.Aj,!1,this);x(this.f,"drag",this.yj,!1,this);x(this.f,"end",this.zj,!1,this);x(c,"click",this.xj,!1,this);x(d,"click",uc);xh.call(this,{element:c,render:m(a.render)?a.render:Ir})}w(Gr,xh);var Hr=0; 799l=Gr.prototype;l.setMap=function(a){Gr.aa.setMap.call(this,a);null===a||a.render()}; 800function Ir(a){if(null!==a.frameState){if(!this.A){var c=this.element,d=nh(c),e=Wg(c),c=sh(e,"margin"),f=new Fg(e.offsetWidth,e.offsetHeight),e=f.width+c.right+c.left,c=f.height+c.top+c.bottom;this.l=[e,c];e=d.width-e;c=d.height-c;d.width>d.height?(this.j=1,d=new fh(0,0,e,0)):(this.j=Hr,d=new fh(0,0,0,c));this.f.b=d||new fh(NaN,NaN,NaN,NaN);this.A=!0}a=a.frameState.viewState.resolution;a!==this.g&&(this.g=a,a=1-Rf(this.a.$())(a),d=this.f,c=Wg(this.element),1==this.j?jh(c,d.b.left+d.b.width*a):jh(c, 801d.b.left,d.b.top+d.b.height*a))}}l.xj=function(a){var c=this.a,d=c.$(),e=d.Ba();c.Ma(bg({resolution:e,duration:this.u,easing:Wf}));a=Jr(this,a.offsetX-this.l[0]/2,a.offsetY-this.l[1]/2);a=Kr(this,a);d.Ob(d.constrainResolution(a))};l.Aj=function(){Uf(this.a.$(),1)};l.yj=function(a){a=Jr(this,a.left,a.top);this.g=Kr(this,a);this.a.$().Ob(this.g)};l.zj=function(){var a=this.a,c=a.$();Uf(c,-1);a.Ma(bg({resolution:this.g,duration:this.u,easing:Wf}));a=c.constrainResolution(this.g);c.Ob(a)}; 802function Jr(a,c,d){var e=a.f.b;return Xb(1===a.j?(c-e.left)/e.width:(d-e.top)/e.height,0,1)}function Kr(a,c){return Qf(a.a.$())(1-c)};function Lr(a){a=m(a)?a:{};this.f=m(a.extent)?a.extent:null;var c=m(a.className)?a.className:"ol-zoom-extent",d=Ng("BUTTON",{type:"button",title:m(a.tipLabel)?a.tipLabel:"Fit to extent"},m(a.label)?a.label:"E");x(d,"click",this.g,!1,this);c=Ng("DIV",c+" ol-unselectable ol-control",d);xh.call(this,{element:c,target:a.target})}w(Lr,xh);Lr.prototype.g=function(a){a.preventDefault();var c=this.a;a=c.$();var d=null===this.f?a.i.R():this.f,c=c.Aa();a.Me(d,c)};function Mr(a){gd.call(this);a=m(a)?a:{};this.a=null;x(this,id("tracking"),this.yk,!1,this);this.df(m(a.tracking)?a.tracking:!1)}w(Mr,gd);l=Mr.prototype;l.Y=function(){this.df(!1);Mr.aa.Y.call(this)}; 803l.Qm=function(a){a=a.b;
803if(null!=a.alpha){var c=$b(a.alpha);this.set("alpha",c);"boolean"==typeof a.absolute&&a.absolute?this.set("heading",c):null!=a.webkitCompassHeading&&null!=a.webkitCompassAccuracy&&-1!=a.webkitCompassAccuracy&&this.set("heading",$b(a.webkitCompassHeading))}null!=a.beta&&this.set("beta",$b(a.beta));null!=a.gamma&&this.set("gamma",$b(a.gamma));this.s()};l.Fi=function(){return this.get("alpha")};l.Ii=function(){return this.get("beta")};l.Qi=function(){return this.get("gamma")}; 804l.xk=function(){return this.get("heading")};l.mg=function(){return this.get("tracking")};l.yk=function(){if(ej){var a=this.mg();a&&null===this.a?this.a=x(ba,"deviceorientation",this.Qm,!1,this):a||null===this.a||(Xc(this.a),this.a=null)}};l.df=function(a){this.set("tracking",a)};function Nr(){this.defaultDataProjection=null}function Or(a,c,d){var e;m(d)&&(e={dataProjection:m(d.dataProjection)?d.dataProjection:a.Ea(c),featureProjection:d.featureProjection});return Pr(a,e)}function Pr(a,c){var d;m(c)&&(d={featureProjection:c.featureProjection,dataProjection:null!=c.dataProjection?c.dataProjection:a.defaultDataProjection,rightHanded:c.rightHanded});return d} 805function Qr(a,c,d){var e=m(d)?Ae(d.featureProjection):null;d=m(d)?Ae(d.dataProjection):null;return null===e||null===d||Re(e,d)?a:a instanceof Xe?(c?a.clone():a).transform(c?e:d,c?d:e):We(c?a.slice():a,c?e:d,c?d:e)};function Rr(){this.defaultDataProjection=null}w(Rr,Nr);function Sr(a){return la(a)?a:ia(a)?(a=ho(a),m(a)?a:null):null}l=Rr.prototype;l.U=function(){return"json"};l.vb=function(a,c){return this.Fc(Sr(a),Or(this,a,c))};l.qa=function(a,c){return this.rf(Sr(a),Or(this,a,c))};l.Gc=function(a,c){return this.Ug(Sr(a),Or(this,a,c))};l.Ea=function(a){return this.$g(Sr(a))};l.qd=function(a,c){return io(this.Lc(a,c))};l.wb=function(a,c){return io(this.we(a,c))};l.Mc=function(a,c){return io(this.ye(a,c))};function Tr(a){a=m(a)?a:{};this.defaultDataProjection=null;this.b=a.geometryName}w(Tr,Rr); 806function Ur(a,c){if(null===a)return null;var d;if(ja(a.x)&&ja(a.y))d="Point";else if(null!=a.points)d="MultiPoint";else if(null!=a.paths)d=1===a.paths.length?"LineString":"MultiLineString";else if(null!=a.rings){var e=a.rings,f=Vr(a),g=[];d=[];var h,k;h=0;for(k=e.length;h<k;++h){var n=kb(e[h]);Ef(n,0,n.length,f.length)?g.push([e[h]]):d.push(e[h])}for(;d.length;){e=d.shift();f=!1;for(h=g.length-1;0<=h;h--)if(Ud((new tf(g[h][0])).R(),(new tf(e)).R())){g[h].push(e);f=!0;break}
806f||g.push([e.reverse()])}a= 807Cb(a);1===g.length?(d="Polygon",a.rings=g[0]):(d="MultiPolygon",a.rings=g)}return Qr((0,Wr[d])(a),!1,c)}function Vr(a){var c="XY";!0===a.hasZ&&!0===a.hasM?c="XYZM":!0===a.hasZ?c="XYZ":!0===a.hasM&&(c="XYM");return c}function Xr(a){a=a.a;return{hasZ:"XYZ"===a||"XYZM"===a,hasM:"XYM"===a||"XYZM"===a}} 808var Wr={Point:function(a){return null!=a.m&&null!=a.z?new vf([a.x,a.y,a.z,a.m],"XYZM"):null!=a.z?new vf([a.x,a.y,a.z],"XYZ"):null!=a.m?new vf([a.x,a.y,a.m],"XYM"):new vf([a.x,a.y])},LineString:function(a){return new N(a.paths[0],Vr(a))},Polygon:function(a){return new E(a.rings,Vr(a))},MultiPoint:function(a){return new jn(a.points,Vr(a))},MultiLineString:function(a){return new O(a.paths,Vr(a))},MultiPolygon:function(a){return new R(a.rings,Vr(a))}},Yr={Point:function(a){var c=a.W();a=a.a;if("XYZ"=== 809a)return{x:c[0],y:c[1],z:c[2]};if("XYM"===a)return{x:c[0],y:c[1],m:c[2]};if("XYZM"===a)return{x:c[0],y:c[1],z:c[2],m:c[3]};if("XY"===a)return{x:c[0],y:c[1]}},LineString:function(a){var c=Xr(a);return{hasZ:c.hasZ,hasM:c.hasM,paths:[a.W()]}},Polygon:function(a){var c=Xr(a);return{hasZ:c.hasZ,hasM:c.hasM,rings:a.W(!1)}},MultiPoint:function(a){var c=Xr(a);return{hasZ:c.hasZ,hasM:c.hasM,points:a.W()}},MultiLineString:function(a){var c=Xr(a);return{hasZ:c.hasZ,hasM:c.hasM,paths:a.W()}},MultiPolygon:function(a){var c= 810Xr(a);a=a.W(!1);for(var d=[],e=0;e<a.length;e++)for(var f=a[e].length-1;0<=f;f--)d.push(a[e][f]);return{hasZ:c.hasZ,hasM:c.hasM,rings:d}}};l=Tr.prototype;l.Fc=function(a,c){var d=Ur(a.geometry,c),e=new zn;m(this.b)&&e.Ic(this.b);e.ra(d);m(c)&&m(c.Ze)&&m(a.attributes[c.Ze])&&e.Nb(a.attributes[c.Ze]);m(a.attributes)&&e.I(a.attributes);return e}; 811l.rf=function(a,c){var d=m(c)?c:{};if(null!=a.features){var e=[],f=a.features,g,h;d.Ze=a.objectIdFieldName;g=0;for(h=f.length;g<h;++g)e.push(this.Fc(f[g],d));return e}return[this.Fc(a,d)]};l.Ug=function(a,c){return Ur(a,c)};l.$g=function(a){return null!=a.spatialReference&&null!=a.spatialReference.wkid?Ae("EPSG:"+a.spatialReference.wkid):null};function Zr(a,c){return(0,Yr[a.U()])(Qr(a,!0,c),c)}l.ye=function(a,c){return Zr(a,Pr(this,c))}; 812l.Lc=function(a,c){c=Pr(this,c);var d={},e=a.X();null!=e&&(d.geometry=Zr(e,c));e=a.P();zb(e,a.a);d.attributes=xb(e)?{}:e;m(c)&&m(c.featureProjection)&&(d.spatialReference={wkid:Ae(c.featureProjection).b.split(":").pop()});return d};l.we=function(a,c){c=Pr(this,c);var d=[],e,f;e=0;for(f=a.length;e<f;++e)d.push(this.Lc(a[e],c));return{features:d}};function $r(a){a=m(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ae(null!=a.defaultDataProjection?a.defaultDataProjection:"EPSG:4326");this.b=a.geometryName}w($r,Rr);function as(a,c){return null===a?null:Qr((0,bs[a.type])(a),!1,c)}function cs(a,c){return(0,ds[a.U()])(Qr(a,!0,c),c)} 813var bs={Point:function(a){return new vf(a.coordinates)},LineString:function(a){return new N(a.coordinates)},Polygon:function(a){return new E(a.coordinates)},MultiPoint:function(a){return new jn(a.coordinates)},MultiLineString:function(a){return new O(a.coordinates)},MultiPolygon:function(a){return new R(a.coordinates)},GeometryCollection:function(a,c){var d=Ua(a.geometries,function(a){return as(a,c)});return new Zm(d)}},ds={Point:function(a){return{type:"Point",coordinates:a.W()}},LineString:function(a){return{type:"LineString", 814coordinates:a.W()}},Polygon:function(a,c){var d;m(c)&&(d=c.rightHanded);return{type:"Polygon",coordinates:a.W(d)}},MultiPoint:function(a){return{type:"MultiPoint",coordinates:a.W()}},MultiLineString:function(a){return{type:"MultiLineString",coordinates:a.W()}},MultiPolygon:function(a,c){var d;m(c)&&(d=c.rightHanded);return{type:"MultiPolygon",coordinates:a.W(d)}},GeometryCollection:function(a,c){return{type:"GeometryCollection",geometries:Ua(a.f,function(a){return cs(a,c)})}},Circle:function(){return{type:"GeometryCollection", 815geometries:[]}}};l=$r.prototype;l.Fc=function(a,c){var d=as(a.geometry,c),e=new zn;m(this.b)&&e.Ic(this.b);e.ra(d);m(a.id)&&e.Nb(a.id);m(a.properties)&&e.I(a.properties);return e};l.rf=function(a,c){if("Feature"==a.type)return[this.Fc(a,c)];if("FeatureCollection"==a.type){var d=[],e=a.features,f,g;f=0;for(g=e.length;f<g;++f)d.push(this.Fc(e[f],c));return d}return[]};l.Ug=function(a,c){return as(a,c)}; 816l.$g=function(a){a=a.crs;return null!=a?"name"==a.type?Ae(a.properties.name):"EPSG"==a.type?Ae("EPSG:"+a.properties.code):null:this.defaultDataProjection};l.Lc=function(a,c){c=Pr(this,c);var d={type:"Feature"},e=a.ga;null!=e&&(d.id=e);e=a.X();d.geometry=null!=e?cs(e,c):null;e=a.P();zb(e,a.a);d.properties=xb(e)?null:e;return d};l.we=function(a,c){c=Pr(this,c);var d=[],e,f;e=0;for(f=a.length;e<f;++e)d.push(this.Lc(a[e],c));return{type:"FeatureCollection",features:d}}; 817l.ye=function(a,c){return cs(a,Pr(this,c))};function es(){this.defaultDataProjection=null}w(es,Nr);l=es.prototype;l.U=function(){return"xml"};l.vb=function(a,c){if(ap(a))return fs(this,a,c);if(dp(a))return this.Sg(a,c);if(ia(a)){var d=np(a);return fs(this,d,c)}return null};function fs(a,c,d){a=gs(a,c,d);return 0<a.length?a[0]:null}l.qa=function(a,c){if(ap(a))return gs(this,a,c);if(dp(a))return this.Mb(a,c);if(ia(a)){var d=np(a);return gs(this,d,c)}return[]}; 818function gs(a,c,d){var e=[];for(c=c.firstChild;null!==c;c=c.nextSibling)1==c.nodeType&&cb(e,a.Mb(c,d));return e}l.Gc=function(a,c){if(ap(a))return this.v(a,c);if(dp(a)){var d=this.ne(a,[Or(this,a,m(c)?c:{})]);return m(d)?d:null}return ia(a)?(d=np(a),this.v(d,c)):null};l.Ea=function(a){return ap(a)?this.vf(a):dp(a)?this.qe(a):ia(a)?(a=np(a),this.vf(a)):null};l.vf=function(){return this.defaultDataProjection};l.qe=function(){return this.defaultDataProjection};l.qd=function(a,c){var d=this.A(a,c);return Mo(d)}; 819l.wb=function(a,c){var d=this.a(a,c);return Mo(d)};l.Mc=function(a,c){var d=this.C(a,c);return Mo(d)};function hs(a){a=m(a)?a:{};this.featureType=a.featureType;this.featureNS=a.featureNS;this.srsName=a.srsName;this.schemaLocation="";this.b={};this.b["http://www.opengis.net/gml"]={featureMember:qp(hs.prototype.ld),featureMembers:qp(hs.prototype.ld)};this.defaultDataProjection=null}w(hs,es);l=hs.prototype; 820l.ld=function(a,c){var d=Yo(a),e;if("FeatureCollection"==d)"http://www.opengis.net/wfs"===a.namespaceURI?e=V([],this.b,a,c,this):e=V(null,this.b,a,c,this);else if("featureMembers"==d||"featureMember"==d){var f=c[0],g=f.featureType;e=f.featureNS;var h,k;if(!m(g)&&null!=a.childNodes){g=[];e={};h=0;for(k=a.childNodes.length;h<k;++h){var n=a.childNodes[h];if(1===n.nodeType){var p=n.nodeName.split(":").pop();if(-1===Ra(g,p)){var q;vb(e,n.namespaceURI)?q=wb(e,function(a){return a===n.namespaceURI}):(q= 821"p"+rb(e),e[q]=n.namespaceURI);g.push(q+":"+p)}}}f.featureType=g;f.featureNS=e}ia(e)&&(h=e,e={},e.p0=h);var f={},g=ga(g)?g:[g],r;for(r in e){p={};h=0;for(k=g.length;h<k;++h)(-1===g[h].indexOf(":")?"p0":g[h].split(":")[0])===r&&(p[g[h].split(":").pop()]="featureMembers"==d?pp(this.qf,this):qp(this.qf,this));f[e[r]]=p}e=V([],f,a,c)}m(e)||(e=[]);return e};l.ne=function(a,c){var d=c[0];d.srsName=a.firstElementChild.getAttribute("srsName");var e=V(null,this.Ef,a,c,this);if(null!=e)return Qr(e,!1,d)}; 822l.qf=function(a,c){var d,e=a.getAttribute("fid")||hp(a,"http://www.opengis.net/gml","id"),f={},g;for(d=a.firstElementChild;null!==d;d=d.nextElementSibling){var h=Yo(d);if(0===d.childNodes.length||1===d.childNodes.length&&(3===d.firstChild.nodeType||4===d.firstChild.nodeType)){var k=Uo(d,!1);/^[\s\xa0]*$/.test(k)&&(k=void 0);f[h]=k}else"boundedBy"!==h&&(g=h),f[h]=this.ne(d,c)}d=new zn(f);m(g)&&d.Ic(g);e&&d.Nb(e);return d}; 823l.Zg=function(a,c){var d=this.me(a,c);if(null!=d){var e=new vf(null);
823wf(e,"XYZ",d);return e}};l.Xg=function(a,c){var d=V([],this.Oh,a,c,this);if(m(d))return new jn(d)};l.Wg=function(a,c){var d=V([],this.Nh,a,c,this);if(m(d)){var e=new O(null);hn(e,d);return e}};l.Yg=function(a,c){var d=V([],this.Ph,a,c,this);if(m(d)){var e=new R(null);ln(e,d);return e}};l.Og=function(a,c){yp(this.Sh,a,c,this)};l.ig=function(a,c){yp(this.Lh,a,c,this)};l.Pg=function(a,c){yp(this.Th,a,c,this)}; 824l.oe=function(a,c){var d=this.me(a,c);if(null!=d){var e=new N(null);fn(e,"XYZ",d);return e}};l.hn=function(a,c){var d=V(null,this.sd,a,c,this);if(null!=d)return d};l.Vg=function(a,c){var d=this.me(a,c);if(m(d)){var e=new tf(null);uf(e,"XYZ",d);return e}};l.pe=function(a,c){var d=V([null],this.Ae,a,c,this);if(m(d)&&null!==d[0]){var e=new E(null),f=d[0],g=[f.length],h,k;h=1;for(k=d.length;h<k;++h)cb(f,d[h]),g.push(f.length);If(e,"XYZ",f,g);return e}};l.me=function(a,c){return V(null,this.sd,a,c,this)}; 825l.Oh=Object({"http://www.opengis.net/gml":{pointMember:pp(hs.prototype.Og),pointMembers:pp(hs.prototype.Og)}});l.Nh=Object({"http://www.opengis.net/gml":{lineStringMember:pp(hs.prototype.ig),lineStringMembers:pp(hs.prototype.ig)}});l.Ph=Object({"http://www.opengis.net/gml":{polygonMember:pp(hs.prototype.Pg),polygonMembers:pp(hs.prototype.Pg)}});l.Sh=Object({"http://www.opengis.net/gml":{Point:pp(hs.prototype.me)}});l.Lh=Object({"http://www.opengis.net/gml":{LineString:pp(hs.prototype.oe)}}); 826l.Th=Object({"http://www.opengis.net/gml":{Polygon:pp(hs.prototype.pe)}});l.td=Object({"http://www.opengis.net/gml":{LinearRing:qp(hs.prototype.hn)}});l.Mb=function(a,c){var d={featureType:this.featureType,featureNS:this.featureNS};m(c)&&Gb(d,Or(this,a,c));return this.ld(a,[d])};l.qe=function(a){return Ae(m(this.u)?this.u:a.firstElementChild.getAttribute("srsName"))};function is(a){a=Uo(a,!1);return js(a)}function js(a){if(a=/^\s*(true|1)|(false|0)\s*$/.exec(a))return m(a[1])||!1}function ks(a){a=Uo(a,!1);if(a=/^\s*(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?))\s*$/.exec(a)){var c=Date.UTC(parseInt(a[1],10),parseInt(a[2],10)-1,parseInt(a[3],10),parseInt(a[4],10),parseInt(a[5],10),parseInt(a[6],10))/1E3;if("Z"!=a[7]){var d="-"==a[8]?-1:1,c=c+60*d*parseInt(a[9],10);m(a[10])&&(c+=3600*d*parseInt(a[10],10))}return c}} 827function ls(a){a=Uo(a,!1);return ms(a)}function ms(a){if(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))return parseFloat(a[1])}function ns(a){a=Uo(a,!1);return os(a)}function os(a){if(a=/^\s*(\d+)\s*$/.exec(a))return parseInt(a[1],10)}function Y(a){a=Uo(a,!1);return Ba(a)}function ps(a,c){qs(a,c?"1":"0")}function rs(a,c){a.appendChild(Qo.createTextNode(c.toPrecision()))}function ss(a,c){a.appendChild(Qo.createTextNode(c.toString()))}function qs(a,c){a.appendChild(Qo.createTextNode(c))};function ts(a){a=m(a)?a:{};hs.call(this,a);this.b["http://www.opengis.net/gml"].featureMember=pp(hs.prototype.ld);this.schemaLocation=m(a.schemaLocation)?a.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}w(ts,hs);l=ts.prototype; 828l.Tg=function(a,c){var d=Uo(a,!1).replace(/^\s*|\s*$/g,""),e=c[0].srsName,f=a.parentNode.getAttribute("srsDimension"),g="enu";null===e||(g=De(Ae(e)));d=d.split(/[\s,]+/);e=2;fa(a.getAttribute("srsDimension"))?fa(a.getAttribute("dimension"))?null===f||(e=os(f)):e=os(a.getAttribute("dimension")):e=os(a.getAttribute("srsDimension"));for(var h,k,n=[],p=0,q=d.length;p<q;p+=e)f=parseFloat(d[p]),h=parseFloat(d[p+1]),k=3===e?parseFloat(d[p+2]):0,"en"===g.substr(0,2)?n.push(f,h,k):n.push(h,f,k);return n}; 829l.fn=function(a,c){var d=V([null],this.Hh,a,c,this);return Od(d[1][0],d[1][1],d[1][3],d[1][4])};l.dk=function(a,c){var d=V(void 0,this.td,a,c,this);m(d)&&c[c.length-1].push(d)};l.Rm=function(a,c){var d=V(void 0,this.td,a,c,this);m(d)&&(c[c.length-1][0]=d)};l.sd=Object({"http://www.opengis.net/gml":{coordinates:qp(ts.prototype.Tg)}});l.Ae=Object({"http://www.opengis.net/gml":{innerBoundaryIs:ts.prototype.dk,outerBoundaryIs:ts.prototype.Rm}});l.Hh=Object({"http://www.opengis.net/gml":{coordinates:pp(ts.prototype.Tg)}}); 830l.Ef=Object({"http://www.opengis.net/gml":{Point:qp(hs.prototype.Zg),MultiPoint:qp(hs.prototype.Xg),LineString:qp(hs.prototype.oe),MultiLineString:qp(hs.prototype.Wg),LinearRing:qp(hs.prototype.Vg),Polygon:qp(hs.prototype.pe),MultiPolygon:qp(hs.prototype.Yg),Box:qp(ts.prototype.fn)}});function us(a){a=m(a)?a:{};hs.call(this,a);this.l=m(a.surface)?a.surface:!1;this.i=m(a.curve)?a.curve:!1;this.g=m(a.multiCurve)?a.multiCurve:!0;this.j=m(a.multiSurface)?a.multiSurface:!0;this.schemaLocation=m(a.schemaLocation)?a.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}w(us,hs);l=us.prototype;l.ln=function(a,c){var d=V([],this.Mh,a,c,this);if(m(d)){var e=new O(null);hn(e,d);return e}}; 831l.mn=function(a,c){var d=V([],this.Qh,a,c,this);if(m(d)){var e=new R(null);ln(e,d);return e}};l.Rf=function(a,c){yp(this.Ih,a,c,this)};l.sh=function(a,c){yp(this.Xh,a,c,this)};l.qn=function(a,c){return V([null],this.Rh,a,c,this)};l.sn=function(a,c){return V([null],this.Wh,a,c,this)};l.rn=function(a,c){return V([null],this.Ae,a,c,this)};l.kn=function(a,c){return V([null],this.sd,a,c,this)};l.fk=function(a,c){var d=V(void 0,this.td,a,c,this);m(d)&&c[c.length-1].push(d)}; 832l.yi=function(a,c){var d=V(void 0,this.td,a,c,this);m(d)&&(c[c.length-1][0]=d)};l.ah=function(a,c){var d=V([null],this.Yh,a,c,this);if(m(d)&&null!==d[0]){var e=new E(null),f=d[0],g=[f.length],h,k;h=1;for(k=d.length;h<k;++h)cb(f,d[h]),g.push(f.length);If(e,"XYZ",f,g);return e}};l.Qg=function(a,c){var d=V([null],this.Jh,a,c,this);if(m(d)){var e=new N(null);fn(e,"XYZ",d);return e}};l.gn=function(a,c){var d=V([null],this.Kh,a,c,this);return Od(d[1][0],d[1][1],d[2][0],d[2][1])}; 833l.jn=function(a,c){for(var d=Uo(a,!1),e=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/,f=[],g;g=e.exec(d);)f.push(parseFloat(g[1])),d=d.substr(g[0].length);if(""===d){d=c[0].srsName;e="enu";null===d||(e=De(Ae(d)));if("neu"===e)for(d=0,e=f.length;d<e;d+=3)g=f[d],f[d]=f[d+1],f[d+1]=g;d=f.length;2==d&&f.push(0);return 0===d?void 0:f}}; 834l.tf=function(a,c){var d=Uo(a,!1).replace(/^\s*|\s*$/g,""),e=c[0].srsName,f=a.parentNode.getAttribute("srsDimension"),g="enu";null===e||(g=De(Ae(e)));d=d.split(/\s+/);e=2;fa(a.getAttribute("srsDimension"))?fa(a.getAttribute("dimension"))?null===f||(e=os(f)):e=os(a.getAttribute("dimension")):e=os(a.getAttribute("srsDimension"));for(var h,k,n=[],p=0,q=d.length;p<q;p+=e)f=parseFloat(d[p]),h=parseFloat(d[p+1]),k=3===e?parseFloat(d[p+2]):0,"en"===g.substr(0,2)?n.push(f,h,k):n.push(h,f,k);return n}; 835l.sd=Object({"http://www.opengis.net/gml":{pos:qp(us.prototype.jn),posList:qp(us.prototype.tf)}});l.Ae=Object({"http://www.opengis.net/gml":{interior:us.prototype.fk,exterior:us.prototype.yi}}); 836l.Ef=Object({"http://www.opengis.net/gml":{Point:qp(hs.prototype.Zg),MultiPoint:qp(hs.prototype.Xg),LineString:qp(hs.prototype.oe),MultiLineString:qp(hs.prototype.Wg),LinearRing:qp(hs.prototype.Vg),Polygon:qp(hs.prototype.pe),MultiPolygon:qp(hs.prototype.Yg),Surface:qp(us.prototype.ah),MultiSurface:qp(us.prototype.mn),Curve:qp(us.prototype.Qg),MultiCurve:qp(us.prototype.ln),Envelope:qp(us.prototype.gn)}});l.Mh=Object({"http://www.opengis.net/gml":{curveMember:pp(us.prototype.Rf),curveMembers:pp(us.prototype.Rf)}}); 837l.Qh=Object({"http://www.opengis.net/gml":{surfaceMember:pp(us.prototype.sh),surfaceMembers:pp(us.prototype.sh)}});l.Ih=Object({"http://www.opengis.net/gml":{LineString:pp(hs.prototype.oe),Curve:pp(us.prototype.Qg)}});l.Xh=Object({"http://www.opengis.net/gml":{Polygon:pp(hs.prototype.pe),Surface:pp(us.prototype.ah)}});l.Yh=Object({"http://www.opengis.net/gml":{patches:qp(us.prototype.qn)}});l.Jh=Object({"http://www.opengis.net/gml":{segments:qp(us.prototype.sn)}}); 838l.Kh=Object({"http://www.opengis.net/gml":{lowerCorner:pp(us.prototype.tf),upperCorner:pp(us.prototype.tf)}});l.Rh=Object({"http://www.opengis.net/gml":{PolygonPatch:qp(us.prototype.rn)}});l.Wh=Object({"http://www.opengis.net/gml":{LineStringSegment:qp(us.prototype.kn)}});function vs(a,c,d){d=d[d.length-1].srsName;c=c.W();for(var e=c.length,f=Array(e),g,h=0;h<e;++h){g=c[h];var k=h,n="enu";
838null!=d&&(n=De(Ae(d)));f[k]="en"===n.substr(0,2)?g[0]+" "+g[1]:g[1]+" "+g[0]}qs(a,f.join(" "))} 839l.Dh=function(a,c,d){var e=d[d.length-1].srsName;null!=e&&a.setAttribute("srsName",e);e=To(a.namespaceURI,"pos");a.appendChild(e);d=d[d.length-1].srsName;a="enu";null!=d&&(a=De(Ae(d)));c=c.W();qs(e,"en"===a.substr(0,2)?c[0]+" "+c[1]:c[1]+" "+c[0])};var ws={"http://www.opengis.net/gml":{lowerCorner:U(qs),upperCorner:U(qs)}};l=us.prototype; 840l.io=function(a,c,d){var e=d[d.length-1].srsName;m(e)&&a.setAttribute("srsName",e);zp({node:a},ws,wp,[c[0]+" "+c[1],c[2]+" "+c[3]],d,["lowerCorner","upperCorner"],this)};l.Ah=function(a,c,d){var e=d[d.length-1].srsName;null!=e&&a.setAttribute("srsName",e);e=To(a.namespaceURI,"posList");a.appendChild(e);vs(e,c,d)};l.Vh=function(a,c){var d=c[c.length-1],e=d.node,f=d.exteriorWritten;m(f)||(d.exteriorWritten=!0);return To(e.namespaceURI,m(f)?"interior":"exterior")}; 841l.ze=function(a,c,d){var e=d[d.length-1].srsName;"PolygonPatch"!==a.nodeName&&null!=e&&a.setAttribute("srsName",e);"Polygon"===a.nodeName||"PolygonPatch"===a.nodeName?(c=c.Hd(),zp({node:a,srsName:e},xs,this.Vh,c,d,void 0,this)):"Surface"===a.nodeName&&(e=To(a.namespaceURI,"patches"),a.appendChild(e),a=To(e.namespaceURI,"PolygonPatch"),e.appendChild(a),this.ze(a,c,d))}; 842l.ue=function(a,c,d){var e=d[d.length-1].srsName;"LineStringSegment"!==a.nodeName&&null!=e&&a.setAttribute("srsName",e);"LineString"===a.nodeName||"LineStringSegment"===a.nodeName?(e=To(a.namespaceURI,"posList"),a.appendChild(e),vs(e,c,d)):"Curve"===a.nodeName&&(e=To(a.namespaceURI,"segments"),a.appendChild(e),a=To(e.namespaceURI,"LineStringSegment"),e.appendChild(a),this.ue(a,c,d))}; 843l.Ch=function(a,c,d){var e=d[d.length-1],f=e.srsName,e=e.surface;null!=f&&a.setAttribute("srsName",f);c=c.Jd();zp({node:a,srsName:f,surface:e},ys,this.f,c,d,void 0,this)};l.jo=function(a,c,d){var e=d[d.length-1].srsName;null!=e&&a.setAttribute("srsName",e);c=c.ae();zp({node:a,srsName:e},zs,up("pointMember"),c,d,void 0,this)};l.Bh=function(a,c,d){var e=d[d.length-1],f=e.srsName,e=e.curve;null!=f&&a.setAttribute("srsName",f);c=c.bd();zp({node:a,srsName:f,curve:e},As,this.f,c,d,void 0,this)}; 844l.Eh=function(a,c,d){var e=To(a.namespaceURI,"LinearRing");a.appendChild(e);this.Ah(e,c,d)};l.Fh=function(a,c,d){var e=this.c(c,d);m(e)&&(a.appendChild(e),this.ze(e,c,d))};l.ko=function(a,c,d){var e=To(a.namespaceURI,"Point");a.appendChild(e);this.Dh(e,c,d)};l.zh=function(a,c,d){var e=this.c(c,d);m(e)&&(a.appendChild(e),this.ue(e,c,d))}; 845l.xe=function(a,c,d){var e=d[d.length-1],f=Cb(e);f.node=a;var g;ga(c)?m(e.dataProjection)?g=We(c,e.featureProjection,e.dataProjection):g=c:g=Qr(c,!0,e);zp(f,Bs,this.c,[g],d,void 0,this)}; 846l.xh=function(a,c,d){var e=c.ga;m(e)&&a.setAttribute("fid",e);var e=d[d.length-1],f=e.featureNS,g=c.a;m(e.fc)||(e.fc={},e.fc[f]={});var h=c.P();c=[];var k=[],n;for(n in h){var p=h[n];null!==p&&(c.push(n),k.push(p),n==g?n in e.fc[f]||(e.fc[f][n]=U(this.xe,this)):n in e.fc[f]||(e.fc[f][n]=U(qs)))}n=Cb(e);n.node=a;zp(n,e.fc,up(void 0,f),k,d,c)}; 847var ys={"http://www.opengis.net/gml":{surfaceMember:U(us.prototype.Fh),polygonMember:U(us.prototype.Fh)}},zs={"http://www.opengis.net/gml":{pointMember:U(us.prototype.ko)}},As={"http://www.opengis.net/gml":{lineStringMember:U(us.prototype.zh),curveMember:U(us.prototype.zh)}},xs={"http://www.opengis.net/gml":{exterior:U(us.prototype.Eh),interior:U(us.prototype.Eh)}},Bs={"http://www.opengis.net/gml":{Curve:U(us.prototype.ue),MultiCurve:U(us.prototype.Bh),Point:U(us.prototype.Dh),MultiPoint:U(us.prototype.jo), 848LineString:U(us.prototype.ue),MultiLineString:U(us.prototype.Bh),LinearRing:U(us.prototype.Ah),Polygon:U(us.prototype.ze),MultiPolygon:U(us.prototype.Ch),Surface:U(us.prototype.ze),MultiSurface:U(us.prototype.Ch),Envelope:U(us.prototype.io)}},Cs={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};us.prototype.f=function(a,c){return To("http://www.opengis.net/gml",Cs[c[c.length-1].node.nodeName])}; 849us.prototype.c=function(a,c){var d=c[c.length-1],e=d.multiSurface,f=d.surface,g=d.curve,d=d.multiCurve,h;ga(a)?h="Envelope":(h=a.U(),"MultiPolygon"===h&&!0===e?h="MultiSurface":"Polygon"===h&&!0===f?h="Surface":"LineString"===h&&!0===g?h="Curve":"MultiLineString"===h&&!0===d&&(h="MultiCurve"));return To("http://www.opengis.net/gml",h)}; 850us.prototype.C=function(a,c){c=Pr(this,c);var d=To("http://www.opengis.net/gml","geom"),e={node:d,srsName:this.srsName,curve:this.i,surface:this.l,multiSurface:this.j,multiCurve:this.g};m(c)&&Gb(e,c);this.xe(d,a,[e]);return d}; 851us.prototype.a=function(a,c){c=Pr(this,c);var d=To("http://www.opengis.net/gml","featureMembers");mp(d,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);var e={srsName:this.srsName,curve:this.i,surface:this.l,multiSurface:this.j,multiCurve:this.g,featureNS:this.featureNS,featureType:this.featureType};m(c)&&Gb(e,c);var e=[e],f=e[e.length-1],g=f.featureType,h=f.featureNS,k={};k[h]={};k[h][g]=U(this.xh,this);f=Cb(f);
851f.node=d;zp(f,k,up(g,h),a,e);return d};function Ds(a){a=m(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ae("EPSG:4326");this.b=a.readExtensions}w(Ds,es);var Es=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function Fs(a,c,d){a.push(parseFloat(c.getAttribute("lon")),parseFloat(c.getAttribute("lat")));"ele"in d?(a.push(d.ele),zb(d,"ele")):a.push(0);"time"in d?(a.push(d.time),zb(d,"time")):a.push(0);return a} 852function Gs(a,c){var d=c[c.length-1],e=a.getAttribute("href");null===e||(d.link=e);yp(Hs,a,c)}function Is(a,c){c[c.length-1].extensionsNode_=a}function Js(a,c){var d=c[0],e=V({flatCoordinates:[]},Ks,a,c);if(m(e)){var f=e.flatCoordinates;zb(e,"flatCoordinates");var g=new N(null);fn(g,"XYZM",f);Qr(g,!1,d);d=new zn(g);d.I(e);return d}} 853function Ls(a,c){var d=c[0],e=V({flatCoordinates:[],ends:[]},Ms,a,c);if(m(e)){var f=e.flatCoordinates;zb(e,"flatCoordinates");var g=e.ends;zb(e,"ends");var h=new O(null);gn(h,"XYZM",f,g);Qr(h,!1,d);d=new zn(h);d.I(e);return d}}function Ns(a,c){var d=c[0],e=V({},Os,a,c);if(m(e)){var f=Fs([],a,e),f=new vf(f,"XYZM");Qr(f,!1,d);d=new zn(f);d.I(e);return d}} 854var Ps={rte:Js,trk:Ls,wpt:Ns},Qs=T(Es,{rte:pp(Js),trk:pp(Ls),wpt:pp(Ns)}),Hs=T(Es,{text:S(Y,"linkText"),type:S(Y,"linkType")}),Ks=T(Es,{name:S(Y),cmt:S(Y),desc:S(Y),src:S(Y),link:Gs,number:S(ns),extensions:Is,type:S(Y),rtept:function(a,c){var d=V({},Rs,a,c);m(d)&&Fs(c[c.length-1].flatCoordinates,a,d)}}),Rs=T(Es,{ele:S(ls),time:S(ks)}),Ms=T(Es,{name:S(Y),cmt:S(Y),desc:S(Y),src:S(Y),link:Gs,number:S(ns),type:S(Y),extensions:Is,trkseg:function(a,c){var d=c[c.length-1];yp(Ss,a,c);d.ends.push(d.flatCoordinates.length)}}), 855Ss=T(Es,{trkpt:function(a,c){var d=V({},Ts,a,c);m(d)&&Fs(c[c.length-1].flatCoordinates,a,d)}}),Ts=T(Es,{ele:S(ls),time:S(ks)}),Os=T(Es,{ele:S(ls),time:S(ks),magvar:S(ls),geoidheight:S(ls),name:S(Y),cmt:S(Y),desc:S(Y),src:S(Y),link:Gs,sym:S(Y),type:S(Y),fix:S(Y),sat:S(ns),hdop:S(ls),vdop:S(ls),pdop:S(ls),ageofdgpsdata:S(ls),dgpsid:S(ns),extensions:Is}); 856function Us(a,c){null===c&&(c=[]);for(var d=0,e=c.length;d<e;++d){var f=c[d];if(m(a.b)){var g=f.get("extensionsNode_")||null;a.b(f,g)}f.set("extensionsNode_",void 0)}}Ds.prototype.Sg=function(a,c){if(!Ya(Es,a.namespaceURI))return null;var d=Ps[a.localName];if(!m(d))return null;d=d(a,[Or(this,a,c)]);if(!m(d))return null;Us(this,[d]);return d};Ds.prototype.Mb=function(a,c){if(!Ya(Es,a.namespaceURI))return[];if("gpx"==a.localName){var d=V([],Qs,a,[Or(this,a,c)]);if(m(d))return Us(this,d),d}return[]}; 857function Vs(a,c,d){a.setAttribute("href",c);c=d[d.length-1].properties;zp({node:a},Ws,wp,[c.linkText,c.linkType],d,Xs)}function Ys(a,c,d){var e=d[d.length-1],f=e.node.namespaceURI,g=e.properties;mp(a,null,"lat",c[1]);mp(a,null,"lon",c[0]);switch(e.geometryLayout){case "XYZM":0!==c[3]&&(g.time=c[3]);case "XYZ":0!==c[2]&&(g.ele=c[2]);break;case "XYM":0!==c[2]&&(g.time=c[2])}c=Zs[f];e=xp(g,c);zp({node:a,properties:g},$s,wp,e,d,c)} 858var Xs=["text","type"],Ws=sp(Es,{text:U(qs),type:U(qs)}),at=sp(Es,"name cmt desc src link number type rtept".split(" ")),bt=sp(Es,{name:U(qs),cmt:U(qs),desc:U(qs),src:U(qs),link:U(Vs),number:U(ss),type:U(qs),rtept:tp(U(Ys))}),ct=sp(Es,"name cmt desc src link number type trkseg".split(" ")),ft=sp(Es,{name:U(qs),cmt:U(qs),desc:U(qs),src:U(qs),link:U(Vs),number:U(ss),type:U(qs),trkseg:tp(U(function(a,c,d){zp({node:a,geometryLayout:c.a,properties:{}},dt,et,c.W(),d)}))}),et=up("trkpt"),dt=sp(Es,{trkpt:U(Ys)}), 859Zs=sp(Es,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),$s=sp(Es,{ele:U(rs),time:U(function(a,c){var d=new Date(1E3*c),d=d.getUTCFullYear()+"-"+Ma(d.getUTCMonth()+1)+"-"+Ma(d.getUTCDate())+"T"+Ma(d.getUTCHours())+":"+Ma(d.getUTCMinutes())+":"+Ma(d.getUTCSeconds())+"Z";a.appendChild(Qo.createTextNode(d))}),magvar:U(rs),geoidheight:U(rs),name:U(qs),cmt:U(qs),desc:U(qs),src:U(qs),link:U(Vs),sym:U(qs),type:U(qs),fix:U(qs),sat:U(ss), 860hdop:U(rs),vdop:U(rs),pdop:U(rs),ageofdgpsdata:U(rs),dgpsid:U(ss)}),gt={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function ht(a,c){var d=a.X();if(m(d))return To(c[c.length-1].node.namespaceURI,gt[d.U()])} 861var it=sp(Es,{rte:U(function(a,c,d){var e=d[0],f=c.P();a={node:a,properties:f};c=c.X();m(c)&&(c=Qr(c,!0,e),a.geometryLayout=c.a,f.rtept=c.W());e=at[d[d.length-1].node.namespaceURI];f=xp(f,e);zp(a,bt,wp,f,d,e)}),trk:U(function(a,c,d){var e=d[0],f=c.P();a={node:a,properties:f};c=c.X();m(c)&&(c=Qr(c,!0,e),f.trkseg=c.bd());e=ct[d[d.length-1].node.namespaceURI];f=xp(f,e);zp(a,ft,wp,f,d,e)}),wpt:U(function(a,c,d){var e=d[0],f=d[d.length-1];f.properties=c.P();c=c.X();m(c)&&(c=Qr(c,!0,e),f.geometryLayout= 862c.a,Ys(a,c.W(),d))})});Ds.prototype.a=function(a,c){c=Pr(this,c);var d=To("http://www.topografix.com/GPX/1/1","gpx");zp({node:d},it,ht,a,[c]);return d};function jt(a){a=kt(a);return Ua(a,function(a){return a.c.substring(a.a,a.b)})}function lt(a,c,d){this.c=a;this.a=c;this.b=d}function kt(a){for(var c=RegExp("\r\n|\r|\n","g"),d=0,e,f=[];e=c.exec(a);)d=new lt(a,d,e.index),f.push(d),d=c.lastIndex;d<a.length&&(d=new lt(a,d,a.length),f.push(d));return f};function mt(){this.defaultDataProjection=null}w(mt,Nr);l=mt.prototype;l.U=function(){return"text"};l.vb=function(a,c){return this.kd(ia(a)?a:"",Pr(this,c))};l.qa=function(a,c){return this.sf(ia(a)?a:"",Pr(this,c))};l.Gc=function(a,c){return this.md(ia(a)?a:"",Pr(this,c))};l.Ea=function(){return this.defaultDataProjection};l.qd=function(a,c){return this.ve(a,Pr(this,c))};l.wb=function(a,c){return this.yh(a,Pr(this,c))};l.Mc=function(a,c){return this.rd(a,Pr(this,c))};function nt(a){a=m(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ae("EPSG:4326");this.b=m(a.altitudeMode)?a.altitudeMode:"none"}w(nt,mt);var ot=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5}
862)/,pt=/^H.([A-Z]{3}).*?:(.*)/,qt=/^HFDTE(\d{2})(\d{2})(\d{2})/; 863nt.prototype.kd=function(a,c){var d=this.b,e=jt(a),f={},g=[],h=2E3,k=0,n=1,p,q;p=0;for(q=e.length;p<q;++p){var r=e[p],t;if("B"==r.charAt(0)){if(t=ot.exec(r)){var r=parseInt(t[1],10),v=parseInt(t[2],10),B=parseInt(t[3],10),z=parseInt(t[4],10)+parseInt(t[5],10)/6E4;"S"==t[6]&&(z=-z);var D=parseInt(t[7],10)+parseInt(t[8],10)/6E4;"W"==t[9]&&(D=-D);g.push(D,z);"none"!=d&&g.push("gps"==d?parseInt(t[11],10):"barometric"==d?parseInt(t[12],10):0);g.push(Date.UTC(h,k,n,r,v,B)/1E3)}}else if("H"==r.charAt(0))if(t= 864qt.exec(r))n=parseInt(t[1],10),k=parseInt(t[2],10)-1,h=2E3+parseInt(t[3],10);else if(t=pt.exec(r))f[t[1]]=Ba(t[2]),qt.exec(r)}if(0===g.length)return null;e=new N(null);fn(e,"none"==d?"XYM":"XYZM",g);d=new zn(Qr(e,!1,c));d.I(f);return d};nt.prototype.sf=function(a,c){var d=this.kd(a,c);return null===d?[]:[d]};function rt(a,c){this.a=this.j=this.f="";this.l=null;this.i=this.b="";this.g=!1;var d;a instanceof rt?(this.g=m(c)?c:a.g,st(this,a.f),this.j=a.j,this.a=a.a,tt(this,a.l),this.b=a.b,ut(this,a.c.clone()),this.i=a.i):a&&(d=qo(String(a)))?(this.g=!!c,st(this,d[1]||"",!0),this.j=vt(d[2]||""),this.a=vt(d[3]||"",!0),tt(this,d[4]),this.b=vt(d[5]||"",!0),ut(this,d[6]||"",!0),this.i=vt(d[7]||"")):(this.g=!!c,this.c=new wt(null,0,this.g))} 865rt.prototype.toString=function(){var a=[],c=this.f;c&&a.push(xt(c,yt,!0),":");if(c=this.a){a.push("//");var d=this.j;d&&a.push(xt(d,yt,!0),"@");a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));c=this.l;null!=c&&a.push(":",String(c))}if(c=this.b)this.a&&"/"!=c.charAt(0)&&a.push("/"),a.push(xt(c,"/"==c.charAt(0)?zt:At,!0));(c=this.c.toString())&&a.push("?",c);(c=this.i)&&a.push("#",xt(c,Bt));return a.join("")};rt.prototype.clone=function(){return new rt(this)}; 866function st(a,c,d){a.f=d?vt(c,!0):c;a.f&&(a.f=a.f.replace(/:$/,""))}function tt(a,c){if(c){c=Number(c);if(isNaN(c)||0>c)throw Error("Bad port number "+c);a.l=c}else a.l=null}function ut(a,c,d){c instanceof wt?(a.c=c,Ct(a.c,a.g)):(d||(c=xt(c,Dt)),a.c=new wt(c,0,a.g))}function Et(a){return a instanceof rt?a.clone():new rt(a,void 0)} 867function Ft(a,c){a instanceof rt||(a=Et(a));c instanceof rt||(c=Et(c));var d=a,e=c,f=d.clone(),g=!!e.f;g?st(f,e.f):g=!!e.j;g?f.j=e.j:g=!!e.a;g?f.a=e.a:g=null!=e.l;var h=e.b;if(g)tt(f,e.l);else if(g=!!e.b)if("/"!=h.charAt(0)&&(d.a&&!d.b?h="/"+h:(d=f.b.lastIndexOf("/"),-1!=d&&(h=f.b.substr(0,d+1)+h))),d=h,".."==d||"."==d)h="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){for(var h=0==d.lastIndexOf("/",0),d=d.split("/"),k=[],n=0;n<d.length;){var p=d[n++];"."==p?h&&n==d.length&&k.push(""):".."==p? 868((1<k.length||1==k.length&&""!=k[0])&&k.pop(),h&&n==d.length&&k.push("")):(k.push(p),h=!0)}h=k.join("/")}else h=d;g?f.b=h:g=""!==e.c.toString();g?ut(f,vt(e.c.toString())):g=!!e.i;g&&(f.i=e.i);return f}function vt(a,c){return a?c?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function xt(a,c,d){return ia(a)?(a=encodeURI(a).replace(c,Gt),d&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Gt(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)} 869var yt=/[#\/\?@]/g,At=/[\#\?:]/g,zt=/[\#\?]/g,Dt=/[\#\?@]/g,Bt=/#/g;function wt(a,c,d){this.a=this.b=null;this.c=a||null;this.f=!!d}function Ht(a){a.b||(a.b=new vi,a.a=0,a.c&&so(a.c,function(c,d){a.add(decodeURIComponent(c.replace(/\+/g," ")),d)}))}l=wt.prototype;l.Sb=function(){Ht(this);return this.a};l.add=function(a,c){Ht(this);this.c=null;a=It(this,a);var d=this.b.get(a);d||this.b.set(a,d=[]);d.push(c);this.a++;return this}; 870l.remove=function(a){Ht(this);a=It(this,a);return xi(this.b.a,a)?(this.c=null,this.a-=this.b.get(a).length,this.b.remove(a)):!1};l.clear=function(){this.b=this.c=null;this.a=0};l.va=function(){Ht(this);return 0==this.a};function Jt(a,c){Ht(a);c=It(a,c);return xi(a.b.a,c)}l.O=function(){Ht(this);for(var a=this.b.Wb(),c=this.b.O(),d=[],e=0;e<c.length;e++)for(var f=a[e],g=0;g<f.length;g++)d.push(c[e]);return d}; 871l.Wb=function(a){Ht(this);var c=[];if(ia(a))Jt(this,a)&&(c=ab(c,this.b.get(It(this,a))));else{a=this.b.Wb();for(var d=0;d<a.length;d++)c=ab(c,a[d])}return c};l.set=function(a,c){Ht(this);this.c=null;a=It(this,a);Jt(this,a)&&(this.a-=this.b.get(a).length);this.b.set(a,[c]);this.a++;return this};l.get=function(a,c){var d=a?this.Wb(a):[];return 0<d.length?String(d[0]):c};function Kt(a,c,d){a.remove(c);0<d.length&&(a.c=null,a.b.set(It(a,c),bb(d)),a.a+=d.length)} 872l.toString=function(){if(this.c)return this.c;if(!this.b)return"";for(var a=[],c=this.b.O(),d=0;d<c.length;d++)for(var e=c[d],f=encodeURIComponent(String(e)),e=this.Wb(e),g=0;g<e.length;g++){var h=f;""!==e[g]&&(h+="="+encodeURIComponent(String(e[g])));a.push(h)}return this.c=a.join("&")};l.clone=function(){var a=new wt;a.c=this.c;this.b&&(a.b=this.b.clone(),a.a=this.a);return a};function It(a,c){var d=String(c);a.f&&(d=d.toLowerCase());return d} 873function Ct(a,c){c&&!a.f&&(Ht(a),a.c=null,a.b.forEach(function(a,c){var f=c.toLowerCase();c!=f&&(this.remove(c),Kt(this,f,a))},a));a.f=c};function Lt(a){a=m(a)?a:{};this.f=a.font;this.i=a.rotation;this.a=a.scale;this.c=a.text;this.j=a.textAlign;this.l=a.textBaseline;this.b=m(a.fill)?a.fill:null;this.g=m(a.stroke)?a.stroke:null;this.C=m(a.offsetX)?a.offsetX:0;this.v=m(a.offsetY)?a.offsetY:0}l=Lt.prototype;l.Oi=function(){return this.f};l.dj=function(){return this.C};l.ej=function(){return this.v};l.Bm=function(){return this.b};l.Cm=function(){return this.i};l.Dm=function(){return this.a};l.Em=function(){return this.g};l.Fm=function(){return this.c}; 874l.oj=function(){return this.j};l.pj=function(){return this.l};l.Kn=function(a){this.f=a};
874l.Jn=function(a){this.b=a};l.Gm=function(a){this.i=a};l.Hm=function(a){this.a=a};l.Qn=function(a){this.g=a};l.Rn=function(a){this.c=a};l.Sn=function(a){this.j=a};l.Tn=function(a){this.l=a};function Mt(a){a=m(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ae("EPSG:4326");this.c=m(a.defaultStyle)?a.defaultStyle:Nt;this.f=m(a.extractStyles)?a.extractStyles:!0;this.b={}}w(Mt,es); 875var Ot=["http://www.google.com/kml/ext/2.2"],Pt=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],Qt=[255,255,255,1],Rt=new Gl({color:Qt}),St=[20,2],Tt=[64,64],Ut=new Bk({anchor:St,anchorOrigin:"bottom-left",anchorXUnits:"pixels",anchorYUnits:"pixels",crossOrigin:"anonymous",rotation:0,scale:.5,size:Tt,src:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),Vt=new Cl({color:Qt,width:1}),Wt=new Lt({font:"normal 16px Helvetica", 876fill:Rt,stroke:Vt,scale:1}),Nt=[new Il({fill:Rt,image:Ut,text:Wt,stroke:Vt,zIndex:0})],Xt={fraction:"fraction",pixels:"pixels"};function Yt(a,c,d,e){return function(){return m(a)?a:m(c)?Zt(c,d,e):d}}function Zt(a,c,d){return ga(a)?a:ia(a)?(!(a in d)&&"#"+a in d&&(a="#"+a),Zt(d[a],c,d)):c}function $t(a){a=Uo(a,!1);if(a=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(a))return a=a[1],[parseInt(a.substr(6,2),16),parseInt(a.substr(4,2),16),parseInt(a.substr(2,2),16),parseInt(a.substr(0,2),16)/255]} 877function au(a){a=Uo(a,!1);for(var c=[],d=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i,e;e=d.exec(a);)c.push(parseFloat(e[1]),parseFloat(e[2]),e[3]?parseFloat(e[3]):0),a=a.substr(e[0].length);return""!==a?void 0:c}function bu(a){var c=Uo(a,!1);return null!=a.baseURI?Ft(a.baseURI,Ba(c)).toString():Ba(c)}function cu(a){a=ls(a);if(m(a))return Math.sqrt(a)}function du(a,c){return V(null,eu,a,c)} 878function fu(a,c){var d=V({o:[],wh:[]},gu,a,c);if(m(d)){var e=d.o,d=d.wh,f,g;f=0;for(g=Math.min(e.length,d.length);f<g;++f)e[4*f+3]=d[f];d=new N(null);fn(d,"XYZM",e);return d}}function hu(a,c){var d=V({},iu,a,c),e=V(null,ju,a,c);if(m(e)){var f=new N(null);fn(f,"XYZ",e);f.I(d);return f}}function ku(a,c){var d=V({},iu,a,c),e=V(null,ju,a,c);if(m(e)){var f=new E(null);If(f,"XYZ",e,[e.length]);f.I(d);return f}} 879function lu(a,c){var d=V([],mu,a,c);if(!m(d))return null;if(0===d.length)return new Zm(d);var e=!0,f=d[0].U(),g,h,k;h=1;for(k=d.length;h<k;++h)if(g=d[h],g.U()!=f){e=!1;break}if(e){if("Point"==f){g=d[0];e=g.a;f=g.o;h=1;for(k=d.length;h<k;++h)g=d[h],cb(f,g.o);g=new jn(null);af(g,e,f);g.s();nu(g,d);return g}return"LineString"==f?(g=new O(null),hn(g,d),nu(g,d),g):"Polygon"==f?(g=new R(null),ln(g,d),nu(g,d),g):"GeometryCollection"==f?new Zm(d):null}return new Zm(d)} 880function ou(a,c){var d=V({},iu,a,c),e=V(null,ju,a,c);if(null!=e){var f=new vf(null);wf(f,"XYZ",e);f.I(d);return f}}function pu(a,c){var d=V({},iu,a,c),e=V([null],qu,a,c);if(null!=e&&null!==e[0]){var f=new E(null),g=e[0],h=[g.length],k,n;k=1;for(n=e.length;k<n;++k)cb(g,e[k]),h.push(g.length);If(f,"XYZ",g,h);f.I(d);return f}} 881function ru(a,c){var d=V({},su,a,c);if(!m(d))return null;var e=Ab(d,"fillStyle",Rt),f=d.fill;m(f)&&!f&&(e=null);var f=Ab(d,"imageStyle",Ut),g=Ab(d,"textStyle",Wt),h=Ab(d,"strokeStyle",Vt),d=d.outline;m(d)&&!d&&(h=null);return[new Il({fill:e,image:f,stroke:h,text:g,zIndex:void 0})]} 882function nu(a,c){var d=c.length,e=Array(c.length),f=Array(c.length),g,h,k,n;k=n=!1;for(h=0;h<d;++h)g=c[h],e[h]=g.get("extrude"),f[h]=g.get("altitudeMode"),k=k||m(e[h]),n=n||m(f[h]);k&&a.set("extrude",e);n&&a.set("altitudeMode",f)}function tu(a,c){yp(uu,a,c)} 883var vu=T(Pt,{value:qp(Y)}),uu=T(Pt,{Data:function(a,c){var d=a.getAttribute("name");if(null!==d){var e=V(void 0,vu,a,c);m(e)&&(c[c.length-1][d]=e)}},SchemaData:function(a,c){yp(wu,a,c)}}),iu=T(Pt,{extrude:S(is),altitudeMode:S(Y)}),eu=T(Pt,{coordinates:qp(au)}),qu=T(Pt,{innerBoundaryIs:function(a,c){var d=V(void 0,xu,a,c);m(d)&&c[c.length-1].push(d)},outerBoundaryIs:function(a,c){var d=V(void 0,yu,a,c);m(d)&&(c[c.length-1][0]=d)}}),gu=T(Pt,{when:function(a,c){var d=c[c.length-1].wh,e=Uo(a,!1);if(e= 884/^\s*(\d{4})($|-(\d{2})($|-(\d{2})($|T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?)))))\s*$/.exec(e)){var f=Date.UTC(parseInt(e[1],10),m(e[3])?parseInt(e[3],10)-1:0,m(e[5])?parseInt(e[5],10):1,m(e[7])?parseInt(e[7],10):0,m(e[8])?parseInt(e[8],10):0,m(e[9])?parseInt(e[9],10):0);if(m(e[10])&&"Z"!=e[10]){var g="-"==e[11]?-1:1,f=f+60*g*parseInt(e[12],10);m(e[13])&&(f+=3600*g*parseInt(e[13],10))}d.push(f)}else d.push(0)}},T(Ot,{coord:function(a,c){var d=c[c.length-1].o,e=Uo(a,!1);(e=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(e))? 885d.push(parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3]),0):d.push(0,0,0,0)}})),ju=T(Pt,{coordinates:qp(au)}),zu=T(Pt,{href:S(bu)},T(Ot,{x:S(ls),y:S(ls),w:S(ls),h:S(ls)}
885)),Au=T(Pt,{Icon:S(function(a,c){var d=V({},zu,a,c);return m(d)?d:null}),heading:S(ls),hotSpot:S(function(a){var c=a.getAttribute("xunits"),d=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),Cf:Xt[c],y:parseFloat(a.getAttribute("y")),Df:Xt[d]}}),scale:S(cu)}),xu=T(Pt,{LinearRing:qp(du)}),Bu=T(Pt,{color:S($t),scale:S(cu)}), 886Cu=T(Pt,{color:S($t),width:S(ls)}),mu=T(Pt,{LineString:pp(hu),LinearRing:pp(ku),MultiGeometry:pp(lu),Point:pp(ou),Polygon:pp(pu)}),Du=T(Ot,{Track:pp(fu)}),Fu=T(Pt,{ExtendedData:tu,Link:function(a,c){yp(Eu,a,c)},address:S(Y),description:S(Y),name:S(Y),open:S(is),phoneNumber:S(Y),visibility:S(is)}),Eu=T(Pt,{href:S(bu)}),yu=T(Pt,{LinearRing:qp(du)}),Gu=T(Pt,{Style:S(ru),key:S(Y),styleUrl:S(function(a){var c=Ba(Uo(a,!1));return null!=a.baseURI?Ft(a.baseURI,c).toString():c})}),Iu=T(Pt,{ExtendedData:tu, 887MultiGeometry:S(lu,"geometry"),LineString:S(hu,"geometry"),LinearRing:S(ku,"geometry"),Point:S(ou,"geometry"),Polygon:S(pu,"geometry"),Style:S(ru),StyleMap:function(a,c){var d=V(void 0,Hu,a,c);if(m(d)){var e=c[c.length-1];ga(d)?e.Style=d:ia(d)&&(e.styleUrl=d)}},address:S(Y),description:S(Y),name:S(Y),open:S(is),phoneNumber:S(Y),styleUrl:S(bu),visibility:S(is)},T(Ot,{MultiTrack:S(function(a,c){var d=V([],Du,a,c);if(m(d)){var e=new O(null);hn(e,d);return e}},"geometry"),Track:S(fu,"geometry")})),Ju= 888T(Pt,{color:S($t),fill:S(is),outline:S(is)}),wu=T(Pt,{SimpleData:function(a,c){var d=a.getAttribute("name");if(null!==d){var e=Y(a);c[c.length-1][d]=e}}}),su=T(Pt,{IconStyle:function(a,c){var d=V({},Au,a,c);if(m(d)){var e=c[c.length-1],f=Ab(d,"Icon",{}),g;g=f.href;g=m(g)?g:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png";var h,k,n,p=d.hotSpot;m(p)?(h=[p.x,p.y],k=p.Cf,n=p.Df):"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"===g?(h=St,n=k="pixels"):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(g)&& 889(h=[.5,0],n=k="fraction");var q,p=f.x,r=f.y;m(p)&&m(r)&&(q=[p,r]);var t,p=f.w,f=f.h;m(p)&&m(f)&&(t=[p,f]);var v,f=d.heading;m(f)&&(v=$b(f));d=d.scale;"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"==g&&(t=Tt);h=new Bk({anchor:h,anchorOrigin:"bottom-left",anchorXUnits:k,anchorYUnits:n,crossOrigin:"anonymous",offset:q,offsetOrigin:"bottom-left",rotation:v,scale:d,size:t,src:g});e.imageStyle=h}},LabelStyle:function(a,c){var d=V({},Bu,a,c);m(d)&&(c[c.length-1].textStyle=new Lt({fill:new Gl({color:Ab(d, 890"color",Qt)}),scale:d.scale}))},LineStyle:function(a,c){var d=V({},Cu,a,c);m(d)&&(c[c.length-1].strokeStyle=new Cl({color:Ab(d,"color",Qt),width:Ab(d,"width",1)}))},PolyStyle:function(a,c){var d=V({},Ju,a,c);if(m(d)){var e=c[c.length-1];e.fillStyle=new Gl({color:Ab(d,"color",Qt)});var f=d.fill;m(f)&&(e.fill=f);d=d.outline;m(d)&&(e.outline=d)}}}),Hu=T(Pt,{Pair:function(a,c){var d=V({},Gu,a,c);if(m(d)){var e=d.key;m(e)&&"normal"==e&&(e=d.styleUrl,m(e)&&(c[c.length-1]=e),d=d.Style,m(d)&&(c[c.length- 8911]=d))}}});l=Mt.prototype;l.Rg=function(a,c){Yo(a);var d=T(Pt,{Folder:op(this.Rg,this),Placemark:pp(this.uf,this),Style:ra(this.vn,this),StyleMap:ra(this.tn,this)}),d=V([],d,a,c,this);if(m(d))return d};l.uf=function(a,c){var d=V({geometry:null},Iu,a,c);if(m(d)){var e=new zn,f=a.getAttribute("id");null===f||e.Nb(f);var f=c[0],g=Ab(d,"geometry");null!=g&&Qr(g,!1,f);e.ra(g);zb(d,"geometry");this.f&&e.ef(Yt(Ab(d,"Style"),Ab(d,"styleUrl"),this.c,this.b));zb(d,"Style");e.I(d);return e}}; 892l.vn=function(a,c){var d=a.getAttribute("id");if(null!==d){var e=ru(a,c);m(e)&&(d=null!=a.baseURI?Ft(a.baseURI,"#"+d).toString():"#"+d,this.b[d]=e)}};l.tn=function(a,c){var d=a.getAttribute("id");if(null!==d){var e=V(void 0,Hu,a,c);m(e)&&(d=null!=a.baseURI?Ft(a.baseURI,"#"+d).toString():"#"+d,this.b[d]=e)}};l.Sg=function(a,c){if(!Ya(Pt,a.namespaceURI))return null;var d=this.uf(a,[Or(this,a,c)]);return m(d)?d:null}; 893l.Mb=function(a,c){if(!Ya(Pt,a.namespaceURI))return[];var d;d=Yo(a);if("Document"==d||"Folder"==d)return d=this.Rg(a,[Or(this,a,c)]),m(d)?d:[];if("Placemark"==d)return d=this.uf(a,[Or(this,a,c)]),m(d)?[d]:[];if("kml"==d){d=[];var e;for(e=a.firstElementChild;null!==e;e=e.nextElementSibling){var f=this.Mb(e,c);m(f)&&cb(d,f)}return d}return[]};
893l.nn=function(a){if(ap(a))return Ku(this,a);if(dp(a))return Lu(this,a);if(ia(a))return a=np(a),Ku(this,a)}; 894function Ku(a,c){var d;for(d=c.firstChild;null!==d;d=d.nextSibling)if(1==d.nodeType){var e=Lu(a,d);if(m(e))return e}}function Lu(a,c){var d;for(d=c.firstElementChild;null!==d;d=d.nextElementSibling)if(Ya(Pt,d.namespaceURI)&&"name"==d.localName)return Y(d);for(d=c.firstElementChild;null!==d;d=d.nextElementSibling){var e=Yo(d);if(Ya(Pt,d.namespaceURI)&&("Document"==e||"Folder"==e||"Placemark"==e||"kml"==e)&&(e=Lu(a,d),m(e)))return e}} 895l.pn=function(a){var c=[];ap(a)?cb(c,Mu(this,a)):dp(a)?cb(c,Nu(this,a)):ia(a)&&(a=np(a),cb(c,Mu(this,a)));return c};function Mu(a,c){var d,e=[];for(d=c.firstChild;null!==d;d=d.nextSibling)1==d.nodeType&&cb(e,Nu(a,d));return e} 896function Nu(a,c){var d,e=[];for(d=c.firstElementChild;null!==d;d=d.nextElementSibling)if(Ya(Pt,d.namespaceURI)&&"NetworkLink"==d.localName){var f=V({},Fu,d,[]);e.push(f)}for(d=c.firstElementChild;null!==d;d=d.nextElementSibling)f=Yo(d),!Ya(Pt,d.namespaceURI)||"Document"!=f&&"Folder"!=f&&"kml"!=f||cb(e,Nu(a,d));return e}function Ou(a,c){var d=xg(c),d=[255*(4==d.length?d[3]:1),d[2],d[1],d[0]],e;for(e=0;4>e;++e){var f=parseInt(d[e],10).toString(16);d[e]=1==f.length?"0"+f:f}qs(a,d.join(""))} 897function Pu(a,c,d){zp({node:a},Qu,Ru,[c],d)}function Su(a,c,d){var e={node:a};null!=c.ga&&a.setAttribute("id",c.ga);a=c.P();var f=c.c;m(f)&&(f=f.call(c,0),null!==f&&0<f.length&&(a.Style=f[0],f=f[0].a,null===f||(a.name=f.c)));f=Tu[d[d.length-1].node.namespaceURI];a=xp(a,f);zp(e,Uu,wp,a,d,f);a=d[0];c=c.X();null!=c&&(c=Qr(c,!0,a));zp(e,Uu,Vu,[c],d)}function Wu(a,c,d){var e=c.o;a={node:a};a.layout=c.a;a.stride=c.H;zp(a,Xu,Yu,[e],d)} 898function Zu(a,c,d){c=c.Hd();var e=c.shift();a={node:a};zp(a,$u,av,c,d);zp(a,$u,bv,[e],d)}function cv(a,c){rs(a,c*c)} 899var dv=sp(Pt,["Document","Placemark"]),gv=sp(Pt,{Document:U(function(a,c,d){zp({node:a},ev,fv,c,d)}),Placemark:U(Su)}),ev=sp(Pt,{Placemark:U(Su)}),hv={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry"},iv=sp(Pt,["href"],sp(Ot,["x","y","w","h"])),jv=sp(Pt,{href:U(qs)},sp(Ot,{x:U(rs),y:U(rs),w:U(rs),h:U(rs)})),kv=sp(Pt,["scale","heading","Icon","hotSpot"]),mv=sp(Pt,{Icon:U(function(a, 900c,d){a={node:a};var e=iv[d[d.length-1].node.namespaceURI],f=xp(c,e);zp(a,jv,wp,f,d,e);e=iv[Ot[0]];f=xp(c,e);zp(a,jv,lv,f,d,e)}),heading:U(rs),hotSpot:U(function(a,c){a.setAttribute("x",c.x);a.setAttribute("y",c.y);a.setAttribute("xunits",c.Cf);a.setAttribute("yunits",c.Df)}),scale:U(cv)}),nv=sp(Pt,["color","scale"]),ov=sp(Pt,{color:U(Ou),scale:U(cv)}),pv=sp(Pt,["color","width"]),qv=sp(Pt,{color:U(Ou),width:U(rs)}),Qu=sp(Pt,{LinearRing:U(Wu)}),rv=sp(Pt,{LineString:U(Wu),Point:U(Wu),Polygon:U(Zu)}), 901Tu=sp(Pt,"name open visibility address phoneNumber description styleUrl Style".split(" ")),Uu=sp(Pt,{MultiGeometry:U(function(a,c,d){a={node:a};var e=c.U(),f,g;"MultiPoint"==e?(f=c.ae(),g=sv):"MultiLineString"==e?(f=c.bd(),g=tv):"MultiPolygon"==e&&(f=c.Jd(),g=uv);zp(a,rv,g,f,d)}),LineString:U(Wu),LinearRing:U(Wu),Point:U(Wu),Polygon:U(Zu),Style:U(function(a,c,d){a={node:a};var e={},f=c.f,g=c.c,h=c.g;c=c.a;null===h||(e.IconStyle=h);null===c||(e.LabelStyle=c);null===g||(e.LineStyle=g);null===f||(e.PolyStyle= 902f);c=vv[d[d.length-1].node.namespaceURI];e=xp(e,c);zp(a,wv,wp,e,d,c)}),address:U(qs),description:U(qs),name:U(qs),open:U(ps),phoneNumber:U(qs),styleUrl:U(qs),visibility:U(ps)}),Xu=sp(Pt,{coordinates:U(function(a,c,d){d=d[d.length-1];var e=d.layout;d=d.stride;var f;"XY"==e||"XYM"==e?f=2:("XYZ"==e||"XYZM"==e)&&(f=3);var g,h=c.length,k="";if(0<h){k+=c[0];for(e=1;e<f;++e)k+=","+c[e];for(g=d;g<h;g+=d)for(k+=" "+c[g],e=1;e<f;++e)k+=","+c[g+e]}qs(a,k)})}),$u=sp(Pt,{outerBoundaryIs:U(Pu),innerBoundaryIs:U(Pu)}), 903xv=sp(Pt,{color:U(Ou)}),vv=sp(Pt,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),wv=sp(Pt,{IconStyle:U(function(a,c,d){a={node:a};var e={},f=c.ab(),g=c.Gd(),h={href:c.b.g};if(null!==f){h.w=f[0];h.h=f[1];var k=c.pb(),n=c.ub();null!==n&&null!==g&&0!==n[0]&&n[1]!==f[1]&&(h.x=n[0],h.y=g[1]-(n[1]+f[1]));null===k||0===k[0]||k[1]===f[1]||(e.hotSpot={x:k[0],Cf:"pixels",y:f[1]-k[1],Df:"pixels"})}e.Icon=h;f=c.v;1!==f&&(e.scale=f);c=c.C;0!==c&&(e.heading=c);c=kv[d[d.length-1].node.namespaceURI];e=xp(e,c); 904zp(a,mv,wp,e,d,c)}),LabelStyle:U(function(a,c,d){a={node:a};var e={},f=c.b;null===f||(e.color=f.b);c=c.a;m(c)&&1!==c&&(e.scale=c);c=nv[d[d.length-1].node.namespaceURI];e=xp(e,c);zp(a,ov,wp,e,d,c)}),LineStyle:U(function(a,c,d){a={node:a};var e=pv[d[d.length-1].node.namespaceURI];c=xp({color:c.b,width:c.a},e);zp(a,qv,wp,c,d,e)}),PolyStyle:U(function(a,c,d){zp({node:a},xv,yv,[c.b],d)})});function lv(a,c,d){return To(Ot[0],"gx:"+d)} 905function fv(a,c){return To(c[c.length-1].node.namespaceURI,"Placemark")}function Vu(a,c){if(null!=a)return To(c[c.length-1].node.namespaceURI,hv[a.U()])}var yv=up("color"),Yu=up("coordinates"),av=up("innerBoundaryIs"),sv=up("Point"),tv=up("LineString"),Ru=up("LinearRing"),uv=up("Polygon"),bv=up("outerBoundaryIs"); 906Mt.prototype.a=function(a,c){c=Pr(this,c);var d=To(Pt[4],"kml");mp(d,"http://www.w3.org/2000/xmlns/","xmlns:gx",Ot[0]);mp(d,"http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");mp(d,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var e={node:d},f={};1<a.length?f.Document=a:1==a.length&&(f.Placemark=a[0]);var g=dv[d.namespaceURI],f=xp(f,g);zp(e,gv,wp,f,[c],g); 907return d};function zv(){this.defaultDataProjection=null;this.defaultDataProjection=Ae("EPSG:4326")}w(zv,es);function Av(a,c){c[c.length-1].pd[a.getAttribute("k")]=a.getAttribute("v")} 908var Bv=[null],Cv=T(Bv,{nd:function(a,c){c[c.length-1].Ac.push(a.getAttribute("ref"))},tag:Av}),Ev=T(Bv,{node:function(a,c){var d=c[0],e=c[c.length-1],f=a.getAttribute("id"),g=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];e.lg[f]=g;var h=V({pd:{}},Dv,a,c);xb(h.pd)||(g=new vf(g),Qr(g,!1,d),d=new zn(g),d.Nb(f),d.I(h.pd),e.features.push(d))},way:function(a,c){for(var d=c[0],e=a.getAttribute("id"),f=V({Ac:[],pd:{}},Cv,a,c),g=c[c.length-1],h=[],k=0,n=f.Ac.length;k<n;k++)cb(h,g.lg[f.Ac[k]]); 909f.Ac[0]==f.Ac[f.Ac.length-1]?(k=new E(null),If(k,"XY",h,[h.length])):(k=new N(null),fn(k,"XY",h));Qr(k,!1,d);d=new zn(k);d.Nb(e);d.I(f.pd);g.features.push(d)}}),Dv=T(Bv,{tag:Av});zv.prototype.Mb=function(a,c){var d=Or(this,a,c);return"osm"==a.localName&&(d=V({lg:{},features:[]},Ev,a,[d]),m(d.features))?d.features:[]};function Fv(a){return a.getAttributeNS("http://www.w3.org/1999/xlink","href")};function Gv(){}Gv.prototype.c=function(a){return ap(a)?this.a(a):dp(a)?this.b(a):ia(a)?(a=np(a),this.a(a)):null};function Hv(){}w(Hv,Gv);Hv.prototype.a=function(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return this.b(a);return null};Hv.prototype.b=function(a){a=V({},Iv,a,[]);return m(a)?a:null}; 910var Jv=[null,"http://www.opengis.net/ows/1.1"],Iv=T(Jv,{ServiceIdentification:S(function(a,c){return V({},Kv,a,c)}),ServiceProvider:S(function(a,c){return V({},Lv,a,c)}),OperationsMetadata:S(function(a,c){return V({},Mv,a,c)})}),Nv=T(Jv,{DeliveryPoint:S(Y),City:S(Y),AdministrativeArea:S(Y),PostalCode:S(Y),Country:S(Y),ElectronicMailAddress:S(Y)}),Ov=T(Jv,{Value:rp(function(a){return Y(a)})}),Pv=T(Jv,{AllowedValues:S(function(a,c){return V({},Ov,a,c)})}),Rv=T(Jv,{Phone:S(function(a,c){return V({}, 911Qv,a,c)}),Address:S(function(a,c){return V({},Nv,a,c)})}),Tv=T(Jv,{HTTP:S(function(a,c){return V({},Sv,a,c)})}),Sv=T(Jv,{Get:rp(function(a,c){var d=Fv(a);return m(d)?V({href:d},Uv,a,c):void 0}),Post:void 0}),Vv=T(Jv,{DCP:S(function(a,c){return V({},Tv,a,c)})}),Mv=T(Jv,{Operation:function(a,c){var d=a.getAttribute("name"),e=V({},Vv,a,c);m(e)&&(c[c.length-1][d]=e)}}),Qv=T(Jv,{Voice:S(Y),Facsimile:S(Y)}),Uv=T(Jv,{Constraint:rp(function(a,c){var d=a.getAttribute("name");return m(d)?V({name:d},Pv,a,c): 912void 0})}),Wv=T(Jv,{IndividualName:S(Y),PositionName:S(Y),ContactInfo:S(function(a,c){return V({},Rv,a,c)})}),Kv=T(Jv,{Title:S(Y),ServiceTypeVersion:S(Y),ServiceType:S(Y)}),Lv=T(Jv,{ProviderName:S(Y),ProviderSite:S(Fv),ServiceContact:S(function(a,c){return V({},Wv,a,c)})});function Xv(a,c,d,e){var f;m(e)?f=m(void 0)?void 0:0:(e=[],f=0);var g,h;for(g=0;g<c;)for(h=a[g++],e[f++]=a[g++],e[f++]=h,h=2;h<d;++h)e[f++]=a[g++];e.length=f};function Yv(a){a=m(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ae("EPSG:4326");this.b=m(a.factor)?a.factor:1E5;this.a=m(a.geometryLayout)?a.geometryLayout:"XY"}w(Yv,mt);function Zv(a,c,d){d=m(d)?d:1E5;var e,f=Array(c);for(e=0;e<c;++e)f[e]=0;var g,h;g=0;for(h=a.length;g<h;)for(e=0;e<c;++e,++g){var k=a[g],n=k-f[e];f[e]=k;a[g]=n}return $v(a,d)} 913function aw(a,c,d){var e=m(d)?d:1E5,f=Array(c);for(d=0;d<c;++d)f[d]=0;a=bw(a,e);var g,e=0;for(g=a.length;e<g;)for(d=0;d<c;++d,++e)f[d]+=a[e],a[e]=f[d];return a}function $v(a,c){var d=m(c)?c:1E5,e,f;e=0;for(f=a.length;e<f;++e)a[e]=Math.round(a[e]*d);d=0;for(e=a.length;d<e;++d)f=a[d],a[d]=0>f?~(f<<1):f<<1;d="";e=0;for(f=a.length;e<f;++e){for(var g=a[e],h=void 0,k="";32<=g;)h=(32|g&31)+63,k+=String.fromCharCode(h),g>>=5;h=g+63;k+=String.fromCharCode(h);d+=k}return d} 914function bw(a,c){var d=m(c)?c:1E5,e=[],f=0,g=0,h,k;h=0;for(k=a.length;h<k;
914++h){var n=a.charCodeAt(h)-63,f=f|(n&31)<<g;32>n?(e.push(f),g=f=0):g+=5}f=0;for(g=e.length;f<g;++f)h=e[f],e[f]=h&1?~(h>>1):h>>1;f=0;for(g=e.length;f<g;++f)e[f]/=d;return e}l=Yv.prototype;l.kd=function(a,c){var d=this.md(a,c);return new zn(d)};l.sf=function(a,c){return[this.kd(a,c)]};l.md=function(a,c){var d=$e(this.a),e=aw(a,d,this.b);Xv(e,e.length,d,e);d=pf(e,0,e.length,d);return Qr(new N(d,this.a),!1,Pr(this,c))}; 915l.ve=function(a,c){var d=a.X();return null!=d?this.rd(d,c):""};l.yh=function(a,c){return this.ve(a[0],c)};l.rd=function(a,c){a=Qr(a,!0,Pr(this,c));var d=a.o,e=a.H;Xv(d,d.length,e,d);return Zv(d,e,this.b)};function cw(a){a=m(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ae(null!=a.defaultDataProjection?a.defaultDataProjection:"EPSG:4326")}w(cw,Rr);function dw(a,c){var d=[],e,f,g,h;g=0;for(h=a.length;g<h;++g)e=a[g],0<g&&d.pop(),0<=e?f=c[e]:f=c[~e].slice().reverse(),d.push.apply(d,f);e=0;for(f=d.length;e<f;++e)d[e]=d[e].slice();return d}function ew(a,c,d,e,f){a=a.geometries;var g=[],h,k;h=0;for(k=a.length;h<k;++h)g[h]=fw(a[h],c,d,e,f);return g} 916function fw(a,c,d,e,f){var g=a.type,h=gw[g];c="Point"===g||"MultiPoint"===g?h(a,d,e):h(a,c);d=new zn;d.ra(Qr(c,!1,f));m(a.id)&&d.Nb(a.id);m(a.properties)&&d.I(a.properties);return d} 917cw.prototype.rf=function(a,c){if("Topology"==a.type){var d,e=null,f=null;m(a.transform)&&(d=a.transform,e=d.scale,f=d.translate);var g=a.arcs;if(m(d)){d=e;var h=f,k,n;k=0;for(n=g.length;k<n;++k)for(var p=g[k],q=d,r=h,t=0,v=0,B=void 0,z=void 0,D=void 0,z=0,D=p.length;z<D;++z)B=p[z],t+=B[0],v+=B[1],B[0]=t,B[1]=v,hw(B,q,r)}d=[];h=sb(a.objects);k=0;for(n=h.length;k<n;++k)"GeometryCollection"===h[k].type?(p=h[k],d.push.apply(d,ew(p,g,e,f,c))):(p=h[k],d.push(fw(p,g,e,f,c)));return d}return[]}; 918function hw(a,c,d){a[0]=a[0]*c[0]+d[0];a[1]=a[1]*c[1]+d[1]}cw.prototype.Ea=function(){return this.defaultDataProjection}; 919var gw={Point:function(a,c,d){a=a.coordinates;null===c||null===d||hw(a,c,d);return new vf(a)},LineString:function(a,c){var d=dw(a.arcs,c);return new N(d)},Polygon:function(a,c){var d=[],e,f;e=0;for(f=a.arcs.length;e<f;++e)d[e]=dw(a.arcs[e],c);return new E(d)},MultiPoint:function(a,c,d){a=a.coordinates;var e,f;if(null!==c&&null!==d)for(e=0,f=a.length;e<f;++e)hw(a[e],c,d);return new jn(a)},MultiLineString:function(a,c){var d=[],e,f;e=0;for(f=a.arcs.length;e<f;++e)d[e]=dw(a.arcs[e],c);return new O(d)}, 920MultiPolygon:function(a,c){var d=[],e,f,g,h,k,n;k=0;for(n=a.arcs.length;k<n;++k){e=a.arcs[k];f=[];g=0;for(h=e.length;g<h;++g)f[g]=dw(e[g],c);d[k]=f}return new R(d)}};function iw(a){a=m(a)?a:{};this.i=a.featureType;this.c=a.featureNS;this.b=m(a.gmlFormat)?a.gmlFormat:new us;this.f=m(a.schemaLocation)?a.schemaLocation:"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";this.defaultDataProjection=null}w(iw,es);iw.prototype.Mb=function(a,c){var d={featureType:this.i,featureNS:this.c};Gb(d,Or(this,a,m(c)?c:{}));d=[d];this.b.b["http://www.opengis.net/gml"].featureMember=pp(hs.prototype.ld);d=V([],this.b.b,a,d,this.b);m(d)||(d=[]);return d}; 921iw.prototype.j=function(a){if(ap(a))return jw(a);if(dp(a))return V({},kw,a,[]);if(ia(a))return a=np(a),jw(a)};iw.prototype.g=function(a){if(ap(a))return lw(this,a);if(dp(a))return mw(this,a);if(ia(a))return a=np(a),lw(this,a)};function lw(a,c){for(var d=c.firstChild;null!==d;d=d.nextSibling)if(1==d.nodeType)return mw(a,d)}var nw={"http://www.opengis.net/gml":{boundedBy:S(hs.prototype.ne,"bounds")}}; 922function mw(a,c){var d={},e=os(c.getAttribute("numberOfFeatures"));d.numberOfFeatures=e;return V(d,nw,c,[],a.b)} 923var ow={"http://www.opengis.net/wfs":{totalInserted:S(ns),totalUpdated:S(ns),totalDeleted:S(ns)}},pw={"http://www.opengis.net/ogc":{FeatureId:pp(function(a){return a.getAttribute("fid")})}},qw={"http://www.opengis.net/wfs":{Feature:function(a,c){yp(pw,a,c)}}},kw={"http://www.opengis.net/wfs":{TransactionSummary:S(function(a,c){return V({},ow,a,c)},"transactionSummary"),InsertResults:S(function(a,c){return V([],qw,a,c)},"insertIds")}}; 924function jw(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return V({},kw,a,[])}var rw={"http://www.opengis.net/wfs":{PropertyName:U(qs)}};function sw(a,c){var d=To("http://www.opengis.net/ogc","Filter"),e=To("http://www.opengis.net/ogc","FeatureId");d.appendChild(e);e.setAttribute("fid",c);a.appendChild(d)} 925var tw={"http://www.opengis.net/wfs":{Insert:U(function(a,c,d){var e=d[d.length-1],e=To(e.featureNS,e.featureType);a.appendChild(e);us.prototype.xh(e,c,d)}),Update:U(function(a,c,d){var e=d[d.length-1],f=e.featureType,g=e.featurePrefix,g=m(g)?g:"feature",h=e.featureNS;a.setAttribute("typeName",g+":"+f);mp(a,"http://www.w3.org/2000/xmlns/","xmlns:"+g,h);f=c.ga;if(m(f)){for(var g=c.O(),h=[],k=0,n=g.length;k<n;k++){var p=c.get(g[k]);m(p)&&h.push({name:g[k],value:p})}zp({node:a,srsName:e.srsName},tw, 926up("Property"),h,d);sw(a,f)}}),Delete:U(function(a,c,d){var e=d[d.length-1];d=e.featureType;var f=e.featurePrefix,f=m(f)?f:"feature",e=e.featureNS;a.setAttribute("typeName",f+":"+d);mp(a,"http://www.w3.org/2000/xmlns/","xmlns:"+f,e);c=c.ga;
926m(c)&&sw(a,c)}),Property:U(function(a,c,d){var e=To("http://www.opengis.net/wfs","Name");a.appendChild(e);qs(e,c.name);null!=c.value&&(e=To("http://www.opengis.net/wfs","Value"),a.appendChild(e),c.value instanceof Xe?us.prototype.xe(e,c.value,d):qs(e,c.value))}), 927Native:U(function(a,c){m(c.ho)&&a.setAttribute("vendorId",c.ho);m(c.Hn)&&a.setAttribute("safeToIgnore",c.Hn);m(c.value)&&qs(a,c.value)})}},uw={"http://www.opengis.net/wfs":{Query:U(function(a,c,d){var e=d[d.length-1],f=e.featurePrefix,g=e.featureNS,h=e.propertyNames,k=e.srsName;a.setAttribute("typeName",(m(f)?f+":":"")+c);m(k)&&a.setAttribute("srsName",k);m(g)&&mp(a,"http://www.w3.org/2000/xmlns/","xmlns:"+f,g);c=Cb(e);c.node=a;zp(c,rw,up("PropertyName"),h,d);e=e.bbox;m(e)&&(h=To("http://www.opengis.net/ogc", 928"Filter"),c=d[d.length-1].geometryName,f=To("http://www.opengis.net/ogc","BBOX"),h.appendChild(f),g=To("http://www.opengis.net/ogc","PropertyName"),qs(g,c),f.appendChild(g),us.prototype.xe(f,e,d),a.appendChild(h))})}}; 929iw.prototype.l=function(a){var c=To("http://www.opengis.net/wfs","GetFeature");c.setAttribute("service","WFS");c.setAttribute("version","1.1.0");m(a)&&(m(a.handle)&&c.setAttribute("handle",a.handle),m(a.outputFormat)&&c.setAttribute("outputFormat",a.outputFormat),m(a.maxFeatures)&&c.setAttribute("maxFeatures",a.maxFeatures),m(a.resultType)&&c.setAttribute("resultType",a.resultType),m(a.Zn)&&c.setAttribute("startIndex",a.Zn),m(a.count)&&c.setAttribute("count",a.count));mp(c,"http://www.w3.org/2001/XMLSchema-instance", 930"xsi:schemaLocation",this.f);var d=a.featureTypes;a=[{node:c,srsName:a.srsName,featureNS:m(a.featureNS)?a.featureNS:this.c,featurePrefix:a.featurePrefix,geometryName:a.geometryName,bbox:a.bbox,propertyNames:m(a.propertyNames)?a.propertyNames:[]}];var e=Cb(a[a.length-1]);e.node=c;zp(e,uw,up("Query"),d,a);return c}; 931iw.prototype.u=function(a,c,d,e){var f=[],g=To("http://www.opengis.net/wfs","Transaction");g.setAttribute("service","WFS");g.setAttribute("version","1.1.0");var h,k;m(e)&&(h=m(e.gmlOptions)?e.gmlOptions:{},m(e.handle)&&g.setAttribute("handle",e.handle));mp(g,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.f);null!=a&&(k={node:g,featureNS:e.featureNS,featureType:e.featureType,featurePrefix:e.featurePrefix},Gb(k,h),zp(k,tw,up("Insert"),a,f));null!=c&&(k={node:g,featureNS:e.featureNS, 932featureType:e.featureType,featurePrefix:e.featurePrefix},Gb(k,h),zp(k,tw,up("Update"),c,f));null!=d&&zp({node:g,featureNS:e.featureNS,featureType:e.featureType,featurePrefix:e.featurePrefix},tw,up("Delete"),d,f);m(e.nativeElements)&&zp({node:g,featureNS:e.featureNS,featureType:e.featureType,featurePrefix:e.featurePrefix},tw,up("Native"),e.nativeElements,f);return g};iw.prototype.vf=function(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return this.qe(a);return null}; 933iw.prototype.qe=function(a){if(null!=a.firstElementChild&&null!=a.firstElementChild.firstElementChild)for(a=a.firstElementChild.firstElementChild,a=a.firstElementChild;null!==a;a=a.nextElementSibling)if(0!==a.childNodes.length&&(1!==a.childNodes.length||3!==a.firstChild.nodeType)){var c=[{}];this.b.ne(a,c);return Ae(c.pop().srsName)}return null};function vw(a){a=m(a)?a:{};this.defaultDataProjection=null;this.b=m(a.splitCollection)?a.splitCollection:!1}w(vw,mt);function ww(a){a=a.W();return 0==a.length?"":a[0]+" "+a[1]}function xw(a){a=a.W();for(var c=[],d=0,e=a.length;d<e;++d)c.push(a[d][0]+" "+a[d][1]);return c.join(",")}function yw(a){var c=[];a=a.Hd();for(var d=0,e=a.length;d<e;++d)c.push("("+xw(a[d])+")");return c.join(",")}function zw(a){var c=a.U();a=(0,Aw[c])(a);c=c.toUpperCase();return 0===a.length?c+" EMPTY":c+"("+a+")"} 934var Aw={Point:ww,LineString:xw,Polygon:yw,MultiPoint:function(a){var c=[];a=a.ae();for(var d=0,e=a.length;d<e;++d)c.push("("+ww(a[d])+")");return c.join(",")},MultiLineString:function(a){var c=[];a=a.bd();for(var d=0,e=a.length;d<e;++d)c.push("("+xw(a[d])+")");return c.join(",")},MultiPolygon:function(a){var c=[];a=a.Jd();for(var d=0,e=a.length;d<e;++d)c.push("("+yw(a[d])+")");return c.join(",")},GeometryCollection:function(a){var c=[];a=a.Uf();for(var d=0,e=a.length;d<e;++d)c.push(zw(a[d]));return c.join(",")}}; 935l=vw.prototype;
935l.kd=function(a,c){var d=this.md(a,c);if(m(d)){var e=new zn;e.ra(d);return e}return null};l.sf=function(a,c){var d=[],e=this.md(a,c);this.b&&"GeometryCollection"==e.U()?d=e.f:d=[e];for(var f=[],g=0,h=d.length;g<h;++g)e=new zn,e.ra(d[g]),f.push(e);return f};l.md=function(a,c){var d;d=new Bw(new Cw(a));d.b=Dw(d.a);d=Ew(d);return m(d)?Qr(d,!1,c):null};l.ve=function(a,c){var d=a.X();return m(d)?this.rd(d,c):""}; 936l.yh=function(a,c){if(1==a.length)return this.ve(a[0],c);for(var d=[],e=0,f=a.length;e<f;++e)d.push(a[e].X());d=new Zm(d);return this.rd(d,c)};l.rd=function(a,c){return zw(Qr(a,!0,c))};function Cw(a){this.a=a;this.b=-1}function Fw(a,c){var d=m(c)?c:!1;return"0"<=a&&"9">=a||"."==a&&!d} 937function Dw(a){var c=a.a.charAt(++a.b),d={position:a.b,value:c};if("("==c)d.type=2;else if(","==c)d.type=5;else if(")"==c)d.type=3;else if(Fw(c)||"-"==c){d.type=4;var e,c=a.b,f=!1,g=!1;do{if("."==e)f=!0;else if("e"==e||"E"==e)g=!0;e=a.a.charAt(++a.b)}while(Fw(e,f)||!g&&("e"==e||"E"==e)||g&&("-"==e||"+"==e));a=parseFloat(a.a.substring(c,a.b--));d.value=a}else if("a"<=c&&"z">=c||"A"<=c&&"Z">=c){d.type=1;c=a.b;do e=a.a.charAt(++a.b);while("a"<=e&&"z">=e||"A"<=e&&"Z">=e);a=a.a.substring(c,a.b--).toUpperCase(); 938d.value=a}else{if(" "==c||"\t"==c||"\r"==c||"\n"==c)return Dw(a);if(""===c)d.type=6;else throw Error("Unexpected character: "+c);}return d}function Bw(a){this.a=a}l=Bw.prototype;l.match=function(a){if(a=this.b.type==a)this.b=Dw(this.a);return a}; 939function Ew(a){var c=a.b;if(a.match(1)){var d=c.value;if("GEOMETRYCOLLECTION"==d){a:{if(a.match(2)){c=[];do c.push(Ew(a));while(a.match(5));if(a.match(3)){a=c;break a}}else if(Gw(a)){a=[];break a}throw Error(Hw(a));}return new Zm(a)}var e=Iw[d],c=Jw[d];if(!m(e)||!m(c))throw Error("Invalid geometry type: "+d);a=e.call(a);return new c(a)}throw Error(Hw(a));}l.of=function(){if(this.match(2)){var a=Kw(this);if(this.match(3))return a}else if(Gw(this))return null;throw Error(Hw(this));}; 940l.nf=function(){if(this.match(2)){var a=Lw(this);if(this.match(3))return a}else if(Gw(this))return[];throw Error(Hw(this));};l.pf=function(){if(this.match(2)){var a=Mw(this);if(this.match(3))return a}else if(Gw(this))return[];throw Error(Hw(this));};l.Um=function(){if(this.match(2)){var a;if(2==this.b.type)for(a=[this.of()];this.match(5);)a.push(this.of());else a=Lw(this);if(this.match(3))return a}else if(Gw(this))return[];throw Error(Hw(this));}; 941l.Tm=function(){if(this.match(2)){var a=Mw(this);if(this.match(3))return a}else if(Gw(this))return[];throw Error(Hw(this));};l.Vm=function(){if(this.match(2)){for(var a=[this.pf()];this.match(5);)a.push(this.pf());if(this.match(3))return a}else if(Gw(this))return[];throw Error(Hw(this));};function Kw(a){for(var c=[],d=0;2>d;++d){var e=a.b;if(a.match(4))c.push(e.value);else break}if(2==c.length)return c;throw Error(Hw(a));}function Lw(a){for(var c=[Kw(a)];a.match(5);)c.push(Kw(a));return c} 942function Mw(a){for(var c=[a.nf()];a.match(5);)c.push(a.nf());return c}function Gw(a){var c=1==a.b.type&&"EMPTY"==a.b.value;c&&(a.b=Dw(a.a));return c}function Hw(a){return"Unexpected `"+a.b.value+"` at position "+a.b.position+" in `"+a.a.a+"`"}var Jw={POINT:vf,LINESTRING:N,POLYGON:E,MULTIPOINT:jn,MULTILINESTRING:O,MULTIPOLYGON:R},Iw={POINT:Bw.prototype.of,LINESTRING:Bw.prototype.nf,POLYGON:Bw.prototype.pf,MULTIPOINT:Bw.prototype.Um,MULTILINESTRING:Bw.prototype.Tm,MULTIPOLYGON:Bw.prototype.Vm};function Nw(){this.version=void 0}w(Nw,Gv);Nw.prototype.a=function(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return this.b(a);return null};Nw.prototype.b=function(a){this.version=Ba(a.getAttribute("version"));a=V({version:this.version},Ow,a,[]);return m(a)?a:null};function Pw(a,c){return V({},Qw,a,c)}function Rw(a,c){return V({},Sw,a,c)}function Tw(a,c){var d=Pw(a,c);if(m(d)){var e=[os(a.getAttribute("width")),os(a.getAttribute("height"))];d.size=e;return d}} 943function Uw(a,c){return V([],Vw,a,c)} 944var Ww=[null,"http://www.opengis.net/wms"],Ow=T(Ww,{Service:S(function(a,c){return V({},Xw,a,c)}),Capability:S(function(a,c){return V({},Yw,a,c)})}),Yw=T(Ww,{Request:S(function(a,c){return V({},Zw,a,c)}
944),Exception:S(function(a,c){return V([],$w,a,c)}),Layer:S(function(a,c){return V({},ax,a,c)})}),Xw=T(Ww,{Name:S(Y),Title:S(Y),Abstract:S(Y),KeywordList:S(Uw),OnlineResource:S(Fv),ContactInformation:S(function(a,c){return V({},bx,a,c)}),Fees:S(Y),AccessConstraints:S(Y),LayerLimit:S(ns),MaxWidth:S(ns), 945MaxHeight:S(ns)}),bx=T(Ww,{ContactPersonPrimary:S(function(a,c){return V({},cx,a,c)}),ContactPosition:S(Y),ContactAddress:S(function(a,c){return V({},dx,a,c)}),ContactVoiceTelephone:S(Y),ContactFacsimileTelephone:S(Y),ContactElectronicMailAddress:S(Y)}),cx=T(Ww,{ContactPerson:S(Y),ContactOrganization:S(Y)}),dx=T(Ww,{AddressType:S(Y),Address:S(Y),City:S(Y),StateOrProvince:S(Y),PostCode:S(Y),Country:S(Y)}),$w=T(Ww,{Format:pp(Y)}),ax=T(Ww,{Name:S(Y),Title:S(Y),Abstract:S(Y),KeywordList:S(Uw),CRS:rp(Y), 946EX_GeographicBoundingBox:S(function(a,c){var d=V({},ex,a,c);if(m(d)){var e=d.westBoundLongitude,f=d.southBoundLatitude,g=d.eastBoundLongitude,d=d.northBoundLatitude;return m(e)&&m(f)&&m(g)&&m(d)?[e,f,g,d]:void 0}}),BoundingBox:rp(function(a){var c=[ms(a.getAttribute("minx")),ms(a.getAttribute("miny")),ms(a.getAttribute("maxx")),ms(a.getAttribute("maxy"))],d=[ms(a.getAttribute("resx")),ms(a.getAttribute("resy"))];return{crs:a.getAttribute("CRS"),extent:c,res:d}}),Dimension:rp(function(a){return{name:a.getAttribute("name"), 947units:a.getAttribute("units"),unitSymbol:a.getAttribute("unitSymbol"),"default":a.getAttribute("default"),multipleValues:js(a.getAttribute("multipleValues")),nearestValue:js(a.getAttribute("nearestValue")),current:js(a.getAttribute("current")),values:Y(a)}}),Attribution:S(function(a,c){return V({},fx,a,c)}),AuthorityURL:rp(function(a,c){var d=Pw(a,c);if(m(d))return d.name=a.getAttribute("name"),d}),Identifier:rp(Y),MetadataURL:rp(function(a,c){var d=Pw(a,c);if(m(d))return d.type=a.getAttribute("type"), 948d}),DataURL:rp(Pw),FeatureListURL:rp(Pw),Style:rp(function(a,c){return V({},gx,a,c)}),MinScaleDenominator:S(ls),MaxScaleDenominator:S(ls),Layer:rp(function(a,c){var d=c[c.length-1],e=V({},ax,a,c);if(m(e)){var f=js(a.getAttribute("queryable"));m(f)||(f=d.queryable);e.queryable=m(f)?f:!1;f=os(a.getAttribute("cascaded"));m(f)||(f=d.cascaded);e.cascaded=f;f=js(a.getAttribute("opaque"));m(f)||(f=d.opaque);e.opaque=m(f)?f:!1;f=js(a.getAttribute("noSubsets"));m(f)||(f=d.noSubsets);e.noSubsets=m(f)?f:!1; 949f=ms(a.getAttribute("fixedWidth"));m(f)||(f=d.fixedWidth);e.fixedWidth=f;f=ms(a.getAttribute("fixedHeight"));m(f)||(f=d.fixedHeight);e.fixedHeight=f;Sa(["Style","CRS","AuthorityURL"],function(a){var c=d[a];if(m(c)){var f=Bb(e,a),f=f.concat(c);e[a]=f}});Sa("EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" "),function(a){m(e[a])||(e[a]=d[a])});return e}})}),fx=T(Ww,{Title:S(Y),OnlineResource:S(Fv),LogoURL:S(Tw)}),ex=T(Ww,{westBoundLongitude:S(ls), 950eastBoundLongitude:S(ls),southBoundLatitude:S(ls),northBoundLatitude:S(ls)}),Zw=T(Ww,{GetCapabilities:S(Rw),GetMap:S(Rw),GetFeatureInfo:S(Rw)}),Sw=T(Ww,{Format:rp(Y),DCPType:rp(function(a,c){return V({},hx,a,c)})}),hx=T(Ww,{HTTP:S(function(a,c){return V({},ix,a,c)})}),ix=T(Ww,{Get:S(Pw),Post:S(Pw)}),gx=T(Ww,{Name:S(Y),Title:S(Y),Abstract:S(Y),LegendURL:rp(Tw),StyleSheetURL:S(Pw),StyleURL:S(Pw)}),Qw=T(Ww,{Format:S(Y),OnlineResource:S(Fv)}),Vw=T(Ww,{Keyword:pp(Y)});function jx(){this.c="http://mapserver.gis.umn.edu/mapserver";this.b=new ts;this.defaultDataProjection=null}w(jx,es); 951function kx(a,c,d){c.namespaceURI=a.c;var e=Yo(c),f=[];if(0===c.childNodes.length)return f;"msGMLOutput"==e&&Sa(c.childNodes,function(a){if(1===a.nodeType){var c=d[0],e=a.localName,n=RegExp,p;p="_layer".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08");n=new n(p,"");e=e.replace(n,"")+"_feature";c.featureType=e;c.featureNS=this.c;n={};n[e]=pp(this.b.qf,this.b);c=T([c.featureNS,null],n);a.namespaceURI=this.c;a=V([],c,a,d,this.b);m(a)&&cb(f,a)}},a);"FeatureCollection"==e&&(a=V([], 952a.b.b,c,[{}],a.b),m(a)&&(f=a));return f}jx.prototype.Mb=function(a,c){var d={featureType:this.featureType,featureNS:this.featureNS};m(c)&&Gb(d,Or(this,a,c));return kx(this,a,[d])};function lx(){this.f=new Hv}w(lx,Gv);lx.prototype.a=function(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return this.b(a);return null};lx.prototype.b=function(a){this.version=Ba(a.getAttribute("version"));var c=this.f.b(a);if(!m(c))return null;c.version=this.version;c=V(c,mx,a,[]);return m(c)?c:null};function nx(a){var c=Y(a).split(" ");if(m(c)&&2==c.length)return a=+c[0],c=+c[1],isNaN(a)||isNaN(c)?void 0:[a,c]} 953var ox=[null,"http://www.opengis.net/wmts/1.0"],px=[null,"http://www.opengis.net/ows/1.1"],mx=T(ox,{Contents:S(function(a,c){return V({},qx,a,c)})}),qx=T(ox,{Layer:rp(function(a,c){return V({},rx,a,c)}),TileMatrixSet:rp(function(a,c){return V({},sx,a,c)})}),rx=T(ox,{Style:rp(function(a,c){var d=V({},tx,a,c);if(m(d)){var e="true"===a.getAttribute("isDefault");d.isDefault=e;return d}}),Format:rp(Y),TileMatrixSetLink:rp(function(a,c){return V({},ux,a,c)}),ResourceURL:rp(function(a){var c=a.getAttribute("format"), 954d=a.getAttribute("template");a=a.getAttribute("resourceType");var e={};m(c)&&(e.format=c);m(d)&&(e.template=d);m(a)&&(e.resourceType=a);return e})},T(px,{Title:S(Y),Abstract:S(Y),WGS84BoundingBox:S(function(a,c){var d=V([],vx,a,c);return 2!=d.length?void 0:Kd(d)}),Identifier:S(Y)})),tx=T(ox,{LegendURL:rp(function(a){var c={};c.format=a.getAttribute("format");c.href=Fv(a);return c})},T(px,{Title:S(Y),Identifier:S(Y)})),ux=T(ox,{TileMatrixSet:S(Y)}),vx=T(px,{LowerCorner:pp(nx),UpperCorner:pp(nx)}), 955sx=T(ox,{WellKnownScaleSet:S(Y),TileMatrix:rp(function(a,c){return V({},wx,a,c)})},T(px,{SupportedCRS:S(Y),Identifier:S(Y)})),wx=T(ox,{TopLeftCorner:S(nx),ScaleDenominator:S(ls),TileWidth:S(ns),TileHeight:S(ns),MatrixWidth:S(ns),MatrixHeight:S(ns)},T(px,{Identifier:S(Y)}));var xx=new ve(6378137);function yx(a){gd.call(this);a=m(a)?a:{};this.a=null;this.f=Ue;this.c=void 0;x(this,id("projection"),this.Ek,!1,this);x(this,id("tracking"),this.Fk,!1,this);m(a.projection)&&this.pg(Ae(a.projection));m(a.trackingOptions)&&this.ph(a.trackingOptions);this.Xd(m(a.tracking)?a.tracking:!1)}w(yx,gd);l=yx.prototype;l.Y=function(){this.Xd(!1);yx.aa.Y.call(this)};l.Ek=function(){var a=this.ng();null!=a&&(this.f=Ee(Ae("EPSG:4326"),a),null===this.a||this.set("position",this.f(this.a)))}; 956l.Fk=function(){if(fj){var a=this.og();a&&!m(this.c)?this.c=ba.navigator.geolocation.watchPosition(ra(this.bn,this),ra(this.cn,this),this.ag()):!a&&m(this.c)&&(ba.navigator.geolocation.clearWatch(this.c),this.c=void 0)}}; 957l.bn=function(a){a=a.coords;this.set("accuracy",a.accuracy);
957this.set("altitude",null===a.altitude?void 0:a.altitude);this.set("altitudeAccuracy",null===a.altitudeAccuracy?void 0:a.altitudeAccuracy);this.set("heading",null===a.heading?void 0:$b(a.heading));null===this.a?this.a=[a.longitude,a.latitude]:(this.a[0]=a.longitude,this.a[1]=a.latitude);var c=this.f(this.a);this.set("position",c);this.set("speed",null===a.speed?void 0:a.speed);a=Lf(xx,this.a,a.accuracy);a.Qb(this.f);this.set("accuracyGeometry", 958a);this.s()};l.cn=function(a){a.type="error";this.Xd(!1);C(this,a)};l.Di=function(){return this.get("accuracy")};l.Ei=function(){return this.get("accuracyGeometry")||null};l.Gi=function(){return this.get("altitude")};l.Hi=function(){return this.get("altitudeAccuracy")};l.Ck=function(){return this.get("heading")};l.Dk=function(){return this.get("position")};l.ng=function(){return this.get("projection")};l.mj=function(){return this.get("speed")};l.og=function(){return this.get("tracking")};l.ag=function(){return this.get("trackingOptions")}; 959l.pg=function(a){this.set("projection",a)};l.Xd=function(a){this.set("tracking",a)};l.ph=function(a){this.set("trackingOptions",a)};function zx(a,c,d){for(var e=[],f=a(0),g=a(1),h=c(f),k=c(g),n=[g,f],p=[k,h],q=[1,0],r={},t=1E5,v,B,z,D,A;0<--t&&0<q.length;)z=q.pop(),f=n.pop(),h=p.pop(),g=z.toString(),g in r||(e.push(h[0],h[1]),r[g]=!0),D=q.pop(),g=n.pop(),k=p.pop(),A=(z+D)/2,v=a(A),B=c(v),ef(B[0],B[1],h[0],h[1],k[0],k[1])<d?(e.push(k[0],k[1]),g=D.toString(),r[g]=!0):(q.push(D,A,A,z),p.push(k,B,B,h),n.push(g,v,v,f));return e}function Ax(a,c,d,e,f){var g=Ae("EPSG:4326");return zx(function(e){return[a,c+(d-c)*e]},Se(g,e),f)} 960function Bx(a,c,d,e,f){var g=Ae("EPSG:4326");return zx(function(e){return[c+(d-c)*e,a]},Se(g,e),f)};function Cx(a){a=m(a)?a:{};this.l=this.j=null;this.f=this.c=Infinity;this.g=this.i=-Infinity;this.B=m(a.targetSize)?a.targetSize:100;this.A=m(a.maxLines)?a.maxLines:100;this.b=[];this.a=[];this.D=m(a.strokeStyle)?a.strokeStyle:Dx;this.u=this.C=void 0;this.v=null;this.setMap(m(a.map)?a.map:null)}var Dx=new Cl({color:"rgba(0,0,0,0.2)"}),Ex=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001]; 961function Fx(a,c,d,e,f){var g=f;c=Ax(c,a.i,a.c,a.l,d);g=m(a.b[g])?a.b[g]:new N(null);fn(g,"XY",c);ie(g.R(),e)&&(a.b[f++]=g);return f}function Gx(a,c,d,e,f){var g=f;c=Bx(c,a.g,a.f,a.l,d);g=m(a.a[g])?a.a[g]:new N(null);fn(g,"XY",c);ie(g.R(),e)&&(a.a[f++]=g);return f}l=Cx.prototype;l.Gk=function(){return this.j};l.bj=function(){return this.b};l.gj=function(){return this.a}; 962l.eg=function(a){var c=a.vectorContext,d=a.frameState;a=d.extent;var e=d.viewState,f=e.center,g=e.projection,e=e.resolution,d=d.pixelRatio,d=e*e/(4*d*d);if(null===this.l||!Re(this.l,g)){var h=g.R(),k=g.j,n=k[2],p=k[1],q=k[0];this.c=k[3];this.f=n;this.i=p;this.g=q;k=Ae("EPSG:4326");this.C=Se(k,g);this.u=Se(g,k);this.v=this.u(ee(h));this.l=g}for(var g=this.v[0],h=this.v[1],k=-1,r,p=Math.pow(this.B*e,2),q=[],t=[],e=0,n=Ex.length;e<n;++e){r=Ex[e]/2;q[0]=g-r;q[1]=h-r;t[0]=g+r;t[1]=h+r;this.C(q,q);this.C(t, 963t);r=Math.pow(t[0]-q[0],2)+Math.pow(t[1]-q[1],2);if(r<=p)break;k=Ex[e]}e=k;if(-1==e)this.b.length=this.a.length=0;else{g=this.u(f);f=g[0];g=g[1];h=this.A;f=Math.floor(f/e)*e;p=Xb(f,this.g,this.f);n=Fx(this,p,d,a,0);for(k=0;p!=this.g&&k++<h;)p=Math.max(p-e,this.g),n=Fx(this,p,d,a,n);p=Xb(f,this.g,this.f);for(k=0;p!=this.f&&k++<h;)p=Math.min(p+e,this.f),n=Fx(this,p,d,a,n);this.b.length=n;g=Math.floor(g/e)*e;f=Xb(g,this.i,this.c);n=Gx(this,f,d,a,0);for(k=0;f!=this.i&&k++<h;)f=Math.max(f-e,this.i),n= 964Gx(this,f,d,a,n);f=Xb(g,this.i,this.c);for(k=0;f!=this.c&&k++<h;)f=Math.min(f+e,this.c),n=Gx(this,f,d,a,n);this.a.length=n}c.Fa(null,this.D);a=0;for(d=this.b.length;a<d;++a)f=this.b[a],c.yb(f,null);a=0;for(d=this.a.length;a<d;++a)f=this.a[a],c.yb(f,null)};l.setMap=function(a){null!==this.j&&(this.j.J("postcompose",this.eg,this),this.j.render());null!==a&&(a.G("postcompose",this.eg,this),a.render());this.j=a};function Hx(a,c,d,e,f,g,h){lk.call(this,a,c,d,0,e);this.l=f;this.a=new Image;null!==g&&(this.a.crossOrigin=g);this.f={};this.c=null;this.state=0;this.j=h}w(Hx,lk);
964Hx.prototype.b=function(a){if(m(a)){var c=ma(a);if(c in this.f)return this.f[c];a=xb(this.f)?this.a:this.a.cloneNode(!1);return this.f[c]=a}return this.a};Hx.prototype.C=function(){this.state=3;Sa(this.c,Xc);this.c=null;mk(this)}; 965Hx.prototype.v=function(){m(this.resolution)||(this.resolution=ge(this.extent)/this.a.height);this.state=2;Sa(this.c,Xc);this.c=null;mk(this)};Hx.prototype.load=function(){0==this.state&&(this.state=1,mk(this),this.c=[Vc(this.a,"error",this.C,!1,this),Vc(this.a,"load",this.v,!1,this)],this.j(this,this.l))};function Ix(a,c,d,e,f){Ch.call(this,a,c);this.j=d;this.a=new Image;null!==e&&(this.a.crossOrigin=e);this.c={};this.i=null;this.l=f}w(Ix,Ch);l=Ix.prototype;l.Y=function(){1==this.state&&Jx(this);Ix.aa.Y.call(this)};l.Qa=function(a){if(m(a)){var c=ma(a);if(c in this.c)return this.c[c];a=xb(this.c)?this.a:this.a.cloneNode(!1);return this.c[c]=a}return this.a};l.jb=function(){return this.j};l.Hk=function(){this.state=3;Jx(this);Dh(this)}; 966l.Ik=function(){this.state=this.a.naturalWidth&&this.a.naturalHeight?2:4;Jx(this);Dh(this)};l.load=function(){0==this.state&&(this.state=1,Dh(this),this.i=[Vc(this.a,"error",this.Hk,!1,this),Vc(this.a,"load",this.Ik,!1,this)],this.l(this,this.j))};function Jx(a){Sa(a.i,Xc);a.i=null};function Kx(a,c,d){return function(e,f,g){return d(a,c,e,f,g)}}function Lx(){};function Mx(a,c){ad.call(this);this.b=new wr(this);var d=a;c&&(d=Ig(a));this.b.Pa(d,"dragenter",this.Lm);d!=a&&this.b.Pa(d,"dragover",this.Mm);this.b.Pa(a,"dragover",this.Nm);this.b.Pa(a,"drop",this.Om)}w(Mx,ad);l=Mx.prototype;l.Zc=!1;l.Y=function(){Mx.aa.Y.call(this);this.b.Yc()};l.Lm=function(a){var c=a.b.dataTransfer;(this.Zc=!(!c||!(c.types&&(Ya(c.types,"Files")||Ya(c.types,"public.file-url"))||c.files&&0<c.files.length)))&&a.preventDefault()}; 967l.Mm=function(a){this.Zc&&(a.preventDefault(),a.b.dataTransfer.dropEffect="none")};l.Nm=function(a){if(this.Zc){a.preventDefault();a.c();a=a.b.dataTransfer;try{a.effectAllowed="all"}catch(c){}a.dropEffect="copy"}};l.Om=function(a){this.Zc&&(a.preventDefault(),a.c(),a=new yc(a.b),a.type="drop",C(this,a))};/* 968 Portions of this code are from MochiKit, received by 969 The Closure Authors under the MIT license. All other code is Copyright 970 2005-2009 The Closure Authors. All Rights Reserved. 971*/ 972function Nx(a,c){this.i=[];this.A=a;this.u=c||null;this.f=this.b=!1;this.c=void 0;this.C=this.D=this.j=!1;this.g=0;this.a=null;this.l=0}Nx.prototype.cancel=function(a){if(this.b)this.c instanceof Nx&&this.c.cancel();else{if(this.a){var c=this.a;delete this.a;a?c.cancel(a):(c.l--,0>=c.l&&c.cancel())}this.A?this.A.call(this.u,this):this.C=!0;this.b||(a=new Ox,Px(this),Qx(this,!1,a))}};Nx.prototype.v=function(a,c){this.j=!1;Qx(this,a,c)};function Qx(a,c,d){a.b=!0;a.c=d;a.f=!c;Rx(a)} 973function Px(a){if(a.b){if(!a.C)throw new Sx;a.C=!1}}Nx.prototype.Qc=function(a){Px(this);Qx(this,!0,a)};function Tx(a,c,d,e){a.i.push([c,d,e]);a.b&&Rx(a)}Nx.prototype.then=function(a,c,d){var e,f,g=new Nn(function(a,c){e=a;f=c});Tx(this,e,function(a){a instanceof Ox?g.cancel():f(a)});return g.then(a,c,d)};An(Nx);function Ux(a){return Va(a.i,function(a){return ka(a[1])})} 974function Rx(a){if(a.g&&a.b&&Ux(a)){var c=a.g,d=Vx[c];d&&(ba.clearTimeout(d.ga),delete Vx[c]);a.g=0}a.a&&(a.a.l--,delete a.a);for(var c=a.c,e=d=!1;a.i.length&&!a.j;){var f=a.i.shift(),g=f[0],h=f[1],f=f[2];if(g=a.f?h:g)try{var k=g.call(f||a.u,c);m(k)&&(a.f=a.f&&(k==c||k instanceof Error),a.c=c=k);if(Bn(c)||"function"===typeof ba.Promise&&c instanceof ba.Promise)e=!0,a.j=!0}catch(n){c=n,a.f=!0,Ux(a)||(d=!0)}}a.c=c;e&&(k=ra(a.v,a,!0),e=ra(a.v,a,!1),c instanceof Nx?(Tx(c,k,e),c.D=!0):c.then(k,e));d&&(c= 975new Wx(c),Vx[c.ga]=c,a.g=c.ga)}function Sx(){xa.call(this)}w(Sx,xa);Sx.prototype.message="Deferred has already fired";Sx.prototype.name="AlreadyCalledError";function Ox(){xa.call(this)}w(Ox,xa);Ox.prototype.message="Deferred was canceled";Ox.prototype.name="CanceledError";function Wx(a){this.ga=ba.setTimeout(ra(this.a,this),0);this.b=a}Wx.prototype.a=function(){delete Vx[this.ga];throw this.b;};var Vx={};
975function Xx(a,c){m(a.name)?(this.name=a.name,this.code=Yx[a.name]):(this.code=a.code,this.name=Zx(a.code));xa.call(this,Aa("%s %s",this.name,c))}w(Xx,xa);function Zx(a){var c=wb(Yx,function(c){return a==c});if(!m(c))throw Error("Invalid code: "+a);return c}var Yx={AbortError:3,EncodingError:5,InvalidModificationError:9,InvalidStateError:7,NotFoundError:1,NotReadableError:4,NoModificationAllowedError:6,PathExistsError:12,QuotaExceededError:10,SecurityError:2,SyntaxError:8,TypeMismatchError:11};function $x(a,c){tc.call(this,a.type,c)}w($x,tc);function ay(){ad.call(this);this.bb=new FileReader;this.bb.onloadstart=ra(this.b,this);this.bb.onprogress=ra(this.b,this);this.bb.onload=ra(this.b,this);this.bb.onabort=ra(this.b,this);this.bb.onerror=ra(this.b,this);this.bb.onloadend=ra(this.b,this)}w(ay,ad);ay.prototype.getError=function(){return this.bb.error&&new Xx(this.bb.error,"reading file")};ay.prototype.b=function(a){C(this,new $x(a,this))};ay.prototype.Y=function(){ay.aa.Y.call(this);delete this.bb}; 976function by(a){var c=new Nx;a.Pa("loadend",sa(function(a,c){var f=c.bb.result,g=c.getError();null==f||g?(Px(a),Qx(a,!1,g)):a.Qc(f);c.Yc()},c,a));return c};function cy(a){a=m(a)?a:{};Tk.call(this,{handleEvent:pe});this.g=m(a.formatConstructors)?a.formatConstructors:[];this.u=m(a.projection)?Ae(a.projection):null;this.f=null;this.a=void 0}w(cy,Tk);cy.prototype.Y=function(){m(this.a)&&Xc(this.a);cy.aa.Y.call(this)};cy.prototype.j=function(a){a=a.b.dataTransfer.files;var c,d,e;c=0;for(d=a.length;c<d;++c){var f=e=a[c],g=new ay,h=by(g);g.bb.readAsText(f,"");Tx(h,sa(this.l,e),null,this)}}; 977cy.prototype.l=function(a,c){var d=this.v,e=this.u;null===e&&(e=d.$().i);var d=this.g,f=[],g,h;g=0;for(h=d.length;g<h;++g){var k=new d[g],n;try{n=k.qa(c)}catch(p){n=null}if(null!==n){var k=k.Ea(c),k=Se(k,e),q,r;q=0;for(r=n.length;q<r;++q){var t=n[q],v=t.X();null!=v&&v.Qb(k);f.push(t)}}}C(this,new dy(ey,this,a,f,e))}; 978cy.prototype.setMap=function(a){m(this.a)&&(Xc(this.a),this.a=void 0);null!==this.f&&(sc(this.f),this.f=null);cy.aa.setMap.call(this,a);null!==a&&(this.f=new Mx(a.a),this.a=x(this.f,"drop",this.j,!1,this))};var ey="addfeatures";function dy(a,c,d,e,f){tc.call(this,a,c);this.features=e;this.file=d;this.projection=f}w(dy,tc);function fy(a,c){this.x=a;this.y=c}w(fy,Eg);fy.prototype.clone=function(){return new fy(this.x,this.y)};fy.prototype.scale=Eg.prototype.scale;fy.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};fy.prototype.rotate=function(a){var c=Math.cos(a);a=Math.sin(a);var d=this.y*c+this.x*a;this.x=this.x*c-this.y*a;this.y=d;return this};function gy(a){a=m(a)?a:{};fl.call(this,{handleDownEvent:hy,handleDragEvent:iy,handleUpEvent:jy});this.l=m(a.condition)?a.condition:cl;this.a=this.f=void 0;this.j=0;this.u=m(a.duration)?a.duration:400}w(gy,fl); 979function iy(a){if(el(a)){var c=a.map,d=c.Aa();a=a.pixel;a=new fy(a[0]-d[0]/2,d[1]/2-a[1]);d=Math.atan2(a.y,a.x);a=Math.sqrt(a.x*a.x+a.y*a.y);var e=c.$(),f=Sf(e);c.render();
979m(this.f)&&Uk(c,e,f.rotation-(d-this.f));this.f=d;m(this.a)&&Wk(c,e,f.resolution/a*this.a);m(this.a)&&(this.j=this.a/a);this.a=a}} 980function jy(a){if(!el(a))return!0;a=a.map;var c=a.$();Uf(c,-1);var d=Sf(c),e=this.j-1,f=d.rotation,f=c.constrainRotation(f,0);Uk(a,c,f,void 0,void 0);d=d.resolution;f=this.u;d=c.constrainResolution(d,0,e);Wk(a,c,d,void 0,f);this.j=0;return!1}function hy(a){return el(a)&&this.l(a)?(Uf(a.map.$(),1),this.a=this.f=void 0,!0):!1};function ky(a,c){tc.call(this,a);this.feature=c}w(ky,tc); 981function ly(a){fl.call(this,{handleDownEvent:my,handleEvent:ny,handleUpEvent:oy});this.ba=null;this.T=!1;this.lb=m(a.source)?a.source:null;this.Ta=m(a.features)?a.features:null;this.Gh=m(a.snapTolerance)?a.snapTolerance:12;this.Z=a.type;this.f=py(this.Z);this.La=m(a.minPoints)?a.minPoints:this.f===qy?3:2;this.wa=m(a.maxPoints)?a.maxPoints:Infinity;var c=a.geometryFunction;if(!m(c))if("Circle"===this.Z)c=function(a,c){var d=m(c)?c:new Xm([NaN,NaN]);d.xf(a[0],Math.sqrt(td(a[0],a[1])));return d};else{var d, 982c=this.f;c===ry?d=vf:c===sy?d=N:c===qy&&(d=E);c=function(a,c){var g=c;m(g)?g.ia(a):g=new d(a);return g}}this.D=c;this.K=this.u=this.a=this.B=this.j=this.l=null;this.ji=m(a.clickTolerance)?a.clickTolerance*a.clickTolerance:36;this.ca=new M({source:new W({useSpatialIndex:!1,wrapX:m(a.wrapX)?a.wrapX:!1}),style:m(a.style)?a.style:ty()});this.kb=a.geometryName;this.Zh=m(a.condition)?a.condition:bl;this.pa=m(a.freehandCondition)?a.freehandCondition:cl;x(this,id("active"),this.vh,!1,this)}w(ly,fl); 983function ty(){var a=Ml();return function(c){return a[c.X().U()]}}l=ly.prototype;l.setMap=function(a){ly.aa.setMap.call(this,a);this.vh()};function ny(a){var c=!this.T;this.T&&a.type===ek?(uy(this,a),c=!1):a.type===dk?c=vy(this,a):a.type===Xj&&(c=!1);return gl.call(this,a)&&c}function my(a){if(this.Zh(a))return this.ba=a.pixel,!0;if(this.f!==sy&&this.f!==qy||!this.pa(a))return!1;this.ba=a.pixel;this.T=!0;null===this.l&&wy(this,a);return!0} 984function oy(a){this.T=!1;var c=this.ba,d=a.pixel,e=c[0]-d[0],c=c[1]-d[1],d=!0;e*e+c*c<=this.ji&&(vy(this,a),null===this.l?(wy(this,a),this.f===ry&&this.$c()):this.f===xy?this.$c():yy(this,a)?this.$c():uy(this,a),d=!1);return d} 985function vy(a,c){if(null===a.l){var d=c.coordinate.slice();null===a.B?(a.B=new zn(new vf(d)),zy(a)):a.B.X().ia(d)}else{var d=c.coordinate,e=a.j.X(),f;a.f===ry?f=a.a:a.f===qy?(f=a.a[0],f=f[f.length-1],yy(a,c)&&(d=a.l.slice())):(f=a.a,f=f[f.length-1]);f[0]=d[0];f[1]=d[1];a.D(a.a,e);null===a.B||a.B.X().ia(d);e instanceof E&&a.f!==qy?(null===a.u&&(a.u=new zn(new N(null))),e=e.Wf(0),d=a.u.X(),fn(d,e.a,e.o)):null!==a.K&&(d=a.u.X(),d.ia(a.K));zy(a)}return!0} 986function yy(a,c){var d=!1;if(null!==a.j){var e=!1,f=[a.l];a.f===sy?e=a.a.length>a.La:a.f===qy&&(e=a.a[0].length>a.La,f=[a.a[0][0],a.a[0][a.a[0].length-2]]);if(e)for(var e=c.map,g=0,h=f.length;g<h;g++){var k=f[g],n=e.xa(k),p=c.pixel,d=p[0]-n[0],n=p[1]-n[1],p=a.T&&a.pa(c)?1:a.Gh;if(d=Math.sqrt(d*d+n*n)<=p){a.l=k;break}}}return d} 987function wy(a,c){var d=c.coordinate;a.l=d;a.f===ry?a.a=d.slice():a.f===qy?(a.a=[[d.slice(),d.slice()]],a.K=a.a[0]):(a.a=[d.slice(),d.slice()],a.f===xy&&(a.K=a.a));null!==a.K&&(a.u=new zn(new N(a.K)));d=a.D(a.a);a.j=new zn;m(a.kb)&&a.j.Ic(a.kb);a.j.ra(d);zy(a);C(a,new ky("drawstart",a.j))} 988function uy(a,c){var d=c.coordinate,e=a.j.X(),f,g;if(a.f===sy)a.l=d.slice(),g=a.a,g.push(d.slice()),f=g.length>a.wa,a.D(g,e);else if(a.f===qy){g=a.a[0];g.push(d.slice());if(f=g.length>a.wa)a.l=g[0];a.D(a.a,e)}zy(a);f&&a.$c()}l.zn=function(){var a=this.j.X(),c,d;this.f===sy?(c=this.a,c.splice(-2,1),this.D(c,a)):this.f===qy&&(c=this.a[0],c.splice(-2,1),d=this.u.X(),d.ia(c),this.D(this.a,a));0===c.length&&(this.l=null);zy(this)}; 989l.$c=function(){var a=Ay(this),c=this.a,d=a.X();this.f===sy?(c.pop(),this.D(c,d)):this.f===qy&&(c[0].pop(),c[0].push(c[0][0]),this.D(c,d));"MultiPoint"===this.Z?a.ra(new jn([c])):"MultiLineString"===this.Z?a.ra(new O([c])):"MultiPolygon"===this.Z&&a.ra(new R([c]));C(this,new ky("drawend",a));null===this.Ta||this.Ta.push(a);null===this.lb||this.lb.Cc(a)};function Ay(a){a.l=null;var c=a.j;null!==c&&(a.j=null,a.B=null,a.u=null,a.ca.da().clear(!0));return c}l.nc=oe; 990function zy(a){var c=[];null===a.j||c.push(a.j);null===a.u||c.push(a.u);null===a.B||c.push(a.B);a=a.ca.da();a.clear(!0);a.Pb(c)}l.vh=function(){var a=this.v,c=this.c();null!==a&&c||Ay(this);this.ca.setMap(c?a:null)};function py(a){var c;"Point"===a||"MultiPoint"===a?c=ry:"LineString"===a||"MultiLineString"===a?c=sy:"Polygon"===a||"MultiPolygon"===a?c=qy:"Circle"===a&&(c=xy);return c}var ry="Point",sy="LineString",qy="Polygon",xy="Circle";function By(a,c,d){tc.call(this,a);this.features=c;this.mapBrowserPointerEvent=d}w(By,tc); 991function Cy(a){fl.call(this,{handleDownEvent:Dy,handleDragEvent:Ey,handleEvent:Fy,handleUpEvent:Gy});this.pa=m(a.deleteCondition)?a.deleteCondition:ue(bl,al);this.ca=this.f=null;this.Z=[0,0];this.K=!1;this.a=new Fp;this.D=m(a.pixelTolerance)?a.pixelTolerance:10;this.l=this.ba=!1;this.j=null;this.B=new M({source:new W({useSpatialIndex:!1,wrapX:m(a.wrapX)?a.wrapX:!1}),style:m(a.style)?a.style:Hy(),updateWhileAnimating:!0,updateWhileInteracting:!0});this.T={Point:this.ml,LineString:this.vg,LinearRing:this.vg, 992Polygon:this.nl,MultiPoint:this.kl,MultiLineString:this.jl,MultiPolygon:this.ll,GeometryCollection:this.il};this.u=a.features;this.u.forEach(this.jf,this);x(this.u,"add",this.gl,!1,this);x(this.u,"remove",this.hl,!1,this)}w(Cy,fl);l=Cy.prototype;l.jf=function(a){var c=a.X();m(this.T[c.U()])&&this.T[c.U()].call(this,a,c);c=this.v;null===c||Iy(this,this.Z,c);x(a,"change",this.ug,!1,this)};
992function Jy(a,c){Ky(a,c);null!==a.f&&0===a.u.Ib()&&(a.B.da().dc(a.f),a.f=null);Wc(c,"change",a.ug,!1,a)} 993function Ky(a,c){var d=a.a,e=[];d.forEach(function(a){c===a.feature&&e.push(a)});for(var f=e.length-1;0<=f;--f)d.remove(e[f])}l.setMap=function(a){this.B.setMap(a);Cy.aa.setMap.call(this,a)};l.gl=function(a){this.jf(a.element)};l.ug=function(a){this.l||(a=a.target,Jy(this,a),this.jf(a))};l.hl=function(a){Jy(this,a.element)};l.ml=function(a,c){var d=c.W(),d={feature:a,geometry:c,ha:[d,d]};this.a.oa(c.R(),d)}; 994l.kl=function(a,c){var d=c.W(),e,f,g;f=0;for(g=d.length;f<g;++f)e=d[f],e={feature:a,geometry:c,depth:[f],index:f,ha:[e,e]},this.a.oa(c.R(),e)};l.vg=function(a,c){var d=c.W(),e,f,g,h;e=0;for(f=d.length-1;e<f;++e)g=d.slice(e,e+2),h={feature:a,geometry:c,index:e,ha:g},this.a.oa(Kd(g),h)};l.jl=function(a,c){var d=c.W(),e,f,g,h,k,n,p;h=0;for(k=d.length;h<k;++h)for(e=d[h],f=0,g=e.length-1;f<g;++f)n=e.slice(f,f+2),p={feature:a,geometry:c,depth:[h],index:f,ha:n},this.a.oa(Kd(n),p)}; 995l.nl=function(a,c){var d=c.W(),e,f,g,h,k,n,p;h=0;for(k=d.length;h<k;++h)for(e=d[h],f=0,g=e.length-1;f<g;++f)n=e.slice(f,f+2),p={feature:a,geometry:c,depth:[h],index:f,ha:n},this.a.oa(Kd(n),p)};l.ll=function(a,c){var d=c.W(),e,f,g,h,k,n,p,q,r,t;n=0;for(p=d.length;n<p;++n)for(q=d[n],h=0,k=q.length;h<k;++h)for(e=q[h],f=0,g=e.length-1;f<g;++f)r=e.slice(f,f+2),t={feature:a,geometry:c,depth:[h,n],index:f,ha:r},this.a.oa(Kd(r),t)}; 996l.il=function(a,c){var d,e=c.f;for(d=0;d<e.length;++d)this.T[e[d].U()].call(this,a,e[d])};function Ly(a,c){var d=a.f;null===d?(d=new zn(new vf(c)),a.f=d,a.B.da().Cc(d)):d.X().ia(c)}function My(a,c){return a.index-c.index} 997function Dy(a){Iy(this,a.pixel,a.map);this.j=[];var c=this.f;if(null!==c){var d=[],c=c.X().W(),e=Kd([c]),e=Hp(this.a,e),f={};e.sort(My);for(var g=0,h=e.length;g<h;++g){var k=e[g],n=k.ha,p=ma(k.feature),q=k.depth;q&&(p+="-"+q.join("-"));f[p]||(f[p]=Array(2));if(rd(n[0],c)&&!f[p][0])this.j.push([k,0]),f[p][0]=k;else if(rd(n[1],c)&&!f[p][1]){if("LineString"!==k.geometry.U()&&"MultiLineString"!==k.geometry.U()||!f[p][0]||0!==f[p][0].index)this.j.push([k,1]),f[p][1]=k}else ma(n)in this.ca&&!f[p][0]&&!f[p][1]&& 998d.push([k,c])}for(g=d.length-1;0<=g;--g)this.ek.apply(this,d[g]);C(this,new By("modifystart",this.u,a))}return null!==this.f} 999function Ey(a){this.K=!1;a=a.coordinate;for(var c=0,d=this.j.length;c<d;++c){for(var e=this.j[c],f=e[0],g=f.depth,h=f.geometry,k=h.W(),n=f.ha,e=e[1];a.length<h.H;)a.push(0);switch(h.U()){case "Point":k=a;n[0]=n[1]=a;break;case "MultiPoint":k[f.index]=a;n[0]=n[1]=a;break;case "LineString":k[f.index+e]=a;n[e]=a;break;case "MultiLineString":k[g[0]][f.index+e]=a;n[e]=a;break;case "Polygon":k[g[0]][f.index+e]=a;n[e]=a;break;case "MultiPolygon":k[g[1]][g[0]][f.index+e]=a,n[e]=a}f=h;this.l=!0;f.ia(k);this.l= 1000!1}Ly(this,a)}function Gy(a){for(var c,d=this.j.length-1;0<=d;--d)c=this.j[d][0],this.a.update(Kd(c.ha),c);C(this,new By("modifyend",this.u,a));return!1} 1001function Fy(a){var c;a.map.$().c.slice()[1]||a.type!=dk||this.A||(this.Z=a.pixel,Iy(this,a.pixel,a.map));if(null!==this.f&&this.pa(a))if(a.type==Yj&&this.K)c=!0;else{this.f.X();c=this.j;var d={},e,f,g,h,k,n,p,q,r;for(k=c.length-1;0<=k;--k)if(g=c[k],q=g[0],h=q.geometry,f=h.W(),r=ma(q.feature),q.depth&&(r+="-"+q.depth.join("-")),p=e=n=void 0,0===g[1]?(e=q,n=q.index):1==g[1]&&(p=q,n=q.index+1),r in d||(d[r]=[p,e,n]),g=d[r],m(p)&&(g[0]=p),m(e)&&(g[1]=e),m(g[0])&&m(g[1])){e=f;r=!1;p=n-1;switch(h.U()){case "MultiLineString":f[q.depth[0]].splice(n, 10021);r=!0;break;case "LineString":f.splice(n,1);r=!0;break;case "MultiPolygon":e=e[q.depth[1]];case "Polygon":e=e[q.depth[0]],4<e.length&&(n==e.length-1&&(n=0),e.splice(n,1),r=!0,0===n&&(e.pop(),e.push(e[0]),p=e.length-1))}r&&(this.a.remove(g[0]),this.a.remove(g[1]),e=h,this.l=!0,e.ia(f),this.l=!1,f={depth:q.depth,feature:q.feature,geometry:q.geometry,index:p,ha:[g[0].ha[0],g[1].ha[1]]},this.a.oa(Kd(f.ha),f),Ny(this,h,n,q.depth,-1),null!==this.f&&(this.B.da().dc(this.f),this.f=null))}c=!0}a.type==Yj&& 1003(this.K=!1);return gl.call(this,a)&&!c} 1004function Iy(a,c,d){function e(a,c){return ud(f,a.ha)-ud(f,c.ha)}var f=d.ta(c),g=d.ta([c[0]-a.D,c[1]+a.D]),h=d.ta([c[0]+a.D,c[1]-a.D]),g=Kd([g,h]),g=Hp(a.a,g);if(0<g.length){g.sort(e);var h=g[0].ha,k=od(f,h),n=d.xa(k);
1004if(Math.sqrt(td(c,n))<=a.D){c=d.xa(h[0]);d=d.xa(h[1]);c=td(n,c);d=td(n,d);a.ba=Math.sqrt(Math.min(c,d))<=a.D;a.ba&&(k=c>d?h[1]:h[0]);Ly(a,k);d={};d[ma(h)]=!0;c=1;for(n=g.length;c<n;++c)if(k=g[c].ha,rd(h[0],k[0])&&rd(h[1],k[1])||rd(h[0],k[1])&&rd(h[1],k[0]))d[ma(k)]=!0;else break;a.ca= 1005d;return}}null!==a.f&&(a.B.da().dc(a.f),a.f=null)} 1006l.ek=function(a,c){for(var d=a.ha,e=a.feature,f=a.geometry,g=a.depth,h=a.index,k;c.length<f.H;)c.push(0);switch(f.U()){case "MultiLineString":k=f.W();k[g[0]].splice(h+1,0,c);break;case "Polygon":k=f.W();k[g[0]].splice(h+1,0,c);break;case "MultiPolygon":k=f.W();k[g[1]][g[0]].splice(h+1,0,c);break;case "LineString":k=f.W();k.splice(h+1,0,c);break;default:return}this.l=!0;f.ia(k);this.l=!1;k=this.a;k.remove(a);Ny(this,f,h,g,1);var n={ha:[d[0],c],feature:e,geometry:f,depth:g,index:h};k.oa(Kd(n.ha),n); 1007this.j.push([n,1]);d={ha:[c,d[1]],feature:e,geometry:f,depth:g,index:h+1};k.oa(Kd(d.ha),d);this.j.push([d,0]);this.K=!0};function Ny(a,c,d,e,f){Jp(a.a,c.R(),function(a){a.geometry===c&&(!m(e)||ib(a.depth,e))&&a.index>d&&(a.index+=f)})}function Hy(){var a=Ml();return function(){return a.Point}};function Oy(a,c,d,e){tc.call(this,a);this.selected=c;this.deselected=d;this.mapBrowserEvent=e}w(Oy,tc); 1008function Py(a){Tk.call(this,{handleEvent:Qy});a=m(a)?a:{};this.u=m(a.condition)?a.condition:al;this.j=m(a.addCondition)?a.addCondition:oe;this.K=m(a.removeCondition)?a.removeCondition:oe;this.T=m(a.toggleCondition)?a.toggleCondition:cl;this.l=m(a.multi)?a.multi:!1;this.f=m(a.filter)?a.filter:pe;var c;if(m(a.layers))if(ka(a.layers))c=a.layers;else{var d=a.layers;c=function(a){return Ya(d,a)}}else c=pe;this.g=c;this.a=new M({source:new W({useSpatialIndex:!1,wrapX:a.wrapX}),style:m(a.style)?a.style: 1009Ry(),updateWhileAnimating:!0,updateWhileInteracting:!0});a=this.a.da().c;x(a,"add",this.A,!1,this);x(a,"remove",this.B,!1,this)}w(Py,Tk);Py.prototype.D=function(){return this.a.da().c}; 1010function Qy(a){if(!this.u(a))return!0;var c=this.j(a),d=this.K(a),e=this.T(a),f=!c&&!d&&!e,g=a.map,h=this.a.da().c,k=[],n=[],p=!1;if(f)g.ad(a.pixel,function(a,c){if(this.f(a,c))return n.push(a),!this.l},this,this.g),0<n.length&&1==h.Ib()&&h.item(0)==n[0]||(p=!0,0!==h.Ib()&&(k=Array.prototype.concat(h.a),h.clear()),h.cf(n));else{g.ad(a.pixel,function(a,f){-1==Ra(h.a,a)?(c||e)&&this.f(a,f)&&n.push(a):(d||e)&&k.push(a)},this,this.g);for(f=k.length-1;0<=f;--f)h.remove(k[f]);h.cf(n);if(0<n.length||0<k.length)p= 1011!0}p&&C(this,new Oy("select",n,k,a));return $k(a)}Py.prototype.setMap=function(a){var c=this.v,d=this.a.da().c;null===c||d.forEach(c.th,c);Py.aa.setMap.call(this,a);this.a.setMap(a);null===a||d.forEach(a.qh,a)};function Ry(){var a=Ml();cb(a.Polygon,a.LineString);cb(a.GeometryCollection,a.LineString);return function(c){return a[c.X().U()]}}Py.prototype.A=function(a){a=a.element;var c=this.v;null===c||c.qh(a)};Py.prototype.B=function(a){a=a.element;var c=this.v;null===c||c.th(a)};function Sy(a){fl.call(this,{handleEvent:Ty,handleDownEvent:pe,handleUpEvent:Uy});a=m(a)?a:{};this.l=m(a.source)?a.source:null;this.j=m(a.features)?a.features:null;this.ba=[];this.D={};this.B={};this.T={};this.u={};this.K=null;this.f=m(a.pixelTolerance)?a.pixelTolerance:10;this.ca=ra(Vy,this);this.a=new Fp;this.Z={Point:this.tl,LineString:this.yg,LinearRing:this.yg,Polygon:this.ul,MultiPoint:this.rl,MultiLineString:this.ql,MultiPolygon:this.sl,GeometryCollection:this.pl}}w(Sy,fl);l=Sy.prototype; 1012l.fd=function(a,c){var d=m(c)?c:!0,e=a.X(),f=this.Z[e.U()];if(m(f)){var g=ma(a);this.T[g]=e.R(Ld());f.call(this,a,e);d&&(this.B[g]=e.G("change",ra(this.Dj,this,a),this),this.D[g]=a.G(id(a.a),this.ol,this))}};l.Ai=function(a){this.fd(a)};l.Bi=function(a){this.gd(a)};l.wg=function(a){var c;a instanceof Op?c=a.feature:a instanceof rg&&(c=a.element);this.fd(c)};l.xg=function(a){var c;a instanceof Op?c=a.feature:a instanceof rg&&(c=a.element);this.gd(c)}; 1013l.ol=function(a){a=a.i;this.gd(a,!0);this.fd(a,!0)};l.Dj=function(a){if(this.A){var c=ma(a);c in this.u||(this.u[c]=a)}else this.uh(a)};l.gd=function(a,c){var d=m(c)?c:!0,e=ma(a),f=this.T[e];if(f){var g=this.a,h=[];Jp(g,f,function(c){a===c.feature&&h.push(c)});for(f=h.length-1;0<=f;--f)g.remove(h[f]);d&&(Xc(this.B[e]),delete this.B[e],Xc(this.D[e]),delete this.D[e])}}; 1014l.setMap=function(a){var c=this.v,d=this.ba,e;null===this.j?null===this.l||(e=this.l.Dc()):e=this.j;c&&(Sa(d,ed),d.length=0,e.forEach(this.Bi,this));Sy.aa.setMap.call(this,a);a&&(null!==this.j?(d.push(this.j.G("add",this.wg,this)),d.push(this.j.G("remove",this.xg,this))):null!==this.l&&(d.push(this.l.G("addfeature",this.wg,this)),d.push(this.l.G("removefeature",this.xg,this))),e.forEach(this.Ai,this))};l.nc=oe;l.uh=function(a){this.gd(a,!1);this.fd(a,!1)}; 1015l.pl=function(a,c){var d,e=c.f;for(d=0;d<e.length;++d)this.Z[e[d].U()].call(this,a,e[d])};l.yg=function(a,c){var d=c.W(),e,f,g,h;e=0;for(f=d.length-1;e<f;++e)g=d.slice(e,e+2),h={feature:a,ha:g},this.a.oa(Kd(g),h)};l.ql=function(a,c){var d=c.W(),e,f,g,h,k,n,p;h=0;for(k=d.length;h<k;++h)for(e=d[h],f=0,g=e.length-1;f<g;++f)n=e.slice(f,f+2),p={feature:a,ha:n},this.a.oa(Kd(n),p)};l.rl=function(a,c){var d=c.W(),e,f,g;f=0;for(g=d.length;f<g;++f)e=d[f],e={feature:a,ha:[e,e]},this.a.oa(c.R(),e)}; 1016l.sl=function(a,c){var d=c.W(),e,f,g,h,k,n,p,q,r,t;n=0;for(p=d.length;n<p;++n)for(q=d[n],h=0,k=q.length;h<k;++h)for(e=q[h],f=0,g=e.length-1;f<g;++f)r=e.slice(f,f+2),t={feature:a,ha:r},this.a.oa(Kd(r),t)};l.tl=function(a,c){var d=c.W(),d={feature:a,ha:[d,d]};this.a.oa(c.R(),d)};l.ul=function(a,c){var d=c.W(),e,f,g,h,k,n,p;h=0;for(k=d.length;h<k;++h)for(e=d[h],f=0,g=e.length-1;f<g;++f)n=e.slice(f,f+2),p={feature:a,ha:n},this.a.oa(Kd(n),p)}; 1017function Ty(a){var c,d,e=a.pixel,f=a.coordinate;c=a.map;var g=c.ta([e[0]-this.f,e[1]+this.f]);d=c.ta([e[0]+this.f,e[1]-this.f]);var g=Kd([g,d]),h=Hp(this.a,g),k=!1,g=!1,n=null;d=null;0<h.length&&(this.K=f,h.sort(this.ca),h=h[0].ha,n=od(f,h),d=c.xa(n),Math.sqrt(td(e,d))<=this.f&&(g=!0,e=c.xa(h[0]),f=c.xa(h[1]),e=td(d,e),f=td(d,f),k=Math.sqrt(Math.min(e,f))<=this.f))&&(n=e>f?h[1]:h[0],d=c.xa(n),d=[Math.round(d[0]),Math.round(d[1])]);c=n;g&&(a.coordinate=c.slice(0,2),a.pixel=d);return gl.call(this,a)} 1018function Uy(){var a=sb(this.u);a.length&&(Sa(a,this.uh,this),this.u={});return!1}function Vy(a,c){return ud(this.K,a.ha)-ud(this.K,c.ha)};function Wy(a){fl.call(this,{handleDownEvent:Xy,handleDragEvent:Yy,handleMoveEvent:Zy,handleUpEvent:$y});this.l=void 0;this.a=null;this.f=m(a.features)?a.features:null;this.j=null}w(Wy,fl);function Xy(a){this.j=az(this,a.pixel,a.map);return null===this.a&&null!==this.j?(this.a=a.coordinate,Zy.call(this,a),!0):!1}function $y(a){return null!==this.a?(this.a=null,Zy.call(this,a),!0):!1} 1019function Yy(a){if(null!==this.a){a=a.coordinate;var c=a[0]-this.a[0],d=a[1]-this.a[1];if(null!==this.f)this.f.forEach(function(a){var e=a.X();e.translate(c,d);a.ra(e)});else if(null===this.j){var e=this.j.X();e.translate(c,d);this.j.ra(e)}this.a=a}} 1020function Zy(a){var c=a.map.zc();if(a=a.map.ad(a.pixel,function(a){return a})){var d=!1;null!==this.f&&Ya(this.f.a,a)&&(d=!0);this.l=c.style.cursor;c.style.cursor=null===this.a?d?"-webkit-grab":"pointer":"-webkit-grabbing";c.style.cursor=null===this.a?"grabbing":d?"grab":"pointer"}else c.style.cursor=m(this.l)?this.l:"",this.l=void 0}function az(a,c,d){var e=null;c=d.ad(c,function(a){return a});null!==a.f&&Ya(a.f.a,c)&&(e=c);return e};function Z(a){a=m(a)?a:{};var c=Cb(a);delete c.gradient;delete c.radius;delete c.blur;delete c.shadow;delete c.weight;M.call(this,c);this.f=null;this.Z=m(a.shadow)?a.shadow:250;this.K=void 0;this.A=null;x(this,id("gradient"),this.Ej,!1,this);this.kh(m(a.gradient)?a.gradient:bz);this.gh(m(a.blur)?a.blur:15);this.Ag(m(a.radius)?a.radius:8);x(this,[id("blur"),id("radius")],this.fg,!1,this);this.fg();var d=m(a.weight)?a.weight:"weight",e;ia(d)?e=function(a){return a.get(d)}:e=d;this.i(ra(function(a){a= 1021e(a);a=m(a)?Xb(a,0,1):1;var c=255*a|0,d=this.A[c];m(d)||(d=[new Il({image:new Bk({opacity:a,src:this.K})})],this.A[c]=d);return d},this));this.set("renderOrder",null);x(this,"render",this.Wj,!1,this)}w(Z,M);var bz=["#00f","#0ff","#0f0","#ff0","#f00"];l=Z.prototype;l.Sf=function(){return this.get("blur")};l.Vf=function(){return this.get("gradient")};l.zg=function(){return this.get("radius")}; 1022l.Ej=function(){for(var a=this.Vf(),c=Ui(1,256),d=c.createLinearGradient(0,0,1,256),e=1/(a.length-1),f=0,g=a.length;f<g;++f)d.addColorStop(f*e,a[f]);c.fillStyle=d;c.fillRect(0,0,1,256);this.f=c.getImageData(0,0,1,256).data};l.fg=function(){var a=this.zg(),c=this.Sf(),d=a+c+1,e=2*d,e=Ui(e,e);e.shadowOffsetX=e.shadowOffsetY=this.Z;e.shadowBlur=c;e.shadowColor="#000";e.beginPath();c=d-this.Z;e.arc(c,c,a,0,2*Math.PI,!0);e.fill();this.K=e.canvas.toDataURL();this.A=Array(256);this.s()}; 1023l.Wj=function(a){a=a.context;var c=a.canvas,c=a.getImageData(0,0,c.width,c.height),d=c.data,e,f,g;e=0;for(f=d.length;e<f;e+=4)if(g=4*d[e+3])d[e]=this.f[g],d[e+1]=this.f[g+1],d[e+2]=this.f[g+2];a.putImageData(c,0,0)};l.gh=function(a){this.set("blur",a)};l.kh=function(a){this.set("gradient",a)};l.Ag=function(a){this.set("radius",a)};function cz(a,c){var d=c||{},e=d.document||document,f=Qg("SCRIPT"),g={fh:f,oc:void 0},h=new Nx(dz,g),k=null,n=null!=d.timeout?d.timeout:5E3;0<n&&(k=window.setTimeout(function(){ez(f,!0);var c=new fz(gz,"Timeout reached for loading script "+a);Px(h);Qx(h,!1,c)},n),g.oc=k);f.onload=f.onreadystatechange=function(){f.readyState&&"loaded"!=f.readyState&&"complete"!=f.readyState||(ez(f,d.vi||!1,k),h.Qc(null))};
1023f.onerror=function(){ez(f,!0,k);var c=new fz(hz,"Error while loading script "+a);Px(h);Qx(h,!1, 1024c)};g=d.attributes||{};Gb(g,{type:"text/javascript",charset:"UTF-8",src:a});Kg(f,g);iz(e).appendChild(f);return h}function iz(a){var c=a.getElementsByTagName("HEAD");return c&&0!=c.length?c[0]:a.documentElement}function dz(){if(this&&this.fh){var a=this.fh;a&&"SCRIPT"==a.tagName&&ez(a,!0,this.oc)}}function ez(a,c,d){null!=d&&ba.clearTimeout(d);a.onload=ca;a.onerror=ca;a.onreadystatechange=ca;c&&window.setTimeout(function(){Ug(a)},0)}var hz=0,gz=1; 1025function fz(a,c){var d="Jsloader error (code #"+a+")";c&&(d+=": "+c);xa.call(this,d);this.code=a}w(fz,xa);function jz(a,c){this.a=new rt(a);this.b=c?c:"callback";this.oc=5E3}var kz=0;function lz(a,c,d,e){c=c||null;var f="_"+(kz++).toString(36)+ta().toString(36);ba._callbacks_||(ba._callbacks_={});var g=a.a.clone();if(c)for(var h in c)if(!c.hasOwnProperty||c.hasOwnProperty(h)){var k=g,n=h,p=c[h];ga(p)||(p=[String(p)]);Kt(k.c,n,p)}d&&(ba._callbacks_[f]=mz(f,d),d=a.b,h="_callbacks_."+f,ga(h)||(h=[String(h)]),Kt(g.c,d,h));a=cz(g.toString(),{timeout:a.oc,vi:!0});Tx(a,null,nz(f,c,e),void 0)} 1026jz.prototype.cancel=function(a){a&&(a.wi&&a.wi.cancel(),a.ga&&oz(a.ga,!1))};function nz(a,c,d){return function(){oz(a,!1);d&&d(c)}}function mz(a,c){return function(d){oz(a,!0);c.apply(void 0,arguments)}}function oz(a,c){ba._callbacks_[a]&&(c?delete ba._callbacks_[a]:ba._callbacks_[a]=ca)};function pz(a){var c=/\{z\}/g,d=/\{x\}/g,e=/\{y\}/g,f=/\{-y\}/g;return function(g){return null===g?void 0:a.replace(c,g[0].toString()).replace(d,g[1].toString()).replace(e,function(){return(-g[2]-1).toString()}).replace(f,function(){return((1<<g[0])+g[2]).toString()})}}function qz(a){return rz(Ua(a,pz))}function rz(a){return 1===a.length?a[0]:function(c,d,e){return null===c?void 0:a[Yb((c[1]<<c[0])+c[2],a.length)](c,d,e)}}function sz(){} 1027function tz(a){var c=[],d=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(d){var e=d[2].charCodeAt(0),f;for(f=d[1].charCodeAt(0);f<=e;++f)c.push(a.replace(d[0],String.fromCharCode(f)))}else c.push(a);return c};function uz(a){Sh.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:m(a.state)?a.state:void 0,tileGrid:a.tileGrid,tilePixelRatio:a.tilePixelRatio,wrapX:a.wrapX});this.tileUrlFunction=m(a.tileUrlFunction)?a.tileUrlFunction:sz;this.crossOrigin=m(a.crossOrigin)?a.crossOrigin:null;this.tileLoadFunction=m(a.tileLoadFunction)?a.tileLoadFunction:vz;this.tileClass=m(a.tileClass)?a.tileClass:Ix}w(uz,Sh);function vz(a,c){a.Qa().src=c}l=uz.prototype; 1028l.Ub=function(a,c,d,e,f){var g=this.hb(a,c,d);if(zh(this.a,g))return this.a.get(g);a=[a,c,d];c=Vh(this,a,f);e=null===c?void 0:this.tileUrlFunction(c,e,f);e=new this.tileClass(a,m(e)?0:4,m(e)?e:"",this.crossOrigin,this.tileLoadFunction);x(e,"change",this.Yl,!1,this);this.a.set(g,e);return e};l.Xa=function(){return this.tileLoadFunction};l.Ya=function(){return this.tileUrlFunction}; 1029l.Yl=function(a){a=a.target;switch(a.state){case 1:C(this,new Wh("tileloadstart",a));break;case 2:C(this,new Wh("tileloadend",a));break;case 3:C(this,new Wh("tileloaderror",a))}};l.eb=function(a){this.a.clear();this.tileLoadFunction=a;this.s()};l.Da=function(a){this.a.clear();this.tileUrlFunction=a;this.s()};l.Bf=function(a,c,d){a=this.hb(a,c,d);zh(this.a,a)&&this.a.get(a)};function wz(a){uz.call(this,{crossOrigin:"anonymous",opaque:!0,projection:Ae("EPSG:3857"),state:"loading",tileLoadFunction:a.tileLoadFunction,wrapX:m(a.wrapX)?a.wrapX:!0});this.g=m(a.culture)?a.culture:"en-us";this.f=m(a.maxZoom)?a.maxZoom:-1;var c=new rt("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.imagerySet);lz(new jz(c,"jsonp"),{include:"ImageryProviders",uriScheme:"https",key:a.key},ra(this.l,this))}w(wz,uz);var xz=new qg({html:'<a class="ol-attribution-bing-tos" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a>'}); 1030wz.prototype.l=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)Gh(this,"error");else{var c=a.brandLogoUri;-1==c.indexOf("https")&&(c=c.replace("http","https"));var d=a.resourceSets[0].resources[0],e=-1==this.f?d.zoomMax:this.f;a=ig(this.j);
1030var f=Qh({extent:a,minZoom:d.zoomMin,maxZoom:e,tileSize:d.imageWidth==d.imageHeight?d.imageWidth:[d.imageWidth,d.imageHeight]});this.tileGrid= 1031f;var g=this.g;this.tileUrlFunction=rz(Ua(d.imageUrlSubdomains,function(a){var c=[0,0,0],e=d.imageUrl.replace("{subdomain}",a).replace("{culture}",g);return function(a){if(null!==a)return cg(a[0],a[1],-a[2]-1,c),e.replace("{quadkey}",eg(c))}}));if(d.imageryProviders){var h=Ee(Ae("EPSG:4326"),this.j);a=Ua(d.imageryProviders,function(a){var c=a.attribution,d={};Sa(a.coverageAreas,function(a){var c=a.zoomMin,g=Math.min(a.zoomMax,e);a=a.bbox;a=me([a[1],a[0],a[3],a[2]],h);var k,n;for(k=c;k<=g;++k)n=k.toString(), 1032c=kg(f,a,k),n in d?d[n].push(c):d[n]=[c]});return new qg({html:c,tileRanges:d})});a.push(xz);this.i=a}this.T=c;Gh(this,"ready")}};function yz(a){W.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.K=void 0;this.ba=m(a.distance)?a.distance:20;this.B=[];this.A=a.source;this.A.G("change",yz.prototype.pa,this)}w(yz,W);yz.prototype.ca=function(){return this.A};yz.prototype.Yb=function(a,c,d){this.A.Yb(a,c,d);c!==this.K&&(this.clear(),this.K=c,zz(this),this.Pb(this.B))};yz.prototype.pa=function(){this.clear();zz(this);this.Pb(this.B);this.s()}; 1033function zz(a){if(m(a.K)){a.B.length=0;for(var c=Ld(),d=a.ba*a.K,e=a.A.Dc(),f={},g=0,h=e.length;g<h;g++){var k=e[g];
1033ub(f,ma(k).toString())||(k=k.X().W(),Wd(k,c),Pd(c,d,c),k=a.A.Ed(c),k=Ta(k,function(a){a=ma(a).toString();return a in f?!1:f[a]=!0}),a.B.push(Az(k)))}}}function Az(a){for(var c=a.length,d=[0,0],e=0;e<c;e++){var f=a[e].X().W();nd(d,f)}c=1/c;d[0]*=c;d[1]*=c;d=new zn(new vf(d));d.set("features",a);return d};function Bz(a){rn.call(this,{projection:a.projection,resolutions:a.resolutions});this.Z=m(a.crossOrigin)?a.crossOrigin:null;this.g=m(a.displayDpi)?a.displayDpi:96;this.f=m(a.params)?a.params:{};var c;m(a.url)?c=Kx(a.url,this.f,ra(this.El,this)):c=Lx;this.K=c;this.a=m(a.imageLoadFunction)?a.imageLoadFunction:xn;this.ba=m(a.hidpi)?a.hidpi:!0;this.V=m(a.metersPerUnit)?a.metersPerUnit:1;this.A=m(a.ratio)?a.ratio:1;this.ca=m(a.useOverlay)?a.useOverlay:!1;this.c=null;this.B=0}w(Bz,rn);l=Bz.prototype; 1034l.Dl=function(){return this.f};l.cc=function(a,c,d,e){c=sn(this,c);d=this.ba?d:1;var f=this.c;if(null!==f&&this.B==this.b&&f.resolution==c&&f.i==d&&Ud(f.R(),a))return f;1!=this.A&&(a=a.slice(),le(a,this.A));e=this.K(a,[je(a)/c*d,ge(a)/c*d],e);m(e)?(f=new Hx(a,c,d,this.i,e,this.Z,this.a),x(f,"change",this.l,!1,this)):f=null;this.c=f;this.B=this.b;return f};l.Cl=function(){return this.a};l.Gl=function(a){Gb(this.f,a);this.s()}; 1035l.El=function(a,c,d,e){var f;f=this.V;var g=je(d),h=ge(d),k=e[0],n=e[1],p=.0254/this.g;f=n*g>k*h?g*f/(k*p):h*f/(n*p);d=ee(d);e={OPERATION:this.ca?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.g,SETDISPLAYWIDTH:Math.round(e[0]),SETDISPLAYHEIGHT:Math.round(e[1]),SETVIEWSCALE:f,SETVIEWCENTERX:d[0],SETVIEWCENTERY:d[1]};Gb(e,c);return to(vo([a],e))};l.Fl=function(a){this.c=null;this.a=a;this.s()};function Cz(a){var c=m(a.attributions)?a.attributions:null,d=a.imageExtent,e,f;m(a.imageSize)&&(e=ge(d)/a.imageSize[1],f=[e]);var g=m(a.crossOrigin)?a.crossOrigin:null,h=m(a.imageLoadFunction)?a.imageLoadFunction:xn;rn.call(this,{attributions:c,logo:a.logo,projection:Ae(a.projection),resolutions:f});this.a=new Hx(d,e,1,c,a.url,g,h);x(this.a,"change",this.l,!1,this)}w(Cz,rn);Cz.prototype.cc=function(a){return ie(a,this.a.R())?this.a:null};function Dz(a){a=m(a)?a:{};rn.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.ba=m(a.crossOrigin)?a.crossOrigin:null;this.f=a.url;this.A=m(a.imageLoadFunction)?a.imageLoadFunction:xn;this.c=a.params;this.g=!0;Ez(this);this.Z=a.serverType;this.ca=m(a.hidpi)?a.hidpi:!0;this.a=null;this.B=[0,0];this.V=0;this.K=m(a.ratio)?a.ratio:1.5}w(Dz,rn);var Fz=[101,101];l=Dz.prototype; 1036l.Ml=function(a,c,d,e){if(m(this.f)){var f=fe(a,c,0,Fz),g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.c.LAYERS};Gb(g,this.c,e);e=Math.floor((f[3]-a[1])/c);g[this.g?"I":"X"]=Math.floor((a[0]-f[0])/c);g[this.g?"J":"Y"]=e;return Gz(this,f,Fz,1,Ae(d),g)}};l.Ol=function(){return this.c}; 1037l.cc=function(a,c,d,e){if(!m(this.f))return null;c=sn(this,c);1==d||this.ca&&m(this.Z)||(d=1);a=a.slice();var f=(a[0]+a[2])/2,g=(a[1]+a[3])/2;if(1!=this.K){var h=this.K*je(a)/2,k=this.K*ge(a)/2;a[0]=f-h;a[1]=g-k;a[2]=f+h;a[3]=g+k}var n=c/d,h=Math.ceil(je(a)/n),k=Math.ceil(ge(a)/n);a[0]=f-n*h/2;a[2]=f+n*h/2;a[1]=g-n*k/2;a[3]=g+n*k/2;f=this.a;if(null!==f&&this.V==this.b&&f.resolution==c&&f.i==d&&Ud(f.R(),a))return f;f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0}; 1038Gb(f,this.c);this.B[0]=h;this.B[1]=k;e=Gz(this,a,this.B,d,e,f);this.a=new Hx(a,c,d,this.i,e,this.ba,this.A);this.V=this.b;x(this.a,"change",this.l,!1,this);return this.a};l.Nl=function(){return this.A}; 1039function Gz(a,c,d,e,f,g){g[a.g?"CRS":"SRS"]=f.b;"STYLES"in a.c||(g.STYLES=new String(""));if(1!=e)switch(a.Z){case "geoserver":e=90*e+.5|0;g.FORMAT_OPTIONS=m(g.FORMAT_OPTIONS)?g.FORMAT_OPTIONS+(";dpi:"+e):"dpi:"+e;break;case "mapserver":g.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":g.DPI=90*e}g.WIDTH=d[0];g.HEIGHT=d[1];d=f.f;var h;a.g&&"ne"==d.substr(0,2)?h=[c[1],c[0],c[3],c[2]]:h=c;g.BBOX=h.join(",");return to(vo([a.f],g))}l.Pl=function(){return this.f}; 1040l.Ql=function(a){this.a=null;this.A=a;this.s()};
1040l.Rl=function(a){a!=this.f&&(this.f=a,this.a=null,this.s())};l.Sl=function(a){Gb(this.c,a);Ez(this);this.a=null;this.s()};function Ez(a){a.g=0<=Na(Ab(a.c,"VERSION","1.3.0"),"1.3")};function Hz(a){var c=m(a.projection)?a.projection:"EPSG:3857",d=m(a.tileGrid)?a.tileGrid:Qh({extent:ig(c),maxZoom:a.maxZoom,tileSize:a.tileSize});this.l=null;uz.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,projection:c,tileGrid:d,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:sz,wrapX:m(a.wrapX)?a.wrapX:!0});m(a.tileUrlFunction)?this.Da(a.tileUrlFunction):m(a.urls)?(a=a.urls,this.Da(qz(a)),this.l=a):m(a.url)&&this.f(a.url)} 1041w(Hz,uz);Hz.prototype.g=function(){return this.l};Hz.prototype.f=function(a){this.Da(qz(tz(a)));this.l=[a]};function Iz(a){a=m(a)?a:{};var c;m(a.attributions)?c=a.attributions:c=[Jz];Hz.call(this,{attributions:c,crossOrigin:m(a.crossOrigin)?a.crossOrigin:"anonymous",opaque:!0,maxZoom:m(a.maxZoom)?a.maxZoom:19,tileLoadFunction:a.tileLoadFunction,url:m(a.url)?a.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:a.wrapX})}w(Iz,Hz);var Jz=new qg({html:'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.'});function Kz(a){a=m(a)?a:{};var c=Lz[a.layer];this.v=a.layer;Hz.call(this,{attributions:c.attributions,crossOrigin:"anonymous",logo:"https://developer.mapquest.com/content/osm/mq_logo.png",maxZoom:c.maxZoom,opaque:!0,tileLoadFunction:a.tileLoadFunction,url:m(a.url)?a.url:"https://otile{1-4}-s.mqcdn.com/tiles/1.0.0/"+this.v+"/{z}/{x}/{y}.jpg"})}w(Kz,Hz); 1042var Mz=new qg({html:'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a>'}),Lz={osm:{maxZoom:19,attributions:[Mz,Jz]},sat:{maxZoom:18,attributions:[Mz,new qg({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[Mz,Jz]}};Kz.prototype.A=function(){return this.v};(function(){var a={},c={gb:a};(function(d){if("object"===typeof a&&"undefined"!==typeof c)c.gb=d();else{var e;"undefined"!==typeof window?e=window:"undefined"!==typeof global?e=global:"undefined"!==typeof self?e=self:e=this;e.zo=d()}})(function(){return function e(a,c,h){function k(p,r){if(!c[p]){if(!a[p]){var t="function"==typeof require&&require;if(!r&&t)return t(p,!0);if(n)return n(p,!0);t=Error("Cannot find module '"+p+"'");throw t.code="MODULE_NOT_FOUND",t;}t=c[p]={gb:{}};a[p][0].call(t.gb,function(c){var e= 1043a[p][1][c];return k(e?e:c)},t,t.gb,e,a,c,h)}return c[p].gb}for(var n="function"==typeof require&&require,p=0;p<h.length;p++)k(h[p]);return k}({1:[function(a,c,g){a=a("./processor");g.Uh=a},{"./processor":2}],2:[function(a,c){function g(a){return function(c){var e=c.buffers,f=c.meta,g=c.width,h=c.height,k=e.length,n=e[0].byteLength,A;if(c.imageOps){n=Array(k);for(A=0;A<k;++A)n[A]=new ImageData(new Uint8ClampedArray(e[A]),g,h);g=a(n,f).data}else{g=new Uint8ClampedArray(n);h=Array(k);c=Array(k);for(A= 10440;A<k;++A)h[A]=new Uint8ClampedArray(e[A]),c[A]=[0,0,0,0];for(e=0;e<n;e+=4){for(A=0;A<k;++A){var y=h[A];c[A][0]=y[e];c[A][1]=y[e+1];c[A][2]=y[e+2];c[A][3]=y[e+3]}A=a(c,f);g[e]=A[0];g[e+1]=A[1];g[e+2]=A[2];g[e+3]=A[3]}}return g.buffer}}function h(a,c){var e=Object.keys(a.lib||{}).map(function(c){return"var "+c+" = "+a.lib[c].toString()+";"}).concat(["var __minion__ = ("+g.toString()+")(",a.operation.toString(),");",'self.addEventListener("message", function(__event__) {',"var buffer = __minion__(__event__.data);", 1045"self.postMessage({buffer: buffer, meta: __event__.data.meta}, [buffer]);","});"]),e=URL.createObjectURL(new Blob(e,{type:"text/javascript"})),e=new Worker(e);e.addEventListener("message",c);return e}function k(a,c){var e=g(a.operation);return{postMessage:function(a){setTimeout(function(){c({data:{buffer:e(a),Wd:a.Wd}})},0)}}}function n(a){this.Ce=!!a.ck;var c;0===a.threads?c=0:this.Ce?c=1:c=a.threads||1;var e=[];if(c)for(var f=0;f<c;++f)e[f]=h(a,this.Lf.bind(this,f));else e[0]=k(a,this.Lf.bind(this, 10460));this.vd=e;this.Oc=[];this.gi=a.en||Infinity;this.ud=0;this.sc={};this.De=null}n.prototype.dn=function(a,c,e){this.ei({Xb:a,Wd:c,Qc:e});this.If()};n.prototype.ei=function(a){for(this.Oc.push(a);this.Oc.length>this.gi;)this.Oc.shift().Qc(null,null)};n.prototype.If=function(){if(0===this.ud&&0<this.Oc.length){var a=this.De=this.Oc.shift(),c=a.Xb[0].width,e=a.Xb[0].height,f=a.Xb.map(function(a){return a.data.buffer}),g=this.vd.length;this.ud=g;if(1===g)this.vd[0].postMessage({buffers:f,meta:a.Wd, 1047imageOps:this.Ce,width:c,height:e},f);else for(var h=4*Math.ceil(a.Xb[0].data.length/4/g),k=0;k<g;++k){for(var n=k*h,A=[],y=0,J=f.length;y<J;++y)A.push(f[k].slice(n,n+h));
1047this.vd[k].postMessage({buffers:A,meta:a.Wd,imageOps:this.Ce,width:c,height:e},A)}}};n.prototype.Lf=function(a,c){this.xo||(this.sc[a]=c.data,--this.ud,0===this.ud&&this.hi())};n.prototype.hi=function(){var a=this.De,c=this.vd.length,e,f;if(1===c)e=new Uint8ClampedArray(this.sc[0].buffer),f=this.sc[0].meta;else{var g=a.Xb[0].data.length; 1048e=new Uint8ClampedArray(g);f=Array(g);for(var g=4*Math.ceil(g/4/c),h=0;h<c;++h){var k=h*g;e.set(new Uint8ClampedArray(this.sc[h].buffer),k);f[h]=this.sc[h].meta}}this.De=null;this.sc={};a.Qc(null,new ImageData(e,a.Xb[0].width,a.Xb[0].height),f);this.If()};c.gb=n},{}]},{},[1])(1)});Ep=c.gb})();function Nz(a){this.B=null;this.ca=m(a.operationType)?a.operationType:"pixel";this.pa=m(a.threads)?a.threads:1;for(var c=a.sources,d=c.length,e=Array(d),f=0;f<d;++f){var g=f,h=c[f],k=null;h instanceof Sh?(h=new K({source:h}),k=new Up(h)):h instanceof rn&&(h=new I({source:h}),k=new Tp(h));e[g]=k}this.a=e;c=0;for(d=this.a.length;c<d;++c)x(this.a[c],"change",this.s,!1,this);this.c=Ui();this.Z=new Ok(ne(1),ra(this.s,this));c=Oz(this.a);d={};e=0;for(f=c.length;e<f;++e)d[ma(c[e].layer)]=c[e];this.f=this.g= 1049null;this.V={animate:!1,attributions:{},coordinateToPixelMatrix:Ad(),extent:null,focus:null,index:0,layerStates:d,layerStatesArray:c,logos:{},pixelRatio:1,pixelToCoordinateMatrix:Ad(),postRenderFunctions:[],size:[0,0],skippedFeatureUids:{},tileQueue:this.Z,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{}};rn.call(this,{});m(a.operation)&&this.A(a.operation,a.lib)}w(Nz,rn); 1050Nz.prototype.A=function(a,c){this.B=new Ep.Uh({operation:a,ck:"image"===this.ca,en:1,lib:c,threads:this.pa});this.s()};function Pz(a,c,d){var e=a.g;return!e||a.b!==e.Gn||d!==e.resolution||!Xd(c,e.extent)} 1051Nz.prototype.cc=function(a,c,d,e){d=!0;for(var f,g=0,h=this.a.length;g<h;++g)if(f=this.a[g].a.da(),"ready"!==f.u){d=!1;break}if(!d)return null;if(!Pz(this,a,c))return this.f;d=this.c.canvas;f=Math.round(je(a)/c);g=Math.round(ge(a)/c);if(f!==d.width||g!==d.height)d.width=f,d.height=g;f=Cb(this.V);f.viewState=Cb(f.viewState);var g=ee(a),h=Math.round(je(a)/c),k=Math.round(ge(a)/c);f.extent=a;f.focus=ee(a);f.size[0]=h;f.size[1]=k;h=f.viewState;h.center=g;h.projection=e;h.resolution=c;this.f=e=new qn(a, 1052c,1,this.i,d,this.K.bind(this,f));this.g={extent:a,resolution:c,Gn:this.b};return e}; 1053Nz.prototype.K=function(a,c){for(var d=this.a.length,e=Array(d),f=0;f<d;++f){var g;var h=this.a[f],k=a;h.de(k,a.layerStatesArray[f]);if(g=h.hd()){var n=h.Ve(),h=Math.round(n[12]),p=Math.round(n[13]),q=k.size[0],k=k.size[1];if(g instanceof Image){if(Qz){var r=Qz.canvas;r.width!==q||r.height!==k?Qz=Ui(q,k):Qz.clearRect(0,0,q,k)}else Qz=Ui(q,k);r=Math.round(g.width*n[0]);n=Math.round(g.height*n[5]);Qz.drawImage(g,h,p,r,n);g=Qz.getImageData(0,0,q,k)}else g=g.getContext("2d").getImageData(-h,-p,q,k)}else g= 1054null;if(g)e[f]=g;else return}d={};C(this,new Rz(Sz,a,d));this.B.dn(e,d,this.ba.bind(this,a,c));Pk(a.tileQueue,16,16)};Nz.prototype.ba=function(a,c,d,e,f){d?c(d):null!==e&&(C(this,new Rz(Tz,a,f)),Pz(this,a.extent,a.viewState.resolution/a.pixelRatio)||this.c.putImageData(e,0,0),c(null))};var Qz=null;function Oz(a){return a.map(function(a){return hk(a.a)})}function Rz(a,c,d){tc.call(this,a);this.extent=c.extent;this.resolution=c.viewState.resolution/c.pixelRatio;this.data=d}w(Rz,tc); 1055var Sz="beforeoperations",Tz="afteroperations";var Uz={terrain:{Va:"jpg",opaque:!0},"terrain-background":{Va:"jpg",opaque:!0},"terrain-labels":{Va:"png",opaque:!1},"terrain-lines":{Va:"png",opaque:!1},"toner-background":{Va:"png",opaque:!0},toner:{Va:"png",opaque:!0},"toner-hybrid":{Va:"png",opaque:!1},"toner-labels":{Va:"png",opaque:!1},"toner-lines":{Va:"png",opaque:!1},"toner-lite":{Va:"png",opaque:!0},watercolor:{Va:"jpg",opaque:!0}},Vz={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}}; 1056function Wz(a){var c=a.layer.indexOf("-"),d=Uz[a.layer];Hz.call(this,{attributions:Xz,crossOrigin:"anonymous",maxZoom:Vz[-1==c?a.layer:a.layer.slice(0,c)].maxZoom,opaque:d.opaque,tileLoadFunction:a.tileLoadFunction,url:m(a.url)?a.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+a.layer+"/{z}/{x}/{y}."+d.Va})}w(Wz,Hz);var Xz=[new qg({html:'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>.'}),Jz];function Yz(a){a=m(a)?a:{};var c=m(a.params)?a.params:{};uz.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,projection:a.projection,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:ra(this.Wl,this),wrapX:m(a.wrapX)?a.wrapX:!0});var d=a.urls;!m(d)&&m(a.url)&&(d=tz(a.url));this.g=null!=d?d:[];this.f=c;this.l=Ld()}w(Yz,uz);l=Yz.prototype;l.Tl=function(){return this.f};l.Vb=function(a,c,d){a=Yz.aa.Vb.call(this,a,c,d);return 1==c?a:ld(a,c,this.c)}; 1057l.Ul=function(){return this.g};l.Vl=function(a){a=m(a)?tz(a):null;this.Fg(a)};l.Fg=function(a){this.g=null!=a?a:[];this.s()}; 1058l.Wl=function(a,c,d){var e=this.tileGrid;null===e&&(e=Uh(this,d));if(!(e.b.length<=a[0])){var f=Lh(e,a,this.l),g=md(e.Ha(a[0]),this.c);1!=c&&(g=ld(g,c,this.c));e={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};Gb(e,this.f);var h=this.g;0==h.length?a=void 0:(d=d.b.split(":").pop(),e.SIZE=g[0]+","+g[1],e.BBOX=f.join(","),e.BBOXSR=d,e.IMAGESR=d,e.DPI=Math.round(90*c),a=1==h.length?h[0]:h[Yb((a[1]<<a[0])+a[2],h.length)],za(a,"/")||(a+="/"),za(a,"MapServer/")?a+="export":za(a,"ImageServer/")&&(a+="exportImage"), 1059a=to(vo([a],e)));return a}};l.Xl=function(a){Gb(this.f,a);this.s()};function Zz(a,c,d){Ch.call(this,a,2);this.f=c;this.c=d;this.a={}}w(Zz,Ch);Zz.prototype.Qa=function(a){a=m(a)?ma(a):-1;if(a in this.a)return this.a[a];var c=this.f,d=Ui(c[0],c[1]);d.strokeStyle="black";d.strokeRect(.5,.5,c[0]+.5,c[1]+.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.c,c[0]/2,c[1]/2);return this.a[a]=d.canvas};function $z(a){Sh.call(this,{opaque:!1,projection:a.projection,tileGrid:a.tileGrid,wrapX:m(a.wrapX)?a.wrapX:!0})} 1060w($z,Sh);$z.prototype.Ub=function(a,c,d){var e=this.hb(a,c,d);if(zh(this.a,e))return this.a.get(e);
1060var f=md(this.tileGrid.Ha(a));a=[a,c,d];c=Vh(this,a);c=null===c?"":fg(Vh(this,c));f=new Zz(a,f,c);this.a.set(e,f);return f};function aA(a){uz.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,projection:Ae("EPSG:3857"),state:"loading",tileLoadFunction:a.tileLoadFunction,wrapX:m(a.wrapX)?a.wrapX:!0});lz(new jz(a.url),void 0,ra(this.g,this),ra(this.f,this))}w(aA,uz); 1061aA.prototype.g=function(a){var c=Ae("EPSG:4326"),d=this.j,e;m(a.bounds)&&(e=me(a.bounds,Ee(c,d)));var f=a.minzoom||0,g=a.maxzoom||22;this.tileGrid=d=Qh({extent:ig(d),maxZoom:g,minZoom:f});this.tileUrlFunction=qz(a.tiles);if(m(a.attribution)&&null===this.i){c=m(e)?e:c.R();e={};for(var h;f<=g;++f)h=f.toString(),e[h]=[kg(d,c,f)];this.i=[new qg({html:a.attribution,tileRanges:e})]}Gh(this,"ready")};aA.prototype.f=function(){Gh(this,"error")};function bA(a){Sh.call(this,{projection:Ae("EPSG:3857"),state:"loading"});this.l=m(a.preemptive)?a.preemptive:!0;this.f=sz;this.g=void 0;lz(new jz(a.url),void 0,ra(this.$l,this))}w(bA,Sh);l=bA.prototype;l.nj=function(){return this.g};l.zi=function(a,c,d,e,f){null===this.tileGrid?!0===f?ri(function(){d.call(e,null)}):d.call(e,null):(c=this.tileGrid.cd(a,c),cA(this.Ub(c[0],c[1],c[2],1,this.j),a,d,e,f))}; 1062l.$l=function(a){var c=Ae("EPSG:4326"),d=this.j,e;m(a.bounds)&&(e=me(a.bounds,Ee(c,d)));var f=a.minzoom||0,g=a.maxzoom||22;this.tileGrid=d=Qh({extent:ig(d),maxZoom:g,minZoom:f});this.g=a.template;var h=a.grids;if(null!=h){this.f=qz(h);if(m(a.attribution)){c=m(e)?e:c.R();for(e={};f<=g;++f)h=f.toString(),e[h]=[kg(d,c,f)];this.i=[new qg({html:a.attribution,tileRanges:e})]}Gh(this,"ready")}else Gh(this,"error")}; 1063l.Ub=function(a,c,d,e,f){var g=this.hb(a,c,d);if(zh(this.a,g))return this.a.get(g);a=[a,c,d];c=Vh(this,a,f);e=this.f(c,e,f);e=new dA(a,m(e)?0:4,m(e)?e:"",Lh(this.tileGrid,a),this.l);this.a.set(g,e);return e};l.Bf=function(a,c,d){a=this.hb(a,c,d);zh(this.a,a)&&this.a.get(a)};function dA(a,c,d,e,f){Ch.call(this,a,c);this.j=d;this.a=e;this.l=f;this.f=this.i=this.c=null}w(dA,Ch);l=dA.prototype;l.Qa=function(){return null}; 1064function eA(a,c){if(null===a.c||null===a.i||null==a.f)return null;var d=a.c[Math.floor((1-(c[1]-a.a[1])/(a.a[3]-a.a[1]))*a.c.length)];if(!ia(d))return null;d=d.charCodeAt(Math.floor((c[0]-a.a[0])/(a.a[2]-a.a[0])*d.length));93<=d&&d--;35<=d&&d--;d=a.i[d-32];return null!=d?a.f[d]:null}function cA(a,c,d,e,f){0==a.state&&!0===f?(Vc(a,"change",function(){d.call(e,eA(this,c))},!1,a),fA(a)):!0===f?ri(function(){d.call(e,eA(this,c))},a):d.call(e,eA(a,c))}l.jb=function(){return this.j}; 1065l.Cj=function(){this.state=3;Dh(this)};l.Zl=function(a){this.c=a.grid;this.i=a.keys;this.f=a.data;this.state=4;Dh(this)};function fA(a){0==a.state&&(a.state=1,lz(new jz(a.j),void 0,ra(a.Zl,a),ra(a.Cj,a)))}l.load=function(){this.l&&fA(this)};function gA(a){W.call(this,{attributions:a.attributions,logo:a.logo,projection:void 0,state:"ready",wrapX:a.wrapX});this.ca=m(a.format)?a.format:null;this.B=a.tileGrid;this.K=sz;this.ba=m(a.tileLoadFunction)?a.tileLoadFunction:null;this.A={};m(a.tileUrlFunction)?(this.K=a.tileUrlFunction,this.s()):m(a.urls)?(this.K=qz(a.urls),this.s()):m(a.url)&&(this.K=qz(tz(a.url)),this.s())}w(gA,W);l=gA.prototype;l.clear=function(){yb(this.A)}; 1066function hA(a,c,d,e){var f=a.A;a=a.B.cd(c,d);f=f[a[0]+"/"+a[1]+"/"+a[2]];if(m(f))for(a=0,d=f.length;a<d;++a){var g=f[a];if(g.X().Je(c)&&e.call(void 0,g))break}}l.zb=function(a,c,d,e){var f=this.B,g=this.A;c=Ph(f,c);a=kg(f,a,c);for(var h,f=a.b;f<=a.f;++f)for(h=a.a;h<=a.c;++h){var k=g[c+"/"+f+"/"+h];if(m(k)){var n,p;n=0;for(p=k.length;n<p;++n){var q=d.call(e,k[n]);if(q)return q}}}};l.Dc=function(){var a=this.A,c=[],d;for(d in a)cb(c,a[d]);return c}; 1067l.Ni=function(a,c){var d=[];hA(this,a,c,function(a){d.push(a)});return d};function iA(a,c,d){var e=a.B;a.D&&d.c&&(c=gg(c,e,d));return jg(c,e)?c:null}l.Yb=function(a,c,d){function e(a,c){h[a]=c;this.s()}var f=this.B,g=this.K,h=this.A,k=Ph(f,c),f=kg(f,a,k),n=[k,0,0],p,q;for(p=f.b;p<=f.f;++p)for(q=f.a;q<=f.c;++q){var r=k+"/"+p+"/"+q;if(!(r in h)){n[1]=p;n[2]=q;var t=iA(this,n,d),t=null===t?void 0:g(t,1,d);m(t)&&(h[r]=[],r=sa(e,r),null===this.ba?Ap(t,this.ca,r).call(this,a,c,d):this.ba(t,ra(r,this)))}}};function jA(a){a=m(a)?a:{};var c=m(a.params)?a.params:{};uz.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,opaque:!Ab(c,"TRANSPARENT",!0),projection:a.projection,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:ra(this.em,this),wrapX:m(a.wrapX)?a.wrapX:!0});var d=a.urls;!m(d)&&m(a.url)&&(d=tz(a.url));this.g=null!=d?d:[];this.v=m(a.gutter)?a.gutter:0;this.f=c;this.l=!0;this.A=a.serverType;this.K=m(a.hidpi)?a.hidpi:!0;this.B="";kA(this);this.V=Ld(); 1068lA(this)}w(jA,uz);l=jA.prototype; 1069l.am=function(a,c,d,e){d=Ae(d);var f=this.tileGrid;null===f&&(f=Uh(this,d));c=f.cd(a,c);if(!(f.b.length<=c[0])){var g=f.ua(c[0]),h=Lh(f,c,this.V),f=md(f.Ha(c[0]),this.c),k=this.v;0!==k&&(f=kd(f,k,this.c),h=Pd(h,g*k,h));k={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS};Gb(k,this.f,e);e=Math.floor((h[3]-a[1])/g);k[this.l?"I":"X"]=Math.floor((a[0]-h[0])/g);k[this.l?"J":"Y"]=e;return mA(this,c,f,h,1,d,k)}};l.Fd=function(){return this.v}; 1070l.hb=function(a,c,d){return this.B+jA.aa.hb.call(this,a,c,d)};l.bm=function(){return this.f}; 1071function mA(a,c,d,e,f,g,h){var k=a.g;if(0!=k.length){h.WIDTH=d[0];h.HEIGHT=d[1];h[a.l?"CRS":"SRS"]=g.b;"STYLES"in a.f||(h.STYLES=new String(""));if(1!=f)switch(a.A){case "geoserver":d=90*f+.5|0;h.FORMAT_OPTIONS=m(h.FORMAT_OPTIONS)?h.FORMAT_OPTIONS+(";dpi:"+d):"dpi:"+d;break;case "mapserver":h.MAP_RESOLUTION=90*f;break;
1071case "carmentaserver":case "qgis":h.DPI=90*f}g=g.f;a.l&&"ne"==g.substr(0,2)&&(a=e[0],e[0]=e[1],e[1]=a,a=e[2],e[2]=e[3],e[3]=a);h.BBOX=e.join(",");return to(vo([1==k.length?k[0]:k[Yb((c[1]<< 1072c[0])+c[2],k.length)]],h))}}l.Vb=function(a,c,d){a=jA.aa.Vb.call(this,a,c,d);return 1!=c&&this.K&&m(this.A)?ld(a,c,this.c):a};l.cm=function(){return this.g};function kA(a){var c=0,d=[],e,f;e=0;for(f=a.g.length;e<f;++e)d[c++]=a.g[e];for(var g in a.f)d[c++]=g+"-"+a.f[g];a.B=d.join("#")}l.dm=function(a){a=m(a)?tz(a):null;this.Gg(a)};l.Gg=function(a){this.g=null!=a?a:[];kA(this);this.s()}; 1073l.em=function(a,c,d){var e=this.tileGrid;null===e&&(e=Uh(this,d));if(!(e.b.length<=a[0])){1==c||this.K&&m(this.A)||(c=1);var f=e.ua(a[0]),g=Lh(e,a,this.V),e=md(e.Ha(a[0]),this.c),h=this.v;0!==h&&(e=kd(e,h,this.c),g=Pd(g,f*h,g));1!=c&&(e=ld(e,c,this.c));f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Gb(f,this.f);return mA(this,a,e,g,c,d,f)}};l.fm=function(a){Gb(this.f,a);kA(this);lA(this);this.s()};function lA(a){a.l=0<=Na(Ab(a.f,"VERSION","1.3.0"),"1.3")};function nA(a){this.j=a.matrixIds;Hh.call(this,{extent:a.extent,origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes,sizes:a.sizes})}w(nA,Hh);nA.prototype.C=function(){return this.j}; 1074function oA(a,c){var d=[],e=[],f=[],g=[],h=[],k;k=Ae(a.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var n=k.Id(),p="ne"==k.f.substr(0,2);gb(a.TileMatrix,function(a,c){return c.ScaleDenominator-a.ScaleDenominator});Sa(a.TileMatrix,function(a){e.push(a.Identifier);var c=2.8E-4*a.ScaleDenominator/n,k=a.TileWidth,v=a.TileHeight;p?f.push([a.TopLeftCorner[1],a.TopLeftCorner[0]]):f.push(a.TopLeftCorner);d.push(c);g.push(k==v?k:[k,v]);h.push([a.MatrixWidth,-a.MatrixHeight])});return new nA({extent:c, 1075origins:f,resolutions:d,matrixIds:e,tileSizes:g,sizes:h})};function pA(a){function c(a){a="KVP"==e?to(vo([a],g)):a.replace(/\{(\w+?)\}/g,function(a,c){return c.toLowerCase()in g?g[c.toLowerCase()]:a});return function(c){if(null!==c){var d={TileMatrix:f.j[c[0]],TileCol:c[1],TileRow:-c[2]-1};Gb(d,h);c=a;return c="KVP"==e?to(vo([c],d)):c.replace(/\{(\w+?)\}/g,function(a,c){return d[c]})}}}this.V=m(a.version)?a.version:"1.0.0";this.A=m(a.format)?a.format:"image/jpeg";this.f=m(a.dimensions)?a.dimensions:{};this.v="";qA(this);this.B=a.layer;this.l=a.matrixSet; 1076this.K=a.style;var d=a.urls;!m(d)&&m(a.url)&&(d=tz(a.url));this.g=null!=d?d:[];var e=this.Z=m(a.requestEncoding)?a.requestEncoding:"KVP",f=a.tileGrid,g={layer:this.B,style:this.K,tilematrixset:this.l};"KVP"==e&&Gb(g,{Service:"WMTS",Request:"GetTile",Version:this.V,Format:this.A});var h=this.f,d=0<this.g.length?rz(Ua(this.g,c)):sz;uz.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,projection:a.projection,tileClass:a.tileClass,tileGrid:f,tileLoadFunction:a.tileLoadFunction, 1077tilePixelRatio:a.tilePixelRatio,tileUrlFunction:d,wrapX:m(a.wrapX)?a.wrapX:!1})}w(pA,uz);l=pA.prototype;l.Li=function(){return this.f};l.Pi=function(){return this.A};l.hb=function(a,c,d){return this.v+pA.aa.hb.call(this,a,c,d)};l.gm=function(){return this.B};l.aj=function(){return this.l};l.lj=function(){return this.Z};l.hm=function(){return this.K};l.im=function(){return this.g};l.rj=function(){return this.V};function qA(a){var c=0,d=[],e;for(e in a.f)d[c++]=e+"-"+a.f[e];a.v=d.join("/")} 1078l.fo=function(a){Gb(this.f,a);qA(this);this.s()};function rA(a){a=m(a)?a:{};var c=a.size,d=c[0],e=c[1],f=[],g=256;switch(m(a.tierSizeCalculation)?a.tierSizeCalculation:"default"){case "default":for(;d>g||e>g;)f.push([Math.ceil(d/g),Math.ceil(e/g)]),g+=g;break;case "truncated":for(;d>g||e>g;)f.push([Math.ceil(d/g),Math.ceil(e/g)]),d>>=1,e>>=1}f.push([1,1]);f.reverse();for(var g=[1],h=[0],e=1,d=f.length;e<d;e++)g.push(1<<e),h.push(f[e-1][0]*f[e-1][1]+h[e-1]);g.reverse();var c=[0,-c[1],c[0],0],c=new Hh({extent:c,origin:de(c),resolutions:g}),k=a.url; 1079uz.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,tileClass:sA,tileGrid:c,tileUrlFunction:function(a){if(null!==a){var c=a[0],d=a[1];a=-a[2]-1;return k+"TileGroup"+((d+a*f[c][0]+h[c])/256|0)+"/"+c+"-"+d+"-"+a+".jpg"}}})}w(rA,uz);function sA(a,c,d,e,f){Ix.call(this,a,c,d,e,f);this.f={}}w(sA,Ix); 1080sA.prototype.Qa=function(a){var c=m(a)?ma(a).toString():"";if(c in this.f)return this.f[c];a=sA.aa.Qa.call(this,a);if(2==this.state){if(256==a.width&&256==a.height)return this.f[c]=a;var d=Ui(256,256);d.drawImage(a,0,0);return this.f[c]=d.canvas}return a};function tA(a){a=m(a)?a:{};this.a=m(a.initialSize)?a.initialSize:256;this.c=m(a.maxSize)?a.maxSize:m(ua)?ua:2048;this.b=m(a.space)?a.space:1;this.i=[new uA(this.a,this.b)];this.f=this.a;this.g=[new uA(this.f,this.b)]}tA.prototype.add=function(a,c,d,e,f,g){if(c+this.b>this.c||d+this.b>this.c)return null;e=vA(this,!1,a,c,d,e,g);if(null===e)return null;a=vA(this,!0,a,c,d,m(f)?f:qe,g);return{offsetX:e.offsetX,offsetY:e.offsetY,image:e.image,gg:a.image}}; 1081function vA(a,c,d,e,f,g,h){var k=c?a.g:a.i,n,p,q;p=0;for(q=k.length;p<q;++p){n=k[p];n=n.add(d,e,f,g,h);if(null!==n)return n;null===n&&p===q-1&&(c?(n=Math.min(2*a.f,a.c),a.f=n):(n=Math.min(2*a.a,a.c),a.a=n),n=new uA(n,a.b),k.push(n),++q)}}function uA(a,c){this.b=c;this.a=[{x:0,y:0,width:a,height:a}];this.f={};this.c=Qg("CANVAS");this.c.width=a;this.c.height=a;this.i=this.c.getContext("2d")}uA.prototype.get=function(a){return Ab(this.f,a,null)}; 1082uA.prototype.add=function(a,c,d,e,f){var g,h,k;h=0;for(k=this.a.length;h<k;++h)if(g=this.a[h],g.width>=c+this.b&&g.height>=d+this.b)return k={offsetX:g.x+this.b,offsetY:g.y+this.b,image:this.c},this.f[a]=k,e.call(f,this.i,g.x+this.b,g.y+this.b),a=h,c=c+this.b,d=d+this.b,f=e=void 0,g.width-c>g.height-d?(e={x:g.x+c,y:g.y,width:g.width-c,height:g.height},f={x:g.x,y:g.y+d,width:c,height:g.height-d},wA(this,a,e,f)):(e={x:g.x+c,y:g.y,width:g.width-c,height:d},f={x:g.x,y:g.y+d,width:g.width,height:g.height- 1083d},wA(this,a,e,f)),k;return null};function wA(a,c,d,e){c=[c,1];0<d.width&&0<d.height&&c.push(d);0<e.width&&0<e.height&&c.push(e);
1083a.a.splice.apply(a.a,c)};function xA(a){this.u=this.f=this.i=null;this.l=m(a.fill)?a.fill:null;this.K=[0,0];this.b=a.points;this.c=m(a.radius)?a.radius:a.radius1;this.g=m(a.radius2)?a.radius2:this.c;this.j=m(a.angle)?a.angle:0;this.a=m(a.stroke)?a.stroke:null;this.ja=this.T=this.ea=null;var c=a.atlasManager,d="",e="",f=0,g=null,h,k=0;null!==this.a&&(h=zg(this.a.b),k=this.a.a,m(k)||(k=1),g=this.a.c,cj||(g=null),e=this.a.i,m(e)||(e="round"),d=this.a.f,m(d)||(d="round"),f=this.a.g,m(f)||(f=10));var n=2*(this.c+k)+1,d={strokeStyle:h, 1084od:k,size:n,lineCap:d,lineDash:g,lineJoin:e,miterLimit:f};if(m(c)){var n=Math.round(n),e=null===this.l,p;e&&(p=ra(this.Kg,this,d));f=this.qb();p=c.add(f,n,n,ra(this.Lg,this,d),p);this.f=p.image;this.K=[p.offsetX,p.offsetY];c=p.image.width;this.u=e?p.gg:this.f}else this.f=Qg("CANVAS"),this.f.height=n,this.f.width=n,c=n=this.f.width,p=this.f.getContext("2d"),this.Lg(d,p,0,0),null===this.l?(p=this.u=Qg("CANVAS"),p.height=d.size,p.width=d.size,p=p.getContext("2d"),this.Kg(d,p,0,0)):this.u=this.f;this.ea= 1085[n/2,n/2];this.T=[n,n];this.ja=[c,c];Ak.call(this,{opacity:1,rotateWithView:!1,rotation:m(a.rotation)?a.rotation:0,scale:1,snapToPixel:m(a.snapToPixel)?a.snapToPixel:!0})}w(xA,Ak);l=xA.prototype;l.pb=function(){return this.ea};l.nm=function(){return this.j};l.om=function(){return this.l};l.fe=function(){return this.u};l.Kb=function(){return this.f};l.Gd=function(){return this.ja};l.jd=function(){return 2};l.ub=function(){return this.K};l.pm=function(){return this.b};l.qm=function(){return this.c}; 1086l.kj=function(){return this.g};l.ab=function(){return this.T};l.rm=function(){return this.a};l.bf=ca;l.load=ca;l.Af=ca; 1087l.Lg=function(a,c,d,e){var f;c.setTransform(1,0,0,1,0,0);c.translate(d,e);c.beginPath();this.g!==this.c&&(this.b*=2);for(d=0;d<=this.b;d++)e=2*d*Math.PI/this.b-Math.PI/2+this.j,f=0===d%2?this.c:this.g,c.lineTo(a.size/2+f*Math.cos(e),a.size/2+f*Math.sin(e));null!==this.l&&(c.fillStyle=zg(this.l.b),c.fill());null!==this.a&&(c.strokeStyle=a.strokeStyle,c.lineWidth=a.od,null===a.lineDash||c.setLineDash(a.lineDash),c.lineCap=a.lineCap,c.lineJoin=a.lineJoin,c.miterLimit=a.miterLimit,c.stroke());c.closePath()}; 1088l.Kg=function(a,c,d,e){c.setTransform(1,0,0,1,0,0);c.translate(d,e);c.beginPath();this.g!==this.c&&(this.b*=2);var f;for(d=0;d<=this.b;d++)f=2*d*Math.PI/this.b-Math.PI/2+this.j,e=0===d%2?this.c:this.g,c.lineTo(a.size/2+e*Math.cos(f),a.size/2+e*Math.sin(f));c.fillStyle=Dl;c.fill();null!==this.a&&(c.strokeStyle=a.strokeStyle,c.lineWidth=a.od,null===a.lineDash||c.setLineDash(a.lineDash),c.stroke());c.closePath()}; 1089l.qb=function(){var a=null===this.a?"-":this.a.qb(),c=null===this.l?"-":this.l.qb();if(null===this.i||a!=this.i[1]||c!=this.i[2]||this.c!=this.i[3]||this.g!=this.i[4]||this.j!=this.i[5]||this.b!=this.i[6])this.i=["r"+a+c+(m(this.c)?this.c.toString():"-")+(m(this.g)?this.g.toString():"-")+(m(this.j)?this.j.toString():"-")+(m(this.b)?this.b.toString():"-"),a,c,this.c,this.g,this.j,this.b];return this.i[0]};u("ol.animation.bounce",function(a){var c=a.resolution,d=m(a.start)?a.start:ta(),e=m(a.duration)?a.duration:1E3,f=m(a.easing)?a.easing:Zf;return function(a,h){if(h.time<d)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<d+e){var k=f((h.time-d)/e),n=c-h.viewState.resolution;h.animate=!0;h.viewState.resolution+=k*n;h.viewHints[0]+=1;return!0}return!1}},OPENLAYERS);u("ol.animation.pan",$f,OPENLAYERS);u("ol.animation.rotate",ag,OPENLAYERS);u("ol.animation.zoom",bg,OPENLAYERS); 1090u("ol.Attribution",qg,OPENLAYERS);qg.prototype.getHTML=qg.prototype.c;rg.prototype.element=rg.prototype.element;u("ol.Collection",sg,OPENLAYERS);sg.prototype.clear=sg.prototype.clear;sg.prototype.extend=sg.prototype.cf;sg.prototype.forEach=sg.prototype.forEach;sg.prototype.getArray=sg.prototype.wk;sg.prototype.item=sg.prototype.item;sg.prototype.getLength=sg.prototype.Ib;sg.prototype.insertAt=sg.prototype.Rd;sg.prototype.pop=sg.prototype.pop;sg.prototype.push=sg.prototype.push; 1091sg.prototype.remove=sg.prototype.remove;sg.prototype.removeAt=sg.prototype.wf;sg.prototype.setAt=sg.prototype.In;u("ol.coordinate.add",nd,OPENLAYERS);u("ol.coordinate.createStringXY",function(a){return function(c){return vd(c,a)}},OPENLAYERS);u("ol.coordinate.format",qd,OPENLAYERS);u("ol.coordinate.rotate",sd,OPENLAYERS);u("ol.coordinate.toStringHDMS",function(a){return m(a)?pd(a[1],"NS")+" "+pd(a[0],"EW"):""},OPENLAYERS);u("ol.coordinate.toStringXY",vd,OPENLAYERS);u("ol.DeviceOrientation",Mr,OPENLAYERS); 1092Mr.prototype.getAlpha=Mr.prototype.Fi;Mr.prototype.getBeta=Mr.prototype.Ii;Mr.prototype.getGamma=Mr.prototype.Qi;Mr.prototype.getHeading=Mr.prototype.xk;Mr.prototype.getTracking=Mr.prototype.mg;Mr.prototype.setTracking=Mr.prototype.df;u("ol.easing.easeIn",function(a){return Math.pow(a,3)},OPENLAYERS);u("ol.easing.easeOut",Wf,OPENLAYERS);u("ol.easing.inAndOut",Xf,OPENLAYERS);u("ol.easing.linear",Yf,OPENLAYERS);u("ol.easing.upAndDown",Zf,OPENLAYERS);u("ol.extent.boundingExtent",Kd,OPENLAYERS); 1093u("ol.extent.buffer",Pd,OPENLAYERS);u("ol.extent.containsCoordinate",Sd,OPENLAYERS);u("ol.extent.containsExtent",Ud,OPENLAYERS);u("ol.extent.containsXY",Td,OPENLAYERS);u("ol.extent.createEmpty",Ld,OPENLAYERS);u("ol.extent.equals",Xd,OPENLAYERS);u("ol.extent.extend",Yd,OPENLAYERS);u("ol.extent.getBottomLeft",ae,OPENLAYERS);u("ol.extent.getBottomRight",be,OPENLAYERS);u("ol.extent.getCenter",ee,OPENLAYERS);u("ol.extent.getHeight",ge,OPENLAYERS);u("ol.extent.getIntersection",he,OPENLAYERS); 1094u("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]},OPENLAYERS);u("ol.extent.getTopLeft",de,OPENLAYERS);u("ol.extent.getTopRight",ce,OPENLAYERS);u("ol.extent.getWidth",je,OPENLAYERS);u("ol.extent.intersects",ie,OPENLAYERS);u("ol.extent.isEmpty",ke,OPENLAYERS);u("ol.extent.applyTransform",me,OPENLAYERS);u("ol.Feature",zn,OPENLAYERS);zn.prototype.clone=zn.prototype.clone;zn.prototype.getGeometry=zn.prototype.X;zn.prototype.getId=zn.prototype.Ti;zn.prototype.getGeometryName=zn.prototype.Si; 1095zn.prototype.getStyle=zn.prototype.zk;zn.prototype.getStyleFunction=zn.prototype.Ak;zn.prototype.setGeometry=zn.prototype.ra;zn.prototype.setStyle=zn.prototype.ef;zn.prototype.setId=zn.prototype.Nb;zn.prototype.setGeometryName=zn.prototype.Ic;u("ol.featureloader.xhr",Bp,OPENLAYERS);u("ol.Geolocation",yx,OPENLAYERS);yx.prototype.getAccuracy=yx.prototype.Di;yx.prototype.getAccuracyGeometry=yx.prototype.Ei;yx.prototype.getAltitude=yx.prototype.Gi;yx.prototype.getAltitudeAccuracy=yx.prototype.Hi; 1096yx.prototype.getHeading=yx.prototype.Ck;yx.prototype.getPosition=yx.prototype.Dk;yx.prototype.getProjection=yx.prototype.ng;yx.prototype.getSpeed=yx.prototype.mj;yx.prototype.getTracking=yx.prototype.og;yx.prototype.getTrackingOptions=yx.prototype.ag;yx.prototype.setProjection=yx.prototype.pg;yx.prototype.setTracking=yx.prototype.Xd;yx.prototype.setTrackingOptions=yx.prototype.ph;u("ol.Graticule",Cx,OPENLAYERS);Cx.prototype.getMap=Cx.prototype.Gk;Cx.prototype.getMeridians=Cx.prototype.bj; 1097Cx.prototype.getParallels=Cx.prototype.gj;Cx.prototype.setMap=Cx.prototype.setMap;u("ol.has.DEVICE_PIXEL_RATIO",bj,OPENLAYERS);u("ol.has.CANVAS",dj,OPENLAYERS);u("ol.has.DEVICE_ORIENTATION",ej,OPENLAYERS);u("ol.has.GEOLOCATION",fj,OPENLAYERS);u("ol.has.TOUCH",gj,OPENLAYERS);u("ol.has.WEBGL",aj,OPENLAYERS);Hx.prototype.getImage=Hx.prototype.b;Ix.prototype.getImage=Ix.prototype.Qa;
1097u("ol.Kinetic",Qk,OPENLAYERS);u("ol.loadingstrategy.all",Cp,OPENLAYERS); 1098u("ol.loadingstrategy.bbox",function(a){return[a]},OPENLAYERS);u("ol.loadingstrategy.tile",function(a){return function(c,d){var e=Ph(a,d),f=kg(a,c,e),g=[],e=[e,0,0];for(e[1]=f.b;e[1]<=f.f;++e[1])for(e[2]=f.a;e[2]<=f.c;++e[2])g.push(Lh(a,e));return g}},OPENLAYERS);u("ol.Map",X,OPENLAYERS);X.prototype.addControl=X.prototype.ki;X.prototype.addInteraction=X.prototype.li;X.prototype.addLayer=X.prototype.Nf;X.prototype.addOverlay=X.prototype.Of;X.prototype.beforeRender=X.prototype.Ma; 1099X.prototype.forEachFeatureAtPixel=X.prototype.ad;X.prototype.forEachLayerAtPixel=X.prototype.Kk;X.prototype.hasFeatureAtPixel=X.prototype.bk;X.prototype.getEventCoordinate=X.prototype.Mi;X.prototype.getEventPixel=X.prototype.Dd;X.prototype.getTarget=X.prototype.ff;X.prototype.getTargetElement=X.prototype.zc;X.prototype.getCoordinateFromPixel=X.prototype.ta;X.prototype.getControls=X.prototype.Ki;X.prototype.getOverlays=X.prototype.fj;X.prototype.getInteractions=X.prototype.Ui; 1100X.prototype.getLayerGroup=X.prototype.Tb;X.prototype.getLayers=X.prototype.qg;X.prototype.getPixelFromCoordinate=X.prototype.xa;X.prototype.getSize=X.prototype.Aa;X.prototype.getView=X.prototype.$;X.prototype.getViewport=X.prototype.sj;X.prototype.renderSync=X.prototype.En;X.prototype.render=X.prototype.render;X.prototype.removeControl=X.prototype.xn;X.prototype.removeInteraction=X.prototype.yn;X.prototype.removeLayer=X.prototype.An;X.prototype.removeOverlay=X.prototype.Bn; 1101X.prototype.setLayerGroup=X.prototype.lh;X.prototype.setSize=X.prototype.yf;X.prototype.setTarget=X.prototype.Mk;X.prototype.setView=X.prototype.Un;X.prototype.updateSize=X.prototype.Kc;Sj.prototype.originalEvent=Sj.prototype.originalEvent;Sj.prototype.pixel=Sj.prototype.pixel;Sj.prototype.coordinate=Sj.prototype.coordinate;Sj.prototype.dragging=Sj.prototype.dragging;Sj.prototype.preventDefault=Sj.prototype.preventDefault;Sj.prototype.stopPropagation=Sj.prototype.c;wh.prototype.map=wh.prototype.map; 1102wh.prototype.frameState=wh.prototype.frameState;fd.prototype.key=fd.prototype.key;fd.prototype.oldValue=fd.prototype.oldValue;u("ol.Object",gd,OPENLAYERS);gd.prototype.get=gd.prototype.get;gd.prototype.getKeys=gd.prototype.O;gd.prototype.getProperties=gd.prototype.P;gd.prototype.set=gd.prototype.set;gd.prototype.setProperties=gd.prototype.I;gd.prototype.unset=gd.prototype.S;u("ol.Observable",dd,OPENLAYERS);u("ol.Observable.unByKey",ed,OPENLAYERS);dd.prototype.changed=dd.prototype.s; 1103dd.prototype.getRevision=dd.prototype.L;dd.prototype.on=dd.prototype.G;dd.prototype.once=dd.prototype.M;dd.prototype.un=dd.prototype.J;dd.prototype.unByKey=dd.prototype.N;u("ol.inherits",w,OPENLAYERS);u("ol.Overlay",kr,OPENLAYERS);kr.prototype.getElement=kr.prototype.Yd;kr.prototype.getMap=kr.prototype.Zd;kr.prototype.getOffset=kr.prototype.Zf;kr.prototype.getPosition=kr.prototype.rg;kr.prototype.getPositioning=kr.prototype.$f;kr.prototype.setElement=kr.prototype.ih;kr.prototype.setMap=kr.prototype.setMap; 1104kr.prototype.setOffset=kr.prototype.nh;kr.prototype.setPosition=kr.prototype.gf;kr.prototype.setPositioning=kr.prototype.oh;u("ol.size.toSize",md,OPENLAYERS);Ch.prototype.getTileCoord=Ch.prototype.g;u("ol.View",Pf,OPENLAYERS);Pf.prototype.constrainCenter=Pf.prototype.zd;Pf.prototype.constrainResolution=Pf.prototype.constrainResolution;Pf.prototype.constrainRotation=Pf.prototype.constrainRotation;Pf.prototype.getCenter=Pf.prototype.Ia;Pf.prototype.calculateExtent=Pf.prototype.Pc; 1105Pf.prototype.getProjection=Pf.prototype.Nk;Pf.prototype.getResolution=Pf.prototype.Ba;Pf.prototype.getRotation=Pf.prototype.Ca;Pf.prototype.getZoom=Pf.prototype.vj;Pf.prototype.fit=Pf.prototype.Me;Pf.prototype.centerOn=Pf.prototype.ui;Pf.prototype.rotate=Pf.prototype.rotate;Pf.prototype.setCenter=Pf.prototype.$a;Pf.prototype.setResolution=Pf.prototype.Ob;Pf.prototype.setRotation=Pf.prototype.$d;Pf.prototype.setZoom=Pf.prototype.Yn;u("ol.xml.getAllTextContent",Uo,OPENLAYERS);u("ol.xml.parse",np,OPENLAYERS); 1106u("ol.webgl.Context",pq,OPENLAYERS);pq.prototype.getGL=pq.prototype.Im;pq.prototype.getHitDetectionFramebuffer=pq.prototype.Ue;pq.prototype.useProgram=pq.prototype.le;u("ol.tilegrid.TileGrid",Hh,OPENLAYERS);Hh.prototype.getMaxZoom=Hh.prototype.Xf;
1106Hh.prototype.getMinZoom=Hh.prototype.Yf;Hh.prototype.getOrigin=Hh.prototype.Ec;Hh.prototype.getResolution=Hh.prototype.ua;Hh.prototype.getResolutions=Hh.prototype.Mg;Hh.prototype.getTileCoordForCoordAndResolution=Hh.prototype.cd; 1107Hh.prototype.getTileCoordForCoordAndZ=Hh.prototype.Md;Hh.prototype.getTileSize=Hh.prototype.Ha;u("ol.tilegrid.createXYZ",Qh,OPENLAYERS);u("ol.tilegrid.WMTS",nA,OPENLAYERS);nA.prototype.getMatrixIds=nA.prototype.C;u("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",oA,OPENLAYERS);u("ol.style.AtlasManager",tA,OPENLAYERS);u("ol.style.Circle",Hl,OPENLAYERS);Hl.prototype.getAnchor=Hl.prototype.pb;Hl.prototype.getFill=Hl.prototype.jm;Hl.prototype.getImage=Hl.prototype.Kb;Hl.prototype.getOrigin=Hl.prototype.ub; 1108Hl.prototype.getRadius=Hl.prototype.km;Hl.prototype.getSize=Hl.prototype.ab;Hl.prototype.getStroke=Hl.prototype.lm;u("ol.style.Fill",Gl,OPENLAYERS);Gl.prototype.getColor=Gl.prototype.c;Gl.prototype.setColor=Gl.prototype.f;u("ol.style.Icon",Bk,OPENLAYERS);Bk.prototype.getAnchor=Bk.prototype.pb;Bk.prototype.getImage=Bk.prototype.Kb;Bk.prototype.getOrigin=Bk.prototype.ub;Bk.prototype.getSrc=Bk.prototype.mm;Bk.prototype.getSize=Bk.prototype.ab;Bk.prototype.load=Bk.prototype.load; 1109u("ol.style.Image",Ak,OPENLAYERS);Ak.prototype.getOpacity=Ak.prototype.ge;Ak.prototype.getRotateWithView=Ak.prototype.Kd;Ak.prototype.getRotation=Ak.prototype.he;Ak.prototype.getScale=Ak.prototype.ie;Ak.prototype.getSnapToPixel=Ak.prototype.Ld;Ak.prototype.setRotation=Ak.prototype.je;Ak.prototype.setScale=Ak.prototype.ke;u("ol.style.RegularShape",xA,OPENLAYERS);xA.prototype.getAnchor=xA.prototype.pb;xA.prototype.getAngle=xA.prototype.nm;xA.prototype.getFill=xA.prototype.om;xA.prototype.getImage=xA.prototype.Kb; 1110xA.prototype.getOrigin=xA.prototype.ub;xA.prototype.getPoints=xA.prototype.pm;xA.prototype.getRadius=xA.prototype.qm;xA.prototype.getRadius2=xA.prototype.kj;xA.prototype.getSize=xA.prototype.ab;xA.prototype.getStroke=xA.prototype.rm;u("ol.style.Stroke",Cl,OPENLAYERS);Cl.prototype.getColor=Cl.prototype.sm;Cl.prototype.getLineCap=Cl.prototype.Xi;Cl.prototype.getLineDash=Cl.prototype.tm;Cl.prototype.getLineJoin=Cl.prototype.Yi;Cl.prototype.getMiterLimit=Cl.prototype.cj;Cl.prototype.getWidth=Cl.prototype.um; 1111Cl.prototype.setColor=Cl.prototype.vm;Cl.prototype.setLineCap=Cl.prototype.Nn;Cl.prototype.setLineDash=Cl.prototype.wm;Cl.prototype.setLineJoin=Cl.prototype.On;Cl.prototype.setMiterLimit=Cl.prototype.Pn;Cl.prototype.setWidth=Cl.prototype.Vn;u("ol.style.Style",Il,OPENLAYERS);Il.prototype.getGeometry=Il.prototype.X;Il.prototype.getGeometryFunction=Il.prototype.Ri;Il.prototype.getFill=Il.prototype.xm;Il.prototype.getImage=Il.prototype.ym;Il.prototype.getStroke=Il.prototype.zm;Il.prototype.getText=Il.prototype.Am; 1112Il.prototype.getZIndex=Il.prototype.uj;Il.prototype.setGeometry=Il.prototype.ra;Il.prototype.setZIndex=Il.prototype.Xn;u("ol.style.Text",Lt,OPENLAYERS);Lt.prototype.getFont=Lt.prototype.Oi;Lt.prototype.getOffsetX=Lt.prototype.dj;Lt.prototype.getOffsetY=Lt.prototype.ej;Lt.prototype.getFill=Lt.prototype.Bm;Lt.prototype.getRotation=Lt.prototype.Cm;Lt.prototype.getScale=Lt.prototype.Dm;Lt.prototype.getStroke=Lt.prototype.Em;Lt.prototype.getText=Lt.prototype.Fm;Lt.prototype.getTextAlign=Lt.prototype.oj; 1113Lt.prototype.getTextBaseline=Lt.prototype.pj;Lt.prototype.setFont=Lt.prototype.Kn;Lt.prototype.setFill=Lt.prototype.Jn;Lt.prototype.setRotation=Lt.prototype.Gm;Lt.prototype.setScale=Lt.prototype.Hm;Lt.prototype.setStroke=Lt.prototype.Qn;Lt.prototype.setText=Lt.prototype.Rn;Lt.prototype.setTextAlign=Lt.prototype.Sn;Lt.prototype.setTextBaseline=Lt.prototype.Tn;u("ol.Sphere",ve,OPENLAYERS);ve.prototype.geodesicArea=ve.prototype.a;ve.prototype.haversineDistance=ve.prototype.b; 1114u("ol.source.BingMaps",wz,OPENLAYERS);u("ol.source.BingMaps.TOS_ATTRIBUTION",xz,OPENLAYERS);u("ol.source.Cluster",yz,OPENLAYERS);yz.prototype.getSource=yz.prototype.ca;u("ol.source.ImageCanvas",yn,OPENLAYERS);u("ol.source.ImageMapGuide",Bz,OPENLAYERS);Bz.prototype.getParams=Bz.prototype.Dl;Bz.prototype.getImageLoadFunction=Bz.prototype.Cl;Bz.prototype.updateParams=Bz.prototype.Gl;Bz.prototype.setImageLoadFunction=Bz.prototype.Fl;u("ol.source.Image",rn,OPENLAYERS);
1114tn.prototype.image=tn.prototype.image; 1115u("ol.source.ImageStatic",Cz,OPENLAYERS);u("ol.source.ImageVector",Rp,OPENLAYERS);Rp.prototype.getSource=Rp.prototype.Hl;Rp.prototype.getStyle=Rp.prototype.Il;Rp.prototype.getStyleFunction=Rp.prototype.Jl;Rp.prototype.setStyle=Rp.prototype.Eg;u("ol.source.ImageWMS",Dz,OPENLAYERS);Dz.prototype.getGetFeatureInfoUrl=Dz.prototype.Ml;Dz.prototype.getParams=Dz.prototype.Ol;Dz.prototype.getImageLoadFunction=Dz.prototype.Nl;Dz.prototype.getUrl=Dz.prototype.Pl;Dz.prototype.setImageLoadFunction=Dz.prototype.Ql; 1116Dz.prototype.setUrl=Dz.prototype.Rl;Dz.prototype.updateParams=Dz.prototype.Sl;u("ol.source.MapQuest",Kz,OPENLAYERS);Kz.prototype.getLayer=Kz.prototype.A;u("ol.source.OSM",Iz,OPENLAYERS);u("ol.source.OSM.ATTRIBUTION",Jz,OPENLAYERS);u("ol.source.Raster",Nz,OPENLAYERS);Nz.prototype.setOperation=Nz.prototype.A;Rz.prototype.extent=Rz.prototype.extent;Rz.prototype.resolution=Rz.prototype.resolution;Rz.prototype.data=Rz.prototype.data;u("ol.source.Source",Eh,OPENLAYERS);Eh.prototype.getAttributions=Eh.prototype.la; 1117Eh.prototype.getLogo=Eh.prototype.ka;Eh.prototype.getProjection=Eh.prototype.ma;Eh.prototype.getState=Eh.prototype.na;u("ol.source.Stamen",Wz,OPENLAYERS);u("ol.source.TileArcGISRest",Yz,OPENLAYERS);Yz.prototype.getParams=Yz.prototype.Tl;Yz.prototype.getUrls=Yz.prototype.Ul;Yz.prototype.setUrl=Yz.prototype.Vl;Yz.prototype.setUrls=Yz.prototype.Fg;Yz.prototype.updateParams=Yz.prototype.Xl;u("ol.source.TileDebug",$z,OPENLAYERS);u("ol.source.TileImage",uz,OPENLAYERS);uz.prototype.getTileLoadFunction=uz.prototype.Xa; 1118uz.prototype.getTileUrlFunction=uz.prototype.Ya;uz.prototype.setTileLoadFunction=uz.prototype.eb;uz.prototype.setTileUrlFunction=uz.prototype.Da;u("ol.source.TileJSON",aA,OPENLAYERS);u("ol.source.Tile",Sh,OPENLAYERS);Sh.prototype.getTileGrid=Sh.prototype.ya;Wh.prototype.tile=Wh.prototype.tile;u("ol.source.TileUTFGrid",bA,OPENLAYERS);bA.prototype.getTemplate=bA.prototype.nj;bA.prototype.forDataAtCoordinateAndResolution=bA.prototype.zi;u("ol.source.TileVector",gA,OPENLAYERS); 1119gA.prototype.getFeaturesAtCoordinateAndResolution=gA.prototype.Ni;u("ol.source.TileWMS",jA,OPENLAYERS);jA.prototype.getGetFeatureInfoUrl=jA.prototype.am;jA.prototype.getParams=jA.prototype.bm;jA.prototype.getUrls=jA.prototype.cm;jA.prototype.setUrl=jA.prototype.dm;jA.prototype.setUrls=jA.prototype.Gg;jA.prototype.updateParams=jA.prototype.fm;u("ol.source.Vector",W,OPENLAYERS);W.prototype.addFeature=W.prototype.Cc;W.prototype.addFeatures=W.prototype.Pb;W.prototype.clear=W.prototype.clear; 1120W.prototype.forEachFeature=W.prototype.Ne;W.prototype.forEachFeatureInExtent=W.prototype.xc;W.prototype.forEachFeatureIntersectingExtent=W.prototype.Oe;W.prototype.getFeaturesCollection=W.prototype.Te;W.prototype.getFeatures=W.prototype.Dc;W.prototype.getFeaturesAtCoordinate=W.prototype.Se;W.prototype.getFeaturesInExtent=W.prototype.Ed;W.prototype.getClosestFeatureToCoordinate=W.prototype.Qe;W.prototype.getExtent=W.prototype.R;W.prototype.getFeatureById=W.prototype.Re;W.prototype.removeFeature=W.prototype.dc; 1121Op.prototype.feature=Op.prototype.feature;u("ol.source.WMTS",pA,OPENLAYERS);pA.prototype.getDimensions=pA.prototype.Li;pA.prototype.getFormat=pA.prototype.Pi;pA.prototype.getLayer=pA.prototype.gm;pA.prototype.getMatrixSet=pA.prototype.aj;pA.prototype.getRequestEncoding=pA.prototype.lj;pA.prototype.getStyle=pA.prototype.hm;pA.prototype.getUrls=pA.prototype.im;pA.prototype.getVersion=pA.prototype.rj;pA.prototype.updateDimensions=pA.prototype.fo; 1122u("ol.source.WMTS.optionsFromCapabilities",function(a,c){var d=Wa(a.Contents.Layer,function(a){return a.Identifier==c.layer}),e=a.Contents.TileMatrixSet,f,g;f=1<d.TileMatrixSetLink.length?m(c.projection)?Xa(d.TileMatrixSetLink,function(a){return Wa(e,function(c){return c.Identifier==a.TileMatrixSet}).SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3")==c.projection}):Xa(d.TileMatrixSetLink,function(a){return a.TileMatrixSet==c.matrixSet}):0;0>f&&(f=0);g=d.TileMatrixSetLink[f].TileMatrixSet; 1123var h=d.Format[0];m(c.format)&&(h=c.format);f=Xa(d.Style,function(a){return m(c.style)?a.Title==c.style:a.isDefault});0>f&&(f=0);f=d.Style[f].Identifier;var k={};m(d.Dimension)&&Sa(d.Dimension,function(a){var c=a.Identifier,d=a["default"];m(d)||(d=a.values[0]);k[c]=d});var n=Wa(a.Contents.TileMatrixSet,function(a){return a.Identifier==g}),p;p=m(c.projection)?Ae(c.projection):Ae(n.SupportedCRS.replace(/urn:og
1123c:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var q=d.WGS84BoundingBox,r,t;m(q)&&(t=Ae("EPSG:4326").R(), 1124t=q[0]==t[0]&&q[2]==t[2],r=We(q,"EPSG:4326",p),q=p.R(),null===q||Ud(q,r)||(r=void 0));var n=oA(n,r),v=[];r=c.requestEncoding;r=m(r)?r:"";if(a.hasOwnProperty("OperationsMetadata")&&a.OperationsMetadata.hasOwnProperty("GetTile")&&0!=r.lastIndexOf("REST",0))for(var d=a.OperationsMetadata.GetTile.DCP.HTTP.Get,q=0,B=d.length;q<B;++q){var z=Wa(d[q].Constraint,function(a){return"GetEncoding"==a.name}).AllowedValues.Value;0<z.length&&Ya(z,"KVP")&&(r="KVP",v.push(d[q].href))}else r="REST",Sa(d.ResourceURL, 1125function(a){"tile"==a.resourceType&&(h=a.format,v.push(a.template))});return{urls:v,layer:c.layer,matrixSet:g,format:h,projection:p,requestEncoding:r,tileGrid:n,style:f,dimensions:k,wrapX:t}},OPENLAYERS);u("ol.source.XYZ",Hz,OPENLAYERS);Hz.prototype.getUrls=Hz.prototype.g;Hz.prototype.setUrl=Hz.prototype.f;u("ol.source.Zoomify",rA,OPENLAYERS);jk.prototype.vectorContext=jk.prototype.vectorContext;jk.prototype.frameState=jk.prototype.frameState;jk.prototype.context=jk.prototype.context; 1126jk.prototype.glContext=jk.prototype.glContext;u("ol.render.VectorContext",ik,OPENLAYERS);Mq.prototype.drawAsync=Mq.prototype.tc;Mq.prototype.drawCircleGeometry=Mq.prototype.uc;Mq.prototype.drawFeature=Mq.prototype.Le;Mq.prototype.drawGeometryCollectionGeometry=Mq.prototype.Bd;Mq.prototype.drawPointGeometry=Mq.prototype.nb;Mq.prototype.drawLineStringGeometry=Mq.prototype.yb;Mq.prototype.drawMultiLineStringGeometry=Mq.prototype.vc;Mq.prototype.drawMultiPointGeometry=Mq.prototype.mb; 1127Mq.prototype.drawMultiPolygonGeometry=Mq.prototype.wc;Mq.prototype.drawPolygonGeometry=Mq.prototype.Rb;Mq.prototype.drawText=Mq.prototype.ob;Mq.prototype.setFillStrokeStyle=Mq.prototype.Fa;Mq.prototype.setImageStyle=Mq.prototype.cb;Mq.prototype.setTextStyle=Mq.prototype.Ga;jm.prototype.drawAsync=jm.prototype.tc;jm.prototype.drawCircleGeometry=jm.prototype.uc;jm.prototype.drawFeature=jm.prototype.Le;jm.prototype.drawPointGeometry=jm.prototype.nb;jm.prototype.drawMultiPointGeometry=jm.prototype.mb; 1128jm.prototype.drawLineStringGeometry=jm.prototype.yb;jm.prototype.drawMultiLineStringGeometry=jm.prototype.vc;jm.prototype.drawPolygonGeometry=jm.prototype.Rb;jm.prototype.drawMultiPolygonGeometry=jm.prototype.wc;jm.prototype.setFillStrokeStyle=jm.prototype.Fa;jm.prototype.setImageStyle=jm.prototype.cb;jm.prototype.setTextStyle=jm.prototype.Ga;u("ol.proj.common.add",im,OPENLAYERS);u("ol.proj.METERS_PER_UNIT",xe,OPENLAYERS);u("ol.proj.Projection",ye,OPENLAYERS);ye.prototype.getCode=ye.prototype.Ji; 1129ye.prototype.getExtent=ye.prototype.R;ye.prototype.getUnits=ye.prototype.wl;ye.prototype.getMetersPerUnit=ye.prototype.Id;ye.prototype.getWorldExtent=ye.prototype.tj;ye.prototype.isGlobal=ye.prototype.gk;ye.prototype.setGlobal=ye.prototype.Mn;ye.prototype.setExtent=ye.prototype.xl;ye.prototype.setWorldExtent=ye.prototype.Wn;ye.prototype.setGetPointResolution=ye.prototype.Ln;ye.prototype.getPointResolution=ye.prototype.getPointResolution;u("ol.proj.addEquivalentProjections",Be,OPENLAYERS); 1130u("ol.proj.addProjection",Oe,OPENLAYERS);u("ol.proj.addCoordinateTransforms",Ce,OPENLAYERS);u("ol.proj.fromLonLat",function(a,c){return Ve(a,"EPSG:4326",m(c)?c:"EPSG:3857")},OPENLAYERS);u("ol.proj.toLonLat",function(a,c){return Ve(a,m(c)?c:"EPSG:3857","EPSG:4326")},OPENLAYERS);u("ol.proj.get",Ae,OPENLAYERS);u("ol.proj.getTransform",Se,OPENLAYERS);u("ol.proj.transform",Ve,OPENLAYERS);u("ol.proj.transformExtent",We,OPENLAYERS);u("ol.layer.Heatmap",Z,OPENLAYERS);Z.prototype.getBlur=Z.prototype.Sf; 1131Z.prototype.getGradient=Z.prototype.Vf;Z.prototype.getRadius=Z.prototype.zg;Z.prototype.setBlur=Z.prototype.gh;Z.prototype.setGradient=Z.prototype.kh;Z.prototype.setRadius=Z.prototype.Ag;u("ol.layer.Image",I,OPENLAYERS);I.prototype.getSource=I.prototype.da;u("ol.layer.Layer",F,OPENLAYERS);F.prototype.getSource=F.prototype.da;F.prototype.setMap=F.prototype.setMap;F.prototype.setSource=F.prototype.Jc;u("ol.layer.Base",gk,OPENLAYERS);gk.prototype.getBrightness=gk.prototype.Ab; 1132gk.prototype.getContrast=gk.prototype.Bb;gk.prototype.getHue=gk.prototype.Cb;gk.prototype.getExtent=gk.prototype.R;
1132gk.prototype.getMaxResolution=gk.prototype.Db;gk.prototype.getMinResolution=gk.prototype.Eb;gk.prototype.getOpacity=gk.prototype.Jb;gk.prototype.getSaturation=gk.prototype.Fb;gk.prototype.getVisible=gk.prototype.ib;gk.prototype.setBrightness=gk.prototype.gc;gk.prototype.setContrast=gk.prototype.hc;gk.prototype.setHue=gk.prototype.ic;gk.prototype.setExtent=gk.prototype.$b; 1133gk.prototype.setMaxResolution=gk.prototype.jc;gk.prototype.setMinResolution=gk.prototype.kc;gk.prototype.setOpacity=gk.prototype.ac;gk.prototype.setSaturation=gk.prototype.lc;gk.prototype.setVisible=gk.prototype.mc;u("ol.layer.Group",G,OPENLAYERS);G.prototype.getLayers=G.prototype.Bc;G.prototype.setLayers=G.prototype.mh;u("ol.layer.Tile",K,OPENLAYERS);K.prototype.getPreload=K.prototype.a;K.prototype.getSource=K.prototype.da;K.prototype.setPreload=K.prototype.f; 1134K.prototype.getUseInterimTilesOnError=K.prototype.c;K.prototype.setUseInterimTilesOnError=K.prototype.i;u("ol.layer.Vector",M,OPENLAYERS);M.prototype.getSource=M.prototype.da;M.prototype.getStyle=M.prototype.T;M.prototype.getStyleFunction=M.prototype.V;M.prototype.setStyle=M.prototype.i;u("ol.interaction.DoubleClickZoom",Xk,OPENLAYERS);u("ol.interaction.DoubleClickZoom.handleEvent",Yk,OPENLAYERS);u("ol.interaction.DragAndDrop",cy,OPENLAYERS);u("ol.interaction.DragAndDrop.handleEvent",pe,OPENLAYERS); 1135dy.prototype.features=dy.prototype.features;dy.prototype.file=dy.prototype.file;dy.prototype.projection=dy.prototype.projection;ul.prototype.coordinate=ul.prototype.coordinate;u("ol.interaction.DragBox",vl,OPENLAYERS);vl.prototype.getGeometry=vl.prototype.X;u("ol.interaction.DragPan",il,OPENLAYERS);u("ol.interaction.DragRotateAndZoom",gy,OPENLAYERS);u("ol.interaction.DragRotate",ml,OPENLAYERS);u("ol.interaction.DragZoom",Nl,OPENLAYERS);ky.prototype.feature=ky.prototype.feature; 1136u("ol.interaction.Draw",ly,OPENLAYERS);u("ol.interaction.Draw.handleEvent",ny,OPENLAYERS);ly.prototype.removeLastPoint=ly.prototype.zn;ly.prototype.finishDrawing=ly.prototype.$c;u("ol.interaction.Draw.createRegularPolygon",function(a,c){return function(d,e){var f=d[
11360],g=d[1],h=Math.sqrt(td(f,g)),k=m(e)?e:Nf(new Xm(f),a);Of(k,f,h,m(c)?c:Math.atan((g[1]-f[1])/(g[0]-f[0])));return k}},OPENLAYERS);u("ol.interaction.Interaction",Tk,OPENLAYERS);Tk.prototype.getActive=Tk.prototype.c; 1137Tk.prototype.setActive=Tk.prototype.i;u("ol.interaction.defaults",bm,OPENLAYERS);u("ol.interaction.KeyboardPan",Ol,OPENLAYERS);u("ol.interaction.KeyboardPan.handleEvent",Pl,OPENLAYERS);u("ol.interaction.KeyboardZoom",Ql,OPENLAYERS);u("ol.interaction.KeyboardZoom.handleEvent",Rl,OPENLAYERS);By.prototype.features=By.prototype.features;By.prototype.mapBrowserPointerEvent=By.prototype.mapBrowserPointerEvent;u("ol.interaction.Modify",Cy,OPENLAYERS);u("ol.interaction.Modify.handleEvent",Fy,OPENLAYERS); 1138u("ol.interaction.MouseWheelZoom",Sl,OPENLAYERS);u("ol.interaction.MouseWheelZoom.handleEvent",Tl,OPENLAYERS);u("ol.interaction.PinchRotate",Ul,OPENLAYERS);u("ol.interaction.PinchZoom",Yl,OPENLAYERS);u("ol.interaction.Pointer",fl,OPENLAYERS);u("ol.interaction.Pointer.handleEvent",gl,OPENLAYERS);Oy.prototype.selected=Oy.prototype.selected;Oy.prototype.deselected=Oy.prototype.deselected;Oy.prototype.mapBrowserEvent=Oy.prototype.mapBrowserEvent;u("ol.interaction.Select",Py,OPENLAYERS); 1139Py.prototype.getFeatures=Py.prototype.D;u("ol.interaction.Select.handleEvent",Qy,OPENLAYERS);Py.prototype.setMap=Py.prototype.setMap;u("ol.interaction.Snap",Sy,OPENLAYERS);Sy.prototype.addFeature=Sy.prototype.fd;Sy.prototype.removeFeature=Sy.prototype.gd;u("ol.interaction.Translate",Wy,OPENLAYERS);u("ol.geom.Circle",Xm,OPENLAYERS);Xm.prototype.clone=Xm.prototype.clone;Xm.prototype.getCenter=Xm.prototype.ed;Xm.prototype.getRadius=Xm.prototype.hf;Xm.prototype.getType=Xm.prototype.U; 1140Xm.prototype.intersectsExtent=Xm.prototype.sa;Xm.prototype.setCenter=Xm.prototype.Zk;Xm.prototype.setCenterAndRadius=Xm.prototype.xf;Xm.prototype.setRadius=Xm.prototype.$k;Xm.prototype.transform=Xm.prototype.transform;u("ol.geom.Geometry",Xe,OPENLAYERS);Xe.prototype.getClosestPoint=Xe.prototype.Wa;Xe.prototype.getExtent=Xe.prototype.R;Xe.prototype.transform=Xe.prototype.transform;u("ol.geom.GeometryCollection",Zm,OPENLAYERS);Zm.prototype.clone=Zm.prototype.clone;Zm.prototype.getGeometries=Zm.prototype.Uf; 1141Zm.prototype.getType=Zm.prototype.U;Zm.prototype.intersectsExtent=Zm.prototype.sa;Zm.prototype.setGeometries=Zm.prototype.jh;Zm.prototype.applyTransform=Zm.prototype.Qb;Zm.prototype.translate=Zm.prototype.translate;u("ol.geom.LinearRing",tf,OPENLAYERS);tf.prototype.clone=tf.prototype.clone;tf.prototype.getArea=tf.prototype.cl;tf.prototype.getCoordinates=tf.prototype.W;tf.prototype.getType=tf.prototype.U;tf.prototype.setCoordinates=tf.prototype.ia;u("ol.geom.LineString",N,OPENLAYERS); 1142N.prototype.appendCoordinate=N.prototype.mi;N.prototype.clone=N.prototype.clone;N.prototype.forEachSegment=N.prototype.Ci;N.prototype.getCoordinateAtM=N.prototype.al;N.prototype.getCoordinates=N.prototype.W;N.prototype.getLength=N.prototype.bl;N.prototype.getType=N.prototype.U;N.prototype.intersectsExtent=N.prototype.sa;N.prototype.setCoordinates=N.prototype.ia;u("ol.geom.MultiLineString",O,OPENLAYERS);O.prototype.appendLineString=O.prototype.ni;O.prototype.clone=O.prototype.clone; 1143O.prototype.getCoordinateAtM=O.prototype.dl;O.prototype.getCoordinates=O.prototype.W;O.prototype.getLineString=O.prototype.Zi;O.prototype.getLineStrings=O.prototype.bd;O.prototype.getType=O.prototype.U;O.prototype.intersectsExtent=O.prototype.sa;O.prototype.setCoordinates=O.prototype.ia;u("ol.geom.MultiPoint",jn,OPENLAYERS);jn.prototype.appendPoint=jn.prototype.pi;jn.prototype.clone=jn.prototype.clone;jn.prototype.getCoordinates=jn.prototype.W;jn.prototype.getPoint=jn.prototype.hj; 1144jn.prototype.getPoints=jn.prototype.ae;jn.prototype.getType=jn.prototype.U;jn.prototype.intersectsExtent=jn.prototype.sa;jn.prototype.setCoordinates=jn.prototype.ia;u("ol.geom.MultiPolygon",R,OPENLAYERS);R.prototype.appendPolygon=R.prototype.ri;R.prototype.clone=R.prototype.clone;R.prototype.getArea=R.prototype.el;R.prototype.getCoordinates=R.prototype.W;R.prototype.getInteriorPoints=R.prototype.Wi;R.prototype.getPolygon=R.prototype.jj;R.prototype.getPolygons=R.prototype.Jd;R.prototype.getType=R.prototype.U; 1145R.prototype.intersectsExtent=R.prototype.sa;R.prototype.setCoordinates=R.prototype.ia;u("ol.geom.Point",vf,OPENLAYERS);vf.prototype.clone=vf.prototype.clone;vf.prototype.getCoordinates=vf.prototype.W;vf.prototype.getType=vf.prototype.U;vf.prototype.intersectsExtent=vf.prototype.sa;vf.prototype.setCoordinates=vf.prototype.ia;u("ol.geom.Polygon",E,OPENLAYERS);E.prototype.appendLinearRing=E.prototype.oi;E.prototype.clone=E.prototype.clone;E.prototype.getArea=E.prototype.fl; 1146E.prototype.getCoordinates=E.prototype.W;E.prototype.getInteriorPoint=E.prototype.Vi;E.prototype.getLinearRingCount=E.prototype.$i;E.prototype.getLinearRing=E.prototype.Wf;E.prototype.getLinearRings=E.prototype.Hd;E.prototype.getType=E.prototype.U;E.prototype.intersectsExtent=E.prototype.sa;E.prototype.setCoordinates=E.prototype.ia;u("ol.geom.Polygon.circular",Lf,OPENLAYERS);u("ol.geom.Polygon.fromExtent",Mf,OPENLAYERS);u("ol.geom.Polygon.fromCircle",Nf,OPENLAYERS);u("ol.geom.SimpleGeometry",Ze,OPENLAYERS); 1147Ze.prototype.getFirstCoordinate=Ze.prototype.rb;Ze.prototype.getLastCoordinate=Ze.prototype.sb;Ze.prototype.getLayout=Ze.prototype.tb;Ze.prototype.applyTransform=Ze.prototype.Qb;Ze.prototype.translate=Ze.prototype.translate;u("ol.format.EsriJSON",Tr,OPENLAYERS);Tr.prototype.readFeature=Tr.prototype.vb;Tr.prototype.readFeatures=Tr.prototype.qa;Tr.prototype.readGeometry=Tr.prototype.Gc;Tr.prototype.readProjection=Tr.prototype.Ea;Tr.prototype.writeGeometry=Tr.prototype.Mc; 1148Tr.prototype.writeGeometryObject=Tr.prototype.ye;Tr.prototype.writeFeature=Tr.prototype.qd;Tr.prototype.writeFeatureObject=Tr.prototype.Lc;Tr.prototype.writeFeatures=Tr.prototype.wb;Tr.prototype.writeFeaturesObject=Tr.prototype.we;u("ol.format.Feature",Nr,OPENLAYERS);u("ol.format.GeoJSON",$r,OPENLAYERS);$r.prototype.readFeature=$r.prototype.vb;$r.prototype.readFeatures=$r.prototype.qa;$r.prototype.readGeometry=$r.prototype.Gc;$r.prototype.readProjection=$r.prototype.Ea;$r.prototype.writeFeature=$r.prototype.qd; 1149$r.prototype.writeFeatureObject=$r.prototype.Lc;$r.prototype.writeFeatures=$r.prototype.wb;$r.prototype.writeFeaturesObject=$r.prototype.we;$r.prototype.writeGeometry=$r.prototype.Mc;$r.prototype.writeGeometryObject=$r.prototype.ye;u("ol.format.GPX",Ds,OPENLAYERS);Ds.prototype.readFeature=Ds.prototype.vb;Ds.prototype.readFeatures=Ds.prototype.qa;Ds.prototype.readProjection=Ds.prototype.Ea;Ds.prototype.writeFeatures=Ds.prototype.wb;Ds.prototype.writeFeaturesNode=Ds.prototype.a; 1150u("ol.format.IGC",nt,OPENLAYERS);nt.prototype.readFeature=nt.prototype.vb;nt.prototype.readFeatures=nt.prototype.qa;nt.prototype.readProjection=nt.prototype.Ea;u("ol.format.KML",Mt,OPENLAYERS);Mt.prototype.readFeature=Mt.prototype.vb;Mt.prototype.readFeatures=Mt.prototype.qa;Mt.prototype.readName=Mt.prototype.nn;Mt.prototype.readNetworkLinks=Mt.prototype.pn;Mt.prototype.readProjection=Mt.prototype.Ea;Mt.prototype.writeFeatures=Mt.prototype.wb;Mt.prototype.writeFeaturesNode=Mt.prototype.a; 1151u("ol.format.OSMXML",zv,OPENLAYERS);zv.prototype.readFeatures=zv.prototype.qa;zv.prototype.readProjection=zv.prototype.Ea;u("ol.format.Polyline",Yv,OPENLAYERS);u("ol.format.Polyline.encodeDeltas",Zv,OPENLAYERS);u("ol.format.Polyline.decodeDeltas",aw,OPENLAYERS);u("ol.format.Polyline.encodeFloats",$v,OPENLAYERS);u("ol.format.Polyline.decodeFloats",bw,OPENLAYERS);Yv.prototype.readFeature=Yv.prototype.vb;Yv.prototype.readFeatures=Yv.prototype.qa;Yv.prototype.readGeometry=Yv.prototype.Gc; 1152Yv.prototype.readProjection=Yv.prototype.Ea;Yv.prototype.writeGeometry=Yv.prototype.Mc;u("ol.format.TopoJSON",cw,OPENLAYERS);cw.prototype.readFeatures=cw.prototype.qa;cw.prototype.readProjection=cw.prototype.Ea;u("ol.format.WFS",iw,OPENLAYERS);iw.prototype.readFeatures=iw.prototype.qa;iw.prototype.readTransactionResponse=iw.prototype.j;iw.prototype.readFeatureCollectionMetadata=iw.prototype.g;iw.prototype.writeGetFeature=iw.prototype.l;iw.prototype.writeTransaction=iw.prototype.u; 1153iw.prototype.readProjection=iw.prototype.Ea;u("ol.format.WKT",vw,OPENLAYERS);vw.prototype.readFeature=vw.prototype.vb;vw.prototype.readFeatures=vw.prototype.qa;vw.prototype.readGeometry=vw.prototype.Gc;vw.prototype.writeFeature=vw.prototype.qd;vw.prototype.writeFeatures=vw.prototype.wb;vw.prototype.writeGeometry=vw.prototype.Mc;u("ol.format.WMSCapabilities",Nw,OPENLAYERS);Nw.prototype.read=Nw.prototype.c;u("ol.format.WMSGetFeatureInfo",jx,OPENLAYERS);jx.prototype.readFeatures=jx.prototype.qa; 1154u("ol.format.WMTSCapabilities",lx,OPENLAYERS);lx.prototype.read=lx.prototype.c;u("ol.format.GML2",ts,OPENLAYERS);u("ol.format.GML3",us,OPENLAYERS);us.prototype.writeGeometryNode=us.prototype.C;us.prototype.writeFeatures=us.prototype.wb;us.prototype.writeFeaturesNode=us.prototype.a;u("ol.format.GML",us,OPENLAYERS);us.prototype.writeFeatures=us.prototype.wb;us.prototype.writeFeaturesNode=us.prototype.a;hs.prototype.readFeatures=hs.prototype.qa;
1155u("ol.events.condition.altKeyOnly",function(a){a=a.b;return a.a&&!a.l&&!a.f},OPENLAYERS);u("ol.events.condition.altShiftKeysOnly",Zk,OPENLAYERS);u("ol.events.condition.always",pe,OPENLAYERS);u("ol.events.condition.click",function(a){return a.type==Wj},OPENLAYERS);u("ol.events.condition.never",oe,OPENLAYERS);u("ol.events.condition.pointerMove",$k,OPENLAYERS);u("ol.events.condition.singleClick",al,OPENLAYERS);u("ol.events.condition.doubleClick",function(a){return a.type==Xj},OPENLAYERS); 1156u("ol.events.condition.noModifierKeys",bl,OPENLAYERS);u("ol.events.condition.platformModifierKeyOnly",function(a){a=a.b;return!a.a&&a.l&&!a.f},OPENLAYERS);u("ol.events.condition.shiftKeyOnly",cl,OPENLAYERS);u("ol.events.condition.targetNotEditable",dl,OPENLAYERS);u("ol.events.condition.mouseOnly",el,OPENLAYERS);u("ol.control.Attribution",Xh,OPENLAYERS);u("ol.control.Attribution.render",Yh,OPENLAYERS);Xh.prototype.getCollapsible=Xh.prototype.Pk;Xh.prototype.setCollapsible=Xh.prototype.Sk; 1157Xh.prototype.setCollapsed=Xh.prototype.Rk;Xh.prototype.getCollapsed=Xh.prototype.Ok;u("ol.control.Control",xh,OPENLAYERS);xh.prototype.getMap=xh.prototype.i;xh.prototype.setMap=xh.prototype.setMap;xh.prototype.setTarget=xh.prototype.c;u("ol.control.defaults",di,OPENLAYERS);u("ol.control.FullScreen",ii,OPENLAYERS);u("ol.control.MousePosition",ji,OPENLAYERS);u("ol.control.MousePosition.render",ki,OPENLAYERS);ji.prototype.getCoordinateFormat=ji.prototype.Tf;ji.prototype.getProjection=ji.prototype.sg; 1158ji.prototype.setCoordinateFormat=ji.prototype.hh;ji.prototype.setProjection=ji.prototype.tg;u("ol.control.OverviewMap",nr,OPENLAYERS);u("ol.control.OverviewMap.render",or,OPENLAYERS);nr.prototype.getCollapsible=nr.prototype.Vk;nr.prototype.setCollapsible=nr.prototype.Yk;nr.prototype.setCollapsed=nr.prototype.Xk;nr.prototype.getCollapsed=nr.prototype.Uk;u("ol.control.Rotate",$h,OPENLAYERS);u("ol.control.Rotate.render",ai,OPENLAYERS);u("ol.control.ScaleLine",sr,OPENLAYERS);sr.prototype.getUnits=sr.prototype.B; 1159u("ol.control.ScaleLine.render",tr,OPENLAYERS);sr.prototype.setUnits=sr.prototype.V;u("ol.control.Zoom",bi,OPENLAYERS);u("ol.control.ZoomSlider",Gr,OPENLAYERS);u("ol.control.ZoomSlider.render",Ir,OPENLAYERS);u("ol.control.ZoomToExtent",Lr,OPENLAYERS);u("ol.color.asArray",xg,OPENLAYERS);u("ol.color.asString",zg,OPENLAYERS);gd.prototype.changed=gd.prototype.s;gd.prototype.getRevision=gd.prototype.L;gd.prototype.on=gd.prototype.G;gd.prototype.once=gd.prototype.M;gd.prototype.un=gd.prototype.J; 1160gd.prototype.unByKey=gd.prototype.N;sg.prototype.get=sg.prototype.get;sg.prototype.getKeys=sg.prototype.O;sg.prototype.getProperties=sg.prototype.P;sg.prototype.set=sg.prototype.set;sg.prototype.setProperties=sg.prototype.I;sg.prototype.unset=sg.prototype.S;sg.prototype.changed=sg.prototype.s;sg.prototype.getRevision=sg.prototype.L;sg.prototype.on=sg.prototype.G;sg.prototype.once=sg.prototype.M;sg.prototype.un=sg.prototype.J;sg.prototype.unByKey=sg.prototype.N;Mr.prototype.get=Mr.prototype.get; 1161Mr.prototype.getKeys=Mr.prototype.O;Mr.prototype.getProperties=Mr.prototype.P;Mr.prototype.set=Mr.prototype.set;Mr.prototype.setProperties=Mr.prototype.I;Mr.prototype.unset=Mr.prototype.S;Mr.prototype.changed=Mr.prototype.s;Mr.prototype.getRevision=Mr.prototype.L;Mr.prototype.on=Mr.prototype.G;Mr.prototype.once=Mr.prototype.M;Mr.prototype.un=Mr.prototype.J;Mr.prototype.unByKey=Mr.prototype.N;zn.prototype.get=zn.prototype.get;zn.prototype.getKeys=zn.prototype.O;zn.prototype.getProperties=zn.prototype.P; 1162zn.prototype.set=zn.prototype.set;zn.prototype.setProperties=zn.prototype.I;zn.prototype.unset=zn.prototype.S;zn.prototype.changed=zn.prototype.s;zn.prototype.getRevision=zn.prototype.L;zn.prototype.on=zn.prototype.G;zn.prototype.once=zn.prototype.M;zn.prototype.un=zn.prototype.J;zn.prototype.unByKey=zn.prototype.N;yx.prototype.get=yx.prototype.get;yx.prototype.getKeys=yx.prototype.O;yx.prototype.getProperties=yx.prototype.P;yx.prototype.set=yx.prototype.set;yx.prototype.setProperties=yx.prototype.I; 1163yx.prototype.unset=yx.prototype.S;yx.prototype.changed=yx.prototype.s;yx.prototype.getRevision=yx.prototype.L;yx.prototype.on=yx.prototype.G;yx.prototype.once=yx.prototype.M;yx.prototype.un=yx.prototype.J;yx.prototype.unByKey=yx.prototype.N;Ix.prototype.getTileCoord=Ix.prototype.g;X.prototype.get=X.prototype.get;X.prototype.getKeys=X.prototype.O;X.prototype.getProperties=X.prototype.P;X.prototype.set=X.prototype.set;X.prototype.setProperties=X.prototype.I;X.prototype.unset=X.prototype.S; 1164X.prototype.changed=X.prototype.s;X.prototype.getRevision=X.prototype.L;X.prototype.on=X.prototype.G;X.prototype.once=X.prototype.M;X.prototype.un=X.prototype.J;X.prototype.unByKey=X.prototype.N;Sj.prototype.map=Sj.prototype.map;Sj.prototype.frameState=Sj.prototype.frameState;Tj.prototype.originalEvent=Tj.prototype.originalEvent;Tj.prototype.pixel=Tj.prototype.pixel;Tj.prototype.coordinate=Tj.prototype.coordinate;Tj.prototype.dragging=Tj.prototype.dragging;Tj.prototype.preventDefault=Tj.prototype.preventDefault; 1165Tj.prototype.stopPropagation=Tj.prototype.c;Tj.prototype.map=Tj.prototype.map;Tj.prototype.frameState=Tj.prototype.frameState;kr.prototype.get=kr.prototype.get;kr.prototype.getKeys=kr.prototype.O;kr.prototype.getProperties=kr.prototype.P;kr.prototype.set=kr.prototype.set;kr.prototype.setProperties=kr.prototype.I;kr.prototype.unset=kr.prototype.S;kr.prototype.changed=kr.prototype.s;kr.prototype.getRevision=kr.prototype.L;kr.prototype.on=kr.prototype.G;kr.prototype.once=kr.prototype.M; 1166kr.prototype.un=kr.prototype.J;kr.prototype.unByKey=kr.prototype.N;Pf.prototype.get=Pf.prototype.get;Pf.prototype.getKeys=Pf.prototype.O;Pf.prototype.getProperties=Pf.prototype.P;Pf.prototype.set=Pf.prototype.set;Pf.prototype.setProperties=Pf.prototype.I;Pf.prototype.unset=Pf.prototype.S;Pf.prototype.changed=Pf.prototype.s;Pf.prototype.getRevision=Pf.prototype.L;Pf.prototype.on=Pf.prototype.G;Pf.prototype.once=Pf.prototype.M;Pf.prototype.un=Pf.prototype.J;Pf.prototype.unByKey=Pf.prototype.N; 1167nA.prototype.getMaxZoom=nA.prototype.Xf;
1167nA.prototype.getMinZoom=nA.prototype.Yf;nA.prototype.getOrigin=nA.prototype.Ec;nA.prototype.getResolution=nA.prototype.ua;nA.prototype.getResolutions=nA.prototype.Mg;nA.prototype.getTileCoordForCoordAndResolution=nA.prototype.cd;nA.prototype.getTileCoordForCoordAndZ=nA.prototype.Md;nA.prototype.getTileSize=nA.prototype.Ha;Hl.prototype.getOpacity=Hl.prototype.ge;Hl.prototype.getRotateWithView=Hl.prototype.Kd;Hl.prototype.getRotation=Hl.prototype.he; 1168Hl.prototype.getScale=Hl.prototype.ie;Hl.prototype.getSnapToPixel=Hl.prototype.Ld;Hl.prototype.setRotation=Hl.prototype.je;Hl.prototype.setScale=Hl.prototype.ke;Bk.prototype.getOpacity=Bk.prototype.ge;Bk.prototype.getRotateWithView=Bk.prototype.Kd;Bk.prototype.getRotation=Bk.prototype.he;Bk.prototype.getScale=Bk.prototype.ie;Bk.prototype.getSnapToPixel=Bk.prototype.Ld;Bk.prototype.setRotation=Bk.prototype.je;Bk.prototype.setScale=Bk.prototype.ke;xA.prototype.getOpacity=xA.prototype.ge; 1169xA.prototype.getRotateWithView=xA.prototype.Kd;xA.prototype.getRotation=xA.prototype.he;xA.prototype.getScale=xA.prototype.ie;xA.prototype.getSnapToPixel=xA.prototype.Ld;xA.prototype.setRotation=xA.prototype.je;xA.prototype.setScale=xA.prototype.ke;Eh.prototype.get=Eh.prototype.get;Eh.prototype.getKeys=Eh.prototype.O;Eh.prototype.getProperties=Eh.prototype.P;Eh.prototype.set=Eh.prototype.set;Eh.prototype.setProperties=Eh.prototype.I;Eh.prototype.unset=Eh.prototype.S;Eh.prototype.changed=Eh.prototype.s; 1170Eh.prototype.getRevision=Eh.prototype.L;Eh.prototype.on=Eh.prototype.G;Eh.prototype.once=Eh.prototype.M;Eh.prototype.un=Eh.prototype.J;Eh.prototype.unByKey=Eh.prototype.N;Sh.prototype.getAttributions=Sh.prototype.la;Sh.prototype.getLogo=Sh.prototype.ka;Sh.prototype.getProjection=Sh.prototype.ma;Sh.prototype.getState=Sh.prototype.na;Sh.prototype.get=Sh.prototype.get;Sh.prototype.getKeys=Sh.prototype.O;Sh.prototype.getProperties=Sh.prototype.P;Sh.prototype.set=Sh.prototype.set; 1171Sh.prototype.setProperties=Sh.prototype.I;Sh.prototype.unset=Sh.prototype.S;Sh.prototype.changed=Sh.prototype.s;Sh.prototype.getRevision=Sh.prototype.L;Sh.prototype.on=Sh.prototype.G;Sh.prototype.once=Sh.prototype.M;Sh.prototype.un=Sh.prototype.J;Sh.prototype.unByKey=Sh.prototype.N;uz.prototype.getTileGrid=uz.prototype.ya;uz.prototype.getAttributions=uz.prototype.la;uz.prototype.getLogo=uz.prototype.ka;uz.prototype.getProjection=uz.prototype.ma;uz.prototype.getState=uz.prototype.na; 1172uz.prototype.get=uz.prototype.get;uz.prototype.getKeys=uz.prototype.O;uz.prototype.getProperties=uz.prototype.P;uz.prototype.set=uz.prototype.set;uz.prototype.setProperties=uz.prototype.I;uz.prototype.unset=uz.prototype.S;uz.prototype.changed=uz.prototype.s;uz.prototype.getRevision=uz.prototype.L;uz.prototype.on=uz.prototype.G;uz.prototype.once=uz.prototype.M;uz.prototype.un=uz.prototype.J;uz.prototype.unByKey=uz.prototype.N;wz.prototype.getTileLoadFunction=wz.prototype.Xa; 1173wz.prototype.getTileUrlFunction=wz.prototype.Ya;wz.prototype.setTileLoadFunction=wz.prototype.eb;wz.prototype.setTileUrlFunction=wz.prototype.Da;wz.prototype.getTileGrid=wz.prototype.ya;wz.prototype.getAttributions=wz.prototype.la;wz.prototype.getLogo=wz.prototype.ka;wz.prototype.getProjection=wz.prototype.ma;wz.prototype.getState=wz.prototype.na;wz.prototype.get=wz.prototype.get;wz.prototype.getKeys=wz.prototype.O;wz.prototype.getProperties=wz.prototype.P;wz.prototype.set=wz.prototype.set; 1174wz.prototype.setProperties=wz.prototype.I;wz.prototype.unset=wz.prototype.S;wz.prototype.changed=wz.prototype.s;wz.prototype.getRevision=wz.prototype.L;wz.prototype.on=wz.prototype.G;wz.prototype.once=wz.prototype.M;wz.prototype.un=wz.prototype.J;wz.prototype.unByKey=wz.prototype.N;W.prototype.getAttributions=W.prototype.la;W.prototype.getLogo=W.prototype.ka;W.prototype.getProjection=W.prototype.ma;W.prototype.getState=W.prototype.na;W.prototype.get=W.prototype.get;W.prototype.getKeys=W.prototype.O; 1175W.prototype.getProperties=W.prototype.P;W.prototype.set=W.prototype.set;W.prototype.setProperties=W.prototype.I;W.prototype.unset=W.prototype.S;W.prototype.changed=W.prototype.s;W.prototype.getRevision=W.prototype.L;W.prototype.on=W.prototype.G;W.prototype.once=W.prototype.M;W.prototype.un=W.prototype.J;W.prototype.unByKey=W.prototype.N;yz.prototype.addFeature=yz.prototype.Cc;yz.prototype.addFeatures=yz.prototype.Pb;yz.prototype.clear=yz.prototype.clear;yz.prototype.forEachFeature=yz.prototype.Ne; 1176yz.prototype.forEachFeatureInExtent=yz.prototype.xc;yz.prototype.forEachFeatureIntersectingExtent=yz.prototype.Oe;yz.prototype.getFeaturesCollection=yz.prototype.Te;yz.prototype.getFeatures=yz.prototype.Dc;yz.prototype.getFeaturesAtCoordinate=yz.prototype.Se;yz.prototype.getFeaturesInExtent=yz.prototype.Ed;yz.prototype.getClosestFeatureToCoordinate=yz.prototype.Qe;yz.prototype.getExtent=yz.prototype.R;yz.prototype.getFeatureById=yz.prototype.Re;yz.prototype.removeFeature=yz.prototype.dc; 1177yz.prototype.getAttributions=yz.prototype.la;yz.prototype.getLogo=yz.prototype.ka;yz.prototype.getProjection=yz.prototype.ma;yz.prototype.getState=yz.prototype.na;yz.prototype.get=yz.prototype.get;yz.prototype.getKeys=yz.prototype.O;yz.prototype.getProperties=yz.prototype.P;yz.prototype.set=yz.prototype.set;yz.prototype.setProperties=yz.prototype.I;yz.prototype.unset=yz.prototype.S;yz.prototype.changed=yz.prototype.s;yz.prototype.getRevision=yz.prototype.L;yz.prototype.on=yz.prototype.G; 1178yz.prototype.once=yz.prototype.M;yz.prototype.un=yz.prototype.J;yz.prototype.unByKey=yz.prototype.N;rn.prototype.getAttributions=rn.prototype.la;rn.prototype.getLogo=rn.prototype.ka;rn.prototype.getProjection=rn.prototype.ma;rn.prototype.getState=rn.prototype.na;rn.prototype.get=rn.prototype.get;rn.prototype.getKeys=rn.prototype.O;rn.prototype.getProperties=rn.prototype.P;rn.prototype.set=rn.prototype.set;rn.prototype.setProperties=rn.prototype.I;rn.prototype.unset=rn.prototype.S; 1179rn.prototype.changed=rn.prototype.s;rn.prototype.getRevision=rn.prototype.L;rn.prototype.on=rn.prototype.G;rn.prototype.once=rn.prototype.M;rn.prototype.un=rn.prototype.J;rn.prototype.unByKey=rn.prototype.N;yn.prototype.getAttributions=yn.prototype.la;yn.prototype.getLogo=yn.prototype.ka;yn.prototype.getProjection=yn.prototype.ma;yn.prototype.getState=yn.prototype.na;yn.prototype.get=yn.prototype.get;yn.prototype.getKeys=yn.prototype.O;yn.prototype.getProperties=yn.prototype.P;yn.prototype.set=yn.prototype.set; 1180yn.prototype.setProperties=yn.prototype.I;yn.prototype.unset=yn.prototype.S;yn.prototype.changed=yn.prototype.s;yn.prototype.getRevision=yn.prototype.L;yn.prototype.on=yn.prototype.G;yn.prototype.once=yn.prototype.M;yn.prototype.un=yn.prototype.J;yn.prototype.unByKey=yn.prototype.N;Bz.prototype.getAttributions=Bz.prototype.la;Bz.prototype.getLogo=Bz.prototype.ka;Bz.prototype.getProjection=Bz.prototype.ma;Bz.prototype.getState=Bz.prototype.na;Bz.prototype.get=Bz.prototype.get; 1181Bz.prototype.getKeys=Bz.prototype.O;Bz.prototype.getProperties=Bz.prototype.P;Bz.prototype.set=Bz.prototype.set;Bz.prototype.setProperties=Bz.prototype.I;Bz.prototype.unset=Bz.prototype.S;Bz.prototype.changed=Bz.prototype.s;Bz.prototype.getRevision=Bz.prototype.L;Bz.prototype.on=Bz.prototype.G;Bz.prototype.once=Bz.prototype.M;Bz.prototype.un=Bz.prototype.J;Bz.prototype.unByKey=Bz.prototype.N;Cz.prototype.getAttributions=Cz.prototype.la;Cz.prototype.getLogo=Cz.prototype.ka; 1182Cz.prototype.getProjection=Cz.prototype.ma;Cz.prototype.getState=Cz.prototype.na;Cz.prototype.get=Cz.prototype.get;Cz.prototype.getKeys=Cz.prototype.O;Cz.prototype.getProperties=Cz.prototype.P;Cz.prototype.set=Cz.prototype.set;Cz.prototype.setProperties=Cz.prototype.I;Cz.prototype.unset=Cz.prototype.S;Cz.prototype.changed=Cz.prototype.s;Cz.prototype.getRevision=Cz.prototype.L;Cz.prototype.on=Cz.prototype.G;Cz.prototype.once=Cz.prototype.M;Cz.prototype.un=Cz.prototype.J;Cz.prototype.unByKey=Cz.prototype.N; 1183Rp.prototype.getAttributions=Rp.prototype.la;Rp.prototype.getLogo=Rp.prototype.ka;Rp.prototype.getProjection=Rp.prototype.ma;Rp.prototype.getState=Rp.prototype.na;Rp.prototype.get=Rp.prototype.get;Rp.prototype.getKeys=Rp.prototype.O;Rp.prototype.getProperties=Rp.prototype.P;Rp.prototype.set=Rp.prototype.set;Rp.prototype.setProperties=Rp.prototype.I;Rp.prototype.unset=Rp.prototype.S;Rp.prototype.changed=Rp.prototype.s;Rp.prototype.getRevision=Rp.prototype.L;Rp.prototype.on=Rp.prototype.G; 1184Rp.prototype.once=Rp.prototype.M;Rp.prototype.un=Rp.prototype.J;Rp.prototype.unByKey=Rp.prototype.N;Dz.prototype.getAttributions=Dz.prototype.la;Dz.prototype.getLogo=Dz.prototype.ka;Dz.prototype.getProjection=Dz.prototype.ma;Dz.prototype.getState=Dz.prototype.na;Dz.prototype.get=Dz.prototype.get;Dz.prototype.getKeys=Dz.prototype.O;Dz.prototype.getProperties=Dz.prototype.P;Dz.prototype.set=Dz.prototype.set;Dz.prototype.setProperties=Dz.prototype.I;Dz.prototype.unset=Dz.prototype.S; 1185Dz.prototype.changed=Dz.prototype.s;Dz.prototype.getRevision=Dz.prototype.L;Dz.prototype.on=Dz.prototype.G;Dz.prototype.once=Dz.prototype.M;Dz.prototype.un=Dz.prototype.J;Dz.prototype.unByKey=Dz.prototype.N;Hz.prototype.getTileLoadFunction=Hz.prototype.Xa;Hz.prototype.getTileUrlFunction=Hz.prototype.Ya;Hz.prototype.setTileLoadFunction=Hz.prototype.eb;Hz.prototype.setTileUrlFunction=Hz.prototype.Da;Hz.prototype.getTileGrid=Hz.prototype.ya;Hz.prototype.getAttributions=Hz.prototype.la; 1186Hz.prototype.getLogo=Hz.prototype.ka;
1186Hz.prototype.getProjection=Hz.prototype.ma;Hz.prototype.getState=Hz.prototype.na;Hz.prototype.get=Hz.prototype.get;Hz.prototype.getKeys=Hz.prototype.O;Hz.prototype.getProperties=Hz.prototype.P;Hz.prototype.set=Hz.prototype.set;Hz.prototype.setProperties=Hz.prototype.I;Hz.prototype.unset=Hz.prototype.S;Hz.prototype.changed=Hz.prototype.s;Hz.prototype.getRevision=Hz.prototype.L;Hz.prototype.on=Hz.prototype.G;Hz.prototype.once=Hz.prototype.M;Hz.prototype.un=Hz.prototype.J; 1187Hz.prototype.unByKey=Hz.prototype.N;Kz.prototype.getUrls=Kz.prototype.g;Kz.prototype.setUrl=Kz.prototype.f;Kz.prototype.getTileLoadFunction=Kz.prototype.Xa;Kz.prototype.getTileUrlFunction=Kz.prototype.Ya;Kz.prototype.setTileLoadFunction=Kz.prototype.eb;Kz.prototype.setTileUrlFunction=Kz.prototype.Da;Kz.prototype.getTileGrid=Kz.prototype.ya;Kz.prototype.getAttributions=Kz.prototype.la;Kz.prototype.getLogo=Kz.prototype.ka;Kz.prototype.getProjection=Kz.prototype.ma;Kz.prototype.getState=Kz.prototype.na; 1188Kz.prototype.get=Kz.prototype.get;Kz.prototype.getKeys=Kz.prototype.O;Kz.prototype.getProperties=Kz.prototype.P;Kz.prototype.set=Kz.prototype.set;Kz.prototype.setProperties=Kz.prototype.I;Kz.prototype.unset=Kz.prototype.S;Kz.prototype.changed=Kz.prototype.s;Kz.prototype.getRevision=Kz.prototype.L;Kz.prototype.on=Kz.prototype.G;Kz.prototype.once=Kz.prototype.M;Kz.prototype.un=Kz.prototype.J;Kz.prototype.unByKey=Kz.prototype.N;Iz.prototype.getUrls=Iz.prototype.g;Iz.prototype.setUrl=Iz.prototype.f; 1189Iz.prototype.getTileLoadFunction=Iz.prototype.Xa;Iz.prototype.getTileUrlFunction=Iz.prototype.Ya;Iz.prototype.setTileLoadFunction=Iz.prototype.eb;Iz.prototype.setTileUrlFunction=Iz.prototype.Da;Iz.prototype.getTileGrid=Iz.prototype.ya;Iz.prototype.getAttributions=Iz.prototype.la;Iz.prototype.getLogo=Iz.prototype.ka;Iz.prototype.getProjection=Iz.prototype.ma;Iz.prototype.getState=Iz.prototype.na;Iz.prototype.get=Iz.prototype.get;Iz.prototype.getKeys=Iz.prototype.O;Iz.prototype.getProperties=Iz.prototype.P; 1190Iz.prototype.set=Iz.prototype.set;Iz.prototype.setProperties=Iz.prototype.I;Iz.prototype.unset=Iz.prototype.S;Iz.prototype.changed=Iz.prototype.s;Iz.prototype.getRevision=Iz.prototype.L;Iz.prototype.on=Iz.prototype.G;Iz.prototype.once=Iz.prototype.M;Iz.prototype.un=Iz.prototype.J;Iz.prototype.unByKey=Iz.prototype.N;Nz.prototype.getAttributions=Nz.prototype.la;Nz.prototype.getLogo=Nz.prototype.ka;Nz.prototype.getProjection=Nz.prototype.ma;Nz.prototype.getState=Nz.prototype.na;Nz.prototype.get=Nz.prototype.get; 1191Nz.prototype.getKeys=Nz.prototype.O;Nz.prototype.getProperties=Nz.prototype.P;Nz.prototype.set=Nz.prototype.set;Nz.prototype.setProperties=Nz.prototype.I;Nz.prototype.unset=Nz.prototype.S;Nz.prototype.changed=Nz.prototype.s;Nz.prototype.getRevision=Nz.prototype.L;Nz.prototype.on=Nz.prototype.G;Nz.prototype.once=Nz.prototype.M;Nz.prototype.un=Nz.prototype.J;Nz.prototype.unByKey=Nz.prototype.N;Wz.prototype.getUrls=Wz.prototype.g;Wz.prototype.setUrl=Wz.prototype.f;Wz.prototype.getTileLoadFunction=Wz.prototype.Xa; 1192Wz.prototype.getTileUrlFunction=Wz.prototype.Ya;Wz.prototype.setTileLoadFunction=Wz.prototype.eb;Wz.prototype.setTileUrlFunction=Wz.prototype.Da;Wz.prototype.getTileGrid=Wz.prototype.ya;Wz.prototype.getAttributions=Wz.prototype.la;Wz.prototype.getLogo=Wz.prototype.ka;Wz.prototype.getProjection=Wz.prototype.ma;Wz.prototype.getState=Wz.prototype.na;Wz.prototype.get=Wz.prototype.get;Wz.prototype.getKeys=Wz.prototype.O;Wz.prototype.getProperties=Wz.prototype.P;Wz.prototype.set=Wz.prototype.set; 1193Wz.prototype.setProperties=Wz.prototype.I;Wz.prototype.unset=Wz.prototype.S;Wz.prototype.changed=Wz.prototype.s;Wz.prototype.getRevision=Wz.prototype.L;Wz.prototype.on=Wz.prototype.G;Wz.prototype.once=Wz.prototype.M;Wz.prototype.un=Wz.prototype.J;Wz.prototype.unByKey=Wz.prototype.N;Yz.prototype.getTileLoadFunction=Yz.prototype.Xa;Yz.prototype.getTileUrlFunction=Yz.prototype.Ya;Yz.prototype.setTileLoadFunction=Yz.prototype.eb;Yz.prototype.setTileUrlFunction=Yz.prototype.Da; 1194Yz.prototype.getTileGrid=Yz.prototype.ya;Yz.prototype.getAttributions=Yz.prototype.la;Yz.prototype.getLogo=Yz.prototype.ka;Yz.prototype.getProjection=Yz.prototype.ma;Yz.prototype.getState=Yz.prototype.na;Yz.prototype.get=Yz.prototype.get;Yz.prototype.getKeys=Yz.prototype.O;Yz.prototype.getProperties=Yz.prototype.P;Yz.prototype.set=Yz.prototype.set;Yz.prototype.setProperties=Yz.prototype.I;Yz.prototype.unset=Yz.prototype.S;Yz.prototype.changed=Yz.prototype.s;Yz.prototype.getRevision=Yz.prototype.L; 1195Yz.prototype.on=Yz.prototype.G;Yz.prototype.once=Yz.prototype.M;Yz.prototype.un=Yz.prototype.J;Yz.prototype.unByKey=Yz.prototype.N;$z.prototype.getTileGrid=$z.prototype.ya;$z.prototype.getAttributions=$z.prototype.la;$z.prototype.getLogo=$z.prototype.ka;$z.prototype.getProjection=$z.prototype.ma;$z.prototype.getState=$z.prototype.na;$z.prototype.get=$z.prototype.get;$z.prototype.getKeys=$z.prototype.O;$z.prototype.getProperties=$z.prototype.P;$z.prototype.set=$z.prototype.set; 1196$z.prototype.setProperties=$z.prototype.I;$z.prototype.unset=$z.prototype.S;$z.prototype.changed=$z.prototype.s;$z.prototype.getRevision=$z.prototype.L;$z.prototype.on=$z.prototype.G;$z.prototype.once=$z.prototype.M;$z.prototype.un=$z.prototype.J;$z.prototype.unByKey=$z.prototype.N;aA.prototype.getTileLoadFunction=aA.prototype.Xa;aA.prototype.getTileUrlFunction=aA.prototype.Ya;aA.prototype.setTileLoadFunction=aA.prototype.eb;aA.prototype.setTileUrlFunction=aA.prototype.Da; 1197aA.prototype.getTileGrid=aA.prototype.ya;aA.prototype.getAttributions=aA.prototype.la;aA.prototype.getLogo=aA.prototype.ka;aA.prototype.getProjection=aA.prototype.ma;aA.prototype.getState=aA.prototype.na;aA.prototype.get=aA.prototype.get;aA.prototype.getKeys=aA.prototype.O;aA.prototype.getProperties=aA.prototype.P;aA.prototype.set=aA.prototype.set;aA.prototype.setProperties=aA.prototype.I;aA.prototype.unset=aA.prototype.S;aA.prototype.changed=aA.prototype.s;aA.prototype.getRevision=aA.prototype.L; 1198aA.prototype.on=aA.prototype.G;aA.prototype.once=aA.prototype.M;aA.prototype.un=aA.prototype.J;aA.prototype.unByKey=aA.prototype.N;bA.prototype.getTileGrid=bA.prototype.ya;bA.prototype.getAttributions=bA.prototype.la;bA.prototype.getLogo=bA.prototype.ka;bA.prototype.getProjection=bA.prototype.ma;bA.prototype.getState=bA.prototype.na;bA.prototype.get=bA.prototype.get;bA.prototype.getKeys=bA.prototype.O;bA.prototype.getProperties=bA.prototype.P;bA.prototype.set=bA.prototype.set; 1199bA.prototype.setProperties=bA.prototype.I;bA.prototype.unset=bA.prototype.S;bA.prototype.changed=bA.prototype.s;bA.prototype.getRevision=bA.prototype.L;bA.prototype.on=bA.prototype.G;bA.prototype.once=bA.prototype.M;bA.prototype.un=bA.prototype.J;bA.prototype.unByKey=bA.prototype.N;gA.prototype.addFeature=gA.prototype.Cc;gA.prototype.addFeatures=gA.prototype.Pb;gA.prototype.clear=gA.prototype.clear;gA.prototype.forEachFeature=gA.prototype.Ne;gA.prototype.forEachFeatureInExtent=gA.prototype.xc; 1200gA.prototype.forEachFeatureIntersectingExtent=gA.prototype.Oe;gA.prototype.getFeaturesCollection=gA.prototype.Te;gA.prototype.getFeatures=gA.prototype.Dc;gA.prototype.getFeaturesAtCoordinate=gA.prototype.Se;gA.prototype.getFeaturesInExtent=gA.prototype.Ed;gA.prototype.getClosestFeatureToCoordinate=gA.prototype.Qe;gA.prototype.getExtent=gA.prototype.R;gA.prototype.getFeatureById=gA.prototype.Re;gA.prototype.removeFeature=gA.prototype.dc;gA.prototype.getAttributions=gA.prototype.la; 1201gA.prototype.getLogo=gA.prototype.ka;gA.prototype.getProjection=gA.prototype.ma;gA.prototype.getState=gA.prototype.na;gA.prototype.get=gA.prototype.get;gA.prototype.getKeys=gA.prototype.O;gA.prototype.getProperties=gA.prototype.P;gA.prototype.set=gA.prototype.set;gA.prototype.setProperties=gA.prototype.I;gA.prototype.unset=gA.prototype.S;gA.prototype.changed=gA.prototype.s;gA.prototype.getRevision=gA.prototype.L;gA.prototype.on=gA.prototype.G;gA.prototype.once=gA.prototype.M;gA.prototype.un=gA.prototype.J; 1202gA.prototype.unByKey=gA.prototype.N;jA.prototype.getTileLoadFunction=jA.prototype.Xa;jA.prototype.getTileUrlFunction=jA.prototype.Ya;jA.prototype.setTileLoadFunction=jA.prototype.eb;jA.prototype.setTileUrlFunction=jA.prototype.Da;jA.prototype.getTileGrid=jA.prototype.ya;jA.prototype.getAttributions=jA.prototype.la;jA.prototype.getLogo=jA.prototype.ka;jA.prototype.getProjection=jA.prototype.ma;jA.prototype.getState=jA.prototype.na;jA.prototype.get=jA.prototype.get;jA.prototype.getKeys=jA.prototype.O; 1203jA.prototype.getProperties=jA.prototype.P;jA.prototype.set=jA.prototype.set;jA.prototype.setProperties=jA.prototype.I;jA.prototype.unset=jA.prototype.S;jA.prototype.changed=jA.prototype.s;jA.prototype.getRevision=jA.prototype.L;jA.prototype.on=jA.prototype.G;jA.prototype.once=jA.prototype.M;jA.prototype.un=jA.prototype.J;jA.prototype.unByKey=jA.prototype.N;pA.prototype.getTileLoadFunction=pA.prototype.Xa;pA.prototype.getTileUrlFunction=pA.prototype.Ya;pA.prototype.setTileLoadFunction=pA.prototype.eb; 1204pA.prototype.setTileUrlFunction=pA.prototype.Da;pA.prototype.getTileGrid=pA.prototype.ya;pA.prototype.getAttributions=pA.prototype.la;pA.prototype.getLogo=pA.prototype.ka;pA.prototype.getProjection=pA.prototype.ma;pA.prototype.getState=pA.prototype.na;pA.prototype.get=pA.prototype.get;pA.prototype.getKeys=pA.prototype.O;pA.prototype.getProperties=pA.prototype.P;pA.prototype.set=pA.prototype.set;pA.prototype.setProperties=pA.prototype.I;pA.prototype.unset=pA.prototype.S;pA.prototype.changed=pA.prototype.s; 1205pA.prototype.getRevision=pA.prototype.L;pA.prototype.on=pA.prototype.G;pA.prototype.once=pA.prototype.M;pA.prototype.un=pA.prototype.J;pA.prototype.unByKey=pA.prototype.N;rA.prototype.getTileLoadFunction=rA.prototype.Xa;rA.prototype.getTileUrlFunction=rA.prototype.Ya;rA.prototype.setTileLoadFunction=rA.prototype.eb;rA.prototype.setTileUrlFunction=rA.prototype.Da;rA.prototype.getTileGrid=rA.prototype.ya;rA.prototype.getAttributions=rA.prototype.la;rA.prototype.getLogo=rA.prototype.ka; 1206rA.prototype.getProjection=rA.prototype.ma;rA.prototype.getState=rA.prototype.na;rA.prototype.get=rA.prototype.get;rA.prototype.getKeys=rA.prototype.O;rA.prototype.getProperties=rA.prototype.P;rA.prototype.set=rA.prototype.set;rA.prototype.setProperties=rA.prototype.I;rA.prototype.unset=rA.prototype.S;rA.prototype.changed=rA.prototype.s;rA.prototype.getRevision=rA.prototype.L;rA.prototype.on=rA.prototype.G;rA.prototype.once=rA.prototype.M;rA.prototype.un=rA.prototype.J;rA.prototype.unByKey=rA.prototype.N; 1207qk.prototype.changed=qk.prototype.s;qk.prototype.getRevision=qk.prototype.L;qk.prototype.on=qk.prototype.G;qk.prototype.once=qk.prototype.M;qk.prototype.un=qk.prototype.J;qk.prototype.unByKey=qk.prototype.N;Uq.prototype.changed=Uq.prototype.s;Uq.prototype.getRevision=Uq.prototype.L;Uq.prototype.on=Uq.prototype.G;Uq.prototype.once=Uq.prototype.M;Uq.prototype.un=Uq.prototype.J;Uq.prototype.unByKey=Uq.prototype.N;Xq.prototype.changed=Xq.prototype.s;Xq.prototype.getRevision=Xq.prototype.L; 1208Xq.prototype.on=Xq.prototype.G;Xq.prototype.once=Xq.prototype.M;Xq.prototype.un=Xq.prototype.J;Xq.prototype.unByKey=Xq.prototype.N;cr.prototype.changed=cr.prototype.s;cr.prototype.getRevision=cr.prototype.L;cr.prototype.on=cr.prototype.G;cr.prototype.once=cr.prototype.M;cr.prototype.un=cr.prototype.J;cr.prototype.unByKey=cr.prototype.N;er.prototype.changed=er.prototype.s;er.prototype.getRevision=er.prototype.L;er.prototype.on=er.prototype.G;er.prototype.once=er.prototype.M;er.prototype.un=er.prototype.J; 1209er.prototype.unByKey=er.prototype.N;Yp.prototype.changed=Yp.prototype.s;Yp.prototype.getRevision=Yp.prototype.L;Yp.prototype.on=Yp.prototype.G;Yp.prototype.once=Yp.prototype.M;Yp.prototype.un=Yp.prototype.J;Yp.prototype.unByKey=Yp.prototype.N;Zp.prototype.changed=Zp.prototype.s;Zp.prototype.getRevision=Zp.prototype.L;Zp.prototype.on=Zp.prototype.G;Zp.prototype.once=Zp.prototype.M;Zp.prototype.un=Zp.prototype.J;Zp.prototype.unByKey=Zp.prototype.N;$p.prototype.changed=$p.prototype.s; 1210$p.prototype.getRevision=$p.prototype.L;$p.prototype.on=$p.prototype.G;$p.prototype.once=$p.prototype.M;$p.prototype.un=$p.prototype.J;$p.prototype.unByKey=$p.prototype.N;bq.prototype.changed=bq.prototype.s;bq.prototype.getRevision=bq.prototype.L;bq.prototype.on=bq.prototype.G;bq.prototype.once=bq.prototype.M;bq.prototype.un=bq.prototype.J;bq.prototype.unByKey=bq.prototype.N;xm.prototype.changed=xm.prototype.s;xm.prototype.getRevision=xm.prototype.L;xm.prototype.on=xm.prototype.G; 1211xm.prototype.once=xm.prototype.M;xm.prototype.un=xm.prototype.J;xm.prototype.unByKey=xm.prototype.N;Tp.prototype.changed=Tp.prototype.s;Tp.prototype.getRevision=Tp.prototype.L;Tp.prototype.on=Tp.prototype.G;Tp.prototype.once=Tp.prototype.M;Tp.prototype.un=Tp.prototype.J;Tp.prototype.unByKey=Tp.prototype.N;Up.prototype.changed=Up.prototype.s;Up.prototype.getRevision=Up.prototype.L;Up.prototype.on=Up.prototype.G;Up.prototype.once=Up.prototype.M;Up.prototype.un=Up.prototype.J;Up.prototype.unByKey=Up.prototype.N; 1212Vp.prototype.changed=Vp.prototype.s;Vp.prototype.getRevision=Vp.prototype.L;Vp.prototype.on=Vp.prototype.G;Vp.prototype.once=Vp.prototype.M;Vp.prototype.un=Vp.prototype.J;Vp.prototype.unByKey=Vp.prototype.N;gk.prototype.get=gk.prototype.get;gk.prototype.getKeys=gk.prototype.O;gk.prototype.getProperties=gk.prototype.P;gk.prototype.set=gk.prototype.set;gk.prototype.setProperties=gk.prototype.I;gk.prototype.unset=gk.prototype.S;gk.prototype.changed=gk.prototype.s;gk.prototype.getRevision=gk.prototype.L; 1213gk.prototype.on=gk.prototype.G;gk.prototype.once=gk.prototype.M;gk.prototype.un=gk.prototype.J;gk.prototype.unByKey=gk.prototype.N;F.prototype.getBrightness=F.prototype.Ab;F.prototype.getContrast=F.prototype.Bb;F.prototype.getHue=F.prototype.Cb;F.prototype.getExtent=F.prototype.R;F.prototype.getMaxResolution=F.prototype.Db;F.prototype.getMinResolution=F.prototype.Eb;F.prototype.getOpacity=F.prototype.Jb;F.prototype.getSaturation=F.prototype.Fb;F.prototype.getVisible=F.prototype.ib; 1214F.prototype.setBrightness=F.prototype.gc;F.prototype.setContrast=F.prototype.hc;F.prototype.setHue=F.prototype.ic;F.prototype.setExtent=F.prototype.$b;F.prototype.setMaxResolution=F.prototype.jc;F.prototype.setMinResolution=F.prototype.kc;F.prototype.setOpacity=F.prototype.ac;F.prototype.setSaturation=F.prototype.lc;F.prototype.setVisible=F.prototype.mc;F.prototype.get=F.prototype.get;F.prototype.getKeys=F.prototype.O;F.prototype.getProperties=F.prototype.P;F.prototype.set=F.prototype.set; 1215F.prototype.setProperties=F.prototype.I;F.prototype.unset=F.prototype.S;F.prototype.changed=F.prototype.s;F.prototype.getRevision=F.prototype.L;F.prototype.on=F.prototype.G;F.prototype.once=F.prototype.M;F.prototype.un=F.prototype.J;F.prototype.unByKey=F.prototype.N;M.prototype.setMap=M.prototype.setMap;M.prototype.setSource=M.prototype.Jc;M.prototype.getBrightness=M.prototype.Ab;M.prototype.getContrast=M.prototype.Bb;M.prototype.getHue=M.prototype.Cb;M.prototype.getExtent=M.prototype.R; 1216M.prototype.getMaxResolution=M.prototype.Db;M.prototype.getMinResolution=M.prototype.Eb;M.prototype.getOpacity=M.prototype.Jb;M.prototype.getSaturation=M.prototype.Fb;M.prototype.getVisible=M.prototype.ib;M.prototype.setBrightness=M.prototype.gc;M.prototype.setContrast=M.prototype.hc;M.prototype.setHue=M.prototype.ic;M.prototype.setExtent=M.prototype.$b;M.prototype.setMaxResolution=M.prototype.jc;M.prototype.setMinResolution=M.prototype.kc;M.prototype.setOpacity=M.prototype.ac; 1217M.prototype.setSaturation=M.prototype.lc;M.prototype.setVisible=M.prototype.mc;M.prototype.get=M.prototype.get;M.prototype.getKeys=M.prototype.O;M.prototype.getProperties=M.prototype.P;M.prototype.set=M.prototype.set;M.prototype.setProperties=M.prototype.I;M.prototype.unset=M.prototype.S;M.prototype.changed=M.prototype.s;M.prototype.getRevision=M.prototype.L;M.prototype.on=M.prototype.G;M.prototype.once=M.prototype.M;M.prototype.un=M.prototype.J;M.prototype.unByKey=M.prototype.N; 1218Z.prototype.getSource=Z.prototype.da;Z.prototype.getStyle=Z.prototype.T;Z.prototype.getStyleFunction=Z.prototype.V;Z.prototype.setStyle=Z.prototype.i;Z.prototype.setMap=Z.prototype.setMap;Z.prototype.setSource=Z.prototype.Jc;Z.prototype.getBrightness=Z.prototype.Ab;Z.prototype.getContrast=Z.prototype.Bb;Z.prototype.getHue=Z.prototype.Cb;Z.prototype.getExtent=Z.prototype.R;Z.prototype.getMaxResolution=Z.prototype.Db;Z.prototype.getMinResolution=Z.prototype.Eb;Z.prototype.getOpa
1218city=Z.prototype.Jb; 1219Z.prototype.getSaturation=Z.prototype.Fb;Z.prototype.getVisible=Z.prototype.ib;Z.prototype.setBrightness=Z.prototype.gc;Z.prototype.setContrast=Z.prototype.hc;Z.prototype.setHue=Z.prototype.ic;Z.prototype.setExtent=Z.prototype.$b;Z.prototype.setMaxResolution=Z.prototype.jc;Z.prototype.setMinResolution=Z.prototype.kc;Z.prototype.setOpacity=Z.prototype.ac;Z.prototype.setSaturation=Z.prototype.lc;Z.prototype.setVisible=Z.prototype.mc;Z.prototype.get=Z.prototype.get;Z.prototype.getKeys=Z.prototype.O; 1220Z.prototype.getProperties=Z.prototype.P;Z.prototype.set=Z.prototype.set;Z.prototype.setProperties=Z.prototype.I;Z.prototype.unset=Z.prototype.S;Z.prototype.changed=Z.prototype.s;Z.prototype.getRevision=Z.prototype.L;Z.prototype.on=Z.prototype.G;Z.prototype.once=Z.prototype.M;Z.prototype.un=Z.prototype.J;Z.prototype.unByKey=Z.prototype.N;I.prototype.setMap=I.prototype.setMap;I.prototype.setSource=I.prototype.Jc;I.prototype.getBrightness=I.prototype.Ab;I.prototype.getContrast=I.prototype.Bb; 1221I.prototype.getHue=I.prototype.Cb;I.prototype.getExtent=I.prototype.R;I.prototype.getMaxResolution=I.prototype.Db;I.prototype.getMinResolution=I.prototype.Eb;I.prototype.getOpacity=I.prototype.Jb;I.prototype.getSaturation=I.prototype.Fb;I.prototype.getVisible=I.prototype.ib;I.prototype.setBrightness=I.prototype.gc;I.prototype.setContrast=I.prototype.hc;I.prototype.setHue=I.prototype.ic;I.prototype.setExtent=I.prototype.$b;I.prototype.setMaxResolution=I.prototype.jc;I.prototype.setMinResolution=I.prototype.kc; 1222I.prototype.setOpacity=I.prototype.ac;I.prototype.setSaturation=I.prototype.lc;I.prototype.setVisible=I.prototype.mc;I.prototype.get=I.prototype.get;I.prototype.getKeys=I.prototype.O;I.prototype.getProperties=I.prototype.P;I.prototype.set=I.prototype.set;I.prototype.setProperties=I.prototype.I;I.prototype.unset=I.prototype.S;I.prototype.changed=I.prototype.s;I.prototype.getRevision=I.prototype.L;I.prototype.on=I.prototype.G;I.prototype.once=I.prototype.M;I.prototype.un=I.prototype.J; 1223I.prototype.unByKey=I.prototype.N;G.prototype.getBrightness=G.prototype.Ab;G.prototype.getContrast=G.prototype.Bb;G.prototype.getHue=G.prototype.Cb;G.prototype.getExtent=G.prototype.R;G.prototype.getMaxResolution=G.prototype.Db;G.prototype.getMinResolution=G.prototype.Eb;G.prototype.getOpacity=G.prototype.Jb;G.prototype.getSaturation=G.prototype.Fb;G.prototype.getVisible=G.prototype.ib;G.prototype.setBrightness=G.prototype.gc;G.prototype.setContrast=G.prototype.hc;G.prototype.setHue=G.prototype.ic; 1224G.prototype.setExtent=G.prototype.$b;G.prototype.setMaxResolution=G.prototype.jc;G.prototype.setMinResolution=G.prototype.kc;G.prototype.setOpacity=G.prototype.ac;G.prototype.setSaturation=G.prototype.lc;G.prototype.setVisible=G.prototype.mc;G.prototype.get=G.prototype.get;G.prototype.getKeys=G.prototype.O;G.prototype.getProperties=G.prototype.P;G.prototype.set=G.prototype.set;G.prototype.setProperties=G.prototype.I;G.prototype.unset=G.prototype.S;G.prototype.changed=G.prototype.s; 1225G.prototype.getRevision=G.prototype.L;G.prototype.on=G.prototype.G;G.prototype.once=G.prototype.M;G.prototype.un=G.prototype.J;G.prototype.unByKey=G.prototype.N;K.prototype.setMap=K.prototype.setMap;K.prototype.setSource=K.prototype.Jc;K.prototype.getBrightness=K.prototype.Ab;K.prototype.getContrast=K.prototype.Bb;K.prototype.getHue=K.prototype.Cb;K.prototype.getExtent=K.prototype.R;K.prototype.getMaxResolution=K.prototype.Db;K.prototype.getMinResolution=K.prototype.Eb;K.prototype.getOpacity=K.prototype.Jb; 1226K.prototype.getSaturation=K.prototype.Fb;K.prototype.getVisible=K.prototype.ib;K.prototype.setBrightness=K.prototype.gc;K.prototype.setContrast=K.prototype.hc;K.prototype.setHue=K.prototype.ic;K.prototype.setExtent=K.prototype.$b;K.prototype.setMaxResolution=K.prototype.jc;K.prototype.setMinResolution=K.prototype.kc;K.prototype.setOpacity=K.prototype.ac;K.prototype.setSaturation=K.prototype.lc;K.prototype.setVisible=K.prototype.mc;K.prototype.get=K.prototype.get;K.prototype.getKeys=K.prototype.O; 1227K.prototype.getProperties=K.prototype.P;K.prototype.set=K.prototype.set;K.prototype.setProperties=K.prototype.I;K.prototype.unset=K.prototype.S;K.prototype.changed=K.prototype.s;K.prototype.getRevision=K.prototype.L;K.prototype.on=K.prototype.G;K.prototype.once=K.prototype.M;K.prototype.un=K.prototype.J;K.prototype.unByKey=K.prototype.N;Tk.prototype.get=Tk.prototype.get;Tk.prototype.getKeys=Tk.prototype.O;Tk.prototype.getProperties=Tk.prototype.P;Tk.prototype.set=Tk.prototype.set; 1228Tk.prototype.setProperties=Tk.prototype.I;Tk.prototype.unset=Tk.prototype.S;Tk.prototype.changed=Tk.prototype.s;Tk.prototype.getRevision=Tk.prototype.L;Tk.prototype.on=Tk.prototype.G;Tk.prototype.once=Tk.prototype.M;Tk.prototype.un=Tk.prototype.J;Tk.prototype.unByKey=Tk.prototype.N;Xk.prototype.getActive=Xk.prototype.c;Xk.prototype.setActive=Xk.prototype.i;Xk.prototype.get=Xk.prototype.get;Xk.prototype.getKeys=Xk.prototype.O;Xk.prototype.getProperties=Xk.prototype.P;Xk.prototype.set=Xk.prototype.set; 1229Xk.prototype.setProperties=Xk.prototype.I;Xk.prototype.unset=Xk.prototype.S;Xk.prototype.changed=Xk.prototype.s;Xk.prototype.getRevision=Xk.prototype.L;Xk.prototype.on=Xk.prototype.G;Xk.prototype.once=Xk.prototype.M;Xk.prototype.un=Xk.prototype.J;Xk.prototype.unByKey=Xk.prototype.N;cy.prototype.getActive=cy.prototype.c;cy.prototype.setActive=cy.prototype.i;cy.prototype.get=cy.prototype.get;cy.prototype.getKeys=cy.prototype.O;cy.prototype.getProperties=cy.prototype.P;cy.prototype.set=cy.prototype.set; 1230cy.prototype.setProperties=cy.prototype.I;cy.prototype.unset=cy.prototype.S;cy.prototype.changed=cy.prototype.s;cy.prototype.getRevision=cy.prototype.L;cy.prototype.on=cy.prototype.G;cy.prototype.once=cy.prototype.M;cy.prototype.un=cy.prototype.J;cy.prototype.unByKey=cy.prototype.N;fl.prototype.getActive=fl.prototype.c;fl.prototype.setActive=fl.prototype.i;fl.prototype.get=fl.prototype.get;fl.prototype.getKeys=fl.prototype.O;fl.prototype.getProperties=fl.prototype.P;fl.prototype.set=fl.prototype.set; 1231fl.prototype.setProperties=fl.prototype.I;fl.prototype.unset=fl.prototype.S;fl.prototype.changed=fl.prototype.s;fl.prototype.getRevision=fl.prototype.L;fl.prototype.on=fl.prototype.G;fl.prototype.once=fl.prototype.M;fl.prototype.un=fl.prototype.J;fl.prototype.unByKey=fl.prototype.N;vl.prototype.getActive=vl.prototype.c;vl.prototype.setActive=vl.prototype.i;vl.prototype.get=vl.prototype.get;vl.prototype.getKeys=vl.prototype.O;vl.prototype.getProperties=vl.prototype.P;vl.prototype.set=vl.prototype.set; 1232vl.prototype.setProperties=vl.prototype.I;vl.prototype.unset=vl.prototype.S;vl.prototype.changed=vl.prototype.s;vl.prototype.getRevision=vl.prototype.L;vl.prototype.on=vl.prototype.G;vl.prototype.once=vl.prototype.M;vl.prototype.un=vl.prototype.J;vl.prototype.unByKey=vl.prototype.N;il.prototype.getActive=il.prototype.c;il.prototype.setActive=il.prototype.i;il.prototype.get=il.prototype.get;il.prototype.getKeys=il.prototype.O;il.prototype.getProperties=il.prototype.P;il.prototype.set=il.prototype.set; 1233il.prototype.setProperties=il.prototype.I;il.prototype.unset=il.prototype.S;il.prototype.changed=il.prototype.s;il.prototype.getRevision=il.prototype.L;il.prototype.on=il.prototype.G;il.prototype.once=il.prototype.M;il.prototype.un=il.prototype.J;il.prototype.unByKey=il.prototype.N;gy.prototype.getActive=gy.prototype.c;gy.prototype.setActive=gy.prototype.i;gy.prototype.get=gy.prototype.get;gy.prototype.getKeys=gy.prototype.O;gy.prototype.getProperties=gy.prototype.P;gy.prototype.set=gy.prototype.set; 1234gy.prototype.setProperties=gy.prototype.I;gy.prototype.unset=gy.prototype.S;gy.prototype.changed=gy.prototype.s;gy.prototype.getRevision=gy.prototype.L;gy.prototype.on=gy.prototype.G;gy.prototype.once=gy.prototype.M;gy.prototype.un=gy.prototype.J;gy.prototype.unByKey=gy.prototype.N;ml.prototype.getActive=ml.prototype.c;ml.prototype.setActive=ml.prototype.i;ml.prototype.get=ml.prototype.get;ml.prototype.getKeys=ml.prototype.O;ml.prototype.getProperties=ml.prototype.P;ml.prototype.set=ml.prototype.set; 1235ml.prototype.setProperties=ml.prototype.I;ml.prototype.unset=ml.prototype.S;ml.prototype.changed=ml.prototype.s;ml.prototype.getRevision=ml.prototype.L;ml.prototype.on=ml.prototype.G;ml.prototype.once=ml.prototype.M;ml.prototype.un=ml.prototype.J;ml.prototype.unByKey=ml.prototype.N;Nl.prototype.getGeometry=Nl.prototype.X;Nl.prototype.getActive=Nl.prototype.c;Nl.prototype.setActive=Nl.prototype.i;Nl.prototype.get=Nl.prototype.get;Nl.prototype.getKeys=Nl.prototype.O;Nl.prototype.getProperties=Nl.prototype.P; 1236Nl.prototype.set=Nl.prototype.set;Nl.prototype.setProperties=Nl.prototype.I;Nl.prototype.unset=Nl.prototype.S;Nl.prototype.changed=Nl.prototype.s;Nl.prototype.getRevision=Nl.prototype.L;Nl.prototype.on=Nl.prototype.G;Nl.prototype.once=Nl.prototype.M;Nl.prototype.un=Nl.prototype.J;Nl.prototype.unByKey=Nl.prototype.N;ly.prototype.getActive=ly.prototype.c;ly.prototype.setActive=ly.prototype.i;ly.prototype.get=ly.prototype.get;ly.prototype.getKeys=ly.prototype.O;ly.prototype.getProperties=ly.prototype.P; 1237ly.prototype.set=ly.prototype.set;ly.prototype.setProperties=ly.prototype.I;ly.prototype.unset=ly.prototype.S;ly.prototype.changed=ly.prototype.s;ly.prototype.getRevision=ly.prototype.L;ly.prototype.on=ly.prototype.G;ly.prototype.once=ly.prototype.M;ly.prototype.un=ly.prototype.J;ly.prototype.unByKey=ly.prototype.N;Ol.prototype.getActive=Ol.prototype.c;Ol.prototype.setActive=Ol.prototype.i;Ol.prototype.get=Ol.prototype.get;Ol.prototype.getKeys=Ol.prototype.O;Ol.prototype.getProperties=Ol.prototype.P; 1238Ol.prototype.set=Ol.prototype.set;Ol.prototype.setProperties=Ol.prototype.I;Ol.prototype.unset=Ol.prototype.S;Ol.prototype.changed=Ol.prototype.s;Ol.prototype.getRevision=Ol.prototype.L;Ol.prototype.on=Ol.prototype.G;Ol.prototype.once=Ol.prototype.M;Ol.prototype.un=Ol.prototype.J;Ol.prototype.unByKey=Ol.prototype.N;Ql.prototype.getActive=Ql.prototype.c;Ql.prototype.setActive=Ql.prototype.i;Ql.prototype.get=Ql.prototype.get;Ql.prototype.getKeys=Ql.prototype.O;Ql.prototype.getProperties=Ql.prototype.P; 1239Ql.prototype.set=Ql.prototype.set;Ql.prototype.setProperties=Ql.prototype.I;Ql.prototype.unset=Ql.prototype.S;Ql.prototype.changed=Ql.prototype.s;Ql.prototype.getRevision=Ql.prototype.L;Ql.prototype.on=Ql.prototype.G;Ql.prototype.once=Ql.prototype.M;Ql.prototype.un=Ql.prototype.J;Ql.prototype.unByKey=Ql.prototype.N;Cy.prototype.getActive=Cy.prototype.c;Cy.prototype.setActive=Cy.prototype.i;Cy.prototype.get=Cy.prototype.get;Cy.prototype.getKeys=Cy.prototype.O;Cy.prototype.getProperties=Cy.prototype.P; 1240Cy.prototype.set=Cy.prototype.set;Cy.prototype.setProperties=Cy.prototype.I;Cy.prototype.unset=Cy.prototype.S;Cy.prototype.changed=Cy.prototype.s;Cy.prototype.getRevision=Cy.prototype.L;Cy.prototype.on=Cy.prototype.G;Cy.prototype.once=Cy.prototype.M;Cy.prototype.un=Cy.prototype.J;Cy.prototype.unByKey=Cy.prototype.N;Sl.prototype.getActive=Sl.prototype.c;Sl.prototype.setActive=Sl.prototype.i;Sl.prototype.get=Sl.prototype.get;Sl.prototype.getKeys=Sl.prototype.O;Sl.prototype.getProperties=Sl.prototype.P; 1241Sl.prototype.set=Sl.prototype.set;Sl.prototype.setProperties=Sl.prototype.I;Sl.prototype.unset=Sl.prototype.S;Sl.prototype.changed=Sl.prototype.s;Sl.prototype.getRevision=Sl.prototype.L;Sl.prototype.on=Sl.prototype.G;Sl.prototype.once=Sl.prototype.M;Sl.prototype.un=Sl.prototype.J;Sl.prototype.unByKey=Sl.prototype.N;Ul.prototype.getActive=Ul.prototype.c;Ul.prototype.setActive=Ul.prototype.i;Ul.prototype.get=Ul.prototype.get;Ul.prototype.getKeys=Ul.prototype.O;Ul.prototype.getProperties=Ul.prototype.P; 1242Ul.prototype.set=Ul.prototype.set;Ul.prototype.setProperties=Ul.prototype.I;Ul.prototype.unset=Ul.prototype.S;Ul.prototype.changed=Ul.prototype.s;Ul.prototype.getRevision=Ul.prototype.L;Ul.prototype.on=Ul.prototype.G;Ul.prototype.once=Ul.prototype.M;Ul.prototype.un=Ul.prototype.J;Ul.prototype.unByKey=Ul.prototype.N;Yl.prototype.getActive=Yl.prototype.c;Yl.prototype.setActive=Yl.prototype.i;Yl.prototype.get=Yl.prototype.get;Yl.prototype.getKeys=Yl.prototype.O;Yl.prototype.getProperties=Yl.prototype.P; 1243Yl.prototype.set=Yl.prototype.set;Yl.prototype.setProperties=Yl.prototype.I;Yl.prototype.unset=Yl.prototype.S;Yl.prototype.changed=Yl.prototype.s;Yl.prototype.getRevision=Yl.prototype.L;Yl.prototype.on=Yl.prototype.G;Yl.prototype.once=Yl.prototype.M;Yl.prototype.un=Yl.prototype.J;Yl.prototype.unByKey=Yl.prototype.N;Py.prototype.getActive=Py.prototype.c;Py.prototype.setActive=Py.prototype.i;Py.prototype.get=Py.prototype.get;Py.prototype.getKeys=Py.prototype.O;Py.prototype.getProperties=Py.prototype.P; 1244Py.prototype.set=Py.prototype.set;Py.prototype.setProperties=Py.prototype.I;Py.prototype.unset=Py.prototype.S;Py.prototype.changed=Py.prototype.s;Py.prototype.getRevision=Py.prototype.L;Py.prototype.on=Py.prototype.G;Py.prototype.once=Py.prototype.M;Py.prototype.un=Py.prototype.J;Py.prototype.unByKey=Py.prototype.N;Sy.prototype.getActive=Sy.prototype.c;Sy.prototype.setActive=Sy.prototype.i;Sy.prototype.get=Sy.prototype.get;Sy.prototype.getKeys=Sy.prototype.O;Sy.prototype.getProperties=Sy.prototype.P; 1245Sy.prototype.set=Sy.prototype.set;Sy.prototype.setProperties=Sy.prototype.I;Sy.prototype.unset=Sy.prototype.S;Sy.prototype.changed=Sy.prototype.s;Sy.prototype.getRevision=Sy.prototype.L;Sy.prototype.on=Sy.prototype.G;Sy.prototype.once=Sy.prototype.M;Sy.prototype.un=Sy.prototype.J;Sy.prototype.unByKey=Sy.prototype.N;Wy.prototype.getActive=Wy.prototype.c;Wy.prototype.setActive=Wy.prototype.i;Wy.prototype.get=Wy.prototype.get;Wy.prototype.getKeys=Wy.prototype.O;Wy.prototype.getProperties=Wy.prototype.P; 1246Wy.prototype.set=Wy.prototype.set;Wy.prototype.setProperties=Wy.prototype.I;Wy.prototype.unset=Wy.prototype.S;Wy.prototype.changed=Wy.prototype.s;Wy.prototype.getRevision=Wy.prototype.L;Wy.prototype.on=Wy.prototype.G;Wy.prototype.once=Wy.prototype.M;Wy.prototype.un=Wy.prototype.J;Wy.prototype.unByKey=Wy.prototype.N;Xe.prototype.get=Xe.prototype.get;Xe.prototype.getKeys=Xe.prototype.O;Xe.prototype.getProperties=Xe.prototype.P;Xe.prototype.set=Xe.prototype.set;Xe.prototype.setProperties=Xe.prototype.I; 1247Xe.prototype.unset=Xe.prototype.S;Xe.prototype.changed=Xe.prototype.s;Xe.prototype.getRevision=Xe.prototype.L;Xe.prototype.on=Xe.prototype.G;Xe.prototype.once=Xe.prototype.M;Xe.prototype.un=Xe.prototype.J;Xe.prototype.unByKey=Xe.prototype.N;Ze.prototype.getClosestPoint=Ze.prototype.Wa;Ze.prototype.getExtent=Ze.prototype.R;Ze.prototype.transform=Ze.prototype.transform;Ze.prototype.get=Ze.prototype.get;Ze.prototype.getKeys=Ze.prototype.O;Ze.prototype.getProperties=Ze.prototype.P;Ze.prototype.set=Ze.prototype.set; 1248Ze.prototype.setProperties=Ze.prototype.I;Ze.prototype.unset=Ze.prototype.S;Ze.prototype.changed=Ze.prototype.s;Ze.prototype.getRevision=Ze.prototype.L;Ze.prototype.on=Ze.prototype.G;Ze.prototype.once=Ze.prototype.M;Ze.prototype.un=Ze.prototype.J;Ze.prototype.unByKey=Ze.prototype.N;Xm.prototype.getFirstCoordinate=Xm.prototype.rb;Xm.prototype.getLastCoordinate=Xm.prototype.sb;Xm.prototype.getLayout=Xm.prototype.tb;Xm.prototype.getClosestPoint=Xm.prototype.Wa;Xm.prototype.getExtent=Xm.prototype.R; 1249Xm.prototype.get=Xm.prototype.get;Xm.prototype.getKeys=Xm.prototype.O;Xm.prototype.getProperties=Xm.prototype.P;Xm.prototype.set=Xm.prototype.set;Xm.prototype.setProperties=Xm.prototype.I;Xm.prototype.unset=Xm.prototype.S;Xm.prototype.changed=Xm.prototype.s;Xm.prototype.getRevision=Xm.prototype.L;Xm.prototype.on=Xm.prototype.G;Xm.prototype.once=Xm.prototype.M;Xm.prototype.un=Xm.prototype.J;Xm.prototype.unByKey=Xm.prototype.N;Zm.prototype.getClosestPoint=Zm.prototype.Wa;Zm.prototype.getExtent=Zm.prototype.R; 1250Zm.prototype.transform=Zm.prototype.transform;Zm.prototype.get=Zm.prototype.get;Zm.prototype.getKeys=Zm.prototype.O;Zm.prototype.getProperties=Zm.prototype.P;Zm.prototype.set=Zm.prototype.set;Zm.prototype.setProperties=Zm.prototype.I;Zm.prototype.unset=Zm.prototype.S;Zm.prototype.changed=Zm.prototype.s;Zm.prototype.getRevision=Zm.prototype.L;Zm.prototype.on=Zm.prototype.G;Zm.prototype.once=Zm.prototype.M;Zm.prototype.un=Zm.prototype.J;Zm.prototype.unByKey=Zm.prototype.N; 1251tf.prototype.getFirstCoordinate=tf.prototype.rb;tf.prototype.getLastCoordinate=tf.prototype.sb;tf.prototype.getLayout=tf.prototype.tb;tf.prototype.getClosestPoint=tf.prototype.Wa;tf.prototype.getExtent=tf.prototype.R;tf.prototype.transform=tf.
1251prototype.transform;tf.prototype.get=tf.prototype.get;tf.prototype.getKeys=tf.prototype.O;tf.prototype.getProperties=tf.prototype.P;tf.prototype.set=tf.prototype.set;tf.prototype.setProperties=tf.prototype.I;tf.prototype.unset=tf.prototype.S; 1252tf.prototype.changed=tf.prototype.s;tf.prototype.getRevision=tf.prototype.L;tf.prototype.on=tf.prototype.G;tf.prototype.once=tf.prototype.M;tf.prototype.un=tf.prototype.J;tf.prototype.unByKey=tf.prototype.N;N.prototype.getFirstCoordinate=N.prototype.rb;N.prototype.getLastCoordinate=N.prototype.sb;N.prototype.getLayout=N.prototype.tb;N.prototype.getClosestPoint=N.prototype.Wa;N.prototype.getExtent=N.prototype.R;N.prototype.transform=N.prototype.transform;N.prototype.get=N.prototype.get; 1253N.prototype.getKeys=N.prototype.O;N.prototype.getProperties=N.prototype.P;N.prototype.set=N.prototype.set;N.prototype.setProperties=N.prototype.I;N.prototype.unset=N.prototype.S;N.prototype.changed=N.prototype.s;N.prototype.getRevision=N.prototype.L;N.prototype.on=N.prototype.G;N.prototype.once=N.prototype.M;N.prototype.un=N.prototype.J;N.prototype.unByKey=N.prototype.N;O.prototype.getFirstCoordinate=O.prototype.rb;O.prototype.getLastCoordinate=O.prototype.sb;O.prototype.getLayout=O.prototype.tb; 1254O.prototype.getClosestPoint=O.prototype.Wa;O.prototype.getExtent=O.prototype.R;O.prototype.transform=O.prototype.transform;O.prototype.get=O.prototype.get;O.prototype.getKeys=O.prototype.O;O.prototype.getProperties=O.prototype.P;O.prototype.set=O.prototype.set;O.prototype.setProperties=O.prototype.I;O.prototype.unset=O.prototype.S;O.prototype.changed=O.prototype.s;O.prototype.getRevision=O.prototype.L;O.prototype.on=O.prototype.G;O.prototype.once=O.prototype.M;O.prototype.un=O.prototype.J; 1255O.prototype.unByKey=O.prototype.N;jn.prototype.getFirstCoordinate=jn.prototype.rb;jn.prototype.getLastCoordinate=jn.prototype.sb;jn.prototype.getLayout=jn.prototype.tb;jn.prototype.getClosestPoint=jn.prototype.Wa;jn.prototype.getExtent=jn.prototype.R;jn.prototype.transform=jn.prototype.transform;jn.prototype.get=jn.prototype.get;jn.prototype.getKeys=jn.prototype.O;jn.prototype.getProperties=jn.prototype.P;jn.prototype.set=jn.prototype.set;jn.prototype.setProperties=jn.prototype.I; 1256jn.prototype.unset=jn.prototype.S;jn.prototype.changed=jn.prototype.s;jn.prototype.getRevision=jn.prototype.L;jn.prototype.on=jn.prototype.G;jn.prototype.once=jn.prototype.M;jn.prototype.un=jn.prototype.J;jn.prototype.unByKey=jn.prototype.N;R.prototype.getFirstCoordinate=R.prototype.rb;R.prototype.getLastCoordinate=R.prototype.sb;R.prototype.getLayout=R.prototype.tb;R.prototype.getClosestPoint=R.prototype.Wa;R.prototype.getExtent=R.prototype.R;R.prototype.transform=R.prototype.transform; 1257R.prototype.get=R.prototype.get;R.prototype.getKeys=R.prototype.O;R.prototype.getProperties=R.prototype.P;R.prototype.set=R.prototype.set;R.prototype.setProperties=R.prototype.I;R.prototype.unset=R.prototype.S;R.prototype.changed=R.prototype.s;R.prototype.getRevision=R.prototype.L;R.prototype.on=R.prototype.G;R.prototype.once=R.prototype.M;R.prototype.un=R.prototype.J;R.prototype.unByKey=R.prototype.N;vf.prototype.getFirstCoordinate=vf.prototype.rb;vf.prototype.getLastCoordinate=vf.prototype.sb; 1258vf.prototype.getLayout=vf.prototype.tb;vf.prototype.getClosestPoint=vf.prototype.Wa;vf.prototype.getExtent=vf.prototype.R;vf.prototype.transform=vf.prototype.transform;vf.prototype.get=vf.prototype.get;vf.prototype.getKeys=vf.prototype.O;vf.prototype.getProperties=vf.prototype.P;vf.prototype.set=vf.prototype.set;vf.prototype.setProperties=vf.prototype.I;vf.prototype.unset=vf.prototype.S;vf.prototype.changed=vf.prototype.s;vf.prototype.getRevision=vf.prototype.L;vf.prototype.on=vf.prototype.G; 1259vf.prototype.once=vf.prototype.M;vf.prototype.un=vf.prototype.J;vf.prototype.unByKey=vf.prototype.N;E.prototype.getFirstCoordinate=E.prototype.rb;E.prototype.getLastCoordinate=E.prototype.sb;E.prototype.getLayout=E.prototype.tb;E.prototype.getClosestPoint=E.prototype.Wa;E.prototype.getExtent=E.prototype.R;E.prototype.transform=E.prototype.transform;E.prototype.get=E.prototype.get;E.prototype.getKeys=E.prototype.O;E.prototype.getProperties=E.prototype.P;E.prototype.set=E.prototype.set; 1260E.prototype.setProperties=E.prototype.I;E.prototype.unset=E.prototype.S;E.prototype.changed=E.prototype.s;E.prototype.getRevision=E.prototype.L;E.prototype.on=E.prototype.G;E.prototype.once=E.prototype.M;E.prototype.un=E.prototype.J;E.prototype.unByKey=E.prototype.N;ts.prototype.readFeatures=ts.prototype.qa;us.prototype.readFeatures=us.prototype.qa;us.prototype.readFeatures=us.prototype.qa;xh.prototype.get=xh.prototype.get;xh.prototype.getKeys=xh.prototype.O;xh.prototype.getProperties=xh.prototype.P; 1261xh.prototype.set=xh.prototype.set;xh.prototype.setProperties=xh.prototype.I;xh.prototype.unset=xh.prototype.S;xh.prototype.changed=xh.prototype.s;xh.prototype.getRevision=xh.prototype.L;xh.prototype.on=xh.prototype.G;xh.prototype.once=xh.prototype.M;xh.prototype.un=xh.prototype.J;xh.prototype.unByKey=xh.prototype.N;Xh.prototype.getMap=Xh.prototype.i;Xh.prototype.setMap=Xh.prototype.setMap;Xh.prototype.setTarget=Xh.prototype.c;Xh.prototype.get=Xh.prototype.get;Xh.prototype.getKeys=Xh.prototype.O; 1262Xh.prototype.getProperties=Xh.prototype.P;Xh.prototype.set=Xh.prototype.set;Xh.prototype.setProperties=Xh.prototype.I;Xh.prototype.unset=Xh.prototype.S;Xh.prototype.changed=Xh.prototype.s;Xh.prototype.getRevision=Xh.prototype.L;Xh.prototype.on=Xh.prototype.G;Xh.prototype.once=Xh.prototype.M;Xh.prototype.un=Xh.prototype.J;Xh.prototype.unByKey=Xh.prototype.N;ii.prototype.getMap=ii.prototype.i;ii.prototype.setMap=ii.prototype.setMap;ii.prototype.setTarget=ii.prototype.c;ii.prototype.get=ii.prototype.get; 1263ii.prototype.getKeys=ii.prototype.O;ii.prototype.getProperties=ii.prototype.P;ii.prototype.set=ii.prototype.set;ii.prototype.setProperties=ii.prototype.I;ii.prototype.unset=ii.prototype.S;ii.prototype.changed=ii.prototype.s;ii.prototype.getRevision=ii.prototype.L;ii.prototype.on=ii.prototype.G;ii.prototype.once=ii.prototype.M;ii.prototype.un=ii.prototype.J;ii.prototype.unByKey=ii.prototype.N;ji.prototype.getMap=ji.prototype.i;ji.prototype.setMap=ji.prototype.setMap;ji.prototype.setTarget=ji.prototype.c; 1264ji.prototype.get=ji.prototype.get;ji.prototype.getKeys=ji.prototype.O;ji.prototype.getProperties=ji.prototype.P;ji.prototype.set=ji.prototype.set;ji.prototype.setProperties=ji.prototype.I;ji.prototype.unset=ji.prototype.S;ji.prototype.changed=ji.prototype.s;ji.prototype.getRevision=ji.prototype.L;ji.prototype.on=ji.prototype.G;ji.prototype.once=ji.prototype.M;ji.prototype.un=ji.prototype.J;ji.prototype.unByKey=ji.prototype.N;nr.prototype.getMap=nr.prototype.i;nr.prototype.setMap=nr.prototype.setMap; 1265nr.prototype.setTarget=nr.prototype.c;nr.prototype.get=nr.prototype.get;nr.prototype.getKeys=nr.prototype.O;nr.prototype.getProperties=nr.prototype.P;nr.prototype.set=nr.prototype.set;nr.prototype.setProperties=nr.prototype.I;nr.prototype.unset=nr.prototype.S;nr.prototype.changed=nr.prototype.s;nr.prototype.getRevision=nr.prototype.L;nr.prototype.on=nr.prototype.G;nr.prototype.once=nr.prototype.M;nr.prototype.un=nr.prototype.J;nr.prototype.unByKey=nr.prototype.N;$h.prototype.getMap=$h.prototype.i; 1266$h.prototype.setMap=$h.prototype.setMap;$h.prototype.setTarget=$h.prototype.c;$h.prototype.get=$h.prototype.get;$h.prototype.getKeys=$h.prototype.O;$h.prototype.getProperties=$h.prototype.P;$h.prototype.set=$h.prototype.set;$h.prototype.setProperties=$h.prototype.I;$h.prototype.unset=$h.prototype.S;$h.prototype.changed=$h.prototype.s;$h.prototype.getRevision=$h.prototype.L;$h.prototype.on=$h.prototype.G;$h.prototype.once=$h.prototype.M;$h.prototype.un=$h.prototype.J;$h.prototype.unByKey=$h.prototype.N; 1267sr.prototype.getMap=sr.prototype.i;sr.prototype.setMap=sr.prototype.setMap;sr.prototype.setTarget=sr.prototype.c;sr.prototype.get=sr.prototype.get;sr.prototype.getKeys=sr.prototype.O;sr.prototype.getProperties=sr.prototype.P;sr.prototype.set=sr.prototype.set;sr.prototype.setProperties=sr.prototype.I;sr.prototype.unset=sr.prototype.S;sr.prototype.changed=sr.prototype.s;sr.prototype.getRevision=sr.prototype.L;sr.prototype.on=sr.prototype.G;sr.prototype.once=sr.prototype.M;sr.prototype.un=sr.prototype.J; 1268sr.prototype.unByKey=sr.prototype.N;bi.prototype.getMap=bi.prototype.i;bi.prototype.setMap=bi.prototype.setMap;bi.prototype.setTarget=bi.prototype.c;
1268bi.prototype.get=bi.prototype.get;bi.prototype.getKeys=bi.prototype.O;bi.prototype.getProperties=bi.prototype.P;bi.prototype.set=bi.prototype.set;bi.prototype.setProperties=bi.prototype.I;bi.prototype.unset=bi.prototype.S;bi.prototype.changed=bi.prototype.s;bi.prototype.getRevision=bi.prototype.L;bi.prototype.on=bi.prototype.G;bi.prototype.once=bi.prototype.M; 1269bi.prototype.un=bi.prototype.J;bi.prototype.unByKey=bi.prototype.N;Gr.prototype.getMap=Gr.prototype.i;Gr.prototype.setMap=Gr.prototype.setMap;Gr.prototype.setTarget=Gr.prototype.c;Gr.prototype.get=Gr.prototype.get;Gr.prototype.getKeys=Gr.prototype.O;Gr.prototype.getProperties=Gr.prototype.P;Gr.prototype.set=Gr.prototype.set;Gr.prototype.setProperties=Gr.prototype.I;Gr.prototype.unset=Gr.prototype.S;Gr.prototype.changed=Gr.prototype.s;Gr.prototype.getRevision=Gr.prototype.L;Gr.prototype.on=Gr.prototype.G; 1270Gr.prototype.once=Gr.prototype.M;Gr.prototype.un=Gr.prototype.J;Gr.prototype.unByKey=Gr.prototype.N;Lr.prototype.getMap=Lr.prototype.i;Lr.prototype.setMap=Lr.prototype.setMap;Lr.prototype.setTarget=Lr.prototype.c;Lr.prototype.get=Lr.prototype.get;Lr.prototype.getKeys=Lr.prototype.O;Lr.prototype.getProperties=Lr.prototype.P;Lr.prototype.set=Lr.prototype.set;Lr.prototype.setProperties=Lr.prototype.I;Lr.prototype.unset=Lr.prototype.S;Lr.prototype.changed=Lr.prototype.s;Lr.prototype.getRevision=Lr.prototype.L; 1271Lr.prototype.on=Lr.prototype.G;Lr.prototype.once=Lr.prototype.M;Lr.prototype.un=Lr.prototype.J;Lr.prototype.unByKey=Lr.prototype.N; 1272 return OPENLAYERS.ol; 1273})); 1274 1275 1276!function(r,t){if("function"==typeof require&&"object"==typeof exports){var e=require("openlayers");exports.angularOpenlayersDirective=t(e)}else"function"==typeof define&&define.amd?define(["ol"],function(e){return r.angularOpenlayersDirective=t(e)}):r.angularOpenlayersDirective=t(r.ol)}(this,function(O){angular.module("openlayers-directive",["ngSanitize"]).directive("openlayers",["$log","$q","$compile","olHelpers","olMapDefaults","olData",function(e,t,r,f,y,v){return{restrict:"EA",transclude:!0,replace:!0,scope:{center:"=olCenter",defaults:"=olDefaults",view:"=olView",events:"=olEvents"},template:'<div class="angular-openlayers-map" ng-transclude></div>',controller:["$scope",function(e){var r=t.defer();e.getMap=function(){return r.promise},e.setMap=function(e){r.resolve(e)},this.getOpenlayersScope=function(){return e}}],link:function(e,r,t){var o=f.isDefined,n=f.createLayer,a=f.setMapEvents,i=f.setViewEvents,l=f.createView,s=y.setDefaults(e);o(t.width)&&(isNaN(t.width)?r.css("width",t.width):r.css("width",t.width+"px")),o(t.height)&&(isNaN(t.height)?r.css("height",t.height):r.css("height",t.height+"px")),o(t.lat)&&(s.center.lat=parseFloat(t.lat)),o(t.lon)&&(s.center.lon=parseFloat(t.lon)),o(t.zoom)&&(s.center.zoom=parseFloat(t.zoom));var c=O.control.defaults(s.controls),u=O.interaction.defaults(s.interactions),p=l(s.view),d=new O.Map({target:r[0],controls:c,interactions:u,renderer:s.renderer,view:p,loadTilesWhileAnimating:s.loadTilesWhileAnimating,loadTilesWhileInteracting:s.loadTilesWhileInteracting});if(e.$on("$destroy",function(){v.resetMap(t.id)}),!t.customLayers){var g=n({type:"Tile",source:{type:"OSM"}},p.getProjection(),"default");d.addLayer(g),d.set("default",!0)}if(!o(t.olCenter)){var m=O.proj.transform([s.center.lon,s.center.lat],s.center.projection,p.getProjection());p.setCenter(m),p.setZoom(s.center.zoom)}a(s.events,d,e),i(s.events,d,e),e.setMap(d),v.setMap(d,t.id)}}}]),angular.module("openlayers-directive").directive("olCenter",["$log","$location","olMapDefaults","olHelpers",function(v,h,w,S){return{restrict:"A",scope:!1,replace:!1,require:"openlayers",link:function(e,r,n,t){var a=S.safeApply,c=S.isValidCenter,u=S.isDefined,p=S.isArray,d=S.isNumber,g=S.isSameCenterOnMap,m=S.setCenter,f=S.setZoom,y=t.getOpenlayersScope();y.getMap().then(function(i){var o,l=w.getDefaults(y),s=i.getView(),e=y.center;if(-1!==n.olCenter.search("-"))return v.error('[AngularJS - Openlayers] The "center" variable can\'t use a "-" on his key name: "'+n.center+'".'),void m(s,l.view.projection,l.center,i);if(u(e)||(e={}),c(e)||(v.warn("[AngularJS - Openlayers] invalid 'center'"),e.lat=l.center.lat,e.lon=l.center.lon,e.zoom=l.center.zoom,e.projection=l.center.projection),e.projection||("pixel"!==l.view.projection?e.projection=l.center.projection:e.projection="pixel"),d(e.zoom)||(e.zoom=1),m(s,l.view.projection,e,i),s.setZoom(e.zoom),!0===e.centerUrlHash){var t=function(){var e,r=h.search();if(u(r.c)){var t=r.c.split(":");3===t.length&&(e={lat:parseFloat(t[0]),lon:parseFloat(t[1]),zoom:parseInt(t[2],10)})}return e};t(),y.$on("$locationChangeSuccess",function(){var r=t();r&&!g(r,i)&&a(y,function(e){e.center.lat=r.lat,e.center.lon=r.lon,e.center.zoom=r.zoom})})}y.$watchCollection("center",function(e){if(e){if(e.projection||(e.projection=l.center.projection),e.autodiscover)return o||(o=new O.Geolocation({projection:O.proj.get(e.projection)})).on("change",function(){if(e.autodiscover){var r=o.getPosition();a(y,function(e){e.center.lat=r[1],e.center.lon=r[0],e.center.zoom=12,e.center.autodiscover=!1,o.setTracking(!1)})}}),void o.setTracking(!0);c(e)||(v.warn("[AngularJS - Openlayers] invalid 'center'"),e=l.center);var r=s.getCenter();if(r)if("pixel"===l.view.projection||"pixel"===e.projection)s.setCenter(e.co
1276ord);else{var t=O.proj.transform(r,l.view.projection,e.projection);t[1]===e.lat&&t[0]===e.lon||m(s,l.view.projection,e,i)}s.getZoom()!==e.zoom&&f(s,e.zoom,i)}}),i.on("moveend",function(){a(y,function(e){if(u(e.center)){var r=i.getView().getCenter();if(e.center.zoom=s.getZoom(),"pixel"!==l.view.projection&&"pixel"!==e.center.projection){if(e.center){var t=O.proj.transform(r,l.view.projection,e.center.projection);if(e.center.lat=t[1],e.center.lon=t[0],S.notifyCenterUrlHashChanged(y,e.center,h.search()),p(e.center.bounds)){var o=s.calculateExtent(i.getSize()),n=e.center.projection,a=l.view.projection;e.center.bounds=O.proj.transformExtent(o,a,n)}}}else e.center.coord=r}})})})}}}]),angular.module("openlayers-directive").directive("olLayer",["$log","$q","olMapDefaults","olHelpers",function(e,r,n,a){return{restrict:"E",scope:{properties:"=olLayerProperties",onLayerCreated:"&"},replace:!1,require:"^openlayers",link:function(g,e,r,t){var m=a.isDefined,f=a.equals,o=t.getOpenlayersScope(),y=a.createLayer,v=a.setVectorLayerEvents,h=a.detectLayerType,w=a.createStyle,S=a.isBoolean,x=a.addLayerBeforeMarkers,b=a.isNumber,O=a.insertLayer,j=a.removeLayer,A=a.addLayerToGroup,k=a.removeLayerFromGroup,E=a.getGroup;o.getMap().then(function(s){var c,u=s.getView().getProjection(),p=n.setDefaults(o),d=s.getLayers();if(g.$on("$destroy",function(){g.properties.group?k(d,c,g.properties.group):j(d,c.index),s.removeLayer(c)}),m(g.properties))g.$watch("properties",function(e,r){var t,o,n,a;if(m(e.source)&&m(e.source.type))if(m(e.visible))if(m(e.opacity))if(m(c)){var i=(a=c,function(e){return e!==a});if(m(r)&&!f(e.source,r.source)){var l=c.index;n=d,(o=c.get("group"))&&(n=E(d,o).getLayers()),n.removeAt(l),(c=y(e,u,g.onLayerCreated)).set("group",o),m(c)&&(O(n,l,c),"Vector"===h(e)&&v(p.events,s,g,e.name))}(m(r)&&e.opacity!==r.opacity||i(c))&&(b(e.opacity)||b(parseFloat(e.opacity)))&&c.setOpacity(e.opacity),m(e.index)&&e.index!==c.index&&(n=d,(o=c.get("group"))&&(n=E(d,o).getLayers()),j(n,c.index),O(n,e.index,c)),m(e.group)&&e.group!==r.group&&(k(d,c,r.group),A(d,c,e.group)),(m(r)&&S(e.visible)&&e.visible!==r.visible||i(c))&&c.setVisible(e.visible),(m(e.style)&&!f(e.style,r.style)||i(c))&&(t=angular.isFunction(e.style)?e.style:w(e.style),c.setStyle&&angular.isFunction(c.setStyle)&&c.setStyle(t)),f(e.minResolution,r.minResolution)&&!i(c)||m(e.minResolution)&&c.setMinResolution(e.minResolution),f(e.maxResolution,r.maxResolution)&&!i(c)||m(e.maxResolution)&&c.setMaxResolution(e.maxResolution)}else c=y(e,u,g.onLayerCreated),m(e.group)?A(d,c,e.group):m(e.index)?O(d,e.index,c):x(d,c),"Vector"===h(e)&&v(p.events,s,g,e.name),S(e.visible)&&c.setVisible(e.visible),e.opacity&&c.setOpacity(e.opacity),angular.isArray(e.extent)&&c.setExtent(e.extent),e.style&&(t=angular.isFunction(e.style)?e.style:w(e.style),c.setStyle&&angular.isFunction(c.setStyle)&&c.setStyle(t)),e.minResolution&&c.setMinResolution(e.minResolution),e.maxResolution&&c.setMaxResolution(e.maxResolution);else e.opacity=1;else e.visible=!0},!0);else if(m(r.sourceType)&&m(r.sourceUrl)){var e={name:r.name,source:{url:r.sourceUrl,type:r.sourceType},customAttributes:{uid:r.uid?parseInt(r.uid):0,hidden:!1,area:!0}};c=y(e,u,r.layerName,g.onLayerCreated),"Vector"===h(e)&&v(p.events,s,g,r.name),x(d,c)}})}}}]),angular.module("openlayers-directive").directive("olPath",["$log","$q","olMapDefaults","olHelpers",function(e,r,S,t){return{restrict:"E",scope:{properties:"=olGeomProperties",style:"=olStyle"},require:"^openlayers",replace:!0,template:'<div class="popup-label path" ng-bind-html="message"></div>',link:function(u,p,d,e){var g=t.isDefined,m=t.createFeature,f=t.createOverlay,y=t.createVectorLayer,v=t.insertLayer,h=t.removeLayer,w=e.getOpenlayersScope();w.getMap().then(function(e){var r=S.getDefaults(w),t=r.view.projection,o=y(),n=e.getLayers();if(v(n,n.getLength(),o),u.$on("$destroy",function(){h(n,o.index)}),g(d.coords)){var a=d.proj||"EPSG:4326",i={type:"Polygon",coords:JSON.parse(d.coords),projection:a,style:u.style?u.style:r.styles.path},l=m(i,t);if(o.getSource().addFeature(l),d.message){u.message=d.message;var s=l.getGeometry().getExtent(),c=f(p,s);e.addOverlay(c)}}else;})}}}]),angular.module("openlayers-directive").directive("olView",["$log","$q","olData","olMapDefaults","olHelpers",function(e,r,t,s,c){return{restrict:"A",scope:!1,replace:!1,require:"openlayers",link:function(e,r,t,o){var n=o.getOpenlayersScope(),a=c.isNumber,i=c.safeApply,l=c.createView;n.getMap().then(function(r){var e=s.getDefaults(n),t=n.view;t.projection||(t.projection=e.view.projection),t.maxZoom||(t.maxZoom=e.view.maxZoom),t.minZoom||(t.minZoom=e.view.minZoom),t.rotation||(t.rotation=e.view.rotation);var o=l(t);r.setView(o),n.$watchCollection("view",function(e){a(e.rotation)&&o.setRotation(e.rotation)}),o.on("change:rotation",function(){i(n,function(e){e.view.rotation=r.getView().getRotation()})})})}}}]),angular.module("openlayers-directive").directive("olControl",["$log","$q","olData","olMapDefaults","olHelpers",function(e,r,t,o,l){return{restrict:"E",scope:{properties:"=olControlProperties"},replace:!1,require:"^openlayers",link:function(t,e,o,r){var n,a,i=l.isDefined;r.getOpenlayersScope().getMap().then(function(e){var r=(0,l.getControlClasses)();t.$on("$destroy",function(){e.removeControl(n)}),i(t.properties)&&i(t.properties.control)?(n=t.properties.control,e.addControl(n)):o.name&&(i(t.properties)&&(a=t.properties),n=new r[o.name](a),e.addControl(n))})}}}]),angular.module("openlayers-directive").directive("olMarker",["$log","$q","olMapDefaults","olHelpers",function(y,e,v,h){var w=function(){var u=[];function p(e){return u.map(function(e){return e.map}).indexOf(e)}return{getInst:function(e,r,t){var o=p(r);if(-1===o){var n=new O.source.Cluster({source:new O.source.Vector,distance:50}),i=v.getDefaults(t),l=h.createStyle(i.styles.marker),s=h.createStyle(i.styles.cluster),c=h.createStyle(i.styles.selected),a=new O.layer.Vector({source:n,style:function(e){var r=[];if(e.get("features").forEach(function(e){e.get("hidden")||r.push(e)}),1<r.length){var t=null;return t=void 0===(o=angular.copy(i.styles.marker.text))?new O.style.Style({text:new O.style.Text({text:r.length.toString(),offsetY:-32,font:"20px Arial",fill:new O.style.Fill({color:"#000"})})}):new O.style.Style({text:new O.style.Text({text:r.length.toString(),offsetY:o.offsetY,font:o.font,fill:new O.style.Fill({color:o.color})})}),[s,t]}if(1!==r.length)return new O.style.Style;var o,n=r[0].get("selected")?c:l,a=r[0].get("attributes");a.icon&&!r[0].get("selected")&&((o=angular.copy(i.styles.marker)).image.icon.src=a.icon,n=h.createStyle(o));return[n]}});a.set("markers",!0),r.addLayer(a),u.push({map:r,markerLayer:a,instScopes:[]}),o=u.length-1}return u[o].instScopes.push(e),u[o].markerLayer},deregisterScope:function(e,r){var t=p(r);if(-1===t)throw Error("This map has no markers");var o=u[t].instScopes,n=o.indexOf(e);if(-1===n)throw Error("Scope wan't registered");o.splice(n,1),o.length||(r.removeLayer(u[t].markerLayer),delete u[t])}}}();return{restrict:"E",scope:{lat:"=lat",lon:"=lon",uid:"=uid",label:"=label",properties:"=olMarkerProperties",style:"=olStyle"},transclude:!0,require:"^openlayers",replace:!0,template:'<div class="popup-label marker"><div ng-bind-html="message"></div><ng-transclude></ng-transclude></div>',link:function(t,u,o,e){var p=h.isDefined,d=e.getOpenlayersScope(),g=h.createFeature,m=h.createOverlay,f=(h.createStyle,0<u.find("ng-transclude").children().length);d.getMap().then(function(s){var n,a,c,e=w.getInst(t,s,d).getSource(),i={projection:"EPSG:4326",lat:0,lon:0,coord:[],show:!1,showOnMouseOver:!0,showOnMouseClick:!1,keepOneOverlayVisible:!1},r=v.getDefaults(d),l=r.view.projection;
1276if(t.$on("$destroy",function(){e.getSource().removeFeature(c),p(n)&&s.removeOverlay(n),w.deregisterScope(t,s)}),!p(t.properties)){i.lat=t.lat?t.lat:i.lat,i.lon=t.lon?t.lon:i.lon,i.message=o.message,i.style=angular.copy(r.styles.marker),c=g(i,l),p(c)||y.error("[AngularJS - Openlayers] Received invalid data on the marker."),c.set("marker",t),e.getSource().addFeature(c),(i.message||f)&&(t.message=o.message,a=O.proj.transform([i.lon,i.lat],i.projection,l),n=m(u,a),s.addOverlay(n)),c.set("uid",t.uid?+t.uid:0),c.set("uid",t.uid?parseInt(t.uid):0),c.set("hidden",!1),c.set("element",u),c.set("attributes",o),s.getViewport().addEventListener("click",function(l){s.forEachFeatureAtPixel(s.getEventPixel(l),function(e){var r=e.get("features");if(r&&-1<r.indexOf(c)){if(1<r.length){for(var t=O.extent.createEmpty(),o=0,n=r.length;o<n;o++)r.forEach(function(e){e.get("hidden")||(t=O.extent.extend(t,r[o].getGeometry().getExtent()))});var a=O.animation.pan({source:s.getView().getCenter(),duration:200}),i=O.animation.zoom({resolution:s.getView().getResolution(),duration:200});s.beforeRender(a,i),s.getView().fit(t,s.getSize())}1===r.length&&-1<r.indexOf(c)&&u.triggerHandler("click")}l.preventDefault(),l.stopPropagation()})});s.getViewport().addEventListener("mousemove",function(e){var r=!1,t=s.forEachFeatureAtPixel(s.getEventPixel(e),function(e){return e.get("features")}),o=!1;t&&1===t.length&&-1<t.indexOf(c)&&(r=o=!0,p(n)||(a="pixel"===i.projection?i.coord:O.proj.transform([i.lon,i.lat],i.projection,l),n=m(u,a),s.addOverlay(n)),s.getTarget().style.cursor="pointer"),!r&&n&&(o=!0,s.removeOverlay(n),n=void 0,s.getTarget().style.cursor=""),o&&e.preventDefault()}),angular.forEach(s.getOverlays(),function(e){s.removeOverlay(e)})}})}}}]),angular.module("openlayers-directive").service("olData",["$log","$q",function(n,a){var i={},l=function(e,r){var t,o=s(e,r);return angular.isDefined(e[o])&&!0!==e[o].resolvedDefer?t=e[o].defer:(t=a.defer(),e[o]={defer:t,resolvedDefer:!1}),t};function s(e,r){var t,o;if(angular.isDefined(r))t=r;else if(1===Object.keys(e).length)for(o in e)e.hasOwnProperty(o)&&(t=o);else 0===Object.keys(e).length?t="main":n.error("[AngularJS - Openlayers] - You have more than 1 map on the DOM, you must provide the map ID to the olData.getXXX call");return t}this.setMap=function(e,r){var t;l(i,r).resolve(e),(t=i)[s(t,r)].resolvedDefer=!0},this.getMap=function(e){var r,t,o;return(o=s(r=i,t=e),angular.isDefined(r[o])&&!1!==r[o].resolvedDefer?r[o].defer:l(r,t)).promise},this.resetMap=function(e){angular.isDefined(i[e])&&delete i[e]}}]),angular.module("openlayers-directive").factory("olHelpers",["$q","$log","$http",function(e,f,y){var v=function(e){return angular.isDefined(e)},c=function(e){return angular.isDefined(e)&&null!==e},a=function(o,n,a){o.on(n,function(e){var r=e.coordinate,t=o.getView().getProjection().getCode();"pixel"===t&&(r=r.map(function(e){return parseInt(e,10)})),a.$emit("openlayers.map."+n,{coord:r,projection:t,event:e})})},h=["Road","Aerial","AerialWithLabels","collinsBart","ordnanceSurvey"],r=function(){return{attribution:O.control.Attribution,fullscreen:O.control.FullScreen,mouseposition:O.control.MousePosition,overviewmap:O.control.OverviewMap,rotate:O.control.Rotate,scaleline:O.control.ScaleLine,zoom:O.control.Zoom,zoomslider:O.control.ZoomSlider,zoomtoextent:O.control.ZoomToExtent}},w=["osm","sat","hyb"],S=["World_Imagery","World_Street_Map","World_Topo_Map","World_Physical_Map","World_Terrain_Base","Ocean_Basemap","NatGeo_World_Map"],u={style:O.style.Style,fill:O.style.Fill,stroke:O.style.Stroke,circle:O.style.Circle,icon:O.style.Icon,image:O.style.Image,regularshape:O.style.RegularShape,text:O.style.Text},p=function(e,r){return r&&e instanceof r?e:r?new r(e):e},i=function n(e,a){var i,l;if(i=a?e[a]:(a="style",e),"style"===a&&e instanceof Function)return e;if(!(i instanceof Object))return i;if("[object Object]"===Object.prototype.toString.call(i)){l={};var s=u[a];if(s&&i instanceof s)return i;Object.getOwnPropertyNames(i).forEach(function(e,r,t){var o=u[e];if(s&&o&&o.prototype instanceof u[a])return console.assert(1===t.length,"Extra parameters for "+a),l=n(i,e),p(l,o);l[e]=n(i,e),"text"!==e&&"string"!=typeof l[e]&&(l[e]=p(l[e],u[e]))})}else l=i;return p(l,u[a])},d=function(e){if(e.type)return e.type;switch(e.source.type){case"ImageWMS":case"ImageStatic":return"Image";case"GeoJSON":case"JSONP":case"TopoJSON":case"KML":return"Vector";case"TileVector":return"TileVector";default:return"Tile"}}
1276,x=function(e){var r=e;if(e&&"object"==typeof e)for(var t in r="[object Array]"===Object.prototype.toString.call(e)?[]:{},e)r[t]=x(e[t]);return r},b=function(e){var r=[];return v(e.attribution)&&r.unshift(new O.Attribution({html:e.attribution})),r},l=function(e,r){var t;return angular.forEach(e,function(e){e instanceof O.layer.Group&&e.get("name")===r&&(t=e)}),t},s=function(e,r){for(var t,o=0;o<e.getLength();o++){if(e.item(o).get("markers")){t=o;break}}if(v(t)){var n=e.item(t);r.index=t,e.setAt(t,r),n.index=e.getLength(),e.push(n)}else r.index=e.getLength(),e.push(r)},n=function(e,r){e.removeAt(r);for(var t=r;t<e.getLength();t++){var o=e.item(t);if(null===o){e.insertAt(t,null);break}o.index=t}};return{isDefined:v,isNumber:function(e){return angular.isNumber(e)},createView:function(e){var r={projection:function(e){var r;switch(e.projection){case"pixel":if(!v(e.extent))return void f.error("[AngularJS - Openlayers] - You must provide the extent of the image if using pixel projection");r=new O.proj.Projection({code:"pixel",units:"pixels",extent:e.extent});break;default:r=new O.proj.get(e.projection)}return r}(e),maxZoom:e.maxZoom,minZoom:e.minZoom};return e.center&&(r.center=e.center),e.extent&&(r.extent=e.extent),e.zoom&&(r.zoom=e.zoom),e.resolutions&&(r.resolutions=e.resolutions),new O.View(r)},isDefinedAndNotNull:c,isString:function(e){return angular.isString(e)},isArray:function(e){return angular.isArray(e)},isObject:function(e){return angular.isObject(e)},equals:function(e,r){return angular.equals(e,r)},isValidCenter:function(e){return angular.isDefined(e)&&("boolean"==typeof e.autodiscover||angular.isNumber(e.lat)&&angular.isNumber(e.lon)||angular.isArray(e.coord)&&2===e.coord.length&&angular.isNumber(e.coord[0])&&angular.isNumber(e.coord[1])||angular.isArray(e.bounds)&&4===e.bounds.length&&angular.isNumber(e.bounds[0])&&angular.isNumber(e.bounds[1])&&angular.isNumber(e.bounds[1])&&angular.isNumber(e.bounds[2]))},safeApply:function(e,r){var t=e.$root.$$phase;"$apply"===t||"$digest"===t?e.$eval(r):e.$apply(r)},isSameCenterOnMap:function(e,r){var t=e.projection||"EPSG:4326",o=[e.lon,e.lat],n=r.getView().getProjection(),a=O.proj.transform(r.getView().getCenter(),n,t),i=r.getView().getZoom();return a[1].toFixed(4)===o[1].toFixed(4)&&a[0].toFixed(4)===o[0].toFixed(4)&&i===e.zoom},setCenter:function(e,r,t,o){if(o&&e.getCenter()){var n=O.animation.pan({duration:150,source:e.getCenter()});o.beforeRender(n)}if(t.projection===r)e.setCenter([t.lon,t.lat]);else{var a=[t.lon,t.lat];e.setCenter(O.proj.transform(a,t.projection,r))}},setZoom:function(e,r,t){var o=O.animation.zoom({duration:150,resolution:t.getView().getResolution()});t.beforeRender(o),e.setZoom(r)},isBoolean:function(e){return"boolean"==typeof e},createStyle:i,setMapEvents:function(e,r,t){if(v(e)&&angular.isArray(e.map))for(var o in e.map){var n=e.map[o];a(r,n,t)}},setVectorLayerEvents:function(e,n,a,i){v(e)&&angular.isArray(e.layers)&&angular.forEach(e.layers,function(o){angular.element(n.getViewport()).on(o,function(e){var r=n.getEventPixel(e),t=n.forEachFeatureAtPixel(r,function(e,r){return c(r)&&r.get("name")===i?e:null});c(t)&&a.$emit("openlayers.layers."+i+"."+o,t,e)})})}
1276,setViewEvents:function(e,r,t){if(v(e)&&angular.isArray(e.view)){var o=r.getView();angular.forEach(e.view,function(r){o.on(r,function(e){t.$emit("openlayers.view."+r,o,e)})})}},detectLayerType:d,createLayer:function(e,r,t,o){var n,a=d(e),i=function(n,e){var r,t,o,a=new O.format.GeoJSON;switch(n.type){case"MapBox":if(!n.mapId||!n.accessToken)return void f.error("[AngularJS - Openlayers] - MapBox layer requires the map id and the access token");t="http://api.tiles.mapbox.com/v4/"+n.mapId+"/{z}/{x}/{y}.png?access_token="+n.accessToken;var i=window.devicePixelRatio;1<i&&(t=t.replace(".png","@2x.png")),r=new O.source.XYZ({url:t,attributions:b(n),tilePixelRatio:1<i?2:1});break;case"MapBoxStudio":if(!n.mapId||!n.accessToken||!n.userId)return void f.error("[AngularJS - Openlayers] - MapBox Studio layer requires the map id, user id and the access token");t="https://api.mapbox.com/styles/v1/"+n.userId+"/"+n.mapId+"/tiles/{z}/{x}/{y}?access_token="+n.accessToken,r=new O.source.XYZ({url:t,attributions:b(n),tileSize:n.tileSize||[512,512]});break;case"ImageWMS":n.url&&n.params||f.error("[AngularJS - Openlayers] - ImageWMS Layer needs valid server url and params properties"),r=new O.source.ImageWMS({url:n.url,attributions:b(n),crossOrigin:void 0===n.crossOrigin?"anonymous":n.crossOrigin,params:x(n.params),ratio:n.ratio});break;case"TileWMS":(n.url||n.urls)&&n.params||f.error("[AngularJS - Openlayers] - TileWMS Layer needs valid url (or urls) and params properties");var l={crossOrigin:void 0===n.crossOrigin?"anonymous":n.crossOrigin,params:x(n.params),attributions:b(n)};n.serverType&&(l.serverType=n.serverType),n.url&&(l.url=n.url),n.urls&&(l.urls=n.urls),r=new O.source.TileWMS(l);break;case"WMTS":(n.url||n.urls)&&n.tileGrid||f.error("[AngularJS - Openlayers] - WMTS Layer needs valid url (or urls) and tileGrid properties");var s={projection:e,layer:n.layer,attributions:b(n),matrixSet:"undefined"===n.matrixSet?e:n.matrixSet,format:"undefined"===n.format?"image/jpeg":n.format,requestEncoding:"undefined"===n.requestEncoding?"KVP":n.requestEncoding,tileGrid:new O.tilegrid.WMTS({origin:n.tileGrid.origin,resolutions:n.tileGrid.resolutions,matrixIds:n.tileGrid.matrixIds}),style:"undefined"===n.style?"normal":n.style};v(n.url)&&(s.url=n.url),v(n.urls)&&(s.urls=n.urls),r=new O.source.WMTS(s);break;case"OSM":r=new O.source.OSM({attributions:b(n)}),n.url&&r.setUrl(n.url);break;case"BingMaps":if(!n.key)return void f.error("[AngularJS - Openlayers] - You need an API key to show the Bing Maps.");var c={key:n.key,attributions:b(n),imagerySet:n.imagerySet?n.imagerySet:h[0],culture:n.culture};n.maxZoom&&(c.maxZoom=n.maxZoom),r=new O.source.BingMaps(c);break;case"MapQuest":if(!n.layer||-1===w.indexOf(n.layer))return void f.error("[AngularJS - Openlayers] - MapQuest layers needs a valid 'layer' property.");r=new O.source.MapQuest({attributions:b(n),layer:n.layer});break;case"EsriBaseMaps":if(!n.layer||-1===S.indexOf(n.layer))return void f.error("[AngularJS - Openlayers] - ESRI layers needs a valid 'layer' property.");var u="http://services.arcgisonline.com/ArcGIS/rest/services/"+n.layer+"/MapServer/tile/{z}/{y}/{x}";r=new O.source.XYZ({attributions:b(n),url:u});break;case"GeoJSON":if(!n.geojson&&!n.url)return void f.error("[AngularJS - Openlayers] - You need a geojson property to add a GeoJSON layer.");if(v(n.url))r=new O.source.Vector({format:new O.format.GeoJSON,url:n.url});else{r=new O.source.Vector;var p,d=e;p=v(n.geojson.projection)?new O.proj.get(n.geojson.projection):e;var g=a.readFeatures(n.geojson.object,{featureProjection:d,dataProjection:p});r.addFeatures(g)}break;case"JSONP":if(!n.url)return void f.error("[AngularJS - Openlayers] - You need an url properly configured to add a JSONP layer.");v(n.url)&&(r=new O.source.ServerVector({format:a,loader:function(){var e=n.url+"&outputFormat=text/javascript&format_options=callback:JSON_CALLBACK";y.jsonp(e,{cache:n.cache}).success(function(e){r.addFeatures(a.readFeatures(e))}).error(function(e){f(e)})},projection:e}));break;case"TopoJSON":if(!n.topojson&&!n.url)return void f.error("[AngularJS - Openlayers] - You need a topojson property to add a TopoJSON layer.");r=n.url?new O.source.Vector({format:new O.format.TopoJSON,url:n.url}):new O.source.Vector(angular.extend(n.topojson,{format:new O.format.TopoJSON}));break;case"TileJSON":r=new O.source.TileJSON({url:n.url,attributions:b(n),crossOrigin:"anonymous"});break;case"TileVector":n.url&&n.format||f.error("[AngularJS - Openlayers] - TileVector Layer needs valid url and format properties"),r=new O.source.VectorTile({url:n.url,projection:e,attributions:b(n),format:n.format,tileGrid:new O.tilegrid.createXYZ({maxZoom:n.maxZoom||19})});break;case"TileTMS":n.url&&n.tileGrid||f.error("[AngularJS - Openlayers] - TileTMS Layer needs valid url and tileGrid properties"),r=new O.source.TileImage({url:n.url,maxExtent:n.maxExtent,attributions:b(n),tileGrid:new O.tilegrid.TileGrid({origin:n.tileGrid.origin,resolutions:n.tileGrid.resolutions}),tileUrlFunction:function(e){var r=e[0],t=e[1],o=e[2];return t<0||o<0?"":n.url+r+"/"+t+"/"+o+".png"}});break;case"TileImage":r=new O.source.TileImage({url:n.url,attributions:b(n),tileGrid:new O.tilegrid.TileGrid({origin:n.tileGrid.origin,resolutions:n.tileGrid.resolutions}),tileUrlFunction:function(e){var r=e[0],t=e[1],o=-e[2]-1;return n.url.replace("{z}",r.toString()).replace("{x}",t.toString()).replace("{y}",o.toString())}});break;case"KML":var m=n.extractStyles||!1;r=new O.source.Vector({url:n.url,format:new O.format.KML,radius:n.radius,extractStyles:m});break;case"Stamen":if(!n.layer||(o=n.layer,-1===["watercolor","terrain","toner"].indexOf(o)))return void f.error("[AngularJS - Openlayers] - You need a valid Stamen layer.");r=new O.source.Stamen({layer:n.layer});break;case"ImageStatic":if(!n.url||!angular.isArray(n.imageSize)||2!==n.imageSize.length)return void f.error("[AngularJS - Openlayers] - You need a image URL to create a ImageStatic layer.");r=new O.source.ImageStatic({url:n.url,attributions:b(n),imageSize:n.imageSize,projection:e,imageExtent:n.imageExtent?n.imageExtent:e.getExtent(),imageLoadFunction:n.imageLoadFunction});break;case"XYZ":n.url||n.tileUrlFunction||f.error("[AngularJS - Openlayers] - XYZ Layer needs valid url or tileUrlFunction properties"),r=new O.source.XYZ({url:n.url,attributions:b(n),minZoom:n.minZoom,maxZoom:n.maxZoom,projection:n.projection,tileUrlFunction:n.tileUrlFunction});break;case"Zoomify":n.url&&angular.isArray(n.imageSize)&&2===n.imageSize.length||f.error("[AngularJS - Openlayers] - Zoomify Layer needs valid url and imageSize properties"),r=new O.source.Zoomify({url:n.url,size:n.imageSize})}return r||f.warn('[AngularJS - Openlayers] - No source could be found for type "'+n.type+'"'),r}(e.source,r);if(i){"function"!=typeof t||o||(o=t,t=void 0),"Vector"===a&&e.clustering&&(i=new O.source.Cluster({source:i,distance:e.clusteringDistance}));var l={source:i};switch(c(e.opacity)&&(l.opacity=e.opacity),c(e.visible)&&(l.visible=e.visible),c(e.extent)&&(l.extent=e.extent),c(e.zIndex)&&(l.zIndex=e.zIndex),c(e.minResolution)&&(l.minResolution=e.minResolution),c(e.maxResolution)&&(l.maxResolution=e.maxResolution),a){case"Image":n=new O.layer.Image(l);break;case"Tile":n=new O.layer.Tile(l);break;case"Heatmap":n=new O.layer.Heatmap(l);break;case"Vector":n=new O.layer.Vector(l);break;case"TileVector":n=new O.layer.VectorTile(l)}if(v(t)?n.set("name",t):v(e.name)&&n.set("name",e.name),v(e.customAttributes))for(var s in e.customAttributes)n.set(s,e.customAttributes[s]);return i.once("change",function(){"ready"===i.getState()&&o&&o({oLayer:n})}),n}},createVectorLayer:function(){return new O.layer.Vector({source:new O.source.Vector})},notifyCenterUrlHashChanged:function(e,r,t){if(r.centerUrlHash){var o=r.lat.toFixed(4)+":"+r.lon.toFixed(4)+":"+r.zoom;v(t.c)&&t.c===o||e.$emit("centerUrlHash",o)}},getControlClasses:r,detectControls:function(e){var t={},o=r();return e.forEach(function(e){for(var r in o)e instanceof o[r]&&(t[r]=e)}),t},createFeature:function(e,r){var t;switch(e.type){case"Polygon":t=new O.geom.Polygon(e.coords);break;default:t=v(e.coord)&&"pixel"===e.projection?new O.geom.Point(e.coord):new O.geom.Point([e.lon,e.lat])}v(e.projection)&&"pixel"!==e.projection&&(t=t.transform(e.projection,r));var o=new O.Feature({geometry:t});if(v(e.style)){var n=i(e.style);o.setStyle(n)}return o},addLayerBeforeMarkers:s,getGroup:l,addLayerToGroup:function(e,r,t){var o,n,a=l(e,t);v(a)||(o=t,(n=new O.layer.Group).set("name",o),s(e,a=n)),r.set("group",t),s(a.getLayers(),r)},removeLayerFromGroup:function(e,r,t){var o=l(e,t);r.set("group"),n(o.getLayers(),r.index)},removeLayer:n,insertLayer:function(e,r,t){if(e.getLength()<r){for(;e.getLength()<r;){var o=new O.layer.Image;o.index=e.getLength(),e.push(o)}t.index=r,e.push(t)}else{t.index=r,e.insertAt(t.index,t);for(var n=r+1;n<e.getLength();n++){var a=e.item(n);if(null===a){e.removeAt(n);break}a.index=n}}},createOverlay:function(e,r){return e.css("display","block"),new O.Overlay({position:r,element:e[0],positioning:"center-left"})}}}]),angular.module("openlayers-directive").factory("olMapDefaults",["$q","olHelpers",function(e,r){var n=r.isDefined,a={};return{getDefaults:function(e){if(!n(e))for(var r in a)return a[r];return a[e.$id]},setDefaults:function(e){var r=e.defaults,t=e.$id,o={view:{projection:"EPSG:3857",minZoom:void 0,maxZoom:void 0,rotation:0,extent:void 0},center:{lat:0,lon:0,zoom:1,autodiscover:!1,bounds:[],centerUrlHash:!1,projection:"EPSG:4326"},styles:{path:{stroke:{color:"blue",width:8}},marker:{image:new O.style.Icon({anchor:[.5,1],anchorXUnits:"fraction",anchorYUnits:"fraction",opacity:.9,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAGmklEQVRYw7VXeUyTZxjvNnfELFuyIzOabermMZEeQC/OclkO49CpOHXOLJl/CAURuYbQi3KLgEhbrhZ1aDwmaoGqKII6odATmH/scDFbdC7LvFqOCc+e95s2VG50X/LLm/f4/Z7neY/ne18aANCmAr5E/xZf1uDOkTcGcWR6hl9247tT5U7Y6SNvWsKT63P58qbfeLJG8M5qcgTknrvvrdDbsT7Ml+tv82X6vVxJE33aRmgSyYtcWVMqX97Yv2JvW39UhRE2HuyBL+t+gK1116ly06EeWFNlAmHxlQE0OMiV6mQCScusKRlhS3QLeVJdl1+23h5dY4FNB3thrbYboqptEFlphTC1hSpJnbRvxP4NWgsE5Jyz86QNNi/5qSUTGuFk1gu54tN9wuK2wc3o+Wc13RCmsoBwEqzGcZsxsvCSy/9wJKf7UWf1mEY8JWfewc67UUoDbDjQC+FqK4QqLVMGGR9d2wurKzqBk3nqIT/9zLxRRjgZ9bqQgub+DdoeCC03Q8j+0QhFhBHR/eP3U/zCln7Uu+hihJ1+bBNffLIvmkyP0gpBZWYXhKussK6mBz5HT6M1Nqpcp+mBCPXosYQfrekGvrjewd59/GvKCE7TbK/04/ZV5QZYVWmDwH1mF3xa2Q3ra3DBC5vBT1oP7PTj4C0+CcL8c7C2CtejqhuCnuIQHaKHzvcRfZpnylFfXsYJx3pNLwhKzRAwAhEqG0SpusBHfAKkxw3w4627MPhoCH798z7s0ZnBJ/MEJbZSbXPhER2ih7p2ok/zSj2cEJDd4CAe+5WYnBCgR2uruyEw6zRoW6/DWJ/OeAP8pd/BGtzOZKpG8oke0SX6GMmRk6GFlyAc59K32OTEinILRJRchah8HQwND8N435Z9Z0FY1EqtxUg+0SO6RJ/mmXz4VuS+DpxXC3gXmZwIL7dBSH4zKE50wESf8qwVgrP1EIlTO5JP9Igu0aexdh28F1lmAEGJGfh7jE6ElyM5Rw/FDcYJjWhbeiBYoYNIpc2FT/SILivp0F1ipDWk4BIEo2VuodEJUifhbiltnNBIXPUFCMpthtAyqws/BPlEF/VbaI
1276xErdxPphsU7rcCp8DohC+GvBIPJS/tW2jtvTmmAeuNO8BNOYQeG8G/2OzCJ3q+soYB5i6NhMaKr17FSal7GIHheuV3uSCY8qYVuEm1cOzqdWr7ku/R0BDoTT+DT+ohCM6/CCvKLKO4RI+dXPeAuaMqksaKrZ7L3FE5FIFbkIceeOZ2OcHO6wIhTkNo0ffgjRGxEqogXHYUPHfWAC/lADpwGcLRY3aeK4/oRGCKYcZXPVoeX/kelVYY8dUGf8V5EBRbgJXT5QIPhP9ePJi428JKOiEYhYXFBqou2Guh+p/mEB1/RfMw6rY7cxcjTrneI1FrDyuzUSRm9miwEJx8E/gUmqlyvHGkneiwErR21F3tNOK5Tf0yXaT+O7DgCvALTUBXdM4YhC/IawPU+2PduqMvuaR6eoxSwUk75ggqsYJ7VicsnwGIkZBSXKOUww73WGXyqP+J2/b9c+gi1YAg/xpwck3gJuucNrh5JvDPvQr0WFXf0piyt8f8/WI0hV4pRxxkQZdJDfDJNOAmM0Ag8jyT6hz0WGXWuP94Yh2jcfjmXAGvHCMslRimDHYuHuDsy2QtHuIavznhbYURq5R57KpzBBRZKPJi8eQg48h4j8SDdowifdIrEVdU+gbO6QNvRRt4ZBthUaZhUnjlYObNagV3keoeru3rU7rcuceqU1mJBxy+BWZYlNEBH+0eH4vRiB+OYybU2hnblYlTvkHinM4m54YnxSyaZYSF6R3jwgP7udKLGIX6r/lbNa9N6y5MFynjWDtrHd75ZvTYAPO/6RgF0k76mQla3FGq7dO+cH8sKn0Vo7nDllwAhqwLPkxrHwWmHJOo+AKJ4rab5OgrM7rVu8eWb2Pu0Dh4eDgXoOfvp7Y7QeqknRmvcTBEyq9m/HQQSCSz6LHq3z0yzsNySRfMS253wl2KyRDbcZPcfJKjZmSEOjcxyi+Y8dUOtsIEH6R2wNykdqrkYJ0RV92H0W58pkfQk7cKevsLK10Py8SdMGfXNXATY+pPbyJR/ET6n9nIfztNtZYRV9XniQu9IA2vOVgy4ir7GCLVmmd+zjkH0eAF9Po6K61pmCXHxU5rHMYd1ftc3owjwRSVRzLjKvqZEty6cRUD7jGqiOdu5HG6MdHjNcNYGqfDm5YRzLBBCCDl/2bk8a8gdbqcfwECu62Fg/HrggAAAABJRU5ErkJggg=="})}},events:{map:[],markers:[],layers:[]},controls:{attribution:!0,rotate:!1,zoom:!0},interactions:{mouseWheelZoom:!1},renderer:"canvas"};return n(r)&&(n(r.layers)&&(o.layers=angular.copy(r.layers)),n(r.controls)&&(o.controls=angular.copy(r.controls)),n(r.events)&&(o.events=angular.copy(r.events)),n(r.interactions)&&(o.interactions=angular.copy(r.interactions)),n(r.renderer)&&(o.renderer=r.renderer),n(r.view)&&(o.view.maxZoom=r.view.maxZoom||o.view.maxZoom,o.view.minZoom=r.view.minZoom||o.view.minZoom,o.view.projection=r.view.projection||o.view.projection,o.view.extent=r.view.extent||o.view.extent,o.view.resolutions=r.view.resolutions||o.view.resolutions),n(r.styles)&&(o.styles=angular.extend(o.styles,r.styles)),n(r.loadTilesWhileAnimating)&&(o.loadTilesWhileAnimating=r.loadTilesWhileAnimating),n(r.loadTilesWhileInteracting)&&(o.loadTilesWhileInteracting=r.loadTilesWhileInteracting)),a[t]=o}}}])}); 1277var feUrl=window.location.href,stratis=stratis||{},popupUrl="undefined"!=typeof settings?settings.stratis_map.popup:void 0!==feUrl?feUrl:window.location.origin,MapController=(stratis.map=stratis.map||angular.module("map",["openlayers-directive"]),function(a,e,i,t,r,o){a.$page=e.page,a.$dom=$(o),a.mapContainer=angular.element(".map"),a.mapContainer.length&&(a.controllerName=a.mapContainer.attr("ng-controller")),a.updateSize=function(){i.getMap().then(function(e){e.updateSize()})},a.settings={defaultMarker:"/images/map/marker.png",clusterMarker:"/images/map/map-cluster-icon.png",selectedMarker:"/images/map/selected-marker.png",defaultLat:48.8566,defaultLon:2.3522,defaultZoom:5,minZoom:0,maxZoom:18,doubleClickZoom:!1,mouseWheelZoom:!0,showZoomButtons:!0,zoomToExtent:!0,routeMarker:"/images/map/marker.png",routeColor:"#303030",BEController:"tx_news_pi1[overwriteDemand][singleNewsIds]",ADMCMDcooluri:1},a.updateSettings=function(){try{$.extend(a.settings,$.parseJSON(e.settings))}catch(e){console.error(e)}},a.updateSettings(),a.backgroundLayers=[{name:"Vue plan",css:"plan",source:{type:"OSM",attribution:'© <a href="https://www.openstreetmap.org/copyright" target="_blank" title="OpenStreetMap (en) (nouvelle fenêtre)">OpenStreetMap</a> contributors'}},{name:"Vue satellite",css:"satellite",source:{name:"Bing Maps",type:"BingMaps",key:"Aj6XtE1Q1rIvehmjn2Rh1LR2qvMGZ-8vPS9Hn3jCeUiToM77JFnf-kFRzyMELDol",imagerySet:"Aerial"}}];function n(t){i.getMap().then(function(e){e.getLayers().forEach(t)})}function s(t){n(function(e){e.get("markers")&&e.getSource().getSource().getFeatures().forEach(t)})}var l="background-switch";a.selectedBackLayer=a.backgroundLayers[0],a.changeBackLayer=function(){$.each(a.backgroundLayers,function(e,t){t.index=0,t.visible=!1}),a.selectedBackLayer.visible=!0,$("."+l).attr("class",l).addClass(l+"--"+a.selectedBackLayer.css)},a.changeBackLayer(),a.markers={},a.markers.forEach=s,a.markers.findByUid=function(t,o){s(function(e){e.get("uid")===t?(e.set("selected",!0),o(e)):e.set("selected",!1)})},a.markers.findAll=function(t){n(function(e){e.get("markers")&&(e=e.getSource(),t(e.getSource().getFeatures()))})},a.zoomToExtent=function(e,r){for(var n=ol.extent.createEmpty(),t=0,o=(e=Array.isArray(e)?e:[e]).length;t<o;t++)e[t]instanceof ol.layer.Layer&&(n=ol.extent.extend(n,e[t].getSource().getExtent())),e[t]instanceof ol.Feature&&(n=ol.extent.extend(n,e[t].getGeometry().getExtent()));i.getMap().then(function(e){r=r||200;var t=ol.animation.pan({source:e.getView().getCenter(),duration:r}),o=ol.animation.zoom({resolution:e.getView().getResolution(),duration:r});e.beforeRender(t,o),-1===n.indexOf(1/0)&&e.getView().fit(n,e.getSize())})},a.zoomOnContent=function(){a.markers.findAll(function(e){a.zoomToExtent(e)})},a.route=void 0,a.selectedLocation=void 0;a.routing={start:function(){var t=a.$dom.find(".tools__routing");a.route=void 0,t.addClass("tools__routing--active");navigator.geolocation.getCurrentPosition(function(e){a.$apply(function(){a.route={longitude:e.coords.longitude,latitude:e.coords.latitude,location:a.selectedLocation,callback:function(){t.removeClass("tools__routing--active"),n(function(e){e.get("route")&&a.zoomToExtent(e)})}}})},function(){t.removeClass("tools__routing--active")})},reset:function(){a.route=void 0,a.selectedLocation=void 0,s(function(e){e.set("selected",!1)})}},a.getQueryParams=function(t,e){var o={queryIds:[],queryType:520,queryController:a.settings.BEController},r={id:a.$page,type:o.queryType},n=Number(a.settings.ADMCMDcooluri);return n&&(r.ADMCMD_cooluri=n),e&&("object"!=typeof e?r[o.queryController]=e:(e.forEach(function(e){e=e.get("element").attr("ng-click").match(/\d{1,}/gi);e.shift(),"FlexController"!==t&&(o.queryIds=o.queryIds.concat(e))}),r[o.queryController]=o.queryIds.join(","))),r},angular.extend(a,{defaults:{controls:{zoom:a.settings.showZoomButtons},interactions:{mouseWheelZoom:a.settings.mouseWheelZoom,doubleClickZoom:a.settings.doubleClickZoom},view:{maxZoom:parseFloat(a.settings.maxZoom),minZoom:parseFloat(a.settings.minZoom)},styles:{marker:{text:{offsetY:-33,font:"20px Arial",color:"#fff"},image:{icon:{anchor:[.5,1],src:a.settings.defaultMarker}}},cluster:{image:{icon:{anchor:[.5,1],src:a.settings.clusterMarker}}},selected:{image:{icon:{anchor:[.5,1],src:a.settings.selectedMarker}}}}},center:{lon:parseFloat(a.settings.defaultLon),lat:parseFloat(a.settings.defaultLat),zoom:parseFloat(a.settings.defaultZoom)}}
1277),i.getMap().then(function(o){o.getControls().forEach(function(e){e instanceof ol.control.Zoom&&(o.removeControl(e),e=new ol.control.Zoom({zoomInTipLabel:"Zoomer",zoomOutTipLabel:"Dézoomer"}),o.addControl(e))}),o.on("click",function(e){var t,e=o.forEachFeatureAtPixel(e.pixel,function(e,t){return t.get("markers")?e:void 0});o.get("view").getZoom()===Number(a.settings.maxZoom)&&void 0!==e&&(e=e.get("features"),t=a.mapContainer.find(".map-popup__content"),e=a.getQueryParams(a.controllerName,e),"FlexController"!==a.controllerName)&&r({method:"GET",url:popupUrl,params:e}).then(function(e){t.html(e.data),a.mapContainer.addClass("-show-popup"),o.updateSize()})}),o.on("pointermove",function(e){e=o.forEachFeatureAtPixel(e.pixel,function(e,t){return t.get("markers")?e:void 0});o.getTarget().style.cursor=e?"pointer":""})})});function initMapHandlers(){function s(e,t){e.forEach(t)}function l(e){var t=e.getAttribute("data-alt-text"),o=e.innerText;t&&(e.innerText=t,e.setAttribute("data-alt-text",o))}function o(e,t){var o=document.getElementById(e.getAttribute("data-target")),r=(o||e.classList.add("-is-hidden"),o.getAttribute("aria-hidden")),n=[].slice.call(document.querySelectorAll('[data-target="'+o.id+'"]')),a=o.getAttribute("data-custom-related"),i={};if(null===r)return console.error('Target block should have "aria-hidden" attribute: ',o);a&&(i.element=document.getElementById(a.split(",")[0]),i.class=a.split(",")[1].trim()),"map"===o.id&&"true"===r&&767<window.innerWidth&&e.click(),t?"click"===t.type&&("false"===r?(o.setAttribute("aria-hidden",!0),s(n,function(e){e.classList.remove("-is-active"),l(e)}),i.element&&i.element.classList.remove(i.class)):(o.setAttribute("aria-hidden",!1),s(n,function(e){e.classList.add("-is-active"),l(e)}),i.element&&i.element.classList.add(i.class))):"false"===r?(s(n,function(e){e.classList.add("-is-active")}),i.element&&i.element.classList.add(i.class)):(s(n,function(e){e.classList.remove("-is-active"),l(e)}),i.element&&i.element.classList.remove(i.class))}function r(){var e=document.querySelector(".map-update");e&&e.click()}var e=[].slice.call(document.querySelectorAll(".js-map-toggle"));e.length&&e.forEach(function(t){o(t),t.addEventListener("click",function(e){o(t,e),r()}),window.addEventListener("resize",function(e){o(t,e),r()})})}stratis.map.controller("MapController",["$scope","$attrs","olData","$timeout","$http","$element",MapController]),initMapHandlers();var DefaultController=function(r,e,t,o,n,a,i){i("MapController",{$scope:r,$attrs:e,olData:t,$timeout:o,$http:n,$element:a}),r.showPopup=function(o,e){r.$dom.addClass("-map-loading");e=r.getQueryParams(r.controllerName,e);n({method:"GET",url:popupUrl,params:e}).then(function(e){var t=e.data,e=$(".popup-item-contacts",$(e.data));e.length&&(t=e),r.$dom.removeClass("-map-loading"),r.$dom.addClass("-show-popup").find(".map-popup__content").html(t),r.updateSize(),r.routing.reset(),r.selectedLocation=o,r.markers.findByUid(o,function(e){r.zoomToExtent(e)})})},r.hidePopup=function(){r.$dom.removeClass("-show-popup"),r.routing.reset(),r.updateSize(),o(r.zoomOnContent,100)},o(function(){r.markers.findAll(function(e){1===e.length?o(function(){e[0].get("element").triggerHandler("click")}):r.zoomOnContent()})},100),o(r.updateSize,100)},FlexController=(stratis.map.controller("DefaultController",["$scope","$attrs","olData","$timeout","$http","$element","$controller",DefaultController]),function(t,e,o,r,n,a,i){i("DefaultController",{$scope:t,$attrs:e,olData:o,$timeout:r,$http:n,$element:a}),t.showPopup=function(e){t.$dom.addClass("-show-popup"),t.updateSize(),t.routing.reset(),t.selectedLocation=e,t.markers.findByUid(e,function(e){t.zoomToExtent(e)})}}),LargeController=(stratis.map.controller("FlexController",["$scope","$attrs","olData","$timeout","$http","$element","$controller",FlexController]),function(n,e,t,r,a,o,i,s){i("MapController",{$scope:n,$attrs:e,olData:t,$timeout:r,$http:a,$element:s}),n.$search=n.$dom.find(".map__search"),n.$popup=n.$dom.find(".map-popup"),n.$filters=$("body.map-page div.filters").find("form"),n.$reset=n.$filters.find('[type="reset"]'),n.markers.show=function(e){n.markers.findByUid(parseInt(e),function(e){n.zoomToExtent(e)})},n.IEPolyfill=function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o}e.prototype=window.Event.prototype,window.CustomEvent=e}
1277,n.IEPolyfill(),n.markers.reveal=function(){n.markers.forEach(function(e){e.set("hidden",!1)})},n.hasUrlIdsParams=function(){var e;if(location.search)return!(!(e=n.sepUrlParams()).uid&&!e.singleNewsIds)},n.sepUrlParams=function(){var e=location.search.substring(1).split("&"),o={};return e.forEach(function(e){var e=e.split("="),t=e[0];o[t]=e[1]}),o},n.setParams=function(e,t,o,r){e=document.querySelector(e);e&&Array.from(e.querySelectorAll(t)).forEach(function(e){o&&r?e.search="?uid="+o+"&singleNewsIds="+r:o?e.search="?uid="+o:r&&(e.search="&singleNewsIds="+r)})},n.popupAction=function(o,e){$("body").addClass("-map-loading");e=n.getQueryParams(n.controllerName,e);a({method:"GET",url:popupUrl,params:e}).then(function(e){var t=e.data,e=$(".popup-item-contacts, .map-popup__heading",$(e.data)),e=(e.length&&(t=e),$("body").removeClass("-map-loading"),n.$dom.addClass("-show-popup"),n.$popup.find(".map-popup__content").html(t),n.updateSize(),r(n.markers.show(o),100),n.routing.selectedLocation=o,new CustomEvent("openPopup"));window.dispatchEvent(e)})},n.showPopup=n.popupAction,n.searchAction=function(){n.routing.reset(),n.$dom.removeClass("-show-popup"),$("body").addClass("-map-loading"),n.updateSize();for(var e=n.$filters.serializeArray(),t={},o=0,r=e.length;o<r;o++)e[o].name.indexOf("__referrer")<0&&(t[e[o].name]=e[o].value);return t.id=n.$page,t.type="json",t.ADMCMD_cooluri=1,a({method:"GET",url:popupUrl,params:t,headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(e){$("body").removeClass("-map-loading"),n.filterMarkers($.makeArray(e.data))}),!1},n.resultAction=function(e,o){a({method:"GET",url:popupUrl,params:{id:n.$page,"tx_stratismap_map[controller]":n.originController,"tx_stratismap_map[action]":"result","tx_stratismap_map[news]":e,ADMCMD_cooluri:1,type:"blank"}}).then(function(e){var t=e.data,e=$(".popup-item-contacts, .map-popup__heading",$(e.data));e.length&&(t=e),n.$dom.addClass("-show-popup"),n.$popup.find(".map-popup__content").html(t),n.routing.reset(),n.updateSize(),n.filterMarkers(o)})},n.resetAction=function(){n.$dom.removeClass("-show-results -show-popup"),n.updateSize(),n.routing.reset(),n.markers.reveal(),r(n.zoomOnContent,100)},n.$reset.on("click",n.resetAction),n.showMenu=function(){n.$dom.toggleClass("map__menu--active")},n.hideSearch=function(){n.$dom.removeClass("-show-results -show-popup"),n.updateSize(),n.markers.reveal(),r(n.zoomOnContent,100)},n.toggleSearch=function(){n.$dom.toggleClass("-show-results"),n.$filters.find(".filters__toggle").text(function(){return n.$dom.hasClass("-show-results")?"Masquer les résultats":"Afficher les résultats"}),n.updateSize(),n.markers.reveal(),r(n.zoomOnContent,100)},n.$filters.find(".filters__toggle").click(n.toggleSearch),n.hidePopup=function(){n.$dom.removeClass("-show-popup"),n.updateSize(),n.markers.reveal(),n.routing.reset(),r(n.zoomOnContent,100)};n.filterMarkers=function(r){n.markers.forEach(function(e){var t,o=e.get("attributes").clustered.split(",").map(Number);e.set("hidden",(t=o,!$.map(r,function(e){return $.inArray(e,t)<0?null:e}).length))}),0<r.length?n.markers.findAll(function(e){e=$.grep(e,function(e){return!1===e.get("hidden")});n.zoomToExtent(e)}):t.getMap().then(function(e){var t=[parseFloat(n.settings.defaultLon),parseFloat(n.settings.defaultLat)];e.getView().setCenter(ol.proj.transform(t,"EPSG:4326","EPSG:3857")),e.getView().setZoom(parseFloat(n.settings.defaultZoom))})},n.settings.zoomToExtent&&(r(n.updateSize,100),r(n.zoomOnContent,100))}),RouteDirective=(stratis.map.controller("LargeController",["$scope","$attrs","olData","$timeout","$http","$compile","$controller","$element",LargeController]),function(e,t,p,d,r){return{restrict:"E",scope:{properties:"=olRouteProperties",style:"=olStyle"},require:"^openlayers",replace:!0,template:'<div class="popup-label route" ng-bind-html="message"></div>',link:function(n,e,t,o){var a=r.isDefined,i=r.createFeature,s=r.createVectorLayer,l=r.insertLayer,u=r.removeLayer,c=o.getOpenlayersScope();c.getMap().then(function(e){var o=d.getDefaults(c).view.projection,r=s(),t=(r.set("route",!0),r.index=9999,e.getLayers());l(t,t.getLength(),r),n.$on("$destroy",function(){u(t,r.index)}),n.$watch("properties",function(t){n.feature&&(r.getSource().removeFeature
1277(n.feature),r.getSource().removeFeature(n.departureMarker),delete n.feature,delete n.departureMarker),a(t)&&a(t.longitude)&&a(t.latitude)&&p({method:"GET",url:popupUrl,params:{eID:"stratis_map_route",lon:t.longitude,lat:t.latitude,uid:t.location,ADMCMD_cooluri:1,no_cache:1}}).then(function(e){200!=e.status||"Ok"!=e.data.code?console.log("[Stratis] Route: Bad response"):0==(e=e.data.routes).length?console.log("[Stratis] Route: No route found!"):(e=(new ol.format.Polyline).readGeometry(e[0].geometry,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"}),n.feature=new ol.Feature({type:"route",geometry:e}),n.feature.setStyle(new ol.style.Style({stroke:new ol.style.Stroke({width:6,color:[40,40,40,.8]})})),r.getSource().addFeature(n.feature),e={projection:"EPSG:4326",lat:t.latitude,lon:t.longitude,style:{image:{icon:{anchor:[.5,1],anchorXUnits:"fraction",anchorYUnits:"fraction",opacity:1,src:"/packages/stratis_site/Resources/Public/Images/map/marker-user.png"}}}},n.departureMarker=i(e,o),r.getSource().addFeature(n.departureMarker),(a(t.callback)?t.callback:$.noop())())})})})}}});angular.module("openlayers-directive").directive("olRoute",["$log","$q","$http","olMapDefaults","olHelpers",RouteDirective]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.