/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License > = 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ (function(){var _1=null;if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){var _2="",_3="",_4="",_5={},_6={};_1=_1||djConfig.scopeMap;for(var i=0;i <_1.length;i++){var _7=_1[i];_2+="var "+_7[0]+" = {}; "+_7[1]+" = "+_7[0]+";"+_7[1]+"._scopeName = '"+_7[1]+"';";_3+=(i==0?"":",")+_7[0];_4+=(i==0?"":",")+_7[1];_5[_7[0]]=_7[1];_6[_7[1]]=_7[0];}eval(_2+"dojo._scopeArgs = ["+_4+"];");dojo._scopePrefixArgs=_3;dojo._scopePrefix="(function("+_3+"){";dojo._scopeSuffix="})("+_4+")";dojo._scopeMap=_5;dojo._scopeMapRev=_6;}(function(){if(typeof this["loadFirebugConsole"]=="function"){this["loadFirebugConsole"]();}else{this.console=this.console||{};var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];var i=0,tn;while((tn=cn[i++])){if(!console[tn]){(function(){var _8=tn+"";console[_8]=("log" in console)?function(){var a=Array.apply({},arguments);a.unshift(_8+":");console["log"](a.join(" "));}:function(){};console[_8]._fake=true;})();}}}if(typeof dojo=="undefined"){dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};}var d=dojo;if(typeof dijit=="undefined"){dijit={_scopeName:"dijit"};}if(typeof dojox=="undefined"){dojox={_scopeName:"dojox"};}if(!d._scopeArgs){d._scopeArgs=[dojo,dijit,dojox];}d.global=this;d.config={isDebug:false,debugAtAllCosts:false};var _9=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null;if(_9){for(var c in _9){d.config[c]=_9[c];}}dojo.locale=d.config.locale;var _a="$Rev: 24595 $".match(/\d+/);dojo.version={major:1,minor:6,patch:1,flag:"",revision:_a?+_a[0]:NaN,toString:function(){with(d.version){return major+"."+minor+"."+patch+flag+" ("+revision+")";}}};if(typeof OpenAjax!="undefined"){OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org/",d.version.toString());}var _b,_c,_d={};for(var i in {toString:1}){_b=[];break;}dojo._extraNames=_b=_b||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];_c=_b.length;dojo._mixin=function(_e,_f){var _10,s,i;for(_10 in _f){s=_f[_10];if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){_e[_10]=s;}}if(_c&&_f){for(i=0;i <_c;++i){_10=_b[i];s=_f[_10];if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){_e[_10]=s;}}}return _e;};dojo.mixin=function(obj,_11){if(!obj){obj={};}for(var i=1,l=arguments.length;i 0){console.warn("files still in flight!");return;}d._callLoaded();};dojo._callLoaded=function(){if(typeof setTimeout=="object"||(d.config.useXDomain&&d.isOpera)){setTimeout(d.isAIR?function(){d.loaded();}:d._scopeName+".loaded();",0);}else{d.loaded();}};dojo._getModuleSymbols=function(_24){var _25=_24.split(".");for(var i=_25.length;i> 0;i--){var _26=_25.slice(0,i).join(".");if(i==1&&!d._moduleHasPrefix(_26)){_25[0]="../"+_25[0];}else{var _27=d._getModulePrefix(_26);if(_27!=_26){_25.splice(0,i,_27);break;}}}return _25;};dojo._global_omit_module_check=false;dojo.loadInit=function(_28){_28();};dojo._loadModule=dojo.require=function(_29,_2a){_2a=d._global_omit_module_check||_2a;var _2b=d._loadedModules[_29];if(_2b){return _2b;}var _2c=d._getModuleSymbols(_29).join("/")+".js";var _2d=!_2a?_29:null;var ok=d._loadPath(_2c,_2d);if(!ok&&!_2a){throw new Error("Could not load '"+_29+"'; last tried '"+_2c+"'");}if(!_2a&&!d._isXDomain){_2b=d._loadedModules[_29];if(!_2b){throw new Error("symbol '"+_29+"' is not defined after loading '"+_2c+"'");}}return _2b;};dojo.provide=function(_2e){_2e=_2e+"";return (d._loadedModules[_2e]=d.getObject(_2e,true));};dojo.platformRequire=function(_2f){var _30=_2f.common||[];var _31=_30.concat(_2f[d._name]||_2f["default"]||[]);for(var x=0;x <_31.length;x++){var _32=_31[x];if(_32.constructor==Array){d._loadModule.apply(d,_32);}else{d._loadModule(_32);}}};dojo.requireIf=function(_33,_34){if(_33===true){var _35=[];for(var i=1;i 0&&!(j==1&&_40[0]=="")&&_40[j]==".."&&_40[j-1]!=".."){if(j==(_40.length-1)){_40.splice(j,1);_40[j-1]="";}else{_40.splice(j-1,2);j-=2;}}}}_3d.path=_40.join("/");}}}}uri=[];if(_3d.scheme){uri.push(_3d.scheme,":");}if(_3d.authority){uri.push("//",_3d.authority);}uri.push(_3d.path);if(_3d.query){uri.push("?",_3d.query);}if(_3d.fragment){uri.push("#",_3d.fragment);}}this.uri=uri.join("");var r=this.uri.match(ore);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(ire);this.user=r[3]||n;this.password=r[4]||n;this.host=r[6]||r[7];this.port=r[9]||n;}};dojo._Url.prototype.toString=function(){return this.uri;};dojo.moduleUrl=function(_41,url){var loc=d._getModuleSymbols(_41).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _42=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_42==-1||_42> loc.indexOf("/"))){loc=d.baseUrl+loc;}return new d._Url(loc,url);};})();dojo.provide("dojo._base._loader.loader_xd");dojo._xdReset=function(){dojo._isXDomain=dojo.config.useXDomain||false;dojo._xdClearInterval();dojo._xdInFlight={};dojo._xdOrderedReqs=[];dojo._xdDepMap={};dojo._xdContents=[];dojo._xdDefList=[];};dojo._xdClearInterval=function(){if(dojo._xdTimer){clearInterval(dojo._xdTimer);dojo._xdTimer=0;}};dojo._xdReset();dojo._xdCreateResource=function(_43,_44,_45){var _46=_43.replace(/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,"");var _47=[];var _48=/dojo.(require|requireIf|provide|requireAfterIf|platformRequire|requireLocalization)\s*\(([\w\W]*?)\)/mg;var _49;while((_49=_48.exec(_46))!=null){if(_49[1]=="requireLocalization"){eval(_49[0]);}else{_47.push("\""+_49[1]+"\", "+_49[2]);}}var _4a=[];_4a.push(dojo._scopeName+"._xdResourceLoaded(function("+dojo._scopePrefixArgs+"){\n");var _4b=dojo._xdExtractLoadInits(_43);if(_4b){_43=_4b[0];for(var i=1;i <_4b.length;i++){_4a.push(_4b[i]+";\n");}}_4a.push("return {");if(_47.length> 0){_4a.push("depends: [");for(i=0;i <_47.length;i++){if(i> 0){_4a.push(",\n");}_4a.push("["+_47[i]+"]");}_4a.push("],");}_4a.push("\ndefineResource: function("+dojo._scopePrefixArgs+"){");if(!dojo.config["debugAtAllCosts"]||_44=="dojo._base._loader.loader_debug"){_4a.push(_43);}_4a.push("\n}, resourceName: '"+_44+"', resourcePath: '"+_45+"'};});");return _4a.join("");};dojo._xdExtractLoadInits=function(_4c){var _4d=/dojo.loadInit\s*\(/g;_4d.lastIndex=0;var _4e=/[\(\)]/g;_4e.lastIndex=0;var _4f=[];var _50;while((_50=_4d.exec(_4c))){_4e.lastIndex=_4d.lastIndex;var _51=1;var _52;while((_52=_4e.exec(_4c))){if(_52[0]==")"){_51-=1;}else{_51+=1;}if(_51==0){break;}}if(_51!=0){throw "unmatched paren around character "+_4e.lastIndex+" in: "+_4c;}var _53=_4d.lastIndex-_50[0].length;_4f.push(_4c.substring(_53,_4e.lastIndex));var _54=_4e.lastIndex-_53;_4c=_4c.substring(0,_53)+_4c.substring(_4e.lastIndex,_4c.length);_4d.lastIndex=_4e.lastIndex-_54;_4d.lastIndex=_4e.lastIndex;}if(_4f.length> 0){_4f.unshift(_4c);}return (_4f.length?_4f:null);};dojo._xdIsXDomainPath=function(_55){var _56=_55.indexOf(":");var _57=_55.indexOf("/");if(_56> 0&&_56 <_57||_55.indexOf("//")===0){return true;}else{var url=dojo.baseUrl;_56=url.indexOf(":");_57=url.indexOf("/");if(url.indexOf("//")===0||(_56> 0&&_56 <_57&&(!location.host||url.indexOf("http://"+location.host)!=0))){return true;}}return false;};dojo._loadPath=function(_58,_59,cb){var _5a=dojo._xdIsXDomainPath(_58);dojo._isXDomain|=_5a;var uri=((_58.charAt(0)=="/"||_58.match(/^\w+:/))?"":dojo.baseUrl)+_58;try{return ((!_59||dojo._isXDomain)?dojo._loadUri(uri,cb,_5a,_59):dojo._loadUriAndCheck(uri,_59,cb));}catch(e){console.error(e);return false;}};dojo._xdCharSet="utf-8";dojo._loadUri=function(uri,cb,_5b,_5c){if(dojo._loadedUrls[uri]){return 1;}if(dojo._isXDomain&&_5c&&_5c!="dojo.i18n"){dojo._xdOrderedReqs.push(_5c);if(_5b||uri.indexOf("/nls/")==-1){dojo._xdInFlight[_5c]=true;dojo._inFlightCount++;}if(!dojo._xdTimer){if(dojo.isAIR){dojo._xdTimer=setInterval(function(){dojo._xdWatchInFlight();},100);}else{dojo._xdTimer=setInterval(dojo._scopeName+"._xdWatchInFlight();",100);}}dojo._xdStartTime=(new Date()).getTime();}if(_5b){var _5d=uri.lastIndexOf(".");if(_5d <=0){_5d=uri.length-1;}var _5e=uri.substring(0,_5d)+".xd";if(_5d!=uri.length-1){_5e+=uri.substring(_5d,uri.length);}if(dojo.isAIR){_5e=_5e.replace("app:/","/");}var _5f=document.createElement("script");_5f.type="text/javascript";if(dojo._xdCharSet){_5f.charset=dojo._xdCharSet;}_5f.src=_5e;if(!dojo.headElement){dojo._headElement=document.getElementsByTagName("head")[0];if(!dojo._headElement){dojo._headElement=document.getElementsByTagName("html")[0];}}dojo._headElement.appendChild(_5f);}else{var _60=dojo._getText(uri,null,true);if(_60==null){return 0;}if(dojo._isXDomain&&uri.indexOf("/nls/")==-1&&_5c!="dojo.i18n"){var res=dojo._xdCreateResource(_60,_5c,uri);dojo.eval(res);}else{if(cb){_60="("+_60+")";}else{_60=dojo._scopePrefix+_60+dojo._scopeSuffix;}var _61=dojo["eval"](_60+"\r\n//@ sourceURL="+uri);if(cb){cb(_61);}}}dojo._loadedUrls[uri]=true;dojo._loadedUrls.push(uri);return true;};dojo._xdResourceLoaded=function(res){res=res.apply(dojo.global,dojo._scopeArgs);var _62=res.depends;var _63=null;var _64=null;var _65=[];if(_62&&_62.length> 0){var dep=null;var _66=0;var _67=false;for(var i=0;i <_62.length;i++){dep=_62[i];if(dep[0]=="provide"){_65.push(dep[1]);}else{if(!_63){_63=[];}if(!_64){_64=[];}var _68=dojo._xdUnpackDependency(dep);if(_68.requires){_63=_63.concat(_68.requires);}if(_68.requiresAfter){_64=_64.concat(_68.requiresAfter);}}var _69=dep[0];var _6a=_69.split(".");if(_6a.length==2){dojo[_6a[0]][_6a[1]].apply(dojo[_6a[0]],dep.slice(1));}else{dojo[_69].apply(dojo,dep.slice(1));}}if(_65.length==1&&_65[0]=="dojo._base._loader.loader_debug"){res.defineResource(dojo);}else{var _6b=dojo._xdContents.push({content:res.defineResource,resourceName:res["resourceName"],resourcePath:res["resourcePath"],isDefined:false})-1;for(i=0;i <_65.length;i++){dojo._xdDepMap[_65[i]]={requires:_63,requiresAfter:_64,contentIndex:_6b};}}for(i=0;i <_65.length;i++){dojo._xdInFlight[_65[i]]=false;}}};dojo._xdLoadFlattenedBundle=function(_6c,_6d,_6e,_6f){_6e=_6e||"root";var _70=dojo.i18n.normalizeLocale(_6e).replace("-","_");var _71=[_6c,"nls",_6d].join(".");var _72=dojo["provide"](_71);_72[_70]=_6f;var _73=[_6c,_70,_6d].join(".");var _74=dojo._xdBundleMap[_73];if(_74){for(var _75 in _74){_72[_75]=_6f;}}};dojo._xdInitExtraLocales=function(){var _76=dojo.config.extraLocale;if(_76){if(!_76 instanceof Array){_76=[_76];}dojo._xdReqLoc=dojo.xdRequireLocalization;dojo.xdRequireLocalization=function(m,b,_77,_78){dojo._xdReqLoc(m,b,_77,_78);if(_77){return;}for(var i=0;i <_76.length;i++){dojo._xdReqLoc(m,b,_76[i],_78);}};}};dojo._xdBundleMap={};dojo.xdRequireLocalization=function(_79,_7a,_7b,_7c){if(dojo._xdInitExtraLocales){dojo._xdInitExtraLocales();dojo._xdInitExtraLocales=null;dojo.xdRequireLocalization.apply(dojo,arguments);return;}var _7d=_7c.split(",");var _7e=dojo.i18n.normalizeLocale(_7b);var _7f="";for(var i=0;i <_7d.length;i++){if(_7e.indexOf(_7d[i])==0){if(_7d[i].length> _7f.length){_7f=_7d[i];}}}var _80=_7f.replace("-","_");var _81=dojo.getObject([_79,"nls",_7a].join("."));if(!_81||!_81[_80]){var _82=[_79,(_80||"root"),_7a].join(".");var _83=dojo._xdBundleMap[_82];if(!_83){_83=dojo._xdBundleMap[_82]={};}_83[_7e.replace("-","_")]=true;dojo.require(_79+".nls"+(_7f?"."+_7f:"")+"."+_7a);}};dojo._xdRealRequireLocalization=dojo.requireLocalization;dojo.requireLocalization=function(_84,_85,_86,_87){var _88=dojo.moduleUrl(_84).toString();if(dojo._xdIsXDomainPath(_88)){return dojo.xdRequireLocalization.apply(dojo,arguments);}else{return dojo._xdRealRequireLocalization.apply(dojo,arguments);}};dojo._xdUnpackDependency=function(dep){var _89=null;var _8a=null;switch(dep[0]){case "requireIf":case "requireAfterIf":if(dep[1]===true){_89=[{name:dep[2],content:null}];}break;case "platformRequire":var _8b=dep[1];var _8c=_8b["common"]||[];_89=(_8b[dojo.hostenv.name_])?_8c.concat(_8b[dojo.hostenv.name_]||[]):_8c.concat(_8b["default"]||[]);if(_89){for(var i=0;i <_89.length;i++){if(_89[i] instanceof Array){_89[i]={name:_89[i][0],content:null};}else{_89[i]={name:_89[i],content:null};}}}break;case "require":_89=[{name:dep[1],content:null}];break;case "i18n._preloadLocalizations":dojo.i18n._preloadLocalizations.apply(dojo.i18n._preloadLocalizations,dep.slice(1));break;}if(dep[0]=="requireAfterIf"||dep[0]=="requireIf"){_8a=_89;_89=null;}return {requires:_89,requiresAfter:_8a};};dojo._xdWalkReqs=function(){var _8d=null;var req;for(var i=0;i 0){var req=_8e[_8e.length-1];var res=dojo._xdDepMap[req];var i,_8f,_90;if(res){_8f=res.requires;if(_8f&&_8f.length> 0){for(i=0;i <_8f.length;i++){_90=_8f[i].name;if(_90&&!_8e[_90]){_8e.push(_90);_8e[_90]=true;dojo._xdEvalReqs(_8e);}}}var _91=dojo._xdContents[res.contentIndex];if(!_91.isDefined){var _92=_91.content;_92["resourceName"]=_91["resourceName"];_92["resourcePath"]=_91["resourcePath"];dojo._xdDefList.push(_92);_91.isDefined=true;}dojo._xdDepMap[req]=null;_8f=res.requiresAfter;if(_8f&&_8f.length> 0){for(i=0;i <_8f.length;i++){_90=_8f[i].name;if(_90&&!_8e[_90]){_8e.push(_90);_8e[_90]=true;dojo._xdEvalReqs(_8e);}}}}_8e.pop();}};dojo._xdWatchInFlight=function(){var _93="";var _94=(dojo.config.xdWaitSeconds||15)*1000;var _95=(dojo._xdStartTime+_94) <(new Date()).getTime();for(var _96 in dojo._xdInFlight){if(dojo._xdInFlight[_96]===true){if(_95){_93+=_96+" ";}else{return;}}}dojo._xdClearInterval();if(_95){throw "Could not load cross-domain resources: "+_93;}dojo._xdWalkReqs();var _97=dojo._xdDefList.length;for(var i=0;i <_97;i++){var _98=dojo._xdDefList[i];if(dojo.config["debugAtAllCosts"]&&_98["resourceName"]){if(!dojo["_xdDebugQueue"]){dojo._xdDebugQueue=[];}dojo._xdDebugQueue.push({resourceName:_98.resourceName,resourcePath:_98.resourcePath});}else{_98.apply(dojo.global,dojo._scopeArgs);}}for(i=0;i 0){dojo._xdDebugFileLoaded();}else{dojo._xdNotifyLoaded();}};dojo._xdNotifyLoaded=function(){for(var _9a in dojo._xdInFlight){if(typeof dojo._xdInFlight[_9a]=="boolean"){return;}}dojo._inFlightCount=0;if(dojo._initFired&&!dojo._loadNotifying){dojo._callLoaded();}};if(typeof window!="undefined"){dojo.isBrowser=true;dojo._name="browser";(function(){var d=dojo;if(document&&document.getElementsByTagName){var _9b=document.getElementsByTagName("script");var _9c=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i <_9b.length;i++){var src= http://www.citymap.odessa.ua/_9b[i].getAttribute("src");if(!src){continue;}var m=src.match(_9c);if(m){if(!d.config.baseUrl){d.config.baseUrl=src.substring(0,m.index);}var cfg=(_9b[i].getAttribute("djConfig")||_9b[i].getAttribute("data-dojo-config"));if(cfg){var _9d=eval("({ "+cfg+" })");for(var x in _9d){dojo.config[x]=_9d[x];}}break;}}}d.baseUrl=d.config.baseUrl;var n=navigator;var dua=n.userAgent,dav=n.appVersion,tv=parseFloat(dav);if(dua.indexOf("Opera")> =0){d.isOpera=tv;}if(dua.indexOf("AdobeAIR")> =0){d.isAIR=1;}d.isKhtml=(dav.indexOf("Konqueror")> =0)?tv:0;d.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;d.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;d.isMac=dav.indexOf("Macintosh")> =0;var _9e=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(_9e&&!dojo.isChrome){d.isSafari=parseFloat(dav.split("Version/")[1]);if(!d.isSafari||parseFloat(dav.substr(_9e+7)) <=419.3){d.isSafari=2;}}if(dua.indexOf("Gecko")> =0&&!d.isKhtml&&!d.isWebKit){d.isMozilla=d.isMoz=tv;}if(d.isMoz){d.isFF=parseFloat(dua.split("Firefox/")[1]||dua.split("Minefield/")[1])||undefined;}if(document.all&&!d.isOpera){d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;var _9f=document.documentMode;if(_9f&&_9f!=5&&Math.floor(d.isIE)!=_9f){d.isIE=_9f;}}if(dojo.isIE&&window.location.protocol==="file:"){dojo.config.ieForceActiveXXhr=true;}d.isQuirks=document.compatMode=="BackCompat";d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];d._xhrObj=function(){var _a0,_a1;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{_a0=new XMLHttpRequest();}catch(e){}}if(!_a0){for(var i=0;i <3;++i){var _a2=d._XMLHTTP_PROGIDS[i];try{_a0=new ActiveXObject(_a2);}catch(e){_a1=e;}if(_a0){d._XMLHTTP_PROGIDS=[_a2];break;}}}if(!_a0){throw new Error("XMLHTTP not available: "+_a1);}return _a0;};d._isDocumentOk=function(_a3){var _a4=_a3.status||0,lp=location.protocol;return (_a4> =200&&_a4 <300)||_a4==304||_a4==1223||(!_a4&&(lp=="file:"||lp=="chrome:"||lp=="chrome-extension:"||lp=="app:"));};var _a5=window.location+"";var _a6=document.getElementsByTagName("base");var _a7=(_a6&&_a6.length> 0);d._getText=function(uri,_a8){var _a9=d._xhrObj();if(!_a7&&dojo._Url){uri=(new dojo._Url(_a5,uri)).toString();}if(d.config.cacheBust){uri+="";uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}_a9.open("GET",uri,false);try{_a9.send(null);if(!d._isDocumentOk(_a9)){var err=Error("Unable to load "+uri+" status:"+_a9.status);err.status=_a9.status;err.responseText=_a9.responseText;throw err;}}catch(e){if(_a8){return null;}throw e;}return _a9.responseText;};var _aa=window;var _ab=function(_ac,fp){var _ad=_aa.attachEvent||_aa.addEventListener;_ac=_aa.attachEvent?_ac:_ac.substring(2);_ad(_ac,function(){fp.apply(_aa,arguments);},false);};d._windowUnloaders=[];d.windowUnloaded=function(){var mll=d._windowUnloaders;while(mll.length){(mll.pop())();}d=null;};var _ae=0;d.addOnWindowUnload=function(obj,_af){d._onto(d._windowUnloaders,obj,_af);if(!_ae){_ae=1;_ab("onunload",d.windowUnloaded);}};var _b0=0;d.addOnUnload=function(obj,_b1){d._onto(d._unloaders,obj,_b1);if(!_b0){_b0=1;_ab("onbeforeunload",dojo.unloaded);}};})();dojo._initFired=false;dojo._loadInit=function(e){if(dojo._scrollIntervalId){clearInterval(dojo._scrollIntervalId);dojo._scrollIntervalId=0;}if(!dojo._initFired){dojo._initFired=true;if(!dojo.config.afterOnLoad&&window.detachEvent){window.detachEvent("onload",dojo._loadInit);}if(dojo._inFlightCount==0){dojo._modulesLoaded();}}};if(!dojo.config.afterOnLoad){if(document.addEventListener){document.addEventListener("DOMContentLoaded",dojo._loadInit,false);window.addEventListener("load",dojo._loadInit,false);}else{if(window.attachEvent){window.attachEvent("onload",dojo._loadInit);if(!dojo.config.skipIeDomLoaded&&self===self.top){dojo._scrollIntervalId=setInterval(function(){try{if(document.body){document.documentElement.doScroll("left");dojo._loadInit();}}catch(e){}},30);}}}}if(dojo.isIE){try{(function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var _b2=["*","group","roundrect","oval","shape","rect","imagedata","path","textpath","text"],i=0,l=1,s=document.createStyleSheet();if(dojo.isIE> =8){i=1;l=_b2.length;}for(;i 2){return d._hitchArgs.apply(d,arguments);}if(!_bc){_bc=_bb;_bb=null;}if(d.isString(_bc)){_bb=_bb||d.global;if(!_bb[_bc]){throw (["dojo.hitch: scope[\"",_bc,"\"] is null (scope=\"",_bb,"\")"].join(""));}return function(){return _bb[_bc].apply(_bb,arguments||[]);};}return !_bb?_bc:function(){return _bc.apply(_bb,arguments||[]);};};dojo.delegate=dojo._delegate=(function(){function TMP(){};return function(obj,_bd){TMP.prototype=obj;var tmp=new TMP();TMP.prototype=null;if(_bd){d._mixin(tmp,_bd);}return tmp;};})();var _be=function(obj,_bf,_c0){return (_c0||[]).concat(Array.prototype.slice.call(obj,_bf||0));};var _c1=function(obj,_c2,_c3){var arr=_c3||[];for(var x=_c2||0;x end)||i =0;--j){_f7=lin[j].prototype;if(!_f7.hasOwnProperty("declaredClass")){_f7.declaredClass="uniqName_"+(_ed++);}_f8=_f7.declaredClass;if(!_f4.hasOwnProperty(_f8)){_f4[_f8]={count:0,refs:[],cls:lin[j]};++_f5;}rec=_f4[_f8];if(top&&top!==rec){rec.refs.push(top);++top.count;}top=rec;}++top.count;_f3[0].refs.push(top);}while(_f3.length){top=_f3.pop();_f2.push(top.cls);--_f5;while(_f9=top.refs,_f9.length==1){top=_f9[0];if(!top||--top.count){top=0;break;}_f2.push(top.cls);--_f5;}if(top){for(i=0,l=_f9.length;i =0;--i){f=_10e[i];m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,_110?_110[i]:a);}}f=this.postscript;if(f){f.apply(this,args);}};};function _112(ctor,_113){return function(){var a=arguments,t=a,a0=a[0],f;if(!(this instanceof a.callee)){return _111(a);}if(_113){if(a0){f=a0.preamble;if(f){t=f.apply(this,t)||t;}}f=this.preamble;if(f){f.apply(this,t);}}if(ctor){ctor.apply(this,a);}f=this.postscript;if(f){f.apply(this,a);}};};function _114(_115){return function(){var a=arguments,i=0,f,m;if(!(this instanceof a.callee)){return _111(a);}for(;f=_115[i];++i){m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,a);break;}}f=this.postscript;if(f){f.apply(this,a);}};};function _116(name,_117,_118){return function(){var b,m,f,i=0,step=1;if(_118){i=_117.length-1;step=-1;}for(;b=_117[i];i+=step){m=b._meta;f=(m?m.hidden:b.prototype)[name];if(f){f.apply(this,arguments);}}};};function _119(ctor){_ec.prototype=ctor.prototype;var t=new _ec;_ec.prototype=null;return t;};function _111(args){var ctor=args.callee,t=_119(ctor);ctor.apply(t,args);return t;};d.declare=function(_11a,_11b,_11c){if(typeof _11a!="string"){_11c=_11b;_11b=_11a;_11a="";}_11c=_11c||{};var _11d,i,t,ctor,name,_11e,_11f,_120=1,_121=_11b;if(_eb.call(_11b)=="[object Array]"){_11e=_ef(_11b,_11a);t=_11e[0];_120=_11e.length-t;_11b=_11e[_120];}else{_11e=[0];if(_11b){if(_eb.call(_11b)=="[object Function]"){t=_11b._meta;_11e=_11e.concat(t?t.bases:_11b);}else{err("base class is not a callable constructor.",_11a);}}else{if(_11b!==null){err("unknown base class. Did you use dojo.require to pull it in?",_11a);}}}if(_11b){for(i=_120-1;;--i){_11d=_119(_11b);if(!i){break;}t=_11e[i];(t._meta?_105:mix)(_11d,t.prototype);ctor=new Function;ctor.superclass=_11b;ctor.prototype=_11d;_11b=_11d.constructor=ctor;}}else{_11d={};}_108(_11d,_11c);t=_11c.constructor;if(t!==op.constructor){t.nom=_ee;_11d.constructor=t;}for(i=_120-1;i;--i){t=_11e[i]._meta;if(t&&t.chains){_11f=mix(_11f||{},t.chains);}}if(_11d["-chains-"]){_11f=mix(_11f||{},_11d["-chains-"]);}t=!_11f||!_11f.hasOwnProperty(_ee);_11e[0]=ctor=(_11f&&_11f.constructor==="manual")?_114(_11e):(_11e.length==1?_112(_11c.constructor,t):_10d(_11e,t));ctor._meta={bases:_11e,hidden:_11c,chains:_11f,parents:_121,ctor:_11c.constructor};ctor.superclass=_11b&&_11b.prototype;ctor.extend=_10b;ctor.prototype=_11d;_11d.constructor=ctor;_11d.getInherited=_102;_11d.inherited=_fa;_11d.isInstanceOf=_103;if(_11a){_11d.declaredClass=_11a;d.setObject(_11a,ctor);}if(_11f){for(name in _11f){if(_11d[name]&&typeof _11f[name]=="string"&&name!=_ee){t=_11d[name]=_116(name,_11e,_11f[name]==="after");t.nom=name;}}}return ctor;};d.safeMixin=_108;})();}if(!dojo._hasResource["dojo._base.connect"]){dojo._hasResource["dojo._base.connect"]=true;dojo.provide("dojo._base.connect");dojo._listener={getDispatcher:function(){return function(){var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target,r=t&&t.apply(this,arguments),i,lls=[].concat(ls);for(i in lls){if(!(i in ap)){lls[i].apply(this,arguments);}}return r;};},add:function(_122,_123,_124){_122=_122||dojo.global;var f=_122[_123];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=_122[_123]=d;}return f._listeners.push(_124);},remove:function(_125,_126,_127){var f=(_125||dojo.global)[_126];if(f&&f._listeners&&_127--){delete f._listeners[_127];}}};dojo.connect=function(obj,_128,_129,_12a,_12b){var a=arguments,args=[],i=0;args.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];args.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i > =bits;t[x]=bits==4?17*c:c;});t.a=1;return t;};dojo.colorFromArray=function(a,obj){var t=obj||new d.Color();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1;}return t.sanitize();};dojo.colorFromString=function(str,obj){var a=d.Color.named[str];return a&&d.colorFromArray(a,obj)||d.colorFromRgb(str,obj)||d.colorFromHex(str,obj);};})();}if(!dojo._hasResource["dojo._base.window"]){dojo._hasResource["dojo._base.window"]=true;dojo.provide("dojo._base.window");dojo.doc=window["document"]||null;dojo.body=function(){return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];};dojo.setContext=function(_16f,_170){dojo.global=_16f;dojo.doc=_170;};dojo.withGlobal=function(_171,_172,_173,_174){var _175=dojo.global;try{dojo.global=_171;return dojo.withDoc.call(null,_171.document,_172,_173,_174);}finally{dojo.global=_175;}};dojo.withDoc=function(_176,_177,_178,_179){var _17a=dojo.doc,_17b=dojo._bodyLtr,oldQ=dojo.isQuirks;try{dojo.doc=_176;delete dojo._bodyLtr;dojo.isQuirks=dojo.doc.compatMode=="BackCompat";if(_178&&typeof _177=="string"){_177=_178[_177];}return _177.apply(_178,_179||[]);}finally{dojo.doc=_17a;delete dojo._bodyLtr;if(_17b!==undefined){dojo._bodyLtr=_17b;}dojo.isQuirks=oldQ;}};}if(!dojo._hasResource["dojo._base.event"]){dojo._hasResource["dojo._base.event"]=true;dojo.provide("dojo._base.event");(function(){var del=(dojo._event_listener={add:function(node,name,fp){if(!node){return;}name=del._normalizeEventName(name);fp=del._fixCallback(name,fp);if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){var ofp=fp;name=(name=="mouseenter")?"mouseover":"mouseout";fp=function(e){if(!dojo.isDescendant(e.relatedTarget,node)){return ofp.call(this,e);}};}node.addEventListener(name,fp,false);return fp;},remove:function(node,_17c,_17d){if(node){_17c=del._normalizeEventName(_17c);if(!dojo.isIE&&(_17c=="mouseenter"||_17c=="mouseleave")){_17c=(_17c=="mouseenter")?"mouseover":"mouseout";}node.removeEventListener(_17c,_17d,false);}},_normalizeEventName:function(name){return name.slice(0,2)=="on"?name.slice(2):name;},_fixCallback:function(name,fp){return name!="keypress"?fp:function(e){return fp.call(this,del._fixEvent(e,this));};},_fixEvent:function(evt,_17e){switch(evt.type){case "keypress":del._setKeyChar(evt);break;}return evt;},_setKeyChar:function(evt){evt.keyChar=evt.charCode> =32?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}});dojo.fixEvent=function(evt,_17f){return del._fixEvent(evt,_17f);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _180=dojo._listener;dojo._connect=function(obj,_181,_182,_183,_184){var _185=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=_185?(_184?2:1):0,l=[dojo._listener,del,_180][lid];var h=l.add(obj,_181,dojo.hitch(_182,_183));return [obj,_181,h,lid];};dojo._disconnect=function(obj,_186,_187,_188){([dojo._listener,del,_180][_188]).remove(obj,_186,_187);};dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:dojo.isSafari?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:dojo.isMac&&!dojo.isAIR?(dojo.isSafari?91:224):17};var _189=dojo.isMac?"metaKey":"ctrlKey";dojo.isCopyKey=function(e){return e[_189];};if(dojo.isIE <9||(dojo.isIE&&dojo.isQuirks)){dojo.mouseButtons={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_18a){return e.button&_18a;},isLeft:function(e){return e.button&1;},isMiddle:function(e){return e.button&4;},isRight:function(e){return e.button&2;}};}else{dojo.mouseButtons={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,_18b){return e.button==_18b;},isLeft:function(e){return e.button==0;},isMiddle:function(e){return e.button==1;},isRight:function(e){return e.button==2;}};}if(dojo.isIE){var _18c=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};var iel=dojo._listener;var _18d=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners");if(!dojo.config._allow_leaks){_180=iel=dojo._ie_listener={handlers:[],add:function(_18e,_18f,_190){_18e=_18e||dojo.global;var f=_18e[_18f];if(!f||!f[_18d]){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d[_18d]=[];f=_18e[_18f]=d;}return f[_18d].push(ieh.push(_190)-1);},remove:function(_191,_192,_193){var f=(_191||dojo.global)[_192],l=f&&f[_18d];if(f&&l&&_193--){delete ieh[l[_193]];delete l[_193];}}};var ieh=iel.handlers;}dojo.mixin(del,{add:function(node,_194,fp){if(!node){return;}_194=del._normalizeEventName(_194);if(_194=="onkeypress"){var kd=node.onkeydown;if(!kd||!kd[_18d]||!kd._stealthKeydownHandle){var h=del.add(node,"onkeydown",del._stealthKeyDown);kd=node.onkeydown;kd._stealthKeydownHandle=h;kd._stealthKeydownRefs=1;}else{kd._stealthKeydownRefs++;}}return iel.add(node,_194,del._fixCallback(fp));},remove:function(node,_195,_196){_195=del._normalizeEventName(_195);iel.remove(node,_195,_196);if(_195=="onkeypress"){var kd=node.onkeydown;if(--kd._stealthKeydownRefs <=0){iel.remove(node,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle;}}},_normalizeEventName:function(_197){return _197.slice(0,2)!="on"?"on"+_197:_197;},_nop:function(){},_fixEvent:function(evt,_198){if(!evt){var w=_198&&(_198.ownerDocument||_198.document||_198).parentWindow||window;evt=w.event;}if(!evt){return (evt);}evt.target=evt.srcElement;evt.currentTarget=(_198||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _199=((dojo.isIE <6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _19a=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_199.scrollLeft||0)-_19a.x;evt.pageY=evt.clientY+(_199.scrollTop||0)-_19a.y;if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}if(dojo.isIE <9||dojo.isQuirks){evt.stopPropagation=del._stopPropagation;evt.preventDefault=del._preventDefault;}return del._fixKeys(evt);},_fixKeys:function(evt){switch(evt.type){case "keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;del._setKeyChar(evt);break;}return evt;},_stealthKeyDown:function(evt){var kp=evt.currentTarget.onkeypress;if(!kp||!kp[_18d]){return;}var k=evt.keyCode;var _19b=(k!=13||(dojo.isIE> =9&&!dojo.isQuirks))&&k!=32&&k!=27&&(k <48||k> 90)&&(k <96||k> 111)&&(k <186||k> 192)&&(k <219||k> 222);if(_19b||evt.ctrlKey){var c=_19b?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c> 95&&c <106){c-=48;}else{if((!evt.shiftKey)&&(c> =65&&c <=90)){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});kp.call(evt.currentTarget,faux);if(dojo.isIE <9||(dojo.isIE&&dojo.isQuirks)){evt.cancelBubble=faux.cancelBubble;}evt.returnValue=faux.returnValue;_18c(evt,faux.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_18c(this,0);}this.returnValue=false;}});dojo.stopEvent=(dojo.isIE <9||dojo.isQuirks)?function(evt){evt=evt||window.event;del._stopPropagation.call(evt);del._preventDefault.call(evt);}:dojo.stopEvent;}del._synthesizeEvent=function(evt,_19c){var faux=dojo.mixin({},evt,_19c);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,_19d){switch(evt.type){case "keypress":var c=evt.which;if(c==3){c=99;}c=c <41&&!evt.shiftKey?0:c;if(evt.ctrlKey&&!evt.shiftKey&&c> =65&&c <=90){c+=32;}return del._synthesizeEvent(evt,{charCode:c});}return evt;}});}if(dojo.isWebKit){del._add=del.add;del._remove=del.remove;dojo.mixin(del,{add:function(node,_19e,fp){if(!node){return;}var _19f=del._add(node,_19e,fp);if(del._normalizeEventName(_19e)=="keypress"){_19f._stealthKeyDownHandle=del._add(node,"keydown",function(evt){var k=evt.keyCode;var _1a0=k!=13&&k!=32&&(k <48||k> 90)&&(k <96||k> 111)&&(k <186||k> 192)&&(k <219||k> 222);if(_1a0||evt.ctrlKey){var c=_1a0?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c> 95&&c <106){c-=48;}else{if(!evt.shiftKey&&c> =65&&c <=90){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});fp.call(evt.currentTarget,faux);}});}return _19f;},remove:function(node,_1a1,_1a2){if(node){if(_1a2._stealthKeyDownHandle){del._remove(node,"keydown",_1a2._stealthKeyDownHandle);}del._remove(node,_1a1,_1a2);}},_fixEvent:function(evt,_1a3){switch(evt.type){case "keypress":if(evt.faux){return evt;}var c=evt.charCode;c=c> =32?c:0;return del._synthesizeEvent(evt,{charCode:c,faux:true});}return evt;}});}})();if(dojo.isIE){dojo._ieDispatcher=function(args,_1a4){var ap=Array.prototype,h=dojo._ie_listener.handlers,c=args.callee,ls=c[dojo._ieListenersName],t=h[c.target];var r=t&&t.apply(_1a4,args);var lls=[].concat(ls);for(var i in lls){var f=h[lls[i]];if(!(i in ap)&&f){f.apply(_1a4,args);}}return r;};dojo._getIeDispatcher=function(){return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");};dojo._event_listener._fixCallback=function(fp){var f=dojo._event_listener._fixEvent;return function(e){return fp.call(this,f(e,this));};};}}if(!dojo._hasResource["dojo._base.html"]){dojo._hasResource["dojo._base.html"]=true;dojo.provide("dojo._base.html");try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}if(dojo.isIE){dojo.byId=function(id,doc){if(typeof id!="string"){return id;}var _1a5=doc||dojo.doc,te=_1a5.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te;}else{var eles=_1a5.all[id];if(!eles||eles.nodeName){eles=[eles];}var i=0;while((te=eles[i++])){if((te.attributes&&te.attributes.id&&te.attributes.id.value==id)||te.id==id){return te;}}}};}else{dojo.byId=function(id,doc){return ((typeof id=="string")?(doc||dojo.doc).getElementById(id):id)||null;};}(function(){var d=dojo;var byId=d.byId;var _1a6=null,_1a7;d.addOnWindowUnload(function(){_1a6=null;});dojo._destroyElement=dojo.destroy=function(node){node=byId(node);try{var doc=node.ownerDocument;if(!_1a6||_1a7!=doc){_1a6=doc.createElement("div");_1a7=doc;}_1a6.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_1a6.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_1a8){try{node=byId(node);_1a8=byId(_1a8);while(node){if(node==_1a8){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_1a9){node=byId(node);if(d.isMozilla){node.style.MozUserSelect=_1a9?"":"none";}else{if(d.isKhtml||d.isWebKit){node.style.KhtmlUserSelect=_1a9?"auto":"none";}else{if(d.isIE){var v=(node.unselectable=_1a9?"":"on");d.query("*",node).forEach("item.unselectable = '"+v+"'");}}}};var _1aa=function(node,ref){var _1ab=ref.parentNode;if(_1ab){_1ab.insertBefore(node,ref);}};var _1ac=function(node,ref){var _1ad=ref.parentNode;if(_1ad){if(_1ad.lastChild==ref){_1ad.appendChild(node);}else{_1ad.insertBefore(node,ref.nextSibling);}}};dojo.place=function(node,_1ae,_1af){_1ae=byId(_1ae);if(typeof node=="string"){node=/^\s* td",node).forEach(function(i){d._setOpacity(i,_1b6);});}return _1b6;}:function(node,_1b8){return node.style.opacity=_1b8;};var _1b9={left:true,top:true};var _1ba=/margin|padding|width|height|max|min|offset/;var _1bb=function(node,type,_1bc){type=type.toLowerCase();if(d.isIE){if(_1bc=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_1bc){case 700:return "bold";case 400:default:return "normal";}}}if(!(type in _1b9)){_1b9[type]=_1ba.test(type);}return _1b9[type]?px(node,_1bc):_1bc;};var _1bd=d.isIE?"styleFloat":"cssFloat",_1be={"cssFloat":_1bd,"styleFloat":_1bd,"float":_1bd};dojo.style=function(node,_1bf,_1c0){var n=byId(node),args=arguments.length,op=(_1bf=="opacity");_1bf=_1be[_1bf]||_1bf;if(args==3){return op?d._setOpacity(n,_1c0):n.style[_1bf]=_1c0;}if(args==2&&op){return d._getOpacity(n);}var s=gcs(n);if(args==2&&typeof _1bf!="string"){for(var x in _1bf){d.style(node,x,_1bf[x]);}return s;}return (args==1)?s:_1bb(n,_1bf,s[_1bf]||n.style[_1bf]);};dojo._getPadExtents=function(n,_1c1){var s=_1c1||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop);return {l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)};};dojo._getBorderExtents=function(n,_1c2){var ne="none",s=_1c2||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0);return {l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)};};dojo._getPadBorderExtents=function(n,_1c3){var s=_1c3||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s);return {l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h};};dojo._getMarginExtents=function(n,_1c4){var s=_1c4||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);if(d.isWebKit&&(s.position!="absolute")){r=l;}return {l:l,t:t,w:l+r,h:t+b};};dojo._getMarginBox=function(node,_1c5){var s=_1c5||gcs(node),me=d._getMarginExtents(node,s);var l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode;if(d.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st;}else{if(p&&p.style){var pcs=gcs(p);if(pcs.overflow!="visible"){var be=d._getBorderExtents(p,pcs);l+=be.l,t+=be.t;}}}}else{if(d.isOpera||(d.isIE> 7&&!d.isQuirks)){if(p){be=d._getBorderExtents(p);l-=be.l;t-=be.t;}}}return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};};dojo._getMarginSize=function(node,_1c6){node=byId(node);var me=d._getMarginExtents(node,_1c6||gcs(node));var size=node.getBoundingClientRect();return {w:(size.right-size.left)+me.w,h:(size.bottom-size.top)+me.h};};dojo._getContentBox=function(node,_1c7){var s=_1c7||gcs(node),pe=d._getPadExtents(node,s),be=d._getBorderExtents(node,s),w=node.clientWidth,h;if(!w){w=node.offsetWidth,h=node.offsetHeight;}else{h=node.clientHeight,be.w=be.h=0;}if(d.isOpera){pe.l+=be.l;pe.t+=be.t;}return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};};dojo._getBorderBox=function(node,_1c8){var s=_1c8||gcs(node),pe=d._getPadExtents(node,s),cb=d._getContentBox(node,s);return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h};};dojo._setBox=function(node,l,t,w,h,u){u=u||"px";var s=node.style;if(!isNaN(l)){s.left=l+u;}if(!isNaN(t)){s.top=t+u;}if(w> =0){s.width=w+u;}if(h> =0){s.height=h+u;}};dojo._isButtonTag=function(node){return node.tagName=="BUTTON"||node.tagName=="INPUT"&&(node.getAttribute("type")||"").toUpperCase()=="BUTTON";};dojo._usesBorderBox=function(node){var n=node.tagName;return d.boxModel=="border-box"||n=="TABLE"||d._isButtonTag(node);};dojo._setContentSize=function(node,_1c9,_1ca,_1cb){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,_1cb);if(_1c9> =0){_1c9+=pb.w;}if(_1ca> =0){_1ca+=pb.h;}}d._setBox(node,NaN,NaN,_1c9,_1ca);};dojo._setMarginBox=function(node,_1cc,_1cd,_1ce,_1cf,_1d0){var s=_1d0||gcs(node),bb=d._usesBorderBox(node),pb=bb?_1d1:d._getPadBorderExtents(node,s);if(d.isWebKit){if(d._isButtonTag(node)){var ns=node.style;if(_1ce> =0&&!ns.width){ns.width="4px";}if(_1cf> =0&&!ns.height){ns.height="4px";}}}var mb=d._getMarginExtents(node,s);if(_1ce> =0){_1ce=Math.max(_1ce-pb.w-mb.w,0);}if(_1cf> =0){_1cf=Math.max(_1cf-pb.h-mb.h,0);}d._setBox(node,_1cc,_1cd,_1ce,_1cf);};var _1d1={l:0,t:0,w:0,h:0};dojo.marginBox=function(node,box){var n=byId(node),s=gcs(n),b=box;return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s);};dojo.contentBox=function(node,box){var n=byId(node),s=gcs(n),b=box;return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);};var _1d2=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_1d3=0,_1d4=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_1d3+=val-0;if(node==_1d4){break;}}node=node.parentNode;}return _1d3;};dojo._docScroll=function(){var n=d.global;return "pageXOffset" in n?{x:n.pageXOffset,y:n.pageYOffset}:(n=d.isQuirks?d.doc.body:d.doc.documentElement,{x:d._fixIeBiDiScrollLeft(n.scrollLeft||0),y:n.scrollTop||0});};dojo._isBodyLtr=function(){return "_bodyLtr" in d?d._bodyLtr:d._bodyLtr=(d.body().dir||d.doc.documentElement.dir||"ltr").toLowerCase()=="ltr";};dojo._getIeDocumentElementOffset=function(){var de=d.doc.documentElement;if(d.isIE <8){var r=de.getBoundingClientRect();var l=r.left,t=r.top;if(d.isIE <7){l+=de.clientLeft;t+=de.clientTop;}return {x:l <0?0:l,y:t <0?0:t};}else{return {x:0,y:0};}};dojo._fixIeBiDiScrollLeft=function(_1d5){var ie=d.isIE;if(ie&&!d._isBodyLtr()){var qk=d.isQuirks,de=qk?d.doc.body:d.doc.documentElement;if(ie==6&&!qk&&d.global.frameElement&&de.scrollHeight> de.clientHeight){_1d5+=de.clientLeft;}return (ie <8||qk)?(_1d5+de.clientWidth-de.scrollWidth):-_1d5;}return _1d5;};dojo._abs=dojo.position=function(node,_1d6){node=byId(node);var db=d.body(),dh=db.parentNode,ret=node.getBoundingClientRect();ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};if(d.isIE){var _1d7=d._getIeDocumentElementOffset();ret.x-=_1d7.x+(d.isQuirks?db.clientLeft+db.offsetLeft:0);ret.y-=_1d7.y+(d.isQuirks?db.clientTop+db.offsetTop:0);}else{if(d.isFF==3){var cs=gcs(dh);ret.x-=px(dh,cs.marginLeft)+px(dh,cs.borderLeftWidth);ret.y-=px(dh,cs.marginTop)+px(dh,cs.borderTopWidth);}}if(_1d6){var _1d8=d._docScroll();ret.x+=_1d8.x;ret.y+=_1d8.y;}return ret;};dojo.coords=function(node,_1d9){var n=byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d.position(n,_1d9);mb.x=abs.x;mb.y=abs.y;return mb;};var _1da={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},_1db={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},_1dc={innerHTML:1,className:1,htmlFor:d.isIE,value:1};var _1dd=function(name){return _1db[name.toLowerCase()]||name;};var _1de=function(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified;};dojo.hasAttr=function(node,name){var lc=name.toLowerCase();return _1dc[_1da[lc]||name]||_1de(byId(node),_1db[lc]||name);};var _1df={},_1e0=0,_1e1=dojo._scopeName+"attrid",_1e2={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};dojo.attr=function(node,name,_1e3){node=byId(node);var args=arguments.length,prop;if(args==2&&typeof name!="string"){for(var x in name){d.attr(node,x,name[x]);}return node;}var lc=name.toLowerCase(),_1e4=_1da[lc]||name,_1e5=_1dc[_1e4],_1e6=_1db[lc]||name;if(args==3){do{if(_1e4=="style"&&typeof _1e3!="string"){d.style(node,_1e3);break;}if(_1e4=="innerHTML"){if(d.isIE&&node.tagName.toLowerCase() in _1e2){d.empty(node);node.appendChild(d._toDom(_1e3,node.ownerDocument));}else{node[_1e4]=_1e3;}break;}if(d.isFunction(_1e3)){var _1e7=d.attr(node,_1e1);if(!_1e7){_1e7=_1e0++;d.attr(node,_1e1,_1e7);}if(!_1df[_1e7]){_1df[_1e7]={};}var h=_1df[_1e7][_1e4];if(h){d.disconnect(h);}else{try{delete node[_1e4];}catch(e){}}_1df[_1e7][_1e4]=d.connect(node,_1e4,_1e3);break;}if(_1e5||typeof _1e3=="boolean"){node[_1e4]=_1e3;break;}node.setAttribute(_1e6,_1e3);}while(false);return node;}_1e3=node[_1e4];if(_1e5&&typeof _1e3!="undefined"){return _1e3;}if(_1e4!="href"&&(typeof _1e3=="boolean"||d.isFunction(_1e3))){return _1e3;}return _1de(node,_1e6)?node.getAttribute(_1e6):null;};dojo.removeAttr=function(node,name){byId(node).removeAttribute(_1dd(name));};dojo.getNodeProp=function(node,name){node=byId(node);var lc=name.toLowerCase(),_1e8=_1da[lc]||name;if((_1e8 in node)&&_1e8!="href"){return node[_1e8];}var _1e9=_1db[lc]||name;return _1de(node,_1e9)?node.getAttribute(_1e9):null;};dojo.create=function(tag,_1ea,_1eb,pos){var doc=d.doc;if(_1eb){_1eb=byId(_1eb);doc=_1eb.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_1ea){d.attr(tag,_1ea);}if(_1eb){d.place(tag,_1eb,pos);}return tag;};d.empty=d.isIE?function(node){node=byId(node);for(var c;c=node.lastChild;){d.destroy(c);}}:function(node){byId(node).innerHTML="";};var _1ec={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},_1ed=/ <\s*([\w\:]+)/,_1ee={},_1ef=0,_1f0="__"+d._scopeName+"ToDomId";for(var _1f1 in _1ec){if(_1ec.hasOwnProperty(_1f1)){var tw=_1ec[_1f1];tw.pre=_1f1=="option"?" \r\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"valueNode"}),_onClick:function(e){if(this.disabled){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _73a=dijit.byNode(node);if(_73a&&typeof _73a._onSubmit=="function"){_73a._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_73b){if(_73b&&(!this.params||!("label" in this.params))){this.set("label",_73b.innerHTML);}},_setShowLabelAttr:function(val){if(this.containerNode){dojo.toggleClass(this.containerNode,"dijitDisplayNone",!val);}this._set("showLabel",val);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_73c){dojo.deprecated("dijit.form.Button.setLabel() is deprecated. Use set('label', ...) instead.","","2.0");this.set("label",_73c);},_setLabelAttr:function(_73d){this._set("label",_73d);this.containerNode.innerHTML=_73d;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _73e=this.iconClass||"dijitNoIcon",_73f=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_73f,_73e);this._set("iconClass",val);}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container,dijit._HasDropDown],{baseClass:"dijitDropDownButton",templateString:dojo.cache("dijit.form","templates/DropDownButton.html"," \r\n"),_fillContent:function(){if(this.srcNodeRef){var _740=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_740[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _741=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_741);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _742=this.dropDown;return (!!_742&&(!_742.href||_742.isLoaded));},loadDropDown:function(){var _743=this.dropDown;if(!_743){return;}if(!this.isLoaded()){var _744=dojo.connect(_743,"onLoad",this,function(){dojo.disconnect(_744);this.openDropDown();});_743.refresh();}else{this.openDropDown();}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown;}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:dojo.cache("dijit.form","templates/ComboButton.html","
\r\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{"buttonNode":"dijitButtonNode","titleNode":"dijitButtonContents","_popupStateNode":"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){dijit.focus(this._popupStateNode);dojo.stopEvent(evt);}},_onArrowKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){dijit.focus(this.titleNode);dojo.stopEvent(evt);}},focus:function(_745){if(!this.disabled){dijit.focus(_745=="start"?this.titleNode:this._popupStateNode);}}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.set("checked",!this.checked);},_setCheckedAttr:function(_746,_747){this._set("checked",_746);dojo.attr(this.focusNode||this.domNode,"checked",_746);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_746);this._handleOnChange(_746,_747);},setChecked:function(_748){dojo.deprecated("setChecked("+_748+") is deprecated. Use set('checked',"+_748+") instead.","","2.0");this.set("checked",_748);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(str,_749){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_749&&_749.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_74a){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i =d||a*Math.pow(10,p+1) <5){d=0;}return _760(v,p,m)+(v> 0?d:-d);};})();}dojo.number._formatAbsolute=function(_761,_762,_763){_763=_763||{};if(_763.places===true){_763.places=0;}if(_763.places===Infinity){_763.places=6;}var _764=_762.split("."),_765=typeof _763.places=="string"&&_763.places.indexOf(","),_766=_763.places;if(_765){_766=_763.places.substring(_765+1);}else{if(!(_766> =0)){_766=(_764[1]||[]).length;}}if(!(_763.round <0)){_761=dojo.number.round(_761,_766,_763.round);}var _767=String(Math.abs(_761)).split("."),_768=_767[1]||"";if(_764[1]||_763.places){if(_765){_763.places=_763.places.substring(0,_765);}var pad=_763.places!==undefined?_763.places:(_764[1]&&_764[1].lastIndexOf("0")+1);if(pad> _768.length){_767[1]=dojo.string.pad(_768,pad,"0",true);}if(_766 <_768.length){_767[1]=_768.substr(0,_766);}}else{if(_767[1]){_767.pop();}}var _769=_764[0].replace(",","");pad=_769.indexOf("0");if(pad!=-1){pad=_769.length-pad;if(pad> _767[0].length){_767[0]=dojo.string.pad(_767[0],pad);}if(_769.indexOf("#")==-1){_767[0]=_767[0].substr(_767[0].length-pad);}}var _76a=_764[0].lastIndexOf(","),_76b,_76c;if(_76a!=-1){_76b=_764[0].length-_76a-1;var _76d=_764[0].substr(0,_76a);_76a=_76d.lastIndexOf(",");if(_76a!=-1){_76c=_76d.length-_76a-1;}}var _76e=[];for(var _76f=_767[0];_76f;){var off=_76f.length-_76b;_76e.push((off> 0)?_76f.substr(off):_76f);_76f=(off> 0)?_76f.slice(0,off):"";if(_76c){_76b=_76c;delete _76c;}}_767[0]=_76e.reverse().join(_763.group||",");return _767.join(_763.decimal||".");};dojo.number.regexp=function(_770){return dojo.number._parseInfo(_770).regexp;};dojo.number._parseInfo=function(_771){_771=_771||{};var _772=dojo.i18n.normalizeLocale(_771.locale),_773=dojo.i18n.getLocalization("dojo.cldr","number",_772),_774=_771.pattern||_773[(_771.type||"decimal")+"Format"],_775=_773.group,_776=_773.decimal,_777=1;if(_774.indexOf("%")!=-1){_777/=100;}else{if(_774.indexOf("‰")!=-1){_777/=1000;}else{var _778=_774.indexOf("¤")!=-1;if(_778){_775=_773.currencyGroup||_775;_776=_773.currencyDecimal||_776;}}}var _779=_774.split(";");if(_779.length==1){_779.push("-"+_779[0]);}var re=dojo.regexp.buildGroupRE(_779,function(_77a){_77a="(?:"+dojo.regexp.escapeString(_77a,".")+")";return _77a.replace(dojo.number._numberPatternRE,function(_77b){var _77c={signed:false,separator:_771.strict?_775:[_775,""],fractional:_771.fractional,decimal:_776,exponent:false},_77d=_77b.split("."),_77e=_771.places;if(_77d.length==1&&_777!=1){_77d[1]="###";}if(_77d.length==1||_77e===0){_77c.fractional=false;}else{if(_77e===undefined){_77e=_771.pattern?_77d[1].lastIndexOf("0")+1:Infinity;}if(_77e&&_771.fractional==undefined){_77c.fractional=true;}if(!_771.places&&(_77e <_77d[1].length)){_77e+=","+_77d[1].length;}_77c.places=_77e;}var _77f=_77d[0].split(",");if(_77f.length> 1){_77c.groupSize=_77f.pop().length;if(_77f.length> 1){_77c.groupSize2=_77f.pop().length;}}return "("+dojo.number._realNumberRegexp(_77c)+")";});},true);if(_778){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_780,_781,_782,_783){var prop=["symbol","currency","displayName"][_782.length-1],_784=dojo.regexp.escapeString(_771[prop]||_771.currency||"");_781=_781?"[\\s\\xa0]":"";_783=_783?"[\\s\\xa0]":"";if(!_771.strict){if(_781){_781+="*";}if(_783){_783+="*";}return "(?:"+_781+_784+_783+")?";}return _781+_784+_783;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_775,decimal:_776,factor:_777};};dojo.number.parse=function(_785,_786){var info=dojo.number._parseInfo(_786),_787=(new RegExp("^"+info.regexp+"$")).exec(_785);if(!_787){return NaN;}var _788=_787[1];if(!_787[1]){if(!_787[2]){return NaN;}_788=_787[2];info.factor*=-1;}_788=_788.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return _788*info.factor;};dojo.number._realNumberRegexp=function(_789){_789=_789||{};if(!("places" in _789)){_789.places=Infinity;}if(typeof _789.decimal!="string"){_789.decimal=".";}if(!("fractional" in _789)||/^0/.test(_789.places)){_789.fractional=[true,false];}if(!("exponent" in _789)){_789.exponent=[true,false];}if(!("eSigned" in _789)){_789.eSigned=[true,false];}var _78a=dojo.number._integerRegexp(_789),_78b=dojo.regexp.buildGroupRE(_789.fractional,function(q){var re="";if(q&&(_789.places!==0)){re="\\"+_789.decimal;if(_789.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_789.places+"}";}}return re;},true);var _78c=dojo.regexp.buildGroupRE(_789.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_789.eSigned})+")";}return "";});var _78d=_78a+_78b;if(_78b){_78d="(?:(?:"+_78d+")|(?:"+_78b+"))";}return _78d+_78c;};dojo.number._integerRegexp=function(_78e){_78e=_78e||{};if(!("signed" in _78e)){_78e.signed=[true,false];}if(!("separator" in _78e)){_78e.separator="";}else{if(!("groupSize" in _78e)){_78e.groupSize=3;}}var _78f=dojo.regexp.buildGroupRE(_78e.signed,function(q){return q?"[-+]":"";},true);var _790=dojo.regexp.buildGroupRE(_78e.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_78e.groupSize,grp2=_78e.groupSize2;if(grp2){var _791="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)> 0)?"(?:"+_791+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_791;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _78f+_790;};}if(!dojo._hasResource["dijit.form.HorizontalSlider"]){dojo._hasResource["dijit.form.HorizontalSlider"]=true;dojo.provide("dijit.form.HorizontalSlider");dojo.declare("dijit.form.HorizontalSlider",[dijit.form._FormValueWidget,dijit._Container],{templateString:dojo.cache("dijit.form","templates/HorizontalSlider.html","
-
+
\r\n"),value:0,showButtons:true,minimum:0,maximum:100,discreteValues:Infinity,pageIncrement:2,clickSelect:true,slideDuration:dijit.defaultDuration,widgetsInTemplate:true,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{id:""}),baseClass:"dijitSlider",cssStateNodes:{incrementButton:"dijitSliderIncrementButton",decrementButton:"dijitSliderDecrementButton",focusNode:"dijitSliderThumb"},_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_startingPixelCount:"l",_handleOffsetCoord:"left",_progressPixelSize:"width",_onKeyUp:function(e){if(this.disabled||this.readOnly||e.altKey||e.ctrlKey||e.metaKey){return;}this._setValueAttr(this.value,true);},_onKeyPress:function(e){if(this.disabled||this.readOnly||e.altKey||e.ctrlKey||e.metaKey){return;}switch(e.charOrCode){case dojo.keys.HOME:this._setValueAttr(this.minimum,false);break;case dojo.keys.END:this._setValueAttr(this.maximum,false);break;case ((this._descending||this.isLeftToRight())?dojo.keys.RIGHT_ARROW:dojo.keys.LEFT_ARROW):case (this._descending===false?dojo.keys.DOWN_ARROW:dojo.keys.UP_ARROW):case (this._descending===false?dojo.keys.PAGE_DOWN:dojo.keys.PAGE_UP):this.increment(e);break;case ((this._descending||this.isLeftToRight())?dojo.keys.LEFT_ARROW:dojo.keys.RIGHT_ARROW):case (this._descending===false?dojo.keys.UP_ARROW:dojo.keys.DOWN_ARROW):case (this._descending===false?dojo.keys.PAGE_UP:dojo.keys.PAGE_DOWN):this.decrement(e);break;default:return;}dojo.stopEvent(e);},_onHandleClick:function(e){if(this.disabled||this.readOnly){return;}if(!dojo.isIE){dijit.focus(this.sliderHandle);}dojo.stopEvent(e);},_isReversed:function(){return !this.isLeftToRight();},_onBarClick:function(e){if(this.disabled||this.readOnly||!this.clickSelect){return;}dijit.focus(this.sliderHandle);dojo.stopEvent(e);var _792=dojo.position(this.sliderBarContainer,true);var _793=e[this._mousePixelCoord]-_792[this._startingPixelCoord];this._setPixelValue(this._isReversed()?(_792[this._pixelCount]-_793):_793,_792[this._pixelCount],true);this._movable.onMouseDown(e);},_setPixelValue:function(_794,_795,_796){if(this.disabled||this.readOnly){return;}_794=_794 <0?0:_795 <_794?_795:_794;var _797=this.discreteValues;if(_797 <=1||_797==Infinity){_797=_795;}_797--;var _798=_795/_797;var _799=Math.round(_794/_798);this._setValueAttr((this.maximum-this.minimum)*_799/_797+this.minimum,_796);},_setValueAttr:function(_79a,_79b){this._set("value",_79a);this.valueNode.value=_79a;dijit.setWaiState(this.focusNode,"valuenow",_79a);this.inherited(arguments);var _79c=(_79a-this.minimum)/(this.maximum-this.minimum);var _79d=(this._descending===false)?this.remainingBar:this.progressBar;var _79e=(this._descending===false)?this.progressBar:this.remainingBar;if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}if(_79b&&this.slideDuration> 0&&_79d.style[this._progressPixelSize]){var _79f=this;var _7a0={};var _7a1=parseFloat(_79d.style[this._progressPixelSize]);var _7a2=this.slideDuration*(_79c-_7a1/100);if(_7a2==0){return;}if(_7a2 <0){_7a2=0-_7a2;}_7a0[this._progressPixelSize]={start:_7a1,end:_79c*100,units:"%"};this._inProgressAnim=dojo.animateProperty({node:_79d,duration:_7a2,onAnimate:function(v){_79e.style[_79f._progressPixelSize]=(100-parseFloat(v[_79f._progressPixelSize]))+"%";},onEnd:function(){delete _79f._inProgressAnim;},properties:_7a0});this._inProgressAnim.play();}else{_79d.style[this._progressPixelSize]=(_79c*100)+"%";_79e.style[this._progressPixelSize]=((1-_79c)*100)+"%";}},_bumpValue:function(_7a3,_7a4){if(this.disabled||this.readOnly){return;}var s=dojo.getComputedStyle(this.sliderBarContainer);var c=dojo._getContentBox(this.sliderBarContainer,s);var _7a5=this.discreteValues;if(_7a5 <=1||_7a5==Infinity){_7a5=c[this._pixelCount];}_7a5--;var _7a6=(this.value-this.minimum)*_7a5/(this.maximum-this.minimum)+_7a3;if(_7a6 <0){_7a6=0;}if(_7a6> _7a5){_7a6=_7a5;}_7a6=_7a6*(this.maximum-this.minimum)/_7a5+this.minimum;this._setValueAttr(_7a6,_7a4);},_onClkBumper:function(val){if(this.disabled||this.readOnly||!this.clickSelect){return;}this._setValueAttr(val,true);},_onClkIncBumper:function(){this._onClkBumper(this._descending===false?this.minimum:this.maximum);},_onClkDecBumper:function(){this._onClkBumper(this._descending===false?this.maximum:this.minimum);},decrement:function(e){this._bumpValue(e.charOrCode==dojo.keys.PAGE_DOWN?-this.pageIncrement:-1);},increment:function(e){this._bumpValue(e.charOrCode==dojo.keys.PAGE_UP?this.pageIncrement:1);},_mouseWheeled:function(evt){dojo.stopEvent(evt);var _7a7=!dojo.isMozilla;var _7a8=evt[(_7a7?"wheelDelta":"detail")]*(_7a7?1:-1);this._bumpValue(_7a8 <0?-1:1,true);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_7a9){if(this[_7a9.container]!=this.containerNode){this[_7a9.container].appendChild(_7a9.domNode);}},this);this.inherited(arguments);},_typematicCallback:function(_7aa,_7ab,e){if(_7aa==-1){this._setValueAttr(this.value,true);}else{this[(_7ab==(this._descending?this.incrementButton:this.decrementButton))?"decrement":"increment"](e);}},buildRendering:function(){this.inherited(arguments);if(this.showButtons){this.incrementButton.style.display="";this.decrementButton.style.display="";}var _7ac=dojo.query("label[for=\""+this.id+"\"]");if(_7ac.length){_7ac[0].id=(this.id+"_label");dijit.setWaiState(this.focusNode,"labelledby",_7ac[0].id);}dijit.setWaiState(this.focusNode,"valuemin",this.minimum);dijit.setWaiState(this.focusNode,"valuemax",this.maximum);},postCreate:function(){this.inherited(arguments);if(this.showButtons){this._connects.push(dijit.typematic.addMouseListener(this.decrementButton,this,"_typematicCallback",25,500));this._connects.push(dijit.typematic.addMouseListener(this.incrementButton,this,"_typematicCallback",25,500));}this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");var _7ad=dojo.declare(dijit.form._SliderMover,{widget:this});this._movable=new dojo.dnd.Moveable(this.sliderHandle,{mover:_7ad});this._layoutHackIE7();},destroy:function(){this._movable.destroy();if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}this._supportingWidgets=dijit.findWidgets(this.domNode);this.inherited(arguments);}});dojo.declare("dijit.form._SliderMover",dojo.dnd.Mover,{onMouseMove:function(e){var _7ae=this.widget;var _7af=_7ae._abspos;if(!_7af){_7af=_7ae._abspos=dojo.position(_7ae.sliderBarContainer,true);_7ae._setPixelValue_=dojo.hitch(_7ae,"_setPixelValue");_7ae._isReversed_=_7ae._isReversed();}var _7b0=e.touches?e.touches[0]:e,_7b1=_7b0[_7ae._mousePixelCoord]-_7af[_7ae._startingPixelCoord];_7ae._setPixelValue_(_7ae._isReversed_?(_7af[_7ae._pixelCount]-_7b1):_7b1,_7af[_7ae._pixelCount],false);},destroy:function(e){dojo.dnd.Mover.prototype.destroy.apply(this,arguments);var _7b2=this.widget;_7b2._abspos=null;_7b2._setValueAttr(_7b2.value,true);}});}if(!dojo._hasResource["dijit.form.VerticalSlider"]){dojo._hasResource["dijit.form.VerticalSlider"]=true;dojo.provide("dijit.form.VerticalSlider");dojo.declare("dijit.form.VerticalSlider",dijit.form.HorizontalSlider,{templateString:dojo.cache("dijit.form","templates/VerticalSlider.html","
+
-
\r\n"),_mousePixelCoord:"pageY",_pixelCount:"h",_startingPixelCoord:"y",_startingPixelCount:"t",_handleOffsetCoord:"top",_progressPixelSize:"height",_descending:true,_isReversed:function(){return this._descending;}});}if(!dojo._hasResource["dijit.form.HorizontalRule"]){dojo._hasResource["dijit.form.HorizontalRule"]=true;dojo.provide("dijit.form.HorizontalRule");dojo.declare("dijit.form.HorizontalRule",[dijit._Widget,dijit._Templated],{templateString:"
",count:3,container:"containerNode",ruleStyle:"",_positionPrefix:"
",_genHTML:function(pos,ndx){return this._positionPrefix+pos+this._positionSuffix+this.ruleStyle+this._suffix;},_isHorizontal:true,buildRendering:function(){this.inherited(arguments);var _7b3;if(this.count==1){_7b3=this._genHTML(50,0);}else{var i;var _7b4=100/(this.count-1);if(!this._isHorizontal||this.isLeftToRight()){_7b3=this._genHTML(0,0);for(i=1;i ",_positionPrefix:"
",labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:"
",_suffix:"
",_calcPosition:function(pos){return pos;},_genHTML:function(pos,ndx){return this._positionPrefix+this._calcPosition(pos)+this._positionSuffix+this.labelStyle+this._labelPrefix+this.labels[ndx]+this._suffix;},getLabels:function(){var _7b5=this.labels;if(!_7b5.length){_7b5=dojo.query("> li",this.srcNodeRef).map(function(node){return String(node.innerHTML);});}this.srcNodeRef.innerHTML="";if(!_7b5.length&&this.count> 1){var _7b6=this.minimum;var inc=(this.maximum-_7b6)/(this.count-1);for(var i=0;i =(this.count-this.numericMargin))?"":dojo.number.format(_7b6,this.constraints));_7b6+=inc;}}return _7b5;},postMixInProperties:function(){this.inherited(arguments);this.labels=this.getLabels();this.count=this.labels.length;}});}if(!dojo._hasResource["dijit.form.VerticalRuleLabels"]){dojo._hasResource["dijit.form.VerticalRuleLabels"]=true;dojo.provide("dijit.form.VerticalRuleLabels");dojo.declare("dijit.form.VerticalRuleLabels",dijit.form.HorizontalRuleLabels,{templateString:"
",_positionPrefix:"
",_calcPosition:function(pos){return 100-pos;},_isHorizontal:false});}if(!dojo._hasResource["dojox.xml.parser"]){dojo._hasResource["dojox.xml.parser"]=true;dojo.provide("dojox.xml.parser");dojox.xml.parser.parse=function(str,_7b7){var _7b8=dojo.doc;var doc;_7b7=_7b7||"text/xml";if(str&&dojo.trim(str)&&"DOMParser" in dojo.global){var _7b9=new DOMParser();doc=_7b9.parseFromString(str,_7b7);var de=doc.documentElement;var _7ba="http://web.archive.org/newlayout/xml/parsererror.xml";if(de.nodeName=="parsererror"&&de.namespaceURI==_7ba){var _7bb=de.getElementsByTagNameNS(_7ba,"sourcetext")[0];if(_7bb){_7bb=_7bb.firstChild.data;}throw new Error("Error parsing text "+de.firstChild.data+" \n"+_7bb);}return doc;}else{if("ActiveXObject" in dojo.global){var ms=function(n){return "MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];dojo.some(dp,function(p){try{doc=new ActiveXObject(p);}catch(e){return false;}return true;});if(str&&doc){doc.async=false;doc.loadXML(str);var pe=doc.parseError;if(pe.errorCode!==0){throw new Error("Line: "+pe.line+"\n"+"Col: "+pe.linepos+"\n"+"Reason: "+pe.reason+"\n"+"Error Code: "+pe.errorCode+"\n"+"Source: "+pe.srcText);}}if(doc){return doc;}}else{if(_7b8.implementation&&_7b8.implementation.createDocument){if(str&&dojo.trim(str)&&_7b8.createElement){var tmp=_7b8.createElement("xml");tmp.innerHTML=str;var _7bc=_7b8.implementation.createDocument("foo","",null);dojo.forEach(tmp.childNodes,function(_7bd){_7bc.importNode(_7bd,true);});return _7bc;}else{return _7b8.implementation.createDocument("","",null);}}}}return null;};dojox.xml.parser.textContent=function(node,text){if(arguments.length> 1){var _7be=node.ownerDocument||dojo.doc;dojox.xml.parser.replaceChildren(node,_7be.createTextNode(text));return text;}else{if(node.textContent!==undefined){return node.textContent;}var _7bf="";if(node){dojo.forEach(node.childNodes,function(_7c0){switch(_7c0.nodeType){case 1:case 5:_7bf+=dojox.xml.parser.textContent(_7c0);break;case 3:case 2:case 4:_7bf+=_7c0.nodeValue;}});}return _7bf;}};dojox.xml.parser.replaceChildren=function(node,_7c1){var _7c2=[];if(dojo.isIE){dojo.forEach(node.childNodes,function(_7c3){_7c2.push(_7c3);});}dojox.xml.parser.removeChildren(node);dojo.forEach(_7c2,dojo.destroy);if(!dojo.isArray(_7c1)){node.appendChild(_7c1);}else{dojo.forEach(_7c1,function(_7c4){node.appendChild(_7c4);});}};dojox.xml.parser.removeChildren=function(node){var _7c5=node.childNodes.length;while(node.hasChildNodes()){node.removeChild(node.firstChild);}return _7c5;};dojox.xml.parser.innerXML=function(node){if(node.innerXML){return node.innerXML;}else{if(node.xml){return node.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(node);}}}return null;};}if(!dojo._hasResource["esri.layers.dynamic"]){dojo._hasResource["esri.layers.dynamic"]=true;dojo.provide("esri.layers.dynamic");dojo.declare("esri.layers.DynamicMapServiceLayer",esri.layers.Layer,{constructor:function(url,_7c6){this.useMapTime=(_7c6&&_7c6.hasOwnProperty("useMapTime"))?(!!_7c6.useMapTime):true;var _7c7=dojo.hitch;this._exportMapImageHandler=_7c7(this,this._exportMapImageHandler);this._imgSrcFunc=_7c7(this,this._imgSrcFunc);this._divAlphaImageFunc=_7c7(this,this._divAlphaImageFunc);this._tileLoadHandler=_7c7(this,this._tileLoadHandler);this._tileErrorHandler=_7c7(this,this._tileErrorHandler);},opacity:1,isPNG32:false,_setMap:function(map,_7c8,_7c9){this._map=map;var d=(this._div=dojo.create("div",null,_7c8)),_7ca=esri._css.names,css={position:"absolute",width:map.width+"px",height:map.height+"px",overflow:"visible",opacity:this.opacity},isIE=dojo.isIE,_7cb=dojo.connect,vd=map.__visibleDelta;if(isIE&&isIE> 7){delete css.opacity;}if(map.navigationMode==="css-transforms"){css[_7ca.transform]=esri._css.translate(vd.x,vd.y);dojo.style(d,css);this._onScaleHandler_connect=_7cb(map,"onScale",this,this._onScaleHandler);this._left=vd.x;this._top=vd.y;}else{css.left="0px";css.top="0px";dojo.style(d,css);this._onZoomHandler_connect=_7cb(map,"onZoom",this,"_onZoomHandler");this._left=this._top=0;}dojo.style(d,css);this._onPanHandler_connect=_7cb(map,"onPan",this,"_onPanHandler");this._onExtentChangeHandler_connect=_7cb(map,"onExtentChange",this,"_onExtentChangeHandler");this._onResizeHandler_connect=_7cb(map,"onResize",this,"_onResizeHandler");this._opacityChangeHandler_connect=_7cb(this,"onOpacityChange",this,"_opacityChangeHandler");this._visibilityChangeHandler_connect=_7cb(this,"onVisibilityChange",this,"_visibilityChangeHandler");this._toggleTime();this._layerIndex=_7c9;this._img_loading=null;this._dragOrigin={x:0,y:0};if(!this.visible){this._visibilityChangeHandler(this.visible);}else{if(map.extent&&map.loaded){this._onExtentChangeHandler(map.extent);}}return d;},_unsetMap:function(map,_7cc){if(_7cc){this._div=_7cc.removeChild(this._div);}dojo.destroy(this._div);this._map=this._layerIndex=this._div=null;var _7cd=dojo.disconnect;_7cd(this._onPanHandler_connect);_7cd(this._onExtentChangeHandler_connect);_7cd(this._onZoomHandler_connect);_7cd(this._onScaleHandler_connect);_7cd(this._onResizeHandler_connect);_7cd(this._opacityChangeHandler_connect);_7cd(this._visibilityChangeHandler_connect);this._toggleTime();},_onResizeHandler:function(_7ce,_7cf,_7d0){dojo.style(this._div,{width:_7cf+"px",height:_7d0+"px"});this._onExtentChangeHandler(_7ce);},_visibilityChangeHandler:function(v){var _7d1=dojo.connect,_7d2=dojo.disconnect,map=this._map;this._toggleTime();if(v){this._onExtentChangeHandler(map.extent);this._onPanHandler_connect=_7d1(map,"onPan",this,"_onPanHandler");this._onExtentChangeHandler_connect=_7d1(map,"onExtentChange",this,"_onExtentChangeHandler");if(map.navigationMode==="css-transforms"){this._onScaleHandler_connect=_7d1(map,"onScale",this,this._onScaleHandler);}else{this._onZoomHandler_connect=_7d1(map,"onZoom",this,"_onZoomHandler");}}else{esri.hide(this._div);_7d2(this._onPanHandler_connect);_7d2(this._onExtentChangeHandler_connect);_7d2(this._onZoomHandler_connect);_7d2(this._onScaleHandler_connect);}},_toggleTime:function(){var map=this._map;if(this.timeInfo&&this.useMapTime&&map&&this.visible){if(!this._timeConnect){this._timeConnect=dojo.connect(map,"onTimeExtentChange",this,this._onTimeExtentChangeHandler);}this._setTime(map.timeExtent);}else{dojo.disconnect(this._timeConnect);this._timeConnect=null;this._setTime(null);}},_setTime:function(_7d3){if(this._params){this._params.time=_7d3?_7d3.toJson().join(","):null;}},_onPanHandler:function(_7d4,_7d5){this._panDx=_7d5.x;this._panDy=_7d5.y;var _7d6=this._dragOrigin,vd=this._map.__visibleDelta,img=this._img;if(img){if(this._map.navigationMode==="css-transforms"){this._left=vd.x+_7d5.x;this._top=vd.y+_7d5.y;dojo.style(this._div,esri._css.names.transform,esri._css.translate(this._left,this._top));}else{dojo.style(img,{left:(_7d6.x+_7d5.x)+"px",top:(_7d6.y+_7d5.y)+"px"});}}},_onExtentChangeHandler:function(_7d7,_7d8,_7d9){if(!this.visible){return;}var _7da=this._map,_7db=this._img,_7dc=_7db&&_7db.style,_7dd=this._dragOrigin;if(_7d8&&!_7d9&&_7db&&(_7d8.x!==this._panDx||_7d8.y!==this._panDy)){if(_7da.navigationMode==="css-transforms"){var vd=_7da.__visibleDelta;this._left=vd.x;this._top=vd.y;dojo.style(this._div,esri._css.names.transform,esri._css.translate(this._left,this._top));}else{dojo.style(_7db,{left:(_7dd.x+_7d8.x)+"px",top:(_7dd.y+_7d8.y)+"px"});}}if(_7db){_7dd.x=parseInt(_7dc.left,10);_7dd.y=parseInt(_7dc.top,10);}else{_7dd.x=(_7dd.y=0);}if(_7da.navigationMode==="css-transforms"){if(_7d9&&_7db){dojo.style(_7db,esri._css.names.transition,"none");_7db._multiply=_7db._multiply?dojox.gfx.matrix.multiply(_7db._matrix,_7db._multiply):_7db._matrix;}}this._fireUpdateStart();var _7de=this._img_loading;if(_7de){dojo.disconnect(_7de._onload_connect);dojo.disconnect(_7de._onerror_connect);dojo.disconnect(_7de._onabort_connect);dojo.destroy(_7de);this._img_loading=null;var _7df=this._jsonRequest;if(_7df){try{_7df.cancel();}catch(e){}this._jsonRequest=null;}}if(this.version> =10&&_7da.wrapAround180){_7d7=_7d7._normalize(true);}if(this.isPNG32){var div=(this._img_loading=dojo.create("div"));div.id=_7da.id+"_"+this.id+"_"+new Date().getTime();dojo.style(div,{position:"absolute",left:"0px",top:"0px",width:_7da.width+"px",height:_7da.height+"px"});var _7e0=div.appendChild(dojo.create("div"));dojo.style(_7e0,{opacity:0,width:_7da.width+"px",height:_7da.height+"px"});this.getImageUrl(_7d7,_7da.width,_7da.height,this._divAlphaImageFunc);div=null;}else{var img=(this._img_loading=dojo.create("img")),_7e1=esri._css.names,isIE=dojo.isIE,css={position:"absolute",width:_7da.width+"px",height:_7da.height+"px"};if(isIE&&isIE> 7){css.opacity=this.opacity;}if(_7da.navigationMode==="css-transforms"){css[_7e1.transform]=esri._css.translate(-this._left,-this._top);img._tdx=-this._left;img._tdy=-this._top;css[_7e1.transition]=_7e1.transformName+" "+esri.config.defaults.map.zoomDuration+"ms ease";}else{css.left="0px";css.top="0px";}img.id=_7da.id+"_"+this.id+"_"+new Date().getTime();dojo.style(img,css);img._onload_connect=dojo.connect(img,"onload",this,"_onLoadHandler");img._onerror_connect=dojo.connect(img,"onerror",this,"_onErrorHandler");img._onabort_connect=dojo.connect(img,"onabort",this,"_onErrorHandler");this._startRect={left:_7dd.x,top:_7dd.y,width:_7db?parseInt(_7dc.width,10):_7da.width,height:_7db?parseInt(_7dc.height,10):_7da.height,zoom:(_7dc&&_7dc.zoom)?parseFloat(_7dc.zoom):1};this.getImageUrl(_7d7,_7da.width,_7da.height,this._imgSrcFunc);img=null;}},_onTimeExtentChangeHandler:function(_7e2){if(!this.visible){return;}this._setTime(_7e2);this.refresh(true);},getImageUrl:function(_7e3,wd,ht,_7e4){},_imgSrcFunc:function(src){this._img_loading.src=src;},_divAlphaImageFunc:function(src){dojo.style(this._img_loading,"filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"', sizingMethod='scale')");this._onLoadHandler({currentTarget:this._img_loading});},_onLoadHandler:function(evt){var img=evt.currentTarget,_7e5=dojo.disconnect,_7e6=this._map;_7e5(img._onload_connect);_7e5(img._onerror_connect);_7e5(img._onabort_connect);if(!_7e6||_7e6.__panning||_7e6.__zooming){dojo.destroy(img);this._fireUpdateEnd();return;}dojox.xml.parser.removeChildren(this._div);this._img=img;this._startRect={left:0,top:0,width:_7e6.width,height:_7e6.height,zoom:1};this._div.appendChild(img);if(this.visible){esri.show(this._div);}img._onload_connect=img._onerror_connect=img._onabort_connect=this._img_loading=null;var _7e7=this._dragOrigin;_7e7.x=(_7e7.y=0);this.onUpdate();this._fireUpdateEnd();},_onErrorHandler:function(evt){var img=evt.currentTarget,_7e8=dojo.disconnect;dojo.style(img,"visibility","hidden");_7e8(img._onload_connect);_7e8(img._onerror_connect);_7e8(img._onabort_connect);img._onload_connect=img._onerror_connect=img._onabort_connect=null;var _7e9=new Error(esri.bundle.layers.dynamic.imageError+": "+img.src);this.onError(_7e9);this._fireUpdateEnd(_7e9);},setUseMapTime:function(use,_7ea){this.useMapTime=use;this._toggleTime();if(!_7ea){this.refresh(true);}},refresh:function(){if(this._map){this._onExtentChangeHandler(this._map.extent);}},_onScaleHandler:function(mtx,_7eb){var css={},_7ec=esri._css.names,img=this._img;if(!img){return;}dojo.style(img,_7ec.transition,_7eb?"none":(_7ec.transformName+" "+esri.config.defaults.map.zoomDuration+"ms ease"));img._matrix=mtx;mtx=img._multiply?dojox.gfx.matrix.multiply(mtx,img._multiply):mtx;if(img._tdx||img._tdy){mtx=dojox.gfx.matrix.multiply(mtx,{"xx":1,"xy":0,"yx":0,"yy":1,"dx":img._tdx,"dy":img._tdy});}css[_7ec.transform]=esri._css.matrix(mtx);dojo.style(img,css);},_onZoomHandler:function(_7ed,_7ee,_7ef){var _7f0=this._startRect,_7f1=_7f0.width*_7ee,_7f2=_7f0.height*_7ee,img=this._img,isIE=dojo.isIE;if(img){if(isIE&&isIE <8){dojo.style(img,{left:(_7f0.left-((_7f1-_7f0.width)*(_7ef.x-_7f0.left)/_7f0.width))+"px",top:(_7f0.top-((_7f2-_7f0.height)*(_7ef.y-_7f0.top)/_7f0.height))+"px",zoom:_7ee*_7f0.zoom});}else{dojo.style(img,{left:(_7f0.left-((_7f1-_7f0.width)*(_7ef.x-_7f0.left)/_7f0.width))+"px",top:(_7f0.top-((_7f2-_7f0.height)*(_7ef.y-_7f0.top)/_7f0.height))+"px",width:_7f1+"px",height:_7f2+"px"});}}},_exportMapImage:function(url,_7f3,_7f4){var _7f5=this._exportMapImageHandler;_7f3.token=this._getToken();esri.request({url:url,content:_7f3,callbackParamName:"callback",load:function(){_7f5(arguments[0],arguments[1],_7f4);},error:esri.config.defaults.io.errorHandler});},_exportMapImageHandler:function(_7f6,io,_7f7){var _7f8=new esri.layers.MapImage(_7f6);this.onMapImageExport(_7f8);if(_7f7){_7f7(_7f8);}},onMapImageExport:function(){},setOpacity:function(o){if(this.opacity!=o){this.onOpacityChange(this.opacity=o);}},onOpacityChange:function(){},_opacityChangeHandler:function(_7f9){dojo.style(this._div,"opacity",_7f9);}});}if(!dojo._hasResource["esri.layers.agscommon"]){dojo._hasResource["esri.layers.agscommon"]=true;dojo.provide("esri.layers.agscommon");dojo.declare("esri.layers.ArcGISMapServiceLayer",null,{constructor:function(url,_7fa){this.layerInfos=[];var _7fb=(this._params={}),_7fc=this._url.query?this._url.query.token:null;if(_7fc){_7fb.token=_7fc;}},_load:function(){esri.request({url:this._url.path,content:dojo.mixin({f:"json"},this._params),callbackParamName:"callback",load:this._initLayer,error:this._errorHandler});},spatialReference:null,initialExtent:null,fullExtent:null,description:null,units:null,_initLayer:function(_7fd,io){try{this._findCredential();this.description=_7fd.description;this.copyright=_7fd.copyrightText;this.spatialReference=new esri.SpatialReference(_7fd.spatialReference);this.initialExtent=new esri.geometry.Extent(_7fd.initialExtent);this.fullExtent=new esri.geometry.Extent(_7fd.fullExtent);this.units=_7fd.units;this.maxRecordCount=_7fd.maxRecordCount;this.maxImageHeight=_7fd.maxImageHeight;this.maxImageWidth=_7fd.maxImageWidth;var _7fe=(this.layerInfos=[]),lyrs=_7fd.layers,dvl=(this._defaultVisibleLayers=[]);dojo.forEach(lyrs,function(lyr,i){_7fe[i]=new esri.layers.LayerInfo(lyr);if(lyr.defaultVisibility){dvl.push(lyr.id);}});if(!this.visibleLayers){this.visibleLayers=dvl;}this.version=_7fd.currentVersion;if(!this.version){var ver;if("capabilities" in _7fd||"tables" in _7fd){ver=10;}else{if("supportedImageFormatTypes" in _7fd){ver=9.31;}else{ver=9.3;}}this.version=ver;}this.capabilities=_7fd.capabilities;}catch(e){this._errorHandler(e);}}});dojo.declare("esri.layers.LayerInfo",null,{constructor:function(json){dojo.mixin(this,json);}});dojo.declare("esri.layers.TimeInfo",null,{constructor:function(json){if(json!==null){dojo.mixin(this,json);if(json.exportOptions){this.exportOptions=new esri.layers.LayerTimeOptions(json.exportOptions);}this.timeExtent=new esri.TimeExtent(json.timeExtent);this.timeReference=new esri.layers.TimeReference(json.timeReference);}}});dojo.mixin(esri.layers.TimeInfo,{UNIT_CENTURIES:"esriTimeUnitsCenturies",UNIT_DAYS:"esriTimeUnitsDays",UNIT_DECADES:"esriTimeUnitsDecades",UNIT_HOURS:"esriTimeUnitsHours",UNIT_MILLISECONDS:"esriTimeUnitsMilliseconds",UNIT_MINUTES:"esriTimeUnitsMinutes",UNIT_MONTHS:"esriTimeUnitsMonths",UNIT_SECONDS:"esriTimeUnitsSeconds",UNIT_UNKNOWN:"esriTimeUnitsUnknown",UNIT_WEEKS:"esriTimeUnitsWeeks",UNIT_YEARS:"esriTimeUnitsYears"});dojo.declare("esri.layers.LayerTimeOptions",null,{constructor:function(json){if(json){dojo.mixin(this,json);}},toJson:function(){var json={timeDataCumulative:this.timeDataCumulative,timeOffset:this.timeOffset,timeOffsetUnits:this.timeOffsetUnits,useTime:this.useTime};return esri._sanitize(json);}});dojo.declare("esri.layers.TimeReference",null,{constructor:function(json){if(json){dojo.mixin(this,json);}}});dojo.declare("esri.layers.Field",null,{constructor:function(json){if(json&&dojo.isObject(json)){this.name=json.name;this.type=json.type;this.alias=json.alias;this.length=json.length;this.editable=json.editable;this.nullable=json.nullable;var _7ff=json.domain;if(_7ff&&dojo.isObject(_7ff)){switch(_7ff.type){case "range":this.domain=new esri.layers.RangeDomain(_7ff);break;case "codedValue":this.domain=new esri.layers.CodedValueDomain(_7ff);break;}}}}});dojo.declare("esri.layers.Domain",null,{constructor:function(json){if(json&&dojo.isObject(json)){this.name=json.name;this.type=json.type;}},toJson:function(){return esri._sanitize({name:this.name,type:this.type});}});dojo.declare("esri.layers.RangeDomain",[esri.layers.Domain],{constructor:function(json){if(json&&dojo.isObject(json)){this.minValue=json.range[0];this.maxValue=json.range[1];}},toJson:function(){var json=this.inherited(arguments);json.range=[this.minValue,this.maxValue];return esri._sanitize(json);}});dojo.declare("esri.layers.CodedValueDomain",[esri.layers.Domain],{constructor:function(json){if(json&&dojo.isObject(json)){this.codedValues=json.codedValues;}},toJson:function(){var json=this.inherited(arguments);json.codedValues=dojo.clone(this.codedValues);return esri._sanitize(json);}});dojo.declare("esri.layers.InheritedDomain",[esri.layers.Domain],{});}if(!dojo._hasResource["esri._time"]){dojo._hasResource["esri._time"]=true;dojo.provide("esri._time");dojo.declare("esri.TimeExtent",null,{constructor:function(json){if(arguments.length> 1){this._create(arguments[0],arguments[1]);}else{if(json){if(dojo.isArray(json)){var _800=json[0],end=json[1];this.startTime=(_800===null||_800==="null")?null:new Date(_800);this.endTime=(end===null||end==="null")?null:new Date(end);}else{if(json instanceof Date){this._create(json,null);}}}}},offset:function(_801,_802){var _803=new esri.TimeExtent();var _804=this.startTime,end=this.endTime;if(_804){_803.startTime=this._getOffsettedDate(_804,_801,_802);}if(end){_803.endTime=this._getOffsettedDate(end,_801,_802);}return _803;},intersection:function(_805){return this._intersection(this,_805);},toJson:function(){var _806=[];var _807=this.startTime;_806.push(_807?_807.getTime():"null");var end=this.endTime;_806.push(end?end.getTime():"null");return _806;},_create:function(_808,end){this.startTime=_808?new Date(_808):null;this.endTime=end?new Date(end):null;},_refData:{"esriTimeUnitsMilliseconds":{getter:"getUTCMilliseconds",setter:"setUTCMilliseconds",multiplier:1},"esriTimeUnitsSeconds":{getter:"getUTCSeconds",setter:"setUTCSeconds",multiplier:1},"esriTimeUnitsMinutes":{getter:"getUTCMinutes",setter:"setUTCMinutes",multiplier:1},"esriTimeUnitsHours":{getter:"getUTCHours",setter:"setUTCHours",multiplier:1},"esriTimeUnitsDays":{getter:"getUTCDate",setter:"setUTCDate",multiplier:1},"esriTimeUnitsWeeks":{getter:"getUTCDate",setter:"setUTCDate",multiplier:7},"esriTimeUnitsMonths":{getter:"getUTCMonth",setter:"setUTCMonth",multiplier:1},"esriTimeUnitsYears":{getter:"getUTCFullYear",setter:"setUTCFullYear",multiplier:1},"esriTimeUnitsDecades":{getter:"getUTCFullYear",setter:"setUTCFullYear",multiplier:10},"esriTimeUnitsCenturies":{getter:"getUTCFullYear",setter:"setUTCFullYear",multiplier:100}},_intersection:function(_809,_80a){if(_809&&_80a){var _80b=_809.startTime,end1=_809.endTime;var _80c=_80a.startTime,end2=_80a.endTime;_80b=_80b?_80b.getTime():-Infinity;_80c=_80c?_80c.getTime():-Infinity;end1=end1?end1.getTime():Infinity;end2=end2?end2.getTime():Infinity;var _80d,end;if(_80c> =_80b&&_80c <=end1){_80d=_80c;}else{if(_80b> =_80c&&_80b <=end2){_80d=_80b;}}if(end1> =_80c&&end1 <=end2){end=end1;}else{if(end2> =_80b&&end2 <=end1){end=end2;}}if(!isNaN(_80d)&&!isNaN(end)){var _80e=new esri.TimeExtent();_80e.startTime=(_80d===-Infinity)?null:new Date(_80d);_80e.endTime=(end===Infinity)?null:new Date(end);return _80e;}else{return null;}}else{return null;}},_getOffsettedDate:function(_80f,_810,_811){var data=this._refData;var _812=new Date(_80f.getTime());if(_810&&_811){var data=data[_811];_812[data.setter](_812[data.getter]()+(_810*data.multiplier));}return _812;}});dojo.declare("esri.TimeReference",null,{constructor:function(json){if(json){dojo.mixin(this,json);}}});}if(!dojo._hasResource["esri.layers.agsdynamic"]){dojo._hasResource["esri.layers.agsdynamic"]=true;dojo.provide("esri.layers.agsdynamic");dojo.declare("esri.layers.ArcGISDynamicMapServiceLayer",[esri.layers.DynamicMapServiceLayer,esri.layers.ArcGISMapServiceLayer],{constructor:function(url,_813){var _814=_813&&_813.imageParameters,dh=dojo.hitch;if(_814){var ldef=_814.layerDefinitions;if(ldef){this.setLayerDefinitions(ldef);}if(_814.layerOption===esri.layers.ImageParameters.LAYER_OPTION_SHOW){this.visibleLayers=[].concat(_814.layerIds);}}this._setIsPNG32=dh(this,this._setIsPNG32);this.dpi=(_814&&_814.dpi)||96;this.imageFormat=(_814&&_814.format)||"png8";this.imageTransparency=(_814&&_814.transparent===false)?false:true;this._setIsPNG32();dojo.mixin(this._params,this._url.query,{dpi:this.dpi,transparent:this.imageTransparency,format:this.imageFormat},_814?_814.toJson():{});this.getImageUrl=dh(this,this.getImageUrl);this._initLayer=dh(this,this._initLayer);this._load=dh(this,this._load);this.useMapImage=_813?_813.useMapImage:false;if(this.useMapImage){this._imageExportHandler=dh(this,this._imageExportHandler);}this._loadCallback=_813&&_813.loadCallback;var _815=_813&&_813.resourceInfo;if(_815){this._initLayer(_815);}else{if(arguments[2]===undefined||arguments[2]===false){this._load();}}},disableClientCaching:false,layerDefinitions:null,_initLayer:function(_816,io){this.inherited(arguments);if(_816.timeInfo){this.timeInfo=new esri.layers.TimeInfo(_816.timeInfo);}this.loaded=true;this.onLoad(this);var _817=this._loadCallback;if(_817){delete this._loadCallback;_817(this);}},getImageUrl:function(_818,_819,_81a,_81b){var path=this._url.path+"/export?",_81c=this._params,sr=_818.spatialReference.wkid||dojo.toJson(_818.spatialReference.toJson()),_81d=this._errorHandler;delete _81c._ts;dojo.mixin(_81c,{bbox:_818.xmin+","+_818.ymin+","+_818.xmax+","+_818.ymax,bboxSR:sr,imageSR:sr,size:_819+","+_81a},this.disableClientCaching?{_ts:new Date().getTime()}:{});if(_81c.layerDefs){var defs=_81c.layerDefs;delete _81c.layerDefs;dojo.mixin(_81c,{layerDefs:defs});}_81c.token=this._getToken();var _81e=esri._getProxiedUrl(path+dojo.objectToQuery(dojo.mixin({},_81c,{f:"image"})));if((_81e.length> esri.config.defaults.io.postLength)||this.useMapImage){var _81f=this._imageExportHandler;this._jsonRequest=esri.request({url:path,content:dojo.mixin(_81c,{f:"json"}),callbackParamName:"callback",load:function(_820,io){_81f(_820,io,_81b);},error:_81d});}else{_81b(_81e);}},_imageExportHandler:function(_821,io,_822){_822(esri._getProxiedUrl(_821.href));},_setIsPNG32:function(){var _823=this.imageFormat.toLowerCase();var isIE=dojo.isIE;this.isPNG32=isIE&&isIE===6&&(_823==="png32"||_823==="png24")&&this.imageTransparency;},_setTime:function(_824){var time=(this._params.time=_824?_824.toJson().join(","):null);if(this.version <10.02&&this.timeInfo){if(!time){var _825=this.layerInfos;if(_825){var _826=this.layerTimeOptions,_827=_826?_826.slice(0):[],ids=[];dojo.forEach(_825,function(info){if(!info.subLayerIds){ids.push(info.id);}});if(ids.length){dojo.forEach(ids,function(id){if(!_827[id]){var opt=new esri.layers.LayerTimeOptions();opt.useTime=false;_827[id]=opt;}});this._params.layerTimeOptions=esri._serializeTimeOptions(_827,ids);}}}else{this._params.layerTimeOptions=esri._serializeTimeOptions(this.layerTimeOptions);}}if(this.version> =10.02&&this.timeInfo){if(!time){this._params.time="null,null";}}},setDPI:function(dpi,_828){this.dpi=(this._params.dpi=dpi);if(!_828){this.refresh(true);}},setImageFormat:function(_829,_82a){this.imageFormat=(this._params.format=_829);this._setIsPNG32();if(!_82a){this.refresh(true);}},setImageTransparency:function(_82b,_82c){this.imageTransparency=(this._params.transparent=_82b);this._setIsPNG32();if(!_82c){this.refresh(true);}},setVisibleLayers:function(_82d,_82e){this.visibleLayers=_82d;this._params.layers=esri.layers.ImageParameters.LAYER_OPTION_SHOW+":"+_82d.join(",");if(!_82e){this.refresh(true);}},setDefaultVisibleLayers:function(_82f){this.visibleLayers=this._defaultVisibleLayers;this._params.layers=null;if(!_82f){this.refresh(true);}},setLayerDefinitions:function(_830,_831){this.layerDefinitions=_830;this._params.layerDefs=esri._serializeLayerDefinitions(_830);if(!_831){this.refresh(true);}},setDefaultLayerDefinitions:function(_832){this.layerDefinitions=this._params.layerDefs=null;if(!_832){this.refresh(true);}},setDisableClientCaching:function(_833){this.disableClientCaching=_833;},setLayerTimeOptions:function(_834,_835){this.layerTimeOptions=_834;this._params.layerTimeOptions=esri._serializeTimeOptions(_834);if(!_835){this.refresh(true);}},refresh:function(_836){if(_836){this.inherited(arguments);}else{var dc=this.disableClientCaching;this.disableClientCaching=true;this.inherited(arguments);this.disableClientCaching=dc;}},exportMapImage:function(_837,_838){var m=esri.config.defaults.map,p=dojo.mixin({size:m.width+","+m.height},this._params,_837?_837.toJson(this.normalization):{},{f:"json"});delete p._ts;if(p.layerDefs){var defs=p.layerDefs;delete p.layerDefs;dojo.mixin(p,{layerDefs:defs});}this._exportMapImage(this._url.path+"/export",p,_838);}});dojo.declare("esri.layers.ImageParameters",null,{constructor:function(){this.layerDefinitions=[];this._bundle=dojo.i18n.getLocalization("esri","jsapi");},bbox:null,extent:null,width:null,height:null,dpi:null,format:null,imageSpatialReference:null,layerOption:null,layerIds:null,transparent:null,timeExtent:null,layerTimeOptions:null,toJson:function(_839){if(this.bbox){dojo.deprecated(this.declaredClass+" : "+this._bundle.layers.imageParameters.deprecateBBox);}var bb=this.bbox||this.extent;bb=bb&&_839&&bb._normalize(true);var _83a=this.layerOption,wkid=bb?(bb.spatialReference.wkid||dojo.toJson(bb.spatialReference.toJson())):null,_83b=this.imageSpatialReference,json={dpi:this.dpi,format:this.format,transparent:this.transparent,size:(this.width!==null&&this.height!==null?this.width+","+this.height:null),bbox:(bb?(bb.xmin+","+bb.ymin+","+bb.xmax+","+bb.ymax):null),bboxSR:wkid,layers:(_83a?_83a+":"+this.layerIds.join(","):null),imageSR:(_83b?(_83b.wkid||dojo.toJson(_83b.toJson())):wkid)};json.layerDefs=esri._serializeLayerDefinitions(this.layerDefinitions);var _83c=this.timeExtent;json.time=_83c?_83c.toJson().join(","):null;json.layerTimeOptions=esri._serializeTimeOptions(this.layerTimeOptions);return esri.filter(json,function(_83d){if(_83d!==null){return true;}});}});dojo.mixin(esri.layers.ImageParameters,{LAYER_OPTION_SHOW:"show",LAYER_OPTION_HIDE:"hide",LAYER_OPTION_INCLUDE:"include",LAYER_OPTION_EXCLUDE:"exclude"});dojo.declare("esri.layers.MapImage",null,{constructor:function(json){dojo.mixin(this,json);this.extent=new esri.geometry.Extent(this.extent);}});}if(!dojo._hasResource["dojox.collections._base"]){dojo._hasResource["dojox.collections._base"]=true;dojo.provide("dojox.collections._base");dojox.collections.DictionaryEntry=function(k,v){this.key=k;this.value=v;this.valueOf=function(){return this.value;};this.toString=function(){return String(this.value);};};dojox.collections.Iterator=function(arr){var a=arr;var _83e=0;this.element=a[_83e]||null;this.atEnd=function(){return (_83e> =a.length);};this.get=function(){if(this.atEnd()){return null;}this.element=a[_83e++];return this.element;};this.map=function(fn,_83f){return dojo.map(a,fn,_83f);};this.reset=function(){_83e=0;this.element=a[_83e];};};dojox.collections.DictionaryIterator=function(obj){var a=[];var _840={};for(var p in obj){if(!_840[p]){a.push(obj[p]);}}var _841=0;this.element=a[_841]||null;this.atEnd=function(){return (_841> =a.length);};this.get=function(){if(this.atEnd()){return null;}this.element=a[_841++];return this.element;};this.map=function(fn,_842){return dojo.map(a,fn,_842);};this.reset=function(){_841=0;this.element=a[_841];};};}if(!dojo._hasResource["dojox.collections.ArrayList"]){dojo._hasResource["dojox.collections.ArrayList"]=true;dojo.provide("dojox.collections.ArrayList");dojox.collections.ArrayList=function(arr){var _843=[];if(arr){_843=_843.concat(arr);}this.count=_843.length;this.add=function(obj){_843.push(obj);this.count=_843.length;};this.addRange=function(a){if(a.getIterator){var e=a.getIterator();while(!e.atEnd()){this.add(e.get());}this.count=_843.length;}else{for(var i=0;i =0){_843.splice(i,1);}this.count=_843.length;};this.removeAt=function(i){_843.splice(i,1);this.count=_843.length;};this.reverse=function(){_843.reverse();};this.sort=function(fn){if(fn){_843.sort(fn);}else{_843.sort();}};this.setByIndex=function(i,obj){_843[i]=obj;this.count=_843.length;};this.toArray=function(){return [].concat(_843);};this.toString=function(_845){return _843.join((_845||","));};};}if(!dojo._hasResource["esri.layers.tiled"]){dojo._hasResource["esri.layers.tiled"]=true;dojo.provide("esri.layers.tiled");dojo.declare("esri.layers.TiledMapServiceLayer",esri.layers.Layer,{constructor:function(url,_846){dojo.connect(this,"onLoad",this,"_initTiledLayer");this._displayLevels=_846?_846.displayLevels:null;var dh=dojo.hitch;this._addImage=dh(this,this._addImage);this._tileLoadHandler=dh(this,this._tileLoadHandler);this._tileErrorHandler=dh(this,this._tileErrorHandler);this._tilePopPop=dh(this,this._tilePopPop);this._cleanUpRemovedImages=dh(this,this._cleanUpRemovedImages);this._fireOnUpdateEvent=dh(this,this._fireOnUpdateEvent);this._transitionEnd=dh(this,this._transitionEnd);},opacity:1,isPNG32:false,_initTiledLayer:function(){var ti=this.tileInfo,lods=ti.lods;this._tileOrigin=new esri.geometry.Point(dojo.mixin(ti.origin,this.spatialReference));this._tileW=ti.width;this._tileH=ti.height;this._normalizedScales=[];var _847=(this.scales=[]),dl=this._displayLevels,fe=this.fullExtent,ul=new esri.geometry.Point(fe.xmin,fe.ymax),lr=new esri.geometry.Point(fe.xmax,fe.ymin),gctc=esri.TileUtils.getContainingTileCoords,_848,lod,i,len=lods.length;for(i=0;i =6&&dojo.isIE <7&&(this.isPNG32||ti.format==="Mixed");},_setMap:function(map,_849,_84a,lod){this._map=map;var d=(this._div=dojo.create("div",null,_849));this._layerIndex=_84a;var _84b=map.__visibleDelta,dc=dojo.connect,_84c=esri._css.names,css={position:"absolute",width:map.width+"px",height:map.height+"px",overflow:"visible"};if(map.navigationMode==="css-transforms"){css[_84c.transform]=esri._css.translate(-_84b.x,-_84b.y);dojo.style(d,css);delete css[_84c.transform];css[_84c.transition]=_84c.transformName+" "+esri.config.defaults.map.zoomDuration+"ms ease";dojo.style((this._active=dojo.create("div",null,d)),css);this._active._remove=0;this._passives=[];this._onScaleHandler_connect=dc(map,"onScale",this,this._onScaleHandler);if(esri.isTouchEnabled){this._standby=[];var self=this,_84d=function(){self._noDom=1;};this._onPanStartHandler_connect=dc(map,"onPanStart",_84d);this._onZoomStartHandler_connect=dc(map,"onZoomStart",_84d);}}else{css.left=-_84b.x+"px";css.top=-_84b.y+"px";dojo.style(d,css);this._onZoomHandler_connect=dc(map,"onZoom",this,"_onZoomHandler");}this._onPanHandler_connect=dc(map,"onPan",this,"_onPanHandler");this._onExtentChangeHandler_connect=dc(map,"onExtentChange",this,"_onExtentChangeHandler");this._onResizeHandler_connect=dc(map,"onResize",this,"_onResizeHandler");this._opacityChangeHandler_connect=dc(this,"onOpacityChange",this,"_opacityChangeHandler");this._visibilityChangeHandler_connect=dc(this,"onVisibilityChange",this,"_visibilityChangeHandler");this._tileIds=[];this._tiles=[];this._tileBounds=[];this._ct=null;this._removeList=new dojox.collections.ArrayList();this._loadingList=new dojox.collections.ArrayList();var _84e=this.tileInfo,sr=_84e.spatialReference,info=sr._getInfo();this._wrap=map.wrapAround180&&sr._isWrappable()&&Math.abs(info.origin[0]-_84e.origin.x) <=info.dx;if(this._wrap){esri.TileUtils._addFrameInfo(_84e,info);}var _84f=map.extent;if(!this.visible){this._visibilityChangeHandler(this.visible);}if(_84f&&map.loaded){this._onExtentChangeHandler(_84f,null,null,lod);}return d;},_unsetMap:function(map,_850){if(_850){this._div=_850.removeChild(this._div);}dojo.destroy(this._div);this._map=this._layerIndex=this._div=this._standby=null;var dd=dojo.disconnect;dd(this._onExtentChangeHandler_connect);dd(this._onPanHandler_connect);dd(this._onZoomHandler_connect);dd(this._onScaleHandler_connect);dd(this._onLayerReorderHandler_connect);dd(this._onResizeHandler_connect);dd(this._opacityChangeHandler_connect);dd(this._visibilityChangeHandler_connect);dd(this._onPanStartHandler_connect);dd(this._onZoomStartHandler_connect);},_visibilityChangeHandler:function(v){if(v){esri.show(this._div);var map=this._map;if(map.navigationMode==="css-transforms"){this._onScaleHandler_connect=dojo.connect(map,"onScale",this,this._onScaleHandler);}else{this._onZoomHandler_connect=dojo.connect(map,"onZoom",this,"_onZoomHandler");}this._onPanHandler_connect=dojo.connect(map,"onPan",this,"_onPanHandler");this._onExtentChangeHandler(map.extent,null,true);}else{esri.hide(this._div);dojo.disconnect(this._onPanHandler_connect);dojo.disconnect(this._onZoomHandler_connect);dojo.disconnect(this._onScaleHandler_connect);}},_onResizeHandler:function(_851,_852,_853){var css={width:_852+"px",height:_853+"px"},ds=dojo.style,i;ds(this._div,css);if(this._map.navigationMode==="css-transforms"){if(this._active){ds(this._active,css);}for(i=this._passives.length-1;i> =0;i--){ds(this._passives[i],css);}}},_onExtentChangeHandler:function(_854,_855,_856,lod){var i,_857=this._standby,img,_858;if(this._map.navigationMode==="css-transforms"){if(_856){for(i=this._passives.length-1;i> =0;i--){_858=this._passives[i];dojo.style(_858,esri._css.names.transition,"none");if(_858._marked){this._passives.splice(i,1);if(_858.parentNode){_858.parentNode.removeChild(_858);}dojo.destroy(_858);}else{if(_858.childNodes.length> 0){_858._multiply=_858._multiply?dojox.gfx.matrix.multiply(_858._matrix,_858._multiply):_858._matrix;}}}}this._noDom=0;if(_857&&_857.length){for(i=_857.length-1;i> =0;i--){img=_857[i];dojo.style(img,"visibility","visible");this._tilePopPop(img);_857.splice(i,1);}}}var _859=true;this._refreshArgs={extent:_854,lod:lod};if(!this.visible){_859=false;}var map=this._map,_85a;if(lod){_85a=dojo.indexOf(this.scales,lod.scale)===-1;if(this.declaredClass==="esri.layers.WMTSLayer"){var _85b=map._params.tileInfo.dpi;var _85c=map.width> map.height?map.width:map.height;_85a=true;var s1,s2=lod.scale/_85b;for(i=0;i =0;i--){id=this._tileIds[i];if(id){img=this._tiles[id];_864=dojo.coords(img);rect=new esri.geometry.Rect(_864.l,_864.t,_865,_866);if(map.navigationMode==="css-transforms"){rect.x=img._left;rect.y=img._top;}if(mv.intersects(rect)){this._tileBounds[id]=rect;}else{if(this._loadingList.contains(id)){this._tilePopPop(img);}dojo.destroy(img);this._tileIds.splice(i,1);delete this._tileBounds[id];delete this._tiles[id];}}else{this._tileIds.splice(i,1);delete this._tileBounds[id];delete this._tiles[id];}}},_onPanHandler:function(_867,_868){var map=this._map,mv=map.__visibleDelta.offset(_868.x,_868.y);this.__coords_dx=this.__coords_dy=0;if(map.navigationMode==="css-transforms"){var css={};css[esri._css.names.transform]=esri._css.translate(mv.x,mv.y);dojo.style(this._div,css);if(!esri.isTouchEnabled){this._updateImages({x:-mv.x,y:-mv.y,width:mv.width,height:mv.height});}}else{dojo.style(this._div,{left:mv.x+"px",top:mv.y+"px"});this._updateImages({x:-mv.x,y:-mv.y,width:mv.width,height:mv.height});}if(this._loadingList.count> 0){this._fireUpdateStart();this._fireOnUpdate=true;}},_onScaleHandler:function(mtx,_869){var i,css={},_86a=esri._css.names,map=this._map;for(i=this._passives.length-1;i> =0;i--){var _86b=this._passives[i];if(_86b.childNodes.length===0){this._passives.splice(i,1);dojo.destroy(_86b);}else{if(_86b.style[_86a.transition]==="none"){dojo.style(_86b,_86a.transition,_86a.transformName+" "+esri.config.defaults.map.zoomDuration+"ms ease");}dojo.style(_86b,_86a.transition,_869?"none":(_86a.transformName+" "+esri.config.defaults.map.zoomDuration+"ms ease"));_86b._matrix=mtx;css[_86a.transform]=esri._css.matrix(_86b._multiply?dojox.gfx.matrix.multiply(mtx,_86b._multiply):mtx);dojo.style(_86b,css);}}if(this._active&&this._active.childNodes.length===0){return;}dojo.style(this._active,_86a.transition,_869?"none":(_86a.transformName+" "+esri.config.defaults.map.zoomDuration+"ms ease"));this._active._matrix=mtx;css[_86a.transform]=esri._css.matrix(this._active._matrix);dojo.style(this._active,css);this._passives.push(this._active);css={position:"absolute",width:map.width+"px",height:map.height+"px",overflow:"visible"};css[_86a.transition]=_86a.transformName+" "+esri.config.defaults.map.zoomDuration+"ms ease";dojo.style((this._active=dojo.create("div",null,this._div)),css);this._active._remove=0;if(map.fadeOnZoom){dojo.place(this._active,this._div,"first");}},_onZoomHandler:function(_86c,_86d,_86e){var _86f=dojo.coords(this._div);_86e=_86e.offset(-_86f.l,-_86f.t);var _870,_871=this._tileW*_86d,_872=this._tileH*_86d,_873=this._tileBounds,_874=this._tiles,es=dojo.style;var isIE=dojo.isIE;if(isIE&&isIE <8){dojo.forEach(this._tileIds,function(id){_870=_873[id];es(_874[id],{left:(_870.x-((_871-_870.width)*(_86e.x-_870.x)/_870.width))+"px",top:(_870.y-((_872-_870.height)*(_86e.y-_870.y)/_870.height))+"px",zoom:_86d});});}else{dojo.forEach(this._tileIds,function(id){_870=_873[id];es(_874[id],{left:(_870.x-((_871-_870.width)*(_86e.x-_870.x)/_870.width))+"px",top:(_870.y-((_872-_870.height)*(_86e.y-_870.y)/_870.height))+"px",width:_871+"px",height:_872+"px"});});}},_updateImages:function(rect){var id,_875=this._tileW,_876=this._tileH,_877=this._ct,lod=_877.lod,tile=_877.tile,off=tile.offsets,_878=tile.coords,cr=_878.row,cc=_878.col,_879=lod.level,_87a=this.opacity,_87b=this._tileIds,_87c=this._loadingList,_87d=this._addImage,mId=this._map.id,tId=this.id,rx=rect.x,ry=rect.y,str=lod.startTileRow,etr=lod.endTileRow,stc=lod.startTileCol,etc=lod.endTileCol,_87e=dojo.indexOf,r,c,mvx=-rect.x,mvy=-rect.y,_87f=off.x-this.__coords_dx,_880=off.y-this.__coords_dy,vx=((_875-_87f)+mvx),vy=((_876-_880)+mvy),ceil=Math.ceil,_881=(vx> 0)?(vx%_875):((_875-(Math.abs(vx)%_875))),_882=(vy> 0)?(vy%_876):((_876-(Math.abs(vy)%_876))),_883=(rx> 0)?Math.floor((rx+_87f)/_875):ceil((rx-(_875-_87f))/_875),_884=(ry> 0)?Math.floor((ry+_880)/_876):ceil((ry-(_876-_880))/_876),_885=_883+ceil((rect.width-_881)/_875),_886=_884+ceil((rect.height-_882)/_876),_887,_888,m180,p180,col,row;if(this._wrap){_887=lod._frameInfo;_888=_887[0];m180=_887[1];p180=_887[2];}for(col=_883;col <=_885;col++){for(row=_884;row <=_886;row++){r=cr+row;c=cc+col;if(this._wrap){if(c p180){c=c%_888;}}}if(r> =str&&r <=etr&&c> =stc&&c <=etc){id=mId+"_"+tId+"_tile_"+_879+"_"+row+"_"+col;if(_87e(_87b,id)===-1){_87c.add(id);_87b.push(id);_87d(_879,row,r,col,c,id,_875,_876,_87a,tile,off);}}}}},_cleanUpRemovedImages:function(){var list=this._removeList,dd=dojo.destroy,i,_889=esri._css.names;list.forEach(function(img){if(!img._fadeOut){img.style.filter="";img.style.zoom=1;dd(img);}});if(this._map.navigationMode==="css-transforms"){for(i=this._passives.length-1;i> =0;i--){var _88a=this._passives[i];if(_88a.childNodes.length===0){this._passives.splice(i,1);dd(_88a);}else{if(this._map.fadeOnZoom&&!_88a._marked&&(_88a._remove===_88a.childNodes.length)){dojo.style(_88a,_889.transition,"opacity 0.65s");dojo.style(_88a,"opacity",0);_88a._marked=1;_88a._endHandle=dojo.connect(_88a,_889.endEvent,this._transitionEnd);}}}}list.clear();},_transitionEnd:function(evt){var _88b=evt.target,idx;if(evt.propertyName!=="opacity"){return;}dojo.disconnect(_88b._endHandle);_88b._endHandle=null;idx=dojo.indexOf(this._passives,_88b);if(idx> -1){this._passives.splice(idx,1);}if(_88b.parentNode){_88b.parentNode.removeChild(_88b);}dojo.destroy(_88b);},_addImage:function(_88c,row,r,col,c,id,_88d,_88e,_88f,tile,_890){if(this._patchIE){var div=(this._tiles[id]=dojo.create("div"));div.id=id;dojo.addClass(div,"layerTile");dojo.style(div,{left:((_88d*col)-_890.x)+"px",top:((_88e*row)-_890.y)+"px",width:_88d+"px",height:_88e+"px",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.getTileUrl(_88c,r,c)+"', sizingMethod='scale')"});if(_88f <1){dojo.style(div,"opacity",_88f);}var _891=div.appendChild(dojo.create("div"));dojo.style(_891,{opacity:0,width:_88d+"px",height:_88e+"px"});this._div.appendChild(div);div=null;this._loadingList.remove(id);this._fireOnUpdateEvent();}else{var img=(this._tiles[id]=dojo.create("img")),dc=dojo.connect;img.id=id;dojo.addClass(img,"layerTile");var left=(_88d*col)-_890.x,top=(_88e*row)-_890.y,map=this._map,_892=esri._css.names,css={width:_88d+"px",height:_88e+"px",visibility:"hidden"};if(map.navigationMode==="css-transforms"){css[_892.transform]=esri._css.translate(left,top);dojo.style(img,css);img._left=left;img._top=top;}else{css.left=left+"px";css.top=top+"px";dojo.style(img,css);}if(_88f <1){dojo.style(img,"opacity",_88f);}img._onload_connect=dc(img,"onload",this,"_tileLoadHandler");img._onerror_connect=dc(img,"onerror",this,"_tileErrorHandler");img._onabort_connect=dc(img,"onabort",this,"_tileErrorHandler");var url=this.getTileUrl(_88c,r,c,img);if(url){img.src=url;}if(map.navigationMode==="css-transforms"){this._active.appendChild(img);}else{this._div.appendChild(img);}img=null;}},getTileUrl:function(_893,row,col){},refresh:function(){var ra=this._refreshArgs;this._onExtentChangeHandler(ra.extent,null,true,ra.lod);},_tilePopPop:function(img){var dd=dojo.disconnect;dd(img._onload_connect);dd(img._onerror_connect);dd(img._onabort_connect);img._onload_connect=img._onerror_connect=img._onabort_connect=null;this._loadingList.remove(img.id);this._fireOnUpdateEvent();},_tileLoadHandler:function(evt){var img=evt.currentTarget;if(this._noDom){this._standby.push(img);return;}dojo.style(img,"visibility","visible");this._tilePopPop(img);},_tileErrorHandler:function(evt){var img=evt.currentTarget;this.onError(new Error(esri.bundle.layers.tiled.tileError+": "+img.src));dojo.style(img,"visibility","hidden");this._tilePopPop(img);},_fireOnUpdateEvent:function(){if(this._loadingList.count===0){this._cleanUpRemovedImages();if(this._fireOnUpdate){this._fireOnUpdate=false;this.onUpdate();this._fireUpdateEnd();}}},setOpacity:function(o){if(this.opacity!=o){this.onOpacityChange(this.opacity=o);}},onOpacityChange:function(){},_opacityChangeHandler:function(_894){var djs=dojo.style,i,j,_895;if(this._map.navigationMode==="css-transforms"){if(this._active){_895=this._active.childNodes;for(i=_895.length-1;i> =0;i--){djs(_895[i],"opacity",_894);}}for(i=this._passives.length-1;i> =0;i--){_895=this._passives[i].childNodes;for(j=_895.length-1;j> =0;j--){djs(_895[j],"opacity",_894);}}return;}_895=this._div.childNodes;for(i=_895.length-1;i> =0;i--){djs(_895[i],"opacity",_894);}}});dojo.declare("esri.layers.TileInfo",null,{constructor:function(json){this.spatialReference=new esri.SpatialReference(json.spatialReference);this.width=json.cols||json.width;this.height=json.rows||json.height;this.origin=json instanceof esri.layers.TileInfo?new esri.geometry.Point(json.origin):new esri.geometry.Point(dojo.mixin(json.origin,json.spatialReference));this.dpi=json.dpi;this.format=json.format;var lods=(this.lods=[]);dojo.forEach(json.lods,function(lod,i){lods[i]=new esri.layers.LOD(lod);});}});dojo.declare("esri.layers.LOD",null,{constructor:function(json){dojo.mixin(this,json);}});}if(!dojo._hasResource["esri.layers.agstiled"]){dojo._hasResource["esri.layers.agstiled"]=true;dojo.provide("esri.layers.agstiled");dojo.declare("esri.layers.ArcGISTiledMapServiceLayer",[esri.layers.TiledMapServiceLayer,esri.layers.ArcGISMapServiceLayer],{constructor:function(url,_896){if(_896){if(_896.roundrobin){dojo.deprecated(this.declaredClass+" : "+esri.bundle.layers.agstiled.deprecateRoundrobin);_896.tileServers=_896.roundrobin;}this._setTileServers(_896.tileServers);this._loadCallback=_896.loadCallback;}this._params=dojo.mixin({},this._url.query);this.tsi=0;this._initLayer=dojo.hitch(this,this._initLayer);var _897=_896&&_896.resourceInfo;if(_897){this._initLayer(_897);}else{this._load=dojo.hitch(this,this._load);this._load();}},_TILE_FORMATS:{PNG:"png",PNG8:"png",PNG24:"png",PNG32:"png",JPG:"jpg",JPEG:"jpg",GIF:"gif"},_setTileServers:function(list){this.tileServers=list;if(list&&list.length> 0){var i,il=list.length;for(i=0;i esri.config.defaults.io.postLength)||this.useMapImage){this._jsonRequest=esri.request({url:path,content:dojo.mixin(this._params,{f:"json"}),callbackParamName:"callback",load:function(_8ac,io){_8aa(esri._getProxiedUrl(_8ac.href));},error:this._errorHandler});}else{_8aa(_8ab);}},setInterpolation:function(_8ad,_8ae){this.interpolation=(this._params.interpolation=_8ad);if(!_8ae){this.refresh(true);}},setCompressionQuality:function(_8af,_8b0){this.compressionQuality=(this._params.compressionQuality=_8af);if(!_8b0){this.refresh(true);}},setBandIds:function(ids,_8b1){this.bandIds=ids;this._params.bandIds=ids.join(",");if(!_8b1){this.refresh(true);}},setDefaultBandIds:function(_8b2){this.bandIds=(this._params.bandIds=null);if(!_8b2){this.refresh(true);}},setDisableClientCaching:function(_8b3){this.disableClientCaching=_8b3;},setMosaicRule:function(_8b4,_8b5){this.mosaicRule=_8b4;this._params.mosaicRule=dojo.toJson(_8b4.toJson());if(!_8b5){this.refresh(true);}},setRenderingRule:function(_8b6,_8b7){this.renderingRule=_8b6;this._params.renderingRule=dojo.toJson(_8b6.toJson());if(!_8b7){this.refresh(true);}},setImageFormat:function(_8b8,_8b9){this.format=(this._params.format=_8b8);if(!_8b9){this.refresh(true);}},refresh:function(_8ba){if(_8ba){this.inherited(arguments);}else{var dc=this.disableClientCaching;this.disableClientCaching=true;this.inherited(arguments);this.disableClientCaching=dc;}},exportMapImage:function(_8bb,_8bc){var m=esri.config.defaults.map,p=dojo.mixin({size:m.width+","+m.height},this._params,_8bb?_8bb.toJson(this.normalization):{},{f:"json"});delete p._ts;this._exportMapImage(this._url.path+"/exportImage",p,_8bc);}});dojo.declare("esri.layers.ImageServiceParameters",null,{extent:null,width:null,height:null,imageSpatialReference:null,format:null,interpolation:null,compressionQuality:null,bandIds:null,timeExtent:null,mosaicRule:null,renderingRule:null,noData:null,toJson:function(_8bd){var ext=this.bbox||this.extent;ext=ext&&_8bd&&ext._normalize(true);var wkid=ext?(ext.spatialReference.wkid||dojo.toJson(ext.spatialReference.toJson())):null,_8be=this.imageSpatialReference,json={bbox:ext?(ext.xmin+","+ext.ymin+","+ext.xmax+","+ext.ymax):null,bboxSR:wkid,size:(this.width!==null&&this.height!==null?this.width+","+this.height:null),imageSR:(_8be?(_8be.wkid||dojo.toJson(_8be.toJson())):wkid),format:this.format,interpolation:this.interpolation,compressionQuality:this.compressionQuality,bandIds:this.bandIds?this.bandIds.join(","):null,mosaicRule:this.mosaicRule?dojo.toJson(this.mosaicRule.toJson()):null,renderingRule:this.renderingRule?dojo.toJson(this.renderingRule.toJson()):null,noData:this.noData};var _8bf=this.timeExtent;json.time=_8bf?_8bf.toJson().join(","):null;return esri.filter(json,function(_8c0){if(_8c0!==null){return true;}});}});dojo.mixin(esri.layers.ImageServiceParameters,{INTERPOLATION_BILINEAR:"RSP_BilinearInterpolation",INTERPOLATION_CUBICCONVOLUTION:"RSP_CubicConvolution",INTERPOLATION_MAJORITY:"RSP_Majority",INTERPOLATION_NEARESTNEIGHBOR:"RSP_NearestNeighbor"});dojo.declare("esri.layers.MosaicRule",null,{method:null,where:null,sortField:null,sortValue:null,ascending:false,lockRasterIds:null,viewpoint:null,objectIds:null,operation:null,toJson:function(){var json={mosaicMethod:this.method,where:this.where,sortField:this.sortField,sortValue:this.sortValue?dojo.toJson(this.sortValue):null,ascending:this.ascending,lockRasterIds:this.lockRasterIds,viewpoint:this.viewpoint?this.viewpoint.toJson():null,fids:this.objectIds,mosaicOperation:this.operation};return esri.filter(json,function(_8c1){if(_8c1!==null){return true;}});}});dojo.mixin(esri.layers.MosaicRule,{METHOD_NONE:"esriMosaicNone",METHOD_CENTER:"esriMosaicCenter",METHOD_NADIR:"esriMosaicNadir",METHOD_VIEWPOINT:"esriMosaicViewpoint",METHOD_ATTRIBUTE:"esriMosaicAttribute",METHOD_LOCKRASTER:"esriMosaicLockRaster",METHOD_NORTHWEST:"esriMosaicNorthwest",METHOD_SEAMLINE:"esriMosaicSeamline",OPERATION_FIRST:"MT_FIRST",OPERATION_LAST:"MT_LAST",OPERATION_MIN:"MT_MIN",OPERATION_MAX:"MT_MAX",OPERATION_MEAN:"MT_MEAN",OPERATION_BLEND:"MT_BLEND"});dojo.declare("esri.layers.RasterFunction",null,{functionName:null,"arguments":null,variableName:null,toJson:function(){var json={rasterFunction:this.functionName,rasterFunctionArguments:this["arguments"],variableName:this.variableName};return esri.filter(json,function(_8c2){if(_8c2!==null){return true;}});}});}if(!dojo._hasResource["esri.map"]){dojo._hasResource["esri.map"]=true;dojo.provide("esri.map");if(esri.isTouchEnabled){}else{dojo.declare("esri._MapContainer",esri._CoreMap,(function(){var dc=dojo.connect,ddc=dojo.disconnect,dh=dojo.hitch,_8c3=dojo.mixin,_8c4=dojo.isMozilla,_8c5=dojo.stopEvent,dfe=dojo.fixEvent,_8c6=esri.geometry.Point;var _8c7=navigator.userAgent.indexOf("Macintosh")!==-1?1:3,_8c8=dojo.isChrome <2?360:120,_8c9=1,_8ca=1,_8cb=300,_8cc=300;return {constructor:function(_8cd){_8c3(this,{_dragEnd:false,_clickDuration:_8cc,_downCoords:null,_clickTimer:null,_onKeyDown_connect:null,_onKeyUp_connect:null,_onMouseDragHandler_connect:null});var _8ce=this.__container,cons=this._connects;cons.push(dc(_8ce,"onselectstart",function(evt){_8c5(evt);return false;}),dc(_8ce,"ondragstart",function(evt){_8c5(evt);return false;}));if(_8c4){dojo.style(_8ce,"MozUserSelect","none");}cons.push(dc(_8ce,"onmouseenter",this,"_onMouseEnterHandler"),dc(_8ce,"onmouseleave",this,"_onMouseLeaveHandler"),dc(_8ce,"onmousedown",this,"_onMouseDownHandler"),dc(_8ce,"onclick",this,"_onClickHandler"),dc(_8ce,"ondblclick",this,"_onDblClickHandler"),dc(_8ce,dojo.isFF||_8c4?"DOMMouseScroll":"onmousewheel",this,"_onMouseWheelHandler"));this._onMouseMoveHandler_connect=dc(_8ce,"onmousemove",this,"_onMouseMoveHandler");this._onMouseUpHandler_connect=dc(_8ce,"onmouseup",this,"_onMouseUpHandler");this._processEvent=dh(this,this._processEvent);this._fireClickEvent=dh(this,this._fireClickEvent);},_cleanUp:function(){ddc(this._onMouseMoveHandler_connect);ddc(this._onMouseUpHandler_connect);ddc(this._onMouseDragHandler_connect);var cons=this._connects,i;for(i=cons.length;i> =0;i--){ddc(cons[i]);delete cons[i];}this.inherited("_cleanUp",arguments);},_processEvent:function(evt){evt=dfe(evt,evt.target);if(evt.type==="DOMMouseScroll"&&dojo.isFF <3){evt.screenPoint=new _8c6(window.scrollX+evt.screenX-this.position.x,window.scrollY+evt.screenY-this.position.y);}else{evt.screenPoint=new _8c6(evt.pageX-this.position.x,evt.pageY-this.position.y);}evt.mapPoint=this.extent?this.toMap(evt.screenPoint):new _8c6();return evt;},_onMouseEnterHandler:function(evt){ddc(this._onKeyDown_connect);ddc(this._onKeyUp_connect);this._onKeyDown_connect=dc(document,"onkeydown",this,"_onKeyDownHandler");this._onKeyUp_connect=dc(document,"onkeyup",this,"_onKeyUpHandler");this.onMouseOver(this._processEvent(evt));},_onMouseLeaveHandler:function(evt){ddc(this._onKeyDown_connect);ddc(this._onKeyUp_connect);this.onMouseOut(this._processEvent(evt));},_onMouseMoveHandler:function(evt){if(this._dragEnd){this._dragEnd=false;return;}this.onMouseMove(this._processEvent(evt));},_onMouseDownHandler:function(evt){ddc(this._onMouseMoveHandler_connect);var _8cf=this.__container;if(_8cf.setCapture){_8cf.setCapture(false);}this._onMouseDragHandler_connect=dc(document,"onmousemove",this,"_onMouseDragHandler");evt=this._processEvent(evt);this._downCoords=evt.screenPoint.x+","+evt.screenPoint.y;this.onMouseDown(evt);},_onMouseUpHandler:function(evt){var _8d0=this.__container;if(_8d0.releaseCapture){_8d0.releaseCapture();}evt=this._processEvent(evt);ddc(this._onMouseDragHandler_connect);ddc(this._onMouseMoveHandler_connect);this._onMouseMoveHandler_connect=dc(_8d0,"onmousemove",this,"_onMouseMoveHandler");this.onMouseUp(evt);},_onMouseDragHandler:function(evt){ddc(this._onMouseDragHandler_connect);this._onMouseDragHandler_connect=dc(document,"onmousemove",this,"_onMouseDraggingHandler");ddc(this._onMouseUpHandler_connect);this._onMouseUpHandler_connect=dc(document,"onmouseup",this,"_onDragMouseUpHandler");this._docLeaveConnect=dc(document,"onmouseout",this,"_onDocMouseOut");this.onMouseDragStart(this._processEvent(evt));},_onDocMouseOut:function(evt){var _8d1=evt.relatedTarget,_8d2=evt.relatedTarget&&evt.relatedTarget.nodeName.toLowerCase();if(!_8d1||(dojo.isChrome&&_8d2==="html")){this._onDragMouseUpHandler(evt);}},_onMouseDraggingHandler:function(evt){this.onMouseDrag(this._processEvent(evt));dojo.stopEvent(evt);},_onDragMouseUpHandler:function(evt){var _8d3=this.__container;if(_8d3.releaseCapture){_8d3.releaseCapture();}this._dragEnd=true;evt=this._processEvent(evt);this.onMouseDragEnd(evt);ddc(this._docLeaveConnect);ddc(this._onMouseDragHandler_connect);ddc(this._onMouseUpHandler_connect);this._onMouseMoveHandler_connect=dc(_8d3,"onmousemove",this,"_onMouseMoveHandler");this._onMouseUpHandler_connect=dc(_8d3,"onmouseup",this,"_onMouseUpHandler");this.onMouseUp(evt);},_onClickHandler:function(evt){evt=this._processEvent(evt);if(this._downCoords!==(evt.screenPoint.x+","+evt.screenPoint.y)){return;}clearTimeout(this._clickTimer);this._clickEvent=_8c3({},evt);this._clickTimer=setTimeout(this._fireClickEvent,this._clickDuration);},_fireClickEvent:function(){clearTimeout(this._clickTimer);if(dojo.isIE <9){var GL=esri.layers.GraphicsLayer;this._clickEvent.graphic=GL._clicked;delete GL._clicked;}this.onClick(this._clickEvent);},_onDblClickHandler:function(evt){clearTimeout(this._clickTimer);this.onDblClick(this._processEvent(evt));},_onMouseWheelHandler:function(evt){if(this.__canStopSWEvt()){dojo.stopEvent(evt);}var _8d4=evt.timeStamp;if(!esri._isDefined(_8d4)||_8d4 <=0){_8d4=(new Date()).getTime();}var _8d5=this._ts?(_8d4-this._ts):_8d4;if(_8d5 <50){return;}this._ts=_8d4;evt=this._processEvent(evt);var _8d6=dojo.isIE||dojo.isWebKit?evt.wheelDelta/_8c8:-evt.detail/_8c7,_8d7=Math.abs(_8d6);if(_8d7 <=_8c9){_8d7=_8c9;}else{_8d7=_8ca;}evt.value=_8d6 <0?-_8d7:_8d7;this.onMouseWheel(evt);},__canStopSWEvt:function(){},_onKeyDownHandler:function(evt){this.onKeyDown(evt);},_onKeyUpHandler:function(evt){this.onKeyUp(evt);},__setClickDuration:function(dur){this._clickDuration=dur;},__resetClickDuration:function(){this._clickDuration=_8cc;},onMouseOver:function(){},onMouseMove:function(){},onMouseOut:function(){},onMouseDown:function(){},onMouseDragStart:function(){},onMouseDrag:function(){},onMouseDragEnd:function(){},onMouseUp:function(){},onClick:function(){},onDblClick:function(){},onMouseWheel:function(){},onKeyDown:function(){},onKeyUp:function(){}};}()));}dojo.declare("esri.Map",esri._MapContainer,(function(){var _8d8=30,_8d9=30,_8da=10,_8db=1,_8dc=-1,_8dd=dojo.mouseButtons.LEFT,_8de={up:"panUp",right:"panRight",down:"panDown",left:"panLeft"},_8df={upperRight:"panUpperRight",lowerRight:"panLowerRight",lowerLeft:"panLowerLeft",upperLeft:"panUpperLeft"};var dc=dojo.connect,ddc=dojo.disconnect,dcr=dojo.create,ds=dojo.style,dh=dojo.hitch,abs=Math.abs,_8e0=dojo.coords,_8e1=dojo.deprecated,dk=dojo.keys,_8e2=dojo.mixin,Rect=esri.geometry.Rect,_8e3=esri.geometry.Point,_8e4=esri.geometry.Extent;var _8e5=[dk.NUMPAD_PLUS,61,dk.NUMPAD_MINUS,dk.UP_ARROW,dk.NUMPAD_8,dk.RIGHT_ARROW,dk.NUMPAD_6,dk.DOWN_ARROW,dk.NUMPAD_2,dk.LEFT_ARROW,dk.NUMPAD_4,dk.PAGE_UP,dk.NUMPAD_9,dk.PAGE_DOWN,dk.NUMPAD_3,dk.END,dk.NUMPAD_1,dk.HOME,dk.NUMPAD_7];return {constructor:function(_8e6,_8e7){_8e2(this,{_dragOrigin:null,_slider:null,_navDiv:null,_zoomRect:null,_mapParams:_8e2({slider:true,nav:false,logo:true,sliderStyle:"default"},_8e7||{}),_zoom:0,_keyboardPanDx:0,_keyboardPanDy:0});_8e2(this,{_onLoadHandler_connect:null,_panHandler_connect:null,_panStartHandler_connect:null,_upPanHandler_connect:null,_dblClickZoomHandler_connect:null,_recenterZoomHandler_connect:null,_recenterHandler_connect:null,_downPanHandler_connect:null,_downZoomHandler_connect:null,_keyNavigatingHandler_connect:null,_keyNavigationEndHandler_connect:null,_scrollZoomHandler_connect:null,_zoomHandler_connect:null,_upZoomHandler_connect:null});_8e2(this,{isDoubleClickZoom:false,isShiftDoubleClickZoom:false,isClickRecenter:false,isScrollWheelZoom:false,isPan:false,isRubberBandZoom:false,isKeyboardNavigation:false,isPanArrows:false,isZoomSlider:false});if(dojo.isFunction(esri._css)){esri._css=esri._css(this._mapParams.force3DTransforms);this.force3DTransforms=this._mapParams.force3DTransforms;}var _8e8=(esri._hasTransforms&&esri._hasTransitions);this.navigationMode=this._mapParams.navigationMode||(_8e8&&"css-transforms")||"classic";if(this.navigationMode==="css-transforms"&&!_8e8){this.navigationMode="classic";}this.fadeOnZoom=esri._isDefined(this._mapParams.fadeOnZoom)?this._mapParams.fadeOnZoom:(this.navigationMode==="css-transforms");if(this.navigationMode!=="css-transforms"){this.fadeOnZoom=false;}this._zoomRect=new esri.Graphic(null,new esri.symbol.SimpleFillSymbol(esri.config.defaults.map.zoomSymbol));this.setMapCursor("default");this._normalizeRect=dh(this,this._normalizeRect);this._canZoom=dh(this,this._canZoom);this._onLoadHandler_connect=dc(this,"onLoad",this,"_onLoadInitNavsHandler");if(this._mapParams.logo){var _8e9={right:(this._mapParams.nav?"25px":"")};if(dojo.isIE===6){_8e9.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='crop', src='" http://www.citymap.odessa.ua/+dojo.moduleUrl("esri","../../images/map/logo-med.png")+"')";}var logo=this._ogol=dcr("div",{style:_8e9},this.root);if((this.root.clientWidth*this.root.clientHeight) <250000){dojo.addClass(logo,"logo-sm");}else{dojo.addClass(logo,"logo-med");}if(!esri.isTouchEnabled){this._ogol_connect=dc(logo,"onclick",this,"_openLogoLink");}}if(esri.isTouchEnabled){this._panInitEvent="onTouchStart";this._zoomInitEvent="onGestureStart";}else{this._panInitEvent="onMouseDown";this._zoomInitEvent="onMouseDown";}},_cleanUp:function(){this.disableMapNavigation();var i;for(i=this._connects.length;i> =0;i--){ddc(this._connects[i]);delete this._connects[i];}ddc(this._slider_connect);ddc(this._ogol_connect);var _8ea=this._slider;if(_8ea&&_8ea.destroy){_8ea.destroy();}var _8eb=this._navDiv;if(_8eb){dojo.destroy(_8eb);}this.inherited("_cleanUp",arguments);},_normalizeRect:function(evt){var xy=evt.screenPoint,dx=this._dragOrigin.x,dy=this._dragOrigin.y,rect=new Rect((xy.x 0)){return false;}return true;},_scrollZoomHandler:function(evt){if(!this._canZoom(evt.value)){return;}this._extentUtil({numLevels:evt.value,mapAnchor:evt.mapPoint,screenAnchor:evt.screenPoint});},_keyNavigatingHandler:function(evt){var kc=evt.keyCode;if(dojo.indexOf(_8e5,kc)!==-1){if(kc===dk.NUMPAD_PLUS||kc===61){this._extentUtil({numLevels:1});}else{if(kc===dk.NUMPAD_MINUS){this._extentUtil({numLevels:-1});}else{if(!this.__panning){this.__panStart(0,0);}switch(kc){case dk.UP_ARROW:case dk.NUMPAD_8:this._keyboardPanDy+=_8da;break;case dk.RIGHT_ARROW:case dk.NUMPAD_6:this._keyboardPanDx-=_8da;break;case dk.DOWN_ARROW:case dk.NUMPAD_2:this._keyboardPanDy-=_8da;break;case dk.LEFT_ARROW:case dk.NUMPAD_4:this._keyboardPanDx+=_8da;break;case dk.PAGE_UP:case dk.NUMPAD_9:this._keyboardPanDx-=_8da;this._keyboardPanDy+=_8da;break;case dk.PAGE_DOWN:case dk.NUMPAD_3:this._keyboardPanDx-=_8da;this._keyboardPanDy-=_8da;break;case dk.END:case dk.NUMPAD_1:this._keyboardPanDx+=_8da;this._keyboardPanDy-=_8da;break;case dk.HOME:case dk.NUMPAD_7:this._keyboardPanDx+=_8da;this._keyboardPanDy+=_8da;break;default:return;}this.__pan(this._keyboardPanDx,this._keyboardPanDy);}}dojo.stopEvent(evt);}},_keyNavigationEndHandler:function(evt){if(this.__panning&&(evt.keyCode!==dk.SHIFT)){this.__panEnd(this._keyboardPanDx,this._keyboardPanDy);this._keyboardPanDx=this._keyboardPanDy=0;}},_onLoadInitNavsHandler:function(){this.enableMapNavigation();this._createNav();if(this._mapParams.sliderStyle==="small"||!this._createSlider){this._createSimpleSlider();}else{this._createSlider();}ddc(this._onLoadHandler_connect);},_createNav:function(){if(this._mapParams.nav){var div,v,i,_8f5=dojo.addClass,id=this.id;this._navDiv=dcr("div",{id:id+"_navdiv"},this.root);_8f5(this._navDiv,"navDiv");var w2=this.width/2,h2=this.height/2,wh;for(i in _8de){v=_8de[i];div=dcr("div",{id:id+"_pan_"+i},this._navDiv);_8f5(div,"fixedPan "+v);if(i==="up"||i==="down"){wh=parseInt(_8e0(div).w,10)/2;ds(div,{left:(w2-wh)+"px",zIndex:_8d8});}else{wh=parseInt(_8e0(div).h,10)/2;ds(div,{top:(h2-wh)+"px",zIndex:_8d8});}this._connects.push(dc(div,"onclick",dh(this,this[v])));}this._onMapResizeNavHandler_connect=dc(this,"onResize",this,"_onMapResizeNavHandler");for(i in _8df){v=_8df[i];div=dcr("div",{id:id+"_pan_"+i,style:{zIndex:_8d8}},this._navDiv);_8f5(div,"fixedPan "+v);this._connects.push(dc(div,"onclick",dh(this,this[v])));}this.isPanArrows=true;}},_onMapResizeNavHandler:function(_8f6,wd,ht){var id=this.id,w2=wd/2,h2=ht/2,byId=dojo.byId,i,div,wh;for(i in _8de){div=byId(id+"_pan_"+i);if(i==="up"||i==="down"){wh=parseInt(_8e0(div).w,10)/2;ds(div,"left",(w2-wh)+"px");}else{wh=parseInt(_8e0(div).h,10)/2;ds(div,"top",(h2-wh)+"px");}}},_createSimpleSlider:function(){if(this._mapParams.slider){var _8f7=(this._slider=dcr("div",{id:this.id+"_zoom_slider","class":"esriSimpleSlider",style:"z-index: "+_8d9+";"}));dojo.addClass(_8f7,esri.config.defaults.map.slider.width?"esriSimpleSliderHorizontal":"esriSimpleSliderVertical");var _8f8=dcr("div",{"class":"esriSimpleSliderIncrementButton"},_8f7);_8f8.innerHTML="+";var _8f9=dcr("div",{"class":"esriSimpleSliderDecrementButton"},_8f7);_8f9.innerHTML="-";if(dojo.isIE <8){dojo.addClass(_8f9,"dj_ie67Fix");}this._connects.push(dc(_8f8,"onclick",this,this._simpleSliderChangeHandler));this._connects.push(dc(_8f9,"onclick",this,this._simpleSliderChangeHandler));this.root.appendChild(_8f7);this.isZoomSlider=true;}},_simpleSliderChangeHandler:function(evt){var _8fa=(evt.currentTarget.className.indexOf("IncrementButton")!==-1)?true:false;this._extentUtil({numLevels:_8fa?1:-1});},_createSlider:function(){if(this._mapParams.slider){var div=dcr("div",{id:this.id+"_zoom_slider"},this.root),_8fb=esri.config.defaults.map,_8fc=_8fb.slider.width,_8fd=_8fc?dijit.form.HorizontalSlider:dijit.form.VerticalSlider,_8fe=dojo.toJson(_8e2({position:"absolute"},_8fb.slider)),_8ff=this.getNumLevels(),_900=dijit.form,i,il,_901;_8fe=_8fe.substring(1,_8fe.length-1).split("\"").join("").split(",").join(";");if(_8ff> 0){var _902,_903,_904,_905,_906,_907=_8fb.sliderLabel;if(_907){var _908=_8fc?_900.HorizontalRule:_900.VerticalRule,_909=_8fc?_900.HorizontalRuleLabels:_900.VerticalRuleLabels,cont=_8fc?"topDecoration":"rightDecoration",tick=_8fc?"height:"+_907.tick+"px":"width:"+_907.tick+"px";_906=_907.labels;if(_906===null){_906=[];for(i=0,il=_8ff;i =0||_90d.indexOf("dijitSliderDecrementIcon")> =0)){dojo.forEach(_90b,ddc);}});var _90e=_901.incrementButton,_90f=_901.decrementButton;_90e.style.outline="none";_90f.style.outline="none";_901._connects.push([dc(_90e,"onmousedown",_901,function(e){this._typematicCallback(1,_90e,e);}),dc(_90f,"onmousedown",_901,function(e){this._typematicCallback(1,_90f,e);})]);_901.sliderHandle.style.outline="none";_901._onKeyPress=function(){};var _910=_901._movable;if(_910){var _911=_910.onMouseDown;_910.onMouseDown=function(e){if(dojo.isIE <9&&e.button!==1){return;}_911.apply(this,arguments);};}this.isZoomSlider=true;}},_onSliderMoveStartHandler:function(){ddc(this._slider_connect);ddc(this._slidermovestop_connect);this._slider_connect=dc(this._slider,"onChange",this,"_onSliderChangeDragHandler");this._slidermovestop_connect=dc(this._slider._movable,"onMoveStop",this,"_onSliderMoveEndHandler");},_onSliderChangeDragHandler:function(_912){this._extentUtil({targetLevel:_912});},_onSliderMoveEndHandler:function(){ddc(this._slider_connect);ddc(this._slidermovestop_connect);},_onSliderChangeHandler:function(_913){this.setLevel(_913);},_updateSliderValue:function(_914,_915){ddc(this._slider_connect);var _916=this._slider;var _917=_916._onChangeActive;_916._onChangeActive=false;_916.set("value",_914);_916._onChangeActive=_917;this._slider_connect=dc(_916,"onChange",this,_915);},_onExtentChangeSliderHandler:function(_918,_919,_91a,lod){ddc(this._slidermovestop_connect);this._updateSliderValue(lod.level,"_onSliderChangeHandler");},_onDynSliderChangeHandler:function(_91b){this._extentUtil({numLevels:_91b> 0?1:-1});},_onExtentChangeDynSliderHandler:function(){this._updateSliderValue(1,"_onDynSliderChangeHandler");},_openLogoLink:function(evt){window.open(esri.config.defaults.map.logoLink,"_blank");dojo.stopEvent(evt);},enableMapNavigation:function(){this.enableDoubleClickZoom();this.enableClickRecenter();this.enablePan();this.enableRubberBandZoom();this.enableKeyboardNavigation();this.enableScrollWheelZoom();},disableMapNavigation:function(){this.disableDoubleClickZoom();this.disableClickRecenter();this.disablePan();this.disableRubberBandZoom();this.disableKeyboardNavigation();this.disableScrollWheelZoom();},enableDoubleClickZoom:function(){if(!this.isDoubleClickZoom){this._dblClickZoomHandler_connect=dc(this,"onDblClick",this,"_dblClickZoomHandler");this.isDoubleClickZoom=true;}},disableDoubleClickZoom:function(){if(this.isDoubleClickZoom){ddc(this._dblClickZoomHandler_connect);this.isDoubleClickZoom=false;}},enableShiftDoubleClickZoom:function(){if(!this.isShiftDoubleClickZoom){_8e1(this.declaredClass+": "+esri.bundle.map.deprecateShiftDblClickZoom,null,"v2.0");this._recenterZoomHandler_connect=dc(this,"onDblClick",this,"_recenterZoomHandler");this.isShiftDoubleClickZoom=true;}},disableShiftDoubleClickZoom:function(){if(this.isShiftDoubleClickZoom){_8e1(this.declaredClass+": "+esri.bundle.map.deprecateShiftDblClickZoom,null,"v2.0");ddc(this._recenterZoomHandler_connect);this.isShiftDoubleClickZoom=false;}},enableClickRecenter:function(){if(!this.isClickRecenter){this._recenterHandler_connect=dc(this,"onClick",this,"_recenterHandler");this.isClickRecenter=true;}},disableClickRecenter:function(){if(this.isClickRecenter){ddc(this._recenterHandler_connect);this.isClickRecenter=false;}},enablePan:function(){if(!this.isPan){this._downPanHandler_connect=dc(this,this._panInitEvent,this,"_downPanHandler");this.isPan=true;}},disablePan:function(){if(this.isPan){ddc(this._downPanHandler_connect);this.isPan=false;}},enableRubberBandZoom:function(){if(!this.isRubberBandZoom){this._downZoomHandler_connect=dc(this,this._zoomInitEvent,this,"_downZoomHandler");this.isRubberBandZoom=true;}},disableRubberBandZoom:function(){if(this.isRubberBandZoom){ddc(this._downZoomHandler_connect);this.isRubberBandZoom=false;}},enableKeyboardNavigation:function(){if(!this.isKeyboardNavigation){this._keyNavigatingHandler_connect=dc(this,"onKeyDown",this,"_keyNavigatingHandler");this._keyNavigationEndHandler_connect=dc(this,"onKeyUp",this,"_keyNavigationEndHandler");this.isKeyboardNavigation=true;}},disableKeyboardNavigation:function(){if(this.isKeyboardNavigation){ddc(this._keyNavigatingHandler_connect);ddc(this._keyNavigationEndHandler_connect);this.isKeyboardNavigation=false;}},enableScrollWheelZoom:function(){if(!this.isScrollWheelZoom){this._scrollZoomHandler_connect=dc(this,"onMouseWheel",this,"_scrollZoomHandler");this.isScrollWheelZoom=true;}},__canStopSWEvt:function(){return this.isScrollWheelZoom;},disableScrollWheelZoom:function(){if(this.isScrollWheelZoom){ddc(this._scrollZoomHandler_connect);this.isScrollWheelZoom=false;}},showPanArrows:function(){if(this._navDiv){esri.show(this._navDiv);this.isPanArrows=true;}},hidePanArrows:function(){if(this._navDiv){esri.hide(this._navDiv);this.isPanArrows=false;}},showZoomSlider:function(){if(this._slider){ds(this._slider.domNode||this._slider,"visibility","visible");this.isZoomSlider=true;}},hideZoomSlider:function(){if(this._slider){ds(this._slider.domNode||this._slider,"visibility","hidden");this.isZoomSlider=false;}}};}()));if(esri.isTouchEnabled){dojo.extend(esri.Map,(function(){var dc=dojo.connect,ddc=dojo.disconnect,_91c=esri.geometry.Point,_91d=esri.geometry.getLength,_91e=esri.TileUtils.getCandidateTileInfo;return {_multiTouchTapZoomHandler:function(evt){if(!this._isPanningOrZooming()){evt.value=-1;this._scrollZoomHandler(evt);}},_downPanHandler:function(evt){var _91f=this._zoomAnim||this._panAnim;if(_91f&&_91f._active){_91f.stop();_91f._fire("onEnd",[_91f.node]);}this._dragOrigin=new _91c(0,0);dojo.mixin(this._dragOrigin,evt.screenPoint);ddc(this._panHandler_connect);ddc(this._upPanHandler_connect);this._panHandler_connect=dc(this,"onTouchMove",this,this._panHandler);this._upPanHandler_connect=dc(this,"onTouchEnd",this,this._upPanHandler);},_panHandler:function(evt){evt.preventDefault();if(this.__panning){this._panX=evt.screenPoint.x;this._panY=evt.screenPoint.y;this.__pan(evt.screenPoint.x-this._dragOrigin.x,evt.screenPoint.y-this._dragOrigin.y);}else{this.setCursor("move");this.__panStart(evt.screenPoint.x,evt.screenPoint.y);}},_upPanHandler:function(evt){ddc(this._panHandler_connect);ddc(this._upPanHandler_connect);if(this.__panning){this.__panEnd(evt.screenPoint.x-this._dragOrigin.x,evt.screenPoint.y-this._dragOrigin.y);this.resetMapCursor();}},_downZoomHandler:function(evt){var _920=this._zoomAnim||this._panAnim;if(_920&&_920._active){_920.stop();_920._fire("onEnd",[_920.node]);}else{if(this.__panning){evt.screenPoint=new _91c(this._panX,this._panY);evt.mapPoint=this.toMap(evt.screenPoint);this._upPanHandler(evt);}}ddc(this._zoomHandler_connect);ddc(this._upZoomHandler_connect);this._zoomHandler_connect=dc(this,"onGestureChange",this,this._zoomHandler);this._upZoomHandler_connect=dc(this,"onGestureEnd",this,this._upZoomHandler);},_zoomHandler:function(evt){if(evt.screenPoints){evt.preventDefault();this.currLength=_91d(evt.screenPoints[0],evt.screenPoints[1]);if(this.__zooming){var _921=this.currLength/this._length;this._zoomStartExtent=this.__scaleExtent(this.extent,_921,this._dragOrigin);this.__zoom(this._zoomStartExtent,_921,this._dragOrigin);}else{this._dragOrigin=new _91c((evt.screenPoints[0].x+evt.screenPoints[1].x)/2,(evt.screenPoints[0].y+evt.screenPoints[1].y)/2);this._length=this.currLength;this.__zoomStart(this.extent,this._dragOrigin);}this._fireOnScale(this.currLength/this._length,this._dragOrigin,true);}},_upZoomHandler:function(evt){ddc(this._zoomHandler_connect);ddc(this._upZoomHandler_connect);if(evt.processMultiTouchTap){this._multiTouchTapZoomHandler(evt);evt.preventDefault();}else{if(this.__zooming&&this._zoomAnim===null){var _922=this.currLength/this._length,_923=this.extent.getWidth();this._zoomAnimAnchor=this.toMap(this._dragOrigin);this._zoomStartExtent=this.__scaleExtent(this.extent,1/_922,this._zoomAnimAnchor);if(this.__tileInfo){var ct=_91e(this,this.__tileInfo,this._zoomStartExtent),_924=this.__getExtentForLevel(ct.lod.level,this._zoomAnimAnchor),_925=this.getNumLevels()-1,_926=_924.extent,_927=_924.lod,_928=_923/_926.getWidth(),_929=ct.lod.level;if(_922 <1){if(_928> _922){_929--;}}else{if(_928 <_922){_929++;}}if(_929 <0){_929=0;}else{if(_929> _925){_929=_925;}}if(_929!==ct.lod.level){_924=this.__getExtentForLevel(_929,this._zoomAnimAnchor);_926=_924.extent;_927=_924.lod;}this._zoomEndExtent=_926;this._zoomEndLod=_927;this._zoomAnim=esri.fx.animateRange({range:{start:(_923/this._zoomStartExtent.getWidth()),end:_928},duration:esri.config.defaults.map.zoomDuration,rate:esri.config.defaults.map.zoomRate,onAnimate:dojo.hitch(this,"_adjustZoomHandler"),onEnd:dojo.hitch(this,"_adjustZoomEndHandler")}).play();this._fireOnScale(this.extent.getWidth()/this._zoomEndExtent.getWidth(),this._dragOrigin);}else{this._zoomEndExtent=this._zoomStartExtent;this._fireOnScale(this.extent.getWidth()/this._zoomEndExtent.getWidth(),this._dragOrigin);this._adjustZoomEndHandler();}}}},_adjustZoomHandler:function(_92a){var _92b=this.__scaleExtent(this.extent,_92a,this._zoomAnimAnchor);this.__zoom(_92b,_92a,this._dragOrigin);},_adjustZoomEndHandler:function(){var _92c=this.extent.getWidth()/this._zoomEndExtent.getWidth(),_92d=this.__scaleExtent(this.extent,1/_92c,this._zoomAnimAnchor);this.__zoomEnd(_92d,_92c,this._dragOrigin,this._zoomEndLod,true);this._zoomStartExtent=this._zoomEndExtent=this._zoomEndLod=this._dragOrigin=this._zoomAnim=this._zoomAnimAnchor=null;}};}()));}}if(!dojo._hasResource["esri.tasks._task"]){dojo._hasResource["esri.tasks._task"]=true;dojo.provide("esri.tasks._task");dojo.declare("esri.tasks._Task",null,{constructor:function(url){if(url&&dojo.isString(url)){this._url=esri.urlToObject(this.url=url);}this.normalization=true;this._errorHandler=dojo.hitch(this,this._errorHandler);},_encode:function(_92e,_92f,_930){var _931,type,_932={},i,p,pl;for(i in _92e){if(i==="declaredClass"){continue;}_931=_92e[i];type=typeof (_931);if(_931!==null&&_931!==undefined&&type!=="function"){if(dojo.isArray(_931)){_932[i]=[];pl=_931.length;for(p=0;p 0){var _a47=_a46[0].type==="extent"?"esriGeometryPolygon":esri.geometry.getJsonType(_a46[0]);json.geometries=dojo.toJson({geometryType:_a47,geometries:_a45});json.inSR=_a46[0].spatialReference.wkid?_a46[0].spatialReference.wkid:dojo.toJson(_a46[0].spatialReference.toJson());}if(dt){json.distances=dt.join(",");}if(_a43){json.outSR=_a43.wkid?_a43.wkid:dojo.toJson(_a43.toJson());}if(_a44){json.bufferSR=_a44.wkid?_a44.wkid:dojo.toJson(_a44.toJson());}return json;},_extentToPolygon:function(_a48){var xmin=_a48.xmin,ymin=_a48.ymin,xmax=_a48.xmax,ymax=_a48.ymax;return new esri.geometry.Polygon({"rings":[[[xmin,ymin],[xmin,ymax],[xmax,ymax],[xmax,ymin],[xmin,ymin]]],"spatialReference":_a48.spatialReference.toJson()});}});dojo.mixin(esri.tasks.GeometryService,{UNIT_METER:9001,UNIT_GERMAN_METER:9031,UNIT_FOOT:9002,UNIT_SURVEY_FOOT:9003,UNIT_CLARKE_FOOT:9005,UNIT_FATHOM:9014,UNIT_NAUTICAL_MILE:9030,UNIT_SURVEY_CHAIN:9033,UNIT_SURVEY_LINK:9034,UNIT_SURVEY_MILE:9035,UNIT_KILOMETER:9036,UNIT_CLARKE_YARD:9037,UNIT_CLARKE_CHAIN:9038,UNIT_CLARKE_LINK:9039,UNIT_SEARS_YARD:9040,UNIT_SEARS_FOOT:9041,UNIT_SEARS_CHAIN:9042,UNIT_SEARS_LINK:9043,UNIT_BENOIT_1895A_YARD:9050,UNIT_BENOIT_1895A_FOOT:9051,UNIT_BENOIT_1895A_CHAIN:9052,UNIT_BENOIT_1895A_LINK:9053,UNIT_BENOIT_1895B_YARD:9060,UNIT_BENOIT_1895B_FOOT:9061,UNIT_BENOIT_1895B_CHAIN:9062,UNIT_BENOIT_1895B_LINK:9063,UNIT_INDIAN_FOOT:9080,UNIT_INDIAN_1937_FOOT:9081,UNIT_INDIAN_1962_FOOT:9082,UNIT_INDIAN_1975_FOOT:9083,UNIT_INDIAN_YARD:9084,UNIT_INDIAN_1937_YARD:9085,UNIT_INDIAN_1962_YARD:9086,UNIT_INDIAN_1975_YARD:9087,UNIT_FOOT_1865:9070,UNIT_RADIAN:9101,UNIT_DEGREE:9102,UNIT_ARCMINUTE:9103,UNIT_ARCSECOND:9104,UNIT_GRAD:9105,UNIT_GON:9106,UNIT_MICRORADIAN:9109,UNIT_ARCMINUTE_CENTESIMAL:9112,UNIT_ARCSECOND_CENTESIMAL:9113,UNIT_MIL6400:9114,UNIT_BRITISH_1936_FOOT:9095,UNIT_GOLDCOAST_FOOT:9094,UNIT_INTERNATIONAL_CHAIN:109003,UNIT_INTERNATIONAL_LINK:109004,UNIT_INTERNATIONAL_YARD:109001,UNIT_STATUTE_MILE:9093,UNIT_SURVEY_YARD:109002,UNIT_50KILOMETER_LENGTH:109030,UNIT_150KILOMETER_LENGTH:109031,UNIT_DECIMETER:109005,UNIT_CENTIMETER:109006,UNIT_MILLIMETER:109007,UNIT_INTERNATIONAL_INCH:109008,UNIT_US_SURVEY_INCH:109009,UNIT_INTERNATIONAL_ROD:109010,UNIT_US_SURVEY_ROD:109011,UNIT_US_NAUTICAL_MILE:109012,UNIT_UK_NAUTICAL_MILE:109013,UNIT_SQUARE_INCHES:"esriSquareInches",UNIT_SQUARE_FEET:"esriSquareFeet",UNIT_SQUARE_YARDS:"esriSquareYards",UNIT_ACRES:"esriAcres",UNIT_SQUARE_MILES:"esriSquareMiles",UNIT_SQUARE_MILLIMETERS:"esriSquareMillimeters",UNIT_SQUARE_CENTIMETERS:"esriSquareCentimeters",UNIT_SQUARE_DECIMETERS:"esriSquareDecimeters",UNIT_SQUARE_METERS:"esriSquareMeters",UNIT_ARES:"esriAres",UNIT_HECTARES:"esriHectares",UNIT_SQUARE_KILOMETERS:"esriSquareKilometers"});dojo.declare("esri.tasks.AreasAndLengthsParameters",null,{polygons:null,lengthUnit:null,areaUnit:null,toJson:function(){var _a49=dojo.map(this.polygons,function(geom){return geom.toJson();});var json={};json.polygons=dojo.toJson(_a49);var _a4a=this.polygons[0].spatialReference;json.sr=_a4a.wkid?_a4a.wkid:dojo.toJson(_a4a.toJson());if(this.lengthUnit){json.lengthUnit=this.lengthUnit;}if(this.areaUnit){if(dojo.isString(this.areaUnit)){json.areaUnit=dojo.toJson({"areaUnit":this.areaUnit});}else{json.areaUnit=this.areaUnit;}}return json;}});dojo.declare("esri.tasks.LengthsParameters",null,{polylines:null,lengthUnit:null,geodesic:null,toJson:function(){var _a4b=dojo.map(this.polylines,function(geom){return geom.toJson();});var json={};json.polylines=dojo.toJson(_a4b);var _a4c=this.polylines[0].spatialReference;json.sr=_a4c.wkid?_a4c.wkid:dojo.toJson(_a4c.toJson());if(this.lengthUnit){json.lengthUnit=this.lengthUnit;}if(this.geodesic){json.geodesic=this.geodesic;}return json;}});dojo.declare("esri.tasks.RelationParameters",null,{geometries1:null,geometries2:null,relation:null,relationParam:null,toJson:function(){var _a4d=dojo.map(this.geometries1,function(geom){return geom.toJson();});var _a4e=dojo.map(this.geometries2,function(geom){return geom.toJson();});var json={};var _a4f=this.geometries1;if(_a4f&&_a4f.length> 0){json.geometries1=dojo.toJson({geometryType:esri.geometry.getJsonType(_a4f[0]),geometries:_a4d});var _a50=this.geometries1[0].spatialReference;json.sr=_a50.wkid?_a50.wkid:dojo.toJson(_a50.toJson());}var _a51=this.geometries2;if(_a51&&_a51.length> 0){json.geometries2=dojo.toJson({geometryType:esri.geometry.getJsonType(_a51[0]),geometries:_a4e});}if(this.relation){json.relation=this.relation;}if(this.relationParam){json.relationParam=dojo.toJson(this.relationParam);}return json;}});dojo.mixin(esri.tasks.RelationParameters,{SPATIAL_REL_CROSS:"esriGeometryRelationCross",SPATIAL_REL_DISJOINT:"esriGeometryRelationDisjoint",SPATIAL_REL_IN:"esriGeometryRelationIn",SPATIAL_REL_INTERIORINTERSECTION:"esriGeometryRelationInteriorIntersection",SPATIAL_REL_INTERSECTION:"esriGeometryRelationIntersection",SPATIAL_REL_COINCIDENCE:"esriGeometryRelationLineCoincidence",SPATIAL_REL_LINETOUCH:"esriGeometryRelationLineTouch",SPATIAL_REL_OVERLAP:"esriGeometryRelationOverlap",SPATIAL_REL_POINTTOUCH:"esriGeometryRelationPointTouch",SPATIAL_REL_TOUCH:"esriGeometryRelationTouch",SPATIAL_REL_WITHIN:"esriGeometryRelationWithin",SPATIAL_REL_RELATION:"esriGeometryRelationRelation"});dojo.declare("esri.tasks.DensifyParameters",null,{geometries:null,geodesic:null,lengthUnit:null,maxSegmentLength:null,toJson:function(){var _a52=dojo.map(this.geometries,function(geom){return geom.toJson();});var json={};if(this.geometries&&this.geometries.length> 0){json.geometries=dojo.toJson({geometryType:esri.geometry.getJsonType(this.geometries[0]),geometries:_a52});json.sr=dojo.toJson(this.geometries[0].spatialReference.toJson());}if(this.geodesic){json.geodesic=this.geodesic;}if(this.lengthUnit){json.lengthUnit=this.lengthUnit;}if(this.maxSegmentLength){json.maxSegmentLength=this.maxSegmentLength;}return json;}});dojo.declare("esri.tasks.GeneralizeParameters",null,{geometries:null,deviationUnit:null,maxDeviation:null,toJson:function(){var _a53=dojo.map(this.geometries,function(geom){return geom.toJson();});var json={};if(this.geometries&&this.geometries.length> 0){json.geometries=dojo.toJson({geometryType:esri.geometry.getJsonType(this.geometries[0]),geometries:_a53});json.sr=dojo.toJson(this.geometries[0].spatialReference.toJson());}if(this.deviationUnit){json.deviationUnit=this.deviationUnit;}if(this.maxDeviation){json.maxDeviation=this.maxDeviation;}return json;}});dojo.declare("esri.tasks.OffsetParameters",null,{geometries:null,bevelRatio:null,offsetDistance:null,offsetHow:null,offsetUnit:null,toJson:function(){var _a54=dojo.map(this.geometries,function(geom){return geom.toJson();});var json={};if(this.geometries&&this.geometries.length> 0){json.geometries=dojo.toJson({geometryType:esri.geometry.getJsonType(this.geometries[0]),geometries:_a54});json.sr=dojo.toJson(this.geometries[0].spatialReference.toJson());}if(this.bevelRatio){json.bevelRatio=this.bevelRatio;}if(this.offsetDistance){json.offsetDistance=this.offsetDistance;}if(this.offsetHow){json.offsetHow=this.offsetHow;}if(this.offsetUnit){json.offsetUnit=this.offsetUnit;}return json;}});dojo.mixin(esri.tasks.OffsetParameters,{OFFSET_BEVELLED:"esriGeometryOffsetBevelled",OFFSET_MITERED:"esriGeometryOffsetMitered",OFFSET_ROUNDED:"esriGeometryOffsetRounded"});dojo.declare("esri.tasks.DistanceParameters",null,{geometry1:null,geometry2:null,distanceUnit:null,geodesic:null,toJson:function(){var json={};var _a55=this.geometry1;if(_a55){json.geometry1=dojo.toJson({geometryType:esri.geometry.getJsonType(_a55),geometry:_a55});}var _a56=this.geometry2;if(_a56){json.geometry2=dojo.toJson({geometryType:esri.geometry.getJsonType(_a56),geometry:_a56});}json.sr=dojo.toJson(this.geometry1.spatialReference.toJson());if(this.distanceUnit){json.distanceUnit=this.distanceUnit;}if(this.geodesic){json.geodesic=this.geodesic;}return json;}});}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.getObject("cldr.supplemental",true,dojo);dojo.cldr.supplemental.getFirstDayOfWeek=function(_a57){var _a58={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,sy:6,tn:6,ye:6,ar:0,as:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,il:0,"in":0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mn:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,zw:0};var _a59=dojo.cldr.supplemental._region(_a57);var dow=_a58[_a59];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_a5a){_a5a=dojo.i18n.normalizeLocale(_a5a);var tags=_a5a.split("-");var _a5b=tags[1];if(!_a5b){_a5b={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];}else{if(_a5b.length==4){_a5b=tags[2];}}return _a5b;};dojo.cldr.supplemental.getWeekend=function(_a5c){var _a5d={"in":0,af:4,dz:4,ir:4,om:4,sa:4,ye:4,ae:5,bh:5,eg:5,il:5,iq:5,jo:5,kw:5,ly:5,ma:5,qa:5,sd:5,sy:5,tn:5};var _a5e={af:5,dz:5,ir:5,om:5,sa:5,ye:5,ae:6,bh:5,eg:6,il:6,iq:6,jo:6,kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6};var _a5f=dojo.cldr.supplemental._region(_a5c);var _a60=_a5d[_a5f];var end=_a5e[_a5f];if(_a60===undefined){_a60=6;}if(end===undefined){end=0;}return {start:_a60,end:end};};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");dojo.getObject("date.locale",true,dojo);(function(){function _a61(_a62,_a63,_a64,_a65){return _a65.replace(/([a-z])\1*/ig,function(_a66){var s,pad,c=_a66.charAt(0),l=_a66.length,_a67=["abbr","wide","narrow"];switch(c){case "G":s=_a63[(l <4)?"eraAbbr":"eraNames"][_a62.getFullYear() <0?0:1];break;case "y":s=_a62.getFullYear();switch(l){case 1:break;case 2:if(!_a64.fullYear){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_a62.getMonth()+1)/3);pad=true;break;case "M":var m=_a62.getMonth();if(l <3){s=m+1;pad=true;}else{var _a68=["months","format",_a67[l-3]].join("-");s=_a63[_a68][m];}break;case "w":var _a69=0;s=dojo.date.locale._getWeekOfYear(_a62,_a69);pad=true;break;case "d":s=_a62.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_a62);pad=true;break;case "E":var d=_a62.getDay();if(l <3){s=d+1;pad=true;}else{var _a6a=["days","format",_a67[l-3]].join("-");s=_a63[_a6a][d];}break;case "a":var _a6b=(_a62.getHours() <12)?"am":"pm";s=_a64[_a6b]||_a63["dayPeriods-format-wide-"+_a6b];break;case "h":case "H":case "K":case "k":var h=_a62.getHours();switch(c){case "h":s=(h%12)||12;break;case "H":s=h;break;case "K":s=(h%12);break;case "k":s=h||24;break;}pad=true;break;case "m":s=_a62.getMinutes();pad=true;break;case "s":s=_a62.getSeconds();pad=true;break;case "S":s=Math.round(_a62.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.locale._getZone(_a62,true,_a64);if(s){break;}l=4;case "Z":var _a6c=dojo.date.locale._getZone(_a62,false,_a64);var tz=[(_a6c <=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_a6c)/60),2),dojo.string.pad(Math.abs(_a6c)%60,2)];if(l==4){tz.splice(0,0,"GMT");tz.splice(3,0,":");}s=tz.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+_a65);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale._getZone=function(_a6d,_a6e,_a6f){if(_a6e){return dojo.date.getTimezoneName(_a6d);}else{return _a6d.getTimezoneOffset();}};dojo.date.locale.format=function(_a70,_a71){_a71=_a71||{};var _a72=dojo.i18n.normalizeLocale(_a71.locale),_a73=_a71.formatLength||"short",_a74=dojo.date.locale._getGregorianBundle(_a72),str=[],_a75=dojo.hitch(this,_a61,_a70,_a74,_a71);if(_a71.selector=="year"){return _a76(_a74["dateFormatItem-yyyy"]||"yyyy",_a75);}var _a77;if(_a71.selector!="date"){_a77=_a71.timePattern||_a74["timeFormat-"+_a73];if(_a77){str.push(_a76(_a77,_a75));}}if(_a71.selector!="time"){_a77=_a71.datePattern||_a74["dateFormat-"+_a73];if(_a77){str.push(_a76(_a77,_a75));}}return str.length==1?str[0]:_a74["dateTimeFormat-"+_a73].replace(/\{(\d+)\}/g,function(_a78,key){return str[key];});};dojo.date.locale.regexp=function(_a79){return dojo.date.locale._parseInfo(_a79).regexp;};dojo.date.locale._parseInfo=function(_a7a){_a7a=_a7a||{};var _a7b=dojo.i18n.normalizeLocale(_a7a.locale),_a7c=dojo.date.locale._getGregorianBundle(_a7b),_a7d=_a7a.formatLength||"short",_a7e=_a7a.datePattern||_a7c["dateFormat-"+_a7d],_a7f=_a7a.timePattern||_a7c["timeFormat-"+_a7d],_a80;if(_a7a.selector=="date"){_a80=_a7e;}else{if(_a7a.selector=="time"){_a80=_a7f;}else{_a80=_a7c["dateTimeFormat-"+_a7d].replace(/\{(\d+)\}/g,function(_a81,key){return [_a7f,_a7e][key];});}}var _a82=[],re=_a76(_a80,dojo.hitch(this,_a83,_a82,_a7c,_a7a));return {regexp:re,tokens:_a82,bundle:_a7c};};dojo.date.locale.parse=function(_a84,_a85){var _a86=/[\u200E\u200F\u202A\u202E]/g,info=dojo.date.locale._parseInfo(_a85),_a87=info.tokens,_a88=info.bundle,re=new RegExp("^"+info.regexp.replace(_a86,"")+"$",info.strict?"":"i"),_a89=re.exec(_a84&&_a84.replace(_a86,""));if(!_a89){return null;}var _a8a=["abbr","wide","narrow"],_a8b=[1970,0,1,0,0,0,0],amPm="",_a8c=dojo.every(_a89,function(v,i){if(!i){return true;}var _a8d=_a87[i-1];var l=_a8d.length;switch(_a8d.charAt(0)){case "y":if(l!=2&&_a85.strict){_a8b[0]=v;}else{if(v <100){v=Number(v);var year=""+new Date().getFullYear(),_a8e=year.substring(0,2)*100,_a8f=Math.min(Number(year.substring(2,4))+20,99),num=(v <_a8f)?_a8e+v:_a8e-100+v;_a8b[0]=num;}else{if(_a85.strict){return false;}_a8b[0]=v;}}break;case "M":if(l> 2){var _a90=_a88["months-format-"+_a8a[l-3]].concat();if(!_a85.strict){v=v.replace(".","").toLowerCase();_a90=dojo.map(_a90,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_a90,v);if(v==-1){return false;}}else{v--;}_a8b[1]=v;break;case "E":case "e":var days=_a88["days-format-"+_a8a[l-3]].concat();if(!_a85.strict){v=v.toLowerCase();days=dojo.map(days,function(d){return d.toLowerCase();});}v=dojo.indexOf(days,v);if(v==-1){return false;}break;case "D":_a8b[1]=0;case "d":_a8b[2]=v;break;case "a":var am=_a85.am||_a88["dayPeriods-format-wide-am"],pm=_a85.pm||_a88["dayPeriods-format-wide-pm"];if(!_a85.strict){var _a91=/\./g;v=v.replace(_a91,"").toLowerCase();am=am.replace(_a91,"").toLowerCase();pm=pm.replace(_a91,"").toLowerCase();}if(_a85.strict&&v!=am&&v!=pm){return false;}amPm=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v> 23){return false;}_a8b[3]=v;break;case "m":_a8b[4]=v;break;case "s":_a8b[5]=v;break;case "S":_a8b[6]=v;}return true;});var _a92=+_a8b[3];if(amPm==="p"&&_a92 <12){_a8b[3]=_a92+12;}else{if(amPm==="a"&&_a92==12){_a8b[3]=0;}}var _a93=new Date(_a8b[0],_a8b[1],_a8b[2],_a8b[3],_a8b[4],_a8b[5],_a8b[6]);if(_a85.strict){_a93.setFullYear(_a8b[0]);}var _a94=_a87.join(""),_a95=_a94.indexOf("d")!=-1,_a96=_a94.indexOf("M")!=-1;if(!_a8c||(_a96&&_a93.getMonth()> _a8b[1])||(_a95&&_a93.getDate()> _a8b[2])){return null;}if((_a96&&_a93.getMonth() <_a8b[1])||(_a95&&_a93.getDate() <_a8b[2])){_a93=dojo.date.add(_a93,"hour",1);}return _a93;};function _a76(_a97,_a98,_a99,_a9a){var _a9b=function(x){return x;};_a98=_a98||_a9b;_a99=_a99||_a9b;_a9a=_a9a||_a9b;var _a9c=_a97.match(/(''|[^'])+/g),_a9d=_a97.charAt(0)=="'";dojo.forEach(_a9c,function(_a9e,i){if(!_a9e){_a9c[i]="";}else{_a9c[i]=(_a9d?_a99:_a98)(_a9e.replace(/''/g,"'"));_a9d=!_a9d;}});return _a9a(_a9c.join(""));};function _a83(_a9f,_aa0,_aa1,_aa2){_aa2=dojo.regexp.escapeString(_aa2);if(!_aa1.strict){_aa2=_aa2.replace(" a"," ?a");}return _aa2.replace(/([a-z])\1*/ig,function(_aa3){var s,c=_aa3.charAt(0),l=_aa3.length,p2="",p3="";if(_aa1.strict){if(l> 1){p2="0"+"{"+(l-1)+"}";}if(l> 2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l> 2)?"\\S+?":"1[0-2]|"+p2+"[1-9]";break;case "D":s="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+p3+"[1-9][0-9]|"+p2+"[1-9]";break;case "d":s="3[01]|[12]\\d|"+p2+"[1-9]";break;case "w":s="[1-4][0-9]|5[0-3]|"+p2+"[1-9]";break;case "E":s="\\S+";break;case "h":s="1[0-2]|"+p2+"[1-9]";break;case "k":s="1[01]|"+p2+"\\d";break;case "H":s="1\\d|2[0-3]|"+p2+"\\d";break;case "K":s="1\\d|2[0-4]|"+p2+"[1-9]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_aa1.am||_aa0["dayPeriods-format-wide-am"],pm=_aa1.pm||_aa0["dayPeriods-format-wide-pm"];s=am+"|"+pm;if(!_aa1.strict){if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}if(s.indexOf(".")!=-1){s+="|"+s.replace(/\./g,"");}}s=s.replace(/\./g,"\\.");break;default:s=".*";}if(_a9f){_a9f.push(_aa3);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _aa4=[];dojo.date.locale.addCustomFormats=function(_aa5,_aa6){_aa4.push({pkg:_aa5,name:_aa6});};dojo.date.locale._getGregorianBundle=function(_aa7){var _aa8={};dojo.forEach(_aa4,function(desc){var _aa9=dojo.i18n.getLocalization(desc.pkg,desc.name,_aa7);_aa8=dojo.mixin(_aa8,_aa9);},this);return _aa8;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_aaa,_aab){var _aac,_aad=dojo.date.locale._getGregorianBundle(_aab),_aae=[item,_aaa,type];if(_aaa=="standAlone"){var key=_aae.join("-");_aac=_aad[key];if(_aac[0]==1){_aac=undefined;}}_aae[1]="format";return (_aac||_aad[_aae.join("-")]).concat();};dojo.date.locale.isWeekend=function(_aaf,_ab0){var _ab1=dojo.cldr.supplemental.getWeekend(_ab0),day=(_aaf||new Date()).getDay();if(_ab1.end <_ab1.start){_ab1.end+=7;if(day <_ab1.start){day+=7;}}return day> =_ab1.start&&day <=_ab1.end;};dojo.date.locale._getDayOfYear=function(_ab2){return dojo.date.difference(new Date(_ab2.getFullYear(),0,1,_ab2.getHours()),_ab2)+1;};dojo.date.locale._getWeekOfYear=function(_ab3,_ab4){if(arguments.length==1){_ab4=0;}var _ab5=new Date(_ab3.getFullYear(),0,1).getDay(),adj=(_ab5-_ab4+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_ab3)+adj-1)/7);if(_ab5==_ab4){week++;}return week;};}if(!dojo._hasResource["esri.tasks.gp"]){dojo._hasResource["esri.tasks.gp"]=true;dojo.provide("esri.tasks.gp");dojo.declare("esri.tasks.Geoprocessor",esri.tasks._Task,{constructor:function(url){this._jobUpdateHandler=dojo.hitch(this,this._jobUpdateHandler);this._getJobStatus=dojo.hitch(this,this._getJobStatus);this._getResultDataHandler=dojo.hitch(this,this._getResultDataHandler);this._getResultImageHandler=dojo.hitch(this,this._getResultImageHandler);this._executeHandler=dojo.hitch(this,this._executeHandler);this._updateTimers=[];},updateDelay:1000,processSpatialReference:null,outputSpatialReference:null,outSpatialReference:null,setUpdateDelay:function(_ab6){this.updateDelay=_ab6;},setProcessSpatialReference:function(sr){this.processSpatialReference=sr;},setOutputSpatialReference:function(sr){this._setOutSR(sr);},setOutSpatialReference:function(sr){this._setOutSR(sr);},__msigns:[{n:"execute",c:3,a:[{i:0,p:["*"]}],e:2,f:1},{n:"submitJob",c:4,a:[{i:0,p:["*"]}],e:3}],_setOutSR:function(sr){this.outSpatialReference=this.outputSpatialReference=sr;},_getOutSR:function(){return this.outSpatialReference||this.outputSpatialReference;},_gpEncode:function(_ab7,_ab8,_ab9){for(var i in _ab7){var _aba=_ab7[i];if(dojo.isArray(_aba)){_ab7[i]=dojo.toJson(dojo.map(_aba,function(item){return this._gpEncode({item:item},true).item;},this));}else{if(_aba instanceof Date){_ab7[i]=_aba.getTime();}}}return this._encode(_ab7,_ab8,_ab9);},_decode:function(_abb){var _abc=_abb.dataType,_abd,_abe=new esri.tasks.ParameterValue(_abb);if(dojo.indexOf(["GPBoolean","GPDouble","GPLong","GPString"],_abc)!==-1){return _abe;}if(_abc==="GPLinearUnit"){_abe.value=new esri.tasks.LinearUnit(_abe.value);}else{if(_abc==="GPFeatureRecordSetLayer"||_abc==="GPRecordSet"){_abe.value=new esri.tasks.FeatureSet(_abe.value);}else{if(_abc==="GPDataFile"){_abe.value=new esri.tasks.DataFile(_abe.value);}else{if(_abc==="GPDate"){_abd=_abe.value;if(dojo.isString(_abd)){_abe.value=new esri.tasks.Date({date:_abd});}else{_abe.value=new Date(_abd);}}else{if(_abc==="GPRasterData"||_abc==="GPRasterDataLayer"){var _abf=_abb.value.mapImage;if(_abf){_abe.value=new esri.layers.MapImage(_abf);}else{_abe.value=new esri.tasks.RasterData(_abe.value);}}else{if(_abc.indexOf("GPMultiValue:")!==-1){var type=_abc.split(":")[1];_abd=_abe.value;_abe.value=dojo.map(_abd,function(item){return this._decode({paramName:"_name",dataType:type,value:item}).value;},this);}else{console.log(this.declaredClass+" : "+esri.bundle.tasks.gp.gpDataTypeNotHandled+" : "+_abe.dataType);_abe=null;}}}}}}return _abe;},submitJob:function(_ac0,_ac1,_ac2,_ac3,_ac4){var _ac5=this._getOutSR();var _ac6=_ac4.assembly,_ac7=this._gpEncode(dojo.mixin({},this._url.query,{f:"json","env:outSR":(_ac5?(_ac5.wkid||dojo.toJson(_ac5.toJson())):null),"env:processSR":(this.processSpatialReference?(this.processSpatialReference.wkid||dojo.toJson(this.processSpatialReference.toJson())):null)},_ac0),null,_ac6&&_ac6[0]),_ac8=this._jobUpdateHandler,_ac9=this._errorHandler;return esri.request({url:this._url.path+"/submitJob",content:_ac7,callbackParamName:"callback",load:function(r,i){_ac8(r,i,false,_ac1,_ac2,_ac4.dfd);},error:function(r){_ac9(r,_ac3,_ac4.dfd);}});},_jobUpdateHandler:function(_aca,io,_acb,_acc,_acd,dfd){var _ace=_aca.jobId,_acf=new esri.tasks.JobInfo(_aca);this._successHandler([_acf],"onStatusUpdate",_acd,_acb&&dfd);if(!_acb){clearTimeout(this._updateTimers[_ace]);this._updateTimers[_ace]=null;if(dfd){dfd.progress(_acf);}switch(_aca.jobStatus){case esri.tasks.JobInfo.STATUS_SUBMITTED:case esri.tasks.JobInfo.STATUS_EXECUTING:case esri.tasks.JobInfo.STATUS_WAITING:case esri.tasks.JobInfo.STATUS_NEW:var _ad0=this._getJobStatus;this._updateTimers[_ace]=setTimeout(function(){_ad0(_ace,_acb,_acc,_acd,dfd);},this.updateDelay);break;default:this._successHandler([_acf],"onJobComplete",_acc,dfd);}}},_getJobStatus:function(_ad1,_ad2,_ad3,_ad4,dfd){var _ad5=this._jobUpdateHandler;esri.request({url:this._url.path+"/jobs/"+_ad1,content:dojo.mixin({},this._url.query,{f:"json"}),callbackParamName:"callback",load:function(){_ad5(arguments[0],arguments[1],_ad2,_ad3,_ad4,dfd);},error:this._errorHandler});},_getResultDataHandler:function(_ad6,io,_ad7,_ad8,dfd){try{var _ad9=this._decode(_ad6);this._successHandler([_ad9],"onGetResultDataComplete",_ad7,dfd);}catch(err){this._errorHandler(err,_ad8,dfd);}},getResultData:function(_ada,_adb,_adc,_add){var _ade=this._getResultDataHandler,_adf=this._errorHandler;var dfd=new dojo.Deferred(esri._dfdCanceller);dfd._pendingDfd=esri.request({url:this._url.path+"/jobs/"+_ada+"/results/"+_adb,content:dojo.mixin({},this._url.query,{f:"json",returnType:"data"}),callbackParamName:"callback",load:function(r,i){_ade(r,i,_adc,_add,dfd);},error:function(r){_adf(r,_add,dfd);}});return dfd;},checkJobStatus:function(_ae0,_ae1,_ae2){var _ae3=this._jobUpdateHandler,_ae4=this._errorHandler;var dfd=new dojo.Deferred(esri._dfdCanceller);dfd._pendingDfd=esri.request({url:this._url.path+"/jobs/"+_ae0,content:dojo.mixin({},this._url.query,{f:"json"}),callbackParamName:"callback",load:function(r,i){_ae3(r,i,true,null,_ae1,dfd);},error:function(r){_ae4(r,_ae2,dfd);}});return dfd;},execute:function(_ae5,_ae6,_ae7,_ae8){var _ae9=this._getOutSR();var _aea=_ae8.assembly,_aeb=this._gpEncode(dojo.mixin({},this._url.query,{f:"json","env:outSR":(_ae9?(_ae9.wkid||dojo.toJson(_ae9.toJson())):null),"env:processSR":(this.processSpatialReference?(this.processSpatialReference.wkid||dojo.toJson(this.processSpatialReference.toJson())):null)},_ae5),null,_aea&&_aea[0]),_aec=this._executeHandler,_aed=this._errorHandler;return esri.request({url:this._url.path+"/execute",content:_aeb,callbackParamName:"callback",load:function(r,i){_aec(r,i,_ae6,_ae7,_ae8.dfd);},error:function(r){_aed(r,_ae7,_ae8.dfd);}});},_executeHandler:function(_aee,io,_aef,_af0,dfd){try{var _af1=_aee.results,i,il,_af2=_aee.messages;for(i=0,il=_af1.length;i =2){_bb5=esri.bundle.toolbars.draw.complete;}}break;case esri.toolbars.Draw.MULTI_POINT:_bb5=esri.bundle.toolbars.draw.addMultipoint;if(_bb4> =1){_bb5=esri.bundle.toolbars.draw.finish;}break;}_bb3.innerHTML=_bb5;},_updateTooltip:function(evt){var _bb6=this._tooltip;if(!_bb6){return;}var px,py;if(evt.clientX||evt.pageY){px=evt.clientX;py=evt.clientY;}else{px=evt.clientX+dojo.body().scrollLeft-dojo.body().clientLeft;py=evt.clientY+dojo.body().scrollTop-dojo.body().clientTop;}_bb6.style.display="none";dojo.style(_bb6,{left:(px+this._options.tooltipOffset)+"px",top:(py)+"px"});_bb6.style.display="";},_redrawGraphic:function(_bb7,_bb8,_bb9,lod){if(_bb9||this.map.wrapAround180){var g=this._graphic;if(g){g.setGeometry(g.geometry);}g=this._tGraphic;if(g){g.setGeometry(g.geometry);}}},onActivate:function(){},onDeactivate:function(){},onDrawEnd:function(){}});dojo.mixin(esri.toolbars.Draw,{POINT:"point",MULTI_POINT:"multipoint",LINE:"line",EXTENT:"extent",POLYLINE:"polyline",POLYGON:"polygon",FREEHAND_POLYLINE:"freehandpolyline",FREEHAND_POLYGON:"freehandpolygon",ARROW:"arrow",LEFT_ARROW:"leftarrow",RIGHT_ARROW:"rightarrow",UP_ARROW:"uparrow",DOWN_ARROW:"downarrow",TRIANGLE:"triangle",CIRCLE:"circle",ELLIPSE:"ellipse",RECTANGLE:"rectangle"});}if(!dojo._hasResource["esri.undoManager"]){dojo._hasResource["esri.undoManager"]=true;dojo.provide("esri.undoManager");dojo.declare("esri.UndoManager",null,{maxOperations:10,canUndo:false,canRedo:false,position:0,length:0,onUndo:function(){},onRedo:function(){},onAdd:function(){},onChange:function(){},_historyStack:[],constructor:function(_bba){_bba=_bba||{};if(_bba.maxOperations){this.maxOperations=_bba.maxOperations;}},add:function(_bbb){if(this.maxOperations> 0){while(this._historyStack.length> =this.maxOperations){this._historyStack.shift();}}this._historyStack.splice(this.position,0,_bbb);this.position++;this.clearRedo();this.onAdd();this._checkAvailability();},undo:function(){if(this.position===0){return null;}var _bbc=this.peekUndo();this.position--;if(_bbc){_bbc.performUndo();}this.onUndo();this._checkAvailability();},redo:function(){if(this.position===this._historyStack.length){return null;}var _bbd=this.peekRedo();this.position++;if(_bbd){_bbd.performRedo();}this.onRedo();this._checkAvailability();},_checkAvailability:function(){this.length=this._historyStack.length;if(this.length===0){this.canRedo=false;this.canUndo=false;}else{if(this.position===0){this.canRedo=true;this.canUndo=false;}else{if(this.position===this.length){this.canUndo=true;this.canRedo=false;}else{this.canUndo=true;this.canRedo=true;}}}this.onChange();},clearUndo:function(){this._historyStack.splice(0,this.position);this.position=0;this._checkAvailability();},clearRedo:function(){this._historyStack.splice(this.position,this._historyStack.length-this.position);this.position=this._historyStack.length;this._checkAvailability();},peekUndo:function(){if(this._historyStack.length> 0&&this.position> 0){return this.get(this.position-1);}},peekRedo:function(){if(this._historyStack.length> 0&&this.position 0){this._historyStack.splice(idx,1);if(this.position> 0){if(idx 0&&_beb===true){_be1[_be0[0]].stops=_be1[_be8].stops;delete _be1[_be8];_be0.splice(dojo.indexOf(_be0,_be8),1);}var _bef=[];_be9(_be0,function(_bf0,i){_be1[_bf0].routeName=_bf0===_be8?null:_bf0;_bef.push(new esri.tasks.RouteResult(_be1[_bf0]));});var _bf1=function(_bf2){_be9(_bf2,function(barr,i){_bf2[i]=new esri.Graphic(barr);});return _bf2;};_be9(_be7,function(_bf3,i){_be7[i]=new esri.tasks.NAMessage(_bf3);});var _bf4={routeResults:_bef,barriers:_bf1(_be4),polygonBarriers:_bf1(_be5),polylineBarriers:_bf1(_be6),messages:_be7};this._successHandler([_bf4],"onSolveComplete",_bde,dfd);}catch(err){this._errorHandler(err,_bdf,dfd);}},solve:function(_bf5,_bf6,_bf7,_bf8){var _bf9=_bf5.stops;if(_bf9&&_bf9 instanceof esri.tasks.FeatureSet){var _bfa=[],_bfb=false,attr;dojo.forEach(_bf9.features,function(stop){attr=stop.attributes;if((!attr||!attr.RouteName)&&!_bfb){_bfb=true;}else{if(dojo.indexOf(_bfa,attr?attr.RouteName:"")===-1){_bfa.push(attr?attr.RouteName:"");}}});if(_bfa.length> 1&&_bfb){_bfb=new Error(esri.bundle.tasks.na.route.routeNameNotSpecified);this.onError(_bfb);if(_bf7){_bf7(_bfb);}throw _bfb;}}var _bfc=_bf8.assembly,_bfd=this._encode(dojo.mixin({},this._url.query,{f:"json"},_bf5.toJson(_bfc&&_bfc[0]))),_bfe=this._handler,_bff=this._errorHandler;return esri.request({url:this._url.path,content:_bfd,callbackParamName:"callback",load:function(r,i){_bfe(r,i,_bf6,_bf7,_bf8.dfd);},error:function(r){_bff(r,_bf7,_bf8.dfd);}});},onSolveComplete:function(){}});esri._createWrappers("esri.tasks.RouteTask");dojo.declare("esri.tasks.RouteParameters",null,{accumulateAttributes:null,attributeParameterValues:null,barriers:null,directionsLanguage:null,directionsLengthUnits:null,directionsTimeAttribute:null,doNotLocateOnRestrictedElements:false,findBestSequence:null,ignoreInvalidLocations:null,impedanceAttribute:null,outputLines:null,outputGeometryPrecision:null,outputGeometryPrecisionUnits:null,outSpatialReference:null,polygonBarriers:null,polylineBarriers:null,preserveFirstStop:null,preserveLastStop:null,restrictionAttributes:null,restrictUTurns:null,returnBarriers:false,returnDirections:false,returnPolygonBarriers:false,returnPolylineBarriers:false,returnRoutes:true,returnStops:false,startTime:null,stops:null,useHierarchy:null,useTimeWindows:null,toJson:function(_c00){var json={returnDirections:this.returnDirections,returnRoutes:this.returnRoutes,returnStops:this.returnStops,returnBarriers:this.returnBarriers,returnPolygonBarriers:this.returnPolygonBarriers,returnPolylineBarriers:this.returnPolylineBarriers,attributeParameterValues:this.attributeParameterValues&&dojo.toJson(this.attributeParameterValues),outSR:this.outSpatialReference?(this.outSpatialReference.wkid||dojo.toJson(this.outSpatialReference.toJson())):null,outputLines:this.outputLines,findBestSequence:this.findBestSequence,preserveFirstStop:this.preserveFirstStop,preserveLastStop:this.preserveLastStop,useTimeWindows:this.useTimeWindows,startTime:this.startTime?this.startTime.getTime():null,accumulateAttributeNames:this.accumulateAttributes?this.accumulateAttributes.join(","):null,ignoreInvalidLocations:this.ignoreInvalidLocations,impedanceAttributeName:this.impedanceAttribute,restrictionAttributeNames:this.restrictionAttributes?this.restrictionAttributes.join(","):null,restrictUTurns:this.restrictUTurns,useHierarchy:this.useHierarchy,directionsLanguage:this.directionsLanguage,outputGeometryPrecision:this.outputGeometryPrecision,outputGeometryPrecisionUnits:this.outputGeometryPrecisionUnits,directionsLengthUnits:esri.tasks._NALengthUnit[this.directionsLengthUnits],directionsTimeAttributeName:this.directionsTimeAttribute},_c01=this.stops;if(_c01 instanceof esri.tasks.FeatureSet&&_c01.features.length> 0){json.stops=dojo.toJson({type:"features",features:esri._encodeGraphics(_c01.features,_c00&&_c00["stops.features"]),doNotLocateOnRestrictedElements:this.doNotLocateOnRestrictedElements});}else{if(_c01 instanceof esri.tasks.DataLayer){json.stops=_c01;}}var _c02=function(_c03,_c04){if(!_c03){return null;}if(_c03 instanceof esri.tasks.FeatureSet){if(_c03.features.length> 0){return dojo.toJson({type:"features",features:esri._encodeGraphics(_c03.features,_c00&&_c00[_c04])});}else{return null;}}else{if(_c03 instanceof esri.tasks.DataLayer){return _c03;}}return dojo.toJson(_c03);};json.barriers=_c02(this.barriers,"barriers.features");json.polygonBarriers=_c02(this.polygonBarriers,"polygonBarriers.features");json.polylineBarriers=_c02(this.polylineBarriers,"polylineBarriers.features");return esri.filter(json,function(_c05){if(_c05!==null){return true;}});}});dojo.declare("esri.tasks.RouteResult",null,{constructor:function(json){if(json.directions){var cgs=[];dojo.forEach(json.directions.features,function(f,i){cgs[i]=f.compressedGeometry;});this.directions=new esri.tasks.DirectionsFeatureSet(json.directions,cgs);}this.routeName=json.routeName;if(json.route){this.route=new esri.Graphic(json.route);}if(json.stops){var ss=(this.stops=[]);dojo.forEach(json.stops,function(stop,i){ss[stop.attributes.Sequence-1]=new esri.Graphic(stop);});}},routeName:null,directions:null,route:null,stops:null});}if(!dojo._hasResource["esri.virtualearth.VETiledLayer"]){dojo._hasResource["esri.virtualearth.VETiledLayer"]=true;dojo.provide("esri.virtualearth.VETiledLayer");dojo.declare("esri.virtualearth.VETiledLayer",esri.layers.TiledMapServiceLayer,{constructor:function(_c06){try{_c06=dojo.mixin({bingMapsKey:null,culture:"en-US"},_c06||{});var _c07=window.location.protocol;if(_c07==="file:"){_c07="http:";}this.url=_c07+"//web.archive.org/veadaptor/production/services/imagery/getmetadata";this._url=esri.urlToObject(this.url);this.spatialReference=new esri.SpatialReference({wkid:102100});this.tileInfo=new esri.layers.TileInfo({rows:256,cols:256,dpi:96,origin:{x:-20037508.342787,y:20037508.342787},spatialReference:{wkid:102100},lods:[{level:1,resolution:78271.5169639999,scale:295828763.795777},{level:2,resolution:39135.7584820001,scale:147914381.897889},{level:3,resolution:19567.8792409999,scale:73957190.948944},{level:4,resolution:9783.93962049996,scale:36978595.474472},{level:5,resolution:4891.96981024998,scale:18489297.737236},{level:6,resolution:2445.98490512499,scale:9244648.868618},{level:7,resolution:1222.99245256249,scale:4622324.434309},{level:8,resolution:611.49622628138,scale:2311162.217155},{level:9,resolution:305.748113140558,scale:1155581.108577},{level:10,resolution:152.874056570411,scale:577790.554289},{level:11,resolution:76.4370282850732,scale:288895.277144},{level:12,resolution:38.2185141425366,scale:144447.638572},{level:13,resolution:19.1092570712683,scale:72223.819286},{level:14,resolution:9.55462853563415,scale:36111.909643},{level:15,resolution:4.77731426794937,scale:18055.954822},{level:16,resolution:2.38865713397468,scale:9027.977411},{level:17,resolution:1.19432856685505,scale:4513.988705},{level:18,resolution:0.597164283559817,scale:2256.994353},{level:19,resolution:0.298582141647617,scale:1128.497176}]});this.initialExtent=(this.fullExtent=new esri.geometry.Extent(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,new esri.SpatialReference({wkid:102100})));dojo.mixin(this,_c06);this._initLayer=dojo.hitch(this,this._initLayer);this._errorHandler=dojo.hitch(this,this._errorHandler);this._getTileInfo=dojo.hitch(this,this._getTileInfo);if(this.bingMapsKey){this._getTileInfo();}else{throw new Error(esri.bundle.virtualearth.vetiledlayer.bingMapsKeyNotSpecified);}}catch(e){this.onError(e);throw e;}},_unsetMap:function(map,_c08){this.inherited("_unsetMap",arguments);},_getTileInfo:function(){if(this.bingMapsKey){var info=this.resourceInfo;if(!this.loaded&&info){this._initLayer(info);}else{esri.request({url:this._url.path,content:dojo.mixin({},this._url.query,{token:this.bingMapsKey,style:this.mapStyle,culture:this.culture}),callbackParamName:"callback",load:this._initLayer,error:this._errorHandler});}}},_initLayer:function(_c09,io){try{this.resourceInfo=dojo.toJson(_c09);var _c0a=_c09.imageUri.replace("{","${");this.tileServers=dojo.map(_c09.subDomains,function(_c0b){return dojo.string.substitute(_c0a,{subdomain:_c0b}).replace("http:",window.location.protocol);});this._tsLength=this.tileServers.length;this._tsIndex=0;if(!this.loaded){this.loaded=true;this.onLoad(this);var _c0c=this.loadCallback;if(_c0c){delete this.loadCallback;_c0c(this);}}else{this.refresh();}}catch(e){this.onError(e);}},getTileUrl:function(_c0d,row,col){var _c0e=this.tileServers[this._tsIndex++%this._tsLength],_c0f=_c0e.replace(/\{/g,"${");return dojo.string.substitute(_c0f,{quadkey:this._getQuadKey(_c0d,row,col),culture:this.culture,token:this.bingMapsKey});},_getQuadKey:function(_c10,row,col){var _c11="",_c12,mask;for(var i=_c10;i> 0;i--){_c12="0";mask=1 < <(i-1);if((col&mask)!=0){_c12++;}if((row&mask)!=0){_c12++;_c12++;}_c11=_c11+_c12;}return _c11;},setMapStyle:function(_c13){this.mapStyle=_c13;this._getTileInfo();},setCulture:function(_c14){this.culture=_c14;this._getTileInfo();},setBingMapsKey:function(_c15){this.bingMapsKey=_c15;}});dojo.mixin(esri.virtualearth.VETiledLayer,{MAP_STYLE_AERIAL:"aerial",MAP_STYLE_AERIAL_WITH_LABELS:"aerialWithLabels",MAP_STYLE_ROAD:"road"});}if(!dojo._hasResource["esri.virtualearth.VEGeocoder"]){dojo._hasResource["esri.virtualearth.VEGeocoder"]=true;dojo.provide("esri.virtualearth.VEGeocoder");dojo.declare("esri.virtualearth.VEGeocoder",esri.tasks._Task,{constructor:function(_c16){try{_c16=dojo.mixin({bingMapsKey:null},_c16||{});this.url="http://web.archive.org/veadaptor/production/services/geocode/geocode";this._url=esri.urlToObject(this.url);this._queue=[];this.bingMapsKey=_c16.bingMapsKey;this.culture=_c16.culture||"en-US";this._errorHandler=dojo.hitch(this,this._errorHandler);this._addressToLocationsHandler=dojo.hitch(this,this._addressToLocationsHandler);if(!this.bingMapsKey){throw new Error(esri.bundle.virtualearth.vegeocode.bingMapsKeyNotSpecified);}}catch(e){this.onError(e);throw e;}},addressToLocations:function(_c17,_c18,_c19){if(!this.bingMapsKey){console.debug(esri.bundle.virtualearth.vegeocode.requestQueued);this._queue.push(arguments);return;}var _c1a=dojo.mixin({},this._url.query,{query:_c17,token:this.bingMapsKey,culture:this.culture}),_c1b=this._addressToLocationsHandler,_c1c=this._errorHandler;var dfd=new dojo.Deferred(esri._dfdCanceller);dfd._pendingDfd=esri.request({url:this._url.path,content:_c1a,callbackParamName:"callback",load:function(r,i){_c1b(r,i,_c18,_c19,dfd);},error:function(r){_c1c(r,_c19,dfd);}});return dfd;},_addressToLocationsHandler:function(_c1d,io,_c1e,_c1f,dfd){try{dojo.forEach(_c1d,function(_c20,i){_c1d[i]=new esri.virtualearth.VEGeocodeResult(_c20);});this._successHandler([_c1d],"onAddressToLocationsComplete",_c1e,dfd);}catch(err){this._errorHandler(err,_c1f,dfd);}},onAddressToLocationsComplete:function(){},setBingMapsKey:function(_c21){this.bingMapsKey=_c21;},setCulture:function(_c22){this.culture=_c22;}});dojo.declare("esri.virtualearth.VEAddress",null,{constructor:function(json){dojo.mixin(this,{addressLine:null,adminDistrict:null,countryRegion:null,district:null,formattedAddress:null,locality:null,postalCode:null,postalTown:null},json);}});dojo.declare("esri.virtualearth.VEGeocodeResult",null,{constructor:function(json){dojo.mixin(this,{address:null,bestView:null,calculationMethod:null,confidence:null,displayName:null,entityType:null,location:null,matchCodes:null},json);if(this.address){this.address=new esri.virtualearth.VEAddress(this.address);}if(this.bestView){this.bestView=new esri.geometry.Extent(this.bestView);}if(this.locationArray){this.calculationMethod=this.locationArray[0].calculationMethod;this.location=new esri.geometry.Point(this.locationArray[0]);}}});}dojo.i18n._preloadLocalizations("esri.nls.jsapi",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nb","nl","nl-nl","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]); }()); /* JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): LoadShardBlock: 51.273 (3) esindex: 0.01 captures_list: 72.386 CDXLines.iter: 11.733 (3) PetaboxLoader3.datanode: 51.34 (4) exclusion.robots: 0.288 exclusion.robots.policy: 0.225 RedisCDXSource: 4.963 PetaboxLoader3.resolve: 211.976 load_resource: 246.875 */