2014-10-10 17:23:38 -06:00

2477 lines
1.2 MiB

//>>built
(function(l,n){var k,q=function(){},h=function(a){for(var b in a)return 0;return 1},g={}.toString,e=function(a){return"[object Function]"==g.call(a)},d=function(a){return"[object String]"==g.call(a)},b=function(a){return"[object Array]"==g.call(a)},a=function(a,b){if(a)for(var c=0;c<a.length;)b(a[c++])},c=function(a,b){for(var c in b)a[c]=b[c];return a},f=function(a,b){return c(Error(a),{src:"dojoLoader",info:b})},m=1,s=function(){return"_"+m++},t=function(a,b,c){return T(a,b,c,0,t)},r=this,u=r.document,
v=u&&u.createElement("DiV"),A=t.has=function(a){return e(y[a])?y[a]=y[a](r,u,v):y[a]},y=A.cache=n.hasCache;A.add=function(a,b,c,f){(void 0===y[a]||f)&&(y[a]=b);return c&&A(a)};A.add("host-webworker","undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);A("host-webworker")&&(c(n.hasCache,{"host-browser":0,dom:0,"dojo-dom-ready-api":0,"dojo-sniff":0,"dojo-inject-api":1,"host-webworker":1}),n.loaderPatch={injectUrl:function(a,b){try{importScripts(a),b()}catch(c){console.error(c)}}});
for(var w in l.has)A.add(w,l.has[w],0,1);t.async=1;var z=new Function("return eval(arguments[0]);");t.eval=function(a,b){return z(a+"\r\n////@ sourceURL\x3d"+b)};var x={},B=t.signal=function(c,f){var m=x[c];a(m&&m.slice(0),function(a){a.apply(null,b(f)?f:[f])})},D=t.on=function(a,b){var c=x[a]||(x[a]=[]);c.push(b);return{remove:function(){for(var a=0;a<c.length;a++)if(c[a]===b){c.splice(a,1);break}}}},C=[],F={},I=[],E={},L=t.map={},G=[],K={},J="",H={},M={};w={};var N=0,O=function(a){var b,c,f,m;for(b in M)c=
M[b],(f=b.match(/^url\:(.+)/))?H["url:"+Na(f[1],a)]=c:"*now"==b?m=c:"*noref"!=b&&(f=oa(b,a,!0),H[f.mid]=H["url:"+f.url]=c);m&&m(Z(a));M={}},P=function(a){return a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(a){return"\\"+a})},Q=function(a,b){b.splice(0,b.length);for(var c in a)b.push([c,a[c],RegExp("^"+P(c)+"(/|$)"),c.length]);b.sort(function(a,b){return b[3]-a[3]});return b},W=function(b,c){a(b,function(a){c.push([d(a[0])?RegExp("^"+P(a[0])+"$"):a[0],a[1]])})},X=function(a){var b=a.name;b||(b=
a,a={name:b});a=c({main:"main"},a);a.location=a.location?a.location:b;a.packageMap&&(L[b]=a.packageMap);a.main.indexOf("./")||(a.main=a.main.substring(2));E[b]=a},R=[],U=function(b,f,m){for(var r in b){"waitSeconds"==r&&(t.waitms=1E3*(b[r]||0));"cacheBust"==r&&(J=b[r]?d(b[r])?b[r]:(new Date).getTime()+"":"");if("baseUrl"==r||"combo"==r)t[r]=b[r];b[r]!==y&&(t.rawConfig[r]=b[r],"has"!=r&&A.add("config-"+r,b[r],0,f))}t.baseUrl||(t.baseUrl="./");/\/$/.test(t.baseUrl)||(t.baseUrl+="/");for(r in b.has)A.add(r,
b.has[r],0,f);a(b.packages,X);for(var s in b.packagePaths)a(b.packagePaths[s],function(a){var b=s+"/"+a;d(a)&&(a={name:a});a.location=b;X(a)});Q(c(L,b.map),G);a(G,function(a){a[1]=Q(a[1],[]);"*"==a[0]&&(G.star=a)});Q(c(F,b.paths),I);W(b.aliases,C);if(f)R.push({config:b.config});else for(r in b.config)f=ka(r,m),f.config=c(f.config||{},b.config[r]);b.cache&&(O(),M=b.cache,b.cache["*noref"]&&O());B("config",[b,t.rawConfig])},S=u.getElementsByTagName("script");k=0;for(var V,da,$;k<S.length;){V=S[k++];
if((da=V.getAttribute("src"))&&($=da.match(/(((.*)\/)|^)dojo\.js(\W|$)/i)))da=$[3]||"",n.baseUrl=n.baseUrl||da,N=V;if(da=V.getAttribute("data-dojo-config")||V.getAttribute("djConfig"))w=t.eval("({ "+da+" })","data-dojo-config"),N=V}t.rawConfig={};U(n,1);U(l,1);U(w,1);var ba=function(b){ta(function(){a(b.deps,Ea)})},T=function(a,m,r,e,g){var u;if(d(a)){if((u=ka(a,e,!0))&&u.executed)return u.result;throw f("undefinedModule",a);}b(a)||(U(a,0,e),a=m,m=r);if(b(a))if(a.length){r="require*"+s();for(var h,
v=[],x=0;x<a.length;)h=a[x++],v.push(ka(h,e));u=c(la("",r,0,""),{injected:2,deps:v,def:m||q,require:e?e.require:t,gc:1});K[u.mid]=u;ba(u);var w=na&&0!="sync";ta(function(){ua(u,w)});u.executed||ca.push(u);pa()}else m&&m();return g},Z=function(a){if(!a)return t;var b=a.require;b||(b=function(c,f,m){return T(c,f,m,a,b)},a.require=c(b,t),b.module=a,b.toUrl=function(b){return Na(b,a)},b.toAbsMid=function(b){return qa(b,a)});return b},ca=[],aa=[],Y={},ea=function(a){a.injected=1;Y[a.mid]=1;a.url&&(Y[a.url]=
a.pack||1);ia()},fa=function(a){a.injected=2;delete Y[a.mid];a.url&&delete Y[a.url];h(Y)&&Qa()},ma=t.idle=function(){return!aa.length&&h(Y)&&!ca.length&&!na},ha=function(a,b){if(b)for(var c=0;c<b.length;c++)if(b[c][2].test(a))return b[c];return 0},Fa=function(a){var b=[],c,f;for(a=a.replace(/\\/g,"/").split("/");a.length;)c=a.shift(),".."==c&&b.length&&".."!=f?(b.pop(),f=b[b.length-1]):"."!=c&&b.push(f=c);return b.join("/")},la=function(a,b,c,f){return{pid:a,mid:b,pack:c,url:f,executed:0,def:0}},
ra=function(b,c,m,d,r,s,t,g,u){var h,v,x,w;w=/^\./.test(b);if(/(^\/)|(\:)|(\.js$)/.test(b)||w&&!c)return la(0,b,0,b);b=Fa(w?c.mid+"/../"+b:b);if(/^\./.test(b))throw f("irrationalPath",b);c&&(x=ha(c.mid,s));(x=(x=x||s.star)&&ha(b,x[1]))&&(b=x[1]+b.substring(x[3]));c=($=b.match(/^([^\/]+)(\/(.+))?$/))?$[1]:"";(h=m[c])?b=c+"/"+(v=$[3]||h.main):c="";var k=0;a(g,function(a){var c=b.match(a[0]);c&&0<c.length&&(k=e(a[1])?b.replace(a[0],a[1]):a[1])});if(k)return ra(k,0,m,d,r,s,t,g,u);if(m=d[b])return u?la(m.pid,
m.mid,m.pack,m.url):d[b];d=(x=ha(b,t))?x[1]+b.substring(x[3]):c?h.location+"/"+v:A("config-tlmSiblingOfDojo")?"../"+b:b;/(^\/)|(\:)/.test(d)||(d=r+d);return la(c,b,h,Fa(d+".js"))},oa=function(a,b,c){return ra(a,b,E,K,t.baseUrl,c?[]:G,c?[]:I,c?[]:C)},Ga=function(a,b,c){return a.normalize?a.normalize(b,function(a){return qa(a,c)}):qa(b,c)},Ha=0,ka=function(a,b,c){var f,m;(f=a.match(/^(.+?)\!(.*)$/))?(m=ka(f[1],b,c),5===m.executed&&!m.load&&va(m),m.load?(f=Ga(m,f[2],b),a=m.mid+"!"+(m.dynamic?++Ha+"!":
"")+f):(f=f[2],a=m.mid+"!"+ ++Ha+"!waitingForPlugin"),a={plugin:m,mid:a,req:Z(b),prid:f}):a=oa(a,b);return K[a.mid]||!c&&(K[a.mid]=a)},qa=t.toAbsMid=function(a,b){return oa(a,b).mid},Na=t.toUrl=function(a,b){var c=oa(a+"/x",b),f=c.url;return Ia(0===c.pid?a:f.substring(0,f.length-5))},ja={injected:2,executed:5,def:3,result:3},S=function(a){return K[a]=c({mid:a},ja)},wa=S("require"),Ua=S("exports"),Va=S("module"),xa={},ya=0,va=function(a){var b=a.result;a.dynamic=b.dynamic;a.normalize=b.normalize;a.load=
b.load;return a},ga=function(b){var f={};a(b.loadQ,function(a){var m=Ga(b,a.prid,a.req.module),d=b.dynamic?a.mid.replace(/waitingForPlugin$/,m):b.mid+"!"+m,m=c(c({},a),{mid:d,prid:m,injected:0});K[d]||Ja(K[d]=m);f[a.mid]=K[d];fa(a);delete K[a.mid]});b.loadQ=0;var m=function(a){for(var b=a.deps||[],c=0;c<b.length;c++)(a=f[b[c].mid])&&(b[c]=a)},d;for(d in K)m(K[d]);a(ca,m)},za=function(a){t.trace("loader-finish-exec",[a.mid]);a.executed=5;a.defOrder=ya++;a.loadQ&&(va(a),ga(a));for(k=0;k<ca.length;)ca[k]===
a?ca.splice(k,1):k++;/^require\*/.test(a.mid)&&delete K[a.mid]},Wa=[],ua=function(a,b){if(4===a.executed)return t.trace("loader-circular-dependency",[Wa.concat(a.mid).join("-\x3e")]),!a.def||b?xa:a.cjs&&a.cjs.exports;if(!a.executed){if(!a.def)return xa;var c=a.mid,f=a.deps||[],m,d=[],r=0;for(a.executed=4;m=f[r++];){m=m===wa?Z(a):m===Ua?a.cjs.exports:m===Va?a.cjs:ua(m,b);if(m===xa)return a.executed=0,t.trace("loader-exec-module",["abort",c]),xa;d.push(m)}t.trace("loader-run-factory",[a.mid]);c=a.def;
d=e(c)?c.apply(null,d):c;a.result=void 0===d&&a.cjs?a.cjs.exports:d;za(a)}return a.result},na=0,ta=function(a){try{na++,a()}finally{na--}ma()&&B("idle",[])},pa=function(){na||ta(function(){for(var a,b,c=0;c<ca.length;)a=ya,b=ca[c],ua(b),a!=ya?c=0:c++})};void 0===A("dojo-loader-eval-hint-url")&&A.add("dojo-loader-eval-hint-url",1);var Ia="function"==typeof l.fixupUrl?l.fixupUrl:function(a){a+="";return a+(J?(/\?/.test(a)?"\x26":"?")+J:"")},Ja=function(a){var b=a.plugin;5===b.executed&&!b.load&&va(b);
var c=function(b){a.result=b;fa(a);za(a);pa()};b.load?b.load(a.prid,a.req,c):b.loadQ?b.loadQ.push(a):(b.loadQ=[a],ca.unshift(b),Ea(b))},sa=0,Aa=0,Ba=0,Xa=function(a,b){A("config-stripStrict")&&(a=a.replace(/"use strict"/g,""));Ba=1;a===sa?sa.call(null):t.eval(a,A("dojo-loader-eval-hint-url")?b.url:b.mid);Ba=0},Ea=function(a){var b=a.mid,m=a.url;if(!a.executed&&!a.injected&&!(Y[b]||a.url&&(a.pack&&Y[a.url]===a.pack||1==Y[a.url])))if(ea(a),a.plugin)Ja(a);else{var d=function(){Ya(a);if(2!==a.injected){if(A("dojo-enforceDefine")){B("error",
f("noDefine",a));return}fa(a);c(a,ja);t.trace("loader-define-nonmodule",[a.url])}pa()};(sa=H[b]||H["url:"+a.url])?(t.trace("loader-inject",["cache",a.mid,m]),Xa(sa,a),d()):(t.trace("loader-inject",["script",a.mid,m]),Aa=a,t.injectUrl(Ia(m),d,a),Aa=0)}},Ca=function(a,b,m){t.trace("loader-define-module",[a.mid,b]);if(2===a.injected)return B("error",f("multipleDefine",a)),a;c(a,{deps:b,def:m,cjs:{id:a.mid,uri:a.url,exports:a.result={},setExports:function(b){a.cjs.exports=b},config:function(){return a.config}}});
for(var d=0;b[d];d++)b[d]=ka(b[d],a);fa(a);!e(m)&&!b.length&&(a.result=m,za(a));return a},Ya=function(b,c){for(var f=[],m,d;aa.length;)d=aa.shift(),c&&(d[0]=c.shift()),m=d[0]&&ka(d[0])||b,f.push([m,d[1],d[2]]);O(b);a(f,function(a){ba(Ca.apply(null,a))})},Qa=q,ia=q;A.add("ie-event-behavior",u.attachEvent&&"undefined"===typeof Windows&&("undefined"===typeof opera||"[object Opera]"!=opera.toString()));var Da=function(a,b,c,f){if(A("ie-event-behavior"))return a.attachEvent(c,f),function(){a.detachEvent(c,
f)};a.addEventListener(b,f,!1);return function(){a.removeEventListener(b,f,!1)}},Za=Da(window,"load","onload",function(){t.pageLoaded=1;"complete"!=u.readyState&&(u.readyState="complete");Za()}),S=u.getElementsByTagName("script");for(k=0;!N;)if(!/^dojo/.test((V=S[k++])&&V.type))N=V;t.injectUrl=function(a,b,c){c=c.node=u.createElement("script");var m=Da(c,"load","onreadystatechange",function(a){a=a||window.event;var c=a.target||a.srcElement;if("load"===a.type||/complete|loaded/.test(c.readyState))m(),
d(),b&&b()}),d=Da(c,"error","onerror",function(b){m();d();B("error",f("scriptError",[a,b]))});c.type="text/javascript";c.charset="utf-8";c.src=a;N.parentNode.insertBefore(c,N);return c};t.log=q;t.trace=q;V=function(a,b,c){var m=arguments.length,r=["require","exports","module"],s=[0,a,b];1==m?s=[0,e(a)?r:[],a]:2==m&&d(a)?s=[a,e(b)?r:[],b]:3==m&&(s=[a,b,c]);t.trace("loader-define",s.slice(0,2));if((m=s[0]&&ka(s[0]))&&!Y[m.mid])ba(Ca(m,s[1],s[2]));else if(!A("ie-event-behavior")||Ba)aa.push(s);else{m=
m||Aa;if(!m)for(a in Y)if((r=K[a])&&r.node&&"interactive"===r.node.readyState){m=r;break}m?(O(m),ba(Ca(m,s[1],s[2]))):B("error",f("ieDefineFailed",s[0]));pa()}};V.amd={vendor:"dojotoolkit.org"};c(c(t,n.loaderPatch),l.loaderPatch);D("error",function(a){try{if(console.error(a),a instanceof Error)for(var b in a);}catch(c){}});c(t,{uid:s,cache:H,packs:E});r.define||(r.define=V,r.require=t,a(R,function(a){U(a)}),D=w.deps||l.deps||n.deps,w=w.callback||l.callback||n.callback,t.boot=D||w?[D||[],w]:0)})(this.dojoConfig||
this.djConfig||this.require||{},{async:0,hasCache:{"config-selectorEngine":"acme","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-loader":1,dom:1,"host-browser":1},packages:[{location:".",name:"dojo"},{location:"../dijit",name:"dijit"},{location:"../dojox",name:"dojox"},{location:"../esri",name:"esri"}]});
require({cache:{"esri/map":function(){define("require dojo/_base/kernel dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/_base/event dojo/on dojo/aspect dojo/dom dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dijit/registry ./kernel ./config ./sniff ./lang ./_coremap ./MapNavigationManager".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v,A,y,w){var z={up:"panUp",right:"panRight",down:"panDown",left:"panLeft"},x={upperRight:"panUpperRight",lowerRight:"panLowerRight",
lowerLeft:"panLowerLeft",upperLeft:"panUpperLeft"},B=q.connect,D=q.disconnect,C=f.create,F=s.set,I=h.hitch,E=m.getMarginBox,L=n.deprecated,G=h.mixin,K=0;n=k(y,{declaredClass:"esri.Map",constructor:function(a,c){G(this,{_slider:null,_navDiv:null,_mapParams:G({attributionWidth:0.45,slider:!0,nav:!1,logo:!0,sliderStyle:"small",sliderPosition:"top-left",sliderOrientation:"vertical",autoResize:!0},c||{})});G(this,{isDoubleClickZoom:!1,isShiftDoubleClickZoom:!1,isClickRecenter:!1,isScrollWheelZoom:!1,isPan:!1,
isRubberBandZoom:!1,isKeyboardNavigation:!1,isPanArrows:!1,isZoomSlider:!1});h.isFunction(r._css)&&(r._css=r._css(this._mapParams.force3DTransforms),this.force3DTransforms=this._mapParams.force3DTransforms);var f=v("esri-transforms")&&v("esri-transitions");this.navigationMode=this._mapParams.navigationMode||f&&"css-transforms"||"classic";"css-transforms"===this.navigationMode&&!f&&(this.navigationMode="classic");this.fadeOnZoom=A.isDefined(this._mapParams.fadeOnZoom)?this._mapParams.fadeOnZoom:"css-transforms"===
this.navigationMode;"css-transforms"!==this.navigationMode&&(this.fadeOnZoom=!1);this.setMapCursor("default");this.smartNavigation=c&&c.smartNavigation;if(!A.isDefined(this.smartNavigation)&&v("mac")&&!v("esri-touch")&&!v("esri-pointer")&&!(3.5>=v("ff"))){var m=navigator.userAgent.match(/Mac\s+OS\s+X\s+([\d]+)(\.|\_)([\d]+)\D/i);m&&(A.isDefined(m[1])&&A.isDefined(m[3]))&&(f=parseInt(m[1],10),m=parseInt(m[3],10),this.smartNavigation=10<f||10===f&&6<=m)}this.showAttribution=A.isDefined(this._mapParams.showAttribution)?
this._mapParams.showAttribution:!0;this._onLoadHandler_connect=B(this,"onLoad",this,"_onLoadInitNavsHandler");var s=C("div",{"class":"esriControlsBR"+(this._mapParams.nav?" withPanArrows":"")},this.root);if(this.showAttribution)if(f=h.getObject("esri.dijit.Attribution",!1))this._initAttribution(f,s);else{var e=K++,t=this;this._rids&&this._rids.push(e);l(["./dijit/Attribution"],function(a){var b=t._rids?g.indexOf(t._rids,e):-1;-1!==b&&(t._rids.splice(b,1),t._initAttribution(a,s))})}this._mapParams.logo&&
(f={},6===v("ie")&&(f.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled\x3d'true', sizingMethod\x3d'crop', src\x3d'"+l.toUrl("./images/map/logo-med.png")+"')"),this._ogol=C("div",{style:f},s),this._setLogoSize(),this._onMapResizeLogo_connect=B(this,"onResize",this,"_setLogoSize"),v("esri-touch")||(this._ogol_connect=B(this._ogol,"onclick",this,"_openLogoLink")));this.navigationManager=new w(this);c&&c.basemap&&(this._onLoadFix=!0,this.setBasemap(c.basemap),this._onLoadFix=!1);if(this.autoResize=
this._mapParams.autoResize)f=this._getEnclosingResizableWidget(this.container)||window,m=I(this,this.resize),this._rszSignal=d.pausable(f,"resize",m),this._oriSignal=d.pausable(window,"orientationchange",m),b.after(f,"resize",m,!0)},_getEnclosingResizableWidget:function(a){var b=t.getEnclosingWidget(a);return!b?b:b.resize?b:this._getEnclosingResizableWidget(a.parentNode)},_setLogoSize:function(){this._ogol&&(25E4>this.root.clientWidth*this.root.clientHeight?(c.remove(this._ogol,"logo-med"),c.add(this._ogol,
"logo-sm")):(c.remove(this._ogol,"logo-sm"),c.add(this._ogol,"logo-med")))},_initAttribution:function(a,b){var f=C("span",{"class":"esriAttribution"},b,"first");F(f,"maxWidth",Math.floor(this.width*this._mapParams.attributionWidth)+"px");this._connects.push(B(f,"onclick",function(){c.contains(this,"esriAttributionOpen")?c.remove(this,"esriAttributionOpen"):this.scrollWidth>this.clientWidth&&c.add(this,"esriAttributionOpen")}));this.attribution=new a({map:this},f)},_cleanUp:function(){this.disableMapNavigation();
this.navigationManager.destroy();var a=this._slider;a&&(a.destroy&&!a._destroyed)&&a.destroy();var a=this._navDiv,b=this.attribution;a&&f.destroy(a);b&&b.destroy();this._connects.push(this._slider_connect,this._ogol_connect,this._rszSignal,this._oriSignal);g.forEach(this._connects,D);this.attribution=this.navigationManager=this._rids=this._connects=this._slider_connect=this._ogol_connect=this._rszSignal=this._oriSignal=null;this.inherited("_cleanUp",arguments)},_isPanningOrZooming:function(){return this.__panning||
this.__zooming},_canZoom:function(a){var b=this.getLevel();return!this.__tileInfo||!(b===this.getMinZoom()&&0>a||b===this.getMaxZoom()&&0<a)},_onLoadInitNavsHandler:function(){this.enableMapNavigation();this._createNav();if("small"===this._mapParams.sliderStyle||!this._createSlider)this._createSimpleSlider();else if(this._mapParams.slider){var a=-1!==this._getSliderClass(!0).indexOf("Horizontal"),a=[a?"dijit.form.HorizontalSlider":"dijit.form.VerticalSlider",a?"dijit.form.HorizontalRule":"dijit.form.VerticalRule",
a?"dijit.form.HorizontalRuleLabels":"dijit.form.VerticalRuleLabels"];if(g.some(a,function(a){return!h.getObject(a,!1)})){var a=g.map(a,function(a){return a.replace(/\./g,"/")}),b=K++,c=this;this._rids&&this._rids.push(b);l(a,function(){var a=c._rids?g.indexOf(c._rids,b):-1;-1!==a&&(c._rids.splice(a,1),c._createSlider.apply(c,arguments))})}else a=g.map(a,function(a){return h.getObject(a,!1)}),this._createSlider.apply(this,a)}D(this._onLoadHandler_connect)},_createNav:function(){if(this._mapParams.nav){var a,
b,f,m=c.add,d=this.id;this._navDiv=C("div",{id:d+"_navdiv"},this.root);m(this._navDiv,"navDiv");var r=this.width/2,s=this.height/2,e;for(f in z)b=z[f],a=C("div",{id:d+"_pan_"+f},this._navDiv),m(a,"fixedPan "+b),"up"===f||"down"===f?(e=parseInt(E(a).w,10)/2,F(a,{left:r-e+"px",zIndex:30})):(e=parseInt(E(a).h,10)/2,F(a,{top:s-e+"px",zIndex:30})),this._connects.push(B(a,"onclick",I(this,this[b])));this._onMapResizeNavHandler_connect=B(this,"onResize",this,"_onMapResizeNavHandler");for(f in x)b=x[f],a=
C("div",{id:d+"_pan_"+f,style:{zIndex:30}},this._navDiv),m(a,"fixedPan "+b),this._connects.push(B(a,"onclick",I(this,this[b])));this.isPanArrows=!0}},_onMapResizeNavHandler:function(b,c,f){b=this.id;c/=2;f/=2;var m=a.byId,d,r,s;for(d in z)r=m(b+"_pan_"+d),"up"===d||"down"===d?(s=parseInt(E(r).w,10)/2,F(r,"left",c-s+"px")):(s=parseInt(E(r).h,10)/2,F(r,"top",f-s+"px"))},_createSimpleSlider:function(){if(this._mapParams.slider){var b=this._slider=C("div",{id:this.id+"_zoom_slider","class":this._getSliderClass(),
style:{zIndex:30}}),f=v("esri-touch")&&!v("ff")?"touchstart":v("esri-pointer")?navigator.msPointerEnabled?"MSPointerDown":"pointerdown":"onclick",m=C("div",{"class":"esriSimpleSliderIncrementButton"},b),d=C("div",{"class":"esriSimpleSliderDecrementButton"},b);this._incButton=m;this._decButton=d;this._simpleSliderZoomHandler(null,null,null,this.getLevel());m.innerHTML="+";d.innerHTML="\x26ndash;";8>v("ie")&&c.add(d,"dj_ie67Fix");this._connects.push(B(m,f,this,this._simpleSliderChangeHandler));this._connects.push(B(d,
f,this,this._simpleSliderChangeHandler));"touchstart"==f&&(this._connects.push(B(m,"onclick",this,this._simpleSliderChangeHandler)),this._connects.push(B(d,"onclick",this,this._simpleSliderChangeHandler)));(-1<this.getMaxZoom()||-1<this.getMinZoom())&&this._connects.push(B(this,"onZoomEnd",this,this._simpleSliderZoomHandler));10>v("ie")&&a.setSelectable(b,!1);this.root.appendChild(b);this.isZoomSlider=!0}},_simpleSliderChangeHandler:function(a){e.stop(a);a=-1!==a.currentTarget.className.indexOf("IncrementButton")?
!0:!1;this._extentUtil({numLevels:a?1:-1})},_simpleSliderZoomHandler:function(a,b,f,m){var d;a=this._incButton;b=this._decButton;-1<m&&m===this.getMaxZoom()?d=a:-1<m&&m===this.getMinZoom()&&(d=b);d?(c.add(d,"esriSimpleSliderDisabledButton"),c.remove(d===a?b:a,"esriSimpleSliderDisabledButton")):(c.remove(a,"esriSimpleSliderDisabledButton"),c.remove(b,"esriSimpleSliderDisabledButton"))},_getSliderClass:function(a){a=a?"Large":"Simple";var b=this._mapParams.sliderOrientation,c=this._mapParams.sliderPosition||
"",b=b&&"horizontal"===b.toLowerCase()?"esri"+a+"SliderHorizontal":"esri"+a+"SliderVertical";if(c)switch(c.toLowerCase()){case "top-left":c="esri"+a+"SliderTL";break;case "top-right":c="esri"+a+"SliderTR";break;case "bottom-left":c="esri"+a+"SliderBL";break;case "bottom-right":c="esri"+a+"SliderBR"}return"esri"+a+"Slider "+b+" "+c},_createSlider:function(a,b,c){if(this._mapParams.slider){var f=C("div",{id:this.id+"_zoom_slider"},this.root),m=u.defaults.map,d=this._getSliderClass(!0),r=-1!==d.indexOf("Horizontal"),
s=this.getNumLevels();if(0<s){var e,t,h=this._mapParams.sliderLabels,x=!!h;if(m=!1!==h){var w=r?"bottomDecoration":"rightDecoration";if(!h){h=[];for(r=0;r<s;r++)h[r]=""}g.forEach([{"class":"esriLargeSliderTicks",container:w,count:s,dijitClass:b},{"class":x&&"esriLargeSliderLabels",container:w,count:s,labels:h,dijitClass:c}],function(a){var c=C("div"),m=a.dijitClass;delete a.dijitClass;f.appendChild(c);m===b?e=new m(a,c):t=new m(a,c)})}a=this._slider=new a({id:f.id,"class":d,minimum:this.getMinZoom(),
maximum:this.getMaxZoom(),discreteValues:s,value:this.getLevel(),clickSelect:!0,intermediateChanges:!0,style:"z-index:30;"},f);a.startup();m&&(e.startup(),t.startup());this._slider_connect=B(a,"onChange",this,"_onSliderChangeHandler");this._connects.push(B(this,"onExtentChange",this,"_onExtentChangeSliderHandler"));this._connects.push(B(a._movable,"onFirstMove",this,"_onSliderMoveStartHandler"))}else{a=this._slider=new a({id:f.id,"class":d,minimum:0,maximum:2,discreteValues:3,value:1,clickSelect:!0,
intermediateChanges:m.sliderChangeImmediate,style:"height:50px; z-index:30;"},f);c=a.domNode.firstChild.childNodes;for(r=1;3>=r;r++)F(c[r],"visibility","hidden");a.startup();this._slider_connect=B(a,"onChange",this,"_onDynSliderChangeHandler");this._connects.push(B(this,"onExtentChange",this,"_onExtentChangeDynSliderHandler"))}c=a.decrementButton;a.incrementButton.style.outline="none";c.style.outline="none";a.sliderHandle.style.outline="none";a._onKeyPress=function(){};if(a=a._movable){var k=a.onMouseDown;
a.onMouseDown=function(a){9>v("ie")&&1!==a.button||k.apply(this,arguments)}}this.isZoomSlider=!0}},_onSliderMoveStartHandler:function(){D(this._slider_connect);D(this._slidermovestop_connect);this._slider_connect=B(this._slider,"onChange",this,"_onSliderChangeDragHandler");this._slidermovestop_connect=B(this._slider._movable,"onMoveStop",this,"_onSliderMoveEndHandler")},_onSliderChangeDragHandler:function(a){this._extentUtil({targetLevel:a})},_onSliderMoveEndHandler:function(){D(this._slider_connect);
D(this._slidermovestop_connect)},_onSliderChangeHandler:function(a){this.setLevel(a)},_updateSliderValue:function(a,b){D(this._slider_connect);var c=this._slider,f=c._onChangeActive;c._onChangeActive=!1;c.set("value",a);c._onChangeActive=f;this._slider_connect=B(c,"onChange",this,b)},_onExtentChangeSliderHandler:function(a,b,c,f){D(this._slidermovestop_connect);this._updateSliderValue(f.level,"_onSliderChangeHandler")},_onDynSliderChangeHandler:function(a){this._extentUtil({numLevels:0<a?1:-1})},
_onExtentChangeDynSliderHandler:function(){this._updateSliderValue(1,"_onDynSliderChangeHandler")},_openLogoLink:function(a){window.open(u.defaults.map.logoLink,"_blank");e.stop(a)},enableMapNavigation:function(){this.navigationManager.enableNavigation()},disableMapNavigation:function(){this.navigationManager.disableNavigation()},enableDoubleClickZoom:function(){this.isDoubleClickZoom||(this.navigationManager.enableDoubleClickZoom(),this.isDoubleClickZoom=!0)},disableDoubleClickZoom:function(){this.isDoubleClickZoom&&
(this.navigationManager.disableDoubleClickZoom(),this.isDoubleClickZoom=!1)},enableShiftDoubleClickZoom:function(){this.isShiftDoubleClickZoom||(L(this.declaredClass+": Map.(enable/disable)ShiftDoubleClickZoom deprecated. Shift-Double-Click zoom behavior will not be supported.",null,"v2.0"),this.navigationManager.enableShiftDoubleClickZoom(),this.isShiftDoubleClickZoom=!0)},disableShiftDoubleClickZoom:function(){this.isShiftDoubleClickZoom&&(L(this.declaredClass+": Map.(enable/disable)ShiftDoubleClickZoom deprecated. Shift-Double-Click zoom behavior will not be supported.",
null,"v2.0"),this.navigationManager.disableShiftDoubleClickZoom(),this.isShiftDoubleClickZoom=!1)},enableClickRecenter:function(){this.isClickRecenter||(this.navigationManager.enableClickRecenter(),this.isClickRecenter=!0)},disableClickRecenter:function(){this.isClickRecenter&&(this.navigationManager.disableClickRecenter(),this.isClickRecenter=!1)},enablePan:function(){this.isPan||(this.navigationManager.enablePan(),this.isPan=!0)},disablePan:function(){this.isPan&&(this.navigationManager.disablePan(),
this.isPan=!1)},enableRubberBandZoom:function(){this.isRubberBandZoom||(this.navigationManager.enableRubberBandZoom(),this.isRubberBandZoom=!0)},disableRubberBandZoom:function(){this.isRubberBandZoom&&(this.navigationManager.disableRubberBandZoom(),this.isRubberBandZoom=!1)},enableKeyboardNavigation:function(){this.isKeyboardNavigation||(this.navigationManager.enableKeyboardNavigation(),this.isKeyboardNavigation=!0)},disableKeyboardNavigation:function(){this.isKeyboardNavigation&&(this.navigationManager.disableKeyboardNavigation(),
this.isKeyboardNavigation=!1)},enableScrollWheelZoom:function(){this.isScrollWheelZoom||(this.navigationManager.enableScrollWheelZoom(),this.isScrollWheelZoom=!0)},disableScrollWheelZoom:function(){this.isScrollWheelZoom&&(this.navigationManager.disableScrollWheelZoom(),this.isScrollWheelZoom=!1)},showPanArrows:function(){this._navDiv&&(this._navDiv.style.display="block",this.isPanArrows=!0)},hidePanArrows:function(){this._navDiv&&(this._navDiv.style.display="none",this.isPanArrows=!1)},showZoomSlider:function(){this._slider&&
(F(this._slider.domNode||this._slider,"visibility","visible"),this.isZoomSlider=!0)},hideZoomSlider:function(){this._slider&&(F(this._slider.domNode||this._slider,"visibility","hidden"),this.isZoomSlider=!1)}});v("extend-esri")&&(r.Map=n);return n})},"dojo/_base/kernel":function(){define(["../has","./config","require","module"],function(l,n,k,q){var h;l=function(){return this}();var g={},e={},d={config:n,global:l,dijit:g,dojox:e},g={dojo:["dojo",d],dijit:["dijit",g],dojox:["dojox",e]};q=k.map&&k.map[q.id.match(/[^\/]+/)[0]];
for(h in q)g[h]?g[h][0]=q[h]:g[h]=[q[h],{}];for(h in g)q=g[h],q[1]._scopeName=q[0],n.noGlobals||(l[q[0]]=q[1]);d.scopeMap=g;d.baseUrl=d.config.baseUrl=k.baseUrl;d.isAsync=k.async;d.locale=n.locale;n="$Rev: e124479 $".match(/[0-9a-f]{7,}/);d.version={major:1,minor:10,patch:0,flag:"",revision:n?n[0]:NaN,toString:function(){var a=d.version;return a.major+"."+a.minor+"."+a.patch+a.flag+" ("+a.revision+")"}};Function("d","d.eval \x3d function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(d);
d.exit=function(){};"undefined"!=typeof console||(console={});k="assert count debug dir dirxml error group groupEnd info profile profileEnd time timeEnd trace warn log".split(" ");var b;for(n=0;b=k[n++];)console[b]||function(){var a=b+"";console[a]="log"in console?function(){var b=Array.prototype.slice.call(arguments);b.unshift(a+":");console.log(b.join(" "))}:function(){};console[a]._fake=!0}();d.deprecated=d.experimental=function(){};d._hasResource={};return d})},"dojo/has":function(){define(["require",
"module"],function(l,n){var k=l.has||function(){};k.add("touch","ontouchstart"in document||"onpointerdown"in document&&0<navigator.maxTouchPoints||window.navigator.msMaxTouchPoints);k.add("touch-events","ontouchstart"in document);k.add("pointer-events","onpointerdown"in document);k.add("MSPointer","msMaxTouchPoints"in navigator);k.add("device-width",screen.availWidth||innerWidth);var q=document.createElement("form");k.add("dom-attributes-explicit",0==q.attributes.length);k.add("dom-attributes-specified-flag",
0<q.attributes.length&&40>q.attributes.length);k.clearElement=function(h){h.innerHTML="";return h};k.normalize=function(h,g){var e=h.match(/[\?:]|[^:\?]*/g),d=0,b=function(a){var c=e[d++];if(":"==c)return 0;if("?"==e[d++]){if(!a&&k(c))return b();b(!0);return b(a)}return c||0};return(h=b())&&g(h)};k.load=function(h,g,e){h?g([h],e):e()};return k})},"dojo/_base/config":function(){define(["../has","require"],function(l,n){var k={},q=n.rawConfig,h;for(h in q)k[h]=q[h];if(!k.locale&&"undefined"!=typeof navigator&&
(q=navigator.language||navigator.userLanguage))k.locale=q.toLowerCase();return k})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(l,n,k){function q(a,b){throw Error("declare"+(b?" "+b:"")+": "+a);}function h(a,b,c){var f,m,d,r,s,e,t,g=this._inherited=this._inherited||{};"string"==typeof a&&(f=a,a=b,b=c);c=0;r=a.callee;(f=f||r.nom)||q("can't deduce a name to call inherited()",this.declaredClass);s=this.constructor._meta;d=s.bases;t=g.p;if(f!=B){if(g.c!==r&&(t=0,e=d[0],
s=e._meta,s.hidden[f]!==r)){(m=s.chains)&&"string"==typeof m[f]&&q("calling chained method with inherited: "+f,this.declaredClass);do if(s=e._meta,m=e.prototype,s&&(m[f]===r&&m.hasOwnProperty(f)||s.hidden[f]===r))break;while(e=d[++t]);t=e?t:-1}if(e=d[++t])if(m=e.prototype,e._meta&&m.hasOwnProperty(f))c=m[f];else{r=y[f];do if(m=e.prototype,(c=m[f])&&(e._meta?m.hasOwnProperty(f):c!==r))break;while(e=d[++t])}c=e&&c||y[f]}else{if(g.c!==r&&(t=0,(s=d[0]._meta)&&s.ctor!==r)){m=s.chains;for((!m||"manual"!==
m.constructor)&&q("calling chained constructor with inherited",this.declaredClass);(e=d[++t])&&!((s=e._meta)&&s.ctor===r););t=e?t:-1}for(;(e=d[++t])&&!(c=(s=e._meta)?s.ctor:e););c=e&&c}g.c=c;g.p=t;if(c)return!0===b?c:c.apply(this,b||a)}function g(a,b){return"string"==typeof a?this.__inherited(a,b,!0):this.__inherited(a,!0)}function e(a,b,c){var f=this.getInherited(a,b);if(f)return f.apply(this,c||b||a)}function d(a){for(var b=this.constructor._meta.bases,c=0,f=b.length;c<f;++c)if(b[c]===a)return!0;
return this instanceof a}function b(a,b){for(var c in b)c!=B&&b.hasOwnProperty(c)&&(a[c]=b[c]);if(n("bug-for-in-skips-shadowed"))for(var f=k._extraNames,m=f.length;m;)c=f[--m],c!=B&&b.hasOwnProperty(c)&&(a[c]=b[c])}function a(a){v.safeMixin(this.prototype,a);return this}function c(a,b){a instanceof Array||"function"==typeof a||(b=a,a=void 0);b=b||{};a=a||[];return v([this].concat(a),b)}function f(a,b){return function(){var c=arguments,f=c,m=c[0],d,r;r=a.length;var s;if(!(this instanceof c.callee))return u(c);
if(b&&(m&&m.preamble||this.preamble)){s=Array(a.length);s[0]=c;for(d=0;;){if(m=c[0])(m=m.preamble)&&(c=m.apply(this,c)||c);m=a[d].prototype;(m=m.hasOwnProperty("preamble")&&m.preamble)&&(c=m.apply(this,c)||c);if(++d==r)break;s[d]=c}}for(d=r-1;0<=d;--d)m=a[d],(m=(r=m._meta)?r.ctor:m)&&m.apply(this,s?s[d]:c);(m=this.postscript)&&m.apply(this,f)}}function m(a,b){return function(){var c=arguments,f=c,m=c[0];if(!(this instanceof c.callee))return u(c);b&&(m&&(m=m.preamble)&&(f=m.apply(this,f)||f),(m=this.preamble)&&
m.apply(this,f));a&&a.apply(this,c);(m=this.postscript)&&m.apply(this,c)}}function s(a){return function(){var b=arguments,c=0,f,m;if(!(this instanceof b.callee))return u(b);for(;f=a[c];++c)if(f=(m=f._meta)?m.ctor:f){f.apply(this,b);break}(f=this.postscript)&&f.apply(this,b)}}function t(a,b,c){return function(){var f,m,d=0,r=1;c&&(d=b.length-1,r=-1);for(;f=b[d];d+=r)m=f._meta,(f=(m?m.hidden:f.prototype)[a])&&f.apply(this,arguments)}}function r(a){z.prototype=a.prototype;a=new z;z.prototype=null;return a}
function u(a){var b=a.callee,c=r(b);b.apply(c,a);return c}function v(e,u,l){"string"!=typeof e&&(l=u,u=e,e="");l=l||{};var z,n,G,K,J,H,M,N=1,O=u;if("[object Array]"==w.call(u)){N=e;G=[];K=[{cls:0,refs:[]}];H={};for(var P=1,Q=u.length,W=0,X,R,U,S;W<Q;++W){(X=u[W])?"[object Function]"!=w.call(X)&&q("mixin #"+W+" is not a callable constructor.",N):q("mixin #"+W+" is unknown. Did you use dojo.require to pull it in?",N);R=X._meta?X._meta.bases:[X];U=0;for(X=R.length-1;0<=X;--X)S=R[X].prototype,S.hasOwnProperty("declaredClass")||
(S.declaredClass="uniqName_"+x++),S=S.declaredClass,H.hasOwnProperty(S)||(H[S]={count:0,refs:[],cls:R[X]},++P),S=H[S],U&&U!==S&&(S.refs.push(U),++U.count),U=S;++U.count;K[0].refs.push(U)}for(;K.length;){U=K.pop();G.push(U.cls);for(--P;n=U.refs,1==n.length;){U=n[0];if(!U||--U.count){U=0;break}G.push(U.cls);--P}if(U){W=0;for(Q=n.length;W<Q;++W)U=n[W],--U.count||K.push(U)}}P&&q("can't build consistent linearization",N);X=u[0];G[0]=X?X._meta&&X===G[G.length-X._meta.bases.length]?X._meta.bases.length:
1:0;H=G;G=H[0];N=H.length-G;u=H[N]}else H=[0],u?"[object Function]"==w.call(u)?(G=u._meta,H=H.concat(G?G.bases:u)):q("base class is not a callable constructor.",e):null!==u&&q("unknown base class. Did you use dojo.require to pull it in?",e);if(u)for(n=N-1;;--n){z=r(u);if(!n)break;G=H[n];(G._meta?b:A)(z,G.prototype);K=new Function;K.superclass=u;K.prototype=z;u=z.constructor=K}else z={};v.safeMixin(z,l);G=l.constructor;G!==y.constructor&&(G.nom=B,z.constructor=G);for(n=N-1;n;--n)(G=H[n]._meta)&&G.chains&&
(M=A(M||{},G.chains));z["-chains-"]&&(M=A(M||{},z["-chains-"]));G=!M||!M.hasOwnProperty(B);H[0]=K=M&&"manual"===M.constructor?s(H):1==H.length?m(l.constructor,G):f(H,G);K._meta={bases:H,hidden:l,chains:M,parents:O,ctor:l.constructor};K.superclass=u&&u.prototype;K.extend=a;K.createSubclass=c;K.prototype=z;z.constructor=K;z.getInherited=g;z.isInstanceOf=d;z.inherited=D;z.__inherited=h;e&&(z.declaredClass=e,k.setObject(e,K));if(M)for(J in M)z[J]&&("string"==typeof M[J]&&J!=B)&&(G=z[J]=t(J,H,"after"===
M[J]),G.nom=J);return K}var A=k.mixin,y=Object.prototype,w=y.toString,z=new Function,x=0,B="constructor",D=l.config.isDebug?e:h;l.safeMixin=v.safeMixin=function(a,b){var c,f;for(c in b)if(f=b[c],(f!==y[c]||!(c in y))&&c!=B)"[object Function]"==w.call(f)&&(f.nom=c),a[c]=f;if(n("bug-for-in-skips-shadowed"))for(var m=k._extraNames,d=m.length;d;)if(c=m[--d],f=b[c],(f!==y[c]||!(c in y))&&c!=B)"[object Function]"==w.call(f)&&(f.nom=c),a[c]=f;return a};return l.declare=v})},"dojo/_base/lang":function(){define(["./kernel",
"../has","../sniff"],function(l,n){n.add("bug-for-in-skips-shadowed",function(){for(var a in{toString:1})return 0;return 1});var k=n("bug-for-in-skips-shadowed")?"hasOwnProperty valueOf isPrototypeOf propertyIsEnumerable toLocaleString toString constructor".split(" "):[],q=k.length,h=function(a,b,f){f||(f=a[0]&&l.scopeMap[a[0]]?l.scopeMap[a.shift()][1]:l.global);try{for(var m=0;m<a.length;m++){var d=a[m];if(!(d in f))if(b)f[d]={};else return;f=f[d]}return f}catch(e){}},g=Object.prototype.toString,
e=function(a,b,f){return(f||[]).concat(Array.prototype.slice.call(a,b||0))},d=/\{([^\}]+)\}/g,b={_extraNames:k,_mixin:function(a,b,f){var m,d,e,r={};for(m in b)if(d=b[m],!(m in a)||a[m]!==d&&(!(m in r)||r[m]!==d))a[m]=f?f(d):d;if(n("bug-for-in-skips-shadowed")&&b)for(e=0;e<q;++e)if(m=k[e],d=b[m],!(m in a)||a[m]!==d&&(!(m in r)||r[m]!==d))a[m]=f?f(d):d;return a},mixin:function(a,c){a||(a={});for(var f=1,m=arguments.length;f<m;f++)b._mixin(a,arguments[f]);return a},setObject:function(a,b,f){var m=a.split(".");
a=m.pop();return(f=h(m,!0,f))&&a?f[a]=b:void 0},getObject:function(a,b,f){return h(a?a.split("."):[],b,f)},exists:function(a,c){return void 0!==b.getObject(a,!1,c)},isString:function(a){return"string"==typeof a||a instanceof String},isArray:function(a){return a&&(a instanceof Array||"array"==typeof a)},isFunction:function(a){return"[object Function]"===g.call(a)},isObject:function(a){return void 0!==a&&(null===a||"object"==typeof a||b.isArray(a)||b.isFunction(a))},isArrayLike:function(a){return a&&
void 0!==a&&!b.isString(a)&&!b.isFunction(a)&&!(a.tagName&&"form"==a.tagName.toLowerCase())&&(b.isArray(a)||isFinite(a.length))},isAlien:function(a){return a&&!b.isFunction(a)&&/\{\s*\[native code\]\s*\}/.test(String(a))},extend:function(a,c){for(var f=1,m=arguments.length;f<m;f++)b._mixin(a.prototype,arguments[f]);return a},_hitchArgs:function(a,c){var f=b._toArray(arguments,2),m=b.isString(c);return function(){var d=b._toArray(arguments),e=m?(a||l.global)[c]:c;return e&&e.apply(a||this,f.concat(d))}},
hitch:function(a,c){if(2<arguments.length)return b._hitchArgs.apply(l,arguments);c||(c=a,a=null);if(b.isString(c)){a=a||l.global;if(!a[c])throw['lang.hitch: scope["',c,'"] is null (scope\x3d"',a,'")'].join("");return function(){return a[c].apply(a,arguments||[])}}return!a?c:function(){return c.apply(a,arguments||[])}},delegate:function(){function a(){}return function(c,f){a.prototype=c;var m=new a;a.prototype=null;f&&b._mixin(m,f);return m}}(),_toArray:n("ie")?function(){function a(a,b,m){m=m||[];
for(b=b||0;b<a.length;b++)m.push(a[b]);return m}return function(b){return(b.item?a:e).apply(this,arguments)}}():e,partial:function(a){return b.hitch.apply(l,[null].concat(b._toArray(arguments)))},clone:function(a){if(!a||"object"!=typeof a||b.isFunction(a))return a;if(a.nodeType&&"cloneNode"in a)return a.cloneNode(!0);if(a instanceof Date)return new Date(a.getTime());if(a instanceof RegExp)return RegExp(a);var c,f,m;if(b.isArray(a)){c=[];f=0;for(m=a.length;f<m;++f)f in a&&c.push(b.clone(a[f]))}else c=
a.constructor?new a.constructor:{};return b._mixin(c,a,b.clone)},trim:String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(a,c,f){return a.replace(f||d,b.isFunction(c)?c:function(a,f){return b.getObject(f,!1,c)})}};b.mixin(l,b);return b})},"dojo/sniff":function(){define(["./has"],function(l){var n=navigator,k=n.userAgent,n=n.appVersion,q=parseFloat(n);l.add("air",0<=k.indexOf("AdobeAIR"));l.add("msapp",parseFloat(k.split("MSAppHost/")[1])||
void 0);l.add("khtml",0<=n.indexOf("Konqueror")?q:void 0);l.add("webkit",parseFloat(k.split("WebKit/")[1])||void 0);l.add("chrome",parseFloat(k.split("Chrome/")[1])||void 0);l.add("safari",0<=n.indexOf("Safari")&&!l("chrome")?parseFloat(n.split("Version/")[1]):void 0);l.add("mac",0<=n.indexOf("Macintosh"));l.add("quirks","BackCompat"==document.compatMode);if(k.match(/(iPhone|iPod|iPad)/)){var h=RegExp.$1.replace(/P/,"p"),g=k.match(/OS ([\d_]+)/)?RegExp.$1:"1",g=parseFloat(g.replace(/_/,".").replace(/_/g,
""));l.add(h,g);l.add("ios",g)}l.add("android",parseFloat(k.split("Android ")[1])||void 0);l.add("bb",(0<=k.indexOf("BlackBerry")||0<=k.indexOf("BB10"))&&parseFloat(k.split("Version/")[1])||void 0);l.add("trident",parseFloat(n.split("Trident/")[1])||void 0);l.add("svg","undefined"!==typeof SVGAngle);l("webkit")||(0<=k.indexOf("Opera")&&l.add("opera",9.8<=q?parseFloat(k.split("Version/")[1])||q:q),0<=k.indexOf("Gecko")&&(!l("khtml")&&!l("webkit")&&!l("trident"))&&l.add("mozilla",q),l("mozilla")&&l.add("ff",
parseFloat(k.split("Firefox/")[1]||k.split("Minefield/")[1])||void 0),document.all&&!l("opera")&&(k=parseFloat(n.split("MSIE ")[1])||void 0,(n=document.documentMode)&&(5!=n&&Math.floor(k)!=n)&&(k=n),l.add("ie",k)),l.add("wii","undefined"!=typeof opera&&opera.wiiremote));return l})},"dojo/_base/connect":function(){define("./kernel ../on ../topic ../aspect ./event ../mouse ./sniff ./lang ../keys".split(" "),function(l,n,k,q,h,g,e,d){function b(a,b,c,f,m){f=d.hitch(c,f);if(!a||!a.addEventListener&&!a.attachEvent)return q.after(a||
l.global,b,f,!0);"string"==typeof b&&"on"==b.substring(0,2)&&(b=b.substring(2));a||(a=l.global);if(!m)switch(b){case "keypress":b=s;break;case "mouseenter":b=g.enter;break;case "mouseleave":b=g.leave}return n(a,b,f,m)}function a(a){a.keyChar=a.charCode?String.fromCharCode(a.charCode):"";a.charOrCode=a.keyChar||a.keyCode}e.add("events-keypress-typed",function(){var a={charCode:0};try{a=document.createEvent("KeyboardEvent"),(a.initKeyboardEvent||a.initKeyEvent).call(a,"keypress",!0,!0,null,!1,!1,!1,
!1,9,3)}catch(b){}return 0==a.charCode&&!e("opera")});var c={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,229:113},f=e("mac")?"metaKey":"ctrlKey",m=function(b,c){var f=d.mixin({},b,c);a(f);f.preventDefault=function(){b.preventDefault()};f.stopPropagation=function(){b.stopPropagation()};return f},s;s=e("events-keypress-typed")?function(a,b){var f=n(a,"keydown",function(a){var f=a.keyCode,d=13!=f&&32!=f&&(27!=f||!e("ie"))&&(48>f||90<f)&&(96>f||111<f)&&(186>
f||192<f)&&(219>f||222<f)&&229!=f;if(d||a.ctrlKey){d=d?0:f;if(a.ctrlKey){if(3==f||13==f)return b.call(a.currentTarget,a);d=95<d&&106>d?d-48:!a.shiftKey&&65<=d&&90>=d?d+32:c[d]||d}f=m(a,{type:"keypress",faux:!0,charCode:d});b.call(a.currentTarget,f);if(e("ie"))try{a.keyCode=f.keyCode}catch(r){}}}),d=n(a,"keypress",function(a){var c=a.charCode;a=m(a,{charCode:32<=c?c:0,faux:!0});return b.call(this,a)});return{remove:function(){f.remove();d.remove()}}}:e("opera")?function(a,b){return n(a,"keypress",
function(a){var c=a.which;3==c&&(c=99);c=32>c&&!a.shiftKey?0:c;a.ctrlKey&&(!a.shiftKey&&65<=c&&90>=c)&&(c+=32);return b.call(this,m(a,{charCode:c}))})}:function(b,c){return n(b,"keypress",function(b){a(b);return c.call(this,b)})};var t={_keypress:s,connect:function(a,c,f,m,d){var s=arguments,e=[],t=0;e.push("string"==typeof s[0]?null:s[t++],s[t++]);var g=s[t+1];e.push("string"==typeof g||"function"==typeof g?s[t++]:null,s[t++]);for(g=s.length;t<g;t++)e.push(s[t]);return b.apply(this,e)},disconnect:function(a){a&&
a.remove()},subscribe:function(a,b,c){return k.subscribe(a,d.hitch(b,c))},publish:function(a,b){return k.publish.apply(k,[a].concat(b))},connectPublisher:function(a,b,c){var f=function(){t.publish(a,arguments)};return c?t.connect(b,c,f):t.connect(b,f)},isCopyKey:function(a){return a[f]}};t.unsubscribe=t.disconnect;d.mixin(l,t);return t})},"dojo/on":function(){define(["require","./_base/kernel","./sniff"],function(l,n,k){function q(a,b,f,s,t){if(s=b.match(/(.*):(.*)/))return b=s[2],s=s[1],e.selector(s,
b).call(t,a,f);k("touch")&&(d.test(b)&&(f=r(f)),!k("event-orientationchange")&&"orientationchange"==b&&(b="resize",a=window,f=r(f)));m&&(f=m(f));if(a.addEventListener){var g=b in c,h=g?c[b]:b;a.addEventListener(h,f,g);return{remove:function(){a.removeEventListener(h,f,g)}}}b="on"+b;throw Error("Target must be an event emitter");}function h(){this.cancelable=!1;this.defaultPrevented=!0}function g(){this.bubbles=!1}l=window.ScriptEngineMajorVersion;k.add("jscript",l&&l()+ScriptEngineMinorVersion()/
10);k.add("event-orientationchange",k("touch")&&!k("android"));k.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);k.add("event-focusin",function(a,b,c){return"onfocusin"in c});k("touch")&&k.add("touch-can-modify-event-delegate",function(){var a=function(){};a.prototype=document.createEvent("MouseEvents");try{var b=new a;b.target=null;return null===b.target}catch(c){return!1}});var e=function(a,b,c,f){return"function"==
typeof a.on&&"function"!=typeof b&&!a.nodeType?a.on(b,c):e.parse(a,b,c,q,f,this)};e.pausable=function(a,b,c,f){var m;a=e(a,b,function(){if(!m)return c.apply(this,arguments)},f);a.pause=function(){m=!0};a.resume=function(){m=!1};return a};e.once=function(a,b,c,f){var m=e(a,b,function(){m.remove();return c.apply(this,arguments)});return m};e.parse=function(a,b,c,f,m,d){if(b.call)return b.call(d,a,c);if(b instanceof Array)r=b;else if(-1<b.indexOf(","))var r=b.split(/\s*,\s*/);if(r){var s=[];b=0;for(var t;t=
r[b++];)s.push(e.parse(a,t,c,f,m,d));s.remove=function(){for(var a=0;a<s.length;a++)s[a].remove()};return s}return f(a,b,c,m,d)};var d=/^touch/;e.matches=function(a,b,c,f,m){m=m&&m.matches?m:n.query;f=!1!==f;1!=a.nodeType&&(a=a.parentNode);for(;!m.matches(a,b,c);)if(a==c||!1===f||!(a=a.parentNode)||1!=a.nodeType)return!1;return a};e.selector=function(a,b,c){return function(f,m){function d(b){return e.matches(b,a,f,c,r)}var r="function"==typeof a?{matches:a}:this,s=b.bubble;return s?e(f,s(d),m):e(f,
b,function(a){var b=d(a.target);if(b)return m.call(b,a)})}};var b=[].slice,a=e.emit=function(a,c,f){var m=b.call(arguments,2),d="on"+c;if("parentNode"in a){var r=m[0]={},s;for(s in f)r[s]=f[s];r.preventDefault=h;r.stopPropagation=g;r.target=a;r.type=c;f=r}do a[d]&&a[d].apply(a,m);while(f&&f.bubbles&&(a=a.parentNode));return f&&f.cancelable&&f},c=k("event-focusin")?{}:{focusin:"focus",focusout:"blur"};if(!k("event-stopimmediatepropagation"))var f=function(){this.modified=this.immediatelyStopped=!0},
m=function(a){return function(b){if(!b.immediatelyStopped)return b.stopImmediatePropagation=f,a.apply(this,arguments)}};e.emit=function(b,c,f){if(b.dispatchEvent&&document.createEvent){var m=(b.ownerDocument||document).createEvent("HTMLEvents");m.initEvent(c,!!f.bubbles,!!f.cancelable);for(var d in f)d in m||(m[d]=f[d]);return b.dispatchEvent(m)&&m}return a.apply(e,arguments)};if(k("touch"))var s=function(){},t=window.orientation,r=function(a){return function(b){var c=b.corrected;if(!c){var f=b.type;
try{delete b.type}catch(m){}if(b.type){if(k("touch-can-modify-event-delegate"))s.prototype=b,c=new s;else{var c={},d;for(d in b)c[d]=b[d]}c.preventDefault=function(){b.preventDefault()};c.stopPropagation=function(){b.stopPropagation()}}else c=b,c.type=f;b.corrected=c;if("resize"==f){if(t==window.orientation)return null;t=window.orientation;c.type="orientationchange";return a.call(this,c)}"rotation"in c||(c.rotation=0,c.scale=1);var f=c.changedTouches[0],r;for(r in f)delete c[r],c[r]=f[r]}return a.call(this,
c)}};return e})},"dojo/topic":function(){define(["./Evented"],function(l){var n=new l;return{publish:function(k,l){return n.emit.apply(n,arguments)},subscribe:function(k,l){return n.on.apply(n,arguments)}}})},"dojo/Evented":function(){define(["./aspect","./on"],function(l,n){function k(){}var q=l.after;k.prototype={on:function(h,g){return n.parse(this,h,g,function(e,d){return q(e,"on"+d,g,!0)})},emit:function(h,g){var e=[this];e.push.apply(e,arguments);return n.emit.apply(n,e)}};return k})},"dojo/aspect":function(){define([],
function(){function l(d,b,a,c){var f=d[b],m="around"==b,s;if(m){var e=a(function(){return f.advice(this,arguments)});s={remove:function(){e&&(e=d=a=null)},advice:function(a,b){return e?e.apply(a,b):f.advice(a,b)}}}else s={remove:function(){if(s.advice){var c=s.previous,f=s.next;!f&&!c?delete d[b]:(c?c.next=f:d[b]=f,f&&(f.previous=c));d=a=s.advice=null}},id:q++,advice:a,receiveArguments:c};if(f&&!m)if("after"==b){for(;f.next&&(f=f.next););f.next=s;s.previous=f}else"before"==b&&(d[b]=s,s.next=f,f.previous=
s);else d[b]=s;return s}function n(d){return function(b,a,c,f){var m=b[a],s;if(!m||m.target!=b)b[a]=s=function(){for(var a=q,b=arguments,c=s.before;c;)b=c.advice.apply(this,b)||b,c=c.next;if(s.around)var f=s.around.advice(this,b);for(c=s.after;c&&c.id<a;){if(c.receiveArguments)var m=c.advice.apply(this,b),f=m===k?f:m;else f=c.advice.call(this,f,b);c=c.next}return f},m&&(s.around={advice:function(a,b){return m.apply(a,b)}}),s.target=b;b=l(s||m,d,c,f);c=null;return b}}var k,q=0,h=n("after"),g=n("before"),
e=n("around");return{before:g,around:e,after:h}})},"dojo/_base/event":function(){define(["./kernel","../on","../has","../dom-geometry"],function(l,n,k,q){if(n._fixEvent){var h=n._fixEvent;n._fixEvent=function(g,e){(g=h(g,e))&&q.normalizeEvent(g);return g}}k={fix:function(g,e){return n._fixEvent?n._fixEvent(g,e):g},stop:function(g){g.preventDefault();g.stopPropagation()}};l.fixEvent=k.fix;l.stopEvent=k.stop;return k})},"dojo/dom-geometry":function(){define(["./sniff","./_base/window","./dom","./dom-style"],
function(l,n,k,q){function h(a,b,f,m,d,e){e=e||"px";a=a.style;isNaN(b)||(a.left=b+e);isNaN(f)||(a.top=f+e);0<=m&&(a.width=m+e);0<=d&&(a.height=d+e)}function g(a){return"button"==a.tagName.toLowerCase()||"input"==a.tagName.toLowerCase()&&"button"==(a.getAttribute("type")||"").toLowerCase()}function e(a){return"border-box"==d.boxModel||"table"==a.tagName.toLowerCase()||g(a)}var d={boxModel:"content-box"};l("ie")&&(d.boxModel="BackCompat"==document.compatMode?"border-box":"content-box");d.getPadExtents=
function(a,b){a=k.byId(a);var f=b||q.getComputedStyle(a),m=q.toPixelValue,d=m(a,f.paddingLeft),e=m(a,f.paddingTop),r=m(a,f.paddingRight),f=m(a,f.paddingBottom);return{l:d,t:e,r:r,b:f,w:d+r,h:e+f}};d.getBorderExtents=function(a,b){a=k.byId(a);var f=q.toPixelValue,m=b||q.getComputedStyle(a),d="none"!=m.borderLeftStyle?f(a,m.borderLeftWidth):0,e="none"!=m.borderTopStyle?f(a,m.borderTopWidth):0,r="none"!=m.borderRightStyle?f(a,m.borderRightWidth):0,f="none"!=m.borderBottomStyle?f(a,m.borderBottomWidth):
0;return{l:d,t:e,r:r,b:f,w:d+r,h:e+f}};d.getPadBorderExtents=function(a,b){a=k.byId(a);var f=b||q.getComputedStyle(a),m=d.getPadExtents(a,f),f=d.getBorderExtents(a,f);return{l:m.l+f.l,t:m.t+f.t,r:m.r+f.r,b:m.b+f.b,w:m.w+f.w,h:m.h+f.h}};d.getMarginExtents=function(a,b){a=k.byId(a);var f=b||q.getComputedStyle(a),m=q.toPixelValue,d=m(a,f.marginLeft),e=m(a,f.marginTop),r=m(a,f.marginRight),f=m(a,f.marginBottom);return{l:d,t:e,r:r,b:f,w:d+r,h:e+f}};d.getMarginBox=function(a,b){a=k.byId(a);var f=b||q.getComputedStyle(a),
m=d.getMarginExtents(a,f),s=a.offsetLeft-m.l,e=a.offsetTop-m.t,r=a.parentNode,g=q.toPixelValue;if(l("mozilla")){var h=parseFloat(f.left),f=parseFloat(f.top);!isNaN(h)&&!isNaN(f)?(s=h,e=f):r&&r.style&&(r=q.getComputedStyle(r),"visible"!=r.overflow&&(s+="none"!=r.borderLeftStyle?g(a,r.borderLeftWidth):0,e+="none"!=r.borderTopStyle?g(a,r.borderTopWidth):0))}else if((l("opera")||8==l("ie")&&!l("quirks"))&&r)r=q.getComputedStyle(r),s-="none"!=r.borderLeftStyle?g(a,r.borderLeftWidth):0,e-="none"!=r.borderTopStyle?
g(a,r.borderTopWidth):0;return{l:s,t:e,w:a.offsetWidth+m.w,h:a.offsetHeight+m.h}};d.getContentBox=function(a,b){a=k.byId(a);var f=b||q.getComputedStyle(a),m=a.clientWidth,s=d.getPadExtents(a,f),e=d.getBorderExtents(a,f);m?(f=a.clientHeight,e.w=e.h=0):(m=a.offsetWidth,f=a.offsetHeight);l("opera")&&(s.l+=e.l,s.t+=e.t);return{l:s.l,t:s.t,w:m-s.w-e.w,h:f-s.h-e.h}};d.setContentSize=function(a,b,f){a=k.byId(a);var m=b.w;b=b.h;e(a)&&(f=d.getPadBorderExtents(a,f),0<=m&&(m+=f.w),0<=b&&(b+=f.h));h(a,NaN,NaN,
m,b)};var b={l:0,t:0,w:0,h:0};d.setMarginBox=function(a,c,f){a=k.byId(a);var m=f||q.getComputedStyle(a);f=c.w;var s=c.h,t=e(a)?b:d.getPadBorderExtents(a,m),m=d.getMarginExtents(a,m);if(l("webkit")&&g(a)){var r=a.style;0<=f&&!r.width&&(r.width="4px");0<=s&&!r.height&&(r.height="4px")}0<=f&&(f=Math.max(f-t.w-m.w,0));0<=s&&(s=Math.max(s-t.h-m.h,0));h(a,c.l,c.t,f,s)};d.isBodyLtr=function(a){a=a||n.doc;return"ltr"==(n.body(a).dir||a.documentElement.dir||"ltr").toLowerCase()};d.docScroll=function(a){a=
a||n.doc;var b=n.doc.parentWindow||n.doc.defaultView;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=l("quirks")?n.body(a):a.documentElement)&&{x:d.fixIeBiDiScrollLeft(b.scrollLeft||0,a),y:b.scrollTop||0}};l("ie")&&(d.getIeDocumentElementOffset=function(a){a=a||n.doc;a=a.documentElement;if(8>l("ie")){var b=a.getBoundingClientRect(),f=b.left,b=b.top;7>l("ie")&&(f+=a.clientLeft,b+=a.clientTop);return{x:0>f?0:f,y:0>b?0:b}}return{x:0,y:0}});d.fixIeBiDiScrollLeft=function(a,b){b=b||n.doc;
var f=l("ie");if(f&&!d.isBodyLtr(b)){var m=l("quirks"),s=m?n.body(b):b.documentElement,e=n.global;6==f&&(!m&&e.frameElement&&s.scrollHeight>s.clientHeight)&&(a+=s.clientLeft);return 8>f||m?a+s.clientWidth-s.scrollWidth:-a}return a};d.position=function(a,b){a=k.byId(a);var f=n.body(a.ownerDocument),m=a.getBoundingClientRect(),m={x:m.left,y:m.top,w:m.right-m.left,h:m.bottom-m.top};if(9>l("ie")){var s=d.getIeDocumentElementOffset(a.ownerDocument);m.x-=s.x+(l("quirks")?f.clientLeft+f.offsetLeft:0);m.y-=
s.y+(l("quirks")?f.clientTop+f.offsetTop:0)}b&&(f=d.docScroll(a.ownerDocument),m.x+=f.x,m.y+=f.y);return m};d.getMarginSize=function(a,b){a=k.byId(a);var f=d.getMarginExtents(a,b||q.getComputedStyle(a)),m=a.getBoundingClientRect();return{w:m.right-m.left+f.w,h:m.bottom-m.top+f.h}};d.normalizeEvent=function(a){"layerX"in a||(a.layerX=a.offsetX,a.layerY=a.offsetY)};return d})},"dojo/_base/window":function(){define(["./kernel","./lang","../sniff"],function(l,n,k){var q={global:l.global,doc:l.global.document||
null,body:function(h){h=h||l.doc;return h.body||h.getElementsByTagName("body")[0]},setContext:function(h,g){l.global=q.global=h;l.doc=q.doc=g},withGlobal:function(h,g,e,d){var b=l.global;try{return l.global=q.global=h,q.withDoc.call(null,h.document,g,e,d)}finally{l.global=q.global=b}},withDoc:function(h,g,e,d){var b=q.doc,a=k("quirks"),c=k("ie"),f,m,s;try{l.doc=q.doc=h;l.isQuirks=k.add("quirks","BackCompat"==l.doc.compatMode,!0,!0);if(k("ie")&&(s=h.parentWindow)&&s.navigator)f=parseFloat(s.navigator.appVersion.split("MSIE ")[1])||
void 0,(m=h.documentMode)&&(5!=m&&Math.floor(f)!=m)&&(f=m),l.isIE=k.add("ie",f,!0,!0);e&&"string"==typeof g&&(g=e[g]);return g.apply(e,d||[])}finally{l.doc=q.doc=b,l.isQuirks=k.add("quirks",a,!0,!0),l.isIE=k.add("ie",c,!0,!0)}}};n.mixin(l,q);return q})},"dojo/dom":function(){define(["./sniff","./_base/window"],function(l,n){if(7>=l("ie"))try{document.execCommand("BackgroundImageCache",!1,!0)}catch(k){}var q={};l("ie")?q.byId=function(g,e){if("string"!=typeof g)return g;var d=e||n.doc,b=g&&d.getElementById(g);
if(b&&(b.attributes.id.value==g||b.id==g))return b;d=d.all[g];if(!d||d.nodeName)d=[d];for(var a=0;b=d[a++];)if(b.attributes&&b.attributes.id&&b.attributes.id.value==g||b.id==g)return b}:q.byId=function(g,e){return("string"==typeof g?(e||n.doc).getElementById(g):g)||null};q.isDescendant=function(g,e){try{g=q.byId(g);for(e=q.byId(e);g;){if(g==e)return!0;g=g.parentNode}}catch(d){}return!1};l.add("css-user-select",function(g,e,d){if(!d)return!1;g=d.style;e=["Khtml","O","Moz","Webkit"];d=e.length;var b=
"userSelect";do if("undefined"!==typeof g[b])return b;while(d--&&(b=e[d]+"UserSelect"));return!1});var h=l("css-user-select");q.setSelectable=h?function(g,e){q.byId(g).style[h]=e?"":"none"}:function(g,e){g=q.byId(g);var d=g.getElementsByTagName("*"),b=d.length;if(e)for(g.removeAttribute("unselectable");b--;)d[b].removeAttribute("unselectable");else for(g.setAttribute("unselectable","on");b--;)d[b].setAttribute("unselectable","on")};return q})},"dojo/dom-style":function(){define(["./sniff","./dom"],
function(l,n){function k(b,f,d){f=f.toLowerCase();if(l("ie")||l("trident")){if("auto"==d){if("height"==f)return b.offsetHeight;if("width"==f)return b.offsetWidth}if("fontweight"==f)switch(d){case 700:return"bold";default:return"normal"}}f in a||(a[f]=c.test(f));return a[f]?g(b,d):d}var q,h={};q=l("webkit")?function(a){var b;if(1==a.nodeType){var c=a.ownerDocument.defaultView;b=c.getComputedStyle(a,null);!b&&a.style&&(a.style.display="",b=c.getComputedStyle(a,null))}return b||{}}:l("ie")&&(9>l("ie")||
l("quirks"))?function(a){return 1==a.nodeType&&a.currentStyle?a.currentStyle:{}}:function(a){return 1==a.nodeType?a.ownerDocument.defaultView.getComputedStyle(a,null):{}};h.getComputedStyle=q;var g;g=l("ie")?function(a,b){if(!b)return 0;if("medium"==b)return 4;if(b.slice&&"px"==b.slice(-2))return parseFloat(b);var c=a.style,f=a.runtimeStyle,d=c.left,e=f.left;f.left=a.currentStyle.left;try{c.left=b,b=c.pixelLeft}catch(g){b=0}c.left=d;f.left=e;return b}:function(a,b){return parseFloat(b)||0};h.toPixelValue=
g;var e=function(a,b){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(c){return b?{}:null}},d=9>l("ie")||10>l("ie")&&l("quirks")?function(a){try{return e(a).Opacity/100}catch(b){return 1}}:function(a){return q(a).opacity},b=9>l("ie")||10>l("ie")&&l("quirks")?function(a,c){""===c&&(c=1);var f=100*c;1===c?(a.style.zoom="",e(a)&&(a.style.filter=a.style.filter.replace(/\s*progid:DXImageTransform.Microsoft.Alpha\([^\)]+?\)/i,""))):(a.style.zoom=1,e(a)?e(a,1).Opacity=f:a.style.filter+=
" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+f+")",e(a,1).Enabled=!0);if("tr"==a.tagName.toLowerCase())for(f=a.firstChild;f;f=f.nextSibling)"td"==f.tagName.toLowerCase()&&b(f,c);return c}:function(a,b){return a.style.opacity=b},a={left:!0,top:!0},c=/margin|padding|width|height|max|min|offset/,f={cssFloat:1,styleFloat:1,"float":1};h.get=function(a,b){var c=n.byId(a),r=arguments.length;if(2==r&&"opacity"==b)return d(c);b=f[b]?"cssFloat"in c.style?"cssFloat":"styleFloat":b;var e=h.getComputedStyle(c);
return 1==r?e:k(c,b,e[b]||c.style[b])};h.set=function(a,c,d){var r=n.byId(a),e=arguments.length,g="opacity"==c;c=f[c]?"cssFloat"in r.style?"cssFloat":"styleFloat":c;if(3==e)return g?b(r,d):r.style[c]=d;for(var k in c)h.set(a,k,c[k]);return h.getComputedStyle(r)};return h})},"dojo/mouse":function(){define(["./_base/kernel","./on","./has","./dom","./_base/window"],function(l,n,k,q,h){function g(e,d){var b=function(a,b){return n(a,e,function(f){if(d)return d(f,b);if(!q.isDescendant(f.relatedTarget,a))return b.call(this,
f)})};b.bubble=function(a){return g(e,function(b,f){var m=a(b.target),d=b.relatedTarget;if(m&&m!=(d&&1==d.nodeType&&a(d)))return f.call(m,b)})};return b}k.add("dom-quirks",h.doc&&"BackCompat"==h.doc.compatMode);k.add("events-mouseenter",h.doc&&"onmouseenter"in h.doc.createElement("div"));k.add("events-mousewheel",h.doc&&"onmousewheel"in h.doc);h=k("dom-quirks")&&k("ie")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,d){return e.button&d},isLeft:function(e){return e.button&1},isMiddle:function(e){return e.button&
4},isRight:function(e){return e.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,d){return e.button==d},isLeft:function(e){return 0==e.button},isMiddle:function(e){return 1==e.button},isRight:function(e){return 2==e.button}};l.mouseButtons=h;l=k("events-mousewheel")?"mousewheel":function(e,d){return n(e,"DOMMouseScroll",function(b){b.wheelDelta=-b.detail;d.call(this,b)})};return{_eventHandler:g,enter:g("mouseover"),leave:g("mouseout"),wheel:l,isLeft:h.isLeft,isMiddle:h.isMiddle,isRight:h.isRight}})},
"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(l,n,k){l._name="browser";n.mixin(l,{isBrowser:!0,isFF:k("ff"),isIE:k("ie"),isKhtml:k("khtml"),isWebKit:k("webkit"),isMozilla:k("mozilla"),isMoz:k("mozilla"),isOpera:k("opera"),isSafari:k("safari"),isChrome:k("chrome"),isMac:k("mac"),isIos:k("ios"),isAndroid:k("android"),isWii:k("wii"),isQuirks:k("quirks"),isAir:k("air")});return k})},"dojo/keys":function(){define(["./_base/kernel","./sniff"],function(l,n){return l.keys=
{BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:n("webkit")?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,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:n("mac")&&!n("air")?n("safari")?91:224:17}})},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],function(l,n,k){function q(a){return e[a]=new Function("item","index","array",a)}function h(a){var b=!a;return function(f,m,d){var g=0,r=f&&f.length||0,u;r&&"string"==
typeof f&&(f=f.split(""));"string"==typeof m&&(m=e[m]||q(m));if(d)for(;g<r;++g){if(u=!m.call(d,f[g],g,f),a^u)return!u}else for(;g<r;++g)if(u=!m(f[g],g,f),a^u)return!u;return b}}function g(a){var c=1,f=0,m=0;a||(c=f=m=-1);return function(e,g,r,u){if(u&&0<c)return b.lastIndexOf(e,g,r);u=e&&e.length||0;var h=a?u+m:f;r===d?r=a?f:u+m:0>r?(r=u+r,0>r&&(r=f)):r=r>=u?u+m:r;for(u&&"string"==typeof e&&(e=e.split(""));r!=h;r+=c)if(e[r]==g)return r;return-1}}var e={},d,b={every:h(!1),some:h(!0),indexOf:g(!0),
lastIndexOf:g(!1),forEach:function(a,b,f){var m=0,d=a&&a.length||0;d&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=e[b]||q(b));if(f)for(;m<d;++m)b.call(f,a[m],m,a);else for(;m<d;++m)b(a[m],m,a)},map:function(a,b,f,m){var d=0,g=a&&a.length||0;m=new (m||Array)(g);g&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=e[b]||q(b));if(f)for(;d<g;++d)m[d]=b.call(f,a[d],d,a);else for(;d<g;++d)m[d]=b(a[d],d,a);return m},filter:function(a,b,f){var m=0,d=a&&a.length||0,g=[],r;d&&"string"==
typeof a&&(a=a.split(""));"string"==typeof b&&(b=e[b]||q(b));if(f)for(;m<d;++m)r=a[m],b.call(f,r,m,a)&&g.push(r);else for(;m<d;++m)r=a[m],b(r,m,a)&&g.push(r);return g},clearCache:function(){e={}}};k.mixin(l,b);return b})},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(l,n,k){function q(b){if("string"==typeof b||b instanceof String){if(b&&!g.test(b))return e[0]=b,e;b=b.split(g);b.length&&!b[0]&&b.shift();b.length&&!b[b.length-1]&&b.pop();return b}return!b?[]:n.filter(b,
function(a){return a})}var h,g=/\s+/,e=[""],d={};return h={contains:function(b,a){return 0<=(" "+k.byId(b).className+" ").indexOf(" "+a+" ")},add:function(b,a){b=k.byId(b);a=q(a);var c=b.className,f,c=c?" "+c+" ":" ";f=c.length;for(var m=0,d=a.length,e;m<d;++m)(e=a[m])&&0>c.indexOf(" "+e+" ")&&(c+=e+" ");f<c.length&&(b.className=c.substr(1,c.length-2))},remove:function(b,a){b=k.byId(b);var c;if(void 0!==a){a=q(a);c=" "+b.className+" ";for(var f=0,m=a.length;f<m;++f)c=c.replace(" "+a[f]+" "," ");c=
l.trim(c)}else c="";b.className!=c&&(b.className=c)},replace:function(b,a,c){b=k.byId(b);d.className=b.className;h.remove(d,c);h.add(d,a);b.className!==d.className&&(b.className=d.className)},toggle:function(b,a,c){b=k.byId(b);if(void 0===c){a=q(a);for(var f=0,m=a.length,d;f<m;++f)d=a[f],h[h.contains(b,d)?"remove":"add"](b,d)}else h[c?"add":"remove"](b,a);return c}}})},"dojo/dom-construct":function(){define("exports ./_base/kernel ./sniff ./_base/window ./dom ./dom-attr".split(" "),function(l,n,k,
q,h,g){function e(a,b){var f=b.parentNode;f&&f.insertBefore(a,b)}function d(a){if("innerHTML"in a)try{a.innerHTML="";return}catch(b){}for(var f;f=a.lastChild;)a.removeChild(f)}var b={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"]},a=/<\s*([\w\:]+)/,c={},f=0,m="__"+n._scopeName+"ToDomId",s;for(s in b)b.hasOwnProperty(s)&&
(n=b[s],n.pre="option"==s?'\x3cselect multiple\x3d"multiple"\x3e':"\x3c"+n.join("\x3e\x3c")+"\x3e",n.post="\x3c/"+n.reverse().join("\x3e\x3c/")+"\x3e");var t;8>=k("ie")&&(t=function(a){a.__dojo_html5_tested="yes";var b=r("div",{innerHTML:"\x3cnav\x3ea\x3c/nav\x3e",style:{visibility:"hidden"}},a.body);1!==b.childNodes.length&&"abbr article aside audio canvas details figcaption figure footer header hgroup mark meter nav output progress section summary time video".replace(/\b\w+\b/g,function(b){a.createElement(b)});
u(b)});l.toDom=function(d,r){r=r||q.doc;var e=r[m];e||(r[m]=e=++f+"",c[e]=r.createElement("div"));8>=k("ie")&&!r.__dojo_html5_tested&&r.body&&t(r);d+="";var g=d.match(a),s=g?g[1].toLowerCase():"",e=c[e];if(g&&b[s]){g=b[s];e.innerHTML=g.pre+d+g.post;for(g=g.length;g;--g)e=e.firstChild}else e.innerHTML=d;if(1==e.childNodes.length)return e.removeChild(e.firstChild);for(s=r.createDocumentFragment();g=e.firstChild;)s.appendChild(g);return s};l.place=function(a,b,f){b=h.byId(b);"string"==typeof a&&(a=/^\s*</.test(a)?
l.toDom(a,b.ownerDocument):h.byId(a));if("number"==typeof f){var c=b.childNodes;!c.length||c.length<=f?b.appendChild(a):e(a,c[0>f?0:f])}else switch(f){case "before":e(a,b);break;case "after":f=a;(c=b.parentNode)&&(c.lastChild==b?c.appendChild(f):c.insertBefore(f,b.nextSibling));break;case "replace":b.parentNode.replaceChild(a,b);break;case "only":l.empty(b);b.appendChild(a);break;case "first":if(b.firstChild){e(a,b.firstChild);break}default:b.appendChild(a)}return a};var r=l.create=function(a,b,f,
c){var m=q.doc;f&&(f=h.byId(f),m=f.ownerDocument);"string"==typeof a&&(a=m.createElement(a));b&&g.set(a,b);f&&l.place(a,f,c);return a};l.empty=function(a){d(h.byId(a))};var u=l.destroy=function(a){if(a=h.byId(a)){var b=a;a=a.parentNode;b.firstChild&&d(b);a&&(k("ie")&&a.canHaveChildren&&"removeNode"in b?b.removeNode(!1):a.removeChild(b))}}})},"dojo/dom-attr":function(){define("exports ./sniff ./_base/lang ./dom ./dom-style ./dom-prop".split(" "),function(l,n,k,q,h,g){function e(a,b){var f=a.getAttributeNode&&
a.getAttributeNode(b);return f&&f.specified}var d={innerHTML:1,textContent:1,className:1,htmlFor:n("ie"),value:1},b={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};l.has=function(a,c){var f=c.toLowerCase();return d[g.names[f]||c]||e(q.byId(a),b[f]||c)};l.get=function(a,c){a=q.byId(a);var f=c.toLowerCase(),m=g.names[f]||c,s=a[m];if(d[m]&&"undefined"!=typeof s)return s;if("textContent"==m)return g.get(a,m);if("href"!=m&&("boolean"==typeof s||k.isFunction(s)))return s;f=b[f]||
c;return e(a,f)?a.getAttribute(f):null};l.set=function(a,c,f){a=q.byId(a);if(2==arguments.length){for(var m in c)l.set(a,m,c[m]);return a}m=c.toLowerCase();var e=g.names[m]||c,t=d[e];if("style"==e&&"string"!=typeof f)return h.set(a,f),a;if(t||"boolean"==typeof f||k.isFunction(f))return g.set(a,c,f);a.setAttribute(b[m]||c,f);return a};l.remove=function(a,c){q.byId(a).removeAttribute(b[c.toLowerCase()]||c)};l.getNodeProp=function(a,c){a=q.byId(a);var f=c.toLowerCase(),m=g.names[f]||c;if(m in a&&"href"!=
m)return a[m];f=b[f]||c;return e(a,f)?a.getAttribute(f):null}})},"dojo/dom-prop":function(){define("exports ./_base/kernel ./sniff ./_base/lang ./dom ./dom-style ./dom-construct ./_base/connect".split(" "),function(l,n,k,q,h,g,e,d){function b(a){var f="";a=a.childNodes;for(var c=0,d;d=a[c];c++)8!=d.nodeType&&(f=1==d.nodeType?f+b(d):f+d.nodeValue);return f}var a={},c=0,f=n._scopeName+"attrid";k.add("dom-textContent",function(a,b,f){return"textContent"in f});l.names={"class":"className","for":"htmlFor",
tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",textcontent:"textContent",valuetype:"valueType"};l.get=function(a,f){a=h.byId(a);var c=f.toLowerCase(),c=l.names[c]||f;return"textContent"==c&&!k("dom-textContent")?b(a):a[c]};l.set=function(b,s,t){b=h.byId(b);if(2==arguments.length&&"string"!=typeof s){for(var r in s)l.set(b,r,s[r]);return b}r=s.toLowerCase();r=l.names[r]||s;if("style"==r&&"string"!=typeof t)return g.set(b,t),b;if("innerHTML"==r)return k("ie")&&
b.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(e.empty(b),b.appendChild(e.toDom(t,b.ownerDocument))):b[r]=t,b;if("textContent"==r&&!k("dom-textContent"))return e.empty(b),b.appendChild(b.ownerDocument.createTextNode(t)),b;if(q.isFunction(t)){var u=b[f];u||(u=c++,b[f]=u);a[u]||(a[u]={});var v=a[u][r];if(v)d.disconnect(v);else try{delete b[r]}catch(A){}t?a[u][r]=d.connect(b,r,t):b[r]=null;return b}b[r]=t;return b}})},"dijit/registry":function(){define(["dojo/_base/array",
"dojo/_base/window","./main"],function(l,n,k){var q={},h={},g={length:0,add:function(e){if(h[e.id])throw Error("Tried to register widget with id\x3d\x3d"+e.id+" but that id is already registered");h[e.id]=e;this.length++},remove:function(e){h[e]&&(delete h[e],this.length--)},byId:function(e){return"string"==typeof e?h[e]:e},byNode:function(e){return h[e.getAttribute("widgetId")]},toArray:function(){var e=[],d;for(d in h)e.push(h[d]);return e},getUniqueId:function(e){var d;do d=e+"_"+(e in q?++q[e]:
q[e]=0);while(h[d]);return"dijit"==k._scopeName?d:k._scopeName+"_"+d},findWidgets:function(e,d){function b(c){for(c=c.firstChild;c;c=c.nextSibling)if(1==c.nodeType){var f=c.getAttribute("widgetId");f?(f=h[f])&&a.push(f):c!==d&&b(c)}}var a=[];b(e);return a},_destroyAll:function(){k._curFocus=null;k._prevFocus=null;k._activeStack=[];l.forEach(g.findWidgets(n.body()),function(e){e._destroyed||(e.destroyRecursive?e.destroyRecursive():e.destroy&&e.destroy())})},getEnclosingWidget:function(e){for(;e;){var d=
1==e.nodeType&&e.getAttribute("widgetId");if(d)return h[d];e=e.parentNode}return null},_hash:h};return k.registry=g})},"dijit/main":function(){define(["dojo/_base/kernel"],function(l){return l.dijit})},"esri/kernel":function(){define(["dojo/_base/kernel","dojo/_base/config","dojo/has"],function(l,n,k){var q=window.location,h=q.pathname,h={version:"3.11",_appBaseUrl:q.protocol+"//"+q.host+h.substring(0,h.lastIndexOf(h.split("/")[h.split("/").length-1]))};n.noGlobals||(window.esri=h);l.isAsync||k.add("extend-esri",
1);(h.dijit=h.dijit||{})._arcgisUrl=("file:"===q.protocol?"http:":q.protocol)+"//www.arcgis.com/sharing/rest";return h})},"esri/config":function(){define(["dojo/_base/config","dojo/topic","dojo/has","./kernel"],function(l,n,k,q){var h={defaults:{screenDPI:96,geometryService:null,kmlService:null,map:{width:400,height:400,layerNamePrefix:"layer",graphicsLayerNamePrefix:"graphicsLayer",slider:{left:"30px",top:"30px",width:null,height:"200px"},sliderLabel:{tick:5,labels:null,style:"width:2em; font-family:Verdana; font-size:75%;"},
sliderChangeImmediate:!0,zoomSymbol:{color:[0,0,0,64],outline:{color:[255,0,0,255],width:1.25,style:"esriSLSSolid"},style:"esriSFSSolid"},zoomDuration:500,zoomRate:25,panDuration:350,panRate:25,logoLink:"http://www.esri.com",basemaps:{streets:{title:"Streets",baseMapLayers:[{url:"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"}]},satellite:{title:"Satellite",baseMapLayers:[{url:"http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"}]},hybrid:{title:"Imagery with Labels",
baseMapLayers:[{url:"http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"},{url:"http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer",isReference:!0}]},topo:{title:"Topographic",baseMapLayers:[{url:"http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"}]},gray:{title:"Light Gray Canvas",baseMapLayers:[{url:"http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer"},
{url:"http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer",isReference:!0}]},oceans:{title:"Oceans",baseMapLayers:[{url:"http://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"},{url:"http://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer",isReference:!0}]},"national-geographic":{title:"National Geographic",baseMapLayers:[{url:"http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer"}]},
osm:{title:"OpenStreetMap",baseMapLayers:[{type:"OpenStreetMap"}]}}},autoSpatialIndexing:window.Worker&&!1,io:{errorHandler:function(g,e){n.publish("esri.Error",[g])},proxyUrl:null,alwaysUseProxy:!1,useCors:!0,corsEnabledServers:"www.arcgis.com tiles.arcgis.com services.arcgis.com services1.arcgis.com services2.arcgis.com services3.arcgis.com static.arcgis.com utility.arcgisonline.com geocode.arcgis.com geoenrich.arcgis.com qaext.arcgis.com tilesqa.arcgis.com servicesqa.arcgis.com servicesqa1.arcgis.com servicesqa2.arcgis.com servicesqa3.arcgis.com geocodeqa.arcgis.com geoenrichqa.arcgis.com dev.arcgis.com devext.arcgis.com tilesdevext.arcgis.com servicesdev.arcgis.com servicesdev1.arcgis.com servicesdev2.arcgis.com servicesdev3.arcgis.com geocodedev.arcgis.com geoenrichdev.arcgis.com".split(" "),
corsDetection:window.cordova?!1:!0,_processedCorsServers:{},webTierAuthServers:[],proxyRules:[],postLength:2E3,timeout:6E4,useWorkers:"on-request",maxRequestWorkers:5}}};k("extend-esri")&&(q.config=h);l.noGlobals||(window.esriConfig=h);return h})},"esri/sniff":function(){define(["dojo/_base/sniff","./kernel"],function(l,n){var k=l("ff"),q=l("ie"),h=void 0===q&&7<=l("trident"),g=l("webkit"),e=l("opera"),d=l("chrome"),b=l("safari"),a=navigator.userAgent,c;(c=a.match(/(iPhone|iPad|CPU)\s+OS\s+(\d+\_\d+)/i))&&
l.add("esri-iphone",parseFloat(c[2].replace("_",".")));(c=a.match(/Android\s+(\d+\.\d+)/i))&&l.add("esri-android",parseFloat(c[1]));(c=a.match(/Fennec\/(\d+\.\d+)/i))&&l.add("esri-fennec",parseFloat(c[1]));0<=a.indexOf("BlackBerry")&&0<=a.indexOf("WebKit")&&l.add("esri-blackberry",1);l.add("esri-touch",l("esri-iphone")||l("esri-android")||l("esri-blackberry")||6<=l("esri-fennec")||(k||g)&&document.createTouch?!0:!1);l.add("esri-pointer",navigator.pointerEnabled||navigator.msPointerEnabled);n._getDOMAccessor=
function(a){var b="";k?b="Moz":g?b="Webkit":q?b="ms":e&&(b="O");return b+a.charAt(0).toUpperCase()+a.substr(1)};l.add("esri-phonegap",!!window.cordova);l.add("esri-cors",l("esri-phonegap")||"XMLHttpRequest"in window&&"withCredentials"in new XMLHttpRequest);l.add("esri-file-upload",window.FormData&&window.FileList?!0:!1);l.add("esri-workers",window.Worker?!0:!1);l.add("esri-transforms",h||9<=q||3.5<=k||4<=d||3.1<=b||10.5<=e||3.2<=l("esri-iphone")||2.1<=l("esri-android"));l.add("esri-transitions",h||
10<=q||4<=k||4<=d||3.1<=b||10.5<=e||3.2<=l("esri-iphone")||2.1<=l("esri-android"));l.add("esri-transforms3d",h||10<=k||12<=d||4<=b||3.2<=l("esri-iphone")||3<=l("esri-android"));l.add("esri-url-encodes-apostrophe",function(){var a=window.document.createElement("a");a.href="?'";return-1<a.href.indexOf("?%27")});3>l("esri-android")&&(l.add("esri-transforms",!1,!1,!0),l.add("esri-transitions",!1,!1,!0),l.add("esri-transforms3d",!1,!1,!0));n._css=function(a){var c=l("esri-transforms3d");if(void 0!==a&&
null!==a)c=a;else if(c&&(d||b&&!l("esri-iphone")))c=!1;var s=c?"translate3d(":"translate(",t=c?d?",-1px)":",0px)":")",r=c?"scale3d(":"scale(",u=c?",1)":")",h=c?"rotate3d(0,0,1,":"rotate(",A=c?"matrix3d(":"matrix(",n=c?",0,0,":",",w=c?",0,0,0,0,1,0,":",",z=c?",0,1)":")";return{names:{transition:g&&"-webkit-transition"||k&&"MozTransition"||e&&"OTransition"||q&&"msTransition"||"transition",transform:g&&"-webkit-transform"||k&&"MozTransform"||e&&"OTransform"||q&&"msTransform"||"transform",transformName:g&&
"-webkit-transform"||k&&"-moz-transform"||e&&"-o-transform"||q&&"-ms-transform"||"transform",origin:g&&"-webkit-transform-origin"||k&&"MozTransformOrigin"||e&&"OTransformOrigin"||q&&"msTransformOrigin"||"transformOrigin",endEvent:g&&"webkitTransitionEnd"||k&&"transitionend"||e&&"oTransitionEnd"||q&&"MSTransitionEnd"||"transitionend"},translate:function(a,b){return s+a+"px,"+b+"px"+t},scale:function(a){return r+a+","+a+u},rotate:function(a){return h+a+"deg)"},matrix:function(a){return A+a.xx+","+a.xy+
n+a.yx+","+a.yy+w+a.dx.toFixed(10)+(k?"px,":",")+a.dy.toFixed(10)+(k?"px":"")+z}}};l("extend-esri")&&(n.isiPhone=l("esri-iphone"),n.isAndroid=l("esri-android"),n.isFennec=l("esri-fennec"),n.isBlackBerry=l("esri-blackberry"),n.isTouchEnabled=l("esri-touch"),n.isPointerEnabled=l("esri-pointer"),n._hasCors=l("esri-cors"),n._hasFileUpload=l("esri-file-upload"),n._hasTransforms=l("esri-transforms"),n._hasTransitions=l("esri-transitions"),n._has3DTransforms=l("esri-transforms3d"));return l})},"esri/lang":function(){define("dojo/_base/array dojo/_base/json dojo/_base/kernel dojo/_base/lang dojo/date dojo/has dojo/number dojo/date/locale ./kernel".split(" "),
function(l,n,k,q,h,g,e,d,b){function a(a,b,c){return[q.isString(a)?a.split(""):a,b||k.global,q.isString(c)?new Function("item","index","array",c):c]}function c(a){return void 0!==a&&null!==a}function f(a,b,f){var m=f.match(/([^\(]+)(\([^\)]+\))?/i),g=q.trim(m[1]);f=b[a];var m=n.fromJson((m[2]?q.trim(m[2]):"()").replace(/^\(/,"({").replace(/\)$/,"})")),t=m.utcOffset;if(-1===l.indexOf(s,g))g=q.getObject(g),q.isFunction(g)&&(f=g(f,a,b,m));else if("number"===typeof f||"string"===typeof f&&f&&!isNaN(Number(f)))switch(f=
Number(f),g){case "NumberFormat":return e.format(f,m);case "DateString":a=new Date(f);if(m.local||m.systemLocale)return m.systemLocale?a.toLocaleDateString()+(m.hideTime?"":" "+a.toLocaleTimeString()):a.toDateString()+(m.hideTime?"":" "+a.toTimeString());a=a.toUTCString();m.hideTime&&(a=a.replace(/\s+\d\d\:\d\d\:\d\d\s+(utc|gmt)/i,""));return a;case "DateFormat":return a=new Date(f),c(t)&&(a=h.add(a,"minute",a.getTimezoneOffset()-t)),d.format(a,m)}return c(f)?f:""}function m(a,b){var f;if(b)for(f in a)a.hasOwnProperty(f)&&
(void 0===a[f]||null===a[f]?delete a[f]:a[f]instanceof Object&&m(a[f],!0));else for(f in a)a.hasOwnProperty(f)&&void 0===a[f]&&delete a[f];return a}var s=["NumberFormat","DateString","DateFormat"],t={valueOf:function(a,b){for(var f in a)if(a[f]==b)return f;return null},substitute:function(a,b,m){var d,e,g;c(m)&&(q.isObject(m)?(d=m.first,e=m.dateFormat,g=m.numberFormat):d=m);if(!b||"${*}"===b){b=[];for(var s in a){m=a[s];if(e&&-1!==l.indexOf(e.properties||"",s))m=f(s,a,e.formatter||"DateString");else if(g&&
-1!==l.indexOf(g.properties||"",s))m=f(s,a,g.formatter||"NumberFormat");b.push(s+" \x3d "+(c(m)?m:"")+"\x3cbr/\x3e");if(d)break}return b.join("")}return q.replace(b,q.hitch({obj:a},function(a,b){var m=b.split(":");return 1<m.length?(b=m[0],m.shift(),f(b,this.obj,m.join(":"))):e&&-1!==l.indexOf(e.properties||"",b)?f(b,this.obj,e.formatter||"DateString"):g&&-1!==l.indexOf(g.properties||"",b)?f(b,this.obj,g.formatter||"NumberFormat"):c(this.obj[b])?this.obj[b]:""}),/\$\{([^\}]+)\}/g)},filter:function(b,
f,c){f=a(b,c,f);c={};var m;b=f[0];for(m in b)f[2].call(f[m],b[m],m,b)&&(c[m]=b[m]);return c},isDefined:c,fixJson:m};g("extend-esri")&&(q.mixin(b,t),b._isDefined=c,b._getParts=a,b._sanitize=m);return t})},"dojo/_base/json":function(){define(["./kernel","../json"],function(l,n){l.fromJson=function(k){return eval("("+k+")")};l._escapeString=n.stringify;l.toJsonIndentStr="\t";l.toJson=function(k,q){return n.stringify(k,function(h,g){if(g){var e=g.__json__||g.json;if("function"==typeof e)return e.call(g)}return g},
q&&l.toJsonIndentStr)};return l})},"dojo/json":function(){define(["./has"],function(l){return JSON})},"dojo/date":function(){define(["./has","./_base/lang"],function(l,n){var k={getDaysInMonth:function(l){var h=l.getMonth();return 1==h&&k.isLeapYear(l)?29:[31,28,31,30,31,30,31,31,30,31,30,31][h]},isLeapYear:function(k){k=k.getFullYear();return!(k%400)||!(k%4)&&!!(k%100)},getTimezoneName:function(k){var h=k.toString(),g="",e=h.indexOf("(");if(-1<e)g=h.substring(++e,h.indexOf(")"));else if(e=/([A-Z\/]+) \d{4}$/,
h=h.match(e))g=h[1];else if(h=k.toLocaleString(),e=/ ([A-Z\/]+)$/,h=h.match(e))g=h[1];return"AM"==g||"PM"==g?"":g},compare:function(k,h,g){k=new Date(+k);h=new Date(+(h||new Date));"date"==g?(k.setHours(0,0,0,0),h.setHours(0,0,0,0)):"time"==g&&(k.setFullYear(0,0,0),h.setFullYear(0,0,0));return k>h?1:k<h?-1:0},add:function(k,h,g){var e=new Date(+k),d=!1,b="Date";switch(h){case "day":break;case "weekday":var a;(h=g%5)?a=parseInt(g/5):(h=0<g?5:-5,a=0<g?(g-5)/5:(g+5)/5);var c=k.getDay(),f=0;6==c&&0<g?
f=1:0==c&&0>g&&(f=-1);c+=h;if(0==c||6==c)f=0<g?2:-2;g=7*a+h+f;break;case "year":b="FullYear";d=!0;break;case "week":g*=7;break;case "quarter":g*=3;case "month":d=!0;b="Month";break;default:b="UTC"+h.charAt(0).toUpperCase()+h.substring(1)+"s"}if(b)e["set"+b](e["get"+b]()+g);d&&e.getDate()<k.getDate()&&e.setDate(0);return e},difference:function(l,h,g){h=h||new Date;g=g||"day";var e=h.getFullYear()-l.getFullYear(),d=1;switch(g){case "quarter":l=l.getMonth();h=h.getMonth();l=Math.floor(l/3)+1;h=Math.floor(h/
3)+1;d=h+4*e-l;break;case "weekday":e=Math.round(k.difference(l,h,"day"));g=parseInt(k.difference(l,h,"week"));d=e%7;if(0==d)e=5*g;else{var b=0,a=l.getDay();h=h.getDay();g=parseInt(e/7);d=e%7;l=new Date(l);l.setDate(l.getDate()+7*g);l=l.getDay();if(0<e)switch(!0){case 6==a:b=-1;break;case 0==a:b=0;break;case 6==h:b=-1;break;case 0==h:b=-2;break;case 5<l+d:b=-2}else if(0>e)switch(!0){case 6==a:b=0;break;case 0==a:b=1;break;case 6==h:b=2;break;case 0==h:b=1;break;case 0>l+d:b=2}e=e+b-2*g}d=e;break;
case "year":d=e;break;case "month":d=h.getMonth()-l.getMonth()+12*e;break;case "week":d=parseInt(k.difference(l,h,"day")/7);break;case "day":d/=24;case "hour":d/=60;case "minute":d/=60;case "second":d/=1E3;case "millisecond":d*=h.getTime()-l.getTime()}return Math.round(d)}};n.mixin(n.getObject("dojo.date",!0),k);return k})},"dojo/number":function(){define(["./_base/lang","./i18n","./i18n!./cldr/nls/number","./string","./regexp"],function(l,n,k,q,h){var g={};l.setObject("dojo.number",g);g.format=function(d,
b){b=l.mixin({},b||{});var a=n.normalizeLocale(b.locale),a=n.getLocalization("dojo.cldr","number",a);b.customs=a;a=b.pattern||a[(b.type||"decimal")+"Format"];return isNaN(d)||Infinity==Math.abs(d)?null:g._applyPattern(d,a,b)};g._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;g._applyPattern=function(d,b,a){a=a||{};var c=a.customs.group,f=a.customs.decimal;b=b.split(";");var m=b[0];b=b[0>d?1:0]||"-"+m;if(-1!=b.indexOf("%"))d*=100;else if(-1!=b.indexOf("\u2030"))d*=1E3;else if(-1!=b.indexOf("\u00a4"))c=a.customs.currencyGroup||
c,f=a.customs.currencyDecimal||f,b=b.replace(/\u00a4{1,3}/,function(b){return a[["symbol","currency","displayName"][b.length-1]]||a.currency||""});else if(-1!=b.indexOf("E"))throw Error("exponential notation not supported");var e=g._numberPatternRE,m=m.match(e);if(!m)throw Error("unable to find a number expression in pattern: "+b);!1===a.fractional&&(a.places=0);return b.replace(e,g._formatAbsolute(d,m[0],{decimal:f,group:c,places:a.places,round:a.round}))};g.round=function(d,b,a){a=10/(a||10);return(a*
+d).toFixed(b)/a};if(0==(0.9).toFixed()){var e=g.round;g.round=function(d,b,a){var c=Math.pow(10,-b||0),f=Math.abs(d);if(!d||f>=c)c=0;else if(f/=c,0.5>f||0.95<=f)c=0;return e(d,b,a)+(0<d?c:-c)}}g._formatAbsolute=function(d,b,a){a=a||{};!0===a.places&&(a.places=0);Infinity===a.places&&(a.places=6);b=b.split(".");var c="string"==typeof a.places&&a.places.indexOf(","),f=a.places;c?f=a.places.substring(c+1):0<=f||(f=(b[1]||[]).length);0>a.round||(d=g.round(d,f,a.round));d=String(Math.abs(d)).split(".");
var m=d[1]||"";b[1]||a.places?(c&&(a.places=a.places.substring(0,c)),c=void 0!==a.places?a.places:b[1]&&b[1].lastIndexOf("0")+1,c>m.length&&(d[1]=q.pad(m,c,"0",!0)),f<m.length&&(d[1]=m.substr(0,f))):d[1]&&d.pop();f=b[0].replace(",","");c=f.indexOf("0");-1!=c&&(c=f.length-c,c>d[0].length&&(d[0]=q.pad(d[0],c)),-1==f.indexOf("#")&&(d[0]=d[0].substr(d[0].length-c)));var f=b[0].lastIndexOf(","),e,t;-1!=f&&(e=b[0].length-f-1,b=b[0].substr(0,f),f=b.lastIndexOf(","),-1!=f&&(t=b.length-f-1));b=[];for(f=d[0];f;)c=
f.length-e,b.push(0<c?f.substr(c):f),f=0<c?f.slice(0,c):"",t&&(e=t,delete t);d[0]=b.reverse().join(a.group||",");return d.join(a.decimal||".")};g.regexp=function(d){return g._parseInfo(d).regexp};g._parseInfo=function(d){d=d||{};var b=n.normalizeLocale(d.locale),b=n.getLocalization("dojo.cldr","number",b),a=d.pattern||b[(d.type||"decimal")+"Format"],c=b.group,f=b.decimal,m=1;if(-1!=a.indexOf("%"))m/=100;else if(-1!=a.indexOf("\u2030"))m/=1E3;else{var e=-1!=a.indexOf("\u00a4");e&&(c=b.currencyGroup||
c,f=b.currencyDecimal||f)}b=a.split(";");1==b.length&&b.push("-"+b[0]);b=h.buildGroupRE(b,function(a){a="(?:"+h.escapeString(a,".")+")";return a.replace(g._numberPatternRE,function(a){var b={signed:!1,separator:d.strict?c:[c,""],fractional:d.fractional,decimal:f,exponent:!1};a=a.split(".");var e=d.places;1==a.length&&1!=m&&(a[1]="###");1==a.length||0===e?b.fractional=!1:(void 0===e&&(e=d.pattern?a[1].lastIndexOf("0")+1:Infinity),e&&void 0==d.fractional&&(b.fractional=!0),!d.places&&e<a[1].length&&
(e+=","+a[1].length),b.places=e);a=a[0].split(",");1<a.length&&(b.groupSize=a.pop().length,1<a.length&&(b.groupSize2=a.pop().length));return"("+g._realNumberRegexp(b)+")"})},!0);e&&(b=b.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(a,b,f,c){a=h.escapeString(d[["symbol","currency","displayName"][f.length-1]]||d.currency||"");b=b?"[\\s\\xa0]":"";c=c?"[\\s\\xa0]":"";return!d.strict?(b&&(b+="*"),c&&(c+="*"),"(?:"+b+a+c+")?"):b+a+c}));return{regexp:b.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:c,
decimal:f,factor:m}};g.parse=function(d,b){var a=g._parseInfo(b),c=RegExp("^"+a.regexp+"$").exec(d);if(!c)return NaN;var f=c[1];if(!c[1]){if(!c[2])return NaN;f=c[2];a.factor*=-1}f=f.replace(RegExp("["+a.group+"\\s\\xa0]","g"),"").replace(a.decimal,".");return f*a.factor};g._realNumberRegexp=function(d){d=d||{};"places"in d||(d.places=Infinity);"string"!=typeof d.decimal&&(d.decimal=".");if(!("fractional"in d)||/^0/.test(d.places))d.fractional=[!0,!1];"exponent"in d||(d.exponent=[!0,!1]);"eSigned"in
d||(d.eSigned=[!0,!1]);var b=g._integerRegexp(d),a=h.buildGroupRE(d.fractional,function(a){var b="";a&&0!==d.places&&(b="\\"+d.decimal,b=Infinity==d.places?"(?:"+b+"\\d+)?":b+("\\d{"+d.places+"}"));return b},!0),c=h.buildGroupRE(d.exponent,function(a){return a?"([eE]"+g._integerRegexp({signed:d.eSigned})+")":""}),b=b+a;a&&(b="(?:(?:"+b+")|(?:"+a+"))");return b+c};g._integerRegexp=function(d){d=d||{};"signed"in d||(d.signed=[!0,!1]);"separator"in d?"groupSize"in d||(d.groupSize=3):d.separator="";var b=
h.buildGroupRE(d.signed,function(a){return a?"[-+]":""},!0),a=h.buildGroupRE(d.separator,function(a){if(!a)return"(?:\\d+)";a=h.escapeString(a);" "==a?a="\\s":"\u00a0"==a&&(a="\\s\\xa0");var b=d.groupSize,m=d.groupSize2;return m?(a="(?:0|[1-9]\\d{0,"+(m-1)+"}(?:["+a+"]\\d{"+m+"})*["+a+"]\\d{"+b+"})",0<b-m?"(?:"+a+"|(?:0|[1-9]\\d{0,"+(b-1)+"}))":a):"(?:0|[1-9]\\d{0,"+(b-1)+"}(?:["+a+"]\\d{"+b+"})*)"},!0);return b+a};return g})},"dojo/i18n":function(){define("./_base/kernel require ./has ./_base/array ./_base/config ./_base/lang ./_base/xhr ./json module".split(" "),
function(l,n,k,q,h,g,e,d,b){k.add("dojo-preload-i18n-Api",1);e=l.i18n={};var a=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,c=function(a,b,f,c){var m=[f+c];b=b.split("-");for(var d="",e=0;e<b.length;e++)if(d+=(d?"-":"")+b[e],!a||a[d])m.push(f+d+"/"+c),m.specificity=d;return m},f={},m=function(a,b,f){f=f?f.toLowerCase():l.locale;a=a.replace(/\./g,"/");b=b.replace(/\./g,"/");return/root/i.test(f)?a+"/nls/"+b:a+"/nls/"+f+"/"+b},s=l.getL10nName=function(a,f,c){return b.id+"!"+m(a,f,c)},t=function(a,b,m,
d,e,r){a([b],function(s){var t=g.clone(s.root||s.ROOT),u=c(!s._v1x&&s,e,m,d);a(u,function(){for(var a=1;a<u.length;a++)t=g.mixin(g.clone(t),arguments[a]);f[b+"/"+e]=t;t.$locale=u.specificity;r()})})},r=function(a){var b=h.extraLocale||[],b=g.isArray(b)?b:[b];b.push(a);return b},u=function(b,c,m){if(k("dojo-preload-i18n-Api")){var e=b.split("*"),s="preload"==e[1];s&&(f[b]||(f[b]=1,z(e[2],d.parse(e[3]),1,c)),m(1));if(!(e=s))y&&w.push([b,c,m]),e=y;if(e)return}b=a.exec(b);var u=b[1]+"/",h=b[5]||b[4],
v=u+h,e=(b=b[5]&&b[4])||l.locale||"",A=v+"/"+e;b=b?[e]:r(e);var n=b.length,B=function(){--n||m(g.delegate(f[A]))};q.forEach(b,function(a){var b=v+"/"+a;k("dojo-preload-i18n-Api")&&x(b);f[b]?B():t(c,v,u,h,a,B)})};if(k("dojo-unit-tests"))var v=e.unitTests=[];k("dojo-preload-i18n-Api");var A=e.normalizeLocale=function(a){a=a?a.toLowerCase():l.locale;return"root"==a?"ROOT":a},y=0,w=[],z=e._preloadLocalizations=function(a,b,c,m){function d(a,b){m([a],b)}function e(a,b){for(var f=a.split("-");f.length;){if(b(f.join("-")))return;
f.pop()}b("ROOT")}function r(){for(--y;!y&&w.length;)u.apply(null,w.shift())}function s(c){c=A(c);e(c,function(s){if(0<=q.indexOf(b,s)){var t=a.replace(/\./g,"/")+"_"+s;y++;d(t,function(a){for(var b in a){var d=a[b],t=b.match(/(.+)\/([^\/]+)$/),u;if(t){u=t[2];t=t[1]+"/";d._localized=d._localized||{};var h;if("ROOT"===s){var k=h=d._localized;delete d._localized;k.root=d;f[n.toAbsMid(b)]=k}else h=d._localized,f[n.toAbsMid(t+u+"/"+s)]=d;s!==c&&function(a,b,d,s){var t=[],u=[];e(c,function(f){s[f]&&(t.push(n.toAbsMid(a+
f+"/"+b)),u.push(n.toAbsMid(a+b+"/"+f)))});t.length?(y++,m(t,function(){for(var m=0;m<t.length;m++)d=g.mixin(g.clone(d),arguments[m]),f[u[m]]=d;f[n.toAbsMid(a+b+"/"+c)]=g.clone(d);r()})):f[n.toAbsMid(a+b+"/"+c)]=d}(t,u,d,h)}}r()});return!0}return!1})}m=m||n;s();q.forEach(l.config.extraLocale,s)},x=function(){},B={},D=new Function("__bundle","__checkForLegacyModules","__mid","__amdValue","var define \x3d function(mid, factory){define.called \x3d 1; __amdValue.result \x3d factory || mid;},\t require \x3d function(){define.called \x3d 1;};try{define.called \x3d 0;eval(__bundle);if(define.called\x3d\x3d1)return __amdValue;if((__checkForLegacyModules \x3d __checkForLegacyModules(__mid)))return __checkForLegacyModules;}catch(e){}try{return eval('('+__bundle+')');}catch(e){return e;}"),
x=function(a){for(var b,c=a.split("/"),m=l.global[c[0]],d=1;m&&d<c.length-1;m=m[c[d++]]);m&&((b=m[c[d]])||(b=m[c[d].replace(/-/g,"_")]),b&&(f[a]=b));return b};e.getLocalization=function(a,b,f){var c;a=m(a,b,f);u(a,n,function(a){c=a});return c};k("dojo-unit-tests")&&v.push(function(a){a.register("tests.i18n.unit",function(a){var b;b=D("{prop:1}",x,"nonsense",B);a.is({prop:1},b);a.is(void 0,b[1]);b=D("({prop:1})",x,"nonsense",B);a.is({prop:1},b);a.is(void 0,b[1]);b=D("{'prop-x':1}",x,"nonsense",B);
a.is({"prop-x":1},b);a.is(void 0,b[1]);b=D("({'prop-x':1})",x,"nonsense",B);a.is({"prop-x":1},b);a.is(void 0,b[1]);b=D("define({'prop-x':1})",x,"nonsense",B);a.is(B,b);a.is({"prop-x":1},B.result);b=D("define('some/module', {'prop-x':1})",x,"nonsense",B);a.is(B,b);a.is({"prop-x":1},B.result);b=D("this is total nonsense and should throw an error",x,"nonsense",B);a.is(b instanceof Error,!0)})});return g.mixin(e,{dynamic:!0,normalize:function(a,b){return/^\./.test(a)?b(a):a},load:u,cache:f,getL10nName:s})})},
"dojo/_base/xhr":function(){define("./kernel ./sniff require ../io-query ../dom ../dom-form ./Deferred ./config ./json ./lang ./array ../on ../aspect ../request/watch ../request/xhr ../request/util".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r){l._xhrObj=t._create;var u=l.config;l.objectToQuery=q.objectToQuery;l.queryToObject=q.queryToObject;l.fieldToObject=g.fieldToObject;l.formToObject=g.toObject;l.formToQuery=g.toQuery;l.formToJson=g.toJson;l._blockAsync=!1;n.add("native-xhr2-blob",function(){if(n("native-xhr2")){var a=
new XMLHttpRequest;a.open("GET","/",!0);a.responseType="blob";var b=a.responseType;a.abort();return"blob"===b}});var v=l._contentHandlers=l.contentHandlers={text:function(a){return a.responseText},json:function(a){return b.fromJson(a.responseText||null)},"json-comment-filtered":function(a){d.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}\x26\x26\nUse djConfig.useCommentedJson\x3dtrue to turn off this message.");
a=a.responseText;var f=a.indexOf("/*"),c=a.lastIndexOf("*/");if(-1==f||-1==c)throw Error("JSON was not comment filtered");return b.fromJson(a.substring(f+2,c))},javascript:function(a){return l.eval(a.responseText)},xml:function(a){var b=a.responseXML;b&&(n("dom-qsa2.1")&&!b.querySelectorAll&&n("dom-parser"))&&(b=(new DOMParser).parseFromString(a.responseText,"application/xml"));if(n("ie")&&(!b||!b.documentElement)){var f=function(a){return"MSXML"+a+".DOMDocument"},f=["Microsoft.XMLDOM",f(6),f(4),
f(3),f(2)];c.some(f,function(f){try{var c=new ActiveXObject(f);c.async=!1;c.loadXML(a.responseText);b=c}catch(m){return!1}return!0})}return b},"json-comment-optional":function(a){return a.responseText&&/^[^{\[]*\/\*/.test(a.responseText)?v["json-comment-filtered"](a):v.json(a)}};n("native-xhr2")&&(v.arraybuffer=v.blob=v.document=function(a,b){return"blob"===b.args.handleAs&&!n("native-xhr2-blob")?new Blob([a.response],{type:a.getResponseHeader("Content-Type")}):a.response});l._ioSetArgs=function(b,
f,c,m){var d={args:b,url:b.url},r=null;if(b.form){var r=h.byId(b.form),s=r.getAttributeNode("action");d.url=d.url||(s?s.value:null);r=g.toObject(r)}s=[{}];r&&s.push(r);b.content&&s.push(b.content);b.preventCache&&s.push({"dojo.preventCache":(new Date).valueOf()});d.query=q.objectToQuery(a.mixin.apply(null,s));d.handleAs=b.handleAs||"text";var t=new e(function(a){a.canceled=!0;f&&f(a);var b=a.ioArgs.error;b||(b=Error("request cancelled"),b.dojoType="cancel",a.ioArgs.error=b);return b});t.addCallback(c);
var k=b.load;k&&a.isFunction(k)&&t.addCallback(function(a){return k.call(b,a,d)});var v=b.error;v&&a.isFunction(v)&&t.addErrback(function(a){return v.call(b,a,d)});var w=b.handle;w&&a.isFunction(w)&&t.addBoth(function(a){return w.call(b,a,d)});t.addErrback(function(a){return m(a,t)});u.ioPublish&&(l.publish&&!1!==d.args.ioPublish)&&(t.addCallbacks(function(a){l.publish("/dojo/io/load",[t,a]);return a},function(a){l.publish("/dojo/io/error",[t,a]);return a}),t.addBoth(function(a){l.publish("/dojo/io/done",
[t,a]);return a}));t.ioArgs=d;return t};var A=function(a){a=v[a.ioArgs.handleAs](a.ioArgs.xhr,a.ioArgs);return void 0===a?null:a},y=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},w=function(a){0>=z&&(z=0,u.ioPublish&&(l.publish&&(!a||a&&!1!==a.ioArgs.args.ioPublish))&&l.publish("/dojo/io/stop"))},z=0;m.after(s,"_onAction",function(){z-=1});m.after(s,"_onInFlight",w);l._ioCancelAll=s.cancelAll;l._ioNotifyStart=function(a){u.ioPublish&&(l.publish&&!1!==a.ioArgs.args.ioPublish)&&(z||
l.publish("/dojo/io/start"),z+=1,l.publish("/dojo/io/send",[a]))};l._ioWatch=function(b,f,c,m){b.ioArgs.options=b.ioArgs.args;a.mixin(b,{response:b.ioArgs,isValid:function(a){return f(b)},isReady:function(a){return c(b)},handleResponse:function(a){return m(b)}});s(b);w(b)};l._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(-1==a.url.indexOf("?")?"?":"\x26")+a.query,a.query=null)};l.xhr=function(a,b,f){var c,m=l._ioSetArgs(b,function(a){c&&c.cancel()},A,y),d=m.ioArgs;"postData"in b?d.query=b.postData:
"putData"in b?d.query=b.putData:"rawBody"in b?d.query=b.rawBody:(2<arguments.length&&!f||-1==="POST|PUT".indexOf(a.toUpperCase()))&&l._ioAddQueryToUrl(d);var e;n("native-xhr2")&&(e={arraybuffer:1,blob:1,document:1});e=n("native-xhr2")&&e[b.handleAs]?b.handleAs:"text";"blob"===e&&!n("native-xhr2-blob")&&(e="arraybuffer");e={method:a,handleAs:e,responseType:b.responseType,timeout:b.timeout,withCredentials:b.withCredentials,ioArgs:d};"undefined"!==typeof b.headers&&(e.headers=b.headers);"undefined"!==
typeof b.contentType&&(e.headers||(e.headers={}),e.headers["Content-Type"]=b.contentType);"undefined"!==typeof d.query&&(e.data=d.query);"undefined"!==typeof b.sync&&(e.sync=b.sync);l._ioNotifyStart(m);try{c=t(d.url,e,!0)}catch(r){return m.cancel(),m}m.ioArgs.xhr=c.response.xhr;c.then(function(){m.resolve(m)}).otherwise(function(a){d.error=a;a.response&&(a.status=a.response.status,a.responseText=a.response.text,a.xhr=a.response.xhr);m.reject(a)});return m};l.xhrGet=function(a){return l.xhr("GET",
a)};l.rawXhrPost=l.xhrPost=function(a){return l.xhr("POST",a,!0)};l.rawXhrPut=l.xhrPut=function(a){return l.xhr("PUT",a,!0)};l.xhrDelete=function(a){return l.xhr("DELETE",a)};l._isDocumentOk=function(a){return r.checkStatus(a.status)};l._getText=function(a){var b;l.xhrGet({url:a,sync:!0,load:function(a){b=a}});return b};a.mixin(l.xhr,{_xhrObj:l._xhrObj,fieldToObject:g.fieldToObject,formToObject:g.toObject,objectToQuery:q.objectToQuery,formToQuery:g.toQuery,formToJson:g.toJson,queryToObject:q.queryToObject,
contentHandlers:v,_ioSetArgs:l._ioSetArgs,_ioCancelAll:l._ioCancelAll,_ioNotifyStart:l._ioNotifyStart,_ioWatch:l._ioWatch,_ioAddQueryToUrl:l._ioAddQueryToUrl,_isDocumentOk:l._isDocumentOk,_getText:l._getText,get:l.xhrGet,post:l.xhrPost,put:l.xhrPut,del:l.xhrDelete});return l.xhr})},"dojo/io-query":function(){define(["./_base/lang"],function(l){var n={};return{objectToQuery:function(k){var q=encodeURIComponent,h=[],g;for(g in k){var e=k[g];if(e!=n[g]){var d=q(g)+"\x3d";if(l.isArray(e))for(var b=0,
a=e.length;b<a;++b)h.push(d+q(e[b]));else h.push(d+q(e))}}return h.join("\x26")},queryToObject:function(k){var n=decodeURIComponent;k=k.split("\x26");for(var h={},g,e,d=0,b=k.length;d<b;++d)if(e=k[d],e.length){var a=e.indexOf("\x3d");0>a?(g=n(e),e=""):(g=n(e.slice(0,a)),e=n(e.slice(a+1)));"string"==typeof h[g]&&(h[g]=[h[g]]);l.isArray(h[g])?h[g].push(e):h[g]=e}return h}}})},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query","./json"],function(l,n,k,q){var h={fieldToObject:function(g){var e=
null;if(g=n.byId(g)){var d=g.name,b=(g.type||"").toLowerCase();if(d&&b&&!g.disabled)if("radio"==b||"checkbox"==b)g.checked&&(e=g.value);else if(g.multiple){e=[];for(g=[g.firstChild];g.length;)for(d=g.pop();d;d=d.nextSibling)if(1==d.nodeType&&"option"==d.tagName.toLowerCase())d.selected&&e.push(d.value);else{d.nextSibling&&g.push(d.nextSibling);d.firstChild&&g.push(d.firstChild);break}}else e=g.value}return e},toObject:function(g){var e={};g=n.byId(g).elements;for(var d=0,b=g.length;d<b;++d){var a=
g[d],c=a.name,f=(a.type||"").toLowerCase();if(c&&f&&0>"file|submit|image|reset|button".indexOf(f)&&!a.disabled){var m=e,s=c,a=h.fieldToObject(a);if(null!==a){var t=m[s];"string"==typeof t?m[s]=[t,a]:l.isArray(t)?t.push(a):m[s]=a}"image"==f&&(e[c+".x"]=e[c+".y"]=e[c].x=e[c].y=0)}}return e},toQuery:function(g){return k.objectToQuery(h.toObject(g))},toJson:function(g,e){return q.stringify(h.toObject(g),null,e?4:0)}};return h})},"dojo/_base/Deferred":function(){define("./kernel ../Deferred ../promise/Promise ../errors/CancelError ../has ./lang ../when".split(" "),
function(l,n,k,q,h,g,e){var d=function(){},b=Object.freeze||function(){},a=l.Deferred=function(c){function f(a){if(t)throw Error("This deferred has already been resolved");e=a;t=!0;m()}function m(){for(var a;!a&&y;){var b=y;y=y.next;if(a=b.progress==d)t=!1;var f=v?b.error:b.resolved;h("config-useDeferredInstrumentation")&&v&&n.instrumentRejected&&n.instrumentRejected(e,!!f);if(f)try{var c=f(e);c&&"function"===typeof c.then?c.then(g.hitch(b.deferred,"resolve"),g.hitch(b.deferred,"reject"),g.hitch(b.deferred,
"progress")):(f=a&&void 0===c,a&&!f&&(v=c instanceof Error),b.deferred[f&&v?"reject":"resolve"](f?e:c))}catch(m){b.deferred.reject(m)}else v?b.deferred.reject(e):b.deferred.resolve(e)}}var e,t,r,u,v,l,y,w=this.promise=new k;this.isResolved=w.isResolved=function(){return 0==u};this.isRejected=w.isRejected=function(){return 1==u};this.isFulfilled=w.isFulfilled=function(){return 0<=u};this.isCanceled=w.isCanceled=function(){return r};this.resolve=this.callback=function(a){this.fired=u=0;this.results=
[a,null];f(a)};this.reject=this.errback=function(a){v=!0;this.fired=u=1;h("config-useDeferredInstrumentation")&&n.instrumentRejected&&n.instrumentRejected(a,!!y);f(a);this.results=[null,a]};this.progress=function(a){for(var b=y;b;){var f=b.progress;f&&f(a);b=b.next}};this.addCallbacks=function(a,b){this.then(a,b,d);return this};w.then=this.then=function(b,f,c){var e=c==d?this:new a(w.cancel);b={resolved:b,error:f,progress:c,deferred:e};y?l=l.next=b:y=l=b;t&&m();return e.promise};var z=this;w.cancel=
this.cancel=function(){if(!t){var a=c&&c(z);t||(a instanceof Error||(a=new q(a)),a.log=!1,z.reject(a))}r=!0};b(w)};g.extend(a,{addCallback:function(a){return this.addCallbacks(g.hitch.apply(l,arguments))},addErrback:function(a){return this.addCallbacks(null,g.hitch.apply(l,arguments))},addBoth:function(a){var b=g.hitch.apply(l,arguments);return this.addCallbacks(b,b)},fired:-1});a.when=l.when=e;return a})},"dojo/Deferred":function(){define(["./has","./_base/lang","./errors/CancelError","./promise/Promise",
"./promise/instrumentation"],function(l,n,k,q,h){var g=Object.freeze||function(){},e=function(a,b,e,g,r){2===b&&(c.instrumentRejected&&0===a.length)&&c.instrumentRejected(e,!1,g,r);for(r=0;r<a.length;r++)d(a[r],b,e,g)},d=function(f,m,d,e){var r=f[m],g=f.deferred;if(r)try{var h=r(d);if(0===m)"undefined"!==typeof h&&a(g,m,h);else{if(h&&"function"===typeof h.then){f.cancel=h.cancel;h.then(b(g,1),b(g,2),b(g,0));return}a(g,1,h)}}catch(k){a(g,2,k)}else a(g,m,d);2===m&&c.instrumentRejected&&c.instrumentRejected(d,
!!r,e,g.promise)},b=function(b,c){return function(d){a(b,c,d)}},a=function(a,b,c){if(!a.isCanceled())switch(b){case 0:a.progress(c);break;case 1:a.resolve(c);break;case 2:a.reject(c)}},c=function(a){var b=this.promise=new q,s=this,t,r,u,h=!1,l=[];Error.captureStackTrace&&(Error.captureStackTrace(s,c),Error.captureStackTrace(b,c));this.isResolved=b.isResolved=function(){return 1===t};this.isRejected=b.isRejected=function(){return 2===t};this.isFulfilled=b.isFulfilled=function(){return!!t};this.isCanceled=
b.isCanceled=function(){return h};this.progress=function(a,f){if(t){if(!0===f)throw Error("This deferred has already been fulfilled.");return b}e(l,0,a,null,s);return b};this.resolve=function(a,f){if(t){if(!0===f)throw Error("This deferred has already been fulfilled.");return b}e(l,t=1,r=a,null,s);l=null;return b};var n=this.reject=function(a,f){if(t){if(!0===f)throw Error("This deferred has already been fulfilled.");return b}Error.captureStackTrace&&Error.captureStackTrace(u={},n);e(l,t=2,r=a,u,
s);l=null;return b};this.then=b.then=function(a,f,e){var g=[e,a,f];g.cancel=b.cancel;g.deferred=new c(function(a){return g.cancel&&g.cancel(a)});t&&!l?d(g,t,r,u):l.push(g);return g.deferred.promise};this.cancel=b.cancel=function(b,c){if(t){if(!0===c)throw Error("This deferred has already been fulfilled.");}else{if(a){var m=a(b);b="undefined"===typeof m?b:m}h=!0;if(t){if(2===t&&r===b)return b}else return"undefined"===typeof b&&(b=new k),n(b),b}};g(b)};c.prototype.toString=function(){return"[object Deferred]"};
h&&h(c);return c})},"dojo/errors/CancelError":function(){define(["./create"],function(l){return l("CancelError",null,null,{dojoType:"cancel"})})},"dojo/errors/create":function(){define(["../_base/lang"],function(l){return function(n,k,q,h){q=q||Error;var g=function(e){if(q===Error){Error.captureStackTrace&&Error.captureStackTrace(this,g);var d=Error.call(this,e),b;for(b in d)d.hasOwnProperty(b)&&(this[b]=d[b]);this.message=e;this.stack=d.stack}else q.apply(this,arguments);k&&k.apply(this,arguments)};
g.prototype=l.delegate(q.prototype,h);g.prototype.name=n;return g.prototype.constructor=g}})},"dojo/promise/Promise":function(){define(["../_base/lang"],function(l){function n(){throw new TypeError("abstract");}return l.extend(function(){},{then:function(k,l,h){n()},cancel:function(k,l){n()},isResolved:function(){n()},isRejected:function(){n()},isFulfilled:function(){n()},isCanceled:function(){n()},always:function(k){return this.then(k,k)},otherwise:function(k){return this.then(null,k)},trace:function(){return this},
traceRejected:function(){return this},toString:function(){return"[object Promise]"}})})},"dojo/promise/instrumentation":function(){define(["./tracer","../has","../_base/lang","../_base/array"],function(l,n,k,q){function h(a,b,c){var d="";a&&a.stack&&(d+=a.stack);b&&b.stack&&(d+="\n ----------------------------------------\n rejected"+b.stack.split("\n").slice(1).join("\n").replace(/^\s+/," "));c&&c.stack&&(d+="\n ----------------------------------------\n"+c.stack);console.error(a,d)}function g(a,
b,c,d){b||h(a,c,d)}function e(f,m,e,g){m?q.some(b,function(a,c){if(a.error===f)return b.splice(c,1),!0}):q.some(b,function(a){return a.error===f})||b.push({error:f,rejection:e,deferred:g,timestamp:(new Date).getTime()});a||(a=setTimeout(d,c))}function d(){var f=(new Date).getTime(),m=f-c;b=q.filter(b,function(a){return a.timestamp<m?(h(a.error,a.rejection,a.deferred),!1):!0});a=b.length?setTimeout(d,b[0].timestamp+c-f):!1}n.add("config-useDeferredInstrumentation","report-unhandled-rejections");var b=
[],a=!1,c=1E3;return function(a){var b=n("config-useDeferredInstrumentation");if(b){l.on("resolved",k.hitch(console,"log","resolved"));l.on("rejected",k.hitch(console,"log","rejected"));l.on("progress",k.hitch(console,"log","progress"));var d=[];"string"===typeof b&&(d=b.split(","),b=d.shift());if("report-rejections"===b)a.instrumentRejected=g;else if("report-unhandled-rejections"===b||!0===b||1===b)a.instrumentRejected=e,c=parseInt(d[0],10)||c;else throw Error("Unsupported instrumentation usage \x3c"+
b+"\x3e");}}})},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(l,n,k){function q(e){setTimeout(function(){g.apply(h,e)},0)}var h=new k,g=h.emit;h.emit=null;n.prototype.trace=function(){var e=l._toArray(arguments);this.then(function(d){q(["resolved",d].concat(e))},function(d){q(["rejected",d].concat(e))},function(d){q(["progress",d].concat(e))});return this};n.prototype.traceRejected=function(){var e=l._toArray(arguments);this.otherwise(function(d){q(["rejected",
d].concat(e))});return this};return h})},"dojo/when":function(){define(["./Deferred","./promise/Promise"],function(l,n){return function(k,q,h,g){var e=k&&"function"===typeof k.then,d=e&&k instanceof n;if(e)d||(e=new l(k.cancel),k.then(e.resolve,e.reject,e.progress),k=e.promise);else return 1<arguments.length?q?q(k):k:(new l).resolve(k);return q||h||g?k.then(q,h,g):k}})},"dojo/request/watch":function(){define("./util ../errors/RequestTimeoutError ../errors/CancelError ../_base/array ../_base/window require".split(" "),
function(l,n,k,q,h,g){function e(){for(var c=+new Date,f=0,m;f<a.length&&(m=a[f]);f++){var e=m.response,g=e.options;if(m.isCanceled&&m.isCanceled()||m.isValid&&!m.isValid(e))a.splice(f--,1),d._onAction&&d._onAction();else if(m.isReady&&m.isReady(e))a.splice(f--,1),m.handleResponse(e),d._onAction&&d._onAction();else if(m.startTime&&m.startTime+(g.timeout||0)<c)a.splice(f--,1),m.cancel(new n("Timeout exceeded",e)),d._onAction&&d._onAction()}d._onInFlight&&d._onInFlight(m);a.length||(clearInterval(b),
b=null)}function d(c){c.response.options.timeout&&(c.startTime=+new Date);c.isFulfilled()||(a.push(c),b||(b=setInterval(e,50)),c.response.options.sync&&e())}var b=null,a=[];d.cancelAll=function(){try{q.forEach(a,function(a){try{a.cancel(new k("All requests canceled."))}catch(b){}})}catch(b){}};h&&(g&&h.doc.attachEvent)&&g(h.global,"unload",function(){d.cancelAll()});return d})},"dojo/request/util":function(){define("exports ../errors/RequestError ../errors/CancelError ../Deferred ../io-query ../_base/array ../_base/lang ../promise/Promise".split(" "),
function(l,n,k,q,h,g,e,d){function b(a){return c(a)}function a(a){return a.data||a.text}l.deepCopy=function(a,b){for(var c in b){var d=a[c],e=b[c];d!==e&&(d&&"object"===typeof d&&e&&"object"===typeof e?l.deepCopy(d,e):a[c]=e)}return a};l.deepCreate=function(a,b){b=b||{};var c=e.delegate(a),d,r;for(d in a)(r=a[d])&&"object"===typeof r&&(c[d]=l.deepCreate(r,b[d]));return l.deepCopy(c,b)};var c=Object.freeze||function(a){return a};l.deferred=function(f,m,g,t,r,u){var h=new q(function(a){m&&m(h,f);return!a||
!(a instanceof n)&&!(a instanceof k)?new k("Request canceled",f):a});h.response=f;h.isValid=g;h.isReady=t;h.handleResponse=r;g=h.then(b).otherwise(function(a){a.response=f;throw a;});l.notify&&g.then(e.hitch(l.notify,"emit","load"),e.hitch(l.notify,"emit","error"));t=g.then(a);r=new d;for(var A in t)t.hasOwnProperty(A)&&(r[A]=t[A]);r.response=g;c(r);u&&h.then(function(a){u.call(h,a)},function(a){u.call(h,f,a)});h.promise=r;h.then=r.then;return h};l.addCommonMethods=function(a,b){g.forEach(b||["GET",
"POST","PUT","DELETE"],function(b){a[("DELETE"===b?"DEL":b).toLowerCase()]=function(c,m){m=e.delegate(m||{});m.method=b;return a(c,m)}})};l.parseArgs=function(a,b,c){var d=b.data,e=b.query;d&&!c&&"object"===typeof d&&(b.data=h.objectToQuery(d));e?("object"===typeof e&&(e=h.objectToQuery(e)),b.preventCache&&(e+=(e?"\x26":"")+"request.preventCache\x3d"+ +new Date)):b.preventCache&&(e="request.preventCache\x3d"+ +new Date);a&&e&&(a+=(~a.indexOf("?")?"\x26":"?")+e);return{url:a,options:b,getHeader:function(a){return null}}};
l.checkStatus=function(a){a=a||0;return 200<=a&&300>a||304===a||1223===a||!a}})},"dojo/errors/RequestError":function(){define(["./create"],function(l){return l("RequestError",function(l,k){this.response=k})})},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(l,n){return l("RequestTimeoutError",null,n,{dojoType:"timeout"})})},"dojo/request/xhr":function(){define(["../errors/RequestError","./watch","./handlers","./util","../has"],function(l,n,k,q,h){function g(a,
b){var c=a.xhr;a.status=a.xhr.status;try{a.text=c.responseText}catch(f){}"xml"===a.options.handleAs&&(a.data=c.responseXML);if(!b)try{k(a)}catch(m){b=m}b?this.reject(b):q.checkStatus(c.status)?this.resolve(a):(b=new l("Unable to load "+a.url+" status: "+c.status,a),this.reject(b))}function e(a){return this.xhr.getResponseHeader(a)}function d(r,u,k){var A=h("native-formdata")&&u&&u.data&&u.data instanceof FormData,y=q.parseArgs(r,q.deepCreate(t,u),A);r=y.url;u=y.options;var w,z=q.deferred(y,m,a,c,
g,function(){w&&w()}),x=y.xhr=d._create();if(!x)return z.cancel(new l("XHR was not created")),k?z:z.promise;y.getHeader=e;f&&(w=f(x,z,y));var B=u.data,D=!u.sync,C=u.method;try{x.open(C,r,D,u.user||s,u.password||s);u.withCredentials&&(x.withCredentials=u.withCredentials);h("native-response-type")&&u.handleAs in b&&(x.responseType=b[u.handleAs]);var F=u.headers;r=A?!1:"application/x-www-form-urlencoded";if(F)for(var I in F)"content-type"===I.toLowerCase()?r=F[I]:F[I]&&x.setRequestHeader(I,F[I]);r&&
!1!==r&&x.setRequestHeader("Content-Type",r);(!F||!("X-Requested-With"in F))&&x.setRequestHeader("X-Requested-With","XMLHttpRequest");q.notify&&q.notify.emit("send",y,z.promise.cancel);x.send(B)}catch(E){z.reject(E)}n(z);x=null;return k?z:z.promise}h.add("native-xhr2",function(){var a=new XMLHttpRequest;return"undefined"!==typeof a.addEventListener&&("undefined"===typeof opera||"undefined"!==typeof a.upload)});h.add("native-formdata",function(){return"undefined"!==typeof FormData});h.add("native-response-type",
function(){return"undefined"!==typeof(new XMLHttpRequest).responseType});h.add("native-xhr2-blob",function(){if(h("native-response-type")){var a=new XMLHttpRequest;a.open("GET","/",!0);a.responseType="blob";var b=a.responseType;a.abort();return"blob"===b}});var b={blob:h("native-xhr2-blob")?"blob":"arraybuffer",document:"document",arraybuffer:"arraybuffer"},a,c,f,m;h("native-xhr2")?(a=function(a){return!this.isFulfilled()},m=function(a,b){b.xhr.abort()},f=function(a,b,c){function f(a){b.handleResponse(c)}
function m(a){a=new l("Unable to load "+c.url+" status: "+a.target.status,c);b.handleResponse(c,a)}function d(a){a.lengthComputable?(c.loaded=a.loaded,c.total=a.total,b.progress(c)):3===c.xhr.readyState&&(c.loaded=a.position,b.progress(c))}a.addEventListener("load",f,!1);a.addEventListener("error",m,!1);a.addEventListener("progress",d,!1);return function(){a.removeEventListener("load",f,!1);a.removeEventListener("error",m,!1);a.removeEventListener("progress",d,!1);a=null}}):(a=function(a){return a.xhr.readyState},
c=function(a){return 4===a.xhr.readyState},m=function(a,b){var c=b.xhr,f=typeof c.abort;("function"===f||"object"===f||"unknown"===f)&&c.abort()});var s,t={data:null,query:null,sync:!1,method:"GET"};d._create=function(){throw Error("XMLHTTP not available");};d._create=function(){return new XMLHttpRequest};q.addCommonMethods(d);return d})},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has","../selector/_loader"],function(l,n,k,q){function h(b){var f=a[b.options.handleAs];
b.data=f?f(b):b.data||b.text;return b}q.add("activex","undefined"!==typeof ActiveXObject);q.add("dom-parser",function(a){return"DOMParser"in a});var g;if(q("activex")){var e=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"],d;g=function(a){function b(a){try{var c=new ActiveXObject(a);c.async=!1;c.loadXML(g);m=c;d=a}catch(f){return!1}return!0}var m=a.data,g=a.text;m&&(q("dom-qsa2.1")&&!m.querySelectorAll&&q("dom-parser"))&&(m=(new DOMParser).parseFromString(g,
"application/xml"));if(!m||!m.documentElement)(!d||!b(d))&&k.some(e,b);return m}}var b=function(a){return!q("native-xhr2-blob")&&"blob"===a.options.handleAs&&"undefined"!==typeof Blob?new Blob([a.xhr.response],{type:a.xhr.getResponseHeader("Content-Type")}):a.xhr.response},a={javascript:function(a){return n.eval(a.text||"")},json:function(a){return l.parse(a.text||null)},xml:g,blob:b,arraybuffer:b,document:b};h.register=function(b,f){a[b]=f};return h})},"dojo/selector/_loader":function(){define(["../has",
"require"],function(l,n){var k=document.createElement("div");l.add("dom-qsa2.1",!!k.querySelectorAll);l.add("dom-qsa3",function(){try{return k.innerHTML="\x3cp class\x3d'TEST'\x3e\x3c/p\x3e",1==k.querySelectorAll(".TEST:empty").length}catch(h){}});var q;return{load:function(h,g,e,d){d=n;h="default"==h?l("config-selectorEngine")||"css3":h;h="css2"==h||"lite"==h?"./lite":"css2.1"==h?l("dom-qsa2.1")?"./lite":"./acme":"css3"==h?l("dom-qsa3")?"./lite":"./acme":"acme"==h?"./acme":(d=g)&&h;if("?"==h.charAt(h.length-
1)){h=h.substring(0,h.length-1);var b=!0}if(b&&(l("dom-compliant-qsa")||q))return e(q);d([h],function(a){"./lite"!=h&&(q=a);e(a)})}}})},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(l,n){var k=/[&<>'"\/]/g,q={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","/":"\x26#x2F;"},h={};n.setObject("dojo.string",h);h.escape=function(g){return!g?"":g.replace(k,function(e){return q[e]})};h.rep=function(g,e){if(0>=e||!g)return"";for(var d=[];;){e&
1&&d.push(g);if(!(e>>=1))break;g+=g}return d.join("")};h.pad=function(g,e,d,b){d||(d="0");g=String(g);e=h.rep(d,Math.ceil((e-g.length)/d.length));return b?g+e:e+g};h.substitute=function(g,e,d,b){b=b||l.global;d=d?n.hitch(b,d):function(a){return a};return g.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(a,c,f){a=n.getObject(c,!1,e);f&&(a=n.getObject(f,!1,b).call(b,a,c));return d(a,c).toString()})};h.trim=String.prototype.trim?n.trim:function(g){g=g.replace(/^\s+/,"");for(var e=g.length-
1;0<=e;e--)if(/\S/.test(g.charAt(e))){g=g.substring(0,e+1);break}return g};return h})},"dojo/regexp":function(){define(["./_base/kernel","./_base/lang"],function(l,n){var k={};n.setObject("dojo.regexp",k);k.escapeString=function(k,h){return k.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,function(g){return h&&-1!=h.indexOf(g)?g:"\\"+g})};k.buildGroupRE=function(l,h,g){if(!(l instanceof Array))return h(l);for(var e=[],d=0;d<l.length;d++)e.push(h(l[d]));return k.group(e.join("|"),g)};k.group=function(k,
h){return"("+(h?"?:":"")+k+")"};return k})},"dojo/date/locale":function(){define("../_base/lang ../_base/array ../date ../cldr/supplemental ../i18n ../regexp ../string ../i18n!../cldr/nls/gregorian module".split(" "),function(l,n,k,q,h,g,e,d,b){function a(a,b,c,f){return f.replace(/([a-z])\1*/ig,function(d){var g,s,h=d.charAt(0);d=d.length;var k=["abbr","wide","narrow"];switch(h){case "G":g=b[4>d?"eraAbbr":"eraNames"][0>a.getFullYear()?0:1];break;case "y":g=a.getFullYear();switch(d){case 1:break;
case 2:if(!c.fullYear){g=String(g);g=g.substr(g.length-2);break}default:s=!0}break;case "Q":case "q":g=Math.ceil((a.getMonth()+1)/3);s=!0;break;case "M":case "L":g=a.getMonth();3>d?(g+=1,s=!0):(h=["months","L"==h?"standAlone":"format",k[d-3]].join("-"),g=b[h][g]);break;case "w":g=m._getWeekOfYear(a,0);s=!0;break;case "d":g=a.getDate();s=!0;break;case "D":g=m._getDayOfYear(a);s=!0;break;case "e":case "c":if(g=a.getDay(),2>d){g=(g-q.getFirstDayOfWeek(c.locale)+8)%7;break}case "E":g=a.getDay();3>d?(g+=
1,s=!0):(h=["days","c"==h?"standAlone":"format",k[d-3]].join("-"),g=b[h][g]);break;case "a":h=12>a.getHours()?"am":"pm";g=c[h]||b["dayPeriods-format-wide-"+h];break;case "h":case "H":case "K":case "k":s=a.getHours();switch(h){case "h":g=s%12||12;break;case "H":g=s;break;case "K":g=s%12;break;case "k":g=s||24}s=!0;break;case "m":g=a.getMinutes();s=!0;break;case "s":g=a.getSeconds();s=!0;break;case "S":g=Math.round(a.getMilliseconds()*Math.pow(10,d-3));s=!0;break;case "v":case "z":if(g=m._getZone(a,
!0,c))break;d=4;case "Z":h=m._getZone(a,!1,c);h=[0>=h?"+":"-",e.pad(Math.floor(Math.abs(h)/60),2),e.pad(Math.abs(h)%60,2)];4==d&&(h.splice(0,0,"GMT"),h.splice(3,0,":"));g=h.join("");break;default:throw Error("dojo.date.locale.format: invalid pattern char: "+f);}s&&(g=e.pad(g,d));return g})}function c(a,b,c,f){var m=function(a){return a};b=b||m;c=c||m;f=f||m;var d=a.match(/(''|[^'])+/g),e="'"==a.charAt(0);n.forEach(d,function(a,f){a?(d[f]=(e?c:b)(a.replace(/''/g,"'")),e=!e):d[f]=""});return f(d.join(""))}
function f(a,b,c,f){f=g.escapeString(f);c.strict||(f=f.replace(" a"," ?a"));return f.replace(/([a-z])\1*/ig,function(f){var m;m=f.charAt(0);var d=f.length,e="",g="";c.strict?(1<d&&(e="0{"+(d-1)+"}"),2<d&&(g="0{"+(d-2)+"}")):(e="0?",g="0{0,2}");switch(m){case "y":m="\\d{2,4}";break;case "M":case "L":m=2<d?"\\S+?":"1[0-2]|"+e+"[1-9]";break;case "D":m="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+e+"[1-9][0-9]|"+g+"[1-9]";break;case "d":m="3[01]|[12]\\d|"+e+"[1-9]";break;case "w":m="[1-4][0-9]|5[0-3]|"+e+"[1-9]";
break;case "E":case "e":case "c":m=".+?";break;case "h":m="1[0-2]|"+e+"[1-9]";break;case "k":m="1[01]|"+e+"\\d";break;case "H":m="1\\d|2[0-3]|"+e+"\\d";break;case "K":m="1\\d|2[0-4]|"+e+"[1-9]";break;case "m":case "s":m="[0-5]\\d";break;case "S":m="\\d{"+d+"}";break;case "a":d=c.am||b["dayPeriods-format-wide-am"];e=c.pm||b["dayPeriods-format-wide-pm"];m=d+"|"+e;c.strict||(d!=d.toLowerCase()&&(m+="|"+d.toLowerCase()),e!=e.toLowerCase()&&(m+="|"+e.toLowerCase()),-1!=m.indexOf(".")&&(m+="|"+m.replace(/\./g,
"")));m=m.replace(/\./g,"\\.");break;default:m=".*"}a&&a.push(f);return"("+m+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}var m={};l.setObject(b.id.replace(/\//g,"."),m);m._getZone=function(a,b,c){return b?k.getTimezoneName(a):a.getTimezoneOffset()};m.format=function(b,f){f=f||{};var d=h.normalizeLocale(f.locale),e=f.formatLength||"short",d=m._getGregorianBundle(d),g=[],s=l.hitch(this,a,b,d,f);if("year"==f.selector)return c(d["dateFormatItem-yyyy"]||"yyyy",s);var k;"date"!=f.selector&&(k=f.timePattern||
d["timeFormat-"+e])&&g.push(c(k,s));"time"!=f.selector&&(k=f.datePattern||d["dateFormat-"+e])&&g.push(c(k,s));return 1==g.length?g[0]:d["dateTimeFormat-"+e].replace(/\'/g,"").replace(/\{(\d+)\}/g,function(a,b){return g[b]})};m.regexp=function(a){return m._parseInfo(a).regexp};m._parseInfo=function(a){a=a||{};var b=h.normalizeLocale(a.locale),b=m._getGregorianBundle(b),d=a.formatLength||"short",e=a.datePattern||b["dateFormat-"+d],g=a.timePattern||b["timeFormat-"+d],d="date"==a.selector?e:"time"==a.selector?
g:b["dateTimeFormat-"+d].replace(/\{(\d+)\}/g,function(a,b){return[g,e][b]}),s=[];return{regexp:c(d,l.hitch(this,f,s,b,a)),tokens:s,bundle:b}};m.parse=function(a,b){var c=/[\u200E\u200F\u202A\u202E]/g,f=m._parseInfo(b),d=f.tokens,e=f.bundle,c=RegExp("^"+f.regexp.replace(c,"")+"$",f.strict?"":"i").exec(a&&a.replace(c,""));if(!c)return null;var g=["abbr","wide","narrow"],s=[1970,0,1,0,0,0,0],h="",c=n.every(c,function(a,c){if(!c)return!0;var f=d[c-1],m=f.length,f=f.charAt(0);switch(f){case "y":if(2!=
m&&b.strict)s[0]=a;else if(100>a)a=Number(a),f=""+(new Date).getFullYear(),m=100*f.substring(0,2),f=Math.min(Number(f.substring(2,4))+20,99),s[0]=a<f?m+a:m-100+a;else{if(b.strict)return!1;s[0]=a}break;case "M":case "L":if(2<m){if(m=e["months-"+("L"==f?"standAlone":"format")+"-"+g[m-3]].concat(),b.strict||(a=a.replace(".","").toLowerCase(),m=n.map(m,function(a){return a.replace(".","").toLowerCase()})),a=n.indexOf(m,a),-1==a)return!1}else a--;s[1]=a;break;case "E":case "e":case "c":m=e["days-"+("c"==
f?"standAlone":"format")+"-"+g[m-3]].concat();b.strict||(a=a.toLowerCase(),m=n.map(m,function(a){return a.toLowerCase()}));a=n.indexOf(m,a);if(-1==a)return!1;break;case "D":s[1]=0;case "d":s[2]=a;break;case "a":m=b.am||e["dayPeriods-format-wide-am"];f=b.pm||e["dayPeriods-format-wide-pm"];if(!b.strict){var t=/\./g;a=a.replace(t,"").toLowerCase();m=m.replace(t,"").toLowerCase();f=f.replace(t,"").toLowerCase()}if(b.strict&&a!=m&&a!=f)return!1;h=a==f?"p":a==m?"a":"";break;case "K":24==a&&(a=0);case "h":case "H":case "k":if(23<
a)return!1;s[3]=a;break;case "m":s[4]=a;break;case "s":s[5]=a;break;case "S":s[6]=a}return!0}),f=+s[3];"p"===h&&12>f?s[3]=f+12:"a"===h&&12==f&&(s[3]=0);f=new Date(s[0],s[1],s[2],s[3],s[4],s[5],s[6]);b.strict&&f.setFullYear(s[0]);var l=d.join(""),q=-1!=l.indexOf("d"),l=-1!=l.indexOf("M");if(!c||l&&f.getMonth()>s[1]||q&&f.getDate()>s[2])return null;if(l&&f.getMonth()<s[1]||q&&f.getDate()<s[2])f=k.add(f,"hour",1);return f};var s=[];m.addCustomFormats=function(a,b){s.push({pkg:a,name:b})};m._getGregorianBundle=
function(a){var b={};n.forEach(s,function(c){c=h.getLocalization(c.pkg,c.name,a);b=l.mixin(b,c)},this);return b};m.addCustomFormats(b.id.replace(/\/date\/locale$/,".cldr"),"gregorian");m.getNames=function(a,b,c,f){var d;f=m._getGregorianBundle(f);a=[a,c,b];"standAlone"==c&&(c=a.join("-"),d=f[c],1==d[0]&&(d=void 0));a[1]="format";return(d||f[a.join("-")]).concat()};m.isWeekend=function(a,b){var c=q.getWeekend(b),f=(a||new Date).getDay();c.end<c.start&&(c.end+=7,f<c.start&&(f+=7));return f>=c.start&&
f<=c.end};m._getDayOfYear=function(a){return k.difference(new Date(a.getFullYear(),0,1,a.getHours()),a)+1};m._getWeekOfYear=function(a,b){1==arguments.length&&(b=0);var c=(new Date(a.getFullYear(),0,1)).getDay(),f=Math.floor((m._getDayOfYear(a)+(c-b+7)%7-1)/7);c==b&&f++;return f};return m})},"dojo/cldr/supplemental":function(){define(["../_base/lang","../i18n"],function(l,n){var k={};l.setObject("dojo.cldr.supplemental",k);k.getFirstDayOfWeek=function(l){l={bd:5,mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,
iq:6,ir:6,jo:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,sy:6,ye:6,ag:0,ar:0,as:0,au:0,br:0,bs:0,bt:0,bw:0,by:0,bz:0,ca:0,cn:0,co:0,dm:0,"do":0,et:0,gt:0,gu:0,hk:0,hn:0,id:0,ie:0,il:0,"in":0,jm:0,jp:0,ke:0,kh:0,kr:0,la:0,mh:0,mm:0,mo:0,mt:0,mx:0,mz:0,ni:0,np:0,nz:0,pa:0,pe:0,ph:0,pk:0,pr:0,py:0,sg:0,sv:0,th:0,tn:0,tt:0,tw:0,um:0,us:0,ve:0,vi:0,ws:0,za:0,zw:0}[k._region(l)];return void 0===l?1:l};k._region=function(k){k=n.normalizeLocale(k);k=k.split("-");var h=k[1];h?4==h.length&&(h=k[2]):h={aa:"et",ab:"ge",
af:"za",ak:"gh",am:"et",ar:"eg",as:"in",av:"ru",ay:"bo",az:"az",ba:"ru",be:"by",bg:"bg",bi:"vu",bm:"ml",bn:"bd",bo:"cn",br:"fr",bs:"ba",ca:"es",ce:"ru",ch:"gu",co:"fr",cr:"ca",cs:"cz",cv:"ru",cy:"gb",da:"dk",de:"de",dv:"mv",dz:"bt",ee:"gh",el:"gr",en:"us",es:"es",et:"ee",eu:"es",fa:"ir",ff:"sn",fi:"fi",fj:"fj",fo:"fo",fr:"fr",fy:"nl",ga:"ie",gd:"gb",gl:"es",gn:"py",gu:"in",gv:"gb",ha:"ng",he:"il",hi:"in",ho:"pg",hr:"hr",ht:"ht",hu:"hu",hy:"am",ia:"fr",id:"id",ig:"ng",ii:"cn",ik:"us","in":"id",is:"is",
it:"it",iu:"ca",iw:"il",ja:"jp",ji:"ua",jv:"id",jw:"id",ka:"ge",kg:"cd",ki:"ke",kj:"na",kk:"kz",kl:"gl",km:"kh",kn:"in",ko:"kr",ks:"in",ku:"tr",kv:"ru",kw:"gb",ky:"kg",la:"va",lb:"lu",lg:"ug",li:"nl",ln:"cd",lo:"la",lt:"lt",lu:"cd",lv:"lv",mg:"mg",mh:"mh",mi:"nz",mk:"mk",ml:"in",mn:"mn",mo:"ro",mr:"in",ms:"my",mt:"mt",my:"mm",na:"nr",nb:"no",nd:"zw",ne:"np",ng:"na",nl:"nl",nn:"no",no:"no",nr:"za",nv:"us",ny:"mw",oc:"fr",om:"et",or:"in",os:"ge",pa:"in",pl:"pl",ps:"af",pt:"br",qu:"pe",rm:"ch",rn:"bi",
ro:"ro",ru:"ru",rw:"rw",sa:"in",sd:"in",se:"no",sg:"cf",si:"lk",sk:"sk",sl:"si",sm:"ws",sn:"zw",so:"so",sq:"al",sr:"rs",ss:"za",st:"za",su:"id",sv:"se",sw:"tz",ta:"in",te:"in",tg:"tj",th:"th",ti:"et",tk:"tm",tl:"ph",tn:"za",to:"to",tr:"tr",ts:"za",tt:"ru",ty:"pf",ug:"cn",uk:"ua",ur:"pk",uz:"uz",ve:"za",vi:"vn",wa:"be",wo:"sn",xh:"za",yi:"il",yo:"ng",za:"cn",zh:"cn",zu:"za",ace:"id",ady:"ru",agq:"cm",alt:"ru",amo:"ng",asa:"tz",ast:"es",awa:"in",bal:"pk",ban:"id",bas:"cm",bax:"cm",bbc:"id",bem:"zm",
bez:"tz",bfq:"in",bft:"pk",bfy:"in",bhb:"in",bho:"in",bik:"ph",bin:"ng",bjj:"in",bku:"ph",bqv:"ci",bra:"in",brx:"in",bss:"cm",btv:"pk",bua:"ru",buc:"yt",bug:"id",bya:"id",byn:"er",cch:"ng",ccp:"in",ceb:"ph",cgg:"ug",chk:"fm",chm:"ru",chp:"ca",chr:"us",cja:"kh",cjm:"vn",ckb:"iq",crk:"ca",csb:"pl",dar:"ru",dav:"ke",den:"ca",dgr:"ca",dje:"ne",doi:"in",dsb:"de",dua:"cm",dyo:"sn",dyu:"bf",ebu:"ke",efi:"ng",ewo:"cm",fan:"gq",fil:"ph",fon:"bj",fur:"it",gaa:"gh",gag:"md",gbm:"in",gcr:"gf",gez:"et",gil:"ki",
gon:"in",gor:"id",grt:"in",gsw:"ch",guz:"ke",gwi:"ca",haw:"us",hil:"ph",hne:"in",hnn:"ph",hoc:"in",hoj:"in",ibb:"ng",ilo:"ph",inh:"ru",jgo:"cm",jmc:"tz",kaa:"uz",kab:"dz",kaj:"ng",kam:"ke",kbd:"ru",kcg:"ng",kde:"tz",kdt:"th",kea:"cv",ken:"cm",kfo:"ci",kfr:"in",kha:"in",khb:"cn",khq:"ml",kht:"in",kkj:"cm",kln:"ke",kmb:"ao",koi:"ru",kok:"in",kos:"fm",kpe:"lr",krc:"ru",kri:"sl",krl:"ru",kru:"in",ksb:"tz",ksf:"cm",ksh:"de",kum:"ru",lag:"tz",lah:"pk",lbe:"ru",lcp:"cn",lep:"in",lez:"ru",lif:"np",lis:"cn",
lki:"ir",lmn:"in",lol:"cd",lua:"cd",luo:"ke",luy:"ke",lwl:"th",mad:"id",mag:"in",mai:"in",mak:"id",man:"gn",mas:"ke",mdf:"ru",mdh:"ph",mdr:"id",men:"sl",mer:"ke",mfe:"mu",mgh:"mz",mgo:"cm",min:"id",mni:"in",mnk:"gm",mnw:"mm",mos:"bf",mua:"cm",mwr:"in",myv:"ru",nap:"it",naq:"na",nds:"de","new":"np",niu:"nu",nmg:"cm",nnh:"cm",nod:"th",nso:"za",nus:"sd",nym:"tz",nyn:"ug",pag:"ph",pam:"ph",pap:"bq",pau:"pw",pon:"fm",prd:"ir",raj:"in",rcf:"re",rej:"id",rjs:"np",rkt:"in",rof:"tz",rwk:"tz",saf:"gh",sah:"ru",
saq:"ke",sas:"id",sat:"in",saz:"in",sbp:"tz",scn:"it",sco:"gb",sdh:"ir",seh:"mz",ses:"ml",shi:"ma",shn:"mm",sid:"et",sma:"se",smj:"se",smn:"fi",sms:"fi",snk:"ml",srn:"sr",srr:"sn",ssy:"er",suk:"tz",sus:"gn",swb:"yt",swc:"cd",syl:"bd",syr:"sy",tbw:"ph",tcy:"in",tdd:"cn",tem:"sl",teo:"ug",tet:"tl",tig:"er",tiv:"ng",tkl:"tk",tmh:"ne",tpi:"pg",trv:"tw",tsg:"ph",tts:"th",tum:"mw",tvl:"tv",twq:"ne",tyv:"ru",tzm:"ma",udm:"ru",uli:"fm",umb:"ao",unr:"in",unx:"in",vai:"lr",vun:"tz",wae:"ch",wal:"et",war:"ph",
xog:"ug",xsr:"np",yao:"mz",yap:"fm",yav:"cm",zza:"tr"}[k[0]];return h};k.getWeekend=function(l){var h=k._region(l);l={"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}[h];h={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}[h];void 0===l&&(l=6);void 0===h&&(h=0);return{start:l,end:h}};return k})},"esri/_coremap":function(){define("require module dojo/_base/kernel dojo/_base/declare dojo/_base/connect dojo/_base/Deferred dojo/_base/lang dojo/_base/array dojo/_base/event dojo/_base/unload dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/sniff dijit/registry dojox/gfx/matrix ./kernel ./config ./lang ./Evented ./fx ./deferredUtils ./tileUtils ./PluginTarget ./geometry/Point ./geometry/ScreenPoint ./geometry/Extent ./geometry/Rect ./geometry/mathUtils ./geometry/scaleUtils ./geometry/screenUtils ./geometry/webMercatorUtils ./layers/GraphicsLayer ./layers/TileInfo ./layers/LOD ./layers/ArcGISTiledMapServiceLayer ./layers/OpenStreetMapLayer ./dijit/Popup ./plugins/popupManager dojo/uacss".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v,A,y,w,z,x,B,D,C,F,I,E,L,G,K,J,H,M,N,O,P,Q,W,X){function R(a,b){var c=a.lods;c.sort(function(a,b){return a.scale>b.scale?-1:a.scale<b.scale?1:0});var f=[],c=d.filter(c,function(a){if(-1===Z(f,a.scale))return f.push(a.scale),!0}),m=b.lods=[],e;d.forEach(c,function(a,b){e=m[b]=new P(a);e.level=b});b.tileInfo=new O(ca(a,{lods:m}))}var U,S=H.toMapPoint,V=H.toScreenPoint,da=h.connect,$=h.disconnect,ba=e.hitch,T=r.set,Z=d.indexOf,ca=e.mixin,aa=0,Y=w.defaults.map,
ea=function(){};q=q([x,F],{declaredClass:"esri._CoreMap",resizeDelay:300,invalidExtent:"Map does not have a valid extent.",invalidGeometry:"Geometry (wkid: ${geometry}) cannot be converted to spatial reference of the map (wkid: ${map})",unknownBasemap:'Unable to find basemap definition for: "${basemapName}". Try one of these: ${list}',invalidBasemap:'Unable to add basemap: "${basemapName}".',unknownLayerType:'Unknown basemap layer type: "${type}" found in basemap definition for: "${basemapName}".',
visible:!0,_eventMap:{"basemap-change":!0,"extent-change":["extent","delta","levelChange","lod"],"layer-add":["layer"],"layer-add-result":["layer","error"],"layer-remove":["layer"],"layer-reorder":["layer","index"],"layer-resume":["layer"],"layer-suspend":["layer"],"layers-add-result":["layers"],"layers-removed":!0,"layers-reordered":["layerIds"],load:["map"],pan:["extent","delta"],"pan-end":["extent","delta"],"pan-start":["extent","screenPoint"],reposition:["x","y"],resize:["extent","width","height"],
scale:["matrix","immediate"],"time-extent-change":["timeExtent"],"before-unload":["map"],unload:["map"],"update-end":["error"],"update-start":!0,zoom:["extent","zoomFactor","anchor"],"zoom-end":["extent","zoomFactor","anchor","level"],"zoom-start":["extent","zoomFactor","anchor","level"],click:!0,"dbl-click":!0,"key-down":!0,"key-up":!0,"mouse-down":!0,"mouse-drag":!0,"mouse-drag-end":!0,"mouse-drag-start":!0,"mouse-move":!0,"mouse-out":!0,"mouse-over":!0,"mouse-up":!0,"mouse-wheel":!0,"basic-tap":!0,
"double-tap":!0,"pinch-end":!0,"pinch-move":!0,"pinch-start":!0,"processed-double-tap":!0,"processed-tap":!0,"swipe-end":!0,"swipe-move":!0,"swipe-start":!0,tap:!0,"two-finger-tap":!0},constructor:function(b,d){var e=this;this.registerConnectEvents();ca(this,{_internalLayerIds:[],_layers:[],_layerDivs:[],_layerSize:0,_connects:[],_zoomAnimDiv:null,_zoomAnim:null,_layersDiv:null,_firstLayerId:null,_delta:null,_cursor:null,_ratioW:1,_ratioH:1,_params:null,cursor:null,layerIds:[],graphicsLayerIds:[],
graphics:null,_labels:null,loaded:!1,__panning:!1,__zooming:!1,__container:null,root:null,__LOD:null,__tileInfo:null,__visibleRect:null,__visibleDelta:null,_rids:[]});var g=this.container=c.byId(b),r=this.id=f.get(g,"id")||v.getUniqueId(this.declaredClass);m.add(g,"map");var h=t.getContentBox(g),u=m.add,k=s.create;this.position=new E(0,0);this._reposition();var w=this.width=h.w||Y.width,x=this.height=h.h||Y.height;0===h.w&&T(g,"width",w+"px");0===h.h&&T(g,"height",x+"px");var n=this.root=k("div",
{id:r+"_root",style:{width:w+"px",height:x+"px",direction:"ltr"}});u(n,"container");h=this.__container=k("div",{id:r+"_container"},n);T(h,"position","absolute");u(h,"container");g.appendChild(n);g=this._params=ca({slider:!0,nav:!1,zoom:-1,minZoom:-1,maxZoom:-1,scale:-1,minScale:0,maxScale:0,showInfoWindowOnClick:!0,displayGraphicsOnPan:!0,wrapAround180:!0,fitExtent:!1,optimizePanAnimation:!0},d||{});this.wrapAround180=g.wrapAround180;this.optimizePanAnimation=g.optimizePanAnimation;z.isDefined(g.resizeDelay)&&
(this.resizeDelay=g.resizeDelay);g.lods&&(R({rows:512,cols:512,dpi:96,format:"JPEG",compressionQuality:75,origin:{x:-180,y:90},spatialReference:{wkid:4326},lods:g.lods},g),this.__tileInfo=g.tileInfo);this.extent=g.extent;this._extentUtil({mapCenter:g.center,targetLevel:g.zoom,targetScale:g.scale});this.__visibleRect=new G(0,0,w,x);this.__visibleDelta=new G(0,0,w,x);r=this._layersDiv=k("div",{id:r+"_layers"});u(r,"layersDiv");h.appendChild(r);this._zoomAnimDiv=k("div",{style:{position:"absolute"}});
g.infoWindow?this.infoWindow=g.infoWindow:(u=this.infoWindow=new X(g.popupOptions,k("div")),u.startup(),u._ootb=!0,T(u.domNode,"zIndex",40));g.showLabels&&(l(["./layers/LabelLayer"],function(a){U=a;e._createLabelLayer()}),this.on("load",function(){e._createLabelLayer()}));this.addPlugin(this._getAbsMid("./plugins/popupManager"),{enabled:g.showInfoWindowOnClick});this._zoomStartHandler=ba(this,this._zoomStartHandler);this._zoomingHandler=ba(this,this._zoomingHandler);this._zoomEndHandler=ba(this,this._zoomEndHandler);
this._panningHandler=ba(this,this._panningHandler);this._panEndHandler=ba(this,this._panEndHandler);this._endTranslate=ba(this,this._endTranslate);a.addOnWindowUnload(this,this.destroy)},_getAbsMid:function(a){return l.toAbsMid?l.toAbsMid(a):n.id.replace(/\/[^\/]*$/ig,"/")+a},_cleanUp:function(){var a=this.infoWindow;a&&(a._ootb&&a.destroy?a.destroy():a.unsetMap(this),delete this.infoWindow);$(this._tsTimeExtentChange_connect);this.removePlugin("./plugins/popupManager");s.destroy(this.root);this.root=
null},_addLayer:function(a,b,c){var f=a.id=a.id||(a instanceof N?Y.graphicsLayerNamePrefix:Y.layerNamePrefix)+aa++;this._layers[f]=a;var m,d;if(b===this.layerIds||b===this.graphicsLayerIds)m=this._layerSize,this._layerSize++;a._isRefLayer="top"===c;c=!z.isDefined(c)||0>c||c>b.length||"top"===c?b.length:c;0===m&&(this._firstLayerId=f);if(!a._isRefLayer)for(;(d=this.getLayer(b[c-1]))&&d._isRefLayer;)c--;b.splice(c,0,f);var e=ba(this,this._addLayerHandler),g=this;c=this._connects;d=function(){a.loaded?
g._onLoadFix?(g._onLoadFix=!1,setTimeout(function(){e(a)},0)):e(a):(g[f+"_addtoken_load"]=da(a,"onLoad",g,"_addLayerHandler"),g[f+"_addtoken_err"]=da(a,"onError",g,function(c){e(a,c,b)}))};this.loaded||0===m||a.loaded&&-1===Z(this.graphicsLayerIds,f)?d():c.push(da(this,"onLoad",d));return a},_addLayerHandler:function(a,b,c){var f=this.id,m=a.id,d=Z(a instanceof N?this.graphicsLayerIds:this.layerIds,m),e=d,g=!1,s=this._params;$(this[m+"_addtoken_load"]);$(this[m+"_addtoken_err"]);if(b)delete this._layers[m],
-1!==d&&(c.splice(d,1),this.onLayerAddResult(a,b));else{-1===d&&(d=Z(this._internalLayerIds,m),e=20+d,g=!0);if(m===this._firstLayerId){b=a.spatialReference;if((c=this.extent&&this.extent.spatialReference)&&!c.equals(b)&&(a.tileInfo||!a.url))c=null;c=this.spatialReference=c||b;this.wrapAround180=this.wrapAround180&&c&&c._isWrappable()?!0:!1;a.tileInfo&&(this.__tileInfo?(b=this.__tileInfo.lods,this.__tileInfo=ca({},a.tileInfo),this.__tileInfo.lods=b):(R(ca({},a.tileInfo),s),this.__tileInfo=s.tileInfo));
if(this.wrapAround180){b=this.__tileInfo;c=c._getInfo();if(!b||Math.abs(c.origin[0]-b.origin.x)>c.dx)this.wrapAround180=!1;this.wrapAround180&&b&&C._addFrameInfo(b,c)}s.units=a.units;if((b=this.__tileInfo&&this.__tileInfo.lods)&&b.length){c=s.minScale;var d=s.maxScale,r=-1,t=-1,h=!1,u=!1,k;for(k=0;k<b.length;k++)0<c&&(!h&&c>=b[k].scale)&&(r=b[k].level,h=!0),0<d&&(!u&&d>=b[k].scale)&&(t=0<k?b[k-1].level:-1,u=!0);-1===s.minZoom&&(s.minZoom=0===c?b[0].level:r);-1===s.maxZoom&&(s.maxZoom=0===d?b[b.length-
1].level:t);for(k=0;k<b.length;k++)s.minZoom===b[k].level&&(s.minScale=b[k].scale),s.maxZoom===b[k].level&&(s.maxScale=b[k].scale)}else s.minZoom=s.maxZoom=s.zoom=-1}a instanceof N?(this._gc||(this._gc=new N._GraphicsContainer,this._gc._setMap(this,this._layersDiv).id=f+"_gc"),e=a._setMap(this,this._gc._surface),e.id=f+"_"+m,this._layerDivs[m]=e,this._reorderLayers(this.graphicsLayerIds)):(e=a._setMap(this,this._layersDiv,e,this.__LOD),e.id=f+"_"+m,this._layerDivs[m]=e,this._reorderLayers(this.layerIds),
!g&&-1!==a.declaredClass.indexOf("VETiledLayer")&&this._onBingLayerAdd(a));m===this._firstLayerId&&(this.graphics=new N({id:f+"_graphics",displayOnPan:s.displayGraphicsOnPan}),this._addLayer(this.graphics,this._internalLayerIds,20));if(a===this.graphics){c=this._layers[this._firstLayerId];f=s.zoom;e=s.scale;b=s.center;c=c.initialExtent||c.fullExtent;this._firstLayerId=null;this.extent&&(this.extent=this._convertGeometry(this,this.extent));!this.extent&&c&&(b&&(b=this._convertGeometry(c,b)),b&&(c=
c.centerAt(b)));if(b=this.extent||c&&new L(c.toJson()))-1<f?b=this.__getExtentForLevel(f,null,b).extent:0<e&&(b=J.getExtentForScale(this,e,b));if(!b)return;f=this._fixExtent(b,s.fitExtent);this.extent=f.extent;this.__LOD=f.lod;this.__setExtent(this.extent,null,null,s.fitExtent);this.loaded=!0;this.attr("data-loaded","");this.infoWindow.setMap(this);this.onLoad(this)}g||(this.onLayerAdd(a),this.onLayerAddResult(a));$(this[m+"_addLayerHandler_connect"])}},_convertGeometry:function(a,b){var c=a&&a.spatialReference,
f=b&&b.spatialReference;c&&(f&&!c.equals(f))&&(c._canProject(f)?c.isWebMercator()?b=M.geographicToWebMercator(b):4326===c.wkid&&(b=M.webMercatorToGeographic(b,!0)):b=null);return b},_reorderLayers:function(a){var b=this.onLayerReorder,c=s.place,f=this._layerDivs,m=this._layers,e=this._gc?this._gc._surface.getEventSource():null;if(a===this.graphicsLayerIds)d.forEach(a,function(a,d){var g=f[a];g&&(c(g.getEventSource(),e,d),b(m[a],d))});else{var g=this.graphics,r=g?g.id:null,t=this._layersDiv,h;d.forEach(a,
function(a,d){h=f[a];a!==r&&h&&(c(h,t,d),b(m[a],d))});e&&(e=9>u("ie")?e.parentNode:e,c(e,e.parentNode,a.length))}this.onLayersReordered([].concat(a))},_zoomStartHandler:function(){this.__zoomStart(this._zoomAnimDiv.startingExtent,this._zoomAnimDiv.anchor)},_zoomingHandler:function(a){var b=parseFloat(a.left),c=parseFloat(a.top);a=new L(b,c-parseFloat(a.height),b+parseFloat(a.width),c,this.spatialReference);b=this.extent.getWidth()/a.getWidth();this.__zoom(a,b,this._zoomAnimDiv.anchor)},_zoomEndHandler:function(){var a=
this._zoomAnimDiv,b=a.extent,c=this.extent.getWidth()/b.getWidth(),f=a.anchor,m=a.newLod,d=a.levelChange;a.extent=a.anchor=a.levelChange=a.startingExtent=a.newLod=this._delta=this._zoomAnim=null;this.__zoomEnd(b,c,f,m,d)},_panningHandler:function(a){if(isNaN(parseFloat(a.left))||isNaN(parseFloat(a.top))){var b=Math.round,c=this._panAnim.node;a.left=-1*(this._delta.x-b(this.width/2))+"px";a.top=-1*(this._delta.y-b(this.height/2))+"px";r.set(c,"left",a.left);r.set(c,"top",a.top)}a=new E(parseFloat(a.left),
parseFloat(a.top));b=this.toMap(a);this.onPan(this.extent.offset(this.extent.xmin-b.x,this.extent.ymax-b.y),a)},_panEndHandler:function(a){this.__panning=!1;var b=Math.round;a=new E(-b(parseFloat(a.style.left)),-b(parseFloat(a.style.top)));var b=a.x,c=a.y,f=this.__visibleRect,m=this.__visibleDelta;f.x+=-b;f.y+=-c;m.x+=-b;m.y+=-c;T(this._zoomAnimDiv,{left:"0px",top:"0px"});var f=this.extent,m=this._ratioW,d=this._ratioH,f=new L(f.xmin+b/m,f.ymin-c/d,f.xmax+b/m,f.ymax-c/d,this.spatialReference);a.setX(-a.x);
a.setY(-a.y);this._delta=this._panAnim=null;this._updateExtent(f);this.onPanEnd(f,a);this._fireExtChg([f,a,!1,this.__LOD])},_fixExtent:function(a,b){for(var c=this._reshapeExtent(a),f=1.25;!0===b&&(c.extent.getWidth()<a.getWidth()||c.extent.getHeight()<a.getHeight())&&0<c.lod.level&&3>=f;)c=this._reshapeExtent(a.expand(f)),f+=0.25;return c},_getFrameWidth:function(){var a=-1,b=this.spatialReference._getInfo();this.__LOD?(b=this.__LOD._frameInfo)&&(a=b[3]):b&&(a=Math.round(2*b.valid[1]/(this.extent.getWidth()/
this.width)));return a},_reshapeExtent:function(a){var b=a.getWidth(),c=a.getHeight(),f=b/c,m=this.width/this.height,d=0,e=0;this.width>this.height?b>c?m>f?d=c*m-b:e=b/m-c:d=c*m-b:this.width<this.height?b>c?e=b/m-c:b<c?m>f?d=c*m-b:e=b/m-c:e=b/m-c:b<c?d=c-b:b>c&&(e=b/m-c);d&&(a.xmin-=d/2,a.xmax+=d/2);e&&(a.ymin-=e/2,a.ymax+=e/2);return this._getAdjustedExtent(a)},_getAdjustedExtent:function(a){if(this.__tileInfo)return C.getCandidateTileInfo(this,this.__tileInfo,a);var b=J.getScale(this,a),c=this.getMinScale(),
f=this.getMaxScale(),m=!f||b>=f;c&&!(b<=c)?a=J.getExtentForScale(this,c,a):m||(a=J.getExtentForScale(this,f,a));return{extent:a}},_onBingLayerAdd:function(a){this["__"+a.id+"_vis_connect"]=h.connect(a,"onVisibilityChange",this,"_toggleBingLogo");this._toggleBingLogo(a.visible)},_onBingLayerRemove:function(a){h.disconnect(this["__"+a.id+"_vis_connect"]);delete this["__"+a.id+"_vis_connect"];var b=d.some(this.layerIds,function(b){return(a=this._layers[b])&&a.visible&&-1!==a.declaredClass.indexOf("VETiledLayer")},
this);this._toggleBingLogo(b)},_toggleBingLogo:function(a){a&&!this._bingLogo?(a={left:this._mapParams&&this._mapParams.nav?"25px":""},6===u("ie")&&(a.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled\x3d'true', sizingMethod\x3d'crop', src\x3d'"+l.toUrl("./images/map/bing-logo-lg.png")+"')"),a=this._bingLogo=s.create("div",{style:a},this.root),m.add(a,"bingLogo-lg")):!a&&this._bingLogo&&(s.destroy(this._bingLogo),delete this._bingLogo)},__panStart:function(a,b){var c=this._zoomAnim,
f=this._panAnim;if(c&&c._active)c.stop(),c._fire("onEnd",[c.node]);else if(f&&f._active){f.stop();this._panAnim=null;var f=f.curve.getValue(f._getStep()),c=Math.round(parseFloat(f.left)),f=Math.round(parseFloat(f.top)),m=this.navigationManager._dragOrigin;this.__pan(c,f);m&&(m.x-=c,m.y-=f);return}this.__panning=!0;this.onPanStart(this.extent,new E(a,b))},__pan:function(a,b){var c=this.extent,f=this._ratioW,m=this._ratioH;this.onPan(new L(c.xmin-a/f,c.ymin+b/m,c.xmax-a/f,c.ymax+b/m,this.spatialReference),
new E(a,b))},__panEnd:function(a,b){var c=this.__visibleRect,f=this.__visibleDelta;c.x+=a;c.y+=b;f.x+=a;f.y+=b;var c=new E(a,b),f=this.extent,m=this._ratioW,d=this._ratioH,f=new L(f.xmin-a/m,f.ymin+b/d,f.xmax-a/m,f.ymax+b/d,this.spatialReference);this.__panning=!1;this._updateExtent(f);this.onPanEnd(f,c);this._fireExtChg([f,c,!1,this.__LOD])},__zoomStart:function(a,b){this.__zooming=!0;this.onZoomStart(a,1,b,this.__LOD?this.__LOD.level:null)},__zoom:function(a,b,c){this.onZoom(a,b,c)},__zoomEnd:function(a,
b,c,f,m){T(this._layersDiv,{left:"0px",top:"0px"});this._delta=new E(0,0);this.__visibleRect.x=this.__visibleRect.y=0;a=new L(a);this.__LOD=f;this._ratioW=this.width/a.getWidth();this._ratioH=this.height/a.getHeight();var d=this._delta;this._delta=null;this.__zooming=!1;this._updateExtent(a,m);this.onZoomEnd(a,b,c,f?f.level:null);this._fireExtChg([a,d,m,f])},_extentUtil:function(a,b,c,f,m){var d=new g,s,r,t,h,u,k,l,v,w,x,n=this.width,A=this.height,q,y,B;a&&(s=a.numLevels,r=a.targetLevel,q=z.isDefined(r),
t=a.factor,h=a.mapAnchor,u=a.screenAnchor,k=a.mapCenter,y=a.levelOrFactor,l=a.targetScale,v=z.isDefined(l)&&0<l);b&&(w=b.dx,x=b.dy,k=b.mapCenter);e.isArray(k)&&(k=new I(k));var C=this._panAnim;b=(a=this._stopAnim())?a.divExtent:this.extent;var F=this.__tileInfo,G=this._params;if(!this.loaded){if(c)b&&(c=this._convertGeometry(b,c)),c&&(this.extent=c,G.zoom=G.scale=-1,G.center=null);else if(k||q||v){if(k)if(b){if(k=this._convertGeometry(b,k))this.extent=b.centerAt(k),G.center=null}else G.center=k;q&&
-1<r?(G.zoom=r,G.scale=-1):v&&(G.scale=l,G.zoom=-1)}d.resolve();return d}if(k&&(k=this._convertGeometry(this,k),!k)||h&&(h=this._convertGeometry(this,h),!h)||c&&(c=this._convertGeometry(this,c),!c))return d.reject(),d;C&&(h&&u)&&(h=S(this.extent,n,A,u));a&&(h&&u)&&(h=S(a.divExtent,n,A,u));q&&(F?(s=this.getMinZoom(),q=this.getMaxZoom(),r<s?r=s:r>q&&(r=q),s=r-(a?a.level:this.getLevel())):(s=0<r?-1:1,B=y?r:null));if(!c)if(z.isDefined(s))F?(n=a?a.level:this.getLevel(),A=this.__getExtentForLevel(n+s,k,
b).extent):(A=(a?a.end:this.extent).expand(B||(0<s?0.5*s:2*-s)),B&&k&&(A=A.centerAt(k))),A&&(k?c=A:(n=h||b.getCenter(),w=b.ymax-(A.getHeight()-b.getHeight())*(n.y-b.ymax)/b.getHeight(),n=b.xmin-(A.getWidth()-b.getWidth())*(n.x-b.xmin)/b.getWidth(),c=new L(n,w-A.getHeight(),n+A.getWidth(),w,this.spatialReference)));else if(v)c=J.getExtentForScale(this,l,b);else if(z.isDefined(t))c=b.expand(t);else if(w||x)a?(c=a.end,h=c.getCenter(),B=V(c,n,A,h),B.x+=w,B.y+=x,B=S(c,n,A,B),c=c.offset(B.x-h.x,B.y-h.y)):
(w=new E(n/2+w,A/2+x),x=S(b,n,A,w),A=b.getWidth(),w=b.getHeight(),n=x.x-A/2,x=x.y-w/2,c=new L(n,x,n+A,x+w,this.spatialReference));c||(k?(b=a?a.end:b,A=b.getWidth(),w=b.getHeight(),n=k.x-A/2,x=k.y-w/2,c=new L(n,x,n+A,x+w,this.spatialReference)):a&&(c=a.end));c?(this._extentDfd&&-1===this._extentDfd.fired&&(this._extentDfd.then(null,ea),this._extentDfd.reject()),this._extentDfd=d,this.__setExtent(c,null,u,f,a,m)):d.reject();return d},__setExtent:function(a,b,c,f,m,d){try{if(this._firstLayerId)this.extent=
a;else{var e=!0,g=this.spatialReference,s=m?m.divExtent:this.extent,r=this._fixExtent(a,f||!1);a=r.extent;var h=a.getWidth(),t=a.getHeight(),u=Math.round;if(s)var k=u(1E6*s.getWidth()),l=u(1E6*h),w=u(1E6*s.getHeight()),v=u(1E6*t),e=k!==l||w!==v;var x,n,A=m&&m.rect,z=m&&m.divExtent;if(Y.zoomDuration&&e&&s){z=z||new L(s);A=A||{left:s.xmin,top:s.ymax,width:s.getWidth(),height:s.getHeight()};n={left:a.xmin,top:a.ymax,width:h,height:t};var q=new I(a.xmin,a.ymax,g),y=new I(a.xmin,a.ymin,g),C=new I(this.extent.xmin,
this.extent.ymax,g),F=new I(this.extent.xmin,this.extent.ymin,g);x=K.getLineIntersection(C,q,F,y,g);!x&&!m&&(e=!1)}this._ratioW=this.width/h;this._ratioH=this.height/t;var D=this._zoomAnimDiv;if(e)T(this._layersDiv,{left:"0px",top:"0px"}),b=new E(0,0),this.__visibleRect.x=this.__visibleRect.y=0,A&&n?(this._delta=b,D.id="_zAD",D.startingExtent=z,D.extent=a,D.levelChange=e,D.newLod=r.lod,D.anchor=c?c:!x&&m?m.anchor:V(this.extent,this.width,this.height,x),this._zoomAnim=B.resize({node:D,start:A,end:n,
duration:Y.zoomDuration,rate:Y.zoomRate,beforeBegin:!m?this._zoomStartHandler:null,onAnimate:this._zoomingHandler,onEnd:this._zoomEndHandler}).play(),this._fireOnScale(this.extent.getWidth()/a.getWidth(),D.anchor)):(this._updateExtent(a,e),this._fireExtChg([this.extent,b,e,this.__LOD=r.lod]));else if(!this.__panning)if(!1===this.loaded||d)this._updateExtent(a,e),this._fireExtChg([this.extent,b,e,this.__LOD=r.lod]);else{this.__panning=!0;A=(new G(0,0,this.width,this.height,this.spatialReference)).getCenter();
A.x=u(A.x);A.y=u(A.y);var H=this._delta=this.toScreen(a.getCenter()),M=Math.abs(A.x-H.x),N=Math.abs(A.y-H.y);5E4<M||5E4<N?(this.__visibleRect.x=this.__visibleRect.y=this.__visibleDelta.x=this.__visibleDelta.y=0,this.__panning=!1,this._delta=null,this._updateExtent(a,!1),this._fireExtChg([this.extent,new E(0,0),!0,this.__LOD])):this.optimizePanAnimation&&(M>2*this.width||N>2*this.height)?(b=new E(A.x-H.x,A.y-H.y),this.__panStart(A.x,A.y),this.__pan(b.x,b.y),this.__panEnd(b.x,b.y)):(this.onPanStart(this.extent,
new E(0,0)),this._panAnim=B.slideTo({node:D,left:A.x-H.x,top:A.y-H.y,duration:Y.panDuration,rate:Y.panRate,onAnimate:this._panningHandler,onEnd:this._panEndHandler}),this._panAnim.play())}}}catch(J){console.error(J)}},_fireOnScale:function(a,b,c){if("css-transforms"===this.navigationMode){var f=this.__visibleDelta;this.onScale(A.scaleAt(a,{x:-1*(this.width/2-(b.x-f.x)),y:-1*(this.height/2-(b.y-f.y))}),c)}},_stopAnim:function(){var a=this._zoomAnim,b=this._panAnim;if(a&&a._active){a.stop();var b=a.curve.getValue(a._getStep()),
c=parseFloat(b.left),f=parseFloat(b.top),a=a.node;return{anchor:a.anchor,start:a.startingExtent,end:a.extent,level:a.newLod&&a.newLod.level,rect:b,divExtent:new L(c,f-parseFloat(b.height),c+parseFloat(b.width),f,this.spatialReference)}}b&&b._active&&(b.stop(),b._fire("onEnd",[b.node]))},__getExtentForLevel:function(a,b,c){var f=this.__tileInfo,f=f&&f.lods;a=z.isDefined(a)?a:0;c=c||this.extent;b=b||c&&c.getCenter();if(f){if(b){c=this.getMinZoom();var m=this.getMaxZoom();a>m&&(a=m);a<c&&(a=c);a=f[a];
f=this.width*a.resolution/2;c=this.height*a.resolution/2;return{extent:new L(b.x-f,b.y-c,b.x+f,b.y+c,b.spatialReference),lod:a}}}else if(c)return{extent:c.expand(!a||1>a?1:a).centerAt(b)}},_jobs:0,_incr:function(){1===++this._jobs&&(this.updating=!0,this.attr("data-updating",""),this.onUpdateStart())},_decr:function(){var a=--this._jobs;a?0>a&&(this._jobs=0):(this.updating=!1,this.attr("data-updating"),this.onUpdateEnd())},_fireEvent:function(a,b){this[a]&&this[a].apply(this,b)},_updateExtent:function(a,
b){this.extent=a;b&&this._setClipRect();var c=this.spatialReference;c&&(c.isWebMercator()?this.geographicExtent=M.webMercatorToGeographic(this._getAvailExtent(),!0):4326===c.wkid&&(this.geographicExtent=new L(this._getAvailExtent().toJson())))},_fireExtChg:function(a){this.attr("data-zoom",this.getZoom());this.attr("data-scale",this.getScale());this._fireEvent("onExtentChange",a);if(a=this._extentDfd)delete this._extentDfd,a.resolve()},attr:function(a,b){var c=this.container;c&&(null==b?c.removeAttribute(a):
c.setAttribute(a,b));return this},onUpdateStart:function(){},onUpdateEnd:function(){},onLoad:function(){this._setClipRect()},onBeforeUnload:function(){},onUnload:function(){},onExtentChange:function(a,b,c){},onTimeExtentChange:function(){},onLayerAdd:function(){},onLayerAddResult:function(){},onLayersAddResult:function(){},onLayerRemove:function(){},onLayersRemoved:function(){},onLayerReorder:function(){},onLayersReordered:function(){},onLayerSuspend:function(){},onLayerResume:function(){},onPanStart:function(){},
onPan:function(){},onPanEnd:function(){},onScale:function(){},onZoomStart:function(){},onZoom:function(){},onZoomEnd:function(){},onResize:function(){this._setClipRect()},onReposition:function(){},destroy:function(){this._destroyed||(this.onBeforeUnload(this),this.removeAllLayers(),this._cleanUp(),this._gc&&this._gc._cleanUp(),this._destroyed=!0,this.onUnload(this))},setCursor:function(a){T(this.__container,"cursor",this.cursor=a)},setMapCursor:function(a){this.setCursor(this._cursor=a)},resetMapCursor:function(){this.setCursor(this._cursor)},
setInfoWindow:function(a){var b=this.infoWindow;b&&b.unsetMap(this);this.infoWindow=a;this.loaded&&a&&a.setMap(this)},setInfoWindowOnClick:function(a){this._params.showInfoWindowOnClick=a;this.popupManager&&this.popupManager.set("enabled",a)},getInfoWindowAnchor:function(a){return this.infoWindow&&this.infoWindow._getAnchor&&this.infoWindow._getAnchor(a)||"upperright"},toScreen:function(a,b){return V(this.extent,this.width,this.height,a,b)},toMap:function(a){return S(this.extent,this.width,this.height,
a)},addLayer:function(a,b){a&&!this.getLayer(a.id)&&this._addLayer(a,a instanceof N?this.graphicsLayerIds:this.layerIds,b);return a},addLayers:function(a){var b=[],c=a.length,f,m,e=a.length;f=h.connect(this,"onLayerAddResult",function(m,e){-1!==d.indexOf(a,m)&&(c--,b.push({layer:m,success:!e,error:e}),c||(h.disconnect(f),this.onLayersAddResult(b)))});for(m=0;m<e;m++)this.addLayer(a[m]);return this},removeLayer:function(a,b){var c=a.id,f=a instanceof N?this.graphicsLayerIds:this.layerIds,m=Z(f,c);
0<=m&&(f.splice(m,1),a instanceof N?($(this["_gl_"+a.id+"_click_connect"]),a.loaded&&a._unsetMap(this,this._gc._surface)):a.loaded&&(a._unsetMap(this,this._layersDiv),-1!==a.declaredClass.indexOf("VETiledLayer")&&this._onBingLayerRemove(a)),delete this._layers[c],delete this._layerDivs[c],b||this._reorderLayers(f),this.onLayerRemove(a))},removeAllLayers:function(){var a=this.layerIds,b;for(b=a.length-1;0<=b;b--)this.removeLayer(this._layers[a[b]],1);a=this.graphicsLayerIds;for(b=a.length-1;0<=b;b--)this.removeLayer(this._layers[a[b]],
1);this.onLayersRemoved()},reorderLayer:function(a,b){e.isString(a)&&(k.deprecated(this.declaredClass+": Map.reorderLayer(/*String*/ id, /*Number*/ index) deprecated. Use Map.reorderLayer(/*Layer*/ layer, /*Number*/ index).",null,"v2.0"),a=this.getLayer(a));var c=a.id,f,m=a instanceof N?this.graphicsLayerIds:this.layerIds;0>b?b=0:b>=m.length&&(b=m.length-1);f=Z(m,c);-1===f||f===b||(m.splice(f,1),m.splice(b,0,c),this._reorderLayers(m))},getLayer:function(a){return this._layers[a]},setExtent:function(a,
b){a=new L(a.toJson());var c=a.getWidth(),f=a.getHeight();return 0===c&&0===f?this.centerAt(new I({x:a.xmin,y:a.ymin,spatialReference:a.spatialReference&&a.spatialReference.toJson()})):this._extentUtil(null,null,a,b)},centerAt:function(a){return this._extentUtil(null,{mapCenter:a})},centerAndZoom:function(a,b){return this._extentUtil({targetLevel:b,mapCenter:a,levelOrFactor:!0})},getScale:function(){return this.__LOD?this.__LOD.scale:J.getScale(this)},getResolution:function(){return this.__LOD?this.__LOD.resolution:
this.extent?this.extent.getWidth()/this.width:0},getResolutionInMeters:function(){return this.getResolution()*(J.getUnitValue(this.spatialReference)||20015077/180)},getMinScale:function(){return this._params.minScale},getMaxScale:function(){return this._params.maxScale},setScale:function(a){return this._extentUtil({targetScale:a})},getLayersVisibleAtScale:function(a){var b=[];(a=a||this.getScale())&&d.forEach(this.layerIds.concat(this.graphicsLayerIds),function(c){c=this.getLayer(c);c.isVisibleAtScale(a)&&
b.push(c)},this);return b},getNumLevels:function(){var a=this.getMinZoom(),b=this.getMaxZoom();return a===b&&0>a?0:b-a+1},getLevel:function(){return this.__LOD?this.__LOD.level:-1},setLevel:function(a){if(-1<a)return this._extentUtil({targetLevel:a})},getZoom:function(){return this.getLevel()},setZoom:function(a){return this.setLevel(a)},getMinZoom:function(){return this._params.minZoom},getMaxZoom:function(){return this._params.maxZoom},setBasemap:function(a){var b;e.isObject(a)?(b=a,a=b.title):
b=Y.basemaps&&Y.basemaps[a];if(b){this._basemapDfd&&-1===this._basemapDfd.fired&&this._basemapDfd.cancel();var c=[],f=[],m=0;d.forEach(b.baseMapLayers||b.layers,function(a){var b,d={id:a.id,displayLevels:a.displayLevels,opacity:z.isDefined(a.opacity)?a.opacity:null,visible:z.isDefined(a.visibility)?a.visibility:null};if(a.type)switch(a.type){case "OpenStreetMap":b=new W(d)}else{b=a.url;if("https:"===window.location.protocol&&(-1!==b.search(/^http\:\/\/server\.arcgisonline\.com/i)||-1!==b.search(/^http\:\/\/services\.arcgisonline\.com/i)||
-1!==b.search(/^http\:\/\/.+\.arcgis\.com/i)))b=b.replace(/http:/i,"https:");b=new Q(b,d)}b&&(c.push(b),f.push(a),a.isReference||m++)},this);if(c.length&&m){var s={basemapName:a,infos:f,layers:c};if(this.loaded){var r=this,t=new g(D._dfdCanceller),u=function(a){t._pendingLayers--;a=d.indexOf(s.layers,this);if(-1<a&&(a=t._layerEvents[a]))h.disconnect(a[0]),h.disconnect(a[1]);0>=t._pendingLayers&&(delete t._layerEvents,delete r._basemapDfd,0>t.fired&&t.callback(s))};this._basemapDfd=t;t._pendingLayers=
0;t._layerEvents={};d.forEach(c,function(a,b){a&&(t._pendingLayers++,a.loaded?u(a):t._layerEvents[b]=[h.connect(a,"onLoad",a,u),h.connect(a,"onError",a,u)])});t.addCallback(ba(this,this._basemapLoaded))}else this._basemapLoaded(s)}}else{a=[];for(var k in Y.basemaps)a.push(k)}},_basemapLoaded:function(a){var b=a.layers,c=a.infos,f=0,m=!0,e;this.loaded&&(d.forEach(b,function(a,b){a.loaded&&(c[b].isReference||f++)}),m=f);m&&(this.basemapLayerIds&&(e={basemapName:this._basemap,infos:Y.basemaps&&Y.basemaps[this._basemap]&&
Y.basemaps[this._basemap].baseMapLayers},e.basemapName||(d.forEach(this.basemapLayerIds,function(a){if(this.getLayer(a)instanceof W)return e.basemapName="osm",e.infos=Y.basemaps&&Y.basemaps.osm&&Y.basemaps.osm.baseMapLayers,!1},this),e.basemapName||(e=null))),this._removeBasemap(),this._basemap=a.basemapName,this.basemapLayerIds=this._addBasemap(b,c),this.attr("data-basemap",this.getBasemap()),this.emit("basemap-change",{current:a,previous:e}))},_addBasemap:function(a,b){var c=[],f=[],m=0;d.forEach(a,
function(a,d){b[d].isReference?c.push(a):(this.addLayer(a,m++),f.push(a.id))},this);c.length&&d.forEach(c,function(a){this.addLayer(a,"top");f.push(a.id)},this);return f},_removeBasemap:function(){var a=this.basemapLayerIds,b;a&&a.length&&d.forEach(a,function(a){(b=this.getLayer(a))&&this.removeLayer(b)},this)},getBasemap:function(){return this._basemap||""},translate:function(a,b){a=a||0;b=b||0;if(!this._txTimer){this._tx=this._ty=0;var c=this.toScreen(this.extent.getCenter());this.__panStart(c.x,
c.y)}this._tx+=a;this._ty+=b;this.__pan(this._tx,this._ty);clearTimeout(this._txTimer);this._txTimer=setTimeout(this._endTranslate,150)},_endTranslate:function(){clearTimeout(this._txTimer);this._txTimer=null;var a=this._tx,b=this._ty;this._tx=this._ty=0;this.__panEnd(a,b)},setTimeExtent:function(a){a=(this.timeExtent=a)?new a.constructor(a.toJson()):null;this.onTimeExtentChange(a)},setTimeSlider:function(a){this.timeSlider&&($(this._tsTimeExtentChange_connect),this.timeSlider=this._tsTimeExtentChange_connect=
null);a&&(this.timeSlider=a,this.setTimeExtent(a.getCurrentTimeExtent()),this._tsTimeExtentChange_connect=da(a,"onTimeExtentChange",this,"setTimeExtent"))},setVisibility:function(a){if(this.visible!==a){this.visible=a;a||(this._display=this.container.style.display);this.container.style.display=a?this._display:"none";if(this.autoResize){var b=a?"resume":"pause";this._rszSignal[b]();this._oriSignal[b]()}a&&this.resize()}return this},resize:function(a){var b=this,c=function(){clearTimeout(b._resizeT);
b.reposition();b._resize()};clearTimeout(b._resizeT);!0===a?c():b._resizeT=setTimeout(c,b.resizeDelay)},_resize:function(){var a=this.width,b=this.height,c=t.getContentBox(this.container);if(!(a===c.w&&b===c.h)){var f=this._zoomAnim||this._panAnim;f&&(f.stop(),f._fire("onEnd",[f.node]));T(this.root,{width:(this.width=c.w)+"px",height:(this.height=c.h)+"px"});c=this.width;f=this.height;this.attribution&&this.attribution.domNode&&r.set(this.attribution.domNode,"maxWidth",Math.floor(c*this._mapParams.attributionWidth)+
"px");this.__visibleRect.update(this.__visibleRect.x,this.__visibleRect.y,c,f);this.__visibleDelta.update(this.__visibleDelta.x,this.__visibleDelta.y,c,f);var m=new G(this.extent),a=(new G(m.x,m.y,m.width*(c/a),m.height*(f/b),this.spatialReference)).getExtent();this.onResize(a,c,f);this._extentUtil(null,null,a,null,!0)}},reposition:function(){this._reposition();this.onReposition(this.position.x,this.position.y)},_reposition:function(){var a=t.position(this.container,!0),b=t.getPadBorderExtents(this.container);
this.position.update(a.x+b.l,a.y+b.t)},_setClipRect:function(){delete this._clip;var a=7>=u("ie")||void 0===u("ie")&&7<=u("trident")?"rect(auto,auto,auto,auto)":"auto";if(this.wrapAround180){var b=this.width,c=this.height,f=this._getFrameWidth(),m=b-f;0<m&&(a=m/2,a="rect(0px,"+(a+f)+"px,"+c+"px,"+a+"px)",c=this.extent.getWidth(),b=c*(f/b),this._clip=[(c-b)/2,b])}T(this.__container,"clip",a)},_getAvailExtent:function(){var a=this.extent,b=this._clip;if(b){if(!a._clip){var c=new G(a);c.width=b[1];c.x+=
b[0];a._clip=c.getExtent()}return a._clip}return a},_fixedPan:function(a,b){return this._extentUtil(null,{dx:a,dy:b})},panUp:function(){return this._fixedPan(0,-0.75*this.height)},panUpperRight:function(){return this._fixedPan(0.75*this.width,-0.75*this.height)},panRight:function(){return this._fixedPan(0.75*this.width,0)},panLowerRight:function(){return this._fixedPan(0.75*this.width,0.75*this.height)},panDown:function(){return this._fixedPan(0,0.75*this.height)},panLowerLeft:function(){return this._fixedPan(-0.75*
this.width,0.75*this.height)},panLeft:function(){return this._fixedPan(-0.75*this.width,0)},panUpperLeft:function(){return this._fixedPan(-0.75*this.width,-0.75*this.height)},enableSnapping:function(a){a=a||{};if("esri.SnappingManager"===a.declaredClass)this.snappingManager=a;else{var b=aa++,c=this;this._rids&&this._rids.push(b);l(["./SnappingManager"],function(f){var m=c._rids?d.indexOf(c._rids,b):-1;-1!==m&&(c._rids.splice(m,1),c.snappingManager=new f(e.mixin({map:c},a)))})}return this.snappingManager},
disableSnapping:function(){this.snappingManager&&this.snappingManager.destroy();this.snappingManager=null},_createLabelLayer:function(){function a(){b._labels.removeAllFeatureLayers();d.forEach(b.graphicsLayerIds,function(a){a=b.getLayer(a);"function"===typeof a.applyEdits&&b._labels.addFeatureLayer(a)})}var b=this;!this._labels&&(U&&this.loaded)&&(this._labels=new U({id:"_internal_LabelLayer"}),this._labels._setMap(this,this._gc._surface),a(),this.on("layers-reordered",a))}});u("extend-esri")&&(y._CoreMap=
q);return q})},"dojo/_base/unload":function(){define(["./kernel","./lang","../on"],function(l,n,k){var q=window,h={addOnWindowUnload:function(g,e){l.windowUnloaded||k(q,"unload",l.windowUnloaded=function(){});k(q,"unload",n.hitch(g,e))},addOnUnload:function(g,e){k(q,"beforeunload",n.hitch(g,e))}};l.addOnWindowUnload=h.addOnWindowUnload;l.addOnUnload=h.addOnUnload;return h})},"dojox/gfx/matrix":function(){define(["./_base","dojo/_base/lang"],function(l,n){var k=l.matrix={},q={};k._degToRad=function(h){return q[h]||
(q[h]=Math.PI*h/180)};k._radToDeg=function(h){return 180*(h/Math.PI)};k.Matrix2D=function(h){if(h)if("number"==typeof h)this.xx=this.yy=h;else if(h instanceof Array){if(0<h.length){for(var g=k.normalize(h[0]),e=1;e<h.length;++e){var d=g,b=k.normalize(h[e]),g=new k.Matrix2D;g.xx=d.xx*b.xx+d.xy*b.yx;g.xy=d.xx*b.xy+d.xy*b.yy;g.yx=d.yx*b.xx+d.yy*b.yx;g.yy=d.yx*b.xy+d.yy*b.yy;g.dx=d.xx*b.dx+d.xy*b.dy+d.dx;g.dy=d.yx*b.dx+d.yy*b.dy+d.dy}n.mixin(this,g)}}else n.mixin(this,h)};n.extend(k.Matrix2D,{xx:1,xy:0,
yx:0,yy:1,dx:0,dy:0});n.mixin(k,{identity:new k.Matrix2D,flipX:new k.Matrix2D({xx:-1}),flipY:new k.Matrix2D({yy:-1}),flipXY:new k.Matrix2D({xx:-1,yy:-1}),translate:function(h,g){return 1<arguments.length?new k.Matrix2D({dx:h,dy:g}):new k.Matrix2D({dx:h.x,dy:h.y})},scale:function(h,g){return 1<arguments.length?new k.Matrix2D({xx:h,yy:g}):"number"==typeof h?new k.Matrix2D({xx:h,yy:h}):new k.Matrix2D({xx:h.x,yy:h.y})},rotate:function(h){var g=Math.cos(h);h=Math.sin(h);return new k.Matrix2D({xx:g,xy:-h,
yx:h,yy:g})},rotateg:function(h){return k.rotate(k._degToRad(h))},skewX:function(h){return new k.Matrix2D({xy:Math.tan(h)})},skewXg:function(h){return k.skewX(k._degToRad(h))},skewY:function(h){return new k.Matrix2D({yx:Math.tan(h)})},skewYg:function(h){return k.skewY(k._degToRad(h))},reflect:function(h,g){1==arguments.length&&(g=h.y,h=h.x);var e=h*h,d=g*g,b=e+d,a=2*h*g/b;return new k.Matrix2D({xx:2*e/b-1,xy:a,yx:a,yy:2*d/b-1})},project:function(h,g){1==arguments.length&&(g=h.y,h=h.x);var e=h*h,d=
g*g,b=e+d,a=h*g/b;return new k.Matrix2D({xx:e/b,xy:a,yx:a,yy:d/b})},normalize:function(h){return h instanceof k.Matrix2D?h:new k.Matrix2D(h)},isIdentity:function(h){return 1==h.xx&&0==h.xy&&0==h.yx&&1==h.yy&&0==h.dx&&0==h.dy},clone:function(h){var g=new k.Matrix2D,e;for(e in h)"number"==typeof h[e]&&("number"==typeof g[e]&&g[e]!=h[e])&&(g[e]=h[e]);return g},invert:function(h){h=k.normalize(h);var g=h.xx*h.yy-h.xy*h.yx;return h=new k.Matrix2D({xx:h.yy/g,xy:-h.xy/g,yx:-h.yx/g,yy:h.xx/g,dx:(h.xy*h.dy-
h.yy*h.dx)/g,dy:(h.yx*h.dx-h.xx*h.dy)/g})},_multiplyPoint:function(h,g,e){return{x:h.xx*g+h.xy*e+h.dx,y:h.yx*g+h.yy*e+h.dy}},multiplyPoint:function(h,g,e){h=k.normalize(h);return"number"==typeof g&&"number"==typeof e?k._multiplyPoint(h,g,e):k._multiplyPoint(h,g.x,g.y)},multiplyRectangle:function(h,g){var e=k.normalize(h);g=g||{x:0,y:0,width:0,height:0};if(k.isIdentity(e))return{x:g.x,y:g.y,width:g.width,height:g.height};var d=k.multiplyPoint(e,g.x,g.y),b=k.multiplyPoint(e,g.x,g.y+g.height),a=k.multiplyPoint(e,
g.x+g.width,g.y),c=k.multiplyPoint(e,g.x+g.width,g.y+g.height),e=Math.min(d.x,b.x,a.x,c.x),f=Math.min(d.y,b.y,a.y,c.y),m=Math.max(d.x,b.x,a.x,c.x),d=Math.max(d.y,b.y,a.y,c.y);return{x:e,y:f,width:m-e,height:d-f}},multiply:function(h){for(var g=k.normalize(h),e=1;e<arguments.length;++e){var d=g,b=k.normalize(arguments[e]),g=new k.Matrix2D;g.xx=d.xx*b.xx+d.xy*b.yx;g.xy=d.xx*b.xy+d.xy*b.yy;g.yx=d.yx*b.xx+d.yy*b.yx;g.yy=d.yx*b.xy+d.yy*b.yy;g.dx=d.xx*b.dx+d.xy*b.dy+d.dx;g.dy=d.yx*b.dx+d.yy*b.dy+d.dy}return g},
_sandwich:function(h,g,e){return k.multiply(k.translate(g,e),h,k.translate(-g,-e))},scaleAt:function(h,g,e,d){switch(arguments.length){case 4:return k._sandwich(k.scale(h,g),e,d);case 3:return"number"==typeof e?k._sandwich(k.scale(h),g,e):k._sandwich(k.scale(h,g),e.x,e.y)}return k._sandwich(k.scale(h),g.x,g.y)},rotateAt:function(h,g,e){return 2<arguments.length?k._sandwich(k.rotate(h),g,e):k._sandwich(k.rotate(h),g.x,g.y)},rotategAt:function(h,g,e){return 2<arguments.length?k._sandwich(k.rotateg(h),
g,e):k._sandwich(k.rotateg(h),g.x,g.y)},skewXAt:function(h,g,e){return 2<arguments.length?k._sandwich(k.skewX(h),g,e):k._sandwich(k.skewX(h),g.x,g.y)},skewXgAt:function(h,g,e){return 2<arguments.length?k._sandwich(k.skewXg(h),g,e):k._sandwich(k.skewXg(h),g.x,g.y)},skewYAt:function(h,g,e){return 2<arguments.length?k._sandwich(k.skewY(h),g,e):k._sandwich(k.skewY(h),g.x,g.y)},skewYgAt:function(h,g,e){return 2<arguments.length?k._sandwich(k.skewYg(h),g,e):k._sandwich(k.skewYg(h),g.x,g.y)}});l.Matrix2D=
k.Matrix2D;return k})},"dojox/gfx/_base":function(){define("dojo/_base/kernel dojo/_base/lang dojo/_base/Color dojo/_base/sniff dojo/_base/window dojo/_base/array dojo/dom dojo/dom-construct dojo/dom-geometry".split(" "),function(l,n,k,q,h,g,e,d,b){var a=n.getObject("dojox.gfx",!0),c=a._base={};a._hasClass=function(a,b){var c=a.getAttribute("className");return c&&0<=(" "+c+" ").indexOf(" "+b+" ")};a._addClass=function(a,b){var c=a.getAttribute("className")||"";if(!c||0>(" "+c+" ").indexOf(" "+b+" "))a.setAttribute("className",
c+(c?" ":"")+b)};a._removeClass=function(a,b){var c=a.getAttribute("className");c&&a.setAttribute("className",c.replace(RegExp("(^|\\s+)"+b+"(\\s+|$)"),"$1$2"))};c._getFontMeasurements=function(){var a={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,small:0,medium:0,large:0,"x-large":0,"xx-large":0},b,c;q("ie")&&(c=h.doc.documentElement.style.fontSize||"",c||(h.doc.documentElement.style.fontSize="100%"));var f=d.create("div",{style:{position:"absolute",left:"0",top:"-100px",width:"30px",
height:"1000em",borderWidth:"0",margin:"0",padding:"0",outline:"none",lineHeight:"1",overflow:"hidden"}},h.body());for(b in a)f.style.fontSize=b,a[b]=16*Math.round(12*f.offsetHeight/16)/12/1E3;q("ie")&&(h.doc.documentElement.style.fontSize=c);h.body().removeChild(f);return a};var f=null;c._getCachedFontMeasurements=function(a){if(a||!f)f=c._getFontMeasurements();return f};var m=null,s={};c._getTextBox=function(a,c,f){var e,g,t=arguments.length,k;m||(m=d.create("div",{style:{position:"absolute",top:"-10000px",
left:"0",visibility:"hidden"}},h.body()));e=m;e.className="";g=e.style;g.borderWidth="0";g.margin="0";g.padding="0";g.outline="0";if(1<t&&c)for(k in c)k in s||(g[k]=c[k]);2<t&&f&&(e.className=f);e.innerHTML=a;e.getBoundingClientRect?(g=e.getBoundingClientRect(),g={l:g.left,t:g.top,w:g.width||g.right-g.left,h:g.height||g.bottom-g.top}):g=b.getMarginBox(e);e.innerHTML="";return g};c._computeTextLocation=function(a,b,c,f){var m={};switch(a.align){case "end":m.x=a.x-b;break;case "middle":m.x=a.x-b/2;
break;default:m.x=a.x}m.y=a.y-c*(f?0.75:1);return m};c._computeTextBoundingBox=function(b){if(!a._base._isRendered(b))return{x:0,y:0,width:0,height:0};var f;f=b.getShape();var m=b.getFont()||a.defaultFont;b=b.getTextWidth();m=a.normalizedLength(m.size);f=c._computeTextLocation(f,b,m,!0);return{x:f.x,y:f.y,width:b,height:m}};c._isRendered=function(a){for(a=a.parent;a&&a.getParent;)a=a.parent;return null!==a};var t=0;c._getUniqueId=function(){var a;do a=l._scopeName+"xUnique"+ ++t;while(e.byId(a));
return a};c._fixMsTouchAction=function(a){a=a.rawNode;"undefined"!=typeof a.style.msTouchAction&&(a.style.msTouchAction="none")};n.mixin(a,{defaultPath:{type:"path",path:""},defaultPolyline:{type:"polyline",points:[]},defaultRect:{type:"rect",x:0,y:0,width:100,height:100,r:0},defaultEllipse:{type:"ellipse",cx:0,cy:0,rx:200,ry:100},defaultCircle:{type:"circle",cx:0,cy:0,r:100},defaultLine:{type:"line",x1:0,y1:0,x2:100,y2:100},defaultImage:{type:"image",x:0,y:0,width:0,height:0,src:""},defaultText:{type:"text",
x:0,y:0,text:"",align:"start",decoration:"none",rotated:!1,kerning:!0},defaultTextPath:{type:"textpath",text:"",align:"start",decoration:"none",rotated:!1,kerning:!0},defaultStroke:{type:"stroke",color:"black",style:"solid",width:1,cap:"butt",join:4},defaultLinearGradient:{type:"linear",x1:0,y1:0,x2:100,y2:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultRadialGradient:{type:"radial",cx:0,cy:0,r:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultPattern:{type:"pattern",
x:0,y:0,width:0,height:0,src:""},defaultFont:{type:"font",style:"normal",variant:"normal",weight:"normal",size:"10pt",family:"serif"},getDefault:function(){var b={};return function(c){var f=b[c];if(f)return new f;f=b[c]=new Function;f.prototype=a["default"+c];return new f}}(),normalizeColor:function(a){return a instanceof k?a:new k(a)},normalizeParameters:function(a,b){var c;if(b){var f={};for(c in a)c in b&&!(c in f)&&(a[c]=b[c])}return a},makeParameters:function(a,b){var c=null;if(!b)return n.delegate(a);
var f={};for(c in a)c in f||(f[c]=n.clone(c in b?b[c]:a[c]));return f},formatNumber:function(a,b){var c=a.toString();if(0<=c.indexOf("e"))c=a.toFixed(4);else{var f=c.indexOf(".");0<=f&&5<c.length-f&&(c=a.toFixed(4))}return 0>a?c:b?" "+c:c},makeFontString:function(a){return a.style+" "+a.variant+" "+a.weight+" "+a.size+" "+a.family},splitFontString:function(b){var c=a.getDefault("Font");b=b.split(/\s+/);if(!(5>b.length)){c.style=b[0];c.variant=b[1];c.weight=b[2];var f=b[3].indexOf("/");c.size=0>f?
b[3]:b[3].substring(0,f);var m=4;0>f&&("/"==b[4]?m=6:"/"==b[4].charAt(0)&&(m=5));m<b.length&&(c.family=b.slice(m).join(" "))}return c},cm_in_pt:72/2.54,mm_in_pt:7.2/2.54,px_in_pt:function(){return a._base._getCachedFontMeasurements()["12pt"]/12},pt2px:function(b){return b*a.px_in_pt()},px2pt:function(b){return b/a.px_in_pt()},normalizedLength:function(b){if(0===b.length)return 0;if(2<b.length){var c=a.px_in_pt(),f=parseFloat(b);switch(b.slice(-2)){case "px":return f;case "pt":return f*c;case "in":return 72*
f*c;case "pc":return 12*f*c;case "mm":return f*a.mm_in_pt*c;case "cm":return f*a.cm_in_pt*c}}return parseFloat(b)},pathVmlRegExp:/([A-Za-z]+)|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,pathSvgRegExp:/([A-DF-Za-df-z])|([-+]?\d*[.]?\d+(?:[eE][-+]?\d+)?)/g,equalSources:function(a,b){return a&&b&&a===b},switchTo:function(b){var c="string"==typeof b?a[b]:b;c&&(g.forEach("Group Rect Ellipse Circle Line Polyline Image Text Path TextPath EsriPath Surface createSurface fixTarget".split(" "),function(b){a[b]=
c[b]}),"string"==typeof b?a.renderer=b:g.some(["svg","vml","canvas","canvasWithEvents","silverlight"],function(b){return a.renderer=a[b]&&a[b].Surface===a.Surface?b:null}))}});return a})},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(l,n,k,q){var h=l.Color=function(g){g&&this.setColor(g)};h.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],
lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:q.transparentColor||[0,0,0,0]};n.extend(h,{r:255,g:255,b:255,a:1,_set:function(g,e,d,b){this.r=g;this.g=e;this.b=d;this.a=b},setColor:function(g){n.isString(g)?h.fromString(g,this):n.isArray(g)?h.fromArray(g,this):(this._set(g.r,g.g,g.b,g.a),g instanceof h||this.sanitize());return this},sanitize:function(){return this},toRgb:function(){return[this.r,this.g,this.b]},toRgba:function(){return[this.r,
this.g,this.b,this.a]},toHex:function(){return"#"+k.map(["r","g","b"],function(g){g=this[g].toString(16);return 2>g.length?"0"+g:g},this).join("")},toCss:function(g){var e=this.r+", "+this.g+", "+this.b;return(g?"rgba("+e+", "+this.a:"rgb("+e)+")"},toString:function(){return this.toCss(!0)}});h.blendColors=l.blendColors=function(g,e,d,b){var a=b||new h;k.forEach(["r","g","b","a"],function(b){a[b]=g[b]+(e[b]-g[b])*d;"a"!=b&&(a[b]=Math.round(a[b]))});return a.sanitize()};h.fromRgb=l.colorFromRgb=function(g,
e){var d=g.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return d&&h.fromArray(d[1].split(/\s*,\s*/),e)};h.fromHex=l.colorFromHex=function(g,e){var d=e||new h,b=4==g.length?4:8,a=(1<<b)-1;g=Number("0x"+g.substr(1));if(isNaN(g))return null;k.forEach(["b","g","r"],function(c){var f=g&a;g>>=b;d[c]=4==b?17*f:f});d.a=1;return d};h.fromArray=l.colorFromArray=function(g,e){var d=e||new h;d._set(Number(g[0]),Number(g[1]),Number(g[2]),Number(g[3]));isNaN(d.a)&&(d.a=1);return d.sanitize()};h.fromString=l.colorFromString=
function(g,e){var d=h.named[g];return d&&h.fromArray(d,e)||h.fromRgb(g,e)||h.fromHex(g,e)};return h})},"esri/Evented":function(){define("dojo/_base/declare dojo/_base/lang dojo/aspect dojo/Evented dojo/has ./kernel".split(" "),function(l,n,k,q,h,g){l=l([q],{declaredClass:"esri.Evented",registerConnectEvents:function(){var e=this.constructor,d=this.constructor._meta.parents,b=[{}],a={},c,f,m=function(a,b){n.isArray(a)||(a=[a]);for(var c=0;c<a.length;c++){var f=a[c];f._meta&&f._meta.parents&&m(f._meta.parents,
b);f.prototype._eventMap&&b.push(n.mixin({},f.prototype._eventMap))}return b};if(!e._onMap){m(d,b);b.push(this._eventMap);d=n.mixin.apply(this,b);for(c in this)/^on\w/.test(c)&&n.isFunction(this[c])&&(b=this._hyphenLower(c).toLowerCase(),d[b]||(a[b]={method:c}));for(f in d)c=this._onCamelCase(f),a[f]={method:c,argKeys:d[f]};e._onMap=a;return e._onMap}},on:function(e,d){if(-1<e.indexOf(",")){for(var b=e.split(/\s*,\s*/),a=b.length,c=[];a--;)c.push(this.on(b[a],d));c.remove=function(){for(var a=0;a<
c.length;a++)c[a].remove()};return c}var b=this.constructor._onMap||this.registerConnectEvents(),a="string"==typeof e&&e.toLowerCase(),f=this._onCamelCase(a),m=b&&b[a];return(f=m&&m.method||this[f]&&n.isFunction(this[f])&&f)?m&&n.isArray(m.argKeys)?(b=this._onArr2Obj(d,b[a].argKeys),k.after(this,f,b,!0)):k.after(this,f,function(a){a=a||{};a.target||(a.target=this);d.call(this,a)},!0):this.inherited(arguments)},emit:function(e,d){var b,a,c,f,m=e.toLowerCase();f=this._onCamelCase(e);var g=this.constructor._onMap||
this.registerConnectEvents();f=(c=g&&g[m]&&g[m].method||n.isFunction(this[f])&&f)&&this[c];c&&(g&&g[m])&&this._onObj2Arr(function(){a=Array.prototype.slice.call(arguments)},g[m].argKeys)(d);d=d||{};d.target||(d.target=this);f&&(b=a&&a.length?a:[d],b=f.apply(this,b));this.inherited(arguments,[e,d]);return b},_onObj2Arr:function(e,d){if(d){var b=this;return function(a){var c,f=[],m=d.length;for(c=0;c<m;c++)f[c]=a[d[c]];e.apply(b,f)}}return e},_onArr2Obj:function(e,d){if(d){var b=this;return function(){var a,
c={},f=arguments.length;for(a=0;a<f;a++)c[d[a]]=arguments[a];c.target||(c.target=b);e.call(b,c)}}return e},_hyphenLower:function(e){return e.replace(/^on/,"").replace(/[A-Z](?=[a-z])/g,function(d,b){return(b?"-":"")+d.toLowerCase()})},_onCamelCase:function(e){return"on"+e.substr(0,1).toUpperCase()+e.substr(1).replace(/\-([a-z])/g,function(d,b){return b.toUpperCase()})}});h("extend-esri")&&(g.Evented=l);return l})},"esri/fx":function(){define("dojo/_base/connect dojo/_base/fx dojo/_base/lang dojo/dom dojo/dom-geometry dojo/dom-style dojo/fx dojo/has ./kernel".split(" "),
function(l,n,k,q,h,g,e,d,b){var a={animateRange:function(a){var b=a.range;return new n.Animation(k.mixin({curve:new n._Line(b.start,b.end)},a))},resize:function(a){var b=a.node=q.byId(a.node),m=a.start,d=a.end;m||(m=h.getMarginBox(b),b=h.getPadBorderExtents(b),m=a.start={left:m.l+b.l,top:m.t+b.t,width:m.w-b.w,height:m.h-b.h});d||(d=a.anchor?a.anchor:{x:m.left,y:m.top},b=a.size,d=a.end={left:m.left-(b.width-m.width)*(d.x-m.left)/m.width,top:m.top-(b.height-m.height)*(d.y-m.top)/m.height,width:b.width,
height:b.height});return n.animateProperty(k.mixin({properties:{left:{start:m.left,end:d.left},top:{start:m.top,end:d.top},width:{start:m.width,end:d.width},height:{start:m.height,end:d.height}}},a))},slideTo:function(a){var b=a.node=q.byId(a.node),m=g.getComputedStyle,d=null,e=null,r=function(){return function(){var a="absolute"==b.style.position?"absolute":"relative";d="absolute"==a?b.offsetTop:parseInt(m(b).top)||0;e="absolute"==a?b.offsetLeft:parseInt(m(b).left)||0;"absolute"!=a&&"relative"!=
a&&(a=h.position(b,!0),d=a.y,e=a.x,b.style.position="absolute",b.style.top=d+"px",b.style.left=e+"px")}}();r();a=n.animateProperty(k.mixin({properties:{top:{start:d,end:a.top||0},left:{start:e,end:a.left||0}}},a));l.connect(a,"beforeBegin",a,r);return a},flash:function(a){a=k.mixin({end:"#f00",duration:500,count:1},a);a.duration/=2*a.count;var b=q.byId(a.node),m=a.start;m||(m=g.getComputedStyle(b).backgroundColor);var d=a.end,t=[],r=a.count,b={node:b,duration:a.duration};for(a=0;a<r;a++)t.push(n.animateProperty(k.mixin({properties:{backgroundColor:{start:m,
end:d}}},b))),t.push(n.animateProperty(k.mixin({properties:{backgroundColor:{start:d,end:m}}},b)));return e.chain(t)}};d("extend-esri")&&k.mixin(k.getObject("fx",!0,b),a);return a})},"dojo/_base/fx":function(){define("./kernel ./config ./lang ../Evented ./Color ../aspect ../sniff ../dom ../dom-style".split(" "),function(l,n,k,q,h,g,e,d,b){var a=k.mixin,c={},f=c._Line=function(a,b){this.start=a;this.end=b};f.prototype.getValue=function(a){return(this.end-this.start)*a+this.start};var m=c.Animation=
function(b){a(this,b);k.isArray(this.curve)&&(this.curve=new f(this.curve[0],this.curve[1]))};m.prototype=new q;k.extend(m,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var a=this._percent,b=this.easing;return b?b(a):a},_fire:function(a,b){var c=b||[];if(this[a])if(n.debugAtAllCosts)this[a].apply(this,c);else try{this[a].apply(this,c)}catch(f){console.error("exception in animation handler for:",a),console.error(f)}return this},play:function(a,b){this._delayTimer&&
this._clearTimer();if(b)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);var c=a||this.delay,f=k.hitch(this,"_play",b);if(0<c)return this._delayTimer=setTimeout(f,c),this;f();return this},_play:function(a){this._delayTimer&&this._clearTimer();this._startTime=(new Date).valueOf();this._paused&&(this._startTime-=this.duration*this._percent);this._active=!0;this._paused=!1;a=this.curve.getValue(this._getStep());
this._percent||(this._startRepeatCount||(this._startRepeatCount=this.repeat),this._fire("onBegin",[a]));this._fire("onPlay",[a]);this._cycle();return this},pause:function(){this._delayTimer&&this._clearTimer();this._stopTimer();if(!this._active)return this;this._paused=!0;this._fire("onPause",[this.curve.getValue(this._getStep())]);return this},gotoPercent:function(a,b){this._stopTimer();this._active=this._paused=!0;this._percent=a;b&&this.play();return this},stop:function(a){this._delayTimer&&this._clearTimer();
if(!this._timer)return this;this._stopTimer();a&&(this._percent=1);this._fire("onStop",[this.curve.getValue(this._getStep())]);this._active=this._paused=!1;return this},destroy:function(){this.stop()},status:function(){return this._active?this._paused?"paused":"playing":"stopped"},_cycle:function(){if(this._active){var a=(new Date).valueOf(),a=0===this.duration?1:(a-this._startTime)/this.duration;1<=a&&(a=1);this._percent=a;this.easing&&(a=this.easing(a));this._fire("onAnimate",[this.curve.getValue(a)]);
1>this._percent?this._startTimer():(this._active=!1,0<this.repeat?(this.repeat--,this.play(null,!0)):-1==this.repeat?this.play(null,!0):this._startRepeatCount&&(this.repeat=this._startRepeatCount,this._startRepeatCount=0),this._percent=0,this._fire("onEnd",[this.node]),!this.repeat&&this._stopTimer())}return this},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer}});var s=0,t=null,r={run:function(){}};k.extend(m,{_startTimer:function(){this._timer||(this._timer=g.after(r,
"run",k.hitch(this,"_cycle"),!0),s++);t||(t=setInterval(k.hitch(r,"run"),this.rate))},_stopTimer:function(){this._timer&&(this._timer.remove(),this._timer=null,s--);0>=s&&(clearInterval(t),t=null,s=0)}});var u=e("ie")?function(a){var c=a.style;!c.width.length&&"auto"==b.get(a,"width")&&(c.width="auto")}:function(){};c._fade=function(f){f.node=d.byId(f.node);var m=a({properties:{}},f);f=m.properties.opacity={};f.start=!("start"in m)?function(){return+b.get(m.node,"opacity")||0}:m.start;f.end=m.end;
f=c.animateProperty(m);g.after(f,"beforeBegin",k.partial(u,m.node),!0);return f};c.fadeIn=function(b){return c._fade(a({end:1},b))};c.fadeOut=function(b){return c._fade(a({end:0},b))};c._defaultEasing=function(a){return 0.5+Math.sin((a+1.5)*Math.PI)/2};var v=function(a){this._properties=a;for(var b in a){var c=a[b];c.start instanceof h&&(c.tempColor=new h)}};v.prototype.getValue=function(a){var b={},c;for(c in this._properties){var f=this._properties[c],m=f.start;m instanceof h?b[c]=h.blendColors(m,
f.end,a,f.tempColor).toCss():k.isArray(m)||(b[c]=(f.end-m)*a+m+("opacity"!=c?f.units||"px":0))}return b};c.animateProperty=function(c){var f=c.node=d.byId(c.node);c.easing||(c.easing=l._defaultEasing);c=new m(c);g.after(c,"beforeBegin",k.hitch(c,function(){var c={},m;for(m in this.properties){if("width"==m||"height"==m)this.node.display="block";var d=this.properties[m];k.isFunction(d)&&(d=d(f));d=c[m]=a({},k.isObject(d)?d:{end:d});k.isFunction(d.start)&&(d.start=d.start(f));k.isFunction(d.end)&&(d.end=
d.end(f));var e=0<=m.toLowerCase().indexOf("color"),g=function(a,c){var f={height:a.offsetHeight,width:a.offsetWidth}[c];if(void 0!==f)return f;f=b.get(a,c);return"opacity"==c?+f:e?f:parseFloat(f)};"end"in d?"start"in d||(d.start=g(f,m)):d.end=g(f,m);e?(d.start=new h(d.start),d.end=new h(d.end)):d.start="opacity"==m?+d.start:parseFloat(d.start)}this.curve=new v(c)}),!0);g.after(c,"onAnimate",k.hitch(b,"set",c.node),!0);return c};c.anim=function(a,b,f,d,e,g){return c.animateProperty({node:a,duration:f||
m.prototype.duration,properties:b,easing:d,onEnd:e}).play(g||0)};a(l,c);l._Animation=m;return c})},"dojo/fx":function(){define("./_base/lang ./Evented ./_base/kernel ./_base/array ./aspect ./_base/fx ./dom ./dom-style ./dom-geometry ./ready require".split(" "),function(l,n,k,q,h,g,e,d,b,a,c){k.isAsync||a(0,function(){c(["./fx/Toggler"])});k=k.fx={};a={_fire:function(a,b){this[a]&&this[a].apply(this,b||[]);return this}};var f=function(a){this._index=-1;this._animations=a||[];this._current=this._onAnimateCtx=
this._onEndCtx=null;this.duration=0;q.forEach(this._animations,function(a){this.duration+=a.duration;a.delay&&(this.duration+=a.delay)},this)};f.prototype=new n;l.extend(f,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){this._onAnimateCtx.remove();this._onEndCtx.remove();this._onAnimateCtx=this._onEndCtx=null;this._index+1==this._animations.length?this._fire("onEnd"):(this._current=this._animations[++this._index],this._onAnimateCtx=h.after(this._current,"onAnimate",l.hitch(this,
"_onAnimate"),!0),this._onEndCtx=h.after(this._current,"onEnd",l.hitch(this,"_onEnd"),!0),this._current.play(0,!0))},play:function(a,b){this._current||(this._current=this._animations[this._index=0]);if(!b&&"playing"==this._current.status())return this;var c=h.after(this._current,"beforeBegin",l.hitch(this,function(){this._fire("beforeBegin")}),!0),f=h.after(this._current,"onBegin",l.hitch(this,function(a){this._fire("onBegin",arguments)}),!0),m=h.after(this._current,"onPlay",l.hitch(this,function(a){this._fire("onPlay",
arguments);c.remove();f.remove();m.remove()}));this._onAnimateCtx&&this._onAnimateCtx.remove();this._onAnimateCtx=h.after(this._current,"onAnimate",l.hitch(this,"_onAnimate"),!0);this._onEndCtx&&this._onEndCtx.remove();this._onEndCtx=h.after(this._current,"onEnd",l.hitch(this,"_onEnd"),!0);this._current.play.apply(this._current,arguments);return this},pause:function(){if(this._current){var a=h.after(this._current,"onPause",l.hitch(this,function(b){this._fire("onPause",arguments);a.remove()}),!0);
this._current.pause()}return this},gotoPercent:function(a,b){this.pause();var c=this.duration*a;this._current=null;q.some(this._animations,function(a,b){if(c<=a.duration)return this._current=a,this._index=b,!0;c-=a.duration;return!1},this);this._current&&this._current.gotoPercent(c/this._current.duration);b&&this.play();return this},stop:function(a){if(this._current){if(a){for(;this._index+1<this._animations.length;++this._index)this._animations[this._index].stop(!0);this._current=this._animations[this._index]}var b=
h.after(this._current,"onStop",l.hitch(this,function(a){this._fire("onStop",arguments);b.remove()}),!0);this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this.stop();this._onAnimateCtx&&this._onAnimateCtx.remove();this._onEndCtx&&this._onEndCtx.remove()}});l.extend(f,a);k.chain=function(a){return new f(a)};var m=function(a){this._animations=a||[];this._connects=[];this.duration=this._finished=0;q.forEach(a,function(a){var b=
a.duration;a.delay&&(b+=a.delay);this.duration<b&&(this.duration=b);this._connects.push(h.after(a,"onEnd",l.hitch(this,"_onEnd"),!0))},this);this._pseudoAnimation=new g.Animation({curve:[0,1],duration:this.duration});var b=this;q.forEach("beforeBegin onBegin onPlay onAnimate onPause onStop onEnd".split(" "),function(a){b._connects.push(h.after(b._pseudoAnimation,a,function(){b._fire(a,arguments)},!0))})};l.extend(m,{_doAction:function(a,b){q.forEach(this._animations,function(c){c[a].apply(c,b)});
return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(a,b){var c=this._pseudoAnimation;c[a].apply(c,b)},play:function(a,b){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this},gotoPercent:function(a,b){var c=this.duration*a;q.forEach(this._animations,function(a){a.gotoPercent(a.duration<c?1:c/a.duration,b)});this._call("gotoPercent",
arguments);return this},stop:function(a){this._doAction("stop",arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){this.stop();q.forEach(this._connects,function(a){a.remove()})}});l.extend(m,a);k.combine=function(a){return new m(a)};k.wipeIn=function(a){var b=a.node=e.byId(a.node),c=b.style,f;a=g.animateProperty(l.mixin({properties:{height:{start:function(){f=c.overflow;c.overflow="hidden";if("hidden"==c.visibility||"none"==
c.display)return c.height="1px",c.display="",c.visibility="",1;var a=d.get(b,"height");return Math.max(a,1)},end:function(){return b.scrollHeight}}}},a));var m=function(){c.height="auto";c.overflow=f};h.after(a,"onStop",m,!0);h.after(a,"onEnd",m,!0);return a};k.wipeOut=function(a){var b=(a.node=e.byId(a.node)).style,c;a=g.animateProperty(l.mixin({properties:{height:{end:1}}},a));h.after(a,"beforeBegin",function(){c=b.overflow;b.overflow="hidden";b.display=""},!0);var f=function(){b.overflow=c;b.height=
"auto";b.display="none"};h.after(a,"onStop",f,!0);h.after(a,"onEnd",f,!0);return a};k.slideTo=function(a){var c=null,f=null,m=function(a){return function(){var m=d.getComputedStyle(a),e=m.position;c="absolute"==e?a.offsetTop:parseInt(m.top)||0;f="absolute"==e?a.offsetLeft:parseInt(m.left)||0;"absolute"!=e&&"relative"!=e&&(m=b.position(a,!0),c=m.y,f=m.x,a.style.position="absolute",a.style.top=c+"px",a.style.left=f+"px")}}(a.node=e.byId(a.node));m();a=g.animateProperty(l.mixin({properties:{top:a.top||
0,left:a.left||0}},a));h.after(a,"beforeBegin",m,!0);return a};return k})},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],function(l,n,k,q,h){var g=0,e=[],d=0;n=function(){g=1;l._postLoad=l.config.afterOnLoad=!0;b()};var b=function(){if(!d){for(d=1;g&&(!q||0==q._Q.length)&&(k.idle?k.idle():1)&&e.length;){var a=e.shift();try{a()}catch(b){if(b.info=b.message,k.signal)k.signal("error",b);else throw b;}}d=0}};k.on&&k.on("idle",b);q&&(q._onQEmpty=b);var a=
l.ready=l.addOnLoad=function(a,c,d){var g=h._toArray(arguments);"number"!=typeof a?(d=c,c=a,a=1E3):g.shift();d=d?h.hitch.apply(l,g):function(){c()};d.priority=a;for(g=0;g<e.length&&a>=e[g].priority;g++);e.splice(g,0,d);b()},c=l.config.addOnLoad;if(c)a[h.isArray(c)?"apply":"call"](l,c);q?q(n):n();return a})},"dojo/domReady":function(){define(["./has"],function(l){function n(a){b.push(a);d&&k()}function k(){if(!a){for(a=!0;b.length;)try{b.shift()(h)}catch(c){}a=!1;n._onQEmpty()}}var q=function(){return this}(),
h=document,g={loaded:1,complete:1},e="string"!=typeof h.readyState,d=!!g[h.readyState],b=[],a;n.load=function(a,b,c){n(c)};n._Q=b;n._onQEmpty=function(){};e&&(h.readyState="loading");if(!d){var c=[],f=function(a){a=a||q.event;d||"readystatechange"==a.type&&!g[h.readyState]||(e&&(h.readyState="complete"),d=1,k())};l=function(a,c){a.addEventListener(c,f,!1);b.push(function(){a.removeEventListener(c,f,!1)})};l(h,"DOMContentLoaded");l(q,"load");"onreadystatechange"in h?l(h,"readystatechange"):e||c.push(function(){return g[h.readyState]});
if(c.length){var m=function(){if(!d){for(var a=c.length;a--;)if(c[a]()){f("poller");return}setTimeout(m,30)}};m()}}return n})},"esri/deferredUtils":function(){define(["dojo/_base/lang","dojo/has","./kernel"],function(l,n,k){var q={_dfdCanceller:function(h){h.canceled=!0;var g=h._pendingDfd;-1===h.fired&&(g&&-1===g.fired)&&g.cancel();h._pendingDfd=null},_fixDfd:function(h){var g=h.then;h.then=function(e,d,b){if(e){var a=e;e=function(b){return b&&b._argsArray?a.apply(null,b):a(b)}}return g.call(this,
e,d,b)};return h},_resDfd:function(h,g,e){var d=g.length;1===d?e?h.errback(g[0]):h.callback(g[0]):1<d?(g._argsArray=!0,h.callback(g)):h.callback()}};n("extend-esri")&&l.mixin(k,q);return q})},"esri/tileUtils":function(){define(["dojo/_base/array","dojo/has","./kernel","./geometry/Point","./geometry/Extent"],function(l,n,k,q,h){var g={_addFrameInfo:function(e,d){var b,a,c=2*d.origin[1],f=d.origin[0],m=e.origin.x,g=e.width,h;l.forEach(e.lods,function(d){b=Math.round(c/d.resolution);a=Math.ceil(b/g);
h=Math.floor((f-m)/(g*d.resolution));d._frameInfo||(d._frameInfo=[a,h,h+a-1,b])})},getContainingTileCoords:function(e,d,b){var a=e.origin;b=b.resolution;return{row:Math.floor((a.y-d.y)/(e.height*b)),col:Math.floor((d.x-a.x)/(e.width*b))}},getCandidateTileInfo:function(e,d,b){var a;a=e.width;for(var c=e.height,f=b.xmax-b.xmin,m=b.ymax-b.ymin,g=e.__tileInfo===d,t=g?e.getMinZoom():-1,g=g?e.getMaxZoom():-1,r=-1,u=d.lods,k=Math.abs,l,n,w,g=-1<g?g:u.length-1,t=-1<t?t:0;t<=g;t++)if(n=u[t])if(w=f>m?k(m-c*
n.resolution):k(f-a*n.resolution),0>r||w<=r)l=n,r=w;else break;a=l;l=a.resolution;c=(b.xmin+b.xmax)/2;f=(b.ymin+b.ymax)/2;m=e.width/2*l;l*=e.height/2;c=new h(c-m,f-l,c+m,f+l,b.spatialReference);b=new q(c.xmin,c.ymax,b.spatialReference);g=a.resolution;m=d.width;f=d.height;d=d.origin;e=e.__visibleDelta;l=Math.floor;u=m*g;k=f*g;g=l((d.y-b.y)/k);r=l((b.x-d.x)/u);t=d.y-g*k;d=l(Math.abs((b.x-(d.x+r*u))*m/u))+e.x;e=l(Math.abs((b.y-t)*f/k))+e.y;return{tile:{point:b,coords:{row:g,col:r},offsets:{x:d,y:e}},
lod:a,extent:c}},getTileExtent:function(e,d,b,a){var c=e.origin;d=e.lods[d].resolution;var f=e.width,m=e.height;return new h(a*d*f+c.x,c.y-(b+1)*d*m,(a+1)*d*f+c.x,c.y-b*d*m,e.spatialReference)}};n("extend-esri")&&(k.TileUtils=g);return g})},"esri/geometry/Point":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry".split(" "),function(l,n,k,q,h,g,e){function d(b,c){89.99999<c?c=89.99999:-89.99999>c&&(c=-89.99999);var f=c*m;return[b*m*a,a/
2*Math.log((1+Math.sin(f))/(1-Math.sin(f)))]}function b(b,m,d){b=b/a*f;if(d)return m=c/2-2*Math.atan(Math.exp(-1*m/a)),[b,m*f];d=b-360*Math.floor((b+180)/360);m=c/2-2*Math.atan(Math.exp(-1*m/a));return[d,m*f]}var a=6378137,c=3.141592653589793,f=57.29577951308232,m=0.017453292519943,s={type:"point",x:0,y:0};l=l(e,{declaredClass:"esri.geometry.Point",constructor:function(a,b,c){n.mixin(this,s);n.isArray(a)?(this.x=a[0],this.y=a[1],this.spatialReference=b):n.isObject(a)?(n.mixin(this,a),h.isDefined(this.latitude)&&
(this.y=this.latitude),h.isDefined(this.longitude)&&(this.x=this.longitude),this.spatialReference&&(this.spatialReference=new g(this.spatialReference))):(this.x=a,this.y=b,this.spatialReference=c);this.verifySR()},offset:function(a,b){return new this.constructor(this.x+a,this.y+b,this.spatialReference)},setX:function(a){this.x=a;return this},setY:function(a){this.y=a;return this},setLongitude:function(a){var b=this.spatialReference;b&&(b._isWebMercator()?this.x=d(a,this.y)[0]:4326===b.wkid&&(this.x=
a));return this},setLatitude:function(a){var b=this.spatialReference;b&&(b._isWebMercator()?this.y=d(this.x,a)[1]:4326===b.wkid&&(this.y=a));return this},getLongitude:function(){var a=this.spatialReference,c;a&&(a._isWebMercator()?c=b(this.x,this.y)[0]:4326===a.wkid&&(c=this.x));return c},getLatitude:function(){var a=this.spatialReference,c;a&&(a._isWebMercator()?c=b(this.x,this.y)[1]:4326===a.wkid&&(c=this.y));return c},update:function(a,b){this.x=a;this.y=b;return this},normalize:function(){var a=
this.x,b=this.spatialReference;if(b){var c=b._getInfo();if(c){var f=c.valid[0],m=c.valid[1],c=2*m;a>m?(f=Math.ceil(Math.abs(a-m)/c),a-=f*c):a<f&&(f=Math.ceil(Math.abs(a-f)/c),a+=f*c)}}return new this.constructor(a,this.y,b)},toJson:function(){var a={x:this.x,y:this.y},b=this.spatialReference;b&&(a.spatialReference=b.toJson());return a}});l.lngLatToXY=d;l.xyToLngLat=b;l.defaultProps=s;k("extend-esri")&&(n.setObject("geometry.Point",l,q),q.geometry.defaultPoint=s);return l})},"esri/SpatialReference":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ./kernel ./lang".split(" "),
function(l,n,k,q,h,g){var e=[-2.0037508342788905E7,2.0037508342788905E7],d=[-2.0037508342787E7,2.0037508342787E7];l=l(null,{declaredClass:"esri.SpatialReference",constructor:function(b){b&&(k.isObject(b)?k.mixin(this,b):k.isString(b)?this.wkt=b:this.wkid=b)},wkid:null,wkt:null,_info:{102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",${Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',
valid:e,origin:d,dx:1E-5},102100:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",${Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:e,origin:d,
dx:1E-5},3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",${Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:e,origin:d,dx:1E-5},3857:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",${Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',
valid:e,origin:d,dx:1E-5},4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",${Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",${Central_Meridian}],UNIT["Degrees",111319.491]]',
valid:[-180,180],origin:[-180,180],dx:1E-5}},_isWebMercator:function(){return-1!==n.indexOf([102113,102100,3857,3785],this.wkid)},_isWrappable:function(){return-1!==n.indexOf([102113,102100,3857,3785,4326],this.wkid)},_getInfo:function(){return this.wkid?this._info[this.wkid]:null},_canProject:function(b){var a=!1;b&&(a=this.isWebMercator()&&4326===b.wkid||b.isWebMercator()&&4326===this.wkid);return a},isWebMercator:function(){return this._isWebMercator()},equals:function(b){var a=!1;b&&(this===b&&
(a=!0),this.wkid||b.wkid?a=this.wkid===b.wkid||this.isWebMercator()&&b.isWebMercator()||this.wkid===b.latestWkid||b.wkid===this.latestWkid:this.wkt&&b.wkt&&(a=this.wkt.toUpperCase()===b.wkt.toUpperCase()));return a},toJson:function(){var b=null,a=g.isDefined;a(this.wkid)?b={wkid:this.wkid}:a(this.wkt)&&(b={wkt:this.wkt});b&&a(this.latestWkid)&&(b.latestWkid=this.latestWkid);return b}});q("extend-esri")&&(h.SpatialReference=l);return l})},"esri/geometry/Geometry":function(){define(["dojo/_base/declare",
"dojo/_base/lang","dojo/has","../kernel","../SpatialReference"],function(l,n,k,q,h){l=l(null,{declaredClass:"esri.geometry.Geometry",spatialReference:null,type:null,setSpatialReference:function(g){this.spatialReference=g;return this},verifySR:function(){this.spatialReference||this.setSpatialReference(new h(4326))},getExtent:function(){return null}});k("extend-esri")&&n.setObject("geometry.Geometry",l,q);return l})},"esri/geometry/Extent":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ./Point ./webMercatorUtils ./mathUtils".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c){var f={type:"extent",xmin:0,ymin:0,xmax:0,ymax:0},m=l(d,{declaredClass:"esri.geometry.Extent",constructor:function(a,b,c,m,d){k.mixin(this,f);k.isObject(a)?(k.mixin(this,a),this.spatialReference&&(this.spatialReference=new e(this.spatialReference))):this.update(a,b,c,m,d);this.verifySR()},getWidth:function(){return Math.abs(this.xmax-this.xmin)},getHeight:function(){return Math.abs(this.ymax-this.ymin)},getCenter:function(){return new b((this.xmin+this.xmax)/2,(this.ymin+
this.ymax)/2,this.spatialReference)},centerAt:function(a){var b=this.getCenter(),c=a.x-b.x;a=a.y-b.y;return new m(this.xmin+c,this.ymin+a,this.xmax+c,this.ymax+a,this.spatialReference)},update:function(a,b,c,f,m){this.xmin=a;this.ymin=b;this.xmax=c;this.ymax=f;this.spatialReference=m;return this},offset:function(a,b){return new m(this.xmin+a,this.ymin+b,this.xmax+a,this.ymax+b,this.spatialReference)},expand:function(a){var b=(1-a)/2;a=this.getWidth()*b;b*=this.getHeight();return new m(this.xmin+a,
this.ymin+b,this.xmax-a,this.ymax-b,this.spatialReference)},intersects:function(b){if(!b)return!1;var c=b.type,f=this.spatialReference,m=b.spatialReference;f&&(m&&!f.equals(m)&&f._canProject(m))&&(b=f.isWebMercator()?a.geographicToWebMercator(b):a.webMercatorToGeographic(b,!0));switch(c){case "point":return this.contains(b);case "multipoint":return this._intersectsMultipoint(b);case "extent":return this._intersectsExtent(b);case "polygon":return this._intersectsPolygon(b);case "polyline":return this._intersectsPolyline(b)}},
_intersectsMultipoint:function(a){var b=a.points.length,c;for(c=0;c<b;c++)if(this.contains(a.getPoint(c)))return!0;return!1},_intersectsExtent:function(a){var b,c,f,d,e=!1;this.xmin<=a.xmin?(b=a.xmin,this.xmax<b?e=!0:f=Math.min(this.xmax,a.xmax)-b):(b=this.xmin,a.xmax<b?e=!0:f=Math.min(this.xmax,a.xmax)-b);this.ymin<=a.ymin?(c=a.ymin,this.ymax<c?e=!0:d=Math.min(this.ymax,a.ymax)-c):(c=this.ymin,a.ymax<c?e=!0:d=Math.min(this.ymax,a.ymax)-c);return e?null:new m(b,c,b+f,c+d,this.spatialReference)},_intersectsPolygon:function(a){var c=
[this.xmin,this.ymax],f=[this.xmax,this.ymax],m=[this.xmin,this.ymin],d=[this.xmax,this.ymin],e=[c,f,m,d],c=[[m,c],[c,f],[f,d],[d,m]],m=a.rings,d=m.length,g,h=new b(0,0,this.spatialReference);g=e.length;for(f=0;f<g;f++)if(h.update(e[f][0],e[f][1]),a.contains(h))return!0;h.setSpatialReference(a.spatialReference);for(var k,l,f=0;f<d;f++)if(e=m[f],g=e.length){k=e[0];h.update(k[0],k[1]);if(this.contains(h))return!0;for(a=1;a<g;a++){l=e[a];h.update(l[0],l[1]);if(this.contains(h)||this._intersectsLine([k,
l],c))return!0;k=l}}return!1},_intersectsPolyline:function(a){var c=[[[this.xmin,this.ymin],[this.xmin,this.ymax]],[[this.xmin,this.ymax],[this.xmax,this.ymax]],[[this.xmax,this.ymax],[this.xmax,this.ymin]],[[this.xmax,this.ymin],[this.xmin,this.ymin]]],f,m=a.paths,d=m.length,e,g,h,k,l=new b(0,0,a.spatialReference);for(a=0;a<d;a++)if(e=m[a],g=e.length){h=e[0];l.update(h[0],h[1]);if(this.contains(l))return!0;for(f=1;f<g;f++){k=e[f];l.update(k[0],k[1]);if(this.contains(l)||this._intersectsLine([h,k],
c))return!0;h=k}}return!1},_intersectsLine:function(a,b){var f=c._getLineIntersection2,m,d=b.length;for(m=0;m<d;m++)if(f(a,b[m]))return!0;return!1},contains:function(a){if(!a)return!1;var c=a.type;if("point"===c){var f=this.spatialReference,m=a.spatialReference,c=a.x;a=a.y;f&&(m&&!f.equals(m)&&f._canProject(m))&&(a=f.isWebMercator()?b.lngLatToXY(c,a):b.xyToLngLat(c,a,!0),c=a[0],a=a[1]);return c>=this.xmin&&c<=this.xmax&&a>=this.ymin&&a<=this.ymax}return"extent"===c?this._containsExtent(a):!1},_containsExtent:function(a){var c=
a.xmin,f=a.ymin,m=a.xmax,d=a.ymax,e=a.spatialReference;a=new b(c,f,e);c=new b(c,d,e);d=new b(m,d,e);f=new b(m,f,e);return this.contains(a)&&this.contains(c)&&this.contains(d)&&this.contains(f)?!0:!1},union:function(a){return new m(Math.min(this.xmin,a.xmin),Math.min(this.ymin,a.ymin),Math.max(this.xmax,a.xmax),Math.max(this.ymax,a.ymax),this.spatialReference)},getExtent:function(){var a=this.spatialReference;return new m(this.xmin,this.ymin,this.xmax,this.ymax,a&&new e(a.toJson()))},_shiftCM:function(b){if(!this._shifted){var c=
new m(this.toJson()),f=c.spatialReference;if(b=b||f._getInfo()){var d=this._getCM(b);if(d){var h=f._isWebMercator()?a.webMercatorToGeographic(d):d;c.xmin-=d.x;c.xmax-=d.x;f._isWebMercator()||(h.x=this._normalizeX(h.x,b).x);c.setSpatialReference(new e(g.substitute({Central_Meridian:h.x},4326===f.wkid?b.altTemplate:b.wkTemplate)))}}this._shifted=c}return this._shifted},_getCM:function(a){var b,c=a.valid[0];a=a.valid[1];var f=this.xmin,m=this.xmax;if(!(f>=c&&f<=a)||!(m>=c&&m<=a))b=this.getCenter();return b},
_normalize:function(a,b,c){var f=new m(this.toJson()),d=f.spatialReference;if(d&&(c=c||d._getInfo())){var e=n.map(this._getParts(c),function(a){return a.extent});return 2<e.length?a?this._shiftCM(c):f.update(c.valid[0],f.ymin,c.valid[1],f.ymax,d):2===e.length?a?this._shiftCM(c):b?e:{rings:n.map(e,function(a){return[[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin]]}),spatialReference:d}:e[0]||f}return f},_getParts:function(a){if(!this._parts){var b=this.xmin,c=this.xmax,
f=this.ymin,d=this.ymax,e=this.spatialReference,g=this.getWidth(),h=b,k=c,l=0,n=0,q=[],C,F;a=a||e._getInfo();C=a.valid[0];F=a.valid[1];n=this._normalizeX(b,a);b=n.x;l=n.frameId;n=this._normalizeX(c,a);c=n.x;n=n.frameId;a=b===c&&0<g;if(g>2*F){g=new m(h<k?b:c,f,F,d,e);b=new m(C,f,h<k?c:b,d,e);F=new m(0,f,F,d,e);f=new m(C,f,0,d,e);e=[];C=[];g.contains(F)&&e.push(l);g.contains(f)&&C.push(l);b.contains(F)&&e.push(n);b.contains(f)&&C.push(n);for(d=l+1;d<n;d++)e.push(d),C.push(d);q.push({extent:g,frameIds:[l]},
{extent:b,frameIds:[n]},{extent:F,frameIds:e},{extent:f,frameIds:C})}else b>c||a?q.push({extent:new m(b,f,F,d,e),frameIds:[l]},{extent:new m(C,f,c,d,e),frameIds:[n]}):q.push({extent:new m(b,f,c,d,e),frameIds:[l]});this._parts=q}return this._parts},_normalizeX:function(a,b){var c=0,f=b.valid[0],m=b.valid[1],d=2*m;a>m?(c=Math.ceil(Math.abs(a-m)/d),a-=c*d):a<f&&(c=Math.ceil(Math.abs(a-f)/d),a+=c*d,c=-c);return{x:a,frameId:c}},toJson:function(){var a={xmin:this.xmin,ymin:this.ymin,xmax:this.xmax,ymax:this.ymax},
b=this.spatialReference;b&&(a.spatialReference=b.toJson());return a}});m.defaultProps=f;q("extend-esri")&&(k.setObject("geometry.Extent",m,h),h.geometry.defaultExtent=f);return m})},"esri/geometry/webMercatorUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/has ../kernel ../SpatialReference ./Point".split(" "),function(l,n,k,q,h,g){function e(a,b,f,m){if("point"===a.type){var d=b(a.x,a.y,m);return new a.constructor(d[0],d[1],new h(f))}if("extent"===a.type){var d=b(a.xmin,a.ymin,m),e=
b(a.xmax,a.ymax,m);return new a.constructor(d[0],d[1],e[0],e[1],new h(f))}if("polyline"===a.type||"polygon"===a.type){var d="polyline"===a.type,g=[],u;l.forEach(d?a.paths:a.rings,function(a){g.push(u=[]);l.forEach(a,function(a){u.push(b(a[0],a[1],m))})});return d?new a.constructor({paths:g,spatialReference:f}):new a.constructor({rings:g,spatialReference:f})}if("multipoint"===a.type){var k=[];l.forEach(a.points,function(a){k.push(b(a[0],a[1],m))});return new a.constructor({points:k,spatialReference:f})}}
function d(a,b){var f=a&&(null!=a.wkid?a:a.spatialReference),m=b&&(null!=b.wkid?b:b.spatialReference);return!f||!m?!1:m.equals(f)?!0:m._canProject(f)}var b={canProject:d,project:function(a,b){var f=a&&a.spatialReference,m=b&&(null!=b.wkid?b:b.spatialReference);f&&m?f.equals(m)?a=new a.constructor(a.toJson()):d(f,m)?m.isWebMercator()?a=e(a,g.lngLatToXY,{wkid:102100}):4326===m.wkid&&(a=e(a,g.xyToLngLat,{wkid:4326})):a=null:a=null;return a},lngLatToXY:g.lngLatToXY,xyToLngLat:g.xyToLngLat,geographicToWebMercator:function(a){return e(a,
g.lngLatToXY,{wkid:102100})},webMercatorToGeographic:function(a,b){return e(a,g.xyToLngLat,{wkid:4326},b)}};k("extend-esri")&&n.mixin(n.getObject("geometry",!0,q),b);return b})},"esri/geometry/mathUtils":function(){define(["dojo/_base/lang","dojo/has","../kernel","./Point"],function(l,n,k,q){function h(b,a,c){return b instanceof q?new q(b.x+c*(a.x-b.x),b.y+c*(a.y-b.y)):[b[0]+c*(a[0]-b[0]),b[1]+c*(a[1]-b[1])]}function g(b,a){return 1E-8>Math.abs(b-a)}function e(b,a,c,f){var m,d=g(b[0],a[0])?1E10:(b[1]-
a[1])/(b[0]-a[0]),e=g(c[0],f[0])?1E10:(c[1]-f[1])/(c[0]-f[0]),h=b[1]-d*b[0],u=c[1]-e*c[0];if(g(d,e)){if(g(h,u)){if(g(b[0],a[0]))if(Math.min(b[1],a[1])<Math.max(c[1],f[1])||Math.max(b[1],a[1])>Math.min(c[1],f[1]))b=(b[1]+a[1]+c[1]+f[1]-Math.min(b[1],a[1],c[1],f[1])-Math.max(b[1],a[1],c[1],f[1]))/2,m=(b-h)/d;else return null;else if(Math.min(b[0],a[0])<Math.max(c[0],f[0])||Math.max(b[0],a[0])>Math.min(c[0],f[0]))m=(b[0]+a[0]+c[0]+f[0]-Math.min(b[0],a[0],c[0],f[0])-Math.max(b[0],a[0],c[0],f[0]))/2,b=
d*m+h;else return null;return[m,b]}return null}g(d,1E10)?(m=b[0],b=e*m+u):g(e,1E10)?(m=c[0],b=d*m+h):(m=-(h-u)/(d-e),b=b[1]===a[1]?b[1]:c[1]===f[1]?c[1]:d*m+h);return[m,b]}var d={getLength:function(b,a){var c=a.x-b.x,f=a.y-b.y;return Math.sqrt(c*c+f*f)},_getLength:function(b,a){var c=a[0]-b[0],f=a[1]-b[1];return Math.sqrt(c*c+f*f)},getPointOnLine:h,getMidpoint:function(b,a){return h(b,a,0.5)},_equals:g,_getLineIntersection:e,getLineIntersection:function(b,a,c,f,m){(b=e([b.x,b.y],[a.x,a.y],[c.x,c.y],
[f.x,f.y]))&&(b=new q(b[0],b[1],m));return b},_getLineIntersection2:function(b,a){var c=b[0],f=b[1],m=a[0],d=a[1],e=c[0],c=c[1],g=f[0],f=f[1],h=m[0],k=m[1],m=d[0]-h,h=e-h,l=g-e,d=d[1]-k,k=c-k,n=f-c,w=d*l-m*n;if(0===w)return!1;m=(m*k-d*h)/w;h=(l*k-n*h)/w;return 0<=m&&1>=m&&0<=h&&1>=h?[e+m*(g-e),c+m*(f-c)]:!1},_pointLineDistance:function(b,a){var c=a[0],f=a[1],m=c[0],d=c[1],c=b[0],e=b[1],g=f[0]-m,h=f[1]-d,k=c-m,l=e-d,f=Math.sqrt,n=Math.pow,w=f(n(g,2)+n(h,2)),k=(k*g+l*h)/(w*w),d=d+k*h;return f(n(c-(m+
k*g),2)+n(e-d,2))}};n("extend-esri")&&l.mixin(l.getObject("geometry",!0,k),d);return d})},"esri/PluginTarget":function(){define("require dojo/aspect dojo/_base/array dojo/_base/lang dojo/Deferred dojo/when".split(" "),function(l,n,k,q,h,g){function e(){n.after(this.constructor._meta,"ctor",this._pluginsHandler,!0);this._plugins={}}e.prototype={addPlugin:function(d,b){var a=this,c=this._plugins,f=new h;try{l([d],function(m){d in c||(c[d]=m,g(m.add(a,b),function(){var b={id:m.declaredId||d.replace(/\//g,
".")};a.emit("plugin-add",b);f.resolve(b)},function(a){f.reject(a)}))})}catch(m){f.reject(m)}return f.promise},removePlugin:function(d){if(d in this._plugins){var b=this._plugins[d];b.remove(this);delete this._plugins[d];this.emit("plugin-remove",{id:b.declaredId||d.replace(/\//g,".")})}},_pluginsHandler:function(){var d=this;k.some(arguments,function(b){if(b&&b.plugins&&b.plugins instanceof Array){b=b.plugins;for(var a,c,f=0;f<b.length;f++)a=b[f],c=a instanceof Object?a.id:a,d.addPlugin(c,a.options);
return!0}})}};return e})},"esri/geometry/ScreenPoint":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","./Point"],function(l,n,k,q,h){l=l(h,{declaredClass:"esri.geometry.ScreenPoint",verifySR:function(){}});k("extend-esri")&&n.setObject("geometry.ScreenPoint",l,q);return l})},"esri/geometry/Rect":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ../SpatialReference ./Geometry ./Point ./Extent".split(" "),function(l,n,k,q,h,g,e,
d,b){function a(a){return new b(parseFloat(a.x),parseFloat(a.y)-parseFloat(a.height),parseFloat(a.x)+parseFloat(a.width),parseFloat(a.y),a.spatialReference)}var c=l(e,{declaredClass:"esri.geometry.Rect",constructor:function(a,b,c,d,e){n.mixin(this,q.defaultRect);n.isObject(a)&&"extent"===a.type&&(b=a.ymax,c=a.getWidth(),d=a.getHeight(),e=a.spatialReference,a=a.xmin);n.isObject(a)?(n.mixin(this,a),this.spatialReference&&(this.spatialReference=new g(this.spatialReference))):(this.x=a,this.y=b,this.width=
c,this.height=d,this.spatialReference=e);this.verifySR()},getCenter:function(){return new d(this.x+this.width/2,this.y+this.height/2,this.spatialReference)},offset:function(a,b){return new c(this.x+a,this.y+b,this.width,this.height,this.spatialReference)},intersects:function(a){return a.x+a.width<=this.x||a.y+a.height<=this.y||a.y>=this.y+this.height||a.x>=this.x+this.width?!1:!0},getExtent:function(){return a(this)},update:function(a,b,c,d,e){this.x=a;this.y=b;this.width=c;this.height=d;this.spatialReference=
e;return this}});k("extend-esri")&&(n.setObject("geometry.Rect",c,h),h.geometry._rectToExtent=a,h.geometry._extentToRect=function(a){return new c(a)});return c})},"esri/geometry/scaleUtils":function(){define("dojo/_base/lang dojo/has ../kernel ../config ../lang ../WKIDUnitConversion".split(" "),function(l,n,k,q,h,g){function e(f,m,d){return f&&m?f.getWidth()/m*(d||a)*b*c.screenDPI:0}function d(m,d,e,g,h){return m.expand(g*d/(((h?e:f.values[f[e]])||a)*b*c.screenDPI)/m.getWidth())}var b=39.37,a=20015077/
180,c=q.defaults,f=g,m={getUnitValue:function(a){var b,c,m;a&&("object"===typeof a?(b=a.wkid,c=a.wkt):"number"===typeof a?b=a:"string"===typeof a&&(c=a));b?m=f.values[f[b]]:c&&-1!==c.search(/^PROJCS/i)&&(a=/UNIT\[([^\]]+)\]\]$/i.exec(c))&&a[1]&&(m=parseFloat(a[1].split(",")[1]));return m},getScale:function(a,b,c){var f,d,g;1<arguments.length&&h.isDefined(b)&&!b.declaredClass?(f=a,d=b,b=null,g=m.getUnitValue(c)):(f=b||a.extent,d=a.width,g=m.getUnitValue(f&&f.spatialReference));return e(f,d,g)},getExtentForScale:function(a,
b,c){return d(c||a.extent,a.width,m.getUnitValue(a.spatialReference),b,!0)}};n("extend-esri")&&(l.mixin(l.getObject("geometry",!0,k),m),k.geometry._getScale=e,k.geometry._getExtentForScale=d);return m})},"esri/WKIDUnitConversion":function(){define(["dojo/has","./kernel"],function(l,n){var k={values:[1,0.3048,0.3048006096012192,0.3047972654,0.9143917962,0.201166195164,0.9143984146160287,0.3047994715386762,20.11676512155263,20.11678249437587,0.9143985307444408,0.91439523,0.3047997101815088,20.116756,
5E4,15E4],2E3:0,2001:0,2002:0,2003:0,2004:0,2005:0,2006:0,2007:0,2008:0,2009:0,2010:0,2011:0,2012:0,2013:0,2014:0,2015:0,2016:0,2017:0,2018:0,2019:0,2020:0,2021:0,2022:0,2023:0,2024:0,2025:0,2026:0,2027:0,2028:0,2029:0,2030:0,2031:0,2032:0,2033:0,2034:0,2035:0,2036:0,2037:0,2038:0,2039:0,2040:0,2041:0,2042:0,2043:0,2044:0,2045:0,2056:0,2057:0,2058:0,2059:0,2060:0,2061:0,2062:0,2063:0,2064:0,2065:0,2066:5,2067:0,2068:0,2069:0,2070:0,2071:0,2072:0,2073:0,2074:0,2075:0,2076:0,2077:0,2078:0,2079:0,2080:0,
2081:0,2082:0,2083:0,2084:0,2085:0,2086:0,2087:0,2088:0,2089:0,2090:0,2091:0,2092:0,2093:0,2094:0,2095:0,2096:0,2097:0,2098:0,2099:0,2100:0,2101:0,2102:0,2103:0,2104:0,2105:0,2106:0,2107:0,2108:0,2109:0,2110:0,2111:0,2112:0,2113:0,2114:0,2115:0,2116:0,2117:0,2118:0,2119:0,2120:0,2121:0,2122:0,2123:0,2124:0,2125:0,2126:0,2127:0,2128:0,2129:0,2130:0,2131:0,2132:0,2133:0,2134:0,2135:0,2136:12,2137:0,2138:0,2139:0,2140:0,2141:0,2142:0,2143:0,2144:0,2145:0,2146:0,2147:0,2148:0,2149:0,2150:0,2151:0,2152:0,
2153:0,2154:0,2155:2,2157:0,2158:0,2159:12,2160:12,2161:0,2162:0,2163:0,2164:0,2165:0,2166:0,2167:0,2168:0,2169:0,2170:0,2172:0,2173:0,2174:0,2175:0,2176:0,2177:0,2178:0,2179:0,2180:0,2181:0,2182:0,2183:0,2184:0,2185:0,2186:0,2187:0,2188:0,2189:0,2190:0,2191:0,2192:0,2193:0,2195:0,2196:0,2197:0,2198:0,2200:0,2201:0,2202:0,2203:0,2204:2,2205:0,2206:0,2207:0,2208:0,2209:0,2210:0,2211:0,2212:0,2213:0,2214:0,2215:0,2216:0,2217:0,2219:0,2220:0,2222:1,2223:1,2224:1,2225:2,2226:2,2227:2,2228:2,2229:2,2230:2,
2231:2,2232:2,2233:2,2234:2,2235:2,2236:2,2237:2,2238:2,2239:2,2240:2,2241:2,2242:2,2243:2,2244:2,2245:2,2246:2,2247:2,2248:2,2249:2,2250:2,2251:1,2252:1,2253:1,2254:2,2255:2,2256:1,2257:2,2258:2,2259:2,2260:2,2261:2,2262:2,2263:2,2264:2,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2274:2,2275:2,2276:2,2277:2,2278:2,2279:2,2280:1,2281:1,2282:1,2283:2,2284:2,2285:2,2286:2,2287:2,2288:2,2289:2,2290:0,2291:0,2292:0,2294:0,2295:0,2308:0,2309:0,2310:0,2311:0,2312:0,2313:0,2314:3,2315:0,
2316:0,2317:0,2318:0,2319:0,2320:0,2321:0,2322:0,2323:0,2324:0,2325:0,2326:0,2327:0,2328:0,2329:0,2330:0,2331:0,2332:0,2333:0,2334:0,2335:0,2336:0,2337:0,2338:0,2339:0,2340:0,2341:0,2342:0,2343:0,2344:0,2345:0,2346:0,2347:0,2348:0,2349:0,2350:0,2351:0,2352:0,2353:0,2354:0,2355:0,2356:0,2357:0,2358:0,2359:0,2360:0,2361:0,2362:0,2363:0,2364:0,2365:0,2366:0,2367:0,2368:0,2369:0,2370:0,2371:0,2372:0,2373:0,2374:0,2375:0,2376:0,2377:0,2378:0,2379:0,2380:0,2381:0,2382:0,2383:0,2384:0,2385:0,2386:0,2387:0,
2388:0,2389:0,2390:0,2391:0,2392:0,2393:0,2394:0,2395:0,2396:0,2397:0,2398:0,2399:0,2400:0,2401:0,2402:0,2403:0,2404:0,2405:0,2406:0,2407:0,2408:0,2409:0,2410:0,2411:0,2412:0,2413:0,2414:0,2415:0,2416:0,2417:0,2418:0,2419:0,2420:0,2421:0,2422:0,2423:0,2424:0,2425:0,2426:0,2427:0,2428:0,2429:0,2430:0,2431:0,2432:0,2433:0,2434:0,2435:0,2436:0,2437:0,2438:0,2439:0,2440:0,2441:0,2442:0,2443:0,2444:0,2445:0,2446:0,2447:0,2448:0,2449:0,2450:0,2451:0,2452:0,2453:0,2454:0,2455:0,2456:0,2457:0,2458:0,2459:0,
2460:0,2461:0,2462:0,2523:0,2524:0,2525:0,2526:0,2527:0,2528:0,2529:0,2530:0,2531:0,2532:0,2533:0,2534:0,2535:0,2536:0,2537:0,2538:0,2539:0,2540:0,2541:0,2542:0,2543:0,2544:0,2545:0,2546:0,2547:0,2548:0,2549:0,2550:0,2551:0,2552:0,2553:0,2554:0,2555:0,2556:0,2557:0,2558:0,2559:0,2560:0,2561:0,2562:0,2563:0,2564:0,2565:0,2566:0,2567:0,2568:0,2569:0,2570:0,2571:0,2572:0,2573:0,2574:0,2575:0,2576:0,2577:0,2578:0,2579:0,2580:0,2581:0,2582:0,2583:0,2584:0,2585:0,2586:0,2587:0,2588:0,2589:0,2590:0,2591:0,
2592:0,2593:0,2594:0,2595:0,2596:0,2597:0,2598:0,2599:0,2600:0,2601:0,2602:0,2603:0,2604:0,2605:0,2606:0,2607:0,2608:0,2609:0,2610:0,2611:0,2612:0,2613:0,2614:0,2615:0,2616:0,2617:0,2618:0,2619:0,2620:0,2621:0,2622:0,2623:0,2624:0,2625:0,2626:0,2627:0,2628:0,2629:0,2630:0,2631:0,2632:0,2633:0,2634:0,2635:0,2636:0,2637:0,2638:0,2639:0,2640:0,2641:0,2642:0,2643:0,2644:0,2645:0,2646:0,2647:0,2648:0,2649:0,2650:0,2651:0,2652:0,2653:0,2654:0,2655:0,2656:0,2657:0,2658:0,2659:0,2660:0,2661:0,2662:0,2663:0,
2664:0,2665:0,2666:0,2667:0,2668:0,2669:0,2670:0,2671:0,2672:0,2673:0,2674:0,2675:0,2676:0,2677:0,2678:0,2679:0,2680:0,2681:0,2682:0,2683:0,2684:0,2685:0,2686:0,2687:0,2688:0,2689:0,2690:0,2691:0,2692:0,2693:0,2694:0,2695:0,2696:0,2697:0,2698:0,2699:0,2700:0,2701:0,2702:0,2703:0,2704:0,2705:0,2706:0,2707:0,2708:0,2709:0,2710:0,2711:0,2712:0,2713:0,2714:0,2715:0,2716:0,2717:0,2718:0,2719:0,2720:0,2721:0,2722:0,2723:0,2724:0,2725:0,2726:0,2727:0,2728:0,2729:0,2730:0,2731:0,2732:0,2733:0,2734:0,2735:0,
2736:0,2737:0,2738:0,2739:0,2740:0,2741:0,2742:0,2743:0,2744:0,2745:0,2746:0,2747:0,2748:0,2749:0,2750:0,2751:0,2752:0,2753:0,2754:0,2755:0,2756:0,2757:0,2758:0,2759:0,2760:0,2761:0,2762:0,2763:0,2764:0,2765:0,2766:0,2767:0,2768:0,2769:0,2770:0,2771:0,2772:0,2773:0,2774:0,2775:0,2776:0,2777:0,2778:0,2779:0,2780:0,2781:0,2782:0,2783:0,2784:0,2785:0,2786:0,2787:0,2788:0,2789:0,2790:0,2791:0,2792:0,2793:0,2794:0,2795:0,2796:0,2797:0,2798:0,2799:0,2800:0,2801:0,2802:0,2803:0,2804:0,2805:0,2806:0,2807:0,
2808:0,2809:0,2810:0,2811:0,2812:0,2813:0,2814:0,2815:0,2816:0,2817:0,2818:0,2819:0,2820:0,2821:0,2822:0,2823:0,2824:0,2825:0,2826:0,2827:0,2828:0,2829:0,2830:0,2831:0,2832:0,2833:0,2834:0,2835:0,2836:0,2837:0,2838:0,2839:0,2840:0,2841:0,2842:0,2843:0,2844:0,2845:0,2846:0,2847:0,2848:0,2849:0,2850:0,2851:0,2852:0,2853:0,2854:0,2855:0,2856:0,2857:0,2858:0,2859:0,2860:0,2861:0,2862:0,2863:0,2864:0,2865:0,2866:0,2867:1,2868:1,2869:1,2870:2,2871:2,2872:2,2873:2,2874:2,2875:2,2876:2,2877:2,2878:2,2879:2,
2880:2,2881:2,2882:2,2883:2,2884:2,2885:2,2886:2,2887:2,2888:2,2891:2,2892:2,2893:2,2894:2,2895:2,2896:1,2897:1,2898:1,2899:2,2900:2,2901:1,2902:2,2903:2,2904:2,2905:2,2906:2,2907:2,2908:2,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2915:2,2916:2,2917:2,2918:2,2919:2,2920:2,2921:1,2922:1,2923:1,2924:2,2925:2,2926:2,2927:2,2928:2,2929:2,2930:2,2931:0,2932:0,2933:0,2934:0,2935:0,2936:0,2937:0,2938:0,2939:0,2940:0,2941:0,2942:0,2943:0,2944:0,2945:0,2946:0,2947:0,2948:0,2949:0,2950:0,2951:0,2952:0,2953:0,
2954:0,2955:0,2956:0,2957:0,2958:0,2959:0,2960:0,2961:0,2962:0,2964:2,2965:2,2966:2,2967:2,2968:2,2969:0,2970:0,2971:0,2972:0,2973:0,2975:0,2976:0,2977:0,2978:0,2979:0,2980:0,2981:0,2982:0,2983:0,2984:0,2985:0,2986:0,2987:0,2988:0,2989:0,2990:0,2991:0,2992:1,2993:0,2994:1,2995:0,2996:0,2997:0,2998:0,2999:0,3E3:0,3001:0,3002:0,3003:0,3004:0,3005:0,3006:0,3007:0,3008:0,3009:0,3010:0,3011:0,3012:0,3013:0,3014:0,3015:0,3016:0,3017:0,3018:0,3019:0,3020:0,3021:0,3022:0,3023:0,3024:0,3025:0,3026:0,3027:0,
3028:0,3029:0,3030:0,3031:0,3032:0,3033:0,3034:0,3035:0,3036:0,3037:0,3038:0,3039:0,3040:0,3041:0,3042:0,3043:0,3044:0,3045:0,3046:0,3047:0,3048:0,3049:0,3050:0,3051:0,3054:0,3055:0,3056:0,3057:0,3058:0,3059:0,3060:0,3061:0,3062:0,3063:0,3064:0,3065:0,3066:0,3067:0,3068:0,3069:0,3070:0,3071:0,3072:0,3073:0,3074:0,3075:0,3076:0,3077:0,3078:0,3079:0,3080:1,3081:0,3082:0,3083:0,3084:0,3085:0,3086:0,3087:0,3088:0,3089:2,3090:0,3091:2,3092:0,3093:0,3094:0,3095:0,3096:0,3097:0,3098:0,3099:0,3100:0,3101:0,
3102:2,3106:0,3107:0,3108:0,3109:0,3110:0,3111:0,3112:0,3113:0,3114:0,3115:0,3116:0,3117:0,3118:0,3119:0,3120:0,3121:0,3122:0,3123:0,3124:0,3125:0,3126:0,3127:0,3128:0,3129:0,3130:0,3131:0,3132:0,3133:0,3134:0,3135:0,3136:0,3137:0,3138:0,3141:0,3142:0,3146:0,3147:0,3148:0,3149:0,3150:0,3151:0,3153:0,3154:0,3155:0,3156:0,3157:0,3158:0,3159:0,3160:0,3161:0,3162:0,3163:0,3164:0,3165:0,3166:0,3167:13,3168:0,3169:0,3170:0,3171:0,3172:0,3174:0,3175:0,3176:0,3177:0,3178:0,3179:0,3180:0,3181:0,3182:0,3183:0,
3184:0,3185:0,3186:0,3187:0,3188:0,3189:0,3190:0,3191:0,3192:0,3193:0,3194:0,3195:0,3196:0,3197:0,3198:0,3199:0,3200:0,3201:0,3202:0,3203:0,3294:0,3295:0,3296:0,3297:0,3298:0,3299:0,3300:0,3301:0,3302:0,3303:0,3304:0,3305:0,3306:0,3307:0,3308:0,3309:0,3310:0,3311:0,3312:0,3313:0,3314:0,3315:0,3316:0,3317:0,3318:0,3319:0,3320:0,3321:0,3322:0,3323:0,3324:0,3325:0,3326:0,3327:0,3328:0,3329:0,3330:0,3331:0,3332:0,3333:0,3334:0,3335:0,3336:0,3337:0,3338:0,3339:0,3340:0,3341:0,3342:0,3343:0,3344:0,3345:0,
3346:0,3347:0,3348:0,3349:0,3350:0,3351:0,3352:0,3353:0,3354:0,3355:0,3356:0,3357:0,3358:0,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3367:0,3368:0,3369:0,3370:0,3371:0,3372:0,3373:0,3374:0,3375:0,3376:0,3377:0,3378:0,3379:0,3380:0,3381:0,3382:0,3383:0,3384:0,3385:0,3386:0,3387:0,3388:0,3389:0,3390:0,3391:0,3392:0,3393:0,3394:0,3395:0,3396:0,3397:0,3398:0,3399:0,3400:0,3401:0,3402:0,3403:0,3404:2,3405:0,3406:0,3407:3,3408:0,3409:0,3410:0,3411:0,3412:0,3413:0,3414:0,3415:0,3416:0,3417:2,
3418:2,3419:2,3420:2,3421:2,3422:2,3423:2,3424:2,3425:2,3426:2,3427:2,3428:2,3429:2,3430:2,3431:2,3432:2,3433:2,3434:2,3435:2,3436:2,3437:2,3438:2,3439:0,3440:0,3441:2,3442:2,3443:2,3444:2,3445:2,3446:2,3447:0,3448:0,3449:0,3450:0,3451:2,3452:2,3453:2,3454:2,3455:2,3456:2,3457:2,3458:2,3459:2,3460:0,3461:0,3462:0,3463:0,3464:0,3465:0,3466:0,3467:0,3468:0,3469:0,3470:0,3471:0,3472:0,3473:0,3474:0,3475:0,3476:0,3477:0,3478:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,
3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3554:0,3555:0,3556:0,3557:0,3558:0,3559:0,3560:2,3561:2,
3562:2,3563:2,3564:2,3565:2,3566:2,3567:2,3568:2,3569:2,3570:2,3571:0,3572:0,3573:0,3574:0,3575:0,3576:0,3577:0,3578:0,3579:0,3580:0,3581:0,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3594:0,3595:0,3596:0,3597:0,3598:2,3599:0,3600:2,3601:0,3602:0,3603:0,3604:0,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,
3634:1,3635:0,3636:1,3637:0,3638:0,3639:0,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3665:0,3666:0,3667:0,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3693:0,3694:0,3695:0,3696:2,3697:0,3698:2,3699:0,3700:2,3701:0,3702:0,3703:0,3704:0,3705:0,
3706:0,3707:0,3708:0,3709:0,3710:0,3711:0,3712:0,3713:0,3714:0,3715:0,3716:0,3717:0,3718:0,3719:0,3720:0,3721:0,3722:0,3723:0,3724:0,3725:0,3726:0,3727:0,3728:2,3729:2,3730:2,3731:2,3732:2,3733:2,3734:2,3735:2,3736:2,3737:2,3738:2,3739:2,3740:0,3741:0,3742:0,3743:0,3744:0,3745:0,3746:0,3747:0,3748:0,3749:0,3750:0,3751:0,3753:2,3754:2,3755:2,3756:2,3757:2,3758:2,3759:2,3760:2,3761:0,3762:0,3763:0,3764:0,3765:0,3766:0,3767:0,3768:0,3769:0,3770:0,3771:0,3772:0,3773:0,3775:0,3776:0,3777:0,3779:0,3780:0,
3781:0,3783:0,3784:0,3785:0,3788:0,3789:0,3790:0,3791:0,3793:0,3794:0,3797:0,3798:0,3799:0,3800:0,3801:0,3802:0,3812:0,3814:0,3815:0,3816:0,3825:0,3826:0,3827:0,3828:0,3829:0,3832:0,3833:0,3834:0,3835:0,3836:0,3837:0,3838:0,3839:0,3840:0,3841:0,3844:0,3845:0,3846:0,3847:0,3848:0,3849:0,3850:0,3851:0,3852:0,3854:0,3857:0,3873:0,3874:0,3875:0,3876:0,3877:0,3878:0,3879:0,3880:0,3881:0,3882:0,3883:0,3884:0,3885:0,3890:0,3891:0,3892:0,3893:0,3907:0,3908:0,3909:0,3910:0,3911:0,3912:0,3920:0,3942:0,3943:0,
3944:0,3945:0,3946:0,3947:0,3948:0,3949:0,3950:0,3968:0,3969:0,3970:0,3973:0,3974:0,3975:0,3976:0,3978:0,3979:0,3986:0,3987:0,3988:0,3989:0,3991:2,3992:2,3994:0,3995:0,3996:0,3997:0,4026:0,4037:0,4038:0,4048:0,4049:0,4050:0,4051:0,4056:0,4057:0,4058:0,4059:0,4060:0,4061:0,4062:0,4063:0,4071:0,4082:0,4083:0,4093:0,4094:0,4095:0,4096:0,4217:2,4399:2,4400:2,4401:2,4402:2,4403:2,4404:2,4405:2,4406:2,4407:2,4408:2,4409:2,4410:2,4411:2,4412:2,4413:2,4414:0,4415:0,4417:0,4418:2,4419:2,4420:2,4421:2,4422:2,
4423:2,4424:2,4425:2,4426:2,4427:2,4428:2,4429:2,4430:2,4431:2,4432:2,4433:2,4434:0,4437:0,4438:2,4439:2,4455:2,4456:2,4457:2,4462:0,4467:0,4471:0,4474:0,4484:0,4485:0,4486:0,4487:0,4488:0,4489:0,4491:0,4492:0,4493:0,4494:0,4495:0,4496:0,4497:0,4498:0,4499:0,4500:0,4501:0,4502:0,4503:0,4504:0,4505:0,4506:0,4507:0,4508:0,4509:0,4510:0,4511:0,4512:0,4513:0,4514:0,4515:0,4516:0,4517:0,4518:0,4519:0,4520:0,4521:0,4522:0,4523:0,4524:0,4525:0,4526:0,4527:0,4528:0,4529:0,4530:0,4531:0,4532:0,4533:0,4534:0,
4535:0,4536:0,4537:0,4538:0,4539:0,4540:0,4541:0,4542:0,4543:0,4544:0,4545:0,4546:0,4547:0,4548:0,4549:0,4550:0,4551:0,4552:0,4553:0,4554:0,4559:0,4568:0,4569:0,4570:0,4571:0,4572:0,4573:0,4574:0,4575:0,4576:0,4577:0,4578:0,4579:0,4580:0,4581:0,4582:0,4583:0,4584:0,4585:0,4586:0,4587:0,4588:0,4589:0,4647:0,4652:0,4653:0,4654:0,4655:0,4656:0,4766:0,4767:0,4768:0,4769:0,4770:0,4771:0,4772:0,4773:0,4774:0,4775:0,4776:0,4777:0,4778:0,4779:0,4780:0,4781:0,4782:0,4783:0,4784:0,4785:0,4786:0,4787:0,4788:0,
4789:0,4790:0,4791:0,4792:0,4793:0,4794:0,4795:0,4796:0,4797:0,4798:0,4799:0,4800:0,4822:0,4826:0,4839:0,5014:0,5015:0,5016:0,5018:0,5048:0,5069:0,5070:0,5071:0,5072:0,5105:0,5106:0,5107:0,5108:0,5109:0,5110:0,5111:0,5112:0,5113:0,5114:0,5115:0,5116:0,5117:0,5118:0,5119:0,5120:0,5121:0,5122:0,5123:0,5124:0,5125:0,5126:0,5127:0,5128:0,5129:0,5130:0,5167:0,5168:0,5173:0,5174:0,5175:0,5176:0,5177:0,5178:0,5179:0,5180:0,5181:0,5182:0,5183:0,5184:0,5185:0,5186:0,5187:0,5188:0,5221:0,5223:0,5234:0,5235:0,
5243:0,5247:0,5253:0,5254:0,5255:0,5256:0,5257:0,5258:0,5259:0,5266:0,5269:0,5270:0,5271:0,5272:0,5273:0,5274:0,5275:0,5292:0,5293:0,5294:0,5295:0,5296:0,5297:0,5298:0,5299:0,5300:0,5301:0,5302:0,5303:0,5304:0,5305:0,5306:0,5307:0,5308:0,5309:0,5310:0,5311:0,5316:0,5320:0,5321:0,5325:0,5329:0,5330:0,5331:0,5337:0,5343:0,5344:0,5345:0,5346:0,5347:0,5348:0,5349:0,5355:0,5356:0,5357:0,5361:0,5362:0,5367:0,5382:0,5383:0,5387:0,5388:0,5389:0,5396:0,5456:0,5457:0,5459:0,5460:0,5461:0,5462:0,5463:0,5469:0,
5472:4,5479:0,5480:0,5481:0,5482:0,5490:0,5513:0,5514:0,5518:0,5519:0,5520:0,5523:0,5530:0,5531:0,5532:0,5533:0,5534:0,5535:0,5536:0,5537:0,5538:0,5539:0,5550:0,5551:0,5552:0,5559:0,5562:0,5563:0,5564:0,5565:0,5566:0,5567:0,5568:0,5569:0,5570:0,5571:0,5572:0,5573:0,5574:0,5575:0,5576:0,5577:0,5578:0,5579:0,5580:0,5581:0,5582:0,5583:0,5588:1,5589:3,5596:0,5623:2,5624:2,5625:2,5627:0,5629:0,5631:0,5632:0,5633:0,5634:0,5635:0,5636:0,5637:0,5638:0,5639:0,5641:0,5643:0,5644:0,5646:2,5649:0,5650:0,5651:0,
5652:0,5653:0,5654:2,5655:2,5659:0,5663:0,5664:0,5665:0,5666:0,5667:0,5668:0,5669:0,5670:0,5671:0,5672:0,5673:0,5674:0,5675:0,5676:0,5677:0,5678:0,5679:0,5680:0,5682:0,5683:0,5684:0,5685:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5875:0,5876:0,5877:0,5879:0,5880:0,5887:0,5890:0,5921:0,5922:0,5923:0,5924:0,5925:0,5926:0,5927:0,5928:0,5929:0,5930:0,5931:0,5932:0,5933:0,5934:0,5935:0,5936:0,5937:0,5938:0,5939:0,5940:0,6050:0,6051:0,6052:0,6053:0,6054:0,6055:0,6056:0,6057:0,6058:0,6059:0,
6060:0,6061:0,6062:0,6063:0,6064:0,6065:0,6066:0,6067:0,6068:0,6069:0,6070:0,6071:0,6072:0,6073:0,6074:0,6075:0,6076:0,6077:0,6078:0,6079:0,6080:0,6081:0,6082:0,6083:0,6084:0,6085:0,6086:0,6087:0,6088:0,6089:0,6090:0,6091:0,6092:0,6093:0,6094:0,6095:0,6096:0,6097:0,6098:0,6099:0,6100:0,6101:0,6102:0,6103:0,6104:0,6105:0,6106:0,6107:0,6108:0,6109:0,6110:0,6111:0,6112:0,6113:0,6114:0,6115:0,6116:0,6117:0,6118:0,6119:0,6120:0,6121:0,6122:0,6123:0,6124:0,6125:0,6128:1,6129:1,6141:1,6210:0,6211:0,6244:0,
6245:0,6246:0,6247:0,6248:0,6249:0,6250:0,6251:0,6252:0,6253:0,6254:0,6255:0,6256:0,6257:0,6258:0,6259:0,6260:0,6261:0,6262:0,6263:0,6264:0,6265:0,6266:0,6267:0,6268:0,6269:0,6270:0,6271:0,6272:0,6273:0,6274:0,6275:0,6316:0,6328:0,6329:0,6330:0,6331:0,6332:0,6333:0,6334:0,6335:0,6336:0,6337:0,6338:0,6339:0,6340:0,6341:0,6342:0,6343:0,6344:0,6345:0,6346:0,6347:0,6348:0,6350:0,6351:0,6352:0,6353:0,6354:0,6391:1,20002:0,20003:0,20004:0,20005:0,20006:0,20007:0,20008:0,20009:0,20010:0,20011:0,20012:0,
20013:0,20014:0,20015:0,20016:0,20017:0,20018:0,20019:0,20020:0,20021:0,20022:0,20023:0,20024:0,20025:0,20026:0,20027:0,20028:0,20029:0,20030:0,20031:0,20032:0,20062:0,20063:0,20064:0,20065:0,20066:0,20067:0,20068:0,20069:0,20070:0,20071:0,20072:0,20073:0,20074:0,20075:0,20076:0,20077:0,20078:0,20079:0,20080:0,20081:0,20082:0,20083:0,20084:0,20085:0,20086:0,20087:0,20088:0,20089:0,20090:0,20091:0,20092:0,20135:0,20136:0,20137:0,20138:0,20248:0,20249:0,20250:0,20251:0,20252:0,20253:0,20254:0,20255:0,
20256:0,20257:0,20258:0,20348:0,20349:0,20350:0,20351:0,20352:0,20353:0,20354:0,20355:0,20356:0,20357:0,20358:0,20436:0,20437:0,20438:0,20439:0,20440:0,20499:0,20538:0,20539:0,20790:0,20791:0,20822:0,20823:0,20824:0,20934:0,20935:0,20936:0,21035:0,21036:0,21037:0,21095:0,21096:0,21097:0,21148:0,21149:0,21150:0,21291:0,21292:0,21413:0,21414:0,21415:0,21416:0,21417:0,21418:0,21419:0,21420:0,21421:0,21422:0,21423:0,21473:0,21474:0,21475:0,21476:0,21477:0,21478:0,21479:0,21480:0,21481:0,21482:0,21483:0,
21500:0,21780:0,21781:0,21782:0,21817:0,21818:0,21891:0,21892:0,21893:0,21894:0,21896:0,21897:0,21898:0,21899:0,22032:0,22033:0,22091:0,22092:0,22171:0,22172:0,22173:0,22174:0,22175:0,22176:0,22177:0,22181:0,22182:0,22183:0,22184:0,22185:0,22186:0,22187:0,22191:0,22192:0,22193:0,22194:0,22195:0,22196:0,22197:0,22234:0,22235:0,22236:0,22332:0,22391:0,22392:0,22521:0,22522:0,22523:0,22524:0,22525:0,22700:0,22770:0,22780:0,22832:0,22991:0,22992:0,22993:0,22994:0,23028:0,23029:0,23030:0,23031:0,23032:0,
23033:0,23034:0,23035:0,23036:0,23037:0,23038:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,23830:0,23831:0,23832:0,23833:0,23834:0,23835:0,23836:0,23837:0,23838:0,23839:0,23840:0,23841:0,23842:0,23843:0,23844:0,23845:0,23846:0,23847:0,23848:0,23849:0,23850:0,23851:0,23852:0,23853:0,23866:0,23867:0,23868:0,23869:0,23870:0,23871:0,23872:0,23877:0,23878:0,23879:0,23880:0,23881:0,23882:0,23883:0,23884:0,23886:0,23887:0,23888:0,23889:0,23890:0,23891:0,23892:0,23893:0,23894:0,23946:0,23947:0,23948:0,
24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24311:0,24312:0,24313:0,24342:0,24343:0,24344:0,24345:0,24346:0,24347:0,24370:10,24371:10,24372:10,24373:10,24374:10,24375:0,24376:0,24377:0,24378:0,24379:0,24380:0,24381:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,24718:0,24719:0,24720:0,24721:0,24817:0,24818:0,24819:0,24820:0,24821:0,24877:0,24878:0,24879:0,24880:0,24881:0,24882:0,24891:0,24892:0,24893:0,25E3:0,25231:0,25391:0,25392:0,25393:0,25394:0,25395:0,25828:0,25829:0,25830:0,
25831:0,25832:0,25833:0,25834:0,25835:0,25836:0,25837:0,25838:0,25884:0,25932:0,26191:0,26192:0,26193:0,26194:0,26195:0,26237:0,26331:0,26332:0,26391:0,26392:0,26393:0,26432:0,26591:0,26592:0,26632:0,26692:0,26701:0,26702:0,26703:0,26704:0,26705:0,26706:0,26707:0,26708:0,26709:0,26710:0,26711:0,26712:0,26713:0,26714:0,26715:0,26716:0,26717:0,26718:0,26719:0,26720:0,26721:0,26722:0,26729:2,26730:2,26731:2,26732:2,26733:2,26734:2,26735:2,26736:2,26737:2,26738:2,26739:2,26740:2,26741:2,26742:2,26743:2,
26744:2,26745:2,26746:2,26747:2,26748:2,26749:2,26750:2,26751:2,26752:2,26753:2,26754:2,26755:2,26756:2,26757:2,26758:2,26759:2,26760:2,26761:2,26762:2,26763:2,26764:2,26765:2,26766:2,26767:2,26768:2,26769:2,26770:2,26771:2,26772:2,26773:2,26774:2,26775:2,26776:2,26777:2,26778:2,26779:2,26780:2,26781:2,26782:2,26783:2,26784:2,26785:2,26786:2,26787:2,26788:2,26789:2,26790:2,26791:2,26792:2,26793:2,26794:2,26795:2,26796:2,26797:2,26798:2,26799:2,26801:2,26802:2,26803:2,26811:2,26812:2,26813:2,26847:2,
26848:2,26849:2,26850:2,26851:2,26852:2,26853:2,26854:2,26855:2,26856:2,26857:2,26858:2,26859:2,26860:2,26861:2,26862:2,26863:2,26864:2,26865:2,26866:2,26867:2,26868:2,26869:2,26870:2,26891:0,26892:0,26893:0,26894:0,26895:0,26896:0,26897:0,26898:0,26899:0,26901:0,26902:0,26903:0,26904:0,26905:0,26906:0,26907:0,26908:0,26909:0,26910:0,26911:0,26912:0,26913:0,26914:0,26915:0,26916:0,26917:0,26918:0,26919:0,26920:0,26921:0,26922:0,26923:0,26929:0,26930:0,26931:0,26932:0,26933:0,26934:0,26935:0,26936:0,
26937:0,26938:0,26939:0,26940:0,26941:0,26942:0,26943:0,26944:0,26945:0,26946:0,26948:0,26949:0,26950:0,26951:0,26952:0,26953:0,26954:0,26955:0,26956:0,26957:0,26958:0,26959:0,26960:0,26961:0,26962:0,26963:0,26964:0,26965:0,26966:0,26967:0,26968:0,26969:0,26970:0,26971:0,26972:0,26973:0,26974:0,26975:0,26976:0,26977:0,26978:0,26979:0,26980:0,26981:0,26982:0,26983:0,26984:0,26985:0,26986:0,26987:0,26988:0,26989:0,26990:0,26991:0,26992:0,26993:0,26994:0,26995:0,26996:0,26997:0,26998:0,27037:0,27038:0,
27039:0,27040:0,27120:0,27200:0,27205:0,27206:0,27207:0,27208:0,27209:0,27210:0,27211:0,27212:0,27213:0,27214:0,27215:0,27216:0,27217:0,27218:0,27219:0,27220:0,27221:0,27222:0,27223:0,27224:0,27225:0,27226:0,27227:0,27228:0,27229:0,27230:0,27231:0,27232:0,27258:0,27259:0,27260:0,27291:6,27292:6,27391:0,27392:0,27393:0,27394:0,27395:0,27396:0,27397:0,27398:0,27429:0,27492:0,27493:0,27500:0,27561:0,27562:0,27563:0,27564:0,27571:0,27572:0,27573:0,27574:0,27581:0,27582:0,27583:0,27584:0,27591:0,27592:0,
27593:0,27594:0,27700:0,28191:0,28192:0,28193:0,28232:0,28348:0,28349:0,28350:0,28351:0,28352:0,28353:0,28354:0,28355:0,28356:0,28357:0,28358:0,28402:0,28403:0,28404:0,28405:0,28406:0,28407:0,28408:0,28409:0,28410:0,28411:0,28412:0,28413:0,28414:0,28415:0,28416:0,28417:0,28418:0,28419:0,28420:0,28421:0,28422:0,28423:0,28424:0,28425:0,28426:0,28427:0,28428:0,28429:0,28430:0,28431:0,28432:0,28462:0,28463:0,28464:0,28465:0,28466:0,28467:0,28468:0,28469:0,28470:0,28471:0,28472:0,28473:0,28474:0,28475:0,
28476:0,28477:0,28478:0,28479:0,28480:0,28481:0,28482:0,28483:0,28484:0,28485:0,28486:0,28487:0,28488:0,28489:0,28490:0,28491:0,28492:0,28600:0,28991:0,28992:0,29100:0,29101:0,29118:0,29119:0,29120:0,29121:0,29122:0,29168:0,29169:0,29170:0,29171:0,29172:0,29177:0,29178:0,29179:0,29180:0,29181:0,29182:0,29183:0,29184:0,29185:0,29187:0,29188:0,29189:0,29190:0,29191:0,29192:0,29193:0,29194:0,29195:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,
29900:0,29901:0,29902:0,29903:0,30161:0,30162:0,30163:0,30164:0,30165:0,30166:0,30167:0,30168:0,30169:0,30170:0,30171:0,30172:0,30173:0,30174:0,30175:0,30176:0,30177:0,30178:0,30179:0,30200:5,30339:0,30340:0,30491:0,30492:0,30493:0,30494:0,30591:0,30592:0,30729:0,30730:0,30731:0,30732:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31251:0,31252:0,31253:0,31254:0,31255:0,31256:0,31257:0,31258:0,31259:0,31265:0,31266:0,31267:0,31268:0,31275:0,31276:0,31277:0,31278:0,31279:0,31281:0,
31282:0,31283:0,31284:0,31285:0,31286:0,31287:0,31288:0,31289:0,31290:0,31291:0,31292:0,31293:0,31294:0,31295:0,31296:0,31297:0,31370:0,31461:0,31462:0,31463:0,31464:0,31465:0,31466:0,31467:0,31468:0,31469:0,31491:0,31492:0,31493:0,31494:0,31495:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,31917:0,31918:0,31919:0,31920:0,31921:0,31922:0,31965:0,31966:0,31967:0,31968:0,31969:0,31970:0,31971:0,31972:0,31973:0,31974:0,31975:0,31976:0,31977:0,31978:0,31979:0,31980:0,31981:0,31982:0,
31983:0,31984:0,31985:0,31986:0,31987:0,31988:0,31989:0,31990:0,31991:0,31992:0,31993:0,31994:0,31995:0,31996:0,31997:0,31998:0,31999:0,32E3:0,32001:2,32002:2,32003:2,32005:2,32006:2,32007:2,32008:2,32009:2,32010:2,32011:2,32012:2,32013:2,32014:2,32015:2,32016:2,32017:2,32018:2,32019:2,32020:2,32021:2,32022:2,32023:2,32024:2,32025:2,32026:2,32027:2,32028:2,32029:2,32030:2,32031:2,32033:2,32034:2,32035:2,32036:2,32037:2,32038:2,32039:2,32040:2,32041:2,32042:2,32043:2,32044:2,32045:2,32046:2,32047:2,
32048:2,32049:2,32050:2,32051:2,32052:2,32053:2,32054:2,32055:2,32056:2,32057:2,32058:2,32059:2,32060:2,32061:0,32062:0,32064:2,32065:2,32066:2,32067:2,32074:2,32075:2,32076:2,32077:2,32081:0,32082:0,32083:0,32084:0,32085:0,32086:0,32098:0,32099:2,32100:0,32104:0,32107:0,32108:0,32109:0,32110:0,32111:0,32112:0,32113:0,32114:0,32115:0,32116:0,32117:0,32118:0,32119:0,32120:0,32121:0,32122:0,32123:0,32124:0,32125:0,32126:0,32127:0,32128:0,32129:0,32130:0,32133:0,32134:0,32135:0,32136:0,32137:0,32138:0,
32139:0,32140:0,32141:0,32142:0,32143:0,32144:0,32145:0,32146:0,32147:0,32148:0,32149:0,32150:0,32151:0,32152:0,32153:0,32154:0,32155:0,32156:0,32157:0,32158:0,32161:0,32164:2,32165:2,32166:2,32167:2,32180:0,32181:0,32182:0,32183:0,32184:0,32185:0,32186:0,32187:0,32188:0,32189:0,32190:0,32191:0,32192:0,32193:0,32194:0,32195:0,32196:0,32197:0,32198:0,32199:0,32201:0,32202:0,32203:0,32204:0,32205:0,32206:0,32207:0,32208:0,32209:0,32210:0,32211:0,32212:0,32213:0,32214:0,32215:0,32216:0,32217:0,32218:0,
32219:0,32220:0,32221:0,32222:0,32223:0,32224:0,32225:0,32226:0,32227:0,32228:0,32229:0,32230:0,32231:0,32232:0,32233:0,32234:0,32235:0,32236:0,32237:0,32238:0,32239:0,32240:0,32241:0,32242:0,32243:0,32244:0,32245:0,32246:0,32247:0,32248:0,32249:0,32250:0,32251:0,32252:0,32253:0,32254:0,32255:0,32256:0,32257:0,32258:0,32259:0,32260:0,32301:0,32302:0,32303:0,32304:0,32305:0,32306:0,32307:0,32308:0,32309:0,32310:0,32311:0,32312:0,32313:0,32314:0,32315:0,32316:0,32317:0,32318:0,32319:0,32320:0,32321:0,
32322:0,32323:0,32324:0,32325:0,32326:0,32327:0,32328:0,32329:0,32330:0,32331:0,32332:0,32333:0,32334:0,32335:0,32336:0,32337:0,32338:0,32339:0,32340:0,32341:0,32342:0,32343:0,32344:0,32345:0,32346:0,32347:0,32348:0,32349:0,32350:0,32351:0,32352:0,32353:0,32354:0,32355:0,32356:0,32357:0,32358:0,32359:0,32360:0,32601:0,32602:0,32603:0,32604:0,32605:0,32606:0,32607:0,32608:0,32609:0,32610:0,32611:0,32612:0,32613:0,32614:0,32615:0,32616:0,32617:0,32618:0,32619:0,32620:0,32621:0,32622:0,32623:0,32624:0,
32625:0,32626:0,32627:0,32628:0,32629:0,32630:0,32631:0,32632:0,32633:0,32634:0,32635:0,32636:0,32637:0,32638:0,32639:0,32640:0,32641:0,32642:0,32643:0,32644:0,32645:0,32646:0,32647:0,32648:0,32649:0,32650:0,32651:0,32652:0,32653:0,32654:0,32655:0,32656:0,32657:0,32658:0,32659:0,32660:0,32661:0,32662:0,32664:2,32665:2,32666:2,32667:2,32701:0,32702:0,32703:0,32704:0,32705:0,32706:0,32707:0,32708:0,32709:0,32710:0,32711:0,32712:0,32713:0,32714:0,32715:0,32716:0,32717:0,32718:0,32719:0,32720:0,32721:0,
32722:0,32723:0,32724:0,32725:0,32726:0,32727:0,32728:0,32729:0,32730:0,32731:0,32732:0,32733:0,32734:0,32735:0,32736:0,32737:0,32738:0,32739:0,32740:0,32741:0,32742:0,32743:0,32744:0,32745:0,32746:0,32747:0,32748:0,32749:0,32750:0,32751:0,32752:0,32753:0,32754:0,32755:0,32756:0,32757:0,32758:0,32759:0,32760:0,32761:0,32766:0,53001:0,53002:0,53003:0,53004:0,53008:0,53009:0,53010:0,53011:0,53012:0,53013:0,53014:0,53015:0,53016:0,53017:0,53018:0,53019:0,53021:0,53022:0,53023:0,53024:0,53025:0,53026:0,
53027:0,53028:0,53029:0,53030:0,53031:0,53032:0,53034:0,53042:0,53043:0,53044:0,53045:0,53046:0,53048:0,53049:0,54001:0,54002:0,54003:0,54004:0,54008:0,54009:0,54010:0,54011:0,54012:0,54013:0,54014:0,54015:0,54016:0,54017:0,54018:0,54019:0,54021:0,54022:0,54023:0,54024:0,54025:0,54026:0,54027:0,54028:0,54029:0,54030:0,54031:0,54032:0,54034:0,54042:0,54043:0,54044:0,54045:0,54046:0,54048:0,54049:0,54050:0,54051:0,54052:0,54053:0,65061:2,65062:2,65161:0,65163:0,102001:0,102002:0,102003:0,102004:0,102005:0,
102006:0,102007:0,102008:0,102009:0,102010:0,102011:0,102012:0,102013:0,102014:0,102015:0,102016:0,102017:0,102018:0,102019:0,102020:0,102021:0,102022:0,102023:0,102024:0,102025:0,102026:0,102027:0,102028:0,102029:0,102030:0,102031:0,102032:0,102033:0,102034:0,102035:0,102036:0,102037:0,102038:0,102039:0,102040:0,102041:2,102042:0,102043:0,102044:0,102045:0,102046:0,102047:0,102048:0,102049:0,102050:0,102051:0,102052:0,102053:0,102054:0,102055:0,102056:0,102057:0,102058:0,102059:0,102060:0,102061:0,
102062:0,102063:0,102064:11,102065:0,102066:0,102067:0,102068:14,102069:15,102070:0,102071:0,102072:0,102073:0,102074:0,102075:0,102076:0,102077:0,102078:0,102079:0,102080:0,102081:0,102082:0,102083:0,102084:0,102085:0,102086:0,102087:0,102088:0,102089:0,102090:0,102091:0,102092:0,102093:0,102094:0,102095:0,102096:0,102097:0,102098:0,102099:0,102100:0,102101:0,102102:0,102103:0,102104:0,102105:0,102106:0,102107:0,102108:0,102109:0,102110:0,102111:0,102112:0,102113:0,102114:0,102115:0,102116:0,102117:0,
102118:2,102119:1,102120:2,102121:2,102122:0,102123:0,102124:0,102125:0,102126:0,102127:0,102128:0,102129:0,102130:0,102131:0,102132:0,102133:0,102134:0,102135:0,102136:0,102137:0,102138:0,102139:0,102140:0,102141:0,102142:0,102143:0,102144:0,102145:0,102146:0,102147:0,102148:0,102149:0,102150:0,102151:0,102152:0,102153:0,102154:0,102155:0,102156:0,102157:0,102158:0,102159:0,102160:0,102161:0,102162:0,102163:0,102164:0,102165:0,102166:0,102167:0,102168:0,102169:0,102170:0,102171:0,102172:0,102173:0,
102174:0,102175:0,102176:0,102177:0,102178:0,102179:0,102180:0,102181:0,102182:0,102183:0,102184:0,102185:0,102186:0,102187:0,102188:0,102189:0,102190:0,102191:0,102192:0,102193:0,102194:0,102195:0,102196:0,102197:0,102198:0,102199:0,102200:0,102201:0,102202:0,102203:0,102204:0,102205:0,102206:0,102207:0,102208:0,102209:0,102210:0,102211:0,102212:0,102213:0,102214:0,102215:0,102216:0,102217:2,102218:0,102219:2,102220:2,102221:0,102222:0,102223:0,102224:0,102225:0,102226:0,102227:0,102228:0,102229:0,
102230:0,102231:0,102232:0,102233:0,102234:0,102235:0,102236:0,102237:0,102238:0,102239:0,102240:0,102241:0,102242:0,102243:0,102244:0,102245:0,102246:0,102247:0,102248:0,102249:0,102250:0,102251:0,102252:0,102253:0,102254:0,102255:0,102256:0,102257:0,102258:0,102259:0,102260:0,102261:0,102262:0,102263:0,102264:0,102265:0,102266:0,102267:0,102268:0,102269:0,102270:0,102271:0,102272:0,102273:0,102274:0,102275:0,102276:0,102277:0,102278:0,102279:0,102280:0,102281:0,102282:0,102283:0,102284:0,102285:0,
102286:0,102287:0,102288:0,102289:0,102290:0,102291:0,102292:0,102293:0,102294:0,102295:0,102296:0,102297:0,102298:0,102299:0,102300:0,102301:0,102302:0,102303:0,102304:0,102305:0,102306:0,102307:0,102308:0,102309:0,102310:0,102311:0,102312:0,102313:0,102314:0,102315:0,102316:0,102317:0,102318:0,102319:0,102320:0,102321:0,102322:0,102323:0,102324:0,102325:0,102326:0,102327:0,102328:0,102329:0,102330:0,102331:0,102332:0,102333:0,102334:0,102335:0,102336:0,102337:0,102338:0,102339:0,102340:0,102341:0,
102342:0,102343:0,102344:0,102345:0,102346:0,102347:0,102348:0,102349:0,102350:0,102351:0,102352:0,102353:0,102354:0,102355:0,102356:0,102357:0,102358:0,102359:0,102360:0,102361:0,102362:0,102363:0,102364:0,102365:0,102366:0,102367:0,102368:0,102369:0,102370:0,102371:0,102372:0,102373:0,102374:0,102375:0,102376:0,102377:0,102378:1,102379:1,102380:0,102381:1,102382:0,102383:0,102384:0,102385:0,102386:0,102387:0,102388:0,102389:2,102390:2,102391:2,102392:2,102393:2,102394:2,102395:2,102396:2,102397:2,
102398:2,102401:0,102402:0,102403:0,102404:0,102405:0,102406:0,102407:0,102408:0,102409:0,102410:0,102411:0,102412:0,102413:0,102414:0,102415:0,102416:0,102417:0,102418:0,102419:0,102420:0,102421:0,102422:0,102423:0,102424:0,102425:0,102426:0,102427:0,102428:0,102429:0,102430:0,102431:0,102432:0,102433:0,102434:0,102435:0,102436:0,102437:0,102438:0,102439:0,102440:0,102441:0,102442:0,102443:0,102444:0,102445:2,102446:2,102447:2,102450:0,102451:0,102452:0,102461:2,102462:2,102463:2,102464:2,102465:2,
102466:2,102467:2,102468:2,102469:0,102470:0,102471:0,102472:0,102473:0,102474:0,102475:0,102476:0,102477:0,102478:0,102479:0,102480:0,102481:0,102482:0,102483:0,102484:0,102485:0,102486:0,102487:0,102488:0,102489:0,102490:0,102491:0,102492:0,102493:0,102494:0,102495:0,102496:0,102500:1,102501:1,102502:1,102503:1,102504:1,102505:1,102506:1,102507:1,102508:1,102509:1,102510:1,102511:1,102512:1,102513:1,102514:1,102515:1,102516:1,102517:1,102518:1,102519:1,102520:0,102521:0,102522:0,102523:0,102524:0,
102525:2,102526:2,102527:2,102528:2,102529:2,102530:0,102531:0,102532:0,102533:0,102534:0,102535:0,102536:0,102537:0,102538:0,102539:0,102540:0,102541:0,102542:0,102543:0,102544:0,102545:0,102546:0,102547:0,102548:0,102549:0,102570:0,102571:0,102572:0,102573:0,102574:0,102575:0,102576:0,102577:0,102578:0,102579:0,102580:0,102581:0,102582:0,102583:0,102584:0,102585:0,102586:0,102587:0,102588:0,102589:2,102590:0,102591:0,102592:0,102593:0,102594:0,102595:0,102596:0,102597:0,102598:0,102599:2,102600:2,
102601:0,102602:0,102603:0,102604:2,102605:0,102606:0,102607:0,102608:0,102609:0,102610:0,102611:0,102612:0,102613:0,102614:0,102615:0,102616:0,102617:0,102618:0,102619:0,102620:0,102621:0,102622:0,102623:0,102624:0,102625:0,102626:0,102627:0,102628:0,102629:2,102630:2,102631:2,102632:2,102633:2,102634:2,102635:2,102636:2,102637:2,102638:2,102639:2,102640:2,102641:2,102642:2,102643:2,102644:2,102645:2,102646:2,102647:0,102648:2,102649:2,102650:2,102651:2,102652:2,102653:2,102654:2,102655:2,102656:2,
102657:2,102658:2,102659:2,102660:2,102661:2,102662:2,102663:2,102664:2,102665:2,102666:2,102667:2,102668:2,102669:2,102670:2,102671:2,102672:2,102673:2,102674:2,102675:2,102676:2,102677:2,102678:2,102679:2,102680:2,102681:2,102682:2,102683:2,102684:2,102685:2,102686:2,102687:2,102688:2,102689:2,102690:2,102691:2,102692:2,102693:2,102694:2,102695:2,102696:2,102697:2,102698:2,102699:2,102700:2,102701:0,102702:0,102703:0,102704:2,102705:2,102707:2,102708:2,102709:2,102710:2,102711:2,102712:2,102713:2,
102714:2,102715:2,102716:2,102717:2,102718:2,102719:2,102720:2,102721:2,102722:2,102723:2,102724:2,102725:2,102726:2,102727:2,102728:2,102729:2,102730:2,102733:2,102734:2,102735:2,102736:2,102737:2,102738:2,102739:2,102740:2,102741:2,102742:2,102743:2,102744:2,102745:2,102746:2,102747:2,102748:2,102749:2,102750:2,102751:2,102752:2,102753:2,102754:2,102755:2,102756:2,102757:2,102758:2,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102767:0,102768:0,102769:0,102770:0,102771:0,102772:0,102773:0,
102774:0,102775:0,102776:0,102777:0,102778:0,102779:0,102780:0,102781:0,102782:0,102783:0,102784:0,102785:0,102786:0,102787:0,102788:0,102789:0,102790:0,102791:0,102792:0,102793:0,102794:0,102795:0,102796:0,102797:0,102798:0,102962:0,102963:0,102964:0,102965:0,102966:0,102967:0,102968:0,102969:0,102970:1,102971:0,102972:0,102973:0,102974:2,102975:0,102976:0,102977:0,102978:0,102979:0,102980:0,102981:0,102982:0,102983:0,102984:0,102985:0,102986:0,102987:0,102988:0,102989:0,102990:1,102991:1,102992:1,
102993:0,102994:0,102995:2,102996:2,102997:0,102998:0,102999:0,103E3:0,103001:0,103002:0,103003:2,103004:2,103005:2,103006:2,103007:2,103008:2,103009:0,103010:0,103011:0,103012:2,103013:2,103014:2,103015:0,103016:2,103017:0,103018:2,103019:0,103020:0,103021:0,103022:2,103023:2,103024:2,103025:0,103026:0,103027:2,103028:2,103029:0,103030:0,103031:0,103032:2,103033:2,103034:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,
103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103065:0,103066:0,103067:0,103068:0,103069:2,103070:0,103071:0,103072:2,103073:2,103074:0,103075:0,103076:0,103077:1,103078:1,103079:1,103080:0,103081:0,103082:0,103083:2,103084:2,103085:2,103086:0,103087:0,103088:2,103089:2,103090:0,103091:0,103092:0,103093:0,103094:1,103095:0,103096:2,103097:0,103098:0,103099:0,103100:2,103101:2,103102:2,103103:0,103104:2,
103105:0,103106:2,103107:0,103108:0,103109:0,103110:2,103111:2,103112:2,103113:0,103114:0,103115:0,103116:0,103117:2,103118:2,103119:2,103120:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103153:0,103154:0,103155:0,103156:0,103157:0,103158:2,103159:2,103160:2,
103161:2,103162:2,103163:0,103164:0,103165:0,103166:1,103167:1,103168:1,103169:2,103170:2,103171:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103186:0,103187:0,103188:0,103189:2,103190:2,103191:2,103192:0,103193:0,103194:0,103195:0,103196:2,103197:2,103198:2,103199:2,103200:0,103201:0,103202:0,103203:0,103204:0,103205:0,103206:0,103207:0,103208:0,103209:0,103210:0,103211:0,103212:0,103213:0,103214:0,103215:0,103216:0,
103217:0,103218:0,103219:0,103220:0,103221:0,103222:0,103223:0,103224:0,103225:1,103226:1,103227:1,103228:0,103229:0,103230:2,103231:2,103232:0,103233:0,103234:0,103235:0,103236:0,103237:0,103238:2,103239:2,103240:2,103241:2,103242:2,103243:2,103244:0,103245:0,103246:0,103247:2,103248:2,103249:2,103250:0,103251:2,103252:0,103253:2,103254:0,103255:0,103256:0,103257:2,103258:2,103259:2,103260:0,103261:0,103262:2,103263:2,103264:0,103265:0,103266:0,103267:2,103268:2,103269:2,103270:0,103271:0,103272:2,
103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103300:0,103301:0,103302:0,103303:0,103304:0,103305:0,103306:0,103307:0,103308:0,103309:0,103310:0,103311:0,103312:0,103313:0,103314:0,103315:0,103316:0,103317:0,103318:0,103319:0,103320:0,103321:0,103322:0,103323:0,103324:0,103325:0,103326:0,103327:0,103328:0,
103329:0,103330:0,103331:0,103332:0,103333:0,103334:0,103335:0,103336:0,103337:0,103338:0,103339:0,103340:0,103341:0,103342:0,103343:0,103344:0,103345:0,103346:0,103347:0,103348:0,103349:0,103350:0,103351:0,103352:0,103353:0,103354:0,103355:0,103356:0,103357:0,103358:0,103359:0,103360:0,103361:0,103362:0,103363:0,103364:0,103365:0,103366:0,103367:0,103368:0,103369:0,103370:0,103371:0,103372:0,103373:0,103374:0,103375:0,103376:2,103377:0,103378:0,103379:2,103380:2,103381:0,103382:0,103383:0,103384:1,
103385:1,103386:1,103387:0,103388:0,103389:0,103390:2,103391:2,103392:2,103393:0,103394:0,103395:2,103396:2,103397:0,103398:0,103399:0,103400:2,103401:2,103402:2,103403:2,103404:2,103405:2,103406:2,103407:2,103408:2,103409:2,103410:2,103411:2,103412:2,103413:2,103414:2,103415:2,103416:2,103417:2,103418:2,103419:2,103420:2,103421:2,103422:2,103423:2,103424:2,103425:2,103426:2,103427:2,103428:2,103429:2,103430:2,103431:2,103432:2,103433:2,103434:2,103435:2,103436:2,103437:2,103438:2,103439:2,103440:2,
103441:2,103442:2,103443:2,103444:2,103445:2,103446:2,103447:2,103448:2,103449:2,103450:2,103451:2,103452:2,103453:2,103454:2,103455:2,103456:2,103457:2,103458:2,103459:2,103460:2,103461:2,103462:2,103463:2,103464:2,103465:2,103466:2,103467:2,103468:2,103469:2,103470:2,103471:2,103472:0,103473:1,103474:0,103475:2,103476:0,103477:0,103478:0,103479:2,103480:2,103481:2,103482:0,103483:2,103484:0,103485:2,103486:0,103487:0,103488:0,103489:2,103490:2,103491:2,103492:0,103493:0,103494:0,103495:0,103496:2,
103497:2,103498:2,103499:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103528:0,103529:0,103530:0,103531:0,103532:0,103533:0,103534:0,103535:0,103536:0,103537:0,103538:0,103539:0,103540:0,103541:0,103542:0,103543:0,103544:2,103545:2,103546:2,103547:2,103548:2,103549:0,103550:0,103551:0,103552:1,
103553:1,103554:1,103555:2,103556:2,103557:2,103558:0,103559:0,103560:0,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103571:0,103572:0,103573:0,103574:2,103575:2,103576:2,103577:0,103578:0,103579:0,103580:0,103581:2,103582:2,103583:2,103584:0,103585:2,103600:0,103601:0,103602:0,103603:0,103604:0,103605:0,103606:0,103607:0,103608:0,103609:0,103610:0,103611:0,103612:0,103613:0,103614:0,103615:0,103616:0,103617:0,103618:0,103619:0,103620:0,103621:0,103622:0,
103623:0,103624:0,103625:0,103626:0,103627:0,103628:0,103629:0,103630:0,103631:0,103632:0,103633:0,103634:0,103635:0,103636:0,103637:0,103638:0,103639:0,103640:0,103641:0,103642:0,103643:0,103644:0,103645:0,103646:0,103647:0,103648:0,103649:0,103650:0,103651:0,103652:0,103653:0,103654:0,103655:0,103656:0,103657:0,103658:0,103659:0,103660:0,103661:0,103662:0,103663:0,103664:0,103665:0,103666:0,103667:0,103668:0,103669:0,103670:0,103671:0,103672:0,103673:0,103674:0,103675:0,103676:0,103677:0,103678:0,
103679:0,103680:0,103681:0,103682:0,103683:0,103684:0,103685:0,103686:0,103687:0,103688:0,103689:0,103690:0,103691:0,103692:0,103693:0,103694:0,103695:2,103700:2,103701:2,103702:2,103703:2,103704:2,103705:2,103706:2,103707:2,103708:2,103709:2,103710:2,103711:2,103712:2,103713:2,103714:2,103715:2,103716:2,103717:2,103718:2,103719:2,103720:2,103721:2,103722:2,103723:2,103724:2,103725:2,103726:2,103727:2,103728:2,103729:2,103730:2,103731:2,103732:2,103733:2,103734:2,103735:2,103736:2,103737:2,103738:2,
103739:2,103740:2,103741:2,103742:2,103743:2,103744:2,103745:2,103746:2,103747:2,103748:2,103749:2,103750:2,103751:2,103752:2,103753:2,103754:2,103755:2,103756:2,103757:2,103758:2,103759:2,103760:2,103761:2,103762:2,103763:2,103764:2,103765:2,103766:2,103767:2,103768:2,103769:2,103770:2,103771:2,103772:2,103773:2,103774:2,103775:2,103776:2,103777:2,103778:2,103779:2,103780:2,103781:2,103782:2,103783:2,103784:2,103785:2,103786:2,103787:2,103788:2,103789:2,103790:2,103791:2,103792:2,103793:2,103794:0,
103795:0,103796:0,103797:0,103798:0,103799:0,103800:0,103801:0,103802:0,103803:0,103804:0,103805:0,103806:0,103807:0,103808:0,103809:0,103810:0,103811:0,103812:0,103813:0,103814:0,103815:0,103816:0,103817:0,103818:0,103819:0,103820:0,103821:0,103822:0,103823:0,103824:0,103825:0,103826:0,103827:0,103828:0,103829:0,103830:0,103831:0,103832:0,103833:0,103834:0,103835:0,103836:0,103837:0,103838:0,103839:0,103840:0,103841:0,103842:0,103843:0,103844:0,103845:0,103846:0,103847:0,103848:0,103849:0,103850:0,
103851:0,103852:0,103853:0,103854:0,103855:0,103856:0,103857:0,103858:0,103859:0,103860:0,103861:0,103862:0,103863:0,103864:0,103865:0,103866:0,103867:0,103868:0,103869:0,103870:0,103871:0,103900:2,103901:2,103902:2,103903:2,103904:2,103905:2,103906:2,103907:2,103908:2,103909:2,103910:2,103911:2,103912:2,103913:2,103914:2,103915:2,103916:2,103917:2,103918:2,103919:2,103920:2,103921:2,103922:2,103923:2,103924:2,103925:2,103926:2,103927:2,103928:2,103929:2,103930:2,103931:2,103932:2,103933:2,103934:2,
103935:2,103936:2,103937:2,103938:2,103939:2,103940:2,103941:2,103942:2,103943:2,103944:2,103945:2,103946:2,103947:2,103948:2,103949:2,103950:2,103951:2,103952:2,103953:2,103954:2,103955:2,103956:2,103957:2,103958:2,103959:2,103960:2,103961:2,103962:2,103963:2,103964:2,103965:2,103966:2,103967:2,103968:2,103969:2,103970:2,103971:2};l("extend-esri")&&(n.WKIDUnitConversion=k);return k})},"esri/geometry/screenUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/sniff ../kernel ./Point ./ScreenPoint ./Polyline ./Polygon ./Multipoint ./Extent".split(" "),
function(l,n,k,q,h,g,e,d,b,a){var c=function(){return 9>k("ie")?function(a,b,c,f,d,e,g,h,k){var l=[],n=Math.round,q,D=g.length,C,F,I,E,L,G;for(q=0;q<D;q++)if(C=g[q],E=h?h(C[0][0],C[0][1],k):C[0],1<(I=C.length)){L=n((E[0]-a)*c+d);G=n((b-E[1])*f+e);E=h?h(C[1][0],C[1][1],k):C[1];F=n((E[0]-a)*c+d);E=n((b-E[1])*f+e);l.push("M",L+","+G,"L",F+","+E);for(F=2;F<I;F++)E=h?h(C[F][0],C[F][1],k):C[F],L=n((E[0]-a)*c+d),G=n((b-E[1])*f+e),l.push(L+","+G)}else L=n((E[0]-a)*c+d),G=n((b-E[1])*f+e),l.push("M",L+","+
G);return l}:function(a,b,c,f,d,e,g,h,k){var l=[],n,q,D,C,F,I,E=Math.round;n=0;for(D=g?g.length:0;n<D;n++){F=g[n];l.push("M");q=0;for(C=F?F.length:0;q<C;q++)I=h?h(F[q][0],F[q][1],k):F[q],l.push(E((I[0]-a)*c+d)+","+E((b-I[1])*f+e))}return l}}(),f={toScreenPoint:function(a,b,c,f,d){var e=a.spatialReference,k=f.spatialReference,l=f.x;f=f.y;e&&(k&&!e.equals(k)&&e._canProject(k))&&(e=e.isWebMercator()?h.lngLatToXY(l,f):h.xyToLngLat(l,f,!0),l=e[0],f=e[1]);l=(l-a.xmin)*(b/a.getWidth());f=(a.ymax-f)*(c/a.getHeight());
d||(l=Math.round(l),f=Math.round(f));return new g(l,f)},toScreenGeometry:function(c,f,g,r){var k=c.xmin,n=c.ymax,q=f/c.getWidth(),y=g/c.getHeight(),w=l.forEach,z=Math.round;if(r instanceof h)return new h(z((r.x-k)*q),z((n-r.y)*y));if(r instanceof b){c=new b;var x=c.points;w(r.points,function(a,b){x[b]=[z((a[0]-k)*q),z((n-a[1])*y)]});return c}if(r instanceof a)return new a(z((r.xmin-k)*q),z((n-r.ymin)*y),z((r.xmax-k)*q),z((n-r.ymax)*q));if(r instanceof e){c=new e;var B=c.paths,D;w(r.paths,function(a,
b){D=B[b]=[];w(a,function(a,b){D[b]=[z((a[0]-k)*q),z((n-a[1])*y)]})});return c}if(r instanceof d){c=new d;var C=c.rings,F;w(r.rings,function(a,b){F=C[b]=[];w(a,function(a,b){F[b]=[z((a[0]-k)*q),z((n-a[1])*y)]})});return c}},_toScreenPath:function(a,b,f,d,g,k){var l=d instanceof e,n=a.spatialReference,w=d.spatialReference,q,x;n&&(w&&!n.equals(w)&&n._canProject(w))&&(n.isWebMercator()?q=h.lngLatToXY:(q=h.xyToLngLat,x=!0));return c(a.xmin,a.ymax,b/a.getWidth(),f/a.getHeight(),g,k,l?d.paths:d.rings,q,
x)},toMapPoint:function(a,b,c,f){return new h(a.xmin+f.x/(b/a.getWidth()),a.ymax-f.y/(c/a.getHeight()),a.spatialReference)},toMapGeometry:function(c,f,g,r){var k=c.xmin,n=c.ymax,q=c.spatialReference,y=f/c.getWidth(),w=g/c.getHeight(),z=l.forEach;if(r instanceof h)return new h(k+r.x/y,n-r.y/w,q);if(r instanceof b){c=new b(q);var x=c.points;z(r.points,function(a,b){x[b]=[k+a[0]/y,n-a[1]/w]});return c}if(r instanceof a)return new a(k+r.xmin/y,n-r.ymin/w,k+r.xmax/y,n-r.ymax/w,q);if(r instanceof e){c=
new e(q);var B=c.paths,D;z(r.paths,function(a,b){D=B[b]=[];z(a,function(a,b){D[b]=[k+a[0]/y,n-a[1]/w]})});return c}if(r instanceof d){c=new d(q);var C=c.rings,F;z(r.rings,function(a,b){F=C[b]=[];z(a,function(a,b){F[b]=[k+a[0]/y,n-a[1]/w]})});return c}}};k("extend-esri")&&n.mixin(n.getObject("geometry",!0,q),f);return f})},"esri/geometry/Polyline":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ./Point ./Extent".split(" "),
function(l,n,k,q,h,g,e,d,b,a){var c={type:"polyline",paths:null};l=l(d,{declaredClass:"esri.geometry.Polyline",constructor:function(a){k.mixin(this,c);this.paths=[];this._path=0;a&&(k.isArray(a)?this.paths=k.isArray(a[0][0])?a:[a]:a.paths?k.mixin(this,a):this.spatialReference=a,this.spatialReference&&(this.spatialReference=new e(this.spatialReference)));this.verifySR()},_extent:null,addPath:function(a){this._extent=null;this._path=this.paths.length;this.paths[this._path]=[];k.isArray(a[0])?n.forEach(a,
this._addPointArr,this):n.forEach(a,this._addPoint,this);return this},_addPointArr:function(a){this.paths[this._path].push(a)},_addPoint:function(a){this.paths[this._path].push([a.x,a.y])},_insertPoints:function(a,b){this._extent=null;this._path=b;this.paths[this._path]||(this.paths[this._path]=[]);n.forEach(a,this._addPoint,this)},_validateInputs:function(a,b){return null!==a&&void 0!==a&&(0>a||a>=this.paths.length)||null!==b&&void 0!==a&&(0>b||b>=this.paths[a].length)?!1:!0},getPoint:function(a,
c){if(this._validateInputs(a,c))return new b(this.paths[a][c],this.spatialReference)},setPoint:function(a,b,c){if(this._validateInputs(a,b))return this._extent=null,this.paths[a][b]=[c.x,c.y],this},insertPoint:function(a,b,c){if(this._validateInputs(a)&&g.isDefined(b)&&0<=b&&b<=this.paths[a].length)return this._extent=null,this.paths[a].splice(b,0,[c.x,c.y]),this},removePath:function(a){if(this._validateInputs(a,null)){this._extent=null;a=this.paths.splice(a,1)[0];var c,d=a.length,e=this.spatialReference;
for(c=0;c<d;c++)a[c]=new b(a[c],e);return a}},removePoint:function(a,c){if(this._validateInputs(a,c))return this._extent=null,new b(this.paths[a].splice(c,1)[0],this.spatialReference)},getExtent:function(){var b;if(this._extent)return b=new a(this._extent),b._partwise=this._partwise,b;b=this.paths;var c=b.length;if(c&&b[0].length){var d,e,g,h,k,l,n,w,q=h=b[0][0][0],x=k=b[0][0][1],B=Math.min,D=Math.max,C=this.spatialReference,F=[],I,E,L,G;for(l=0;l<c;l++){d=b[l];I=E=d[0]&&d[0][0];L=G=d[0]&&d[0][1];
w=d.length;for(n=0;n<w;n++)e=d[n],g=e[0],e=e[1],q=B(q,g),x=B(x,e),h=D(h,g),k=D(k,e),I=B(I,g),L=B(L,e),E=D(E,g),G=D(G,e);F.push(new a({xmin:I,ymin:L,xmax:E,ymax:G,spatialReference:C?C.toJson():null}))}this._extent={xmin:q,ymin:x,xmax:h,ymax:k,spatialReference:C?C.toJson():null};this._partwise=1<F.length?F:null;b=new a(this._extent);b._partwise=this._partwise;return b}},toJson:function(){var a={paths:k.clone(this.paths)},b=this.spatialReference;b&&(a.spatialReference=b.toJson());return a}});l.defaultProps=
c;q("extend-esri")&&(k.setObject("geometry.Polyline",l,h),h.geometry.defaultPolyline=c);return l})},"esri/geometry/Polygon":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ./Point ./Extent ./mathUtils".split(" "),function(l,n,k,q,h,g,e,d,b,a,c){var f={type:"polygon",rings:null},m=l(d,{declaredClass:"esri.geometry.Polygon",constructor:function(a){k.mixin(this,f);this.rings=[];this._ring=0;a&&(k.isArray(a)?this.rings=k.isArray(a[0][0])?
a:[a]:a.rings?k.mixin(this,a):this.spatialReference=a,this.spatialReference&&(this.spatialReference=new e(this.spatialReference)));this.verifySR()},_extent:null,addRing:function(a){this._extent=this._centroid=null;this._ring=this.rings.length;this.rings[this._ring]=[];k.isArray(a[0])?n.forEach(a,this._addPointArr,this):n.forEach(a,this._addPoint,this);return this},_addPointArr:function(a){this.rings[this._ring].push(a)},_addPoint:function(a){this.rings[this._ring].push([a.x,a.y])},_insertPoints:function(a,
b){this._extent=this._centroid=null;this._ring=b;this.rings[this._ring]||(this.rings[this._ring]=[]);n.forEach(a,this._addPoint,this)},_validateInputs:function(a,b){return null!==a&&void 0!==a&&(0>a||a>=this.rings.length)||null!==b&&void 0!==a&&(0>b||b>=this.rings[a].length)?!1:!0},getPoint:function(a,c){if(this._validateInputs(a,c))return new b(this.rings[a][c],this.spatialReference)},setPoint:function(a,b,c){if(this._validateInputs(a,b))return this._extent=this._centroid=null,this.rings[a][b]=[c.x,
c.y],this},insertPoint:function(a,b,c){if(this._validateInputs(a)&&g.isDefined(b)&&0<=b&&b<=this.rings[a].length)return this._extent=this._centroid=null,this.rings[a].splice(b,0,[c.x,c.y]),this},removeRing:function(a){if(this._validateInputs(a,null)){this._extent=this._centroid=null;a=this.rings.splice(a,1)[0];var c,f=a.length,m=this.spatialReference;for(c=0;c<f;c++)a[c]=new b(a[c],m);return a}},removePoint:function(a,c){if(this._validateInputs(a,c))return this._extent=this._centroid=null,new b(this.rings[a].splice(c,
1)[0],this.spatialReference)},getExtent:function(){var b;if(this._extent)return b=new a(this._extent),b._partwise=this._partwise,b;b=this.rings;var c=b.length;if(c&&b[0].length){var f,m,d,e,g,h,k,l,n=e=b[0][0][0],q=g=b[0][0][1],C=Math.min,F=Math.max,I=this.spatialReference,E=[],L,G,K,J;for(h=0;h<c;h++){f=b[h];L=G=f[0]&&f[0][0];K=J=f[0]&&f[0][1];l=f.length;for(k=0;k<l;k++)m=f[k],d=m[0],m=m[1],n=C(n,d),q=C(q,m),e=F(e,d),g=F(g,m),L=C(L,d),K=C(K,m),G=F(G,d),J=F(J,m);E.push(new a({xmin:L,ymin:K,xmax:G,
ymax:J,spatialReference:I?I.toJson():null}))}this._extent={xmin:n,ymin:q,xmax:e,ymax:g,spatialReference:I?I.toJson():null};this._partwise=1<E.length?E:null;b=new a(this._extent);b._partwise=this._partwise;return b}},contains:function(a){var c=this.rings,f,m=!1,d,e,g,h,k,l,n=c.length;f=this.spatialReference;d=a.spatialReference;var q=a.x;a=a.y;f&&(d&&!f.equals(d)&&f._canProject(d))&&(a=f.isWebMercator()?b.lngLatToXY(q,a):b.xyToLngLat(q,a,!0),q=a[0],a=a[1]);for(l=0;l<n;l++){f=c[l];g=f.length;for(k=
h=0;k<g;k++)if(h++,h===g&&(h=0),d=f[k],e=f[h],(d[1]<a&&e[1]>=a||e[1]<a&&d[1]>=a)&&d[0]+(a-d[1])/(e[1]-d[1])*(e[0]-d[0])<q)m=!m}return m},getCentroid:function(){if(null!=this._centroid)return this._centroid;var a,c,f,m,d=[],e,g;n.forEach(this.rings,function(b){a=c=f=0;n.forEach(b,function(m,d){d<b.length-1&&(e=b[d+1],g=m[0]*e[1]-e[0]*m[1],a+=(m[0]+e[0])*g,c+=(m[1]+e[1])*g,f+=g)});0<f&&(f*=-1);d.push([a,c,f/2])});d.sort(function(a,b){return a[2]-b[2]});m=6*d[0][2];return this._centroid=new b(d[0][0]/
m,d[0][1]/m,this.spatialReference)},isClockwise:function(a){var b=0,c,f=a.length,m=k.isArray(a[0])?function(a,b){return a[0]*b[1]-b[0]*a[1]}:function(a,b){return a.x*b.y-b.x*a.y};for(c=0;c<f;c++)b+=m(a[c],a[(c+1)%f]);return 0>=b/2},isSelfIntersecting:function(a){a=a||this;var b,f,m,d,e,g,h,k=a.rings.length,l;for(m=0;m<k;m++){for(b=0;b<a.rings[m].length-1;b++){e=[[a.rings[m][b][0],a.rings[m][b][1]],[a.rings[m][b+1][0],a.rings[m][b+1][1]]];for(f=m+1;f<k;f++)for(d=0;d<a.rings[f].length-1;d++)if(g=[[a.rings[f][d][0],
a.rings[f][d][1]],[a.rings[f][d+1][0],a.rings[f][d+1][1]]],(h=c._getLineIntersection2(e,g))&&!(h[0]===e[0][0]&&h[1]===e[0][1]||h[0]===g[0][0]&&h[1]===g[0][1]||h[0]===e[1][0]&&h[1]===e[1][1]||h[0]===g[1][0]&&h[1]===g[1][1]))return!0}d=a.rings[m].length;if(!(4>=d))for(b=0;b<d-3;b++){l=d-1;0===b&&(l=d-2);e=[[a.rings[m][b][0],a.rings[m][b][1]],[a.rings[m][b+1][0],a.rings[m][b+1][1]]];for(f=b+2;f<l;f++)if(g=[[a.rings[m][f][0],a.rings[m][f][1]],[a.rings[m][f+1][0],a.rings[m][f+1][1]]],(h=c._getLineIntersection2(e,
g))&&!(h[0]===e[0][0]&&h[1]===e[0][1]||h[0]===g[0][0]&&h[1]===g[0][1]||h[0]===e[1][0]&&h[1]===e[1][1]||h[0]===g[1][0]&&h[1]===g[1][1]))return!0}}return!1},toJson:function(){var a={rings:k.clone(this.rings)},b=this.spatialReference;b&&(a.spatialReference=b.toJson());return a}});m.defaultProps=f;m.createEllipse=function(a){var b=a.center.x,c=a.center.y,f=a.longAxis,d=a.shortAxis,e=a.numberOfPoints,g=a.map,h,k,l;a=[];var n=2*Math.PI/e;for(k=0;k<e;k++)h=Math.cos(k*n),l=Math.sin(k*n),h=g.toMap({x:f*h+
b,y:d*l+c}),a.push(h);a.push(a[0]);b=new m(g.spatialReference);b.addRing(a);return b};m.createCircle=function(a){return m.createEllipse({center:a.center,longAxis:a.r,shortAxis:a.r,numberOfPoints:a.numberOfPoints,map:a.map})};m.fromExtent=function(a){var b=a.xmin,c=a.ymin,f=a.xmax,d=a.ymax;a=a.spatialReference;return new m({rings:[[[b,c],[b,d],[f,d],[f,c],[b,c]]],spatialReference:a?a.toJson():null})};q("extend-esri")&&(k.setObject("geometry.Polygon",m,h),h.geometry.defaultPolygon=f,h.geometry.createEllipse=
m.createEllipse,h.geometry.createCircle=m.createCircle,h.geometry.isClockwise=m.prototype.isClockwise,h.geometry.polygonSelfIntersecting=m.prototype.isSelfIntersecting);return m})},"esri/geometry/Multipoint":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../SpatialReference ./Geometry ./Point ./Extent".split(" "),function(l,n,k,q,h,g,e,d){var b={type:"multipoint",points:null};l=l(g,{declaredClass:"esri.geometry.Multipoint",constructor:function(a){n.mixin(this,b);this.points=
[];a&&(a.points?n.mixin(this,a):this.spatialReference=a,this.spatialReference&&(this.spatialReference=new h(this.spatialReference)));this.verifySR()},_extent:null,addPoint:function(a){this._extent=null;n.isArray(a)?this.points.push(a):this.points.push([a.x,a.y]);return this},removePoint:function(a){if(this._validateInputs(a))return this._extent=null,new e(this.points.splice(a,1)[0],this.spatialReference)},getExtent:function(){if(this._extent)return new d(this._extent);var a=this.points,b=a.length;
if(b){var f=a[0],m,e,g=m=f[0],h=e=f[1],k=Math.min,l=Math.max,n=this.spatialReference,q,w;for(w=0;w<b;w++)f=a[w],q=f[0],f=f[1],g=k(g,q),h=k(h,f),m=l(m,q),e=l(e,f);this._extent={xmin:g,ymin:h,xmax:m,ymax:e,spatialReference:n?n.toJson():null};return new d(this._extent)}},_validateInputs:function(a){return null===a||0>a||a>=this.points.length?!1:!0},getPoint:function(a){if(this._validateInputs(a))return a=this.points[a],new e(a[0],a[1],this.spatialReference)},setPoint:function(a,b){if(this._validateInputs(a))return this._extent=
null,this.points[a]=[b.x,b.y],this},toJson:function(){var a={points:n.clone(this.points)},b=this.spatialReference;b&&(a.spatialReference=b.toJson());return a}});l.defaultProps=b;k("extend-esri")&&(n.setObject("geometry.Multipoint",l,q),q.geometry.defaultMultipoint=b);return l})},"esri/layers/GraphicsLayer":function(){define("dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/dom-attr dojo/dom-construct dojo/dom-style dojox/gfx dojox/gfx/matrix ./layer ../kernel ../lang ../sniff ../Color ../domUtils ../symbols/MarkerSymbol ../symbols/SimpleMarkerSymbol ../geometry/Point ../geometry/ScreenPoint ../geometry/Extent ../geometry/mathUtils ../geometry/screenUtils ../PluginTarget".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v,A,y,w,z,x){var B,D=-1!==d.renderer.toLowerCase().indexOf("svg"),C=-1!==d.renderer.toLowerCase().indexOf("canvas"),F=9>m("ie"),I=m("esri-touch"),E=l(null,{declaredClass:"esri.layers._GraphicsContainer",_setMap:function(a,b){var c,f=this._connects=[];this._map=a;C?(c=g.create("div",{style:"overflow: visible; position: absolute;"},b),this._surface={getEventSource:function(){return c}},f.push(n.connect(c,"onmousedown",this,this._canvasDownHandler)),f.push(n.connect(c,
"onmouseup",this,this._canvasUpHandler)),f.push(n.connect(c,"onclick",this,this._canvasClickHandler)),B.prototype._canvas=!0):(c=(this._surface=d.createSurface(b,a.width,a.height)).getEventSource(),e.set(c=F?c.parentNode:c,{overflow:"visible",position:"absolute"}));f.push(n.connect(a,"onResize",this,"_onResizeHandler"));return c},_onResizeHandler:function(a,b,c){a=this._surface.getEventSource();var f=this._map,m;F&&e.set(a=a.parentNode,{width:b+"px",height:c+"px",clip:"rect(0px "+b+"px "+c+"px 0px)"});
h.set(a,"width",b);h.set(a,"height",c);this._surface.declaredClass||q.forEach(a.childNodes,function(a){h.set(a,"width",b);h.set(a,"height",c)});f.loaded&&(f.graphics.suspended||(f.graphics._resized=!0),q.forEach(f.graphicsLayerIds,function(a){m=f.getLayer(a);m.suspended||(m._resized=!0)}))},_cleanUp:function(){q.forEach(this._connects,n.disconnect,n);this._map=this._surface=null},_processEvent:function(a){var b=this._map;a.screenPoint=new A(a.pageX-b.position.x,a.pageY-b.position.y);a.mapPoint=b.toMap(a.screenPoint)},
_canvasDownHandler:function(a){this._processEvent(a);this._downPt=a.screenPoint.x+","+a.screenPoint.y},_canvasUpHandler:function(a){this._processEvent(a);this._upPt=a.screenPoint.x+","+a.screenPoint.y},_tolerance:15,_isPrimaryMatch:function(a,b,c,f){if(!a.visible||!b)return!1;var m=b.getTransformedBoundingBox(),d;return m?(d=new y(m[0].x,m[0].y,m[2].x,m[2].y),delete d.spatialReference,I?d.intersects(c):d.contains(f)):q.some(b.children||[],function(a){m=a.getTransformedBoundingBox();d=new y(m[0].x,
m[0].y,m[2].x,m[2].y);delete d.spatialReference;return I?d.intersects(c):d.contains(f)})},_canvasClickHandler:function(a){if(this._downPt&&this._upPt&&this._downPt===this._upPt){this._processEvent(a);var b=this._map,c=q.map(b.graphicsLayerIds,function(a){return b.getLayer(a)});c.push(b.graphics);c.reverse();var c=q.filter(c,function(a){return a.loaded&&a._mouseEvents&&!a.suspended&&(!f.isDefined(a.opacity)||0<a.opacity)}),m=a.screenPoint,d=this._tolerance,e=m.x-d,g=m.y+d,h=m.x+d,d=m.y-d,k=new y(e,
d,h,g),e=b.toMap(new A(e,g)),h=b.toMap(new A(h,d)),g=e.spatialReference._getInfo(),r=new y(y.prototype._normalizeX(e.x,g).x,e.y,y.prototype._normalizeX(h.x,g).x,h.y,e.spatialReference),s;delete k.spatialReference;q.some(c,function(a){a=q.filter(a.graphics,function(a){return this._isPrimaryMatch(a,a.getDojoShape(),k,m)||!(!a._bgShape||!this._isPrimaryMatch(a,a._bgShape,k,m))},this);a.reverse();if(0<a.length){var b;q.some(a,function(a){return a.geometry&&r.intersects(a.geometry)?(b=a,!0):!1});if(b)return s=
b,!0}return!1},this);if(s&&(c=s.getLayer()))a.graphic=s,c.onClick(a)}}});B=l(a,{declaredClass:"esri.layers._GraphicsLayer",managedSuspension:!0,surfaceType:C?"canvas-2d":d.renderer,_eventMap:{"graphic-add":["graphic"],"graphic-remove":["graphic"]},constructor:function(a,b){if(a&&(k.isString(a)||k.isObject(a)&&a.layerDefinition))a=b;this._params=k.mixin({displayOnPan:!0,drawMode:!0,styling:!0},a||{});var c=this._params.dataAttributes;"string"===typeof c&&(c=[c]);this.styling=D?this._params.styling:
!0;this.dataAttributes=c;this.infoTemplate=a&&a.infoTemplate;this.graphics=[];this._draw=k.hitch(this,this._draw);this._refresh=k.hitch(this,this._refresh);this.registerConnectEvents()},getNode:function(){return this._div&&this._div.getEventSource()},setDrawMode:function(a){this._params.drawMode=a},renderer:null,_setMap:function(a,b){this.inherited(arguments);this._map=a;this._wrap=a.wrapAround180;this._srInfo=a.spatialReference._getInfo();this._canvas?(b=d.createSurface(b.getEventSource(),a.width,
a.height),e.set(b.rawNode,"position","absolute"),this._div=b.createGroup(),this._renderProto=this._div.constructor.prototype._render,this._div._render=k.hitch(this,this._canvasRender)):this._div=b.createGroup();this._bgGroup=this._div.createGroup();this._div.getEventSource().id=this.id+"_layer";var c=this.opacity;f.isDefined(c)&&1>c&&this.setOpacity(c,!0);return this._div},_unsetMap:function(a,b){q.forEach(this.graphics,function(a){a._shape=null});this._canvas?(b=this._div.getParent(),b._parent={},
g.destroy(b.rawNode),b.destroy()):(this._div.clear(),b.remove(this._div),g.destroy(this._div.getEventSource()));this._map=this._div=null;clearTimeout(this._wakeTimer);this._wakeTimer=null;this._disableDrawConnectors();this.inherited(arguments)},_onZoomStartHandler:function(){t.hide(this._div.getEventSource())},_onExtentChangeHandler:function(a,c,f,m){clearTimeout(this._wakeTimer);this._wakeTimer=null;f?(a=this._map.__visibleRect,c=this._div,this._evalSDRenderer(),this._refresh(!0),c.setTransform(b.translate({x:a.x,
y:a.y})),this._renderProto&&c.surface.pendingRender?this._dirty=!0:this.suspended||t.show(c.getEventSource())):this._resized&&(this._refresh(!1),this._resized=!1);if(0<this.graphics.length)this.onUpdate()},_canvasRender:function(){var a=this._div;this._dirty&&(delete this._dirty,this.suspended||t.show(a.getEventSource()));return this._renderProto.apply(a,arguments)},_refresh:function(a){var b=this.graphics,c=b.length,f,m=this._draw;for(f=0;f<c;f++)m(b[f],a)},refresh:function(){this._refresh(!0)},
redraw:function(){this._refresh(!0)},_onPanHandler:function(a,c){this._panDx=c.x;this._panDy=c.y;var f=this._map.__visibleRect;this._div.setTransform(b.translate({x:f.x+c.x,y:f.y+c.y}))},_onPanEndUpdateHandler:function(a,c){if(!this._params._child&&(c.x!==this._panDx||c.y!==this._panDy)){var f=this._map.__visibleRect;this._div.setTransform(b.translate({x:f.x,y:f.y}))}this._refresh(!1);if(this.graphics.length)this.onUpdate()},_onPanStartHandler:function(){t.hide(this._div.getEventSource())},_onPanEndHandler:function(){var a=
this._map.__visibleRect,c=this._div;c.setTransform(b.translate({x:a.x,y:a.y}));this._refresh(!1);this._renderProto&&c.surface.pendingRender?this._dirty=!0:t.show(c.getEventSource());if(this.graphics.length)this.onUpdate()},onSuspend:function(){this.inherited(arguments);t.hide(this._div.getEventSource());clearTimeout(this._wakeTimer);this._wakeTimer=null;this._disableDrawConnectors()},onResume:function(a){this.inherited(arguments);a.firstOccurrence&&this._evalSDRenderer();this._enableDrawConnectors();
this._wakeTimer=this._wakeTimer||setTimeout(k.hitch(this,function(){this.suspended||this._onExtentChangeHandler(null,null,!0)}),0)},_enableDrawConnectors:function(){var a=this._map,b=n.connect;this._disableDrawConnectors();this._params.displayOnPan?(this._params._child||(this._onPanHandler_connect=b(a,"onPan",this,"_onPanHandler")),this._onPanEndHandler_connect=b(a,"onPanEnd",this,"_onPanEndUpdateHandler")):(this._onPanStartHandler_connect=b(a,"onPanStart",this,"_onPanStartHandler"),this._onPanEndHandler_connect=
b(a,"onPanEnd",this,"_onPanEndHandler"));this._onZoomStartHandler_connect=b(a,"onZoomStart",this,"_onZoomStartHandler");this._onExtentChangeHandler_connect=b(a,"onExtentChange",this,"_onExtentChangeHandler")},_disableDrawConnectors:function(){var a=n.disconnect;a(this._onExtentChangeHandler_connect);a(this._onZoomStartHandler_connect);a(this._onPanHandler_connect);a(this._onPanStartHandler_connect);a(this._onPanEndHandler_connect);this._onExtentChangeHandler_connect=this._onZoomStartHandler_connect=
this._onPanHandler_connect=this._onPanStartHandler_connect=this._onPanEndHandler_connect=null},_updateExtent:function(a){var b=a.geometry;if(b){if(!(a._extent=b.getExtent())){var c,f;if("esri.geometry.Point"===b.declaredClass)c=b.x,f=b.y;else if("esri.geometry.Multipoint"===b.declaredClass)c=b.points[0][0],f=b.points[0][1];else{a._extent=null;return}a._extent=new y(c,f,c,f,b.spatialReference)}}else a._extent=null},_intersects:function(a,b,c){var f=a.spatialReference,m=b.spatialReference,d=f&&m&&!f.equals(m)&&
f._canProject(m)&&4326===m.wkid;if(this._wrap&&!c){c=[];var f=a._getFrameWidth(),e=this._srInfo,g=a._clip?a._getAvailExtent():a.extent,h,k,r,s,t=[];h=b._partwise;d&&(g=a.geographicExtent,e=m._getInfo());a=g._getParts(e);if(h&&h.length){b=[];m=0;for(d=h.length;m<d;m++)b=b.concat(h[m]._getParts(e))}else b=b._getParts(e);m=0;for(d=b.length;m<d;m++){r=b[m];e=0;for(g=a.length;e<g;e++)if(s=a[e],s.extent.intersects(r.extent)){h=0;for(k=r.frameIds.length;h<k;h++)c.push((s.frameIds[0]-r.frameIds[h])*f)}}m=
0;for(d=c.length;m<d;m++)h=c[m],q.indexOf(c,h)===m&&t.push(h);return t.length?t:null}return(d?a.geographicExtent:a.extent).intersects(b)?[0]:null},_defaultMarker:{type:"simplemarkersymbol",style:"square",size:1,xoffset:0,yoffset:0,angle:0},_draw:function(a,b){if(this._params.drawMode&&this._map&&!this.suspended)try{var c=a._extent,f,m,d=!D||this.styling,e=D&&this.dataAttributes,g=a.getDojoShape(),h;if(a.visible&&c&&(f=this._intersects(this._map,c,a.geometry._originOnly))&&(m=d?this._getSymbol(a):
this._defaultMarker)){if(!a._offsets||a._offsets.join(",")!==f.join(",")?a._offsets=f:h=!0,!g||b||!h){var k=a.geometry.type,c={graphic:a},s=a._bgShape,t=d&&!a.symbol?this._getRenderer(a):null,l=t&&t.backgroundFillSymbol;if("point"===k)this._isInvalidShape(m,g)&&this._removeShape(a),a._shape=this._drawPoint(this._div,a.geometry,m,a.getDojoShape(),f,t,a),d&&this._symbolizePoint(a.getDojoShape(),m,t,a);else if("multipoint"===k)this._drawMarkers(a,m,f,t),d&&this._symbolizeMarkers(a,m,t);else{var u,k=
m,n,w;d&&(k=(u=m.isInstanceOf(r)?m:null)?l:m);k&&k===l&&(n=this._bgGroup);s&&!n&&this._removeBgShape(a);k&&(!n&&this._isInvalidShape(k,a._shape)&&this._removeShape(a,!1),w=this._drawShape(a,f,n||this._div,n?s:a.getDojoShape()),d&&this._symbolizeShape(w,k,!l&&t,a),a[n?"_bgShape":"_shape"]=w);u&&(this._isInvalidShape(u,a._shape)&&this._removeShape(a,!1),w=this._drawPoint(this._div,a.geometry.getCentroid(),u,a._shape,f,t,a),this._symbolizePoint(w,u,t,a),a._shape=w)}C||(a._bgShape&&this._initNode(a,a._bgShape,
a._bgShape!==s,c,e),a._shape&&this._initNode(a,a._shape,a._shape!==g,c,e));c.node=a.getNode();this.onGraphicDraw(c)}}else g&&this._removeShape(a)}catch(x){this._errorHandler(x,a)}},_initNode:function(a,b,c,f,m){if(b=b&&b.getNode())b.e_graphic=a,this._addDataAttrs(a,m,b),c&&(f.node=b,this.onGraphicNodeAdd(f))},_removeShape:function(a,b){var c=a.getDojoShape(),f=c&&c.getNode();c&&(c.removeShape(),c.destroy());a._shape=a._offsets=null;!1!==b&&this._removeBgShape(a);if(f&&(f.e_graphic=null,!C))this.onGraphicNodeRemove({graphic:a,
node:f})},_removeBgShape:function(a){var b=a._bgShape,c=b&&b.getNode();b&&(b.removeShape(),b.destroy(),a._bgShape=null);if(c&&(c.e_graphic=null,!C))this.onGraphicNodeRemove({graphic:a,node:c})},_addDataAttrs:function(a,b,c){var f=a.attributes,m,d=b?b.length:0,e=this._getRenderer(a);if(c&&f){for(m=0;m<d;m++)(c=b[m])&&a.attr("data-"+c,f[c]);!this.styling&&e&&(e.getBreakIndex?(b=e.getBreakIndex(a),a.attr("data-class-break",-1!==b?b:null)):e.getUniqueValueInfo&&(b=e.getUniqueValueInfo(a),a.attr("data-unique-value",
b?b.value:null)))}},_drawShape:function(a,b,c,f){a=a.geometry;var m=a.type,d=this._map,e=d.extent,g=d.width,h=d.height,d=d.__visibleRect,k=[],r,s;r="extent"===m;if("rect"===m||r)k={x:0,y:0,spatialReference:a.spatialReference},k.x=r?a.xmin:a.x,k.y=r?a.ymax:a.y,m=z.toScreenPoint(e,g,h,k),k.x=r?a.xmax:a.x+a.width,k.y=r?a.ymin:a.y+a.height,a=z.toScreenPoint(e,g,h,k),b={x:m.x-d.x+b[0],y:m.y-d.y,width:Math.abs(a.x-m.x),height:Math.abs(a.y-m.y)},0===b.width&&(b.width=1),0===b.height&&(b.height=1),f=this._drawRect(c,
f,b);else if("polyline"===m||"polygon"===m){r=0;for(s=b.length;r<s;r++)k=k.concat(z._toScreenPath(e,g,h,a,-d.x+b[r],-d.y));f=this._drawPath(c,f,k);this._rendererLimits&&("polyline"===m?this._clipPolyline(f,a):this._clipPolygon(f,a))}return f},_drawRect:function(a,b,c){return b?b.setShape(c):a.createRect(c)},_drawImage:function(a,b,c){return b?b.setShape(c):a.createImage(c)},_drawCircle:function(a,b,c){return b?b.setShape(c):a.createCircle(c)},_drawPath:function(){return F?function(a,b,c,f){c=f?c:
c.join(" ");if(b)return b.setShape(c);b=a.createObject(f?d.Path:d.EsriPath,c);a._overrideSize(b.getEventSource());return b}:function(a,b,c,f){c=f?c:c.join(" ");return b?b.setShape(c):a.createPath(c)}}(),_drawText:function(a,b,c){return b?b.setShape(c):a.createText(c)},_evalSDRenderer:function(){var a=this._map,b=this.renderer,c;a&&(a.loaded&&b&&b.getRendererInfo)&&(c="zoom"===b.rangeType?b.getRendererInfoByZoom(a.getZoom()):b.getRendererInfoByScale(a.getScale()));this._rndForScale=c&&c.renderer},
_getRenderer:function(a){var b=this._rndForScale||this.renderer;a&&(b&&b.getObservationRenderer)&&(b=b.getObservationRenderer(a));return b},_getSymbol:function(a){var b=this._getRenderer();return a.symbol||b&&b.getSymbol(a)},_applyOpacity:function(a,b,c){b=b.getOpacity(c);null!=b&&(a=new s(a),a.a=b);return a},_symbolizeShape:function(a,b,c,f){var m=b.getStroke(),d=b.getFill();b=b.type;var e,g,h=c&&c.proportionalSymbolInfo?c.getSize(f):null;if(c&&(c.colorInfo||c.opacityInfo)&&"picturefillsymbol"!==
b)-1!==b.indexOf("linesymbol")?(e=m&&m.color,c.colorInfo&&(e=c.getColor(f)),e&&c.opacityInfo&&(e=this._applyOpacity(e,c,f))):d&&d.toCss&&(g=d,c.colorInfo&&(g=c.getColor(f)),g&&c.opacityInfo&&(g=this._applyOpacity(g,c,f)));a.setStroke(null==h&&!e?m:k.mixin({},m,h&&{width:h},e&&{color:e})).setFill(g||d)},_smsToPath:function(){return F?function(a,b,c,f,m,d,e,g,h){switch(b){case a.STYLE_SQUARE:return["M",m+","+e,"L",d+","+e,d+","+g,m+","+g,"X","E"];case a.STYLE_CROSS:return["M",c+","+e,"L",c+","+g,"M",
m+","+f,"L",d+","+f,"E"];case a.STYLE_X:return["M",m+","+e,"L",d+","+g,"M",m+","+g,"L",d+","+e,"E"];case a.STYLE_DIAMOND:return["M",c+","+e,"L",d+","+f,c+","+g,m+","+f,"X","E"];case a.STYLE_TARGET:return["M",m+","+e,"L",d+","+e,d+","+g,m+","+g,m+","+e,"M",m-h+","+f,"L",m+","+f,"M",c+","+(e-h),"L",c+","+e,"M",d+h+","+f,"L",d+","+f,"M",c+","+(g+h),"L",c+","+g,"E"]}}:function(a,b,c,f,m,d,e,g,h){switch(b){case a.STYLE_SQUARE:return["M",m+","+e,d+","+e,d+","+g,m+","+g,"Z"];case a.STYLE_CROSS:return["M",
c+","+e,c+","+g,"M",m+","+f,d+","+f];case a.STYLE_X:return["M",m+","+e,d+","+g,"M",m+","+g,d+","+e];case a.STYLE_DIAMOND:return["M",c+","+e,d+","+f,c+","+g,m+","+f,"Z"];case a.STYLE_TARGET:return["M",m+","+e,d+","+e,d+","+g,m+","+g,m+","+e,"M",m-h+","+f,m+","+f,"M",c+","+(e-h),c+","+e,"M",d+h+","+f,d+","+f,"M",c+","+(g+h),c+","+g]}}}(),_pathStyles:{square:1,cross:1,x:1,diamond:1,target:1},_typeMaps:{picturemarkersymbol:"image",picturefillsymbol:"path",simplefillsymbol:"path",simplelinesymbol:"path",
cartographiclinesymbol:"path",textsymbol:"text"},_isInvalidShape:function(a,b){var c=b&&b.shape&&b.shape.type,f=a&&a.type,m=a&&a.style;f&&(m=this._typeMaps[f]||m);this._pathStyles[m]&&(m="path");return!(!c||!(m&&c!==m))},_drawPoint:function(a,c,f,m,d,e,g){var h=f.type,k=this._map,r=k.__visibleRect,s=z.toScreenPoint(k.extent,k.width,k.height,c).offset(-r.x+d[0],-r.y),k=s.x,r=s.y,t;c=[];var l=e&&e.rotationInfo?e.getRotationAngle(g):null,n=e&&e.proportionalSymbolInfo;e=n?e.getSize(g,{shape:f.style}):
null;l&&c.push(b.rotategAt(l,s));(0!==f.xoffset||0!==f.yoffset)&&c.push(b.translate(f.xoffset,-f.yoffset));0!==f.angle&&c.push(b.rotategAt(f.angle,s));if("simplemarkersymbol"===h)switch(t=f.style,h=Math.round,e=n?e:f.size,t){case u.STYLE_SQUARE:case u.STYLE_CROSS:case u.STYLE_X:case u.STYLE_DIAMOND:f=isNaN(e)?16:e/2;t=this._drawPath(a,m,this._smsToPath(u,t,k,r,h(k-f),h(k+f),h(r-f),h(r+f)));break;case u.STYLE_TARGET:s=f._targetWidth/2;n=f._targetHeight/2;t=this._drawPath(a,m,this._smsToPath(u,t,k,
r,h(k-s),h(k+s),h(r-n),h(r+n),f._spikeSize));break;case u.STYLE_PATH:t=this._drawPath(a,m,f.path,!0);f=t.getBoundingBox();a=this._getScaleMatrix(f,e);(1!==a.xx||1!==a.yy)&&c.push(b.scaleAt(a.xx,a.yy,s));c.push(b.translate(-(f.x+f.width/2)+k,-(f.y+f.height/2)+r));break;default:f=isNaN(e)?16:e/2,t=this._drawCircle(a,m,{cx:k,cy:r,r:f})}else"shieldlabelsymbol"===h?(t=f.width,s=f.height,m=a.createGroup(),t=a.createImage({x:k-t/2,y:r-s/2,width:t,height:s,src:f.url}),m.add(t),null!=f.font&&(r+=0.2*f.getHeight(),
a=a.createText({type:"text",text:f.text,x:k,y:r,align:"middle",decoration:f.decoration,rotated:f.rotated,kerning:f.kerning}),a.setFont(f.font),a.setFill(f.color),m.add(a)),t=m):"picturemarkersymbol"===h?(t=n?e:f.width,s=n?e:f.height,t=this._drawImage(a,m,{x:k-t/2,y:r-s/2,width:t,height:s,src:f.url})):"textsymbol"===h&&(t=this._drawText(a,m,{type:"text",text:f.text,x:k,y:r,align:f.getSVGAlign(),decoration:f.decoration||f.font&&f.font.decoration,rotated:f.rotated,kerning:f.kerning}),D&&(a=t.getNode(),
k=f.getSVGBaseline(),f=f.getSVGBaselineShift(),a&&(a.setAttribute("dominant-baseline",k),f&&a.setAttribute("baseline-shift",f))));t.setTransform(b.multiply(c));t._wrapOffsets=d;return t},_getScaleMatrix:function(a,b){var c=a.width/a.height,f=1,m=1;isNaN(b)||(1<c?(f=b/a.width,m=b/c/a.height):(m=b/a.height,f=b*c/a.width));return{xx:f,yy:m}},_symbolizePoint:function(a,b,c,f){var m=b.type;if(!("shieldlabelsymbol"===m||"picturemarkersymbol"===m)){var d;"textsymbol"===m?a.setFont(b.font).setFill(b.getFill()):
(d=b.getStroke(),b=b.getFill(),c&&(c.colorInfo&&(b=c.getColor(f)),b&&c.opacityInfo&&(b=this._applyOpacity(b,c,f))),"simplemarkersymbol"===m&&a.setFill(b).setStroke(d))}},_drawMarkers:function(a,b,c,f){var m=a.geometry,d=m.points,e=a.getDojoShape()||this._div.createGroup(),g,h,k=d.length,r=[],s=0,t,l=c?c.length:0;e.children[0]&&this._isInvalidShape(b,e.children[0])&&e.clear();for(h=0;h<k;h++){g=d[h];for(t=0;t<l;t++)r[0]=c[t],this._drawPoint(e,{x:g[0],y:g[1],spatialReference:m.spatialReference},b,e.children[s++],
r,f,a)}b=e.children.length;if(k*c.length<b)for(h=b-1;h>=k*c.length;h--)e.children[h].removeShape();a._shape=e},_symbolizeMarkers:function(a,b,c){var f=a.getDojoShape().children,m,d=f.length;for(m=0;m<d;m++)this._symbolizePoint(f[m],b,c,a)},_errorHandler:function(a,b){a.message=b?"Unable to draw graphic (geometry:"+(b.geometry?b.geometry.declaredClass:null)+", symbol:"+(b.symbol?b.symbol.declaredClass:null)+"): "+a.message:"Unable to draw graphic (null): "+a.message;this.inherited(arguments)},_rendererLimits:function(){var a,
b,c;m("ff")?(a=16125,b=-32250,c=32250):F?(a=1E5,b=-1E5,c=1E5):m("chrome")&&6>m("chrome")&&(a=8150,b=-1E4,c=1E4);if(a)return{clipLimit:a,rangeMin:b,rangeMax:c,clipBBox:[-a,-a,a,a],clipSegments:[[[-a,-a],[a,-a]],[[a,-a],[a,a]],[[a,a],[-a,a]],[[-a,a],[-a,-a]]]}}(),_clipPolyline:function(a,b){var c=this._getCorners(a,b),f=c.br,m=this._rendererLimits,d=m.rangeMin,e=m.rangeMax,g=m.clipBBox,h=m.clipSegments,m=this._isPointWithinRange,k=this._isPointWithinBBox,r=this._getClipperIntersection,s=this._getPlaneIndex;
if(!m(c.tl,d,e)||!m(f,d,e)){F&&this._createSegments(a);var t=[];q.forEach(a.segments,function(a){a=a.args;var b=a.length,c=[],f;for(f=0;f<b;f+=2){var m=[a[f],a[f+1]],d=[a[f+2],a[f+3]],e=k(m,g),l=k(d,g);if(e^l){if(l=r([m,d],h))e?(f?c.push(l[1]):c.push(m,l[1]),t.push(c),c=[]):c.push(l[1],d)}else e?f?c.push(d):c.push(m,d):(l=s(m,g),e=s(d,g),-1===l||(-1===e||l===e)||(m=r([m,d],h,!0),0<m.length&&(m[l]||(l=m[l[0]]?l[0]:l[1]),m[e]||(e=m[e[0]]?e[0]:e[1]),d=m[l],m=m[e],d&&c.push(d),m&&(c.push(m),t.push(c),
c=[]))))}t.push(c)});a.setShape(this._getPathStringFromPaths(t))}},_clipPolygon:function(a,b){var c=this._getCorners(a,b),f=c.br,m=this._rendererLimits,d=m.clipLimit,e=m.rangeMin,g=m.rangeMax,h=m.clipBBox,r=m.clipSegments,m=this._isPointWithinRange,s=this._isPointWithinBBox,t=this._getClipperIntersection,l=this._getPlaneIndex,u=w._pointLineDistance;if(!m(c.tl,e,g)||!m(f,e,g))F&&this._createSegments(a),c=q.map(a.segments,function(a){var b=a.args,c=b.length,f=[];a=[];var m;for(m=0;m<c;m+=2){var e=[b[m],
b[m+1]],g=[b[m+2],b[m+3]];if(m===c-2){f.push(e);break}var n=s(e,h),w=s(g,h);f.push(e);if(n^w){if(w=t([e,g],r))e=w[1],e[n?"inOut":"outIn"]=!0,f.push(e),a.push([n?"INOUT":"OUTIN",f.length-1,w[0]])}else if(!n){var n=l(e,h),x=l(g,h);-1===n||(-1===x||n===x)||(w=t([e,g],r,!0),0<w.length?(w[n]||(n=w[n[0]]?n[0]:n[1]),w[x]||(x=w[x[0]]?x[0]:x[1]),e=w[n],g=w[x],e&&(e.outIn=!0,f.push(e),a.push(["OUTIN",f.length-1,n])),g&&(g.inOut=!0,f.push(g),a.push(["INOUT",f.length-1,x]))):k.isArray(n)&&k.isArray(x)&&(w=n.concat(x),
w.sort(),"0123"===w.join("")&&(w=[],3===n[0]+n[1]?w.push([d,-d],[-d,d]):w.push([-d,-d],[d,d]),n=u(w[0],[e,g]),e=u(w[1],[e,g]),f.push(n<e?w[0]:w[1]))))}}var z=h[0],v=h[1],A=h[2],I=h[3];q.forEach(f,function(a){a[0]<z&&(a[1]>=v&&a[1]<=I?a[0]=z:(a[0]=z,a[1]=a[1]<v?v:I))});q.forEach(f,function(a){a[1]<v&&(a[0]>=z&&a[0]<=A?a[1]=v:(a[1]=v,a[0]=a[0]<z?z:A))});q.forEach(f,function(a){a[0]>A&&(a[1]>=v&&a[1]<=I?a[0]=A:(a[0]=A,a[1]=a[1]<v?v:I))});q.forEach(f,function(a){a[1]>I&&(a[0]>=z&&a[0]<=A?a[1]=I:(a[1]=
I,a[0]=a[0]<z?z:A))});b=0;c=a.length;if(0<c){do{g=a[b];m=a[(b+1)%c];if(g[2]===m[2]&&"INOUT"===g[0]&&"OUTIN"===m[0])if(e=g[1],m=m[1],e<m)for(e+=1;e<m;e++)f[e][2]=!0;else if(e>m){for(e+=1;e<f.length;e++)f[e][2]=!0;for(e=0;e<m;e++)f[e][2]=!0}b=(b+1)%c}while(0!==b)}c=f[0];b=f[f.length-1];c[2]&&(b[2]=!0,q.some(a,function(a){return 1===a[1]?(f.splice(f.length-1,0,k.clone(f[1])),!0):!1}));f=q.filter(f,function(a){return a[2]?!1:!0});for(b=0;b<f.length-1;b++)if(c=f[b],(m=f[b+1])&&!(c[0]!==m[0]||c[1]!==m[1]))m.outIn?
c.outIn=!0:m.inOut&&(c.inOut=!0),f.splice(b+1,1);c=Math.abs;a=[];for(b=0;b<f.length-1;b++){g=f[b];e=g[0];g=g[1];n=c(e)===d;w=c(g)===d;m=f[b+1];x=m[0];m=m[1];var B=c(x)===d,C=c(m)===d;n&&C?a.push([b+1,[e,m]]):w&&B&&a.push([b+1,[x,g]])}for(b=a.length-1;0<=b;b--)m=a[b],e=f[m[0]-1],c=f[m[0]],!e.outIn&&(!e.inOut&&!c.outIn&&!c.inOut)&&f.splice(m[0],0,m[1]);c=f[0];b=f[f.length-1];(c[0]!==b[0]||c[1]!==b[1])&&f.push(c);return f}),a.setShape(this._getPathStringFromPaths(c))},_getCorners:function(a,b){if(F){var c=
this._map,f=b.getExtent(),m=f.spatialReference,d=c.toScreen(new v(f.xmin,f.ymax,m)),c=c.toScreen(new v(f.xmax,f.ymin,m));return{tl:d,br:c}}d=a.getTransformedBoundingBox();return{tl:d[0],br:d[2]}},_createSegments:function(a){a.shape.path=a.vmlPath;a.segmented=!1;a._confirmSegmented();var b=a.segments;1<b.length&&(a.segments=q.filter(b,function(a,b,c){b=c[b+1];return"M"===a.action&&b&&"L"===b.action?(a.args=a.args.concat(b.args),!0):!1}))},_getPathStringFromPaths:function(a){F?(a=q.map(a,function(a){return"m "+
q.map(a,function(a,b){return(1===b?"l ":"")+a.join(",")}).join(" ")}),a.push("e")):a=q.map(a,function(a){return"M "+q.map(a,function(a){return a.join(",")}).join(" ")});return a.join(" ")},_isPointWithinBBox:function(a,b){var c=b[1],f=b[2],m=b[3],d=a[0],e=a[1];return d>b[0]&&d<f&&e>c&&e<m?!0:!1},_isPointWithinRange:function(a,b,c){var f=a.x;a=a.y;return f<b||a<b||f>c||a>c?!1:!0},_getClipperIntersection:function(a,b,c){var f,m=w._getLineIntersection2,d=Math.round,e={length:0};for(f=0;4>f;f++){var g=
m(a,b[f]);if(g)if(g[0]=d(g[0]),g[1]=d(g[1]),c)e[f]=g,e.length++;else return[f,g]}return c?e:null},_getPlaneIndex:function(a,b){var c=a[0],f=a[1],m=b[0],d=b[1],e=b[2],g=b[3];return c<=m?f>=d&&f<=g?3:f<d?[0,3]:[2,3]:f<=d?c>=m&&c<=e?0:c<m?[3,0]:[1,0]:c>=e?f>=d&&f<=g?1:f<d?[0,1]:[2,1]:f>=g?c>=m&&c<=e?2:c<m?[3,2]:[1,2]:-1},onGraphicAdd:function(){},onGraphicRemove:function(){},onGraphicNodeAdd:function(){},onGraphicNodeRemove:function(){},onGraphicDraw:function(){},onGraphicsClear:function(){},onRendererChange:function(){},
onOpacityChange:function(){},setInfoTemplate:function(a){this.infoTemplate=a},add:function(a,b){if(a._graphicsLayer===this)return a;b||this.graphics.push(a);a._graphicsLayer=this;a._layer=this;this._updateExtent(a);this._draw(a);if(!b)this.onGraphicAdd(a);return a},remove:function(a,b){if(!b){var c;if(-1===(c=q.indexOf(this.graphics,a)))return null;a=this.graphics.splice(c,1)[0]}a.getDojoShape()&&this._removeShape(a);a._shape=a._graphicsLayer=null;this.onGraphicRemove(a);return a},clear:function(a,
b){for(var c=this.graphics;0<c.length;)this.remove(c[0]);if(!b)this.onGraphicsClear()},_setIEOpacity:function(a,b){var c=a&&a.getNode();if(c){var f=a.strokeStyle,m=c.stroke;f&&m&&(m.opacity=f.color.a*b);f=a.fillStyle;m=c.fill;f&&m&&("tile"===m.type?e.set(c,"opacity",b):m.opacity=f.a*b)}},setOpacity:function(a,b){if(b||this.opacity!=a){var c=this._div;c&&(F?(q.forEach(this.graphics,function(b){this._setIEOpacity(b._shape,a);this._setIEOpacity(b._bgShape,a)},this),c._esriIeOpacity=a,this._bgGroup._esriIeOpacity=
a):this._canvas?e.set(c.getEventSource(),"opacity",a):c.getEventSource().setAttribute("opacity",a));this.opacity=a;if(!b)this.onOpacityChange(a)}},setRenderer:function(a){this.renderer=a;this._evalSDRenderer();this.onRendererChange()}});l=l([B,x],{declaredClass:"esri.layers.GraphicsLayer",constructor:function(){this.enableMouseEvents=k.hitch(this,this.enableMouseEvents);this.disableMouseEvents=k.hitch(this,this.disableMouseEvents);this._processEvent=k.hitch(this,this._processEvent);this._initLayer()},
_initLayer:function(){this.loaded=!0;this.onLoad(this)},_setMap:function(){var a=this.inherited("_setMap",arguments);this.enableMouseEvents();return a},_unsetMap:function(){this.disableMouseEvents();this.inherited("_unsetMap",arguments)},_processEvent:function(a){var b=this._map,c=a.target,f;a.screenPoint=new A(a.pageX-b.position.x,a.pageY-b.position.y);for(a.mapPoint=b.toMap(a.screenPoint);c&&!(f=c.e_graphic);)c=c.parentNode;if(f)return a.graphic=f,a},_onMouseOverHandler:function(a){if(this._processEvent(a))this.onMouseOver(a)},
_onMouseMoveHandler:function(a){if(this._processEvent(a))this.onMouseMove(a)},_onMouseDragHandler:function(a){if(this._processEvent(a))this.onMouseDrag(a)},_onMouseOutHandler:function(a){if(this._processEvent(a))this.onMouseOut(a)},_onMouseDownHandler:function(a){this._downGr=this._downPt=null;this._processEvent(a)&&(n.disconnect(this._onmousemove_connect),n.disconnect(this._onmousedrag_connect),this._onmousedrag_connect=n.connect(this._div.getEventSource(),"onmousemove",this,"_onMouseDragHandler"),
this._downGr=a.graphic,this._downPt=a.screenPoint.x+","+a.screenPoint.y,this.onMouseDown(a))},_onMouseUpHandler:function(a){this._upGr=this._upPt=null;this._processEvent(a)&&(n.disconnect(this._onmousedrag_connect),n.disconnect(this._onmousemove_connect),this._onmousemove_connect=n.connect(this._div.getEventSource(),"onmousemove",this,"_onMouseMoveHandler"),this._upGr=a.graphic,this._upPt=a.screenPoint.x+","+a.screenPoint.y,this.onMouseUp(a))},_onClickHandler:function(a){if(this._processEvent(a)){var b=
this._downGr,f=this._upGr;b&&(f&&b===f&&this._downPt===this._upPt)&&(F&&(c._ieGraphic=a.graphic),this.onClick(a))}},_onDblClickHandler:function(a){if(this._processEvent(a))this.onDblClick(a)},onMouseOver:function(){},onMouseMove:function(){},onMouseDrag:function(){},onMouseOut:function(){},onMouseDown:function(){},onMouseUp:function(){},onClick:function(){},onDblClick:function(){},enableMouseEvents:function(){if(!this._mouseEvents){var a=n.connect,b=this._div.getEventSource();C||(this._onmouseover_connect=
a(b,"onmouseover",this,"_onMouseOverHandler"),this._onmousemove_connect=a(b,"onmousemove",this,"_onMouseMoveHandler"),this._onmouseout_connect=a(b,"onmouseout",this,"_onMouseOutHandler"),this._onmousedown_connect=a(b,"onmousedown",this,"_onMouseDownHandler"),this._onmouseup_connect=a(b,"onmouseup",this,"_onMouseUpHandler"),this._onclick_connect=a(b,"onclick",this,"_onClickHandler"),this._ondblclick_connect=a(b,"ondblclick",this,"_onDblClickHandler"));this._mouseEvents=!0}},disableMouseEvents:function(){if(this._mouseEvents){var a=
n.disconnect;a(this._onmouseover_connect);a(this._onmousemove_connect);a(this._onmousedrag_connect);a(this._onmouseout_connect);a(this._onmousedown_connect);a(this._onmouseup_connect);a(this._onclick_connect);a(this._ondblclick_connect);this._mouseEvents=!1}}});l._GraphicsContainer=E;l._GraphicsLayer=B;m("extend-esri")&&(k.setObject("layers.GraphicsLayer",l,c),k.setObject("layers._GraphicsContainer",E,c),k.setObject("layers._GraphicsLayer",B,c));return l})},"dojox/gfx":function(){define(["dojo/_base/lang",
"./gfx/_base","./gfx/renderer!"],function(l,n,k){n.switchTo(k);return n})},"dojox/gfx/renderer":function(){define(["./_base","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/_base/config"],function(l,n,k,q,h){var g=null;return{load:function(e,d,b){function a(){d(["dojox/gfx/"+c],function(a){l.renderer=c;g=a;b(a)})}if(g&&"force"!=e)b(g);else{var c=h.forceGfxRenderer;e=!c&&(n.isString(h.gfxRenderer)?h.gfxRenderer:"svg,vml,canvas,silverlight").split(",");for(var f,m;!c&&e.length;)switch(e.shift()){case "svg":"SVGAngle"in
q.global&&(c="svg");break;case "silverlight":try{k("ie")?(f=new ActiveXObject("AgControl.AgControl"))&&f.IsVersionSupported("1.0")&&(m=!0):navigator.plugins["Silverlight Plug-In"]&&(m=!0)}catch(s){m=!1}finally{f=null}m&&(c="silverlight");break;case "canvas":q.global.CanvasRenderingContext2D&&(c="canvas")}"canvas"===c&&!1!==h.canvasEvents&&(c="canvasWithEvents");"svg"==c&&"undefined"!=typeof window.svgweb?window.svgweb.addOnLoad(a):a()}}}})},"esri/layers/layer":function(){define("dojo/_base/declare dojo/_base/config dojo/_base/connect dojo/_base/lang dojo/_base/Deferred dojo/_base/json dojo/has ../Evented ../kernel ../lang ../request ../deferredUtils ../urlUtils ../SpatialReference ../geometry/Extent".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t){var r=l([d],{declaredClass:"esri.layers.Layer",_eventMap:{error:["error"],load:["layer"],"opacity-change":["opacity"],"update-end":["error"],"visibility-change":["visible"]},constructor:function(b,c){b&&q.isString(b)?this._url=m.urlToObject(this.url=b):(this.url=this._url=null,(c=c||b)&&c.layerDefinition&&(c=null));this.spatialReference=new s(4326);this.initialExtent=new t(-180,-90,180,90,new s(4326));this._map=this._div=null;this.normalization=!0;c&&(c.id&&
(this.id=c.id),!1===c.visible&&(this.visible=!1),a.isDefined(c.opacity)&&(this.opacity=c.opacity),a.isDefined(c.minScale)&&this.setMinScale(c.minScale),a.isDefined(c.maxScale)&&this.setMaxScale(c.maxScale),this.attributionDataUrl=c.attributionDataUrl||"",this.hasAttributionData=!!this.attributionDataUrl,a.isDefined(c.showAttribution)&&(this.showAttribution=c.showAttribution),this.className=c.className,this.refreshInterval=c.refreshInterval||0);this._errorHandler=q.hitch(this,this._errorHandler);this.refresh=
q.hitch(this,this.refresh);if(this.managedSuspension){var f=this._setMap;this._setMap=function(a){var b=f.apply(this,arguments);this.evaluateSuspension();if(this.suspended&&!a.loaded)var c=k.connect(a,"onLoad",this,function(){k.disconnect(c);c=null;this.evaluateSuspension()});return b}}this.registerConnectEvents()},id:null,visible:!0,opacity:1,loaded:!1,loadError:null,minScale:0,maxScale:0,visibleAtMapScale:!1,suspended:!0,attributionDataUrl:"",hasAttributionData:!1,showAttribution:!0,refreshInterval:0,
_errorHandler:function(a){this.loaded||(this.loadError=a);this.onError(a)},_setMap:function(a,b,c,f){this._map=a;this._lyrZEHandle=k.connect(a,"onZoomEnd",this,this._processMapScale);if(a.loaded)this.visibleAtMapScale=this._isMapAtVisibleScale();else var m=k.connect(a,"onLoad",this,function(){k.disconnect(m);m=null;this._processMapScale()})},_unsetMap:function(a,b){k.disconnect(this._lyrZEHandle);this._toggleRT();this._map=this._lyrZEHandle=null;this.suspended=!0},_cleanUp:function(){this._map=this._div=
null},_fireUpdateStart:function(){this.updating||(this.updating=!0,this.attr("data-updating",""),this._toggleRT(),this.onUpdateStart(),this._map&&this._map._incr())},_fireUpdateEnd:function(a,b){this.updating&&(this.updating=!1,this.attr("data-updating"),this._toggleRT(!0),this.onUpdateEnd(a,b),this._map&&this._map._decr())},_getToken:function(){var a=this._url,b=this.credential;return a&&a.query&&a.query.token||b&&b.token||void 0},_findCredential:function(){this.credential=b.id&&this._url&&b.id.findCredential(this._url.path)},
_useSSL:function(){var a=this._url,b=/^http:/i;this.url&&(this.url=this.url.replace(b,"https:"));a&&a.path&&(a.path=a.path.replace(b,"https:"))},refresh:function(){},show:function(){this.setVisibility(!0)},hide:function(){this.setVisibility(!1)},setMinScale:function(a){this.setScaleRange(a)},setMaxScale:function(a){this.setScaleRange(null,a)},setScaleRange:function(b,c){var f=a.isDefined(b),m=a.isDefined(c);this.loaded||(this._hasMin=this._hasMin||f,this._hasMax=this._hasMax||m);var d=this.minScale,
e=this.maxScale;this.minScale=(f?b:this.minScale)||0;this.maxScale=(m?c:this.maxScale)||0;if(d!==this.minScale||e!==this.maxScale)this.onScaleRangeChange(),this._processMapScale()},suspend:function(){this._suspended=!0;this.evaluateSuspension()},resume:function(){this._suspended=!1;this.evaluateSuspension()},canResume:function(){return this.loaded&&this._map&&this._map.loaded&&this.visible&&this.visibleAtMapScale&&!this._suspended},evaluateSuspension:function(){this.canResume()?this.suspended&&this._resume():
this.suspended||this._suspend()},_suspend:function(){this.suspended=!0;this.attr("data-suspended","");this._toggleRT();this.onSuspend();if(this._map)this._map.onLayerSuspend(this)},_resume:function(){this.suspended=!1;this.attr("data-suspended");var a=void 0===this._resumedOnce,b=this.className,c=this.getNode();if(a&&(this._resumedOnce=!0,b&&c)){var f=c.getAttribute("class")||"";RegExp("(^|\\s)"+b+"(\\s|$)","i").test(f)||c.setAttribute("class",f+((f?" ":"")+b))}this._toggleRT(!0);this.onResume({firstOccurrence:a});
if(this._map)this._map.onLayerResume(this)},_processMapScale:function(){var a=this.visibleAtMapScale;this.visibleAtMapScale=this._isMapAtVisibleScale();a!==this.visibleAtMapScale&&(this.onScaleVisibilityChange(),this.evaluateSuspension())},isVisibleAtScale:function(a){return a?r.prototype._isMapAtVisibleScale.apply(this,arguments):!1},_isMapAtVisibleScale:function(a){if(!a&&(!this._map||!this._map.loaded))return!1;a=a||this._map.getScale();var b=this.minScale,c=this.maxScale,f=!b,m=!c;!f&&a<=b&&(f=
!0);!m&&a>=c&&(m=!0);return f&&m},getAttributionData:function(){var a=this.attributionDataUrl,b=new h(f._dfdCanceller);this.hasAttributionData&&a?(b._pendingDfd=c({url:a,content:{f:"json"},handleAs:"json",callbackParamName:"callback"}),b._pendingDfd.then(function(a){b.callback(a)},function(a){b.errback(a)})):(a=Error("Layer does not have attribution data"),a.log=n.isDebug,b.errback(a));return b},getResourceInfo:function(){var a=this.resourceInfo;return q.isString(a)?g.fromJson(a):q.clone(a)},getMap:function(){return this._map},
getNode:function(){return this._div},attr:function(a,b){var c=this.getNode();c&&(null==b?c.removeAttribute(a):c.setAttribute(a,b));return this},setRefreshInterval:function(a){var b=this.refreshInterval;this.refreshInterval=a;this._toggleRT();a&&!this.updating&&!this.suspended&&this._toggleRT(!0);if(b!==a)this.onRefreshIntervalChange();return this},_toggleRT:function(a){a&&this.refreshInterval?(clearTimeout(this._refreshT),this._refreshT=setTimeout(this.refresh,6E4*this.refreshInterval)):this._refreshT&&
(clearTimeout(this._refreshT),this._refreshT=null)},setNormalization:function(a){this.normalization=a},setVisibility:function(a){this.visible!==a&&(this.visible=a,this.onVisibilityChange(this.visible),this.evaluateSuspension());this.attr("data-hidden",a?null:"")},onLoad:function(){},onVisibilityChange:function(){},onScaleRangeChange:function(){},onScaleVisibilityChange:function(){},onSuspend:function(){},onResume:function(){},onUpdate:function(){},onUpdateStart:function(){},onUpdateEnd:function(){},
onRefreshIntervalChange:function(){},onError:function(){}});e("extend-esri")&&q.setObject("layers.Layer",r,b);return r})},"esri/request":function(){define("require dojo/_base/array dojo/_base/config dojo/_base/Deferred dojo/_base/lang dojo/_base/url dojo/_base/xhr dojo/io/script dojo/io/iframe dojo/dom-construct dojo/io-query ./kernel ./config ./sniff ./lang ./urlUtils ./deferredUtils".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u){function v(a){a=new g(a);return(a.host+(a.port?":"+a.port:
"")).toLowerCase()}function A(m,g,l,u){var w=!1,x=!1,z;t.isDefined(g)&&(h.isObject(g)?(w=!!g.useProxy,x=!!g.usePost,z=g.crossOrigin):w=!!g);m=h.mixin({},m);m._ssl&&(m.url=m.url.replace(/^http:/i,"https:"));g=m.content;var A=m.url,C=l&&m.form,y=D;z=t.isDefined(z)?z:y.useCors;m.load=function(a){var b;a&&(a.error?(b=h.mixin(Error(),a.error),b.log=k.isDebug):"error"===a.status&&(b=h.mixin(Error(),a),b.log=k.isDebug),b&&!t.isDefined(b.httpCode)&&(b.httpCode=b.code));return b||a};m.error=function(a,b){b&&
b.xhr&&b.xhr.abort();a instanceof Error||(a=h.mixin(Error(),a));a.log=k.isDebug;y.errorHandler(a,b);return a};m._token&&(m.content=m.content||{},m.content.token=m._token);var O=0,P;g&&A&&(P=c.objectToQuery(g),O=P.length+A.length+1,s("esri-url-encodes-apostrophe")&&(O=P.replace(/'/g,"%27").length+A.length+1));m.timeout=t.isDefined(m.timeout)?m.timeout:y.timeout;m.handleAs=m.handleAs||"json";try{var Q,W,X=z&&r.canUseXhr(m.url)&&!/https?:\/\/[^\/]+\/[^\/]+\/admin\/?(\/.*)?$/i.test(m.url),R=r.hasSameOrigin(m.url,
window.location.href)||X,U=x||l||O>y.postLength?!0:!1,S=!R&&-1!==m.handleAs.indexOf("json")&&m.callbackParamName&&!l?!0:!1,V=r.getProxyRule(m.url)||y.alwaysUseProxy||w||(!S||U)&&!R?!0:!1;l&&(!s("esri-file-upload")&&!V&&X)&&(V=!0);if(V)if(Q=r.getProxyUrl(A,z),W=Q.path,Q._xo&&(X=!0),!U&&W.length+1+O>y.postLength&&(U=!0),m.url=W+"?"+A,U)m.content=h.mixin(Q.query||{},g);else{var da=c.objectToQuery(h.mixin(Q.query||{},g));da&&(m.url+="?"+da);m.content=null}if(S&&!U)return!t.isDefined(m.isAsync)&&4>s("ff")&&
(m.isAsync=!0),d.get(B?B(m):m);var $=m.headers;if(X&&(!$||!$.hasOwnProperty("X-Requested-With")))$=m.headers=$||{},$["X-Requested-With"]=null;if(l){var ba=m.callbackParamName||"callback.html",T=m.callbackElementName||"textarea",Z,ca,aa,Y,ea=C.elements?C.elements.length:0,fa;if(g=m.content)for(Z in g)if(aa=g[Z],t.isDefined(aa)){ca=null;for(Y=0;Y<ea;Y++)if(fa=C.elements[Y],fa.name===Z){ca=fa;break}ca?ca.value=aa:u?C.append(Z,aa):C.appendChild(a.create("input",{type:"hidden",name:Z,value:aa}))}if(s("esri-file-upload"))n.forEach(C.elements,
function(a){a.name===ba&&C.removeChild(a)}),m.contentType=!1,m.postData=u?C:new FormData(C),delete m.form;else{C.enctype="multipart/form-data";9>s("ie")&&(C.encoding="multipart/form-data");C.method="post";n.some(C.elements,function(a){return a.name===ba})||C.appendChild(a.create("input",{type:"hidden",name:ba,value:T}));if(-1!==A.toLowerCase().indexOf("addattachment")||-1!==A.toLowerCase().indexOf("updateattachment"))m.url=A+(-1===A.indexOf("?")?"?":"\x26")+ba+"\x3d"+T,V&&(m.url=W+"?"+m.url);delete m.content}}if(X&&
!m.hasOwnProperty("withCredentials"))if(u=V?W:A,-1!==n.indexOf(D.webTierAuthServers,v(u)))m.withCredentials=!0;else if(f.id){var ma=f.id.findServerInfo(u);ma&&ma.webTierAuth&&(m.withCredentials=!0)}m=B?B(m):m;return U?l&&!s("esri-file-upload")?b.send(m):e.post(m):e.get(m)}catch(ha){return l=new q,l.errback(m.error(ha)),l}}function y(a){var b=D._processedCorsServers,c=-1,c=r.canUseXhr(a,!0);-1<c&&D.corsEnabledServers.splice(c,1);b[v(a)]=1;return c}function w(a){var b=D._processedCorsServers;if(D.corsDetection&&
D.useCors)try{var c=v(a);s("esri-cors")&&(a&&-1!==a.toLowerCase().indexOf("/rest/services")&&!r.hasSameOrigin(a,window.location.href)&&!r.canUseXhr(a)&&!b[c])&&(b[c]=-1,e.get({url:a.substring(0,a.toLowerCase().indexOf("/rest/")+6)+"info",content:{f:"json"},failOk:!0,handleAs:"json",headers:{"X-Requested-With":null}}).then(function(f){f?(b[c]=2,r.canUseXhr(a)||D.corsEnabledServers.push(c)):b[c]=1},function(a){b[c]=1}))}catch(f){}}function z(a){B=a}function x(a,b){function c(m){m._pendingDfd=A(a,b,
O,N);if(!m._pendingDfd){m.ioArgs=m._pendingDfd&&m._pendingDfd.ioArgs;var d=Error("Deferred object is missing");d.log=k.isDebug;a._usrDfd=null;m.errback(d);m._pendingDfd=null;return m}m._pendingDfd.addCallback(function(b){m.ioArgs=m._pendingDfd&&m._pendingDfd.ioArgs;a._usrDfd=null;m.callback(b);m._pendingDfd=null}).addErrback(function(c){var d,e,h;c&&(d=c.code,e=c.subcode,h=(h=c.messageCode)&&h.toUpperCase());if(c&&403==d&&(4==e||c.message&&-1<c.message.toLowerCase().indexOf("ssl")&&-1===c.message.toLowerCase().indexOf("permission"))){if(!a._ssl){a._ssl=
a._sslFromServer=!0;a._usrDfd=m;x(a,b);return}}else if(c&&415==c.status){if(y(a.url),!a._err415){a._err415=1;a._usrDfd=m;x(a,b);return}}else if(f.id&&-1!==n.indexOf(f.id._errorCodes,d)&&!f.id._isPublic(a.url)&&!g&&(403!=d||-1===n.indexOf(C,h)&&(!t.isDefined(e)||2==e))){m._pendingDfd=f.id.getCredential(a.url,{token:a._token,error:c});m._pendingDfd.addCallback(function(c){a._token=c.token;a._usrDfd=m;a._credential=c;a._ssl=a._sslFromServer||c.ssl;x(a,b)}).addErrback(function(b){a._usrDfd=null;m.errback(b);
m._pendingDfd=null});return}m.ioArgs=m._pendingDfd&&m._pendingDfd.ioArgs;a._usrDfd=null;m.errback(c);m._pendingDfd=null})}a.url=r.fixUrl(a.url);"file:"!==window.location.protocol&&(a.url=r.getAbsoluteUrl(a.url));b=b||{};var m,d=a.form,g=b.disableIdentityLookup,h=b._preLookup,z=!1;if(s("esri-workers")&&!1!==D.useWorkers)if(!0===b.useWorkers||!0===D.useWorkers)z=!0;else if(b.workerOptions){var B=b.workerOptions;if(B.callback||B.worker&&B.worker.worker instanceof Worker)z=!0}var N=d&&d.append,O=d&&(d.elements?
n.some(d.elements,function(a){return"file"===a.type}):N),P=-1!==a.url.toLowerCase().indexOf("token\x3d")||a.content&&a.content.token||O&&n.some(d.elements,function(a){return"token"===a.name})?1:0;w(a.url);if(a._usrDfd)m=a._usrDfd;else{m=new q(u._dfdCanceller);m.addCallback(function(b){/\/sharing\/rest\/accounts\/self/i.test(a.url)&&(!P&&!a._token&&b.user&&b.user.username)&&D.webTierAuthServers.push(v(a.url));if(b=a._credential){var c=f.id.findServerInfo(b.server);if(c=c&&c.owningSystemUrl)c=c.replace(/\/?$/,
"/sharing"),(b=f.id.findCredential(c,b.userId))&&-1===f.id._getIdenticalSvcIdx(c,b)&&b.resources.splice(0,0,c)}});m.addBoth(function(b){delete a._credential;if(b&&(!s("ie")||!b.nodeType))b._ssl=a._ssl});var Q=a.load,W=a.error;Q&&m.addCallback(function(a){var b=m._pendingDfd,b=b&&b.ioArgs;return Q.call(b&&b.args,a,b)});W&&m.addErrback(function(a){var b=m._pendingDfd,b=b&&b.ioArgs;return W.call(b&&b.args,a,b)})}if(f.id&&!P&&!a._token&&!f.id._isPublic(a.url)&&(!g||h))if(d=f.id.findCredential(a.url))a._token=
d.token,a._ssl=d.ssl;z?b.workerOptions&&b.workerOptions.worker?(e=b.workerOptions.worker,c(m)):l(["./workers/RequestClient"],function(a){if(b.workerOptions){var f=b.workerOptions;e=a.getClient(f.callback,f.cbFunction)}else e=a.getClient();c(m)}):c(m);return m}var B,D=m.defaults.io,C=["COM_0056","COM_0057"];x._request=A;x._disableCors=y;x._detectCors=w;x.setRequestPreCallback=z;s("extend-esri")&&(f.request=x,f._request=A,f._disableCors=y,f._detectCors=w,f.setRequestPreCallback=z);return x})},"dojo/_base/url":function(){define(["./kernel"],
function(l){var n=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,k=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/,q=function(){for(var h=arguments,g=[h[0]],e=1;e<h.length;e++)if(h[e]){var d=new q(h[e]+""),g=new q(g[0]+"");if(""==d.path&&!d.scheme&&!d.authority&&!d.query)null!=d.fragment&&(g.fragment=d.fragment),d=g;else if(!d.scheme&&(d.scheme=g.scheme,!d.authority&&(d.authority=g.authority,"/"!=d.path.charAt(0)))){for(var g=(g.path.substring(0,g.path.lastIndexOf("/")+
1)+d.path).split("/"),b=0;b<g.length;b++)"."==g[b]?b==g.length-1?g[b]="":(g.splice(b,1),b--):0<b&&(!(1==b&&""==g[0])&&".."==g[b]&&".."!=g[b-1])&&(b==g.length-1?(g.splice(b,1),g[b-1]=""):(g.splice(b-1,2),b-=2));d.path=g.join("/")}g=[];d.scheme&&g.push(d.scheme,":");d.authority&&g.push("//",d.authority);g.push(d.path);d.query&&g.push("?",d.query);d.fragment&&g.push("#",d.fragment)}this.uri=g.join("");h=this.uri.match(n);this.scheme=h[2]||(h[1]?"":null);this.authority=h[4]||(h[3]?"":null);this.path=
h[5];this.query=h[7]||(h[6]?"":null);this.fragment=h[9]||(h[8]?"":null);null!=this.authority&&(h=this.authority.match(k),this.user=h[3]||null,this.password=h[4]||null,this.host=h[6]||h[7],this.port=h[9]||null)};q.prototype.toString=function(){return this.uri};return l._Url=q})},"dojo/io/script":function(){define("../_base/connect ../_base/kernel ../_base/lang ../sniff ../_base/window ../_base/xhr ../dom ../dom-construct ../request/script ../aspect".split(" "),function(l,n,k,q,h,g,e,d,b,a){n.deprecated("dojo/io/script",
"Use dojo/request/script.","2.0");var c={get:function(f){var m,d=this._makeScriptDeferred(f,function(a){m&&m.cancel()}),e=d.ioArgs;g._ioAddQueryToUrl(e);g._ioNotifyStart(d);m=b.get(e.url,{timeout:f.timeout,jsonp:e.jsonp,checkString:f.checkString,ioArgs:e,frameDoc:f.frameDoc,canAttach:function(a){e.requestId=a.id;e.scriptId=a.scriptId;e.canDelete=a.canDelete;return c._canAttach(e)}},!0);a.around(m,"isValid",function(a){return function(b){c._validCheck(d);return a.call(this,b)}});m.then(function(){d.resolve(d)}).otherwise(function(a){d.ioArgs.error=
a;d.reject(a)});return d},attach:b._attach,remove:b._remove,_makeScriptDeferred:function(a,m){var d=g._ioSetArgs(a,m||this._deferredCancel,this._deferredOk,this._deferredError),e=d.ioArgs;e.id=n._scopeName+"IoScript"+(a.callbackSuffix||this._counter++);e.canDelete=!1;e.jsonp=a.callbackParamName||a.jsonp;e.jsonp&&(e.query=e.query||"",0<e.query.length&&(e.query+="\x26"),e.query+=e.jsonp+"\x3d"+(a.frameDoc?"parent.":"")+n._scopeName+".io.script.jsonp_"+e.id+"._jsonpCallback",e.frameDoc=a.frameDoc,e.canDelete=
!0,d._jsonpCallback=this._jsonpCallback,this["jsonp_"+e.id]=d);d.addBoth(function(a){e.canDelete&&(a instanceof Error?c["jsonp_"+e.id]._jsonpCallback=function(){delete c["jsonp_"+e.id];if(e.requestId)n.global[b._callbacksProperty][e.requestId]()}:c._addDeadScript(e))});return d},_deferredCancel:function(a){a.canceled=!0},_deferredOk:function(a){a=a.ioArgs;return a.json||a.scriptLoaded||a},_deferredError:function(a,b){return a},_deadScripts:[],_counter:1,_addDeadScript:function(a){c._deadScripts.push({id:a.id,
frameDoc:a.frameDoc});a.frameDoc=null},_validCheck:function(a){if((a=c._deadScripts)&&0<a.length){for(var b=0;b<a.length;b++)c.remove(a[b].id,a[b].frameDoc),delete c["jsonp_"+a[b].id],a[b].frameDoc=null;c._deadScripts=[]}return!0},_ioCheck:function(a){a=a.ioArgs;return a.json||a.scriptLoaded&&!a.args.checkString?!0:(a=a.args.checkString)&&eval("typeof("+a+") !\x3d 'undefined'")},_resHandle:function(a){c._ioCheck(a)?a.callback(a):a.errback(Error("inconceivable dojo.io.script._resHandle error"))},_canAttach:function(){return!0},
_jsonpCallback:function(a){this.ioArgs.json=a;if(this.ioArgs.requestId)n.global[b._callbacksProperty][this.ioArgs.requestId](a)}};k.setObject("dojo.io.script",c);return c})},"dojo/request/script":function(){define("module ./watch ./util ../_base/kernel ../_base/array ../_base/lang ../on ../dom ../dom-construct ../has ../_base/window".split(" "),function(l,n,k,q,h,g,e,d,b,a,c){function f(a,b){a.canDelete&&u._remove(a.id,b.options.frameDoc,!0)}function m(a){x&&x.length&&(h.forEach(x,function(a){u._remove(a.id,
a.frameDoc);a.frameDoc=null}),x=[]);return a.options.jsonp?!a.data:!0}function s(a){return!!this.scriptLoaded}function t(a){return(a=a.options.checkString)&&eval("typeof("+a+') !\x3d\x3d "undefined"')}function r(a,b){if(this.canDelete){var c=this.response.options;x.push({id:this.id,frameDoc:c.ioArgs?c.ioArgs.frameDoc:c.frameDoc});c.ioArgs&&(c.ioArgs.frameDoc=null);c.frameDoc=null}b?this.reject(b):this.resolve(a)}function u(a,b,c){var d=k.parseArgs(a,k.deepCopy({},b));a=d.url;b=d.options;var h=k.deferred(d,
f,m,b.jsonp?null:b.checkString?t:s,r);g.mixin(h,{id:v+A++,canDelete:!1});b.jsonp&&(RegExp("[?\x26]"+b.jsonp+"\x3d").test(a)||(a+=(~a.indexOf("?")?"\x26":"?")+b.jsonp+"\x3d"+(b.frameDoc?"parent.":"")+v+"_callbacks."+h.id),h.canDelete=!0,z[h.id]=function(a){d.data=a;h.handleResponse(d)});k.notify&&k.notify.emit("send",d,h.promise.cancel);if(!b.canAttach||b.canAttach(h)){var l=u._attach(h.id,a,b.frameDoc);if(!b.jsonp&&!b.checkString)var x=e(l,y,function(a){if("load"===a.type||w.test(l.readyState))x.remove(),
h.scriptLoaded=a})}n(h);return c?h:h.promise}a.add("script-readystatechange",function(a,b){return"undefined"!==typeof b.createElement("script").onreadystatechange&&("undefined"===typeof a.opera||"[object Opera]"!==a.opera.toString())});var v=l.id.replace(/[\/\.\-]/g,"_"),A=0,y=a("script-readystatechange")?"readystatechange":"load",w=/complete|loaded/,z=q.global[v+"_callbacks"]={},x=[];u.get=u;u._attach=function(a,b,f){f=f||c.doc;var m=f.createElement("script");m.type="text/javascript";m.src=b;m.id=
a;m.async=!0;m.charset="utf-8";return f.getElementsByTagName("head")[0].appendChild(m)};u._remove=function(a,c,f){b.destroy(d.byId(a,c));z[a]&&(f?z[a]=function(){delete z[a]}:delete z[a])};u._callbacksProperty=v+"_callbacks";return u})},"dojo/io/iframe":function(){define("../_base/config ../_base/json ../_base/kernel ../_base/lang ../_base/xhr ../sniff ../_base/window ../dom ../dom-construct ../query require ../aspect ../request/iframe".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m){k.deprecated("dojo/io/iframe",
"Use dojo/request/iframe.","2.0");g=m._iframeName;g=g.substring(0,g.lastIndexOf("_"));var s=q.delegate(m,{create:function(){return s._frame=m.create.apply(m,arguments)},get:null,post:null,send:function(a){var b,c=h._ioSetArgs(a,function(a){b&&b.cancel()},function(a){var c=null;a=a.ioArgs;try{var f=a.handleAs;"xml"===f||"html"===f?c=b.response.data:(c=b.response.text,"json"===f?c=n.fromJson(c):"javascript"===f&&(c=k.eval(c)))}catch(m){c=m}return c},function(a,b){b.ioArgs._hasError=!0;return a}),e=
c.ioArgs,g="GET",s=d.byId(a.form);a.method&&("POST"===a.method.toUpperCase()&&s)&&(g="POST");a={method:g,handleAs:"json"===a.handleAs||"javascript"===a.handleAs?"text":a.handleAs,form:a.form,query:s?null:a.content,data:s?a.content:null,timeout:a.timeout,ioArgs:e};a.method&&(a.method=a.method.toUpperCase());if(l.ioPublish&&k.publish&&!1!==e.args.ioPublish)var w=f.after(m,"_notifyStart",function(a){a.options.ioArgs===e&&(w.remove(),h._ioNotifyStart(c))},!0);b=m(e.url,a,!0);e._callNext=b._callNext;b.then(function(){c.resolve(c)}).otherwise(function(a){c.ioArgs.error=
a;c.reject(a)});return c},_iframeOnload:e.global[g+"_onload"]});q.setObject("dojo.io.iframe",s);return s})},"dojo/query":function(){define("./_base/kernel ./has ./dom ./on ./_base/array ./_base/lang ./selector/_loader ./selector/_loader!default".split(" "),function(l,n,k,q,h,g,e,d){function b(a,b){var c=function(c,f){if("string"==typeof f&&(f=k.byId(f),!f))return new b([]);var m="string"==typeof c?a(c,f):c?c.end&&c.on?c:[c]:[];return m.end&&m.on?m:new b(m)};c.matches=a.match||function(a,b,f){return 0<
c.filter([a],b,f).length};c.filter=a.filter||function(a,b,f){return c(b,f).filter(function(b){return-1<h.indexOf(a,b)})};if("function"!=typeof a){var f=a.search;a=function(a,b){return f(b||document,a)}}return c}n.add("array-extensible",function(){return 1==g.delegate([],{length:1}).length&&!n("bug-for-in-skips-shadowed")});var a=Array.prototype,c=a.slice,f=a.concat,m=h.forEach,s=function(a,b,f){b=[0].concat(c.call(b,0));f=f||l.global;return function(c){b[0]=c;return a.apply(f,b)}},t=function(a){var b=
this instanceof r&&n("array-extensible");"number"==typeof a&&(a=Array(a));var c=a&&"length"in a?a:arguments;if(b||!c.sort){for(var f=b?this:[],m=f.length=c.length,d=0;d<m;d++)f[d]=c[d];if(b)return f;c=f}g._mixin(c,u);c._NodeListCtor=function(a){return r(a)};return c},r=t,u=r.prototype=n("array-extensible")?[]:{};r._wrap=u._wrap=function(a,b,c){a=new (c||this._NodeListCtor||r)(a);return b?a._stash(b):a};r._adaptAsMap=function(a,b){return function(){return this.map(s(a,arguments,b))}};r._adaptAsForEach=
function(a,b){return function(){this.forEach(s(a,arguments,b));return this}};r._adaptAsFilter=function(a,b){return function(){return this.filter(s(a,arguments,b))}};r._adaptWithCondition=function(a,b,c){return function(){var f=arguments,m=s(a,f,c);if(b.call(c||l.global,f))return this.map(m);this.forEach(m);return this}};m(["slice","splice"],function(b){var c=a[b];u[b]=function(){return this._wrap(c.apply(this,arguments),"slice"==b?this:null)}});m(["indexOf","lastIndexOf","every","some"],function(a){var b=
h[a];u[a]=function(){return b.apply(l,[this].concat(c.call(arguments,0)))}});g.extend(t,{constructor:r,_NodeListCtor:r,toString:function(){return this.join(",")},_stash:function(a){this._parent=a;return this},on:function(a,b){var c=this.map(function(c){return q(c,a,b)});c.remove=function(){for(var a=0;a<c.length;a++)c[a].remove()};return c},end:function(){return this._parent?this._parent:new this._NodeListCtor(0)},concat:function(a){var b=c.call(this,0),m=h.map(arguments,function(a){return c.call(a,
0)});return this._wrap(f.apply(b,m),this)},map:function(a,b){return this._wrap(h.map(this,a,b),this)},forEach:function(a,b){m(this,a,b);return this},filter:function(a){var b=arguments,c=this,f=0;if("string"==typeof a){c=v._filterResult(this,b[0]);if(1==b.length)return c._stash(this);f=1}return this._wrap(h.filter(c,b[f],b[f+1]),this)},instantiate:function(a,b){var c=g.isFunction(a)?a:g.getObject(a);b=b||{};return this.forEach(function(a){new c(b,a)})},at:function(){var a=new this._NodeListCtor(0);
m(arguments,function(b){0>b&&(b=this.length+b);this[b]&&a.push(this[b])},this);return a._stash(this)}});var v=b(d,t);l.query=b(d,function(a){return t(a)});v.load=function(a,c,f){e.load(a,c,function(a){f(b(a,t))})};l._filterQueryResult=v._filterResult=function(a,b,c){return new t(v.filter(a,b,c))};l.NodeList=v.NodeList=t;return v})},"dojo/request/iframe":function(){define("module require ./watch ./util ./handlers ../_base/lang ../io-query ../query ../has ../dom ../dom-construct ../_base/window ../NodeList-dom".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f){function m(a){return!this.isFulfilled()}function s(a){return!!this._finished}function t(a,b){if(!b)try{var c=a.options,f=u.doc(u._frame),m=c.handleAs;if("html"!==m){if("xml"===m)if("html"===f.documentElement.tagName.toLowerCase()){d("a",f.documentElement).orphan();var e=f.documentElement.innerText,e=e.replace(/>\s+</g,"\x3e\x3c");a.text=g.trim(e)}else a.data=f;else a.text=f.getElementsByTagName("textarea")[0].value;h(a)}else a.data=f}catch(k){b=k}b?this.reject(b):
this._finished?this.resolve(a):this.reject(Error("Invalid dojo/request/iframe request state"))}function r(a){this._callNext()}function u(a,b,c){var f=q.parseArgs(a,q.deepCreate(y,b),!0);a=f.url;b=f.options;if("GET"!==b.method&&"POST"!==b.method)throw Error(b.method+" not supported by dojo/request/iframe");u._frame||(u._frame=u.create(u._iframeName,A+"();"));a=q.deferred(f,null,m,s,t,r);a._callNext=function(){this._calledNext||(this._calledNext=!0,u._currentDfd=null,u._fireNextRequest())};a._legacy=
c;u._dfdQueue.push(a);u._fireNextRequest();k(a);return c?a:a.promise}var v=l.id.replace(/[\/\.\-]/g,"_"),A=v+"_onload";f.global[A]||(f.global[A]=function(){var b=u._currentDfd;if(b){var f=a.byId(b.response.options.form)||b._tmpForm;if(f){for(var m=b._contentToClean,d=0;d<m.length;d++)for(var e=m[d],g=0;g<f.childNodes.length;g++){var h=f.childNodes[g];if(h.name===e){c.destroy(h);break}}b._originalAction&&f.setAttribute("action",b._originalAction);b._originalMethod&&(f.setAttribute("method",b._originalMethod),
f.method=b._originalMethod);b._originalTarget&&(f.setAttribute("target",b._originalTarget),f.target=b._originalTarget)}b._tmpForm&&(c.destroy(b._tmpForm),delete b._tmpForm);b._finished=!0}else u._fireNextRequest()});var y={method:"POST"};u.create=function(a,m,d){if(f.global[a])return f.global[a];if(f.global.frames[a])return f.global.frames[a];d||(b("config-useXDomain")&&!b("config-dojoBlankHtmlUrl")&&console.warn("dojo/request/iframe: When using cross-domain Dojo builds, please save dojo/resources/blank.html to your domain and set dojoConfig.dojoBlankHtmlUrl to the path on your domain to blank.html"),
d=b("config-dojoBlankHtmlUrl")||n.toUrl("dojo/resources/blank.html"));m=c.place('\x3ciframe id\x3d"'+a+'" name\x3d"'+a+'" src\x3d"'+d+'" onload\x3d"'+m+'" style\x3d"position: absolute; left: 1px; top: 1px; height: 1px; width: 1px; visibility: hidden"\x3e',f.body());return f.global[a]=m};u.doc=function(a){if(a.contentDocument)return a.contentDocument;var b=a.name;if(b){var c=f.doc.getElementsByTagName("iframe");if(a.document&&c[b].contentWindow&&c[b].contentWindow.document)return c[b].contentWindow.document;
if(f.doc.frames[b]&&f.doc.frames[b].document)return f.doc.frames[b].document}return null};u.setSrc=function(a,b,c){a=f.global.frames[a.name];a.contentWindow&&(a=a.contentWindow);try{c?a.location.replace(b):a.location=b}catch(m){}};u._iframeName=v+"_IoIframe";u._notifyStart=function(){};u._dfdQueue=[];u._currentDfd=null;u._fireNextRequest=function(){var b;try{if(!u._currentDfd&&u._dfdQueue.length){do b=u._currentDfd=u._dfdQueue.shift();while(b&&(b.canceled||b.isCanceled&&b.isCanceled())&&u._dfdQueue.length);
if(!b||b.canceled||b.isCanceled&&b.isCanceled())u._currentDfd=null;else{var m=b.response,d=m.options,h=b._contentToClean=[],k=a.byId(d.form),r=q.notify,s=d.data||null,l;!b._legacy&&"POST"===d.method&&!k?k=b._tmpForm=c.create("form",{name:v+"_form",style:{position:"absolute",top:"-1000px",left:"-1000px"}},f.body()):"GET"===d.method&&(k&&-1<m.url.indexOf("?"))&&(l=m.url.slice(m.url.indexOf("?")+1),s=g.mixin(e.queryToObject(l),s));if(k){if(!b._legacy){var t=k;do t=t.parentNode;while(t!==f.doc.documentElement);
t||(k.style.position="absolute",k.style.left="-1000px",k.style.top="-1000px",f.body().appendChild(k));k.name||(k.name=v+"_form")}if(s){var t=function(a,b){c.create("input",{type:"hidden",name:a,value:b},k);h.push(a)},n;for(n in s){var A=s[n];if(g.isArray(A)&&1<A.length)for(l=0;l<A.length;l++)t(n,A[l]);else k[n]?k[n].value=A:t(n,A)}}var y=k.getAttributeNode("action"),J=k.getAttributeNode("method"),H=k.getAttributeNode("target");m.url&&(b._originalAction=y?y.value:null,y?y.value=m.url:k.setAttribute("action",
m.url));if(b._legacy){if(!J||!J.value)J?J.value=d.method:k.setAttribute("method",d.method)}else b._originalMethod=J?J.value:null,J?J.value=d.method:k.setAttribute("method",d.method);b._originalTarget=H?H.value:null;H?H.value=u._iframeName:k.setAttribute("target",u._iframeName);k.target=u._iframeName;r&&r.emit("send",m,b.promise.cancel);u._notifyStart(m);k.submit()}else d="",m.options.data&&(d=m.options.data,"string"!==typeof d&&(d=e.objectToQuery(d))),t=m.url+(-1<m.url.indexOf("?")?"\x26":"?")+d,
r&&r.emit("send",m,b.promise.cancel),u._notifyStart(m),u.setSrc(u._frame,t,!0)}}}catch(M){b.reject(M)}};q.addCommonMethods(u,["GET","POST"]);return u})},"dojo/NodeList-dom":function(){define("./_base/kernel ./query ./_base/array ./_base/lang ./dom-class ./dom-construct ./dom-geometry ./dom-attr ./dom-style".split(" "),function(l,n,k,q,h,g,e,d,b){function a(a){return function(b,c,f){return 2==arguments.length?a["string"==typeof c?"get":"set"](b,c):a.set(b,c,f)}}var c=function(a){return 1==a.length&&
"string"==typeof a[0]},f=function(a){var b=a.parentNode;b&&b.removeChild(a)},m=n.NodeList,s=m._adaptWithCondition,t=m._adaptAsForEach,r=m._adaptAsMap;q.extend(m,{_normalize:function(a,b){var c=!0===a.parse;if("string"==typeof a.template){var f=a.templateFunc||l.string&&l.string.substitute;a=f?f(a.template,a):a}f=typeof a;"string"==f||"number"==f?(a=g.toDom(a,b&&b.ownerDocument),a=11==a.nodeType?q._toArray(a.childNodes):[a]):q.isArrayLike(a)?q.isArray(a)||(a=q._toArray(a)):a=[a];c&&(a._runParse=!0);
return a},_cloneNode:function(a){return a.cloneNode(!0)},_place:function(a,b,c,f){if(!(1!=b.nodeType&&"only"==c))for(var m,d=a.length,e=d-1;0<=e;e--){var h=f?this._cloneNode(a[e]):a[e];if(a._runParse&&l.parser&&l.parser.parse){m||(m=b.ownerDocument.createElement("div"));m.appendChild(h);l.parser.parse(m);for(h=m.firstChild;m.firstChild;)m.removeChild(m.firstChild)}e==d-1?g.place(h,b,c):b.parentNode.insertBefore(h,b);b=h}},position:r(e.position),attr:s(a(d),c),style:s(a(b),c),addClass:t(h.add),removeClass:t(h.remove),
toggleClass:t(h.toggle),replaceClass:t(h.replace),empty:t(g.empty),removeAttr:t(d.remove),marginBox:r(e.getMarginBox),place:function(a,b){var c=n(a)[0];return this.forEach(function(a){g.place(a,c,b)})},orphan:function(a){return(a?n._filterResult(this,a):this).forEach(f)},adopt:function(a,b){return n(a).place(this[0],b)._stash(this)},query:function(a){if(!a)return this;var b=new m;this.map(function(c){n(a,c).forEach(function(a){void 0!==a&&b.push(a)})});return b._stash(this)},filter:function(a){var b=
arguments,c=this,f=0;if("string"==typeof a){c=n._filterResult(this,b[0]);if(1==b.length)return c._stash(this);f=1}return this._wrap(k.filter(c,b[f],b[f+1]),this)},addContent:function(a,b){a=this._normalize(a,this[0]);for(var c=0,f;f=this[c];c++)a.length?this._place(a,f,b,0<c):g.empty(f);return this}});return m})},"esri/urlUtils":function(){define("dojo/_base/lang dojo/_base/array dojo/_base/url dojo/io-query ./kernel ./config ./sniff dojo/i18n!./nls/jsapi".split(" "),function(l,n,k,q,h,g,e,d){var b=
{},a=g.defaults.io,c=window.location.protocol;"file:"===c&&(c="http:");b.urlToObject=function(a){var b={},c=new k(a),d=a.indexOf("?");null===c.query?b={path:a,query:null}:(b.path=a.substring(0,d),b.query=q.queryToObject(c.query));c.fragment&&(b.hash=c.fragment,null===c.query&&(b.path=b.path.substring(0,b.path.length-(c.fragment.length+1))));return b};b.getProxyUrl=function(c,m){var e=l.isString(c)?0===l.trim(c).toLowerCase().indexOf("https:"):c,g=a.proxyUrl,h,k,n=d.io.proxyNotSet;if(l.isString(c)&&
(k=b.getProxyRule(c)))g=k.proxyUrl;if(!g)throw Error(n);e&&(!1!==m&&0!==window.location.href.toLowerCase().indexOf("https:"))&&(e=g,0!==e.toLowerCase().indexOf("http")&&(e=b.getAbsoluteUrl(e)),e=e.replace(/^http:/i,"https:"),b.canUseXhr(e)&&(g=e,h=1));g=b.urlToObject(g);g._xo=h;return g};b.addProxy=function(c){var m=b.getProxyRule(c),d;m?d=b.urlToObject(m.proxyUrl):a.alwaysUseProxy&&(d=b.getProxyUrl());d&&(m=b.urlToObject(c),c=d.path+"?"+m.path,(d=q.objectToQuery(l.mixin(d.query||{},m.query)))&&(c+=
"?"+d));return c};b.addProxyRule=function(c){var m=c.urlPrefix=b.urlToObject(c.urlPrefix).path.replace(/([^\/])$/,"$1/").replace(/^https?:\/\//ig,"").toLowerCase(),d=a.proxyRules,e,g=d.length,h,k=g;for(e=0;e<g;e++)if(h=d[e].urlPrefix,0===m.indexOf(h)){if(m.length===h)return-1;k=e;break}else 0===h.indexOf(m)&&(k=e+1);d.splice(k,0,c);return k};b.getProxyRule=function(c){var m=a.proxyRules,d=m.length,e=b.urlToObject(c).path.replace(/([^\/])$/,"$1/").replace(/^https?:\/\//ig,"").toLowerCase(),g;for(c=
0;c<d;c++)if(0===e.indexOf(m[c].urlPrefix)){g=m[c];break}return g};b.hasSameOrigin=function(a,b,c){a=a.toLowerCase();b=b.toLowerCase();var d=window.location.href.toLowerCase();a=0===a.indexOf("http")?new k(a):d=new k(d);b=0===b.indexOf("http")?new k(b):l.isString(d)?new k(d):d;return(c||a.scheme===b.scheme)&&a.host===b.host&&a.port===b.port};b.canUseXhr=function(c,m){var d=e("esri-phonegap")?!0:!1,g=b.hasSameOrigin,h=a.corsEnabledServers,k,q=-1;!d&&(e("esri-cors")&&h&&h.length)&&(d=n.some(h,function(a,
b){k=0!==l.trim(a).toLowerCase().indexOf("http");return g(c,k?"http://"+a:a)||k&&g(c,"https://"+a)?(q=b,!0):!1}));return m?q:d};b.getAbsoluteUrl=function(a){return l.isString(a)&&!/^https?:\/\//i.test(a)?0===a.indexOf("//")?c+a:0===a.indexOf("/")?c+"//"+window.location.host+a:h._appBaseUrl+a:a};b.fixUrl=function(a){/^\/\//i.test(a)&&(a=c+a);return a=a.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")};e("extend-esri")&&(l.mixin(h,b),h._getProxyUrl=b.getProxyUrl,h._getProxiedUrl=b.addProxy,h._hasSameOrigin=
b.hasSameOrigin,h._canDoXOXHR=b.canUseXhr,h._getAbsoluteUrl=b.getAbsoluteUrl,h.fixUrl=b.fixUrl);return b})},"esri/Color":function(){define(["dojo/_base/declare","dojo/_base/Color","dojo/has","./kernel"],function(l,n,k,q){l=l([n],{declaredClass:"esri.Color"});l.toJsonColor=function(e){return e&&[e.r,e.g,e.b,1<e.a?e.a:Math.round(255*e.a)]};l.toDojoColor=function(e){return e&&new n([e[0],e[1],e[2],e[3]/255])};var h,g="named blendColors fromRgb fromHex fromArray fromString".split(" ");for(h=0;h<g.length;h++)l[g[h]]=
n[g[h]];k("extend-esri")&&(q.Color=l);return l})},"esri/domUtils":function(){define(["dojo/_base/connect","dojo/_base/lang","dojo/dom-style","dojo/has","./kernel"],function(l,n,k,q,h){var g={show:function(e){e&&(e.style.display="block")},hide:function(e){e&&(e.style.display="none")},toggle:function(e){e.style.display="none"===e.style.display?"block":"none"},documentBox:8>=q("ie")?{w:document.documentElement.clientWidth,h:document.documentElement.clientHeight}:{w:window.innerWidth,h:window.innerHeight},
setScrollable:function(e){var d=0,b=0,a=0,c=0,f=0,m=0;return[l.connect(e,"ontouchstart",function(g){d=g.touches[0].screenX;b=g.touches[0].screenY;a=e.scrollWidth;c=e.scrollHeight;f=e.clientWidth;m=e.clientHeight}),l.connect(e,"ontouchmove",function(g){g.preventDefault();var h=e.firstChild;h instanceof Text&&(h=e.childNodes[1]);var r=h._currentX||0,l=h._currentY||0,r=r+(g.touches[0].screenX-d);0<r?r=0:0>r&&Math.abs(r)+f>a&&(r=-1*(a-f));h._currentX=r;l+=g.touches[0].screenY-b;0<l?l=0:0>l&&Math.abs(l)+
m>c&&(l=-1*(c-m));h._currentY=l;k.set(h,{"-webkit-transition-property":"-webkit-transform","-webkit-transform":"translate("+r+"px, "+l+"px)"});d=g.touches[0].screenX;b=g.touches[0].screenY})]}};q("extend-esri")&&n.mixin(h,g);return g})},"esri/symbols/MarkerSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ./Symbol".split(" "),function(l,n,k,q,h,g){l=l(g,{declaredClass:"esri.symbol.MarkerSymbol",angle:0,xoffset:0,yoffset:0,size:12,constructor:function(e){e&&
n.isObject(e)&&(this.size="auto"===this.size?this.size:q.pt2px(this.size),this.xoffset=q.pt2px(this.xoffset),this.yoffset=q.pt2px(this.yoffset),this.angle&&(this.angle*=-1))},setAngle:function(e){this.angle=e;return this},setSize:function(e){this.size=e;return this},setOffset:function(e,d){this.xoffset=e;this.yoffset=d;return this},toJson:function(){var e=q.px2pt(this.size),e=isNaN(e)?void 0:e,d=q.px2pt(this.xoffset),d=isNaN(d)?void 0:d,b=q.px2pt(this.yoffset),b=isNaN(b)?void 0:b;return n.mixin(this.inherited("toJson",
arguments),{size:"auto"===this.size?this.size:e,angle:this.angle&&-1*this.angle,xoffset:d,yoffset:b})}});k("extend-esri")&&n.setObject("symbol.MarkerSymbol",l,h);return l})},"esri/symbols/Symbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../Color".split(" "),function(l,n,k,q,h,g){l=l(null,{declaredClass:"esri.symbol.Symbol",color:new g([0,0,0,1]),type:null,constructor:function(e){if(e&&n.isObject(e)&&(n.mixin(this,e),this.color&&h.isDefined(this.color[0])&&(this.color=
g.toDojoColor(this.color)),(e=this.type)&&0===e.indexOf("esri")))this.type={esriSMS:"simplemarkersymbol",esriPMS:"picturemarkersymbol",esriSLS:"simplelinesymbol",esriCLS:"cartographiclinesymbol",esriSFS:"simplefillsymbol",esriPFS:"picturefillsymbol",esriTS:"textsymbol",esriSHD:"shieldlabelsymbol"}[e]},setColor:function(e){this.color=e;return this},toJson:function(){return{color:g.toJsonColor(this.color)}}});k("extend-esri")&&n.setObject("symbol.Symbol",l,q);return l})},"esri/symbols/SimpleMarkerSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has dojox/gfx/_base ../kernel ../lang ./MarkerSymbol ./SimpleLineSymbol".split(" "),
function(l,n,k,q,h,g,e,d,b){var a={STYLE_CIRCLE:"circle",STYLE_SQUARE:"square",STYLE_CROSS:"cross",STYLE_X:"x",STYLE_DIAMOND:"diamond",STYLE_PATH:"path",STYLE_TARGET:"target"},c={style:a.STYLE_CIRCLE,color:[255,255,255,0.25],size:12,angle:0,xoffset:0,yoffset:0};l=l(d,{declaredClass:"esri.symbol.SimpleMarkerSymbol",type:"simplemarkersymbol",_styles:{circle:"esriSMSCircle",square:"esriSMSSquare",cross:"esriSMSCross",x:"esriSMSX",diamond:"esriSMSDiamond",path:"esriSMSPath"},constructor:function(f,m,
d,g){f?n.isString(f)?(this.style=f,m&&(this.size=m),d&&(this.outline=d),g&&(this.color=g)):(this.style=e.valueOf(this._styles,this.style),f.outline&&(this.outline=new b(f.outline))):(n.mixin(this,c),this.size=h.pt2px(this.size),this.outline=new b(this.outline),this.color=new k(this.color));this.style||(this.style=a.STYLE_CIRCLE)},setStyle:function(a){this.style=a;return this},setPath:function(b){this.path=b;this.setStyle(a.STYLE_PATH);return this},setOutline:function(a){this.outline=a;return this},
getStroke:function(){return this.outline&&this.outline.getStroke()},getFill:function(){return this.color},_setDim:function(a,b,c){this._targetWidth=a;this._targetHeight=b;this._spikeSize=c},getShapeDescriptors:function(){var b,m,d,e=this.style,g=(this.size||h.pt2px(c.size))/2,k=0-g,l=0+g,n=0-g,q=0+g;switch(e){case a.STYLE_CIRCLE:b={type:"circle",cx:0,cy:0,r:g};m=this.getFill();if(d=this.getStroke())d.style=d.style||"Solid";break;case a.STYLE_CROSS:b={type:"path",path:"M "+k+",0 L "+l+",0 M 0,"+n+
" L 0,"+q+" E"};m=null;d=this.getStroke();break;case a.STYLE_DIAMOND:b={type:"path",path:"M "+k+",0 L 0,"+n+" L "+l+",0 L 0,"+q+" L "+k+",0 E"};m=this.getFill();d=this.getStroke();break;case a.STYLE_SQUARE:b={type:"path",path:"M "+k+","+q+" L "+k+","+n+" L "+l+","+n+" L "+l+","+q+" L "+k+","+q+" E"};m=this.getFill();d=this.getStroke();break;case a.STYLE_X:b={type:"path",path:"M "+k+","+q+" L "+l+","+n+" M "+k+","+n+" L "+l+","+q+" E"};m=null;d=this.getStroke();break;case a.STYLE_PATH:b={type:"path",
path:this.path||""},m=this.getFill(),d=this.getStroke()}return{defaultShape:b,fill:m,stroke:d}},toJson:function(){var a=n.mixin(this.inherited("toJson",arguments),{type:"esriSMS",style:this._styles[this.style]}),b=this.outline;b&&(a.outline=b.toJson());a.path=this.path;return e.fixJson(a)}});n.mixin(l,a);l.defaultProps=c;q("extend-esri")&&(n.setObject("symbol.SimpleMarkerSymbol",l,g),g.symbol.defaultSimpleMarkerSymbol=c);return l})},"esri/symbols/SimpleLineSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has dojox/gfx/_base ../kernel ../lang ./LineSymbol".split(" "),
function(l,n,k,q,h,g,e,d){var b={STYLE_SOLID:"solid",STYLE_DASH:"dash",STYLE_DOT:"dot",STYLE_DASHDOT:"dashdot",STYLE_DASHDOTDOT:"longdashdotdot",STYLE_NULL:"none",STYLE_SHORTDASH:"shortdash",STYLE_SHORTDOT:"shortdot",STYLE_SHORTDASHDOT:"shortdashdot",STYLE_SHORTDASHDOTDOT:"shortdashdotdot",STYLE_LONGDASH:"longdash",STYLE_LONGDASHDOT:"longdashdot"},a={color:[0,0,0,1],style:b.STYLE_SOLID,width:1};l=l(d,{declaredClass:"esri.symbol.SimpleLineSymbol",type:"simplelinesymbol",_styles:{solid:"esriSLSSolid",
dash:"esriSLSDash",dot:"esriSLSDot",dashdot:"esriSLSDashDot",longdashdotdot:"esriSLSDashDotDot",none:"esriSLSNull",insideframe:"esriSLSInsideFrame",shortdash:"esriSLSShortDash",shortdot:"esriSLSShortDot",shortdashdot:"esriSLSShortDashDot",shortdashdotdot:"esriSLSShortDashDotDot",longdash:"esriSLSLongDash",longdashdot:"esriSLSLongDashDot"},constructor:function(c,f,m){c?n.isString(c)?(this.style=c,f&&(this.color=f),m&&(this.width=m)):this.style=e.valueOf(this._styles,c.style)||b.STYLE_SOLID:(n.mixin(this,
a),this.color=new k(this.color),this.width=h.pt2px(this.width))},setStyle:function(a){this.style=a;return this},getStroke:function(){return this.style===b.STYLE_NULL||0===this.width?null:{color:this.color,style:this.style,width:this.width}},getFill:function(){return null},getShapeDescriptors:function(){return{defaultShape:{type:"path",path:"M -15,0 L 15,0 E"},fill:null,stroke:this.getStroke()}},toJson:function(){return e.fixJson(n.mixin(this.inherited("toJson",arguments),{type:"esriSLS",style:this._styles[this.style]}))}});
n.mixin(l,b);l.defaultProps=a;q("extend-esri")&&(n.setObject("symbol.SimpleLineSymbol",l,g),g.symbol.defaultSimpleLineSymbol=a);return l})},"esri/symbols/LineSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ./Symbol".split(" "),function(l,n,k,q,h,g){l=l(g,{declaredClass:"esri.symbol.LineSymbol",constructor:function(e){n.isObject(e)?this.width=q.pt2px(this.width):this.width=12},setWidth:function(e){this.width=e;return this},toJson:function(){var e=q.px2pt(this.width),
e=isNaN(e)?void 0:e;return n.mixin(this.inherited("toJson",arguments),{width:e})}});k("extend-esri")&&n.setObject("symbol.LineSymbol",l,h);return l})},"esri/layers/TileInfo":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../SpatialReference ../geometry/Point ./LOD".split(" "),function(l,n,k,q,h,g,e,d,b){l=l(null,{declaredClass:"esri.layers.TileInfo",constructor:function(a){n.mixin(this,a);this.width=this.cols;this.height=this.rows;a=this.spatialReference;
var c=this.origin;a&&(a=this.spatialReference=new e(a.toJson?a.toJson():a));c&&(this.origin=new d(c.toJson?c.toJson():c),!c.spatialReference&&a&&this.origin.setSpatialReference(new e(a.toJson())));this.lods=k.map(this.lods,function(a){return new b(a)})},toJson:function(){return g.fixJson({rows:this.rows,cols:this.cols,dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin&&this.origin.toJson(),spatialReference:this.spatialReference&&this.spatialReference.toJson(),
lods:this.lods&&k.map(this.lods,function(a){return a.toJson()})})}});q("extend-esri")&&n.setObject("layers.TileInfo",l,h);return l})},"esri/layers/LOD":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(l,n,k,q,h){l=l(null,{declaredClass:"esri.layers.LOD",constructor:function(g){n.mixin(this,g)},toJson:function(){return h.fixJson({level:this.level,levelValue:this.levelValue,resolution:this.resolution,scale:this.scale})}});k("extend-esri")&&n.setObject("layers.LOD",
l,q);return l})},"esri/layers/ArcGISTiledMapServiceLayer":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/json dojo/has dojo/io-query ../kernel ../urlUtils ../SpatialReference ./TiledMapServiceLayer ./ArcGISMapServiceLayer ./TileInfo ./TimeInfo ./TileMap".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t){n=n([c,f],{declaredClass:"esri.layers.ArcGISTiledMapServiceLayer",_agolAttrs:"canvas/world_light_gray_base canvas/world_light_gray_reference ocean/world_ocean_base ocean/world_ocean_reference ocean_basemap reference/world_boundaries_and_places reference/world_boundaries_and_places_alternate reference/world_transportation world_imagery world_street_map world_topo_map".split(" "),
constructor:function(a,b){b&&(b.roundrobin&&(l.deprecated(this.declaredClass+" : Constructor option 'roundrobin' deprecated. Use option 'tileServers'."),b.tileServers=b.roundrobin),this._setTileServers(b.tileServers),this._loadCallback=b.loadCallback);this._params=k.mixin({},this._url.query);var c=q.some(["servicesdev.arcgisonline.com/arcgis/rest/services","services.arcgisonline.com/arcgis/rest/services","servicesqa.arcgisonline.com/arcgis/rest/services"],function(b){return-1<a.toLowerCase().indexOf(b.toLowerCase())});
if((this.resampling=b&&b.resampling||(!b||!1!==b.resampling)&&c)&&c)this.tileMap=new t(this);this._initLayer=k.hitch(this,this._initLayer);(c=b&&b.resourceInfo)?this._initLayer(c):(this._load=k.hitch(this,this._load),this._load())},_TILE_FORMATS:{PNG:"png",PNG8:"png",PNG24:"png",PNG32:"png",JPG:"jpg",JPEG:"jpg",GIF:"gif"},_setTileServers:function(a){if(a&&0<a.length){this.tileServers=a;var c,f=a.length;for(c=0;c<f;c++)a[c]=b.urlToObject(a[c]).path}},_initLayer:function(b,c){this.inherited(arguments);
this.resourceInfo=h.toJson(b);this.tileInfo=new m(b.tileInfo);!this.spatialReference&&this.tileInfo.spatialReference&&(this.spatialReference=new a(this.tileInfo.spatialReference.toJson()));this.isPNG32="PNG24"===this.tileInfo.format||"PNG32"===this.tileInfo.format;b.timeInfo&&(this.timeInfo=new s(b.timeInfo));var f=this._url.path,d=this._loadCallback,e="file:"===window.location.protocol?"http:":window.location.protocol,g=f.match(/^https?\:\/\/(server|services)\.arcgisonline\.com\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/mapserver/i),
g=g&&g[2];if(!this.tileServers)if(b.tileServers)this._setTileServers(b.tileServers);else{var k=-1!==f.search(/^https?\:\/\/server\.arcgisonline\.com/i),l=-1!==f.search(/^https?\:\/\/services\.arcgisonline\.com/i);if(k||l)this._setTileServers([f,f.replace(k?/server\.arcgisonline/i:/services\.arcgisonline/i,k?"services.arcgisonline":"server.arcgisonline")])}g&&-1!==q.indexOf(this._agolAttrs,g.toLowerCase())&&(this.hasAttributionData=!0,this.attributionDataUrl=this.attributionDataUrl||e+"//static.arcgis.com/attribution/"+
g);this.loaded=!0;this.onLoad(this);d&&(delete this._loadCallback,d(this))},getTileUrl:function(a,c,f){var m=this.tileServers,d=this._getToken(),g=this._url.query;a=(m?m[c%m.length]:this._url.path)+"/tile/"+a+"/"+c+"/"+f;this.resampling&&!this.tileMap&&(a+="?blankTile\x3dfalse");g&&(a=this.resampling&&!this.tileMap?a+("\x26"+e.objectToQuery(g)):a+("?"+e.objectToQuery(g)));if(d&&(!g||!g.token))a+=(-1===a.indexOf("?")?"?":"\x26")+"token\x3d"+d;a=this.addTimestampToURL(a);return b.addProxy(a)}});g("extend-esri")&&
k.setObject("layers.ArcGISTiledMapServiceLayer",n,d);return n})},"esri/layers/TiledMapServiceLayer":function(){define("dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/_base/url dojo/dom-construct dojo/dom-class dojo/dom-geometry dojo/dom-style dojox/collections/ArrayList dojox/gfx/matrix ../kernel ../config ../sniff ../domUtils ../tileUtils ../geometry/Point ../geometry/Rect ../geometry/Extent ./layer".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v,A,y){var w=
m.defaults.map.zoomDuration;l=l(y,{declaredClass:"esri.layers.TiledMapServiceLayer",constructor:function(a,b){n.connect(this,"onLoad",this,"_initTiledLayer");this._lowestLevel=(this._displayLevels=b?b.displayLevels:null)?this._displayLevels[0]:0;this.resampling=b?b.resampling:!1;this._resamplingTolerance=b?b.resamplingTolerance:null;this.exclusionAreas=b?b.exclusionAreas:null;var c=k.hitch;this._addImage=c(this,this._addImage);this._tileLoadHandler=c(this,this._tileLoadHandler);this._tileErrorHandler=
c(this,this._tileErrorHandler);this._tilePopPop=c(this,this._tilePopPop);this._cleanUpRemovedImages=c(this,this._cleanUpRemovedImages);this._fireOnUpdateEvent=c(this,this._fireOnUpdateEvent);this._transitionEnd=c(this,this._transitionEnd);this._tileMapCallback=c(this,this._tileMapCallback)},opacity:1,isPNG32:!1,_multiple:1,_initTiledLayer:function(){var a=this.tileInfo,b=a.lods;this._tileW=a.width;this._tileH=a.height;var c=this.scales=[],f=this._displayLevels,m="esri.layers.WMTSLayer"===this.declaredClass&&
96!=a.dpi,d=-Infinity,e=Infinity,g=this.fullExtent,h=new u(g.xmin,g.ymax),g=new u(g.xmax,g.ymin),k=r.getContainingTileCoords,l,t,n,w=b.length;for(n=0;n<w;n++)if(t=b[n],m&&(t.scale=96*t.scale/a.dpi),l=k(a,h,t),t.startTileRow=0>l.row?0:l.row,t.startTileCol=0>l.col?0:l.col,l=k(a,g,t),t.endTileRow=l.row,t.endTileCol=l.col,!f||-1!==q.indexOf(f,t.level))c[n]=t.scale,d=t.scale>d?t.scale:d,e=t.scale<e?t.scale:e;m&&(a.dpi=96);-Infinity!==d&&!this._hasMin&&this.setMinScale(d);Infinity!==e&&!this._hasMax&&this.setMaxScale(e);
this.setExclusionAreas(this.exclusionAreas);this._patchIE=6<=s("ie")&&7>s("ie")&&(this.isPNG32||"Mixed"===a.format)},_isMapAtVisibleScale:function(){var a=this.inherited(arguments);if(a){var b;b=this._map;var a=this.scales,c=b.getScale(),f=!1,m=b.width>b.height?b.width:b.height;for(b=0;b<a.length;b++)if(Math.abs(a[b]-c)/a[b]<1/m){f=!0;break}a=f}return a},_setMap:function(a,c,m,d){this.inherited(arguments);this._map=a;var e=this._div=g.create("div",null,c),h=a.__visibleDelta,k=n.connect,l=f._css.names,
s={position:"absolute",width:a.width+"px",height:a.height+"px",overflow:"visible"};"css-transforms"===a.navigationMode?(s[l.transform]=f._css.translate(-h.x,-h.y),b.set(e,s),delete s[l.transform],s[l.transition]=l.transformName+" "+w+"ms ease",b.set(this._active=g.create("div",null,e),s),this._active._remove=0,this._passives=[]):(s.left=-h.x+"px",s.top=-h.y+"px",b.set(e,s));this._onResizeHandler_connect=k(a,"onResize",this,"_onResizeHandler");this._opacityChangeHandler_connect=k(this,"onOpacityChange",
this,"_opacityChangeHandler");h=this.tileInfo;k=h.spatialReference;l=k._getInfo();(this._wrap=a.wrapAround180&&k._isWrappable()&&Math.abs(l.origin[0]-h.origin.x)<=l.dx)&&r._addFrameInfo(h,l);this.setExclusionAreas(this.exclusionAreas);this.evaluateSuspension();if(this.suspended&&!a.loaded)var t=n.connect(a,"onLoad",this,function(){n.disconnect(t);t=null;this.setExclusionAreas(this.exclusionAreas);this.evaluateSuspension()});return e},_unsetMap:function(a,b){this.suspended||this._suspendImpl();g.destroy(this._div);
this._map=this._div=null;var c=n.disconnect;c(this._onResizeHandler_connect);c(this._opacityChangeHandler_connect);this.inherited(arguments)},onSuspend:function(){this.inherited(arguments);this._suspendImpl()},_suspendImpl:function(){t.hide(this._div);clearTimeout(this._wakeTimer);this._wakeTimer=null;this._disableDrawConnectors();var a=this._tiles,b=this._tileIds,c=this._loadingList,f,m,d=n.disconnect,e=g.destroy;c&&0<c.count&&(c.forEach(function(b){if(f=a[b])d(f._onload_connect),d(f._onerror_connect),
d(f._onabort_connect),f._onload_connect=f._onerror_connect=f._onabort_connect=null}),c.clear(),this._fireUpdateEnd());this._removeList.clear();for(c=b.length-1;0<=c;c--)(f=(m=b[c])&&a[m])&&e(f);if("css-transforms"===this._map.navigationMode){b=this._active;m=this._passives;var h;this._noDom=0;for(c=m.length-1;0<=c;c--)h=m[c],h._endHandle&&d(h._endHandle),h._matrix=h._multiply=h._endHandle=null,h._marked=h._remove=0,m.splice(c,1),e(h);b._matrix=b._multiply=null;b._marked=b._remove=0}this._tileIds=
this._tiles=this._tileBounds=this._ct=this._loadingList=this._removeList=this._standby=null},onResume:function(){this.inherited(arguments);this._tileIds=[];this._tiles=[];this._tileBounds=[];this._ct=null;this._removeList=new a;this._loadingList=new a;t.show(this._div);this._enableDrawConnectors();this._wakeTimer=this._wakeTimer||setTimeout(k.hitch(this,function(){this.suspended||this._onExtentChangeHandler(this._map.extent,null,!0,this._map.__LOD)}),0)},_enableDrawConnectors:function(){var a=this._map,
b=n.connect;if("css-transforms"===a.navigationMode){if(this._onScaleHandler_connect=b(a,"onScale",this,this._onScaleHandler),s("esri-touch")||s("esri-pointer")){this._standby=[];var c=this,f=function(){c._noDom=1};this._onPanStartHandler_connect=b(a,"onPanStart",f);this._onZoomStartHandler_connect=b(a,"onZoomStart",f)}}else this._onZoomHandler_connect=b(a,"onZoom",this,"_onZoomHandler");this._onPanHandler_connect=b(a,"onPan",this,"_onPanHandler");this._onExtentChangeHandler_connect=b(a,"onExtentChange",
this,"_onExtentChangeHandler")},_disableDrawConnectors:function(){var a=n.disconnect;a(this._onPanHandler_connect);a(this._onZoomHandler_connect);a(this._onScaleHandler_connect);a(this._onExtentChangeHandler_connect);a(this._onPanStartHandler_connect);a(this._onZoomStartHandler_connect);this._onPanHandler_connect=this._onZoomHandler_connect=this._onScaleHandler_connect=this._onExtentChangeHandler_connect=this._onPanStartHandler_connect=this._onZoomStartHandler_connect=null},_onResizeHandler:function(a,
c,f){a={width:c+"px",height:f+"px"};c=b.set;c(this._div,a);if("css-transforms"===this._map.navigationMode){this._active&&c(this._active,a);for(f=this._passives.length-1;0<=f;f--)c(this._passives[f],a)}},_onExtentChangeHandler:function(a,m,e,h){m=this._map;var k=this._standby,l;clearTimeout(this._wakeTimer);this._wakeTimer=null;if(!m._isPanningOrZooming()){if("css-transforms"===m.navigationMode){if(e)for(h=this._passives.length-1;0<=h;h--)l=this._passives[h],b.set(l,f._css.names.transition,"none"),
l._marked?(this._passives.splice(h,1),l.parentNode&&l.parentNode.removeChild(l),g.destroy(l)):0<l.childNodes.length&&(l._multiply=l._multiply?c.multiply(l._matrix,l._multiply):l._matrix);this._noDom=0;if(k&&k.length)for(h=k.length-1;0<=h;h--)l=k[h],b.set(l,"visibility","visible"),this._tilePopPop(l),k.splice(h,1)}this._fireUpdateStart();this._rrIndex=0;h=r.getCandidateTileInfo(m,this.tileInfo,a);a=m.__visibleDelta;if(!this._ct||h.lod.level!==this._ct.lod.level||e){l=h&&this._ct&&h.lod.level!==this._ct.lod.level;
this._ct=h;var s=this._tiles,t=this._tileIds,n=this._tileBounds,u=this._removeList,q,w=t.length;this._cleanUpRemovedImages();for(h=0;h<w;h++)k=t[h],q=s[k],n[k]=t[h]=null,"css-transforms"===m.navigationMode&&(l&&q.parentNode&&m.fadeOnZoom)&&(q._fadeOut=l,q.parentNode._remove++),u.add(q);e&&(this._tileIds=[],this._tiles=[],this._tileBounds=[])}h=a.x;e=a.y;"css-transforms"===m.navigationMode?(k={},k[f._css.names.transform]=f._css.translate(h,e),b.set(this._div,k)):b.set(this._div,{left:h+"px",top:e+
"px"});this.__coords_dx=h;this.__coords_dy=e;this._updateImages(new v(0,0,a.width,a.height));0===this._loadingList.count?(this._cleanUpRemovedImages(),this.onUpdate(),this._fireUpdateEnd()):this._fireOnUpdate=!0;e=this._tileW;s=this._tileH;a=new v(-a.x,-a.y,a.width,a.height);for(h=this._tileIds.length-1;0<=h;h--)(k=this._tileIds[h])?(l=this._tiles[k],t=d.getMarginBox(l),t=new v(t.l,t.t,e,s),"css-transforms"===m.navigationMode&&(t.x=l._left,t.y=l._top),a.intersects(t)?this._tileBounds[k]=t:(this._loadingList.contains(k)&&
this._tilePopPop(l),g.destroy(l),this._tileIds.splice(h,1),delete this._tileBounds[k],delete this._tiles[k])):(this._tileIds.splice(h,1),delete this._tileBounds[k],delete this._tiles[k])}},_onPanHandler:function(a,c){var m=this._map,d=m.__visibleDelta.offset(c.x,c.y);this.__coords_dx=this.__coords_dy=0;"css-transforms"===m.navigationMode?(m={},m[f._css.names.transform]=f._css.translate(d.x,d.y),b.set(this._div,m),!s("esri-touch")&&!s("esri-pointer")&&this._updateImages({x:-d.x,y:-d.y,width:d.width,
height:d.height})):(b.set(this._div,{left:d.x+"px",top:d.y+"px"}),this._updateImages({x:-d.x,y:-d.y,width:d.width,height:d.height}));0<this._loadingList.count&&(this._fireUpdateStart(),this._fireOnUpdate=!0)},_onScaleHandler:function(a,m){var d,e={},h=f._css.names,k=this._map;for(d=this._passives.length-1;0<=d;d--){var l=this._passives[d];0===l.childNodes.length?(this._passives.splice(d,1),g.destroy(l)):("none"===l.style[h.transition]&&b.set(l,h.transition,h.transformName+" "+w+"ms ease"),b.set(l,
h.transition,m?"none":h.transformName+" "+w+"ms ease"),l._matrix=a,e[h.transform]=f._css.matrix(l._multiply?c.multiply(a,l._multiply):a),b.set(l,e))}this._active&&0===this._active.childNodes.length||(b.set(this._active,h.transition,m?"none":h.transformName+" "+w+"ms ease"),this._active._matrix=a,e[h.transform]=f._css.matrix(this._active._matrix),b.set(this._active,e),this._passives.push(this._active),e={position:"absolute",width:k.width+"px",height:k.height+"px",overflow:"visible"},e[h.transition]=
h.transformName+" "+w+"ms ease",b.set(this._active=g.create("div",null,this._div),e),this._active._remove=0,k.fadeOnZoom&&g.place(this._active,this._div,"first"))},_onZoomHandler:function(a,c,f){a=d.getMarginBox(this._div);f=f.offset(-a.l,-a.t);if(!this._previousScale||1===c)this._previousScale=1;var m,e=this._tileW*c,g=this._tileH*c,h=this._tileBounds,k=this._tiles,l=this._previousScale,r=this._multiple,t=b.set,n,u;if((a=s("ie"))&&8>a)q.forEach(this._tileIds,function(a){u="";m=h[a];n=k[a].style.margin.split(" ");
q.forEach(n,function(a){""!==u&&(u+=" ");a=parseFloat(a);u+=a/l*c+"px"});t(k[a],{left:m.x-(e-m.width)*(f.x-m.x)/m.width+"px",top:m.y-(g-m.height)*(f.y-m.y)/m.height+"px",margin:1!==r&&-1===u.indexOf("NaN")?u:"",zoom:c})});else{var w=e*r,v=g*r,A,y;q.forEach(this._tileIds,function(a){u="";m=h[a];A=m.x-(e-m.width)*(f.x-m.x)/m.width;y=m.y-(g-m.height)*(f.y-m.y)/m.height;n=k[a].style.margin.split(" ");q.forEach(n,function(a){""!==u&&(u+=" ");a=parseFloat(a);u+=a/l*c+"px"});t(k[a],{left:A+"px",top:y+"px",
margin:1!==r&&-1===u.indexOf("NaN")?u:"",width:w+"px",height:v+"px"})})}this._previousScale=c},_updateImages:function(a){if(this._ct){var b,c=this._tileW,f=this._tileH,m=this._ct;b=m.lod;var m=m.tile,d=m.offsets,e=m.coords,g=e.row,e=e.col,h=b.level,k=this.opacity,l=this._tileIds,r=this._loadingList,s=this._addImage,t=this._map.id,n=this.id,u=a.x,w=a.y,v=b.startTileRow,A=b.endTileRow,y=b.startTileCol,R=b.endTileCol,U=q.indexOf,S,V,da=d.x-this.__coords_dx,$=d.y-this.__coords_dy;V=c-da+-a.x;var ba=f-
$+-a.y;S=Math.ceil;V=0<V?V%c:c-Math.abs(V)%c;ba=0<ba?ba%f:f-Math.abs(ba)%f;u=0<u?Math.floor((u+da)/c):S((u-(c-da))/c);w=0<w?Math.floor((w+$)/f):S((w-(f-$))/f);$=u+S((a.width-V)/c);a=w+S((a.height-ba)/f);var T,Z,ca;this._wrap&&(T=b._frameInfo,Z=T[0],ca=T[1],T=T[2]);for(ba=u;ba<=$;ba++)for(u=w;u<=a;u++)S=g+u,V=e+ba,this._wrap&&(V<ca?(V%=Z,V=V<ca?V+Z:V):V>T&&(V%=Z)),!this._isExcluded(h,S,V)&&(S>=v&&S<=A&&V>=y&&V<=R)&&(b=t+"_"+n+"_tile_"+h+"_"+u+"_"+ba,-1===U(l,b)&&(r.add(b),l.push(b),s(h,u,S,ba,V,b,
c,f,k,m,d)))}},_cleanUpRemovedImages:function(){var a=this._removeList,c=g.destroy,m,d=f._css.names;a.forEach(function(a){a._fadeOut||(a.style.filter="",a.style.zoom=1,c(a))});if("css-transforms"===this._map.navigationMode)for(m=this._passives.length-1;0<=m;m--){var e=this._passives[m];0===e.childNodes.length?(this._passives.splice(m,1),c(e)):this._map.fadeOnZoom&&(!e._marked&&e._remove===e.childNodes.length)&&(b.set(e,d.transition,"opacity 0.65s"),b.set(e,"opacity",0),e._marked=1,n.disconnect(e._endHandle),
e._endHandle=n.connect(e,d.endEvent,this._transitionEnd))}a.clear()},_transitionEnd:function(a){var b=a.target;"opacity"===a.propertyName&&(n.disconnect(b._endHandle),b._endHandle=null,a=q.indexOf(this._passives,b),-1<a&&this._passives.splice(a,1),b.parentNode&&b.parentNode.removeChild(b),g.destroy(b))},_addImage:function(a,c,m,d,h,l,r,s,t,u,q){if(this._patchIE)u=this._tiles[l]=g.create("div"),u.id=l,e.add(u,"layerTile"),b.set(u,{left:r*d-q.x+"px",top:s*c-q.y+"px",width:r+"px",height:s+"px",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d'"+
this.getTileUrl(a,m,h)+"', sizingMethod\x3d'scale')"}),1>t&&b.set(u,"opacity",t),a=u.appendChild(g.create("div")),b.set(a,{opacity:0,width:r+"px",height:s+"px"}),this._div.appendChild(u),this._loadingList.remove(l),this._fireOnUpdateEvent();else{u=this._tiles[l]=g.create("img");var w=n.connect;u.id=l;e.add(u,"layerTile");d=r*d-q.x;q=s*c-q.y;c=this._map;var v=f._css.names;r={width:r+"px",height:s+"px",visibility:"hidden"};"css-transforms"===c.navigationMode?(r[v.transform]=f._css.translate(d,q),b.set(u,
r),u._left=d,u._top=q):(r.left=d+"px",r.top=q+"px",b.set(u,r));1>t&&b.set(u,"opacity",t);u._onload_connect=w(u,"onload",this,"_tileLoadHandler");u._onerror_connect=w(u,"onerror",k.hitch(this,"_tileErrorHandler",m,h));u._onabort_connect=w(u,"onabort",this,"_tileAbortHandler");if(this.tileMap)this.tileMap.getTile(a,m,h,l,this._tileMapCallback);else if(l=this.getTileUrl(a,m,h,u))this._failedRequests&&this._failedRequests[l]?(b.set(u,this._failedRequests[l].css),u.src=this._failedRequests[l].src,this._multiple=
parseInt(this._failedRequests[l].css.width)/this._tileW):(this._multiple=1,u.src=l);"css-transforms"===c.navigationMode?this._active.appendChild(u):this._div.appendChild(u)}},_tileMapCallback:function(a,c){var f,m;!this.suspended&&this._tiles[c.id]&&(this._multiple=2*(c.level-a.level)||1,m=this._tiles[c.id],f=this.tileMap.style(a,c),b.set(m,f),m.src=this.getTileUrl(a.level,a.row,a.col))},getTileUrl:function(a,b,c){},_reCheckTS:/[\?\&]_ts=/ig,_reReplaceTS:/([\?\&]_ts=)[0-9]+/ig,addTimestampToURL:function(a){var b=
this._refreshTS;b&&(a=this._reCheckTS.test(a)?a.replace(this._reReplaceTS,"$$$1"+b):a+((-1===a.indexOf("?")?"?":"\x26")+"_ts\x3d"+b));return a},refresh:function(){this.suspended||(this._refreshTS=(new Date).getTime(),this._onExtentChangeHandler(this._map.extent,null,!0,this._map.__LOD))},_tilePopPop:function(a){var b=n.disconnect;b(a._onload_connect);b(a._onerror_connect);b(a._onabort_connect);a._onload_connect=a._onerror_connect=a._onabort_connect=null;this._loadingList.remove(a.id);this._fireOnUpdateEvent()},
_tileLoadHandler:function(a){a=a.currentTarget;this._noDom?this._standby.push(a):(b.set(a,"visibility","visible"),this._tilePopPop(a))},_tileAbortHandler:function(a){a=a.currentTarget;this.onError(Error("Unable to load tile: "+a.src));b.set(a,"visibility","hidden");this._tilePopPop(a)},_tileErrorHandler:function(a,c,f){f=f.currentTarget;var m,d,e=!0;if(this.tileMap||!this.resampling)e=!1;else if(m=new h(f.src),m=m.path.split("/"),m=parseInt(m[m.length-3]),d=this._ct.lod.level-m+1,this._multiple=Math.pow(2,
d),m===this._lowestLevel||0===this._resamplingTolerance||this._resamplingTolerance&&Math.log(this._multiple)/Math.LN2>this._resamplingTolerance)e=!1;e?this._resample(f,a,c):(this.onError(Error("Unable to load tile: "+f.src)),b.set(f,"visibility","hidden"),this._tilePopPop(f))},_resample:function(a,c,f){var m=(new h(a.src)).path.split("/"),d=this._multiple,e=parseInt(m[m.length-3])-1,g=parseInt(c/d),k=parseInt(f/d),m=f%d,l=c%d,g=this.getTileUrl(e,g,k);c=this.getTileUrl(e+Math.log(d)/Math.LN2,c,f);
d={width:this._tileW*d+"px",height:this._tileH*d+"px",margin:"-"+this._tileW*l+"px 0 0 "+("-"+this._tileH*m+"px")};this._failedRequests||(this._failedRequests={});this._failedRequests[c]={src:g,css:d};b.set(a,d);s("chrome")&&a.setAttribute("src",null);a.src=g},_fireOnUpdateEvent:function(){0===this._loadingList.count&&(this._cleanUpRemovedImages(),this._fireOnUpdate&&(this._fireOnUpdate=!1,this.onUpdate(),this._fireUpdateEnd()))},setOpacity:function(a){if(this.opacity!=a)this.onOpacityChange(this.opacity=
a)},onOpacityChange:function(){},_opacityChangeHandler:function(a){var c=b.set,f,m,d;if("css-transforms"===this._map.navigationMode){if(this._active){d=this._active.childNodes;for(f=d.length-1;0<=f;f--)c(d[f],"opacity",a)}for(f=this._passives.length-1;0<=f;f--){d=this._passives[f].childNodes;for(m=d.length-1;0<=m;m--)c(d[m],"opacity",a)}}else{d=this._div.childNodes;for(f=d.length-1;0<=f;f--)c(d[f],"opacity",a)}},setExclusionAreas:function(a){this.exclusionAreas=a;if(this.loaded&&this._map&&this._map.loaded){var b=
this._map.spatialReference,c=this.tileInfo,f=c.origin,m=c.lods,d=m[0].level,e=m[m.length-1].level,g,h,k,l,r,s,t,n,q;if(!this.exclusionAreas||!this.exclusionAreas.length)this._exclusionsPerZoom=null;else{this._exclusionsPerZoom=[];h=0;for(k=a.length;h<k;h++)if(g=a[h],(q=g.geometry)&&"extent"===q.type&&q.xmin<=q.xmax&&q.ymin<=q.ymax){if(!b.equals(q.spatialReference))if(b._canProject(q.spatialReference))b.isWebMercator()?(n=u.lngLatToXY(q.xmin,q.ymin),q=u.lngLatToXY(q.xmax,q.ymax)):(n=u.xyToLngLat(q.xmin,
q.ymin,!0),q=u.xyToLngLat(q.xmax,q.ymax,!0)),q=new A(n[0],n[1],q[0],q[1],b);else continue;t=-1;if(g.minZoom&&-1!==g.minZoom)t=g.minZoom;else if(g.minScale&&-1!==g.minScale){l=0;for(r=m.length;l<r;l++)if(m[l].scale<=g.minScale){t=m[l].level;break}}t=Math.max(t,d);n=-1;if(g.maxZoom&&-1!==g.maxZoom)n=g.maxZoom;else if(g.maxScale&&-1!==g.maxScale){l=0;for(r=m.length;l<r;l++)if(m[l].scale<g.maxScale){n=m[l-1].level;break}else if(m[l].scale===g.maxScale){n=m[l].level;break}}n=-1===n?e:Math.min(n,e);for(g=
t;g<=n;g++){l=0;for(r=m.length;l<r;l++)if(m[l].level===g){s=m[l];break}s&&(this._exclusionsPerZoom[g]||(this._exclusionsPerZoom[g]=[]),l=1/s.resolution/c.rows,r=1/s.resolution/c.cols,this._exclusionsPerZoom[g].push({rowFrom:Math.floor((f.y-q.ymax)*l),rowTo:Math.ceil((f.y-q.ymin)*l),colFrom:Math.floor((q.xmin-f.x)*r),colTo:Math.ceil((q.xmax-f.x)*r)}))}}}this.suspended||this._onExtentChangeHandler(this._map.extent,null,!0,this._map.__LOD)}},_isExcluded:function(a,b,c){var f,m,d;if(!this._exclusionsPerZoom)return!1;
f=this._exclusionsPerZoom[a];if(!f)return!1;m=0;for(d=f.length;m<d;m++)if(a=f[m],b>=a.rowFrom&&b<a.rowTo&&c>=a.colFrom&&c<a.colTo)return!0;return!1}});s("extend-esri")&&k.setObject("layers.TiledMapServiceLayer",l,f);return l})},"dojox/collections/ArrayList":function(){define(["dojo/_base/kernel","dojo/_base/array","./_base"],function(l,n,k){k.ArrayList=function(n){var h=[];n&&(h=h.concat(n));this.count=h.length;this.add=function(g){h.push(g);this.count=h.length};this.addRange=function(g){if(g.getIterator)for(g=
g.getIterator();!g.atEnd();)this.add(g.get());else for(var e=0;e<g.length;e++)h.push(g[e]);this.count=h.length};this.clear=function(){h.splice(0,h.length);this.count=0};this.clone=function(){return new k.ArrayList(h)};this.contains=function(g){for(var e=0;e<h.length;e++)if(h[e]==g)return!0;return!1};this.forEach=function(g,e){l.forEach(h,g,e)};this.getIterator=function(){return new k.Iterator(h)};this.indexOf=function(g){for(var e=0;e<h.length;e++)if(h[e]==g)return e;return-1};this.insert=function(g,
e){h.splice(g,0,e);this.count=h.length};this.item=function(g){return h[g]};this.remove=function(g){g=this.indexOf(g);0<=g&&h.splice(g,1);this.count=h.length};this.removeAt=function(g){h.splice(g,1);this.count=h.length};this.reverse=function(){h.reverse()};this.sort=function(g){g?h.sort(g):h.sort()};this.setByIndex=function(g,e){h[g]=e;this.count=h.length};this.toArray=function(){return[].concat(h)};this.toString=function(g){return h.join(g||",")}};return k.ArrayList})},"dojox/collections/_base":function(){define(["dojo/_base/kernel",
"dojo/_base/lang","dojo/_base/array"],function(l,n,k){l=n.getObject("dojox.collections",!0);l.DictionaryEntry=function(k,h){this.key=k;this.value=h;this.valueOf=function(){return this.value};this.toString=function(){return String(this.value)}};l.Iterator=function(l){var h=0;this.element=l[h]||null;this.atEnd=function(){return h>=l.length};this.get=function(){return this.atEnd()?null:this.element=l[h++]};this.map=function(g,e){return k.map(l,g,e)};this.reset=function(){h=0;this.element=l[h]}};l.DictionaryIterator=
function(l){var h=[],g={},e;for(e in l)g[e]||h.push(l[e]);var d=0;this.element=h[d]||null;this.atEnd=function(){return d>=h.length};this.get=function(){return this.atEnd()?null:this.element=h[d++]};this.map=function(b,a){return k.map(h,b,a)};this.reset=function(){d=0;this.element=h[d]}};return l})},"esri/layers/ArcGISMapServiceLayer":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../request ../SpatialReference ../geometry/Extent ./LayerInfo".split(" "),
function(l,n,k,q,h,g,e,d,b,a){l=l(null,{declaredClass:"esri.layers.ArcGISMapServiceLayer",infoTemplates:null,constructor:function(a,b){this.layerInfos=[];b&&(this.infoTemplates=b.infoTemplates||null);var m=this._params={},d=this._url.query?this._url.query.token:null;d&&(m.token=d)},setInfoTemplates:function(a){this.infoTemplates=a},_load:function(){e({url:this._url.path,content:n.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(c,f){try{this._findCredential();(this.credential&&this.credential.ssl||c&&c._ssl)&&this._useSSL();this.description=c.description;this.copyright=c.copyrightText;this.spatialReference=c.spatialReference&&new d(c.spatialReference);this.initialExtent=c.initialExtent&&new b(c.initialExtent);this.fullExtent=c.fullExtent&&new b(c.fullExtent);this.units=c.units;this.maxRecordCount=c.maxRecordCount;this.maxImageHeight=c.maxImageHeight;
this.maxImageWidth=c.maxImageWidth;this.supportsDynamicLayers=c.supportsDynamicLayers;var m=this.layerInfos=[],e=c.layers,h=this._defaultVisibleLayers=[];k.forEach(e,function(b,c){m[c]=new a(b);b.defaultVisibility&&h.push(b.id)});this.visibleLayers||(this.visibleLayers=h);this.version=c.currentVersion;this.version||(this.version="capabilities"in c||"tables"in c?10:"supportedImageFormatTypes"in c?9.31:9.3);this.capabilities=c.capabilities;g.isDefined(c.minScale)&&!this._hasMin&&this.setMinScale(c.minScale);
g.isDefined(c.maxScale)&&!this._hasMax&&this.setMaxScale(c.maxScale)}catch(l){this._errorHandler(l)}}});q("extend-esri")&&n.setObject("layers.ArcGISMapServiceLayer",l,h);return l})},"esri/layers/LayerInfo":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(l,n,k,q,h){l=l(null,{declaredClass:"esri.layers.LayerInfo",constructor:function(g){n.mixin(this,g)},toJson:function(){return h.fixJson({defaultVisibility:this.defaultVisibility,id:this.id,maxScale:this.maxScale,
minScale:this.minScale,name:this.name,parentLayerId:this.parentLayerId,subLayerIds:this.subLayerIds})}});k("extend-esri")&&n.setObject("layers.LayerInfo",l,q);return l})},"esri/layers/TimeInfo":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../TimeExtent ./TimeReference ./LayerTimeOptions".split(" "),function(l,n,k,q,h,g,e){l=l(null,{declaredClass:"esri.layers.TimeInfo",constructor:function(d){null!==d&&(n.mixin(this,d),d.exportOptions&&(this.exportOptions=new e(d.exportOptions)),
this.timeExtent=null,d.timeExtent&&2===d.timeExtent.length&&(this.timeExtent=new h(d.timeExtent)),this.timeReference=new g(d.timeReference))}});n.mixin(l,{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"});k("extend-esri")&&n.setObject("layers.TimeInfo",l,q);return l})},"esri/TimeExtent":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","./kernel"],function(l,n,k,q){var h=l(null,{declaredClass:"esri.TimeExtent",constructor:function(g){if(1<arguments.length)this._create(arguments[0],arguments[1]);else if(g)if(n.isArray(g)){var e=g[0],d=g[1];this.startTime=null===e||"null"===e?null:new Date(e);this.endTime=null===d||"null"===d?null:new Date(d)}else g instanceof
Date&&this._create(g,null)},offset:function(g,e){var d=new h,b=this.startTime,a=this.endTime;b&&(d.startTime=this._getOffsettedDate(b,g,e));a&&(d.endTime=this._getOffsettedDate(a,g,e));return d},intersection:function(g){return this._intersection(this,g)},toJson:function(){var g=[],e=this.startTime;g.push(e?e.getTime():"null");e=this.endTime;g.push(e?e.getTime():"null");return g},_create:function(g,e){this.startTime=g?new Date(g.getTime()):null;this.endTime=e?new Date(e.getTime()):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(g,e){if(g&&e){var d=g.startTime,b=g.endTime,a=e.startTime,c=e.endTime,d=d?d.getTime():-Infinity,a=a?a.getTime():-Infinity,b=b?b.getTime():Infinity,c=c?c.getTime():Infinity,f,m;a>=d&&a<=b?f=a:d>=a&&d<=c&&(f=d);b>=a&&b<=c?m=
b:c>=d&&c<=b&&(m=c);if(!isNaN(f)&&!isNaN(m))return d=new h,d.startTime=-Infinity===f?null:new Date(f),d.endTime=Infinity===m?null:new Date(m),d}return null},_getOffsettedDate:function(g,e,d){var b=this._refData;g=new Date(g.getTime());e&&d&&(b=b[d],g[b.setter](g[b.getter]()+e*b.multiplier));return g}});k("extend-esri")&&(q.TimeExtent=h);return h})},"esri/layers/TimeReference":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(l,n,k,q){l=l(null,{declaredClass:"esri.layers.TimeReference",
constructor:function(h){h&&n.mixin(this,h)}});k("extend-esri")&&n.setObject("layers.TimeReference",l,q);return l})},"esri/layers/LayerTimeOptions":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(l,n,k,q,h){l=l(null,{declaredClass:"esri.layers.LayerTimeOptions",constructor:function(g){g&&n.mixin(this,g)},toJson:function(){return h.fixJson({timeDataCumulative:this.timeDataCumulative,timeOffset:this.timeOffset,timeOffsetUnits:this.timeOffsetUnits,
useTime:this.useTime})}});k("extend-esri")&&n.setObject("layers.LayerTimeOptions",l,q);return l})},"esri/layers/TileMap":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/Deferred dojo/io-query ../request ../urlUtils".split(" "),function(l,n,k,q,h,g,e){return l(null,{declaredClass:"esri.layers.TileMap",constructor:function(d){this.layer=d;this._tileMaps={}},getTile:function(d,b,a,c,f){d={id:c,level:d,row:b,col:a};b=this._getResamplingBudget();0<b?this._process({tile:d,requestedTile:d,
callback:f,resamplingBudget:b}):(f||this.callback).call(this,d,d)},statusOf:function(d,b,a){var c=this._getResamplingBudget();d={level:d,row:b,col:a};if(0===c)return 1;for(;0<=c;){b=this._tileToTileMap(d);if(!this._tileMaps[b.uid])return-1;b=this._tileMaps[b.uid];if(!b.promise.isFulfilled())return-1;if(this._isTileAvailable(d,b))return 1;d=this._parentTile(d);if(!d)break;c--}return 0},style:function(d,b){if(!(d.level===b.level&&d.row===b.row&&d.col===b.col)){for(var a=this.layer.tileInfo,c=a.lods,
f=a.cols,a=a.rows,m,e,g=c.length-1;!m||!e;)!m&&c[g].level===d.level&&(m=c[g]),!e&&c[g].level===b.level&&(e=c[g]),g--;c=Math.round(m.resolution/e.resolution);return{width:f*c+"px",height:a*c+"px",margin:"-"+b.row%c*a+"px 0 0 -"+b.col%c*f+"px"}}},_process:function(d){var b=d.tile,a=this._tileToTileMap(b),c=this._parentTile(b);this._getTileMap(a).then(n.hitch(this,function(f){a=f;this._isTileAvailable(b,a)?(d.callback||this.callback).call(this,b,d.requestedTile):0<d.resamplingBudget&&c?(d.resamplingBudget--,
d.tile=c,this._process(d)):(d.callback||this.callback).call(this,d.requestedTile,d.requestedTile)}),n.hitch(this,function(){(d.callback||this.callback).call(this,d.requestedTile,d.requestedTile)}))},_getTileMap:function(d){var b,a,c,f,m=null;this._tileMaps[d.uid]?(d=this._tileMaps[d.uid],b=d.promise):(this._tileMaps[d.uid]=d,a=new q,g({url:this._getTileMapUrl(d.level,d.row,d.col),handleAs:"json",callbackParamName:"callback",timeout:3E3,load:function(b){n.mixin(d,b);if(d.data&&0<d.data.length){f=d.data.length;
if(1===f)m=d.data[0];else{m=d.data[0];for(c=1;c<f;c++)if(d.data[c]!==m){m=null;break}}null!==m&&(delete d.data,d.value=m)}a.resolve(d)},error:function(b){a.reject()}}),b=d.promise=a.promise);return b},_parentTile:function(d){var b=this.layer.tileInfo.lods,a,c,f=null;k.some(b,function(b,f){return d.level===b.level?(a=b,c=f,!0):!1});0<c&&(b=b[c-1],f={id:d.id,level:b.level,row:Math.floor(d.row*a.resolution/b.resolution+0.01),col:Math.floor(d.col*a.resolution/b.resolution+0.01)});return f},_tileToTileMap:function(d){var b=
8*Math.floor(d.row/8),a=8*Math.floor(d.col/8);return{uid:d.level+"_"+b+"_"+a,level:d.level,row:b,col:a}},_isTileAvailable:function(d,b){var a,c;b.valid?void 0!==b.value?a=b.value:(a=b.location.left,c=b.location.top,a=(d.row-c)*b.location.width+(d.col-a),a=a<b.data.length?b.data[a]:0):a=0;return a},_getTileMapUrl:function(d,b,a){var c=this.layer,f=c.tileServers,m=c._getToken(),g=c._url.query;d=(f?f[b%f.length]:c._url.path)+"/tilemap/"+d+"/"+b+"/"+a+"/8/8";g&&(d+="?"+h.objectToQuery(g));if(m&&(!g||
!g.token))d+=(-1===d.indexOf("?")?"?":"\x26")+"token\x3d"+m;d=c.addTimestampToURL(d);return e.addProxy(d)},_getResamplingBudget:function(){var d=this.layer,b=0;if(d.resampling&&(b=d._resamplingTolerance,null===b||void 0===b))b=d.tileInfo.lods.length;return b}})})},"esri/layers/OpenStreetMapLayer":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../urlUtils ../SpatialReference ../geometry/Extent ./TiledMapServiceLayer ./TileInfo".split(" "),function(l,n,k,q,h,g,e,d,b){l=l(d,
{declaredClass:"esri.layers.OpenStreetMapLayer",constructor:function(a){this.spatialReference=new g({wkid:102100});this.tileInfo=new b({rows:256,cols:256,dpi:96,format:"PNG8",compressionQuality:0,origin:{x:-2.0037508342787E7,y:2.0037508342787E7},spatialReference:{wkid:102100},lods:[{level:0,scale:5.91657527591555E8,resolution:156543.033928},{level:1,scale:2.95828763795777E8,resolution:78271.5169639999},{level:2,scale:1.47914381897889E8,resolution:39135.7584820001},{level:3,scale:7.3957190948944E7,
resolution:19567.8792409999},{level:4,scale:3.6978595474472E7,resolution:9783.93962049996},{level:5,scale:1.8489297737236E7,resolution:4891.96981024998},{level:6,scale:9244648.868618,resolution:2445.98490512499},{level:7,scale:4622324.434309,resolution:1222.99245256249},{level:8,scale:2311162.217155,resolution:611.49622628138},{level:9,scale:1155581.108577,resolution:305.748113140558},{level:10,scale:577790.554289,resolution:152.874056570411},{level:11,scale:288895.277144,resolution:76.4370282850732},
{level:12,scale:144447.638572,resolution:38.2185141425366},{level:13,scale:72223.819286,resolution:19.1092570712683},{level:14,scale:36111.909643,resolution:9.55462853563415},{level:15,scale:18055.954822,resolution:4.77731426794937},{level:16,scale:9027.977411,resolution:2.38865713397468},{level:17,scale:4513.988705,resolution:1.19432856685505},{level:18,scale:2256.994353,resolution:0.597164283559817},{level:19,scale:1128.497176,resolution:0.298582141647617}]});this.fullExtent=new e({xmin:-2.003750834E7,
ymin:-2.003750834E7,xmax:2.003750834E7,ymax:2.003750834E7,spatialReference:{wkid:102100}});this.initialExtent=new e({xmin:-2.003750834E7,ymin:-2.003750834E7,xmax:2.003750834E7,ymax:2.003750834E7,spatialReference:{wkid:102100}});this.tileServers=a&&a.tileServers||["http://a.tile.openstreetmap.org","http://b.tile.openstreetmap.org","http://c.tile.openstreetmap.org"];this.serversLength=this.tileServers.length;this._displayLevels=a?a.displayLevels:null;this.copyright=a&&a.copyright||"Map data \x26copy; OpenStreetMap contributors, CC-BY-SA";
this.loaded=!0;this.onLoad(this);(a=a&&a.loadCallback)&&a(this)},getTileUrl:function(a,b,f){a=this.tileServers[b%this.serversLength]+"/"+a+"/"+f+"/"+b+".png";a=this.addTimestampToURL(a);return h.addProxy(a)}});k("extend-esri")&&n.setObject("layers.OpenStreetMapLayer",l,q);return l})},"esri/dijit/Popup":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/kernel dojo/has dojo/window dojo/Stateful dojo/query dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dijit/registry ../kernel ../lang ../domUtils ../geometry/Polyline ../geometry/Polygon ../InfoWindowBase ../PopupBase dojo/i18n!../nls/jsapi dojo/NodeList-dom dojo/has!extend-esri?./PopupTemplate dojo/has!extend-esri?./PopupRenderer".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v,A,y,w,z,x,B){l=l([z,x,d],{declaredClass:"esri.dijit.Popup",offsetX:3,offsetY:3,zoomFactor:4,marginLeft:25,marginTop:25,highlight:!0,pagingControls:!0,pagingInfo:!0,keepHighlightOnHide:!1,popupWindow:!0,titleInBody:!0,anchor:"auto",visibleWhenEmpty:!0,hideDelay:1E3,location:null,constructor:function(b,m){this.initialize();n.mixin(this,b);this.domNode=a.byId(m);var d=this._nls=n.mixin({},B.widgets.popup),e=this.domNode;f.add(e,"esriPopup");(this._isRTL=!s.isBodyLtr())&&
t.set(e,"direction","rtl");c.set(e,"innerHTML","\x3cdiv class\x3d'esriPopupWrapper' style\x3d'position: absolute;'\x3e\x3cdiv class\x3d'sizer'\x3e\x3cdiv class\x3d'titlePane'\x3e\x3cdiv class\x3d'spinner hidden' title\x3d'"+d.NLS_searching+"...'\x3e\x3c/div\x3e\x3cdiv class\x3d'title'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton prev hidden' title\x3d'"+d.NLS_prevFeature+"'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton next hidden' title\x3d'"+d.NLS_nextFeature+"'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton maximize' title\x3d'"+
d.NLS_maximize+"'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton close' title\x3d'"+d.NLS_close+"'\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'sizer content'\x3e\x3cdiv class\x3d'contentPane'\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'sizer'\x3e\x3cdiv class\x3d'actionsPane'\x3e\x3cdiv class\x3d'actionList hidden'\x3e\x3ca title\x3d"+d.NLS_zoomTo+" class\x3d'action zoomTo' href\x3d'javascript:void(0);'\x3e\x3cspan\x3e"+d.NLS_zoomTo+"\x3c/span\x3e\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'pointer hidden'\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'outerPointer hidden'\x3e\x3c/div\x3e");
this._sizers=h.query(".sizer",e);d=h.query(".titlePane",e)[0];a.setSelectable(d,!1);this._title=h.query(".title",d)[0];this._prevFeatureButton=h.query(".prev",d)[0];this._nextFeatureButton=h.query(".next",d)[0];this._maxButton=h.query(".maximize",d)[0];this._spinner=h.query(".spinner",d)[0];this._contentPane=h.query(".contentPane",e)[0];this._positioner=h.query(".esriPopupWrapper",e)[0];this._pointer=h.query(".pointer",e)[0];this._outerPointer=h.query(".outerPointer",e)[0];this._actionList=h.query(".actionsPane .actionList",
e)[0];this._eventConnections=[q.connect(h.query(".close",d)[0],"onclick",this,this.hide),q.connect(this._prevFeatureButton,"onclick",this,this.selectPrevious),q.connect(this._nextFeatureButton,"onclick",this,this.selectNext),q.connect(this._maxButton,"onclick",this,this._toggleSize),q.connect(h.query(".zoomTo",this._actionList)[0],"onclick",this,this._zoomToFeature),q.connect(this,"onClearFeatures",this,this._featuresCleared),q.connect(this,"onSelectionChange",this,this._featureSelected),q.connect(this,
"onDfdComplete",this,this._updateUI)];g("esri-touch")&&(e=A.setScrollable(this._contentPane),this._eventConnections.push(e[0],e[1]));this._toggleVisibility(!1)},onMaximize:function(){},onRestore:function(){},setMap:function(a){this.inherited(arguments);m.place(this.domNode,a.root);this.highlight&&this.enableHighlight(a);this._maxHeight=t.get(this._contentPane,"maxHeight")},unsetMap:function(){this.disableHighlight(this.map);this.inherited(arguments)},setTitle:function(a){if(this.popupWindow){if(!v.isDefined(a)||
""===a)a="\x26nbsp;";this.destroyDijits(this._title);this.place(a,this._title);this.isShowing&&(this.startupDijits(this._title),this.reposition())}},setContent:function(a){if(this.popupWindow){if(!v.isDefined(a)||""===a)a="\x26nbsp;";this.destroyDijits(this._contentPane);this.place(a,this._contentPane);this.isShowing&&(this.startupDijits(this._contentPane),this.reposition())}},show:function(a,b){if(this.popupWindow)if(this._delayHide=!1,a){var c=this.map,f;a.spatialReference?(this.location=a,f=c.toScreen(a)):
(this.location=c.toMap(a),f=a);var m=c._getFrameWidth();if(-1!==m&&(f.x%=m,0>f.x&&(f.x+=m),c.width>m))for(c=(c.width-m)/2;f.x<c;)f.x+=m;this._maximized?this.restore():this._setPosition(f);b&&b.closestFirst&&this.showClosestFirst(this.location);this.isShowing||(this._toggleVisibility(!0),this._followMap(),this.startupDijits(this._title),this.startupDijits(this._contentPane),this.reposition(),this.showHighlight(),this.onShow())}else this._toggleVisibility(!0)},hide:function(){this.isShowing&&(this._toggleVisibility(!1),
this._unfollowMap(),this.keepHighlightOnHide||this.hideHighlight(),this.onHide())},resize:function(a,b){this.popupWindow&&(this._sizers.style({width:a+"px"}),t.set(this._contentPane,"maxHeight",b+"px"),this._maxHeight=b,this.isShowing&&this.reposition())},reposition:function(){this.popupWindow&&this.map&&(this.location&&!this._maximized&&this.isShowing)&&this._setPosition(this.map.toScreen(this.location))},maximize:function(){var a=this.map;if(a&&!this._maximized&&this.popupWindow){this._maximized=
!0;var b=this._maxButton;f.remove(b,"maximize");f.add(b,"restore");c.set(b,"title",this._nls.NLS_restore);var b=this.marginLeft,m=this.marginTop,d=a.width-2*b,a=a.height-2*m;t.set(this.domNode,{left:this._isRTL?null:b+"px",right:this._isRTL?b+"px":null,top:m+"px",bottom:null});t.set(this._positioner,{left:null,right:null,top:null,bottom:null});this._savedWidth=t.get(this._sizers[0],"width");this._savedHeight=t.get(this._contentPane,"maxHeight");this._sizers.style({width:d+"px"});t.set(this._contentPane,
{maxHeight:a-65+"px",height:a-65+"px"});this._showPointer("");this._unfollowMap();f.add(this.domNode,"esriPopupMaximized");this.onMaximize()}},restore:function(){if(this.map&&this._maximized&&this.popupWindow){this._maximized=!1;var a=this._maxButton;f.remove(a,"restore");f.add(a,"maximize");c.set(a,"title",this._nls.NLS_maximize);t.set(this._contentPane,"height",null);this.resize(this._savedWidth,this._savedHeight);this._savedWidth=this._savedHeight=null;this.show(this.location);this._followMap();
f.remove(this.domNode,"esriPopupMaximized");this.onRestore()}},startup:function(){},destroy:function(){this.map&&this.unsetMap();this.cleanup();this.isShowing&&this.hide();this.destroyDijits(this._title);this.destroyDijits(this._content);k.forEach(this._eventConnections,q.disconnect);m.destroy(this.domNode);this._sizers=this._contentPane=this._actionList=this._positioner=this._pointer=this._outerPointer=this._title=this._prevFeatureButton=this._nextFeatureButton=this._spinner=this._eventConnections=
this._pagerScope=this._targetLocation=this._nls=this._maxButton=null},selectNext:function(){this.select(this.selectedIndex+1)},selectPrevious:function(){this.select(this.selectedIndex-1)},setFeatures:function(){this.inherited(arguments);this._updateUI()},postscript:null,_highlightSetter:function(a){var b=this.highlight,c=this.map;this.highlight=a;if(c&&a!==b)if(a){if(this.enableHighlight(c),a=this.features&&this.features[this.selectedIndex])this.updateHighlight(c,a),this.showHighlight()}else this.disableHighlight(c)},
_pagingControlsSetter:function(a){var b=this.pagingControls,c=this.map;this.pagingControls=a;c&&a!==b&&this._updatePagingControls()},_pagingInfoSetter:function(a){var b=this.pagingInfo,c=this.map;this.pagingInfo=a;c&&(a!==b&&this.features&&this.features.length)&&this._updatePagingInfo()},_popupWindowSetter:function(a){var b=this.popupWindow,c=this.map;this.popupWindow=a;c&&a!==b&&(a?(this._updateUI(),this._updateWindow()):(this.hide(),this.showHighlight()))},_anchorSetter:function(a){var b=this.anchor;
this.anchor=a;this.map&&a!==b&&this.reposition()},_featuresCleared:function(){this.setTitle("\x26nbsp;");this.setContent("\x26nbsp;");this._setPagerCallbacks(this);this._updateUI();this.hideHighlight()},_featureSelected:function(){this._updateUI();this._updateWindow()},_updateWindow:function(){var a=this.selectedIndex;if(0<=a){var b=this.features[a].getContent(),c;!this.titleInBody&&b&&n.isString(b.id)&&(c=r.byId(b.id))&&(c.set&&/_PopupRenderer/.test(c.declaredClass))&&c.set("showTitle",!1);this.setContent(b);
this.updateHighlight(this.map,this.features[a]);this.showHighlight()}},_toggleVisibility:function(a){this._setVisibility(a);this.isShowing=a},_setVisibility:function(a){t.set(this.domNode,"visibility",a?"visible":"hidden");f.toggle(this.domNode,"esriPopupVisible",a)},_waitAndHide:function(a){var b=this;this._delayHide=!0;setTimeout(function(){b._delayHide&&(b._delayHide=!1,b.hide())},a)},_followMap:function(){this._unfollowMap();var a=this.map;this._handles=[q.connect(a,"onPanStart",this,this._onPanStart),
q.connect(a,"onPan",this,this._onPan),q.connect(a,"onZoomStart",this,this._onZoomStart),q.connect(a,"onExtentChange",this,this._onExtentChange)]},_unfollowMap:function(){var a=this._handles;a&&(k.forEach(a,q.disconnect),this._handles=null)},_onPanStart:function(){var a=this.domNode.style;this._panOrigin={left:a.left,top:a.top,right:a.right,bottom:a.bottom}},_onPan:function(a,b){var c=this._panOrigin,f=b.x,m=b.y,d=c.left,e=c.top,g=c.right,c=c.bottom;d&&(d=parseFloat(d)+f+"px");e&&(e=parseFloat(e)+
m+"px");g&&(g=parseFloat(g)-f+"px");c&&(c=parseFloat(c)-m+"px");t.set(this.domNode,{left:d,top:e,right:g,bottom:c})},_onZoomStart:function(){this._setVisibility(!1)},_onExtentChange:function(a,b,c){c&&(this._setVisibility(!0),this.show(this._targetLocation||this.location));this._targetLocation=null},_toggleSize:function(){this._maximized?this.restore():this.maximize()},_setPosition:function(a){var b=a.x,c=a.y;a=this.offsetX||0;var f=this.offsetY||0,m=0,d=0,g=s.position(this.map.container,!0),h=g.w,
k=g.h,l="Left",r="bottom",n=s.getContentBox(this._positioner),u=n.w/2,q=n.h/2,w=t.get(this._sizers[0],"height")+this._maxHeight+t.get(this._sizers[2],"height"),x=w/2,v=0,z=0,A=b,y=c,B=this.anchor.toLowerCase();if("auto"===B){if(B=e.getBox)B=B(),v=Math.max(B.l,g.x),h=Math.min(B.l+B.w,g.x+g.w),z=Math.max(B.t,g.y),k=Math.min(B.t+B.h,g.y+g.h),A+=g.x,y+=g.y;g=y-z>=w;w=k-y>=w;B=h-A>=n.w;n=A-v>=n.w;y-z>x&&k-y>=x&&(B?(r="",l="Left"):n&&(r="",l="Right"));l&&r&&(A-v>u&&h-A>=u)&&(g?(l="",r="bottom"):w&&(l="",
r="top"));l&&r&&(B&&g?(l="Left",r="bottom"):B&&w?(l="Left",r="top"):n&&w?(l="Right",r="top"):n&&g&&(l="Right",r="bottom"))}else r=l="",-1!==B.indexOf("top")?r="bottom":-1!==B.indexOf("bottom")&&(r="top"),-1!==B.indexOf("left")?l="Right":-1!==B.indexOf("right")&&(l="Left");x=r+l;switch(x){case "top":case "bottom":d=14;break;case "Left":case "Right":m=13;break;case "topLeft":case "topRight":case "bottomLeft":case "bottomRight":d=14,m=-16}t.set(this.domNode,{left:b+"px",top:c+"px",right:null,bottom:null});
b={left:null,right:null,top:null,bottom:null};l?b[l.toLowerCase()]=m+a+"px":b.left=-u+"px";r?b[r]=d+f+"px":b.top=-q+"px";t.set(this._positioner,b);this._showPointer(x)},_showPointer:function(a){f.remove(this._pointer,"top bottom right left topLeft topRight bottomRight bottomLeft hidden".split(" "));f.remove(this._outerPointer,["right","left","hidden"]);"Right"===a||"Left"===a?(a=a.toLowerCase(),f.add(this._outerPointer,a)):f.add(this._pointer,a)},_setPagerCallbacks:function(a,b,c){if(this.pagingControls&&
!(a===this&&(!this._pagerScope||this._pagerScope===this))&&a!==this._pagerScope){this._pagerScope=a;a===this&&(b=this.selectPrevious,c=this.selectNext);var f=this._eventConnections;q.disconnect(f[1]);q.disconnect(f[2]);b&&(f[1]=q.connect(this._prevFeatureButton,"onclick",a,b));c&&(f[2]=q.connect(this._nextFeatureButton,"onclick",a,c))}},_getLocation:function(a){var b=this.map,c,f,m=0,d;if(a=a&&a.geometry)switch(a.type){case "point":c=a;break;case "multipoint":c=a.getPoint(0);f=a.getExtent();break;
case "polyline":c=a.getPoint(0,0);f=a.getExtent();-1!==b._getFrameWidth()&&(k.forEach(a.paths,function(a){a=(new y({paths:[a,b.spatialReference]})).getExtent();var c=Math.abs(a.ymax-a.ymin),f=Math.abs(a.xmax-a.xmin),c=f>c?f:c;c>m&&(m=c,d=a)}),d.spatialReference=f.spatialReference,f=d);break;case "polygon":c=a.getPoint(0,0),f=a.getExtent(),-1!==b._getFrameWidth()&&(k.forEach(a.rings,function(a){a=(new w({rings:[a,b.spatialReference]})).getExtent();var c=Math.abs(a.ymax-a.ymin),f=Math.abs(a.xmax-a.xmin),
c=f>c?f:c;c>m&&(m=c,d=a)}),d.spatialReference=f.spatialReference,f=d)}return[c,f]},_zoomToFeature:function(a){a.preventDefault();var b=this.features,c=this.selectedIndex;a=this.map;if(b){c=this._getLocation(b[c]);b=c[0];c=c[1];b||(b=this.location);if(!c||!c.intersects(this.location))this.location=b;if(c&&c.getWidth()&&c.getHeight())a.setExtent(c,!0);else{var f=a.getNumLevels(),c=a.getLevel(),m=a.getMaxZoom(),d=this.zoomFactor||1;0<f?c!==m&&(f=c+d,f>m&&(f=m),a.navigationManager._wheelZoom({value:f-
c,mapPoint:b},!0)):a.navigationManager._wheelZoom({value:2*(1/Math.pow(2,d)),mapPoint:b},!0)}}},_updatePagingControls:function(){var a=this._prevFeatureButton,b=this._nextFeatureButton,c=this.selectedIndex,m=this.features?this.features.length:0;this.pagingControls&&1<m?(0===c?f.add(a,"hidden"):f.remove(a,"hidden"),c===m-1?f.add(b,"hidden"):f.remove(b,"hidden")):(f.add(a,"hidden"),f.add(b,"hidden"))},_updatePagingInfo:function(){var a=this.features?this.features.length:0,b=this._nls,c="\x26nbsp;";
this.pagingInfo&&(1<a&&b.NLS_pagingInfo)&&(c=v.substitute({index:this.selectedIndex+1,total:a},b.NLS_pagingInfo));if(a&&(b=this.getSelectedFeature(),a=b.getInfoTemplate(),b=b.getTitle(),(!a||/esri\.InfoTemplate/.test(a.declaredClass)||!this.titleInBody)&&b))c=b+("\x26nbsp;"===c?"":" "+c);this.setTitle(c)},_updateUI:function(){if(this.popupWindow){var a=this.features,b=this.deferreds,c=a?a.length:0,m=this._spinner,d=this._actionList,e=this._nls;this._updatePagingControls();this._updatePagingInfo();
c?f.remove(d,"hidden"):f.add(d,"hidden");b&&b.length?a?f.remove(m,"hidden"):this.setContent("\x3cdiv style\x3d'text-align: center;'\x3e"+e.NLS_searching+"...\x3c/div\x3e"):(f.add(m,"hidden"),c||(this.setContent("\x3cdiv style\x3d'text-align: center;'\x3e"+e.NLS_noInfo+".\x3c/div\x3e"),this.visibleWhenEmpty||this._waitAndHide(this.hideDelay)))}}});g("extend-esri")&&n.setObject("dijit.Popup",l,u);return l})},"dojo/window":function(){define("./_base/lang ./sniff ./_base/window ./dom ./dom-geometry ./dom-style ./dom-construct".split(" "),
function(l,n,k,q,h,g,e){n.add("rtl-adjust-position-for-verticalScrollBar",function(b,a){var c=k.body(a),f=e.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},c,"last"),m=e.create("div",{style:{overflow:"hidden",direction:"ltr"}},f,"last"),d=0!=h.position(m).x;f.removeChild(m);c.removeChild(f);return d});n.add("position-fixed-support",function(b,a){var c=k.body(a),f=e.create("span",{style:{visibility:"hidden",
position:"fixed",left:"1px",top:"1px"}},c,"last"),m=e.create("span",{style:{position:"fixed",left:"0",top:"0"}},f,"last"),d=h.position(m).x!=h.position(f).x;f.removeChild(m);c.removeChild(f);return d});var d={getBox:function(b){b=b||k.doc;var a="BackCompat"==b.compatMode?k.body(b):b.documentElement,c=h.docScroll(b);if(n("touch")){var f=d.get(b);b=f.innerWidth||a.clientWidth;a=f.innerHeight||a.clientHeight}else b=a.clientWidth,a=a.clientHeight;return{l:c.x,t:c.y,w:b,h:a}},get:function(b){if(n("ie")&&
d!==document.parentWindow){b.parentWindow.execScript("document._parentWindow \x3d window;","Javascript");var a=b._parentWindow;b._parentWindow=null;return a}return b.parentWindow||b.defaultView},scrollIntoView:function(b,a){try{b=q.byId(b);var c=b.ownerDocument||k.doc,f=k.body(c),m=c.documentElement||f.parentNode,d=n("ie"),e=n("webkit");if(!(b==f||b==m))if(!n("mozilla")&&(!d&&!e&&!n("opera")&&!n("trident"))&&"scrollIntoView"in b)b.scrollIntoView(!1);else{var l="BackCompat"==c.compatMode,u=Math.min(f.clientWidth||
m.clientWidth,m.clientWidth||f.clientWidth),v=Math.min(f.clientHeight||m.clientHeight,m.clientHeight||f.clientHeight),c=e||l?f:m,A=a||h.position(b),y=b.parentNode,e=function(a){return 6>=d||7==d&&l?!1:n("position-fixed-support")&&"fixed"==g.get(a,"position").toLowerCase()},w=this,z=function(a,b,c){"BODY"==a.tagName||"HTML"==a.tagName?w.get(a.ownerDocument).scrollBy(b,c):(b&&(a.scrollLeft+=b),c&&(a.scrollTop+=c))};if(!e(b))for(;y;){y==f&&(y=c);var x=h.position(y),B=e(y),D="rtl"==g.getComputedStyle(y).direction.toLowerCase();
if(y==c){x.w=u;x.h=v;c==m&&(d&&D)&&(x.x+=c.offsetWidth-x.w);if(0>x.x||!d||9<=d)x.x=0;if(0>x.y||!d||9<=d)x.y=0}else{var C=h.getPadBorderExtents(y);x.w-=C.w;x.h-=C.h;x.x+=C.l;x.y+=C.t;var F=y.clientWidth,I=x.w-F;0<F&&0<I&&(D&&n("rtl-adjust-position-for-verticalScrollBar")&&(x.x+=I),x.w=F);F=y.clientHeight;I=x.h-F;0<F&&0<I&&(x.h=F)}B&&(0>x.y&&(x.h+=x.y,x.y=0),0>x.x&&(x.w+=x.x,x.x=0),x.y+x.h>v&&(x.h=v-x.y),x.x+x.w>u&&(x.w=u-x.x));var E=A.x-x.x,L=A.y-x.y,G=E+A.w-x.w,K=L+A.h-x.h,J,H;if(0<G*E&&(y.scrollLeft||
y==c||y.scrollWidth>y.offsetHeight)){J=Math[0>E?"max":"min"](E,G);if(D&&(8==d&&!l||9<=d))J=-J;H=y.scrollLeft;z(y,J,0);J=y.scrollLeft-H;A.x-=J}if(0<K*L&&(y.scrollTop||y==c||y.scrollHeight>y.offsetHeight))J=Math.ceil(Math[0>L?"max":"min"](L,K)),H=y.scrollTop,z(y,0,J),J=y.scrollTop-H,A.y-=J;y=y!=c&&!B&&y.parentNode}}}catch(M){console.error("scrollIntoView: "+M),b.scrollIntoView(!1)}}};l.setObject("dojo.window",d);return d})},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array",
"./when"],function(l,n,k,q){return l("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(h){var g=this._attrPairNames;return g[h]?g[h]:g[h]={s:"_"+h+"Setter",g:"_"+h+"Getter"}},postscript:function(h){h&&this.set(h)},_get:function(h,g){return"function"===typeof this[g.g]?this[g.g]():this[h]},get:function(h){return this._get(h,this._getAttrNames(h))},set:function(h,g){if("object"===typeof h){for(var e in h)h.hasOwnProperty(e)&&"_watchCallbacks"!=e&&this.set(e,h[e]);return this}e=this._getAttrNames(h);
var d=this._get(h,e);e=this[e.s];var b;"function"===typeof e?b=e.apply(this,Array.prototype.slice.call(arguments,1)):this[h]=g;if(this._watchCallbacks){var a=this;q(b,function(){a._watchCallbacks(h,d,g)})}return this},_changeAttrValue:function(h,g){var e=this.get(h);this[h]=g;this._watchCallbacks&&this._watchCallbacks(h,e,g);return this},watch:function(h,g){var e=this._watchCallbacks;if(!e)var d=this,e=this._watchCallbacks=function(a,b,m,g){var h=function(e){if(e){e=e.slice();for(var g=0,h=e.length;g<
h;g++)e[g].call(d,a,b,m)}};h(e["_"+a]);g||h(e["*"])};!g&&"function"===typeof h?(g=h,h="*"):h="_"+h;var b=e[h];"object"!==typeof b&&(b=e[h]=[]);b.push(g);var a={};a.unwatch=a.remove=function(){var a=k.indexOf(b,g);-1<a&&b.splice(a,1)};return a}})})},"esri/InfoWindowBase":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/Deferred dojo/dom-construct dojo/has dijit/registry ./kernel ./lang ./geometry/ScreenPoint".split(" "),function(l,n,k,q,h,g,e,d,b,
a,c){l=l(null,{declaredClass:"esri.InfoWindowBase",constructor:function(){var a=n.hitch;this.__set_title=a(this,this.__set_title);this.__err_title=a(this,this.__err_title);this.__set_content=a(this,this.__set_content);this.__err_content=a(this,this.__err_content)},setMap:function(a){this.map=a},unsetMap:function(a){delete this.map},setTitle:function(){},setContent:function(){},show:function(){},hide:function(){},resize:function(){},onShow:function(){},onHide:function(){},place:function(b,c){a.isDefined(b)?
n.isObject(b)?g.place(b,c,"only"):c.innerHTML=b:c.innerHTML=""},startupDijits:function(a){this._processDijits(a)},destroyDijits:function(a){this._processDijits(a,!0)},_processDijits:function(a,b){if(a&&1===a.children.length){var c=a.children[0];if(c){var e=d.byNode(c),c=e?[e]:d.findWidgets(c);k.forEach(c,function(a){if(b){if(a._started&&!a._destroyed)try{a.destroyRecursive?a.destroyRecursive():a.destroy&&a.destroy()}catch(c){}}else if(!a._started)try{a.startup()}catch(f){}})}}},__registerMapListeners:function(){this.__unregisterMapListeners();
var a=this.map;this.__handles=[q.connect(a,"onPan",this,this.__onMapPan),q.connect(a,"onZoomStart",this,this.__onMapZmStart),q.connect(a,"onExtentChange",this,this.__onMapExtChg)]},__unregisterMapListeners:function(){var a=this.__handles;a&&(k.forEach(a,q.disconnect,q),this.__handles=null)},__onMapPan:function(a,b){this.move(b,!0)},__onMapZmStart:function(){this.__mcoords=this.mapCoords||this.map.toMap(new c(this.coords));this.hide(null,!0)},__onMapExtChg:function(a,b,c){a=this.map;var d=this.mapCoords;
d?this.show(d,null,!0):(b=c?a.toScreen(this.__mcoords):this.coords.offset(b&&b.x||0,b&&b.y||0),this.show(b,null,!0))},__setValue:function(b,c){this[b].innerHTML="";var d="_dfd"+b,e=this[d];e&&-1===e.fired&&(e.cancel(),this[d]=null);a.isDefined(c)&&(c instanceof h?(this[d]=c,c.addCallbacks(this["__set"+b],this["__err"+b])):this.__render(b,c))},__set_title:function(a){this._dfd_title=null;this.__render("_title",a)},__err_title:function(a){this._dfd_title=null},__set_content:function(a){this._dfd_content=
null;this.__render("_content",a)},__err_content:function(a){this._dfd_content=null},__render:function(a,b){var c=this[a];this.place(b,c);this.isShowing&&(this.startupDijits(c),"_title"===a&&this._adjustContentArea&&this._adjustContentArea())}});e("extend-esri")&&(b.InfoWindowBase=l);return l})},"esri/PopupBase":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/Color dojo/_base/Deferred dojo/has ./kernel ./graphic ./geometry/Point ./geometry/jsonUtils ./geometry/mathUtils ./geometry/webMercatorUtils ./symbols/SimpleMarkerSymbol ./symbols/SimpleLineSymbol ./symbols/CartographicLineSymbol ./symbols/SimpleFillSymbol ./tasks/query ./Evented dojo/has!extend-esri?./PopupInfo".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v){l=l(v,{declaredClass:"esri.PopupBase",_featureLayers:{},_updateEndHandles:[],_evtMap:{"set-features":!0,"clear-features":!0,"selection-change":!0,"dfd-complete":!0},onSetFeatures:function(){},onClearFeatures:function(){},onSelectionChange:function(){},onDfdComplete:function(){},initialize:function(){this.count=0;this.selectedIndex=-1;this.on("clear-features",n.hitch(this,this._resetUpdateEndListeners));this.on("dfd-complete",n.hitch(this,this._processFeatures));
this.on("set-features",n.hitch(this,this._processFeatures))},cleanup:function(){this.features=this.deferreds=null;this._resetUpdateEndListeners()},setFeatures:function(a){if(a&&a.length){this.clearFeatures();var b,c;a[0]instanceof h?c=a:b=a;b?this._updateFeatures(null,b):(this.deferreds=c,c=c.slice(0),k.forEach(c,function(a){a.addBoth(n.hitch(this,this._updateFeatures,a))},this))}},clearFeatures:function(){this.features=this.deferreds=this._marked=null;this.count=0;var a=this.selectedIndex;this.selectedIndex=
-1;if(-1<a)this.onSelectionChange();this.onClearFeatures()},getSelectedFeature:function(){var a=this.features;if(a)return a[this.selectedIndex]},select:function(a){0>a||a>=this.count||(this.selectedIndex=a,this.onSelectionChange())},enableHighlight:function(a){this._highlighted=a.graphics.add(new d(new b(0,0,a.spatialReference)));this._highlighted.hide();this.markerSymbol||(a=this.markerSymbol=new m,a.setStyle(m.STYLE_TARGET),a._setDim(16,16,7),a.setOutline(new t(s.STYLE_SOLID,new q([0,255,255]),
2,t.CAP_ROUND,t.JOIN_ROUND)),a.setColor(new q([0,0,0,0])));this.lineSymbol||(this.lineSymbol=new s(s.STYLE_SOLID,new q([0,255,255]),2));this.fillSymbol||(this.fillSymbol=new r(r.STYLE_NULL,new s(s.STYLE_SOLID,new q([0,255,255]),2),new q([0,0,0,0])))},disableHighlight:function(a){var b=this._highlighted;b&&(b.hide(),a.graphics.remove(b),delete this._highlighted);this.markerSymbol=this.lineSymbol=this.fillSymbol=null},showHighlight:function(){var a=this.features&&this.features[this.selectedIndex];this._highlighted&&
(a&&a.geometry)&&this._highlighted.show()},hideHighlight:function(){this._highlighted&&this._highlighted.hide()},updateHighlight:function(b,c){var f=c.geometry,m=this._highlighted;if(!f||!m)m&&m.hide();else{m.hide();!m._graphicsLayer&&b&&b.graphics.add(m);m.setGeometry(a.fromJson(f.toJson()));var d;switch(f.type){case "point":case "multipoint":d=this.markerSymbol;d.setOffset(0,0);d.setAngle(0);var e=c.getLayer();if(e){var f=e._getSymbol(c),g,h,k=0,l=0,r=0;if(f){if((e=!c.symbol?e._getRenderer(c):null)&&
e.proportionalSymbolInfo)g=h=e.getSize(c,{shape:f.style});else switch(f.type){case "simplemarkersymbol":g=h=f.size||0;break;case "picturemarkersymbol":g=f.width||0,h=f.height||0}k=f.xoffset||0;l=f.yoffset||0;r=f.angle||0}g&&h&&d._setDim(g+1,h+1,7);d.setOffset(k,l);d.setAngle(r)}break;case "polyline":d=this.lineSymbol;break;case "polygon":d=this.fillSymbol}m.setSymbol(d)}},showClosestFirst:function(a){var b=this.features;if(b&&b.length){if(1<b.length){var m,d=Infinity,e=-1,g,h=c.getLength,k,l=a.spatialReference,
r,t;a=a.normalize();for(m=b.length-1;0<=m;m--)if(g=b[m].geometry){r=g.spatialReference;k=0;try{t="point"===g.type?g:g.getExtent().getCenter(),t=t.normalize(),l&&(r&&!l.equals(r)&&l._canProject(r))&&(t=l.isWebMercator()?f.geographicToWebMercator(t):f.webMercatorToGeographic(t)),k=h(a,t)}catch(s){}0<k&&k<d&&(d=k,e=m)}0<e&&(b.splice(0,0,b.splice(e,1)[0]),this.select(0))}}else this.deferreds&&(this._marked=a)},_unbind:function(a){a=k.indexOf(this.deferreds,a);if(-1!==a)return this.deferreds.splice(a,
1),!this.deferreds.length?(this.deferreds=null,2):1},_fireComplete:function(a){var b=this._marked;b&&(this._marked=null,this.showClosestFirst(b));this.onDfdComplete(a)},_updateFeatures:function(a,b){if(a){if(this.deferreds){var c=this._unbind(a);if(c)if(b&&b instanceof Error){if(this._fireComplete(b),2===c)this.onSetFeatures()}else if(b&&b.length)if(this.features){var f=k.filter(b,function(a){return-1===k.indexOf(this.features,a)},this);this.features=this.features.concat(f);this.count=this.features.length;
this._fireComplete();if(2===c)this.onSetFeatures()}else{this.features=b;this.count=b.length;this.selectedIndex=0;this._fireComplete();if(2===c)this.onSetFeatures();this.select(0)}else if(this._fireComplete(),2===c)this.onSetFeatures()}}else this.features=b,this.count=b.length,this.selectedIndex=0,this.onSetFeatures(),this.select(0)},_resetUpdateEndListeners:function(){this._featureLayers={};k.forEach(this._updateEndHandles,function(a){a.remove()});this._updateEndHandles=[]},_processFeatures:function(){k.forEach(this.features,
function(a){if((a=a.getLayer())&&!this._featureLayers[a.id]&&1===a.currentMode&&a.objectIdField&&a.hasXYFootprint&&a.queryFeatures&&("esriGeometryPolygon"===a.geometryType||"esriGeometryPolyline"===a.geometryType||a.hasXYFootprint()))this._featureLayers[a.id]=a,a=a.on("update-end",n.hitch(this,this._fLyrUpdateEndHandler)),this._updateEndHandles.push(a)},this)},_fLyrUpdateEndHandler:function(a){if(!a.error){var b=this,c=a.target,f={},m=[];k.forEach(this.features,function(a){if(a.getLayer()===c){var b=
a.attributes[c.objectIdField];f[b]=a;m.push(b)}});m.length&&(a=new u,a.objectIds=m,c.queryFeatures(a,function(a){k.forEach(a.features,function(a){var b=f[a.attributes[c.objectIdField]];b.geometry!==a.geometry&&(b.setGeometry(a.geometry),this._highlighted&&b===this.getSelectedFeature()&&this._highlighted.setGeometry(a.geometry))},b)}))}}});g("extend-esri")&&(e.PopupBase=l);return l})},"esri/graphic":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ./kernel ./domUtils ./lang ./InfoTemplate ./geometry/jsonUtils ./symbols/jsonUtils".split(" "),
function(l,n,k,q,h,g,e,d,b){l=l(null,{declaredClass:"esri.Graphic",constructor:function(a,c,f,m){a&&!a.declaredClass?(this.geometry=a.geometry?d.fromJson(a.geometry):null,this.symbol=a.symbol?b.fromJson(a.symbol):null,this.attributes=a.attributes||null,this.infoTemplate=a.infoTemplate?new e(a.infoTemplate):null):(this.geometry=a,this.symbol=c,this.attributes=f,this.infoTemplate=m)},_shape:null,_graphicsLayer:null,_visible:!0,visible:!0,getDojoShape:function(){return this._shape},getShapes:function(){var a=
[];this._shape&&a.push(this._shape);this._bgShape&&a.push(this._bgShape);return a},getNode:function(){var a=this._shape&&this._shape.getNode();return a&&a.nodeType?a:null},getNodes:function(){var a=this.getShapes(),b,f,m=a.length,d=[];for(f=0;f<m;f++)(b=a[f]&&a[f].getNode())&&b.nodeType&&d.push(b);return d},getLayer:function(){return this._layer},draw:function(){var a=this._graphicsLayer;a&&a._draw(this,!0);return this},setGeometry:function(a){this.geometry=a;if(a=this._graphicsLayer)a._updateExtent(this),
a._draw(this,!0);return this},setSymbol:function(a,b){var f=this._graphicsLayer,m=this._shape;this.symbol=a;f&&(b&&m&&f._removeShape(this),f._draw(this,!0));return this},setAttributes:function(a){this.attributes=a;return this},setInfoTemplate:function(a){this.infoTemplate=a;return this},getInfoTemplate:function(){return this._getEffInfoTemplate()},_getEffInfoTemplate:function(){var a=this.getLayer();return this.infoTemplate||a&&a.infoTemplate},getTitle:function(){var a=this.getInfoTemplate(),b=a&&
a.title;if(n.isFunction(b))b=b.call(a,this);else if(n.isString(b))var f=(a=this.getLayer())&&a._getDateOpts,b=g.substitute(this.attributes,b,{first:!0,dateFormat:f&&f.call(a)});return b},getContent:function(){var a=this.getInfoTemplate(),b=a&&a.content;if(n.isFunction(b))b=b.call(a,this);else if(n.isString(b))var f=(a=this.getLayer())&&a._getDateOpts,b=g.substitute(this.attributes,b,{dateFormat:f&&f.call(a)});return b},attr:function(a,b){var f=this.getNodes(),m,d=f.length;for(m=0;m<d;m++)null==b?
f[m].removeAttribute(a):f[m].setAttribute(a,b);return this},show:function(){this.visible=this._visible=!0;var a,b,f;if(this.getShapes().length){a=this.getNodes();f=a.length;this.attr("data-hidden");for(b=0;b<f;b++)h.show(a[b])}else this._graphicsLayer&&this._graphicsLayer._draw(this,!0);return this},hide:function(){this.visible=this._visible=!1;var a=this._graphicsLayer,b,f;if(a)if("canvas-2d"===a.surfaceType)a._removeShape(this);else if(a=this.getNodes(),f=a.length){this.attr("data-hidden","");for(b=
0;b<f;b++)h.hide(a[b])}return this},toJson:function(){var a={};this.geometry&&(a.geometry=this.geometry.toJson());this.attributes&&(a.attributes=n.mixin({},this.attributes));this.symbol&&(a.symbol=this.symbol.toJson());this.infoTemplate&&(a.infoTemplate=this.infoTemplate.toJson());return a}});l.prototype.getShape=l.prototype.getDojoShape;k("extend-esri")&&(q.Graphic=l);return l})},"esri/InfoTemplate":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","./kernel","./lang"],function(l,
n,k,q,h){l=l(null,{declaredClass:"esri.InfoTemplate",constructor:function(g,e){g&&n.isObject(g)&&!n.isFunction(g)?n.mixin(this,g):(this.title=g||"${*}",this.content=e||"${*}")},setTitle:function(g){this.title=g;return this},setContent:function(g){this.content=g;return this},toJson:function(){return h.fixJson({title:this.title,content:this.content})}});k("extend-esri")&&(q.InfoTemplate=l);return l})},"esri/geometry/jsonUtils":function(){define("dojo/_base/lang dojo/has ../kernel ./Point ./Polyline ./Polygon ./Multipoint ./Extent".split(" "),
function(l,n,k,q,h,g,e,d){var b={fromJson:function(a){if(void 0!==a.x&&void 0!==a.y)return new q(a);if(void 0!==a.paths)return new h(a);if(void 0!==a.rings)return new g(a);if(void 0!==a.points)return new e(a);if(void 0!==a.xmin&&void 0!==a.ymin&&void 0!==a.xmax&&void 0!==a.ymax)return new d(a)},getJsonType:function(a){return a instanceof q?"esriGeometryPoint":a instanceof h?"esriGeometryPolyline":a instanceof g?"esriGeometryPolygon":a instanceof d?"esriGeometryEnvelope":a instanceof e?"esriGeometryMultipoint":
null},getGeometryType:function(a){return"esriGeometryPoint"===a?q:"esriGeometryPolyline"===a?h:"esriGeometryPolygon"===a?g:"esriGeometryEnvelope"===a?d:"esriGeometryMultipoint"===a?e:null}};n("extend-esri")&&l.mixin(l.getObject("geometry",!0,k),b);return b})},"esri/symbols/jsonUtils":function(){define("dojo/_base/lang dojo/has ../kernel ./SimpleMarkerSymbol ./PictureMarkerSymbol ./SimpleLineSymbol ./CartographicLineSymbol ./SimpleFillSymbol ./PictureFillSymbol ./TextSymbol".split(" "),function(l,
n,k,q,h,g,e,d,b,a){var c={fromJson:function(c){var m=null;switch(c.type){case "esriSMS":m=new q(c);break;case "esriPMS":m=new h(c);break;case "esriTS":m=new a(c);break;case "esriSLS":m=void 0!==c.cap?new e(c):new g(c);break;case "esriCLS":m=new e(c);break;case "esriSFS":m=new d(c);break;case "esriPFS":m=new b(c)}return m},getShapeDescriptors:function(a){return a&&a.getShapeDescriptors?a.getShapeDescriptors():{defaultShape:null,fill:null,stroke:null}}};n("extend-esri")&&l.mixin(l.getObject("symbol",
!0,k),c);return c})},"esri/symbols/PictureMarkerSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang ../urlUtils ./MarkerSymbol".split(" "),function(l,n,k,q,h,g,e,d){var b={url:"",width:12,height:12,angle:0,xoffset:0,yoffset:0};l=l(d,{declaredClass:"esri.symbol.PictureMarkerSymbol",type:"picturemarkersymbol",constructor:function(a,c,f){a?n.isString(a)?(this.url=a,c&&(this.width=c),f&&(this.height=f)):(this.width=q.pt2px(a.width),this.height=q.pt2px(a.height),
c=a.imageData,!(9>k("ie"))&&c&&(f=this.url,this.url="data:"+(a.contentType||"image")+";base64,"+c,this.imageData=f)):(n.mixin(this,b),this.width=q.pt2px(this.width),this.height=q.pt2px(this.height))},getStroke:function(){return null},getFill:function(){return null},setWidth:function(a){this.width=a;return this},setHeight:function(a){this.height=a;return this},setUrl:function(a){a!==this.url&&(delete this.imageData,delete this.contentType);this.url=a;return this},getShapeDescriptors:function(){return{defaultShape:{type:"image",
x:-Math.round(this.width/2),y:-Math.round(this.height/2),width:this.width,height:this.height,src:this.url||""},fill:null,stroke:null}},toJson:function(){var a=this.url,b=this.imageData;if(0===a.indexOf("data:"))var f=a,a=b,b=f.indexOf(";base64,")+8,b=f.substr(b);if(n.isString(a)&&(0===a.indexOf("/")||0===a.indexOf("//")||0===a.indexOf("./")||0===a.indexOf("../")))a=e.getAbsoluteUrl(a);var f=q.px2pt(this.width),f=isNaN(f)?void 0:f,m=q.px2pt(this.height),m=isNaN(m)?void 0:m,a=g.fixJson(n.mixin(this.inherited("toJson",
arguments),{type:"esriPMS",url:a,imageData:b,contentType:this.contentType,width:f,height:m}));delete a.color;delete a.size;a.imageData||delete a.imageData;return a}});l.defaultProps=b;k("extend-esri")&&(n.setObject("symbol.PictureMarkerSymbol",l,h),h.symbol.defaultPictureMarkerSymbol=b);return l})},"esri/symbols/CartographicLineSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has dojox/gfx/_base ../kernel ../lang ./SimpleLineSymbol".split(" "),function(l,n,k,q,h,
g,e,d){var b={STYLE_SOLID:"solid",STYLE_DASH:"dash",STYLE_DOT:"dot",STYLE_DASHDOT:"dashdot",STYLE_DASHDOTDOT:"longdashdotdot",STYLE_NULL:"none",STYLE_INSIDE_FRAME:"insideframe",STYLE_SHORTDASH:"shortdash",STYLE_SHORTDOT:"shortdot",STYLE_SHORTDASHDOT:"shortdashdot",STYLE_SHORTDASHDOTDOT:"shortdashdotdot",STYLE_LONGDASH:"longdash",STYLE_LONGDASHDOT:"longdashdot",CAP_BUTT:"butt",CAP_ROUND:"round",CAP_SQUARE:"square",JOIN_MITER:"miter",JOIN_ROUND:"round",JOIN_BEVEL:"bevel"},a={color:[0,0,0,1],style:b.STYLE_SOLID,
width:1,cap:b.CAP_BUTT,join:b.JOIN_MITER,miterLimit:10};l=l(d,{declaredClass:"esri.symbol.CartographicLineSymbol",type:"cartographiclinesymbol",_caps:{butt:"esriLCSButt",round:"esriLCSRound",square:"esriLCSSquare"},_joins:{miter:"esriLJSMiter",round:"esriLJSRound",bevel:"esriLJSBevel"},constructor:function(b,f,m,d,g,l){b?n.isString(b)?(this.style=b,f&&(this.color=f),void 0!==m&&(this.width=m),d&&(this.cap=d),g&&(this.join=g),void 0!==l&&(this.miterLimit=l)):(this.cap=e.valueOf(this._caps,b.cap),this.join=
e.valueOf(this._joins,b.join),this.width=h.pt2px(b.width),this.miterLimit=h.pt2px(b.miterLimit)):(n.mixin(this,a),this.color=new k(this.color),this.width=h.pt2px(this.width),this.miterLimit=h.pt2px(this.miterLimit))},setCap:function(a){this.cap=a;return this},setJoin:function(a){this.join=a;return this},setMiterLimit:function(a){this.miterLimit=a;return this},getStroke:function(){return n.mixin(this.inherited("getStroke",arguments),{cap:this.cap,join:this.join===b.JOIN_MITER?this.miterLimit:this.join})},
getFill:function(){return null},getShapeDescriptors:function(){return{defaultShape:{type:"path",path:"M -15,0 L 15,0 E"},fill:null,stroke:this.getStroke()}},toJson:function(){var a=h.px2pt(this.miterLimit),a=isNaN(a)?void 0:a;return e.fixJson(n.mixin(this.inherited("toJson",arguments),{type:"esriCLS",cap:this._caps[this.cap],join:this._joins[this.join],miterLimit:a}))}});n.mixin(l,b);l.defaultProps=a;q("extend-esri")&&(n.setObject("symbol.CartographicLineSymbol",l,g),g.symbol.defaultCartographicLineSymbol=
a);return l})},"esri/symbols/SimpleFillSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has dojox/gfx/_base ../kernel ../lang ./FillSymbol ./SimpleLineSymbol require".split(" "),function(l,n,k,q,h,g,e,d,b,a){var c={STYLE_SOLID:"solid",STYLE_NULL:"none",STYLE_HORIZONTAL:"horizontal",STYLE_VERTICAL:"vertical",STYLE_FORWARD_DIAGONAL:"forwarddiagonal",STYLE_BACKWARD_DIAGONAL:"backwarddiagonal",STYLE_CROSS:"cross",STYLE_DIAGONAL_CROSS:"diagonalcross",STYLE_FORWARDDIAGONAL:"forwarddiagonal",
STYLE_BACKWARDDIAGONAL:"backwarddiagonal",STYLE_DIAGONALCROSS:"diagonalcross"},f={style:c.STYLE_SOLID,color:[0,0,0,0.25]};l=l(d,{declaredClass:"esri.symbol.SimpleFillSymbol",type:"simplefillsymbol",patternUrlPrefix:a.toUrl("../images/symbol/sfs/"),_styles:{solid:"esriSFSSolid",none:"esriSFSNull",horizontal:"esriSFSHorizontal",vertical:"esriSFSVertical",forwarddiagonal:"esriSFSForwardDiagonal",backwarddiagonal:"esriSFSBackwardDiagonal",cross:"esriSFSCross",diagonalcross:"esriSFSDiagonalCross"},constructor:function(a,
c,d){a?n.isString(a)?(this.style=a,void 0!==c&&(this.outline=c),void 0!==d&&(this.color=d)):this.style=e.valueOf(this._styles,a.style):(n.mixin(this,f),this.outline=new b(this.outline),this.color=new k(this.color))},setStyle:function(a){this.style=a;return this},getStroke:function(){return this.outline&&this.outline.getStroke()},getFill:function(){var a=this.style;return a===c.STYLE_NULL?null:a===c.STYLE_SOLID?this.color:n.mixin({},h.defaultPattern,{src:this.patternUrlPrefix+a+".png",width:10,height:10})},
getShapeDescriptors:function(){return{defaultShape:{type:"path",path:"M -10,-10 L 10,0 L 10,10 L -10,10 L -10,-10 E"},fill:this.getFill(),stroke:this.getStroke()}},toJson:function(){return e.fixJson(n.mixin(this.inherited("toJson",arguments),{type:"esriSFS",style:this._styles[this.style]}))}});n.mixin(l,c);l.defaultProps=f;q("extend-esri")&&(n.setObject("symbol.SimpleFillSymbol",l,g),g.symbol.defaultSimpleFillSymbol=f);return l})},"esri/symbols/FillSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ./Symbol ./SimpleLineSymbol".split(" "),
function(l,n,k,q,h,g){l=l(h,{declaredClass:"esri.symbol.FillSymbol",constructor:function(e){e&&(n.isObject(e)&&e.outline)&&(this.outline=new g(e.outline))},setOutline:function(e){this.outline=e;return this},toJson:function(){var e=this.inherited("toJson",arguments);this.outline&&(e.outline=this.outline.toJson());return e}});k("extend-esri")&&n.setObject("symbol.FillSymbol",l,q);return l})},"esri/symbols/PictureFillSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang ../urlUtils ./FillSymbol".split(" "),
function(l,n,k,q,h,g,e,d){var b={xoffset:0,yoffset:0,width:12,height:12};l=l(d,{declaredClass:"esri.symbol.PictureFillSymbol",type:"picturefillsymbol",xscale:1,yscale:1,xoffset:0,yoffset:0,constructor:function(a,c,f,m){a?n.isString(a)?(this.url=a,void 0!==c&&(this.outline=c),void 0!==f&&(this.width=f),void 0!==m&&(this.height=m)):(this.xoffset=q.pt2px(a.xoffset),this.yoffset=q.pt2px(a.yoffset),this.width=q.pt2px(a.width),this.height=q.pt2px(a.height),c=a.imageData,!(9>k("ie"))&&c&&(f=this.url,this.url=
"data:"+(a.contentType||"image")+";base64,"+c,this.imageData=f)):(n.mixin(this,b),this.width=q.pt2px(this.width),this.height=q.pt2px(this.height))},setWidth:function(a){this.width=a;return this},setHeight:function(a){this.height=a;return this},setOffset:function(a,b){this.xoffset=a;this.yoffset=b;return this},setUrl:function(a){a!==this.url&&(delete this.imageData,delete this.contentType);this.url=a;return this},setXScale:function(a){this.xscale=a;return this},setYScale:function(a){this.yscale=a;
return this},getStroke:function(){return this.outline&&this.outline.getStroke()},getFill:function(){return n.mixin({},q.defaultPattern,{src:this.url,width:this.width*this.xscale,height:this.height*this.yscale,x:this.xoffset,y:this.yoffset})},getShapeDescriptors:function(){return{defaultShape:{type:"path",path:"M -10,-10 L 10,0 L 10,10 L -10,10 L -10,-10 E"},fill:this.getFill(),stroke:this.getStroke()}},toJson:function(){var a=this.url,b=this.imageData;if(0===a.indexOf("data:"))var f=a,a=b,b=f.indexOf(";base64,")+
8,b=f.substr(b);if(n.isString(a)&&(0===a.indexOf("/")||0===a.indexOf("//")||0===a.indexOf("./")||0===a.indexOf("../")))a=e.getAbsoluteUrl(a);var f=q.px2pt(this.width),f=isNaN(f)?void 0:f,m=q.px2pt(this.height),m=isNaN(m)?void 0:m,d=q.px2pt(this.xoffset),d=isNaN(d)?void 0:d,h=q.px2pt(this.yoffset),h=isNaN(h)?void 0:h,a=g.fixJson(n.mixin(this.inherited("toJson",arguments),{type:"esriPFS",url:a,imageData:b,contentType:this.contentType,width:f,height:m,xoffset:d,yoffset:h,xscale:this.xscale,yscale:this.yscale}));
a.imageData||delete a.imageData;return a}});l.defaultProps=b;k("extend-esri")&&(n.setObject("symbol.PictureFillSymbol",l,h),h.symbol.defaultPictureFillSymbol=b);return l})},"esri/symbols/TextSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ../lang ../Color ./Symbol ./Font".split(" "),function(l,n,k,q,h,g,e,d,b){var a={type:"textsymbol",x:0,y:0,text:"",rotated:!1,kerning:!0,color:[0,0,0,1],font:q.defaultFont,angle:0,xoffset:0,yoffset:0,horizontalAlignment:"center"},
c={start:"left",middle:"center",end:"right"},f={left:"start",center:"middle",right:"end",justify:"start"},m={top:"text-before-edge",middle:"central",baseline:"alphabetic",bottom:"text-after-edge"},s=document.createElement("canvas");l=l(d,{declaredClass:"esri.symbol.TextSymbol",angle:0,xoffset:0,yoffset:0,constructor:function(c,f,m){n.mixin(this,a);this.font=new b(this.font);this.color=new e(this.color);c&&(n.isObject(c)?(n.mixin(this,c),this.color&&g.isDefined(this.color[0])&&(this.color=e.toDojoColor(this.color)),
this.type="textsymbol",this.font=new b(this.font),this.xoffset=q.pt2px(this.xoffset),this.yoffset=q.pt2px(this.yoffset),this.angle&&(this.angle*=-1)):(this.text=c,f&&(this.font=f),m&&(this.color=m)));this.setAlign(this.align||this.getSVGAlign())},setFont:function(a){this.font=a;return this},setSize:function(a){this.font.size=a;return this},setAngle:function(a){this.angle=a;return this},setOffset:function(a,b){this.xoffset=a;this.yoffset=b;return this},setAlign:function(a){this.align=a;this.setHorizontalAlignment(a&&
c[a.toLowerCase()]||"center");return this},setHorizontalAlignment:function(a){this.horizontalAlignment=a;return this},getSVGAlign:function(){var a=this.horizontalAlignment;return a=a&&f[a.toLowerCase()]||"middle"},setVerticalAlignment:function(a){this.verticalAlignment=a;return this},getSVGBaseline:function(){var a=this.verticalAlignment;return a&&m[a.toLowerCase()]||"alphabetic"},getSVGBaselineShift:function(){return"bottom"===this.verticalAlignment?"super":null},setDecoration:function(a){this.decoration=
a;this.font||this.setFont(new b);this.font.setDecoration(a);return this},setRotated:function(a){this.rotated=a;return this},setKerning:function(a){this.kerning=a;return this},setText:function(a){this.text=a;return this},getStroke:function(){return null},getFill:function(){return this.color},getWidth:function(){var a=s&&s.getContext&&s.getContext("2d");if(a){var b=this.font;a.font=(b.style?b.style:q.defaultFont.style)+" "+(b.weight?b.weight:q.defaultFont.weight)+" "+(b.size?b.size:q.defaultFont.size)+
"px "+(b.family?b.family:q.defaultFont.family);return a.measureText(this.text).width}var a=this.getHeight(),b=0,c,f;for(c=0;c<this.text.length;c++)f=this.text.charAt(c),b=f==f.toUpperCase()?b+0.7*a:b+0.5*a;return b},getHeight:function(){return q.normalizedLength(this.font.size)},toJson:function(){var a=q.px2pt(this.xoffset),b=q.px2pt(this.yoffset),a=isNaN(a)?void 0:a,b=isNaN(b)?void 0:b;return g.fixJson(n.mixin(this.inherited("toJson",arguments),{type:"esriTS",backgroundColor:this.backgroundColor,
borderLineColor:this.borderLineColor,borderLineSize:this.borderLineSize,haloSize:this.haloSize,haloColor:this.haloColor,verticalAlignment:this.verticalAlignment,horizontalAlignment:this.horizontalAlignment,rightToLeft:this.rightToLeft,width:this.width,angle:this.angle&&-1*this.angle,xoffset:a,yoffset:b,text:this.text,rotated:this.rotated,kerning:this.kerning,font:this.font.toJson()}))}});n.mixin(l,{ALIGN_START:"start",ALIGN_MIDDLE:"middle",ALIGN_END:"end",DECORATION_NONE:"none",DECORATION_UNDERLINE:"underline",
DECORATION_OVERLINE:"overline",DECORATION_LINETHROUGH:"line-through"});l.defaultProps=a;k("extend-esri")&&(n.setObject("symbol.TextSymbol",l,h),h.symbol.defaultTextSymbol=a);return l})},"esri/symbols/Font":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang".split(" "),function(l,n,k,q,h,g){l=l(null,{declaredClass:"esri.symbol.Font",constructor:function(e,d,b,a,c){e?n.isObject(e)?n.mixin(this,e):(this.size=e,parseFloat(this.size)==this.size&&(this.size+=
"px"),void 0!==d&&(this.style=d),void 0!==b&&(this.variant=b),void 0!==a&&(this.weight=a),void 0!==c&&(this.family=c)):n.mixin(this,q.defaultFont);parseFloat(this.size)==this.size&&(this.size+="pt");9>k("ie")&&(this.size&&n.isString(this.size)&&-1<this.size.indexOf("em"))&&(this.size=q.pt2px(12*parseFloat(this.size))+"px");this.size=this._convert2PxSize(this.size)},setSize:function(e){this.size=this._convert2PxSize(e);return this},_convert2PxSize:function(e){var d;parseFloat(e)==e?d=e:n.isString(e)&&
(-1<e.indexOf("pt")?d=q.pt2px(parseFloat(e)):-1<e.indexOf("px")?d=parseFloat(e):-1<e.indexOf("em")?d=q.pt2px(12*parseFloat(e)):-1<e.indexOf("%")&&(d=q.pt2px(0.12*parseFloat(e))));return d},setStyle:function(e){this.style=e;return this},setVariant:function(e){this.variant=e;return this},setWeight:function(e){this.weight=e;return this},setFamily:function(e){this.family=e;return this},setDecoration:function(e){this.decoration=e;return this},toJson:function(){return g.fixJson({size:q.px2pt(this.size),
style:this.style,variant:this.variant,decoration:this.decoration,weight:this.weight,family:this.family})}});n.mixin(l,{STYLE_NORMAL:"normal",STYLE_ITALIC:"italic",STYLE_OBLIQUE:"oblique",VARIANT_NORMAL:"normal",VARIANT_SMALLCAPS:"small-caps",WEIGHT_NORMAL:"normal",WEIGHT_BOLD:"bold",WEIGHT_BOLDER:"bolder",WEIGHT_LIGHTER:"lighter"});k("extend-esri")&&n.setObject("symbol.Font",l,h);return l})},"esri/tasks/query":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/json dojo/has ../kernel ../geometry/jsonUtils ./SpatialRelationship dojo/has!extend-esri?./QueryTask dojo/has!extend-esri?./RelationshipQuery dojo/has!extend-esri?./StatisticDefinition".split(" "),
function(l,n,k,q,h,g,e,d){var b=l(null,{declaredClass:"esri.tasks.Query",constructor:function(){this.spatialRelationship=b.SPATIAL_REL_INTERSECTS},text:null,where:"",geometry:null,groupByFieldsForStatistics:null,objectIds:null,returnGeometry:!1,returnDistinctValues:!1,orderByFields:null,outSpatialReference:null,outFields:null,outStatistics:null,timeExtent:null,relationParam:null,pixelSize:null,distance:null,units:null,resultOffset:null,resultRecordCount:null,_units:{meters:"esriSRUnit_Meter",kilometers:"esriSRUnit_Kilometer",
feet:"esriSRUnit_Foot",miles:"esriSRUnit_StatuteMile","nautical-miles":"esriSRUnit_NauticalMile","us-nautical-miles":"esriSRUnit_USNauticalMile"},toJson:function(a){var c={text:this.text,where:this.where,returnGeometry:this.returnGeometry,spatialRel:this.spatialRelationship,maxAllowableOffset:this.maxAllowableOffset,geometryPrecision:this.geometryPrecision},f=a&&a.geometry||this.geometry,m=this.objectIds,d=this.outFields,g=this.outSpatialReference,h=this.groupByFieldsForStatistics,l=this.orderByFields,
n=this.outStatistics;a=this.distance;f&&(c.geometry=f,c.geometryType=e.getJsonType(f),c.inSR=f.spatialReference.wkid||q.toJson(f.spatialReference.toJson()));m&&(c.objectIds=m.join(","));d&&(c.outFields=d.join(","));this.returnDistinctValues&&(c.returnDistinctValues=!0);h&&(c.groupByFieldsForStatistics=h.join(","));l&&(c.orderByFields=l.join(","));if(n){var A=[];k.forEach(n,function(a){A.push(a.toJson())});c.outStatistics=q.toJson(A)}null!==g?c.outSR=g.wkid||q.toJson(g.toJson()):f&&(c.outSR=f.spatialReference.wkid||
q.toJson(f.spatialReference.toJson()));f=this.timeExtent;c.time=f?f.toJson().join(","):null;if((f=this.relationParam)&&this.spatialRelationship===b.SPATIAL_REL_RELATION)c.relationParam=f;a&&(c.distance=this.distance,this.hasOwnProperty("units")?c.units=this._units[this.units]||this._units.meters:(console.warn("esri/tasks/query::no distance unit provided, defaulting to meters"),c.units=this._units.meters));this.hasOwnProperty("start")&&(c.resultOffset=this.start,c.resultRecordCount=10,""===c.where&&
(c.where="1\x3d1"));this.hasOwnProperty("num")&&(c.resultRecordCount=this.num);c.pixelSize=this.pixelSize?q.toJson(this.pixelSize.toJson()):null;c.multipatchOption=this.multipatchOption;c._ts=this._ts;return c}});n.mixin(b,d);h("extend-esri")&&n.setObject("tasks.Query",b,g);return b})},"esri/tasks/SpatialRelationship":function(){define(["dojo/_base/lang","dojo/has","../kernel"],function(l,n,k){var q={SPATIAL_REL_INTERSECTS:"esriSpatialRelIntersects",SPATIAL_REL_CONTAINS:"esriSpatialRelContains",SPATIAL_REL_CROSSES:"esriSpatialRelCrosses",
SPATIAL_REL_ENVELOPEINTERSECTS:"esriSpatialRelEnvelopeIntersects",SPATIAL_REL_INDEXINTERSECTS:"esriSpatialRelIndexIntersects",SPATIAL_REL_OVERLAPS:"esriSpatialRelOverlaps",SPATIAL_REL_TOUCHES:"esriSpatialRelTouches",SPATIAL_REL_WITHIN:"esriSpatialRelWithin",SPATIAL_REL_RELATION:"esriSpatialRelRelation"};n("extend-esri")&&l.setObject("tasks._SpatialRelationship",q,k);return q})},"esri/plugins/popupManager":function(){define(["../PopupManager"],function(l){return{add:function(n,k){n.popupManager||(n.popupManager=
new l(k),n.popupManager.setMap(n))},remove:function(l){var k=l.popupManager;k&&(k.unsetMap(),l.popupManager=void 0)}}})},"esri/PopupManager":function(){define("./geometry/Extent ./geometry/ScreenPoint ./kernel ./layerUtils ./tasks/query dijit/registry dojo/_base/array dojo/_base/declare dojo/_base/Deferred dojo/_base/lang dojo/has dojo/on dojo/promise/all dojo/Stateful require".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t){var r;d=d(s,{declaredClass:"esri.PopupManager",enabled:!1,map:null,_mapClickHandle:null,
_featureLayersCache:{},constructor:function(b){this._mapClickHandler=a.hitch(this,this._mapClickHandler)},setMap:function(a){if(this.map)if(a!==this.map)this.unsetMap();else return;this.map=a;this._setupClickHandler()},unsetMap:function(){this.map&&(this.map=null);this._mapClickHandle&&(this._mapClickHandle.remove(),this._mapClickHandle=null)},getMapLayer:function(a){var b;if(a&&(b=a.getLayer()))if(a=b.id,this._featureLayersCache[a]){var c=a.lastIndexOf("_");-1<c&&(a=a.substring(0,c),b=this.map.getLayer(a))}return b},
_enabledSetter:function(a){this.enabled=a;this._setupClickHandler()},_setupClickHandler:function(){this._mapClickHandle&&(this._mapClickHandle.remove(),this._mapClickHandle=null);this.enabled&&this.map&&(this._mapClickHandle=this.map.on("click",this._mapClickHandler))},_mapClickHandler:function(a){var b=this.map.infoWindow,c=a.graphic;b&&this.map.loaded&&(b.clearFeatures&&b.setFeatures?this._showPopup(a):c&&c.getInfoTemplate()&&this._showInfoWindow(c,a.mapPoint))},_showPopup:function(a){var c=this.map,
f=c.infoWindow,m=this,d=[],g=[c.graphics].concat(e.map(c.graphicsLayerIds,c.getLayer,c));e.forEach(g,function(a){a&&(a.loaded&&a.infoTemplate&&!a.suspended)&&d.push(a)});var k=[];e.forEach(c.layerIds,function(a){(a=c.getLayer(a))&&(a.loaded&&!a.suspended)&&("esri.layers.ArcGISImageServiceLayer"===a.declaredClass&&a.infoTemplate?d.push(a):("esri.layers.ArcGISDynamicMapServiceLayer"===a.declaredClass||"esri.layers.ArcGISTiledMapServiceLayer"===a.declaredClass)&&a.infoTemplates&&k.push(a))});this._getSubLayerFeatureLayers(k).then(function(g){d=
d.concat(g);g=null;a.graphic&&a.graphic.getInfoTemplate()&&(g=a.graphic);if(d.length||g){var k=m._calculateClickTolerance(d),r=a.screenPoint,s=c.toMap(new n(r.x-k,r.y+k)),k=c.toMap(new n(r.x+k,r.y-k)),t=new l(s.x,s.y,k.x,k.y,c.spatialReference),q=new h,x=!!g,z=!0,s=e.map(d,function(f){var d;q.timeExtent=f.useMapTime?c.timeExtent:null;if("esri.layers.ArcGISImageServiceLayer"===f.declaredClass)q.geometry=a.mapPoint,z=!1,d=f.queryVisibleRasters(q,{rasterAttributeTableFieldPrefix:"Raster.",returnDomainValues:!0}),
d.addCallback(function(){var a=f.getVisibleRasters();x=x||0<a.length;return a});else if(m._featureLayersCache[f.id]||"function"===typeof f.queryFeatures&&(0===f.currentMode||1===f.currentMode))q.geometry=t,d=f.queryFeatures(q),d.addCallback(function(a){a=a.features;x=x||0<a.length;return a});else{d=new b;var g=e.filter(f.graphics,function(a){return a&&t.intersects(a.geometry)});x=x||0<g.length;d.resolve(g)}return d});g&&(k=new b,k.resolve([g]),s.unshift(k));!e.some(s,function(a){return!a.isFulfilled()})&&
!x?(f.hide(),f.clearFeatures()):(f.setFeatures(s),f.show(a.mapPoint,{closestFirst:z}))}})},_getSubLayerFeatureLayers:function(a,c){var d=c||new b,g=[],h=a.length,k=Math.floor(this.map.extent.getWidth()/this.map.width),l=this.map.getScale(),s=!1,n=this,C=0;a:for(;C<h;C++){var F=a[C],I=F.dynamicLayerInfos||F.layerInfos;if(I){var E=null;if(F._params&&(F._params.layers||F._params.dynamicLayers))E=F.visibleLayers;for(var E=q._getVisibleLayers(I,E),L=q._getLayersForScale(l,I),G=I.length,K=0;K<G;K++){var J=
I[K],H=J.id,M=F.infoTemplates[H];if(!J.subLayerIds&&M&&M.infoTemplate&&-1<e.indexOf(E,H)&&-1<e.indexOf(L,H)){if(!r){s=!0;break a}var N=F.id+"_"+H,O=this._featureLayersCache[N];if(!O||!O.loadError)O||((O=M.layerUrl)||(O=J.source?this._getLayerUrl(F.url,"/dynamicLayer"):this._getLayerUrl(F.url,H)),O=new r(O,{id:N,drawMode:!1,mode:r.MODE_SELECTION,outFields:this._getOutFields(M.infoTemplate),resourceInfo:M.resourceInfo,source:J.source}),this._featureLayersCache[N]=O),O.setDefinitionExpression(F.layerDefinitions&&
F.layerDefinitions[H]),O.setGDBVersion(F.gdbVersion),O.setInfoTemplate(M.infoTemplate),O.setMaxAllowableOffset(k),O.setUseMapTime(!!F.useMapTime),F.layerDrawingOptions&&(F.layerDrawingOptions[H]&&F.layerDrawingOptions[H].renderer)&&O.setRenderer(F.layerDrawingOptions[H].renderer),g.push(O)}}}}if(s){var P=new b;t(["./layers/FeatureLayer"],function(a){r=a;P.resolve()});P.then(function(){n._getSubLayerFeatureLayers(a,d)})}else{var Q=[];e.forEach(g,function(a){if(!a.loaded){var c=new b;f.once(a,"load, error",
function(){c.resolve()});Q.push(c.promise)}});Q.length?m(Q).then(function(){g=e.filter(g,function(a){return!a.loadError&&a.isVisibleAtScale(l)});d.resolve(g)}):(g=e.filter(g,function(a){return a.isVisibleAtScale(l)}),d.resolve(g))}return d.promise},_getLayerUrl:function(a,b){var c=a.indexOf("?");return-1===c?a+"/"+b:a.substring(0,c)+"/"+b+a.substring(c)},_getOutFields:function(a){var b;a.info&&"esri.dijit.PopupTemplate"===a.declaredClass?(b=[],e.forEach(a.info.fieldInfos,function(a){var c=a.fieldName&&
a.fieldName.toLowerCase();c&&("shape"!==c&&0!==c.indexOf("relationships/"))&&b.push(a.fieldName)})):b=["*"];return b},_calculateClickTolerance:function(a){var b=6;e.forEach(a,function(a){if(a=a.renderer)"esri.renderer.SimpleRenderer"===a.declaredClass?((a=a.symbol)&&a.xoffset&&(b=Math.max(b,Math.abs(a.xoffset))),a&&a.yoffset&&(b=Math.max(b,Math.abs(a.yoffset)))):("esri.renderer.UniqueValueRenderer"===a.declaredClass||"esri.renderer.ClassBreaksRenderer"===a.declaredClass)&&e.forEach(a.infos,function(a){(a=
a.symbol)&&a.xoffset&&(b=Math.max(b,Math.abs(a.xoffset)));a&&a.yoffset&&(b=Math.max(b,Math.abs(a.yoffset)))})});return b},_showInfoWindow:function(b,c){var f=this.map.infoWindow,m=b.geometry,m=m&&"point"===m.type?m:c,d=b.getContent();f.setTitle(b.getTitle());if(d&&a.isString(d.id)){var e=g.byId(d.id);e&&(e.set&&/_PopupRenderer/.test(e.declaredClass))&&e.set("showTitle",!1)}f.setContent(d);f.show(m)}});c("extend-esri")&&(k.PopupManager=d);return d})},"esri/layerUtils":function(){define(["dojo/_base/lang",
"dojo/_base/array","dojo/_base/json","dojo/has","./kernel"],function(l,n,k,q,h){var g={_serializeLayerDefinitions:function(e){var d=[],b=!1,a=/[:;]/;if(e&&(n.forEach(e,function(c,m){c&&(d.push([m,c]),!b&&a.test(c)&&(b=!0))}),0<d.length)){var c;b?(c={},n.forEach(d,function(a){c[a[0]]=a[1]}),c=k.toJson(c)):(c=[],n.forEach(d,function(a){c.push(a[0]+":"+a[1])}),c=c.join(";"));return c}return null},_serializeTimeOptions:function(e,d){if(e){var b=[];n.forEach(e,function(a,c){if(a){var f=a.toJson();d&&-1!==
n.indexOf(d,c)&&(f.useTime=!1);b.push('"'+c+'":'+k.toJson(f))}});if(b.length)return"{"+b.join(",")+"}"}},_getVisibleLayers:function(e,d){var b=[],a,c,f;if(!e)return b;if(d){b=d.concat();for(f=0;f<e.length;f++)a=e[f],c=n.indexOf(e,a.id),a.subLayerIds&&-1<c&&(b.splice(c,1),b=b.concat(a.subLayerIds))}else b=this._getDefaultVisibleLayers(e);return b},_getDefaultVisibleLayers:function(e){var d=[],b;if(!e)return d;for(b=0;b<e.length;b++)0<=e[b].parentLayerId&&-1===n.indexOf(d,e[b].parentLayerId)&&n.some(e,
function(a){return a.id===e[b].parentLayerId})||e[b].defaultVisibility&&d.push(e[b].id);return d},_getLayersForScale:function(e,d){var b=[];if(0<e&&d){var a;for(a=0;a<d.length;a++)if(!(0<=d[a].parentLayerId&&-1===n.indexOf(b,d[a].parentLayerId)&&n.some(d,function(b){return b.id===d[a].parentLayerId}))&&0<=d[a].id){var c=!0,f=d[a].maxScale,m=d[a].minScale;if(0<f||0<m)0<f&&0<m?c=f<=e&&e<=m:0<f?c=f<=e:0<m&&(c=e<=m);c&&b.push(d[a].id)}}return b}};q("extend-esri")&&l.mixin(h,g);return g})},"dojo/promise/all":function(){define(["../_base/array",
"../Deferred","../when"],function(l,n,k){var q=l.some;return function(h){var g,e;h instanceof Array?e=h:h&&"object"===typeof h&&(g=h);var d,b=[];if(g){e=[];for(var a in g)Object.hasOwnProperty.call(g,a)&&(b.push(a),e.push(g[a]));d={}}else e&&(d=[]);if(!e||!e.length)return(new n).resolve(d);var c=new n;c.promise.always(function(){d=b=null});var f=e.length;q(e,function(a,e){g||b.push(e);k(a,function(a){c.isFulfilled()||(d[b[e]]=a,0===--f&&c.resolve(d))},c.reject);return c.isFulfilled()});return c.promise}})},
"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./domReady","./sniff","./_base/window"],function(l,n,k,q,h){var g=h.doc.documentElement;h=q("ie");var e=q("opera"),d=Math.floor,b=q("ff"),a=l.boxModel.replace(/-/,""),e={dj_quirks:q("quirks"),dj_opera:e,dj_khtml:q("khtml"),dj_webkit:q("webkit"),dj_safari:q("safari"),dj_chrome:q("chrome"),dj_gecko:q("mozilla"),dj_ios:q("ios"),dj_android:q("android")};h&&(e.dj_ie=!0,e["dj_ie"+d(h)]=!0,e.dj_iequirks=q("quirks"));b&&(e["dj_ff"+d(b)]=!0);
e["dj_"+a]=!0;var c="",f;for(f in e)e[f]&&(c+=f+" ");g.className=n.trim(g.className+" "+c);k(function(){if(!l.isBodyLtr()){var a="dj_rtl dijitRtl "+c.replace(/ /g,"-rtl ");g.className=n.trim(g.className+" "+a+"dj_rtl dijitRtl "+c.replace(/ /g,"-rtl "))}});return q})},"esri/MapNavigationManager":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/event dojo/mouse dojo/keys ./kernel ./MouseEvents ./TouchEvents ./PointerEvents ./config ./sniff ./lang ./fx ./graphic ./tileUtils ./geometry/ScreenPoint ./geometry/Extent ./geometry/Rect ./geometry/mathUtils ./symbols/SimpleFillSymbol".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v,A,y,w,z){var x=q.connect,B=q.disconnect,D=m("chrome"),C=m("safari"),F=[e.NUMPAD_PLUS,61,e.NUMPAD_MINUS,e.UP_ARROW,e.NUMPAD_8,e.RIGHT_ARROW,e.NUMPAD_6,e.DOWN_ARROW,e.NUMPAD_2,e.LEFT_ARROW,e.NUMPAD_4,e.PAGE_UP,e.NUMPAD_9,e.PAGE_DOWN,e.NUMPAD_3,e.END,e.NUMPAD_1,e.HOME,e.NUMPAD_7];l=l(null,{declaredClass:"esri.MapNavigationManager",eventModel:"",constructor:function(d,e){this.map=d;n.mixin(this,e);var g=d.__container;m("esri-pointer")?(this.pointerEvents=new c(g,
{map:d}),this.eventModel="pointer"):m("esri-touch")?(m("ios")||(this.mouseEvents=new b(g,{map:d})),this.touchEvents=new a(g,{map:d,mouseEvents:this.mouseEvents}),this.eventModel="touch"):(this.mouseEvents=new b(g,{map:d}),this.eventModel="mouse");this._zoomRect=new r(null,new z(f.defaults.map.zoomSymbol));this._keyDx=this._keyDy=0;this._adjustPinch=n.hitch(this,this._adjustPinch);this._adjustPinchEnd=n.hitch(this,this._adjustPinchEnd)},_panInit:function(a){var b=this.mouseEvents;g.isLeft(a)&&(this.map.isPan&&
!a.shiftKey)&&(this._dragOrigin=new v(0,0),n.mixin(this._dragOrigin,a.screenPoint),this._panStartHandle=x(b,"onMouseDragStart",this,this._panStart),this._panHandle=x(b,"onMouseDrag",this,this._pan),this._panEndHandle=x(b,"onMouseUp",this,this._panEnd),(D||C)&&a.preventDefault())},_panStart:function(a){this.map.setCursor("move");this.map.__panStart(a.screenPoint.x,a.screenPoint.y)},_pan:function(a){this.map.__pan(a.screenPoint.x-this._dragOrigin.x,a.screenPoint.y-this._dragOrigin.y)},_panEnd:function(a){B(this._panStartHandle);
B(this._panHandle);B(this._panEndHandle);this._panStartHandle=this._panHandle=this._panEndHandle=null;var b=this.map;b.__panning&&(b.__panEnd(a.screenPoint.x-this._dragOrigin.x,a.screenPoint.y-this._dragOrigin.y),b.resetMapCursor())},_zoomInit:function(a){var b=this.map,c=this.pointerEvents||this.mouseEvents;if((g.isLeft(a)||a.pointerType)&&b.isRubberBandZoom&&a.shiftKey)b.setCursor("crosshair"),this._dragOrigin=n.mixin({},a.screenPoint),this._zoomDir=a.ctrlKey||a.metaKey?-1:1,this.pointerEvents?
(this._zoomHandle=x(c,"onSwipeMove",this,this._zoom),this._zoomEndHandle=x(c,"onSwipeEnd",this,this._zoomEnd)):(this._zoomHandle=x(c,"onMouseDrag",this,this._zoom),this._zoomEndHandle=x(c,"onMouseUp",this,this._zoomEnd)),D&&a.preventDefault()},_zoom:function(a){var b=this.map,c=this._normalizeRect(a).offset(b.__visibleRect.x,b.__visibleRect.y);a=b.graphics;var f=this._zoomRect;f.geometry||b.setCursor("crosshair");f.geometry&&a.remove(f,!0);var m=b.toMap(new v(c.x,c.y)),c=b.toMap(new v(c.x+c.width,
c.y+c.height)),c=new y(m.x,m.y,c.x-m.x,m.y-c.y,b.spatialReference);c._originOnly=!0;f.setGeometry(c);a.add(f,!0)},_zoomEnd:function(a){var b=this._zoomRect,c=this.map,f=c.extent,m=c.spatialReference;B(this._zoomHandle);B(this._zoomEndHandle);this._zoomHandle=this._zoomEndHandle=null;if(c._canZoom(this._zoomDir)&&b.getDojoShape()){c.graphics.remove(b);b.geometry=null;a=this._normalizeRect(a);a.x+=c.__visibleRect.x;a.y+=c.__visibleRect.y;if(-1===this._zoomDir){var d=f.getWidth();a=(d*c.width/a.width-
d)/2;m=new A(f.xmin-a,f.ymin-a,f.xmax+a,f.ymax+a,m)}else f=c.toMap({x:a.x,y:a.y+a.height}),a=c.toMap({x:a.x+a.width,y:a.y}),m=new A(f.x,f.y,a.x,a.y,m);c._extentUtil(null,null,m)}b.getDojoShape()&&c.graphics.remove(b,!0);this._zoomDir=0;c.resetMapCursor()},_wheelZoom:function(a,b){var c=this.map;if(!b){if(c.smartNavigation&&!a.shiftKey&&!c._isPanningOrZooming()){c.disableScrollWheelZoom();this._setScrollWheelPan(!0);this._wheelPan(a);return}var f=a.timeStamp;if(!s.isDefined(f)||0>=f)f=(new Date).getTime();
if(100>(this._mwts?f-this._mwts:f))return;this._mwts=f}c._canZoom(a.value)&&c._extentUtil({numLevels:a.value,mapAnchor:a.mapPoint,screenAnchor:a.screenPoint})},_wheelPan:function(a){var b=this.map;if(a.shiftKey&&!b._isPanningOrZooming())this._setScrollWheelPan(!1),b.enableScrollWheelZoom(),this._wheelZoom(a);else{var c=0,f=0;m("ff")?a.axis===a.HORIZONTAL_AXIS?c=-a.detail:f=-a.detail:(c=a.wheelDeltaX,f=a.wheelDeltaY);b.translate(c,f)}},_setScrollWheelPan:function(a){this.map.isScrollWheelPan=a;this.mouseEvents.enableMouseWheel(a);
B(this._mwMacHandle);this._mwMacHandle=null;a&&(this._mwMacHandle=x(this.mouseEvents,"onMouseWheel",this,this._wheelPan))},_recenter:function(a){a.shiftKey&&!this.map._isPanningOrZooming()&&this.map.centerAt(a.mapPoint)},_recenterZoom:function(a){a.shiftKey&&!this.map._isPanningOrZooming()&&(a.value=a.ctrlKey||a.metaKey?-1:1,this._wheelZoom(a,!0))},_dblClickZoom:function(a){this.map._isPanningOrZooming()||(a.value=1,this._wheelZoom(a,!0))},_twoFingerTap:function(a){this.map._isPanningOrZooming()||
(a.value=-1,this._wheelZoom(a,!0))},_keyDown:function(a){var b=a.keyCode,c=this.map;if(-1!==k.indexOf(F,b)){if(b===e.NUMPAD_PLUS||61===b)c._extentUtil({numLevels:1});else if(b===e.NUMPAD_MINUS)c._extentUtil({numLevels:-1});else{c.__panning||c.__panStart(0,0);switch(b){case e.UP_ARROW:case e.NUMPAD_8:this._keyDy+=10;break;case e.RIGHT_ARROW:case e.NUMPAD_6:this._keyDx-=10;break;case e.DOWN_ARROW:case e.NUMPAD_2:this._keyDy-=10;break;case e.LEFT_ARROW:case e.NUMPAD_4:this._keyDx+=10;break;case e.PAGE_UP:case e.NUMPAD_9:this._keyDx-=
10;this._keyDy+=10;break;case e.PAGE_DOWN:case e.NUMPAD_3:this._keyDx-=10;this._keyDy-=10;break;case e.END:case e.NUMPAD_1:this._keyDx+=10;this._keyDy-=10;break;case e.HOME:case e.NUMPAD_7:this._keyDx+=10;this._keyDy+=10;break;default:return}c.__pan(this._keyDx,this._keyDy)}h.stop(a)}},_keyEnd:function(a){var b=this.map;b.__panning&&a.keyCode!==e.SHIFT&&(b.__panEnd(this._keyDx,this._keyDy),this._keyDx=this._keyDy=0)},_swipeInit:function(a){var b=this.map,b=b._zoomAnim||b._panAnim;if(a.shiftKey)return!1;
b&&b._active&&(b.stop(),b._fire("onEnd",[b.node]));this._dragOrigin=new v(0,0);n.mixin(this._dragOrigin,a.screenPoint);B(this._swipeHandle);B(this._swipeEndHandle);this._swipeHandle=x(this.touchEvents||this.pointerEvents,"onSwipeMove",this,this._swipe);this._swipeEndHandle=x(this.touchEvents||this.pointerEvents,"onSwipeEnd",this,this._swipeEnd)},_swipe:function(a){var b=this.map;b.__panning?(this._panX=a.screenPoint.x,this._panY=a.screenPoint.y,b.__pan(a.screenPoint.x-this._dragOrigin.x,a.screenPoint.y-
this._dragOrigin.y)):(b.setCursor("move"),b.__panStart(a.screenPoint.x,a.screenPoint.y))},_swipeEnd:function(a){B(this._swipeHandle);B(this._swipeEndHandle);this._swipeHandle=this._swipeEndHandle=null;var b=this.map;b.__panning&&(b.resetMapCursor(),b.__panEnd(a.screenPoint.x-this._dragOrigin.x,a.screenPoint.y-this._dragOrigin.y))},_pinchInit:function(a){var b=this.map,c=b._zoomAnim||b._panAnim;c&&c._active?(c.stop(),c._fire("onEnd",[c.node])):b.__panning&&(a.screenPoint=new v(this._panX,this._panY),
a.mapPoint=b.toMap(a.screenPoint),this._swipeEnd(a));B(this._pinchHandle);B(this._pinchEndHandle);this._pinchHandle=x(this.touchEvents||this.pointerEvents,"onPinchMove",this,this._pinch);this._pinchEndHandle=x(this.touchEvents||this.pointerEvents,"onPinchEnd",this,this._pinchEnd)},_pinch:function(a){var b=this.map;a.screenPoints&&(this.currLength=w.getLength(a.screenPoints[0],a.screenPoints[1]),b.__zooming?(a=this.currLength/this._length,this._zoomStartExtent=this.__scaleExtent(b.extent,a,this._dragOrigin),
b.__zoom(this._zoomStartExtent,a,this._dragOrigin)):(this._dragOrigin=new v((a.screenPoints[0].x+a.screenPoints[1].x)/2,(a.screenPoints[0].y+a.screenPoints[1].y)/2),this._length=this.currLength,b.__zoomStart(b.extent,this._dragOrigin)),b._fireOnScale(this.currLength/this._length,this._dragOrigin,!0))},_pinchEnd:function(a){a=this.map;B(this._pinchHandle);B(this._pinchEndHandle);this._pinchHandle=this._pinchEndHandle=null;if(a.__zooming&&null===a._zoomAnim){var b=this.currLength/this._length,c=a.extent.getWidth();
this._zoomAnimAnchor=a.toMap(this._dragOrigin);this._zoomStartExtent=this.__scaleExtent(a.extent,1/b,this._zoomAnimAnchor);if(a.__tileInfo){var m=u.getCandidateTileInfo(a,a.__tileInfo,this._zoomStartExtent),d=a.__getExtentForLevel(m.lod.level,this._zoomAnimAnchor),e=a.getMinZoom(),g=a.getMaxZoom(),h=d.extent,d=d.lod,k=c/h.getWidth(),l=m.lod.level;1>b?k>b&&l--:k<b&&l++;l<e?l=e:l>g&&(l=g);l!==m.lod.level&&(d=a.__getExtentForLevel(l,this._zoomAnimAnchor),h=d.extent,d=d.lod);this._zoomEndExtent=h;this._zoomEndLod=
d;a._zoomAnim=t.animateRange({range:{start:c/this._zoomStartExtent.getWidth(),end:k},duration:f.defaults.map.zoomDuration,rate:f.defaults.map.zoomRate,onAnimate:this._adjustPinch,onEnd:this._adjustPinchEnd});a._zoomAnim.play();a._fireOnScale(a.extent.getWidth()/this._zoomEndExtent.getWidth(),this._dragOrigin)}else this._zoomEndExtent=this._zoomStartExtent,a._fireOnScale(a.extent.getWidth()/this._zoomEndExtent.getWidth(),this._dragOrigin),this._adjustPinchEnd()}},_adjustPinch:function(a){var b=this.__scaleExtent(this.map.extent,
a,this._zoomAnimAnchor);this.map.__zoom(b,a,this._dragOrigin)},_adjustPinchEnd:function(){var a=this.map,b=a.extent.getWidth()/this._zoomEndExtent.getWidth(),c=this.__scaleExtent(a.extent,1/b,this._zoomAnimAnchor),f=this._dragOrigin,m=this._zoomEndLod;this._zoomStartExtent=this._zoomEndExtent=this._zoomEndLod=this._dragOrigin=a._zoomAnim=this._zoomAnimAnchor=null;a.__zoomEnd(c,b,f,m,!0)},__scaleExtent:function(a,b,c){c=c||a.getCenter();b=a.expand(b);var f=a.xmin-(b.getWidth()-a.getWidth())*(c.x-a.xmin)/
a.getWidth();c=a.ymax-(b.getHeight()-a.getHeight())*(c.y-a.ymax)/a.getHeight();return new A(f,c-b.getHeight(),f+b.getWidth(),c,a.spatialReference)},_normalizeRect:function(a){a=a.screenPoint;var b=this._dragOrigin.x,c=this._dragOrigin.y;a=new y((a.x<b?a.x:b)-this.map.__visibleRect.x,(a.y<c?a.y:c)-this.map.__visibleRect.y,Math.abs(a.x-b),Math.abs(a.y-c));delete a.spatialReference;0===a.width&&(a.width=1);0===a.height&&(a.height=1);return a},setImmediateClick:function(a){switch(this.eventModel){case "mouse":this.mouseEvents.setImmediateClick(a);
break;case "touch":this.touchEvents.setImmediateTap(a);this.mouseEvents&&this.mouseEvents.setImmediateClick(a);break;case "pointer":this.pointerEvents.setImmediateTap(a)}},enablePan:function(){this.disablePan();switch(this.eventModel){case "mouse":this._panInitHandle=x(this.mouseEvents,"onMouseDown",this,this._panInit);break;case "touch":this._panInitHandle=x(this.mouseEvents,"onMouseDown",this,this._panInit);this._swipeInitHandle=x(this.touchEvents,"onSwipeStart",this,this._swipeInit);break;case "pointer":this._swipeInitHandle=
x(this.pointerEvents,"onSwipeStart",this,this._swipeInit)}},disablePan:function(){B(this._panInitHandle);this._panInitHandle=null;B(this._swipeInitHandle);this._swipeInitHandle=null},enableRubberBandZoom:function(){this.disableRubberBandZoom();this._zoomInitHandle=this.pointerEvents?x(this.pointerEvents,"onSwipeStart",this,this._zoomInit):x(this.mouseEvents,"onMouseDown",this,this._zoomInit)},disableRubberBandZoom:function(){B(this._zoomInitHandle);this._zoomInitHandle=null},enablePinchZoom:function(){this.disablePinchZoom();
if("touch"===this.eventModel||"pointer"===this.eventModel)this._pinchInitHandle=x(this.touchEvents||this.pointerEvents,"onPinchStart",this,this._pinchInit)},disablePinchZoom:function(){B(this._pinchInitHandle);this._pinchInitHandle=null},enableScrollWheelZoom:function(){this.disableScrollWheelZoom();this._wheelHandle=x(this.mouseEvents||this.pointerEvents,"onMouseWheel",this,this._wheelZoom)},disableScrollWheelZoom:function(){B(this._wheelHandle);this._wheelHandle=null},enableDoubleClickZoom:function(){this.disableDoubleClickZoom();
switch(this.eventModel){case "mouse":this._dblClickHandle=x(this.mouseEvents,"onDblClick",this,this._dblClickZoom);break;case "touch":this._dblClickHandle=x(this.mouseEvents,"onDblClick",this,this._dblClickZoom);this._dblTapHandle=x(this.touchEvents,"onDoubleTap",this,this._dblClickZoom);this._zoomOutHandle=x(this.touchEvents,"onTwoFingerTap",this,this._twoFingerTap);break;case "pointer":this._dblTapHandle=x(this.pointerEvents,"onDoubleTap",this,this._dblClickZoom),this._zoomOutHandle=x(this.pointerEvents,
"onTwoFingerTap",this,this._twoFingerTap)}},disableDoubleClickZoom:function(){B(this._dblClickHandle);B(this._zoomOutHandle);this._dblTapHandle&&B(this._dblTapHandle);this._dblClickHandle=this._zoomOutHandle=this._dblTapHandle=null},enableShiftDoubleClickZoom:function(){this.disableShiftDoubleClickZoom();this._sDblClickHandle=x(this.pointerEvents||this.mouseEvents,"onDblClick",this,this._recenterZoom)},disableShiftDoubleClickZoom:function(){B(this._sDblClickHandle);this._sDblClickHandle=null},enableClickRecenter:function(){this.disableClickRecenter();
this._recenterHandle=x(this.pointerEvents||this.mouseEvents,"onClick",this,this._recenter)},disableClickRecenter:function(){B(this._recenterHandle);this._recenterHandle=null},enableKeyboardNavigation:function(){this.disableKeyboardNavigation();this._keyHandle=x(this.pointerEvents||this.mouseEvents,"onKeyDown",this,this._keyDown);this._keyEndHandle=x(this.pointerEvents||this.mouseEvents,"onKeyUp",this,this._keyEnd)},disableKeyboardNavigation:function(){B(this._keyHandle);B(this._keyEndHandle);this._keyHandle=
this._keyEndHandle=null},enableNavigation:function(){var a=this.map;a&&a.loaded&&(a.enableDoubleClickZoom(),a.enableClickRecenter(),a.enablePan(),a.enableRubberBandZoom(),this.enablePinchZoom(),a.enableKeyboardNavigation(),a.smartNavigation?this._setScrollWheelPan(!0):a.enableScrollWheelZoom())},disableNavigation:function(){var a=this.map;a&&a.loaded&&(a.disableDoubleClickZoom(),a.disableClickRecenter(),a.disablePan(),a.disableRubberBandZoom(),this.disablePinchZoom(),a.disableKeyboardNavigation(),
a.disableScrollWheelZoom(),a.smartNavigation&&this._setScrollWheelPan(!1))},destroy:function(){this.touchEvents&&this.touchEvents.destroy();this.mouseEvents&&this.mouseEvents.destroy();this.pointerEvents&&this.pointerEvents.destroy();var a,b=[this._panInitHandle,this._panStartHandle,this._panHandle,this._panEndHandle,this._zoomInitHandle,this._zoomHandle,this._zoomEndHandle,this._wheelHandle,this._mwMacHandle,this._dblClickHandle,this._zoomOutHandle,this._recenterHandle,this._sDblClickHandle,this._dblTapHandle,
this._keyHandle,this._keyEndHandle,this._swipeInitHandle,this._swipeHandle,this._swipeEndHandle,this._pinchInitHandle,this._pinchHandle,this._pinchEndHandle];for(a=0;a<b.length;a++)B(b[a]);this.map=this.touchEvents=this.mouseEvents=this.eventModel=this.pointerEvents=this._zoomRect=this._dragOrigin=this._panInitHandle=this._panStartHandle=this._panHandle=this._panEndHandle=this._zoomInitHandle=this._zoomHandle=this._zoomEndHandle=this._wheelHandle=this._mwMacHandle=this._dblClickHandle=this._zoomOutHandle=
this._recenterHandle=this._sDblClickHandle=this._dblTapHandle=this._keyHandle=this._keyEndHandle=this._swipeInitHandle=this._swipeHandle=this._swipeEndHandle=this._pinchInitHandle=this._pinchHandle=this._pinchEndHandle=null}});m("extend-esri")&&(d.MapNavigationManager=l);return l})},"esri/MouseEvents":function(){define("dojo/_base/declare dojo/_base/html dojo/_base/lang dojo/_base/sniff dojo/_base/connect dojo/_base/event ./kernel ./Evented ./geometry/Point ./geometry/ScreenPoint".split(" "),function(l,
n,k,q,h,g,e,d,b,a){var c=h.connect,f=h.disconnect;l=l([d],{declaredClass:"esri.MouseEvents",doubleClickDuration:300,minWheelValue:1,maxWheelValue:1,mozWheelDivisor:-1!==q("mac")?1:3,wheelDivisor:2>q("chrome")?360:120,preventPageScroll:!0,map:null,constructor:function(a,b){this.node=a;k.mixin(this,b);var f=function(a){g.stop(a);return!1};q("mozilla")&&n.style(a,"MozUserSelect","none");this._handles=[c(a,"onselectstart",f),c(a,"ondragstart",f),c(a,"onmouseenter",this,this._onMouseEnterHandler),c(a,
"onmouseleave",this,this._onMouseLeaveHandler),c(a,"onmousedown",this,this._onMouseDownHandler),c(a,"onclick",this,this._onClickHandler),c(a,"ondblclick",this,this._onDblClickHandler)];this._onMouseMoveHandler_connect=c(a,"onmousemove",this,this._onMouseMoveHandler);this._onMouseUpHandler_connect=c(a,"onmouseup",this,this._onMouseUpHandler);this._fireClickEvent=k.hitch(this,this._fireClickEvent);this._initialDuration=this.doubleClickDuration;this.preventPageScroll=(f=this.map)?f.isScrollWheelZoom||
f.isScrollWheelPan:this.preventPageScroll;this.enableMouseWheel(!1)},_fire:function(a,b){if(!this._preventClick||!("onClick"===a||"onDblClick"===a)){if(this[a])this[a](b);if(this.map&&this.map[a])this.map[a](b)}},_processEvent:function(c){c=g.fix(c,c.target);var f=this.map,d=f&&f.position;d&&("DOMMouseScroll"===c.type&&3>q("ff")?c.screenPoint=new a(window.scrollX+c.screenX-d.x,window.scrollY+c.screenY-d.y):c.screenPoint=new a(c.pageX-d.x,c.pageY-d.y),c.mapPoint=f.extent?f.toMap(c.screenPoint):new b);
c.numPoints=0;return c},_onMouseEnterHandler:function(a){f(this._onKeyDown_connect);f(this._onKeyUp_connect);this._onKeyDown_connect=c(document,"onkeydown",this,this._onKeyDownHandler);this._onKeyUp_connect=c(document,"onkeyup",this,this._onKeyUpHandler);this._fire("onMouseOver",this._processEvent(a))},_onMouseLeaveHandler:function(a){f(this._onKeyDown_connect);f(this._onKeyUp_connect);this._onKeyDown_connect=this._onKeyUp_connect=null;this._fire("onMouseOut",this._processEvent(a))},_onMouseMoveHandler:function(a){this._dragEnd?
this._dragEnd=!1:this._fire("onMouseMove",this._processEvent(a))},_onMouseDownHandler:function(a){f(this._onMouseMoveHandler_connect);this._onMouseMoveHandler_connect=null;this.node.setCapture&&this.node.setCapture(!1);this._onMouseDragHandler_connect=c(document,"onmousemove",this,this._onMouseDragHandler);this._startX=a.pageX;this._startY=a.pageY;this._fire("onMouseDown",this._processEvent(a))},_onMouseUpHandler:function(a){var b=this.node;b.releaseCapture&&b.releaseCapture();f(this._onMouseDragHandler_connect);
this._onMouseDragHandler_connect=null;f(this._onMouseMoveHandler_connect);this._onMouseMoveHandler_connect=c(b,"onmousemove",this,this._onMouseMoveHandler);this._fire("onMouseUp",this._processEvent(a))},_onMouseDragHandler:function(a){f(this._onMouseDragHandler_connect);this._onMouseDragHandler_connect=c(document,"onmousemove",this,this._onMouseDraggingHandler);f(this._onMouseUpHandler_connect);this._onMouseUpHandler_connect=c(document,"onmouseup",this,this._onDragMouseUpHandler);this._docLeaveConnect=
c(document,"onmouseout",this,this._onDocMouseOut);this._fire("onMouseDragStart",this._processEvent(a))},_onMouseDraggingHandler:function(a){g.stop(a);this._fire("onMouseDrag",this._processEvent(a))},_onDragMouseUpHandler:function(a){var b=this.node;b.releaseCapture&&b.releaseCapture();this._dragEnd=!0;f(this._docLeaveConnect);f(this._onMouseDragHandler_connect);f(this._onMouseUpHandler_connect);this._docLeaveConnect=this._onMouseDragHandler_connect=null;this._onMouseMoveHandler_connect=c(b,"onmousemove",
this,this._onMouseMoveHandler);this._onMouseUpHandler_connect=c(b,"onmouseup",this,this._onMouseUpHandler);a=this._processEvent(a);this._fire("onMouseDragEnd",a);this._fire("onMouseUp",a)},_onDocMouseOut:function(a){var b=9>q("ie")?a.toElement:a.relatedTarget,c=b&&b.nodeName.toLowerCase();(!b||q("chrome")&&"html"===c)&&this._onDragMouseUpHandler(a)},_onClickHandler:function(a){a=this._processEvent(a);a.pageX!==this._startX||a.pageY!==this._startY||(clearTimeout(this._clickTimer),this._clickEvent=
k.mixin({},a),this._clickTimer=setTimeout(this._fireClickEvent,this.doubleClickDuration))},_fireClickEvent:function(){clearTimeout(this._clickTimer);9>q("ie")&&(this._clickEvent.graphic=e._ieGraphic,delete e._ieGraphic);this._fire("onClick",this._clickEvent)},_onDblClickHandler:function(a){clearTimeout(this._clickTimer);this._fire("onDblClick",this._processEvent(a))},_onMouseWheelHandler:function(a){var b=this.map;(b?b.isScrollWheelZoom||b.isScrollWheelPan:this.preventPageScroll)&&g.stop(a);var b=
q("ff")||q("mozilla")?-a.detail/this.mozWheelDivisor:a.wheelDelta/this.wheelDivisor,c=Math.abs(b),c=c<=this.minWheelValue?this.minWheelValue:this.maxWheelValue;a.value=0>b?-c:c;this._fire("onMouseWheel",this._processEvent(a))},_onKeyDownHandler:function(a){this._fire("onKeyDown",a)},_onKeyUpHandler:function(a){this._fire("onKeyUp",a)},enableMouseWheel:function(a){f(this._scrollHandle);this._scrollHandle=c(this.node,q("ff")||q("mozilla")?a?"MozMousePixelScroll":"DOMMouseScroll":"onmousewheel",this,
this._onMouseWheelHandler)},setImmediateClick:function(a){this.doubleClickDuration=a?0:this._initialDuration},preventClickEvents:function(a){this._preventClick=a},destroy:function(){var a=this._handles.concat([this._onMouseMoveHandler_connect,this._onMouseUpHandler_connect,this._onMouseDragHandler_connect,this._scrollHandle,this._onKeyDown_connect,this._onKeyUp_connect,this._docLeaveConnect]),b;for(b=0;b<a.length;b++)f(a[b]);clearTimeout(this._clickTimer);this.node=this.map=this._handles=this._clickEvent=
this._onMouseMoveHandler_connect=this._onMouseUpHandler_connect=this._onMouseDragHandler_connect=this._scrollHandle=this._onKeyDown_connect=this._onKeyUp_connect=this._docLeaveConnect=null}});q("extend-esri")&&(e.MouseEvents=l);return l})},"dojo/_base/html":function(){define("./kernel ../dom ../dom-style ../dom-attr ../dom-prop ../dom-class ../dom-construct ../dom-geometry".split(" "),function(l,n,k,q,h,g,e,d){l.byId=n.byId;l.isDescendant=n.isDescendant;l.setSelectable=n.setSelectable;l.getAttr=q.get;
l.setAttr=q.set;l.hasAttr=q.has;l.removeAttr=q.remove;l.getNodeProp=q.getNodeProp;l.attr=function(b,a,c){return 2==arguments.length?q["string"==typeof a?"get":"set"](b,a):q.set(b,a,c)};l.hasClass=g.contains;l.addClass=g.add;l.removeClass=g.remove;l.toggleClass=g.toggle;l.replaceClass=g.replace;l._toDom=l.toDom=e.toDom;l.place=e.place;l.create=e.create;l.empty=function(b){e.empty(b)};l._destroyElement=l.destroy=function(b){e.destroy(b)};l._getPadExtents=l.getPadExtents=d.getPadExtents;l._getBorderExtents=
l.getBorderExtents=d.getBorderExtents;l._getPadBorderExtents=l.getPadBorderExtents=d.getPadBorderExtents;l._getMarginExtents=l.getMarginExtents=d.getMarginExtents;l._getMarginSize=l.getMarginSize=d.getMarginSize;l._getMarginBox=l.getMarginBox=d.getMarginBox;l.setMarginBox=d.setMarginBox;l._getContentBox=l.getContentBox=d.getContentBox;l.setContentSize=d.setContentSize;l._isBodyLtr=l.isBodyLtr=d.isBodyLtr;l._docScroll=l.docScroll=d.docScroll;l._getIeDocumentElementOffset=l.getIeDocumentElementOffset=
d.getIeDocumentElementOffset;l._fixIeBiDiScrollLeft=l.fixIeBiDiScrollLeft=d.fixIeBiDiScrollLeft;l.position=d.position;l.marginBox=function(b,a){return a?d.setMarginBox(b,a):d.getMarginBox(b)};l.contentBox=function(b,a){return a?d.setContentSize(b,a):d.getContentBox(b)};l.coords=function(b,a){l.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");b=n.byId(b);var c=k.getComputedStyle(b),c=d.getMarginBox(b,c),f=d.position(b,a);c.x=f.x;c.y=f.y;return c};l.getProp=h.get;l.setProp=h.set;
l.prop=function(b,a,c){return 2==arguments.length?h["string"==typeof a?"get":"set"](b,a):h.set(b,a,c)};l.getStyle=k.get;l.setStyle=k.set;l.getComputedStyle=k.getComputedStyle;l.__toPixelValue=l.toPixelValue=k.toPixelValue;l.style=function(b,a,c){switch(arguments.length){case 1:return k.get(b);case 2:return k["string"==typeof a?"get":"set"](b,a)}return k.set(b,a,c)};return l})},"esri/TouchEvents":function(){define("dojo/_base/declare dojo/_base/html dojo/_base/lang dojo/_base/sniff dojo/dom ./kernel ./Evented ./geometry/Point ./geometry/ScreenPoint".split(" "),
function(l,n,k,q,h,g,e,d,b){l=l([e],{declaredClass:"esri.TouchEvents",tapRadius:8,doubleTapRadius:10,tapStartTolerance:50,doubleTapDuration:300,map:null,constructor:function(a,b){this.node=a;k.mixin(this,b);n.setSelectable(a,!1);this._touchStart=k.hitch(this,this._touchStart);this._touchMove=k.hitch(this,this._touchMove);this._touchEnd=k.hitch(this,this._touchEnd);this._touchCancel=k.hitch(this,this._touchCancel);a.addEventListener("touchstart",this._touchStart,!1);a.addEventListener("touchmove",
this._touchMove,!1);a.addEventListener("touchend",this._touchEnd,!1);a.addEventListener("touchcancel",this._touchCancel,!1);this.map&&q("ios")&&(this._mouseOver=k.hitch(this,this._mouseOver),this._mouseOut=k.hitch(this,this._mouseOut),this._mouseDown=k.hitch(this,this._mouseDown),this._mouseUp=k.hitch(this,this._mouseUp),this._mouseClick=k.hitch(this,this._mouseClick),a.addEventListener("mouseover",this._mouseOver,!1),a.addEventListener("mouseout",this._mouseOut,!1),a.addEventListener("mousedown",
this._mouseDown,!1),a.addEventListener("mouseup",this._mouseUp,!1),a.addEventListener("click",this._mouseClick,!1));this._numTouches=0;this._nodeTouches=[];this._touches={};this._touchIds=[];this._taps=[];this._immediate=!1},_touchStart:function(a){var b=this._touches,f,m=a.changedTouches.length,d,e,g,h,k=(new Date).getTime();if(!q("android")||!q("safari")||!(1===a.targetTouches.length&&a.touches.length===a.targetTouches.length&&a.targetTouches.length===a.changedTouches.length&&0===a.changedTouches[0].identifier&&
b[a.changedTouches[0].identifier])){this._addTouch(a);for(f=0;f<m;f++)d=a.changedTouches[f],e=b[d.identifier]={},e.startX=d.pageX,e.startY=d.pageY,e.startTS=k,-1===this._touchIds.indexOf(d.identifier)&&this._touchIds.push(d.identifier);this._swipeActive&&(g=this._nodeTouches[0]);this._pinchActive&&(h=this._nodeTouches[1]);1===this._numTouches?this._swipeActive?(this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(a,g))):this._pinchActive&&(this._pinchActive=!1,this._fire("onPinchEnd",
this._processTouchEvent(a,[g,h]))):2===this._numTouches?this._swipeActive&&(g&&(e=b[this._touchIds[0]],e.startX=g.pageX,e.startY=g.pageY,e.moved=!1),this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(a,g))):this._swipeActive?(this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(a,g))):this._pinchActive&&(this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(a,[g,h])))}},_touchMove:function(a){a.preventDefault();this._updateTouch(a);var b=this._touches,
f,d=a.changedTouches.length,e,g,h,k;if(!q("android")||!q("safari")||!(1===a.targetTouches.length&&a.touches.length===a.targetTouches.length&&a.targetTouches.length===a.changedTouches.length&&0===a.changedTouches[0].identifier&&b[a.changedTouches[0].identifier]&&1<this._touchIds.length)){for(f=0;f<d;f++)if(e=a.changedTouches[f],g=b[e.identifier]){h=Math.abs(e.pageX-g.startX);e=Math.abs(e.pageY-g.startY);if(!g.moved&&(h>=this.tapRadius||e>=this.tapRadius))g.moved=g.absMoved=!0;k=k?k:g.moved}1===this._numTouches?
(f=a.changedTouches[0],this._swipeActive?this._fire("onSwipeMove",this._processTouchEvent(a,f)):k&&(this._swipeActive=!0,this._fire("onSwipeStart",this._processTouchEvent(a,f)))):2===this._numTouches&&(f=this._nodeTouches[0],d=this._nodeTouches[1],this._pinchActive?this._fire("onPinchMove",this._processTouchEvent(a,[f,d])):k&&(k=b[f.identifier],g=b[d.identifier],b=Math.abs(k.startX-g.startX),k=Math.abs(k.startY-g.startY),b=Math.sqrt(b*b+k*k),k=Math.abs(f.pageX-d.pageX),g=Math.abs(f.pageY-d.pageY),
k=Math.sqrt(k*k+g*g),Math.abs(k-b)>=2*this.tapRadius&&(this._pinchActive=!0,this._fire("onPinchStart",this._processTouchEvent(a,[f,d])))))}},_touchEnd:function(a){this._removeTouch(a);var b=this._touches,f=a.changedTouches,d,e=f.length,g,h,k=(new Date).getTime(),l=this._touchIds;for(d=0;d<e;d++)if(h=b[f[d].identifier])h.absMoved&&(g=!0),h.pageX=f[d].pageX,h.pageY=f[d].pageY,h.endTS=k;if(0===this._numTouches)if(this._touches={},this._touchIds=[],this._swipeActive)this._swipeActive=!1,this._fire("onSwipeEnd",
this._processTouchEvent(a,f[0]));else if(this._pinchActive)this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(a,f));else{if(!g){e=Infinity;g=-Infinity;var k=Infinity,n=-Infinity,q=this.tapStartTolerance,w=[],z=!0;for(d=0;d<l.length;d++)h=b[l[d]],w.push(h),h.startTS<e&&(e=h.startTS),h.startTS>g&&(g=h.startTS),h.endTS<k&&(k=h.endTS),h.endTS>n&&(n=h.endTS),delete b[l[d]];if(1===w.length&&f[0]&&(b=Math.abs(f[0].pageX-w[0].startX),f=Math.abs(f[0].pageY-w[0].startY),b>=this.tapRadius||
f>=this.tapRadius))z=!1;z&&(Math.abs(g-e)<=q&&Math.abs(n-k)<=q)&&this._basicTap(a,w)}}else 1===this._numTouches&&this._pinchActive&&(d=this._nodeTouches[0],h=b[d.identifier],h.startX=d.pageX,h.startY=d.pageY,this._pinchActive=h.moved=!1,this._fire("onPinchEnd",this._processTouchEvent(a,[f[0],d])))},_touchCancel:function(a){this._numTouches&&this._touchEnd(a)},_basicTap:function(a,b){var f=(new Date).getTime(),d=this;a=this._processTouchEvent(a,b);this._taps.push({touchInfos:b,ts:f,event:a});2<this._taps.length&&
this._taps.shift();this._fire("onBasicTap",a);clearTimeout(this._tapTimer);this._immediate?this._analyzeTap(!0):this._tapTimer=setTimeout(function(){var a=d;d=null;clearTimeout(a._tapTimer);a._analyzeTap()},2===this._taps.length?this.doubleTapDuration/2:this.doubleTapDuration)},_analyzeTap:function(a){var b=this._taps,f=b[0],d=b[1],e=f.touchInfos,g=d&&d.touchInfos;b.length&&(a||(this._taps=[]),f&&d?e.length===g.length?d.ts-f.ts<=this.doubleTapDuration?(1===e.length?(a=Math.abs(e[0].startX-g[0].startX),
e=Math.abs(e[0].startY-g[0].startY),e=a<=this.doubleTapRadius&&e<=this.doubleTapRadius):e=!0,e?this._processedDoubleTap(b):this._processedTap(d)):this._processedTap(d):this._processedTap(d):this._processedTap(f||d))},_processedTap:function(a){var b=a.event;this._fire("onProcessedTap",b);1===a.touchInfos.length?this._fire("onTap",this._fixEvent(b)):2===a.touchInfos.length&&this._fire("onTwoFingerTap",b)},_processedDoubleTap:function(a){var b=1===a[1].touchInfos.length,f;b&&(f=[this._fixEvent(a[0].event),
this._fixEvent(a[1].event)],f[1].relatedEvents=f);a=[a[0].event,a[1].event];a[1].relatedEvents=a;this._fire("onProcessedDoubleTap",a[1]);b&&(this._fire("onDoubleTap",f[1]),this._fire("onDblClick",f[1]))},_addTouch:function(a){var b=a.changedTouches,f=this._nodeTouches,d,e,g;this._numTouches+=b.length;for(a=0;a<b.length;a++){e=f.length;g=!1;for(d=0;d<e&&!(g=f[d].identifier===b[a].identifier);d++);g?this._numTouches--:f.push(b[a])}for(a=f.length-1;0<=a;a--)h.isDescendant(f[a].target,document.body)||
(f.splice(a,1),this._numTouches--);0>this._numTouches&&(this._numTouches=0)},_removeTouch:function(a){var b=[],f=[],d=a.changedTouches,e=this._nodeTouches;this._numTouches-=d.length;0>this._numTouches&&(this._numTouches=0);for(a=0;a<d.length;a++)b.push(d[a].identifier);for(a=e.length-1;0<=a;a--)-1!==b.indexOf(e[a].identifier)&&f.push(e.splice(a,1)[0]);return f},_updateTouch:function(a){var b=[],f,d=a.changedTouches,e=this._nodeTouches;for(a=0;a<d.length;a++)b.push(d[a].identifier);for(a=0;a<e.length;a++)f=
b.indexOf(e[a].identifier),-1!==f&&e.splice(a,1,d[f])},_mouseOver:function(a){this._fire("onMouseOver",this._processMouseEvent(a))},_mouseOut:function(a){this._fire("onMouseOut",this._processMouseEvent(a))},_mouseDown:function(a){this._fire("onMouseDown",this._processMouseEvent(a))},_mouseUp:function(a){this._fire("onMouseUp",this._processMouseEvent(a))},_mouseClick:function(a){this._fire("onClick",this._processMouseEvent(a))},_fire:function(a,b){if("onDblClick"===a&&this.mouseEvents){this.mouseEvents.preventClickEvents(!0);
var f=this;setTimeout(function(){f.mouseEvents.preventClickEvents(!1)},350)}if(this[a])this[a](b);if(this.map&&this.map[a])this.map[a](b)},_fixEvent:function(a){var b={},f;for(f in a)b[f]=a[f];this.map&&(b.screenPoint=b.screenPoints[0],b.mapPoint=b.mapPoints[0]);return b},_processTouchEvent:function(a,c){var f=this.map,m=f&&f.position,e=0;if(m&&c)if(k.isArray(c)){var g,h;a.screenPoints=[];a.mapPoints=[];for(g=0;g<c.length;g++)c[g]?(h=new b(c[g].pageX-m.x,c[g].pageY-m.y),a.screenPoints.push(h),a.mapPoints.push(f.extent?
f.toMap(h):new d)):e++}else a.screenPoint=new b(c.pageX-m.x,c.pageY-m.y),a.mapPoint=f.extent?f.toMap(a.screenPoint):new d;a.numPoints=c?k.isArray(c)?c.length-e:1:0;return a},_processMouseEvent:function(a){var c=this.map,f=c&&c.position;f&&(a.screenPoint=new b(a.pageX-f.x,a.pageY-f.y),a.mapPoint=c.extent?c.toMap(a.screenPoint):new d);return a},setImmediateTap:function(a){this._immediate=a},destroy:function(){var a=this.node;a.removeEventListener("touchstart",this._touchStart,!1);a.removeEventListener("touchmove",
this._touchMove,!1);a.removeEventListener("touchend",this._touchEnd,!1);a.removeEventListener("touchcancel",this._touchCancel,!1);this.map&&(a.removeEventListener("mouseover",this._mouseOver,!1),a.removeEventListener("mouseout",this._mouseOut,!1),a.removeEventListener("mousedown",this._mouseDown,!1),a.removeEventListener("mouseup",this._mouseUp,!1),a.removeEventListener("click",this._mouseClick,!1));n.setSelectable(a,!0);clearTimeout(this._tapTimer);this.node=this.map=this._numTouches=this._nodeTouches=
this._touches=this._touchIds=this._taps=null}});q("extend-esri")&&(g.TouchEvents=l);return l})},"esri/PointerEvents":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ./kernel ./Evented ./geometry/Point ./geometry/ScreenPoint".split(" "),function(l,n,k,q,h,g,e,d){l=l([g],{declaredClass:"esri.PointerEvents",tapRadius:8,clickRadius:2,doubleTapRadius:10,tapStartTolerance:50,doubleTapDuration:300,minWheelValue:1,maxWheelValue:1,mozWheelDivisor:-1!==q("mac")?1:3,wheelDivisor:120,
preventPageScroll:!0,constructor:function(b,a){this.node=b;n.mixin(this,a);void 0!==b.style.msTouchAction?b.style.msTouchAction="none":void 0!==b.style.touchAction&&(b.style.touchAction="none");var c=navigator.msPointerEnabled,f=function(a){a.preventDefault()};b.addEventListener("selectstart",f,!1);b.addEventListener("dragstart",f,!1);this._pointerDown=n.hitch(this,this._pointerDown);this._pointerMove=n.hitch(this,this._pointerMove);this._pointerUp=n.hitch(this,this._pointerUp);this._pointerCancel=
n.hitch(this,this._pointerCancel);b.addEventListener(c?"MSPointerDown":"pointerdown",this._pointerDown,!1);b.addEventListener(c?"MSPointerMove":"pointermove",this._pointerMove,!1);b.addEventListener(c?"MSPointerUp":"pointerup",this._pointerUp,!1);b.addEventListener(c?"MSPointerCancel":"pointercancel",this._pointerCancel,!1);this.map&&(this._mouseOver=n.hitch(this,this._mouseOver),this._mouseOut=n.hitch(this,this._mouseOut),this._mouseLeave=n.hitch(this,this._mouseLeave),this._mouseDown=n.hitch(this,
this._mouseDown),this._mouseUp=n.hitch(this,this._mouseUp),this._mouseClick=n.hitch(this,this._mouseClick),this._mouseWheel=n.hitch(this,this._mouseWheel),this._mouseMove=n.hitch(this,this._mouseMove),this._mouseEnter=n.hitch(this,this._mouseEnter),this._onKeyDown=n.hitch(this,this._onKeyDown),this._onKeyUp=n.hitch(this,this._onKeyUp),b.addEventListener("mouseover",this._mouseOver,!1),b.addEventListener("mouseout",this._mouseOut,!1),b.addEventListener("mouseleave",this._mouseLeave,!1),b.addEventListener("mousedown",
this._mouseDown,!1),b.addEventListener("mouseup",this._mouseUp,!1),b.addEventListener("click",this._mouseClick,!1),b.addEventListener("mousewheel",this._mouseWheel,!1),b.addEventListener("mousemove",this._mouseMove,!1),b.addEventListener("mouseenter",this._mouseEnter,!1));this._numTouches=0;this._touches={};this._touchIds=[];this._taps=[];this._immediate=!1},_pointerDown:function(b){var a=this._touches,c=b.target,f=b.pointerId,d=this._touchIds,e,g=(new Date).getTime();e=a[f]={};e.pointerId=f;e.startX=
e.pageX=b.pageX;e.startY=e.pageY=b.pageY;e.startTS=g;d.push(f);this._numTouches++;c.setPointerCapture?c.setPointerCapture(f):c.msSetPointerCapture&&c.msSetPointerCapture(f);c=a[d[0]];a=a[d[1]];1!==this._numTouches&&(2===this._numTouches?this._swipeActive&&(c&&(c.startX=c.pageX,c.startY=c.pageY,c.moved=!1),this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(b,c))):this._swipeActive?(this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(b,c))):this._pinchActive&&(this._pinchActive=
!1,this._fire("onPinchEnd",this._processTouchEvent(b,[c,a]))))},_pointerMove:function(b){var a=this._touches,c=this._touchIds,f,d,e;if((f=a[b.pointerId])&&!(f.pageX===b.pageX&&f.pageY===b.pageY)){f.pageX=b.pageX;f.pageY=b.pageY;d=Math.abs(f.pageX-f.startX);e=Math.abs(f.pageY-f.startY);if(!f.moved&&(d>=this.tapRadius||e>=this.tapRadius))f.moved=f.absMoved=!0;if(1===this._numTouches)this._swipeActive?this._fire("onSwipeMove",this._processTouchEvent(b,b)):f.moved&&(this._swipeActive=!0,this._fire("onSwipeStart",
this._processTouchEvent(b,b)));else if(2===this._numTouches)if(f=a[c[0]],a=a[c[1]],this._pinchActive)this._fire("onPinchMove",this._processTouchEvent(b,[f,a]));else if(f.moved||a.moved)c=Math.abs(f.startX-a.startX),d=Math.abs(f.startY-a.startY),c=Math.sqrt(c*c+d*d),d=Math.abs(f.pageX-a.pageX),e=Math.abs(f.pageY-a.pageY),d=Math.sqrt(d*d+e*e),Math.abs(d-c)>=2*this.tapRadius&&(this._pinchActive=!0,this._fire("onPinchStart",this._processTouchEvent(b,[f,a])))}},_pointerUp:function(b){var a=this._touches,
c,f=this.node,d=b.target,e=b.pointerId,g=this._touchIds,h=g.slice(0),l=k.map(h,function(b){return a[b]}),n=(new Date).getTime();if(c=a[e])if(c.pageX=b.pageX,c.pageY=b.pageY,c.endTS=n,this._numTouches--,d.releasePointerCapture?d.releasePointerCapture(e):d.msReleasePointerCapture&&d.msReleasePointerCapture(e),0===this._numTouches)if(this._touches={},this._touchIds=[],this._swipeActive)this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(b,b));else if(this._pinchActive)this._pinchActive=
!1,this._fire("onPinchEnd",this._processTouchEvent(b,b));else{if(!c.absMoved){var d=Infinity,e=-Infinity,g=Infinity,n=-Infinity,q=this.tapStartTolerance,y;for(y=0;y<h.length;y++)c=l[y],c.startTS<d&&(d=c.startTS),c.startTS>e&&(e=c.startTS),c.endTS<g&&(g=c.endTS),c.endTS>n&&(n=c.endTS);Math.abs(e-d)<=q&&Math.abs(n-g)<=q&&this._basicTap(b,l)}}else 1===this._numTouches&&this._pinchActive&&(g.splice(k.indexOf(g,b.pointerId),1),delete a[b.pointerId],c=a[g[0]],c.startX=c.pageX,c.startY=c.pageY,c.moved=!1,
document.msElementsFromPoint&&(h=document.msElementsFromPoint(c.pageX,c.pageY),k.some(h,function(a){return a===f})||(this._touches={},this._touchIds=[],this._numTouches=0)),this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(b,[b,c])))},_pointerCancel:function(b){this._numTouches&&this._pointerUp(b)},_basicTap:function(b,a){var c=(new Date).getTime(),f=this,d=this._immediate;b=this._processTouchEvent(b,a);this._taps.push({touchInfos:a,ts:c,event:b});2<this._taps.length&&this._taps.shift();
this._fire("onBasicTap",b);clearTimeout(this._tapTimer);c=2===this._taps.length?this.doubleTapDuration/2:this.doubleTapDuration;this._tapTimer=setTimeout(function(){var a=f;f=null;clearTimeout(a._tapTimer);a._analyzeTap(d)},d?0:c)},_analyzeTap:function(b){var a=this._taps,c=a[0],f=a[1],d=c.touchInfos,e=f&&f.touchInfos;a.length&&(b||(this._taps=[]),c&&f?d.length===e.length?f.ts-c.ts<=this.doubleTapDuration?(1===d.length?(b=Math.abs(d[0].startX-e[0].startX),d=Math.abs(d[0].startY-e[0].startY),d=b<=
this.doubleTapRadius&&d<=this.doubleTapRadius):d=!0,d?this._processedDoubleTap(a):this._processedTap(f)):this._processedTap(f):this._processedTap(f):this._processedTap(c||f))},_processedTap:function(b){var a=b.event;this._fire("onProcessedTap",a);1===b.touchInfos.length?this._fire("onTap",this._fixEvent(a)):2===b.touchInfos.length&&this._fire("onTwoFingerTap",a)},_processedDoubleTap:function(b){var a=1===b[1].touchInfos.length,c;a&&(c=[this._fixEvent(b[0].event),this._fixEvent(b[1].event)],c[1].relatedEvents=
c);b=[b[0].event,b[1].event];b[1].relatedEvents=b;this._fire("onProcessedDoubleTap",b[1]);a&&(this._fire("onDoubleTap",c[1]),this._fire("onDblClick",c[1]))},_mouseOver:function(b){this._fire("onMouseOver",this._processMouseEvent(b))},_mouseMove:function(b){this._fire("onMouseMove",this._processMouseEvent(b))},_mouseOut:function(b){this._fire("onMouseOut",this._processMouseEvent(b))},_mouseLeave:function(b){document.removeEventListener("keydown",this._onKeyDown,!1);document.removeEventListener("keyup",
this._onKeyUp,!1);this._fire("onMouseOut",this._processMouseEvent(event))},_mouseDown:function(b){this._downX=b.pageX;this._downY=b.pageY;this._fire("onMouseDown",this._processMouseEvent(b))},_mouseUp:function(b){this._fire("onMouseUp",this._processMouseEvent(b))},_mouseClick:function(b){Math.abs(b.pageX-this._downX)<=this.clickRadius&&Math.abs(b.pageY-this._downY)<=this.clickRadius&&this._fire("onClick",this._processMouseEvent(b))},_mouseWheel:function(b){var a=this.map;(a?a.isScrollWheelZoom||a.isScrollWheelPan:
this.preventPageScroll)&&b.preventDefault();var a=b.wheelDelta?b.wheelDelta/this.wheelDivisor:-b.detail/this.mozWheelDivisor,c=Math.abs(a),c=c<=this.minWheelValue?this.minWheelValue:this.maxWheelValue;b.value=0>a?-c:c;this._fire("onMouseWheel",this._processMouseEvent(b))},_mouseEnter:function(b){document.removeEventListener("keydown",this._onKeyDown,!1);document.removeEventListener("keyup",this._onKeyUp,!1);document.addEventListener("keydown",this._onKeyDown,!1);document.addEventListener("keyup",
this._onKeyUp,!1);this._fire("onMouseEnter",this._processMouseEvent(b))},_onKeyDown:function(b){this._fire("onKeyDown",b)},_onKeyUp:function(b){this._fire("onKeyUp",b)},_fire:function(b,a){if(this[b])this[b](a);if(this.map&&this.map[b])this.map[b](a)},_fixEvent:function(b){var a={},c;for(c in b)a[c]=b[c];this.map&&(a.screenPoint=a.screenPoints[0],a.mapPoint=a.mapPoints[0]);return a},_processTouchEvent:function(b,a){var c=this.map,f=c&&c.position,m=0;if(f&&a)if(n.isArray(a)){var g,h;b.screenPoints=
[];b.mapPoints=[];for(g=0;g<a.length;g++)a[g]?(h=new d(a[g].pageX-f.x,a[g].pageY-f.y),b.screenPoints.push(h),b.mapPoints.push(c.extent?c.toMap(h):new e)):m++}else b.screenPoint=new d(a.pageX-f.x,a.pageY-f.y),b.mapPoint=c.extent?c.toMap(b.screenPoint):new e;b.numPoints=a?n.isArray(a)?a.length-m:1:0;return b},_processMouseEvent:function(b){var a=this.map,c=a&&a.position;c&&(b.screenPoint=new d(b.pageX-c.x,b.pageY-c.y),b.mapPoint=a.extent?a.toMap(b.screenPoint):new e);return b},setImmediateTap:function(b){this._immediate=
b},destroy:function(){var b=this.node;b.removeEventListener("MSPointerDown",this._pointerDown,!1);b.removeEventListener("MSPointerMove",this._pointerMove,!1);b.removeEventListener("MSPointerUp",this._pointerUp,!1);b.removeEventListener("MSPointerCancel",this._pointerCancel,!1);this.map&&(b.removeEventListener("mouseover",this._mouseOver,!1),b.removeEventListener("mousemove",this._mouseMove,!1),b.removeEventListener("mouseout",this._mouseOut,!1),b.removeEventListener("mouseleave",this._mouseLeave,
!1),b.removeEventListener("mousedown",this._mouseDown,!1),b.removeEventListener("mouseup",this._mouseUp,!1),b.removeEventListener("click",this._mouseClick,!1),b.removeEventListener("mouseenter",this._mouseEnter,!1));clearTimeout(this._tapTimer);this.node=this.map=this._numTouches=this._touches=this._touchIds=this._taps=null}});q("extend-esri")&&(h.PointerEvents=l);return l})},"esri/layers/FeatureLayer":function(){define("require module dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/_base/json dojo/_base/Deferred dojo/date/locale dojo/sniff dojo/io-query dojo/dom-construct dojo/i18n dojo/when dojo/promise/all ../kernel ../lang ../request ../config ../deferredUtils ../SpatialReference ../symbols/SimpleMarkerSymbol ../symbols/SimpleLineSymbol ../symbols/SimpleFillSymbol ../symbols/jsonUtils ../renderers/SimpleRenderer ../renderers/UniqueValueRenderer ../renderers/jsonUtils ../tasks/QueryTask ../tasks/query ../tasks/FeatureSet ../tasks/StatisticDefinition ../geometry/Extent ../geometry/jsonUtils ../geometry/normalizeUtils ../geometry/scaleUtils ./GraphicsLayer ./Field ./TimeInfo ./FeatureType ./FeatureTemplate ./FeatureEditResult ./LabelClass ./SnapshotMode ./OnDemandMode ./SelectionMode ./StreamMode ./TrackManager ./HeatmapManager dojo/i18n!../nls/jsapi dojo/has!extend-esri?./agscommon".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v,A,y,w,z,x,B,D,C,F,I,E,L,G,K,J,H,M,N,O,P,Q,W,X,R,U,S,V,da,$,ba,T,Z){var ca=A.defaults,aa=k(O,{declaredClass:"esri.layers.FeatureLayer",invalidParams:"query contains one or more unsupported parameters",reHostedFS:/https?:\/\/services.*\.arcgis\.com/i,maxPointCountForAuto:4E3,maxRecordCountForAuto:2E3,maxVertexCountForAuto:25E4,generalizeForScale:4E3,_eventMap:{"add-attachment-complete":["result"],"before-apply-edits":["adds","updates","deletes"],"delete-attachments-complete":["results"],
"edits-complete":["adds","updates","deletes"],"query-attachment-infos-complete":["results"],"query-count-complete":["count"],"query-features-complete":["featureSet"],"query-ids-complete":["objectIds"],"query-related-features-complete":["featureSets"],"selection-complete":["features","method"],"update-end":["error","info"]},constructor:function(a,b){this._preventInit||this._initFeatureLayer(a,b)},_initFeatureLayer:function(a,b){this.i18n=Z;b=b||{};this.showLabels=null!=b.showLabels?b.showLabels:!0;
this._outFields=b.outFields;this._defnExpr=b.definitionExpression;this._loadCallback=b.loadCallback;var c=b._usePatch;this._usePatch=null===c||void 0===c?!0:c;this._trackIdField=b.trackIdField;this.objectIdField=b.objectIdField;this._maxOffset=null!=b.maxAllowableOffset?b.maxAllowableOffset:this.maxAllowableOffset;this._optEditable=b.editable;this._optAutoGen=b.autoGeneralize;this.editSummaryCallback=b.editSummaryCallback;this.userId=b.userId;this.userIsAdmin=b.userIsAdmin;this.useMapTime=b.hasOwnProperty("useMapTime")?
!!b.useMapTime:!0;this.source=b.source;this.gdbVersion=b.gdbVersion;this.orderByFields=b.orderByFields;this.maxPointCountForAuto=null!=b.maxPointCountForAuto?b.maxPointCountForAuto:this.maxPointCountForAuto;this.maxRecordCountForAuto=null!=b.maxRecordCountForAuto?b.maxRecordCountForAuto:this.maxRecordCountForAuto;this.maxVertexCountForAuto=null!=b.maxVertexCountForAuto?b.maxVertexCountForAuto:this.maxVertexCountForAuto;this.generalizeForScale=null!=b.generalizeForScale?b.generalizeForScale:this.generalizeForScale;
this.queryPagination=null!=b.queryPagination?b.queryPagination:this.url?this.reHostedFS.test(this.url):!1;this.multipatchOption=b.multipatchOption;this._selectedFeatures={};this._selectedFeaturesArr=[];this._newFeatures=[];this._deletedFeatures={};this._ulid=this._getUniqueId();var f=aa,c=this.mode=u.isDefined(b.mode)?b.mode:f.MODE_ONDEMAND;this._isStream&&(this.mode=c=f.MODE_STREAM);switch(c){case f.MODE_SNAPSHOT:this.currentMode=f.MODE_SNAPSHOT;this._mode=new S(this);this._isSnapshot=!0;break;case f.MODE_ONDEMAND:case f.MODE_AUTO:this.currentMode=
f.MODE_ONDEMAND;this._tileWidth=b.tileWidth||512;this._tileHeight=b.tileHeight||512;this._mode=new V(this);this.latticeTiling=b.latticeTiling;break;case f.MODE_SELECTION:this.currentMode=f.MODE_SELECTION;this._mode=new da(this);this._isSelOnly=!0;break;case f.MODE_STREAM:this.currentMode=f.MODE_STREAM,this._mode=new $(this),this._isStream=!0}this._initLayer=h.hitch(this,this._initLayer);this._selectHandler=h.hitch(this,this._selectHandler);this._editable=!1;if(h.isObject(a)&&a.layerDefinition)return this._collection=
!0,this.mode=this._isStream?f.MODE_STREAM:f.MODE_SNAPSHOT,this._initLayer(a),this;this._task=new E(this.url,{source:this.source,gdbVersion:this.gdbVersion});c=this._url.path;this._fserver=!1;-1!==c.search(/\/FeatureServer\//i)&&(this._fserver=!0);this.mode===f.MODE_AUTO&&this.reHostedFS.test(this.url)&&this._queryLimit();(f=b.resourceInfo)?this._initLayer(f):(this.source&&(f={source:this.source.toJson()},this._url.query=h.mixin(this._url.query,{layer:e.toJson(f)})),this.gdbVersion&&(this._url.query=
h.mixin(this._url.query,{gdbVersion:this.gdbVersion})),v({url:c,content:h.mixin({f:"json"},this._url.query),callbackParamName:"callback",load:this._initLayer,error:this._errorHandler}));this.registerConnectEvents()},_initLayer:function(b,c){if(b||c){this._json=b;this._findCredential();if(this.credential&&this.credential.ssl||b&&b._ssl)this._useSSL(),this._task._useSSL();this._collection&&(this._isStream||(this.currentMode=aa.MODE_SNAPSHOT,this._mode=new S(this)),this._isSnapshot=!0,this._featureSet=
b.featureSet,this._nextId=b.nextObjectId,b=b.layerDefinition);this.geometryType=b.geometryType;"string"!==typeof this.multipatchOption&&"esriGeometryMultiPatch"===this.geometryType&&(this.multipatchOption="xyFootprint");if(b.hasOwnProperty("capabilities")){var f=this.capabilities=b.capabilities;f&&-1!==f.toLowerCase().indexOf("editing")?this._editable=!0:this._editable=!1}else this._collection||(this._editable=this._fserver);u.isDefined(this._optEditable)?(this._editable=this._optEditable,delete this._optEditable):
"esriGeometryMultiPatch"===this.geometryType&&(this._editable=!1);this._json=e.toJson(this._json);if(this.isEditable())delete this._maxOffset;else if(this.currentMode!==aa.MODE_SNAPSHOT&&("esriGeometryPolyline"===this.geometryType||"esriGeometryPolygon"===this.geometryType||this.hasXYFootprint()))this._autoGeneralize=u.isDefined(this._optAutoGen)?this._optAutoGen:this.currentMode===aa.MODE_ONDEMAND,delete this._optAutoGen;var f=b.effectiveMinScale||b.minScale,d=b.effectiveMaxScale||b.maxScale;!this._hasMin&&
f&&this.setMinScale(f);!this._hasMax&&d&&this.setMaxScale(d);this.layerId=b.id;this.name=b.name;this.description=b.description;this.copyright=b.copyrightText;this.type=b.type;this.displayField=b.displayField;this.defaultDefinitionExpression=b.definitionExpression;this.fullExtent=new J(b.extent);this.initialExtent=new J(this.fullExtent.toJson());this.fullExtent.spatialReference&&(this.spatialReference=new w(this.fullExtent.spatialReference.toJson()));this.defaultVisibility=b.defaultVisibility;if("esriGeometryPoint"===
this.geometryType||"esriGeometryMultipoint"===this.geometryType)this.latticeTiling=!1;this.indexedFields=b.indexedFields;this.maxRecordCount=b.maxRecordCount;this.canModifyLayer=b.canModifyLayer;this.supportsStatistics=b.supportsStatistics;this.supportsAdvancedQueries=this._collection?!1:b.supportsAdvancedQueries;this.supportsCalculate=b.supportsCalculate;this.supportsAttachmentsByUploadId=b.supportsAttachmentsByUploadId;this.hasLabels=b.hasLabels;this.canScaleSymbols=b.canScaleSymbols;this.supportsRollbackOnFailureParameter=
this.supportsRollbackOnFailure=b.supportsRollbackOnFailure;this.syncCanReturnChanges=b.syncCanReturnChanges;this.isDataVersioned=b.isDataVersioned;this.editFieldsInfo=b.editFieldsInfo;this.ownershipBasedAccessControlForFeatures=b.ownershipBasedAccessControlForFeatures;this.editFieldsInfo&&this.ownershipBasedAccessControlForFeatures&&(this.creatorField=this.editFieldsInfo.creatorField);this.relationships=b.relationships;this.allowGeometryUpdates=u.isDefined(b.allowGeometryUpdates)?b.allowGeometryUpdates:
!0;this._isTable="Table"===this.type;for(var m=this.fields=[],d=b.fields,f=0;f<d.length;f++)m.push(new P(d[f]));if(!this.objectIdField&&(this.objectIdField=b.objectIdField,!this.objectIdField)){d=b.fields;for(f=0;f<d.length;f++)if(m=d[f],"esriFieldTypeOID"===m.type){this.objectIdField=m.name;break}}if(!u.isDefined(this._nextId)){d=this.objectIdField;m=-1;if(this._collection&&d)for(var k=(f=this._featureSet)&&f.features,l=k?k.length:0,r,f=0;f<l;f++)r=(r=k[f].attributes)&&r[d],r>m&&(m=r);this._nextId=
m+1}this.globalIdField=b.globalIdField;if(f=this.typeIdField=b.typeIdField)if(f=!this._getField(f)&&this._getField(f,!0))this.typeIdField=f.name;this.visibilityField=b.visibilityField;if(d=b.defaultSymbol)this.defaultSymbol=D.fromJson(d);var n=this.types=[],s=b.types,t,q,m=(f=this.editFieldsInfo)&&f.creatorField,k=f&&f.editorField;r=m||k;l=[];if(s)for(f=0;f<s.length;f++)t=new W(s[f]),q=t.templates,r&&(q&&q.length)&&(l=l.concat(q)),n.push(t);s=b.templates;t=this.templates=[];if(s)for(f=0;f<s.length;f++)n=
new X(s[f]),r&&l.push(n),t.push(n);for(f=0;f<l.length;f++)if(r=h.getObject("prototype.attributes",!1,l[f]))m&&delete r[m],k&&delete r[k];if(f=b.timeInfo)this.timeInfo=new Q(f),this._startTimeField=f.startTimeField,this._endTimeField=f.endTimeField,this._startTimeField&&this._endTimeField&&(this._twoTimeFields=!0),this._trackIdField?f.trackIdField=this._trackIdField:this._trackIdField=f.trackIdField;this.hasAttachments=!this._collection&&b.hasAttachments?!0:!1;this.htmlPopupType=b.htmlPopupType;var f=
b.drawingInfo,v;if((m=f&&f.labelingInfo)&&!this.labelingInfo)this.labelingInfo=g.map(m,function(a){return new U(a)}),this._fixLabelExpr();if(!this.renderer)if(f&&f.renderer){if(v=f.renderer,this.setRenderer(I.fromJson(v)),"classBreaks"===v.type&&this.renderer.setMaxInclusive(!0),!this._collection){var A=v.type,d=[];v=this.renderer;switch(A){case "simple":d.push(v.symbol);break;case "uniqueValue":case "classBreaks":d.push(v.defaultSymbol),d=d.concat(g.map(v.infos,function(a){return a.symbol}))}var d=
g.filter(d,u.isDefined),y=this._url.path+"/images/",L=this._getToken();g.forEach(d,function(a){var b=a.url;b&&(-1===b.search(/https?\:/)&&-1===b.indexOf("data:")&&(a.url=y+b),L&&-1!==a.url.search(/https?\:/)&&(a.url+="?token\x3d"+L))})}}else if(d)s=this.types,0<s.length?(v=new F(this.defaultSymbol,this.typeIdField),g.forEach(s,function(a){v.addValue(a.id,a.symbol)})):v=new C(this.defaultSymbol),this.setRenderer(v);else if(!this._isTable){switch(this.geometryType){case "esriGeometryPoint":case "esriGeometryMultipoint":A=
new z;break;case "esriGeometryPolyline":A=new x;break;case "esriGeometryPolygon":A=new B;break;default:this.hasXYFootprint()&&(A=new B)}this.setRenderer(A?new C(A):null)}A=f&&f.transparency||0;!this.hasOwnProperty("opacity")&&0<A&&(this.opacity=1-A/100);this.version=b.currentVersion;this.version||(this.version="capabilities"in b||"drawingInfo"in b||"hasAttachments"in b||"htmlPopupType"in b||"relationships"in b||"timeInfo"in b||"typeIdField"in b||"types"in b?10:9.3);if((a("ie")||7<=a("trident")||a("safari"))&&
this.isEditable()&&10.02>this.version)this._ts=!0;this.statistics=b.statistics;this._fixRendererFields();this._checkFields();this._updateCaps();var H=function(){this.currentMode!==aa.MODE_SNAPSHOT&&(this.queryPagination=!1);this.loaded=!0;this.onLoad(this);var a=this._loadCallback;a&&(delete this._loadCallback,a(this))};this._collection?(A=this._featureSet,this._featureSet=null,this._mode._drawFeatures(new G(A)),this._fcAdded=!0,H.call(this)):this._forceIdentity(this._limitPromise?function(){var a=
this;this._limitPromise.then(function(b){a._checkMode(b)});this._limitPromise.always(function(){a._limitPromise=null;H.call(a)})}:H)}},setShowLabels:function(a){this.showLabels=a;this.onShowLabelsChange()},onShowLabelsChange:function(){},onRendererChange:function(){this.inherited(arguments);var a=this._getRenderer();this._ager=!(!a||!a.observationAger||!a.observationRenderer);if(a){var b=[],a=g.filter([a,a.observationRenderer,a.latestObservationRenderer,a.trackRenderer],u.isDefined);g.forEach(a,function(a){h.isFunction(a.attributeField)||
b.push(a.attributeField);b.push(a.attributeField2);b.push(a.attributeField3)},this);this._rendererFields=g.filter(b,u.isDefined)}else this._rendererFields=[];this.loaded&&(this._fixRendererFields(),this._checkFields(this._rendererFields),this._collection&&(this._typesDirty=!0))},redraw:function(){this.inherited(arguments);this._trackManager&&this._trackManager.container&&this._trackManager.container.redraw()},_evalSDRenderer:function(){this.inherited(arguments);var a=this._getRenderer();this._ager=
!(!a||!a.observationAger||!a.observationRenderer);this._trackManager&&this._trackManager.container&&this._trackManager.container.setRenderer(a&&a.trackRenderer)},_setMap:function(a){var b=this.inherited(arguments),c=this._mode,f=this;c&&c.initialize(a);this.geometryType&&this.attr("data-geometry-type",this.geometryType.replace(/esriGeometry/i,"").toLowerCase());this._addHandle=this.on("graphic-node-add",function(a){a=a.graphic.attributes;(a=f._selectedFeatures[a&&a[f.objectIdField]])&&a.attr("data-selected",
"")});return b},_unsetMap:function(a){var b=this._mode;b&&b.suspend();this._trackManager&&(this._trackManager.destroy(),this._trackManager=null);q.disconnect(this._zoomConnect);q.disconnect(this._addHandle);this._zoomConnect=this._addHandle=null;this._toggleTime(!1);this.inherited("_unsetMap",arguments)},refresh:function(){var a=this._mode;a&&a.refresh()},hasXYFootprint:function(){return"esriGeometryMultiPatch"===this.geometryType&&"xyFootprint"===this.multipatchOption},getOutFields:function(){return g.filter(this._getOutFields(),
function(a){return"*"===a||!!this._getField(a)},this)},setEditable:function(a){if(!this._collection)return this;if(!this.loaded)return this._optEditable=a,this;var b=this._editable;this._editable=a;this._updateCaps();if(b!==a)this.onCapabilitiesChange();return this},getEditCapabilities:function(a){var b={canCreate:!1,canUpdate:!1,canDelete:!1};if(!this.loaded||!this.isEditable())return b;var c=a&&a.feature;a=a&&a.userId;var f=g.map(this.capabilities?this.capabilities.toLowerCase().split(","):[],h.trim),
d=-1<g.indexOf(f,"editing"),m=d&&-1<g.indexOf(f,"create"),b=d&&-1<g.indexOf(f,"update"),f=d&&-1<g.indexOf(f,"delete"),e=this.ownershipBasedAccessControlForFeatures,k=this.editFieldsInfo,l=k&&k.creatorField,k=k&&k.realm,c=(c=c&&c.attributes)&&l?c[l]:void 0,r=!!this.userIsAdmin,l=!e||r||!(!e.allowOthersToUpdate&&!e.allowUpdateToOthers),e=!e||r||!(!e.allowOthersToDelete&&!e.allowDeleteToOthers);if(r||d&&!m&&!b&&!f)m=b=f=!0;d={canCreate:m,canUpdate:b,canDelete:f};null===c?(d.canUpdate=b&&l,d.canDelete=
f&&e):""!==c&&c&&((a=a||this.getUserId())&&k&&(a=a+"@"+k),a.toLowerCase()!==c.toLowerCase()&&(d.canUpdate=b&&l,d.canDelete=f&&e));return d},getUserId:function(){var a;this.loaded&&(a=this.credential&&this.credential.userId||this.userId||"");return a},setUserIsAdmin:function(a){this.userIsAdmin=a},setEditSummaryCallback:function(a){this.editSummaryCallback=a},getEditSummary:function(a,b,c){c=u.isDefined(c)?c:(new Date).getTime();var f="";c=this.getEditInfo(a,b,c);(b=b&&b.callback||this.editSummaryCallback)&&
(c=b(a,c)||"");if(h.isString(c))f=c;else{if(c){a=c.action;b=c.userId;var d=c.timeValue,m=0;a&&m++;b&&m++;u.isDefined(d)&&m++;1<m&&(f=("edit"===a?"edit":"create")+(b?"User":"")+(u.isDefined(d)?c.displayPattern:""))}f=f&&u.substitute(c,this.i18n.layers.FeatureLayer[f])}return f},getEditInfo:function(a,b,c){if(this.loaded){c=u.isDefined(c)?c:(new Date).getTime();b=b&&b.action||"last";var f=this.editFieldsInfo,d=f&&f.creatorField,m=f&&f.creationDateField,e=f&&f.editorField,f=f&&f.editDateField,e=(a=a&&
a.attributes)&&e?a[e]:void 0,f=a&&f?a[f]:null,d=this._getEditData(a&&d?a[d]:void 0,a&&m?a[m]:null,c);c=this._getEditData(e,f,c);var g;switch(b){case "creation":g=d;break;case "edit":g=c;break;case "last":g=c||d}g&&(g.action=g===c?"edit":"creation");return g}},_getEditData:function(a,c,f){var d,m,e;u.isDefined(c)&&(m=f-c,e=0>m?"Full":6E4>m?"Seconds":12E4>m?"Minute":36E5>m?"Minutes":72E5>m?"Hour":864E5>m?"Hours":6048E5>m?"WeekDay":"Full");if(void 0!==a||e)d=d||{},d.userId=a,e&&(a=b.format,f=new Date(c),
d.minutes=Math.floor(m/6E4),d.hours=Math.floor(m/36E5),d.weekDay=a(f,{datePattern:"EEEE",selector:"date"}),d.formattedDate=a(f,{selector:"date"}),d.formattedTime=a(f,{selector:"time"}),d.displayPattern=e,d.timeValue=c);return d},isEditable:function(){return!(!this._editable&&!this.userIsAdmin)},setMaxAllowableOffset:function(a){this.isEditable()||(this._maxOffset=a);return this},getMaxAllowableOffset:function(){return this._maxOffset},setAutoGeneralize:function(a){if(this.loaded){if(!this.isEditable()&&
this.currentMode!==aa.MODE_SNAPSHOT&&("esriGeometryPolyline"===this.geometryType||"esriGeometryPolygon"===this.geometryType||this.hasXYFootprint()))if(this._autoGeneralize=a){if((a=this._map)&&a.loaded)this._maxOffset=Math.floor(a.extent.getWidth()/a.width)}else delete this._maxOffset}else this._optAutoGen=a;return this},setGDBVersion:function(a){if(!this._collection&&a!==this.gdbVersion&&(a||this.gdbVersion))this.gdbVersion=a,this._task.gdbVersion=a,this._url.query=h.mixin(this._url.query,{gdbVersion:a}),
this.loaded&&(this.clearSelection(),this._map&&this.refresh()),this.onGDBVersionChange();return this},setDefinitionExpression:function(a){this._defnExpr=a;(a=this._mode)&&a.propertyChangeHandler(1);return this},getDefinitionExpression:function(){return this._defnExpr},setTimeDefinition:function(a){this._isSnapshot&&(this._timeDefn=a,(a=this._mode)&&a.propertyChangeHandler(2));return this},getTimeDefinition:function(){return this._timeDefn},setTimeOffset:function(a,b){this._timeOffset=a;this._timeOffsetUnits=
b;var c=this._mode;c&&c.propertyChangeHandler(0);return this},setUseMapTime:function(a){this.useMapTime=a;this._toggleTime(!this.suspended);(a=this._mode)&&a.propertyChangeHandler(0)},selectFeatures:function(a,b,c,f){b=b||aa.SELECTION_NEW;a=this._getShallowClone(a);var m=this._map,e,g=this,h=y._fixDfd(new d(y._dfdCanceller));a.outFields=this.getOutFields();a.returnGeometry=!0;a.multipatchOption=this.multipatchOption;m&&(a.outSpatialReference=new w(m.spatialReference.toJson()));if(!this._applyQueryFilters(a,
!0))return e={features:[]},this._selectHandler(e,b,c,f,h),h;if(m=this._canDoClientSideQuery(a))h._pendingDfd=s(this._doQuery(a,m)),h._pendingDfd.then(function(a){e={features:a};g._selectHandler(e,b,c,f,h)});else{if(this._collection)return this._resolve([Error("FeatureLayer::selectFeatures - "+this.invalidParams)],null,f,h,!0),h;var k=this;this._ts&&(a._ts=(new Date).getTime());(h._pendingDfd=this._task.execute(a)).addCallbacks(function(a){k._selectHandler(a,b,c,f,h)},function(a){k._resolve([a],null,
f,h,!0)})}return h},getSelectedFeatures:function(){var a=this._selectedFeatures,b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(a[c]);return b},clearSelection:function(a){var b=this._selectedFeatures,c=this._mode,f;for(f in b)b.hasOwnProperty(f)&&(this._unSelectFeatureIIf(f,c),c._removeFeatureIIf(f));this._selectedFeatures={};this._isSelOnly&&c._applyTimeFilter(!0);if(!a)this.onSelectionClear();return this},setSelectionSymbol:function(a){if(this._selectionSymbol=a){var b=this._selectedFeatures,c;for(c in b)b.hasOwnProperty(c)&&
b[c].setSymbol(a)}return this},getSelectionSymbol:function(){return this._selectionSymbol},setLabelingInfo:function(a){a?(this.labelingInfo=a,this._fixLabelExpr()):delete this.labelingInfo;this._collection&&(this._typesDirty=!0);this.onLabelingInfoChange()},_fixLabelExpr:function(){var a=/\[([^\[\]]+)\]/ig,b,c=this,f=function(a,b){var f=c._getField(b,!0);return"["+(f&&f.name||b)+"]"};g.forEach(this.labelingInfo,function(c){if(b=c.labelExpression)c.labelExpression=b.replace(a,f)})},__msigns:[{n:"applyEdits",
c:5,a:[{i:0},{i:1}],e:4,f:1}],applyEdits:function(a,b,c,f,d,m){var e=m.assembly,k=m.dfd;this._applyNormalized(a,e&&e[0]);this._applyNormalized(b,e&&e[1]);this.onBeforeApplyEdits(a,b,c);var l={},r=this.objectIdField,e={f:"json"},n=!1;if(this._collection)m={},m.addResults=a?g.map(a,function(){n=!0;return{objectId:this._nextId++,success:!0}},this):null,m.updateResults=b?g.map(b,function(a){n=!0;var b=a.attributes[r];l[b]=a;return{objectId:b,success:!0}},this):null,m.deleteResults=c?g.map(c,function(a){n=
!0;return{objectId:a.attributes[r],success:!0}},this):null,n?this._editHandler(m,a,l,f,d,k):this._resolve([m.addResults,m.updateResults,m.deleteResults],null,f,k);else{a&&0<a.length&&(e.adds=this._convertFeaturesToJson(a,0,1),n=!0);if(b&&0<b.length){for(m=0;m<b.length;m++){var s=b[m];l[s.attributes[r]]=s}e.updates=this._convertFeaturesToJson(b,0,0,1);n=!0}if(c&&0<c.length){b=[];for(m=0;m<c.length;m++)b.push(c[m].attributes[r]);e.deletes=b.join(",");n=!0}if(n){var t=this;return v({url:this._url.path+
"/applyEdits",content:h.mixin(e,this._url.query),callbackParamName:"callback",load:function(b){t._editHandler(b,a,l,f,d,k)},error:function(a){t._resolve([a],null,d,k,!0)}},{usePost:!0})}this._resolve([],null,f,k)}},queryFeatures:function(a,b,c){return this._query("execute","onQueryFeaturesComplete",a,b,c)},queryRelatedFeatures:function(a,b,c){return this._query("executeRelationshipQuery","onQueryRelatedFeaturesComplete",a,b,c)},queryIds:function(a,b,c){return this._query("executeForIds","onQueryIdsComplete",
a,b,c)},queryCount:function(a,b,c){return this._query("executeForCount","onQueryCountComplete",a,b,c)},queryExtent:function(a,b,c){return this._query("executeForExtent","onQueryExtentComplete",a,b,c)},queryAttachmentInfos:function(a,b,f){var m=this._url.path+"/"+a+"/attachments",e=new d(y._dfdCanceller),k=this;e._pendingDfd=v({url:m,content:h.mixin({f:"json"},this._url.query),callbackParamName:"callback",load:function(f){f=f.attachmentInfos;var d;g.forEach(f,function(b){d=c.objectToQuery({gdbVersion:k._url.query&&
k._url.query.gdbVersion,layer:k._url.query&&k._url.query.layer,token:k._getToken()});b.url=m+"/"+b.id+(d?"?"+d:"");b.objectId=a});k._resolve([f],"onQueryAttachmentInfosComplete",b,e)},error:function(a){k._resolve([a],null,f,e,!0)}});return e},addAttachment:function(a,b,c,f){return this._sendAttachment("add",a,b,c,f)},updateAttachment:function(a,b,c,d,m){c.appendChild(f.create("input",{type:"hidden",name:"attachmentId",value:b}));return this._sendAttachment("update",a,c,d,m)},deleteAttachments:function(a,
b,c,f){var m=this._url.path+"/"+a+"/deleteAttachments",e=new d(y._dfdCanceller),k=this;b={f:"json",attachmentIds:b.join(",")};e._pendingDfd=v({url:m,content:h.mixin(b,this._url.query),callbackParamName:"callback",load:h.hitch(this,function(b){b=b.deleteAttachmentResults;b=g.map(b,function(b){b=new R(b);b.attachmentId=b.objectId;b.objectId=a;return b});k._resolve([b],"onDeleteAttachmentsComplete",c,e)}),error:function(a){k._resolve([a],null,f,e,!0)}},{usePost:!0});return e},addType:function(a){var b=
this.types;if(b){if(g.some(b,function(b){return b.id==a.id?!0:!1}))return!1;b.push(a)}else this.types=[a];return this._typesDirty=!0},deleteType:function(a){if(this._collection){var b=this.types;if(b){var c=-1;g.some(b,function(b,f){return b.id==a?(c=f,!0):!1});if(-1<c)return this._typesDirty=!0,b.splice(c,1)[0]}}},toJson:function(){var a=this._json;if(a=h.isString(a)?e.fromJson(a):h.clone(a)){var a=a.layerDefinition?a:{layerDefinition:a},b=a.layerDefinition,c=this._collection;if(c&&this._typesDirty){b.types=
g.map(this.types||[],function(a){return a.toJson()});var f=this.renderer,d=this.labelingInfo,m=b.drawingInfo;if((f||d)&&!m)m=b.drawingInfo={};m&&(f&&-1===f.declaredClass.indexOf("TemporalRenderer"))&&(m.renderer=f.toJson());d&&(m.labelingInfo=g.map(d,function(a){return a.toJson()}))}f=null;if(!c||this._fcAdded)f={geometryType:b.geometryType,features:this._convertFeaturesToJson(this.graphics,!0)};a.featureSet=h.mixin({},a.featureSet||{},f);c&&(a.nextObjectId=this._nextId,b.capabilities=this.capabilities);
return a}},onSelectionComplete:function(){},onSelectionClear:function(){},onBeforeApplyEdits:function(){},onEditsComplete:function(){},onQueryFeaturesComplete:function(){},onQueryRelatedFeaturesComplete:function(){},onQueryIdsComplete:function(){},onQueryCountComplete:function(){},onQueryExtentComplete:function(){},onQueryAttachmentInfosComplete:function(){},onAddAttachmentComplete:function(){},onUpdateAttachmentComplete:function(){},onDeleteAttachmentsComplete:function(){},onCapabilitiesChange:function(){},
onGDBVersionChange:function(){},onQueryLimitExceeded:function(){},onLabelingInfoChange:function(){},_forceIdentity:function(a){var b=this,c=this._url&&this._url.path;(this.ownershipBasedAccessControlForFeatures||this.userIsAdmin)&&!this._getToken()&&c&&r.id&&r.id._hasPortalSession()&&r.id._doPortalSignIn(c)?r.id.getCredential(c).then(function(){b._findCredential();a.call(b)},function(){a.call(b)}):a.call(this)},_checkMode:function(a){var b=this.geometryType,c=this.maxRecordCount;a=(a=a&&a.features&&
a.features[0])&&a.attributes&&a.attributes.exceedslimit;if(this.mode===aa.MODE_AUTO&&!this.isEditable()&&0===a&&(this.queryPagination||("esriGeometryPolyline"===b||"esriGeometryPolygon"===b||"esriGeometryMultipoint"===b||this.hasXYFootprint())&&c>=this.maxRecordCountForAuto||"esriGeometryPoint"===b&&c>=this.maxPointCountForAuto))this.currentMode=aa.MODE_SNAPSHOT,this._mode=new S(this),this._isSnapshot=!0,this._autoGeneralize=!1},_queryLimit:function(){var a=this,b=new d;this._limitPromise=b.promise;
setTimeout(function(){var c=new L,f=new K;f.statisticType="exceedslimit";f.maxPointCount=a.maxPointCountForAuto;f.maxRecordCount=a.maxRecordCountForAuto;f.maxVertexCount=a.maxVertexCountForAuto;f.outStatisticFieldName="exceedslimit";c.outStatistics=[f];a.queryFeatures(c).promise.then(function(a){b.resolve(a)},function(a){b.reject(a)})},0)},_updateCaps:function(){var a=this._editable,b=h.trim(this.capabilities||""),c=g.map(b?b.split(","):[],h.trim),f=g.map(b?b.toLowerCase().split(","):[],h.trim),b=
g.indexOf(f,"editing"),d,f={Create:g.indexOf(f,"create"),Update:g.indexOf(f,"update"),Delete:g.indexOf(f,"delete")};if(a&&-1===b)c.push("Editing");else if(!a&&-1<b){a=[b];for(d in f)-1<f[d]&&a.push(f[d]);a.sort();for(d=a.length-1;0<=d;d--)c.splice(a[d],1)}this.capabilities=c.join(",")},_counter:{value:0},_getUniqueId:function(){return this._counter.value++},onSuspend:function(){this.inherited(arguments);this._toggleTime(!1);var a=this._mode;a&&a.suspend()},onResume:function(a){this.inherited(arguments);
this._toggleTime(!0);this._updateMaxOffset();var b=this._mode,c=this._map,f=this._getRenderer();if(a.firstOccurrence){this._fixRendererFields();this._checkFields();this.clearSelection();if(this.timeInfo&&(this._trackIdField||f&&(f.latestObservationRenderer||f.trackRenderer)))this._trackManager=new ba(this),this._trackManager.initialize(c);f&&("colors"in f&&"blurRadius"in f&&"maxPixelIntensity"in f)&&"esriGeometryPoint"==this.geometryType&&(this._heatmapManager=new T(this),this._heatmapManager.initialize(c));
if(this.mode===aa.MODE_AUTO&&this.currentMode===aa.MODE_SNAPSHOT&&("esriGeometryPolyline"===this.geometryType||"esriGeometryPolygon"===this.geometryType||this.hasXYFootprint())&&!this.getMaxAllowableOffset())f=this.generalizeForScale,f=this.maxScale?this.maxScale:this.minScale?Math.min(f,this.minScale):Math.min(f,N.getScale(c,this.initialExtent)),this.setMaxAllowableOffset(c.extent.getWidth()/c.width/c.getScale()*f);this._zoomConnect=q.connect(c,"onZoomEnd",this,this._updateMaxOffset)}b&&(a.firstOccurrence?
b.startup():b.resume())},_updateMaxOffset:function(){var a=this._map;a&&a.loaded&&this._autoGeneralize&&(this._maxOffset=Math.floor(a.extent.getWidth()/a.width))},_toggleTime:function(a){var b=this._map;a&&this.timeInfo&&this.useMapTime&&b?(this._mapTimeExtent=b.timeExtent,this._timeConnect||(this._timeConnect=q.connect(b,"onTimeExtentChange",this,this._timeChangeHandler))):(this._mapTimeExtent=null,q.disconnect(this._timeConnect),this._timeConnect=null)},_timeChangeHandler:function(a){this._mapTimeExtent=
a;(a=this._mode)&&a.propertyChangeHandler(0)},_getOffsettedTE:function(a){var b=this._timeOffset,c=this._timeOffsetUnits;return a&&b&&c?a.offset(-1*b,c):a},_getTimeOverlap:function(a,b){return a&&b?a.intersection(b):a||b},_getTimeFilter:function(a){var b=this.getTimeDefinition(),c;if(b&&(c=this._getTimeOverlap(b,null),!c))return[!1];if(a){if(a=c?this._getTimeOverlap(a,c):a,!a)return[!1]}else a=c;return[!0,a]},_getAttributeFilter:function(a){var b=this.getDefinitionExpression();return a?b?"("+b+") AND ("+
a+")":a:b},_applyQueryFilters:function(a,b){a.where=this._getAttributeFilter(a.where);a.maxAllowableOffset=this._maxOffset;b&&this.supportsAdvancedQueries&&(a.orderByFields=a.orderByFields||this.getOrderByFields());if(this.timeInfo){var c=this._getTimeFilter(a.timeExtent);if(c[0])a.timeExtent=c[1];else return!1}return!0},_add:function(a){var b=this._selectionSymbol,c=a.attributes,f=this.visibilityField;b&&this._isSelOnly&&a.setSymbol(b);if(f&&c&&c.hasOwnProperty(f))a[c[f]?"show":"hide"]();return this.add.apply(this,
arguments)},_remove:function(){return this.remove.apply(this,arguments)},_canDoClientSideQuery:function(a){var b=[],c=this._map;if(!(this._isTable||!c&&!this._collection))if(!a.text&&!(a.where&&a.where!==this.getDefinitionExpression()||a.orderByFields&&a.orderByFields.length||a.outStatistics||a.returnDistinctValues)){var f=this._isSnapshot,d=this._isSelOnly,m=a.geometry;if(m)if(!d&&a.spatialRelationship===L.SPATIAL_REL_INTERSECTS&&"extent"===m.type&&(f||c.extent.contains(m)))b.push(1);else return;
if(c=a.objectIds)if(f)b.push(2);else{var m=c.length,e=this._mode,h=0,k;for(k=0;k<m;k++)e._getFeature(c[k])&&h++;if(h===m)b.push(2);else return}if(this.timeInfo)if(a=a.timeExtent,c=this._mapTimeExtent,f)a&&b.push(3);else if(d){if(a)return}else if(c)if(-1!==g.indexOf(b,2))a&&b.push(3);else return;else if(0<b.length)a&&b.push(3);else if(a)return;return 0<b.length?b:null}},_getAbsMid:function(a){return l.toAbsMid?l.toAbsMid(a):n.id.replace(/\/[^\/]*$/ig,"/")+a},_doQuery:function(a,b,c){var f=[],m=this._mode,
e=this.objectIdField,k=this,l,r,n=new d,s=new d,t=function(a,b){if(!a.length||!b.length)return a.length?a:b;var c,f,d={};a.length>b.length?(f=a,c=b):(f=b,c=a);for(var m=f.length,g=c.length,h;m--;)h=f[m],d[h.attributes[e]]=!0;for(;g--;)h=c[g],d[h.attributes[e]]||f.push(h);return f};if(-1!==g.indexOf(b,1)){r=this.graphics;l=r.length;var u=this.spatialIndex||this._map&&this._map.spatialIndex,q,w=a.geometry._normalize(null,!0);null==u&&ca.autoSpatialIndexing?q=(this._map||this).addPlugin(this._getAbsMid("../plugins/spatialIndex")).then(h.hitch(this,
h.partial(this._getFromIndex,w,u)),function(a){s.resolve(h.hitch(this,h.partial(this._filterByExtent,r,w)))}):u&&(q=this._getFromIndex(w,u));q?q.then(function(a){for(var b=0;b<a.length;b++)a[b].results&&(f=f.concat(a[b].results));s.resolve(f)}).otherwise(function(a){s.reject(a)}):s.resolve(this._filterByExtent(r,w))}else s.resolve([]);s.then(function(f){var d=[];if(-1!==g.indexOf(b,2)){var h=a.objectIds;for(l=h.length;l--;){var r=m._getFeature(h[l]);r&&d.push(r)}d=t(f,d)}else d=f;-1!==g.indexOf(b,
3)&&k.timeInfo&&(f=a.timeExtent,d=k._filterByTime(0<d.length?d:k.graphics,f.startTime,f.endTime).match);c&&(d=g.map(d,function(a){return a.attributes[e]},this));n.resolve(d)});return n},_getFromIndex:function(a,b){b=b||this.spatialIndex||this._map.spatialIndex;a instanceof Array||(a=[a]);var c=this.id;return t(g.map(a,function(a){return b.intersects(a,c)}))},_filterByExtent:function(a,b){for(var c=[],f=0,d=a.length;f<d;f++){var m=a[f],e=m.geometry;e&&(this.normalization&&b.length?(b[0].intersects(e)||
b[1].intersects(e))&&c.push(m):b.intersects(e)&&c.push(m))}return c},_filterByTime:function(a,b,c){var f=this._startTimeField,d=this._endTimeField,m;this._twoTimeFields||(m=f||d);var e=u.isDefined,g=[],h=[],k,l=a.length,r,n;b=b?b.getTime():-Infinity;c=c?c.getTime():Infinity;if(m)for(k=0;k<l;k++)r=a[k],n=r.attributes,f=n[m],f>=b&&f<=c?g.push(r):h.push(r);else for(k=0;k<l;k++)r=a[k],n=r.attributes,m=n[f],n=n[d],m=e(m)?m:-Infinity,n=e(n)?n:Infinity,m>=b&&m<=c||n>=b&&n<=c||b>=m&&c<=n?g.push(r):h.push(r);
return{match:g,noMatch:h}},_resolve:function(a,b,c,f,d){b&&this[b].apply(this,a);c&&c.apply(null,a);f&&y._resDfd(f,a,d)},_getShallowClone:function(a){var b=new L,c;for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b},_query:function(a,b,c,f,m){var e=this,g=this._map,h=new d(y._dfdCanceller),k=c,l=function(c,d){if(!d&&("execute"===a||"executeRelationshipQuery"===a)){var m,g;if("execute"===a){m=c.features;g=m.length;for(g-=1;0<=g;g--)if(m[g]._layer=e,!e._isTable){var k=e._mode._getFeature(m[g].attributes[e.objectIdField]);
k&&m.splice(g,1,k)}}else for(k in c)if(c.hasOwnProperty(k)){m=c[k].features;g=m.length;for(g-=1;0<=g;g--)m[g]._layer=e}}e._resolve([c],b,f,h)};if("executeRelationshipQuery"!==a){k=this._getShallowClone(c);k.outFields=this.getOutFields();k.returnGeometry=c.hasOwnProperty("returnGeometry")?c.returnGeometry:!c.outStatistics;k.returnGeometry&&(k.multipatchOption=this.multipatchOption);var r;g&&(k.outSpatialReference=new w(g.spatialReference.toJson()));if(!this._applyQueryFilters(k,"execute"===a&&!k.outStatistics)){switch(a){case "execute":r=
new G({features:[]});break;case "executeForIds":r=[];break;case "executeForCount":r=0;break;case "executeForExtent":r={}}l(r,!0);return h}if(c="executeForExtent"!==a&&this._canDoClientSideQuery(k))return h._pendingDfd=s(this._doQuery(k,c,"executeForIds"===a||"executeForCount"===a)),h._pendingDfd.then(function(b){switch(a){case "execute":r=new G;r.features=b;break;case "executeForIds":r=b;break;case "executeForCount":r=b.length}l(r,!0)}),h}if(this._collection)return this._resolve([Error("FeatureLayer::_query - "+
this.invalidParams)],null,m,h,!0),h;this._ts&&(k._ts=(new Date).getTime());(h._pendingDfd=this._task[a](k)).addCallbacks(l,function(a){e._resolve([a],null,m,h,!0)});return h},_convertFeaturesToJson:function(a,b,c,f){var d=[],m=this._selectionSymbol,k=this.visibilityField,l,r=this.objectIdField;if(this.loaded&&(c||f))l=g.filter(this.fields,function(a){return!1===a.editable&&(!f||a.name!==r)});for(c=0;c<a.length;c++){var n=a[c],s={},t=n.geometry,u=n.attributes,q=n.symbol;if(t&&(!f||!this.loaded||this.allowGeometryUpdates))s.geometry=
t.toJson();k?(s.attributes=u=h.mixin({},u),u[k]=n.visible?1:0):u&&(s.attributes=h.mixin({},u));s.attributes&&(l&&l.length)&&g.forEach(l,function(a){delete s.attributes[a.name]});q&&q!==m&&(s.symbol=q.toJson());d.push(s)}return b?d:e.toJson(d)},_selectHandler:function(a,b,c,f,d){var m;f=aa;switch(b){case f.SELECTION_NEW:this.clearSelection(!0);m=!0;break;case f.SELECTION_ADD:m=!0;break;case f.SELECTION_SUBTRACT:m=!1}f=a.features;var e=this._mode,g=[],h=this.objectIdField,k,l;if(m)for(m=0;m<f.length;m++)k=
f[m],l=k.attributes[h],k=e._addFeatureIIf(l,k),g.push(k),this._selectFeatureIIf(l,k,e);else for(m=0;m<f.length;m++)k=f[m],l=k.attributes[h],this._unSelectFeatureIIf(l,e),l=e._removeFeatureIIf(l),g.push(l||k);this._isSelOnly&&e._applyTimeFilter(!0);this._resolve([g,b,a.exceededTransferLimit?{queryLimitExceeded:!0}:null],"onSelectionComplete",c,d);if(a.exceededTransferLimit)this.onQueryLimitExceeded()},_selectFeatureIIf:function(a,b,c){var f=this._selectedFeatures,d=f[a];d||(c._incRefCount(a),f[a]=
b,this._isTable||(this._setSelectSymbol(b),b.attr("data-selected","")));return d||b},_unSelectFeatureIIf:function(a,b){var c=this._selectedFeatures[a];c&&(b._decRefCount(a),delete this._selectedFeatures[a],this._isTable||(this._setUnSelectSymbol(c),c.attr("data-selected")));return c},_isSelected:function(a){},_setSelectSymbol:function(a){var b=this._selectionSymbol;b&&!this._isSelOnly&&a.setSymbol(b)},_setUnSelectSymbol:function(a){var b=this._selectionSymbol;b&&!this._isSelOnly&&b===a.symbol&&a.setSymbol(null,
!0)},_getOutFields:function(){var a=[this.objectIdField,this.typeIdField,this.creatorField,this._startTimeField,this._endTimeField,this._trackIdField].concat(this._rendererFields).concat(this.dataAttributes),a=g.filter(a,function(a,b,c){return!!a&&g.indexOf(c,a)===b}),b=h.clone(this._outFields);if(b){if(-1!==g.indexOf(b,"*"))return b;g.forEach(a,function(a){-1===g.indexOf(b,a)&&b.push(a)});return b}return a},_checkFields:function(a){var b=a||this._getOutFields();g.forEach(b,function(a){"*"!==a&&this._getField(a)},
this);!a&&(!this._isTable&&!this._fserver&&!this._collection)&&g.some(this.fields,function(a){return a&&"esriFieldTypeGeometry"===a.type?!0:!1})},_fixRendererFields:function(){var a=this.renderer;this._orderBy=null;if(a&&0<this.fields.length){var b=[],c,f,a=g.filter([a,a.observationRenderer,a.latestObservationRenderer,a.trackRenderer],u.isDefined),d=[].concat(a);g.forEach(a,function(a){g.forEach(a.rendererInfos,function(a){a.renderer&&d.push(a.renderer)})});g.forEach(d,function(a){if((f=a.attributeField)&&
!h.isFunction(f))if(c=!this._getField(f)&&this._getField(f,!0))a.attributeField=c.name;if(f=a.attributeField2)if(c=!this._getField(f)&&this._getField(f,!0))a.attributeField2=c.name;if(f=a.attributeField3)if(c=!this._getField(f)&&this._getField(f,!0))a.attributeField3=c.name;h.isFunction(a.attributeField)||b.push(a.attributeField);b.push(a.attributeField2);b.push(a.attributeField3);if((f=a.rotationInfo&&a.rotationInfo.field)&&!h.isFunction(f)){if(c=!this._getField(f)&&this._getField(f,!0))f=a.rotationInfo.field=
c.name;b.push(f)}if(a.proportionalSymbolInfo){if((f=a.proportionalSymbolInfo.field)&&!h.isFunction(f)){if(c=!this._getField(f)&&this._getField(f,!0))f=a.proportionalSymbolInfo.field=c.name;b.push(f);this._orderBy||(this._orderBy=[f+" DESC"])}if((f=a.proportionalSymbolInfo.normalizationField)&&!h.isFunction(f)){if(c=!this._getField(f)&&this._getField(f,!0))f=a.proportionalSymbolInfo.normalizationField=c.name;b.push(f)}}if(a.colorInfo){if((f=a.colorInfo.field)&&!h.isFunction(f)){if(c=!this._getField(f)&&
this._getField(f,!0))f=a.colorInfo.field=c.name;b.push(f)}if((f=a.colorInfo.normalizationField)&&!h.isFunction(f)){if(c=!this._getField(f)&&this._getField(f,!0))f=a.colorInfo.normalizationField=c.name;b.push(f)}}if(a.field&&(f=a.field)&&!h.isFunction(f)){if(c=!this._getField(f)&&this._getField(f,!0))f=a.field=c.name;b.push(f)}if(a.opacityInfo){if((f=a.opacityInfo.field)&&!h.isFunction(f)){if(c=!this._getField(f)&&this._getField(f,!0))f=a.opacityInfo.field=c.name;b.push(f)}if((f=a.opacityInfo.normalizationField)&&
!h.isFunction(f)){if(c=!this._getField(f)&&this._getField(f,!0))f=a.opacityInfo.normalizationField=c.name;b.push(f)}}if(!this._orderBy&&a.addBreak&&!h.isFunction(a.attributeField)&&(a.backgroundFillSymbol||this._hasSizeDiff(a)))this._orderBy=[a.attributeField+" DESC"]},this);this._rendererFields=g.filter(b,u.isDefined)}},_hasSizeDiff:function(a){var b=Number.MAX_VALUE,c=-Number.MAX_VALUE,f,d;g.forEach(a.infos,function(a){if(d=a.symbol){f=0;switch(d.type){case "simplemarkersymbol":f=d.size;break;case "picturemarkersymbol":f=
(d.width+d.height)/2;break;case "simplelinesymbol":case "cartographiclinesymbol":f=d.width;break;case "simplefillsymbol":case "picturefillsymbol":f=d.outline&&d.outline.width}f&&(b=Math.min(b,f),c=Math.max(c,f))}});return b!==Number.MAX_VALUE&&c!==-Number.MAX_VALUE&&1<Math.abs(c-b)},getOrderByFields:function(){var a=this.orderByFields||this._orderBy;return this.supportsAdvancedQueries&&a?g.filter(a,function(a){a=a.split(" ")[0];return!!this._getField(a,!0)},this):null},_getField:function(a,b){var c=
this.fields;if(!c||0===c.length)return null;var f;b&&(a=a.toLowerCase());g.some(c,function(c){var d=!1;(d=b?c&&c.name.toLowerCase()===a?!0:!1:c&&c.name===a?!0:!1)&&(f=c);return d});return f},_getDateOpts:function(){this._dtOpts||(this._dtOpts={properties:g.map(g.filter(this.fields,function(a){return!!(a&&"esriFieldTypeDate"===a.type)}),function(a){return a.name})});return this._dtOpts},_applyNormalized:function(a,b){a&&b&&g.forEach(a,function(a,c){a&&b[c]&&a.setGeometry(b[c])})},_editHandler:function(a,
b,c,f,d,m){d=a.addResults;var e=a.updateResults;a=a.deleteResults;var h,k,l,r,n=this.objectIdField,s=this._mode,t=this._isTable;h=this.editFieldsInfo;var u=this.getOutFields()||[],q=h&&h.creatorField,w=h&&h.creationDateField,x=h&&h.editorField,v=h&&h.editDateField;h=h&&h.realm;-1===g.indexOf(u,"*")&&(q&&-1===g.indexOf(u,q)&&(q=null),w&&-1===g.indexOf(u,w)&&(w=null),x&&-1===g.indexOf(u,x)&&(x=null),v&&-1===g.indexOf(u,v)&&(v=null));var u=w||v?(new Date).getTime():null,z=q||x?this.getUserId():void 0;
z&&h&&(z=z+"@"+h);if(d)for(h=0;h<d.length;h++)d[h]=new R(d[h]),t||(k=d[h],k.success&&(k=k.objectId,l=b[h],(r=l._graphicsLayer)&&r!==this&&r.remove(l),r=l.attributes||{},r[n]=k,q&&(r[q]=z),x&&(r[x]=z),w&&(r[w]=u),v&&(r[v]=u),l.setAttributes(r),s._init&&s.drawFeature(l)));if(e)for(h=0;h<e.length;h++)if(e[h]=new R(e[h]),!t&&(k=e[h],k.success)){k=k.objectId;l=c[k];if(b=s._getFeature(k))b.geometry!==l.geometry&&b.setGeometry(H.fromJson(l.geometry.toJson())),this._repaint(b,k);l=b||l;r=l.attributes||{};
x&&(r[x]=z);v&&(r[v]=u);l.setAttributes(r)}if(a){c=[];for(h=0;h<a.length;h++)if(a[h]=new R(a[h]),!t&&(k=a[h],k.success&&(k=k.objectId,l=s._getFeature(k))))this._unSelectFeatureIIf(k,s)&&c.push(l),l._count=0,s._removeFeatureIIf(k);if(0<c.length)this.onSelectionComplete(c,aa.SELECTION_SUBTRACT)}this._resolve([d,e,a],"onEditsComplete",f,m)},_sendAttachment:function(a,b,c,f,d){var m=this;return v({url:this._url.path+"/"+b+"/"+("add"===a?"addAttachment":"updateAttachment"),form:c,content:h.mixin(this._url.query,
{f:"json",token:this._getToken()||void 0}),callbackParamName:"callback.html",handleAs:"json"}).addCallback(function(c){var d="add"===a?"onAddAttachmentComplete":"onUpdateAttachmentComplete";c=new R(c["add"===a?"addAttachmentResult":"updateAttachmentResult"]);c.attachmentId=c.objectId;c.objectId=b;m._resolve([c],d,f);return c}).addErrback(function(a){m._resolve([a],null,d,null,!0)})},_repaint:function(a,b,c){b=u.isDefined(b)?b:a.attributes[this.objectIdField];(!(b in this._selectedFeatures)||!this._selectionSymbol)&&
a.setSymbol(a.symbol,c)},_getKind:function(a){var b=this._trackManager;return b?b.isLatestObservation(a)?1:0:0}});h.mixin(aa,{MODE_SNAPSHOT:0,MODE_ONDEMAND:1,MODE_SELECTION:2,SELECTION_NEW:3,SELECTION_ADD:4,SELECTION_SUBTRACT:5,MODE_AUTO:6,MODE_STREAM:7,POPUP_NONE:"esriServerHTMLPopupTypeNone",POPUP_HTML_TEXT:"esriServerHTMLPopupTypeAsHTMLText",POPUP_URL:"esriServerHTMLPopupTypeAsURL"});M._createWrappers(aa);a("extend-esri")&&h.setObject("layers.FeatureLayer",aa,r);return aa})},"esri/renderers/SimpleRenderer":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../symbols/jsonUtils ./Renderer".split(" "),
function(l,n,k,q,h,g,e){l=l(e,{declaredClass:"esri.renderer.SimpleRenderer",constructor:function(d){if(d&&!d.declaredClass){var b=d;this.symbol=(d=b.symbol)&&(d.declaredClass?d:g.fromJson(d));this.label=b.label;this.description=b.description}else this.symbol=d},getSymbol:function(d){return this.symbol},toJson:function(){var d=n.mixin(this.inherited(arguments),{type:"simple",label:this.label,description:this.description,symbol:this.symbol&&this.symbol.toJson()});return h.fixJson(d)}});k("extend-esri")&&
n.setObject("renderer.SimpleRenderer",l,q);return l})},"esri/renderers/Renderer":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has dojox/gfx/_base ../kernel ../Color".split(" "),function(l,n,k,q,h,g,e){l=l(null,{declaredClass:"esri.renderer.Renderer",constructor:function(d){if(d&&!d.declaredClass){this.rotationInfo=d.rotationInfo;if(!this.rotationInfo){var b=d.rotationType,a=d.rotationExpression;if(b||a)this.rotationInfo={type:b,expression:a}}this.setRotationInfo(this.rotationInfo);
if(b=d.proportionalSymbolInfo)b.minSize&&(b.minSize=h.pt2px(b.minSize)),b.maxSize&&(b.maxSize=h.pt2px(b.maxSize));this.setProportionalSymbolInfo(b);var c=d.colorInfo;c&&(k.forEach(c.colors,function(a,b){n.isArray(a)&&(c.colors[b]=e.toDojoColor(a))}),k.forEach(c.stops,function(a,b){a.color&&n.isArray(a.color)&&(c.stops[b].color=e.toDojoColor(a.color))}));this.setColorInfo(c);this.setOpacityInfo(d.opacityInfo)}this.getSymbol=n.hitch(this,this.getSymbol)},getSymbol:function(d){},setRotationInfo:function(d){if((d=
this.rotationInfo="string"===typeof d?{field:d}:d)&&d.expression&&!d.field){var b=d.expression.match(this.rotationRE);b&&b[1]&&(d.field=b[1])}return this},rotationRE:/^\[([^\]]+)\]$/i,getRotationAngle:function(d){var b=this.rotationInfo,a="arithmetic"===b.type,b=b.field,c=d.attributes,f=0;b&&(n.isFunction(b)?f=b.apply(this,arguments):c&&(f=c[b]||0),f=(f+(a?-90:0))*(a?-1:1));return f},setProportionalSymbolInfo:function(d){this.proportionalSymbolInfo=d;return this},getSize:function(d,b){var a=d.attributes,
c=this.proportionalSymbolInfo,f=c&&c.field,m=0,e="number"===typeof d?d:null;if(f){var g=c.minSize,h=c.maxSize,k=c.minDataValue,l=c.maxDataValue,q=c.valueUnit||"unknown",y=c.valueRepresentation,c=c.normalizationField,w=a?parseFloat(a[c]):void 0,c=b&&b.shape;"number"!==typeof e&&(n.isFunction(f)?e=f.apply(this,arguments):a&&(e=a[f]||0));isNaN(w)||(e/=w);if(null!=g&&null!=h&&null!=k&&null!=l)m=e<=k?g:e>=l?h:g+(e-k)/(l-k)*(h-g);else if("unknown"===q)null!=g&&null!=k&&(g&&k?(e/=k,m="circle"===c?2*Math.sqrt(e*
Math.pow(g/2,2)):"square"===c||"diamond"===c||"image"===c?Math.sqrt(e*Math.pow(g,2)):e*g):m=e+(g||k),m=m<g?g:m,null!=h&&m>h&&(m=h));else{a=(b&&b.resolution?b.resolution:d.getLayer().getMap().getResolutionInMeters())*this._meterIn[q];if("area"===y)m=Math.sqrt(e/Math.PI)/a,m*=2;else if(m=e/a,"radius"===y||"distance"===y)m*=2;null!=g&&m<g&&(m=g);null!=h&&m>h&&(m=h)}}return m=isNaN(m)?0:m},setColorInfo:function(d){if(this.colorInfo=d)k.forEach(d.colors,function(b,a){n.isArray(b)&&(d.colors[a]=new e(b))}),
k.forEach(d.stops,function(b,a){b.color&&n.isArray(b.color)&&(d.stops[a].color=new e(b.color))});this._ipDataForColors=this._interpolateData(d);return this},getColor:function(d){return this._getColorComponent(d,this.colorInfo)},setOpacityInfo:function(d){this.opacityInfo=d;this._ipDataForOpac=this._interpolateData(d);return this},getOpacity:function(d){return this._getColorComponent(d,this.opacityInfo,!0)},_getColorComponent:function(d,b,a){var c=d.attributes,f=b&&b.field,m="number"===typeof d?d:
null,e;f&&(e=b.normalizationField,e=c?parseFloat(c[e]):void 0,"number"!==typeof m&&(n.isFunction(f)?m=f.apply(this,arguments):c&&(m=c[f]||0)),isNaN(e)||(m/=e),e=a?this._getOpacity(m):this._getColor(m));return e},_interpolateData:function(d){var b;if(d)if(d.colors||d.opacityValues){var a=(d.colors||d.opacityValues).length,c=d.minDataValue,f=(d.maxDataValue-c)/(a-1);b=[];for(d=0;d<a;d++)b[d]=c+d*f}else d.stops&&(b=k.map(d.stops,function(a){return a.value}));return b},_getOpacity:function(d){d=this._lookupData(d,
this._ipDataForOpac);var b=this.opacityInfo,a;if(d){var c=d[0];a=d[1];c===a?a=this._getOpacValue(b,c):(c=this._getOpacValue(b,c),b=this._getOpacValue(b,a),a=c+(b-c)*d[2])}return a},_getOpacValue:function(d,b){return d.opacityValues?d.opacityValues[b]:d.stops[b].opacity},_getColor:function(d){d=this._lookupData(d,this._ipDataForColors);var b=this.colorInfo,a;if(d){a=d[0];var c=d[1];a=a===c?this._getColorObj(b,a):e.blendColors(this._getColorObj(b,a),this._getColorObj(b,c),d[2])}return a},_getColorObj:function(d,
b){return d.colors?d.colors[b]:d.stops[b].color},_lookupData:function(d,b){var a;if(b){var c=0,f=b.length-1;k.some(b,function(a,b){if(d<a)return f=b,!0;c=b;return!1});a=[c,f,(d-b[c])/(b[f]-b[c])]}return a},_meterIn:{inches:39.3701,feet:3.28084,yards:1.09361,miles:6.21371E-4,"nautical-miles":5.39957E-4,millimeters:1E3,centimeters:100,decimeters:10,meters:1,kilometers:0.001,"decimal-degrees":180/20015077},toJson:function(){var d=this.proportionalSymbolInfo,b,a=this.colorInfo,c=this.opacityInfo,f=this.rotationInfo;
b=f&&f.field;var m=f&&(f.expression||b&&(n.isFunction(b)?b:"["+b+"]"));a&&(a=n.mixin({},a),a.colors&&(a.colors=k.map(a.colors,function(a){return n.isArray(a)?n.clone(a):e.toJsonColor(a)})),a.stops&&(a.stops=k.map(a.stops,function(a){a=n.mixin({},a);a.color&&(a.color=n.isArray(a.color)?n.clone(a.color):e.toJsonColor(a.color));return a})));c&&(c=n.mixin({},c),c.opacityValues&&(c.opacityValues=c.opacityValues.slice(0)),c.stops&&(c.stops=k.map(c.stops,function(a){return n.mixin({},a)})));if(d&&(d=n.mixin({},
d),d.minSize&&(d.minSize=h.px2pt(d.minSize)),d.maxSize&&(d.maxSize=h.px2pt(d.maxSize)),b=d.legendOptions))if(d.legendOptions=n.mixin({},b),b=b.customValues)d.legendOptions.customValues=b.slice(0);return{rotationType:m&&(f.type||"geographic"),rotationExpression:m,colorInfo:a,opacityInfo:c,proportionalSymbolInfo:d}}});q("extend-esri")&&n.setObject("renderer.Renderer",l,g);return l})},"esri/renderers/UniqueValueRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../symbols/jsonUtils ./Renderer".split(" "),
function(l,n,k,q,h,g,e,d){l=l(d,{declaredClass:"esri.renderer.UniqueValueRenderer",constructor:function(b,a,c,f,d){this.values=[];this._symbols={};this.infos=[];b&&!b.declaredClass?(a=b,this.defaultSymbol=(b=a.defaultSymbol)&&(b.declaredClass?b:e.fromJson(b)),this.attributeField=a.field1,this.attributeField2=a.field2,this.attributeField3=a.field3,this.fieldDelimiter=a.fieldDelimiter,this.defaultLabel=a.defaultLabel,n.forEach(a.uniqueValueInfos,this._addValueInfo,this)):(this.defaultSymbol=b,this.attributeField=
a,this.attributeField2=c,this.attributeField3=f,this.fieldDelimiter=d);this._multiple=!!this.attributeField2},addValue:function(b,a){var c=k.isObject(b)?b:{value:b,symbol:a};this._addValueInfo(c)},removeValue:function(b){var a=n.indexOf(this.values,b);-1!==a&&(this.values.splice(a,1),delete this._symbols[b],this.infos.splice(a,1))},getUniqueValueInfo:function(b){var a=this.attributeField,c=b.attributes,f,d;this._multiple?(b=this.attributeField2,f=this.attributeField3,d=[],a&&d.push(c[a]),b&&d.push(c[b]),
f&&d.push(c[f]),a=d.join(this.fieldDelimiter||"")):a=k.isFunction(a)?a(b):c[a];return this._symbols[a]},getSymbol:function(b){return(b=this.getUniqueValueInfo(b))&&b.symbol||this.defaultSymbol},_addValueInfo:function(b){var a=b.value;this.values.push(a);this.infos.push(b);var c=b.symbol;c&&!c.declaredClass&&(b.symbol=e.fromJson(c));this._symbols[a]=b},toJson:function(){var b=g.fixJson,a=k.mixin(this.inherited(arguments),{type:"uniqueValue",field1:this.attributeField,field2:this.attributeField2,field3:this.attributeField3,
fieldDelimiter:this.fieldDelimiter,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.toJson(),defaultLabel:this.defaultLabel,uniqueValueInfos:n.map(this.infos||[],function(a){a=k.mixin({},a);a.symbol=a.symbol&&a.symbol.toJson();a.value+="";return b(a)})});return b(a)}});q("extend-esri")&&k.setObject("renderer.UniqueValueRenderer",l,h);return l})},"esri/renderers/jsonUtils":function(){define("dojo/_base/lang dojo/has ../kernel ../Color ./SimpleRenderer ./UniqueValueRenderer ./ClassBreaksRenderer ./TimeClassBreaksAger ./TimeRampAger ./TemporalRenderer".split(" "),
function(l,n,k,q,h,g,e,d,b,a){var c={fromJson:function(a){var b;switch(a.type||""){case "simple":b=new h(a);break;case "uniqueValue":b=new g(a);break;case "classBreaks":b=new e(a);break;case "temporal":b=this._temporalFromJson(a)}return b},_temporalFromJson:function(b){var c,d,e;b=b||{};c=this.fromJson(b.observationRenderer);d=b.latestObservationRenderer?this.fromJson(b.latestObservationRenderer):null;e=b.trackRenderer?this.fromJson(b.trackRenderer):null;b=this._agerFromJson(b.observationAger);return new a(c,
d,e,b)},_agerFromJson:function(a){var b;a=a||{};a.colorRange||a.sizeRange||a.alphaRange?b=this._timeRampFromJson(a):a.agerClassBreakInfos&&(b=this._timeClassBreaksFromJson(a));return b},_timeRampFromJson:function(a){var c,d,e;a.colorRange&&1<a.colorRange.length&&(c=[q.toDojoColor(a.colorRange[0]),q.toDojoColor(a.colorRange[1])]);a.sizeRange&&1<a.sizeRange.length&&(d=[a.sizeRange[0],a.sizeRange[1]]);a.alphaRange&&1<a.alphaRange.length&&(e=[a.alphaRange[0]/255,a.alphaRange[1]/255]);return new b(c,d,
e)},_timeClassBreaksFromJson:function(a){var b=a.agerClassBreakInfos,c,e,g=[],h;c=d.UNIT_DAYS;switch(a.timeUnits){case "esriTimeUnitsSeconds":c=d.UNIT_SECONDS;break;case "esriTimeUnitsMilliseconds":c=d.UNIT_MILLISECONDS;break;case "esriTimeUnitsHours":c=d.UNIT_HOURS;break;case "esriTimeUnitsMinutes":c=d.UNIT_MINUTES;break;case "esriTimeUnitsMonths":c=d.UNIT_MONTHS;break;case "esriTimeUnitsWeeks":c=d.UNIT_WEEKS;break;case "esriTimeUnitsYears":c=d.UNIT_YEARS}for(h=0;h<b.length;h+=1)a=b[h],e={minAge:0,
maxAge:a.oldestAge||Infinity},a.color&&(e.color=q.toDojoColor(a.color)),a.alpha&&(e.alpha=a.alpha/255),e.size=a.size,g[h]=e;return new d(g,c)}};n("extend-esri")&&l.mixin(l.getObject("renderer",!0,k),c);return c})},"esri/renderers/ClassBreaksRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../symbols/jsonUtils ./Renderer".split(" "),function(l,n,k,q,h,g,e,d){l=l(d,{declaredClass:"esri.renderer.ClassBreaksRenderer",constructor:function(b,a){this.breaks=
[];this._symbols={};this.infos=[];this.isMaxInclusive=!0;if(b&&!b.declaredClass){var c=b;this.attributeField=c.field;this.defaultSymbol=(b=c.defaultSymbol)&&(b.declaredClass?b:e.fromJson(b));this.backgroundFillSymbol=(b=c.backgroundFillSymbol)&&(b.declaredClass?b:e.fromJson(b));this._copy(["defaultLabel","classificationMethod:rest","normalizationType:rest","normalizationField","normalizationTotal"],c,this);var f=c.minValue;(c=c.classBreakInfos)&&(c[0]&&g.isDefined(c[0].classMaxValue))&&n.forEach(c,
function(a){var b=a.classMaxValue;a.minValue=f;f=a.maxValue=b},this);n.forEach(c,this._addBreakInfo,this)}else this.defaultSymbol=b,this.attributeField=a},addBreak:function(b,a,c){b=k.isObject(b)?b:{minValue:b,maxValue:a,symbol:c};this._addBreakInfo(b)},removeBreak:function(b,a){var c,f=this.breaks,d,e=f.length,g=this._symbols;for(d=0;d<e;d++)if(c=f[d],c[0]==b&&c[1]==a){f.splice(d,1);delete g[b+"-"+a];this.infos.splice(d,1);break}},clearBreaks:function(){this.breaks=[];this._symbols={};this.infos=
[]},getBreakIndex:function(b){var a=this.attributeField,c=b.attributes,f=this.breaks,d=f.length,e=this.isMaxInclusive;if(k.isFunction(a))b=a(b);else{b=parseFloat(c[a]);var a=this.normalizationType,g;a&&(g=parseFloat(this.normalizationTotal),c=parseFloat(c[this.normalizationField]),"log"===a?b=Math.log(b)*Math.LOG10E:"percent-of-total"===a&&!isNaN(g)?b=100*(b/g):"field"===a&&!isNaN(c)&&(b/=c))}for(c=0;c<d;c++)if(a=f[c],a[0]<=b&&(e?b<=a[1]:b<a[1]))return c;return-1},getBreakInfo:function(b){b=this.getBreakIndex(b);
return-1!==b?this.infos[b]:null},getSymbol:function(b){return(b=this.breaks[this.getBreakIndex(b)])?this._symbols[b[0]+"-"+b[1]]:this.defaultSymbol},setMaxInclusive:function(b){this.isMaxInclusive=b},_normalizationTypeEnums:[["field","esriNormalizeByField"],["log","esriNormalizeByLog"],["percent-of-total","esriNormalizeByPercentOfTotal"]],_classificationMethodEnums:[["natural-breaks","esriClassifyNaturalBreaks"],["equal-interval","esriClassifyEqualInterval"],["quantile","esriClassifyQuantile"],["standard-deviation",
"esriClassifyStandardDeviation"],["geometrical-interval","esriClassifyGeometricalInterval"]],_copy:function(b,a,c){n.forEach(b,function(b){var d=b.split(":"),e,g,h;1<d.length&&(b=d[0],e=this["_"+b+"Enums"],"rest"===d[1]?(g="1",h="0"):"sdk"===d[1]&&(g="0",h="1"));d=a[b];if(void 0!==d&&(c[b]=d,e&&g)){var k,l=e.length;for(k=0;k<l;k++)if(e[k][g]===d){c[b]=e[k][h];break}}},this)},_addBreakInfo:function(b){var a=b.minValue,c=b.maxValue;this.breaks.push([a,c]);this.infos.push(b);var f=b.symbol;f&&!f.declaredClass&&
(b.symbol=e.fromJson(f));this._symbols[a+"-"+c]=b.symbol},toJson:function(){var b=this.infos||[],a=g.fixJson,c=b[0]&&b[0].minValue,f=this.backgroundFillSymbol,b=k.mixin(this.inherited(arguments),{type:"classBreaks",field:this.attributeField,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.toJson(),backgroundFillSymbol:f&&f.toJson(),minValue:-Infinity===c?-Number.MAX_VALUE:c,classBreakInfos:n.map(b,function(b){b=k.mixin({},b);b.symbol=b.symbol&&b.symbol.toJson();b.classMaxValue=Infinity===b.maxValue?
Number.MAX_VALUE:b.maxValue;delete b.minValue;delete b.maxValue;return a(b)})});this._copy(["defaultLabel","classificationMethod:sdk","normalizationType:sdk","normalizationField","normalizationTotal"],this,b);return a(b)}});q("extend-esri")&&k.setObject("renderer.ClassBreaksRenderer",l,h);return l})},"esri/renderers/TimeClassBreaksAger":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has dojo/date ../kernel ../lang ../symbols/jsonUtils ../Color ./SymbolAger".split(" "),
function(l,n,k,q,h,g,e,d,b,a){var c=l(a,{declaredClass:"esri.renderer.TimeClassBreaksAger",constructor:function(a,b){this.infos=a;this.timeUnits=b||"day";a.sort(function(a,b){return a.minAge<b.minAge?-1:a.minAge>b.minAge?1:0})},getAgedSymbol:function(a,b){var c=b.getLayer(),g=b.attributes,k=e.isDefined;a=d.fromJson(a.toJson());var l=c._map.timeExtent.endTime;if(!l)return a;var q=h.difference(new Date(g[c._startTimeField]),l,this.timeUnits);n.some(this.infos,function(b){if(q>=b.minAge&&q<=b.maxAge){var c=
b.color,d=b.size;b=b.alpha;c&&a.setColor(c);k(d)&&this._setSymbolSize(a,d);k(b)&&a.color&&(a.color.a=b);return!0}},this);return a},toJson:function(){var a={agerClassBreakInfos:[]},c,d,e;a.timeUnits=this._getRestUnits(this.timeUnits);for(c=0;c<this.infos.length;c+=1)d=this.infos[c],e={},e.oldestAge=Infinity===d.maxAge?null:d.maxAge,e.size=d.size,d.color&&(e.color=b.toJsonColor(d.color)),d.alpha&&(e.alpha=Math.round(255*d.alpha)),a.agerClassBreakInfos[c]=e;return a},_getRestUnits:function(a){var b=
"esriTimeUnitsDays";switch(a){case c.UNIT_SECONDS:b="esriTimeUnitsSeconds";break;case c.UNIT_MILLISECONDS:b="esriTimeUnitsMilliseconds";break;case c.UNIT_HOURS:b="esriTimeUnitsHours";break;case c.UNIT_MINUTES:b="esriTimeUnitsMinutes";break;case c.UNIT_MONTHS:b="esriTimeUnitsMonths";break;case c.UNIT_WEEKS:b="esriTimeUnitsWeeks";break;case c.UNIT_YEARS:b="esriTimeUnitsYears"}return b}});k.mixin(c,{UNIT_DAYS:"day",UNIT_HOURS:"hour",UNIT_MILLISECONDS:"millisecond",UNIT_MINUTES:"minute",UNIT_MONTHS:"month",
UNIT_SECONDS:"second",UNIT_WEEKS:"week",UNIT_YEARS:"year"});q("extend-esri")&&k.setObject("renderer.TimeClassBreaksAger",c,g);return c})},"esri/renderers/SymbolAger":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(l,n,k,q){l=l(null,{declaredClass:"esri.renderer.SymbolAger",getAgedSymbol:function(h,g){},_setSymbolSize:function(h,g){switch(h.type){case "simplemarkersymbol":h.setSize(g);break;case "picturemarkersymbol":h.setWidth(g);h.setHeight(g);break;case "simplelinesymbol":case "cartographiclinesymbol":h.setWidth(g);
break;case "simplefillsymbol":case "picturefillsymbol":h.outline&&h.outline.setWidth(g)}}});k("extend-esri")&&n.setObject("renderer.SymbolAger",l,q);return l})},"esri/renderers/TimeRampAger":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has ../kernel ../symbols/jsonUtils ../Color ./SymbolAger".split(" "),function(l,n,k,q,h,g,e,d){l=l(d,{declaredClass:"esri.renderer.TimeRampAger",constructor:function(b,a,c){this.colorRange=b;this.sizeRange=a;this.alphaRange=c},getAgedSymbol:function(b,
a){var c=a.getLayer(),f=a.attributes;b=g.fromJson(b.toJson());var d=c._map.timeExtent,e=d.startTime,d=d.endTime;if(!e||!d)return b;e=e.getTime();d=d.getTime();c=new Date(f[c._startTimeField]);c=c.getTime();c<e&&(c=e);e=d===e?1:(c-e)/(d-e);if(c=this.sizeRange)f=c[0],d=c[1],c=Math.abs(d-f)*e,this._setSymbolSize(b,f<d?f+c:f-c);if(c=this.colorRange){var d=c[0],h=c[1],l=Math.round,f=new k,n=d.r,q=h.r,c=Math.abs(q-n)*e;f.r=l(n<q?n+c:n-c);n=d.g;q=h.g;c=Math.abs(q-n)*e;f.g=l(n<q?n+c:n-c);n=d.b;q=h.b;c=Math.abs(q-
n)*e;f.b=l(n<q?n+c:n-c);d=d.a;h=h.a;c=Math.abs(h-d)*e;f.a=d<h?d+c:d-c;b.setColor(f)}f=b.color;if((c=this.alphaRange)&&f)d=c[0],h=c[1],c=Math.abs(h-d)*e,f.a=d<h?d+c:d-c;return b},toJson:function(){var b={};this.sizeRange&&(b.sizeRange=this.sizeRange);this.colorRange&&(b.colorRange=[e.toJsonColor(this.colorRange[0]),e.toJsonColor(this.colorRange[1])]);this.alphaRange&&(b.alphaRange=[Math.round(255*this.alphaRange[0]),Math.round(255*this.alphaRange[1])]);return b}});q("extend-esri")&&n.setObject("renderer.TimeRampAger",
l,h);return l})},"esri/renderers/TemporalRenderer":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","./Renderer"],function(l,n,k,q,h){l=l(h,{declaredClass:"esri.renderer.TemporalRenderer",constructor:function(g,e,d,b){this.observationRenderer=g;this.latestObservationRenderer=e;this.trackRenderer=d;this.observationAger=b},getSymbol:function(g){var e=g.getLayer(),d=this.getObservationRenderer(g),b=d&&d.getSymbol(g),a=this.observationAger;e.timeInfo&&(e._map.timeExtent&&
d===this.observationRenderer&&a&&b)&&(b=a.getAgedSymbol(b,g));return b},getObservationRenderer:function(g){return 0===g.getLayer()._getKind(g)?this.observationRenderer:this.latestObservationRenderer||this.observationRenderer},toJson:function(){var g={type:"temporal"};g.observationRenderer=this.observationRenderer.toJson();this.latestObservationRenderer&&(g.latestObservationRenderer=this.latestObservationRenderer.toJson());this.trackRenderer&&(g.trackRenderer=this.trackRenderer.toJson());this.observationAger&&
(g.observationAger=this.observationAger.toJson());return g}});k("extend-esri")&&n.setObject("renderer.TemporalRenderer",l,q);return l})},"esri/tasks/QueryTask":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/Deferred dojo/_base/json dojo/has ../kernel ../request ../deferredUtils ../geometry/Extent ../geometry/normalizeUtils ./Task ./FeatureSet".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m){l=l(f,{declaredClass:"esri.tasks.QueryTask",_eventMap:{complete:["featureSet"],
"execute-for-count-complete":["count"],"execute-for-ids-complete":["objectIds"],"execute-relationship-query-complete":["featureSets"]},constructor:function(a,b){this._handler=n.hitch(this,this._handler);this._relationshipQueryHandler=n.hitch(this,this._relationshipQueryHandler);this._executeForIdsHandler=n.hitch(this,this._executeForIdsHandler);this._countHandler=n.hitch(this,this._countHandler);this._extentHandler=n.hitch(this,this._extentHandler);this.source=b&&b.source;this.gdbVersion=b&&b.gdbVersion;
this.registerConnectEvents()},__msigns:[{n:"execute",c:4,a:[{i:0,p:["geometry"]}],e:2},{n:"executeForIds",c:3,a:[{i:0,p:["geometry"]}],e:2},{n:"executeForCount",c:3,a:[{i:0,p:["geometry"]}],e:2},{n:"executeForExtent",c:3,a:[{i:0,p:["geometry"]}],e:2}],onComplete:function(){},onExecuteRelationshipQueryComplete:function(){},onExecuteForIdsComplete:function(){},onExecuteForCountComplete:function(){},onExecuteForExtentComplete:function(){},execute:function(a,b,c,f,m){var e=m.assembly;a=this._encode(n.mixin({},
this._url.query,{f:"json"},a.toJson(e&&e[0])));var g=this._handler,k=this._errorHandler;this.source&&(e={source:this.source.toJson()},a.layer=h.toJson(e));this.gdbVersion&&(a.gdbVersion=this.gdbVersion);return d({url:this._url.path+"/query",content:a,callbackParamName:"callback",load:function(a,f){g(a,f,b,c,m.dfd)},error:function(a){k(a,c,m.dfd)},callbackSuffix:f},this.requestOptions)},executeRelationshipQuery:function(a,c,f){a=this._encode(n.mixin({},this._url.query,{f:"json"},a.toJson()));var m=
this._relationshipQueryHandler,e=this._errorHandler;this.gdbVersion&&(a.gdbVersion=this.gdbVersion);var g=new q(b._dfdCanceller);g._pendingDfd=d({url:this._url.path+"/queryRelatedRecords",content:a,callbackParamName:"callback",load:function(a,b){m(a,b,c,f,g)},error:function(a){e(a,f,g)}},this.requestOptions);return g},executeForIds:function(a,b,c,f){var m=f.assembly;a=this._encode(n.mixin({},this._url.query,{f:"json",returnIdsOnly:!0},a.toJson(m&&m[0])));var e=this._executeForIdsHandler,g=this._errorHandler;
this.source&&(m={source:this.source.toJson()},a.layer=h.toJson(m));this.gdbVersion&&(a.gdbVersion=this.gdbVersion);return d({url:this._url.path+"/query",content:a,callbackParamName:"callback",load:function(a,d){e(a,d,b,c,f.dfd)},error:function(a){g(a,c,f.dfd)}},this.requestOptions)},executeForCount:function(a,b,c,f){var m=f.assembly;a=this._encode(n.mixin({},this._url.query,{f:"json",returnIdsOnly:!0,returnCountOnly:!0},a.toJson(m&&m[0])));var e=this._countHandler,g=this._errorHandler;this.source&&
(m={source:this.source.toJson()},a.layer=h.toJson(m));this.gdbVersion&&(a.gdbVersion=this.gdbVersion);return d({url:this._url.path+"/query",content:a,callbackParamName:"callback",load:function(a,d){e(a,d,b,c,f.dfd)},error:function(a){g(a,c,f.dfd)}},this.requestOptions)},executeForExtent:function(a,b,c,f){var m=f.assembly;a=this._encode(n.mixin({},this._url.query,{f:"json",returnExtentOnly:!0,returnCountOnly:!0},a.toJson(m&&m[0])));var e=this._extentHandler,g=this._errorHandler;this.source&&(m={source:this.source.toJson()},
a.layer=h.toJson(m));this.gdbVersion&&(a.gdbVersion=this.gdbVersion);return d({url:this._url.path+"/query",content:a,callbackParamName:"callback",load:function(a,d){e(a,d,b,c,f.dfd)},error:function(a){g(a,c,f.dfd)}},this.requestOptions)},_handler:function(a,b,c,f,d){try{var e=new m(a);this._successHandler([e],"onComplete",c,d)}catch(g){this._errorHandler(g,f,d)}},_relationshipQueryHandler:function(a,b,c,f,d){try{var e=a.geometryType,g=a.spatialReference,h={};k.forEach(a.relatedRecordGroups,function(a){var b=
{};b.geometryType=e;b.spatialReference=g;b.features=a.relatedRecords;b=new m(b);if(null!=a.objectId)h[a.objectId]=b;else for(var c in a)a.hasOwnProperty(c)&&"relatedRecords"!==c&&(h[a[c]]=b)});this._successHandler([h],"onExecuteRelationshipQueryComplete",c,d)}catch(l){this._errorHandler(l,f,d)}},_executeForIdsHandler:function(a,b,c,f,d){try{this._successHandler([a.objectIds],"onExecuteForIdsComplete",c,d)}catch(m){this._errorHandler(m,f,d)}},_countHandler:function(a,b,c,f,d){try{var m,e=a.features,
g=a.objectIds;if(g)m=g.length;else{if(e)throw Error("Unable to perform query. Please check your parameters.");m=a.count}this._successHandler([m],"onExecuteForCountComplete",c,d)}catch(h){this._errorHandler(h,f,d)}},_extentHandler:function(b,c,f,d,m){try{b.extent&&(b.extent=new a(b.extent)),this._successHandler([b],"onExecuteForExtentComplete",f,m)}catch(e){this._errorHandler(e,d,m)}}});c._createWrappers(l);g("extend-esri")&&n.setObject("tasks.QueryTask",l,e);return l})},"esri/geometry/normalizeUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/_base/Deferred dojo/has ../kernel ../config ../deferredUtils ./Polyline ./Polygon ./webMercatorUtils ./jsonUtils".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c){function f(a,b){return Math.ceil((a-b)/(2*b))}function m(a,b){var c=a.paths||a.rings,f,d,m=c.length,e;for(f=0;f<m;f++){e=c[f].length;for(d=0;d<e;d++){var g=a.getPoint(f,d);a.setPoint(f,d,g.offset(b,0))}}return a}function s(a,c){if(!(a instanceof d||a instanceof b))throw console.error("_straightLineDensify: the input geometry is neither polyline nor polygon"),Error("_straightLineDensify: the input geometry is neither polyline nor polygon");var f=a instanceof d,m=[],
e;l.forEach(f?a.paths:a.rings,function(a){m.push(e=[]);e.push([a[0][0],a[0][1]]);var b,f,d,g,h,k,l,r,n,t,s,q;for(h=0;h<a.length-1;h++){b=a[h][0];f=a[h][1];d=a[h+1][0];g=a[h+1][1];l=Math.sqrt((d-b)*(d-b)+(g-f)*(g-f));r=(g-f)/l;n=(d-b)/l;t=l/c;if(1<t){for(k=1;k<=t-1;k++)q=k*c,s=n*q+b,q=r*q+f,e.push([s,q]);k=(l+Math.floor(t-1)*c)/2;s=n*k+b;q=r*k+f;e.push([s,q])}e.push([d,g])}});return f?new d({paths:m,spatialReference:a.spatialReference}):new b({rings:m,spatialReference:a.spatialReference})}function t(b,
c,f){c&&(b=s(b,1E6),b=a.webMercatorToGeographic(b,!0));f&&(b=m(b,f));return b}function r(a,b,c){var d=a.x||a[0],m;d>b?(m=f(d,b),a.x?a=a.offset(m*-2*b,0):a[0]=d+m*-2*b):d<c&&(m=f(d,c),a.x?a=a.offset(m*-2*c,0):a[0]=d+m*-2*c);return a}function u(a,b){var c=-1;l.forEach(b.cutIndexes,function(d,m){var e=b.geometries[m];l.forEach(e.rings||e.paths,function(a,b){l.some(a,function(c){if(!(180>c[0])){c=0;var d,m=a.length,g;for(d=0;d<m;d++)g=a[d][0],c=g>c?g:c;c=Number(c.toFixed(9));c=-360*f(c,180);m=a.length;
for(d=0;d<m;d++)g=e.getPoint(b,d),e.setPoint(b,d,g.offset(c,0))}return!0})});d===c?e.rings?l.forEach(e.rings,function(b,c){a[d]=a[d].addRing(b)}):l.forEach(e.paths,function(b,c){a[d]=a[d].addPath(b)}):(c=d,a[d]=e)});return a}function v(e,g,h,n){var s=new k;s.addCallbacks(h,n);var q=[],w=[],v,z,A,y,H,M,N,O,P=0;l.forEach(e,function(a){if(a)if(v||(v=a.spatialReference,z=v._getInfo(),y=(A=v._isWebMercator())?2.0037508342788905E7:180,H=A?-2.0037508342788905E7:-180,M=A?102100:4326,N=new d({paths:[[[y,H],
[y,y]]],spatialReference:{wkid:M}}),O=new d({paths:[[[H,H],[H,y]]],spatialReference:{wkid:M}})),z){var e=c.fromJson(a.toJson()),g=a.getExtent();"point"===a.type?q.push(r(e,y,H)):"multipoint"===a.type?(e.points=l.map(e.points,function(a){return r(a,y,H)}),q.push(e)):"extent"===a.type?(e=g._normalize(null,null,z),q.push(e.rings?new b(e):e)):g?(a=f(g.xmin,H)*2*y,e=0===a?e:m(e,a),g=g.offset(a,0),g.intersects(N)&&g.xmax!==y?(P=g.xmax>P?g.xmax:P,e=t(e,A),w.push(e),q.push("cut")):g.intersects(O)&&g.xmin!==
H?(P=g.xmax*2*y>P?g.xmax*2*y:P,e=t(e,A,360),w.push(e),q.push("cut")):q.push(e)):q.push(e)}else q.push(a);else q.push(a)});h=new d;n=f(P,y);for(var Q=-90,W=n;0<n;){var X=-180+360*n;h.addPath([[X,Q],[X,-1*Q]]);Q*=-1;n--}0<w.length&&0<W?g?g.cut(w,h,function(b){w=u(w,b);var c=[];l.forEach(q,function(b,f){if("cut"===b){var d=w.shift();e[f].rings&&1<e[f].rings.length&&d.rings.length>=e[f].rings.length?(q[f]="simplify",c.push(d)):q[f]=!0===A?a.geographicToWebMercator(d):d}});0<c.length?g.simplify(c,function(b){l.forEach(q,
function(c,f){"simplify"===c&&(q[f]=!0===A?a.geographicToWebMercator(b.shift()):b.shift())});s.callback(q)},function(a){s.errback(a)}):s.callback(q)},function(a){s.errback(a)}):s.errback(Error("esri.geometry.normalizeCentralMeridian: 'geometryService' argument is missing.")):(l.forEach(q,function(b,c){if("cut"===b){var f=w.shift();q[c]=!0===A?a.geographicToWebMercator(f):f}}),s.callback(q));return s}function A(a,b,c,f){var d=!1,m;n.isObject(a)&&a&&(n.isArray(a)?a.length&&((m=a[0]&&a[0].declaredClass)&&
-1!==m.indexOf("Graphic")?(a=l.map(a,function(a){return a.geometry}),d=a.length?!0:!1):m&&-1!==m.indexOf("esri.geometry.")&&(d=!0)):(m=a.declaredClass)&&-1!==m.indexOf("FeatureSet")?(a=l.map(a.features||[],function(a){return a.geometry}),d=a.length?!0:!1):m&&-1!==m.indexOf("esri.geometry.")&&(d=!0));d&&b.push({index:c,property:f,value:a})}function y(a,b){var c=[];l.forEach(b,function(b){var f=b.i,d=a[f];b=b.p;var m;if(n.isObject(d)&&d)if(b)if("*"===b[0])for(m in d)d.hasOwnProperty(m)&&A(d[m],c,f,
m);else l.forEach(b,function(a){A(n.getObject(a,!1,d),c,f,a)});else A(d,c,f)});return c}function w(a,b){var c=0,f={};l.forEach(b,function(b){var d=b.index,m=b.property,e=b.value,g=e.length||1,h=a.slice(c,c+g);n.isArray(e)||(h=h[0]);c+=g;delete b.value;m?(f[d]=f[d]||{},f[d][m]=h):f[d]=h});return f}var z={normalizeCentralMeridian:v,_foldCutResults:u,_prepareGeometryForCut:t,_offsetMagnitude:f,_pointNormalization:r,_updatePolyGeometry:m,_straightLineDensify:s,_createWrappers:function(a){var b=n.isObject(a)?
a.prototype:n.getObject(a+".prototype");l.forEach(b.__msigns,function(a){var c=b[a.n];b[a.n]=function(){var b=this,f=[],d,m=new k(e._dfdCanceller);a.f&&e._fixDfd(m);for(d=0;d<a.c;d++)f[d]=arguments[d];var h={dfd:m};f.push(h);var r,n=[],t;b.normalization&&!b._isTable&&(r=y(f,a.a),l.forEach(r,function(a){n=n.concat(a.value)}),n.length&&(t=v(n,g.defaults.geometryService)));t?(m._pendingDfd=t,t.addCallbacks(function(a){m.canceled||(h.assembly=w(a,r),m._pendingDfd=c.apply(b,f))},function(c){var d=b.declaredClass;
d&&-1!==d.indexOf("FeatureLayer")?b._resolve([c],null,f[a.e],m,!0):b._errorHandler(c,f[a.e],m)})):m._pendingDfd=c.apply(b,f);return m}})},_disassemble:y,_addToBucket:A,_reassemble:w};q("extend-esri")&&n.mixin(n.getObject("geometry",!0,h),z);return z})},"esri/tasks/Task":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/json dojo/has ../kernel ../deferredUtils ../urlUtils ../Evented".split(" "),function(l,n,k,q,h,g,e,d){l=l(d,{declaredClass:"esri.tasks._Task",_eventMap:{error:["error"],
complete:["result"]},constructor:function(b,a){b&&n.isString(b)&&(this._url=e.urlToObject(this.url=b));a&&a.requestOptions&&(this.requestOptions=a.requestOptions);this.normalization=!0;this._errorHandler=n.hitch(this,this._errorHandler);this.registerConnectEvents()},_useSSL:function(){var b=this._url,a=/^http:/i;this.url&&(this.url=this.url.replace(a,"https:"));b&&b.path&&(b.path=b.path.replace(a,"https:"))},_encode:function(b,a,c){var f,d,e={},g,h;for(g in b)if("declaredClass"!==g&&(f=b[g],d=typeof f,
null!==f&&void 0!==f&&"function"!==d))if(n.isArray(f)){e[g]=[];h=f.length;for(d=0;d<h;d++)e[g][d]=this._encode(f[d])}else"object"===d?f.toJson&&(d=f.toJson(c&&c[g]),"esri.tasks.FeatureSet"===f.declaredClass&&d.spatialReference&&(d.sr=d.spatialReference,delete d.spatialReference),e[g]=a?d:k.toJson(d)):e[g]=f;return e},_successHandler:function(b,a,c,f){a&&this[a].apply(this,b);c&&c.apply(null,b);f&&g._resDfd(f,b)},_errorHandler:function(b,a,c){this.onError(b);a&&a(b);c&&c.errback(b)},setNormalization:function(b){this.normalization=
b},onError:function(){}});q("extend-esri")&&(h.Task=l);return l})},"esri/tasks/FeatureSet":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../graphic ../SpatialReference ../graphicsUtils ../geometry/jsonUtils ../symbols/jsonUtils".split(" "),function(l,n,k,q,h,g,e,d,b,a,c){l=l(null,{declaredClass:"esri.tasks.FeatureSet",constructor:function(b){if(b){n.mixin(this,b);var m=this.features,g=b.spatialReference,h=a.getGeometryType(b.geometryType),g=this.spatialReference=
new d(g);this.geometryType=b.geometryType;b.fields&&(this.fields=b.fields);k.forEach(m,function(a,b){var f=a.geometry&&a.geometry.spatialReference;m[b]=new e(h&&a.geometry?new h(a.geometry):null,a.symbol&&c.fromJson(a.symbol),a.attributes);m[b].geometry&&!f&&m[b].geometry.setSpatialReference(g)})}else this.features=[]},displayFieldName:null,geometryType:null,spatialReference:null,fieldAliases:null,toJson:function(c){var d={};this.displayFieldName&&(d.displayFieldName=this.displayFieldName);this.fields&&
(d.fields=this.fields);this.spatialReference?d.spatialReference=this.spatialReference.toJson():this.features[0]&&this.features[0].geometry&&(d.spatialReference=this.features[0].geometry.spatialReference.toJson());this.features[0]&&(this.features[0].geometry&&(d.geometryType=a.getJsonType(this.features[0].geometry)),d.features=b._encodeGraphics(this.features,c));d.exceededTransferLimit=this.exceededTransferLimit;return g.fixJson(d)}});q("extend-esri")&&n.setObject("tasks.FeatureSet",l,h);return l})},
"esri/graphicsUtils":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/has","./kernel","./geometry/Extent"],function(l,n,k,q,h){var g={graphicsExtent:function(e){var d=e[0].geometry,b=d.getExtent(),a,c,f=e.length;null===b&&(b=new h(d.x,d.y,d.x,d.y,d.spatialReference));for(c=1;c<f;c++)a=(d=e[c].geometry).getExtent(),null===a&&(a=new h(d.x,d.y,d.x,d.y,d.spatialReference)),b=b.union(a);return 0>b.getWidth()&&0>b.getHeight()?null:b},getGeometries:function(e){return n.map(e,function(d){return d.geometry})},
_encodeGraphics:function(e,d){var b=[],a,c,f;n.forEach(e,function(m,e){a=m.toJson();c={};a.geometry&&(f=d&&d[e],c.geometry=f&&f.toJson()||a.geometry);a.attributes&&(c.attributes=a.attributes);b[e]=c});return b}};k("extend-esri")&&l.mixin(q,g);return g})},"esri/tasks/StatisticDefinition":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(l,n,k,q){l=l(null,{declaredClass:"esri.tasks.StatisticDefinition",toJson:function(){return{statisticType:this.statisticType,
onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount}}});k("extend-esri")&&n.setObject("tasks.StatisticDefinition",l,q);return l})},"esri/layers/Field":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ./RangeDomain ./CodedValueDomain".split(" "),function(l,n,k,q,h,g){l=l(null,{declaredClass:"esri.layers.Field",constructor:function(e){if(e&&
n.isObject(e)&&(this.name=e.name,this.type=e.type,this.alias=e.alias,this.length=e.length,this.editable=e.editable,this.nullable=e.nullable,(e=e.domain)&&n.isObject(e)))switch(e.type){case "range":this.domain=new h(e);break;case "codedValue":this.domain=new g(e)}}});k("extend-esri")&&n.setObject("layers.Field",l,q);return l})},"esri/layers/RangeDomain":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./Domain".split(" "),function(l,n,k,q,h,g){l=l([g],{declaredClass:"esri.layers.RangeDomain",
constructor:function(e){e&&n.isObject(e)&&(this.minValue=e.range[0],this.maxValue=e.range[1])},toJson:function(){var e=this.inherited(arguments);e.range=[this.minValue,this.maxValue];return h.fixJson(e)}});k("extend-esri")&&n.setObject("layers.RangeDomain",l,q);return l})},"esri/layers/Domain":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(l,n,k,q,h){l=l(null,{declaredClass:"esri.layers.Domain",constructor:function(g){g&&n.isObject(g)&&(this.name=
g.name,this.type=g.type)},toJson:function(){return h.fixJson({name:this.name,type:this.type})}});k("extend-esri")&&n.setObject("layers.Domain",l,q);return l})},"esri/layers/CodedValueDomain":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./Domain".split(" "),function(l,n,k,q,h,g){l=l([g],{declaredClass:"esri.layers.CodedValueDomain",constructor:function(e){e&&n.isObject(e)&&(this.codedValues=e.codedValues)},toJson:function(){var e=this.inherited(arguments);e.codedValues=
n.clone(this.codedValues);return h.fixJson(e)}});k("extend-esri")&&n.setObject("layers.CodedValueDomain",l,q);return l})},"esri/layers/FeatureType":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../symbols/jsonUtils ./RangeDomain ./CodedValueDomain ./InheritedDomain ./FeatureTemplate".split(" "),function(l,n,k,q,h,g,e,d,b,a,c){l=l(null,{declaredClass:"esri.layers.FeatureType",constructor:function(f){if(f&&n.isObject(f)){this.id=f.id;this.name=f.name;
var m=f.symbol;m&&(this.symbol=e.fromJson(m));var m=f.domains,g,h=this.domains={};for(g in m)if(m.hasOwnProperty(g)){var k=m[g];switch(k.type){case "range":h[g]=new d(k);break;case "codedValue":h[g]=new b(k);break;case "inherited":h[g]=new a(k)}}if(g=f.templates){m=this.templates=[];for(f=0;f<g.length;f++)m.push(new c(g[f]))}}},toJson:function(){var a={id:this.id,name:this.name,symbol:this.symbol&&this.symbol.toJson()},b,c=this.domains,d=this.templates,e=g.fixJson;if(c){var h=a.domains={};for(b in c)c.hasOwnProperty(b)&&
(h[b]=c[b]&&c[b].toJson());e(h)}d&&(a.templates=k.map(d,function(a){return a.toJson()}));return e(a)}});q("extend-esri")&&n.setObject("layers.FeatureType",l,h);return l})},"esri/layers/InheritedDomain":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","./Domain"],function(l,n,k,q,h){l=l([h],{declaredClass:"esri.layers.InheritedDomain"});k("extend-esri")&&n.setObject("layers.InheritedDomain",l,q);return l})},"esri/layers/FeatureTemplate":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../graphic".split(" "),
function(l,n,k,q,h,g){l=l(null,{declaredClass:"esri.layers.FeatureTemplate",constructor:function(e){e&&n.isObject(e)&&(this.name=e.name,this.description=e.description,this.drawingTool=e.drawingTool,e=e.prototype,this.prototype=new g(e.geometry,null,e.attributes))},toJson:function(){return h.fixJson({name:this.name,description:this.description,drawingTool:this.drawingTool,prototype:this.prototype&&this.prototype.toJson()})}});n.mixin(l,{TOOL_AUTO_COMPLETE_POLYGON:"esriFeatureEditToolAutoCompletePolygon",
TOOL_CIRCLE:"esriFeatureEditToolCircle",TOOL_ELLIPSE:"esriFeatureEditToolEllipse",TOOL_FREEHAND:"esriFeatureEditToolFreehand",TOOL_LINE:"esriFeatureEditToolLine",TOOL_NONE:"esriFeatureEditToolNone",TOOL_POINT:"esriFeatureEditToolPoint",TOOL_POLYGON:"esriFeatureEditToolPolygon",TOOL_RECTANGLE:"esriFeatureEditToolRectangle",TOOL_ARROW:"esriFeatureEditToolArrow",TOOL_TRIANGLE:"esriFeatureEditToolTriangle",TOOL_LEFT_ARROW:"esriFeatureEditToolLeftArrow",TOOL_RIGHT_ARROW:"esriFeatureEditToolRightArrow",
TOOL_UP_ARROW:"esriFeatureEditToolUpArrow",TOOL_DOWN_ARROW:"esriFeatureEditToolDownArrow"});k("extend-esri")&&n.setObject("layers.FeatureTemplate",l,q);return l})},"esri/layers/FeatureEditResult":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(l,n,k,q){l=l(null,{declaredClass:"esri.layers.FeatureEditResult",constructor:function(h){h&&n.isObject(h)&&(this.objectId=h.objectId,this.success=h.success,h.success||(h=h.error,this.error=Error(),this.error.code=h.code,
this.error.message=h.description))}});k("extend-esri")&&n.setObject("layers.FeatureEditResult",l,q);return l})},"esri/layers/LabelClass":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../symbols/TextSymbol ../symbols/ShieldLabelSymbol".split(" "),function(l,n,k,q,h,g,e){l=l(null,{declaredClass:"esri.layers.LabelClass",labelPlacement:null,labelExpression:null,useCodedValues:null,symbol:null,maxScale:0,minScale:0,where:null,proportionalSizeInfo:null,_labelPlacementLookup:{"above-center":"esriServerPointLabelPlacementAboveCenter",
"above-left":"esriServerPointLabelPlacementAboveLeft","above-right":"esriServerPointLabelPlacementAboveRight","below-center":"esriServerPointLabelPlacementBelowCenter","below-left":"esriServerPointLabelPlacementBelowLeft","below-right":"esriServerPointLabelPlacementBelowRight","center-center":"esriServerPointLabelPlacementCenterCenter","center-left":"esriServerPointLabelPlacementCenterLeft","center-right":"esriServerPointLabelPlacementCenterRight","above-after":"esriServerLinePlacementAboveAfter",
"above-along":"esriServerLinePlacementAboveAlong","above-before":"esriServerLinePlacementAboveBefore","above-start":"esriServerLinePlacementAboveStart","above-end":"esriServerLinePlacementAboveEnd","below-after":"esriServerLinePlacementBelowAfter","below-along":"esriServerLinePlacementBelowAlong","below-before":"esriServerLinePlacementBelowBefore","below-start":"esriServerLinePlacementBelowStart","below-end":"esriServerLinePlacementBelowEnd","center-after":"esriServerLinePlacementCenterAfter","center-along":"esriServerLinePlacementCenterAlong",
"center-before":"esriServerLinePlacementCenterBefore","center-start":"esriServerLinePlacementCenterStart","center-end":"esriServerLinePlacementCenterEnd","always-horizontal":"esriServerPolygonPlacementAlwaysHorizontal"},constructor:function(d){d&&(n.mixin(this,d),this._labelPlacementLookup.hasOwnProperty(this.labelPlacement)||(this.labelPlacement=h.valueOf(this._labelPlacementLookup,d.labelPlacement)),d.symbol&&(this.symbol="esriSHD"===d.symbol.type?new e(d.symbol):new g(d.symbol)))},getSymbol:function(){return this.symbol},
toJson:function(){var d={labelExpression:this.labelExpression,labelExpressionInfo:this.labelExpressionInfo&&n.clone(this.labelExpressionInfo),useCodedValues:this.useCodedValues,maxScale:this.maxScale,minScale:this.minScale,where:this.where,proportionalSizeInfo:this.proportionalSizeInfo,labelPlacement:this._labelPlacementLookup.hasOwnProperty(this.labelPlacement)?this._labelPlacementLookup[this.labelPlacement]:this.labelPlacement,symbol:this.symbol&&this.symbol.toJson()};return h.fixJson(d)}});k("extend-esri")&&
n.setObject("layers.LabelClass",l,q);return l})},"esri/symbols/ShieldLabelSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang ../urlUtils ./MarkerSymbol ./Font".split(" "),function(l,n,k,q,h,g,e,d,b){var a={url:"",width:12,height:12,angle:0,xoffset:0,yoffset:0};l=l(d,{declaredClass:"esri.symbol.ShieldLabelSymbol",type:"shieldlabelsymbol",color:[255,255,255,1],width:32,height:32,font:q.defaultFont,constructor:function(b,f,d,e,g){b?n.isString(b)?
(this.url=b,f&&(this.color=f),d&&(this.width=d),e&&(this.height=e),void 0!==g&&(this.font=g)):(this.width=q.pt2px(b.width),this.height=q.pt2px(b.height),f=b.imageData,!(9>k("ie"))&&f&&(d=this.url,this.url="data:"+(b.contentType||"image")+";base64,"+f,this.imageData=d)):n.mixin(this,a)},getStroke:function(){return null},getFill:function(){return this.color},setWidth:function(a){this.width=a;return this},setHeight:function(a){this.height=a;return this},setUrl:function(a){a!==this.url&&(delete this.imageData,
delete this.contentType);this.url=a;return this},setFont:function(a){this.font=a;return this},setText:function(a){this.text=a;return this},getWidth:function(){return this.width},getHeight:function(){return this.height},getShapeDescriptors:function(){return{defaultShape:{type:"image",x:-Math.round(this.width/2),y:-Math.round(this.height/2),width:this.width,height:this.height,src:this.url||""},fill:null,stroke:null}},toJson:function(){var a=this.url,f=this.imageData;if(0===a.indexOf("data:"))var d=
a,a=f,f=d.indexOf(";base64,")+8,f=d.substr(f);var a=e.getAbsoluteUrl(a),d=q.px2pt(this.width),d=isNaN(d)?void 0:d,h=q.px2pt(this.height),h=isNaN(h)?void 0:h,a=g.fixJson(n.mixin(this.inherited("toJson",arguments),{type:"esriSHD",url:a,imageData:f,contentType:this.contentType,width:d,height:h}));this.font?(f=new b(this.font),a.font=f.toJson()):a.font=null;delete a.size;a.imageData||delete a.imageData;return a}});l.defaultProps=a;k("extend-esri")&&(n.setObject("symbol.ShieldLabelSymbol",l,h),h.symbol.defaultShieldLabelSymbol=
a);return l})},"esri/layers/SnapshotMode":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../SpatialReference ../tasks/query ./RenderMode".split(" "),function(l,n,k,q,h,g,e){l=l([e],{declaredClass:"esri.layers._SnapshotMode",constructor:function(d){this.featureLayer=d;this.pagination=d.queryPagination;this._featureMap={};this._drawFeatures=n.hitch(this,this._drawFeatures);this._queryErrorHandler=n.hitch(this,this._queryErrorHandler)},startup:function(){this.pagination=this.pagination&&
null!=this.featureLayer.maxRecordCount;this.featureLayer._collection?this._applyTimeFilter():this._fetchAll()},propertyChangeHandler:function(d){this._init&&(d?this.featureLayer._collection||this._fetchAll():this._applyTimeFilter())},drawFeature:function(d){var b=d.attributes[this.featureLayer.objectIdField];this._addFeatureIIf(b,d);this._incRefCount(b)},resume:function(){this.propertyChangeHandler(0)},refresh:function(){var d=this.featureLayer;d._collection?(d._fireUpdateStart(),d._refresh(!0),d._fireUpdateEnd()):
this._fetchAll()},_getRequestId:function(d){return("_"+d.name+d.layerId+d._ulid).replace(/[^a-zA-Z0-9\_]+/g,"_")},_fetchAll:function(){var d=this.featureLayer;!d._collection&&!d.suspended&&(d._fireUpdateStart(),this._clearIIf(),this._sendRequest())},_sendRequest:function(d){var b=this.map,a=this.featureLayer,c=a.getDefinitionExpression(),f=new g;f.outFields=a.getOutFields();f.where=c||"1\x3d1";f.returnGeometry=!0;f.outSpatialReference=new h(b.spatialReference.toJson());f.timeExtent=a.getTimeDefinition();
f.maxAllowableOffset=a._maxOffset;a._ts&&(f._ts=(new Date).getTime());f.orderByFields=a.supportsAdvancedQueries?a.getOrderByFields():null;f.multipatchOption=a.multipatchOption;this.pagination&&(this._start=f.start=null==d?0:d,f.num=a.maxRecordCount);var m;a._usePatch&&(m=this._getRequestId(a),this._cancelPendingRequest(null,m));a._task.execute(f,this._drawFeatures,this._queryErrorHandler,m)},_drawFeatures:function(d){this._purgeRequests();var b=d.features,a=this.featureLayer,c=a.objectIdField,f,m=
b.length,e=d.exceededTransferLimit&&!a._collection,g,h;for(f=0;f<m;f++)g=b[f],h=g.attributes[c],this._addFeatureIIf(h,g),this._incRefCount(h);this._applyTimeFilter(!0);if(!this.pagination||!e)a._fireUpdateEnd(null,d.exceededTransferLimit?{queryLimitExceeded:!0}:null);e&&(this.pagination&&this._sendRequest(this._start+a.maxRecordCount),a.onQueryLimitExceeded())},_queryErrorHandler:function(d){this._purgeRequests();var b=this.featureLayer;b._errorHandler(d);b._fireUpdateEnd(d)}});k("extend-esri")&&
n.setObject("layers._SnapshotMode",l,q);return l})},"esri/layers/RenderMode":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has dojo/io/script ../kernel".split(" "),function(l,n,k,q,h,g,e){n=n(null,{declaredClass:"esri.layers._RenderMode",constructor:function(){this._prefix="jsonp_"+(l._scopeName||"dojo")+"IoScript"},initialize:function(d){this.map=d;this._init=!0},startup:function(){},propertyChangeHandler:function(d){},destroy:function(){this._init=
!1},drawFeature:function(d){},suspend:function(){},resume:function(){},refresh:function(){},_incRefCount:function(d){(d=this._featureMap[d])&&d._count++},_decRefCount:function(d){(d=this._featureMap[d])&&d._count--},_getFeature:function(d){return this._featureMap[d]},_addFeatureIIf:function(d,b){var a=this._featureMap,c=a[d],f=this.featureLayer;c||(a[d]=b,f._add(b),b._count=0);return c||b},_removeFeatureIIf:function(d){var b=this._featureMap[d],a=this.featureLayer;if(b){if(b._count)return;delete this._featureMap[d];
a._remove(b)}return b},_clearIIf:function(){var d;d=this.featureLayer;var b=d.graphics,a=d._selectedFeatures,c=d.objectIdField;for(d=b.length-1;0<=d;d--){var f=b[d],m=f.attributes[c];m in a?f._count=1:(f._count=0,this._removeFeatureIIf(m))}},_isPending:function(d){return g[this._prefix+d]?!0:!1},_cancelPendingRequest:function(d,b){if(d=d||g[this._prefix+b])try{d.cancel(),g._validCheck(d)}catch(a){}},_purgeRequests:function(){g._validCheck(null)},_toggleVisibility:function(d){var b=this.featureLayer,
a=b.graphics,c=d?"show":"hide",f,m=a.length;d=d&&b._ager;for(f=0;f<m;f++){var e=a[f];e[c]();d&&b._repaint(e)}},_applyTimeFilter:function(d){var b=this.featureLayer;if(b.timeInfo&&!b.suspended){d||b._fireUpdateStart();var a=b._trackManager;a&&a.clearTracks();var c=b.getTimeDefinition(),f=b._getOffsettedTE(b._mapTimeExtent);f?(f=b._getTimeOverlap(c,f))?(c=b._filterByTime(b.graphics,f.startTime,f.endTime),a&&a.addFeatures(c.match),q.forEach(c.match,function(a){var c=a._shape;a.visible||(a.show(),(c=
a._shape)&&c._moveToFront());b._ager&&c&&b._repaint(a)}),q.forEach(c.noMatch,function(a){a.visible&&a.hide()})):this._toggleVisibility(!1):(a&&a.addFeatures(b.graphics),this._toggleVisibility(!0));a&&(a.moveLatestToFront(),a.drawTracks());d||b._fireUpdateEnd()}}});h("extend-esri")&&k.setObject("layers._RenderMode",n,e);return n})},"esri/layers/OnDemandMode":function(){define("dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/has ../kernel ../geometry/Point ../tasks/query ./RenderMode ./GridLayout".split(" "),
function(l,n,k,q,h,g,e,d,b,a){l=l([b],{declaredClass:"esri.layers._OnDemandMode",constructor:function(a){this.featureLayer=a;this._featureMap={};this._queryErrorHandler=k.hitch(this,this._queryErrorHandler)},initialize:function(b){this.inherited(arguments);var f=this.featureLayer,d=f._srInfo;this._gridLayer=new a(new e(d?d.valid[0]:b.extent.xmin,b.extent.ymax,b.spatialReference),{width:f._tileWidth,height:f._tileHeight},{width:b.width,height:b.height},d);this._cellMap={};this._gridLayer.setResolution(b.extent)},
startup:function(){this._ioQueue=[];this.featureLayer.suspended||(this._zoomHandler(),this._enableConnectors())},propertyChangeHandler:function(a){this._init&&2>a&&this._zoomHandler()},destroy:function(){this._disableConnectors();this.inherited(arguments)},drawFeature:function(a){var b=this._gridLayer,d=a.geometry,e=[];if(d)for(var e=b.getCellsInExtent("point"===d.type?{xmin:d.x,ymin:d.y,xmax:d.x,ymax:d.y}:d.getExtent(),!1).cells,b=this._cellMap,g,h=a.attributes[this.featureLayer.objectIdField],k,
l,n,d=0;d<e.length;d++)g=e[d],k=g.latticeID,l=g.row,n=g.col,k?g=b[k]=b[k]||g:(b[l]=b[l]||{},g=b[l][n]=b[l][n]||g),g.features=g.features||[],g.features.push(a),this._addFeatureIIf(h,a),this._incRefCount(h)},suspend:function(){this._init&&this._disableConnectors()},resume:function(){this._init&&(this._enableConnectors(),this._zoomHandler())},refresh:function(){this._zoomHandler()},_enableConnectors:function(){var a=this.map;this._zoomConnect=n.connect(a,"onZoomEnd",this,this._zoomHandler);this._panConnect=
n.connect(a,"onPanEnd",this,this._panHandler);this._resizeConnect=n.connect(a,"onResize",this,this._panHandler)},_disableConnectors:function(){n.disconnect(this._zoomConnect);n.disconnect(this._panConnect);n.disconnect(this._resizeConnect)},_zoomHandler:function(){this._processIOQueue(!0);var a=this.featureLayer,b=this.map;a.suspended||(a._fireUpdateStart(),this._clearIIf(),(a=a._trackManager)&&a.clearTracks(),this._cellMap={},this._gridLayer.setResolution(b.extent),this._sendRequest())},_panHandler:function(a){this.featureLayer._fireUpdateStart();
this._sendRequest(this.featureLayer._resized&&a)},_getRequestId:function(a,b){return("_"+a.name+a.layerId+a._ulid+"_"+b.resolution+"_"+(b.latticeID||b.row+"_"+b.col)).replace(/[^a-zA-Z0-9\_]+/g,"_")},_sendRequest:function(a){this._exceeds=!1;var b=this.featureLayer,m=this.map;a=a||m.extent;m=this._gridLayer.getCellsInExtent(a,b.latticeTiling).cells;if(!b.isEditable())var e=this._cellMap,m=q.filter(m,function(a){if(a.lattice){if(e[a.latticeID])return!1}else if(e[a.row]&&e[a.row][a.col])return!1;return!0});
var g=b.getOutFields(),h=b.getDefinitionExpression(),k=b._getOffsettedTE(b._mapTimeExtent),l=b.supportsAdvancedQueries?b.getOrderByFields():null,n=b._usePatch,y=this._ioQueue,w,z=this,x=this._drawFeatures,B,D,C;this._pending=this._pending||0;for(w=0;w<m.length;w++){B=m[w];D=new d;D.geometry=B.extent||B.lattice;D.outFields=g;D.where=h;b.latticeTiling&&B.extent&&(D.spatialRelationship=d.SPATIAL_REL_CONTAINS);D.returnGeometry=!0;D.timeExtent=k;D.maxAllowableOffset=b._maxOffset;b._ts&&(D._ts=(new Date).getTime());
D.orderByFields=l;D.multipatchOption=b.multipatchOption;C=null;if(n&&(C=this._getRequestId(b,B),this._isPending(C)))continue;this._pending++;y.push(b._task.execute(D,function(){var a=B;return function(b){x.apply(z,[b,a])}}.call(this),this._queryErrorHandler,C))}this._removeOldCells(a);this._endCheck()},_drawFeatures:function(a,b){this._exceeds=this._exceeds||a.exceededTransferLimit;this._finalizeIO();var d=this.map.extent,e=b.extent,g=b.row,h=b.col,k=this.featureLayer.objectIdField,l=a.features,n=
this._gridLayer,q=this._cellMap,w=b.latticeID,z=w?q[w]:q[g]&&q[g][h];if(b.resolution!=n._resolution||(w?w!==n.getLatticeID(d):!n.intersects(e,d)))z&&this._removeCell(g,h,w);else if(z)this._updateCell(z,l);else{b.features=l;w?q[w]=b:(q[g]=q[g]||{},q[g][h]=b);e=l.length;for(d=0;d<e;d++)g=l[d],h=g.attributes[k],this._addFeatureIIf(h,g),this._incRefCount(h)}this._endCheck()},_queryErrorHandler:function(a){this._finalizeIO();this.featureLayer._errorHandler(a);this._endCheck(!0)},_finalizeIO:function(){this._purgeRequests();
this._pending--},_endCheck:function(a){if(0===this._pending){this._processIOQueue();var b=this.featureLayer,d=b._trackManager;d&&(d.clearTracks(),d.addFeatures(b.graphics),b._ager&&q.forEach(b.graphics,function(a){a._shape&&b._repaint(a)}),d.moveLatestToFront(),d.drawTracks());this.featureLayer._fireUpdateEnd(a&&Error("FeatureLayer: an error occurred while updating the layer"),this._exceeds?{queryLimitExceeded:!0}:null);if(this._exceeds)b.onQueryLimitExceeded()}},_processIOQueue:function(a){this._ioQueue=
q.filter(this._ioQueue,function(a){return-1<a.fired?!1:!0});a&&q.forEach(this._ioQueue,this._cancelPendingRequest)},_removeOldCells:function(a){var b=this._cellMap,d=this._gridLayer,e,g;for(e in b)if(b[e]){var h=b[e],k=h.latticeID,l=0,n=0;if(k)l++,k!==d.getLatticeID(a)&&(this._removeCell(null,null,k),n++);else for(g in h)h[g]&&(l++,d.intersects(h[g].extent,a)||(this._removeCell(e,g),n++));n===l&&delete b[e]}},_updateCell:function(a,b){var d=this.featureLayer,e=d.objectIdField,d=d._selectedFeatures,
g,h=b.length;a.features=a.features||[];for(g=0;g<h;g++){var k=b[g],l=k.attributes[e],n=this._addFeatureIIf(l,k);n===k?(this._incRefCount(l),a.features.push(n)):l in d||(n.setGeometry(k.geometry),n.setAttributes(k.attributes))}},_removeCell:function(a,b,d){var e=this._cellMap,g=this.featureLayer,h=g.objectIdField,k=d?e[d]:e[a]&&e[a][b];if(k){d?delete e[d]:delete e[a][b];a=k.features;for(b=0;b<a.length;b++)d=a[b].attributes[h],this._decRefCount(d),d in g._selectedFeatures||this._removeFeatureIIf(d)}}});
h("extend-esri")&&k.setObject("layers._OnDemandMode",l,g);return l})},"esri/layers/GridLayout":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../SpatialReference ../geometry/Extent ../geometry/Polyline".split(" "),function(l,n,k,q,h,g,e,d){l=l(null,{declaredClass:"esri.layers._GridLayout",constructor:function(b,a,c,f){this.origin=b;this.cellWidth=a.width;this.cellHeight=a.height;this.mapWidth=c.width;this.mapHeight=c.height;this.srInfo=f},setResolution:function(b){this._resolution=
(b.xmax-b.xmin)/this.mapWidth;this.srInfo&&(b=Math.round(2*this.srInfo.valid[1]/this._resolution),b=Math.round(b/this.cellWidth),this._frameStats=[b,0,b-1])},getCellCoordinates:function(b){var a=this._resolution,c=this.origin;return{row:Math.floor((c.y-b.y)/(this.cellHeight*a)),col:Math.floor((b.x-c.x)/(this.cellWidth*a))}},normalize:function(b){var a=this._frameStats;if(a){var c=a[0],f=a[1],a=a[2];b<f?(b%=c,b=b<f?b+c:b):b>a&&(b%=c)}return b},intersects:function(b,a){var c=this.srInfo;return c?k.some(a._getParts(c),
function(a){return b.intersects(a.extent)}):b.intersects(a)},getCellExtent:function(b,a){var c=this._resolution,f=this.origin,d=this.cellWidth,h=this.cellHeight;return new e(a*d*c+f.x,f.y-(b+1)*h*c,(a+1)*d*c+f.x,f.y-b*h*c,new g(f.spatialReference.toJson()))},getLatticeID:function(b){var a=this.getCellCoordinates({x:b.xmin,y:b.ymax}),c=this.getCellCoordinates({x:b.xmax,y:b.ymin});b=a.row;var f=c.row,a=this.normalize(a.col),c=this.normalize(c.col);return b+"_"+f+"_"+a+"_"+c},sorter:function(b,a){return b<
a?-1:1},getCellsInExtent:function(b,a){var c=this.getCellCoordinates({x:b.xmin,y:b.ymax}),f=this.getCellCoordinates({x:b.xmax,y:b.ymin}),m=c.row,e=f.row,c=c.col,f=f.col,g=[],h,k,l,n=[],q=[],w,z,x,B=[];for(h=m;h<=e;h++)for(k=c;k<=f;k++)l=this.normalize(k),b=this.getCellExtent(h,l),g.push({row:h,col:l,extent:b,resolution:this._resolution}),a&&(n.push(b.xmin,b.xmax),q.push(b.ymin,b.ymax));c=this.normalize(c);f=this.normalize(f);n.sort(this.sorter);q.sort(this.sorter);k=n.length;for(h=k-1;0<=h;h--)h<
k-1&&n[h]===n[h+1]&&n.splice(h,1);k=q.length;for(h=k-1;0<=h;h--)h<k-1&&q[h]===q[h+1]&&q.splice(h,1);if(n.length&&q.length){l=n[0];w=n[n.length-1];z=q[0];x=q[q.length-1];k=n.length;for(h=0;h<k;h++)B.push([[n[h],x],[n[h],z]]);k=q.length;for(h=0;h<k;h++)B.push([[l,q[h]],[w,q[h]]]);h=new d({paths:B,spatialReference:this.origin.spatialReference.toJson()});g.push({latticeID:m+"_"+e+"_"+c+"_"+f,lattice:h,resolution:this._resolution})}return{minRow:m,maxRow:e,minCol:c,maxCol:f,cells:g}}});q("extend-esri")&&
n.setObject("layers._GridLayout",l,h);return l})},"esri/layers/SelectionMode":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","./RenderMode"],function(l,n,k,q,h){l=l([h],{declaredClass:"esri.layers._SelectionMode",constructor:function(g){this.featureLayer=g;this._featureMap={}},propertyChangeHandler:function(g){this._init&&0===g&&this._applyTimeFilter()},resume:function(){this.propertyChangeHandler(0)}});k("extend-esri")&&n.setObject("layers._SelectionMode",l,q);return l})},
"esri/layers/StreamMode":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../SpatialReference ../tasks/query ../tasks/QueryTask ../geometry/jsonUtils ./RenderMode".split(" "),function(l,n,k,q,h,g,e,d,b,a){l=l([a],{declaredClass:"esri.layers._StreamMode",constructor:function(a,b){this.featureLayer=a;this._featureMap={};this._setRefreshRate();this._drawBuffer={adds:[],updates:[]};this._timeoutId=null;this._flushDrawBuffer=n.hitch(this,this._flushDrawBuffer);
this._drawFeatures=n.hitch(this,this._drawFeatures);this._queryErrorHandler=n.hitch(this,this._queryErrorHandler)},startup:function(){},propertyChangeHandler:function(a){this._init&&(0===a?this._applyTimeFilter():3===a&&this._redrawAllTracks())},drawFeature:function(a){var b=this.featureLayer,d=b.objectIdField;this._timeoutId||(this._timeoutId=setTimeout(this._flushDrawBuffer,this._refreshRate));b._joinField&&this._getFeature(a.attributes[d])?this._drawBuffer.updates.push({oid:a.attributes[d],updates:a}):
this._drawBuffer.adds.push(a)},resume:function(){this.propertyChangeHandler(0)},refresh:function(){var a=this.featureLayer;a._collection?(a._fireUpdateStart(),a._refresh(!0),a._fireUpdateEnd()):this._fetchArchive()},_drawFeatures:function(a){this._purgeRequests();var b=this.featureLayer;b._create(a.features||[]);b._fireUpdateEnd(null,null)},_applyTimeFilter:function(a){this.inherited(arguments);this._redrawAllTracks()},_removeFeatures:function(a){var b=this.featureLayer,d=b.objectIdField;a&&k.forEach(a,
function(a){a=a.attributes[d];b._unSelectFeatureIIf(a,this);this._decRefCount(a);this._removeFeatureIIf(a)},this)},_addFeatures:function(a){var b=this.featureLayer,d,e,g,h=[],l=[],n=[];d=b._trackManager;e=b.objectIdField;if(d)for(g in a=d.addFeatures(a),a)a.hasOwnProperty(g)&&(h.push(g),a[g].adds&&(l=l.concat(a[g].adds)),a[g].deletes&&(n=n.concat(a[g].deletes)));else l=a;k.forEach(l,function(a){var b=a.attributes[e];this._addFeatureIIf(b,a);this._incRefCount(b)},this);n.length&&this._removeFeatures(n);
d&&d.refreshTracks(h)},_updateFeatures:function(a){var b=this.featureLayer,d,e,g=[];d=b._trackManager;e=b._trackIdField;k.forEach(a,function(a){var c=a.updates;a=this._getFeature(a.oid);var h;if(a){c.geometry&&(a.geometry=c.geometry);c=c.attributes||{};for(h in c)c.hasOwnProperty(h)&&(a.attributes[h]=c[h]);a.visible=this._checkFeatureTimeIntersects(a);d&&a.attributes[e]?g.push(a.attributes[e]):b._repaint(a,null,!0)}},this);g.length&&d.refreshTracks(g)},_redrawAllTracks:function(){var a=this.featureLayer._trackManager,
b;if(a&&(b=a.trimTracks())&&0<b.length)this._removeFeatures(b),a.refreshTracks()},_flushDrawBuffer:function(){clearTimeout(this._timeoutId);var a=this._drawBuffer,b=a.adds.splice(0,a.adds.length),a=a.updates.splice(0,a.updates.length),d=this.featureLayer;if(!d)return!1;d.onUpdateStart();this._addFeatures(b);this._updateFeatures(a);d._purge();d.onUpdateEnd();this._timeoutId=null},_clearDrawBuffer:function(){var a=this._timeoutId,b=this._drawBuffer,d=b.adds,b=b.updates;a&&clearTimeout(a);d.splice(0,
d.length);b.splice(0,b.length);this._timeoutId=null},_setRefreshRate:function(a){a=a||0===a?a:200;0>a&&(a=200);this._refreshRate=a},_checkFeatureTimeIntersects:function(a){var b=this.featureLayer,d=b.getMap().timeExtent;return!d||!b.timeInfo||!b.timeInfo.startTimeField&&!b.timeInfo.endTimeField?!0:0<b._filterByTime([a],d.startTime,d.endTime).match.length},_getRequestId:function(a){return("_"+a.name+a.layerId+a._ulid).replace(/[^a-zA-Z0-9\_]+/g,"_")},_fetchArchive:function(a){var f=this.featureLayer,
m,h,k,l,n,q;f._fireUpdateStart();if(a)a=new d(a),m=new e,h=this.map,k=f.getFilter()||{},l=k.where||"1\x3d1",n=k.geometry?b.fromJson(k.geometry):null,k=k.outFields?k.outFields.split(","):["*"],m.geometry=n,m.where=l,m.outFields=k,m.returnGeometry=!0,m.outSpatialReference=new g(h.spatialReference.toJson()),f._usePatch&&(q=this._getRequestId(f),this._cancelPendingRequest(null,q)),a.execute(m,this._drawFeatures,this._queryErrorHandler,q);else return this._fireUpdateEnd({error:"No url provided"}),!1},
_queryErrorHandler:function(a){this._purgeRequests();var b=this.featureLayer;b._errorHandler(a);b._fireUpdateEnd(a)}});q("extend-esri")&&n.setObject("layers._StreamMode",l,h);return l})},"esri/layers/TrackManager":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../graphic ../geometry/Polyline ./GraphicsLayer".split(" "),function(l,n,k,q,h,g,e,d){l=l(null,{declaredClass:"esri.layers._TrackManager",constructor:function(b){this.layer=b;this.trackMap={};this.trackLineMap=
{}},initialize:function(b){this.map=b;var a=this.layer,c=a._getRenderer(),c=c&&c.trackRenderer;if("esriGeometryPoint"===a.geometryType){var f=this.container=new d._GraphicsLayer({id:a.id+"_tracks",_child:!0});f.loaded=!0;f.onLoad(f);f._setMap(b,a._div);f.setRenderer(c)}},addFeatures:function(b){var a=this.trackMap,c=this.layer,f=c._trackIdField,d=[];k.forEach(b,function(b){var c=b.attributes[f];(a[c]=a[c]||[]).push(b);-1===k.indexOf(d,c)&&d.push(c)});var e=c._startTimeField,g=c.objectIdField,h=function(a,
b){var c=a.attributes[e],f=b.attributes[e];return c===f?a.attributes[g]<b.attributes[g]?-1:1:c<f?-1:1};k.forEach(d,function(b){a[b].sort(h)})},trimTracks:function(b){function a(a){for(a=c[a]||[];a.length>f;)d.push(a.shift())}var c=this.trackMap,f=this.layer.maximumTrackPoints||0,d=[],e;if(!f)return d;if(b)k.forEach(b,function(b){a(b)});else for(e in c)c.hasOwnProperty(e)&&a(e);return d},drawTracks:function(b){function a(a){var b=d[a],k,n,r;n=c.trackLineMap[a];f.remove(n);delete c.trackLineMap[a];
if(!b||2>b.length)return!1;n=[];for(k=b.length-1;0<=k;k--)(r=b[k].geometry)&&n.push([r.x,r.y]);b={};b[l]=a;1<n.length&&(n=new g(new e({paths:[n],spatialReference:h}),null,b),f.add(n),c.trackLineMap[a]=n)}var c=this,f=this.container,d,h,l,n;if(f)if(d=this.trackMap,h=this.map.spatialReference,l=this.layer._trackIdField,b)k.forEach(b,function(b){a(b)});else for(n in d)d.hasOwnProperty(n)&&a(n)},refreshTracks:function(b){function a(a){var b,g;c.drawTracks([a]);if(e&&e.latestObservationRenderer){a=f[a]||
[];b=a.length;for(g=0;g<b;g++)d._repaint(a[g],null,!0)}}var c=this,f=this.trackMap,d=this.layer,e=d._getRenderer(),g;if(b)k.forEach(b,function(b){a(b)});else for(g in f)f.hasOwnProperty(g)&&a(g);this.moveLatestToFront()},moveLatestToFront:function(b){k.forEach(this.getLatestObservations(b),function(a){var b=a._shape;b&&b._moveToFront();this._repaint(a,null,!0)},this.layer)},getLatestObservations:function(b){function a(a){a=d[a];return a[a.length-1]}var c=[],f=this.layer._getRenderer(),d=this.trackMap,
e;if(!f.latestObservationRenderer)return c;if(b)k.forEach(b,function(b){c.push(a(b))});else for(e in d)d.hasOwnProperty(e)&&c.push(a(e));return c},clearTracks:function(b){var a=this.getLatestObservations(b),c=this.container,f;b?k.forEach(b,function(a){delete this.trackMap[a];c&&(f=this.trackLineMap[a],c.remove(f),delete this.trackLineMap[a])},this):(this.trackMap={},this.trackLineMap={},c&&c.clear());k.forEach(a,function(a){this._repaint(a,null,!0)},this.layer)},isLatestObservation:function(b){var a=
this.trackMap[b.attributes[this.layer._trackIdField]];return a?a[a.length-1]===b:!1},destroy:function(){var b=this.container;b&&(b.clear(),b._unsetMap(this.map,this.layer._div));this.map=this.layer=this.trackMap=this.container=null}});q("extend-esri")&&n.setObject("layers._TrackManager",l,h);return l})},"esri/layers/HeatmapManager":function(){define("dojo/_base/declare dojo/_base/lang dojo/on dojo/aspect dojo/_base/array require ../kernel ../sniff ../geometry/Point ./MapImageLayer ./MapImage ./FeatureLayer ../renderers/HeatmapRenderer ../tasks/query".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s){function t(){}l=l(null,{declaredClass:"esri.layers.HeatmapManager",heatmapRenderer:null,sourceLayer:null,imageLayer:null,useTiles:!0,useWorker:!1,map:null,constructor:function(a){var b=a.renderer;this.sourceLayer=a;this.heatmapRenderer=b;this._hndls=[]},initialize:function(b){this.map=b;this.sourceLayer.setDrawMode(!1);var c=this,f=this.imageLayer=new a({className:"heatmapImgLyr"});!this.heatmapRenderer&&(this.sourceLayer&&this.sourceLayer.renderer)&&(this.heatmapRenderer=
this.sourceLayer.renderer);this.recalculateHeatmap=this.recalculateHeatmap.bind(this);this._removeRenderer=this._removeRenderer.bind(this);this._handleRendererChange=this._handleRendererChange.bind(this);this._scRenderHandle=this.sourceLayer.on("renderer-change",this._handleRendererChange);b.addLayer(f);g(["../workers/heatmapCalculator"],function(a){c._calculator=new a(n.mixin({width:c.map.width,height:c.map.height},c._getOptions()));c._setupRenderer()})},destroy:function(){this._removeHandlers();
this._scRenderHandle.remove();this.map.removeLayer(this.imageLayer);this.sourceLayer.setRenderer(null);this.sourceLayer=this.imageLayer=this.map=this.heatmapRenderer=this._hndls=this._scRenderHandle=null},_handleRendererChange:function(a){var b=a.renderer,c=b instanceof m;this.heatmapRenderer?c?this.heatmapRenderer=b:this._removeRenderer(a):c&&(this.heatmapRenderer=b,this._setupRenderer())},_setupRenderer:function(){var a=this._hndls,b=this.sourceLayer,c=this.map;b._originalDraw=b._draw;b._draw=t;
var d=this;a.push(b.on("update-end",function(a){d.recalculateHeatmap()}));a.push(b.on("suspend",function(a){d.imageLayer.suspend()}));a.push(b.on("resume",function(a){d.imageLayer.resume()}));a.push(q.after(b,"redraw",this.recalculateHeatmap));a.push(c.on("layer-remove",function(a){a.layer==d.sourceLayer&&c.removeLayer(d.imageLayer)}));b.mode!==f.MODE_ONDEMAND&&(a.push(c.on("resize, zoom-end",function(a){d.recalculateHeatmap()})),a.push(c.on("pan-end",function(){window.requestAnimationFrame(d.recalculateHeatmap)})));
b.graphics&&b.graphics.length&&this.recalculateHeatmap()},_removeRenderer:function(a){a=a.target;a._draw=a._originalDraw;delete a._originalDraw;a.setDrawMode(!0);this.heatmapRenderer=null;this._removeHandlers();this._hndls=[]},recalculateHeatmap:function(){this._calculator?this._doMainCalculation():this._calculatorClient&&this._doWorkerCalculation()},_doWorkerCalculation:function(){},_doMainCalculation:function(){var a=this.sourceLayer,f=this.imageLayer,d=this.map,e=this.heatmapRenderer,m=this.map.extent,
g=this.map.width,k=this.map.height,l=this._calculator,q=this,t=function(t){t=t.features;var s=[],C=t.length,L=0,D,K=d.toScreen(new b(0,0)),J=K.x,K=K.y,H=d.getResolution(),M=0;d.extent._parts&&(M=h.map(d.extent._parts,function(b){return Math.abs(a._intersects(d,b.extent)[0])}),M.sort(function(a,b){return b-a}),M=M[0]);for(;C--;)D=t[C],D.geometry&&(D={x:Math.abs(Math.ceil(D.geometry.x/H+J)),y:Math.abs(Math.floor(D.geometry.y/H-K)),attributes:D.attributes},D.x>d.width&&(D.x-=M),0>D.x&&(D.x+=M),s[L++]=
D);t=l.calculateImageData(n.mixin({screenPoints:s,mapinfo:{extent:[m.xmin,m.ymin,m.xmax,m.ymax],resolution:d.getResolution()},width:g,height:k},q._getOptions()));t=e.getSymbol({geometry:d.extent,attributes:{size:[g,k],imageData:t}});t=new c({extent:d.extent,href:t.url});f.addImage(t);setTimeout(function(){var a=f._mapImages.slice(0,-1),b=a.length;if(1E3<b)a=f._mapImages[b],f.removeAllImages(),f.addImage(a);else for(;b--&&a[b];)f.removeImage(a[b])},250)},C={geometry:d.extent,timeExtent:d.timeExtent,
spatialRelationship:s.SPATIAL_REL_INTERSECTS};null!=a._canDoClientSideQuery(C)?a.queryFeatures(C,t):t({features:a.graphics})},_removeHandlers:function(){for(var a=this._hndls.length;a--;)this._hndls[a].remove()},_getOptions:function(){var a=this.heatmapRenderer;return{blurRadius:a.blurRadius,gradient:a.gradient,maxPixelIntensity:a.maxPixelIntensity,minPixelIntensity:a.minPixelIntensity,field:a.field}}});d("extend-esri")&&n.setObject("layers.HeatmapManager",l,e);return l})},"esri/layers/MapImageLayer":function(){define("dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/dom-construct dojo/dom-style ../kernel ../config ../sniff ../domUtils ../geometry/Point ../geometry/webMercatorUtils ./layer".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m){var s=l([m],{declaredClass:"esri.layers.MapImageLayer","-chains-":{constructor:"manual"},constructor:function(a){this.inherited(arguments,[null,a]);this._mapImages=[];var b=k.hitch;this._panStart=b(this,this._panStart);this._pan=b(this,this._pan);this._extentChange=b(this,this._extentChange);this._zoom=b(this,this._zoom);this._zoomStart=b(this,this._zoomStart);this._scale=b(this,this._scale);this._resize=b(this,this._resize);n.connect(this,"onSuspend",this,this._onSuspend);
n.connect(this,"onResume",this,this._onResume);this.loaded=!0;this.onLoad(this)},opacity:1,addImage:function(a){var b=this._mapImages.push(a),b=b-1;a._idx=b;a._layer=this;this._div&&this._createImage(a,b)},removeImage:function(a){if(a){var b=a._idx,c=this._mapImages;if(c[b]===a){delete c[b];if(b=a._node)this._clearEvents(b),b.e_idx=b.e_bl=b.e_tr=b.e_l=b.e_t=b.e_w=b.e_h=null,b.parentNode&&(b.parentNode.removeChild(b),h.destroy(b));a._node=a._idx=a._layer=null}}},removeAllImages:function(){var a=this._mapImages,
b,c=a.length;for(b=0;b<c;b++){var f=a[b];f&&this.removeImage(f)}this._mapImages=[]},getImages:function(){var a=this._mapImages,b=[],c,f=a.length;for(c=0;c<f;c++)a[c]&&b.push(a[c]);return b},setOpacity:function(a){this.opacity!=a&&(this._opacityChanged(this.opacity=a),this.onOpacityChange())},onOpacityChange:function(){},_opacityChanged:function(a){var c=this._div,f,d;if(c)if(!b("ie")||8<b("ie"))g.set(c,"opacity",a);else{d=c.childNodes;f=d.length;for(c=0;c<f;c++)g.set(d[c],"opacity",a)}},_createImage:function(a,
c){var f=h.create("img");g.set(f,{position:"absolute"});8>=b("ie")&&g.set(f,"opacity",this.opacity);a.rotation&&!(9>b("ie"))&&g.set(f,e._css.names.transform,e._css.rotate(360-a.rotation));a._node=f;f.e_idx=c;f.e_layer=this;f.e_load=n.connect(f,"onload",s.prototype._imageLoaded);f.e_error=n.connect(f,"onerror",s.prototype._imageError);f.e_abort=n.connect(f,"onabort",s.prototype._imageError);f.src=a.href},_imageLoaded:function(a,b){var c=b||a.target||a.currentTarget,f=c.e_layer,d=f._mapImages[c.e_idx],
e=f._map;e&&(e.__zooming||e.__panning||!f._sr)?f._standby.push(c):(f._clearEvents(c),d&&d._node===c&&e&&f._attach(d))},_imageError:function(a){a=a.target||a.currentTarget;var b=a.e_layer,c=b._mapImages[a.e_idx];b._clearEvents(a);c&&(c._node=null)},_clearEvents:function(a){var b=n.disconnect;b(a.e_load);b(a.e_error);b(a.e_abort);a.e_load=a.e_error=a.e_abort=a.e_layer=null},_attach:function(a){var b=a.extent,d=b.spatialReference,e=this._sr,m=this._div,g=a._node,h=new c({x:b.xmin,y:b.ymin,spatialReference:d}),
b=new c({x:b.xmax,y:b.ymax,spatialReference:d});e.equals(d)||(e.isWebMercator()&&4326===d.wkid?(h=f.geographicToWebMercator(h),b=f.geographicToWebMercator(b)):d.isWebMercator()&&4326===e.wkid&&(h=f.webMercatorToGeographic(h),b=f.webMercatorToGeographic(b)));g.e_bl=h;g.e_tr=b;a.visible&&(this._setPos(g,m._left,m._top),(this._active||m).appendChild(g))},_setPos:function(a,b,c){var f=a.e_bl,d=a.e_tr,m=this._map,f=m.toScreen(f),d=m.toScreen(d);b=f.x-b;c=d.y-c;var h=Math.abs(d.x-f.x),f=Math.abs(f.y-d.y),
d={width:h+"px",height:f+"px"},k=this._mapImages[a.e_idx];"css-transforms"===m.navigationMode?d[e._css.names.transform]=e._css.translate(b,c)+(k.rotation?" "+e._css.rotate(360-k.rotation):""):(d.left=b+"px",d.top=c+"px");g.set(a,d);a.e_l=b;a.e_t=c;a.e_w=h;a.e_h=f},managedSuspension:!0,_setMap:function(c,f){this.inherited(arguments);var d=this._div=h.create("div",null,f),m=e._css.names,k={position:"absolute"},l=c.__visibleDelta;if(!b("ie")||8<b("ie"))k.opacity=this.opacity;"css-transforms"===c.navigationMode?
(k[m.transform]=e._css.translate(l.x,l.y),g.set(d,k),d._left=l.x,d._top=l.y,k={position:"absolute",width:c.width+"px",height:c.height+"px",overflow:"visible"},this._active=h.create("div",null,d),g.set(this._active,k),this._passive=h.create("div",null,d),g.set(this._passive,k)):(d._left=0,d._top=0,g.set(d,k));this._standby=[];m=this._mapImages;l=m.length;for(k=0;k<l;k++){var n=m[k];n._node||this._createImage(n,n._idx)}a.hide(d);return d},_unsetMap:function(a,b){this._disconnect();var c=this._div;if(c){var f=
this._mapImages,d,e=f.length;for(d=0;d<e;d++){var m=f[d];if(m){var g=m._node;g&&(this._clearEvents(g),g.e_idx=g.e_bl=g.e_tr=g.e_l=g.e_t=g.e_w=g.e_h=null);m._node=null}}b.removeChild(c);h.destroy(c)}this._map=this._div=this._sr=this._active=this._passive=this._standby=null;this.inherited(arguments)},_onSuspend:function(){this._disconnect();a.hide(this._div)},_onResume:function(b){b.firstOccurrence&&(this._sr=this._map.spatialReference,this._processStandbyList());b=this._map;var c=this._div,f=b.__visibleDelta;
"css-transforms"===b.navigationMode&&(c._left=f.x,c._top=f.y,g.set(c,e._css.names.transform,e._css.translate(c._left,c._top)));this._redraw("css-transforms"===b.navigationMode);this._connect(b);a.show(c)},_connect:function(a){if(!this._connections){var b=n.connect,c="css-transforms"===a.navigationMode;this._connections=[b(a,"onPanStart",this._panStart),b(a,"onPan",this._pan),b(a,"onExtentChange",this._extentChange),c&&b(a,"onZoomStart",this._zoomStart),c?b(a,"onScale",this._scale):b(a,"onZoom",this._zoom),
c&&b(a,"onResize",this._resize)]}},_disconnect:function(){this._connections&&(q.forEach(this._connections,n.disconnect),this._connections=null)},_panStart:function(){this._panL=this._div._left;this._panT=this._div._top},_pan:function(a,b){var c=this._div;c._left=this._panL+b.x;c._top=this._panT+b.y;"css-transforms"===this._map.navigationMode?g.set(c,e._css.names.transform,e._css.translate(c._left,c._top)):g.set(c,{left:c._left+"px",top:c._top+"px"})},_extentChange:function(a,b,c){c?this._redraw("css-transforms"===
this._map.navigationMode):b&&this._pan(a,b);this._processStandbyList()},_processStandbyList:function(){var a,b=this._standby;if(b&&b.length)for(a=b.length-1;0<=a;a--)this._imageLoaded(null,b[a]),b.splice(a,1)},_redraw:function(a){if(a){a=this._passive;var b=e._css.names;g.set(a,b.transition,"none");this._moveImages(a,this._active);g.set(a,b.transform,"none")}a=this._active||this._div;var b=this._div._left,c=this._div._top,f,d=a.childNodes.length,m;for(f=0;f<d;f++)m=a.childNodes[f],this._setPos(m,
b,c)},_zoom:function(a,b,c){a=this._div;var f=a._left,d=a._top,e,m=a.childNodes.length,h;for(e=0;e<m;e++){h=a.childNodes[e];var k=h.e_w*b,l=h.e_h*b,n=(c.x-f-h.e_l)*(k-h.e_w)/h.e_w,q=(c.y-d-h.e_t)*(l-h.e_h)/h.e_h,n=isNaN(n)?0:n,q=isNaN(q)?0:q;g.set(h,{left:h.e_l-n+"px",top:h.e_t-q+"px",width:k+"px",height:l+"px"})}},_zoomStart:function(){this._moveImages(this._active,this._passive)},_moveImages:function(a,b){var c=a.childNodes,f;f=c.length;if(0<f)for(f-=1;0<=f;f--)b.appendChild(c[f])},_scale:function(a,
b){var c=e._css.names,f=this._passive;g.set(f,c.transition,b?"none":c.transformName+" "+d.defaults.map.zoomDuration+"ms ease");e._css.matrix(a);g.set(f,c.transform,e._css.matrix(a))},_resize:function(a,b,c){g.set(this._active,{width:b+"px",height:c+"px"});g.set(this._passive,{width:b+"px",height:c+"px"})}});b("extend-esri")&&k.setObject("layers.MapImageLayer",s,e);return s})},"esri/layers/MapImage":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../domUtils ../geometry/Extent".split(" "),
function(l,n,k,q,h,g){l=l(null,{declaredClass:"esri.layers.MapImage",constructor:function(e){n.mixin(this,e);this.extent=new g(this.extent)},visible:!0,getLayer:function(){return this._layer},getNode:function(){return this._node},show:function(){if(!this.visible){this.visible=!0;var e=this._node,d=this._layer,b;if(e){if(b=d&&d._div)d.suspended||d._setPos(e,b._left,b._top),(d._active||b).appendChild(e);h.show(e)}}},hide:function(){if(this.visible){this.visible=!1;var e=this._node;e&&(h.hide(e),e.parentNode&&
e.parentNode.removeChild(e))}}});k("extend-esri")&&n.setObject("layers.MapImage",l,q);return l})},"esri/renderers/HeatmapRenderer":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-construct ../sniff ../kernel ../lang ../symbols/PictureMarkerSymbol ./Renderer".split(" "),function(l,n,k,q,h,g,e,d){l=l([d],{declaredClass:"esri.renderer.HeatmapRenderer",colors:null,blurRadius:10,maxPixelIntensity:100,minPixelIntensity:0,field:null,constructor:function(b){this._supportsCanvas=window.CanvasRenderingContext2D?
!0:!1;this._supportTypedArray=window.ArrayBuffer&&"function"==typeof window.ArrayBuffer?!0:!1;this._supportsCanvas&&this._supportTypedArray&&("string"==typeof b&&(b=JSON.parse(b)),n.mixin(this,b),this._canvas=null,this.gradient=this._generateGradient(this.colors))},getSymbol:function(b){if(!this._supportsCanvas||!this._supportTypedArray)return!1;var a=b.attributes.imageData;b=b.attributes.size;var c=this._getContext(b[0],b[1]),f=c.getImageData(0,0,b[0],b[1]);a instanceof ArrayBuffer?a=window.Uint8ClampedArray?
new Uint8ClampedArray(a):new Uint8Array(a):a.BYTES_PER_ELEMENT&&1!==a.BYTES_PER_ELEMENT&&(a=window.Uint8ClampedArray?new Uint8ClampedArray(a.buffer):new Uint8Array(a.buffer));f.data.set(a);c.putImageData(f,0,0);return new e(c.canvas.toDataURL(),b[0],b[1])},setColors:function(b){if(b&&(b instanceof Array||b.colors))this.gradient=this._generateGradient(b.colors||b)},setMaxPixelIntensity:function(b){this.maxPixelIntensity=b},setMinPixelIntensity:function(b){this.minPixelIntensity=b},setField:function(b){this.field=
b},setBlurRadius:function(b){this.blurRadius=b},toJson:function(){var b=n.mixin(this.inherited(arguments),{type:"heatmap",blurRadius:this.blurRadius,colors:this.colors instanceof Uint32Array?null:this.colors,maxPixelIntensity:this.maxPixelIntensity,minPixelIntensity:this.minPixelIntensity,field:this.field});return g.fixJson(b)},_getContext:function(b,a){this._canvas?(this._canvas.width=b,this._canvas.height=a):this._canvas=this._initCanvas(b,a);return this._canvas.getContext("2d")},_initCanvas:function(b,
a){var c=k.create("canvas",{id:"hm_canvas-"+Math.floor(1E3*Math.random()),style:"position: absolute; left: -10000px; top: 0px;"},null);c.width=b;c.height=a;document.body.appendChild(c);return c},_generateGradient:function(b,a){a||(a=512);for(var c=this._getContext(1,a||512),f=c.createLinearGradient(0,0,0,a),d=0,e=b.length-1;d<=e;d++)f.addColorStop(d/e,b[d]);c.fillStyle=f;c.fillRect(0,0,1,a);return new Uint32Array(c.getImageData(0,0,1,a).data.buffer)}});q("extend-esri")&&n.setObject("renderer.HeatmapRenderer",
l,h);return l})},"esri/dijit/AttributeInspector":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/sniff dojo/_base/kernel dojo/has dojo/dom-style dojo/dom-construct ../kernel ../lang ../domUtils ../layers/InheritedDomain ../layers/FeatureLayer dojo/i18n!../nls/jsapi dojo/fx dojox/gfx dijit/_Widget dijit/_Templated dijit/Editor dijit/_editor/plugins/LinkDialog dijit/_editor/plugins/TextColor ./_EventedWidget ./editing/AttachmentEditor ./editing/Util ../tasks/query dijit/form/DateTextBox dijit/form/TextBox dijit/form/NumberTextBox dijit/form/FilteringSelect dijit/form/NumberSpinner dijit/form/Button dijit/form/SimpleTextarea dijit/form/ValidationTextBox dijit/form/TimeTextBox dijit/Tooltip dojo/data/ItemFileReadStore dojox/date/islamic dojox/date/islamic/Date dojox/date/islamic/locale dojo/text!./templates/AttributeInspector.html".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v,A,y,w,z,x,B,D,C,F,I,E,L,G,K,J,H,M,N,O,P,Q,W,X){var R=l([x,v,A],{declaredClass:"esri.dijit.AttributeInspector",widgetsInTemplate:!0,templateString:X,_navMessage:"( ${idx} ${of} ${numFeatures} )",onUpdate:function(){},onDelete:function(){},onAttributeChange:function(){},onNext:function(){},onReset:function(){},onCancel:function(){},_eventMap:{update:!0,"delete":["feature"],"attribute-change":["feature","fieldName","fieldValue"],next:["feature"],reset:!0,
cancel:!0},constructor:function(a,b){n.mixin(this,t.widgets.attributeInspector);a=a||{};!a.featureLayer&&!a.layerInfos&&console.error("esri.AttributeInspector: please provide correct parameter in the constructor");this._datePackage=this._getDatePackage(a);this._layerInfos=a.layerInfos||[{featureLayer:a.featureLayer,options:a.options||[]}];this._layerInfos=k.filter(this._layerInfos,function(a){return!a.disableAttributeUpdate});this._aiConnects=[];this._selection=[];this._toolTips=[];this._featureIdx=
this._numFeatures=0;this._currentFeature=this._currentLInfo=null;this._hideNavButtons=a.hideNavButtons||!1},postCreate:function(){if(k.every(this._layerInfos,function(a){return a.featureLayer.loaded}))this._initLayerInfos(),this._createAttachmentEditor(),this.onFirstFeature();else{var a=this._layerInfos.length;k.forEach(this._layerInfos,function(b){b=b.featureLayer;if(b.loaded)a--;else var c=q.connect(b,"onLoad",this,function(b){q.disconnect(c);c=null;a--;a||(this._initLayerInfos(),this._createAttachmentEditor(),
this.onFirstFeature())})},this)}},destroy:function(){this._destroyAttributeTable();k.forEach(this._aiConnects,q.disconnect);delete this._aiConnects;this._attachmentEditor&&(this._attachmentEditor.destroy(),delete this._attachmentEditor);delete this._layerInfos;this._selection=this._currentFeature=this._currentLInfo=this._attributes=this._layerInfos=null;this.inherited(arguments)},refresh:function(){this._updateSelection()},first:function(){this.onFirstFeature()},last:function(){this.onLastFeature()},
next:function(){this.onNextFeature()},previous:function(){this.onPreviousFeature()},showFeature:function(a,b){b&&(this._createOnlyFirstTime=!0);this._updateSelection([a],b);this._updateUI()},onLayerSelectionChange:function(a,b,c){this._createOnlyFirstTime=!1;this._featureIdx=c===s.SELECTION_NEW?0:this._featureIdx;this._updateSelection();this._updateUI()},onLayerSelectionClear:function(){this._selection&&!(0>=this._selection.length)&&(this._featureIdx=this._numFeatures=0,this._selection=[],this._currentLInfo=
this._currentFeature=null,this._updateUI())},onLayerEditsComplete:function(a,b,c,f){f=f||[];if(f.length){var d=this._selection,e=a.featureLayer.objectIdField;k.forEach(f,n.hitch(this,function(a){k.some(d,n.hitch(this,function(b,c){if(b.attributes[e]!==a.objectId)return!1;this._selection.splice(c,1);return!0}))}))}b=b||[];b.length&&(this._selection=D.findFeatures(b,a.featureLayer),this._featureIdx=0);a=this._numFeatures=this._selection?this._selection.length:0;if(b.length){if(b=a?this._selection[this._featureIdx]:
null)a=b.getLayer().getEditCapabilities(),(!a.canCreate||a.canUpdate)&&this._showFeature(b);this._updateUI()}},onFieldValueChange:function(a,b){b="undefined"===typeof b?null:b;var c=a.field;if("esriFieldTypeDate"===c.type){if(a.dijit instanceof Array){var f=a.dijit[0].getValue(),d=a.dijit[1].getValue();b=f&&d?new Date(f.getFullYear(),f.getMonth(),f.getDate(),d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds()):f||d||null}else b=a.dijit.getValue();b=b&&b.getTime?b.getTime():b&&b.toGregorian?
b.toGregorian().getTime():b}if(this._currentFeature.attributes[c.name]!==b){var e=this._currentLInfo,m=this._currentFeature,f=c.name;if(f===e.typeIdField){var g=this._findFirst(e.types,"id",b);k.forEach(e.fieldInfos,function(a){if((c=a.field)&&c.name!==e.typeIdField)a=a.dijit,this._setFieldDomain(a,g,c)&&a&&(this._setValue(a,m.attributes[c.name]+""),!1===a.isValid()&&this._setValue(a,null))},this)}this.onAttributeChange(m,f,b)}},onDeleteBtn:function(a){this._deleteFeature()},onNextFeature:function(a){this._onNextFeature(1)},
onPreviousFeature:function(a){this._onNextFeature(-1)},onFirstFeature:function(a){this._onNextFeature(-1*this._featureIdx)},onLastFeature:function(a){this._onNextFeature(this._numFeatures-1-this._featureIdx)},_initLayerInfos:function(){var a=this._layerInfos;this._editorTrackingInfos={};k.forEach(a,this._initLayerInfo,this)},_initLayerInfo:function(a){var b=a.featureLayer,f,d;this._userIds={};d=b.id;b.credential&&(this._userIds[d]=b.credential.userId);a.userId&&(this._userIds[d]=a.userId);this._connect(b,
"onSelectionComplete",n.hitch(this,"onLayerSelectionChange",a));this._connect(b,"onSelectionClear",n.hitch(this,"onLayerSelectionClear",a));this._connect(b,"onEditsComplete",n.hitch(this,"onLayerEditsComplete",a));a.showAttachments=b.hasAttachments?c.isDefined(a.showAttachments)?a.showAttachments:!0:!1;a.hideFields=a.hideFields||[];a.htmlFields=a.htmlFields||[];a.isEditable=b.isEditable()?c.isDefined(a.isEditable)?a.isEditable:!0:!1;a.typeIdField=b.typeIdField;a.layerId=b.id;a.types=b.types;b.globalIdField&&
(f=this._findFirst(a.fieldInfos,"fieldName",b.globalIdField),!f&&!a.showGlobalID&&a.hideFields.push(b.globalIdField));d=this._findFirst(a.fieldInfos,"fieldName",b.objectIdField);!d&&!a.showObjectID&&a.hideFields.push(b.objectIdField);var e=this._getFields(a.featureLayer);if(e){var m=a.fieldInfos||[],m=k.map(m,function(a){return n.mixin({},a)});m.length?a.fieldInfos=k.filter(k.map(m,n.hitch(this,function(b){var c=b.stringFieldOption||(this._isInFields(b.fieldName,a.htmlFields)?R.STRING_FIELD_OPTION_RICHTEXT:
R.STRING_FIELD_OPTION_TEXTBOX);return n.mixin(b,{field:this._findFirst(e,"name",b.fieldName),stringFieldOption:c})})),"return item.field;"):(e=k.filter(e,n.hitch(this,function(b){return!this._isInFields(b.name,a.hideFields)})),a.fieldInfos=k.map(e,n.hitch(this,function(b){var c=this._isInFields(b.name,a.htmlFields)?R.STRING_FIELD_OPTION_RICHTEXT:R.STRING_FIELD_OPTION_TEXTBOX;return{fieldName:b.name,field:b,stringFieldOption:c}})));a.showGlobalID&&!f&&m.push(this._findFirst(e,"name",b.globalIdField));
a.showObjectID&&!d&&m.push(this._findFirst(e,"name",b.objectIdField));f=[];b.editFieldsInfo&&(b.editFieldsInfo.creatorField&&f.push(b.editFieldsInfo.creatorField),b.editFieldsInfo.creationDateField&&f.push(b.editFieldsInfo.creationDateField),b.editFieldsInfo.editorField&&f.push(b.editFieldsInfo.editorField),b.editFieldsInfo.editDateField&&f.push(b.editFieldsInfo.editDateField));this._editorTrackingInfos[b.id]=f}},_createAttachmentEditor:function(){this._attachmentEditor=null;var a=k.filter(this._layerInfos,
function(a){return a.showAttachments});a&&a.length&&(this._attachmentEditor=new B({"class":"atiAttachmentEditor"},this.attachmentEditor),this._attachmentEditor.startup())},_setCurrentLInfo:function(a){var b=this._currentLInfo?this._currentLInfo.featureLayer:null,c=a.featureLayer;if(b&&(b.id===c.id&&!b.ownershipBasedAccessControlForFeatures)&&(b=c.getEditCapabilities(),!b.canCreate||b.canUpdate))return;this._currentLInfo=a;this._createTable()},_updateSelection:function(a,b){this._selection=a||[];k.forEach(this._layerInfos,
this._getSelection,this);var c=this._selection.length;this._numFeatures=this._selection.length;this._showFeature(c?this._selection[this._featureIdx]:null,b)},_getSelection:function(a){a=a.featureLayer.getSelectedFeatures();this._selection=this._selection.concat(a)},_updateUI:function(){var a=this._numFeatures,b=this._currentLInfo;this.layerName.innerHTML=!b||0===a?this.NLS_noFeaturesSelected:b.featureLayer?b.featureLayer.name:"";d.set(this.attributeTable,"display",a?"":"none");d.set(this.editButtons,
"display",a?"":"none");d.set(this.navButtons,"display",!this._hideNavButtons&&1<a?"":"none");this.navMessage.innerHTML=c.substitute({idx:this._featureIdx+1,of:this.NLS_of,numFeatures:this._numFeatures},this._navMessage);this._attachmentEditor&&d.set(this._attachmentEditor.domNode,"display",b&&b.showAttachments&&a?"":"none");d.set(this.deleteBtn.domNode,"display",!(b&&!1===b.showDeleteButton)&&this._canDelete?"":"none");this.domNode.parentNode&&0<this.domNode.parentNode.scrollTop&&(this.domNode.parentNode.scrollTop=
0)},_onNextFeature:function(a){this._featureIdx+=a;0>this._featureIdx?this._featureIdx=this._numFeatures-1:this._featureIdx>=this._numFeatures&&(this._featureIdx=0);a=this._selection.length?this._selection[this._featureIdx]:null;this._showFeature(a);this._updateUI();this.onNext(a)},_deleteFeature:function(){this.onDelete(this._currentFeature)},_showFeature:function(a,b){if(a){this._currentFeature=a;var d=b?b:a.getLayer(),e=d.getEditCapabilities({feature:a,userId:this._userIds[d.id]});this._canUpdate=
e.canUpdate;this._canDelete=e.canDelete;if(e=this._getLInfoFromFeatureLayer(d)){this._setCurrentLInfo(e);var m=a.attributes,g=this._findFirst(e.types,"id",m[e.typeIdField]),h=null;k.forEach(e.fieldInfos,function(a){h=a.field;var b=[];a.dijit&&1<a.dijit.length?k.forEach(a.dijit,function(a){b.push(a)}):b.push(a.dijit);k.forEach(b,n.hitch(this,function(a){if(a){var b=this._setFieldDomain(a,g,h),f=m[h.name],f=f&&b&&b.codedValues&&b.codedValues.length?b.codedValues[f]?b.codedValues[f].name:f:f;c.isDefined(f)||
(f="");"dijit.form.DateTextBox"===a.declaredClass||"dijit.form.TimeTextBox"===a.declaredClass?f=""===f?null:new Date(f):"dijit.form.FilteringSelect"===a.declaredClass&&(a._lastValueReported=null,f=m[h.name]+"");try{this._setValue(a,f),"dijit.form.FilteringSelect"===a.declaredClass&&!1===a.isValid()&&this._setValue(a,null)}catch(d){a.set("displayedValue",this.NLS_errorInvalid,!1)}}}))},this);this._attachmentEditor&&e.showAttachments&&this._attachmentEditor.showAttachments(this._currentFeature);(d=
d.getEditSummary(a))?(this.editorTrackingInfoDiv.innerHTML=d,f.show(this.editorTrackingInfoDiv)):f.hide(this.editorTrackingInfoDiv)}}},_setFieldDomain:function(a,b,f){if(!a)return null;var d=f.domain;b&&b.domains&&b.domains[f.name]&&!1===b.domains[f.name]instanceof m&&(d=b.domains[f.name]);if(!d)return null;d.codedValues&&0<d.codedValues.length?(a.set("store",this._toStore(k.map(d.codedValues,function(a){return{id:a.code+="",name:a.name}}))),this._setValue(a,d.codedValues[0].code)):(a.constraints=
{min:c.isDefined(d.minValue)?d.minValue:Number.MIN_VALUE,max:c.isDefined(d.maxValue)?d.maxValue:Number.MAX_VALUE},this._setValue(a,a.constraints.min));return d},_setValue:function(a,b){a.set&&(a._onChangeActive=!1,a.set("value",b,!0),a._onChangeActive=!0)},_getFields:function(a){var b=a._getOutFields();if(!b)return null;a=a.fields;return"*"==b?a:k.filter(k.map(b,n.hitch(this,"_findFirst",a,"name")),c.isDefined)},_isInFields:function(a,b){return!a||!b&&!b.length?!1:k.some(b,function(b){return b.toLowerCase()===
a.toLowerCase()})},_findFirst:function(a,b,c){return(a=k.filter(a,function(a){return a.hasOwnProperty(b)&&a[b]===c}))&&a.length?a[0]:null},_getLInfoFromFeatureLayer:function(a){return this._findFirst(this._layerInfos,"layerId",a?a.id:null)},_createTable:function(){this._destroyAttributeTable();this.attributeTable.innerHTML="";this._attributes=b.create("table",{cellspacing:"0",cellpadding:"0"},this.attributeTable);var a=b.create("tbody",null,this._attributes),c=this._currentLInfo,f=this._findFirst(c.types,
"id",this._currentFeature.attributes[c.typeIdField]);k.forEach(c.fieldInfos,n.hitch(this,"_createField",f,a),this);this._createOnlyFirstTime=!1},_createField:function(a,c,f){var d=this._currentLInfo,e=f.field;if(!this._isInFields(e.name,d.hideFields)&&!this._isInFields(e.name,this._editorTrackingInfos[d.featureLayer.id])){var m=b.create("tr",null,c);c=b.create("td",{innerHTML:f.label||e.alias||e.name,"class":"atiLabel"},m);c=b.create("td",null,m);var g,m=null,h=!1;if(f.customField)b.place(f.customField.domNode||
f.customField,b.create("div",null,c),"first"),g=f.customField;else if(!1===d.isEditable||!1===e.editable||!1===f.isEditable||"esriFieldTypeOID"===e.type||"esriFieldTypeGlobalID"===e.type||!this._canUpdate&&!this._createOnlyFirstTime)h=!0;!g&&d.typeIdField&&e.name.toLowerCase()==d.typeIdField.toLowerCase()?g=this._createTypeField(e,f,c):g||(g=this._createDomainField(e,f,a,c));if(!g)switch(e.type){case "esriFieldTypeString":g=this._createStringField(e,f,c);break;case "esriFieldTypeDate":g=this._createDateField(e,
f,c);f.format&&f.format.time&&(m=this._createTimeField(e,f,c));break;case "esriFieldTypeInteger":case "esriFieldTypeSmallInteger":g=this._createIntField(e,f,c);break;case "esriFieldTypeSingle":case "esriFieldTypeDouble":g=this._createFltField(e,f,c);break;default:g=this._createStringField(e,f,c)}f.tooltip&&f.tooltip.length&&this._toolTips.push(new N({connectId:[g.id],label:f.tooltip}));g.onChange=n.hitch(this,"onFieldValueChange",f);g.set("disabled",h);m?(f.dijit=[g,m],m.onChange=n.hitch(this,"onFieldValueChange",
f),m.set("disabled",h)):f.dijit=g}},_createTypeField:function(a,c,f){return new L({"class":"atiField",name:a.alias||a.name,store:this._toStore(k.map(this._currentLInfo.types,function(a){return{id:a.id,name:a.name}})),searchAttr:"name"},b.create("div",null,f))},_createDomainField:function(a,c,f,d){c=a.domain;f&&f.domains&&f.domains[a.name]&&!1===f.domains[a.name]instanceof m&&(c=f.domains[a.name]);return!c?null:c.codedValues?new L({"class":"atiField",name:a.alias||a.name,searchAttr:"name",required:a.nullable||
!1},b.create("div",null,d)):new G({"class":"atiField"},b.create("div",null,d))},_createStringField:function(a,c,f){var d={"class":"atiField",trim:!0,maxLength:a.length};return c.stringFieldOption===R.STRING_FIELD_OPTION_TEXTAREA?(d["class"]+=" atiTextAreaField",new J(d,b.create("div",null,f))):c.stringFieldOption===R.STRING_FIELD_OPTION_RICHTEXT?(d["class"]+=" atiRichTextField",d.height="100%",d.width="100%",d.plugins=c.richTextPlugins||"bold italic underline foreColor hiliteColor | justifyLeft justifyCenter justifyRight justifyFull | insertOrderedList insertUnorderedList indent outdent | createLink".split(" "),
a=new y(d,b.create("div",null,f)),a.startup(),a):!a.nullable||!c.field||!c.field.nullable?new H({required:!0},b.create("div",null,f)):new I(d,b.create("div",null,f))},_createTimeField:function(a,c,f){a={"class":"atiField",trim:!0,constraints:{formatLength:"medium"}};this._datePackage&&(a.datePackage=this._datePackage);return new M(a,b.create("div",null,f))},_createDateField:function(a,c,f){a={"class":"atiField",trim:!0};this._datePackage&&(a.datePackage=this._datePackage);return new F(a,b.create("div",
null,f))},_createIntField:function(a,c,f){return new E({"class":"atiField",constraints:{places:0},invalidMessage:this.NLS_validationInt,trim:!0},b.create("div",null,f))},_createFltField:function(a,c,f){return new E({"class":"atiField",trim:!0,invalidMessage:this.NLS_validationFlt},b.create("div",null,f))},_toStore:function(a){return new O({data:{identifier:"id",label:"name",items:a}})},_connect:function(a,b,c){this._aiConnects.push(q.connect(a,b,c))},_getDatePackage:function(a){return null===a.datePackage?
null:a.datePackage?a.datePackage:"ar"===g.locale?"dojox.date.islamic":null},_destroyAttributeTable:function(){k.forEach(this._layerInfos,function(a){k.forEach(a.fieldInfos,function(a){var b=a.dijit;if(b){b._onChangeHandle=null;if(a.customField)return;b instanceof Array?k.forEach(b,n.hitch(this,function(a){a.destroyRecursive?a.destroyRecursive():a.destroy&&a.destroy();a._onChangeHandle=null})):b.destroyRecursive?b.destroyRecursive():b.destroy&&b.destroy()}a.dijit=null},this)},this);k.forEach(this._toolTips,
function(a){a.destroy()});this._toolTips=[];this._attributes&&b.destroy(this._attributes)}});n.mixin(R,{STRING_FIELD_OPTION_RICHTEXT:"richtext",STRING_FIELD_OPTION_TEXTAREA:"textarea",STRING_FIELD_OPTION_TEXTBOX:"textbox"});e("extend-esri")&&n.setObject("dijit.AttributeInspector",R,a);return R})},"dijit/_Widget":function(){define("dojo/aspect dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/has dojo/_base/kernel dojo/_base/lang dojo/query dojo/ready ./registry ./_WidgetBase ./_OnDijitClickMixin ./_FocusMixin dojo/uacss ./hccss".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m){function s(){}function t(a){return function(b,c,f,d){return b&&"string"==typeof c&&b[c]==s?b.on(c.substring(2).toLowerCase(),e.hitch(f,d)):a.apply(k,arguments)}}l.around(k,"connect",t);g.connect&&l.around(g,"connect",t);l=q("dijit._Widget",[c,f,m],{onClick:s,onDblClick:s,onKeyDown:s,onKeyPress:s,onKeyUp:s,onMouseDown:s,onMouseMove:s,onMouseOut:s,onMouseOver:s,onMouseLeave:s,onMouseEnter:s,onMouseUp:s,constructor:function(a){this._toConnect={};for(var b in a)this[b]===
s&&(this._toConnect[b.replace(/^on/,"").toLowerCase()]=a[b],delete a[b])},postCreate:function(){this.inherited(arguments);for(var a in this._toConnect)this.on(a,this._toConnect[a]);delete this._toConnect},on:function(a,b){return this[this._onMap(a)]===s?k.connect(this.domNode,a.toLowerCase(),this,b):this.inherited(arguments)},_setFocusedAttr:function(a){this._focused=a;this._set("focused",a)},setAttribute:function(a,b){g.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.",
"","2.0");this.set(a,b)},attr:function(a,b){return 2<=arguments.length||"object"===typeof a?this.set.apply(this,arguments):this.get(a)},getDescendants:function(){g.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?d("[widgetId]",this.containerNode).map(a.byNode):[]},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}});h("dijit-legacy-requires")&&b(0,function(){require(["dijit/_base"])});
return l})},"dijit/_WidgetBase":function(){define("require dojo/_base/array dojo/aspect dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dojo/_base/kernel dojo/_base/lang dojo/on dojo/ready dojo/Stateful dojo/topic dojo/_base/window ./Destroyable dojo/has!dojo-bidi?./_BidiMixin ./registry".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v,A,y,w,z,x){function B(a){return function(b){d[b?
"set":"remove"](this.domNode,a,b);this._set(a,b)}}m.add("dijit-legacy-requires",!s.isAsync);m.add("dojo-bidi",!1);m("dijit-legacy-requires")&&u(0,function(){l(["dijit/_base/manager"])});var D={};q=g("dijit._WidgetBase",[v,w],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:B("lang"),dir:"",_setDirAttr:B("dir"),"class":"",_setClassAttr:{node:"domNode",type:"class"},_setTypeAttr:null,style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(a){this._set("ownerDocument",
a)},attributeMap:{},_blankGif:q.blankGif||l.toUrl("dojo/resources/blank.gif"),_introspect:function(){var a=this.constructor;if(!a._setterAttrs){var b=a.prototype,c=a._setterAttrs=[],a=a._onMap={},f;for(f in b.attributeMap)c.push(f);for(f in b)/^on/.test(f)&&(a[f.substring(2).toLowerCase()]=f),/^_set[A-Z](.*)Attr$/.test(f)&&(f=f.charAt(4).toLowerCase()+f.substr(5,f.length-9),(!b.attributeMap||!(f in b.attributeMap))&&c.push(f))}},postscript:function(a,b){this.create(a,b)},create:function(a,b){this._introspect();
this.srcNodeRef=e.byId(b);this._connects=[];this._supportingWidgets=[];this.srcNodeRef&&"string"==typeof this.srcNodeRef.id&&(this.id=this.srcNodeRef.id);a&&(this.params=a,t.mixin(this,a));this.postMixInProperties();this.id||(this.id=x.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id);this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=y.body(this.ownerDocument);x.add(this);this.buildRendering();
var c;if(this.domNode){this._applyAttributes();var f=this.srcNodeRef;f&&(f.parentNode&&this.domNode!==f)&&(f.parentNode.replaceChild(this.domNode,f),c=!0);this.domNode.setAttribute("widgetId",this.id)}this.postCreate();c&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var a={},b;for(b in this.params||{})a[b]=this._get(b);n.forEach(this.constructor._setterAttrs,function(b){if(!(b in a)){var c=this._get(b);c&&this.set(b,c)}},this);for(b in a)this.set(b,a[b])},postMixInProperties:function(){},
buildRendering:function(){this.domNode||(this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div"));if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(n.map(a,function(a){return a+"Rtl"})));b.add(this.domNode,a)}},postCreate:function(){},startup:function(){this._started||(this._started=!0,n.forEach(this.getChildren(),function(a){!a._started&&(!a._destroyed&&t.isFunction(a.startup))&&(a.startup(),a._started=!0)}))},destroyRecursive:function(a){this._beingDestroyed=
!0;this.destroyDescendants(a);this.destroy(a)},destroy:function(a){function b(c){c.destroyRecursive?c.destroyRecursive(a):c.destroy&&c.destroy(a)}this._beingDestroyed=!0;this.uninitialize();n.forEach(this._connects,t.hitch(this,"disconnect"));n.forEach(this._supportingWidgets,b);this.domNode&&n.forEach(x.findWidgets(this.domNode,this.containerNode),b);this.destroyRendering(a);x.remove(this.id);this._destroyed=!0},destroyRendering:function(b){this.bgIframe&&(this.bgIframe.destroy(b),delete this.bgIframe);
this.domNode&&(b?d.remove(this.domNode,"widgetId"):a.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(b||a.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(a){n.forEach(this.getChildren(),function(b){b.destroyRecursive&&b.destroyRecursive(a)})},uninitialize:function(){return!1},_setStyleAttr:function(a){var b=this.domNode;t.isObject(a)?f.set(b,a):b.style.cssText=b.style.cssText?b.style.cssText+("; "+a):a;this._set("style",a)},_attrToDom:function(a,c,f){f=3<=
arguments.length?f:this.attributeMap[a];n.forEach(t.isArray(f)?f:[f],function(f){var e=this[f.node||f||"domNode"];switch(f.type||"attribute"){case "attribute":t.isFunction(c)&&(c=t.hitch(this,c));f=f.attribute?f.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;e.tagName?d.set(e,f,c):e.set(f,c);break;case "innerText":e.innerHTML="";e.appendChild(this.ownerDocument.createTextNode(c));break;case "innerHTML":e.innerHTML=c;break;case "class":b.replace(e,c,this[a])}},this)},get:function(a){var b=
this._getAttrNames(a);return this[b.g]?this[b.g]():this._get(a)},set:function(a,b){if("object"===typeof a){for(var c in a)this.set(c,a[c]);return this}c=this._getAttrNames(a);var f=this[c.s];if(t.isFunction(f))var d=f.apply(this,Array.prototype.slice.call(arguments,1));else{var f=this.focusNode&&!t.isFunction(this.focusNode)?"focusNode":"domNode",e=this[f]&&this[f].tagName,m;if(m=e)if(!(m=D[e])){m=this[f];var g={},h;for(h in m)g[h.toLowerCase()]=!0;m=D[e]=g}h=m;c=a in this.attributeMap?this.attributeMap[a]:
c.s in this?this[c.s]:h&&c.l in h&&"function"!=typeof b||/^aria-|^data-|^role$/.test(a)?f:null;null!=c&&this._attrToDom(a,b,c);this._set(a,b)}return d||this},_attrPairNames:{},_getAttrNames:function(a){var b=this._attrPairNames;if(b[a])return b[a];var c=a.replace(/^[a-z]|-[a-zA-Z]/g,function(a){return a.charAt(a.length-1).toUpperCase()});return b[a]={n:a+"Node",s:"_set"+c+"Attr",g:"_get"+c+"Attr",l:c.toLowerCase()}},_set:function(a,b){var c=this[a];this[a]=b;if(this._created&&!(c===b||c!==c&&b!==
b))this._watchCallbacks&&this._watchCallbacks(a,c,b),this.emit("attrmodified-"+a,{detail:{prevValue:c,newValue:b}})},_get:function(a){return this[a]},emit:function(a,b,c){b=b||{};void 0===b.bubbles&&(b.bubbles=!0);void 0===b.cancelable&&(b.cancelable=!0);b.detail||(b.detail={});b.detail.widget=this;var f,d=this["on"+a];d&&(f=d.apply(this,c?c:[b]));this._started&&!this._beingDestroyed&&r.emit(this.domNode,a.toLowerCase(),b);return f},on:function(a,b){var c=this._onMap(a);return c?k.after(this,c,b,
!0):this.own(r(this.domNode,a,b))[0]},_onMap:function(a){var b=this.constructor,c=b._onMap;if(!c){var c=b._onMap={},f;for(f in b.prototype)/^on/.test(f)&&(c[f.replace(/^on/,"").toLowerCase()]=f)}return c["string"==typeof a&&a.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getChildren:function(){return this.containerNode?x.findWidgets(this.containerNode):[]},getParent:function(){return x.getEnclosingWidget(this.domNode.parentNode)},connect:function(a,
b,c){return this.own(h.connect(a,b,this,c))[0]},disconnect:function(a){a.remove()},subscribe:function(a,b){return this.own(A.subscribe(a,t.hitch(this,b)))[0]},unsubscribe:function(a){a.remove()},isLeftToRight:function(){return this.dir?"ltr"==this.dir:c.isBodyLtr(this.ownerDocument)},isFocusable:function(){return this.focus&&"none"!=f.get(this.domNode,"display")},placeAt:function(b,c){var f=!b.tagName&&x.byId(b);f&&f.addChild&&(!c||"number"===typeof c)?f.addChild(this,c):(f=f&&"domNode"in f?f.containerNode&&
!/after|before|replace/.test(c||"")?f.containerNode:f.domNode:e.byId(b,this.ownerDocument),a.place(this.domNode,f,c),!this._started&&(this.getParent()||{})._started&&this.startup());return this},defer:function(a,b){var c=setTimeout(t.hitch(this,function(){c&&(c=null,this._destroyed||t.hitch(this,a)())}),b||0);return{remove:function(){c&&(clearTimeout(c),c=null);return null}}}});m("dojo-bidi")&&q.extend(z);return q})},"dijit/Destroyable":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare"],
function(l,n,k){return k("dijit.Destroyable",null,{destroy:function(k){this._destroyed=!0},own:function(){var k=["destroyRecursive","destroy","remove"];l.forEach(arguments,function(h){function g(){d.remove();l.forEach(b,function(a){a.remove()})}var e,d=n.before(this,"destroy",function(a){h[e](a)}),b=[];h.then?(e="cancel",h.then(g,g)):l.forEach(k,function(a){"function"===typeof h[a]&&(e||(e=a),b.push(n.after(h,a,g,!0)))})},this);return arguments}})})},"dijit/_OnDijitClickMixin":function(){define("dojo/on dojo/_base/array dojo/keys dojo/_base/declare dojo/has ./a11yclick".split(" "),
function(l,n,k,q,h,g){l=q("dijit._OnDijitClickMixin",null,{connect:function(e,d,b){return this.inherited(arguments,[e,"ondijitclick"==d?g:d,b])}});l.a11yclick=g;return l})},"dijit/a11yclick":function(){define(["dojo/keys","dojo/mouse","dojo/on","dojo/touch"],function(l,n,k,q){function h(d){if((d.keyCode===l.ENTER||d.keyCode===l.SPACE)&&!/input|button|textarea/i.test(d.target.nodeName))for(d=d.target;d;d=d.parentNode)if(d.dojoClick)return!0}var g;k(document,"keydown",function(d){h(d)?(g=d.target,d.preventDefault()):
g=null});k(document,"keyup",function(d){h(d)&&d.target==g&&(g=null,k.emit(d.target,"click",{cancelable:!0,bubbles:!0,ctrlKey:d.ctrlKey,shiftKey:d.shiftKey,metaKey:d.metaKey,altKey:d.altKey,_origType:d.type}))});var e=function(d,b){d.dojoClick=!0;return k(d,"click",b)};e.click=e;e.press=function(d,b){var a=k(d,q.press,function(a){("mousedown"!=a.type||n.isLeft(a))&&b(a)}),c=k(d,"keydown",function(a){(a.keyCode===l.ENTER||a.keyCode===l.SPACE)&&b(a)});return{remove:function(){a.remove();c.remove()}}};
e.release=function(d,b){var a=k(d,q.release,function(a){("mouseup"!=a.type||n.isLeft(a))&&b(a)}),c=k(d,"keyup",function(a){(a.keyCode===l.ENTER||a.keyCode===l.SPACE)&&b(a)});return{remove:function(){a.remove();c.remove()}}};e.move=q.move;return e})},"dojo/touch":function(){define("./_base/kernel ./aspect ./dom ./dom-class ./_base/lang ./on ./has ./mouse ./domReady ./_base/window".split(" "),function(l,n,k,q,h,g,e,d,b,a){function c(a,b,c){return t&&c?function(a,b){return g(a,c,b)}:u?function(c,f){var d=
g(c,b,function(a){f.call(this,a);F=(new Date).getTime()}),e=g(c,a,function(a){(!F||(new Date).getTime()>F+1E3)&&f.call(this,a)});return{remove:function(){d.remove();e.remove()}}}:function(b,c){return g(b,a,c)}}function f(a){do if(void 0!==a.dojoClick)return a;while(a=a.parentNode)}function m(b,c,d){var e=f(b.target);if(A=!b.target.disabled&&e&&e.dojoClick)if(w=(y="useTarget"==A)?e:b.target,y&&b.preventDefault(),z=b.changedTouches?b.changedTouches[0].pageX-a.global.pageXOffset:b.clientX,x=b.changedTouches?
b.changedTouches[0].pageY-a.global.pageYOffset:b.clientY,B=("object"==typeof A?A.x:"number"==typeof A?A:0)||4,D=("object"==typeof A?A.y:"number"==typeof A?A:0)||4,!v){v=!0;var m=function(b){A=y?k.isDescendant(a.doc.elementFromPoint(b.changedTouches?b.changedTouches[0].pageX-a.global.pageXOffset:b.clientX,b.changedTouches?b.changedTouches[0].pageY-a.global.pageYOffset:b.clientY),w):A&&(b.changedTouches?b.changedTouches[0].target:b.target)==w&&Math.abs((b.changedTouches?b.changedTouches[0].pageX-a.global.pageXOffset:
b.clientX)-z)<=B&&Math.abs((b.changedTouches?b.changedTouches[0].pageY-a.global.pageYOffset:b.clientY)-x)<=D};a.doc.addEventListener(c,function(a){m(a);y&&a.preventDefault()},!0);a.doc.addEventListener(d,function(a){m(a);if(A){C=(new Date).getTime();var b=y?w:a.target;"LABEL"===b.tagName&&(b=k.byId(b.getAttribute("for"))||b);var c=a.changedTouches?a.changedTouches[0]:a,f=document.createEvent("MouseEvents");f._dojo_click=!0;f.initMouseEvent("click",!0,!0,a.view,a.detail,c.screenX,c.screenY,c.clientX,
c.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,null);setTimeout(function(){g.emit(b,"click",f);C=(new Date).getTime()},0)}},!0);b=function(b){a.doc.addEventListener(b,function(a){!a._dojo_click&&((new Date).getTime()<=C+1E3&&!("INPUT"==a.target.tagName&&q.contains(a.target,"dijitOffScreen")))&&(a.stopPropagation(),a.stopImmediatePropagation&&a.stopImmediatePropagation(),"click"==b&&(("INPUT"!=a.target.tagName||"radio"==a.target.type||"checkbox"==a.target.type)&&"TEXTAREA"!=a.target.tagName&&
"AUDIO"!=a.target.tagName&&"VIDEO"!=a.target.tagName)&&a.preventDefault())},!0)};b("click");b("mousedown");b("mouseup")}}var s=5>e("ios"),t=e("pointer-events")||e("MSPointer"),r=function(){var a={},b;for(b in{down:1,move:1,up:1,cancel:1,over:1,out:1})a[b]=e("MSPointer")?"MSPointer"+b.charAt(0).toUpperCase()+b.slice(1):"pointer"+b;return a}(),u=e("touch-events"),v,A,y=!1,w,z,x,B,D,C,F,I;t?b(function(){a.doc.addEventListener(r.down,function(a){m(a,r.move,r.up)},!0)}):u&&b(function(){function b(a){var c=
h.delegate(a,{bubbles:!0});6<=e("ios")&&(c.touches=a.touches,c.altKey=a.altKey,c.changedTouches=a.changedTouches,c.ctrlKey=a.ctrlKey,c.metaKey=a.metaKey,c.shiftKey=a.shiftKey,c.targetTouches=a.targetTouches);return c}I=a.body();a.doc.addEventListener("touchstart",function(a){F=(new Date).getTime();var b=I;I=a.target;g.emit(b,"dojotouchout",{relatedTarget:I,bubbles:!0});g.emit(I,"dojotouchover",{relatedTarget:b,bubbles:!0});m(a,"touchmove","touchend")},!0);g(a.doc,"touchmove",function(c){F=(new Date).getTime();
var f=a.doc.elementFromPoint(c.pageX-(s?0:a.global.pageXOffset),c.pageY-(s?0:a.global.pageYOffset));f&&(I!==f&&(g.emit(I,"dojotouchout",{relatedTarget:f,bubbles:!0}),g.emit(f,"dojotouchover",{relatedTarget:I,bubbles:!0}),I=f),g.emit(f,"dojotouchmove",b(c))||c.preventDefault())});g(a.doc,"touchend",function(c){F=(new Date).getTime();var f=a.doc.elementFromPoint(c.pageX-(s?0:a.global.pageXOffset),c.pageY-(s?0:a.global.pageYOffset))||a.body();g.emit(f,"dojotouchend",b(c))})});n={press:c("mousedown",
"touchstart",r.down),move:c("mousemove","dojotouchmove",r.move),release:c("mouseup","dojotouchend",r.up),cancel:c(d.leave,"touchcancel",t?r.cancel:null),over:c("mouseover","dojotouchover",r.over),out:c("mouseout","dojotouchout",r.out),enter:d._eventHandler(c("mouseover","dojotouchover",r.over)),leave:d._eventHandler(c("mouseout","dojotouchout",r.out))};return l.touch=n})},"dijit/_FocusMixin":function(){define(["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(l,n,k,q){q.extend(n,
{focused:!1,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()}});return k("dijit._FocusMixin",null,{_focusManager:l})})},"dijit/focus":function(){define("dojo/aspect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/Evented dojo/_base/lang dojo/on dojo/domReady dojo/sniff dojo/Stateful dojo/_base/window dojo/window ./a11y ./registry ./main".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u){var v,A,y=new (n([f,
e],{curNode:null,activeStack:[],constructor:function(){var a=d.hitch(this,function(a){k.isDescendant(this.curNode,a)&&this.set("curNode",null);k.isDescendant(this.prevNode,a)&&this.set("prevNode",null)});l.before(g,"empty",a);l.before(g,"destroy",a)},registerIframe:function(a){return this.registerWin(a.contentWindow,a)},registerWin:function(a,f){var d=this,e=a.document&&a.document.body;if(e){var m=c("pointer-events")?"pointerdown":c("MSPointer")?"MSPointerDown":c("touch-events")?"mousedown, touchstart":
"mousedown",g=b(a.document,m,function(a){if(!a||!(a.target&&null==a.target.parentNode))d._onTouchNode(f||a.target,"mouse")}),h=b(e,"focusin",function(a){if(a.target.tagName){var b=a.target.tagName.toLowerCase();"#document"==b||"body"==b||(t.isFocusable(a.target)?d._onFocusNode(f||a.target):d._onTouchNode(f||a.target))}}),k=b(e,"focusout",function(a){d._onBlurNode(f||a.target)});return{remove:function(){g.remove();h.remove();k.remove();e=g=h=k=null}}}},_onBlurNode:function(a){a=(new Date).getTime();
a<v+100||(this._clearFocusTimer&&clearTimeout(this._clearFocusTimer),this._clearFocusTimer=setTimeout(d.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null)}),0),this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),a<A+100||(this._clearActiveWidgetsTimer=setTimeout(d.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([])}),0)))},_onTouchNode:function(a,b){A=(new Date).getTime();this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),
delete this._clearActiveWidgetsTimer);h.contains(a,"dijitPopup")&&(a=a.firstChild);var c=[];try{for(;a;){var f=q.get(a,"dijitPopupParent");if(f)a=r.byId(f).domNode;else if(a.tagName&&"body"==a.tagName.toLowerCase()){if(a===m.body())break;a=s.get(a.ownerDocument).frameElement}else{var d=a.getAttribute&&a.getAttribute("widgetId"),e=d&&r.byId(d);e&&!("mouse"==b&&e.get("disabled"))&&c.unshift(d);a=a.parentNode}}}catch(g){}this._setStack(c,b)},_onFocusNode:function(a){a&&9!=a.nodeType&&(v=(new Date).getTime(),
this._clearFocusTimer&&(clearTimeout(this._clearFocusTimer),delete this._clearFocusTimer),this._onTouchNode(a),a!=this.curNode&&(this.set("prevNode",this.curNode),this.set("curNode",a)))},_setStack:function(a,b){var c=this.activeStack,f=c.length-1,d=a.length-1;if(a[d]!=c[f]){this.set("activeStack",a);var e;for(e=f;0<=e&&c[e]!=a[e];e--)if(f=r.byId(c[e]))f._hasBeenBlurred=!0,f.set("focused",!1),f._focusManager==this&&f._onBlur(b),this.emit("widget-blur",f,b);for(e++;e<=d;e++)if(f=r.byId(a[e]))f.set("focused",
!0),f._focusManager==this&&f._onFocus(b),this.emit("widget-focus",f,b)}},focus:function(a){if(a)try{a.focus()}catch(b){}}}));a(function(){var a=y.registerWin(s.get(document));c("ie")&&b(window,"unload",function(){a&&(a.remove(),a=null)})});u.focus=function(a){y.focus(a)};for(var w in y)/^_/.test(w)||(u.focus[w]="function"==typeof y[w]?d.hitch(y,w):y[w]);y.watch(function(a,b,c){u.focus[a]=c});return y})},"dijit/a11y":function(){define("dojo/_base/array dojo/dom dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/sniff ./main".split(" "),
function(l,n,k,q,h,g,e){var d={_isElementShown:function(b){var a=q.get(b);return"hidden"!=a.visibility&&"collapsed"!=a.visibility&&"none"!=a.display&&"hidden"!=k.get(b,"type")},hasDefaultTabStop:function(b){switch(b.nodeName.toLowerCase()){case "a":return k.has(b,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":var a;try{var c=b.contentDocument;if("designMode"in c&&"on"==c.designMode)return!0;a=c.body}catch(f){try{a=b.contentWindow.document.body}catch(d){return!1}}return a&&
("true"==a.contentEditable||a.firstChild&&"true"==a.firstChild.contentEditable);default:return"true"==b.contentEditable}},effectiveTabIndex:function(b){return k.get(b,"disabled")?void 0:k.has(b,"tabIndex")?+k.get(b,"tabIndex"):d.hasDefaultTabStop(b)?0:void 0},isTabNavigable:function(b){return 0<=d.effectiveTabIndex(b)},isFocusable:function(b){return-1<=d.effectiveTabIndex(b)},_getTabNavigable:function(b){function a(a){return a&&"input"==a.tagName.toLowerCase()&&a.type&&"radio"==a.type.toLowerCase()&&
a.name&&a.name.toLowerCase()}var c,f,e,h,l,n,q={},v=d._isElementShown,A=d.effectiveTabIndex,y=function(b){for(b=b.firstChild;b;b=b.nextSibling)if(!(1!=b.nodeType||9>=g("ie")&&"HTML"!==b.scopeName||!v(b))){var d=A(b);if(0<=d){if(0==d)c||(c=b),f=b;else if(0<d){if(!e||d<h)h=d,e=b;if(!l||d>=n)n=d,l=b}d=a(b);k.get(b,"checked")&&d&&(q[d]=b)}"SELECT"!=b.nodeName.toUpperCase()&&y(b)}};v(b)&&y(b);return{first:q[a(c)]||c,last:q[a(f)]||f,lowest:q[a(e)]||e,highest:q[a(l)]||l}},getFirstInTabbingOrder:function(b,
a){var c=d._getTabNavigable(n.byId(b,a));return c.lowest?c.lowest:c.first},getLastInTabbingOrder:function(b,a){var c=d._getTabNavigable(n.byId(b,a));return c.last?c.last:c.highest}};h.mixin(e,d);return d})},"dijit/hccss":function(){define(["dojo/dom-class","dojo/hccss","dojo/domReady","dojo/_base/window"],function(l,n,k,q){k(function(){n("highcontrast")&&l.add(q.body(),"dijit_a11y")});return n})},"dojo/hccss":function(){define("require ./_base/config ./dom-class ./dom-style ./has ./domReady ./_base/window".split(" "),
function(l,n,k,q,h,g,e){h.add("highcontrast",function(){var d=e.doc.createElement("div");d.style.cssText='border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;background-image: url("'+(n.blankGif||l.toUrl("./resources/blank.gif"))+'");';e.body().appendChild(d);var b=q.getComputedStyle(d),a=b.backgroundImage,b=b.borderTopColor==b.borderRightColor||a&&("none"==a||"url(invalid-url:)"==a);8>=h("ie")?d.outerHTML="":e.body().removeChild(d);return b});g(function(){h("highcontrast")&&
k.add(e.body(),"dj_a11y")});return h})},"dijit/_Templated":function(){define("./_WidgetBase ./_TemplatedMixin ./_WidgetsInTemplateMixin dojo/_base/array dojo/_base/declare dojo/_base/lang dojo/_base/kernel".split(" "),function(l,n,k,q,h,g,e){g.extend(l,{waiRole:"",waiState:""});return h("dijit._Templated",[n,k],{widgetsInTemplate:!1,constructor:function(){e.deprecated(this.declaredClass+": dijit._Templated deprecated, use dijit._TemplatedMixin and if necessary dijit._WidgetsInTemplateMixin","","2.0")},
_processNode:function(d,b){var a=this.inherited(arguments),c=b(d,"waiRole");c&&d.setAttribute("role",c);(c=b(d,"waiState"))&&q.forEach(c.split(/\s*,\s*/),function(a){-1!=a.indexOf("-")&&(a=a.split("-"),d.setAttribute("aria-"+a[0],a[1]))});return a}})})},"dijit/_TemplatedMixin":function(){define("dojo/cache dojo/_base/declare dojo/dom-construct dojo/_base/lang dojo/on dojo/sniff dojo/string ./_AttachMixin".split(" "),function(l,n,k,q,h,g,e,d){var b=n("dijit._TemplatedMixin",d,{templateString:null,
templatePath:null,_skipNodeCache:!1,searchContainerNode:!0,_stringRepl:function(a){var b=this.declaredClass,f=this;return e.substitute(a,this,function(a,d){"!"==d.charAt(0)&&(a=q.getObject(d.substr(1),!1,f));if("undefined"==typeof a)throw Error(b+" template:"+d);return null==a?"":"!"==d.charAt(0)?a:this._escapeValue(""+a)},this)},_escapeValue:function(a){return a.replace(/["'<>&]/g,function(a){return{"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;"}[a]})},buildRendering:function(){if(!this._rendered){this.templateString||
(this.templateString=l(this.templatePath,{sanitize:!0}));var a=b.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument),c;if(q.isString(a)){if(c=k.toDom(this._stringRepl(a),this.ownerDocument),1!=c.nodeType)throw Error("Invalid template: "+a);}else c=a.cloneNode(!0);this.domNode=c}this.inherited(arguments);this._rendered||this._fillContent(this.srcNodeRef);this._rendered=!0},_fillContent:function(a){var b=this.containerNode;if(a&&b)for(;a.hasChildNodes();)b.appendChild(a.firstChild)}});
b._templateCache={};b.getCachedTemplate=function(a,c,f){var d=b._templateCache,g=a,h=d[g];if(h){try{if(!h.ownerDocument||h.ownerDocument==(f||document))return h}catch(l){}k.destroy(h)}a=e.trim(a);if(c||a.match(/\$\{([^\}]+)\}/g))return d[g]=a;c=k.toDom(a,f);if(1!=c.nodeType)throw Error("Invalid template: "+a);return d[g]=c};g("ie")&&h(window,"unload",function(){var a=b._templateCache,c;for(c in a){var f=a[c];"object"==typeof f&&k.destroy(f);delete a[c]}});return b})},"dojo/cache":function(){define(["./_base/kernel",
"./text"],function(l){return l.cache})},"dojo/text":function(){define(["./_base/kernel","require","./has","./request"],function(l,n,k,q){var h;h=function(a,b,f){q(a,{sync:!!b,headers:{"X-Requested-With":null}}).then(f)};var g={},e=function(a){if(a){a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var b=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);b&&(a=b[1])}else a="";return a},d={},b={};l.cache=function(a,b,f){var d;"string"==typeof a?/\//.test(a)?(d=a,f=b):d=n.toUrl(a.replace(/\./g,
"/")+(b?"/"+b:"")):(d=a+"",f=b);a=void 0!=f&&"string"!=typeof f?f.value:f;f=f&&f.sanitize;if("string"==typeof a)return g[d]=a,f?e(a):a;if(null===a)return delete g[d],null;d in g||h(d,!0,function(a){g[d]=a});return f?e(g[d]):g[d]};return{dynamic:!0,normalize:function(a,b){var f=a.split("!"),d=f[0];return(/^\./.test(d)?b(d):d)+(f[1]?"!"+f[1]:"")},load:function(a,c,f){a=a.split("!");var m=1<a.length,k=a[0],l=c.toUrl(a[0]);a="url:"+l;var n=d,q=function(a){f(m?e(a):a)};k in g?n=g[k]:c.cache&&a in c.cache?
n=c.cache[a]:l in g&&(n=g[l]);if(n===d)if(b[l])b[l].push(q);else{var v=b[l]=[q];h(l,!c.async,function(a){g[k]=g[l]=a;for(var c=0;c<v.length;)v[c++](a);delete b[l]})}else q(n)}}})},"dojo/request":function(){define(["./request/default!"],function(l){return l})},"dojo/request/default":function(){define(["exports","require","../has"],function(l,n,k){var q=k("config-requestProvider");q||(q="./xhr");l.getPlatformDefaultId=function(){return"./xhr"};l.load=function(h,g,e,d){n(["platform"==h?"./xhr":q],function(b){e(b)})}})},
"dijit/_AttachMixin":function(){define("require dojo/_base/array dojo/_base/connect dojo/_base/declare dojo/_base/lang dojo/mouse dojo/on dojo/touch ./_WidgetBase".split(" "),function(l,n,k,q,h,g,e,d,b){var a=h.delegate(d,{mouseenter:g.enter,mouseleave:g.leave,keypress:k._keypress}),c;k=q("dijit._AttachMixin",null,{constructor:function(){this._attachPoints=[];this._attachEvents=[]},buildRendering:function(){this.inherited(arguments);this._attachTemplateNodes(this.domNode);this._beforeFillContent()},
_beforeFillContent:function(){},_attachTemplateNodes:function(a){for(var b=a;;)if(1==b.nodeType&&(this._processTemplateNode(b,function(a,b){return a.getAttribute(b)},this._attach)||this.searchContainerNode)&&b.firstChild)b=b.firstChild;else{if(b==a)break;for(;!b.nextSibling;)if(b=b.parentNode,b==a)return;b=b.nextSibling}},_processTemplateNode:function(a,b,c){var d=!0,e=this.attachScope||this,g=b(a,"dojoAttachPoint")||b(a,"data-dojo-attach-point");if(g)for(var k=g.split(/\s*,\s*/);g=k.shift();)h.isArray(e[g])?
e[g].push(a):e[g]=a,d="containerNode"!=g,this._attachPoints.push(g);if(b=b(a,"dojoAttachEvent")||b(a,"data-dojo-attach-event")){g=b.split(/\s*,\s*/);for(k=h.trim;b=g.shift();)if(b){var l=null;-1!=b.indexOf(":")?(l=b.split(":"),b=k(l[0]),l=k(l[1])):b=k(b);l||(l=b);this._attachEvents.push(c(a,b,h.hitch(e,l)))}}return d},_attach:function(b,d,g){d=d.replace(/^on/,"").toLowerCase();d="dijitclick"==d?c||(c=l("./a11yclick")):a[d]||d;return e(b,d,g)},_detachTemplateNodes:function(){var a=this.attachScope||
this;n.forEach(this._attachPoints,function(b){delete a[b]});this._attachPoints=[];n.forEach(this._attachEvents,function(a){a.remove()});this._attachEvents=[]},destroyRendering:function(){this._detachTemplateNodes();this.inherited(arguments)}});h.extend(b,{dojoAttachEvent:"",dojoAttachPoint:""});return k})},"dijit/_WidgetsInTemplateMixin":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/_base/lang","dojo/parser"],function(l,n,k,q,h){return k("dijit._WidgetsInTemplateMixin",
null,{_earlyTemplatedStartup:!1,widgetsInTemplate:!0,contextRequire:null,_beforeFillContent:function(){if(this.widgetsInTemplate){var g=this.domNode;this.containerNode&&!this.searchContainerNode&&(this.containerNode.stopParser=!0);h.parse(g,{noStart:!this._earlyTemplatedStartup,template:!0,inherited:{dir:this.dir,lang:this.lang,textDir:this.textDir},propsThis:this,contextRequire:this.contextRequire,scope:"dojo"}).then(q.hitch(this,function(e){this._startupWidgets=e;for(var d=0;d<e.length;d++)this._processTemplateNode(e[d],
function(b,a){return b[a]},function(b,a,c){return a in b?b.connect(b,a,c):b.on(a,c,!0)});this.containerNode&&this.containerNode.stopParser&&delete this.containerNode.stopParser}));if(!this._startupWidgets)throw Error(this.declaredClass+": parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin. Must pre-load all supporting widgets before instantiation.");}},_processTemplateNode:function(g,e,d){return e(g,"dojoType")||e(g,"data-dojo-type")?
!0:this.inherited(arguments)},startup:function(){l.forEach(this._startupWidgets,function(g){g&&(!g._started&&g.startup)&&g.startup()});this._startupWidgets=null;this.inherited(arguments)}})})},"dojo/parser":function(){define("require ./_base/kernel ./_base/lang ./_base/array ./_base/config ./dom ./_base/window ./_base/url ./aspect ./promise/all ./date/stamp ./Deferred ./has ./query ./on ./ready".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r){function u(a){return eval("("+a+")")}function v(a){var b=
a._nameCaseMap,c=a.prototype;if(!b||b._extendCnt<y){var b=a._nameCaseMap={},f;for(f in c)"_"!==f.charAt(0)&&(b[f.toLowerCase()]=f);b._extendCnt=y}return b}function A(a,b){var c=a.join();if(!w[c]){for(var f=[],d=0,e=a.length;d<e;d++){var m=a[d];f[f.length]=w[m]=w[m]||k.getObject(m)||~m.indexOf("/")&&(b?b(m):l(m))}d=f.shift();w[c]=f.length?d.createSubclass?d.createSubclass(f):d.extend.apply(d,f):d}return w[c]}new Date("X");var y=0;b.after(k,"extend",function(){y++},!0);var w={},z={_clearCache:function(){y++;
w={}},_functionFromScript:function(a,b){var c="",f="",d=a.getAttribute(b+"args")||a.getAttribute("args"),e=a.getAttribute("with"),d=(d||"").split(/\s*,\s*/);e&&e.length&&q.forEach(e.split(/\s*,\s*/),function(a){c+="with("+a+"){";f+="}"});return new Function(d,c+a.innerHTML+f)},instantiate:function(a,b,c){b=b||{};c=c||{};var f=(c.scope||n._scopeName)+"Type",d="data-"+(c.scope||n._scopeName)+"-",e=d+"type",m=d+"mixins",g=[];q.forEach(a,function(a){var c=f in b?b[f]:a.getAttribute(e)||a.getAttribute(f);
if(c){var d=a.getAttribute(m),c=d?[c].concat(d.split(/\s*,\s*/)):[c];g.push({node:a,types:c})}});return this._instantiate(g,b,c)},_instantiate:function(b,c,f,d){function e(a){!c._started&&!f.noStart&&q.forEach(a,function(a){"function"===typeof a.startup&&!a._started&&a.startup()});return a}b=q.map(b,function(a){var b=a.ctor||A(a.types,f.contextRequire);if(!b)throw Error("Unable to resolve constructor for: '"+a.types.join()+"'");return this.construct(b,a.node,c,f,a.scripts,a.inherited)},this);return d?
a(b).then(e):e(b)},construct:function(a,f,e,g,h,l){function r(a){O&&k.setObject(O,a);for(M=0;M<R.length;M++)b[R[M].advice||"after"](a,R[M].method,k.hitch(a,R[M].func),!0);for(M=0;M<U.length;M++)U[M].call(a);for(M=0;M<S.length;M++)a.watch(S[M].prop,S[M].func);for(M=0;M<V.length;M++)t(a,V[M].event,V[M].func);return a}var w=a&&a.prototype;g=g||{};var z={};g.defaults&&k.mixin(z,g.defaults);l&&k.mixin(z,l);var A;m("dom-attributes-explicit")?A=f.attributes:m("dom-attributes-specified-flag")?A=q.filter(f.attributes,
function(a){return a.specified}):(l=(/^input$|^img$/i.test(f.nodeName)?f:f.cloneNode(!1)).outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,""),A=q.map(l.split(/\s+/),function(a){var b=a.toLowerCase();return{name:a,value:"LI"==f.nodeName&&"value"==a||"enctype"==b?f.getAttribute(b):f.getAttributeNode(b).value}}));var y=g.scope||n._scopeName;l="data-"+y+"-";var H={};"dojo"!==y&&(H[l+"props"]="data-dojo-props",H[l+"type"]="data-dojo-type",H[l+"mixins"]=
"data-dojo-mixins",H[y+"type"]="dojoType",H[l+"id"]="data-dojo-id");for(var M=0,N,y=[],O,P;N=A[M++];){var Q=N.name,W=Q.toLowerCase();N=N.value;switch(H[W]||W){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;case "data-dojo-props":P=N;break;case "data-dojo-id":case "jsid":O=N;break;case "data-dojo-attach-point":case "dojoattachpoint":z.dojoAttachPoint=N;break;case "data-dojo-attach-event":case "dojoattachevent":z.dojoAttachEvent=N;break;case "class":z["class"]=f.className;break;
case "style":z.style=f.style&&f.style.cssText;break;default:if(Q in w||(Q=v(a)[W]||Q),Q in w)switch(typeof w[Q]){case "string":z[Q]=N;break;case "number":z[Q]=N.length?Number(N):NaN;break;case "boolean":z[Q]="false"!=N.toLowerCase();break;case "function":""===N||-1!=N.search(/[^\w\.]+/i)?z[Q]=new Function(N):z[Q]=k.getObject(N,!1)||new Function(N);y.push(Q);break;default:W=w[Q],z[Q]=W&&"length"in W?N?N.split(/\s*,\s*/):[]:W instanceof Date?""==N?new Date(""):"now"==N?new Date:c.fromISOString(N):W instanceof
d?n.baseUrl+N:u(N)}else z[Q]=N}}for(A=0;A<y.length;A++)H=y[A].toLowerCase(),f.removeAttribute(H),f[H]=null;if(P)try{P=u.call(g.propsThis,"{"+P+"}"),k.mixin(z,P)}catch(X){throw Error(X.toString()+" in data-dojo-props\x3d'"+P+"'");}k.mixin(z,e);h||(h=a&&(a._noScript||w._noScript)?[]:s("\x3e script[type^\x3d'dojo/']",f));var R=[],U=[],S=[],V=[];if(h)for(M=0;M<h.length;M++)H=h[M],f.removeChild(H),e=H.getAttribute(l+"event")||H.getAttribute("event"),g=H.getAttribute(l+"prop"),P=H.getAttribute(l+"method"),
y=H.getAttribute(l+"advice"),A=H.getAttribute("type"),H=this._functionFromScript(H,l),e?"dojo/connect"==A?R.push({method:e,func:H}):"dojo/on"==A?V.push({event:e,func:H}):z[e]=H:"dojo/aspect"==A?R.push({method:P,advice:y,func:H}):"dojo/watch"==A?S.push({prop:g,func:H}):U.push(H);a=(h=a.markupFactory||w.markupFactory)?h(z,f,a):new a(z,f);return a.then?a.then(r):r(a)},scan:function(a,b){function c(a){if(!a.inherited){a.inherited={};var b=a.node,f=c(a.parent),b={dir:b.getAttribute("dir")||f.dir,lang:b.getAttribute("lang")||
f.lang,textDir:b.getAttribute(r)||f.textDir},d;for(d in b)b[d]&&(a.inherited[d]=b[d])}return a.inherited}var d=[],e=[],m={},g=(b.scope||n._scopeName)+"Type",h="data-"+(b.scope||n._scopeName)+"-",k=h+"type",r=h+"textdir",h=h+"mixins",s=a.firstChild,t=b.inherited;if(!t){var w=function(a,b){return a.getAttribute&&a.getAttribute(b)||a.parentNode&&w(a.parentNode,b)},t={dir:w(a,"dir"),lang:w(a,"lang"),textDir:w(a,r)},u;for(u in t)t[u]||delete t[u]}for(var t={inherited:t},z,v;;)if(s)if(1!=s.nodeType)s=s.nextSibling;
else if(z&&"script"==s.nodeName.toLowerCase())(y=s.getAttribute("type"))&&/^dojo\/\w/i.test(y)&&z.push(s),s=s.nextSibling;else if(v)s=s.nextSibling;else{var y=s.getAttribute(k)||s.getAttribute(g);u=s.firstChild;if(!y&&(!u||3==u.nodeType&&!u.nextSibling))s=s.nextSibling;else{v=null;if(y){var W=s.getAttribute(h);z=W?[y].concat(W.split(/\s*,\s*/)):[y];try{v=A(z,b.contextRequire)}catch(X){}v||q.forEach(z,function(a){~a.indexOf("/")&&!m[a]&&(m[a]=!0,e[e.length]=a)});W=v&&!v.prototype._noScript?[]:null;
t={types:z,ctor:v,parent:t,node:s,scripts:W};t.inherited=c(t);d.push(t)}else t={node:s,scripts:z,parent:t};z=W;v=s.stopParser||v&&v.prototype.stopParser&&!b.template;s=u}}else{if(!t||!t.node)break;s=t.node.nextSibling;v=!1;t=t.parent;z=t.scripts}var R=new f;e.length?(b.contextRequire||l)(e,function(){R.resolve(q.filter(d,function(a){if(!a.ctor)try{a.ctor=A(a.types,b.contextRequire)}catch(c){}for(var f=a.parent;f&&!f.types;)f=f.parent;var d=a.ctor&&a.ctor.prototype;a.instantiateChildren=!(d&&d.stopParser&&
!b.template);a.instantiate=!f||f.instantiate&&f.instantiateChildren;return a.instantiate}))}):R.resolve(d);return R.promise},_require:function(a,b){var c=u("{"+a.innerHTML+"}"),d=[],e=[],m=new f,g=b&&b.contextRequire||l,h;for(h in c)d.push(h),e.push(c[h]);g(e,function(){for(var a=0;a<d.length;a++)k.setObject(d[a],arguments[a]);m.resolve(arguments)});return m.promise},_scanAmd:function(a,b){var c=new f,d=c.promise;c.resolve(!0);var e=this;s("script[type\x3d'dojo/require']",a).forEach(function(a){d=
d.then(function(){return e._require(a,b)});a.parentNode.removeChild(a)});return d},parse:function(a,b){var c;!b&&a&&a.rootNode?(b=a,c=b.rootNode):a&&k.isObject(a)&&!("nodeType"in a)?b=a:c=a;c=c?g.byId(c):e.body();b=b||{};var f=b.template?{template:!0}:{},d=[],m=this,h=this._scanAmd(c,b).then(function(){return m.scan(c,b)}).then(function(a){return m._instantiate(a,f,b,!0)}).then(function(a){return d=d.concat(a)}).otherwise(function(a){console.error("dojo/parser::parse() error",a);throw a;});k.mixin(d,
h);return d}};n.parser=z;h.parseOnLoad&&r(100,z,"parse");return z})},"dojo/date/stamp":function(){define(["../_base/lang","../_base/array"],function(l,n){var k={};l.setObject("dojo.date.stamp",k);k.fromISOString=function(l,h){k._isoRegExp||(k._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/);var g=k._isoRegExp.exec(l),e=null;if(g){g.shift();g[1]&&g[1]--;g[6]&&(g[6]*=1E3);h&&(h=new Date(h),n.forEach(n.map("FullYear Month Date Hours Minutes Seconds Milliseconds".split(" "),
function(a){return h["get"+a]()}),function(a,b){g[b]=g[b]||a}));e=new Date(g[0]||1970,g[1]||0,g[2]||1,g[3]||0,g[4]||0,g[5]||0,g[6]||0);100>g[0]&&e.setFullYear(g[0]||1970);var d=0,b=g[7]&&g[7].charAt(0);"Z"!=b&&(d=60*(g[8]||0)+(Number(g[9])||0),"-"!=b&&(d*=-1));b&&(d-=e.getTimezoneOffset());d&&e.setTime(e.getTime()+6E4*d)}return e};k.toISOString=function(k,h){var g=function(a){return 10>a?"0"+a:a};h=h||{};var e=[],d=h.zulu?"getUTC":"get",b="";"time"!=h.selector&&(b=k[d+"FullYear"](),b=["0000".substr((b+
"").length)+b,g(k[d+"Month"]()+1),g(k[d+"Date"]())].join("-"));e.push(b);if("date"!=h.selector){b=[g(k[d+"Hours"]()),g(k[d+"Minutes"]()),g(k[d+"Seconds"]())].join(":");d=k[d+"Milliseconds"]();h.milliseconds&&(b+="."+(100>d?"0":"")+g(d));if(h.zulu)b+="Z";else if("time"!=h.selector)var d=k.getTimezoneOffset(),a=Math.abs(d),b=b+((0<d?"-":"+")+g(Math.floor(a/60))+":"+g(a%60));e.push(b)}return e.join("T")};return k})},"dijit/Editor":function(){define("require dojo/_base/array dojo/_base/declare dojo/Deferred dojo/i18n dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/keys dojo/_base/lang dojo/sniff dojo/string dojo/topic ./_Container ./Toolbar ./ToolbarSeparator ./layout/_LayoutWidget ./form/ToggleButton ./_editor/_Plugin ./_editor/plugins/EnterKeyHandling ./_editor/html ./_editor/range ./_editor/RichText ./main dojo/i18n!./_editor/nls/commands".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v,A,y,w,z,x,B,D){function C(a){return new y({command:a.name})}function F(a){return new y({buttonClass:A,command:a.name})}k=k("dijit.Editor",B,{plugins:null,extraPlugins:null,constructor:function(){c.isArray(this.plugins)||(this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull",w]);this._plugins=
[];this._editInterval=1E3*this.editActionInterval;if(f("ie")||f("trident"))this.events.push("onBeforeDeactivate"),this.events.push("onBeforeActivate")},postMixInProperties:function(){this.setValueDeferred=new q;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);c.isArray(this.extraPlugins)&&(this.plugins=this.plugins.concat(this.extraPlugins));this.commands=h.getLocalization("dijit._editor","commands",
this.lang);f("webkit")&&b.set(this.domNode,"KhtmlUserSelect","none")},startup:function(){this.inherited(arguments);this.toolbar||(this.toolbar=new r({ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,"aria-label":this.id}),this.header.appendChild(this.toolbar.domNode));n.forEach(this.plugins,this.addPlugin,this);this.setValueDeferred.resolve(!0);e.add(this.iframe.parentNode,"dijitEditorIFrameContainer");e.add(this.iframe,"dijitEditorIFrame");g.set(this.iframe,"allowTransparency",!0);this.toolbar.startup();
this.onNormalizedDisplayChanged()},destroy:function(){n.forEach(this._plugins,function(a){a&&a.destroy&&a.destroy()});this._plugins=[];this.toolbar.destroyRecursive();delete this.toolbar;this.inherited(arguments)},addPlugin:function(a,b){var f=c.isString(a)?{name:a}:c.isFunction(a)?{ctor:a}:a;if(!f.setEditor){var d={args:f,plugin:null,editor:this};f.name&&(y.registry[f.name]?d.plugin=y.registry[f.name](f):s.publish(D._scopeName+".Editor.getPlugin",d));if(!d.plugin)try{var e=f.ctor||c.getObject(f.name)||
l(f.name);e&&(d.plugin=new e(f))}catch(m){throw Error(this.id+": cannot find plugin ["+f.name+"]");}if(!d.plugin)throw Error(this.id+": cannot find plugin ["+f.name+"]");a=d.plugin}1<arguments.length?this._plugins[b]=a:this._plugins.push(a);a.setEditor(this);c.isFunction(a.setToolbar)&&a.setToolbar(this.toolbar)},resize:function(a){a&&v.prototype.resize.apply(this,arguments)},layout:function(){var a=this._contentBox.h-(this.getHeaderHeight()+this.getFooterHeight()+d.getPadBorderExtents(this.iframe.parentNode).h+
d.getMarginExtents(this.iframe.parentNode).h);this.editingArea.style.height=a+"px";this.iframe&&(this.iframe.style.height="100%");this._layoutMode=!0},_onIEMouseDown:function(a){var b,c=this.document.body,f=c.clientWidth,d=c.clientHeight,e=c.clientLeft,m=c.offsetWidth,g=c.offsetHeight,h=c.offsetLeft;/^rtl$/i.test(c.dir||"")?f<m&&(a.x>f&&a.x<m)&&(b=!0):a.x<e&&a.x>h&&(b=!0);b||d<g&&(a.y>d&&a.y<g)&&(b=!0);b||(delete this._cursorToStart,delete this._savedSelection,"BODY"==a.target.tagName&&this.defer("placeCursorAtEnd"),
this.inherited(arguments))},onBeforeActivate:function(){this._restoreSelection()},onBeforeDeactivate:function(a){this.customUndo&&this.endEditing(!0);"BODY"!=a.target.tagName&&this._saveSelection()},customUndo:!0,editActionInterval:3,beginEditing:function(a){this._inEditing||(this._inEditing=!0,this._beginEditing(a));0<this.editActionInterval&&(this._editTimer&&this._editTimer.remove(),this._editTimer=this.defer("endEditing",this._editInterval))},_steps:[],_undoedSteps:[],execCommand:function(a){if(this.customUndo&&
("undo"==a||"redo"==a))return this[a]();this.customUndo&&(this.endEditing(),this._beginEditing());var b=this.inherited(arguments);this.customUndo&&this._endEditing();return b},_pasteImpl:function(){return this._clipboardCommand("paste")},_cutImpl:function(){return this._clipboardCommand("cut")},_copyImpl:function(){return this._clipboardCommand("copy")},_clipboardCommand:function(a){var b;try{if(b=this.document.execCommand(a,!1,null),f("webkit")&&!b)throw{code:1011};}catch(c){if(1011==c.code||9==
c.code&&f("opera"))b=m.substitute,alert(b(this.commands.systemShortcut,[this.commands[a],b(this.commands[f("mac")?"appleKey":"ctrlKey"],[{cut:"X",copy:"C",paste:"V"}[a]])]));b=!1}return b},queryCommandEnabled:function(a){return this.customUndo&&("undo"==a||"redo"==a)?"undo"==a?1<this._steps.length:0<this._undoedSteps.length:this.inherited(arguments)},_moveToBookmark:function(a){var b=a.mark,d=a.mark;a=a.isCollapsed;var e,m,g;if(d)if(9>f("ie")||9===f("ie")&&f("quirks"))if(c.isArray(d))b=[],n.forEach(d,
function(a){b.push(x.getNode(a,this.editNode))},this),this.selection.moveToBookmark({mark:b,isCollapsed:a});else{if(d.startContainer&&d.endContainer&&(g=x.getSelection(this.window))&&g.removeAllRanges)g.removeAllRanges(),a=x.create(this.window),e=x.getNode(d.startContainer,this.editNode),m=x.getNode(d.endContainer,this.editNode),e&&m&&(a.setStart(e,d.startOffset),a.setEnd(m,d.endOffset),g.addRange(a))}else if((g=x.getSelection(this.window))&&g.removeAllRanges)g.removeAllRanges(),a=x.create(this.window),
e=x.getNode(d.startContainer,this.editNode),m=x.getNode(d.endContainer,this.editNode),e&&m&&(a.setStart(e,d.startOffset),a.setEnd(m,d.endOffset),g.addRange(a))},_changeToStep:function(a,b){this.setValue(b.text);var c=b.bookmark;c&&this._moveToBookmark(c)},undo:function(){var a=!1;if(!this._undoRedoActive){this._undoRedoActive=!0;this.endEditing(!0);var b=this._steps.pop();b&&0<this._steps.length&&(this.focus(),this._changeToStep(b,this._steps[this._steps.length-1]),this._undoedSteps.push(b),this.onDisplayChanged(),
delete this._undoRedoActive,a=!0);delete this._undoRedoActive}return a},redo:function(){var a=!1;if(!this._undoRedoActive){this._undoRedoActive=!0;this.endEditing(!0);var b=this._undoedSteps.pop();b&&0<this._steps.length&&(this.focus(),this._changeToStep(this._steps[this._steps.length-1],b),this._steps.push(b),this.onDisplayChanged(),a=!0);delete this._undoRedoActive}return a},endEditing:function(a){this._editTimer&&(this._editTimer=this._editTimer.remove());this._inEditing&&(this._endEditing(a),
this._inEditing=!1)},_getBookmark:function(){var a=this.selection.getBookmark(),b=[];if(a&&a.mark){var d=a.mark;if(9>f("ie")||9===f("ie")&&f("quirks")){var e=x.getSelection(this.window);if(c.isArray(d))n.forEach(a.mark,function(a){b.push(x.getIndex(a,this.editNode).o)},this),a.mark=b;else if(e){var m;e.rangeCount&&(m=e.getRangeAt(0));a.mark=m?m.cloneRange():this.selection.getBookmark()}}try{a.mark&&a.mark.startContainer&&(b=x.getIndex(a.mark.startContainer,this.editNode).o,a.mark={startContainer:b,
startOffset:a.mark.startOffset,endContainer:a.mark.endContainer===a.mark.startContainer?b:x.getIndex(a.mark.endContainer,this.editNode).o,endOffset:a.mark.endOffset})}catch(g){a.mark=null}}return a},_beginEditing:function(){0===this._steps.length&&this._steps.push({text:z.getChildrenHtml(this.editNode),bookmark:this._getBookmark()})},_endEditing:function(){var a=z.getChildrenHtml(this.editNode);this._undoedSteps=[];this._steps.push({text:a,bookmark:this._getBookmark()})},onKeyDown:function(b){!f("ie")&&
(!this.iframe&&b.keyCode==a.TAB&&!this.tabIndent)&&this._saveSelection();if(this.customUndo){var c=b.keyCode;if(b.ctrlKey&&!b.shiftKey&&!b.altKey){if(90==c||122==c){b.stopPropagation();b.preventDefault();this.undo();return}if(89==c||121==c){b.stopPropagation();b.preventDefault();this.redo();return}}this.inherited(arguments);switch(c){case a.ENTER:case a.BACKSPACE:case a.DELETE:this.beginEditing();break;case 88:case 86:if(b.ctrlKey&&!b.altKey&&!b.metaKey){this.endEditing();88==b.keyCode?this.beginEditing("cut"):
this.beginEditing("paste");this.defer("endEditing",1);break}default:if(!b.ctrlKey&&!b.altKey&&!b.metaKey&&(b.keyCode<a.F1||b.keyCode>a.F15)){this.beginEditing();break}case a.ALT:this.endEditing();break;case a.UP_ARROW:case a.DOWN_ARROW:case a.LEFT_ARROW:case a.RIGHT_ARROW:case a.HOME:case a.END:case a.PAGE_UP:case a.PAGE_DOWN:this.endEditing(!0);case a.CTRL:case a.SHIFT:case a.TAB:}}else this.inherited(arguments)},_onBlur:function(){this.inherited(arguments);this.endEditing(!0)},_saveSelection:function(){try{this._savedSelection=
this._getBookmark()}catch(a){}},_restoreSelection:function(){this._savedSelection&&(delete this._cursorToStart,this.selection.isCollapsed()&&this._moveToBookmark(this._savedSelection),delete this._savedSelection)},onClick:function(){this.endEditing(!0);this.inherited(arguments)},replaceValue:function(a){this.customUndo?this.isClosed?this.setValue(a):(this.beginEditing(),a||(a="\x26#160;"),this.setValue(a),this.endEditing()):this.inherited(arguments)},_setDisabledAttr:function(a){this.setValueDeferred.then(c.hitch(this,
function(){!this.disabled&&a||!this._buttonEnabledPlugins&&a?n.forEach(this._plugins,function(a){a.set("disabled",!0)}):this.disabled&&!a&&n.forEach(this._plugins,function(a){a.set("disabled",!1)})}));this.inherited(arguments)},_setStateClass:function(){try{this.inherited(arguments),this.document&&this.document.body&&b.set(this.document.body,"color",b.get(this.iframe,"color"))}catch(a){}}});c.mixin(y.registry,{undo:C,redo:C,cut:C,copy:C,paste:C,insertOrderedList:C,insertUnorderedList:C,indent:C,outdent:C,
justifyCenter:C,justifyFull:C,justifyLeft:C,justifyRight:C,"delete":C,selectAll:C,removeFormat:C,unlink:C,insertHorizontalRule:C,bold:F,italic:F,underline:F,strikethrough:F,subscript:F,superscript:F,"|":function(){return new y({setEditor:function(a){this.editor=a;this.button=new u({ownerDocument:a.ownerDocument})}})}});return k})},"dijit/_Container":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/_base/kernel"],function(l,n,k,q){return n("dijit._Container",null,
{buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode)},addChild:function(h,g){var e=this.containerNode;if(0<g){for(e=e.firstChild;0<g;)1==e.nodeType&&g--,e=e.nextSibling;e?g="before":(e=this.containerNode,g="last")}k.place(h.domNode,e,g);this._started&&!h._started&&h.startup()},removeChild:function(h){"number"==typeof h&&(h=this.getChildren()[h]);h&&(h=h.domNode)&&h.parentNode&&h.parentNode.removeChild(h)},hasChildren:function(){return 0<this.getChildren().length},
_getSiblingOfChild:function(h,g){q.deprecated(this.declaredClass+"::_getSiblingOfChild() is deprecated. Use _KeyNavMixin::_getNext() instead.","","2.0");var e=this.getChildren(),d=l.indexOf(e,h);return e[d+g]},getIndexOfChild:function(h){return l.indexOf(this.getChildren(),h)}})})},"dijit/Toolbar":function(){define("require dojo/_base/declare dojo/has dojo/keys dojo/ready ./_Widget ./_KeyNavContainer ./_TemplatedMixin".split(" "),function(l,n,k,q,h,g,e,d){k("dijit-legacy-requires")&&h(0,function(){l(["dijit/ToolbarSeparator"])});
return n("dijit.Toolbar",[g,d,e],{templateString:'\x3cdiv class\x3d"dijit" role\x3d"toolbar" tabIndex\x3d"${tabIndex}" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e',baseClass:"dijitToolbar",_onLeftArrow:function(){this.focusPrev()},_onRightArrow:function(){this.focusNext()}})})},"dijit/_KeyNavContainer":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/_base/kernel dojo/keys dojo/_base/lang ./registry ./_Container ./_FocusMixin ./_KeyNavMixin".split(" "),function(l,
n,k,q,h,g,e,d,b,a){return n("dijit._KeyNavContainer",[b,a,d],{connectKeyNavHandlers:function(a,b){var d=this._keyNavCodes={},e=g.hitch(this,"focusPrev"),k=g.hitch(this,"focusNext");l.forEach(a,function(a){d[a]=e});l.forEach(b,function(a){d[a]=k});d[h.HOME]=g.hitch(this,"focusFirstChild");d[h.END]=g.hitch(this,"focusLastChild")},startupKeyNavChildren:function(){q.deprecated("startupKeyNavChildren() call no longer needed","","2.0")},startup:function(){this.inherited(arguments);l.forEach(this.getChildren(),
g.hitch(this,"_startupChild"))},addChild:function(a,b){this.inherited(arguments);this._startupChild(a)},_startupChild:function(a){a.set("tabIndex","-1")},_getFirst:function(){var a=this.getChildren();return a.length?a[0]:null},_getLast:function(){var a=this.getChildren();return a.length?a[a.length-1]:null},focusNext:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,1))},focusPrev:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,-1),!0)},childSelector:function(a){return(a=
e.byNode(a))&&a.getParent()==this}})})},"dijit/_KeyNavMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dijit/registry dijit/_FocusMixin".split(" "),function(l,n,k,q,h,g,e,d){return n("dijit._KeyNavMixin",d,{tabIndex:"0",childSelector:null,postCreate:function(){this.inherited(arguments);k.set(this.domNode,"tabIndex",this.tabIndex);if(!this._keyNavCodes){var b=this._keyNavCodes={};b[q.HOME]=h.hitch(this,"focusFirstChild");b[q.END]=h.hitch(this,
"focusLastChild");b[this.isLeftToRight()?q.LEFT_ARROW:q.RIGHT_ARROW]=h.hitch(this,"_onLeftArrow");b[this.isLeftToRight()?q.RIGHT_ARROW:q.LEFT_ARROW]=h.hitch(this,"_onRightArrow");b[q.UP_ARROW]=h.hitch(this,"_onUpArrow");b[q.DOWN_ARROW]=h.hitch(this,"_onDownArrow")}var a=this,b="string"==typeof this.childSelector?this.childSelector:h.hitch(this,"childSelector");this.own(g(this.domNode,"keypress",h.hitch(this,"_onContainerKeypress")),g(this.domNode,"keydown",h.hitch(this,"_onContainerKeydown")),g(this.domNode,
"focus",h.hitch(this,"_onContainerFocus")),g(this.containerNode,g.selector(b,"focusin"),function(b){a._onChildFocus(e.getEnclosingWidget(this),b)}))},_onLeftArrow:function(){},_onRightArrow:function(){},_onUpArrow:function(){},_onDownArrow:function(){},focus:function(){this.focusFirstChild()},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild())},
focusLastChild:function(){this.focusChild(this._getLastFocusableChild())},focusChild:function(b,a){b&&(this.focusedChild&&b!==this.focusedChild&&this._onChildBlur(this.focusedChild),b.set("tabIndex",this.tabIndex),b.focus(a?"end":"start"))},_onContainerFocus:function(b){b.target!==this.domNode||this.focusedChild||this.focus()},_onFocus:function(){k.set(this.domNode,"tabIndex","-1");this.inherited(arguments)},_onBlur:function(b){k.set(this.domNode,"tabIndex",this.tabIndex);this.focusedChild&&(this.focusedChild.set("tabIndex",
"-1"),this.lastFocusedChild=this.focusedChild,this._set("focusedChild",null));this.inherited(arguments)},_onChildFocus:function(b){b&&b!=this.focusedChild&&(this.focusedChild&&!this.focusedChild._destroyed&&this.focusedChild.set("tabIndex","-1"),b.set("tabIndex",this.tabIndex),this.lastFocused=b,this._set("focusedChild",b))},_searchString:"",multiCharSearchDuration:1E3,onKeyboardSearch:function(b,a,c,f){b&&this.focusChild(b)},_keyboardSearchCompare:function(b,a){var c=b.domNode,c=(b.label||(c.focusNode?
c.focusNode.label:"")||c.innerText||c.textContent||"").replace(/^\s+/,"").substr(0,a.length).toLowerCase();return a.length&&c==a?-1:0},_isFormElement:function(b){return"INPUT"===b.tagName||"TEXTAREA"===b.tagName||"SELECT"===b.tagName||"BUTTON"===b.tagName},_onContainerKeydown:function(b){if(!this._isFormElement(document.activeElement)){var a=this._keyNavCodes[b.keyCode];a?(a(b,this.focusedChild),b.stopPropagation(),b.preventDefault(),this._searchString=""):b.keyCode==q.SPACE&&(this._searchTimer&&
!b.ctrlKey&&!b.altKey&&!b.metaKey)&&(b.stopImmediatePropagation(),b.preventDefault(),this._keyboardSearch(b," "))}},_onContainerKeypress:function(b){if(!this._isFormElement(document.activeElement)&&!(b.charCode<=q.SPACE||b.ctrlKey||b.altKey||b.metaKey))b.preventDefault(),b.stopPropagation(),this._keyboardSearch(b,String.fromCharCode(b.charCode).toLowerCase())},_keyboardSearch:function(b,a){var c=null,f,d=0;h.hitch(this,function(){this._searchTimer&&this._searchTimer.remove();this._searchString+=a;
var b=/^(.)\1*$/.test(this._searchString)?1:this._searchString.length;f=this._searchString.substr(0,b);this._searchTimer=this.defer(function(){this._searchTimer=null;this._searchString=""},this.multiCharSearchDuration);var e=this.focusedChild||null;if(1==b||!e)if(e=this._getNextFocusableChild(e,1),!e)return;b=e;do{var g=this._keyboardSearchCompare(e,f);g&&0==d++&&(c=e);if(-1==g){d=-1;break}e=this._getNextFocusableChild(e,1)}while(e!=b)})();this.onKeyboardSearch(c,b,f,d)},_onChildBlur:function(){},
_getNextFocusableChild:function(b,a){var c=b;do{if(b)b=this._getNext(b,a);else if(b=this[0<a?"_getFirst":"_getLast"](),!b)break;if(null!=b&&b!=c&&b.isFocusable())return b}while(b!=c);return null},_getFirst:function(){return null},_getLast:function(){return null},_getNext:function(b,a){if(b)for(b=b.domNode;b;)if((b=b[0>a?"previousSibling":"nextSibling"])&&"getAttribute"in b){var c=e.byNode(b);if(c)return c}return null}})})},"dijit/ToolbarSeparator":function(){define(["dojo/_base/declare","dojo/dom",
"./_Widget","./_TemplatedMixin"],function(l,n,k,q){return l("dijit.ToolbarSeparator",[k,q],{templateString:'\x3cdiv class\x3d"dijitToolbarSeparator dijitInline" role\x3d"presentation"\x3e\x3c/div\x3e',buildRendering:function(){this.inherited(arguments);n.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})})},"dijit/layout/_LayoutWidget":function(){define("dojo/_base/lang ../_Widget ../_Container ../_Contained ../Viewport dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style".split(" "),
function(l,n,k,q,h,g,e,d,b){return g("dijit.layout._LayoutWidget",[n,k,q],{baseClass:"dijitLayoutContainer",isLayoutContainer:!0,_setTitleAttr:null,buildRendering:function(){this.inherited(arguments);e.add(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);var a=this.getParent&&this.getParent();if(!a||!a.isLayoutContainer)this.resize(),this.own(h.on("resize",l.hitch(this,"resize")))}},resize:function(a,c){var f=this.domNode;a&&d.setMarginBox(f,a);var e=
c||{};l.mixin(e,a||{});if(!("h"in e)||!("w"in e))e=l.mixin(d.getMarginBox(f),e);var g=b.getComputedStyle(f),h=d.getMarginExtents(f,g),k=d.getBorderExtents(f,g),e=this._borderBox={w:e.w-(h.w+k.w),h:e.h-(h.h+k.h)},h=d.getPadExtents(f,g);this._contentBox={l:b.toPixelValue(f,g.paddingLeft),t:b.toPixelValue(f,g.paddingTop),w:e.w-h.w,h:e.h-h.h};this.layout()},layout:function(){},_setupChild:function(a){e.add(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a,
b){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){e.remove(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}})})},"dijit/_Contained":function(){define(["dojo/_base/declare","./registry"],function(l,n){return l("dijit._Contained",null,{_getSibling:function(k){var l=this.domNode;do l=l[k+"Sibling"];while(l&&1!=l.nodeType);return l&&n.byNode(l)},getPreviousSibling:function(){return this._getSibling("previous")},
getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var k=this.getParent();return!k||!k.getIndexOfChild?-1:k.getIndexOfChild(this)}})})},"dijit/Viewport":function(){define(["dojo/Evented","dojo/on","dojo/domReady","dojo/sniff","dojo/window"],function(l,n,k,q,h){var g=new l,e;k(function(){var d=h.getBox();g._rlh=n(window,"resize",function(){var a=h.getBox();d.h==a.h&&d.w==a.w||(d=a,g.emit("resize"))});if(8==q("ie")){var b=screen.deviceXDPI;setInterval(function(){screen.deviceXDPI!=
b&&(b=screen.deviceXDPI,g.emit("resize"))},500)}q("ios")&&(n(document,"focusin",function(a){e=a.target}),n(document,"focusout",function(a){e=null}))});g.getEffectiveBox=function(d){d=h.getBox(d);var b=e&&e.tagName&&e.tagName.toLowerCase();if(q("ios")&&e&&!e.readOnly&&("textarea"==b||"input"==b&&/^(color|email|number|password|search|tel|text|url)$/.test(e.type)))d.h*=0==orientation||180==orientation?0.66:0.4,b=e.getBoundingClientRect(),d.h=Math.max(d.h,b.top+b.height);return d};return g})},"dijit/form/ToggleButton":function(){define(["dojo/_base/declare",
"dojo/_base/kernel","./Button","./_ToggleButtonMixin"],function(l,n,k,q){return l("dijit.form.ToggleButton",[k,q],{baseClass:"dijitToggleButton",setChecked:function(h){n.deprecated("setChecked("+h+") is deprecated. Use set('checked',"+h+") instead.","","2.0");this.set("checked",h)}})})},"dijit/form/Button":function(){define("require dojo/_base/declare dojo/dom-class dojo/has dojo/_base/kernel dojo/_base/lang dojo/ready ./_FormWidget ./_ButtonMixin dojo/text!./templates/Button.html ../a11yclick".split(" "),
function(l,n,k,q,h,g,e,d,b,a){q("dijit-legacy-requires")&&e(0,function(){l(["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"])});e=n("dijit.form.Button"+(q("dojo-bidi")?"_NoBidi":""),[d,b],{showLabel:!0,iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitButton",templateString:a,_setValueAttr:"valueNode",_setNameAttr:function(a){this.valueNode&&this.valueNode.setAttribute("name",a)},_fillContent:function(a){if(a&&(!this.params||!("label"in
this.params)))if(a=g.trim(a.innerHTML))this.label=a},_setShowLabelAttr:function(a){this.containerNode&&k.toggle(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},setLabel:function(a){h.deprecated("dijit.form.Button.setLabel() is deprecated. Use set('label', ...) instead.","","2.0");this.set("label",a)},_setLabelAttr:function(a){this.inherited(arguments);!this.showLabel&&!("title"in this.params)&&(this.titleNode.title=g.trim(this.containerNode.innerText||this.containerNode.textContent||
""))}});q("dojo-bidi")&&(e=n("dijit.form.Button",e,{_setLabelAttr:function(a){this.inherited(arguments);this.titleNode.title&&this.applyTextDir(this.titleNode,this.titleNode.title)},_setTextDirAttr:function(a){this._created&&this.textDir!=a&&(this._set("textDir",a),this._setLabelAttr(this.label))}}));return e})},"dijit/form/_FormWidget":function(){define("dojo/_base/declare dojo/sniff dojo/_base/kernel dojo/ready ../_Widget ../_CssStateMixin ../_TemplatedMixin ./_FormWidgetMixin".split(" "),function(l,
n,k,q,h,g,e,d){n("dijit-legacy-requires")&&q(0,function(){require(["dijit/form/_FormValueWidget"])});return l("dijit.form._FormWidget",[h,e,g,d],{setDisabled:function(b){k.deprecated("setDisabled("+b+") is deprecated. Use set('disabled',"+b+") instead.","","2.0");this.set("disabled",b)},setValue:function(b){k.deprecated("dijit.form._FormWidget:setValue("+b+") is deprecated. Use set('value',"+b+") instead.","","2.0");this.set("value",b)},getValue:function(){k.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.",
"","2.0");return this.get("value")},postMixInProperties:function(){this.nameAttrSetting=this.name&&!n("msapp")?'name\x3d"'+this.name.replace(/"/g,"\x26quot;")+'"':"";this.inherited(arguments)}})})},"dijit/_CssStateMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom dojo/dom-class dojo/has dojo/_base/lang dojo/on dojo/domReady dojo/touch dojo/_base/window ./a11yclick ./registry".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f){n=n("dijit._CssStateMixin",[],{hovering:!1,active:!1,_applyAttributes:function(){this.inherited(arguments);
l.forEach("disabled readOnly checked selected focused state hovering active _opened".split(" "),function(a){this.watch(a,g.hitch(this,"_setStateClass"))},this);for(var a in this.cssStateNodes||{})this._trackMouseState(this[a],this.cssStateNodes[a]);this._trackMouseState(this.domNode,this.baseClass);this._setStateClass()},_cssMouseEvent:function(a){if(!this.disabled)switch(a.type){case "mouseover":case "MSPointerOver":case "pointerover":this._set("hovering",!0);this._set("active",this._mouseDown);
break;case "mouseout":case "MSPointerOut":case "pointerout":this._set("hovering",!1);this._set("active",!1);break;case "mousedown":case "touchstart":case "MSPointerDown":case "pointerdown":case "keydown":this._set("active",!0);break;case "mouseup":case "dojotouchend":case "MSPointerUp":case "pointerup":case "keyup":this._set("active",!1)}},_setStateClass:function(){function a(c){b=b.concat(l.map(b,function(a){return a+c}),"dijit"+c)}var b=this.baseClass.split(" ");this.isLeftToRight()||a("Rtl");var c=
"mixed"==this.checked?"Mixed":this.checked?"Checked":"";this.checked&&a(c);this.state&&a(this.state);this.selected&&a("Selected");this._opened&&a("Opened");this.disabled?a("Disabled"):this.readOnly?a("ReadOnly"):this.active?a("Active"):this.hovering&&a("Hover");this.focused&&a("Focused");var c=this.stateNode||this.domNode,f={};l.forEach(c.className.split(" "),function(a){f[a]=!0});"_stateClasses"in this&&l.forEach(this._stateClasses,function(a){delete f[a]});l.forEach(b,function(a){f[a]=!0});var d=
[],e;for(e in f)d.push(e);c.className=d.join(" ");this._stateClasses=b},_subnodeCssMouseEvent:function(a,b,c){function f(c){q.toggle(a,b+"Active",c)}if(!this.disabled&&!this.readOnly)switch(c.type){case "mouseover":case "MSPointerOver":case "pointerover":q.toggle(a,b+"Hover",!0);break;case "mouseout":case "MSPointerOut":case "pointerout":q.toggle(a,b+"Hover",!1);f(!1);break;case "mousedown":case "touchstart":case "MSPointerDown":case "pointerdown":case "keydown":f(!0);break;case "mouseup":case "MSPointerUp":case "pointerup":case "dojotouchend":case "keyup":f(!1);
break;case "focus":case "focusin":q.toggle(a,b+"Focused",!0);break;case "blur":case "focusout":q.toggle(a,b+"Focused",!1)}},_trackMouseState:function(a,b){a._cssState=b}});d(function(){function d(a,b,c){if(!c||!k.isDescendant(c,b))for(;b&&b!=c;b=b.parentNode)if(b._cssState){var e=f.getEnclosingWidget(b);e&&(b==e.domNode?e._cssMouseEvent(a):e._subnodeCssMouseEvent(b,b._cssState,a))}}var g=a.body(),h;e(g,b.over,function(a){d(a,a.target,a.relatedTarget)});e(g,b.out,function(a){d(a,a.target,a.relatedTarget)});
e(g,c.press,function(a){h=a.target;d(a,h)});e(g,c.release,function(a){d(a,h);h=null});e(g,"focusin, focusout",function(a){var b=a.target;if(b._cssState&&!b.getAttribute("widgetId")){var c=f.getEnclosingWidget(b);c&&c._subnodeCssMouseEvent(b,b._cssState,a)}})});return n})},"dijit/form/_FormWidgetMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/mouse dojo/on dojo/sniff dojo/window ../a11y".split(" "),function(l,n,k,q,h,g,e,d,b,a){return n("dijit.form._FormWidgetMixin",
null,{name:"",alt:"",value:"",type:"text","aria-label":"focusNode",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:!1,intermediateChanges:!1,scrollOnFocus:!0,_setIdAttr:"focusNode",_setDisabledAttr:function(b){this._set("disabled",b);k.set(this.focusNode,"disabled",b);this.valueNode&&k.set(this.valueNode,"disabled",b);this.focusNode.setAttribute("aria-disabled",b?"true":"false");b?(this._set("hovering",!1),this._set("active",!1),b="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"_setTabIndexAttr"in
this?this._setTabIndexAttr:"focusNode",l.forEach(h.isArray(b)?b:[b],function(b){b=this[b];d("webkit")||a.hasDefaultTabStop(b)?b.setAttribute("tabIndex","-1"):b.removeAttribute("tabIndex")},this)):""!=this.tabIndex&&this.set("tabIndex",this.tabIndex)},_onFocus:function(a){if("mouse"==a&&this.isFocusable())var f=this.own(e(this.focusNode,"focus",function(){g.remove();f.remove()}))[0],m=d("pointer-events")?"pointerup":d("MSPointer")?"MSPointerUp":d("touch-events")?"touchend, mouseup":"mouseup",g=this.own(e(this.ownerDocumentBody,
m,h.hitch(this,function(a){g.remove();f.remove();this.focused&&("touchend"==a.type?this.defer("focus"):this.focus())})))[0];this.scrollOnFocus&&this.defer(function(){b.scrollIntoView(this.domNode)});this.inherited(arguments)},isFocusable:function(){return!this.disabled&&this.focusNode&&"none"!=q.get(this.domNode,"display")},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(a){}},compare:function(a,b){return"number"==typeof a&&"number"==typeof b?isNaN(a)&&isNaN(b)?
0:a-b:a>b?1:a<b?-1:0},onChange:function(){},_onChangeActive:!1,_handleOnChange:function(a,b){if(void 0==this._lastValueReported&&(null===b||!this._onChangeActive))this._resetValue=this._lastValueReported=a;this._pendingOnChange=this._pendingOnChange||typeof a!=typeof this._lastValueReported||0!=this.compare(a,this._lastValueReported);if((this.intermediateChanges||b||void 0===b)&&this._pendingOnChange)this._lastValueReported=a,this._pendingOnChange=!1,this._onChangeActive&&(this._onChangeHandle&&this._onChangeHandle.remove(),
this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(a)}))},create:function(){this.inherited(arguments);this._onChangeActive=!0},destroy:function(){this._onChangeHandle&&(this._onChangeHandle.remove(),this.onChange(this._lastValueReported));this.inherited(arguments)}})})},"dijit/form/_ButtonMixin":function(){define(["dojo/_base/declare","dojo/dom","dojo/has","../registry"],function(l,n,k,q){var h=l("dijit.form._ButtonMixin"+(k("dojo-bidi")?"_NoBidi":""),null,{label:"",
type:"button",__onClick:function(g){g.stopPropagation();g.preventDefault();this.disabled||this.valueNode.click(g);return!1},_onClick:function(g){if(this.disabled)return g.stopPropagation(),g.preventDefault(),!1;!1===this.onClick(g)&&g.preventDefault();var e=g.defaultPrevented;if(!e&&"submit"==this.type&&!(this.valueNode||this.focusNode).form)for(var d=this.domNode;d.parentNode;d=d.parentNode){var b=q.byNode(d);if(b&&"function"==typeof b._onSubmit){b._onSubmit(g);g.preventDefault();e=!0;break}}return!e},
postCreate:function(){this.inherited(arguments);n.setSelectable(this.focusNode,!1)},onClick:function(){return!0},_setLabelAttr:function(g){this._set("label",g);(this.containerNode||this.focusNode).innerHTML=g}});k("dojo-bidi")&&(h=l("dijit.form._ButtonMixin",h,{_setLabelAttr:function(){this.inherited(arguments);this.applyTextDir(this.containerNode||this.focusNode)}}));return h})},"dijit/form/_ToggleButtonMixin":function(){define(["dojo/_base/declare","dojo/dom-attr"],function(l,n){return l("dijit.form._ToggleButtonMixin",
null,{checked:!1,_aria_attr:"aria-pressed",_onClick:function(k){var l=this.checked;this._set("checked",!l);var h=this.inherited(arguments);this.set("checked",h?this.checked:l);return h},_setCheckedAttr:function(k,l){this._set("checked",k);var h=this.focusNode||this.domNode;this._created&&n.get(h,"checked")!=!!k&&n.set(h,"checked",!!k);h.setAttribute(this._aria_attr,String(k));this._handleOnChange(k,l)},postCreate:function(){this.inherited(arguments);var k=this.focusNode||this.domNode;this.checked&&
k.setAttribute("checked","checked")},reset:function(){this._hasBeenBlurred=!1;this.set("checked",this.params.checked||!1)}})})},"dijit/_editor/_Plugin":function(){define(["dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","../Destroyable","../form/Button"],function(l,n,k,q,h){n=n("dijit._editor._Plugin",q,{constructor:function(g){this.params=g||{};k.mixin(this,this.params);this._attrPairNames={}},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,command:"",useDefaultCommand:!0,buttonClass:h,
disabled:!1,getLabel:function(g){return this.editor.commands[g]},_initButton:function(){if(this.command.length){var g=this.getLabel(this.command),e=this.editor,d=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);this.button||(g=k.mixin({label:g,ownerDocument:e.ownerDocument,dir:e.dir,lang:e.lang,showLabel:!1,iconClass:d,dropDown:this.dropDown,tabIndex:"-1"},this.params||{}),delete g.name,this.button=new this.buttonClass(g))}this.get("disabled")&&
this.button&&this.button.set("disabled",this.get("disabled"))},destroy:function(){this.dropDown&&this.dropDown.destroyRecursive();this.inherited(arguments)},connect:function(g,e,d){this.own(l.connect(g,e,this,d))},updateState:function(){var g=this.editor,e=this.command,d,b;if(g&&g.isLoaded&&e.length){var a=this.get("disabled");if(this.button)try{b=!a&&g.queryCommandEnabled(e),this.enabled!==b&&(this.enabled=b,this.button.set("disabled",!b)),b&&"boolean"==typeof this.button.checked&&(d=g.queryCommandState(e),
this.checked!==d&&(this.checked=d,this.button.set("checked",g.queryCommandState(e))))}catch(c){}}},setEditor:function(g){this.editor=g;this._initButton();this.button&&this.useDefaultCommand&&(this.editor.queryCommandAvailable(this.command)?this.own(this.button.on("click",k.hitch(this.editor,"execCommand",this.command,this.commandArg))):this.button.domNode.style.display="none");this.own(this.editor.on("NormalizedDisplayChanged",k.hitch(this,"updateState")))},setToolbar:function(g){this.button&&g.addChild(this.button)},
set:function(g,e){if("object"===typeof g){for(var d in g)this.set(d,g[d]);return this}d=this._getAttrNames(g);if(this[d.s])var b=this[d.s].apply(this,Array.prototype.slice.call(arguments,1));else this._set(g,e);return b||this},get:function(g){var e=this._getAttrNames(g);return this[e.g]?this[e.g]():this[g]},_setDisabledAttr:function(g){this._set("disabled",g);this.updateState()},_getAttrNames:function(g){var e=this._attrPairNames;if(e[g])return e[g];var d=g.charAt(0).toUpperCase()+g.substr(1);return e[g]=
{s:"_set"+d+"Attr",g:"_get"+d+"Attr"}},_set:function(g,e){this[g]=e}});n.registry={};return n})},"dijit/_editor/plugins/EnterKeyHandling":function(){define("dojo/_base/declare dojo/dom-construct dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/_base/window dojo/window ../_Plugin ../RichText ../range".split(" "),function(l,n,k,q,h,g,e,d,b,a,c){return l("dijit._editor.plugins.EnterKeyHandling",b,{blockNodeForEnter:"BR",constructor:function(a){a&&("blockNodeForEnter"in a&&(a.blockNodeForEnter=a.blockNodeForEnter.toUpperCase()),
q.mixin(this,a))},setEditor:function(a){if(this.editor!==a)if(this.editor=a,"BR"==this.blockNodeForEnter)this.editor.customUndo=!0,a.onLoadDeferred.then(q.hitch(this,function(b){this.own(h(a.document,"keydown",q.hitch(this,function(a){if(a.keyCode==k.ENTER){var b=q.mixin({},a);b.shiftKey=!0;this.handleEnterKey(b)||(a.stopPropagation(),a.preventDefault())}})));9<=g("ie")&&10>=g("ie")&&this.own(h(a.document,"paste",q.hitch(this,function(a){setTimeout(q.hitch(this,function(){var a=this.editor.document.selection.createRange();
a.move("character",-1);a.select();a.move("character",1);a.select()}),0)})));return b}));else if(this.blockNodeForEnter){var b=q.hitch(this,"handleEnterKey");a.addKeyHandler(13,0,0,b);a.addKeyHandler(13,0,1,b);this.own(this.editor.on("KeyPressed",q.hitch(this,"onKeyPressed")))}},onKeyPressed:function(){if(this._checkListLater){if(this.editor.selection.isCollapsed()){var b=this.editor.selection.getAncestorElement("LI");if(b){g("mozilla")&&"LI"==b.parentNode.parentNode.nodeName&&(b=b.parentNode.parentNode);
var d=b.firstChild;if(d&&1==d.nodeType&&("UL"==d.nodeName||"OL"==d.nodeName))b.insertBefore(d.ownerDocument.createTextNode("\u00a0"),d),d=c.create(this.editor.window),d.setStart(b.firstChild,0),b=c.getSelection(this.editor.window,!0),b.removeAllRanges(),b.addRange(d)}else a.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter),(b=this.editor.selection.getAncestorElement(this.blockNodeForEnter))?(b.innerHTML=this.bogusHtmlContent,9>=g("ie")&&(b=this.editor.document.selection.createRange(),
b.move("character",-1),b.select())):console.error("onKeyPressed: Cannot find the new block node")}this._checkListLater=!1}this._pressedEnterInBlock&&(this._pressedEnterInBlock.previousSibling&&this.removeTrailingBr(this._pressedEnterInBlock.previousSibling),delete this._pressedEnterInBlock)},bogusHtmlContent:"\x26#160;",blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(b){var e,h,k,l,q=this.editor.document,v,A,y;if(b.shiftKey){b=this.editor.selection.getParentElement();if(l=c.getAncestor(b,
this.blockNodes)){if("LI"==l.tagName)return!0;b=c.getSelection(this.editor.window);e=b.getRangeAt(0);e.collapsed||(e.deleteContents(),b=c.getSelection(this.editor.window),e=b.getRangeAt(0));if(c.atBeginningOfContainer(l,e.startContainer,e.startOffset))v=q.createElement("br"),e=c.create(this.editor.window),l.insertBefore(v,l.firstChild),e.setStartAfter(v),b.removeAllRanges(),b.addRange(e);else if(c.atEndOfContainer(l,e.startContainer,e.startOffset))e=c.create(this.editor.window),v=q.createElement("br"),
l.appendChild(v),l.appendChild(q.createTextNode("\u00a0")),e.setStart(l.lastChild,0),b.removeAllRanges(),b.addRange(e);else return(A=e.startContainer)&&3==A.nodeType?(y=A.nodeValue,h=q.createTextNode(y.substring(0,e.startOffset)),k=q.createTextNode(y.substring(e.startOffset)),l=q.createElement("br"),""==k.nodeValue&&g("webkit")&&(k=q.createTextNode("\u00a0")),n.place(h,A,"after"),n.place(l,h,"after"),n.place(k,l,"after"),n.destroy(A),e=c.create(this.editor.window),e.setStart(k,0),b.removeAllRanges(),
b.addRange(e),!1):!0}else if(b=c.getSelection(this.editor.window),b.rangeCount){if((e=b.getRangeAt(0))&&e.startContainer)e.collapsed||(e.deleteContents(),b=c.getSelection(this.editor.window),e=b.getRangeAt(0)),(A=e.startContainer)&&3==A.nodeType?(l=e.startOffset,A.length<l&&(k=this._adjustNodeAndOffset(A,l),A=k.node,l=k.offset),y=A.nodeValue,h=q.createTextNode(y.substring(0,l)),k=q.createTextNode(y.substring(l)),l=q.createElement("br"),k.length||(k=q.createTextNode("\u00a0")),h.length?n.place(h,A,
"after"):h=A,n.place(l,h,"after"),n.place(k,l,"after"),n.destroy(A)):(0<=e.startOffset&&(v=A.childNodes[e.startOffset]),l=q.createElement("br"),k=q.createTextNode("\u00a0"),v?(n.place(l,v,"before"),n.place(k,l,"after")):(A.appendChild(l),A.appendChild(k))),e=c.create(this.editor.window),e.setStart(k,0),e.setEnd(k,k.length),b.removeAllRanges(),b.addRange(e),this.editor.selection.collapse(!0)}else a.prototype.execCommand.call(this.editor,"inserthtml","\x3cbr\x3e");return!1}var w=!0;b=c.getSelection(this.editor.window);
e=b.getRangeAt(0);e.collapsed||(e.deleteContents(),b=c.getSelection(this.editor.window),e=b.getRangeAt(0));v=c.getBlockAncestor(e.endContainer,null,this.editor.editNode);var z=v.blockNode;if(this._checkListLater=z&&("LI"==z.nodeName||"LI"==z.parentNode.nodeName))return g("mozilla")&&(this._pressedEnterInBlock=z),/^(\s|&nbsp;|&#160;|\xA0|<span\b[^>]*\bclass=['"]Apple-style-span['"][^>]*>(\s|&nbsp;|&#160;|\xA0)<\/span>)?(<br>)?$/.test(z.innerHTML)&&(z.innerHTML="",g("webkit")&&(e=c.create(this.editor.window),
e.setStart(z,0),b.removeAllRanges(),b.addRange(e)),this._checkListLater=!1),!0;if(!v.blockNode||v.blockNode===this.editor.editNode){try{a.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter)}catch(x){}v={blockNode:this.editor.selection.getAncestorElement(this.blockNodeForEnter),blockContainer:this.editor.editNode};if(v.blockNode){if(v.blockNode!=this.editor.editNode&&!(v.blockNode.textContent||v.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length)return this.removeTrailingBr(v.blockNode),
!1}else v.blockNode=this.editor.editNode;b=c.getSelection(this.editor.window);e=b.getRangeAt(0)}z=q.createElement(this.blockNodeForEnter);z.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(v.blockNode);k=e.endOffset;w=e.endContainer;w.length<k&&(k=this._adjustNodeAndOffset(w,k),w=k.node,k=k.offset);if(c.atEndOfContainer(v.blockNode,w,k))v.blockNode===v.blockContainer?v.blockNode.appendChild(z):n.place(z,v.blockNode,"after"),w=!1,e=c.create(this.editor.window),e.setStart(z,0),b.removeAllRanges(),
b.addRange(e),this.editor.height&&d.scrollIntoView(z);else if(c.atBeginningOfContainer(v.blockNode,e.startContainer,e.startOffset))n.place(z,v.blockNode,v.blockNode===v.blockContainer?"first":"before"),z.nextSibling&&this.editor.height&&(e=c.create(this.editor.window),e.setStart(z.nextSibling,0),b.removeAllRanges(),b.addRange(e),d.scrollIntoView(z.nextSibling)),w=!1;else{v.blockNode===v.blockContainer?v.blockNode.appendChild(z):n.place(z,v.blockNode,"after");w=!1;v.blockNode.style&&(z.style&&v.blockNode.style.cssText)&&
(z.style.cssText=v.blockNode.style.cssText);if((A=e.startContainer)&&3==A.nodeType){k=e.endOffset;A.length<k&&(k=this._adjustNodeAndOffset(A,k),A=k.node,k=k.offset);y=A.nodeValue;h=q.createTextNode(y.substring(0,k));k=q.createTextNode(y.substring(k,y.length));n.place(h,A,"before");n.place(k,A,"after");n.destroy(A);for(h=h.parentNode;h!==v.blockNode;){y=q.createElement(h.tagName);h.style&&(y.style&&h.style.cssText)&&(y.style.cssText=h.style.cssText);"FONT"===h.tagName&&(h.color&&(y.color=h.color),
h.face&&(y.face=h.face),h.size&&(y.size=h.size));for(e=k;e;)A=e.nextSibling,y.appendChild(e),e=A;n.place(y,h,"after");k=y;h=h.parentNode}e=k;if(1==e.nodeType||3==e.nodeType&&e.nodeValue)z.innerHTML="";for(h=e;e;)A=e.nextSibling,z.appendChild(e),e=A}e=c.create(this.editor.window);q=h;if("BR"!==this.blockNodeForEnter){for(;q;)l=q,q=A=q.firstChild;l&&l.parentNode?(z=l.parentNode,e.setStart(z,0),b.removeAllRanges(),b.addRange(e),this.editor.height&&d.scrollIntoView(z),g("mozilla")&&(this._pressedEnterInBlock=
v.blockNode)):w=!0}else e.setStart(z,0),b.removeAllRanges(),b.addRange(e),this.editor.height&&d.scrollIntoView(z),g("mozilla")&&(this._pressedEnterInBlock=v.blockNode)}return w},_adjustNodeAndOffset:function(a,b){for(;a.length<b&&a.nextSibling&&3==a.nextSibling.nodeType;)b-=a.length,a=a.nextSibling;return{node:a,offset:b}},removeTrailingBr:function(a){if(a=/P|DIV|LI/i.test(a.tagName)?a:this.editor.selection.getParentOfType(a,["P","DIV","LI"]))a.lastChild&&(1<a.childNodes.length&&3==a.lastChild.nodeType&&
/^[\s\xAD]*$/.test(a.lastChild.nodeValue)||"BR"==a.lastChild.tagName)&&n.destroy(a.lastChild),a.childNodes.length||(a.innerHTML=this.bogusHtmlContent)}})})},"dijit/_editor/RichText":function(){define("dojo/_base/array dojo/_base/config dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/query dojo/domReady dojo/sniff dojo/topic dojo/_base/unload dojo/_base/url dojo/window ../_Widget ../_CssStateMixin ../selection ./range ./html ../focus ../main".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v,A,y,w,z,x,B,D,C,F,I){var E=k("dijit._editor.RichText",[z,x],{constructor:function(a){this.contentPreFilters=[];this.contentPostFilters=[];this.contentDomPreFilters=[];this.contentDomPostFilters=[];this.editingAreaStyleSheets=[];this.events=[].concat(this.events);this._keyHandlers={};a&&m.isString(a.value)&&(this.value=a.value);this.onLoadDeferred=new q},baseClass:"dijitEditor",inheritWidth:!1,focusOnLoad:!1,name:"",styleSheets:"",height:"300px",minHeight:"1em",
isClosed:!0,isLoaded:!1,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",_NAME_CONTENT_SEP:"@@**%%:%%**@@",onLoadDeferred:null,isTabIndent:!1,disableSpellCheck:!1,postCreate:function(){"textarea"===this.domNode.tagName.toLowerCase()&&console.warn("RichText should not be used with the TEXTAREA tag. See dijit._editor.RichText docs.");this.contentPreFilters=[m.trim,m.hitch(this,"_preFixUrlAttributes")].concat(this.contentPreFilters);u("mozilla")&&(this.contentPreFilters=[this._normalizeFontStyle].concat(this.contentPreFilters),
this.contentPostFilters=[this._removeMozBogus].concat(this.contentPostFilters));u("webkit")&&(this.contentPreFilters=[this._removeWebkitBogus].concat(this.contentPreFilters),this.contentPostFilters=[this._removeWebkitBogus].concat(this.contentPostFilters));if(u("ie")||u("trident"))this.contentPostFilters=[this._normalizeFontStyle].concat(this.contentPostFilters),this.contentDomPostFilters=[m.hitch(this,"_stripBreakerNodes")].concat(this.contentDomPostFilters);this.contentDomPostFilters=[m.hitch(this,
"_stripTrailingEmptyNodes")].concat(this.contentDomPostFilters);this.inherited(arguments);v.publish(I._scopeName+"._editor.RichText::init",this)},startup:function(){this.inherited(arguments);this.open();this.setupDefaultShortcuts()},setupDefaultShortcuts:function(){var a=m.hitch(this,function(a,b){return function(){return!this.execCommand(a,b)}}),b={b:a("bold"),i:a("italic"),u:a("underline"),a:a("selectall"),s:function(){this.save(!0)},m:function(){this.isTabIndent=!this.isTabIndent},1:a("formatblock",
"h1"),2:a("formatblock","h2"),3:a("formatblock","h3"),4:a("formatblock","h4"),"\\":a("insertunorderedlist")};u("ie")||(b.Z=a("redo"));for(var c in b)this.addKeyHandler(c,!0,!1,b[c])},events:["onKeyDown","onKeyUp"],captureEvents:[],_editorCommandsLocalized:!1,_localizeEditorCommands:function(){if(E._editorCommandsLocalized)this._local2NativeFormatNames=E._local2NativeFormatNames,this._native2LocalFormatNames=E._native2LocalFormatNames;else{E._editorCommandsLocalized=!0;E._local2NativeFormatNames={};
E._native2LocalFormatNames={};this._local2NativeFormatNames=E._local2NativeFormatNames;this._native2LocalFormatNames=E._native2LocalFormatNames;for(var a="div p pre h1 h2 h3 h4 h5 h6 ol ul address".split(" "),b="",c,f=0;c=a[f++];)b="l"!==c.charAt(1)?b+("\x3c"+c+"\x3e\x3cspan\x3econtent\x3c/span\x3e\x3c/"+c+"\x3e\x3cbr/\x3e"):b+("\x3c"+c+"\x3e\x3cli\x3econtent\x3c/li\x3e\x3c/"+c+"\x3e\x3cbr/\x3e");var e=d.create("div",{style:{position:"absolute",top:"0px",zIndex:10,opacity:0.01},innerHTML:b});this.ownerDocumentBody.appendChild(e);
a=m.hitch(this,function(){for(var a=e.firstChild;a;)try{this.selection.selectElement(a.firstChild);var b=a.tagName.toLowerCase();this._local2NativeFormatNames[b]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[b]]=b;a=a.nextSibling.nextSibling}catch(c){}d.destroy(e)});this.defer(a)}},open:function(b){if(!this.onLoadDeferred||0<=this.onLoadDeferred.fired)this.onLoadDeferred=new q;this.isClosed||this.close();v.publish(I._scopeName+"._editor.RichText::open",
this);1===arguments.length&&b.nodeName&&(this.domNode=b);var c=this.domNode,f;if(m.isString(this.value))f=this.value,c.innerHTML="";else if(c.nodeName&&"textarea"==c.nodeName.toLowerCase()){var k=this.textarea=c;this.name=k.name;f=k.value;c=this.domNode=this.ownerDocument.createElement("div");c.setAttribute("widgetId",this.id);k.removeAttribute("widgetId");c.cssText=k.cssText;c.className+=" "+k.className;d.place(c,k,"before");var l=m.hitch(this,function(){a.set(k,{display:"block",position:"absolute",
top:"-1000px"});if(u("ie")){var b=k.style;this.__overflow=b.overflow;b.overflow="hidden"}});u("ie")?this.defer(l,10):l();if(k.form){var r=k.value;this.reset=function(){this.getValue()!==r&&this.replaceValue(r)};s(k.form,"submit",m.hitch(this,function(){g.set(k,"disabled",this.disabled);k.value=this.getValue()}))}}else f=C.getChildrenHtml(c),c.innerHTML="";this.value=f;c.nodeName&&"LI"===c.nodeName&&(c.innerHTML=" \x3cbr\x3e");this.header=c.ownerDocument.createElement("div");c.appendChild(this.header);
this.editingArea=c.ownerDocument.createElement("div");c.appendChild(this.editingArea);this.footer=c.ownerDocument.createElement("div");c.appendChild(this.footer);this.name||(this.name=this.id+"_AUTOGEN");if(""!==this.name&&(!n.useXDomain||n.allowXdRichTextSave)){if((f=h.byId(I._scopeName+"._editor.RichText.value"))&&""!==f.value)for(var l=f.value.split(this._SEPARATOR),t=0,w;w=l[t++];)if(w=w.split(this._NAME_CONTENT_SEP),w[0]===this.name){this.value=w[1];l=l.splice(t,1);f.value=l.join(this._SEPARATOR);
break}E._globalSaveHandler||(E._globalSaveHandler={},A.addOnUnload(function(){for(var a in E._globalSaveHandler){var b=E._globalSaveHandler[a];m.isFunction(b)&&b()}}));E._globalSaveHandler[this.id]=m.hitch(this,"_saveContent")}this.isClosed=!1;f=this.editorObject=this.iframe=this.ownerDocument.createElement("iframe");f.id=this.id+"_iframe";f.style.border="none";f.style.width="100%";this._layoutMode?f.style.height="100%":7<=u("ie")?(this.height&&(f.style.height=this.height),this.minHeight&&(f.style.minHeight=
this.minHeight)):f.style.height=this.height?this.height:this.minHeight;f.frameBorder=0;f._loadFunc=m.hitch(this,function(a){this.window=a;this.document=a.document;this.selection=new B.SelectionManager(a);u("ie")&&this._localizeEditorCommands();this.onLoad(this.get("value"))});l=this._getIframeDocTxt().replace(/\\/g,"\\\\").replace(/'/g,"\\'");l=11>u("ie")?'javascript:document.open();try{parent.window;}catch(e){document.domain\x3d"'+document.domain+"\";}document.write('"+l+"');document.close()":"javascript: '"+
l+"'";9==u("ie")?(this.editingArea.appendChild(f),f.src=l):(f.setAttribute("src",l),this.editingArea.appendChild(f));"LI"===c.nodeName&&(c.lastChild.style.marginTop="-1.2em");e.add(this.domNode,this.baseClass)},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_getIframeDocTxt:function(){var b=a.getComputedStyle(this.domNode),c=[b.fontWeight,b.fontSize,b.fontFamily].join(" "),f=b.lineHeight,f=0<=f.indexOf("px")?parseFloat(f)/parseFloat(b.fontSize):0<=f.indexOf("em")?parseFloat(f):"normal",d=
"",e=this;this.style.replace(/(^|;)\s*(line-|font-?)[^;]+/ig,function(b){b=b.replace(/^;/ig,"")+";";var c=b.split(":")[0];if(c){var c=m.trim(c),c=c.toLowerCase(),f,g="";for(f=0;f<c.length;f++){var h=c.charAt(f);switch(h){case "-":f++,h=c.charAt(f).toUpperCase();default:g+=h}}a.set(e.domNode,g,"")}d+=b+";"});var b=t('label[for\x3d"'+this.id+'"]'),g="";b.length?g=b[0].innerHTML:this["aria-label"]?g=this["aria-label"]:this["aria-labelledby"]&&(g=h.byId(this["aria-labelledby"]).innerHTML);this.iframe.setAttribute("title",
g);return["\x3c!DOCTYPE html\x3e",this.isLeftToRight()?"\x3chtml lang\x3d'"+this.lang+"'\x3e\n\x3chead\x3e\n":"\x3chtml dir\x3d'rtl' lang\x3d'"+this.lang+"'\x3e\n\x3chead\x3e\n",g?"\x3ctitle\x3e"+g+"\x3c/title\x3e":"","\x3cmeta http-equiv\x3d'Content-Type' content\x3d'text/html'\x3e\n\x3cstyle\x3e\n\tbody,html {\n\t\tbackground:transparent;\n\t\tpadding: 1px 0 0 0;\n\t\tmargin: -1px 0 0 0;\n\t}\n\tbody,html,#dijitEditorBody { outline: none; }html { height: 100%; width: 100%; overflow: hidden; }\n",
this.height?"\tbody,#dijitEditorBody { height: 100%; width: 100%; overflow: auto; }\n":"\tbody,#dijitEditorBody { min-height: "+this.minHeight+"; width: 100%; overflow-x: auto; overflow-y: hidden; }\n","\tbody{\n\t\ttop:0px;\n\t\tleft:0px;\n\t\tright:0px;\n\t\tfont:",c,";\n",this.height||u("opera")?"":"\t\tposition: fixed;\n","\t\tline-height:",f,";\n\t}\n\tp{ margin: 1em 0; }\n\tli \x3e ul:-moz-first-node, li \x3e ol:-moz-first-node{ padding-top: 1.2em; }\n",!u("ie")?"\tli{ min-height:1.2em; }\n":
"","\x3c/style\x3e\n",this._applyEditingAreaStyleSheets(),"\n\x3c/head\x3e\n\x3cbody role\x3d'main' onload\x3d'frameElement \x26\x26 frameElement._loadFunc(window,document)' ","style\x3d'"+d+"'\x3e","\x3cdiv id\x3d'dijitEditorBody'\x3e\x3c/div\x3e\x3c/body\x3e\n\x3c/html\x3e"].join("")},_applyEditingAreaStyleSheets:function(){var a=[];this.styleSheets&&(a=this.styleSheets.split(";"),this.styleSheets="");a=a.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];for(var b="",c=0,f,d=w.get(this.ownerDocument);f=
a[c++];)f=(new y(d.location,f)).toString(),this.editingAreaStyleSheets.push(f),b+='\x3clink rel\x3d"stylesheet" type\x3d"text/css" href\x3d"'+f+'"/\x3e';return b},addStyleSheet:function(a){var b=a.toString(),c=w.get(this.ownerDocument);if("."===b.charAt(0)||"/"!==b.charAt(0)&&!a.host)b=(new y(c.location,b)).toString();-1<l.indexOf(this.editingAreaStyleSheets,b)||(this.editingAreaStyleSheets.push(b),this.onLoadDeferred.then(m.hitch(this,function(){if(this.document.createStyleSheet)this.document.createStyleSheet(b);
else{var a=this.document.getElementsByTagName("head")[0],c=this.document.createElement("link");c.rel="stylesheet";c.type="text/css";c.href=b;a.appendChild(c)}})))},removeStyleSheet:function(a){var b=a.toString(),c=w.get(this.ownerDocument);if("."===b.charAt(0)||"/"!==b.charAt(0)&&!a.host)b=(new y(c.location,b)).toString();a=l.indexOf(this.editingAreaStyleSheets,b);-1!==a&&(delete this.editingAreaStyleSheets[a],t('link[href\x3d"'+b+'"]',this.window.document).orphan())},disabled:!1,_mozSettingProps:{styleWithCSS:!1},
_setDisabledAttr:function(a){a=!!a;this._set("disabled",a);if(this.isLoaded){var b=u("ie")&&(this.isLoaded||!this.focusOnLoad);b&&(this.editNode.unselectable="on");this.editNode.contentEditable=!a;this.editNode.tabIndex=a?"-1":this.tabIndex;b&&this.defer(function(){this.editNode&&(this.editNode.unselectable="off")});if(u("mozilla")&&!a&&this._mozSettingProps){a=this._mozSettingProps;for(var c in a)if(a.hasOwnProperty(c))try{this.document.execCommand(c,!1,a[c])}catch(f){}}this._disabledOK=!0}},onLoad:function(a){this.window.__registeredWindow||
(this.window.__registeredWindow=!0,this._iframeRegHandle=F.registerIframe(this.iframe));this.editNode=this.document.body.firstChild;var b=this;this.beforeIframeNode=d.place("\x3cdiv tabIndex\x3d-1\x3e\x3c/div\x3e",this.iframe,"before");this.afterIframeNode=d.place("\x3cdiv tabIndex\x3d-1\x3e\x3c/div\x3e",this.iframe,"after");this.iframe.onfocus=this.document.onfocus=function(){b.editNode.focus()};this.focusNode=this.editNode;var c=this.events.concat(this.captureEvents),f=this.iframe?this.document:
this.editNode;this.own.apply(this,l.map(c,function(a){var b=a.toLowerCase().replace(/^on/,"");return s(f,b,m.hitch(this,a))},this));this.own(s(f,"mouseup",m.hitch(this,"onClick")));u("ie")&&(this.own(s(this.document,"mousedown",m.hitch(this,"_onIEMouseDown"))),this.editNode.style.zoom=1);u("webkit")&&(this._webkitListener=this.own(s(this.document,"mouseup",m.hitch(this,"onDisplayChanged")))[0],this.own(s(this.document,"mousedown",m.hitch(this,function(a){(a=a.target)&&(a===this.document.body||a===
this.document)&&this.defer("placeCursorAtEnd")}))));if(u("ie"))try{this.document.execCommand("RespectVisibilityInDesign",!0,null)}catch(e){}this.isLoaded=!0;this.set("disabled",this.disabled);c=m.hitch(this,function(){this.setValue(a);this.onLoadDeferred&&!this.onLoadDeferred.isFulfilled()&&this.onLoadDeferred.resolve(!0);this.onDisplayChanged();this.focusOnLoad&&r(m.hitch(this,"defer","focus",this.updateInterval));this.value=this.getValue(!0)});this.setValueDeferred?this.setValueDeferred.then(c):
c()},onKeyDown:function(a){if(a.keyCode===f.SHIFT||a.keyCode===f.ALT||a.keyCode===f.META||a.keyCode===f.CTRL)return!0;if(a.keyCode===f.TAB&&this.isTabIndent&&(a.stopPropagation(),a.preventDefault(),this.queryCommandEnabled(a.shiftKey?"outdent":"indent")))this.execCommand(a.shiftKey?"outdent":"indent");if(a.keyCode==f.TAB&&!this.isTabIndent&&!a.ctrlKey&&!a.altKey)return a.shiftKey?this.beforeIframeNode.focus():this.afterIframeNode.focus(),!0;9>u("ie")&&(a.keyCode===f.BACKSPACE&&"Control"===this.document.selection.type)&&
(a.stopPropagation(),a.preventDefault(),this.execCommand("delete"));u("ff")&&(a.keyCode===f.PAGE_UP||a.keyCode===f.PAGE_DOWN)&&this.editNode.clientHeight>=this.editNode.scrollHeight&&a.preventDefault();var b=this._keyHandlers[a.keyCode],c=arguments;b&&!a.altKey&&l.some(b,function(b){if(!(b.shift^a.shiftKey)&&!(b.ctrl^(a.ctrlKey||a.metaKey)))return b.handler.apply(this,c)||a.preventDefault(),!0},this);this.defer("onKeyPressed",1);return!0},onKeyUp:function(){},setDisabled:function(a){c.deprecated("dijit.Editor::setDisabled is deprecated",
'use dijit.Editor::attr("disabled",boolean) instead',2);this.set("disabled",a)},_setValueAttr:function(a){this.setValue(a)},_setDisableSpellCheckAttr:function(a){this.document?g.set(this.document.body,"spellcheck",!a):this.onLoadDeferred.then(m.hitch(this,function(){g.set(this.document.body,"spellcheck",!a)}));this._set("disableSpellCheck",a)},addKeyHandler:function(a,b,c,f){"string"==typeof a&&(a=a.toUpperCase().charCodeAt(0));m.isArray(this._keyHandlers[a])||(this._keyHandlers[a]=[]);this._keyHandlers[a].push({shift:c||
!1,ctrl:b||!1,handler:f})},onKeyPressed:function(){this.onDisplayChanged()},onClick:function(a){this.onDisplayChanged(a)},_onIEMouseDown:function(){!this.focused&&!this.disabled&&this.focus()},_onBlur:function(a){(u("ie")||u("trident"))&&this.defer(function(){F.curNode||this.ownerDocumentBody.focus()});this.inherited(arguments);var b=this.getValue(!0);if(b!==this.value)this.onChange(b);this._set("value",b)},_onFocus:function(a){this.disabled||(this._disabledOK||this.set("disabled",!1),this.inherited(arguments))},
blur:function(){!u("ie")&&this.window.document.documentElement&&this.window.document.documentElement.focus?this.window.document.documentElement.focus():this.ownerDocumentBody.focus&&this.ownerDocumentBody.focus()},focus:function(){this.isLoaded?9>u("ie")?this.iframe.fireEvent("onfocus",document.createEventObject()):this.editNode.focus():this.focusOnLoad=!0},updateInterval:200,_updateTimer:null,onDisplayChanged:function(){this._updateTimer&&this._updateTimer.remove();this._updateTimer=this.defer("onNormalizedDisplayChanged",
this.updateInterval)},onNormalizedDisplayChanged:function(){delete this._updateTimer},onChange:function(){},_normalizeCommand:function(a,b){var c=a.toLowerCase();"formatblock"===c?u("safari")&&void 0===b&&(c="heading"):"hilitecolor"===c&&!u("mozilla")&&(c="backcolor");return c},_qcaCache:{},queryCommandAvailable:function(a){var b=this._qcaCache[a];return void 0!==b?b:this._qcaCache[a]=this._queryCommandAvailable(a)},_queryCommandAvailable:function(a){function b(a){return{ie:Boolean(a&c),mozilla:Boolean(a&
f),webkit:Boolean(a&d),opera:Boolean(a&e)}}var c=1,f=2,d=4,e=8,m=null;switch(a.toLowerCase()){case "bold":case "italic":case "underline":case "subscript":case "superscript":case "fontname":case "fontsize":case "forecolor":case "hilitecolor":case "justifycenter":case "justifyfull":case "justifyleft":case "justifyright":case "delete":case "selectall":case "toggledir":m=b(f|c|d|e);break;case "createlink":case "unlink":case "removeformat":case "inserthorizontalrule":case "insertimage":case "insertorderedlist":case "insertunorderedlist":case "indent":case "outdent":case "formatblock":case "inserthtml":case "undo":case "redo":case "strikethrough":case "tabindent":m=
b(f|c|e|d);break;case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":m=b(c);break;case "cut":case "copy":case "paste":m=b(c|f|d|e);break;case "inserttable":m=b(f|c);break;case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":m=b(c|f);break;default:return!1}return(u("ie")||u("trident"))&&m.ie||u("mozilla")&&m.mozilla||u("webkit")&&m.webkit||u("opera")&&m.opera},
execCommand:function(a,b){var c;this.focused&&this.focus();a=this._normalizeCommand(a,b);if(void 0!==b){if("heading"===a)throw Error("unimplemented");if("formatblock"===a&&(u("ie")||u("trident")))b="\x3c"+b+"\x3e"}var f="_"+a+"Impl";if(this[f])c=this[f](b);else if((b=1<arguments.length?b:null)||"createlink"!==a)c=this.document.execCommand(a,!1,b);this.onDisplayChanged();return c},queryCommandEnabled:function(a){if(this.disabled||!this._disabledOK)return!1;a=this._normalizeCommand(a);var b="_"+a+"EnabledImpl";
return this[b]?this[b](a):this._browserQueryCommandEnabled(a)},queryCommandState:function(a){if(this.disabled||!this._disabledOK)return!1;a=this._normalizeCommand(a);try{return this.document.queryCommandState(a)}catch(b){return!1}},queryCommandValue:function(a){if(this.disabled||!this._disabledOK)return!1;a=this._normalizeCommand(a);if((u("ie")||u("trident"))&&"formatblock"===a)a=this._native2LocalFormatNames[this.document.queryCommandValue(a)];else if(u("mozilla")&&"hilitecolor"===a){var b;try{b=
this.document.queryCommandValue("styleWithCSS")}catch(c){b=!1}this.document.execCommand("styleWithCSS",!1,!0);a=this.document.queryCommandValue(a);this.document.execCommand("styleWithCSS",!1,b)}else a=this.document.queryCommandValue(a);return a},_sCall:function(a,b){return this.selection[a].apply(this.selection,b)},placeCursorAtStart:function(){this.focus();var a=!1;if(u("mozilla"))for(var b=this.editNode.firstChild;b;){if(3===b.nodeType){if(0<b.nodeValue.replace(/^\s+|\s+$/g,"").length){a=!0;this.selection.selectElement(b);
break}}else if(1===b.nodeType){var a=!0,c=b.tagName?b.tagName.toLowerCase():"";/br|input|img|base|meta|area|basefont|hr|link/.test(c)?this.selection.selectElement(b):this.selection.selectElementChildren(b);break}b=b.nextSibling}else a=!0,this.selection.selectElementChildren(this.editNode);a&&this.selection.collapse(!0)},placeCursorAtEnd:function(){this.focus();var a=!1;if(u("mozilla"))for(var b=this.editNode.lastChild;b;){if(3===b.nodeType){if(0<b.nodeValue.replace(/^\s+|\s+$/g,"").length){a=!0;this.selection.selectElement(b);
break}}else if(1===b.nodeType){a=!0;this.selection.selectElement(b.lastChild||b);break}b=b.previousSibling}else a=!0,this.selection.selectElementChildren(this.editNode);a&&this.selection.collapse(!1)},getValue:function(a){return this.textarea&&(this.isClosed||!this.isLoaded)?this.textarea.value:this.isLoaded?this._postFilterContent(null,a):this.value},_getValueAttr:function(){return this.getValue(!0)},setValue:function(a){if(this.isLoaded){if(this.textarea&&(this.isClosed||!this.isLoaded))this.textarea.value=
a;else{a=this._preFilterContent(a);var b=this.isClosed?this.domNode:this.editNode;b.innerHTML=a;this._preDomFilterContent(b)}this.onDisplayChanged();this._set("value",this.getValue(!0))}else this.onLoadDeferred.then(m.hitch(this,function(){this.setValue(a)}))},replaceValue:function(a){this.isClosed?this.setValue(a):this.window&&this.window.getSelection&&!u("mozilla")?this.setValue(a):this.window&&this.window.getSelection?(a=this._preFilterContent(a),this.execCommand("selectall"),this.execCommand("inserthtml",
a),this._preDomFilterContent(this.editNode)):this.document&&this.document.selection&&this.setValue(a);this._set("value",this.getValue(!0))},_preFilterContent:function(a){var b=a;l.forEach(this.contentPreFilters,function(a){a&&(b=a(b))});return b},_preDomFilterContent:function(a){a=a||this.editNode;l.forEach(this.contentDomPreFilters,function(b){b&&m.isFunction(b)&&b(a)},this)},_postFilterContent:function(a,b){var c;m.isString(a)?c=a:(a=a||this.editNode,this.contentDomPostFilters.length&&(b&&(a=m.clone(a)),
l.forEach(this.contentDomPostFilters,function(b){a=b(a)})),c=C.getChildrenHtml(a));m.trim(c.replace(/^\xA0\xA0*/,"").replace(/\xA0\xA0*$/,"")).length||(c="");l.forEach(this.contentPostFilters,function(a){c=a(c)});return c},_saveContent:function(){var a=h.byId(I._scopeName+"._editor.RichText.value");a&&(a.value&&(a.value+=this._SEPARATOR),a.value+=this.name+this._NAME_CONTENT_SEP+this.getValue(!0))},escapeXml:function(a,b){a=a.replace(/&/gm,"\x26amp;").replace(/</gm,"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,
"\x26quot;");b||(a=a.replace(/'/gm,"\x26#39;"));return a},getNodeHtml:function(a){c.deprecated("dijit.Editor::getNodeHtml is deprecated","use dijit/_editor/html::getNodeHtml instead",2);return C.getNodeHtml(a)},getNodeChildrenHtml:function(a){c.deprecated("dijit.Editor::getNodeChildrenHtml is deprecated","use dijit/_editor/html::getChildrenHtml instead",2);return C.getChildrenHtml(a)},close:function(a){if(!this.isClosed){arguments.length||(a=!0);a&&this._set("value",this.getValue(!0));this.interval&&
clearInterval(this.interval);this._webkitListener&&(this._webkitListener.remove(),delete this._webkitListener);u("ie")&&(this.iframe.onfocus=null);this.iframe._loadFunc=null;this._iframeRegHandle&&(this._iframeRegHandle.remove(),delete this._iframeRegHandle);if(this.textarea){var b=this.textarea.style;b.position="";b.left=b.top="";u("ie")&&(b.overflow=this.__overflow,this.__overflow=null);this.textarea.value=this.value;d.destroy(this.domNode);this.domNode=this.textarea}else this.domNode.innerHTML=
this.value;delete this.iframe;e.remove(this.domNode,this.baseClass);this.isClosed=!0;this.isLoaded=!1;delete this.editNode;delete this.focusNode;this.window&&this.window._frameElement&&(this.window._frameElement=null);this.editorObject=this.editingArea=this.document=this.window=null}},destroy:function(){this.isClosed||this.close(!1);this._updateTimer&&this._updateTimer.remove();this.inherited(arguments);E._globalSaveHandler&&delete E._globalSaveHandler[this.id]},_removeMozBogus:function(a){return a.replace(/\stype="_moz"/gi,
"").replace(/\s_moz_dirty=""/gi,"").replace(/_moz_resizing="(true|false)"/gi,"")},_removeWebkitBogus:function(a){a=a.replace(/\sclass="webkit-block-placeholder"/gi,"");a=a.replace(/\sclass="apple-style-span"/gi,"");return a=a.replace(/<meta charset=\"utf-8\" \/>/gi,"")},_normalizeFontStyle:function(a){return a.replace(/<(\/)?strong([ \>])/gi,"\x3c$1b$2").replace(/<(\/)?em([ \>])/gi,"\x3c$1i$2")},_preFixUrlAttributes:function(a){return a.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,
"$1$4$2$3$5$2 _djrealurl\x3d$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl\x3d$2$3$5$2")},_browserQueryCommandEnabled:function(a){if(!a)return!1;var b=9>u("ie")?this.document.selection.createRange():this.document;try{return b.queryCommandEnabled(a)}catch(c){return!1}},_createlinkEnabledImpl:function(){var a=!0;return a=u("opera")?this.window.getSelection().isCollapsed?!0:this.document.queryCommandEnabled("createlink"):this._browserQueryCommandEnabled("createlink")},
_unlinkEnabledImpl:function(){var a=!0;return a=u("mozilla")||u("webkit")?this.selection.hasAncestorElement("a"):this._browserQueryCommandEnabled("unlink")},_inserttableEnabledImpl:function(){var a=!0;return a=u("mozilla")||u("webkit")?!0:this._browserQueryCommandEnabled("inserttable")},_cutEnabledImpl:function(){var a=!0;u("webkit")?((a=this.window.getSelection())&&(a=a.toString()),a=!!a):a=this._browserQueryCommandEnabled("cut");return a},_copyEnabledImpl:function(){var a=!0;u("webkit")?((a=this.window.getSelection())&&
(a=a.toString()),a=!!a):a=this._browserQueryCommandEnabled("copy");return a},_pasteEnabledImpl:function(){var a=!0;return u("webkit")?!0:a=this._browserQueryCommandEnabled("paste")},_inserthorizontalruleImpl:function(a){return u("ie")?this._inserthtmlImpl("\x3chr\x3e"):this.document.execCommand("inserthorizontalrule",!1,a)},_unlinkImpl:function(a){return this.queryCommandEnabled("unlink")&&(u("mozilla")||u("webkit"))?(a=this.selection.getAncestorElement("a"),this.selection.selectElement(a),this.document.execCommand("unlink",
!1,null)):this.document.execCommand("unlink",!1,a)},_hilitecolorImpl:function(a){var b;this._handleTextColorOrProperties("hilitecolor",a)||(u("mozilla")?(this.document.execCommand("styleWithCSS",!1,!0),b=this.document.execCommand("hilitecolor",!1,a),this.document.execCommand("styleWithCSS",!1,!1)):b=this.document.execCommand("hilitecolor",!1,a));return b},_backcolorImpl:function(a){u("ie")&&(a=a?a:null);var b=this._handleTextColorOrProperties("backcolor",a);b||(b=this.document.execCommand("backcolor",
!1,a));return b},_forecolorImpl:function(a){u("ie")&&(a=a?a:null);var b=!1;(b=this._handleTextColorOrProperties("forecolor",a))||(b=this.document.execCommand("forecolor",!1,a));return b},_inserthtmlImpl:function(a){a=this._preFilterContent(a);var b=!0;if(9>u("ie")){var c=this.document.selection.createRange();if("CONTROL"===this.document.selection.type.toUpperCase()){for(var f=c.item(0);c.length;)c.remove(c.item(0));f.outerHTML=a}else c.pasteHTML(a);c.select()}else if(8>u("trident")){var e=D.getSelection(this.window);
if(e&&e.rangeCount&&e.getRangeAt){c=e.getRangeAt(0);c.deleteContents();var m=d.create("div");m.innerHTML=a;for(var g,f=this.document.createDocumentFragment();a=m.firstChild;)g=f.appendChild(a);c.insertNode(f);g&&(c=c.cloneRange(),c.setStartAfter(g),c.collapse(!1),e.removeAllRanges(),e.addRange(c))}}else u("mozilla")&&!a.length?this.selection.remove():b=this.document.execCommand("inserthtml",!1,a);return b},_boldImpl:function(a){var b=!1;u("ie")&&(this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("bold"));
b||(b=this.document.execCommand("bold",!1,a));return b},_italicImpl:function(a){var b=!1;u("ie")&&(this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("italic"));b||(b=this.document.execCommand("italic",!1,a));return b},_underlineImpl:function(a){var b=!1;u("ie")&&(this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("underline"));b||(b=this.document.execCommand("underline",!1,a));return b},_strikethroughImpl:function(a){var b=!1;u("ie")&&(this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("strikethrough"));
b||(b=this.document.execCommand("strikethrough",!1,a));return b},_superscriptImpl:function(a){var b=!1;u("ie")&&(this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("superscript"));b||(b=this.document.execCommand("superscript",!1,a));return b},_subscriptImpl:function(a){var b=!1;u("ie")&&(this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("subscript"));b||(b=this.document.execCommand("subscript",!1,a));return b},_fontnameImpl:function(a){var b;u("ie")&&(b=this._handleTextColorOrProperties("fontname",
a));b||(b=this.document.execCommand("fontname",!1,a));return b},_fontsizeImpl:function(a){var b;u("ie")&&(b=this._handleTextColorOrProperties("fontsize",a));b||(b=this.document.execCommand("fontsize",!1,a));return b},_insertorderedlistImpl:function(a){var b=!1;u("ie")&&(b=this._adaptIEList("insertorderedlist",a));b||(b=this.document.execCommand("insertorderedlist",!1,a));return b},_insertunorderedlistImpl:function(a){var b=!1;u("ie")&&(b=this._adaptIEList("insertunorderedlist",a));b||(b=this.document.execCommand("insertunorderedlist",
!1,a));return b},getHeaderHeight:function(){return this._getNodeChildrenHeight(this.header)},getFooterHeight:function(){return this._getNodeChildrenHeight(this.footer)},_getNodeChildrenHeight:function(a){var c=0;if(a&&a.childNodes){var f;for(f=0;f<a.childNodes.length;f++)var d=b.position(a.childNodes[f]),c=c+d.h}return c},_isNodeEmpty:function(a,b){return 1===a.nodeType?0<a.childNodes.length?this._isNodeEmpty(a.childNodes[0],b):!0:3===a.nodeType?""===a.nodeValue.substring(b):!1},_removeStartingRangeFromRange:function(a,
b){if(a.nextSibling)b.setStart(a.nextSibling,0);else{for(var c=a.parentNode;c&&null==c.nextSibling;)c=c.parentNode;c&&b.setStart(c.nextSibling,0)}return b},_adaptIESelection:function(){var a=D.getSelection(this.window);if(a&&a.rangeCount&&!a.isCollapsed){for(var b=a.getRangeAt(0),c=b.startContainer,f=b.startOffset;3===c.nodeType&&f>=c.length&&c.nextSibling;)f-=c.length,c=c.nextSibling;for(var d=null;this._isNodeEmpty(c,f)&&c!==d;)d=c,b=this._removeStartingRangeFromRange(c,b),c=b.startContainer,f=
0;a.removeAllRanges();a.addRange(b)}},_adaptIEFormatAreaAndExec:function(a){var b=D.getSelection(this.window),c=this.document,f,e,m,g,h,k,n;if(a&&b&&b.isCollapsed){if(this.queryCommandValue(a)){a=this._tagNamesForCommand(a);m=b.getRangeAt(0);g=m.startContainer;3===g.nodeType&&(e=m.endOffset,g.length<e&&(e=this._adjustNodeAndOffset(f,e),g=e.node));for(;g&&g!==this.editNode;){f=g.tagName?g.tagName.toLowerCase():"";if(-1<l.indexOf(a,f)){n=g;break}g=g.parentNode}if(n&&(f=m.startContainer,a=c.createElement(n.tagName),
d.place(a,n,"after"),f&&3===f.nodeType)){e=m.endOffset;f.length<e&&(e=this._adjustNodeAndOffset(f,e),f=e.node,e=e.offset);g=f.nodeValue;m=c.createTextNode(g.substring(0,e));var q=g.substring(e,g.length);q&&(h=c.createTextNode(q));d.place(m,f,"before");h&&(k=c.createElement("span"),k.className="ieFormatBreakerSpan",d.place(k,f,"after"),d.place(h,k,"after"),h=k);d.destroy(f);m=m.parentNode;for(f=[];m!==n;){g=m.tagName;e={tagName:g};f.push(e);g=c.createElement(g);m.style&&(g.style&&m.style.cssText)&&
(g.style.cssText=m.style.cssText,e.cssText=m.style.cssText);"FONT"===m.tagName&&(m.color&&(g.color=m.color,e.color=m.color),m.face&&(g.face=m.face,e.face=m.face),m.size&&(g.size=m.size,e.size=m.size));m.className&&(g.className=m.className,e.className=m.className);if(h)for(;h;)e=h.nextSibling,g.appendChild(h),h=e;g.tagName==m.tagName?(k=c.createElement("span"),k.className="ieFormatBreakerSpan",d.place(k,m,"after"),d.place(g,k,"after")):d.place(g,m,"after");h=g;m=m.parentNode}if(h){if(1===h.nodeType||
3===h.nodeType&&h.nodeValue)a.innerHTML="";for(;h;)e=h.nextSibling,a.appendChild(h),h=e}if(f.length){e=f.pop();h=c.createElement(e.tagName);e.cssText&&h.style&&(h.style.cssText=e.cssText);e.className&&(h.className=e.className);"FONT"===e.tagName&&(e.color&&(h.color=e.color),e.face&&(h.face=e.face),e.size&&(h.size=e.size));for(d.place(h,a,"before");f.length;)e=f.pop(),n=c.createElement(e.tagName),e.cssText&&n.style&&(n.style.cssText=e.cssText),e.className&&(n.className=e.className),"FONT"===e.tagName&&
(e.color&&(n.color=e.color),e.face&&(n.face=e.face),e.size&&(n.size=e.size)),h.appendChild(n),h=n;n=c.createTextNode(".");k.appendChild(n);h.appendChild(n)}else k=c.createElement("span"),k.className="ieFormatBreakerSpan",n=c.createTextNode("."),k.appendChild(n),d.place(k,a,"before");h=D.create(this.window);h.setStart(n,0);h.setEnd(n,n.length);b.removeAllRanges();b.addRange(h);this.selection.collapse(!1);n.parentNode.innerHTML="";a.firstChild||d.destroy(a);return!0}return!1}m=b.getRangeAt(0);if((f=
m.startContainer)&&3===f.nodeType)return e=m.startOffset,f.length<e&&(e=this._adjustNodeAndOffset(f,e),f=e.node,e=e.offset),g=f.nodeValue,m=c.createTextNode(g.substring(0,e)),q=g.substring(e),""!==q&&(h=c.createTextNode(g.substring(e))),k=c.createElement("span"),n=c.createTextNode("."),k.appendChild(n),m.length?d.place(m,f,"after"):m=f,d.place(k,m,"after"),h&&d.place(h,k,"after"),d.destroy(f),h=D.create(this.window),h.setStart(n,0),h.setEnd(n,n.length),b.removeAllRanges(),b.addRange(h),c.execCommand(a),
d.place(k.firstChild,k,"before"),d.destroy(k),h.setStart(n,0),h.setEnd(n,n.length),b.removeAllRanges(),b.addRange(h),this.selection.collapse(!1),n.parentNode.innerHTML="",!0}else return!1},_adaptIEList:function(a){var b=D.getSelection(this.window);if(b.isCollapsed&&b.rangeCount&&!this.queryCommandValue(a)){var c=b.getRangeAt(0),f=c.startContainer;if(f&&3==f.nodeType&&!c.startOffset)return c="ul","insertorderedlist"===a&&(c="ol"),a=this.document.createElement(c),c=d.create("li",null,a),d.place(a,f,
"before"),c.appendChild(f),d.create("br",null,a,"after"),a=D.create(this.window),a.setStart(f,0),a.setEnd(f,f.length),b.removeAllRanges(),b.addRange(a),this.selection.collapse(!0),!0}return!1},_handleTextColorOrProperties:function(b,c){var f=D.getSelection(this.window),e=this.document,m,g,h,k,l;c=c||null;if(b&&(f&&f.isCollapsed)&&f.rangeCount&&(g=f.getRangeAt(0),(m=g.startContainer)&&3===m.nodeType)){l=g.startOffset;m.length<l&&(g=this._adjustNodeAndOffset(m,l),m=g.node,l=g.offset);h=m.nodeValue;
g=e.createTextNode(h.substring(0,l));""!==h.substring(l)&&(k=e.createTextNode(h.substring(l)));h=e.createElement("span");l=e.createTextNode(".");h.appendChild(l);e=e.createElement("span");h.appendChild(e);g.length?d.place(g,m,"after"):g=m;d.place(h,g,"after");k&&d.place(k,h,"after");d.destroy(m);m=D.create(this.window);m.setStart(l,0);m.setEnd(l,l.length);f.removeAllRanges();f.addRange(m);if(u("webkit")){f="color";if("hilitecolor"===b||"backcolor"===b)f="backgroundColor";a.set(h,f,c);this.selection.remove();
d.destroy(e);h.innerHTML="\x26#160;";this.selection.selectElement(h);this.focus()}else this.execCommand(b,c),d.place(h.firstChild,h,"before"),d.destroy(h),m.setStart(l,0),m.setEnd(l,l.length),f.removeAllRanges(),f.addRange(m),this.selection.collapse(!1),l.parentNode.removeChild(l);return!0}return!1},_adjustNodeAndOffset:function(a,b){for(;a.length<b&&a.nextSibling&&3===a.nextSibling.nodeType;)b-=a.length,a=a.nextSibling;return{node:a,offset:b}},_tagNamesForCommand:function(a){return"bold"===a?["b",
"strong"]:"italic"===a?["i","em"]:"strikethrough"===a?["s","strike"]:"superscript"===a?["sup"]:"subscript"===a?["sub"]:"underline"===a?["u"]:[]},_stripBreakerNodes:function(a){if(this.isLoaded)return t(".ieFormatBreakerSpan",a).forEach(function(a){for(;a.firstChild;)d.place(a.firstChild,a,"before");d.destroy(a)}),a},_stripTrailingEmptyNodes:function(a){for(;a.lastChild&&(/^(p|div|br)$/i.test(a.lastChild.nodeName)&&0==a.lastChild.children.length&&/^[\s\xA0]*$/.test(a.lastChild.textContent||a.lastChild.innerText||
"")||3===a.lastChild.nodeType&&/^[\s\xA0]*$/.test(a.lastChild.nodeValue));)d.destroy(a.lastChild);return a},_setTextDirAttr:function(a){this._set("textDir",a);this.onLoadDeferred.then(m.hitch(this,function(){this.editNode.dir=a}))}});return E})},"dijit/selection":function(){define("dojo/_base/array dojo/dom dojo/_base/lang dojo/sniff dojo/_base/window dijit/focus".split(" "),function(l,n,k,q,h,g){var e=function(b){var a=b.document;this.getType=function(){if(a.getSelection){var c="text",f;try{f=b.getSelection()}catch(d){}f&&
1==f.rangeCount&&(f=f.getRangeAt(0),f.startContainer==f.endContainer&&(1==f.endOffset-f.startOffset&&3!=f.startContainer.nodeType)&&(c="control"));return c}return a.selection.type.toLowerCase()};this.getSelectedText=function(){if(a.getSelection){var c=b.getSelection();return c?c.toString():""}return"control"==this.getType()?null:a.selection.createRange().text};this.getSelectedHtml=function(){if(a.getSelection){var c=b.getSelection();if(c&&c.rangeCount){var f,d="";for(f=0;f<c.rangeCount;f++){var e=
c.getRangeAt(f).cloneContents(),g=a.createElement("div");g.appendChild(e);d+=g.innerHTML}return d}return null}return"control"==this.getType()?null:a.selection.createRange().htmlText};this.getSelectedElement=function(){if("control"==this.getType()){if(a.getSelection){var c=b.getSelection();return c.anchorNode.childNodes[c.anchorOffset]}if((c=a.selection.createRange())&&c.item)return a.selection.createRange().item(0)}return null};this.getParentElement=function(){if("control"==this.getType()){var b=
this.getSelectedElement();if(b)return b.parentNode}else if(a.getSelection){if(b=a.getSelection()){for(b=b.anchorNode;b&&1!=b.nodeType;)b=b.parentNode;return b}}else return b=a.selection.createRange(),b.collapse(!0),b.parentElement();return null};this.hasAncestorElement=function(a){return null!=this.getAncestorElement.apply(this,arguments)};this.getAncestorElement=function(a){var b=this.getSelectedElement()||this.getParentElement();return this.getParentOfType(b,arguments)};this.isTag=function(a,b){if(a&&
a.tagName)for(var d=a.tagName.toLowerCase(),e=0;e<b.length;e++){var g=String(b[e]).toLowerCase();if(d==g)return g}return""};this.getParentOfType=function(a,b){for(;a;){if(this.isTag(a,b).length)return a;a=a.parentNode}return null};this.collapse=function(c){if(a.getSelection){var f=b.getSelection();f.removeAllRanges?c?f.collapseToStart():f.collapseToEnd():f.collapse(c)}else f=a.selection.createRange(),f.collapse(c),f.select()};this.remove=function(){var c=a.selection;a.getSelection?(c=b.getSelection(),
c.deleteFromDocument()):"none"!=c.type.toLowerCase()&&c.clear();return c};this.selectElementChildren=function(c,f){var d;c=n.byId(c);if(a.getSelection){var e=b.getSelection();q("opera")?(d=e.rangeCount?e.getRangeAt(0):a.createRange(),d.setStart(c,0),d.setEnd(c,3==c.nodeType?c.length:c.childNodes.length),e.addRange(d)):e.selectAllChildren(c)}else if(d=c.ownerDocument.body.createTextRange(),d.moveToElementText(c),!f)try{d.select()}catch(g){}};this.selectElement=function(b,f){var d;b=n.byId(b);if(a.getSelection){var e=
a.getSelection();d=a.createRange();e.removeAllRanges&&(q("opera")&&e.getRangeAt(0)&&(d=e.getRangeAt(0)),d.selectNode(b),e.removeAllRanges(),e.addRange(d))}else try{e=b.tagName?b.tagName.toLowerCase():"",d="img"===e||"table"===e?h.body(a).createControlRange():h.body(a).createRange(),d.addElement(b),f||d.select()}catch(g){this.selectElementChildren(b,f)}};this.inSelection=function(c){if(c){var f,d;if(a.getSelection){var e=b.getSelection();e&&0<e.rangeCount&&(d=e.getRangeAt(0));if(d&&d.compareBoundaryPoints&&
a.createRange)try{if(f=a.createRange(),f.setStart(c,0),1===d.compareBoundaryPoints(d.START_TO_END,f))return!0}catch(g){}}else{d=a.selection.createRange();try{f=c.ownerDocument.body.createTextRange(),f.moveToElementText(c)}catch(h){}if(d&&f&&1===d.compareEndPoints("EndToStart",f))return!0}}return!1};this.getBookmark=function(){var c,f,d=a.selection,e=g.curNode;if(a.getSelection){if(d=b.getSelection())if(d.isCollapsed){if(c=e?e.tagName:"")if(c=c.toLowerCase(),"textarea"==c||"input"==c&&(!e.type||"text"==
e.type.toLowerCase()))return d={start:e.selectionStart,end:e.selectionEnd,node:e,pRange:!0},{isCollapsed:d.end<=d.start,mark:d};c={isCollapsed:!0};d.rangeCount&&(c.mark=d.getRangeAt(0).cloneRange())}else f=d.getRangeAt(0),c={isCollapsed:!1,mark:f.cloneRange()}}else if(d){c=e?e.tagName:"";c=c.toLowerCase();if(e&&c&&("button"==c||"textarea"==c||"input"==c)){if(d.type&&"none"==d.type.toLowerCase())return{isCollapsed:!0,mark:null};f=d.createRange();return{isCollapsed:f.text&&f.text.length?!1:!0,mark:{range:f,
pRange:!0}}}c={};try{f=d.createRange(),c.isCollapsed=!("Text"==d.type?f.htmlText.length:f.length)}catch(h){return c.isCollapsed=!0,c}if("CONTROL"==d.type.toUpperCase())if(f.length){c.mark=[];d=0;for(e=f.length;d<e;)c.mark.push(f.item(d++))}else c.isCollapsed=!0,c.mark=null;else c.mark=f.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return c};this.moveToBookmark=function(c){if(c=c.mark)if(a.getSelection){var f=b.getSelection();f&&f.removeAllRanges?
c.pRange?(f=c.node,f.selectionStart=c.start,f.selectionEnd=c.end):(f.removeAllRanges(),f.addRange(c)):console.warn("No idea how to restore selection for this browser!")}else if(a.selection&&c){var d;c.pRange?d=c.range:k.isArray(c)?(d=a.body.createControlRange(),l.forEach(c,function(a){d.addElement(a)})):(d=a.body.createTextRange(),d.moveToBookmark(c));d.select()}};this.isCollapsed=function(){return this.getBookmark().isCollapsed}},d=new e(window);d.SelectionManager=e;return d})},"dijit/_editor/range":function(){define(["dojo/_base/array",
"dojo/_base/declare","dojo/_base/lang"],function(l,n,k){var q={getIndex:function(e,d){for(var b=[],a=[],c=e,f,g;e!=d;){var h=0;for(f=e.parentNode;g=f.childNodes[h++];)if(g===e){--h;break}b.unshift(h);a.unshift(h-f.childNodes.length);e=f}if(0<b.length&&3==c.nodeType){for(g=c.previousSibling;g&&3==g.nodeType;)b[b.length-1]--,g=g.previousSibling;for(g=c.nextSibling;g&&3==g.nodeType;)a[a.length-1]++,g=g.nextSibling}return{o:b,r:a}},getNode:function(e,d){if(!k.isArray(e)||0==e.length)return d;var b=d;
l.every(e,function(a){if(0<=a&&a<b.childNodes.length)b=b.childNodes[a];else return b=null,!1;return!0});return b},getCommonAncestor:function(e,d,b){b=b||e.ownerDocument.body;var a=function(a){for(var c=[];a;)if(c.unshift(a),a!==b)a=a.parentNode;else break;return c};e=a(e);d=a(d);for(var a=Math.min(e.length,d.length),c=e[0],f=1;f<a;f++)if(e[f]===d[f])c=e[f];else break;return c},getAncestor:function(e,d,b){for(b=b||e.ownerDocument.body;e&&e!==b;){var a=e.nodeName.toUpperCase();if(d.test(a))return e;
e=e.parentNode}return null},BlockTagNames:/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|DT|DE)$/,getBlockAncestor:function(e,d,b){b=b||e.ownerDocument.body;d=d||q.BlockTagNames;for(var a=null,c;e&&e!==b;){var f=e.nodeName.toUpperCase();!a&&d.test(f)&&(a=e);!c&&/^(?:BODY|TD|TH|CAPTION)$/.test(f)&&(c=e);e=e.parentNode}return{blockNode:a,blockContainer:c||e.ownerDocument.body}},atBeginningOfContainer:function(e,d,b){var a=!1,c=0==b;!c&&3==d.nodeType&&/^[\s\xA0]+$/.test(d.nodeValue.substr(0,b))&&
(c=!0);if(c)for(a=!0;d&&d!==e;){if(d.previousSibling){a=!1;break}d=d.parentNode}return a},atEndOfContainer:function(e,d,b){var a=!1,c=b==(d.length||d.childNodes.length);!c&&3==d.nodeType&&/^[\s\xA0]+$/.test(d.nodeValue.substr(b))&&(c=!0);if(c)for(a=!0;d&&d!==e;){if(d.nextSibling){a=!1;break}d=d.parentNode}return a},adjacentNoneTextNode:function(e,d){for(var b=e,a=0-e.length||0,c=d?"nextSibling":"previousSibling";b&&3==b.nodeType;)a+=b.length,b=b[c];return[b,a]},create:function(e){e=e||window;return e.getSelection?
e.document.createRange():new g},getSelection:function(e,d){if(e.getSelection)return e.getSelection();var b=new h.selection(e);d||b._getCurrentSelection();return b}};if(!window.getSelection)var h=q.ie={cachedSelection:{},selection:function(e){this._ranges=[];this.addRange=function(d,b){this._ranges.push(d);b||d._select();this.rangeCount=this._ranges.length};this.removeAllRanges=function(){this._ranges=[];this.rangeCount=0};this.getRangeAt=function(d){return this._ranges[d]};this._getCurrentSelection=
function(){this.removeAllRanges();var d;d=e.document.selection.createRange();d="CONTROL"==e.document.selection.type.toUpperCase()?new g(h.decomposeControlRange(d)):new g(h.decomposeTextRange(d));d?(this.addRange(d,!0),this.isCollapsed=d.collapsed):this.isCollapsed=!0}},decomposeControlRange:function(e){var d=e.item(0),b=e.item(e.length-1);e=d.parentNode;var a=b.parentNode,d=q.getIndex(d,e).o[0],b=q.getIndex(b,a).o[0]+1;return[e,d,a,b]},getEndPoint:function(e,d){var b=e.duplicate();b.collapse(!d);
var a="EndTo"+(d?"End":"Start"),c=b.parentElement(),f,g,h;0<c.childNodes.length?l.every(c.childNodes,function(d,k){var l;if(3!=d.nodeType)if(b.moveToElementText(d),0<b.compareEndPoints(a,e))if(h&&3==h.nodeType)f=h,l=!0;else return f=c,g=k,!1;else{if(k==c.childNodes.length-1)return f=c,g=c.childNodes.length,!1}else k==c.childNodes.length-1&&(f=d,l=!0);if(l&&f){f=(l=q.adjacentNoneTextNode(f)[0])?l.nextSibling:c.firstChild;var n=q.adjacentNoneTextNode(f);l=n[0];n=n[1];l?(b.moveToElementText(l),b.collapse(!1)):
b.moveToElementText(c);b.setEndPoint(a,e);g=b.text.length-n;return!1}h=d;return!0}):(f=c,g=0);if(!d&&1==f.nodeType&&g==f.childNodes.length){var k=f.nextSibling;k&&3==k.nodeType&&(f=k,g=0)}return[f,g]},setEndPoint:function(e,d,b){e=e.duplicate();var a;if(3!=d.nodeType)if(0<b){if(a=d.childNodes[b-1])if(3==a.nodeType)d=a,b=a.length;else if(a.nextSibling&&3==a.nextSibling.nodeType)d=a.nextSibling,b=0;else{e.moveToElementText(a.nextSibling?a:d);var c=a.parentNode;a=c.insertBefore(a.ownerDocument.createTextNode(" "),
a.nextSibling);e.collapse(!1);c.removeChild(a)}}else e.moveToElementText(d),e.collapse(!0);3==d.nodeType&&(a=q.adjacentNoneTextNode(d),c=a[0],a=a[1],c?(e.moveToElementText(c),e.collapse(!1),"inherit"!=c.contentEditable&&a++):(e.moveToElementText(d.parentNode),e.collapse(!0),e.move("character",1),e.move("character",-1)),b+=a,0<b&&e.move("character",b)!=b&&console.error("Error when moving!"));return e},decomposeTextRange:function(e){var d=h.getEndPoint(e),b=d[0],a=d[1],c=d[0],d=d[1];e.htmlText.length&&
(e.htmlText==e.text?d=a+e.text.length:(d=h.getEndPoint(e,!0),c=d[0],d=d[1]));return[b,a,c,d]},setRange:function(e,d,b,a,c,f){d=h.setEndPoint(e,d,b);e.setEndPoint("StartToStart",d);if(!f)var g=h.setEndPoint(e,a,c);e.setEndPoint("EndToEnd",g||d);return e}},g=q.W3CRange=n(null,{constructor:function(){0<arguments.length?(this.setStart(arguments[0][0],arguments[0][1]),this.setEnd(arguments[0][2],arguments[0][3])):(this.startContainer=this.commonAncestorContainer=null,this.startOffset=0,this.endContainer=
null,this.endOffset=0,this.collapsed=!0)},_updateInternal:function(){this.commonAncestorContainer=this.startContainer!==this.endContainer?q.getCommonAncestor(this.startContainer,this.endContainer):this.startContainer;this.collapsed=this.startContainer===this.endContainer&&this.startOffset==this.endOffset},setStart:function(e,d){d=parseInt(d);this.startContainer===e&&this.startOffset==d||(delete this._cachedBookmark,this.startContainer=e,this.startOffset=d,this.endContainer?this._updateInternal():
this.setEnd(e,d))},setEnd:function(e,d){d=parseInt(d);this.endContainer===e&&this.endOffset==d||(delete this._cachedBookmark,this.endContainer=e,this.endOffset=d,this.startContainer?this._updateInternal():this.setStart(e,d))},setStartAfter:function(e,d){this._setPoint("setStart",e,d,1)},setStartBefore:function(e,d){this._setPoint("setStart",e,d,0)},setEndAfter:function(e,d){this._setPoint("setEnd",e,d,1)},setEndBefore:function(e,d){this._setPoint("setEnd",e,d,0)},_setPoint:function(e,d,b,a){b=q.getIndex(d,
d.parentNode).o;this[e](d.parentNode,b.pop()+a)},_getIERange:function(){var e=(this._body||this.endContainer.ownerDocument.body).createTextRange();h.setRange(e,this.startContainer,this.startOffset,this.endContainer,this.endOffset,this.collapsed);return e},getBookmark:function(){this._getIERange();return this._cachedBookmark},_select:function(){this._getIERange().select()},deleteContents:function(){var e=this.startContainer,d=this._getIERange();3===e.nodeType&&!this.startOffset&&this.setStartBefore(e);
d.pasteHTML("");this.endContainer=this.startContainer;this.endOffset=this.startOffset;this.collapsed=!0},cloneRange:function(){var e=new g([this.startContainer,this.startOffset,this.endContainer,this.endOffset]);e._body=this._body;return e},detach:function(){this.startContainer=this.commonAncestorContainer=this._body=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=!0}});k.setObject("dijit.range",q);return q})},"dijit/_editor/html":function(){define(["dojo/_base/array",
"dojo/_base/lang","dojo/sniff"],function(l,n,k){var q={};n.setObject("dijit._editor.html",q);var h=q.escapeXml=function(g,e){g=g.replace(/&/gm,"\x26amp;").replace(/</gm,"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;");e||(g=g.replace(/'/gm,"\x26#39;"));return g};q.getNodeHtml=function(g){var e=[];q.getNodeHtmlHelper(g,e);return e.join("")};q.getNodeHtmlHelper=function(g,e){switch(g.nodeType){case 1:var d=g.nodeName.toLowerCase();if(!d||"/"==d.charAt(0))return"";e.push("\x3c",d);var b=
[],a={},c;if(k("dom-attributes-explicit")||k("dom-attributes-specified-flag"))for(var f=0;c=g.attributes[f++];){var m=c.name;if("_dj"!==m.substr(0,3)&&(!k("dom-attributes-specified-flag")||c.specified)&&!(m in a)){c=c.value;if("src"==m||"href"==m)g.getAttribute("_djrealurl")&&(c=g.getAttribute("_djrealurl"));8===k("ie")&&"style"===m&&(c=c.replace("HEIGHT:","height:").replace("WIDTH:","width:"));b.push([m,c]);a[m]=c}}else{var n=(/^input$|^img$/i.test(g.nodeName)?g:g.cloneNode(!1)).outerHTML,a=n.match(/[\w-]+=("[^"]*"|'[^']*'|\S*)/gi),
n=n.substr(0,n.indexOf("\x3e"));l.forEach(a,function(a){if(a){var c=a.indexOf("\x3d");if(0<c&&(a=a.substring(0,c),"_dj"!=a.substr(0,3)))if(("src"==a||"href"==a)&&g.getAttribute("_djrealurl"))b.push([a,g.getAttribute("_djrealurl")]);else{var f;switch(a){case "style":f=g.style.cssText.toLowerCase();break;case "class":f=g.className;break;case "width":if("img"===d){(c=/width=(\S+)/i.exec(n))&&(f=c[1]);break}case "height":if("img"===d){(c=/height=(\S+)/i.exec(n))&&(f=c[1]);break}default:f=g.getAttribute(a)}null!=
f&&b.push([a,f.toString()])}}},this)}b.sort(function(a,b){return a[0]<b[0]?-1:a[0]==b[0]?0:1});for(a=0;c=b[a++];)e.push(" ",c[0],'\x3d"',"string"===typeof c[1]?h(c[1],!0):c[1],'"');switch(d){case "br":case "hr":case "img":case "input":case "base":case "meta":case "area":case "basefont":e.push(" /\x3e");break;case "script":e.push("\x3e",g.innerHTML,"\x3c/",d,"\x3e");break;default:e.push("\x3e"),g.hasChildNodes()&&q.getChildrenHtmlHelper(g,e),e.push("\x3c/",d,"\x3e")}break;case 4:case 3:e.push(h(g.nodeValue,
!0));break;case 8:e.push("\x3c!--",h(g.nodeValue,!0),"--\x3e");break;default:e.push("\x3c!-- Element not recognized - Type: ",g.nodeType," Name: ",g.nodeName,"--\x3e")}};q.getChildrenHtml=function(g){var e=[];q.getChildrenHtmlHelper(g,e);return e.join("")};q.getChildrenHtmlHelper=function(g,e){if(g)for(var d=g.childNodes||g,b=!k("ie")||d!==g,a,c=0;a=d[c++];)(!b||a.parentNode==g)&&q.getNodeHtmlHelper(a,e)};return q})},"dijit/_editor/plugins/LinkDialog":function(){define("require dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/query dojo/string ../_Plugin ../../form/DropDownButton ../range".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f){var m=n("dijit._editor.plugins.LinkDialog",a,{buttonClass:c,useDefaultCommand:!1,urlRegExp:"((https?|ftps?|file)\\://|./|../|/|)(/[a-zA-Z]{1,1}:/|)(((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)*(?:[a-zA-Z](?:[-\\da-zA-Z]{0,80}[\\da-zA-Z])?)\\.?)|(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])|(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]|(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]|(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])|0[xX]0*[\\da-fA-F]{1,8}|([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}|([\\da-fA-F]{1,4}\\:){6}((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])))(\\:\\d+)?(/(?:[^?#\\s/]+/)*(?:[^?#\\s/]{0,}(?:\\?[^?#\\s/]*)?(?:#.*)?)?)?",
emailRegExp:"\x3c?(mailto\\:)([!#-'*+\\-\\/-9\x3d?A-Z^-~]+[.])*[!#-'*+\\-\\/-9\x3d?A-Z^-~]+@((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)+(?:[a-zA-Z](?:[-\\da-zA-Z]{0,6}[\\da-zA-Z])?)\\.?)|localhost|^[^-][a-zA-Z0-9_-]*\x3e?",htmlTemplate:'\x3ca href\x3d"${urlInput}" _djrealurl\x3d"${urlInput}" target\x3d"${targetSelect}"\x3e${textInput}\x3c/a\x3e',tag:"a",_hostRxp:/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/,_userAtRxp:/^([!#-'*+\-\/-9=?A-Z^-~]+[.])*[!#-'*+\-\/-9=?A-Z^-~]+@/i,
linkDialogTemplate:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_urlInput'\x3e${url}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_urlInput' name\x3d'urlInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_textInput' name\x3d'textInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_targetSelect'\x3e${target}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect id\x3d'${id}_targetSelect' name\x3d'targetSelect' data-dojo-type\x3d'dijit.form.Select'\x3e\x3coption selected\x3d'selected' value\x3d'_self'\x3e${currentWindow}\x3c/option\x3e\x3coption value\x3d'_blank'\x3e${newWindow}\x3c/option\x3e\x3coption value\x3d'_top'\x3e${topWindow}\x3c/option\x3e\x3coption value\x3d'_parent'\x3e${parentWindow}\x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
_initButton:function(){this.inherited(arguments);this.button.loadDropDown=h.hitch(this,"_loadDropDown");this._connectTagEvents()},_loadDropDown:function(a){l("dojo/i18n ../../TooltipDialog ../../registry ../../form/Button ../../form/Select ../../form/ValidationTextBox dojo/i18n!../../nls/common dojo/i18n!../nls/LinkDialog".split(" "),h.hitch(this,function(c,f,d){var e=this;this.tag="insertImage"==this.command?"img":"a";c=h.delegate(c.getLocalization("dijit","common",this.lang),c.getLocalization("dijit._editor",
"LinkDialog",this.lang));var m=this.dropDown=this.button.dropDown=new f({title:c[this.command+"Title"],ownerDocument:this.editor.ownerDocument,dir:this.editor.dir,execute:h.hitch(this,"setValue"),onOpen:function(){e._onOpenDialog();f.prototype.onOpen.apply(this,arguments)},onCancel:function(){setTimeout(h.hitch(e,"_onCloseDialog"),0)}});c.urlRegExp=this.urlRegExp;c.id=d.getUniqueId(this.editor.id);this._uniqueId=c.id;this._setContent(m.title+"\x3cdiv style\x3d'border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'\x3e\x3c/div\x3e"+
b.substitute(this.linkDialogTemplate,c));m.startup();this._urlInput=d.byId(this._uniqueId+"_urlInput");this._textInput=d.byId(this._uniqueId+"_textInput");this._setButton=d.byId(this._uniqueId+"_setButton");this.own(d.byId(this._uniqueId+"_cancelButton").on("click",h.hitch(this.dropDown,"onCancel")));this._urlInput&&this.own(this._urlInput.on("change",h.hitch(this,"_checkAndFixInput")));this._textInput&&this.own(this._textInput.on("change",h.hitch(this,"_checkAndFixInput")));this._urlRegExp=RegExp("^"+
this.urlRegExp+"$","i");this._emailRegExp=RegExp("^"+this.emailRegExp+"$","i");this._urlInput.isValid=h.hitch(this,function(){var a=this._urlInput.get("value");return this._urlRegExp.test(a)||this._emailRegExp.test(a)});this.own(g(m.domNode,"keydown",h.hitch(this,h.hitch(this,function(a){a&&(a.keyCode==q.ENTER&&!a.shiftKey&&!a.metaKey&&!a.ctrlKey&&!a.altKey)&&!this._setButton.get("disabled")&&(m.onExecute(),m.execute(m.get("value")))}))));a()}))},_checkAndFixInput:function(){var a=this,b=this._urlInput.get("value");
this._delayedCheck&&(clearTimeout(this._delayedCheck),this._delayedCheck=null);this._delayedCheck=setTimeout(function(){var c=b,f=!1,d=!1;c&&1<c.length&&(c=h.trim(c),0!==c.indexOf("mailto:")&&(0<c.indexOf("/")?-1===c.indexOf("://")&&"/"!==c.charAt(0)&&c.indexOf("./")&&0!==c.indexOf("../")&&a._hostRxp.test(c)&&(f=!0):a._userAtRxp.test(c)&&(d=!0)));f&&a._urlInput.set("value","http://"+c);d&&a._urlInput.set("value","mailto:"+c);a._setButton.set("disabled",!a._isValid())},250)},_connectTagEvents:function(){this.editor.onLoadDeferred.then(h.hitch(this,
function(){this.own(g(this.editor.editNode,"dblclick",h.hitch(this,"_onDblClick")))}))},_isValid:function(){return this._urlInput.isValid()&&this._textInput.isValid()},_setContent:function(a){this.dropDown.set({parserScope:"dojo",content:a})},_checkValues:function(a){a&&a.urlInput&&(a.urlInput=a.urlInput.replace(/"/g,"\x26quot;"));return a},setValue:function(a){this._onCloseDialog();if(9>e("ie")){var c=f.getSelection(this.editor.window).getRangeAt(0).endContainer;3===c.nodeType&&(c=c.parentNode);
c&&(c.nodeName&&c.nodeName.toLowerCase()!==this.tag)&&(c=this.editor.selection.getSelectedElement(this.tag));c&&(c.nodeName&&c.nodeName.toLowerCase()===this.tag)&&this.editor.queryCommandEnabled("unlink")&&(this.editor.selection.selectElementChildren(c),this.editor.execCommand("unlink"))}a=this._checkValues(a);this.editor.execCommand("inserthtml",b.substitute(this.htmlTemplate,a));d("a",this.editor.document).forEach(function(a){!a.innerHTML&&!k.has(a,"name")&&a.parentNode.removeChild(a)},this)},_onCloseDialog:function(){this.editor.focused&&
this.editor.focus()},_getCurrentValues:function(a){var b,c,f;a&&a.tagName.toLowerCase()===this.tag?(b=a.getAttribute("_djrealurl")||a.getAttribute("href"),f=a.getAttribute("target")||"_self",c=a.textContent||a.innerText,this.editor.selection.selectElement(a,!0)):c=this.editor.selection.getSelectedText();return{urlInput:b||"",textInput:c||"",targetSelect:f||""}},_onOpenDialog:function(){var a,b;if(e("ie")){if(b=f.getSelection(this.editor.window),b.rangeCount){var c=b.getRangeAt(0);a=c.endContainer;
3===a.nodeType&&(a=a.parentNode);a&&(a.nodeName&&a.nodeName.toLowerCase()!==this.tag)&&(a=this.editor.selection.getSelectedElement(this.tag));if(!a||a.nodeName&&a.nodeName.toLowerCase()!==this.tag)if((b=this.editor.selection.getAncestorElement(this.tag))&&b.nodeName&&b.nodeName.toLowerCase()==this.tag)a=b,this.editor.selection.selectElement(a);else if(c.startContainer===c.endContainer&&(b=c.startContainer.firstChild)&&b.nodeName&&b.nodeName.toLowerCase()==this.tag)a=b,this.editor.selection.selectElement(a)}}else a=
this.editor.selection.getAncestorElement(this.tag);this.dropDown.reset();this._setButton.set("disabled",!0);this.dropDown.set("value",this._getCurrentValues(a))},_onDblClick:function(a){if(a&&a.target&&(a=a.target,(a.tagName?a.tagName.toLowerCase():"")===this.tag&&k.get(a,"href"))){var b=this.editor;this.editor.selection.selectElement(a);b.onDisplayChanged();b._updateTimer&&(b._updateTimer.remove(),delete b._updateTimer);b.onNormalizedDisplayChanged();var c=this.button;setTimeout(function(){c.set("disabled",
!1);c.loadAndOpenDropDown().then(function(){c.dropDown.focus&&c.dropDown.focus()})},10)}}}),s=n("dijit._editor.plugins.ImgLinkDialog",[m],{linkDialogTemplate:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_urlInput'\x3e${url}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' regExp\x3d'${urlRegExp}' required\x3d'true' id\x3d'${id}_urlInput' name\x3d'urlInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'false' id\x3d'${id}_textInput' name\x3d'textInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
htmlTemplate:'\x3cimg src\x3d"${urlInput}" _djrealurl\x3d"${urlInput}" alt\x3d"${textInput}" /\x3e',tag:"img",_getCurrentValues:function(a){var b,c;a&&a.tagName.toLowerCase()===this.tag?(b=a.getAttribute("_djrealurl")||a.getAttribute("src"),c=a.getAttribute("alt"),this.editor.selection.selectElement(a,!0)):c=this.editor.selection.getSelectedText();return{urlInput:b||"",textInput:c||""}},_isValid:function(){return this._urlInput.isValid()},_connectTagEvents:function(){this.inherited(arguments);this.editor.onLoadDeferred.then(h.hitch(this,
function(){this.own(g(this.editor.editNode,"mousedown",h.hitch(this,"_selectTag")))}))},_selectTag:function(a){a&&a.target&&(a=a.target,(a.tagName?a.tagName.toLowerCase():"")===this.tag&&this.editor.selection.selectElement(a))},_checkValues:function(a){a&&a.urlInput&&(a.urlInput=a.urlInput.replace(/"/g,"\x26quot;"));a&&a.textInput&&(a.textInput=a.textInput.replace(/"/g,"\x26quot;"));return a},_onDblClick:function(a){if(a&&a.target&&(a=a.target,(a.tagName?a.tagName.toLowerCase():"")===this.tag&&k.get(a,
"src"))){var b=this.editor;this.editor.selection.selectElement(a);b.onDisplayChanged();b._updateTimer&&(b._updateTimer.remove(),delete b._updateTimer);b.onNormalizedDisplayChanged();var c=this.button;setTimeout(function(){c.set("disabled",!1);c.loadAndOpenDropDown().then(function(){c.dropDown.focus&&c.dropDown.focus()})},10)}}});a.registry.createLink=function(){return new m({command:"createLink"})};a.registry.insertImage=function(){return new s({command:"insertImage"})};m.ImgLinkDialog=s;return m})},
"dijit/form/DropDownButton":function(){define("dojo/_base/declare dojo/_base/lang dojo/query ../registry ../popup ./Button ../_Container ../_HasDropDown dojo/text!./templates/DropDownButton.html ../a11yclick".split(" "),function(l,n,k,q,h,g,e,d,b){return l("dijit.form.DropDownButton",[g,e,d],{baseClass:"dijitDropDownButton",templateString:b,_fillContent:function(){if(this.srcNodeRef){var a=k("*",this.srcNodeRef);this.inherited(arguments,[a[0]]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){if(!this.dropDown&&
this.dropDownContainer){var a=k("[widgetId]",this.dropDownContainer)[0];a&&(this.dropDown=q.byNode(a));delete this.dropDownContainer}this.dropDown&&h.hide(this.dropDown);this.inherited(arguments)}},isLoaded:function(){var a=this.dropDown;return!!a&&(!a.href||a.isLoaded)},loadDropDown:function(a){var b=this.dropDown,f=b.on("load",n.hitch(this,function(){f.remove();a()}));b.refresh()},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}})})},"dijit/popup":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dojo/keys dojo/_base/lang dojo/on ./place ./BackgroundIframe ./Viewport ./main".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r){function u(){this._popupWrapper&&(g.destroy(this._popupWrapper),delete this._popupWrapper)}k=k(null,{_stack:[],_beginZIndex:1E3,_idGen:1,_repositionAll:function(){if(this._firstAroundNode){var a=this._firstAroundPosition,b=e.position(this._firstAroundNode,!0),f=b.x-a.x,a=b.y-a.y;if(f||a){this._firstAroundPosition=b;for(b=0;b<this._stack.length;b++){var d=this._stack[b].wrapper.style;d.top=parseFloat(d.top)+a+"px";"auto"==d.right?d.left=parseFloat(d.left)+
f+"px":d.right=parseFloat(d.right)-f+"px"}}this._aroundMoveListener=setTimeout(c.hitch(this,"_repositionAll"),f||a?10:50)}},_createWrapper:function(a){var b=a._popupWrapper,c=a.domNode;b||(b=g.create("div",{"class":"dijitPopup",style:{display:"none"},role:"region","aria-label":a["aria-label"]||a.label||a.name||a.id},a.ownerDocumentBody),b.appendChild(c),c=c.style,c.display="",c.visibility="",c.position="",c.top="0px",a._popupWrapper=b,n.after(a,"destroy",u,!0),"ontouchend"in document&&f(b,"touchend",
function(a){/^(input|button|textarea)$/i.test(a.target.tagName)||a.preventDefault()}));return b},moveOffScreen:function(a){var b=this._createWrapper(a);a=e.isBodyLtr(a.ownerDocument);var c={visibility:"hidden",top:"-9999px",display:""};c[a?"left":"right"]="-9999px";c[a?"right":"left"]="auto";d.set(b,c);return b},hide:function(a){var b=this._createWrapper(a);d.set(b,{display:"none",height:"auto",overflow:"visible",border:""});a=a.domNode;"_originalStyle"in a&&(a.style.cssText=a._originalStyle)},getTopPopup:function(){for(var a=
this._stack,b=a.length-1;0<b&&a[b].parent===a[b-1].widget;b--);return a[b]},open:function(g){for(var k=this._stack,l=g.popup,n=l.domNode,r=g.orient||["below","below-alt","above","above-alt"],u=g.parent?g.parent.isLeftToRight():e.isBodyLtr(l.ownerDocument),B=g.around,D=g.around&&g.around.id?g.around.id+"_dropdown":"popup_"+this._idGen++;k.length&&(!g.parent||!q.isDescendant(g.parent.domNode,k[k.length-1].widget.domNode));)this.close(k[k.length-1].widget);var C=this.moveOffScreen(l);l.startup&&!l._started&&
l.startup();var F,I=e.position(n);if("maxHeight"in g&&-1!=g.maxHeight)F=g.maxHeight||Infinity;else{F=t.getEffectiveBox(this.ownerDocument);var E=B?e.position(B,!1):{y:g.y-(g.padding||0),h:2*(g.padding||0)};F=Math.floor(Math.max(E.y,F.h-(E.y+E.h)))}I.h>F&&(I=d.getComputedStyle(n),d.set(C,{overflowY:"scroll",height:F+"px",border:I.borderLeftWidth+" "+I.borderLeftStyle+" "+I.borderLeftColor}),n._originalStyle=n.style.cssText,n.style.border="none");h.set(C,{id:D,style:{zIndex:this._beginZIndex+k.length},
"class":"dijitPopup "+(l.baseClass||l["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:g.parent?g.parent.id:""});0==k.length&&B&&(this._firstAroundNode=B,this._firstAroundPosition=e.position(B,!0),this._aroundMoveListener=setTimeout(c.hitch(this,"_repositionAll"),50));b("config-bgIframe")&&!l.bgIframe&&(l.bgIframe=new s(C));D=l.orient?c.hitch(l,"orient"):null;r=B?m.around(C,B,r,u,D):m.at(C,g,"R"==r?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],g.padding,D);C.style.visibility="visible";n.style.visibility=
"visible";n=[];n.push(f(C,"keydown",c.hitch(this,function(b){if(b.keyCode==a.ESCAPE&&g.onCancel)b.stopPropagation(),b.preventDefault(),g.onCancel();else if(b.keyCode==a.TAB&&(b.stopPropagation(),b.preventDefault(),(b=this.getTopPopup())&&b.onCancel))b.onCancel()})));l.onCancel&&g.onCancel&&n.push(l.on("cancel",g.onCancel));n.push(l.on(l.onExecute?"execute":"change",c.hitch(this,function(){var a=this.getTopPopup();if(a&&a.onExecute)a.onExecute()})));k.push({widget:l,wrapper:C,parent:g.parent,onExecute:g.onExecute,
onCancel:g.onCancel,onClose:g.onClose,handlers:n});if(l.onOpen)l.onOpen(r);return r},close:function(a){for(var b=this._stack;a&&l.some(b,function(b){return b.widget==a})||!a&&b.length;){var c=b.pop(),f=c.widget,d=c.onClose;f.bgIframe&&(f.bgIframe.destroy(),delete f.bgIframe);if(f.onClose)f.onClose();for(var e;e=c.handlers.pop();)e.remove();f&&f.domNode&&this.hide(f);d&&d()}0==b.length&&this._aroundMoveListener&&(clearTimeout(this._aroundMoveListener),this._firstAroundNode=this._firstAroundPosition=
this._aroundMoveListener=null)}});return r.popup=new k})},"dijit/place":function(){define("dojo/_base/array dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/_base/window ./Viewport ./main".split(" "),function(l,n,k,q,h,g,e){function d(a,b,f,d){var e=g.getEffectiveBox(a.ownerDocument);(!a.parentNode||"body"!=String(a.parentNode.tagName).toLowerCase())&&h.body(a.ownerDocument).appendChild(a);var q=null;l.some(b,function(b){var c=b.corner,g=b.pos,h=0,k={w:{L:e.l+e.w-g.x,R:g.x-e.l,M:e.w}[c.charAt(1)],
h:{T:e.t+e.h-g.y,B:g.y-e.t,M:e.h}[c.charAt(0)]},l=a.style;l.left=l.right="auto";f&&(h=f(a,b.aroundCorner,c,k,d),h="undefined"==typeof h?0:h);var r=a.style,u=r.display,C=r.visibility;"none"==r.display&&(r.visibility="hidden",r.display="");l=n.position(a);r.display=u;r.visibility=C;u={L:g.x,R:g.x-l.w,M:Math.max(e.l,Math.min(e.l+e.w,g.x+(l.w>>1))-l.w)}[c.charAt(1)];C={T:g.y,B:g.y-l.h,M:Math.max(e.t,Math.min(e.t+e.h,g.y+(l.h>>1))-l.h)}[c.charAt(0)];g=Math.max(e.l,u);r=Math.max(e.t,C);u=Math.min(e.l+e.w,
u+l.w);C=Math.min(e.t+e.h,C+l.h);u-=g;C-=r;h+=l.w-u+(l.h-C);if(null==q||h<q.overflow)q={corner:c,aroundCorner:b.aroundCorner,x:g,y:r,w:u,h:C,overflow:h,spaceAvailable:k};return!h});q.overflow&&f&&f(a,q.aroundCorner,q.corner,q.spaceAvailable,d);b=q.y;var r=q.x,u=h.body(a.ownerDocument);/relative|absolute/.test(k.get(u,"position"))&&(b-=k.get(u,"marginTop"),r-=k.get(u,"marginLeft"));u=a.style;u.top=b+"px";u.left=r+"px";u.right="auto";return q}var b={TL:"BR",TR:"BL",BL:"TR",BR:"TL"};return e.place={at:function(a,
c,f,e,g){f=l.map(f,function(a){var f={corner:a,aroundCorner:b[a],pos:{x:c.x,y:c.y}};e&&(f.pos.x+="L"==a.charAt(1)?e.x:-e.x,f.pos.y+="T"==a.charAt(0)?e.y:-e.y);return f});return d(a,f,g)},around:function(a,b,f,e,g){function h(a,b){C.push({aroundCorner:a,corner:b,pos:{x:{L:z,R:z+B,M:z+(B>>1)}[a.charAt(1)],y:{T:x,B:x+D,M:x+(D>>1)}[a.charAt(0)]}})}var r;if("string"==typeof b||"offsetWidth"in b||"ownerSVGElement"in b){if(r=n.position(b,!0),/^(above|below)/.test(f[0])){var u=n.getBorderExtents(b),v=b.firstChild?
n.getBorderExtents(b.firstChild):{t:0,l:0,b:0,r:0},A=n.getBorderExtents(a),y=a.firstChild?n.getBorderExtents(a.firstChild):{t:0,l:0,b:0,r:0};r.y+=Math.min(u.t+v.t,A.t+y.t);r.h-=Math.min(u.t+v.t,A.t+y.t)+Math.min(u.b+v.b,A.b+y.b)}}else r=b;if(b.parentNode){u="absolute"==k.getComputedStyle(b).position;for(b=b.parentNode;b&&1==b.nodeType&&"BODY"!=b.nodeName;){v=n.position(b,!0);A=k.getComputedStyle(b);/relative|absolute/.test(A.position)&&(u=!1);if(!u&&/hidden|auto|scroll/.test(A.overflow)){var y=Math.min(r.y+
r.h,v.y+v.h),w=Math.min(r.x+r.w,v.x+v.w);r.x=Math.max(r.x,v.x);r.y=Math.max(r.y,v.y);r.h=y-r.y;r.w=w-r.x}"absolute"==A.position&&(u=!0);b=b.parentNode}}var z=r.x,x=r.y,B="w"in r?r.w:r.w=r.width,D="h"in r?r.h:(q.deprecated("place.around: dijit/place.__Rectangle: { x:"+z+", y:"+x+", height:"+r.height+", width:"+B+" } has been deprecated. Please use { x:"+z+", y:"+x+", h:"+r.height+", w:"+B+" }","","2.0"),r.h=r.height),C=[];l.forEach(f,function(a){var b=e;switch(a){case "above-centered":h("TM","BM");
break;case "below-centered":h("BM","TM");break;case "after-centered":b=!b;case "before-centered":h(b?"ML":"MR",b?"MR":"ML");break;case "after":b=!b;case "before":h(b?"TL":"TR",b?"TR":"TL");h(b?"BL":"BR",b?"BR":"BL");break;case "below-alt":b=!b;case "below":h(b?"BL":"BR",b?"TL":"TR");h(b?"BR":"BL",b?"TR":"TL");break;case "above-alt":b=!b;case "above":h(b?"TL":"TR",b?"BL":"BR");h(b?"TR":"TL",b?"BR":"BL");break;default:h(a.aroundCorner,a.corner)}});a=d(a,C,g,{w:B,h:D});a.aroundNodePos=r;return a}}})},
"dijit/BackgroundIframe":function(){define("require ./main dojo/_base/config dojo/dom-construct dojo/dom-style dojo/_base/lang dojo/on dojo/sniff".split(" "),function(l,n,k,q,h,g,e,d){d.add("config-bgIframe",d("ie")&&!/IEMobile\/10\.0/.test(navigator.userAgent)||d("trident")&&/Windows NT 6.[01]/.test(navigator.userAgent));var b=new function(){var a=[];this.pop=function(){var b;a.length?(b=a.pop(),b.style.display=""):(9>d("ie")?(b="\x3ciframe src\x3d'"+(k.dojoBlankHtmlUrl||l.toUrl("dojo/resources/blank.html")||
'javascript:""')+"' role\x3d'presentation' style\x3d'position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity\x3d\"0\");'\x3e",b=document.createElement(b)):(b=q.create("iframe"),b.src='javascript:""',b.className="dijitBackgroundIframe",b.setAttribute("role","presentation"),h.set(b,"opacity",0.1)),b.tabIndex=-1);return b};this.push=function(b){b.style.display="none";a.push(b)}};n.BackgroundIframe=function(a){if(!a.id)throw Error("no id");if(d("config-bgIframe")){var c=this.iframe=
b.pop();a.appendChild(c);7>d("ie")||d("quirks")?(this.resize(a),this._conn=e(a,"resize",g.hitch(this,"resize",a))):h.set(c,{width:"100%",height:"100%"})}};g.extend(n.BackgroundIframe,{resize:function(a){this.iframe&&h.set(this.iframe,{width:a.offsetWidth+"px",height:a.offsetHeight+"px"})},destroy:function(){this._conn&&(this._conn.remove(),this._conn=null);this.iframe&&(this.iframe.parentNode.removeChild(this.iframe),b.push(this.iframe),delete this.iframe)}});return n.BackgroundIframe})},"dijit/_HasDropDown":function(){define("dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/has dojo/keys dojo/_base/lang dojo/on dojo/touch ./registry ./focus ./popup ./_FocusMixin".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r){return l("dijit._HasDropDown",r,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:!0,forceWidth:!1,maxHeight:-1,dropDownPosition:["below","above"],_stopClickEvents:!0,_onDropDownMouseDown:function(b){!this.disabled&&!this.readOnly&&("MSPointerDown"!=b.type&&"pointerdown"!=b.type&&b.preventDefault(),this._docHandler=this.own(c(this.ownerDocument,f.release,a.hitch(this,"_onDropDownMouseUp")))[0],this.toggleDropDown())},
_onDropDownMouseUp:function(a){a&&this._docHandler&&(this._docHandler.remove(),this._docHandler=null);var b=this.dropDown,c=!1;if(a&&this._opened){var f=g.position(this._buttonNode,!0);if(!(a.pageX>=f.x&&a.pageX<=f.x+f.w)||!(a.pageY>=f.y&&a.pageY<=f.y+f.h)){for(f=a.target;f&&!c;)h.contains(f,"dijitPopup")?c=!0:f=f.parentNode;if(c){f=a.target;if(b.onItemClick){for(var d;f&&!(d=m.byNode(f));)f=f.parentNode;if(d&&d.onClick&&d.getParent)d.getParent().onItemClick(d,a)}return}}}if(this._opened){if(b.focus&&
(!1!==b.autoFocus||"mouseup"==a.type&&!this.hovering))this._focusDropDownTimer=this.defer(function(){b.focus();delete this._focusDropDownTimer})}else this.focus&&this.defer("focus")},_onDropDownClick:function(a){this._stopClickEvents&&(a.stopPropagation(),a.preventDefault())},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var a={after:this.isLeftToRight()?
"Right":"Left",before:this.isLeftToRight()?"Left":"Right",above:"Up",below:"Down",left:"Left",right:"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";h.add(this._arrowWrapperNode||this._buttonNode,"dijit"+a+"ArrowButton")},postCreate:function(){this.inherited(arguments);var b=this.focusNode||this.domNode;this.own(c(this._buttonNode,f.press,a.hitch(this,"_onDropDownMouseDown")),c(this._buttonNode,"click",a.hitch(this,"_onDropDownClick")),c(b,"keydown",a.hitch(this,"_onKey")),c(b,
"keyup",a.hitch(this,"_onKeyUp")))},destroy:function(){this._opened&&this.closeDropDown(!0);this.dropDown&&(this.dropDown._destroyed||this.dropDown.destroyRecursive(),delete this.dropDown);this.inherited(arguments)},_onKey:function(a){if(!this.disabled&&!this.readOnly){var c=this.dropDown,f=a.target;if(c&&(this._opened&&c.handleKey)&&!1===c.handleKey(a))a.stopPropagation(),a.preventDefault();else if(c&&this._opened&&a.keyCode==b.ESCAPE)this.closeDropDown(),a.stopPropagation(),a.preventDefault();else if(!this._opened&&
(a.keyCode==b.DOWN_ARROW||(a.keyCode==b.ENTER||a.keyCode==b.SPACE&&(!this._searchTimer||a.ctrlKey||a.altKey||a.metaKey))&&("input"!==(f.tagName||"").toLowerCase()||f.type&&"text"!==f.type.toLowerCase())))this._toggleOnKeyUp=!0,a.stopPropagation(),a.preventDefault()}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var b=this.dropDown;b&&b.focus&&this.defer(a.hitch(b,"focus"),1)}},_onBlur:function(){this.closeDropDown(!1);this.inherited(arguments)},isLoaded:function(){return!0},
loadDropDown:function(a){a()},loadAndOpenDropDown:function(){var b=new n,c=a.hitch(this,function(){this.openDropDown();b.resolve(this.dropDown)});this.isLoaded()?c():this.loadDropDown(c);return b},toggleDropDown:function(){!this.disabled&&!this.readOnly&&(this._opened?this.closeDropDown(!0):this.loadAndOpenDropDown())},openDropDown:function(){var b=this.dropDown,c=b.domNode,f=this._aroundNode||this.domNode,d=this,e=t.open({parent:this,popup:b,around:f,orient:this.dropDownPosition,maxHeight:this.maxHeight,
onExecute:function(){d.closeDropDown(!0)},onCancel:function(){d.closeDropDown(!0)},onClose:function(){q.set(d._popupStateNode,"popupActive",!1);h.remove(d._popupStateNode,"dijitHasDropDownOpen");d._set("_opened",!1)}});if(this.forceWidth||this.autoWidth&&f.offsetWidth>b._popupWrapper.offsetWidth){var f=f.offsetWidth-b._popupWrapper.offsetWidth,m={w:b.domNode.offsetWidth+f};a.isFunction(b.resize)?b.resize(m):g.setMarginBox(c,m);"R"==e.corner[1]&&(b._popupWrapper.style.left=b._popupWrapper.style.left.replace("px",
"")-f+"px")}q.set(this._popupStateNode,"popupActive","true");h.add(this._popupStateNode,"dijitHasDropDownOpen");this._set("_opened",!0);this._popupStateNode.setAttribute("aria-expanded","true");this._popupStateNode.setAttribute("aria-owns",b.id);"presentation"!==c.getAttribute("role")&&!c.getAttribute("aria-labelledby")&&c.setAttribute("aria-labelledby",this.id);return e},closeDropDown:function(a){this._focusDropDownTimer&&(this._focusDropDownTimer.remove(),delete this._focusDropDownTimer);this._opened&&
(this._popupStateNode.setAttribute("aria-expanded","false"),a&&this.focus&&this.focus(),t.close(this.dropDown),this._opened=!1)}})})},"dijit/_editor/plugins/TextColor":function(){define("require dojo/colors dojo/_base/declare dojo/_base/lang ../_Plugin ../../form/DropDownButton".split(" "),function(l,n,k,q,h,g){var e=k("dijit._editor.plugins.TextColor",h,{buttonClass:g,colorPicker:"dijit/ColorPalette",useDefaultCommand:!1,_initButton:function(){this.command=this.name;this.inherited(arguments);var d=
this;this.button.loadDropDown=function(b){function a(a){d.button.dropDown=new a({dir:d.editor.dir,ownerDocument:d.editor.ownerDocument,value:d.value,onChange:function(a){d.editor.execCommand(d.command,a)},onExecute:function(){d.editor.execCommand(d.command,this.get("value"))}});b()}"string"==typeof d.colorPicker?l([d.colorPicker],a):a(d.colorPicker)}},updateState:function(){var d=this.editor,b=this.command;if(d&&d.isLoaded&&b.length){if(this.button){var a=this.get("disabled");this.button.set("disabled",
a);if(a)return;var c;try{c=d.queryCommandValue(b)||""}catch(f){c=""}}""==c&&(c="#000000");"transparent"==c&&(c="#ffffff");"string"==typeof c?-1<c.indexOf("rgb")&&(c=n.fromRgb(c).toHex()):(c=((c&255)<<16|c&65280|(c&16711680)>>>16).toString(16),c="#000000".slice(0,7-c.length)+c);this.value=c;(d=this.button.dropDown)&&(d.get&&c!==d.get("value"))&&d.set("value",c,!1)}}});h.registry.foreColor=function(d){return new e(d)};h.registry.hiliteColor=function(d){return new e(d)};return e})},"dojo/colors":function(){define(["./_base/kernel",
"./_base/lang","./_base/Color","./_base/array"],function(l,n,k,q){var h={};n.setObject("dojo.colors",h);var g=function(d,b,a){0>a&&++a;1<a&&--a;var c=6*a;return 1>c?d+(b-d)*c:1>2*a?b:2>3*a?d+6*(b-d)*(2/3-a):d};l.colorFromRgb=k.fromRgb=function(d,b){var a=d.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(a){var c=a[2].split(/\s*,\s*/),f=c.length,a=a[1];if("rgb"==a&&3==f||"rgba"==a&&4==f)return a=c[0],"%"==a.charAt(a.length-1)?(a=q.map(c,function(a){return 2.56*parseFloat(a)}),4==f&&(a[3]=
c[3]),k.fromArray(a,b)):k.fromArray(c,b);if("hsl"==a&&3==f||"hsla"==a&&4==f){var a=(parseFloat(c[0])%360+360)%360/360,e=parseFloat(c[1])/100,h=parseFloat(c[2])/100,e=0.5>=h?h*(e+1):h+e-h*e,h=2*h-e,a=[256*g(h,e,a+1/3),256*g(h,e,a),256*g(h,e,a-1/3),1];4==f&&(a[3]=c[3]);return k.fromArray(a,b)}}return null};var e=function(d,b,a){d=Number(d);return isNaN(d)?a:d<b?b:d>a?a:d};k.prototype.sanitize=function(){this.r=Math.round(e(this.r,0,255));this.g=Math.round(e(this.g,0,255));this.b=Math.round(e(this.b,
0,255));this.a=e(this.a,0,1);return this};h.makeGrey=k.makeGrey=function(d,b){return k.fromArray([d,d,d,b])};n.mixin(k.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,
20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,
191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,
205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,
0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,
238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],
tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});return k})},"esri/dijit/_EventedWidget":function(){define("dojo/_base/declare dojo/_base/lang dojo/aspect dojo/on ../Evented dijit/_WidgetBase".split(" "),function(l,n,k,q,h,g){return l([g,h],{_onMap:function(e){var d=this.constructor._onMap,b;if(!d||!d.FINAL)delete this.constructor._onMap,d=this.registerConnectEvents(),d.FINAL=
!0;e=e.toLowerCase();d[e]?b=this[d[e].method]:(e=this._onCamelCase(e),this[e]&&(b=e));return b},on:function(e,d){var b=this._onMap(e),a=e.replace(/\-/g,""),c="on"+a in this.domNode;return b||!c?this.inherited(arguments):this.own(q(this.domNode,a,d))[0]},emit:function(e,d,b){var a,c,f,g=e.toLowerCase(),h=this.constructor._onMap||this.registerConnectEvents();c=this[this._onMap(g)];d=d||{};d.target||(d.target=this);c&&(h&&h[g])&&(this._onObj2Arr(function(){a=Array.prototype.slice.call(arguments)},h[g].argKeys)(d),
f=n.mixin({},arguments),f[2]=a,f[0]=h[g].name.replace(/^on/,""));return this.inherited(f||arguments)}})})},"esri/dijit/editing/AttachmentEditor":function(){define("require dojo/_base/declare dojo/_base/lang dojo/_base/connect dojo/_base/array dojo/_base/kernel dojo/has dojo/query dojo/io-query dojo/dom-attr dijit/_Widget dijit/_Templated ../../kernel ../../lang ../../domUtils dojo/text!./templates/AttachmentEditor.html dojo/i18n!../../nls/jsapi dojo/NodeList-dom".split(" "),function(l,n,k,q,h,g,e,
d,b,a,c,f,m,s,t,r,u){l=n([c,f],{declaredClass:"esri.dijit.editing.AttachmentEditor",widgetsInTemplate:!0,templateString:r,basePath:l.toUrl(".")+"/",_listHtml:"\x3cspan id\x3d'node_${oid}_${attid}'\x3e\x3ca href\x3d'${href}' target\x3d'_blank'\x3e${name}\x3c/a\x3e",_deleteBtnHtml:"(\x3cspan style\x3d'cursor:pointer;color:red;font-weight:bold;' class\x3d'deleteAttachment' id\x3d'${attid}');'\x3eX\x3c/span\x3e)",_endHtml:"\x3cbr/\x3e\x3c/span\x3e",_aeConnects:[],_layerEditingCapChecked:{},_layerEditingCap:{},
constructor:function(a,b){k.mixin(this,u.widgets.attachmentEditor)},startup:function(){this.inherited(arguments);this._uploadField_connect=q.connect(this._uploadField,"onchange",this,"_addAttachment");this._uploadFieldFocus_connect=q.connect(this._uploadField,"onfocus",k.hitch(this,function(a){t.hide(this._attachmentError)}))},destroy:function(){h.forEach(this._aeConnects,q.disconnect);q.disconnect(this._uploadField_connect);q.disconnect(this._uploadFieldFocus_connect);this.inherited(arguments)},
showAttachments:function(a,b){this._attachmentList.innerHTML=this.NLS_none;this._uploadField.value="";h.forEach(this.domNode.children,function(a,b){t.show(a)});t.hide(this._attachmentError);if(a&&(this._featureLayer=a.getLayer()||b))"esri.layers.FeatureLayer"!==this._featureLayer.declaredClass||!this._featureLayer.getEditCapabilities?(t.hide(this._uploadForm),h.forEach(this.domNode.children,function(a,b){t.hide(a)})):(this._currentLayerId=this._featureLayer.id,this._layerEditingCapChecked[this._currentLayerId]||
(this._layerEditingCap[this._currentLayerId]=this._featureLayer.getEditCapabilities(),this._layerEditingCapChecked[this._currentLayerId]=!0),this._featureCanUpdate=this._featureLayer.getEditCapabilities({feature:a}).canUpdate,this._oid=a.attributes[this._featureLayer.objectIdField],this._getAttachments(a))},_getAttachments:function(a){this._featureLayer&&this._featureLayer.queryAttachmentInfos&&this._featureLayer.queryAttachmentInfos(this._oid,k.hitch(this,"_onQueryAttachmentInfosComplete"))},_addAttachment:function(){t.hide(this._attachmentError);
this._featureLayer&&this._featureLayer.addAttachment&&this._featureLayer.addAttachment(this._oid,this._uploadForm,k.hitch(this,"_onAddAttachmentComplete"),k.hitch(this,"_onAddAttachmentError"))},_deleteAttachment:function(a,b){this._featureLayer.deleteAttachments(a,[b],k.hitch(this,"_onDeleteAttachmentComplete"))},_onQueryAttachmentInfosComplete:function(a){var b=this._listHtml+this._deleteBtnHtml+this._endHtml;this._uploadForm.style.display="block";!this._featureCanUpdate&&this._layerEditingCap[this._currentLayerId].canUpdate||
!this._layerEditingCap[this._currentLayerId].canCreate&&!this._layerEditingCap[this._currentLayerId].canUpdate?(b=this._listHtml+this._endHtml,this._uploadForm.style.display="none"):this._layerEditingCap[this._currentLayerId].canCreate&&!this._layerEditingCap[this._currentLayerId].canUpdate&&(b=this._listHtml+this._endHtml);var c=this._attachmentList;a=h.map(a,k.hitch(this,function(a){return s.substitute({href:a.url,name:a.name,oid:a.objectId,attid:a.id},b)}));c.innerHTML=a.join("")||this.NLS_none;
this._updateConnects()},_onAddAttachmentComplete:function(a){var c=this._uploadField,f=c.value,d=f.lastIndexOf("\\");-1<d&&(f=f.substring(d+1,f.length));var f=f.replace(/\ /g,"_"),d=this._attachmentList,e=b.objectToQuery({gdbVersion:this._featureLayer.gdbVersion,token:this._featureLayer._getToken()}),g=this._listHtml+this._deleteBtnHtml+this._endHtml;this._layerEditingCap[this._currentLayerId].canCreate&&!this._layerEditingCap[this._currentLayerId].canUpdate&&(g=this._listHtml+this._endHtml);a=s.substitute({href:this._featureLayer._url.path+
"/"+a.objectId+"/attachments/"+a.attachmentId+(e?"?"+e:""),name:f,oid:a.objectId,attid:a.attachmentId},g);d.innerHTML=d.innerHTML==this.NLS_none?a:d.innerHTML+a;this._updateConnects();c.value=""},_onAddAttachmentError:function(b){if(b&&s.isDefined(b.code)){var c=this._attachmentError;a.set(c,"innerHTML",(400===b.code?this.NLS_fileNotSupported:b.message||b.details&&b.details.length&&b.details[0])||this.NLS_error);t.show(c)}},_onDeleteAttachmentComplete:function(a){var b=h.every(a,function(a){return a.success}),
c=this._attachmentList;if(b&&(g.query("#node_"+a[0].objectId+"_"+a[0].attachmentId).orphan(),!c.children||!c.children.length))c.innerHTML=this.NLS_none},_updateConnects:function(){h.forEach(this._aeConnects,q.disconnect);g.query(".deleteAttachment").forEach(function(a){this._aeConnects.push(q.connect(a,"onclick",k.hitch(this,"_deleteAttachment",this._oid,a.id)))},this)}});e("extend-esri")&&k.setObject("dijit.editing.AttachmentEditor",l,m);return l})},"esri/dijit/editing/Util":function(){define(["dojo/_base/lang",
"dojo/_base/array","dojo/has","../../kernel"],function(l,n,k,q){var h={},h={findFeatures:function(g,e,d){var b=e.objectIdField;e=n.filter(e.graphics,function(a){return n.some(g,function(c){return a.attributes[b]===c.objectId})});if(d)d(e);else return e},getSelection:function(g){var e=[];n.forEach(g,function(d){d=d.getSelectedFeatures();n.forEach(d,function(b){e.push(b)})});return e}};k("extend-esri")&&l.setObject("dijit.editing.Util.LayerHelper",h,q);return h})},"dijit/form/DateTextBox":function(){define(["dojo/_base/declare",
"../Calendar","./_DateTimeTextBox"],function(l,n,k){return l("dijit.form.DateTextBox",k,{baseClass:"dijitTextBox dijitComboBox dijitDateTextBox",popupClass:n,_selector:"date",maxHeight:Infinity,value:new Date("")})})},"dijit/Calendar":function(){define("dojo/_base/array dojo/date dojo/date/locale dojo/_base/declare dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/sniff ./CalendarLite ./_Widget ./_CssStateMixin ./_TemplatedMixin ./form/DropDownButton".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u){var v=q("dijit.Calendar",[m,s,t],{baseClass:"dijitCalendar",cssStateNodes:{decrementMonth:"dijitCalendarArrow",incrementMonth:"dijitCalendarArrow",previousYearLabelNode:"dijitCalendarPreviousYear",nextYearLabelNode:"dijitCalendarNextYear"},setValue:function(a){d.deprecated("dijit.Calendar:setValue() is deprecated. Use set('value', ...) instead.","","2.0");this.set("value",a)},_createMonthWidget:function(){return new v._MonthDropDownButton({id:this.id+"_mddb",
tabIndex:-1,onMonthSelect:a.hitch(this,"_onMonthSelect"),lang:this.lang,dateLocaleModule:this.dateLocaleModule},this.monthNode)},postCreate:function(){this.inherited(arguments);this.own(c(this.domNode,"keydown",a.hitch(this,"_onKeyDown")),c(this.dateRowsNode,"mouseover",a.hitch(this,"_onDayMouseOver")),c(this.dateRowsNode,"mouseout",a.hitch(this,"_onDayMouseOut")),c(this.dateRowsNode,"mousedown",a.hitch(this,"_onDayMouseDown")),c(this.dateRowsNode,"mouseup",a.hitch(this,"_onDayMouseUp")))},_onMonthSelect:function(a){var b=
new this.dateClassObj(this.currentFocus);b.setDate(1);b.setMonth(a);a=this.dateModule.getDaysInMonth(b);var c=this.currentFocus.getDate();b.setDate(Math.min(c,a));this._setCurrentFocusAttr(b)},_onDayMouseOver:function(a){if((a=g.contains(a.target,"dijitCalendarDateLabel")?a.target.parentNode:a.target)&&(a.dijitDateValue&&!g.contains(a,"dijitCalendarDisabledDate")||a==this.previousYearLabelNode||a==this.nextYearLabelNode))g.add(a,"dijitCalendarHoveredDate"),this._currentNode=a},_onDayMouseOut:function(a){this._currentNode&&
!(a.relatedTarget&&a.relatedTarget.parentNode==this._currentNode)&&(a="dijitCalendarHoveredDate",g.contains(this._currentNode,"dijitCalendarActiveDate")&&(a+=" dijitCalendarActiveDate"),g.remove(this._currentNode,a),this._currentNode=null)},_onDayMouseDown:function(a){if((a=a.target.parentNode)&&a.dijitDateValue&&!g.contains(a,"dijitCalendarDisabledDate"))g.add(a,"dijitCalendarActiveDate"),this._currentNode=a},_onDayMouseUp:function(a){(a=a.target.parentNode)&&a.dijitDateValue&&g.remove(a,"dijitCalendarActiveDate")},
handleKey:function(a){var c=-1,f,d=this.currentFocus;switch(a.keyCode){case b.RIGHT_ARROW:c=1;case b.LEFT_ARROW:f="day";this.isLeftToRight()||(c*=-1);break;case b.DOWN_ARROW:c=1;case b.UP_ARROW:f="week";break;case b.PAGE_DOWN:c=1;case b.PAGE_UP:f=a.ctrlKey||a.altKey?"year":"month";break;case b.END:d=this.dateModule.add(d,"month",1),f="day";case b.HOME:d=new this.dateClassObj(d);d.setDate(1);break;default:return!0}f&&(d=this.dateModule.add(d,f,c));this._setCurrentFocusAttr(d);return!1},_onKeyDown:function(a){this.handleKey(a)||
(a.stopPropagation(),a.preventDefault())},onValueSelected:function(){},onChange:function(a){this.onValueSelected(a)},getClassForDate:function(){}});v._MonthDropDownButton=q("dijit.Calendar._MonthDropDownButton",u,{onMonthSelect:function(){},postCreate:function(){this.inherited(arguments);this.dropDown=new v._MonthDropDown({id:this.id+"_mdd",onChange:this.onMonthSelect})},_setMonthAttr:function(a){var b=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,a);this.dropDown.set("months",
b);this.containerNode.innerHTML=(6==f("ie")?"":"\x3cdiv class\x3d'dijitSpacer'\x3e"+this.dropDown.domNode.innerHTML+"\x3c/div\x3e")+"\x3cdiv class\x3d'dijitCalendarMonthLabel dijitCalendarCurrentMonthLabel'\x3e"+b[a.getMonth()]+"\x3c/div\x3e"}});v._MonthDropDown=q("dijit.Calendar._MonthDropDown",[s,r,t],{months:[],baseClass:"dijitCalendarMonthMenu dijitMenu",templateString:"\x3cdiv data-dojo-attach-event\x3d'onclick:_onClick'\x3e\x3c/div\x3e",_setMonthsAttr:function(a){this.domNode.innerHTML="";l.forEach(a,
function(a,b){e.create("div",{className:"dijitCalendarMonthLabel",month:b,innerHTML:a},this.domNode)._cssState="dijitCalendarMonthLabel"},this)},_onClick:function(a){this.onChange(h.get(a.target,"month"))},onChange:function(){}});return v})},"dijit/CalendarLite":function(){define("dojo/_base/array dojo/_base/declare dojo/cldr/supplemental dojo/date dojo/date/locale dojo/date/stamp dojo/dom dojo/dom-class dojo/_base/lang dojo/on dojo/sniff dojo/string ./_WidgetBase ./_TemplatedMixin dojo/text!./templates/Calendar.html ./a11yclick ./hccss".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t){var r=n("dijit.CalendarLite",[m,s],{templateString:t,dowTemplateString:'\x3cth class\x3d"dijitReset dijitCalendarDayLabelTemplate" role\x3d"columnheader" scope\x3d"col"\x3e\x3cspan class\x3d"dijitCalendarDayLabel"\x3e${d}\x3c/span\x3e\x3c/th\x3e',dateTemplateString:'\x3ctd class\x3d"dijitReset" role\x3d"gridcell" data-dojo-attach-point\x3d"dateCells"\x3e\x3cspan class\x3d"dijitCalendarDateLabel" data-dojo-attach-point\x3d"dateLabels"\x3e\x3c/span\x3e\x3c/td\x3e',
weekTemplateString:'\x3ctr class\x3d"dijitReset dijitCalendarWeekTemplate" role\x3d"row"\x3e${d}${d}${d}${d}${d}${d}${d}\x3c/tr\x3e',value:new Date(""),datePackage:"",dayWidth:"narrow",tabIndex:"0",currentFocus:new Date,_setSummaryAttr:"gridNode",baseClass:"dijitCalendar dijitCalendarLite",_isValidDate:function(a){return a&&!isNaN(a)&&"object"==typeof a&&a.toString()!=this.constructor.prototype.value.toString()},_getValueAttr:function(){var a=this._get("value");if(a&&!isNaN(a)){var b=new this.dateClassObj(a);
b.setHours(0,0,0,0);b.getDate()<a.getDate()&&(b=this.dateModule.add(b,"hour",1));return b}return null},_setValueAttr:function(a,b){"string"==typeof a&&(a=g.fromISOString(a));a=this._patchDate(a);if(this._isValidDate(a)&&!this.isDisabledDate(a,this.lang)){if(this._set("value",a),this.set("currentFocus",a),this._markSelectedDates([a]),this._created&&(b||"undefined"==typeof b))this.onChange(this.get("value"))}else this._set("value",null),this._markSelectedDates([])},_patchDate:function(a){a&&(a=new this.dateClassObj(a),
a.setHours(1,0,0,0));return a},_setText:function(a,b){for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(a.ownerDocument.createTextNode(b))},_populateGrid:function(){var a=new this.dateClassObj(this.currentFocus);a.setDate(1);var a=this._patchDate(a),b=a.getDay(),c=this.dateModule.getDaysInMonth(a),f=this.dateModule.getDaysInMonth(this.dateModule.add(a,"month",-1)),d=new this.dateClassObj,e=k.getFirstDayOfWeek(this.lang);e>b&&(e-=7);if(!this.summary){var g=this.dateLocaleModule.getNames("months",
"wide","standAlone",this.lang,a);this.gridNode.setAttribute("summary",g[a.getMonth()])}this._date2cell={};l.forEach(this.dateCells,function(g,m){var h=m+e,k=new this.dateClassObj(a),l="dijitCalendar",n=0;h<b?(h=f-b+h+1,n=-1,l+="Previous"):h>=b+c?(h=h-b-c+1,n=1,l+="Next"):(h=h-b+1,l+="Current");n&&(k=this.dateModule.add(k,"month",n));k.setDate(h);this.dateModule.compare(k,d,"date")||(l="dijitCalendarCurrentDate "+l);this.isDisabledDate(k,this.lang)?(l="dijitCalendarDisabledDate "+l,g.setAttribute("aria-disabled",
"true")):(l="dijitCalendarEnabledDate "+l,g.removeAttribute("aria-disabled"),g.setAttribute("aria-selected","false"));(n=this.getClassForDate(k,this.lang))&&(l=n+" "+l);g.className=l+"Month dijitCalendarDateTemplate";l=k.valueOf();this._date2cell[l]=g;g.dijitDateValue=l;this._setText(this.dateLabels[m],k.getDateLocalized?k.getDateLocalized(this.lang):k.getDate())},this)},_populateControls:function(){var a=new this.dateClassObj(this.currentFocus);a.setDate(1);this.monthWidget.set("month",a);var b=
a.getFullYear()-1,c=new this.dateClassObj;l.forEach(["previous","current","next"],function(a){c.setFullYear(b++);this._setText(this[a+"YearLabelNode"],this.dateLocaleModule.format(c,{selector:"year",locale:this.lang}))},this)},goToToday:function(){this.set("value",new this.dateClassObj)},constructor:function(a){this.dateModule=a.datePackage?b.getObject(a.datePackage,!1):q;this.dateClassObj=this.dateModule.Date||Date;this.dateLocaleModule=a.datePackage?b.getObject(a.datePackage+".locale",!1):h},_createMonthWidget:function(){return r._MonthWidget({id:this.id+
"_mddb",lang:this.lang,dateLocaleModule:this.dateLocaleModule},this.monthNode)},buildRendering:function(){var a=this.dowTemplateString,b=this.dateLocaleModule.getNames("days",this.dayWidth,"standAlone",this.lang),c=k.getFirstDayOfWeek(this.lang);this.dayCellsHtml=f.substitute([a,a,a,a,a,a,a].join(""),{d:""},function(){return b[c++%7]});a=f.substitute(this.weekTemplateString,{d:this.dateTemplateString});this.dateRowsHtml=[a,a,a,a,a,a].join("");this.dateCells=[];this.dateLabels=[];this.inherited(arguments);
e.setSelectable(this.domNode,!1);a=new this.dateClassObj(this.currentFocus);this.monthWidget=this._createMonthWidget();this.set("currentFocus",a,!1)},postCreate:function(){this.inherited(arguments);this._connectControls()},_connectControls:function(){var c=b.hitch(this,function(c,f,d){return a(this[c],"click",b.hitch(this,function(){this._setCurrentFocusAttr(this.dateModule.add(this.currentFocus,f,d))}))});this.own(c("incrementMonth","month",1),c("decrementMonth","month",-1),c("nextYearLabelNode",
"year",1),c("previousYearLabelNode","year",-1))},_setCurrentFocusAttr:function(a,b){var f=this.currentFocus,d=this._getNodeByDate(f);a=this._patchDate(a);this._set("currentFocus",a);if(!this._date2cell||0!=this.dateModule.difference(f,a,"month"))this._populateGrid(),this._populateControls(),this._markSelectedDates([this.value]);f=this._getNodeByDate(a);f.setAttribute("tabIndex",this.tabIndex);(this.focused||b)&&f.focus();d&&d!=f&&(c("webkit")?d.setAttribute("tabIndex","-1"):d.removeAttribute("tabIndex"))},
focus:function(){this._setCurrentFocusAttr(this.currentFocus,!0)},_onDayClick:function(a){a.stopPropagation();a.preventDefault();for(a=a.target;a&&!a.dijitDateValue;a=a.parentNode);a&&!d.contains(a,"dijitCalendarDisabledDate")&&this.set("value",a.dijitDateValue)},_getNodeByDate:function(a){return(a=this._patchDate(a))&&this._date2cell?this._date2cell[a.valueOf()]:null},_markSelectedDates:function(a){function c(a,b){d.toggle(b,"dijitCalendarSelectedDate",a);b.setAttribute("aria-selected",a?"true":
"false")}l.forEach(this._selectedCells||[],b.partial(c,!1));this._selectedCells=l.filter(l.map(a,this._getNodeByDate,this),function(a){return a});l.forEach(this._selectedCells,b.partial(c,!0))},onChange:function(){},isDisabledDate:function(){},getClassForDate:function(){}});r._MonthWidget=n("dijit.CalendarLite._MonthWidget",m,{_setMonthAttr:function(a){var b=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,a),f=6==c("ie")?"":"\x3cdiv class\x3d'dijitSpacer'\x3e"+l.map(b,function(a){return"\x3cdiv\x3e"+
a+"\x3c/div\x3e"}).join("")+"\x3c/div\x3e";this.domNode.innerHTML=f+"\x3cdiv class\x3d'dijitCalendarMonthLabel dijitCalendarCurrentMonthLabel'\x3e"+b[a.getMonth()]+"\x3c/div\x3e"}});return r})},"dijit/form/_DateTimeTextBox":function(){define("dojo/date dojo/date/locale dojo/date/stamp dojo/_base/declare dojo/_base/lang ./RangeBoundTextBox ../_HasDropDown dojo/text!./templates/DropDownBox.html".split(" "),function(l,n,k,q,h,g,e,d){new Date("X");return q("dijit.form._DateTimeTextBox",[g,e],{templateString:d,
hasDownArrow:!0,cssStateNodes:{_buttonNode:"dijitDownArrowButton"},_unboundedConstraints:{},pattern:n.regexp,datePackage:"",postMixInProperties:function(){this.inherited(arguments);this._set("type","text")},compare:function(b,a){var c=this._isInvalidDate(b),f=this._isInvalidDate(a);if(c||f)return c&&f?0:!c?1:-1;var c=this.format(b,this._unboundedConstraints),f=this.format(a,this._unboundedConstraints),d=this.parse(c,this._unboundedConstraints),e=this.parse(f,this._unboundedConstraints);return c==
f?0:l.compare(d,e,this._selector)},autoWidth:!0,format:function(b,a){return!b?"":this.dateLocaleModule.format(b,a)},parse:function(b,a){return this.dateLocaleModule.parse(b,a)||(this._isEmpty(b)?null:void 0)},serialize:function(b,a){b.toGregorian&&(b=b.toGregorian());return k.toISOString(b,a)},dropDownDefaultValue:new Date,value:new Date(""),_blankValue:null,popupClass:"",_selector:"",constructor:function(b){this.dateModule=b.datePackage?h.getObject(b.datePackage,!1):l;this.dateClassObj=this.dateModule.Date||
Date;this.dateLocaleModule=b.datePackage?h.getObject(b.datePackage+".locale",!1):n;this._set("pattern",this.dateLocaleModule.regexp);this._invalidDate=this.constructor.prototype.value.toString()},buildRendering:function(){this.inherited(arguments);this.hasDownArrow||(this._buttonNode.style.display="none");this.hasDownArrow||(this._buttonNode=this.domNode,this.baseClass+=" dijitComboBoxOpenOnClick")},_setConstraintsAttr:function(b){b.selector=this._selector;b.fullYear=!0;var a=k.fromISOString;"string"==
typeof b.min&&(b.min=a(b.min));"string"==typeof b.max&&(b.max=a(b.max));this.inherited(arguments);this._unboundedConstraints=h.mixin({},this.constraints,{min:null,max:null})},_isInvalidDate:function(b){return!b||isNaN(b)||"object"!=typeof b||b.toString()==this._invalidDate},_setValueAttr:function(b,a,c){void 0!==b&&("string"==typeof b&&(b=k.fromISOString(b)),this._isInvalidDate(b)&&(b=null),b instanceof Date&&!(this.dateClassObj instanceof Date)&&(b=new this.dateClassObj(b)));this.inherited(arguments);
this.value instanceof Date&&(this.filterString="");this.dropDown&&this.dropDown.set("value",b,!1)},_set:function(b,a){var c=this._get("value");"value"==b&&c instanceof Date&&0==this.compare(a,c)||this.inherited(arguments)},_setDropDownDefaultValueAttr:function(b){this._isInvalidDate(b)&&(b=new this.dateClassObj);this._set("dropDownDefaultValue",b)},openDropDown:function(b){this.dropDown&&this.dropDown.destroy();var a=h.isString(this.popupClass)?h.getObject(this.popupClass,!1):this.popupClass,c=this,
f=this.get("value");this.dropDown=new a({onChange:function(a){c.set("value",a,!0)},id:this.id+"_popup",dir:c.dir,lang:c.lang,value:f,textDir:c.textDir,currentFocus:!this._isInvalidDate(f)?f:this.dropDownDefaultValue,constraints:c.constraints,filterString:c.filterString,datePackage:c.params.datePackage,isDisabledDate:function(a){return!c.rangeCheck(a,c.constraints)}});this.inherited(arguments)},_getDisplayedValueAttr:function(){return this.textbox.value},_setDisplayedValueAttr:function(b,a){this._setValueAttr(this.parse(b,
this.constraints),a,b)}})})},"dijit/form/RangeBoundTextBox":function(){define(["dojo/_base/declare","dojo/i18n","./MappedTextBox","dojo/i18n!./nls/validate"],function(l,n,k){return l("dijit.form.RangeBoundTextBox",k,{rangeMessage:"",rangeCheck:function(k,h){return("min"in h?0<=this.compare(k,h.min):!0)&&("max"in h?0>=this.compare(k,h.max):!0)},isInRange:function(){return this.rangeCheck(this.get("value"),this.constraints)},_isDefinitelyOutOfRange:function(){var k=this.get("value");if(null==k)return!1;
var h=!1;"min"in this.constraints&&(h=this.constraints.min,h=0>this.compare(k,"number"==typeof h&&0<=h&&0!=k?0:h));!h&&"max"in this.constraints&&(h=this.constraints.max,h=0<this.compare(k,"number"!=typeof h||0<h?h:0));return h},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange()},isValid:function(k){return this.inherited(arguments)&&(this._isEmpty(this.textbox.value)&&!this.required||this.isInRange(k))},getErrorMessage:function(k){var h=this.get("value");return null!=
h&&""!==h&&("number"!=typeof h||!isNaN(h))&&!this.isInRange(k)?this.rangeMessage:this.inherited(arguments)},postMixInProperties:function(){this.inherited(arguments);this.rangeMessage||(this.messages=n.getLocalization("dijit.form","validate",this.lang),this.rangeMessage=this.messages.rangeMessage)}})})},"dijit/form/MappedTextBox":function(){define(["dojo/_base/declare","dojo/sniff","dojo/dom-construct","./ValidationTextBox"],function(l,n,k,q){return l("dijit.form.MappedTextBox",q,{postMixInProperties:function(){this.inherited(arguments);
this.nameAttrSetting=""},_setNameAttr:"valueNode",serialize:function(h){return h.toString?h.toString():""},toString:function(){var h=this.filter(this.get("value"));return null!=h?"string"==typeof h?h:this.serialize(h,this.constraints):""},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);this.valueNode=k.place("\x3cinput type\x3d'hidden'"+(this.name&&!n("msapp")?' name\x3d"'+this.name.replace(/"/g,"\x26quot;")+
'"':"")+"/\x3e",this.textbox,"after")},reset:function(){this.valueNode.value="";this.inherited(arguments)}})})},"dijit/form/ValidationTextBox":function(){define("dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/i18n ./TextBox ../Tooltip dojo/text!./templates/ValidationTextBox.html dojo/i18n!./nls/validate".split(" "),function(l,n,k,q,h,g,e){var d;return d=l("dijit.form.ValidationTextBox",h,{templateString:e,required:!1,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",
message:"",constraints:{},pattern:".*",regExp:"",regExpGen:function(){},state:"",tooltipPosition:[],_deprecateRegExp:function(b,a){a!=d.prototype[b]&&(n.deprecated("ValidationTextBox id\x3d"+this.id+", set('"+b+"', ...) is deprecated. Use set('pattern', ...) instead.","","2.0"),this.set("pattern",a))},_setRegExpGenAttr:function(b){this._deprecateRegExp("regExpGen",b);this._set("regExpGen",this._computeRegexp)},_setRegExpAttr:function(b){this._deprecateRegExp("regExp",b)},_setValueAttr:function(){this.inherited(arguments);
this._refreshState()},validator:function(b,a){return RegExp("^(?:"+this._computeRegexp(a)+")"+(this.required?"":"?")+"$").test(b)&&(!this.required||!this._isEmpty(b))&&(this._isEmpty(b)||void 0!==this.parse(b,a))},_isValidSubset:function(){return 0==this.textbox.value.search(this._partialre)},isValid:function(){return this.validator(this.textbox.value,this.get("constraints"))},_isEmpty:function(b){return(this.trim?/^\s*$/:/^$/).test(b)},getErrorMessage:function(){var b="$_unset_$"==this.invalidMessage?
this.messages.invalidMessage:!this.invalidMessage?this.promptMessage:this.invalidMessage,a="$_unset_$"==this.missingMessage?this.messages.missingMessage:!this.missingMessage?b:this.missingMessage;return this.required&&this._isEmpty(this.textbox.value)?a:b},getPromptMessage:function(){return this.promptMessage},_maskValidSubsetError:!0,validate:function(b){var a="",c=this.disabled||this.isValid(b);c&&(this._maskValidSubsetError=!0);var f=this._isEmpty(this.textbox.value),d=!c&&b&&this._isValidSubset();
this._set("state",c?"":((!this._hasBeenBlurred||b)&&f||d)&&(this._maskValidSubsetError||d&&!this._hasBeenBlurred&&b)?"Incomplete":"Error");this.focusNode.setAttribute("aria-invalid","Error"==this.state?"true":"false");"Error"==this.state?(this._maskValidSubsetError=b&&d,a=this.getErrorMessage(b)):"Incomplete"==this.state?(a=this.getPromptMessage(b),this._maskValidSubsetError=!this._hasBeenBlurred||b):f&&(a=this.getPromptMessage(b));this.set("message",a);return c},displayMessage:function(b){b&&this.focused?
g.show(b,this.domNode,this.tooltipPosition,!this.isLeftToRight()):g.hide(this.domNode)},_refreshState:function(){this._created&&this.validate(this.focused);this.inherited(arguments)},constructor:function(b){this.constraints=k.clone(this.constraints);this.baseClass+=" dijitValidationTextBox"},startup:function(){this.inherited(arguments);this._refreshState()},_setConstraintsAttr:function(b){!b.locale&&this.lang&&(b.locale=this.lang);this._set("constraints",b);this._refreshState()},_setPatternAttr:function(b){this._set("pattern",
b);this._refreshState()},_computeRegexp:function(b){var a=this.pattern;"function"==typeof a&&(a=a.call(this,b));if(a!=this._lastRegExp){var c="";this._lastRegExp=a;".*"!=a&&a.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(a){switch(a.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":c+=a;break;case ")":c+="|$)";break;default:c+="(?:"+a+"|$)"}});try{"".search(c)}catch(f){c=this.pattern,console.warn("RegExp error in "+this.declaredClass+": "+this.pattern)}this._partialre=
"^(?:"+c+")$"}return a},postMixInProperties:function(){this.inherited(arguments);this.messages=q.getLocalization("dijit.form","validate",this.lang);this._setConstraintsAttr(this.constraints)},_setDisabledAttr:function(b){this.inherited(arguments);this._refreshState()},_setRequiredAttr:function(b){this._set("required",b);this.focusNode.setAttribute("aria-required",b);this._refreshState()},_setMessageAttr:function(b){this._set("message",b);this.displayMessage(b)},reset:function(){this._maskValidSubsetError=
!0;this.inherited(arguments)},_onBlur:function(){this.displayMessage("");this.inherited(arguments)},destroy:function(){g.hide(this.domNode);this.inherited(arguments)}})})},"dijit/form/TextBox":function(){define("dojo/_base/declare dojo/dom-construct dojo/dom-style dojo/_base/kernel dojo/_base/lang dojo/on dojo/sniff ./_FormValueWidget ./_TextBoxMixin dojo/text!./templates/TextBox.html ../main".split(" "),function(l,n,k,q,h,g,e,d,b,a,c){d=l("dijit.form.TextBox"+(e("dojo-bidi")?"_NoBidi":""),[d,b],
{templateString:a,_singleNodeTemplate:'\x3cinput class\x3d"dijit dijitReset dijitLeft dijitInputField" data-dojo-attach-point\x3d"textbox,focusNode" autocomplete\x3d"off" type\x3d"${type}" ${!nameAttrSetting} /\x3e',_buttonInputDisabled:e("ie")?"disabled":"",baseClass:"dijitTextBox",postMixInProperties:function(){var a=this.type.toLowerCase();if(this.templateString&&"input"==this.templateString.toLowerCase()||("hidden"==a||"file"==a)&&this.templateString==this.constructor.prototype.templateString)this.templateString=
this._singleNodeTemplate;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);9>e("ie")&&this.defer(function(){try{var a=k.getComputedStyle(this.domNode);if(a){var b=a.fontFamily;if(b){var c=this.domNode.getElementsByTagName("INPUT");if(c)for(a=0;a<c.length;a++)c[a].style.fontFamily=b}}}catch(d){}})},_setPlaceHolderAttr:function(a){this._set("placeHolder",a);this._phspan||(this._attachPoints.push("_phspan"),this._phspan=n.create("span",{className:"dijitPlaceHolder dijitInputField"},
this.textbox,"after"),this.own(g(this._phspan,"mousedown",function(a){a.preventDefault()}),g(this._phspan,"touchend, pointerup, MSPointerUp",h.hitch(this,function(){this.focus()}))));this._phspan.innerHTML="";this._phspan.appendChild(this._phspan.ownerDocument.createTextNode(a));this._updatePlaceHolder()},_onInput:function(a){this.inherited(arguments);this._updatePlaceHolder()},_updatePlaceHolder:function(){this._phspan&&(this._phspan.style.display=this.placeHolder&&!this.textbox.value?"":"none")},
_setValueAttr:function(a,b,c){this.inherited(arguments);this._updatePlaceHolder()},getDisplayedValue:function(){q.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use get('displayedValue') instead.","","2.0");return this.get("displayedValue")},setDisplayedValue:function(a){q.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",a)},_onBlur:function(a){this.disabled||(this.inherited(arguments),
this._updatePlaceHolder(),e("mozilla")&&this.selectOnClick&&(this.textbox.selectionStart=this.textbox.selectionEnd=void 0))},_onFocus:function(a){!this.disabled&&!this.readOnly&&(this.inherited(arguments),this._updatePlaceHolder())}});9>e("ie")&&(d.prototype._isTextSelected=function(){var a=this.ownerDocument.selection.createRange();return a.parentElement()==this.textbox&&0<a.text.length},c._setSelectionRange=b._setSelectionRange=function(a,b,c){a.createTextRange&&(a=a.createTextRange(),a.collapse(!0),
a.moveStart("character",-99999),a.moveStart("character",b),a.moveEnd("character",c-b),a.select())});e("dojo-bidi")&&(d=l("dijit.form.TextBox",d,{_setPlaceHolderAttr:function(a){this.inherited(arguments);this.applyTextDir(this._phspan)}}));return d})},"dijit/form/_FormValueWidget":function(){define(["dojo/_base/declare","dojo/sniff","./_FormWidget","./_FormValueMixin"],function(l,n,k,q){return l("dijit.form._FormValueWidget",[k,q],{_layoutHackIE7:function(){if(7==n("ie"))for(var h=this.domNode,g=h.parentNode,
e=h.firstChild||h,d=e.style.filter,b=this;g&&0==g.clientHeight;)(function(){var a=b.connect(g,"onscroll",function(){b.disconnect(a);e.style.filter=(new Date).getMilliseconds();b.defer(function(){e.style.filter=d})})})(),g=g.parentNode}})})},"dijit/form/_FormValueMixin":function(){define("dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on ./_FormWidgetMixin".split(" "),function(l,n,k,q,h,g){return l("dijit.form._FormValueMixin",g,{readOnly:!1,_setReadOnlyAttr:function(e){n.set(this.focusNode,
"readOnly",e);this._set("readOnly",e)},postCreate:function(){this.inherited(arguments);void 0===this._resetValue&&(this._lastValueReported=this._resetValue=this.value)},_setValueAttr:function(e,d){this._handleOnChange(e,d)},_handleOnChange:function(e,d){this._set("value",e);this.inherited(arguments)},undo:function(){this._setValueAttr(this._lastValueReported,!1)},reset:function(){this._hasBeenBlurred=!1;this._setValueAttr(this._resetValue,!0)}})})},"dijit/form/_TextBoxMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom dojo/has dojo/keys dojo/_base/lang dojo/on ../main".split(" "),
function(l,n,k,q,h,g,e,d){var b=n("dijit.form._TextBoxMixin"+(q("dojo-bidi")?"_NoBidi":""),null,{trim:!1,uppercase:!1,lowercase:!1,propercase:!1,maxLength:"",selectOnClick:!1,placeHolder:"",_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints)},_setValueAttr:function(a,b,f){var d;void 0!==a&&(d=this.filter(a),"string"!=typeof f&&(f=null!==d&&("number"!=typeof d||!isNaN(d))?this.filter(this.format(d,this.constraints)):"",0!=this.compare(d,this.filter(this.parse(f,
this.constraints)))&&(f=null)));if(null!=f&&("number"!=typeof f||!isNaN(f))&&this.textbox.value!=f)this.textbox.value=f,this._set("displayedValue",this.get("displayedValue"));this.inherited(arguments,[d,b])},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},_setDisplayedValueAttr:function(a){null==a?a="":"string"!=typeof a&&(a=String(a));this.textbox.value=a;this._setValueAttr(this.get("value"),void 0);this._set("displayedValue",this.get("displayedValue"))},
format:function(a){return null==a?"":a.toString?a.toString():a},parse:function(a){return a},_refreshState:function(){},onInput:function(){},__skipInputEvent:!1,_onInput:function(a){this._processInput(a);this.intermediateChanges&&this.defer(function(){this._handleOnChange(this.get("value"),!1)})},_processInput:function(a){this._refreshState();this._set("displayedValue",this.get("displayedValue"))},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);
this.own(e(this.textbox,"keydown, keypress, paste, cut, input, compositionend",g.hitch(this,function(a){var b;if("keydown"==a.type){b=a.keyCode;switch(b){case h.SHIFT:case h.ALT:case h.CTRL:case h.META:case h.CAPS_LOCK:case h.NUM_LOCK:case h.SCROLL_LOCK:return}if(!a.ctrlKey&&!a.metaKey&&!a.altKey){switch(b){case h.NUMPAD_0:case h.NUMPAD_1:case h.NUMPAD_2:case h.NUMPAD_3:case h.NUMPAD_4:case h.NUMPAD_5:case h.NUMPAD_6:case h.NUMPAD_7:case h.NUMPAD_8:case h.NUMPAD_9:case h.NUMPAD_MULTIPLY:case h.NUMPAD_PLUS:case h.NUMPAD_ENTER:case h.NUMPAD_MINUS:case h.NUMPAD_PERIOD:case h.NUMPAD_DIVIDE:return}if(65<=
b&&90>=b||48<=b&&57>=b||b==h.SPACE)return;b=!1;for(var f in h)if(h[f]===a.keyCode){b=!0;break}if(!b)return}}(b=32<=a.charCode?String.fromCharCode(a.charCode):a.charCode)||(b=65<=a.keyCode&&90>=a.keyCode||48<=a.keyCode&&57>=a.keyCode||a.keyCode==h.SPACE?String.fromCharCode(a.keyCode):a.keyCode);b||(b=229);if("keypress"==a.type){if("string"!=typeof b)return;if("a"<=b&&"z">=b||"A"<=b&&"Z">=b||"0"<=b&&"9">=b||" "===b)if(a.ctrlKey||a.metaKey||a.altKey)return}if("input"==a.type){if(this.__skipInputEvent){this.__skipInputEvent=
!1;return}}else this.__skipInputEvent=!0;var d={faux:!0},e;for(e in a)/^(layer[XY]|returnValue|keyLocation)$/.test(e)||(f=a[e],"function"!=typeof f&&"undefined"!=typeof f&&(d[e]=f));g.mixin(d,{charOrCode:b,_wasConsumed:!1,preventDefault:function(){d._wasConsumed=!0;a.preventDefault()},stopPropagation:function(){a.stopPropagation()}});!1===this.onInput(d)&&(d.preventDefault(),d.stopPropagation());d._wasConsumed||this.defer(function(){this._onInput(d)})})),e(this.domNode,"keypress",function(a){a.stopPropagation()}))},
_blankValue:"",filter:function(a){if(null===a)return this._blankValue;if("string"!=typeof a)return a;this.trim&&(a=g.trim(a));this.uppercase&&(a=a.toUpperCase());this.lowercase&&(a=a.toLowerCase());this.propercase&&(a=a.replace(/[^\s]+/g,function(a){return a.substring(0,1).toUpperCase()+a.substring(1)}));return a},_setBlurValue:function(){this._setValueAttr(this.get("value"),!0)},_onBlur:function(a){this.disabled||(this._setBlurValue(),this.inherited(arguments))},_isTextSelected:function(){return this.textbox.selectionStart!=
this.textbox.selectionEnd},_onFocus:function(a){!this.disabled&&!this.readOnly&&(this.selectOnClick&&"mouse"==a&&(this._selectOnClickHandle=e.once(this.domNode,"mouseup, touchend",g.hitch(this,function(a){this._isTextSelected()||b.selectInputText(this.textbox)})),this.own(this._selectOnClickHandle),this.defer(function(){this._selectOnClickHandle&&(this._selectOnClickHandle.remove(),this._selectOnClickHandle=null)},500)),this.inherited(arguments),this._refreshState())},reset:function(){this.textbox.value=
"";this.inherited(arguments)}});q("dojo-bidi")&&(b=n("dijit.form._TextBoxMixin",b,{_setValueAttr:function(){this.inherited(arguments);this.applyTextDir(this.focusNode)},_setDisplayedValueAttr:function(){this.inherited(arguments);this.applyTextDir(this.focusNode)},_onInput:function(){this.applyTextDir(this.focusNode);this.inherited(arguments)}}));b._setSelectionRange=d._setSelectionRange=function(a,b,f){a.setSelectionRange&&a.setSelectionRange(b,f)};b.selectInputText=d.selectInputText=function(a,c,
f){a=k.byId(a);isNaN(c)&&(c=0);isNaN(f)&&(f=a.value?a.value.length:0);try{a.focus(),b._setSelectionRange(a,c,f)}catch(d){}};return b})},"dijit/Tooltip":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/fx dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/lang dojo/mouse dojo/on dojo/sniff ./_base/manager ./place ./_Widget ./_TemplatedMixin ./BackgroundIframe dojo/text!./templates/Tooltip.html ./main".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v){function A(){}
var y=n("dijit._MasterTooltip",[s,t],{duration:f.defaultDuration,templateString:u,postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);this.bgIframe=new r(this.domNode);this.fadeIn=k.fadeIn({node:this.domNode,duration:this.duration,onEnd:d.hitch(this,"_onShow")});this.fadeOut=k.fadeOut({node:this.domNode,duration:this.duration,onEnd:d.hitch(this,"_onHide")})},show:function(a,b,c,f,g,h,k){if(!this.aroundNode||!(this.aroundNode===b&&this.containerNode.innerHTML==a))if("playing"==this.fadeOut.status())this._onDeck=
arguments;else{this.containerNode.innerHTML=a;g&&this.set("textDir",g);this.containerNode.align=f?"right":"left";var l=m.around(this.domNode,b,c&&c.length?c:w.defaultPosition,!f,d.hitch(this,"orient")),n=l.aroundNodePos;"M"==l.corner.charAt(0)&&"M"==l.aroundCorner.charAt(0)?(this.connectorNode.style.top=n.y+(n.h-this.connectorNode.offsetHeight>>1)-l.y+"px",this.connectorNode.style.left=""):"M"==l.corner.charAt(1)&&"M"==l.aroundCorner.charAt(1)?this.connectorNode.style.left=n.x+(n.w-this.connectorNode.offsetWidth>>
1)-l.x+"px":(this.connectorNode.style.left="",this.connectorNode.style.top="");e.set(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=!0;this.aroundNode=b;this.onMouseEnter=h||A;this.onMouseLeave=k||A}},orient:function(a,b,f,d,e){this.connectorNode.style.top="";var m=d.h;d=d.w;a.className="dijitTooltip "+{"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove","BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft",
"BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[b+"-"+f];this.domNode.style.width="auto";var h=g.position(this.domNode);if(c("ie")||c("trident"))h.w+=2;var k=Math.min(Math.max(d,1),h.w);g.setMarginBox(this.domNode,{w:k});"B"==f.charAt(0)&&"B"==b.charAt(0)?(a=g.position(a),b=this.connectorNode.offsetHeight,a.h>m?(this.connectorNode.style.top=m-(e.h+b>>1)+"px",this.connectorNode.style.bottom=""):
(this.connectorNode.style.bottom=Math.min(Math.max(e.h/2-b/2,0),a.h-b)+"px",this.connectorNode.style.top="")):(this.connectorNode.style.top="",this.connectorNode.style.bottom="");return Math.max(0,h.w-d)},_onShow:function(){c("ie")&&(this.domNode.style.filter="")},hide:function(a){this._onDeck&&this._onDeck[1]==a?this._onDeck=null:this.aroundNode===a&&(this.fadeIn.stop(),this.isShowingNow=!1,this.aroundNode=null,this.fadeOut.play());this.onMouseEnter=this.onMouseLeave=A},_onHide:function(){this.domNode.style.cssText=
"";this.containerNode.innerHTML="";this._onDeck&&(this.show.apply(this,this._onDeck),this._onDeck=null)}});c("dojo-bidi")&&y.extend({_setAutoTextDir:function(a){this.applyTextDir(a);l.forEach(a.children,function(a){this._setAutoTextDir(a)},this)},_setTextDirAttr:function(a){this._set("textDir",a);"auto"==a?this._setAutoTextDir(this.containerNode):this.containerNode.dir=this.textDir}});v.showTooltip=function(a,b,c,f,d,e,g){c&&(c=l.map(c,function(a){return{after:"after-centered",before:"before-centered"}[a]||
a}));w._masterTT||(v._masterTT=w._masterTT=new y);return w._masterTT.show(a,b,c,f,d,e,g)};v.hideTooltip=function(a){return w._masterTT&&w._masterTT.hide(a)};var w=n("dijit.Tooltip",s,{label:"",showDelay:400,hideDelay:400,connectId:[],position:[],selector:"",_setConnectIdAttr:function(c){l.forEach(this._connections||[],function(a){l.forEach(a,function(a){a.remove()})},this);this._connectIds=l.filter(d.isArrayLike(c)?c:c?[c]:[],function(a){return q.byId(a,this.ownerDocument)},this);this._connections=
l.map(this._connectIds,function(c){c=q.byId(c,this.ownerDocument);var f=this.selector,e=f?function(b){return a.selector(f,b)}:function(a){return a},g=this;return[a(c,e(b.enter),function(){g._onHover(this)}),a(c,e("focusin"),function(){g._onHover(this)}),a(c,e(b.leave),d.hitch(g,"_onUnHover")),a(c,e("focusout"),d.hitch(g,"set","state","DORMANT"))]},this);this._set("connectId",c)},addTarget:function(a){a=a.id||a;-1==l.indexOf(this._connectIds,a)&&this.set("connectId",this._connectIds.concat(a))},removeTarget:function(a){a=
l.indexOf(this._connectIds,a.id||a);0<=a&&(this._connectIds.splice(a,1),this.set("connectId",this._connectIds))},buildRendering:function(){this.inherited(arguments);h.add(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var a=this.connectId;l.forEach(d.isArrayLike(a)?a:[a],this.addTarget,this)},getContent:function(a){return this.label||this.domNode.innerHTML},state:"DORMANT",_setStateAttr:function(a){if(!(this.state==a||"SHOW TIMER"==a&&"SHOWING"==this.state||"HIDE TIMER"==
a&&"DORMANT"==this.state)){this._hideTimer&&(this._hideTimer.remove(),delete this._hideTimer);this._showTimer&&(this._showTimer.remove(),delete this._showTimer);switch(a){case "DORMANT":this._connectNode&&(w.hide(this._connectNode),delete this._connectNode,this.onHide());break;case "SHOW TIMER":"SHOWING"!=this.state&&(this._showTimer=this.defer(function(){this.set("state","SHOWING")},this.showDelay));break;case "SHOWING":var b=this.getContent(this._connectNode);if(!b){this.set("state","DORMANT");
return}w.show(b,this._connectNode,this.position,!this.isLeftToRight(),this.textDir,d.hitch(this,"set","state","SHOWING"),d.hitch(this,"set","state","HIDE TIMER"));this.onShow(this._connectNode,this.position);break;case "HIDE TIMER":this._hideTimer=this.defer(function(){this.set("state","DORMANT")},this.hideDelay)}this._set("state",a)}},_onHover:function(a){this._connectNode&&a!=this._connectNode&&this.set("state","DORMANT");this._connectNode=a;this.set("state","SHOW TIMER")},_onUnHover:function(a){this.set("state",
"HIDE TIMER")},open:function(a){this.set("state","DORMANT");this._connectNode=a;this.set("state","SHOWING")},close:function(){this.set("state","DORMANT")},onShow:function(){},onHide:function(){},destroy:function(){this.set("state","DORMANT");l.forEach(this._connections||[],function(a){l.forEach(a,function(a){a.remove()})},this);this.inherited(arguments)}});w._MasterTooltip=y;w.show=v.showTooltip;w.hide=v.hideTooltip;w.defaultPosition=["after-centered","before-centered"];return w})},"dijit/_base/manager":function(){define(["dojo/_base/array",
"dojo/_base/config","dojo/_base/lang","../registry","../main"],function(l,n,k,q,h){var g={};l.forEach("byId getUniqueId findWidgets _destroyAll byNode getEnclosingWidget".split(" "),function(e){g[e]=q[e]});k.mixin(g,{defaultDuration:n.defaultDuration||200});k.mixin(h,g);return h})},"dijit/form/NumberTextBox":function(){define("dojo/_base/declare dojo/_base/lang dojo/i18n dojo/string dojo/number ./RangeBoundTextBox".split(" "),function(l,n,k,q,h,g){var e=function(b){b=b||{};var a=k.getLocalization("dojo.cldr",
"number",k.normalizeLocale(b.locale)),c=b.pattern?b.pattern:a[(b.type||"decimal")+"Format"];b="number"==typeof b.places?b.places:-1!=c.indexOf(a.decimal)?c.split(a.decimal)[1].replace(/[^#0]/g,"").length:0;return{sep:a.decimal,places:b}},d=l("dijit.form.NumberTextBoxMixin",null,{pattern:function(b){return"("+(this.focused&&this.editOptions?this._regExpGenerator(n.delegate(b,this.editOptions))+"|":"")+this._regExpGenerator(b)+")"},value:NaN,editOptions:{pattern:"#.######"},_formatter:h.format,_regExpGenerator:h.regexp,
_decimalInfo:e(),postMixInProperties:function(){this.inherited(arguments);this._set("type","text")},_setConstraintsAttr:function(b){var a="number"==typeof b.places?b.places:0;a&&a++;"number"!=typeof b.max&&(b.max=9*Math.pow(10,15-a));"number"!=typeof b.min&&(b.min=-9*Math.pow(10,15-a));this.inherited(arguments,[b]);this.focusNode&&(this.focusNode.value&&!isNaN(this.value))&&this.set("value",this.value);this._decimalInfo=e(b)},_onFocus:function(){if(!this.disabled&&!this.readOnly){var b=this.get("value");
"number"==typeof b&&!isNaN(b)&&(b=this.format(b,this.constraints),void 0!==b&&(this.textbox.value=b));this.inherited(arguments)}},format:function(b,a){var c=String(b);if("number"!=typeof b)return c;if(isNaN(b))return"";if(!("rangeCheck"in this&&this.rangeCheck(b,a))&&!1!==a.exponent&&/\de[-+]?\d/i.test(c))return c;this.editOptions&&this.focused&&(a=n.mixin({},a,this.editOptions));return this._formatter(b,a)},_parser:h.parse,parse:function(b,a){var c=this._parser(b,n.mixin({},a,this.editOptions&&this.focused?
this.editOptions:{}));this.editOptions&&(this.focused&&isNaN(c))&&(c=this._parser(b,a));return c},_getDisplayedValueAttr:function(){var b=this.inherited(arguments);return isNaN(b)?this.textbox.value:b},filter:function(b){if(null==b||"string"==typeof b&&""==b)return NaN;"number"==typeof b&&(!isNaN(b)&&0!=b)&&(b=h.round(b,this._decimalInfo.places));return this.inherited(arguments,[b])},serialize:function(b,a){return"number"!=typeof b||isNaN(b)?"":this.inherited(arguments)},_setBlurValue:function(){var b=
n.hitch(n.delegate(this,{focused:!0}),"get")("value");this._setValueAttr(b,!0)},_setValueAttr:function(b,a,c){if(void 0!==b&&void 0===c)if(c=String(b),"number"==typeof b)if(isNaN(b))c="";else{if("rangeCheck"in this&&this.rangeCheck(b,this.constraints)||!1===this.constraints.exponent||!/\de[-+]?\d/i.test(c))c=void 0}else b?b=void 0:(c="",b=NaN);this.inherited(arguments,[b,a,c])},_getValueAttr:function(){var b=this.inherited(arguments);if(isNaN(b)&&""!==this.textbox.value){if(!1!==this.constraints.exponent&&
/\de[-+]?\d/i.test(this.textbox.value)&&RegExp("^"+h._realNumberRegexp(n.delegate(this.constraints))+"$").test(this.textbox.value))return b=Number(this.textbox.value),isNaN(b)?void 0:b}else return b},isValid:function(b){if(!this.focused||this._isEmpty(this.textbox.value))return this.inherited(arguments);var a=this.get("value");return!isNaN(a)&&this.rangeCheck(a,this.constraints)?!1!==this.constraints.exponent&&/\de[-+]?\d/i.test(this.textbox.value)?!0:this.inherited(arguments):!1},_isValidSubset:function(){var b=
"number"==typeof this.constraints.min,a="number"==typeof this.constraints.max,c=this.get("value");if(isNaN(c)||!b&&!a)return this.inherited(arguments);var f=c|0,d=0>c,e=-1!=this.textbox.value.indexOf(this._decimalInfo.sep),g=(this.maxLength||20)-this.textbox.value.length,h=e?this.textbox.value.split(this._decimalInfo.sep)[1].replace(/[^0-9]/g,""):"",f=e?f+"."+h:f+"",g=q.rep("9",g),e=c;d?e=Number(f+g):c=Number(f+g);return!(b&&c<this.constraints.min||a&&e>this.constraints.max)}});l=l("dijit.form.NumberTextBox",
[g,d],{baseClass:"dijitTextBox dijitNumberTextBox"});l.Mixin=d;return l})},"dijit/form/FilteringSelect":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/when","./MappedTextBox","./ComboBoxMixin"],function(l,n,k,q,h){return l("dijit.form.FilteringSelect",[q,h],{required:!0,_lastDisplayedValue:"",_isValidSubset:function(){return this._opened},isValid:function(){return!!this.item||!this.required&&""==this.get("displayedValue")},_refreshState:function(){this.searchTimer||this.inherited(arguments)},
_callbackSetLabel:function(g,e,d,b){e&&e[this.searchAttr]!==this._lastQuery||!e&&g.length&&this.store.getIdentity(g[0])!=this._lastQuery||(g.length?this.set("item",g[0],b):this.set("value","",b||void 0===b&&!this.focused,this.textbox.value,null))},_openResultList:function(g,e,d){e[this.searchAttr]===this._lastQuery&&(this.inherited(arguments),void 0===this.item&&this.validate(!0))},_getValueAttr:function(){return this.valueNode.value},_getValueField:function(){return"value"},_setValueAttr:function(g,
e,d,b){this._onChangeActive||(e=null);if(void 0===b){if(null===g||""===g)if(g="",!n.isString(d)){this._setDisplayedValueAttr(d||"",e);return}var a=this;this._lastQuery=g;k(this.store.get(g),function(b){a._callbackSetLabel(b?[b]:[],void 0,void 0,e)})}else this.valueNode.value=g,this.inherited(arguments,[g,e,d,b])},_setItemAttr:function(g,e,d){this.inherited(arguments);this._lastDisplayedValue=this.textbox.value},_getDisplayQueryString:function(g){return g.replace(/([\\\*\?])/g,"\\$1")},_setDisplayedValueAttr:function(g,
e){null==g&&(g="");if(!this._created){if(!("displayedValue"in this.params))return;e=!1}if(this.store){this.closeDropDown();var d=n.clone(this.query),b=this._getDisplayQueryString(g),a;this.store._oldAPI?a=b:(a=this._patternToRegExp(b),a.toString=function(){return b});this._lastQuery=d[this.searchAttr]=a;this._lastDisplayedValue=this.textbox.value=g;this._set("displayedValue",g);var c=this,f={queryOptions:{ignoreCase:this.ignoreCase,deep:!0}};n.mixin(f,this.fetchProperties);this._fetchHandle=this.store.query(d,
f);k(this._fetchHandle,function(a){c._fetchHandle=null;c._callbackSetLabel(a||[],d,f,e)},function(a){c._fetchHandle=null;c._cancelingQuery||console.error("dijit.form.FilteringSelect: "+a.toString())})}},undo:function(){this.set("displayedValue",this._lastDisplayedValue)}})})},"dijit/form/ComboBoxMixin":function(){define("dojo/_base/declare dojo/Deferred dojo/_base/kernel dojo/_base/lang dojo/store/util/QueryResults ./_AutoCompleterMixin ./_ComboBoxMenu ../_HasDropDown dojo/text!./templates/DropDownBox.html".split(" "),
function(l,n,k,q,h,g,e,d,b){return l("dijit.form.ComboBoxMixin",[d,g],{dropDownClass:e,hasDownArrow:!0,templateString:b,baseClass:"dijitTextBox dijitComboBox",cssStateNodes:{_buttonNode:"dijitDownArrowButton"},_setHasDownArrowAttr:function(a){this._set("hasDownArrow",a);this._buttonNode.style.display=a?"":"none"},_showResultList:function(){this.displayMessage("");this.inherited(arguments)},_setStoreAttr:function(a){a.get||q.mixin(a,{_oldAPI:!0,get:function(a){var b=new n;this.fetchItemByIdentity({identity:a,
onItem:function(a){b.resolve(a)},onError:function(a){b.reject(a)}});return b.promise},query:function(a,b){var d=new n(function(){e.abort&&e.abort()});d.total=new n;var e=this.fetch(q.mixin({query:a,onBegin:function(a){d.total.resolve(a)},onComplete:function(a){d.resolve(a)},onError:function(a){d.reject(a)}},b));return h(d)}});this._set("store",a)},postMixInProperties:function(){var a=this.params.store||this.store;a&&this._setStoreAttr(a);this.inherited(arguments);if(!this.params.store&&this.store&&
!this.store._oldAPI){var b=this.declaredClass;q.mixin(this.store,{getValue:function(a,d){k.deprecated(b+".store.getValue(item, attr) is deprecated for builtin store. Use item.attr directly","","2.0");return a[d]},getLabel:function(a){k.deprecated(b+".store.getLabel(item) is deprecated for builtin store. Use item.label directly","","2.0");return a.name},fetch:function(a){k.deprecated(b+".store.fetch() is deprecated for builtin store.","Use store.query()","2.0");require(["dojo/data/ObjectStore"],
q.hitch(this,function(b){(new b({objectStore:this})).fetch(a)}))}})}}})})},"dojo/store/util/QueryResults":function(){define(["../../_base/array","../../_base/lang","../../when"],function(l,n,k){var q=function(h){function g(d){h[d]=function(){var b=arguments,a=k(h,function(a){Array.prototype.unshift.call(b,a);return q(l[d].apply(l,b))});if("forEach"!==d||e)return a}}if(!h)return h;var e=!!h.then;e&&(h=n.delegate(h));g("forEach");g("filter");g("map");null==h.total&&(h.total=k(h,function(d){return d.length}));
return h};n.setObject("dojo.store.util.QueryResults",q);return q})},"dijit/form/_AutoCompleterMixin":function(){define("dojo/aspect dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/query dojo/regexp dojo/sniff ./DataList ./_TextBoxMixin ./_SearchMixin".split(" "),function(l,n,k,q,h,g,e,d,b,a,c){n=n("dijit.form._AutoCompleterMixin",c,{item:null,autoComplete:!0,highlightMatch:"first",labelAttr:"",labelType:"text",maxHeight:-1,_stopClickEvents:!1,_getCaretPos:function(a){var b=0;if("number"==
typeof a.selectionStart)b=a.selectionStart;else if(d("ie")){var c=a.ownerDocument.selection.createRange().duplicate();a=a.createTextRange();c.move("character",0);a.move("character",0);try{a.setEndPoint("EndToEnd",c),b=String(a.text).replace(/\r/g,"").length}catch(e){}}return b},_setCaretPos:function(b,c){c=parseInt(c);a.selectInputText(b,c,c)},_setDisabledAttr:function(a){this.inherited(arguments);this.domNode.setAttribute("aria-disabled",a?"true":"false")},_onKey:function(a){if(!(32<=a.charCode)){var b=
a.charCode||a.keyCode;if(!(b==q.ALT||b==q.CTRL||b==q.META||b==q.SHIFT)){var c=this.dropDown,d=null;this._abortQuery();this.inherited(arguments);if(!a.altKey&&!a.ctrlKey&&!a.metaKey)switch(this._opened&&(d=c.getHighlightedOption()),b){case q.PAGE_DOWN:case q.DOWN_ARROW:case q.PAGE_UP:case q.UP_ARROW:this._opened&&this._announceOption(d);a.stopPropagation();a.preventDefault();break;case q.ENTER:if(d){if(d==c.nextButton){this._nextSearch(1);a.stopPropagation();a.preventDefault();break}else if(d==c.previousButton){this._nextSearch(-1);
a.stopPropagation();a.preventDefault();break}a.stopPropagation();a.preventDefault()}else this._setBlurValue(),this._setCaretPos(this.focusNode,this.focusNode.value.length);case q.TAB:b=this.get("displayedValue");if(c&&(b==c._messages.previousMessage||b==c._messages.nextMessage))break;d&&this._selectOption(d);case q.ESCAPE:this._opened&&(this._lastQuery=null,this.closeDropDown())}}}},_autoCompleteText:function(b){var c=this.focusNode;a.selectInputText(c,c.value.length);var d=this.ignoreCase?"toLowerCase":
"substr";0==b[d](0).indexOf(this.focusNode.value[d](0))?(d=this.autoComplete?this._getCaretPos(c):c.value.length,d+1>c.value.length&&(c.value=b,a.selectInputText(c,d))):(c.value=b,a.selectInputText(c))},_openResultList:function(a,b,c){var d=this.dropDown.getHighlightedOption();this.dropDown.clearResultList();!a.length&&0==c.start?this.closeDropDown():(this._nextSearch=this.dropDown.onPage=h.hitch(this,function(b){a.nextPage(-1!==b);this.focus()}),this.dropDown.createOptions(a,c,h.hitch(this,"_getMenuLabelFromItem")),
this._showResultList(),"direction"in c?(c.direction?this.dropDown.highlightFirstOption():c.direction||this.dropDown.highlightLastOption(),d&&this._announceOption(this.dropDown.getHighlightedOption())):this.autoComplete&&(!this._prev_key_backspace&&!/^[*]+$/.test(b[this.searchAttr].toString()))&&this._announceOption(this.dropDown.containerNode.firstChild.nextSibling))},_showResultList:function(){this.closeDropDown(!0);this.openDropDown();this.domNode.setAttribute("aria-expanded","true")},loadDropDown:function(){this._startSearchAll()},
isLoaded:function(){return!1},closeDropDown:function(){this._abortQuery();this._opened&&(this.inherited(arguments),this.domNode.setAttribute("aria-expanded","false"))},_setBlurValue:function(){var a=this.get("displayedValue"),b=this.dropDown;b&&(a==b._messages.previousMessage||a==b._messages.nextMessage)?this._setValueAttr(this._lastValueReported,!0):"undefined"==typeof this.item?(this.item=null,this.set("displayedValue",a)):(this.value!=this._lastValueReported&&this._handleOnChange(this.value,!0),
this._refreshState());this.focusNode.removeAttribute("aria-activedescendant")},_setItemAttr:function(a,b,c){var d="";a&&(c||(c=this.store._oldAPI?this.store.getValue(a,this.searchAttr):a[this.searchAttr]),d=this._getValueField()!=this.searchAttr?this.store.getIdentity(a):c);this.set("value",d,b,c,a)},_announceOption:function(a){if(a){var b;if(a==this.dropDown.nextButton||a==this.dropDown.previousButton)b=a.innerHTML,this.item=void 0,this.value="";else{var c=this.dropDown.items[a.getAttribute("item")];
b=(this.store._oldAPI?this.store.getValue(c,this.searchAttr):c[this.searchAttr]).toString();this.set("item",c,!1,b)}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);this.focusNode.setAttribute("aria-activedescendant",k.get(a,"id"));this._autoCompleteText(b)}},_selectOption:function(a){this.closeDropDown();a&&this._announceOption(a);this._setCaretPos(this.focusNode,this.focusNode.value.length);this._handleOnChange(this.value,!0);this.focusNode.removeAttribute("aria-activedescendant")},
_startSearchAll:function(){this._startSearch("")},_startSearchFromInput:function(){this.item=void 0;this.inherited(arguments)},_startSearch:function(a){if(!this.dropDown){var b=this.id+"_popup";this.dropDown=new (h.isString(this.dropDownClass)?h.getObject(this.dropDownClass,!1):this.dropDownClass)({onChange:h.hitch(this,this._selectOption),id:b,dir:this.dir,textDir:this.textDir})}this._lastInput=a;this.inherited(arguments)},_getValueField:function(){return this.searchAttr},postMixInProperties:function(){this.inherited(arguments);
if(!this.store&&this.srcNodeRef&&(this.store=new b({},this.srcNodeRef),!("value"in this.params))){var a=this.item=this.store.fetchSelectedItem();if(a){var c=this._getValueField();this.value=this.store._oldAPI?this.store.getValue(a,c):a[c]}}},postCreate:function(){var a=g('label[for\x3d"'+this.id+'"]');a.length&&(a[0].id||(a[0].id=this.id+"_label"),this.domNode.setAttribute("aria-labelledby",a[0].id));this.inherited(arguments);l.after(this,"onSearch",h.hitch(this,"_openResultList"),!0)},_getMenuLabelFromItem:function(a){a=
this.labelFunc(a,this.store);var b=this.labelType;"none"!=this.highlightMatch&&("text"==this.labelType&&this._lastInput)&&(a=this.doHighlight(a,this._lastInput),b="html");return{html:"html"==b,label:a}},doHighlight:function(a,b){var c=(this.ignoreCase?"i":"")+("all"==this.highlightMatch?"g":""),d=this.queryExpr.indexOf("${0}");b=e.escapeString(b);return this._escapeHtml(a.replace(RegExp((0==d?"^":"")+"("+b+")"+(d==this.queryExpr.length-4?"$":""),c),"\uffff$1\uffff")).replace(/\uFFFF([^\uFFFF]+)\uFFFF/g,
'\x3cspan class\x3d"dijitComboBoxHighlightMatch"\x3e$1\x3c/span\x3e')},_escapeHtml:function(a){return a=String(a).replace(/&/gm,"\x26amp;").replace(/</gm,"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;")},reset:function(){this.item=null;this.inherited(arguments)},labelFunc:function(a,b){return(b._oldAPI?b.getValue(a,this.labelAttr||this.searchAttr):a[this.labelAttr||this.searchAttr]).toString()},_setValueAttr:function(a,b,c,d){this._set("item",d||null);null==a&&(a="");this.inherited(arguments)}});
d("dojo-bidi")&&n.extend({_setTextDirAttr:function(a){this.inherited(arguments);this.dropDown&&this.dropDown._set("textDir",a)}});return n})},"dijit/form/DataList":function(){define("dojo/_base/declare dojo/dom dojo/_base/lang dojo/query dojo/store/Memory ../registry".split(" "),function(l,n,k,q,h,g){function e(d){return{id:d.value,value:d.value,name:k.trim(d.innerText||d.textContent||"")}}return l("dijit.form.DataList",h,{constructor:function(d,b){this.domNode=n.byId(b);k.mixin(this,d);this.id&&
g.add(this);this.domNode.style.display="none";this.inherited(arguments,[{data:q("option",this.domNode).map(e)}])},destroy:function(){g.remove(this.id)},fetchSelectedItem:function(){var d=q("\x3e option[selected]",this.domNode)[0]||q("\x3e option",this.domNode)[0];return d&&e(d)}})})},"dojo/store/Memory":function(){define(["../_base/declare","./util/QueryResults","./util/SimpleQueryEngine"],function(l,n,k){return l("dojo.store.Memory",null,{constructor:function(k){for(var h in k)this[h]=k[h];this.setData(this.data||
[])},data:null,idProperty:"id",index:null,queryEngine:k,get:function(k){return this.data[this.index[k]]},getIdentity:function(k){return k[this.idProperty]},put:function(k,h){var g=this.data,e=this.index,d=this.idProperty,d=k[d]=h&&"id"in h?h.id:d in k?k[d]:Math.random();if(d in e){if(h&&!1===h.overwrite)throw Error("Object already exists");g[e[d]]=k}else e[d]=g.push(k)-1;return d},add:function(k,h){(h=h||{}).overwrite=!1;return this.put(k,h)},remove:function(k){var h=this.index,g=this.data;if(k in
h)return g.splice(h[k],1),this.setData(g),!0},query:function(k,h){return n(this.queryEngine(k,h)(this.data))},setData:function(k){k.items?(this.idProperty=k.identifier||this.idProperty,k=this.data=k.items):this.data=k;this.index={};for(var h=0,g=k.length;h<g;h++)this.index[k[h][this.idProperty]]=h}})})},"dojo/store/util/SimpleQueryEngine":function(){define(["../../_base/array"],function(l){return function(n,k){function q(g){g=l.filter(g,n);var e=k&&k.sort;e&&g.sort("function"==typeof e?e:function(b,
a){for(var c,d=0;c=e[d];d++){var g=b[c.attribute],h=a[c.attribute],g=null!=g?g.valueOf():g,h=null!=h?h.valueOf():h;if(g!=h)return!!c.descending==(null==g||g>h)?-1:1}return 0});if(k&&(k.start||k.count)){var d=g.length;g=g.slice(k.start||0,(k.start||0)+(k.count||Infinity));g.total=d}return g}switch(typeof n){default:throw Error("Can not query with a "+typeof n);case "object":case "undefined":var h=n;n=function(g){for(var e in h){var d=h[e];if(d&&d.test){if(!d.test(g[e],g))return!1}else if(d!=g[e])return!1}return!0};
break;case "string":if(!this[n])throw Error("No filter function "+n+" was found in store");n=this[n];case "function":}q.matches=n;return q}})},"dijit/form/_SearchMixin":function(){define("dojo/_base/declare dojo/keys dojo/_base/lang dojo/query dojo/string dojo/when ../registry".split(" "),function(l,n,k,q,h,g,e){return l("dijit.form._SearchMixin",null,{pageSize:Infinity,store:null,fetchProperties:{},query:{},list:"",_setListAttr:function(d){this._set("list",d)},searchDelay:200,searchAttr:"name",queryExpr:"${0}*",
ignoreCase:!0,_patternToRegExp:function(d){return RegExp("^"+d.replace(/(\\.)|(\*)|(\?)|\W/g,function(b,a,c,d){return c?".*":d?".":a?a:"\\"+b})+"$",this.ignoreCase?"mi":"m")},_abortQuery:function(){this.searchTimer&&(this.searchTimer=this.searchTimer.remove());this._queryDeferHandle&&(this._queryDeferHandle=this._queryDeferHandle.remove());this._fetchHandle&&(this._fetchHandle.abort&&(this._cancelingQuery=!0,this._fetchHandle.abort(),this._cancelingQuery=!1),this._fetchHandle.cancel&&(this._cancelingQuery=
!0,this._fetchHandle.cancel(),this._cancelingQuery=!1),this._fetchHandle=null)},_processInput:function(d){if(!this.disabled&&!this.readOnly){var b=d.charOrCode;if(!("type"in d&&"key"==d.type.substring(0,3)&&(d.altKey||(d.ctrlKey||d.metaKey)&&"x"!=b&&"v"!=b||b==n.SHIFT))){this._prev_key_backspace=d=!1;switch(b){case n.DELETE:case n.BACKSPACE:d=this._maskValidSubsetError=this._prev_key_backspace=!0;break;default:d="string"==typeof b||229==b}if(d)if(this.store)this.searchTimer=this.defer("_startSearchFromInput",
1);else this.onSearch()}}},onSearch:function(){},_startSearchFromInput:function(){this._startSearch(this.focusNode.value)},_startSearch:function(d){this._abortQuery();var b=this,a=k.clone(this.query),c={start:0,count:this.pageSize,queryOptions:{ignoreCase:this.ignoreCase,deep:!0}},f=h.substitute(this.queryExpr,[d.replace(/([\\\*\?])/g,"\\$1")]),e,l=function(){var d=b._fetchHandle=b.store.query(a,c);!b.disabled&&!(b.readOnly||e!==b._lastQuery)&&g(d,function(f){b._fetchHandle=null;!b.disabled&&(!b.readOnly&&
e===b._lastQuery)&&g(d.total,function(d){f.total=d;var e=b.pageSize;if(isNaN(e)||e>f.total)e=f.total;f.nextPage=function(d){c.direction=d=!1!==d;c.count=e;d?(c.start+=f.length,c.start>=f.total&&(c.count=0)):(c.start-=e,0>c.start&&(c.count=Math.max(e+c.start,0),c.start=0));0>=c.count?(f.length=0,b.onSearch(f,a,c)):l()};b.onSearch(f,a,c)})},function(a){b._fetchHandle=null;b._cancelingQuery||console.error(b.declaredClass+" "+a.toString())})};k.mixin(c,this.fetchProperties);this.store._oldAPI?e=f:(e=
this._patternToRegExp(f),e.toString=function(){return f});this._lastQuery=a[this.searchAttr]=e;this._queryDeferHandle=this.defer(l,this.searchDelay)},constructor:function(){this.query={};this.fetchProperties={}},postMixInProperties:function(){if(!this.store){var d=this.list;d&&(this.store=e.byId(d))}this.inherited(arguments)}})})},"dijit/form/_ComboBoxMenu":function(){define("dojo/_base/declare dojo/dom-class dojo/dom-style dojo/keys ../_WidgetBase ../_TemplatedMixin ./_ComboBoxMenuMixin ./_ListMouseMixin".split(" "),
function(l,n,k,q,h,g,e,d){return l("dijit.form._ComboBoxMenu",[h,g,d,e],{templateString:"\x3cdiv class\x3d'dijitReset dijitMenu' data-dojo-attach-point\x3d'containerNode' style\x3d'overflow: auto; overflow-x: hidden;' role\x3d'listbox'\x3e\x3cdiv class\x3d'dijitMenuItem dijitMenuPreviousButton' data-dojo-attach-point\x3d'previousButton' role\x3d'option'\x3e\x3c/div\x3e\x3cdiv class\x3d'dijitMenuItem dijitMenuNextButton' data-dojo-attach-point\x3d'nextButton' role\x3d'option'\x3e\x3c/div\x3e\x3c/div\x3e",
baseClass:"dijitComboBoxMenu",postCreate:function(){this.inherited(arguments);this.isLeftToRight()||(n.add(this.previousButton,"dijitMenuItemRtl"),n.add(this.nextButton,"dijitMenuItemRtl"));this.containerNode.setAttribute("role","listbox")},_createMenuItem:function(){var b=this.ownerDocument.createElement("div");b.className="dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl");b.setAttribute("role","option");return b},onHover:function(b){n.add(b,"dijitMenuItemHover")},onUnhover:function(b){n.remove(b,
"dijitMenuItemHover")},onSelect:function(b){n.add(b,"dijitMenuItemSelected")},onDeselect:function(b){n.remove(b,"dijitMenuItemSelected")},_page:function(b){var a=0,c=this.domNode.scrollTop,d=k.get(this.domNode,"height");for(this.getHighlightedOption()||this.selectNextNode();a<d;){var e=this.getHighlightedOption();if(b){if(!e.previousSibling||"none"==e.previousSibling.style.display)break;this.selectPreviousNode()}else{if(!e.nextSibling||"none"==e.nextSibling.style.display)break;this.selectNextNode()}e=
this.domNode.scrollTop;a+=(e-c)*(b?-1:1);c=e}},handleKey:function(b){switch(b.keyCode){case q.DOWN_ARROW:return this.selectNextNode(),!1;case q.PAGE_DOWN:return this._page(!1),!1;case q.UP_ARROW:return this.selectPreviousNode(),!1;case q.PAGE_UP:return this._page(!0),!1;default:return!0}}})})},"dijit/form/_ComboBoxMenuMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/has dojo/i18n dojo/i18n!./nls/ComboBox".split(" "),function(l,n,k,q,h){var g=n("dijit.form._ComboBoxMenuMixin"+
(q("dojo-bidi")?"_NoBidi":""),null,{_messages:null,postMixInProperties:function(){this.inherited(arguments);this._messages=h.getLocalization("dijit.form","ComboBox",this.lang)},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages.previousMessage;this.nextButton.innerHTML=this._messages.nextMessage},_setValueAttr:function(e){this._set("value",e);this.onChange(e)},onClick:function(e){if(e==this.previousButton)this._setSelectedAttr(null),this.onPage(-1);else if(e==
this.nextButton)this._setSelectedAttr(null),this.onPage(1);else this.onChange(e)},onChange:function(){},onPage:function(){},onClose:function(){this._setSelectedAttr(null)},_createOption:function(e,d){var b=this._createMenuItem(),a=d(e);a.html?b.innerHTML=a.label:b.appendChild(b.ownerDocument.createTextNode(a.label));""==b.innerHTML&&(b.innerHTML="\x26#160;");return b},createOptions:function(e,d,b){this.items=e;this.previousButton.style.display=0==d.start?"none":"";k.set(this.previousButton,"id",this.id+
"_prev");l.forEach(e,function(a,d){var e=this._createOption(a,b);e.setAttribute("item",d);k.set(e,"id",this.id+d);this.nextButton.parentNode.insertBefore(e,this.nextButton)},this);var a=!1;e.total&&!e.total.then&&-1!=e.total?d.start+d.count<e.total?a=!0:d.start+d.count>e.total&&d.count==e.length&&(a=!0):d.count==e.length&&(a=!0);this.nextButton.style.display=a?"":"none";k.set(this.nextButton,"id",this.id+"_next")},clearResultList:function(){for(var e=this.containerNode;2<e.childNodes.length;)e.removeChild(e.childNodes[e.childNodes.length-
2]);this._setSelectedAttr(null)},highlightFirstOption:function(){this.selectFirstNode()},highlightLastOption:function(){this.selectLastNode()},selectFirstNode:function(){this.inherited(arguments);this.getHighlightedOption()==this.previousButton&&this.selectNextNode()},selectLastNode:function(){this.inherited(arguments);this.getHighlightedOption()==this.nextButton&&this.selectPreviousNode()},getHighlightedOption:function(){return this.selected}});q("dojo-bidi")&&(g=n("dijit.form._ComboBoxMenuMixin",
g,{_createOption:function(){var e=this.inherited(arguments);this.applyTextDir(e);return e}}));return g})},"dijit/form/_ListMouseMixin":function(){define(["dojo/_base/declare","dojo/on","dojo/touch","./_ListBase"],function(l,n,k,q){return l("dijit.form._ListMouseMixin",q,{postCreate:function(){this.inherited(arguments);this.domNode.dojoClick=!0;this._listConnect("click","_onClick");this._listConnect("mousedown","_onMouseDown");this._listConnect("mouseup","_onMouseUp");this._listConnect("mouseover",
"_onMouseOver");this._listConnect("mouseout","_onMouseOut")},_onClick:function(h,g){this._setSelectedAttr(g,!1);this._deferredClick&&this._deferredClick.remove();this._deferredClick=this.defer(function(){this._deferredClick=null;this.onClick(g)})},_onMouseDown:function(h,g){this._hoveredNode&&(this.onUnhover(this._hoveredNode),this._hoveredNode=null);this._isDragging=!0;this._setSelectedAttr(g,!1)},_onMouseUp:function(h,g){this._isDragging=!1;var e=this.selected,d=this._hoveredNode;e&&g==e?this.defer(function(){this._onClick(h,
e)}):d&&this.defer(function(){this._onClick(h,d)})},_onMouseOut:function(h,g){this._hoveredNode&&(this.onUnhover(this._hoveredNode),this._hoveredNode=null);this._isDragging&&(this._cancelDrag=(new Date).getTime()+1E3)},_onMouseOver:function(h,g){this._cancelDrag&&((new Date).getTime()>this._cancelDrag&&(this._isDragging=!1),this._cancelDrag=null);this._hoveredNode=g;this.onHover(g);this._isDragging&&this._setSelectedAttr(g,!1)}})})},"dijit/form/_ListBase":function(){define(["dojo/_base/declare","dojo/on",
"dojo/window"],function(l,n,k){return l("dijit.form._ListBase",null,{selected:null,_listConnect:function(k,h){var g=this;return g.own(n(g.containerNode,n.selector(function(e,d,b){return e.parentNode==b},k),function(e){g[h](e,this)}))},selectFirstNode:function(){for(var k=this.containerNode.firstChild;k&&"none"==k.style.display;)k=k.nextSibling;this._setSelectedAttr(k,!0)},selectLastNode:function(){for(var k=this.containerNode.lastChild;k&&"none"==k.style.display;)k=k.previousSibling;this._setSelectedAttr(k,
!0)},selectNextNode:function(){var k=this.selected;if(k){for(k=k.nextSibling;k&&"none"==k.style.display;)k=k.nextSibling;k?this._setSelectedAttr(k,!0):this.selectFirstNode()}else this.selectFirstNode()},selectPreviousNode:function(){var k=this.selected;if(k){for(k=k.previousSibling;k&&"none"==k.style.display;)k=k.previousSibling;k?this._setSelectedAttr(k,!0):this.selectLastNode()}else this.selectLastNode()},_setSelectedAttr:function(l,h){if(this.selected!=l){var g=this.selected;if(g)this.onDeselect(g);
l&&(h&&k.scrollIntoView(l),this.onSelect(l));this._set("selected",l)}else if(l)this.onSelect(l)}})})},"dijit/form/NumberSpinner":function(){define(["dojo/_base/declare","dojo/keys","./_Spinner","./NumberTextBox"],function(l,n,k,q){return l("dijit.form.NumberSpinner",[k,q.Mixin],{baseClass:"dijitTextBox dijitSpinner dijitNumberTextBox",adjust:function(h,g){var e=this.constraints,d=isNaN(h),b=!isNaN(e.max),a=!isNaN(e.min);d&&0!=g&&(h=0<g?a?e.min:b?e.max:0:b?this.constraints.max:a?e.min:0);var c=h+g;
if(d||isNaN(c))return h;b&&c>e.max&&(c=e.max);a&&c<e.min&&(c=e.min);return c},_onKeyDown:function(h){if(!this.disabled&&!this.readOnly&&(h.keyCode==n.HOME||h.keyCode==n.END)&&!h.ctrlKey&&(!h.altKey&&!h.metaKey)&&"undefined"!=typeof this.get("value")){var g=this.constraints[h.keyCode==n.HOME?"min":"max"];"number"==typeof g&&this._setValueAttr(g,!1);h.stopPropagation();h.preventDefault()}}})})},"dijit/form/_Spinner":function(){define("dojo/_base/declare dojo/keys dojo/_base/lang dojo/sniff dojo/mouse dojo/on ../typematic ./RangeBoundTextBox dojo/text!./templates/Spinner.html ./_TextBoxMixin".split(" "),
function(l,n,k,q,h,g,e,d,b,a){return l("dijit.form._Spinner",d,{defaultTimeout:500,minimumTimeout:10,timeoutChangeRate:0.9,smallDelta:1,largeDelta:10,templateString:b,baseClass:"dijitTextBox dijitSpinner",cssStateNodes:{upArrowNode:"dijitUpArrowButton",downArrowNode:"dijitDownArrowButton"},adjust:function(a){return a},_arrowPressed:function(b,d,e){!this.disabled&&!this.readOnly&&(this._setValueAttr(this.adjust(this.get("value"),d*e),!1),a.selectInputText(this.textbox,this.textbox.value.length))},
_arrowReleased:function(){this._wheelTimer=null},_typematicCallback:function(a,b,d){var e=this.smallDelta;b==this.textbox&&(b=d.keyCode,e=b==n.PAGE_UP||b==n.PAGE_DOWN?this.largeDelta:this.smallDelta,b=b==n.UP_ARROW||b==n.PAGE_UP?this.upArrowNode:this.downArrowNode);-1==a?this._arrowReleased(b):this._arrowPressed(b,b==this.upArrowNode?1:-1,e)},_wheelTimer:null,_mouseWheeled:function(a){a.stopPropagation();a.preventDefault();var b=a.wheelDelta/120;Math.floor(b)!=b&&(b=0<a.wheelDelta?1:-1);a=a.detail?
-1*a.detail:b;if(0!==a){var d=this[0<a?"upArrowNode":"downArrowNode"];this._arrowPressed(d,a,this.smallDelta);this._wheelTimer&&this._wheelTimer.remove();this._wheelTimer=this.defer(function(){this._arrowReleased(d)},50)}},_setConstraintsAttr:function(a){this.inherited(arguments);this.focusNode&&(void 0!==this.constraints.min?this.focusNode.setAttribute("aria-valuemin",this.constraints.min):this.focusNode.removeAttribute("aria-valuemin"),void 0!==this.constraints.max?this.focusNode.setAttribute("aria-valuemax",
this.constraints.max):this.focusNode.removeAttribute("aria-valuemax"))},_setValueAttr:function(a,b){this.focusNode.setAttribute("aria-valuenow",a);this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this.own(g(this.domNode,h.wheel,k.hitch(this,"_mouseWheeled")),e.addListener(this.upArrowNode,this.textbox,{keyCode:n.UP_ARROW,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),e.addListener(this.downArrowNode,
this.textbox,{keyCode:n.DOWN_ARROW,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),e.addListener(this.upArrowNode,this.textbox,{keyCode:n.PAGE_UP,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),e.addListener(this.downArrowNode,this.textbox,{keyCode:n.PAGE_DOWN,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,"_typematicCallback",
this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout))}})})},"dijit/typematic":function(){define("dojo/_base/array dojo/_base/connect dojo/_base/lang dojo/on dojo/sniff ./main".split(" "),function(l,n,k,q,h,g){var e=g.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(0>this._currentTimeout?this._initialDelay:1<this._subsequentDelay?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay),
this._minDelay);this._timer=setTimeout(k.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(d,b,a,c,f,e,g,h){if(f!=this._obj){this.stop();this._initialDelay=g||500;this._subsequentDelay=e||0.9;this._minDelay=h||10;this._obj=f;this._node=a;this._count=this._currentTimeout=-1;this._callback=k.hitch(b,c);this._evt={faux:!0};for(var l in d)"layerX"!=l&&"layerY"!=l&&(b=d[l],"function"!=typeof b&&"undefined"!=typeof b&&(this._evt[l]=b));this._fireEventAndReload()}},stop:function(){this._timer&&
(clearTimeout(this._timer),this._timer=null);this._obj&&(this._callback(-1,this._node,this._evt),this._obj=null)},addKeyListener:function(d,b,a,c,f,g,h){var t="keyCode"in b?"keyCode":"charCode"in b?"charCode":"charOrCode",r=[q(d,"keyCode"in b?"keydown":"charCode"in b?"keypress":n._keypress,k.hitch(this,function(k){k[t]==b[t]&&(void 0===b.ctrlKey||b.ctrlKey==k.ctrlKey)&&(void 0===b.altKey||b.altKey==k.altKey)&&(void 0===b.metaKey||b.metaKey==(k.metaKey||!1))&&(void 0===b.shiftKey||b.shiftKey==k.shiftKey)?
(k.stopPropagation(),k.preventDefault(),e.trigger(k,a,d,c,b,f,g,h)):e._obj==b&&e.stop()})),q(d,"keyup",k.hitch(this,function(){e._obj==b&&e.stop()}))];return{remove:function(){l.forEach(r,function(a){a.remove()})}}},addMouseListener:function(d,b,a,c,f,g){var n=[q(d,"mousedown",k.hitch(this,function(h){h.preventDefault();e.trigger(h,b,d,a,d,c,f,g)})),q(d,"mouseup",k.hitch(this,function(a){this._obj&&a.preventDefault();e.stop()})),q(d,"mouseout",k.hitch(this,function(a){this._obj&&a.preventDefault();
e.stop()})),q(d,"dblclick",k.hitch(this,function(l){l.preventDefault();9>h("ie")&&(e.trigger(l,b,d,a,d,c,f,g),setTimeout(k.hitch(this,e.stop),50))}))];return{remove:function(){l.forEach(n,function(a){a.remove()})}}},addListener:function(d,b,a,c,f,e,g,h){var k=[this.addKeyListener(b,a,c,f,e,g,h),this.addMouseListener(d,c,f,e,g,h)];return{remove:function(){l.forEach(k,function(a){a.remove()})}}}};return e})},"dijit/form/SimpleTextarea":function(){define(["dojo/_base/declare","dojo/dom-class","dojo/sniff",
"./TextBox"],function(l,n,k,q){return l("dijit.form.SimpleTextarea",q,{baseClass:"dijitTextBox dijitTextArea",rows:"3",cols:"20",templateString:"\x3ctextarea ${!nameAttrSetting} data-dojo-attach-point\x3d'focusNode,containerNode,textbox' autocomplete\x3d'off'\x3e\x3c/textarea\x3e",postMixInProperties:function(){!this.value&&this.srcNodeRef&&(this.value=this.srcNodeRef.value);this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);k("ie")&&this.cols&&n.add(this.textbox,"dijitTextAreaCols")},
filter:function(h){h&&(h=h.replace(/\r/g,""));return this.inherited(arguments)},_onInput:function(h){if(this.maxLength){var g=parseInt(this.maxLength),e=this.textbox.value.replace(/\r/g,""),g=e.length-g;if(0<g){var d=this.textbox;if(d.selectionStart){var b=d.selectionStart,a=0;k("opera")&&(a=(this.textbox.value.substring(0,b).match(/\r/g)||[]).length);this.textbox.value=e.substring(0,b-g-a)+e.substring(b-a);d.setSelectionRange(b-g,b-g)}else this.ownerDocument.selection&&(d.focus(),e=this.ownerDocument.selection.createRange(),
e.moveStart("character",-g),e.text="",e.select())}}this.inherited(arguments)}})})},"dijit/form/TimeTextBox":function(){define(["dojo/_base/declare","dojo/keys","dojo/_base/lang","../_TimePicker","./_DateTimeTextBox"],function(l,n,k,q,h){return l("dijit.form.TimeTextBox",h,{baseClass:"dijitTextBox dijitComboBox dijitTimeTextBox",popupClass:q,_selector:"time",value:new Date(""),maxHeight:-1,_onKey:function(g){if(!this.disabled&&!this.readOnly)switch(this.inherited(arguments),g.keyCode){case n.ENTER:case n.TAB:case n.ESCAPE:case n.DOWN_ARROW:case n.UP_ARROW:break;
default:this.defer(function(){var e=this.get("displayedValue");this.filterString=e&&!this.parse(e,this.constraints)?e.toLowerCase():"";this._opened&&this.closeDropDown();this.openDropDown()})}}})})},"dijit/_TimePicker":function(){define("dojo/_base/array dojo/date dojo/date/locale dojo/date/stamp dojo/_base/declare dojo/dom-class dojo/dom-construct dojo/_base/kernel dojo/keys dojo/_base/lang dojo/sniff dojo/query dojo/mouse dojo/on ./_WidgetBase ./form/_ListMouseMixin".split(" "),function(l,n,k,q,
h,g,e,d,b,a,c,f,m,s,t,r){return h("dijit._TimePicker",[t,r],{baseClass:"dijitTimePicker",clickableIncrement:"T00:15:00",visibleIncrement:"T01:00:00",value:new Date,_visibleIncrement:2,_clickableIncrement:1,_totalIncrements:10,constraints:{},serialize:q.toISOString,buildRendering:function(){this.inherited(arguments);this.timeMenu=this.containerNode=this.domNode},setValue:function(a){d.deprecated("dijit._TimePicker:setValue() is deprecated. Use set('value', ...) instead.","","2.0");this.set("value",
a)},_setValueAttr:function(a){this._set("value",a);this._showText()},_setFilterStringAttr:function(a){this._set("filterString",a);this._showText()},isDisabledDate:function(){return!1},_getFilteredNodes:function(a,b,c,d){a=[];for(b=0;b<this._maxIncrement;b++)(c=this._createOption(b))&&a.push(c);return a},_showText:function(){var a=q.fromISOString;this.domNode.innerHTML="";this._clickableIncrementDate=a(this.clickableIncrement);this._visibleIncrementDate=a(this.visibleIncrement);var b=3600*this._clickableIncrementDate.getHours()+
60*this._clickableIncrementDate.getMinutes()+this._clickableIncrementDate.getSeconds(),c=3600*this._visibleIncrementDate.getHours()+60*this._visibleIncrementDate.getMinutes()+this._visibleIncrementDate.getSeconds();(this.value||this.currentFocus).getTime();this._refDate=a("T00:00:00");this._refDate.setFullYear(1970,0,1);this._clickableIncrement=1;this._visibleIncrement=c/b;this._maxIncrement=86400/b;a=this._getFilteredNodes();l.forEach(a,function(a){this.domNode.appendChild(a)},this);!a.length&&this.filterString&&
(this.filterString="",this._showText())},constructor:function(){this.constraints={}},postMixInProperties:function(){this.inherited(arguments);this._setConstraintsAttr(this.constraints)},_setConstraintsAttr:function(a){for(var b in{clickableIncrement:1,visibleIncrement:1})b in a&&(this[b]=a[b]);a.locale||(a.locale=this.lang)},_createOption:function(a){var b=new Date(this._refDate),c=this._clickableIncrementDate;b.setHours(b.getHours()+c.getHours()*a,b.getMinutes()+c.getMinutes()*a,b.getSeconds()+c.getSeconds()*
a);"time"==this.constraints.selector&&b.setFullYear(1970,0,1);c=k.format(b,this.constraints);if(this.filterString&&0!==c.toLowerCase().indexOf(this.filterString))return null;var d=this.ownerDocument.createElement("div");d.className=this.baseClass+"Item";d.date=b;d.idx=a;e.create("div",{"class":this.baseClass+"ItemInner",innerHTML:c},d);1>a%this._visibleIncrement&&-1<a%this._visibleIncrement?g.add(d,this.baseClass+"Marker"):a%this._clickableIncrement||g.add(d,this.baseClass+"Tick");this.isDisabledDate(b)&&
g.add(d,this.baseClass+"ItemDisabled");this.value&&!n.compare(this.value,b,this.constraints.selector)&&(d.selected=!0,g.add(d,this.baseClass+"ItemSelected"),this._selectedDiv=d,g.contains(d,this.baseClass+"Marker")?g.add(d,this.baseClass+"MarkerSelected"):g.add(d,this.baseClass+"TickSelected"),this._highlightOption(d,!0));return d},onOpen:function(){this.inherited(arguments);this.set("selected",this._selectedDiv)},_onOptionSelected:function(a){if((a=a.target.date||a.target.parentNode.date)&&!this.isDisabledDate(a))this._highlighted_option=
null,this.set("value",a),this.onChange(a)},onChange:function(){},_highlightOption:function(a,b){if(a){if(b)this._highlighted_option&&this._highlightOption(this._highlighted_option,!1),this._highlighted_option=a;else{if(this._highlighted_option!==a)return;this._highlighted_option=null}g.toggle(a,this.baseClass+"ItemHover",b);g.contains(a,this.baseClass+"Marker")?g.toggle(a,this.baseClass+"MarkerHover",b):g.toggle(a,this.baseClass+"TickHover",b)}},handleKey:function(a){if(a.keyCode==b.DOWN_ARROW)return this.selectNextNode(),
a.stopPropagation(),a.preventDefault(),!1;if(a.keyCode==b.UP_ARROW)return this.selectPreviousNode(),a.stopPropagation(),a.preventDefault(),!1;if(a.keyCode==b.ENTER||a.keyCode===b.TAB){if(!this._keyboardSelected&&a.keyCode===b.TAB)return!0;this._highlighted_option&&this._onOptionSelected({target:this._highlighted_option});return a.keyCode===b.TAB}},onHover:function(a){this._highlightOption(a,!0)},onUnhover:function(a){this._highlightOption(a,!1)},onSelect:function(a){this._highlightOption(a,!0)},onDeselect:function(a){this._highlightOption(a,
!1)},onClick:function(a){this._onOptionSelected({target:a})}})})},"dojo/data/ItemFileReadStore":function(){define("../_base/kernel ../_base/lang ../_base/declare ../_base/array ../_base/xhr ../Evented ./util/filter ./util/simpleFetch ../date/stamp".split(" "),function(l,n,k,q,h,g,e,d,b){k=k("dojo.data.ItemFileReadStore",[g],{constructor:function(a){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=!1;this.url=this._ccUrl=this._jsonFileUrl=a.url;this._jsonData=a.data;this.data=
null;this._datatypeMap=a.typeMap||{};this._datatypeMap.Date||(this._datatypeMap.Date={type:Date,deserialize:function(a){return b.fromISOString(a)}});this._features={"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=!1;this._queuedFetches=[];void 0!==a.urlPreventCache&&(this.urlPreventCache=a.urlPreventCache?!0:!1);void 0!==a.hierarchical&&
(this.hierarchical=a.hierarchical?!0:!1);a.clearOnClose&&(this.clearOnClose=!0);"failOk"in a&&(this.failOk=a.failOk?!0:!1)},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:!1,urlPreventCache:!1,failOk:!1,hierarchical:!0,_assertIsItem:function(a){if(!this.isItem(a))throw Error(this.declaredClass+": Invalid item argument.");},_assertIsAttribute:function(a){if("string"!==typeof a)throw Error(this.declaredClass+": Invalid attribute argument.");},getValue:function(a,b,d){a=this.getValues(a,b);return 0<
a.length?a[0]:d},getValues:function(a,b){this._assertIsItem(a);this._assertIsAttribute(b);return(a[b]||[]).slice(0)},getAttributes:function(a){this._assertIsItem(a);var b=[],d;for(d in a)d!==this._storeRefPropName&&(d!==this._itemNumPropName&&d!==this._rootItemPropName&&d!==this._reverseRefMap)&&b.push(d);return b},hasAttribute:function(a,b){this._assertIsItem(a);this._assertIsAttribute(b);return b in a},containsValue:function(a,b,d){var g=void 0;"string"===typeof d&&(g=e.patternToRegExp(d,!1));return this._containsValue(a,
b,d,g)},_containsValue:function(a,b,d,e){return q.some(this.getValues(a,b),function(a){if(null!==a&&!n.isObject(a)&&e){if(a.toString().match(e))return!0}else if(d===a)return!0})},isItem:function(a){return a&&a[this._storeRefPropName]===this&&this._arrayOfAllItems[a[this._itemNumPropName]]===a?!0:!1},isItemLoaded:function(a){return this.isItem(a)},loadItem:function(a){this._assertIsItem(a.item)},getFeatures:function(){return this._features},getLabel:function(a){if(this._labelAttr&&this.isItem(a))return this.getValue(a,
this._labelAttr)},getLabelAttributes:function(a){return this._labelAttr?[this._labelAttr]:null},filter:function(a,b,d){var g=[],h,k;if(a.query){var l;h=a.queryOptions?a.queryOptions.ignoreCase:!1;var n={};for(k in a.query)l=a.query[k],"string"===typeof l?n[k]=e.patternToRegExp(l,h):l instanceof RegExp&&(n[k]=l);for(h=0;h<b.length;++h){var q=!0,A=b[h];if(null===A)q=!1;else for(k in a.query)l=a.query[k],this._containsValue(A,k,l,n[k])||(q=!1);q&&g.push(A)}}else for(h=0;h<b.length;++h)k=b[h],null!==
k&&g.push(k);d(g,a)},_fetchItems:function(a,b,d){var e=this;if(this._loadFinished)this.filter(a,this._getItemsArray(a.queryOptions),b);else if(this._jsonFileUrl!==this._ccUrl?(l.deprecated(this.declaredClass+": ","To change the url, set the url property of the store, not _jsonFileUrl. _jsonFileUrl support will be removed in 2.0"),this.url=this._ccUrl=this._jsonFileUrl):this.url!==this._ccUrl&&(this._ccUrl=this._jsonFileUrl=this.url),null!=this.data&&(this._jsonData=this.data,this.data=null),this._jsonFileUrl)if(this._loadInProgress)this._queuedFetches.push({args:a,
filter:n.hitch(e,"filter"),findCallback:n.hitch(e,b)});else{this._loadInProgress=!0;var g=h.get({url:e._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});g.addCallback(function(g){try{e._getItemsFromLoadedData(g),e._loadFinished=!0,e._loadInProgress=!1,e.filter(a,e._getItemsArray(a.queryOptions),b),e._handleQueuedFetches()}catch(h){e._loadFinished=!0,e._loadInProgress=!1,d(h,a)}});g.addErrback(function(b){e._loadInProgress=!1;d(b,a)});var k=null;a.abort&&
(k=a.abort);a.abort=function(){g&&-1===g.fired&&g.cancel();k&&k.call(a)}}else if(this._jsonData)try{this._loadFinished=!0,this._getItemsFromLoadedData(this._jsonData),this._jsonData=null,e.filter(a,this._getItemsArray(a.queryOptions),b)}catch(q){d(q,a)}else d(Error(this.declaredClass+": No JSON source data was provided as either URL or a nested Javascript object."),a)},_handleQueuedFetches:function(){if(0<this._queuedFetches.length){for(var a=0;a<this._queuedFetches.length;a++){var b=this._queuedFetches[a],
d=b.args,e=b.filter,b=b.findCallback;e?e(d,this._getItemsArray(d.queryOptions),b):this.fetchItemByIdentity(d)}this._queuedFetches=[]}},_getItemsArray:function(a){return a&&a.deep?this._arrayOfAllItems:this._arrayOfTopLevelItems},close:function(a){this.clearOnClose&&(this._loadFinished&&!this._loadInProgress)&&(this._arrayOfAllItems=[],this._arrayOfTopLevelItems=[],this._loadFinished=!1,this._itemsByIdentity=null,this._loadInProgress=!1,this._queuedFetches=[])},_getItemsFromLoadedData:function(a){function b(a){return null!==
a&&"object"===typeof a&&(!n.isArray(a)||e)&&!n.isFunction(a)&&(a.constructor==Object||n.isArray(a))&&"undefined"===typeof a._reference&&"undefined"===typeof a._type&&"undefined"===typeof a._value&&g.hierarchical}function d(a){g._arrayOfAllItems.push(a);for(var e in a){var m=a[e];if(m)if(n.isArray(m))for(var h=0;h<m.length;++h){var k=m[h];b(k)&&d(k)}else b(m)&&d(m)}}var e=!1,g=this;this._labelAttr=a.label;var h,k;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=a.items;for(h=0;h<this._arrayOfTopLevelItems.length;++h)k=
this._arrayOfTopLevelItems[h],n.isArray(k)&&(e=!0),d(k),k[this._rootItemPropName]=!0;var l={},q;for(h=0;h<this._arrayOfAllItems.length;++h)for(q in k=this._arrayOfAllItems[h],k){if(q!==this._rootItemPropName){var A=k[q];null!==A?n.isArray(A)||(k[q]=[A]):k[q]=[null]}l[q]=q}for(;l[this._storeRefPropName];)this._storeRefPropName+="_";for(;l[this._itemNumPropName];)this._itemNumPropName+="_";for(;l[this._reverseRefMap];)this._reverseRefMap+="_";if(l=a.identifier){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=
l;for(h=0;h<this._arrayOfAllItems.length;++h)if(k=this._arrayOfAllItems[h],a=k[l],a=a[0],Object.hasOwnProperty.call(this._itemsByIdentity,a)){if(this._jsonFileUrl)throw Error(this.declaredClass+": The json data as specified by: ["+this._jsonFileUrl+"] is malformed. Items within the list have identifier: ["+l+"]. Value collided: ["+a+"]");if(this._jsonData)throw Error(this.declaredClass+": The json data provided by the creation arguments is malformed. Items within the list have identifier: ["+
l+"]. Value collided: ["+a+"]");}else this._itemsByIdentity[a]=k}else this._features["dojo.data.api.Identity"]=Number;for(h=0;h<this._arrayOfAllItems.length;++h)k=this._arrayOfAllItems[h],k[this._storeRefPropName]=this,k[this._itemNumPropName]=h;for(h=0;h<this._arrayOfAllItems.length;++h)for(q in k=this._arrayOfAllItems[h],k){a=k[q];for(l=0;l<a.length;++l)if(A=a[l],null!==A&&"object"==typeof A){if("_type"in A&&"_value"in A){var y=A._type,w=this._datatypeMap[y];if(w)if(n.isFunction(w))a[l]=new w(A._value);
else if(n.isFunction(w.deserialize))a[l]=w.deserialize(A._value);else throw Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");else throw Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+y+"'");}if(A._reference){A=A._reference;if(n.isObject(A))for(y=0;y<this._arrayOfAllItems.length;++y){var w=this._arrayOfAllItems[y],z=!0,x;for(x in A)w[x]!=A[x]&&
(z=!1);z&&(a[l]=w)}else a[l]=this._getItemByIdentity(A);this.referenceIntegrity&&(A=a[l],this.isItem(A)&&this._addReferenceToMap(A,k,q))}else this.isItem(A)&&this.referenceIntegrity&&this._addReferenceToMap(A,k,q)}}},_addReferenceToMap:function(a,b,d){},getIdentity:function(a){var b=this._features["dojo.data.api.Identity"];return b===Number?a[this._itemNumPropName]:(a=a[b])?a[0]:null},fetchItemByIdentity:function(a){var b,d;if(this._loadFinished)b=this._getItemByIdentity(a.identity),a.onItem&&(d=
a.scope?a.scope:l.global,a.onItem.call(d,b));else{var e=this;this._jsonFileUrl!==this._ccUrl?(l.deprecated(this.declaredClass+": ","To change the url, set the url property of the store, not _jsonFileUrl. _jsonFileUrl support will be removed in 2.0"),this.url=this._ccUrl=this._jsonFileUrl):this.url!==this._ccUrl&&(this._ccUrl=this._jsonFileUrl=this.url);null!=this.data&&null==this._jsonData&&(this._jsonData=this.data,this.data=null);this._jsonFileUrl?this._loadInProgress?this._queuedFetches.push({args:a}):
(this._loadInProgress=!0,d=h.get({url:e._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk}),d.addCallback(function(d){var f=a.scope?a.scope:l.global;try{e._getItemsFromLoadedData(d),e._loadFinished=!0,e._loadInProgress=!1,b=e._getItemByIdentity(a.identity),a.onItem&&a.onItem.call(f,b),e._handleQueuedFetches()}catch(g){e._loadInProgress=!1,a.onError&&a.onError.call(f,g)}}),d.addErrback(function(b){e._loadInProgress=!1;a.onError&&a.onError.call(a.scope?
a.scope:l.global,b)})):this._jsonData&&(e._getItemsFromLoadedData(e._jsonData),e._jsonData=null,e._loadFinished=!0,b=e._getItemByIdentity(a.identity),a.onItem&&(d=a.scope?a.scope:l.global,a.onItem.call(d,b)))}},_getItemByIdentity:function(a){var b=null;this._itemsByIdentity?Object.hasOwnProperty.call(this._itemsByIdentity,a)&&(b=this._itemsByIdentity[a]):Object.hasOwnProperty.call(this._arrayOfAllItems,a)&&(b=this._arrayOfAllItems[a]);void 0===b&&(b=null);return b},getIdentityAttributes:function(a){a=
this._features["dojo.data.api.Identity"];return a===Number?null:[a]},_forceLoad:function(){var a=this;this._jsonFileUrl!==this._ccUrl?(l.deprecated(this.declaredClass+": ","To change the url, set the url property of the store, not _jsonFileUrl. _jsonFileUrl support will be removed in 2.0"),this.url=this._ccUrl=this._jsonFileUrl):this.url!==this._ccUrl&&(this._ccUrl=this._jsonFileUrl=this.url);null!=this.data&&(this._jsonData=this.data,this.data=null);if(this._jsonFileUrl){var b=h.get({url:this._jsonFileUrl,
handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:!0});b.addCallback(function(b){try{if(!0!==a._loadInProgress&&!a._loadFinished)a._getItemsFromLoadedData(b),a._loadFinished=!0;else if(a._loadInProgress)throw Error(this.declaredClass+": Unable to perform a synchronous load, an async load is in progress.");}catch(c){throw c;}});b.addErrback(function(a){throw a;})}else this._jsonData&&(a._getItemsFromLoadedData(a._jsonData),a._jsonData=null,a._loadFinished=
!0)}});n.extend(k,d);return k})},"dojo/data/util/filter":function(){define(["../../_base/lang"],function(l){var n={};l.setObject("dojo.data.util.filter",n);n.patternToRegExp=function(k,l){for(var h="^",g=null,e=0;e<k.length;e++)switch(g=k.charAt(e),g){case "\\":h+=g;e++;h+=k.charAt(e);break;case "*":h+=".*";break;case "?":h+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":h+="\\";default:h+=g}h+="$";return l?RegExp(h,"mi"):RegExp(h,
"m")};return n})},"dojo/data/util/simpleFetch":function(){define(["../../_base/lang","../../_base/kernel","./sorter"],function(l,n,k){var q={};l.setObject("dojo.data.util.simpleFetch",q);q.errorHandler=function(h,g){g.onError&&g.onError.call(g.scope||n.global,h,g)};q.fetchHandler=function(h,g){var e=g.abort||null,d=!1,b=g.start?g.start:0,a=g.count&&Infinity!==g.count?b+g.count:h.length;g.abort=function(){d=!0;e&&e.call(g)};var c=g.scope||n.global;g.store||(g.store=this);g.onBegin&&g.onBegin.call(c,
h.length,g);g.sort&&h.sort(k.createSortFunction(g.sort,this));if(g.onItem)for(var f=b;f<h.length&&f<a;++f){var m=h[f];d||g.onItem.call(c,m,g)}g.onComplete&&!d&&(f=null,g.onItem||(f=h.slice(b,a)),g.onComplete.call(c,f,g))};q.fetch=function(h){h=h||{};h.store||(h.store=this);this._fetchItems(h,l.hitch(this,"fetchHandler"),l.hitch(this,"errorHandler"));return h};return q})},"dojo/data/util/sorter":function(){define(["../../_base/lang"],function(l){var n={};l.setObject("dojo.data.util.sorter",n);n.basicComparator=
function(k,l){var h=-1;null===k&&(k=void 0);null===l&&(l=void 0);if(k==l)h=0;else if(k>l||null==k)h=1;return h};n.createSortFunction=function(k,l){function h(a,b,c,d){return function(f,e){var g=d.getValue(f,a),h=d.getValue(e,a);return b*c(g,h)}}for(var g=[],e,d=l.comparatorMap,b=n.basicComparator,a=0;a<k.length;a++){e=k[a];var c=e.attribute;if(c){e=e.descending?-1:1;var f=b;d&&("string"!==typeof c&&"toString"in c&&(c=c.toString()),f=d[c]||b);g.push(h(c,e,f,l))}}return function(a,b){for(var c=0;c<
g.length;){var d=g[c++](a,b);if(0!==d)return d}return 0}};return n})},"dojox/date/islamic":function(){define(["..","dojo/_base/lang","dojo/date","./islamic/Date"],function(l,n,k,q){var h=n.getObject("date.islamic",!0,l);h.getDaysInMonth=function(g){return g.getDaysInIslamicMonth(g.getMonth(),g.getFullYear())};h.compare=function(g,e,d){g instanceof q&&(g=g.toGregorian());e instanceof q&&(e=e.toGregorian());return k.compare.apply(null,arguments)};h.add=function(g,e,d){var b=new q(g);switch(e){case "day":b.setDate(g.getDate()+
d);break;case "weekday":var a=g.getDay();if(5>a+d&&0<a+d)b.setDate(g.getDate()+d);else{var c=e=0;5==a?(a=4,c=0<d?-1:1):6==a&&(a=4,c=0<d?-2:2);var a=0<d?5-a-1:-a,f=d-a,m=parseInt(f/5);0!=f%5&&(e=0<d?2:-2);b.setDate(g.getDate()+(e+7*m+f%5+a)+c)}break;case "year":b.setFullYear(g.getFullYear()+d);break;case "week":b.setDate(g.getDate()+7*d);break;case "month":g=g.getMonth();b.setMonth(g+d);break;case "hour":b.setHours(g.getHours()+d);break;case "minute":b._addMinutes(d);break;case "second":b._addSeconds(d);
break;case "millisecond":b._addMilliseconds(d)}return b};h.difference=function(g,e,d){e=e||new q;d=d||"day";var b=e.getFullYear()-g.getFullYear(),a=1;switch(d){case "weekday":b=Math.round(h.difference(g,e,"day"));a=parseInt(h.difference(g,e,"week"));d=b%7;if(0==d)b=5*a;else{var c=0,f=g.getDay();e=e.getDay();a=parseInt(b/7);d=b%7;g=new q(g);g.setDate(g.getDate()+7*a);g=g.getDay();if(0<b)switch(!0){case 5==f:c=-1;break;case 6==f:c=0;break;case 5==e:c=-1;break;case 6==e:c=-2;break;case 5<g+d:c=-2}else if(0>
b)switch(!0){case 5==f:c=0;break;case 6==f:c=1;break;case 5==e:c=2;break;case 6==e:c=1;break;case 0>g+d:c=2}b=b+c-2*a}a=b;break;case "year":a=b;break;case "month":d=e.toGregorian()>g.toGregorian()?e:g;c=e.toGregorian()>g.toGregorian()?g:e;a=d.getMonth();f=c.getMonth();if(0==b)a=d.getMonth()-c.getMonth();else{a=12-f+a;b=c.getFullYear()+1;d=d.getFullYear();for(b;b<d;b++)a+=12}e.toGregorian()<g.toGregorian()&&(a=-a);break;case "week":a=parseInt(h.difference(g,e,"day")/7);break;case "day":a/=24;case "hour":a/=
60;case "minute":a/=60;case "second":a/=1E3;case "millisecond":a*=e.toGregorian().getTime()-g.toGregorian().getTime()}return Math.round(a)};return h})},"dojox/main":function(){define(["dojo/_base/kernel"],function(l){return l.dojox})},"dojox/date/islamic/Date":function(){define(["dojo/_base/lang","dojo/_base/declare","dojo/date"],function(l,n,k){var q=n("dojox.date.islamic.Date",null,{_date:0,_month:0,_year:0,_hours:0,_minutes:0,_seconds:0,_milliseconds:0,_day:0,_GREGORIAN_EPOCH:1721425.5,_ISLAMIC_EPOCH:1948439.5,
constructor:function(){var h=arguments.length;h?1==h?(h=arguments[0],"number"==typeof h&&(h=new Date(h)),h instanceof Date?this.fromGregorian(h):""==h?this._date=new Date(""):(this._year=h._year,this._month=h._month,this._date=h._date,this._hours=h._hours,this._minutes=h._minutes,this._seconds=h._seconds,this._milliseconds=h._milliseconds)):3<=h&&(this._year+=arguments[0],this._month+=arguments[1],this._date+=arguments[2],this._hours+=arguments[3]||0,this._minutes+=arguments[4]||0,this._seconds+=
arguments[5]||0,this._milliseconds+=arguments[6]||0):this.fromGregorian(new Date)},getDate:function(){return this._date},getMonth:function(){return this._month},getFullYear:function(){return this._year},getDay:function(){return this.toGregorian().getDay()},getHours:function(){return this._hours},getMinutes:function(){return this._minutes},getSeconds:function(){return this._seconds},getMilliseconds:function(){return this._milliseconds},setDate:function(h){h=parseInt(h);if(!(0<h&&h<=this.getDaysInIslamicMonth(this._month,
this._year))){var g;if(0<h)for(g=this.getDaysInIslamicMonth(this._month,this._year);h>g;h-=g,g=this.getDaysInIslamicMonth(this._month,this._year))this._month++,12<=this._month&&(this._year++,this._month-=12);else for(g=this.getDaysInIslamicMonth(0<=this._month-1?this._month-1:11,0<=this._month-1?this._year:this._year-1);0>=h;g=this.getDaysInIslamicMonth(0<=this._month-1?this._month-1:11,0<=this._month-1?this._year:this._year-1))this._month--,0>this._month&&(this._year--,this._month+=12),h+=g}this._date=
h;return this},setFullYear:function(h){this._year=+h},setMonth:function(h){this._year+=Math.floor(h/12);this._month=0<h?Math.floor(h%12):Math.floor((h%12+12)%12)},setHours:function(){var h=arguments.length,g=0;1<=h&&(g=parseInt(arguments[0]));2<=h&&(this._minutes=parseInt(arguments[1]));3<=h&&(this._seconds=parseInt(arguments[2]));4==h&&(this._milliseconds=parseInt(arguments[3]));for(;24<=g;)this._date++,h=this.getDaysInIslamicMonth(this._month,this._year),this._date>h&&(this._month++,12<=this._month&&
(this._year++,this._month-=12),this._date-=h),g-=24;this._hours=g},_addMinutes:function(h){h+=this._minutes;this.setMinutes(h);this.setHours(this._hours+parseInt(h/60));return this},_addSeconds:function(h){h+=this._seconds;this.setSeconds(h);this._addMinutes(parseInt(h/60));return this},_addMilliseconds:function(h){h+=this._milliseconds;this.setMilliseconds(h);this._addSeconds(parseInt(h/1E3));return this},setMinutes:function(h){this._minutes=h%60;return this},setSeconds:function(h){this._seconds=
h%60;return this},setMilliseconds:function(h){this._milliseconds=h%1E3;return this},toString:function(){if(isNaN(this._date))return"Invalidate Date";var h=new Date;h.setHours(this._hours);h.setMinutes(this._minutes);h.setSeconds(this._seconds);h.setMilliseconds(this._milliseconds);return this._month+" "+this._date+" "+this._year+" "+h.toTimeString()},toGregorian:function(){var h=this._year,h=this._date+Math.ceil(29.5*this._month)+354*(h-1)+Math.floor((3+11*h)/30)+this._ISLAMIC_EPOCH-1,h=Math.floor(h-
0.5)+0.5,g=h-this._GREGORIAN_EPOCH,e=Math.floor(g/146097),d=this._mod(g,146097),g=Math.floor(d/36524),b=this._mod(d,36524),d=Math.floor(b/1461),b=this._mod(b,1461),b=Math.floor(b/365),e=400*e+100*g+4*d+b;4==g||4==b||e++;g=h-(this._GREGORIAN_EPOCH+365*(e-1)+Math.floor((e-1)/4)-Math.floor((e-1)/100)+Math.floor((e-1)/400));d=this._GREGORIAN_EPOCH-1+365*(e-1)+Math.floor((e-1)/4)-Math.floor((e-1)/100)+Math.floor((e-1)/400)+Math.floor(739/12+(k.isLeapYear(new Date(e,3,1))?-1:-2)+1);d=h<d?0:k.isLeapYear(new Date(e,
3,1))?1:2;g=Math.floor((12*(g+d)+373)/367);d=this._GREGORIAN_EPOCH-1+365*(e-1)+Math.floor((e-1)/4)-Math.floor((e-1)/100)+Math.floor((e-1)/400)+Math.floor((367*g-362)/12+(2>=g?0:k.isLeapYear(new Date(e,g,1))?-1:-2)+1);return new Date(e,g-1,h-d+1,this._hours,this._minutes,this._seconds,this._milliseconds)},fromGregorian:function(h){h=new Date(h);var g=h.getFullYear(),e=h.getMonth(),d=h.getDate(),g=this._GREGORIAN_EPOCH-1+365*(g-1)+Math.floor((g-1)/4)+-Math.floor((g-1)/100)+Math.floor((g-1)/400)+Math.floor((367*
(e+1)-362)/12+(2>=e+1?0:k.isLeapYear(h)?-1:-2)+d),g=Math.floor(g)+0.5,g=g-this._ISLAMIC_EPOCH,e=Math.floor((30*g+10646)/10631),d=Math.ceil((g-29-this._yearStart(e))/29.5),d=Math.min(d,11);this._date=Math.ceil(g-this._monthStart(e,d))+1;this._month=d;this._year=e;this._hours=h.getHours();this._minutes=h.getMinutes();this._seconds=h.getSeconds();this._milliseconds=h.getMilliseconds();this._day=h.getDay();return this},valueOf:function(){return this.toGregorian().valueOf()},_yearStart:function(h){return 354*
(h-1)+Math.floor((3+11*h)/30)},_monthStart:function(h,g){return Math.ceil(29.5*g)+354*(h-1)+Math.floor((3+11*h)/30)},_civilLeapYear:function(h){return 11>(14+11*h)%30},getDaysInIslamicMonth:function(h,g){var e=0,e=29+(h+1)%2;11==h&&this._civilLeapYear(g)&&e++;return e},_mod:function(h,g){return h-g*Math.floor(h/g)}});q.getDaysInIslamicMonth=function(h){return(new q).getDaysInIslamicMonth(h.getMonth(),h.getFullYear())};return q})},"dojox/date/islamic/locale":function(){define("../.. dojo/_base/lang dojo/_base/array dojo/date dojo/i18n dojo/regexp dojo/string ./Date dojo/i18n!dojo/cldr/nls/islamic".split(" "),
function(l,n,k,q,h,g,e,d,b){function a(a,b,c,d,f){return f.replace(/([a-z])\1*/ig,function(c){var d,g,m=c.charAt(0);c=c.length;var h=["abbr","wide","narrow"];switch(m){case "G":d=b.eraAbbr[0];break;case "y":d=String(a.getFullYear());break;case "M":d=a.getMonth();3>c?(d+=1,g=!0):(m=["months-format",h[c-3]].join("-"),d=b[m][d]);break;case "d":d=a.getDate(!0);g=!0;break;case "E":d=a.getDay();3>c?(d+=1,g=!0):(m=["days-format",h[c-3]].join("-"),d=b[m][d]);break;case "a":d=12>a.getHours()?"am":"pm";d=b["dayPeriods-format-wide-"+
d];break;case "h":case "H":case "K":case "k":g=a.getHours();switch(m){case "h":d=g%12||12;break;case "H":d=g;break;case "K":d=g%12;break;case "k":d=g||24}g=!0;break;case "m":d=a.getMinutes();g=!0;break;case "s":d=a.getSeconds();g=!0;break;case "S":d=Math.round(a.getMilliseconds()*Math.pow(10,c-3));g=!0;break;case "z":if(d=q.getTimezoneName(a.toGregorian()))break;c=4;case "Z":d=a.toGregorian().getTimezoneOffset();d=[0>=d?"+":"-",e.pad(Math.floor(Math.abs(d)/60),2),e.pad(Math.abs(d)%60,2)];4==c&&(d.splice(0,
0,"GMT"),d.splice(3,0,":"));d=d.join("");break;default:throw Error("dojox.date.islamic.locale.formatPattern: invalid pattern char: "+f);}g&&(d=e.pad(d,c));return d})}function c(a,b,c,d){var f=function(a){return a};b=b||f;c=c||f;d=d||f;var e=a.match(/(''|[^'])+/g),g="'"==a.charAt(0);k.forEach(e,function(a,d){a?(e[d]=(g?c:b)(a),g=!g):e[d]=""});return d(e.join(""))}function f(a,b,c,d){d=g.escapeString(d);h.normalizeLocale(c.locale);return d.replace(/([a-z])\1*/ig,function(d){var f;f=d.charAt(0);var e=
d.length,g="";c.strict?1<e&&(g="0{"+(e-1)+"}"):g="0?";switch(f){case "y":f="\\d+";break;case "M":f=2<e?"\\S+ ?\\S+":g+"[1-9]|1[0-2]";break;case "d":f="[12]\\d|"+g+"[1-9]|3[01]";break;case "E":f="\\S+";break;case "h":f=g+"[1-9]|1[0-2]";break;case "k":f=g+"\\d|1[01]";break;case "H":f=g+"\\d|1\\d|2[0-3]";break;case "K":f=g+"[1-9]|1\\d|2[0-4]";break;case "m":case "s":f=g+"\\d|[0-5]\\d";break;case "S":f="\\d{"+e+"}";break;case "a":e=c.am||b["dayPeriods-format-wide-am"];g=c.pm||b["dayPeriods-format-wide-pm"];
c.strict?f=e+"|"+g:(f=e+"|"+g,e!=e.toLowerCase()&&(f+="|"+e.toLowerCase()),g!=g.toLowerCase()&&(f+="|"+g.toLowerCase()));break;default:f=".*"}a&&a.push(d);return"("+f+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}var m=n.getObject("date.islamic.locale",!0,l);m.format=function(b,d){d=d||{};var f=h.normalizeLocale(d.locale),e=d.formatLength||"short",g=m._getIslamicBundle(f),k=[],f=n.hitch(this,a,b,g,f,d.fullYear);if("year"==d.selector)return b.getFullYear();if("time"!=d.selector){var l=d.datePattern||g["dateFormat-"+
e];l&&k.push(c(l,f))}"date"!=d.selector&&(e=d.timePattern||g["timeFormat-"+e])&&k.push(c(e,f));return k.join(" ")};m.regexp=function(a){return m._parseInfo(a).regexp};m._parseInfo=function(a){a=a||{};var b=h.normalizeLocale(a.locale),b=m._getIslamicBundle(b),d=a.formatLength||"short",e=a.datePattern||b["dateFormat-"+d],d=a.timePattern||b["timeFormat-"+d],g=[];return{regexp:c("date"==a.selector?e:"time"==a.selector?d:"undefined"==typeof d?e:e+" "+d,n.hitch(this,f,g,b,a)),tokens:g,bundle:b}};m.parse=
function(a,b){a=a.replace(/[\u200E\u200F\u202A\u202E]/g,"");b||(b={});var c=m._parseInfo(b),f=c.tokens,e=c.bundle,c=c.regexp.replace(/[\u200E\u200F\u202A\u202E]/g,""),c=RegExp("^"+c+"$").exec(a);h.normalizeLocale(b.locale);if(!c)return null;var g=[1389,0,1,0,0,0,0],l="",n=["abbr","wide","narrow"];k.every(c,function(a,c){if(!c)return!0;var d=f[c-1],m=d.length;switch(d.charAt(0)){case "y":g[0]=Number(a);break;case "M":if(2<m){if(d=e["months-format-"+n[m-3]].concat(),b.strict||(a=a.replace(".","").toLowerCase(),
d=k.map(d,function(a){return a?a.replace(".","").toLowerCase():a})),a=k.indexOf(d,a),-1==a)return!1}else a--;g[1]=Number(a);break;case "D":g[1]=0;case "d":g[2]=Number(a);break;case "a":d=b.am||e["dayPeriods-format-wide-am"];m=b.pm||e["dayPeriods-format-wide-pm"];if(!b.strict){var h=/\./g;a=a.replace(h,"").toLowerCase();d=d.replace(h,"").toLowerCase();m=m.replace(h,"").toLowerCase()}if(b.strict&&a!=d&&a!=m)return!1;l=a==m?"p":a==d?"a":"";break;case "K":24==a&&(a=0);case "h":case "H":case "k":g[3]=
Number(a);break;case "m":g[4]=Number(a);break;case "s":g[5]=Number(a);break;case "S":g[6]=Number(a)}return!0});c=+g[3];"p"===l&&12>c?g[3]=c+12:"a"===l&&12==c&&(g[3]=0);return new d(g[0],g[1],g[2],g[3],g[4],g[5],g[6])};var s=[];m.addCustomFormats=function(a,b){s.push({pkg:a,name:b})};m._getIslamicBundle=function(a){var b={};k.forEach(s,function(c){c=h.getLocalization(c.pkg,c.name,a);b=n.mixin(b,c)},this);return b};m.addCustomFormats("dojo.cldr","islamic");m.getNames=function(a,b,c,d,f){var e;d=m._getIslamicBundle(d);
a=[a,c,b];"standAlone"==c&&(c=a.join("-"),e=d[c],1==e[0]&&(e=void 0));a[1]="format";return(e||d[a.join("-")]).concat()};m.weekDays=m.getNames("days","wide","format");m.months=m.getNames("months","wide","format");return m})},"dojo/NodeList-traverse":function(){define(["./query","./_base/lang","./_base/array"],function(l,n,k){var q=l.NodeList;n.extend(q,{_buildArrayFromCallback:function(h){for(var g=[],e=0;e<this.length;e++){var d=h.call(this[e],this[e],g);d&&(g=g.concat(d))}return g},_getUniqueAsNodeList:function(h){for(var g=
[],e=0,d;d=h[e];e++)1==d.nodeType&&-1==k.indexOf(g,d)&&g.push(d);return this._wrap(g,null,this._NodeListCtor)},_getUniqueNodeListWithParent:function(h,g){var e=this._getUniqueAsNodeList(h),e=g?l._filterResult(e,g):e;return e._stash(this)},_getRelatedUniqueNodes:function(h,g){return this._getUniqueNodeListWithParent(this._buildArrayFromCallback(g),h)},children:function(h){return this._getRelatedUniqueNodes(h,function(g,e){return n._toArray(g.childNodes)})},closest:function(h,g){return this._getRelatedUniqueNodes(null,
function(e,d){do if(l._filterResult([e],h,g).length)return e;while(e!=g&&(e=e.parentNode)&&1==e.nodeType);return null})},parent:function(h){return this._getRelatedUniqueNodes(h,function(g,e){return g.parentNode})},parents:function(h){return this._getRelatedUniqueNodes(h,function(g,e){for(var d=[];g.parentNode;)g=g.parentNode,d.push(g);return d})},siblings:function(h){return this._getRelatedUniqueNodes(h,function(g,e){for(var d=[],b=g.parentNode&&g.parentNode.childNodes,a=0;a<b.length;a++)b[a]!=g&&
d.push(b[a]);return d})},next:function(h){return this._getRelatedUniqueNodes(h,function(g,e){for(var d=g.nextSibling;d&&1!=d.nodeType;)d=d.nextSibling;return d})},nextAll:function(h){return this._getRelatedUniqueNodes(h,function(g,e){for(var d=[],b=g;b=b.nextSibling;)1==b.nodeType&&d.push(b);return d})},prev:function(h){return this._getRelatedUniqueNodes(h,function(g,e){for(var d=g.previousSibling;d&&1!=d.nodeType;)d=d.previousSibling;return d})},prevAll:function(h){return this._getRelatedUniqueNodes(h,
function(g,e){for(var d=[],b=g;b=b.previousSibling;)1==b.nodeType&&d.push(b);return d})},andSelf:function(){return this.concat(this._parent)},first:function(){return this._wrap(this[0]&&[this[0]]||[],this)},last:function(){return this._wrap(this.length?[this[this.length-1]]:[],this)},even:function(){return this.filter(function(h,g){return 0!=g%2})},odd:function(){return this.filter(function(h,g){return 0==g%2})}});return q})},"esri/arcgis/utils":function(){define("require dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/Deferred dojo/_base/json dojo/_base/url dojo/on dojo/DeferredList dojo/dom-construct ../kernel ../config ../lang ../request ../SpatialReference ../map ../urlUtils ../geometry/ScreenPoint ../geometry/Extent ../geometry/webMercatorUtils ../symbols/jsonUtils ../renderers/jsonUtils ../dijit/PopupTemplate ../dijit/Popup ../tasks/query ../tasks/GeometryService ../layers/ArcGISTiledMapServiceLayer ../layers/FeatureLayer dojo/i18n!../nls/jsapi".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v,A,y,w,z,x,B,D,C,F,I,E){function L(a){return s({url:ga.arcgisUrl+"/"+a.itemId+"/data",content:{f:"json"},callbackParamName:"callback"},{disableIdentityLookup:!0,_preLookup:!0})}function G(a,b){var c={f:"json"};b&&(c.token=b);return s({url:a,content:c,callbackParamName:"callback"},{disableIdentityLookup:!0})}function K(a){a.itemProperties.layerDefinition&&(a.layerDefinition?(a.layerDefinition.drawingInfo||(a.layerDefinition.drawingInfo=a.itemProperties.layerDefinition.drawingInfo),
m.isDefined(a.layerDefinition.definitionExpression)||(a.layerDefinition.definitionExpression=a.itemProperties.layerDefinition.definitionExpression),m.isDefined(a.layerDefinition.minScale)||(a.layerDefinition.minScale=a.itemProperties.layerDefinition.minScale),m.isDefined(a.layerDefinition.maxScale)||(a.layerDefinition.maxScale=a.itemProperties.layerDefinition.maxScale)):a.layerDefinition=a.itemProperties.layerDefinition);a.itemProperties.popupInfo&&(!a.popupInfo&&!a.disablePopup)&&(a.popupInfo=a.itemProperties.popupInfo);
m.isDefined(a.itemProperties.showLabels)&&!m.isDefined(a.showLabels)&&(a.showLabels=a.itemProperties.showLabels);m.isDefined(a.itemProperties.showLegend)&&!m.isDefined(a.showLegend)&&(a.showLegend=a.itemProperties.showLegend);m.isDefined(a.itemProperties.refreshInterval)&&!m.isDefined(a.refreshInterval)&&(a.refreshInterval=a.itemProperties.refreshInterval)}function J(a){K(a);a.itemProperties.layerDefinition&&a.layerDefinition&&(!m.isDefined(a.layerDefinition.maximumTrackPoints)&&m.isDefined(a.itemProperties.layerDefinition.maximumTrackPoints)&&
(a.layerDefinition.maximumTrackPoints=a.itemProperties.layerDefinition.maximumTrackPoints),!a.layerDefinition.definitionGeometry&&a.itemProperties.layerDefinition.definitionGeometry&&(a.layerDefinition.definitionGeometry=a.itemProperties.layerDefinition.definitionGeometry));a.itemProperties.purgeOptions&&!a.purgeOptions&&(a.purgeOptions=a.itemProperties.purgeOptions)}function H(a,c){var d=new h,f=a.itemData,e=[],g=[];k.forEach(f.operationalLayers,function(a){if(a.itemId&&!a.type){var b=a.url.toLowerCase();
-1<b.indexOf("/featureserver")||-1<b.indexOf("/mapserver/")?(g.push(a),e.push(L(a))):-1<b.indexOf("/mapserver")&&-1===b.indexOf("/mapserver/")&&(!a.layers||!m.isDefined(a.minScale)&&!m.isDefined(a.maxScale))?(g.push(a),e.push(L(a))):-1<b.indexOf("/imageserver")&&!m.isDefined(a.minScale)&&!m.isDefined(a.maxScale)?(g.push(a),e.push(L(a))):-1<b.indexOf("/streamserver")&&(g.push(a),e.push(L(a)))}});f.baseMap&&f.baseMap.baseMapLayers&&k.forEach(f.baseMap.baseMapLayers,function(a){a.itemId&&(g.push(a),
e.push(L(a)))});if(0<e.length){var l={};(new b(e)).addCallback(function(b){k.forEach(g,function(a,c){var d=b[c][1];if(d&&!(d instanceof Error)&&(l[a.itemId]=d,!a.type)){var f=a.url.toLowerCase();if((-1<f.indexOf("/featureserver")||-1<f.indexOf("/mapserver/"))&&d.layers)k.forEach(d.layers,function(b){if(f.endsWith("/featureserver/"+b.id)||f.endsWith("/mapserver/"+b.id))a.itemProperties=b,K(a)});else if(-1<f.indexOf("/streamserver"))a.itemProperties=d,J(a);else if(-1<f.indexOf("/mapserver"))d.layers&&
!a.layers&&(a.layers=d.layers),m.isDefined(d.minScale)&&!m.isDefined(a.minScale)&&(a.minScale=d.minScale),m.isDefined(d.maxScale)&&!m.isDefined(a.maxScale)&&(a.maxScale=d.maxScale),m.isDefined(d.refreshInterval)&&!m.isDefined(a.refreshInterval)&&(a.refreshInterval=d.refreshInterval);else if(-1<f.indexOf("/imageserver")&&(m.isDefined(d.minScale)&&!m.isDefined(a.minScale)&&(a.minScale=d.minScale),m.isDefined(d.maxScale)&&!m.isDefined(a.maxScale)&&(a.maxScale=d.maxScale),m.isDefined(d.refreshInterval)&&
!m.isDefined(a.refreshInterval)&&(a.refreshInterval=d.refreshInterval),d.popupInfo&&(!a.popupInfo&&!a.disablePopup)&&(a.popupInfo=d.popupInfo),d.renderingRule&&!a.renderingRule&&(a.renderingRule=d.renderingRule,d.renderingRule.functionName&&(a.renderingRule.rasterFunction=d.renderingRule.functionName)),d.bandIds&&!a.bandIds&&(a.bandIds=d.bandIds),d.mosaicRule&&!a.mosaicRule&&(a.mosaicRule=d.mosaicRule),d.format&&!a.format&&(a.format=d.format),m.isDefined(d.compressionQuality)&&!m.isDefined(a.compressionQuality)&&
(a.compressionQuality=d.compressionQuality),d.layerDefinition&&d.layerDefinition.definitionExpression&&(!m.isDefined(a.layerDefinition)||!m.isDefined(a.layerDefinition.definitionExpression))))a.layerDefinition=a.layerDefinition||{},a.layerDefinition.definitionExpression=d.layerDefinition.definitionExpression}});a.relatedItemsData=l;d.callback(a)})}else d.callback(a);return d}function M(a,b){var d=new h,f=a.itemData,e=f.baseMap.baseMapLayers[0];if("BingMapsAerial"===e.type||"BingMapsRoad"===e.type||
"BingMapsHybrid"===e.type)if(e.portalUrl&&c.id)delete b.bingMapsKey,c.id.checkSignInStatus(u.urlToObject(ga.arcgisUrl).path).then(n.hitch(null,function(a,b,c,d,f){G(e.portalUrl,f.token).then(n.hitch(null,N,a,b,c,d),n.hitch(null,O,a,b,c,d))},a,b,f,d),n.hitch(null,function(a,b,c,d,f){G(e.portalUrl).then(n.hitch(null,N,a,b,c,d),n.hitch(null,O,a,b,c,d))},a,b,f,d));else if(b.bingMapsKey){var g=new ia({bingMapsKey:b.bingMapsKey,mapStyle:ia.MAP_STYLE_AERIAL});q.connect(g,"onLoad",n.hitch(this,function(){d.callback([a,
b])}));q.connect(g,"onError",function(c){delete b.bingMapsKey;a.itemData=P(f);e=a.itemData.baseMap.baseMapLayers[0];e.errors=[];e.errors.push({message:"The owner of the application has not provided a valid Bing Key for the Bing Map it includes. Switching to Esri layers."});d.callback([a,b])})}else a.itemData=P(f),e=a.itemData.baseMap.baseMapLayers[0],e.errors=[],e.errors.push({message:"The owner of the application has not provided a Bing Key for the Bing Map it includes. Switching to Esri layers."}),
d.callback([a,b]);else d.callback([a,b]);return d}function N(a,b,c,d,f){f.bingKey?(b.bingMapsKey=f.bingKey,f=new ia({bingMapsKey:b.bingMapsKey,mapStyle:ia.MAP_STYLE_AERIAL}),q.connect(f,"onLoad",n.hitch(this,function(){d.callback([a,b])})),q.connect(f,"onError",function(f){delete b.bingMapsKey;a.itemData=P(c);f=a.itemData.baseMap.baseMapLayers[0];f.errors=[];f.errors.push({message:"The owner of the map has not provided a valid Bing Key for the Bing Map it includes. Switching to Esri layers."});d.callback([a,
b])})):O(a,b,c,d)}function O(a,b,c,d){delete b.bingMapsKey;a.itemData=P(c);c=a.itemData.baseMap.baseMapLayers[0];c.errors=[];c.errors.push({message:"The owner of the map has not provided a Bing Key for the Bing Map it includes. Switching to Esri layers."});d.callback([a,b])}function P(a){a.baseMap="BingMapsAerial"===a.baseMap.baseMapLayers[0].type?{title:"Imagery",baseMapLayers:[{id:"World_Imagery_2017",visibility:!0,opacity:1,url:"http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"}]}:
"BingMapsRoad"===a.baseMap.baseMapLayers[0].type?{title:"Streets",baseMapLayers:[{id:"World_Street_Map_8421",opacity:1,visibility:!0,url:"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"}]}:{title:"Imagery with Labels",baseMapLayers:[{id:"World_Imagery_6611",opacity:1,visibility:!0,url:"http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"},{id:"World_Boundaries_and_Places_1145",isReference:!0,opacity:1,visibility:!0,url:"http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer"}]};
return a}function Q(a,b,c,d){var f=a.dynamicLayerInfos||a.layerInfos,e=b.layers;if(e&&f)if(d.usePopupManager){var g;k.forEach(f,function(a){var b=a.id;if(!a.subLayerIds)for(a=0;a<e.length;a++){var d=e[a];if(d.id===b&&d.popupInfo){g||(g={});g[b]={infoTemplate:new c(d.popupInfo),layerUrl:d.layerUrl};break}}});g&&a.setInfoTemplates(g)}else{var h=[],l=[],n=[],q=[],r=[],s=[];k.forEach(f,function(b){var c=b.id;if(!b.subLayerIds&&-1!==k.indexOf(a.visibleLayers,c))for(b=0;b<e.length;b++){var d=e[b];if(d.id===
c){l.push(c);h.push(d.popupInfo);n.push(d.layerUrl||"");d.layerDefinition&&d.layerDefinition.definitionExpression?q.push(d.layerDefinition.definitionExpression):q.push("");r.push(m.isDefined(d.minScale)?d.minScale:null);s.push(m.isDefined(d.maxScale)?d.maxScale:null);break}}});h.length&&(a.__popups=h,a.__popupIds=l,a.__popupUrls=n,a.__popupWhereClauses=q,a.__popupMinScales=r,a.__popupMaxScales=s,a.__resourceInfo=b.resourceInfo)}}function W(a){if(!a)return!1;var b=(new e(ga.arcgisUrl)).authority;return-1!==
a.indexOf(".arcgis.com/")||-1!==a.indexOf(b)}function X(a){return!a?!1:-1!==a.indexOf("/services.arcgisonline.com/")||-1!==a.indexOf("/server.arcgisonline.com/")}function R(a){if("https:"===location.protocol&&(W(a)||X(a)))a=a.replace("http:","https:");return a}function U(a,b,c){var d=[],f;a.displayLevels||(d=k.map(a.resourceInfo.tileInfo.lods,function(a){return a.level}));a.exclusionAreas&&(f=n.clone(a.exclusionAreas),f=k.map(f,function(a){a.geometry=new A(a.geometry);return a}));d=new F(R(a.url),
{resourceInfo:a.resourceInfo,opacity:a.opacity,visible:a.visibility,displayLevels:a.displayLevels||d,id:a.id,minScale:a.minScale,maxScale:a.maxScale,refreshInterval:a.refreshInterval,exclusionAreas:f});c.ignorePopups||Q(d,a,b,c);return d}function S(a,b){if(!a||!b||0===b.length)return[];var c=","+b+",",d=[],f,e=",";for(f=0;f<a.length;f++)if(null!==a[f].subLayerIds){if(-1===c.indexOf(","+a[f].id+",")||-1<e.indexOf(","+a[f].id+","))e+=a[f].subLayerIds.toString()+","}else-1<c.indexOf(","+a[f].id+",")&&
-1===e.indexOf(","+a[f].id+",")&&d.push(a[f].id);return d}function V(a,b,c){var d=new Ia;d.format="png24";a.resourceInfo&&(a.resourceInfo.supportedImageFormatTypes&&-1<a.resourceInfo.supportedImageFormatTypes.indexOf("PNG32"))&&(d.format="png32");var d=new za(R(a.url),{resourceInfo:a.resourceInfo,opacity:a.opacity,visible:a.visibility,id:a.id,imageParameters:d,minScale:a.minScale,maxScale:a.maxScale,refreshInterval:a.refreshInterval}),f=a.visibleLayers;if(!a.visibleLayers){var e="";k.forEach(d.layerInfos,
function(a){a.defaultVisibility&&(e+=(0<e.length?",":"")+a.id)});f=e}if(a.layers&&0<a.layers.length){var g=[],m=[],h,l=[],q,r;k.forEach(a.layers,function(b){b.layerDefinition&&b.layerDefinition.definitionExpression&&(g[b.id]=b.layerDefinition.definitionExpression);if(b.layerDefinition&&b.layerDefinition.source){h=null;r=b.layerDefinition.source;if("mapLayer"===r.type){var c=k.filter(a.resourceInfo.layers,function(a){return a.id===r.mapLayerId});c.length&&(h=n.mixin(c[0],b))}else h=n.mixin({},b);h&&
(h.source=r,delete h.popupInfo,h=new ta(h),a.visibleLayers&&(c="string"==typeof a.visibleLayers?a.visibleLayers.split(","):a.visibleLayers,-1<k.indexOf(c,b.id)?h.defaultVisibility=!0:h.defaultVisibility=!1),m.push(h))}b.layerDefinition&&(b.layerDefinition.source&&b.layerDefinition.drawingInfo)&&(q=new Ba(b.layerDefinition.drawingInfo),l[b.id]=q)},this);0<g.length&&d.setLayerDefinitions(g);0<m.length?(d.setDynamicLayerInfos(m,!0),0<l.length&&d.setLayerDrawingOptions(l,!0)):(f=S(d.layerInfos,f),d.setVisibleLayers(f))}else f=
S(d.layerInfos,f),d.setVisibleLayers(f);c.ignorePopups||Q(d,a,b,c);return d}function da(a,b,c){var d=new Ja;d.bandIds=a.bandIds;null!=a.format&&(d.format=a.format,null!=a.compressionQuality&&(d.compressionQuality=a.compressionQuality));if(a.renderingRule&&a.renderingRule.rasterFunction){var f=new Ca(a.renderingRule);d.renderingRule=f}a.mosaicRule&&(f=new Xa(a.mosaicRule),d.mosaicRule=f);m.isDefined(a.noData)&&(d.noData=a.noData);m.isDefined(a.noDataInterpretation)&&(d.noDataInterpretation=a.noDataInterpretation);
m.isDefined(a.interpolation)&&(d.interpolation=a.interpolation);d=new Wa(R(a.url),{resourceInfo:a.resourceInfo,opacity:a.opacity,visible:a.visibility,id:a.id,imageServiceParameters:d,minScale:a.minScale,maxScale:a.maxScale,refreshInterval:a.refreshInterval});a.layerDefinition&&a.layerDefinition.definitionExpression&&d.setDefinitionExpression(a.layerDefinition.definitionExpression,!0);!c.ignorePopups&&a.popupInfo&&d.setInfoTemplate(new b(a.popupInfo));return d}function $(a,b,c){var d=[102113,102100,
3857],f=c||new t(b[0].layerObject.fullExtent.spatialReference),e=new t(a.resourceInfo.fullExtent.spatialReference);return f.wkt==e.wkt&&(f.wkid==e.wkid||m.isDefined(f.latestWkid)&&f.latestWkid==e.wkid||m.isDefined(e.latestWkid)&&f.wkid==e.latestWkid||m.isDefined(f.latestWkid)&&f.latestWkid==e.latestWkid)||f.wkid&&e.wkid&&k.some(d,function(a){return a===e.wkid})&&k.some(d,function(a){return a===f.wkid})?!0:!1}function ba(a,b){if(!b[0].layerObject.tileInfo)return!1;var c=[];k.forEach(b,function(a){a.baseMapLayer&&
a.layerObject.tileInfo&&(c=c.concat(k.map(a.layerObject.tileInfo.lods,function(a){return a.scale})))});return k.some(a.resourceInfo.tileInfo.lods,function(a){return k.some(c,function(b){return b===a.scale})})}function T(a,b,f,e,h){var l,r=f._clazz;if("OpenStreetMap"===a.type)l=new Ea({id:a.id,opacity:a.opacity,visible:null!==a.visibility&&void 0!==a.visibility?a.visibility:!0});else if("WMS"===a.type){var s=[],v=[];k.forEach(a.layers,function(a){v.push(new lb({name:a.name,title:a.title,legendURL:a.legendURL}));
s.push(a.name)},this);a.visibleLayers&&(s=a.visibleLayers);e={extent:new A(a.extent[0][0],a.extent[0][1],a.extent[1][0],a.extent[1][1],new t({wkid:4326})),layerInfos:v,version:a.version,maxWidth:a.maxWidth,maxHeight:a.maxHeight,getMapURL:a.mapUrl,spatialReferences:a.spatialReferences,title:a.title,copyright:a.copyright,minScale:a.minScale||0,maxScale:a.maxScale||0,format:a.format};l=new Za(a.url,{id:a.id,visibleLayers:s,format:"png",transparent:a.baseMapLayer?!1:!0,opacity:a.opacity,visible:null!==
a.visibility?a.visibility:!0,resourceInfo:e,refreshInterval:a.refreshInterval});l.spatialReference.wkid=e.spatialReferences[0]}else if("KML"===a.type){f=a.url;if(c.id&&(r=c.id.findCredential(u.urlToObject(ga.arcgisUrl).path))){var B=ga.arcgisUrl.substring(ga.arcgisUrl.indexOf("//")+2,ga.arcgisUrl.indexOf("/",ga.arcgisUrl.indexOf("//")+3)),y=B.split("."),y=y[y.length-2]+"."+y[y.length-1];b=f.indexOf(y);-1<b&&(f="https://"+B+f.substring(b+y.length),f+="?token\x3d"+r.token)}l=new sa(f,{id:a.id,visible:null!==
a.visibility?a.visibility:!0,outSR:e,refreshInterval:a.refreshInterval});q.connect(l,"onLoad",function(){(a.opacity||0===a.opacity)&&l.setOpacity(a.opacity);m.isDefined(a.minScale)&&m.isDefined(a.maxScale)&&l.setScaleRange(a.minScale,a.maxScale);a.visibleFolders&&k.forEach(l.folders,function(b){-1<k.indexOf(a.visibleFolders,b.id)?l.setFolderVisibility(b,!0):l.setFolderVisibility(b,!1)},this)})}else"WebTiledLayer"===a.type?(l=new Da(a.templateUrl,{id:a.id,visible:null!==a.visibility?a.visibility:!0,
opacity:a.opacity,copyright:a.copyright,fullExtent:a.fullExtent&&new A(a.fullExtent),initialExtent:a.fullExtent&&new A(a.fullExtent),subDomains:a.subDomains,tileInfo:a.tileInfo?new Qa(a.tileInfo):null,refreshInterval:a.refreshInterval}),q.connect(l,"onLoad",function(){(m.isDefined(a.minScale)||m.isDefined(a.maxScale))&&l.setScaleRange(a.minScale,a.maxScale)})):"GeoRSS"===a.type?(l=new pa(a.url,{id:a.id,opacity:a.opacity,outSpatialReference:e,refreshInterval:a.refreshInterval}),q.connect(l,"onLoad",
function(){!1===a.visibility&&l.hide();m.isDefined(a.minScale)&&m.isDefined(a.maxScale)&&l.setScaleRange(a.minScale,a.maxScale);var b=l.getFeatureLayers();k.forEach(b,function(c){a.pointSymbol&&"esriGeometryPoint"===c.geometryType?(c.renderer.symbol=w.fromJson(a.pointSymbol),1===b.length&&(l.pointSymbol=w.fromJson(a.pointSymbol))):a.lineSymbol&&"esriGeometryPolyline"===c.geometryType?(c.renderer.symbol=w.fromJson(a.lineSymbol),1===b.length&&(l.polylineSymbol=w.fromJson(a.lineSymbol))):a.polygonSymbol&&
"esriGeometryPolygon"===c.geometryType&&(c.renderer.symbol=w.fromJson(a.polygonSymbol),1===b.length&&(l.polygonSymbol=w.fromJson(a.polygonSymbol)))})})):"CSV"==a.type&&a.url?(e={layerDefinition:a.layerDefinition,columnDelimiter:a.columnDelimiter,id:a.id?a.id:null,visible:null!==a.visibility?a.visibility:!0,opacity:a.opacity,refreshInterval:a.refreshInterval},a.locationInfo&&(e.latitudeFieldName=a.locationInfo.latitudeFieldName,e.longitudeFieldName=a.locationInfo.longitudeFieldName),f.ignorePopups||
(e.infoTemplate=new x(a.popupInfo?a.popupInfo:ua.generateDefaultPopupInfo(a))),l=new na(a.url,e)):a.layerDefinition&&!a.url?(e=g.fromJson(g.toJson(a)),delete e.id,delete e.opacity,delete e.visibility,l=new I(e,{id:a.id,opacity:a.opacity,visible:a.visibility,outFields:["*"],autoGeneralize:!0}),!f.ignorePopups&&e.popupInfo&&l.setInfoTemplate(new r(e.popupInfo))):"BingMapsAerial"===a.type||"BingMapsRoad"===a.type||"BingMapsHybrid"===a.type?f.bingMapsKey?(e=ia.MAP_STYLE_AERIAL_WITH_LABELS,"BingMapsAerial"===
a.type?e=ia.MAP_STYLE_AERIAL:"BingMapsRoad"===a.type&&(e=ia.MAP_STYLE_ROAD),l=new ia({bingMapsKey:f.bingMapsKey,mapStyle:e,opacity:a.opacity,id:a.id}),q.connect(l,"onError",n.hitch(this,function(a){a.errors=a.errors||[];a.errors.push({message:"This application does not have a valid Bing Key for the Bing layer that is included in this map. [type:"+a.type+"]"})},a))):(a.errors=a.errors||[],a.errors.push({message:"This application does not provide a Bing Key for the Bing layer that is included in this map. [type:"+
a.type+"]"})):a.resourceInfo&&a.resourceInfo.mapName?l=!0===a.resourceInfo.singleFusedMapCache&&(a.baseMapLayer||$(a,b,e)&&ba(a,h))?U(a,r,f):V(a,r,f):a.resourceInfo&&a.resourceInfo.pixelSizeX?l=!0===a.resourceInfo.singleFusedMapCache&&(a.baseMapLayer||$(a,b,e)&&ba(a,h))?U(a,r,f):da(a,r,f):a.resourceInfo&&"Feature Layer"===a.resourceInfo.type?(a.capabilities&&(a.resourceInfo.capabilities=a.capabilities),l=new I(R(a.url),{resourceInfo:a.resourceInfo,opacity:a.opacity,visible:a.visibility,id:a.id,mode:W(a.url)?
I.MODE_AUTO:m.isDefined(a.mode)?a.mode:I.MODE_ONDEMAND,editable:!1===f.editable?!1:void 0,outFields:["*"],autoGeneralize:!0,refreshInterval:a.refreshInterval}),!f.ignorePopups&&a.popupInfo&&l.setInfoTemplate(new r(a.popupInfo)),a.layerDefinition&&(a.layerDefinition.drawingInfo&&a.layerDefinition.drawingInfo.renderer&&(e=z.fromJson(a.layerDefinition.drawingInfo.renderer),e.isMaxInclusive=!0,l.setRenderer(e)),a.layerDefinition.drawingInfo&&a.layerDefinition.drawingInfo.labelingInfo&&(e=k.map(a.layerDefinition.drawingInfo.labelingInfo,
function(a){return new Aa(a)}),l.setLabelingInfo(e)),a.layerDefinition.definitionExpression&&l.setDefinitionExpression(a.layerDefinition.definitionExpression),m.isDefined(a.layerDefinition.minScale)&&l.setMinScale(a.layerDefinition.minScale),m.isDefined(a.layerDefinition.maxScale)&&l.setMaxScale(a.layerDefinition.maxScale))):a.resourceInfo&&a.resourceInfo.streamUrls&&(e={resourceInfo:a.resourceInfo,opacity:a.opacity,visible:a.visibility,id:a.id},a.layerDefinition&&(y=a.layerDefinition.drawingInfo,
a.layerDefinition.definitionGeometry&&(B=B||{},B.geometry=a.layerDefinition.definitionGeometry),m.isDefined(a.layerDefinition.definitionExpression)&&(B=B||{},B.where=a.layerDefinition.definitionExpression),m.isDefined(a.layerDefinition.maximumTrackPoints)&&(e.maximumTrackPoints=a.layerDefinition.maximumTrackPoints)),B&&(e.filter=B),a.purgeOptions&&(e.purgeOptions=a.purgeOptions),l=new Ya(R(a.url),e),y&&y.renderer&&(e=y.renderer,l.setRenderer(z.fromJson(e))),!f.ignorePopups&&a.popupInfo&&l.setInfoTemplate(new r(a.popupInfo)),
d.once(l,"error",function(b){a.errors.push({message:"Error loading stream layer. Check websocket url"})}));l&&(l.arcgisProps={title:a.title},a.baseMapLayer&&(l._basemapGalleryLayerType=a.isReference?"reference":"basemap"));return l}function Z(a,b,c,d){k.forEach(a,function(f,e){if(f.url&&!f.type){if(0===e||a[0].layerObject)f.layerObject=T(f,a,b,c,d)}else f.layerObject=T(f,a,b,c,d)});var f=k.filter(a,function(a){return!a.isReference}),e=k.filter(a,function(a){return!!a.isReference});return a=f.concat(e)}
function ca(a){var b=null;a=a[0];a.url&&!a.type?a.resourceInfo.spatialReference&&(b=new t,a.resourceInfo.spatialReference.wkid&&(b.wkid=a.resourceInfo.spatialReference.wkid),a.resourceInfo.spatialReference.wkt&&(b.wkt=a.resourceInfo.spatialReference.wkt)):-1<a.type.indexOf("BingMaps")||"OpenStreetMap"==a.type?b=new t({wkid:102100}):"WMS"==a.type&&(b=new t({wkid:a.spatialReferences[0]}));return b}function aa(a,b,c,d,f,e,g){k.forEach(b,function(b,c){b.url&&!b.type&&(b.resourceInfo=a[b.deferredsPos][1],
delete b.deferredsPos)});e=e||ca(b);b=Z(b,c,e,g);f.callback(b);return f}function Y(a,b){var c=R(a);return s({url:c,content:{f:"json"},callbackParamName:"callback",error:function(a,d){a.message=a.message?a.message+(" [url:"+c+"]"):"[url:"+c+"]";b.push(a);f.defaults.io.errorHandler(a,d)}})}function ea(a){var b=ga.arcgisUrl+"/"+a.itemId+"/data";return s({url:b,content:{f:"json"},callbackParamName:"callback",error:function(c,d){c.message=c.message?c.message+(" [url:"+b+"]"):"[url:"+b+"]";a.errors=a.errors||
[];a.errors.push(c);f.defaults.io.errorHandler(c,d)}})}function fa(a,b,c){var d=new h;if((!c.featureCollection||!c.featureCollection.layers)&&!c.layers)return a.errors=a.errors||[],a.errors.push({message:"Invalid Feature Collection item data. [item id: "+a.itemId+"]"}),d.errback(),d;c.layers&&(c.featureCollection={layers:c.layers},delete c.layers,m.isDefined(c.showLegend)&&(c.featureCollection.showLegend=c.showLegend,delete c.showLegend));ma(a,c.featureCollection,b).then(function(b){c.featureCollection=
b;a.featureCollection&&a.featureCollection.layers?k.forEach(c.featureCollection.layers,function(b,c){var d=a.featureCollection.layers[c];if(!d.poupInfo&&!d.layerDefinition)d.popupInfo=b.popupInfo,d.layerDefinition=b.layerDefinition;else if(d.layerDefinition){if(m.isDefined(d.layerDefinition.minScale)&&m.isDefined(d.layerDefinition.maxScale)&&(d.layerDefinition.minScale!==b.layerDefinition.minScale||d.layerDefinition.maxScale!==b.layerDefinition.maxScale))delete b.layerDefinition.minscale,delete b.layerDefinition.maxScale;
d.layerDefinition.drawingInfo&&g.toJson(d.layerDefinition.drawingInfo)!==g.toJson(b.layerDefinition.drawingInfo)&&delete b.layerDefinition.drawingInfo;d.layerDefinition.showLegend!==b.layerDefinition.showLegend&&delete b.layerDefinition.showLegend;d.layerDefinition=n.mixin(d.layerDefinition,b.layerDefinition)}else d.layerDefinition=b.layerDefinition;d.featureSet=b.featureSet;d.nextObjectId=b.nextObjectId}):(a.featureCollection=a.featureCollection||{},a.featureCollection=n.mixin(a.featureCollection,
c.featureCollection));d.callback(a)});return d}function ma(a,c,d){var f=new h;l(["./csv"],function(e){var g=[];k.forEach(c.layers,function(a){a.featureSet&&(a.featureSet.features&&a.featureSet.features.length&&a.featureSet.features[0].geometry&&a.featureSet.features[0].geometry.spatialReference)&&(a.deferredsPos=g.length,g.push(e.projectFeatureCollection(a,d,a.featureSet.features[0].geometry.spatialReference)))});(new b(g)).addCallback(function(){k.forEach(c.layers,function(b){m.isDefined(b.deferredsPos)&&
(g[b.deferredsPos].results&&g[b.deferredsPos].results.length?b=g[b.deferredsPos].results[0]:(b.errors=b.errors||[],b.errors.push({message:"Errors projecting feature collection. ["+a.title+" - "+b.layerDefinition.name+"]"})),delete b.deferredsPos)});f.callback(c)})});return f}function ha(a,c,f,e){var g=new h,m=new h,q=[],r;k.forEach(a.operationalLayers,function(a){a.itemId&&"Feature Collection"==a.type&&q.push(ea(a).then(n.hitch(null,fa,a,f)))});0===q.length?Fa(a,c,f,e,m):(r=new b(q),r.addCallback(function(b){Fa(a,
c,f,e,m)}));m.then(function(a){q=[];k.forEach(a,function(a){a=a.layerObject;if(a instanceof I&&!a.loaded&&!a.loadError){var b=new h;d.once(a,"load, error",function(){b.callback(a)});q.push(b)}});if(q.length){var c=new h;r=new b(q);r.addCallback(function(){c.callback(a)});return c.promise}return a}).then(function(a){var b=[];k.forEach(a,function(a){if(a.layerObject instanceof I){var c=a.layerObject;c.loaded&&(c.labelingInfo&&(a.showLabels||c._collection))&&b.push(c)}});b.length?l(["../layers/LabelLayer"],
function(c){var d=new c;k.forEach(b,function(a){d.addFeatureLayer(a)});a.push({layerObject:d});g.callback(a)}):g.callback(a)});return g}function Fa(a,c,d,f,e){var g=[],m=[],h=[];k.forEach(a.operationalLayers,function(a,b){a.featureCollection?k.forEach(a.featureCollection.layers,function(c,d){var f=!0;a.visibleLayers&&-1==k.indexOf(a.visibleLayers,d)&&(f=!1);c.visibility=a.visibility&&f;c.opacity=a.opacity;c.id=(a.id||"operational"+b)+"_"+d;h.push(c)},this):h.push(a)});k.forEach(a.baseMap.baseMapLayers,
function(a,b){a.baseMapLayer=!0;a.id=a.id||"base"+b;g.push(a)});k.forEach(h,function(a,b){a.id=a.id||"operational"+b;g.push(a)});k.forEach(g,function(a){a.url&&!a.type&&(a.deferredsPos=m.length,a.errors=a.errors||[],m.push(Y(a.url,a.errors)))});0===m.length?(d=d||ca(g),g=Z(g,c,d,f),e.callback(g)):(new b(m)).addCallback(function(a){aa(a,g,c,m,e,d,f)});return e}function la(a,b,c,d){var f=a.minScale,e=a.maxScale;if(10.1>=c.version&&b)for(a=b.length-1;0<=a;a--){if(b[a].id==d)if(0==f&&0<b[a].minScale?
f=b[a].minScale:0<f&&0==b[a].minScale?f=c.minScale:0<f&&0<b[a].minScale&&(f=Math.min(f,b[a].minScale)),e=Math.max(c.maxScale||0,b[a].maxScale||0),c.setScaleRange(f,e),-1<b[a].parentLayerId)d=b[a].parentLayerId;else break}else 10.1<c.version&&(k.forEach(a.layerInfos,function(a){a.id==d&&(0==f&&0<a.minScale?f=a.minScale:0<f&&0==a.minScale||0<f&&0<a.minScale&&(f=Math.min(f,a.minScale)),e=Math.max(e||0,a.maxScale||0))}),c.setScaleRange(f,e))}function ra(a,b,c,d){var f=a.url,e=a.__popupIds,g=a.__popupUrls,
h=a.__popupWhereClauses,l=a.__popupMinScales,r=a.__popupMaxScales,s=a.__resourceInfo,w=[];k.forEach(a.__popups,function(d,n){if(d){var x,t=[];k.forEach(d.fieldInfos,function(a){"shape"!==a.fieldName.toLowerCase()&&t.push(a.fieldName)});if(a.dynamicLayerInfos&&0<a.dynamicLayerInfos.length){var z=k.filter(a.dynamicLayerInfos,function(a){return e[n]==a.id})[0].source;x=new I(f+"/dynamicLayer",{id:a.id+"_"+e[n],source:z,outFields:t,mode:I.MODE_SELECTION,infoTemplate:d&&new c(d),drawMode:!1,visible:a.visible,
autoGeneralize:!0});var u=function(c,d){0<h[c].length&&d.setDefinitionExpression(h[c]);if(!m.isDefined(l[c])&&!m.isDefined(r[c]))la(a,b||s.layers,d,e[c]);else if(m.isDefined(a.minScale)||m.isDefined(a.maxScale)){var f=a.minScale,g=a.maxScale;0==f&&0<l[c]?f=l[c]:0<f&&0==l[c]||0<f&&0<l[c]&&(f=Math.min(f,l[c]));g=Math.max(g||0,r[c]||0);d.setScaleRange(f,g)}else d.setScaleRange(l[c],r[c])};x.loaded?u(n,x):q.connect(x,"onLoad",function(a){u(n,x)})}else{var v=null,B=f+"/"+e[n];if(g[n].length)B=g[n];else if(b)for(z=
0;z<b.length;z++)if(b[z].id===e[n]){v=b[z];break}x=new I(R(B),{id:a.id+"_"+e[n],outFields:t,mode:I.MODE_SELECTION,infoTemplate:d&&new c(d),drawMode:!1,visible:a.visible,resourceInfo:v,autoGeneralize:!0});x.loaded?(0<h[n].length&&x.setDefinitionExpression(h[n]),la(a,b||s.layers,x,e[n])):q.connect(x,"onLoad",function(c){0<h[n].length&&x.setDefinitionExpression(h[n]);la(a,b||s.layers,c,e[n])})}w.push(x)}});0<w.length&&(q.connect(a,"onVisibilityChange",n.hitch(this,function(a,b){k.forEach(a,function(a){b?
a.show():a.hide()})},w)),q.connect(d,"onLayerRemove",n.hitch(this,function(a,b,c){a.id===c.id&&k.forEach(b,function(a){d.removeLayer(a)})},a,w)));delete a.__popups;delete a.__popupIds;delete a.__popupUrls;delete a.__popupWhereClauses;delete a.__popupMinScales;delete a.__popupMaxScales;delete a.__resourceInfo;return w}function oa(a){return s({url:R(a.url+"/layers"),content:{f:"json"},callbackParamName:"callback",error:function(){}})}function Ga(a,c,d){var f=[];k.forEach(a,function(a){var b=a.__popups;
b&&(1<b.length&&10<=a.version)&&(a.__deferredsPos=f.length,f.push(oa(a)))});var e=[];0<f.length?(new b(f)).addCallback(function(b){k.forEach(a,function(a){a.__popups&&0<a.__popups.length&&(a.__deferredsPos||0===a.__deferredsPos?(e=e.concat(ra(a,b[a.__deferredsPos][1].layers,d,c)),delete a.__deferredsPos):e=e.concat(ra(a,null,d,c)))});c.addLayers(e)}):(k.forEach(a,function(a){a.__popups&&0<a.__popups.length&&(e=e.concat(ra(a,null,d,c)))}),c.addLayers(e))}function Ha(a){k.forEach(a,function(a){var b=
a.layer;b.toJson&&(a=b.toJson(),a.featureSet&&(b.name&&-1<b.name.indexOf("Text"))&&k.forEach(a.featureSet.features,function(a,c){if(a.attributes.TEXT){var d=b.graphics[c];d.symbol.setText(a.attributes.TEXT);a.symbol.horizontalAlignment&&(d.symbol.align=a.symbol.horizontalAlignment);d.setSymbol(d.symbol);d.setAttributes(a.attributes)}},this))})}function ka(a){var b=6;k.forEach(a,function(a){if(a=a.renderer)"esri.renderer.SimpleRenderer"===a.declaredClass?((a=a.symbol)&&a.xoffset&&(b=Math.max(b,Math.abs(a.xoffset))),
a&&a.yoffset&&(b=Math.max(b,Math.abs(a.yoffset)))):("esri.renderer.UniqueValueRenderer"===a.declaredClass||"esri.renderer.ClassBreaksRenderer"===a.declaredClass)&&k.forEach(a.infos,function(a){(a=a.symbol)&&a.xoffset&&(b=Math.max(b,Math.abs(a.xoffset)));a&&a.yoffset&&(b=Math.max(b,Math.abs(a.yoffset)))})});return b}function qa(a){var b=this,c=b.infoWindow,d=a.graphic;if(b.loaded){c.hide();c.clearFeatures();var f=[];k.forEach(b.graphicsLayerIds,function(a){if((a=b.getLayer(a))&&-1!==a.declaredClass.indexOf("FeatureLayer")&&
a.loaded&&a.visible)a.clearSelection(),a.infoTemplate&&!a.suspended&&f.push(a)});k.forEach(b.layerIds,function(a){(a=b.getLayer(a))&&(-1!==a.declaredClass.indexOf("ArcGISImageServiceLayer")&&a.loaded&&a.visible&&a.infoTemplate)&&f.push(a)});d=d&&d.getInfoTemplate()?d:null;if(f.length||d){var e=ka(f),g=a.screenPoint,m=b.toMap(new v(g.x-e,g.y+e)),e=b.toMap(new v(g.x+e,g.y-e)),m=new A(m.x,m.y,e.x,e.y,b.spatialReference),l=new D;l.geometry=m;l.timeExtent=b.timeExtent;var n=!0,m=k.map(f,function(b){var c;
-1!==b.declaredClass.indexOf("ArcGISImageServiceLayer")?(l.geometry=a.mapPoint,n=!1,c=b.queryVisibleRasters(l,{rasterAttributeTableFieldPrefix:"Raster.",returnDomainValues:!0}),c.addCallback(function(){return b.getVisibleRasters()})):(c=b.selectFeatures(l),c.addCallback(function(){return b.getSelectedFeatures()}));return c});d&&(e=new h,e.callback([d]),m.splice(0,0,e));if(!k.some(m,function(a){return-1===a.fired})){var q=d?1:0;k.forEach(f,function(a){q=-1!==a.declaredClass.indexOf("ArcGISImageServiceLayer")?
q+a.getVisibleRasters().length:q+a.getSelectedFeatures().length});if(!q)return}c.setFeatures(m);c.show(a.mapPoint,{closestFirst:n})}}}function Na(b,c){var d=c.mapOptions||{},f;d.infoWindow||(f=new B({visibleWhenEmpty:!1},a.create("div")),d.infoWindow=f);!m.isDefined(d.showInfoWindowOnClick)&&!c.usePopupManager&&(d.showInfoWindowOnClick=!1);d=new r(b,d);q.connect(d,"onLayersAddResult",Ha);return d}function ja(a,b,c,d,f,e){var g,m,h,l;d.map?(g=d.map,m=d.clickEventHandle,h=d.clickEventListener,l=d.errors):
(g=Na(d,f),!f.ignorePopups&&(!f.disableClickBehavior&&!f.usePopupManager)&&(m=q.connect(g,"onClick",qa),h=qa));g.addLayers(a);!f.ignorePopups&&!f.usePopupManager&&Ga(a,g,f._clazz);var n=l||[];k.forEach(b,function(a){a.errors&&(n=n.concat(a.errors))},this);g.loaded?e.callback({map:g,itemInfo:c,errors:n,clickEventHandle:m,clickEventListener:h}):q.connect(g,"onLoad",function(){e.callback({map:g,itemInfo:c,errors:n,clickEventHandle:m,clickEventListener:h})})}function wa(a,b,c,d,f){var e=[];k.forEach(f,
function(a){n.isArray(a.layerObject)?k.forEach(a.layerObject,function(a){e.push(a)}):e.push(a.layerObject)});if("BingMapsAerial"===f[0].type||"BingMapsRoad"===f[0].type||"BingMapsHybrid"===f[0].type)var g=setInterval(function(){if(f[0].layerObject&&f[0].layerObject.loaded)clearInterval(g),Ua(a,b,c,d,f,e);else if(f[0].errors){clearInterval(g);var m="";f[0].errors&&f[0].errors.length&&(m=" ("+f[0].errors[0].message+")");d.errback(Error(E.arcgis.utils.baseLayerError+m))}},10);else if(!e[0]&&f[0].baseMapLayer){var m=
"";f[0].errors&&f[0].errors.length&&(m=" ("+f[0].errors[0].message+")");d.errback(Error(E.arcgis.utils.baseLayerError+m))}else Ua(a,b,c,d,f,e)}function Ua(a,b,c,d,e,g){try{var h=c.mapOptions||{};c.mapOptions=h;var l=a.item;g=k.filter(g,m.isDefined);if(l)if(l.extent&&l.extent.length)if(h.extent)ja(g,e,a,b,c,d);else{var n=new A(l.extent[0][0],l.extent[0][1],l.extent[1][0],l.extent[1][1],new t({wkid:4326})),q=g[0].spatialReference;4326===q.wkid?(h.extent=n,ja(g,e,a,b,c,d)):102100===q.wkid||102113===
q.wkid||3857===q.wkid?(n.xmin=Math.max(n.xmin,-180),n.xmax=Math.min(n.xmax,180),n.ymin=Math.max(n.ymin,-89.99),n.ymax=Math.min(n.ymax,89.99),h.extent=y.geographicToWebMercator(n),ja(g,e,a,b,c,d)):c.geometryServiceURL||f.defaults.geometryService?(c.geometryServiceURL?new C(c.geometryServiceURL):f.defaults.geometryService).project([n],q,function(f){f=f[0];h.extent=h.extent||f;ja(g,e,a,b,c,d)},function(){ja(g,e,a,b,c,d)}):d.errback(Error(E.arcgis.utils.geometryServiceError))}else ja(g,e,a,b,c,d);else ja(g,
e,a,b,c,d)}catch(r){d.errback(r)}}function Va(a){var b=[];a=a.baseMap.baseMapLayers.concat(a.operationalLayers);k.forEach(a,function(a){var c={};if(a.featureCollection&&"CSV"!==a.type)!0===a.featureCollection.showLegend&&k.forEach(a.featureCollection.layers,function(d){!1!==d.showLegend&&(c={layer:d.layerObject,title:a.title,defaultSymbol:d.renderer&&d.renderer.defaultSymbol&&d.renderer.defaultLabel?!0:!1},1<a.featureCollection.layers.length&&(c.title+=" - "+d.layerDefinition.name),b.push(c))});else if(a.baseMapLayer&&
!0===a.showLegend&&a.layerObject||!a.baseMapLayer&&!1!==a.showLegend&&a.layerObject){var d=a.layerObject.renderer,f=a.layerObject.declaredClass,d=!d||d&&d.defaultSymbol&&d.defaultLabel?!0:!1;if(10.1>a.layerObject.version&&("esri.layers.ArcGISDynamicMapServiceLayer"===f||"esri.layers.ArcGISTiledMapServiceLayer"===f)||"esri.layers.ArcGISImageServiceLayer"===f)d=!0;c={layer:a.layerObject,title:a.title,defaultSymbol:d};a.layers&&(f=k.map(k.filter(a.layers,function(a){return!1===a.showLegend}),function(a){return a.id}),
f.length&&(c.hideLayers=f));b.push(c)}});return b}function xa(a,b){var c=new h,d=a.itemData,f=[];d.baseMap&&d.baseMap.baseMapLayers&&(f=f.concat(d.baseMap.baseMapLayers));d.operationalLayers&&(f=f.concat(d.operationalLayers));for(var d=k.map(f,function(a){return a&&a.layerType}),e=[],f=!1,g=0;g<d.length;g++){switch(d[g]){case "ArcGISFeatureLayer":-1===k.indexOf(e,Ra)&&e.push(Ra);break;case "ArcGISImageServiceLayer":-1===k.indexOf(e,La)&&(e.push(La),e.push(fb),e.push(hb),e.push(ib));break;case "ArcGISMapServiceLayer":-1===
k.indexOf(e,Ka)&&(e.push(Ka),e.push(db),e.push(eb),e.push(gb));break;case "ArcGISStreamLayer":-1===k.indexOf(e,Ta)&&e.push(Ta);break;case "ArcGISTiledImageServiceLayer":case "ArcGISTiledMapServiceLayer":break;case "BingMapsAerial":case "BingMapsHybrid":case "BingMapsRoad":-1===k.indexOf(e,$a)&&e.push($a);break;case "CSV":-1===k.indexOf(e,Ma)&&(e.push(Ma),e.push(cb));break;case "GeoRSS":-1===k.indexOf(e,Oa)&&e.push(Oa);break;case "KML":-1===k.indexOf(e,Pa)&&e.push(Pa);break;case "OpenStreetMap":-1===
k.indexOf(e,Sa)&&e.push(Sa);break;case "WebTiledLayer":-1===k.indexOf(e,ab)&&(e.push(ab),e.push(jb));break;case "WMS":-1===k.indexOf(e,bb)&&(e.push(bb),e.push(kb));break;default:f=!0}if(f)break}f&&(e=mb);e.length?l(e,function(){var a=arguments;k.forEach(e,function(b,c){switch(b){case Ka:za=a[c];break;case La:Wa=a[c];break;case cb:ua=a[c];break;case Ma:na=a[c];break;case db:ta=a[c];break;case Oa:pa=a[c];break;case eb:Ia=a[c];break;case fb:Ja=a[c];break;case Pa:sa=a[c];break;case Ra:Aa=a[c];break;case gb:Ba=
a[c];break;case hb:Xa=a[c];break;case Sa:Ea=a[c];break;case ib:Ca=a[c];break;case Ta:Ya=a[c];break;case jb:Qa=a[c];break;case $a:ia=a[c];break;case ab:Da=a[c];break;case bb:Za=a[c];break;case kb:lb=a[c]}});c.resolve()}):c.resolve();return c}function ya(a,b,c,d){xa(d,b).then(function(){M(d,b).then(function(b){var d=b[0],f=b[1];if(!d.itemData.operationalLayers||0===d.itemData.operationalLayers.length)H(d,f).addCallback(function(b){ha(b.itemData,f).addCallback(n.hitch(null,wa,b,a,f,c))});else{var e=
new h,g=d.itemData.baseMap.baseMapLayers.slice(),m=k.filter(d.itemData.baseMap.baseMapLayers,function(a){return!a.isReference});b={item:d.item,itemData:{baseMap:{baseMapLayers:m}}};d.itemData.baseMap.baseMapLayers=k.filter(d.itemData.baseMap.baseMapLayers,function(a){return a.isReference});H(b,f).addCallback(function(b){ha(b.itemData,f).addCallback(n.hitch(null,wa,b,a,f,e))});e.then(function(a){H(d,f).addCallback(function(b){ha(b.itemData,f,a.map.spatialReference,m).addCallback(function(d){b.itemData.baseMap.baseMapLayers=
g;wa(b,a,f,c,d)})})},n.hitch(c,c.errback))}})})}function va(a){ga._arcgisUrl&&0<ga._arcgisUrl.length&&(ga.arcgisUrl=ga._arcgisUrl);var b=ga.arcgisUrl+"/"+a,c={},d=new h;s({url:b,content:{f:"json"},callbackParamName:"callback",load:function(a){c.item=a;s({url:b+"/data",content:{f:"json"},callbackParamName:"callback",load:function(a){c.itemData=a;d.callback(c)},error:function(a){d.errback(a)}})},error:function(a){d.errback(a)}});return d}String.prototype.endsWith=function(a){return this.match(a+"$")==
a};var ga,za,Wa,ua,na,ta,pa,Ia,Ja,sa,Aa,Ba,Xa,Ea,Ca,Ya,Qa,ia,Da,Za,lb,Ka="../layers/ArcGISDynamicMapServiceLayer",La="../layers/ArcGISImageServiceLayer",cb="./csv",Ma="../layers/CSVLayer",db="../layers/DynamicLayerInfo",Oa="../layers/GeoRSSLayer",eb="../layers/ImageParameters",fb="../layers/ImageServiceParameters",Pa="../layers/KMLLayer",Ra="../layers/LabelClass",gb="../layers/LayerDrawingOptions",hb="../layers/MosaicRule",Sa="../layers/OpenStreetMapLayer",ib="../layers/RasterFunction",Ta="../layers/StreamLayer",
jb="../layers/TileInfo",$a="../virtualearth/VETiledLayer",ab="../layers/WebTiledLayer",bb="../layers/WMSLayer",kb="../layers/WMSLayerInfo",mb=[Ka,La,cb,Ma,db,Oa,eb,fb,Pa,Ra,gb,hb,Sa,ib,Ta,jb,$a,ab,bb,kb];ga={arcgisUrl:location.protocol+"//www.arcgis.com/sharing/rest/content/items",getItem:va,createMap:function(a,b,c){var d=new h;c=c||{};var f=c.infoTemplateClass;c._clazz=f&&(n.isObject(f)?f:n.getObject(f))||x;n.isString(a)?va(a).addCallback(n.hitch(null,ya,b,c,d)).addErrback(n.hitch(d,d.errback)):
ya(b,c,d,a);return d},getLegendLayers:function(a){return a&&a.itemInfo&&a.itemInfo.itemData?Va(a.itemInfo.itemData):[]},_arcgisUrl:null,_getItemProps:H,_getItemData:L,_getBingKey:G,_portalUrlResponse:N,_portalUrlFailure:O,_processFSItemProperties:K,_processSSItemProperties:J,_getLayers:ha,_preBuildLayerObjects:aa,_buildLayerObjects:Z,_preCreateMap:wa,_getMapSR:ca,_createMap:ja,_addSelectionLayers:Ga,_createSelectionFeatureLayers:ra,_getServiceInfo:Y,_getFeatureCollectionItem:ea,_mergeFeatureCollectionItem:fa,
_projectFeatureCollection:ma,_getLayersInfo:oa,_initLayer:T,_loadAsCached:U,_loadAsDynamic:V,_processPopups:Q,_onLayersAddResult:Ha,_sameSpatialReferenceAsBasemap:$,_sameTilingSchemeAsBasemap:ba,_showPopup:qa,_calculateClickTolerance:ka,_getVisibleFeatureLayers:S,_updateLayerScaleInfo:la,_checkUrl:R,_isHostedService:W,_isAgolService:X,_getLegendLayers:Va};n.setObject("arcgis.utils",ga,c);return ga})},"dojo/DeferredList":function(){define(["./_base/kernel","./_base/Deferred","./_base/array"],function(l,
n,k){l.DeferredList=function(l,h,g,e,d){var b=[];n.call(this);var a=this;0===l.length&&!h&&this.resolve([0,[]]);var c=0;k.forEach(l,function(d,m){function k(d,f){b[m]=[d,f];c++;c===l.length&&a.resolve(b)}d.then(function(b){h?a.resolve([m,b]):k(!0,b)},function(b){g?a.reject(b):k(!1,b);if(e)return null;throw b;})})};l.DeferredList.prototype=new n;l.DeferredList.prototype.gatherResults=function(n){n=new l.DeferredList(n,!1,!0,!1);n.addCallback(function(h){var g=[];k.forEach(h,function(e){g.push(e[1])});
return g});return n};return l.DeferredList})},"esri/dijit/PopupTemplate":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojo/dom-construct ../kernel ../InfoTemplate ../PopupInfo ./PopupRenderer".split(" "),function(l,n,k,q,h,g,e,d){l=l([g,e],{declaredClass:"esri.dijit.PopupTemplate","-chains-":{constructor:"manual"},chartTheme:null,constructor:function(b,a){n.mixin(this,a);this.initialize(b,a)},getTitle:function(b){var a;this.info&&(a=this.titleHasRelatedFields?"":this._getPopupValues(b,
!0).title);return a||""},getContent:function(b){return this.info?(new d({template:this,graphic:b,chartTheme:this.chartTheme},q.create("div"))).domNode:""}});k("extend-esri")&&n.setObject("dijit.PopupTemplate",l,h);return l})},"esri/PopupInfo":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/json dojo/i18n dojo/has dojo/Deferred dojo/sniff dojo/promise/all ./lang ./kernel ./request ./tasks/query ./tasks/QueryTask ./tasks/StatisticDefinition dojo/i18n!dojo/cldr/nls/number".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r){l=l(null,{declaredClass:"esri.PopupInfo",initialize:function(a,b){if(a){n.mixin(this,b);this.info=a;this.title=this.getTitle;this.content=this.getContent;var c=this._fieldLabels={},d=this._fieldsMap={};a.fieldInfos&&k.forEach(a.fieldInfos,function(a){c[a.fieldName]=a.label;d[a.fieldName]=a});this._relatedFieldPrefix="relationships/";this.titleHasRelatedFields=!!(a.title&&-1!==a.title.indexOf("{"+this._relatedFieldPrefix))}},toJson:function(){return q.fromJson(q.toJson(this.info))},
getTitle:function(){},getContent:function(){},getComponents:function(a){var b=this.info,c=new e,d,f;b.fieldInfos&&(f=k.filter(b.fieldInfos,function(a){return-1!==a.fieldName.indexOf(this._relatedFieldPrefix)},this));f&&0<f.length&&(d=this._getRelatedRecords({graphic:a,fieldsInfo:f}));d?d.always(n.hitch(this,function(){c.resolve(this._getPopupValues(a))})):c.resolve(this._getPopupValues(a));return c.promise},_getPopupValues:function(b,c){var d=this.info,f=b.getLayer(),e=n.clone(b.attributes)||{},g=
n.clone(e),m=d.fieldInfos,h="",l="",q,r,s,t,L,G=f&&f._getDateOpts&&f._getDateOpts().properties,K={dateFormat:{properties:G,formatter:"DateFormat"+this._insertOffset(this._dateFormats.shortDateShortTime)}};if(this._relatedInfo)for(t in this._relatedInfo)if(this._relatedInfo.hasOwnProperty(t)){var J=this._relatedInfo[t],H=this._relatedLayersInfo[t];J&&(k.forEach(J.relatedFeatures,function(a){for(L in a.attributes)if(a.attributes.hasOwnProperty(L)&&"esriRelCardinalityOneToOne"===H.relation.cardinality){var b=
this._toRelatedFieldName([H.relation.id,L]);e[b]=g[b]=a.attributes[L]}},this),k.forEach(J.relatedStatsFeatures,function(a){for(L in a.attributes)if(a.attributes.hasOwnProperty(L)){var b=this._toRelatedFieldName([H.relation.id,L]);e[b]=g[b]=a.attributes[L]}},this))}m&&k.forEach(m,function(a){r=a.fieldName;g[r]=this._formatValue(g[r],r,K);G&&(a.format&&a.format.dateFormat)&&(a=k.indexOf(G,r),-1<a&&G.splice(a,1))},this);if(f){t=f.types;var M=(J=f.typeIdField)&&e[J];for(r in e)if(e.hasOwnProperty(r)&&
-1===r.indexOf(this._relatedFieldPrefix)&&(s=e[r],a.isDefined(s))){var N=this._getDomainName(f,t,M,r,s);a.isDefined(N)?g[r]=N:r===J&&(N=this._getTypeName(f,s),a.isDefined(N)&&(g[r]=N))}}d.title&&(h=this._processFieldsInLinks(this._fixTokens(d.title),e),h=n.trim(a.substitute(g,h,K)||""));if(c)return{title:h};d.description&&(l=this._processFieldsInLinks(this._fixTokens(d.description),e),l=n.trim(a.substitute(g,l,K)||""));m&&(q=[],k.forEach(m,function(b){(r=b.fieldName)&&b.visible&&q.push([b.label||
r,a.substitute(g,"${"+r+"}",K)||""])}));var O,P;d.mediaInfos&&(O=[],k.forEach(d.mediaInfos,function(b){P=0;s=b.value;switch(b.type){case "image":var c=s.sourceURL,c=c&&n.trim(a.substitute(e,this._fixTokens(c)));P=!!c;break;case "piechart":case "linechart":case "columnchart":case "barchart":P=k.some(s.fields,function(b){return a.isDefined(e[b])||-1!==b.indexOf(this._relatedFieldPrefix)&&this._relatedInfo},this);break;default:return}if(P){b=n.clone(b);s=b.value;var c=b.title?this._processFieldsInLinks(this._fixTokens(b.title),
e):"",d=b.caption?this._processFieldsInLinks(this._fixTokens(b.caption),e):"";b.title=c?n.trim(a.substitute(g,c,K)||""):"";b.caption=d?n.trim(a.substitute(g,d,K)||""):"";if("image"===b.type)s.sourceURL=a.substitute(e,this._fixTokens(s.sourceURL)),s.linkURL&&(s.linkURL=n.trim(a.substitute(e,this._fixTokens(s.linkURL))||""));else{var f,m;k.forEach(s.fields,function(a,b){if(-1!==a.indexOf(this._relatedFieldPrefix))m=this._getRelatedChartInfos(a,s,e,K),m instanceof Array?s.fields=m:s.fields[b]=m;else{var c=
e[a],c=void 0===c?null:c;f=e[s.normalizeField]||0;c&&f&&(c/=f);s.fields[b]={y:c,tooltip:(this._fieldLabels[a]||a)+":\x3cbr/\x3e"+this._formatValue(c,a,K,!!f)}}},this)}O.push(b)}},this));return{title:h,description:l,fields:q&&q.length?q:null,mediaInfos:O&&O.length?O:null,formatted:g,editSummary:f&&f.getEditSummary?f.getEditSummary(b):""}},_getRelatedChartInfos:function(a,b,c,d){var f,e,g,m,h,l;f=[];l=this._fromRelatedFieldName(a);h=l[0];e=this._relatedInfo[h];h=this._relatedLayersInfo[h];e&&k.forEach(e.relatedFeatures,
function(e){e=e.attributes;var h,k;for(k in e)if(e.hasOwnProperty(k)&&k===l[1]){h={};m=e[k];b.normalizeField&&(g=-1!==b.normalizeField.indexOf(this._relatedFieldPrefix)?e[this._fromRelatedFieldName(b.normalizeField)[1]]:c[b.normalizeField]);m&&g&&(m/=g);if(b.tooltipField)if(-1!==b.tooltipField.indexOf(this._relatedFieldPrefix)){var n=this._fromRelatedFieldName(b.tooltipField)[1];h.tooltip=e[n]+":\x3cbr/\x3e"+this._formatValue(m,e[n],d,!!g)}else h.tooltip=(this._fieldLabels[a]||a)+":\x3cbr/\x3e"+this._formatValue(m,
b.tooltipField,d,!!g);else h.tooltip=m;h.y=m;f.push(h)}},this);return"esriRelCardinalityOneToMany"===h.relation.cardinality||"esriRelCardinalityManyToMany"===h.relation.cardinality?f:f[0]},getAttachments:function(a){var b=a.getLayer();a=a.attributes;if(this.info.showAttachments&&(b&&b.hasAttachments&&b.objectIdField)&&(a=a&&a[b.objectIdField]))return b.queryAttachmentInfos(a)},_dateFormats:{shortDate:"(datePattern: 'M/d/y', selector: 'date')",shortDateLE:"(datePattern: 'd/M/y', selector: 'date')",
longMonthDayYear:"(datePattern: 'MMMM d, y', selector: 'date')",dayShortMonthYear:"(datePattern: 'd MMM y', selector: 'date')",longDate:"(datePattern: 'EEEE, MMMM d, y', selector: 'date')",shortDateShortTime:"(datePattern: 'M/d/y', timePattern: 'h:mm a', selector: 'date and time')",shortDateLEShortTime:"(datePattern: 'd/M/y', timePattern: 'h:mm a', selector: 'date and time')",shortDateShortTime24:"(datePattern: 'M/d/y', timePattern: 'H:mm', selector: 'date and time')",shortDateLEShortTime24:"(datePattern: 'd/M/y', timePattern: 'H:mm', selector: 'date and time')",
shortDateLongTime:"(datePattern: 'M/d/y', timePattern: 'h:mm:ss a', selector: 'date and time')",shortDateLELongTime:"(datePattern: 'd/M/y', timePattern: 'h:mm:ss a', selector: 'date and time')",shortDateLongTime24:"(datePattern: 'M/d/y', timePattern: 'H:mm:ss', selector: 'date and time')",shortDateLELongTime24:"(datePattern: 'd/M/y', timePattern: 'H:mm:ss', selector: 'date and time')",longMonthYear:"(datePattern: 'MMMM y', selector: 'date')",shortMonthYear:"(datePattern: 'MMM y', selector: 'date')",
year:"(datePattern: 'y', selector: 'date')"},_reHref:/href\s*=\s*\"[^\"]+\"/ig,_fixTokens:function(a){return a.replace(/(\{[^\{\r\n]+\})/g,"$$$1")},_processFieldsInLinks:function(b,c){return b&&b.replace(this._reHref,function(b){return b=a.substitute(c,b)})},_formatValue:function(b,c,d,f){var e=this._fieldsMap[c],g=e&&e.format;c="number"===typeof b&&-1===k.indexOf(d.dateFormat.properties,c)&&(!g||!g.dateFormat);if(!a.isDefined(b)||!e||!a.isDefined(g))return c?this._forceLTR(b):b;var m="",h=[],e=g.hasOwnProperty("places")||
g.hasOwnProperty("digitSeparator"),l=g.hasOwnProperty("digitSeparator")?g.digitSeparator:!0;if(e)m="NumberFormat",h.push("places: "+(a.isDefined(g.places)&&(!f||0<g.places)?Number(g.places):"Infinity")),h.length&&(m+="("+h.join(",")+")");else if(g.dateFormat)m="DateFormat"+this._insertOffset(this._dateFormats[g.dateFormat]||this._dateFormats.shortDateShortTime);else return c?this._forceLTR(b):b;b=a.substitute({myKey:b},"${myKey:"+m+"}",d)||"";e&&!l&&r.group&&(b=b.replace(RegExp("\\"+r.group,"g"),
""));return c?this._forceLTR(b):b},_forceLTR:function(a){var b=d("ie");return b&&10>=b?a:"\x3cspan class\x3d'esriNumericValue'\x3e"+a+"\x3c/span\x3e"},_insertOffset:function(b){b&&(b=a.isDefined(this.utcOffset)?b.replace(/\)\s*$/,", utcOffset:"+this.utcOffset+")"):b);return b},_getDomainName:function(b,c,d,f,e){var g,m;c&&a.isDefined(d)&&k.some(c,function(a){if(a.id==d){if((g=a.domains&&a.domains[f])&&"inherited"===g.type)g=this._getLayerDomain(b,f),m=!0;return!0}return!1},this);!m&&!g&&(g=this._getLayerDomain(b,
f));if(g&&g.codedValues){var h;k.some(g.codedValues,function(a){return a.code==e?(h=a.name,!0):!1});return h}},_getLayerDomain:function(a,b){var c=a.fields;if(c){var d;k.some(c,function(a){return a.name===b?(d=a.domain,!0):!1});return d}},_getTypeName:function(a,b){var c=a.types;if(c){var d;k.some(c,function(a){return a.id==b?(d=a.name,!0):!1});return d}},_getRelatedRecords:function(a){var b=a.graphic,c=new e,d;this._relatedLayersInfo?this._queryRelatedLayers(b).then(n.hitch(this,function(a){this._setRelatedRecords(b,
a);c.resolve(a)}),n.hitch(this,this._handlerErrorResponse,c)):this._getRelatedLayersInfo(a).then(n.hitch(this,function(a){for(d in a)a.hasOwnProperty(d)&&a[d]&&(this._relatedLayersInfo[d].relatedLayerInfo=a[d]);this._queryRelatedLayers(b).then(n.hitch(this,function(a){this._setRelatedRecords(b,a);c.resolve(a)}),n.hitch(this,this._handlerErrorResponse,c))}),n.hitch(this,this._handlerErrorResponse,c));return c.promise},_getRelatedLayersInfo:function(a){var c=a.fieldsInfo,d,e,g={};d=a.graphic.getLayer();
this._relatedLayersInfo||(this._relatedLayersInfo={});k.forEach(c,function(a){var b,c,f,e;b=this._fromRelatedFieldName(a.fieldName);c=b[0];b=b[1];c&&(this._relatedLayersInfo[c]||(k.some(d.relationships,function(a){if(a.id==c)return e=a,!0}),e&&(this._relatedLayersInfo[c]={relation:e,relatedFields:[],outStatistics:[]})),this._relatedLayersInfo[c]&&(this._relatedLayersInfo[c].relatedFields.push(b),a.statisticType&&(f=new t,f.statisticType=a.statisticType,f.onStatisticField=b,f.outStatisticFieldName=
b,this._relatedLayersInfo[c].outStatistics.push(f))))},this);for(e in this._relatedLayersInfo)this._relatedLayersInfo.hasOwnProperty(e)&&this._relatedLayersInfo[e]&&(a=this._relatedLayersInfo[e].relation,a=d.url.replace(/[0-9]+$/,a.relatedTableId),this._relatedLayersInfo[e].relatedLayerUrl=a,g[e]=f({url:a,content:{f:"json"},callbackParamName:"callback"}));return b(g)},_queryRelatedLayers:function(a){var c={},d;for(d in this._relatedLayersInfo)this._relatedLayersInfo.hasOwnProperty(d)&&(c[d]=this._queryRelatedLayer({graphic:a,
relatedInfo:this._relatedLayersInfo[d]}));return b(c)},_queryRelatedLayer:function(a){var c,d,f,e,g,h,l,n,q,r;c=a.graphic;d=c.getLayer().url.match(/[0-9]+$/g)[0];n=a.relatedInfo;l=n.relatedLayerInfo;q=n.relatedLayerUrl;r=n.relation;k.some(l.relationships,function(a){if(a.relatedTableId===parseInt(d,10))return f=a,!0},this);f&&(a=new m,k.some(l.fields,function(a){if(a.name===f.keyField)return g=-1!==k.indexOf(["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble"],
a.type)?"number":"string",!0}),e="string"===g?f.keyField+"\x3d'"+c.attributes[r.keyField]+"'":f.keyField+"\x3d"+c.attributes[r.keyField],a.where=e,a.outFields=n.relatedFields,n.outStatistics&&(0<n.outStatistics.length&&l.supportsStatistics)&&(h=new m,h.where=a.where,h.outFields=a.outFields,h.outStatistics=n.outStatistics),c=new s(q),e=[],e.push(c.execute(a)),h&&e.push(c.execute(h)));return b(e)},_setRelatedRecords:function(b,c){this._relatedInfo=[];for(var d in c)if(c.hasOwnProperty(d)&&c[d]){var f=
c[d];this._relatedInfo[d]={};this._relatedInfo[d].relatedFeatures=f[0].features;a.isDefined(f[1])&&(this._relatedInfo[d].relatedStatsFeatures=f[1].features)}},_handlerErrorResponse:function(a,b){a.reject(b)},_fromRelatedFieldName:function(a){var b=[];-1!==a.indexOf(this._relatedFieldPrefix)&&(a=a.split("/"),b=a.slice(1));return b},_toRelatedFieldName:function(a){var b="";a&&0<a.length&&(b=this._relatedFieldPrefix+a[0]+"/"+a[1]);return b}});g("extend-esri")&&(c.PopupInfo=c.PopupInfoTemplate=l);return l})},
"esri/dijit/PopupRenderer":function(){define("require dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/_base/kernel dojo/has dojo/query dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-style dijit/_Widget dijit/_Templated ../kernel ./_EventedWidget dojo/i18n!../nls/jsapi dojo/NodeList-dom".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v){var A=0;n=n([u,s,t],{declaredClass:"esri.dijit._PopupRenderer",constructor:function(){this._nls=q.mixin({},v.widgets.popup)},
templateString:"\x3cdiv class\x3d'esriViewPopup'\x3e\x3cdiv class\x3d'mainSection'\x3e\x3cdiv class\x3d'header' dojoAttachPoint\x3d'_title'\x3e\x3c/div\x3e\x3cdiv class\x3d'hzLine'\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d'_description'\x3e\x3c/div\x3e\x3cdiv class\x3d'break'\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'attachmentsSection hidden'\x3e\x3cdiv\x3e${_nls.NLS_attach}:\x3c/div\x3e\x3cul dojoAttachPoint\x3d'_attachmentsList'\x3e\x3c/ul\x3e\x3cdiv class\x3d'break'\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'mediaSection hidden'\x3e\x3cdiv class\x3d'header' dojoAttachPoint\x3d'_mediaTitle'\x3e\x3c/div\x3e\x3cdiv class\x3d'hzLine'\x3e\x3c/div\x3e\x3cdiv class\x3d'caption' dojoAttachPoint\x3d'_mediaCaption'\x3e\x3c/div\x3e\x3cdiv class\x3d'gallery' dojoAttachPoint\x3d'_gallery'\x3e\x3cdiv class\x3d'mediaHandle prev' dojoAttachPoint\x3d'_prevMedia' dojoAttachEvent\x3d'onclick: _goToPrevMedia'\x3e\x3c/div\x3e\x3cdiv class\x3d'mediaHandle next' dojoAttachPoint\x3d'_nextMedia' dojoAttachEvent\x3d'onclick: _goToNextMedia'\x3e\x3c/div\x3e\x3cul class\x3d'summary'\x3e\x3cli class\x3d'image mediaCount hidden' dojoAttachPoint\x3d'_imageCount'\x3e0\x3c/li\x3e\x3cli class\x3d'image mediaIcon hidden'\x3e\x3c/li\x3e\x3cli class\x3d'chart mediaCount hidden' dojoAttachPoint\x3d'_chartCount'\x3e0\x3c/li\x3e\x3cli class\x3d'chart mediaIcon hidden'\x3e\x3c/li\x3e\x3c/ul\x3e\x3cdiv class\x3d'frame' dojoAttachPoint\x3d'_mediaFrame'\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'editSummarySection hidden' dojoAttachPoint\x3d'_editSummarySection'\x3e\x3cdiv class\x3d'break'\x3e\x3c/div\x3e\x3cdiv class\x3d'break hidden' dojoAttachPoint\x3d'_mediaBreak'\x3e\x3c/div\x3e\x3cdiv class\x3d'editSummary' dojoAttachPoint\x3d'_editSummary'\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e",
showTitle:!0,startup:function(){this.inherited(arguments);this.template.getComponents(this.graphic).then(q.hitch(this,this._handleComponentsSuccess),q.hitch(this,this._handleComponentsError))},destroy:function(){this._dfd&&this._dfd.cancel();this._destroyFrame();this.template=this.graphic=this._nls=this._mediaInfos=this._mediaPtr=this._dfd=null;this.inherited(arguments)},_goToPrevMedia:function(){0>this._mediaPtr-1||(this._mediaPtr--,this._updateUI(),this._displayMedia())},_goToNextMedia:function(){this._mediaPtr+
1!==this._mediaInfos.length&&(this._mediaPtr++,this._updateUI(),this._displayMedia())},_updateUI:function(){var b=this._mediaInfos,d=b.length,f=this.domNode,e=this._prevMedia,m=this._nextMedia;if(1<d){var k=0,l=0;h.forEach(b,function(a){"image"===a.type?k++:-1!==a.type.indexOf("chart")&&l++});k&&(a.set(this._imageCount,"innerHTML",k),g.query(".summary .image",f).removeClass("hidden"));l&&(a.set(this._chartCount,"innerHTML",l),g.query(".summary .chart",f).removeClass("hidden"))}else g.query(".summary",
f).addClass("hidden"),c.add(e,"hidden"),c.add(m,"hidden");b=this._mediaPtr;0===b?c.add(e,"hidden"):c.remove(e,"hidden");b===d-1?c.add(m,"hidden"):c.remove(m,"hidden");this._destroyFrame()},_displayMedia:function(){var b=this._mediaInfos[this._mediaPtr],d=b.title,f=b.caption,e=g.query(".mediaSection .hzLine",this.domNode)[0];a.set(this._mediaTitle,"innerHTML",d);c[d?"remove":"add"](this._mediaTitle,"hidden");a.set(this._mediaCaption,"innerHTML",f);c[f?"remove":"add"](this._mediaCaption,"hidden");c[d&&
f?"remove":"add"](e,"hidden");this._rid=null;if("image"===b.type)this._showImage(b.value);else{var m=this,d=["dojox/charting/Chart2D","dojox/charting/action2d/Tooltip"],f=b.value.theme||this.chartTheme;q.isString(f)&&(f=f.replace(/\./gi,"/"),-1===f.indexOf("/")&&(f="dojox/charting/themes/"+f));f||(f="./Rainbow");d.push(f);try{var h=this._rid=A++;l(d,function(a,c,d){h===m._rid&&(m._rid=null,m._showChart(b.type,b.value,a,c,d))})}catch(k){}}},_showImage:function(b){c.add(this._mediaFrame,"image");var d=
m.get(this._gallery,"height"),f="\x3cimg class\x3d'esriPopupMediaImage' src\x3d'"+b.sourceURL+"' /\x3e";b.linkURL&&(f="\x3ca target\x3d'_blank' href\x3d'"+b.linkURL+"'\x3e"+f+"\x3c/a\x3e");a.set(this._mediaFrame,"innerHTML",f);var e=g.query(".esriPopupMediaImage",this._mediaFrame)[0],h=this,l;l=k.connect(e,"onload",function(){k.disconnect(l);l=null;h._imageLoaded(e,d)})},_showChart:function(a,b,d,e,g){c.remove(this._mediaFrame,"image");d=this._chart=new d(f.create("div",{"class":"chart"},this._mediaFrame),
{margins:{l:4,t:4,r:4,b:4}});g&&d.setTheme(g);switch(a){case "piechart":d.addPlot("default",{type:"Pie",labels:!1});d.addSeries("Series A",b.fields);break;case "linechart":d.addPlot("default",{type:"Markers"});d.addAxis("x",{min:0,majorTicks:!1,minorTicks:!1,majorLabels:!1,minorLabels:!1});d.addAxis("y",{includeZero:!0,vertical:!0,fixUpper:"minor"});h.forEach(b.fields,function(a,b){a.x=b+1});d.addSeries("Series A",b.fields);break;case "columnchart":d.addPlot("default",{type:"Columns",gap:3});d.addAxis("y",
{includeZero:!0,vertical:!0,fixUpper:"minor"});d.addSeries("Series A",b.fields);break;case "barchart":d.addPlot("default",{type:"Bars",gap:3}),d.addAxis("x",{includeZero:!0,fixUpper:"minor",minorLabels:!1}),d.addAxis("y",{vertical:!0,majorTicks:!1,minorTicks:!1,majorLabels:!1,minorLabels:!1}),d.addSeries("Series A",b.fields)}this._action=new e(d);d.render()},_destroyFrame:function(){this._rid=null;this._chart&&(this._chart.destroy(),this._chart=null);this._action&&(this._action.destroy(),this._action=
null);a.set(this._mediaFrame,"innerHTML","")},_imageLoaded:function(a,b){var c=a.height;c<b&&(c=Math.round((b-c)/2),m.set(a,"marginTop",c+"px"))},_attListHandler:function(b,c){if(b===this._dfd){this._dfd=null;var d="";!(c instanceof Error)&&(c&&c.length)&&h.forEach(c,function(a){d+="\x3cli\x3e";d+="\x3ca href\x3d'"+a.url+"' target\x3d'_blank'\x3e"+(a.name||"[No name]")+"\x3c/a\x3e";d+="\x3c/li\x3e"});a.set(this._attachmentsList,"innerHTML",d||"\x3cli\x3e"+this._nls.NLS_noAttach+"\x3c/li\x3e")}},_handleComponentsSuccess:function(d){if(d){var f=
this.showTitle?d.title:"",e=d.description,m=d.fields,k=d.mediaInfos,l=this.domNode,n=this._nls,r=this.template,s=this.graphic;this._prevMedia.title=n.NLS_prevMedia;this._nextMedia.title=n.NLS_nextMedia;a.set(this._title,"innerHTML",f);f||c.add(this._title,"hidden");!e&&m&&(e="",h.forEach(m,function(a){e+="\x3ctr valign\x3d'top'\x3e";e+="\x3ctd class\x3d'attrName'\x3e"+a[0]+"\x3c/td\x3e";e+="\x3ctd class\x3d'attrValue'\x3e"+a[1].replace(/^\s*(https?:\/\/[^\s]+)\s*$/i,"\x3ca target\x3d'_blank' href\x3d'$1' title\x3d'$1'\x3e"+
n.NLS_moreInfo+"\x3c/a\x3e")+"\x3c/td\x3e";e+="\x3c/tr\x3e"}),e&&(e="\x3ctable class\x3d'attrTable' cellpadding\x3d'0px' cellspacing\x3d'0px'\x3e"+e+"\x3c/table\x3e"));a.set(this._description,"innerHTML",e);e||c.add(this._description,"hidden");g.query("a",this._description).forEach(function(b){a.set(b,"target","_blank")});f&&e?g.query(".mainSection .hzLine",l).removeClass("hidden"):f||e?g.query(".mainSection .hzLine",l).addClass("hidden"):g.query(".mainSection",l).addClass("hidden");if(f=this._dfd=
r.getAttachments(s))f.addBoth(q.hitch(this,this._attListHandler,f)),a.set(this._attachmentsList,"innerHTML","\x3cli\x3e"+n.NLS_searching+"...\x3c/li\x3e"),g.query(".attachmentsSection",l).removeClass("hidden");k&&k.length&&(g.query(".mediaSection",l).removeClass("hidden"),b.setSelectable(this._mediaFrame,!1),this._mediaInfos=k,this._mediaPtr=0,this._updateUI(),this._displayMedia());d.editSummary&&(a.set(this._editSummary,"innerHTML",d.editSummary),k&&k.length&&c.remove(this._mediaBreak,"hidden"),
c.remove(this._editSummarySection,"hidden"))}},_handleComponentsError:function(a){}});e("extend-esri")&&q.setObject("dijit._PopupRenderer",n,r);return n})},"esri/tasks/GeometryService":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/json dojo/_base/Deferred dojo/has ../kernel ../request ../deferredUtils ./Task ../geometry/Extent ../geometry/Polyline ../geometry/Polygon ../geometry/Multipoint ../geometry/jsonUtils".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t){l=
l(a,{declaredClass:"esri.tasks.GeometryService",_eventMap:{"areas-and-lengths-complete":["result"],"auto-complete-complete":["geometries"],"buffer-complete":["geometries"],"convex-hull-complete":["geometry"],"cut-complete":["result"],"difference-complete":["geometries"],"distance-complete":["distance"],"generalize-complete":["geometries"],"intersect-complete":["geometries"],"label-points-complete":["geometries"],"lengths-complete":["result"],"offset-complete":["geometries"],"project-complete":["geometries"],
"relation-complete":["relations"],"reshape-complete":["geometry"],"simplify-complete":["geometries"],"trim-extend-complete":["geometries"],"union-complete":["geometry"]},constructor:function(a){a=n.hitch;this._projectHandler=a(this,this._projectHandler);this._simplifyHandler=a(this,this._simplifyHandler);this._bufferHandler=a(this,this._bufferHandler);this._areasAndLengthsHandler=a(this,this._areasAndLengthsHandler);this._lengthsHandler=a(this,this._lengthsHandler);this._labelPointsHandler=a(this,
this._labelPointsHandler);this._relationHandler=a(this,this._relationHandler);this._convexHullHandler=a(this,this._convexHullHandler);this._unionHandler=a(this,this._unionHandler);this._autoCompleteHandler=a(this,this._autoCompleteHandler);this._reshapeHandler=a(this,this._reshapeHandler);this._cutHandler=a(this,this._cutHandler);this._intersectHandler=a(this,this._intersectHandler);this._differenceHandler=a(this,this._differenceHandler);this._trimExtendHandler=a(this,this._trimExtendHandler);this._densifyHandler=
a(this,this._densifyHandler);this._generalizeHandler=a(this,this._densifyHandler);this._offsetHandler=a(this,this._offsetHandler);this._distanceHandler=a(this,this._distanceHandler);this._toGeoCoordinateHandler=a(this,this._toGeoCoordinateHandler);this._fromGeoCoordinateHandler=a(this,this._fromGeoCoordinateHandler);this.registerConnectEvents()},_encodeGeometries:function(a){var b=[],c,d=a.length;for(c=0;c<d;c++)b.push(a[c].toJson());return{geometryType:t.getJsonType(a[0]),geometries:b}},_decodeGeometries:function(a,
b,c){var d=t.getGeometryType(b);a=a.geometries;var f=[],e={spatialReference:c.toJson()},g=n.mixin;k.forEach(a,function(a,b){f[b]=new d(g(a,e))});return f},_toProjectGeometry:function(a){var b=a.spatialReference.toJson();return a instanceof c?new m({rings:[[[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin]]],spatialReference:b}):new f({paths:[[].concat(a.points)],spatialReference:b})},_fromProjectedGeometry:function(a,b,d){return"esriGeometryEnvelope"===b?(a=a.rings[0],
new c(a[0][0],a[0][1],a[2][0],a[2][1],d)):new s({points:a.paths[0],spatialReference:d.toJson()})},project:function(a,c,f,e){var g=n.mixin({},this._url.query,{f:"json"}),m;a.geometries?(e=f,f=c,c=a.outSR,m=a.geometries[0],g=n.mixin(g,a.toJson())):(m=a[0],g=n.mixin(g,{outSR:c.wkid||q.toJson(c.toJson()),inSR:m.spatialReference.wkid||q.toJson(m.spatialReference.toJson()),geometries:q.toJson(this._encodeGeometries(a))}));var k=t.getJsonType(m),l=this._projectHandler,s=this._errorHandler,D=new h(b._dfdCanceller);
D._pendingDfd=d({url:this._url.path+"/project",content:g,callbackParamName:"callback",load:function(a,b){l(a,b,k,c,f,e,D)},error:function(a){s(a,e,D)}});return D},_projectHandler:function(a,b,c,d,f,e,g){try{var m=this._decodeGeometries(a,c,d);this._successHandler([m],"onProjectComplete",f,g)}catch(h){this._errorHandler(h,e,g)}},onProjectComplete:function(){},simplify:function(a,c,f){var e=a[0].spatialReference,g=n.mixin({},this._url.query,{f:"json",sr:e.wkid?e.wkid:q.toJson(e.toJson()),geometries:q.toJson(this._encodeGeometries(a))}),
m=t.getJsonType(a[0]),k=this._simplifyHandler,l=this._errorHandler,s=new h(b._dfdCanceller);s._pendingDfd=d({url:this._url.path+"/simplify",content:g,callbackParamName:"callback",load:function(a,b){k(a,b,m,e,c,f,s)},error:function(a){l(a,f,s)}});return s},_simplifyHandler:function(a,b,c,d,f,e,g){try{var m=this._decodeGeometries(a,c,d);this._successHandler([m],"onSimplifyComplete",f,g)}catch(h){this._errorHandler(h,e,g)}},onSimplifyComplete:function(){},convexHull:function(a,c,f){var e=a[0].spatialReference;
a=n.mixin({},this._url.query,{f:"json",sr:q.toJson(e.toJson()),geometries:q.toJson(this._encodeGeometries(a))});var g=this._convexHullHandler,m=this._errorHandler,k=new h(b._dfdCanceller);k._pendingDfd=d({url:this._url.path+"/convexHull",content:a,callbackParamName:"callback",load:function(a,b){g(a,b,e,c,f,k)},error:function(a){m(a,f,k)}});return k},_convexHullHandler:function(a,b,c,d,f,e){try{var g=t.fromJson(a.geometry).setSpatialReference(c);this._successHandler([g],"onConvexHullComplete",d,e)}catch(m){this._errorHandler(m,
f,e)}},onConvexHullComplete:function(){},union:function(a,c,f){var e=a[0].spatialReference;a=n.mixin({},this._url.query,{f:"json",sr:q.toJson(e.toJson()),geometries:q.toJson(this._encodeGeometries(a))});var g=this._unionHandler,m=this._errorHandler,k=new h(b._dfdCanceller);k._pendingDfd=d({url:this._url.path+"/union",content:a,callbackParamName:"callback",load:function(a,b){g(a,b,e,c,f,k)},error:function(a){m(a,f,k)}});return k},_unionHandler:function(a,b,c,d,f,e){try{var g=t.fromJson(a.geometry).setSpatialReference(c);
this._successHandler([g],"onUnionComplete",d,e)}catch(m){this._errorHandler(m,f,e)}},onUnionComplete:function(){},autoComplete:function(a,c,f,e){var g=a[0].spatialReference;a=n.mixin({},this._url.query,{f:"json",sr:q.toJson(g.toJson()),polygons:q.toJson(this._encodeGeometries(a).geometries),polylines:q.toJson(this._encodeGeometries(c).geometries)});var m=this._autoCompleteHandler,k=this._errorHandler,l=new h(b._dfdCanceller);l._pendingDfd=d({url:this._url.path+"/autoComplete",content:a,callbackParamName:"callback",
load:function(a,b){m(a,b,g,f,e,l)},error:function(a){k(a,e,l)}});return l},_autoCompleteHandler:function(a,b,c,d,f,e){try{var g=a.geometries;a=[];var h,k=g.length;for(h=0;h<k;h++)a[h]=new m({spatialReference:c,rings:g[h].rings});this._successHandler([a],"onAutoCompleteComplete",d,e)}catch(l){this._errorHandler(l,f,e)}},onAutoCompleteComplete:function(){},reshape:function(a,c,f,e){var g=a.spatialReference;a=n.mixin({},this._url.query,{f:"json",sr:q.toJson(g.toJson()),target:q.toJson({geometryType:t.getJsonType(a),
geometry:a.toJson()}),reshaper:q.toJson(c.toJson())});var m=this._reshapeHandler,k=this._errorHandler,l=new h(b._dfdCanceller);l._pendingDfd=d({url:this._url.path+"/reshape",content:a,callbackParamName:"callback",load:function(a,b){m(a,b,g,f,e,l)},error:function(a){k(a,e,l)}});return l},_reshapeHandler:function(a,b,c,d,f,e){try{var g=t.fromJson(a.geometry).setSpatialReference(c);this._successHandler([g],"onReshapeComplete",d,e)}catch(m){this._errorHandler(m,f,e)}},onReshapeComplete:function(){},cut:function(a,
c,f,e){var g=a[0].spatialReference,m=k.map(a,function(a){return a.toJson()});a=n.mixin({},this._url.query,{f:"json",sr:q.toJson(g.toJson()),target:q.toJson({geometryType:t.getJsonType(a[0]),geometries:m}),cutter:q.toJson(c.toJson())});var l=this._cutHandler,s=this._errorHandler,B=new h(b._dfdCanceller);B._pendingDfd=d({url:this._url.path+"/cut",content:a,callbackParamName:"callback",load:function(a,b){l(a,b,g,f,e,B)},error:function(a){s(a,e,B)}});return B},_cutHandler:function(a,b,c,d,f,e){try{var g=
a.geometries,m={};m.cutIndexes=a.cutIndexes;m.geometries=[];k.forEach(g,function(a){m.geometries.push(t.fromJson(a).setSpatialReference(c))});this._successHandler([m],"onCutComplete",d,e)}catch(h){this._errorHandler(h,f,e)}},onCutComplete:function(){},intersect:function(a,c,f,e){var g=a[0].spatialReference;a=n.mixin({},this._url.query,{f:"json",sr:q.toJson(g.toJson()),geometries:q.toJson(this._encodeGeometries(a)),geometry:q.toJson({geometryType:t.getJsonType(c),geometry:c.toJson()})});var m=this._intersectHandler,
k=this._errorHandler,l=new h(b._dfdCanceller);l._pendingDfd=d({url:this._url.path+"/intersect",content:a,callbackParamName:"callback",load:function(a,b){m(a,b,g,f,e,l)},error:function(a){k(a,e,l)}});return l},_intersectHandler:function(a,b,c,d,f,e){try{var g=[];k.forEach(a.geometries,function(a){g.push(t.fromJson(a).setSpatialReference(c))});this._successHandler([g],"onIntersectComplete",d,e)}catch(m){this._errorHandler(m,f,e)}},onIntersectComplete:function(){},difference:function(a,c,f,e){var g=
a[0].spatialReference;a=n.mixin({},this._url.query,{f:"json",sr:q.toJson(g.toJson()),geometries:q.toJson(this._encodeGeometries(a)),geometry:q.toJson({geometryType:t.getJsonType(c),geometry:c.toJson()})});var m=this._differenceHandler,k=this._errorHandler,l=new h(b._dfdCanceller);l._pendingDfd=d({url:this._url.path+"/difference",content:a,callbackParamName:"callback",load:function(a,b){m(a,b,g,f,e,l)},error:function(a){k(a,e,l)}});return l},_differenceHandler:function(a,b,c,d,f,e){try{var g=[];k.forEach(a.geometries,
function(a){g.push(t.fromJson(a).setSpatialReference(c))});this._successHandler([g],"onDifferenceComplete",d,e)}catch(m){this._errorHandler(m,f,e)}},onDifferenceComplete:function(){},buffer:function(a,c,f){var e=n.mixin({},this._url.query,{f:"json"},a.toJson()),g=a.outSpatialReference||a.geometries[0].spatialReference,m=this._bufferHandler,k=this._errorHandler,l=new h(b._dfdCanceller);l._pendingDfd=d({url:this._url.path+"/buffer",content:e,callbackParamName:"callback",load:function(a,b){m(a,b,g,c,
f,l)},error:function(a){k(a,f,l)}});return l},_bufferHandler:function(a,b,c,d,f,e){try{var g=a.geometries;a=[];var h,k=g.length;for(h=0;h<k;h++)a[h]=new m({spatialReference:c,rings:g[h].rings});this._successHandler([a],"onBufferComplete",d,e)}catch(l){this._errorHandler(l,f,e)}},onBufferComplete:function(){},areasAndLengths:function(a,c,f){a=n.mixin({},this._url.query,{f:"json"},a.toJson());var e=this._areasAndLengthsHandler,g=this._errorHandler,m=new h(b._dfdCanceller);m._pendingDfd=d({url:this._url.path+
"/areasAndLengths",content:a,callbackParamName:"callback",load:function(a,b){e(a,b,c,f,m)},error:function(a){g(a,f,m)}});return m},_areasAndLengthsHandler:function(a,b,c,d,f){try{this._successHandler([a],"onAreasAndLengthsComplete",c,f)}catch(e){this._errorHandler(e,d,f)}},onAreasAndLengthsComplete:function(){},lengths:function(a,c,f){a=n.mixin({},this._url.query,{f:"json"},a.toJson());var e=this._lengthsHandler,g=this._errorHandler,m=new h(b._dfdCanceller);m._pendingDfd=d({url:this._url.path+"/lengths",
content:a,callbackParamName:"callback",load:function(a,b){e(a,b,c,f,m)},error:function(a){g(a,f,m)}});return m},_lengthsHandler:function(a,b,c,d,f){try{this._successHandler([a],"onLengthsComplete",c,f)}catch(e){this._errorHandler(e,d,f)}},onLengthsComplete:function(){},labelPoints:function(a,c,f){var e=k.map(a,function(a){return a.toJson()}),g=a[0].spatialReference,e=n.mixin({},this._url.query,{f:"json",sr:g.wkid?g.wkid:q.toJson(g.toJson()),polygons:q.toJson(e)}),m=this._labelPointsHandler,l=this._errorHandler,
s=new h(b._dfdCanceller);s._pendingDfd=d({url:this._url.path+"/labelPoints",content:e,callbackParamName:"callback",load:function(b,d){m(b,d,a,g,c,f,s)},error:function(a){l(a,f,s)}});return s},_labelPointsHandler:function(a,b,c,d,f,e,g){try{var m=[];k.forEach(a.labelPoints,function(a){m.push(t.fromJson(a).setSpatialReference(d))});this._successHandler([m],"onLabelPointsComplete",f,g)}catch(h){this._errorHandler(h,e,g)}},onLabelPointsComplete:function(){},relation:function(a,c,f){a=n.mixin({},this._url.query,
{f:"json"},a.toJson());var e=this._relationHandler,g=this._errorHandler,m=new h(b._dfdCanceller);m._pendingDfd=d({url:this._url.path+"/relation",content:a,callbackParamName:"callback",load:function(a,b){e(a,b,c,f,m)},error:function(a){g(a,f,m)}});return m},_relationHandler:function(a,b,c,d,f){try{this._successHandler([a.relations],"onRelationComplete",c,f)}catch(e){this._errorHandler(e,d,f)}},onRelationComplete:function(){},trimExtend:function(a,c,f){var e=n.mixin({},this._url.query,{f:"json"},a.toJson()),
g=a.sr,m=this._trimExtendHandler,k=this._errorHandler,l=new h(b._dfdCanceller);l._pendingDfd=d({url:this._url.path+"/trimExtend",content:e,callbackParamName:"callback",load:function(a,b){m(a,b,g,c,f,l)},error:function(a){k(a,f,l)}});return l},_trimExtendHandler:function(a,b,c,d,e,g){try{var m=a.geometries;a=[];var h,k=m.length;for(h=0;h<k;h++)a[h]=new f({spatialReference:c,paths:m[h].paths});this._successHandler([a],"onTrimExtendComplete",d,g)}catch(l){this._errorHandler(l,e,g)}},onTrimExtendComplete:function(){},
densify:function(a,c,f){var e=n.mixin({},this._url.query,{f:"json"},a.toJson()),g=a.geometries[0].spatialReference,m=this._densifyHandler,k=this._errorHandler,l=new h(b._dfdCanceller);l._pendingDfd=d({url:this._url.path+"/densify",content:e,callbackParamName:"callback",load:function(a,b){m(a,b,g,c,f,l)},error:function(a){k(a,f,l)}});return l},_densifyHandler:function(a,b,c,d,f,e){try{var g=[];k.forEach(a.geometries,function(a){g.push(t.fromJson(a).setSpatialReference(c))});this._successHandler([g],
"onDensifyComplete",d,e)}catch(m){this._errorHandler(m,f,e)}},onDensifyComplete:function(){},generalize:function(a,c,f){var e=n.mixin({},this._url.query,{f:"json"},a.toJson()),g=a.geometries[0].spatialReference,m=this._generalizeHandler,k=this._errorHandler,l=new h(b._dfdCanceller);l._pendingDfd=d({url:this._url.path+"/generalize",content:e,callbackParamName:"callback",load:function(a,b){m(a,b,g,c,f,l)},error:function(a){k(a,f,l)}});return l},_generalizeHandler:function(a,b,c,d,f,e){try{var g=[];
k.forEach(a.geometries,function(a){g.push(t.fromJson(a).setSpatialReference(c))});this._successHandler([g],"onGeneralizeComplete",d,e)}catch(m){this._errorHandler(m,f,e)}},onGeneralizeComplete:function(){},offset:function(a,c,f){var e=n.mixin({},this._url.query,{f:"json"},a.toJson()),g=a.geometries[0].spatialReference,m=this._offsetHandler,k=this._errorHandler,l=new h(b._dfdCanceller);l._pendingDfd=d({url:this._url.path+"/offset",content:e,callbackParamName:"callback",load:function(a,b){m(a,b,g,c,
f,l)},error:function(a){k(a,f,l)}});return l},_offsetHandler:function(a,b,c,d,f,e){try{var g=[];k.forEach(a.geometries,function(a){g.push(t.fromJson(a).setSpatialReference(c))});this._successHandler([g],"onOffsetComplete",d,e)}catch(m){this._errorHandler(m,f,e)}},onOffsetComplete:function(){},distance:function(a,c,f){var e=n.mixin({},this._url.query,{f:"json"},a.toJson()),g=a.geometry1.spatialReference,m=this._distanceHandler,k=this._errorHandler,l=new h(b._dfdCanceller);l._pendingDfd=d({url:this._url.path+
"/distance",content:e,callbackParamName:"callback",load:function(a,b){m(a,b,g,c,f,l)},error:function(a){k(a,f,l)}});return l},_distanceHandler:function(a,b,c,d,f,e){try{a=a&&a.distance,this._successHandler([a],"onDistanceComplete",d,e)}catch(g){this._errorHandler(g,f,e)}},onDistanceComplete:function(){},toGeoCoordinateString:function(a,c,f){var e={};n.isObject(a.sr)?e.sr=a.sr.wkid||q.toJson(a.sr.toJson()):e.sr=a.sr;e.coordinates=q.toJson(a.coordinates);e.conversionType=a.conversionType||"MGRS";e.conversionMode=
a.conversionMode;e.numOfDigits=a.numOfDigits;e.rounding=a.rounding;e.addSpaces=a.addSpaces;a=n.mixin({},this._url.query,{f:"json"},e);var g=this._toGeoCoordinateHandler,m=this._errorHandler,k=new h(b._dfdCanceller);k._pendingDfd=d({url:this._url.path+"/toGeoCoordinateString",content:a,callbackParamName:"callback",load:function(a,b){g(a,b,c,f,k)},error:function(a){m(a,f,k)}});return k},_toGeoCoordinateHandler:function(a,b,c,d,f){try{this._successHandler([a.strings],"onToGeoCoordinateStringComplete",
c,f)}catch(e){this._errorHandler(e,d,f)}},onToGeoCoordinateStringComplete:function(){},fromGeoCoordinateString:function(a,c,f){var e={};n.isObject(a.sr)?e.sr=a.sr.wkid||q.toJson(a.sr.toJson()):e.sr=a.sr;e.strings=q.toJson(a.strings);e.conversionType=a.conversionType||"MGRS";e.conversionMode=a.conversionMode;a=n.mixin({},this._url.query,{f:"json"},e);var g=this._fromGeoCoordinateHandler,m=this._errorHandler,k=new h(b._dfdCanceller);k._pendingDfd=d({url:this._url.path+"/fromGeoCoordinateString",content:a,
callbackParamName:"callback",load:function(a,b){g(a,b,c,f,k)},error:function(a){m(a,f,k)}});return k},_fromGeoCoordinateHandler:function(a,b,c,d,f){try{this._successHandler([a.coordinates],"onToGeoCoordinateStringComplete",c,f)}catch(e){this._errorHandler(e,d,f)}},onFromGeoCoordinateStringComplete:function(){}});n.mixin(l,{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"});g("extend-esri")&&n.setObject("tasks.GeometryService",l,e);return l})},"dojo/NodeList-manipulate":function(){define("./query ./_base/lang ./_base/array ./dom-construct ./dom-attr ./NodeList-dom".split(" "),function(l,n,k,q,h){function g(b){for(;b.childNodes[0]&&1==b.childNodes[0].nodeType;)b=
b.childNodes[0];return b}function e(b,a){"string"==typeof b?(b=q.toDom(b,a&&a.ownerDocument),11==b.nodeType&&(b=b.childNodes[0])):1==b.nodeType&&b.parentNode&&(b=b.cloneNode(!1));return b}var d=l.NodeList;n.extend(d,{_placeMultiple:function(b,a){for(var c="string"==typeof b||b.nodeType?l(b):b,d=[],e=0;e<c.length;e++)for(var g=c[e],h=this.length,k=h-1,n;n=this[k];k--)0<e&&(n=this._cloneNode(n),d.unshift(n)),k==h-1?q.place(n,g,a):g.parentNode.insertBefore(n,g),g=n;d.length&&(d.unshift(0),d.unshift(this.length-
1),Array.prototype.splice.apply(this,d));return this},innerHTML:function(b){return arguments.length?this.addContent(b,"only"):this[0].innerHTML},text:function(b){if(arguments.length){for(var a=0,c;c=this[a];a++)1==c.nodeType&&h.set(c,"textContent",b);return this}for(var d="",a=0;c=this[a];a++)d+=h.get(c,"textContent");return d},val:function(b){if(arguments.length){for(var a=n.isArray(b),c=0,d;d=this[c];c++){var e=d.nodeName.toUpperCase(),g=d.type,h=a?b[c]:b;if("SELECT"==e){e=d.options;for(g=0;g<e.length;g++){var l=
e[g];l.selected=d.multiple?-1!=k.indexOf(b,l.value):l.value==h}}else"checkbox"==g||"radio"==g?d.checked=d.value==h:d.value=h}return this}if((d=this[0])&&1==d.nodeType){b=d.value||"";if("SELECT"==d.nodeName.toUpperCase()&&d.multiple){b=[];e=d.options;for(g=0;g<e.length;g++)l=e[g],l.selected&&b.push(l.value);b.length||(b=null)}return b}},append:function(b){return this.addContent(b,"last")},appendTo:function(b){return this._placeMultiple(b,"last")},prepend:function(b){return this.addContent(b,"first")},
prependTo:function(b){return this._placeMultiple(b,"first")},after:function(b){return this.addContent(b,"after")},insertAfter:function(b){return this._placeMultiple(b,"after")},before:function(b){return this.addContent(b,"before")},insertBefore:function(b){return this._placeMultiple(b,"before")},remove:d.prototype.orphan,wrap:function(b){if(this[0]){b=e(b,this[0]);for(var a=0,c;c=this[a];a++){var d=this._cloneNode(b);c.parentNode&&c.parentNode.replaceChild(d,c);g(d).appendChild(c)}}return this},wrapAll:function(b){if(this[0]){b=
e(b,this[0]);this[0].parentNode.replaceChild(b,this[0]);b=g(b);for(var a=0,c;c=this[a];a++)b.appendChild(c)}return this},wrapInner:function(b){if(this[0]){b=e(b,this[0]);for(var a=0;a<this.length;a++){var c=this._cloneNode(b);this._wrap(n._toArray(this[a].childNodes),null,this._NodeListCtor).wrapAll(c)}}return this},replaceWith:function(b){b=this._normalize(b,this[0]);for(var a=0,c;c=this[a];a++)this._place(b,c,"before",0<a),c.parentNode.removeChild(c);return this},replaceAll:function(b){b=l(b);for(var a=
this._normalize(this,this[0]),c=0,d;d=b[c];c++)this._place(a,d,"before",0<c),d.parentNode.removeChild(d);return this},clone:function(){for(var b=[],a=0;a<this.length;a++)b.push(this._cloneNode(this[a]));return this._wrap(b,this,this._NodeListCtor)}});d.prototype.html||(d.prototype.html=d.prototype.innerHTML);return d})},"esri/dijit/Attribution":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/kernel dojo/has dojo/query dojo/dom dojo/dom-attr dojo/dom-construct dojo/dom-style dojo/dom-class dojo/dom-geometry ../kernel ../lang ../SpatialReference ../geometry/webMercatorUtils ../geometry/Extent".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v){l=l(null,{declaredClass:"esri.dijit.Attribution",itemDelimiter:" | ",listClass:"esriAttributionList",itemClass:"esriAttributionItem",lastItemClass:"esriAttributionLastItem",delimiterClass:"esriAttributionDelim",constructor:function(a,c){try{n.mixin(this,a);this._attributions={};this._pendingDfds={};this._activeLayers=[];this._sharedLayers=[];var f=this.domNode=d.byId(c),e=this.map,g="\x3cspan class\x3d'"+this.listClass+"'\x3e\x3c/span\x3e";f&&(b.set(f,
"innerHTML",g),this.listNode=h.query(".esriAttributionList",f)[0],this.itemNodes={});this._eventConnections=[q.connect(e,"onLayerAdd",this,this._onLayerAdd),q.connect(e,"onLayerRemove",this,this._onLayerRemove),q.connect(e,"onLayerSuspend",this,this._onLayerSuspend),q.connect(e,"onLayerResume",this,this._onLayerResume),q.connect(e,"onExtentChange",this,this._onExtentChange)];if(e.loaded){var m=e.layerIds.concat(e.graphicsLayerIds),k,l,s=m.length;for(l=0;l<s;l++)k=e.getLayer(m[l]),k.loaded&&this._onLayerAdd(k)}}catch(r){}},
startup:function(){},destroy:function(){k.forEach(this._eventConnections,q.disconnect);a.destroy(this.listNode);this.map=this.domNode=this._eventConnections=this.listNode=this._attributions=this._pendingDfds=this.itemNodes=this._activeLayers=this._lastItem=this._sharedLayers=null},_onLayerAdd:function(a){try{var b=this._attributions,c=a.id;if(!t.isDefined(b[c])&&a.showAttribution)if(a.hasAttributionData){var d=a.getAttributionData();this._pendingDfds[c]=1;b[c]=d;d.addBoth(n.partial(this._onAttributionLoad,
this,a))}else b[c]=a.copyright||a.copyrightText||"",b[c]?(a.suspended||this._activeLayers.push(c),this._createNode(c)):this._onLayerRemove(a)}catch(f){}},_onAttributionLoad:function(a,b,c){var d=a._attributions,f=a._pendingDfds,e=b.id;if(f&&f[e]){delete f[e];if(!c||c instanceof Error)c="";d[e]=c?a._createIndexByLevel(c,-1!==b.declaredClass.toLowerCase().indexOf("vetiledlayer")):b.copyright||b.copyrightText||"";d[e]?(b.suspended||a._activeLayers.push(e),a._createNode(e)):a._onLayerRemove(b)}},_onLayerRemove:function(b){try{var c=
b.id,d=this.itemNodes,f,e=-1;this._onLayerSuspend(b);delete this._attributions[c];delete this._pendingDfds[c];f=this._getGroupIndex(c);-1!==f&&(e=k.indexOf(this._sharedLayers[f],c),-1!==e&&(this._sharedLayers[f].splice(e,1),1>=this._sharedLayers[f].length&&this._sharedLayers.splice(f,1)));d[c]&&-1===e&&a.destroy(d[c]);delete d[c];this._updateLastItem()}catch(g){}},_onLayerSuspend:function(a){try{var b=a.id;if(this._attributions[b]){var c=k.indexOf(this._activeLayers,b),d=this.itemNodes[b];-1!==c&&
this._activeLayers.splice(c,1);d&&this._toggleItem(d,!1,this._getGroupIndex(b))}}catch(f){}},_onLayerResume:function(a){try{var c=a.id,d=this._attributions[c],f=this.itemNodes[c];if(d&&(-1===k.indexOf(this._activeLayers,c)&&this._activeLayers.push(c),f)){var e=n.isString(d)?d:this._getContributorsList(d,this.map.extent,this.map.getLevel());n.isString(d)||b.set(f,"innerHTML",e?e+this._getDelimiter():"");e&&this._toggleItem(f,!0,this._getGroupIndex(c))}}catch(g){}},_onExtentChange:function(a,c,d,f){try{var e=
this._activeLayers,g=this._attributions,m=this.itemNodes,h,k,l,q,s=e.length||0;for(q=0;q<s;q++)if(k=e[q],l=g[k],(h=m[k])&&!n.isString(l)){var r=this._getContributorsList(l,a,f?f.level:-1);b.set(h,"innerHTML",r?r+this._getDelimiter():"");this._toggleItem(h,!!r,-1)}}catch(t){}this._adjustCursorStyle()},_createNode:function(b){if(this.domNode){var c=this._checkShareInfo(b),d=c&&c.sharedWith,d=d&&this.itemNodes[d],f=this.map,e=this._attributions[b],e=n.isString(e)?e:this._getContributorsList(e,f.extent,
f.getLevel()),f=!!e&&!f.getLayer(b).suspended;d?(this.itemNodes[b]=d,this._toggleItem(d,f,c.index)):(b=this.itemNodes[b]=a.create("span",{"class":this.itemClass,innerHTML:e?e+this._getDelimiter():"",style:{display:f?"inline":"none"}},this.listNode),f&&this._setLastItem(b));this._adjustCursorStyle()}},_checkShareInfo:function(a){var b=this._attributions,c,d,f=-1,e=b[a],g;if(e&&n.isString(e)){for(d in b)if(c=b[d],d!==a&&c&&n.isString(c)&&c.length===e.length&&c.toLowerCase()===e.toLowerCase()){g=d;break}b=
this._sharedLayers;c=b.length;if(g){for(d=0;d<c;d++)if(e=b[d],-1!==k.indexOf(e,g)){f=d;e.push(a);break}-1===f&&(f=b.push([g,a])-1)}}return-1<f?{index:f,sharedWith:g}:null},_getGroupIndex:function(a){var b=this._sharedLayers,c,d=b.length,f=-1;for(c=0;c<d;c++)if(-1!==k.indexOf(b[c],a)){f=c;break}return f},_getDelimiter:function(){var a=this.itemDelimiter;return a?"\x3cspan class\x3d'"+this.delimiterClass+"'\x3e"+a+"\x3c/span\x3e":""},_toggleItem:function(a,b,d){if(-1<d&&!b){d=this._sharedLayers[d];
var f,e=d.length,g=this._activeLayers;for(f=0;f<e;f++)if(-1!==k.indexOf(g,d[f]))return}c.set(a,"display",b?"inline":"none");this._updateLastItem()},_updateLastItem:function(){var a=this.listNode.childNodes,b;b=a.length;var d;if(b)for(b-=1;0<=b;b--)if(d=a[b],"none"!==c.get(d,"display")){this._setLastItem(d);break}this._adjustCursorStyle()},_setLastItem:function(a){var b=this.itemClass,c=this.lastItemClass;this._lastItem&&f.replace(this._lastItem,b,c);a&&(f.replace(a,c,b),this._lastItem=a)},_createIndexByLevel:function(a,
b){var c=a.contributors,d,f,e,g,m=c?c.length:0,h,k,l=new r(4326),n={},q;for(g=0;g<m;g++){d=c[g];k=(f=d.coverageAreas)?f.length:0;for(h=0;h<k;h++){e=f[h];q=e.bbox;q={extent:u.geographicToWebMercator(new v(q[1],q[0],q[3],q[2],l)),attribution:d.attribution||"",zoomMin:e.zoomMin-(b&&e.zoomMin?1:0),zoomMax:e.zoomMax-(b&&e.zoomMax?1:0),score:t.isDefined(e.score)?e.score:100,objectId:g};for(e=q.zoomMin;e<=q.zoomMax;e++)n[e]=n[e]||[],n[e].push(q)}}return n},_getContributorsList:function(a,b,c){var d="";if(b&&
t.isDefined(c)&&-1<c){a=a[c];c=b.getCenter().normalize();for(var f=a?a.length:0,e=[],g={},d=0;d<f;d++)b=a[d],!g[b.objectId]&&b.extent.contains(c)&&(g[b.objectId]=1,e.push(b));e.sort(function(a,b){return b.score-a.score||a.objectId-b.objectId});f=e.length;for(d=0;d<f;d++)e[d]=e[d].attribution;d=e.join(", ")}return d},_adjustCursorStyle:function(){var a=m.position(this.listNode.parentNode,!0).h;f.contains(this.listNode.parentNode,"esriAttributionOpen")?(f.remove(this.listNode.parentNode,"esriAttributionOpen"),
a>m.position(this.listNode.parentNode,!0).h?(c.set(this.listNode.parentNode,"cursor","pointer"),f.add(this.listNode.parentNode,"esriAttributionOpen")):c.set(this.listNode.parentNode,"cursor","default")):(f.add(this.listNode.parentNode,"esriAttributionOpen"),a<m.position(this.listNode.parentNode,!0).h?c.set(this.listNode.parentNode,"cursor","pointer"):c.set(this.listNode.parentNode,"cursor","default"),f.remove(this.listNode.parentNode,"esriAttributionOpen"))}});g("extend-esri")&&n.setObject("dijit.Attribution",
l,s);return l})},"dijit/form/HorizontalSlider":function(){define("dojo/_base/array dojo/_base/declare dojo/dnd/move dojo/_base/fx dojo/dom-geometry dojo/dom-style dojo/keys dojo/_base/lang dojo/sniff dojo/dnd/Moveable dojo/dnd/Mover dojo/query dojo/mouse dojo/on ../_base/manager ../focus ../typematic ./Button ./_FormValueWidget ../_Container dojo/text!./templates/HorizontalSlider.html".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v,A,y,w){var z=n("dijit.form._SliderMover",c,{onMouseMove:function(a){var b=
this.widget,c=b._abspos;c||(c=b._abspos=h.position(b.sliderBarContainer,!0),b._setPixelValue_=d.hitch(b,"_setPixelValue"),b._isReversed_=b._isReversed());a=a[b._mousePixelCoord]-c[b._startingPixelCoord];b._setPixelValue_(b._isReversed_?c[b._pixelCount]-a:a,c[b._pixelCount],!1)},destroy:function(a){c.prototype.destroy.apply(this,arguments);var b=this.widget;b._abspos=null;b._setValueAttr(b.value,!0)}});k=n("dijit.form.HorizontalSlider",[A,y],{templateString:w,value:0,showButtons:!0,minimum:0,maximum:100,
discreteValues:Infinity,pageIncrement:2,clickSelect:!0,slideDuration:t.defaultDuration,_setIdAttr:"",_setNameAttr:"valueNode",baseClass:"dijitSlider",cssStateNodes:{incrementButton:"dijitSliderIncrementButton",decrementButton:"dijitSliderDecrementButton",focusNode:"dijitSliderThumb"},_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_handleOffsetCoord:"left",_progressPixelSize:"width",_onKeyUp:function(a){!this.disabled&&(!this.readOnly&&!a.altKey&&!a.ctrlKey&&!a.metaKey)&&this._setValueAttr(this.value,
!0)},_onKeyDown:function(a){if(!this.disabled&&!this.readOnly&&!a.altKey&&!a.ctrlKey&&!a.metaKey){switch(a.keyCode){case e.HOME:this._setValueAttr(this.minimum,!1);break;case e.END:this._setValueAttr(this.maximum,!1);break;case this._descending||this.isLeftToRight()?e.RIGHT_ARROW:e.LEFT_ARROW:case !1===this._descending?e.DOWN_ARROW:e.UP_ARROW:case !1===this._descending?e.PAGE_DOWN:e.PAGE_UP:this.increment(a);break;case this._descending||this.isLeftToRight()?e.LEFT_ARROW:e.RIGHT_ARROW:case !1===this._descending?
e.UP_ARROW:e.DOWN_ARROW:case !1===this._descending?e.PAGE_UP:e.PAGE_DOWN:this.decrement(a);break;default:return}a.stopPropagation();a.preventDefault()}},_onHandleClick:function(a){!this.disabled&&!this.readOnly&&(b("ie")||r.focus(this.sliderHandle),a.stopPropagation(),a.preventDefault())},_isReversed:function(){return!this.isLeftToRight()},_onBarClick:function(a){if(!this.disabled&&!this.readOnly&&this.clickSelect){r.focus(this.sliderHandle);a.stopPropagation();a.preventDefault();var b=h.position(this.sliderBarContainer,
!0),c=a[this._mousePixelCoord]-b[this._startingPixelCoord];this._setPixelValue(this._isReversed()?b[this._pixelCount]-c:c,b[this._pixelCount],!0);this._movable.onMouseDown(a)}},_setPixelValue:function(a,b,c){if(!this.disabled&&!this.readOnly){var d=this.discreteValues;if(1>=d||Infinity==d)d=b;d--;a=Math.round(a/(b/d));this._setValueAttr(Math.max(Math.min((this.maximum-this.minimum)*a/d+this.minimum,this.maximum),this.minimum),c)}},_setValueAttr:function(a,b){this._set("value",a);this.valueNode.value=
a;this.focusNode.setAttribute("aria-valuenow",a);this.inherited(arguments);var c=this.maximum>this.minimum?(a-this.minimum)/(this.maximum-this.minimum):0,d=!1===this._descending?this.remainingBar:this.progressBar,f=!1===this._descending?this.progressBar:this.remainingBar;this._inProgressAnim&&"stopped"!=this._inProgressAnim.status&&this._inProgressAnim.stop(!0);if(b&&0<this.slideDuration&&d.style[this._progressPixelSize]){var e=this,g={},m=parseFloat(d.style[this._progressPixelSize]),h=this.slideDuration*
(c-m/100);0!=h&&(0>h&&(h=0-h),g[this._progressPixelSize]={start:m,end:100*c,units:"%"},this._inProgressAnim=q.animateProperty({node:d,duration:h,onAnimate:function(a){f.style[e._progressPixelSize]=100-parseFloat(a[e._progressPixelSize])+"%"},onEnd:function(){delete e._inProgressAnim},properties:g}),this._inProgressAnim.play())}else d.style[this._progressPixelSize]=100*c+"%",f.style[this._progressPixelSize]=100*(1-c)+"%"},_bumpValue:function(a,b){if(!this.disabled&&!(this.readOnly||this.maximum<=this.minimum)){var c=
g.getComputedStyle(this.sliderBarContainer),d=h.getContentBox(this.sliderBarContainer,c),c=this.discreteValues;if(1>=c||Infinity==c)c=d[this._pixelCount];c--;d=(this.value-this.minimum)*c/(this.maximum-this.minimum)+a;0>d&&(d=0);d>c&&(d=c);d=d*(this.maximum-this.minimum)/c+this.minimum;this._setValueAttr(d,b)}},_onClkBumper:function(a){!this.disabled&&(!this.readOnly&&this.clickSelect)&&this._setValueAttr(a,!0)},_onClkIncBumper:function(){this._onClkBumper(!1===this._descending?this.minimum:this.maximum)},
_onClkDecBumper:function(){this._onClkBumper(!1===this._descending?this.maximum:this.minimum)},decrement:function(a){this._bumpValue(a.keyCode==e.PAGE_DOWN?-this.pageIncrement:-1)},increment:function(a){this._bumpValue(a.keyCode==e.PAGE_UP?this.pageIncrement:1)},_mouseWheeled:function(a){a.stopPropagation();a.preventDefault();this._bumpValue(0>a.wheelDelta?-1:1,!0)},startup:function(){this._started||(l.forEach(this.getChildren(),function(a){this[a.container]!=this.containerNode&&this[a.container].appendChild(a.domNode)},
this),this.inherited(arguments))},_typematicCallback:function(a,b,c){if(-1==a)this._setValueAttr(this.value,!0);else this[b==(this._descending?this.incrementButton:this.decrementButton)?"decrement":"increment"](c)},buildRendering:function(){this.inherited(arguments);this.showButtons&&(this.incrementButton.style.display="",this.decrementButton.style.display="");var a=f('label[for\x3d"'+this.id+'"]');a.length&&(a[0].id||(a[0].id=this.id+"_label"),this.focusNode.setAttribute("aria-labelledby",a[0].id));
this.focusNode.setAttribute("aria-valuemin",this.minimum);this.focusNode.setAttribute("aria-valuemax",this.maximum)},postCreate:function(){this.inherited(arguments);this.showButtons&&this.own(u.addMouseListener(this.decrementButton,this,"_typematicCallback",25,500),u.addMouseListener(this.incrementButton,this,"_typematicCallback",25,500));this.own(s(this.domNode,m.wheel,d.hitch(this,"_mouseWheeled")));var b=n(z,{widget:this});this._movable=new a(this.sliderHandle,{mover:b});this._layoutHackIE7()},
destroy:function(){this._movable.destroy();this._inProgressAnim&&"stopped"!=this._inProgressAnim.status&&this._inProgressAnim.stop(!0);this.inherited(arguments)}});k._Mover=z;return k})},"dojo/dnd/move":function(){define("../_base/declare ../dom-geometry ../dom-style ./common ./Mover ./Moveable".split(" "),function(l,n,k,q,h,g){q=l("dojo.dnd.move.constrainedMoveable",g,{constraints:function(){},within:!1,constructor:function(e,d){d||(d={});this.constraints=d.constraints;this.within=d.within},onFirstMove:function(e){var d=
this.constraintBox=this.constraints.call(this,e);d.r=d.l+d.w;d.b=d.t+d.h;this.within&&(e=n.getMarginSize(e.node),d.r-=e.w,d.b-=e.h)},onMove:function(e,d){var b=this.constraintBox,a=e.node.style;this.onMoving(e,d);d.l=d.l<b.l?b.l:b.r<d.l?b.r:d.l;d.t=d.t<b.t?b.t:b.b<d.t?b.b:d.t;a.left=d.l+"px";a.top=d.t+"px";this.onMoved(e,d)}});h=l("dojo.dnd.move.boxConstrainedMoveable",q,{box:{},constructor:function(e,d){var b=d&&d.box;this.constraints=function(){return b}}});l=l("dojo.dnd.move.parentConstrainedMoveable",
q,{area:"content",constructor:function(e,d){var b=d&&d.area;this.constraints=function(){var a=this.node.parentNode,c=k.getComputedStyle(a),d=n.getMarginBox(a,c);if("margin"==b)return d;var e=n.getMarginExtents(a,c);d.l+=e.l;d.t+=e.t;d.w-=e.w;d.h-=e.h;if("border"==b)return d;e=n.getBorderExtents(a,c);d.l+=e.l;d.t+=e.t;d.w-=e.w;d.h-=e.h;if("padding"==b)return d;e=n.getPadExtents(a,c);d.l+=e.l;d.t+=e.t;d.w-=e.w;d.h-=e.h;return d}}});return{constrainedMoveable:q,boxConstrainedMoveable:h,parentConstrainedMoveable:l}})},
"dojo/dnd/common":function(){define(["../sniff","../_base/kernel","../_base/lang","../dom"],function(l,n,k,q){var h=k.getObject("dojo.dnd",!0);h.getCopyKeyState=function(g){return g[l("mac")?"metaKey":"ctrlKey"]};h._uniqueId=0;h.getUniqueId=function(){var g;do g=n._scopeName+"Unique"+ ++h._uniqueId;while(q.byId(g));return g};h._empty={};h.isFormElement=function(g){g=g.target;3==g.nodeType&&(g=g.parentNode);return 0<=" a button textarea input select option ".indexOf(" "+g.tagName.toLowerCase()+" ")};
return h})},"dojo/dnd/Mover":function(){define("../_base/array ../_base/declare ../_base/lang ../sniff ../_base/window ../dom ../dom-geometry ../dom-style ../Evented ../on ../touch ./common ./autoscroll".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m){return n("dojo.dnd.Mover",[b],{constructor:function(b,d,f){function e(a){a.preventDefault();a.stopPropagation()}this.node=g.byId(b);this.marginBox={l:d.pageX,t:d.pageY};this.mouseButton=d.button;d=this.host=f;b=b.ownerDocument;this.events=[a(b,c.move,
k.hitch(this,"onFirstMove")),a(b,c.move,k.hitch(this,"onMouseMove")),a(b,c.release,k.hitch(this,"onMouseUp")),a(b,"dragstart",e),a(b.body,"selectstart",e)];m.autoScrollStart(b);if(d&&d.onMoveStart)d.onMoveStart(this)},onMouseMove:function(a){m.autoScroll(a);var b=this.marginBox;this.host.onMove(this,{l:b.l+a.pageX,t:b.t+a.pageY},a);a.preventDefault();a.stopPropagation()},onMouseUp:function(a){(q("webkit")&&q("mac")&&2==this.mouseButton?0==a.button:this.mouseButton==a.button)&&this.destroy();a.preventDefault();
a.stopPropagation()},onFirstMove:function(a){var b=this.node.style,c,f=this.host;switch(b.position){case "relative":case "absolute":c=Math.round(parseFloat(b.left))||0;b=Math.round(parseFloat(b.top))||0;break;default:b.position="absolute";b=e.getMarginBox(this.node);c=h.doc.body;var g=d.getComputedStyle(c),m=e.getMarginBox(c,g),g=e.getContentBox(c,g);c=b.l-(g.l-m.l);b=b.t-(g.t-m.t)}this.marginBox.l=c-this.marginBox.l;this.marginBox.t=b-this.marginBox.t;if(f&&f.onFirstMove)f.onFirstMove(this,a);this.events.shift().remove()},
destroy:function(){l.forEach(this.events,function(a){a.remove()});var a=this.host;if(a&&a.onMoveStop)a.onMoveStop(this);this.events=this.node=this.host=null}})})},"dojo/dnd/autoscroll":function(){define("../_base/lang ../sniff ../_base/window ../dom-geometry ../dom-style ../window".split(" "),function(l,n,k,q,h,g){var e={};l.setObject("dojo.dnd.autoscroll",e);e.getViewport=g.getBox;e.V_TRIGGER_AUTOSCROLL=32;e.H_TRIGGER_AUTOSCROLL=32;e.V_AUTOSCROLL_VALUE=16;e.H_AUTOSCROLL_VALUE=16;var d,b=k.doc,a=
Infinity,c=Infinity;e.autoScrollStart=function(f){b=f;d=g.getBox(b);f=k.body(b).parentNode;a=Math.max(f.scrollHeight-d.h,0);c=Math.max(f.scrollWidth-d.w,0)};e.autoScroll=function(f){var m=d||g.getBox(b),h=k.body(b).parentNode,l=0,n=0;f.clientX<e.H_TRIGGER_AUTOSCROLL?l=-e.H_AUTOSCROLL_VALUE:f.clientX>m.w-e.H_TRIGGER_AUTOSCROLL&&(l=Math.min(e.H_AUTOSCROLL_VALUE,c-h.scrollLeft));f.clientY<e.V_TRIGGER_AUTOSCROLL?n=-e.V_AUTOSCROLL_VALUE:f.clientY>m.h-e.V_TRIGGER_AUTOSCROLL&&(n=Math.min(e.V_AUTOSCROLL_VALUE,
a-h.scrollTop));window.scrollBy(l,n)};e._validNodes={div:1,p:1,td:1};e._validOverflow={auto:1,scroll:1};e.autoScrollNodes=function(a){for(var b,c,d,g,l,v,A=0,y=0,w=a.target;w;){if(1==w.nodeType&&w.tagName.toLowerCase()in e._validNodes){d=h.getComputedStyle(w);g=d.overflow.toLowerCase()in e._validOverflow;l=d.overflowX.toLowerCase()in e._validOverflow;v=d.overflowY.toLowerCase()in e._validOverflow;if(g||l||v)b=q.getContentBox(w,d),c=q.position(w,!0);if(g||l){d=Math.min(e.H_TRIGGER_AUTOSCROLL,b.w/2);
l=a.pageX-c.x;if(n("webkit")||n("opera"))l+=k.body().scrollLeft;A=0;0<l&&l<b.w&&(l<d?A=-d:l>b.w-d&&(A=d),w.scrollLeft+=A)}if(g||v){g=Math.min(e.V_TRIGGER_AUTOSCROLL,b.h/2);v=a.pageY-c.y;if(n("webkit")||n("opera"))v+=k.body().scrollTop;y=0;0<v&&v<b.h&&(v<g?y=-g:v>b.h-g&&(y=g),w.scrollTop+=y)}if(A||y)return}try{w=w.parentNode}catch(z){w=null}}e.autoScroll(a)};return e})},"dojo/dnd/Moveable":function(){define("../_base/array ../_base/declare ../_base/lang ../dom ../dom-class ../Evented ../on ../topic ../touch ./common ./Mover ../_base/window".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f){return n("dojo.dnd.Moveable",[g],{handle:"",delay:0,skip:!1,constructor:function(a,d){this.node=q.byId(a);d||(d={});this.handle=d.handle?q.byId(d.handle):null;this.handle||(this.handle=this.node);this.delay=0<d.delay?d.delay:0;this.skip=d.skip;this.mover=d.mover?d.mover:c;this.events=[e(this.handle,b.press,k.hitch(this,"onMouseDown")),e(this.handle,"dragstart",k.hitch(this,"onSelectStart")),e(this.handle,"selectstart",k.hitch(this,"onSelectStart"))]},markupFactory:function(a,
b,c){return new c(b,a)},destroy:function(){l.forEach(this.events,function(a){a.remove()});this.events=this.node=this.handle=null},onMouseDown:function(c){if(!this.skip||!a.isFormElement(c)){if(this.delay)this.events.push(e(this.handle,b.move,k.hitch(this,"onMouseMove")),e(this.handle,b.release,k.hitch(this,"onMouseUp"))),this._lastX=c.pageX,this._lastY=c.pageY;else this.onDragDetected(c);c.stopPropagation();c.preventDefault()}},onMouseMove:function(a){if(Math.abs(a.pageX-this._lastX)>this.delay||
Math.abs(a.pageY-this._lastY)>this.delay)this.onMouseUp(a),this.onDragDetected(a);a.stopPropagation();a.preventDefault()},onMouseUp:function(a){for(var b=0;2>b;++b)this.events.pop().remove();a.stopPropagation();a.preventDefault()},onSelectStart:function(b){if(!this.skip||!a.isFormElement(b))b.stopPropagation(),b.preventDefault()},onDragDetected:function(a){new this.mover(this.node,a,this)},onMoveStart:function(a){d.publish("/dnd/move/start",a);h.add(f.body(),"dojoMove");h.add(this.node,"dojoMoveItem")},
onMoveStop:function(a){d.publish("/dnd/move/stop",a);h.remove(f.body(),"dojoMove");h.remove(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(a,b){this.onMoving(a,b);var c=a.node.style;c.left=b.l+"px";c.top=b.t+"px";this.onMoved(a,b)},onMoving:function(){},onMoved:function(){}})})},"dijit/form/VerticalSlider":function(){define(["dojo/_base/declare","./HorizontalSlider","dojo/text!./templates/VerticalSlider.html"],function(l,n,k){return l("dijit.form.VerticalSlider",n,{templateString:k,
_mousePixelCoord:"pageY",_pixelCount:"h",_startingPixelCoord:"y",_handleOffsetCoord:"top",_progressPixelSize:"height",_descending:!0,_isReversed:function(){return this._descending}})})},"dijit/form/HorizontalRule":function(){define(["dojo/_base/declare","../_Widget","../_TemplatedMixin"],function(l,n,k){return l("dijit.form.HorizontalRule",[n,k],{templateString:'\x3cdiv class\x3d"dijitRuleContainer dijitRuleContainerH"\x3e\x3c/div\x3e',count:3,container:"containerNode",ruleStyle:"",_positionPrefix:'\x3cdiv class\x3d"dijitRuleMark dijitRuleMarkH" style\x3d"left:',
_positionSuffix:"%;",_suffix:'"\x3e\x3c/div\x3e',_genHTML:function(k){return this._positionPrefix+k+this._positionSuffix+this.ruleStyle+this._suffix},_isHorizontal:!0,buildRendering:function(){this.inherited(arguments);var k;if(1==this.count)k=this._genHTML(50,0);else{var h,g=100/(this.count-1);if(!this._isHorizontal||this.isLeftToRight()){k=this._genHTML(0,0);for(h=1;h<this.count-1;h++)k+=this._genHTML(g*h,h);k+=this._genHTML(100,this.count-1)}else{k=this._genHTML(100,0);for(h=1;h<this.count-1;h++)k+=
this._genHTML(100-g*h,h);k+=this._genHTML(0,this.count-1)}}this.domNode.innerHTML=k}})})},"dijit/form/VerticalRule":function(){define(["dojo/_base/declare","./HorizontalRule"],function(l,n){return l("dijit.form.VerticalRule",n,{templateString:'\x3cdiv class\x3d"dijitRuleContainer dijitRuleContainerV"\x3e\x3c/div\x3e',_positionPrefix:'\x3cdiv class\x3d"dijitRuleMark dijitRuleMarkV" style\x3d"top:',_isHorizontal:!1})})},"dijit/form/HorizontalRuleLabels":function(){define("dojo/_base/declare dojo/has dojo/number dojo/query dojo/_base/lang ./HorizontalRule".split(" "),
function(l,n,k,q,h,g){l=l("dijit.form.HorizontalRuleLabels",g,{templateString:'\x3cdiv class\x3d"dijitRuleContainer dijitRuleContainerH dijitRuleLabelsContainer dijitRuleLabelsContainerH"\x3e\x3c/div\x3e',labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:'\x3cdiv class\x3d"dijitRuleLabelContainer dijitRuleLabelContainerH" style\x3d"left:',_labelPrefix:'"\x3e\x3cdiv class\x3d"dijitRuleLabel dijitRuleLabelH"\x3e',_suffix:"\x3c/div\x3e\x3c/div\x3e",
_calcPosition:function(e){return e},_genHTML:function(e,d){var b=this.labels[d];return this._positionPrefix+this._calcPosition(e)+this._positionSuffix+this.labelStyle+this._genDirectionHTML(b)+this._labelPrefix+b+this._suffix},_genDirectionHTML:function(e){return""},getLabels:function(){var e=this.labels;!e.length&&this.srcNodeRef&&(e=q("\x3e li",this.srcNodeRef).map(function(a){return String(a.innerHTML)}));if(!e.length&&1<this.count)for(var d=this.minimum,b=(this.maximum-d)/(this.count-1),a=0;a<
this.count;a++)e.push(a<this.numericMargin||a>=this.count-this.numericMargin?"":k.format(d,this.constraints)),d+=b;return e},postMixInProperties:function(){this.inherited(arguments);this.labels=this.getLabels();this.count=this.labels.length}});n("dojo-bidi")&&l.extend({_setTextDirAttr:function(e){this.textDir!=e&&(this._set("textDir",e),q(".dijitRuleLabelContainer",this.domNode).forEach(h.hitch(this,function(d){d.style.direction=this.getTextDir(d.innerText||d.textContent||"")})))},_genDirectionHTML:function(e){return this.textDir?
"direction:"+this.getTextDir(e)+";":""}});return l})},"dijit/form/VerticalRuleLabels":function(){define(["dojo/_base/declare","./HorizontalRuleLabels"],function(l,n){return l("dijit.form.VerticalRuleLabels",n,{templateString:'\x3cdiv class\x3d"dijitRuleContainer dijitRuleContainerV dijitRuleLabelsContainer dijitRuleLabelsContainerV"\x3e\x3c/div\x3e',_positionPrefix:'\x3cdiv class\x3d"dijitRuleLabelContainer dijitRuleLabelContainerV" style\x3d"top:',_labelPrefix:'"\x3e\x3cspan class\x3d"dijitRuleLabel dijitRuleLabelV"\x3e',
_calcPosition:function(k){return 100-k},_isHorizontal:!1})})},"esri/plugins/spatialIndex":function(){define(["../process/SpatialIndex","dojo/Deferred"],function(l,n){return{add:function(k,q){q=q||{};if(k.spatialIndex)return k.spatialIndex;if("spatialIndex"in q){if(!1!==q.spatialIndex)return k.spatialIndex=q.spatialIndex,k.spatialIndex}else{var h=new n;q.autostart=!1;k.spatialIndex=new l(q);var g=k.spatialIndex;-1<k.declaredClass.indexOf("Map")?g.setMap(k):g.addLayer(k);g.on("start",function(){h.resolve(g)});
g.start();return h}},remove:function(k){var l=k.spatialIndex;l&&(-1<k.declaredClass.indexOf("Map")?l.unsetMap():l.removeLayer(k),k.spatialIndex=void 0)}}})},"esri/process/SpatialIndex":function(){define("../sniff ../kernel dojo/_base/declare dojo/Deferred dojo/_base/lang ./Processor ../workers/WorkerClient ../layers/FeatureLayer".split(" "),function(l,n,k,q,h,g,e,d){k=k([g],{declaredClass:"esri.process.SpatialIndex",index:null,indexType:"rtree",workerCallback:["./scripts/helpers","./scripts/indexInterface",
"./indexWorker"],autostart:!1,constructor:function(b){b=b||{};var a=!1!==b.autostart;h.mixin(this,b);if(!this.fetchWithWorker){var c=this;this.workerClient=new e("./mutableWorker",!0);this.workerCallback.push("./libs/"+this.indexType);this.workerClient.importScripts(this.workerCallback).then(function(){c._attachedSystem=!0;a&&c.start()})}this._featCache={}},addLayer:function(b,a){if(b.graphics&&b.graphics.length||a||b.isInstanceOf(d))if(this._attachedSystem)this.inherited(arguments,[b]);else{var c=
this.workerClient,f=this;this.inherited(arguments,[b,!0]);c.importScripts("./libs/"+this.indexType).then(function(){f.runProcess(b.graphics,b.id);f._attachedSystem=!0})}},unsetMap:function(){this.stop();this.workerClient.terminate();this.fetchWithWorker||(this.workerClient=new e(this.workerCallback,!0));this.inherited(arguments);this.start()},removeLayer:function(b){this.inherited(arguments)},runProcess:function(b,a){if(b&&b.length){var c=this,d=this.workerClient,e=b[0]._graphicsLayer;!a&&0!==a&&
(a=e?e.id:"rawFeatures_"+Object.keys(this._featCache).length);this._featCache[a]||(this._featCache[a]={});for(var g,h,k=[],l=b.length,n=e&&e.objectIdField;l--;)if(h=b[l],g=h.attributes&&n?h.attributes[n]:h.id,null==g||!this._featCache[a][g])this._featCache[a][g]=1,h.declaredClass?k.push({id:g,geometry:h.geometry,attributes:h.attributes}):k.push(h);d.postMessage({insert:k,system:this.indexType,options:this.indexOptions,idField:e&&e.objectIdField,layerId:a}).then(function(a){e&&e.emit("process-end",
{processor:c,results:{insert:a.insert}})});e&&e.emit("process-start",{processor:this})}},_sendFeaturesFromLayer:function(b,a){var c=a.graphic,d=this.workerClient,e=this,g=c.attributes[b.objectIdField];this._featCache[b.id]||(this._featCache[b.id]={});this._featCache[b.id][g]||(this._featCache[b.id][g]=1,d.postMessage({insert:[{attributes:c.attributes,geometry:c.geometry}],system:this.indexType,options:this.indexOptions,idField:b.objectIdField,layerId:b.id}).then(function(a){b.emit("process-end",{processor:e,
results:{insert:a.insert}})}),b.emit("process-start",{processor:e}))},_notifyProcessStart:function(b,a){},_sendFeaturesFromTask:function(b,a){var c=a.featureSet.features,d=[],e=this.workerClient,g=this,h=c.length,k,l;for(this._featCache[b.id]||(this._featCache[b.id]={});h--;)l=c[h],k=l.attributes[b.objectIdField],this._featCache[b.id][k]||(this._featCache[b.id][k]=1,d.push(l));e.postMessage({insert:d,system:this.indexType,options:this.indexOptions,idField:b.objectIdField,layerId:b.id}).then(function(a){b.emit("process-end",
{processor:g,results:{insert:a.insert}})});b.emit("process-start",{processor:g})},get:function(){},intersects:function(b,a,c){return"rtree"!=this.indexType?(console.error("Index.intersects only works with rtree indexes"),b=new q,b.reject({message:"Index.intersects only works with rtree indexes"}),b.promise):b=this.workerClient.postMessage({search:b,layerId:a,returnNode:c})},within:function(b,a,c){if("rtree"!=this.indexType)return console.error("Index.within only works with rtree indexes"),b=new q,
b.reject({message:"Index.within only works with rtree indexes"}),b.promise},nearest:function(b){return"kdtree"!=this.indexType?(console.error("Index.nearest only works with kdtree indexes"),b=new q,b.reject({message:"Index.nearest only works with kdtree indexes"}),b.promise):b=this.workerClient.postMessage({search:b})}});l("extend-esri")&&h.setObject("process.SpatialIndex",k,n);return k})},"esri/process/Processor":function(){define("../sniff ../kernel dojo/_base/declare dojo/Deferred dojo/_base/lang dojo/_base/array dojo/Evented ../workers/RequestClient ../layers/GraphicsLayer".split(" "),
function(l,n,k,q,h,g,e,d,b){k=k([e],{declaredClass:"esri.process.Processor",layers:null,results:null,passFeatures:!0,drawFeatures:!0,requireWorkerSupport:!0,fetchWithWorker:!1,workerCallback:null,workerClient:null,_started:null,_handlers:null,constructor:function(a){a=a||{};h.mixin(this,a);!l("esri-workers")&&(!1!==this.requireWorkerSupport||!1!==a.requireWorkerSupport)?(this.addLayer=this.setMap=this.start=this.runProcess=function(){},this._disabled=!0):(this._handlers={},this._notifyProcessStart=
h.hitch(this,this._notifyProcessStart),this._sendFeaturesFromTask=h.hitch(this,this._sendFeaturesFromTask),this._sendFeaturesFromLayer=h.hitch(this,this._sendFeaturesFromLayer),!1!==a.autostart&&this.start())},addLayer:function(a,b){var f=a._task,e=this._handlers[a.id]=[],g="complete";!1===this.drawFeatures&&(a._params.drawMode=!1);this.fetchWithWorker?(this.workerClient||(this.workerClient=d.getClient(this.workerCallback)),f.requestOptions={workerOptions:{worker:this.workerClient}},this.passFeatures&&
e.push(f.on(g,h.partial(this._notifyProcessStart,a)))):this.passFeatures?(g=this.drawFeatures?"graphic-draw":"graphic-add",e.push(a.on(g,h.partial(this._sendFeaturesFromLayer,a)))):e.push(f.on(g,h.partial(this._sendFeaturesFromTask,a)));!0!==b&&a.graphics&&this.runProcess(a.graphics,a.id)},removeLayer:function(a){g.forEach(this._handlers[a.id],function(a){a.remove()});delete this._handlers[a.id]},setMap:function(a){if(this.map)if(a!=this.map)this.unsetMap();else return;var c=this;g.forEach(this.layers,
c.removeLayer);g.forEach(a.graphicsLayerIds,function(b){c.addLayer(a.getLayer(b))});this._handlers.map=[a.on("layer-add",function(a){a=a.layer;a.isInstanceOf(b)&&c.addLayer(a)}),a.on("layer-remove",function(a){a=a.layer;a.isInstanceOf(b)&&c.removeLayer(a)})];this.map=a},unsetMap:function(){this.map&&(g.forEach(this._handlers.map,function(a){a.remove()}),delete this._handlers.map,g.forEach(this.layers,this.removeLayer),this.map=null)},start:function(){this.map?this.setMap(this.map):this.layers&&(h.isArray(this.layers)||
(this.layers=[this.layers]),g.forEach(this.layers,this.addLayer));this._started=!0;this.emit("start",{processor:this})},stop:function(){this._started=!1;for(var a in this._handlers)this._handlers.hasOwnProperty(a)&&(this._handlers[a].remove(),delete this._handlers[a]);this.emit("stop",{processor:this})},runProcess:function(a,b){},_sendFeaturesFromTask:function(){},_sendFeaturesFromLayer:function(){},_notifyProcessStart:function(){}});l("extend-esri")&&h.setObject("process.Processor",k,n);return k})},
"esri/workers/RequestClient":function(){define("../sniff ../kernel dojo/_base/declare dojo/Deferred dojo/_base/lang dojo/_base/xhr ../config ./WorkerClient".split(" "),function(l,n,k,q,h,g,e,d){function b(b,d){var e=new a;e.addWorkerCallback(b,d);c.unshift({id:d?b+"::"+d:b,client:e});c.length>f&&c.pop().client.terminate();return e}var a=k([d],{declaredClass:"esri.workers.RequestClient",constructor:function(){this.setWorker(["./mutableWorker","./requestWorker"])},get:function(a){return this._send("GET",
a)},post:function(a){return this._send("POST",a)},_send:function(a,b){var c=g._ioSetArgs(b);c.xhr=null;var d=c.ioArgs,f=d.url;delete d.url;delete d.args;this.postMessage({method:a,url:f,options:d}).then(this._getSuccessHandler(c),this._getErrorHandler(c),this._getProgressHandler(c));return c},_addHeaderFunctions:function(a){a.getResponseHeader=function(b){var c,d=a.headers;Object.keys(d).forEach(function(a){if(a.toLowerCase()==b.toLowerCase())return c=d[a],!1});return c};a.getAllResponseHeaders=function(){var b=
[],c=a.headers;Object.keys(c).forEach(function(a){b.push(a+": "+c[a])});return b=b.join("\n")};return a},_getSuccessHandler:function(a){var b=this,c=a.ioArgs;return function(d){a.xhr=b._addHeaderFunctions(d);d=a.xhr.getResponseHeader("content-type");if(("xml"==c.handleAs||-1<d.indexOf("xml"))&&"string"==typeof a.xhr.response)a.xhr.response=(new DOMParser).parseFromString(a.xhr.response,"text/xml");a.resolve(a.xhr.response,a.xhr)}},_getErrorHandler:function(a){return function(b){a.reject(b)}},_getProgressHandler:function(a){return function(b){a.progress(b)}}}),
c=[],f=e.defaults.io.maxRequestWorkers,m=new a;a.getClient=function(a,d){if(a){var f;c.some(function(b){if(b.id==(d?a+"::"+d:a))f=b.client;return!0});return f||b(a,d)}return m};a.setLimit=function(a){f=e.defaults.io.maxRequestWorkers=a};l("extend-esri")&&(n.RequestClient=a);return a})},"esri/workers/WorkerClient":function(){define("dojo/Evented dojo/_base/declare dojo/Deferred dojo/_base/lang dojo/dom-construct ../sniff ../kernel ../urlUtils require".split(" "),function(l,n,k,q,h,g,e,d,b){var a=window.Blob||
window.webkitBlob||window.mozBlob,c=window.URL||window.webkitURL||window.mozURL;l=n([l],{declaredClass:"esri.workers.WorkerClient",worker:null,returnDeferreds:!1,_queue:null,constructor:function(a,b){this._isIE=g("ie");this.returnDeferreds=!!b;this._queue={};this._acceptMessage=q.hitch(this,this._acceptMessage);this._errorMessage=q.hitch(this,this._errorMessage);a&&(this.worker=this.setWorker(a))},setWorker:function(f){if(f instanceof Array){var e=f;f=e.shift()}f=this._getUrl(f);var g=b.isXdUrl(f),
h;if(!1===f)return!1;this.worker&&(h=this.worker,h.removeEventListener("message",this._acceptMessage,!1),h.removeEventListener("error",this._errorMessage,!1),h.terminate(),h=null);if(g){var k=this._getUrl("./mutableWorker",!0);try{var l=b.getText(k,!0);h=new Worker(c.createObjectURL(new a([l],{type:"text/javascript"})))}catch(n){try{k=d.getProxyUrl(k).path+"?"+encodeURI(k),h=new Worker(k),this._useProxy=!0}catch(q){return!1}}}else h=new Worker(f);h.addEventListener("message",this._acceptMessage,!1);
h.addEventListener("error",this._errorMessage,!1);this.worker=h;g&&this.importScripts(f);e&&this.importScripts(e);return h},postMessage:function(a,b){if(a instanceof Array||"object"!=typeof a)a={data:a};var c=Math.floor(64E9*Math.random()).toString(36);a.msgId=c;c=this._queue[c]=new k;this.worker?(b?this.worker.postMessage(a,b):this.worker.postMessage(a),this.emit("start-message",{target:this,message:a})):c.reject({message:"No worker was set."});return this.returnDeferreds?c:c.promise||c},terminate:function(){var a=
Object.keys(this._queue);this.worker&&this.worker.terminate();for(var b=a.length-1;0<=b;b--)this._queue[a[b]].cancel("terminated"),delete this._queue[a[b]]},addWorkerCallback:function(a,b){var c;c=this._getUrl(a,!0);!1===c?(c=new k,c.reject({message:"Could not load text from "+a})):(c=this.postMessage({action:"add-callback",url:c,cbName:b||"main"}),c.then(q.hitch(this,function(a){a.target=this;this.emit("callback-added",a)})));return c},importScripts:function(a){Array.isArray(a)||(a=[a]);a=a.map(function(a){a=
this._getUrl(a,!0);this._useProxy&&b.isXdUrl(a)&&(a=d.getProxyUrl(a).path+"?"+encodeURI(a));return a},this);a=this.postMessage({action:"import-script",url:a});a.then(q.hitch(this,function(a){a.target=this;this.emit("scripts-imported",a)}));return a},_acceptMessage:function(a){var b=a.data,c=b.msgId;if(b.status&&"debug"==b.status)console[b.showAs||"debug"](b);else if(c&&c in this._queue){var d=this._queue[c];"progress"==b.status?d.progress(a.data):("error"==b.status?d.reject(a.data):d.resolve(a.data),
delete this._queue[c])}this.emit("message",{message:a.data,event:a,target:this})},_errorMessage:function(a){if(this.onerror||this.onError)this.onerror?this.onerror(a):this.onError(a)},_getUrl:function(a,c){var e=b.toUrl(a);if(e)e.match(/\.js$/)||(e+=".js");else return console.error("can not resolve path:",a),!1;return c?d.getAbsoluteUrl(e):e},_startBlobWorker:function(){var b=this._xdSource;b||(b=this._getUrl("./mutableWorker"),b=new a(["if(!self._mutable){importScripts('"+b+"');}"],{type:"text/javascript"}),
b=this._xdSource=c.createObjectURL(b));try{return new Worker(b)}catch(d){return!1}}});g("extend-esri")&&q.setObject("workers.WorkerClient",l,e);return l})},"esri/SnappingManager":function(){define("dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/_base/Color dojo/_base/Deferred dojo/has dojo/keys ./kernel ./graphic ./geometry/ScreenPoint ./geometry/Extent ./symbols/SimpleMarkerSymbol ./symbols/SimpleLineSymbol ./tasks/query".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m,
s,t){l=l(null,{declaredClass:"esri.SnappingManager",constructor:function(b){b=b||{};b.map||console.error("map is not specified for SnappingManager");this.map=b.map;this.tolerance=b.tolerance||15;this.layerInfos=[];if(b.layerInfos)this.layerInfos=b.layerInfos;else{var c;for(c=0;c<this.map.graphicsLayerIds.length;c++){var f=this.map.getLayer(this.map.graphicsLayerIds[c]);this.layerInfos.push({layer:f})}if(this.map.loaded)this.layerInfos.push({layer:this.map.graphics});else var g=n.connect(this.map,
"onLoad",this,function(a){n.disconnect(g);g=null;this.layerInfos.push({layer:this.map.graphics});this.setLayerInfos(this.layerInfos)})}this.snapPointSymbol=b.snapPointSymbol?b.snapPointSymbol:new m(m.STYLE_CROSS,15,new s(s.STYLE_SOLID,new h([0,255,255]),1),new h([0,255,0,0]));this.alwaysSnap=b.alwaysSnap?b.alwaysSnap:!1;this.snapKey=b.snapKey?b.snapKey:e("mac")?d.META:d.CTRL;this._SelectionLyrQuery=new t;this._SelectionLyrQuery.spatialRelationship=t.SPATIAL_REL_INTERSECTS;this._snappingGraphic=new a;
this.setLayerInfos(this.layerInfos);this._currentGraphicOption={snapToPoint:!0,snapToVertex:!0,snapToEdge:!0};this._snappingCallback=k.hitch(this,this._snappingCallback)},getSnappingPoint:function(a){var b=this.layers,c=this.tolerance,d=this.map,e=this.layerOptions,h=d.toMap(a.offset(-c,c)),c=d.toMap(a.offset(c,-c)),h=new f(h.x,h.y,c.x,c.y,d.spatialReference),m=new t;m.geometry=h;m.spatialRelationship=t.SPATIAL_REL_INTERSECTS;var l=[],n=[],s,C=this._extractPointsAndLines,F=new g,I=0,E,c=h.xmin,L=
h.xmax;q.forEach(b,function(a,b){a.visible&&(a.loaded&&"esri.layers.FeatureLayer"===a.declaredClass&&a.mode!==a.constructor.MODE_SELECTION)&&I++});d.spatialReference._isWrappable()&&(c=f.prototype._normalizeX(h.xmin,d.spatialReference._getInfo()).x,L=f.prototype._normalizeX(h.xmax,d.spatialReference._getInfo()).x);var G=new f(c,h.ymin,L,h.ymax,d.spatialReference);q.forEach(b,function(a,b){if("esri.layers.GraphicsLayer"===a.declaredClass&&a.visible){var c=[];q.forEach(a.graphics,function(a){a&&a.visible&&
G.intersects(a.geometry)&&c.push(a)});var d=C(c,e[b]);l=l.concat(d[0]);n=n.concat(d[1])}});var K=k.hitch(this,function(b){I--;b instanceof Error||(b=C(b.features,e[E]),l=l.concat(b[0]),n=n.concat(b[1]));I||(s=this._getSnappingPoint(l,n,a),F.callback(s))}),J=!1;q.forEach(b,function(a,b){a.visible&&a.loaded&&(E=b,"esri.layers.FeatureLayer"===a.declaredClass&&a.mode!==a.constructor.MODE_SELECTION&&(J=!0,a.queryFeatures(m,K,K)))});J||(s=this._getSnappingPoint(l,n,a),F.callback(s));return F},setLayerInfos:function(a){this.layers=
[];this.layerOptions=[];var b;for(b=0;b<a.length;b++)this.layers.push(a[b].layer),this.layerOptions.push({snapToPoint:!0,snapToVertex:!0,snapToEdge:!0}),!1===a[b].snapToPoint&&(this.layerOptions[b].snapToPoint=a[b].snapToPoint),!1===a[b].snapToVertex&&(this.layerOptions[b].snapToVertex=a[b].snapToVertex),!1===a[b].snapToEdge&&(this.layerOptions[b].snapToEdge=a[b].snapToEdge);this._featurePtsFromSelectionLayer=[];this._featureLinesFromSelectionLayer=[];this._selectionLayers=[];this._selectionLayerOptions=
[];q.forEach(this.layers,function(a,b){"esri.layers.FeatureLayer"===a.declaredClass&&a.mode===a.constructor.MODE_SELECTION&&(this._selectionLayers.push(a),this._selectionLayerOptions.push(this.layerOptions[b]))},this);this.layerInfos=a},destroy:function(){n.disconnect(this._onExtentChangeConnect);this._killOffSnapping();this._featurePtsFromSelectionLayer=this._featureLinesFromSelectionLayer=this._currentFeaturePts=this._currentFeatureLines=this.layers=this.map=null},_startSelectionLayerQuery:function(){n.disconnect(this._onExtentChangeConnect);
this._mapExtentChangeHandler(this._selectionLayers,this._selectionLayerOptions,this.map.extent);this._onExtentChangeConnect=n.connect(this.map,"onExtentChange",k.hitch(this,"_mapExtentChangeHandler",this._selectionLayers,this._selectionLayerOptions))},_stopSelectionLayerQuery:function(){n.disconnect(this._onExtentChangeConnect)},_mapExtentChangeHandler:function(a,b,c){this._featurePtsFromSelectionLayer=[];this._featureLinesFromSelectionLayer=[];var d;this._SelectionLyrQuery.geometry=c;var f=k.hitch(this,
function(a){a instanceof Error||(a=this._extractPointsAndLines(a.features,b[d]),this._featurePtsFromSelectionLayer=this._featurePtsFromSelectionLayer.concat(a[0]),this._featureLinesFromSelectionLayer=this._featureLinesFromSelectionLayer.concat(a[1]))});q.forEach(a,function(a,b){a.visible&&a.loaded&&(d=b,a.queryFeatures(this._SelectionLyrQuery,f,f))},this)},_extractPointsAndLines:function(a,b){var c=[],d=[],f,e;q.forEach(a,function(a,g){if((!a._graphicsLayer||a.visible)&&a.geometry)if("point"===a.geometry.type&&
b.snapToPoint)c.push(a.geometry);else if("polyline"===a.geometry.type)for(f=0;f<a.geometry.paths.length;f++){d.push("lineStart");for(e=0;e<a.geometry.paths[f].length;e++){var h=a.geometry.getPoint(f,e);b.snapToVertex&&c.push(h);b.snapToEdge&&d.push(h)}d.push("lineEnd")}else if("polygon"===a.geometry.type)for(f=0;f<a.geometry.rings.length;f++){d.push("lineStart");for(e=0;e<a.geometry.rings[f].length;e++)h=a.geometry.getPoint(f,e),b.snapToVertex&&c.push(h),b.snapToEdge&&d.push(h);d.push("lineEnd")}});
return[c,d]},_getSnappingPoint:function(a,b,d){var f,e,g=this.tolerance,h=this.map,m=this.map._getFrameWidth();a=a.concat(this._featurePtsFromSelectionLayer);b=b.concat(this._featureLinesFromSelectionLayer);if(this._currentGraphic){var k=this._extractPointsAndLines([this._currentGraphic],this._currentGraphicOption);a=a.concat(k[0]);b=b.concat(k[1])}var l,n;q.forEach(a,function(a,b){var c=h.toScreen(a,!0);if(-1!==m&&(c.x%=m,0>c.x&&(c.x+=m),h.width>m))for(var e=(h.width-m)/2;c.x<e;)c.x+=m;f=Math.sqrt((c.x-
d.x)*(c.x-d.x)+(c.y-d.y)*(c.y-d.y));f<=g&&(g=f,l=c.x,n=c.y)});if(l)b=new c(l,n),e=b=h.toMap(b);else{var s,t,g=this.tolerance;for(a=0;a<b.length;a++)if("lineStart"===b[a])for(k=a+1;k<b.length;k++){if("lineEnd"!==b[k+1]&&"lineStart"!==b[k+1]&&"lineEnd"!==b[k]&&"lineStart"!==b[k]){var E=h.toScreen(b[k],!0),L=h.toScreen(b[k+1],!0),G=E.x>=L.x?E:L,K=E.x>=L.x?L:E;-1!==m&&(G.x%=m,0>G.x&&(G.x+=m),K.x%=m,0>K.x&&(K.x+=m),K.x>G.x&&(K.x-=m));var E=G.x,G=G.y,L=K.x,K=K.y,J,H,M,N,O,P;E===L?(J=E,H=d.y,M=N=E,O=G<=
K?G:K,P=G<=K?K:G):G===K?(J=d.x,H=G,M=E<=L?E:L,N=E<=L?L:E,O=P=G):(H=(K-G)/(L-E),M=(G*L-E*K)/(L-E),J=(M-(d.y*K-d.y*G-d.x*E+d.x*L)/(K-G))/((E-L)/(K-G)-H),H=H*J+M,M=E<=L?E:L,N=E<=L?L:E,O=G<=K?G:K,P=G<=K?K:G);J>=M&&J<=N&&H>=O&&H<=P?(E=Math.sqrt((d.x-J)*(d.x-J)+(d.y-H)*(d.y-H)),E<=g&&(g=E,s=J,t=H)):(J=Math.sqrt((E-d.x)*(E-d.x)+(G-d.y)*(G-d.y)),H=Math.sqrt((L-d.x)*(L-d.x)+(K-d.y)*(K-d.y)),J<=H?(M=J,J=E,H=G):(M=H,J=L,H=K),M<=g&&(g=M,s=J,t=H))}if("lineEnd"===b[k]){a=k;break}}s&&(b=new c(s,t),e=b=h.toMap(b))}return e},
_setGraphic:function(a){this._currentGraphic=a},_addSnappingPointGraphic:function(){var a=this.map;this._snappingGraphic.setSymbol(this.snapPointSymbol);a.graphics.add(this._snappingGraphic)},_setUpSnapping:function(){var a=this.map;this._onSnapKeyDown_connect=n.connect(a,"onKeyDown",this,"_onSnapKeyDownHandler");this._onSnapKeyUp_connect=n.connect(a,"onKeyUp",this,"_onSnapKeyUpHandler");this._onSnappingMouseMove_connect=n.connect(a,"onMouseMove",this,"_onSnappingMouseMoveHandler");this._onSnappingMouseDrag_connect=
n.connect(a,"onMouseDrag",this,"_onSnappingMouseMoveHandler");this.alwaysSnap&&this._activateSnapping()},_killOffSnapping:function(){n.disconnect(this._onSnapKeyDown_connect);n.disconnect(this._onSnapKeyUp_connect);n.disconnect(this._onSnappingMouseMove_connect);n.disconnect(this._onSnappingMouseDrag_connect);this._deactivateSnapping()},_onSnapKeyDownHandler:function(a){a.keyCode===this.snapKey&&(n.disconnect(this._onSnapKeyDown_connect),this.alwaysSnap?this._deactivateSnapping():this._activateSnapping())},
_activateSnapping:function(){this._snappingActive=!0;this._addSnappingPointGraphic();this._currentLocation&&this._onSnappingMouseMoveHandler(this._currentLocation)},_onSnapKeyUpHandler:function(a){a.keyCode===this.snapKey&&(this._onSnapKeyDown_connect=n.connect(this.map,"onKeyDown",this,"_onSnapKeyDownHandler"),this.alwaysSnap?this._activateSnapping():this._deactivateSnapping())},_deactivateSnapping:function(){this._snappingActive=!1;this._snappingPoint=null;this.map.graphics.remove(this._snappingGraphic);
this._snappingGraphic.setGeometry(null)},_onSnappingMouseMoveHandler:function(a){this._currentLocation=a;this._snappingPoint=null;this._snappingActive&&(this._snappingGraphic.hide(),this.getSnappingPoint(a.screenPoint).addCallback(this._snappingCallback))},_snappingCallback:function(a){if(this._snappingPoint=a)this._snappingGraphic.show(),this._snappingGraphic.setGeometry(a)}});e("extend-esri")&&(b.SnappingManager=l);return l})},"dojox/gfx/svg":function(){define("dojo/_base/lang dojo/_base/sniff dojo/_base/window dojo/dom dojo/_base/declare dojo/_base/array dojo/dom-geometry dojo/dom-attr dojo/_base/Color ./_base ./shape ./path".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f){function m(a,b){return k.doc.createElementNS?k.doc.createElementNS(a,b):k.doc.createElement(b)}function s(a){return t.useSvgWeb?k.doc.createTextNode(a,!0):k.doc.createTextNode(a)}var t=a.svg={};t.useSvgWeb="undefined"!=typeof window.svgweb;var r=navigator.userAgent,u=n("ios"),v=n("android"),A=n("chrome")||v&&4<=v?"auto":"optimizeLegibility";t.xmlns={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"};t.getRef=function(a){return!a||"none"==a?null:
a.match(/^url\(#.+\)$/)?q.byId(a.slice(5,-1)):a.match(/^#dojoUnique\d+$/)?q.byId(a.slice(1)):null};t.dasharray={solid:"none",shortdash:[4,1],shortdot:[1,1],shortdashdot:[4,1,1,1],shortdashdotdot:[4,1,1,1,1,1],dot:[1,3],dash:[4,3],longdash:[8,3],dashdot:[4,3,1,3],longdashdot:[8,3,1,3],longdashdotdot:[8,3,1,3,1,3]};var y=0;t.Shape=h("dojox.gfx.svg.Shape",c.Shape,{destroy:function(){if(this.fillStyle&&"type"in this.fillStyle){var a=this.rawNode.getAttribute("fill");(a=t.getRef(a))&&a.parentNode.removeChild(a)}if(this.clip&&
(a=this.rawNode.getAttribute("clip-path")))(a=q.byId(a.match(/gfx_clip[\d]+/)[0]))&&a.parentNode.removeChild(a);c.Shape.prototype.destroy.apply(this,arguments)},setFill:function(b){if(!b)return this.fillStyle=null,this.rawNode.setAttribute("fill","none"),this.rawNode.setAttribute("fill-opacity",0),this;var c,d=function(a){this.setAttribute(a,c[a].toFixed(8))};if("object"==typeof b&&"type"in b){switch(b.type){case "linear":c=a.makeParameters(a.defaultLinearGradient,b);b=this._setFillObject(c,"linearGradient");
g.forEach(["x1","y1","x2","y2"],d,b);break;case "radial":c=a.makeParameters(a.defaultRadialGradient,b);b=this._setFillObject(c,"radialGradient");g.forEach(["cx","cy","r"],d,b);break;case "pattern":c=a.makeParameters(a.defaultPattern,b),b=this._setFillObject(c,"pattern"),g.forEach(["x","y","width","height"],d,b)}this.fillStyle=c;return this}this.fillStyle=c=a.normalizeColor(b);this.rawNode.setAttribute("fill",c.toCss());this.rawNode.setAttribute("fill-opacity",c.a);this.rawNode.setAttribute("fill-rule",
"evenodd");return this},setStroke:function(c){var d=this.rawNode;if(!c)return this.strokeStyle=null,d.setAttribute("stroke","none"),d.setAttribute("stroke-opacity",0),this;if("string"==typeof c||l.isArray(c)||c instanceof b)c={color:c};c=this.strokeStyle=a.makeParameters(a.defaultStroke,c);c.color=a.normalizeColor(c.color);if(c){d.setAttribute("stroke",c.color.toCss());d.setAttribute("stroke-opacity",c.color.a);d.setAttribute("stroke-width",c.width);d.setAttribute("stroke-linecap",c.cap);"number"==
typeof c.join?(d.setAttribute("stroke-linejoin","miter"),d.setAttribute("stroke-miterlimit",c.join)):d.setAttribute("stroke-linejoin",c.join);var f=c.style.toLowerCase();f in t.dasharray&&(f=t.dasharray[f]);if(f instanceof Array){var f=l._toArray(f),e;for(e=0;e<f.length;++e)f[e]*=c.width;if("butt"!=c.cap){for(e=0;e<f.length;e+=2)f[e]-=c.width,1>f[e]&&(f[e]=1);for(e=1;e<f.length;e+=2)f[e]+=c.width}f=f.join(",")}d.setAttribute("stroke-dasharray",f);d.setAttribute("dojoGfxStrokeStyle",c.style)}return this},
_getParentSurface:function(){for(var b=this.parent;b&&!(b instanceof a.Surface);b=b.parent);return b},_setFillObject:function(b,c){var d=t.xmlns.svg;this.fillStyle=b;var f=this._getParentSurface().defNode,e=this.rawNode.getAttribute("fill");if(e=t.getRef(e))if(e.tagName.toLowerCase()!=c.toLowerCase()){var g=e.id;e.parentNode.removeChild(e);e=m(d,c);e.setAttribute("id",g);f.appendChild(e)}else for(;e.childNodes.length;)e.removeChild(e.lastChild);else e=m(d,c),e.setAttribute("id",a._base._getUniqueId()),
f.appendChild(e);if("pattern"==c)e.setAttribute("patternUnits","userSpaceOnUse"),d=m(d,"image"),d.setAttribute("x",0),d.setAttribute("y",0),d.setAttribute("width",b.width.toFixed(8)),d.setAttribute("height",b.height.toFixed(8)),d.setAttributeNS?d.setAttributeNS(t.xmlns.xlink,"xlink:href",b.src):d.setAttribute("xlink:href",b.src),e.appendChild(d);else{e.setAttribute("gradientUnits","userSpaceOnUse");for(f=0;f<b.colors.length;++f){var g=b.colors[f],h=m(d,"stop"),k=g.color=a.normalizeColor(g.color);
h.setAttribute("offset",g.offset.toFixed(8));h.setAttribute("stop-color",k.toCss());h.setAttribute("stop-opacity",k.a);e.appendChild(h)}}this.rawNode.setAttribute("fill","url(#"+e.getAttribute("id")+")");this.rawNode.removeAttribute("fill-opacity");this.rawNode.setAttribute("fill-rule","evenodd");return e},_applyTransform:function(){if(this.matrix){var a=this.matrix;this.rawNode.setAttribute("transform","matrix("+a.xx.toFixed(8)+","+a.yx.toFixed(8)+","+a.xy.toFixed(8)+","+a.yy.toFixed(8)+","+a.dx.toFixed(8)+
","+a.dy.toFixed(8)+")")}else this.rawNode.removeAttribute("transform");return this},setRawNode:function(a){a=this.rawNode=a;"image"!=this.shape.type&&a.setAttribute("fill","none");a.setAttribute("fill-opacity",0);a.setAttribute("stroke","none");a.setAttribute("stroke-opacity",0);a.setAttribute("stroke-width",1);a.setAttribute("stroke-linecap","butt");a.setAttribute("stroke-linejoin","miter");a.setAttribute("stroke-miterlimit",4);a.__gfxObject__=this},setShape:function(b){this.shape=a.makeParameters(this.shape,
b);for(var c in this.shape)"type"!=c&&this.rawNode.setAttribute(c,this.shape[c]);this.bbox=null;return this},_moveToFront:function(){this.rawNode.parentNode.appendChild(this.rawNode);return this},_moveToBack:function(){this.rawNode.parentNode.insertBefore(this.rawNode,this.rawNode.parentNode.firstChild);return this},setClip:function(a){this.inherited(arguments);var b=a?"width"in a?"rect":"cx"in a?"ellipse":"points"in a?"polyline":"d"in a?"path":null:null;if(a&&!b)return this;"polyline"===b&&(a=l.clone(a),
a.points=a.points.join(","));var c,f=d.get(this.rawNode,"clip-path");f&&(c=q.byId(f.match(/gfx_clip[\d]+/)[0]))&&c.removeChild(c.childNodes[0]);a?(c?(b=m(t.xmlns.svg,b),c.appendChild(b)):(f="gfx_clip"+ ++y,this.rawNode.setAttribute("clip-path","url(#"+f+")"),c=m(t.xmlns.svg,"clipPath"),b=m(t.xmlns.svg,b),c.appendChild(b),this.rawNode.parentNode.insertBefore(c,this.rawNode),d.set(c,"id",f)),d.set(b,a)):(this.rawNode.removeAttribute("clip-path"),c&&c.parentNode.removeChild(c));return this},_removeClipNode:function(){var a,
b=d.get(this.rawNode,"clip-path");b&&(a=q.byId(b.match(/gfx_clip[\d]+/)[0]))&&a.parentNode.removeChild(a);return a}});t.Group=h("dojox.gfx.svg.Group",t.Shape,{constructor:function(){c.Container._init.call(this)},setRawNode:function(a){this.rawNode=a;this.rawNode.__gfxObject__=this},destroy:function(){this.clear(!0);t.Shape.prototype.destroy.apply(this,arguments)}});t.Group.nodeType="g";t.Rect=h("dojox.gfx.svg.Rect",[t.Shape,c.Rect],{setShape:function(b){this.shape=a.makeParameters(this.shape,b);this.bbox=
null;for(var c in this.shape)"type"!=c&&"r"!=c&&this.rawNode.setAttribute(c,this.shape[c]);null!=this.shape.r&&(this.rawNode.setAttribute("ry",this.shape.r),this.rawNode.setAttribute("rx",this.shape.r));return this}});t.Rect.nodeType="rect";t.Ellipse=h("dojox.gfx.svg.Ellipse",[t.Shape,c.Ellipse],{});t.Ellipse.nodeType="ellipse";t.Circle=h("dojox.gfx.svg.Circle",[t.Shape,c.Circle],{});t.Circle.nodeType="circle";t.Line=h("dojox.gfx.svg.Line",[t.Shape,c.Line],{});t.Line.nodeType="line";t.Polyline=h("dojox.gfx.svg.Polyline",
[t.Shape,c.Polyline],{setShape:function(b,c){b&&b instanceof Array?(this.shape=a.makeParameters(this.shape,{points:b}),c&&this.shape.points.length&&this.shape.points.push(this.shape.points[0])):this.shape=a.makeParameters(this.shape,b);this.bbox=null;this._normalizePoints();for(var d=[],f=this.shape.points,e=0;e<f.length;++e)d.push(f[e].x.toFixed(8),f[e].y.toFixed(8));this.rawNode.setAttribute("points",d.join(" "));return this}});t.Polyline.nodeType="polyline";t.Image=h("dojox.gfx.svg.Image",[t.Shape,
c.Image],{setShape:function(b){this.shape=a.makeParameters(this.shape,b);this.bbox=null;b=this.rawNode;for(var c in this.shape)"type"!=c&&"src"!=c&&b.setAttribute(c,this.shape[c]);b.setAttribute("preserveAspectRatio","none");b.setAttributeNS?b.setAttributeNS(t.xmlns.xlink,"xlink:href",this.shape.src):b.setAttribute("xlink:href",this.shape.src);b.__gfxObject__=this;return this}});t.Image.nodeType="image";t.Text=h("dojox.gfx.svg.Text",[t.Shape,c.Text],{setShape:function(b){this.shape=a.makeParameters(this.shape,
b);this.bbox=null;b=this.rawNode;var c=this.shape;b.setAttribute("x",c.x);b.setAttribute("y",c.y);b.setAttribute("text-anchor",c.align);b.setAttribute("text-decoration",c.decoration);b.setAttribute("rotate",c.rotated?90:0);b.setAttribute("kerning",c.kerning?"auto":0);b.setAttribute("text-rendering",A);b.firstChild?b.firstChild.nodeValue=c.text:b.appendChild(s(c.text));return this},getTextWidth:function(){var a=this.rawNode,b=a.parentNode,a=a.cloneNode(!0);a.style.visibility="hidden";var c=0,d=a.firstChild.nodeValue;
b.appendChild(a);if(""!=d)for(;!c;)c=a.getBBox?parseInt(a.getBBox().width):68;b.removeChild(a);return c},getBoundingBox:function(){var a=null;if(this.getShape().text)try{a=this.rawNode.getBBox()}catch(b){a={x:0,y:0,width:0,height:0}}return a}});t.Text.nodeType="text";t.Path=h("dojox.gfx.svg.Path",[t.Shape,f.Path],{_updateWithSegment:function(a){this.inherited(arguments);"string"==typeof this.shape.path&&this.rawNode.setAttribute("d",this.shape.path)},setShape:function(a){this.inherited(arguments);
this.shape.path?this.rawNode.setAttribute("d",this.shape.path):this.rawNode.removeAttribute("d");return this}});t.Path.nodeType="path";t.TextPath=h("dojox.gfx.svg.TextPath",[t.Shape,f.TextPath],{_updateWithSegment:function(a){this.inherited(arguments);this._setTextPath()},setShape:function(a){this.inherited(arguments);this._setTextPath();return this},_setTextPath:function(){if("string"==typeof this.shape.path){var b=this.rawNode;if(!b.firstChild){var c=m(t.xmlns.svg,"textPath"),d=s("");c.appendChild(d);
b.appendChild(c)}c=(c=b.firstChild.getAttributeNS(t.xmlns.xlink,"href"))&&t.getRef(c);if(!c&&(d=this._getParentSurface())){var d=d.defNode,c=m(t.xmlns.svg,"path"),f=a._base._getUniqueId();c.setAttribute("id",f);d.appendChild(c);b.firstChild.setAttributeNS?b.firstChild.setAttributeNS(t.xmlns.xlink,"xlink:href","#"+f):b.firstChild.setAttribute("xlink:href","#"+f)}c&&c.setAttribute("d",this.shape.path)}},_setText:function(){var a=this.rawNode;if(!a.firstChild){var b=m(t.xmlns.svg,"textPath"),c=s("");
b.appendChild(c);a.appendChild(b)}a=a.firstChild;b=this.text;a.setAttribute("alignment-baseline","middle");switch(b.align){case "middle":a.setAttribute("text-anchor","middle");a.setAttribute("startOffset","50%");break;case "end":a.setAttribute("text-anchor","end");a.setAttribute("startOffset","100%");break;default:a.setAttribute("text-anchor","start"),a.setAttribute("startOffset","0%")}a.setAttribute("baseline-shift","0.5ex");a.setAttribute("text-decoration",b.decoration);a.setAttribute("rotate",
b.rotated?90:0);a.setAttribute("kerning",b.kerning?"auto":0);a.firstChild.data=b.text}});t.TextPath.nodeType="text";var w=534<function(){var a=/WebKit\/(\d*)/.exec(r);return a?a[1]:0}();t.Surface=h("dojox.gfx.svg.Surface",c.Surface,{constructor:function(){c.Container._init.call(this)},destroy:function(){c.Container.clear.call(this,!0);this.defNode=null;this.inherited(arguments)},setDimensions:function(a,b){if(!this.rawNode)return this;this.rawNode.setAttribute("width",a);this.rawNode.setAttribute("height",
b);w&&(this.rawNode.style.width=a,this.rawNode.style.height=b);return this},getDimensions:function(){return this.rawNode?{width:a.normalizedLength(this.rawNode.getAttribute("width")),height:a.normalizedLength(this.rawNode.getAttribute("height"))}:null}});t.createSurface=function(b,c,d){var f=new t.Surface;f.rawNode=m(t.xmlns.svg,"svg");f.rawNode.setAttribute("overflow","hidden");c&&f.rawNode.setAttribute("width",c);d&&f.rawNode.setAttribute("height",d);c=m(t.xmlns.svg,"defs");f.rawNode.appendChild(c);
f.defNode=c;f._parent=q.byId(b);f._parent.appendChild(f.rawNode);a._base._fixMsTouchAction(f);return f};n={_setFont:function(){var a=this.fontStyle;this.rawNode.setAttribute("font-style",a.style);this.rawNode.setAttribute("font-variant",a.variant);this.rawNode.setAttribute("font-weight",a.weight);this.rawNode.setAttribute("font-size",a.size);this.rawNode.setAttribute("font-family",a.family)}};var z=c.Container;h=t.Container={openBatch:function(){if(!this._batch){var a;a=t.useSvgWeb?k.doc.createDocumentFragment(!0):
k.doc.createDocumentFragment();this.fragment=a}++this._batch;return this},closeBatch:function(){this._batch=0<this._batch?--this._batch:0;this.fragment&&!this._batch&&(this.rawNode.appendChild(this.fragment),delete this.fragment);return this},add:function(a){this!=a.getParent()&&(this.fragment?this.fragment.appendChild(a.rawNode):this.rawNode.appendChild(a.rawNode),z.add.apply(this,arguments),a.setClip(a.clip));return this},remove:function(a,b){this==a.getParent()&&(this.rawNode==a.rawNode.parentNode&&
this.rawNode.removeChild(a.rawNode),this.fragment&&this.fragment==a.rawNode.parentNode&&this.fragment.removeChild(a.rawNode),a._removeClipNode(),z.remove.apply(this,arguments));return this},clear:function(){for(var a=this.rawNode;a.lastChild;)a.removeChild(a.lastChild);var b=this.defNode;if(b){for(;b.lastChild;)b.removeChild(b.lastChild);a.appendChild(b)}return z.clear.apply(this,arguments)},getBoundingBox:z.getBoundingBox,_moveChildToFront:z._moveChildToFront,_moveChildToBack:z._moveChildToBack};
f=t.Creator={createObject:function(a,b){if(!this.rawNode)return null;var c=new a,d=m(t.xmlns.svg,a.nodeType);c.setRawNode(d);c.setShape(b);this.add(c);return c}};l.extend(t.Text,n);l.extend(t.TextPath,n);l.extend(t.Group,h);l.extend(t.Group,c.Creator);l.extend(t.Group,f);l.extend(t.Surface,h);l.extend(t.Surface,c.Creator);l.extend(t.Surface,f);t.fixTarget=function(a,b){a.gfxTarget||(a.gfxTarget=u&&a.target.wholeText?a.target.parentElement.__gfxObject__:a.target.__gfxObject__);return!0};t.useSvgWeb&&
(t.createSurface=function(b,c,d){var f=new t.Surface;if(!c||!d){var g=e.position(b);c=c||g.w;d=d||g.h}b=q.byId(b);var g=b.id?b.id+"_svgweb":a._base._getUniqueId(),h=m(t.xmlns.svg,"svg");h.id=g;h.setAttribute("width",c);h.setAttribute("height",d);svgweb.appendChild(h,b);h.addEventListener("SVGLoad",function(){f.rawNode=this;f.isLoaded=!0;var a=m(t.xmlns.svg,"defs");f.rawNode.appendChild(a);f.defNode=a;if(f.onLoad)f.onLoad(f)},!1);f.isLoaded=!1;return f},t.Surface.extend({destroy:function(){var a=this.rawNode;
svgweb.removeChild(a,a.parentNode)}}),n={connect:function(a,b,c){"on"===a.substring(0,2)&&(a=a.substring(2));c=2==arguments.length?b:l.hitch(b,c);this.getEventSource().addEventListener(a,c,!1);return[this,a,c]},disconnect:function(a){this.getEventSource().removeEventListener(a[1],a[2],!1);delete a[0]}},l.extend(t.Shape,n),l.extend(t.Surface,n));return t})},"dojox/gfx/shape":function(){define("./_base dojo/_base/lang dojo/_base/declare dojo/_base/kernel dojo/_base/sniff dojo/on dojo/_base/array dojo/dom-construct dojo/_base/Color ./matrix".split(" "),
function(l,n,k,q,h,g,e,d,b,a){var c=l.shape={};c.Shape=k("dojox.gfx.shape.Shape",null,{constructor:function(){this.parentMatrix=this.parent=this.bbox=this.strokeStyle=this.fillStyle=this.matrix=this.shape=this.rawNode=null;if(h("gfxRegistry")){var a=c.register(this);this.getUID=function(){return a}}},destroy:function(){h("gfxRegistry")&&c.dispose(this);this.rawNode&&"__gfxObject__"in this.rawNode&&(this.rawNode.__gfxObject__=null);this.rawNode=null},getNode:function(){return this.rawNode},getShape:function(){return this.shape},
getTransform:function(){return this.matrix},getFill:function(){return this.fillStyle},getStroke:function(){return this.strokeStyle},getParent:function(){return this.parent},getBoundingBox:function(){return this.bbox},getTransformedBoundingBox:function(){var b=this.getBoundingBox();if(!b)return null;var c=this._getRealMatrix();return[a.multiplyPoint(c,b.x,b.y),a.multiplyPoint(c,b.x+b.width,b.y),a.multiplyPoint(c,b.x+b.width,b.y+b.height),a.multiplyPoint(c,b.x,b.y+b.height)]},getEventSource:function(){return this.rawNode},
setClip:function(a){this.clip=a},getClip:function(){return this.clip},setShape:function(a){this.shape=l.makeParameters(this.shape,a);this.bbox=null;return this},setFill:function(a){if(!a)return this.fillStyle=null,this;var b=null;if("object"==typeof a&&"type"in a)switch(a.type){case "linear":b=l.makeParameters(l.defaultLinearGradient,a);break;case "radial":b=l.makeParameters(l.defaultRadialGradient,a);break;case "pattern":b=l.makeParameters(l.defaultPattern,a)}else b=l.normalizeColor(a);this.fillStyle=
b;return this},setStroke:function(a){if(!a)return this.strokeStyle=null,this;if("string"==typeof a||n.isArray(a)||a instanceof b)a={color:a};a=this.strokeStyle=l.makeParameters(l.defaultStroke,a);a.color=l.normalizeColor(a.color);return this},setTransform:function(b){this.matrix=a.clone(b?a.normalize(b):a.identity);return this._applyTransform()},_applyTransform:function(){return this},moveToFront:function(){var a=this.getParent();a&&(a._moveChildToFront(this),this._moveToFront());return this},moveToBack:function(){var a=
this.getParent();a&&(a._moveChildToBack(this),this._moveToBack());return this},_moveToFront:function(){},_moveToBack:function(){},applyRightTransform:function(a){return a?this.setTransform([this.matrix,a]):this},applyLeftTransform:function(a){return a?this.setTransform([a,this.matrix]):this},applyTransform:function(a){return a?this.setTransform([this.matrix,a]):this},removeShape:function(a){this.parent&&this.parent.remove(this,a);return this},_setParent:function(a,b){this.parent=a;return this._updateParentMatrix(b)},
_updateParentMatrix:function(b){this.parentMatrix=b?a.clone(b):null;return this._applyTransform()},_getRealMatrix:function(){for(var b=this.matrix,c=this.parent;c;)c.matrix&&(b=a.multiply(c.matrix,b)),c=c.parent;return b}});c._eventsProcessing={on:function(a,b){return g(this.getEventSource(),a,c.fixCallback(this,l.fixTarget,b))},connect:function(a,b,c){"on"==a.substring(0,2)&&(a=a.substring(2));return this.on(a,c?n.hitch(b,c):b)},disconnect:function(a){return a.remove()}};c.fixCallback=function(a,
b,c,d){d||(d=c,c=null);if(n.isString(d)){c=c||q.global;if(!c[d])throw['dojox.gfx.shape.fixCallback: scope["',d,'"] is null (scope\x3d"',c,'")'].join("");return function(e){return b(e,a)?c[d].apply(c,arguments||[]):void 0}}return!c?function(e){return b(e,a)?d.apply(c,arguments):void 0}:function(e){return b(e,a)?d.apply(c,arguments||[]):void 0}};n.extend(c.Shape,c._eventsProcessing);c.Container={_init:function(){this.children=[];this._batch=0},openBatch:function(){return this},closeBatch:function(){return this},
add:function(a){var b=a.getParent();b&&b.remove(a,!0);this.children.push(a);return a._setParent(this,this._getRealMatrix())},remove:function(a,b){for(var c=0;c<this.children.length;++c)if(this.children[c]==a){b||(a.parent=null,a.parentMatrix=null);this.children.splice(c,1);break}return this},clear:function(a){for(var b,c=0;c<this.children.length;++c)b=this.children[c],b.parent=null,b.parentMatrix=null,a&&b.destroy();this.children=[];return this},getBoundingBox:function(){if(this.children){var b=null;
e.forEach(this.children,function(c){var d=c.getBoundingBox();d&&((c=c.getTransform())&&(d=a.multiplyRectangle(c,d)),b?(b.x=Math.min(b.x,d.x),b.y=Math.min(b.y,d.y),b.endX=Math.max(b.endX,d.x+d.width),b.endY=Math.max(b.endY,d.y+d.height)):b={x:d.x,y:d.y,endX:d.x+d.width,endY:d.y+d.height})});b&&(b.width=b.endX-b.x,b.height=b.endY-b.y);return b}return null},_moveChildToFront:function(a){for(var b=0;b<this.children.length;++b)if(this.children[b]==a){this.children.splice(b,1);this.children.push(a);break}return this},
_moveChildToBack:function(a){for(var b=0;b<this.children.length;++b)if(this.children[b]==a){this.children.splice(b,1);this.children.unshift(a);break}return this}};c.Surface=k("dojox.gfx.shape.Surface",null,{constructor:function(){this._parent=this.rawNode=null;this._nodes=[];this._events=[]},destroy:function(){e.forEach(this._nodes,d.destroy);this._nodes=[];e.forEach(this._events,function(a){a&&a.remove()});this._events=[];this.rawNode=null;if(h("ie"))for(;this._parent.lastChild;)d.destroy(this._parent.lastChild);
else this._parent.innerHTML="";this._parent=null},getEventSource:function(){return this.rawNode},_getRealMatrix:function(){return null},isLoaded:!0,onLoad:function(a){},whenLoaded:function(a,b){var c=n.hitch(a,b);if(this.isLoaded)c(this);else g.once(this,"load",function(a){c(a)})}});n.extend(c.Surface,c._eventsProcessing);c.Rect=k("dojox.gfx.shape.Rect",c.Shape,{constructor:function(a){this.shape=l.getDefault("Rect");this.rawNode=a},getBoundingBox:function(){return this.shape}});c.Ellipse=k("dojox.gfx.shape.Ellipse",
c.Shape,{constructor:function(a){this.shape=l.getDefault("Ellipse");this.rawNode=a},getBoundingBox:function(){if(!this.bbox){var a=this.shape;this.bbox={x:a.cx-a.rx,y:a.cy-a.ry,width:2*a.rx,height:2*a.ry}}return this.bbox}});c.Circle=k("dojox.gfx.shape.Circle",c.Shape,{constructor:function(a){this.shape=l.getDefault("Circle");this.rawNode=a},getBoundingBox:function(){if(!this.bbox){var a=this.shape;this.bbox={x:a.cx-a.r,y:a.cy-a.r,width:2*a.r,height:2*a.r}}return this.bbox}});c.Line=k("dojox.gfx.shape.Line",
c.Shape,{constructor:function(a){this.shape=l.getDefault("Line");this.rawNode=a},getBoundingBox:function(){if(!this.bbox){var a=this.shape;this.bbox={x:Math.min(a.x1,a.x2),y:Math.min(a.y1,a.y2),width:Math.abs(a.x2-a.x1),height:Math.abs(a.y2-a.y1)}}return this.bbox}});c.Polyline=k("dojox.gfx.shape.Polyline",c.Shape,{constructor:function(a){this.shape=l.getDefault("Polyline");this.rawNode=a},setShape:function(a,b){a&&a instanceof Array?(this.inherited(arguments,[{points:a}]),b&&this.shape.points.length&&
this.shape.points.push(this.shape.points[0])):this.inherited(arguments,[a]);return this},_normalizePoints:function(){var a=this.shape.points,b=a&&a.length;if(b&&"number"==typeof a[0]){for(var c=[],d=0;d<b;d+=2)c.push({x:a[d],y:a[d+1]});this.shape.points=c}},getBoundingBox:function(){if(!this.bbox&&this.shape.points.length){for(var a=this.shape.points,b=a.length,c=a[0],d=c.x,e=c.y,g=c.x,h=c.y,k=1;k<b;++k)c=a[k],d>c.x&&(d=c.x),g<c.x&&(g=c.x),e>c.y&&(e=c.y),h<c.y&&(h=c.y);this.bbox={x:d,y:e,width:g-
d,height:h-e}}return this.bbox}});c.Image=k("dojox.gfx.shape.Image",c.Shape,{constructor:function(a){this.shape=l.getDefault("Image");this.rawNode=a},getBoundingBox:function(){return this.shape},setStroke:function(){return this},setFill:function(){return this}});c.Text=k(c.Shape,{constructor:function(a){this.fontStyle=null;this.shape=l.getDefault("Text");this.rawNode=a},getFont:function(){return this.fontStyle},setFont:function(a){this.fontStyle="string"==typeof a?l.splitFontString(a):l.makeParameters(l.defaultFont,
a);this._setFont();return this},getBoundingBox:function(){var a=null;this.getShape().text&&(a=l._base._computeTextBoundingBox(this));return a}});c.Creator={createShape:function(a){switch(a.type){case l.defaultPath.type:return this.createPath(a);case l.defaultRect.type:return this.createRect(a);case l.defaultCircle.type:return this.createCircle(a);case l.defaultEllipse.type:return this.createEllipse(a);case l.defaultLine.type:return this.createLine(a);case l.defaultPolyline.type:return this.createPolyline(a);
case l.defaultImage.type:return this.createImage(a);case l.defaultText.type:return this.createText(a);case l.defaultTextPath.type:return this.createTextPath(a)}return null},createGroup:function(){return this.createObject(l.Group)},createRect:function(a){return this.createObject(l.Rect,a)},createEllipse:function(a){return this.createObject(l.Ellipse,a)},createCircle:function(a){return this.createObject(l.Circle,a)},createLine:function(a){return this.createObject(l.Line,a)},createPolyline:function(a){return this.createObject(l.Polyline,
a)},createImage:function(a){return this.createObject(l.Image,a)},createText:function(a){return this.createObject(l.Text,a)},createPath:function(a){return this.createObject(l.Path,a)},createTextPath:function(a){return this.createObject(l.TextPath,{}).setText(a)},createObject:function(a,b){return null}};return c})},"dojox/gfx/path":function(){define(["./_base","dojo/_base/lang","dojo/_base/declare","./matrix","./shape"],function(l,n,k,q,h){h=k("dojox.gfx.path.Path",h.Shape,{constructor:function(g){this.shape=
n.clone(l.defaultPath);this.segments=[];this.tbbox=null;this.absolute=!0;this.last={};this.rawNode=g;this.segmented=!1},setAbsoluteMode:function(g){this._confirmSegmented();this.absolute="string"==typeof g?"absolute"==g:g;return this},getAbsoluteMode:function(){this._confirmSegmented();return this.absolute},getBoundingBox:function(){this._confirmSegmented();return this.bbox&&"l"in this.bbox?{x:this.bbox.l,y:this.bbox.t,width:this.bbox.r-this.bbox.l,height:this.bbox.b-this.bbox.t}:null},_getRealBBox:function(){this._confirmSegmented();
if(this.tbbox)return this.tbbox;var g=this.bbox,e=this._getRealMatrix();this.bbox=null;for(var d=0,b=this.segments.length;d<b;++d)this._updateWithSegment(this.segments[d],e);e=this.bbox;this.bbox=g;return this.tbbox=e?[{x:e.l,y:e.t},{x:e.r,y:e.t},{x:e.r,y:e.b},{x:e.l,y:e.b}]:null},getLastPosition:function(){this._confirmSegmented();return"x"in this.last?this.last:null},_applyTransform:function(){this.tbbox=null;return this.inherited(arguments)},_updateBBox:function(g,e,d){d&&(e=q.multiplyPoint(d,
g,e),g=e.x,e=e.y);this.bbox&&"l"in this.bbox?(this.bbox.l>g&&(this.bbox.l=g),this.bbox.r<g&&(this.bbox.r=g),this.bbox.t>e&&(this.bbox.t=e),this.bbox.b<e&&(this.bbox.b=e)):this.bbox={l:g,b:e,r:g,t:e}},_updateWithSegment:function(g,e){var d=g.args,b=d.length,a;switch(g.action){case "M":case "L":case "C":case "S":case "Q":case "T":for(a=0;a<b;a+=2)this._updateBBox(d[a],d[a+1],e);this.last.x=d[b-2];this.last.y=d[b-1];this.absolute=!0;break;case "H":for(a=0;a<b;++a)this._updateBBox(d[a],this.last.y,e);
this.last.x=d[b-1];this.absolute=!0;break;case "V":for(a=0;a<b;++a)this._updateBBox(this.last.x,d[a],e);this.last.y=d[b-1];this.absolute=!0;break;case "m":a=0;"x"in this.last||(this._updateBBox(this.last.x=d[0],this.last.y=d[1],e),a=2);for(;a<b;a+=2)this._updateBBox(this.last.x+=d[a],this.last.y+=d[a+1],e);this.absolute=!1;break;case "l":case "t":for(a=0;a<b;a+=2)this._updateBBox(this.last.x+=d[a],this.last.y+=d[a+1],e);this.absolute=!1;break;case "h":for(a=0;a<b;++a)this._updateBBox(this.last.x+=
d[a],this.last.y,e);this.absolute=!1;break;case "v":for(a=0;a<b;++a)this._updateBBox(this.last.x,this.last.y+=d[a],e);this.absolute=!1;break;case "c":for(a=0;a<b;a+=6)this._updateBBox(this.last.x+d[a],this.last.y+d[a+1],e),this._updateBBox(this.last.x+d[a+2],this.last.y+d[a+3],e),this._updateBBox(this.last.x+=d[a+4],this.last.y+=d[a+5],e);this.absolute=!1;break;case "s":case "q":for(a=0;a<b;a+=4)this._updateBBox(this.last.x+d[a],this.last.y+d[a+1],e),this._updateBBox(this.last.x+=d[a+2],this.last.y+=
d[a+3],e);this.absolute=!1;break;case "A":for(a=0;a<b;a+=7)this._updateBBox(d[a+5],d[a+6],e);this.last.x=d[b-2];this.last.y=d[b-1];this.absolute=!0;break;case "a":for(a=0;a<b;a+=7)this._updateBBox(this.last.x+=d[a+5],this.last.y+=d[a+6],e);this.absolute=!1}var c=[g.action];for(a=0;a<b;++a)c.push(l.formatNumber(d[a],!0));if("string"==typeof this.shape.path)this.shape.path+=c.join("");else{a=0;for(b=c.length;a<b;++a)this.shape.path.push(c[a])}},_validSegments:{m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7,z:0},
_pushSegment:function(g,e){this.tbbox=null;var d=this._validSegments[g.toLowerCase()];"number"==typeof d&&(d?e.length>=d&&(d={action:g,args:e.slice(0,e.length-e.length%d)},this.segments.push(d),this._updateWithSegment(d)):(d={action:g,args:[]},this.segments.push(d),this._updateWithSegment(d)))},_collectArgs:function(g,e){for(var d=0;d<e.length;++d){var b=e[d];"boolean"==typeof b?g.push(b?1:0):"number"==typeof b?g.push(b):b instanceof Array?this._collectArgs(g,b):"x"in b&&"y"in b&&g.push(b.x,b.y)}},
moveTo:function(){this._confirmSegmented();var g=[];this._collectArgs(g,arguments);this._pushSegment(this.absolute?"M":"m",g);return this},lineTo:function(){this._confirmSegmented();var g=[];this._collectArgs(g,arguments);this._pushSegment(this.absolute?"L":"l",g);return this},hLineTo:function(){this._confirmSegmented();var g=[];this._collectArgs(g,arguments);this._pushSegment(this.absolute?"H":"h",g);return this},vLineTo:function(){this._confirmSegmented();var g=[];this._collectArgs(g,arguments);
this._pushSegment(this.absolute?"V":"v",g);return this},curveTo:function(){this._confirmSegmented();var g=[];this._collectArgs(g,arguments);this._pushSegment(this.absolute?"C":"c",g);return this},smoothCurveTo:function(){this._confirmSegmented();var g=[];this._collectArgs(g,arguments);this._pushSegment(this.absolute?"S":"s",g);return this},qCurveTo:function(){this._confirmSegmented();var g=[];this._collectArgs(g,arguments);this._pushSegment(this.absolute?"Q":"q",g);return this},qSmoothCurveTo:function(){this._confirmSegmented();
var g=[];this._collectArgs(g,arguments);this._pushSegment(this.absolute?"T":"t",g);return this},arcTo:function(){this._confirmSegmented();var g=[];this._collectArgs(g,arguments);this._pushSegment(this.absolute?"A":"a",g);return this},closePath:function(){this._confirmSegmented();this._pushSegment("Z",[]);return this},_confirmSegmented:function(){if(!this.segmented){var g=this.shape.path;this.shape.path=[];this._setPath(g);this.shape.path=this.shape.path.join("");this.segmented=!0}},_setPath:function(g){g=
n.isArray(g)?g:g.match(l.pathSvgRegExp);this.segments=[];this.absolute=!0;this.bbox={};this.last={};if(g){for(var e="",d=[],b=g.length,a=0;a<b;++a){var c=g[a],f=parseFloat(c);isNaN(f)?(e&&this._pushSegment(e,d),d=[],e=c):d.push(f)}this._pushSegment(e,d)}},setShape:function(g){this.inherited(arguments,["string"==typeof g?{path:g}:g]);this.segmented=!1;this.segments=[];l.lazyPathSegmentation||this._confirmSegmented();return this},_2PI:2*Math.PI});k=k("dojox.gfx.path.TextPath",h,{constructor:function(g){"text"in
this||(this.text=n.clone(l.defaultTextPath));"fontStyle"in this||(this.fontStyle=n.clone(l.defaultFont))},getText:function(){return this.text},setText:function(g){this.text=l.makeParameters(this.text,"string"==typeof g?{text:g}:g);this._setText();return this},getFont:function(){return this.fontStyle},setFont:function(g){this.fontStyle="string"==typeof g?l.splitFontString(g):l.makeParameters(l.defaultFont,g);this._setFont();return this}});return l.path={Path:h,TextPath:k}})},"dojox/gfx/vml":function(){define("dojo/_base/lang dojo/_base/declare dojo/_base/array dojo/_base/Color dojo/_base/sniff dojo/_base/config dojo/dom dojo/dom-geometry dojo/dom-style dojo/_base/kernel ./_base ./shape ./path ./arc ./gradient ./matrix".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r){function u(b,d,f){f=f||a.global;d.call(f,b);(b instanceof c.Surface||b instanceof c.Group)&&k.forEach(b.children,function(a){u(a,d,f)})}var v=c.vml={},A=function(){v.xmlns="urn:schemas-microsoft-com:vml";try{document.namespaces.add("v",v.xmlns);var a="* group roundrect oval shape rect imagedata path textpath text".split(" "),b=0,c=1,d=document.createStyleSheet();8<=h("ie")&&(b=1,c=a.length);for(;b<c;++b)d.addRule("v\\:"+a[b],"behavior:url(#default#VML); display:inline-block")}catch(f){setTimeout(A,
10)}};A();v.text_alignment={start:"left",middle:"center",end:"right"};v._parseFloat=function(a){return a.match(/^\d+f$/i)?parseInt(a)/65536:parseFloat(a)};v._bool={t:1,"true":1};v._reparentEvents=function(a,b){for(var c in b)"on"==c.substr(0,2).toLowerCase()&&(a[c]=b[c],b[c]=null)};v.Shape=n("dojox.gfx.vml.Shape",f.Shape,{setFill:function(a){if(!a)return this.fillStyle=null,this.rawNode.filled="f",this;var b,d,f;if("object"==typeof a&&"type"in a){switch(a.type){case "linear":var e=this._getRealMatrix(),
g=this.getBoundingBox(),h=this._getRealBBox?this._getRealBBox():this.getTransformedBoundingBox();f=[];this.fillStyle!==a&&(this.fillStyle=c.makeParameters(c.defaultLinearGradient,a));a=c.gradient.project(e,this.fillStyle,{x:g.x,y:g.y},{x:g.x+g.width,y:g.y+g.height},h[0],h[2]);d=a.colors;"0.00000"!=d[0].offset.toFixed(5)&&f.push("0 "+c.normalizeColor(d[0].color).toHex());for(b=0;b<d.length;++b)f.push(d[b].offset.toFixed(5)+" "+c.normalizeColor(d[b].color).toHex());b=d.length-1;"1.00000"!=d[b].offset.toFixed(5)&&
f.push("1 "+c.normalizeColor(d[b].color).toHex());b=this.rawNode.fill;b.colors.value=f.join(";");b.method="sigma";b.type="gradient";b.angle=(270-r._radToDeg(a.angle))%360;b.on=!0;break;case "radial":this.fillStyle=a=c.makeParameters(c.defaultRadialGradient,a);var e=parseFloat(this.rawNode.style.left),g=parseFloat(this.rawNode.style.top),h=parseFloat(this.rawNode.style.width),m=parseFloat(this.rawNode.style.height),l=isNaN(h)?1:2*a.r/h;d=[];0<a.colors[0].offset&&d.push({offset:1,color:c.normalizeColor(a.colors[0].color)});
k.forEach(a.colors,function(a,b){d.push({offset:1-a.offset*l,color:c.normalizeColor(a.color)})});for(b=d.length-1;0<=b&&0>d[b].offset;)--b;if(b<d.length-1){f=d[b];var n=d[b+1];n.color=q.blendColors(f.color,n.color,f.offset/(f.offset-n.offset));for(n.offset=0;2<d.length-b;)d.pop()}b=d.length-1;f=[];for(0<d[b].offset&&f.push("0 "+d[b].color.toHex());0<=b;--b)f.push(d[b].offset.toFixed(5)+" "+d[b].color.toHex());b=this.rawNode.fill;b.colors.value=f.join(";");b.method="sigma";b.type="gradientradial";
isNaN(h)||isNaN(m)||isNaN(e)||isNaN(g)?b.focusposition="0.5 0.5":b.focusposition=((a.cx-e)/h).toFixed(5)+" "+((a.cy-g)/m).toFixed(5);b.focussize="0 0";b.on=!0;break;case "pattern":this.fillStyle=a=c.makeParameters(c.defaultPattern,a),b=this.rawNode.fill,b.type="tile",b.src=a.src,a.width&&a.height&&(b.size.x=c.px2pt(a.width),b.size.y=c.px2pt(a.height)),b.alignShape="f",b.position.x=0,b.position.y=0,b.origin.x=a.width?a.x/a.width:0,b.origin.y=a.height?a.y/a.height:0,b.on=!0}this.rawNode.fill.opacity=
1;return this}this.fillStyle=c.normalizeColor(a);(b=this.rawNode.fill)||(b=this.rawNode.ownerDocument.createElement("v:fill"));b.method="any";b.type="solid";b.opacity=this.fillStyle.a;if(f=this.rawNode.filters["DXImageTransform.Microsoft.Alpha"])f.opacity=Math.round(100*this.fillStyle.a);this.rawNode.fillcolor=this.fillStyle.toHex();this.rawNode.filled=!0;return this},setStroke:function(a){if(!a)return this.strokeStyle=null,this.rawNode.stroked="f",this;if("string"==typeof a||l.isArray(a)||a instanceof
q)a={color:a};a=this.strokeStyle=c.makeParameters(c.defaultStroke,a);a.color=c.normalizeColor(a.color);var b=this.rawNode;b.stroked=!0;b.strokecolor=a.color.toCss();b.strokeweight=a.width+"px";b.stroke&&(b.stroke.opacity=a.color.a,b.stroke.endcap=this._translate(this._capMap,a.cap),"number"==typeof a.join?(b.stroke.joinstyle="miter",b.stroke.miterlimit=a.join):b.stroke.joinstyle=a.join,b.stroke.dashstyle="none"==a.style?"Solid":a.style);return this},_capMap:{butt:"flat"},_capMapReversed:{flat:"butt"},
_translate:function(a,b){return b in a?a[b]:b},_applyTransform:function(){var a=this._getRealMatrix();if(a){var b=this.rawNode.skew;if("undefined"==typeof b)for(var c=0;c<this.rawNode.childNodes.length;++c)if("skew"==this.rawNode.childNodes[c].tagName){b=this.rawNode.childNodes[c];break}if(b){b.on="f";var c=a.xx.toFixed(8)+" "+a.xy.toFixed(8)+" "+a.yx.toFixed(8)+" "+a.yy.toFixed(8)+" 0 0",a=Math.floor(a.dx).toFixed()+"px "+Math.floor(a.dy).toFixed()+"px",d=this.rawNode.style,f=parseFloat(d.left),
e=parseFloat(d.top),g=parseFloat(d.width),d=parseFloat(d.height);isNaN(f)&&(f=0);isNaN(e)&&(e=0);if(isNaN(g)||!g)g=1;if(isNaN(d)||!d)d=1;f=(-f/g-0.5).toFixed(8)+" "+(-e/d-0.5).toFixed(8);b.matrix=c;b.origin=f;b.offset=a;b.on=!0}}this.fillStyle&&"linear"==this.fillStyle.type&&this.setFill(this.fillStyle);this.clip&&this.setClip(this.clip);return this},_setDimensions:function(a,b){return this},setRawNode:function(a){a.stroked="f";a.filled="f";this.rawNode=a;this.rawNode.__gfxObject__=this},_moveToFront:function(){this.rawNode.parentNode.appendChild(this.rawNode);
return this},_moveToBack:function(){var a=this.rawNode,b=a.parentNode,c=b.firstChild;b.insertBefore(a,c);"rect"==c.tagName&&c.swapNode(a);return this},_getRealMatrix:function(){return this.parentMatrix?new r.Matrix2D([this.parentMatrix,this.matrix]):this.matrix},setClip:function(a){this.inherited(arguments);var b=this.rawNode.style;if(a){if("width"in a){var c=this._getRealMatrix(),d=parseFloat(b.left),f=parseFloat(b.top);isNaN(d)&&(d=0);isNaN(f)&&(f=0);var e=r.multiplyRectangle(c,a),c=r.multiplyPoint(c,
{x:d,y:f});b.clip="rect("+Math.round(e.y-c.y)+"px "+Math.round(e.x-c.x+e.width)+"px "+Math.round(e.y-c.y+e.height)+"px "+Math.round(e.x-c.x)+"px)"}}else b.position="absolute",b.clip="rect(0px "+b.width+" "+b.height+" 0px)";return this}});(function(){var a=v.Shape,c=a.prototype.setStroke,d=a.prototype.setFill;a.prototype.setStroke=function(){var a=c.apply(this,arguments),b=this.rawNode,b=b&&b.stroke,d=this.getParent();b&&d&&(b.opacity*=void 0!==d._esriIeOpacity&&null!==d._esriIeOpacity?d._esriIeOpacity:
1);return a};a.prototype.setFill=function(){var a=d.apply(this,arguments),c=this.rawNode,f=c&&c.fill,e=this.getParent();f&&e&&(e=void 0!==e._esriIeOpacity&&null!==e._esriIeOpacity?e._esriIeOpacity:1,"tile"===f.type?b.set(c,"opacity",e):f.opacity*=e);return a}})();v.Group=n("dojox.gfx.vml.Group",v.Shape,{constructor:function(){f.Container._init.call(this)},_applyTransform:function(){for(var a=this._getRealMatrix(),b=0;b<this.children.length;++b)this.children[b]._updateParentMatrix(a);this.clip&&this.setClip(this.clip);
return this},_setDimensions:function(a,b){var c=this.rawNode,d=c.style,f=this.bgNode.style;d.width=a;d.height=b;c.coordsize=a+" "+b;f.width=a;f.height=b;for(c=0;c<this.children.length;++c)this.children[c]._setDimensions(a,b);return this},setClip:function(a){this.clip=a;var b=this.rawNode.style;if(a){if("width"in a){var c=this._getRealMatrix();a=r.multiplyRectangle(c,a);var d=this.getBoundingBox(),c=(d=d?r.multiplyRectangle(c,d):null)&&0>d.x?d.x:0,d=d&&0>d.y?d.y:0;b.position="absolute";b.clip="rect("+
Math.round(a.y-d)+"px "+Math.round(a.x+a.width-c)+"px "+Math.round(a.y+a.height-d)+"px "+Math.round(a.x-c)+"px)"}}else b.position="absolute",b.clip="rect(0px "+b.width+" "+b.height+" 0px)";return this},destroy:function(){this.clear(!0);v.Shape.prototype.destroy.apply(this,arguments)}});v.Group.nodeType="group";v.Rect=n("dojox.gfx.vml.Rect",[v.Shape,f.Rect],{setShape:function(a){a=this.shape=c.makeParameters(this.shape,a);this.bbox=null;var b=Math.min(1,a.r/Math.min(parseFloat(a.width),parseFloat(a.height))).toFixed(8),
d=this.rawNode.parentNode,f=null;if(d){if(d.lastChild!==this.rawNode)for(var e=0;e<d.childNodes.length;++e)if(d.childNodes[e]===this.rawNode){f=d.childNodes[e+1];break}d.removeChild(this.rawNode)}7<h("ie")?(e=this.rawNode.ownerDocument.createElement("v:roundrect"),e.arcsize=b,e.style.display="inline-block",v._reparentEvents(e,this.rawNode),this.rawNode=e,this.rawNode.__gfxObject__=this):this.rawNode.arcsize=b;d&&(f?d.insertBefore(this.rawNode,f):d.appendChild(this.rawNode));b=this.rawNode.style;b.left=
a.x.toFixed();b.top=a.y.toFixed();b.width="string"==typeof a.width&&0<=a.width.indexOf("%")?a.width:Math.max(a.width.toFixed(),0);b.height="string"==typeof a.height&&0<=a.height.indexOf("%")?a.height:Math.max(a.height.toFixed(),0);return this.setTransform(this.matrix).setFill(this.fillStyle).setStroke(this.strokeStyle)}});v.Rect.nodeType="roundrect";v.Ellipse=n("dojox.gfx.vml.Ellipse",[v.Shape,f.Ellipse],{setShape:function(a){a=this.shape=c.makeParameters(this.shape,a);this.bbox=null;var b=this.rawNode.style;
b.left=(a.cx-a.rx).toFixed();b.top=(a.cy-a.ry).toFixed();b.width=(2*a.rx).toFixed();b.height=(2*a.ry).toFixed();return this.setTransform(this.matrix)}});v.Ellipse.nodeType="oval";v.Circle=n("dojox.gfx.vml.Circle",[v.Shape,f.Circle],{setShape:function(a){a=this.shape=c.makeParameters(this.shape,a);this.bbox=null;var b=this.rawNode.style;b.left=(a.cx-a.r).toFixed();b.top=(a.cy-a.r).toFixed();b.width=(2*a.r).toFixed();b.height=(2*a.r).toFixed();return this}});v.Circle.nodeType="oval";v.Line=n("dojox.gfx.vml.Line",
[v.Shape,f.Line],{constructor:function(a){a&&a.setAttribute("dojoGfxType","line")},setShape:function(a){a=this.shape=c.makeParameters(this.shape,a);this.bbox=null;this.rawNode.path.v="m"+a.x1.toFixed()+" "+a.y1.toFixed()+"l"+a.x2.toFixed()+" "+a.y2.toFixed()+"e";return this.setTransform(this.matrix)}});v.Line.nodeType="shape";v.Polyline=n("dojox.gfx.vml.Polyline",[v.Shape,f.Polyline],{constructor:function(a){a&&a.setAttribute("dojoGfxType","polyline")},setShape:function(a,b){a&&a instanceof Array?
(this.shape=c.makeParameters(this.shape,{points:a}),b&&this.shape.points.length&&this.shape.points.push(this.shape.points[0])):this.shape=c.makeParameters(this.shape,a);this.bbox=null;this._normalizePoints();var d=[],f=this.shape.points;if(0<f.length&&(d.push("m"),d.push(f[0].x.toFixed(),f[0].y.toFixed()),1<f.length)){d.push("l");for(var e=1;e<f.length;++e)d.push(f[e].x.toFixed(),f[e].y.toFixed())}d.push("e");this.rawNode.path.v=d.join(" ");return this.setTransform(this.matrix)}});v.Polyline.nodeType=
"shape";v.Image=n("dojox.gfx.vml.Image",[v.Shape,f.Image],{setShape:function(a){a=this.shape=c.makeParameters(this.shape,a);this.bbox=null;this.rawNode.firstChild.src=a.src;return this.setTransform(this.matrix)},_applyTransform:function(){var a=this._getRealMatrix(),b=this.rawNode,c=b.style,d=this.shape,a=a?r.multiply(a,{dx:d.x,dy:d.y}):r.normalize({dx:d.x,dy:d.y});if(0==a.xy&&0==a.yx&&0<a.xx&&0<a.yy)c.filter="",c.width=Math.floor(a.xx*d.width),c.height=Math.floor(a.yy*d.height),c.left=Math.floor(a.dx),
c.top=Math.floor(a.dy);else{var f=b.parentNode.style;c.left="0px";c.top="0px";c.width=f.width;c.height=f.height;a=r.multiply(a,{xx:d.width/parseInt(c.width),yy:d.height/parseInt(c.height)});(b=b.filters["DXImageTransform.Microsoft.Matrix"])?(b.M11=a.xx,b.M12=a.xy,b.M21=a.yx,b.M22=a.yy,b.Dx=a.dx,b.Dy=a.dy):c.filter="progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+a.xx+", M12\x3d"+a.xy+", M21\x3d"+a.yx+", M22\x3d"+a.yy+", Dx\x3d"+a.dx+", Dy\x3d"+a.dy+")"}return this},_setDimensions:function(a,b){var c=
this.rawNode;return c.filters["DXImageTransform.Microsoft.Matrix"]?(c=c.style,c.width=a,c.height=b,this._applyTransform()):this}});v.Image.nodeType="rect";v.Text=n("dojox.gfx.vml.Text",[v.Shape,f.Text],{constructor:function(a){a&&a.setAttribute("dojoGfxType","text");this.fontStyle=null},_alignment:{start:"left",middle:"center",end:"right"},setShape:function(a){this.shape=c.makeParameters(this.shape,a);this.bbox=null;var b=this.rawNode;a=this.shape;var d=a.x,f=a.y.toFixed();switch(a.align){case "middle":d-=
5;break;case "end":d-=10}for(var f="m"+d.toFixed()+","+f+"l"+(d+10).toFixed()+","+f+"e",e=null,d=null,g=b.childNodes,h=0;h<g.length;++h){var m=g[h].tagName;if("path"==m){if(e=g[h],d)break}else if("textpath"==m&&(d=g[h],e))break}e||(e=b.ownerDocument.createElement("v:path"),b.appendChild(e));d||(d=b.ownerDocument.createElement("v:textpath"),b.appendChild(d));e.v=f;e.textPathOk=!0;d.on=!0;b=v.text_alignment[a.align];d.style["v-text-align"]=b?b:"left";d.style["text-decoration"]=a.decoration;d.style["v-rotate-letters"]=
a.rotated;d.style["v-text-kern"]=a.kerning;d.string=a.text;return this.setTransform(this.matrix)},_setFont:function(){for(var a=this.fontStyle,b=this.rawNode.childNodes,d=0;d<b.length;++d)if("textpath"==b[d].tagName){b[d].style.font=c.makeFontString(a);break}this.setTransform(this.matrix)},_getRealMatrix:function(){var a=this.inherited(arguments);a&&(a=r.multiply(a,{dy:0.35*-c.normalizedLength(this.fontStyle?this.fontStyle.size:"10pt")}));return a},getTextWidth:function(){var a=this.rawNode,b=a.style.display;
a.style.display="inline";var d=c.pt2px(parseFloat(a.currentStyle.width));a.style.display=b;return d}});v.Text.nodeType="shape";v.Path=n("dojox.gfx.vml.Path",[v.Shape,m.Path],{constructor:function(a){a&&!a.getAttribute("dojoGfxType")&&a.setAttribute("dojoGfxType","path");this.vmlPath="";this.lastControl={}},_updateWithSegment:function(a){var b=l.clone(this.last);this.inherited(arguments);1<arguments.length||(b=this[this.renderers[a.action]](a,b),"string"==typeof this.vmlPath?(this.vmlPath+=b.join(""),
this.rawNode.path.v=this.vmlPath+" r0,0 e"):Array.prototype.push.apply(this.vmlPath,b))},setShape:function(a){this.vmlPath=[];this.lastControl.type="";this.inherited(arguments);this.vmlPath=this.vmlPath.join("");this.rawNode.path.v=this.vmlPath+" r0,0 e";return this},_pathVmlToSvgMap:{m:"M",l:"L",t:"m",r:"l",c:"C",v:"c",qb:"Q",x:"z",e:""},renderers:{M:"_moveToA",m:"_moveToR",L:"_lineToA",l:"_lineToR",H:"_hLineToA",h:"_hLineToR",V:"_vLineToA",v:"_vLineToR",C:"_curveToA",c:"_curveToR",S:"_smoothCurveToA",
s:"_smoothCurveToR",Q:"_qCurveToA",q:"_qCurveToR",T:"_qSmoothCurveToA",t:"_qSmoothCurveToR",A:"_arcTo",a:"_arcTo",Z:"_closePath",z:"_closePath"},_addArgs:function(a,b,c,d){for(b=b instanceof Array?b:b.args;c<d;++c)a.push(" ",b[c].toFixed())},_adjustRelCrd:function(a,b,c){b=b instanceof Array?b:b.args;var d=b.length,f=Array(d),e=0,g=a.x;a=a.y;"number"!=typeof g&&(f[0]=g=b[0],f[1]=a=b[1],e=2);if("number"==typeof c&&2!=c)for(var h=c;h<=d;){for(;e<h;e+=2)f[e]=g+b[e],f[e+1]=a+b[e+1];g=f[h-2];a=f[h-1];
h+=c}else for(;e<d;e+=2)f[e]=g+=b[e],f[e+1]=a+=b[e+1];return f},_adjustRelPos:function(a,b){for(var c=b instanceof Array?b:b.args,d=c.length,f=Array(d),e=0;e<d;++e)f[e]=a+=c[e];return f},_moveToA:function(a){var b=[" m"];a=a instanceof Array?a:a.args;var c=a.length;this._addArgs(b,a,0,2);2<c&&(b.push(" l"),this._addArgs(b,a,2,c));this.lastControl.type="";return b},_moveToR:function(a,b){return this._moveToA(this._adjustRelCrd(b,a))},_lineToA:function(a){var b=[" l"];a=a instanceof Array?a:a.args;
this._addArgs(b,a,0,a.length);this.lastControl.type="";return b},_lineToR:function(a,b){return this._lineToA(this._adjustRelCrd(b,a))},_hLineToA:function(a,b){for(var c=[" l"],d=" "+b.y.toFixed(),f=a instanceof Array?a:a.args,e=f.length,g=0;g<e;++g)c.push(" ",f[g].toFixed(),d);this.lastControl.type="";return c},_hLineToR:function(a,b){return this._hLineToA(this._adjustRelPos(b.x,a),b)},_vLineToA:function(a,b){for(var c=[" l"],d=" "+b.x.toFixed(),f=a instanceof Array?a:a.args,e=f.length,g=0;g<e;++g)c.push(d,
" ",f[g].toFixed());this.lastControl.type="";return c},_vLineToR:function(a,b){return this._vLineToA(this._adjustRelPos(b.y,a),b)},_curveToA:function(a){var b=[];a=a instanceof Array?a:a.args;for(var c=a.length,d=this.lastControl,f=0;f<c;f+=6)b.push(" c"),this._addArgs(b,a,f,f+6);d.x=a[c-4];d.y=a[c-3];d.type="C";return b},_curveToR:function(a,b){return this._curveToA(this._adjustRelCrd(b,a,6))},_smoothCurveToA:function(a,b){var c=[],d=a instanceof Array?a:a.args,f=d.length,e=this.lastControl,g=0;
"C"!=e.type&&(c.push(" c"),this._addArgs(c,[b.x,b.y],0,2),this._addArgs(c,d,0,4),e.x=d[0],e.y=d[1],e.type="C",g=4);for(;g<f;g+=4)c.push(" c"),this._addArgs(c,[2*b.x-e.x,2*b.y-e.y],0,2),this._addArgs(c,d,g,g+4),e.x=d[g],e.y=d[g+1];return c},_smoothCurveToR:function(a,b){return this._smoothCurveToA(this._adjustRelCrd(b,a,4),b)},_qCurveToA:function(a){var b=[];a=a instanceof Array?a:a.args;for(var c=a.length,d=this.lastControl,f=0;f<c;f+=4)b.push(" qb"),this._addArgs(b,a,f,f+4);d.x=a[c-4];d.y=a[c-3];
d.type="Q";return b},_qCurveToR:function(a,b){return this._qCurveToA(this._adjustRelCrd(b,a,4))},_qSmoothCurveToA:function(a,b){var c=[],d=a instanceof Array?a:a.args,f=d.length,e=this.lastControl,g=0;"Q"!=e.type&&(c.push(" qb"),this._addArgs(c,[e.x=b.x,e.y=b.y],0,2),e.type="Q",this._addArgs(c,d,0,2),g=2);for(;g<f;g+=2)c.push(" qb"),this._addArgs(c,[e.x=2*b.x-e.x,e.y=2*b.y-e.y],0,2),this._addArgs(c,d,g,g+2);return c},_qSmoothCurveToR:function(a,b){return this._qSmoothCurveToA(this._adjustRelCrd(b,
a,2),b)},_arcTo:function(a,b){for(var c=[],d=a.args,f=d.length,e="a"==a.action,g=0;g<f;g+=7){var h=d[g+5],m=d[g+6];e&&(h+=b.x,m+=b.y);for(var k=s.arcAsBezier(b,d[g],d[g+1],d[g+2],d[g+3]?1:0,d[g+4]?1:0,h,m),l=0;l<k.length;++l){c.push(" c");var n=k[l];this._addArgs(c,n,0,n.length);this._updateBBox(n[0],n[1]);this._updateBBox(n[2],n[3]);this._updateBBox(n[4],n[5])}b.x=h;b.y=m}this.lastControl.type="";return c},_closePath:function(){this.lastControl.type="";return["x"]}});v.Path.nodeType="shape";v.EsriPath=
n("dojox.gfx.vml.EsriPath",v.Path,{setShape:function(a){this.rawNode.path.v=this.vmlPath=a;return this}});v.EsriPath.nodeType="shape";v.TextPath=n("dojox.gfx.vml.TextPath",[v.Path,m.TextPath],{constructor:function(a){a&&a.setAttribute("dojoGfxType","textpath");this.fontStyle=null;"text"in this||(this.text=l.clone(c.defaultTextPath));"fontStyle"in this||(this.fontStyle=l.clone(c.defaultFont))},setText:function(a){this.text=c.makeParameters(this.text,"string"==typeof a?{text:a}:a);this._setText();return this},
setFont:function(a){this.fontStyle="string"==typeof a?c.splitFontString(a):c.makeParameters(c.defaultFont,a);this._setFont();return this},_setText:function(){this.bbox=null;for(var a=this.rawNode,b=this.text,c=null,d=null,f=a.childNodes,e=0;e<f.length;++e){var g=f[e].tagName;if("path"==g){if(c=f[e],d)break}else if("textpath"==g&&(d=f[e],c))break}c||(c=this.rawNode.ownerDocument.createElement("v:path"),a.appendChild(c));d||(d=this.rawNode.ownerDocument.createElement("v:textpath"),a.appendChild(d));
c.textPathOk=!0;d.on=!0;a=v.text_alignment[b.align];d.style["v-text-align"]=a?a:"left";d.style["text-decoration"]=b.decoration;d.style["v-rotate-letters"]=b.rotated;d.style["v-text-kern"]=b.kerning;d.string=b.text},_setFont:function(){for(var a=this.fontStyle,b=this.rawNode.childNodes,d=0;d<b.length;++d)if("textpath"==b[d].tagName){b[d].style.font=c.makeFontString(a);break}}});v.TextPath.nodeType="shape";v.Surface=n("dojox.gfx.vml.Surface",f.Surface,{constructor:function(){f.Container._init.call(this)},
destroy:function(){this.clear(!0);this.inherited(arguments)},setDimensions:function(a,b){this.width=c.normalizedLength(a);this.height=c.normalizedLength(b);if(!this.rawNode)return this;var d=this.clipNode.style,f=this.rawNode,e=f.style,g=this.bgNode.style,h=this._parent.style;h.width=a;h.height=b;d.width=a;d.height=b;d.clip="rect(0px "+a+"px "+b+"px 0px)";e.width=a;e.height=b;f.coordsize=a+" "+b;g.width=a;g.height=b;for(d=0;d<this.children.length;++d)this.children[d]._setDimensions(a,b);return this},
getDimensions:function(){var a=this.rawNode?{width:c.normalizedLength(this.rawNode.style.width),height:c.normalizedLength(this.rawNode.style.height)}:null;0>=a.width&&(a.width=this.width);0>=a.height&&(a.height=this.height);return a}});v.createSurface=function(a,b,f){if(!b&&!f){var g=d.position(a);b=b||g.w;f=f||g.h}"number"==typeof b&&(b+="px");"number"==typeof f&&(f+="px");g=new v.Surface;a=e.byId(a);var m=g.clipNode=a.ownerDocument.createElement("div"),k=g.rawNode=a.ownerDocument.createElement("v:group"),
l=m.style,n=k.style;7<h("ie")&&(n.display="inline-block");g._parent=a;g._nodes.push(m);a.style.width=b;a.style.height=f;l.position="absolute";l.width=b;l.height=f;l.clip="rect(0px "+b+" "+f+" 0px)";n.position="absolute";n.width=b;n.height=f;k.coordsize=("100%"===b?b:parseFloat(b))+" "+("100%"===f?f:parseFloat(f));k.coordorigin="0 0";var l=g.bgNode=k.ownerDocument.createElement("v:rect"),q=l.style;q.left=q.top=0;q.width=n.width;q.height=n.height;l.filled=l.stroked="f";k.appendChild(l);m.appendChild(k);
a.appendChild(m);g.width=c.normalizedLength(b);g.height=c.normalizedLength(f);return g};n=function(a){if(this!=a.getParent()){var b=a.getParent();b&&b.remove(a);this.rawNode.appendChild(a.rawNode);y.add.apply(this,arguments);u(this,function(a){"function"==typeof a.getFont&&(a.setShape(a.getShape()),a.setFont(a.getFont()));"function"==typeof a.setFill&&(a.setFill(a.getFill()),a.setStroke(a.getStroke()))})}return this};m=function(a){this!=a.getParent()&&(this.rawNode.appendChild(a.rawNode),a.getParent()||
(a.setFill(a.getFill()),a.setStroke(a.getStroke())),y.add.apply(this,arguments));return this};var y=f.Container;g={add:!0===g.fixVmlAdd?n:m,remove:function(a,b){this==a.getParent()&&(this.rawNode==a.rawNode.parentNode&&this.rawNode.removeChild(a.rawNode),y.remove.apply(this,arguments));return this},clear:function(){for(var a=this.rawNode;a.firstChild!=a.lastChild;)a.firstChild!=this.bgNode&&a.removeChild(a.firstChild),a.lastChild!=this.bgNode&&a.removeChild(a.lastChild);return y.clear.apply(this,
arguments)},getBoundingBox:y.getBoundingBox,_moveChildToFront:y._moveChildToFront,_moveChildToBack:y._moveChildToBack};n={createGroup:function(){var a=this.createObject(v.Group,null),b=a.rawNode.ownerDocument.createElement("v:rect");b.style.left=b.style.top=0;b.style.width=a.rawNode.style.width;b.style.height=a.rawNode.style.height;b.filled=b.stroked="f";a.rawNode.appendChild(b);a.bgNode=b;return a},createImage:function(a){if(!this.rawNode)return null;var b=new v.Image,c=this.rawNode.ownerDocument,
d=c.createElement("v:rect");d.stroked="f";d.style.width=this.rawNode.style.width;d.style.height=this.rawNode.style.height;c=c.createElement("v:imagedata");d.appendChild(c);b.setRawNode(d);this.rawNode.appendChild(d);b.setShape(a);this.add(b);return b},createRect:function(a){if(!this.rawNode)return null;var b=new v.Rect,c=this.rawNode.ownerDocument.createElement("v:roundrect");7<h("ie")&&(c.style.display="inline-block");b.setRawNode(c);this.rawNode.appendChild(c);b.setShape(a);this.add(b);return b},
createObject:function(a,b){if(!this.rawNode)return null;var c=new a,d=this.rawNode.ownerDocument.createElement("v:"+a.nodeType);c.setRawNode(d);this.rawNode.appendChild(d);switch(a){case v.Group:case v.Line:case v.Polyline:case v.Image:case v.Text:case v.Path:case v.TextPath:this._overrideSize(d)}c.setShape(b);this.add(c);return c},_overrideSize:function(a){var b=this.rawNode.style,c=b.width,b=b.height;a.style.width=c;a.style.height=b;a.coordsize=parseInt(c)+" "+parseInt(b)}};l.extend(v.Group,g);
l.extend(v.Group,f.Creator);l.extend(v.Group,n);l.extend(v.Surface,g);l.extend(v.Surface,f.Creator);l.extend(v.Surface,n);v.fixTarget=function(a,b){a.gfxTarget||(a.gfxTarget=a.target.__gfxObject__);return!0};return v})},"dojox/gfx/arc":function(){define(["./_base","dojo/_base/lang","./matrix"],function(l,n,k){function q(a){var b=Math.cos(a);a=Math.sin(a);var d={x:b+4/3*(1-b),y:a-4/3*b*(1-b)/a};return{s:{x:b,y:-a},c1:{x:d.x,y:-d.y},c2:d,e:{x:b,y:a}}}var h=2*Math.PI,g=Math.PI/4,e=Math.PI/8,d=g+e,b=
q(e);return l.arc={unitArcAsBezier:q,curvePI4:b,arcAsBezier:function(a,c,f,m,l,n,r,u){l=Boolean(l);n=Boolean(n);var v=k._degToRad(m);m=c*c;var A=f*f,y=k.multiplyPoint(k.rotate(-v),{x:(a.x-r)/2,y:(a.y-u)/2}),w=y.x*y.x,z=y.y*y.y;m=Math.sqrt((m*A-m*z-A*w)/(m*z+A*w));isNaN(m)&&(m=0);m={x:m*c*y.y/f,y:-m*f*y.x/c};l==n&&(m={x:-m.x,y:-m.y});m=k.multiplyPoint([k.translate((a.x+r)/2,(a.y+u)/2),k.rotate(v)],m);c=k.normalize([k.translate(m.x,m.y),k.rotate(v),k.scale(c,f)]);m=k.invert(c);a=k.multiplyPoint(m,a);
u=k.multiplyPoint(m,r,u);r=Math.atan2(a.y,a.x);u=Math.atan2(u.y,u.x);m=r-u;n&&(m=-m);0>m?m+=h:m>h&&(m-=h);f=e;u=b;f=n?f:-f;a=[];for(l=m;0<l;l-=g)l<d&&(f=l/2,u=q(f),f=n?f:-f,l=0),y=k.normalize([c,k.rotate(r+f)]),n?(m=k.multiplyPoint(y,u.c1),v=k.multiplyPoint(y,u.c2),y=k.multiplyPoint(y,u.e)):(m=k.multiplyPoint(y,u.c2),v=k.multiplyPoint(y,u.c1),y=k.multiplyPoint(y,u.s)),a.push([m.x,m.y,v.x,v.y,y.x,y.y]),r+=2*f;return a}}})},"dojox/gfx/gradient":function(){define(["dojo/_base/lang","./matrix","dojo/_base/Color"],
function(l,n,k){function q(e,d,b,a,c,f){e=n.multiplyPoint(b,e,d);a=n.multiplyPoint(a,e);return{r:e,p:a,o:n.multiplyPoint(c,a).x/f}}function h(e,d){return e.o-d.o}var g=l.getObject("dojox.gfx.gradient",!0);g.rescale=function(e,d,b){var a=e.length,c=b<d,f;c&&(f=d,d=b,b=f);if(!a)return[];if(b<=e[0].offset)f=[{offset:0,color:e[0].color},{offset:1,color:e[0].color}];else if(d>=e[a-1].offset)f=[{offset:0,color:e[a-1].color},{offset:1,color:e[a-1].color}];else{var g=b-d,h,l,n;f=[];0>d&&f.push({offset:0,
color:new k(e[0].color)});for(n=0;n<a&&!(h=e[n],h.offset>=d);++n);n?(l=e[n-1],f.push({offset:0,color:k.blendColors(new k(l.color),new k(h.color),(d-l.offset)/(h.offset-l.offset))})):f.push({offset:0,color:new k(h.color)});for(;n<a;++n){h=e[n];if(h.offset>=b)break;f.push({offset:(h.offset-d)/g,color:new k(h.color)})}n<a?(l=e[n-1],f.push({offset:1,color:k.blendColors(new k(l.color),new k(h.color),(b-l.offset)/(h.offset-l.offset))})):f.push({offset:1,color:new k(e[a-1].color)})}if(c){f.reverse();n=0;
for(a=f.length;n<a;++n)h=f[n],h.offset=1-h.offset}return f};g.project=function(e,d,b,a,c,f){e=e||n.identity;var m=n.multiplyPoint(e,d.x1,d.y1),k=n.multiplyPoint(e,d.x2,d.y2);c=Math.atan2(k.y-m.y,k.x-m.x);f=n.project(k.x-m.x,k.y-m.y);m=n.multiplyPoint(f,m);k=n.multiplyPoint(f,k);m=new n.Matrix2D([n.rotate(-c),{dx:-m.x,dy:-m.y}]);k=n.multiplyPoint(m,k).x;e=[q(b.x,b.y,e,f,m,k),q(a.x,a.y,e,f,m,k),q(b.x,a.y,e,f,m,k),q(a.x,b.y,e,f,m,k)].sort(h);d=g.rescale(d.colors,e[0].o,e[3].o);Math.atan2(e[3].r.y-e[0].r.y,
e[3].r.x-e[0].r.x);return{type:"linear",x1:e[0].p.x,y1:e[0].p.y,x2:e[3].p.x,y2:e[3].p.y,colors:d,angle:c}};return g})},"dojox/gfx/canvas":function(){define("./_base dojo/_base/lang dojo/_base/array dojo/_base/declare dojo/_base/window dojo/dom-geometry dojo/dom ./shape ./path ./arc ./matrix ./decompose ./bezierutils".split(" "),function(l,n,k,q,h,g,e,d,b,a,c,f,m){function s(a,b,c,d,f,e,g,h,m,k){var l,n,q=b.length,r=0;k?(n=k.l/f,r=k.i):n=b[0]/f;for(;e<g;)e+n>g&&(l={l:(e+n-g)*f,i:r},n=g-e),r%2||(a.beginPath(),
a.arc(c,d,f,e,e+n,h),m&&a.stroke()),e+=n,++r,n=b[r%q]/f;return l}function t(a,b,c,d){var f=0,e=0,g,h=0;d?(g=d.l,h=d.i):g=b[0];for(;1>e;)e=m.tAtLength(a,g),1==e&&(f=m.computeLength(a),f={l:g-f,i:h}),a=m.splitBezierAtT(a,e),h%2||c.push(a[0]),a=a[1],++h,g=b[h%b.length];return f}function r(a,b,c,d){var f=[b.last.x,b.last.y].concat(c),e=!(a instanceof Array);c=4===c.length?"quadraticCurveTo":"bezierCurveTo";var g=[];b=t(f,b.canvasDash,g,d);for(d=0;d<g.length;++d)f=g[d],e?(a.moveTo(f[0],f[1]),a[c].apply(a,
f.slice(2))):(a.push("moveTo",[f[0],f[1]]),a.push(c,f.slice(2)));return b}function u(a,b,c,d,f,e,g){var h=0,k=0,l=0,n=m.distance(c,d,f,e),q=0;b=b.canvasDash;var r=c,s=d,t,u=!(a instanceof Array);g?(l=g.l,q=g.i):l+=b[0];for(;0.01<Math.abs(1-k);)l>n&&(h={l:l-n,i:q},l=n),k=l/n,g=c+(f-c)*k,t=d+(e-d)*k,q++%2||(u?(a.moveTo(r,s),a.lineTo(g,t)):(a.push("moveTo",[r,s]),a.push("lineTo",[g,t]))),r=g,s=t,l+=b[q%b.length];return h}var v=l.canvas={},A=null,y=c.multiplyPoint,w=Math.PI,z=2*w,x=w/2;f=n.extend;if(h.global.CanvasRenderingContext2D){h=
h.doc.createElement("canvas").getContext("2d");var B="function"==typeof h.setLineDash,D="function"==typeof h.fillText}var C={solid:"none",shortdash:[4,1],shortdot:[1,1],shortdashdot:[4,1,1,1],shortdashdotdot:[4,1,1,1,1,1],dot:[1,3],dash:[4,3],longdash:[8,3],dashdot:[4,3,1,3],longdashdot:[8,3,1,3],longdashdotdot:[8,3,1,3,1,3]};v.Shape=q("dojox.gfx.canvas.Shape",d.Shape,{_render:function(a){a.save();this._renderTransform(a);this._renderClip(a);this._renderShape(a);this._renderFill(a,!0);this._renderStroke(a,
!0);a.restore()},_renderClip:function(a){this.canvasClip&&(this.canvasClip.render(a),a.clip())},_renderTransform:function(a){if("canvasTransform"in this){var b=this.canvasTransform;a.translate(b.dx,b.dy);a.rotate(b.angle2);a.scale(b.sx,b.sy);a.rotate(b.angle1)}},_renderShape:function(a){},_renderFill:function(a,b){if("canvasFill"in this){var c=this.fillStyle;if("canvasFillImage"in this){var d=c.width,f=c.height,e=this.canvasFillImage.width,g=this.canvasFillImage.height,h=Math.min(d==e?1:d/e,f==g?
1:f/g),m=(d-h*e)/2,k=(f-h*g)/2;A.width=d;A.height=f;var l=A.getContext("2d");l.clearRect(0,0,d,f);l.drawImage(this.canvasFillImage,0,0,e,g,m,k,h*e,h*g);this.canvasFill=a.createPattern(A,"repeat");delete this.canvasFillImage}a.fillStyle=this.canvasFill;b&&("pattern"===c.type&&(0!==c.x||0!==c.y)&&a.translate(c.x,c.y),a.fill())}else a.fillStyle="rgba(0,0,0,0.0)"},_renderStroke:function(a,b){var c=this.strokeStyle;c?(a.strokeStyle=c.color.toString(),a.lineWidth=c.width,a.lineCap=c.cap,"number"==typeof c.join?
(a.lineJoin="miter",a.miterLimit=c.join):a.lineJoin=c.join,this.canvasDash?B?(a.setLineDash(this.canvasDash),b&&a.stroke()):this._renderDashedStroke(a,b):b&&a.stroke()):b||(a.strokeStyle="rgba(0,0,0,0.0)")},_renderDashedStroke:function(a,b){},getEventSource:function(){return null},on:function(){},connect:function(){},disconnect:function(){},canvasClip:null,setClip:function(a){this.inherited(arguments);var b=a?"width"in a?"rect":"cx"in a?"ellipse":"points"in a?"polyline":"d"in a?"path":null:null;if(a&&
!b)return this;this.canvasClip=a?F(b,a):null;this.parent&&this.parent._makeDirty();return this}});var F=function(a,b){switch(a){case "ellipse":return{canvasEllipse:G({shape:b}),render:function(a){return v.Ellipse.prototype._renderShape.call(this,a)}};case "rect":return{shape:n.delegate(b,{r:0}),render:function(a){return v.Rect.prototype._renderShape.call(this,a)}};case "path":return{canvasPath:I(b),render:function(a){this.canvasPath._renderShape(a)}};case "polyline":return{canvasPolyline:b.points,
render:function(a){return v.Polyline.prototype._renderShape.call(this,a)}}}return null},I=function(a){var b=new dojox.gfx.canvas.Path;b.canvasPath=[];b._setPath(a.d);return b},E=function(a,b,c){var d=a.prototype[b];a.prototype[b]=c?function(){this.parent&&this.parent._makeDirty();d.apply(this,arguments);c.call(this);return this}:function(){this.parent&&this.parent._makeDirty();return d.apply(this,arguments)}};E(v.Shape,"setTransform",function(){this.matrix?this.canvasTransform=l.decompose(this.matrix):
delete this.canvasTransform});E(v.Shape,"setFill",function(){var a=this.fillStyle,b;if(a){if("object"==typeof a&&"type"in a){var c=this.surface.rawNode.getContext("2d");switch(a.type){case "linear":case "radial":b="linear"==a.type?c.createLinearGradient(a.x1,a.y1,a.x2,a.y2):c.createRadialGradient(a.cx,a.cy,0,a.cx,a.cy,a.r);k.forEach(a.colors,function(a){b.addColorStop(a.offset,l.normalizeColor(a.color).toString())});break;case "pattern":A||(A=document.createElement("canvas")),c=new Image,this.surface.downloadImage(c,
a.src),this.canvasFillImage=c}}else b=a.toString();this.canvasFill=b}else delete this.canvasFill});E(v.Shape,"setStroke",function(){var a=this.strokeStyle;if(a){var b=this.strokeStyle.style.toLowerCase();b in C&&(b=C[b]);if(b instanceof Array){this.canvasDash=b=b.slice();var c;for(c=0;c<b.length;++c)b[c]*=a.width;if("butt"!=a.cap){for(c=0;c<b.length;c+=2)b[c]-=a.width,1>b[c]&&(b[c]=1);for(c=1;c<b.length;c+=2)b[c]+=a.width}}else delete this.canvasDash}else delete this.canvasDash;this._needsDash=!B&&
!!this.canvasDash});E(v.Shape,"setShape");v.Group=q("dojox.gfx.canvas.Group",v.Shape,{constructor:function(){d.Container._init.call(this)},_render:function(a){a.save();this._renderTransform(a);this._renderClip(a);for(var b=0;b<this.children.length;++b)this.children[b]._render(a);a.restore()},destroy:function(){d.Container.clear.call(this,!0);v.Shape.prototype.destroy.apply(this,arguments)}});v.Rect=q("dojox.gfx.canvas.Rect",[v.Shape,d.Rect],{_renderShape:function(a){var b=this.shape,c=Math.min(b.r,
b.height/2,b.width/2),d=b.x,f=d+b.width,e=b.y,b=e+b.height,g=d+c,h=f-c,m=e+c,k=b-c;a.beginPath();a.moveTo(g,e);c?(a.arc(h,m,c,-x,0,!1),a.arc(h,k,c,0,x,!1),a.arc(g,k,c,x,w,!1),a.arc(g,m,c,w,w+x,!1)):(a.lineTo(h,e),a.lineTo(f,k),a.lineTo(g,b),a.lineTo(d,m));a.closePath()},_renderDashedStroke:function(a,b){var c=this.shape,d=Math.min(c.r,c.height/2,c.width/2),f=c.x,e=f+c.width,g=c.y,h=g+c.height,m=f+d,k=e-d,l=g+d,n=h-d;d?(a.beginPath(),c=u(a,this,m,g,k,g),b&&a.stroke(),c=s(a,this.canvasDash,k,l,d,-x,
0,!1,b,c),a.beginPath(),c=u(a,this,e,l,e,n,c),b&&a.stroke(),c=s(a,this.canvasDash,k,n,d,0,x,!1,b,c),a.beginPath(),c=u(a,this,k,h,m,h,c),b&&a.stroke(),c=s(a,this.canvasDash,m,n,d,x,w,!1,b,c),a.beginPath(),c=u(a,this,f,n,f,l,c),b&&a.stroke(),s(a,this.canvasDash,m,l,d,w,w+x,!1,b,c)):(a.beginPath(),c=u(a,this,m,g,k,g),c=u(a,this,k,g,e,n,c),c=u(a,this,e,n,m,h,c),u(a,this,m,h,f,l,c),b&&a.stroke())}});var L=[];(function(){var b=a.curvePI4;L.push(b.s,b.c1,b.c2,b.e);for(var d=45;360>d;d+=45){var f=c.rotateg(d);
L.push(y(f,b.c1),y(f,b.c2),y(f,b.e))}})();var G=function(a){var b,d,f,e=[],g=a.shape,h=c.normalize([c.translate(g.cx,g.cy),c.scale(g.rx,g.ry)]);b=y(h,L[0]);e.push([b.x,b.y]);for(g=1;g<L.length;g+=3)d=y(h,L[g]),f=y(h,L[g+1]),b=y(h,L[g+2]),e.push([d.x,d.y,f.x,f.y,b.x,b.y]);if(a._needsDash){b=[];d=e[0];for(g=1;g<e.length;++g)f=[],t(d.concat(e[g]),a.canvasDash,f),d=[e[g][4],e[g][5]],b.push(f);a._dashedPoints=b}return e};v.Ellipse=q("dojox.gfx.canvas.Ellipse",[v.Shape,d.Ellipse],{setShape:function(){this.inherited(arguments);
this.canvasEllipse=G(this);return this},setStroke:function(){this.inherited(arguments);B||(this.canvasEllipse=G(this));return this},_renderShape:function(a){var b=this.canvasEllipse,c;a.beginPath();a.moveTo.apply(a,b[0]);for(c=1;c<b.length;++c)a.bezierCurveTo.apply(a,b[c]);a.closePath()},_renderDashedStroke:function(a,b){var c=this._dashedPoints;a.beginPath();for(var d=0;d<c.length;++d)for(var f=c[d],e=0;e<f.length;++e){var g=f[e];a.moveTo(g[0],g[1]);a.bezierCurveTo(g[2],g[3],g[4],g[5],g[6],g[7])}b&&
a.stroke()}});v.Circle=q("dojox.gfx.canvas.Circle",[v.Shape,d.Circle],{_renderShape:function(a){var b=this.shape;a.beginPath();a.arc(b.cx,b.cy,b.r,0,z,1)},_renderDashedStroke:function(a,b){var c=this.shape,d=0,f,e=this.canvasDash.length;for(i=0;d<z;)f=this.canvasDash[i%e]/c.r,i%2||(a.beginPath(),a.arc(c.cx,c.cy,c.r,d,d+f,0),b&&a.stroke()),d+=f,++i}});v.Line=q("dojox.gfx.canvas.Line",[v.Shape,d.Line],{_renderShape:function(a){var b=this.shape;a.beginPath();a.moveTo(b.x1,b.y1);a.lineTo(b.x2,b.y2)},
_renderDashedStroke:function(a,b){var c=this.shape;a.beginPath();u(a,this,c.x1,c.y1,c.x2,c.y2);b&&a.stroke()}});v.Polyline=q("dojox.gfx.canvas.Polyline",[v.Shape,d.Polyline],{setShape:function(){this.inherited(arguments);var a=this.shape.points,b=a[0],c,d;this.bbox=null;this._normalizePoints();if(a.length)if("number"==typeof b)b=a;else{b=[];for(d=0;d<a.length;++d)c=a[d],b.push(c.x,c.y)}else b=[];this.canvasPolyline=b;return this},_renderShape:function(a){var b=this.canvasPolyline;if(b.length){a.beginPath();
a.moveTo(b[0],b[1]);for(var c=2;c<b.length;c+=2)a.lineTo(b[c],b[c+1])}},_renderDashedStroke:function(a,b){var c=this.canvasPolyline,d=0;a.beginPath();for(var f=0;f<c.length;f+=2)d=u(a,this,c[f],c[f+1],c[f+2],c[f+3],d);b&&a.stroke()}});v.Image=q("dojox.gfx.canvas.Image",[v.Shape,d.Image],{setShape:function(){this.inherited(arguments);var a=new Image;this.surface.downloadImage(a,this.shape.src);this.canvasImage=a;return this},_renderShape:function(a){var b=this.shape;a.drawImage(this.canvasImage,b.x,
b.y,b.width,b.height)}});v.Text=q("dojox.gfx.canvas.Text",[v.Shape,d.Text],{_setFont:function(){this.fontStyle?this.canvasFont=l.makeFontString(this.fontStyle):delete this.canvasFont},getTextWidth:function(){var a=this.shape,b=0,c;a.text&&(c=this.surface.rawNode.getContext("2d"),c.save(),this._renderTransform(c),this._renderFill(c,!1),this._renderStroke(c,!1),this.canvasFont&&(c.font=this.canvasFont),b=c.measureText(a.text).width,c.restore());return b},_render:function(a){a.save();this._renderTransform(a);
this._renderFill(a,!1);this._renderStroke(a,!1);this._renderShape(a);a.restore()},_renderShape:function(a){var b,c=this.shape;c.text&&(b="middle"===c.align?"center":c.align,a.textAlign=b,this.canvasFont&&(a.font=this.canvasFont),this.canvasFill&&a.fillText(c.text,c.x,c.y),this.strokeStyle&&(a.beginPath(),a.strokeText(c.text,c.x,c.y),a.closePath()))}});E(v.Text,"setFont");D||v.Text.extend({getTextWidth:function(){return 0},getBoundingBox:function(){return null},_renderShape:function(){}});var K={M:"_moveToA",
m:"_moveToR",L:"_lineToA",l:"_lineToR",H:"_hLineToA",h:"_hLineToR",V:"_vLineToA",v:"_vLineToR",C:"_curveToA",c:"_curveToR",S:"_smoothCurveToA",s:"_smoothCurveToR",Q:"_qCurveToA",q:"_qCurveToR",T:"_qSmoothCurveToA",t:"_qSmoothCurveToR",A:"_arcTo",a:"_arcTo",Z:"_closePath",z:"_closePath"};v.Path=q("dojox.gfx.canvas.Path",[v.Shape,b.Path],{constructor:function(){this.lastControl={}},setShape:function(){this.canvasPath=[];this._dashedPath=[];return this.inherited(arguments)},setStroke:function(){this.inherited(arguments);
B||(this.segmented=!1,this._confirmSegmented());return this},_setPath:function(){this._dashResidue=null;this.inherited(arguments)},_updateWithSegment:function(a){var b=n.clone(this.last);this[K[a.action]](this.canvasPath,a.action,a.args,this._needsDash?this._dashedPath:null);this.last=b;this.inherited(arguments)},_renderShape:function(a){var b=this.canvasPath;a.beginPath();for(var c=0;c<b.length;c+=2)a[b[c]].apply(a,b[c+1])},_renderDashedStroke:B?function(){}:function(a,b){var c=this._dashedPath;
a.beginPath();for(var d=0;d<c.length;d+=2)a[c[d]].apply(a,c[d+1]);b&&a.stroke()},_moveToA:function(a,b,c,d){a.push("moveTo",[c[0],c[1]]);d&&d.push("moveTo",[c[0],c[1]]);for(b=2;b<c.length;b+=2)a.push("lineTo",[c[b],c[b+1]]),d&&(this._dashResidue=u(d,this,c[b-2],c[b-1],c[b],c[b+1],this._dashResidue));this.last.x=c[c.length-2];this.last.y=c[c.length-1];this.lastControl={}},_moveToR:function(a,b,c,d){b="x"in this.last?[this.last.x+=c[0],this.last.y+=c[1]]:[this.last.x=c[0],this.last.y=c[1]];a.push("moveTo",
b);d&&d.push("moveTo",b);for(b=2;b<c.length;b+=2)a.push("lineTo",[this.last.x+=c[b],this.last.y+=c[b+1]]),d&&(this._dashResidue=u(d,this,d[d.length-1][0],d[d.length-1][1],this.last.x,this.last.y,this._dashResidue));this.lastControl={}},_lineToA:function(a,b,c,d){for(b=0;b<c.length;b+=2)d&&(this._dashResidue=u(d,this,this.last.x,this.last.y,c[b],c[b+1],this._dashResidue)),a.push("lineTo",[c[b],c[b+1]]);this.last.x=c[c.length-2];this.last.y=c[c.length-1];this.lastControl={}},_lineToR:function(a,b,c,
d){for(b=0;b<c.length;b+=2)a.push("lineTo",[this.last.x+=c[b],this.last.y+=c[b+1]]),d&&(this._dashResidue=u(d,this,d[d.length-1][0],d[d.length-1][1],this.last.x,this.last.y,this._dashResidue));this.lastControl={}},_hLineToA:function(a,b,c,d){for(b=0;b<c.length;++b)a.push("lineTo",[c[b],this.last.y]),d&&(this._dashResidue=u(d,this,d[d.length-1][0],d[d.length-1][1],c[b],this.last.y,this._dashResidue));this.last.x=c[c.length-1];this.lastControl={}},_hLineToR:function(a,b,c,d){for(b=0;b<c.length;++b)a.push("lineTo",
[this.last.x+=c[b],this.last.y]),d&&(this._dashResidue=u(d,this,d[d.length-1][0],d[d.length-1][1],this.last.x,this.last.y,this._dashResidue));this.lastControl={}},_vLineToA:function(a,b,c,d){for(b=0;b<c.length;++b)a.push("lineTo",[this.last.x,c[b]]),d&&(this._dashResidue=u(d,this,d[d.length-1][0],d[d.length-1][1],this.last.x,c[b],this._dashResidue));this.last.y=c[c.length-1];this.lastControl={}},_vLineToR:function(a,b,c,d){for(b=0;b<c.length;++b)a.push("lineTo",[this.last.x,this.last.y+=c[b]]),d&&
(this._dashResidue=u(d,this,d[d.length-1][0],d[d.length-1][1],this.last.x,this.last.y,this._dashResidue));this.lastControl={}},_curveToA:function(a,b,c,d){for(b=0;b<c.length;b+=6)a.push("bezierCurveTo",c.slice(b,b+6)),d&&(this._dashResidue=r(d,this,a[a.length-1],this._dashResidue));this.last.x=c[c.length-2];this.last.y=c[c.length-1];this.lastControl.x=c[c.length-4];this.lastControl.y=c[c.length-3];this.lastControl.type="C"},_curveToR:function(a,b,c,d){for(b=0;b<c.length;b+=6)a.push("bezierCurveTo",
[this.last.x+c[b],this.last.y+c[b+1],this.lastControl.x=this.last.x+c[b+2],this.lastControl.y=this.last.y+c[b+3],this.last.x+c[b+4],this.last.y+c[b+5]]),d&&(this._dashResidue=r(d,this,a[a.length-1],this._dashResidue)),this.last.x+=c[b+4],this.last.y+=c[b+5];this.lastControl.type="C"},_smoothCurveToA:function(a,b,c,d){for(b=0;b<c.length;b+=4){var f="C"==this.lastControl.type;a.push("bezierCurveTo",[f?2*this.last.x-this.lastControl.x:this.last.x,f?2*this.last.y-this.lastControl.y:this.last.y,c[b],c[b+
1],c[b+2],c[b+3]]);d&&(this._dashResidue=r(d,this,a[a.length-1],this._dashResidue));this.lastControl.x=c[b];this.lastControl.y=c[b+1];this.lastControl.type="C"}this.last.x=c[c.length-2];this.last.y=c[c.length-1]},_smoothCurveToR:function(a,b,c,d){for(b=0;b<c.length;b+=4){var f="C"==this.lastControl.type;a.push("bezierCurveTo",[f?2*this.last.x-this.lastControl.x:this.last.x,f?2*this.last.y-this.lastControl.y:this.last.y,this.last.x+c[b],this.last.y+c[b+1],this.last.x+c[b+2],this.last.y+c[b+3]]);d&&
(this._dashResidue=r(d,this,a[a.length-1],this._dashResidue));this.lastControl.x=this.last.x+c[b];this.lastControl.y=this.last.y+c[b+1];this.lastControl.type="C";this.last.x+=c[b+2];this.last.y+=c[b+3]}},_qCurveToA:function(a,b,c,d){for(b=0;b<c.length;b+=4)a.push("quadraticCurveTo",c.slice(b,b+4));d&&(this._dashResidue=r(d,this,a[a.length-1],this._dashResidue));this.last.x=c[c.length-2];this.last.y=c[c.length-1];this.lastControl.x=c[c.length-4];this.lastControl.y=c[c.length-3];this.lastControl.type=
"Q"},_qCurveToR:function(a,b,c,d){for(b=0;b<c.length;b+=4)a.push("quadraticCurveTo",[this.lastControl.x=this.last.x+c[b],this.lastControl.y=this.last.y+c[b+1],this.last.x+c[b+2],this.last.y+c[b+3]]),d&&(this._dashResidue=r(d,this,a[a.length-1],this._dashResidue)),this.last.x+=c[b+2],this.last.y+=c[b+3];this.lastControl.type="Q"},_qSmoothCurveToA:function(a,b,c,d){for(b=0;b<c.length;b+=2){var f="Q"==this.lastControl.type;a.push("quadraticCurveTo",[this.lastControl.x=f?2*this.last.x-this.lastControl.x:
this.last.x,this.lastControl.y=f?2*this.last.y-this.lastControl.y:this.last.y,c[b],c[b+1]]);d&&(this._dashResidue=r(d,this,a[a.length-1],this._dashResidue));this.lastControl.type="Q"}this.last.x=c[c.length-2];this.last.y=c[c.length-1]},_qSmoothCurveToR:function(a,b,c,d){for(b=0;b<c.length;b+=2){var f="Q"==this.lastControl.type;a.push("quadraticCurveTo",[this.lastControl.x=f?2*this.last.x-this.lastControl.x:this.last.x,this.lastControl.y=f?2*this.last.y-this.lastControl.y:this.last.y,this.last.x+c[b],
this.last.y+c[b+1]]);d&&(this._dashResidue=r(d,this,a[a.length-1],this._dashResidue));this.lastControl.type="Q";this.last.x+=c[b];this.last.y+=c[b+1]}},_arcTo:function(b,c,d,f){c="a"==c;for(var e=0;e<d.length;e+=7){var g=d[e+5],h=d[e+6];c&&(g+=this.last.x,h+=this.last.y);var m=a.arcAsBezier(this.last,d[e],d[e+1],d[e+2],d[e+3]?1:0,d[e+4]?1:0,g,h);k.forEach(m,function(a){b.push("bezierCurveTo",a)});f&&(this._dashResidue=r(f,this,p,this._dashResidue));this.last.x=g;this.last.y=h}this.lastControl={}},
_closePath:function(a,b,c,d){a.push("closePath",[]);d&&(this._dashResidue=u(d,this,this.last.x,this.last.y,d[1][0],d[1][1],this._dashResidue));this.lastControl={}}});k.forEach("moveTo lineTo hLineTo vLineTo curveTo smoothCurveTo qCurveTo qSmoothCurveTo arcTo closePath".split(" "),function(a){E(v.Path,a)});v.TextPath=q("dojox.gfx.canvas.TextPath",[v.Shape,b.TextPath],{_renderShape:function(a){},_setText:function(){},_setFont:function(){}});v.Surface=q("dojox.gfx.canvas.Surface",d.Surface,{constructor:function(){d.Container._init.call(this);
this.pendingImageCount=0;this.makeDirty()},destroy:function(){d.Container.clear.call(this,!0);this.inherited(arguments)},setDimensions:function(a,b){this.width=l.normalizedLength(a);this.height=l.normalizedLength(b);if(!this.rawNode)return this;var c=!1;this.rawNode.width!=this.width&&(this.rawNode.width=this.width,c=!0);this.rawNode.height!=this.height&&(this.rawNode.height=this.height,c=!0);c&&this.makeDirty();return this},getDimensions:function(){return this.rawNode?{width:this.rawNode.width,height:this.rawNode.height}:
null},_render:function(a){if(this.rawNode&&(a||!this.pendingImageCount))a=this.rawNode.getContext("2d"),a.clearRect(0,0,this.rawNode.width,this.rawNode.height),this.render(a),"pendingRender"in this&&(clearTimeout(this.pendingRender),delete this.pendingRender)},render:function(a){a.save();for(var b=0;b<this.children.length;++b)this.children[b]._render(a);a.restore()},makeDirty:function(){!this.pendingImagesCount&&(!("pendingRender"in this)&&!this._batch)&&(this.pendingRender=setTimeout(n.hitch(this,
this._render),0))},downloadImage:function(a,b){var c=n.hitch(this,this.onImageLoad);!this.pendingImageCount++&&"pendingRender"in this&&(clearTimeout(this.pendingRender),delete this.pendingRender);a.onload=c;a.onerror=c;a.onabort=c;a.src=b},onImageLoad:function(){--this.pendingImageCount||(this.onImagesLoaded(),this._render())},onImagesLoaded:function(){},getEventSource:function(){return null},connect:function(){},disconnect:function(){},on:function(){}});v.createSurface=function(a,b,c){if(!b&&!c){var d=
g.position(a);b=b||d.w;c=c||d.h}"number"==typeof b&&(b+="px");"number"==typeof c&&(c+="px");d=new v.Surface;a=e.byId(a);var f=a.ownerDocument.createElement("canvas");f.width=l.normalizedLength(b);f.height=l.normalizedLength(c);a.appendChild(f);d.rawNode=f;d._parent=a;return d.surface=d};var J=d.Container;q={openBatch:function(){++this._batch;return this},closeBatch:function(){this._batch=0<this._batch?--this._batch:0;this._makeDirty();return this},_makeDirty:function(){this._batch||this.surface.makeDirty()},
add:function(a){this._makeDirty();return J.add.apply(this,arguments)},remove:function(a,b){this._makeDirty();return J.remove.apply(this,arguments)},clear:function(){this._makeDirty();return J.clear.apply(this,arguments)},getBoundingBox:J.getBoundingBox,_moveChildToFront:function(a){this._makeDirty();return J._moveChildToFront.apply(this,arguments)},_moveChildToBack:function(a){this._makeDirty();return J._moveChildToBack.apply(this,arguments)}};b={createObject:function(a,b){var c=new a;c.surface=this.surface;
c.setShape(b);this.add(c);return c}};f(v.Group,q);f(v.Group,d.Creator);f(v.Group,b);f(v.Surface,q);f(v.Surface,d.Creator);f(v.Surface,b);v.fixTarget=function(a,b){return!0};return v})},"dojox/gfx/decompose":function(){define(["./_base","dojo/_base/lang","./matrix"],function(l,n,k){function q(b,a){return Math.abs(b-a)<=1E-6*(Math.abs(b)+Math.abs(a))}function h(b,a,c,d){if(isFinite(b)){if(!isFinite(c))return b}else return c;a=Math.abs(a);d=Math.abs(d);return(a*b+d*c)/(a+d)}function g(b){b=k.normalize(b);
var a=-b.xx-b.yy,c=b.xx*b.yy-b.xy*b.yx,d=Math.sqrt(a*a-4*c),a=-(a+(0>a?-d:d))/2,c=c/a,d=b.xy/(a-b.xx),e=1,g=b.xy/(c-b.xx),h=1;q(a,c)&&(d=1,g=e=0,h=1);isFinite(d)||(d=1,e=(a-b.xx)/b.xy,isFinite(e)||(d=(a-b.yy)/b.yx,e=1,isFinite(d)||(d=1,e=b.yx/(a-b.yy))));isFinite(g)||(g=1,h=(c-b.xx)/b.xy,isFinite(h)||(g=(c-b.yy)/b.yx,h=1,isFinite(g)||(g=1,h=b.yx/(c-b.yy))));b=Math.sqrt(d*d+e*e);var l=Math.sqrt(g*g+h*h);if(!isFinite(d/=b))d=0;if(!isFinite(e/=b))e=0;if(!isFinite(g/=l))g=0;if(!isFinite(h/=l))h=0;return{value1:a,
value2:c,vector1:{x:d,y:e},vector2:{x:g,y:h}}}function e(b,a){var c=0>b.xx*b.yy||0<b.xy*b.yx?-1:1,d=a.angle1=(Math.atan2(b.yx,b.yy)+Math.atan2(-c*b.xy,c*b.xx))/2,c=Math.cos(d),d=Math.sin(d);a.sx=h(b.xx/c,c,-b.xy/d,d);a.sy=h(b.yy/c,c,b.yx/d,d);return a}function d(b,a){var c=0>b.xx*b.yy||0<b.xy*b.yx?-1:1,d=a.angle2=(Math.atan2(c*b.yx,c*b.xx)+Math.atan2(-b.xy,b.yy))/2,c=Math.cos(d),d=Math.sin(d);a.sx=h(b.xx/c,c,b.yx/d,d);a.sy=h(b.yy/c,c,-b.xy/d,d);return a}return l.decompose=function(b){var a=k.normalize(b);
b={dx:a.dx,dy:a.dy,sx:1,sy:1,angle1:0,angle2:0};if(q(a.xy,0)&&q(a.yx,0))return n.mixin(b,{sx:a.xx,sy:a.yy});if(q(a.xx*a.yx,-a.xy*a.yy))return e(a,b);if(q(a.xx*a.xy,-a.yx*a.yy))return d(a,b);var c,f=new k.Matrix2D(a);c=n.mixin(f,{dx:0,dy:0,xy:f.yx,yx:f.xy});f=g([a,c]);c=g([c,a]);f=new k.Matrix2D({xx:f.vector1.x,xy:f.vector2.x,yx:f.vector1.y,yy:f.vector2.y});c=new k.Matrix2D({xx:c.vector1.x,xy:c.vector1.y,yx:c.vector2.x,yy:c.vector2.y});a=new k.Matrix2D([k.invert(f),a,k.invert(c)]);e(c,b);a.xx*=b.sx;
a.yy*=b.sy;d(f,b);a.xx*=b.sx;a.yy*=b.sy;return n.mixin(b,{sx:a.xx,sy:a.yy})}})},"dojox/gfx/bezierutils":function(){define(["./_base"],function(l){l=l.bezierutils={};l.tAtLength=function(e,d){var b=0,a=6==e.length,c=0,f=0,h=a?q:g,l=function(g,n){for(var q=0,v=0;v<g.length-2;v+=2)q+=k(g[v],g[v+1],g[v+2],g[v+3]);v=a?k(e[0],e[1],e[4],e[5]):k(e[0],e[1],e[6],e[7]);q-v>n||c+q>d+n?(++f,q=h(g,0.5),l(q[0],n),Math.abs(c-d)<=n||l(q[1],n)):(c+=q,b+=1/(1<<f))};d&&l(e,0.5);return b};var n=l.computeLength=function(e){for(var d=
6==e.length,b=0,a=0;a<e.length-2;a+=2)b+=k(e[a],e[a+1],e[a+2],e[a+3]);a=d?k(e[0],e[1],e[4],e[5]):k(e[0],e[1],e[6],e[7]);0.1<b-a&&(e=d?q(e,0.5):h(e,0.5),b=n(e[0],d),b+=n(e[1],d));return b},k=l.distance=function(e,d,b,a){return Math.sqrt((b-e)*(b-e)+(a-d)*(a-d))},q=function(e,d){var b=1-d,a=b*b,c=d*d,f=e[0],g=e[1],h=e[2],k=e[3],l=e[4],n=e[5],q=a*f+2*b*d*h+c*l,a=a*g+2*b*d*k+c*n;return[[f,g,b*f+d*h,b*g+d*k,q,a],[q,a,b*h+d*l,b*k+d*n,l,n]]},h=function(e,d){var b=1-d,a=b*b,c=a*b,f=d*d,g=f*d,h=e[0],k=e[1],
l=e[2],n=e[3],q=e[4],A=e[5],y=e[6],w=e[7],z=c*h+3*a*d*l+3*b*f*q+g*y,c=c*k+3*a*d*n+3*b*f*A+g*w;return[[h,k,b*h+d*l,b*k+d*n,a*h+2*b*d*l+f*q,a*k+2*b*d*n+f*A,z,c],[z,c,a*l+2*b*d*q+f*y,a*n+2*b*d*A+f*w,b*q+d*y,b*A+d*w,y,w]]},g=l.splitBezierAtT=function(e,d){return 6==e.length?q(e,d):h(e,d)};return l})},"dojox/gfx/silverlight":function(){define("dojo/_base/kernel dojo/_base/lang dojo/_base/declare dojo/_base/Color dojo/on dojo/_base/array dojo/dom-geometry dojo/dom dojo/_base/sniff ./_base ./shape ./path ./registry".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f){function m(b){var c=a.normalizeColor(b);b=c.toHex();c=Math.round(255*c.a);c=(0>c?0:255<c?255:c).toString(16);return"#"+(2>c.length?"0"+c:c)+b.slice(1)}function s(a,b){var d={target:a,currentTarget:a,preventDefault:function(){},stopPropagation:function(){}};try{b.source&&(d.target=b.source,d.gfxTarget=c.byId(d.target.tag))}catch(f){}if(b)try{d.ctrlKey=b.ctrl;d.shiftKey=b.shift;var g=b.getPosition(null);d.x=d.offsetX=d.layerX=g.x;d.y=d.offsetY=d.layerY=g.y;var h=z[a.getHost().content.root.name],
m=e.position(h);d.clientX=m.x+g.x;d.clientY=m.y+g.y}catch(k){}return d}function t(a,b){var d={keyCode:b.platformKeyCode,ctrlKey:b.ctrl,shiftKey:b.shift};try{b.source&&(d.target=b.source,d.gfxTarget=c.byId(d.target.tag))}catch(f){}return d}var r=a.silverlight={};l.experimental("dojox.gfx.silverlight");var u={solid:"none",shortdash:[4,1],shortdot:[1,1],shortdashdot:[4,1,1,1],shortdashdotdot:[4,1,1,1,1,1],dot:[1,3],dash:[4,3],longdash:[8,3],dashdot:[4,3,1,3],longdashdot:[8,3,1,3],longdashdotdot:[8,3,
1,3,1,3]},v={normal:400,bold:700},A={butt:"Flat",round:"Round",square:"Square"},y={bevel:"Bevel",round:"Round"},w={serif:"Times New Roman",times:"Times New Roman","sans-serif":"Arial",helvetica:"Arial",monotone:"Courier New",courier:"Courier New"};r.Shape=k("dojox.gfx.silverlight.Shape",c.Shape,{destroy:function(){b("gfxRegistry")&&c.dispose(this);this.rawNode=null},setFill:function(b){var c=this.rawNode.getHost().content;if(!b)return this.fillStyle=null,this._setFillAttr(null),this;if("object"==
typeof b&&"type"in b){switch(b.type){case "linear":this.fillStyle=b=a.makeParameters(a.defaultLinearGradient,b);var d=c.createFromXaml("\x3cLinearGradientBrush/\x3e");d.mappingMode="Absolute";d.startPoint=b.x1+","+b.y1;d.endPoint=b.x2+","+b.y2;g.forEach(b.colors,function(a){var b=c.createFromXaml("\x3cGradientStop/\x3e");b.offset=a.offset;b.color=m(a.color);d.gradientStops.add(b)});this._setFillAttr(d);break;case "radial":this.fillStyle=b=a.makeParameters(a.defaultRadialGradient,b);var f=c.createFromXaml("\x3cRadialGradientBrush/\x3e"),
e=a.matrix.multiplyPoint(a.matrix.invert(this._getAdjustedMatrix()),b.cx,b.cy),e=e.x+","+e.y;f.mappingMode="Absolute";f.gradientOrigin=e;f.center=e;f.radiusX=f.radiusY=b.r;g.forEach(b.colors,function(a){var b=c.createFromXaml("\x3cGradientStop/\x3e");b.offset=a.offset;b.color=m(a.color);f.gradientStops.add(b)});this._setFillAttr(f);break;case "pattern":this.fillStyle=null,this._setFillAttr(null)}return this}this.fillStyle=b=a.normalizeColor(b);e=c.createFromXaml("\x3cSolidColorBrush/\x3e");e.color=
b.toHex();e.opacity=b.a;this._setFillAttr(e);return this},_setFillAttr:function(a){this.rawNode.fill=a},setStroke:function(b){var c=this.rawNode.getHost().content,d=this.rawNode;if(!b)return this.strokeStyle=null,d.stroke=null,this;if("string"==typeof b||n.isArray(b)||b instanceof q)b={color:b};b=this.strokeStyle=a.makeParameters(a.defaultStroke,b);b.color=a.normalizeColor(b.color);if(b)if(c=c.createFromXaml("\x3cSolidColorBrush/\x3e"),c.color=b.color.toHex(),c.opacity=b.color.a,d.stroke=c,d.strokeThickness=
b.width,d.strokeStartLineCap=d.strokeEndLineCap=d.strokeDashCap=A[b.cap],"number"==typeof b.join?(d.strokeLineJoin="Miter",d.strokeMiterLimit=b.join):d.strokeLineJoin=y[b.join],c=b.style.toLowerCase(),c in u&&(c=u[c]),c instanceof Array){c=n.clone(c);if("butt"!=b.cap){for(b=0;b<c.length;b+=2)--c[b],1>c[b]&&(c[b]=1);for(b=1;b<c.length;b+=2)++c[b]}d.strokeDashArray=c.join(",")}else d.strokeDashArray=null;return this},_getParentSurface:function(){for(var b=this.parent;b&&!(b instanceof a.Surface);b=
b.parent);return b},_applyTransform:function(){var a=this._getAdjustedMatrix(),b=this.rawNode;if(a){var c=this.rawNode.getHost().content,d=c.createFromXaml("\x3cMatrixTransform/\x3e"),c=c.createFromXaml("\x3cMatrix/\x3e");c.m11=a.xx;c.m21=a.xy;c.m12=a.yx;c.m22=a.yy;c.offsetX=a.dx;c.offsetY=a.dy;d.matrix=c;b.renderTransform=d}else b.renderTransform=null;return this},setRawNode:function(a){a.fill=null;a.stroke=null;this.rawNode=a;this.rawNode.tag=this.getUID()},_moveToFront:function(){var a=this.parent.rawNode.children,
b=this.rawNode;a.remove(b);a.add(b);return this},_moveToBack:function(){var a=this.parent.rawNode.children,b=this.rawNode;a.remove(b);a.insert(0,b);return this},_getAdjustedMatrix:function(){return this.matrix},setClip:function(a){this.inherited(arguments);var b=this.rawNode;if(a){var c=a?"width"in a?"rect":"cx"in a?"ellipse":"points"in a?"polyline":"d"in a?"path":null:null;if(a&&!c)return this;var d=this.getBoundingBox()||{x:0,y:0,width:0,height:0},f="1,0,0,1,"+-d.x+","+-d.y;switch(c){case "rect":b.clip=
b.getHost().content.createFromXaml("\x3cRectangleGeometry/\x3e");b.clip.rect=a.x+","+a.y+","+a.width+","+a.height;b.clip.transform=f;break;case "ellipse":b.clip=b.getHost().content.createFromXaml("\x3cEllipseGeometry/\x3e");b.clip.center=a.cx+","+a.cy;b.clip.radiusX=a.rx;b.clip.radiusY=a.ry;b.clip.transform="1,0,0,1,"+-d.x+","+-d.y;break;case "polyline":if(2<a.points.length){var f=b.getHost().content.createFromXaml("\x3cPathGeometry/\x3e"),e=b.getHost().content.createFromXaml("\x3cPathFigure/\x3e");
e.StartPoint=a.points[0]+","+a.points[1];for(var g=2;g<=a.points.length-2;g+=2)c=b.getHost().content.createFromXaml("\x3cLineSegment/\x3e"),c.Point=a.points[g]+","+a.points[g+1],e.segments.add(c);f.figures.add(e);f.transform="1,0,0,1,"+-d.x+","+-d.y;b.clip=f}}}else b.clip=null;return this}});r.Group=k("dojox.gfx.silverlight.Group",r.Shape,{constructor:function(){c.Container._init.call(this)},setRawNode:function(a){this.rawNode=a;this.rawNode.tag=this.getUID()},destroy:function(){this.clear(!0);r.Shape.prototype.destroy.apply(this,
arguments)}});r.Group.nodeType="Canvas";r.Rect=k("dojox.gfx.silverlight.Rect",[r.Shape,c.Rect],{setShape:function(b){this.shape=a.makeParameters(this.shape,b);this.bbox=null;b=this.rawNode;var c=this.shape;b.width=c.width;b.height=c.height;b.radiusX=b.radiusY=c.r;return this._applyTransform()},_getAdjustedMatrix:function(){var b=this.matrix,c=this.shape,c={dx:c.x,dy:c.y};return new a.Matrix2D(b?[b,c]:c)}});r.Rect.nodeType="Rectangle";r.Ellipse=k("dojox.gfx.silverlight.Ellipse",[r.Shape,c.Ellipse],
{setShape:function(b){this.shape=a.makeParameters(this.shape,b);this.bbox=null;b=this.rawNode;var c=this.shape;b.width=2*c.rx;b.height=2*c.ry;return this._applyTransform()},_getAdjustedMatrix:function(){var b=this.matrix,c=this.shape,c={dx:c.cx-c.rx,dy:c.cy-c.ry};return new a.Matrix2D(b?[b,c]:c)}});r.Ellipse.nodeType="Ellipse";r.Circle=k("dojox.gfx.silverlight.Circle",[r.Shape,c.Circle],{setShape:function(b){this.shape=a.makeParameters(this.shape,b);this.bbox=null;b=this.rawNode;b.width=b.height=
2*this.shape.r;return this._applyTransform()},_getAdjustedMatrix:function(){var b=this.matrix,c=this.shape,c={dx:c.cx-c.r,dy:c.cy-c.r};return new a.Matrix2D(b?[b,c]:c)}});r.Circle.nodeType="Ellipse";r.Line=k("dojox.gfx.silverlight.Line",[r.Shape,c.Line],{setShape:function(b){this.shape=a.makeParameters(this.shape,b);this.bbox=null;b=this.rawNode;var c=this.shape;b.x1=c.x1;b.y1=c.y1;b.x2=c.x2;b.y2=c.y2;return this}});r.Line.nodeType="Line";r.Polyline=k("dojox.gfx.silverlight.Polyline",[r.Shape,c.Polyline],
{setShape:function(b,c){b&&b instanceof Array?(this.shape=a.makeParameters(this.shape,{points:b}),c&&this.shape.points.length&&this.shape.points.push(this.shape.points[0])):this.shape=a.makeParameters(this.shape,b);this.bbox=null;this._normalizePoints();for(var d=this.shape.points,f=[],e=0;e<d.length;++e)f.push(d[e].x,d[e].y);this.rawNode.points=f.join(",");return this}});r.Polyline.nodeType="Polyline";r.Image=k("dojox.gfx.silverlight.Image",[r.Shape,c.Image],{setShape:function(b){this.shape=a.makeParameters(this.shape,
b);this.bbox=null;b=this.rawNode;var c=this.shape;b.width=c.width;b.height=c.height;b.source=c.src;return this._applyTransform()},_getAdjustedMatrix:function(){var b=this.matrix,c=this.shape,c={dx:c.x,dy:c.y};return new a.Matrix2D(b?[b,c]:c)},setRawNode:function(a){this.rawNode=a;this.rawNode.tag=this.getUID()}});r.Image.nodeType="Image";r.Text=k("dojox.gfx.silverlight.Text",[r.Shape,c.Text],{setShape:function(b){this.shape=a.makeParameters(this.shape,b);this.bbox=null;b=this.rawNode;var c=this.shape;
b.text=""+c.text;b.textDecorations="underline"===c.decoration?"Underline":"None";b["Canvas.Left"]=-1E4;b["Canvas.Top"]=-1E4;this._delay||(this._delay=window.setTimeout(n.hitch(this,"_delayAlignment"),10));return this},_delayAlignment:function(){var a=this.rawNode,b=this.shape,c,d;try{c=a.actualWidth,d=a.actualHeight}catch(f){return}var e=b.x;d=b.y-0.75*d;switch(b.align){case "middle":e-=c/2;break;case "end":e-=c}this._delta={dx:e,dy:d};a["Canvas.Left"]=0;a["Canvas.Top"]=0;this._applyTransform();delete this._delay},
_getAdjustedMatrix:function(){var b=this.matrix,c=this._delta;return new a.Matrix2D(b?c?[b,c]:b:c?c:{})},setStroke:function(){return this},_setFillAttr:function(a){this.rawNode.foreground=a},setRawNode:function(a){this.rawNode=a;this.rawNode.tag=this.getUID()},getTextWidth:function(){return this.rawNode.actualWidth},getBoundingBox:function(){var b=null,c=this.getShape().text,d=this.rawNode,f=0,e=0;if(!a._base._isRendered(this))return{x:0,y:0,width:0,height:0};if(c){try{f=d.actualWidth,e=d.actualHeight}catch(g){return null}b=
a._base._computeTextLocation(this.getShape(),f,e,!0);b={x:b.x,y:b.y,width:f,height:e}}return b}});r.Text.nodeType="TextBlock";r.Path=k("dojox.gfx.silverlight.Path",[r.Shape,f.Path],{_updateWithSegment:function(a){this.inherited(arguments);var b=this.shape.path;"string"==typeof b&&(this.rawNode.data=b?b:null)},setShape:function(a){this.inherited(arguments);var b=this.shape.path;this.rawNode.data=b?b:null;return this}});r.Path.nodeType="Path";r.TextPath=k("dojox.gfx.silverlight.TextPath",[r.Shape,f.TextPath],
{_updateWithSegment:function(a){},setShape:function(a){},_setText:function(){}});r.TextPath.nodeType="text";var z={},x=new Function;r.Surface=k("dojox.gfx.silverlight.Surface",c.Surface,{constructor:function(){c.Container._init.call(this)},destroy:function(){this.clear(!0);window[this._onLoadName]=x;delete z[this._nodeName];this.inherited(arguments)},setDimensions:function(b,c){this.width=a.normalizedLength(b);this.height=a.normalizedLength(c);var d=this.rawNode&&this.rawNode.getHost();d&&(d.width=
b,d.height=c);return this},getDimensions:function(){var a=this.rawNode&&this.rawNode.getHost(),a=a?{width:a.content.actualWidth,height:a.content.actualHeight}:null;0>=a.width&&(a.width=this.width);0>=a.height&&(a.height=this.height);return a}});r.createSurface=function(c,f,g){if(!f&&!g){var h=e.position(c);f=f||h.w;g=g||h.h}"number"==typeof f&&(f+="px");"number"==typeof g&&(g+="px");var m=new r.Surface;c=d.byId(c);m._parent=c;m._nodeName=a._base._getUniqueId();h=c.ownerDocument.createElement("script");
h.type="text/xaml";h.id=a._base._getUniqueId();h.text="\x3c?xml version\x3d'1.0'?\x3e\x3cCanvas xmlns\x3d'http://schemas.microsoft.com/client/2007' Name\x3d'"+m._nodeName+"'/\x3e";c.parentNode.insertBefore(h,c);m._nodes.push(h);var k=a._base._getUniqueId(),l="__"+a._base._getUniqueId()+"_onLoad";m._onLoadName=l;window[l]=function(a){m.rawNode||(m.rawNode=d.byId(k,c.ownerDocument).content.root,z[m._nodeName]=c,m.onLoad(m))};h=b("safari")?"\x3cembed type\x3d'application/x-silverlight' id\x3d'"+k+"' width\x3d'"+
f+"' height\x3d'"+g+" background\x3d'transparent' source\x3d'#"+h.id+"' windowless\x3d'true' maxFramerate\x3d'60' onLoad\x3d'"+l+"' onError\x3d'__dojoSilverlightError' /\x3e\x3ciframe style\x3d'visibility:hidden;height:0;width:0'/\x3e":"\x3cobject type\x3d'application/x-silverlight' data\x3d'data:application/x-silverlight,' id\x3d'"+k+"' width\x3d'"+f+"' height\x3d'"+g+"'\x3e\x3cparam name\x3d'background' value\x3d'transparent' /\x3e\x3cparam name\x3d'source' value\x3d'#"+h.id+"' /\x3e\x3cparam name\x3d'windowless' value\x3d'true' /\x3e\x3cparam name\x3d'maxFramerate' value\x3d'60' /\x3e\x3cparam name\x3d'onLoad' value\x3d'"+
l+"' /\x3e\x3cparam name\x3d'onError' value\x3d'__dojoSilverlightError' /\x3e\x3c/object\x3e";c.innerHTML=h;h=d.byId(k,c.ownerDocument);h.content&&h.content.root?(m.rawNode=h.content.root,z[m._nodeName]=c):(m.rawNode=null,m.isLoaded=!1);m._nodes.push(h);m.width=a.normalizedLength(f);m.height=a.normalizedLength(g);return m};__dojoSilverlightError=function(a,b){};var B=c.Container;l={add:function(a){this!=a.getParent()&&(B.add.apply(this,arguments),this.rawNode.children.add(a.rawNode));return this},
remove:function(a,b){if(this==a.getParent()){var c=a.rawNode.getParent();c&&c.children.remove(a.rawNode);B.remove.apply(this,arguments)}return this},clear:function(){this.rawNode.children.clear();return B.clear.apply(this,arguments)},getBoundingBox:B.getBoundingBox,_moveChildToFront:B._moveChildToFront,_moveChildToBack:B._moveChildToBack};k={createObject:function(a,b){if(!this.rawNode)return null;var c=new a,d=this.rawNode.getHost().content.createFromXaml("\x3c"+a.nodeType+"/\x3e");c.setRawNode(d);
c.setShape(b);this.add(c);return c}};n.extend(r.Text,{_setFont:function(){var b=this.fontStyle,c=this.rawNode,d=b.family.toLowerCase();c.fontStyle="italic"==b.style?"Italic":"Normal";c.fontWeight=b.weight in v?v[b.weight]:b.weight;c.fontSize=a.normalizedLength(b.size);c.fontFamily=d in w?w[d]:b.family;this._delay||(this._delay=window.setTimeout(n.hitch(this,"_delayAlignment"),10))}});n.extend(r.Group,l);n.extend(r.Group,c.Creator);n.extend(r.Group,k);n.extend(r.Surface,l);n.extend(r.Surface,c.Creator);
n.extend(r.Surface,k);var D={onclick:{name:"MouseLeftButtonUp",fix:s},onmouseenter:{name:"MouseEnter",fix:s},onmouseleave:{name:"MouseLeave",fix:s},onmouseover:{name:"MouseEnter",fix:s},onmouseout:{name:"MouseLeave",fix:s},onmousedown:{name:"MouseLeftButtonDown",fix:s},onmouseup:{name:"MouseLeftButtonUp",fix:s},onmousemove:{name:"MouseMove",fix:s},onkeydown:{name:"KeyDown",fix:t},onkeyup:{name:"KeyUp",fix:t}};l={connect:function(a,b,c){return this.on(a,c?n.hitch(b,c):b)},on:function(a,b){if("string"===
typeof a){0===a.indexOf("mouse")&&(a="on"+a);var c,d=a in D?D[a]:{name:a,fix:function(){return{}}};c=this.getEventSource().addEventListener(d.name,function(a,c){b(d.fix(a,c))});return{name:d.name,token:c,remove:n.hitch(this,function(){this.getEventSource().removeEventListener(d.name,c)})}}return h(this,a,b)},disconnect:function(a){return a.remove()}};n.extend(r.Shape,l);n.extend(r.Surface,l);a.equalSources=function(a,b){return a&&b&&a.equals(b)};return r})},"dojox/gfx/registry":function(){define(["dojo/has",
"./shape"],function(l,n){l.add("gfxRegistry",1);var k={},q={},h={};k.register=n.register=function(g){var e=g.declaredClass.split(".").pop(),d=e in q?++q[e]:q[e]=0,e=e+d;h[e]=g;return e};k.byId=n.byId=function(g){return h[g]};k.dispose=n.dispose=function(g,e){if(e&&g.children)for(var d=0;d<g.children.length;++d)k.dispose(g.children[d],!0);d=g.getUID();h[d]=null;delete h[d]};return k})},"dojox/charting/Chart2D":function(){define("dojo/_base/kernel dojo/_base/lang .. ./Chart ./axis2d/Default ./axis2d/Invisible ./plot2d/Default ./plot2d/Lines ./plot2d/Areas ./plot2d/Markers ./plot2d/MarkersOnly ./plot2d/Scatter ./plot2d/Stacked ./plot2d/StackedLines ./plot2d/StackedAreas ./plot2d/Columns ./plot2d/StackedColumns ./plot2d/ClusteredColumns ./plot2d/Bars ./plot2d/StackedBars ./plot2d/ClusteredBars ./plot2d/Grid ./plot2d/Pie ./plot2d/Bubble ./plot2d/Candlesticks ./plot2d/OHLC ./plot2d/Spider".split(" "),
function(l,n,k,q){l.deprecated("dojox.charting.Chart2D","Use dojox.charting.Chart instead and require all other components explicitly","2.0");return n.setObject("dojox.charting.Chart2D",q)})},"dojox/charting/Chart":function(){define("../main dojo/_base/lang dojo/_base/array dojo/_base/declare dojo/dom-style dojo/dom dojo/dom-geometry dojo/dom-construct dojo/_base/Color dojo/sniff ./Element ./SimpleTheme ./Series ./axis2d/common dojox/gfx/shape dojox/gfx dojo/has!dojo-bidi?./bidi/Chart dojox/lang/functional dojox/lang/functional/fold dojox/lang/functional/reversed".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v){function A(a,b){a&&b&&(a.min=Math.min(a.min,b.min),a.max=Math.max(a.max,b.max));return a||b}function y(a,b){var c={},d={};k.forEach(a,function(a){var b=c[a.name]=a.getSeriesStats();a.hAxis&&(d[a.hAxis]=A(d[a.hAxis],{min:b.hmin,max:b.hmax}));a.vAxis&&(d[a.vAxis]=A(d[a.vAxis],{min:b.vmin,max:b.vmax}))});k.forEach(a,function(a){var f=c[a.name];if(a.hAxis){var e=d[a.hAxis];f.hmin=e.min;f.hmax=e.max}a.vAxis&&(e=d[a.vAxis],f.vmin=e.min,f.vmax=e.max);a.initializeScalers(b,
f)})}var w=n.getObject("charting",!0,l),z=v.lambda("item.clear()"),x=v.lambda("item.purgeGroup()"),B=v.lambda("item.destroy()"),D=v.lambda("item.dirty \x3d false"),C=v.lambda("item.dirty \x3d true"),F=v.lambda("item.name");l=q(a("dojo-bidi")?"dojox.charting.NonBidiChart":"dojox.charting.Chart",null,{constructor:function(a,b){b||(b={});this.margins=b.margins?b.margins:{l:10,t:10,r:10,b:10};this.stroke=b.stroke;this.fill=b.fill;this.delayInMs=b.delayInMs||200;this.title=b.title;this.titleGap=b.titleGap;
this.titlePos=b.titlePos;this.titleFont=b.titleFont;this.titleFontColor=b.titleFontColor;this.chartTitle=null;this.htmlLabels=!0;"htmlLabels"in b&&(this.htmlLabels=b.htmlLabels);this.theme=null;this.axes={};this.stack=[];this.plots={};this.series=[];this.runs={};this.dirty=!0;this.node=g.byId(a);var c=e.getMarginBox(a);this.surface=r.createSurface(this.node,c.w||400,c.h||300);-1==this.surface.declaredClass.indexOf("vml")&&(this._nativeClip=!0)},destroy:function(){k.forEach(this.series,B);k.forEach(this.stack,
B);v.forIn(this.axes,B);this.surface.destroy();this.chartTitle&&this.chartTitle.tagName&&d.destroy(this.chartTitle)},getCoords:function(){var a=this.node,b=h.getComputedStyle(a),b=e.getMarginBox(a,b),a=e.position(a,!0);b.x=a.x;b.y=a.y;return b},setTheme:function(a){this.theme=a.clone();this.dirty=!0;return this},addAxis:function(a,b){var c;c=b&&b.type||"Default";if("string"==typeof c){if(!w.axis2d||!w.axis2d[c])throw Error("Can't find axis: "+c+" - Check require() dependencies.");c=new w.axis2d[c](this,
b)}else c=new c(this,b);c.name=a;c.dirty=!0;a in this.axes&&this.axes[a].destroy();this.axes[a]=c;this.dirty=!0;return this},getAxis:function(a){return this.axes[a]},removeAxis:function(a){a in this.axes&&(this.axes[a].destroy(),delete this.axes[a],this.dirty=!0);return this},addPlot:function(a,b){var c;c=b&&b.type||"Default";if("string"==typeof c){if(!w.plot2d||!w.plot2d[c])throw Error("Can't find plot: "+c+" - didn't you forget to dojo.require() it?");c=new w.plot2d[c](this,b)}else c=new c(this,
b);c.name=a;c.dirty=!0;a in this.plots?(this.stack[this.plots[a]].destroy(),this.stack[this.plots[a]]=c):(this.plots[a]=this.stack.length,this.stack.push(c));this.dirty=!0;return this},getPlot:function(a){return this.stack[this.plots[a]]},removePlot:function(a){if(a in this.plots){var b=this.plots[a];delete this.plots[a];this.stack[b].destroy();this.stack.splice(b,1);v.forIn(this.plots,function(a,c,d){a>b&&(d[c]=a-1)});var c=k.filter(this.series,function(b){return b.plot!=a});c.length<this.series.length&&
(k.forEach(this.series,function(b){b.plot==a&&b.destroy()}),this.runs={},k.forEach(c,function(a,b){this.runs[a.plot]=b},this),this.series=c);this.dirty=!0}return this},getPlotOrder:function(){return v.map(this.stack,F)},setPlotOrder:function(a){var b={},c=v.filter(a,function(a){if(!(a in this.plots)||a in b)return!1;b[a]=1;return!0},this);c.length<this.stack.length&&v.forEach(this.stack,function(a){a=a.name;a in b||c.push(a)});a=v.map(c,function(a){return this.stack[this.plots[a]]},this);v.forEach(a,
function(a,b){this.plots[a.name]=b},this);this.stack=a;this.dirty=!0;return this},movePlotToFront:function(a){if(a in this.plots){var b=this.plots[a];if(b){var c=this.getPlotOrder();c.splice(b,1);c.unshift(a);return this.setPlotOrder(c)}}return this},movePlotToBack:function(a){if(a in this.plots){var b=this.plots[a];if(b<this.stack.length-1){var c=this.getPlotOrder();c.splice(b,1);c.push(a);return this.setPlotOrder(c)}}return this},addSeries:function(a,b,c){b=new m(this,b,c);b.name=a;a in this.runs?
(this.series[this.runs[a]].destroy(),this.series[this.runs[a]]=b):(this.runs[a]=this.series.length,this.series.push(b));this.dirty=!0;!("ymin"in b)&&"min"in b&&(b.ymin=b.min);!("ymax"in b)&&"max"in b&&(b.ymax=b.max);return this},getSeries:function(a){return this.series[this.runs[a]]},removeSeries:function(a){if(a in this.runs){var b=this.runs[a];delete this.runs[a];this.series[b].destroy();this.series.splice(b,1);v.forIn(this.runs,function(a,c,d){a>b&&(d[c]=a-1)});this.dirty=!0}return this},updateSeries:function(a,
b,c){a in this.runs&&(a=this.series[this.runs[a]],a.update(b),c?this.dirty=!0:(this._invalidateDependentPlots(a.plot,!1),this._invalidateDependentPlots(a.plot,!0)));return this},getSeriesOrder:function(a){return v.map(v.filter(this.series,function(b){return b.plot==a}),F)},setSeriesOrder:function(a){var b,c={},d=v.filter(a,function(a){if(!(a in this.runs)||a in c)return!1;var d=this.series[this.runs[a]];if(b){if(d.plot!=b)return!1}else b=d.plot;c[a]=1;return!0},this);v.forEach(this.series,function(a){var f=
a.name;!(f in c)&&a.plot==b&&d.push(f)});this.series=v.map(d,function(a){return this.series[this.runs[a]]},this).concat(v.filter(this.series,function(a){return a.plot!=b}));v.forEach(this.series,function(a,b){this.runs[a.name]=b},this);this.dirty=!0;return this},moveSeriesToFront:function(a){if(a in this.runs){var b=this.runs[a],c=this.getSeriesOrder(this.series[b].plot);if(a!=c[0])return c.splice(b,1),c.unshift(a),this.setSeriesOrder(c)}return this},moveSeriesToBack:function(a){if(a in this.runs){var b=
this.runs[a],c=this.getSeriesOrder(this.series[b].plot);if(a!=c[c.length-1])return c.splice(b,1),c.push(a),this.setSeriesOrder(c)}return this},resize:function(a,b){switch(arguments.length){case 1:e.setMarginBox(this.node,a);break;case 2:e.setMarginBox(this.node,{w:a,h:b})}var c=e.getMarginBox(this.node),d=this.surface.getDimensions();return d.width!=c.w||d.height!=c.h?(this.surface.setDimensions(c.w,c.h),this.dirty=!0,this.render()):this},getGeometry:function(){var a={};v.forIn(this.axes,function(b){b.initialized()&&
(a[b.name]={name:b.name,vertical:b.vertical,scaler:b.scaler,ticks:b.ticks})});return a},setAxisWindow:function(a,b,c,d){var f=this.axes[a];f&&(f.setWindow(b,c),k.forEach(this.stack,function(b){if(b.hAxis==a||b.vAxis==a)b.zoom=d}));return this},setWindow:function(a,b,c,d,f){"plotArea"in this||this.calculateGeometry();v.forIn(this.axes,function(f){var e,g;e=f.getScaler().bounds;g=e.span/(e.upper-e.lower);f.vertical?(e=b,g=d/g/e):(e=a,g=c/g/e);f.setWindow(e,g)});k.forEach(this.stack,function(a){a.zoom=
f});return this},zoomIn:function(a,b,c){var d=this.axes[a];if(d){var d=d.getScaler().bounds,f=Math.min(b[0],b[1]),e=Math.max(b[0],b[1]),f=b[0]<d.lower?d.lower:f,e=b[1]>d.upper?d.upper:e;this.setAxisWindow(a,(d.upper-d.lower)/(e-f),f-d.lower);c?this.delayedRender():this.render()}},calculateGeometry:function(){if(this.dirty)return this.fullGeometry();var a=k.filter(this.stack,function(a){return a.dirty||a.hAxis&&this.axes[a.hAxis].dirty||a.vAxis&&this.axes[a.vAxis].dirty},this);y(a,this.plotArea);return this},
fullGeometry:function(){this._makeDirty();k.forEach(this.stack,z);this.theme||this.setTheme(new f);k.forEach(this.series,function(a){if(!(a.plot in this.plots)){if(!w.plot2d||!w.plot2d.Default)throw Error("Can't find plot: Default - didn't you forget to dojo.require() it?");var b=new w.plot2d.Default(this,{});b.name=a.plot;this.plots[a.plot]=this.stack.length;this.stack.push(b)}this.stack[this.plots[a.plot]].addSeries(a)},this);k.forEach(this.stack,function(a){a.assignAxes&&a.assignAxes(this.axes)},
this);var b=this.dim=this.surface.getDimensions();b.width=r.normalizedLength(b.width);b.height=r.normalizedLength(b.height);v.forIn(this.axes,z);y(this.stack,b);var c=this.offsets={l:0,r:0,t:0,b:0},d=this;v.forIn(this.axes,function(b){a("dojo-bidi")&&d._resetLeftBottom(b);v.forIn(b.getOffsets(),function(a,b){c[b]=Math.max(a,c[b])})});if(this.title){this.titleGap=0==this.titleGap?0:this.titleGap||this.theme.chart.titleGap||20;this.titlePos=this.titlePos||this.theme.chart.titlePos||"top";this.titleFont=
this.titleFont||this.theme.chart.titleFont;this.titleFontColor=this.titleFontColor||this.theme.chart.titleFontColor||"black";var e=r.normalizedLength(r.splitFontString(this.titleFont).size);c["top"==this.titlePos?"t":"b"]+=e+this.titleGap}v.forIn(this.margins,function(a,b){c[b]+=a});this.plotArea={width:b.width-c.l-c.r,height:b.height-c.t-c.b};v.forIn(this.axes,z);y(this.stack,this.plotArea);return this},render:function(){this._delayedRenderHandle&&(clearTimeout(this._delayedRenderHandle),this._delayedRenderHandle=
null);this.theme&&this.theme.clear();if(this.dirty)return this.fullRender();this.calculateGeometry();v.forEachRev(this.stack,function(a){a.render(this.dim,this.offsets)},this);v.forIn(this.axes,function(a){a.render(this.dim,this.offsets)},this);this._makeClean();return this},fullRender:function(){this.fullGeometry();var b=this.offsets,c=this.dim,f=Math.max(0,c.width-b.l-b.r),e=Math.max(0,c.height-b.t-b.b);k.forEach(this.series,x);v.forIn(this.axes,x);k.forEach(this.stack,x);var g=this.surface.children;
if(t.dispose)for(var h=0;h<g.length;++h)t.dispose(g[h]);this.chartTitle&&this.chartTitle.tagName&&d.destroy(this.chartTitle);this.surface.clear();this.chartTitle=null;this._renderChartBackground(c,b);this._renderPlotBackground(c,b,f,e);v.foldr(this.stack,function(a,d){return d.render(c,b),0},0);this._nativeClip||this._renderChartBackground(c,b);this.title&&(f="canvas"==r.renderer&&this.htmlLabels||!a("ie")&&!a("opera")&&this.htmlLabels?"html":"gfx",e=r.normalizedLength(r.splitFontString(this.titleFont).size),
this.chartTitle=s.createText[f](this,this.surface,c.width/2,"top"==this.titlePos?e+this.margins.t:c.height-this.margins.b,"middle",this.title,this.titleFont,this.titleFontColor));v.forIn(this.axes,function(a){a.render(c,b)});this._makeClean();return this},_renderChartBackground:function(a,d){var f=this.theme,e,g=void 0!==this.fill?this.fill:f.chart&&f.chart.fill,f=void 0!==this.stroke?this.stroke:f.chart&&f.chart.stroke;if("inherit"==g){e=this.node;for(g=new b(h.get(e,"backgroundColor"));0==g.a&&
e!=document.documentElement;)g=new b(h.get(e,"backgroundColor")),e=e.parentNode}g&&(this._nativeClip?(g=c.prototype._shapeFill(c.prototype._plotFill(g,a),{x:0,y:0,width:a.width+1,height:a.height+1}),this.surface.createRect({width:a.width+1,height:a.height+1}).setFill(g)):(g=c.prototype._plotFill(g,a,d),d.l&&(e={x:0,y:0,width:d.l,height:a.height+1},this.surface.createRect(e).setFill(c.prototype._shapeFill(g,e))),d.r&&(e={x:a.width-d.r,y:0,width:d.r+1,height:a.height+2},this.surface.createRect(e).setFill(c.prototype._shapeFill(g,
e))),d.t&&(e={x:0,y:0,width:a.width+1,height:d.t},this.surface.createRect(e).setFill(c.prototype._shapeFill(g,e))),d.b&&(e={x:0,y:a.height-d.b,width:a.width+1,height:d.b+2},this.surface.createRect(e).setFill(c.prototype._shapeFill(g,e)))));f&&this.surface.createRect({width:a.width-1,height:a.height-1}).setStroke(f)},_renderPlotBackground:function(a,b,d,f){var e=this.theme,g=e.plotarea&&e.plotarea.fill,e=e.plotarea&&e.plotarea.stroke,h={x:b.l-1,y:b.t-1,width:d+2,height:f+2};g&&(g=c.prototype._shapeFill(c.prototype._plotFill(g,
a,b),h),this.surface.createRect(h).setFill(g));e&&this.surface.createRect({x:b.l,y:b.t,width:d+1,height:f+1}).setStroke(e)},delayedRender:function(){this._delayedRenderHandle||(this._delayedRenderHandle=setTimeout(n.hitch(this,function(){this.render()}),this.delayInMs));return this},connectToPlot:function(a,b,c){return a in this.plots?this.stack[this.plots[a]].connect(b,c):null},fireEvent:function(a,b,c){if(a in this.runs){var d=this.series[this.runs[a]].plot;d in this.plots&&(d=this.stack[this.plots[d]])&&
d.fireEvent(a,b,c)}return this},_makeClean:function(){k.forEach(this.axes,D);k.forEach(this.stack,D);k.forEach(this.series,D);this.dirty=!1},_makeDirty:function(){k.forEach(this.axes,C);k.forEach(this.stack,C);k.forEach(this.series,C);this.dirty=!0},_invalidateDependentPlots:function(a,b){if(a in this.plots){var c=this.stack[this.plots[a]],d,f=b?"vAxis":"hAxis";if(c[f]){if((d=this.axes[c[f]])&&d.dependOnData())d.dirty=!0,k.forEach(this.stack,function(a){a[f]&&a[f]==c[f]&&(a.dirty=!0)})}else c.dirty=
!0}},setDir:function(a){return this},_resetLeftBottom:function(a){},formatTruncatedLabel:function(a,b,c){}});return a("dojo-bidi")?q("dojox.charting.Chart",[l,u]):l})},"dojox/charting/Element":function(){define(["dojo/_base/array","dojo/dom-construct","dojo/_base/declare","dojox/gfx","dojox/gfx/shape"],function(l,n,k,q,h){return k("dojox.charting.Element",null,{chart:null,group:null,htmlElements:null,dirty:!0,renderingOptions:null,constructor:function(g,e){this.chart=g;this.group=null;this.htmlElements=
[];this.dirty=!0;this.trailingSymbol="...";this._events=[];e&&e.renderingOptions&&(this.renderingOptions=e.renderingOptions)},purgeGroup:function(){this.destroyHtmlElements();if(this.group){this.getGroup().removeShape();var g=this.getGroup().children;if(h.dispose)for(var e=0;e<g.length;++e)h.dispose(g[e],!0);this.getGroup().rawNode&&n.empty(this.getGroup().rawNode);this.getGroup().clear();h.dispose&&h.dispose(this.getGroup(),!0);this.getGroup()!=this.group&&(this.group.rawNode&&n.empty(this.group.rawNode),
this.group.clear(),h.dispose&&h.dispose(this.group,!0));this.group=null}this.dirty=!0;this._events.length&&(l.forEach(this._events,function(d){d.shape.disconnect(d.handle)}),this._events=[]);return this},cleanGroup:function(g){this.destroyHtmlElements();g||(g=this.chart.surface);if(this.group){var e;g=this.getGroup().children;if(h.dispose)for(var d=0;d<g.length;++d)h.dispose(g[d],!0);this.getGroup().rawNode&&(e=this.getGroup().bgNode,n.empty(this.getGroup().rawNode));this.getGroup().clear();e&&this.getGroup().rawNode.appendChild(e)}else if(this.group=
g.createGroup(),this.renderingOptions&&this.group.rawNode&&"http://www.w3.org/2000/svg"==this.group.rawNode.namespaceURI)for(d in this.renderingOptions)this.group.rawNode.setAttribute(d,this.renderingOptions[d]);this.dirty=!0;return this},getGroup:function(){return this.group},destroyHtmlElements:function(){this.htmlElements.length&&(l.forEach(this.htmlElements,n.destroy),this.htmlElements=[])},destroy:function(){this.purgeGroup()},getTextWidth:function(g,e){return q._base._getTextBox(g,{font:e}).w||
0},getTextWithLimitLength:function(g,e,d,b){if(!g||0>=g.length)return{text:"",truncated:b||!1};if(!d||0>=d)return{text:g,truncated:b||!1};var a=g.substring(0,1)+this.trailingSymbol,c=this.getTextWidth(a,e);if(d<=c)return{text:a,truncated:!0};if(this.getTextWidth(g,e)<=d)return{text:g,truncated:b||!1};b=0;for(a=g.length;b<a;){if(2>=a-b){for(;this.getTextWidth(g.substring(0,b)+this.trailingSymbol,e)>d;)b-=1;return{text:g.substring(0,b)+this.trailingSymbol,truncated:!0}}c=b+Math.round(0.618*(a-b));this.getTextWidth(g.substring(0,
c),e)<d?b=c:a=c}},getTextWithLimitCharCount:function(g,e,d,b){return!g||0>=g.length?{text:"",truncated:b||!1}:!d||0>=d||g.length<=d?{text:g,truncated:b||!1}:{text:g.substring(0,d)+this.trailingSymbol,truncated:!0}},_plotFill:function(g,e,d){if(!g||!g.type||!g.space)return g;var b=g.space,a;switch(g.type){case "linear":if("plot"===b||"shapeX"===b||"shapeY"===b){g=q.makeParameters(q.defaultLinearGradient,g);g.space=b;if("plot"===b||"shapeX"===b)a=e.height-d.t-d.b,g.y1=d.t+a*g.y1/100,g.y2=d.t+a*g.y2/
100;if("plot"===b||"shapeY"===b)a=e.width-d.l-d.r,g.x1=d.l+a*g.x1/100,g.x2=d.l+a*g.x2/100}break;case "radial":"plot"===b&&(g=q.makeParameters(q.defaultRadialGradient,g),g.space=b,b=e.width-d.l-d.r,e=e.height-d.t-d.b,g.cx=d.l+b*g.cx/100,g.cy=d.t+e*g.cy/100,g.r=g.r*Math.sqrt(b*b+e*e)/200);break;case "pattern":if("plot"===b||"shapeX"===b||"shapeY"===b){g=q.makeParameters(q.defaultPattern,g);g.space=b;if("plot"===b||"shapeX"===b)a=e.height-d.t-d.b,g.y=d.t+a*g.y/100,g.height=a*g.height/100;if("plot"===
b||"shapeY"===b)a=e.width-d.l-d.r,g.x=d.l+a*g.x/100,g.width=a*g.width/100}}return g},_shapeFill:function(g,e){if(!g||!g.space)return g;var d=g.space,b;switch(g.type){case "linear":if("shape"===d||"shapeX"===d||"shapeY"===d){g=q.makeParameters(q.defaultLinearGradient,g);g.space=d;if("shape"===d||"shapeX"===d)b=e.width,g.x1=e.x+b*g.x1/100,g.x2=e.x+b*g.x2/100;if("shape"===d||"shapeY"===d)b=e.height,g.y1=e.y+b*g.y1/100,g.y2=e.y+b*g.y2/100}break;case "radial":"shape"===d&&(g=q.makeParameters(q.defaultRadialGradient,
g),g.space=d,g.cx=e.x+e.width/2,g.cy=e.y+e.height/2,g.r=g.r*e.width/200);break;case "pattern":if("shape"===d||"shapeX"===d||"shapeY"===d){g=q.makeParameters(q.defaultPattern,g);g.space=d;if("shape"===d||"shapeX"===d)b=e.width,g.x=e.x+b*g.x/100,g.width=b*g.width/100;if("shape"===d||"shapeY"===d)b=e.height,g.y=e.y+b*g.y/100,g.height=b*g.height/100}}return g},_pseudoRadialFill:function(g,e,d,b,a){if(!g||"radial"!==g.type||"shape"!==g.space)return g;var c=g.space;g=q.makeParameters(q.defaultRadialGradient,
g);g.space=c;if(4>arguments.length)return g.cx=e.x,g.cy=e.y,g.r=g.r*d/100,g;c=5>arguments.length?b:(a+b)/2;return{type:"linear",x1:e.x,y1:e.y,x2:e.x+g.r*d*Math.cos(c)/100,y2:e.y+g.r*d*Math.sin(c)/100,colors:g.colors}}})})},"dojox/charting/SimpleTheme":function(){define("dojo/_base/lang dojo/_base/array dojo/_base/declare dojo/_base/Color dojox/lang/utils dojox/gfx/gradutils".split(" "),function(l,n,k,q,h,g){var e=k("dojox.charting.SimpleTheme",null,{shapeSpaces:{shape:1,shapeX:1,shapeY:1},constructor:function(d){d=
d||{};var b=e.defaultTheme;n.forEach("chart plotarea axis grid series marker indicator".split(" "),function(a){this[a]=l.delegate(b[a],d[a])},this);d.seriesThemes&&d.seriesThemes.length?(this.colors=null,this.seriesThemes=d.seriesThemes.slice(0)):(this.seriesThemes=null,this.colors=(d.colors||e.defaultColors).slice(0));this.markerThemes=null;d.markerThemes&&d.markerThemes.length&&(this.markerThemes=d.markerThemes.slice(0));this.markers=d.markers?l.clone(d.markers):l.delegate(e.defaultMarkers);this.noGradConv=
d.noGradConv;this.noRadialConv=d.noRadialConv;d.reverseFills&&this.reverseFills();this._current=0;this._buildMarkerArray()},clone:function(){var d=new this.constructor({chart:this.chart,plotarea:this.plotarea,axis:this.axis,grid:this.grid,series:this.series,marker:this.marker,colors:this.colors,markers:this.markers,indicator:this.indicator,seriesThemes:this.seriesThemes,markerThemes:this.markerThemes,noGradConv:this.noGradConv,noRadialConv:this.noRadialConv});n.forEach("clone clear next skip addMixin post getTick".split(" "),
function(b){this.hasOwnProperty(b)&&(d[b]=this[b])},this);return d},clear:function(){this._current=0},next:function(d,b,a){var c=h.merge,f;if(this.colors){f=l.delegate(this.series);var c=l.delegate(this.marker),e=new q(this.colors[this._current%this.colors.length]),g;f.stroke&&f.stroke.color?(f.stroke=l.delegate(f.stroke),g=new q(f.stroke.color),f.stroke.color=new q(e),f.stroke.color.a=g.a):f.stroke={color:e};c.stroke&&c.stroke.color?(c.stroke=l.delegate(c.stroke),g=new q(c.stroke.color),c.stroke.color=
new q(e),c.stroke.color.a=g.a):c.stroke={color:e};!f.fill||f.fill.type?f.fill=e:(g=new q(f.fill),f.fill=new q(e),f.fill.a=g.a);!c.fill||c.fill.type?c.fill=e:(g=new q(c.fill),c.fill=new q(e),c.fill.a=g.a)}else f=this.seriesThemes?c(this.series,this.seriesThemes[this._current%this.seriesThemes.length]):this.series,c=this.markerThemes?c(this.marker,this.markerThemes[this._current%this.markerThemes.length]):f;f={series:f,marker:c,symbol:c&&c.symbol||this._markers[this._current%this._markers.length]};
++this._current;b&&(f=this.addMixin(f,d,b));a&&(f=this.post(f,d));return f},skip:function(){++this._current},addMixin:function(d,b,a,c){if(l.isArray(a))n.forEach(a,function(a){d=this.addMixin(d,b,a)},this);else{var f={};"color"in a&&("line"==b||"area"==b?(l.setObject("series.stroke.color",a.color,f),l.setObject("marker.stroke.color",a.color,f)):l.setObject("series.fill",a.color,f));n.forEach("stroke outline shadow fill filter font fontColor labelWiring".split(" "),function(b){var c="marker"+b.charAt(0).toUpperCase()+
b.substr(1),d=c in a;b in a&&(l.setObject("series."+b,a[b],f),d||l.setObject("marker."+b,a[b],f));d&&l.setObject("marker."+b,a[c],f)});"marker"in a&&(f.symbol=a.marker,f.symbol=a.marker);d=h.merge(d,f)}c&&(d=this.post(d,b));return d},post:function(d,b){var a=d.series.fill,c;if(!this.noGradConv&&this.shapeSpaces[a.space]&&"linear"==a.type){if("bar"==b)c={x1:a.y1,y1:a.x1,x2:a.y2,y2:a.x2};else if(!this.noRadialConv&&"shape"==a.space&&("slice"==b||"circle"==b))c={type:"radial",cx:0,cy:0,r:100};if(c)return h.merge(d,
{series:{fill:c}})}return d},getTick:function(d,b){var a=this.axis.tick,c=d+"Tick",f=h.merge;a?this.axis[c]&&(a=f(a,this.axis[c])):a=this.axis[c];b&&(a?b[c]&&(a=f(a,b[c])):a=b[c]);return a},inspectObjects:function(d){n.forEach("chart plotarea axis grid series marker indicator".split(" "),function(b){d(this[b])},this);this.seriesThemes&&n.forEach(this.seriesThemes,d);this.markerThemes&&n.forEach(this.markerThemes,d)},reverseFills:function(){this.inspectObjects(function(d){d&&d.fill&&(d.fill=g.reverse(d.fill))})},
addMarker:function(d,b){this.markers[d]=b;this._buildMarkerArray()},setMarkers:function(d){this.markers=d;this._buildMarkerArray()},_buildMarkerArray:function(){this._markers=[];for(var d in this.markers)this._markers.push(this.markers[d])}});l.mixin(e,{defaultMarkers:{CIRCLE:"m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",SQUARE:"m-3,-3 l0,6 6,0 0,-6 z",DIAMOND:"m0,-3 l3,3 -3,3 -3,-3 z",CROSS:"m0,-3 l0,6 m-3,-3 l6,0",X:"m-3,-3 l6,6 m0,-6 l-6,6",TRIANGLE:"m-3,3 l3,-6 3,6 z",TRIANGLE_INVERTED:"m-3,-3 l3,6 3,-6 z"},
defaultColors:["#54544c","#858e94","#6e767a","#948585","#474747"],defaultTheme:{chart:{stroke:null,fill:"white",pageStyle:null,titleGap:20,titlePos:"top",titleFont:"normal normal bold 14pt Tahoma",titleFontColor:"#333"},plotarea:{stroke:null,fill:"white"},axis:{stroke:{color:"#333",width:1},tick:{color:"#666",position:"center",font:"normal normal normal 7pt Tahoma",fontColor:"#333",labelGap:4},majorTick:{width:1,length:6},minorTick:{width:0.8,length:3},microTick:{width:0.5,length:1},title:{gap:15,
font:"normal normal normal 11pt Tahoma",fontColor:"#333",orientation:"axis"}},series:{stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",font:"normal normal normal 8pt Tahoma",fontColor:"#000",labelWiring:{width:1,color:"#ccc"}},marker:{stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",font:"normal normal normal 8pt Tahoma",fontColor:"#000"},indicator:{lineStroke:{width:1.5,color:"#333"},lineOutline:{width:0.1,color:"#ccc"},
lineShadow:null,lineFill:null,stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",radius:3,font:"normal normal normal 10pt Tahoma",fontColor:"#000",markerFill:"#ccc",markerSymbol:"m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",markerStroke:{width:1.5,color:"#333"},markerOutline:{width:0.1,color:"#ccc"},markerShadow:null}}});return e})},"dojox/lang/utils":function(){define(["..","dojo/_base/lang"],function(l,n){var k=n.getObject("lang.utils",!0,l),q={},h=Object.prototype.toString,
g=function(e){if(e)switch(h.call(e)){case "[object Array]":return e.slice(0);case "[object Object]":return n.delegate(e)}return e};n.mixin(k,{coerceType:function(e,d){switch(typeof e){case "number":return Number(eval("("+d+")"));case "string":return String(d);case "boolean":return Boolean(eval("("+d+")"))}return eval("("+d+")")},updateWithObject:function(e,d,b){if(!d)return e;for(var a in e)if(a in d&&!(a in q)){var c=e[a];c&&"object"==typeof c?k.updateWithObject(c,d[a],b):e[a]=b?k.coerceType(c,d[a]):
g(d[a])}return e},updateWithPattern:function(e,d,b,a){if(!d||!b)return e;for(var c in b)c in d&&!(c in q)&&(e[c]=a?k.coerceType(b[c],d[c]):g(d[c]));return e},merge:function(e,d){if(d){var b=h.call(e),a=h.call(d),c,f;switch(a){case "[object Array]":if(a==b){b=Array(Math.max(e.length,d.length));c=0;for(a=b.length;c<a;++c)b[c]=k.merge(e[c],d[c]);return b}return d.slice(0);case "[object Object]":if(a==b&&e){b=n.delegate(e);for(c in d)c in e?(a=e[c],f=d[c],f!==a&&(b[c]=k.merge(a,f))):b[c]=n.clone(d[c]);
return b}return n.clone(d)}}return d}});return k})},"dojox/gfx/gradutils":function(){define(["./_base","dojo/_base/lang","./matrix","dojo/_base/Color"],function(l,n,k,q){function h(g,e){if(0>=g)return e[0].color;var d=e.length;if(1<=g)return e[d-1].color;for(var b=0;b<d;++b){var a=e[b];if(a.offset>=g)return b?(d=e[b-1],q.blendColors(new q(d.color),new q(a.color),(g-d.offset)/(a.offset-d.offset))):a.color}return e[d-1].color}l=l.gradutils={};l.getColor=function(g,e){var d;if(g){switch(g.type){case "linear":d=
Math.atan2(g.y2-g.y1,g.x2-g.x1);d=k.rotate(-d);var b=k.project(g.x2-g.x1,g.y2-g.y1),a=k.multiplyPoint(b,e),c=k.multiplyPoint(b,g.x1,g.y1),b=k.multiplyPoint(b,g.x2,g.y2),b=k.multiplyPoint(d,b.x-c.x,b.y-c.y).x;d=k.multiplyPoint(d,a.x-c.x,a.y-c.y).x/b;break;case "radial":d=e.x-g.cx,a=e.y-g.cy,d=Math.sqrt(d*d+a*a)/g.r}return h(d,g.colors)}return new q(g||[0,0,0,0])};l.reverse=function(g){if(g)switch(g.type){case "linear":case "radial":if(g=n.delegate(g),g.colors){for(var e=g.colors,d=e.length,b=0,a,c=
g.colors=Array(e.length);b<d;++b)a=e[b],c[b]={offset:1-a.offset,color:a.color};c.sort(function(a,b){return a.offset-b.offset})}}return g};return l})},"dojox/charting/Series":function(){define(["dojo/_base/lang","dojo/_base/declare","./Element"],function(l,n,k){return n("dojox.charting.Series",k,{constructor:function(k,h,g){l.mixin(this,g);"string"!=typeof this.plot&&(this.plot="default");this.update(h)},clear:function(){this.dyn={}},update:function(k){l.isArray(k)?this.data=k:(this.source=k,this.data=
this.source.data,this.source.setSeriesObject&&this.source.setSeriesObject(this));this.dirty=!0;this.clear()}})})},"dojox/charting/axis2d/common":function(){define(["dojo/_base/lang","dojo/_base/window","dojo/dom-geometry","dojox/gfx","dojo/has"],function(l,n,k,q,h){var g=l.getObject("dojox.charting.axis2d.common",!0),e=function(d){d.marginLeft="0px";d.marginTop="0px";d.marginRight="0px";d.marginBottom="0px";d.paddingLeft="0px";d.paddingTop="0px";d.paddingRight="0px";d.paddingBottom="0px";d.borderLeftWidth=
"0px";d.borderTopWidth="0px";d.borderRightWidth="0px";d.borderBottomWidth="0px"};return l.mixin(g,{createText:{gfx:function(d,b,a,c,f,e,g,h){return b.createText({x:a,y:c,text:e,align:f}).setFont(g).setFill(h)},html:function(d,b,a,c,f,g,l,t,r){b=n.doc.createElement("div");var u=b.style,v;d.getTextDir&&(b.dir=d.getTextDir(g));e(u);u.font=l;b.innerHTML=String(g).replace(/\s/g,"\x26nbsp;");u.color=t;u.position="absolute";u.left="-10000px";n.body().appendChild(b);var A=q.normalizedLength(q.splitFontString(l).size);
r||(b.getBoundingClientRect?(v=b.getBoundingClientRect(),v=v.width||v.right-v.left):v=k.getMarginBox(b).w);"rtl"==b.dir&&(a+=r?r:v);n.body().removeChild(b);u.position="relative";if(r)switch(u.width=r+"px",f){case "middle":u.textAlign="center";u.left=a-r/2+"px";break;case "end":u.textAlign="right";u.left=a-r+"px";break;default:u.left=a+"px",u.textAlign="left"}else switch(f){case "middle":u.left=Math.floor(a-v/2)+"px";break;case "end":u.left=Math.floor(a-v)+"px";break;default:u.left=Math.floor(a)+"px"}u.top=
Math.floor(c-A)+"px";u.whiteSpace="nowrap";r=n.doc.createElement("div");u=r.style;e(u);u.width="0px";u.height="0px";r.appendChild(b);d.node.insertBefore(r,d.node.firstChild);h("dojo-bidi")&&d.htmlElementsRegistry.push([r,a,c,f,g,l,t]);return r}}})})},"dojox/lang/functional":function(){define(["./functional/lambda","./functional/array","./functional/object"],function(l){return l})},"dojox/lang/functional/lambda":function(){define(["../..","dojo/_base/lang","dojo/_base/array"],function(l,n,k){var q=
n.getObject("lang.functional",!0,l),h={},g=1<"ab".split(/a*/).length?String.prototype.split:function(b){var a=this.split.call(this,b);(b=b.exec(this))&&0==b.index&&a.unshift("");return a},e=function(b){var a=[],c=g.call(b,/\s*->\s*/m);if(1<c.length)for(;c.length;)b=c.pop(),a=c.pop().split(/\s*,\s*|\s+/m),c.length&&c.push("(function("+a.join(", ")+"){ return ("+b+"); })");else if(b.match(/\b_\b/))a=["_"];else{var c=b.match(/^\s*(?:[+*\/%&|\^\.=<>]|!=)/m),d=b.match(/[+\-*\/%&|\^\.=<>!]\s*$/m);if(c||
d)c&&(a.push("$1"),b="$1"+b),d&&(a.push("$2"),b+="$2");else{var c=b.replace(/(?:\b[A-Z]|\.[a-zA-Z_$])[a-zA-Z_$\d]*|[a-zA-Z_$][a-zA-Z_$\d]*:|this|true|false|null|undefined|typeof|instanceof|in|delete|new|void|arguments|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|eval|isFinite|isNaN|parseFloat|parseInt|unescape|dojo|dijit|dojox|window|document|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"/g,"").match(/([a-z_$][a-z_$\d]*)/gi)||[],e={};k.forEach(c,function(b){e.hasOwnProperty(b)||(a.push(b),
e[b]=1)})}}return{args:a,body:b}},d=function(b){return b.length?function(){var a=b.length-1,c=q.lambda(b[a]).apply(this,arguments);for(--a;0<=a;--a)c=q.lambda(b[a]).call(this,c);return c}:function(a){return a}};n.mixin(q,{rawLambda:function(b){return e(b)},buildLambda:function(b){b=e(b);return"function("+b.args.join(",")+"){return ("+b.body+");}"},lambda:function(b){if("function"==typeof b)return b;if(b instanceof Array)return d(b);if(h.hasOwnProperty(b))return h[b];var a=e(b);return h[b]=new Function(a.args,
"return ("+a.body+");")},clearLambdaCache:function(){h={}}});return q})},"dojox/lang/functional/array":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array","./lambda"],function(l,n,k,q){var h={};n.mixin(q,{filter:function(g,e,d){"string"==typeof g&&(g=g.split(""));d=d||l.global;e=q.lambda(e);var b=[],a,c,f;if(n.isArray(g)){c=0;for(f=g.length;c<f;++c)a=g[c],e.call(d,a,c,g)&&b.push(a)}else if("function"==typeof g.hasNext&&"function"==typeof g.next)for(c=0;g.hasNext();)a=g.next(),
e.call(d,a,c++,g)&&b.push(a);else for(c in g)c in h||(a=g[c],e.call(d,a,c,g)&&b.push(a));return b},forEach:function(g,e,d){"string"==typeof g&&(g=g.split(""));d=d||l.global;e=q.lambda(e);var b,a;if(n.isArray(g)){b=0;for(a=g.length;b<a;e.call(d,g[b],b,g),++b);}else if("function"==typeof g.hasNext&&"function"==typeof g.next)for(b=0;g.hasNext();e.call(d,g.next(),b++,g));else for(b in g)b in h||e.call(d,g[b],b,g);return d},map:function(g,e,d){"string"==typeof g&&(g=g.split(""));d=d||l.global;e=q.lambda(e);
var b,a,c;if(n.isArray(g)){b=Array(a=g.length);for(c=0;c<a;b[c]=e.call(d,g[c],c,g),++c);}else if("function"==typeof g.hasNext&&"function"==typeof g.next){b=[];for(c=0;g.hasNext();b.push(e.call(d,g.next(),c++,g)));}else for(c in b=[],g)c in h||b.push(e.call(d,g[c],c,g));return b},every:function(g,e,d){"string"==typeof g&&(g=g.split(""));d=d||l.global;e=q.lambda(e);var b,a;if(n.isArray(g)){b=0;for(a=g.length;b<a;++b)if(!e.call(d,g[b],b,g))return!1}else if("function"==typeof g.hasNext&&"function"==typeof g.next)for(b=
0;g.hasNext();){if(!e.call(d,g.next(),b++,g))return!1}else for(b in g)if(!(b in h)&&!e.call(d,g[b],b,g))return!1;return!0},some:function(g,e,d){"string"==typeof g&&(g=g.split(""));d=d||l.global;e=q.lambda(e);var b,a;if(n.isArray(g)){b=0;for(a=g.length;b<a;++b)if(e.call(d,g[b],b,g))return!0}else if("function"==typeof g.hasNext&&"function"==typeof g.next)for(b=0;g.hasNext();){if(e.call(d,g.next(),b++,g))return!0}else for(b in g)if(!(b in h)&&e.call(d,g[b],b,g))return!0;return!1}});return q})},"dojox/lang/functional/object":function(){define(["dojo/_base/kernel",
"dojo/_base/lang","./lambda"],function(l,n,k){var q={};n.mixin(k,{keys:function(h){var g=[],e;for(e in h)e in q||g.push(e);return g},values:function(h){var g=[],e;for(e in h)e in q||g.push(h[e]);return g},filterIn:function(h,g,e){e=e||l.global;g=k.lambda(g);var d={},b,a;for(a in h)a in q||(b=h[a],g.call(e,b,a,h)&&(d[a]=b));return d},forIn:function(h,g,e){e=e||l.global;g=k.lambda(g);for(var d in h)d in q||g.call(e,h[d],d,h);return e},mapIn:function(h,g,e){e=e||l.global;g=k.lambda(g);var d={},b;for(b in h)b in
q||(d[b]=g.call(e,h[b],b,h));return d}});return k})},"dojox/lang/functional/fold":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/kernel","./lambda"],function(l,n,k,q){var h={};l.mixin(q,{foldl:function(g,e,d,b){"string"==typeof g&&(g=g.split(""));b=b||k.global;e=q.lambda(e);var a,c;if(l.isArray(g)){a=0;for(c=g.length;a<c;d=e.call(b,d,g[a],a,g),++a);}else if("function"==typeof g.hasNext&&"function"==typeof g.next)for(a=0;g.hasNext();d=e.call(b,d,g.next(),a++,g));else for(a in g)a in
h||(d=e.call(b,d,g[a],a,g));return d},foldl1:function(g,e,d){"string"==typeof g&&(g=g.split(""));d=d||k.global;e=q.lambda(e);var b,a,c;if(l.isArray(g)){b=g[0];a=1;for(c=g.length;a<c;b=e.call(d,b,g[a],a,g),++a);}else if("function"==typeof g.hasNext&&"function"==typeof g.next){if(g.hasNext()){b=g.next();for(a=1;g.hasNext();b=e.call(d,b,g.next(),a++,g));}}else for(a in c=!0,g)a in h||(c?(b=g[a],c=!1):b=e.call(d,b,g[a],a,g));return b},foldr:function(g,e,d,b){"string"==typeof g&&(g=g.split(""));b=b||k.global;
e=q.lambda(e);for(var a=g.length;0<a;--a,d=e.call(b,d,g[a],a,g));return d},foldr1:function(g,e,d){"string"==typeof g&&(g=g.split(""));d=d||k.global;e=q.lambda(e);for(var b=g.length,a=g[b-1],b=b-1;0<b;--b,a=e.call(d,a,g[b],b,g));return a},reduce:function(g,e,d){return 3>arguments.length?q.foldl1(g,e):q.foldl(g,e,d)},reduceRight:function(g,e,d){return 3>arguments.length?q.foldr1(g,e):q.foldr(g,e,d)},unfold:function(g,e,d,b,a){a=a||k.global;e=q.lambda(e);d=q.lambda(d);g=q.lambda(g);for(var c=[];!g.call(a,
b);c.push(e.call(a,b)),b=d.call(a,b));return c}})})},"dojox/lang/functional/reversed":function(){define(["dojo/_base/lang","dojo/_base/kernel","./lambda"],function(l,n,k){l.mixin(k,{filterRev:function(l,h,g){"string"==typeof l&&(l=l.split(""));g=g||n.global;h=k.lambda(h);for(var e=[],d,b=l.length-1;0<=b;--b)d=l[b],h.call(g,d,b,l)&&e.push(d);return e},forEachRev:function(l,h,g){"string"==typeof l&&(l=l.split(""));g=g||n.global;h=k.lambda(h);for(var e=l.length-1;0<=e;h.call(g,l[e],e,l),--e);},mapRev:function(l,
h,g){"string"==typeof l&&(l=l.split(""));g=g||n.global;h=k.lambda(h);for(var e=l.length,d=Array(e),e=e-1,b=0;0<=e;d[b++]=h.call(g,l[e],e,l),--e);return d},everyRev:function(l,h,g){"string"==typeof l&&(l=l.split(""));g=g||n.global;h=k.lambda(h);for(var e=l.length-1;0<=e;--e)if(!h.call(g,l[e],e,l))return!1;return!0},someRev:function(l,h,g){"string"==typeof l&&(l=l.split(""));g=g||n.global;h=k.lambda(h);for(var e=l.length-1;0<=e;--e)if(h.call(g,l[e],e,l))return!0;return!1}});return k})},"dojox/charting/axis2d/Default":function(){define("dojo/_base/lang dojo/_base/array dojo/sniff dojo/_base/declare dojo/_base/connect dojo/dom-geometry ./Invisible ../scaler/linear ./common dojox/gfx dojox/lang/utils dojox/lang/functional dojo/has!dojo-bidi?../bidi/axis2d/Default".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m){e=q(k("dojo-bidi")?"dojox.charting.axis2d.NonBidiDefault":"dojox.charting.axis2d.Default",e,{defaultParams:{vertical:!1,fixUpper:"none",fixLower:"none",natural:!1,leftBottom:!0,includeZero:!1,fixed:!0,majorLabels:!0,minorTicks:!0,minorLabels:!0,microTicks:!1,rotation:0,htmlLabels:!0,enableCache:!1,dropLabels:!0,labelSizeChange:!1,position:"leftOrBottom"},optionalParams:{min:0,max:1,from:0,to:1,majorTickStep:4,minorTickStep:2,microTickStep:1,labels:[],labelFunc:null,
maxLabelSize:0,maxLabelCharCount:0,trailingSymbol:null,stroke:{},majorTick:{},minorTick:{},microTick:{},tick:{},font:"",fontColor:"",title:"",titleGap:0,titleFont:"",titleFontColor:"",titleOrientation:""},constructor:function(a,b){this.opt=l.clone(this.defaultParams);c.updateWithObject(this.opt,b);c.updateWithPattern(this.opt,b,this.optionalParams);this.opt.enableCache&&(this._textFreePool=[],this._lineFreePool=[],this._textUsePool=[],this._lineUsePool=[]);this._invalidMaxLabelSize=!0;b&&"position"in
b||(this.opt.position=this.opt.leftBottom?"leftOrBottom":"rightOrTop");this.renderingOptions={"shape-rendering":"crispEdges"}},setWindow:function(a,b){a!=this.scale&&(this._invalidMaxLabelSize=!0);return this.inherited(arguments)},_groupLabelWidth:function(b,c,d){if(!b.length)return 0;50<b.length&&(b.length=50);l.isObject(b[0])&&(b=f.map(b,function(a){return a.text}));d&&(b=f.map(b,function(a){return 0==l.trim(a).length?"":a.substring(0,d)+this.trailingSymbol},this));b=b.join("\x3cbr\x3e");return a._base._getTextBox(b,
{font:c}).w||0},_getMaxLabelSize:function(a,b,c,f,e,g){if(null==this._maxLabelSize&&6==arguments.length){var h=this.opt;this.scaler.minMinorStep=this._prevMinMinorStep=0;var m=l.clone(h);delete m.to;delete m.from;var k=d.buildScaler(a,b,c,m,h.to-h.from);k.minMinorStep=0;this._majorStart=k.major.start;h=d.buildTicks(k,h);if(g&&h){var q=k=0,B=function(a){a.label&&this.push(a.label)},D=[];this.opt.majorLabels&&(n.forEach(h.major,B,D),k=this._groupLabelWidth(D,e,m.maxLabelCharCount),m.maxLabelSize&&(k=
Math.min(m.maxLabelSize,k)));D=[];this.opt.dropLabels&&this.opt.minorLabels&&(n.forEach(h.minor,B,D),q=this._groupLabelWidth(D,e,m.maxLabelCharCount),m.maxLabelSize&&(q=Math.min(m.maxLabelSize,q)));this._maxLabelSize={majLabelW:k,minLabelW:q,majLabelH:g,minLabelH:g}}else this._maxLabelSize=null}return this._maxLabelSize},calculate:function(b,c,f){this.inherited(arguments);this.scaler.minMinorStep=this._prevMinMinorStep;if((this._invalidMaxLabelSize||f!=this._oldSpan)&&Infinity!=b&&-Infinity!=c){this._invalidMaxLabelSize=
!1;this.opt.labelSizeChange&&(this._maxLabelSize=null);this._oldSpan=f;var e=this.opt,g=this.chart.theme.axis,h=e.rotation%360,m=this.chart.theme.axis.tick.labelGap,k=e.font||g.majorTick&&g.majorTick.font||g.tick&&g.tick.font,g=k?a.normalizedLength(a.splitFontString(k).size):0,k=this._getMaxLabelSize(b,c,f,h,k,g);"number"!=typeof m&&(m=4);if(k&&e.dropLabels){var e=Math.abs(Math.cos(h*Math.PI/180)),l=Math.abs(Math.sin(h*Math.PI/180));0>h&&(h+=360);switch(h){case 0:case 180:this.vertical?h=g:(h=k.majLabelW,
g=k.minLabelW);break;case 90:case 270:this.vertical?(h=k.majLabelW,g=k.minLabelW):h=g;break;default:var h=this.vertical?Math.min(k.majLabelW,g/e):Math.min(k.majLabelW,g/l),n=Math.sqrt(k.minLabelW*k.minLabelW+g*g),g=Math.min(n,this.vertical?g*e+k.minLabelW*l:k.minLabelW*e+g*l)}this.scaler.minMinorStep=this._prevMinMinorStep=Math.max(h,g)+m;this._skipInterval=this.scaler.minMinorStep<=this.scaler.minor.tick*this.scaler.bounds.scale?0:Math.floor((h+m)/(this.scaler.major.tick*this.scaler.bounds.scale))}else this._skipInterval=
0}this.ticks=d.buildTicks(this.scaler,this.opt);return this},getOffsets:function(){var b={l:0,r:0,t:0,b:0};if(!this.scaler)return b;var c=this.opt,d=this.chart.theme.axis,f=this.chart.theme.axis.tick.labelGap,e=c.titleFont||d.title&&d.title.font,d=0==c.titleGap?0:c.titleGap||d.title&&d.title.gap,g=this.chart.theme.getTick("major",c),h=this.chart.theme.getTick("minor",c),e=e?a.normalizedLength(a.splitFontString(e).size):0,m=c.rotation%360,k=c.position,l="rightOrTop"!==k,n=Math.abs(Math.cos(m*Math.PI/
180)),q=Math.abs(Math.sin(m*Math.PI/180));this.trailingSymbol=void 0===c.trailingSymbol||null===c.trailingSymbol?this.trailingSymbol:c.trailingSymbol;"number"!=typeof f&&(f=4);0>m&&(m+=360);var C=this._getMaxLabelSize();if(C){var F=Math.ceil(Math.max(C.majLabelW,C.minLabelW))+1,I=Math.ceil(Math.max(C.majLabelH,C.minLabelH))+1;if(this.vertical)switch(C=l?"l":"r",m){case 0:case 180:b[C]="center"===k?0:F;b.t=b.b=I/2;break;case 90:case 270:b[C]=I;b.t=b.b=F/2;break;default:45>=m||180<m&&225>=m?(b[C]=I*
q/2+F*n,b[l?"t":"b"]=I*n/2+F*q,b[l?"b":"t"]=I*n/2):315<m||180>m&&135<m?(b[C]=I*q/2+F*n,b[l?"b":"t"]=I*n/2+F*q,b[l?"t":"b"]=I*n/2):90>m||180<m&&270>m?(b[C]=I*q+F*n,b[l?"t":"b"]=I*n+F*q):(b[C]=I*q+F*n,b[l?"b":"t"]=I*n+F*q)}else switch(C=l?"b":"t",m){case 0:case 180:b[C]="center"===k?0:I;b.l=b.r=F/2;break;case 90:case 270:b[C]=F;b.l=b.r=I/2;break;default:45<=m&&90>=m||225<=m&&270>=m?(b[C]=I*n/2+F*q,b[l?"r":"l"]=I*q/2+F*n,b[l?"l":"r"]=I*q/2):90<=m&&135>=m||270<=m&&315>=m?(b[C]=I*n/2+F*q,b[l?"l":"r"]=
I*q/2+F*n,b[l?"r":"l"]=I*q/2):45>m||180<m&&225>m?(b[C]=I*n+F*q,b[l?"r":"l"]=I*q+F*n):(b[C]=I*n+F*q,b[l?"l":"r"]=I*q+F*n)}b[C]="center"===k?0:b[C]+(f+Math.max(0<g.length?g.length:0,0<h.length?h.length:0)+(c.title?e+d:0))}return b},cleanGroup:function(a){this.opt.enableCache&&this.group&&(this._lineFreePool=this._lineFreePool.concat(this._lineUsePool),this._lineUsePool=[],this._textFreePool=this._textFreePool.concat(this._textUsePool),this._textUsePool=[]);this.inherited(arguments)},createText:function(a,
c,d,f,e,g,h,m,k){if(!this.opt.enableCache||"html"==a)return b.createText[a](this.chart,c,d,f,e,g,h,m,k);0<this._textFreePool.length?(a=this._textFreePool.pop(),a.setShape({x:d,y:f,text:g,align:e}),c.add(a)):a=b.createText[a](this.chart,c,d,f,e,g,h,m);this._textUsePool.push(a);return a},createLine:function(a,b){var c;this.opt.enableCache&&0<this._lineFreePool.length?(c=this._lineFreePool.pop(),c.setShape(b),a.add(c)):c=a.createLine(b);this.opt.enableCache&&this._lineUsePool.push(c);return c},render:function(c,
f){var e,g,h,m,l,q,z,x,B,D,C,F,I,E,L=this._isRtl();if(!this.dirty||!this.scaler)return this;var G=this.opt;B=this.chart.theme.axis;var K=G.position,J="rightOrTop"!==K,H=G.rotation%360,M=0,N,O,M=this.chart.theme.axis.tick.labelGap,P=G.font||B.majorTick&&B.majorTick.font||B.tick&&B.tick.font,Q=G.titleFont||B.title&&B.title.font,W=G.fontColor||B.majorTick&&B.majorTick.fontColor||B.tick&&B.tick.fontColor||"black",X=G.titleFontColor||B.title&&B.title.fontColor||"black";l=0==G.titleGap?0:G.titleGap||B.title&&
B.title.gap||15;var R=G.titleOrientation||B.title&&B.title.orientation||"axis",U=this.chart.theme.getTick("major",G),S=this.chart.theme.getTick("minor",G),V=this.chart.theme.getTick("micro",G),da="stroke"in G?G.stroke:B.stroke,$=P?a.normalizedLength(a.splitFontString(P).size):0;q=Math.abs(Math.cos(H*Math.PI/180));N=Math.abs(Math.sin(H*Math.PI/180));var ba=Q?a.normalizedLength(a.splitFontString(Q).size):0;"number"!=typeof M&&(M=4);0>H&&(H+=360);var T=this._getMaxLabelSize(),T=T&&T.majLabelW;if(this.vertical){I=
c.height-f.b;E=void 0;C=f.t;F=void 0;B=(c.height-f.b+f.t)/2;D=void 0;N=$*N+(T||0)*q+M+Math.max(0<U.length?U.length:0,0<S.length?S.length:0)+ba+l;z=0;x=-1;g=e=0;l=1;q=0;h=M;m=0;switch(H){case 0:O="end";g=0.4*$;break;case 90:O="middle";e=-$;break;case 180:O="start";g=0.4*-$;break;case 270:O="middle";break;default:45>H?(O="end",g=0.4*$):90>H?(O="end",g=0.4*$):135>H?O="start":225>H?(O="start",g=0.4*-$):270>H?(O="start",e=J?0:0.4*$):315>H?(O="end",e=J?0:0.4*$):(O="end",g=0.4*$)}if(J)E=F="center"===K?c.width/
2:f.l,M=R&&"away"==R?90:270,D=f.l-N+(270==M?ba:0),l=-1,h=-h;else switch(E=F=c.width-f.r,M=R&&"axis"==R?90:270,D=c.width-f.r+N-(270==M?0:ba),O){case "start":O="end";break;case "end":O="start";break;case "middle":e+=$}}else{E=f.l;I=void 0;F=c.width-f.r;C=void 0;D=(c.width-f.r+f.l)/2;B=void 0;N=$*q+(T||0)*N+M+Math.max(0<U.length?U.length:0,0<S.length?S.length:0)+ba+l;z=L?-1:1;l=g=e=x=0;q=1;h=0;m=M;switch(H){case 0:O="middle";g=$;break;case 90:O="start";e=0.4*-$;break;case 180:O="middle";break;case 270:O=
"end";e=0.4*$;break;default:45>H?(O="start",g=J?$:0):135>H?(O="start",e=0.4*-$):180>H?(O="start",g=J?0:-$):225>H?(O="end",g=J?0:-$):315>H?(O="end",g=J?0.4*$:0):(O="end",g=J?$:0)}if(J)I=C="center"===K?c.height/2:c.height-f.b,M=R&&"axis"==R?180:0,B=c.height-f.b+N-(M?ba:0);else switch(I=C=f.t,M=R&&"away"==R?180:0,B=f.t-N+(M?0:ba),q=-1,m=-m,O){case "start":O="end";break;case "end":O="start";break;case "middle":g-=$}}this.cleanGroup();var Z=this.group,K=this.scaler,J=this.ticks,ca=d.getTransformerFromModel(this.scaler),
aa=(!G.title||!M)&&!H&&this.opt.htmlLabels&&!k("ie")&&!k("opera")?"html":"gfx",Y=l*U.length,ea=q*U.length,fa=this._skipInterval;Z.createLine({x1:E,y1:I,x2:F,y2:C}).setStroke(da);G.title&&(Q=b.createText[aa](this.chart,Z,D,B,"middle",G.title,Q,X),"html"==aa?this.htmlElements.push(Q):Q.setTransform(a.matrix.rotategAt(M,D,B)));if(null==J)return this.dirty=!1,this;var ma=0<J.major.length?(J.major[0].value-this._majorStart)/K.major.tick:0,ha=this.opt.majorLabels;n.forEach(J.major,function(b,c){var d=ca(b.value),
f=(L?F:E)+z*d,k=I+x*d;c+=ma;this.createLine(Z,{x1:f,y1:k,x2:f+Y,y2:k+ea}).setStroke(U);if(b.label&&(!fa||0==(c-(1+fa))%(1+fa))){var l=G.maxLabelCharCount?this.getTextWithLimitCharCount(b.label,P,G.maxLabelCharCount):{text:b.label,truncated:!1},l=G.maxLabelSize?this.getTextWithLimitLength(l.text,P,G.maxLabelSize,l.truncated):l,d=this.createText(aa,Z,f+(0<U.length?Y:0)+h+(H?0:e),k+(0<U.length?ea:0)+m+(H?0:g),O,l.text,P,W);l.truncated&&this.chart.formatTruncatedLabel(d,b.label,aa);l.truncated&&this.labelTooltip(d,
this.chart,b.label,l.text,P,aa);"html"==aa?this.htmlElements.push(d):H&&d.setTransform([{dx:e,dy:g},a.matrix.rotategAt(H,f+(0<U.length?Y:0)+h,k+(0<U.length?ea:0)+m)])}},this);Y=l*S.length;ea=q*S.length;ha=this.opt.minorLabels&&K.minMinorStep<=K.minor.tick*K.bounds.scale;n.forEach(J.minor,function(b){var c=ca(b.value),d=(L?F:E)+z*c,f=I+x*c;this.createLine(Z,{x1:d,y1:f,x2:d+Y,y2:f+ea}).setStroke(S);if(ha&&b.label){var k=G.maxLabelCharCount?this.getTextWithLimitCharCount(b.label,P,G.maxLabelCharCount):
{text:b.label,truncated:!1},k=G.maxLabelSize?this.getTextWithLimitLength(k.text,P,G.maxLabelSize,k.truncated):k,c=this.createText(aa,Z,d+(0<S.length?Y:0)+h+(H?0:e),f+(0<S.length?ea:0)+m+(H?0:g),O,k.text,P,W);k.truncated&&this.chart.formatTruncatedLabel(c,b.label,aa);k.truncated&&this.labelTooltip(c,this.chart,b.label,k.text,P,aa);"html"==aa?this.htmlElements.push(c):H&&c.setTransform([{dx:e,dy:g},a.matrix.rotategAt(H,d+(0<S.length?Y:0)+h,f+(0<S.length?ea:0)+m)])}},this);Y=l*V.length;ea=q*V.length;
n.forEach(J.micro,function(a){var b=ca(a.value);a=E+z*b;b=I+x*b;this.createLine(Z,{x1:a,y1:b,x2:a+Y,y2:b+ea}).setStroke(V)},this);this.dirty=!1;return this},labelTooltip:function(b,c,d,f,e,m){var k=["dijit/Tooltip"],n={type:"rect"},q=["above","below"];f=a._base._getTextBox(f,{font:e}).w||0;e=e?a.normalizedLength(a.splitFontString(e).size):0;"html"==m?(l.mixin(n,g.position(b.firstChild,!0)),n.width=Math.ceil(f),n.height=Math.ceil(e),this._events.push({shape:dojo,handle:h.connect(b.firstChild,"onmouseover",
this,function(a){require(k,function(a){a.show(d,n,q)})})}),this._events.push({shape:dojo,handle:h.connect(b.firstChild,"onmouseout",this,function(a){require(k,function(a){a.hide(n)})})})):(m=b.getShape(),c=c.getCoords(),n=l.mixin(n,{x:m.x-f/2,y:m.y}),n.x+=c.x,n.y+=c.y,n.x=Math.round(n.x),n.y=Math.round(n.y),n.width=Math.ceil(f),n.height=Math.ceil(e),this._events.push({shape:b,handle:b.connect("onmouseenter",this,function(a){require(k,function(a){a.show(d,n,q)})})}),this._events.push({shape:b,handle:b.connect("onmouseleave",
this,function(a){require(k,function(a){a.hide(n)})})}))},_isRtl:function(){return!1}});return k("dojo-bidi")?q("dojox.charting.axis2d.Default",[e,m]):e})},"dojox/charting/axis2d/Invisible":function(){define(["dojo/_base/lang","dojo/_base/declare","./Base","../scaler/linear","dojox/lang/utils"],function(l,n,k,q,h){return n("dojox.charting.axis2d.Invisible",k,{defaultParams:{vertical:!1,fixUpper:"none",fixLower:"none",natural:!1,leftBottom:!0,includeZero:!1,fixed:!0},optionalParams:{min:0,max:1,from:0,
to:1,majorTickStep:4,minorTickStep:2,microTickStep:1},constructor:function(g,e){this.opt=l.clone(this.defaultParams);h.updateWithObject(this.opt,e);h.updateWithPattern(this.opt,e,this.optionalParams)},dependOnData:function(){return!("min"in this.opt)||!("max"in this.opt)},clear:function(){delete this.scaler;delete this.ticks;this.dirty=!0;return this},initialized:function(){return"scaler"in this&&!(this.dirty&&this.dependOnData())},setWindow:function(g,e){this.scale=g;this.offset=e;return this.clear()},
getWindowScale:function(){return"scale"in this?this.scale:1},getWindowOffset:function(){return"offset"in this?this.offset:0},calculate:function(g,e,d){if(this.initialized())return this;var b=this.opt;this.labels=b.labels;this.scaler=q.buildScaler(g,e,d,b);var a=this.scaler.bounds;"scale"in this&&(b.from=a.lower+this.offset,b.to=(a.upper-a.lower)/this.scale+b.from,!isFinite(b.from)||isNaN(b.from)||!isFinite(b.to)||isNaN(b.to)||b.to-b.from>=a.upper-a.lower?(delete b.from,delete b.to,delete this.scale,
delete this.offset):(b.from<a.lower?(b.to+=a.lower-b.from,b.from=a.lower):b.to>a.upper&&(b.from+=a.upper-b.to,b.to=a.upper),this.offset=b.from-a.lower),this.scaler=q.buildScaler(g,e,d,b),1==this.scale&&0==this.offset&&(delete this.scale,delete this.offset));return this},getScaler:function(){return this.scaler},getTicks:function(){return this.ticks}})})},"dojox/charting/axis2d/Base":function(){define(["dojo/_base/declare","../Element"],function(l,n){return l("dojox.charting.axis2d.Base",n,{constructor:function(k,
l){this.vertical=l&&l.vertical;this.opt={};this.opt.min=l&&l.min;this.opt.max=l&&l.max},clear:function(){return this},initialized:function(){return!1},calculate:function(k,l,h){return this},getScaler:function(){return null},getTicks:function(){return null},getOffsets:function(){return{l:0,r:0,t:0,b:0}},render:function(k,l){this.dirty=!1;return this}})})},"dojox/charting/scaler/linear":function(){define(["dojo/_base/lang","./common"],function(l,n){function k(e,d){e=e.toLowerCase();for(var b=d.length-
1;0<=b;--b)if(e===d[b])return!0;return!1}var q=l.getObject("dojox.charting.scaler.linear",!0),h=n.getNumericLabel,g=function(e,d,b,a,c,f,g){b=l.delegate(b);a||("major"==b.fixUpper&&(b.fixUpper="minor"),"major"==b.fixLower&&(b.fixLower="minor"));c||("minor"==b.fixUpper&&(b.fixUpper="micro"),"minor"==b.fixLower&&(b.fixLower="micro"));f||("micro"==b.fixUpper&&(b.fixUpper="none"),"micro"==b.fixLower&&(b.fixLower="none"));var h=k(b.fixLower,["major"])?Math.floor(b.min/a)*a:k(b.fixLower,["minor"])?Math.floor(b.min/
c)*c:k(b.fixLower,["micro"])?Math.floor(b.min/f)*f:b.min,n=k(b.fixUpper,["major"])?Math.ceil(b.max/a)*a:k(b.fixUpper,["minor"])?Math.ceil(b.max/c)*c:k(b.fixUpper,["micro"])?Math.ceil(b.max/f)*f:b.max;b.useMin&&(e=h);b.useMax&&(d=n);var r=!a||b.useMin&&k(b.fixLower,["major"])?e:Math.ceil(e/a)*a,u=!c||b.useMin&&k(b.fixLower,["major","minor"])?e:Math.ceil(e/c)*c,v=!f||b.useMin&&k(b.fixLower,["major","minor","micro"])?e:Math.ceil(e/f)*f,A=!a?0:(b.useMax&&k(b.fixUpper,["major"])?Math.round((d-r)/a):Math.floor((d-
r)/a))+1,y=!c?0:(b.useMax&&k(b.fixUpper,["major","minor"])?Math.round((d-u)/c):Math.floor((d-u)/c))+1;b=!f?0:(b.useMax&&k(b.fixUpper,["major","minor","micro"])?Math.round((d-v)/f):Math.floor((d-v)/f))+1;var w=c?Math.round(a/c):0,z=f?Math.round(c/f):0,x=a?Math.floor(Math.log(a)/Math.LN10):0,B=c?Math.floor(Math.log(c)/Math.LN10):0,D=g/(d-e);isFinite(D)||(D=1);return{bounds:{lower:h,upper:n,from:e,to:d,scale:D,span:g},major:{tick:a,start:r,count:A,prec:x},minor:{tick:c,start:u,count:y,prec:B},micro:{tick:f,
start:v,count:b,prec:0},minorPerMajor:w,microPerMinor:z,scaler:q}};return l.mixin(q,{buildScaler:function(e,d,b,a,c,f){var h={fixUpper:"none",fixLower:"none",natural:!1};a&&("fixUpper"in a&&(h.fixUpper=String(a.fixUpper)),"fixLower"in a&&(h.fixLower=String(a.fixLower)),"natural"in a&&(h.natural=Boolean(a.natural)));f=!f||3>f?3:f;"min"in a&&(e=a.min);"max"in a&&(d=a.max);a.includeZero&&(0<e&&(e=0),0>d&&(d=0));h.min=e;h.useMin=!0;h.max=d;h.useMax=!0;"from"in a&&(e=a.from,h.useMin=!1);"to"in a&&(d=a.to,
h.useMax=!1);if(d<=e)return g(e,d,h,0,0,0,b);c||(c=d-e);c=Math.floor(Math.log(c)/Math.LN10);c=a&&"majorTickStep"in a?a.majorTickStep:Math.pow(10,c);var k=0,l=0,n;if(a&&"minorTickStep"in a)k=a.minorTickStep;else{do{k=c/10;if(!h.natural||0.9<k)if(n=g(e,d,h,c,k,0,b),n.bounds.scale*n.minor.tick>f)break;k=c/5;if(!h.natural||0.9<k)if(n=g(e,d,h,c,k,0,b),n.bounds.scale*n.minor.tick>f)break;k=c/2;if(!h.natural||0.9<k)if(n=g(e,d,h,c,k,0,b),n.bounds.scale*n.minor.tick>f)break;return g(e,d,h,c,0,0,b)}while(0)
}if(a&&"microTickStep"in a)l=a.microTickStep,n=g(e,d,h,c,k,l,b);else{do{l=k/10;if(!h.natural||0.9<l)if(n=g(e,d,h,c,k,l,b),3<n.bounds.scale*n.micro.tick)break;l=k/5;if(!h.natural||0.9<l)if(n=g(e,d,h,c,k,l,b),3<n.bounds.scale*n.micro.tick)break;l=k/2;if(!h.natural||0.9<l)if(n=g(e,d,h,c,k,l,b),3<n.bounds.scale*n.micro.tick)break;l=0}while(0)}return l?n:g(e,d,h,c,k,0,b)},buildTicks:function(e,d){var b,a,c,f=e.major.start,g=e.minor.start,k=e.micro.start;if(d.microTicks&&e.micro.tick)b=e.micro.tick,a=k;
else if(d.minorTicks&&e.minor.tick)b=e.minor.tick,a=g;else if(e.major.tick)b=e.major.tick,a=f;else return null;var l=1/e.bounds.scale;if(e.bounds.to<=e.bounds.from||isNaN(l)||!isFinite(l)||0>=b||isNaN(b)||!isFinite(b))return null;for(var n=[],q=[],v=[];a<=e.bounds.to+l;)Math.abs(f-a)<b/2?(c={value:f},d.majorLabels&&(c.label=h(f,e.major.prec,d)),n.push(c),f+=e.major.tick,g+=e.minor.tick):Math.abs(g-a)<b/2?(d.minorTicks&&(c={value:g},d.minorLabels&&e.minMinorStep<=e.minor.tick*e.bounds.scale&&(c.label=
h(g,e.minor.prec,d)),q.push(c)),g+=e.minor.tick):d.microTicks&&v.push({value:k}),k+=e.micro.tick,a+=b;return{major:n,minor:q,micro:v}},getTransformerFromModel:function(e){var d=e.bounds.from,b=e.bounds.scale;return function(a){return(a-d)*b}},getTransformerFromPlot:function(e){var d=e.bounds.from,b=e.bounds.scale;return function(a){return a/b+d}}})})},"dojox/charting/scaler/common":function(){define(["dojo/_base/lang"],function(l){var n=function(h,g){return Math.abs(h-g)<=1E-6*(Math.abs(h)+Math.abs(g))},
k=l.getObject("dojox.charting.scaler.common",!0),q={};return l.mixin(k,{doIfLoaded:function(h,g,e){if(void 0==q[h])try{q[h]=require(h)}catch(d){q[h]=null}return q[h]?g(q[h]):e()},getNumericLabel:function(h,g,e){var d="";k.doIfLoaded("dojo/number",function(a){d=(e.fixed?a.format(h,{places:0>g?-g:0}):a.format(h))||""},function(){d=e.fixed?h.toFixed(0>g?-g:0):h.toString()});if(e.labelFunc){var b=e.labelFunc(d,h,g);if(b)return b}if(e.labels){for(var b=e.labels,a=0,c=b.length;a<c;){var f=Math.floor((a+
c)/2);b[f].value<h?a=f+1:c=f}if(a<b.length&&n(b[a].value,h))return b[a].text;--a;if(0<=a&&a<b.length&&n(b[a].value,h))return b[a].text;a+=2;if(a<b.length&&n(b[a].value,h))return b[a].text}return d}})})},"dojox/charting/plot2d/Default":function(){define("dojo/_base/lang dojo/_base/declare dojo/_base/array dojo/has ./CartesianBase ./_PlotEvents ./common dojox/lang/functional dojox/lang/functional/reversed dojox/lang/utils dojox/gfx/fx".split(" "),function(l,n,k,q,h,g,e,d,b,a,c){var f=b.lambda("item.purgeGroup()");
return n("dojox.charting.plot2d.Default",[h,g],{defaultParams:{lines:!0,areas:!1,markers:!1,tension:"",animate:!1,enableCache:!1,interpolate:!1},optionalParams:{stroke:{},outline:{},shadow:{},fill:{},filter:{},styleFunc:null,font:"",fontColor:"",marker:"",markerStroke:{},markerOutline:{},markerShadow:{},markerFill:{},markerFont:"",markerFontColor:""},constructor:function(b,c){this.opt=l.clone(l.mixin(this.opt,this.defaultParams));a.updateWithObject(this.opt,c);a.updateWithPattern(this.opt,c,this.optionalParams);
this.animate=this.opt.animate},createPath:function(a,b,c){var d;this.opt.enableCache&&0<a._pathFreePool.length?(d=a._pathFreePool.pop(),d.setShape(c),b.add(d)):d=b.createPath(c);this.opt.enableCache&&a._pathUsePool.push(d);return d},buildSegments:function(a,b){for(var c=this.series[a],d=b?Math.max(0,Math.floor(this._hScaler.bounds.from-1)):0,f=b?Math.min(c.data.length,Math.ceil(this._hScaler.bounds.to)):c.data.length,e=null,g=[];d<f;d++)if(null!=c.data[d]&&(b||null!=c.data[d].y))e||(e=[],g.push({index:d,
rseg:e})),e.push(b&&c.data[d].hasOwnProperty("y")?c.data[d].y:c.data[d]);else if(!this.opt.interpolate||b)e=null;return g},render:function(a,b){if(this.zoom&&!this.isDataDirty())return this.performZoom(a,b);this.resetEvents();this.dirty=this.isDirty();var g;this.dirty&&(k.forEach(this.series,f),this._eventSeries={},this.cleanGroup(),this.getGroup().setTransform(null),g=this.getGroup(),d.forEachRev(this.series,function(a){a.cleanGroup(g)}));for(var h=this.chart.theme,n,v,A=this.events(),y=this.series.length-
1;0<=y;--y){var w=this.series[y];if(!this.dirty&&!w.dirty)h.skip(),this._reconnectEvents(w.name);else if(w.cleanGroup(),this.opt.enableCache&&(w._pathFreePool=(w._pathFreePool?w._pathFreePool:[]).concat(w._pathUsePool?w._pathUsePool:[]),w._pathUsePool=[]),w.data.length){var z=h.next(this.opt.areas?"area":"line",[this.opt,w],!0),x,B=this._hScaler.scaler.getTransformerFromModel(this._hScaler),D=this._vScaler.scaler.getTransformerFromModel(this._vScaler),C=this._eventSeries[w.name]=Array(w.data.length);
g=w.group;if(w.hidden)this.opt.lines&&(w.dyn.stroke=z.series.stroke),this.opt.markers&&(w.dyn.markerFill=z.marker.fill,w.dyn.markerStroke=z.marker.stroke,w.dyn.marker=z.symbol),this.opt.areas&&(w.dyn.fill=z.series.fill);else{for(var F=k.some(w.data,function(a){return"number"==typeof a||a&&!a.hasOwnProperty("x")}),I=this.buildSegments(y,F),E=0;E<I.length;E++){var L=I[E];x=F?k.map(L.rseg,function(c,d){return{x:B(d+L.index+1)+b.l,y:a.height-b.b-D(c),data:c}},this):k.map(L.rseg,function(c){return{x:B(c.x)+
b.l,y:a.height-b.b-D(c.y),data:c}},this);if(F&&this.opt.interpolate)for(;E<I.length;)E++,(L=I[E])&&(x=x.concat(k.map(L.rseg,function(c,d){return{x:B(d+L.index+1)+b.l,y:a.height-b.b-D(c),data:c}},this)));var G=this.opt.tension?e.curve(x,this.opt.tension):"";if(this.opt.areas&&1<x.length){var K=this._plotFill(z.series.fill,a,b),J=l.clone(x);this.opt.tension?w.dyn.fill=g.createPath(G+" "+("L"+J[J.length-1].x+","+(a.height-b.b)+" L"+J[0].x+","+(a.height-b.b)+" L"+J[0].x+","+J[0].y)).setFill(K).getFill():
(J.push({x:x[x.length-1].x,y:a.height-b.b}),J.push({x:x[0].x,y:a.height-b.b}),J.push(x[0]),w.dyn.fill=g.createPolyline(J).setFill(K).getFill())}if(this.opt.lines||this.opt.markers)n=z.series.stroke,z.series.outline&&(v=w.dyn.outline=e.makeStroke(z.series.outline),v.width=2*v.width+n.width);this.opt.markers&&(w.dyn.marker=z.symbol);var H=null,M=null,N=null;if(n&&z.series.shadow&&1<x.length){var O=z.series.shadow,K=k.map(x,function(a){return{x:a.x+O.dx,y:a.y+O.dy}});this.opt.lines&&(w.dyn.shadow=this.opt.tension?
g.createPath(e.curve(K,this.opt.tension)).setStroke(O).getStroke():g.createPolyline(K).setStroke(O).getStroke());this.opt.markers&&z.marker.shadow&&(O=z.marker.shadow,N=k.map(K,function(a){return this.createPath(w,g,"M"+a.x+" "+a.y+" "+z.symbol).setStroke(O).setFill(O.color)},this))}if(this.opt.lines&&1<x.length){var P;v&&(w.dyn.outline=this.opt.tension?g.createPath(G).setStroke(v).getStroke():g.createPolyline(x).setStroke(v).getStroke());w.dyn.stroke=this.opt.tension?(P=g.createPath(G)).setStroke(n).getStroke():
(P=g.createPolyline(x)).setStroke(n).getStroke();P.setFilter&&z.series.filter&&P.setFilter(z.series.filter)}G=null;if(this.opt.markers){var Q=z,H=Array(x.length),M=Array(x.length);v=null;Q.marker.outline&&(v=e.makeStroke(Q.marker.outline),v.width=2*v.width+(Q.marker.stroke?Q.marker.stroke.width:0));k.forEach(x,function(a,b){if(this.opt.styleFunc||"number"!=typeof a.data){var c="number"!=typeof a.data?[a.data]:[];this.opt.styleFunc&&c.push(this.opt.styleFunc(a.data));Q=h.addMixin(z,"marker",c,!0)}else Q=
h.post(z,"marker");c="M"+a.x+" "+a.y+" "+Q.symbol;v&&(M[b]=this.createPath(w,g,c).setStroke(v));H[b]=this.createPath(w,g,c).setStroke(Q.marker.stroke).setFill(Q.marker.fill)},this);w.dyn.markerFill=Q.marker.fill;w.dyn.markerStroke=Q.marker.stroke;!G&&this.opt.labels&&(G=H[0].getBoundingBox());A?k.forEach(H,function(a,b){var c={element:"marker",index:b+L.index,run:w,shape:a,outline:M[b]||null,shadow:N&&N[b]||null,cx:x[b].x,cy:x[b].y};F?(c.x=b+L.index+1,c.y=w.data[b+L.index]):(c.x=L.rseg[b].x,c.y=w.data[b+
L.index].y);this._connectEvents(c);C[b+L.index]=c},this):delete this._eventSeries[w.name]}if(this.opt.labels){var W=G?G.width:2,X=G?G.height:2;k.forEach(x,function(a,b){if(this.opt.styleFunc||"number"!=typeof a.data){var c="number"!=typeof a.data?[a.data]:[];this.opt.styleFunc&&c.push(this.opt.styleFunc(a.data));Q=h.addMixin(z,"marker",c,!0)}else Q=h.post(z,"marker");this.createLabel(g,L.rseg[b],{x:a.x-W/2,y:a.y-X/2,width:W,height:X},Q)},this)}}w.dirty=!1}}else w.dirty=!1,h.skip()}q("dojo-bidi")&&
this._checkOrientation(this.group,a,b);this.animate&&(n=this.getGroup(),c.animateTransform(l.delegate({shape:n,duration:1200,transform:[{name:"translate",start:[0,a.height-b.b],end:[0,0]},{name:"scale",start:[1,0],end:[1,1]},{name:"original"}]},this.animate)).play());this.dirty=!1;return this}})})},"dojox/charting/plot2d/CartesianBase":function(){define("dojo/_base/lang dojo/_base/declare dojo/_base/connect dojo/has ./Base ../scaler/primitive dojox/gfx dojox/gfx/fx dojox/lang/utils".split(" "),function(l,
n,k,q,h,g,e,d,b){return n("dojox.charting.plot2d.CartesianBase",h,{baseParams:{hAxis:"x",vAxis:"y",labels:!1,labelOffset:10,fixed:!0,precision:1,labelStyle:"inside",htmlLabels:!0,omitLabels:!0,labelFunc:null},constructor:function(a,c){this.axes=["hAxis","vAxis"];this.zoom=null;this.zoomQueue=[];this.lastWindow={vscale:1,hscale:1,xoffset:0,yoffset:0};this.hAxis=c&&c.hAxis||"x";this.vAxis=c&&c.vAxis||"y";this.series=[];this.opt=l.clone(this.baseParams);b.updateWithObject(this.opt,c)},clear:function(){this.inherited(arguments);
this._vAxis=this._hAxis=null;return this},cleanGroup:function(a,b){this.inherited(arguments);if(!b&&this.chart._nativeClip){var d=this.chart.offsets,e=this.chart.dim,g=Math.max(0,e.width-d.l-d.r),e=Math.max(0,e.height-d.t-d.b);this.group.setClip({x:d.l,y:d.t,width:g,height:e});this._clippedGroup||(this._clippedGroup=this.group.createGroup())}},purgeGroup:function(){this.inherited(arguments);this._clippedGroup=null},getGroup:function(){return this._clippedGroup||this.group},setAxis:function(a){a&&
(this[a.vertical?"_vAxis":"_hAxis"]=a);return this},toPage:function(a){var b=this._hAxis,d=this._vAxis,e=b.getScaler(),g=d.getScaler(),h=e.scaler.getTransformerFromModel(e),k=g.scaler.getTransformerFromModel(g),l=this.chart.getCoords(),n=this.chart.offsets,q=this.chart.dim,e=function(a){var e={};e.x=h(a[b.name])+l.x+n.l;e.y=l.y+q.height-n.b-k(a[d.name]);return e};return a?e(a):e},toData:function(a){var b=this._hAxis,d=this._vAxis,e=b.getScaler(),g=d.getScaler(),h=e.scaler.getTransformerFromPlot(e),
k=g.scaler.getTransformerFromPlot(g),l=this.chart.getCoords(),n=this.chart.offsets,q=this.chart.dim,e=function(a){var e={};e[b.name]=h(a.x-l.x-n.l);e[d.name]=k(l.y+q.height-a.y-n.b);return e};return a?e(a):e},isDirty:function(){return this.dirty||this._hAxis&&this._hAxis.dirty||this._vAxis&&this._vAxis.dirty},createLabel:function(a,b,d,g){if(this.opt.labels){var h,k=this.opt.labelFunc?this.opt.labelFunc.apply(this,[b,this.opt.fixed,this.opt.precision]):this._getLabel(isNaN(b.y)?b:b.y);if("inside"==
this.opt.labelStyle){var l=e._base._getTextBox(k,{font:g.series.font});b=d.x+d.width/2;h=d.y+d.height/2+l.h/4;if(l.w>d.width||l.h>d.height)return}else b=d.x+d.width/2,h=d.y-this.opt.labelOffset;this.renderLabel(a,b,h,k,g,"inside"==this.opt.labelStyle)}},performZoom:function(a,b){var f=this._vAxis.scale||1,e=this._hAxis.scale||1,g=a.height-b.b,h=this._hScaler.bounds,h=(h.from-h.lower)*h.scale,n=this._vScaler.bounds,n=(n.from-n.lower)*n.scale,q=f/this.lastWindow.vscale,v=e/this.lastWindow.hscale,A=
(this.lastWindow.xoffset-h)/(1==this.lastWindow.hscale?e:this.lastWindow.hscale),y=(n-this.lastWindow.yoffset)/(1==this.lastWindow.vscale?f:this.lastWindow.vscale),w=this.getGroup(),g=d.animateTransform(l.delegate({shape:w,duration:1200,transform:[{name:"translate",start:[0,0],end:[b.l*(1-v),g*(1-q)]},{name:"scale",start:[1,1],end:[v,q]},{name:"original"},{name:"translate",start:[0,0],end:[A,y]}]},this.zoom));l.mixin(this.lastWindow,{vscale:f,hscale:e,xoffset:h,yoffset:n});this.zoomQueue.push(g);
k.connect(g,"onEnd",this,function(){this.zoom=null;this.zoomQueue.shift();0<this.zoomQueue.length&&this.zoomQueue[0].play()});1==this.zoomQueue.length&&this.zoomQueue[0].play();return this},initializeScalers:function(a,b){this._hAxis?(this._hAxis.initialized()||this._hAxis.calculate(b.hmin,b.hmax,a.width),this._hScaler=this._hAxis.getScaler()):this._hScaler=g.buildScaler(b.hmin,b.hmax,a.width);this._vAxis?(this._vAxis.initialized()||this._vAxis.calculate(b.vmin,b.vmax,a.height),this._vScaler=this._vAxis.getScaler()):
this._vScaler=g.buildScaler(b.vmin,b.vmax,a.height);return this}})})},"dojox/charting/plot2d/Base":function(){define("dojo/_base/declare dojo/_base/array dojox/gfx ../Element ./common ../axis2d/common dojo/has".split(" "),function(l,n,k,q,h,g,e){l=l("dojox.charting.plot2d.Base",q,{constructor:function(d,b){b&&b.tooltipFunc&&(this.tooltipFunc=b.tooltipFunc)},clear:function(){this.series=[];this.dirty=!0;return this},setAxis:function(d){return this},assignAxes:function(d){n.forEach(this.axes,function(b){this[b]&&
this.setAxis(d[this[b]])},this)},addSeries:function(d){this.series.push(d);return this},getSeriesStats:function(){return h.collectSimpleStats(this.series)},calculateAxes:function(d){this.initializeScalers(d,this.getSeriesStats());return this},initializeScalers:function(){return this},isDataDirty:function(){return n.some(this.series,function(d){return d.dirty})},render:function(d,b){return this},renderLabel:function(d,b,a,c,f,e,h){d=g.createText[this.opt.htmlLabels&&"vml"!=k.renderer?"html":"gfx"](this.chart,
d,b,a,h?h:"middle",c,f.series.font,f.series.fontColor);e&&(this.opt.htmlLabels&&"vml"!=k.renderer?d.style.pointerEvents="none":d.rawNode&&(d.rawNode.style.pointerEvents="none"));this.opt.htmlLabels&&"vml"!=k.renderer&&this.htmlElements.push(d);return d},getRequiredColors:function(){return this.series.length},_getLabel:function(d){return h.getLabel(d,this.opt.fixed,this.opt.precision)}});e("dojo-bidi")&&l.extend({_checkOrientation:function(d,b,a){this.chart.applyMirroring(this.group,b,a)}});return l})},
"dojox/charting/plot2d/common":function(){define("dojo/_base/lang dojo/_base/array dojo/_base/Color dojox/gfx dojox/lang/functional ../scaler/common".split(" "),function(l,n,k,q,h,g){var e=l.getObject("dojox.charting.plot2d.common",!0);return l.mixin(e,{doIfLoaded:g.doIfLoaded,makeStroke:function(d){if(!d)return d;if("string"==typeof d||d instanceof k)d={color:d};return q.makeParameters(q.defaultStroke,d)},augmentColor:function(d,b){var a=new k(d),c=new k(b);c.a=a.a;return c},augmentStroke:function(d,
b){var a=e.makeStroke(d);a&&(a.color=e.augmentColor(a.color,b));return a},augmentFill:function(d,b){new k(b);return"string"==typeof d||d instanceof k?e.augmentColor(d,b):d},defaultStats:{vmin:Number.POSITIVE_INFINITY,vmax:Number.NEGATIVE_INFINITY,hmin:Number.POSITIVE_INFINITY,hmax:Number.NEGATIVE_INFINITY},collectSimpleStats:function(d){for(var b=l.delegate(e.defaultStats),a=0;a<d.length;++a)for(var c=d[a],f=0;f<c.data.length;f++)if(null!==c.data[f]){if("number"==typeof c.data[f]){var f=b.vmin,g=
b.vmax;n.forEach(c.data,function(a,c){if(null!==a){var d=c+1,f=a;isNaN(f)&&(f=0);b.hmin=Math.min(b.hmin,d);b.hmax=Math.max(b.hmax,d);b.vmin=Math.min(b.vmin,f);b.vmax=Math.max(b.vmax,f)}})}else{var h=b.hmin,k=b.hmax,f=b.vmin,g=b.vmax;(!("xmin"in c)||!("xmax"in c)||!("ymin"in c)||!("ymax"in c))&&n.forEach(c.data,function(a,c){if(null!==a){var d="x"in a?a.x:c+1,f=a.y;isNaN(d)&&(d=0);isNaN(f)&&(f=0);b.hmin=Math.min(b.hmin,d);b.hmax=Math.max(b.hmax,d);b.vmin=Math.min(b.vmin,f);b.vmax=Math.max(b.vmax,f)}});
"xmin"in c&&(b.hmin=Math.min(h,c.xmin));"xmax"in c&&(b.hmax=Math.max(k,c.xmax))}"ymin"in c&&(b.vmin=Math.min(f,c.ymin));"ymax"in c&&(b.vmax=Math.max(g,c.ymax));break}return b},calculateBarSize:function(d,b,a){a||(a=1);var c=b.gap,c=(d-2*c)/a;"minBarSize"in b&&(c=Math.max(c,b.minBarSize));"maxBarSize"in b&&(c=Math.min(c,b.maxBarSize));c=Math.max(c,1);return{size:c,gap:(d-c*a)/2}},collectStackedStats:function(d){var b=l.clone(e.defaultStats);if(d.length){b.hmin=Math.min(b.hmin,1);b.hmax=h.foldl(d,"seed, run -\x3e Math.max(seed, run.data.length)",
b.hmax);for(var a=0;a<b.hmax;++a){var c=d[0].data[a],c=c&&("number"==typeof c?c:c.y);isNaN(c)&&(c=0);b.vmin=Math.min(b.vmin,c);for(var f=1;f<d.length;++f){var g=d[f].data[a],g=g&&("number"==typeof g?g:g.y);isNaN(g)&&(g=0);c+=g}b.vmax=Math.max(b.vmax,c)}}return b},curve:function(d,b){var a=d.slice(0);"x"==b&&(a[a.length]=a[0]);return n.map(a,function(c,d){if(0==d)return"M"+c.x+","+c.y;if(isNaN(b)){if("X"==b||"x"==b||"S"==b){var e,g=a[d-1],h=a[d],k,l,n,q=1/6;1==d?(e="x"==b?a[a.length-2]:g,q=1/3):e=
a[d-2];d==a.length-1?(k="x"==b?a[1]:h,q=1/3):k=a[d+1];l=Math.sqrt((h.x-g.x)*(h.x-g.x)+(h.y-g.y)*(h.y-g.y));n=Math.sqrt((h.x-e.x)*(h.x-e.x)+(h.y-e.y)*(h.y-e.y));var y=Math.sqrt((k.x-g.x)*(k.x-g.x)+(k.y-g.y)*(k.y-g.y)),w=n*q,q=y*q;w>l/2&&q>l/2?(w=l/2,q=l/2):w>l/2?(w=l/2,q=l/2*y/n):q>l/2&&(q=l/2,w=l/2*n/y);"S"==b&&(e==g&&(w=0),h==k&&(q=0));l=g.x+w*(h.x-e.x)/n;e=g.y+w*(h.y-e.y)/n;n=h.x-q*(k.x-g.x)/y;g=h.y-q*(k.y-g.y)/y}}else return h=c.x-a[d-1].x,"C"+(c.x-(b-1)*(h/b))+","+a[d-1].y+" "+(c.x-h/b)+","+c.y+
" "+c.x+","+c.y;return"C"+(l+","+e+" "+n+","+g+" "+h.x+","+h.y)}).join(" ")},getLabel:function(d,b,a){return g.doIfLoaded("dojo/number",function(c){return(b?c.format(d,{places:a}):c.format(d))||""},function(){return b?d.toFixed(a):d.toString()})}})})},"dojox/charting/scaler/primitive":function(){define(["dojo/_base/lang"],function(l){var n=l.getObject("dojox.charting.scaler.primitive",!0);return l.mixin(n,{buildScaler:function(k,l,h,g){k==l&&(k-=0.5,l+=0.5);return{bounds:{lower:k,upper:l,from:k,to:l,
scale:h/(l-k),span:h},scaler:n}},buildTicks:function(k,l){return{major:[],minor:[],micro:[]}},getTransformerFromModel:function(k){var l=k.bounds.from,h=k.bounds.scale;return function(g){return(g-l)*h}},getTransformerFromPlot:function(k){var l=k.bounds.from,h=k.bounds.scale;return function(g){return g/h+l}}})})},"dojox/gfx/fx":function(){define("dojo/_base/lang ./_base ./matrix dojo/_base/Color dojo/_base/array dojo/_base/fx dojo/_base/connect dojo/sniff".split(" "),function(l,n,k,q,h,g,e,d){function b(a,
b){this.start=a;this.end=b}function a(a,b,c){this.start=a;this.end=b;this.units=c}function c(a,b){this.start=a;this.end=b;this.temp=new q}function f(a){this.values=a;this.length=a.length}function m(a,b){this.values=a;this.def=b?b:{}}function s(a,b){this.stack=a;this.original=b}function t(a,b,d,e){if(a.values)return new f(a.values);var g,h;h=a.start?n.normalizeColor(a.start):g=b?d?b[d]:b:e;a.end?a=n.normalizeColor(a.end):(g||(g=b?d?b[d]:b:e),a=g);return new c(h,a)}var r=n.fx={};b.prototype.getValue=
function(a){return(this.end-this.start)*a+this.start};a.prototype.getValue=function(a){return(this.end-this.start)*a+this.start+this.units};c.prototype.getValue=function(a){return q.blendColors(this.start,this.end,a,this.temp)};f.prototype.getValue=function(a){return this.values[Math.min(Math.floor(a*this.length),this.length-1)]};m.prototype.getValue=function(a){var b=l.clone(this.def),c;for(c in this.values)b[c]=this.values[c].getValue(a);return b};s.prototype.getValue=function(a){var b=[];h.forEach(this.stack,
function(c){if(c instanceof k.Matrix2D)b.push(c);else if("original"==c.name&&this.original)b.push(this.original);else if("matrix"==c.name){if(c.start instanceof k.Matrix2D&&c.end instanceof k.Matrix2D){var d=new k.Matrix2D,f;for(f in c.start)d[f]=(c.end[f]-c.start[f])*a+c.start[f];b.push(d)}}else c.name in k&&(d=k[c.name],"function"!=typeof d?b.push(d):(f=h.map(c.start,function(b,d){return(c.end[d]-b)*a+b}),d=d.apply(k,f),d instanceof k.Matrix2D&&b.push(d)))},this);return b};var u=new q(0,0,0,0);
r.animateStroke=function(a){a.easing||(a.easing=g._defaultEasing);var c=new g.Animation(a),d=a.shape,h;e.connect(c,"beforeBegin",c,function(){h=d.getStroke();var c=a.color,e={},g;c&&(e.color=t(c,h,"color",u));if((c=a.style)&&c.values)e.style=new f(c.values);if(c=a.width){var k=c;k.values?g=new f(k.values):(c=k.start?k.start:g=h?h.width:1,k.end?g=k.end:"number"!=typeof g&&(g=h?h.width:1),g=new b(c,g));e.width=g}if((c=a.cap)&&c.values)e.cap=new f(c.values);if(c=a.join)c.values?e.join=new f(c.values):
(g=c.start?c.start:h&&h.join||0,c=c.end?c.end:h&&h.join||0,"number"==typeof g&&"number"==typeof c&&(e.join=new b(g,c)));this.curve=new m(e,h)});e.connect(c,"onAnimate",d,"setStroke");return c};r.animateFill=function(a){a.easing||(a.easing=g._defaultEasing);var b=new g.Animation(a),c=a.shape,d;e.connect(b,"beforeBegin",b,function(){d=c.getFill();var b=a.color;b&&(this.curve=t(b,d,"",u))});e.connect(b,"onAnimate",c,"setFill");return b};r.animateFont=function(b){b.easing||(b.easing=g._defaultEasing);
var c=new g.Animation(b),d=b.shape,h;e.connect(c,"beforeBegin",c,function(){h=d.getFont();var c=b.style,e={},g,k;c&&c.values&&(e.style=new f(c.values));if((c=b.variant)&&c.values)e.variant=new f(c.values);if((c=b.weight)&&c.values)e.weight=new f(c.values);if((c=b.family)&&c.values)e.family=new f(c.values);if((c=b.size)&&c.units)g=parseFloat(c.start?c.start:d.font&&d.font.size||"0"),k=parseFloat(c.end?c.end:d.font&&d.font.size||"0"),e.size=new a(g,k,c.units);this.curve=new m(e,h)});e.connect(c,"onAnimate",
d,"setFont");return c};r.animateTransform=function(a){a.easing||(a.easing=g._defaultEasing);var b=new g.Animation(a),c=a.shape,f;e.connect(b,"beforeBegin",b,function(){f=c.getTransform();this.curve=new s(a.transform,f)});e.connect(b,"onAnimate",c,"setTransform");if("svg"===n.renderer&&10<=d("ie"))var m=[e.connect(b,"onBegin",b,function(){for(var a=c.getParent();a&&a.getParent;)a=a.getParent();a&&(c.__svgContainer=a.rawNode.parentNode)}),e.connect(b,"onAnimate",b,function(){try{if(c.__svgContainer){var a=
c.__svgContainer.style.visibility;c.__svgContainer.style.visibility="visible";c.__svgContainer.style.visibility=a}}catch(b){}}),e.connect(b,"onEnd",b,function(){h.forEach(m,e.disconnect);if(c.__svgContainer){var a=c.__svgContainer.style.visibility,b=c.__svgContainer;c.__svgContainer.style.visibility="visible";setTimeout(function(){try{b.style.visibility=a,b=null}catch(c){}},100)}delete c.__svgContainer})];return b};return r})},"dojox/charting/plot2d/_PlotEvents":function(){define(["dojo/_base/lang",
"dojo/_base/array","dojo/_base/declare","dojo/_base/connect"],function(l,n,k,q){return k("dojox.charting.plot2d._PlotEvents",null,{constructor:function(){this._shapeEvents=[];this._eventSeries={}},destroy:function(){this.resetEvents();this.inherited(arguments)},plotEvent:function(h){},raiseEvent:function(h){this.plotEvent(h);var g=l.delegate(h);g.originalEvent=h.type;g.originalPlot=h.plot;g.type="onindirect";n.forEach(this.chart.stack,function(e){e!==this&&e.plotEvent&&(g.plot=e,e.plotEvent(g))},
this)},connect:function(h,g){this.dirty=!0;return q.connect(this,"plotEvent",h,g)},events:function(){return!!this.plotEvent.after},resetEvents:function(){this._shapeEvents.length&&(n.forEach(this._shapeEvents,function(h){h.shape.disconnect(h.handle)}),this._shapeEvents=[]);this.raiseEvent({type:"onplotreset",plot:this})},_connectSingleEvent:function(h,g){this._shapeEvents.push({shape:h.eventMask,handle:h.eventMask.connect(g,this,function(e){h.type=g;h.event=e;this.raiseEvent(h);h.event=null})})},
_connectEvents:function(h){h&&(h.chart=this.chart,h.plot=this,h.hAxis=this.hAxis||null,h.vAxis=this.vAxis||null,h.eventMask=h.eventMask||h.shape,this._connectSingleEvent(h,"onmouseover"),this._connectSingleEvent(h,"onmouseout"),this._connectSingleEvent(h,"onclick"))},_reconnectEvents:function(h){(h=this._eventSeries[h])&&n.forEach(h,this._connectEvents,this)},fireEvent:function(h,g,e,d){if((h=this._eventSeries[h])&&h.length&&e<h.length)e=h[e],e.type=g,e.event=d||null,this.raiseEvent(e),e.event=null}})})},
"dojox/charting/plot2d/Lines":function(){define(["dojo/_base/declare","./Default"],function(l,n){return l("dojox.charting.plot2d.Lines",n,{constructor:function(){this.opt.lines=!0}})})},"dojox/charting/plot2d/Areas":function(){define(["dojo/_base/declare","./Default"],function(l,n){return l("dojox.charting.plot2d.Areas",n,{constructor:function(){this.opt.lines=!0;this.opt.areas=!0}})})},"dojox/charting/plot2d/Markers":function(){define(["dojo/_base/declare","./Default"],function(l,n){return l("dojox.charting.plot2d.Markers",
n,{constructor:function(){this.opt.markers=!0}})})},"dojox/charting/plot2d/MarkersOnly":function(){define(["dojo/_base/declare","./Default"],function(l,n){return l("dojox.charting.plot2d.MarkersOnly",n,{constructor:function(){this.opt.lines=!1;this.opt.markers=!0}})})},"dojox/charting/plot2d/Scatter":function(){define("dojo/_base/lang dojo/_base/array dojo/_base/declare dojo/has ./CartesianBase ./_PlotEvents ./common dojox/lang/functional dojox/lang/functional/reversed dojox/lang/utils dojox/gfx/fx dojox/gfx/gradutils".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f){var m=b.lambda("item.purgeGroup()");return k("dojox.charting.plot2d.Scatter",[h,g],{defaultParams:{shadows:null,animate:null},optionalParams:{markerStroke:{},markerOutline:{},markerShadow:{},markerFill:{},markerFont:"",markerFontColor:"",styleFunc:null},constructor:function(b,c){this.opt=l.clone(l.mixin(this.opt,this.defaultParams));a.updateWithObject(this.opt,c);a.updateWithPattern(this.opt,c,this.optionalParams);this.animate=this.opt.animate},render:function(a,
b){if(this.zoom&&!this.isDataDirty())return this.performZoom(a,b);this.resetEvents();this.dirty=this.isDirty();var c;this.dirty&&(n.forEach(this.series,m),this._eventSeries={},this.cleanGroup(),c=this.getGroup(),d.forEachRev(this.series,function(a){a.cleanGroup(c)}));for(var g=this.chart.theme,h=this.events(),k=this.series.length-1;0<=k;--k){var l=this.series[k];if(!this.dirty&&!l.dirty)g.skip(),this._reconnectEvents(l.name);else if(l.cleanGroup(),l.data.length){var w=g.next("marker",[this.opt,l]),
z,x=this._hScaler.scaler.getTransformerFromModel(this._hScaler),B=this._vScaler.scaler.getTransformerFromModel(this._vScaler);if(l.hidden)l.dyn.marker=w.symbol,l.dyn.markerFill=w.marker.fill,l.dyn.markerStroke=w.marker.stroke;else{c=l.group;z="number"==typeof l.data[0]?n.map(l.data,function(c,d){return{x:x(d+1)+b.l,y:a.height-b.b-B(c)}},this):n.map(l.data,function(c,d){return{x:x(c.x)+b.l,y:a.height-b.b-B(c.y)}},this);var D=Array(z.length),C=Array(z.length),F=Array(z.length);n.forEach(z,function(d,
h){var m=l.data[h],k;this.opt.styleFunc||"number"!=typeof m?(k="number"!=typeof m?[m]:[],this.opt.styleFunc&&k.push(this.opt.styleFunc(m)),k=g.addMixin(w,"marker",k,!0)):k=g.post(w,"marker");var n="M"+d.x+" "+d.y+" "+k.symbol;k.marker.shadow&&(D[h]=c.createPath("M"+(d.x+k.marker.shadow.dx)+" "+(d.y+k.marker.shadow.dy)+" "+k.symbol).setStroke(k.marker.shadow).setFill(k.marker.shadow.color),this.animate&&this._animateScatter(D[h],a.height-b.b));if(k.marker.outline){var q=e.makeStroke(k.marker.outline);
q.width=2*q.width+k.marker.stroke.width;F[h]=c.createPath(n).setStroke(q);this.animate&&this._animateScatter(F[h],a.height-b.b)}var q=e.makeStroke(k.marker.stroke),v=this._plotFill(k.marker.fill,a,b);if(v&&("linear"===v.type||"radial"==v.type))v=f.getColor(v,{x:d.x,y:d.y}),q&&(q.color=v);C[h]=c.createPath(n).setStroke(q).setFill(v);this.opt.labels&&(n=C[h].getBoundingBox(),this.createLabel(c,m,n,k));this.animate&&this._animateScatter(C[h],a.height-b.b)},this);C.length&&(l.dyn.marker=w.symbol,l.dyn.markerStroke=
C[C.length-1].getStroke(),l.dyn.markerFill=C[C.length-1].getFill());if(h){var I=Array(C.length);n.forEach(C,function(a,b){var c={element:"marker",index:b,run:l,shape:a,outline:F&&F[b]||null,shadow:D&&D[b]||null,cx:z[b].x,cy:z[b].y};"number"==typeof l.data[0]?(c.x=b+1,c.y=l.data[b]):(c.x=l.data[b].x,c.y=l.data[b].y);this._connectEvents(c);I[b]=c},this);this._eventSeries[l.name]=I}else delete this._eventSeries[l.name];l.dirty=!1}}else l.dirty=!1,g.skip()}this.dirty=!1;q("dojo-bidi")&&this._checkOrientation(this.group,
a,b);return this},_animateScatter:function(a,b){c.animateTransform(l.delegate({shape:a,duration:1200,transform:[{name:"translate",start:[0,b],end:[0,0]},{name:"scale",start:[0,0],end:[1,1]},{name:"original"}]},this.animate)).play()}})})},"dojox/charting/plot2d/Stacked":function(){define(["dojo/_base/declare","./Default","./commonStacked"],function(l,n,k){return l("dojox.charting.plot2d.Stacked",n,{getSeriesStats:function(){return k.collectStats(this.series)},buildSegments:function(l,h){for(var g=
this.series[l],e=h?Math.max(0,Math.floor(this._hScaler.bounds.from-1)):0,d=h?Math.min(g.data.length-1,Math.ceil(this._hScaler.bounds.to)):g.data.length-1,b=null,a=[];e<=d;e++){var c=h?k.getIndexValue(this.series,l,e):k.getValue(this.series,l,g.data[e]?g.data[e].x:null);if(null!=c[0]&&(h||null!=c[0].y))b||(b=[],a.push({index:e,rseg:b})),b.push(c[0]);else if(!this.opt.interpolate||h)b=null}return a}})})},"dojox/charting/plot2d/commonStacked":function(){define(["dojo/_base/lang","./common"],function(l,
n){var k=l.getObject("dojox.charting.plot2d.commonStacked",!0);return l.mixin(k,{collectStats:function(q){for(var h=l.delegate(n.defaultStats),g=0;g<q.length;++g)for(var e=q[g],d=0;d<e.data.length;d++){var b,a;null!==e.data[d]&&("number"==typeof e.data[d]||!e.data[d].hasOwnProperty("x")?(a=k.getIndexValue(q,g,d)[0],b=d+1):(b=e.data[d].x,null!==b&&(a=k.getValue(q,g,b)[0],a=null!=a&&a.y?a.y:null)),h.hmin=Math.min(h.hmin,b),h.hmax=Math.max(h.hmax,b),h.vmin=Math.min(h.vmin,a),h.vmax=Math.max(h.vmax,a))}return h},
getIndexValue:function(k,h,g){var e=0,d,b,a;for(b=0;b<=h;++b)k[b].hidden||(a=e,d=k[b].data[g],null!=d&&(isNaN(d)&&(d=d.y||0),e+=d));return[e,a]},getValue:function(k,h,g){var e=null,d,b,a,c;for(d=0;d<=h;++d)if(!k[d].hidden)for(b=0;b<k[d].data.length;b++)if(c=e,a=k[d].data[b],null!==a)if(a.x==g){e||(e={x:g});null!=a.y&&(null==e.y&&(e.y=0),e.y+=a.y);break}else if(a.x>g)break;return[e,c]}})})},"dojox/charting/plot2d/StackedLines":function(){define(["dojo/_base/declare","./Stacked"],function(l,n){return l("dojox.charting.plot2d.StackedLines",
n,{constructor:function(){this.opt.lines=!0}})})},"dojox/charting/plot2d/StackedAreas":function(){define(["dojo/_base/declare","./Stacked"],function(l,n){return l("dojox.charting.plot2d.StackedAreas",n,{constructor:function(){this.opt.lines=!0;this.opt.areas=!0}})})},"dojox/charting/plot2d/Columns":function(){define("dojo/_base/lang dojo/_base/array dojo/_base/declare dojo/has ./CartesianBase ./_PlotEvents ./common dojox/lang/functional dojox/lang/functional/reversed dojox/lang/utils dojox/gfx/fx".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c){var f=b.lambda("item.purgeGroup()");return k("dojox.charting.plot2d.Columns",[h,g],{defaultParams:{gap:0,animate:null,enableCache:!1},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},filter:{},styleFunc:null,font:"",fontColor:""},constructor:function(b,c){this.opt=l.clone(l.mixin(this.opt,this.defaultParams));a.updateWithObject(this.opt,c);a.updateWithPattern(this.opt,c,this.optionalParams);this.animate=this.opt.animate;this.renderingOptions=
{"shape-rendering":"crispEdges"}},getSeriesStats:function(){var a=e.collectSimpleStats(this.series);a.hmin-=0.5;a.hmax+=0.5;return a},createRect:function(a,b,c){var d;this.opt.enableCache&&0<a._rectFreePool.length?(d=a._rectFreePool.pop(),d.setShape(c),b.add(d)):d=b.createRect(c);this.opt.enableCache&&a._rectUsePool.push(d);return d},render:function(a,b){if(this.zoom&&!this.isDataDirty())return this.performZoom(a,b);this.resetEvents();this.dirty=this.isDirty();var c;this.dirty&&(n.forEach(this.series,
f),this._eventSeries={},this.cleanGroup(),c=this.getGroup(),d.forEachRev(this.series,function(a){a.cleanGroup(c)}));var e=this.chart.theme,g=this._hScaler.scaler.getTransformerFromModel(this._hScaler),h=this._vScaler.scaler.getTransformerFromModel(this._vScaler),k=Math.max(0,this._vScaler.bounds.lower),y=h(k),w=this.events(),z=this.getBarProperties(),x=this.series.length;n.forEach(this.series,function(a){a.hidden&&x--});for(var B=this.series.length-1;0<=B;--B){var D=this.series[B];if(!this.dirty&&
!D.dirty)e.skip(),this._reconnectEvents(D.name);else{D.cleanGroup();this.opt.enableCache&&(D._rectFreePool=(D._rectFreePool?D._rectFreePool:[]).concat(D._rectUsePool?D._rectUsePool:[]),D._rectUsePool=[]);var C=e.next("column",[this.opt,D]),F=Array(D.data.length);if(D.hidden)D.dyn.fill=C.series.fill;else{x--;c=D.group;for(var I=n.some(D.data,function(a){return"number"==typeof a||a&&!a.hasOwnProperty("x")}),E=I?Math.max(0,Math.floor(this._hScaler.bounds.from-1)):0,L=I?Math.min(D.data.length,Math.ceil(this._hScaler.bounds.to)):
D.data.length;E<L;++E){var G=D.data[E];if(null!=G){var K=this.getValue(G,E,B,I),J=h(K.y),H=Math.abs(J-y),M,N;this.opt.styleFunc||"number"!=typeof G?(M="number"!=typeof G?[G]:[],this.opt.styleFunc&&M.push(this.opt.styleFunc(G)),M=e.addMixin(C,"column",M,!0)):M=e.post(C,"column");if(1<=z.width&&0<=H){var O={x:b.l+g(K.x+0.5)+z.gap+z.thickness*x,y:a.height-b.b-(K.y>k?J:y),width:z.width,height:H};M.series.shadow&&(N=l.clone(O),N.x+=M.series.shadow.dx,N.y+=M.series.shadow.dy,N=this.createRect(D,c,N).setFill(M.series.shadow.color).setStroke(M.series.shadow),
this.animate&&this._animateColumn(N,a.height-b.b+y,H));var P=this._plotFill(M.series.fill,a,b),P=this._shapeFill(P,O),P=this.createRect(D,c,O).setFill(P).setStroke(M.series.stroke);P.setFilter&&M.series.filter&&P.setFilter(M.series.filter);D.dyn.fill=P.getFill();D.dyn.stroke=P.getStroke();if(w){var Q={element:"column",index:E,run:D,shape:P,shadow:N,cx:K.x+0.5,cy:K.y,x:I?E:D.data[E].x,y:I?D.data[E]:D.data[E].y};this._connectEvents(Q);F[E]=Q}!isNaN(K.py)&&K.py>k&&(O.height=J-h(K.py));this.createLabel(c,
G,O,M);this.animate&&this._animateColumn(P,a.height-b.b-y,H)}}}this._eventSeries[D.name]=F;D.dirty=!1}}}this.dirty=!1;q("dojo-bidi")&&this._checkOrientation(this.group,a,b);return this},getValue:function(a,b,c,d){d?(c="number"==typeof a?a:a.y,a=b):(c=a.y,a=a.x-1);return{x:a,y:c}},getBarProperties:function(){var a=e.calculateBarSize(this._hScaler.bounds.scale,this.opt);return{gap:a.gap,width:a.size,thickness:0}},_animateColumn:function(a,b,d){0==d&&(d=1);c.animateTransform(l.delegate({shape:a,duration:1200,
transform:[{name:"translate",start:[0,b-b/d],end:[0,0]},{name:"scale",start:[1,1/d],end:[1,1]},{name:"original"}]},this.animate)).play()}})})},"dojox/charting/plot2d/StackedColumns":function(){define(["dojo/_base/declare","./Columns","./commonStacked"],function(l,n,k){return l("dojox.charting.plot2d.StackedColumns",n,{getSeriesStats:function(){var l=k.collectStats(this.series);l.hmin-=0.5;l.hmax+=0.5;return l},getValue:function(l,h,g,e){e?l=k.getIndexValue(this.series,g,h):(h=l.x-1,l=k.getValue(this.series,
g,l.x),l=[l[0]?l[0].y:null,l[1]?l[1]:null]);return{x:h,y:l[0],py:l[1]}}})})},"dojox/charting/plot2d/ClusteredColumns":function(){define(["dojo/_base/declare","dojo/_base/array","./Columns","./common"],function(l,n,k,q){return l("dojox.charting.plot2d.ClusteredColumns",k,{getBarProperties:function(){var h=this.series.length;n.forEach(this.series,function(e){e.hidden&&h--});var g=q.calculateBarSize(this._hScaler.bounds.scale,this.opt,h);return{gap:g.gap,width:g.size,thickness:g.size,clusterSize:h}}})})},
"dojox/charting/plot2d/Bars":function(){define("dojo/_base/lang dojo/_base/array dojo/_base/declare dojo/has ./CartesianBase ./_PlotEvents ./common dojox/gfx/fx dojox/lang/utils dojox/lang/functional dojox/lang/functional/reversed".split(" "),function(l,n,k,q,h,g,e,d,b,a,c){var f=c.lambda("item.purgeGroup()");return k("dojox.charting.plot2d.Bars",[h,g],{defaultParams:{gap:0,animate:null,enableCache:!1},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},filter:{},styleFunc:null,
font:"",fontColor:""},constructor:function(a,c){this.opt=l.clone(l.mixin(this.opt,this.defaultParams));b.updateWithObject(this.opt,c);b.updateWithPattern(this.opt,c,this.optionalParams);this.animate=this.opt.animate;this.renderingOptions={"shape-rendering":"crispEdges"}},getSeriesStats:function(){var a=e.collectSimpleStats(this.series),b;a.hmin-=0.5;a.hmax+=0.5;b=a.hmin;a.hmin=a.vmin;a.vmin=b;b=a.hmax;a.hmax=a.vmax;a.vmax=b;return a},createRect:function(a,b,c){var d;this.opt.enableCache&&0<a._rectFreePool.length?
(d=a._rectFreePool.pop(),d.setShape(c),b.add(d)):d=b.createRect(c);this.opt.enableCache&&a._rectUsePool.push(d);return d},createLabel:function(a,b,c,d){this.opt.labels&&"outside"==this.opt.labelStyle?this.renderLabel(a,c.x+c.width+this.opt.labelOffset,c.y+c.height/2,this._getLabel(isNaN(b.y)?b:b.y),d,"start"):this.inherited(arguments)},render:function(b,c){if(this.zoom&&!this.isDataDirty())return this.performZoom(b,c);this.dirty=this.isDirty();this.resetEvents();var d;this.dirty&&(n.forEach(this.series,
f),this._eventSeries={},this.cleanGroup(),d=this.getGroup(),a.forEachRev(this.series,function(a){a.cleanGroup(d)}));var e=this.chart.theme,g=this._hScaler.scaler.getTransformerFromModel(this._hScaler),h=this._vScaler.scaler.getTransformerFromModel(this._vScaler),k=Math.max(0,this._hScaler.bounds.lower),y=g(k),w=this.events(),z=this.getBarProperties(),x=this.series.length;n.forEach(this.series,function(a){a.hidden&&x--});for(var B=x,D=this.series.length-1;0<=D;--D){var C=this.series[D];if(!this.dirty&&
!C.dirty)e.skip(),this._reconnectEvents(C.name);else{C.cleanGroup();this.opt.enableCache&&(C._rectFreePool=(C._rectFreePool?C._rectFreePool:[]).concat(C._rectUsePool?C._rectUsePool:[]),C._rectUsePool=[]);var F=e.next("bar",[this.opt,C]);if(C.hidden)C.dyn.fill=F.series.fill,C.dyn.stroke=F.series.stroke;else{B--;var I=Array(C.data.length);d=C.group;for(var E=n.some(C.data,function(a){return"number"==typeof a||a&&!a.hasOwnProperty("x")}),L=E?Math.max(0,Math.floor(this._vScaler.bounds.from-1)):0,G=E?
Math.min(C.data.length,Math.ceil(this._vScaler.bounds.to)):C.data.length;L<G;++L){var K=C.data[L];if(null!=K){var J=this.getValue(K,L,D,E),H=g(J.y),M=Math.abs(H-y),N,O;this.opt.styleFunc||"number"!=typeof K?(N="number"!=typeof K?[K]:[],this.opt.styleFunc&&N.push(this.opt.styleFunc(K)),N=e.addMixin(F,"bar",N,!0)):N=e.post(F,"bar");if(0<=M&&1<=z.height){H={x:c.l+(J.y<k?H:y),y:b.height-c.b-h(J.x+1.5)+z.gap+z.thickness*(x-B-1),width:M,height:z.height};N.series.shadow&&(O=l.clone(H),O.x+=N.series.shadow.dx,
O.y+=N.series.shadow.dy,O=this.createRect(C,d,O).setFill(N.series.shadow.color).setStroke(N.series.shadow),this.animate&&this._animateBar(O,c.l+y,-M));var P=this._plotFill(N.series.fill,b,c),P=this._shapeFill(P,H),P=this.createRect(C,d,H).setFill(P).setStroke(N.series.stroke);P.setFilter&&N.series.filter&&P.setFilter(N.series.filter);C.dyn.fill=P.getFill();C.dyn.stroke=P.getStroke();if(w){var Q={element:"bar",index:L,run:C,shape:P,shadow:O,cx:J.y,cy:J.x+1.5,x:E?L:C.data[L].x,y:E?C.data[L]:C.data[L].y};
this._connectEvents(Q);I[L]=Q}!isNaN(J.py)&&J.py>k&&(H.x+=g(J.py),H.width-=g(J.py));this.createLabel(d,K,H,N);this.animate&&this._animateBar(P,c.l+y,-M)}}}this._eventSeries[C.name]=I;C.dirty=!1}}}this.dirty=!1;q("dojo-bidi")&&this._checkOrientation(this.group,b,c);return this},getValue:function(a,b,c,d){d?(c="number"==typeof a?a:a.y,a=b):(c=a.y,a=a.x-1);return{y:c,x:a}},getBarProperties:function(){var a=e.calculateBarSize(this._vScaler.bounds.scale,this.opt);return{gap:a.gap,height:a.size,thickness:0}},
_animateBar:function(a,b,c){0==c&&(c=1);d.animateTransform(l.delegate({shape:a,duration:1200,transform:[{name:"translate",start:[b-b/c,0],end:[0,0]},{name:"scale",start:[1/c,1],end:[1,1]},{name:"original"}]},this.animate)).play()}})})},"dojox/charting/plot2d/StackedBars":function(){define(["dojo/_base/declare","./Bars","./commonStacked"],function(l,n,k){return l("dojox.charting.plot2d.StackedBars",n,{getSeriesStats:function(){var l=k.collectStats(this.series),h;l.hmin-=0.5;l.hmax+=0.5;h=l.hmin;l.hmin=
l.vmin;l.vmin=h;h=l.hmax;l.hmax=l.vmax;l.vmax=h;return l},getValue:function(l,h,g,e){e?l=k.getIndexValue(this.series,g,h):(h=l.x-1,l=k.getValue(this.series,g,l.x),l=[l[0]?l[0].y:null,l[1]?l[1]:null]);return{x:h,y:l[0],py:l[1]}}})})},"dojox/charting/plot2d/ClusteredBars":function(){define(["dojo/_base/declare","dojo/_base/array","./Bars","./common"],function(l,n,k,q){return l("dojox.charting.plot2d.ClusteredBars",k,{getBarProperties:function(){var h=this.series.length;n.forEach(this.series,function(e){e.hidden&&
h--});var g=q.calculateBarSize(this._vScaler.bounds.scale,this.opt,h);return{gap:g.gap,height:g.size,thickness:g.size}}})})},"dojox/charting/plot2d/Grid":function(){define("dojo/_base/lang dojo/_base/declare dojo/_base/array dojo/sniff ./CartesianBase ./common dojox/lang/utils dojox/gfx/fx".split(" "),function(l,n,k,q,h,g,e,d){var b=function(a,b){return a.value-b.value};return n("dojox.charting.plot2d.Grid",h,{defaultParams:{hMajorLines:!0,hMinorLines:!1,vMajorLines:!0,vMinorLines:!1,hStripes:!1,
vStripes:!1,animate:null,enableCache:!1,renderOnAxis:!0},optionalParams:{majorHLine:{},minorHLine:{},majorVLine:{},minorVLine:{},hFill:{},vFill:{},hAlternateFill:{},vAlternateFill:{}},constructor:function(a,b){this.opt=l.clone(this.defaultParams);e.updateWithObject(this.opt,b);e.updateWithPattern(this.opt,b,this.optionalParams);this.animate=this.opt.animate;this.opt.enableCache&&(this._lineFreePool=[],this._lineUsePool=[],this._rectFreePool=[],this._rectUsePool=[])},addSeries:function(a){return this},
getSeriesStats:function(){return l.delegate(g.defaultStats)},cleanGroup:function(){this.inherited(arguments);this.opt.enableCache&&(this._lineFreePool=this._lineFreePool.concat(this._lineUsePool),this._lineUsePool=[],this._rectFreePool=this._rectFreePool.concat(this._rectUsePool),this._rectUsePool=[])},createLine:function(a,b){var d;this.opt.enableCache&&0<this._lineFreePool.length?(d=this._lineFreePool.pop(),d.setShape(b),a.add(d)):d=a.createLine(b);this.opt.enableCache&&this._lineUsePool.push(d);
return d},createRect:function(a,b){var d;this.opt.enableCache&&0<this._rectFreePool.length?(d=this._rectFreePool.pop(),d.setShape(b),a.add(d)):d=a.createRect(b);this.opt.enableCache&&this._rectUsePool.push(d);return d},render:function(a,b){if(this.zoom)return this.performZoom(a,b);this.dirty=this.isDirty();if(!this.dirty)return this;this.cleanGroup();var d=this.getGroup(),e=this.chart.theme,g;if(q("ios")&&6>q("ios")||q("android")||q("safari")&&!q("ios")){g=Math.max(0,a.width-b.l-b.r);var h=Math.max(0,
a.height-b.t-b.b);d.createRect({x:b.l,y:b.t,width:g,height:h})}if(this._vAxis&&(g=this._vAxis.getTicks(),h=this._vAxis.getScaler(),null!=g&&null!=h)){var k=h.scaler.getTransformerFromModel(h);this.opt.hStripes&&this._renderHRect(g,e.grid,a,b,h,k);this.opt.hMinorLines&&(d=this.opt.minorHLine||e.grid&&e.grid.minorLine||e.axis.minorTick,this._renderHLines(g.minor,d,a,b,h,k));this.opt.hMajorLines&&(d=this.opt.majorHLine||e.grid&&e.grid.majorLine||e.axis.majorTick,this._renderHLines(g.major,d,a,b,h,k))}this._hAxis&&
(g=this._hAxis.getTicks(),h=this._hAxis.getScaler(),null!=g&&null!=h&&(k=h.scaler.getTransformerFromModel(h),this.opt.vStripes&&this._renderVRect(g,e.grid,a,b,h,k),g&&this.opt.vMinorLines&&(d=this.opt.minorVLine||e.grid&&e.grid.minorLine||e.axis.minorTick,this._renderVLines(g.minor,d,a,b,h,k)),g&&this.opt.vMajorLines&&(d=this.opt.majorVLine||e.grid&&e.grid.majorLine||e.axis.majorTick,this._renderVLines(g.major,d,a,b,h,k))));this.dirty=!1;return this},_renderHLines:function(a,b,d,e,g,h){var l=this.getGroup();
k.forEach(a,function(a){if(this.opt.renderOnAxis||a.value!=(this._vAxis.opt.leftBottom?g.bounds.from:g.bounds.to))a=d.height-e.b-h(a.value),a=this.createLine(l,{x1:e.l,y1:a,x2:d.width-e.r,y2:a}).setStroke(b),this.animate&&this._animateGrid(a,"h",e.l,e.r+e.l-d.width)},this)},_renderVLines:function(a,b,d,e,g,h){var l=this.getGroup();k.forEach(a,function(a){if(this.opt.renderOnAxis||a.value!=(this._hAxis.opt.leftBottom?g.bounds.from:g.bounds.to))a=e.l+h(a.value),a=this.createLine(l,{x1:a,y1:e.t,x2:a,
y2:d.height-e.b}).setStroke(b),this.animate&&this._animateGrid(a,"v",d.height-e.b,d.height-e.b-e.t)},this)},_renderHRect:function(a,c,d,e,g,h){var k,l,n;a=a.major.concat(a.minor);a.sort(b);a[0].value>g.bounds.from&&a.splice(0,0,{value:g.bounds.from});a[a.length-1].value<g.bounds.to&&a.push({value:g.bounds.to});g=this.getGroup();for(var q=0;q<a.length-1;q++)if(k=a[q],l=d.height-e.b-h(k.value),n=d.height-e.b-h(a[q+1].value),k=0==q%2?this.opt.hAlternateFill||c&&c.alternateFill:this.opt.hFill||c&&c.fill)k=
this.createRect(g,{x:e.l,y:l,width:d.width-e.r,height:l-n}).setFill(k),this.animate&&this._animateGrid(k,"h",e.l,e.r+e.l-d.width)},_renderVRect:function(a,c,d,e,g,h){var k,l,n;a=a.major.concat(a.minor);a.sort(b);a[0].value>g.bounds.from&&a.splice(0,0,{value:g.bounds.from});a[a.length-1].value<g.bounds.to&&a.push({value:g.bounds.to});g=this.getGroup();for(var q=0;q<a.length-1;q++)if(k=a[q],l=e.l+h(k.value),n=e.l+h(a[q+1].value),k=0==q%2?this.opt.vAlternateFill||c&&c.alternateFill:this.opt.vFill||c&&
c.fill)k=this.createRect(g,{x:l,y:e.t,width:n-l,height:d.width-e.r}).setFill(k),this.animate&&this._animateGrid(k,"v",d.height-e.b,d.height-e.b-e.t)},_animateGrid:function(a,b,e,g){d.animateTransform(l.delegate({shape:a,duration:1200,transform:[{name:"translate",start:"h"==b?[e,0]:[0,e],end:[0,0]},{name:"scale",start:"h"==b?[1/g,1]:[1,1/g],end:[1,1]},{name:"original"}]},this.animate)).play()}})})},"dojox/charting/plot2d/Pie":function(){define("dojo/_base/lang dojo/_base/array dojo/_base/declare ./Base ./_PlotEvents ./common dojox/gfx dojox/gfx/matrix dojox/lang/functional dojox/lang/utils dojo/has".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c){return k("dojox.charting.plot2d.Pie",[q,h],{defaultParams:{labels:!0,ticks:!1,fixed:!0,precision:1,labelOffset:20,labelStyle:"default",htmlLabels:!0,radGrad:"native",fanSize:5,startAngle:0},optionalParams:{radius:0,omitLabels:!1,stroke:{},outline:{},shadow:{},fill:{},filter:{},styleFunc:null,font:"",fontColor:"",labelWiring:{}},constructor:function(b,c){this.opt=l.clone(this.defaultParams);a.updateWithObject(this.opt,c);a.updateWithPattern(this.opt,c,this.optionalParams);
this.axes=[];this.run=null;this.dyn=[];this.runFilter=[]},clear:function(){this.inherited(arguments);this.dyn=[];this.run=null;return this},setAxis:function(a){return this},addSeries:function(a){this.run=a;return this},getSeriesStats:function(){return l.delegate(g.defaultStats)},getRequiredColors:function(){return this.run?this.run.data.length:0},render:function(a,g){if(!this.dirty)return this;this.resetEvents();this.dirty=!1;this._eventSeries={};this.cleanGroup();var h=this.group,k=this.chart.theme;
if(!this.run||!this.run.data.length)return this;var q=(a.width-g.l-g.r)/2,u=(a.height-g.t-g.b)/2,v=Math.min(q,u),A="font"in this.opt?this.opt.font:k.series.font,y,w=d._degToRad(this.opt.startAngle),z=w,x,B,D,C,F=this.events(),I=n.map(this.run.data,function(a,b){"number"!=typeof a&&a.hidden&&(this.runFilter.push(b),a.hidden=!1);return n.some(this.runFilter,function(a){return a==b})?"number"==typeof a?0:{y:0,text:a.text}:a},this);this.dyn=[];"radius"in this.opt&&(v=this.opt.radius,C=v-this.opt.labelOffset);
var E={cx:g.l+q,cy:g.t+u,r:v};if(this.opt.shadow||k.shadow){x=this.opt.shadow||k.shadow;var L=l.clone(E);L.cx+=x.dx;L.cy+=x.dy;h.createCircle(L).setFill(x.color).setStroke(x)}if(h.setFilter&&(this.opt.filter||k.filter))h.createCircle(E).setFill(k.series.stroke).setFilter(this.opt.filter||k.filter);if("number"==typeof I[0]){x=b.map(I,"x ? Math.max(x, 0) : 0");if(b.every(x,"\x3c\x3d 0"))return h.createCircle(E).setStroke(k.series.stroke),this.dyn=n.map(x,function(){return{}}),this;B=b.map(x,"/this",
b.foldl(x,"+",0));this.opt.labels&&(D=n.map(B,function(a){return 0<a?this._getLabel(100*a)+"%":""},this))}else{x=b.map(I,"x ? Math.max(x.y, 0) : 0");if(b.every(x,"\x3c\x3d 0"))return h.createCircle(E).setStroke(k.series.stroke),this.dyn=n.map(x,function(){return{}}),this;B=b.map(x,"/this",b.foldl(x,"+",0));this.opt.labels&&(D=n.map(B,function(a,b){if(0>a)return"";var c=I[b];return"text"in c?c.text:this._getLabel(100*a)+"%"},this))}var G=b.map(I,function(a,b){var c=[this.opt,this.run];null!==a&&"number"!=
typeof a&&c.push(a);this.opt.styleFunc&&c.push(this.opt.styleFunc(a));return k.next("slice",c,!0)},this);this.opt.labels&&(y=A?e.normalizedLength(e.splitFontString(A).size):0,x=b.foldl1(b.map(D,function(a,b){return e._base._getTextBox(a,{font:G[b].series.font}).w},this),"Math.max(a, b)")/2,0>this.opt.labelOffset&&(v=Math.min(q-2*x,u-y)+this.opt.labelOffset),C=v-this.opt.labelOffset);var K=Array(B.length);n.some(B,function(b,c){if(0>b)return!1;var e=I[c],k=G[c],l;if(0==b)return this.dyn.push({fill:k.series.fill,
stroke:k.series.stroke}),!1;if(1<=b){l=this._plotFill(k.series.fill,a,g);l=this._shapeFill(l,{x:E.cx-E.r,y:E.cy-E.r,width:2*E.r,height:2*E.r});l=this._pseudoRadialFill(l,{x:E.cx,y:E.cy},E.r);var n=h.createCircle(E).setFill(l).setStroke(k.series.stroke);this.dyn.push({fill:l,stroke:k.series.stroke});F&&(e={element:"slice",index:c,run:this.run,shape:n,x:c,y:"number"==typeof e?e:e.y,cx:E.cx,cy:E.cy,cr:v},this._connectEvents(e),K[c]=e);return!1}var q=z+2*b*Math.PI;c+1==B.length&&(q=w+2*Math.PI);var n=
q-z,r=E.cx+v*Math.cos(z),t=E.cy+v*Math.sin(z),u=E.cx+v*Math.cos(q),A=E.cy+v*Math.sin(q);l=d._degToRad(this.opt.fanSize);if(k.series.fill&&"radial"===k.series.fill.type&&"fan"===this.opt.radGrad&&n>l){var x=h.createGroup(),y=Math.ceil(n/l),C=n/y;l=this._shapeFill(k.series.fill,{x:E.cx-E.r,y:E.cy-E.r,width:2*E.r,height:2*E.r});for(var D=0;D<y;++D){var H=0==D?r:E.cx+v*Math.cos(z+(D-0.2)*C),L=0==D?t:E.cy+v*Math.sin(z+(D-0.2)*C),J=D==y-1?u:E.cx+v*Math.cos(z+(D+1+0.2)*C),M=D==y-1?A:E.cy+v*Math.sin(z+(D+
1+0.2)*C);x.createPath().moveTo(E.cx,E.cy).lineTo(H,L).arcTo(v,v,0,C>Math.PI,!0,J,M).lineTo(E.cx,E.cy).closePath().setFill(this._pseudoRadialFill(l,{x:E.cx,y:E.cy},v,z+(D+0.5)*C,z+(D+0.5)*C))}x.createPath().moveTo(E.cx,E.cy).lineTo(r,t).arcTo(v,v,0,n>Math.PI,!0,u,A).lineTo(E.cx,E.cy).closePath().setStroke(k.series.stroke);n=x}else n=h.createPath().moveTo(E.cx,E.cy).lineTo(r,t).arcTo(v,v,0,n>Math.PI,!0,u,A).lineTo(E.cx,E.cy).closePath().setStroke(k.series.stroke),(l=k.series.fill)&&"radial"===l.type?
(l=this._shapeFill(l,{x:E.cx-E.r,y:E.cy-E.r,width:2*E.r,height:2*E.r}),"linear"===this.opt.radGrad&&(l=this._pseudoRadialFill(l,{x:E.cx,y:E.cy},v,z,q))):l&&"linear"===l.type&&(l=this._plotFill(l,a,g),l=this._shapeFill(l,n.getBoundingBox())),n.setFill(l);this.dyn.push({fill:l,stroke:k.series.stroke});F&&(e={element:"slice",index:c,run:this.run,shape:n,x:c,y:"number"==typeof e?e:e.y,cx:E.cx,cy:E.cy,cr:v},this._connectEvents(e),K[c]=e);z=q;return!1},this);if(this.opt.labels){var J=c("dojo-bidi")&&this.chart.isRightToLeft();
if("default"==this.opt.labelStyle)z=w,n.some(B,function(b,c){if(0>=b)return!1;var d=G[c];if(1<=b)return this.renderLabel(h,E.cx,E.cy+y/2,D[c],d,0<this.opt.labelOffset),!0;var e=z+2*b*Math.PI;c+1==B.length&&(e=w+2*Math.PI);if(this.opt.omitLabels&&0.001>e-z)return!1;var g=(z+e)/2,k=E.cx+C*Math.cos(g),g=E.cy+C*Math.sin(g)+y/2;this.renderLabel(h,J?a.width-k:k,g,D[c],d,0<this.opt.labelOffset);z=e;return!1},this);else if("columns"==this.opt.labelStyle){var z=w,H=this.opt.omitLabels,M=[];n.forEach(B,function(a,
b){var c=z+2*a*Math.PI;b+1==B.length&&(c=w+2*Math.PI);var d=(z+c)/2;M.push({angle:d,left:0>Math.cos(d),theme:G[b],index:b,omit:H?0.001>c-z:!1});z=c});q=e._base._getTextBox("a",{font:A}).h;this._getProperLabelRadius(M,q,1.1*E.r);n.forEach(M,function(b,c){if(!b.omit){var d=E.cx-2*E.r,g=E.cx+2*E.r,k=e._base._getTextBox(D[c],{font:b.theme.series.font}).w,l=E.cx+b.labelR*Math.cos(b.angle),m=E.cy+b.labelR*Math.sin(b.angle),g=b.left?d+k:g-k,d=b.left?d:g,n=h.createPath().moveTo(E.cx+E.r*Math.cos(b.angle),
E.cy+E.r*Math.sin(b.angle));Math.abs(b.labelR*Math.cos(b.angle))<2*E.r-k&&n.lineTo(l,m);n.lineTo(g,m).setStroke(b.theme.series.labelWiring);this.renderLabel(h,J?a.width-k-d:d,m,D[c],b.theme,!1,"left")}},this)}}var N=0;this._eventSeries[this.run.name]=b.map(I,function(a){return 0>=a?null:K[N++]});c("dojo-bidi")&&this._checkOrientation(this.group,a,g);return this},_getProperLabelRadius:function(a,b,c){var d,e,g=1,h=1;if(1==a.length)a[0].labelR=c;else{for(var k=0;k<a.length;k++){var l=Math.abs(Math.sin(a[k].angle));
a[k].left?g>=l&&(g=l,d=a[k]):h>=l&&(h=l,e=a[k])}d.labelR=e.labelR=c;this._calculateLabelR(d,a,b);this._calculateLabelR(e,a,b)}},_calculateLabelR:function(a,b,c){for(var d=a.index,e=b.length,g=a.labelR;!(b[d%e].left^b[(d+1)%e].left);)b[(d+1)%e].omit||(g=(Math.sin(b[d%e].angle)*g+(b[d%e].left?-c:c))/Math.sin(b[(d+1)%e].angle),g=g<a.labelR?a.labelR:g,b[(d+1)%e].labelR=g),d++;d=a.index;for(e=0==d?e-1:d-1;!(b[d].left^b[e].left);)b[e].omit||(g=(Math.sin(b[d].angle)*g+(b[d].left?c:-c))/Math.sin(b[e].angle),
g=g<a.labelR?a.labelR:g,b[e].labelR=g),d--,e--,d=0>d?d+b.length:d,e=0>e?e+b.length:e}})})},"dojox/charting/plot2d/Bubble":function(){define("dojo/_base/lang dojo/_base/declare dojo/_base/array dojo/has ./CartesianBase ./_PlotEvents ./common dojox/lang/functional dojox/lang/functional/reversed dojox/lang/utils dojox/gfx/fx".split(" "),function(l,n,k,q,h,g,e,d,b,a,c){var f=b.lambda("item.purgeGroup()");return n("dojox.charting.plot2d.Bubble",[h,g],{defaultParams:{animate:null},optionalParams:{stroke:{},
outline:{},shadow:{},fill:{},filter:{},styleFunc:null,font:"",fontColor:"",labelFunc:null},constructor:function(b,c){this.opt=l.clone(l.mixin(this.opt,this.defaultParams));a.updateWithObject(this.opt,c);a.updateWithPattern(this.opt,c,this.optionalParams);this.opt.labelFunc||(this.opt.labelFunc=function(a,b,c){return this._getLabel(a.size,b,c)});this.animate=this.opt.animate},render:function(a,b){var c;if(this.zoom&&!this.isDataDirty())return this.performZoom(a,b);this.resetEvents();if(this.dirty=
this.isDirty())k.forEach(this.series,f),this._eventSeries={},this.cleanGroup(),c=this.getGroup(),d.forEachRev(this.series,function(a){a.cleanGroup(c)});for(var g=this.chart.theme,h=this._hScaler.scaler.getTransformerFromModel(this._hScaler),l=this._vScaler.scaler.getTransformerFromModel(this._vScaler),n=this.events(),y=this.series.length-1;0<=y;--y){var w=this.series[y];if(!this.dirty&&!w.dirty)g.skip(),this._reconnectEvents(w.name);else if(w.cleanGroup(),w.data.length)if("number"==typeof w.data[0])console.warn("dojox.charting.plot2d.Bubble: the data in the following series cannot be rendered as a bubble chart; ",
w);else{var z=g.next("circle",[this.opt,w]),x=k.map(w.data,function(c){return c?{x:h(c.x)+b.l,y:a.height-b.b-l(c.y),radius:this._vScaler.bounds.scale*(c.size/2)}:null},this);if(w.hidden)w.dyn.fill=z.series.fill,w.dyn.stroke=z.series.stroke;else{c=w.group;var B=null,D=null,C=null,F=this.opt.styleFunc,I=function(a){return F?g.addMixin(z,"circle",[a,F(a)],!0):g.addMixin(z,"circle",a,!0)};z.series.shadow&&(C=k.map(x,function(d,e){if(null!==d){var f=I(w.data[e]).series.shadow,f=c.createCircle({cx:d.x+
f.dx,cy:d.y+f.dy,r:d.radius}).setStroke(f).setFill(f.color);this.animate&&this._animateBubble(f,a.height-b.b,d.radius);return f}return null},this),C.length&&(w.dyn.shadow=C[C.length-1].getStroke()));z.series.outline&&(D=k.map(x,function(d,f){if(null!==d){var g=I(w.data[f]),g=e.makeStroke(g.series.outline);g.width=2*g.width+z.series.stroke.width;g=c.createCircle({cx:d.x,cy:d.y,r:d.radius}).setStroke(g);this.animate&&this._animateBubble(g,a.height-b.b,d.radius);return g}return null},this),D.length&&
(w.dyn.outline=D[D.length-1].getStroke()));B=k.map(x,function(d,e){if(null!==d){var f=I(w.data[e]),g={x:d.x-d.radius,y:d.y-d.radius,width:2*d.radius,height:2*d.radius},h=this._plotFill(f.series.fill,a,b),h=this._shapeFill(h,g),h=c.createCircle({cx:d.x,cy:d.y,r:d.radius}).setFill(h).setStroke(f.series.stroke);h.setFilter&&f.series.filter&&h.setFilter(f.series.filter);this.animate&&this._animateBubble(h,a.height-b.b,d.radius);this.createLabel(c,w.data[e],g,f);return h}return null},this);B.length&&(w.dyn.fill=
B[B.length-1].getFill(),w.dyn.stroke=B[B.length-1].getStroke());if(n){var E=Array(B.length);k.forEach(B,function(a,b){if(null!==a){var c={element:"circle",index:b,run:w,shape:a,outline:D&&D[b]||null,shadow:C&&C[b]||null,x:w.data[b].x,y:w.data[b].y,r:w.data[b].size/2,cx:x[b].x,cy:x[b].y,cr:x[b].radius};this._connectEvents(c);E[b]=c}},this);this._eventSeries[w.name]=E}else delete this._eventSeries[w.name];w.dirty=!1}}else w.dirty=!1,g.skip()}this.dirty=!1;q("dojo-bidi")&&this._checkOrientation(this.group,
a,b);return this},_animateBubble:function(a,b,d){c.animateTransform(l.delegate({shape:a,duration:1200,transform:[{name:"translate",start:[0,b],end:[0,0]},{name:"scale",start:[0,1/d],end:[1,1]},{name:"original"}]},this.animate)).play()}})})},"dojox/charting/plot2d/Candlesticks":function(){define("dojo/_base/lang dojo/_base/declare dojo/_base/array dojo/has ./CartesianBase ./_PlotEvents ./common dojox/lang/functional dojox/lang/functional/reversed dojox/lang/utils dojox/gfx/fx".split(" "),function(l,
n,k,q,h,g,e,d,b,a,c){var f=b.lambda("item.purgeGroup()");return n("dojox.charting.plot2d.Candlesticks",[h,g],{defaultParams:{gap:2,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(b,c){this.opt=l.clone(this.defaultParams);a.updateWithObject(this.opt,c);a.updateWithPattern(this.opt,c,this.optionalParams);this.animate=this.opt.animate},collectStats:function(a){for(var b=l.delegate(e.defaultStats),c=0;c<a.length;c++){var d=
a[c];if(d.data.length){var f=b.vmin,g=b.vmax;(!("ymin"in d)||!("ymax"in d))&&k.forEach(d.data,function(a,c){if(null!==a){var d=a.x||c+1;b.hmin=Math.min(b.hmin,d);b.hmax=Math.max(b.hmax,d);b.vmin=Math.min(b.vmin,a.open,a.close,a.high,a.low);b.vmax=Math.max(b.vmax,a.open,a.close,a.high,a.low)}});"ymin"in d&&(b.vmin=Math.min(f,d.ymin));"ymax"in d&&(b.vmax=Math.max(g,d.ymax))}}return b},getSeriesStats:function(){var a=this.collectStats(this.series);a.hmin-=0.5;a.hmax+=0.5;return a},render:function(a,
b){if(this.zoom&&!this.isDataDirty())return this.performZoom(a,b);this.resetEvents();this.dirty=this.isDirty();var c;this.dirty&&(k.forEach(this.series,f),this._eventSeries={},this.cleanGroup(),c=this.getGroup(),d.forEachRev(this.series,function(a){a.cleanGroup(c)}));var g=this.chart.theme,h,l,n=this._hScaler.scaler.getTransformerFromModel(this._hScaler),y=this._vScaler.scaler.getTransformerFromModel(this._vScaler),w=this.events();h=e.calculateBarSize(this._hScaler.bounds.scale,this.opt);l=h.gap;
h=h.size;for(var z=this.series.length-1;0<=z;--z){var x=this.series[z];if(!this.dirty&&!x.dirty)g.skip(),this._reconnectEvents(x.name);else{x.cleanGroup();var B=g.next("candlestick",[this.opt,x]),D=Array(x.data.length);if(x.hidden)x.dyn.fill=B.series.fill,x.dyn.stroke=B.series.stroke;else{c=x.group;for(var C=0;C<x.data.length;++C){var F=x.data[C];if(null!==F){var I=g.addMixin(B,"candlestick",F,!0),E=n(F.x||C+0.5)+b.l+l,L=a.height-b.b,G=y(F.open),K=y(F.close),J=y(F.high),H=y(F.low);if("mid"in F)var M=
y(F.mid);if(H>J)var N=J,J=H,H=N;if(1<=h){var N=G>K,O={x1:h/2,x2:h/2,y1:L-J,y2:L-H},P={x:0,y:L-Math.max(G,K),width:h,height:Math.max(N?G-K:K-G,1)},Q=c.createGroup();Q.setTransform({dx:E,dy:0});var W=Q.createGroup();W.createLine(O).setStroke(I.series.stroke);W.createRect(P).setStroke(I.series.stroke).setFill(N?I.series.fill:"white");"mid"in F&&W.createLine({x1:I.series.stroke.width||1,x2:h-(I.series.stroke.width||1),y1:L-M,y2:L-M}).setStroke(N?"white":I.series.stroke);x.dyn.fill=I.series.fill;x.dyn.stroke=
I.series.stroke;w&&(F={element:"candlestick",index:C,run:x,shape:W,x:E,y:L-Math.max(G,K),cx:h/2,cy:L-Math.max(G,K)+Math.max(N?G-K:K-G,1)/2,width:h,height:Math.max(N?G-K:K-G,1),data:F},this._connectEvents(F),D[C]=F)}this.animate&&this._animateCandlesticks(Q,L-H,J-H)}}this._eventSeries[x.name]=D;x.dirty=!1}}}this.dirty=!1;q("dojo-bidi")&&this._checkOrientation(this.group,a,b);return this},tooltipFunc:function(a){return'\x3ctable cellpadding\x3d"1" cellspacing\x3d"0" border\x3d"0" style\x3d"font-size:0.9em;"\x3e\x3ctr\x3e\x3ctd\x3eOpen:\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cstrong\x3e'+
a.data.open+'\x3c/strong\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3eHigh:\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cstrong\x3e'+a.data.high+'\x3c/strong\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3eLow:\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cstrong\x3e'+a.data.low+'\x3c/strong\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3eClose:\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cstrong\x3e'+a.data.close+"\x3c/strong\x3e\x3c/td\x3e\x3c/tr\x3e"+(void 0!==a.data.mid?'\x3ctr\x3e\x3ctd\x3eMid:\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cstrong\x3e'+
a.data.mid+"\x3c/strong\x3e\x3c/td\x3e\x3c/tr\x3e":"")+"\x3c/table\x3e"},_animateCandlesticks:function(a,b,d){c.animateTransform(l.delegate({shape:a,duration:1200,transform:[{name:"translate",start:[0,b-b/d],end:[0,0]},{name:"scale",start:[1,1/d],end:[1,1]},{name:"original"}]},this.animate)).play()}})})},"dojox/charting/plot2d/OHLC":function(){define("dojo/_base/lang dojo/_base/array dojo/_base/declare dojo/has ./CartesianBase ./_PlotEvents ./common dojox/lang/functional dojox/lang/functional/reversed dojox/lang/utils dojox/gfx/fx".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c){var f=b.lambda("item.purgeGroup()");return k("dojox.charting.plot2d.OHLC",[h,g],{defaultParams:{gap:2,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(b,c){this.opt=l.clone(this.defaultParams);a.updateWithObject(this.opt,c);a.updateWithPattern(this.opt,c,this.optionalParams);this.animate=this.opt.animate},collectStats:function(a){for(var b=l.delegate(e.defaultStats),c=0;c<a.length;c++){var d=
a[c];if(d.data.length){var f=b.vmin,g=b.vmax;(!("ymin"in d)||!("ymax"in d))&&n.forEach(d.data,function(a,c){if(null!==a){var d=a.x||c+1;b.hmin=Math.min(b.hmin,d);b.hmax=Math.max(b.hmax,d);b.vmin=Math.min(b.vmin,a.open,a.close,a.high,a.low);b.vmax=Math.max(b.vmax,a.open,a.close,a.high,a.low)}});"ymin"in d&&(b.vmin=Math.min(f,d.ymin));"ymax"in d&&(b.vmax=Math.max(g,d.ymax))}}return b},getSeriesStats:function(){var a=this.collectStats(this.series);a.hmin-=0.5;a.hmax+=0.5;return a},render:function(a,
b){if(this.zoom&&!this.isDataDirty())return this.performZoom(a,b);this.resetEvents();if(this.dirty=this.isDirty()){n.forEach(this.series,f);this._eventSeries={};this.cleanGroup();var c=this.getGroup();d.forEachRev(this.series,function(a){a.cleanGroup(c)})}var g=this.chart.theme,h,k,l=this._hScaler.scaler.getTransformerFromModel(this._hScaler),y=this._vScaler.scaler.getTransformerFromModel(this._vScaler),w=this.events();h=e.calculateBarSize(this._hScaler.bounds.scale,this.opt);k=h.gap;h=h.size;for(var z=
this.series.length-1;0<=z;--z){var x=this.series[z];if(!this.dirty&&!x.dirty)g.skip(),this._reconnectEvents(x.name);else{x.cleanGroup();for(var B=g.next("candlestick",[this.opt,x]),c=x.group,D=Array(x.data.length),C=0;C<x.data.length;++C){var F=x.data[C];if(null!==F){var I=g.addMixin(B,"candlestick",F,!0),E=l(F.x||C+0.5)+b.l+k,L=a.height-b.b,G=y(F.open),K=y(F.close),J=y(F.high),H=y(F.low);if(H>J)var M=J,J=H,H=M;if(1<=h){var M={x1:h/2,x2:h/2,y1:L-J,y2:L-H},N={x1:0,x2:h/2+(I.series.stroke.width||1)/
2,y1:L-G,y2:L-G},O={x1:h/2-(I.series.stroke.width||1)/2,x2:h,y1:L-K,y2:L-K},P=c.createGroup();P.setTransform({dx:E,dy:0});var Q=P.createGroup();Q.createLine(M).setStroke(I.series.stroke);Q.createLine(N).setStroke(I.series.stroke);Q.createLine(O).setStroke(I.series.stroke);x.dyn.stroke=I.series.stroke;w&&(F={element:"candlestick",index:C,run:x,shape:Q,x:E,y:L-Math.max(G,K),cx:h/2,cy:L-Math.max(G,K)+Math.max(G>K?G-K:K-G,1)/2,width:h,height:Math.max(G>K?G-K:K-G,1),data:F},this._connectEvents(F),D[C]=
F)}this.animate&&this._animateOHLC(P,L-H,J-H)}}this._eventSeries[x.name]=D;x.dirty=!1}}this.dirty=!1;q("dojo-bidi")&&this._checkOrientation(this.group,a,b);return this},_animateOHLC:function(a,b,d){c.animateTransform(l.delegate({shape:a,duration:1200,transform:[{name:"translate",start:[0,b-b/d],end:[0,0]},{name:"scale",start:[1,1/d],end:[1,1]},{name:"original"}]},this.animate)).play()}})})},"dojox/charting/plot2d/Spider":function(){define("dojo/_base/lang dojo/_base/declare dojo/_base/connect dojo/_base/array dojo/dom-geometry dojo/_base/fx dojo/fx dojo/sniff ./Base ./_PlotEvents ./common ../axis2d/common dojox/gfx dojox/gfx/matrix dojox/gfx/fx dojox/lang/functional dojox/lang/utils dojo/fx/easing".split(" "),
function(l,n,k,q,h,g,e,d,b,a,c,f,m,s,t,r,u,v){return n("dojox.charting.plot2d.Spider",[b,a],{defaultParams:{labels:!0,ticks:!1,fixed:!0,precision:1,labelOffset:-10,labelStyle:"default",htmlLabels:!0,startAngle:-90,divisions:3,axisColor:"",axisWidth:0,spiderColor:"",spiderWidth:0,seriesWidth:0,seriesFillAlpha:0.2,spiderOrigin:0.16,markerSize:3,spiderType:"polygon",animationType:v.backOut,animate:null,axisTickFont:"",axisTickFontColor:"",axisFont:"",axisFontColor:""},optionalParams:{radius:0,font:"",
fontColor:""},constructor:function(a,b){this.opt=l.clone(this.defaultParams);u.updateWithObject(this.opt,b);u.updateWithPattern(this.opt,b,this.optionalParams);this.dyn=[];this.datas={};this.labelKey=[];this.oldSeriePoints={};this.animate=null===this.opt.animate?{}:this.opt.animate;this.animations={}},clear:function(){this.inherited(arguments);this.dyn=[];this.axes=[];this.datas={};this.labelKey=[];this.oldSeriePoints={};this.animations={};return this},setAxis:function(a){a&&(void 0!=a.opt.min&&(this.datas[a.name].min=
a.opt.min),void 0!=a.opt.max&&(this.datas[a.name].max=a.opt.max));return this},addSeries:function(a){this.series.push(a);for(var b in a.data){var c=a.data[b],d=this.datas[b];d?(d.vlist.push(c),d.min=Math.min(d.min,c),d.max=Math.max(d.max,c)):(d="__"+b,this.axes.push(d),this[d]=b,this.datas[b]={min:c,max:c,vlist:[c]})}if(0>=this.labelKey.length)for(b in a.data)this.labelKey.push(b);return this},getSeriesStats:function(){return c.collectSimpleStats(this.series)},render:function(a,b){if(!this.dirty)return this;
this.dirty=!1;this.cleanGroup();var c=this.group,d=this.chart.theme;this.resetEvents();if(!this.series||!this.series.length)return this;var e=this.opt,g=d.axis,k=(a.width-b.l-b.r)/2,l=(a.height-b.t-b.b)/2,n=Math.min(k,l),t=e.font||g.majorTick&&g.majorTick.font||g.tick&&g.tick.font||"normal normal normal 7pt Tahoma",u=e.axisFont||g.tick&&g.tick.titleFont||"normal normal normal 11pt Tahoma",v=e.axisTickFontColor||g.majorTick&&g.majorTick.fontColor||g.tick&&g.tick.fontColor||"silver",G=e.axisFontColor||
g.tick&&g.tick.titleFontColor||"black",K=e.axisColor||g.tick&&g.tick.axisColor||"silver",J=e.spiderColor||g.tick&&g.tick.spiderColor||"silver",H=e.axisWidth||g.stroke&&g.stroke.width||2,M=e.spiderWidth||g.stroke&&g.stroke.width||2,g=e.seriesWidth||g.stroke&&g.stroke.width||2,N=m.normalizedLength(m.splitFontString(u).size),O=s._degToRad(e.startAngle),P,Q,W,X,R,U,S=e.spiderOrigin,V=3<=e.divisions?e.divisions:3,da=e.markerSize,$=e.spiderType,ba=e.animationType,T=-10>e.labelOffset?e.labelOffset:-10,Z;
e.labels&&(n=q.map(this.series,function(a){return a.name},this),n=r.foldl1(r.map(n,function(a){return m._base._getTextBox(a,{font:d.series.font}).w},this),"Math.max(a, b)")/2,n=Math.min(k-2*n,l-N)+T,P=n-T);"radius"in e&&(n=e.radius,P=n-T);n/=1.2;k={cx:b.l+k,cy:b.t+l,r:n};for(l=this.series.length-1;0<=l;l--)if(Z=this.series[l],!this.dirty&&!Z.dirty)d.skip();else if(Z.cleanGroup(),T=Z.data,null!==T&&(N=this._getObjectLength(T),!Q||0>=Q.length))if(Q=[],W=[],U=[],this._buildPoints(Q,N,k,n,O,!0,a),this._buildPoints(W,
N,k,n*S,O,!0,a),this._buildPoints(U,N,k,P,O,!1,a),2<V){X=[];R=[];for(T=0;T<V-2;T++)X[T]=[],this._buildPoints(X[T],N,k,n*(S+(1-S)*(T+1)/(V-1)),O,!0,a),R[T]=n*(S+(1-S)*(T+1)/(V-1))}N=c.createGroup();K={color:K,width:H};l={color:J,width:M};for(T=Q.length-1;0<=T;--T)J=Q[T],M={x:J.x+0.2*(J.x-k.cx),y:J.y+0.2*(J.y-k.cy)},J={x:J.x+0.2*(J.x-k.cx)/2,y:J.y+0.2*(J.y-k.cy)/2},N.createLine({x1:k.cx,y1:k.cy,x2:M.x,y2:M.y}).setStroke(K),this._drawArrow(N,M,J,K);N=c.createGroup();for(T=U.length-1;0<=T;--T)J=U[T],
M=m._base._getTextBox(this.labelKey[T],{font:u}).w||0,K=this.opt.htmlLabels&&"vml"!=m.renderer?"html":"gfx",J=f.createText[K](this.chart,N,!h.isBodyLtr()&&"html"==K?J.x+M-a.width:J.x,J.y,"middle",this.labelKey[T],u,G),this.opt.htmlLabels&&this.htmlElements.push(J);u=c.createGroup();if("polygon"==$){if(u.createPolyline(Q).setStroke(l),u.createPolyline(W).setStroke(l),0<X.length)for(T=X.length-1;0<=T;--T)u.createPolyline(X[T]).setStroke(l)}else if(u.createCircle({cx:k.cx,cy:k.cy,r:n}).setStroke(l),
u.createCircle({cx:k.cx,cy:k.cy,r:n*S}).setStroke(l),0<R.length)for(T=R.length-1;0<=T;--T)u.createCircle({cx:k.cx,cy:k.cy,r:R[T]}).setStroke(l);N=this._getObjectLength(this.datas);G=c.createGroup();X=0;for(var ca in this.datas){R=this.datas[ca];Q=R.min;R=R.max;R-=Q;u=O+2*Math.PI*X/N;for(l=0;l<V;l++)U=Q+R*l/(V-1),J=this._getCoordinate(k,n*(S+(1-S)*l/(V-1)),u,a),U=this._getLabel(U),M=m._base._getTextBox(U,{font:t}).w||0,K=this.opt.htmlLabels&&"vml"!=m.renderer?"html":"gfx",this.opt.htmlLabels&&this.htmlElements.push(f.createText[K](this.chart,
G,!h.isBodyLtr()&&"html"==K?J.x+M-a.width:J.x,J.y,"start",U,t,v));X++}this.chart.seriesShapes={};for(l=this.series.length-1;0<=l;l--)if(Z=this.series[l],T=Z.data,null!==T){var t=d.next("spider",[e,Z]),aa=m.normalizeColor(t.series.fill),t={color:t.series.fill,width:g};aa.a=e.seriesFillAlpha;Z.dyn={fill:aa,stroke:t};if(!Z.hidden){var Y=[],ea=[];X=0;for(ca in T)R=this.datas[ca],Q=R.min,R=R.max,R-=Q,v=T[ca],u=O+2*Math.PI*X/N,J=this._getCoordinate(k,n*(S+(1-S)*(v-Q)/R),u,a),Y.push(J),ea.push({sname:Z.name,
key:ca,data:v}),X++;Y[Y.length]=Y[0];ea[ea.length]=ea[0];var v=this._getBoundary(Y),fa=Z.group,t=this._createSeriesEntry(fa,this.oldSeriePoints[Z.name]||W,Y,aa,t,n,S,da,ba);this.chart.seriesShapes[Z.name]=t;this.oldSeriePoints[Z.name]=Y;this._connectEvents({element:"spider_poly",index:l,id:"spider_poly_"+Z.name,run:Z,plot:this,shape:t.poly,parent:fa,brect:v,cx:k.cx,cy:k.cy,cr:n,f:aa,s:c});this._connectEvents({element:"spider_plot",index:l,id:"spider_plot_"+Z.name,run:Z,plot:this,shape:Z.group});q.forEach(t.circles,
function(a,b){this._connectEvents({element:"spider_circle",index:b,id:"spider_circle_"+Z.name+b,run:Z,plot:this,shape:a,parent:fa,tdata:ea[b],cx:Y[b].x,cy:Y[b].y,f:aa,s:c})},this)}}return this},_createSeriesEntry:function(a,b,c,d,f,h,m,n,r){h=this.animate?b:c;var t=a.createPolyline(h).setFill(d).setStroke(f),s=[];for(m=0;m<h.length;m++){var u=h[m],u=a.createCircle({cx:u.x,cy:u.y,r:n}).setFill(d).setStroke(f);s.push(u)}this.animate&&(d=q.map(c,function(a,c){var d=new g.Animation(l.delegate({duration:1E3,
easing:r,curve:[b[c].y,a.y]},this.animate)),e=s[c];k.connect(d,"onAnimate",function(a){var b=t.getShape();b.points[c].y=a;t.setShape(b);b=e.getShape();b.cy=a;e.setShape(b)});return d},this),c=q.map(c,function(a,c){var d=new g.Animation(l.delegate({duration:1E3,easing:r,curve:[b[c].x,a.x]},this.animate)),e=s[c];k.connect(d,"onAnimate",function(a){var b=t.getShape();b.points[c].x=a;t.setShape(b);b=e.getShape();b.cx=a;e.setShape(b)});return d},this),e.combine(d.concat(c)).play());return{group:a,poly:t,
circles:s}},plotEvent:function(a){"spider_plot"==a.element&&"onmouseover"==a.type&&!d("ie")&&a.shape.moveToFront()},tooltipFunc:function(a){return"spider_circle"==a.element?a.tdata.sname+"\x3cbr/\x3e"+a.tdata.key+"\x3cbr/\x3e"+a.tdata.data:null},_getBoundary:function(a){for(var b=a[0].x,c=a[0].x,d=a[0].y,e=a[0].y,f=0;f<a.length;f++)var g=a[f],b=Math.max(g.x,b),d=Math.max(g.y,d),c=Math.min(g.x,c),e=Math.min(g.y,e);return{x:c,y:e,width:b-c,height:d-e}},_drawArrow:function(a,b,c,d){var e=Math.sqrt(Math.pow(c.x-
b.x,2)+Math.pow(c.y-b.y,2)),f=(c.y-b.y)/e,g=(c.x-b.x)/e;a.createPolyline([b,{x:c.x+e/3*-f,y:c.y+e/3*g},{x:c.x+e/3*f,y:c.y+e/3*-g}]).setFill(d.color).setStroke(d)},_buildPoints:function(a,b,c,d,e,f,g){for(var h=0;h<b;h++)a.push(this._getCoordinate(c,d,e+2*Math.PI*h/b,g));f&&a.push(this._getCoordinate(c,d,e+2*Math.PI,g))},_getCoordinate:function(a,b,c,e){var f=a.cx+b*Math.cos(c);d("dojo-bidi")&&(this.chart.isRightToLeft()&&e)&&(f=e.width-f);return{x:f,y:a.cy+b*Math.sin(c)}},_getObjectLength:function(a){var b=
0;if(l.isObject(a))for(var c in a)b++;return b},_getLabel:function(a){return c.getLabel(a,this.opt.fixed,this.opt.precision)}})})},"dojo/fx/easing":function(){define(["../_base/lang"],function(l){var n={linear:function(k){return k},quadIn:function(k){return Math.pow(k,2)},quadOut:function(k){return-1*k*(k-2)},quadInOut:function(k){k*=2;return 1>k?Math.pow(k,2)/2:-1*(--k*(k-2)-1)/2},cubicIn:function(k){return Math.pow(k,3)},cubicOut:function(k){return Math.pow(k-1,3)+1},cubicInOut:function(k){k*=2;
return 1>k?Math.pow(k,3)/2:(Math.pow(k-2,3)+2)/2},quartIn:function(k){return Math.pow(k,4)},quartOut:function(k){return-1*(Math.pow(k-1,4)-1)},quartInOut:function(k){k*=2;return 1>k?Math.pow(k,4)/2:-0.5*(Math.pow(k-2,4)-2)},quintIn:function(k){return Math.pow(k,5)},quintOut:function(k){return Math.pow(k-1,5)+1},quintInOut:function(k){k*=2;return 1>k?Math.pow(k,5)/2:(Math.pow(k-2,5)+2)/2},sineIn:function(k){return-1*Math.cos(k*(Math.PI/2))+1},sineOut:function(k){return Math.sin(k*(Math.PI/2))},sineInOut:function(k){return-1*
(Math.cos(Math.PI*k)-1)/2},expoIn:function(k){return 0==k?0:Math.pow(2,10*(k-1))},expoOut:function(k){return 1==k?1:-1*Math.pow(2,-10*k)+1},expoInOut:function(k){if(0==k)return 0;if(1==k)return 1;k*=2;if(1>k)return Math.pow(2,10*(k-1))/2;--k;return(-1*Math.pow(2,-10*k)+2)/2},circIn:function(k){return-1*(Math.sqrt(1-Math.pow(k,2))-1)},circOut:function(k){return Math.sqrt(1-Math.pow(k-1,2))},circInOut:function(k){k*=2;return 1>k?-0.5*(Math.sqrt(1-Math.pow(k,2))-1):0.5*(Math.sqrt(1-Math.pow(k-2,2))+
1)},backIn:function(k){return Math.pow(k,2)*(2.70158*k-1.70158)},backOut:function(k){k-=1;return Math.pow(k,2)*(2.70158*k+1.70158)+1},backInOut:function(k){k*=2;if(1>k)return Math.pow(k,2)*(3.5949095*k-2.5949095)/2;k-=2;return(Math.pow(k,2)*(3.5949095*k+2.5949095)+2)/2},elasticIn:function(k){if(0==k||1==k)return k;k-=1;return-1*Math.pow(2,10*k)*Math.sin((k-0.075)*2*Math.PI/0.3)},elasticOut:function(k){return 0==k||1==k?k:Math.pow(2,-10*k)*Math.sin((k-0.075)*2*Math.PI/0.3)+1},elasticInOut:function(k){if(0==
k)return 0;k*=2;if(2==k)return 1;var l=0.3*1.5,h=l/4;if(1>k)return k-=1,-0.5*Math.pow(2,10*k)*Math.sin((k-h)*2*Math.PI/l);k-=1;return 0.5*Math.pow(2,-10*k)*Math.sin((k-h)*2*Math.PI/l)+1},bounceIn:function(k){return 1-n.bounceOut(1-k)},bounceOut:function(k){k<1/2.75?k=7.5625*Math.pow(k,2):k<2/2.75?k=7.5625*Math.pow(k-1.5/2.75,2)+0.75:k<2.5/2.75?(k-=2.25/2.75,k=7.5625*Math.pow(k,2)+0.9375):(k-=2.625/2.75,k=7.5625*Math.pow(k,2)+0.984375);return k},bounceInOut:function(k){return 0.5>k?n.bounceIn(2*k)/
2:n.bounceOut(2*k-1)/2+0.5}};l.setObject("dojo.fx.easing",n);return n})},"dojox/charting/action2d/Tooltip":function(){define("dijit/Tooltip dojo/_base/lang dojo/_base/declare dojo/_base/window dojo/_base/connect dojo/dom-style ./PlotAction dojox/gfx/matrix dojo/has dojo/has!dojo-bidi?../bidi/action2d/Tooltip dojox/lang/functional dojox/lang/functional/scan dojox/lang/functional/fold".split(" "),function(l,n,k,q,h,g,e,d,b,a,c){var f=function(a,b){var c=a.run&&a.run.data&&a.run.data[a.index];return c&&
"number"!=typeof c&&(c.tooltip||c.text)?c.tooltip||c.text:b.tooltipFunc?b.tooltipFunc(a):a.y},m=Math.PI/4,s=Math.PI/2;g=k(b("dojo-bidi")?"dojox.charting.action2d.NonBidiTooltip":"dojox.charting.action2d.Tooltip",e,{defaultParams:{text:f,mouseOver:!0},optionalParams:{},constructor:function(a,b,c){this.text=c&&c.text?c.text:f;this.mouseOver=c&&void 0!=c.mouseOver?c.mouseOver:!0;this.connect()},process:function(a){if("onplotreset"===a.type||"onmouseout"===a.type)l.hide(this.aroundRect),this.aroundRect=
null,"onplotreset"===a.type&&delete this.angles;else if(a.shape&&!(this.mouseOver&&"onmouseover"!==a.type||!this.mouseOver&&"onclick"!==a.type)){var e={type:"rect"},f=["after-centered","before-centered"];switch(a.element){case "marker":e.x=a.cx;e.y=a.cy;e.w=e.h=1;break;case "circle":e.x=a.cx-a.cr;e.y=a.cy-a.cr;e.w=e.h=2*a.cr;break;case "spider_circle":e.x=a.cx;e.y=a.cy;e.w=e.h=1;break;case "spider_plot":return;case "column":f=["above-centered","below-centered"];case "bar":e=n.clone(a.shape.getShape());
e.w=e.width;e.h=e.height;break;case "candlestick":e.x=a.x;e.y=a.y;e.w=a.width;e.h=a.height;break;default:if(!this.angles){var g="number"==typeof a.run.data[0]?c.map(a.run.data,"x ? Math.max(x, 0) : 0"):c.map(a.run.data,"x ? Math.max(x.y, 0) : 0");this.angles=c.map(c.scanl(g,"+",0),"* 2 * Math.PI / this",c.foldl(g,"+",0))}var g=d._degToRad(a.plot.opt.startAngle),k=(this.angles[a.index]+this.angles[a.index+1])/2+g;e.x=a.cx+a.cr*Math.cos(k);e.y=a.cy+a.cr*Math.sin(k);e.w=e.h=1;if(g&&(0>k||k>2*Math.PI))k=
Math.abs(2*Math.PI-Math.abs(k));k<m||(k<s+m?f=["below-centered","above-centered"]:k<Math.PI+m?f=["before-centered","after-centered"]:k<2*Math.PI-m&&(f=["above-centered","below-centered"]))}b("dojo-bidi")&&this._recheckPosition(a,e,f);g=this.chart.getCoords();e.x+=g.x;e.y+=g.y;e.x=Math.round(e.x);e.y=Math.round(e.y);e.w=Math.ceil(e.w);e.h=Math.ceil(e.h);this.aroundRect=e;(a=this.text(a,this.plot))&&l.show(this._format(a),this.aroundRect,f);this.mouseOver||(this._handle=h.connect(q.doc,"onclick",this,
"onClick"))}},onClick:function(){this.process({type:"onmouseout"})},_recheckPosition:function(a,b,c){},_format:function(a){return a}});return b("dojo-bidi")?k("dojox.charting.action2d.Tooltip",[g,a]):g})},"dojox/charting/action2d/PlotAction":function(){define(["dojo/_base/connect","dojo/_base/declare","./Base","dojo/fx/easing","dojox/lang/functional"],function(l,n,k,q,h){var g=q.backOut;return n("dojox.charting.action2d.PlotAction",k,{overOutEvents:{onmouseover:1,onmouseout:1},constructor:function(e,
d,b){this.anim={};b||(b={});this.duration=b.duration?b.duration:400;this.easing=b.easing?b.easing:g},connect:function(){this.handle=this.chart.connectToPlot(this.plot.name,this,"process")},disconnect:function(){this.handle&&(l.disconnect(this.handle),this.handle=null)},reset:function(){},destroy:function(){this.inherited(arguments);h.forIn(this.anim,function(e){h.forIn(e,function(d){d.action.stop(!0)})});this.anim={}}})})},"dojox/charting/action2d/Base":function(){define(["dojo/_base/lang","dojo/_base/declare",
"dojo/Evented"],function(l,n,k){return n("dojox.charting.action2d.Base",k,{constructor:function(k,h){this.chart=k;this.plot=h?l.isString(h)?this.chart.getPlot(h):h:this.chart.getPlot("default")},connect:function(){},disconnect:function(){},destroy:function(){this.disconnect()}})})},"dojox/lang/functional/scan":function(){define(["dojo/_base/kernel","dojo/_base/lang","./lambda"],function(l,n,k){var q={};n.mixin(k,{scanl:function(h,g,e,d){"string"==typeof h&&(h=h.split(""));d=d||l.global;g=k.lambda(g);
var b,a,c;if(n.isArray(h)){b=Array((a=h.length)+1);b[0]=e;for(c=0;c<a;e=g.call(d,e,h[c],c,h),b[++c]=e);}else if("function"==typeof h.hasNext&&"function"==typeof h.next){b=[e];for(c=0;h.hasNext();b.push(e=g.call(d,e,h.next(),c++,h)));}else for(c in b=[e],h)c in q||b.push(e=g.call(d,e,h[c],c,h));return b},scanl1:function(h,g,e){"string"==typeof h&&(h=h.split(""));e=e||l.global;g=k.lambda(g);var d,b,a;b=!0;if(n.isArray(h)){d=Array(b=h.length);d[0]=a=h[0];for(var c=1;c<b;d[c]=a=g.call(e,a,h[c],c,h),++c);
}else if("function"==typeof h.hasNext&&"function"==typeof h.next){if(h.hasNext()){d=[a=h.next()];for(c=1;h.hasNext();d.push(a=g.call(e,a,h.next(),c++,h)));}}else for(c in h)c in q||(b?(d=[a=h[c]],b=!1):d.push(a=g.call(e,a,h[c],c,h)));return d},scanr:function(h,g,e,d){"string"==typeof h&&(h=h.split(""));d=d||l.global;g=k.lambda(g);var b=h.length,a=Array(b+1),c=b;for(a[b]=e;0<c;--c,e=g.call(d,e,h[c],c,h),a[c]=e);return a},scanr1:function(h,g,e){"string"==typeof h&&(h=h.split(""));e=e||l.global;g=k.lambda(g);
var d=h.length,b=Array(d),a=h[d-1],d=d-1;for(b[d]=a;0<d;--d,a=g.call(e,a,h[d],d,h),b[d]=a);return b}})})},"esri/dijit/Rainbow":function(){define(["dojo/has","dojox/charting/themes/PlotKit/base","../kernel"],function(l,n){var k=n.base.clone();k.chart.fill=k.plotarea.fill="#e7eef6";k.colors="#284B70 #702828 #5F7143 #F6BC0C #382C6C #50224F #1D7554 #4C4C4C #0271AE #706E41 #446A73 #0C3E69 #757575 #B7B7B7 #A3A3A3".split(" ");k.series.stroke.width=1;k.marker.stroke.width=1;l("extend-esri")&&(n.popup=k);
return k})},"dojox/charting/themes/PlotKit/base":function(){define(["dojo/_base/lang","dojo/_base/Color","../../Theme","../common"],function(l,n,k,q){l=l.getObject("PlotKit",!0,q);l.base=new k({chart:{stroke:null,fill:"yellow"},plotarea:{stroke:null,fill:"yellow"},axis:{stroke:{color:"#fff",width:1},line:{color:"#fff",width:0.5},majorTick:{color:"#fff",width:0.5,length:6},minorTick:{color:"#fff",width:0.5,length:3},tick:{font:"normal normal normal 7pt Helvetica,Arial,sans-serif",fontColor:"#999"}},
series:{stroke:{width:2.5,color:"#fff"},fill:"#666",font:"normal normal normal 7.5pt Helvetica,Arial,sans-serif",fontColor:"#666"},marker:{stroke:{width:2},fill:"#333",font:"normal normal normal 7pt Helvetica,Arial,sans-serif",fontColor:"#666"},colors:["red","green","blue"]});l.base.next=function(h,g,e){var d=k.prototype.next.apply(this,arguments);"line"==h?(d.marker.outline={width:2,color:"#fff"},d.series.stroke.width=3.5,d.marker.stroke.width=2):"candlestick"==h?d.series.stroke.width=1:d.series.stroke.color&&
d.series.stroke.color.toString()==(new n(this.colors[(this._current-1)%this.colors.length])).toString()&&(d.series.stroke.color="#fff");return d};return l})},"dojox/charting/Theme":function(){define("dojo/_base/lang dojo/_base/declare dojo/_base/Color ./SimpleTheme dojox/color/_base dojox/color/Palette dojox/gfx/gradutils".split(" "),function(l,n,k,q,h,g){var e=n("dojox.charting.Theme",q,{});l.mixin(e,{defineColors:function(d){d=d||{};var b,a=[],c=d.num||5;if(d.colors){b=d.colors.length;for(var e=
0;e<c;e++)a.push(d.colors[e%b]);return a}return d.hue?(a=d.saturation||100,b=((d.high||90)+(d.low||30))/2,g.generate(h.fromHsv(d.hue,a,b),"monochromatic").colors):d.generator?h.Palette.generate(d.base,d.generator).colors:a},generateGradient:function(d,b,a){d=l.delegate(d);d.colors=[{offset:0,color:b},{offset:1,color:a}];return d},generateHslColor:function(d,b){d=new k(d);var a=d.toHsl(),a=h.fromHsl(a.h,a.s,b);a.a=d.a;return a},generateHslGradient:function(d,b,a,c){d=new k(d);var f=d.toHsl();a=h.fromHsl(f.h,
f.s,a);c=h.fromHsl(f.h,f.s,c);a.a=c.a=d.a;return e.generateGradient(b,a,c)}});e.defaultMarkers=q.defaultMarkers;e.defaultColors=q.defaultColors;e.defaultTheme=q.defaultTheme;return e})},"dojox/color/_base":function(){define(["../main","dojo/_base/lang","dojo/_base/Color","dojo/colors"],function(l,n,k,q){l=n.getObject("color",!0,l);l.Color=k;l.blend=k.blendColors;l.fromRgb=k.fromRgb;l.fromHex=k.fromHex;l.fromArray=k.fromArray;l.fromString=k.fromString;l.greyscale=q.makeGrey;n.mixin(l,{fromCmy:function(h,
g,e){n.isArray(h)?(g=h[1],e=h[2],h=h[0]):n.isObject(h)&&(g=h.m,e=h.y,h=h.c);g=1-g/100;e=1-e/100;return new k({r:Math.round(255*(1-h/100)),g:Math.round(255*g),b:Math.round(255*e)})},fromCmyk:function(h,g,e,d){n.isArray(h)?(g=h[1],e=h[2],d=h[3],h=h[0]):n.isObject(h)&&(g=h.m,e=h.y,d=h.b,h=h.c);g/=100;e/=100;d/=100;h=1-Math.min(1,h/100*(1-d)+d);g=1-Math.min(1,g*(1-d)+d);e=1-Math.min(1,e*(1-d)+d);return new k({r:Math.round(255*h),g:Math.round(255*g),b:Math.round(255*e)})},fromHsl:function(h,g,e){n.isArray(h)?
(g=h[1],e=h[2],h=h[0]):n.isObject(h)&&(g=h.s,e=h.l,h=h.h);g/=100;for(e/=100;0>h;)h+=360;for(;360<=h;)h-=360;var d,b;120>h?(d=(120-h)/60,b=h/60,h=0):240>h?(d=0,b=(240-h)/60,h=(h-120)/60):(d=(h-240)/60,b=0,h=(360-h)/60);d=2*g*Math.min(d,1)+(1-g);b=2*g*Math.min(b,1)+(1-g);h=2*g*Math.min(h,1)+(1-g);0.5>e?(d*=e,b*=e,h*=e):(d=(1-e)*d+2*e-1,b=(1-e)*b+2*e-1,h=(1-e)*h+2*e-1);return new k({r:Math.round(255*d),g:Math.round(255*b),b:Math.round(255*h)})}});l.fromHsv=function(h,g,e){n.isArray(h)?(g=h[1],e=h[2],
h=h[0]):n.isObject(h)&&(g=h.s,e=h.v,h=h.h);360==h&&(h=0);g/=100;e/=100;var d,b,a;if(0==g)b=a=d=e;else{var c=h/60;h=Math.floor(c);var f=c-h,c=e*(1-g),l=e*(1-g*f);g=e*(1-g*(1-f));switch(h){case 0:d=e;b=g;a=c;break;case 1:d=l;b=e;a=c;break;case 2:d=c;b=e;a=g;break;case 3:d=c;b=l;a=e;break;case 4:d=g;b=c;a=e;break;case 5:d=e,b=c,a=l}}return new k({r:Math.round(255*d),g:Math.round(255*b),b:Math.round(255*a)})};n.extend(k,{toCmy:function(){var h=1-this.g/255,g=1-this.b/255;return{c:Math.round(100*(1-this.r/
255)),m:Math.round(100*h),y:Math.round(100*g)}},toCmyk:function(){var h,g,e,d=this.r/255;h=this.g/255;g=this.b/255;e=Math.min(1-d,1-h,1-g);h=(1-h-e)/(1-e);g=(1-g-e)/(1-e);return{c:Math.round(100*((1-d-e)/(1-e))),m:Math.round(100*h),y:Math.round(100*g),b:Math.round(100*e)}},toHsl:function(){var h=this.r/255,g=this.g/255,e=this.b/255,d=Math.min(h,e,g),b=Math.max(h,g,e),a=b-d,c=0,f=0,d=(d+b)/2;0<d&&1>d&&(f=a/(0.5>d?2*d:2-2*d));0<a&&(b==h&&b!=g&&(c+=(g-e)/a),b==g&&b!=e&&(c+=2+(e-h)/a),b==e&&b!=h&&(c+=
4+(h-g)/a),c*=60);return{h:c,s:Math.round(100*f),l:Math.round(100*d)}},toHsv:function(){var h=this.r/255,g=this.g/255,e=this.b/255,d=Math.min(h,e,g),b=Math.max(h,g,e),d=b-d,a=null,c=0==b?0:d/b;0==c?a=0:(a=h==b?60*(g-e)/d:g==b?120+60*(e-h)/d:240+60*(h-g)/d,0>a&&(a+=360));return{h:a,s:Math.round(100*c),v:Math.round(100*b)}}});return l})},"dojox/color/Palette":function(){define(["dojo/_base/lang","dojo/_base/array","./_base"],function(l,n,k){function q(b,a,c){var d=new k.Palette;d.colors=[];n.forEach(b.colors,
function(b){var e="dg"==a?b.g+c:b.g,g="db"==a?b.b+c:b.b,h="da"==a?b.a+c:b.a;d.colors.push(new k.Color({r:Math.min(255,Math.max(0,"dr"==a?b.r+c:b.r)),g:Math.min(255,Math.max(0,e)),b:Math.min(255,Math.max(0,g)),a:Math.min(1,Math.max(0,h))}))});return d}function h(b,a,c){var d=new k.Palette;d.colors=[];n.forEach(b.colors,function(b){b=b.toCmy();var e="dm"==a?b.m+c:b.m,g="dy"==a?b.y+c:b.y;d.colors.push(k.fromCmy(Math.min(100,Math.max(0,"dc"==a?b.c+c:b.c)),Math.min(100,Math.max(0,e)),Math.min(100,Math.max(0,
g))))});return d}function g(b,a,c){var d=new k.Palette;d.colors=[];n.forEach(b.colors,function(b){b=b.toCmyk();var e="dm"==a?b.m+c:b.m,g="dy"==a?b.y+c:b.y,h="dk"==a?b.b+c:b.b;d.colors.push(k.fromCmyk(Math.min(100,Math.max(0,"dc"==a?b.c+c:b.c)),Math.min(100,Math.max(0,e)),Math.min(100,Math.max(0,g)),Math.min(100,Math.max(0,h))))});return d}function e(b,a,c){var d=new k.Palette;d.colors=[];n.forEach(b.colors,function(b){b=b.toHsl();var e="dl"==a?b.l+c:b.l;d.colors.push(k.fromHsl(("dh"==a?b.h+c:b.h)%
360,Math.min(100,Math.max(0,"ds"==a?b.s+c:b.s)),Math.min(100,Math.max(0,e))))});return d}function d(b,a,c){var d=new k.Palette;d.colors=[];n.forEach(b.colors,function(b){b=b.toHsv();var e="dv"==a?b.v+c:b.v;d.colors.push(k.fromHsv(("dh"==a?b.h+c:b.h)%360,Math.min(100,Math.max(0,"ds"==a?b.s+c:b.s)),Math.min(100,Math.max(0,e))))});return d}k.Palette=function(b){this.colors=[];b instanceof k.Palette?this.colors=b.colors.slice(0):b instanceof k.Color?this.colors=[null,null,b,null,null]:l.isArray(b)?this.colors=
n.map(b.slice(0),function(a){return l.isString(a)?new k.Color(a):a}):l.isString(b)&&(this.colors=[null,null,new k.Color(b),null,null])};l.extend(k.Palette,{transform:function(b){var a=q;if(b.use){var c=b.use.toLowerCase();0==c.indexOf("hs")?a="l"==c.charAt(2)?e:d:0==c.indexOf("cmy")&&(a="k"==c.charAt(3)?g:h)}else if("dc"in b||"dm"in b||"dy"in b)a="dk"in b?g:h;else if("dh"in b||"ds"in b)a="dv"in b?d:e;var c=this,f;for(f in b)"use"!=f&&(c=a(c,f,b[f]));return c},clone:function(){return new k.Palette(this)}});
l.mixin(k.Palette,{generators:{analogous:function(b){var a=b.high||60,c=b.low||18;b=(l.isString(b.base)?new k.Color(b.base):b.base).toHsv();var a=[(b.h+c+360)%360,(b.h+Math.round(c/2)+360)%360,b.h,(b.h-Math.round(a/2)+360)%360,(b.h-a+360)%360],c=Math.max(10,95>=b.s?b.s+5:100-(b.s-95)),d=1<b.s?b.s-1:21-b.s,e=92<=b.v?b.v-9:Math.max(b.v+9,20),g=90>=b.v?Math.max(b.v+5,20):95+Math.ceil((b.v-90)/2),h=[c,d,b.s,c,c],q=[e,g,b.v,e,g];return new k.Palette(n.map(a,function(a,b){return k.fromHsv(a,h[b],q[b])}))},
monochromatic:function(b){b=l.isString(b.base)?new k.Color(b.base):b.base;var a=b.toHsv(),c=9<a.s-30?a.s-30:a.s+30,d=a.s,e=20<a.v-20?a.v-20:a.v+60,g=20<a.v-50?a.v-50:a.v+30;return new k.Palette([k.fromHsv(a.h,c,100-0.8*(100-a.v)),k.fromHsv(a.h,d,g),b,k.fromHsv(a.h,c,g),k.fromHsv(a.h,d,e)])},triadic:function(b){b=l.isString(b.base)?new k.Color(b.base):b.base;var a=b.toHsv(),c=(a.h-157+360)%360,d=90<a.s?a.s-10:a.s+10,e=95<a.s?a.s-5:a.s+5,g=20<a.v-20?a.v-20:a.v+20,h=20<a.v-30?a.v-30:a.v+30,n=70<a.v-
30?a.v-30:a.v+30;return new k.Palette([k.fromHsv((a.h+57+360)%360,20<a.s?a.s-10:a.s+10,a.v),k.fromHsv(a.h,d,h),b,k.fromHsv(c,d,g),k.fromHsv(c,e,n)])},complementary:function(b){b=l.isString(b.base)?new k.Color(b.base):b.base;var a=b.toHsv(),c=360>2*a.h+137?2*a.h+137:Math.floor(a.h/2)-137,d=Math.max(a.s-10,0),e=100-0.9*(100-a.s),g=Math.min(100,a.s+20),h=Math.min(100,a.v+30),n=20<a.v?a.v-30:a.v+30;return new k.Palette([k.fromHsv(a.h,d,h),k.fromHsv(a.h,e,n),b,k.fromHsv(c,g,n),k.fromHsv(c,a.s,a.v)])},
splitComplementary:function(b){var a=l.isString(b.base)?new k.Color(b.base):b.base,c=b.da||30;b=a.toHsv();var d=360>2*b.h+137?2*b.h+137:Math.floor(b.h/2)-137,e=(d-c+360)%360,c=(d+c)%360,d=Math.max(b.s-10,0),g=100-0.9*(100-b.s),h=Math.min(100,b.s+20),n=Math.min(100,b.v+30),q=20<b.v?b.v-30:b.v+30;return new k.Palette([k.fromHsv(e,d,n),k.fromHsv(e,g,q),a,k.fromHsv(c,h,q),k.fromHsv(c,b.s,b.v)])},compound:function(b){b=l.isString(b.base)?new k.Color(b.base):b.base;var a=b.toHsv(),c=360>2*a.h+18?2*a.h+
18:Math.floor(a.h/2)-18,d=360>2*a.h+120?2*a.h+120:Math.floor(a.h/2)-120,e=360>2*a.h+99?2*a.h+99:Math.floor(a.h/2)-99,g=10<a.s-40?a.s-40:a.s+40,h=80<a.s-10?a.s-10:a.s+10,n=10<a.s-25?a.s-25:a.s+25,q=10<a.v-40?a.v-40:a.v+40,v=80<a.v-20?a.v-20:a.v+20,a=Math.max(a.v,20);return new k.Palette([k.fromHsv(c,g,q),k.fromHsv(c,h,v),b,k.fromHsv(d,n,a),k.fromHsv(e,h,v)])},shades:function(b){b=l.isString(b.base)?new k.Color(b.base):b.base;var a=b.toHsv(),c=100==a.s&&0==a.v?0:a.s,d=20<a.v-50?a.v-50:a.v+30,e=20<=
a.v-25?a.v-25:a.v+55,g=20<=a.v-75?a.v-75:a.v+5,h=Math.max(a.v-10,20);return new k.Palette([new k.fromHsv(a.h,c,d),new k.fromHsv(a.h,c,e),b,new k.fromHsv(a.h,c,g),new k.fromHsv(a.h,c,h)])}},generate:function(b,a){if(l.isFunction(a))return a({base:b});if(k.Palette.generators[a])return k.Palette.generators[a]({base:b});throw Error("dojox.color.Palette.generate: the specified generator ('"+a+"') does not exist.");}});return k.Palette})},"dojox/charting/themes/common":function(){define(["dojo/_base/lang"],
function(l){return l.getObject("dojox.charting.themes",!0)})},"dojox/charting/themes/Adobebricks":function(){define(["../SimpleTheme","./common"],function(l,n){n.Adobebricks=new l({colors:["#7f2518","#3e170c","#cc3927","#651f0e","#8c271c"]});return n.Adobebricks})},"dojox/charting/themes/Algae":function(){define(["../SimpleTheme","./common"],function(l,n){n.Algae=new l({colors:["#57808f","#506885","#4f7878","#558f7f","#508567"]});return n.Algae})},"dojox/charting/themes/Bahamation":function(){define(["../SimpleTheme",
"./common"],function(l,n){n.Bahamation=new l({colors:["#3f9998","#3fc0c3","#70c058","#ef446f","#c663a6"]});return n.Bahamation})},"dojox/charting/themes/BlueDusk":function(){define(["../SimpleTheme","./common"],function(l,n){n.BlueDusk=new l({colors:["#292e76","#3e56a6","#10143f","#33449c","#798dcd"]});return n.BlueDusk})},"dojox/charting/themes/Charged":function(){define(["../Theme","dojox/gfx/gradutils","./common"],function(l,n,k){var q=l.generateGradient,h={type:"linear",space:"shape",x1:0,y1:0,
x2:0,y2:75};k.Charged=new l({chart:{fill:"#ededdf",pageStyle:{backgroundColor:"#ededdf",backgroundImage:"none",color:"inherit"}},plotarea:{fill:"transparent"},axis:{stroke:{color:"#808078",width:1},tick:{color:"#b3b3a8",position:"center",font:"normal normal normal 7pt Helvetica, Arial, sans-serif",fontColor:"#808078"}},series:{stroke:{width:2,color:"#595954"},outline:null,font:"normal normal normal 8pt Helvetica, Arial, sans-serif",fontColor:"#808078"},marker:{stroke:{width:3,color:"#595954"},outline:null,
font:"normal normal normal 8pt Helvetica, Arial, sans-serif",fontColor:"#808078"},seriesThemes:[{fill:q(h,"#004cbf","#06f")},{fill:q(h,"#bf004c","#f06")},{fill:q(h,"#43bf00","#6f0")},{fill:q(h,"#7300bf","#90f")},{fill:q(h,"#bf7300","#f90")},{fill:q(h,"#00bf73","#0f9")}],markerThemes:[{fill:"#06f",stroke:{color:"#06f"}},{fill:"#f06",stroke:{color:"#f06"}},{fill:"#6f0",stroke:{color:"#6f0"}},{fill:"#90f",stroke:{color:"#90f"}},{fill:"#f90",stroke:{color:"#f90"}},{fill:"#0f9",stroke:{color:"#0f9"}}]});
k.Charged.next=function(g,e,d){var b="line"==g;if(b||"area"==g){var a=this.seriesThemes[this._current%this.seriesThemes.length];a.fill.space="plot";b&&(a.stroke={width:2.5,color:a.fill.colors[1].color});"area"==g&&(a.fill.y2=90);b=l.prototype.next.apply(this,arguments);delete a.stroke;a.fill.y2=75;a.fill.space="shape";return b}return l.prototype.next.apply(this,arguments)};k.Charged.post=function(g,e){g=l.prototype.post.apply(this,arguments);if(("slice"==e||"circle"==e)&&g.series.fill&&"radial"==
g.series.fill.type)g.series.fill=n.reverse(g.series.fill);return g};return k.Charged})},"dojox/charting/themes/Chris":function(){define(["../Theme","dojox/gfx/gradutils","./common"],function(l,n,k){var q=l.generateGradient,h={type:"linear",space:"shape",x1:0,y1:0,x2:0,y2:100};k.Chris=new l({chart:{fill:"#c1c1c1",stroke:{color:"#666"}},plotarea:{fill:"#c1c1c1"},series:{stroke:{width:2,color:"white"},outline:null,fontColor:"#333"},marker:{stroke:{width:2,color:"white"},outline:{width:2,color:"white"},
fontColor:"#333"},seriesThemes:[{fill:q(h,"#01b717","#238c01")},{fill:q(h,"#d04918","#7c0344")},{fill:q(h,"#0005ec","#002578")},{fill:q(h,"#f9e500","#786f00")},{fill:q(h,"#e27d00","#773e00")},{fill:q(h,"#00b5b0","#005f5d")},{fill:q(h,"#ac00cb","#590060")}],markerThemes:[{fill:"#01b717",stroke:{color:"#238c01"}},{fill:"#d04918",stroke:{color:"#7c0344"}},{fill:"#0005ec",stroke:{color:"#002578"}},{fill:"#f9e500",stroke:{color:"#786f00"}},{fill:"#e27d00",stroke:{color:"#773e00"}},{fill:"#00b5b0",stroke:{color:"#005f5d"}},
{fill:"#ac00cb",stroke:{color:"#590060"}}]});k.Chris.next=function(g,e,d){var b="line"==g;if(b||"area"==g){var a=this.seriesThemes[this._current%this.seriesThemes.length];a.fill.space="plot";b&&(a.stroke={color:a.fill.colors[1].color},a.outline={width:2,color:"white"});b=l.prototype.next.apply(this,arguments);delete a.outline;delete a.stroke;a.fill.space="shape";return b}return l.prototype.next.apply(this,arguments)};k.Chris.post=function(g,e){g=l.prototype.post.apply(this,arguments);if(("slice"==
e||"circle"==e)&&g.series.fill&&"radial"==g.series.fill.type)g.series.fill=n.reverse(g.series.fill);return g};return k.Chris})},"dojox/charting/themes/Claro":function(){define(["../Theme","dojox/gfx/gradutils","./common"],function(l,n,k){var q=l.generateGradient,h={type:"linear",space:"shape",x1:0,y1:0,x2:0,y2:100};k.Claro=new l({chart:{fill:{type:"linear",x1:0,x2:0,y1:0,y2:100,colors:[{offset:0,color:"#dbdbdb"},{offset:1,color:"#efefef"}]},stroke:{color:"#b5bcc7"}},plotarea:{fill:{type:"linear",
x1:0,x2:0,y1:0,y2:100,colors:[{offset:0,color:"#dbdbdb"},{offset:1,color:"#efefef"}]}},axis:{stroke:{color:"#888c76",width:1},tick:{color:"#888c76",position:"center",font:"normal normal normal 7pt Verdana, Arial, sans-serif",fontColor:"#888c76"}},series:{stroke:{width:2.5,color:"#fff"},outline:null,font:"normal normal normal 7pt Verdana, Arial, sans-serif",fontColor:"#131313"},marker:{stroke:{width:1.25,color:"#131313"},outline:{width:1.25,color:"#131313"},font:"normal normal normal 8pt Verdana, Arial, sans-serif",
fontColor:"#131313"},seriesThemes:[{fill:q(h,"#2a6ead","#3a99f2")},{fill:q(h,"#613e04","#996106")},{fill:q(h,"#0e3961","#155896")},{fill:q(h,"#55aafa","#3f7fba")},{fill:q(h,"#ad7b2a","#db9b35")}],markerThemes:[{fill:"#2a6ead",stroke:{color:"#fff"}},{fill:"#613e04",stroke:{color:"#fff"}},{fill:"#0e3961",stroke:{color:"#fff"}},{fill:"#55aafa",stroke:{color:"#fff"}},{fill:"#ad7b2a",stroke:{color:"#fff"}}]});k.Claro.next=function(g,e,d){var b="line"==g,a;if(b||"area"==g){a=this.seriesThemes[this._current%
this.seriesThemes.length];var c=this.markerThemes[this._current%this.markerThemes.length];a.fill.space="plot";b&&(a.stroke={width:4,color:a.fill.colors[0].color});c.outline={width:1.25,color:c.fill};b=l.prototype.next.apply(this,arguments);delete a.outline;delete a.stroke;a.fill.space="shape";return b}return"candlestick"==g?(a=this.seriesThemes[this._current%this.seriesThemes.length],a.fill.space="plot",a.stroke={width:1,color:a.fill.colors[0].color},b=l.prototype.next.apply(this,arguments)):l.prototype.next.apply(this,
arguments)};k.Claro.post=function(g,e){g=l.prototype.post.apply(this,arguments);if(("slice"==e||"circle"==e)&&g.series.fill&&"radial"==g.series.fill.type)g.series.fill=n.reverse(g.series.fill);return g};return k.Claro})},"dojox/charting/themes/CubanShirts":function(){define(["../SimpleTheme","./common"],function(l,n){n.CubanShirts=new l({colors:["#d42d2a","#004f80","#989736","#2085c7","#7f7f33"]});return n.CubanShirts})},"dojox/charting/themes/Desert":function(){define(["../SimpleTheme","./common"],
function(l,n){n.Desert=new l({colors:["#ffebd5","#806544","#fdc888","#80766b","#cda26e"]});return n.Desert})},"dojox/charting/themes/Distinctive":function(){define(["../SimpleTheme","./common"],function(l,n){n.Distinctive=new l({colors:"#497c91 #ada9d6 #768b4e #eeea99 #b39c53 #c28b69 #815454 #bebebe #59a0bd #c9c6e4 #677e13 #f0eebb #e9c756 #cfb09b #a05a5a #d8d8d8 #9dc7d9 #7b78a4 #a8c179 #b7b35c #ebcf81 #956649 #c99999 #868686 #c7e0e9 #8d88c7 #c0d0a0 #e8e667 #efdeb0 #b17044 #ddc0c0 #a5a5a5".split(" ")});
return n.Distinctive})},"dojox/charting/themes/Dollar":function(){define(["../SimpleTheme","./common"],function(l,n){n.Dollar=new l({colors:["#A4CE67","#739363","#6B824A","#343434","#636563"]});return n.Dollar})},"dojox/charting/themes/Electric":function(){define(["../Theme","dojox/gfx/gradutils","./common"],function(l,n,k){var q=l.generateGradient,h={type:"linear",space:"shape",x1:0,y1:0,x2:0,y2:75};k.Electric=new l({chart:{fill:"#252525",stroke:{color:"#252525"},pageStyle:{backgroundColor:"#252525",
backgroundImage:"none",color:"#ccc"}},plotarea:{fill:"#252525"},axis:{stroke:{color:"#aaa",width:1},tick:{color:"#777",position:"center",font:"normal normal normal 7pt Helvetica, Arial, sans-serif",fontColor:"#777"}},series:{stroke:{width:2,color:"#ccc"},outline:null,font:"normal normal normal 8pt Helvetica, Arial, sans-serif",fontColor:"#ccc"},marker:{stroke:{width:3,color:"#ccc"},outline:null,font:"normal normal normal 8pt Helvetica, Arial, sans-serif",fontColor:"#ccc"},seriesThemes:[{fill:q(h,
"#004cbf","#06f")},{fill:q(h,"#bf004c","#f06")},{fill:q(h,"#43bf00","#6f0")},{fill:q(h,"#7300bf","#90f")},{fill:q(h,"#bf7300","#f90")},{fill:q(h,"#00bf73","#0f9")}],markerThemes:[{fill:"#06f",stroke:{color:"#06f"}},{fill:"#f06",stroke:{color:"#f06"}},{fill:"#6f0",stroke:{color:"#6f0"}},{fill:"#90f",stroke:{color:"#90f"}},{fill:"#f90",stroke:{color:"#f90"}},{fill:"#0f9",stroke:{color:"#0f9"}}]});k.Electric.next=function(g,e,d){var b="line"==g;if(b||"area"==g){var a=this.seriesThemes[this._current%
this.seriesThemes.length];a.fill.space="plot";b&&(a.stroke={width:2.5,color:a.fill.colors[1].color});"area"==g&&(a.fill.y2=90);b=l.prototype.next.apply(this,arguments);delete a.stroke;a.fill.y2=75;a.fill.space="shape";return b}return l.prototype.next.apply(this,arguments)};k.Electric.post=function(g,e){g=l.prototype.post.apply(this,arguments);if(("slice"==e||"circle"==e)&&g.series.fill&&"radial"==g.series.fill.type)g.series.fill=n.reverse(g.series.fill);return g};return k.Electric})},"dojox/charting/themes/Grasshopper":function(){define(["dojo/_base/lang",
"../SimpleTheme","./common"],function(l,n,k){k.Grasshopper=new n({colors:["#208040","#40b657","#78c25e","#14401f","#64bd5f"]});return k.Grasshopper})},"dojox/charting/themes/Grasslands":function(){define(["../SimpleTheme","./common"],function(l,n){n.Grasslands=new l({colors:["#70803a","#dde574","#788062","#b1cc5d","#eff2c2"]});return n.Grasslands})},"dojox/charting/themes/GreySkies":function(){define(["../SimpleTheme","./common"],function(l,n){n.GreySkies=new l;return n.GreySkies})},"dojox/charting/themes/Harmony":function(){define(["../SimpleTheme",
"./common"],function(l,n){n.Harmony=new l({colors:"#497c91 #59a0bd #9dc7d9 #c7e0e9 #7b78a4 #8d88c7 #ada9d6 #c9c6e4 #768b4e #677e13 #a8c179 #c0d0a0 #b7b35c #e8e667 #eeea99 #f0eebb #b39c53 #e9c756 #ebcf81 #efdeb0 #956649 #b17044 #c28b69 #cfb09b #815454 #a05a5a #c99999 #ddc0c0 #868686 #a5a5a5 #bebebe #d8d8d8".split(" ")});return n.Harmony})},"dojox/charting/themes/IndigoNation":function(){define(["../SimpleTheme","./common"],function(l,n){n.IndigoNation=new l({colors:["#93a4d0","#3b4152","#687291","#9faed9",
"#8290b8"]});return n.IndigoNation})},"dojox/charting/themes/Ireland":function(){define(["../SimpleTheme","./common"],function(l,n){n.Ireland=new l({colors:["#abdbcb","#435a51","#70998b","#78d596","#5f8074"]});return n.Ireland})},"dojox/charting/themes/Julie":function(){define(["../Theme","dojox/gfx/gradutils","./common"],function(l,n,k){var q=l.generateGradient,h={type:"linear",space:"shape",x1:0,y1:0,x2:0,y2:100};k.Julie=new l({seriesThemes:[{fill:q(h,"#59a0bd","#497c91"),stroke:{color:"#22627d"}},
{fill:q(h,"#8d88c7","#6c6d8e"),stroke:{color:"#8a84c5"}},{fill:q(h,"#85a54a","#768b4e"),stroke:{color:"#5b6d1f"}},{fill:q(h,"#e8e667","#c6c361"),stroke:{color:"#918e38"}},{fill:q(h,"#e9c756","#c7a223"),stroke:{color:"#947b30"}},{fill:q(h,"#a05a5a","#815454"),stroke:{color:"#572828"}},{fill:q(h,"#b17044","#72543e"),stroke:{color:"#74482e"}},{fill:q(h,"#a5a5a5","#727272"),stroke:{color:"#535353"}},{fill:q(h,"#9dc7d9","#59a0bd"),stroke:{color:"#22627d"}},{fill:q(h,"#b7b3da","#8681b3"),stroke:{color:"#8a84c5"}},
{fill:q(h,"#a8c179","#85a54a"),stroke:{color:"#5b6d1f"}},{fill:q(h,"#eeea99","#d6d456"),stroke:{color:"#918e38"}},{fill:q(h,"#ebcf81","#e9c756"),stroke:{color:"#947b30"}},{fill:q(h,"#c99999","#a05a5a"),stroke:{color:"#572828"}},{fill:q(h,"#c28b69","#7d5437"),stroke:{color:"#74482e"}},{fill:q(h,"#bebebe","#8c8c8c"),stroke:{color:"#535353"}},{fill:q(h,"#c7e0e9","#92baca"),stroke:{color:"#22627d"}},{fill:q(h,"#c9c6e4","#ada9d6"),stroke:{color:"#8a84c5"}},{fill:q(h,"#c0d0a0","#98ab74"),stroke:{color:"#5b6d1f"}},
{fill:q(h,"#f0eebb","#dcd87c"),stroke:{color:"#918e38"}},{fill:q(h,"#efdeb0","#ebcf81"),stroke:{color:"#947b30"}},{fill:q(h,"#ddc0c0","#c99999"),stroke:{color:"#572828"}},{fill:q(h,"#cfb09b","#c28b69"),stroke:{color:"#74482e"}},{fill:q(h,"#d8d8d8","#bebebe"),stroke:{color:"#535353"}},{fill:q(h,"#ddeff5","#a5c4cd"),stroke:{color:"#22627d"}},{fill:q(h,"#dedcf0","#b3afd3"),stroke:{color:"#8a84c5"}},{fill:q(h,"#dfe9ca","#c0d0a0"),stroke:{color:"#5b6d1f"}},{fill:q(h,"#f8f7db","#e5e28f"),stroke:{color:"#918e38"}},
{fill:q(h,"#f7f0d8","#cfbd88"),stroke:{color:"#947b30"}},{fill:q(h,"#eedede","#caafaf"),stroke:{color:"#572828"}},{fill:q(h,"#e3cdbf","#cfb09b"),stroke:{color:"#74482e"}},{fill:q(h,"#efefef","#cacaca"),stroke:{color:"#535353"}}]});k.Julie.next=function(g,e,d){if("line"==g||"area"==g){var b=this.seriesThemes[this._current%this.seriesThemes.length];b.fill.space="plot";var a=l.prototype.next.apply(this,arguments);b.fill.space="shape";return a}return l.prototype.next.apply(this,arguments)};k.Julie.post=
function(g,e){g=l.prototype.post.apply(this,arguments);"slice"==e&&(g.series.fill&&"radial"==g.series.fill.type)&&(g.series.fill=n.reverse(g.series.fill));return g};return k.Julie})},"dojox/charting/themes/MiamiNice":function(){define(["../SimpleTheme","./common"],function(l,n){n.MiamiNice=new l({colors:["#7f9599","#45b8cc","#8ecfb0","#f8acac","#cc4482"]});return n.MiamiNice})},"dojox/charting/themes/Midwest":function(){define(["../SimpleTheme","./common"],function(l,n){n.Midwest=new l({colors:["#927b51",
"#a89166","#80c31c","#bcdd5a","#aebc21"]});return n.Midwest})},"dojox/charting/themes/Minty":function(){define(["../SimpleTheme","./common"],function(l,n){n.Minty=new l({colors:["#80ccbb","#539e8b","#335f54","#8dd1c2","#68c5ad"]});return n.Minty})},"dojox/charting/themes/PrimaryColors":function(){define(["../Theme","./gradientGenerator","./common"],function(l,n,k){k.PrimaryColors=new l({seriesThemes:n.generateMiniTheme("#f00 #0f0 #00f #ff0 #0ff #f0f ./common".split(" "),{type:"linear",space:"plot",
x1:0,y1:0,x2:0,y2:100},90,40,25)});return k.PrimaryColors})},"dojox/charting/themes/gradientGenerator":function(){define("dojo/_base/lang dojo/_base/array dojo/_base/Color ../Theme dojox/color/_base ./common".split(" "),function(l,n,k,q,h,g){l=l.getObject("gradientGenerator",!0,g);l.generateFills=function(e,d,b,a){return n.map(e,function(c){return q.generateHslGradient(c,d,b,a)})};l.updateFills=function(e,d,b,a){n.forEach(e,function(c){c.fill&&!c.fill.type&&(c.fill=q.generateHslGradient(c.fill,d,
b,a))})};l.generateMiniTheme=function(e,d,b,a,c){return n.map(e,function(e){e=new h.Color(e);return{fill:q.generateHslGradient(e,d,b,a),stroke:{color:q.generateHslColor(e,c)}}})};l.generateGradientByIntensity=function(e,d){e=new k(e);return n.map(d,function(b){var a=b.i/255;return{offset:b.o,color:new k([e.r*a,e.g*a,e.b*a,e.a])}})};return l})},"dojox/charting/themes/PurpleRain":function(){define(["../SimpleTheme","./common"],function(l,n){n.PurpleRain=new l({colors:["#4879bc","#ef446f","#3f58a7",
"#8254a2","#4956a6"]});return n.PurpleRain})},"dojox/charting/themes/Renkoo":function(){define(["../Theme","dojox/gfx/gradutils","./common"],function(l,n,k){var q=l.generateGradient,h={type:"linear",space:"shape",x1:0,y1:0,x2:0,y2:150};k.Renkoo=new l({chart:{fill:"#123666",pageStyle:{backgroundColor:"#123666",backgroundImage:"none",color:"#95afdb"}},plotarea:{fill:"#123666"},axis:{stroke:{color:"#95afdb",width:1},tick:{color:"#95afdb",position:"center",font:"normal normal normal 7pt Lucida Grande, Helvetica, Arial, sans-serif",
fontColor:"#95afdb"}},series:{stroke:{width:2.5,color:"#123666"},outline:null,font:"normal normal normal 8pt Lucida Grande, Helvetica, Arial, sans-serif",fontColor:"#95afdb"},marker:{stroke:{width:2.5,color:"#ccc"},outline:null,font:"normal normal normal 8pt Lucida Grande, Helvetica, Arial, sans-serif",fontColor:"#95afdb"},seriesThemes:[{fill:q(h,"#e7e391","#f8f7de")},{fill:q(h,"#ffb6b6","#ffe8e8")},{fill:q(h,"#bcda7d","#eef7da")},{fill:q(h,"#d5d5d5","#f4f4f4")},{fill:q(h,"#c1e3fd","#e4f3ff")}],markerThemes:[{fill:"#fcfcf3",
stroke:{color:"#e7e391"}},{fill:"#fff1f1",stroke:{color:"#ffb6b6"}},{fill:"#fafdf4",stroke:{color:"#bcda7d"}},{fill:"#fbfbfb",stroke:{color:"#d5d5d5"}},{fill:"#f3faff",stroke:{color:"#c1e3fd"}}]});k.Renkoo.next=function(g,e,d){if(-1=="slice,column,bar".indexOf(g)){var b=this.seriesThemes[this._current%this.seriesThemes.length];b.fill.space="plot";b.stroke={width:2,color:b.fill.colors[0].color};if("line"==g||"area"==g)b.stroke.width=4;var a=l.prototype.next.apply(this,arguments);delete b.stroke;b.fill.space=
"shape";return a}return l.prototype.next.apply(this,arguments)};k.Renkoo.post=function(g,e){g=l.prototype.post.apply(this,arguments);if(("slice"==e||"circle"==e)&&g.series.fill&&"radial"==g.series.fill.type)g.series.fill=n.reverse(g.series.fill);return g};return k.Renkoo})},"dojox/charting/themes/RoyalPurples":function(){define(["../SimpleTheme","./common"],function(l,n){n.RoyalPurples=new l({colors:["#473980","#685aa7","#7970b3","#231c3f","#7267ae"]});return n.RoyalPurples})},"dojox/charting/themes/SageToLime":function(){define(["../SimpleTheme",
"./common"],function(l,n){n.SageToLime=new l({colors:"#abdbcb #435a51 #70998b #5f8074 #80ccbb #539e8b #78a596 #335f54 #8dd1c2 #68c5ad".split(" ")});return n.SageToLime})},"dojox/charting/themes/Shrooms":function(){define(["../SimpleTheme","./common"],function(l,n){n.Shrooms=new l({colors:"#bf1313 #69bf13 #13bfbf #6913bf #bf6913 #13bf13 #1369bf #bf13bf #bfbf13 #13bf69 #1313bf #bf1369".split(" ")});return n.Shrooms})},"dojox/charting/themes/ThreeD":function(){define("dojo/_base/lang dojo/_base/array ../Theme ./gradientGenerator ./PrimaryColors dojo/colors ./common".split(" "),
function(l,n,k,q,h,g){var e={type:"linear",space:"shape",x1:0,y1:0,x2:100,y2:0},d=[{o:0,i:174},{o:0.08,i:231},{o:0.18,i:237},{o:0.3,i:231},{o:0.39,i:221},{o:0.49,i:206},{o:0.58,i:187},{o:0.68,i:165},{o:0.8,i:128},{o:0.9,i:102},{o:1,i:174}],b=n.map("#f00 #0f0 #00f #ff0 #0ff #f0f ./common".split(" "),function(a){var b=l.delegate(e);a=(b.colors=q.generateGradientByIntensity(a,d))[2].color;a.r+=100;a.g+=100;a.b+=100;a.sanitize();return b});g.ThreeD=h.clone();g.ThreeD.series.shadow={dx:1,dy:1,width:3,
color:[0,0,0,0.15]};g.ThreeD.next=function(a,c,d){if("bar"==a||"column"==a){var e=this._current%this.seriesThemes.length,g=this.seriesThemes[e],h=g.fill;g.fill=b[e];e=k.prototype.next.apply(this,arguments);g.fill=h;return e}return k.prototype.next.apply(this,arguments)};return g.ThreeD})},"dojox/charting/themes/Tom":function(){define(["../Theme","dojox/gfx/gradutils","./common"],function(l,n,k){var q=l.generateGradient,h={type:"linear",space:"shape",x1:0,y1:0,x2:0,y2:100};k.Tom=new l({chart:{fill:"#181818",
stroke:{color:"#181818"},pageStyle:{backgroundColor:"#181818",backgroundImage:"none",color:"#eaf2cb"}},plotarea:{fill:"#181818"},axis:{stroke:{color:"#a0a68b",width:1},tick:{color:"#888c76",position:"center",font:"normal normal normal 7pt Helvetica, Arial, sans-serif",fontColor:"#888c76"}},series:{stroke:{width:2.5,color:"#eaf2cb"},outline:null,font:"normal normal normal 8pt Helvetica, Arial, sans-serif",fontColor:"#eaf2cb"},marker:{stroke:{width:1.25,color:"#eaf2cb"},outline:{width:1.25,color:"#eaf2cb"},
font:"normal normal normal 8pt Helvetica, Arial, sans-serif",fontColor:"#eaf2cb"},seriesThemes:[{fill:q(h,"#bf9e0a","#ecc20c")},{fill:q(h,"#73b086","#95e5af")},{fill:q(h,"#c7212d","#ed2835")},{fill:q(h,"#87ab41","#b6e557")},{fill:q(h,"#b86c25","#d37d2a")}],markerThemes:[{fill:"#bf9e0a",stroke:{color:"#ecc20c"}},{fill:"#73b086",stroke:{color:"#95e5af"}},{fill:"#c7212d",stroke:{color:"#ed2835"}},{fill:"#87ab41",stroke:{color:"#b6e557"}},{fill:"#b86c25",stroke:{color:"#d37d2a"}}]});k.Tom.next=function(g,
e,d){var b="line"==g;if(b||"area"==g){var a=this.seriesThemes[this._current%this.seriesThemes.length];a.fill.space="plot";b&&(a.stroke={width:4,color:a.fill.colors[0].color});b=l.prototype.next.apply(this,arguments);delete a.outline;delete a.stroke;a.fill.space="shape";return b}return l.prototype.next.apply(this,arguments)};k.Tom.post=function(g,e){g=l.prototype.post.apply(this,arguments);if(("slice"==e||"circle"==e)&&g.series.fill&&"radial"==g.series.fill.type)g.series.fill=n.reverse(g.series.fill);
return g};return k.Tom})},"dojox/charting/themes/Tufte":function(){define(["../SimpleTheme","dojo/_base/Color","./common"],function(l,n,k){k.Tufte=new l({chart:{stroke:null,fill:"inherit"},plotarea:{stroke:null,fill:"transparent"},axis:{stroke:{width:1,color:"#ccc"},majorTick:{color:"black",width:1,length:5},minorTick:{color:"#666",width:1,length:2},font:"normal normal normal 8pt Tahoma",fontColor:"#999"},series:{outline:null,stroke:{width:1,color:"black"},fill:new n([59,68,75,0.85]),font:"normal normal normal 7pt Tahoma",
fontColor:"#717171"},marker:{stroke:{width:1,color:"black"},fill:"#333",font:"normal normal normal 7pt Tahoma",fontColor:"black"},colors:[n.fromHex("#8a8c8f"),n.fromHex("#4b4b4b"),n.fromHex("#3b444b"),n.fromHex("#2e2d30"),n.fromHex("#000000")]});return k.Tufte})},"dojox/charting/themes/WatersEdge":function(){define(["../SimpleTheme","./common"],function(l,n){n.WatersEdge=new l({colors:["#437cc0","#6256a5","#4552a3","#43c4f2","#4b66b0"]});return n.WatersEdge})},"dojox/charting/themes/Wetland":function(){define(["../SimpleTheme",
"./common"],function(l,n){n.Wetland=new l({colors:["#bfbc64","#737130","#73373b","#7dafca","#8d3c42"]});return n.Wetland})},"dojox/charting/themes/PlotKit/blue":function(){define(["./base","../../Theme"],function(l,n){l.blue=l.base.clone();l.blue.chart.fill=l.blue.plotarea.fill="#e7eef6";l.blue.colors=n.defineColors({hue:217,saturation:60,low:40,high:88});return l.blue})},"dojox/charting/themes/PlotKit/cyan":function(){define(["./base","../../Theme"],function(l,n){l.cyan=l.base.clone();l.cyan.chart.fill=
l.cyan.plotarea.fill="#e6f1f5";l.cyan.colors=n.defineColors({hue:194,saturation:60,low:40,high:88});return l.cyan})},"dojox/charting/themes/PlotKit/green":function(){define(["./base","../../Theme"],function(l,n){l.green=l.base.clone();l.green.chart.fill=l.green.plotarea.fill="#eff5e6";l.green.colors=n.defineColors({hue:82,saturation:60,low:40,high:88});return l.green})},"dojox/charting/themes/PlotKit/orange":function(){define(["./base","../../Theme"],function(l,n){l.orange=l.base.clone();l.orange.chart.fill=
l.orange.plotarea.fill="#f5eee6";l.orange.colors=n.defineColors({hue:31,saturation:60,low:40,high:88});return l.orange})},"dojox/charting/themes/PlotKit/purple":function(){define(["./base","../../Theme"],function(l,n){l.purple=l.base.clone();l.purple.chart.fill=l.purple.plotarea.fill="#eee6f5";l.purple.colors=n.defineColors({hue:271,saturation:60,low:40,high:88});return l.purple})},"dojox/charting/themes/PlotKit/red":function(){define(["./base","../../Theme"],function(l,n){l.red=l.base.clone();l.red.chart.fill=
l.red.plotarea.fill="#f5e6e6";l.red.colors=n.defineColors({hue:1,saturation:60,low:40,high:88});return l.red})},"url:dijit/form/templates/Button.html":'\x3cspan class\x3d"dijit dijitReset dijitInline" role\x3d"presentation"\n\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonNode"\n\t\tdata-dojo-attach-event\x3d"ondijitclick:__onClick" role\x3d"presentation"\n\t\t\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point\x3d"titleNode,focusNode"\n\t\t\trole\x3d"button" aria-labelledby\x3d"${id}_label"\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitToggleButtonIconChar"\x3e\x26#x25CF;\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonText"\n\t\t\t\tid\x3d"${id}_label"\n\t\t\t\tdata-dojo-attach-point\x3d"containerNode"\n\t\t\t\x3e\x3c/span\n\t\t\x3e\x3c/span\n\t\x3e\x3c/span\n\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" class\x3d"dijitOffScreen"\n\t\tdata-dojo-attach-event\x3d"onclick:_onClick"\n\t\ttabIndex\x3d"-1" role\x3d"presentation" aria-hidden\x3d"true" data-dojo-attach-point\x3d"valueNode"\n/\x3e\x3c/span\x3e\n',
"url:dijit/form/templates/DropDownButton.html":'\x3cspan class\x3d"dijit dijitReset dijitInline"\n\t\x3e\x3cspan class\x3d\'dijitReset dijitInline dijitButtonNode\'\n\t\tdata-dojo-attach-event\x3d"ondijitclick:__onClick" data-dojo-attach-point\x3d"_buttonNode"\n\t\t\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point\x3d"focusNode,titleNode,_arrowWrapperNode,_popupStateNode"\n\t\t\trole\x3d"button" aria-haspopup\x3d"true" aria-labelledby\x3d"${id}_label"\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon"\n\t\t\t\tdata-dojo-attach-point\x3d"iconNode"\n\t\t\t\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonText"\n\t\t\t\tdata-dojo-attach-point\x3d"containerNode"\n\t\t\t\tid\x3d"${id}_label"\n\t\t\t\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitArrowButtonInner"\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitArrowButtonChar"\x3e\x26#9660;\x3c/span\n\t\t\x3e\x3c/span\n\t\x3e\x3c/span\n\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" class\x3d"dijitOffScreen" tabIndex\x3d"-1"\n\t\tdata-dojo-attach-event\x3d"onclick:_onClick"\n\t\tdata-dojo-attach-point\x3d"valueNode" role\x3d"presentation" aria-hidden\x3d"true"\n/\x3e\x3c/span\x3e\n',
"url:esri/dijit/editing/templates/AttachmentEditor.html":"\x3cdiv class\x3d\"attachmentEditor\"\x3e\n \x3cbr /\x3e\n \x3cdiv\x3e\n \x3cb\x3e${NLS_attachments}\x3c/b\x3e\n \x3chr /\x3e\n \x3cdiv dojoAttachPoint\x3d\"_attachmentError\" style\x3d'color:red;display:none'\x3e\x3c/div\x3e\n \x3cbr /\x3e\n \x3cspan dojoAttachPoint\x3d'_attachmentList' style\x3d'word-wrap: break-word;'\x3e\x3c/span\x3e\n \x3cbr\x3e\x3cbr\x3e\n \x3cform dojoAttachPoint\x3d'_uploadForm'\x3e ${NLS_add}:\x26nbsp;\x26nbsp;\x3cinput type\x3d'file' name\x3d'attachment' dojoAttachPoint\x3d'_uploadField' /\x3e \x3c/form\x3e\n \x3c/div\x3e\n\x3c/div\x3e",
"url:dijit/templates/Calendar.html":'\x3ctable cellspacing\x3d"0" cellpadding\x3d"0" class\x3d"dijitCalendarContainer" role\x3d"grid" aria-labelledby\x3d"${id}_mddb ${id}_year" data-dojo-attach-point\x3d"gridNode"\x3e\n\t\x3cthead\x3e\n\t\t\x3ctr class\x3d"dijitReset dijitCalendarMonthContainer" valign\x3d"top"\x3e\n\t\t\t\x3cth class\x3d\'dijitReset dijitCalendarArrow\' data-dojo-attach-point\x3d"decrementMonth" scope\x3d"col"\x3e\n\t\t\t\t\x3cspan class\x3d"dijitInline dijitCalendarIncrementControl dijitCalendarDecrease" role\x3d"presentation"\x3e\x3c/span\x3e\n\t\t\t\t\x3cspan data-dojo-attach-point\x3d"decreaseArrowNode" class\x3d"dijitA11ySideArrow"\x3e-\x3c/span\x3e\n\t\t\t\x3c/th\x3e\n\t\t\t\x3cth class\x3d\'dijitReset\' colspan\x3d"5" scope\x3d"col"\x3e\n\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"monthNode"\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/th\x3e\n\t\t\t\x3cth class\x3d\'dijitReset dijitCalendarArrow\' scope\x3d"col" data-dojo-attach-point\x3d"incrementMonth"\x3e\n\t\t\t\t\x3cspan class\x3d"dijitInline dijitCalendarIncrementControl dijitCalendarIncrease" role\x3d"presentation"\x3e\x3c/span\x3e\n\t\t\t\t\x3cspan data-dojo-attach-point\x3d"increaseArrowNode" class\x3d"dijitA11ySideArrow"\x3e+\x3c/span\x3e\n\t\t\t\x3c/th\x3e\n\t\t\x3c/tr\x3e\n\t\t\x3ctr role\x3d"row"\x3e\n\t\t\t${!dayCellsHtml}\n\t\t\x3c/tr\x3e\n\t\x3c/thead\x3e\n\t\x3ctbody data-dojo-attach-point\x3d"dateRowsNode" data-dojo-attach-event\x3d"ondijitclick: _onDayClick" class\x3d"dijitReset dijitCalendarBodyContainer"\x3e\n\t\t\t${!dateRowsHtml}\n\t\x3c/tbody\x3e\n\t\x3ctfoot class\x3d"dijitReset dijitCalendarYearContainer"\x3e\n\t\t\x3ctr\x3e\n\t\t\t\x3ctd class\x3d\'dijitReset\' valign\x3d"top" colspan\x3d"7" role\x3d"presentation"\x3e\n\t\t\t\t\x3cdiv class\x3d"dijitCalendarYearLabel"\x3e\n\t\t\t\t\t\x3cspan data-dojo-attach-point\x3d"previousYearLabelNode" class\x3d"dijitInline dijitCalendarPreviousYear" role\x3d"button"\x3e\x3c/span\x3e\n\t\t\t\t\t\x3cspan data-dojo-attach-point\x3d"currentYearLabelNode" class\x3d"dijitInline dijitCalendarSelectedYear" role\x3d"button" id\x3d"${id}_year"\x3e\x3c/span\x3e\n\t\t\t\t\t\x3cspan data-dojo-attach-point\x3d"nextYearLabelNode" class\x3d"dijitInline dijitCalendarNextYear" role\x3d"button"\x3e\x3c/span\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/td\x3e\n\t\t\x3c/tr\x3e\n\t\x3c/tfoot\x3e\n\x3c/table\x3e\n',
"url:dijit/form/templates/TextBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft" id\x3d"widget_${id}" role\x3d"presentation"\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputInner" data-dojo-attach-point\x3d\'textbox,focusNode\' autocomplete\x3d"off"\n\t\t\t${!nameAttrSetting} type\x3d\'${type}\'\n\t/\x3e\x3c/div\n\x3e\x3c/div\x3e\n',"url:dijit/templates/Tooltip.html":'\x3cdiv class\x3d"dijitTooltip dijitTooltipLeft" id\x3d"dojoTooltip" data-dojo-attach-event\x3d"mouseenter:onMouseEnter,mouseleave:onMouseLeave"\n\t\x3e\x3cdiv class\x3d"dijitTooltipConnector" data-dojo-attach-point\x3d"connectorNode"\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d"dijitTooltipContainer dijitTooltipContents" data-dojo-attach-point\x3d"containerNode" role\x3d\'alert\'\x3e\x3c/div\n\x3e\x3c/div\x3e\n',
"url:dijit/form/templates/ValidationTextBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft"\n\tid\x3d"widget_${id}" role\x3d"presentation"\n\t\x3e\x3cdiv class\x3d\'dijitReset dijitValidationContainer\'\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value\x3d"\x26#935; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t/\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputInner" data-dojo-attach-point\x3d\'textbox,focusNode\' autocomplete\x3d"off"\n\t\t\t${!nameAttrSetting} type\x3d\'${type}\'\n\t/\x3e\x3c/div\n\x3e\x3c/div\x3e\n',
"url:dijit/form/templates/DropDownBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft"\n\tid\x3d"widget_${id}"\n\trole\x3d"combobox"\n\taria-haspopup\x3d"true"\n\tdata-dojo-attach-point\x3d"_popupStateNode"\n\t\x3e\x3cdiv class\x3d\'dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer\'\n\t\tdata-dojo-attach-point\x3d"_buttonNode" role\x3d"presentation"\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitArrowButtonInner" value\x3d"\x26#9660; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"button presentation" aria-hidden\x3d"true"\n\t\t\t${_buttonInputDisabled}\n\t/\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d\'dijitReset dijitValidationContainer\'\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value\x3d"\x26#935; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t/\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\n\t\t\x3e\x3cinput class\x3d\'dijitReset dijitInputInner\' ${!nameAttrSetting} type\x3d"text" autocomplete\x3d"off"\n\t\t\tdata-dojo-attach-point\x3d"textbox,focusNode" role\x3d"textbox"\n\t/\x3e\x3c/div\n\x3e\x3c/div\x3e\n',
"url:dijit/form/templates/Spinner.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft"\n\tid\x3d"widget_${id}" role\x3d"presentation"\n\t\x3e\x3cdiv class\x3d"dijitReset dijitButtonNode dijitSpinnerButtonContainer"\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitSpinnerButtonInner" type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t\t/\x3e\x3cdiv class\x3d"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitUpArrowButton"\n\t\t\tdata-dojo-attach-point\x3d"upArrowNode"\n\t\t\t\x3e\x3cdiv class\x3d"dijitArrowButtonInner"\n\t\t\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField" value\x3d"\x26#9650; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/\x3e\x3c/div\n\t\t\x3e\x3c/div\n\t\t\x3e\x3cdiv class\x3d"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitDownArrowButton"\n\t\t\tdata-dojo-attach-point\x3d"downArrowNode"\n\t\t\t\x3e\x3cdiv class\x3d"dijitArrowButtonInner"\n\t\t\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField" value\x3d"\x26#9660; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/\x3e\x3c/div\n\t\t\x3e\x3c/div\n\t\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d\'dijitReset dijitValidationContainer\'\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value\x3d"\x26#935; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t/\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\n\t\t\x3e\x3cinput class\x3d\'dijitReset dijitInputInner\' data-dojo-attach-point\x3d"textbox,focusNode" type\x3d"${type}" data-dojo-attach-event\x3d"onkeydown:_onKeyDown"\n\t\t\trole\x3d"spinbutton" autocomplete\x3d"off" ${!nameAttrSetting}\n\t/\x3e\x3c/div\n\x3e\x3c/div\x3e\n',
"url:esri/dijit/templates/AttributeInspector.html":'\x3cdiv class\x3d"esriAttributeInspector"\x3e\n \x3cdiv class\x3d"atiLayerName" dojoAttachPoint\x3d"layerName"\x3e\x3c/div\x3e\n \x3cdiv class\x3d"atiAttributes" dojoAttachPoint\x3d"attributeTable"\x3e\x3c/div\x3e\n \x3cdiv dojoAttachPoint\x3d"attachmentEditor"\x3e\x3c/div\x3e\n \x3cdiv class\x3d"atiEditorTrackingInfo" dojoAttachPoint\x3d"editorTrackingInfoDiv"\x3e\x3c/div\x3e\n \x3cdiv class\x3d"atiButtons" dojoAttachPoint\x3d"editButtons"\x3e\n \x3cbutton dojoType\x3d"dijit.form.Button" class\x3d"atiButton atiDeleteButton" dojoAttachPoint\x3d"deleteBtn" dojoAttachEvent\x3d"onClick: onDeleteBtn" showLabel\x3d"true" type\x3d"button"\x3e${NLS_deleteFeature}\x3c/button\x3e\n \x3cdiv class\x3d"atiNavButtons" dojoAttachPoint\x3d"navButtons"\x3e\n \x3cdiv class\x3d"atiNavMessage" dojoAttachPoint\x3d"navMessage"\x3e\x3c/div\x3e\n \x3cbutton dojoType\x3d"dijit.form.Button" iconClass\x3d"atiButton atiFirstIcon" dojoAttachPoint\x3d"firstFeatureButton" dojoAttachEvent\x3d"onClick: onFirstFeature" showLabel\x3d"false" type\x3d"button"\x3e${NLS_first}\x3c/button\x3e\n \x3cbutton dojoType\x3d"dijit.form.Button" iconClass\x3d"atiButton atiPrevIcon" dojoAttachPoint\x3d"prevFeatureButton" dojoAttachEvent\x3d"onClick: onPreviousFeature" showLabel\x3d"false" type\x3d"button"\x3e${NLS_previous}\x3c/button\x3e\n \x3cbutton dojoType\x3d"dijit.form.Button" iconClass\x3d"atiButton atiNextIcon" dojoAttachPoint\x3d"nextFeatureButton" dojoAttachEvent\x3d"onClick: onNextFeature" showLabel\x3d"false" type\x3d"button"\x3e${NLS_next}\x3c/button\x3e\n \x3cbutton dojoType\x3d"dijit.form.Button" iconClass\x3d"atiButton atiLastIcon" dojoAttachPoint\x3d"lastFeatureButton" dojoAttachEvent\x3d"onClick: onLastFeature" showLabel\x3d"false" type\x3d"button"\x3e${NLS_last}\x3c/button\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/form/templates/HorizontalSlider.html":'\x3ctable class\x3d"dijit dijitReset dijitSlider dijitSliderH" cellspacing\x3d"0" cellpadding\x3d"0" border\x3d"0" rules\x3d"none" data-dojo-attach-event\x3d"onkeydown:_onKeyDown, onkeyup:_onKeyUp"\n\trole\x3d"presentation"\n\t\x3e\x3ctr class\x3d"dijitReset"\n\t\t\x3e\x3ctd class\x3d"dijitReset" colspan\x3d"2"\x3e\x3c/td\n\t\t\x3e\x3ctd data-dojo-attach-point\x3d"topDecoration" class\x3d"dijitReset dijitSliderDecoration dijitSliderDecorationT dijitSliderDecorationH"\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset" colspan\x3d"2"\x3e\x3c/td\n\t\x3e\x3c/tr\n\t\x3e\x3ctr class\x3d"dijitReset"\n\t\t\x3e\x3ctd class\x3d"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH"\n\t\t\t\x3e\x3cdiv class\x3d"dijitSliderDecrementIconH" style\x3d"display:none" data-dojo-attach-point\x3d"decrementButton"\x3e\x3cspan class\x3d"dijitSliderButtonInner"\x3e-\x3c/span\x3e\x3c/div\n\t\t\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset"\n\t\t\t\x3e\x3cdiv class\x3d"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper" data-dojo-attach-event\x3d"press:_onClkDecBumper"\x3e\x3c/div\n\t\t\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset"\n\t\t\t\x3e\x3cinput data-dojo-attach-point\x3d"valueNode" type\x3d"hidden" ${!nameAttrSetting}\n\t\t\t/\x3e\x3cdiv class\x3d"dijitReset dijitSliderBarContainerH" role\x3d"presentation" data-dojo-attach-point\x3d"sliderBarContainer"\n\t\t\t\t\x3e\x3cdiv role\x3d"presentation" data-dojo-attach-point\x3d"progressBar" class\x3d"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH" data-dojo-attach-event\x3d"press:_onBarClick"\n\t\t\t\t\t\x3e\x3cdiv class\x3d"dijitSliderMoveable dijitSliderMoveableH"\n\t\t\t\t\t\t\x3e\x3cdiv data-dojo-attach-point\x3d"sliderHandle,focusNode" class\x3d"dijitSliderImageHandle dijitSliderImageHandleH" data-dojo-attach-event\x3d"press:_onHandleClick" role\x3d"slider"\x3e\x3c/div\n\t\t\t\t\t\x3e\x3c/div\n\t\t\t\t\x3e\x3c/div\n\t\t\t\t\x3e\x3cdiv role\x3d"presentation" data-dojo-attach-point\x3d"remainingBar" class\x3d"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH" data-dojo-attach-event\x3d"press:_onBarClick"\x3e\x3c/div\n\t\t\t\x3e\x3c/div\n\t\t\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset"\n\t\t\t\x3e\x3cdiv class\x3d"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper" data-dojo-attach-event\x3d"press:_onClkIncBumper"\x3e\x3c/div\n\t\t\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH"\n\t\t\t\x3e\x3cdiv class\x3d"dijitSliderIncrementIconH" style\x3d"display:none" data-dojo-attach-point\x3d"incrementButton"\x3e\x3cspan class\x3d"dijitSliderButtonInner"\x3e+\x3c/span\x3e\x3c/div\n\t\t\x3e\x3c/td\n\t\x3e\x3c/tr\n\t\x3e\x3ctr class\x3d"dijitReset"\n\t\t\x3e\x3ctd class\x3d"dijitReset" colspan\x3d"2"\x3e\x3c/td\n\t\t\x3e\x3ctd data-dojo-attach-point\x3d"containerNode,bottomDecoration" class\x3d"dijitReset dijitSliderDecoration dijitSliderDecorationB dijitSliderDecorationH"\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset" colspan\x3d"2"\x3e\x3c/td\n\t\x3e\x3c/tr\n\x3e\x3c/table\x3e\n',
"url:dijit/form/templates/VerticalSlider.html":'\x3ctable class\x3d"dijit dijitReset dijitSlider dijitSliderV" cellspacing\x3d"0" cellpadding\x3d"0" border\x3d"0" rules\x3d"none" data-dojo-attach-event\x3d"onkeydown:_onKeyDown,onkeyup:_onKeyUp"\n\trole\x3d"presentation"\n\t\x3e\x3ctr class\x3d"dijitReset"\n\t\t\x3e\x3ctd class\x3d"dijitReset"\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV"\n\t\t\t\x3e\x3cdiv class\x3d"dijitSliderIncrementIconV" style\x3d"display:none" data-dojo-attach-point\x3d"decrementButton"\x3e\x3cspan class\x3d"dijitSliderButtonInner"\x3e+\x3c/span\x3e\x3c/div\n\t\t\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset"\x3e\x3c/td\n\t\x3e\x3c/tr\n\t\x3e\x3ctr class\x3d"dijitReset"\n\t\t\x3e\x3ctd class\x3d"dijitReset"\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset"\n\t\t\t\x3e\x3ccenter\x3e\x3cdiv class\x3d"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper" data-dojo-attach-event\x3d"press:_onClkIncBumper"\x3e\x3c/div\x3e\x3c/center\n\t\t\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset"\x3e\x3c/td\n\t\x3e\x3c/tr\n\t\x3e\x3ctr class\x3d"dijitReset"\n\t\t\x3e\x3ctd data-dojo-attach-point\x3d"leftDecoration" class\x3d"dijitReset dijitSliderDecoration dijitSliderDecorationL dijitSliderDecorationV"\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset dijitSliderDecorationC" style\x3d"height:100%;"\n\t\t\t\x3e\x3cinput data-dojo-attach-point\x3d"valueNode" type\x3d"hidden" ${!nameAttrSetting}\n\t\t\t/\x3e\x3ccenter class\x3d"dijitReset dijitSliderBarContainerV" role\x3d"presentation" data-dojo-attach-point\x3d"sliderBarContainer"\n\t\t\t\t\x3e\x3cdiv role\x3d"presentation" data-dojo-attach-point\x3d"remainingBar" class\x3d"dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV" data-dojo-attach-event\x3d"press:_onBarClick"\x3e\x3c!--#5629--\x3e\x3c/div\n\t\t\t\t\x3e\x3cdiv role\x3d"presentation" data-dojo-attach-point\x3d"progressBar" class\x3d"dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV" data-dojo-attach-event\x3d"press:_onBarClick"\n\t\t\t\t\t\x3e\x3cdiv class\x3d"dijitSliderMoveable dijitSliderMoveableV" style\x3d"vertical-align:top;"\n\t\t\t\t\t\t\x3e\x3cdiv data-dojo-attach-point\x3d"sliderHandle,focusNode" class\x3d"dijitSliderImageHandle dijitSliderImageHandleV" data-dojo-attach-event\x3d"press:_onHandleClick" role\x3d"slider"\x3e\x3c/div\n\t\t\t\t\t\x3e\x3c/div\n\t\t\t\t\x3e\x3c/div\n\t\t\t\x3e\x3c/center\n\t\t\x3e\x3c/td\n\t\t\x3e\x3ctd data-dojo-attach-point\x3d"containerNode,rightDecoration" class\x3d"dijitReset dijitSliderDecoration dijitSliderDecorationR dijitSliderDecorationV"\x3e\x3c/td\n\t\x3e\x3c/tr\n\t\x3e\x3ctr class\x3d"dijitReset"\n\t\t\x3e\x3ctd class\x3d"dijitReset"\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset"\n\t\t\t\x3e\x3ccenter\x3e\x3cdiv class\x3d"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper" data-dojo-attach-event\x3d"press:_onClkDecBumper"\x3e\x3c/div\x3e\x3c/center\n\t\t\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset"\x3e\x3c/td\n\t\x3e\x3c/tr\n\t\x3e\x3ctr class\x3d"dijitReset"\n\t\t\x3e\x3ctd class\x3d"dijitReset"\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV"\n\t\t\t\x3e\x3cdiv class\x3d"dijitSliderDecrementIconV" style\x3d"display:none" data-dojo-attach-point\x3d"incrementButton"\x3e\x3cspan class\x3d"dijitSliderButtonInner"\x3e-\x3c/span\x3e\x3c/div\n\t\t\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset"\x3e\x3c/td\n\t\x3e\x3c/tr\n\x3e\x3c/table\x3e\n',
"*now":function(l){l(['dojo/i18n!*preload*dojo/nls/dojo*["en","ROOT"]'])}}});(function(){var l=this.require;l({cache:{}});!l.async&&l(["dojo"]);l.boot&&l.apply(null,l.boot)})();
//# sourceMappingURL=dojo.js.map