// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/3.44/esri/copyright.txt for details.
/*
	Copyright (c) 2004-2016, The JS Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

//>>built
(function(b,A){var p,y=function(){return"undefined"!==typeof u&&"function"!==typeof u?u:"undefined"!==typeof window?window:"undefined"!==typeof self?self:this}(),t=function(){},m=function(g){for(var G in g)return 0;return 1},q={}.toString,r=function(g){return"[object Function]"==q.call(g)},h=function(g){return"[object String]"==q.call(g)},c=function(g){return"[object Array]"==q.call(g)},a=function(g,G){if(g)for(var N=0;N<g.length;)G(g[N++])},f=function(g,G){for(var N in G)g[N]=G[N];return g},e=function(g,
G){return f(Error(g),{src:"dojoLoader",info:G})},k=1,l=function(){return"_"+k++},d=function(g,G,N){return sa(g,G,N,0,d)},u=y,x=u.document,n=x&&x.createElement("DiV"),v=d.has=function(g){return r(D[g])?D[g]=D[g](u,x,n):D[g]},D=v.cache=A.hasCache;r(b)&&(b=b(y));v.add=function(g,G,N,P){(void 0===D[g]||P)&&(D[g]=G);return N&&v(g)};v.add("host-webworker","undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);v("host-webworker")&&(f(A.hasCache,{"host-browser":0,dom:0,"dojo-dom-ready-api":0,
"dojo-sniff":0,"dojo-inject-api":1,"host-webworker":1,"dojo-guarantee-console":0}),A.loaderPatch={injectUrl:function(g,G){try{importScripts(g),G()}catch(N){console.info("failed to load resource ("+g+")"),console.error(N)}}});for(var O in b.has)v.add(O,b.has[O],0,1);var z=0,w=[],E=0,C=t,H=t;d.isXdUrl=t;d.initSyncLoader=function(g,G,N){E||(E=g,C=G,H=N);return{sync:"sync",requested:1,arrived:2,nonmodule:3,executing:4,executed:5,syncExecStack:w,modules:oa,execQ:ja,getModule:Ca,injectModule:Sa,setArrived:za,
signal:U,finishExec:La,execModule:Ma,dojoRequirePlugin:E,getLegacyMode:function(){return z},guardCheckComplete:Na}};var B=location.protocol,K=location.host;d.isXdUrl=function(g){return/^\./.test(g)?!1:/^\/\//.test(g)?!0:(g=g.match(/^([^\/:]+:)\/+([^\/]+)/))&&(g[1]!=B||K&&g[2]!=K)};v.add("dojo-force-activex-xhr",!x.addEventListener&&"file:"==window.location.protocol);v.add("native-xhr","undefined"!=typeof XMLHttpRequest);if(v("native-xhr")&&!v("dojo-force-activex-xhr"))var J=function(){return new XMLHttpRequest};
else{var R=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];for(p=0;3>p;)try{var V=R[p++];new ActiveXObject(V);break}catch(g){}J=function(){return new ActiveXObject(V)}}d.getXhr=J;v.add("dojo-gettext-api",1);d.getText=function(g,G,N){var P=J();P.open("GET",Ta(g),!1);P.send(null);if(200==P.status||!location.host&&!P.status)N&&N(P.responseText,G);else throw e("xhrFailed",P.status);return P.responseText};var Y=v("csp-restrictions")?function(){}:new Function("return eval(arguments[0]);");d.eval=
function(g,G){return Y(g+"\r\n//# sourceURL\x3d"+G)};var S={},U=d.signal=function(g,G){g=S[g];a(g&&g.slice(0),function(N){N.apply(null,c(G)?G:[G])})},L=d.on=function(g,G){var N=S[g]||(S[g]=[]);N.push(G);return{remove:function(){for(var P=0;P<N.length;P++)if(N[P]===G){N.splice(P,1);break}}}},T=[],da={},ha=[],ca={},qa=d.map={},ta=[],oa={},va="",na={},ra={},ia={},wa=0;if(!v("foreign-loader"))var ya=function(g,G){G=!1!==G;var N,P;for(N in ra){var W=ra[N];if(P=N.match(/^url:(.+)/))na["url:"+jb(P[1],g)]=
W;else if("*now"==N)var X=W;else"*noref"!=N&&(P=Oa(N,g,!0),na[P.mid]=na["url:"+P.url]=W)}X&&X(Fa(g));G&&(ra={})};var F=function(g){return g.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(G){return"\\"+G})},I=function(g,G){G.splice(0,G.length);for(var N in g)G.push([N,g[N],new RegExp("^"+F(N)+"(/|$)"),N.length]);G.sort(function(P,W){return W[3]-P[3]});return G},M=function(g,G){a(g,function(N){G.push([h(N[0])?new RegExp("^"+F(N[0])+"$"):N[0],N[1]])})},Q=function(g){var G=g.name;G||(G=g,g={name:G});
g=f({main:"main"},g);g.location=g.location?g.location:G;g.packageMap&&(qa[G]=g.packageMap);g.main.indexOf("./")||(g.main=g.main.substring(2));ca[G]=g},aa=[],ba=function(g,G,N){for(var P in g){"waitSeconds"==P&&(d.waitms=1E3*(g[P]||0));"cacheBust"==P&&(va=g[P]?h(g[P])?g[P]:(new Date).getTime()+"":"");if("baseUrl"==P||"combo"==P)d[P]=g[P];if("async"==P){var W=g[P];d.legacyMode=z=h(W)&&/sync|legacyAsync/.test(W)?W:W?!1:"sync";d.async=!z}g[P]!==D&&(d.rawConfig[P]=g[P],"has"!=P&&v.add("config-"+P,g[P],
0,G))}d.baseUrl||(d.baseUrl="./");/\/$/.test(d.baseUrl)||(d.baseUrl+="/");for(P in g.has)v.add(P,g.has[P],0,G);a(g.packages,Q);for(var X in g.packagePaths)a(g.packagePaths[X],function(ka){var Aa=X+"/"+ka;h(ka)&&(ka={name:ka});ka.location=Aa;Q(ka)});I(f(qa,g.map),ta);a(ta,function(ka){ka[1]=I(ka[1],[]);"*"==ka[0]&&(ta.star=ka)});I(f(da,g.paths),ha);M(g.aliases,T);if(!v("foreign-loader")){if(G)aa.push({config:g.config});else for(P in g.config)G=Ca(P,N),G.config=f(G.config||{},g.config[P]);g.cache&&
(ya(),ra=g.cache,ya(0,!!g.cache["*noref"]))}U("config",[g,d.rawConfig])};v("dojo-cdn");var la=x.getElementsByTagName("script");p=0;for(var Z,ea,pa,ma;p<la.length;)if(Z=la[p++],(pa=Z.getAttribute("src"))&&(ma=pa.match(/(((.*)\/)|^)dojo\.js(\W|$)/i))&&(ea=ma[3]||"",A.baseUrl=A.baseUrl||ea,wa=Z),pa=Z.getAttribute("data-dojo-config")||Z.getAttribute("djConfig"))ia=d.eval("({ "+pa+" })","data-dojo-config"),wa=Z;d.rawConfig={};ba(A,1);v("dojo-cdn")&&((ca.dojo.location=ea)&&(ea+="/"),ca.dijit.location=ea+
"../dijit/",ca.dojox.location=ea+"../dojox/");ba(b,1);ba(ia,1);if(!v("foreign-loader"))var ua=function(g){Na(function(){a(g.deps,Sa)})},sa=function(g,G,N,P,W){var X;if(h(g)){if((X=Ca(g,P,!0))&&X.executed)return X.result;throw e("undefinedModule",g);}c(g)||(ba(g,0,P),g=G,G=N);if(c(g))if(g.length){N="require*"+l();for(var ka,Aa=[],Da=0;Da<g.length;)ka=g[Da++],Aa.push(Ca(ka,P));X=f(Ua("",N,0,""),{injected:2,deps:Aa,def:G||t,require:P?P.require:d,gc:1});oa[X.mid]=X;ua(X);var ab=Pa&&"sync"!=z;Na(function(){Ma(X,
ab)});X.executed||ja.push(X);Ga()}else G&&G();return W},Fa=function(g){if(!g)return d;var G=g.require;G||(G=function(N,P,W){return sa(N,P,W,g,G)},g.require=f(G,d),G.module=g,G.toUrl=function(N){return jb(N,g)},G.toAbsMid=function(N){return bb(N,g)},v("dojo-undef-api")&&(G.undef=function(N){d.undef(N,g)}),G.syncLoadNls=function(N){N=Oa(N,g);var P=oa[N.mid];if(!P||!P.executed)if(Ea=na[N.mid]||na["url:"+N.url])Va(Ea),P=oa[N.mid];return P&&P.executed&&P.result});return G},ja=[],Ha=[],fa={},xa=function(g){g.injected=
1;fa[g.mid]=1;g.url&&(fa[g.url]=g.pack||1);kb()},za=function(g){g.injected=2;delete fa[g.mid];g.url&&delete fa[g.url];m(fa)&&(Wa(),"xd"==z&&(z="sync"))},Ia=d.idle=function(){return!Ha.length&&m(fa)&&!ja.length&&!Pa};var Ja=function(g,G){if(G)for(var N=0;N<G.length;N++)if(G[N][2].test(g))return G[N];return 0},lb=function(g){var G=[];for(g=g.replace(/\\/g,"/").split("/");g.length;){var N=g.shift();if(".."==N&&G.length&&".."!=P){G.pop();var P=G[G.length-1]}else"."!=N&&G.push(P=N)}return G.join("/")},
Ua=function(g,G,N,P){var W=d.isXdUrl(P);return{pid:g,mid:G,pack:N,url:P,executed:0,def:0,isXd:W,isAmd:!!(W||ca[g]&&ca[g].isAmd)}},ob=function(g,G,N,P,W,X,ka,Aa,Da,ab){var Ka,mb,Ba;var cb=/^\./.test(g);if(/(^\/)|(:)|(\.js$)/.test(g)||cb&&!G)return Ua(0,g,0,g);g=lb(cb?G.mid+"/../"+g:g);if(/^\./.test(g))throw e("irrationalPath",g);ab||cb||!X.star||(Ba=Ja(g,X.star[1]));!Ba&&G&&(Ba=(Ba=Ja(G.mid,X))&&Ja(g,Ba[1]));Ba&&(g=Ba[1]+g.substring(Ba[3]));G=(ma=g.match(/^([^\/]+)(\/(.+))?$/))?ma[1]:"";(Ka=N[G])?
g=G+"/"+(mb=ma[3]||Ka.main):G="";var db=0;a(Aa,function(Qa){var nb=g.match(Qa[0]);nb&&0<nb.length&&(db=r(Qa[1])?g.replace(Qa[0],Qa[1]):Qa[1])});if(db)return ob(db,0,N,P,W,X,ka,Aa,Da);if(N=P[g])return Da?Ua(N.pid,N.mid,N.pack,N.url):P[g];P=(Ba=Ja(g,ka))?Ba[1]+g.substring(Ba[3]):G?("/"===Ka.location.slice(-1)?Ka.location.slice(0,-1):Ka.location)+"/"+mb:v("config-tlmSiblingOfDojo")?"../"+g:g;/(^\/)|(:)/.test(P)||(P=W+P);return Ua(G,g,Ka,lb(P+".js"))},Oa=function(g,G,N){return ob(g,G,ca,oa,d.baseUrl,
ta,ha,T,void 0,N)};if(!v("foreign-loader"))var pb=function(g,G,N){return g.normalize?g.normalize(G,function(P){return bb(P,N)}):bb(G,N)},qb=0,Ca=function(g,G,N){var P;if(P=g.match(/^(.+?)!(.*)$/)){var W=Ca(P[1],G,N);"sync"!=z||W.executed||(Sa(W),2!==W.injected||W.executed||Na(function(){Ma(W)}),W.executed?Xa(W):ja.unshift(W));5!==W.executed||W.load||Xa(W);W.load?(P=pb(W,P[2],G),g=W.mid+"!"+(W.dynamic?++qb+"!":"")+P):(P=P[2],g=W.mid+"!"+ ++qb+"!waitingForPlugin");g={plugin:W,mid:g,req:Fa(G),prid:P}}else g=
Oa(g,G);return oa[g.mid]||!N&&(oa[g.mid]=g)};var bb=d.toAbsMid=function(g,G){return Oa(g,G).mid},jb=d.toUrl=function(g,G){G=Oa(g+"/x",G);var N=G.url;return Ta(0===G.pid?g:N.substring(0,N.length-5))};if(!v("foreign-loader"))var rb={injected:2,executed:5,def:3,result:3},eb=function(g){return oa[g]=f({mid:g},rb)},wb=eb("require"),xb=eb("exports"),yb=eb("module"),Ya={},fb=0,Xa=function(g){var G=g.result;g.dynamic=G.dynamic;g.normalize=G.normalize;g.load=G.load;return g},zb=function(g){var G={};a(g.loadQ,
function(W){var X=pb(g,W.prid,W.req.module),ka=g.dynamic?W.mid.replace(/waitingForPlugin$/,X):g.mid+"!"+X;X=f(f({},W),{mid:ka,prid:X,injected:0});oa[ka]&&oa[ka].injected||sb(oa[ka]=X);G[W.mid]=oa[ka];za(W);delete oa[W.mid]});g.loadQ=0;var N=function(W){for(var X=W.deps||[],ka=0;ka<X.length;ka++)(W=G[X[ka].mid])&&(X[ka]=W)},P;for(P in oa)N(oa[P]);a(ja,N)},La=function(g){d.trace("loader-finish-exec",[g.mid]);g.executed=5;g.defOrder=fb++;a(g.provides,function(G){G()});g.loadQ&&(Xa(g),zb(g));for(p=0;p<
ja.length;)ja[p]===g?ja.splice(p,1):p++;/^require\*/.test(g.mid)&&delete oa[g.mid]},Ab=[],Ma=function(g,G){if(4===g.executed)return d.trace("loader-circular-dependency",[Ab.concat(g.mid).join("-\x3e")]),!g.def||G?Ya:g.cjs&&g.cjs.exports;if(!g.executed){if(!g.def)return Ya;var N=g.mid,P=g.deps||[],W,X=[],ka=0;for(g.executed=4;W=P[ka++];){W=W===wb?Fa(g):W===xb?g.cjs.exports:W===yb?g.cjs:Ma(W,G);if(W===Ya)return g.executed=0,d.trace("loader-exec-module",["abort",N]),Ya;X.push(W)}d.trace("loader-run-factory",
[g.mid]);G=g.def;w.unshift(g);if(v("config-dojo-loader-catches"))try{var Aa=r(G)?G.apply(null,X):G}catch(Da){U("error",g.result=e("factoryThrew",[g,Da]))}else Aa=r(G)?G.apply(null,X):G;g.result=void 0===Aa&&g.cjs?g.cjs.exports:Aa;w.shift(g);La(g)}return g.result},Pa=0,Na=function(g){try{Pa++,g()}catch(G){throw G;}finally{Pa--}Ia()&&U("idle",[])},Ga=function(){Pa||Na(function(){C();for(var g,G,N=0;N<ja.length;)g=fb,G=ja[N],Ma(G),g!=fb?(C(),N=0):N++})};var Ta="function"==typeof b.fixupUrl?b.fixupUrl:
function(g){g+="";return g+(va?(/\?/.test(g)?"\x26":"?")+va:"")};v("dojo-undef-api")&&(d.undef=function(g,G){g=Ca(g,G);za(g);f(g,{def:0,executed:0,injected:0,node:0,load:0})});void 0===v("dojo-loader-eval-hint-url")&&v.add("dojo-loader-eval-hint-url",1);var sb=function(g){var G=g.plugin;5!==G.executed||G.load||Xa(G);var N=function(P){g.result=P;za(g);La(g);Ga()};G.load?G.load(g.prid,g.req,N):G.loadQ?G.loadQ.push(g):(G.loadQ=[g],ja.unshift(G),Sa(G))},Ea=0,Ra=0,gb=0,Va=function(g,G){v("config-stripStrict")&&
(g=g.replace(/(["'])use strict\1/g,""));gb=1;if(v("config-dojo-loader-catches"))try{g===Ea?Ea.call(null):d.eval(g,v("dojo-loader-eval-hint-url")?G.url:G.mid)}catch(N){U("error",e("evalModuleThrew",G))}else g===Ea?Ea.call(null):d.eval(g,v("dojo-loader-eval-hint-url")?G.url:G.mid);gb=0},Sa=function(g){var G=g.mid,N=g.url;if(!(g.executed||g.injected||fa[G]||g.url&&(g.pack&&fa[g.url]===g.pack||1==fa[g.url])))if(xa(g),g.plugin)sb(g);else{var P=function(){tb(g);if(2!==g.injected){if(v("dojo-enforceDefine")){U("error",
e("noDefine",g));return}za(g);f(g,rb);d.trace("loader-define-nonmodule",[g.url])}z?!w.length&&Ga():Ga()};if(Ea=na[G]||na["url:"+g.url])d.trace("loader-inject",["cache",g.mid,N]),Va(Ea,g),P();else{if(z)if(g.isXd)"sync"==z&&(z="xd");else if(!g.isAmd||"sync"==z){var W=function(X){if("sync"==z){w.unshift(g);Va(X,g);w.shift();tb(g);g.cjs||(za(g),La(g));if(g.finish){X=G+"*finish";var ka=g.finish;delete g.finish;Za(X,["dojo",("dojo/require!"+ka.join(",")).replace(/\./g,"/")],function(Aa){a(ka,function(Da){Aa.require(Da)})});
ja.unshift(Ca(X))}P()}else(X=H(g,X))?(Va(X,g),P()):(Ra=g,d.injectUrl(Ta(N),P,g),Ra=0)};d.trace("loader-inject",["xhr",g.mid,N,"sync"!=z]);if(v("config-dojo-loader-catches"))try{d.getText(N,"sync"!=z,W)}catch(X){U("error",e("xhrInjectFailed",[g,X]))}else d.getText(N,"sync"!=z,W);return}d.trace("loader-inject",["script",g.mid,N]);Ra=g;d.injectUrl(Ta(N),P,g);Ra=0}}},hb=function(g,G,N){d.trace("loader-define-module",[g.mid,G]);var P=g.mid;if(2===g.injected)return U("error",e("multipleDefine",g)),g;f(g,
{deps:G,def:N,cjs:{id:g.mid,uri:g.url,exports:g.result={},setExports:function(X){g.cjs.exports=X},config:function(){return g.config}}});for(var W=0;G[W];W++)G[W]=Ca(G[W],g);z&&!fa[P]&&(ua(g),ja.push(g),Ga());za(g);r(N)||G.length||(g.result=N,La(g));return g},tb=function(g,G){for(var N=[],P,W;Ha.length;)W=Ha.shift(),G&&(W[0]=G.shift()),P=W[0]&&Ca(W[0])||g,N.push([P,W[1],W[2]]);ya(g);a(N,function(X){ua(hb.apply(null,X))})},$a=0,Wa=t,kb=t;Wa=function(){$a&&clearTimeout($a);$a=0};kb=function(){Wa();d.waitms&&
($a=u.setTimeout(function(){Wa();U("error",e("timeout",fa))},d.waitms))};v.add("ie-event-behavior",x.attachEvent&&"undefined"===typeof Windows&&("undefined"===typeof opera||"[object Opera]"!=opera.toString()));var ib=function(g,G,N,P){if(v("ie-event-behavior"))return g.attachEvent(N,P),function(){g.detachEvent(N,P)};g.addEventListener(G,P,!1);return function(){g.removeEventListener(G,P,!1)}},Bb=ib(window,"load","onload",function(){d.pageLoaded=1;try{"complete"!=x.readyState&&(x.readyState="complete")}catch(g){}Bb()});
la=x.getElementsByTagName("script");for(p=0;!wa;)/^dojo/.test((Z=la[p++])&&Z.type)||(wa=Z);d.injectUrl=function(g,G,N){N=N.node=x.createElement("script");var P=ib(N,"load","onreadystatechange",function(X){X=X||window.event;var ka=X.target||X.srcElement;if("load"===X.type||/complete|loaded/.test(ka.readyState))P(),W(),G&&G()}),W=ib(N,"error","onerror",function(X){P();W();U("error",e("scriptError: "+g,[g,X]))});N.type="text/javascript";N.charset="utf-8";N.src=g;wa.parentNode.insertBefore(N,wa);return N};
d.log=function(){try{for(var g=0;g<arguments.length;g++)console.log(arguments[g])}catch(G){}};d.trace=t;if(v("foreign-loader"))Za=t;else{var Za=function(g,G,N){var P=arguments.length,W=["require","exports","module"],X=[0,g,G];1==P?X=[0,r(g)?W:[],g]:2==P&&h(g)?X=[g,r(G)?W:[],G]:3==P&&(X=[g,G,N]);d.trace("loader-define",X.slice(0,2));if((P=X[0]&&Ca(X[0]))&&!fa[P.mid])ua(hb(P,X[1],X[2]));else if(!v("ie-event-behavior")||gb)Ha.push(X);else{P=P||Ra;if(!P)for(g in fa)if((W=oa[g])&&W.node&&"interactive"===
W.node.readyState){P=W;break}P?(ya(P),ua(hb(P,X[1],X[2]))):U("error",e("ieDefineFailed",X[0]));Ga()}};Za.amd={vendor:"dojotoolkit.org"}}f(f(d,A.loaderPatch),b.loaderPatch);L("error",function(g){try{if(console.error(g),g instanceof Error){for(var G in g)console.log(G+":",g[G]);console.log(".")}}catch(N){}});f(d,{uid:l,cache:na,packs:ca});if(u.define)U("error",e("defineAlreadyDefined",0));else if(u.define=Za,u.require=d,!v("foreign-loader")){a(aa,function(g){ba(g)});var ub=ia.deps||b.deps||A.deps,vb=
ia.callback||b.callback||A.callback;d.boot=ub||vb?[ub||[],vb]:0}})(function(b){return b.dojoConfig||b.djConfig||b.require||{}},{async:0,baseUrl:"https://js.arcgis.com/3.44/dojo",hasCache:{"config-selectorEngine":"acme","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-has-api":1,"dojo-loader":1,"dojo-undef-api":0,dom:1,"extend-esri":1,"host-browser":1},packages:[{location:"../dijit",name:"dijit"},{location:"../dojox",name:"dojox"},{location:"../put-selector",main:"put",name:"put-selector"},
{location:"../xstyle",name:"xstyle"},{location:"../dgrid",main:"OnDemandGrid",name:"dgrid"},{location:"../dgrid1",main:"OnDemandGrid",name:"dgrid1"},{location:"../dstore",main:"Store",name:"dstore"},{location:"../moment",main:"moment",name:"moment"},{location:"../esri",name:"esri"},{location:".",name:"dojo"}]});
require({cache:{"dojo/loadInit":function(){define(["./_base/loader"],function(b){return{dynamic:0,normalize:function(A){return A},load:b.loadInit}})},"dojo/_base/loader":function(){define("./kernel ../has require module ../json ./lang ./array".split(" "),function(b,A,p,y,t,m,q){var r=function(L){return L.replace(/\./g,"/")},h=/\/\/>>built/,c=[],a=[],f=function(L,T,da){c.push(da);q.forEach(L.split(","),function(ha){ha=B(ha,T.module);a.push(ha);K(ha)});e()},e=function(){var L;for(L in C){var T=C[L];
void 0===T.noReqPluginCheck&&(T.noReqPluginCheck=/loadInit!/.test(L)||/require!/.test(L)?1:0);if(!T.executed&&!T.noReqPluginCheck&&T.injected==v)return}U(function(){var da=c;c=[];q.forEach(da,function(ha){ha(1)})})},k=/\/\/.*|\/\*[\s\S]*?\*\/|("(?:\\.|[^"])*"|'(?:\\.|[^'])*'|`(?:\\.|[^`])*`)/mg,l=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,d=/(^|\s)(require|define)\s*\(/m,u=function(L,T){var da=[],ha=[];var ca=[];for(T=T||L.replace(k,
"$1");ca=l.exec(T);){var qa=l.lastIndex;var ta=qa-ca[0].length;var oa=void 0,va=T,na=/\(|\)/g,ra=1;for(na.lastIndex=qa;(oa=na.exec(va))&&(ra=")"==oa[0]?ra-1:ra+1,0!=ra););if(0!=ra)throw"unmatched paren around character "+na.lastIndex+" in: "+va;qa=[b.trim(va.substring(ta,na.lastIndex))+";\n",na.lastIndex];"loadInit"==ca[2]?da.push(qa[0]):ha.push(qa[0]);l.lastIndex=qa[1]}ca=da.concat(ha);return ca.length||!d.test(T)?[L.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 \x26\x26 dojo.loadInit("),ca.join(""),
ca]:0},x=p.initSyncLoader(f,e,function(L,T){var da,ha=[],ca=[];if(h.test(T)||!(da=u(T)))return 0;T=L.mid+"-*loadInit";for(var qa in B("dojo",L).result.scopeMap)ha.push(qa),ca.push('"'+qa+'"');return"// xdomain rewrite of "+L.mid+"\ndefine('"+T+"',{\n\tnames:"+t.stringify(ha)+",\n\tdef:function("+ha.join(",")+"){"+da[1]+"}});\n\ndefine("+t.stringify(ha.concat(["dojo/loadInit!"+T]))+", function("+ha.join(",")+"){\n"+da[0]+"});"}),n=x.sync,v=x.requested,D=x.arrived,O=x.nonmodule,z=x.executing,w=x.executed,
E=x.syncExecStack,C=x.modules,H=x.execQ,B=x.getModule,K=x.injectModule,J=x.setArrived,R=x.signal,V=x.finishExec,Y=x.execModule,S=x.getLegacyMode,U=x.guardCheckComplete;f=x.dojoRequirePlugin;b.provide=function(L){var T=E[0],da=m.mixin(B(r(L),p.module),{executed:z,result:m.getObject(L,!0)});J(da);T&&(T.provides||(T.provides=[])).push(function(){da.result=m.getObject(L);delete da.provides;da.executed!==w&&V(da)});return da.result};A.add("config-publishRequireResult",1,0,0);b.require=function(L,T){T=
function(da,ha){var ca=B(r(da),p.module);if(E.length&&E[0].finish)E[0].finish.push(da);else{if(ca.executed)return ca.result;ha&&(ca.result=O);ha=S();K(ca);ha=S();ca.executed!==w&&ca.injected===D&&x.guardCheckComplete(function(){Y(ca)});if(ca.executed)return ca.result;ha==n?ca.cjs?H.unshift(ca):E.length&&(E[0].finish=[da]):H.push(ca)}}(L,T);A("config-publishRequireResult")&&!m.exists(L)&&void 0!==T&&m.setObject(L,T);return T};b.loadInit=function(L){L()};b.registerModulePath=function(L,T){var da={};
da[L.replace(/\./g,"/")]=T;p({paths:da})};b.platformRequire=function(L){L=(L.common||[]).concat(L[b._name]||L["default"]||[]);for(var T;L.length;)m.isArray(T=L.shift())?b.require.apply(b,T):b.require(T)};b.requireIf=b.requireAfterIf=function(L,T,da){L&&b.require(T,da)};b.requireLocalization=function(L,T,da){p(["../i18n"],function(ha){ha.getLocalization(L,T,da)})};return{extractLegacyApiApplications:u,require:f,loadInit:function(L,T,da){T([L],function(ha){T(ha.names,function(){for(var ca="",qa=[],
ta=0;ta<arguments.length;ta++)ca+="var "+ha.names[ta]+"\x3d arguments["+ta+"]; ",qa.push(arguments[ta]);eval(ca);var oa=T.module,va=[],na;ca={provide:function(ia){ia=r(ia);ia=B(ia,oa);ia!==oa&&J(ia)},require:function(ia,wa){ia=r(ia);wa&&(B(ia,oa).result=O);va.push(ia)},requireLocalization:function(ia,wa,ya){na||(na=["dojo/i18n"]);ya=(ya||b.locale).toLowerCase();ia=r(ia)+"/nls/"+(/root/i.test(ya)?"":ya+"/")+r(wa);B(ia,oa).isXd&&na.push("dojo/i18n!"+ia)},loadInit:function(ia){ia()}};ta={};var ra;try{for(ra in ca)ta[ra]=
b[ra],b[ra]=ca[ra];ha.def.apply(null,qa)}catch(ia){R("error",[{src:y.id,id:"failedDojoLoadInit"},ia])}finally{for(ra in ca)b[ra]=ta[ra]}na&&(va=va.concat(na));va.length?f(va.join(","),T,da):da()})})}}})},"dojo/_base/kernel":function(){define(["../global","../has","./config","require","module"],function(b,A,p,y,t){var m,q={},r={},h={config:p,global:b,dijit:q,dojox:r};q={dojo:["dojo",h],dijit:["dijit",q],dojox:["dojox",r]};t=y.map&&y.map[t.id.match(/[^\/]+/)[0]];for(m in t)q[m]?q[m][0]=t[m]:q[m]=[t[m],
{}];for(m in q)t=q[m],t[1]._scopeName=t[0],p.noGlobals||(b[t[0]]=t[1]);h.scopeMap=q;h.baseUrl=h.config.baseUrl=y.baseUrl;h.isAsync=y.async;h.locale=p.locale;b="$Rev:$".match(/[0-9a-f]{7,}/);h.version={major:1,minor:17,patch:3,flag:"",revision:b?b[0]:NaN,toString:function(){var a=h.version;return a.major+"."+a.minor+"."+a.patch+a.flag+" ("+a.revision+")"}};A("csp-restrictions")||Function("d","d.eval \x3d function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(h);h.exit=
function(){};A("host-webworker");A.add("console-as-object",function(){return Function.prototype.bind&&console&&"object"===typeof console.log});"undefined"!=typeof console||(console={});t="assert count debug dir dirxml error group groupEnd info profile profileEnd time timeEnd trace warn log".split(" ");var c;for(b=0;c=t[b++];)console[c]?A("console-as-object")&&(console[c]=Function.prototype.bind.call(console[c],console)):function(){var a=c+"";console[a]="log"in console?function(){var f=Array.prototype.slice.call(arguments);
f.unshift(a+":");console.log(f.join(" "))}:function(){};console[a]._fake=!0}();A.add("dojo-debug-messages",!!p.isDebug);h.deprecated=h.experimental=function(){};A("dojo-debug-messages")&&(h.deprecated=function(a,f,e){a="DEPRECATED: "+a;f&&(a+=" "+f);e&&(a+=" -- will be removed in version: "+e);console.warn(a)},h.experimental=function(a,f){a="EXPERIMENTAL: "+a+" -- APIs subject to change without notice.";f&&(a+=" "+f);console.warn(a)});if(p.modulePaths){h.deprecated("dojo.modulePaths","use paths configuration");
A={};for(m in p.modulePaths)A[m.replace(/\./g,"/")]=p.modulePaths[m];y({paths:A})}h.moduleUrl=function(a,f){h.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var e=null;a&&(e=y.toUrl(a.replace(/\./g,"/")+(f?"/"+f:"")+"/*.*").replace(/\/\*\.\*/,"")+(f?"":"/"));return e};h._hasResource={};return h})},"dojo/global":function(){define(function(){return"undefined"!==typeof global&&"function"!==typeof global?global:"undefined"!==typeof window?window:"undefined"!==typeof self?self:this})},"dojo/has":function(){define(["./global",
"require","module"],function(b,A,p){var y=A.has||function(){};if(!y("dojo-has-api")){var t="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location==location&&window.document==document&&document,m=t&&t.createElement("DiV"),q=p.config&&p.config()||{};y=function(r){return"function"==typeof q[r]?q[r]=q[r](b,t,m):q[r]};y.cache=q;y.add=function(r,h,c,a){("undefined"==typeof q[r]||a)&&(q[r]=h);return c&&y(r)}}y.add("dom-addeventlistener",!!document.addEventListener);
y.add("touch","ontouchstart"in document||"onpointerdown"in document&&0<navigator.maxTouchPoints||window.navigator.msMaxTouchPoints);y.add("touch-events","ontouchstart"in document);y.add("pointer-events","pointerEnabled"in window.navigator?window.navigator.pointerEnabled:"PointerEvent"in window);y.add("MSPointer",window.navigator.msPointerEnabled);y.add("touch-action",y("touch")&&y("pointer-events"));y.add("device-width",screen.availWidth||innerWidth);A=document.createElement("form");y.add("dom-attributes-explicit",
0==A.attributes.length);y.add("dom-attributes-specified-flag",0<A.attributes.length&&40>A.attributes.length);y.clearElement=function(r){r.innerHTML="";return r};y.normalize=function(r,h){var c=r.match(/[\?:]|[^:\?]*/g),a=0,f=function(e){var k=c[a++];if(":"==k)return 0;if("?"==c[a++]){if(!e&&y(k))return f();f(!0);return f(e)}return k||0};return(r=f())&&h(r)};y.load=function(r,h,c){r?h([r],c):c()};return y})},"dojo/_base/config":function(){define(["../global","../has","require"],function(b,A,p){b={};
p=p.rawConfig;for(var y in p)b[y]=p[y];!b.locale&&"undefined"!=typeof navigator&&(y=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language||navigator.userLanguage)&&(b.locale=y.toLowerCase());return b})},"dojo/json":function(){define(["./has"],function(b){var A="undefined"!=typeof JSON;b.add("json-parse",A);b.add("json-stringify",A&&'{"a":1}'==JSON.stringify({a:0},function(y,t){return t||1}));if(b("json-stringify"))return JSON;var p=function(y){return('"'+y.replace(/(["\\])/g,
"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};return{parse:b("json-parse")?JSON.parse:function(y,t){if(t&&!/^([\s\[\{]*(?:"(?:\\.|[^"])*"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(y))throw new SyntaxError("Invalid characters in JSON");return eval("("+y+")")},stringify:function(y,t,m){function q(h,c,a){t&&(h=t(a,h));var f=typeof h;if("number"==f)return isFinite(h)?h+"":"null";if("boolean"==
f)return h+"";if(null===h)return"null";if("string"==typeof h)return p(h);if("function"==f||"undefined"==f)return r;if("function"==typeof h.toJSON)return q(h.toJSON(a),c,a);if(h instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,function(x,n,v){x=h["getUTC"+n]()+(v?1:0);return 10>x?"0"+x:x});if(h.valueOf()!==h)return q(h.valueOf(),c,a);var e=m?c+m:"",k=m?" ":"",l=m?"\n":"";if(h instanceof Array){k=h.length;var d=[];for(a=0;a<k;a++)f=q(h[a],e,
a),"string"!=typeof f&&(f="null"),d.push(l+e+f);return"["+d.join(",")+l+c+"]"}d=[];for(a in h)if(h.hasOwnProperty(a)){if("number"==typeof a)var u='"'+a+'"';else if("string"==typeof a)u=p(a);else continue;f=q(h[a],e,a);"string"==typeof f&&d.push(l+e+u+":"+k+f)}return"{"+d.join(",")+l+c+"}"}var r;"string"==typeof t&&(m=t,t=null);return q(y,"","")}}})},"dojo/_base/lang":function(){define(["./kernel","../has","../sniff"],function(b,A){A.add("bug-for-in-skips-shadowed",function(){for(var c in{toString:1})return 0;
return 1});var p=A("bug-for-in-skips-shadowed")?"hasOwnProperty valueOf isPrototypeOf propertyIsEnumerable toLocaleString toString constructor".split(" "):[],y=p.length,t=function(c,a,f){f||(f=c[0]&&b.scopeMap[c[0]]?b.scopeMap[c.shift()][1]:b.global);try{for(var e=0;e<c.length;e++){var k=c[e];if("__proto__"===k||"constructor"===k)return;if(!(k in f))if(a)f[k]={};else return;f=f[k]}return f}catch(l){}},m=Object.prototype.toString,q=function(c,a,f){return(f||[]).concat(Array.prototype.slice.call(c,
a||0))},r=/\{([^\}]+)\}/g,h={_extraNames:p,_mixin:function(c,a,f){var e,k={};for(d in a){var l=a[d];d in c&&(c[d]===l||d in k&&k[d]===l)||(c[d]=f?f(l):l)}if(A("bug-for-in-skips-shadowed")&&a)for(e=0;e<y;++e){var d=p[e];l=a[d];d in c&&(c[d]===l||d in k&&k[d]===l)||(c[d]=f?f(l):l)}return c},mixin:function(c,a){c||(c={});for(var f=1,e=arguments.length;f<e;f++)h._mixin(c,arguments[f]);return c},setObject:function(c,a,f){var e=c.split(".");c=e.pop();return(f=t(e,!0,f))&&c?f[c]=a:void 0},getObject:function(c,
a,f){return c?t(c.split("."),a,f):f},exists:function(c,a){return void 0!==h.getObject(c,!1,a)},isString:function(c){return"string"==typeof c||c instanceof String},isArray:Array.isArray||function(c){return"[object Array]"==m.call(c)},isFunction:function(c){return"[object Function]"===m.call(c)},isObject:function(c){return void 0!==c&&(null===c||"object"==typeof c||h.isArray(c)||h.isFunction(c))},isArrayLike:function(c){return!!c&&!h.isString(c)&&!h.isFunction(c)&&!(c.tagName&&"form"==c.tagName.toLowerCase())&&
(h.isArray(c)||isFinite(c.length))},isAlien:function(c){return c&&!h.isFunction(c)&&/\{\s*\[native code\]\s*\}/.test(String(c))},extend:function(c,a){for(var f=1,e=arguments.length;f<e;f++)h._mixin(c.prototype,arguments[f]);return c},_hitchArgs:function(c,a){var f=h._toArray(arguments,2),e=h.isString(a);return function(){var k=h._toArray(arguments),l=e?(c||b.global)[a]:a;return l&&l.apply(c||this,f.concat(k))}},hitch:function(c,a){if(2<arguments.length)return h._hitchArgs.apply(b,arguments);a||(a=
c,c=null);if(h.isString(a)){c=c||b.global;if(!c[a])throw['lang.hitch: scope["',a,'"] is null (scope\x3d"',c,'")'].join("");return function(){return c[a].apply(c,arguments||[])}}return c?function(){return a.apply(c,arguments||[])}:a},delegate:function(){function c(){}return function(a,f){c.prototype=a;a=new c;c.prototype=null;f&&h._mixin(a,f);return a}}(),_toArray:A("ie")?function(){function c(a,f,e){e=e||[];for(f=f||0;f<a.length;f++)e.push(a[f]);return e}return function(a){return(a.item?c:q).apply(this,
arguments)}}():q,partial:function(c){return h.hitch.apply(b,[null].concat(h._toArray(arguments)))},clone:function(c){if(!c||"object"!=typeof c||h.isFunction(c))return c;if(c.nodeType&&"cloneNode"in c)return c.cloneNode(!0);if(c instanceof Date)return new Date(c.getTime());if(c instanceof RegExp)return new RegExp(c);var a;if(h.isArray(c)){var f=[];var e=0;for(a=c.length;e<a;++e)e in c&&(f[e]=h.clone(c[e]))}else f=c.constructor?new c.constructor:{};return h._mixin(f,c,h.clone)},trim:String.prototype.trim?
function(c){return c.trim()}:function(c){return c.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(c,a,f){return c.replace(f||r,h.isFunction(a)?a:function(e,k){return h.getObject(k,!1,a)})}};h.mixin(b,h);return h})},"dojo/sniff":function(){define(["./has"],function(b){var A=navigator,p=A.userAgent;A=A.appVersion;var y=parseFloat(A);b.add("air",0<=p.indexOf("AdobeAIR"));b.add("wp",parseFloat(p.split("Windows Phone")[1])||void 0);b.add("msapp",parseFloat(p.split("MSAppHost/")[1])||void 0);
b.add("khtml",0<=A.indexOf("Konqueror")?y:void 0);b.add("edge",parseFloat(p.split("Edge/")[1])||void 0);b.add("opr",parseFloat(p.split("OPR/")[1])||void 0);b.add("webkit",!b("wp")&&!b("edge")&&parseFloat(p.split("WebKit/")[1])||void 0);b.add("chrome",!b("edge")&&!b("opr")&&parseFloat(p.split("Chrome/")[1])||void 0);b.add("android",!b("wp")&&parseFloat(p.split("Android ")[1])||void 0);b.add("safari",!(0<=A.indexOf("Safari"))||b("wp")||b("chrome")||b("android")||b("edge")||b("opr")?void 0:parseFloat(A.split("Version/")[1]));
b.add("mac",0<=A.indexOf("Macintosh"));b.add("quirks","BackCompat"==document.compatMode);if(!b("wp")&&p.match(/(iPhone|iPod|iPad)/)){var t=RegExp.$1.replace(/P/,"p"),m=p.match(/OS ([\d_]+)/)?RegExp.$1:"1";m=parseFloat(m.replace(/_/,".").replace(/_/g,""));b.add(t,m);b.add("ios",m)}b.add("bb",(0<=p.indexOf("BlackBerry")||0<=p.indexOf("BB10"))&&parseFloat(p.split("Version/")[1])||void 0);b.add("trident",parseFloat(A.split("Trident/")[1])||void 0);b.add("svg","undefined"!==typeof SVGAngle);b("webkit")||
(0<=p.indexOf("Opera")&&b.add("opera",9.8<=y?parseFloat(p.split("Version/")[1])||y:y),!(0<=p.indexOf("Gecko"))||b("wp")||b("khtml")||b("trident")||b("edge")||b.add("mozilla",y),b("mozilla")&&b.add("ff",parseFloat(p.split("Firefox/")[1]||p.split("Minefield/")[1])||void 0),document.all&&!b("opera")&&(p=parseFloat(A.split("MSIE ")[1])||void 0,(A=document.documentMode)&&5!=A&&Math.floor(p)!=A&&(p=A),b.add("ie",p)),b.add("wii","undefined"!=typeof opera&&opera.wiiremote));return b})},"dojo/_base/array":function(){define(["./kernel",
"../has","./lang"],function(b,A,p){function y(c){var a=!c;return function(f,e,k){var l=0,d=f&&f.length||0;d&&"string"==typeof f&&(f=f.split(""));if("string"==typeof e){if(A("csp-restrictions"))throw new TypeError("callback must be a function");e=m[e]||r(e)}if(k)for(;l<d;++l){var u=!e.call(k,f[l],l,f);if(c^u)return!u}else for(;l<d;++l)if(u=!e(f[l],l,f),c^u)return!u;return a}}function t(c){var a=1,f=0,e=0;c||(a=f=e=-1);return function(k,l,d,u){if(u&&0<a)return h.lastIndexOf(k,l,d);u=k&&k.length||0;
var x=c?u+e:f;d===q?d=c?f:u+e:0>d?(d=u+d,0>d&&(d=f)):d=d>=u?u+e:d;for(u&&"string"==typeof k&&(k=k.split(""));d!=x;d+=a)if(k[d]==l)return d;return-1}}var m={},q,r;A("csp-restrictions")||(r=function(c){return m[c]=new Function("item","index","array",c)});var h={every:y(!1),some:y(!0),indexOf:t(!0),lastIndexOf:t(!1),forEach:function(c,a,f){var e=0,k=c&&c.length||0;k&&"string"==typeof c&&(c=c.split(""));if("string"==typeof a){if(A("csp-restrictions"))throw new TypeError("callback must be a function");
a=m[a]||r(a)}if(f)for(;e<k;++e)a.call(f,c[e],e,c);else for(;e<k;++e)a(c[e],e,c)},map:function(c,a,f,e){var k=0,l=c&&c.length||0;e=new (e||Array)(l);l&&"string"==typeof c&&(c=c.split(""));if("string"==typeof a){if(A("csp-restrictions"))throw new TypeError("callback must be a function");a=m[a]||r(a)}if(f)for(;k<l;++k)e[k]=a.call(f,c[k],k,c);else for(;k<l;++k)e[k]=a(c[k],k,c);return e},filter:function(c,a,f){var e=0,k=c&&c.length||0,l=[];k&&"string"==typeof c&&(c=c.split(""));if("string"==typeof a){if(A("csp-restrictions"))throw new TypeError("callback must be a function");
a=m[a]||r(a)}if(f)for(;e<k;++e){var d=c[e];a.call(f,d,e,c)&&l.push(d)}else for(;e<k;++e)d=c[e],a(d,e,c)&&l.push(d);return l},clearCache:function(){m={}}};p.mixin(b,h);return h})},"dojo/require":function(){define(["./_base/loader"],function(b){return{dynamic:0,normalize:function(A){return A},load:b.require}})},"dojo/text":function(){define(["./_base/kernel","require","./has","./request"],function(b,A,p,y){var t=function(c,a,f){y(c,{sync:!!a,headers:{"X-Requested-With":null}}).then(f)};var m={},q=function(c){if(c){c=
c.replace(/^\s*<\?xml(\s)+version=['"](\d)*.(\d)*['"](\s)*\?>/im,"");var a=c.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);a&&(c=a[1])}else c="";return c},r={},h={};b.cache=function(c,a,f){if("string"==typeof c)if(/\//.test(c)){var e=c;f=a}else e=A.toUrl(c.replace(/\./g,"/")+(a?"/"+a:""));else e=c+"",f=a;c=void 0!=f&&"string"!=typeof f?f.value:f;f=f&&f.sanitize;if("string"==typeof c)return m[e]=c,f?q(c):c;if(null===c)return delete m[e],null;e in m||t(e,!0,function(k){m[e]=k});return f?q(m[e]):m[e]};
return{dynamic:!0,normalize:function(c,a){c=c.split("!");var f=c[0];return(/^\./.test(f)?a(f):f)+(c[1]?"!"+c[1]:"")},load:function(c,a,f){c=c.split("!");var e=1<c.length,k=c[0],l=a.toUrl(c[0]);c="url:"+l;var d=r,u=function(n){f(e?q(n):n)};k in m?d=m[k]:a.cache&&c in a.cache?d=a.cache[c]:l in m&&(d=m[l]);if(d===r)if(h[l])h[l].push(u);else{var x=h[l]=[u];t(l,!a.async,function(n){m[k]=m[l]=n;for(var v=0;v<x.length;)x[v++](n);delete h[l]})}else u(d)}}})},"dojo/request":function(){define(["./request/default!"],
function(b){return b})},"dojo/request/default":function(){define(["exports","require","../has"],function(b,A,p){var y=p("config-requestProvider");y||(y="./xhr");b.getPlatformDefaultId=function(){return"./xhr"};b.load=function(t,m,q,r){A(["platform"==t?"./xhr":y],function(h){q(h)})}})},"dojo/i18n":function(){define("./_base/kernel require ./has ./_base/array ./_base/config ./_base/lang ./_base/xhr ./json module".split(" "),function(b,A,p,y,t,m,q,r,h){p.add("dojo-preload-i18n-Api",1);var c=b.i18n={},
a=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,f=function(B,K,J,R){var V=[J+R];K=K.split("-");for(var Y="",S=0;S<K.length;S++)if(Y+=(Y?"-":"")+K[S],!B||B[Y])V.push(J+Y+"/"+R),V.specificity=Y;return V},e={},k=function(B,K,J){J=J?J.toLowerCase():b.locale;B=B.replace(/\./g,"/");K=K.replace(/\./g,"/");return/root/i.test(J)?B+"/nls/"+K:B+"/nls/"+J+"/"+K},l=b.getL10nName=function(B,K,J){return B=h.id+"!"+k(B,K,J)},d=function(B,K,J,R,V,Y){B([K],function(S){var U=m.clone(S.root||S.ROOT),L=f(!S._v1x&&S,V,J,R);
B(L,function(){for(var T=1;T<L.length;T++)U=m.mixin(m.clone(U),arguments[T]);e[K+"/"+V]=U;U.$locale=L.specificity;Y()})})},u=function(B){var K=t.extraLocale||[];K=m.isArray(K)?K:[K];K.push(B);return K},x=function(B,K,J){var R=a.exec(B),V=R[1]+"/",Y=R[5]||R[4],S=V+Y,U=(R=R[5]&&R[4])||b.locale||"",L=S+"/"+U;R=R?[U]:u(U);var T=R.length,da=function(){--T||J(m.delegate(e[L]))};U=B.split("*");var ha="preload"==U[1];if(p("dojo-preload-i18n-Api")){if(ha&&(e[B]||(e[B]=1,O(U[2],r.parse(U[3]),1,K)),J(1)),(U=
ha)||(v&&D.push([B,K,J]),U=v&&!e[L]),U)return}else if(ha){J(1);return}y.forEach(R,function(ca){var qa=S+"/"+ca;p("dojo-preload-i18n-Api")&&z(qa);e[qa]?da():d(K,S,V,Y,ca,da)})};p("dojo-preload-i18n-Api");var n=c.normalizeLocale=function(B){B=B?B.toLowerCase():b.locale;return"root"==B?"ROOT":B},v=0,D=[],O=c._preloadLocalizations=function(B,K,J,R){function V(L,T){R.isXdUrl(A.toUrl(L+".js"))||J?R([L],T):H([L],T,R)}function Y(L,T){for(L=L.split("-");L.length;){if(T(L.join("-")))return;L.pop()}T("ROOT")}
function S(){for(--v;!v&&D.length;)x.apply(null,D.shift())}function U(L){L=n(L);Y(L,function(T){if(0<=y.indexOf(K,T)){var da=B.replace(/\./g,"/")+"_"+T;v++;V(da,function(ha){for(var ca in ha){var qa=ha[ca],ta=ca.match(/(.+)\/([^\/]+)$/);if(ta){var oa=ta[2];ta=ta[1]+"/";if(qa._localized){var va;if("ROOT"===T){var na=va=qa._localized;delete qa._localized;na.root=qa;e[A.toAbsMid(ca)]=na}else va=qa._localized,e[A.toAbsMid(ta+oa+"/"+T)]=qa;T!==L&&function(ra,ia,wa,ya){var F=[],I=[];Y(L,function(M){ya[M]&&
(F.push(A.toAbsMid(ra+M+"/"+ia)),I.push(A.toAbsMid(ra+ia+"/"+M)))});F.length?(v++,R(F,function(){for(var M=F.length-1;0<=M;M--)wa=m.mixin(m.clone(wa),arguments[M]),e[I[M]]=wa;e[A.toAbsMid(ra+ia+"/"+L)]=m.clone(wa);S()})):e[A.toAbsMid(ra+ia+"/"+L)]=wa}(ta,oa,qa,va)}}}S()});return!0}return!1})}R=R||A;U();y.forEach(b.config.extraLocale,U)},z=function(){},w={},E={},C,H=function(B,K,J){var R=[];y.forEach(B,function(V){function Y(L){C||(C=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;}"));L=C(L,z,V,w);L===w?R.push(e[S]=w.result):(L instanceof Error&&(console.error("failed to evaluate i18n bundle; url\x3d"+
S,L),L={}),R.push(e[S]=/nls\/[^\/]+\/[^\/]+$/.test(S)?L:{root:L,_v1x:1}))}var S=J.toUrl(V+".js");if(e[S])R.push(e[S]);else{var U=J.syncLoadNls(V);U||(U=z(V.replace(/nls\/([^\/]*)\/([^\/]*)$/,"nls/$2/$1")));if(U)R.push(U);else if(q)q.get({url:S,sync:!0,load:Y,error:function(){R.push(e[S]={})}});else try{J.getText(S,!0,Y)}catch(L){R.push(e[S]={})}}});K&&K.apply(null,R)};z=function(B){for(var K,J=B.split("/"),R=b.global[J[0]],V=1;R&&V<J.length-1;R=R[J[V++]]);R&&((K=R[J[V]])||(K=R[J[V].replace(/-/g,"_")]),
K&&(e[B]=K));return K};c.getLocalization=function(B,K,J){var R,V=k(B,K,J);if(E[V])return E[V];x(V,A.isXdUrl(A.toUrl(V+".js"))?A:function(Y,S){H(Y,S,A)},function(Y){R=E[V]=Y});return R};return m.mixin(c,{dynamic:!0,normalize:function(B,K){return/^\./.test(B)?K(B):B},load:x,cache:e,getL10nName:l})})},"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(b,A,p,y,t,m,q,r,h,c,a,f,e,k,l,d){b._xhrObj=l._create;var u=b.config;b.objectToQuery=y.objectToQuery;b.queryToObject=y.queryToObject;b.fieldToObject=m.fieldToObject;b.formToObject=m.toObject;b.formToQuery=m.toQuery;b.formToJson=m.toJson;b._blockAsync=!1;A.add("native-xhr2-blob",function(){if(A("native-xhr2")){var z=new XMLHttpRequest;z.open("GET","/",!0);z.responseType="blob";var w=z.responseType;z.abort();return"blob"===w}});var x=b._contentHandlers=b.contentHandlers={text:function(z){return z.responseText},
json:function(z){return h.fromJson(z.responseText||null)},"json-comment-filtered":function(z){r.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.");z=z.responseText;var w=z.indexOf("/*"),E=z.lastIndexOf("*/");if(-1==w||-1==E)throw Error("JSON was not comment filtered");
return h.fromJson(z.substring(w+2,E))},javascript:function(z){return b.eval(z.responseText)},xml:function(z){var w=z.responseXML;w&&A("dom-qsa2.1")&&!w.querySelectorAll&&A("dom-parser")&&(w=(new DOMParser).parseFromString(z.responseText,"application/xml"));if(A("ie")&&(!w||!w.documentElement)){var E=function(C){return"MSXML"+C+".DOMDocument"};E=["Microsoft.XMLDOM",E(6),E(4),E(3),E(2)];a.some(E,function(C){try{var H=new ActiveXObject(C);H.async=!1;H.loadXML(z.responseText);w=H}catch(B){return!1}return!0})}return w},
"json-comment-optional":function(z){return z.responseText&&/^[^{\[]*\/\*/.test(z.responseText)?x["json-comment-filtered"](z):x.json(z)}};A("native-xhr2")&&(x.arraybuffer=x.blob=x.document=function(z,w){return"blob"!==w.args.handleAs||A("native-xhr2-blob")?z.response:new Blob([z.response],{type:z.getResponseHeader("Content-Type")})});b._ioSetArgs=function(z,w,E,C){var H={args:z,url:z.url},B=null;if(z.form){B=t.byId(z.form);var K=B.getAttributeNode("action");H.url=H.url||(K?K.value:b.doc?b.doc.URL:
null);B=m.toObject(B)}K={};B&&c.mixin(K,B);z.content&&c.mixin(K,z.content);z.preventCache&&(K["dojo.preventCache"]=(new Date).valueOf());H.query=y.objectToQuery(K);H.handleAs=z.handleAs||"text";var J=new q(function(S){S.canceled=!0;w&&w(S);var U=S.ioArgs.error;U||(U=Error("request cancelled"),U.dojoType="cancel",S.ioArgs.error=U);return U});J.addCallback(E);var R=z.load;R&&c.isFunction(R)&&J.addCallback(function(S){return R.call(z,S,H)});var V=z.error;V&&c.isFunction(V)&&J.addErrback(function(S){return V.call(z,
S,H)});var Y=z.handle;Y&&c.isFunction(Y)&&J.addBoth(function(S){return Y.call(z,S,H)});J.addErrback(function(S){return C(S,J)});u.ioPublish&&b.publish&&!1!==H.args.ioPublish&&(J.addCallbacks(function(S){b.publish("/dojo/io/load",[J,S]);return S},function(S){b.publish("/dojo/io/error",[J,S]);return S}),J.addBoth(function(S){b.publish("/dojo/io/done",[J,S]);return S}));J.ioArgs=H;return J};var n=function(z){z=x[z.ioArgs.handleAs](z.ioArgs.xhr,z.ioArgs);return void 0===z?null:z},v=function(z,w){w.ioArgs.args.failOk||
console.error(z);return z},D=function(z){0>=O&&(O=0,u.ioPublish&&b.publish&&(!z||z&&!1!==z.ioArgs.args.ioPublish)&&b.publish("/dojo/io/stop"))},O=0;e.after(k,"_onAction",function(){--O});e.after(k,"_onInFlight",D);b._ioCancelAll=k.cancelAll;b._ioNotifyStart=function(z){u.ioPublish&&b.publish&&!1!==z.ioArgs.args.ioPublish&&(O||b.publish("/dojo/io/start"),O+=1,b.publish("/dojo/io/send",[z]))};b._ioWatch=function(z,w,E,C){z.ioArgs.options=z.ioArgs.args;c.mixin(z,{response:z.ioArgs,isValid:function(H){return w(z)},
isReady:function(H){return E(z)},handleResponse:function(H){return C(z)}});k(z);D(z)};b._ioAddQueryToUrl=function(z){z.query.length&&(z.url+=(-1==z.url.indexOf("?")?"?":"\x26")+z.query,z.query=null)};b.xhr=function(z,w,E){var C=b._ioSetArgs(w,function(J){K&&K.cancel()},n,v),H=C.ioArgs;"postData"in w?H.query=w.postData:"putData"in w?H.query=w.putData:"rawBody"in w?H.query=w.rawBody:(2<arguments.length&&!E||-1==="POST|PUT".indexOf(z.toUpperCase()))&&b._ioAddQueryToUrl(H);var B;A("native-xhr2")&&(B=
{arraybuffer:1,blob:1,document:1});B=B[w.handleAs]?w.handleAs:"text";"blob"!==B||A("native-xhr2-blob")||(B="arraybuffer");B={method:z,handleAs:B,responseType:w.responseType,timeout:w.timeout,withCredentials:w.withCredentials,ioArgs:H};"undefined"!==typeof w.headers&&(B.headers=w.headers);"undefined"!==typeof w.contentType&&(B.headers||(B.headers={}),B.headers["Content-Type"]=w.contentType);"undefined"!==typeof H.query&&(B.data=H.query);"undefined"!==typeof w.sync&&(B.sync=w.sync);b._ioNotifyStart(C);
try{var K=l(H.url,B,!0)}catch(J){return C.cancel(),C}C.ioArgs.xhr=K.response.xhr;K.then(function(){C.resolve(C)}).otherwise(function(J){H.error=J;J.response&&(J.status=J.response.status,J.responseText=J.response.text,J.xhr=J.response.xhr);C.reject(J)});return C};b.xhrGet=function(z){return b.xhr("GET",z)};b.rawXhrPost=b.xhrPost=function(z){return b.xhr("POST",z,!0)};b.rawXhrPut=b.xhrPut=function(z){return b.xhr("PUT",z,!0)};b.xhrDelete=function(z){return b.xhr("DELETE",z)};b._isDocumentOk=function(z){return d.checkStatus(z.status)};
b._getText=function(z){var w;b.xhrGet({url:z,sync:!0,load:function(E){w=E}});return w};c.mixin(b.xhr,{_xhrObj:b._xhrObj,fieldToObject:m.fieldToObject,formToObject:m.toObject,objectToQuery:y.objectToQuery,formToQuery:m.toQuery,formToJson:m.toJson,queryToObject:y.queryToObject,contentHandlers:x,_ioSetArgs:b._ioSetArgs,_ioCancelAll:b._ioCancelAll,_ioNotifyStart:b._ioNotifyStart,_ioWatch:b._ioWatch,_ioAddQueryToUrl:b._ioAddQueryToUrl,_isDocumentOk:b._isDocumentOk,_getText:b._getText,get:b.xhrGet,post:b.xhrPost,
put:b.xhrPut,del:b.xhrDelete});return b.xhr})},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(b,A,p){b._name="browser";A.mixin(b,{isBrowser:!0,isFF:p("ff"),isIE:p("ie"),isKhtml:p("khtml"),isWebKit:p("webkit"),isMozilla:p("mozilla"),isMoz:p("mozilla"),isOpera:p("opera"),isSafari:p("safari"),isChrome:p("chrome"),isMac:p("mac"),isIos:p("ios"),isAndroid:p("android"),isWii:p("wii"),isQuirks:p("quirks"),isAir:p("air")});return p})},"dojo/io-query":function(){define(["./_base/lang"],
function(b){var A={};return{objectToQuery:function(p){var y=encodeURIComponent,t=[],m;for(m in p){var q=p[m];if(q!=A[m]){var r=y(m)+"\x3d";if(b.isArray(q))for(var h=0,c=q.length;h<c;++h)t.push(r+y(q[h]));else t.push(r+y(q))}}return t.join("\x26")},queryToObject:function(p){var y=decodeURIComponent;p=p.split("\x26");for(var t={},m,q,r=0,h=p.length;r<h;++r)if(q=p[r],q.length){var c=q.indexOf("\x3d");0>c?(m=y(q),q=""):(m=y(q.slice(0,c)),q=y(q.slice(c+1)));"string"==typeof t[m]&&(t[m]=[t[m]]);b.isArray(t[m])?
t[m].push(q):t[m]=q}return t}}})},"dojo/dom":function(){define(["./sniff","./_base/window","./_base/kernel"],function(b,A,p){if(7>=b("ie"))try{document.execCommand("BackgroundImageCache",!1,!0)}catch(m){}var y={};b("ie")?y.byId=function(m,q){if("string"!=typeof m)return m||null;var r=q||A.doc;q=m&&r.getElementById(m);if(!q||q.attributes.id.value!=m&&q.id!=m){r=r.all[m];if(!r||r.nodeName)r=[r];for(var h=0;q=r[h++];)if(q.attributes&&q.attributes.id&&q.attributes.id.value==m||q.id==m)return q}else return q;
return null}:y.byId=function(m,q){return("string"==typeof m?(q||A.doc).getElementById(m):m)||null};p=p.global.document||null;b.add("dom-contains",!(!p||!p.contains));y.isDescendant=b("dom-contains")?function(m,q){return!(!(q=y.byId(q))||!q.contains(y.byId(m)))}:function(m,q){try{for(m=y.byId(m),q=y.byId(q);m;){if(m==q)return!0;m=m.parentNode}}catch(r){}return!1};b.add("css-user-select",function(m,q,r){if(!r)return!1;m=r.style;q=["Khtml","O","Moz","Webkit"];r=q.length;var h="userSelect";do if("undefined"!==
typeof m[h])return h;while(r--&&(h=q[r]+"UserSelect"));return!1});var t=b("css-user-select");y.setSelectable=t?function(m,q){y.byId(m).style[t]=q?"":"none"}:function(m,q){m=y.byId(m);var r=m.getElementsByTagName("*"),h=r.length;if(q)for(m.removeAttribute("unselectable");h--;)r[h].removeAttribute("unselectable");else for(m.setAttribute("unselectable","on");h--;)r[h].setAttribute("unselectable","on")};return y})},"dojo/_base/window":function(){define(["./kernel","./lang","../sniff"],function(b,A,p){var y=
{global:b.global,doc:b.global.document||null,body:function(t){t=t||b.doc;return t.body||t.getElementsByTagName("body")[0]},setContext:function(t,m){b.global=y.global=t;b.doc=y.doc=m},withGlobal:function(t,m,q,r){var h=b.global;try{return b.global=y.global=t,y.withDoc.call(null,t.document,m,q,r)}finally{b.global=y.global=h}},withDoc:function(t,m,q,r){var h=y.doc,c=p("quirks"),a=p("ie"),f,e;try{b.doc=y.doc=t;b.isQuirks=p.add("quirks","BackCompat"==b.doc.compatMode,!0,!0);if(p("ie")&&(e=t.parentWindow)&&
e.navigator){var k=parseFloat(e.navigator.appVersion.split("MSIE ")[1])||void 0;(f=t.documentMode)&&5!=f&&Math.floor(k)!=f&&(k=f);b.isIE=p.add("ie",k,!0,!0)}q&&"string"==typeof m&&(m=q[m]);return m.apply(q,r||[])}finally{b.doc=y.doc=h,b.isQuirks=p.add("quirks",c,!0,!0),b.isIE=p.add("ie",a,!0,!0)}}};A.mixin(b,y);return y})},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query","./json"],function(b,A,p,y){var t={fieldToObject:function(m){var q=null;if(m=A.byId(m)){var r=m.name,h=(m.type||
"").toLowerCase();if(r&&h&&!m.disabled)if("radio"==h||"checkbox"==h)m.checked&&(q=m.value);else if(m.multiple)for(q=[],m=[m.firstChild];m.length;)for(r=m.pop();r;r=r.nextSibling)if(1==r.nodeType&&"option"==r.tagName.toLowerCase())r.selected&&q.push(r.value);else{r.nextSibling&&m.push(r.nextSibling);r.firstChild&&m.push(r.firstChild);break}else q=m.value}return q},toObject:function(m){var q={};m=A.byId(m).elements;for(var r=0,h=m.length;r<h;++r){var c=m[r],a=c.name,f=(c.type||"").toLowerCase();if(a&&
f&&0>"file|submit|image|reset|button".indexOf(f)&&!c.disabled){var e=q,k=a;c=t.fieldToObject(c);if(null!==c){var l=e[k];"string"==typeof l?e[k]=[l,c]:b.isArray(l)?l.push(c):e[k]=c}"image"==f&&(q[a+".x"]=q[a+".y"]=q[a].x=q[a].y=0)}}return q},toQuery:function(m){return p.objectToQuery(t.toObject(m))},toJson:function(m,q){return y.stringify(t.toObject(m),null,q?4:0)}};return t})},"dojo/_base/Deferred":function(){define("./kernel ../Deferred ../promise/Promise ../errors/CancelError ../has ./lang ../when".split(" "),
function(b,A,p,y,t,m,q){var r=function(){},h=Object.freeze||function(){},c=b.Deferred=function(a){function f(z){if(l)throw Error("This deferred has already been resolved");k=z;l=!0;e()}function e(){for(var z;!z&&v;){var w=v;v=v.next;if(z=w.progress==r)l=!1;var E=x?w.error:w.resolved;t("config-useDeferredInstrumentation")&&x&&A.instrumentRejected&&A.instrumentRejected(k,!!E);if(E)try{var C=E(k);C&&"function"===typeof C.then?C.then(m.hitch(w.deferred,"resolve"),m.hitch(w.deferred,"reject"),m.hitch(w.deferred,
"progress")):(E=z&&void 0===C,z&&!E&&(x=C instanceof Error),w.deferred[E&&x?"reject":"resolve"](E?k:C))}catch(H){w.deferred.reject(H)}else x?w.deferred.reject(k):w.deferred.resolve(k)}}var k,l,d,u,x,n,v,D=this.promise=new p;this.isResolved=D.isResolved=function(){return 0==u};this.isRejected=D.isRejected=function(){return 1==u};this.isFulfilled=D.isFulfilled=function(){return 0<=u};this.isCanceled=D.isCanceled=function(){return d};this.resolve=this.callback=function(z){this.fired=u=0;this.results=
[z,null];f(z)};this.reject=this.errback=function(z){x=!0;this.fired=u=1;t("config-useDeferredInstrumentation")&&A.instrumentRejected&&A.instrumentRejected(z,!!v);f(z);this.results=[null,z]};this.progress=function(z){for(var w=v;w;){var E=w.progress;E&&E(z);w=w.next}};this.addCallbacks=function(z,w){this.then(z,w,r);return this};D.then=this.then=function(z,w,E){var C=E==r?this:new c(D.cancel);z={resolved:z,error:w,progress:E,deferred:C};v?n=n.next=z:v=n=z;l&&e();return C.promise};var O=this;D.cancel=
this.cancel=function(){if(!l){var z=a&&a(O);l||(z instanceof Error||(z=new y(z)),z.log=!1,O.reject(z))}d=!0};h(D)};m.extend(c,{addCallback:function(a){return this.addCallbacks(m.hitch.apply(b,arguments))},addErrback:function(a){return this.addCallbacks(null,m.hitch.apply(b,arguments))},addBoth:function(a){var f=m.hitch.apply(b,arguments);return this.addCallbacks(f,f)},fired:-1});c.when=b.when=q;return c})},"dojo/Deferred":function(){define(["./has","./_base/lang","./errors/CancelError","./promise/Promise",
"./promise/instrumentation"],function(b,A,p,y,t){var m=Object.freeze||function(){},q=function(f,e,k,l,d){2===e&&a.instrumentRejected&&0===f.length&&a.instrumentRejected(k,!1,l,d);for(d=0;d<f.length;d++)r(f[d],e,k,l)},r=function(f,e,k,l){var d=f[e],u=f.deferred;if(d)try{var x=d(k);if(0===e)"undefined"!==typeof x&&c(u,e,x);else{if(x&&"function"===typeof x.then){f.cancel=x.cancel;x.then(h(u,1),h(u,2),h(u,0));return}c(u,1,x)}}catch(n){c(u,2,n)}else c(u,e,k);2===e&&a.instrumentRejected&&a.instrumentRejected(k,
!!d,l,u.promise)},h=function(f,e){return function(k){c(f,e,k)}},c=function(f,e,k){if(!f.isCanceled())switch(e){case 0:f.progress(k);break;case 1:f.resolve(k);break;case 2:f.reject(k)}},a=function(f){var e=this.promise=new y,k=this,l,d,u,x=!1,n=[];Error.captureStackTrace&&(Error.captureStackTrace(k,a),Error.captureStackTrace(e,a));this.isResolved=e.isResolved=function(){return 1===l};this.isRejected=e.isRejected=function(){return 2===l};this.isFulfilled=e.isFulfilled=function(){return!!l};this.isCanceled=
e.isCanceled=function(){return x};this.progress=function(D,O){if(l){if(!0===O)throw Error("This deferred has already been fulfilled.");return e}q(n,0,D,null,k);return e};this.resolve=function(D,O){if(l){if(!0===O)throw Error("This deferred has already been fulfilled.");return e}q(n,l=1,d=D,null,k);n=null;return e};var v=this.reject=function(D,O){if(l){if(!0===O)throw Error("This deferred has already been fulfilled.");return e}Error.captureStackTrace&&Error.captureStackTrace(u={},v);q(n,l=2,d=D,u,
k);n=null;return e};this.then=e.then=function(D,O,z){var w=[z,D,O];w.cancel=e.cancel;w.deferred=new a(function(E){return w.cancel&&w.cancel(E)});l&&!n?r(w,l,d,u):n.push(w);return w.deferred.promise};this.cancel=e.cancel=function(D,O){if(!l){f&&(O=f(D),D="undefined"===typeof O?D:O);x=!0;if(!l)return"undefined"===typeof D&&(D=new p),v(D),D;if(2===l&&d===D)return D}else if(!0===O)throw Error("This deferred has already been fulfilled.");};m(e)};a.prototype.toString=function(){return"[object Deferred]"};
t&&t(a);return a})},"dojo/errors/CancelError":function(){define(["./create"],function(b){return b("CancelError",null,null,{dojoType:"cancel",log:!1})})},"dojo/errors/create":function(){define(["../_base/lang"],function(b){return function(A,p,y,t){y=y||Error;var m=function(q){if(y===Error){Error.captureStackTrace&&Error.captureStackTrace(this,m);var r=Error.call(this,q),h;for(h in r)r.hasOwnProperty(h)&&(this[h]=r[h]);this.message=q;this.stack=r.stack}else y.apply(this,arguments);p&&p.apply(this,arguments)};
m.prototype=b.delegate(y.prototype,t);m.prototype.name=A;return m.prototype.constructor=m}})},"dojo/promise/Promise":function(){define(["../_base/lang"],function(b){function A(){throw new TypeError("abstract");}return b.extend(function(){},{then:function(p,y,t){A()},cancel:function(p,y){A()},isResolved:function(){A()},isRejected:function(){A()},isFulfilled:function(){A()},isCanceled:function(){A()},"finally":function(p){return this.then(function(y){var t=p();return t&&"function"===typeof t.then?t.then(function(){return y}):
y},function(y){var t=p();if(t&&"function"===typeof t.then)return t.then(function(){throw y;});throw y;})},always:function(p){return this.then(p,p)},"catch":function(p){return this.then(null,p)},otherwise:function(p){return this.then(null,p)},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(b,A,p,y){function t(f,e,k){if(!f||
!1!==f.log){var l="";f&&f.stack&&(l+=f.stack);e&&e.stack&&(l+="\n    ----------------------------------------\n    rejected"+e.stack.split("\n").slice(1).join("\n").replace(/^\s+/," "));k&&k.stack&&(l+="\n    ----------------------------------------\n"+k.stack);console.error(f,l)}}function m(f,e,k,l){e||t(f,k,l)}function q(f,e,k,l){y.some(h,function(d){if(d.error===f)return e&&(d.handled=!0),!0})||h.push({error:f,rejection:k,handled:e,deferred:l,timestamp:(new Date).getTime()});c||(c=setTimeout(r,
a))}function r(){var f=(new Date).getTime(),e=f-a;h=y.filter(h,function(k){return k.timestamp<e?(k.handled||t(k.error,k.rejection,k.deferred),!1):!0});c=h.length?setTimeout(r,h[0].timestamp+a-f):!1}A.add("config-useDeferredInstrumentation","report-unhandled-rejections");var h=[],c=!1,a=1E3;return function(f){var e=A("config-useDeferredInstrumentation");if(e){b.on("resolved",p.hitch(console,"log","resolved"));b.on("rejected",p.hitch(console,"log","rejected"));b.on("progress",p.hitch(console,"log",
"progress"));var k=[];"string"===typeof e&&(k=e.split(","),e=k.shift());if("report-rejections"===e)f.instrumentRejected=m;else if("report-unhandled-rejections"===e||!0===e||1===e)f.instrumentRejected=q,a=parseInt(k[0],10)||a;else throw Error("Unsupported instrumentation usage \x3c"+e+"\x3e");}}})},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(b,A,p){function y(q){setTimeout(function(){m.apply(t,q)},0)}var t=new p,m=t.emit;t.emit=null;A.prototype.trace=
function(){var q=b._toArray(arguments);this.then(function(r){y(["resolved",r].concat(q))},function(r){y(["rejected",r].concat(q))},function(r){y(["progress",r].concat(q))});return this};A.prototype.traceRejected=function(){var q=b._toArray(arguments);this.otherwise(function(r){y(["rejected",r].concat(q))});return this};return t})},"dojo/Evented":function(){define(["./aspect","./on"],function(b,A){function p(){}var y=b.after;p.prototype={on:function(t,m){return A.parse(this,t,m,function(q,r){return y(q,
"on"+r,m,!0)})},emit:function(t,m){var q=[this];q.push.apply(q,arguments);return A.emit.apply(A,q)}};return p})},"dojo/aspect":function(){define([],function(){function b(q,r,h,c){var a=q[r],f="around"==r;if(f){var e=h(function(){return a.advice(this,arguments)});var k={remove:function(){e&&(e=q=h=null)},advice:function(l,d){return e?e.apply(l,d):a.advice(l,d)}}}else k={remove:function(){if(k.advice){var l=k.previous,d=k.next;d||l?(l?l.next=d:q[r]=d,d&&(d.previous=l)):delete q[r];q=h=k.advice=null}},
id:q.nextId++,advice:h,receiveArguments:c};if(a&&!f)if("after"==r){for(;a.next&&(a=a.next););a.next=k;k.previous=a}else"before"==r&&(q[r]=k,k.next=a,a.previous=k);else q[r]=k;return k}function A(q){return function(r,h,c,a){var f=r[h],e;f&&f.target==r||(r[h]=e=function(){for(var k=e.nextId,l=arguments,d=e.before;d;)d.advice&&(l=d.advice.apply(this,l)||l),d=d.next;if(e.around)var u=e.around.advice(this,l);for(d=e.after;d&&d.id<k;){if(d.advice)if(d.receiveArguments){var x=d.advice.apply(this,l);u=x===
p?u:x}else u=d.advice.call(this,u,l);d=d.next}return u},f&&(e.around={advice:function(k,l){return f.apply(k,l)}}),e.target=r,e.nextId=e.nextId||0);r=b(e||f,q,c,a);c=null;return r}}var p,y=A("after"),t=A("before"),m=A("around");return{before:t,around:m,after:y}})},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./_base/kernel","./sniff"],function(b,A,p){function y(w,E,C,H,B){if(H=E.match(/(.*):(.*)/))return E=H[2],H=H[1],r.selector(H,E).call(B,w,C);p("touch")&&(h.test(E)&&(C=z(C)),
p("event-orientationchange")||"orientationchange"!=E||(E="resize",w=window,C=z(C)));k&&(C=k(C));if(w.addEventListener){var K=E in f,J=K?f[E]:E;w.addEventListener(J,C,K);return{remove:function(){w.removeEventListener(J,C,K)}}}if(x&&w.attachEvent)return x(w,"on"+E,C);throw Error("Target must be an event emitter");}function t(){this.cancelable=!1;this.defaultPrevented=!0}function m(){this.bubbles=!1}var q=window.ScriptEngineMajorVersion;p.add("jscript",q&&q()+ScriptEngineMinorVersion()/10);p.add("event-orientationchange",
p("touch")&&!p("android"));p.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);p.add("event-focusin",function(w,E,C){return"onfocusin"in C});p("touch")&&p.add("touch-can-modify-event-delegate",function(){var w=function(){};w.prototype=document.createEvent("MouseEvents");try{var E=new w;E.target=null;return null===E.target}catch(C){return!1}});var r=function(w,E,C,H){return"function"!=typeof w.on||"function"==typeof E||w.nodeType?
r.parse(w,E,C,y,H,this):w.on(E,C)};r.pausable=function(w,E,C,H){var B;w=r(w,E,function(){if(!B)return C.apply(this,arguments)},H);w.pause=function(){B=!0};w.resume=function(){B=!1};return w};r.once=function(w,E,C,H){var B=r(w,E,function(){B.remove();return C.apply(this,arguments)});return B};r.parse=function(w,E,C,H,B,K){var J;if(E.call)return E.call(K,w,C);E instanceof Array?J=E:-1<E.indexOf(",")&&(J=E.split(/\s*,\s*/));if(J){var R=[];E=0;for(var V;V=J[E++];)R.push(r.parse(w,V,C,H,B,K));R.remove=
function(){for(var Y=0;Y<R.length;Y++)R[Y].remove()};return R}return H(w,E,C,B,K)};var h=/^touch/;r.matches=function(w,E,C,H,B){B=B&&"function"==typeof B.matches?B:A.query;H=!1!==H;1!=w.nodeType&&(w=w.parentNode);for(;!B.matches(w,E,C);)if(w==C||!1===H||!(w=w.parentNode)||1!=w.nodeType)return!1;return w};r.selector=function(w,E,C){return function(H,B){function K(V){return r.matches(V,w,H,C,J)}var J="function"==typeof w?{matches:w}:this,R=E.bubble;return R?r(H,R(K),B):r(H,E,function(V){var Y=K(V.target);
if(Y)return V.selectorTarget=Y,B.call(Y,V)})}};var c=[].slice,a=r.emit=function(w,E,C){var H=c.call(arguments,2),B="on"+E;if("parentNode"in w){var K=H[0]={},J;for(J in C)K[J]=C[J];K.preventDefault=t;K.stopPropagation=m;K.target=w;K.type=E;C=K}do w[B]&&w[B].apply(w,H);while(C&&C.bubbles&&(w=w.parentNode));return C&&C.cancelable&&C},f=p("event-focusin")?{}:{focusin:"focus",focusout:"blur"};if(!p("event-stopimmediatepropagation"))var e=function(){this.modified=this.immediatelyStopped=!0},k=function(w){return function(E){if(!E.immediatelyStopped)return E.stopImmediatePropagation=
e,w.apply(this,arguments)}};if(p("dom-addeventlistener"))r.emit=function(w,E,C){if(w.dispatchEvent&&document.createEvent){var H=(w.ownerDocument||document).createEvent("HTMLEvents");H.initEvent(E,!!C.bubbles,!!C.cancelable);for(var B in C)B in H||(H[B]=C[B]);return w.dispatchEvent(H)&&H}return a.apply(r,arguments)};else{r._fixEvent=function(w,E){w||(w=(E&&(E.ownerDocument||E.document||E).parentWindow||window).event);if(!w)return w;try{l&&w.type==l.type&&w.srcElement==l.target&&(w=l)}catch(C){}if(!w.target)switch(w.target=
w.srcElement,w.currentTarget=E||w.srcElement,"mouseover"==w.type&&(w.relatedTarget=w.fromElement),"mouseout"==w.type&&(w.relatedTarget=w.toElement),w.stopPropagation||(w.stopPropagation=n,w.preventDefault=v),w.type){case "keypress":E="charCode"in w?w.charCode:w.keyCode,10==E?(E=0,w.keyCode=13):13==E||27==E?E=0:3==E&&(E=99),w.charCode=E,E=w,E.keyChar=E.charCode?String.fromCharCode(E.charCode):"",E.charOrCode=E.keyChar||E.keyCode}return w};var l,d=function(w){this.handle=w};d.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};
var u=function(w){return function(E){E=r._fixEvent(E,this);var C=w.call(this,E);E.modified&&(l||setTimeout(function(){l=null}),l=E);return C}},x=function(w,E,C){C=u(C);if(((w.ownerDocument?w.ownerDocument.parentWindow:w.parentWindow||w.window||window)!=top||5.8>p("jscript"))&&!p("config-_allow_leaks")){"undefined"==typeof _dojoIEListeners_&&(_dojoIEListeners_=[]);var H=w[E];if(!H||!H.listeners){var B=H;H=Function("event","var callee \x3d arguments.callee; for(var i \x3d 0; i\x3ccallee.listeners.length; i++){var listener \x3d _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}");
H.listeners=[];w[E]=H;H.global=this;B&&H.listeners.push(_dojoIEListeners_.push(B)-1)}H.listeners.push(w=H.global._dojoIEListeners_.push(C)-1);return new d(w)}return b.after(w,E,C,!0)},n=function(){this.cancelBubble=!0},v=r._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey)try{this.keyCode=0}catch(w){}this.defaultPrevented=!0;this.returnValue=!1;this.modified=!0}}if(p("touch"))var D=function(){},O=window.orientation,z=function(w){return function(E){var C=E.corrected;if(!C){var H=
E.type;try{delete E.type}catch(J){}if(E.type){if(p("touch-can-modify-event-delegate"))D.prototype=E,C=new D;else{C={};for(var B in E)C[B]=E[B]}C.preventDefault=function(){E.preventDefault()};C.stopPropagation=function(){E.stopPropagation()}}else C=E,C.type=H;E.corrected=C;if("resize"==H){if(O==window.orientation)return null;O=window.orientation;C.type="orientationchange";return w.call(this,C)}"rotation"in C||(C.rotation=0,C.scale=1);if(window.TouchEvent&&E instanceof TouchEvent){H=C.changedTouches[0];
for(var K in H)delete C[K],C[K]=H[K]}}return w.call(this,C)}};return r})},"dojo/when":function(){define(["./Deferred","./promise/Promise"],function(b,A){return function(p,y,t,m){var q=p&&"function"===typeof p.then,r=q&&p instanceof A;if(!q)return 1<arguments.length?y?y(p):p:(new b).resolve(p);r||(q=new b(p.cancel),p.then(q.resolve,q.reject,q.progress),p=q.promise);return y||t||m?p.then(y,t,m):p}})},"dojo/_base/json":function(){define(["./kernel","../json"],function(b,A){b.fromJson=function(p){return eval("("+
p+")")};b._escapeString=A.stringify;b.toJsonIndentStr="\t";b.toJson=function(p,y){return A.stringify(p,function(t,m){return m&&(t=m.__json__||m.json,"function"==typeof t)?t.call(m):m},y&&b.toJsonIndentStr)};return b})},"dojo/request/watch":function(){define("./util ../errors/RequestTimeoutError ../errors/CancelError ../_base/array ../_base/window ../has!host-browser?dom-addeventlistener?:../on:".split(" "),function(b,A,p,y,t,m){function q(){for(var a=+new Date,f=0,e;f<c.length&&(e=c[f]);f++){var k=
e.response,l=k.options;e.isCanceled&&e.isCanceled()||e.isValid&&!e.isValid(k)?(c.splice(f--,1),r._onAction&&r._onAction()):e.isReady&&e.isReady(k)?(c.splice(f--,1),e.handleResponse(k),r._onAction&&r._onAction()):e.startTime&&e.startTime+(l.timeout||0)<a&&(c.splice(f--,1),e.cancel(new A("Timeout exceeded",k)),r._onAction&&r._onAction())}r._onInFlight&&r._onInFlight(e);c.length||(clearInterval(h),h=null)}function r(a){a.response.options.timeout&&(a.startTime=+new Date);a.isFulfilled()||(c.push(a),h||
(h=setInterval(q,50)),a.response.options.sync&&q())}var h=null,c=[];r.cancelAll=function(){try{y.forEach(c,function(a){try{a.cancel(new p("All requests canceled."))}catch(f){}})}catch(a){}};t&&m&&t.doc.attachEvent&&m(t.global,"unload",function(){r.cancelAll()});return r})},"dojo/request/util":function(){define("exports ../errors/RequestError ../errors/CancelError ../Deferred ../io-query ../_base/array ../_base/lang ../promise/Promise ../has".split(" "),function(b,A,p,y,t,m,q,r,h){function c(l){return h("native-arraybuffer")&&
l instanceof ArrayBuffer}function a(l){return h("native-blob")&&l instanceof Blob}function f(l){return k(l)}function e(l){return void 0!==l.data?l.data:l.text}b.deepCopy=function(l,d){for(var u in d){var x=l[u],n=d[u];if("__proto__"!==u&&x!==n){var v=n,D;if(D=v&&"object"===typeof v)D=v,D=!(h("native-formdata")&&D instanceof FormData);!D||("undefined"!==typeof Element?v instanceof Element:1===v.nodeType)||a(v)||c(v)?l[u]=n:"[object Date]"===Object.prototype.toString.call(n)?l[u]=new Date(n):q.isArray(n)?
l[u]=b.deepCopyArray(n):x&&"object"===typeof x?b.deepCopy(x,n):l[u]=b.deepCopy({},n)}}return l};b.deepCopyArray=function(l){for(var d=[],u=0,x=l.length;u<x;u++){var n=l[u];"object"===typeof n?d.push(b.deepCopy({},n)):d.push(n)}return d};b.deepCreate=function(l,d){d=d||{};var u=q.delegate(l),x,n;for(x in l)(n=l[x])&&"object"===typeof n&&(u[x]=b.deepCreate(n,d[x]));return b.deepCopy(u,d)};var k=Object.freeze||function(l){return l};b.deferred=function(l,d,u,x,n,v){var D=new y(function(z){d&&d(D,l);return z&&
(z instanceof A||z instanceof p)?z:new p("Request canceled",l)});D.response=l;D.isValid=u;D.isReady=x;D.handleResponse=n;u=D.then(f).otherwise(function(z){z.response=l;throw z;});b.notify&&u.then(q.hitch(b.notify,"emit","load"),q.hitch(b.notify,"emit","error"));x=u.then(e);n=new r;for(var O in x)x.hasOwnProperty(O)&&(n[O]=x[O]);n.response=u;k(n);v&&D.then(function(z){v.call(D,z)},function(z){v.call(D,l,z)});D.promise=n;D.then=n.then;return D};b.addCommonMethods=function(l,d){m.forEach(d||["GET","POST",
"PUT","DELETE"],function(u){l[("DELETE"===u?"DEL":u).toLowerCase()]=function(x,n){n=q.delegate(n||{});n.method=u;return l(x,n)}})};b.parseArgs=function(l,d,u){var x=d.data,n=d.query;!x||u||"object"!==typeof x||h("native-xhr2")&&(c(x)||a(x))||(d.data=t.objectToQuery(x));n?("object"===typeof n&&(n=t.objectToQuery(n)),d.preventCache&&(n+=(n?"\x26":"")+"request.preventCache\x3d"+ +new Date)):d.preventCache&&(n="request.preventCache\x3d"+ +new Date);l&&n&&(l+=(~l.indexOf("?")?"\x26":"?")+n);return{url:l,
options:d,getHeader:function(v){return null}}};b.checkStatus=function(l){l=l||0;return 200<=l&&300>l||304===l||1223===l||!l}})},"dojo/errors/RequestError":function(){define(["./create"],function(b){return b("RequestError",function(A,p){this.response=p})})},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(b,A){return b("RequestTimeoutError",null,A,{dojoType:"timeout"})})},"dojo/request/xhr":function(){define(["../errors/RequestError","./watch","./handlers",
"./util","../has"],function(b,A,p,y,t){function m(d,u){var x=d.xhr;d.status=d.xhr.status;try{d.text=x.responseText}catch(v){}"xml"===d.options.handleAs&&(d.data=x.responseXML);if(u)this.reject(u);else{try{p(d)}catch(v){var n=v}y.checkStatus(x.status)?n?this.reject(n):this.resolve(d):(u=n?new b("Unable to load "+d.url+" status: "+x.status+" and an error in handleAs: transformation of response",d):new b("Unable to load "+d.url+" status: "+x.status,d),this.reject(u))}}function q(d){return this.xhr.getResponseHeader(d)}
function r(d,u,x){var n=t("native-formdata")&&u&&u.data&&u.data instanceof FormData,v=y.parseArgs(d,y.deepCreate(l,u),n);d=v.url;u=v.options;var D=!u.data&&"POST"!==u.method&&"PUT"!==u.method;10>=t("ie")&&(d=d.split("#")[0]);var O,z=y.deferred(v,a,c,e,m,function(){O&&O()}),w=v.xhr=r._create();if(!w)return z.cancel(new b("XHR was not created")),x?z:z.promise;v.getHeader=q;f&&(O=f(w,z,v,u.uploadProgress));var E="undefined"===typeof u.data?null:u.data,C=!u.sync,H=u.method;try{w.open(H,d,C,u.user||k,
u.password||k);u.withCredentials&&(w.withCredentials=u.withCredentials);t("native-response-type")&&u.handleAs in h&&(w.responseType=h[u.handleAs]);var B=u.headers;d=n||D?!1:"application/x-www-form-urlencoded";if(B)for(var K in B)"content-type"===K.toLowerCase()?d=B[K]:B[K]&&w.setRequestHeader(K,B[K]);d&&!1!==d&&w.setRequestHeader("Content-Type",d);B&&"X-Requested-With"in B||w.setRequestHeader("X-Requested-With","XMLHttpRequest");y.notify&&y.notify.emit("send",v,z.promise.cancel);w.send(E)}catch(J){z.reject(J)}A(z);
w=null;return x?z:z.promise}t.add("native-xhr",function(){return"undefined"!==typeof XMLHttpRequest});t.add("dojo-force-activex-xhr",function(){return t("activex")&&"file:"===window.location.protocol});t.add("native-xhr2",function(){if(t("native-xhr")&&!t("dojo-force-activex-xhr")){var d=new XMLHttpRequest;return"undefined"!==typeof d.addEventListener&&("undefined"===typeof opera||"undefined"!==typeof d.upload)}});t.add("native-formdata",function(){return"undefined"!==typeof FormData});t.add("native-blob",
function(){return"undefined"!==typeof Blob});t.add("native-arraybuffer",function(){return"undefined"!==typeof ArrayBuffer});t.add("native-response-type",function(){return t("native-xhr")&&"undefined"!==typeof(new XMLHttpRequest).responseType});t.add("native-xhr2-blob",function(){if(t("native-response-type")){var d=new XMLHttpRequest;d.open("GET","https://dojotoolkit.org/",!0);d.responseType="blob";var u=d.responseType;d.abort();return"blob"===u}});var h={blob:t("native-xhr2-blob")?"blob":"arraybuffer",
document:"document",arraybuffer:"arraybuffer"};if(t("native-xhr2")){var c=function(d){return!this.isFulfilled()};var a=function(d,u){u.xhr.abort()};var f=function(d,u,x,n){function v(E){u.handleResponse(x)}function D(E){E=new b("Unable to load "+x.url+" status: "+E.target.status,x);u.handleResponse(x,E)}function O(E,C){x.transferType=E;C.lengthComputable?(x.loaded=C.loaded,x.total=C.total,u.progress(x)):3===x.xhr.readyState&&(x.loaded="loaded"in C?C.loaded:C.position,u.progress(x))}function z(E){return O("download",
E)}function w(E){return O("upload",E)}d.addEventListener("load",v,!1);d.addEventListener("error",D,!1);d.addEventListener("progress",z,!1);n&&d.upload&&d.upload.addEventListener("progress",w,!1);return function(){d.removeEventListener("load",v,!1);d.removeEventListener("error",D,!1);d.removeEventListener("progress",z,!1);d.upload.removeEventListener("progress",w,!1);d=null}}}else{c=function(d){return d.xhr.readyState};var e=function(d){return 4===d.xhr.readyState};a=function(d,u){d=u.xhr;u=typeof d.abort;
"function"!==u&&"object"!==u&&"unknown"!==u||d.abort()}}var k,l={data:null,query:null,sync:!1,method:"GET"};r._create=function(){throw Error("XMLHTTP not available");};if(t("native-xhr")&&!t("dojo-force-activex-xhr"))r._create=function(){return new XMLHttpRequest};else if(t("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),r._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(d){try{new ActiveXObject("Microsoft.XMLHTTP"),r._create=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(u){}}y.addCommonMethods(r);
return r})},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has","../selector/_loader"],function(b,A,p,y){function t(a){var f=c[a.options.handleAs];a.data=f?f(a):a.data||a.text;return a}y.add("activex","undefined"!==typeof ActiveXObject);y.add("dom-parser",function(a){return"DOMParser"in a});if(y("activex")){var m=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"],q;var r=function(a){function f(l){try{var d=
new ActiveXObject(l);d.async=!1;d.loadXML(k);e=d;q=l}catch(u){return!1}return!0}var e=a.data,k=a.text;e&&y("dom-qsa2.1")&&!e.querySelectorAll&&y("dom-parser")&&(e=(new DOMParser).parseFromString(k,"application/xml"));e&&e.documentElement||q&&f(q)||p.some(m,f);return e}}var h=function(a){return y("native-xhr2-blob")||"blob"!==a.options.handleAs||"undefined"===typeof Blob?a.xhr.response:new Blob([a.xhr.response],{type:a.xhr.getResponseHeader("Content-Type")})},c={javascript:function(a){return A.eval(a.text||
"")},json:function(a){return b.parse(a.text||null)},xml:r,blob:h,arraybuffer:h,document:h};t.register=function(a,f){c[a]=f};return t})},"dojo/selector/_loader":function(){define(["../has","require"],function(b,A){if("undefined"!==typeof document){var p=document.createElement("div");b.add("dom-qsa2.1",!!p.querySelectorAll);b.add("dom-qsa3",function(){try{return p.innerHTML="\x3cp class\x3d'TEST'\x3e\x3c/p\x3e",1==p.querySelectorAll(".TEST:empty").length}catch(t){}})}var y;return{load:function(t,m,
q,r){if(r&&r.isBuild)q();else{r=A;t="default"==t?b("config-selectorEngine")||"css3":t;t="css2"==t||"lite"==t?"./lite":"css2.1"==t?b("dom-qsa2.1")?"./lite":"./acme":"css3"==t?b("dom-qsa3")?"./lite":"./acme":"acme"==t?"./acme":(r=m)&&t;if("?"==t.charAt(t.length-1)){t=t.substring(0,t.length-1);var h=!0}if(h&&(b("dom-compliant-qsa")||y))return q(y);r([t],function(c){"./lite"!=t&&(y=c);q(c)})}}}})},"dojo/request/script":function(){define("module ./watch ./util ../_base/kernel ../_base/array ../_base/lang ../on ../dom ../dom-construct ../has ../_base/window".split(" "),
function(b,A,p,y,t,m,q,r,h,c,a){function f(w,E){w.canDelete&&u._remove(w.id,E.options.frameDoc,!0)}function e(w){z&&z.length&&(t.forEach(z,function(E){u._remove(E.id,E.frameDoc);E.frameDoc=null}),z=[]);return w.options.jsonp?!w.data:!0}function k(w){return!!this.scriptLoaded}function l(w){return(w=w.options.checkString)&&eval("typeof("+w+') !\x3d\x3d "undefined"')}function d(w,E){if(this.canDelete){var C=this.response.options;z.push({id:this.id,frameDoc:C.ioArgs?C.ioArgs.frameDoc:C.frameDoc});C.ioArgs&&
(C.ioArgs.frameDoc=null);C.frameDoc=null}E?this.reject(E):this.resolve(w)}function u(w,E,C){var H=p.parseArgs(w,p.deepCopy({},E));w=H.url;E=H.options;var B=p.deferred(H,f,e,E.jsonp?null:E.checkString?l:k,d);m.mixin(B,{id:x+n++,canDelete:!1});E.jsonp&&((new RegExp("[?\x26]"+E.jsonp+"\x3d")).test(w)||(w+=(~w.indexOf("?")?"\x26":"?")+E.jsonp+"\x3d"+(E.frameDoc?"parent.":"")+x+"_callbacks."+B.id),B.canDelete=!0,O[B.id]=function(R){H.data=R;B.handleResponse(H)});p.notify&&p.notify.emit("send",H,B.promise.cancel);
if(!E.canAttach||E.canAttach(B)){var K=u._attach(B.id,w,E.frameDoc,function(R){if(!(R instanceof Error)){var V=Error("Error loading "+(R.target?R.target.src:"script"));V.source=R;R=V}B.reject(R);u._remove(B.id,E.frameDoc,!0)});if(!E.jsonp&&!E.checkString)var J=q(K,v,function(R){if("load"===R.type||D.test(K.readyState))J.remove(),B.scriptLoaded=R})}A(B);return C?B:B.promise}c.add("script-readystatechange",function(w,E){return"undefined"!==typeof E.createElement("script").onreadystatechange&&("undefined"===
typeof w.opera||"[object Opera]"!==w.opera.toString())});var x=b.id.replace(/[\/\.\-]/g,"_"),n=0,v=c("script-readystatechange")?"readystatechange":"load",D=/complete|loaded/,O=y.global[x+"_callbacks"]={},z=[];u.get=u;u._attach=function(w,E,C,H){C=C||a.doc;var B=C.createElement("script");if(H)q.once(B,"error",H);B.type="text/javascript";try{B.src=E}catch(K){H&&H(B)}B.id=w;B.async=!0;B.charset="utf-8";return C.getElementsByTagName("head")[0].appendChild(B)};u._remove=function(w,E,C){h.destroy(r.byId(w,
E));O[w]&&(C?O[w]=function(){delete O[w]}:delete O[w])};u._callbacksProperty=x+"_callbacks";return u})},"dojo/dom-construct":function(){define("exports ./_base/kernel ./sniff ./_base/window ./dom ./dom-attr".split(" "),function(b,A,p,y,t,m){function q(x,n){var v=n.parentNode;v&&v.insertBefore(x,n)}function r(x){if("innerHTML"in x)try{x.innerHTML="";return}catch(v){}for(var n;n=x.lastChild;)x.removeChild(n)}var h={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"]},c=/<\s*([\w:]+)/,a={},f=0,e="__"+A._scopeName+"ToDomId",k;for(k in h)h.hasOwnProperty(k)&&(A=h[k],A.pre="option"==k?'\x3cselect multiple\x3d"multiple"\x3e':"\x3c"+A.join("\x3e\x3c")+"\x3e",A.post="\x3c/"+A.reverse().join("\x3e\x3c/")+"\x3e");var l;8>=p("ie")&&(l=function(x){x.__dojo_html5_tested="yes";var n=d("div",{innerHTML:"\x3cnav\x3ea\x3c/nav\x3e",style:{visibility:"hidden"}},
x.body);1!==n.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(v){x.createElement(v)});u(n)});b.toDom=function(x,n){n=n||y.doc;var v=n[e];v||(n[e]=v=++f+"",a[v]=n.createElement("div"));8>=p("ie")&&!n.__dojo_html5_tested&&n.body&&l(n);x+="";var D=x.match(c),O=D?D[1].toLowerCase():"";v=a[v];if(D&&h[O])for(D=h[O],v.innerHTML=D.pre+x+D.post,x=D.length;x;--x)v=v.firstChild;
else v.innerHTML=x;if(1==v.childNodes.length)return v.removeChild(v.firstChild);for(x=n.createDocumentFragment();n=v.firstChild;)x.appendChild(n);return x};b.place=function(x,n,v){n=t.byId(n);"string"==typeof x&&(x=/^\s*</.test(x)?b.toDom(x,n.ownerDocument):t.byId(x));if("number"==typeof v){var D=n.childNodes;!D.length||D.length<=v?n.appendChild(x):q(x,D[0>v?0:v])}else switch(v){case "before":q(x,n);break;case "after":v=x;(D=n.parentNode)&&(D.lastChild==n?D.appendChild(v):D.insertBefore(v,n.nextSibling));
break;case "replace":n.parentNode.replaceChild(x,n);break;case "only":b.empty(n);n.appendChild(x);break;case "first":if(n.firstChild){q(x,n.firstChild);break}default:n.appendChild(x)}return x};var d=b.create=function(x,n,v,D){var O=y.doc;v&&(v=t.byId(v),O=v.ownerDocument);"string"==typeof x&&(x=O.createElement(x));n&&m.set(x,n);v&&b.place(x,v,D);return x};b.empty=function(x){r(t.byId(x))};var u=b.destroy=function(x){if(x=t.byId(x)){var n=x;x=x.parentNode;n.firstChild&&r(n);x&&(p("ie")&&x.canHaveChildren&&
"removeNode"in n?n.removeNode(!1):x.removeChild(n))}}})},"dojo/dom-attr":function(){define("exports ./sniff ./_base/lang ./dom ./dom-style ./dom-prop".split(" "),function(b,A,p,y,t,m){function q(c,a){c=c.getAttributeNode&&c.getAttributeNode(a);return!!c&&c.specified}var r={innerHTML:1,textContent:1,className:1,htmlFor:A("ie")?1:0,value:1},h={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};b.has=function(c,a){var f=a.toLowerCase();return!!r[m.names[f]||a]||q(y.byId(c),h[f]||
a)};b.get=function(c,a){c=y.byId(c);var f=a.toLowerCase(),e=m.names[f]||a,k=c[e];if(r[e]&&"undefined"!=typeof k)return k;if("textContent"==e)return m.get(c,e);if("href"!=e&&("boolean"==typeof k||p.isFunction(k)))return k;a=h[f]||a;return q(c,a)?c.getAttribute(a):null};b.set=function(c,a,f){c=y.byId(c);if(2==arguments.length){for(var e in a)b.set(c,e,a[e]);return c}e=a.toLowerCase();var k=m.names[e]||a,l=r[k];if("style"==k&&"string"!=typeof f)return t.set(c,f),c;if(l||"boolean"==typeof f||p.isFunction(f))return m.set(c,
a,f);c.setAttribute(h[e]||a,f);return c};b.remove=function(c,a){y.byId(c).removeAttribute(h[a.toLowerCase()]||a)};b.getNodeProp=function(c,a){c=y.byId(c);var f=a.toLowerCase(),e=m.names[f]||a;if(e in c&&"href"!=e)return c[e];a=h[f]||a;return q(c,a)?c.getAttribute(a):null}})},"dojo/dom-style":function(){define(["./sniff","./dom","./_base/window"],function(b,A,p){function y(k,l,d){l=l.toLowerCase();if("auto"==d){if("height"==l)return k.offsetHeight;if("width"==l)return k.offsetWidth}if("fontweight"==
l)switch(d){case 700:return"bold";default:return"normal"}l in a||(a[l]=f.test(l));return a[l]?q(k,d):d}var t={};var m=b("webkit")?function(k){if(1==k.nodeType){var l=k.ownerDocument.defaultView;var d=l.getComputedStyle(k,null);!d&&k.style&&(k.style.display="",d=l.getComputedStyle(k,null))}return d||{}}:b("ie")&&(9>b("ie")||b("quirks"))?function(k){return 1==k.nodeType&&k.currentStyle?k.currentStyle:{}}:function(k){if(1===k.nodeType){var l=k.ownerDocument.defaultView;return(l.opener?l:p.global.window).getComputedStyle(k,
null)}return{}};t.getComputedStyle=m;var q=b("ie")?function(k,l){if(!l)return 0;if("medium"==l)return 4;if(l.slice&&"px"==l.slice(-2))return parseFloat(l);var d=k.style,u=k.runtimeStyle,x=d.left,n=u.left;u.left=k.currentStyle.left;try{d.left=l,l=d.pixelLeft}catch(v){l=0}d.left=x;u.left=n;return l}:function(k,l){return parseFloat(l)||0};t.toPixelValue=q;var r=function(k,l){try{return k.filters.item("DXImageTransform.Microsoft.Alpha")}catch(d){return l?{}:null}},h=9>b("ie")||10>b("ie")&&b("quirks")?
function(k){try{return r(k).Opacity/100}catch(l){return 1}}:function(k){return m(k).opacity},c=9>b("ie")||10>b("ie")&&b("quirks")?function(k,l){""===l&&(l=1);var d=100*l;1===l?(k.style.zoom="",r(k)&&(k.style.filter=k.style.filter.replace(RegExp("\\s*progid:DXImageTransform.Microsoft.Alpha\\([^\\)]+?\\)","i"),""))):(k.style.zoom=1,r(k)?r(k,1).Opacity=d:k.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+d+")",r(k,1).Enabled=!0);if("tr"==k.tagName.toLowerCase())for(k=k.firstChild;k;k=
k.nextSibling)"td"==k.tagName.toLowerCase()&&c(k,l);return l}:function(k,l){return k.style.opacity=l},a={left:!0,top:!0},f=/margin|padding|width|height|max|min|offset/,e={cssFloat:1,styleFloat:1,"float":1};t.get=function(k,l){var d=A.byId(k),u=arguments.length;if(2==u&&"opacity"==l)return h(d);l=e[l]?"cssFloat"in d.style?"cssFloat":"styleFloat":l;var x=t.getComputedStyle(d);return 1==u?x:y(d,l,x[l]||d.style[l])};t.set=function(k,l,d){var u=A.byId(k),x=arguments.length,n="opacity"==l;l=e[l]?"cssFloat"in
u.style?"cssFloat":"styleFloat":l;if(3==x)return n?c(u,d):u.style[l]=d;for(var v in l)t.set(k,v,l[v]);return t.getComputedStyle(u)};return t})},"dojo/dom-prop":function(){define("exports ./_base/kernel ./sniff ./_base/lang ./dom ./dom-style ./dom-construct ./_base/connect".split(" "),function(b,A,p,y,t,m,q,r){function h(e){var k="";e=e.childNodes;for(var l=0,d;d=e[l];l++)8!=d.nodeType&&(k=1==d.nodeType?k+h(d):k+d.nodeValue);return k}var c={},a=1,f=A._scopeName+"attrid";p.add("dom-textContent",function(e,
k,l){return"textContent"in l});b.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",textcontent:"textContent",valuetype:"valueType"};b.get=function(e,k){e=t.byId(e);var l=k.toLowerCase();k=b.names[l]||k;return"textContent"!=k||p("dom-textContent")?e[k]:h(e)};b.set=function(e,k,l){e=t.byId(e);if(2==arguments.length&&"string"!=typeof k){for(var d in k)b.set(e,d,k[d]);return e}d=k.toLowerCase();d=b.names[d]||
k;if("style"==d&&"string"!=typeof l)return m.set(e,l),e;if("innerHTML"==d)return p("ie")&&e.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(q.empty(e),e.appendChild(q.toDom(l,e.ownerDocument))):e[d]=l,e;if("textContent"==d&&!p("dom-textContent"))return q.empty(e),e.appendChild(e.ownerDocument.createTextNode(l)),e;if(y.isFunction(l)){var u=e[f];u||(u=a++,e[f]=u);c[u]||(c[u]={});var x=c[u][d];if(x)r.disconnect(x);else try{delete e[d]}catch(n){}l?c[u][d]=r.connect(e,
d,l):e[d]=null;return e}e[d]=l;return e}})},"dojo/_base/connect":function(){define("./kernel ../on ../topic ../aspect ./event ../mouse ./sniff ./lang ../keys".split(" "),function(b,A,p,y,t,m,q,r){function h(d,u,x,n,v){n=r.hitch(x,n);if(!d||!d.addEventListener&&!d.attachEvent)return y.after(d||b.global,u,n,!0);"string"==typeof u&&"on"==u.substring(0,2)&&(u=u.substring(2));d||(d=b.global);if(!v)switch(u){case "keypress":u=k;break;case "mouseenter":u=m.enter;break;case "mouseleave":u=m.leave}return A(d,
u,n,v)}function c(d){d.keyChar=d.charCode?String.fromCharCode(d.charCode):"";d.charOrCode=d.keyChar||d.keyCode}q.add("events-keypress-typed",function(){var d={charCode:0};try{d=document.createEvent("KeyboardEvent"),(d.initKeyboardEvent||d.initKeyEvent).call(d,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(u){}return 0==d.charCode&&!q("opera")});var a={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=q("mac")?"metaKey":"ctrlKey",e=function(d,u){u=
r.mixin({},d,u);c(u);u.preventDefault=function(){d.preventDefault()};u.stopPropagation=function(){d.stopPropagation()};return u};var k=q("events-keypress-typed")?function(d,u){var x=A(d,"keydown",function(v){var D=v.keyCode,O=13!=D&&32!=D&&(27!=D||!q("ie"))&&(48>D||90<D)&&(96>D||111<D)&&(186>D||192<D)&&(219>D||222<D)&&229!=D;if(O||v.ctrlKey){O=O?0:D;if(v.ctrlKey){if(3==D||13==D)return u.call(v.currentTarget,v);O=95<O&&106>O?O-48:!v.shiftKey&&65<=O&&90>=O?O+32:a[O]||O}D=e(v,{type:"keypress",faux:!0,
charCode:O});u.call(v.currentTarget,D);if(q("ie"))try{v.keyCode=D.keyCode}catch(z){}}}),n=A(d,"keypress",function(v){var D=v.charCode;v=e(v,{charCode:32<=D?D:0,faux:!0});return u.call(this,v)});return{remove:function(){x.remove();n.remove()}}}:q("opera")?function(d,u){return A(d,"keypress",function(x){var n=x.which;3==n&&(n=99);n=32>n&&!x.shiftKey?0:n;x.ctrlKey&&!x.shiftKey&&65<=n&&90>=n&&(n+=32);return u.call(this,e(x,{charCode:n}))})}:function(d,u){return A(d,"keypress",function(x){c(x);return u.call(this,
x)})};var l={_keypress:k,connect:function(d,u,x,n,v){var D=arguments,O=[],z=0;O.push("string"==typeof D[0]?null:D[z++],D[z++]);var w=D[z+1];O.push("string"==typeof w||"function"==typeof w?D[z++]:null,D[z++]);for(w=D.length;z<w;z++)O.push(D[z]);return h.apply(this,O)},disconnect:function(d){d&&d.remove()},subscribe:function(d,u,x){return p.subscribe(d,r.hitch(u,x))},publish:function(d,u){return p.publish.apply(p,[d].concat(u))},connectPublisher:function(d,u,x){var n=function(){l.publish(d,arguments)};
return x?l.connect(u,x,n):l.connect(u,n)},isCopyKey:function(d){return d[f]}};l.unsubscribe=l.disconnect;r.mixin(b,l);return l})},"dojo/topic":function(){define(["./Evented"],function(b){var A=new b;return{publish:function(p,y){return A.emit.apply(A,arguments)},subscribe:function(p,y){return A.on.apply(A,arguments)}}})},"dojo/_base/event":function(){define(["./kernel","../on","../has","../dom-geometry"],function(b,A,p,y){if(A._fixEvent){var t=A._fixEvent;A._fixEvent=function(q,r){(q=t(q,r))&&y.normalizeEvent(q);
return q}}var m={fix:function(q,r){return A._fixEvent?A._fixEvent(q,r):q},stop:function(q){p("dom-addeventlistener")||q&&q.preventDefault?(q.preventDefault(),q.stopPropagation()):(q=q||window.event,q.cancelBubble=!0,A._preventDefault.call(q))}};b.fixEvent=m.fix;b.stopEvent=m.stop;return m})},"dojo/dom-geometry":function(){define(["./sniff","./_base/window","./dom","./dom-style"],function(b,A,p,y){function t(a,f,e,k,l,d){d=d||"px";a=a.style;isNaN(f)||(a.left=f+d);isNaN(e)||(a.top=e+d);0<=k&&(a.width=
k+d);0<=l&&(a.height=l+d)}function m(a){return"button"==a.tagName.toLowerCase()||"input"==a.tagName.toLowerCase()&&"button"==(a.getAttribute("type")||"").toLowerCase()}function q(a){return"border-box"==h.boxModel||"table"==a.tagName.toLowerCase()||m(a)}function r(a){var f={x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0};try{var e=a.getBoundingClientRect()}catch(k){return f}return"undefined"===typeof e.left?f:e}var h={boxModel:"content-box"};b("ie")&&(h.boxModel="BackCompat"==document.compatMode?
"border-box":"content-box");h.getPadExtents=function(a,f){a=p.byId(a);var e=f||y.getComputedStyle(a),k=y.toPixelValue;f=k(a,e.paddingLeft);var l=k(a,e.paddingTop),d=k(a,e.paddingRight);a=k(a,e.paddingBottom);return{l:f,t:l,r:d,b:a,w:f+d,h:l+a}};h.getBorderExtents=function(a,f){a=p.byId(a);var e=y.toPixelValue,k=f||y.getComputedStyle(a);f="none"!=k.borderLeftStyle?e(a,k.borderLeftWidth):0;var l="none"!=k.borderTopStyle?e(a,k.borderTopWidth):0,d="none"!=k.borderRightStyle?e(a,k.borderRightWidth):0;
a="none"!=k.borderBottomStyle?e(a,k.borderBottomWidth):0;return{l:f,t:l,r:d,b:a,w:f+d,h:l+a}};h.getPadBorderExtents=function(a,f){a=p.byId(a);var e=f||y.getComputedStyle(a);f=h.getPadExtents(a,e);a=h.getBorderExtents(a,e);return{l:f.l+a.l,t:f.t+a.t,r:f.r+a.r,b:f.b+a.b,w:f.w+a.w,h:f.h+a.h}};h.getMarginExtents=function(a,f){a=p.byId(a);var e=f||y.getComputedStyle(a),k=y.toPixelValue;f=k(a,e.marginLeft);var l=k(a,e.marginTop),d=k(a,e.marginRight);a=k(a,e.marginBottom);return{l:f,t:l,r:d,b:a,w:f+d,h:l+
a}};h.getMarginBox=function(a,f){a=p.byId(a);f=f||y.getComputedStyle(a);f=h.getMarginExtents(a,f);var e=a.offsetLeft-f.l,k=a.offsetTop-f.t,l=a.parentNode,d=y.toPixelValue;8==b("ie")&&!b("quirks")&&l&&(l=y.getComputedStyle(l),e-="none"!=l.borderLeftStyle?d(a,l.borderLeftWidth):0,k-="none"!=l.borderTopStyle?d(a,l.borderTopWidth):0);return{l:e,t:k,w:a.offsetWidth+f.w,h:a.offsetHeight+f.h}};h.getContentBox=function(a,f){a=p.byId(a);var e=f||y.getComputedStyle(a);f=a.clientWidth;var k=h.getPadExtents(a,
e);var l=h.getBorderExtents(a,e);e=a.offsetLeft+k.l+l.l;var d=a.offsetTop+k.t+l.t;f?l=a.clientHeight:(f=a.offsetWidth-l.w,l=a.offsetHeight-l.h);if(8==b("ie")&&!b("quirks")){var u=a.parentNode,x=y.toPixelValue;u&&(u=y.getComputedStyle(u),e-="none"!=u.borderLeftStyle?x(a,u.borderLeftWidth):0,d-="none"!=u.borderTopStyle?x(a,u.borderTopWidth):0)}return{l:e,t:d,w:f-k.w,h:l-k.h}};h.setContentSize=function(a,f,e){a=p.byId(a);var k=f.w;f=f.h;q(a)&&(e=h.getPadBorderExtents(a,e),0<=k&&(k+=e.w),0<=f&&(f+=e.h));
t(a,NaN,NaN,k,f)};var c={l:0,t:0,w:0,h:0};h.setMarginBox=function(a,f,e){a=p.byId(a);var k=e||y.getComputedStyle(a);e=f.w;var l=f.h,d=q(a)?c:h.getPadBorderExtents(a,k);k=h.getMarginExtents(a,k);if(b("webkit")&&m(a)){var u=a.style;0<=e&&!u.width&&(u.width="4px");0<=l&&!u.height&&(u.height="4px")}0<=e&&(e=Math.max(e-d.w-k.w,0));0<=l&&(l=Math.max(l-d.h-k.h,0));t(a,f.l,f.t,e,l)};h.isBodyLtr=function(a){a=a||A.doc;return"ltr"==(A.body(a).dir||a.documentElement.dir||"ltr").toLowerCase()};h.docScroll=function(a){a=
a||A.doc;var f=a.parentWindow||a.defaultView;return"pageXOffset"in f?{x:f.pageXOffset,y:f.pageYOffset}:(f=b("quirks")?A.body(a):a.documentElement)&&{x:h.fixIeBiDiScrollLeft(f.scrollLeft||0,a),y:f.scrollTop||0}};h.getIeDocumentElementOffset=function(a){return{x:0,y:0}};h.fixIeBiDiScrollLeft=function(a,f){f=f||A.doc;var e=b("ie");if(e&&!h.isBodyLtr(f)){var k=b("quirks");f=k?A.body(f):f.documentElement;var l=A.global;6==e&&!k&&l.frameElement&&f.scrollHeight>f.clientHeight&&(a+=f.clientLeft);return 8>
e||k?a+f.clientWidth-f.scrollWidth:-a}return a};h.position=function(a,f){a=p.byId(a);var e=A.body(a.ownerDocument),k=r(a);k={x:k.left,y:k.top,w:k.right-k.left,h:k.bottom-k.top};9>b("ie")&&(k.x-=b("quirks")?e.clientLeft+e.offsetLeft:0,k.y-=b("quirks")?e.clientTop+e.offsetTop:0);f&&(a=h.docScroll(a.ownerDocument),k.x+=a.x,k.y+=a.y);return k};h.getMarginSize=function(a,f){a=p.byId(a);f=h.getMarginExtents(a,f||y.getComputedStyle(a));a=r(a);return{w:a.right-a.left+f.w,h:a.bottom-a.top+f.h}};h.normalizeEvent=
function(a){"layerX"in a||(a.layerX=a.offsetX,a.layerY=a.offsetY);if(!("pageX"in a)){var f=a.target;f=f&&f.ownerDocument||document;var e=b("quirks")?f.body:f.documentElement;a.pageX=a.clientX+h.fixIeBiDiScrollLeft(e.scrollLeft||0,f);a.pageY=a.clientY+(e.scrollTop||0)}};return h})},"dojo/mouse":function(){define(["./_base/kernel","./on","./has","./dom","./_base/window"],function(b,A,p,y,t){function m(q,r){var h=function(c,a){return A(c,q,function(f){if(r)return r(f,a);if(!y.isDescendant(f.relatedTarget,
c))return a.call(this,f)})};h.bubble=function(c){return m(q,function(a,f){var e=c(a.target),k=a.relatedTarget;if(e&&e!=(k&&1==k.nodeType&&c(k)))return f.call(e,a)})};return h}p.add("dom-quirks",t.doc&&"BackCompat"==t.doc.compatMode);p.add("events-mouseenter",t.doc&&"onmouseenter"in t.doc.createElement("div"));p.add("events-mousewheel",t.doc&&"onmousewheel"in t.doc);t=p("dom-quirks")&&p("ie")||!p("dom-addeventlistener")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(q,r){return q.button&r},isLeft:function(q){return q.button&
1},isMiddle:function(q){return q.button&4},isRight:function(q){return q.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(q,r){return q.button==r},isLeft:function(q){return 0==q.button},isMiddle:function(q){return 1==q.button},isRight:function(q){return 2==q.button}};b.mouseButtons=t;b=p("events-mousewheel")?"mousewheel":function(q,r){return A(q,"DOMMouseScroll",function(h){h.wheelDelta=-h.detail;r.call(this,h)})};return{_eventHandler:m,enter:m("mouseover"),leave:m("mouseout"),wheel:b,isLeft:t.isLeft,
isMiddle:t.isMiddle,isRight:t.isRight}})},"dojo/keys":function(){define(["./_base/kernel","./sniff"],function(b,A){return b.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:A("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:A("mac")&&!A("air")?A("safari")?91:224:17}})},"dojo/main":function(){define("./_base/kernel ./has require ./sniff ./_base/lang ./_base/array ./_base/config ./ready ./_base/declare ./_base/connect ./_base/Deferred ./_base/json ./_base/Color ./has!dojo-firebug?./_firebug/firebug ./_base/browser ./_base/loader".split(" "),
function(b,A,p,y,t,m,q,r){q.isDebug&&p(["./_firebug/firebug"]);var h=q.require;h&&(h=m.map(t.isArray(h)?h:[h],function(c){return c.replace(/\./g,"/")}),b.isAsync?p(h):r(1,function(){p(h)}));return b})},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],function(b,A,p,y,t){var m=0,q=[],r=0;A=function(){m=1;b._postLoad=b.config.afterOnLoad=!0;h()};var h=function(){if(!r){for(r=1;m&&(!y||0==y._Q.length)&&(p.idle?p.idle():1)&&q.length;){var f=q.shift();try{f()}catch(e){if(e.info=
e.message,p.signal)p.signal("error",e);else throw e;}}r=0}};p.on&&p.on("idle",h);y&&(y._onQEmpty=h);var c=b.ready=b.addOnLoad=function(f,e,k){var l=t._toArray(arguments);"number"!=typeof f?(k=e,e=f,f=1E3):l.shift();k=k?t.hitch.apply(b,l):function(){e()};k.priority=f;for(l=0;l<q.length&&f>=q[l].priority;l++);q.splice(l,0,k);h()},a=b.config.addOnLoad;if(a)c[t.isArray(a)?"apply":"call"](b,a);b.config.parseOnLoad&&!b.isAsync&&c(99,function(){b.parser||(b.deprecated("Add explicit require(['dojo/parser']);",
"","2.0"),p(["dojo/parser"]))});y?y(A):A();return c})},"dojo/domReady":function(){define(["./global","./has"],function(b,A){function p(d){h.push(d);r&&y()}function y(){if(!c){for(c=!0;h.length;)try{h.shift()(t)}catch(d){console.error(d,"in domReady callback",d.stack)}c=!1;p._onQEmpty()}}var t=document,m={loaded:1,complete:1},q="string"!=typeof t.readyState,r=!!m[t.readyState],h=[],c;p.load=function(d,u,x){p(x)};p._Q=h;p._onQEmpty=function(){};q&&(t.readyState="loading");if(!r){var a=[],f=function(d){d=
d||b.event;r||"readystatechange"==d.type&&!m[t.readyState]||(q&&(t.readyState="complete"),r=1,y())},e=function(d,u){d.addEventListener(u,f,!1);h.push(function(){d.removeEventListener(u,f,!1)})};if(!A("dom-addeventlistener")){e=function(d,u){u="on"+u;d.attachEvent(u,f);h.push(function(){d.detachEvent(u,f)})};var k=t.createElement("div");try{k.doScroll&&null===b.frameElement&&a.push(function(){try{return k.doScroll("left"),1}catch(d){}})}catch(d){}}e(t,"DOMContentLoaded");e(b,"load");"onreadystatechange"in
t?e(t,"readystatechange"):q||a.push(function(){return m[t.readyState]});if(a.length){var l=function(){if(!r){for(var d=a.length;d--;)if(a[d]()){f("poller");return}setTimeout(l,30)}};l()}}return p})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(b,A,p){function y(C,H){throw Error("declare"+(H?" "+H:"")+": "+C);}function t(C,H){for(var B=[],K=[{cls:0,refs:[]}],J={},R=1,V=C.length,Y=0,S,U,L,T,da;Y<V;++Y){(S=C[Y])?"[object Function]"!=O.call(S)&&y("mixin #"+Y+" is not a callable constructor.",
H):y("mixin #"+Y+" is unknown. Did you use dojo.require to pull it in?",H);U=S._meta?S._meta.bases:[S];L=0;for(S=U.length-1;0<=S;--S)T=U[S].prototype,T.hasOwnProperty("declaredClass")||(T.declaredClass="uniqName_"+z++),T=T.declaredClass,J.hasOwnProperty(T)||(J[T]={count:0,refs:[],cls:U[S]},++R),T=J[T],L&&L!==T&&(T.refs.push(L),++L.count),L=T;++L.count;K[0].refs.push(L)}for(;K.length;){L=K.pop();B.push(L.cls);for(--R;da=L.refs,1==da.length;){L=da[0];if(!L||--L.count){L=0;break}B.push(L.cls);--R}if(L)for(Y=
0,V=da.length;Y<V;++Y)L=da[Y],--L.count||K.push(L)}R&&y("can't build consistent linearization",H);S=C[0];B[0]=S?S._meta&&S===B[B.length-S._meta.bases.length]?S._meta.bases.length:1:0;return B}function m(C,H,B,K){var J,R=this._inherited=this._inherited||{};if("string"===typeof C){var V=C;C=H;H=B;B=K}if("function"===typeof C){var Y=C;C=H;H=B}else try{Y=C.callee}catch(T){if(T instanceof TypeError)y("strict mode inherited() requires the caller function to be passed before arguments",this.declaredClass);
else throw T;}(V=V||Y.nom)||y("can't deduce a name to call inherited()",this.declaredClass);B=K=0;var S=this.constructor._meta;K=S.bases;var U=R.p;if("constructor"!=V){if(R.c!==Y){U=0;var L=K[0];S=L._meta;if(S.hidden[V]!==Y){(J=S.chains)&&"string"==typeof J[V]&&y("calling chained method with inherited: "+V,this.declaredClass);do if(S=L._meta,J=L.prototype,S&&(J[V]===Y&&J.hasOwnProperty(V)||S.hidden[V]===Y))break;while(L=K[++U]);U=L?U:-1}}if(L=K[++U])if(J=L.prototype,L._meta&&J.hasOwnProperty(V))B=
J[V];else{Y=D[V];do if(J=L.prototype,(B=J[V])&&(L._meta?J.hasOwnProperty(V):B!==Y))break;while(L=K[++U])}B=L&&B||D[V]}else{if(R.c!==Y&&(U=0,(S=K[0]._meta)&&S.ctor!==Y)){for((J=S.chains)&&"manual"===J.constructor||y("calling chained constructor with inherited",this.declaredClass);(L=K[++U])&&(!(S=L._meta)||S.ctor!==Y););U=L?U:-1}for(;(L=K[++U])&&!(B=(S=L._meta)?S.ctor:L););B=L&&B}R.c=B;R.p=U;if(B)return!0===H?B:B.apply(this,H||C)}function q(C,H,B){return"string"===typeof C?"function"===typeof H?this.__inherited(C,
H,B,!0):this.__inherited(C,H,!0):"function"===typeof C?this.__inherited(C,H,!0):this.__inherited(C,!0)}function r(C,H,B,K){var J=this.getInherited(C,H,B);if(J)return J.apply(this,K||B||H||C)}function h(C){for(var H=this.constructor._meta.bases,B=0,K=H.length;B<K;++B)if(H[B]===C)return!0;return this instanceof C}function c(C,H){for(var B in H)"constructor"!=B&&H.hasOwnProperty(B)&&(C[B]=H[B]);if(A("bug-for-in-skips-shadowed"))for(var K=p._extraNames,J=K.length;J;)B=K[--J],"constructor"!=B&&H.hasOwnProperty(B)&&
(C[B]=H[B])}function a(C){n.safeMixin(this.prototype,C);return this}function f(C,H){C instanceof Array||"function"===typeof C||(H=C,C=void 0);H=H||{};C=C||[];return n([this].concat(C),H)}function e(C,H){return function(){var B=arguments,K=B,J=B[0],R;var V=C.length;if(!(this instanceof B.callee))return x(B);if(H&&(J&&J.preamble||this.preamble)){var Y=Array(C.length);Y[0]=B;for(R=0;;){(J=B[0])&&(J=J.preamble)&&(B=J.apply(this,B)||B);J=C[R].prototype;(J=J.hasOwnProperty("preamble")&&J.preamble)&&(B=
J.apply(this,B)||B);if(++R==V)break;Y[R]=B}}for(R=V-1;0<=R;--R)J=C[R],(J=(V=J._meta)?V.ctor:J)&&J.apply(this,Y?Y[R]:B);(J=this.postscript)&&J.apply(this,K)}}function k(C,H){return function(){var B=arguments,K=B,J=B[0];if(!(this instanceof B.callee))return x(B);H&&(J&&(J=J.preamble)&&(K=J.apply(this,K)||K),(J=this.preamble)&&J.apply(this,K));C&&C.apply(this,B);(J=this.postscript)&&J.apply(this,B)}}function l(C){return function(){var H=arguments,B=0,K,J;if(!(this instanceof H.callee))return x(H);for(;K=
C[B];++B)if(K=(J=K._meta)?J.ctor:K){K.apply(this,H);break}(K=this.postscript)&&K.apply(this,H)}}function d(C,H,B){return function(){var K,J=0,R=1;B&&(J=H.length-1,R=-1);for(;K=H[J];J+=R){var V=K._meta;(K=(V?V.hidden:K.prototype)[C])&&K.apply(this,arguments)}}}function u(C){w.prototype=C.prototype;C=new w;w.prototype=null;return C}function x(C){var H=C.callee,B=u(H);H.apply(B,C);return B}function n(C,H,B){"string"!=typeof C&&(B=H,H=C,C="");B=B||{};var K,J,R,V=1,Y=H;if("[object Array]"==O.call(H)){var S=
t(H,C);var U=S[0];V=S.length-U;H=S[V]}else S=[0],H?"[object Function]"==O.call(H)?(U=H._meta,S=S.concat(U?U.bases:H)):y("base class is not a callable constructor.",C):null!==H&&y("unknown base class. Did you use dojo.require to pull it in?",C);if(H)for(K=V-1;;--K){var L=u(H);if(!K)break;U=S[K];(U._meta?c:v)(L,U.prototype);var T=A("csp-restrictions")?function(){}:new Function;T.superclass=H;T.prototype=L;H=L.constructor=T}else L={};n.safeMixin(L,B);U=B.constructor;U!==D.constructor&&(U.nom="constructor",
L.constructor=U);for(K=V-1;K;--K)(U=S[K]._meta)&&U.chains&&(R=v(R||{},U.chains));L["-chains-"]&&(R=v(R||{},L["-chains-"]));H&&H.prototype&&H.prototype["-chains-"]&&(R=v(R||{},H.prototype["-chains-"]));U=!R||!R.hasOwnProperty("constructor");S[0]=T=R&&"manual"===R.constructor?l(S):1==S.length?k(B.constructor,U):e(S,U);T._meta={bases:S,hidden:B,chains:R,parents:Y,ctor:B.constructor};T.superclass=H&&H.prototype;T.extend=a;T.createSubclass=f;T.prototype=L;L.constructor=T;L.getInherited=q;L.isInstanceOf=
h;L.inherited=E;L.__inherited=m;C&&(L.declaredClass=C,p.setObject(C,T));if(R)for(J in R)L[J]&&"string"==typeof R[J]&&"constructor"!=J&&(U=L[J]=d(J,S,"after"===R[J]),U.nom=J);return T}var v=p.mixin,D=Object.prototype,O=D.toString,z=0;var w=A("csp-restrictions")?function(){}:new Function;var E=b.config.isDebug?r:m;b.safeMixin=n.safeMixin=function(C,H){for(R in H){var B=H[R];B===D[R]&&R in D||"constructor"==R||("[object Function]"==O.call(B)&&(B.nom=R),C[R]=B)}if(A("bug-for-in-skips-shadowed")&&H)for(var K=
p._extraNames,J=K.length;J;){var R=K[--J];B=H[R];B===D[R]&&R in D||"constructor"==R||("[object Function]"==O.call(B)&&(B.nom=R),C[R]=B)}return C};return b.declare=n})},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(b,A,p,y){var t=b.Color=function(m){m&&this.setColor(m)};t.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:y.transparentColor||[0,0,0,0]};A.extend(t,{r:255,g:255,b:255,a:1,_set:function(m,q,r,h){this.r=m;this.g=q;this.b=r;this.a=h},setColor:function(m){A.isString(m)?t.fromString(m,this):A.isArray(m)?t.fromArray(m,this):(this._set(m.r,m.g,m.b,m.a),m instanceof t||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"#"+p.map(["r","g","b"],function(m){m=this[m].toString(16);return 2>m.length?"0"+m:m},this).join("")},toCss:function(m){var q=this.r+", "+this.g+", "+this.b;return(m?"rgba("+q+", "+this.a:"rgb("+q)+")"},toString:function(){return this.toCss(!0)}});t.blendColors=b.blendColors=function(m,q,r,h){h=h||new t;h.r=Math.round(m.r+(q.r-m.r)*r);h.g=Math.round(m.g+(q.g-m.g)*r);h.b=Math.round(m.b+(q.b-m.b)*r);h.a=m.a+(q.a-m.a)*r;return h.sanitize()};t.fromRgb=b.colorFromRgb=
function(m,q){return(m=m.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/))&&t.fromArray(m[1].split(/\s*,\s*/),q)};t.fromHex=b.colorFromHex=function(m,q){var r=q||new t,h=4==m.length?4:8,c=(1<<h)-1;m=Number("0x"+m.substr(1));if(isNaN(m))return null;p.forEach(["b","g","r"],function(a){var f=m&c;m>>=h;r[a]=4==h?17*f:f});r.a=1;return r};t.fromArray=b.colorFromArray=function(m,q){q=q||new t;q._set(Number(m[0]),Number(m[1]),Number(m[2]),Number(m[3]));isNaN(q.a)&&(q.a=1);return q.sanitize()};t.fromString=
b.colorFromString=function(m,q){var r=t.named[m];return r&&t.fromArray(r,q)||t.fromRgb(m,q)||t.fromHex(m,q)};return t})},"dojo/_base/browser":function(){require.has&&require.has.add("config-selectorEngine","acme");define("../ready ./kernel ./connect ./unload ./window ./event ./html ./NodeList ../query ./xhr ./fx".split(" "),function(b){return b})},"dojo/_base/unload":function(){define(["./kernel","./lang","../on"],function(b,A,p){var y=window,t={addOnWindowUnload:function(m,q){b.windowUnloaded||p(y,
"unload",b.windowUnloaded=function(){});p(y,"unload",A.hitch(m,q))},addOnUnload:function(m,q){p(y,"beforeunload",A.hitch(m,q))}};b.addOnWindowUnload=t.addOnWindowUnload;b.addOnUnload=t.addOnUnload;return t})},"dojo/_base/html":function(){define("./kernel ../dom ../dom-style ../dom-attr ../dom-prop ../dom-class ../dom-construct ../dom-geometry".split(" "),function(b,A,p,y,t,m,q,r){b.byId=A.byId;b.isDescendant=A.isDescendant;b.setSelectable=A.setSelectable;b.getAttr=y.get;b.setAttr=y.set;b.hasAttr=
y.has;b.removeAttr=y.remove;b.getNodeProp=y.getNodeProp;b.attr=function(h,c,a){return 2==arguments.length?y["string"==typeof c?"get":"set"](h,c):y.set(h,c,a)};b.hasClass=m.contains;b.addClass=m.add;b.removeClass=m.remove;b.toggleClass=m.toggle;b.replaceClass=m.replace;b._toDom=b.toDom=q.toDom;b.place=q.place;b.create=q.create;b.empty=function(h){q.empty(h)};b._destroyElement=b.destroy=function(h){q.destroy(h)};b._getPadExtents=b.getPadExtents=r.getPadExtents;b._getBorderExtents=b.getBorderExtents=
r.getBorderExtents;b._getPadBorderExtents=b.getPadBorderExtents=r.getPadBorderExtents;b._getMarginExtents=b.getMarginExtents=r.getMarginExtents;b._getMarginSize=b.getMarginSize=r.getMarginSize;b._getMarginBox=b.getMarginBox=r.getMarginBox;b.setMarginBox=r.setMarginBox;b._getContentBox=b.getContentBox=r.getContentBox;b.setContentSize=r.setContentSize;b._isBodyLtr=b.isBodyLtr=r.isBodyLtr;b._docScroll=b.docScroll=r.docScroll;b._getIeDocumentElementOffset=b.getIeDocumentElementOffset=r.getIeDocumentElementOffset;
b._fixIeBiDiScrollLeft=b.fixIeBiDiScrollLeft=r.fixIeBiDiScrollLeft;b.position=r.position;b.marginBox=function(h,c){return c?r.setMarginBox(h,c):r.getMarginBox(h)};b.contentBox=function(h,c){return c?r.setContentSize(h,c):r.getContentBox(h)};b.coords=function(h,c){b.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");h=A.byId(h);var a=p.getComputedStyle(h);a=r.getMarginBox(h,a);h=r.position(h,c);a.x=h.x;a.y=h.y;return a};b.getProp=t.get;b.setProp=t.set;b.prop=function(h,c,a){return 2==
arguments.length?t["string"==typeof c?"get":"set"](h,c):t.set(h,c,a)};b.getStyle=p.get;b.setStyle=p.set;b.getComputedStyle=p.getComputedStyle;b.__toPixelValue=b.toPixelValue=p.toPixelValue;b.style=function(h,c,a){switch(arguments.length){case 1:return p.get(h);case 2:return p["string"==typeof c?"get":"set"](h,c)}return p.set(h,c,a)};return b})},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(b,A,p){function y(h){if("string"==typeof h||h instanceof String){if(h&&
!m.test(h))return q[0]=h,q;h=h.split(m);h.length&&!h[0]&&h.shift();h.length&&!h[h.length-1]&&h.pop();return h}return h?A.filter(h,function(c){return c}):[]}var t,m=/\s+/,q=[""],r={};return t={contains:function(h,c){return 0<=(" "+p.byId(h).className+" ").indexOf(" "+c+" ")},add:function(h,c){h=p.byId(h);c=y(c);var a=h.className;a=a?" "+a+" ":" ";var f=a.length;for(var e=0,k=c.length,l;e<k;++e)(l=c[e])&&0>a.indexOf(" "+l+" ")&&(a+=l+" ");f<a.length&&(h.className=a.substr(1,a.length-2))},remove:function(h,
c){h=p.byId(h);if(void 0!==c){c=y(c);var a=" "+h.className+" ";for(var f=0,e=c.length;f<e;++f)a=a.replace(" "+c[f]+" "," ");a=b.trim(a)}else a="";h.className!=a&&(h.className=a)},replace:function(h,c,a){h=p.byId(h);r.className=h.className;t.remove(r,a);t.add(r,c);h.className!==r.className&&(h.className=r.className)},toggle:function(h,c,a){h=p.byId(h);if(void 0===a){c=y(c);for(var f=0,e=c.length,k;f<e;++f)k=c[f],t[t.contains(h,k)?"remove":"add"](h,k)}else t[a?"add":"remove"](h,c);return a}}})},"dojo/_base/NodeList":function(){define(["./kernel",
"../query","./array","./html","../NodeList-dom"],function(b,A,p){A=A.NodeList;var y=A.prototype;y.connect=A._adaptAsForEach(function(){return b.connect.apply(this,arguments)});y.coords=A._adaptAsMap(b.coords);A.events="blur focus change click error keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup submit".split(" ");p.forEach(A.events,function(t){var m="on"+t;y[m]=function(q,r){return this.connect(m,q,r)}});return b.NodeList=A})},"dojo/query":function(){define("./_base/kernel ./has ./dom ./on ./_base/array ./_base/lang ./selector/_loader ./selector/_loader!default".split(" "),
function(b,A,p,y,t,m,q,r){function h(n,v){var D=function(z,w){if("string"==typeof w&&(w=p.byId(w),!w))return new v([]);z="string"==typeof z?n(z,w):z?z.end&&z.on?z:[z]:[];return z.end&&z.on?z:new v(z)};D.matches=n.match||function(z,w,E){return 0<D.filter([z],w,E).length};D.filter=n.filter||function(z,w,E){return D(w,E).filter(function(C){return-1<t.indexOf(z,C)})};if("function"!=typeof n){var O=n.search;n=function(z,w){return O(w||document,z)}}return D}A.add("array-extensible",function(){return 1==
m.delegate([],{length:1}).length&&!A("bug-for-in-skips-shadowed")});var c=Array.prototype,a=c.slice,f=c.concat,e=t.forEach,k=function(n,v,D){v=[0].concat(a.call(v,0));D=D||b.global;return function(O){v[0]=O;return n.apply(D,v)}},l=function(n){var v=this instanceof d&&A("array-extensible");"number"==typeof n&&(n=Array(n));var D=n&&"length"in n?n:arguments;if(v||!D.sort){for(var O=v?this:[],z=O.length=D.length,w=0;w<z;w++)O[w]=D[w];if(v)return O;D=O}m._mixin(D,u);D._NodeListCtor=function(E){return d(E)};
return D},d=l,u=d.prototype=A("array-extensible")?[]:{};d._wrap=u._wrap=function(n,v,D){n=new (D||this._NodeListCtor||d)(n);return v?n._stash(v):n};d._adaptAsMap=function(n,v){return function(){return this.map(k(n,arguments,v))}};d._adaptAsForEach=function(n,v){return function(){this.forEach(k(n,arguments,v));return this}};d._adaptAsFilter=function(n,v){return function(){return this.filter(k(n,arguments,v))}};d._adaptWithCondition=function(n,v,D){return function(){var O=arguments,z=k(n,O,D);if(v.call(D||
b.global,O))return this.map(z);this.forEach(z);return this}};e(["slice","splice"],function(n){var v=c[n];u[n]=function(){return this._wrap(v.apply(this,arguments),"slice"==n?this:null)}});e(["indexOf","lastIndexOf","every","some"],function(n){var v=t[n];u[n]=function(){return v.apply(b,[this].concat(a.call(arguments,0)))}});m.extend(l,{constructor:d,_NodeListCtor:d,toString:function(){return this.join(",")},_stash:function(n){this._parent=n;return this},on:function(n,v){var D=this.map(function(O){return y(O,
n,v)});D.remove=function(){for(var O=0;O<D.length;O++)D[O].remove()};return D},end:function(){return this._parent?this._parent:new this._NodeListCtor(0)},concat:function(n){var v=a.call(this,0),D=t.map(arguments,function(O){return a.call(O,0)});return this._wrap(f.apply(v,D),this)},map:function(n,v){return this._wrap(t.map(this,n,v),this)},forEach:function(n,v){e(this,n,v);return this},filter:function(n){var v=arguments,D=this,O=0;if("string"==typeof n){D=x._filterResult(this,v[0]);if(1==v.length)return D._stash(this);
O=1}return this._wrap(t.filter(D,v[O],v[O+1]),this)},instantiate:function(n,v){var D=m.isFunction(n)?n:m.getObject(n);v=v||{};return this.forEach(function(O){new D(v,O)})},at:function(){var n=new this._NodeListCtor(0);e(arguments,function(v){0>v&&(v=this.length+v);this[v]&&n.push(this[v])},this);return n._stash(this)}});var x=h(r,l);b.query=h(r,function(n){return l(n)});x.load=function(n,v,D){q.load(n,v,function(O){D(h(O,l))})};b._filterQueryResult=x._filterResult=function(n,v,D){return new l(x.filter(n,
v,D))};b.NodeList=x.NodeList=l;return x})},"dojo/selector/acme":function(){define(["../dom","../sniff","../_base/array","../_base/lang","../_base/window"],function(b,A,p,y,t){var m=y.trim,q=p.forEach,r="BackCompat"==t.doc.compatMode,h=!1,c=function(){return!0},a=function(F){F=0<="\x3e~+".indexOf(F.slice(-1))?F+" * ":F+" ";for(var I=function(Ia,Ja){return m(F.slice(Ia,Ja))},M=[],Q=-1,aa=-1,ba=-1,la=-1,Z=-1,ea=-1,pa=-1,ma,ua="",sa="",Fa,ja=0,Ha=F.length,fa=null,xa=null,za=function(){0<=ea&&(fa.id=I(ea,
ja).replace(/\\/g,""),ea=-1);if(0<=pa){var Ia=pa==ja?null:I(pa,ja);fa[0>"\x3e~+".indexOf(Ia)?"tag":"oper"]=Ia;pa=-1}0<=Z&&(fa.classes.push(I(Z+1,ja).replace(/\\/g,"")),Z=-1)};ua=sa,sa=F.charAt(ja),ja<Ha;ja++)"\\"!=ua&&(fa||(Fa=ja,fa={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return h?this.otag:this.tag}},pa=ja),ma?sa==ma&&(ma=null):"'"==sa||'"'==sa?ma=sa:0<=Q?"]"==sa?(xa.attr?xa.matchFor=I(ba||Q+1,ja):xa.attr=I(Q+1,ja),!(Q=xa.matchFor)||'"'!=Q.charAt(0)&&
"'"!=Q.charAt(0)||(xa.matchFor=Q.slice(1,-1)),xa.matchFor&&(xa.matchFor=xa.matchFor.replace(/\\/g,"")),fa.attrs.push(xa),xa=null,Q=ba=-1):"\x3d"==sa&&(ba=0<="|~^$*".indexOf(ua)?ua:"",xa.type=ba+sa,xa.attr=I(Q+1,ja-ba.length),ba=ja+1):0<=aa?")"==sa&&(0<=la&&(xa.value=I(aa+1,ja)),la=aa=-1):"#"==sa?(za(),ea=ja+1):"."==sa?(za(),Z=ja):":"==sa?(za(),la=ja):"["==sa?(za(),Q=ja,xa={}):"("==sa?(0<=la&&(xa={name:I(la+1,ja),value:null},fa.pseudos.push(xa)),aa=ja):" "==sa&&ua!=sa&&(za(),0<=la&&fa.pseudos.push({name:I(la+
1,ja)}),fa.loops=fa.pseudos.length||fa.attrs.length||fa.classes.length,fa.oquery=fa.query=I(Fa,ja),fa.otag=fa.tag=fa.oper?null:fa.tag||"*",fa.tag&&(fa.tag=fa.tag.toUpperCase()),M.length&&M[M.length-1].oper&&(fa.infixOper=M.pop(),fa.query=fa.infixOper.query+" "+fa.query),M.push(fa),fa=null));return M},f=function(F,I){return F?I?function(){return F.apply(window,arguments)&&I.apply(window,arguments)}:F:I},e=function(F,I){I=I||[];F&&I.push(F);return I},k=function(F){return 1==F.nodeType},l=function(F,
I){return F?"class"==I?F.className||"":"for"==I?F.htmlFor||"":"style"==I?F.style.cssText||"":(h?F.getAttribute(I):F.getAttribute(I,2))||"":""},d={"*\x3d":function(F,I){return function(M){return 0<=l(M,F).indexOf(I)}},"^\x3d":function(F,I){return function(M){return 0==l(M,F).indexOf(I)}},"$\x3d":function(F,I){return function(M){M=" "+l(M,F);var Q=M.lastIndexOf(I);return-1<Q&&Q==M.length-I.length}},"~\x3d":function(F,I){var M=" "+I+" ";return function(Q){return 0<=(" "+l(Q,F)+" ").indexOf(M)}},"|\x3d":function(F,
I){var M=I+"-";return function(Q){Q=l(Q,F);return Q==I||0==Q.indexOf(M)}},"\x3d":function(F,I){return function(M){return l(M,F)==I}}};y=t.doc.documentElement;var u=!(y.nextElementSibling||"nextElementSibling"in y),x=u?"nextSibling":"nextElementSibling",n=u?"previousSibling":"previousElementSibling",v=u?k:c,D=function(F){for(;F=F[n];)if(v(F))return!1;return!0},O=function(F){for(;F=F[x];)if(v(F))return!1;return!0},z=function(F){var I=F.parentNode;I=7!=I.nodeType?I:I.nextSibling;var M=0,Q=I.children||
I.childNodes,aa=F._i||F.getAttribute("_i")||-1,ba=I._l||("undefined"!==typeof I.getAttribute?I.getAttribute("_l"):-1);if(!Q)return-1;Q=Q.length;if(ba==Q&&0<=aa&&0<=ba)return aa;A("ie")&&"undefined"!==typeof I.setAttribute?I.setAttribute("_l",Q):I._l=Q;aa=-1;for(I=I.firstElementChild||I.firstChild;I;I=I[x])v(I)&&(A("ie")?I.setAttribute("_i",++M):I._i=++M,F===I&&(aa=M));return aa},w=function(F){return!(z(F)%2)},E=function(F){return z(F)%2},C={checked:function(F,I){return function(M){return!("checked"in
M?!M.checked:!M.selected)}},disabled:function(F,I){return function(M){return M.disabled}},enabled:function(F,I){return function(M){return!M.disabled}},"first-child":function(){return D},"last-child":function(){return O},"only-child":function(F,I){return function(M){return D(M)&&O(M)}},empty:function(F,I){return function(M){var Q=M.childNodes;for(M=M.childNodes.length-1;0<=M;M--){var aa=Q[M].nodeType;if(1===aa||3==aa)return!1}return!0}},contains:function(F,I){F=I.charAt(0);if('"'==F||"'"==F)I=I.slice(1,
-1);return function(M){return 0<=M.innerHTML.indexOf(I)}},not:function(F,I){F=a(I)[0];I={el:1};"*"!=F.tag&&(I.tag=1);F.classes.length||(I.classes=1);var M=B(F,I);return function(Q){return!M(Q)}},"nth-child":function(F,I){F=parseInt;if("odd"==I)return E;if("even"==I)return w;if(-1!=I.indexOf("n")){I=I.split("n",2);var M=I[0]?"-"==I[0]?-1:F(I[0]):1,Q=I[1]?F(I[1]):0,aa=0,ba=-1;0<M?0>Q?Q=Q%M&&M+Q%M:0<Q&&(Q>=M&&(aa=Q-Q%M),Q%=M):0>M&&(M*=-1,0<Q&&(ba=Q,Q%=M));if(0<M)return function(Z){Z=z(Z);return Z>=aa&&
(0>ba||Z<=ba)&&Z%M==Q};I=Q}var la=F(I);return function(Z){return z(Z)==la}}},H=9>A("ie")||9==A("ie")&&A("quirks")?function(F){var I=F.toLowerCase();"class"==I&&(F="className");return function(M){return h?M.getAttribute(F):M[F]||M[I]}}:function(F){return function(I){return I&&I.getAttribute&&I.hasAttribute(F)}},B=function(F,I){if(!F)return c;I=I||{};var M=null;"el"in I||(M=f(M,k));"tag"in I||"*"!=F.tag&&(M=f(M,function(Q){return Q&&(h?Q.tagName:Q.tagName.toUpperCase())==F.getTag()}));"classes"in I||
q(F.classes,function(Q,aa,ba){var la=new RegExp("(?:^|\\s)"+Q+"(?:\\s|$)");M=f(M,function(Z){return la.test(Z.className)});M.count=aa});"pseudos"in I||q(F.pseudos,function(Q){var aa=Q.name;C[aa]&&(M=f(M,C[aa](aa,Q.value)))});"attrs"in I||q(F.attrs,function(Q){var aa,ba=Q.attr;Q.type&&d[Q.type]?aa=d[Q.type](ba,Q.matchFor):ba.length&&(aa=H(ba));aa&&(M=f(M,aa))});"id"in I||F.id&&(M=f(M,function(Q){return!!Q&&Q.id==F.id}));M||"default"in I||(M=c);return M},K=function(F){return function(I,M,Q){for(;I=
I[x];)if(!u||k(I)){Q&&!ia(I,Q)||!F(I)||M.push(I);break}return M}},J=function(F){return function(I,M,Q){for(I=I[x];I;){if(v(I)){if(Q&&!ia(I,Q))break;F(I)&&M.push(I)}I=I[x]}return M}},R=function(F,I){var M=function(Q){var aa=[];try{aa=Array.prototype.slice.call(Q)}catch(Z){for(var ba=0,la=Q.length;ba<la;ba++)aa.push(Q[ba])}return aa};F=F||c;return function(Q,aa,ba){var la=0,Z=[];Z=M(Q.children||Q.childNodes);for(I&&p.forEach(Z,function(ea){1===ea.nodeType&&(Z=Z.concat(M(ea.getElementsByTagName("*"))))});Q=
Z[la++];)v(Q)&&(!ba||ia(Q,ba))&&F(Q,la)&&aa.push(Q);return aa}},V=function(F,I){for(F=F.parentNode;F&&F!=I;)F=F.parentNode;return!!F},Y={},S=function(F){var I=Y[F.query];if(I)return I;var M=F.infixOper;M=M?M.oper:"";var Q=B(F,{el:1}),aa="*"==F.tag,ba=t.doc.getElementsByClassName;if(M)ba={el:1},aa&&(ba.tag=1),Q=B(F,ba),"+"==M?I=K(Q):"~"==M?I=J(Q):"\x3e"==M&&(I=R(Q));else if(F.id)Q=!F.loops&&aa?c:B(F,{el:1,id:1}),I=function(Z,ea){var pa=b.byId(F.id,Z.ownerDocument||Z);Z.ownerDocument&&!V(Z,Z.ownerDocument)&&
p.some(11===Z.nodeType?Z.childNodes:[Z],function(ma){ma=R(function(ua){return ua.id===F.id},!0)(ma,[]);if(ma.length)return pa=ma[0],!1});if(pa&&Q(pa)&&(9==Z.nodeType||V(pa,Z)))return e(pa,ea)};else if(ba&&/\{\s*\[native code\]\s*\}/.test(String(ba))&&F.classes.length&&!r){Q=B(F,{el:1,classes:1,id:1});var la=F.classes.join(" ");I=function(Z,ea,pa){ea=e(0,ea);for(var ma,ua=0,sa=Z.getElementsByClassName(la);ma=sa[ua++];)Q(ma,Z)&&ia(ma,pa)&&ea.push(ma);return ea}}else aa||F.loops?(Q=B(F,{el:1,tag:1,id:1}),
I=function(Z,ea,pa){ea=e(0,ea);for(var ma,ua=0,sa=(ma=F.getTag())?Z.getElementsByTagName(ma):[];ma=sa[ua++];)Q(ma,Z)&&ia(ma,pa)&&ea.push(ma);return ea}):I=function(Z,ea,pa){ea=e(0,ea);var ma=0,ua=F.getTag();for(ua=ua?Z.getElementsByTagName(ua):[];Z=ua[ma++];)ia(Z,pa)&&ea.push(Z);return ea};return Y[F.query]=I},U={},L={},T=function(F){var I=a(m(F));if(1==I.length){var M=S(I[0]);return function(Q){if(Q=M(Q,[]))Q.nozip=!0;return Q}}return function(Q){Q=e(Q);for(var aa,ba,la=I.length,Z,ea,pa=0;pa<la;pa++){ea=
[];aa=I[pa];ba=Q.length-1;0<ba&&(Z={},ea.nozip=!0);ba=S(aa);for(var ma=0;aa=Q[ma];ma++)ba(aa,ea,Z);if(!ea.length)break;Q=ea}return ea}},da=A("ie")?"commentStrip":"nozip",ha=!!t.doc.querySelectorAll,ca=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g,qa=function(F,I,M,Q){return M?(I?I+" ":"")+M+(Q?" "+Q:""):F},ta=/([^[]*)([^\]]*])?/g,oa=function(F,I,M){return I.replace(ca,qa)+(M||"")},va=function(F,I){F=F.replace(ta,oa);if(ha){var M=L[F];if(M&&!I)return M}if(M=U[F])return M;M=F.charAt(0);var Q=-1==F.indexOf(" ");
0<=F.indexOf("#")&&Q&&(I=!0);if(!ha||I||-1!="\x3e~+".indexOf(M)||A("ie")&&-1!=F.indexOf(":")||r&&0<=F.indexOf(".")||-1!=F.indexOf(":contains")||-1!=F.indexOf(":checked")||-1!=F.indexOf("|\x3d")){var aa=F.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return U[F]=2>aa.length?T(F):function(la){for(var Z=0,ea=[],pa;pa=aa[Z++];)ea=ea.concat(T(pa)(la));return ea}}var ba=0<="\x3e~+".indexOf(F.charAt(F.length-1))?F+" *":F;return L[F]=function(la){if(9==la.nodeType||Q)try{var Z=la.querySelectorAll(ba);
Z[da]=!0;return Z}catch(ea){}return va(F,!0)(la)}},na=0,ra=A("ie")?function(F){return h?F.getAttribute("_uid")||F.setAttribute("_uid",++na)||na:F.uniqueID}:function(F){return F._uid||(F._uid=++na)},ia=function(F,I){if(!I)return 1;F=ra(F);return I[F]?0:I[F]=1},wa=function(F){if(F&&F.nozip)return F;if(!F||!F.length)return[];if(2>F.length)return[F[0]];var I=[];na++;var M,Q;if(A("ie")&&h){var aa=na+"";for(M=0;M<F.length;M++)(Q=F[M])&&Q.getAttribute("_zipIdx")!=aa&&(I.push(Q),Q.setAttribute("_zipIdx",
aa))}else if(A("ie")&&F.commentStrip)try{for(M=0;M<F.length;M++)(Q=F[M])&&k(Q)&&I.push(Q)}catch(ba){}else for(M=0;M<F.length;M++)(Q=F[M])&&Q._zipIdx!=na&&(I.push(Q),Q._zipIdx=na);return I},ya=function(F,I){I=I||t.doc;h="div"===(I.ownerDocument||I).createElement("div").tagName;return(F=va(F)(I))&&F.nozip?F:wa(F)};ya.filter=function(F,I,M){var Q=[],aa=a(I);aa=1!=aa.length||/[^\w#\.]/.test(I)?function(Z){return-1!=p.indexOf(ya(I,b.byId(M)),Z)}:B(aa[0]);for(var ba=0,la;la=F[ba];ba++)aa(la)&&Q.push(la);
return Q};return ya})},"dojo/NodeList-dom":function(){define("./_base/kernel ./query ./_base/array ./_base/lang ./dom-class ./dom-construct ./dom-geometry ./dom-attr ./dom-style".split(" "),function(b,A,p,y,t,m,q,r,h){function c(u){return function(x,n,v){return 2==arguments.length?u["string"==typeof n?"get":"set"](x,n):u.set(x,n,v)}}var a=function(u){return 1==u.length&&"string"==typeof u[0]},f=function(u){var x=u.parentNode;x&&x.removeChild(u)},e=A.NodeList,k=e._adaptWithCondition,l=e._adaptAsForEach,
d=e._adaptAsMap;y.extend(e,{_normalize:function(u,x){var n=!0===u.parse;if("string"==typeof u.template){var v=u.templateFunc||b.string&&b.string.substitute;u=v?v(u.template,u):u}v=typeof u;"string"==v||"number"==v?(u=m.toDom(u,x&&x.ownerDocument),u=11==u.nodeType?y._toArray(u.childNodes):[u]):y.isArrayLike(u)?y.isArray(u)||(u=y._toArray(u)):u=[u];n&&(u._runParse=!0);return u},_cloneNode:function(u){return u.cloneNode(!0)},_place:function(u,x,n,v){if(1==x.nodeType||"only"!=n)for(var D,O=u.length,z=
O-1;0<=z;z--){var w=v?this._cloneNode(u[z]):u[z];if(u._runParse&&b.parser&&b.parser.parse)for(D||(D=x.ownerDocument.createElement("div")),D.appendChild(w),b.parser.parse(D),w=D.firstChild;D.firstChild;)D.removeChild(D.firstChild);z==O-1?m.place(w,x,n):x.parentNode.insertBefore(w,x);x=w}},position:d(q.position),attr:k(c(r),a),style:k(c(h),a),addClass:l(t.add),removeClass:l(t.remove),toggleClass:l(t.toggle),replaceClass:l(t.replace),empty:l(m.empty),removeAttr:l(r.remove),marginBox:d(q.getMarginBox),
place:function(u,x){var n=A(u)[0];return this.forEach(function(v){m.place(v,n,x)})},orphan:function(u){return(u?A._filterResult(this,u):this).forEach(f)},adopt:function(u,x){return A(u).place(this[0],x)._stash(this)},query:function(u){if(!u)return this;var x=new e;this.map(function(n){A(u,n).forEach(function(v){void 0!==v&&x.push(v)})});return x._stash(this)},filter:function(u){var x=arguments,n=this,v=0;if("string"==typeof u){n=A._filterResult(this,x[0]);if(1==x.length)return n._stash(this);v=1}return this._wrap(p.filter(n,
x[v],x[v+1]),this)},addContent:function(u,x){u=this._normalize(u,this[0]);for(var n=0,v;v=this[n];n++)u.length?this._place(u,v,x,0<n):m.empty(v);return this}});return e})},"dojo/_base/fx":function(){define("./kernel ./config ./lang ../Evented ./Color ../aspect ../sniff ../dom ../dom-style".split(" "),function(b,A,p,y,t,m,q,r,h){var c=p.mixin,a={},f=a._Line=function(n,v){this.start=n;this.end=v};f.prototype.getValue=function(n){return(this.end-this.start)*n+this.start};var e=a.Animation=function(n){c(this,
n);p.isArray(this.curve)&&(this.curve=new f(this.curve[0],this.curve[1]))};e.prototype=new y;p.extend(e,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var n=this._percent,v=this.easing;return v?v(n):n},_fire:function(n,v){v=v||[];if(this[n])if(A.debugAtAllCosts)this[n].apply(this,v);else try{this[n].apply(this,v)}catch(D){console.error("exception in animation handler for:",n),console.error(D)}return this},play:function(n,v){this._delayTimer&&this._clearTimer();if(v)this._stopTimer(),
this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);n=n||this.delay;v=p.hitch(this,"_play",v);if(0<n)return this._delayTimer=setTimeout(v,n),this;v();return this},_play:function(n){this._delayTimer&&this._clearTimer();this._startTime=(new Date).valueOf();this._paused&&(this._startTime-=this.duration*this._percent);this._active=!0;this._paused=!1;n=this.curve.getValue(this._getStep());this._percent||(this._startRepeatCount||
(this._startRepeatCount=this.repeat),this._fire("onBegin",[n]));this._fire("onPlay",[n]);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(n,v){this._stopTimer();this._active=this._paused=!0;this._percent=n;v&&this.play();return this},stop:function(n){this._delayTimer&&this._clearTimer();if(!this._timer)return this;
this._stopTimer();n&&(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 n=(new Date).valueOf();n=0===this.duration?1:(n-this._startTime)/this.duration;1<=n&&(n=1);this._percent=n;this.easing&&(n=this.easing(n));this._fire("onAnimate",[this.curve.getValue(n)]);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 k=0,l=null,d={run:function(){}};p.extend(e,{_startTimer:function(){this._timer||(this._timer=m.after(d,"run",p.hitch(this,"_cycle"),!0),
k++);l||(l=setInterval(p.hitch(d,"run"),this.rate))},_stopTimer:function(){this._timer&&(this._timer.remove(),this._timer=null,k--);0>=k&&(clearInterval(l),l=null,k=0)}});var u=q("ie")?function(n){var v=n.style;v.width.length||"auto"!=h.get(n,"width")||(v.width="auto")}:function(){};a._fade=function(n){n.node=r.byId(n.node);var v=c({properties:{}},n);n=v.properties.opacity={};n.start="start"in v?v.start:function(){return+h.get(v.node,"opacity")||0};n.end=v.end;n=a.animateProperty(v);m.after(n,"beforeBegin",
p.partial(u,v.node),!0);return n};a.fadeIn=function(n){return a._fade(c({end:1},n))};a.fadeOut=function(n){return a._fade(c({end:0},n))};a._defaultEasing=function(n){return.5+Math.sin((n+1.5)*Math.PI)/2};var x=function(n){this._properties=n;for(var v in n){var D=n[v];D.start instanceof t&&(D.tempColor=new t)}};x.prototype.getValue=function(n){var v={},D;for(D in this._properties){var O=this._properties[D],z=O.start;z instanceof t?v[D]=t.blendColors(z,O.end,n,O.tempColor).toCss():p.isArray(z)||(v[D]=
(O.end-z)*n+z+("opacity"!=D?O.units||"px":0))}return v};a.animateProperty=function(n){var v=n.node=r.byId(n.node);n.easing||(n.easing=b._defaultEasing);n=new e(n);m.after(n,"beforeBegin",p.hitch(n,function(){var D={},O;for(O in this.properties){if("width"==O||"height"==O)this.node.display="block";var z=this.properties[O];p.isFunction(z)&&(z=z(v));z=D[O]=c({},p.isObject(z)?z:{end:z});p.isFunction(z.start)&&(z.start=z.start(v));p.isFunction(z.end)&&(z.end=z.end(v));var w=0<=O.toLowerCase().indexOf("color"),
E=function(C,H){var B={height:C.offsetHeight,width:C.offsetWidth}[H];if(void 0!==B)return B;B=h.get(C,H);return"opacity"==H?+B:w?B:parseFloat(B)};"end"in z?"start"in z||(z.start=E(v,O)):z.end=E(v,O);w?(z.start=new t(z.start),z.end=new t(z.end)):z.start="opacity"==O?+z.start:parseFloat(z.start)}this.curve=new x(D)}),!0);m.after(n,"onAnimate",p.hitch(h,"set",n.node),!0);return n};a.anim=function(n,v,D,O,z,w){return a.animateProperty({node:n,duration:D||e.prototype.duration,properties:v,easing:O,onEnd:z}).play(w||
0)};c(b,a);b._Animation=e;return a})},"*noref":1}});(function(){var b=this.require;b({cache:{}});!b.async&&b(["dojo"]);b.boot&&b.apply(null,b.boot)})();// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/3.44/esri/copyright.txt for details.
//>>built
/*
 @esri/arcgis-html-sanitizer - v2.9.0-next.1 - Tue Oct 19 2021 10:19:42 GMT-0400 (Eastern Daylight Time)
 Copyright (c) 2021 - Environmental Systems Research Institute, Inc.
 Apache-2.0

 js-xss
 Copyright (c) 2012-2017 Zongmin Lei(雷宗民) <leizongmin@gmail.com>
 http://ucdok.com
 MIT License, see https://github.com/leizongmin/js-xss/blob/master/LICENSE for details

 Lodash/isPlainObject
 Copyright (c) JS Foundation and other contributors <https://js.foundation/>
 MIT License, see https://raw.githubusercontent.com/lodash/lodash/4.17.10-npm/LICENSE for details
*/
require({cache:{"dojo/fx/Toggler":function(){define(["../_base/lang","../_base/declare","../_base/fx","../aspect"],function(G,x,c,r){return x("dojo.fx.Toggler",null,{node:null,showFunc:c.fadeIn,hideFunc:c.fadeOut,showDuration:200,hideDuration:200,constructor:function(h){G.mixin(this,h);this.node=h.node;this._showArgs=G.mixin({},h);this._showArgs.node=this.node;this._showArgs.duration=this.showDuration;this.showAnim=this.showFunc(this._showArgs);this._hideArgs=G.mixin({},h);this._hideArgs.node=this.node;
this._hideArgs.duration=this.hideDuration;this.hideAnim=this.hideFunc(this._hideArgs);r.after(this.showAnim,"beforeBegin",G.hitch(this.hideAnim,"stop",!0),!0);r.after(this.hideAnim,"beforeBegin",G.hitch(this.showAnim,"stop",!0),!0)},show:function(h){return this.showAnim.play(h||0)},hide:function(h){return this.hideAnim.play(h||0)}})})},"dijit/_base":function(){define("./main ./a11y ./WidgetSet ./_base/focus ./_base/manager ./_base/place ./_base/popup ./_base/scroll ./_base/sniff ./_base/typematic ./_base/wai ./_base/window".split(" "),
function(G){return G._base})},"dijit/main":function(){define(["dojo/_base/kernel"],function(G){return G.dijit})},"dijit/a11y":function(){define("dojo/_base/array dojo/dom dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/sniff ./main".split(" "),function(G,x,c,r,h,w,q){var n={_isElementShown:function(f){var g=r.get(f);return"hidden"!=g.visibility&&"collapsed"!=g.visibility&&"none"!=g.display&&"hidden"!=c.get(f,"type")},hasDefaultTabStop:function(f){switch(f.nodeName.toLowerCase()){case "a":return c.has(f,
"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":try{var g=f.contentDocument;if("designMode"in g&&"on"==g.designMode)return!0;var a=g.body}catch(d){try{a=f.contentWindow.document.body}catch(k){return!1}}return a&&("true"==a.contentEditable||a.firstChild&&"true"==a.firstChild.contentEditable);default:return"true"==f.contentEditable}},effectiveTabIndex:function(f){if(!c.get(f,"disabled"))return c.has(f,"tabIndex")?+c.get(f,"tabIndex"):
n.hasDefaultTabStop(f)?0:void 0},isTabNavigable:function(f){return 0<=n.effectiveTabIndex(f)},isFocusable:function(f){return-1<=n.effectiveTabIndex(f)},_getTabNavigable:function(f){function g(y){return y&&"input"==y.tagName.toLowerCase()&&y.type&&"radio"==y.type.toLowerCase()&&y.name&&y.name.toLowerCase()}function a(y){return p[g(y)]||y}var d,k,l,m,e,b,p={},t=n._isElementShown,z=n.effectiveTabIndex,C=function(y){for(y=y.firstChild;y;y=y.nextSibling)if(!(1!=y.nodeType||9>=w("ie")&&"HTML"!==y.scopeName)&&
t(y)){var D=z(y);if(0<=D){if(0==D)d||(d=y),k=y;else if(0<D){if(!l||D<m)m=D,l=y;if(!e||D>=b)b=D,e=y}D=g(y);c.get(y,"checked")&&D&&(p[D]=y)}"SELECT"!=y.nodeName.toUpperCase()&&C(y)}};t(f)&&C(f);return{first:a(d),last:a(k),lowest:a(l),highest:a(e)}},getFirstInTabbingOrder:function(f,g){f=n._getTabNavigable(x.byId(f,g));return f.lowest?f.lowest:f.first},getLastInTabbingOrder:function(f,g){f=n._getTabNavigable(x.byId(f,g));return f.last?f.last:f.highest}};h.mixin(q,n);return n})},"dijit/WidgetSet":function(){define(["dojo/_base/array",
"dojo/_base/declare","dojo/_base/kernel","./registry"],function(G,x,c,r){var h=x("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0},add:function(w){if(this._hash[w.id])throw Error("Tried to register widget with id\x3d\x3d"+w.id+" but that id is already registered");this._hash[w.id]=w;this.length++},remove:function(w){this._hash[w]&&(delete this._hash[w],this.length--)},forEach:function(w,q){q=q||c.global;var n=0,f;for(f in this._hash)w.call(q,this._hash[f],n++,this._hash);
return this},filter:function(w,q){q=q||c.global;var n=new h,f=0,g;for(g in this._hash){var a=this._hash[g];w.call(q,a,f++,this._hash)&&n.add(a)}return n},byId:function(w){return this._hash[w]},byClass:function(w){var q=new h,n;for(n in this._hash){var f=this._hash[n];f.declaredClass==w&&q.add(f)}return q},toArray:function(){var w=[],q;for(q in this._hash)w.push(this._hash[q]);return w},map:function(w,q){return G.map(this.toArray(),w,q)},every:function(w,q){q=q||c.global;var n=0,f;for(f in this._hash)if(!w.call(q,
this._hash[f],n++,this._hash))return!1;return!0},some:function(w,q){q=q||c.global;var n=0,f;for(f in this._hash)if(w.call(q,this._hash[f],n++,this._hash))return!0;return!1}});G.forEach("forEach filter byClass map every some".split(" "),function(w){r[w]=h.prototype[w]});return h})},"dijit/registry":function(){define(["dojo/_base/array","dojo/_base/window","./main"],function(G,x,c){var r={},h={},w={length:0,add:function(q){if(h[q.id])throw Error("Tried to register widget with id\x3d\x3d"+q.id+" but that id is already registered");
h[q.id]=q;this.length++},remove:function(q){h[q]&&(delete h[q],this.length--)},byId:function(q){return"string"==typeof q?h[q]:q},byNode:function(q){return h[q.getAttribute("widgetId")]},toArray:function(){var q=[],n;for(n in h)q.push(h[n]);return q},getUniqueId:function(q){do var n=q+"_"+(q in r?++r[q]:r[q]=0);while(h[n]);return"dijit"==c._scopeName?n:c._scopeName+"_"+n},findWidgets:function(q,n){function f(a){for(a=a.firstChild;a;a=a.nextSibling)if(1==a.nodeType){var d=a.getAttribute("widgetId");
d?(d=h[d])&&g.push(d):a!==n&&f(a)}}var g=[];f(q);return g},_destroyAll:function(){c._curFocus=null;c._prevFocus=null;c._activeStack=[];G.forEach(w.findWidgets(x.body()),function(q){q._destroyed||(q.destroyRecursive?q.destroyRecursive():q.destroy&&q.destroy())})},getEnclosingWidget:function(q){for(;q;){var n=1==q.nodeType&&q.getAttribute("widgetId");if(n)return h[n];q=q.parentNode}return null},_hash:h};return c.registry=w})},"dijit/_base/focus":function(){define("dojo/_base/array dojo/dom dojo/_base/lang dojo/topic dojo/_base/window ../focus ../selection ../main".split(" "),
function(G,x,c,r,h,w,q,n){w.focus=function(f){if(f){var g="node"in f?f.node:f,a=f.bookmark;f=f.openedForWindow;var d=a?a.isCollapsed:!1;if(g){var k="iframe"==g.tagName.toLowerCase()?g.contentWindow:g;if(k&&k.focus)try{k.focus()}catch(l){}w._onFocusNode(g)}if(a&&h.withGlobal(f||h.global,n.isCollapsed)&&!d){f&&f.focus();try{h.withGlobal(f||h.global,n.moveToBookmark,null,[a])}catch(l){}}}};w.watch("curNode",function(f,g,a){n._curFocus=a;n._prevFocus=g;a&&r.publish("focusNode",a)});w.watch("activeStack",
function(f,g,a){n._activeStack=a});w.on("widget-blur",function(f,g){r.publish("widgetBlur",f,g)});w.on("widget-focus",function(f,g){r.publish("widgetFocus",f,g)});c.mixin(n,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return n.getBookmark().isCollapsed},getBookmark:function(){return(h.global==window?q:new q.SelectionManager(h.global)).getBookmark()},moveToBookmark:function(f){return(h.global==window?q:new q.SelectionManager(h.global)).moveToBookmark(f)},getFocus:function(f,g){f=!w.curNode||
f&&x.isDescendant(w.curNode,f.domNode)?n._prevFocus:w.curNode;return{node:f,bookmark:f&&f==w.curNode&&h.withGlobal(g||h.global,n.getBookmark),openedForWindow:g}},_activeStack:[],registerIframe:function(f){return w.registerIframe(f)},unregisterIframe:function(f){f&&f.remove()},registerWin:function(f,g){return w.registerWin(f,g)},unregisterWin:function(f){f&&f.remove()}});return n})},"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(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b){var p,t,z=new (x([d,q],{curNode:null,activeStack:[],constructor:function(){var y=n.hitch(this,function(D){c.isDescendant(this.curNode,D)&&this.set("curNode",null);c.isDescendant(this.prevNode,D)&&this.set("prevNode",null)});G.before(w,"empty",y);G.before(w,"destroy",y)},registerIframe:function(y){return this.registerWin(y.contentWindow,y)},registerWin:function(y,D){var B=this,u=y.document&&y.document.body;if(u){var E=a("pointer-events")?"pointerdown":a("MSPointer")?
"MSPointerDown":a("touch-events")?"mousedown, touchstart":"mousedown",v=f(y.document,E,function(I){I&&I.target&&null==I.target.parentNode||B._onTouchNode(D||I.target,"mouse")}),A=f(u,"focusin",function(I){if(I.target.tagName){var N=I.target.tagName.toLowerCase();"#document"!=N&&"body"!=N&&(m.isFocusable(I.target)?B._onFocusNode(D||I.target):B._onTouchNode(D||I.target))}}),F=f(u,"focusout",function(I){B._onBlurNode(D||I.target)});return{remove:function(){v.remove();A.remove();F.remove();u=v=A=F=null}}}},
_onBlurNode:function(y){y=(new Date).getTime();y<p+100||(this._clearFocusTimer&&clearTimeout(this._clearFocusTimer),this._clearFocusTimer=setTimeout(n.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null)}),0),this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),y<t+100||(this._clearActiveWidgetsTimer=setTimeout(n.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([])}),0)))},_onTouchNode:function(y,D){t=(new Date).getTime();
this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer);h.contains(y,"dijitPopup")&&(y=y.firstChild);var B=[];try{for(;y;){var u=r.get(y,"dijitPopupParent");if(u)y=e.byId(u).domNode;else if(y.tagName&&"body"==y.tagName.toLowerCase()){if(y===k.body())break;y=l.get(y.ownerDocument).frameElement}else{var E=y.getAttribute&&y.getAttribute("widgetId"),v=E&&e.byId(E);!v||"mouse"==D&&v.get("disabled")||B.unshift(E);y=y.parentNode}}}catch(A){}this._setStack(B,
D)},_onFocusNode:function(y){y&&9!=y.nodeType&&(p=(new Date).getTime(),this._clearFocusTimer&&(clearTimeout(this._clearFocusTimer),delete this._clearFocusTimer),this._onTouchNode(y),y!=this.curNode&&(this.set("prevNode",this.curNode),this.set("curNode",y)))},_setStack:function(y,D){var B=this.activeStack,u=B.length-1,E=y.length-1;if(y[E]!=B[u]){this.set("activeStack",y);var v;for(v=u;0<=v&&B[v]!=y[v];v--)if(u=e.byId(B[v]))u._hasBeenBlurred=!0,u.set("focused",!1),u._focusManager==this&&u._onBlur(D),
this.emit("widget-blur",u,D);for(v++;v<=E;v++)if(u=e.byId(y[v]))u.set("focused",!0),u._focusManager==this&&u._onFocus(D),this.emit("widget-focus",u,D)}},focus:function(y){if(y)try{y.focus()}catch(D){}}}));g(function(){var y=z.registerWin(l.get(document));a("ie")&&f(window,"unload",function(){y&&(y.remove(),y=null)})});b.focus=function(y){z.focus(y)};for(var C in z)/^_/.test(C)||(b.focus[C]="function"==typeof z[C]?n.hitch(z,C):z[C]);z.watch(function(y,D,B){b.focus[y]=B});return z})},"dojo/Stateful":function(){define(["./_base/declare",
"./_base/lang","./_base/array","./when"],function(G,x,c,r){return G("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(h){var w=this._attrPairNames;return w[h]?w[h]:w[h]={s:"_"+h+"Setter",g:"_"+h+"Getter"}},postscript:function(h){h&&this.set(h)},_get:function(h,w){return"function"===typeof this[w.g]?this[w.g]():this[h]},get:function(h){return this._get(h,this._getAttrNames(h))},set:function(h,w){if("object"===typeof h){for(var q in h)h.hasOwnProperty(q)&&"_watchCallbacks"!=q&&this.set(q,
h[q]);return this}q=this._getAttrNames(h);var n=this._get(h,q);q=this[q.s];var f;"function"===typeof q?f=q.apply(this,Array.prototype.slice.call(arguments,1)):this[h]=w;if(this._watchCallbacks){var g=this;r(f,function(){g._watchCallbacks(h,n,w)})}return this},_changeAttrValue:function(h,w){var q=this.get(h);this[h]=w;this._watchCallbacks&&this._watchCallbacks(h,q,w);return this},watch:function(h,w){var q=this._watchCallbacks;if(!q){var n=this;q=this._watchCallbacks=function(g,a,d,k){var l=function(m){if(m){m=
m.slice();for(var e=0,b=m.length;e<b;e++)m[e].call(n,g,a,d)}};l(q["_"+g]);k||l(q["*"])}}w||"function"!==typeof h?h="_"+h:(w=h,h="*");var f=q[h];"object"!==typeof f&&(f=q[h]=[]);f.push(w);h={};h.unwatch=h.remove=function(){var g=c.indexOf(f,w);-1<g&&f.splice(g,1)};return h}})})},"dojo/window":function(){define("./_base/lang ./sniff ./_base/window ./dom ./dom-geometry ./dom-style ./dom-construct".split(" "),function(G,x,c,r,h,w,q){x.add("rtl-adjust-position-for-verticalScrollBar",function(f,g){f=c.body(g);
g=q.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},f,"last");var a=q.create("div",{style:{overflow:"hidden",direction:"ltr"}},g,"last"),d=0!=h.position(a).x;g.removeChild(a);f.removeChild(g);return d});x.add("position-fixed-support",function(f,g){f=c.body(g);g=q.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},f,"last");var a=q.create("span",{style:{position:"fixed",
left:"0",top:"0"}},g,"last"),d=h.position(a).x!=h.position(g).x;g.removeChild(a);f.removeChild(g);return d});var n={getBox:function(f){f=f||c.doc;var g="BackCompat"==f.compatMode?c.body(f):f.documentElement,a=h.docScroll(f);if(x("touch")){var d=n.get(f);f=d.innerWidth||g.clientWidth;g=d.innerHeight||g.clientHeight}else f=g.clientWidth,g=g.clientHeight;return{l:a.x,t:a.y,w:f,h:g}},get:function(f){if(x("ie")&&n!==document.parentWindow){f.parentWindow.execScript("document._parentWindow \x3d window;",
"Javascript");var g=f._parentWindow;f._parentWindow=null;return g}return f.parentWindow||f.defaultView},scrollIntoView:function(f,g){try{f=r.byId(f);var a=f.ownerDocument||c.doc,d=c.body(a),k=a.documentElement||d.parentNode,l=x("ie")||x("trident"),m=x("webkit");if(f!=d&&f!=k)if(!(x("mozilla")||l||m||x("opera")||x("trident")||x("edge"))&&"scrollIntoView"in f)f.scrollIntoView(!1);else{var e="BackCompat"==a.compatMode,b=Math.min(d.clientWidth||k.clientWidth,k.clientWidth||d.clientWidth),p=Math.min(d.clientHeight||
k.clientHeight,k.clientHeight||d.clientHeight);a=m||e?d:k;var t=g||h.position(f),z=f.parentNode;g=function(na){return 6>=l||7==l&&e?!1:x("position-fixed-support")&&"fixed"==w.get(na,"position").toLowerCase()};var C=this;m=function(na,xa,W){"BODY"==na.tagName||"HTML"==na.tagName?C.get(na.ownerDocument).scrollBy(xa,W):(xa&&(na.scrollLeft+=xa),W&&(na.scrollTop+=W))};if(!g(f))for(;z;){z==d&&(z=a);var y=h.position(z),D=g(z),B="rtl"==w.getComputedStyle(z).direction.toLowerCase();if(z==a)y.w=b,y.h=p,a==
k&&(l||x("trident"))&&B&&(y.x+=a.offsetWidth-y.w),y.x=0,y.y=0;else{var u=h.getPadBorderExtents(z);y.w-=u.w;y.h-=u.h;y.x+=u.l;y.y+=u.t;var E=z.clientWidth,v=y.w-E;0<E&&0<v&&(B&&x("rtl-adjust-position-for-verticalScrollBar")&&(y.x+=v),y.w=E);E=z.clientHeight;v=y.h-E;0<E&&0<v&&(y.h=E)}D&&(0>y.y&&(y.h+=y.y,y.y=0),0>y.x&&(y.w+=y.x,y.x=0),y.y+y.h>p&&(y.h=p-y.y),y.x+y.w>b&&(y.w=b-y.x));var A=t.x-y.x,F=t.y-y.y,I=A+t.w-y.w,N=F+t.h-y.h;if(0<I*A&&(z.scrollLeft||z==a||z.scrollWidth>z.offsetHeight)){var da=Math[0>
A?"max":"min"](A,I);B&&(8==l&&!e||5<=x("trident"))&&(da=-da);var ba=z.scrollLeft;m(z,da,0);da=z.scrollLeft-ba;t.x-=da}0<N*F&&(z.scrollTop||z==a||z.scrollHeight>z.offsetHeight)&&(da=Math.ceil(Math[0>F?"max":"min"](F,N)),ba=z.scrollTop,m(z,0,da),da=z.scrollTop-ba,t.y-=da);z=z!=a&&!D&&z.parentNode}}}catch(na){console.error("scrollIntoView: "+na),f.scrollIntoView(!1)}}};G.setObject("dojo.window",n);return n})},"dijit/selection":function(){define("dojo/_base/array dojo/dom dojo/_base/lang dojo/sniff dojo/_base/window dijit/focus".split(" "),
function(G,x,c,r,h,w){var q=function(f){var g=f.document;this.getType=function(){if(g.getSelection){var a="text";try{var d=f.getSelection()}catch(k){}d&&1==d.rangeCount&&(d=d.getRangeAt(0),d.startContainer==d.endContainer&&1==d.endOffset-d.startOffset&&3!=d.startContainer.nodeType&&(a="control"));return a}return g.selection.type.toLowerCase()};this.getSelectedText=function(){if(g.getSelection){var a=f.getSelection();return a?a.toString():""}return"control"==this.getType()?null:g.selection.createRange().text};
this.getSelectedHtml=function(){if(g.getSelection){var a=f.getSelection();if(a&&a.rangeCount){var d,k="";for(d=0;d<a.rangeCount;d++){var l=a.getRangeAt(d).cloneContents(),m=g.createElement("div");m.appendChild(l);k+=m.innerHTML}return k}return null}return"control"==this.getType()?null:g.selection.createRange().htmlText};this.getSelectedElement=function(){if("control"==this.getType()){if(g.getSelection){var a=f.getSelection();return a.anchorNode.childNodes[a.anchorOffset]}if((a=g.selection.createRange())&&
a.item)return g.selection.createRange().item(0)}return null};this.getParentElement=function(){if("control"==this.getType()){var a=this.getSelectedElement();if(a)return a.parentNode}else if(g.getSelection){if(a=g.getSelection()){for(a=a.anchorNode;a&&1!=a.nodeType;)a=a.parentNode;return a}}else return a=g.selection.createRange(),a.collapse(!0),a.parentElement();return null};this.hasAncestorElement=function(a){return null!=this.getAncestorElement.apply(this,arguments)};this.getAncestorElement=function(a){var d=
this.getSelectedElement()||this.getParentElement();return this.getParentOfType(d,arguments)};this.isTag=function(a,d){if(a&&a.tagName){a=a.tagName.toLowerCase();for(var k=0;k<d.length;k++){var l=String(d[k]).toLowerCase();if(a==l)return l}}return""};this.getParentOfType=function(a,d){for(;a;){if(this.isTag(a,d).length)return a;a=a.parentNode}return null};this.collapse=function(a){if(g.getSelection){var d=f.getSelection();d.removeAllRanges?a?d.collapseToStart():d.collapseToEnd():d.collapse(a)}else d=
g.selection.createRange(),d.collapse(a),d.select()};this.remove=function(){var a=g.selection;g.getSelection?(a=f.getSelection(),a.deleteFromDocument()):"none"!=a.type.toLowerCase()&&a.clear();return a};this.selectElementChildren=function(a,d){a=x.byId(a);if(g.getSelection)if(d=f.getSelection(),r("opera")){var k=d.rangeCount?d.getRangeAt(0):g.createRange();k.setStart(a,0);k.setEnd(a,3==a.nodeType?a.length:a.childNodes.length);d.addRange(k)}else d.selectAllChildren(a);else if(k=a.ownerDocument.body.createTextRange(),
k.moveToElementText(a),!d)try{k.select()}catch(l){}};this.selectElement=function(a,d){a=x.byId(a);if(g.getSelection){d=g.getSelection();var k=g.createRange();d.removeAllRanges&&(r("opera")&&d.getRangeAt(0)&&(k=d.getRangeAt(0)),k.selectNode(a),d.removeAllRanges(),d.addRange(k))}else try{var l=a.tagName?a.tagName.toLowerCase():"";k="img"===l||"table"===l?h.body(g).createControlRange():h.body(g).createRange();k.addElement(a);d||k.select()}catch(m){this.selectElementChildren(a,d)}};this.inSelection=function(a){if(a){var d;
if(g.getSelection){var k=f.getSelection();k&&0<k.rangeCount&&(d=k.getRangeAt(0));if(d&&d.compareBoundaryPoints&&g.createRange)try{var l=g.createRange();l.setStart(a,0);if(1===d.compareBoundaryPoints(d.START_TO_END,l))return!0}catch(m){}}else{d=g.selection.createRange();try{l=a.ownerDocument.body.createTextRange(),l.moveToElementText(a)}catch(m){}if(d&&l&&1===d.compareEndPoints("EndToStart",l))return!0}}return!1};this.getBookmark=function(){var a,d=g.selection,k=w.curNode;if(g.getSelection){if(d=f.getSelection())if(d.isCollapsed){if(a=
k?k.tagName:"")if(a=a.toLowerCase(),"textarea"==a||"input"==a&&(!k.type||"text"==k.type.toLowerCase()))return d={start:k.selectionStart,end:k.selectionEnd,node:k,pRange:!0},{isCollapsed:d.end<=d.start,mark:d};a={isCollapsed:!0};d.rangeCount&&(a.mark=d.getRangeAt(0).cloneRange())}else{var l=d.getRangeAt(0);a={isCollapsed:!1,mark:l.cloneRange()}}}else if(d){a=k?k.tagName:"";a=a.toLowerCase();if(k&&a&&("button"==a||"textarea"==a||"input"==a)){if(d.type&&"none"==d.type.toLowerCase())return{isCollapsed:!0,
mark:null};l=d.createRange();return{isCollapsed:l.text&&l.text.length?!1:!0,mark:{range:l,pRange:!0}}}a={};try{l=d.createRange(),a.isCollapsed=!("Text"==d.type?l.htmlText.length:l.length)}catch(m){return a.isCollapsed=!0,a}if("CONTROL"==d.type.toUpperCase())if(l.length)for(a.mark=[],d=0,k=l.length;d<k;)a.mark.push(l.item(d++));else a.isCollapsed=!0,a.mark=null;else a.mark=l.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return a};this.moveToBookmark=
function(a){if(a=a.mark)if(g.getSelection){var d=f.getSelection();d&&d.removeAllRanges?a.pRange?(d=a.node,d.selectionStart=a.start,d.selectionEnd=a.end):(d.removeAllRanges(),d.addRange(a)):console.warn("No idea how to restore selection for this browser!")}else if(g.selection&&a){if(a.pRange)var k=a.range;else c.isArray(a)?(k=g.body.createControlRange(),G.forEach(a,function(l){k.addElement(l)})):(k=g.body.createTextRange(),k.moveToBookmark(a));k.select()}};this.isCollapsed=function(){return this.getBookmark().isCollapsed}},
n=new q(window);n.SelectionManager=q;return n})},"dijit/_base/manager":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/lang","../registry","../main"],function(G,x,c,r,h){var w={};G.forEach("byId getUniqueId findWidgets _destroyAll byNode getEnclosingWidget".split(" "),function(q){w[q]=r[q]});c.mixin(w,{defaultDuration:x.defaultDuration||200});c.mixin(h,w);return h})},"dijit/_base/place":function(){define(["dojo/_base/array","dojo/_base/lang","dojo/window","../place","../main"],
function(G,x,c,r,h){var w={getViewport:function(){return c.getBox()}};w.placeOnScreen=r.at;w.placeOnScreenAroundElement=function(q,n,f,g){if(x.isArray(f))var a=f;else{a=[];for(var d in f)a.push({aroundCorner:d,corner:f[d]})}return r.around(q,n,a,!0,g)};w.placeOnScreenAroundNode=w.placeOnScreenAroundElement;w.placeOnScreenAroundRectangle=w.placeOnScreenAroundElement;w.getPopupAroundAlignment=function(q,n){var f={};G.forEach(q,function(g){var a=n;switch(g){case "after":f[n?"BR":"BL"]=n?"BL":"BR";break;
case "before":f[n?"BL":"BR"]=n?"BR":"BL";break;case "below-alt":a=!a;case "below":f[a?"BL":"BR"]=a?"TL":"TR";f[a?"BR":"BL"]=a?"TR":"TL";break;case "above-alt":a=!a;default:f[a?"TL":"TR"]=a?"BL":"BR",f[a?"TR":"TL"]=a?"BR":"BL"}});return f};x.mixin(h,w);return h})},"dijit/place":function(){define("dojo/_base/array dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/_base/window ./Viewport ./main".split(" "),function(G,x,c,r,h,w,q){function n(g,a,d,k){var l=w.getEffectiveBox(g.ownerDocument);g.parentNode&&
"body"==String(g.parentNode.tagName).toLowerCase()||h.body(g.ownerDocument).appendChild(g);var m=null;G.some(a,function(p){var t=p.corner,z=p.pos,C=0,y={w:{L:l.l+l.w-z.x,R:z.x-l.l,M:l.w}[t.charAt(1)],h:{T:l.t+l.h-z.y,B:z.y-l.t,M:l.h}[t.charAt(0)]},D=g.style;D.left=D.right="auto";d&&(C=d(g,p.aroundCorner,t,y,k),C="undefined"==typeof C?0:C);var B=g.style,u=B.display,E=B.visibility;"none"==B.display&&(B.visibility="hidden",B.display="");D=x.position(g);B.display=u;B.visibility=E;u={L:z.x,R:z.x-D.w,M:Math.max(l.l,
Math.min(l.l+l.w,z.x+(D.w>>1))-D.w)}[t.charAt(1)];E={T:z.y,B:z.y-D.h,M:Math.max(l.t,Math.min(l.t+l.h,z.y+(D.h>>1))-D.h)}[t.charAt(0)];z=Math.max(l.l,u);B=Math.max(l.t,E);u=Math.min(l.l+l.w,u+D.w)-z;E=Math.min(l.t+l.h,E+D.h)-B;C+=D.w-u+(D.h-E);if(null==m||C<m.overflow)m={corner:t,aroundCorner:p.aroundCorner,x:z,y:B,w:u,h:E,overflow:C,spaceAvailable:y};return!C});m.overflow&&d&&d(g,m.aroundCorner,m.corner,m.spaceAvailable,k);a=m.y;var e=m.x,b=h.body(g.ownerDocument);/relative|absolute/.test(c.get(b,
"position"))&&(a-=c.get(b,"marginTop"),e-=c.get(b,"marginLeft"));b=g.style;b.top=a+"px";b.left=e+"px";b.right="auto";return m}var f={TL:"BR",TR:"BL",BL:"TR",BR:"TL"};return q.place={at:function(g,a,d,k,l){d=G.map(d,function(m){var e={corner:m,aroundCorner:f[m],pos:{x:a.x,y:a.y}};k&&(e.pos.x+="L"==m.charAt(1)?k.x:-k.x,e.pos.y+="T"==m.charAt(0)?k.y:-k.y);return e});return n(g,d,l)},around:function(g,a,d,k,l){function m(v,A){E.push({aroundCorner:v,corner:A,pos:{x:{L:y,R:y+B,M:y+(B>>1)}[v.charAt(1)],
y:{T:D,B:D+u,M:D+(u>>1)}[v.charAt(0)]}})}if("string"==typeof a||"offsetWidth"in a||"ownerSVGElement"in a){var e=x.position(a,!0);if(/^(above|below)/.test(d[0])){var b=x.getBorderExtents(a),p=a.firstChild?x.getBorderExtents(a.firstChild):{t:0,l:0,b:0,r:0},t=x.getBorderExtents(g),z=g.firstChild?x.getBorderExtents(g.firstChild):{t:0,l:0,b:0,r:0};e.y+=Math.min(b.t+p.t,t.t+z.t);e.h-=Math.min(b.t+p.t,t.t+z.t)+Math.min(b.b+p.b,t.b+z.b)}}else e=a;if(a.parentNode)for(b="absolute"==c.getComputedStyle(a).position,
a=a.parentNode;a&&1==a.nodeType&&"BODY"!=a.nodeName;){p=x.position(a,!0);t=c.getComputedStyle(a);/relative|absolute/.test(t.position)&&(b=!1);if(!b&&/hidden|auto|scroll/.test(t.overflow)){z=Math.min(e.y+e.h,p.y+p.h);var C=Math.min(e.x+e.w,p.x+p.w);e.x=Math.max(e.x,p.x);e.y=Math.max(e.y,p.y);e.h=z-e.y;e.w=C-e.x}"absolute"==t.position&&(b=!0);a=a.parentNode}var y=e.x,D=e.y,B="w"in e?e.w:e.w=e.width,u="h"in e?e.h:(r.deprecated("place.around: dijit/place.__Rectangle: { x:"+y+", y:"+D+", height:"+e.height+
", width:"+B+" } has been deprecated.  Please use { x:"+y+", y:"+D+", h:"+e.height+", w:"+B+" }","","2.0"),e.h=e.height),E=[];G.forEach(d,function(v){var A=k;switch(v){case "above-centered":m("TM","BM");break;case "below-centered":m("BM","TM");break;case "after-centered":A=!A;case "before-centered":m(A?"ML":"MR",A?"MR":"ML");break;case "after":A=!A;case "before":m(A?"TL":"TR",A?"TR":"TL");m(A?"BL":"BR",A?"BR":"BL");break;case "below-alt":A=!A;case "below":m(A?"BL":"BR",A?"TL":"TR");m(A?"BR":"BL",
A?"TR":"TL");break;case "above-alt":A=!A;case "above":m(A?"TL":"TR",A?"BL":"BR");m(A?"TR":"TL",A?"BR":"BL");break;default:m(v.aroundCorner,v.corner)}});g=n(g,E,l,{w:B,h:u});g.aroundNodePos=e;return g}}})},"dijit/Viewport":function(){define(["dojo/Evented","dojo/on","dojo/domReady","dojo/sniff","dojo/window"],function(G,x,c,r,h){var w=new G,q;c(function(){var n=h.getBox();w._rlh=x(window,"resize",function(){var g=h.getBox();if(n.h!=g.h||n.w!=g.w)n=g,w.emit("resize")});if(8==r("ie")){var f=screen.deviceXDPI;
setInterval(function(){screen.deviceXDPI!=f&&(f=screen.deviceXDPI,w.emit("resize"))},500)}r("ios")&&(x(document,"focusin",function(g){q=g.target}),x(document,"focusout",function(g){q=null}))});w.getEffectiveBox=function(n){n=h.getBox(n);var f=q&&q.tagName&&q.tagName.toLowerCase();r("ios")&&q&&!q.readOnly&&("textarea"==f||"input"==f&&/^(color|email|number|password|search|tel|text|url)$/.test(q.type))&&(n.h*=0==orientation||180==orientation?.66:.4,f=q.getBoundingClientRect(),n.h=Math.max(n.h,f.top+
f.height));return n};return w})},"dijit/_base/popup":function(){define(["dojo/dom-class","dojo/_base/window","../popup","../BackgroundIframe"],function(G,x,c){var r=c._createWrapper;c._createWrapper=function(w){w.declaredClass||(w={_popupWrapper:w.parentNode&&G.contains(w.parentNode,"dijitPopup")?w.parentNode:null,domNode:w,destroy:function(){},ownerDocument:w.ownerDocument,ownerDocumentBody:x.body(w.ownerDocument)});return r.call(this,w)};var h=c.open;c.open=function(w){if(w.orient&&"string"!=typeof w.orient&&
!("length"in w.orient)){var q=[],n;for(n in w.orient)q.push({aroundCorner:n,corner:w.orient[n]});w.orient=q}return h.call(this,w)};return c})},"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 dojo/touch".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e){function b(){this._popupWrapper&&(w.destroy(this._popupWrapper),
delete this._popupWrapper)}c=c(null,{_stack:[],_beginZIndex:1E3,_idGen:1,_repositionAll:function(){if(this._firstAroundNode){var p=this._firstAroundPosition,t=q.position(this._firstAroundNode,!0),z=t.x-p.x;p=t.y-p.y;if(z||p)for(this._firstAroundPosition=t,t=0;t<this._stack.length;t++){var C=this._stack[t].wrapper.style;C.top=parseFloat(C.top)+p+"px";"auto"==C.right?C.left=parseFloat(C.left)+z+"px":C.right=parseFloat(C.right)-z+"px"}this._aroundMoveListener=setTimeout(a.hitch(this,"_repositionAll"),
z||p?10:50)}},_createWrapper:function(p){var t=p._popupWrapper,z=p.domNode;t||(t=w.create("div",{"class":"dijitPopup",style:{display:"none"},role:"region","aria-label":p["aria-label"]||p.label||p.name||p.id},p.ownerDocumentBody),t.appendChild(z),z=z.style,z.display="",z.visibility="",z.position="",z.top="0px",p._popupWrapper=t,x.after(p,"destroy",b,!0),"ontouchend"in document&&d(t,"touchend",function(C){/^(input|button|textarea)$/i.test(C.target.tagName)||C.preventDefault()}),t.dojoClick=!0);return t},
moveOffScreen:function(p){var t=this._createWrapper(p);p=q.isBodyLtr(p.ownerDocument);var z={visibility:"hidden",top:"-9999px",display:""};z[p?"left":"right"]="-9999px";z[p?"right":"left"]="auto";n.set(t,z);return t},hide:function(p){var t=this._createWrapper(p);n.set(t,{display:"none",height:"auto",overflowY:"visible",border:""});p=p.domNode;"_originalStyle"in p&&(p.style.cssText=p._originalStyle)},getTopPopup:function(){for(var p=this._stack,t=p.length-1;0<t&&p[t].parent===p[t-1].widget;t--);return p[t]},
open:function(p){for(var t=this._stack,z=p.popup,C=z.domNode,y=p.orient||["below","below-alt","above","above-alt"],D=p.parent?p.parent.isLeftToRight():q.isBodyLtr(z.ownerDocument),B=p.around,u=p.around&&p.around.id?p.around.id+"_dropdown":"popup_"+this._idGen++;t.length&&(!p.parent||!r.isDescendant(p.parent.domNode,t[t.length-1].widget.domNode));)this.close(t[t.length-1].widget);var E=this.moveOffScreen(z);z.startup&&!z._started&&z.startup();var v=q.position(C);if("maxHeight"in p&&-1!=p.maxHeight)var A=
p.maxHeight||Infinity;else{A=m.getEffectiveBox(this.ownerDocument);var F=B?q.position(B,!1):{y:p.y-(p.padding||0),h:2*(p.padding||0)};A=Math.floor(Math.max(F.y,A.h-(F.y+F.h)))}v.h>A&&(v=n.getComputedStyle(C),n.set(E,{overflowY:"scroll",height:A+"px",border:v.borderLeftWidth+" "+v.borderLeftStyle+" "+v.borderLeftColor}),C._originalStyle=C.style.cssText,C.style.border="none");h.set(E,{id:u,style:{zIndex:this._beginZIndex+t.length},"class":"dijitPopup "+(z.baseClass||z["class"]||"").split(" ")[0]+"Popup",
dijitPopupParent:p.parent?p.parent.id:""});0==t.length&&B&&(this._firstAroundNode=B,this._firstAroundPosition=q.position(B,!0),this._aroundMoveListener=setTimeout(a.hitch(this,"_repositionAll"),50));f("config-bgIframe")&&!z.bgIframe&&(z.bgIframe=new l(E));u=z.orient?a.hitch(z,"orient"):null;y=B?k.around(E,B,y,D,u):k.at(E,p,"R"==y?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],p.padding,u);E.style.visibility="visible";C.style.visibility="visible";C=[];C.push(d(E,"keydown",a.hitch(this,function(I){if(I.keyCode==
g.ESCAPE&&p.onCancel)I.stopPropagation(),I.preventDefault(),p.onCancel();else if(I.keyCode==g.TAB&&(I.stopPropagation(),I.preventDefault(),(I=this.getTopPopup())&&I.onCancel))I.onCancel()})));z.onCancel&&p.onCancel&&C.push(z.on("cancel",p.onCancel));C.push(z.on(z.onExecute?"execute":"change",a.hitch(this,function(){var I=this.getTopPopup();if(I&&I.onExecute)I.onExecute()})));t.push({widget:z,wrapper:E,parent:p.parent,onExecute:p.onExecute,onCancel:p.onCancel,onClose:p.onClose,handlers:C});if(z.onOpen)z.onOpen(y);
return y},close:function(p){for(var t=this._stack;p&&G.some(t,function(B){return B.widget==p})||!p&&t.length;){var z=t.pop(),C=z.widget,y=z.onClose;C.bgIframe&&(C.bgIframe.destroy(),delete C.bgIframe);if(C.onClose)C.onClose();for(var D;D=z.handlers.pop();)D.remove();C&&C.domNode&&this.hide(C);y&&y()}0==t.length&&this._aroundMoveListener&&(clearTimeout(this._aroundMoveListener),this._firstAroundNode=this._firstAroundPosition=this._aroundMoveListener=null)}});return e.popup=new c})},"dijit/BackgroundIframe":function(){define("require ./main dojo/_base/config dojo/dom-construct dojo/dom-style dojo/_base/lang dojo/on dojo/sniff".split(" "),
function(G,x,c,r,h,w,q,n){n.add("config-bgIframe",(n("ie")||n("trident"))&&!/IEMobile\/10\.0/.test(navigator.userAgent));var f=new function(){var g=[];this.pop=function(){if(g.length){var a=g.pop();a.style.display=""}else 9>n("ie")?(a=c.dojoBlankHtmlUrl||G.toUrl("dojo/resources/blank.html")||'javascript:""',a=document.createElement("\x3ciframe src\x3d'"+a+"' role\x3d'presentation' style\x3d'position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity\x3d\"0\");'\x3e")):(a=r.create("iframe"),
a.src='javascript:""',a.className="dijitBackgroundIframe",a.setAttribute("role","presentation"),h.set(a,"opacity",.1)),a.tabIndex=-1;return a};this.push=function(a){a.style.display="none";g.push(a)}};x.BackgroundIframe=function(g){if(!g.id)throw Error("no id");if(n("config-bgIframe")){var a=this.iframe=f.pop();g.appendChild(a);7>n("ie")||n("quirks")?(this.resize(g),this._conn=q(g,"resize",w.hitch(this,"resize",g))):h.set(a,{width:"100%",height:"100%"})}};w.extend(x.BackgroundIframe,{resize:function(g){this.iframe&&
h.set(this.iframe,{width:g.offsetWidth+"px",height:g.offsetHeight+"px"})},destroy:function(){this._conn&&(this._conn.remove(),this._conn=null);this.iframe&&(this.iframe.parentNode.removeChild(this.iframe),f.push(this.iframe),delete this.iframe)}});return x.BackgroundIframe})},"dojo/touch":function(){define("./_base/kernel ./aspect ./dom ./dom-class ./_base/lang ./on ./has ./mouse ./domReady ./_base/window".split(" "),function(G,x,c,r,h,w,q,n,f,g){function a(F,I,N){return m&&N?function(da,ba){return w(da,
N,ba)}:b?function(da,ba){var na=w(da,I,function(W){ba.call(this,W);v=(new Date).getTime()}),xa=w(da,F,function(W){(!v||(new Date).getTime()>v+1E3)&&ba.call(this,W)});return{remove:function(){na.remove();xa.remove()}}}:function(da,ba){return w(da,F,ba)}}function d(F){do if(void 0!==F.dojoClick)return F;while(F=F.parentNode)}function k(F,I,N){if(!n.isRight(F)){var da=d(F.target);if(t=!F.target.disabled&&da&&da.dojoClick)if(C=(z="useTarget"==t)?da:F.target,z&&F.preventDefault(),y=F.changedTouches?F.changedTouches[0].pageX-
g.global.pageXOffset:F.clientX,D=F.changedTouches?F.changedTouches[0].pageY-g.global.pageYOffset:F.clientY,B=("object"==typeof t?t.x:"number"==typeof t?t:0)||4,u=("object"==typeof t?t.y:"number"==typeof t?t:0)||4,!p){p=!0;var ba=function(na){t=z?c.isDescendant(g.doc.elementFromPoint(na.changedTouches?na.changedTouches[0].pageX-g.global.pageXOffset:na.clientX,na.changedTouches?na.changedTouches[0].pageY-g.global.pageYOffset:na.clientY),C):t&&(na.changedTouches?na.changedTouches[0].target:na.target)==
C&&Math.abs((na.changedTouches?na.changedTouches[0].pageX-g.global.pageXOffset:na.clientX)-y)<=B&&Math.abs((na.changedTouches?na.changedTouches[0].pageY-g.global.pageYOffset:na.clientY)-D)<=u};g.doc.addEventListener(I,function(na){n.isRight(na)||(ba(na),z&&na.preventDefault())},!0);g.doc.addEventListener(N,function(na){if(!n.isRight(na)&&(ba(na),t)){E=(new Date).getTime();var xa=z?C:na.target;"LABEL"===xa.tagName&&(xa=c.byId(xa.getAttribute("for"))||xa);var W=na.changedTouches?na.changedTouches[0]:
na,la=function(oa){var qa=document.createEvent("MouseEvents");qa._dojo_click=!0;qa.initMouseEvent(oa,!0,!0,na.view,na.detail,W.screenX,W.screenY,W.clientX,W.clientY,na.ctrlKey,na.altKey,na.shiftKey,na.metaKey,0,null);return qa},ha=la("mousedown"),sa=la("mouseup"),Ca=la("click");setTimeout(function(){w.emit(xa,"mousedown",ha);w.emit(xa,"mouseup",sa);w.emit(xa,"click",Ca);E=(new Date).getTime()},0)}},!0);F=function(na){g.doc.addEventListener(na,function(xa){var W=xa.target;t&&!xa._dojo_click&&(new Date).getTime()<=
E+1E3&&("INPUT"!=W.tagName||!r.contains(W,"dijitOffScreen"))&&(xa.stopPropagation(),xa.stopImmediatePropagation&&xa.stopImmediatePropagation(),"click"==na&&("INPUT"!=W.tagName||"radio"==W.type&&(r.contains(W,"dijitCheckBoxInput")||r.contains(W,"mblRadioButton"))||"checkbox"==W.type&&(r.contains(W,"dijitCheckBoxInput")||r.contains(W,"mblCheckBox")))&&"TEXTAREA"!=W.tagName&&"AUDIO"!=W.tagName&&"VIDEO"!=W.tagName&&xa.preventDefault())},!0)};F("click");F("mousedown");F("mouseup")}}}var l=5>q("ios"),m=
q("pointer-events")||q("MSPointer"),e=function(){var F={},I;for(I in{down:1,move:1,up:1,cancel:1,over:1,out:1})F[I]=q("MSPointer")?"MSPointer"+I.charAt(0).toUpperCase()+I.slice(1):"pointer"+I;return F}(),b=q("touch-events"),p,t,z=!1,C,y,D,B,u,E,v,A;q("touch")&&(m?f(function(){g.doc.addEventListener(e.down,function(F){k(F,e.move,e.up)},!0)}):f(function(){function F(I){var N=h.delegate(I,{bubbles:!0});6<=q("ios")&&(N.touches=I.touches,N.altKey=I.altKey,N.changedTouches=I.changedTouches,N.ctrlKey=I.ctrlKey,
N.metaKey=I.metaKey,N.shiftKey=I.shiftKey,N.targetTouches=I.targetTouches);return N}A=g.body();g.doc.addEventListener("touchstart",function(I){v=(new Date).getTime();var N=A;A=I.target;w.emit(N,"dojotouchout",{relatedTarget:A,bubbles:!0});w.emit(A,"dojotouchover",{relatedTarget:N,bubbles:!0});k(I,"touchmove","touchend")},!0);w(g.doc,"touchmove",function(I){v=(new Date).getTime();var N=g.doc.elementFromPoint(I.pageX-(l?0:g.global.pageXOffset),I.pageY-(l?0:g.global.pageYOffset));N&&(A!==N&&(w.emit(A,
"dojotouchout",{relatedTarget:N,bubbles:!0}),w.emit(N,"dojotouchover",{relatedTarget:A,bubbles:!0}),A=N),w.emit(N,"dojotouchmove",F(I))||I.preventDefault())});w(g.doc,"touchend",function(I){v=(new Date).getTime();var N=g.doc.elementFromPoint(I.pageX-(l?0:g.global.pageXOffset),I.pageY-(l?0:g.global.pageYOffset))||g.body();w.emit(N,"dojotouchend",F(I))})}));x={press:a("mousedown","touchstart",e.down),move:a("mousemove","dojotouchmove",e.move),release:a("mouseup","dojotouchend",e.up),cancel:a(n.leave,
"touchcancel",m?e.cancel:null),over:a("mouseover","dojotouchover",e.over),out:a("mouseout","dojotouchout",e.out),enter:n._eventHandler(a("mouseover","dojotouchover",e.over)),leave:n._eventHandler(a("mouseout","dojotouchout",e.out))};return G.touch=x})},"dijit/_base/scroll":function(){define(["dojo/window","../main"],function(G,x){x.scrollIntoView=function(c,r){G.scrollIntoView(c,r)}})},"dijit/_base/sniff":function(){define(["dojo/uacss"],function(){})},"dojo/uacss":function(){define(["./dom-geometry",
"./_base/lang","./domReady","./sniff","./_base/window"],function(G,x,c,r,h){var w=h.doc.documentElement;h=r("ie");var q=r("trident"),n=r("opera"),f=Math.floor,g=r("ff"),a=G.boxModel.replace(/-/,"");n={dj_quirks:r("quirks"),dj_opera:n,dj_khtml:r("khtml"),dj_webkit:r("webkit"),dj_safari:r("safari"),dj_chrome:r("chrome"),dj_edge:r("edge"),dj_gecko:r("mozilla"),dj_ios:r("ios"),dj_android:r("android")};h&&(n.dj_ie=!0,n["dj_ie"+f(h)]=!0,n.dj_iequirks=r("quirks"));q&&(n.dj_trident=!0,n["dj_trident"+f(q)]=
!0);g&&(n["dj_ff"+f(g)]=!0);n["dj_"+a]=!0;var d="",k;for(k in n)n[k]&&(d+=k+" ");w.className=x.trim(w.className+" "+d);c(function(){if(!G.isBodyLtr()){var l="dj_rtl dijitRtl "+d.replace(/ /g,"-rtl ");w.className=x.trim(w.className+" "+l+"dj_rtl dijitRtl "+d.replace(/ /g,"-rtl "))}});return r})},"dijit/_base/typematic":function(){define(["../typematic"],function(){})},"dijit/typematic":function(){define("dojo/_base/array dojo/_base/connect dojo/_base/lang dojo/on dojo/sniff ./main".split(" "),function(G,
x,c,r,h,w){var q=w.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(c.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(n,f,g,a,d,k,l,m){if(d!=this._obj){this.stop();this._initialDelay=l||500;this._subsequentDelay=
k||.9;this._minDelay=m||10;this._obj=d;this._node=g;this._count=this._currentTimeout=-1;this._callback=c.hitch(f,a);this._evt={faux:!0};for(var e in n)"layerX"!=e&&"layerY"!=e&&(f=n[e],"function"!=typeof f&&"undefined"!=typeof f&&(this._evt[e]=f));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(n,f,g,a,d,k,l){var m="keyCode"in f?"keyCode":"charCode"in
f?"charCode":"charOrCode",e=[r(n,"keyCode"in f?"keydown":"charCode"in f?"keypress":x._keypress,c.hitch(this,function(b){b[m]!=f[m]||void 0!==f.ctrlKey&&f.ctrlKey!=b.ctrlKey||void 0!==f.altKey&&f.altKey!=b.altKey||void 0!==f.metaKey&&f.metaKey!=(b.metaKey||!1)||void 0!==f.shiftKey&&f.shiftKey!=b.shiftKey?q._obj==f&&q.stop():(b.stopPropagation(),b.preventDefault(),q.trigger(b,g,n,a,f,d,k,l))})),r(n,"keyup",c.hitch(this,function(){q._obj==f&&q.stop()}))];return{remove:function(){G.forEach(e,function(b){b.remove()})}}},
addMouseListener:function(n,f,g,a,d,k){var l=[r(n,"mousedown",c.hitch(this,function(m){m.preventDefault();q.trigger(m,f,n,g,n,a,d,k)})),r(n,"mouseup",c.hitch(this,function(m){this._obj&&m.preventDefault();q.stop()})),r(n,"mouseout",c.hitch(this,function(m){this._obj&&m.preventDefault();q.stop()})),r(n,"dblclick",c.hitch(this,function(m){m.preventDefault();9>h("ie")&&(q.trigger(m,f,n,g,n,a,d,k),setTimeout(c.hitch(this,q.stop),50))}))];return{remove:function(){G.forEach(l,function(m){m.remove()})}}},
addListener:function(n,f,g,a,d,k,l,m){var e=[this.addKeyListener(f,g,a,d,k,l,m),this.addMouseListener(n,a,d,k,l,m)];return{remove:function(){G.forEach(e,function(b){b.remove()})}}}};return q})},"dijit/_base/wai":function(){define(["dojo/dom-attr","dojo/_base/lang","../main","../hccss"],function(G,x,c){x.mixin(c,{hasWaiRole:function(r,h){r=this.getWaiRole(r);return h?-1<r.indexOf(h):0<r.length},getWaiRole:function(r){return x.trim((G.get(r,"role")||"").replace("wairole:",""))},setWaiRole:function(r,
h){G.set(r,"role",h)},removeWaiRole:function(r,h){var w=G.get(r,"role");w&&(h?(h=x.trim((" "+w+" ").replace(" "+h+" "," ")),G.set(r,"role",h)):r.removeAttribute("role"))},hasWaiState:function(r,h){return r.hasAttribute?r.hasAttribute("aria-"+h):!!r.getAttribute("aria-"+h)},getWaiState:function(r,h){return r.getAttribute("aria-"+h)||""},setWaiState:function(r,h,w){r.setAttribute("aria-"+h,w)},removeWaiState:function(r,h){r.removeAttribute("aria-"+h)}});return c})},"dijit/hccss":function(){define(["dojo/dom-class",
"dojo/hccss","dojo/domReady","dojo/_base/window"],function(G,x,c,r){c(function(){x("highcontrast")&&G.add(r.body(),"dijit_a11y")});return x})},"dojo/hccss":function(){define("require ./_base/config ./dom-class ./dom-style ./has ./domReady ./_base/window".split(" "),function(G,x,c,r,h,w,q){h.add("highcontrast",function(){var n=q.doc.createElement("div");try{n.style.cssText='border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;background-image: url("'+(x.blankGif||
G.toUrl("./resources/blank.gif"))+'");';q.body().appendChild(n);var f=r.getComputedStyle(n),g=f.backgroundImage;return f.borderTopColor==f.borderRightColor||g&&("none"==g||"url(invalid-url:)"==g)}catch(a){return console.warn("hccss: exception detecting high-contrast mode, document is likely hidden: "+a.toString()),!1}finally{8>=h("ie")?n.outerHTML="":q.body().removeChild(n)}});w(function(){h("highcontrast")&&c.add(q.body(),"dj_a11y")});return h})},"dijit/_base/window":function(){define(["dojo/window",
"../main"],function(G,x){x.getDocumentWindow=function(c){return G.get(c)}})},"dijit/form/DropDownButton":function(){define("dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/query ../registry ../popup ./Button ../_Container ../_HasDropDown dojo/text!./templates/DropDownButton.html ../a11yclick".split(" "),function(G,x,c,r,h,w,q,n,f,g){return G("dijit.form.DropDownButton",[q,n,f],{baseClass:"dijitDropDownButton",templateString:g,_fillContent:function(){var a=this.srcNodeRef,d=this.containerNode;
if(a&&d)for(;a.hasChildNodes();){var k=a.firstChild;k.hasAttribute&&(k.hasAttribute("data-dojo-type")||k.hasAttribute("dojoType")||k.hasAttribute("data-"+x._scopeName+"-type")||k.hasAttribute(x._scopeName+"Type"))?(this.dropDownContainer=this.ownerDocument.createElement("div"),this.dropDownContainer.appendChild(k)):d.appendChild(k)}},startup:function(){this._started||(!this.dropDown&&this.dropDownContainer&&(this.dropDown=h.byNode(this.dropDownContainer.firstChild),delete this.dropDownContainer),
this.dropDown&&w.hide(this.dropDown),this.inherited(arguments))},isLoaded:function(){var a=this.dropDown;return!!a&&(!a.href||a.isLoaded)},loadDropDown:function(a){var d=this.dropDown,k=d.on("load",c.hitch(this,function(){k.remove();a()}));d.refresh()},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}})})},"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(G,x,c,r,h,w,q,n,f,g){r("dijit-legacy-requires")&&q(0,function(){G(["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"])});q=x("dijit.form.Button"+(r("dojo-bidi")?"_NoBidi":""),[n,f],{showLabel:!0,iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitButton",templateString:g,_setValueAttr:"valueNode",_setNameAttr:function(a){this.valueNode&&this.valueNode.setAttribute("name",a)},postCreate:function(){this.inherited(arguments);
this._setLabelFromContainer()},_setLabelFromContainer:function(){this.containerNode&&!this.label&&(this.label=w.trim(this.containerNode.innerHTML),this.onLabelSet())},_setShowLabelAttr:function(a){this.containerNode&&c.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)},onLabelSet:function(){this.inherited(arguments);this.showLabel||
"title"in this.params||(this.titleNode.title=w.trim(this.containerNode.innerText||this.containerNode.textContent||""))}});r("dojo-bidi")&&(q=x("dijit.form.Button",q,{onLabelSet:function(){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 q})},"dijit/form/_FormWidget":function(){define("dojo/_base/declare dojo/sniff dojo/_base/kernel dojo/ready ../_Widget ../_CssStateMixin ../_TemplatedMixin ./_FormWidgetMixin".split(" "),
function(G,x,c,r,h,w,q,n){x("dijit-legacy-requires")&&r(0,function(){require(["dijit/form/_FormValueWidget"])});return G("dijit.form._FormWidget",[h,q,w,n],{setDisabled:function(f){c.deprecated("setDisabled("+f+") is deprecated. Use set('disabled',"+f+") instead.","","2.0");this.set("disabled",f)},setValue:function(f){c.deprecated("dijit.form._FormWidget:setValue("+f+") is deprecated.  Use set('value',"+f+") instead.","","2.0");this.set("value",f)},getValue:function(){c.deprecated(this.declaredClass+
"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},postMixInProperties:function(){this.nameAttrSetting=this.name&&!x("msapp")?'name\x3d"'+this.name.replace(/"/g,"\x26quot;")+'"':"";this.inherited(arguments)}})})},"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(G,x,c,r,h,w,q,n,f,g,a,d,k){function l(){}function m(e){return function(b,p,t,z){return b&&"string"==typeof p&&b[p]==l?b.on(p.substring(2).toLowerCase(),q.hitch(t,z)):e.apply(c,arguments)}}G.around(c,"connect",m);w.connect&&G.around(w,"connect",m);G=r("dijit._Widget",[a,d,k],{onClick:l,onDblClick:l,onKeyDown:l,onKeyPress:l,onKeyUp:l,onMouseDown:l,onMouseMove:l,onMouseOut:l,onMouseOver:l,onMouseLeave:l,onMouseEnter:l,onMouseUp:l,constructor:function(e){this._toConnect={};for(var b in e)this[b]===
l&&(this._toConnect[b.replace(/^on/,"").toLowerCase()]=e[b],delete e[b])},postCreate:function(){this.inherited(arguments);for(var e in this._toConnect)this.on(e,this._toConnect[e]);delete this._toConnect},on:function(e,b){return this[this._onMap(e)]===l?c.connect(this.domNode,e.toLowerCase(),this,b):this.inherited(arguments)},_setFocusedAttr:function(e){this._focused=e;this._set("focused",e)},setAttribute:function(e,b){w.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.",
"","2.0");this.set(e,b)},attr:function(e,b){return 2<=arguments.length||"object"===typeof e?this.set.apply(this,arguments):this.get(e)},getDescendants:function(){w.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?n("[widgetId]",this.containerNode).map(g.byNode):[]},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}});h("dijit-legacy-requires")&&f(0,function(){require(["dijit/_base"])});
return G})},"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(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C,y,D){function B(E){return function(v){n[v?
"set":"remove"](this.domNode,E,v);this._set(E,v)}}k.add("dijit-legacy-requires",!l.isAsync);k.add("dojo-bidi",!1);k("dijit-legacy-requires")&&b(0,function(){G(["dijit/_base/manager"])});var u={};r=w("dijit._WidgetBase",[p,C],{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(E){this._set("ownerDocument",
E)},attributeMap:{},_blankGif:r.blankGif||G.toUrl("dojo/resources/blank.gif"),textDir:"",_introspect:function(){var E=this.constructor;if(!E._setterAttrs){var v=E.prototype,A=E._setterAttrs=[];E=E._onMap={};for(var F in v.attributeMap)A.push(F);for(F in v)/^on/.test(F)&&(E[F.substring(2).toLowerCase()]=F),/^_set[A-Z](.*)Attr$/.test(F)&&(F=F.charAt(4).toLowerCase()+F.substr(5,F.length-9),v.attributeMap&&F in v.attributeMap||A.push(F))}},postscript:function(E,v){this.create(E,v)},create:function(E,
v){this._introspect();this.srcNodeRef=q.byId(v);this._connects=[];this._supportingWidgets=[];this.srcNodeRef&&this.srcNodeRef.id&&"string"==typeof this.srcNodeRef.id&&(this.id=this.srcNodeRef.id);E&&(this.params=E,m.mixin(this,E));this.postMixInProperties();this.id||(this.id=D.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id);this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=z.body(this.ownerDocument);
D.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();if((E=this.srcNodeRef)&&E.parentNode&&this.domNode!==E){E.parentNode.replaceChild(this.domNode,E);var A=!0}this.domNode.setAttribute("widgetId",this.id)}this.postCreate();A&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var E={},v;for(v in this.params||{})E[v]=this._get(v);x.forEach(this.constructor._setterAttrs,function(A){if(!(A in E)){var F=this._get(A);F&&this.set(A,F)}},this);for(v in E)this.set(v,
E[v])},postMixInProperties:function(){},buildRendering:function(){this.domNode||(this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div"));if(this.baseClass){var E=this.baseClass.split(" ");this.isLeftToRight()||(E=E.concat(x.map(E,function(v){return v+"Rtl"})));f.add(this.domNode,E)}},postCreate:function(){},startup:function(){this._started||(this._started=!0,x.forEach(this.getChildren(),function(E){E._started||E._destroyed||!m.isFunction(E.startup)||(E.startup(),E._started=!0)}))},
destroyRecursive:function(E){this._beingDestroyed=!0;this.destroyDescendants(E);this.destroy(E)},destroy:function(E){function v(A){A.destroyRecursive?A.destroyRecursive(E):A.destroy&&A.destroy(E)}this._beingDestroyed=!0;this.uninitialize();x.forEach(this._connects,m.hitch(this,"disconnect"));x.forEach(this._supportingWidgets,v);this.domNode&&x.forEach(D.findWidgets(this.domNode,this.containerNode),v);this.destroyRendering(E);D.remove(this.id);this._destroyed=!0},destroyRendering:function(E){this.bgIframe&&
(this.bgIframe.destroy(E),delete this.bgIframe);this.domNode&&(E?n.remove(this.domNode,"widgetId"):g.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(E||g.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(E){x.forEach(this.getChildren(),function(v){v.destroyRecursive&&v.destroyRecursive(E)})},uninitialize:function(){return!1},_setStyleAttr:function(E){var v=this.domNode;m.isObject(E)?d.set(v,E):v.style.cssText=v.style.cssText?v.style.cssText+("; "+E):E;this._set("style",
E)},_attrToDom:function(E,v,A){A=3<=arguments.length?A:this.attributeMap[E];x.forEach(m.isArray(A)?A:[A],function(F){var I=this[F.node||F||"domNode"];switch(F.type||"attribute"){case "attribute":m.isFunction(v)&&(v=m.hitch(this,v));F=F.attribute?F.attribute:/^on[A-Z][a-zA-Z]*$/.test(E)?E.toLowerCase():E;I.tagName?n.set(I,F,v):I.set(F,v);break;case "innerText":I.innerHTML="";I.appendChild(this.ownerDocument.createTextNode(v));break;case "textContent":I.textContent=v;break;case "innerHTML":I.innerHTML=
v;break;case "class":f.replace(I,v,this[E]);break;case "toggleClass":f.toggle(I,F.className||E,v)}},this)},get:function(E){var v=this._getAttrNames(E);return this[v.g]?this[v.g]():this._get(E)},set:function(E,v){if("object"===typeof E){for(var A in E)this.set(A,E[A]);return this}A=this._getAttrNames(E);var F=this[A.s];if(m.isFunction(F))var I=F.apply(this,Array.prototype.slice.call(arguments,1));else{F=this.focusNode&&!m.isFunction(this.focusNode)?"focusNode":"domNode";var N=this[F]&&this[F].tagName,
da;if((da=N)&&!(da=u[N])){da=this[F];var ba={};for(na in da)ba[na.toLowerCase()]=!0;da=u[N]=ba}var na=da;A=E in this.attributeMap?this.attributeMap[E]:A.s in this?this[A.s]:na&&A.l in na&&"function"!=typeof v||/^aria-|^data-|^role$/.test(E)?F:null;null!=A&&this._attrToDom(E,v,A);this._set(E,v)}return I||this},_attrPairNames:{},_getAttrNames:function(E){var v=this._attrPairNames;if(v[E])return v[E];var A=E.replace(/^[a-z]|-[a-zA-Z]/g,function(F){return F.charAt(F.length-1).toUpperCase()});return v[E]=
{n:E+"Node",s:"_set"+A+"Attr",g:"_get"+A+"Attr",l:A.toLowerCase()}},_set:function(E,v){var A=this[E];this[E]=v;!this._created||A===v||A!==A&&v!==v||(this._watchCallbacks&&this._watchCallbacks(E,A,v),this.emit("attrmodified-"+E,{detail:{prevValue:A,newValue:v}}))},_get:function(E){return this[E]},emit:function(E,v,A){v=v||{};void 0===v.bubbles&&(v.bubbles=!0);void 0===v.cancelable&&(v.cancelable=!0);v.detail||(v.detail={});v.detail.widget=this;var F,I=this["on"+E];I&&(F=I.apply(this,A?A:[v]));this._started&&
!this._beingDestroyed&&e.emit(this.domNode,E.toLowerCase(),v);return F},on:function(E,v){var A=this._onMap(E);return A?c.after(this,A,v,!0):this.own(e(this.domNode,E,v))[0]},_onMap:function(E){var v=this.constructor,A=v._onMap;if(!A){A=v._onMap={};for(var F in v.prototype)/^on/.test(F)&&(A[F.replace(/^on/,"").toLowerCase()]=F)}return A["string"==typeof E&&E.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getChildren:function(){return this.containerNode?
D.findWidgets(this.containerNode):[]},getParent:function(){return D.getEnclosingWidget(this.domNode.parentNode)},connect:function(E,v,A){return this.own(h.connect(E,v,this,A))[0]},disconnect:function(E){E.remove()},subscribe:function(E,v){return this.own(t.subscribe(E,m.hitch(this,v)))[0]},unsubscribe:function(E){E.remove()},isLeftToRight:function(){return this.dir?"ltr"==this.dir.toLowerCase():a.isBodyLtr(this.ownerDocument)},isFocusable:function(){return this.focus&&"none"!=d.get(this.domNode,"display")},
placeAt:function(E,v){var A=!E.tagName&&D.byId(E);!A||!A.addChild||v&&"number"!==typeof v?(E=A&&"domNode"in A?A.containerNode&&!/after|before|replace/.test(v||"")?A.containerNode:A.domNode:q.byId(E,this.ownerDocument),g.place(this.domNode,E,v),!this._started&&(this.getParent()||{})._started&&this.startup()):A.addChild(this,v);return this},defer:function(E,v){var A=setTimeout(m.hitch(this,function(){A&&(A=null,this._destroyed||m.hitch(this,E)())}),v||0);return{remove:function(){A&&(clearTimeout(A),
A=null);return null}}}});k("dojo-bidi")&&r.extend(y);return r})},"dijit/Destroyable":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(G,x,c){return c("dijit.Destroyable",null,{destroy:function(r){this._destroyed=!0},own:function(){var r=["destroyRecursive","destroy","remove"];G.forEach(arguments,function(h){function w(){q.remove();G.forEach(n,function(g){g.remove()})}var q=x.before(this,"destroy",function(g){h[f](g)}),n=[];if(h.then){var f="cancel";h.then(w,w)}else G.forEach(r,
function(g){"function"===typeof h[g]&&(f||(f=g),n.push(x.after(h,g,w,!0)))})},this);return arguments}})})},"dijit/_OnDijitClickMixin":function(){define("dojo/on dojo/_base/array dojo/keys dojo/_base/declare dojo/has ./a11yclick".split(" "),function(G,x,c,r,h,w){G=r("dijit._OnDijitClickMixin",null,{connect:function(q,n,f){return this.inherited(arguments,[q,"ondijitclick"==n?w:n,f])}});G.a11yclick=w;return G})},"dijit/a11yclick":function(){define(["dojo/keys","dojo/mouse","dojo/on","dojo/touch"],function(G,
x,c,r){function h(n){if((n.keyCode===G.ENTER||n.keyCode===G.SPACE)&&!/input|button|textarea/i.test(n.target.nodeName))for(n=n.target;n;n=n.parentNode)if(n.dojoClick)return!0}var w;c(document,"keydown",function(n){h(n)?(w=n.target,n.preventDefault()):w=null});c(document,"keyup",function(n){h(n)&&n.target==w&&(w=null,c.emit(n.target,"click",{cancelable:!0,bubbles:!0,ctrlKey:n.ctrlKey,shiftKey:n.shiftKey,metaKey:n.metaKey,altKey:n.altKey,_origType:n.type}))});var q=function(n,f){n.dojoClick=!0;return c(n,
"click",f)};q.click=q;q.press=function(n,f){var g=c(n,r.press,function(d){("mousedown"!=d.type||x.isLeft(d))&&f(d)}),a=c(n,"keydown",function(d){d.keyCode!==G.ENTER&&d.keyCode!==G.SPACE||f(d)});return{remove:function(){g.remove();a.remove()}}};q.release=function(n,f){var g=c(n,r.release,function(d){("mouseup"!=d.type||x.isLeft(d))&&f(d)}),a=c(n,"keyup",function(d){d.keyCode!==G.ENTER&&d.keyCode!==G.SPACE||f(d)});return{remove:function(){g.remove();a.remove()}}};q.move=r.move;return q})},"dijit/_FocusMixin":function(){define(["./focus",
"./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(G,x,c,r){r.extend(x,{focused:!1,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()}});return c("dijit._FocusMixin",null,{_focusManager:G})})},"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(G,x,c,r,h,w,q,
n,f,g,a,d){x=x("dijit._CssStateMixin",[],{hovering:!1,active:!1,_applyAttributes:function(){this.inherited(arguments);G.forEach("disabled readOnly checked selected focused state hovering active _opened".split(" "),function(l){this.watch(l,w.hitch(this,"_setStateClass"))},this);for(var k in this.cssStateNodes||{})this._trackMouseState(this[k],this.cssStateNodes[k]);this._trackMouseState(this.domNode,this.baseClass);this._setStateClass()},_cssMouseEvent:function(k){if(!this.disabled)switch(k.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 k(t){l=l.concat(G.map(l,function(z){return z+t}),"dijit"+t)}var l=this.baseClass.split(" ");
this.isLeftToRight()||k("Rtl");var m="mixed"==this.checked?"Mixed":this.checked?"Checked":"";this.checked&&k(m);this.state&&k(this.state);this.selected&&k("Selected");this._opened&&k("Opened");this.disabled?k("Disabled"):this.readOnly?k("ReadOnly"):this.active?k("Active"):this.hovering&&k("Hover");this.focused&&k("Focused");m=this.stateNode||this.domNode;var e={};G.forEach(m.className.split(" "),function(t){e[t]=!0});"_stateClasses"in this&&G.forEach(this._stateClasses,function(t){delete e[t]});G.forEach(l,
function(t){e[t]=!0});var b=[],p;for(p in e)b.push(p);m.className=b.join(" ");this._stateClasses=l},_subnodeCssMouseEvent:function(k,l,m){function e(b){r.toggle(k,l+"Active",b)}if(!this.disabled&&!this.readOnly)switch(m.type){case "mouseover":case "MSPointerOver":case "pointerover":r.toggle(k,l+"Hover",!0);break;case "mouseout":case "MSPointerOut":case "pointerout":r.toggle(k,l+"Hover",!1);e(!1);break;case "mousedown":case "touchstart":case "MSPointerDown":case "pointerdown":case "keydown":e(!0);
break;case "mouseup":case "MSPointerUp":case "pointerup":case "dojotouchend":case "keyup":e(!1);break;case "focus":case "focusin":r.toggle(k,l+"Focused",!0);break;case "blur":case "focusout":r.toggle(k,l+"Focused",!1)}},_trackMouseState:function(k,l){k._cssState=l}});n(function(){function k(e,b,p){if(!p||!c.isDescendant(p,b))for(;b&&b!=p;b=b.parentNode)if(b._cssState){var t=d.getEnclosingWidget(b);t&&(b==t.domNode?t._cssMouseEvent(e):t._subnodeCssMouseEvent(b,b._cssState,e))}}var l=g.body(),m;q(l,
f.over,function(e){k(e,e.target,e.relatedTarget)});q(l,f.out,function(e){k(e,e.target,e.relatedTarget)});q(l,a.press,function(e){m=e.target;k(e,m)});q(l,a.release,function(e){k(e,m);m=null});q(l,"focusin, focusout",function(e){var b=e.target;if(b._cssState&&!b.getAttribute("widgetId")){var p=d.getEnclosingWidget(b);p&&p._subnodeCssMouseEvent(b,b._cssState,e)}})});return x})},"dijit/_TemplatedMixin":function(){define("dojo/cache dojo/_base/declare dojo/dom-construct dojo/_base/lang dojo/on dojo/sniff dojo/string ./_AttachMixin".split(" "),
function(G,x,c,r,h,w,q,n){var f=x("dijit._TemplatedMixin",n,{templateString:null,templatePath:null,_skipNodeCache:!1,searchContainerNode:!0,_stringRepl:function(g){var a=this.declaredClass,d=this;return q.substitute(g,this,function(k,l){"!"==l.charAt(0)&&(k=r.getObject(l.substr(1),!1,d));if("undefined"==typeof k)throw Error(a+" template:"+l);return null==k?"":"!"==l.charAt(0)?k:this._escapeValue(""+k)},this)},_escapeValue:function(g){return g.replace(/["'<>&]/g,function(a){return{"\x26":"\x26amp;",
"\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;"}[a]})},buildRendering:function(){if(!this._rendered){this.templateString||(this.templateString=G(this.templatePath,{sanitize:!0}));var g=f.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument);if(r.isString(g)){var a=c.toDom(this._stringRepl(g),this.ownerDocument);if(1!=a.nodeType)throw Error("Invalid template: "+g);}else a=g.cloneNode(!0);this.domNode=a}this.inherited(arguments);this._rendered||this._fillContent(this.srcNodeRef);
this._rendered=!0},_fillContent:function(g){var a=this.containerNode;if(g&&a)for(;g.hasChildNodes();)a.appendChild(g.firstChild)}});f._templateCache={};f.getCachedTemplate=function(g,a,d){var k=f._templateCache,l=g,m=k[l];if(m){try{if(!m.ownerDocument||m.ownerDocument==(d||document))return m}catch(e){}c.destroy(m)}g=q.trim(g);if(a||g.match(/\$\{([^\}]+)\}/g))return k[l]=g;a=c.toDom(g,d);if(1!=a.nodeType)throw Error("Invalid template: "+g);return k[l]=a};w("ie")&&h(window,"unload",function(){var g=
f._templateCache,a;for(a in g){var d=g[a];"object"==typeof d&&c.destroy(d);delete g[a]}});return f})},"dojo/cache":function(){define(["./_base/kernel","./text"],function(G){return G.cache})},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(G,x){var c=/[&<>'"\/]/g,r={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","/":"\x26#x2F;"},h={};x.setObject("dojo.string",h);h.escape=function(w){return w?w.replace(c,function(q){return r[q]}):""};h.codePointAt=
String.prototype.codePointAt?function(w,q){return String.prototype.codePointAt.call(w,q)}:function(w,q){if(null==w)throw new TypeError("codePointAt called on null or undefined");w=String(w);var n=w.length;var f=q?Number(q):0;f!=f&&(f=0);if(!(0>f||f>=n))return q=w.charCodeAt(f),55296<=q&&56319>=q&&n>f+1&&(w=w.charCodeAt(f+1),56320<=w&&57343>=w)?1024*(q-55296)+w-56320+65536:q};h.fromCodePoint=String.fromCodePoint||function(){var w=[],q=0,n="";var f=0;for(len=arguments.length;f!==len;++f){q=+arguments[f];
if(!(1114111>q&&q>>>0===q))throw RangeError("Invalid code point: "+q);65535>=q?q=w.push(q):(q-=65536,q=w.push((q>>10)+55296,q%1024+56320));16383<=q&&(n+=String.fromCharCode.apply(null,w),w.length=0)}return n+String.fromCharCode.apply(null,w)};h.rep=function(w,q){if(0>=q||!w)return"";for(var n=[];;){q&1&&n.push(w);if(!(q>>=1))break;w+=w}return n.join("")};h.pad=function(w,q,n,f){n||(n="0");w=String(w);q=h.rep(n,Math.ceil((q-w.length)/n.length));return f?w+q:q+w};h.substitute=function(w,q,n,f){f=f||
G.global;n=n?x.hitch(f,n):function(g){return g};return w.replace(/\$\{([^\s:\}]*)(?::([^\s:\}]+))?\}/g,function(g,a,d){if(""==a)return"$";g=x.getObject(a,!1,q);d&&(g=x.getObject(d,!1,f).call(f,g,a));d=n(g,a);if("undefined"===typeof d)throw Error('string.substitute could not find key "'+a+'" in template');return d.toString()})};h.trim=String.prototype.trim?x.trim:function(w){w=w.replace(/^\s+/,"");for(var q=w.length-1;0<=q;q--)if(/\S/.test(w.charAt(q))){w=w.substring(0,q+1);break}return w};return h})},
"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(G,x,c,r,h,w,q,n,f){var g=h.delegate(n,{mouseenter:w.enter,mouseleave:w.leave,keypress:c._keypress}),a;c=r("dijit._AttachMixin",null,{constructor:function(){this._attachPoints=[];this._attachEvents=[]},buildRendering:function(){this.inherited(arguments);this._attachTemplateNodes(this.domNode);this._beforeFillContent()},
_beforeFillContent:function(){},_attachTemplateNodes:function(d){for(var k=d;;)if(1==k.nodeType&&(this._processTemplateNode(k,function(l,m){return l.getAttribute(m)},this._attach)||this.searchContainerNode)&&k.firstChild)k=k.firstChild;else{if(k==d)break;for(;!k.nextSibling;)if(k=k.parentNode,k==d)return;k=k.nextSibling}},_processTemplateNode:function(d,k,l){var m=!0,e=this.attachScope||this,b=k(d,"dojoAttachPoint")||k(d,"data-dojo-attach-point");if(b)for(var p=b.split(/\s*,\s*/);b=p.shift();)h.isArray(e[b])?
e[b].push(d):e[b]=d,m="containerNode"!=b,this._attachPoints.push(b);if(k=k(d,"dojoAttachEvent")||k(d,"data-dojo-attach-event"))for(b=k.split(/\s*,\s*/),p=h.trim;k=b.shift();)if(k){var t=null;-1!=k.indexOf(":")?(t=k.split(":"),k=p(t[0]),t=p(t[1])):k=p(k);t||(t=k);this._attachEvents.push(l(d,k,h.hitch(e,t)))}return m},_attach:function(d,k,l){k=k.replace(/^on/,"").toLowerCase();k="dijitclick"==k?a||(a=G("./a11yclick")):g[k]||k;return q(d,k,l)},_detachTemplateNodes:function(){var d=this.attachScope||
this;x.forEach(this._attachPoints,function(k){delete d[k]});this._attachPoints=[];x.forEach(this._attachEvents,function(k){k.remove()});this._attachEvents=[]},destroyRendering:function(){this._detachTemplateNodes();this.inherited(arguments)}});h.extend(f,{dojoAttachEvent:"",dojoAttachPoint:""});return c})},"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(G,
x,c,r,h,w,q,n,f,g){return x("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(a){this._set("disabled",a);/^(button|input|select|textarea|optgroup|option|fieldset)$/i.test(this.focusNode.tagName)?(c.set(this.focusNode,"disabled",a),n("trident")&&"readOnly"in this&&c.set(this.focusNode,"readonly",a||this.readOnly)):
this.focusNode.setAttribute("aria-disabled",a?"true":"false");this.valueNode&&c.set(this.valueNode,"disabled",a);a?(this._set("hovering",!1),this._set("active",!1),a="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"_setTabIndexAttr"in this?this._setTabIndexAttr:"focusNode",G.forEach(h.isArray(a)?a:[a],function(d){d=this[d];n("webkit")||g.hasDefaultTabStop(d)?d.setAttribute("tabIndex","-1"):d.removeAttribute("tabIndex")},this)):""!=this.tabIndex&&this.set("tabIndex",this.tabIndex)},_onFocus:function(a){if("mouse"==
a&&this.isFocusable())var d=this.own(q(this.focusNode,"focus",function(){l.remove();d.remove()}))[0],k=n("pointer-events")?"pointerup":n("MSPointer")?"MSPointerUp":n("touch-events")?"touchend, mouseup":"mouseup",l=this.own(q(this.ownerDocumentBody,k,h.hitch(this,function(m){l.remove();d.remove();this.focused&&("touchend"==m.type?this.defer("focus"):this.focus())})))[0];this.scrollOnFocus&&this.defer(function(){f.scrollIntoView(this.domNode)});this.inherited(arguments)},isFocusable:function(){return!this.disabled&&
this.focusNode&&"none"!=r.get(this.domNode,"display")},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(a){}},compare:function(a,d){return"number"==typeof a&&"number"==typeof d?isNaN(a)&&isNaN(d)?0:a-d:a>d?1:a<d?-1:0},onChange:function(){},_onChangeActive:!1,_handleOnChange:function(a,d){void 0!=this._lastValueReported||null!==d&&this._onChangeActive||(this._resetValue=this._lastValueReported=a);this._pendingOnChange=this._pendingOnChange||typeof a!=typeof this._lastValueReported||
0!=this.compare(a,this._lastValueReported);(this.intermediateChanges||d||void 0===d)&&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(G,x,c,r){var h=G("dijit.form._ButtonMixin"+(c("dojo-bidi")?"_NoBidi":""),null,{label:"",type:"button",__onClick:function(w){w.stopPropagation();w.preventDefault();this.disabled||this.valueNode.click(w);return!1},_onClick:function(w){if(this.disabled)return w.stopPropagation(),w.preventDefault(),!1;!1===this.onClick(w)&&w.preventDefault();var q=w.defaultPrevented;
if(!q&&"submit"==this.type&&!(this.valueNode||this.focusNode).form)for(var n=this.domNode;n.parentNode;n=n.parentNode){var f=r.byNode(n);if(f&&"function"==typeof f._onSubmit){f._onSubmit(w);w.preventDefault();q=!0;break}}return!q},postCreate:function(){this.inherited(arguments);x.setSelectable(this.focusNode,!1)},onClick:function(){return!0},_setLabelAttr:function(w){this._set("label",w);(this.containerNode||this.focusNode).innerHTML=w;this.onLabelSet()},onLabelSet:function(){}});c("dojo-bidi")&&
(h=G("dijit.form._ButtonMixin",h,{onLabelSet:function(){this.inherited(arguments);this.applyTextDir(this.containerNode||this.focusNode)}}));return h})},"dijit/_Container":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/_base/kernel"],function(G,x,c,r){return x("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode)},addChild:function(h,w){var q=this.containerNode;if(0<w){for(q=q.firstChild;0<
w;)1==q.nodeType&&w--,q=q.nextSibling;q?w="before":(q=this.containerNode,w="last")}c.place(h.domNode,q,w);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,w){var q=this.getChildren();h=G.indexOf(q,h);return q[h+w]},getIndexOfChild:function(h){return G.indexOf(this.getChildren(),h)}})})},"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(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e){return G("dijit._HasDropDown",e,{_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&&b.preventDefault(),this.own(a.once(this.ownerDocument,d.release,g.hitch(this,"_onDropDownMouseUp"))),this.toggleDropDown())},_onDropDownMouseUp:function(b){var p=
this.dropDown,t=!1;if(b&&this._opened){var z=w.position(this._buttonNode,!0);if(!(b.pageX>=z.x&&b.pageX<=z.x+z.w&&b.pageY>=z.y&&b.pageY<=z.y+z.h)){for(z=b.target;z&&!t;)h.contains(z,"dijitPopup")?t=!0:z=z.parentNode;if(t){z=b.target;if(p.onItemClick){for(var C;z&&!(C=k.byNode(z));)z=z.parentNode;if(C&&C.onClick&&C.getParent)C.getParent().onItemClick(C,b)}return}}}this._opened?p.focus&&(!1!==p.autoFocus||"mouseup"==b.type&&!this.hovering)&&(this._focusDropDownTimer=this.defer(function(){p.focus();
delete this._focusDropDownTimer})):this.focus&&this.defer("focus")},_onDropDownClick:function(b){this._stopClickEvents&&(b.stopPropagation(),b.preventDefault())},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var b={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"+b+"ArrowButton")},postCreate:function(){this.inherited(arguments);var b=this.focusNode||this.domNode;this.own(a(this._buttonNode,d.press,g.hitch(this,"_onDropDownMouseDown")),a(this._buttonNode,"click",g.hitch(this,"_onDropDownClick")),a(b,"keydown",g.hitch(this,"_onKey")),a(b,"keyup",g.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(b){if(!this.disabled&&!this.readOnly){var p=this.dropDown,t=b.target;p&&this._opened&&p.handleKey&&!1===p.handleKey(b)?(b.stopPropagation(),b.preventDefault()):p&&this._opened&&b.keyCode==f.ESCAPE?(this.closeDropDown(),b.stopPropagation(),b.preventDefault()):!this._opened&&(b.keyCode==f.DOWN_ARROW||(b.keyCode==f.ENTER||b.keyCode==f.SPACE&&(!this._searchTimer||b.ctrlKey||b.altKey||b.metaKey))&&("input"!==(t.tagName||"").toLowerCase()||
t.type&&"text"!==t.type.toLowerCase()))&&(this._toggleOnKeyUp=!0,b.stopPropagation(),b.preventDefault())}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var b=this.dropDown;b&&b.focus&&this.defer(g.hitch(b,"focus"),1)}},_onBlur:function(){this.closeDropDown(!1);this.inherited(arguments)},isLoaded:function(){return!0},loadDropDown:function(b){b()},loadAndOpenDropDown:function(){var b=new x,p=g.hitch(this,function(){this.openDropDown();b.resolve(this.dropDown)});
this.isLoaded()?p():this.loadDropDown(p);return b},toggleDropDown:function(){this.disabled||this.readOnly||(this._opened?this.closeDropDown(!0):this.loadAndOpenDropDown())},openDropDown:function(){var b=this.dropDown,p=b.domNode,t=this._aroundNode||this.domNode,z=this,C=m.open({parent:this,popup:b,around:t,orient:this.dropDownPosition,maxHeight:this.maxHeight,onExecute:function(){z.closeDropDown(!0)},onCancel:function(){z.closeDropDown(!0)},onClose:function(){r.set(z._popupStateNode,"popupActive",
!1);h.remove(z._popupStateNode,"dijitHasDropDownOpen");z._set("_opened",!1)}});if(this.forceWidth||this.autoWidth&&t.offsetWidth>b._popupWrapper.offsetWidth){t=t.offsetWidth-b._popupWrapper.offsetWidth;var y={w:b.domNode.offsetWidth+t};this._origStyle=p.style.cssText;g.isFunction(b.resize)?b.resize(y):w.setMarginBox(p,y);"R"==C.corner[1]&&(b._popupWrapper.style.left=b._popupWrapper.style.left.replace("px","")-t+"px")}r.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"===p.getAttribute("role")||p.getAttribute("aria-labelledby")||p.setAttribute("aria-labelledby",this.id);return C},closeDropDown:function(b){this._focusDropDownTimer&&(this._focusDropDownTimer.remove(),delete this._focusDropDownTimer);this._opened&&(this._popupStateNode.setAttribute("aria-expanded","false"),b&&this.focus&&this.focus(),m.close(this.dropDown),
this._opened=!1);this._origStyle&&(this.dropDown.domNode.style.cssText=this._origStyle,delete this._origStyle)}})})},"dijit/form/ComboButton":function(){define("dojo/_base/declare dojo/keys ../focus ./DropDownButton dojo/text!./templates/ComboButton.html ../a11yclick".split(" "),function(G,x,c,r,h){return G("dijit.form.ComboButton",r,{templateString:h,_setIdAttr:"",_setTabIndexAttr:["focusNode","titleNode"],_setTitleAttr:"titleNode",optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{buttonNode:"dijitButtonNode",
titleNode:"dijitButtonContents",_popupStateNode:"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyDown:function(w){w.keyCode==x[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]&&(c.focus(this._popupStateNode),w.stopPropagation(),w.preventDefault())},_onArrowKeyDown:function(w){w.keyCode==x[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]&&(c.focus(this.titleNode),w.stopPropagation(),w.preventDefault())},focus:function(w){this.disabled||c.focus("start"==w?this.titleNode:this._popupStateNode)}})})},
"dijit/form/ToggleButton":function(){define(["dojo/_base/declare","dojo/_base/kernel","./Button","./_ToggleButtonMixin"],function(G,x,c,r){return G("dijit.form.ToggleButton",[c,r],{baseClass:"dijitToggleButton",setChecked:function(h){x.deprecated("setChecked("+h+") is deprecated. Use set('checked',"+h+") instead.","","2.0");this.set("checked",h)}})})},"dijit/form/_ToggleButtonMixin":function(){define(["dojo/_base/declare","dojo/dom-attr"],function(G,x){return G("dijit.form._ToggleButtonMixin",null,
{checked:!1,_aria_attr:"aria-pressed",_onClick:function(c){var r=this.checked;this._set("checked",!r);var h=this.inherited(arguments);this.set("checked",h?this.checked:r);return h},_setCheckedAttr:function(c,r){this._set("checked",c);var h=this.focusNode||this.domNode;this._created&&x.get(h,"checked")!=!!c&&x.set(h,"checked",!!c);h.setAttribute(this._aria_attr,String(c));this._handleOnChange(c,r)},postCreate:function(){this.inherited(arguments);var c=this.focusNode||this.domNode;this.checked&&c.setAttribute("checked",
"checked");void 0===this._resetValue&&(this._lastValueReported=this._resetValue=this.checked)},reset:function(){this._hasBeenBlurred=!1;this.set("checked",this.params.checked||!1)}})})},"dijit/TooltipDialog":function(){define("dojo/_base/declare dojo/dom-class dojo/has dojo/keys dojo/_base/lang dojo/on ./focus ./layout/ContentPane ./_DialogMixin ./form/_FormMixin ./_TemplatedMixin dojo/text!./templates/TooltipDialog.html ./main".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,k){G=G("dijit.TooltipDialog",
[n,a,g,f],{title:"",doLayout:!1,autofocus:!0,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:d,_setTitleAttr:"containerNode",postCreate:function(){this.inherited(arguments);this.own(w(this.domNode,"keydown",h.hitch(this,"_onKey")))},orient:function(l,m,e){l={"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","BR-TL":"dijitTooltipBelow dijitTooltipABLeft","BL-TR":"dijitTooltipBelow dijitTooltipABRight","TL-BR":"dijitTooltipAbove dijitTooltipABRight","TR-BL":"dijitTooltipAbove dijitTooltipABLeft"}[m+"-"+e];x.replace(this.domNode,l,this._currentOrientClass||"");this._currentOrientClass=l},focus:function(){this._getFocusItems();q.focus(this._firstFocusItem)},
onOpen:function(l){this.orient(this.domNode,l.aroundCorner,l.corner);var m=l.aroundNodePos;"M"==l.corner.charAt(0)&&"M"==l.aroundCorner.charAt(0)?(this.connectorNode.style.top=m.y+(m.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=m.x+(m.w-this.connectorNode.offsetWidth>>1)-l.x+"px");this._onShow()},onClose:function(){this.onHide()},_onKey:function(l){if(l.keyCode==r.ESCAPE)this.defer("onCancel"),
l.stopPropagation(),l.preventDefault();else if(l.keyCode==r.TAB){var m=l.target;this._getFocusItems();this._firstFocusItem==this._lastFocusItem?(l.stopPropagation(),l.preventDefault()):m==this._firstFocusItem&&l.shiftKey?(q.focus(this._lastFocusItem),l.stopPropagation(),l.preventDefault()):m!=this._lastFocusItem||l.shiftKey?l.stopPropagation():(q.focus(this._firstFocusItem),l.stopPropagation(),l.preventDefault())}}});c("dojo-bidi")&&G.extend({_setTitleAttr:function(l){this.containerNode.title=this.textDir&&
this.enforceTextDirWithUcc?this.enforceTextDirWithUcc(null,l):l;this._set("title",l)},_setTextDirAttr:function(l){this._created&&this.textDir==l||(this._set("textDir",l),this.textDir&&this.title&&(this.containerNode.title=this.enforceTextDirWithUcc(null,this.title)))}});return G})},"dijit/layout/ContentPane":function(){define("dojo/_base/kernel dojo/_base/lang ../_Widget ../_Container ./_ContentPaneResizeMixin dojo/string dojo/html dojo/_base/array dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/dom-construct dojo/_base/xhr dojo/i18n dojo/when dojo/i18n!../nls/loading".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e){return f("dijit.layout.ContentPane",[c,r,h],{href:"",content:"",extractContent:!1,parseOnLoad:!0,parserScope:G._scopeName,preventCache:!1,preload:!1,refreshOnShow:!1,loadingMessage:"\x3cspan class\x3d'dijitContentPaneLoading'\x3e\x3cspan class\x3d'dijitInline dijitIconLoading'\x3e\x3c/span\x3e${loadingState}\x3c/span\x3e",errorMessage:"\x3cspan class\x3d'dijitContentPaneError'\x3e\x3cspan class\x3d'dijitInline dijitIconError'\x3e\x3c/span\x3e${errorState}\x3c/span\x3e",
isLoaded:!1,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,_setTitleAttr:null,stopParser:!0,template:!1,markupFactory:function(b,p,t){var z=new t(b,p);return!z.href&&z._contentSetter&&z._contentSetter.parseDeferred&&!z._contentSetter.parseDeferred.isFulfilled()?z._contentSetter.parseDeferred.then(function(){return z}):z},create:function(b,p){if(!(b&&b.template||!p||"href"in b||"content"in b)){p=a.byId(p);for(var t=p.ownerDocument.createDocumentFragment();p.firstChild;)t.appendChild(p.firstChild);
b=x.delegate(b,{content:t})}this.inherited(arguments,[b,p])},postMixInProperties:function(){this.inherited(arguments);var b=m.getLocalization("dijit","loading",this.lang);this.loadingMessage=w.substitute(this.loadingMessage,b);this.errorMessage=w.substitute(this.errorMessage,b)},buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode);this.domNode.removeAttribute("title")},startup:function(){this.inherited(arguments);this._contentSetter&&n.forEach(this._contentSetter.parseResults,
function(b){b._started||b._destroyed||!x.isFunction(b.startup)||(b.startup(),b._started=!0)},this)},_startChildren:function(){n.forEach(this.getChildren(),function(b){b._started||b._destroyed||!x.isFunction(b.startup)||(b.startup(),b._started=!0)});this._contentSetter&&n.forEach(this._contentSetter.parseResults,function(b){b._started||b._destroyed||!x.isFunction(b.startup)||(b.startup(),b._started=!0)},this)},setHref:function(b){G.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.",
"","2.0");return this.set("href",b)},_setHrefAttr:function(b){this.cancel();this.onLoadDeferred=new g(x.hitch(this,"cancel"));this.onLoadDeferred.then(x.hitch(this,"onLoad"));this._set("href",b);this.preload||this._created&&this._isShown()?this._load():this._hrefChanged=!0;return this.onLoadDeferred},setContent:function(b){G.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",b)},_setContentAttr:function(b){this._set("href",
"");this.cancel();this.onLoadDeferred=new g(x.hitch(this,"cancel"));this._created&&this.onLoadDeferred.then(x.hitch(this,"onLoad"));this._setContent(b||"");this._isDownloaded=!1;return this.onLoadDeferred},_getContentAttr:function(){return this.containerNode.innerHTML},cancel:function(){this._xhrDfd&&-1==this._xhrDfd.fired&&this._xhrDfd.cancel();delete this._xhrDfd;this.onLoadDeferred=null},destroy:function(){this.cancel();this.inherited(arguments)},destroyRecursive:function(b){this._beingDestroyed||
this.inherited(arguments)},_onShow:function(){this.inherited(arguments);if(this.href&&!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow))return this.refresh()},refresh:function(){this.cancel();this.onLoadDeferred=new g(x.hitch(this,"cancel"));this.onLoadDeferred.then(x.hitch(this,"onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),!0);var b=this,p={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};
x.isObject(this.ioArgs)&&x.mixin(p,this.ioArgs);var t=this._xhrDfd=(this.ioMethod||l.get)(p),z;t.then(function(C){z=C;try{return b._isDownloaded=!0,b._setContent(C,!1)}catch(y){b._onError("Content",y)}},function(C){t.canceled||b._onError("Download",C);delete b._xhrDfd;return C}).then(function(){b.onDownloadEnd();delete b._xhrDfd;return z});delete this._hrefChanged},_onLoadHandler:function(b){this._set("isLoaded",!0);try{this.onLoadDeferred.resolve(b)}catch(p){console.error("Error "+(this.widgetId||
this.id)+" running custom onLoad code: "+p.message)}},_onUnloadHandler:function(){this._set("isLoaded",!1);try{this.onUnload()}catch(b){console.error("Error "+this.widgetId+" running custom onUnload code: "+b.message)}},destroyDescendants:function(b){this.isLoaded&&this._onUnloadHandler();var p=this._contentSetter;n.forEach(this.getChildren(),function(t){t.destroyRecursive?t.destroyRecursive(b):t.destroy&&t.destroy(b);t._destroyed=!0});p&&(n.forEach(p.parseResults,function(t){t._destroyed||(t.destroyRecursive?
t.destroyRecursive(b):t.destroy&&t.destroy(b),t._destroyed=!0)}),delete p.parseResults);b||k.empty(this.containerNode);delete this._singleChild},_setContent:function(b,p){b=this.preprocessContent(b);this.destroyDescendants();var t=this._contentSetter;t&&t instanceof q._ContentSetter||(t=this._contentSetter=new q._ContentSetter({node:this.containerNode,_onError:x.hitch(this,this._onError),onContentError:x.hitch(this,function(y){y=this.onContentError(y);try{this.containerNode.innerHTML=y}catch(D){console.error("Fatal "+
this.id+" could not change content due to "+D.message,D)}})}));var z=x.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:!b.domNode&&this.parseOnLoad,parserScope:this.parserScope,startup:!1,dir:this.dir,lang:this.lang,textDir:this.textDir},this._contentSetterParams||{});z=t.set(x.isObject(b)&&b.domNode?b.domNode:b,z);var C=this;return e(z&&z.then?z:t.parseDeferred,function(){delete C._contentSetterParams;p||(C._started&&(C._startChildren(),C._scheduleLayout()),
C._onLoadHandler(b))})},preprocessContent:function(b){return b},_onError:function(b,p,t){this.onLoadDeferred.reject(p);b=this["on"+b+"Error"].call(this,p);t?console.error(t,p):b&&this._setContent(b,!0)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}})})},"dijit/layout/_ContentPaneResizeMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/lang dojo/query ../registry ../Viewport ./utils".split(" "),
function(G,x,c,r,h,w,q,n,f,g){return x("dijit.layout._ContentPaneResizeMixin",null,{doLayout:!0,isLayoutContainer:!0,startup:function(){if(!this._started){var a=this.getParent();this._childOfLayoutWidget=a&&a.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._isShown()&&this._onShow();this._childOfLayoutWidget||this.own(f.on("resize",w.hitch(this,"resize")))}},_checkIfSingleChild:function(){if(this.doLayout){var a=[],d=!1;q("\x3e *",this.containerNode).some(function(k){var l=
n.byNode(k);l&&l.resize?a.push(l):!/script|link|style/i.test(k.nodeName)&&k.offsetHeight&&(d=!0)});this._singleChild=1!=a.length||d?null:a[0];c.toggle(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)}},resize:function(a,d){this._resizeCalled=!0;this._scheduleLayout(a,d)},_scheduleLayout:function(a,d){this._isShown()?this._layout(a,d):(this._needLayout=!0,this._changeSize=a,this._resultSize=d)},_layout:function(a,d){delete this._needLayout;this._wasShown||!1===this.open||this._onShow();
a&&r.setMarginBox(this.domNode,a);var k=this.containerNode;k===this.domNode?(d=d||{},w.mixin(d,a||{}),"h"in d&&"w"in d||(d=w.mixin(r.getMarginBox(k),d)),this._contentBox=g.marginBox2contentBox(k,d)):this._contentBox=r.getContentBox(k);this._layoutChildren()},_layoutChildren:function(){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||r.getContentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else{a=this.getChildren();for(var d,k=0;d=
a[k++];)d.resize&&d.resize()}},_isShown:function(){if(this._childOfLayoutWidget)return this._resizeCalled&&"open"in this?this.open:this._resizeCalled;if("open"in this)return this.open;var a=this.domNode,d=this.domNode.parentNode;return"none"!=a.style.display&&"hidden"!=a.style.visibility&&!c.contains(a,"dijitHidden")&&d&&d.style&&"none"!=d.style.display},_onShow:function(){this._wasShown=!0;this._needLayout&&this._layout(this._changeSize,this._resultSize);this.inherited(arguments)}})})},"dijit/layout/utils":function(){define(["dojo/_base/array",
"dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/lang"],function(G,x,c,r,h){function w(n,f){var g=n.resize?n.resize(f):c.setMarginBox(n.domNode,f);g?h.mixin(n,g):(h.mixin(n,c.getMarginBox(n.domNode)),h.mixin(n,f))}var q={marginBox2contentBox:function(n,f){var g=r.getComputedStyle(n),a=c.getMarginExtents(n,g),d=c.getPadBorderExtents(n,g);return{l:r.toPixelValue(n,g.paddingLeft),t:r.toPixelValue(n,g.paddingTop),w:f.w-(a.w+d.w),h:f.h-(a.h+d.h)}},layoutChildren:function(n,f,g,a,d){f=
h.mixin({},f);x.add(n,"dijitLayoutContainer");g=G.filter(g,function(k){return"center"!=k.region&&"client"!=k.layoutAlign}).concat(G.filter(g,function(k){return"center"==k.region||"client"==k.layoutAlign}));G.forEach(g,function(k){var l=k.domNode,m=k.region||k.layoutAlign;if(!m)throw Error("No region setting for "+k.id);var e=l.style;e.left=f.l+"px";e.top=f.t+"px";e.position="absolute";var b=x.add;var p=m;p=p.substring(0,1).toUpperCase()+p.substring(1);b.call(x,l,"dijitAlign"+p);l={};a&&a==k.id&&(l["top"==
k.region||"bottom"==k.region?"h":"w"]=d);"leading"==m&&(m=k.isLeftToRight()?"left":"right");"trailing"==m&&(m=k.isLeftToRight()?"right":"left");"top"==m||"bottom"==m?(l.w=f.w,w(k,l),f.h-=k.h,"top"==m?f.t+=k.h:e.top=f.t+f.h+"px"):"left"==m||"right"==m?(l.h=f.h,w(k,l),f.w-=k.w,"left"==m?f.l+=k.w:e.left=f.l+f.w+"px"):"client"!=m&&"center"!=m||w(k,f)})}};h.setObject("dijit.layout.utils",q);return q})},"dojo/html":function(){define("./_base/kernel ./_base/lang ./_base/array ./_base/declare ./dom ./dom-construct ./parser".split(" "),
function(G,x,c,r,h,w,q){var n=0,f={_secureForInnerHtml:function(g){return g.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")},_emptyNode:w.empty,_setNodeContent:function(g,a){w.empty(g);if(a)if("number"==typeof a&&(a=a.toString()),"string"==typeof a&&(a=w.toDom(a,g.ownerDocument)),!a.nodeType&&x.isArrayLike(a))for(var d=a.length,k=0;k<a.length;k=d==a.length?k+1:0)w.place(a[k],g,"last");else w.place(a,g,"last");return g},_ContentSetter:r("dojo.html._ContentSetter",null,{node:"",
content:"",id:"",cleanContent:!1,extractContent:!1,parseContent:!1,parserScope:G._scopeName,startup:!0,constructor:function(g,a){x.mixin(this,g||{});a=this.node=h.byId(this.node||a);this.id||(this.id=["Setter",a?a.id||a.tagName:"",n++].join("_"))},set:function(g,a){void 0!==g&&(this.content=g);"number"==typeof g&&(g=g.toString());a&&this._mixin(a);this.onBegin();this.setContent();return(g=this.onEnd())&&g.then?g:this.node},setContent:function(){var g=this.node;if(!g)throw Error(this.declaredClass+
": setContent given no node");try{g=f._setNodeContent(g,this.content)}catch(d){var a=this.onContentError(d);try{g.innerHTML=a}catch(k){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+k.message,k)}}this.node=g},empty:function(){this.parseDeferred&&(this.parseDeferred.isResolved()||this.parseDeferred.cancel(),delete this.parseDeferred);this.parseResults&&this.parseResults.length&&(c.forEach(this.parseResults,function(g){g.destroy&&g.destroy()}),delete this.parseResults);
w.empty(this.node)},onBegin:function(){var g=this.content;if(x.isString(g)&&(this.cleanContent&&(g=f._secureForInnerHtml(g)),this.extractContent)){var a=g.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);a&&(g=a[1])}this.empty();this.content=g;return this.node},onEnd:function(){this.parseContent&&this._parse();return this.node},tearDown:function(){delete this.parseResults;delete this.parseDeferred;delete this.node;delete this.content},onContentError:function(g){return"Error occurred setting content: "+
g},onExecError:function(g){return"Error occurred executing scripts: "+g},_mixin:function(g){var a={},d;for(d in g)d in a||(this[d]=g[d])},_parse:function(){var g=this.node;try{var a={};c.forEach(["dir","lang","textDir"],function(k){this[k]&&(a[k]=this[k])},this);var d=this;this.parseDeferred=q.parse({rootNode:g,noStart:!this.startup,inherited:a,scope:this.parserScope}).then(function(k){return d.parseResults=k},function(k){d._onError("Content",k,"Error parsing in _ContentSetter#"+d.id)})}catch(k){this._onError("Content",
k,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(g,a,d){g=this["on"+g+"Error"].call(this,a);d?console.error(d,a):g&&f._setNodeContent(this.node,g,!0)}}),set:function(g,a,d){void 0==a&&(console.warn("dojo.html.set: no cont argument provided, using empty string"),a="");"number"==typeof a&&(a=a.toString());return d?(new f._ContentSetter(x.mixin(d,{content:a,node:g}))).set():f._setNodeContent(g,a,!0)}};x.setObject("dojo.html",f);return f})},"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 ./json5 ./query ./on ./ready".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b){function p(y){var D=y._nameCaseMap,B=y.prototype;if(!D||D._extendCnt<C){D=y._nameCaseMap={};for(var u in B)"_"!==u.charAt(0)&&(D[u.toLowerCase()]=u);D._extendCnt=C}return D}function t(y,D){D||(D=G);var B=D._dojoParserCtorMap||(D._dojoParserCtorMap={}),u=y.join();if(!B[u]){for(var E=[],v=0,A=y.length;v<A;v++){var F=y[v];E[E.length]=B[F]=B[F]||c.getObject(F)||~F.indexOf("/")&&D(F)}y=E.shift();B[u]=E.length?y.createSubclass?y.createSubclass(E):y.extend.apply(y,
E):y}return B[u]}new Date("X");var z=k("csp-restrictions")?l.parse:function(y){return eval("("+y+")")};var C=0;f.after(c,"extend",function(){C++},!0);l={_clearCache:function(){C++;_ctorMap={}},_functionFromScript:function(y,D){var B="",u="",E=y.getAttribute(D+"args")||y.getAttribute("args");D=y.getAttribute("with");E=(E||"").split(/\s*,\s*/);D&&D.length&&r.forEach(D.split(/\s*,\s*/),function(v){B+="with("+v+"){";u+="}"});return new Function(E,B+y.innerHTML+u)},instantiate:function(y,D,B){D=D||{};
B=B||{};var u=(B.scope||x._scopeName)+"Type",E="data-"+(B.scope||x._scopeName)+"-",v=E+"type",A=E+"mixins",F=[];r.forEach(y,function(I){var N=u in D?D[u]:I.getAttribute(v)||I.getAttribute(u);if(N){var da=I.getAttribute(A);N=da?[N].concat(da.split(/\s*,\s*/)):[N];F.push({node:I,types:N})}});return this._instantiate(F,D,B)},_instantiate:function(y,D,B,u){function E(v){D._started||B.noStart||r.forEach(v,function(A){"function"!==typeof A.startup||A._started||A.startup()});return v}y=r.map(y,function(v){var A=
v.ctor||t(v.types,B.contextRequire);if(!A)throw Error("Unable to resolve constructor for: '"+v.types.join()+"'");return this.construct(A,v.node,D,B,v.scripts,v.inherited)},this);return u?g(y).then(E):E(y)},construct:function(y,D,B,u,E,v){function A(Y){W&&c.setObject(W,Y);for(na=0;na<Ca.length;na++)f[Ca[na].advice||"after"](Y,Ca[na].method,c.hitch(Y,Ca[na].func),!0);for(na=0;na<oa.length;na++)oa[na].call(Y);for(na=0;na<qa.length;na++)Y.watch(qa[na].prop,qa[na].func);for(na=0;na<L.length;na++)e(Y,L[na].event,
L[na].func);return Y}var F=y&&y.prototype;u=u||{};var I={};u.defaults&&c.mixin(I,u.defaults);v&&c.mixin(I,v);if(k("dom-attributes-explicit"))var N=D.attributes;else k("dom-attributes-specified-flag")?N=r.filter(D.attributes,function(Y){return Y.specified}):(v=(/^input$|^img$/i.test(D.nodeName)?D:D.cloneNode(!1)).outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,""),N=r.map(v.split(/\s+/),function(Y){var ca=Y.toLowerCase();return{name:Y,value:"LI"==
D.nodeName&&"value"==Y||"enctype"==ca?D.getAttribute(ca):D.getAttributeNode(ca).value}}));var da=u.scope||x._scopeName;v="data-"+da+"-";var ba={};"dojo"!==da&&(ba[v+"props"]="data-dojo-props",ba[v+"type"]="data-dojo-type",ba[v+"mixins"]="data-dojo-mixins",ba[da+"type"]="dojotype",ba[v+"id"]="data-dojo-id");var na=0,xa;da=[];for(var W,la;xa=N[na++];){var ha=xa.name,sa=ha.toLowerCase();xa=xa.value;switch(ba[sa]||sa){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;case "data-dojo-props":la=
xa;break;case "data-dojo-id":case "jsid":W=xa;break;case "data-dojo-attach-point":case "dojoattachpoint":I.dojoAttachPoint=xa;break;case "data-dojo-attach-event":case "dojoattachevent":I.dojoAttachEvent=xa;break;case "class":I["class"]=D.className;break;case "style":I.style=D.style&&D.style.cssText;break;default:if(ha in F||(ha=p(y)[sa]||ha),ha in F)switch(typeof F[ha]){case "string":I[ha]=xa;break;case "number":I[ha]=xa.length?Number(xa):NaN;break;case "boolean":I[ha]="false"!=xa.toLowerCase();break;
case "function":""===xa||-1!=xa.search(/[^\w\.]+/i)?I[ha]=new Function(xa):I[ha]=c.getObject(xa,!1)||new Function(xa);da.push(ha);break;default:sa=F[ha];try{I[ha]=sa&&"length"in sa?xa?xa.split(/\s*,\s*/):[]:sa instanceof Date?""==xa?new Date(""):"now"==xa?new Date:a.fromISOString(xa):sa instanceof n?x.baseUrl+xa:z(xa)}catch(Y){console.error(Y)}}else I[ha]=xa}}for(N=0;N<da.length;N++)ba=da[N].toLowerCase(),D.removeAttribute(ba),D[ba]=null;if(la)try{la=z.call(u.propsThis,"{"+la+"}"),c.mixin(I,la)}catch(Y){throw Error(Y.toString()+
" in data-dojo-props\x3d'"+la+"'");}c.mixin(I,B);E||(E=y&&(y._noScript||F._noScript)?[]:m("\x3e script[type^\x3d'dojo/']",D));var Ca=[],oa=[],qa=[],L=[];if(E)for(na=0;na<E.length;na++)ba=E[na],D.removeChild(ba),B=ba.getAttribute(v+"event")||ba.getAttribute("event"),u=ba.getAttribute(v+"prop"),la=ba.getAttribute(v+"method"),da=ba.getAttribute(v+"advice"),N=ba.getAttribute("type"),ba=this._functionFromScript(ba,v),B?"dojo/connect"==N?Ca.push({method:B,func:ba}):"dojo/on"==N?L.push({event:B,func:ba}):
I[B]=ba:"dojo/aspect"==N?Ca.push({method:la,advice:da,func:ba}):"dojo/watch"==N?qa.push({prop:u,func:ba}):oa.push(ba);y=(E=y.markupFactory||F.markupFactory)?E(I,D,y):new y(I,D);return y.then?y.then(A):A(y)},scan:function(y,D){function B(sa){if(!sa.inherited){sa.inherited={};var Ca=sa.node,oa=B(sa.parent);Ca={dir:Ca.getAttribute("dir")||oa.dir,lang:Ca.getAttribute("lang")||oa.lang,textDir:Ca.getAttribute(N)||oa.textDir};for(var qa in Ca)Ca[qa]&&(sa.inherited[qa]=Ca[qa])}return sa.inherited}var u=[],
E=[],v={},A=(D.scope||x._scopeName)+"Type",F="data-"+(D.scope||x._scopeName)+"-",I=F+"type",N=F+"textdir";F+="mixins";var da=y.firstChild,ba=D.inherited;if(!ba){ba=function qa(Ca,oa){return Ca.getAttribute&&Ca.getAttribute(oa)||Ca.parentNode&&qa(Ca.parentNode,oa)};ba={dir:ba(y,"dir"),lang:ba(y,"lang"),textDir:ba(y,N)};for(var na in ba)ba[na]||delete ba[na]}na={inherited:ba};for(var xa,W;;)if(da)if(1!=da.nodeType)da=da.nextSibling;else if(xa&&"script"==da.nodeName.toLowerCase())(ba=da.getAttribute("type"))&&
/^dojo\/\w/i.test(ba)&&xa.push(da),da=da.nextSibling;else if(W)da=da.nextSibling;else if(ba=da.getAttribute(I)||da.getAttribute(A),y=da.firstChild,ba||y&&(3!=y.nodeType||y.nextSibling)){W=null;if(ba){var la=da.getAttribute(F);xa=la?[ba].concat(la.split(/\s*,\s*/)):[ba];try{W=t(xa,D.contextRequire)}catch(sa){}W||r.forEach(xa,function(sa){~sa.indexOf("/")&&!v[sa]&&(v[sa]=!0,E[E.length]=sa)});la=W&&!W.prototype._noScript?[]:null;na={types:xa,ctor:W,parent:na,node:da,scripts:la};na.inherited=B(na);u.push(na)}else na=
{node:da,scripts:xa,parent:na};xa=la;W=da.stopParser||W&&W.prototype.stopParser&&!D.template;da=y}else da=da.nextSibling;else{if(!na||!na.node)break;da=na.node.nextSibling;W=!1;na=na.parent;xa=na.scripts}var ha=new d;E.length?(k("dojo-debug-messages")&&console.warn("WARNING: Modules being Auto-Required: "+E.join(", ")),(D.contextRequire||G)(E,function(){ha.resolve(r.filter(u,function(sa){if(!sa.ctor)try{sa.ctor=t(sa.types,D.contextRequire)}catch(qa){}for(var Ca=sa.parent;Ca&&!Ca.types;)Ca=Ca.parent;
var oa=sa.ctor&&sa.ctor.prototype;sa.instantiateChildren=!(oa&&oa.stopParser&&!D.template);sa.instantiate=!Ca||Ca.instantiate&&Ca.instantiateChildren;return sa.instantiate}))})):ha.resolve(u);return ha.promise},_require:function(y,D){y=z("{"+y.innerHTML+"}");var B=[],u=[],E=new d;D=D&&D.contextRequire||G;for(var v in y)B.push(v),u.push(y[v]);D(u,function(){for(var A=0;A<B.length;A++)c.setObject(B[A],arguments[A]);E.resolve(arguments)});return E.promise},_scanAmd:function(y,D){var B=new d,u=B.promise;
B.resolve(!0);var E=this;m("script[type\x3d'dojo/require']",y).forEach(function(v){u=u.then(function(){return E._require(v,D)});v.parentNode.removeChild(v)});return u},parse:function(y,D){!y||"string"==typeof y||"nodeType"in y||(D=y,y=D.rootNode);var B=y?w.byId(y):q.body();D=D||{};var u=D.template?{template:!0}:{},E=[],v=this;y=this._scanAmd(B,D).then(function(){return v.scan(B,D)}).then(function(A){return v._instantiate(A,u,D,!0)}).then(function(A){return E=E.concat(A)}).otherwise(function(A){console.error("dojo/parser::parse() error",
A);throw A;});c.mixin(E,y);return E}};x.parser=l;h.parseOnLoad&&b(100,l,"parse");return l})},"dojo/_base/url":function(){define(["./kernel"],function(G){var x=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),c=RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),r=function(){for(var h=arguments,w=[h[0]],q=1;q<h.length;q++)if(h[q]){var n=new r(h[q]+"");w=new r(w[0]+"");if(""==n.path&&!n.scheme&&!n.authority&&!n.query)null!=n.fragment&&(w.fragment=n.fragment),
n=w;else if(!n.scheme&&(n.scheme=w.scheme,!n.authority&&(n.authority=w.authority,"/"!=n.path.charAt(0)))){w=(w.path.substring(0,w.path.lastIndexOf("/")+1)+n.path).split("/");for(var f=0;f<w.length;f++)"."==w[f]?f==w.length-1?w[f]="":(w.splice(f,1),f--):0<f&&(1!=f||""!=w[0])&&".."==w[f]&&".."!=w[f-1]&&(f==w.length-1?(w.splice(f,1),w[f-1]=""):(w.splice(f-1,2),f-=2));n.path=w.join("/")}w=[];n.scheme&&w.push(n.scheme,":");n.authority&&w.push("//",n.authority);w.push(n.path);n.query&&w.push("?",n.query);
n.fragment&&w.push("#",n.fragment)}this.uri=w.join("");h=this.uri.match(x);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(c),this.user=h[3]||null,this.password=h[4]||null,this.host=h[6]||h[7],this.port=h[9]||null)};r.prototype.toString=function(){return this.uri};return G._Url=r})},"dojo/promise/all":function(){define(["../_base/array","../_base/lang",
"../Deferred","../when"],function(G,x,c,r){var h=G.some;return function(w){var q,n;x.isArray(w)?n=w:w&&"object"===typeof w&&(q=w);var f=[];if(q){n=[];for(var g in q)Object.hasOwnProperty.call(q,g)&&(f.push(g),n.push(q[g]));var a={}}else n&&(a=[]);if(!n||!n.length)return(new c).resolve(a);var d=new c;d.promise.always(function(){a=f=null});var k=n.length;h(n,function(l,m){q||f.push(m);r(l,function(e){d.isFulfilled()||(a[f[m]]=e,0===--k&&d.resolve(a))},d.reject);return d.isFulfilled()});return d.promise}})},
"dojo/date/stamp":function(){define(["../_base/lang","../_base/array"],function(G,x){var c={};G.setObject("dojo.date.stamp",c);c.fromISOString=function(r,h){c._isoRegExp||(c._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/);var w=c._isoRegExp.exec(r);r=null;if(w){w.shift();w[1]&&w[1]--;w[6]&&(w[6]*=1E3);h&&(h=new Date(h),x.forEach(x.map("FullYear Month Date Hours Minutes Seconds Milliseconds".split(" "),function(f){return h["get"+
f]()}),function(f,g){w[g]=w[g]||f}));r=new Date(w[0]||1970,w[1]||0,w[2]||1,w[3]||0,w[4]||0,w[5]||0,w[6]||0);100>w[0]&&r.setFullYear(w[0]||1970);var q=0,n=w[7]&&w[7].charAt(0);"Z"!=n&&(q=60*(w[8]||0)+(Number(w[9])||0),"-"!=n&&(q*=-1));n&&(q-=r.getTimezoneOffset());q&&r.setTime(r.getTime()+6E4*q)}return r};c.toISOString=function(r,h){var w=function(g){return 10>g?"0"+g:g};h=h||{};var q=[],n=h.zulu?"getUTC":"get",f="";"time"!=h.selector&&(f=r[n+"FullYear"](),f=["0000".substr((f+"").length)+f,w(r[n+"Month"]()+
1),w(r[n+"Date"]())].join("-"));q.push(f);"date"!=h.selector&&(f=[w(r[n+"Hours"]()),w(r[n+"Minutes"]()),w(r[n+"Seconds"]())].join(":"),n=r[n+"Milliseconds"](),h.milliseconds&&(f+="."+(100>n?"0":"")+w(n)),h.zulu?f+="Z":"time"!=h.selector&&(r=r.getTimezoneOffset(),h=Math.abs(r),f+=(0<r?"-":"+")+w(Math.floor(h/60))+":"+w(h%60)),q.push(f));return q.join("T")};return c})},"dojo/json5":function(){define(["./json5/parse"],function(G){return{parse:G}})},"dojo/json5/parse":function(){define(["../string","./util"],
function(G,x){function c(ba,na,xa){var W=ba[na];if(null!=W&&"object"===typeof W)for(var la in W){var ha=c(W,la,xa);void 0===ha?delete W[la]:W[la]=ha}return xa.call(ba,na,W)}function r(){if(b[z])return G.fromCodePoint(G.codePointAt(b,z))}function h(){var ba=r();"\n"===ba?(C++,y=0):ba?y+=ba.length:y++;ba&&(z+=ba.length);return ba}function w(ba,na){return{type:ba,value:na,line:C,column:y}}function q(ba){for(var na=0;na<ba.length;na++){var xa=ba[na];if(r()!==xa)throw d(h());h()}}function n(){switch(r()){case "b":return h(),
"\b";case "f":return h(),"\f";case "n":return h(),"\n";case "r":return h(),"\r";case "t":return h(),"\t";case "v":return h(),"\v";case "0":h();if(x.isDigit(r()))throw d(h());return"\x00";case "x":h();var ba="",na=r();if(!x.isHexDigit(na))throw d(h());ba+=h();na=r();if(!x.isHexDigit(na))throw d(h());ba+=h();return G.fromCodePoint(parseInt(ba,16));case "u":return h(),f();case "\n":case "\u2028":case "\u2029":return h(),"";case "\r":return h(),"\n"===r()&&h(),"";case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":throw d(h());
case void 0:throw d(h());}return h()}function f(){for(var ba="",na=4;0<na--;){var xa=r();if(!x.isHexDigit(xa))throw d(h());ba+=h()}return G.fromCodePoint(parseInt(ba,16))}function g(){switch(D.type){case "punctuator":switch(D.value){case "{":var ba={};break;case "[":ba=[]}break;case "null":case "boolean":case "numeric":case "string":ba=D.value}if(void 0===u)u=ba;else{var na=t[t.length-1];Array.isArray(na)?na.push(ba):na[B]=ba}null!==ba&&"object"===typeof ba?(t.push(ba),p=Array.isArray(ba)?"beforeArrayValue":
"beforePropertyName"):(ba=t[t.length-1],p=null==ba?"end":Array.isArray(ba)?"afterArrayValue":"afterPropertyValue")}function a(){t.pop();var ba=t[t.length-1];p=null==ba?"end":Array.isArray(ba)?"afterArrayValue":"afterPropertyValue"}function d(ba){return void 0===ba?e("JSON5: invalid end of input at "+C+":"+y):e("JSON5: invalid character '"+m(ba)+"' at "+C+":"+y)}function k(){return e("JSON5: invalid end of input at "+C+":"+y)}function l(){y-=5;return e("JSON5: invalid identifier character at "+C+":"+
y)}function m(ba){var na={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};return na[ba]?na[ba]:" ">ba?(ba=ba.charCodeAt(0).toString(16),"\\x"+("00"+ba).substring(ba.length)):ba}function e(ba){ba=new SyntaxError(ba);ba.lineNumber=C;ba.columnNumber=y;return ba}var b,p,t,z,C,y,D,B,u,E,v,A,F,I,N={"default":function(){switch(I){case "\t":case "\v":case "\f":case " ":case "\u00a0":case "\ufeff":case "\n":case "\r":case "\u2028":case "\u2029":h();
return;case "/":h();E="comment";return;case void 0:return h(),w("eof")}if(x.isSpaceSeparator(I))h();else return N[p]()},comment:function(){switch(I){case "*":h();E="multiLineComment";return;case "/":h();E="singleLineComment";return}throw d(h());},multiLineComment:function(){switch(I){case "*":h();E="multiLineCommentAsterisk";return;case void 0:throw d(h());}h()},multiLineCommentAsterisk:function(){switch(I){case "*":h();return;case "/":h();E="default";return;case void 0:throw d(h());}h();E="multiLineComment"},
singleLineComment:function(){switch(I){case "\n":case "\r":case "\u2028":case "\u2029":h();E="default";return;case void 0:return h(),w("eof")}h()},value:function(){switch(I){case "{":case "[":return w("punctuator",h());case "n":return h(),q("ull"),w("null",null);case "t":return h(),q("rue"),w("boolean",!0);case "f":return h(),q("alse"),w("boolean",!1);case "-":case "+":"-"===h()&&(F=-1);E="sign";return;case ".":v=h();E="decimalPointLeading";return;case "0":v=h();E="zero";return;case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":v=
h();E="decimalInteger";return;case "I":return h(),q("nfinity"),w("numeric",Infinity);case "N":return h(),q("aN"),w("numeric",NaN);case '"':case "'":A='"'===h();v="";E="string";return}throw d(h());},identifierNameStartEscape:function(){if("u"!==I)throw d(h());h();var ba=f();switch(ba){case "$":case "_":break;default:if(!x.isIdStartChar(ba))throw l();}v+=ba;E="identifierName"},identifierName:function(){switch(I){case "$":case "_":case "\u200c":case "\u200d":v+=h();return;case "\\":h();E="identifierNameEscape";
return}if(x.isIdContinueChar(I))v+=h();else return w("identifier",v)},identifierNameEscape:function(){if("u"!==I)throw d(h());h();var ba=f();switch(ba){case "$":case "_":case "\u200c":case "\u200d":break;default:if(!x.isIdContinueChar(ba))throw l();}v+=ba;E="identifierName"},sign:function(){switch(I){case ".":v=h();E="decimalPointLeading";return;case "0":v=h();E="zero";return;case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":v=h();E="decimalInteger";return;case "I":return h(),
q("nfinity"),w("numeric",Infinity*F);case "N":return h(),q("aN"),w("numeric",NaN)}throw d(h());},zero:function(){switch(I){case ".":v+=h();E="decimalPoint";return;case "e":case "E":v+=h();E="decimalExponent";return;case "x":case "X":v+=h();E="hexadecimal";return}return w("numeric",0*F)},decimalInteger:function(){switch(I){case ".":v+=h();E="decimalPoint";return;case "e":case "E":v+=h();E="decimalExponent";return}if(x.isDigit(I))v+=h();else return w("numeric",F*Number(v))},decimalPointLeading:function(){if(x.isDigit(I))v+=
h(),E="decimalFraction";else throw d(h());},decimalPoint:function(){switch(I){case "e":case "E":v+=h();E="decimalExponent";return}if(x.isDigit(I))v+=h(),E="decimalFraction";else return w("numeric",F*Number(v))},decimalFraction:function(){switch(I){case "e":case "E":v+=h();E="decimalExponent";return}if(x.isDigit(I))v+=h();else return w("numeric",F*Number(v))},decimalExponent:function(){switch(I){case "+":case "-":v+=h();E="decimalExponentSign";return}if(x.isDigit(I))v+=h(),E="decimalExponentInteger";
else throw d(h());},decimalExponentSign:function(){if(x.isDigit(I))v+=h(),E="decimalExponentInteger";else throw d(h());},decimalExponentInteger:function(){if(x.isDigit(I))v+=h();else return w("numeric",F*Number(v))},hexadecimal:function(){if(x.isHexDigit(I))v+=h(),E="hexadecimalInteger";else throw d(h());},hexadecimalInteger:function(){if(x.isHexDigit(I))v+=h();else return w("numeric",F*Number(v))},string:function(){switch(I){case "\\":h();v+=n();return;case '"':if(A)return h(),w("string",v);v+=h();
return;case "'":if(!A)return h(),w("string",v);v+=h();return;case "\n":case "\r":throw d(h());case "\u2028":case "\u2029":console.warn("JSON5: '"+m(I)+"' in strings is not valid ECMAScript; consider escaping");break;case void 0:throw d(h());}v+=h()},start:function(){switch(I){case "{":case "[":return w("punctuator",h())}E="value"},beforePropertyName:function(){switch(I){case "$":case "_":v=h();E="identifierName";return;case "\\":h();E="identifierNameStartEscape";return;case "}":return w("punctuator",
h());case '"':case "'":A='"'===h();E="string";return}if(x.isIdStartChar(I))v+=h(),E="identifierName";else throw d(h());},afterPropertyName:function(){if(":"===I)return w("punctuator",h());throw d(h());},beforePropertyValue:function(){E="value"},afterPropertyValue:function(){switch(I){case ",":case "}":return w("punctuator",h())}throw d(h());},beforeArrayValue:function(){if("]"===I)return w("punctuator",h());E="value"},afterArrayValue:function(){switch(I){case ",":case "]":return w("punctuator",h())}throw d(h());
},end:function(){throw d(h());}},da={start:function(){if("eof"===D.type)throw k();g()},beforePropertyName:function(){switch(D.type){case "identifier":case "string":B=D.value;p="afterPropertyName";break;case "punctuator":a();break;case "eof":throw k();}},afterPropertyName:function(){if("eof"===D.type)throw k();p="beforePropertyValue"},beforePropertyValue:function(){if("eof"===D.type)throw k();g()},beforeArrayValue:function(){if("eof"===D.type)throw k();"punctuator"===D.type&&"]"===D.value?a():g()},
afterPropertyValue:function(){if("eof"===D.type)throw k();switch(D.value){case ",":p="beforePropertyName";break;case "}":a()}},afterArrayValue:function(){if("eof"===D.type)throw k();switch(D.value){case ",":p="beforeArrayValue";break;case "]":a()}},end:function(){}};return function(ba,na){b=String(ba);p="start";t=[];z=0;C=1;y=0;u=B=D=void 0;do{a:for(E="default",v="",A=!1,F=1;;)if(I=r(),ba=N[E]()){D=ba;break a}da[p]()}while("eof"!==D.type);return"function"===typeof na?c({"":u},"",na):u}})},"dojo/json5/util":function(){define(["./unicode"],
function(G){return{isSpaceSeparator:function(x){return"string"===typeof x&&G.Space_Separator.test(x)},isIdStartChar:function(x){return"string"===typeof x&&("a"<=x&&"z">=x||"A"<=x&&"Z">=x||"$"===x||"_"===x||G.ID_Start.test(x))},isIdContinueChar:function(x){return"string"===typeof x&&("a"<=x&&"z">=x||"A"<=x&&"Z">=x||"0"<=x&&"9">=x||"$"===x||"_"===x||"\u200c"===x||"\u200d"===x||G.ID_Continue.test(x))},isDigit:function(x){return"string"===typeof x&&/[0-9]/.test(x)},isHexDigit:function(x){return"string"===
typeof x&&/[0-9A-Fa-f]/.test(x)}}})},"dojo/json5/unicode":function(){define({Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,
ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/})},
"dijit/_DialogMixin":function(){define(["dojo/_base/declare","./a11y"],function(G,x){return G("dijit._DialogMixin",null,{actionBarTemplate:"",execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var c=x._getTabNavigable(this.domNode);this._firstFocusItem=c.lowest||c.first||this.closeButtonNode||this.domNode;this._lastFocusItem=c.last||c.highest||this._firstFocusItem}})})},"dijit/form/_FormMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/on dojo/window".split(" "),
function(G,x,c,r,h,w){return x("dijit.form._FormMixin",null,{state:"",_getDescendantFormWidgets:function(q){var n=[];G.forEach(q||this.getChildren(),function(f){"value"in f?n.push(f):n=n.concat(this._getDescendantFormWidgets(f.getChildren()))},this);return n},reset:function(){G.forEach(this._getDescendantFormWidgets(),function(q){q.reset&&q.reset()})},validate:function(){var q=!1;return G.every(G.map(this._getDescendantFormWidgets(),function(n){n._hasBeenBlurred=!0;var f=n.disabled||!n.validate||
n.validate();f||q||(w.scrollIntoView(n.containerNode||n.domNode),n.focus(),q=!0);return f}),function(n){return n})},setValues:function(q){c.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",q)},_setValueAttr:function(q){var n={};G.forEach(this._getDescendantFormWidgets(),function(d){d.name&&(n[d.name]||(n[d.name]=[])).push(d)});for(var f in n)if(n.hasOwnProperty(f)){var g=n[f],a=r.getObject(f,!1,q);void 0!==a&&(a=[].concat(a),
"boolean"==typeof g[0].checked?G.forEach(g,function(d){d.set("value",-1!=G.indexOf(a,d._get("value")))}):g[0].multiple?g[0].set("value",a):G.forEach(g,function(d,k){d.set("value",a[k])}))}},getValues:function(){c.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var q={};G.forEach(this._getDescendantFormWidgets(),function(n){var f=n.name;if(f&&!n.disabled){var g=n.get("value");"boolean"==typeof n.checked?
/Radio/.test(n.declaredClass)?!1!==g?r.setObject(f,g,q):(g=r.getObject(f,!1,q),void 0===g&&r.setObject(f,null,q)):(n=r.getObject(f,!1,q),n||(n=[],r.setObject(f,n,q)),!1!==g&&n.push(g)):(n=r.getObject(f,!1,q),"undefined"!=typeof n?r.isArray(n)?n.push(g):r.setObject(f,[n,g],q):r.setObject(f,g,q))}});return q},isValid:function(){return""==this.state},onValidStateChange:function(){},_getState:function(){var q=G.map(this._descendants,function(n){return n.get("state")||""});return 0<=G.indexOf(q,"Error")?
"Error":0<=G.indexOf(q,"Incomplete")?"Incomplete":""},disconnectChildren:function(){},connectChildren:function(q){this._descendants=this._getDescendantFormWidgets();G.forEach(this._descendants,function(n){n._started||n.startup()});q||this._onChildChange()},_onChildChange:function(q){q&&"state"!=q&&"disabled"!=q||this._set("state",this._getState());q&&"value"!=q&&"disabled"!=q&&"checked"!=q||(this._onChangeDelayTimer&&this._onChangeDelayTimer.remove(),this._onChangeDelayTimer=this.defer(function(){delete this._onChangeDelayTimer;
this._set("value",this.get("value"))},10))},startup:function(){this.inherited(arguments);this._descendants=this._getDescendantFormWidgets();this.value=this.get("value");this.state=this._getState();var q=this;this.own(h(this.containerNode,"attrmodified-state, attrmodified-disabled, attrmodified-value, attrmodified-checked",function(n){n.target!=q.domNode&&q._onChildChange(n.type.replace("attrmodified-",""))}));this.watch("state",function(n,f,g){this.onValidStateChange(""==g)})},destroy:function(){this.inherited(arguments)}})})},
"esri/main":function(){define(["./kernel","dojo/i18n!./nls/jsapi","./config","./sniff"],function(G,x){G.bundle=x;return G})},"esri/kernel":function(){define(["dojo/_base/kernel","dojo/_base/config","dojo/has"],function(G,x,c){var r=function(){return this}(),h=r.location,w=h.pathname,q=h.protocol;h={version:"3.44",_appBaseUrl:q+"//"+h.host+w.substring(0,w.lastIndexOf(w.split("/")[w.split("/").length-1]))};x.noGlobals||(r.esri=h);G.isAsync||c.add("extend-esri",1);(h.dijit=h.dijit||{})._arcgisUrl=("http:"===
q||"https:"===q?q:"http:")+"//www.arcgis.com/sharing/rest";return h})},"esri/config":function(){define(["dojo/_base/config","dojo/topic","dojo/has","./kernel"],function(G,x,c,r){var h=function(){return this}(),w={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,zoomAnimationThrottled:!1,panDuration:350,panRate:25,logoLink:"http://www.esri.com"},autoSpatialIndexing:h.Worker&&!1,io:{errorHandler:function(q,n){x.publish("esri.Error",[q])},proxyUrl:null,alwaysUseProxy:!1,useCors:"with-credentials",corsEnabledServers:[/^https?:\/\/.+\.arcgis\.com(\/|$)/i,"server.arcgisonline.com","services.arcgisonline.com",
"www.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","tiles.arcgis.com","tiles1.arcgis.com","tiles2.arcgis.com","tiles3.arcgis.com","tiles4.arcgis.com","basemaps.arcgis.com","basemapsbeta.arcgis.com","basemaps-api.arcgis.com","elevation3d.arcgis.com","services.arcgis.com","services1.arcgis.com","services2.arcgis.com","services3.arcgis.com","services4.arcgis.com","services5.arcgis.com","services6.arcgis.com","services7.arcgis.com","services8.arcgis.com","services9.arcgis.com","cdn.arcgis.com",
"cdn-a.arcgis.com","cdn-b.arcgis.com","static.arcgis.com","utility.arcgis.com","utility.arcgisonline.com","geocode.arcgis.com","geoenrich.arcgis.com","qaext.arcgis.com","staticqa.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","localvtiles.arcgis.com","staticdev.arcgis.com","tilesdevext.arcgis.com","elevation3ddev.arcgis.com","servicesdev.arcgis.com",
"servicesdev1.arcgis.com","servicesdev2.arcgis.com","servicesdev3.arcgis.com","geocodedev.arcgis.com","geoenrichdev.arcgis.com","basemapsdev.arcgis.com","basemapsdev-api.arcgis.com","basemapsbetadev.arcgis.com"],corsDetection:h.cordova?!1:!0,corsDetectionTimeout:15,corsStatus:{},crossOriginNoCorsDomains:null,webTierAuthServers:[],proxyRules:[],postLength:2E3,timeout:6E4,useWorkers:"on-request",maxRequestWorkers:5,httpsDomains:"arcgis.com arcgisonline.com esrikr.com premiumservices.blackbridge.com esripremium.accuweather.com gbm.digitalglobe.com firstlook.digitalglobe.com msi.digitalglobe.com".split(" ")},
workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}}}};c("extend-esri")&&(r.config=w);G.noGlobals||(h.esriConfig=w);return w})},"esri/sniff":function(){define(["dojo/_base/sniff","dojo/global","./kernel"],function(G,x,c){var r=G("ff"),h=G("ie"),w=void 0===h&&7<=G("trident"),q=G("edge"),n=G("webkit"),f=G("opera"),g=G("chrome"),a=G("safari"),d=navigator.userAgent,k;(k=d.match(/(iPhone|iPad|CPU)\s+OS\s+(\d+_\d+)/i))&&G.add("esri-iphone",parseFloat(k[2].replace("_",".")));(k=d.match(/Android\s+(\d+(\.\d+)*)/i))&&
G.add("esri-android",parseFloat(k[1]));(k=d.match(/Fennec\/(\d+\.\d+)/i))&&G.add("esri-fennec",parseFloat(k[1]));0<=d.indexOf("BlackBerry")&&0<=d.indexOf("WebKit")&&G.add("esri-blackberry",1);G.add("esri-touch",G("esri-iphone")||G("esri-android")||G("esri-blackberry")||6<=G("esri-fennec")||(r||n)&&(document.createTouch||"ontouchstart"in x||x.TouchEvent&&0<navigator.maxTouchPoints)?!0:!1);(k=d.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i))&&G.add("esri-mobile",!!k);G.add("esri-pointer",
!r&&(navigator.pointerEnabled||navigator.msPointerEnabled||!!x.PointerEvent));c._getDOMAccessor=function(m){var e="";r?e="Moz":n?e="Webkit":h?e="ms":f&&(e="O");return e+m.charAt(0).toUpperCase()+m.substr(1)};G.add("esri-phonegap",!!x.cordova);G.add("esri-cors",G("esri-phonegap")||x.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest);G.add("esri-file-upload",x.FormData&&x.FileList?!0:!1);G.add("esri-script-sandbox",function(){return"MessageChannel"in x&&"HTMLIFrameElement"in x&&"sandbox"in HTMLIFrameElement.prototype});
G.add("esri-secure-context",function(){if("isSecureContext"in x)return x.isSecureContext;if(x.location&&x.location.origin)return 0===x.location.origin.indexOf("https:")});G.add("esri-wasm","WebAssembly"in x);G.add("esri-workers",x.Worker?!0:!1);G.add("esri-featurelayer-webgl",!1);if(d=G("esri-featurelayer-webgl")){var l=G("esri-mobile");k=l?1:2;l=l?1:3;"object"===typeof d?(d.maxDrillLevel=null==d.maxDrillLevel?k:d.maxDrillLevel,d.maxRecordCountFactor=null==d.maxRecordCountFactor?l:d.maxRecordCountFactor,
d.enablePBFQuery=null==d.enablePBFQuery?!0:d.enablePBFQuery):G.add("esri-featurelayer-webgl",{maxDrillLevel:k,maxRecordCountFactor:l,enablePBFQuery:!0},null,!0)}G.add("esri-featurelayer-webgl-labeling",!1);G.add("esri-pbf",!h||10<=h);G.add("esri-featurelayer-pbf",!0);G.add("esri-transforms",w||q||9<=h||3.5<=r||4<=g||3.1<=a||10.5<=f||3.2<=G("esri-iphone")||2.1<=G("esri-android"));G.add("esri-transitions",w||q||10<=h||4<=r||4<=g||3.1<=a||10.5<=f||3.2<=G("esri-iphone")||2.1<=G("esri-android"));G.add("esri-transforms3d",
w||q||10<=r||12<=g||4<=a||3.2<=G("esri-iphone")||3<=G("esri-android"));G.add("esri-url-encodes-apostrophe",function(){if(!x.document)return!1;var m=x.document.createElement("a");m.href="?'";return-1<m.href.indexOf("?%27")});3>G("esri-android")&&(G.add("esri-transforms",!1,!1,!0),G.add("esri-transitions",!1,!1,!0),G.add("esri-transforms3d",!1,!1,!0));G.add("esri-will-change",G("esri-transforms")&&(52<=g||11.1<=a));c._css=function(m){var e=G("esri-transforms3d");void 0!==m&&null!==m?e=m:e&&(g||a&&!G("esri-iphone"))&&
(e=!1);var b=e?"translate3d(":"translate(",p=e?g?",-1px)":",0px)":")",t=e?"scale3d(":"scale(",z=e?",1)":")",C=e?"rotate3d(0,0,1,":"rotate(",y=e?"matrix3d(":"matrix(",D=e?",0,0,":",",B=e?",0,0,0,0,1,0,":",",u=e?",0,1)":")";return{names:{transition:n&&"-webkit-transition"||r&&"MozTransition"||f&&"OTransition"||h&&"msTransition"||"transition",transform:n&&"-webkit-transform"||r&&"MozTransform"||f&&"OTransform"||h&&"msTransform"||"transform",transformName:n&&"-webkit-transform"||r&&"-moz-transform"||
f&&"-o-transform"||h&&"-ms-transform"||"transform",origin:n&&"-webkit-transform-origin"||r&&"MozTransformOrigin"||f&&"OTransformOrigin"||h&&"msTransformOrigin"||"transformOrigin",endEvent:n&&"webkitTransitionEnd"||r&&"transitionend"||f&&"oTransitionEnd"||h&&"MSTransitionEnd"||"transitionend"},translate:function(E,v){return b+E+"px,"+v+"px"+p},scale:function(E){return t+E+","+E+z},rotate:function(E){return C+E+"deg)"},matrix:function(E){return y+E.xx+","+E.xy+D+E.yx+","+E.yy+B+E.dx.toFixed(10)+(r&&
59>=r?"px,":",")+E.dy.toFixed(10)+(r&&59>=r?"px":"")+u},getScaleFromMatrix:function(E){if(!E)return 1;E=E.toLowerCase();var v=-1<E.indexOf("matrix3d")?"matrix3d(":"matrix(";return Number(E.substring(v.length,E.indexOf(",")))}}};G("extend-esri")&&(c.isiPhone=G("esri-iphone"),c.isAndroid=G("esri-android"),c.isFennec=G("esri-fennec"),c.isBlackBerry=G("esri-blackberry"),c.isTouchEnabled=G("esri-touch"),c.isPointerEnabled=G("esri-pointer"),c._hasCors=G("esri-cors"),c._hasFileUpload=G("esri-file-upload"),
c._hasTransforms=G("esri-transforms"),c._hasTransitions=G("esri-transitions"),c._has3DTransforms=G("esri-transforms3d"));return G})},"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-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dijit/a11yclick dijit/registry ./kernel ./config ./sniff ./lang ./_coremap ./MapNavigationManager dojo/i18n!./nls/jsapi".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C,y,D,B){var u={up:"panUp",right:"panRight",down:"panDown",left:"panLeft"},E={upperRight:"panUpperRight",lowerRight:"panLowerRight",lowerLeft:"panLowerLeft",upperLeft:"panUpperLeft"},v=r.connect,A=r.disconnect,F=k.create,I=m.set,N=h.hitch,da=l.getMarginBox,ba=x.deprecated,na=h.mixin,xa=0;x=c(y,{declaredClass:"esri.Map",constructor:function(W,la){la=la||{};na(this,{_slider:null,_navDiv:null,_mapParams:na({attributionWidth:.45,slider:!0,nav:!1,logo:!0,
sliderStyle:"small",sliderPosition:"top-left",sliderOrientation:"vertical",autoResize:!0},la)});na(this,{isMapNavigation:null!=la.isMapNavigation?la.isMapNavigation:!0,isDoubleClickZoom:null!=la.isDoubleClickZoom?la.isDoubleClickZoom:!0,isClickRecenter:null!=la.isClickRecenter?la.isClickRecenter:!0,isPan:null!=la.isPan?la.isPan:!0,isRubberBandZoom:null!=la.isRubberBandZoom?la.isRubberBandZoom:!0,isPinchZoom:null!=la.isPinchZoom?la.isPinchZoom:!0,isKeyboardNavigation:null!=la.isKeyboardNavigation?
la.isKeyboardNavigation:!0,isScrollWheel:null!=la.isScrollWheel?la.isScrollWheel:!0,isShiftDoubleClickZoom:!1,isScrollWheelZoom:!1,isPanArrows:!1,isZoomSlider:!1});h.isFunction(p._css)&&(p._css=p._css(this._mapParams.force3DTransforms),this.force3DTransforms=this._mapParams.force3DTransforms);W=z("esri-transforms")&&z("esri-transitions");this.navigationMode=this._mapParams.navigationMode||W&&"css-transforms"||"classic";"css-transforms"!==this.navigationMode||W||(this.navigationMode="classic");this.fadeOnZoom=
C.isDefined(this._mapParams.fadeOnZoom)?this._mapParams.fadeOnZoom:"css-transforms"===this.navigationMode;"css-transforms"!==this.navigationMode&&(this.fadeOnZoom=!1);this.setMapCursor("default");this.smartNavigation=la&&la.smartNavigation;if(!(C.isDefined(this.smartNavigation)||!z("mac")||z("esri-touch")||z("esri-pointer")||3.5>=z("ff"))){var ha=navigator.userAgent.match(/Mac\s+OS\s+X\s+([\d]+)(\.|_)([\d]+)\D/i);ha&&C.isDefined(ha[1])&&C.isDefined(ha[3])&&(W=parseInt(ha[1],10),ha=parseInt(ha[3],
10),this.smartNavigation=10<W||10===W&&6<=ha)}this.showAttribution=C.isDefined(this._mapParams.showAttribution)?this._mapParams.showAttribution:!0;this._onLoadHandler_connect=v(this,"onLoad",this,"_onLoadInitNavsHandler");var sa=F("div",{class:"esriControlsBR"+(this._mapParams.nav?" withPanArrows":"")},this.root);if(this.showAttribution)if(W=h.getObject("esri.dijit.Attribution",!1))this._initAttribution(W,sa);else{var Ca=xa++,oa=this;this._rids&&this._rids.push(Ca);G(["./dijit/Attribution"],function(qa){var L=
oa._rids?w.indexOf(oa._rids,Ca):-1;-1!==L&&(oa._rids.splice(L,1),oa._initAttribution(qa,sa))})}this._mapParams.logo&&(W={},6===z("ie")&&(W.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled\x3d'true', sizingMethod\x3d'crop', src\x3d'"+G.toUrl("./images/map/logo-med.png")+"')"),this._ogol=F("div",{style:W,tabIndex:"0",title:"Esri"},sa),this._setLogoSize(),this._onMapResizeLogo_connect=v(this,"onResize",this,"_setLogoSize"),this._ogol_connect=v(this._ogol,e,this,"_openLogoLink"));this.navigationManager=
new D(this);la&&la.basemap&&(this._onLoadFix=!0,this.setBasemap(la.basemap),this._onLoadFix=!1);if(this.autoResize=this._mapParams.autoResize)la=this._getEnclosingResizableWidget(this.container)||window,W=this.resize,this._rszSignal=n.pausable(la,"resize",W),this._oriSignal=n.pausable(window,"orientationchange",W),f.after(la,"resize",W,!0),this._startResizeTimer()},_startResizeTimer:function(){clearTimeout(this._persistentTimer);this._persistentTimer=setTimeout(this._timedResize,2*this.resizeDelay)},
_getEnclosingResizableWidget:function(W){var la=b.getEnclosingWidget(W);return la?la.resize?la:this._getEnclosingResizableWidget(W.parentNode):la},_setLogoSize:function(){this._ogol&&(25E4>this.root.clientWidth*this.root.clientHeight?(d.remove(this._ogol,"logo-med"),d.add(this._ogol,"logo-sm")):(d.remove(this._ogol,"logo-sm"),d.add(this._ogol,"logo-med")))},_initAttribution:function(W,la){la=F("span",{class:"esriAttribution"},la,"first");I(la,"maxWidth",Math.floor(this.width*this._mapParams.attributionWidth)+
"px");this._connects.push(v(la,e,function(){d.contains(this,"esriAttributionOpen")?d.remove(this,"esriAttributionOpen"):this.scrollWidth>this.clientWidth&&d.add(this,"esriAttributionOpen")}));this.attribution=new W({map:this},la)},_cleanUp:function(){this.disableMapNavigation();this.navigationManager.destroy();var W=this._slider;W&&W.destroy&&!W._destroyed&&W.destroy();W=this._navDiv;var la=this.attribution;W&&k.destroy(W);la&&la.destroy();this._connects.push(this._slider_connect,this._ogol_connect,
this._rszSignal,this._oriSignal);w.forEach(this._connects,A);clearInterval(this._persistentTimer);this.attribution=this.navigationManager=this._rids=this._connects=this._slider_connect=this._ogol_connect=this._rszSignal=this._oriSignal=this._persistentTimer=null;this.inherited("_cleanUp",arguments)},_isPanningOrZooming:function(){return this.__panning||this.__zooming},_canZoom:function(W){var la=this.getLevel();return!this.__tileInfo||!(la===this.getMinZoom()&&0>W||la===this.getMaxZoom()&&0<W)},_onLoadInitNavsHandler:function(){this._evalMapNavigation();
this._createNav();if("small"===this._mapParams.sliderStyle||!this._createSlider)this._createSimpleSlider();else if(this._mapParams.slider){var W=-1!==this._getSliderClass(!0).indexOf("Horizontal");W=[W?"dijit.form.HorizontalSlider":"dijit.form.VerticalSlider",W?"dijit.form.HorizontalRule":"dijit.form.VerticalRule",W?"dijit.form.HorizontalRuleLabels":"dijit.form.VerticalRuleLabels"];if(w.some(W,function(sa){return!h.getObject(sa,!1)})){W=w.map(W,function(sa){return sa.replace(/\./g,"/")});var la=xa++,
ha=this;this._rids&&this._rids.push(la);G(W,function(){var sa=ha._rids?w.indexOf(ha._rids,la):-1;-1!==sa&&(ha._rids.splice(sa,1),ha._createSlider.apply(ha,arguments))})}else W=w.map(W,function(sa){return h.getObject(sa,!1)}),this._createSlider.apply(this,W)}A(this._onLoadHandler_connect)},_createNav:function(){if(this._mapParams.nav){var W,la=d.add,ha=this.id;this._navDiv=F("div",{id:ha+"_navdiv"},this.root);la(this._navDiv,"navDiv");var sa=this.width/2,Ca=this.height/2;for(W in u){var oa=u[W];var qa=
F("div",{id:ha+"_pan_"+W},this._navDiv);la(qa,"fixedPan "+oa);if("up"===W||"down"===W){var L=parseInt(da(qa).w,10)/2;I(qa,{left:sa-L+"px",zIndex:30})}else L=parseInt(da(qa).h,10)/2,I(qa,{top:Ca-L+"px",zIndex:30});this._connects.push(v(qa,"onclick",N(this,this[oa])))}this._onMapResizeNavHandler_connect=v(this,"onResize",this,"_onMapResizeNavHandler");for(W in E)oa=E[W],qa=F("div",{id:ha+"_pan_"+W,style:{zIndex:30}},this._navDiv),la(qa,"fixedPan "+oa),this._connects.push(v(qa,"onclick",N(this,this[oa])));
this.isPanArrows=!0}},_onMapResizeNavHandler:function(W,la,ha){W=this.id;la/=2;ha/=2;var sa=g.byId,Ca;for(Ca in u){var oa=sa(W+"_pan_"+Ca);if("up"===Ca||"down"===Ca){var qa=parseInt(da(oa).w,10)/2;I(oa,"left",la-qa+"px")}else qa=parseInt(da(oa).h,10)/2,I(oa,"top",ha-qa+"px")}},_createSimpleSlider:function(){if(this._mapParams.slider){var W=this._slider=F("div",{id:this.id+"_zoom_slider",class:this._getSliderClass(),style:{zIndex:30}}),la=F("div",{class:"esriSimpleSliderIncrementButton",tabIndex:"0",
role:"button"},W),ha=F("div",{class:"esriSimpleSliderDecrementButton",tabIndex:"0",role:"button"},W);this._addZoomButtonTooltips(la,ha);this._incButton=la;this._decButton=ha;this._simpleSliderZoomHandler(null,null,null,this.getLevel());var sa=B.widgets.zoomSlider;this._addZoomButtonIcon(la,"+",sa.zoomIn);this._addZoomButtonIcon(ha,"\x26minus;",sa.zoomOut);8>z("ie")&&d.add(ha,"dj_ie67Fix");this._connects.push(v(la,e,this,this._simpleSliderChangeHandler));this._connects.push(v(ha,e,this,this._simpleSliderChangeHandler));
(-1<this.getMaxZoom()||-1<this.getMinZoom())&&this._connects.push(v(this,"onZoomEnd",this,this._simpleSliderZoomHandler));10>z("ie")&&g.setSelectable(W,!1);this.root.appendChild(W);this.isZoomSlider=!0}},_simpleSliderChangeHandler:function(W){q.stop(W);W=-1!==W.currentTarget.className.indexOf("IncrementButton")?!0:!1;this._extentUtil({numLevels:W?1:-1})},_simpleSliderZoomHandler:function(W,la,ha,sa){var Ca;W=this._incButton;la=this._decButton;-1<sa&&sa===this.getMaxZoom()?Ca=W:-1<sa&&sa===this.getMinZoom()&&
(Ca=la);Ca?(d.add(Ca,"esriSimpleSliderDisabledButton"),d.remove(Ca===W?la:W,"esriSimpleSliderDisabledButton")):(d.remove(W,"esriSimpleSliderDisabledButton"),d.remove(la,"esriSimpleSliderDisabledButton"))},_getSliderClass:function(W){W=W?"Large":"Simple";var la=this._mapParams.sliderOrientation,ha=this._mapParams.sliderPosition||"";la=la&&"horizontal"===la.toLowerCase()?"esri"+W+"SliderHorizontal":"esri"+W+"SliderVertical";if(ha)switch(ha.toLowerCase()){case "top-left":ha="esri"+W+"SliderTL";break;
case "top-right":ha="esri"+W+"SliderTR";break;case "bottom-left":ha="esri"+W+"SliderBL";break;case "bottom-right":ha="esri"+W+"SliderBR"}return"esri"+W+"Slider "+la+" "+ha},_addZoomButtonIcon:function(W,la,ha){k.create("span",{"aria-hidden":"true",role:"presentation",innerHTML:la},W);k.create("span",{class:"esriIconFallbackText",innerHTML:ha},W)},_addZoomButtonTooltips:function(W,la){var ha=B.widgets.zoomSlider;a.set(W,"title",ha.zoomIn);a.set(la,"title",ha.zoomOut)},_createSlider:function(W,la,ha){if(this._mapParams.slider){var sa=
F("div",{id:this.id+"_zoom_slider"},this.root),Ca=t.defaults.map,oa=this._getSliderClass(!0),qa=-1!==oa.indexOf("Horizontal"),L=this.getNumLevels();if(0<L){var Y,ca,V=this._mapParams.sliderLabels,X=!!V,ja=!1!==V;if(ja){var pa=qa?"bottomDecoration":"rightDecoration";if(!V)for(V=[],Ca=0;Ca<L;Ca++)V[Ca]="";w.forEach([{class:"esriLargeSliderTicks",container:pa,count:L,dijitClass:la},{class:X&&"esriLargeSliderLabels",container:pa,count:L,labels:V,dijitClass:ha}],function(ea){var va=F("div"),M=ea.dijitClass;
delete ea.dijitClass;sa.appendChild(va);M===la?Y=new M(ea,va):ca=new M(ea,va)})}W=this._slider=new W({id:sa.id,class:oa,minimum:this.getMinZoom(),maximum:this.getMaxZoom(),discreteValues:L,value:this.getLevel(),clickSelect:!0,intermediateChanges:!0,style:"z-index:30;"},sa);W.startup();ja&&(Y.startup(),ca.startup());this._slider_connect=v(W,"onChange",this,"_onSliderChangeHandler");this._connects.push(v(this,"onExtentChange",this,"_onExtentChangeSliderHandler"));this._connects.push(v(W._movable,"onFirstMove",
this,"_onSliderMoveStartHandler"))}else{W=this._slider=new W({id:sa.id,class:oa,minimum:0,maximum:2,discreteValues:3,value:1,clickSelect:!0,intermediateChanges:Ca.sliderChangeImmediate,style:"height:50px; z-index:30;"},sa);ha=W.domNode.firstChild.childNodes;for(Ca=1;3>=Ca;Ca++)I(ha[Ca],"visibility","hidden");W.startup();this._slider_connect=v(W,"onChange",this,"_onDynSliderChangeHandler");this._connects.push(v(this,"onExtentChange",this,"_onExtentChangeDynSliderHandler"))}Ca=W.incrementButton;ha=
W.decrementButton;qa?this._addZoomButtonTooltips(Ca,ha):this._addZoomButtonTooltips(ha,Ca);Ca.style.outline="none";ha.style.outline="none";W.sliderHandle.style.outline="none";W._onKeyPress=function(){};if(qa=W._movable){var ta=qa.onMouseDown;qa.onMouseDown=function(ea){9>z("ie")&&1!==ea.button||ta.apply(this,arguments)}}this.isZoomSlider=!0}},_onSliderMoveStartHandler:function(){A(this._slider_connect);A(this._slidermovestop_connect);this._slider_connect=v(this._slider,"onChange",this,"_onSliderChangeDragHandler");
this._slidermovestop_connect=v(this._slider._movable,"onMoveStop",this,"_onSliderMoveEndHandler")},_onSliderChangeDragHandler:function(W){this._extentUtil({targetLevel:W})},_onSliderMoveEndHandler:function(){A(this._slider_connect);A(this._slidermovestop_connect)},_onSliderChangeHandler:function(W){this.setLevel(W)},_updateSliderValue:function(W,la){A(this._slider_connect);var ha=this._slider,sa=ha._onChangeActive;ha._onChangeActive=!1;ha.set("value",W);ha._onChangeActive=sa;this._slider_connect=
v(ha,"onChange",this,la)},_onExtentChangeSliderHandler:function(W,la,ha,sa){A(this._slidermovestop_connect);this._updateSliderValue(sa.level,"_onSliderChangeHandler")},_onDynSliderChangeHandler:function(W){this._extentUtil({numLevels:0<W?1:-1})},_onExtentChangeDynSliderHandler:function(){this._updateSliderValue(1,"_onDynSliderChangeHandler")},_openLogoLink:function(W){window.open(t.defaults.map.logoLink,"_blank");q.stop(W)},enableMapNavigation:function(){this.isMapNavigation||(this.isMapNavigation=
!0,this._evalMapNavigation())},disableMapNavigation:function(){this.isMapNavigation&&(this.isMapNavigation=!1,this._evalMapNavigation())},_evalMapNavigation:function(){this.isMapNavigation?this.navigationManager.enableNavigation():this.navigationManager.disableNavigation()},_evalNavigationFeature:function(W){if(this.isMapNavigation&&this["is"+W])this.navigationManager["enable"+W]();else this.navigationManager["disable"+W]()},enableDoubleClickZoom:function(){this.isDoubleClickZoom||(this.isDoubleClickZoom=
!0,this._evalNavigationFeature("DoubleClickZoom"))},disableDoubleClickZoom:function(){this.isDoubleClickZoom&&(this.isDoubleClickZoom=!1,this._evalNavigationFeature("DoubleClickZoom"))},enableShiftDoubleClickZoom:function(){this.isShiftDoubleClickZoom||(ba(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&&
(ba(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.isClickRecenter=!0,this._evalNavigationFeature("ClickRecenter"))},disableClickRecenter:function(){this.isClickRecenter&&(this.isClickRecenter=!1,this._evalNavigationFeature("ClickRecenter"))},enablePan:function(){this.isPan||
(this.isPan=!0,this._evalNavigationFeature("Pan"))},disablePan:function(){this.isPan&&(this.isPan=!1,this._evalNavigationFeature("Pan"))},enableRubberBandZoom:function(){this.isRubberBandZoom||(this.isRubberBandZoom=!0,this._evalNavigationFeature("RubberBandZoom"))},disableRubberBandZoom:function(){this.isRubberBandZoom&&(this.isRubberBandZoom=!1,this._evalNavigationFeature("RubberBandZoom"))},enablePinchZoom:function(){this.isPinchZoom||(this.isPinchZoom=!0,this._evalNavigationFeature("PinchZoom"))},
disablePinchZoom:function(){this.isPinchZoom&&(this.isPinchZoom=!1,this._evalNavigationFeature("PinchZoom"))},enableKeyboardNavigation:function(){this.isKeyboardNavigation||(this.isKeyboardNavigation=!0,this._evalNavigationFeature("KeyboardNavigation"))},disableKeyboardNavigation:function(){this.isKeyboardNavigation&&(this.isKeyboardNavigation=!1,this._evalNavigationFeature("KeyboardNavigation"))},enableScrollWheel:function(){this.isScrollWheel||(this.isScrollWheel=!0,this._evalNavigationFeature("ScrollWheel"))},
disableScrollWheel:function(){this.isScrollWheel&&(this.isScrollWheel=!1,this._evalNavigationFeature("ScrollWheel"))},enableScrollWheelZoom:function(){this.isScrollWheelZoom||(this.navigationManager.enableScrollWheelZoom(),this.isScrollWheelZoom=!0)},disableScrollWheelZoom:function(){this.isScrollWheelZoom&&(this.navigationManager.disableScrollWheelZoom(),this.isScrollWheelZoom=!1)},enableScrollWheelPan:function(){this.isScrollWheelPan||this.navigationManager.enableScrollWheelPan()},disableScrollWheelPan:function(){this.isScrollWheelPan&&
this.navigationManager.disableScrollWheelPan()},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&&(I(this._slider.domNode||this._slider,"visibility","inherit"),this.isZoomSlider=!0)},hideZoomSlider:function(){this._slider&&(I(this._slider.domNode||this._slider,"visibility","hidden"),this.isZoomSlider=!1)},onClick:function(W){W.graphic||
(W.graphic=this.syncHitTestForWebGL(W))}});z("extend-esri")&&(p.Map=x);return x})},"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(G,x,c,r,h,w,q,n,f){function g(t,z,C,y){(z=z&&z[t])?z={formatType:z.formatType,options:z}:y&&-1!==G.indexOf(y.properties||"",t)?z={formatType:y.formatter||"DateString",options:null}:C&&-1!==G.indexOf(C.properties||"",t)&&(z={formatType:C.formatter||
"NumberFormat",options:null});return z}function a(t,z,C){return[r.isString(t)?t.split(""):t,z||c.global,r.isString(C)?new Function("item","index","array",C):C]}function d(t){return void 0!==t&&null!==t}function k(t){return d(t)?t:""}function l(t,z,C,y){var D=C.match(/([^\(]+)(\([^\)]+\))?/i);C=r.trim(D[1]);var B=D[2]?r.trim(D[2]):null;D=z[t];y=y||(B?x.fromJson(B.replace(/^\(/,"({").replace(/\)$/,"})")):{});B=y.utcOffset;if(-1===G.indexOf(e,C))C=r.getObject(C),r.isFunction(C)&&(D=C(D,t,z,y));else if("number"===
typeof D||"string"===typeof D&&D&&!isNaN(Number(D)))switch(D=Number(D),C){case "NumberFormat":return q.format(D,y);case "DateString":t=new Date(D);if(y.local||y.systemLocale)return y.systemLocale?t.toLocaleDateString()+(y.hideTime?"":" "+t.toLocaleTimeString()):t.toDateString()+(y.hideTime?"":" "+t.toTimeString());t=t.toUTCString();y.hideTime&&(t=t.replace(/\s+\d\d:\d\d:\d\d\s+(utc|gmt)/i,""));return t;case "DateFormat":return t=new Date(D),d(B)&&(t=h.add(t,"minute",t.getTimezoneOffset()-B)),n.format(t,
y)}return k(D)}function m(t,z){var C;if(z)for(C in t)t.hasOwnProperty(C)&&(void 0===t[C]?delete t[C]:t[C]instanceof Object&&m(t[C],!0));else for(C in t)t.hasOwnProperty(C)&&void 0===t[C]&&delete t[C];return t}var e=["NumberFormat","DateString","DateFormat"],b=/<\/?[^>]+>/g,p={valueOf:function(t,z){for(var C in t)if(t[C]==z)return C;return null},stripTags:function(t){if(t){var z=typeof t;if("string"===z)t=t.replace(b,"");else if("object"===z)for(var C in t)(z=t[C])&&"string"===typeof z&&(z=z.replace(b,
"")),t[C]=z}return t},substitute:function(t,z,C){if(d(C))if(r.isObject(C)){var y=C.first;var D=C.dateFormat;var B=C.numberFormat;var u=C.format}else y=C;if(z&&"${*}"!==z)return r.replace(z,r.hitch({obj:t},function(v,A){var F=A.split(":");return 1<F.length?(A=F[0],F.shift(),(v=u&&u[F[0]])?F=v.formatType:(F=F.join(":"),v=null),l(A,this.obj,F,v)):(v=g(A,u,B,D))?l(A,this.obj,v.formatType,v.options):k(this.obj[A])}),/\$\{([^\}]+)\}/g);z=[];for(var E in t)if(C=(C=g(E,u,B,D))?l(E,t,C.formatType,C.options):
t[E],z.push(E+" \x3d "+k(C)+"\x3cbr/\x3e"),y)break;return z.join("")},filter:function(t,z,C){z=a(t,C,z);C={};var y;t=z[0];for(y in t)z[2].call(z[y],t[y],y,t)&&(C[y]=t[y]);return C},startsWith:function(t,z,C){C=C||0;return t.indexOf(z,C)===C},endsWith:function(t,z,C){if("number"!==typeof C||!isFinite(C)||Math.floor(C)!==C||C>t.length)C=t.length;C-=z.length;t=t.indexOf(z,C);return-1!==t&&t===C},isDefined:d,fixJson:m,isObject:function(t){return t&&"object"===typeof t},isString:function(t){return"string"===
typeof t},mixin:function(t,z){for(var C in z)z.hasOwnProperty(C)&&(t[C]=z[C]);return t},clone2DArray:function(t){if(t=t?t.slice(0):null){var z,C=t.length;for(z=0;z<C;z++)t[z]=t[z]?t[z].slice(0):null}return t},clone3DArray:function(t){if(t=t?t.slice(0):null){var z,C=t.length;for(z=0;z<C;z++){t[z]=t[z]?t[z].slice(0):null;var y=t[z];if(y){var D,B=y.length;for(D=0;D<B;D++)y[D]=y[D]?y[D].slice(0):null}}}return t}};w("extend-esri")&&(r.mixin(f,p),f._isDefined=d,f._getParts=a,f._sanitize=m);return p})},
"dojo/date":function(){define(["./has","./_base/lang"],function(G,x){var c={getDaysInMonth:function(r){var h=r.getMonth();return 1==h&&c.isLeapYear(r)?29:[31,28,31,30,31,30,31,31,30,31,30,31][h]},isLeapYear:function(r){r=r.getFullYear();return!(r%400)||!(r%4)&&!!(r%100)},getTimezoneName:function(r){var h=r.toString(),w="",q=h.indexOf("(");if(-1<q)w=h.substring(++q,h.indexOf(")"));else if(q=/([A-Z\/]+) \d{4}$/,h=h.match(q))w=h[1];else if(h=r.toLocaleString(),q=/ ([A-Z\/]+)$/,h=h.match(q))w=h[1];return"AM"==
w||"PM"==w?"":w},compare:function(r,h,w){r=new Date(+r);h=new Date(+(h||new Date));"date"==w?(r.setHours(0,0,0,0),h.setHours(0,0,0,0)):"time"==w&&(r.setFullYear(0,0,0),h.setFullYear(0,0,0));return r>h?1:r<h?-1:0},add:function(r,h,w){var q=new Date(+r),n=!1,f="Date";switch(h){case "day":break;case "weekday":if(h=w%5)var g=parseInt(w/5);else h=0<w?5:-5,g=0<w?(w-5)/5:(w+5)/5;var a=r.getDay(),d=0;6==a&&0<w?d=1:0==a&&0>w&&(d=-1);a+=h;if(0==a||6==a)d=0<w?2:-2;w=7*g+h+d;break;case "year":f="FullYear";n=
!0;break;case "week":w*=7;break;case "quarter":w*=3;case "month":n=!0;f="Month";break;default:f="UTC"+h.charAt(0).toUpperCase()+h.substring(1)+"s"}if(f)q["set"+f](q["get"+f]()+w);n&&q.getDate()<r.getDate()&&q.setDate(0);return q},difference:function(r,h,w){h=h||new Date;w=w||"day";var q=h.getFullYear()-r.getFullYear(),n=1;switch(w){case "quarter":r=r.getMonth();h=h.getMonth();n=Math.floor(h/3)+1+4*q-(Math.floor(r/3)+1);break;case "weekday":q=Math.round(c.difference(r,h,"day"));w=parseInt(c.difference(r,
h,"week"));if(0==q%7)q=5*w;else{n=0;var f=r.getDay(),g=h.getDay();w=parseInt(q/7);h=q%7;r=new Date(r);r.setDate(r.getDate()+7*w);r=r.getDay();if(0<q)switch(!0){case 6==f:n=-1;break;case 0==f:n=0;break;case 6==g:n=-1;break;case 0==g:n=-2;break;case 5<r+h:n=-2}else if(0>q)switch(!0){case 6==f:n=0;break;case 0==f:n=1;break;case 6==g:n=2;break;case 0==g:n=1;break;case 0>r+h:n=2}q=q+n-2*w}n=q;break;case "year":n=q;break;case "month":n=h.getMonth()-r.getMonth()+12*q;break;case "week":n=parseInt(c.difference(r,
h,"day")/7);break;case "day":n/=24;case "hour":n/=60;case "minute":n/=60;case "second":n/=1E3;case "millisecond":n*=h.getTime()-r.getTime()}return Math.round(n)}};x.mixin(x.getObject("dojo.date",!0),c);return c})},"dojo/number":function(){define(["./_base/lang","./i18n","./i18n!./cldr/nls/number","./string","./regexp"],function(G,x,c,r,h){var w={};G.setObject("dojo.number",w);w.format=function(n,f){f=G.mixin({},f||{});var g=x.normalizeLocale(f.locale);g=x.getLocalization("dojo.cldr","number",g);f.customs=
g;g=f.pattern||g[(f.type||"decimal")+"Format"];return isNaN(n)||Infinity==Math.abs(n)?null:w._applyPattern(n,g,f)};w._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;w._applyPattern=function(n,f,g){g=g||{};var a=g.customs.group,d=g.customs.decimal;f=f.split(";");var k=f[0];f=f[0>n?1:0]||"-"+k;if(-1!=f.indexOf("%"))n*=100;else if(-1!=f.indexOf("\u2030"))n*=1E3;else if(-1!=f.indexOf("\u00a4"))a=g.customs.currencyGroup||a,d=g.customs.currencyDecimal||d,f=f.replace(/([\s\xa0\u202f]*)(\u00a4{1,3})([\s\xa0\u202f]*)/,
function(m,e,b,p){return(m=g[["symbol","currency","displayName"][b.length-1]]||g.currency||"")?e+m+p:""});else if(-1!=f.indexOf("E"))throw Error("exponential notation not supported");var l=w._numberPatternRE;k=k.match(l);if(!k)throw Error("unable to find a number expression in pattern: "+f);!1===g.fractional&&(g.places=0);return f.replace(l,w._formatAbsolute(n,k[0],{decimal:d,group:a,places:g.places,round:g.round}))};w.round=function(n,f,g){g=10/(g||10);return(g*+n).toFixed(f)/g};if(0==(.9).toFixed()){var q=
w.round;w.round=function(n,f,g){var a=Math.pow(10,-f||0),d=Math.abs(n);if(!n||d>=a)a=0;else if(d/=a,.5>d||.95<=d)a=0;return q(n,f,g)+(0<n?a:-a)}}w._formatAbsolute=function(n,f,g){g=g||{};!0===g.places&&(g.places=0);Infinity===g.places&&(g.places=6);f=f.split(".");var a="string"==typeof g.places&&g.places.indexOf(","),d=g.places;a?d=g.places.substring(a+1):0<=d||(d=(f[1]||[]).length);0>g.round||(n=w.round(n,d,g.round));n=String(Math.abs(n)).split(".");var k=n[1]||"";f[1]||g.places?(a&&(g.places=g.places.substring(0,
a)),a=void 0!==g.places?g.places:f[1]&&f[1].lastIndexOf("0")+1,a>k.length&&(n[1]=r.pad(k,a,"0",!0)),d<k.length&&(n[1]=k.substr(0,d))):n[1]&&n.pop();d=f[0].replace(",","");a=d.indexOf("0");-1!=a&&(a=d.length-a,a>n[0].length&&(n[0]=r.pad(n[0],a)),-1==d.indexOf("#")&&(n[0]=n[0].substr(n[0].length-a)));d=f[0].lastIndexOf(",");var l;if(-1!=d){var m=f[0].length-d-1;f=f[0].substr(0,d);d=f.lastIndexOf(",");-1!=d&&(l=f.length-d-1)}f=[];for(d=n[0];d;)a=d.length-m,f.push(0<a?d.substr(a):d),d=0<a?d.slice(0,a):
"",l&&(m=l,l=void 0);n[0]=f.reverse().join(g.group||",");return n.join(g.decimal||".")};w.regexp=function(n){return w._parseInfo(n).regexp};w._parseInfo=function(n){n=n||{};var f=x.normalizeLocale(n.locale);f=x.getLocalization("dojo.cldr","number",f);var g=n.pattern||f[(n.type||"decimal")+"Format"],a=f.group,d=f.decimal,k=1;if(-1!=g.indexOf("%"))k/=100;else if(-1!=g.indexOf("\u2030"))k/=1E3;else{var l=-1!=g.indexOf("\u00a4");l&&(a=f.currencyGroup||a,d=f.currencyDecimal||d)}f=g.split(";");1==f.length&&
f.push("-"+f[0]);f=h.buildGroupRE(f,function(m){m="(?:"+h.escapeString(m,".")+")";return m.replace(w._numberPatternRE,function(e){var b={signed:!1,separator:n.strict?a:[a,""],fractional:n.fractional,decimal:d,exponent:!1};e=e.split(".");var p=n.places;1==e.length&&1!=k&&(e[1]="###");1==e.length||0===p?b.fractional=!1:(void 0===p&&(p=n.pattern?e[1].lastIndexOf("0")+1:Infinity),p&&void 0==n.fractional&&(b.fractional=!0),!n.places&&p<e[1].length&&(p+=","+e[1].length),b.places=p);e=e[0].split(",");1<
e.length&&(b.groupSize=e.pop().length,1<e.length&&(b.groupSize2=e.pop().length));return"("+w._realNumberRegexp(b)+")"})},!0);l&&(f=f.replace(/([\s\xa0\u202f]*)(\u00a4{1,3})([\s\xa0\u202f]*)/g,function(m,e,b,p){m=h.escapeString(n[["symbol","currency","displayName"][b.length-1]]||n.currency||"");if(!m)return"";e=e?"[\\s\\xa0\\u202f]":"";p=p?"[\\s\\xa0\\u202f]":"";return n.strict?e+m+p:(e&&(e+="*"),p&&(p+="*"),"(?:"+e+m+p+")?")}));return{regexp:f.replace(/[\xa0\u202f ]/g,"[\\s\\xa0\\u202f]"),group:a,
decimal:d,factor:k}};w.parse=function(n,f){f=w._parseInfo(f);n=(new RegExp("^"+f.regexp+"$")).exec(n);if(!n)return NaN;var g=n[1];if(!n[1]){if(!n[2])return NaN;g=n[2];f.factor*=-1}g=g.replace(new RegExp("["+f.group+"\\s\\xa0\\u202f]","g"),"").replace(f.decimal,".");return g*f.factor};w._realNumberRegexp=function(n){n=n||{};"places"in n||(n.places=Infinity);"string"!=typeof n.decimal&&(n.decimal=".");"fractional"in n&&!/^0/.test(n.places)||(n.fractional=[!0,!1]);"exponent"in n||(n.exponent=[!0,!1]);
"eSigned"in n||(n.eSigned=[!0,!1]);var f=w._integerRegexp(n),g=h.buildGroupRE(n.fractional,function(d){var k="";d&&0!==n.places&&(k="\\"+n.decimal,k=Infinity==n.places?"(?:"+k+"\\d+)?":k+("\\d{"+n.places+"}"));return k},!0),a=h.buildGroupRE(n.exponent,function(d){return d?"([eE]"+w._integerRegexp({signed:n.eSigned})+")":""});f+=g;g&&(f="(?:(?:"+f+")|(?:"+g+"))");return f+a};w._integerRegexp=function(n){n=n||{};"signed"in n||(n.signed=[!0,!1]);"separator"in n?"groupSize"in n||(n.groupSize=3):n.separator=
"";var f=h.buildGroupRE(n.signed,function(a){return a?"[-+]":""},!0),g=h.buildGroupRE(n.separator,function(a){if(!a)return"(?:\\d+)";a=h.escapeString(a);" "==a?a="\\s":"\u00a0"==a?a="\\s\\xa0":"\u202f"==a&&(a="\\s\\u202f");var d=n.groupSize,k=n.groupSize2;return k?(a="(?:0|[1-9]\\d{0,"+(k-1)+"}(?:["+a+"]\\d{"+k+"})*["+a+"]\\d{"+d+"})",0<d-k?"(?:"+a+"|(?:0|[1-9]\\d{0,"+(d-1)+"}))":a):"(?:0|[1-9]\\d{0,"+(d-1)+"}(?:["+a+"]\\d{"+d+"})*)"},!0);return f+g};return w})},"dojo/regexp":function(){define(["./_base/kernel",
"./_base/lang"],function(G,x){var c={};x.setObject("dojo.regexp",c);c.escapeString=function(r,h){return r.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,function(w){return h&&-1!=h.indexOf(w)?w:"\\"+w})};c.buildGroupRE=function(r,h,w){if(!(r instanceof Array))return h(r);for(var q=[],n=0;n<r.length;n++)q.push(h(r[n]));return c.group(q.join("|"),w)};c.group=function(r,h){return"("+(h?"?:":"")+r+")"};return c})},"dojo/date/locale":function(){define("../_base/lang ../_base/array ../date ../cldr/supplemental ../i18n ../regexp ../string ../i18n!../cldr/nls/gregorian module".split(" "),
function(G,x,c,r,h,w,q,n,f){function g(b,p,t,z){return z.replace(/([a-z])\1*/ig,function(C){var y=C.charAt(0);C=C.length;var D=["abbr","wide","narrow"];switch(y){case "G":var B=p[4>C?"eraAbbr":"eraNames"][0>b.getFullYear()?0:1];break;case "y":B=b.getFullYear();switch(C){case 1:break;case 2:if(!t.fullYear){B=String(B);B=B.substr(B.length-2);break}default:var u=!0}break;case "Q":case "q":B=Math.ceil((b.getMonth()+1)/3);u=!0;break;case "M":case "L":B=b.getMonth();3>C?(B+=1,u=!0):(y=["months","L"==y?
"standAlone":"format",D[C-3]].join("-"),B=p[y][B]);break;case "w":B=k._getWeekOfYear(b,0);u=!0;break;case "d":B=b.getDate();u=!0;break;case "D":B=k._getDayOfYear(b);u=!0;break;case "e":case "c":if(B=b.getDay(),2>C){B=(B-r.getFirstDayOfWeek(t.locale)+8)%7;break}case "E":B=b.getDay();3>C?(B+=1,u=!0):(y=["days","c"==y?"standAlone":"format",D[C-3]].join("-"),B=p[y][B]);break;case "a":y=12>b.getHours()?"am":"pm";B=t[y]||p["dayPeriods-format-wide-"+y];break;case "h":case "H":case "K":case "k":u=b.getHours();
switch(y){case "h":B=u%12||12;break;case "H":B=u;break;case "K":B=u%12;break;case "k":B=u||24}u=!0;break;case "m":B=b.getMinutes();u=!0;break;case "s":B=b.getSeconds();u=!0;break;case "S":B=Math.round(b.getMilliseconds()*Math.pow(10,C-3));u=!0;break;case "v":case "z":if(B=k._getZone(b,!0,t))break;C=4;case "Z":y=k._getZone(b,!1,t);y=[0>=y?"+":"-",q.pad(Math.floor(Math.abs(y)/60),2),q.pad(Math.abs(y)%60,2)];4==C&&(y.splice(0,0,"GMT"),y.splice(3,0,":"));B=y.join("");break;default:throw Error("dojo.date.locale.format: invalid pattern char: "+
z);}u&&(B=q.pad(B,C));return B})}function a(b,p,t,z){var C=function(B){return B};p=p||C;t=t||C;z=z||C;var y=b.match(/(''|[^'])+/g),D="'"==b.charAt(0);x.forEach(y,function(B,u){B?(y[u]=(D?t:p)(B.replace(/''/g,"'")),D=!D):y[u]=""});return z(y.join(""))}function d(b,p,t,z){z=w.escapeString(z);t.strict||(z=z.replace(" a"," ?a"));return z.replace(/([a-z])\1*/ig,function(C){var y=C.charAt(0);var D=C.length,B="",u="";t.strict?(1<D&&(B="0{"+(D-1)+"}"),2<D&&(u="0{"+(D-2)+"}")):(B="0?",u="0{0,2}");switch(y){case "y":y=
"\\d{2,4}";break;case "M":case "L":2<D?(y=p["months-"+("L"==y?"standAlone":"format")+"-"+l[D-3]].slice(0).join("|"),t.strict||(y=y.replace(/\./g,""),y="(?:"+y+")\\.?")):y="1[0-2]|"+B+"[1-9]";break;case "D":y="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+B+"[1-9][0-9]|"+u+"[1-9]";break;case "d":y="3[01]|[12]\\d|"+B+"[1-9]";break;case "w":y="[1-4][0-9]|5[0-3]|"+B+"[1-9]";break;case "E":case "e":case "c":y=".+?";break;case "h":y="1[0-2]|"+B+"[1-9]";break;case "k":y="1[01]|"+B+"\\d";break;case "H":y="1\\d|2[0-3]|"+
B+"\\d";break;case "K":y="1\\d|2[0-4]|"+B+"[1-9]";break;case "m":case "s":y="[0-5]\\d";break;case "S":y="\\d{"+D+"}";break;case "a":D=t.am||p["dayPeriods-format-wide-am"];B=t.pm||p["dayPeriods-format-wide-pm"];y=D+"|"+B;t.strict||(D!=D.toLowerCase()&&(y+="|"+D.toLowerCase()),B!=B.toLowerCase()&&(y+="|"+B.toLowerCase()),-1!=y.indexOf(".")&&(y+="|"+y.replace(/\./g,"")));y=y.replace(/\./g,"\\.");break;default:y=".*"}b&&b.push(C);return"("+y+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}var k={};G.setObject(f.id.replace(/\//g,
"."),k);k._getZone=function(b,p,t){return p?c.getTimezoneName(b):b.getTimezoneOffset()};k.format=function(b,p){p=p||{};var t=h.normalizeLocale(p.locale),z=p.formatLength||"short";t=k._getGregorianBundle(t);var C=[];b=G.hitch(this,g,b,t,p);if("year"==p.selector)return a(t["dateFormatItem-yyyy"]||"yyyy",b);var y;"date"!=p.selector&&(y=p.timePattern||t["timeFormat-"+z])&&C.push(a(y,b));"time"!=p.selector&&(y=p.datePattern||t["dateFormat-"+z])&&C.push(a(y,b));return 1==C.length?C[0]:t["dateTimeFormat-"+
z].replace(/'/g,"").replace(/\{(\d+)\}/g,function(D,B){return C[B]})};k.regexp=function(b){return k._parseInfo(b).regexp};k._parseInfo=function(b){b=b||{};var p=h.normalizeLocale(b.locale);p=k._getGregorianBundle(p);var t=b.formatLength||"short",z=b.datePattern||p["dateFormat-"+t],C=b.timePattern||p["timeFormat-"+t];t="date"==b.selector?z:"time"==b.selector?C:p["dateTimeFormat-"+t].replace(/\{(\d+)\}/g,function(D,B){return[C,z][B]});var y=[];return{regexp:a(t,G.hitch(this,d,y,p,b)),tokens:y,bundle:p}};
k.parse=function(b,p){var t=/[\u200E\u200F\u202A\u202E]/g,z=k._parseInfo(p),C=z.tokens,y=z.bundle;b=(new RegExp("^"+z.regexp.replace(t,"")+"$",z.strict?"":"i")).exec(b&&b.replace(t,""));if(!b)return null;var D=["abbr","wide","narrow"],B=[1970,0,1,0,0,0,0],u="";b=x.every(b,function(v,A){if(!A)return!0;var F=C[A-1];A=F.length;F=F.charAt(0);switch(F){case "y":if(2!=A&&p.strict)B[0]=v;else if(100>v)v=Number(v),F=""+(new Date).getFullYear(),A=100*F.substring(0,2),F=Math.min(Number(F.substring(2,4))+20,
99),B[0]=v<F?A+v:A-100+v;else{if(p.strict)return!1;B[0]=v}break;case "M":case "L":if(2<A){if(A=y["months-"+("L"==F?"standAlone":"format")+"-"+D[A-3]].concat(),p.strict||(v=v.replace(".","").toLowerCase(),A=x.map(A,function(N){return N.replace(".","").toLowerCase()})),v=x.indexOf(A,v),-1==v)return!1}else v--;B[1]=v;break;case "E":case "e":case "c":A=y["days-"+("c"==F?"standAlone":"format")+"-"+D[A-3]].concat();p.strict||(v=v.toLowerCase(),A=x.map(A,function(N){return N.toLowerCase()}));v=x.indexOf(A,
v);if(-1==v)return!1;break;case "D":B[1]=0;case "d":B[2]=v;break;case "a":A=p.am||y["dayPeriods-format-wide-am"];F=p.pm||y["dayPeriods-format-wide-pm"];if(!p.strict){var I=/\./g;v=v.replace(I,"").toLowerCase();A=A.replace(I,"").toLowerCase();F=F.replace(I,"").toLowerCase()}if(p.strict&&v!=A&&v!=F)return!1;u=v==F?"p":v==A?"a":"";break;case "K":24==v&&(v=0);case "h":case "H":case "k":if(23<v)return!1;B[3]=v;break;case "m":B[4]=v;break;case "s":B[5]=v;break;case "S":B[6]=v}return!0});t=+B[3];"p"===u&&
12>t?B[3]=t+12:"a"===u&&12==t&&(B[3]=0);t=new Date(B[0],B[1],B[2],B[3],B[4],B[5],B[6]);p.strict&&t.setFullYear(B[0]);var E=C.join("");z=-1!=E.indexOf("d");E=-1!=E.indexOf("M");if(!b||E&&t.getMonth()>B[1]||z&&t.getDate()>B[2])return null;if(E&&t.getMonth()<B[1]||z&&t.getDate()<B[2])t=c.add(t,"hour",1);return t};var l=["abbr","wide","narrow"],m=[],e={};k.addCustomFormats=function(b,p){m.push({pkg:b,name:p});e={}};k._getGregorianBundle=function(b){if(e[b])return e[b];var p={};x.forEach(m,function(t){t=
h.getLocalization(t.pkg,t.name,b);p=G.mixin(p,t)},this);return e[b]=p};k.addCustomFormats(f.id.replace(/\/date\/locale$/,".cldr"),"gregorian");k.getNames=function(b,p,t,z){z=k._getGregorianBundle(z);b=[b,t,p];if("standAlone"==t){t=b.join("-");var C=z[t];1==C[0]&&(C=void 0)}b[1]="format";return(C||z[b.join("-")]).concat()};k.isWeekend=function(b,p){p=r.getWeekend(p);b=(b||new Date).getDay();p.end<p.start&&(p.end+=7,b<p.start&&(b+=7));return b>=p.start&&b<=p.end};k._getDayOfYear=function(b){return c.difference(new Date(b.getFullYear(),
0,1,b.getHours()),b)+1};k._getWeekOfYear=function(b,p){1==arguments.length&&(p=0);var t=(new Date(b.getFullYear(),0,1)).getDay(),z=(t-p+7)%7;z=Math.floor((k._getDayOfYear(b)+z-1)/7);t==p&&z++;return z};return k})},"dojo/cldr/supplemental":function(){define(["../_base/lang","../i18n"],function(G,x){var c={};G.setObject("dojo.cldr.supplemental",c);c.getFirstDayOfWeek=function(r){r={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}[c._region(r)];return void 0===r?1:r};c._region=function(r){r=x.normalizeLocale(r);r=r.split("-");var h=r[1];h?4==h.length&&(h=r[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"}[r[0]];return h};c.getWeekend=
function(r){var h=c._region(r);r={"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===r&&(r=6);void 0===h&&(h=0);return{start:r,end:h}};return c})},"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 ./basemaps ./lang ./Evented ./fx ./deferredUtils ./tileUtils ./urlUtils ./PluginTarget ./Color ./promiseList ./arcade/Dictionary ./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/MapImageLayer ./layers/OpenStreetMapLayer ./layers/support/webglUtils ./dijit/Popup ./plugins/popupManager dojo/uacss".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C,y,D,B,u,E,v,A,F,I,N,da,ba,na,xa,W,la,ha,sa,Ca,oa,qa,L,Y,ca,V,X,ja){function pa(K,T){var fa=K.lods;fa.sort(function(Ha,Ua){return Ha.scale>Ua.scale?-1:Ha.scale<Ua.scale?1:0});var ra=[];fa=n.filter(fa,function(Ha){if(-1===wa(ra,Ha.scale))return ra.push(Ha.scale),!0});var Ba=T.lods=[],Ma;n.forEach(fa,function(Ha,Ua){Ma=Ba[Ua]=new L(Ha);Ma.level=Ua});T.tileInfo=new qa(Q(K,{lods:Ba}))}var ta,ea=sa.toMapPoint,va=sa.toScreenPoint,M=h.connect,S=h.disconnect,
ma=q.hitch,ua=e.set,wa=n.indexOf,Q=q.mixin,ka=0,za=C.defaults.map,Ea=za.layerNamePrefix,Ka=za.graphicsLayerNamePrefix,Qa=new RegExp("^"+Ea+"(\\d+)$"),Pa=new RegExp("^"+Ka+"(\\d+)$"),J=function(){},U=0,ia=X.isWebGLEnabled();r=r([B,F],{declaredClass:"esri._CoreMap",tables:null,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,webglEnabled:ia,_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(K,T){T=T||{};this.registerConnectEvents();Q(this,{_internalLayerIds:[],_layers:[],_layerDivs:[],_basemapPending:!1,_connects:[],_layerAddPromises:{},
_zoomAnimDiv:null,_zoomAnim:null,_layersDiv:null,_firstLayerId:null,_delta:null,_cursor:null,_ratioW:1,_ratioH:1,_params:null,_minResolution:0,_maxResolution:0,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:[],_webglContextOwners:[]});var fa=this.container=a.byId(K),ra=this.id=d.get(fa,"id")||p.getUniqueId(this.declaredClass);k.add(fa,"map");
var Ba=m.getContentBox(fa);K=k.add;var Ma=l.create;this.position=new na(0,0);this._reposition();var Ha=this.width=0<Ba.w?Ba.w:za.width,Ua=this.height=0<Ba.h?Ba.h:za.height,Ta=this.root=Ma("div",{id:ra+"_root",style:{width:Ha+"px",height:Ua+"px",direction:"ltr"}});K(Ta,"esriMapContainer");Ba=this.__container=Ma("div",{id:ra+"_container"},Ta);ua(Ba,"position","absolute");K(Ba,"esriMapContainer");fa.appendChild(Ta);T=this._params=Q({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},T);this.setWebGLEnabled(null!=T.webglEnabled?T.webglEnabled:this.webglEnabled);this.maxWebGLContexts=null!=T.maxWebGLContexts?T.maxWebGLContexts:-1;this.wrapAround180=T.wrapAround180;this.optimizePanAnimation=T.optimizePanAnimation;this.setBackgroundColor(T.backgroundColor);D.isDefined(T.resizeDelay)&&(this.resizeDelay=T.resizeDelay);T.lods&&(pa({rows:512,cols:512,dpi:96,format:"JPEG",
compressionQuality:75,origin:{x:-180,y:90},spatialReference:{wkid:4326},lods:T.lods},T),this.__tileInfo=T.tileInfo);this.extent=T.extent;this._extentUtil({mapCenter:T.center,targetLevel:T.zoom,targetScale:T.scale});this.__visibleRect=new W(0,0,Ha,Ua);this.__visibleDelta=new W(0,0,Ha,Ua);ra=this._layersDiv=Ma("div",{id:ra+"_layers"});K(ra,"esriMapLayers");Ba.appendChild(ra);this._zoomAnimDiv=Ma("div",{style:{position:"absolute"}});T.infoWindow?this.infoWindow=T.infoWindow:(K=this.infoWindow=new ja(T.popupOptions,
Ma("div")),K.startup(),K._ootb=!0,ua(K.domNode,"zIndex",40));if(T.showLabels){var Oa=this;G(["./layers/LabelLayer"],function(Xa){ta=Xa;Oa._createLabelLayer()});this.on("load",function(){Oa._createLabelLayer()})}this.addPlugin(this._getAbsMid("./plugins/popupManager"),{enabled:T.showInfoWindowOnClick});this._zoomStartHandler=ma(this,this._zoomStartHandler);this._zoomingHandler=ma(this,this._zoomingHandler);this._zoomEndHandler=ma(this,this._zoomEndHandler);this._panningHandler=ma(this,this._panningHandler);
this._panEndHandler=ma(this,this._panEndHandler);this._endTranslate=ma(this,this._endTranslate);this._timedResize=ma(this,this._timedResize);this._execResize=ma(this,this._execResize);this._processLabelLayers=ma(this,this._processLabelLayers);this._updateLabelLayers=ma(this,this._updateLabelLayers);this.resize=ma(this,this.resize);g.addOnWindowUnload(this,this.destroy)},_getAbsMid:function(K){return G.toAbsMid?G.toAbsMid(K):x.id.replace(/\/[^\/]*$/ig,"/")+K},_cleanUp:function(){var K=this.infoWindow;
K&&(K._ootb&&K.destroy?K.destroy():K.unsetMap(this),delete this.infoWindow);S(this._tsTimeExtentChange_connect);this.removePlugin("./plugins/popupManager");l.destroy(this.root);this.root=null},_addLayer:function(K,T,fa){if(K.id){var ra=K.id.match(K instanceof oa?Pa:Qa);ra&&ra[1]&&(ra=Number(ra[1]),ka<=ra&&(ka=ra+1))}var Ba=K.id||(K instanceof oa?Ka:Ea)+ka++;K.id=Ba;this._layers[Ba]=K;K._isRefLayer="top"===fa;fa=!D.isDefined(fa)||0>fa||fa>T.length||"top"===fa?T.length:fa;var Ma;if(!K._isRefLayer)for(;(Ma=
this.getLayer(T[fa-1]))&&Ma._isRefLayer;)fa--;if(ra=!this._firstLayerId&&!this.loaded&&!this._basemapPending&&0===fa&&(T===this.layerIds||T===this.graphicsLayerIds))this._firstLayerId=Ba;T.splice(fa,0,Ba);var Ha=ma(this,this._addLayerHandler),Ua=this;fa=this._connects;Ma=function(){K.loaded?Ua._onLoadFix?(Ua._onLoadFix=!1,setTimeout(function(){Ha(K)},0)):Ha(K):(Ua["_"+Ba+"_addtoken_load"]=M(K,"onLoad",Ua,"_addLayerHandler"),Ua["_"+Ba+"_addtoken_err"]=M(K,"onError",Ua,function(Ta){Ha(K,Ta,T)}))};this.loaded||
ra||K.loaded&&-1===wa(this.graphicsLayerIds,Ba)?Ma():fa.push(M(this,"onLoad",Ma));return K},_forgetLayer:function(K){K=K.id;S(this["_"+K+"_addtoken_load"]);S(this["_"+K+"_addtoken_err"]);var T=this._layerAddPromises[K];T&&(delete this._layerAddPromises[K],T.cancel())},_addLayerHandler:function(K,T,fa){T?this._attachLayerToMap(K,T,fa):K._prepareToAttach?(this._layerAddPromises[K.id]=K._prepareToAttach(this)).always(q.hitch(this,function(ra){ra&&"cancel"===ra.dojoType||this._attachLayerToMap(K,null,
fa)})):K.declaredClass&&(-1<K.declaredClass.toLowerCase().indexOf("vectortilelayer")||-1<K.declaredClass.toLowerCase().indexOf("rasterxlayer")&&K.useWebGL)&&!this.isWebGLContextAvailable()?(T=Error("Too many WebGL contexts. Unable to add the layer: ",K.url),this._attachLayerToMap(K,T,this.layerIds)):this._attachLayerToMap(K,T,fa)},_attachLayerToMap:function(K,T,fa){var ra=this.id,Ba=K.id,Ma=wa(K instanceof oa?this.graphicsLayerIds:this.layerIds,Ba),Ha=Ma,Ua=!1,Ta=this._params;this._forgetLayer(K);
if(T)delete this._layers[Ba],-1!==Ma&&(fa.splice(Ma,1),this.onLayerAddResult(K,T));else{-1===Ma&&(Ma=wa(this._internalLayerIds,Ba),Ha=20+Ma,Ua=!0);if(Ba===this._firstLayerId){T=K.spatialReference;fa=this.extent&&this.extent.spatialReference;!fa||fa.equals(T)||!K.tileInfo&&K.url||(fa=null);fa=this.spatialReference=fa||T;this.wrapAround180=this.wrapAround180&&fa&&fa._isWrappable()?!0:!1;K.tileInfo&&(this.__tileInfo?(T=this.__tileInfo.lods,this.__tileInfo=Q({},K.tileInfo),this.__tileInfo.lods=T):(pa(Q({},
K.tileInfo),Ta),this.__tileInfo=Ta.tileInfo));if(this.wrapAround180){T=this.__tileInfo;fa=fa._getInfo();if(!T||Math.abs(fa.origin[0]-T.origin.x)>fa.dx)this.wrapAround180=!1;this.wrapAround180&&T&&v._addFrameInfo(T,fa)}Ta.units=K.units;if((T=this.__tileInfo&&this.__tileInfo.lods)&&T.length){fa=Ta.minScale;Ma=Ta.maxScale;var Oa=-1,Xa=-1,$a=!1,bb=!1,hb;for(hb=0;hb<T.length;hb++)0<fa&&!$a&&fa>=T[hb].scale&&(Oa=T[hb].level,$a=!0),0<Ma&&!bb&&Ma>=T[hb].scale&&(Xa=0<hb?T[hb-1].level:-1,bb=!0);-1===Ta.minZoom&&
(Ta.minZoom=0===fa?T[0].level:Oa);-1===Ta.maxZoom&&(Ta.maxZoom=0===Ma?T[T.length-1].level:Xa);for(hb=0;hb<T.length;hb++)Ta.minZoom===T[hb].level&&(Ta.minScale=T[hb].scale,this._minResolution=T[hb].resolution),Ta.maxZoom===T[hb].level&&(Ta.maxScale=T[hb].scale,this._maxResolution=T[hb].resolution)}else Ta.minZoom=Ta.maxZoom=Ta.zoom=-1}K instanceof oa?(this._gc||(this._gc=new oa._GraphicsContainer,this._gc._setMap(this,this._layersDiv).id=ra+"_gc"),this._attachGraphicsLayer(K).id=ra+"_"+Ba):(Ha=K._setMap(this,
this._layersDiv,Ha,this.__LOD),Ha.id=ra+"_"+Ba,this._layerDivs[Ba]=Ha,this._reorderLayers(this.layerIds),Ua||-1===K.declaredClass.indexOf("VETiledLayer")||this._onBingLayerAdd(K));Ba===this._firstLayerId&&(this.graphics=new oa({id:ra+"_graphics",displayOnPan:Ta.displayGraphicsOnPan}),this._addLayer(this.graphics,this._internalLayerIds,20));if(K===this.graphics){fa=this._layers[this._firstLayerId];ra=Ta.zoom;Ha=Ta.scale;T=Ta.center;fa=fa.initialExtent||fa.fullExtent;this._firstLayerId=null;this.extent&&
(this.extent=this._convertGeometry(this,this.extent));!this.extent&&fa&&(T&&(T=this._convertGeometry(fa,T)),T&&(fa=fa.centerAt(T),T=null));if(T=this.extent||fa&&new xa(fa.toJson()))-1<ra?T=this.__getExtentForLevel(ra,null,T).extent:0<Ha&&(T=ha.getExtentForScale(this,Ha,T));if(!T){console.log("Map: "+this.invalidExtent);return}Ta=this._fixExtent(T,Ta.fitExtent);this.extent=Ta.extent;this.__LOD=Ta.lod;this.__setExtent(this.extent);this.loaded=!0;this.attr("data-loaded","");this.infoWindow.setMap(this);
this.onLoad(this)}Ua||(this.onLayerAdd(K),this.onLayerAddResult(K));S(this[Ba+"_addLayerHandler_connect"])}},_convertGeometry:function(K,T){K=K&&K.spatialReference;var fa=T&&T.spatialReference;K&&fa&&!K.equals(fa)&&(K._canProject(fa)?K.isWebMercator()?T=Ca.geographicToWebMercator(T):4326===K.wkid&&(T=Ca.webMercatorToGeographic(T,!0)):(console.log("Map: "+D.substitute({geometry:fa.wkid||fa.wkt,map:K.wkid||K.wkt},this.invalidGeometry)),T=null));return T},_attachGraphicsLayer:function(K){var T=K.id;
K=K._setMap(this,this._gc._surface);this._layerDivs[T]=K;this._reorderLayers(this.graphicsLayerIds);return K},_detachGraphicsLayer:function(K){K.loaded&&K.getMap()&&K._unsetMap(this,this._gc._surface)},_reorderLayers:function(K){var T=this.onLayerReorder,fa=l.place,ra=this._layerDivs,Ba=this._layers,Ma=this._gc?this._gc._surface.getEventSource():null;if(K===this.graphicsLayerIds)n.forEach(K,function(Xa,$a){var bb=ra[Xa];Xa=Ba[Xa];bb&&(this._gc._reorderLayer(Xa,bb,$a),T(Xa,$a))},this);else{var Ha=
this.graphics,Ua=Ha?Ha.id:null,Ta=this._layersDiv,Oa;n.forEach(K,function(Xa,$a){Oa=ra[Xa];Xa!==Ua&&Oa&&(fa(Oa,Ta,$a),T(Ba[Xa],$a))});this._mapImageLyr&&this._placeMapImageLyr();Ma&&(Ma=9>b("ie")?Ma.parentNode:Ma,fa(Ma,Ma.parentNode,"last"))}this.onLayersReordered([].concat(K))},_zoomStartHandler:function(){this.__zoomStart(this._zoomAnimDiv.startingExtent,this._zoomAnimDiv.anchor)},_zoomingHandler:function(K){var T=parseFloat(K.left),fa=parseFloat(K.top);K=new xa(T,fa-parseFloat(K.height),T+parseFloat(K.width),
fa,this.spatialReference);T=this.extent.getWidth()/K.getWidth();this.__zoom(K,T,this._zoomAnimDiv.anchor)},_zoomEndHandler:function(){var K=this._zoomAnimDiv,T=K.extent,fa=this.extent.getWidth()/T.getWidth(),ra=K.anchor,Ba=K.newLod,Ma=K.levelChange;K.extent=K.anchor=K.levelChange=K.startingExtent=K.newLod=this._delta=this._zoomAnim=null;this.__zoomEnd(T,fa,ra,Ba,Ma)},_panningHandler:function(K){if(isNaN(parseFloat(K.left))||isNaN(parseFloat(K.top))){var T=Math.round,fa=this._panAnim.node;K.left=-1*
(this._delta.x-T(this.width/2))+"px";K.top=-1*(this._delta.y-T(this.height/2))+"px";e.set(fa,"left",K.left);e.set(fa,"top",K.top)}K=new na(parseFloat(K.left),parseFloat(K.top));T=this.toMap(K);this.onPan(this.extent.offset(this.extent.xmin-T.x,this.extent.ymax-T.y),K)},_panEndHandler:function(K){this.__panning=!1;var T=Math.round;K=new na(-T(parseFloat(K.style.left)),-T(parseFloat(K.style.top)));T=K.x;var fa=K.y,ra=this.__visibleRect,Ba=this.__visibleDelta;ra.x+=-T;ra.y+=-fa;Ba.x+=-T;Ba.y+=-fa;ua(this._zoomAnimDiv,
{left:"0px",top:"0px"});ra=this.extent;Ba=this._ratioW;var Ma=this._ratioH;ra=new xa(ra.xmin+T/Ba,ra.ymin-fa/Ma,ra.xmax+T/Ba,ra.ymax-fa/Ma,this.spatialReference);K.setX(-K.x);K.setY(-K.y);this._delta=this._panAnim=null;this._updateExtent(ra);this.onPanEnd(ra,K);this._fireExtChg([ra,K,!1,this.__LOD])},_fixExtent:function(K,T){for(var fa=this._reshapeExtent(K),ra=1.25;!0===T&&(fa.extent.getWidth()<K.getWidth()||fa.extent.getHeight()<K.getHeight())&&0<fa.lod.level&&3>=ra;)fa=this._reshapeExtent(K.expand(ra)),
ra+=.25;return fa},_getFrameWidth:function(){var K=-1,T=this.spatialReference._getInfo();this.__LOD?(T=this.__LOD._frameInfo)&&(K=T[3]):T&&(K=Math.round(2*T.valid[1]/(this.extent.getWidth()/this.width)));return K},_fixAspectRatio:function(K){var T=K.getWidth(),fa=K.getHeight(),ra=T/fa,Ba=this.width/this.height,Ma=0,Ha=0;this.width>this.height?T>fa?Ba>ra?Ma=fa*Ba-T:Ha=T/Ba-fa:Ma=fa*Ba-T:this.width<this.height?T<fa?Ba>ra?Ma=fa*Ba-T:Ha=T/Ba-fa:Ha=T/Ba-fa:T<fa?Ma=fa-T:T>fa&&(Ha=T/Ba-fa);Ma&&(K.xmin-=
Ma/2,K.xmax+=Ma/2);Ha&&(K.ymin-=Ha/2,K.ymax+=Ha/2);return K},_reshapeExtent:function(K){K=this._fixAspectRatio(K);return this._getAdjustedExtent(K)},_getAdjustedExtent:function(K){if(this.__tileInfo)return v.getCandidateTileInfo(this,this.__tileInfo,K);var T=ha.getScale(this,K),fa=this.getMinScale(),ra=this.getMaxScale();!fa||T<=fa?!ra||T>=ra||(K=ha.getExtentForScale(this,ra,K)):K=ha.getExtentForScale(this,fa,K);return{extent:K}},_onBingLayerAdd:function(K){this["__"+K.id+"_vis_connect"]=h.connect(K,
"onVisibilityChange",this,"_toggleBingLogo");this._toggleBingLogo(K.visible)},_onBingLayerRemove:function(K){h.disconnect(this["__"+K.id+"_vis_connect"]);delete this["__"+K.id+"_vis_connect"];var T=n.some(this.layerIds,function(fa){return(K=this._layers[fa])&&K.visible&&-1!==K.declaredClass.indexOf("VETiledLayer")},this);this._toggleBingLogo(T)},_toggleBingLogo:function(K){K&&!this._bingLogo?(K={left:this._mapParams&&this._mapParams.nav?"25px":""},6===b("ie")&&(K.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled\x3d'true', sizingMethod\x3d'crop', src\x3d'"+
G.toUrl("./images/map/bing-logo-lg.png")+"')"),K=this._bingLogo=l.create("div",{style:K},this.root),k.add(K,"bingLogo-lg")):!K&&this._bingLogo&&(l.destroy(this._bingLogo),delete this._bingLogo)},__panStart:function(K,T){var fa=this._zoomAnim,ra=this._panAnim;if(fa&&fa._active)fa.stop(),fa._fire("onEnd",[fa.node]);else if(ra&&ra._active){ra.stop();this._panAnim=null;T=ra.curve.getValue(ra._getStep());K=Math.round(parseFloat(T.left));T=Math.round(parseFloat(T.top));fa=this.navigationManager._dragOrigin;
this.__pan(K,T);fa&&(fa.x-=K,fa.y-=T);return}this.__panning=!0;this.onPanStart(this.extent,new na(K,T))},__pan:function(K,T){var fa=this.extent,ra=this._ratioW,Ba=this._ratioH;this.onPan(new xa(fa.xmin-K/ra,fa.ymin+T/Ba,fa.xmax-K/ra,fa.ymax+T/Ba,this.spatialReference),new na(K,T))},__panEnd:function(K,T){var fa=this.__visibleRect,ra=this.__visibleDelta;fa.x+=K;fa.y+=T;ra.x+=K;ra.y+=T;fa=new na(K,T);ra=this.extent;var Ba=this._ratioW,Ma=this._ratioH;ra=new xa(ra.xmin-K/Ba,ra.ymin+T/Ma,ra.xmax-K/Ba,
ra.ymax+T/Ma,this.spatialReference);this.__panning=!1;this._updateExtent(ra);this.onPanEnd(ra,fa);this._fireExtChg([ra,fa,!1,this.__LOD])},__zoomStart:function(K,T){this.__zooming=!0;this.onZoomStart(K,1,T,this.__LOD?this.__LOD.level:null)},__zoom:function(K,T,fa){this.onZoom(K,T,fa)},__zoomEnd:function(K,T,fa,ra,Ba){ua(this._layersDiv,{left:"0px",top:"0px"});this._delta=new na(0,0);this.__visibleRect.x=this.__visibleRect.y=0;K=new xa(K);this.__LOD=ra;this._ratioW=this.width/K.getWidth();this._ratioH=
this.height/K.getHeight();var Ma=this._delta;this._delta=null;this.__zooming=!1;this._updateExtent(K,Ba);this.onZoomEnd(K,T,fa,ra?ra.level:null);this._fireExtChg([K,Ma,Ba,ra])},_extentUtil:function(K,T,fa,ra,Ba){var Ma=new w,Ha=this.width,Ua=this.height;if(K){var Ta=K.numLevels;var Oa=K.targetLevel;var Xa=D.isDefined(Oa);var $a=K.factor;var bb=K.mapAnchor;var hb=K.screenAnchor;var gb=K.mapCenter;var mb=K.levelOrFactor;var rb=K.targetScale;var ob=D.isDefined(rb)&&0<rb}if(T){var eb=T.dx;var nb=T.dy;
gb=T.mapCenter}q.isArray(gb)&&(gb=new ba(gb));var Ab=this._panAnim;T=(K=this._stopAnim())?K.divExtent:this.extent;var qb=this.__tileInfo,sb=this._params;if(!this.loaded){if(fa)T&&(fa=this._convertGeometry(T,fa)),fa&&(this.extent=fa,sb.zoom=sb.scale=-1,sb.center=null);else if(gb||Xa||ob){if(gb)if(T){if(gb=this._convertGeometry(T,gb))this.extent=T.centerAt(gb),sb.center=null}else sb.center=gb;Xa&&-1<Oa?(sb.zoom=Oa,sb.scale=-1):ob&&(sb.scale=rb,sb.zoom=-1)}Ma.resolve();return Ma}if(gb&&(gb=this._convertGeometry(this,
gb),!gb)||bb&&(bb=this._convertGeometry(this,bb),!bb)||fa&&(fa=this._convertGeometry(this,fa),!fa))return Ma.reject(),Ma;Ab&&bb&&hb&&(bb=ea(this.extent,Ha,Ua,hb));K&&bb&&hb&&(bb=ea(K.divExtent,Ha,Ua,hb));if(Xa)if(qb)Ta=this.getMinZoom(),Xa=this.getMaxZoom(),Oa<Ta?Oa=Ta:Oa>Xa&&(Oa=Xa),Ta=Oa-(K?K.level:this.getLevel());else{Ta=0<Oa?-1:1;var vb=mb?Oa:null}if(!fa)if(D.isDefined(Ta))qb?(Ha=K?K.level:this.getLevel(),Ha=this.__getExtentForLevel(Ha+Ta,gb,T).extent):(Ha=(K?K.end:this.extent).expand(vb||(0<
Ta?.5*Ta:2*-Ta)),vb&&gb&&(Ha=Ha.centerAt(gb))),Ha&&(gb?fa=Ha:(eb=bb||T.getCenter(),Ua=Ha.getWidth(),nb=Ha.getHeight(),Ha=eb.x>=T.xmin&&eb.x<=T.xmax?(eb.x-T.xmin)/T.getWidth():.5,fa=eb.y>=T.ymin&&eb.y<=T.ymax?(eb.y-T.ymin)/T.getHeight():.5,Ha=eb.x-Ha*Ua,eb=eb.y-fa*nb,fa=new xa(Ha,eb,Ha+Ua,eb+nb,this.spatialReference)));else if(ob)fa=ha.getExtentForScale(this,rb,T);else if(D.isDefined($a))fa=T.expand($a);else if(eb||nb)K?(fa=K.end,bb=fa.getCenter(),vb=va(fa,Ha,Ua,bb),vb.x+=eb,vb.y+=nb,vb=ea(fa,Ha,Ua,
vb),fa=fa.offset(vb.x-bb.x,vb.y-bb.y)):(eb=new na(Ha/2+eb,Ua/2+nb),eb=ea(T,Ha,Ua,eb),Ua=T.getWidth(),nb=T.getHeight(),Ha=eb.x-Ua/2,eb=eb.y-nb/2,fa=new xa(Ha,eb,Ha+Ua,eb+nb,this.spatialReference));fa||(gb?(T=K?K.end:T,Ua=T.getWidth(),nb=T.getHeight(),Ha=gb.x-Ua/2,eb=gb.y-nb/2,fa=new xa(Ha,eb,Ha+Ua,eb+nb,this.spatialReference)):K&&(fa=K.end));fa?(this._extentDfd&&-1===this._extentDfd.fired&&(this._extentDfd.then(null,J),this._extentDfd.reject()),this._extentDfd=Ma,this.__setExtent(fa,null,hb,ra,K,Ba)):
Ma.reject();return Ma},__setExtent:function(K,T,fa,ra,Ba,Ma){try{if(this._firstLayerId)this.extent=K;else{var Ha=!0,Ua=this.spatialReference,Ta=Ba?Ba.divExtent:this.extent,Oa=this._fixExtent(K,ra||!1);K=Oa.extent;var Xa=K.getWidth(),$a=K.getHeight(),bb=Math.round;if(Ta){var hb=bb(1E6*Ta.getWidth()),gb=bb(1E6*Xa),mb=bb(1E6*Ta.getHeight()),rb=bb(1E6*$a);Ha=hb!==gb||mb!==rb}var ob,eb=Ba&&Ba.rect,nb=Ba&&Ba.divExtent;if(za.zoomDuration&&Ha&&Ta){nb=nb||new xa(Ta);eb=eb||{left:Ta.xmin,top:Ta.ymax,width:Ta.getWidth(),
height:Ta.getHeight()};var Ab={left:K.xmin,top:K.ymax,width:Xa,height:$a};var qb=new ba(K.xmin,K.ymax,Ua),sb=new ba(K.xmin,K.ymin,Ua),vb=new ba(this.extent.xmin,this.extent.ymax,Ua),Ob=new ba(this.extent.xmin,this.extent.ymin,Ua);(ob=la.getLineIntersection(vb,qb,Ob,sb,Ua))||Ba||(Ha=!1)}this._ratioW=this.width/Xa;this._ratioH=this.height/$a;var zb=this._zoomAnimDiv;if(Ha)if(ua(this._layersDiv,{left:"0px",top:"0px"}),T=new na(0,0),this.__visibleRect.x=this.__visibleRect.y=0,eb&&Ab){this._delta=T;zb.id=
"_zAD";zb.startingExtent=nb;zb.extent=K;zb.levelChange=Ha;zb.newLod=Oa.lod;zb.anchor=fa?fa:!ob&&Ba?Ba.anchor:va(this.extent,this.width,this.height,ob);var Hb=this.extent.getWidth()/K.getWidth();za.zoomAnimationThrottled&&1024<(1>Hb?1/Hb:Hb)?(this.__zoomStart(nb,zb.anchor),this.__zoom(nb,1,zb.anchor),this._fireOnScale(1,zb.anchor,!0),this.__zoomEnd(K,Hb,zb.anchor,Oa.lod,Ha)):(this._zoomAnim=u.resize({node:zb,start:eb,end:Ab,duration:za.zoomDuration,rate:za.zoomRate,beforeBegin:Ba?null:this._zoomStartHandler,
onAnimate:this._zoomingHandler,onEnd:this._zoomEndHandler}).play(),this._fireOnScale(Hb,zb.anchor,Ma))}else this._updateExtent(K,Ha,Ma),this._fireExtChg([this.extent,T,Ha,this.__LOD=Oa.lod]);else if(!this.__panning)if(!1===this.loaded||Ma)this._updateExtent(K,Ha,Ma),this._fireExtChg([this.extent,T,Ha,this.__LOD=Oa.lod]);else{this.__panning=!0;eb=(new W(0,0,this.width,this.height,this.spatialReference)).getCenter();eb.x=bb(eb.x);eb.y=bb(eb.y);var Eb=this._delta=this.toScreen(K.getCenter()),Wb=Math.abs(eb.x-
Eb.x),Pb=Math.abs(eb.y-Eb.y);this.optimizePanAnimation&&(Wb>2*this.width||Pb>2*this.height)?(this.__panStart(0,0),this.__pan(0,0),this.__visibleRect.x=this.__visibleRect.y=this.__visibleDelta.x=this.__visibleDelta.y=0,this.__panning=!1,this._delta=null,this._updateExtent(K,!1,Ma),this.onPanEnd(this.extent,new na(0,0)),this._fireExtChg([this.extent,new na(0,0),!0,this.__LOD])):(this.onPanStart(this.extent,new na(0,0)),this._panAnim=u.slideTo({node:zb,left:eb.x-Eb.x,top:eb.y-Eb.y,duration:za.panDuration,
rate:za.panRate,onAnimate:this._panningHandler,onEnd:this._panEndHandler}),this._panAnim.play())}}}catch(Ib){console.log(Ib.stack),console.error(Ib)}},_fireOnScale:function(K,T,fa){if("css-transforms"===this.navigationMode){var ra=this.__visibleDelta;this.onScale(t.scaleAt(K,{x:-1*(this.width/2-(T.x-ra.x)),y:-1*(this.height/2-(T.y-ra.y))}),fa)}},_stopAnim:function(){var K=this._zoomAnim,T=this._panAnim;if(K&&K._active){K.stop();T=K.curve.getValue(K._getStep());var fa=parseFloat(T.left),ra=parseFloat(T.top);
K=K.node;return{anchor:K.anchor,start:K.startingExtent,end:K.extent,level:K.newLod&&K.newLod.level,rect:T,divExtent:new xa(fa,ra-parseFloat(T.height),fa+parseFloat(T.width),ra,this.spatialReference)}}T&&T._active&&(T.stop(),T._fire("onEnd",[T.node]))},__getExtentForLevel:function(K,T,fa){var ra=this.__tileInfo;ra=ra&&ra.lods;K=D.isDefined(K)?K:0;fa=fa||this.extent;T=T||fa&&fa.getCenter();if(ra){if(T){fa=this.getMinZoom();var Ba=this.getMaxZoom();K>Ba&&(K=Ba);K<fa&&(K=fa);K=ra[K];ra=this.width*K.resolution/
2;fa=this.height*K.resolution/2;return{extent:new xa(T.x-ra,T.y-fa,T.x+ra,T.y+fa,T.spatialReference),lod:K}}}else if(fa)return{extent:fa.expand(!K||1>K?1:K).centerAt(T)};console.log("Map: "+this.invalidExtent)},_jobs:0,_incr:function(){1===++this._jobs&&(this.updating=!0,this.attr("data-updating",""),this.onUpdateStart())},_decr:function(){var K=--this._jobs;K?0>K&&(this._jobs=0):(this.updating=!1,this.attr("data-updating"),this.onUpdateEnd())},_fireEvent:function(K,T){this[K]&&this[K].apply(this,
T)},_updateExtent:function(K,T,fa){this.extent=K;K=this.spatialReference;this._viewInfo={view:new da({viewingMode:"map",scale:this.getScale()}),sr:K,version:T?++U:U};(T||fa)&&this._setClipRect();this._calcGeographicExtent()},_calcGeographicExtent:function(){var K=this.spatialReference;K&&(K.isWebMercator()?this.geographicExtent=Ca.webMercatorToGeographic(this._getAvailExtent(),!0):4326===K.wkid&&(this.geographicExtent=new xa(this._getAvailExtent().toJson())))},_fireExtChg:function(K){this.attr("data-zoom",
this.getZoom());this.attr("data-scale",this.getScale());this._fireEvent("onExtentChange",K);if(K=this._extentDfd)delete this._extentDfd,K.resolve()},attr:function(K,T){var fa=this.container;fa&&(null==T?fa.removeAttribute(K):fa.setAttribute(K,T));return this},onUpdateStart:function(){},onUpdateEnd:function(){},onLoad:function(){this._setClipRect();this._calcGeographicExtent()},onBeforeUnload:function(){},onUnload:function(){},onExtentChange:function(K,T,fa){},onTimeExtentChange:function(){},onWebGLEnabledChange: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.releaseAllWebGLContexts(),this._cleanUp(),clearTimeout(this._resizeTimerHandle),this._gc&&this._gc._cleanUp(),this._destroyed=!0,this.onUnload(this))},setCursor:function(K){ua(this.__container,"cursor",this.cursor=K)},setMapCursor:function(K){this.setCursor(this._cursor=K)},resetMapCursor:function(){this.setCursor(this._cursor)},setBackgroundColor:function(K){K&&!K.declaredClass&&(K=new I(K));this.backgroundColor=K||null;var T="";K&&(T=9>b("ie")?
K.toHex():"rgba("+K.toRgba().join(",")+")");e.set(this.root,{backgroundColor:T})},setInfoWindow:function(K){var T=this.infoWindow;T&&T.unsetMap(this);this.infoWindow=K;this.loaded&&K&&K.setMap(this)},setInfoWindowOnClick:function(K){this._params.showInfoWindowOnClick=K;this.popupManager&&this.popupManager.set("enabled",K)},getInfoWindowAnchor:function(K){return this.infoWindow&&this.infoWindow._getAnchor&&this.infoWindow._getAnchor(K)||"upperright"},toScreen:function(K,T){return va(this.extent,this.width,
this.height,K,T)},toMap:function(K){return ea(this.extent,this.width,this.height,K)},addLayer:function(K,T){K&&!this.getLayer(K.id)&&this._addLayer(K,K instanceof oa?this.graphicsLayerIds:this.layerIds,T);return K},addLayers:function(K){var T=[],fa=K.length,ra,Ba=K.length;var Ma=h.connect(this,"onLayerAddResult",function(Ha,Ua){-1!==n.indexOf(K,Ha)&&(fa--,T.push({layer:Ha,success:!Ua,error:Ua}),fa||(h.disconnect(Ma),this.onLayersAddResult(T)))});for(ra=0;ra<Ba;ra++)this.addLayer(K[ra]);return this},
removeLayer:function(K,T){var fa=K.id,ra=K instanceof oa?this.graphicsLayerIds:this.layerIds,Ba=wa(ra,fa);0<=Ba&&(this._forgetLayer(K),ra.splice(Ba,1),this.loaded||this._firstLayerId!==fa||(this._firstLayerId=null),K instanceof oa?this._detachGraphicsLayer(K):K.loaded&&(K.getMap()&&K._unsetMap(this,this._layersDiv),-1!==K.declaredClass.indexOf("VETiledLayer")&&this._onBingLayerRemove(K)),delete this._layers[fa],delete this._layerDivs[fa],T||this._reorderLayers(ra),this.onLayerRemove(K))},removeAllLayers:function(){var K=
this.layerIds,T;for(T=K.length-1;0<=T;T--)this.removeLayer(this._layers[K[T]],1);K=this.graphicsLayerIds;for(T=K.length-1;0<=T;T--)this.removeLayer(this._layers[K[T]],1);this.onLayersRemoved()},reorderLayer:function(K,T){q.isString(K)&&(c.deprecated(this.declaredClass+": Map.reorderLayer(/*String*/ id, /*Number*/ index) deprecated. Use Map.reorderLayer(/*Layer*/ layer, /*Number*/ index).",null,"v2.0"),K=this.getLayer(K));var fa=K.id,ra=K instanceof oa?this.graphicsLayerIds:this.layerIds;0>T?T=0:T>=
ra.length&&(T=ra.length-1);K=wa(ra,fa);-1!==K&&K!==T&&(ra.splice(K,1),ra.splice(T,0,fa),this._reorderLayers(ra))},getLayer:function(K){return this._layers[K]},setWebGLEnabled:function(K){var T=this.webglEnabled;this.webglEnabled=(K||!1)&&ia;if(T!==this.webglEnabled)this.onWebGLEnabledChange()},isWebGLContextAvailable:function(){return X.isContextAvailable()&&(-1===this.maxWebGLContexts||0<this.maxWebGLContexts&&this._webglContextOwners.length<this.maxWebGLContexts)},ownsWebGLContext:function(K){return-1!==
n.indexOf(this._webglContextOwners,K)},acquireWebGLContext:function(K){return-1!==n.indexOf(this._webglContextOwners,K)?!0:this.isWebGLContextAvailable()?(X.acquireContext(K),this._webglContextOwners.push(K),!0):!1},releaseWebGLContext:function(K){var T=n.indexOf(this._webglContextOwners,K);-1!==T&&this._webglContextOwners.splice(T,1);X.releaseContext(K)},releaseAllWebGLContexts:function(){var K=this._webglContextOwners.slice(0);n.forEach(K,function(T){this.releaseWebGLContext(T)},this)},syncHitTestForWebGL:function(K){var T,
fa=K.screenPoint;K=this.graphicsLayerIds.slice(0).reverse();n.some(K,function(ra){ra=this.getLayer(ra);ra.loaded&&!ra.suspended&&ra.hasWebGLSurface()&&(T=ra._div.syncHitTest(fa.x,fa.y));return!!T},this);return T},setExtent:function(K,T){K=new xa(K.toJson());var fa=K.getWidth(),ra=K.getHeight();return 0===fa&&0===ra?this.centerAt(new ba({x:K.xmin,y:K.ymin,spatialReference:K.spatialReference&&K.spatialReference.toJson()})):this._extentUtil(null,null,K,T)},getTargetExtent:function(K){if(K)return K=new xa(K.toJson()),
0!==K.getWidth()&&0!==K.getHeight()&&(K=(K=this._convertGeometry(this,K))&&this._fixExtent(K).extent),K},centerAt:function(K){return this._extentUtil(null,{mapCenter:K})},centerAndZoom:function(K,T){return this._extentUtil({targetLevel:T,mapCenter:K,levelOrFactor:!0})},getScale:function(){return this.__LOD?this.__LOD.scale:ha.getScale(this)},getResolution:function(){return this.__LOD?this.__LOD.resolution:this.extent?this.extent.getWidth()/this.width:0},getResolutionInMeters:function(){return this.getResolution()*
ha.getUnitValueForSR(this.spatialReference)},getResolutionForPopup:function(){var K=this.getResolution(),T=this.getResolutionInMeters(),fa=T/16;return 10>=fa?0:K/T*fa},getMinResolution:function(){return this._minResolution},getMaxResolution:function(){return this._maxResolution},getMinScale:function(){return this._params.minScale},getMaxScale:function(){return this._params.maxScale},getViewInfo:function(){return this._viewInfo},setScale:function(K){return this._extentUtil({targetScale:K})},getLayersVisibleAtScale:function(K){var T=
[];(K=K||this.getScale())&&n.forEach(this.layerIds.concat(this.graphicsLayerIds),function(fa){fa=this.getLayer(fa);fa.isVisibleAtScale(K)&&T.push(fa)},this);return T},getNumLevels:function(){var K=this.getMinZoom(),T=this.getMaxZoom();return K===T&&0>K?0:T-K+1},getLevel:function(){return this.__LOD?this.__LOD.level:-1},setLevel:function(K){if(-1<K)return this._extentUtil({targetLevel:K})},getZoom:function(){return this.getLevel()},setZoom:function(K){return this.setLevel(K)},getMinZoom:function(){return this._params.minZoom},
getMaxZoom:function(){return this._params.maxZoom},setBasemap:function(K){if(q.isObject(K)){var T=K;K=T.title}else T=y&&y[K];if(T){this._basemapDfd&&!this._basemapDfd.isFulfilled()&&this._basemapDfd.cancel();var fa=[],ra=0;n.forEach(T.baseMapLayers||T.layers,function(Ma){var Ha={id:Ma.id,displayLevels:Ma.displayLevels,opacity:D.isDefined(Ma.opacity)?Ma.opacity:null,visible:D.isDefined(Ma.visibility)?Ma.visibility:null};if(Ha=this._createBaseLayerInstance(Ma,Ha,K))fa.push(Ha),Ma.isReference||ra++},
this);fa.length&&ra?(this._basemapDfd=N(fa).otherwise(ma(this,function(Ma){this._basemapPending=!1;Ma&&"cancel"===Ma.dojoType&&n.forEach(fa,function(Ha){Ha.cancel()});throw Ma;})).then(function(Ma){var Ha=[],Ua=[];n.forEach(Ma,function(Ta){Ta&&(Ta.layerInfo&&Ha.push(Ta.layerInfo),Ta.layer&&Ua.push(Ta.layer))});return{basemapName:K,infos:Ha,layers:Ua}}).then(ma(this,this._waitForBaseLayers)).then(ma(this,this._setBasemap)),this._basemapPending=!this.loaded&&!this._basemapDfd.isFulfilled()):console.log("Map.setBasemap: "+
D.substitute({basemapName:K},this.invalidBasemap))}else{T=[];for(var Ba in y)T.push(Ba);console.log("Map.setBasemap: "+D.substitute({basemapName:K,list:T.join(",")},this.unknownBasemap))}},_createBaseLayerInstance:function(K,T,fa){var ra=new w;if(K.type)switch(K.type){case "OpenStreetMap":ra.resolve({layerInfo:K,layer:new V(T)});break;case "VectorTile":G(["./layers/VectorTileLayer"],function(Ma){Ba=A.normalize(K.url);ra.promise.isFulfilled()||ra.resolve({layerInfo:K,layer:new Ma(Ba,T)})});break;default:return console.log("Map.setBasemap: "+
D.substitute({basemapName:fa,type:K.type},this.unknownLayerType)),null}else{var Ba=A.normalize(K.url);ra.resolve({layerInfo:K,layer:new Y(Ba,T)})}return ra.promise},_waitForBaseLayers:function(K){var T=new w(E._dfdCanceller);T.promise.otherwise(function(ra){if(ra&&"cancel"===ra.dojoType){for(var Ba in T._layerEvents)ra=T._layerEvents[Ba],h.disconnect(ra[0]),h.disconnect(ra[1]);delete T._layerEvents}});if(!this.loaded)return T.resolve(K),T.promise;var fa=function(ra){T._pendingLayers--;ra=n.indexOf(K.layers,
this);-1<ra&&(ra=T._layerEvents[ra])&&(h.disconnect(ra[0]),h.disconnect(ra[1]));0>=T._pendingLayers&&(delete T._layerEvents,T.isFulfilled()||T.resolve(K))};T._pendingLayers=0;T._layerEvents={};n.forEach(K.layers,function(ra,Ba){ra&&T._pendingLayers++});n.forEach(K.layers,function(ra,Ba){ra&&(ra.loaded?fa(ra):T._layerEvents[Ba]=[h.connect(ra,"onLoad",ra,fa),h.connect(ra,"onError",ra,fa)])});return T.promise},_setBasemap:function(K){var T=K.layers,fa=K.infos,ra=0,Ba=!0;this._basemapPending=!1;this.loaded&&
(n.forEach(T,function(Ha,Ua){Ha.loaded&&(fa[Ua].isReference||ra++)}),Ba=ra);if(Ba){if(Ba=this._getBasemapLayerIds()){var Ma={basemapName:this._basemap,infos:y&&y[this._basemap]&&y[this._basemap].baseMapLayers};Ma.basemapName||(n.forEach(Ba,function(Ha){if(this.getLayer(Ha)instanceof V)return Ma.basemapName="osm",Ma.infos=y&&y.osm&&y.osm.baseMapLayers,!1},this),Ma.basemapName||(Ma=null))}this._removeBasemap(Ba);this._basemap=K.basemapName;this.basemapLayerIds=this._addBasemapLayers(T,fa);this.attr("data-basemap",
this.getBasemap());this.emit("basemap-change",{current:K,previous:Ma})}},_getBasemapLayerIds:function(){var K=[];n.forEach(this.layerIds,function(T){T=this.getLayer(T);T._basemapGalleryLayerType&&K.push(T.id)},this);return K},_addBasemapLayers:function(K,T){var fa=[],ra=[],Ba=0;n.forEach(K,function(Ma,Ha){T[Ha].isReference?fa.push(Ma):(Ma._basemapGalleryLayerType="basemap",this.addLayer(Ma,Ba++),ra.push(Ma.id))},this);fa.length&&n.forEach(fa,function(Ma){Ma.attr("data-reference",!0);Ma._basemapGalleryLayerType=
"reference";this.addLayer(Ma,"top");ra.push(Ma.id)},this);return ra},_removeBasemap:function(K){n.forEach(K,function(T){(T=this.getLayer(T))&&this.removeLayer(T)},this)},getBasemap:function(){return this._basemap||""},translate:function(K,T){K=K||0;T=T||0;if(!this._txTimer){this._tx=this._ty=0;var fa=this.toScreen(this.extent.getCenter());this.__panStart(fa.x,fa.y)}this._tx+=K;this._ty+=T;this.__pan(this._tx,this._ty);clearTimeout(this._txTimer);this._txTimer=setTimeout(this._endTranslate,150)},_endTranslate:function(){clearTimeout(this._txTimer);
this._txTimer=null;var K=this._tx,T=this._ty;this._tx=this._ty=0;this.__panEnd(K,T)},setTimeExtent:function(K){K=(this.timeExtent=K)?new K.constructor(K.toJson()):null;this.onTimeExtentChange(K)},setTimeSlider:function(K){this.timeSlider&&(S(this._tsTimeExtentChange_connect),this.timeSlider=this._tsTimeExtentChange_connect=null);K&&(this.timeSlider=K,this.setTimeExtent(K.getCurrentTimeExtent()),this._tsTimeExtentChange_connect=M(K,"onTimeExtentChange",this,"setTimeExtent"))},setVisibility:function(K){if(this.visible!==
K){this.visible=K;K||(this._display=this.container.style.display);this.container.style.display=K?this._display:"none";if(this.autoResize){var T=K?"resume":"pause";this._rszSignal[T]();this._oriSignal[T]()}K&&this.resize()}return this},resize:function(K){clearTimeout(this._resizeTimerHandle);this._destroyed||(!0===K?this._execResize():this._resizeTimerHandle=setTimeout(this._execResize,this.resizeDelay))},_timedResize:function(){this._resizeTimerHandle||this._execResize()},_execResize:function(){clearTimeout(this._resizeTimerHandle);
this._resizeTimerHandle=null;this.reposition();this._resize();this.autoResize&&this._startResizeTimer()},_resize:function(){var K=this.width,T=this.height,fa=e.get(this.container,"display"),ra=m.getContentBox(this.container);if(!("none"===fa||0>=ra.w||0>=ra.h||K===ra.w&&T===ra.h)){if(fa=this._zoomAnim||this._panAnim)fa.stop(),fa._fire("onEnd",[fa.node]);ua(this.root,{width:(this.width=ra.w)+"px",height:(this.height=ra.h)+"px"});ra=this.width;fa=this.height;this.attribution&&this.attribution.domNode&&
e.set(this.attribution.domNode,"maxWidth",Math.floor(ra*this._mapParams.attributionWidth)+"px");this.__visibleRect.update(this.__visibleRect.x,this.__visibleRect.y,ra,fa);this.__visibleDelta.update(this.__visibleDelta.x,this.__visibleDelta.y,ra,fa);var Ba=new W(this.extent);K=(new W(Ba.x,Ba.y,ra/K*Ba.width,fa/T*Ba.height,this.spatialReference)).getExtent();this.onResize(K,ra,fa);this._extentUtil(null,null,K,null,!0)}},reposition:function(){var K=this.position,T=K.x,fa=K.y;this._reposition();K=this.position;
if(T!==K.x||fa!==K.y)this.onReposition(K.x,K.y)},_reposition:function(){var K=m.position(this.container,!0),T=m.getPadBorderExtents(this.container);this.position.update(K.x+T.l,K.y+T.t)},_setClipRect:function(){delete this._clip;var K=7>=b("ie")||void 0===b("ie")&&7<=b("trident")?"rect(auto,auto,auto,auto)":"auto";if(this.wrapAround180){var T=this.width,fa=this.height,ra=this._getFrameWidth(),Ba=T-ra;0<Ba&&(K=Ba/2,K="rect(0px,"+(K+ra)+"px,"+fa+"px,"+K+"px)",fa=this.extent.getWidth(),T=ra/T*fa,this._clip=
[(fa-T)/2,T])}ua(this.__container,"clip",K)},_getAvailExtent:function(){var K=this.extent,T=this._clip;if(T){if(!K._clip){var fa=new W(K);fa.width=T[1];fa.x+=T[0];K._clip=fa.getExtent()}return K._clip}return K},_fixedPan:function(K,T){return this._extentUtil(null,{dx:K,dy:T})},panUp:function(){return this._fixedPan(0,-.75*this.height)},panUpperRight:function(){return this._fixedPan(.75*this.width,-.75*this.height)},panRight:function(){return this._fixedPan(.75*this.width,0)},panLowerRight:function(){return this._fixedPan(.75*
this.width,.75*this.height)},panDown:function(){return this._fixedPan(0,.75*this.height)},panLowerLeft:function(){return this._fixedPan(-.75*this.width,.75*this.height)},panLeft:function(){return this._fixedPan(-.75*this.width,0)},panUpperLeft:function(){return this._fixedPan(-.75*this.width,-.75*this.height)},enableSnapping:function(K){K=K||{};if("esri.SnappingManager"===K.declaredClass)this.snappingManager=K;else{var T=ka++,fa=this;this._rids&&this._rids.push(T);G(["./SnappingManager"],function(ra){var Ba=
fa._rids?n.indexOf(fa._rids,T):-1;-1!==Ba&&(fa._rids.splice(Ba,1),fa.snappingManager=new ra(q.mixin({map:fa},K)))})}return this.snappingManager},disableSnapping:function(){this.snappingManager&&this.snappingManager.destroy();this.snappingManager=null},_createLabelLayer:function(){!this._labels&&ta&&this.loaded&&(this._labels=new ta({id:"_internal_LabelLayer"}),this._labels._setMap(this,this._gc._surface),this._processLabelLayers(),this.on("layers-reordered",this._processLabelLayers))},_processLabelLayers:function(){null==
this._labelProcessor&&(this._labelProcessor=setTimeout(this._updateLabelLayers,0))},_updateLabelLayers:function(){this._labelProcessor=null;this._labels&&(this._labels.removeAllFeatureLayers(),n.forEach(this.graphicsLayerIds,function(K){K=this.getLayer(K);"function"===typeof K.applyEdits?this._labels.addFeatureLayer(K):"esri.layers.WFSLayer"===K.declaredClass&&this._labels.addFeatureLayer(K)},this))},_getMapImageLyr:function(){this.loaded&&!this._mapImageLyr&&(this._mapImageLyr=new ca,this._mapImageLyr._setMap(this,
this._layersDiv),this._placeMapImageLyr());return this._mapImageLyr},_placeMapImageLyr:function(){for(var K=this.layerIds,T=this._layerDivs,fa=!1,ra,Ba,Ma=K.length-1;0<=Ma;Ma--)if(ra=K[Ma],Ba=this.getLayer(ra),ra=T[ra],Ba&&ra&&!Ba._isReference){l.place(this._mapImageLyr._div,ra,"after");fa=!0;break}fa||l.place(this._mapImageLyr._div,this._layersDiv,"first")}});b("extend-esri")&&(z._CoreMap=r);return r})},"dojox/gfx/matrix":function(){define(["./_base","dojo/_base/lang"],function(G,x){var c=G.matrix=
{},r={};c._degToRad=function(h){return r[h]||(r[h]=Math.PI*h/180)};c._radToDeg=function(h){return h/Math.PI*180};c.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 w=c.normalize(h[0]),q=1;q<h.length;++q){var n=w,f=c.normalize(h[q]);w=new c.Matrix2D;w.xx=n.xx*f.xx+n.xy*f.yx;w.xy=n.xx*f.xy+n.xy*f.yy;w.yx=n.yx*f.xx+n.yy*f.yx;w.yy=n.yx*f.xy+n.yy*f.yy;w.dx=n.xx*f.dx+n.xy*f.dy+n.dx;w.dy=n.yx*f.dx+n.yy*f.dy+n.dy}x.mixin(this,w)}}else x.mixin(this,
h)};x.extend(c.Matrix2D,{xx:1,xy:0,yx:0,yy:1,dx:0,dy:0});x.mixin(c,{identity:new c.Matrix2D,flipX:new c.Matrix2D({xx:-1}),flipY:new c.Matrix2D({yy:-1}),flipXY:new c.Matrix2D({xx:-1,yy:-1}),translate:function(h,w){return 1<arguments.length?new c.Matrix2D({dx:h,dy:w}):new c.Matrix2D({dx:h.x,dy:h.y})},scale:function(h,w){return 1<arguments.length?new c.Matrix2D({xx:h,yy:w}):"number"==typeof h?new c.Matrix2D({xx:h,yy:h}):new c.Matrix2D({xx:h.x,yy:h.y})},rotate:function(h){var w=Math.cos(h);h=Math.sin(h);
return new c.Matrix2D({xx:w,xy:-h,yx:h,yy:w})},rotateg:function(h){return c.rotate(c._degToRad(h))},skewX:function(h){return new c.Matrix2D({xy:Math.tan(h)})},skewXg:function(h){return c.skewX(c._degToRad(h))},skewY:function(h){return new c.Matrix2D({yx:Math.tan(h)})},skewYg:function(h){return c.skewY(c._degToRad(h))},reflect:function(h,w){1==arguments.length&&(w=h.y,h=h.x);var q=h*h,n=w*w,f=q+n,g=2*h*w/f;return new c.Matrix2D({xx:2*q/f-1,xy:g,yx:g,yy:2*n/f-1})},project:function(h,w){1==arguments.length&&
(w=h.y,h=h.x);var q=h*h,n=w*w,f=q+n,g=h*w/f;return new c.Matrix2D({xx:q/f,xy:g,yx:g,yy:n/f})},normalize:function(h){return h instanceof c.Matrix2D?h:new c.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 w=new c.Matrix2D,q;for(q in h)"number"==typeof h[q]&&"number"==typeof w[q]&&w[q]!=h[q]&&(w[q]=h[q]);return w},invert:function(h){h=c.normalize(h);var w=h.xx*h.yy-h.xy*h.yx;return h=new c.Matrix2D({xx:h.yy/w,xy:-h.xy/w,yx:-h.yx/
w,yy:h.xx/w,dx:(h.xy*h.dy-h.yy*h.dx)/w,dy:(h.yx*h.dx-h.xx*h.dy)/w})},_multiplyPoint:function(h,w,q){return{x:h.xx*w+h.xy*q+h.dx,y:h.yx*w+h.yy*q+h.dy}},multiplyPoint:function(h,w,q){h=c.normalize(h);return"number"==typeof w&&"number"==typeof q?c._multiplyPoint(h,w,q):c._multiplyPoint(h,w.x,w.y)},multiplyRectangle:function(h,w){var q=c.normalize(h);w=w||{x:0,y:0,width:0,height:0};if(c.isIdentity(q))return{x:w.x,y:w.y,width:w.width,height:w.height};h=c.multiplyPoint(q,w.x,w.y);var n=c.multiplyPoint(q,
w.x,w.y+w.height),f=c.multiplyPoint(q,w.x+w.width,w.y);w=c.multiplyPoint(q,w.x+w.width,w.y+w.height);q=Math.min(h.x,n.x,f.x,w.x);var g=Math.min(h.y,n.y,f.y,w.y);return{x:q,y:g,width:Math.max(h.x,n.x,f.x,w.x)-q,height:Math.max(h.y,n.y,f.y,w.y)-g}},multiply:function(h){for(var w=c.normalize(h),q=1;q<arguments.length;++q){var n=w,f=c.normalize(arguments[q]);w=new c.Matrix2D;w.xx=n.xx*f.xx+n.xy*f.yx;w.xy=n.xx*f.xy+n.xy*f.yy;w.yx=n.yx*f.xx+n.yy*f.yx;w.yy=n.yx*f.xy+n.yy*f.yy;w.dx=n.xx*f.dx+n.xy*f.dy+n.dx;
w.dy=n.yx*f.dx+n.yy*f.dy+n.dy}return w},_sandwich:function(h,w,q){return c.multiply(c.translate(w,q),h,c.translate(-w,-q))},scaleAt:function(h,w,q,n){switch(arguments.length){case 4:return c._sandwich(c.scale(h,w),q,n);case 3:return"number"==typeof q?c._sandwich(c.scale(h),w,q):c._sandwich(c.scale(h,w),q.x,q.y)}return c._sandwich(c.scale(h),w.x,w.y)},rotateAt:function(h,w,q){return 2<arguments.length?c._sandwich(c.rotate(h),w,q):c._sandwich(c.rotate(h),w.x,w.y)},rotategAt:function(h,w,q){return 2<
arguments.length?c._sandwich(c.rotateg(h),w,q):c._sandwich(c.rotateg(h),w.x,w.y)},skewXAt:function(h,w,q){return 2<arguments.length?c._sandwich(c.skewX(h),w,q):c._sandwich(c.skewX(h),w.x,w.y)},skewXgAt:function(h,w,q){return 2<arguments.length?c._sandwich(c.skewXg(h),w,q):c._sandwich(c.skewXg(h),w.x,w.y)},skewYAt:function(h,w,q){return 2<arguments.length?c._sandwich(c.skewY(h),w,q):c._sandwich(c.skewY(h),w.x,w.y)},skewYgAt:function(h,w,q){return 2<arguments.length?c._sandwich(c.skewYg(h),w,q):c._sandwich(c.skewYg(h),
w.x,w.y)}});G.Matrix2D=c.Matrix2D;return c})},"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(G,x,c,r,h,w,q,n,f){var g=x.getObject("dojox.gfx",!0),a=g._base={};g._hasClass=function(b,p){return(b=b.getAttribute("className"))&&0<=(" "+b+" ").indexOf(" "+p+" ")};g._addClass=function(b,p){var t=b.getAttribute("className")||"";(!t||0>(" "+t+" ").indexOf(" "+
p+" "))&&b.setAttribute("className",t+(t?" ":"")+p)};g._removeClass=function(b,p){var t=b.getAttribute("className");t&&b.setAttribute("className",t.replace(new RegExp("(^|\\s+)"+p+"(\\s+|$)"),"$1$2"))};a._getFontMeasurements=function(){var b={"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},p;if(r("ie")){var t=h.doc.documentElement.style.fontSize||"";t||(h.doc.documentElement.style.fontSize="100%")}var z=n.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(p in b)z.style.fontSize=p,b[p]=16*Math.round(12*z.offsetHeight/16)/12/1E3;r("ie")&&(h.doc.documentElement.style.fontSize=t);h.body().removeChild(z);return b};var d=null;a._getCachedFontMeasurements=function(b){if(b||!d)d=a._getFontMeasurements();return d};var k=null,l={};a._getTextBox=function(b,p,t){var z=arguments.length,C;k||(k=n.create("div",
{style:{position:"absolute",top:"-10000px",left:"0",visibility:"hidden"}},h.body()));var y=k;y.className="";var D=y.style;D.borderWidth="0";D.margin="0";D.padding="0";D.outline="0";if(1<z&&p)for(C in p)C in l||(D[C]=p[C]);2<z&&t&&(y.className=t);y.innerHTML=b;y.getBoundingClientRect?(D=y.getBoundingClientRect(),D={l:D.left,t:D.top,w:D.width||D.right-D.left,h:D.height||D.bottom-D.top}):D=f.getMarginBox(y);y.innerHTML="";return D};a._computeTextLocation=function(b,p,t,z){var C={};switch(b.align){case "end":C.x=
b.x-p;break;case "middle":C.x=b.x-p/2;break;default:C.x=b.x}C.y=b.y-t*(z?.75:1);return C};a._computeTextBoundingBox=function(b){if(!g._base._isRendered(b))return{x:0,y:0,width:0,height:0};var p=b.getShape();var t=b.getFont()||g.defaultFont;b=b.getTextWidth();t=g.normalizedLength(t.size);p=a._computeTextLocation(p,b,t,!0);return{x:p.x,y:p.y,width:b,height:t}};a._isRendered=function(b){for(b=b.parent;b&&b.getParent;)b=b.parent;return null!==b};var m=0;a._getUniqueId=function(){do var b=G._scopeName+
"xUnique"+ ++m;while(q.byId(b));return b};var e=r("pointer-events")?"touchAction":r("MSPointer")?"msTouchAction":null;a._fixMsTouchAction=e?function(b){b.rawNode.style[e]="none"}:function(){};x.mixin(g,{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(p){var t=b[p];if(t)return new t;t=b[p]=function(){};t.prototype=g["default"+p];return new t}}(),normalizeColor:function(b){return b instanceof c?b:new c(b)},normalizeParameters:function(b,p){var t;if(p){var z={};for(t in b)t in p&&!(t in z)&&(b[t]=
p[t])}return b},makeParameters:function(b,p){var t=null;if(!p)return x.delegate(b);var z={};for(t in b)t in z||(z[t]=x.clone(t in p?p[t]:b[t]));return z},formatNumber:function(b,p){var t=b.toString();if(0<=t.indexOf("e"))t=b.toFixed(4);else{var z=t.indexOf(".");0<=z&&5<t.length-z&&(t=b.toFixed(4))}return 0>b?t:p?" "+t:t},makeFontString:function(b){return b.style+" "+b.variant+" "+b.weight+" "+b.size+" "+b.family},splitFontString:function(b){var p=g.getDefault("Font");b=b.split(/\s+/);if(!(5>b.length)){p.style=
b[0];p.variant=b[1];p.weight=b[2];var t=b[3].indexOf("/");p.size=0>t?b[3]:b[3].substring(0,t);var z=4;0>t&&("/"==b[4]?z=6:"/"==b[4].charAt(0)&&(z=5));z<b.length&&(p.family=b.slice(z).join(" "))}return p},cm_in_pt:72/2.54,mm_in_pt:7.2/2.54,px_in_pt:function(){return g._base._getCachedFontMeasurements()["12pt"]/12},pt2px:function(b){return b*g.px_in_pt()},px2pt:function(b){return b/g.px_in_pt()},normalizedLength:function(b){if(0===b.length)return 0;if(2<b.length){var p=g.px_in_pt(),t=parseFloat(b);
switch(b.slice(-2)){case "px":return t;case "pt":return t*p;case "in":return 72*t*p;case "pc":return 12*t*p;case "mm":return t*g.mm_in_pt*p;case "cm":return t*g.cm_in_pt*p}}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(b,p){return b&&p&&b===p},switchTo:function(b){var p="string"==typeof b?g[b]:b;p&&(w.forEach("Group Rect Ellipse Circle Line Polyline Image Text Path TextPath Surface createSurface fixTarget".split(" "),
function(t){g[t]=p[t]}),"string"==typeof b?g.renderer=b:w.some(["svg","vml","canvas","canvasWithEvents","silverlight"],function(t){return g.renderer=g[t]&&g[t].Surface===g.Surface?t:null}))}});return g})},"esri/basemaps":function(){define(["require","dojo/has","./kernel","dojo/i18n!./nls/jsapi"],function(G,x,c,r){G={streets:{title:r.basemaps.streets,thumbnailUrl:G.toUrl("./images/basemap/streets.jpg"),itemId:"d8855ee4d3d74413babfb0f41203b168",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"}]},
satellite:{title:r.basemaps.satellite,thumbnailUrl:G.toUrl("./images/basemap/satellite.jpg"),itemId:"86de95d4e0244cba80f0fa2c9403a7b2",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"}]},hybrid:{title:r.basemaps.hybrid,thumbnailUrl:G.toUrl("./images/basemap/hybrid.jpg"),itemId:"413fd05bbd7342f5991d5ec96f4f8b18",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"},{url:"https://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer",
isReference:!0}]},terrain:{title:r.basemaps.terrain,thumbnailUrl:G.toUrl("./images/basemap/terrain.jpg"),itemId:"aab054ab883c4a4094c72e949566ad40",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer"},{url:"https://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer",isReference:!0}]},topo:{title:r.basemaps.topo,thumbnailUrl:G.toUrl("./images/basemap/topo.jpg"),itemId:"6e03e8c26aad4b9c92a87c1063ddb0e3",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"}]},
gray:{title:r.basemaps.gray,thumbnailUrl:G.toUrl("./images/basemap/gray.jpg"),itemId:"8b3b470883a744aeb60e5fff0a319ce7",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer"},{url:"https://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer",isReference:!0}]},"dark-gray":{title:r.basemaps["dark-gray"],thumbnailUrl:G.toUrl("./images/basemap/dark-gray.jpg"),itemId:"da65bacab5bd4defb576f839b6b28098",
baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer"},{url:"https://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Reference/MapServer",isReference:!0}]},oceans:{title:r.basemaps.oceans,thumbnailUrl:G.toUrl("./images/basemap/oceans.jpg"),itemId:"48b8cec7ebf04b5fbdcaf70d09daff21",baseMapLayers:[{url:"https://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"},{url:"https://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer",
isReference:!0}]},"national-geographic":{title:r.basemaps["national-geographic"],thumbnailUrl:G.toUrl("./images/basemap/national-geographic.jpg"),itemId:"509e2d6b034246d692a461724ae2d62c",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer"}]},osm:{title:r.basemaps.osm,thumbnailUrl:G.toUrl("./images/basemap/osm.jpg"),itemId:"5d2bfa736f8448b3a1708e1f6be23eed",baseMapLayers:[{type:"OpenStreetMap"}]},"dark-gray-vector":{title:r.basemaps["dark-gray"],
thumbnailUrl:G.toUrl("./images/basemap/dark-gray.jpg"),itemId:"c11ce4f7801740b2905eb03ddc963ac8",baseMapLayers:[{url:"https://www.arcgis.com/sharing/rest/content/items/c11ce4f7801740b2905eb03ddc963ac8/resources/styles/root.json",type:"VectorTile"}]},"gray-vector":{title:r.basemaps.gray,thumbnailUrl:G.toUrl("./images/basemap/gray.jpg"),itemId:"8a2cba3b0ebf4140b7c0dc5ee149549a",baseMapLayers:[{url:"https://www.arcgis.com/sharing/rest/content/items/8a2cba3b0ebf4140b7c0dc5ee149549a/resources/styles/root.json",
type:"VectorTile"}]},"streets-vector":{title:r.basemaps.streets,thumbnailUrl:G.toUrl("./images/basemap/streets.jpg"),itemId:"de26a3cf4cc9451298ea173c4b324736",baseMapLayers:[{url:"https://www.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json",type:"VectorTile"}]},"topo-vector":{title:r.basemaps.topo,thumbnailUrl:G.toUrl("./images/basemap/topo.jpg"),itemId:"7dc6cea0b1764a1f9af2e679f642f0f5",baseMapLayers:[{url:"https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},
{url:"https://www.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json",type:"VectorTile"}]},"streets-night-vector":{title:r.basemaps["streets-night-vector"],thumbnailUrl:G.toUrl("./images/basemap/streets-night.jpg"),itemId:"86f556a2d1fd468181855a35e344567f",baseMapLayers:[{url:"https://www.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json",type:"VectorTile"}]},"streets-relief-vector":{title:r.basemaps["streets-relief-vector"],
thumbnailUrl:G.toUrl("./images/basemap/streets-relief.jpg"),itemId:"b266e6d17fc345b498345613930fbd76",baseMapLayers:[{url:"https://www.arcgis.com/sharing/rest/content/items/b266e6d17fc345b498345613930fbd76/resources/styles/root.json",type:"VectorTile"}]},"streets-navigation-vector":{title:r.basemaps["streets-navigation-vector"],thumbnailUrl:G.toUrl("./images/basemap/streets-navigation.jpg"),itemId:"63c47b7177f946b49902c24129b87252",baseMapLayers:[{url:"https://www.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json",
type:"VectorTile"}]}};x("extend-esri")&&(c.basemaps=G);return G})},"esri/Evented":function(){define("dojo/_base/declare dojo/_base/lang dojo/aspect dojo/Evented dojo/has ./kernel".split(" "),function(G,x,c,r,h,w){G=G([r],{declaredClass:"esri.Evented",registerConnectEvents:function(){var q=this.constructor,n=this.constructor._meta.parents,f=[{}],g={},a,d=function(l,m){x.isArray(l)||(l=[l]);for(var e=0;e<l.length;e++){var b=l[e];b._meta&&b._meta.parents&&d(b._meta.parents,m);b.prototype._eventMap&&
m.push(x.mixin({},b.prototype._eventMap))}return m};if(!q._onMap){d(n,f);f.push(this._eventMap);n=x.mixin.apply(this,f);for(k in this)/^on\w/.test(k)&&x.isFunction(this[k])&&(f=this._hyphenLower(k).toLowerCase(),n[f]||(g[f]={method:k}));for(a in n){var k=this._onCamelCase(a);g[a]={method:k,argKeys:n[a]}}q._onMap=g;return q._onMap}},on:function(q,n){if(-1<q.indexOf(",")){for(var f=q.split(/\s*,\s*/),g=f.length,a=[];g--;)a.push(this.on(f[g],n));a.remove=function(){for(var l=0;l<a.length;l++)a[l].remove()};
return a}f=this.constructor._onMap||this.registerConnectEvents();g="string"==typeof q&&q.toLowerCase();var d=this._onCamelCase(g),k=f&&f[g];return(d=k&&k.method||this[d]&&x.isFunction(this[d])&&d)?k&&x.isArray(k.argKeys)?(f=this._onArr2Obj(n,f[g].argKeys),c.after(this,d,f,!0)):c.after(this,d,function(l){l=l||{};l.target||(l.target=this);n.call(this,l)},!0):this.inherited(arguments)},emit:function(q,n){var f,g,a=q.toLowerCase();var d=this._onCamelCase(q);var k=this.constructor._onMap||this.registerConnectEvents();
d=(g=k&&k[a]&&k[a].method||x.isFunction(this[d])&&d)&&this[g];g&&k&&k[a]&&this._onObj2Arr(function(){f=Array.prototype.slice.call(arguments)},k[a].argKeys)(n);n=n||{};n.target||(n.target=this);if(d){var l=f&&f.length?f:[n];l=d.apply(this,l)}this.inherited(arguments,[q,n]);return l},_onObj2Arr:function(q,n){if(n){var f=this;return function(g){var a,d=[],k=n.length;for(a=0;a<k;a++)d[a]=g[n[a]];q.apply(f,d)}}return q},_onArr2Obj:function(q,n){if(n){var f=this;return function(){var g,a={},d=arguments.length;
for(g=0;g<d;g++)a[n[g]]=arguments[g];a.target||(a.target=f);q.call(f,a)}}return q},_hyphenLower:function(q){return q.replace(/^on/,"").replace(/[A-Z](?=[a-z])/g,function(n,f){return(f?"-":"")+n.toLowerCase()})},_onCamelCase:function(q){return"on"+q.substr(0,1).toUpperCase()+q.substr(1).replace(/\-([a-z])/g,function(n,f){return f.toUpperCase()})}});h("extend-esri")&&(w.Evented=G);return G})},"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(G,x,c,r,h,w,q,n,f){var g={animateRange:function(a){var d=a.range;return new x.Animation(c.mixin({curve:new x._Line(d.start,d.end)},a))},resize:function(a){var d=a.node=r.byId(a.node),k=a.start,l=a.end;k||(k=h.getMarginBox(d),d=h.getPadBorderExtents(d),k=a.start={left:k.l+d.l,top:k.t+d.t,width:k.w-d.w,height:k.h-d.h});l||(l=a.anchor?a.anchor:{x:k.left,y:k.top},d=a.size,l=a.end={left:k.left-(d.width-k.width)*(l.x-k.left)/k.width,top:k.top-(d.height-k.height)*(l.y-k.top)/k.height,width:d.width,
height:d.height});return x.animateProperty(c.mixin({properties:{left:{start:k.left,end:l.left},top:{start:k.top,end:l.top},width:{start:k.width,end:l.width},height:{start:k.height,end:l.height}}},a))},slideTo:function(a){var d=a.node=r.byId(a.node),k=w.getComputedStyle,l=null,m=null,e=function(){return function(){var b="absolute"==d.style.position?"absolute":"relative";l="absolute"==b?d.offsetTop:parseInt(k(d).top)||0;m="absolute"==b?d.offsetLeft:parseInt(k(d).left)||0;"absolute"!=b&&"relative"!=
b&&(b=h.position(d,!0),l=b.y,m=b.x,d.style.position="absolute",d.style.top=l+"px",d.style.left=m+"px")}}();e();a=x.animateProperty(c.mixin({properties:{top:{start:l,end:a.top||0},left:{start:m,end:a.left||0}}},a));G.connect(a,"beforeBegin",a,e);return a},flash:function(a){a=c.mixin({end:"#f00",duration:500,count:1},a);a.duration/=2*a.count;var d=r.byId(a.node),k=a.start;k||(k=w.getComputedStyle(d).backgroundColor);var l=a.end,m=[],e=a.count;d={node:d,duration:a.duration};for(a=0;a<e;a++)m.push(x.animateProperty(c.mixin({properties:{backgroundColor:{start:k,
end:l}}},d))),m.push(x.animateProperty(c.mixin({properties:{backgroundColor:{start:l,end:k}}},d)));return q.chain(m)}};n("extend-esri")&&c.mixin(c.getObject("fx",!0,f),g);return g})},"dojo/fx":function(){define("./_base/lang ./Evented ./_base/kernel ./_base/array ./aspect ./_base/fx ./dom ./dom-style ./dom-geometry ./ready require".split(" "),function(G,x,c,r,h,w,q,n,f,g,a){c.isAsync||g(0,function(){a(["./fx/Toggler"])});c=c.fx={};g={_fire:function(l,m){this[l]&&this[l].apply(this,m||[]);return this}};
var d=function(l){this._index=-1;this._animations=l||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;r.forEach(this._animations,function(m){m&&("undefined"!=typeof m.duration&&(this.duration+=m.duration),m.delay&&(this.duration+=m.delay))},this)};d.prototype=new x;G.extend(d,{_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",G.hitch(this,"_onAnimate"),!0),this._onEndCtx=h.after(this._current,"onEnd",G.hitch(this,"_onEnd"),!0),this._current.play(0,!0))},play:function(l,m){this._current||(this._current=this._animations[this._index=0]);if(!m&&"playing"==this._current.status())return this;var e=h.after(this._current,"beforeBegin",G.hitch(this,function(){this._fire("beforeBegin")}),!0),b=h.after(this._current,
"onBegin",G.hitch(this,function(t){this._fire("onBegin",arguments)}),!0),p=h.after(this._current,"onPlay",G.hitch(this,function(t){this._fire("onPlay",arguments);e.remove();b.remove();p.remove()}));this._onAnimateCtx&&this._onAnimateCtx.remove();this._onAnimateCtx=h.after(this._current,"onAnimate",G.hitch(this,"_onAnimate"),!0);this._onEndCtx&&this._onEndCtx.remove();this._onEndCtx=h.after(this._current,"onEnd",G.hitch(this,"_onEnd"),!0);this._current.play.apply(this._current,arguments);return this},
pause:function(){if(this._current){var l=h.after(this._current,"onPause",G.hitch(this,function(m){this._fire("onPause",arguments);l.remove()}),!0);this._current.pause()}return this},gotoPercent:function(l,m){this.pause();var e=this.duration*l;this._current=null;r.some(this._animations,function(b,p){if(e<=b.duration)return this._current=b,this._index=p,!0;e-=b.duration;return!1},this);this._current&&this._current.gotoPercent(e/this._current.duration);m&&this.play();return this},stop:function(l){if(this._current){if(l){for(;this._index+
1<this._animations.length;++this._index)this._animations[this._index].stop(!0);this._current=this._animations[this._index]}var m=h.after(this._current,"onStop",G.hitch(this,function(e){this._fire("onStop",arguments);m.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()}});G.extend(d,g);c.chain=function(l){return new d(G.isArray(l)?
l:Array.prototype.slice.call(l,0))};var k=function(l){this._animations=l||[];this._connects=[];this.duration=this._finished=0;r.forEach(l,function(e){var b=e.duration;e.delay&&(b+=e.delay);this.duration<b&&(this.duration=b);this._connects.push(h.after(e,"onEnd",G.hitch(this,"_onEnd"),!0))},this);this._pseudoAnimation=new w.Animation({curve:[0,1],duration:this.duration});var m=this;r.forEach("beforeBegin onBegin onPlay onAnimate onPause onStop onEnd".split(" "),function(e){m._connects.push(h.after(m._pseudoAnimation,
e,function(){m._fire(e,arguments)},!0))})};G.extend(k,{_doAction:function(l,m){r.forEach(this._animations,function(e){e[l].apply(e,m)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(l,m){var e=this._pseudoAnimation;e[l].apply(e,m)},play:function(l,m){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(l,
m){var e=this.duration*l;r.forEach(this._animations,function(b){b.gotoPercent(b.duration<e?1:e/b.duration,m)});this._call("gotoPercent",arguments);return this},stop:function(l){this._doAction("stop",arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){this.stop();r.forEach(this._connects,function(l){l.remove()})}});G.extend(k,g);c.combine=function(l){return new k(G.isArray(l)?l:Array.prototype.slice.call(l,0))};c.wipeIn=function(l){var m=
l.node=q.byId(l.node),e=m.style,b;l=w.animateProperty(G.mixin({properties:{height:{start:function(){b=e.overflow;e.overflow="hidden";if("hidden"==e.visibility||"none"==e.display)return e.height="1px",e.display="",e.visibility="",1;var t=n.get(m,"height");return Math.max(t,1)},end:function(){return m.scrollHeight}}}},l));var p=function(){e.height="auto";e.overflow=b};h.after(l,"onStop",p,!0);h.after(l,"onEnd",p,!0);return l};c.wipeOut=function(l){var m=(l.node=q.byId(l.node)).style,e;l=w.animateProperty(G.mixin({properties:{height:{end:1}}},
l));h.after(l,"beforeBegin",function(){e=m.overflow;m.overflow="hidden";m.display=""},!0);var b=function(){m.overflow=e;m.height="auto";m.display="none"};h.after(l,"onStop",b,!0);h.after(l,"onEnd",b,!0);return l};c.slideTo=function(l){var m=null,e=null,b=function(p){return function(){var t=n.getComputedStyle(p),z=t.position;m="absolute"==z?p.offsetTop:parseInt(t.top)||0;e="absolute"==z?p.offsetLeft:parseInt(t.left)||0;"absolute"!=z&&"relative"!=z&&(t=f.position(p,!0),m=t.y,e=t.x,p.style.position=
"absolute",p.style.top=m+"px",p.style.left=e+"px")}}(l.node=q.byId(l.node));b();l=w.animateProperty(G.mixin({properties:{top:l.top||0,left:l.left||0}},l));h.after(l,"beforeBegin",b,!0);return l};return c})},"esri/deferredUtils":function(){define(["dojo/_base/lang","dojo/has","./kernel"],function(G,x,c){var r={_dfdCanceller:function(h){h.canceled=!0;var w=h._pendingDfd;if(!h.isFulfilled()&&w&&!w.isFulfilled()){w.cancel();var q=w.results&&w.results[1]}h._pendingDfd=null;return q},_fixDfd:function(h){var w=
h.then;h.then=function(q,n,f){if(q){var g=q;q=function(a){return a&&a._argsArray?g.apply(null,a):g(a)}}return w.call(this,q,n,f)};return h},_resDfd:function(h,w,q){var n=w.length;1===n?q?h.errback(w[0]):h.callback(w[0]):1<n?(w._argsArray=!0,h.callback(w)):h.callback()}};x("extend-esri")&&G.mixin(c,r);return r})},"esri/tileUtils":function(){define(["dojo/_base/array","dojo/has","./kernel","./geometry/Point","./geometry/Extent"],function(G,x,c,r,h){var w={_addFrameInfo:function(q,n){var f,g,a=2*n.origin[1],
d=n.origin[0],k=q.origin.x,l=q.width,m;G.forEach(q.lods,function(e){f=Math.round(a/e.resolution);g=Math.ceil(f/l);m=Math.floor((d-k)/(l*e.resolution));e._frameInfo||(e._frameInfo=[g,m,m+g-1,f])})},getContainingTileCoords:function(q,n,f){var g=q.origin;f=f.resolution;return{row:Math.floor((g.y-n.y)/(q.height*f)),col:Math.floor((n.x-g.x)/(q.width*f))}},getCandidateTileInfo:function(q,n,f){var g=q.width;var a=q.height,d=f.xmax-f.xmin,k=f.ymax-f.ymin,l=q.__tileInfo===n,m=l?q.getMinZoom():-1;l=l?q.getMaxZoom():
-1;var e=-1,b=n.lods,p=Math.abs,t;l=-1<l?l:b.length-1;for(m=-1<m?m:0;m<=l;m++)if(t=b[m]){var z=d>k?p(k-a*t.resolution):p(d-g*t.resolution);if(0>e||z<=e){var C=t;e=z}else break}g=C;C=g.resolution;a=(f.xmin+f.xmax)/2;d=(f.ymin+f.ymax)/2;k=q.width/2*C;C*=q.height/2;a=new h(a-k,d-C,a+k,d+C,f.spatialReference);f=new r(a.xmin,a.ymax,f.spatialReference);l=g.resolution;k=n.width;d=n.height;n=n.origin;q=q.__visibleDelta;C=Math.floor;b=k*l;p=d*l;l=C((n.y-f.y)/p);e=C((f.x-n.x)/b);m=n.y-l*p;n=C(Math.abs((f.x-
(n.x+e*b))*k/b))+q.x;q=C(Math.abs((f.y-m)*d/p))+q.y;return{tile:{point:f,coords:{row:l,col:e},offsets:{x:n,y:q}},lod:g,extent:a}},getTileExtent:function(q,n,f,g){var a=q.origin;n=q.lods[n].resolution;var d=q.width,k=q.height;return new h(g*n*d+a.x,a.y-(f+1)*n*k,(g+1)*n*d+a.x,a.y-f*n*k,q.spatialReference)}};x("extend-esri")&&(c.TileUtils=w);return w})},"esri/geometry/Point":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ../srUtils".split(" "),
function(G,x,c,r,h,w,q,n){function f(l,m){89.99999<m?m=89.99999:-89.99999>m&&(m=-89.99999);m*=.017453292519943;return[111319.49079327169*l,3189068.5*Math.log((1+Math.sin(m))/(1-Math.sin(m)))]}function g(l,m,e){l=l/6378137*57.29577951308232;return e?[l,57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*m/6378137)))]:[l-360*Math.floor((l+180)/360),57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*m/6378137)))]}function a(){}function d(){}function k(l){var m=l._json;l._unquantizeFn?
(m=l._unquantizeFn({x:m.x,y:m.y}),l._xVal=m.x,l._yVal=m.y,l._unquantizeFn=null):(l._xVal=m.x,l._yVal=m.y);l._json=null}w={type:"point",x:0,y:0};G=G(q,{declaredClass:"esri.geometry.Point",type:"point",x:0,y:0,constructor:function(l,m,e){x.isArray(l)?(this.x=l[0],this.y=l[1],this.spatialReference=m):h.isObject(l)?(h.mixin(this,l),null!=this.latitude&&(this.y=this.latitude),null!=this.longitude&&(this.x=this.longitude),this.spatialReference&&(this.spatialReference=n.createSpatialReference(this.spatialReference))):
(this.x=l,this.y=m,this.spatialReference=e);this.verifySR()},offset:function(l,m){return new this.constructor(this.x+l,this.y+m,this.spatialReference)},setX:function(l){this.x=l;this.clearCache();return this},setY:function(l){this.y=l;this.clearCache();return this},setLongitude:function(l){var m=this.spatialReference;m&&(m._isWebMercator()?this.setX(f(l,this.y)[0]):4326===m.wkid&&this.setX(l));return this},setLatitude:function(l){var m=this.spatialReference;m&&(m._isWebMercator()?this.setY(f(this.x,
l)[1]):4326===m.wkid&&this.setY(l));return this},getLongitude:function(){var l=this.spatialReference;if(l)if(l._isWebMercator())var m=g(this.x,this.y)[0];else 4326===l.wkid&&(m=this.x);return m},getLatitude:function(){var l=this.spatialReference;if(l)if(l._isWebMercator())var m=g(this.x,this.y)[1];else 4326===l.wkid&&(m=this.y);return m},update:function(l,m){this.x=l;this.y=m;this.clearCache();return this},normalize:function(){var l=this.x,m=this.spatialReference;if(m){var e=m._getInfo();e&&(l=this._normalizeX(l,
e))}return new this.constructor(l,this.y,m)},_normalizeX:function(l,m){var e=m.valid[0],b=m.valid[1];m=2*b;l>b?(e=Math.ceil(Math.abs(l-b)/m),l-=e*m):l<e&&(e=Math.ceil(Math.abs(l-e)/m),l+=e*m);return l},toJson:function(){var l={x:this.x,y:this.y},m=this.spatialReference;m&&(l.spatialReference=m.toJson());return l}});a.prototype=G.prototype;d.prototype=new a;Object.defineProperty(d.prototype,"x",{get:function(){this._json&&k(this);return this._xVal},set:function(l){this._xVal=l}});Object.defineProperty(d.prototype,
"y",{get:function(){this._json&&k(this);return this._yVal},set:function(l){this._yVal=l}});d.prototype.setupLazyUnquantization=function(l,m){this._unquantizeFn=l;this._json=m};G.simpleConstructor=a;G.accessorConstructor=d;G.lngLatToXY=f;G.xyToLngLat=g;G.defaultProps=w;G.metersPerDegree=6378137*Math.PI/180;c("extend-esri")&&(x.setObject("geometry.Point",G,r),r.geometry.defaultPoint=w);return G})},"esri/SpatialReference":function(){define(["dojo/_base/declare","dojo/_base/array","dojo/has","./kernel",
"./lang"],function(G,x,c,r,h){function w(){}var q=[-2.0037508342788905E7,2.0037508342788905E7],n=[-2.0037508342787E7,2.0037508342787E7];G=G(null,{declaredClass:"esri.SpatialReference",constructor:function(f){f&&(h.isObject(f)?h.mixin(this,f):h.isString(f)?this.wkt=f:this.wkid=f)},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:q,origin:n,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:q,origin:n,
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:q,origin:n,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:q,origin:n,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!==x.indexOf([102113,102100,3857,3785],this.wkid)},_isWrappable:function(){return-1!==x.indexOf([102113,102100,3857,3785,4326],this.wkid)},_getInfo:function(){return this.wkid?this._info[this.wkid]:null},_canProject:function(f){var g=!1;f&&(g=this.isWebMercator()&&4326===f.wkid||f.isWebMercator()&&4326===this.wkid);return g},isWebMercator:function(){return this._isWebMercator()},equals:function(f){var g=!1;f&&(this===f&&
(g=!0),this.wkid||f.wkid?g=this.wkid===f.wkid||this.isWebMercator()&&f.isWebMercator()||this.wkid===f.latestWkid||f.wkid===this.latestWkid:this.wkt&&f.wkt&&(g=this.wkt.toUpperCase()===f.wkt.toUpperCase()));return g},toJson:function(){var f=null;null!=this.wkid?f={wkid:this.wkid}:null!=this.wkt&&(f={wkt:this.wkt});f&&null!=this.latestWkid&&(f.latestWkid=this.latestWkid);return f}});w.prototype=G.prototype;G.simpleConstructor=w;c("extend-esri")&&(r.SpatialReference=G);return G})},"esri/geometry/Geometry":function(){define(["dojo/_base/declare",
"dojo/_base/lang","dojo/has","../kernel","../SpatialReference"],function(G,x,c,r,h){G=G(null,{declaredClass:"esri.geometry.Geometry",spatialReference:null,type:null,cache:void 0,setSpatialReference:function(w){this.spatialReference=w;return this},verifySR:function(){this.spatialReference||this.setSpatialReference(new h(4326))},getExtent:function(){return null},clearCache:function(){this.cache=void 0},getCacheValue:function(w){return this.cache&&this.cache[w]},setCacheValue:function(w,q){this.cache||
(this.cache={});this.cache[w]=q}});c("extend-esri")&&x.setObject("geometry.Geometry",G,r);return G})},"esri/srUtils":function(){define(["./SpatialReference","./ImageSpatialReference","./kernel","./sniff","dojo/_base/lang"],function(G,x,c,r,h){function w(n){var f=!1;n&&(n.ics||n.icsid)&&(f=!0);return f}var q={isICS:w,createSpatialReference:function(n){var f=null;n&&(f=w(n)?new x(n):new G(n));return f}};r("extend-esri")&&h.mixin(c,q);return q})},"esri/ImageSpatialReference":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ./kernel ./lang ./SpatialReference".split(" "),
function(G,x,c,r,h,w){G=G(w,{declaredClass:"esri.ImageSpatialReference",constructor:function(q){q&&x.isObject(q)&&x.mixin(this,q)},icsid:null,icsns:null,ics:null,_isWebMercator:function(){return!1},_isWrappable:function(){return!1},equals:function(q){var n=!1;if(q)if(this.icsid&&q.icsid){if(n=this.icsid===q.icsid,this.icsns||q.icsns)n=n&&this.icsns===q.icsns}else this.ics&&q.ics&&(n=this.ics===q.ics);return n},toJson:function(q){var n=null,f=h.isDefined;q=f(q)?q:!0;f(this.icsid)?(n={icsid:this.icsid},
f(this.icsns)&&(n.icsns=this.icsns)):f(this.ics)&&(n={ics:this.ics});f(this.url)&&f(n)&&q&&(n.url=this.url);return n}});c("extend-esri")&&(r.ImageSpatialReference=G);return G})},"esri/geometry/Extent":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ./Point ./webMercatorUtils ./mathUtils ../srUtils".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d){function k(){}var l={type:"extent",xmin:0,ymin:0,xmax:0,ymax:0},m=G(n,{declaredClass:"esri.geometry.Extent",
type:"extent",xmin:0,ymin:0,xmax:0,ymax:0,constructor:function(e,b,p,t,z){w.isObject(e)?(w.mixin(this,e),this.spatialReference&&(this.spatialReference=d.createSpatialReference(this.spatialReference))):this.update(e,b,p,t,z);this.verifySR()},getWidth:function(){return Math.abs(this.xmax-this.xmin)},getHeight:function(){return Math.abs(this.ymax-this.ymin)},getCenter:function(){return new f((this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2,this.spatialReference)},getTopLeft:function(){return new f(this.xmin,
this.ymax,this.spatialReference)},getTopRight:function(){return new f(this.xmax,this.ymax,this.spatialReference)},getBottomLeft:function(){return new f(this.xmin,this.ymin,this.spatialReference)},getBottomRight:function(){return new f(this.xmax,this.ymin,this.spatialReference)},centerAt:function(e){var b=this.getCenter(),p=e.x-b.x;e=e.y-b.y;return new m(this.xmin+p,this.ymin+e,this.xmax+p,this.ymax+e,this.spatialReference)},update:function(e,b,p,t,z){this.xmin=e;this.ymin=b;this.xmax=p;this.ymax=
t;this.spatialReference=z;this.clearCache();return this},offset:function(e,b){return new m(this.xmin+e,this.ymin+b,this.xmax+e,this.ymax+b,this.spatialReference)},expand:function(e){var b=(1-e)/2;e=this.getWidth()*b;b*=this.getHeight();return new m(this.xmin+e,this.ymin+b,this.xmax-e,this.ymax-b,this.spatialReference)},intersects:function(e){if(!e)return!1;var b=e.type,p=this.spatialReference,t=e.spatialReference;p&&t&&!p.equals(t)&&p._canProject(t)&&(e=p.isWebMercator()?g.geographicToWebMercator(e):
g.webMercatorToGeographic(e,!0));switch(b){case "point":return this.contains(e);case "multipoint":return this._intersectsMultipoint(e);case "extent":return this._intersectsExtent(e);case "polygon":return this._intersectsPolygon(e);case "polyline":return this._intersectsPolyline(e)}},normalize:function(){var e=this._normalize(!1,!0);c.isArray(e)||(e=[e]);return e},shiftCentralMeridian:function(){return this._normalize(!0)},bisect:function(){var e=this.spatialReference,b=e&&e._getInfo(),p=[],t=0;if(b&&
this._isOutOfBounds(b)){var z=this;t=z.xmin;var C=z.ymin,y=z.ymax,D=b.valid[0],B=b.valid[1];z.getWidth()>2*B&&(z=z.getCenter(),z=new m(z.x-B,C,z.x+B,y,new q(e.toJson())));t=z.xmin-t;var u=this._normalizeX(z.xmin,b);b=this._normalizeX(z.xmax,b);u.frameId===b.frameId?p.push(new m(u.x,C,b.x,y,new q(e.toJson()))):p.push(new m(u.x,C,B,y,new q(e.toJson())),new m(D,C,b.x,y,new q(e.toJson())))}else p.push(this.getExtent());return{extents:p,marginLeft:t}},_intersectsMultipoint:function(e){var b=e.points.length,
p;for(p=0;p<b;p++)if(this.contains(e.getPoint(p)))return!0;return!1},_intersectsExtent:function(e){var b,p,t=!1;if(this.xmin<=e.xmin){var z=e.xmin;this.xmax<z?t=!0:b=Math.min(this.xmax,e.xmax)-z}else z=this.xmin,e.xmax<z?t=!0:b=Math.min(this.xmax,e.xmax)-z;if(this.ymin<=e.ymin){var C=e.ymin;this.ymax<C?t=!0:p=Math.min(this.ymax,e.ymax)-C}else C=this.ymin,e.ymax<C?t=!0:p=Math.min(this.ymax,e.ymax)-C;return t?null:new m(z,C,z+b,C+p,this.spatialReference)},_intersectsPolygon:function(e){var b=[this.xmin,
this.ymax],p=[this.xmax,this.ymax],t=[this.xmin,this.ymin],z=[this.xmax,this.ymin],C=[b,p,t,z];b=[[t,b],[b,p],[p,z],[z,t]];t=e.rings;z=t.length;var y=new f(0,0,this.spatialReference);var D=C.length;for(p=0;p<D;p++)if(y.update(C[p][0],C[p][1]),e.contains(y))return!0;y.setSpatialReference(e.spatialReference);for(p=0;p<z;p++)if(C=t[p],D=C.length){var B=C[0];y.update(B[0],B[1]);if(this.contains(y))return!0;for(e=1;e<D;e++){var u=C[e];y.update(u[0],u[1]);if(this.contains(y)||this._intersectsLine([B,u],
b))return!0;B=u}}return!1},_intersectsPolyline:function(e){var b=[[[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]]],p,t=e.paths,z=t.length,C,y=new f(0,0,e.spatialReference);for(e=0;e<z;e++){var D=t[e];if(C=D.length){var B=D[0];y.update(B[0],B[1]);if(this.contains(y))return!0;for(p=1;p<C;p++){var u=D[p];y.update(u[0],u[1]);if(this.contains(y)||this._intersectsLine([B,
u],b))return!0;B=u}}}return!1},_intersectsLine:function(e,b){var p=a._getLineIntersection2,t,z=b.length;for(t=0;t<z;t++)if(p(e,b[t]))return!0;return!1},contains:function(e){if(!e)return!1;var b=e.type;if("point"===b){var p=this.spatialReference,t=e.spatialReference;b=e.x;e=e.y;p&&t&&!p.equals(t)&&p._canProject(t)&&(e=p.isWebMercator()?f.lngLatToXY(b,e):f.xyToLngLat(b,e,!0),b=e[0],e=e[1]);return b>=this.xmin&&b<=this.xmax&&e>=this.ymin&&e<=this.ymax}return"extent"===b?this._containsExtent(e):!1},_containsExtent:function(e){var b=
e.xmin,p=e.ymin,t=e.xmax,z=e.ymax,C=e.spatialReference;e=new f(b,p,C);b=new f(b,z,C);z=new f(t,z,C);p=new f(t,p,C);return this.contains(e)&&this.contains(b)&&this.contains(z)&&this.contains(p)?!0:!1},union:function(e){return new m(Math.min(this.xmin,e.xmin),Math.min(this.ymin,e.ymin),Math.max(this.xmax,e.xmax),Math.max(this.ymax,e.ymax),this.spatialReference)},getExtent:function(){var e=this.spatialReference;return new m(this.xmin,this.ymin,this.xmax,this.ymax,e&&new q(e.toJson()))},_shiftCM:function(e){var b=
this.getCacheValue("_shifted");if(!b){b=new m(this.toJson());var p=b.spatialReference;if(e=e||p._getInfo()){var t=this._getCM(e);if(t){var z=p._isWebMercator()?g.webMercatorToGeographic(t):t;b.xmin-=t.x;b.xmax-=t.x;p._isWebMercator()||(z.x=this._normalizeX(z.x,e).x);b.setSpatialReference(new q(w.substitute({Central_Meridian:z.x},4326===p.wkid?e.altTemplate:e.wkTemplate)))}}this.setCacheValue("_shifted",b)}return b},_getCM:function(e){var b;this._isOutOfBounds(e)&&(b=this.getCenter());return b},_isOutOfBounds:function(e){var b=
e.valid[0];e=e.valid[1];var p=this.xmin,t=this.xmax;return!(p>=b&&p<=e&&t>=b&&t<=e)},_normalize:function(e,b,p){var t=new m(this.toJson()),z=t.spatialReference;if(z&&(p=p||z._getInfo())){var C=x.map(this._getParts(p),function(y){return y.extent});return 2<C.length?e?this._shiftCM(p):t.update(p.valid[0],t.ymin,p.valid[1],t.ymax,z):2===C.length?e?this._shiftCM(p):b?C:{rings:x.map(C,function(y){return[[y.xmin,y.ymin],[y.xmin,y.ymax],[y.xmax,y.ymax],[y.xmax,y.ymin],[y.xmin,y.ymin]]}),spatialReference:z}:
C[0]||t}return t},_getParts:function(e){var b=this.getCacheValue("_parts");if(!b){b=[];var p=this.xmin,t=this.xmax,z=this.ymin,C=this.ymax,y=this.spatialReference,D=this.getWidth(),B=p,u=t,E=0,v=0;e=e||y._getInfo();var A=e.valid[0];var F=e.valid[1];v=this._normalizeX(p,e);p=v.x;E=v.frameId;v=this._normalizeX(t,e);t=v.x;v=v.frameId;e=p===t&&0<D;if(D>2*F){D=new m(B<u?p:t,z,F,C,y);p=new m(A,z,B<u?t:p,C,y);F=new m(0,z,F,C,y);z=new m(A,z,0,C,y);y=[];A=[];D.contains(F)&&y.push(E);D.contains(z)&&A.push(E);
p.contains(F)&&y.push(v);p.contains(z)&&A.push(v);for(C=E+1;C<v;C++)y.push(C),A.push(C);b.push({extent:D,frameIds:[E]},{extent:p,frameIds:[v]},{extent:F,frameIds:y},{extent:z,frameIds:A})}else p>t||e?b.push({extent:new m(p,z,F,C,y),frameIds:[E]},{extent:new m(A,z,t,C,y),frameIds:[v]}):b.push({extent:new m(p,z,t,C,y),frameIds:[E]});this.setCacheValue("_parts",b)}return b},_normalizeX:function(e,b){var p=0,t=b.valid[0],z=b.valid[1];b=2*z;e>z?(p=Math.ceil(Math.abs(e-z)/b),e-=p*b):e<t&&(p=Math.ceil(Math.abs(e-
t)/b),e+=p*b,p=-p);return{x:e,frameId:p}},toJson:function(){var e={xmin:this.xmin,ymin:this.ymin,xmax:this.xmax,ymax:this.ymax},b=this.spatialReference;b&&(e.spatialReference=b.toJson());return e}});k.prototype=m.prototype;m.simpleConstructor=k;m.defaultProps=l;r("extend-esri")&&(c.setObject("geometry.Extent",m,h),h.geometry.defaultExtent=l);return m})},"esri/geometry/webMercatorUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/has ../kernel ../SpatialReference ./Point".split(" "),function(G,
x,c,r,h,w){function q(g,a,d,k){if("point"===g.type){var l=a(g.x,g.y,k);return new g.constructor(l[0],l[1],new h(d))}if("extent"===g.type){l=a(g.xmin,g.ymin,k);var m=a(g.xmax,g.ymax,k);return new g.constructor(l[0],l[1],m[0],m[1],new h(d))}if("polyline"===g.type||"polygon"===g.type){l="polyline"===g.type;var e=[],b;G.forEach(l?g.paths:g.rings,function(t){e.push(b=[]);G.forEach(t,function(z){b.push(a(z[0],z[1],k))})});return l?new g.constructor({paths:e,spatialReference:new h(d)}):new g.constructor({rings:e,
spatialReference:new h(d)})}if("multipoint"===g.type){var p=[];G.forEach(g.points,function(t){p.push(a(t[0],t[1],k))});return new g.constructor({points:p,spatialReference:new h(d)})}}function n(g,a){g=g&&(null!=g.wkid?g:g.spatialReference);a=a&&(null!=a.wkid?a:a.spatialReference);return g&&a?a.equals(g)?!0:a._canProject(g):!1}var f={canProject:n,project:function(g,a){var d=g&&g.spatialReference;a=a&&(null!=a.wkid?a:a.spatialReference);d&&a?d.equals(a)?g=new g.constructor(g.toJson()):n(d,a)?a.isWebMercator()?
g=q(g,w.lngLatToXY,{wkid:102100}):4326===a.wkid&&(g=q(g,w.xyToLngLat,{wkid:4326})):g=null:g=null;return g},lngLatToXY:w.lngLatToXY,xyToLngLat:w.xyToLngLat,metersPerDegree:w.metersPerDegree,geographicToWebMercator:function(g){return q(g,w.lngLatToXY,{wkid:102100})},webMercatorToGeographic:function(g,a){return q(g,w.xyToLngLat,{wkid:4326},a)}};c("extend-esri")&&x.mixin(x.getObject("geometry",!0,r),f);return f})},"esri/geometry/mathUtils":function(){define(["dojo/_base/lang","dojo/has","../kernel","./Point"],
function(G,x,c,r){function h(f,g,a){return f instanceof r?new r(f.x+a*(g.x-f.x),f.y+a*(g.y-f.y)):[f[0]+a*(g[0]-f[0]),f[1]+a*(g[1]-f[1])]}function w(f,g){return 1E-8>Math.abs(f-g)}function q(f,g,a,d){var k=w(f[0],g[0])?1E10:(f[1]-g[1])/(f[0]-g[0]),l=w(a[0],d[0])?1E10:(a[1]-d[1])/(a[0]-d[0]),m=f[1]-k*f[0],e=a[1]-l*a[0];if(w(k,l)){if(w(m,e)){if(w(f[0],g[0]))if(Math.min(f[1],g[1])<Math.max(a[1],d[1])||Math.max(f[1],g[1])>Math.min(a[1],d[1])){f=(f[1]+g[1]+a[1]+d[1]-Math.min(f[1],g[1],a[1],d[1])-Math.max(f[1],
g[1],a[1],d[1]))/2;var b=(f-m)/k}else return null;else if(Math.min(f[0],g[0])<Math.max(a[0],d[0])||Math.max(f[0],g[0])>Math.min(a[0],d[0]))b=(f[0]+g[0]+a[0]+d[0]-Math.min(f[0],g[0],a[0],d[0])-Math.max(f[0],g[0],a[0],d[0]))/2,f=k*b+m;else return null;return[b,f]}return null}w(k,1E10)?(b=f[0],f=l*b+e):w(l,1E10)?(b=a[0],f=k*b+m):(b=-(m-e)/(k-l),f=f[1]===g[1]?f[1]:a[1]===d[1]?a[1]:k*b+m);return[b,f]}var n={getLength:function(f,g){var a=g.x-f.x;f=g.y-f.y;return Math.sqrt(a*a+f*f)},_getLength:function(f,
g){var a=g[0]-f[0];f=g[1]-f[1];return Math.sqrt(a*a+f*f)},getPointOnLine:h,getMidpoint:function(f,g){return h(f,g,.5)},_equals:w,_getLineIntersection:q,getLineIntersection:function(f,g,a,d,k){(f=q([f.x,f.y],[g.x,g.y],[a.x,a.y],[d.x,d.y]))&&(f=new r(f[0],f[1],k));return f},_getLineIntersection2:function(f,g){var a=f[0],d=f[1],k=g[0],l=g[1];g=a[0];a=a[1];f=d[0];d=d[1];var m=k[0],e=k[1];k=l[0]-m;m=g-m;var b=f-g;l=l[1]-e;e=a-e;var p=d-a,t=l*b-k*p;if(0===t)return!1;k=(k*e-l*m)/t;m=(b*e-p*m)/t;return 0<=
k&&1>=k&&0<=m&&1>=m?[g+k*(f-g),a+k*(d-a)]:!1},_pointLineDistance:function(f,g){var a=g[0],d=g[1];g=a[0];var k=a[1];a=f[0];f=f[1];var l=d[0]-g,m=d[1]-k,e=a-g,b=f-k;d=Math.sqrt;var p=Math.pow,t=d(p(l,2)+p(m,2));e=(e*l+b*m)/(t*t);k+=e*m;return d(p(a-(g+e*l),2)+p(f-k,2))}};x("extend-esri")&&G.mixin(G.getObject("geometry",!0,c),n);return n})},"esri/urlUtils":function(){define("dojo/_base/lang dojo/_base/array dojo/_base/url dojo/global dojo/io-query ./kernel ./lang ./config ./sniff dojo/i18n!./nls/jsapi".split(" "),
function(G,x,c,r,h,w,q,n,f,g){var a={},d=n.defaults.io,k=/^[a-z][a-z0-9\+\-\.]*:/i,l=/^\s*http:/i,m=/^\s*https:/i,e=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i;a.isHTTP=function(t){var z=r.location.protocol;return null==t?"http:"===z||"https:"===z:t?"https:"===z:"http:"===z};a.getProtocolForWebResource=function(t){return a.isHTTP()?r.location.protocol:t?"https:":"http:"};a.urlToObject=function(t){var z={},C=new c(t),y=t.indexOf("?");null===C.query?z={path:t,query:null}:(z.path=t.substring(0,
y),z.query=h.queryToObject(C.query));C.fragment&&(z.hash=C.fragment,null===C.query&&(z.path=z.path.substring(0,z.path.length-(C.fragment.length+1))));return z};a.getProxyUrl=function(t,z){var C=G.isString(t)?0===G.trim(t).toLowerCase().indexOf("https:"):t,y=d.proxyUrl,D=g.io.proxyNotSet;G.isString(t)&&(t=a.getProxyRule(t))&&(y=t.proxyUrl);if(!y)throw console.log(D),Error(D);if(C&&!1!==z&&0!==r.location.href.toLowerCase().indexOf("https:")&&(z=y,0!==z.toLowerCase().indexOf("http")&&(z=a.getAbsoluteUrl(z)),
z=z.replace(/^http:/i,"https:"),a.canUseXhr(z))){y=z;var B=1}y=a.urlToObject(y);y._xo=B;return y};a.addProxy=function(t){var z=a.getProxyRule(t),C;z?C=a.urlToObject(z.proxyUrl):d.alwaysUseProxy&&(C=a.getProxyUrl());C&&(z=a.urlToObject(t),t=C.path+"?"+z.path,(C=h.objectToQuery(G.mixin(C.query||{},z.query)))&&(t+="?"+C));return t};a.addProxyRule=function(t){var z=t.urlPrefix=a.urlToObject(t.urlPrefix).path.replace(/([^\/])$/,"$1/").replace(/^https?:\/\//ig,"").toLowerCase(),C=d.proxyRules,y,D=C.length,
B=D;for(y=0;y<D;y++){var u=C[y].urlPrefix;if(0===z.indexOf(u)){if(z.length===u)return-1;B=y;break}else 0===u.indexOf(z)&&(B=y+1)}C.splice(B,0,t);return B};a.getProxyRule=function(t){var z=d.proxyRules,C=z.length,y=a.urlToObject(t).path.replace(/([^\/])$/,"$1/").replace(/^https?:\/\//ig,"").toLowerCase();for(t=0;t<C;t++)if(0===y.indexOf(z[t].urlPrefix)){var D=z[t];break}return D};a.hasSameOrigin=function(t,z,C){t=t.toLowerCase();z=z.toLowerCase();var y=r.location.href.toLowerCase();t=0===t.indexOf("http")?
new c(t):y=new c(y);z=0===z.indexOf("http")?new c(z):G.isString(y)?new c(y):y;return(C||t.scheme===z.scheme)&&t.host===z.host&&t.port===z.port};a.canUseXhr=function(t,z){var C=f("esri-phonegap")?!0:!1,y=a.hasSameOrigin,D=d.corsEnabledServers,B,u=-1;!C&&f("esri-cors")&&D&&D.length&&(C=x.some(D,function(E,v){E=!E||"object"!==typeof E||E instanceof RegExp?E:E.host;if(E instanceof RegExp){if(E.test(t))return u=v,!0}else if(E&&(B=0!==E.trim().toLowerCase().indexOf("http"),y(t,B?"http://"+E:E)||B&&y(t,
"https://"+E)))return u=v,!0;return!1}));return z?u:C};a.getAbsoluteUrl=function(t){var z=a.getProtocolForWebResource();return G.isString(t)&&!k.test(t)?0===t.indexOf("//")?z+t:0===t.indexOf("/")?z+"//"+r.location.host+t:w._appBaseUrl+t:t};a.fixUrl=function(t){t=G.trim(t);t=a.getAbsoluteUrl(t);t=a.normalizeSlashes(t);t=t.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2");t=a.downgradeToHTTP(t);return t=a.upgradeToHTTPS(t)};a.normalize=function(t){return a.fixUrl(t)};a.normalizeSlashes=function(t){if(/^https?:\/\//i.test(t)){var z=
t.indexOf("?");if(-1<z){var C=t.slice(0,z);var y=t.slice(z+1)}else C=t;t=C.replace(/\/{2,}/g,"/");t=t.replace("/","//");y&&(t+="?"+y)}return t};a.downgradeToHTTP=function(t){return a.isHTTP(!1)&&m.test(t)&&a.hasSameOrigin(r.location.href,t,!0)&&!a.canUseXhr(t)?t.replace(m,"http:"):t};a.upgradeToHTTPS=function(t){var z=d.httpsDomains,C=a.isHTTP(!1),y=a.isHTTP(!0);if(!l.test(t))return t;t=G.trim(t);var D=t.indexOf("/",7);D=-1===D?t:t.slice(0,D);D=D.toLowerCase().slice(7);if(e.test(D))if(q.endsWith(D,
":80"))D=D.slice(0,-3),t=t.replace(":80","");else return t;if(C&&D===r.location.host&&(!b.test(t)||!a.canUseXhr(t)))return t;C=!1;if(y&&D===r.location.host)C=!0;else if(z)for(var B=0;B<z.length;B++){var u=z[B];if(D===u||q.endsWith(D,"."+u)){C=!0;break}}C||!y||d.alwaysUseProxy||a.getProxyRule(t)||(C=!0);C&&(t=t.replace(l,"https:"));return t};n=g.widgets.popup;var p=[{pattern:/^\s*(https?:\/\/([^\s]+))\s*$/i,label:n.NLS_moreInfo},{pattern:/^\s*(tel:([^\s]+))\s*$/i,label:"${hierPart}"},{pattern:/^\s*(mailto:([^\s]+))\s*$/i,
label:"${hierPart}"},{pattern:/^\s*(arcgis-appstudio-player:\/\/([^\s]+))\s*$/i,appName:"App Studio Player",label:n.NLS_openLinkInApp},{pattern:/^\s*(arcgis-collector:\/\/([^\s]+))\s*$/i,appName:"Collector",label:n.NLS_openLinkInApp},{pattern:/^\s*(arcgis-explorer:\/\/([^\s]+))\s*$/i,appName:"Explorer",label:n.NLS_openLinkInApp},{pattern:/^\s*(arcgis-navigator:\/\/([^\s]+))\s*$/i,appName:"Navigator",label:n.NLS_openLinkInApp},{pattern:/^\s*(arcgis-survey123:\/\/([^\s]+))\s*$/i,appName:"Survey123",
label:n.NLS_openLinkInApp},{pattern:/^\s*(arcgis-trek2there:\/\/([^\s]+))\s*$/i,appName:"Trek2There",label:n.NLS_openLinkInApp},{pattern:/^\s*(arcgis-workforce:\/\/([^\s]+))\s*$/i,appName:"Workforce",label:n.NLS_openLinkInApp},{pattern:/^\s*(iform:\/\/([^\s]+))\s*$/i,appName:"iForm",label:n.NLS_openLinkInApp},{pattern:/^\s*(flow:\/\/([^\s]+))\s*$/i,appName:"FlowFinity",label:n.NLS_openLinkInApp},{pattern:/^\s*(lfmobile:\/\/([^\s]+))\s*$/i,appName:"Laserfische",label:n.NLS_openLinkInApp},{pattern:/^\s*(mspbi:\/\/([^\s]+))\s*$/i,
appName:"Microsoft Power BI",label:n.NLS_openLinkInApp}];a.getURIInfo=function(t){var z;x.some(p,function(C){C.pattern.test(t)&&(z=C);return!!z});return z};a.isKnownURI=function(t){return!!a.getURIInfo(t)};a.isSecureProxyService=function(t){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(t)};a.base64UrlEncode=function(t){return btoa(String.fromCharCode.apply(null,t)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")};f("extend-esri")&&(G.mixin(w,a),w._getProxyUrl=a.getProxyUrl,w._getProxiedUrl=
a.addProxy,w._hasSameOrigin=a.hasSameOrigin,w._canDoXOXHR=a.canUseXhr,w._getAbsoluteUrl=a.getAbsoluteUrl,w.fixUrl=a.fixUrl);return a})},"esri/PluginTarget":function(){define("require dojo/aspect dojo/_base/array dojo/_base/lang dojo/Deferred dojo/when".split(" "),function(G,x,c,r,h,w){function q(){x.after(this.constructor._meta,"ctor",this._pluginsHandler,!0);this._plugins={}}q.prototype={addPlugin:function(n,f){var g=this,a=this._plugins,d=new h;try{G([n],function(k){n in a?d.resolve({id:a[n].declaredId||
n.replace(/\//g,".")}):(a[n]=k,w(k.add(g,f),function(){var l={id:k.declaredId||n.replace(/\//g,".")};g.emit("plugin-add",l);d.resolve(l)},function(l){d.reject(l)}))})}catch(k){d.reject(k)}return d.promise},removePlugin:function(n){if(n in this._plugins){var f=this._plugins[n];f.remove(this);delete this._plugins[n];this.emit("plugin-remove",{id:f.declaredId||n.replace(/\//g,".")})}},_pluginsHandler:function(){var n=this;c.some(arguments,function(f){if(f&&f.plugins&&f.plugins instanceof Array){f=f.plugins;
var g;for(g=0;g<f.length;g++){var a=f[g];var d=a instanceof Object?a.id:a;n.addPlugin(d,a.options)}return!0}})}};return q})},"esri/Color":function(){define(["dojo/_base/declare","dojo/_base/Color","dojo/has","./kernel"],function(G,x,c,r){var h=G([x],{declaredClass:"esri.Color"});h.toJsonColor=function(q){return q&&[q.r,q.g,q.b,1<q.a?q.a:Math.round(255*q.a)]};h.toDojoColor=function(q){return q&&new h([q[0],q[1],q[2],q[3]/255])};var w="named blendColors fromRgb fromHex fromArray fromString".split(" ");
for(G=0;G<w.length;G++)h[w[G]]=x[w[G]];c("extend-esri")&&(r.Color=h);return h})},"esri/promiseList":function(){define(["dojo/_base/array","dojo/Deferred","dojo/when"],function(G,x,c){var r=G.forEach;return function(h){function w(l,m){a[m]=l;d.progress([l,m]);0===--k&&d.resolve(a)}var q,n;h instanceof Array?n=h:h&&"object"===typeof h&&(q=h);var f=[];if(q){n=[];for(var g in q)Object.hasOwnProperty.call(q,g)&&(f.push(g),n.push(q[g]));var a={}}else n&&(a=[]);if(!n||!n.length)return(new x).resolve(a);
var d=new x;d.promise.always(function(){a=f=null});var k=n.length;r(n,function(l,m){q||f.push(m);c(l,function(e){d.isFulfilled()||w(e,f[m])},function(e){d.isFulfilled()||w(e,f[m])})});return d.promise}})},"esri/arcade/Dictionary":function(){define("require exports ./polyfill/tsSupport/awaiter ./polyfill/tsSupport/generator ./ArcadeDate ./executionError ./ImmutableArray ./languageUtils ../geometry/Geometry".split(" "),function(G,x,c,r,h,w,q,n,f){function g(d,k,l){void 0===l&&(l=!1);if(null===d||void 0===
d)return null;if(n.isNumber(d))return n.toNumber(d);if(n.isBoolean(d))return n.toBoolean(d);if(n.isString(d))return n.toString(d);if(n.isDate(d))return n.toDate(d,k);if(n.isArray(d)){for(var m=[],e=0;e<d.length;e++)m.push(g(d[e],k,l));return m}e=new a;e.immutable=!1;for(var b=0,p=Object.keys(d);b<p.length;b++){var t=p[b];m=d[t];void 0!==m&&e.setField(t,g(m,k,l))}e.immutable=l;return e}var a=function(){function d(k){this.declaredClass="esri.arcade.Dictionary";this.attributes=null;this.plain=!1;this.immutable=
!0;this.attributes=k instanceof d?k.attributes:void 0===k?{}:null===k?{}:k}d.prototype.field=function(k){var l=k.toLowerCase(),m=this.attributes[k];if(void 0!==m)return m;for(var e in this.attributes)if(e.toLowerCase()===l)return this.attributes[e];throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.FieldNotFound,null,{key:k});};d.prototype.setField=function(k,l){if(this.immutable)throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.Immutable,null);if(n.isFunctionParameter(l))throw new w.ArcadeExecutionError(null,
w.ExecutionErrorCodes.NoFunctionInDictionary,null);var m=k.toLowerCase();l instanceof Date&&(l=h.ArcadeDate.dateJSToArcadeDate(l));if(void 0===this.attributes[k])for(var e in this.attributes)if(e.toLowerCase()===m){this.attributes[e]=l;return}this.attributes[k]=l};d.prototype.hasField=function(k){var l=k.toLowerCase();if(void 0!==this.attributes[k])return!0;for(var m in this.attributes)if(m.toLowerCase()===l)return!0;return!1};d.prototype.keys=function(){var k=[],l;for(l in this.attributes)k.push(l);
return k=k.sort()};d.prototype.castToText=function(k){void 0===k&&(k=!1);var l="",m;for(m in this.attributes){""!==l&&(l+=",");var e=this.attributes[m];null==e?l+=JSON.stringify(m)+":null":n.isBoolean(e)||n.isNumber(e)||n.isString(e)?l+=JSON.stringify(m)+":"+JSON.stringify(e):e instanceof f?l+=JSON.stringify(m)+":"+n.toStringExplicit(e):e instanceof q?l+=JSON.stringify(m)+":"+n.toStringExplicit(e,null,k):e instanceof Array?l+=JSON.stringify(m)+":"+n.toStringExplicit(e,null,k):e instanceof h.ArcadeDate?
l=k?l+(JSON.stringify(m)+":"+JSON.stringify(e.getTime())):l+(JSON.stringify(m)+":"+e.stringify()):null!==e&&"object"===typeof e&&void 0!==e.castToText&&(l+=JSON.stringify(m)+":"+e.castToText(k))}return"{"+l+"}"};d.convertObjectToArcadeDictionary=function(k,l,m){void 0===m&&(m=!0);var e=new d;e.immutable=!1;for(var b in k){var p=k[b];void 0!==p&&e.setField(b.toString(),g(p,l))}e.immutable=m;return e};d.convertJsonToArcade=function(k,l,m){void 0===m&&(m=!1);return g(k,l,m)};d.prototype.castAsJson=function(k){void 0===
k&&(k=null);var l={};for(e in this.attributes){var m=this.attributes[e];if(void 0!==m){if(null===k||void 0===k?0:k.keyTranslate)var e=k.keyTranslate(e);l[e]=n.castAsJson(m,k)}}return l};d.prototype.castDictionaryValueAsJsonAsync=function(k,l,m,e,b){void 0===e&&(e=null);return c(this,void 0,void 0,function(){var p;return r(this,function(t){switch(t.label){case 0:return[4,n.castAsJsonAsync(m,e,b)];case 1:return p=t.sent(),k[l]=p,[2,p]}})})};d.prototype.castAsJsonAsync=function(k,l){void 0===k&&(k=null);
void 0===l&&(l=null);return c(this,void 0,void 0,function(){var m,e,b,p;return r(this,function(t){switch(t.label){case 0:m={};e=[];for(b in this.attributes){p=this.attributes[b];if(null===l||void 0===l?0:l.keyTranslate)b=l.keyTranslate(b);void 0!==p&&(n.isSimpleType(p)||p instanceof f||p instanceof h.ArcadeDate?m[b]=n.castAsJson(p,l):e.push(this.castDictionaryValueAsJsonAsync(m,b,p,k,l)))}return 0<e.length?[4,Promise.all(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2,m]}})})};return d}();return a})},
"esri/arcade/polyfill/tsSupport/awaiter":function(){define([],function(){return function(){return function(G,x,c,r){function h(w){return w instanceof c?w:new c(function(q){q(w)})}return new (c||(c=Promise))(function(w,q){function n(a){try{g(r.next(a))}catch(d){q(d)}}function f(a){try{g(r["throw"](a))}catch(d){q(d)}}function g(a){a.done?w(a.value):h(a.value).then(n,f)}g((r=r.apply(G,x||[])).next())})}}()})},"esri/arcade/polyfill/tsSupport/generator":function(){define([],function(){return function(){return function(G,
x){function c(g){return function(a){return r([g,a])}}function r(g){if(w)throw new TypeError("Generator is already executing.");for(;h;)try{if(w=1,q&&(n=g[0]&2?q["return"]:g[0]?q["throw"]||((n=q["return"])&&n.call(q),0):q.next)&&!(n=n.call(q,g[1])).done)return n;if(q=0,n)g=[g[0]&2,n.value];switch(g[0]){case 0:case 1:n=g;break;case 4:return h.label++,{value:g[1],done:!1};case 5:h.label++;q=g[1];g=[0];continue;case 7:g=h.ops.pop();h.trys.pop();continue;default:if(!(n=h.trys,n=0<n.length&&n[n.length-
1])&&(6===g[0]||2===g[0])){h=0;continue}if(3===g[0]&&(!n||g[1]>n[0]&&g[1]<n[3]))h.label=g[1];else if(6===g[0]&&h.label<n[1])h.label=n[1],n=g;else if(n&&h.label<n[2])h.label=n[2],h.ops.push(g);else{n[2]&&h.ops.pop();h.trys.pop();continue}}g=x.call(G,h)}catch(a){g=[6,a],q=0}finally{w=n=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}var h={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},w,q,n,f;return f={next:c(0),"throw":c(1),"return":c(2)},"function"===typeof Symbol&&
(f[Symbol.iterator]=function(){return this}),f}}()})},"esri/arcade/ArcadeDate":function(){define(["require","exports","./polyfill/tsSupport/extends","./executionError","../libs/luxon/luxon"],function(G,x,c,r,h){function w(a){if(a instanceof h.Zone)return a;if("system"===a.toLowerCase())return"system";if("utc"===a.toLowerCase())return"utc";if("unknown"===a.toLowerCase())return n.instance;if(/^[\+\-]?[0-9]{1,2}([:][0-9]{2})?$/.test(a)){var d=h.FixedOffsetZone.parseSpecifier("UTC"+(a.startsWith("+")||
a.startsWith("-")?"":"+")+a);if(d)return d}a=h.IANAZone.create(a);if(!a.isValid)throw new g(f.TimeZoneNotRecognised);return a}var q;Object.defineProperty(x,"__esModule",{value:!0});x.createDateTimeZone=x.ArcadeDate=x.ArcadeDateError=x.ArcadeDateErrorMessages=x.ArcadeDateErrorCodes=x.UnknownTimeZone=void 0;var n=function(){function a(){}a.instance=new h.IANAZone("Etc/UTC");return a}();x.UnknownTimeZone=n;var f;(f=x.ArcadeDateErrorCodes||(x.ArcadeDateErrorCodes={})).TimeZoneNotRecognised="TimeZoneNotRecognised";
x.ArcadeDateErrorMessages=(q={},q[f.TimeZoneNotRecognised]="Timezone identifier has not been recognised.",q);var g=function(a){function d(k,l){k=a.call(this,r.doSubstitutions(x.ArcadeDateErrorMessages[k],l))||this;k.declaredRootClass="esri.arcade.arcadedate.dateerror";Error.captureStackTrace&&Error.captureStackTrace(k,d);return k}c(d,a);return d}(Error);x.ArcadeDateError=g;G=function(){function a(d){this._date=d;this.declaredRootClass="esri.arcade.arcadedate"}a.fromParts=function(d,k,l,m,e,b,p,t){void 0===
d&&(d=0);void 0===k&&(k=1);void 0===l&&(l=1);void 0===m&&(m=0);void 0===e&&(e=0);void 0===b&&(b=0);void 0===p&&(p=0);if(isNaN(d)||isNaN(k)||isNaN(l)||isNaN(m)||isNaN(e)||isNaN(b)||isNaN(p))return null;var z=0,C=h.DateTime.local(d,k).daysInMonth;1>l&&(z=l-1,l=1);l>C&&(z=l-C,l=C);C=0;12<k?(C=k-12,k=12):1>k&&(C=k-1,k=1);var y=0;59<e?(y=e-59,e=59):0>e&&(y=e,e=0);var D=0;59<b?(D=b-59,b=59):0>b&&(D=b,b=0);var B=0;999<p?(B=p-999,p=999):0>p&&(B=p,p=0);d=h.DateTime.fromObject({day:l,year:d,month:k,hour:m,
minute:e,second:b,millisecond:p},{zone:w(t)});0!==C&&(d=d.plus({months:C}));0!==z&&(d=d.plus({days:z}));0!==y&&(d=d.plus({minutes:y}));0!==D&&(d=d.plus({seconds:D}));0!==B&&(d=d.plus({milliseconds:B}));return new a(d)};Object.defineProperty(a,"systemTimeZoneCanonicalName",{get:function(){var d;return null!==(d=Intl.DateTimeFormat().resolvedOptions().timeZone)&&void 0!==d?d:"system"},enumerable:!1,configurable:!0});a.arcadeDateAndZoneToArcadeDate=function(d,k){var l=w(k);return d.isUnknownTimeZone||
l===n.instance?a.fromParts(d.year,d.monthJS+1,d.day,d.hour,d.minute,d.second,d.millisecond,l):new a(d._date.setZone(k))};a.dateJSToArcadeDate=function(d){return new a(h.DateTime.fromJSDate(d,{zone:"system"}))};a.dateJSAndZoneToArcadeDate=function(d,k){void 0===k&&(k="system");return new a(h.DateTime.fromJSDate(d,{zone:k}))};a.unknownEpochToArcadeDate=function(d){return new a(h.DateTime.fromMillis(d,{zone:n.instance}))};a.unknownDateJSToArcadeDate=function(d){return a.arcadeDateAndZoneToArcadeDate(a.dateJSToArcadeDate(d),
n.instance)};a.epochToArcadeDate=function(d,k){void 0===k&&(k="system");return new a(h.DateTime.fromMillis(d,{zone:k}))};a.dateTimeToArcadeDate=function(d){return new a(d)};a.prototype.changeTimeZone=function(d){d=w(d);return a.dateTimeToArcadeDate(this._date.setZone(d))};a.dateTimeAndZoneToArcadeDate=function(d,k){k=w(k);return d.zone===n.instance||k===n.instance?a.fromParts(d.year,d.month,d.day,d.hour,d.minute,d.second,d.millisecond,k):new a(d.setZone(k))};a.nowToArcadeDate=function(d){return new a(h.DateTime.fromJSDate(new Date,
{zone:d}))};a.nowUTCToArcadeDate=function(){return new a(h.DateTime.utc())};Object.defineProperty(a.prototype,"isSystem",{get:function(){return"system"===this.timeZone||this.timeZone===a.systemTimeZoneCanonicalName},enumerable:!1,configurable:!0});a.prototype.equals=function(d){return this.isSystem&&d.isSystem?this.toNumber()===d.toNumber():this.isUnknownTimeZone!==d.isUnknownTimeZone?!1:this._date.equals(d._date)};Object.defineProperty(a.prototype,"isUnknownTimeZone",{get:function(){return this._date.zone===
n.instance},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"isValid",{get:function(){return this._date.isValid},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"hour",{get:function(){return this._date.hour},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"second",{get:function(){return this._date.second},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"day",{get:function(){return this._date.day},enumerable:!1,configurable:!0});
Object.defineProperty(a.prototype,"dayOfWeekISO",{get:function(){return this._date.weekday},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"dayOfWeekJS",{get:function(){var d=this._date.weekday;6<d&&(d=0);return d},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"millisecond",{get:function(){return this._date.millisecond},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"monthISO",{get:function(){return this._date.month},enumerable:!1,configurable:!0});
Object.defineProperty(a.prototype,"weekISO",{get:function(){return this._date.weekNumber},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"yearISO",{get:function(){return this._date.weekYear},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"monthJS",{get:function(){return this._date.month-1},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"year",{get:function(){return this._date.year},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,
"minute",{get:function(){return this._date.minute},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"zone",{get:function(){return this._date.zone},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"timeZoneOffset",{get:function(){return this.isUnknownTimeZone?0:this._date.offset},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"timeZone",{get:function(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";var d=
this.zone;return"fixed"===d.type?0===d.fixed?"utc":d.formatOffset(0,"short"):d.name},enumerable:!1,configurable:!0});a.prototype.stringify=function(){return JSON.stringify(this.toJSDate())};a.prototype.plus=function(d){return new a(this._date.plus(d))};a.prototype.diff=function(d,k){void 0===k&&(k="milliseconds");return this._date.diff(d._date,k)[k]};a.prototype.toISOString=function(d){return d?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})};
a.prototype.toFormat=function(d,k){return this._date.toFormat(d,k)};a.prototype.toJSDate=function(){return this._date.toJSDate()};a.prototype.toSQLString=function(){return"timestamp '"+this._date.toFormat("yyyy-LL-dd HH:mm:ss")+"'"};a.prototype.toDateTime=function(){return this._date};a.prototype.toNumber=function(){return this._date.toMillis()};a.prototype.getTime=function(){return this._date.toMillis()};a.prototype.toUTC=function(){return new a(this._date.toUTC())};a.prototype.toLocal=function(){return new a(this._date.toLocal())};
a.prototype.toString=function(){return this.toISOString(!0)};return a}();x.ArcadeDate=G;x.createDateTimeZone=w})},"esri/arcade/polyfill/tsSupport/extends":function(){define([],function(){return function(){var G=function(x,c){G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,h){r.__proto__=h}||function(r,h){for(var w in h)Object.prototype.hasOwnProperty.call(h,w)&&(r[w]=h[w])};return G(x,c)};return function(x,c){function r(){this.constructor=x}if("function"!==typeof c&&null!==c)throw new TypeError("Class extends value "+
String(c)+" is not a constructor or null");G(x,c);x.prototype=null===c?Object.create(c):(r.prototype=c.prototype,new r)}}()})},"esri/arcade/executionError":function(){define(["require","exports","./polyfill/tsSupport/assign","./polyfill/tsSupport/spreadarray","./polyfill/tsSupport/extends"],function(G,x,c,r,h){function w(a){var d,k;return a&&a.loc?"Line : "+(null===(d=a.loc.start)||void 0===d?void 0:d.line)+", "+(null===(k=a.loc.start)||void 0===k?void 0:k.column)+": ":""}function q(a,d){try{if(!d)return a;
for(var k in d){var l=d[k];l||(l="");a=a.replace("{"+k+"}",d[k])}}catch(m){}return a}var n,f;Object.defineProperty(x,"__esModule",{value:!0});x.parsingValidationMessage=x.ModuleError=x.ModuleErrorMessages=x.ModuleErrorCodes=x.ensureArcadeExecutionError=x.doSubstitutions=x.ArcadeUncompilableError=x.ArcadeCompilationError=x.ArcadeExecutionError=x.LocatableArcadeExecutionError=x.ErrorWithCause=x.ExecutionErrorMessages=x.ExecutionErrorCodes=void 0;(function(a){a.AsyncNotEnabled="AsyncNotEnabled";a.ModulesNotSupported=
"ModulesNotSupported";a.CircularModules="CircularModules";a.NeverReach="NeverReach";a.UnsupportedHashType="UnsupportedHashType";a.InvalidParameter="InvalidParameter";a.UnexpectedToken="UnexpectedToken";a.Unrecognised="Unrecognised";a.UnrecognisedType="UnrecognisedType";a.MaximumCallDepth="MaximumCallDepth";a.BooleanConditionRequired="BooleanConditionRequired";a.TypeNotAllowedInFeature="TypeNotAllowedInFeature";a.KeyMustBeString="KeyMustBeString";a.WrongNumberOfParameters="WrongNumberOfParameters";
a.CallNonFunction="CallNonFunction";a.NoFunctionInTemplateLiteral="NoFunctionInTemplateLiteral";a.NoFunctionInDictionary="NoFunctionInDictionary";a.NoFunctionInArray="NoFunctionInArray";a.AssignModuleFunction="AssignModuleFunction";a.LogicExpressionOrAnd="LogicExpressionOrAnd";a.LogicalExpressionOnlyBoolean="LogicalExpressionOnlyBoolean";a.FuncionNotFound="FunctionNotFound";a.InvalidMemberAccessKey="InvalidMemberAccessKey";a.UnsupportedUnaryOperator="UnsupportUnaryOperator";a.InvalidIdentifier="InvalidIdentifier";
a.MemberOfNull="MemberOfNull";a.UnsupportedOperator="UnsupportedOperator";a.Cancelled="Cancelled";a.ModuleAccessorMustBeString="ModuleAccessorMustBeString";a.ModuleExportNotFound="ModuleExportNotFound";a.Immutable="Immutable";a.OutOfBounds="OutOfBounds";a.IllegalResult="IllegalResult";a.FieldNotFound="FieldNotFound";a.PortalRequired="PortalRequired";a.LogicError="LogicError";a.ArrayAccessorMustBeNumber="ArrayAccessMustBeNumber";a.KeyAccessorMustBeString="KeyAccessorMustBeString";a.WrongSpatialReference=
"WrongSpatialReference"})(G=x.ExecutionErrorCodes||(x.ExecutionErrorCodes={}));x.ExecutionErrorMessages=(n={},n[G.TypeNotAllowedInFeature]="Feature attributes only support dates, numbers, strings, guids.",n[G.LogicError]="Logic error - {reason}",n[G.NeverReach]="Encountered unreachable logic",n[G.AsyncNotEnabled]="Async Arcade must be enabled for this script",n[G.ModuleAccessorMustBeString]="Module accessor must be a string",n[G.ModuleExportNotFound]="Module has no export with provided identifier",
n[G.ModulesNotSupported]="Current profile does not support modules",n[G.ArrayAccessorMustBeNumber]="Array accessor must be a number",n[G.FuncionNotFound]="Function not found",n[G.FieldNotFound]="Key not found - {key}",n[G.CircularModules]="Circular module dependencies are not allowed",n[G.Cancelled]="Execution cancelled",n[G.UnsupportedHashType]="Type not supported in hash function",n[G.IllegalResult]="Value is not a supported return type",n[G.PortalRequired]="Portal is required",n[G.InvalidParameter]=
"Invalid parameter",n[G.WrongNumberOfParameters]="Call with wrong number of parameters",n[G.Unrecognised]="Unrecognised code structure",n[G.UnrecognisedType]="Unrecognised type",n[G.WrongSpatialReference]="Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",n[G.BooleanConditionRequired]="Conditions must use booleans",n[G.NoFunctionInDictionary]="Dictionaries cannot contain functions.",n[G.NoFunctionInArray]="Arrays cannot contain functions.",n[G.NoFunctionInTemplateLiteral]=
"Template Literals do not expect functions by value.",n[G.KeyAccessorMustBeString]="Accessor must be a string",n[G.KeyMustBeString]="Object keys must be a string",n[G.Immutable]="Object is immutable",n[G.InvalidParameter]="Invalid parameter",n[G.UnexpectedToken]="Unexpected token",n[G.MemberOfNull]="Cannot access property of null object",n[G.MaximumCallDepth]="Exceeded maximum function depth",n[G.OutOfBounds]="Out of bounds",n[G.InvalidIdentifier]="Identifier not recognised",n[G.FuncionNotFound]=
"Function not found",n[G.CallNonFunction]="Expression is not a function",n[G.InvalidMemberAccessKey]="Cannot access value using a key of this type",n[G.AssignModuleFunction]="Cannot assign function to module variable",n[G.UnsupportedUnaryOperator]="Unsupported unary operator",n[G.UnsupportedOperator]="Unsupported operator",n[G.LogicalExpressionOnlyBoolean]="Logical expressions must be boolean",n[G.LogicExpressionOrAnd]="Logical expression can only be combined with || or \x26\x26",n);n=function(a){function d(){for(var k=
[],l=0;l<arguments.length;l++)k[l]=arguments[l];return a.apply(this,k)||this}h(d,a);return d}(Error);x.ErrorWithCause=n;var g=function(a){function d(k,l){k=a.call(this,w(l)+k.message,{cause:k})||this;k.loc=null;Error.captureStackTrace&&Error.captureStackTrace(k,d);l&&l.loc&&(k.loc=l.loc);return k}h(d,a);return d}(n);x.LocatableArcadeExecutionError=g;n=function(a){function d(k,l,m,e){k=a.call(this,"Execution error - "+w(m)+q(x.ExecutionErrorMessages[l],e))||this;k.loc=null;k.declaredRootClass="esri.arcade.arcadeexecutionerror";
Error.captureStackTrace&&Error.captureStackTrace(k,d);m&&m.loc&&(k.loc=m.loc);return k}h(d,a);return d}(Error);x.ArcadeExecutionError=n;n=function(a){function d(k,l,m,e){k=a.call(this,"Compilation error - "+w(m)+q(x.ExecutionErrorMessages[l],e))||this;k.loc=null;k.declaredRootClass="esri.arcade.arcadecompilationerror";Error.captureStackTrace&&Error.captureStackTrace(k,d);m&&m.loc&&(k.loc=m.loc);return k}h(d,a);return d}(Error);x.ArcadeCompilationError=n;n=function(a){function d(){var k=a.call(this,
"Uncompilable code structures")||this;k.declaredRootClass="esri.arcade.arcadeuncompilableerror";Error.captureStackTrace&&Error.captureStackTrace(k,d);return k}h(d,a);return d}(Error);x.ArcadeUncompilableError=n;x.doSubstitutions=q;x.ensureArcadeExecutionError=function(a,d,k){return"esri.arcade.arcadeexecutionerror"===k.declaredRootClass||"esri.arcade.arcadecompilationerror"===k.declaredRootClass?null===k.loc&&d&&d.loc?new g(k,{cause:k}):k:d&&d.loc?new g(k,{cause:k}):k};(function(a){a.UnrecognisedUri=
"UnrecognisedUri";a.UnsupportedUriProtocol="UnsupportedUriProtocol"})(n=x.ModuleErrorCodes||(x.ModuleErrorCodes={}));x.ModuleErrorMessages=(f={},f[n.UnrecognisedUri]="Unrecognised uri - {uri}",f[n.UnsupportedUriProtocol]="Unrecognised uri protocol",f);f=function(a){function d(k,l){k=a.call(this,q(x.ModuleErrorMessages[k],l))||this;k.declaredRootClass="esri.arcade.arcademoduleerror";Error.captureStackTrace&&Error.captureStackTrace(k,d);return k}h(d,a);return d}(Error);x.ModuleError=f;x.parsingValidationMessage=
function(a,d,k){return"Parsing error - "+w(a)+q(x.ExecutionErrorMessages[d],k)}})},"esri/arcade/polyfill/tsSupport/assign":function(){define([],function(){return function(){return function(){return(Object.assign||function(G){for(var x,c=1,r=arguments.length;c<r;c++){x=arguments[c];for(var h in x)Object.prototype.hasOwnProperty.call(x,h)&&(G[h]=x[h])}return G}).apply(this,arguments)}}()})},"esri/arcade/polyfill/tsSupport/spreadarray":function(){define([],function(){return function(){return function(G,
x,c){if(c||2===arguments.length)for(var r=0,h=x.length,w;r<h;r++)!w&&r in x||(w||(w=Array.prototype.slice.call(x,0,r)),w[r]=x[r]);return G.concat(w||Array.prototype.slice.call(x))}}()})},"esri/libs/luxon/luxon":function(){define(["exports"],function(G){function x(O,Z){for(var H=0;H<Z.length;H++){var P=Z[H];P.enumerable=P.enumerable||!1;P.configurable=!0;"value"in P&&(P.writable=!0);var aa=Object,ya=aa.defineProperty;a:{var Fa=P.key;if("object"===typeof Fa&&null!==Fa){var Ra=Fa[Symbol.toPrimitive];
if(void 0!==Ra){Fa=Ra.call(Fa,"string");if("object"!==typeof Fa)break a;throw new TypeError("@@toPrimitive must return a primitive value.");}Fa=String(Fa)}}ya.call(aa,O,"symbol"===typeof Fa?Fa:String(Fa),P)}}function c(O,Z,H){Z&&x(O.prototype,Z);H&&x(O,H);Object.defineProperty(O,"prototype",{writable:!1});return O}function r(){r=Object.assign?Object.assign.bind():function(O){for(var Z=1;Z<arguments.length;Z++){var H=arguments[Z],P;for(P in H)Object.prototype.hasOwnProperty.call(H,P)&&(O[P]=H[P])}return O};
return r.apply(this,arguments)}function h(O,Z){O.prototype=Object.create(Z.prototype);O.prototype.constructor=O;q(O,Z)}function w(O){w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)};return w(O)}function q(O,Z){q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,P){H.__proto__=P;return H};return q(O,Z)}function n(){if("undefined"===typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;
try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(O){return!1}}function f(O,Z,H){f=n()?Reflect.construct.bind():function(P,aa,ya){var Fa=[null];Fa.push.apply(Fa,aa);P=new (Function.bind.apply(P,Fa));ya&&q(P,ya.prototype);return P};return f.apply(null,arguments)}function g(O){var Z="function"===typeof Map?new Map:void 0;g=function(H){function P(){return f(H,arguments,w(this).constructor)}if(null===H||-1===Function.toString.call(H).indexOf("[native code]"))return H;
if("function"!==typeof H)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof Z){if(Z.has(H))return Z.get(H);Z.set(H,P)}P.prototype=Object.create(H.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}});return q(P,H)};return g(O)}function a(O,Z){if(null==O)return{};var H={},P=Object.keys(O),aa;for(aa=0;aa<P.length;aa++){var ya=P[aa];0<=Z.indexOf(ya)||(H[ya]=O[ya])}return H}function d(O,Z){if(O){if("string"===typeof O)return k(O,Z);
var H=Object.prototype.toString.call(O).slice(8,-1);"Object"===H&&O.constructor&&(H=O.constructor.name);if("Map"===H||"Set"===H)return Array.from(O);if("Arguments"===H||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return k(O,Z)}}function k(O,Z){if(null==Z||Z>O.length)Z=O.length;for(var H=0,P=Array(Z);H<Z;H++)P[H]=O[H];return P}function l(O,Z){var H="undefined"!==typeof Symbol&&O[Symbol.iterator]||O["@@iterator"];if(H)return(H=H.call(O)).next.bind(H);if(Array.isArray(O)||(H=d(O))||Z&&O&&"number"===
typeof O.length){H&&(O=H);var P=0;return function(){return P>=O.length?{done:!0}:{done:!1,value:O[P++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function m(O,Z){void 0===Z&&(Z={});var H=JSON.stringify([O,Z]),P=pc[H];P||(P=new Intl.DateTimeFormat(O,Z),pc[H]=P);return P}function e(O){for(var Z=[],H=1;12>=H;H++){var P=wb.utc(2016,H,1);Z.push(O(P))}return Z}function b(O){for(var Z=[],
H=1;7>=H;H++){var P=wb.utc(2016,11,13+H);Z.push(O(P))}return Z}function p(O,Z,H,P,aa){O=O.listingMode(H);return"error"===O?null:"en"===O?P(Z):aa(Z)}function t(O,Z){if(z(O)||null===O)return Z;if(O instanceof pb)return O;if("string"===typeof O){var H=O.toLowerCase();return"default"===H?Z:"local"===H||"system"===H?Jb.instance:"utc"===H||"gmt"===H?Kb.utcInstance:Kb.parseSpecifier(H)||Xb.create(O)}return C(O)?Kb.instance(O):"object"===typeof O&&O.offset&&"number"===typeof O.offset?O:new Ac(O)}function z(O){return"undefined"===
typeof O}function C(O){return"number"===typeof O}function y(O){return"number"===typeof O&&0===O%1}function D(){try{return"undefined"!==typeof Intl&&!!Intl.RelativeTimeFormat}catch(O){return!1}}function B(O,Z,H){if(0!==O.length)return O.reduce(function(P,aa){aa=[Z(aa),aa];return P?H(P[0],aa[0])===P[0]?P:aa:aa},null)[1]}function u(O,Z){return Z.reduce(function(H,P){H[P]=O[P];return H},{})}function E(O,Z){return Object.prototype.hasOwnProperty.call(O,Z)}function v(O,Z,H){return y(O)&&O>=Z&&O<=H}function A(O,
Z){void 0===Z&&(Z=2);return 0>O?"-"+(""+-O).padStart(Z,"0"):(""+O).padStart(Z,"0")}function F(O){if(!z(O)&&null!==O&&""!==O)return parseInt(O,10)}function I(O){if(!z(O)&&null!==O&&""!==O)return parseFloat(O)}function N(O){if(!z(O)&&null!==O&&""!==O)return O=1E3*parseFloat("0."+O),Math.floor(O)}function da(O,Z,H){void 0===H&&(H=!1);Z=Math.pow(10,Z);return(H?Math.trunc:Math.round)(O*Z)/Z}function ba(O){return 0===O%4&&(0!==O%100||0===O%400)}function na(O,Z){var H=Z-1;H=H-12*Math.floor(H/12)+1;return 2===
H?ba(O+(Z-H)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][H-1]}function xa(O){var Z=Date.UTC(O.year,O.month-1,O.day,O.hour,O.minute,O.second,O.millisecond);100>O.year&&0<=O.year&&(Z=new Date(Z),Z.setUTCFullYear(Z.getUTCFullYear()-1900));return+Z}function W(O){var Z=O-1;Z=(Z+Math.floor(Z/4)-Math.floor(Z/100)+Math.floor(Z/400))%7;return 4===(O+Math.floor(O/4)-Math.floor(O/100)+Math.floor(O/400))%7||3===Z?53:52}function la(O){return 99<O?O:O>ub.twoDigitCutoffYear?1900+O:2E3+O}function ha(O,Z,H,
P){void 0===P&&(P=null);O=new Date(O);var aa={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};P&&(aa.timeZone=P);Z=r({timeZoneName:Z},aa);return(H=(new Intl.DateTimeFormat(H,Z)).formatToParts(O).find(function(ya){return"timezonename"===ya.type.toLowerCase()}))?H.value:null}function sa(O,Z){O=parseInt(O,10);Number.isNaN(O)&&(O=0);Z=parseInt(Z,10)||0;Z=0>O||Object.is(O,-0)?-Z:Z;return 60*O+Z}function Ca(O){var Z=Number(O);if("boolean"===typeof O||""===O||
Number.isNaN(Z))throw new Db("Invalid unit value "+O);return Z}function oa(O,Z){var H={},P;for(P in O)if(E(O,P)){var aa=O[P];void 0!==aa&&null!==aa&&(H[Z(P)]=Ca(aa))}return H}function qa(O,Z){var H=Math.trunc(Math.abs(O/60)),P=Math.trunc(Math.abs(O%60));O=0<=O?"+":"-";switch(Z){case "short":return""+O+A(H,2)+":"+A(P,2);case "narrow":return""+O+H+(0<P?":"+P:"");case "techie":return""+O+A(H,2)+A(P,2);default:throw new RangeError("Value format "+Z+" is out of range for property format");}}function L(O){return u(O,
["hour","minute","second","millisecond"])}function Y(O){switch(O){case "narrow":return[].concat(Xc);case "short":return[].concat(Bc);case "long":return[].concat(Yc);case "numeric":return"1 2 3 4 5 6 7 8 9 10 11 12".split(" ");case "2-digit":return"01 02 03 04 05 06 07 08 09 10 11 12".split(" ");default:return null}}function ca(O){switch(O){case "narrow":return[].concat(Zc);case "short":return[].concat(Cc);case "long":return[].concat(Dc);case "numeric":return"1234567".split("");default:return null}}
function V(O){switch(O){case "narrow":return[].concat($c);case "short":return[].concat(ad);case "long":return[].concat(bd);default:return null}}function X(O,Z,H,P){void 0===H&&(H="always");void 0===P&&(P=!1);var aa={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},ya=-1===["hours","minutes","seconds"].indexOf(O);if("auto"===H&&ya)switch(H="days"===O,Z){case 1:return H?
"tomorrow":"next "+aa[O][0];case -1:return H?"yesterday":"last "+aa[O][0];case 0:return H?"today":"this "+aa[O][0]}H=Object.is(Z,-0)||0>Z;Z=Math.abs(Z);ya=1===Z;var Fa=aa[O];O=P?ya?Fa[1]:Fa[2]||Fa[1]:ya?aa[O][0]:O;return H?Z+" "+O+" ago":"in "+Z+" "+O}function ja(O,Z){var H="";O=l(O);for(var P;!(P=O()).done;)P=P.value,H=P.literal?H+P.val:H+Z(P.val);return H}function pa(){for(var O=arguments.length,Z=Array(O),H=0;H<O;H++)Z[H]=arguments[H];O=Z.reduce(function(P,aa){return P+aa.source},"");return RegExp("^"+
O+"$")}function ta(){for(var O=arguments.length,Z=Array(O),H=0;H<O;H++)Z[H]=arguments[H];return function(P){return Z.reduce(function(aa,ya){var Fa=aa[0],Ra=aa[1];aa=ya(P,aa[2]);ya=aa[1];var Za=aa[2];return[r({},Fa,aa[0]),ya||Ra,Za]},[{},null,1]).slice(0,2)}}function ea(O){if(null==O)return[null,null];for(var Z=arguments.length,H=Array(1<Z?Z-1:0),P=1;P<Z;P++)H[P-1]=arguments[P];for(Z=0;Z<H.length;Z++){var aa=H[Z];P=aa[1];if(aa=aa[0].exec(O))return P(aa)}return[null,null]}function va(){for(var O=arguments.length,
Z=Array(O),H=0;H<O;H++)Z[H]=arguments[H];return function(P,aa){var ya={},Fa;for(Fa=0;Fa<Z.length;Fa++)ya[Z[Fa]]=F(P[aa+Fa]);return[ya,null,aa+Fa]}}function M(O,Z,H){O=O[Z];return z(O)?H:F(O)}function S(O,Z){return[{hours:M(O,Z,0),minutes:M(O,Z+1,0),seconds:M(O,Z+2,0),milliseconds:N(O[Z+3])},null,Z+4]}function ma(O,Z){var H=!O[Z]&&!O[Z+1];O=sa(O[Z+1],O[Z+2]);return[{},H?null:Kb.instance(O),Z+3]}function ua(O,Z){return[{},O[Z]?Xb.create(O[Z]):null,Z+1]}function wa(O){var Z=O[2],H=O[3],P=O[4],aa=O[5],
ya=O[6],Fa=O[7],Ra=O[8],Za="-"===O[0][0],fb=Fa&&"-"===Fa[0],kb=function(lb,ib){void 0===ib&&(ib=!1);return void 0!==lb&&(ib||lb&&Za)?-lb:lb};return[{years:kb(I(O[1])),months:kb(I(Z)),weeks:kb(I(H)),days:kb(I(P)),hours:kb(I(aa)),minutes:kb(I(ya)),seconds:kb(I(Fa),"-0"===Fa),milliseconds:kb(N(Ra),fb)}]}function Q(O,Z,H,P,aa,ya,Fa){Z={year:2===Z.length?la(F(Z)):F(Z),month:Bc.indexOf(H)+1,day:F(P),hour:F(aa),minute:F(ya)};Fa&&(Z.second=F(Fa));O&&(Z.weekday=3<O.length?Dc.indexOf(O)+1:Cc.indexOf(O)+1);
return Z}function ka(O){var Z=O[8],H=O[9],P=O[10],aa=O[11];O=Q(O[1],O[4],O[3],O[2],O[5],O[6],O[7]);Z=Z?cd[Z]:H?0:sa(P,aa);return[O,new Kb(Z)]}function za(O){return[Q(O[1],O[4],O[3],O[2],O[5],O[6],O[7]),Kb.utcInstance]}function Ea(O){return[Q(O[1],O[7],O[2],O[3],O[4],O[5],O[6]),Kb.utcInstance]}function Ka(O,Z,H){void 0===H&&(H=!1);O={values:H?Z.values:r({},O.values,Z.values||{}),loc:O.loc.clone(Z.loc),conversionAccuracy:Z.conversionAccuracy||O.conversionAccuracy,matrix:Z.matrix||O.matrix};return new Bb(O)}
function Qa(O,Z,H,P,aa){O=O[aa][H];var ya=Z[H]/O;ya=Math.sign(ya)!==Math.sign(P[aa])&&0!==P[aa]&&1>=Math.abs(ya)?0>ya?Math.floor(ya):Math.ceil(ya):Math.trunc(ya);P[aa]+=ya;Z[H]-=ya*O}function Pa(O,Z){dd.reduce(function(H,P){if(z(Z[P]))return H;H&&Qa(O,Z,H,Z,P);return P},null)}function J(O,Z){var H=function(P){return P.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()};O=H(Z)-H(O);return Math.floor(Bb.fromMillis(O).as("days"))}function U(O,Z,H){for(var P={},aa=O,ya,Fa,Ra=0,Za=[["years",function(lb,
ib){return ib.year-lb.year}],["quarters",function(lb,ib){return ib.quarter-lb.quarter+4*(ib.year-lb.year)}],["months",function(lb,ib){return ib.month-lb.month+12*(ib.year-lb.year)}],["weeks",function(lb,ib){lb=J(lb,ib);return(lb-lb%7)/7}],["days",J]];Ra<Za.length;Ra++){var fb=Za[Ra],kb=fb[0];fb=fb[1];0<=H.indexOf(kb)&&(ya=kb,P[kb]=fb(O,Z),Fa=aa.plus(P),Fa>Z?(P[kb]--,O=aa.plus(P)):O=Fa)}return[O,P,Fa,ya]}function ia(O,Z,H,P){var aa=U(O,Z,H);O=aa[0];var ya=aa[1],Fa=aa[2],Ra=aa[3];aa=Z-O;H=H.filter(function(kb){return 0<=
["hours","minutes","seconds","milliseconds"].indexOf(kb)});if(0===H.length){if(Fa<Z){var Za;Fa=O.plus((Za={},Za[Ra]=1,Za))}Fa!==O&&(ya[Ra]=(ya[Ra]||0)+aa/(Fa-O))}Z=Bb.fromObject(ya,P);if(0<H.length){var fb;return(fb=Bb.fromMillis(aa,P)).shiftTo.apply(fb,H).plus(Z)}return Z}function K(O,Z){O=O.numberingSystem;void 0===Z&&(Z="");return new RegExp(""+qc[O||"latn"]+Z)}function T(O,Z){void 0===Z&&(Z=function(H){return H});return{regex:O,deser:function(H){var P=Z;H=H[0];var aa=parseInt(H,10);if(isNaN(aa)){aa=
"";for(var ya=0;ya<H.length;ya++){var Fa=H.charCodeAt(ya);if(-1!==H[ya].search(qc.hanidec))aa+=ed.indexOf(H[ya]);else for(fb in Ec){var Ra=Ec[fb],Za=Ra[0];Ra=Ra[1];Fa>=Za&&Fa<=Ra&&(aa+=Fa-Za)}}var fb=parseInt(aa,10)}else fb=aa;return P(fb)}}}function fa(O){return O.replace(/\./g,"\\.?").replace(rc,Fc)}function ra(O,Z){return null===O?null:{regex:RegExp(O.map(fa).join("|")),deser:function(H){var P=H[0];return O.findIndex(function(aa){return P.replace(/\./g,"").replace(rc," ").toLowerCase()===aa.replace(/\./g,
"").replace(rc," ").toLowerCase()})+Z}}}function Ba(O,Z){return{regex:O,deser:function(H){return sa(H[1],H[2])},groups:Z}}function Ma(O){return{regex:O,deser:function(Z){return Z[0]}}}function Ha(O,Z){var H=K(Z),P=K(Z,"{2}"),aa=K(Z,"{3}"),ya=K(Z,"{4}"),Fa=K(Z,"{6}"),Ra=K(Z,"{1,2}"),Za=K(Z,"{1,3}"),fb=K(Z,"{1,6}"),kb=K(Z,"{1,9}"),lb=K(Z,"{2,4}"),ib=K(Z,"{4,6}"),tb=function($b){return{regex:RegExp($b.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$\x26")),deser:function(fd){return fd[0]},literal:!0}},
Fb=function($b){if(O.literal)return tb($b);switch($b.val){case "G":return ra(Z.eras("short",!1),0);case "GG":return ra(Z.eras("long",!1),0);case "y":return T(fb);case "yy":return T(lb,la);case "yyyy":return T(ya);case "yyyyy":return T(ib);case "yyyyyy":return T(Fa);case "M":return T(Ra);case "MM":return T(P);case "MMM":return ra(Z.months("short",!0,!1),1);case "MMMM":return ra(Z.months("long",!0,!1),1);case "L":return T(Ra);case "LL":return T(P);case "LLL":return ra(Z.months("short",!1,!1),1);case "LLLL":return ra(Z.months("long",
!1,!1),1);case "d":return T(Ra);case "dd":return T(P);case "o":return T(Za);case "ooo":return T(aa);case "HH":return T(P);case "H":return T(Ra);case "hh":return T(P);case "h":return T(Ra);case "mm":return T(P);case "m":return T(Ra);case "q":return T(Ra);case "qq":return T(P);case "s":return T(Ra);case "ss":return T(P);case "S":return T(Za);case "SSS":return T(aa);case "u":return Ma(kb);case "uu":return Ma(Ra);case "uuu":return T(H);case "a":return ra(Z.meridiems(),0);case "kkkk":return T(ya);case "kk":return T(lb,
la);case "W":return T(Ra);case "WW":return T(P);case "E":case "c":return T(H);case "EEE":return ra(Z.weekdays("short",!1,!1),1);case "EEEE":return ra(Z.weekdays("long",!1,!1),1);case "ccc":return ra(Z.weekdays("short",!0,!1),1);case "cccc":return ra(Z.weekdays("long",!0,!1),1);case "Z":case "ZZ":return Ba(new RegExp("([+-]"+Ra.source+")(?::("+P.source+"))?"),2);case "ZZZ":return Ba(new RegExp("([+-]"+Ra.source+")("+P.source+")?"),2);case "z":return Ma(/[a-z_+-/]{1,256}?/i);default:return tb($b)}}(O)||
{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};Fb.token=O;return Fb}function Ua(O){return["^"+O.map(function(Z){return Z.regex}).reduce(function(Z,H){return Z+"("+H.source+")"},"")+"$",O]}function Ta(O,Z,H){if(O=O.match(Z)){Z={};var P=1,aa;for(aa in H)if(E(H,aa)){var ya=H[aa],Fa=ya.groups?ya.groups+1:1;!ya.literal&&ya.token&&(Z[ya.token.val[0]]=ya.deser(O.slice(P,P+Fa)));P+=Fa}return[O,Z]}return[O,{}]}function Oa(O){var Z=function(aa){switch(aa){case "S":return"millisecond";case "s":return"second";
case "m":return"minute";case "h":case "H":return"hour";case "d":return"day";case "o":return"ordinal";case "L":case "M":return"month";case "y":return"year";case "E":case "c":return"weekday";case "W":return"weekNumber";case "k":return"weekYear";case "q":return"quarter";default:return null}},H=null;z(O.z)||(H=Xb.create(O.z));if(!z(O.Z)){H||(H=new Kb(O.Z));var P=O.Z}z(O.q)||(O.M=3*(O.q-1)+1);z(O.h)||(12>O.h&&1===O.a?O.h+=12:12===O.h&&0===O.a&&(O.h=0));0===O.G&&O.y&&(O.y=-O.y);z(O.u)||(O.S=N(O.u));return[Object.keys(O).reduce(function(aa,
ya){var Fa=Z(ya);Fa&&(aa[Fa]=O[ya]);return aa},{}),H,P]}function Xa(O,Z){var H;return(H=Array.prototype).concat.apply(H,O.map(function(P){if(!P.literal){var aa=Lb.macroTokenToFormatOpts(P.val);aa=bb(aa,Z);P=null==aa||aa.includes(void 0)?P:aa}return P}))}function $a(O,Z,H){H=Xa(Lb.parseFormat(H),O);var P=H.map(function(fb){return Ha(fb,O)}),aa=P.find(function(fb){return fb.invalidReason});if(aa)return{input:Z,tokens:H,invalidReason:aa.invalidReason};aa=Ua(P);P=RegExp(aa[0],"i");var ya=Ta(Z,P,aa[1]);
aa=ya[0];var Fa=(ya=ya[1])?Oa(ya):[null,null,void 0],Ra=Fa[0],Za=Fa[1];Fa=Fa[2];if(E(ya,"a")&&E(ya,"H"))throw new Sb("Can't include meridiem when specifying 24-hour format");return{input:Z,tokens:H,regex:P,rawMatches:aa,matches:ya,result:Ra,zone:Za,specificOffset:Fa}}function bb(O,Z){if(!O)return null;Z=Lb.create(Z,O);var H=Z.formatDateTimeParts;sc||(sc=wb.fromMillis(1555555555555));return H.call(Z,sc).map(function(P){var aa=P.type;P=P.value;"literal"===aa?aa={literal:!0,val:P}:(P=O[aa],aa=gd[aa],
"object"===typeof aa&&(aa=aa[P]),aa=aa?{literal:!1,val:aa}:void 0);return aa})}function hb(O,Z){return new Mb("unit out of range","you specified "+Z+" (of type "+typeof Z+") as a "+O+", which is invalid")}function gb(O,Z,H){Z=new Date(Date.UTC(O,Z-1,H));100>O&&0<=O&&Z.setUTCFullYear(Z.getUTCFullYear()-1900);O=Z.getUTCDay();return 0===O?7:O}function mb(O,Z){O=ba(O)?tc:uc;var H=O.findIndex(function(P){return P<Z});return{month:H+1,day:Z-O[H]}}function rb(O){var Z=O.year,H=O.month,P=O.day;var aa=P+(ba(Z)?
tc:uc)[H-1];H=gb(Z,H,P);aa=Math.floor((aa-H+10)/7);1>aa?(--Z,aa=W(Z)):aa>W(Z)&&(Z+=1,aa=1);return r({weekYear:Z,weekNumber:aa,weekday:H},L(O))}function ob(O){var Z=O.weekYear,H=O.weekNumber,P=O.weekday,aa=gb(Z,1,4),ya=ba(Z)?366:365;H=7*H+P-aa-3;1>H?(ya=Z-1,H+=ba(ya)?366:365):H>ya?(ya=Z+1,H-=ba(Z)?366:365):ya=Z;Z=mb(ya,H);return r({year:ya,month:Z.month,day:Z.day},L(O))}function eb(O){var Z=O.year;var H=O.month;H=O.day+(ba(Z)?tc:uc)[H-1];return r({year:Z,ordinal:H},L(O))}function nb(O){var Z=O.year,
H=mb(Z,O.ordinal);return r({year:Z,month:H.month,day:H.day},L(O))}function Ab(O){var Z=y(O.year),H=v(O.month,1,12),P=v(O.day,1,na(O.year,O.month));return Z?H?P?!1:hb("day",O.day):hb("month",O.month):hb("year",O.year)}function qb(O){var Z=O.hour,H=O.minute,P=O.second;O=O.millisecond;var aa=v(Z,0,23)||24===Z&&0===H&&0===P&&0===O,ya=v(H,0,59),Fa=v(P,0,59),Ra=v(O,0,999);return aa?ya?Fa?Ra?!1:hb("millisecond",O):hb("second",P):hb("minute",H):hb("hour",Z)}function sb(O){return new Mb("unsupported zone",
'the zone "'+O.name+'" is not supported')}function vb(O){null===O.weekData&&(O.weekData=rb(O.c));return O.weekData}function Ob(O,Z){O={ts:O.ts,zone:O.zone,c:O.c,o:O.o,loc:O.loc,invalid:O.invalid};return new wb(r({},O,Z,{old:O}))}function zb(O,Z,H){var P=O-6E4*Z,aa=H.offset(P);if(Z===aa)return[P,Z];P-=6E4*(aa-Z);Z=H.offset(P);return aa===Z?[P,aa]:[O-6E4*Math.min(aa,Z),Math.max(aa,Z)]}function Hb(O,Z){O=new Date(O+6E4*Z);return{year:O.getUTCFullYear(),month:O.getUTCMonth()+1,day:O.getUTCDate(),hour:O.getUTCHours(),
minute:O.getUTCMinutes(),second:O.getUTCSeconds(),millisecond:O.getUTCMilliseconds()}}function Eb(O,Z,H){return zb(xa(O),Z,H)}function Wb(O,Z){var H=O.o,P=O.c.year+Math.trunc(Z.years),aa=O.c.month+Math.trunc(Z.months)+3*Math.trunc(Z.quarters);P=r({},O.c,{year:P,month:aa,day:Math.min(O.c.day,na(P,aa))+Math.trunc(Z.days)+7*Math.trunc(Z.weeks)});Z=Bb.fromObject({years:Z.years-Math.trunc(Z.years),quarters:Z.quarters-Math.trunc(Z.quarters),months:Z.months-Math.trunc(Z.months),weeks:Z.weeks-Math.trunc(Z.weeks),
days:Z.days-Math.trunc(Z.days),hours:Z.hours,minutes:Z.minutes,seconds:Z.seconds,milliseconds:Z.milliseconds}).as("milliseconds");P=xa(P);P=zb(P,H,O.zone);H=P[0];P=P[1];0!==Z&&(H+=Z,P=O.zone.offset(H));return{ts:H,o:P}}function Pb(O,Z,H,P,aa,ya){var Fa=H.setZone,Ra=H.zone;return O&&0!==Object.keys(O).length?(O=wb.fromObject(O,r({},H,{zone:Z||Ra,specificOffset:ya})),Fa?O:O.setZone(Ra)):wb.invalid(new Mb("unparsable",'the input "'+aa+"\" can't be parsed as "+P))}function Ib(O,Z,H){void 0===H&&(H=!0);
return O.isValid?Lb.create(xb.create("en-US"),{allowZ:H,forceSimple:!0}).formatDateTimeFromString(O,Z):null}function Yb(O,Z){var H=9999<O.c.year||0>O.c.year,P="";H&&0<=O.c.year&&(P+="+");P+=A(O.c.year,H?6:4);Z?(P=P+"-"+A(O.c.month),P=P+"-"+A(O.c.day)):(P+=A(O.c.month),P+=A(O.c.day));return P}function ac(O,Z,H,P,aa,ya){var Fa=A(O.c.hour);Z?(Fa=Fa+":"+A(O.c.minute),0===O.c.second&&H||(Fa+=":")):Fa+=A(O.c.minute);0===O.c.second&&H||(Fa+=A(O.c.second),0===O.c.millisecond&&P||(Fa=Fa+"."+A(O.c.millisecond,
3)));aa&&(O.isOffsetFixed&&0===O.offset&&!ya?Fa+="Z":0>O.o?(Fa=Fa+"-"+A(Math.trunc(-O.o/60)),Fa=Fa+":"+A(Math.trunc(-O.o%60))):(Fa=Fa+"+"+A(Math.trunc(O.o/60)),Fa=Fa+":"+A(Math.trunc(O.o%60))));ya&&(Fa+="["+O.zone.ianaName+"]");return Fa}function bc(O){var Z={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",
weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[O.toLowerCase()];if(!Z)throw new cc(O);return Z}function dc(O,Z){var H=t(Z.zone,ub.defaultZone);Z=xb.fromObject(Z);var P=ub.now();if(z(O.year))O=P;else{var aa=0;for(var ya=Gc;aa<ya.length;aa++){var Fa=ya[aa];z(O[Fa])&&(O[Fa]=Hc[Fa])}if(aa=Ab(O)||qb(O))return wb.invalid(aa);P=H.offset(P);P=Eb(O,P,H);O=P[0];aa=P[1]}return new wb({ts:O,
zone:H,loc:Z,o:aa})}function ec(O,Z,H){var P=z(H.round)?!0:H.round,aa=function(fb,kb){fb=da(fb,P||H.calendary?0:2,!0);return Z.loc.clone(H).relFormatter(H).format(fb,kb)},ya=function(fb){return H.calendary?Z.hasSame(O,fb)?0:Z.startOf(fb).diff(O.startOf(fb),fb).get(fb):Z.diff(O,fb).get(fb)};if(H.unit)return aa(ya(H.unit),H.unit);for(var Fa=l(H.units),Ra;!(Ra=Fa()).done;){Ra=Ra.value;var Za=ya(Ra);if(1<=Math.abs(Za))return aa(Za,Ra)}return aa(O>Z?-0:0,H.units[H.units.length-1])}function fc(O){var Z=
{};0<O.length&&"object"===typeof O[O.length-1]?(Z=O[O.length-1],O=Array.from(O).slice(0,O.length-1)):O=Array.from(O);return[Z,O]}function Tb(O){if(wb.isDateTime(O))return O;if(O&&O.valueOf&&C(O.valueOf()))return wb.fromJSDate(O);if(O&&"object"===typeof O)return wb.fromObject(O);throw new Db("Unknown datetime argument: "+O+", of type "+typeof O);}var Gb=function(O){function Z(){return O.apply(this,arguments)||this}h(Z,O);return Z}(g(Error)),lc=function(O){function Z(H){return O.call(this,"Invalid DateTime: "+
H.toMessage())||this}h(Z,O);return Z}(Gb),Nb=function(O){function Z(H){return O.call(this,"Invalid Interval: "+H.toMessage())||this}h(Z,O);return Z}(Gb),mc=function(O){function Z(H){return O.call(this,"Invalid Duration: "+H.toMessage())||this}h(Z,O);return Z}(Gb),Sb=function(O){function Z(){return O.apply(this,arguments)||this}h(Z,O);return Z}(Gb),cc=function(O){function Z(H){return O.call(this,"Invalid unit "+H)||this}h(Z,O);return Z}(Gb),Db=function(O){function Z(){return O.apply(this,arguments)||
this}h(Z,O);return Z}(Gb),Qb=function(O){function Z(){return O.call(this,"Zone is an abstract class")||this}h(Z,O);return Z}(Gb),Zb={year:"numeric",month:"numeric",day:"numeric"},yb={year:"numeric",month:"short",day:"numeric"},R={year:"numeric",month:"short",day:"numeric",weekday:"short"},Ja={year:"numeric",month:"long",day:"numeric"},Ia={year:"numeric",month:"long",day:"numeric",weekday:"long"},Aa={hour:"numeric",minute:"numeric"},Da={hour:"numeric",minute:"numeric",second:"numeric"},Na={hour:"numeric",
minute:"numeric",second:"numeric",timeZoneName:"short"},La={hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"long"},Ga={hour:"numeric",minute:"numeric",hourCycle:"h23"},Sa={hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"},Va={hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23",timeZoneName:"short"},Ya={hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23",timeZoneName:"long"},db={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"},
Wa={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},cb={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"},ab={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},jb={year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric"},Cb={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"},gc={year:"numeric",month:"long",
day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},hc={year:"numeric",month:"long",day:"numeric",weekday:"long",hour:"numeric",minute:"numeric",timeZoneName:"long"},ic={year:"numeric",month:"long",day:"numeric",weekday:"long",hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"long"},pb=function(){function O(){}var Z=O.prototype;Z.offsetName=function(H,P){throw new Qb;};Z.formatOffset=function(H,P){throw new Qb;};Z.offset=function(H){throw new Qb;};Z.equals=
function(H){throw new Qb;};c(O,[{key:"type",get:function(){throw new Qb;}},{key:"name",get:function(){throw new Qb;}},{key:"ianaName",get:function(){return this.name}},{key:"isUniversal",get:function(){throw new Qb;}},{key:"isValid",get:function(){throw new Qb;}}]);return O}(),Ub=null,Jb=function(O){function Z(){return O.apply(this,arguments)||this}h(Z,O);var H=Z.prototype;H.offsetName=function(P,aa){return ha(P,aa.format,aa.locale)};H.formatOffset=function(P,aa){return qa(this.offset(P),aa)};H.offset=
function(P){return-(new Date(P)).getTimezoneOffset()};H.equals=function(P){return"system"===P.type};c(Z,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){null===Ub&&(Ub=new Z);return Ub}}]);return Z}(pb),Vb={},hd={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},nc={},Xb=function(O){function Z(P){var aa=
O.call(this)||this;aa.zoneName=P;aa.valid=Z.isValidZone(P);return aa}h(Z,O);Z.create=function(P){nc[P]||(nc[P]=new Z(P));return nc[P]};Z.resetCache=function(){nc={};Vb={}};Z.isValidSpecifier=function(P){return this.isValidZone(P)};Z.isValidZone=function(P){if(!P)return!1;try{return(new Intl.DateTimeFormat("en-US",{timeZone:P})).format(),!0}catch(aa){return!1}};var H=Z.prototype;H.offsetName=function(P,aa){return ha(P,aa.format,aa.locale,this.name)};H.formatOffset=function(P,aa){return qa(this.offset(P),
aa)};H.offset=function(P){P=new Date(P);if(isNaN(P))return NaN;var aa=this.name;Vb[aa]||(Vb[aa]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:aa,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}));aa=Vb[aa];if(aa.formatToParts){aa=aa.formatToParts(P);for(var ya=[],Fa=0;Fa<aa.length;Fa++){var Ra=aa[Fa],Za=Ra.type;Ra=Ra.value;var fb=hd[Za];"era"===Za?ya[fb]=Ra:z(fb)||(ya[fb]=parseInt(Ra,10))}aa=ya}else aa=aa.format(P).replace(/\u200E/g,
""),aa=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(aa),aa=[aa[3],aa[1],aa[2],aa[4],aa[5],aa[6],aa[7]];ya=aa[0];Fa=aa[1];Za=aa[2];Ra=aa[4];fb=aa[5];var kb=aa[6];"BC"===aa[3]&&(ya=-Math.abs(ya)+1);aa=xa({year:ya,month:Fa,day:Za,hour:24===Ra?0:Ra,minute:fb,second:kb,millisecond:0});P=+P;ya=P%1E3;return(aa-(P-(0<=ya?ya:1E3+ya)))/6E4};H.equals=function(P){return"iana"===P.type&&P.name===this.name};c(Z,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},
{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]);return Z}(pb),id=["base"],jd=["padTo","floor"],Ic={},pc={},vc={},wc={},oc=null,kd=function(){function O(Z,H,P){this.padTo=P.padTo||0;this.floor=P.floor||!1;P.padTo;P.floor;var aa=a(P,jd);if(!H||0<Object.keys(aa).length)H=r({useGrouping:!1},P),0<P.padTo&&(H.minimumIntegerDigits=P.padTo),P=H,void 0===P&&(P={}),H=JSON.stringify([Z,P]),aa=vc[H],aa||(aa=new Intl.NumberFormat(Z,P),vc[H]=aa),this.inf=aa}O.prototype.format=
function(Z){if(this.inf)return this.inf.format(this.floor?Math.floor(Z):Z);Z=this.floor?Math.floor(Z):da(Z,3);return A(Z,this.padTo)};return O}(),ld=function(){function O(H,P,aa){this.opts=aa;var ya=void 0;H.zone.isUniversal?(ya=H.offset/60*-1,ya=0<=ya?"Etc/GMT+"+ya:"Etc/GMT"+ya,0!==H.offset&&Xb.create(ya).valid?this.dt=H:(ya="UTC",this.dt=aa.timeZoneName?H:0===H.offset?H:wb.fromMillis(H.ts+6E4*H.offset))):"system"===H.zone.type?this.dt=H:(this.dt=H,ya=H.zone.name);H=r({},this.opts);H.timeZone=H.timeZone||
ya;this.dtf=m(P,H)}var Z=O.prototype;Z.format=function(){return this.dtf.format(this.dt.toJSDate())};Z.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())};Z.resolvedOptions=function(){return this.dtf.resolvedOptions()};return O}(),md=function(){function O(H,P,aa){this.opts=r({style:"long"},aa);if(!P&&D()){P=aa;void 0===P&&(P={});aa=P;aa.base;aa=a(aa,id);aa=JSON.stringify([H,aa]);var ya=wc[aa];ya||(ya=new Intl.RelativeTimeFormat(H,P),wc[aa]=ya);this.rtf=ya}}var Z=O.prototype;
Z.format=function(H,P){return this.rtf?this.rtf.format(H,P):X(P,H,this.opts.numeric,"long"!==this.opts.style)};Z.formatToParts=function(H,P){return this.rtf?this.rtf.formatToParts(H,P):[]};return O}(),xb=function(){function O(H,P,aa,ya){var Fa=H.indexOf("-x-");-1!==Fa&&(H=H.substring(0,Fa));Fa=H.indexOf("-u-");if(-1===Fa)var Ra=[H];else{try{Ra=m(H).resolvedOptions();var Za=H}catch(fb){Za=H.substring(0,Fa),Ra=m(Za).resolvedOptions()}Ra=[Za,Ra.numberingSystem,Ra.calendar]}Za=Ra[1];H=Ra[2];this.locale=
Ra[0];this.numberingSystem=P||Za||null;this.outputCalendar=aa||H||null;P=this.locale;aa=this.numberingSystem;if((Ra=this.outputCalendar)||aa)P.includes("-u-")||(P+="-u"),Ra&&(P+="-ca-"+Ra),aa&&(P+="-nu-"+aa);this.intl=P;this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=ya;this.fastNumbersCached=null}O.fromOpts=function(H){return O.create(H.locale,H.numberingSystem,H.outputCalendar,H.defaultToEN)};O.create=
function(H,P,aa,ya){void 0===ya&&(ya=!1);H=H||ub.defaultLocale;var Fa;(Fa=H)||(ya?ya="en-US":(oc||(oc=(new Intl.DateTimeFormat).resolvedOptions().locale),ya=oc),Fa=ya);return new O(Fa,P||ub.defaultNumberingSystem,aa||ub.defaultOutputCalendar,H)};O.resetCache=function(){oc=null;pc={};vc={};wc={}};O.fromObject=function(H){H=void 0===H?{}:H;return O.create(H.locale,H.numberingSystem,H.outputCalendar)};var Z=O.prototype;Z.listingMode=function(){var H=this.isEnglish(),P=(null===this.numberingSystem||"latn"===
this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return H&&P?"en":"intl"};Z.clone=function(H){return H&&0!==Object.getOwnPropertyNames(H).length?O.create(H.locale||this.specifiedLocale,H.numberingSystem||this.numberingSystem,H.outputCalendar||this.outputCalendar,H.defaultToEN||!1):this};Z.redefaultToEN=function(H){void 0===H&&(H={});return this.clone(r({},H,{defaultToEN:!0}))};Z.redefaultToSystem=function(H){void 0===H&&(H={});return this.clone(r({},H,{defaultToEN:!1}))};
Z.months=function(H,P,aa){var ya=this;void 0===P&&(P=!1);void 0===aa&&(aa=!0);return p(this,H,aa,Y,function(){var Fa=P?{month:H,day:"numeric"}:{month:H},Ra=P?"format":"standalone";ya.monthsCache[Ra][H]||(ya.monthsCache[Ra][H]=e(function(Za){return ya.extract(Za,Fa,"month")}));return ya.monthsCache[Ra][H]})};Z.weekdays=function(H,P,aa){var ya=this;void 0===P&&(P=!1);void 0===aa&&(aa=!0);return p(this,H,aa,ca,function(){var Fa=P?{weekday:H,year:"numeric",month:"long",day:"numeric"}:{weekday:H},Ra=P?
"format":"standalone";ya.weekdaysCache[Ra][H]||(ya.weekdaysCache[Ra][H]=b(function(Za){return ya.extract(Za,Fa,"weekday")}));return ya.weekdaysCache[Ra][H]})};Z.meridiems=function(H){var P=this;void 0===H&&(H=!0);return p(this,void 0,H,function(){return Jc},function(){if(!P.meridiemCache){var aa={hour:"numeric",hourCycle:"h12"};P.meridiemCache=[wb.utc(2016,11,13,9),wb.utc(2016,11,13,19)].map(function(ya){return P.extract(ya,aa,"dayperiod")})}return P.meridiemCache})};Z.eras=function(H,P){var aa=this;
void 0===P&&(P=!0);return p(this,H,P,V,function(){var ya={era:H};aa.eraCache[H]||(aa.eraCache[H]=[wb.utc(-40,1,1),wb.utc(2017,1,1)].map(function(Fa){return aa.extract(Fa,ya,"era")}));return aa.eraCache[H]})};Z.extract=function(H,P,aa){return(H=this.dtFormatter(H,P).formatToParts().find(function(ya){return ya.type.toLowerCase()===aa}))?H.value:null};Z.numberFormatter=function(H){void 0===H&&(H={});return new kd(this.intl,H.forceSimple||this.fastNumbers,H)};Z.dtFormatter=function(H,P){void 0===P&&(P=
{});return new ld(H,this.intl,P)};Z.relFormatter=function(H){void 0===H&&(H={});return new md(this.intl,this.isEnglish(),H)};Z.listFormatter=function(H){void 0===H&&(H={});var P=this.intl;void 0===H&&(H={});var aa=JSON.stringify([P,H]),ya=Ic[aa];ya||(ya=new Intl.ListFormat(P,H),Ic[aa]=ya);return ya};Z.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||(new Intl.DateTimeFormat(this.intl)).resolvedOptions().locale.startsWith("en-us")};Z.equals=function(H){return this.locale===
H.locale&&this.numberingSystem===H.numberingSystem&&this.outputCalendar===H.outputCalendar};c(O,[{key:"fastNumbers",get:function(){if(null==this.fastNumbersCached){var H=this.numberingSystem&&"latn"!==this.numberingSystem?!1:"latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===(new Intl.DateTimeFormat(this.intl)).resolvedOptions().numberingSystem;this.fastNumbersCached=H}return this.fastNumbersCached}}]);return O}(),xc=null,Kb=function(O){function Z(P){var aa=O.call(this)||
this;aa.fixed=P;return aa}h(Z,O);Z.instance=function(P){return 0===P?Z.utcInstance:new Z(P)};Z.parseSpecifier=function(P){return P&&(P=P.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i))?new Z(sa(P[1],P[2])):null};var H=Z.prototype;H.offsetName=function(){return this.name};H.formatOffset=function(P,aa){return qa(this.fixed,aa)};H.offset=function(){return this.fixed};H.equals=function(P){return"fixed"===P.type&&P.fixed===this.fixed};c(Z,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===
this.fixed?"UTC":"UTC"+qa(this.fixed,"narrow")}},{key:"ianaName",get:function(){return 0===this.fixed?"Etc/UTC":"Etc/GMT"+qa(-this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){null===xc&&(xc=new Z(0));return xc}}]);return Z}(pb),Ac=function(O){function Z(P){var aa=O.call(this)||this;aa.zoneName=P;return aa}h(Z,O);var H=Z.prototype;H.offsetName=function(){return null};H.formatOffset=function(){return""};
H.offset=function(){return NaN};H.equals=function(){return!1};c(Z,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]);return Z}(pb),Kc=function(){return Date.now()},Lc="system",Mc=null,Nc=null,Oc=null,Pc=60,Qc,ub=function(){function O(){}O.resetCaches=function(){xb.resetCache();Xb.resetCache()};c(O,null,[{key:"now",get:function(){return Kc},set:function(Z){Kc=Z}},{key:"defaultZone",
get:function(){return t(Lc,Jb.instance)},set:function(Z){Lc=Z}},{key:"defaultLocale",get:function(){return Mc},set:function(Z){Mc=Z}},{key:"defaultNumberingSystem",get:function(){return Nc},set:function(Z){Nc=Z}},{key:"defaultOutputCalendar",get:function(){return Oc},set:function(Z){Oc=Z}},{key:"twoDigitCutoffYear",get:function(){return Pc},set:function(Z){Pc=Z%100}},{key:"throwOnInvalid",get:function(){return Qc},set:function(Z){Qc=Z}}]);return O}(),Yc="January February March April May June July August September October November December".split(" "),
Bc="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Xc="JFMAMJJASOND".split(""),Dc="Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),Cc="Mon Tue Wed Thu Fri Sat Sun".split(" "),Zc="MTWTFSS".split(""),Jc=["AM","PM"],bd=["Before Christ","Anno Domini"],ad=["BC","AD"],$c=["B","A"],nd={D:Zb,DD:yb,DDD:Ja,DDDD:Ia,t:Aa,tt:Da,ttt:Na,tttt:La,T:Ga,TT:Sa,TTT:Va,TTTT:Ya,f:db,ff:cb,fff:Cb,ffff:hc,F:Wa,FF:ab,FFF:gc,FFFF:ic},Lb=function(){function O(H,P){this.opts=P;this.loc=H;this.systemLoc=
null}O.create=function(H,P){void 0===P&&(P={});return new O(H,P)};O.parseFormat=function(H){for(var P=null,aa="",ya=!1,Fa=[],Ra=0;Ra<H.length;Ra++){var Za=H.charAt(Ra);"'"===Za?(0<aa.length&&Fa.push({literal:ya,val:aa}),P=null,aa="",ya=!ya):ya?aa+=Za:Za===P?aa+=Za:(0<aa.length&&Fa.push({literal:!1,val:aa}),P=aa=Za)}0<aa.length&&Fa.push({literal:ya,val:aa});return Fa};O.macroTokenToFormatOpts=function(H){return nd[H]};var Z=O.prototype;Z.formatWithSystemDefault=function(H,P){null===this.systemLoc&&
(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(H,r({},this.opts,P)).format()};Z.formatDateTime=function(H,P){void 0===P&&(P={});return this.loc.dtFormatter(H,r({},this.opts,P)).format()};Z.formatDateTimeParts=function(H,P){void 0===P&&(P={});return this.loc.dtFormatter(H,r({},this.opts,P)).formatToParts()};Z.formatInterval=function(H,P){void 0===P&&(P={});return this.loc.dtFormatter(H.start,r({},this.opts,P)).dtf.formatRange(H.start.toJSDate(),H.end.toJSDate())};Z.resolvedOptions=
function(H,P){void 0===P&&(P={});return this.loc.dtFormatter(H,r({},this.opts,P)).resolvedOptions()};Z.num=function(H,P){void 0===P&&(P=0);if(this.opts.forceSimple)return A(H,P);var aa=r({},this.opts);0<P&&(aa.padTo=P);return this.loc.numberFormatter(aa).format(H)};Z.formatDateTimeFromString=function(H,P){var aa=this,ya="en"===this.loc.listingMode(),Fa=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,Ra=function(ib,tb){return aa.loc.extract(H,ib,tb)},Za=function(ib){return H.isOffsetFixed&&
0===H.offset&&ib.allowZ?"Z":H.isValid?H.zone.formatOffset(H.ts,ib.format):""},fb=function(ib,tb){return ya?Y(ib)[H.month-1]:Ra(tb?{month:ib}:{month:ib,day:"numeric"},"month")},kb=function(ib,tb){return ya?ca(ib)[H.weekday-1]:Ra(tb?{weekday:ib}:{weekday:ib,month:"long",day:"numeric"},"weekday")},lb=function(ib){return ya?V(ib)[0>H.year?0:1]:Ra({era:ib},"era")};return ja(O.parseFormat(P),function(ib){switch(ib){case "S":return aa.num(H.millisecond);case "u":case "SSS":return aa.num(H.millisecond,3);
case "s":return aa.num(H.second);case "ss":return aa.num(H.second,2);case "uu":return aa.num(Math.floor(H.millisecond/10),2);case "uuu":return aa.num(Math.floor(H.millisecond/100));case "m":return aa.num(H.minute);case "mm":return aa.num(H.minute,2);case "h":return aa.num(0===H.hour%12?12:H.hour%12);case "hh":return aa.num(0===H.hour%12?12:H.hour%12,2);case "H":return aa.num(H.hour);case "HH":return aa.num(H.hour,2);case "Z":return Za({format:"narrow",allowZ:aa.opts.allowZ});case "ZZ":return Za({format:"short",
allowZ:aa.opts.allowZ});case "ZZZ":return Za({format:"techie",allowZ:aa.opts.allowZ});case "ZZZZ":return H.zone.offsetName(H.ts,{format:"short",locale:aa.loc.locale});case "ZZZZZ":return H.zone.offsetName(H.ts,{format:"long",locale:aa.loc.locale});case "z":return H.zoneName;case "a":return ya?Jc[12>H.hour?0:1]:Ra({hour:"numeric",hourCycle:"h12"},"dayperiod");case "d":return Fa?Ra({day:"numeric"},"day"):aa.num(H.day);case "dd":return Fa?Ra({day:"2-digit"},"day"):aa.num(H.day,2);case "c":return aa.num(H.weekday);
case "ccc":return kb("short",!0);case "cccc":return kb("long",!0);case "ccccc":return kb("narrow",!0);case "E":return aa.num(H.weekday);case "EEE":return kb("short",!1);case "EEEE":return kb("long",!1);case "EEEEE":return kb("narrow",!1);case "L":return Fa?Ra({month:"numeric",day:"numeric"},"month"):aa.num(H.month);case "LL":return Fa?Ra({month:"2-digit",day:"numeric"},"month"):aa.num(H.month,2);case "LLL":return fb("short",!0);case "LLLL":return fb("long",!0);case "LLLLL":return fb("narrow",!0);
case "M":return Fa?Ra({month:"numeric"},"month"):aa.num(H.month);case "MM":return Fa?Ra({month:"2-digit"},"month"):aa.num(H.month,2);case "MMM":return fb("short",!1);case "MMMM":return fb("long",!1);case "MMMMM":return fb("narrow",!1);case "y":return Fa?Ra({year:"numeric"},"year"):aa.num(H.year);case "yy":return Fa?Ra({year:"2-digit"},"year"):aa.num(H.year.toString().slice(-2),2);case "yyyy":return Fa?Ra({year:"numeric"},"year"):aa.num(H.year,4);case "yyyyyy":return Fa?Ra({year:"numeric"},"year"):
aa.num(H.year,6);case "G":return lb("short");case "GG":return lb("long");case "GGGGG":return lb("narrow");case "kk":return aa.num(H.weekYear.toString().slice(-2),2);case "kkkk":return aa.num(H.weekYear,4);case "W":return aa.num(H.weekNumber);case "WW":return aa.num(H.weekNumber,2);case "o":return aa.num(H.ordinal);case "ooo":return aa.num(H.ordinal,3);case "q":return aa.num(H.quarter);case "qq":return aa.num(H.quarter,2);case "X":return aa.num(Math.floor(H.ts/1E3));case "x":return aa.num(H.ts);default:var tb=
O.macroTokenToFormatOpts(ib);ib=tb?aa.formatWithSystemDefault(H,tb):ib;return ib}})};Z.formatDurationFromString=function(H,P){var aa=this,ya=function(Ra){switch(Ra[0]){case "S":return"millisecond";case "s":return"second";case "m":return"minute";case "h":return"hour";case "d":return"day";case "w":return"week";case "M":return"month";case "y":return"year";default:return null}};P=O.parseFormat(P);var Fa=P.reduce(function(Ra,Za){var fb=Za.val;return Za.literal?Ra:Ra.concat(fb)},[]);H=H.shiftTo.apply(H,
Fa.map(ya).filter(function(Ra){return Ra}));return ja(P,function(Ra){return function(Za){var fb=ya(Za);return fb?aa.num(Ra.get(fb),Za.length):Za}}(H))};return O}(),Mb=function(){function O(Z,H){this.reason=Z;this.explanation=H}O.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason};return O}(),Rc=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,Sc=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,yc=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,
Tc=RegExp(""+yc.source+("(?:"+Sc.source+"?(?:\\[("+Rc.source+")\\])?)?")),zc=RegExp("(?:T"+Tc.source+")?"),od=va("weekYear","weekNumber","weekDay"),pd=va("year","ordinal"),Uc=RegExp(yc.source+" ?(?:"+Sc.source+"|("+Rc.source+"))?"),qd=RegExp("(?: "+Uc.source+")?"),rd=RegExp("^T?"+yc.source+"$"),sd=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/,
cd={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},td=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/,ud=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,vd=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,
wd=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/,xd=pa(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,zc),yd=pa(/(\d{4})-?W(\d\d)(?:-?(\d))?/,zc),zd=pa(/(\d{4})-?(\d{3})/,zc),Ad=pa(Tc),Vc=ta(function(O,Z){return[{year:M(O,Z),month:M(O,Z+1,1),day:M(O,Z+2,1)},null,Z+3]},S,ma,ua),Bd=ta(od,S,ma,ua),Cd=ta(pd,S,ma,ua),Dd=ta(S,ma,ua),Ed=ta(S),Fd=pa(/(\d{4})-(\d\d)-(\d\d)/,qd),Gd=pa(Uc),Hd=ta(S,ma,ua),Wc={weeks:{days:7,hours:168,
minutes:10080,seconds:604800,milliseconds:6048E5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864E5},hours:{minutes:60,seconds:3600,milliseconds:36E5},minutes:{seconds:60,milliseconds:6E4},seconds:{milliseconds:1E3}},Id=r({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536E3,milliseconds:31536E6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624E5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592E3,
milliseconds:2592E6}},Wc),Jd=r({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:31556952,milliseconds:31556952E3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238E3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746E3}},Wc),Rb="years quarters months weeks days hours minutes seconds milliseconds".split(" "),dd=Rb.slice(0).reverse(),
Bb=function(){function O(H){var P="longterm"===H.conversionAccuracy||!1,aa=P?Jd:Id;H.matrix&&(aa=H.matrix);this.values=H.values;this.loc=H.loc||xb.create();this.conversionAccuracy=P?"longterm":"casual";this.invalid=H.invalid||null;this.matrix=aa;this.isLuxonDuration=!0}O.fromMillis=function(H,P){return O.fromObject({milliseconds:H},P)};O.fromObject=function(H,P){void 0===P&&(P={});if(null==H||"object"!==typeof H)throw new Db("Duration.fromObject: argument expected to be an object, got "+(null===H?
"null":typeof H));return new O({values:oa(H,O.normalizeUnit),loc:xb.fromObject(P),conversionAccuracy:P.conversionAccuracy,matrix:P.matrix})};O.fromDurationLike=function(H){if(C(H))return O.fromMillis(H);if(O.isDuration(H))return H;if("object"===typeof H)return O.fromObject(H);throw new Db("Unknown duration argument "+H+" of type "+typeof H);};O.fromISO=function(H,P){var aa=ea(H,[sd,wa])[0];return aa?O.fromObject(aa,P):O.invalid("unparsable",'the input "'+H+"\" can't be parsed as ISO 8601")};O.fromISOTime=
function(H,P){var aa=ea(H,[rd,Ed])[0];return aa?O.fromObject(aa,P):O.invalid("unparsable",'the input "'+H+"\" can't be parsed as ISO 8601")};O.invalid=function(H,P){void 0===P&&(P=null);if(!H)throw new Db("need to specify a reason the Duration is invalid");H=H instanceof Mb?H:new Mb(H,P);if(ub.throwOnInvalid)throw new mc(H);return new O({invalid:H})};O.normalizeUnit=function(H){var P={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",
day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[H?H.toLowerCase():H];if(!P)throw new cc(H);return P};O.isDuration=function(H){return H&&H.isLuxonDuration||!1};var Z=O.prototype;Z.toFormat=function(H,P){void 0===P&&(P={});P=r({},P,{floor:!1!==P.round&&!1!==P.floor});return this.isValid?Lb.create(this.loc,P).formatDurationFromString(this,H):"Invalid Duration"};Z.toHuman=function(H){var P=
this;void 0===H&&(H={});var aa=Rb.map(function(ya){var Fa=P.values[ya];return z(Fa)?null:P.loc.numberFormatter(r({style:"unit",unitDisplay:"long"},H,{unit:ya.slice(0,-1)})).format(Fa)}).filter(function(ya){return ya});return this.loc.listFormatter(r({type:"conjunction",style:H.listStyle||"narrow"},H)).format(aa)};Z.toObject=function(){return this.isValid?r({},this.values):{}};Z.toISO=function(){if(!this.isValid)return null;var H="P";0!==this.years&&(H+=this.years+"Y");if(0!==this.months||0!==this.quarters)H+=
this.months+3*this.quarters+"M";0!==this.weeks&&(H+=this.weeks+"W");0!==this.days&&(H+=this.days+"D");if(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)H+="T";0!==this.hours&&(H+=this.hours+"H");0!==this.minutes&&(H+=this.minutes+"M");if(0!==this.seconds||0!==this.milliseconds)H+=da(this.seconds+this.milliseconds/1E3,3)+"S";"P"===H&&(H+="T0S");return H};Z.toISOTime=function(H){void 0===H&&(H={});if(!this.isValid)return null;var P=this.toMillis();if(0>P||864E5<=P)return null;
H=r({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},H);P=this.shiftTo("hours","minutes","seconds","milliseconds");var aa="basic"===H.format?"hhmm":"hh:mm";H.suppressSeconds&&0===P.seconds&&0===P.milliseconds||(aa+="basic"===H.format?"ss":":ss",H.suppressMilliseconds&&0===P.milliseconds||(aa+=".SSS"));P=P.toFormat(aa);H.includePrefix&&(P="T"+P);return P};Z.toJSON=function(){return this.toISO()};Z.toString=function(){return this.toISO()};Z.toMillis=function(){return this.as("milliseconds")};
Z.valueOf=function(){return this.toMillis()};Z.plus=function(H){if(!this.isValid)return this;H=O.fromDurationLike(H);for(var P={},aa=0;aa<Rb.length;aa++){var ya=Rb[aa];if(E(H.values,ya)||E(this.values,ya))P[ya]=H.get(ya)+this.get(ya)}return Ka(this,{values:P},!0)};Z.minus=function(H){if(!this.isValid)return this;H=O.fromDurationLike(H);return this.plus(H.negate())};Z.mapUnits=function(H){if(!this.isValid)return this;for(var P={},aa=0,ya=Object.keys(this.values);aa<ya.length;aa++){var Fa=ya[aa];P[Fa]=
Ca(H(this.values[Fa],Fa))}return Ka(this,{values:P},!0)};Z.get=function(H){return this[O.normalizeUnit(H)]};Z.set=function(H){if(!this.isValid)return this;H=r({},this.values,oa(H,O.normalizeUnit));return Ka(this,{values:H})};Z.reconfigure=function(H){H=void 0===H?{}:H;var P=H.conversionAccuracy,aa=H.matrix;H={loc:this.loc.clone({locale:H.locale,numberingSystem:H.numberingSystem}),matrix:aa,conversionAccuracy:P};return Ka(this,H)};Z.as=function(H){return this.isValid?this.shiftTo(H).get(H):NaN};Z.normalize=
function(){if(!this.isValid)return this;var H=this.toObject();Pa(this.matrix,H);return Ka(this,{values:H},!0)};Z.rescale=function(){if(!this.isValid)return this;var H=this.normalize().shiftToAll().toObject(),P={},aa=0;for(H=Object.entries(H);aa<H.length;aa++){var ya=H[aa],Fa=ya[0];ya=ya[1];0!==ya&&(P[Fa]=ya)}return Ka(this,{values:P},!0)};Z.shiftTo=function(){for(var H=arguments.length,P=Array(H),aa=0;aa<H;aa++)P[aa]=arguments[aa];if(!this.isValid||0===P.length)return this;P=P.map(function(Fb){return O.normalizeUnit(Fb)});
H={};aa={};for(var ya=this.toObject(),Fa,Ra=0;Ra<Rb.length;Ra++){var Za=Rb[Ra];if(0<=P.indexOf(Za)){Fa=Za;var fb=0,kb;for(kb in aa)fb+=this.matrix[kb][Za]*aa[kb],aa[kb]=0;C(ya[Za])&&(fb+=ya[Za]);var lb=Math.trunc(fb);H[Za]=lb;aa[Za]=(1E3*fb-1E3*lb)/1E3;for(var ib in ya)Rb.indexOf(ib)>Rb.indexOf(Za)&&Qa(this.matrix,ya,ib,H,Za)}else C(ya[Za])&&(aa[Za]=ya[Za])}for(var tb in aa)0!==aa[tb]&&(H[Fa]+=tb===Fa?aa[tb]:aa[tb]/this.matrix[Fa][tb]);return Ka(this,{values:H},!0).normalize()};Z.shiftToAll=function(){return this.isValid?
this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this};Z.negate=function(){if(!this.isValid)return this;for(var H={},P=0,aa=Object.keys(this.values);P<aa.length;P++){var ya=aa[P];H[ya]=0===this.values[ya]?0:-this.values[ya]}return Ka(this,{values:H},!0)};Z.equals=function(H){if(!this.isValid||!H.isValid||!this.loc.equals(H.loc))return!1;for(var P=0;P<Rb.length;P++){var aa=Rb[P];var ya=this.values[aa];aa=H.values[aa];ya=void 0===ya||0===ya?void 0===aa||0===aa:
ya===aa;if(!ya)return!1}return!0};c(O,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||
0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?
this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]);return O}(),jc=function(){function O(H){this.s=H.start;this.e=H.end;this.invalid=H.invalid||null;this.isLuxonInterval=!0}O.invalid=function(H,P){void 0===P&&(P=null);if(!H)throw new Db("need to specify a reason the Interval is invalid");H=H instanceof Mb?H:new Mb(H,P);if(ub.throwOnInvalid)throw new Nb(H);return new O({invalid:H})};O.fromDateTimes=function(H,P){H=Tb(H);P=Tb(P);
var aa=H&&H.isValid?P&&P.isValid?P<H?jc.invalid("end before start","The end of an interval must be after its start, but you had start\x3d"+H.toISO()+" and end\x3d"+P.toISO()):null:jc.invalid("missing or invalid end"):jc.invalid("missing or invalid start");return null==aa?new O({start:H,end:P}):aa};O.after=function(H,P){P=Bb.fromDurationLike(P);H=Tb(H);return O.fromDateTimes(H,H.plus(P))};O.before=function(H,P){P=Bb.fromDurationLike(P);H=Tb(H);return O.fromDateTimes(H.minus(P),H)};O.fromISO=function(H,
P){var aa=(H||"").split("/",2),ya=aa[0];aa=aa[1];if(ya&&aa){try{var Fa=wb.fromISO(ya,P);var Ra=Fa.isValid}catch(kb){Ra=!1}try{var Za=wb.fromISO(aa,P);var fb=Za.isValid}catch(kb){fb=!1}if(Ra&&fb)return O.fromDateTimes(Fa,Za);if(Ra){if(Za=Bb.fromISO(aa,P),Za.isValid)return O.after(Fa,Za)}else if(fb&&(Fa=Bb.fromISO(ya,P),Fa.isValid))return O.before(Za,Fa)}return O.invalid("unparsable",'the input "'+H+"\" can't be parsed as ISO 8601")};O.isInterval=function(H){return H&&H.isLuxonInterval||!1};var Z=O.prototype;
Z.length=function(H){void 0===H&&(H="milliseconds");return this.isValid?this.toDuration.apply(this,[H]).get(H):NaN};Z.count=function(H){void 0===H&&(H="milliseconds");if(!this.isValid)return NaN;var P=this.start.startOf(H),aa=this.end.startOf(H);return Math.floor(aa.diff(P,H).get(H))+1};Z.hasSame=function(H){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,H):!1};Z.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()};Z.isAfter=function(H){return this.isValid?this.s>H:!1};
Z.isBefore=function(H){return this.isValid?this.e<=H:!1};Z.contains=function(H){return this.isValid?this.s<=H&&this.e>H:!1};Z.set=function(H){H=void 0===H?{}:H;return this.isValid?O.fromDateTimes(H.start||this.s,H.end||this.e):this};Z.splitAt=function(){var H=this;if(!this.isValid)return[];for(var P=arguments.length,aa=Array(P),ya=0;ya<P;ya++)aa[ya]=arguments[ya];P=aa.map(Tb).filter(function(Za){return H.contains(Za)}).sort();aa=[];ya=this.s;for(var Fa=0;ya<this.e;){var Ra=P[Fa]||this.e;Ra=+Ra>+this.e?
this.e:Ra;aa.push(O.fromDateTimes(ya,Ra));ya=Ra;Fa+=1}return aa};Z.splitBy=function(H){H=Bb.fromDurationLike(H);if(!this.isValid||!H.isValid||0===H.as("milliseconds"))return[];for(var P=this.s,aa=1,ya,Fa=[];P<this.e;)ya=this.start.plus(H.mapUnits(function(Ra){return Ra*aa})),ya=+ya>+this.e?this.e:ya,Fa.push(O.fromDateTimes(P,ya)),P=ya,aa+=1;return Fa};Z.divideEqually=function(H){return this.isValid?this.splitBy(this.length()/H).slice(0,H):[]};Z.overlaps=function(H){return this.e>H.s&&this.s<H.e};
Z.abutsStart=function(H){return this.isValid?+this.e===+H.s:!1};Z.abutsEnd=function(H){return this.isValid?+H.e===+this.s:!1};Z.engulfs=function(H){return this.isValid?this.s<=H.s&&this.e>=H.e:!1};Z.equals=function(H){return this.isValid&&H.isValid?this.s.equals(H.s)&&this.e.equals(H.e):!1};Z.intersection=function(H){if(!this.isValid)return this;var P=this.s>H.s?this.s:H.s;H=this.e<H.e?this.e:H.e;return P>=H?null:O.fromDateTimes(P,H)};Z.union=function(H){return this.isValid?O.fromDateTimes(this.s<
H.s?this.s:H.s,this.e>H.e?this.e:H.e):this};O.merge=function(H){var P=H.sort(function(aa,ya){return aa.s-ya.s}).reduce(function(aa,ya){var Fa=aa[0];return(aa=aa[1])?aa.overlaps(ya)||aa.abutsStart(ya)?[Fa,aa.union(ya)]:[Fa.concat([aa]),ya]:[Fa,ya]},[[],null]);H=P[0];(P=P[1])&&H.push(P);return H};O.xor=function(H){var P,aa=null,ya=0,Fa=[];H=H.map(function(Za){return[{time:Za.s,type:"s"},{time:Za.e,type:"e"}]});var Ra=(P=Array.prototype).concat.apply(P,H).sort(function(Za,fb){return Za.time-fb.time});
for(P=l(Ra);!(H=P()).done;)H=H.value,ya+="s"===H.type?1:-1,1===ya?aa=H.time:(aa&&+aa!==+H.time&&Fa.push(O.fromDateTimes(aa,H.time)),aa=null);return O.merge(Fa)};Z.difference=function(){for(var H=this,P=arguments.length,aa=Array(P),ya=0;ya<P;ya++)aa[ya]=arguments[ya];return O.xor([this].concat(aa)).map(function(Fa){return H.intersection(Fa)}).filter(function(Fa){return Fa&&!Fa.isEmpty()})};Z.toString=function(){return this.isValid?"["+this.s.toISO()+" \u2013 "+this.e.toISO()+")":"Invalid Interval"};
Z.toLocaleString=function(H,P){void 0===H&&(H=Zb);void 0===P&&(P={});return this.isValid?Lb.create(this.s.loc.clone(P),H).formatInterval(this):"Invalid Interval"};Z.toISO=function(H){return this.isValid?this.s.toISO(H)+"/"+this.e.toISO(H):"Invalid Interval"};Z.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():"Invalid Interval"};Z.toISOTime=function(H){return this.isValid?this.s.toISOTime(H)+"/"+this.e.toISOTime(H):"Invalid Interval"};Z.toFormat=function(H,P){P=(void 0===
P?{}:P).separator;P=void 0===P?" \u2013 ":P;return this.isValid?""+this.s.toFormat(H)+P+this.e.toFormat(H):"Invalid Interval"};Z.toDuration=function(H,P){return this.isValid?this.e.diff(this.s,H,P):Bb.invalid(this.invalidReason)};Z.mapEndpoints=function(H){return O.fromDateTimes(H(this.s),H(this.e))};c(O,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",
get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]);return O}(),kc=function(){function O(){}O.hasDST=function(Z){void 0===Z&&(Z=ub.defaultZone);var H=wb.now().setZone(Z).set({month:12});return!Z.isUniversal&&H.offset!==H.set({month:6}).offset};O.isValidIANAZone=function(Z){return Xb.isValidZone(Z)};O.normalizeZone=function(Z){return t(Z,ub.defaultZone)};O.months=function(Z,H){void 0===Z&&(Z="long");
var P=void 0===H?{}:H;H=P.locale;var aa=P.numberingSystem,ya=P.locObj;P=P.outputCalendar;return((void 0===ya?null:ya)||xb.create(void 0===H?null:H,void 0===aa?null:aa,void 0===P?"gregory":P)).months(Z)};O.monthsFormat=function(Z,H){void 0===Z&&(Z="long");var P=void 0===H?{}:H;H=P.locale;var aa=P.numberingSystem,ya=P.locObj;P=P.outputCalendar;return((void 0===ya?null:ya)||xb.create(void 0===H?null:H,void 0===aa?null:aa,void 0===P?"gregory":P)).months(Z,!0)};O.weekdays=function(Z,H){void 0===Z&&(Z=
"long");var P=void 0===H?{}:H;H=P.locale;var aa=P.numberingSystem;P=P.locObj;return((void 0===P?null:P)||xb.create(void 0===H?null:H,void 0===aa?null:aa,null)).weekdays(Z)};O.weekdaysFormat=function(Z,H){void 0===Z&&(Z="long");var P=void 0===H?{}:H;H=P.locale;var aa=P.numberingSystem;P=P.locObj;return((void 0===P?null:P)||xb.create(void 0===H?null:H,void 0===aa?null:aa,null)).weekdays(Z,!0)};O.meridiems=function(Z){Z=(void 0===Z?{}:Z).locale;return xb.create(void 0===Z?null:Z).meridiems()};O.eras=
function(Z,H){void 0===Z&&(Z="short");H=(void 0===H?{}:H).locale;return xb.create(void 0===H?null:H,null,"gregory").eras(Z)};O.features=function(){return{relative:D()}};return O}(),qc={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",
limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},Ec={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,
3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ed=qc.hanidec.replace(/[\[|\]]/g,"").split(""),Fc="[ "+String.fromCharCode(160)+"]",rc=new RegExp(Fc,"g"),gd={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},
sc=null,uc=[0,31,59,90,120,151,181,212,243,273,304,334],tc=[0,31,60,91,121,152,182,213,244,274,305,335],Hc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Kd={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ld={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Gc="year month day hour minute second millisecond".split(" "),Md="weekYear weekNumber weekday hour minute second millisecond".split(" "),Nd="year ordinal hour minute second millisecond".split(" "),wb=function(){function O(H){var P=
H.zone||ub.defaultZone,aa=H.invalid||(Number.isNaN(H.ts)?new Mb("invalid input"):null)||(P.isValid?null:sb(P));this.ts=z(H.ts)?ub.now():H.ts;var ya=null,Fa=null;aa||(H.old&&H.old.ts===this.ts&&H.old.zone.equals(P)?(Fa=[H.old.c,H.old.o],ya=Fa[0],Fa=Fa[1]):(Fa=P.offset(this.ts),ya=Hb(this.ts,Fa),ya=(aa=Number.isNaN(ya.year)?new Mb("invalid input"):null)?null:ya,Fa=aa?null:Fa));this._zone=P;this.loc=H.loc||xb.create();this.invalid=aa;this.weekData=null;this.c=ya;this.o=Fa;this.isLuxonDateTime=!0}O.now=
function(){return new O({})};O.local=function(){var H=fc(arguments),P=H[1];return dc({year:P[0],month:P[1],day:P[2],hour:P[3],minute:P[4],second:P[5],millisecond:P[6]},H[0])};O.utc=function(){var H=fc(arguments),P=H[0],aa=H[1];H=aa[0];var ya=aa[1],Fa=aa[2],Ra=aa[3],Za=aa[4],fb=aa[5];aa=aa[6];P.zone=Kb.utcInstance;return dc({year:H,month:ya,day:Fa,hour:Ra,minute:Za,second:fb,millisecond:aa},P)};O.fromJSDate=function(H,P){void 0===P&&(P={});H="[object Date]"===Object.prototype.toString.call(H)?H.valueOf():
NaN;if(Number.isNaN(H))return O.invalid("invalid input");var aa=t(P.zone,ub.defaultZone);return aa.isValid?new O({ts:H,zone:aa,loc:xb.fromObject(P)}):O.invalid(sb(aa))};O.fromMillis=function(H,P){void 0===P&&(P={});if(C(H))return-864E13>H||864E13<H?O.invalid("Timestamp out of range"):new O({ts:H,zone:t(P.zone,ub.defaultZone),loc:xb.fromObject(P)});throw new Db("fromMillis requires a numerical input, but received a "+typeof H+" with value "+H);};O.fromSeconds=function(H,P){void 0===P&&(P={});if(C(H))return new O({ts:1E3*
H,zone:t(P.zone,ub.defaultZone),loc:xb.fromObject(P)});throw new Db("fromSeconds requires a numerical input");};O.fromObject=function(H,P){void 0===P&&(P={});H=H||{};var aa=t(P.zone,ub.defaultZone);if(!aa.isValid)return O.invalid(sb(aa));var ya=ub.now(),Fa=z(P.specificOffset)?aa.offset(ya):P.specificOffset,Ra=oa(H,bc),Za=!z(Ra.ordinal),fb=!z(Ra.year),kb=!z(Ra.month)||!z(Ra.day);fb=fb||kb;var lb=Ra.weekYear||Ra.weekNumber;P=xb.fromObject(P);if((fb||Za)&&lb)throw new Sb("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
if(kb&&Za)throw new Sb("Can't mix ordinal dates with month/day");kb=lb||Ra.weekday&&!fb;lb=Hb(ya,Fa);if(kb){var ib=Md;ya=Kd;lb=rb(lb)}else Za?(ib=Nd,ya=Ld,lb=eb(lb)):(ib=Gc,ya=Hc);var tb=!1;ib=l(ib);for(var Fb;!(Fb=ib()).done;)Fb=Fb.value,z(Ra[Fb])?Ra[Fb]=tb?ya[Fb]:lb[Fb]:tb=!0;kb?(ya=y(Ra.weekYear),lb=v(Ra.weekNumber,1,W(Ra.weekYear)),tb=v(Ra.weekday,1,7),ya=ya?lb?tb?!1:hb("weekday",Ra.weekday):hb("week",Ra.week):hb("weekYear",Ra.weekYear)):Za?(ya=y(Ra.year),lb=v(Ra.ordinal,1,ba(Ra.year)?366:365),
ya=ya?lb?!1:hb("ordinal",Ra.ordinal):hb("year",Ra.year)):ya=Ab(Ra);if(ya=ya||qb(Ra))return O.invalid(ya);Za=kb?ob(Ra):Za?nb(Ra):Ra;Fa=Eb(Za,Fa,aa);aa=new O({ts:Fa[0],zone:aa,o:Fa[1],loc:P});return Ra.weekday&&fb&&H.weekday!==aa.weekday?O.invalid("mismatched weekday","you can't specify both a weekday of "+Ra.weekday+" and a date of "+aa.toISO()):aa};O.fromISO=function(H,P){void 0===P&&(P={});var aa=ea(H,[xd,Vc],[yd,Bd],[zd,Cd],[Ad,Dd]);return Pb(aa[0],aa[1],P,"ISO 8601",H)};O.fromRFC2822=function(H,
P){void 0===P&&(P={});var aa=ea(H.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[td,ka]);return Pb(aa[0],aa[1],P,"RFC 2822",H)};O.fromHTTP=function(H,P){void 0===P&&(P={});H=ea(H,[ud,za],[vd,za],[wd,Ea]);return Pb(H[0],H[1],P,"HTTP",P)};O.fromFormat=function(H,P,aa){void 0===aa&&(aa={});if(z(H)||z(P))throw new Db("fromFormat requires an input string and a format");var ya=aa,Fa=ya.locale;ya=ya.numberingSystem;Fa=xb.fromOpts({locale:void 0===Fa?null:Fa,numberingSystem:void 0===ya?
null:ya,defaultToEN:!0});Fa=$a(Fa,H,P);var Ra=[Fa.result,Fa.zone,Fa.specificOffset,Fa.invalidReason];Fa=Ra[0];ya=Ra[1];var Za=Ra[2];return(Ra=Ra[3])?O.invalid(Ra):Pb(Fa,ya,aa,"format "+P,H,Za)};O.fromString=function(H,P,aa){void 0===aa&&(aa={});return O.fromFormat(H,P,aa)};O.fromSQL=function(H,P){void 0===P&&(P={});var aa=ea(H,[Fd,Vc],[Gd,Hd]);return Pb(aa[0],aa[1],P,"SQL",H)};O.invalid=function(H,P){void 0===P&&(P=null);if(!H)throw new Db("need to specify a reason the DateTime is invalid");H=H instanceof
Mb?H:new Mb(H,P);if(ub.throwOnInvalid)throw new lc(H);return new O({invalid:H})};O.isDateTime=function(H){return H&&H.isLuxonDateTime||!1};O.parseFormatForOpts=function(H,P){void 0===P&&(P={});return(H=bb(H,xb.fromObject(P)))?H.map(function(aa){return aa?aa.val:null}).join(""):null};O.expandFormat=function(H,P){void 0===P&&(P={});return Xa(Lb.parseFormat(H),xb.fromObject(P)).map(function(aa){return aa.val}).join("")};var Z=O.prototype;Z.get=function(H){return this[H]};Z.resolvedLocaleOptions=function(H){void 0===
H&&(H={});H=Lb.create(this.loc.clone(H),H).resolvedOptions(this);return{locale:H.locale,numberingSystem:H.numberingSystem,outputCalendar:H.calendar}};Z.toUTC=function(H,P){void 0===H&&(H=0);void 0===P&&(P={});return this.setZone(Kb.instance(H),P)};Z.toLocal=function(){return this.setZone(ub.defaultZone)};Z.setZone=function(H,P){var aa=void 0===P?{}:P;P=aa.keepLocalTime;P=void 0===P?!1:P;aa=aa.keepCalendarTime;aa=void 0===aa?!1:aa;H=t(H,ub.defaultZone);if(H.equals(this.zone))return this;if(H.isValid){var ya=
this.ts;if(P||aa)P=H.offset(this.ts),aa=this.toObject(),ya=Eb(aa,P,H)[0];return Ob(this,{ts:ya,zone:H})}return O.invalid(sb(H))};Z.reconfigure=function(H){H=void 0===H?{}:H;H=this.loc.clone({locale:H.locale,numberingSystem:H.numberingSystem,outputCalendar:H.outputCalendar});return Ob(this,{loc:H})};Z.setLocale=function(H){return this.reconfigure({locale:H})};Z.set=function(H){if(!this.isValid)return this;H=oa(H,bc);var P=!z(H.weekYear)||!z(H.weekNumber)||!z(H.weekday),aa=!z(H.ordinal),ya=!z(H.year),
Fa=!z(H.month)||!z(H.day),Ra=H.weekYear||H.weekNumber;if((ya||Fa||aa)&&Ra)throw new Sb("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Fa&&aa)throw new Sb("Can't mix ordinal dates with month/day");P?P=ob(r({},rb(this.c),H)):z(H.ordinal)?(P=r({},this.toObject(),H),z(H.day)&&(P.day=Math.min(na(P.year,P.month),P.day))):P=nb(r({},eb(this.c),H));H=Eb(P,this.o,this.zone);return Ob(this,{ts:H[0],o:H[1]})};Z.plus=function(H){if(!this.isValid)return this;H=Bb.fromDurationLike(H);
return Ob(this,Wb(this,H))};Z.minus=function(H){if(!this.isValid)return this;H=Bb.fromDurationLike(H).negate();return Ob(this,Wb(this,H))};Z.startOf=function(H){if(!this.isValid)return this;var P={};H=Bb.normalizeUnit(H);switch(H){case "years":P.month=1;case "quarters":case "months":P.day=1;case "weeks":case "days":P.hour=0;case "hours":P.minute=0;case "minutes":P.second=0;case "seconds":P.millisecond=0}"weeks"===H&&(P.weekday=1);"quarters"===H&&(P.month=3*(Math.ceil(this.month/3)-1)+1);return this.set(P)};
Z.endOf=function(H){var P;return this.isValid?this.plus((P={},P[H]=1,P)).startOf(H).minus(1):this};Z.toFormat=function(H,P){void 0===P&&(P={});return this.isValid?Lb.create(this.loc.redefaultToEN(P)).formatDateTimeFromString(this,H):"Invalid DateTime"};Z.toLocaleString=function(H,P){void 0===H&&(H=Zb);void 0===P&&(P={});return this.isValid?Lb.create(this.loc.clone(P),H).formatDateTime(this):"Invalid DateTime"};Z.toLocaleParts=function(H){void 0===H&&(H={});return this.isValid?Lb.create(this.loc.clone(H),
H).formatDateTimeParts(this):[]};Z.toISO=function(H){var P=void 0===H?{}:H,aa=P.format;H=P.suppressSeconds;H=void 0===H?!1:H;var ya=P.suppressMilliseconds;ya=void 0===ya?!1:ya;var Fa=P.includeOffset;Fa=void 0===Fa?!0:Fa;P=P.extendedZone;P=void 0===P?!1:P;if(!this.isValid)return null;aa="extended"===(void 0===aa?"extended":aa);var Ra=Yb(this,aa);return Ra=Ra+"T"+ac(this,aa,H,ya,Fa,P)};Z.toISODate=function(H){H=(void 0===H?{}:H).format;return this.isValid?Yb(this,"extended"===(void 0===H?"extended":
H)):null};Z.toISOWeekDate=function(){return Ib(this,"kkkk-'W'WW-c")};Z.toISOTime=function(H){var P=void 0===H?{}:H;H=P.suppressMilliseconds;var aa=P.suppressSeconds,ya=P.includeOffset,Fa=P.includePrefix,Ra=P.extendedZone;P=P.format;return this.isValid?((void 0===Fa?0:Fa)?"T":"")+ac(this,"extended"===(void 0===P?"extended":P),void 0===aa?!1:aa,void 0===H?!1:H,void 0===ya?!0:ya,void 0===Ra?!1:Ra):null};Z.toRFC2822=function(){return Ib(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)};Z.toHTTP=function(){return Ib(this.toUTC(),
"EEE, dd LLL yyyy HH:mm:ss 'GMT'")};Z.toSQLDate=function(){return this.isValid?Yb(this,!0):null};Z.toSQLTime=function(H){var P=void 0===H?{}:H;H=P.includeOffset;H=void 0===H?!0:H;var aa=P.includeZone;aa=void 0===aa?!1:aa;P=P.includeOffsetSpace;P=void 0===P?!0:P;var ya="HH:mm:ss.SSS";if(aa||H)P&&(ya+=" "),aa?ya+="z":H&&(ya+="ZZ");return Ib(this,ya,!0)};Z.toSQL=function(H){void 0===H&&(H={});return this.isValid?this.toSQLDate()+" "+this.toSQLTime(H):null};Z.toString=function(){return this.isValid?this.toISO():
"Invalid DateTime"};Z.valueOf=function(){return this.toMillis()};Z.toMillis=function(){return this.isValid?this.ts:NaN};Z.toSeconds=function(){return this.isValid?this.ts/1E3:NaN};Z.toUnixInteger=function(){return this.isValid?Math.floor(this.ts/1E3):NaN};Z.toJSON=function(){return this.toISO()};Z.toBSON=function(){return this.toJSDate()};Z.toObject=function(H){void 0===H&&(H={});if(!this.isValid)return{};var P=r({},this.c);H.includeConfig&&(P.outputCalendar=this.outputCalendar,P.numberingSystem=
this.loc.numberingSystem,P.locale=this.loc.locale);return P};Z.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)};Z.diff=function(H,P,aa){void 0===P&&(P="milliseconds");void 0===aa&&(aa={});if(!this.isValid||!H.isValid)return Bb.invalid("created by diffing an invalid DateTime");aa=r({locale:this.locale,numberingSystem:this.numberingSystem},aa);var ya=(Array.isArray(P)?P:[P]).map(Bb.normalizeUnit);P=H.valueOf()>this.valueOf();H=ia(P?this:H,P?H:this,ya,aa);return P?H.negate():H};Z.diffNow=
function(H,P){void 0===H&&(H="milliseconds");void 0===P&&(P={});return this.diff(O.now(),H,P)};Z.until=function(H){return this.isValid?jc.fromDateTimes(this,H):this};Z.hasSame=function(H,P){if(!this.isValid)return!1;var aa=H.valueOf();H=this.setZone(H.zone,{keepLocalTime:!0});return H.startOf(P)<=aa&&aa<=H.endOf(P)};Z.equals=function(H){return this.isValid&&H.isValid&&this.valueOf()===H.valueOf()&&this.zone.equals(H.zone)&&this.loc.equals(H.loc)};Z.toRelative=function(H){void 0===H&&(H={});if(!this.isValid)return null;
var P=H.base||O.fromObject({},{zone:this.zone}),aa=H.padding?this<P?-H.padding:H.padding:0,ya="years months days hours minutes seconds".split(" "),Fa=H.unit;Array.isArray(H.unit)&&(ya=H.unit,Fa=void 0);return ec(P,this.plus(aa),r({},H,{numeric:"always",units:ya,unit:Fa}))};Z.toRelativeCalendar=function(H){void 0===H&&(H={});return this.isValid?ec(H.base||O.fromObject({},{zone:this.zone}),this,r({},H,{numeric:"auto",units:["years","months","days"],calendary:!0})):null};O.min=function(){for(var H=arguments.length,
P=Array(H),aa=0;aa<H;aa++)P[aa]=arguments[aa];if(!P.every(O.isDateTime))throw new Db("min requires all arguments be DateTimes");return B(P,function(ya){return ya.valueOf()},Math.min)};O.max=function(){for(var H=arguments.length,P=Array(H),aa=0;aa<H;aa++)P[aa]=arguments[aa];if(!P.every(O.isDateTime))throw new Db("max requires all arguments be DateTimes");return B(P,function(ya){return ya.valueOf()},Math.max)};O.fromFormatExplain=function(H,P,aa){void 0===aa&&(aa={});var ya=aa;aa=ya.locale;ya=ya.numberingSystem;
aa=xb.fromOpts({locale:void 0===aa?null:aa,numberingSystem:void 0===ya?null:ya,defaultToEN:!0});return $a(aa,H,P)};O.fromStringExplain=function(H,P,aa){void 0===aa&&(aa={});return O.fromFormatExplain(H,P,aa)};c(O,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:
null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:
NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?vb(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?vb(this).weekNumber:NaN}},
{key:"weekday",get:function(){return this.isValid?vb(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?eb(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?kc.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?kc.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?kc.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",
get:function(){return this.isValid?kc.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.isUniversal:null}},
{key:"isInDST",get:function(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}},{key:"isInLeapYear",get:function(){return ba(this.year)}},{key:"daysInMonth",get:function(){return na(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?ba(this.year)?366:365:NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?W(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return Zb}},{key:"DATE_MED",get:function(){return yb}},
{key:"DATE_MED_WITH_WEEKDAY",get:function(){return R}},{key:"DATE_FULL",get:function(){return Ja}},{key:"DATE_HUGE",get:function(){return Ia}},{key:"TIME_SIMPLE",get:function(){return Aa}},{key:"TIME_WITH_SECONDS",get:function(){return Da}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return Na}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return La}},{key:"TIME_24_SIMPLE",get:function(){return Ga}},{key:"TIME_24_WITH_SECONDS",get:function(){return Sa}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return Va}},
{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return Ya}},{key:"DATETIME_SHORT",get:function(){return db}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return Wa}},{key:"DATETIME_MED",get:function(){return cb}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return ab}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return jb}},{key:"DATETIME_FULL",get:function(){return Cb}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return gc}},{key:"DATETIME_HUGE",get:function(){return hc}},{key:"DATETIME_HUGE_WITH_SECONDS",
get:function(){return ic}}]);return O}();G.DateTime=wb;G.Duration=Bb;G.FixedOffsetZone=Kb;G.IANAZone=Xb;G.Info=kc;G.Interval=jc;G.InvalidZone=Ac;G.Settings=ub;G.SystemZone=Jb;G.VERSION="3.2.1";G.Zone=pb;Object.defineProperty(G,"__esModule",{value:!0})})},"esri/arcade/ImmutableArray":function(){define(["require","exports"],function(G,x){return function(){function c(r){void 0===r&&(r=[]);this._elements=r}c.prototype.length=function(){return this._elements.length};c.prototype.get=function(r){return this._elements[r]};
c.prototype.toArray=function(){for(var r=[],h=0;h<this.length();h++)r.push(this.get(h));return r};return c}()})},"esri/arcade/languageUtils":function(){define("require exports ./polyfill/tsSupport/awaiter ./polyfill/tsSupport/generator ./polyfill/tsSupport/assign ./polyfill/tsSupport/spreadarray ./FunctionWrapper ./ImmutableArray ./ImmutablePathArray ./ImmutablePointArray ./ArcadeDate ../geometry/Extent ../geometry/Geometry ../geometry/Multipoint ../geometry/Point ../geometry/Polygon ../geometry/Polyline ../libs/luxon/luxon dojo/number dojo/_base/kernel ./featureset/support/shared ./ArcadeModule ./executionError".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C,y,D){function B(Q,ka,za){return""===ka||null===ka||void 0===ka||ka===za||ka===za?Q:Q=Q.split(ka).join(za)}function u(Q){return Q instanceof q.ArcadeFunction}function E(Q){return Q instanceof y.ArcadeModule}function v(Q){return A(Q)||I(Q)||W(Q)||F(Q)||null===Q||Q===x.voidOperation||"number"===typeof Q?!0:!1}function A(Q){return"string"===typeof Q||Q instanceof String}function F(Q){return"boolean"===typeof Q}function I(Q){return"number"===typeof Q}
function N(Q){return Q instanceof Array}function da(Q){return"esri.arcade.Feature"===(null===Q||void 0===Q?void 0:Q.arcadeDeclaredClass)?!0:!1}function ba(Q){return"esri.arcade.featureset.support.FeatureSet"===(null===Q||void 0===Q?void 0:Q.declaredRootClass)}function na(Q){return"esri.arcade.featureSetCollection"===(null===Q||void 0===Q?void 0:Q.declaredRootClass)}function xa(Q){return Q instanceof n}function W(Q){return Q instanceof a.ArcadeDate}function la(Q){return null!=Q&&"object"===typeof Q}
function ha(Q){return Q instanceof Date}function sa(Q,ka){if(!isNaN(Q)){if(void 0===ka||null===ka||""===ka)return Q.toString();ka=B(ka,"\u2030","");ka=B(ka,"\u00a4","");return t.format(Q,{pattern:ka})}return Q.toString()}function Ca(Q,ka){return void 0===ka||null===ka||""===ka?Q.toISOString(!0):Q.toFormat(oa(ka),{locale:z.locale,numberingSystem:"latn"})}function oa(Q){Q=Q.replace(/LTS|LT|LL?L?L?|l{1,4}/g,"[$\x26]");var ka="",za=0;for(Q=Q.match(/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g)||
[];za<Q.length;za++){var Ea=Q[za];switch(Ea){case "D":ka+="d";break;case "DD":ka+="dd";break;case "DDD":ka+="o";break;case "d":ka+="c";break;case "ddd":ka+="ccc";break;case "dddd":ka+="cccc";break;case "M":ka+="L";break;case "MM":ka+="LL";break;case "MMM":ka+="LLL";break;case "MMMM":ka+="LLLL";break;case "YY":ka+="yy";break;case "Y":case "YYYY":ka+="yyyy";break;case "Q":ka+="q";break;case "Z":ka+="ZZ";break;case "ZZ":ka+="ZZZ";break;case "S":ka+="'S'";break;case "SS":ka+="'SS'";break;case "SSS":ka+=
"u";break;case "A":case "a":ka+="a";break;case "m":case "mm":case "h":case "hh":case "H":case "HH":case "s":case "ss":case "X":case "x":ka+=Ea;break;default:ka=2<=Ea.length&&"["===Ea.slice(0,1)&&"]"===Ea.slice(-1)?ka+("'"+Ea.slice(1,-1)+"'"):ka+("'"+Ea+"'")}}return ka}function qa(Q,ka,za){switch(za){case "\x3e":return Q>ka;case "\x3c":return Q<ka;case "\x3e\x3d":return Q>=ka;case "\x3c\x3d":return Q<=ka}return!1}function L(Q,ka){if(Q===ka||null===Q&&ka===x.voidOperation||null===ka&&Q===x.voidOperation)return!0;
if(W(Q)&&W(ka))return Q.equals(ka);if(Q instanceof f||Q instanceof g)return Q.equalityTest(ka);if(Q instanceof m&&ka instanceof m){var za=Q.getCacheValue("_arcadeCacheId"),Ea=ka.getCacheValue("_arcadeCacheId");if(void 0!==za&&null!==za)return za===Ea}return la(Q)&&la(ka)&&(Q._arcadeCacheId===ka._arcadeCacheId&&void 0!==Q._arcadeCacheId&&null!==Q._arcadeCacheId||Q._underlyingGraphic===ka._underlyingGraphic&&void 0!==Q._underlyingGraphic&&null!==Q._underlyingGraphic)?!0:!1}function Y(Q,ka){if(A(Q))return Q;
if(null===Q)return"";if(I(Q))return sa(Q,ka);if(F(Q))return Q.toString();if(W(Q))return Ca(Q,ka);if(Q instanceof k)return JSON.stringify(Q.toJson());if(N(Q)){ka=[];for(var za=0;za<Q.length;za++)ka[za]=V(Q[za]);return"["+ka.join(",")+"]"}if(Q instanceof n){ka=[];for(za=0;za<Q.length();za++)ka[za]=V(Q.get(za));return"["+ka.join(",")+"]"}return null!==Q&&"object"===typeof Q&&void 0!==Q.castToText?Q.castToText():u(Q)?"object, Function":Q===x.voidOperation?"":E(Q)?"object, Module":""}function ca(Q,ka,
za){void 0===za&&(za=!1);if(A(Q))return Q;if(null===Q)return"";if(I(Q))return sa(Q,ka);if(F(Q))return Q.toString();if(W(Q))return Ca(Q,ka);if(Q instanceof k)return Q instanceof d?'{"xmin":'+Q.xmin.toString()+',"ymin":'+Q.ymin.toString()+","+(Q.hasZ?'"zmin":'+Q.zmin.toString()+",":"")+(Q.hasM?'"mmin":'+Q.mmin.toString()+",":"")+'"xmax":'+Q.xmax.toString()+',"ymax":'+Q.ymax.toString()+","+(Q.hasZ?'"zmax":'+Q.zmax.toString()+",":"")+(Q.hasM?'"mmax":'+Q.mmax.toString()+",":"")+'"spatialReference":'+va(Q.spatialReference)+
"}":va(Q.toJson(),function(Ka,Qa){return Ka.key===Qa.key?0:"spatialReference"===Ka.key?1:"spatialReference"===Qa.key||Ka.key<Qa.key?-1:Ka.key>Qa.key?1:0});if(N(Q)){ka=[];for(var Ea=0;Ea<Q.length;Ea++)ka[Ea]=V(Q[Ea],za);return"["+ka.join(",")+"]"}if(Q instanceof n){ka=[];for(Ea=0;Ea<Q.length();Ea++)ka[Ea]=V(Q.get(Ea),za);return"["+ka.join(",")+"]"}return null!==Q&&"object"===typeof Q&&void 0!==Q.castToText?Q.castToText(za):u(Q)?"object, Function":Q===x.voidOperation?"":E(Q)?"object, Module":""}function V(Q,
ka){void 0===ka&&(ka=!1);return null===Q?"null":F(Q)||I(Q)||A(Q)?JSON.stringify(Q):Q instanceof k||Q instanceof n||Q instanceof Array?ca(Q,null,ka):W(Q)?ka?JSON.stringify(Q.getTime()):JSON.stringify(Ca(Q,"")):null!==Q&&"object"===typeof Q&&void 0!==Q.castToText?Q.castToText(ka):"null"}function X(Q,ka){return I(Q)?Q:null===Q||""===Q?0:W(Q)?NaN:F(Q)?Q?1:0:N(Q)||""===Q||void 0===Q?NaN:void 0!==ka&&A(Q)?(ka=B(ka,"\u2030",""),ka=B(ka,"\u00a4",""),t.parse(Q,{pattern:ka})):Q===x.voidOperation?0:Number(Q)}
function ja(Q,ka){if(!Q||!Q.domain)return ka;var za=null;if("string"===Q.field.type||"esriFieldTypeString"===Q.field.type)ka=Y(ka);else{if(null===ka||void 0===ka)return null;if(""===ka)return ka;ka=X(ka)}for(var Ea=0;Ea<Q.domain.codedValues.length;Ea++){var Ka=Q.domain.codedValues[Ea];Ka.code===ka&&(za=Ka)}return null===za?ka:za.name}function pa(Q,ka){if(!Q||!Q.domain)return ka;var za=null;ka=Y(ka);for(var Ea=0;Ea<Q.domain.codedValues.length;Ea++){var Ka=Q.domain.codedValues[Ea];Ka.name===ka&&(za=
Ka)}return null===za?ka:za.code}function ta(Q,ka,za,Ea){void 0===za&&(za=null);void 0===Ea&&(Ea=null);if(!ka||!ka.fields)return null;for(var Ka=null,Qa=0;Qa<ka.fields.length;Qa++){var Pa=ka.fields[Qa];Pa.name.toLowerCase()===Q.toString().toLowerCase()&&(Ka=Pa)}if(null===Ka)throw new D.ArcadeExecutionError(null,D.ExecutionErrorCodes.FieldNotFound,null,{key:Q});var J,U;null===Ea&&za&&ka.typeIdField&&(Ea=za.hasField(ka.typeIdField)?za.field(ka.typeIdField):null);null!==Ea&&void 0!==Ea&&ka.types.some(function(ia){return ia.id===
Ea?((J=ia.domains&&ia.domains[Ka.name])&&"inherited"===J.type&&(J=ea(Ka.name,ka),U=!0),!0):!1});U||J||(J=ea(Q,ka));return{field:Ka,domain:J}}function ea(Q,ka){var za;ka.fields.some(function(Ea){Ea.name.toLowerCase()===Q.toLowerCase()&&(za=Ea.domain);return!!za});return za}function va(Q,ka){ka||(ka={});"function"===typeof ka&&(ka={cmp:ka});var za="boolean"===typeof ka.cycles?ka.cycles:!1,Ea=ka.cmp&&function(Qa){return function(Pa){return function(J,U){return Qa({key:J,value:Pa[J]},{key:U,value:Pa[U]})}}}(ka.cmp),
Ka=[];return function J(Pa){Pa&&Pa.toJson&&"function"===typeof Pa.toJson&&(Pa=Pa.toJson());if(void 0!==Pa){if("number"===typeof Pa)return isFinite(Pa)?""+Pa:"null";if("object"!==typeof Pa)return JSON.stringify(Pa);var U;if(Array.isArray(Pa)){var ia="[";for(U=0;U<Pa.length;U++)U&&(ia+=","),ia+=J(Pa[U])||"null";return ia+"]"}if(null===Pa)return"null";if(Ka.includes(Pa)){if(za)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON");}var K=Ka.push(Pa)-1,T=Object.keys(Pa).sort(Ea&&
Ea(Pa));ia="";for(U=0;U<T.length;U++){var fa=T[U],ra=J(Pa[fa]);ra&&(ia&&(ia+=","),ia+=JSON.stringify(fa)+":"+ra)}Ka.splice(K,1);return"{"+ia+"}"}}(Q)}function M(Q,ka){if(ka instanceof m)Q.push([ka.x,ka.y]);else throw new D.ArcadeExecutionError(null,D.ExecutionErrorCodes.InvalidParameter,null);}function S(Q,ka){void 0===ka&&(ka=null);if(null!=Q){if(F(Q)||I(Q)||A(Q))return Q;if(Q instanceof k)return!0===(null===ka||void 0===ka?void 0:ka.keepGeometryType)?Q:Q.toJson();if(Q instanceof n)return Q.toArray().map(function(za){return S(za,
ka)});if(Q instanceof Array)return Q.map(function(za){return S(za,ka)});if(ha(Q))return Q;if(W(Q))return Q.toJSDate();if(null!==Q&&"object"===typeof Q&&void 0!==Q.castAsJson)return Q.castAsJson(ka)}return null}function ma(Q,ka,za,Ea,Ka){return c(this,void 0,void 0,function(){var Qa;return r(this,function(Pa){switch(Pa.label){case 0:return[4,ua(Q,ka,za)];case 1:return Qa=Pa.sent(),Ka[Ea]=Qa,[2]}})})}function ua(Q,ka,za){void 0===ka&&(ka=null);void 0===za&&(za=null);return c(this,void 0,void 0,function(){var Ea,
Ka,Qa,Pa,J;return r(this,function(U){switch(U.label){case 0:return Q instanceof n&&(Q=Q.toArray()),null!=Q?[3,1]:[2,null];case 1:return v(Q)||Q instanceof k||ha(Q)||W(Q)?[2,S(Q,za)]:[3,2];case 2:if(!(Q instanceof Array))return[3,5];Ea=[];Ka=[];Qa=0;for(Pa=Q;Qa<Pa.length;Qa++)J=Pa[Qa],null===J||v(J)||J instanceof k||ha(J)||W(J)?Ka.push(S(J,za)):(Ka.push(null),Ea.push(ma(J,ka,za,Ka.length-1,Ka)));return 0<Ea.length?[4,Promise.all(Ea)]:[3,4];case 3:U.sent(),U.label=4;case 4:return[2,Ka];case 5:if(null!==
Q&&"object"===typeof Q&&void 0!==Q.castAsJsonAsync)return[2,Q.castAsJsonAsync(ka,za)];U.label=6;case 6:return[2,null]}})})}Object.defineProperty(x,"__esModule",{value:!0});x.featureSchema=x.defaultTimeZone=x.featureDomainCodeLookup=x.featureDomainValueLookup=x.featureSubtypes=x.featureFullDomain=x.castAsJsonAsync=x.castAsJson=x.binaryOperator=x.tick=x.toStringArray=x.autoCastArrayOfPointsToMultiPoint=x.autoCastArrayOfPointsToPolyline=x.autoCastArrayOfPointsToPolygon=x.autoCastFeatureToGeometry=x.stableStringify=
x.getDomain=x.getDomainCode=x.getDomainValue=x.fixNullGeometry=x.fixSpatialReference=x.toBoolean=x.toDate=x.toNumber=x.toStringExplicit=x.toNumberArray=x.toString=x.equalityTest=x.greaterThanLessThan=x.standardiseDateFormat=x.formatDate=x.formatNumber=x.generateUUID=x.absRound=x.pcCheck=x.isJsDate=x.isObject=x.isDate=x.isImmutableArray=x.isFeatureSetCollection=x.isFeatureSet=x.isFeature=x.isArray=x.isInteger=x.isNumber=x.isBoolean=x.isString=x.getType=x.defaultUndefined=x.isSimpleType=x.isModule=
x.isFunctionParameter=x.multiReplace=x.continueResult=x.breakResult=x.voidOperation=x.ReturnResult=x.ImplicitResult=x.ImplicitResultE=x.ReturnResultE=void 0;G=function(){return function(Q){this.value=Q}}();x.ReturnResultE=G;h=function(){return function(Q){this.value=Q}}();x.ImplicitResultE=h;x.ImplicitResult=h;x.ReturnResult=G;x.voidOperation={type:"VOID"};x.breakResult={type:"BREAK"};x.continueResult={type:"CONTINUE"};x.multiReplace=B;x.isFunctionParameter=u;x.isModule=E;x.isSimpleType=v;x.defaultUndefined=
function(Q,ka){return void 0===Q?ka:Q};x.getType=function(Q){return null==Q?"":N(Q)||xa(Q)?"Array":W(Q)?"Date":A(Q)?"String":F(Q)?"Boolean":I(Q)?"Number":"esri.arcade.Attachment"===(null===Q||void 0===Q?void 0:Q.declaredClass)?"Attachment":"esri.arcade.Portal"===(null===Q||void 0===Q?void 0:Q.declaredClass)?"Portal":"esri.arcade.Dictionary"===(null===Q||void 0===Q?void 0:Q.declaredClass)?"Dictionary":Q instanceof y.ArcadeModule?"Module":da(Q)?"Feature":Q instanceof m?"Point":Q instanceof e?"Polygon":
Q instanceof b?"Polyline":Q instanceof l?"Multipoint":Q instanceof d?"Extent":u(Q)?"Function":ba(Q)?"FeatureSet":na(Q)?"FeatureSetCollection":Q===x.voidOperation?"":"number"===typeof Q&&isNaN(Q)?"Number":"Unrecognised Type"};x.isString=A;x.isBoolean=F;x.isNumber=I;x.isInteger=function(Q){return"number"===typeof Q&&isFinite(Q)&&Math.floor(Q)===Q};x.isArray=N;x.isFeature=da;x.isFeatureSet=ba;x.isFeatureSetCollection=na;x.isImmutableArray=xa;x.isDate=W;x.isObject=la;x.isJsDate=ha;x.pcCheck=function(Q,
ka,za,Ea,Ka){if(Q.length<ka||Q.length>za)throw new D.ArcadeExecutionError(Ea,D.ExecutionErrorCodes.WrongNumberOfParameters,Ka);};x.absRound=function(Q){return 0>Q?-Math.round(-Q):Math.round(Q)};x.generateUUID=function(){var Q=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(ka){var za=(Q+16*Math.random())%16|0;Q=Math.floor(Q/16);return("x"===ka?za:za&3|8).toString(16)})};x.formatNumber=sa;x.formatDate=Ca;x.standardiseDateFormat=oa;x.greaterThanLessThan=function(Q,ka,
za){if(null===Q){if(null===ka||ka===x.voidOperation)return qa(null,null,za);if(I(ka))return qa(0,ka,za);if(A(ka)||F(ka))return qa(0,X(ka),za);if(W(ka))return qa(0,ka.toNumber(),za)}if(Q===x.voidOperation){if(null===ka||ka===x.voidOperation)return qa(null,null,za);if(I(ka))return qa(0,ka,za);if(A(ka)||F(ka))return qa(0,X(ka),za);if(W(ka))return qa(0,ka.toNumber(),za)}else if(I(Q)){if(I(ka))return qa(Q,ka,za);if(F(ka))return qa(Q,X(ka),za);if(null===ka||ka===x.voidOperation)return qa(Q,0,za);if(A(ka))return qa(Q,
X(ka),za);if(W(ka))return qa(Q,ka.toNumber(),za)}else if(A(Q)){if(A(ka))return qa(Y(Q),Y(ka),za);if(W(ka))return qa(X(Q),ka.toNumber(),za);if(I(ka))return qa(X(Q),ka,za);if(null===ka||ka===x.voidOperation)return qa(X(Q),0,za);if(F(ka))return qa(X(Q),X(ka),za)}else if(W(Q)){if(W(ka))return qa(Q.toNumber(),ka.toNumber(),za);if(null===ka||ka===x.voidOperation)return qa(Q.toNumber(),0,za);if(I(ka))return qa(Q.toNumber(),ka,za);if(F(ka)||A(ka))return qa(Q.toNumber(),X(ka),za)}else if(F(Q)){if(F(ka))return qa(Q,
ka,za);if(I(ka))return qa(X(Q),X(ka),za);if(W(ka))return qa(X(Q),ka.toNumber(),za);if(null===ka||ka===x.voidOperation)return qa(X(Q),0,za);if(A(ka))return qa(X(Q),X(ka),za)}return!L(Q,ka)||"\x3c\x3d"!==za&&"\x3e\x3d"!==za?!1:!0};x.equalityTest=L;x.toString=Y;x.toNumberArray=function(Q){var ka=[];if(!N(Q))return null;if(Q instanceof n){for(var za=0;za<Q.length();za++)ka[za]=X(Q.get(za));return ka}for(za=0;za<Q.length;za++)ka[za]=X(Q[za]);return ka};x.toStringExplicit=ca;x.toNumber=X;x.toDate=function(Q,
ka){if(W(Q))return Q;if(A(Q)){a:{var za=/ (\d\d)/,Ea=a.createDateTimeZone(ka);Ea=p.DateTime.fromISO(Q,{zone:Ea});if(Ea.isValid)ka=Ea;else{if(za.test(Q)&&(Q=Q.replace(za,"T$1"),Ea=p.DateTime.fromISO(Q,{zone:ka}),Ea.isValid)){ka=Ea;break a}ka=null}}if(ka)return a.ArcadeDate.dateTimeToArcadeDate(ka)}return null};x.toBoolean=function(Q){return F(Q)?Q:A(Q)?(Q=Q.toLowerCase(),"true"===Q?!0:!1):I(Q)?0===Q||isNaN(Q)?!1:!0:!1};x.fixSpatialReference=function(Q,ka){if(null===Q||void 0===Q)return null;if(null===
Q.spatialReference||void 0===Q.spatialReference)Q.spatialReference=ka;return Q};x.fixNullGeometry=function(Q){if(null===Q)return null;if(Q instanceof m)return"NaN"===Q.x||null===Q.x||isNaN(Q.x)?null:Q;if(Q instanceof e){if(0===Q.rings.length)return null;for(var ka=0,za=Q.rings;ka<za.length;ka++){var Ea=za[ka];if(0<Ea.length)return Q}return null}if(Q instanceof b){if(0===Q.paths.length)return null;ka=0;for(za=Q.paths;ka<za.length;ka++)if(Ea=za[ka],0<Ea.length)return Q;return null}return Q instanceof
l?0===Q.points.length?null:Q:Q instanceof d?"NaN"===Q.xmin||null===Q.xmin||isNaN(Q.xmin)?null:Q:null};x.getDomainValue=ja;x.getDomainCode=pa;x.getDomain=ta;x.stableStringify=va;x.autoCastFeatureToGeometry=function(Q){if(null===Q)return null;for(var ka=[],za=0;za<Q.length;za++){var Ea=Q[za];Ea&&Ea.arcadeDeclaredClass&&"esri.arcade.Feature"===Ea.arcadeDeclaredClass?ka.push(Ea.geometry()):ka.push(Ea)}return ka};x.autoCastArrayOfPointsToPolygon=function(Q,ka){if(N(Q)||xa(Q)){var za=!1,Ea=!1,Ka=[];if(N(Q)){for(var Qa=
0;Qa<Q.length;Qa++){var Pa=Q[Qa];M(Ka,Pa)}0<Ka.length&&(ka=Q[0].spatialReference,za=Q[0].hasZ,Ea=Q[0].hasM)}else if(Q instanceof g)Ka=Q._elements,0<Ka.length&&(za=Q._hasZ,Ea=Q._hasM,ka=Q.get(0).spatialReference);else if(xa(Q)){Qa=0;for(var J=Q.toArray();Qa<J.length;Qa++)Pa=J[Qa],M(Ka,Pa);0<Ka.length&&(ka=Q.get(0).spatialReference,za=!0===Q.get(0).hasZ,Ea=!0===Q.get(0).hasM)}else throw new D.ArcadeExecutionError(null,D.ExecutionErrorCodes.InvalidParameter,null);if(0===Ka.length)return null;(new e({rings:[],
spatialReference:{wkid:4326}})).isClockwise(Ka)||(Ka=Ka.slice(0).reverse());return new e({rings:[Ka],spatialReference:ka,hasZ:za,hasM:Ea})}return Q};x.autoCastArrayOfPointsToPolyline=function(Q,ka){if(N(Q)||xa(Q)){var za=!1,Ea=!1,Ka=[];if(N(Q)){for(var Qa=0;Qa<Q.length;Qa++){var Pa=Q[Qa];M(Ka,Pa)}0<Ka.length&&(ka=Q[0].spatialReference,za=!0===Q[0].hasZ,Ea=!0===Q[0].hasM)}else if(Q instanceof g)Ka=Q._elements,0<Ka.length&&(za=Q._hasZ,Ea=Q._hasM,ka=Q.get(0).spatialReference);else if(xa(Q)){Qa=0;for(var J=
Q.toArray();Qa<J.length;Qa++)Pa=J[Qa],M(Ka,Pa);0<Ka.length&&(ka=Q.get(0).spatialReference,za=!0===Q.get(0).hasZ,Ea=!0===Q.get(0).hasM)}return 0===Ka.length?null:new b({paths:[Ka],spatialReference:ka,hasZ:za,hasM:Ea})}return Q};x.autoCastArrayOfPointsToMultiPoint=function(Q,ka){if(N(Q)||xa(Q)){var za=!1,Ea=!1,Ka=[];if(N(Q)){for(var Qa=0;Qa<Q.length;Qa++){var Pa=Q[Qa];M(Ka,Pa)}0<Ka.length&&(ka=Q[0].spatialReference,za=!0===Q[0].hasZ,Ea=!0===Q[0].hasM)}else if(Q instanceof g)Ka=Q._elements,0<Ka.length&&
(za=Q._hasZ,Ea=Q._hasM,ka=Q.get(0).spatialReference);else if(xa(Q)){Qa=0;for(var J=Q.toArray();Qa<J.length;Qa++)Pa=J[Qa],M(Ka,Pa);0<Ka.length&&(ka=Q.get(0).spatialReference,za=!0===Q.get(0).hasZ,Ea=!0===Q.get(0).hasM)}return 0===Ka.length?null:new l({points:Ka,spatialReference:ka,hasZ:za,hasM:Ea})}return Q};x.toStringArray=function(Q,ka){void 0===ka&&(ka=!1);var za=[];if(null===Q)return za;if(!0===N(Q)){for(var Ea=0;Ea<Q.length;Ea++){var Ka=Y(Q[Ea]);""===Ka&&!0!==ka||za.push(Ka)}return za}if(Q instanceof
n){for(Ea=0;Ea<Q.length();Ea++)Ka=Y(Q.get(Ea)),""===Ka&&!0!==ka||za.push(Ka);return za}return v(Q)?(Ka=Y(Q),""===Ka&&!0!==ka||za.push(Ka),za):[]};var wa=0;x.tick=function(Q){wa++;return 0===wa%100?(wa=0,new Promise(function(ka){setTimeout(function(){ka(Q)},0)})):Q};x.binaryOperator=function(Q,ka,za){switch(za){case "\x26":return Q&ka;case "|":return Q|ka;case "^":return Q^ka;case "\x3c\x3c":return Q<<ka;case "\x3e\x3e":return Q>>ka;case "\x3e\x3e\x3e":return Q>>>ka}};x.castAsJson=S;x.castAsJsonAsync=
ua;x.featureFullDomain=function(Q,ka,za){var Ea=Q.fullSchema();return null!==Ea&&Ea.fields?ta(ka,Ea,Q,za):null};x.featureSubtypes=function(Q){Q=Q.fullSchema();return null!==Q&&Q.fields?Q.typeIdField?{subtypeField:Q.typeIdField,subtypes:Q.types?Q.types.map(function(ka){return{name:ka.name,code:ka.id}}):[]}:null:null};x.featureDomainValueLookup=function(Q,ka,za,Ea){var Ka=Q.fullSchema();if(null===Ka||!Ka.fields)return null;Ea=ta(ka,Ka,Q,Ea);if(void 0===za)try{za=Q.field(ka)}catch(Qa){return null}return ja(Ea,
za)};x.featureDomainCodeLookup=function(Q,ka,za,Ea){var Ka=Q.fullSchema();if(null===Ka||!Ka.fields)return null;if(void 0===za){try{za=Q.field(ka)}catch(Qa){return null}return za}Q=ta(ka,Ka,Q,Ea);return pa(Q,za)};x.defaultTimeZone=function(Q){var ka,za;return(null===(ka=null===Q||void 0===Q?void 0:Q.timeReference)||void 0===ka?0:ka.timeZone)?null===(za=null===Q||void 0===Q?void 0:Q.timeReference)||void 0===za?void 0:za.timeZone:"system"};x.featureSchema=function(Q){Q=Q.fullSchema();if(null===Q||!Q.fields)return null;
for(var ka=[],za=0,Ea=Q.fields;za<Ea.length;za++)ka.push(C.esriFieldToJson(Ea[za]));return{objectIdField:Q.objectIdField,globalIdField:Q.globalIdField,geometryType:void 0===C.layerGeometryEsriRestConstants[Q.geometryType]?"":C.layerGeometryEsriRestConstants[Q.geometryType],fields:ka}}})},"esri/arcade/FunctionWrapper":function(){define("require exports ./polyfill/tsSupport/assign ./polyfill/tsSupport/spreadarray ./polyfill/tsSupport/extends ./polyfill/promiseUtils".split(" "),function(G,x,c,r,h,w){function q(g,
a,d){if(g instanceof n&&!(g instanceof f)){var k=new f;k.fn=g;k.parameterEvaluator=d;k.context=a;return k}return g}Object.defineProperty(x,"__esModule",{value:!0});x.ScopeMarshalledFunction=x.NativeFunction=x.wrapModuleScopedResponse=x.ArcadeFunction=void 0;var n=function(){return function(){}}();x.ArcadeFunction=n;x.wrapModuleScopedResponse=q;G=function(g){function a(d){var k=g.call(this)||this;k.fn=d;return k}h(a,g);a.prototype.createFunction=function(d){var k=this;return function(){for(var l=[],
m=0;m<arguments.length;m++)l[m]=arguments[m];return k.fn(d,{preparsed:!0,arguments:l})}};a.prototype.call=function(d,k){return this.fn(d,k)};a.prototype.marshalledCall=function(d,k,l,m){var e=this;return m(d,k,function(b,p,t){t=t.map(function(z){return z instanceof n&&!(z instanceof f)?q(z,d,m):z});b=e.call(l,{args:t});return w.isPromiseLike(b)?b.then(function(z){return q(z,l,m)}):b})};return a}(n);x.NativeFunction=G;var f=function(g){function a(){var d=null!==g&&g.apply(this,arguments)||this;d.fn=
null;d.context=null;return d}h(a,g);a.prototype.createFunction=function(d){return this.fn.createFunction(this.context)};a.prototype.call=function(d,k){return this.fn.marshalledCall(d,k,this.context,this.parameterEvaluator)};a.prototype.marshalledCall=function(d,k,l){return this.fn.marshalledCall(d,k,this.context,this.parameterEvaluator)};return a}(n);x.ScopeMarshalledFunction=f})},"esri/arcade/polyfill/promiseUtils":function(){define(["require","exports","dojo/Deferred"],function(G,x,c){function r(w){void 0===
w&&(w=void 0);var q=new c;q.resolve(w);return q.promise}function h(w){return w&&"function"===typeof w.then?w:r(w)}Object.defineProperty(x,"__esModule",{value:!0});x.create=x.when=x.resolve=x.isPromiseLike=void 0;x.isPromiseLike=function(w){return w&&"function"===typeof w.then};x.resolve=r;x.when=h;x.create=function(w,q){var n=new c(q);w(function(f){return h(f).then(n.resolve)},n.reject);return n.promise}})},"esri/arcade/ImmutablePathArray":function(){define(["require","exports","./polyfill/tsSupport/extends",
"./ImmutableArray","./ImmutablePointArray"],function(G,x,c,r,h){return function(w){function q(n,f,g,a,d){n=w.call(this,n)||this;n._lazyPath=[];n._hasZ=!1;n._hasM=!1;n._hasZ=g;n._hasM=a;n._spRef=f;n._cacheId=d;return n}c(q,w);q.prototype.get=function(n){if(void 0===this._lazyPath[n]){var f=this._elements[n];if(void 0===f)return;this._lazyPath[n]=new h(f,this._spRef,this._hasZ,this._hasM,this._cacheId,n)}return this._lazyPath[n]};q.prototype.equalityTest=function(n){return n===this?!0:null===n||!1===
n instanceof q?!1:n.getUniqueHash()===this.getUniqueHash()};q.prototype.getUniqueHash=function(){return this._cacheId.toString()};return q}(r)})},"esri/arcade/ImmutablePointArray":function(){define(["require","exports","./polyfill/tsSupport/extends","./ImmutableArray","../geometry/Point"],function(G,x,c,r,h){return function(w){function q(n,f,g,a,d,k){n=w.call(this,n)||this;n._lazyPt=[];n._hasZ=!1;n._hasM=!1;n._spRef=f;n._hasZ=g;n._hasM=a;n._cacheId=d;n._partId=k;return n}c(q,w);q.prototype.get=function(n){if(void 0===
this._lazyPt[n]){var f=this._elements[n];if(void 0===f)return;var g=this._hasZ,a=this._hasM,d=null;d=g&&!a?new h(f[0],f[1],f[2],void 0,this._spRef):a&&!g?new h(f[0],f[1],void 0,f[2],this._spRef):g&&a?new h(f[0],f[1],f[2],f[3],this._spRef):new h(f[0],f[1],this._spRef);d.setCacheValue("_arcadeCacheId",this._cacheId.toString()+"-"+this._partId.toString()+"-"+n.toString());this._lazyPt[n]=d}return this._lazyPt[n]};q.prototype.equalityTest=function(n){return n===this?!0:null===n||!1===n instanceof q?!1:
n.getUniqueHash()===this.getUniqueHash()};q.prototype.getUniqueHash=function(){return this._cacheId.toString()+"-"+this._partId.toString()};return q}(r)})},"esri/geometry/Multipoint":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ./Point ./Extent ../srUtils".split(" "),function(G,x,c,r,h,w,q,n,f,g){function a(){}function d(){}w={type:"multipoint",points:null};G=G(q,{declaredClass:"esri.geometry.Multipoint",type:"multipoint",points:null,
constructor:function(k){this.points=[];k&&(k.points?h.mixin(this,k):this.spatialReference=k,this.spatialReference&&(this.spatialReference=g.createSpatialReference(this.spatialReference)));this.verifySR()},addPoint:function(k){this.clearCache();x.isArray(k)?this.points.push(k):this.points.push([k.x,k.y]);return this},removePoint:function(k){if(this._validateInputs(k))return this.clearCache(),new n(this.points.splice(k,1)[0],this.spatialReference)},getExtent:function(){var k=this.getCacheValue("_extent");
if(k)return new f(k);k=this.points;var l=k.length;if(l){var m=k[0],e,b,p=e=m[0],t=b=m[1],z=Math.min,C=Math.max,y=this.spatialReference,D;for(D=0;D<l;D++){m=k[D];var B=m[0];m=m[1];p=z(p,B);t=z(t,m);e=C(e,B);b=C(b,m)}k={xmin:p,ymin:t,xmax:e,ymax:b,spatialReference:y?y.toJson():null};this.setCacheValue("_extent",k);return new f(k)}},_validateInputs:function(k){return null===k||0>k||k>=this.points.length?!1:!0},getPoint:function(k){if(this._validateInputs(k))return k=this.points[k],new n(k[0],k[1],this.spatialReference)},
setPoint:function(k,l){if(this._validateInputs(k))return this.clearCache(),this.points[k]=[l.x,l.y],this},toJson:function(){var k={points:h.clone2DArray(this.points)},l=this.spatialReference;l&&(k.spatialReference=l.toJson());return k}});a.prototype=G.prototype;d.prototype=new a;Object.defineProperty(d.prototype,"points",{get:function(){this._unquantizeFn&&(this._pointsVal=this._unquantizeFn({points:h.clone2DArray(this._pointsVal)}).points,this._unquantizeFn=null);return this._pointsVal},set:function(k){this._pointsVal=
k}});d.prototype.setupLazyUnquantization=function(k,l){this._unquantizeFn=k;this._pointsVal=l.points};G.simpleConstructor=a;G.accessorConstructor=d;G.defaultProps=w;c("extend-esri")&&(x.setObject("geometry.Multipoint",G,r),r.geometry.defaultMultipoint=w);return G})},"esri/geometry/Polygon":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ./Point ./Extent ./mathUtils ../srUtils".split(" "),function(G,x,c,r,h,w,q,n,f,g,
a,d){function k(){}function l(){}q={type:"polygon",rings:null};var m=G(n,{declaredClass:"esri.geometry.Polygon",type:"polygon",rings:null,constructor:function(e){this.rings=[];this._ring=0;e&&(c.isArray(e)?this.rings=c.isArray(e[0][0])?e:[e]:e.rings?w.mixin(this,e):this.spatialReference=e,this.spatialReference&&(this.spatialReference=d.createSpatialReference(this.spatialReference)));this.verifySR()},addRing:function(e){this.clearCache();this._ring=this.rings.length;this.rings[this._ring]=[];c.isArray(e[0])?
x.forEach(e,this._addPointArr,this):x.forEach(e,this._addPoint,this);return this},_addPointArr:function(e){this.rings[this._ring].push(e)},_addPoint:function(e){this.rings[this._ring].push([e.x,e.y])},_insertPoints:function(e,b){this.clearCache();this._ring=b;this.rings[this._ring]||(this.rings[this._ring]=[]);x.forEach(e,this._addPoint,this)},_validateInputs:function(e,b){return null!==e&&void 0!==e&&(0>e||e>=this.rings.length)||null!==b&&void 0!==e&&(0>b||b>=this.rings[e].length)?!1:!0},getPoint:function(e,
b){if(this._validateInputs(e,b))return new f(this.rings[e][b],this.spatialReference)},setPoint:function(e,b,p){if(this._validateInputs(e,b))return this.clearCache(),this.rings[e][b]=[p.x,p.y],this},insertPoint:function(e,b,p){if(this._validateInputs(e)&&null!=b&&0<=b&&b<=this.rings[e].length)return this.clearCache(),this.rings[e].splice(b,0,[p.x,p.y]),this},removeRing:function(e){if(this._validateInputs(e,null)){this.clearCache();e=this.rings.splice(e,1)[0];var b,p=e.length,t=this.spatialReference;
for(b=0;b<p;b++)e[b]=new f(e[b],t);return e}},removePoint:function(e,b){if(this._validateInputs(e,b))return this.clearCache(),new f(this.rings[e].splice(b,1)[0],this.spatialReference)},getExtent:function(){var e=this.getCacheValue("_extent");var b=this.getCacheValue("_partwise");if(e)return e=new g(e),e._partwise=b,e;e=this.rings;var p=e.length;if(p&&e[0].length){var t,z,C,y,D=t=e[0][0][0],B=z=e[0][0][1],u=Math.min,E=Math.max,v=this.spatialReference;b=[];var A,F;for(C=0;C<p;C++){var I=e[C];var N=
A=I[0]&&I[0][0];var da=F=I[0]&&I[0][1];var ba=I.length;for(y=0;y<ba;y++){var na=I[y];var xa=na[0];na=na[1];D=u(D,xa);B=u(B,na);t=E(t,xa);z=E(z,na);N=u(N,xa);da=u(da,na);A=E(A,xa);F=E(F,na)}b.push(new g({xmin:N,ymin:da,xmax:A,ymax:F,spatialReference:v?v.toJson():null}))}e={xmin:D,ymin:B,xmax:t,ymax:z,spatialReference:v?v.toJson():null};b=1<b.length?b:null;this.setCacheValue("_extent",e);this.setCacheValue("_partwise",b);e=new g(e);e._partwise=b;return e}},contains:function(e){var b=this.rings,p=!1,
t,z,C,y=b.length;var D=this.spatialReference;var B=e.spatialReference;var u=e.x;e=e.y;D&&B&&!D.equals(B)&&D._canProject(B)&&(e=D.isWebMercator()?f.lngLatToXY(u,e):f.xyToLngLat(u,e,!0),u=e[0],e=e[1]);for(C=0;C<y;C++){D=b[C];var E=D.length;for(z=t=0;z<E;z++){t++;t===E&&(t=0);B=D[z];var v=D[t];(B[1]<e&&v[1]>=e||v[1]<e&&B[1]>=e)&&B[0]+(e-B[1])/(v[1]-B[1])*(v[0]-B[0])<u&&(p=!p)}}return p},getCentroid:function(){var e=this.getCacheValue("_centroid");if(void 0!==e)return e;e=this.rings;var b,p,t=[],z,C,
y=Infinity,D=-Infinity,B=Infinity,u=-Infinity;x.forEach(e,function(A){E=b=p=0;x.forEach(A,function(F,I){I<A.length-1&&(z=A[I+1],C=F[0]*z[1]-z[0]*F[1],E+=(F[0]+z[0])*C,b+=(F[1]+z[1])*C,p+=C,F[0]<y&&(y=F[0]),F[0]>D&&(D=F[0]),F[1]<B&&(B=F[1]),F[1]>u&&(u=F[1]))});0<p&&(p*=-1);p&&t.push([E,b,p/2])});t.sort(function(A,F){return A[2]-F[2]});var E=b=void 0;if(t[0]){var v=6*t[0][2];E=t[0][0]/v;b=t[0][1]/v;if(E<y||E>D||b<B||b>u)E=b=void 0}if(void 0===E||void 0===b)if(e=e[0]&&e[0].length?this._getLineCentroid(e[0]):
null)E=e.x,b=e.y;e=isNaN(E)||isNaN(b)?null:new f(E,b,this.spatialReference);this.setCacheValue("_centroid",e);return e},_getLineCentroid:function(e){var b=0,p=0,t=0,z={x:0,y:0},C={x:0,y:0},y,D=e.length,B;for(y=0;y<D-1;y++){var u=e[y];var E=e[y+1];if(u&&E){z.x=u[0];z.y=u[1];C.x=E[0];C.y=E[1];var v=a.getLength(z,C);0<v&&(b+=v,u=a.getMidpoint(u,E),p+=v*u[0],t+=v*u[1])}}0<b?B={x:p/b,y:t/b}:e[0]&&(B={x:e[0][0],y:e[0][1]});return B},isClockwise:function(e){var b=0,p,t=e.length,z=c.isArray(e[0])?function(C,
y){return C[0]*y[1]-y[0]*C[1]}:function(C,y){return C.x*y.y-y.x*C.y};for(p=0;p<t;p++)b+=z(e[p],e[(p+1)%t]);return 0>=b/2},isSelfIntersecting:function(e){e=e||this;var b,p,t,z,C,y=e.rings.length;for(t=0;t<y;t++){for(b=0;b<e.rings[t].length-1;b++){var D=[[e.rings[t][b][0],e.rings[t][b][1]],[e.rings[t][b+1][0],e.rings[t][b+1][1]]];for(p=t+1;p<y;p++)for(z=0;z<e.rings[p].length-1;z++){var B=[[e.rings[p][z][0],e.rings[p][z][1]],[e.rings[p][z+1][0],e.rings[p][z+1][1]]];if((C=a._getLineIntersection2(D,B))&&
!(C[0]===D[0][0]&&C[1]===D[0][1]||C[0]===B[0][0]&&C[1]===B[0][1]||C[0]===D[1][0]&&C[1]===D[1][1]||C[0]===B[1][0]&&C[1]===B[1][1]))return!0}}z=e.rings[t].length;if(!(4>=z))for(b=0;b<z-3;b++){var u=z-1;0===b&&(u=z-2);D=[[e.rings[t][b][0],e.rings[t][b][1]],[e.rings[t][b+1][0],e.rings[t][b+1][1]]];for(p=b+2;p<u;p++)if(B=[[e.rings[t][p][0],e.rings[t][p][1]],[e.rings[t][p+1][0],e.rings[t][p+1][1]]],(C=a._getLineIntersection2(D,B))&&!(C[0]===D[0][0]&&C[1]===D[0][1]||C[0]===B[0][0]&&C[1]===B[0][1]||C[0]===
D[1][0]&&C[1]===D[1][1]||C[0]===B[1][0]&&C[1]===B[1][1]))return!0}}return!1},toJson:function(){var e={rings:w.clone3DArray(this.rings)},b=this.spatialReference;b&&(e.spatialReference=b.toJson());return e}});k.prototype=m.prototype;l.prototype=new k;Object.defineProperty(l.prototype,"rings",{get:function(){this._unquantizeFn&&(this._ringsVal=this._unquantizeFn({rings:w.clone3DArray(this._ringsVal)}).rings,this._unquantizeFn=null);return this._ringsVal},set:function(e){this._ringsVal=e}});l.prototype.setupLazyUnquantization=
function(e,b){this._unquantizeFn=e;this._ringsVal=b.rings};m.simpleConstructor=k;m.accessorConstructor=l;m.defaultProps=q;m.createEllipse=function(e){var b=e.center.x,p=e.center.y,t=e.longAxis,z=e.shortAxis,C=e.numberOfPoints,y=e.map,D;e=[];var B=2*Math.PI/C;for(D=0;D<C;D++){var u=Math.cos(D*B);var E=Math.sin(D*B);u=y.toMap({x:t*u+b,y:z*E+p});e.push(u)}e.push(e[0]);b=new m(y.spatialReference);b.addRing(e);return b};m.createCircle=function(e){return m.createEllipse({center:e.center,longAxis:e.r,shortAxis:e.r,
numberOfPoints:e.numberOfPoints,map:e.map})};m.fromExtent=function(e){var b=e.normalize();e=e.spatialReference;return new m({rings:x.map(b,function(p){return[[p.xmin,p.ymin],[p.xmin,p.ymax],[p.xmax,p.ymax],[p.xmax,p.ymin],[p.xmin,p.ymin]]}),spatialReference:e?e.toJson():null})};r("extend-esri")&&(c.setObject("geometry.Polygon",m,h),h.geometry.defaultPolygon=q,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/Polyline":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ./Point ./Extent ../srUtils".split(" "),function(G,x,c,r,h,w,q,n,f,g,a){function d(){}function k(){}q={type:"polyline",paths:null};G=G(n,{declaredClass:"esri.geometry.Polyline",type:"polyline",paths:null,constructor:function(l){this.paths=[];this._path=0;l&&(c.isArray(l)?this.paths=c.isArray(l[0][0])?l:
[l]:l.paths?w.mixin(this,l):this.spatialReference=l,this.spatialReference&&(this.spatialReference=a.createSpatialReference(this.spatialReference)));this.verifySR()},addPath:function(l){this.clearCache();this._path=this.paths.length;this.paths[this._path]=[];c.isArray(l[0])?x.forEach(l,this._addPointArr,this):x.forEach(l,this._addPoint,this);return this},_addPointArr:function(l){this.paths[this._path].push(l)},_addPoint:function(l){this.paths[this._path].push([l.x,l.y])},_insertPoints:function(l,m){this.clearCache();
this._path=m;this.paths[this._path]||(this.paths[this._path]=[]);x.forEach(l,this._addPoint,this)},_validateInputs:function(l,m){return null!==l&&void 0!==l&&(0>l||l>=this.paths.length)||null!==m&&void 0!==l&&(0>m||m>=this.paths[l].length)?!1:!0},getPoint:function(l,m){if(this._validateInputs(l,m))return new f(this.paths[l][m],this.spatialReference)},setPoint:function(l,m,e){if(this._validateInputs(l,m))return this.clearCache(),this.paths[l][m]=[e.x,e.y],this},insertPoint:function(l,m,e){if(this._validateInputs(l)&&
null!=m&&0<=m&&m<=this.paths[l].length)return this.clearCache(),this.paths[l].splice(m,0,[e.x,e.y]),this},removePath:function(l){if(this._validateInputs(l,null)){this.clearCache();l=this.paths.splice(l,1)[0];var m,e=l.length,b=this.spatialReference;for(m=0;m<e;m++)l[m]=new f(l[m],b);return l}},removePoint:function(l,m){if(this._validateInputs(l,m))return this.clearCache(),new f(this.paths[l].splice(m,1)[0],this.spatialReference)},getExtent:function(){var l=this.getCacheValue("_extent");var m=this.getCacheValue("_partwise");
if(l)return l=new g(l),l._partwise=m,l;l=this.paths;var e=l.length;if(e&&l[0].length){var b,p,t,z,C=b=l[0][0][0],y=p=l[0][0][1],D=Math.min,B=Math.max,u=this.spatialReference;m=[];var E,v;for(t=0;t<e;t++){var A=l[t];var F=E=A[0]&&A[0][0];var I=v=A[0]&&A[0][1];var N=A.length;for(z=0;z<N;z++){var da=A[z];var ba=da[0];da=da[1];C=D(C,ba);y=D(y,da);b=B(b,ba);p=B(p,da);F=D(F,ba);I=D(I,da);E=B(E,ba);v=B(v,da)}m.push(new g({xmin:F,ymin:I,xmax:E,ymax:v,spatialReference:u?u.toJson():null}))}l={xmin:C,ymin:y,
xmax:b,ymax:p,spatialReference:u?u.toJson():null};m=1<m.length?m:null;this.setCacheValue("_extent",l);this.setCacheValue("_partwise",m);l=new g(l);l._partwise=m;return l}},toJson:function(){var l={paths:w.clone3DArray(this.paths)},m=this.spatialReference;m&&(l.spatialReference=m.toJson());return l}});d.prototype=G.prototype;k.prototype=new d;Object.defineProperty(k.prototype,"paths",{get:function(){this._unquantizeFn&&(this._pathsVal=this._unquantizeFn({paths:w.clone3DArray(this._pathsVal)}).paths,
this._unquantizeFn=null);return this._pathsVal},set:function(l){this._pathsVal=l}});k.prototype.setupLazyUnquantization=function(l,m){this._unquantizeFn=l;this._pathsVal=m.paths};G.simpleConstructor=d;G.accessorConstructor=k;G.defaultProps=q;r("extend-esri")&&(c.setObject("geometry.Polyline",G,h),h.geometry.defaultPolyline=q);return G})},"esri/arcade/featureset/support/shared":function(){define("require exports ../../polyfill/tsSupport/assign ../../polyfill/tsSupport/spreadarray ../../ArcadeDate ../../../geometry/Extent ../../../layers/Field".split(" "),
function(G,x,c,r,h,w,q){function n(a){var d=null;a.domain&&(d="range"===a.domain.type?{type:"range",range:[a.domain.minValue,a.domain.maxValue]}:{type:"codedValue",codedValues:a.domain.toJson().codedValues});return c(c({name:a.name,type:a.type,alias:a.alias},void 0!==a.length?{length:a.length}:{}),{editable:!0===a.editable,nullable:!0===a.nullable,domain:d})}function f(a){return a instanceof Date}function g(a){return a instanceof h.ArcadeDate}Object.defineProperty(x,"__esModule",{value:!0});x.stableStringify=
x.extractServiceUrl=x.toEsriGeometryType=x.layerFieldEsriConstants=x.layerGeometryEsriRestConstants=x.layerGeometryEsriConstants=x.callback=x.errback=x.defaultMaxRecords=x.sameGeomType=x.convertLinearUnitsToCode=x.shapeExtent=x.convertSquareUnitsToCode=x.cloneAttributes=x.equalityTest=x.isArcadeDate=x.isDate=x.isArray=x.isNumber=x.isBoolean=x.isString=x.IdState=x.esriFieldToJson=x.cloneField=x.FeatureServiceDatabaseType=void 0;(function(a){a[a.Standardised=0]="Standardised";a[a.StandardisedNoInterval=
1]="StandardisedNoInterval";a[a.SqlServer=2]="SqlServer";a[a.Oracle=3]="Oracle";a[a.Postgres=4]="Postgres";a[a.PGDB=5]="PGDB";a[a.FILEGDB=6]="FILEGDB";a[a.NotEvaluated=7]="NotEvaluated"})(x.FeatureServiceDatabaseType||(x.FeatureServiceDatabaseType={}));x.cloneField=function(a){return new q(n(a))};x.esriFieldToJson=n;(function(a){a[a.InFeatureSet=0]="InFeatureSet";a[a.NotInFeatureSet=1]="NotInFeatureSet";a[a.Unknown=2]="Unknown"})(x.IdState||(x.IdState={}));x.isString=function(a){return"string"===
typeof a||a instanceof String};x.isBoolean=function(a){return"boolean"===typeof a};x.isNumber=function(a){return"number"===typeof a};x.isArray=function(a){return a instanceof Array};x.isDate=f;x.isArcadeDate=g;x.equalityTest=function(a,d){return a===d?!0:(f(a)||g(a))&&(f(d)||g(d))?a.getTime()===d.getTime():!1};x.cloneAttributes=function(a){var d={},k;for(k in a)d[k]=a[k];return d};x.convertSquareUnitsToCode=function(a){if(null==a)return null;if("number"===typeof a)return a;switch(a.toLowerCase()){case "meters":case "meter":return 109404;
case "miles":case "mile":return 109439;case "kilometers":case "kilometer":case "km":return 109414}return null};x.shapeExtent=function(a){if(null==a)return null;switch(a.type){case "polygon":case "multipoint":case "polyline":return a.getExtent();case "point":return new w({xmin:a.x,ymin:a.y,xmax:a.x,ymax:a.y,spatialReference:a.spatialReference});case "extent":return a}return null};x.convertLinearUnitsToCode=function(a){if(null==a)return null;if("number"===typeof a||"number"===typeof a)return a;switch(a.toLowerCase()){case "meters":case "meter":return 9001;
case "miles":case "mile":return 9093;case "kilometers":case "kilometer":case "km":return 9036}return null};x.sameGeomType=function(a,d){return a===d||"point"===a&&"esriGeometryPoint"===d||"polyline"===a&&"esriGeometryPolyline"===d||"polygon"===a&&"esriGeometryPolygon"===d||"extent"===a&&"esriGeometryEnvelope"===d||"multipoint"===a&&"esriGeometryMultipoint"===d||"point"===d&&"esriGeometryPoint"===a||"polyline"===d&&"esriGeometryPolyline"===a||"polygon"===d&&"esriGeometryPolygon"===a||"extent"===d&&
"esriGeometryEnvelope"===a||"multipoint"===d&&"esriGeometryMultipoint"===a?!0:!1};x.defaultMaxRecords=1E3;x.errback=function(a){return function(d){a.reject(d)}};x.callback=function(a,d){return function(){try{a.apply(null,arguments)}catch(k){d.reject(k)}}};x.layerGeometryEsriConstants={point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",
esriGeometryEnvelope:"extent",envelope:"extent"};x.layerGeometryEsriRestConstants={point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"};x.layerFieldEsriConstants=
{"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger","long":"esriFieldTypeLong",single:"esriFieldTypeSingle","double":"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"eesriFieldTypeXML",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",
esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"eesriFieldTypeXML"};x.toEsriGeometryType=
function(a){switch(a){case "point":return"esriGeometryPoint";case "polygon":return"esriGeometryPolygon";case "multipoint":return"esriGeometryMultipoint";case "polyline":return"esriGeometryPolyline";default:return"esriGeometryPoint"}};x.extractServiceUrl=function(a){if(void 0===a)return"";a=a.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer");a=a.replace(/\/mapserver\/[0-9]*/i,"/MapServer");return a=a.split("?")[0]};x.stableStringify=function(a,d){d||(d={});"function"===typeof d&&(d={cmp:d});var k=
"boolean"===typeof d.cycles?d.cycles:!1,l=d.cmp&&function(e){return function(b){return function(p,t){return e({key:p,value:b[p]},{key:t,value:b[t]})}}}(d.cmp),m=[];return function p(b){b&&b.toJson&&"function"===typeof b.toJson&&(b=b.toJson());if(void 0!==b){if("number"===typeof b)return isFinite(b)?""+b:"null";if("object"!==typeof b)return JSON.stringify(b);var t;if(Array.isArray(b)){var z="[";for(t=0;t<b.length;t++)t&&(z+=","),z+=p(b[t])||"null";return z+"]"}if(null===b)return"null";if(m.includes(b)){if(k)return JSON.stringify("__cycle__");
throw new TypeError("Converting circular structure to JSON");}var C=m.push(b)-1,y=Object.keys(b).sort(l&&l(b));z="";for(t=0;t<y.length;t++){var D=y[t],B=p(b[D]);B&&(z&&(z+=","),z+=JSON.stringify(D)+":"+B)}m.splice(C,1);return"{"+z+"}"}}(a)}})},"esri/layers/Field":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./RangeDomain ./CodedValueDomain".split(" "),function(G,x,c,r,h,w,q){G=G(null,{declaredClass:"esri.layers.Field",constructor:function(n){if(n&&x.isObject(n)&&
(this.name=n.name,this.type=n.type,this.alias=n.alias,this.length=n.length,this.editable=n.editable,this.nullable=n.nullable,this.defaultValue=n.defaultValue,this.description=n.description?JSON.parse(n.description):null,this.isViewOverride=!!n.isViewOverride,(n=n.domain)&&x.isObject(n)))switch(n.type){case "range":this.domain=new w(n);break;case "codedValue":this.domain=new q(n)}},toJson:function(){return h.fixJson({name:this.name,type:this.type,alias:this.alias,length:this.length,editable:this.editable,
nullable:this.nullable,defaultValue:this.defaultValue,description:this.description?JSON.stringify(this.description):null,domain:this.domain?this.domain.toJson():null,isViewOverride:this.isViewOverride||void 0})},toJSON:function(){return this.toJson()}});c("extend-esri")&&x.setObject("layers.Field",G,r);return G})},"esri/layers/RangeDomain":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./Domain".split(" "),function(G,x,c,r,h,w){G=G([w],{declaredClass:"esri.layers.RangeDomain",
constructor:function(q){q&&x.isObject(q)&&(this.minValue=q.range[0],this.maxValue=q.range[1])},toJson:function(){var q=this.inherited(arguments);q.range=[this.minValue,this.maxValue];return h.fixJson(q)}});c("extend-esri")&&x.setObject("layers.RangeDomain",G,r);return G})},"esri/layers/Domain":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(G,x,c,r,h){G=G(null,{declaredClass:"esri.layers.Domain",constructor:function(w){w&&x.isObject(w)&&(this.name=
w.name,this.type=w.type)},toJson:function(){return h.fixJson({name:this.name,type:this.type})}});c("extend-esri")&&x.setObject("layers.Domain",G,r);return G})},"esri/layers/CodedValueDomain":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ./Domain".split(" "),function(G,x,c,r,h,w,q){G=G([q],{declaredClass:"esri.layers.CodedValueDomain",constructor:function(n){n&&x.isObject(n)&&(this.codedValues=n.codedValues)},getName:function(n){var f;c.some(this.codedValues,
function(g){g.code==n&&(f=g.name);return!!f});return f},toJson:function(){var n=this.inherited(arguments);n.codedValues=x.clone(this.codedValues);return w.fixJson(n)}});r("extend-esri")&&x.setObject("layers.CodedValueDomain",G,h);return G})},"esri/arcade/ArcadeModule":function(){define(["require","exports"],function(G,x){Object.defineProperty(x,"__esModule",{value:!0});x.ArcadeModule=void 0;G=function(){return function(c){this.source=c}}();x.ArcadeModule=G})},"esri/geometry/ScreenPoint":function(){define(["dojo/_base/declare",
"dojo/_base/lang","dojo/has","../kernel","./Point"],function(G,x,c,r,h){G=G(h,{declaredClass:"esri.geometry.ScreenPoint",verifySR:function(){}});c("extend-esri")&&x.setObject("geometry.ScreenPoint",G,r);return G})},"esri/geometry/Rect":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./Geometry ./Point ./Extent ../srUtils".split(" "),function(G,x,c,r,h,w,q,n,f){function g(d){return new n(parseFloat(d.x),parseFloat(d.y)-parseFloat(d.height),parseFloat(d.x)+parseFloat(d.width),
parseFloat(d.y),d.spatialReference)}var a=G(w,{declaredClass:"esri.geometry.Rect",type:"rect",x:0,y:0,width:100,height:100,constructor:function(d,k,l,m,e){h.isObject(d)&&"extent"===d.type&&(k=d.ymax,l=d.getWidth(),m=d.getHeight(),e=d.spatialReference,d=d.xmin);h.isObject(d)?(h.mixin(this,d),this.spatialReference&&(this.spatialReference=f.createSpatialReference(this.spatialReference))):(this.x=d,this.y=k,this.width=l,this.height=m,this.spatialReference=e);this.verifySR()},getCenter:function(){return new q(this.x+
this.width/2,this.y+this.height/2,this.spatialReference)},offset:function(d,k){return new a(this.x+d,this.y+k,this.width,this.height,this.spatialReference)},intersects:function(d){return d.x+d.width<=this.x||d.y+d.height<=this.y||d.y>=this.y+this.height||d.x>=this.x+this.width?!1:!0},getExtent:function(){return g(this)},update:function(d,k,l,m,e){this.x=d;this.y=k;this.width=l;this.height=m;this.spatialReference=e;this.clearCache();return this}});c("extend-esri")&&(x.setObject("geometry.Rect",a,r),
r.geometry._rectToExtent=g,r.geometry._extentToRect=function(d){return new a(d)});return a})},"esri/geometry/scaleUtils":function(){define(["dojo/_base/lang","dojo/has","../kernel","../config","../WKIDUnitConversion"],function(G,x,c,r,h){function w(d,k,l){return d&&k?d.getWidth()/k*(l||n)*39.37*f.screenDPI:0}function q(d,k,l,m,e){return d.expand(m*k/(39.37*((e?l:g.values[g[l]])||n)*f.screenDPI)/d.getWidth())}var n=6370997*Math.PI/180,f=r.defaults,g=h,a={getUnitValueForSR:function(d){return this.getUnitValue(d)||
n},getUnitValue:function(d){if(d)if("object"===typeof d){var k=d.wkid;var l=d.wkt}else"number"===typeof d?k=d:"string"===typeof d&&(l=d);if(k)var m=g.values[g[k]];else l&&-1!==l.search(/^PROJCS/i)&&(d=/UNIT\[([^\]]+)\]\]$/i.exec(l))&&d[1]&&(m=parseFloat(d[1].split(",")[1]));return m},getScale:function(d,k,l){if(1<arguments.length&&null!=k&&!k.declaredClass){var m=d;var e=k;k=null;var b=a.getUnitValue(l)}else m=k||d.extent,e=d.width,b=a.getUnitValue(m&&m.spatialReference);return w(m,e,b)},getExtentForScale:function(d,
k,l){return q(l||d.extent,d.width,a.getUnitValue(d.spatialReference),k,!0)}};x("extend-esri")&&(G.mixin(G.getObject("geometry",!0,c),a),c.geometry._getScale=w,c.geometry._getExtentForScale=q);return a})},"esri/WKIDUnitConversion":function(){define(["dojo/has","./kernel"],function(G,x){var c,r={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,
5E4,15E4],units:"Meter Foot Foot_US Foot_Clarke Yard_Clarke Link_Clarke Yard_Sears Foot_Sears Chain_Sears Chain_Benoit_1895_B Yard_Indian Yard_Indian_1937 Foot_Gold_Coast Chain Chain_Sears_1922_Truncated 50_Kilometers 150_Kilometers".split(" "),2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,
3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440: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,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,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,
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,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,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,
4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5167:0,5168:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,
5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,
6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,
6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,
6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,
6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,
7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,
7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,
8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,
8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,
9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,
23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25E3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,27700:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101: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,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,
31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,
102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028: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,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,
103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106: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,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,103228:0,
103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263: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,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,
103484:0,103485: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,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2};for(c=2E3;2045>=c;c++)r[c]=0;for(c=
2056;2065>=c;c++)r[c]=0;for(c=2067;2135>=c;c++)r[c]=0;for(c=2137;2154>=c;c++)r[c]=0;for(c=2161;2170>=c;c++)r[c]=0;for(c=2172;2193>=c;c++)r[c]=0;for(c=2195;2198>=c;c++)r[c]=0;for(c=2200;2203>=c;c++)r[c]=0;for(c=2205;2217>=c;c++)r[c]=0;for(c=2222;2224>=c;c++)r[c]=1;for(c=2225;2250>=c;c++)r[c]=2;for(c=2251;2253>=c;c++)r[c]=1;for(c=2257;2264>=c;c++)r[c]=2;for(c=2274;2279>=c;c++)r[c]=2;for(c=2280;2282>=c;c++)r[c]=1;for(c=2283;2289>=c;c++)r[c]=2;for(c=2290;2292>=c;c++)r[c]=0;for(c=2308;2313>=c;c++)r[c]=
0;for(c=2315;2491>=c;c++)r[c]=0;for(c=2494;2866>=c;c++)r[c]=0;for(c=2867;2869>=c;c++)r[c]=1;for(c=2870;2888>=c;c++)r[c]=2;for(c=2891;2895>=c;c++)r[c]=2;for(c=2896;2898>=c;c++)r[c]=1;for(c=2902;2908>=c;c++)r[c]=2;for(c=2915;2920>=c;c++)r[c]=2;for(c=2921;2923>=c;c++)r[c]=1;for(c=2924;2930>=c;c++)r[c]=2;for(c=2931;2962>=c;c++)r[c]=0;for(c=2964;2968>=c;c++)r[c]=2;for(c=2969;2973>=c;c++)r[c]=0;for(c=2975;2991>=c;c++)r[c]=0;for(c=2995;3051>=c;c++)r[c]=0;for(c=3054;3079>=c;c++)r[c]=0;for(c=3081;3088>=c;c++)r[c]=
0;for(c=3092;3101>=c;c++)r[c]=0;for(c=3106;3138>=c;c++)r[c]=0;for(c=3146;3151>=c;c++)r[c]=0;for(c=3153;3166>=c;c++)r[c]=0;for(c=3168;3172>=c;c++)r[c]=0;for(c=3174;3203>=c;c++)r[c]=0;for(c=3294;3358>=c;c++)r[c]=0;for(c=3367;3403>=c;c++)r[c]=0;for(c=3408;3416>=c;c++)r[c]=0;for(c=3417;3438>=c;c++)r[c]=2;for(c=3441;3446>=c;c++)r[c]=2;for(c=3447;3450>=c;c++)r[c]=0;for(c=3451;3459>=c;c++)r[c]=2;for(c=3460;3478>=c;c++)r[c]=0;for(c=3554;3559>=c;c++)r[c]=0;for(c=3560;3570>=c;c++)r[c]=2;for(c=3571;3581>=c;c++)r[c]=
0;for(c=3594;3597>=c;c++)r[c]=0;for(c=3601;3604>=c;c++)r[c]=0;for(c=3637;3639>=c;c++)r[c]=0;for(c=3665;3667>=c;c++)r[c]=0;for(c=3693;3695>=c;c++)r[c]=0;for(c=3701;3727>=c;c++)r[c]=0;for(c=3728;3739>=c;c++)r[c]=2;for(c=3740;3751>=c;c++)r[c]=0;for(c=3753;3760>=c;c++)r[c]=2;for(c=3761;3773>=c;c++)r[c]=0;for(c=3775;3777>=c;c++)r[c]=0;for(c=3779;3781>=c;c++)r[c]=0;for(c=3783;3785>=c;c++)r[c]=0;for(c=3788;3791>=c;c++)r[c]=0;for(c=3797;3802>=c;c++)r[c]=0;for(c=3814;3816>=c;c++)r[c]=0;for(c=3825;3829>=c;c++)r[c]=
0;for(c=3832;3841>=c;c++)r[c]=0;for(c=3844;3852>=c;c++)r[c]=0;for(c=3873;3885>=c;c++)r[c]=0;for(c=3890;3893>=c;c++)r[c]=0;for(c=3907;3912>=c;c++)r[c]=0;for(c=3942;3950>=c;c++)r[c]=0;for(c=3968;3970>=c;c++)r[c]=0;for(c=3973;3976>=c;c++)r[c]=0;for(c=3986;3989>=c;c++)r[c]=0;for(c=3994;3997>=c;c++)r[c]=0;for(c=4048;4051>=c;c++)r[c]=0;for(c=4056;4063>=c;c++)r[c]=0;for(c=4093;4096>=c;c++)r[c]=0;for(c=4390;4398>=c;c++)r[c]=0;for(c=4399;4413>=c;c++)r[c]=2;for(c=4418;4433>=c;c++)r[c]=2;for(c=4455;4457>=c;c++)r[c]=
2;for(c=4484;4489>=c;c++)r[c]=0;for(c=4491;4554>=c;c++)r[c]=0;for(c=4568;4589>=c;c++)r[c]=0;for(c=4652;4656>=c;c++)r[c]=0;for(c=4766;4800>=c;c++)r[c]=0;for(c=5014;5016>=c;c++)r[c]=0;for(c=5069;5072>=c;c++)r[c]=0;for(c=5105;5130>=c;c++)r[c]=0;for(c=5173;5188>=c;c++)r[c]=0;for(c=5253;5259>=c;c++)r[c]=0;for(c=5269;5275>=c;c++)r[c]=0;for(c=5292;5311>=c;c++)r[c]=0;for(c=5329;5331>=c;c++)r[c]=0;for(c=5343;5349>=c;c++)r[c]=0;for(c=5355;5357>=c;c++)r[c]=0;for(c=5387;5389>=c;c++)r[c]=0;for(c=5459;5463>=c;c++)r[c]=
0;for(c=5479;5482>=c;c++)r[c]=0;for(c=5518;5520>=c;c++)r[c]=0;for(c=5530;5539>=c;c++)r[c]=0;for(c=5550;5552>=c;c++)r[c]=0;for(c=5562;5583>=c;c++)r[c]=0;for(c=5623;5625>=c;c++)r[c]=2;for(c=5631;5639>=c;c++)r[c]=0;for(c=5649;5653>=c;c++)r[c]=0;for(c=5663;5680>=c;c++)r[c]=0;for(c=5682;5685>=c;c++)r[c]=0;for(c=5875;5877>=c;c++)r[c]=0;for(c=5896;5899>=c;c++)r[c]=0;for(c=5921;5940>=c;c++)r[c]=0;for(c=6050;6125>=c;c++)r[c]=0;for(c=6244;6275>=c;c++)r[c]=0;for(c=6328;6348>=c;c++)r[c]=0;for(c=6350;6356>=c;c++)r[c]=
0;for(c=6366;6372>=c;c++)r[c]=0;for(c=6381;6387>=c;c++)r[c]=0;for(c=6393;6404>=c;c++)r[c]=0;for(c=6480;6483>=c;c++)r[c]=0;for(c=6511;6514>=c;c++)r[c]=0;for(c=6579;6581>=c;c++)r[c]=0;for(c=6619;6624>=c;c++)r[c]=0;for(c=6625;6627>=c;c++)r[c]=2;for(c=6628;6632>=c;c++)r[c]=0;for(c=6634;6637>=c;c++)r[c]=0;for(c=6669;6692>=c;c++)r[c]=0;for(c=6707;6709>=c;c++)r[c]=0;for(c=6720;6723>=c;c++)r[c]=0;for(c=6732;6738>=c;c++)r[c]=0;for(c=6931;6933>=c;c++)r[c]=0;for(c=6956;6959>=c;c++)r[c]=0;for(c=7005;7007>=c;c++)r[c]=
0;for(c=7057;7070>=c;c++)r[c]=2;for(c=7074;7082>=c;c++)r[c]=0;for(c=7109;7118>=c;c++)r[c]=0;for(c=7119;7127>=c;c++)r[c]=1;for(c=7374;7376>=c;c++)r[c]=0;for(c=7528;7586>=c;c++)r[c]=0;for(c=7587;7645>=c;c++)r[c]=2;for(c=7692;7696>=c;c++)r[c]=0;for(c=7755;7787>=c;c++)r[c]=0;for(c=7791;7795>=c;c++)r[c]=0;for(c=7799;7801>=c;c++)r[c]=0;for(c=7803;7805>=c;c++)r[c]=0;for(c=7825;7831>=c;c++)r[c]=0;for(c=7845;7859>=c;c++)r[c]=0;for(c=8013;8032>=c;c++)r[c]=0;for(c=8065;8068>=c;c++)r[c]=1;for(c=8518;8529>=c;c++)r[c]=
2;for(c=8533;8536>=c;c++)r[c]=2;for(c=8538;8540>=c;c++)r[c]=2;for(c=8677;8679>=c;c++)r[c]=0;for(c=8836;8840>=c;c++)r[c]=0;for(c=8857;8859>=c;c++)r[c]=0;for(c=8908;8910>=c;c++)r[c]=0;for(c=9154;9159>=c;c++)r[c]=0;for(c=9205;9218>=c;c++)r[c]=0;for(c=9271;9273>=c;c++)r[c]=0;for(c=9295;9297>=c;c++)r[c]=0;for(c=9356;9360>=c;c++)r[c]=0;for(c=9404;9407>=c;c++)r[c]=0;for(c=9476;9482>=c;c++)r[c]=0;for(c=9487;9494>=c;c++)r[c]=0;for(c=9697;9699>=c;c++)r[c]=0;for(c=9821;9865>=c;c++)r[c]=0;for(c=20002;20032>=
c;c++)r[c]=0;for(c=20047;20049>=c;c++)r[c]=0;for(c=20062;20092>=c;c++)r[c]=0;for(c=20135;20138>=c;c++)r[c]=0;for(c=20248;20258>=c;c++)r[c]=0;for(c=20348;20358>=c;c++)r[c]=0;for(c=20436;20440>=c;c++)r[c]=0;for(c=20822;20824>=c;c++)r[c]=0;for(c=20904;20932>=c;c++)r[c]=0;for(c=20934;20936>=c;c++)r[c]=0;for(c=21004;21032>=c;c++)r[c]=0;for(c=21035;21037>=c;c++)r[c]=0;for(c=21095;21097>=c;c++)r[c]=0;for(c=21148;21150>=c;c++)r[c]=0;for(c=21207;21264>=c;c++)r[c]=0;for(c=21307;21364>=c;c++)r[c]=0;for(c=21413;21423>=
c;c++)r[c]=0;for(c=21453;21463>=c;c++)r[c]=0;for(c=21473;21483>=c;c++)r[c]=0;for(c=21780;21782>=c;c++)r[c]=0;for(c=21891;21894>=c;c++)r[c]=0;for(c=21896;21899>=c;c++)r[c]=0;for(c=22171;22177>=c;c++)r[c]=0;for(c=22181;22187>=c;c++)r[c]=0;for(c=22191;22197>=c;c++)r[c]=0;for(c=22207;22222>=c;c++)r[c]=0;for(c=22234;22236>=c;c++)r[c]=0;for(c=22243;22250>=c;c++)r[c]=0;for(c=22262;22265>=c;c++)r[c]=0;for(c=22307;22322>=c;c++)r[c]=0;for(c=22348;22357>=c;c++)r[c]=0;for(c=22407;22422>=c;c++)r[c]=0;for(c=22462;22465>=
c;c++)r[c]=0;for(c=22521;22525>=c;c++)r[c]=0;for(c=22607;22622>=c;c++)r[c]=0;for(c=22641;22646>=c;c++)r[c]=0;for(c=22648;22657>=c;c++)r[c]=0;for(c=22707;22722>=c;c++)r[c]=0;for(c=22762;22765>=c;c++)r[c]=0;for(c=22991;22994>=c;c++)r[c]=0;for(c=23028;23038>=c;c++)r[c]=0;for(c=23830;23853>=c;c++)r[c]=0;for(c=23866;23872>=c;c++)r[c]=0;for(c=23877;23884>=c;c++)r[c]=0;for(c=23886;23894>=c;c++)r[c]=0;for(c=23946;23948>=c;c++)r[c]=0;for(c=24311;24313>=c;c++)r[c]=0;for(c=24342;24347>=c;c++)r[c]=0;for(c=24370;24374>=
c;c++)r[c]=10;for(c=24375;24381>=c;c++)r[c]=0;for(c=24718;24721>=c;c++)r[c]=0;for(c=24817;24821>=c;c++)r[c]=0;for(c=24877;24882>=c;c++)r[c]=0;for(c=24891;24893>=c;c++)r[c]=0;for(c=25391;25395>=c;c++)r[c]=0;for(c=25828;25838>=c;c++)r[c]=0;for(c=26191;26195>=c;c++)r[c]=0;for(c=26391;26393>=c;c++)r[c]=0;for(c=26701;26722>=c;c++)r[c]=0;for(c=26729;26799>=c;c++)r[c]=2;for(c=26801;26803>=c;c++)r[c]=2;for(c=26811;26813>=c;c++)r[c]=2;for(c=26847;26870>=c;c++)r[c]=2;for(c=26891;26899>=c;c++)r[c]=0;for(c=26901;26923>=
c;c++)r[c]=0;for(c=26929;26946>=c;c++)r[c]=0;for(c=26948;26998>=c;c++)r[c]=0;for(c=27037;27040>=c;c++)r[c]=0;for(c=27205;27232>=c;c++)r[c]=0;for(c=27258;27260>=c;c++)r[c]=0;for(c=27391;27398>=c;c++)r[c]=0;for(c=27561;27564>=c;c++)r[c]=0;for(c=27571;27574>=c;c++)r[c]=0;for(c=27581;27584>=c;c++)r[c]=0;for(c=27591;27594>=c;c++)r[c]=0;for(c=28191;28193>=c;c++)r[c]=0;for(c=28348;28358>=c;c++)r[c]=0;for(c=28402;28432>=c;c++)r[c]=0;for(c=28462;28492>=c;c++)r[c]=0;for(c=29118;29122>=c;c++)r[c]=0;for(c=29168;29172>=
c;c++)r[c]=0;for(c=29177;29185>=c;c++)r[c]=0;for(c=29187;29195>=c;c++)r[c]=0;for(c=29900;29903>=c;c++)r[c]=0;for(c=30161;30179>=c;c++)r[c]=0;for(c=30491;30494>=c;c++)r[c]=0;for(c=30729;30732>=c;c++)r[c]=0;for(c=31251;31259>=c;c++)r[c]=0;for(c=31265;31268>=c;c++)r[c]=0;for(c=31275;31279>=c;c++)r[c]=0;for(c=31281;31297>=c;c++)r[c]=0;for(c=31461;31469>=c;c++)r[c]=0;for(c=31491;31495>=c;c++)r[c]=0;for(c=31917;31922>=c;c++)r[c]=0;for(c=31965;32E3>=c;c++)r[c]=0;for(c=32001;32003>=c;c++)r[c]=2;for(c=32005;32031>=
c;c++)r[c]=2;for(c=32033;32060>=c;c++)r[c]=2;for(c=32064;32067>=c;c++)r[c]=2;for(c=32074;32077>=c;c++)r[c]=2;for(c=32081;32086>=c;c++)r[c]=0;for(c=32107;32130>=c;c++)r[c]=0;for(c=32133;32159>=c;c++)r[c]=0;for(c=32164;32167>=c;c++)r[c]=2;for(c=32180;32199>=c;c++)r[c]=0;for(c=32201;32260>=c;c++)r[c]=0;for(c=32301;32360>=c;c++)r[c]=0;for(c=32601;32662>=c;c++)r[c]=0;for(c=32664;32667>=c;c++)r[c]=2;for(c=32701;32761>=c;c++)r[c]=0;for(c=53001;53004>=c;c++)r[c]=0;for(c=53008;53019>=c;c++)r[c]=0;for(c=53021;53032>=
c;c++)r[c]=0;for(c=53034;53037>=c;c++)r[c]=0;for(c=53042;53046>=c;c++)r[c]=0;for(c=53074;53080>=c;c++)r[c]=0;for(c=54001;54004>=c;c++)r[c]=0;for(c=54008;54019>=c;c++)r[c]=0;for(c=54021;54032>=c;c++)r[c]=0;for(c=54034;54037>=c;c++)r[c]=0;for(c=54042;54046>=c;c++)r[c]=0;for(c=54048;54053>=c;c++)r[c]=0;for(c=54074;54080>=c;c++)r[c]=0;for(c=54098;54101>=c;c++)r[c]=0;for(c=102001;102040>=c;c++)r[c]=0;for(c=102042;102063>=c;c++)r[c]=0;for(c=102065;102067>=c;c++)r[c]=0;for(c=102070;102117>=c;c++)r[c]=0;
for(c=102122;102216>=c;c++)r[c]=0;for(c=102221;102377>=c;c++)r[c]=0;for(c=102382;102388>=c;c++)r[c]=0;for(c=102389;102398>=c;c++)r[c]=2;for(c=102399;102444>=c;c++)r[c]=0;for(c=102445;102447>=c;c++)r[c]=2;for(c=102448;102458>=c;c++)r[c]=0;for(c=102459;102468>=c;c++)r[c]=2;for(c=102469;102499>=c;c++)r[c]=0;for(c=102500;102519>=c;c++)r[c]=1;for(c=102520;102524>=c;c++)r[c]=0;for(c=102525;102529>=c;c++)r[c]=2;for(c=102530;102588>=c;c++)r[c]=0;for(c=102590;102598>=c;c++)r[c]=0;for(c=102601;102603>=c;c++)r[c]=
0;for(c=102605;102628>=c;c++)r[c]=0;for(c=102629;102646>=c;c++)r[c]=2;for(c=102648;102700>=c;c++)r[c]=2;for(c=102701;102703>=c;c++)r[c]=0;for(c=102707;102730>=c;c++)r[c]=2;for(c=102733;102758>=c;c++)r[c]=2;for(c=102767;102900>=c;c++)r[c]=0;for(c=102901;102933>=c;c++)r[c]=2;for(c=102934;102950>=c;c++)r[c]=13;for(c=102951;102955>=c;c++)r[c]=0;for(c=102961;102963>=c;c++)r[c]=0;for(c=102965;102969>=c;c++)r[c]=0;for(c=102971;102973>=c;c++)r[c]=0;for(c=102975;102989>=c;c++)r[c]=0;for(c=102990;102992>=c;c++)r[c]=
1;for(c=102997;103002>=c;c++)r[c]=0;for(c=103003;103008>=c;c++)r[c]=2;for(c=103009;103011>=c;c++)r[c]=0;for(c=103012;103014>=c;c++)r[c]=2;for(c=103019;103021>=c;c++)r[c]=0;for(c=103022;103024>=c;c++)r[c]=2;for(c=103029;103031>=c;c++)r[c]=0;for(c=103032;103034>=c;c++)r[c]=2;for(c=103065;103068>=c;c++)r[c]=0;for(c=103074;103076>=c;c++)r[c]=0;for(c=103077;103079>=c;c++)r[c]=1;for(c=103080;103082>=c;c++)r[c]=0;for(c=103083;103085>=c;c++)r[c]=2;for(c=103090;103093>=c;c++)r[c]=0;for(c=103097;103099>=c;c++)r[c]=
0;for(c=103100;103102>=c;c++)r[c]=2;for(c=103107;103109>=c;c++)r[c]=0;for(c=103110;103112>=c;c++)r[c]=2;for(c=103113;103116>=c;c++)r[c]=0;for(c=103117;103120>=c;c++)r[c]=2;for(c=103153;103157>=c;c++)r[c]=0;for(c=103158;103162>=c;c++)r[c]=2;for(c=103163;103165>=c;c++)r[c]=0;for(c=103166;103168>=c;c++)r[c]=1;for(c=103169;103171>=c;c++)r[c]=2;for(c=103186;103188>=c;c++)r[c]=0;for(c=103189;103191>=c;c++)r[c]=2;for(c=103192;103195>=c;c++)r[c]=0;for(c=103196;103199>=c;c++)r[c]=2;for(c=103200;103224>=c;c++)r[c]=
0;for(c=103225;103227>=c;c++)r[c]=1;for(c=103232;103237>=c;c++)r[c]=0;for(c=103238;103243>=c;c++)r[c]=2;for(c=103244;103246>=c;c++)r[c]=0;for(c=103247;103249>=c;c++)r[c]=2;for(c=103254;103256>=c;c++)r[c]=0;for(c=103257;103259>=c;c++)r[c]=2;for(c=103264;103266>=c;c++)r[c]=0;for(c=103267;103269>=c;c++)r[c]=2;for(c=103300;103375>=c;c++)r[c]=0;for(c=103381;103383>=c;c++)r[c]=0;for(c=103384;103386>=c;c++)r[c]=1;for(c=103387;103389>=c;c++)r[c]=0;for(c=103390;103392>=c;c++)r[c]=2;for(c=103397;103399>=c;c++)r[c]=
0;for(c=103400;103471>=c;c++)r[c]=2;for(c=103476;103478>=c;c++)r[c]=0;for(c=103479;103481>=c;c++)r[c]=2;for(c=103486;103488>=c;c++)r[c]=0;for(c=103489;103491>=c;c++)r[c]=2;for(c=103492;103495>=c;c++)r[c]=0;for(c=103496;103499>=c;c++)r[c]=2;for(c=103528;103543>=c;c++)r[c]=0;for(c=103544;103548>=c;c++)r[c]=2;for(c=103549;103551>=c;c++)r[c]=0;for(c=103552;103554>=c;c++)r[c]=1;for(c=103555;103557>=c;c++)r[c]=2;for(c=103558;103560>=c;c++)r[c]=0;for(c=103571;103573>=c;c++)r[c]=0;for(c=103574;103576>=c;c++)r[c]=
2;for(c=103577;103580>=c;c++)r[c]=0;for(c=103581;103583>=c;c++)r[c]=2;for(c=103595;103694>=c;c++)r[c]=0;for(c=103696;103699>=c;c++)r[c]=0;for(c=103700;103793>=c;c++)r[c]=2;for(c=103794;103890>=c;c++)r[c]=0;for(c=103891;103896>=c;c++)r[c]=2;for(c=103900;103971>=c;c++)r[c]=2;for(c=103972;103977>=c;c++)r[c]=0;for(c=112E3;112101>=c;c++)r[c]=0;G("extend-esri")&&(x.WKIDUnitConversion=r);return r})},"esri/geometry/screenUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/sniff ../kernel ./Point ./ScreenPoint ./Polyline ./Polygon ./Multipoint ./Extent".split(" "),
function(G,x,c,r,h,w,q,n,f,g){var a=function(){return 9>c("ie")?function(k,l,m,e,b,p,t,z,C){var y=[],D=Math.round,B,u=t.length,E;for(B=0;B<u;B++){var v=t[B];var A=z?z(v[0][0],v[0][1],C):v[0];if(1<(E=v.length)){var F=D((A[0]-k)*m+b);var I=D((l-A[1])*e+p);A=z?z(v[1][0],v[1][1],C):v[1];var N=D((A[0]-k)*m+b);A=D((l-A[1])*e+p);y.push("M",F+","+I,"L",N+","+A);for(N=2;N<E;N++)A=z?z(v[N][0],v[N][1],C):v[N],F=D((A[0]-k)*m+b),I=D((l-A[1])*e+p),y.push(F+","+I)}else F=D((A[0]-k)*m+b),I=D((l-A[1])*e+p),y.push("M",
F+","+I)}return y}:function(k,l,m,e,b,p,t,z,C,y){var D=[],B,u,E=Math.round;var v=0;for(B=t?t.length:0;v<B;v++){var A=t[v];D.push("M");var F=0;for(u=A?A.length:0;F<u;F++){var I=z?z(A[F][0],A[F][1],C):A[F];D.push(E((I[0]-k)*m+b)+","+E((l-I[1])*e+p))}y||D.push("Z")}return D}}(),d={toScreenPoint:function(k,l,m,e,b){var p=k.spatialReference,t=e.spatialReference,z=e.x;e=e.y;p&&t&&!p.equals(t)&&p._canProject(t)&&(p=p.isWebMercator()?h.lngLatToXY(z,e):h.xyToLngLat(z,e,!0),z=p[0],e=p[1]);z=(z-k.xmin)*(l/k.getWidth());
e=(k.ymax-e)*(m/k.getHeight());b||(z=Math.round(z),e=Math.round(e));return new w(z,e)},toScreenGeometry:function(k,l,m,e){var b=k.xmin,p=k.ymax,t=l/k.getWidth(),z=m/k.getHeight(),C=G.forEach,y=Math.round;if(e instanceof h)return new h(y((e.x-b)*t),y((p-e.y)*z));if(e instanceof f){k=new f;var D=k.points;C(e.points,function(A,F){D[F]=[y((A[0]-b)*t),y((p-A[1])*z)]});return k}if(e instanceof g)return new g(y((e.xmin-b)*t),y((p-e.ymin)*z),y((e.xmax-b)*t),y((p-e.ymax)*t));if(e instanceof q){k=new q;var B=
k.paths,u;C(e.paths,function(A,F){u=B[F]=[];C(A,function(I,N){u[N]=[y((I[0]-b)*t),y((p-I[1])*z)]})});return k}if(e instanceof n){k=new n;var E=k.rings,v;C(e.rings,function(A,F){v=E[F]=[];C(A,function(I,N){v[N]=[y((I[0]-b)*t),y((p-I[1])*z)]})});return k}},_toScreenPath:function(k,l,m,e,b,p){var t=e instanceof q,z=k.spatialReference,C=e.spatialReference;if(z&&C&&!z.equals(C)&&z._canProject(C))if(z.isWebMercator())var y=h.lngLatToXY;else{y=h.xyToLngLat;var D=!0}return a(k.xmin,k.ymax,l/k.getWidth(),
m/k.getHeight(),b,p,t?e.paths:e.rings,y,D,t)},toMapPoint:function(k,l,m,e){return new h(k.xmin+e.x/(l/k.getWidth()),k.ymax-e.y/(m/k.getHeight()),k.spatialReference)},toMapGeometry:function(k,l,m,e){var b=k.xmin,p=k.ymax,t=k.spatialReference,z=l/k.getWidth(),C=m/k.getHeight(),y=G.forEach;if(e instanceof h)return new h(b+e.x/z,p-e.y/C,t);if(e instanceof f){k=new f(t);var D=k.points;y(e.points,function(A,F){D[F]=[b+A[0]/z,p-A[1]/C]});return k}if(e instanceof g)return new g(b+e.xmin/z,p-e.ymin/C,b+e.xmax/
z,p-e.ymax/C,t);if(e instanceof q){k=new q(t);var B=k.paths,u;y(e.paths,function(A,F){u=B[F]=[];y(A,function(I,N){u[N]=[b+I[0]/z,p-I[1]/C]})});return k}if(e instanceof n){k=new n(t);var E=k.rings,v;y(e.rings,function(A,F){v=E[F]=[];y(A,function(I,N){v[N]=[b+I[0]/z,p-I[1]/C]})});return k}}};c("extend-esri")&&x.mixin(x.getObject("geometry",!0,r),d);return d})},"esri/layers/GraphicsLayer":function(){define("require dojo/_base/declare dojo/_base/Deferred dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/_base/window dojo/dom-attr dojo/dom-construct dojo/dom-style dojo/dom dojox/gfx dojox/gfx/matrix ./gfxSniff!esri-svg?dojox/gfx/filters ./layer ./support/webglUtils ./support/WebGLSurface ../kernel ../lang ../sniff ../Color ../domUtils ../symbols/MarkerSymbol ../symbols/SimpleMarkerSymbol ../symbols/utils ../geometry/Point ../geometry/ScreenPoint ../geometry/Extent ../geometry/mathUtils ../geometry/screenUtils ../PluginTarget ./gfxSniff!esri-svg?dojox/gfx/svgext".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C,y,D,B,u,E,v,A,F,I,N){var da=-1!==d.renderer.toLowerCase().indexOf("svg"),ba=-1!==d.renderer.toLowerCase().indexOf("canvas"),na=ba?"canvas-2d":d.renderer,xa=9>z("ie");q=10===z("ie");var W=void 0===z("ie")&&7==z("trident"),la=q||W,ha=z("esri-touch"),sa=!!z("chrome"),Ca=e.isWebGLEnabled(),oa=da&&z("esri-will-change"),qa=Ca||ba;e=x(null,{declaredClass:"esri.layers._GraphicsContainer",_setMap:function(L,Y){var ca=this._connects=[];this._map=L;this._useWillChange=
this._useGlobalTransform="css-transforms"===L.navigationMode&&oa;if(qa){var V=f.create("div",{style:{position:"absolute",overflow:"visible"}},Y);this._surface={getEventSource:function(){return V}};ba&&(ca.push(r.connect(V,"onmousedown",this,this._canvasDownHandler)),ca.push(r.connect(V,"onmouseup",this,this._canvasUpHandler)),ca.push(r.connect(V,"onclick",this,this._canvasClickHandler)));Ca&&(this._webglSurface=new b({map:L,node:V}))}else V=(this._surface=d.createSurface(Y,L.width,L.height)).getEventSource(),
this._useWillChange&&g.set(V,"will-change","transform"),g.set(V=xa?V.parentNode:V,{overflow:"visible",position:"absolute"});ca.push(r.connect(L,"onResize",this,"_onResizeHandler"));this._useGlobalTransform&&(ca.push(r.connect(L,"onPan",this,"_onPanHandler")),ca.push(r.connect(L,"onPanEnd",this,"_onPanEndHandler")),ca.push(r.connect(L,"onExtentChange",this,"_onExtentChangeHandler")));return V},_reorderLayer:function(L,Y,ca){Y=Y.getEventSource();qa&&"svg"===L.surfaceType&&(Y=Y.parentNode);f.place(Y,
this._surface.getEventSource(),ca)},_onPanHandler:function(L,Y){var ca=this._map.__visibleRect;L=ca.x+Y.x;Y=ca.y+Y.y;this._panDx=L;this._panDy=Y;qa||g.set(this._surface.getEventSource(),p._css.names.transform,p._css.translate(L,Y))},_onPanEndHandler:function(L,Y){Y=this._map.__visibleRect;L=Y.x;Y=Y.y;this._panDx=L;this._panDy=Y;qa||g.set(this._surface.getEventSource(),p._css.names.transform,p._css.translate(L,Y))},_onExtentChangeHandler:function(L,Y,ca,V){ca&&(this._panDy=this._panDx=0,qa||g.set(this._surface.getEventSource(),
p._css.names.transform,p._css.translate(0,0)))},_getTransform:function(){return{dx:this._panDx||0,dy:this._panDy||0}},_onResizeHandler:function(L,Y,ca){L=this._surface.getEventSource();var V=this._map,X;xa&&g.set(L=L.parentNode,{width:Y+"px",height:ca+"px",clip:"rect(0px "+Y+"px "+ca+"px 0px)"});n.set(L,"width",Y);n.set(L,"height",ca);this._surface.declaredClass||w.forEach(L.childNodes,function(ja){n.set(ja,"width",Y);n.set(ja,"height",ca)});V.loaded&&(V.graphics.suspended||(V.graphics._resized=!0),
w.forEach(V.graphicsLayerIds,function(ja){X=V.getLayer(ja);X.suspended||(X._resized=!0,X._childLayer&&(X._childLayer._resized=!0));X._updateSVGFilters(null,null,Y,ca)}),V.graphics._updateSVGFilters(null,null,Y,ca),V._labels&&V._labels._updateSVGFilters(null,null,Y,ca))},_cleanUp:function(){w.forEach(this._connects,r.disconnect,r);this._map=this._surface=null},_processEvent:function(L){var Y=this._map;L.screenPoint=new v(L.pageX-Y.position.x,L.pageY-Y.position.y);L.mapPoint=Y.toMap(L.screenPoint)},
_canvasDownHandler:function(L){this._processEvent(L);this._downPt=L.screenPoint.x+","+L.screenPoint.y},_canvasUpHandler:function(L){this._processEvent(L);this._upPt=L.screenPoint.x+","+L.screenPoint.y},_tolerance:15,_isPrimaryMatch:function(L,Y,ca,V){if(!L.visible||!Y)return!1;var X=Y.getTransformedBoundingBox();if(X){var ja=new A(X[0].x,X[0].y,X[2].x,X[2].y);delete ja.spatialReference;return ha?ja.intersects(ca):ja.contains(V)}return w.some(Y.children||[],function(pa){X=pa.getTransformedBoundingBox();
ja=new A(X[0].x,X[0].y,X[2].x,X[2].y);delete ja.spatialReference;return ha?ja.intersects(ca):ja.contains(V)})},_canvasClickHandler:function(L){if(this._downPt&&this._upPt&&this._downPt===this._upPt){this._processEvent(L);var Y=this._map,ca=w.map(Y.graphicsLayerIds,function(S){return Y.getLayer(S)});ca.push(Y.graphics);ca.reverse();ca=w.filter(ca,function(S){return S.loaded&&!S.hasWebGLSurface()&&S._mouseEvents&&!S.suspended&&(!t.isDefined(S.opacity)||0<S.opacity)});var V=L.screenPoint,X=this._tolerance,
ja=V.x-X,pa=V.y+X,ta=V.x+X;X=V.y-X;var ea=new A(ja,X,ta,pa);ja=Y.toMap(new v(ja,pa));ta=Y.toMap(new v(ta,X));pa=ja.spatialReference._getInfo();var va=new A(A.prototype._normalizeX(ja.x,pa).x,ja.y,A.prototype._normalizeX(ta.x,pa).x,ta.y,ja.spatialReference),M;delete ea.spatialReference;w.some(ca,function(S){S=w.filter(S.graphics,function(ua){return this._isPrimaryMatch(ua,ua.getDojoShape(),ea,V)||!(!ua._bgShape||!this._isPrimaryMatch(ua,ua._bgShape,ea,V))},this);S.reverse();if(0<S.length){var ma;w.some(S,
function(ua){return ua.geometry&&va.intersects(ua.geometry)?(ma=ua,!0):!1});if(ma)return M=ma,!0}return!1},this);M&&(ca=M.getLayer())&&(L.graphic=M,ca.onClick(L))}}});m=x(m,{declaredClass:"esri.layers._GraphicsLayer",managedSuspension:!0,surfaceType:na,webglEnabled:Ca,renderer:null,_eventMap:{"graphic-add":["graphic"],"graphic-remove":["graphic"],"renderer-change":["renderer"]},_suspendGraphics:!1,constructor:function(L,Y){L=L||{};if(h.isString(L)||h.isObject(L)&&(L.layerDefinition||L.query))L=Y;
this._params=h.mixin({displayOnPan:!0,drawMode:!0,styling:!0},L);Y=this._params.dataAttributes;"string"===typeof Y&&(Y=[Y]);this.styling=da?this._params.styling:!0;this.dataAttributes=Y;this.infoTemplate=L&&L.infoTemplate;this.graphics=[];this._draw=h.hitch(this,this._draw);this._refresh=h.hitch(this,this._refresh);this._acquireSVGMarker=h.hitch(this,this._acquireSVGMarker);this._evalSurfaceType=h.hitch(this,this._evalSurfaceType);this._setSurfaceType=h.hitch(this,this._setSurfaceType);this.setWebGLEnabled(null!=
this._params.webglEnabled?this._params.webglEnabled:this.webglEnabled);this.registerConnectEvents()},getNode:function(){return this._div&&this._div.getEventSource()},setDrawMode:function(L){this._params.drawMode=L},suspendGraphics:function(L){this._suspendGraphics=L;w.forEach(this.graphics,function(Y){Y._suspended=L})},setWebGLEnabled:function(L){var Y=this.webglEnabled;this.webglEnabled=(L||!1)&&Ca;Y!==this.webglEnabled&&(this._evalSurfaceType(),this.onWebGLEnabledChange())},hasWebGLSurface:function(){return"webgl"===
this.surfaceType},_getSurfaceType:function(L){return L&&"webgl"===L.surfaceType?"webgl":na},_evalSurfaceType:function(L){Ca&&(L?this._setSurfaceType():null==this._evalSurfaceTimerHandle&&(this._evalSurfaceTimerHandle=setTimeout(this._setSurfaceType,0)))},_hasPendingSurfaceEval:function(){return!!this._evalSurfaceTimerHandle},_setSurfaceType:function(){clearTimeout(this._evalSurfaceTimerHandle);this._evalSurfaceTimerHandle=null;var L=this._canUseWebGLSurface()?"webgl":na;this.surfaceType!==L?(this.surfaceType=
L,this._handleSurfaceChange(),this.onSurfaceChange()):this._pendingRedraw&&this._redraw()},_handleSurfaceChange:function(){this._cancelWebGLDepsLoad();this._webglDepsPromise=this._prepareToAttach(this._map);this._webglDepsPromise.always(h.hitch(this,function(L){this._webglDepsPromise=null;L&&"cancel"===L.dojoType||this._evalSurface()}))},_cancelWebGLDepsLoad:function(){this._webglDepsPromise&&!this._webglDepsPromise.isFulfilled()&&this._webglDepsPromise.cancel();this._webglDepsPromise=null},_evalSurface:function(){var L=
this._map,Y=this._div;L&&Y&&this._getSurfaceType(Y)!==this.surfaceType&&(L._detachGraphicsLayer(this),L._attachGraphicsLayer(this))},_canUseWebGLSurface:function(L){L=L||this._map;return this.webglEnabled&&(!L||L.webglEnabled&&(L.ownsWebGLContext(this)||L.isWebGLContextAvailable()))&&this._params.drawMode&&this._isWebGLCompatible()},_isWebGLCompatible:function(){return!1},_prepareToAttach:function(L){var Y=new c;!this.webglDeps&&this._canUseWebGLSurface(L)?G(["./support/webglDeps"],h.hitch(this,function(ca){this.webglDeps=
ca;Y.isFulfilled()||Y.resolve()})):Y.resolve();return Y.promise},_setMap:function(L,Y){this.inherited(arguments);this._map=L;this._evalSurfaceType(!0);this._webglChangeMapHandle=L.on("webgl-enabled-change",h.hitch(this,function(){this._evalSurfaceType()}));this._wrap=L.wrapAround180;this._srInfo=L.spatialReference._getInfo();this._svgFilters={};this._lineMarkers={};if(this.hasWebGLSurface())L.acquireWebGLContext(this),this._div=L._gc._webglSurface.createRenderer(this.webglDeps.WebGLRenderer,L.width,
L.height,this);else{if("svg"===this.surfaceType)if(qa){Y=d.createSurface(Y.getEventSource(),L.width,L.height);var ca=Y.getEventSource();g.set(ca,{position:"absolute",overflow:"visible",pointerEvents:"none"});L._gc._useWillChange&&g.set(ca,"will-change","transform");this._div=Y.createGroup();g.set(this._div.getEventSource(),"pointer-events","auto")}else this._div=Y.createGroup();else Y=d.createSurface(Y.getEventSource(),L.width,L.height),g.set(Y.rawNode,"position","absolute"),this._div=Y.createGroup(),
this._renderProto=this._div.constructor.prototype._render,this._div._render=h.hitch(this,this._canvasRender);this._bgGroup=this._div.createGroup()}this._div.getEventSource().id=this.id+"_layer";this._initOpacity();return this._div},_unsetMap:function(L,Y){L.releaseWebGLContext(this);"webgl"===this._div.surfaceType?L._gc._webglSurface.destroyRenderer(this._div):(w.forEach(this.graphics,function(ca){ca._shape=null}),"svg"===this.surfaceType?qa?(Y=this._div.parent,this._div.clear(),Y.remove(this._div),
f.destroy(this._div.getEventSource()),f.destroy(Y.getEventSource())):(this._div.clear(),Y.remove(this._div),f.destroy(this._div.getEventSource())):(Y=this._div.getParent(),Y._parent={},f.destroy(Y.rawNode),Y.destroy()));this._map=this._div=this._svgFilters=this._lineMarkers=null;this._pendingRedraw=!1;clearTimeout(this._wakeTimer);this._wakeTimer=null;clearTimeout(this._evalSurfaceTimerHandle);this._evalSurfaceTimerHandle=null;this._webglChangeMapHandle&&this._webglChangeMapHandle.remove();this._cancelWebGLDepsLoad();
this._disableDrawConnectors();this.inherited(arguments)},_initOpacity:function(){var L=this.opacity;t.isDefined(L)&&1>L&&this.setOpacity(L,!0)},_onZoomStartHandler:function(){this.hasWebGLSurface()||y.hide(this._div.getEventSource())},_onExtentChangeHandler:function(L,Y,ca,V){clearTimeout(this._wakeTimer);this._wakeTimer=null;ca?(L=this._map.__visibleRect,Y=this._div,this._evalSDRenderer(),this._refresh(!0),this._params._child||this._updateTransform(Y,L.x,L.y,!0),this._renderProto&&Y.surface.pendingRender?
this._dirty=!0:this.suspended||y.show(Y.getEventSource())):this._resized&&(this._resized=!1,this._refresh(!1));if(0<this.graphics.length)this.onUpdate()},_canvasRender:function(){var L=this._div;this._dirty&&(delete this._dirty,this.suspended||y.show(L.getEventSource()));return this._renderProto.apply(L,arguments)},_refresh:function(L){if(!this.hasWebGLSurface()){var Y=this.graphics,ca=Y.length,V,X=this._draw;for(V=0;V<ca;V++)X(Y[V],L)}},refresh:function(){this._refresh(!0)},_redraw:function(){this._pendingRedraw=
!1;this.hasWebGLSurface()?this._div&&this._div.redraw():this._refresh(!0)},redraw:function(){this._hasPendingSurfaceEval()?this._pendingRedraw=!0:this._redraw()},hasLocalNavigationTransform:function(){return!(this._map&&this._map._gc._useGlobalTransform)},getNavigationTransform:function(){var L={dx:0,dy:0};this._map&&(this.hasLocalNavigationTransform()?this._div&&!this.hasWebGLSurface()&&(L=this._div.getTransform()):L=this._map._gc._getTransform());return L},_onPanHandler:function(L,Y){this._panDx=
Y.x;this._panDy=Y.y;L=this._map.__visibleRect;this._updateTransform(this._div,L.x+Y.x,L.y+Y.y);W&&this._updateSVGMarkers()},_onPanEndUpdateHandler:function(L,Y){L=this._map.__visibleRect;this._params._child||Y.x===this._panDx&&Y.y===this._panDy?(this._updateSVGFilters(-L.x,-L.y),this._updateSVGMarkers()):this._updateTransform(this._div,L.x,L.y,!0);this._refresh(!1);if(this.graphics.length)this.onUpdate()},_onPanStartHandler:function(){y.hide(this._div.getEventSource())},_onPanEndHandler:function(){var L=
this._map.__visibleRect,Y=this._div;this._updateTransform(Y,L.x,L.y,!0);this._refresh(!1);this._renderProto&&Y.surface.pendingRender?this._dirty=!0:y.show(Y.getEventSource());if(this.graphics.length)this.onUpdate()},_updateTransform:function(L,Y,ca,V){this.hasWebGLSurface()||(this.hasLocalNavigationTransform()?L.setTransform(k.translate({x:Y,y:ca})):qa&&g.set(this._div.parent.getEventSource(),p._css.names.transform,p._css.translate(Y,ca)),V&&(this._updateSVGFilters(-Y,-ca),this._updateSVGMarkers()))},
onSuspend:function(){this.inherited(arguments);y.hide(this._div.getEventSource());clearTimeout(this._wakeTimer);this._wakeTimer=null;this._disableDrawConnectors()},onResume:function(L){this.inherited(arguments);L.firstOccurrence&&this._evalSDRenderer();this._enableDrawConnectors();this._wakeTimer=this._wakeTimer||setTimeout(h.hitch(this,function(){this.suspended||this._map.__zooming||this._onExtentChangeHandler(null,null,!0)}),0)},_enableDrawConnectors:function(){var L=this._map,Y=r.connect;this._disableDrawConnectors();
this._params.displayOnPan?(this._params._child||(this._onPanHandler_connect=Y(L,"onPan",this,"_onPanHandler")),this._onPanEndHandler_connect=Y(L,"onPanEnd",this,"_onPanEndUpdateHandler")):(this._onPanStartHandler_connect=Y(L,"onPanStart",this,"_onPanStartHandler"),this._onPanEndHandler_connect=Y(L,"onPanEnd",this,"_onPanEndHandler"));this._onZoomStartHandler_connect=Y(L,"onZoomStart",this,"_onZoomStartHandler");this._onExtentChangeHandler_connect=Y(L,"onExtentChange",this,"_onExtentChangeHandler")},
_disableDrawConnectors:function(){var L=r.disconnect;L(this._onExtentChangeHandler_connect);L(this._onZoomStartHandler_connect);L(this._onPanHandler_connect);L(this._onPanStartHandler_connect);L(this._onPanEndHandler_connect);this._onExtentChangeHandler_connect=this._onZoomStartHandler_connect=this._onPanHandler_connect=this._onPanStartHandler_connect=this._onPanEndHandler_connect=null},_updateExtent:function(L){var Y=L.geometry;if(!Y)L._extent=null;else if(!(L._extent=Y.getExtent())){if("esri.geometry.Point"===
Y.declaredClass){var ca=Y.x;var V=Y.y}else if("esri.geometry.Multipoint"===Y.declaredClass)ca=Y.points[0][0],V=Y.points[0][1];else{L._extent=null;return}L._extent=new A(ca,V,ca,V,Y.spatialReference)}},_intersects:function(L,Y,ca){var V=L.spatialReference,X=Y.spatialReference,ja=V&&X&&!V.equals(X)&&V._canProject(X)&&4326===X.wkid;if(this._wrap&&!ca){ca=[];V=L._getFrameWidth();var pa=this._srInfo,ta=L._clip?L._getAvailExtent():L.extent,ea,va=[];var M=Y._partwise;ja&&(ta=L.geographicExtent,pa=X._getInfo());
L=ta._getParts(pa);if(M&&M.length)for(Y=[],X=0,ja=M.length;X<ja;X++)Y=Y.concat(M[X]._getParts(pa));else Y=Y._getParts(pa);X=0;for(ja=Y.length;X<ja;X++){var S=Y[X];pa=0;for(ta=L.length;pa<ta;pa++){var ma=L[pa];if(ma.extent.intersects(S.extent))for(M=0,ea=S.frameIds.length;M<ea;M++)ca.push((ma.frameIds[0]-S.frameIds[M])*V)}}X=0;for(ja=ca.length;X<ja;X++)M=ca[X],w.indexOf(ca,M)===X&&va.push(M);return va.length?va:null}return(ja?L.geographicExtent:L.extent).intersects(Y)?[0]:null},_defaultMarker:{type:"simplemarkersymbol",
style:"square",size:1,xoffset:0,yoffset:0,angle:0},_draw:function(L,Y){if(!this.hasWebGLSurface()&&this._params.drawMode&&this._map&&!this.suspended&&!this._map.__zooming&&!this._resized)try{var ca=L._extent,V,X,ja=!da||this.styling,pa=da&&this.dataAttributes,ta=L.getDojoShape(),ea;if(!L._suspended&&L.visible&&ca&&(V=this._intersects(this._map,ca,L.geometry._originOnly))&&(X=ja?this._getSymbol(L):this._defaultMarker)){if(L._offsets&&L._offsets.join(",")===V.join(",")?ea=!0:L._offsets=V,!ta||Y||!ea){var va=
L.geometry.type;Y={graphic:L};var M=L._bgShape,S=ja&&!L.symbol?this._getRenderer(L):null,ma=S&&S.backgroundFillSymbol;if("point"===va)this._isInvalidShape(X,ta)&&this._removeShape(L),L._shape=this._drawPoint(this._div,L.geometry,X,L.getDojoShape(),V,S,L),ja&&this._symbolizePoint(L.getDojoShape(),X,S,L);else if("multipoint"===va)this._drawMarkers(L,X,V,S),ja&&this._symbolizeMarkers(L,X,S);else{var ua;va=X;var wa;ja&&(va=(ua="simplemarkersymbol"===X.type||"picturemarkersymbol"===X.type||"textsymbol"===
X.type?X:null)?ma:X);if(ja&&va&&-1<va.type.indexOf("fillsymbol")){var Q=this._bgGroup;var ka=!(!Q||!ua)}M&&!ka&&this._removeBgShape(L);if(va){!ka&&(this._isInvalidShape(va,L._shape)||L._shape&&L._shape._isCentroidMarker)&&this._removeShape(L,!1);if(wa=this._drawShape(L,V,Q||this._div,ka?M:L.getDojoShape()))wa._isCentroidMarker=!1;ja&&this._symbolizeShape(wa,va,S,va===ma,L);L[ka?"_bgShape":"_shape"]=wa}if(ua){(this._isInvalidShape(ua,L._shape)||L._shape&&!L._shape._isCentroidMarker)&&this._removeShape(L,
!1);var za=L.geometry.getCentroid();if(wa=za&&this._drawPoint(this._div,za,ua,L._shape,V,S,L))wa._isCentroidMarker=!0,this._symbolizePoint(wa,ua,S,L);L._shape=wa}}ba||(L._bgShape&&this._initNode(L,L._bgShape,L._bgShape!==M,Y,pa),L._shape&&this._initNode(L,L._shape,L._shape!==ta,Y,pa));L._applyDataAttrs();Y.node=L.getNode();this.onGraphicDraw(Y)}}else ta&&this._removeShape(L)}catch(Ea){this._errorHandler(Ea,L)}},_initNode:function(L,Y,ca,V,X){if(Y=Y&&Y.getNode())Y.e_graphic=L,this._addDataAttrs(L,
X,Y),ca&&(V.node=Y,this.onGraphicNodeAdd(V))},_removeShape:function(L,Y,ca){var V=L.getDojoShape(),X=V&&V.getNode();V&&!ca&&(V.removeShape(),V.destroy());L._shape=L._offsets=null;!1!==Y&&this._removeBgShape(L,ca);if(X&&(X.e_graphic=null,!ba))this.onGraphicNodeRemove({graphic:L,node:X})},_removeBgShape:function(L,Y){var ca=L._bgShape,V=ca&&ca.getNode();ca&&!Y&&(ca.removeShape(),ca.destroy());L._bgShape=null;if(V&&(V.e_graphic=null,!ba))this.onGraphicNodeRemove({graphic:L,node:V})},_addDataAttrs:function(L,
Y,ca){var V=L.attributes,X,ja=Y?Y.length:0,pa=this._getRenderer(L);if(ca&&V){for(X=0;X<ja;X++)(ca=Y[X])&&L.attr("data-"+ca,V[ca]);!this.styling&&pa&&(pa.getBreakIndex?(Y=pa.getBreakIndex(L),L.attr("data-class-break",-1!==Y?Y:null)):pa.getUniqueValueInfo&&(Y=pa.getUniqueValueInfo(L),L.attr("data-unique-value",Y?Y.value:null)))}},_drawShape:function(L,Y,ca,V){L=L.geometry;var X=L.type,ja=this._map,pa=ja.extent,ta=ja.width,ea=ja.height;ja=ja.__visibleRect;var va=[],M;var S="extent"===X;if("rect"===X||
S)va={x:0,y:0,spatialReference:L.spatialReference},va.x=S?L.xmin:L.x,va.y=S?L.ymax:L.y,X=I.toScreenPoint(pa,ta,ea,va),va.x=S?L.xmax:L.x+L.width,va.y=S?L.ymin:L.y+L.height,L=I.toScreenPoint(pa,ta,ea,va),Y={x:X.x-ja.x+Y[0],y:X.y-ja.y,width:Math.abs(L.x-X.x),height:Math.abs(L.y-X.y)},0===Y.width&&(Y.width=1),0===Y.height&&(Y.height=1),V=this._drawRect(ca,V,Y);else if("polyline"===X||"polygon"===X){S=0;for(M=Y.length;S<M;S++)va=va.concat(I._toScreenPath(pa,ta,ea,L,-ja.x+Y[S],-ja.y));V=this._drawPath(ca,
V,va);this._rendererLimits&&("polyline"===X?this._clipPolyline(V,L):this._clipPolygon(V,L))}return V},_drawRect:function(L,Y,ca){return Y?Y.setShape(ca):L.createRect(ca)},_drawImage:function(L,Y,ca){return Y?Y.setShape(ca):L.createImage(ca)},_drawCircle:function(L,Y,ca){return Y?Y.setShape(ca):L.createCircle(ca)},_drawPath:function(){return xa?function(L,Y,ca,V){ca=V?ca:ca.join(" ");if(Y)return Y.setShape(ca);Y=L.createObject(V?d.Path:d.EsriPath,ca);L._overrideSize(Y.getEventSource());return Y}:function(L,
Y,ca,V){ca=V?ca:ca.join(" ");return Y?Y.setShape(ca):L.createPath(ca)}}(),_drawText:function(L,Y,ca){return Y?Y.setShape(ca):L.createText(ca)},_evalSDRenderer:function(L){var Y=this._map,ca=this.renderer,V,X=this._rndForScale;Y&&Y.loaded&&ca&&ca.getRendererInfo&&(V="zoom"===ca.rangeType?ca.getRendererInfoByZoom(Y.getZoom()):ca.getRendererInfoByScale(Y.getScale()));this._rndForScale=V&&V.renderer;L||this._rndForScale==X||this.emit("renderer-change",{renderer:this._rndForScale})},_getRenderer:function(L){var Y=
this._rndForScale||this.renderer;L&&Y&&Y.getObservationRenderer&&(Y=Y.getObservationRenderer(L));return Y},_getSymbol:function(L){var Y=this._getRenderer();return L.symbol||Y&&Y.getSymbol(L)},_getVariable:function(L,Y,ca){if(L)var V=(L=L.getVisualVariablesForType(Y,ca))&&L[0];return V},_applyOpacity:function(L,Y,ca,V){Y=Y.getOpacity(V,{opacityInfo:ca});null!=Y&&(L=new C(L),L.a=Y);return L},_symbolizeShape:function(L,Y,ca,V,X){var ja=Y.getStroke(),pa=Y.getFill(),ta=Y.type,ea=-1!==ta.indexOf("linesymbol"),
va=-1!==ta.indexOf("fillsymbol")?null:this._getVariable(ca,"sizeInfo",!1),M=this._getVariable(ca,"colorInfo",!1),S=this._getVariable(ca,"opacityInfo",!1),ma=ea?"none"!==Y.style:Y.outline&&"none"!==Y.outline.style,ua=ea?null:this._getVariable(ca,"sizeInfo","outline");va=(va=V?ua:ua||va)?ca.getSize(X,{sizeInfo:va,resolution:this._map.getResolutionInMeters(),scale:this._map.getScale()}):null;V&&(M=S=null);if((M||S)&&"picturefillsymbol"!==ta)if(ea){var wa=ja&&ja.color;M&&(wa=ca.getColor(X,{colorInfo:M})||
wa);wa&&S&&(wa=this._applyOpacity(wa,ca,S,X))}else if(pa&&pa.toCss){var Q=pa;M&&(Q=ca.getColor(X,{colorInfo:M})||Q);Q&&S&&(Q=this._applyOpacity(Q,ca,S,X))}L.setStroke(!ma||null==va&&!wa?ja:h.mixin({},ja,null!=va?{width:va}:null,wa&&{color:wa})).setFill(Q||pa);ea&&u.applyLineMarker(L,Y,wa,this._acquireSVGMarker)},_smsToPath:function(){return xa?function(L,Y,ca,V,X,ja,pa,ta,ea){switch(Y){case L.STYLE_SQUARE:return["M",X+","+pa,"L",ja+","+pa,ja+","+ta,X+","+ta,"X","E"];case L.STYLE_CROSS:return["M",
ca+","+pa,"L",ca+","+ta,"M",X+","+V,"L",ja+","+V,"E"];case L.STYLE_X:return["M",X+","+pa,"L",ja+","+ta,"M",X+","+ta,"L",ja+","+pa,"E"];case L.STYLE_DIAMOND:return["M",ca+","+pa,"L",ja+","+V,ca+","+ta,X+","+V,"X","E"];case L.STYLE_TARGET:return["M",X+","+pa,"L",ja+","+pa,ja+","+ta,X+","+ta,X+","+pa,"M",X-ea+","+V,"L",X+","+V,"M",ca+","+(pa-ea),"L",ca+","+pa,"M",ja+ea+","+V,"L",ja+","+V,"M",ca+","+(ta+ea),"L",ca+","+ta,"E"]}}:function(L,Y,ca,V,X,ja,pa,ta,ea){switch(Y){case L.STYLE_SQUARE:return["M",
X+","+pa,ja+","+pa,ja+","+ta,X+","+ta,"Z"];case L.STYLE_TRIANGLE:return["M",ca+","+pa,ja+","+ta,X+","+ta,"Z"];case L.STYLE_CROSS:return["M",ca+","+pa,ca+","+ta,"M",X+","+V,ja+","+V];case L.STYLE_X:return["M",X+","+pa,ja+","+ta,"M",X+","+ta,ja+","+pa];case L.STYLE_DIAMOND:return["M",ca+","+pa,ja+","+V,ca+","+ta,X+","+V,"Z"];case L.STYLE_TARGET:return L=["M",X+","+pa,ja+","+pa,ja+","+ta,X+","+ta,X+","+pa],ea&&L.push("M",X-ea+","+V,X+","+V,"M",ca+","+(pa-ea),ca+","+pa,"M",ja+ea+","+V,ja+","+V,"M",ca+
","+(ta+ea),ca+","+ta),L}}}(),_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(L,Y){Y=Y&&Y.shape&&Y.shape.type;var ca=L&&L.type;L=L&&L.style;"rect"===Y&&(Y="path");ca&&(L=this._typeMaps[ca]||L);this._pathStyles[L]&&(L="path");return"shieldlabelsymbol"===ca?!0:!(!Y||!L||Y===L)},_reArialFont:/\s*(^|,)\s*arial\s*(,|$)\s*/i,
_fallbackFont:"Arial",_drawPoint:function(L,Y,ca,V,X,ja,pa){var ta=ca.type,ea=this._map,va=ea.__visibleRect,M=I.toScreenPoint(ea.extent,ea.width,ea.height,Y).offset(-va.x+X[0],-va.y);va=M.x;var S=M.y;Y=[];var ma=this._getVariable(ja,"rotationInfo",!1);ma=ma?ja.getRotationAngle(pa,{rotationInfo:ma}):null;var ua=this._getVariable(ja,"sizeInfo",!1);ea=null!=pa.size?pa.size:ua&&ja.getSize(pa,{sizeInfo:ua,shape:ca.style,resolution:ea.getResolutionInMeters(),scale:ea.getScale()});ma&&Y.push(k.rotategAt(ma,
M));if(0!==ca.xoffset||0!==ca.yoffset){var wa=k.translate(ca.xoffset,-ca.yoffset);Y.push(wa)}0!==ca.angle&&Y.push(k.rotategAt(ca.angle,M));if("simplemarkersymbol"===ta){var Q=ca.style;ja=Math.round;null!=ea?wa&&(null!=wa.dx&&(wa.dx=wa.dx/ca.size*ea),null!=wa.dy&&(wa.dy=wa.dy/ca.size*ea)):ea=ca.size;switch(Q){case B.STYLE_SQUARE:case B.STYLE_TRIANGLE:case B.STYLE_CROSS:case B.STYLE_X:case B.STYLE_DIAMOND:ca=isNaN(ea)?16:ea/2;Q=this._drawPath(L,V,this._smsToPath(B,Q,va,S,ja(va-ca),ja(va+ca),ja(S-ca),
ja(S+ca)));break;case B.STYLE_TARGET:pa=ca._targetWidth/2;wa=ca._targetHeight/2;Q=this._drawPath(L,V,this._smsToPath(B,Q,va,S,ja(va-pa),ja(va+pa),ja(S-wa),ja(S+wa),ca._spikeSize));break;case B.STYLE_PATH:Q=this._drawPath(L,V,ca.path,!0);ca=Q.getBoundingBox();L=this._getScaleMatrix(ca,ea);1===L.xx&&1===L.yy||Y.push(k.scaleAt(L.xx,L.yy,M));Y.push(k.translate(-(ca.x+ca.width/2)+va,-(ca.y+ca.height/2)+S));break;default:ca=isNaN(ea)?16:ea/2,Q=this._drawCircle(L,V,{cx:va,cy:S,r:ca})}}else if("shieldlabelsymbol"===
ta)Q=ca.width,M=ca.height,V=L.createGroup(),Q=L.createImage({x:va-Q/2,y:S-M/2,width:Q,height:M,src:ca.url}),V.add(Q),null!=ca.font&&(S+=.2*ca.getHeight(),L=L.createText({type:"text",text:ca.text,x:va,y:S,align:"middle",decoration:ca.decoration,rotated:ca.rotated,kerning:ca.kerning}),L.setFont(ca.font),L.setFill(ca.color),V.add(L)),Q=V;else if("picturemarkersymbol"===ta){if(null==ea?(Q=ca.width,M=ca.height):(M=ea,Q=ca.width/ca.height*M,wa&&(null!=wa.dx&&(wa.dx=wa.dx/ca.width*Q),null!=wa.dy&&(wa.dy=
wa.dy/ca.height*M))),Q=this._drawImage(L,V,{x:va-Q/2,y:S-M/2,width:Q,height:M,src:ca.url}),da&&(L=Q.getNode()))ca=(ca=this._getVariable(ja,"opacityInfo",!1))?ja.getOpacity(pa,{opacityInfo:ca}):null,null!=ca?L.setAttribute("opacity",ca):L.setAttribute("opacity",1)}else if("textsymbol"===ta){if(ja=ca.font){Q=null!=ea;pa=ja.family&&!this._reArialFont.test(ja.family);if(Q||pa||ba)ja=new ja.constructor(ja.toJson());Q&&ja.setSize(ea);ba&&(ja.size+="px");pa&&ja.setFamily(ja.family+","+this._fallbackFont)}Q=
this._drawText(L,V,{type:"text",text:ca.text,x:va,y:S,align:ca.getSVGAlign(),decoration:ca.decoration||ja&&ja.decoration,rotated:ca.rotated,kerning:ca.kerning});ja&&Q.setFont(ja);da&&(L=Q.getNode(),va=ca.getSVGBaseline(),S=ca.getSVGBaselineShift(),L&&(L.setAttribute("dominant-baseline",va),S&&L.setAttribute("baseline-shift",S),this._applyHalo(Q,ca.haloColor,ca.haloSize)))}Q.setTransform(k.multiply(Y));Q._wrapOffsets=X;return Q},_acquireSVGMarker:function(L,Y,ca,V){L=this._getSVGMarkerId(Y,V);var X=
this._getSVGMarker(L);X||(X=u.createSVGMarker(Y,L,ca,V),this._div.getParent().defNode.appendChild(X),this._lineMarkers[L]=X);return X},_getSVGMarkerId:function(L,Y){return"marker_"+this._map.id+"_"+L.r+"_"+L.g+"_"+L.b+"_"+Y},_getSVGMarker:function(L){return this._lineMarkers[L]},_updateSVGMarkers:function(){if(da&&la){var L=this._lineMarkers,Y;for(Y in L){var ca=L[Y];ca.setAttribute("id",Y+"_temp");ca.setAttribute("id",Y)}}},_applyHalo:function(L,Y,ca){var V=Y&&ca?this._getHaloId(Y,ca):null;L.setFilter(Y&&
ca?z("webkit")||z("ff")?this._getDilateFilter(Y,ca,V):this._getOffsetFilter(Y,ca,V):null)},_getDilateFilter:function(L,Y,ca){var V=this._getSVGFilter(ca);V||(V=this._createSVGFilter({id:ca},[l.feMorphology({operator:"dilate",radius:Y,result:"dilated"}),l.feFlood({"flood-color":L.toCss(!0)}),l.feComposite({in2:"dilated",operator:"in",result:"composite"}),l.feMerge("composite","SourceGraphic")]));return V},_getOffsetFilter:function(L,Y,ca){var V=this._getSVGFilter(ca);if(!V){L=L.toCss(!0);V=this._offsetPrimitives;
var X,ja=V.length,pa=[],ta=[];for(X=0;X<ja;X++){var ea=V[X],va="offset"+ea.dir,M="composite"+ea.dir;ta.push(M);pa.push(l.feOffset({dx:ea.dx*Y,dy:ea.dy*Y,"in":"SourceAlpha",result:va}),l.feFlood({"flood-color":L}),l.feComposite({in2:va,operator:"in",result:M}))}ta.push("SourceGraphic");pa.push(l.feMerge.apply(l.feMerge,ta));V=this._createSVGFilter({id:ca},pa)}return V},_offsetPrimitives:[{dir:"L",dx:-1,dy:0},{dir:"TL",dx:-1,dy:-1},{dir:"T",dx:0,dy:-1},{dir:"TR",dx:1,dy:-1},{dir:"R",dx:1,dy:0},{dir:"BR",
dx:1,dy:1},{dir:"B",dx:0,dy:1},{dir:"BL",dx:-1,dy:1}],_getHaloId:function(L,Y){return"halo_"+this._map.id+"_"+this.id+"_"+L.r+"_"+L.g+"_"+L.b+"_"+L.a+"_"+Y},_getSVGFilter:function(L){return this._svgFilters[L]},_createSVGFilter:function(L,Y){Y=l.createFilter(L,Y);var ca=this._map,V=ca.__visibleRect;Y.x=-V.x;Y.y=-V.y;Y.width=ca.width;Y.height=ca.height;return this._svgFilters[L.id]=Y},_updateSVGFilters:function(L,Y,ca,V){var X=this._svgFilters,ja,pa,ta;for(pa in X)if(ja=X[pa]){if(ta=a.byId(pa))null!=
L&&ta.setAttribute("x",L),null!=Y&&ta.setAttribute("y",Y),null!=ca&&ta.setAttribute("width",ca),null!=V&&ta.setAttribute("height",V);null!=L&&(ja.x=L);null!=Y&&(ja.y=Y);null!=ca&&(ja.width=ca);null!=V&&(ja.height=V)}},_getScaleMatrix:function(L,Y){var ca=L.width/L.height,V=1,X=1;isNaN(Y)||(1<ca?(V=Y/L.width,X=Y/ca/L.height):(X=Y/L.height,V=Y*ca/L.width));return{xx:V,yy:X}},_symbolizePoint:function(L,Y,ca,V){var X=Y.type,ja=Y.style;if("shieldlabelsymbol"!==X&&"picturemarkersymbol"!==X){var pa=Y.getStroke();
Y=Y.getFill();ja=ja===B.STYLE_X||ja===B.STYLE_CROSS;var ta=pa&&pa.color,ea=ja?ta:Y;if(ca){var va=this._getVariable(ca,"colorInfo",!1),M=this._getVariable(ca,"opacityInfo",!1);va&&(ea=ca.getColor(V,{colorInfo:va})||ea);ea&&M&&(ea=this._applyOpacity(ea,ca,M,V));ea&&(ja?ea!==ta&&(pa=pa?h.mixin({},pa):{},pa.color=ea):ea!==Y&&(Y=ea))}"textsymbol"===X?L.setFill(Y):"simplemarkersymbol"===X&&L.setFill(Y).setStroke(pa)}},_drawMarkers:function(L,Y,ca,V){var X=L.geometry,ja=X.points,pa=L.getDojoShape()||this._div.createGroup(),
ta,ea=ja.length,va=[],M=0,S,ma=ca?ca.length:0;pa.children[0]&&this._isInvalidShape(Y,pa.children[0])&&pa.clear();for(ta=0;ta<ea;ta++){var ua=ja[ta];for(S=0;S<ma;S++)va[0]=ca[S],this._drawPoint(pa,{x:ua[0],y:ua[1],spatialReference:X.spatialReference},Y,pa.children[M++],va,V,L)}Y=pa.children.length;if(ea*ca.length<Y)for(ta=Y-1;ta>=ea*ca.length;ta--)pa.children[ta].removeShape();L._shape=pa},_symbolizeMarkers:function(L,Y,ca){var V=L.getDojoShape().children,X,ja=V.length;for(X=0;X<ja;X++)this._symbolizePoint(V[X],
Y,ca,L)},_errorHandler:function(L,Y){Y&&(L.message="Unable to draw graphic (geometry:"+(Y.geometry?Y.geometry.declaredClass:null)+", symbol:"+(Y.symbol?Y.symbol.declaredClass:null)+"): "+L.message);this.inherited(arguments)},_rendererLimits:function(){if(xa){var L=1E5;var Y=-1E5;var ca=1E5}else z("chrome")&&6>z("chrome")&&(L=8150,Y=-1E4,ca=1E4);if(L)return{clipLimit:L,rangeMin:Y,rangeMax:ca,clipBBox:[-L,-L,L,L],clipSegments:[[[-L,-L],[L,-L]],[[L,-L],[L,L]],[[L,L],[-L,L]],[[-L,L],[-L,-L]]]}}(),_clipPolyline:function(L,
Y){Y=this._getCorners(L,Y);var ca=Y.br,V=this._rendererLimits,X=V.rangeMin,ja=V.rangeMax,pa=V.clipBBox,ta=V.clipSegments;V=this._isPointWithinRange;var ea=this._isPointWithinBBox,va=this._getClipperIntersection,M=this._getPlaneIndex;if(!V(Y.tl,X,ja)||!V(ca,X,ja)){xa&&this._createSegments(L);var S=[];w.forEach(L.segments,function(ma){ma=ma.args;var ua=ma.length,wa=[],Q;for(Q=0;Q<ua;Q+=2){var ka=[ma[Q],ma[Q+1]],za=[ma[Q+2],ma[Q+3]],Ea=ea(ka,pa),Ka=ea(za,pa);if(Ea^Ka){if(Ka=va([ka,za],ta))Ea?(Q?wa.push(Ka[1]):
wa.push(ka,Ka[1]),S.push(wa),wa=[]):wa.push(Ka[1],za)}else Ea?Q?wa.push(za):wa.push(ka,za):(Ka=M(ka,pa),Ea=M(za,pa),-1!==Ka&&-1!==Ea&&Ka!==Ea&&(ka=va([ka,za],ta,!0),0<ka.length&&(ka[Ka]||(Ka=ka[Ka[0]]?Ka[0]:Ka[1]),ka[Ea]||(Ea=ka[Ea[0]]?Ea[0]:Ea[1]),za=ka[Ka],ka=ka[Ea],za&&wa.push(za),ka&&(wa.push(ka),S.push(wa),wa=[]))))}S.push(wa)});L.setShape(this._getPathStringFromPaths(S))}},_clipPolygon:function(L,Y){Y=this._getCorners(L,Y);var ca=Y.br,V=this._rendererLimits,X=V.clipLimit,ja=V.rangeMin,pa=V.rangeMax,
ta=V.clipBBox,ea=V.clipSegments;V=this._isPointWithinRange;var va=this._isPointWithinBBox,M=this._getClipperIntersection,S=this._getPlaneIndex,ma=F._pointLineDistance;V(Y.tl,ja,pa)&&V(ca,ja,pa)||(xa&&this._createSegments(L),Y=w.filter(L.segments,function(ua){return ua.args&&ua.args.length}),Y=w.map(Y,function(ua){var wa=ua.args,Q=wa.length,ka=[];ua=[];var za;for(za=0;za<Q;za+=2){var Ea=[wa[za],wa[za+1]],Ka=[wa[za+2],wa[za+3]];if(za===Q-2){ka.push(Ea);break}var Qa=va(Ea,ta),Pa=va(Ka,ta);ka.push(Ea);
if(Qa^Pa){if(Pa=M([Ea,Ka],ea))Ea=Pa[1],Ea[Qa?"inOut":"outIn"]=!0,ka.push(Ea),ua.push([Qa?"INOUT":"OUTIN",ka.length-1,Pa[0]])}else if(!Qa){Qa=S(Ea,ta);var J=S(Ka,ta);-1!==Qa&&-1!==J&&Qa!==J&&(Pa=M([Ea,Ka],ea,!0),0<Pa.length?(Pa[Qa]||(Qa=Pa[Qa[0]]?Qa[0]:Qa[1]),Pa[J]||(J=Pa[J[0]]?J[0]:J[1]),Ea=Pa[Qa],Ka=Pa[J],Ea&&(Ea.outIn=!0,ka.push(Ea),ua.push(["OUTIN",ka.length-1,Qa])),Ka&&(Ka.inOut=!0,ka.push(Ka),ua.push(["INOUT",ka.length-1,J]))):h.isArray(Qa)&&h.isArray(J)&&(Pa=Qa.concat(J),Pa.sort(),"0123"===
Pa.join("")&&(Pa=[],3===Qa[0]+Qa[1]?Pa.push([X,-X],[-X,X]):Pa.push([-X,-X],[X,X]),Qa=ma(Pa[0],[Ea,Ka]),Ea=ma(Pa[1],[Ea,Ka]),ka.push(Qa<Ea?Pa[0]:Pa[1]))))}}var U=ta[0],ia=ta[1],K=ta[2],T=ta[3];w.forEach(ka,function(Ba){Ba[0]<U&&(Ba[1]>=ia&&Ba[1]<=T?Ba[0]=U:(Ba[0]=U,Ba[1]=Ba[1]<ia?ia:T))});w.forEach(ka,function(Ba){Ba[1]<ia&&(Ba[0]>=U&&Ba[0]<=K?Ba[1]=ia:(Ba[1]=ia,Ba[0]=Ba[0]<U?U:K))});w.forEach(ka,function(Ba){Ba[0]>K&&(Ba[1]>=ia&&Ba[1]<=T?Ba[0]=K:(Ba[0]=K,Ba[1]=Ba[1]<ia?ia:T))});w.forEach(ka,function(Ba){Ba[1]>
T&&(Ba[0]>=U&&Ba[0]<=K?Ba[1]=T:(Ba[1]=T,Ba[0]=Ba[0]<U?U:K))});wa=0;Q=ua.length;if(0<Q){do{Ka=ua[wa];za=ua[(wa+1)%Q];if(Ka[2]===za[2]&&"INOUT"===Ka[0]&&"OUTIN"===za[0])if(Ea=Ka[1],za=za[1],Ea<za)for(Ea+=1;Ea<za;Ea++)ka[Ea][2]=!0;else if(Ea>za){for(Ea+=1;Ea<ka.length;Ea++)ka[Ea][2]=!0;for(Ea=0;Ea<za;Ea++)ka[Ea][2]=!0}wa=(wa+1)%Q}while(0!==wa)}Q=ka[0];wa=ka[ka.length-1];Q[2]&&(wa[2]=!0,w.some(ua,function(Ba){return 1===Ba[1]?(ka.splice(ka.length-1,0,h.clone(ka[1])),!0):!1}));ka=w.filter(ka,function(Ba){return Ba[2]?
!1:!0});for(wa=0;wa<ka.length-1;wa++)Q=ka[wa],(za=ka[wa+1])&&Q[0]===za[0]&&Q[1]===za[1]&&(za.outIn?Q.outIn=!0:za.inOut&&(Q.inOut=!0),ka.splice(wa+1,1));Q=Math.abs;ua=[];for(wa=0;wa<ka.length-1;wa++){Ka=ka[wa];Ea=Ka[0];Ka=Ka[1];Qa=Q(Ea)===X;Pa=Q(Ka)===X;za=ka[wa+1];J=za[0];za=za[1];var fa=Q(J)===X,ra=Q(za)===X;Qa&&ra?ua.push([wa+1,[Ea,za]]):Pa&&fa&&ua.push([wa+1,[J,Ka]])}for(wa=ua.length-1;0<=wa;wa--)za=ua[wa],Ea=ka[za[0]-1],Q=ka[za[0]],Ea.outIn||Ea.inOut||Q.outIn||Q.inOut||ka.splice(za[0],0,za[1]);
Q=ka[0];wa=ka[ka.length-1];Q[0]===wa[0]&&Q[1]===wa[1]||ka.push(Q);return ka}),L.setShape(this._getPathStringFromPaths(Y)))},_getCorners:function(L,Y){if(xa){L=this._map;var ca=Y.getExtent(),V=ca.spatialReference;Y=L.toScreen(new E(ca.xmin,ca.ymax,V));L=L.toScreen(new E(ca.xmax,ca.ymin,V));return{tl:Y,br:L}}L=L.getTransformedBoundingBox();return{tl:L[0],br:L[2]}},_createSegments:function(L){L.shape.path=L.vmlPath;L.segmented=!1;L._confirmSegmented();var Y=L.segments;1<Y.length&&(L.segments=w.filter(Y,
function(ca,V,X){V=X[V+1];return"M"===ca.action&&V&&"L"===V.action?(ca.args=ca.args.concat(V.args),!0):!1}))},_getPathStringFromPaths:function(L){xa?(L=w.map(L,function(Y){return"m "+w.map(Y,function(ca,V){return(1===V?"l ":"")+ca.join(",")}).join(" ")}),L.push("e")):L=w.map(L,function(Y){return"M "+w.map(Y,function(ca){return ca.join(",")}).join(" ")});return L.join(" ")},_isPointWithinBBox:function(L,Y){var ca=Y[1],V=Y[2],X=Y[3],ja=L[0];L=L[1];return ja>Y[0]&&ja<V&&L>ca&&L<X?!0:!1},_isPointWithinRange:function(L,
Y,ca){var V=L.x;L=L.y;return V<Y||L<Y||V>ca||L>ca?!1:!0},_getClipperIntersection:function(L,Y,ca){var V,X=F._getLineIntersection2,ja=Math.round,pa={length:0};for(V=0;4>V;V++){var ta=X(L,Y[V]);if(ta)if(ta[0]=ja(ta[0]),ta[1]=ja(ta[1]),ca)pa[V]=ta,pa.length++;else return[V,ta]}return ca?pa:null},_getPlaneIndex:function(L,Y){var ca=L[0];L=L[1];var V=Y[0],X=Y[1],ja=Y[2];Y=Y[3];return ca<=V?L>=X&&L<=Y?3:L<X?[0,3]:[2,3]:L<=X?ca>=V&&ca<=ja?0:ca<V?[3,0]:[1,0]:ca>=ja?L>=X&&L<=Y?1:L<X?[0,1]:[2,1]:L>=Y?ca>=V&&
ca<=ja?2:ca<V?[3,2]:[1,2]:-1},onGraphicAdd:function(){},onGraphicRemove:function(){},onGraphicNodeAdd:function(){},onGraphicNodeRemove:function(){},onGraphicDraw:function(){},onGraphicsClear:function(){},onRendererChange:function(){},onOpacityChange:function(){},onInfoTemplateChange:function(){},onSurfaceChange:function(){},onWebGLEnabledChange:function(){},setInfoTemplate:function(L){this.infoTemplate=L;this._evalSurfaceType();this.onInfoTemplateChange()},add:function(L,Y){if(L._graphicsLayer===
this)return L;L._suspended=this._suspendGraphics;Y||this.graphics.push(L);L._graphicsLayer=this;L._sourceLayer||(L._layer&&"esri.layers.GraphicsLayer"!==L._layer.declaredClass?L._sourceLayer=L._layer:"esri.layers.GraphicsLayer"!==this.declaredClass&&(L._sourceLayer=this));L._layer=this;this.hasWebGLSurface()||(this._updateExtent(L),this._draw(L));if(!Y)this.onGraphicAdd(L);return L},remove:function(L,Y,ca){if(!Y&&!ca){Y=this.graphics;var V;if(-1===(V=w.indexOf(Y,L)))return null;if(!sa||64<=sa)Y.splice(V,
1);else{var X=Y.length;if(X){for(;V<X;)Y[V]=Y[V+1],V++;Y.length--}}}this.hasWebGLSurface()||L.getDojoShape()&&this._removeShape(L,null,ca);L._shape=L._graphicsLayer=null;this.onGraphicRemove(L);return L},clear:function(L,Y){L=this.graphics;var ca,V=!xa;for(ca=L.length-1;0<=ca;ca--)this.remove(L[ca],null,V);this.graphics=[];this.hasWebGLSurface()||this._destroyAllNodes();if(!Y)this.onGraphicsClear()},_destroyAllNodes:function(){if(!xa&&this._div){var L;this._childLayer&&(L=this._childLayer.getNode())&&
L.parentNode&&L.parentNode.removeChild(L);this._bgGroup.clear();this._div.clear();this._bgGroup=this._div.createGroup();L&&this._div.getEventSource().appendChild(L);this._initOpacity()}},clearNodes:function(){if(!this.hasWebGLSurface()){var L=this.graphics,Y=L.length,ca;for(ca=0;ca<Y;ca++)this._removeShape(L[ca],!0,!0);this._destroyAllNodes()}},_graphicVisibilityChanged:function(L){},_setIEOpacity:function(L,Y){var ca=L&&L.getNode();if(ca){var V=L.strokeStyle,X=ca.stroke;V&&X&&(X.opacity=V.color.a*
Y);L=L.fillStyle;V=ca.fill;L&&V&&("tile"===V.type?g.set(ca,"opacity",Y):V.opacity=L.a*Y)}},setOpacity:function(L,Y){if(Y||this.opacity!=L){var ca=this._div;ca&&!this.hasWebGLSurface()&&(xa?(w.forEach(this.graphics,function(V){this._setIEOpacity(V._shape,L);this._setIEOpacity(V._bgShape,L)},this),ca._esriIeOpacity=L,this._bgGroup._esriIeOpacity=L):"canvas-2d"===this.surfaceType?g.set(ca.getEventSource(),"opacity",L):ca.getEventSource().setAttribute("opacity",L));this.opacity=L;if(!Y)this.onOpacityChange(L)}},
setRenderer:function(L){this.renderer=L;this._evalSDRenderer(!0);this._evalSurfaceType();this.emit("renderer-change",{renderer:this._rndForScale||L})}});x=x([m,N],{declaredClass:"esri.layers.GraphicsLayer",constructor:function(){this._processEvent=h.hitch(this,this._processEvent);this._initLayer()},_initLayer:function(){this.loaded=!0;this.onLoad(this)},_setMap:function(){var L=this.inherited("_setMap",arguments);this.enableMouseEvents();return L},_unsetMap:function(){this.disableMouseEvents();this.inherited("_unsetMap",
arguments)},_processEvent:function(L){var Y=this._map,ca=L.target,V;L.screenPoint=new v(L.pageX-Y.position.x,L.pageY-Y.position.y);for(L.mapPoint=Y.toMap(L.screenPoint);ca&&!(V=ca.e_graphic);)ca=ca.parentNode;if(V)return L.graphic=V,L},_onMouseOverHandler:function(L){if(this._processEvent(L))this.onMouseOver(L)},_onMouseMoveHandler:function(L){if(this._processEvent(L))this.onMouseMove(L)},_onMouseDragHandler:function(L){if(this._processEvent(L))this.onMouseDrag(L)},_onMouseOutHandler:function(L){if(this._processEvent(L))this.onMouseOut(L)},
_onMouseDownHandler:function(L){this._downGr=this._downPt=null;this._processEvent(L)&&(r.disconnect(this._onmousemove_connect),r.disconnect(this._onmousedrag_connect),this._onmousedrag_connect=r.connect(this._div.getEventSource(),"onmousemove",this,"_onMouseDragHandler"),this._downGr=L.graphic,this._downPt=L.screenPoint.x+","+L.screenPoint.y,this.onMouseDown(L))},_onMouseUpHandler:function(L){this._upGr=this._upPt=null;this._processEvent(L)&&(r.disconnect(this._onmousedrag_connect),r.disconnect(this._onmousemove_connect),
this._onmousemove_connect=r.connect(this._div.getEventSource(),"onmousemove",this,"_onMouseMoveHandler"),this._upGr=L.graphic,this._upPt=L.screenPoint.x+","+L.screenPoint.y,this.onMouseUp(L))},_onClickHandler:function(L){if(this._processEvent(L)){var Y=this._downGr,ca=this._upGr;Y&&ca&&Y===ca&&this._downPt===this._upPt&&(xa&&(p._ieGraphic=L.graphic),this.onClick(L))}},_onDblClickHandler:function(L){if(this._processEvent(L))this.onDblClick(L)},onMouseOver:function(){},onMouseMove:function(){},onMouseDrag:function(){},
onMouseOut:function(){},onMouseDown:function(){},onMouseUp:function(){},onClick:function(){},onDblClick:function(){},enableMouseEvents:function(){if(!this._mouseEvents){var L=r.connect,Y=this._div.getEventSource();ba||(this._onmouseover_connect=L(Y,"onmouseover",this,"_onMouseOverHandler"),this._onmousemove_connect=L(Y,"onmousemove",this,"_onMouseMoveHandler"),this._onmouseout_connect=L(Y,"onmouseout",this,"_onMouseOutHandler"),this._onmousedown_connect=L(Y,"onmousedown",this,"_onMouseDownHandler"),
this._onmouseup_connect=L(Y,"onmouseup",this,"_onMouseUpHandler"),this._onclick_connect=L(Y,"onclick",this,"_onClickHandler"),this._ondblclick_connect=L(Y,"ondblclick",this,"_onDblClickHandler"));this._mouseEvents=!0}},disableMouseEvents:function(){if(this._mouseEvents){var L=r.disconnect;L(this._onmouseover_connect);L(this._onmousemove_connect);L(this._onmousedrag_connect);L(this._onmouseout_connect);L(this._onmousedown_connect);L(this._onmouseup_connect);L(this._onclick_connect);L(this._ondblclick_connect);
this._mouseEvents=!1}}});x._GraphicsContainer=e;x._GraphicsLayer=m;z("extend-esri")&&(h.setObject("layers.GraphicsLayer",x,p),h.setObject("layers._GraphicsContainer",e,p),h.setObject("layers._GraphicsLayer",m,p));return x})},"dojox/gfx":function(){define(["dojo/_base/lang","./gfx/_base","./gfx/renderer!"],function(G,x,c){x.switchTo(c);return x})},"dojox/gfx/renderer":function(){define(["./_base","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/_base/config"],function(G,x,c,r,h){var w=
null;c.add("vml",function(q,n,f){f.innerHTML='\x3cv:shape adj\x3d"1"/\x3e';q="adj"in f.firstChild;f.innerHTML="";return q});return{load:function(q,n,f){function g(){n(["dojox/gfx/"+a],function(l){G.renderer=a;w=l;f(l)})}if(w&&"force"!=q)f(w);else{var a=h.forceGfxRenderer;q=!a&&(x.isString(h.gfxRenderer)?h.gfxRenderer:"svg,vml,canvas,silverlight").split(",");for(var d,k;!a&&q.length;)switch(q.shift()){case "svg":"SVGAngle"in r.global&&(a="svg");break;case "vml":c("vml")&&(a="vml");break;case "silverlight":try{c("ie")?
(d=new ActiveXObject("AgControl.AgControl"),d.IsVersionSupported("1.0"))&&(k=!0):navigator.plugins["Silverlight Plug-In"]&&(k=!0)}catch(l){k=!1}finally{d=null}k&&(a="silverlight");break;case "canvas":r.global.CanvasRenderingContext2D&&(a="canvas")}"canvas"===a&&!1!==h.canvasEvents&&(a="canvasWithEvents");h.isDebug&&console.log("gfx renderer \x3d "+a);"svg"==a&&"undefined"!=typeof window.svgweb?window.svgweb.addOnLoad(g):g()}}}})},"esri/layers/gfxSniff":function(){define(["dojo/has","dojox/gfx"],function(G,
x){G.add("esri-svg",function(){return-1!==x.renderer.toLowerCase().indexOf("svg")});return G})},"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(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m){var e=G([n],{declaredClass:"esri.layers.Layer",_eventMap:{error:["error"],load:["layer"],
"opacity-change":["opacity"],"update-end":["error"],"visibility-change":["visible"]},constructor:function(b,p){this._attrs={};b&&r.isString(b)?this._url=k.urlToObject(this.url=k.normalize(b)):(this.url=this._url=null,(p=p||b)&&(p.layerDefinition||p.query)&&(p=null));this.spatialReference=new l(4326);this.initialExtent=new m(-180,-90,180,90,new l(4326));this._map=this._div=null;this.normalization=!0;p&&(p.id&&(this.id=p.id),this.arcgisProps=p.arcgisProps,this.parentLayer=p.parentLayer,!1===p.visible&&
(this.visible=!1),g.isDefined(p.opacity)&&(this.opacity=p.opacity),g.isDefined(p.minScale)&&this.setMinScale(p.minScale),g.isDefined(p.maxScale)&&this.setMaxScale(p.maxScale),this.attributionDataUrl=p.attributionDataUrl||"",this.hasAttributionData=!!this.attributionDataUrl,g.isDefined(p.showAttribution)&&(this.showAttribution=p.showAttribution),this.className=p.className,this.refreshInterval=p.refreshInterval||0);this._errorHandler=r.hitch(this,this._errorHandler);this._scheduledRefresh=r.hitch(this,
this._scheduledRefresh);this.refresh=r.hitch(this,this.refresh);if(this.managedSuspension){var t=this._setMap;this._setMap=function(z){var C=t.apply(this,arguments);this._fireAttach(z);this.evaluateSuspension();if(this.suspended&&!z.loaded)var y=c.connect(z,"onLoad",this,function(){c.disconnect(y);y=null;this.evaluateSuspension()});return C}}this.registerConnectEvents()},id:null,visible:!0,opacity:1,loaded:!1,loadError:null,minScale:0,maxScale:0,visibleAtMapScale:!1,suspended:!0,attached:!1,attributionDataUrl:"",
hasAttributionData:!1,showAttribution:!0,refreshInterval:0,_errorHandler:function(b){this.loaded||(this.loadError=b);this.onError(b)},_setMap:function(b,p,t,z){this._map=b;this._lyrZEHandle=c.connect(b,"onZoomEnd",this,this._processMapScale);if(b.loaded)this.visibleAtMapScale=this._isMapAtVisibleScale();else var C=c.connect(b,"onLoad",this,function(){c.disconnect(C);C=null;this._processMapScale()})},_unsetMap:function(b,p){c.disconnect(this._lyrZEHandle);this._map=this._lyrZEHandle=null;this._resumedOnce=
void 0;this.suspended=!0;this._fireDetach(b)},_fireAttach:function(b){this.attached=!0;this.onAttach({map:b})},_fireDetach:function(b){this.attached=!1;this.onDetach({map:b})},_cleanUp:function(){this._map=this._div=null},_fireUpdateStart:function(){this.updating||(this.updating=!0,this.attr("data-updating",""),this.onUpdateStart(),this._map&&this._map._incr())},_fireUpdateEnd:function(b,p){this.updating&&(this.updating=!1,this.attr("data-updating"),this._refreshRT(),this.onUpdateEnd(b,p),this._map&&
this._map._decr())},_getToken:function(){var b=this._url,p=this.credential;return b&&b.query&&b.query.token||p&&p.token||void 0},_findCredential:function(){this.credential=f.id&&this._url&&f.id.findCredential(this._url.path)},_useSSL:function(){var b=this._url,p=/^http:/i;this.url&&(this.url=this.url.replace(p,"https:"));b&&b.path&&(b.path=b.path.replace(p,"https:"))},refresh:function(b){},show:function(){this.setVisibility(!0)},hide:function(){this.setVisibility(!1)},setMinScale:function(b){this.setScaleRange(b)},
setMaxScale:function(b){this.setScaleRange(null,b)},setScaleRange:function(b,p){var t=g.isDefined(b),z=g.isDefined(p);this.loaded||(this._hasMin=this._hasMin||t,this._hasMax=this._hasMax||z);var C=this.minScale,y=this.maxScale;this.minScale=(t?b:this.minScale)||0;this.maxScale=(z?p:this.maxScale)||0;if(C!==this.minScale||y!==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.onSuspend();if(this._map)this._map.onLayerSuspend(this)},_resume:function(){this.suspended=!1;this.attr("data-suspended");var b=void 0===this._resumedOnce,p=this.className,t=this._attrs,z=this.getNode(),
C;if(b){this._resumedOnce=!0;if(p&&z){var y=z.getAttribute("class")||"";(new RegExp("(^|\\s)"+p+"(\\s|$)","i")).test(y)||z.setAttribute("class",y+((y?" ":"")+p))}if(t&&z)for(C in t)t.hasOwnProperty(C)&&z.setAttribute(C,t[C])}this._refreshRT();this.onResume({firstOccurrence:b});if(this._map)this._map.onLayerResume(this)},_processMapScale:function(){var b=this.visibleAtMapScale;this.visibleAtMapScale=this._isMapAtVisibleScale();b!==this.visibleAtMapScale&&(this.onScaleVisibilityChange(),this.evaluateSuspension())},
isVisibleAtScale:function(b){return b?e.prototype._isMapAtVisibleScale.apply(this,arguments):!1},_isMapAtVisibleScale:function(b,p){if(!(b||this._map&&this._map.loaded))return!1;var t=this._map;b=b||t.getScale();var z=this.minScale,C=this.maxScale,y=!z,D=!C,B;p&&(B=t.width>t.height?t.width:t.height);y||(b<=z?y=!0:p&&(y=Math.abs(z-b)/z<1/B));D||(b>=C?D=!0:p&&(D=Math.abs(C-b)/C<1/B));return y&&D},getAttributionData:function(){var b=this.attributionDataUrl,p=new h(d._dfdCanceller);this.hasAttributionData&&
b?(p._pendingDfd=a({url:b,content:{f:"json"},handleAs:"json",callbackParamName:"callback"}),p._pendingDfd.then(function(t){p.callback(t)},function(t){p.errback(t)})):(b=Error("Layer does not have attribution data"),b.log=!!x.isDebug,p.errback(b));return p},getResourceInfo:function(){var b=this.resourceInfo;return r.isString(b)?w.fromJson(b):r.clone(b)},getMap:function(){return this._map},getNode:function(){return this._div},attr:function(b,p){var t=this.getNode();if("data-reference"===b&&11>q("ie"))return this;
t&&(null==p?t.removeAttribute(b):t.setAttribute(b,p));this._attrs&&(null==p?delete this._attrs[b]:this._attrs[b]=p);return this},setRefreshInterval:function(b){var p=this.refreshInterval;this.refreshInterval=b;this._toggleRT(!1);b&&this._toggleRT(!0);if(p!==b)this.onRefreshIntervalChange();return this},_toggleRT:function(b){b&&this.refreshInterval?(clearInterval(this._refreshTimer),this._refreshTimer=setInterval(this._scheduledRefresh,6E4*this.refreshInterval)):this._refreshTimer&&(clearInterval(this._refreshTimer),
this._refreshTimer=null)},_refreshRT:function(){this._toggleRT(!1);this._toggleRT(!0)},_scheduledRefresh:function(){this.onRefreshTick();!this._map||this.suspended||this.updating||this.refresh({scheduled:!0})},_refreshTS:null,_reCheckTS:/[\?&]_ts=/ig,_reReplaceTS:/([\?&]_ts=)[0-9]+/ig,addTimestampToURL:function(b){var p=this._refreshTS;p&&(b=this._reCheckTS.test(b)?b.replace(this._reReplaceTS,"$$$1"+p):b+((-1===b.indexOf("?")?"?":"\x26")+"_ts\x3d"+p));return b},setNormalization:function(b){this.normalization=
b},setVisibility:function(b){this.visible!==b&&(this.visible=b,this.onVisibilityChange(this.visible),this.evaluateSuspension());this.attr("data-hidden",b?null:"")},onLoad:function(){},onAttach:function(b){},onDetach:function(b){},onVisibilityChange:function(){},onScaleRangeChange:function(){},onScaleVisibilityChange:function(){},onSuspend:function(){},onResume:function(){},onUpdate:function(){},onUpdateStart:function(){},onUpdateEnd:function(){},onRefreshIntervalChange:function(){},onRefreshTick:function(){},
onError:function(){}});q("extend-esri")&&r.setObject("layers.Layer",e,f);return e})},"esri/request":function(){define("require dojo/_base/array dojo/_base/config dojo/_base/Deferred dojo/_base/lang dojo/_base/url dojo/_base/xhr dojo/request/xhr ./core/request/script dojo/request/iframe dojo/dom-construct dojo/io-query ./kernel ./config ./sniff ./lang ./urlUtils ./deferredUtils ./support/requestUtils".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t){function z(W){W=new w(W);return(W.host+
(W.port?":"+W.port:"")).toLowerCase()}function C(W){return this._xhr?this._xhr.getResponseHeader(W):null}function y(W,la){var ha=d.objectToQuery(W.content);ha&&(W.url+=(-1===W.url.indexOf("?")?"?":"\x26")+ha);if(2E3<W.url.length){if("data:"!==W.url.toLowerCase().slice(0,5))return W=new r,W.reject(h.mixin(Error(),{message:"When using responseType 'image', URL length cannot exceed 2000 characters."})),W;if(3E6<W.url.length)return W=new r,W.reject(h.mixin(Error(),{message:"When using responseType 'image', data URL length cannot exceed 3000000 characters."})),
W}var sa=new Image;la.allowImageDataAccess&&(sa.crossOrigin=W.withCredentials?"use-credentials":"anonymous");var Ca=!1,oa=new r(function(qa){Ca=!0;sa.onload=sa.onerror=sa.onabort=null;sa.src=""});la=function(qa){sa.onload=sa.onerror=sa.onabort=null;Ca||oa.reject(Error("Unable to load the resource"))};sa.onload=function(){sa.onload=sa.onerror=sa.onabort=null;Ca||oa.resolve(this)};sa.onerror=la;sa.onabort=la;sa.alt="";sa.src=W.url;return oa}function D(W,la,ha,sa){var Ca=!1,oa=!1,qa=!1,L;if(e.isDefined(la))if(h.isObject(la)){Ca=
!!la.useProxy;oa=!!la.usePost;qa=!!la.returnProgress;var Y=la.crossOrigin}else Ca=!!la;W=h.mixin({},W);delete W._credential;W._ssl&&(W.url=W.url.replace(/^http:/i,"https:"));10>m("ie")&&!na.test(W.url)&&(W.url=encodeURI(W.url));var ca=W.content,V=W.url,X=ha&&W.form,ja=N;Y=e.isDefined(Y)?Y:ja.useCors;W.load=function(Oa){if(Oa){if(Oa.error){var Xa=h.mixin(Error(),Oa.error);Xa.log=!!c.isDebug}else"error"===Oa.status&&(Xa=h.mixin(Error(),Oa),Xa.log=!!c.isDebug);Xa&&(W.failOk=!Xa.log,e.isDefined(Xa.httpCode)||
(Xa.httpCode=Xa.code))}return Xa||Oa};W.error=function(Oa,Xa){Xa&&Xa.xhr&&Xa.xhr.abort();Oa instanceof Error||(Oa=h.mixin(Error(),Oa));Oa.log=!!c.isDebug;W.failOk=!Oa.log;ja.errorHandler(Oa,Xa);return Oa};W._token&&(W.content=W.content||{},W.content.token=W._token);var pa=0;if(ca&&V){var ta=d.objectToQuery(ca);pa=ta.length+V.length+1;m("esri-url-encodes-apostrophe")&&(pa=ta.replace(/'/g,"%27").length+V.length+1)}W.timeout=e.isDefined(W.timeout)?W.timeout:ja.timeout;W.handleAs=W.handleAs||"json";try{var ea=
Y&&b.canUseXhr(W.url)&&!/https?:\/\/[^\/]+\/[^\/]+\/admin\/?(\/.*)?$/i.test(W.url),va=b.hasSameOrigin(W.url,window.location.href)||ea,M=oa||ha||pa>ja.postLength?!0:!1,S=va||-1===W.handleAs.indexOf("json")||!W.callbackParamName||ha?!1:!0,ma=b.getProxyRule(W.url)||ja.alwaysUseProxy||Ca||!("image"===W.handleAs&&!la.allowImageDataAccess||S&&!M||va)?!0:!1;ha&&!m("esri-file-upload")&&!ma&&ea&&(ma=!0);if(ma){var ua=b.getProxyUrl(V,Y);var wa=ua.path;ua._xo&&(ea=!0);!M&&wa.length+1+pa>ja.postLength&&(M=!0);
W.url=wa+"?"+V;if(M)W.content=h.mixin(ua.query||{},ca);else{var Q=d.objectToQuery(h.mixin(ua.query||{},ca));Q&&(W.url+="?"+Q);W.content=null}}if(!S||M||ma){var ka=W.headers;!ea||ka&&ka.hasOwnProperty("X-Requested-With")||(ka=W.headers=ka||{},ka["X-Requested-With"]=null);if(ha){var za=W.callbackParamName||"callback.html",Ea=W.callbackElementName||"textarea",Ka,Qa,Pa=X.elements?X.elements.length:0;if(ca=W.content)for(Ka in ca.token&&b.isSecureProxyService(V)&&(V+=(-1===V.indexOf("?")?"?":"\x26")+"token\x3d"+
ca.token,W.url=ma?wa+"?"+V:V,delete ca.token),ca){var J=ca[Ka];if(e.isDefined(J)){var U=null;for(Qa=0;Qa<Pa;Qa++){var ia=X.elements[Qa];if(ia.name===Ka){U=ia;break}}U?U.value=J:sa?X.append(Ka,J):X.appendChild(a.create("input",{type:"hidden",name:Ka,value:J}))}}if(m("esri-file-upload")){x.forEach(X.elements,function(Oa){Oa.name===za&&X.removeChild(Oa)});var K=sa?X:new FormData(X);if(11<=m("safari")&&"entries"in K&&"delete"in K){sa=[];for(var T=K.entries(),fa=T.next();!fa.done;){var ra=fa.value;ra[1]instanceof
File&&""===ra[1].name&&sa.push(ra[0]);fa=T.next()}sa.forEach(function(Oa){K.delete(Oa)})}W.contentType=!1;W.postData=K;delete W.form}else{X.enctype="multipart/form-data";9>m("ie")&&(X.encoding="multipart/form-data");X.method="post";x.some(X.elements,function(Oa){return Oa.name===za})||X.appendChild(a.create("input",{type:"hidden",name:za,value:Ea}));if(-1!==V.toLowerCase().indexOf("addattachment")||-1!==V.toLowerCase().indexOf("updateattachment"))V+=(-1===V.indexOf("?")?"?":"\x26")+za+"\x3d"+Ea,W.url=
ma?wa+"?"+V:V;delete W.content}}if(ea&&!W.hasOwnProperty("withCredentials")&&"with-credentials"===N.useCors){wa=ma?wa:V;var Ba=b.canUseXhr(wa,!0),Ma=-1<Ba?N.corsEnabledServers[Ba]:null;if(Ma&&Ma.hasOwnProperty("withCredentials"))Ma.withCredentials&&(W.withCredentials=!0);else if(k.id){var Ha=k.id.findServerInfo(wa);Ha&&Ha.webTierAuth&&(W.withCredentials=!0)}}W=I?I(W):W;var Ua=function(){if("image"===W.handleAs)return y(W,la);if(M){if(ha&&!m("esri-file-upload")){L=new r(function(){Oa.cancel()});var Oa=
g.post(W.url,W).then(function($a){L.resolve($a)}).otherwise(function($a){L.reject($a)});L.addCallback(function($a){return W.load($a)});L.addErrback(function($a){return W.error($a)});return L}!ma&&m("safari")&&(W.url+=(-1===W.url.indexOf("?")?"?":"\x26")+"_ts\x3d"+(new Date).getTime()+ba++);if(qa){W.uploadProgress=!0;W.data=W.postData;W.query=W.content;L=new r(function(){Xa.cancel()});var Xa=n.post(W.url,W).then(function($a){L.resolve($a)},function($a){L.reject($a)},function($a){L.progress({transferType:$a.transferType,
loaded:$a.loaded,total:$a.total})});L.addCallback(function($a){return W.load($a)});L.addErrback(function($a){return W.error($a)});return L}return q.post(W)}return q.get(W)};return W.withCredentials&&t.isNoCorsRequestRequired(V)?L=t.sendNoCorsRequest(V,ca).addBoth(function(){var Oa=Ua();L.ioArgs=Oa.ioArgs;return Oa}):Ua()}W=I?I(W):W;W.jsonp=W.callbackParamName;W.query=W.content;L=new r(function(){Ta.cancel()});var Ta=f.get(W.url,W).then(function(Oa){L.resolve(Oa)}).otherwise(function(Oa){L.reject(Oa)});
L.addCallback(function(Oa){return W.load(Oa)});L.addErrback(function(Oa){return W.error(Oa)});return L}catch(Oa){return L=new r,L.errback(W.error(Oa)),L}}function B(W){var la=N.corsStatus,ha=b.canUseXhr(W,!0);-1<ha&&N.corsEnabledServers.splice(ha,1);var sa=new r;sa.reject({log:!!c.isDebug});la[z(W)]=sa.promise;return ha}function u(W){var la=N.corsStatus;try{var ha=z(W);if(N.corsDetection&&N.useCors&&m("esri-cors")&&W&&-1!==W.toLowerCase().indexOf("/rest/services")&&!b.hasSameOrigin(W,window.location.href)&&
!b.canUseXhr(W)){if(la[ha]&&!la[ha].isCanceled())return la[ha];var sa=new r(p._dfdCanceller);la[ha]=sa.promise;var Ca=q.get({url:W.substring(0,W.toLowerCase().indexOf("/rest/")+6)+"info",content:{f:"json"},failOk:!0,handleAs:"json",headers:{"X-Requested-With":null},timeout:1E3*N.corsDetectionTimeout});sa._pendingDfd=Ca;Ca.then(function(oa){oa?(b.canUseXhr(W)||N.corsEnabledServers.push(ha),sa.resolve()):sa.reject()},function(oa){sa.reject(oa)});return sa.promise}}catch(oa){console.log("esri._detectCors: an unknown error occurred while detecting CORS support")}return xa}
function E(W){I=W}function v(W,la,ha,sa){function Ca(ea){ea._pendingDfd=D(ha,sa,X,V);if(!ea._pendingDfd){ea.ioArgs=ea._pendingDfd&&ea._pendingDfd.ioArgs;var va=Error("Deferred object is missing");va.log=!!c.isDebug;ea.errback(va);ea._pendingDfd=null;return ea}ea._pendingDfd.addCallback(function(M){if(!M)return M;var S=ea._pendingDfd&&ea._pendingDfd.ioArgs&&ea._pendingDfd.ioArgs.xhr;if(!S)return M;if(S=S.getResponseHeader("Content-Type"))if(S=S.toLowerCase(),-1===S.indexOf("text/plain")&&-1===S.indexOf("application/json"))return M;
if(M instanceof ArrayBuffer&&750>=M.byteLength)S=new Blob([M]);else if(M instanceof Blob&&750>=M.size)S=M;else return M;var ma=new r,ua=new FileReader;ua.readAsText(S);ua.onloadend=function(){if(!ua.error)try{var wa=JSON.parse(ua.result);if(wa.error)var Q=wa.error}catch(ka){}Q?(Q=h.mixin(Error(),Q),Q.log=!!c.isDebug,null==Q.httpCode&&(Q.httpCode=Q.code),ma.reject(Q)):ma.resolve(M)};return ma.promise}).addCallback(function(M){ea.ioArgs=ea._pendingDfd&&ea._pendingDfd.ioArgs;sa.returnFullResponse&&(M=
{data:M,_xhr:ea.ioArgs&&ea.ioArgs.xhr,getHeader:C});ea.callback(M);ea._pendingDfd=null}).addErrback(function(M){if(M){var S=M.code;var ma=M.subcode;var ua=(ua=M.messageCode)&&ua.toUpperCase()}if(M&&403==S&&(4==ma||M.message&&-1<M.message.toLowerCase().indexOf("ssl")&&-1===M.message.toLowerCase().indexOf("permission"))){if(!ha._ssl){ha._ssl=ha._sslFromServer=!0;v(ea,!0,ha,sa);return}}else if(M&&415==M.status){if(B(ha.url),!ha._err415){ha._err415=1;v(ea,!0,ha,sa);return}}else if(k.id&&-1!==x.indexOf(k.id._errorCodes,
S)&&!k.id._isPublic(ha.url)&&!qa&&(403!=S||-1===x.indexOf(da,ua)&&(!e.isDefined(ma)||2==ma&&ha._token))){ea._pendingDfd=k.id.getCredential(ha.url,{token:ha._token,error:M});ea._pendingDfd.addCallback(function(wa){ha._token=wa.token;ha._credential=wa;ha._ssl=ha._sslFromServer||wa.ssl;v(ea,!0,ha,sa)}).addErrback(function(wa){ea.errback(wa);ea._pendingDfd=null});return}ea.ioArgs=ea._pendingDfd&&ea._pendingDfd.ioArgs;ea.isFulfilled()||ea.errback(M);ea._pendingDfd=null}).then(null,null,function(M){ea.progress(M)})}
var oa=ha.form,qa=sa.disableIdentityLookup,L=sa._preLookup,Y=!1;if(m("esri-workers")&&!1!==N.useWorkers)if(!0===sa.useWorkers||!0===N.useWorkers)Y=!0;else if(sa.workerOptions){var ca=sa.workerOptions;if(ca.callback||ca.worker&&ca.worker.worker instanceof Worker)Y=!0}var V=oa&&m("esri-file-upload")&&oa instanceof FormData,X=oa&&(oa.elements?x.some(oa.elements,function(ea){return"file"===ea.type}):V),ja=-1!==ha.url.toLowerCase().indexOf("token\x3d")||ha.content&&ha.content.token||X&&x.some(oa.elements,
function(ea){return"token"===ea.name})?1:0;if(!la){W.addCallback(function(ea){if(ea&&(/\/sharing\/rest\/accounts\/self/i.test(ha.url)||/\/sharing\/rest\/portals\/self/i.test(ha.url))){if(!ja&&!ha._token&&ea.user&&ea.user.username){N.webTierAuthServers.push(z(ha.url));var va=N.corsEnabledServers,M=b.canUseXhr(ha.url,!0),S={host:z(ha.url),withCredentials:!0};if(-1===M)va.push(S);else{var ma=va[M];ma instanceof RegExp?(S.host=ma,va.splice(M,1,S)):"object"===typeof ma?ma.withCredentials=!0:va.splice(M,
1,S)}}Array.isArray(ea.authorizedCrossOriginNoCorsDomains)&&t.registerNoCorsDomains(ea.authorizedCrossOriginNoCorsDomains)}if(ea=ha._credential)if(va=(va=k.id.findServerInfo(ea.server))&&va.owningSystemUrl)va=va.replace(/\/?$/,"/sharing"),(ea=k.id.findCredential(va,ea.userId))&&-1===k.id._getIdenticalSvcIdx(va,ea)&&ea.resources.splice(0,0,va)});W.addBoth(function(ea){delete ha._credential;!ea||m("ie")&&ea.nodeType||(ea._ssl=ha._ssl)});var pa=ha.load,ta=ha.error;pa&&W.addCallback(function(ea){var va=
W._pendingDfd;va=va&&va.ioArgs;return pa.call(va&&va.args,ea,va)});ta&&W.addErrback(function(ea){var va=W._pendingDfd;va=va&&va.ioArgs;return ta.call(va&&va.args,ea,va)})}!k.id||ja||ha._token||k.id._isPublic(ha.url)||qa&&!L||!(la=k.id.findCredential(ha.url))||(ha._token=la.token,ha._ssl=la.ssl);Y?sa.workerOptions&&sa.workerOptions.worker?(F||(F=q),q=sa.workerOptions.worker,Ca(W)):G(["./workers/RequestClient"],function(ea){F||(F=q);if(sa.workerOptions){var va=sa.workerOptions;q=ea.getClient(va.callback,
va.cbFunction)}else q=ea.getClient();Ca(W)}):(F&&(q=F,F=null),Ca(W));return W}function A(W,la){W.url=b.fixUrl(W.url);la=la||{};var ha=new r(p._dfdCanceller),sa=u(W.url);ha._pendingDfd=sa;sa.always(function(Ca){Ca&&"cancel"===Ca.dojoType?ha.reject(Ca):v(ha,!1,W,la)});return ha}var F=null,I,N=l.defaults.io,da=["COM_0056","COM_0057","SB_0008"],ba=0,na=/%[0-9A-F]{2}/i,xa=function(){var W=new r;W.resolve();return W.promise}();A._makeRequest=D;A._processRequest=v;A._disableCors=B;A._detectCors=u;A.setRequestPreCallback=
E;m("extend-esri")&&(k.request=A,k._makeRequest=D,k._processRequest=v,k._disableCors=B,k._detectCors=u,k.setRequestPreCallback=E);return A})},"esri/core/request/script":function(){define("require exports dojo/Deferred dojo/request/script dojo/text!./iframe.html ../sniff".split(" "),function(G,x,c,r,h,w){function q(){var b=document.createElement("iframe");b.name="esri_core_jsonp_iframe";b.style.display="none";b.setAttribute("sandbox","allow-scripts");if(!w("ff")&&"srcdoc"in b){var p=G.toUrl("dojo/dojo.js"),
t=h.replace("../../../dojo/dojo.js",p);p=p.slice(0,-7);t=t.replace("../../../dojo/",p);b.srcdoc=t}else t=G.toUrl("./iframe.html"),"http:"===window.location.protocol&&0===t.indexOf("https:")&&(t=t.replace("https:","http:")),b.src=t;document.body.appendChild(b);return b}function n(){var b=new MessageChannel;b.port1.addEventListener("message",f);b.port1.start();return b}function f(b){var p=b.data;if("ready"===p){p=0;for(var t=m;p<t.length;p++)b=t[p],a(b,k);m=null}else if(b=e[p.id])delete e[p.id],p.isError?
b.dfd.reject(Error(p.message)):b.dfd.resolve(p.response)}function g(b,p){b.addEventListener("load",function(){b.contentWindow.postMessage("init","*",[p.port2])})}function a(b,p){e[b.message.id]=b;p.port1.postMessage(b.message)}Object.defineProperty(x,"__esModule",{value:!0});var d,k,l=0,m=[],e={};x.get=function(b,p){if(!w("esri-script-sandbox"))return r.get(b,p);var t=null;p&&(t={jsonp:p.jsonp,preventCache:p.preventCache,query:p.query,timeout:p.timeout});p=new c(function(){if(m){var C=m.indexOf(z);
-1<C&&m.splice(C,1)}else z.message.id in e&&delete e[z.message.id]});var z={dfd:p,message:{id:"id"+(++l+Math.random()),url:b,options:t}};d||(d=q(),k=n(),g(d,k));m?m.push(z):a(z,k);return p.promise}})},"esri/core/sniff":function(){define(["../sniff"],function(G){return G})},"dojo/request/iframe":function(){define("module require ./watch ./util ./handlers ../_base/lang ../io-query ../query ../has ../dom ../dom-construct ../_base/window ../NodeList-dom ../NodeList-manipulate".split(" "),function(G,x,
c,r,h,w,q,n,f,g,a,d){function k(C){return!this.isFulfilled()}function l(C){return!!this._finished}function m(C,y){if(!y)try{var D=C.options,B=b.doc(b._frame),u=D.handleAs;if("html"!==u){if("xml"===u)if("html"===B.documentElement.tagName.toLowerCase()){n("a",B.documentElement).orphan();var E=B.documentElement.innerText||B.documentElement.textContent;E=E.replace(/>\s+</g,"\x3e\x3c");C.text=w.trim(E)}else C.data=B;else C.text=B.getElementsByTagName("textarea")[0].value;h(C)}else C.data=B}catch(v){y=
v}y?this.reject(y):this._finished?this.resolve(C):this.reject(Error("Invalid dojo/request/iframe request state"))}function e(C){this._callNext()}function b(C,y,D){var B=r.parseArgs(C,r.deepCreate(z,y),!0);C=B.url;y=B.options;if("GET"!==y.method&&"POST"!==y.method)throw Error(y.method+" not supported by dojo/request/iframe");b._frame||(b._frame=b.create(b._iframeName,t+"();"));C=r.deferred(B,null,k,l,m,e);C._callNext=function(){this._calledNext||(this._calledNext=!0,b._currentDfd=null,b._fireNextRequest())};
C._legacy=D;b._dfdQueue.push(C);b._fireNextRequest();c(C);return D?C:C.promise}var p=G.id.replace(/[\/\.\-]/g,"_"),t=p+"_onload";d.global[t]||(d.global[t]=function(){var C=b._currentDfd;if(C){var y=g.byId(C.response.options.form)||C._tmpForm;if(y){for(var D=C._contentToClean,B=0;B<D.length;B++)for(var u=D[B],E=0;E<y.childNodes.length;E++){var v=y.childNodes[E];if(v.name===u){a.destroy(v);break}}C._originalAction&&y.setAttribute("action",C._originalAction);C._originalMethod&&(y.setAttribute("method",
C._originalMethod),y.method=C._originalMethod);C._originalTarget&&(y.setAttribute("target",C._originalTarget),y.target=C._originalTarget)}C._tmpForm&&(a.destroy(C._tmpForm),delete C._tmpForm);C._finished=!0}else b._fireNextRequest()});var z={method:"POST"};b.create=function(C,y,D){if(d.global[C])return d.global[C];if(d.global.frames[C])return d.global.frames[C];D||(f("config-useXDomain")&&!f("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=f("config-dojoBlankHtmlUrl")||x.toUrl("dojo/resources/blank.html"));y=a.place('\x3ciframe id\x3d"'+C+'" name\x3d"'+C+'" src\x3d"'+D+'" onload\x3d"'+y+'" style\x3d"position: absolute; left: 1px; top: 1px; height: 1px; width: 1px; visibility: hidden"\x3e',d.body());return d.global[C]=y};b.doc=function(C){if(C.contentDocument)return C.contentDocument;var y=C.name;if(y){var D=d.doc.getElementsByTagName("iframe");if(C.document&&D[y].contentWindow&&D[y].contentWindow.document)return D[y].contentWindow.document;
if(d.doc.frames[y]&&d.doc.frames[y].document)return d.doc.frames[y].document}return null};b.setSrc=function(C,y,D){C=d.global.frames[C.name];C.contentWindow&&(C=C.contentWindow);try{D?C.location.replace(y):C.location=y}catch(B){console.log("dojo/request/iframe.setSrc: ",B)}};b._iframeName=p+"_IoIframe";b._notifyStart=function(){};b._dfdQueue=[];b._currentDfd=null;b._fireNextRequest=function(){try{if(!b._currentDfd&&b._dfdQueue.length){do var C=b._currentDfd=b._dfdQueue.shift();while(C&&(C.canceled||
C.isCanceled&&C.isCanceled())&&b._dfdQueue.length);if(!C||C.canceled||C.isCanceled&&C.isCanceled())b._currentDfd=null;else{var y=C.response,D=y.options,B=C._contentToClean=[],u=g.byId(D.form),E=r.notify,v=D.data||null;if(!C._legacy&&"POST"===D.method&&!u)u=C._tmpForm=a.create("form",{name:p+"_form",style:{position:"absolute",top:"-1000px",left:"-1000px"}},d.body());else if("GET"===D.method&&u&&-1<y.url.indexOf("?")){var A=y.url.slice(y.url.indexOf("?")+1);v=w.mixin(q.queryToObject(A),v)}if(u){if(!C._legacy){var F=
u;do F=F.parentNode;while(F&&F!==d.doc.documentElement);F||(u.style.position="absolute",u.style.left="-1000px",u.style.top="-1000px",d.body().appendChild(u));u.name||(u.name=p+"_form")}if(v){F=function(W,la){a.create("input",{type:"hidden",name:W,value:la},u);B.push(W)};for(var I in v){var N=v[I];if(w.isArray(N)&&1<N.length)for(A=0;A<N.length;A++)F(I,N[A]);else{var da=n("input[name\x3d'"+I+"']",u);-1==da.indexOf()?F(I,N):da.val(N)}}}var ba=u.getAttributeNode("action"),na=u.getAttributeNode("method"),
xa=u.getAttributeNode("target");y.url&&(C._originalAction=ba?ba.value:null,ba?ba.value=y.url:u.setAttribute("action",y.url));C._legacy?na&&na.value||(na?na.value=D.method:u.setAttribute("method",D.method)):(C._originalMethod=na?na.value:null,na?na.value=D.method:u.setAttribute("method",D.method));C._originalTarget=xa?xa.value:null;xa?xa.value=b._iframeName:u.setAttribute("target",b._iframeName);u.target=b._iframeName;E&&E.emit("send",y,C.promise.cancel);b._notifyStart(y);u.submit()}else D="",y.options.data&&
(D=y.options.data,"string"!==typeof D&&(D=q.objectToQuery(D))),F=y.url+(-1<y.url.indexOf("?")?"\x26":"?")+D,E&&E.emit("send",y,C.promise.cancel),b._notifyStart(y),b.setSrc(b._frame,F,!0)}}}catch(W){C.reject(W)}};r.addCommonMethods(b,["GET","POST"]);return b})},"dojo/NodeList-manipulate":function(){define("./query ./_base/lang ./_base/array ./dom-construct ./dom-attr ./NodeList-dom".split(" "),function(G,x,c,r,h){function w(f){for(;f.childNodes[0]&&1==f.childNodes[0].nodeType;)f=f.childNodes[0];return f}
function q(f,g){"string"==typeof f?(f=r.toDom(f,g&&g.ownerDocument),11==f.nodeType&&(f=f.childNodes[0])):1==f.nodeType&&f.parentNode&&(f=f.cloneNode(!1));return f}var n=G.NodeList;x.extend(n,{_placeMultiple:function(f,g){f="string"==typeof f||f.nodeType?G(f):f;for(var a=[],d=0;d<f.length;d++)for(var k=f[d],l=this.length,m=l-1,e;e=this[m];m--)0<d&&(e=this._cloneNode(e),a.unshift(e)),m==l-1?r.place(e,k,g):k.parentNode.insertBefore(e,k),k=e;a.length&&(a.unshift(0),a.unshift(this.length-1),Array.prototype.splice.apply(this,
a));return this},innerHTML:function(f){return arguments.length?this.addContent(f,"only"):this[0].innerHTML},text:function(f){if(arguments.length){for(var g=0,a;a=this[g];g++)1==a.nodeType&&h.set(a,"textContent",f);return this}var d="";for(g=0;a=this[g];g++)d+=h.get(a,"textContent");return d},val:function(f){if(arguments.length){for(var g=x.isArray(f),a=0,d;d=this[a];a++){var k=d.nodeName.toUpperCase(),l=d.type,m=g?f[a]:f;if("SELECT"==k)for(k=d.options,l=0;l<k.length;l++){var e=k[l];e.selected=d.multiple?
-1!=c.indexOf(f,e.value):e.value==m}else"checkbox"==l||"radio"==l?d.checked=d.value==m:d.value=m}return this}if((d=this[0])&&1==d.nodeType){f=d.value||"";if("SELECT"==d.nodeName.toUpperCase()&&d.multiple){f=[];k=d.options;for(l=0;l<k.length;l++)e=k[l],e.selected&&f.push(e.value);f.length||(f=null)}return f}},append:function(f){return this.addContent(f,"last")},appendTo:function(f){return this._placeMultiple(f,"last")},prepend:function(f){return this.addContent(f,"first")},prependTo:function(f){return this._placeMultiple(f,
"first")},after:function(f){return this.addContent(f,"after")},insertAfter:function(f){return this._placeMultiple(f,"after")},before:function(f){return this.addContent(f,"before")},insertBefore:function(f){return this._placeMultiple(f,"before")},remove:n.prototype.orphan,wrap:function(f){if(this[0]){f=q(f,this[0]);for(var g=0,a;a=this[g];g++){var d=this._cloneNode(f);a.parentNode&&a.parentNode.replaceChild(d,a);w(d).appendChild(a)}}return this},wrapAll:function(f){if(this[0]){f=q(f,this[0]);this[0].parentNode.replaceChild(f,
this[0]);f=w(f);for(var g=0,a;a=this[g];g++)f.appendChild(a)}return this},wrapInner:function(f){if(this[0]){f=q(f,this[0]);for(var g=0;g<this.length;g++){var a=this._cloneNode(f);this._wrap(x._toArray(this[g].childNodes),null,this._NodeListCtor).wrapAll(a)}}return this},replaceWith:function(f){f=this._normalize(f,this[0]);for(var g=0,a;a=this[g];g++)this._place(f,a,"before",0<g),a.parentNode.removeChild(a);return this},replaceAll:function(f){f=G(f);for(var g=this._normalize(this,this[0]),a=0,d;d=
f[a];a++)this._place(g,d,"before",0<a),d.parentNode.removeChild(d);return this},clone:function(){for(var f=[],g=0;g<this.length;g++)f.push(this._cloneNode(this[g]));return this._wrap(f,this,this._NodeListCtor)}});n.prototype.html||(n.prototype.html=n.prototype.innerHTML);return n})},"esri/support/requestUtils":function(){define(["dojo/_base/Deferred","dojo/_base/url","../config","../urlUtils"],function(G,x,c,r){function h(q){q=new x(q);return q.scheme+"://"+q.authority}var w=c.defaults.io;return{registerNoCorsDomains:function(q){w.crossOriginNoCorsDomains||
(w.crossOriginNoCorsDomains={});for(var n=w.crossOriginNoCorsDomains,f=0;f<q.length;f++){var g=q[f];g=g.toLowerCase();/^https?:\/\//.test(g)?n[h(g)]=0:(n[h("http://"+g)]=0,n[h("https://"+g)]=0)}},isNoCorsRequestRequired:function(q){var n=w.crossOriginNoCorsDomains;return n?(q=h(q),q=q.toLowerCase(),!r.hasSameOrigin(q,window.location.origin)&&n[q]<Date.now()-36E5):!1},sendNoCorsRequest:function(q,n){var f=new G,g=w.crossOriginNoCorsDomains;g&&(g[h(q).toLowerCase()]=Date.now());g=r.urlToObject(q);q=
g.path;if(g.query&&"json"===g.query.f||n&&"json"===n.f)q+="?f\x3djson";fetch(q,{mode:"no-cors",credentials:"include"}).then(f.resolve,f.resolve);return f}}})},"esri/layers/support/webglUtils":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/has","../../kernel"],function(G,x,c,r){var h=!1,w=c("esri-webgl-max-contexts");w=null!=w?w:c("esri-mobile")?8:16;var q={isWebGLSupported:function(){return!!h},isWebGLEnabled:function(){return this.isWebGLSupported()&&!!c("esri-featurelayer-webgl")},
createCanvas:function(n,f){var g=document.createElement("canvas");g.style.width=n+"px";g.style.height=f+"px";return g},createWebGLContext:function(n){var f;x.some(["webgl","experimental-webgl","webkit-3d","moz-webgl"],function(g){try{f=n.getContext?n.getContext(g):null}catch(a){f=null}return!!f});return f},_contextOwners:[],isContextAvailable:function(){return-1===w||0<w&&q._contextOwners.length<w},acquireContext:function(n){return-1!==x.indexOf(q._contextOwners,n)?!0:q.isContextAvailable()?(q._contextOwners.push(n),
!0):!1},releaseContext:function(n){n=x.indexOf(q._contextOwners,n);-1!==n&&q._contextOwners.splice(n,1)}};h=q.createWebGLContext(q.createCanvas());c("extend-esri")&&G.setObject("layers.support.webglUtils",q,r);return q})},"esri/layers/support/WebGLSurface":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/array","dojo/has","../../kernel"],function(G,x,c,r,h){G=G(null,{map:null,node:null,renderers:null,constructor:function(w){x.mixin(this,w);this.renderers=[]},destroy:function(){c.forEach(this.renderers,
function(w){w.destroy()});this.renderers=null},getEventSource:function(){return this.node},createRenderer:function(w,q,n,f){w=new w({surface:this,width:q,height:n,map:this.map,layer:f});this.renderers.push(w);return w},destroyRenderer:function(w){var q=c.indexOf(this.renderers,w);-1<q&&(w.destroy(),this.renderers.splice(q,1))},_createNode:function(){var w=document.createElement("div");w.style.pointerEvents="auto";w.style.position="absolute";return w}});r("extend-esri")&&x.setObject("layers.support.WebGLSurface",
G,h);return G})},"esri/domUtils":function(){define(["./kernel","dojo/_base/connect","dojo/_base/lang","dojo/dom-style","dojo/has"],function(G,x,c,r,h){var w={show:function(q){if(q=w.getNode(q))q.style.display="block"},getNode:function(q){return q&&q.domNode||q},hide:function(q){if(q=w.getNode(q))q.style.display="none"},toggle:function(q){if(q=w.getNode(q))q.style.display="none"===q.style.display?"block":"none"},documentBox:8>=h("ie")?{w:document.documentElement.clientWidth,h:document.documentElement.clientHeight}:
{w:window.innerWidth,h:window.innerHeight},setScrollable:function(q){if(q=this.getNode(q)){var n=0,f=0,g=0,a=0,d=0,k=0;return[x.connect(q,"ontouchstart",function(l){n=l.touches[0].screenX;f=l.touches[0].screenY;g=q.scrollWidth;a=q.scrollHeight;d=q.clientWidth;k=q.clientHeight}),x.connect(q,"ontouchmove",function(l){l.preventDefault();var m=q.firstChild;m instanceof Text&&(m=q.childNodes[1]);var e=m._currentX||0,b=m._currentY||0;e+=l.touches[0].screenX-n;0<e?e=0:0>e&&Math.abs(e)+d>g&&(e=-1*(g-d));
m._currentX=e;b+=l.touches[0].screenY-f;0<b?b=0:0>b&&Math.abs(b)+k>a&&(b=-1*(a-k));m._currentY=b;r.set(m,{"-webkit-transition-property":"-webkit-transform","-webkit-transform":"translate("+e+"px, "+b+"px)"});n=l.touches[0].screenX;f=l.touches[0].screenY})]}}};h("extend-esri")&&c.mixin(G,w);return w})},"esri/symbols/MarkerSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ./Symbol".split(" "),function(G,x,c,r,h,w){G=G(w,{declaredClass:"esri.symbol.MarkerSymbol",
angle:0,xoffset:0,yoffset:0,size:12,constructor:function(q){q&&x.isObject(q)&&(this.size="auto"===this.size?this.size:r.pt2px(this.size),this.xoffset=r.pt2px(this.xoffset),this.yoffset=r.pt2px(this.yoffset),this.angle&&(this.angle*=-1))},setAngle:function(q){this.angle=q;return this},setSize:function(q){this.size=q;return this},setOffset:function(q,n){this.xoffset=q;this.yoffset=n;return this},toJson:function(){var q=r.px2pt(this.size);q=isNaN(q)?void 0:q;var n=r.px2pt(this.xoffset);n=isNaN(n)?void 0:
n;var f=r.px2pt(this.yoffset);f=isNaN(f)?void 0:f;return x.mixin(this.inherited("toJson",arguments),{size:"auto"===this.size?this.size:q,angle:this.angle&&-1*this.angle,xoffset:n,yoffset:f})}});c("extend-esri")&&x.setObject("symbol.MarkerSymbol",G,h);return G})},"esri/symbols/Symbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../Color".split(" "),function(G,x,c,r,h,w){G=G(null,{declaredClass:"esri.symbol.Symbol",color:new w([0,0,0,1]),type:null,constructor:function(q){q&&
x.isObject(q)&&(x.mixin(this,q),this.color&&h.isDefined(this.color[0])&&(this.color=w.toDojoColor(this.color)),(q=this.type)&&0===q.indexOf("esri")&&(this.type={esriSMS:"simplemarkersymbol",esriPMS:"picturemarkersymbol",esriSLS:"simplelinesymbol",esriCLS:"cartographiclinesymbol",esriSFS:"simplefillsymbol",esriPFS:"picturefillsymbol",esriTS:"textsymbol",esriSHD:"shieldlabelsymbol"}[q]))},setColor:function(q){this.color=q;return this},toJson:function(){return{color:w.toJsonColor(this.color)}}});c("extend-esri")&&
x.setObject("symbol.Symbol",G,r);return G})},"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(G,x,c,r,h,w,q,n,f){var g={STYLE_CIRCLE:"circle",STYLE_SQUARE:"square",STYLE_TRIANGLE:"triangle",STYLE_CROSS:"cross",STYLE_X:"x",STYLE_DIAMOND:"diamond",STYLE_PATH:"path",STYLE_TARGET:"target"},a={style:g.STYLE_CIRCLE,color:[255,255,255,.25],size:12,angle:0,
xoffset:0,yoffset:0};G=G(n,{declaredClass:"esri.symbol.SimpleMarkerSymbol",type:"simplemarkersymbol",_styles:{circle:"esriSMSCircle",square:"esriSMSSquare",triangle:"esriSMSTriangle",cross:"esriSMSCross",x:"esriSMSX",diamond:"esriSMSDiamond",path:"esriSMSPath"},constructor:function(d,k,l,m){d?x.isString(d)?(this.style=d,k&&(this.size=k),l&&(this.outline=l),m&&(this.color=m)):(this.style=q.valueOf(this._styles,this.style),d.outline&&(this.outline=new f(d.outline))):(x.mixin(this,a),this.size=h.pt2px(this.size),
this.outline=new f(this.outline),this.color=new c(this.color));this.style||(this.style=g.STYLE_CIRCLE)},setStyle:function(d){this.style=d;return this},setPath:function(d){this.path=d;this.setStyle(g.STYLE_PATH);return this},setOutline:function(d){this.outline=d;return this},getStroke:function(){return this.outline&&this.outline.getStroke()},getFill:function(){return this.color},_setDim:function(d,k,l){this._targetWidth=d;this._targetHeight=k;this._spikeSize=l},getShapeDescriptors:function(){var d,
k=this.style,l=(this.size||h.pt2px(a.size))/2,m=0-l,e=0+l,b=0-l,p=0+l;switch(k){case g.STYLE_CIRCLE:var t={type:"circle",cx:0,cy:0,r:l};var z=this.getFill();if(d=this.getStroke())d.style=d.style||"Solid";break;case g.STYLE_CROSS:t={type:"path",path:"M "+m+",0 L "+e+",0 M 0,"+b+" L 0,"+p+" E"};z=null;d=this.getStroke();break;case g.STYLE_DIAMOND:t={type:"path",path:"M "+m+",0 L 0,"+b+" L "+e+",0 L 0,"+p+" L "+m+",0 Z"};z=this.getFill();d=this.getStroke();break;case g.STYLE_SQUARE:t={type:"path",path:"M "+
m+","+p+" L "+m+","+b+" L "+e+","+b+" L "+e+","+p+" L "+m+","+p+" Z"};z=this.getFill();d=this.getStroke();break;case g.STYLE_TRIANGLE:t={type:"path",path:"M "+m+","+p+" L 0,"+b+" L "+e+","+p+" L "+m+","+p+" Z"};z=this.getFill();d=this.getStroke();break;case g.STYLE_X:t={type:"path",path:"M "+m+","+p+" L "+e+","+b+" M "+m+","+b+" L "+e+","+p+" E"};z=null;d=this.getStroke();break;case g.STYLE_PATH:t={type:"path",path:this.path||""},z=this.getFill(),d=this.getStroke()}return{defaultShape:t,fill:z,stroke:d}},
toJson:function(){var d=this.style,k=this.outline,l=x.mixin(this.inherited("toJson",arguments),{type:"esriSMS",style:this._styles[d]||"esriSMSCircle"});k&&(l.outline=k.toJson());"x"===d||"cross"===d?delete l.color:"target"===d&&(l.style="esriSMSSquare",delete l.color,0<this._targetHeight&&0<this._targetWidth&&(l.size=h.px2pt(Math.max(this._targetHeight,this._targetWidth))));l.path=this.path;return q.fixJson(l)}});x.mixin(G,g);G.defaultProps=a;r("extend-esri")&&(x.setObject("symbol.SimpleMarkerSymbol",
G,w),w.symbol.defaultSimpleMarkerSymbol=a);return G})},"esri/symbols/SimpleLineSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has dojox/gfx/_base ../kernel ../lang ./LineSymbol".split(" "),function(G,x,c,r,h,w,q,n){var f={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"},g={color:[0,0,0,1],style:f.STYLE_SOLID,width:1};G=G(n,{declaredClass:"esri.symbol.SimpleLineSymbol",type:"simplelinesymbol",marker:null,_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(a,d,k){a?x.isString(a)?(this.style=a,d&&(this.color=d),k&&(this.width=k)):(this.style=q.valueOf(this._styles,a.style)||f.STYLE_SOLID,this.marker=a.marker):(x.mixin(this,g),this.color=new c(this.color),this.width=h.pt2px(this.width))},setStyle:function(a){this.style=a;return this},setMarker:function(a){this.marker=a},getStroke:function(){return this.style===f.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 q.fixJson(x.mixin(this.inherited("toJson",arguments),{type:"esriSLS",style:this._styles[this.style],marker:this.marker?x.clone(this.marker):void 0}))}});x.mixin(G,f);G.defaultProps=g;r("extend-esri")&&(x.setObject("symbol.SimpleLineSymbol",G,w),w.symbol.defaultSimpleLineSymbol=g);return G})},"esri/symbols/LineSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ./Symbol".split(" "),
function(G,x,c,r,h,w){G=G(w,{declaredClass:"esri.symbol.LineSymbol",constructor:function(q){x.isObject(q)?this.width=r.pt2px(this.width):this.width=12},setWidth:function(q){this.width=q;return this},toJson:function(){var q=r.px2pt(this.width);q=isNaN(q)?void 0:q;return x.mixin(this.inherited("toJson",arguments),{width:q})}});c("extend-esri")&&x.setObject("symbol.LineSymbol",G,h);return G})},"esri/symbols/utils":function(){define("dojo/_base/lang dojo/_base/window dojo/has dojox/gfx ../kernel ../Color".split(" "),
function(G,x,c,r,h,w){function q(k){k.removeAttribute("marker-start");k.removeAttribute("marker-end");k.removeAttribute("opacity")}function n(k,l){for(var m in l)k.setAttribute(m,l[m])}function f(k,l,m){l="url(#"+l.getAttribute("id")+")";k.rawNode.setAttribute("marker-"+m,l)}var g=-1!==r.renderer.toLowerCase().indexOf("svg"),a=9===c("ie"),d={marker:{markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},spear:{marker:{end:{viewBox:"0 0 25.4 23.43",refX:"20",refY:"12.76"},start:{viewBox:"-25.4 0 25.4 23.43",
refX:"-20",refY:"12.76"}},path:{common:{d:"M1.63 23.43 L5.37 16.6 L5.37 8.93 L1.63 2.09 L25.4 12.76 L1.63 23.43 Z","stroke-width":"0","fill-opacity":"1"},start:{transform:"matrix(-1, 0, 0, 1, 0, 0)"}}}};r={applyLineMarker:function(k,l,m,e){if(g&&!a){var b=k&&k.rawNode,p=l.marker;m=m||l.color;b&&"none"!==l.style&&m&&p&&"arrow"===p.style&&p.placement?b.getTotalLength&&0===b.getTotalLength()?q(b):(l=-1!==p.placement.indexOf("begin"),p=-1!==p.placement.indexOf("end"),l||p?(b.removeAttribute("stroke-opacity"),
b.setAttribute("opacity",m.a),l?(l=e(k,m,"spear","start"),f(k,l,"start")):b.removeAttribute("marker-start"),p?(m=e(k,m,"spear","end"),f(k,m,"end")):b.removeAttribute("marker-end")):q(b)):b&&q(b)}},createSVGMarker:function(k,l,m,e){m=d[m];var b=x.doc.createElementNS("http://www.w3.org/2000/svg","marker");b.setAttribute("id",l);n(b,d.marker);n(b,m.marker[e]);l=x.doc.createElementNS("http://www.w3.org/2000/svg","path");l.setAttribute("fill",k.toCss());n(l,m.path.common);n(l,m.path[e]);b.appendChild(l);
return b},create2DColorRamp:function(k){var l=k.surface.createGroup(),m=k.colors,e=k.numClasses;k=(k.size||75)/e;for(var b=0;b<e;b++)for(var p=b*k,t=0;t<e;t++){var z=m[b][t];l.createRect({x:t*k,y:p,width:k,height:k}).setFill(z).setStroke(null)}return l},setSymbolFillColor:function(k,l){if(k)switch(l=l?new w(l):null,k.type){case "simplemarkersymbol":"cross"===k.style||"x"===k.style?k.outline&&k.outline.setColor(l):k.setColor(l);break;case "simplelinesymbol":case "cartographiclinesymbol":case "simplefillsymbol":case "shieldlabelsymbol":case "textsymbol":k.setColor(l)}}};
c("extend-esri")&&G.setObject("renderer.utils",r,h);return r})},"esri/layers/TileInfo":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../SpatialReference ../geometry/Point ./LOD".split(" "),function(G,x,c,r,h,w,q,n,f){G=G(null,{declaredClass:"esri.layers.TileInfo",constructor:function(g){x.mixin(this,g);this.width=this.cols;this.height=this.rows;this._levelToLOD={};g=this.spatialReference;var a=this.origin;g&&(g=this.spatialReference=new q(g.toJson?
g.toJson():g));a&&(this.origin=new n(a.toJson?a.toJson():a),!a.spatialReference&&g&&this.origin.setSpatialReference(new q(g.toJson())));this.lods=c.map(this.lods,function(l){return new f(l)});c.forEach(this.lods,function(l){this._levelToLOD[l.level]=l},this);g=!1;a=this.spatialReference;var d=this.origin;if(a&&d){var k=a._getInfo();k&&(g=a._isWrappable()&&Math.abs(k.origin[0]-d.x)<=k.dx)}this.isWrappable=g;this._initializeUpsampleLevels()},toJson:function(){return w.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&&c.map(this.lods,function(g){return g.toJson()})})},lodAt:function(g){return this._levelToLOD&&this._levelToLOD[g]||null},updateTileInfo:function(g){var a=this.lodAt(g.level),d=a.resolution*this.width;a=a.resolution*this.height;g.id=g.level+"/"+g.row+"/"+g.col;g.extent||(g.extent=[0,0,0,0]);g.extent[0]=
this.origin.x+g.col*d;g.extent[1]=this.origin.y-(g.row+1)*a;g.extent[2]=g.extent[0]+d;g.extent[3]=g.extent[1]+a},upsampleTile:function(g){var a=this._upsampleLevels[g.level];if(!a||-1===a.parentLevel)return!1;g.level=a.parentLevel;g.row=Math.floor(g.row/a.factor+.001);g.col=Math.floor(g.col/a.factor+.001);this.updateTileInfo(g);return!0},_initializeUpsampleLevels:function(){var g=this.lods;this._upsampleLevels=[];for(var a=null,d=0;d<g.length;d++){var k=g[d];this._upsampleLevels[k.level]={parentLevel:a?
a.level:-1,factor:a?a.resolution/k.resolution:0};a=k}}});r("extend-esri")&&x.setObject("layers.TileInfo",G,h);return G})},"esri/layers/LOD":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(G,x,c,r,h){G=G(null,{declaredClass:"esri.layers.LOD",constructor:function(w){x.mixin(this,w)},toJson:function(){return h.fixJson({level:this.level,levelValue:this.levelValue,resolution:this.resolution,scale:this.scale})}});c("extend-esri")&&x.setObject("layers.LOD",
G,r);return G})},"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(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m){x=x([a,d],{declaredClass:"esri.layers.ArcGISTiledMapServiceLayer",_agolAttrs:"Canvas/World_Dark_Gray_Base Canvas/World_Dark_Gray_Reference Canvas/World_Light_Gray_Base Canvas/World_Light_Gray_Reference Elevation/World_Hillshade 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(" "),
_isReference:!1,_referenceLayers:"Canvas/World_Dark_Gray_Reference Canvas/World_Light_Gray_Reference Ocean/World_Ocean_Reference Reference/World_Boundaries_and_Places Reference/World_Boundaries_and_Places_Alternate Reference/World_Reference_Overlay Reference/World_Transportation".split(" "),constructor:function(e,b){b&&(b.roundrobin&&(G.deprecated(this.declaredClass+" : Constructor option 'roundrobin' deprecated. Use option 'tileServers'."),b.tileServers=b.roundrobin),this._setTileServers(b.tileServers),
this._loadCallback=b.loadCallback);this._params=c.mixin({},this._url.query);this._initLayer=c.hitch(this,this._initLayer);(e=b&&b.resourceInfo)?this._initLayer(e):(this._load=c.hitch(this,this._load),this._load())},_TILE_FORMATS:{PNG:"png",PNG8:"png",PNG24:"png",PNG32:"png",JPG:"jpg",JPEG:"jpg",GIF:"gif"},_setTileServers:function(e){if(e&&0<e.length){this.tileServers=e;var b,p=e.length;for(b=0;b<p;b++)e[b]=f.urlToObject(e[b]).path}},_initLayer:function(e,b){this.inherited(arguments);this.resourceInfo=
h.toJson(e);this.tileInfo=new k(e.tileInfo);!1!==this.resampling&&(e.capabilities&&-1<e.capabilities.indexOf("Tilemap")?(this.resampling=!0,this.tileMap=new m(this)):this.resampling=!!e.resampling);!this.spatialReference&&this.tileInfo.spatialReference&&(this.spatialReference=new g(this.tileInfo.spatialReference.toJson()));this.isPNG32="PNG24"===this.tileInfo.format||"PNG32"===this.tileInfo.format;e.timeInfo&&(this.timeInfo=new l(e.timeInfo));e.mensurationCapabilities&&(this.mensurationCapabilities=
e.mensurationCapabilities);var p=this._url.path,t=this._loadCallback,z=f.getProtocolForWebResource(!0),C=p.match(/^https?:\/\/(server|services)\.arcgisonline\.com\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/mapserver/i);C=C&&C[2];if(!this.tileServers)if(e.tileServers)this._setTileServers(e.tileServers);else{var y=-1!==p.search(/^https?:\/\/server\.arcgisonline\.com/i),D=-1!==p.search(/^https?:\/\/services\.arcgisonline\.com/i);(y||D)&&this._setTileServers([p,p.replace(y?/server\.arcgisonline/i:
/services\.arcgisonline/i,y?"services.arcgisonline":"server.arcgisonline")])}if(C){C=C.toLowerCase();for(p=0;p<this._agolAttrs.length;p++)if(y=this._agolAttrs[p],y.toLowerCase()===C){this.hasAttributionData=!0;this.attributionDataUrl=this.attributionDataUrl||z+"//static.arcgis.com/attribution/"+y;break}for(p=0;p<this._referenceLayers.length;p++)if(y=this._referenceLayers[p],y.toLowerCase()===C){this._isReference=!0;break}}this.loaded=!0;this.onLoad(this);t&&(delete this._loadCallback,t(this))},getTileUrl:function(e,
b,p){var t=this.tileServers,z=this._getToken(),C=this._url.query;e=(t?t[b%t.length]:this._url.path)+"/tile/"+e+"/"+b+"/"+p;e=f.upgradeToHTTPS(e);this.resampling&&!this.tileMap&&(e+="?blankTile\x3dfalse");C&&(e=this.resampling&&!this.tileMap?e+("\x26"+q.objectToQuery(C)):e+("?"+q.objectToQuery(C)));!z||C&&C.token||(e+=(-1===e.indexOf("?")?"?":"\x26")+"token\x3d"+z);e=this.addTimestampToURL(e);return f.addProxy(e)}});w("extend-esri")&&c.setObject("layers.ArcGISTiledMapServiceLayer",x,n);return x})},
"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 dojo/dom dojox/collections/ArrayList dojox/gfx/matrix ../kernel ../config ../sniff ../domUtils ../tileUtils ../geometry/Point ../geometry/Rect ../geometry/Extent ./layer".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C){G=G(C,{declaredClass:"esri.layers.TiledMapServiceLayer",constructor:function(y,
D){x.connect(this,"onLoad",this,"_initTiledLayer");this._lowestLevel=(this._displayLevels=D?D.displayLevels:null)?this._displayLevels[0]:0;this.resampling=D?D.resampling:void 0;this._resamplingTolerance=D?D.resamplingTolerance:null;this.exclusionAreas=D?D.exclusionAreas:null;y=c.hitch;this._addImage=y(this,this._addImage);this._tileLoadHandler=y(this,this._tileLoadHandler);this._tileErrorHandler=y(this,this._tileErrorHandler);this._popTile=y(this,this._popTile);this._cleanUpRemovedImages=y(this,this._cleanUpRemovedImages);
this._fireOnUpdateEvent=y(this,this._fireOnUpdateEvent);this._transitionEnd=y(this,this._transitionEnd);this._tileMapCallback=y(this,this._tileMapCallback)},opacity:1,isPNG32:!1,_multiple:1,isResampling:!1,_initTiledLayer:function(){var y=this.tileInfo,D=y.lods;this.resampling=null!=this.resampling?this.resampling:!1;this._tileW=y.width;this._tileH=y.height;var B=this.scales=[],u=this._displayLevels,E=-Infinity,v=Infinity,A=this.fullExtent,F=new p(A.xmin,A.ymax);A=new p(A.xmax,A.ymin);var I=b.getContainingTileCoords,
N,da=D.length;for(N=0;N<da;N++){var ba=D[N];var na=I(y,F,ba);ba.startTileRow=0>na.row?0:na.row;ba.startTileCol=0>na.col?0:na.col;na=I(y,A,ba);ba.endTileRow=na.row;ba.endTileCol=na.col;u&&-1===r.indexOf(u,ba.level)||(B[N]=ba.scale,E=ba.scale>E?ba.scale:E,v=ba.scale<v?ba.scale:v)}-Infinity===E||this._hasMin||this.setMinScale(E);Infinity===v||this._hasMax||this.setMaxScale(v);this.setExclusionAreas(this.exclusionAreas);this._patchIE=6<=m("ie")&&7>m("ie")&&(this.isPNG32||"Mixed"===y.format)},isVisibleAtScale:function(y){return y?
C.prototype._isMapAtVisibleScale.call(this,y,!0):!1},_isMapAtVisibleScale:function(y){var D=this.inherited(arguments,[y,!0]);if(D){var B=this._map;D=this.scales;var u=B.getScale(),E=!1,v=B.width>B.height?B.width:B.height;for(B=0;B<D.length;B++)if(Math.abs(D[B]-u)/D[B]<1/v){E=!0;break}D=E}return D},_setMap:function(y,D,B,u){this.inherited(arguments);this._map=y;var E=this._div=w.create("div",null,D),v=y.__visibleDelta,A=x.connect,F=k._css.names,I={position:"absolute",width:y.width+"px",height:y.height+
"px",overflow:"visible"},N=l.defaults.map.zoomDuration;"css-transforms"===y.navigationMode?(I[F.transform]=k._css.translate(-v.x,-v.y),f.set(E,I),delete I[F.transform],I[F.transition]=F.transformName+" "+N+"ms ease",f.set(this._active=w.create("div",null,E),I),this._active._remove=0,this._passives=[]):(I.left=-v.x+"px",I.top=-v.y+"px",f.set(E,I));this._onResizeHandler_connect=A(y,"onResize",this,"_onResizeHandler");this._opacityChangeHandler_connect=A(this,"onOpacityChange",this,"_opacityChangeHandler");
v=this.tileInfo;A=v.spatialReference;F=A._getInfo();(this._wrap=y.wrapAround180&&A._isWrappable()&&Math.abs(F.origin[0]-v.origin.x)<=F.dx)&&b._addFrameInfo(v,F);this.setExclusionAreas(this.exclusionAreas);this.evaluateSuspension();if(this.suspended&&!y.loaded)var da=x.connect(y,"onLoad",this,function(){x.disconnect(da);da=null;this.setExclusionAreas(this.exclusionAreas);this.evaluateSuspension()});return E},_unsetMap:function(y,D){this.suspended||this._suspendImpl();w.destroy(this._div);this._map=
this._div=null;var B=x.disconnect;B(this._onResizeHandler_connect);B(this._opacityChangeHandler_connect);this.inherited(arguments)},onSuspend:function(){this.inherited(arguments);this._suspendImpl()},_suspendImpl:function(){e.hide(this._div);clearTimeout(this._wakeTimer);this._wakeTimer=null;this._disableDrawConnectors();var y=this._tiles,D=this._tileIds,B=this._loadingList,u,E,v=x.disconnect,A=w.destroy;B&&0<B.count&&(B.forEach(function(I){if(u=y[I])v(u._onload_connect),v(u._onerror_connect),v(u._onabort_connect),
u._onload_connect=u._onerror_connect=u._onabort_connect=null}),B.clear(),this._fireUpdateEnd());this._removeList.clear();for(B=D.length-1;0<=B;B--)(u=(E=D[B])&&y[E])&&A(u);if("css-transforms"===this._map.navigationMode){D=this._active;E=this._passives;this._noDom=0;for(B=E.length-1;0<=B;B--){var F=E[B];F._endHandle&&v(F._endHandle);F._matrix=F._multiply=F._endHandle=null;F._marked=F._remove=0;E.splice(B,1);A(F)}D._matrix=D._multiply=null;D._marked=D._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;e.show(this._div);this._enableDrawConnectors();this._wakeTimer=this._wakeTimer||setTimeout(c.hitch(this,function(){this.suspended||this._onExtentChangeHandler(this._map.extent,null,!0,this._map.__LOD)}),0)},_enableDrawConnectors:function(){var y=this._map,D=x.connect;if("css-transforms"===
y.navigationMode){if(this._onScaleHandler_connect=D(y,"onScale",this,this._onScaleHandler),m("esri-mobile")){this._standby=[];var B=this,u=function(){B._noDom=1};this._onPanStartHandler_connect=D(y,"onPanStart",u);this._onZoomStartHandler_connect=D(y,"onZoomStart",u)}}else this._onZoomHandler_connect=D(y,"onZoom",this,"_onZoomHandler");this._onPanHandler_connect=D(y,"onPan",this,"_onPanHandler");this._onExtentChangeHandler_connect=D(y,"onExtentChange",this,"_onExtentChangeHandler")},_disableDrawConnectors:function(){var y=
x.disconnect;y(this._onPanHandler_connect);y(this._onZoomHandler_connect);y(this._onScaleHandler_connect);y(this._onExtentChangeHandler_connect);y(this._onPanStartHandler_connect);y(this._onZoomStartHandler_connect);this._onPanHandler_connect=this._onZoomHandler_connect=this._onScaleHandler_connect=this._onExtentChangeHandler_connect=this._onPanStartHandler_connect=this._onZoomStartHandler_connect=null},_onResizeHandler:function(y,D,B){y={width:D+"px",height:B+"px"};D=f.set;D(this._div,y);if("css-transforms"===
this._map.navigationMode)for(this._active&&D(this._active,y),B=this._passives.length-1;0<=B;B--)D(this._passives[B],y)},_onExtentChangeHandler:function(y,D,B,u){D=this._map;var E=this._standby;clearTimeout(this._wakeTimer);this._wakeTimer=null;if(!D._isPanningOrZooming()){if("css-transforms"===D.navigationMode){if(B)for(u=this._passives.length-1;0<=u;u--){var v=this._passives[u];f.set(v,k._css.names.transition,"none");v._marked?(this._passives.splice(u,1),v.parentNode&&v.parentNode.removeChild(v),
w.destroy(v)):0<v.childNodes.length&&(v._multiply=v._multiply?d.multiply(v._matrix,v._multiply):v._matrix)}this._noDom=0;if(E&&E.length)for(u=E.length-1;0<=u;u--)v=E[u],f.set(v,"visibility","inherit"),this._popTile(v),E.splice(u,1)}this._fireUpdateStart();this._rrIndex=0;u=b.getCandidateTileInfo(D,this.tileInfo,y);y=D.__visibleDelta;if(!this._ct||u.lod.level!==this._ct.lod.level||B){v=u&&this._ct&&u.lod.level!==this._ct.lod.level;this._ct=u;var A=this._tiles,F=this._tileIds,I=this._tileBounds,N=this._removeList,
da=F.length;this._cleanUpRemovedImages();for(u=0;u<da;u++){E=F[u];var ba=A[E];I[E]=F[u]=null;"css-transforms"===D.navigationMode&&v&&ba.parentNode&&D.fadeOnZoom&&(ba._fadeOut=v,ba.parentNode._remove++);N.add(ba)}B&&(this._tileIds=[],this._tiles=[],this._tileBounds=[])}u=y.x;B=y.y;"css-transforms"===D.navigationMode?(E={},E[k._css.names.transform]=k._css.translate(u,B),f.set(this._div,E)):f.set(this._div,{left:u+"px",top:B+"px"});this.__coords_dx=u;this.__coords_dy=B;this._updateImages(new t(0,0,y.width,
y.height));0===this._loadingList.count?(this._cleanUpRemovedImages(),this.onUpdate(),this._fireUpdateEnd()):this._fireOnUpdate=!0;B=this._tileW;A=this._tileH;y=new t(-y.x,-y.y,y.width,y.height);for(u=this._tileIds.length-1;0<=u;u--)(E=this._tileIds[u])?(v=this._tiles[E],F=n.getMarginBox(v),F=new t(F.l,F.t,B,A),"css-transforms"===D.navigationMode&&(F.x=v._left,F.y=v._top),y.intersects(F)?this._tileBounds[E]=F:(this._loadingList.contains(E)&&this._popTile(v),w.destroy(v),this._tileIds.splice(u,1),delete this._tileBounds[E],
delete this._tiles[E])):(this._tileIds.splice(u,1),delete this._tileBounds[E],delete this._tiles[E])}},_onPanHandler:function(y,D){y=this._map;D=y.__visibleDelta.offset(D.x,D.y);this.__coords_dx=this.__coords_dy=0;"css-transforms"===y.navigationMode?(y={},y[k._css.names.transform]=k._css.translate(D.x,D.y),f.set(this._div,y),m("esri-mobile")||this._updateImages({x:-D.x,y:-D.y,width:D.width,height:D.height})):(f.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(y,D){var B,u={},E=k._css.names,v=this._map,A=l.defaults.map.zoomDuration;for(B=this._passives.length-1;0<=B;B--){var F=this._passives[B];0===F.childNodes.length?(this._passives.splice(B,1),w.destroy(F)):("none"===F.style[E.transition]&&f.set(F,E.transition,E.transformName+" "+A+"ms ease"),f.set(F,E.transition,D?"none":E.transformName+" "+A+"ms ease"),F._matrix=y,u[E.transform]=k._css.matrix(F._multiply?
d.multiply(y,F._multiply):y),f.set(F,u))}this._active&&0===this._active.childNodes.length||(f.set(this._active,E.transition,D?"none":E.transformName+" "+A+"ms ease"),this._active._matrix=y,u[E.transform]=k._css.matrix(this._active._matrix),f.set(this._active,u),this._passives.push(this._active),u={position:"absolute",width:v.width+"px",height:v.height+"px",overflow:"visible"},u[E.transition]=E.transformName+" "+A+"ms ease",f.set(this._active=w.create("div",null,this._div),u),this._active._remove=
0,v.fadeOnZoom&&w.place(this._active,this._div,"first"))},_onZoomHandler:function(y,D,B){y=n.getMarginBox(this._div);B=B.offset(-y.l,-y.t);this._previousScale&&1!==D||(this._previousScale=1);var u,E=this._tileW*D,v=this._tileH*D,A=this._tileBounds,F=this._tiles,I=this._previousScale,N=this._multiple,da=f.set,ba,na;if((y=m("ie"))&&8>y)r.forEach(this._tileIds,function(sa){na="";u=A[sa];ba=F[sa].style.margin.split(" ");r.forEach(ba,function(Ca){""!==na&&(na+=" ");Ca=parseFloat(Ca);na+=Ca/I*D+"px"});
da(F[sa],{left:u.x-(E-u.width)*(B.x-u.x)/u.width+"px",top:u.y-(v-u.height)*(B.y-u.y)/u.height+"px",margin:1!==N&&-1===na.indexOf("NaN")?na:"",zoom:D})});else{var xa=E*N,W=v*N,la,ha;r.forEach(this._tileIds,function(sa){na="";u=A[sa];la=u.x-(E-u.width)*(B.x-u.x)/u.width;ha=u.y-(v-u.height)*(B.y-u.y)/u.height;ba=F[sa].style.margin.split(" ");r.forEach(ba,function(Ca){""!==na&&(na+=" ");Ca=parseFloat(Ca);na+=Ca/I*D+"px"});da(F[sa],{left:la+"px",top:ha+"px",margin:1!==N&&-1===na.indexOf("NaN")?na:"",width:xa+
"px",height:W+"px"})})}this._previousScale=D},_updateImages:function(y){if(this._ct){var D=this._tileW,B=this._tileH,u=this._ct;var E=u.lod;u=u.tile;var v=u.offsets,A=u.coords,F=A.row;A=A.col;var I=E.level,N=this.opacity,da=this._tileIds,ba=this._loadingList,na=this._addImage,xa=this._map.id,W=this.id,la=y.x,ha=y.y,sa=E.startTileRow,Ca=E.endTileRow,oa=E.startTileCol,qa=E.endTileCol,L=r.indexOf,Y=v.x-this.__coords_dx,ca=v.y-this.__coords_dy;var V=D-Y+-y.x;var X=B-ca+-y.y;var ja=Math.ceil;V=0<V?V%D:
D-Math.abs(V)%D;X=0<X?X%B:B-Math.abs(X)%B;la=0<la?Math.floor((la+Y)/D):ja((la-(D-Y))/D);ha=0<ha?Math.floor((ha+ca)/B):ja((ha-(B-ca))/B);ca=la+ja((y.width-V)/D);y=ha+ja((y.height-X)/B);if(this._wrap){var pa=E._frameInfo;var ta=pa[0];var ea=pa[1];pa=pa[2]}for(X=la;X<=ca;X++)for(la=ha;la<=y;la++)ja=F+la,V=A+X,this._wrap&&(V<ea?(V%=ta,V=V<ea?V+ta:V):V>pa&&(V%=ta)),!this._isExcluded(I,ja,V)&&ja>=sa&&ja<=Ca&&V>=oa&&V<=qa&&(E=xa+"_"+W+"_tile_"+I+"_"+la+"_"+X,-1===L(da,E)&&(ba.add(E),da.push(E),na(I,la,ja,
X,V,E,D,B,N,u,v)))}},_cleanUpRemovedImages:function(){var y=this._removeList,D=w.destroy,B,u=k._css.names;y.forEach(function(v){v._fadeOut||(v.style.filter="",v.style.zoom=1,D(v))});if("css-transforms"===this._map.navigationMode)for(B=this._passives.length-1;0<=B;B--){var E=this._passives[B];0===E.childNodes.length?(this._passives.splice(B,1),D(E)):this._map.fadeOnZoom&&!E._marked&&E._remove===E.childNodes.length&&(E._marked=1,2048>k._css.getScaleFromMatrix(f.get(E,u.transform))?(f.set(E,u.transition,
"opacity 0.65s"),f.set(E,"opacity",0),x.disconnect(E._endHandle),E._endHandle=x.connect(E,u.endEvent,this._transitionEnd)):this._transitionEnd({propertyName:"opacity",target:E}))}y.clear()},_transitionEnd:function(y){var D=y.target;"opacity"===y.propertyName&&(x.disconnect(D._endHandle),D._endHandle=null,y=r.indexOf(this._passives,D),-1<y&&this._passives.splice(y,1),D.parentNode&&D.parentNode.removeChild(D),w.destroy(D))},_addImage:function(y,D,B,u,E,v,A,F,I,N,da){if(this._patchIE)N=this._tiles[v]=
w.create("div"),N.id=v,q.add(N,"layerTile"),f.set(N,{left:A*u-da.x+"px",top:F*D-da.y+"px",width:A+"px",height:F+"px",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d'"+this.getTileUrl(y,B,E)+"', sizingMethod\x3d'scale')"}),1>I&&f.set(N,"opacity",I),y=N.appendChild(w.create("div")),f.set(y,{opacity:0,width:A+"px",height:F+"px"}),this._div.appendChild(N),N=null,this._loadingList.remove(v),this._fireOnUpdateEvent();else{N=this._tiles[v]=w.create("img");var ba=x.connect;N.id=v;N._uid=
y+"_"+B+"_"+E;N.alt="";q.add(N,"layerTile");u=A*u-da.x;da=F*D-da.y;D=this._map;var na=k._css.names;A={width:A+"px",height:F+"px",visibility:"hidden"};"css-transforms"===D.navigationMode?(A[na.transform]=k._css.translate(u,da),f.set(N,A),N._left=u,N._top=da):(A.left=u+"px",A.top=da+"px",f.set(N,A));1>I&&f.set(N,"opacity",I);N._onload_connect=ba(N,"onload",this,"_tileLoadHandler");N._onerror_connect=ba(N,"onerror",c.hitch(this,"_tileErrorHandler",B,E));N._onabort_connect=ba(N,"onabort",this,"_tileAbortHandler");
if(this.tileMap)this.tileMap.getTile(y,B,E,v,this._tileMapCallback);else if(v=this.getTileUrl(y,B,E,N))this._failedRequests&&this._failedRequests[v]?(f.set(N,this._failedRequests[v].css),N.src=this._failedRequests[v].src,this._multiple=parseInt(this._failedRequests[v].css.width)/this._tileW,this.isResampling=1!==this._multiple):(this._multiple=1,this.isResampling=!1,N.src=v);"css-transforms"===D.navigationMode?this._active.appendChild(N):this._div.appendChild(N);N=null}},_tileMapCallback:function(y,
D){if(!this.suspended){var B=this._tiles[D.id]||g.byId(D.id);var u=D.level+"_"+D.row+"_"+D.col;B&&B._uid===u?(this._multiple=2*(D.level-y.level)||1,this.isResampling=1!==this._multiple,D=this.tileMap.style(y,D),f.set(B,D),B.src=this.getTileUrl(y.level,y.row,y.col)):this._popTile(D)}},getTileUrl:function(y,D,B){},refresh:function(){this.suspended||(this._refreshTS=Date.now(),this._onExtentChangeHandler(this._map.extent,null,!0,this._map.__LOD))},_popTile:function(y){var D=x.disconnect;D(y._onload_connect);
D(y._onerror_connect);D(y._onabort_connect);y._onload_connect=y._onerror_connect=y._onabort_connect=null;this._loadingList.remove(y.id);this._fireOnUpdateEvent()},_tileLoadHandler:function(y){y=y.currentTarget;this._noDom?this._standby.push(y):(f.set(y,"visibility","inherit"),this._popTile(y))},_tileAbortHandler:function(y){y=y.currentTarget;this.onError(Error("Unable to load tile: "+y.src));f.set(y,"visibility","hidden");this._popTile(y)},_tileErrorHandler:function(y,D,B){B=B.currentTarget;var u=
!0;if(this.tileMap||!this.resampling)u=!1;else{var E=new h(B.src);E=E.path.split("/");E=parseInt(E[E.length-3]);var v=this._ct.lod.level-E+1;this._multiple=Math.pow(2,v);if(E===this._lowestLevel||0===this._resamplingTolerance||this._resamplingTolerance&&Math.log(this._multiple)/Math.LN2>this._resamplingTolerance)u=!1}u?(this.isResampling=!0,this._resample(B,y,D)):(this.onError(Error("Unable to load tile: "+B.src)),f.set(B,"visibility","hidden"),this._popTile(B))},_resample:function(y,D,B){var u=(new h(y.src)).path.split("/"),
E=this._multiple,v=parseInt(u[u.length-3])-1,A=parseInt(D/E),F=parseInt(B/E);u=B%E;var I=D%E;A=this.getTileUrl(v,A,F);D=this.getTileUrl(v+Math.log(E)/Math.LN2,D,B);E={width:this._tileW*E+"px",height:this._tileH*E+"px",margin:"-"+this._tileW*I+"px 0 0 -"+(this._tileH*u+"px")};this._failedRequests||(this._failedRequests={});this._failedRequests[D]={src:A,css:E};f.set(y,E);m("chrome")&&y.setAttribute("src",null);y.src=A},_fireOnUpdateEvent:function(){0===this._loadingList.count&&(this._cleanUpRemovedImages(),
this._fireOnUpdate&&(this._fireOnUpdate=!1,this.onUpdate(),this._fireUpdateEnd()))},setOpacity:function(y){if(this.opacity!=y)this.onOpacityChange(this.opacity=y)},onOpacityChange:function(){},_opacityChangeHandler:function(y){var D=f.set,B,u;if("css-transforms"===this._map.navigationMode){if(this._active){var E=this._active.childNodes;for(B=E.length-1;0<=B;B--)D(E[B],"opacity",y)}for(B=this._passives.length-1;0<=B;B--)for(E=this._passives[B].childNodes,u=E.length-1;0<=u;u--)D(E[u],"opacity",y)}else for(E=
this._div.childNodes,B=E.length-1;0<=B;B--)D(E[B],"opacity",y)},setExclusionAreas:function(y){this.exclusionAreas=y;if(this.loaded&&this._map&&this._map.loaded){var D=this._map.spatialReference,B=this.tileInfo,u=B.origin,E=B.lods,v=E[0].level,A=E[E.length-1].level,F,I,N;if(this.exclusionAreas&&this.exclusionAreas.length){this._exclusionsPerZoom=[];var da=0;for(F=y.length;da<F;da++){var ba=y[da];if((N=ba.geometry)&&"extent"===N.type&&N.xmin<=N.xmax&&N.ymin<=N.ymax){if(!D.equals(N.spatialReference))if(D._canProject(N.spatialReference)){if(D.isWebMercator()){var na=
p.lngLatToXY(N.xmin,N.ymin);N=p.lngLatToXY(N.xmax,N.ymax)}else na=p.xyToLngLat(N.xmin,N.ymin,!0),N=p.xyToLngLat(N.xmax,N.ymax,!0);N=new z(na[0],na[1],N[0],N[1],D)}else continue;var xa=-1;if(ba.minZoom&&-1!==ba.minZoom)xa=ba.minZoom;else if(ba.minScale&&-1!==ba.minScale){var W=0;for(I=E.length;W<I;W++)if(E[W].scale<=ba.minScale){xa=E[W].level;break}}xa=Math.max(xa,v);na=-1;if(ba.maxZoom&&-1!==ba.maxZoom)na=ba.maxZoom;else if(ba.maxScale&&-1!==ba.maxScale)for(W=0,I=E.length;W<I;W++)if(E[W].scale<ba.maxScale){na=
E[W-1].level;break}else if(E[W].scale===ba.maxScale){na=E[W].level;break}na=-1===na?A:Math.min(na,A);for(ba=xa;ba<=na;ba++){W=0;for(I=E.length;W<I;W++)if(E[W].level===ba){var la=E[W];break}la&&(this._exclusionsPerZoom[ba]||(this._exclusionsPerZoom[ba]=[]),W=1/la.resolution/B.rows,I=1/la.resolution/B.cols,this._exclusionsPerZoom[ba].push({rowFrom:Math.floor((u.y-N.ymax)*W),rowTo:Math.ceil((u.y-N.ymin)*W),colFrom:Math.floor((N.xmin-u.x)*I),colTo:Math.ceil((N.xmax-u.x)*I)}))}}}}else this._exclusionsPerZoom=
null;this.suspended||this._onExtentChangeHandler(this._map.extent,null,!0,this._map.__LOD)}},_isExcluded:function(y,D,B){var u;if(!this._exclusionsPerZoom)return!1;var E=this._exclusionsPerZoom[y];if(!E)return!1;var v=0;for(u=E.length;v<u;v++)if(y=E[v],D>=y.rowFrom&&D<y.rowTo&&B>=y.colFrom&&B<y.colTo)return!0;return!1}});m("extend-esri")&&c.setObject("layers.TiledMapServiceLayer",G,k);return G})},"dojox/collections/ArrayList":function(){define(["dojo/_base/kernel","dojo/_base/array","./_base"],function(G,
x,c){c.ArrayList=function(r){var h=[];r&&(h=h.concat(r));this.count=h.length;this.add=function(w){h.push(w);this.count=h.length};this.addRange=function(w){if(w.getIterator)for(w=w.getIterator();!w.atEnd();)this.add(w.get());else for(var q=0;q<w.length;q++)h.push(w[q]);this.count=h.length};this.clear=function(){h.splice(0,h.length);this.count=0};this.clone=function(){return new c.ArrayList(h)};this.contains=function(w){for(var q=0;q<h.length;q++)if(h[q]==w)return!0;return!1};this.forEach=function(w,
q){G.forEach(h,w,q)};this.getIterator=function(){return new c.Iterator(h)};this.indexOf=function(w){for(var q=0;q<h.length;q++)if(h[q]==w)return q;return-1};this.insert=function(w,q){h.splice(w,0,q);this.count=h.length};this.item=function(w){return h[w]};this.remove=function(w){w=this.indexOf(w);0<=w&&h.splice(w,1);this.count=h.length};this.removeAt=function(w){h.splice(w,1);this.count=h.length};this.reverse=function(){h.reverse()};this.sort=function(w){w?h.sort(w):h.sort()};this.setByIndex=function(w,
q){h[w]=q;this.count=h.length};this.toArray=function(){return[].concat(h)};this.toString=function(w){return h.join(w||",")}};return c.ArrayList})},"dojox/collections/_base":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array"],function(G,x,c){G=x.getObject("dojox.collections",!0);G.DictionaryEntry=function(r,h){this.key=r;this.value=h;this.valueOf=function(){return this.value};this.toString=function(){return String(this.value)}};G.Iterator=function(r){var h=0;this.element=r[h]||
null;this.atEnd=function(){return h>=r.length};this.get=function(){return this.atEnd()?null:this.element=r[h++]};this.map=function(w,q){return c.map(r,w,q)};this.reset=function(){h=0;this.element=r[h]}};G.DictionaryIterator=function(r){var h=[],w={},q;for(q in r)w[q]||h.push(r[q]);var n=0;this.element=h[n]||null;this.atEnd=function(){return n>=h.length};this.get=function(){return this.atEnd()?null:this.element=h[n++]};this.map=function(f,g){return c.map(h,f,g)};this.reset=function(){n=0;this.element=
h[n]}};return G})},"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(G,x,c,r,h,w,q,n,f,g){G=G(null,{declaredClass:"esri.layers.ArcGISMapServiceLayer",infoTemplates:null,constructor:function(a,d){this.layerInfos=[];d&&(this.infoTemplates=d.infoTemplates||null);a=this._params={};if(d=this._url.query?this._url.query.token:null)a.token=
d},setInfoTemplates:function(a){this.infoTemplates=a},_load:function(){q({url:this._url.path,content:x.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(a,d){try{this._findCredential();(this.credential&&this.credential.ssl||a&&a._ssl)&&this._useSSL();this.description=a.description;this.copyright=a.copyrightText;this.spatialReference=a.spatialReference&&
new n(a.spatialReference);this.initialExtent=a.initialExtent&&new f(a.initialExtent);this.fullExtent=a.fullExtent&&new f(a.fullExtent);this.units=a.units;this.maxRecordCount=a.maxRecordCount;this.maxImageHeight=a.maxImageHeight;this.maxImageWidth=a.maxImageWidth;this.supportsDynamicLayers=a.supportsDynamicLayers;var k=this.layerInfos=[],l=a.layers,m=this._defaultVisibleLayers=[];c.forEach(l,function(e,b){k[b]=new g(e);e.defaultVisibility&&m.push(e.id)});this.visibleLayers||(this.visibleLayers=m);
this.version=a.currentVersion;this.cimVersion=a.cimVersion;this.version||(this.version="capabilities"in a||"tables"in a?10:"supportedImageFormatTypes"in a?9.31:9.3);this.capabilities=a.capabilities;w.isDefined(a.minScale)&&!this._hasMin&&this.setMinScale(a.minScale);w.isDefined(a.maxScale)&&!this._hasMax&&this.setMaxScale(a.maxScale)}catch(e){this._errorHandler(e)}}});r("extend-esri")&&x.setObject("layers.ArcGISMapServiceLayer",G,h);return G})},"esri/layers/LayerInfo":function(){define(["dojo/_base/declare",
"dojo/_base/lang","dojo/has","../kernel","../lang"],function(G,x,c,r,h){G=G(null,{declaredClass:"esri.layers.LayerInfo",constructor:function(w){x.mixin(this,w)},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})}});c("extend-esri")&&x.setObject("layers.LayerInfo",G,r);return G})},"esri/layers/TimeInfo":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../TimeExtent ./TimeReference ./LayerTimeOptions".split(" "),
function(G,x,c,r,h,w,q){G=G(null,{declaredClass:"esri.layers.TimeInfo",constructor:function(n){null!==n&&(x.mixin(this,n),n.exportOptions&&(this.exportOptions=new q(n.exportOptions)),this.timeExtent=null,n.timeExtent&&2===n.timeExtent.length&&(this.timeExtent=new h(n.timeExtent)),this.timeReference=new w(n.timeReference))}});x.mixin(G,{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"});c("extend-esri")&&x.setObject("layers.TimeInfo",G,r);return G})},"esri/TimeExtent":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","./kernel"],function(G,x,c,r){var h=G(null,{declaredClass:"esri.TimeExtent",constructor:function(w){if(1<arguments.length)this._create(arguments[0],
arguments[1]);else if(w)if(x.isArray(w)){var q=w[0],n=w[1];this.startTime=null===q||"null"===q?null:new Date(q);this.endTime=null===n||"null"===n?null:new Date(n)}else w instanceof Date&&this._create(w,null)},offset:function(w,q){var n=new h,f=this.startTime,g=this.endTime;f&&(n.startTime=this._getOffsettedDate(f,w,q));g&&(n.endTime=this._getOffsettedDate(g,w,q));return n},intersection:function(w){return this._intersection(this,w)},toJson:function(){var w=[],q=this.startTime;w.push(q?q.getTime():
"null");q=this.endTime;w.push(q?q.getTime():"null");return w},_create:function(w,q){this.startTime=w?new Date(w.getTime()):null;this.endTime=q?new Date(q.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(w,
q){if(w&&q){var n=w.startTime;w=w.endTime;var f=q.startTime;q=q.endTime;n=n?n.getTime():-Infinity;f=f?f.getTime():-Infinity;w=w?w.getTime():Infinity;q=q?q.getTime():Infinity;var g,a;f>=n&&f<=w?g=f:n>=f&&n<=q&&(g=n);w>=f&&w<=q?a=w:q>=n&&q<=w&&(a=q);if(isNaN(g)||isNaN(a))return null;n=new h;n.startTime=-Infinity===g?null:new Date(g);n.endTime=Infinity===a?null:new Date(a);return n}return null},_getOffsettedDate:function(w,q,n){var f=this._refData;w=new Date(w.getTime());q&&n&&(f=f[n],w[f.setter](w[f.getter]()+
q*f.multiplier));return w}});c("extend-esri")&&(r.TimeExtent=h);return h})},"esri/layers/TimeReference":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(G,x,c,r){G=G(null,{declaredClass:"esri.layers.TimeReference",constructor:function(h){h&&x.mixin(this,h)}});c("extend-esri")&&x.setObject("layers.TimeReference",G,r);return G})},"esri/layers/LayerTimeOptions":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(G,
x,c,r,h){G=G(null,{declaredClass:"esri.layers.LayerTimeOptions",constructor:function(w){w&&x.mixin(this,w)},toJson:function(){return h.fixJson({timeDataCumulative:this.timeDataCumulative,timeOffset:this.timeOffset,timeOffsetUnits:this.timeOffsetUnits,useTime:this.useTime})}});c("extend-esri")&&x.setObject("layers.LayerTimeOptions",G,r);return G})},"esri/layers/TileMap":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/Deferred dojo/io-query ../request ../urlUtils".split(" "),
function(G,x,c,r,h,w,q){return G(null,{declaredClass:"esri.layers.TileMap",constructor:function(n){this.layer=n;this._tileMaps={}},getTile:function(n,f,g,a,d){n={id:a,level:n,row:f,col:g};f=this._getResamplingBudget();0<f?this._process({tile:n,requestedTile:n,callback:d,resamplingBudget:f}):(d||this.callback).call(this,n,n)},statusOf:function(n,f,g){var a=this._getResamplingBudget();n={level:n,row:f,col:g};if(0===a)return 1;for(;0<=a;){f=this._tileToTileMap(n);if(!this._tileMaps[f.uid])return-1;f=
this._tileMaps[f.uid];if(!f.promise.isFulfilled())return-1;if(this._isTileAvailable(n,f))return 1;n=this._parentTile(n);if(!n)break;a--}return 0},style:function(n,f){if(n.level!==f.level||n.row!==f.row||n.col!==f.col){var g=this.layer.tileInfo,a=g.lods,d=g.cols;g=g.rows;for(var k,l,m=a.length-1;!k||!l;)k||a[m].level!==n.level||(k=a[m]),l||a[m].level!==f.level||(l=a[m]),m--;a=Math.round(k.resolution/l.resolution);n=f.col%a*-1*d;f=f.row%a*-1*g;a={width:d*a+"px",height:g*a+"px",margin:f+"px 0 0 "+n+
"px","will-change":"transform"};n=0===n?0:-1*n;f=0===f?0:-1*f;a.clip="rect("+f+"px,"+(n+d)+"px,"+(f+g)+"px,"+n+"px)";return a}},_process:function(n){var f=n.tile,g=this._tileToTileMap(f),a=this._parentTile(f);this._getTileMap(g).then(x.hitch(this,function(d){g=d;this._isTileAvailable(f,g)?(n.callback||this.callback).call(this,f,n.requestedTile):0<n.resamplingBudget&&a?(n.resamplingBudget--,n.tile=a,this._process(n)):(n.callback||this.callback).call(this,n.requestedTile,n.requestedTile)}),x.hitch(this,
function(){(n.callback||this.callback).call(this,n.requestedTile,n.requestedTile)}))},_getTileMap:function(n){var f,g,a=null;if(this._tileMaps[n.uid]){n=this._tileMaps[n.uid];var d=n.promise}else{this._tileMaps[n.uid]=n;var k=new r;w({url:this._getTileMapUrl(n.level,n.row,n.col),handleAs:"json",content:{f:"json"},callbackParamName:"callback",timeout:3E3,load:function(l){x.mixin(n,l);if(n.data&&0<n.data.length){g=n.data.length;if(1===g)a=n.data[0];else for(a=n.data[0],f=1;f<g;f++)if(n.data[f]!==a){a=
null;break}null!==a&&(delete n.data,n.value=a);null==n.valid&&(n.valid=!0)}k.resolve(n)},error:function(l){l&&422===l.code?(x.mixin(n,{location:{top:n.row,left:n.col,width:8,height:8},valid:!0,value:0}),k.resolve(n)):k.reject()}});d=n.promise=k.promise}return d},_parentTile:function(n){var f=this.layer.tileInfo.lods,g,a,d=null;c.some(f,function(k,l){return n.level===k.level?(g=k,a=l,!0):!1});0<a&&(f=f[a-1],d={id:n.id,level:f.level,row:Math.floor(n.row*g.resolution/f.resolution+.01),col:Math.floor(n.col*
g.resolution/f.resolution+.01)});return d},_tileToTileMap:function(n){var f=8*Math.floor(n.row/8),g=8*Math.floor(n.col/8);return{uid:n.level+"_"+f+"_"+g,level:n.level,row:f,col:g}},_isTileAvailable:function(n,f){if(f.valid)if(void 0!==f.value)n=f.value;else{var g=f.location.left;var a=f.location.top;n=(n.row-a)*f.location.width+(n.col-g);n=n<f.data.length?f.data[n]:0}else n=0;return n},_getTileMapUrl:function(n,f,g){var a=this.layer,d=a.tileServers,k=a._getToken(),l=a._url.query;n=(d?d[f%d.length]:
a._url.path)+"/tilemap/"+n+"/"+f+"/"+g+"/8/8";l&&(n+="?"+h.objectToQuery(l));!k||l&&l.token||(n+=(-1===n.indexOf("?")?"?":"\x26")+"token\x3d"+k);return n=a.addTimestampToURL(n)},_getResamplingBudget:function(){var n=this.layer,f=0;n.resampling&&(f=n._resamplingTolerance,null===f||void 0===f)&&(f=n.tileInfo.lods.length);return f}})})},"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(G,x,c,r,h,w,q,n,f,g,a,d,k){var l=G([k],{declaredClass:"esri.layers.MapImageLayer","-chains-":{constructor:"manual"},constructor:function(m){this.inherited(arguments,[null,m]);this._mapImages=[];var e=c.hitch;this._panStart=e(this,this._panStart);this._pan=e(this,this._pan);this._extentChange=e(this,this._extentChange);this._zoom=e(this,this._zoom);this._zoomStart=e(this,this._zoomStart);this._scale=e(this,this._scale);this._resize=e(this,this._resize);x.connect(this,"onSuspend",this,this._onSuspend);
x.connect(this,"onResume",this,this._onResume);this.loaded=!0;this.onLoad(this)},opacity:1,addImage:function(m){var e=this._mapImages.push(m);--e;m._idx=e;m._layer=this;this._div&&this._createImage(m,e)},removeImage:function(m){if(m){var e=m._idx,b=this._mapImages;if(b[e]===m){delete b[e];if(e=m._node)this._clearEvents(e),e.e_idx=e.e_bl=e.e_tr=e.e_l=e.e_t=e.e_w=e.e_h=null,e.parentNode&&(e.parentNode.removeChild(e),h.destroy(e));m._node=m._idx=m._layer=null}}},removeAllImages:function(){var m=this._mapImages,
e,b=m.length;for(e=0;e<b;e++){var p=m[e];p&&this.removeImage(p)}this._mapImages=[]},getImages:function(){var m=this._mapImages,e=[],b,p=m.length;for(b=0;b<p;b++)m[b]&&e.push(m[b]);return e},setOpacity:function(m){this.opacity!=m&&(this._opacityChanged(this.opacity=m),this.onOpacityChange())},onOpacityChange:function(){},_opacityChanged:function(m){var e=this._div;if(e)if(!f("ie")||8<f("ie"))w.set(e,"opacity",m);else{var b=e.childNodes;var p=b.length;for(e=0;e<p;e++)w.set(b[e],"opacity",m)}},_createImage:function(m,
e){var b=h.create("img");w.set(b,{position:"absolute"});1>m.opacity?w.set(b,"opacity",m.opacity):8>=f("ie")&&w.set(b,"opacity",this.opacity);!m.rotation||9>f("ie")||w.set(b,q._css.names.transform,q._css.rotate(360-m.rotation));m._node=b;b.e_idx=e;b.e_layer=this;b.e_load=x.connect(b,"onload",l.prototype._imageLoaded);b.e_error=x.connect(b,"onerror",l.prototype._imageError);b.e_abort=x.connect(b,"onabort",l.prototype._imageError);b.src=m.href},_imageLoaded:function(m,e){m=e||m.target||m.currentTarget;
e=m.e_layer;var b=e._mapImages[m.e_idx],p=e._map;p&&(p.__zooming||p.__panning||!e._sr)?e._standby.push(m):(e._clearEvents(m),b&&b._node===m&&p&&e._attach(b))},_imageError:function(m){m=m.target||m.currentTarget;var e=m.e_layer,b=e._mapImages[m.e_idx];e._clearEvents(m);b&&(b._node=null)},_clearEvents:function(m){var e=x.disconnect;e(m.e_load);e(m.e_error);e(m.e_abort);m.e_load=m.e_error=m.e_abort=m.e_layer=null},_attach:function(m){var e=m.extent,b=e.spatialReference,p=this._sr,t=this._div,z=m._node,
C=new a({x:e.xmin,y:e.ymin,spatialReference:b});e=new a({x:e.xmax,y:e.ymax,spatialReference:b});p.equals(b)||(p.isWebMercator()&&4326===b.wkid?(C=d.geographicToWebMercator(C),e=d.geographicToWebMercator(e)):b.isWebMercator()&&4326===p.wkid&&(C=d.webMercatorToGeographic(C),e=d.webMercatorToGeographic(e)));z.e_bl=C;z.e_tr=e;m.visible&&(this._setPos(z,t._left,t._top),(this._active||t).appendChild(z))},_setPos:function(m,e,b){var p=m.e_bl,t=m.e_tr,z=this._map;p=z.toScreen(p);t=z.toScreen(t);e=p.x-e;b=
t.y-b;var C=Math.abs(t.x-p.x);p=Math.abs(p.y-t.y);t={width:C+"px",height:p+"px"};var y=this._mapImages[m.e_idx];"css-transforms"===z.navigationMode?t[q._css.names.transform]=q._css.translate(e,b)+(y.rotation?" "+q._css.rotate(360-y.rotation):""):(t.left=e+"px",t.top=b+"px");w.set(m,t);m.e_l=e;m.e_t=b;m.e_w=C;m.e_h=p},managedSuspension:!0,_setMap:function(m,e){this.inherited(arguments);var b=this._div=h.create("div",null,e),p=q._css.names,t={position:"absolute"},z=m.__visibleDelta;if(!f("ie")||8<f("ie"))t.opacity=
this.opacity;"css-transforms"===m.navigationMode?(t[p.transform]=q._css.translate(z.x,z.y),w.set(b,t),b._left=z.x,b._top=z.y,t={position:"absolute",width:m.width+"px",height:m.height+"px",overflow:"visible"},this._active=h.create("div",null,b),w.set(this._active,t),this._passive=h.create("div",null,b),w.set(this._passive,t)):(b._left=0,b._top=0,w.set(b,t));this._standby=[];p=this._mapImages;z=p.length;for(t=0;t<z;t++){var C=p[t];C._node||this._createImage(C,C._idx)}g.hide(b);return b},_unsetMap:function(m,
e){this._disconnect();var b=this._div;if(b){var p=this._mapImages,t,z=p.length;for(t=0;t<z;t++){var C=p[t];if(C){var y=C._node;y&&(this._clearEvents(y),y.e_idx=y.e_bl=y.e_tr=y.e_l=y.e_t=y.e_w=y.e_h=null);C._node=null}}e.removeChild(b);h.destroy(b)}this._map=this._div=this._sr=this._active=this._passive=this._standby=null;this.inherited(arguments)},_onSuspend:function(){this._disconnect();g.hide(this._div)},_onResume:function(m){m.firstOccurrence&&(this._sr=this._map.spatialReference,this._processStandbyList());
m=this._map;var e=this._div,b=m.__visibleDelta;"css-transforms"===m.navigationMode&&(e._left=b.x,e._top=b.y,w.set(e,q._css.names.transform,q._css.translate(e._left,e._top)));this._redraw("css-transforms"===m.navigationMode);this._connect(m);g.show(e)},_connect:function(m){if(!this._connections){var e=x.connect,b="css-transforms"===m.navigationMode;this._connections=[e(m,"onPanStart",this._panStart),e(m,"onPan",this._pan),e(m,"onExtentChange",this._extentChange),b&&e(m,"onZoomStart",this._zoomStart),
b?e(m,"onScale",this._scale):e(m,"onZoom",this._zoom),b&&e(m,"onResize",this._resize)];b&&this._resize(m.extent,m.width,m.height)}},_disconnect:function(){this._connections&&(r.forEach(this._connections,x.disconnect),this._connections=null)},_panStart:function(){this._panL=this._div._left;this._panT=this._div._top},_pan:function(m,e){m=this._div;m._left=this._panL+e.x;m._top=this._panT+e.y;"css-transforms"===this._map.navigationMode?w.set(m,q._css.names.transform,q._css.translate(m._left,m._top)):
w.set(m,{left:m._left+"px",top:m._top+"px"})},_extentChange:function(m,e,b){b?this._redraw("css-transforms"===this._map.navigationMode):e&&this._pan(m,e);this._processStandbyList()},_processStandbyList:function(){var m,e=this._standby;if(e&&e.length)for(m=e.length-1;0<=m;m--)this._imageLoaded(null,e[m]),e.splice(m,1)},_redraw:function(m){if(m){m=this._passive;var e=q._css.names;w.set(m,e.transition,"none");this._moveImages(m,this._active);w.set(m,e.transform,"none")}m=this._active||this._div;e=this._div._left;
var b=this._div._top,p,t=m.childNodes.length;for(p=0;p<t;p++){var z=m.childNodes[p];this._setPos(z,e,b)}},_zoom:function(m,e,b){m=this._div;var p=m._left,t=m._top,z,C=m.childNodes.length;for(z=0;z<C;z++){var y=m.childNodes[z];var D=y.e_w*e,B=y.e_h*e,u=(b.x-p-y.e_l)*(D-y.e_w)/y.e_w,E=(b.y-t-y.e_t)*(B-y.e_h)/y.e_h;u=isNaN(u)?0:u;E=isNaN(E)?0:E;w.set(y,{left:y.e_l-u+"px",top:y.e_t-E+"px",width:D+"px",height:B+"px"})}},_zoomStart:function(){this._moveImages(this._active,this._passive)},_moveImages:function(m,
e){m=m.childNodes;var b=m.length;if(0<b)for(--b;0<=b;b--)e.appendChild(m[b])},_scale:function(m,e){var b=q._css.names,p=this._passive;w.set(p,b.transition,e?"none":b.transformName+" "+n.defaults.map.zoomDuration+"ms ease");({})[b.transform]=q._css.matrix(m);w.set(p,b.transform,q._css.matrix(m))},_resize:function(m,e,b){w.set(this._active,{width:e+"px",height:b+"px"});w.set(this._passive,{width:e+"px",height:b+"px"})}});f("extend-esri")&&c.setObject("layers.MapImageLayer",l,q);return l})},"esri/layers/OpenStreetMapLayer":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../urlUtils ../SpatialReference ../geometry/Extent ./TiledMapServiceLayer ./TileInfo".split(" "),
function(G,x,c,r,h,w,q,n,f){G=G(n,{declaredClass:"esri.layers.OpenStreetMapLayer",constructor:function(g){this.spatialReference=new w({wkid:102100});this.tileInfo=new f({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:.597164283559817},{level:19,scale:1128.497176,resolution:.298582141647617}]});this.fullExtent=
new q({xmin:-2.003750834E7,ymin:-2.003750834E7,xmax:2.003750834E7,ymax:2.003750834E7,spatialReference:{wkid:102100}});this.initialExtent=new q({xmin:-2.003750834E7,ymin:-2.003750834E7,xmax:2.003750834E7,ymax:2.003750834E7,spatialReference:{wkid:102100}});this.tileServers=g&&g.tileServers||["//a.tile.openstreetmap.org","//b.tile.openstreetmap.org","//c.tile.openstreetmap.org"];this.serversLength=this.tileServers.length;this._displayLevels=g?g.displayLevels:null;this.copyright=g&&g.copyright||"Map data \u00a9 OpenStreetMap contributors, CC-BY-SA";
this.loaded=!0;this.onLoad(this);(g=g&&g.loadCallback)&&g(this)},getTileUrl:function(g,a,d){g=this.tileServers[a%this.serversLength]+"/"+g+"/"+d+"/"+a+".png";g=h.normalize(g);g=this.addTimestampToURL(g);return h.addProxy(g)}});c("extend-esri")&&x.setObject("layers.OpenStreetMapLayer",G,r);return G})},"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 ../geometry/Multipoint ../geometry/normalizeUtils ../InfoWindowBase ../PopupBase dojo/i18n!../nls/jsapi dojo/NodeList-dom dojo/has!extend-esri?./PopupTemplate dojo/has!extend-esri?./PopupRenderer".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C,y,D,B,u,E){G=G([B,u,n],{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(v,A){this.initialize();x.mixin(this,v);this.domNode=g.byId(A);A=this._nls=x.mixin({},E.widgets.popup);v=this.domNode;d.add(v,"esriPopup");(this._isRTL=!l.isBodyLtr())&&
m.set(v,"direction","rtl");a.set(v,"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'"+A.NLS_searching+"...'\x3e\x3c/div\x3e\x3cdiv class\x3d'title'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton prev hidden' title\x3d'"+A.NLS_prevFeature+"'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton next hidden' title\x3d'"+A.NLS_nextFeature+"'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton maximize' title\x3d'"+
A.NLS_maximize+"'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton close' title\x3d'"+A.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'"+A.NLS_zoomTo+"' class\x3d'action zoomTo' href\x3d'javascript:void(0);'\x3e\x3cspan\x3e"+A.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",v);A=h.query(".titlePane",v)[0];this._title=h.query(".title",A)[0];this._prevFeatureButton=h.query(".prev",A)[0];this._nextFeatureButton=h.query(".next",A)[0];this._maxButton=h.query(".maximize",A)[0];this._spinner=h.query(".spinner",A)[0];this._contentPane=h.query(".contentPane",v)[0];this._positioner=h.query(".esriPopupWrapper",v)[0];this._pointer=h.query(".pointer",v)[0];this._outerPointer=h.query(".outerPointer",v)[0];this._actionList=h.query(".actionsPane .actionList",
v)[0];this._contentUpdateHandles={};this._eventConnections=[r.connect(h.query(".close",A)[0],"onclick",this,this.hide),r.connect(this._prevFeatureButton,"onclick",this,this.selectPrevious),r.connect(this._nextFeatureButton,"onclick",this,this.selectNext),r.connect(this._maxButton,"onclick",this,this._toggleSize),r.connect(h.query(".zoomTo",this._actionList)[0],"onclick",this,this._zoomToFeature),r.connect(this,"onClearFeatures",this,this._featuresCleared),r.connect(this,"onSelectionChange",this,this._featureSelected),
r.connect(this,"onDfdComplete",this,this._updateUI)];w("esri-touch")&&(v=t.setScrollable(this._contentPane),this._eventConnections.push(v[0],v[1]));this._toggleVisibility(!1)},onMaximize:function(){},onRestore:function(){},setMap:function(v){this.inherited(arguments);k.place(this.domNode,v.root);this.highlight&&this.enableHighlight(v);this._maxHeight=m.get(this._contentPane,"maxHeight")},unsetMap:function(){this.disableHighlight(this.map);this.inherited(arguments)},setTitle:function(v){this.popupWindow&&
(p.isDefined(v)&&""!==v||(v="\x26nbsp;"),this.destroyDijits(this._title),this.place(v,this._title),this.isShowing&&(this.startupDijits(this._title),this.reposition()))},setContent:function(v){this.popupWindow&&(p.isDefined(v)&&""!==v||(v="\x26nbsp;"),this._destroyContent(),this.place(v,this._contentPane),this.isShowing&&(this._startupContent(),this.reposition()))},show:function(v,A){if(this.popupWindow)if(this._delayHide=!1,v){var F=this.map;v.spatialReference?(this.location=v,v=F.toScreen(v)):this.location=
F.toMap(v);var I=F._getFrameWidth();if(-1!==I&&(v.x%=I,0>v.x&&(v.x+=I),F.width>I))for(F=(F.width-I)/2;v.x<F;)v.x+=I;this._maximized?this.restore():this._setPosition(v);A&&A.closestFirst&&this.showClosestFirst(this.location);this.isShowing||(this._toggleVisibility(!0),this._followMap(),this.startupDijits(this._title),this._startupContent(),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(v,A){this.popupWindow&&(this._sizers.style({width:v+"px"}),m.set(this._contentPane,"maxHeight",A+"px"),this._maxHeight=A,this.isShowing&&this.reposition())},reposition:function(){this.popupWindow&&this.map&&this.location&&!this._maximized&&this.isShowing&&this._setPosition(this.map.toScreen(this.location))},addActions:function(v){return c.map(v,function(A){var F=k.create("a",{href:"javascript:void(0);",className:"action "+
A.className,title:A.title,innerHTML:A.title},this._actionList);r.connect(F,"onclick",A.callback);return{action:A,node:F}},this)},removeActions:function(v){c.forEach(v,function(A){k.destroy(A.node)})},getCurrentAnchor:function(){return this._anchor},maximize:function(){var v=this.map;if(v&&!this._maximized&&this.popupWindow){this._maximized=!0;var A=this._maxButton;d.remove(A,"maximize");d.add(A,"restore");a.set(A,"title",this._nls.NLS_restore);A=this.marginLeft;var F=this.marginTop,I=v.width-2*A;
v=v.height-2*F;m.set(this.domNode,{left:this._isRTL?null:A+"px",right:this._isRTL?A+"px":null,top:F+"px",bottom:null});m.set(this._positioner,{left:null,right:null,top:null,bottom:null});this._savedWidth=m.get(this._sizers[0],"width");this._savedHeight=m.get(this._contentPane,"maxHeight");this._sizers.style({width:I+"px"});m.set(this._contentPane,{maxHeight:v-65+"px",height:v-65+"px"});this._showPointer("");this._unfollowMap();d.add(this.domNode,"esriPopupMaximized");this.onMaximize()}},restore:function(){if(this.map&&
this._maximized&&this.popupWindow){this._maximized=!1;var v=this._maxButton;d.remove(v,"restore");d.add(v,"maximize");a.set(v,"title",this._nls.NLS_maximize);m.set(this._contentPane,"height",null);this.resize(this._savedWidth,this._savedHeight);this._savedWidth=this._savedHeight=null;this.show(this.location);this._followMap();d.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._destroyContent();c.forEach(this._eventConnections,r.disconnect);k.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(v,A){this._transientAnchor=
A&&A.anchor;this.inherited(arguments);this._updateUI()},clearFeatures:function(v){v||(this._transientAnchor=null);this.inherited(arguments)},postscript:null,_highlightSetter:function(v){var A=this.highlight,F=this.map;this.highlight=v;if(F&&v!==A)if(v){if(this.enableHighlight(F),v=this.features&&this.features[this.selectedIndex])this.updateHighlight(F,v),this.showHighlight()}else this.disableHighlight(F)},_pagingControlsSetter:function(v){var A=this.pagingControls,F=this.map;this.pagingControls=v;
F&&v!==A&&this._updatePagingControls()},_pagingInfoSetter:function(v){var A=this.pagingInfo,F=this.map;this.pagingInfo=v;F&&v!==A&&this.features&&this.features.length&&this._updatePagingInfo()},_popupWindowSetter:function(v){var A=this.popupWindow,F=this.map;this.popupWindow=v;F&&v!==A&&(v?(this._updateUI(),this._updateWindow()):(this.hide(),this.showHighlight()))},_anchorSetter:function(v){var A=this.anchor;this.anchor=v;this.map&&v!==A&&this.reposition()},_startupContent:function(){var v=this._contentPane;
this.startupDijits(v);c.forEach(this._getPopupRendererDijits(v),function(A){if(!this._contentUpdateHandles[A.id]){var F=A.on("content-update",x.hitch(this,function(){this.reposition()}));this._contentUpdateHandles[A.id]=F}},this)},_destroyContent:function(){var v=this._contentPane;c.forEach(this._getPopupRendererDijits(v),function(A){var F=this._contentUpdateHandles[A.id];F&&(F.remove(),delete this._contentUpdateHandles[A.id])},this);this.destroyDijits(v)},_getPopupRendererDijits:function(v){v=this.getDijits(v);
return v=c.filter(v,function(A){return A&&A.set&&/_PopupRenderer/.test(A.declaredClass)})},_featuresCleared:function(){this.setTitle("\x26nbsp;");this.setContent("\x26nbsp;");this._setPagerCallbacks(this);this._updateUI();this.hideHighlight()},_featureSelected:function(){this._updateUI();this._updateWindow()},_updateWindow:function(){var v=this.selectedIndex;if(0<=v){var A=this.features[v].getContent();if(!this.titleInBody&&A&&x.isString(A.id)){var F=e.byId(A.id);F&&F.set&&/_PopupRenderer/.test(F.declaredClass)&&
F.set("showTitle",!1)}this.setContent(A);this.updateHighlight(this.map,this.features[v]);this.showHighlight()}},_toggleVisibility:function(v){this._setVisibility(v);this.isShowing=v},_setVisibility:function(v){d.toggle(this.domNode,"esriPopupVisible",v);d.toggle(this.domNode,"esriPopupHidden",!v)},_waitAndHide:function(v){var A=this;this._delayHide=!0;setTimeout(function(){A._delayHide&&(A._delayHide=!1,A.hide())},v)},_followMap:function(){this._unfollowMap();var v=this.map;this._handles=[r.connect(v,
"onPanStart",this,this._onPanStart),r.connect(v,"onPan",this,this._onPan),r.connect(v,"onZoomStart",this,this._onZoomStart),r.connect(v,"onExtentChange",this,this._onExtentChange)]},_unfollowMap:function(){var v=this._handles;v&&(c.forEach(v,r.disconnect),this._handles=null)},_onPanStart:function(){var v=this.domNode.style;this._panOrigin={left:v.left,top:v.top,right:v.right,bottom:v.bottom}},_onPan:function(v,A){var F=this._panOrigin;v=A.x;A=A.y;var I=F.left,N=F.top,da=F.right;F=F.bottom;I&&(I=parseFloat(I)+
v+"px");N&&(N=parseFloat(N)+A+"px");da&&(da=parseFloat(da)-v+"px");F&&(F=parseFloat(F)-A+"px");m.set(this.domNode,{left:I,top:N,right:da,bottom:F})},_onZoomStart:function(){this._setVisibility(!1)},_onExtentChange:function(v,A,F){F&&(this._setVisibility(!0),this.show(this._targetLocation||this.location));this._targetLocation=null},_toggleSize:function(){this._maximized?this.restore():this.maximize()},_getTargetAnchor:function(){return this._transientAnchor||this.anchor},_setPosition:function(v){var A=
v.x,F=v.y;v=this.offsetX||0;var I=this.offsetY||0,N=0,da=0,ba=this.map,na=ba.position.x,xa=ba.position.y,W=ba.width,la=ba.height;ba="Left";var ha="bottom",sa="right",Ca="top",oa=l.getContentBox(this._positioner),qa=oa.w/2,L=oa.h/2,Y=m.get(this._sizers[0],"height")+this._maxHeight+m.get(this._sizers[2],"height"),ca=Y/2,V=0,X=0,ja=W,pa=la,ta=A,ea=F,va=this._getTargetAnchor().toLowerCase();if("auto"===va){if(va=q.getBox)va=va(),V=Math.max(va.l,na),ja=Math.min(va.l+va.w,na+W),X=Math.max(va.t,xa),pa=Math.min(va.t+
va.h,xa+la),ta+=na,ea+=xa;na=ea-X>=Y;xa=pa-ea>=Y;W=ja-ta>=oa.w;oa=ta-V>=oa.w;ea-X>ca&&pa-ea>=ca&&(W?(ha="",ba="Left",Ca="",sa="right"):oa&&(ha="",ba="Right",Ca="",sa="left"));ba&&ha&&ta-V>qa&&ja-ta>=qa&&(na?(ba="",ha="bottom",sa="",Ca="top"):xa&&(ba="",ha="top",sa="",Ca="bottom"));ba&&ha&&(W&&na?(ba="Left",ha="bottom",sa="right",Ca="top"):W&&xa?(ba="Left",ha="top",sa="right",Ca="bottom"):oa&&xa?(ba="Right",ha="top",sa="left",Ca="bottom"):oa&&na&&(ba="Right",ha="bottom",sa="left",Ca="top"));this._anchor=
Ca&&sa?Ca+"-"+sa:Ca||sa}else ha=ba="",-1!==va.indexOf("top")?ha="bottom":-1!==va.indexOf("bottom")&&(ha="top"),-1!==va.indexOf("left")?ba="Right":-1!==va.indexOf("right")&&(ba="Left"),this._anchor=this._getTargetAnchor();sa=ha+ba;switch(sa){case "top":case "bottom":da=14;break;case "Left":case "Right":N=13;break;case "topLeft":case "topRight":case "bottomLeft":case "bottomRight":da=14,N=-16}m.set(this.domNode,{left:A+"px",top:F+"px",right:null,bottom:null});A={left:null,right:null,top:null,bottom:null};
ba?A[ba.toLowerCase()]=N+v+"px":A.left=-qa+"px";ha?A[ha]=da+I+"px":A.top=-L+"px";m.set(this._positioner,A);this._showPointer(sa)},_showPointer:function(v){d.remove(this._pointer,"top bottom right left topLeft topRight bottomRight bottomLeft hidden".split(" "));d.remove(this._outerPointer,["right","left","hidden"]);"Right"===v||"Left"===v?(v=v.toLowerCase(),d.add(this._outerPointer,v)):d.add(this._pointer,v)},_setPagerCallbacks:function(v,A,F){if(this.pagingControls&&(v!==this||this._pagerScope&&this._pagerScope!==
this)&&v!==this._pagerScope){this._pagerScope=v;v===this&&(A=this.selectPrevious,F=this.selectNext);var I=this._eventConnections;r.disconnect(I[1]);r.disconnect(I[2]);A&&(I[1]=r.connect(this._prevFeatureButton,"onclick",v,A));F&&(I[2]=r.connect(this._nextFeatureButton,"onclick",v,F))}},_getLocation:function(v){var A=v&&v.geometry;if(A)switch(A.type){case "point":var F=A;if(v.isAggregate()){v=v.getChildGraphics();var I=v[0];v=(I=I.geometry&&I.geometry.spatialReference)&&new y({points:c.map(v,function(N){N=
N.geometry;return[N.x,N.y]}),spatialReference:I.toJson()});I=D.getDenormalizedExtent(v)}break;case "multipoint":F=A.getPoint(0);I=D.getDenormalizedExtent(A);break;case "polyline":case "polygon":F=A.getPoint(0,0),I=D.getDenormalizedExtent(A)}return[F,I]},_zoomToFeature:function(v){v.preventDefault();var A=this.features,F=this.selectedIndex;v=this.map;if(A)if(F=this._getLocation(A[F]),A=F[0],F=F[1],A||(A=this.location),F&&F.intersects(this.location)||(this.location=A),F&&F.getWidth()&&F.getHeight())v.setExtent(F,
!0);else{var I=v.getNumLevels();F=v.getLevel();var N=v.getMaxZoom(),da=this.zoomFactor||1;0<I?F!==N&&(I=F+da,I>N&&(I=N),v.navigationManager._wheelZoom({value:I-F,mapPoint:A},!0)):v.navigationManager._wheelZoom({value:1/Math.pow(2,da)*2,mapPoint:A},!0)}},_updatePagingControls:function(){var v=this._prevFeatureButton,A=this._nextFeatureButton,F=this.selectedIndex,I=this.features?this.features.length:0;this.pagingControls&&1<I?(0===F?d.add(v,"hidden"):d.remove(v,"hidden"),F===I-1?d.add(A,"hidden"):d.remove(A,
"hidden")):(d.add(v,"hidden"),d.add(A,"hidden"))},_updatePagingInfo:function(){var v=this.features?this.features.length:0,A=this._nls,F="\x26nbsp;";this.pagingInfo&&1<v&&A.NLS_pagingInfo&&(F=p.substitute({index:this.selectedIndex+1,total:v},A.NLS_pagingInfo));v&&(A=this.getSelectedFeature(),v=A.getInfoTemplate(),A=A.getTitle(),v&&!/esri\.InfoTemplate/.test(v.declaredClass)&&this.titleInBody||!A||(F=A+("\x26nbsp;"===F?"":" "+F)));this.setTitle(F)},_updateUI:function(){if(this.popupWindow){var v=this.features,
A=this.deferreds,F=v?v.length:0,I=this._spinner,N=this._actionList,da=this._nls;this._updatePagingControls();this._updatePagingInfo();F?d.remove(N,"hidden"):d.add(N,"hidden");A&&A.length?v?d.remove(I,"hidden"):this.setContent("\x3cdiv style\x3d'text-align: center;'\x3e"+da.NLS_searching+"...\x3c/div\x3e"):d.add(I,"hidden");F||A&&A.length?this._delayHide=!1:(this.setContent("\x3cdiv style\x3d'text-align: center;'\x3e"+da.NLS_noInfo+".\x3c/div\x3e"),this.visibleWhenEmpty||this._waitAndHide(this.hideDelay))}}});
w("extend-esri")&&x.setObject("dijit.Popup",G,b);return G})},"esri/geometry/normalizeUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/_base/Deferred dojo/has ../kernel ../config ../deferredUtils ./Extent ./Polyline ./Polygon ./webMercatorUtils ./jsonUtils".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d){function k(u,E){return Math.ceil((u-E)/(2*E))}function l(u,E){var v=u.paths||u.rings,A,F,I=v.length;for(A=0;A<I;A++){var N=v[A].length;for(F=0;F<N;F++){var da=u.getPoint(A,F);u.setPoint(A,
F,da.offset(E,0))}}return u}function m(u,E){if(!(u instanceof f||u instanceof g))throw console.error("_straightLineDensify: the input geometry is neither polyline nor polygon"),Error("_straightLineDensify: the input geometry is neither polyline nor polygon");var v=u instanceof f,A=[],F;G.forEach(v?u.paths:u.rings,function(I){A.push(F=[]);F.push([I[0][0],I[0][1]]);var N,da;for(N=0;N<I.length-1;N++){var ba=I[N][0];var na=I[N][1];var xa=I[N+1][0];var W=I[N+1][1];var la=Math.sqrt((xa-ba)*(xa-ba)+(W-na)*
(W-na));var ha=(W-na)/la;var sa=(xa-ba)/la;var Ca=la/E;if(1<Ca){for(da=1;da<=Ca-1;da++){var oa=da*E;var qa=sa*oa+ba;oa=ha*oa+na;F.push([qa,oa])}da=(la+Math.floor(Ca-1)*E)/2;qa=sa*da+ba;oa=ha*da+na;F.push([qa,oa])}F.push([xa,W])}});return v?new f({paths:A,spatialReference:u.spatialReference}):new g({rings:A,spatialReference:u.spatialReference})}function e(u,E,v){E&&(u=m(u,1E6),u=a.webMercatorToGeographic(u,!0));v&&(u=l(u,v));return u}function b(u,E,v){var A=u.x||u[0];if(A>E){var F=k(A,E);u.x?u=u.offset(-2*
F*E,0):u[0]=A+-2*F*E}else A<v&&(F=k(A,v),u.x?u=u.offset(-2*F*v,0):u[0]=A+-2*F*v);return u}function p(u,E){var v=-1;G.forEach(E.cutIndexes,function(A,F){var I=E.geometries[F];G.forEach(I.rings||I.paths,function(N,da){G.some(N,function(ba){if(!(180>ba[0])){ba=0;var na,xa=N.length;for(na=0;na<xa;na++){var W=N[na][0];ba=W>ba?W:ba}ba=Number(ba.toFixed(9));ba=-360*k(ba,180);xa=N.length;for(na=0;na<xa;na++)W=I.getPoint(da,na),I.setPoint(da,na,W.offset(ba,0))}return!0})});A===v?I.rings?G.forEach(I.rings,
function(N){u[A]=u[A].addRing(N)}):G.forEach(I.paths,function(N){u[A]=u[A].addPath(N)}):(v=A,u[A]=I)});return u}function t(u,E,v,A){var F=new c;F.addCallbacks(v,A);E=E||w.defaults.geometryService;var I=[],N=[],da,ba,na,xa,W,la,ha,sa,Ca=0;G.forEach(u,function(Y){if(Y)if(da||(da=Y.spatialReference,ba=da._getInfo(),xa=(na=da._isWebMercator())?2.0037508342788905E7:180,W=na?-2.0037508342788905E7:-180,la=na?102100:4326,ha=new f({paths:[[[xa,W],[xa,xa]]],spatialReference:{wkid:la}}),sa=new f({paths:[[[W,
W],[W,xa]]],spatialReference:{wkid:la}})),ba){var ca=d.fromJson(Y.toJson()),V=Y.getExtent();"point"===Y.type?I.push(b(ca,xa,W)):"multipoint"===Y.type?(ca.points=G.map(ca.points,function(X){return b(X,xa,W)}),I.push(ca)):"extent"===Y.type?(ca=V._normalize(null,null,ba),I.push(ca.rings?new g(ca):ca)):V?(Y=2*k(V.xmin,W)*xa,ca=0===Y?ca:l(ca,Y),V=V.offset(Y,0),V.intersects(ha)&&V.xmax!==xa?(Ca=V.xmax>Ca?V.xmax:Ca,ca=e(ca,na),N.push(ca),I.push("cut")):V.intersects(sa)&&V.xmin!==W?(Ca=2*V.xmax*xa>Ca?2*V.xmax*
xa:Ca,ca=e(ca,na,360),N.push(ca),I.push("cut")):I.push(ca)):I.push(ca)}else I.push(Y);else I.push(Y)});v=new f;A=k(Ca,xa);for(var oa=-90,qa=A;0<A;){var L=-180+360*A;v.addPath([[L,oa],[L,-1*oa]]);oa*=-1;A--}0<N.length&&0<qa?E?E.cut(N,v,function(Y){N=p(N,Y);var ca=[];G.forEach(I,function(V,X){"cut"===V&&(V=N.shift(),u[X].rings&&1<u[X].rings.length&&V.rings.length>=u[X].rings.length?(I[X]="simplify",ca.push(V)):I[X]=!0===na?a.geographicToWebMercator(V):V)});0<ca.length?E.simplify(ca,function(V){G.forEach(I,
function(X,ja){"simplify"===X&&(I[ja]=!0===na?a.geographicToWebMercator(V.shift()):V.shift())});F.callback(I)},function(V){F.errback(V)}):F.callback(I)},function(Y){F.errback(Y)}):F.errback(Error("esri.geometry.normalizeCentralMeridian: 'geometryService' argument is missing.")):(G.forEach(I,function(Y,ca){"cut"===Y&&(Y=N.shift(),I[ca]=!0===na?a.geographicToWebMercator(Y):Y)}),F.callback(I));return F}function z(u,E,v,A){var F=!1,I;x.isObject(u)&&u&&(x.isArray(u)?u.length&&((I=u[0]&&u[0].declaredClass)&&
-1!==I.indexOf("Graphic")?(u=G.map(u,function(N){return N.geometry}),F=u.length?!0:!1):I&&-1!==I.indexOf("esri.geometry.")&&(F=!0)):(I=u.declaredClass)&&-1!==I.indexOf("FeatureSet")?(u=G.map(u.features||[],function(N){return N.geometry}),F=u.length?!0:!1):I&&-1!==I.indexOf("esri.geometry.")&&(F=!0));F&&E.push({index:v,property:A,value:u})}function C(u,E){var v=[];G.forEach(E,function(A){var F=A.i,I=u[F];A=A.p;var N;if(x.isObject(I)&&I)if(A)if("*"===A[0])for(N in I)I.hasOwnProperty(N)&&z(I[N],v,F,
N);else G.forEach(A,function(da){z(x.getObject(da,!1,I),v,F,da)});else z(I,v,F)});return v}function y(u,E){var v=0,A={};G.forEach(E,function(F){var I=F.index,N=F.property,da=F.value,ba=da.length||1,na=u.slice(v,v+ba);x.isArray(da)||(na=na[0]);v+=ba;delete F.value;N?(A[I]=A[I]||{},A[I][N]=na):A[I]=na});return A}function D(u){for(var E=[],v=0,A=0,F=Math.min,I=Math.max,N=0;N<u.length;N++){for(var da=u[N],ba=null,na=0;na<da.length;na++)ba=da[na],E.push(ba),0===na?A=v=ba[0]:(v=F(v,ba[0]),A=I(A,ba[0]));
ba&&E.push([(v+A)/2,0])}return E}var B={normalizeCentralMeridian:t,_foldCutResults:p,_prepareGeometryForCut:e,_offsetMagnitude:k,_pointNormalization:b,_updatePolyGeometry:l,_straightLineDensify:m,_createWrappers:function(u){var E=x.isObject(u)?u.prototype:x.getObject(u+".prototype");G.forEach(E.__msigns,function(v){var A=E[v.n];E[v.n]=function(){var F=this,I=[],N,da=new c(q._dfdCanceller);v.f&&q._fixDfd(da);for(N=0;N<v.c;N++)I[N]=arguments[N];var ba={dfd:da};I.push(ba);var na=[],xa;if(F.normalization&&
!F._isTable){var W=C(I,v.a);G.forEach(W,function(la){na=na.concat(la.value)});na.length&&(xa=t(na))}xa?(da._pendingDfd=xa,xa.addCallbacks(function(la){da.canceled||(ba.assembly=y(la,W),da._pendingDfd=A.apply(F,I))},function(la){var ha=F.declaredClass;ha&&-1!==ha.indexOf("FeatureLayer")?F._resolve([la],null,I[v.e],da,!0):F._errorHandler(la,I[v.e],da)})):da._pendingDfd=A.apply(F,I);return da}})},_disassemble:C,_addToBucket:z,_reassemble:y,getDenormalizedExtent:function(u){if(!u)return null;var E=u.getExtent();
if(!E)return null;var v=u.spatialReference&&u.spatialReference._getInfo();if(!v)return E;var A=v.valid[0];v=v.valid[1];var F=2*v,I=E.getWidth(),N=E.xmax,da=E.xmin;if("extent"===u.type||0===I||I<=v||I>F||N<A||da>v)return E;switch(u.type){case "polygon":if(1<u.rings.length)var ba=D(u.rings);else return E;break;case "polyline":if(1<u.paths.length)ba=D(u.paths);else return E;break;case "multipoint":ba=u.points}u=Math.min;A=Math.max;F=new n(E.toJson());for(var na=0;na<ba.length;na++){var xa=ba[na][0];
0>xa?(xa+=v,da=A(xa,da)):(xa-=v,N=u(xa,N))}F.xmin=N;F.xmax=da;return F.getWidth()<I?(F.xmin-=v,F.xmax-=v,F):E}};r("extend-esri")&&x.mixin(x.getObject("geometry",!0,h),B);return B})},"esri/geometry/jsonUtils":function(){define("dojo/_base/lang dojo/has ../kernel ../lang ./Point ./Polyline ./Polygon ./Multipoint ./Extent".split(" "),function(G,x,c,r,h,w,q,n,f){function g(l,m,e){var b=l.rings||l.paths,p,t;var z=0;for(p=b.length;z<p;z++){var C=b[z];var y=0;for(t=C.length;y<t;y++){var D=C[y];if(0<y)B+=
D[0],u+=D[1];else{var B=D[0];var u=D[1]}D[0]=m(B);D[1]=e(u)}}return l}var a={esriGeometryPoint:function(l,m,e){l.x=m(l.x);l.y=e(l.y);return l},esriGeometryPolyline:g,esriGeometryPolygon:g,esriGeometryEnvelope:function(l,m,e){l.xmin=m(l.xmin);l.ymin=e(l.ymin);l.xmax=m(l.xmax);l.ymax=e(l.ymax);return l},esriGeometryMultipoint:function(l,m,e){var b=l.points,p;var t=0;for(p=b.length;t<p;t++){var z=b[t];if(0<t)C+=z[0],y+=z[1];else{var C=z[0];var y=z[1]}z[0]=m(C);z[1]=e(y)}return l}},d={esriGeometryPoint:function(l,
m,e){l.x=m(l.x);l.y=e(l.y);return l}},k={createInstance:function(l,m){l=new l;m&&r.mixin(l,m);return l},fromJson:function(l){if(void 0!==l.x&&void 0!==l.y)return new h(l);if(void 0!==l.paths)return new w(l);if(void 0!==l.rings)return new q(l);if(void 0!==l.points)return new n(l);if(void 0!==l.xmin&&void 0!==l.ymin&&void 0!==l.xmax&&void 0!==l.ymax)return new f(l)},getJsonType:function(l){return l instanceof h?"esriGeometryPoint":l instanceof w?"esriGeometryPolyline":l instanceof q?"esriGeometryPolygon":
l instanceof f?"esriGeometryEnvelope":l instanceof n?"esriGeometryMultipoint":null},getGeometryType:function(l){return"esriGeometryPoint"===l?h:"esriGeometryPolyline"===l?w:"esriGeometryPolygon"===l?q:"esriGeometryEnvelope"===l?f:"esriGeometryMultipoint"===l?n:null},supportsLazyUnquantization:function(l){return"esriGeometryPoint"===l||"esriGeometryPolyline"===l||"esriGeometryPolygon"===l||"esriGeometryMultipoint"===l},unquantizeFunction:function(l,m){if(l&&m){var e=m.translate[0],b=m.translate[1],
p=m.scale[0],t=m.scale[1],z=function(D){return D*p+e},C=function(D){return b-D*t},y=a[l];return function(D){return D?y(D,z,C):null}}},unquantize:function(l,m,e){if(m=k.unquantizeFunction(m,e)){var b=l.length;for(e=0;e<b;e++)m(l[e].geometry)}},quantizeFunction:function(l,m){if(l&&"esriGeometryPoint"===l&&m){var e=m.translate[0],b=m.translate[1],p=m.scale[0],t=m.scale[1],z=function(D){return Math.round((D-e)/p)},C=function(D){return Math.round((b-D)/t)},y=d[l];return function(D){return D?y(D,z,C):null}}},
quantize:function(l,m,e){if(m=k.quantizeFunction(m,e)){var b=l.length;for(e=0;e<b;e++)m(l[e].geometry)}}};x("extend-esri")&&G.mixin(G.getObject("geometry",!0,c),k);return k})},"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(G,x,c,r,h,w,q,n,f,g,a){G=G(null,{declaredClass:"esri.InfoWindowBase",constructor:function(){var d=
x.hitch;this.__set_title=d(this,this.__set_title);this.__err_title=d(this,this.__err_title);this.__set_content=d(this,this.__set_content);this.__err_content=d(this,this.__err_content)},setMap:function(d){this.map=d},unsetMap:function(d){delete this.map},setTitle:function(){},setContent:function(){},show:function(){},hide:function(){},resize:function(){},onShow:function(){},onHide:function(){},place:function(d,k){g.isDefined(d)?x.isObject(d)?w.place(d,k,"only"):k.innerHTML=d:k.innerHTML=""},startupDijits:function(d){this._processDijits(d)},
destroyDijits:function(d){this._processDijits(d,!0)},getDijits:function(d){var k=[];d&&1===d.children.length&&(d=d.children[0])&&(k=(k=n.byNode(d))?[k]:n.findWidgets(d));return k},_processDijits:function(d,k){d=this.getDijits(d);c.forEach(d,function(l){if(k){if(l._started&&!l._destroyed)try{l.destroyRecursive?l.destroyRecursive():l.destroy&&l.destroy()}catch(m){console.debug("An error occurred when destroying a widget embedded within InfoWindow: "+m.message)}}else if(!l._started)try{l.startup()}catch(m){console.debug("An error occurred when starting a widget embedded within InfoWindow: "+
m.message)}})},__registerMapListeners:function(){this.__unregisterMapListeners();var d=this.map;this.__handles=[r.connect(d,"onPan",this,this.__onMapPan),r.connect(d,"onZoomStart",this,this.__onMapZmStart),r.connect(d,"onExtentChange",this,this.__onMapExtChg)]},__unregisterMapListeners:function(){var d=this.__handles;d&&(c.forEach(d,r.disconnect,r),this.__handles=null)},__onMapPan:function(d,k){this.move(k,!0)},__onMapZmStart:function(){this.__mcoords=this.mapCoords||this.map.toMap(new a(this.coords));
this.hide(null,!0)},__onMapExtChg:function(d,k,l){d=this.map;var m=this.mapCoords;m?this.show(m,null,!0):(k=l?d.toScreen(this.__mcoords):this.coords.offset(k&&k.x||0,k&&k.y||0),this.show(k,null,!0))},__setValue:function(d,k){this[d].innerHTML="";var l="_dfd"+d,m=this[l];m&&-1===m.fired&&(m.cancel(),this[l]=null);g.isDefined(k)&&(k instanceof h?(this[l]=k,k.addCallbacks(this["__set"+d],this["__err"+d])):this.__render(d,k))},__set_title:function(d){this._dfd_title=null;this.__render("_title",d)},__err_title:function(d){this._dfd_title=
null},__set_content:function(d){this._dfd_content=null;this.__render("_content",d)},__err_content:function(d){this._dfd_content=null},__render:function(d,k){var l=this[d];this.place(k,l);this.isShowing&&(this.startupDijits(l),"_title"===d&&this._adjustContentArea&&this._adjustContentArea())}});q("extend-esri")&&(f.InfoWindowBase=G);return G})},"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(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p){function t(z){return"sizeInfo"===z.type}G=G(p,{declaredClass:"esri.PopupBase",_featureLayers:{},_updateEndHandles:[],_mapLevelChangeHandle:null,_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",x.hitch(this,this._resetUpdateEndListeners));
this.on("dfd-complete",x.hitch(this,this._processFeatures));this.on("set-features",x.hitch(this,this._processFeatures));this.on("selection-change",x.hitch(this,this._checkFeatureResolution))},cleanup:function(){this.features=this.deferreds=null;this._resetUpdateEndListeners();this._untrackMapLevelChange()},setFeatures:function(z){if(z&&z.length){this.clearFeatures(!0);var C,y;z[0]instanceof h?y=z:C=z;C?this._updateFeatures(null,C):(this.deferreds=y,y=y.slice(0),c.forEach(y,function(D){D.addBoth(x.hitch(this,
this._updateFeatures,D))},this))}},clearFeatures:function(z){this.features=this.deferreds=this._marked=null;this.count=0;var C=this.selectedIndex;this.selectedIndex=-1;if(-1<C)this.onSelectionChange();this.onClearFeatures({isIntermediate:!!z})},getSelectedFeature:function(){var z=this.features;if(z)return z[this.selectedIndex]},select:function(z){0>z||z>=this.count||(this.selectedIndex=z,this.onSelectionChange())},enableHighlight:function(z){this._highlighted=z.graphics.add(new n(new f(0,0,z.spatialReference)));
this._highlighted.attr("data-popup-highlight","");this._highlighted.hide();this._trackMapLevelChange(z);this.markerSymbol||(z=this.markerSymbol=new k,z.setStyle(k.STYLE_TARGET),z._setDim(16,16,0),z.setOutline(new m(l.STYLE_SOLID,new r([0,255,255]),2,m.CAP_ROUND,m.JOIN_ROUND)),z.setColor(new r([0,0,0,0])));this.lineSymbol||(this.lineSymbol=new l(l.STYLE_SOLID,new r([0,255,255]),2));this.fillSymbol||(this.fillSymbol=new e(e.STYLE_NULL,new l(l.STYLE_SOLID,new r([0,255,255]),2),new r([0,0,0,0])));this.clusterFillSymbol||
(this.clusterFillSymbol=new e(e.STYLE_SOLID,new l(l.STYLE_SOLID,new r([0,255,255]),1.33),null))},disableHighlight:function(z){var C=this._highlighted;C&&(C.hide(),z.graphics.remove(C),delete this._highlighted);this._untrackMapLevelChange();this.markerSymbol=this.lineSymbol=this.fillSymbol=null},showHighlight:function(){var z=this.features&&this.features[this.selectedIndex];this._highlighted&&z&&z.geometry&&this._highlighted.show()},hideHighlight:function(){this._highlighted&&this._highlighted.hide()},
updateHighlight:function(z,C){var y=C.geometry,D=this._highlighted;if(y&&D){D.hide();!D._graphicsLayer&&z&&z.graphics.add(D);D.setGeometry(g.fromJson(y.toJson()));switch(y.type){case "point":case "multipoint":var B=C.getLayer(),u=C.symbol||B&&B._getSymbol(C);if(B&&u){var E;y=u.xoffset||0;var v=u.yoffset||0,A=u.angle||0;switch(u.type){case "simplemarkersymbol":var F=E=u.size||0;break;case "picturemarkersymbol":F=u.width||0;E=u.height||0;break;case "textsymbol":F=E=u.font&&u.font.size||0}var I=C.symbol?
null:B._getRenderer(C);(B=this._getSizeInfo(I))?z=C=I.getSize(C,{sizeInfo:B,shape:u.style,resolution:z&&z.getResolutionInMeters&&z.getResolutionInMeters()}):null!=C.size?z=C=C.size:(z=F,C=E);I=this.markerSymbol;z&&C&&(y&&(y=y/F*z),v&&(v=v/E*C),I._setDim(z+4,C+4,0));I.setOffset(y,v);I.setAngle(A)}break;case "polyline":I=this.lineSymbol;break;case "polygon":I=this.fillSymbol}D.setSymbol(I)}else D&&D.hide()},showClosestFirst:function(z){var C=this.features;if(C&&C.length){if(1<C.length){var y,D=Infinity,
B=-1,u,E=a.getLength,v=z.spatialReference;z=z.normalize();for(y=C.length-1;0<=y;y--)if(u=C[y].geometry){var A=u.spatialReference;var F=0;try{var I="point"===u.type?u:u.getExtent().getCenter();I=I.normalize();v&&A&&!v.equals(A)&&v._canProject(A)&&(I=v.isWebMercator()?d.geographicToWebMercator(I):d.webMercatorToGeographic(I));F=E(z,I)}catch(N){}0<F&&F<D&&(D=F,B=y)}0<B&&(C.splice(0,0,C.splice(B,1)[0]),this.select(0))}}else this.deferreds&&(this._marked=z)},_trackMapLevelChange:function(z){this._untrackMapLevelChange();
this._mapLevelChangeHandle=z.on("extent-change",x.hitch(this,function(C){C.levelChange&&this._checkFeatureResolution()}))},_untrackMapLevelChange:function(){this._mapLevelChangeHandle&&(this._mapLevelChangeHandle.remove(),this._mapLevelChangeHandle=null)},_unbind:function(z){z=c.indexOf(this.deferreds,z);if(-1!==z)return this.deferreds.splice(z,1),this.deferreds.length?1:(this.deferreds=null,2)},_fireComplete:function(z){var C=this._marked;C&&(this._marked=null,this.showClosestFirst(C));this.onDfdComplete(z)},
_updateFeatures:function(z,C){if(z){if(this.deferreds&&(z=this._unbind(z)))if(C&&C instanceof Error){if(this._fireComplete(C),2===z)this.onSetFeatures()}else if(C&&C.length)if(this.features){if(C=c.filter(C,function(y){return-1===c.indexOf(this.features,y)},this),this.features=this.features.concat(C),this.count=this.features.length,this._fireComplete(),2===z)this.onSetFeatures()}else{this.features=C;this.count=C.length;this.selectedIndex=0;this._fireComplete();if(2===z)this.onSetFeatures();this.select(0)}else if(this._fireComplete(),
2===z)this.onSetFeatures()}else this.features=C,this.count=C.length,this.selectedIndex=0,this.onSetFeatures(),this.select(0)},_getSizeInfo:function(z){return z?z.sizeInfo||c.filter(z.visualVariables,t)[0]:null},_resetUpdateEndListeners:function(){this._featureLayers={};c.forEach(this._updateEndHandles,function(z){z.remove()});this._updateEndHandles=[]},_processFeatures:function(){c.forEach(this.features,function(z){(z=z.getLayer())&&!this._featureLayers[z.id]&&(1===z.currentMode||0===z.currentMode&&
6===z.mode)&&z.objectIdField&&z.hasXYFootprint&&z.queryFeatures&&(this._featureLayers[z.id]=z,z=z.on("update-end",x.hitch(this,this._fLyrUpdateEndHandler)),this._updateEndHandles.push(z))},this)},_fLyrUpdateEndHandler:function(z){if(!z.error){var C=this,y=z.target,D=y.getSelectedFeatures(),B=0===y.currentMode&&6===y.mode,u={},E=[];c.forEach(this.features,function(v){if(v.getLayer()===y){var A=v.attributes[y.objectIdField];u[A]=v;E.push(A)}});E.length&&(z=new b,z.objectIds=E,y.queryFeatures(z,function(v){c.forEach(v.features,
function(A){var F=u[A.attributes[y.objectIdField]],I=!1;F.geometry!==A.geometry||y.hasWebGLSurface()?(F.setGeometry(A.geometry),I=!0):B&&D&&-1!==c.indexOf(D,A)&&(I=!0);I&&this._highlighted&&F===this.getSelectedFeature()&&this._highlighted.setGeometry(A.geometry)},C)}))}},_checkFeatureResolution:function(){var z=this.getSelectedFeature(),C=this.map;if(z&&C){var y=z.getLayer();if(y){var D=z.getResolution();2===y.currentMode&&z.geometry&&D&&D>C.getResolution()&&(C=C.getResolutionForPopup(),(y=this._refetchFeature(z,
C,y))&&y.then(x.hitch(this,this._updateFeatureResolution,z,C)))}}},_refetchFeature:function(z,C,y){if(z=this._createQueryForCustomResolution(z,C,y))return y.queryFeatures(z).then(function(D){return D&&D.features[0]})},_createQueryForCustomResolution:function(z,C,y){y=y.objectIdField;var D=z.attributes;D=D&&y&&D[y];if(null==D)return null;var B=new b;B.objectIds=[D];B.maxAllowableOffset=C;B.outFields=[y];B.outSpatialReference=z.geometry.spatialReference;return B},_updateFeatureResolution:function(z,
C,y){z.getResolution()!==C&&(z.setResolution(C),z.setGeometry(y.geometry),this._highlighted&&z===this.getSelectedFeature()&&this._highlighted.setGeometry(z.geometry))}});w("extend-esri")&&(q.PopupBase=G);return G})},"esri/graphic":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ./kernel ./domUtils ./lang ./InfoTemplate ./geometry/jsonUtils ./symbols/jsonUtils".split(" "),function(G,x,c,r,h,w,q,n,f){function g(){}G=G(null,{declaredClass:"esri.Graphic",constructor:function(a,d,k,l){this._construct();
a&&!a.declaredClass?(this.geometry=a.geometry?n.fromJson(a.geometry):null,this.symbol=a.symbol?f.fromJson(a.symbol):null,this.attributes=a.attributes||null,this.infoTemplate=a.infoTemplate?new q(a.infoTemplate):null):(this.geometry=a,this.symbol=d,this.attributes=k,this.infoTemplate=l)},_geomVersion:0,_resolution:null,_shape:null,_bgShape:null,_dataAttrs:null,_layer:null,_sourceLayer:null,_graphicsLayer:null,_parentGraphic:null,_suspended:!1,size:null,visible:!0,_aggregationSourceLayer:null,_aggregationInfo:null,
_computedAttributes:null,_computedVersion:null,_computedGeomVersion:null,_isSnapTarget:!0,getParentGraphic:function(){return this._parentGraphic},setParentGraphic:function(a){this._parentGraphic=a},setSize:function(a){this.size=a;return this},getAggregationSourceLayer:function(){return this._aggregationSourceLayer},setAggregationSourceLayer:function(a){this._aggregationSourceLayer=a;return this},isAggregate:function(){return!!this._aggregationInfo},getAggregationInfo:function(){return this._aggregationInfo},
setAggregationInfo:function(a){this._aggregationInfo=a;return this},getChildGraphics:function(){var a=this.getAggregationSourceLayer();return a?a.getChildGraphics(this):[]},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(),d,k,l=a.length,m=[];for(k=0;k<l;k++)(d=a[k]&&
a[k].getNode())&&d.nodeType&&m.push(d);return m},getLayer:function(){return this._layer},getSourceLayer:function(){return this._sourceLayer||this._layer},clone:function(){var a=new this.constructor(this.toJson());a.visible=this.visible;a._layer=this._layer;a._sourceLayer=this._sourceLayer;a._aggregationSourceLayer=this._aggregationSourceLayer;a._aggregationInfo=this._aggregationInfo;a._resolution=this._resolution;return a},draw:function(){var a=this._graphicsLayer;a&&a._draw(this,!0);return this},
setGeometry:function(a){this.geometry=a;this._geomVersion++;var d=this._graphicsLayer;d&&(d._updateExtent(this),this.draw(),a&&"polyline"===a.type&&d._updateSVGMarkers());return this},setResolution:function(a){this._resolution=a;return this},getResolution:function(){return this._resolution},setSymbol:function(a,d){var k=this._graphicsLayer,l=this._shape;this.symbol=a;k&&(d&&l&&k._removeShape(this),this.draw());return this},setAttributes:function(a){this.attributes=a;this.clearCache();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(),d=a&&a.title;if(x.isFunction(d))d=d.call(a,this);else if(x.isString(d)){var k=(a=this.getLayer())&&a._getDateOpts;d=w.substitute(this.attributes,d,{first:!0,dateFormat:k&&k.call(a)})}return d},getContent:function(){var a=this.getInfoTemplate(),
d=a&&a.content;if(x.isFunction(d))d=d.call(a,this);else if(x.isString(d)){var k=(a=this.getLayer())&&a._getDateOpts;d=w.substitute(this.attributes,d,{dateFormat:k&&k.call(a)})}return d},attr:function(a,d){null==d||this._dataAttrs||(this._dataAttrs={});this._dataAttrs&&(this._dataAttrs[a]=d,this._setDataAttr(a,d));return this},_isSuspended:function(){return this._suspended},_suspend:function(){this._suspended=!0;this.draw()},_resume:function(){this._suspended=!1;this.draw()},show:function(){this.visible=
!0;this.attr("data-hidden");var a;if(this.getShapes().length){var d=this.getNodes();var k=d.length;for(a=0;a<k;a++)h.show(d[a])}else this.draw();(d=this._graphicsLayer)&&d._graphicVisibilityChanged(this);return this},hide:function(){this.visible=!1;this.attr("data-hidden","");var a=this._graphicsLayer,d,k;if(a){if("canvas-2d"===a.surfaceType)a._removeShape(this);else{var l=this.getNodes();if(k=l.length)for(d=0;d<k;d++)h.hide(l[d])}a._graphicVisibilityChanged(this)}return this},toJson:function(){var a=
{};this.geometry&&(a.geometry=this.geometry.toJson());this.attributes&&(a.attributes=x.mixin({},this.attributes));this.symbol&&(a.symbol=this.symbol.toJson());this.infoTemplate&&(a.infoTemplate=this.infoTemplate.toJson());return a},_setDataAttr:function(a,d){var k=this.getNodes(),l,m=k.length;for(l=0;l<m;l++)this._setDOMDataAttr(k[l],a,d)},_setDOMDataAttr:function(a,d,k){null==k?a.removeAttribute(d):a.setAttribute(d,k)},_applyDataAttrs:function(){var a=this._dataAttrs;if(a){var d=this.getNodes(),
k,l=d.length;for(k=0;k<l;k++)for(var m in a)this._setDOMDataAttr(d[k],m,a[m])}},_getViewInfo:function(a){return(a=(a=a||this.getLayer())&&a.getMap())&&a.getViewInfo()},evaluateExpression:function(a,d){return this._getDataValue(a._attributeDef,a._attributeCache,null,null,a,d)},_getDataValue:function(a,d,k,l,m,e){var b=d.id,p=this.attributes,t=a.field,z=d.isNumeric,C=null;if(b){var y=this._computedAttributes,D=this._computedVersion,B=this._computedGeomVersion;l=this._getViewInfo(l);var u=!(!m||!m.async),
E=e&&e.skipCache||u,v=!e||!1!==e.strictReturnType,A=d.dependsOnView||d.isJSFunc,F=d.dependsOnGeometry;y||(y=this._computedAttributes={});A&&!D&&(D=this._computedVersion={});F&&!B&&(B=this._computedGeomVersion={});var I=A&&D[b]!==l.version||F&&B[b]!==this._geomVersion;C=y[b];if(void 0===C||I||E)C=null,d.hasExpr?C=m?m.evaluate(e&&e.context):k.executeFunction(d.compiledFunc,k.createExecContext(this,l)):d.isJSFunc?C=t(this,a):p&&(C=p[t],z&&this._isValidNumber(C)&&(d=a.normalizationType||"field",k=C,C=
null,m=a.normalizationTotal,a=p[a.normalizationField],"log"===d&&0!==k?C=Math.log(k)*Math.LOG10E:"percent-of-total"===d&&this._isValidNumber(m)&&0!==m?C=k/m*100:"field"===d&&this._isValidNumber(a)&&0!==a&&(C=k/a))),v&&(u?z&&(this._construct(),C=C.then(this._sanitizeNumericValue)):C=this._sanitizeValue(C,z)),E||(y[b]=C,A&&(D[b]=l.version),F&&(B[b]=this._geomVersion))}else p&&(C=this._sanitizeValue(p[t],z));return C},_sanitizeValue:function(a,d){d&&!this._isValidNumber(a)&&(a=null);return a},_sanitizeNumericValue:function(a){return this._sanitizeValue(a,
!0)},_construct:function(){this._constructed||(this._sanitizeNumericValue=x.hitch(this,this._sanitizeNumericValue),this._constructed=!0)},_isValidNumber:function(a){return"number"===typeof a&&!isNaN(a)&&Infinity!==a&&-Infinity!==a},clearCache:function(a){if(null!=a){var d=this._computedAttributes,k=this._computedVersion,l=this._computedGeomVersion;d&&(d[a]=void 0);k&&(k[a]=void 0);l&&(l[a]=void 0)}else this._computedAttributes=this._computedVersion=this._computedGeomVersion=null}});G.prototype.getShape=
G.prototype.getDojoShape;g.prototype=G.prototype;G.simpleConstructor=g;c("extend-esri")&&(r.Graphic=G);return G})},"esri/InfoTemplate":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","./kernel","./lang"],function(G,x,c,r,h){G=G(null,{declaredClass:"esri.InfoTemplate",constructor:function(w,q){w&&x.isObject(w)&&!x.isFunction(w)?x.mixin(this,w):(this.title=w||"${*}",this.content=q||"${*}")},setTitle:function(w){this.title=w;return this},setContent:function(w){this.content=w;return this},
toJson:function(){return h.fixJson({title:this.title,content:this.content})}});c("extend-esri")&&(r.InfoTemplate=G);return G})},"esri/symbols/jsonUtils":function(){define("dojo/_base/lang dojo/_base/array dojo/has ../kernel ./SimpleMarkerSymbol ./PictureMarkerSymbol ./SimpleLineSymbol ./CartographicLineSymbol ./SimpleFillSymbol ./PictureFillSymbol ./TextSymbol".split(" "),function(G,x,c,r,h,w,q,n,f,g,a){var d={createDefaultSymbol:function(k){switch(k){case "esriGeometryPoint":case "esriGeometryMultipoint":var l=
d.createDefaultMarkerSymbol();break;case "esriGeometryPolyline":l=d.createDefaultLineSymbol();break;case "esriGeometryPolygon":case "esriGeometryEnvelope":case "esriGeometryMultiPatch":l=d.createDefaultFillSymbol()}return l},createDefaultMarkerSymbol:function(){return new h},createDefaultLineSymbol:function(){return new q},createDefaultFillSymbol:function(){return new f},getFirstSupportedSymbol:function(k){var l;x.some(k,function(m){m&&-1<d.supportedSymbolTypes.indexOf(m.type)&&(l=m);return!!l});
return l},isPointSymbol:function(k){return k?-1<d.supportedPointSymbolTypes.indexOf(k.type):!1},supportedPointSymbolTypes:["esriSMS","esriPMS","esriTS"],supportedSymbolTypes:"esriSMS esriPMS esriTS esriSLS esriCLS esriSFS esriPFS".split(" "),fromJson:function(k,l){var m=null;switch(k.type){case "esriSMS":m=new h(k);break;case "esriPMS":m=new w(k);break;case "esriTS":m=new a(k);break;case "esriSLS":m=void 0!==k.cap?new n(k):new q(k);break;case "esriCLS":m=new n(k);break;case "esriSFS":m=new f(k);break;
case "esriPFS":m=new g(k);break;default:m=(k=l&&l.geometryType)?d.createDefaultSymbol(k):null}return m},getShapeDescriptors:function(k){return k&&k.getShapeDescriptors?k.getShapeDescriptors():{defaultShape:null,fill:null,stroke:null}}};c("extend-esri")&&G.mixin(G.getObject("symbol",!0,r),d);return d})},"esri/symbols/PictureMarkerSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang ../urlUtils ./MarkerSymbol".split(" "),function(G,x,c,r,h,w,q,n){var f=
{url:"",width:12,height:12,angle:0,xoffset:0,yoffset:0};G=G(n,{declaredClass:"esri.symbol.PictureMarkerSymbol",type:"picturemarkersymbol",constructor:function(g,a,d){g?x.isString(g)?(this.url=g,a&&(this.width=a),d&&(this.height=d)):(this.width=r.pt2px(null==g.width?f.width:g.width),this.height=r.pt2px(null==g.height?f.height:g.height),a=g.imageData,9>c("ie")||!a||(d=this.url,this.url="data:"+(g.contentType||"image")+";base64,"+a,this.imageData=d)):(x.mixin(this,f),this.width=r.pt2px(this.width),this.height=
r.pt2px(this.height))},getStroke:function(){return null},getFill:function(){return null},setWidth:function(g){this.width=g;return this},setHeight:function(g){this.height=g;return this},setUrl:function(g){g!==this.url&&(delete this.imageData,delete this.contentType);this.url=g;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 g=
this.url,a=this.imageData;if(0===g.indexOf("data:")){var d=g;g=a;a=d.indexOf(";base64,")+8;a=d.substr(a)}!x.isString(g)||0!==g.indexOf("/")&&0!==g.indexOf("//")&&0!==g.indexOf("./")&&0!==g.indexOf("../")||(g=q.getAbsoluteUrl(g));d=r.px2pt(this.width);d=isNaN(d)?void 0:d;var k=r.px2pt(this.height);k=isNaN(k)?void 0:k;g=w.fixJson(x.mixin(this.inherited("toJson",arguments),{type:"esriPMS",url:g,imageData:a,contentType:this.contentType,width:d,height:k}));delete g.color;delete g.size;g.imageData||delete g.imageData;
return g}});G.defaultProps=f;c("extend-esri")&&(x.setObject("symbol.PictureMarkerSymbol",G,h),h.symbol.defaultPictureMarkerSymbol=f);return G})},"esri/symbols/CartographicLineSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has dojox/gfx/_base ../kernel ../lang ./SimpleLineSymbol".split(" "),function(G,x,c,r,h,w,q,n){var f={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"},g={color:[0,0,0,1],style:f.STYLE_SOLID,width:1,cap:f.CAP_BUTT,join:f.JOIN_MITER,miterLimit:10};G=G(n,{declaredClass:"esri.symbol.CartographicLineSymbol",type:"cartographiclinesymbol",_caps:{butt:"esriLCSButt",
round:"esriLCSRound",square:"esriLCSSquare"},_joins:{miter:"esriLJSMiter",round:"esriLJSRound",bevel:"esriLJSBevel"},constructor:function(a,d,k,l,m,e){a?x.isString(a)?(this.style=a,d&&(this.color=d),void 0!==k&&(this.width=k),l&&(this.cap=l),m&&(this.join=m),void 0!==e&&(this.miterLimit=e)):(this.cap=q.valueOf(this._caps,a.cap),this.join=q.valueOf(this._joins,a.join),this.width=h.pt2px(a.width),this.miterLimit=h.pt2px(a.miterLimit)):(x.mixin(this,g),this.color=new c(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 x.mixin(this.inherited("getStroke",arguments),{cap:this.cap,join:this.join===f.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 q.fixJson(x.mixin(this.inherited("toJson",arguments),{type:"esriCLS",cap:this._caps[this.cap],join:this._joins[this.join],miterLimit:a}))}});x.mixin(G,f);G.defaultProps=g;r("extend-esri")&&(x.setObject("symbol.CartographicLineSymbol",G,w),w.symbol.defaultCartographicLineSymbol=g);return G})},"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(G,x,c,r,h,w,q,n,f,g){var a={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"},d={style:a.STYLE_SOLID,color:[0,0,0,.25]};G=G(n,{declaredClass:"esri.symbol.SimpleFillSymbol",type:"simplefillsymbol",
_styles:{solid:"esriSFSSolid",none:"esriSFSNull",horizontal:"esriSFSHorizontal",vertical:"esriSFSVertical",forwarddiagonal:"esriSFSForwardDiagonal",backwarddiagonal:"esriSFSBackwardDiagonal",cross:"esriSFSCross",diagonalcross:"esriSFSDiagonalCross"},constructor:function(k,l,m){k?x.isString(k)?(this.style=k,void 0!==l&&(this.outline=l),void 0!==m&&(this.color=m)):this.style=q.valueOf(this._styles,k.style):(x.mixin(this,d),this.outline=new f(this.outline),this.color=new c(this.color))},setStyle:function(k){this.style=
k;return this},getStroke:function(){return this.outline&&this.outline.getStroke()},getFill:function(){var k=this.style;return k===a.STYLE_NULL?null:k===a.STYLE_SOLID?this.color:x.mixin({},h.defaultPattern,{src:g.toUrl("../images/symbol/sfs/"+k+".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 Z"},fill:this.getFill(),stroke:this.getStroke()}},toJson:function(){return q.fixJson(x.mixin(this.inherited("toJson",
arguments),{type:"esriSFS",style:this._styles[this.style]}))}});x.mixin(G,a);G.defaultProps=d;r("extend-esri")&&(x.setObject("symbol.SimpleFillSymbol",G,w),w.symbol.defaultSimpleFillSymbol=d);return G})},"esri/symbols/FillSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ./Symbol ./SimpleLineSymbol".split(" "),function(G,x,c,r,h,w){G=G(h,{declaredClass:"esri.symbol.FillSymbol",constructor:function(q){q&&x.isObject(q)&&q.outline&&(this.outline=new w(q.outline))},setOutline:function(q){this.outline=
q;return this},toJson:function(){var q=this.inherited("toJson",arguments);this.outline&&(q.outline=this.outline.toJson());return q}});c("extend-esri")&&x.setObject("symbol.FillSymbol",G,r);return G})},"esri/symbols/PictureFillSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang ../urlUtils ./FillSymbol".split(" "),function(G,x,c,r,h,w,q,n){var f={xoffset:0,yoffset:0,width:12,height:12};G=G(n,{declaredClass:"esri.symbol.PictureFillSymbol",type:"picturefillsymbol",
xscale:1,yscale:1,xoffset:0,yoffset:0,constructor:function(g,a,d,k){g?x.isString(g)?(this.url=g,void 0!==a&&(this.outline=a),void 0!==d&&(this.width=d),void 0!==k&&(this.height=k)):(this.xoffset=r.pt2px(g.xoffset),this.yoffset=r.pt2px(g.yoffset),this.width=r.pt2px(g.width),this.height=r.pt2px(g.height),a=g.imageData,9>c("ie")||!a||(d=this.url,this.url="data:"+(g.contentType||"image")+";base64,"+a,this.imageData=d)):(x.mixin(this,f),this.width=r.pt2px(this.width),this.height=r.pt2px(this.height))},
setWidth:function(g){this.width=g;return this},setHeight:function(g){this.height=g;return this},setOffset:function(g,a){this.xoffset=g;this.yoffset=a;return this},setUrl:function(g){g!==this.url&&(delete this.imageData,delete this.contentType);this.url=g;return this},setXScale:function(g){this.xscale=g;return this},setYScale:function(g){this.yscale=g;return this},getStroke:function(){return this.outline&&this.outline.getStroke()},getFill:function(){return x.mixin({},r.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 Z"},fill:this.getFill(),stroke:this.getStroke()}},toJson:function(){var g=this.url,a=this.imageData;if(0===g.indexOf("data:")){var d=g;g=a;a=d.indexOf(";base64,")+8;a=d.substr(a)}!x.isString(g)||0!==g.indexOf("/")&&0!==g.indexOf("//")&&0!==g.indexOf("./")&&0!==g.indexOf("../")||(g=q.getAbsoluteUrl(g));
d=r.px2pt(this.width);d=isNaN(d)?void 0:d;var k=r.px2pt(this.height);k=isNaN(k)?void 0:k;var l=r.px2pt(this.xoffset);l=isNaN(l)?void 0:l;var m=r.px2pt(this.yoffset);m=isNaN(m)?void 0:m;g=w.fixJson(x.mixin(this.inherited("toJson",arguments),{type:"esriPFS",url:g,imageData:a,contentType:this.contentType,width:d,height:k,xoffset:l,yoffset:m,xscale:this.xscale,yscale:this.yscale}));g.imageData||delete g.imageData;return g}});G.defaultProps=f;c("extend-esri")&&(x.setObject("symbol.PictureFillSymbol",G,
h),h.symbol.defaultPictureFillSymbol=f);return G})},"esri/symbols/TextSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ../lang ../Color ./Symbol ./Font".split(" "),function(G,x,c,r,h,w,q,n,f){var g={type:"textsymbol",x:0,y:0,text:"",rotated:!1,kerning:!0,color:[0,0,0,1],font:r.defaultFont,angle:0,xoffset:0,yoffset:0,horizontalAlignment:"center"},a={start:"left",middle:"center",end:"right"},d={left:"start",center:"middle",right:"end",justify:"start"},
k={top:"text-before-edge",middle:"central",baseline:"alphabetic",bottom:"text-after-edge"},l=document.createElement("canvas");G=G(n,{declaredClass:"esri.symbol.TextSymbol",angle:0,xoffset:0,yoffset:0,constructor:function(m,e,b){x.mixin(this,g);this.font=new f(this.font);this.color=new q(this.color);m&&(x.isObject(m)?(x.mixin(this,m),this.color&&w.isDefined(this.color[0])&&(this.color=q.toDojoColor(this.color)),this.type="textsymbol",this.font=new f(this.font),this.xoffset=r.pt2px(this.xoffset),this.yoffset=
r.pt2px(this.yoffset),this.angle&&(this.angle*=-1),this.haloSize&&(this.haloSize=r.pt2px(this.haloSize)),this.haloColor&&(this.haloColor=q.toDojoColor(this.haloColor))):(this.text=m,e&&(this.font=e),b&&(this.color=b)));this.setAlign(this.align||this.getSVGAlign())},setFont:function(m){this.font=m;return this},setSize:function(m){this.font.size=m;return this},setAngle:function(m){this.angle=m;return this},setOffset:function(m,e){this.xoffset=m;this.yoffset=e;return this},setHaloColor:function(m){this.haloColor=
m;return this},setHaloSize:function(m){this.haloSize=m;return this},setAlign:function(m){this.align=m;this.setHorizontalAlignment(m&&a[m.toLowerCase()]||"center");return this},setHorizontalAlignment:function(m){this.horizontalAlignment=m;return this},getSVGAlign:function(){var m=this.horizontalAlignment;return m=m&&d[m.toLowerCase()]||"middle"},setVerticalAlignment:function(m){this.verticalAlignment=m;return this},getSVGBaseline:function(){var m=this.verticalAlignment;return m&&k[m.toLowerCase()]||
"alphabetic"},getSVGBaselineShift:function(){return"bottom"===this.verticalAlignment?"super":null},setDecoration:function(m){this.decoration=m;this.font||this.setFont(new f);this.font.setDecoration(m);return this},setRotated:function(m){this.rotated=m;return this},setKerning:function(m){this.kerning=m;return this},setText:function(m){this.text=m;return this},getStroke:function(){return null},getFill:function(){return this.color},getWidth:function(){var m=l&&l.getContext&&l.getContext("2d");if(m){var e=
this.font;m.font=(e.style?e.style:r.defaultFont.style)+" "+(e.weight?e.weight:r.defaultFont.weight)+" "+(e.size?e.size:r.defaultFont.size)+"px "+(e.family?e.family:r.defaultFont.family);return m.measureText(this.text).width}m=this.getHeight();e=0;var b;for(b=0;b<this.text.length;b++){var p=this.text.charAt(b);e=p==p.toUpperCase()?e+.7*m:e+.5*m}return e},getHeight:function(){return r.normalizedLength(this.font.size)},getShapeDescriptors:function(){var m=this.font;if(m){var e={};m.size&&(e.size=m.size);
m.style&&(e.style=m.style);m.variant&&(e.variant=m.variant);m.decoration&&(e.decoration=m.decoration);m.weight&&(e.weight=m.weight);m.family&&(e.family=m.family)}return{defaultShape:{type:"text",text:this.text,x:0,y:this.getHeight()/4,align:"middle",decoration:this.decoration||m&&m.decoration,rotated:this.rotated,kerning:this.kerning},font:e,fill:this.getFill(),stroke:this.getStroke()}},toJson:function(){var m=r.px2pt(this.xoffset),e=r.px2pt(this.yoffset),b=r.px2pt(this.haloSize);m=isNaN(m)?void 0:
m;e=isNaN(e)?void 0:e;b=isNaN(b)?void 0:b;return w.fixJson(x.mixin(this.inherited("toJson",arguments),{type:"esriTS",backgroundColor:this.backgroundColor,borderLineColor:this.borderLineColor,borderLineSize:this.borderLineSize,haloSize:b,haloColor:this.haloColor&&q.toJsonColor(this.haloColor),verticalAlignment:this.verticalAlignment,horizontalAlignment:this.horizontalAlignment,rightToLeft:this.rightToLeft,width:this.width,angle:this.angle&&-1*this.angle,xoffset:m,yoffset:e,text:this.text,rotated:this.rotated,
kerning:this.kerning,font:this.font.toJson()}))}});x.mixin(G,{ALIGN_START:"start",ALIGN_MIDDLE:"middle",ALIGN_END:"end",DECORATION_NONE:"none",DECORATION_UNDERLINE:"underline",DECORATION_OVERLINE:"overline",DECORATION_LINETHROUGH:"line-through"});G.defaultProps=g;c("extend-esri")&&(x.setObject("symbol.TextSymbol",G,h),h.symbol.defaultTextSymbol=g);return G})},"esri/symbols/Font":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang".split(" "),function(G,
x,c,r,h,w){G=G(null,{declaredClass:"esri.symbol.Font",constructor:function(q,n,f,g,a){q?x.isObject(q)?x.mixin(this,q):(this.size=q,parseFloat(this.size)==this.size&&(this.size+="px"),void 0!==n&&(this.style=n),void 0!==f&&(this.variant=f),void 0!==g&&(this.weight=g),void 0!==a&&(this.family=a)):x.mixin(this,r.defaultFont);parseFloat(this.size)==this.size&&(this.size+="pt");9>c("ie")&&this.size&&x.isString(this.size)&&-1<this.size.indexOf("em")&&(this.size=r.pt2px(12*parseFloat(this.size))+"px");this.size=
this._convert2PxSize(this.size)},setSize:function(q){this.size=this._convert2PxSize(q);return this},_convert2PxSize:function(q){var n;parseFloat(q)==q?n=q:x.isString(q)&&(-1<q.indexOf("pt")?n=r.pt2px(parseFloat(q)):-1<q.indexOf("px")?n=parseFloat(q):-1<q.indexOf("em")?n=r.pt2px(12*parseFloat(q)):-1<q.indexOf("%")&&(n=r.pt2px(.12*parseFloat(q))));return n},setStyle:function(q){this.style=q;return this},setVariant:function(q){this.variant=q;return this},setWeight:function(q){this.weight=q;return this},
setFamily:function(q){this.family=q;return this},setDecoration:function(q){this.decoration=q;return this},toJson:function(){return w.fixJson({size:r.px2pt(this.size),style:this.style,decoration:this.decoration,weight:this.weight,family:this.family})}});x.mixin(G,{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"});c("extend-esri")&&x.setObject("symbol.Font",
G,h);return G})},"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(G,x,c,r,h,w,q,n){var f=G(null,{declaredClass:"esri.tasks.Query",constructor:function(){this.spatialRelationship=f.SPATIAL_REL_INTERSECTS},text:null,where:"",geometry:null,groupByFieldsForStatistics:null,
objectIds:null,returnGeometry:!1,returnCentroid:null,returnDistinctValues:!1,returnExceededLimitFeatures:null,maxRecordCountFactor:null,orderByFields:null,outSpatialReference:null,outFields:null,outStatistics:null,timeExtent:null,relationParam:null,pixelSize:null,fullText:null,distance:null,units:null,resultOffset:null,resultRecordCount:null,resultType:null,cacheHint:null,sqlFormat:null,quantizationParameters: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(g){var a={text:this.text,where:this.where,returnGeometry:this.returnGeometry,spatialRel:this.spatialRelationship,maxAllowableOffset:this.maxAllowableOffset,geometryPrecision:this.geometryPrecision,sqlFormat:this.sqlFormat},d=g&&g.geometry||this.geometry,k=this.objectIds,l=this.outFields,m=this.outSpatialReference,e=this.groupByFieldsForStatistics,b=this.orderByFields,
p=this.outStatistics;g=this.distance;d&&(a.geometry=d,a.geometryType=q.getJsonType(d),a.inSR=d.spatialReference.wkid||r.toJson(d.spatialReference.toJson()));k&&(a.objectIds=k.join(","));l&&(a.outFields=l.join(","));null!=this.returnCentroid&&(a.returnCentroid=this.returnCentroid);this.returnDistinctValues&&(a.returnDistinctValues=!0);null!=this.returnExceededLimitFeatures&&(a.returnExceededLimitFeatures=this.returnExceededLimitFeatures);null!=this.maxRecordCountFactor&&(a.maxRecordCountFactor=this.maxRecordCountFactor);
e&&(a.groupByFieldsForStatistics=e.join(","));b&&(a.orderByFields=b.join(","));if(p){var t=[];c.forEach(p,function(z){t.push(z.toJson())});a.outStatistics=r.toJson(t)}m?a.outSR=m.wkid||r.toJson(m.toJson()):d&&(a.outSR=d.spatialReference.wkid||r.toJson(d.spatialReference.toJson()));d=this.timeExtent;a.time=d?d.toJson().join(","):null;(d=this.relationParam)&&this.spatialRelationship===f.SPATIAL_REL_RELATION&&(a.relationParam=d);g&&(a.distance=this.distance,this.hasOwnProperty("units")?a.units=this._units[this.units]||
this._units.meters:(console.warn("esri/tasks/query::no distance unit provided, defaulting to meters"),a.units=this._units.meters));this.hasOwnProperty("start")&&(a.resultOffset=this.start,a.resultRecordCount=10,""===a.where&&(a.where="1\x3d1"));this.hasOwnProperty("num")&&(a.resultRecordCount=this.num);a.resultType=this.resultType;null!=this.cacheHint&&(a.cacheHint=this.cacheHint);a.fullText=this.fullText?r.toJson(this.fullText):null;a.pixelSize=this.pixelSize?r.toJson(this.pixelSize.toJson()):null;
a.multipatchOption=this.multipatchOption;this.quantizationParameters&&(a.quantizationParameters=r.toJson(this.quantizationParameters));a._ts=this._ts;return a}});x.mixin(f,n);h("extend-esri")&&x.setObject("tasks.Query",f,w);return f})},"esri/tasks/SpatialRelationship":function(){define(["dojo/_base/lang","dojo/has","../kernel"],function(G,x,c){var r={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"};x("extend-esri")&&G.setObject("tasks._SpatialRelationship",r,c);return r})},"esri/plugins/popupManager":function(){define(["../PopupManager"],function(G){return{add:function(x,c){x.popupManager||(x.popupManager=new G(c),x.popupManager.setMap(x))},remove:function(x){var c=
x.popupManager;c&&(c.unsetMap(),x.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 esri/sniff dojo/on dojo/promise/all dojo/Stateful require".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m){var e;n=n(l,{declaredClass:"esri.PopupManager",enabled:!1,map:null,_mapClickHandle:null,_featureLayersCache:{},constructor:function(b){this._mapClickHandler=
g.hitch(this,this._mapClickHandler)},setMap:function(b){if(this.map)if(b!==this.map)this.unsetMap();else return;this.map=b;this._setupClickHandler()},unsetMap:function(){this.map&&(this.map=null);this._mapClickHandle&&(this._mapClickHandle.remove(),this._mapClickHandle=null)},getMapLayer:function(b){var p;if(b&&(p=b.getLayer())&&(b=p.id,this._featureLayersCache[b])){var t=b.lastIndexOf("_");-1<t&&(b=b.substring(0,t),p=this.map.getLayer(b))}return p},_enabledSetter:function(b){this.enabled=b;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(b){var p=this.map.infoWindow,t=b.graphic;p&&this.map.loaded&&(p.clearFeatures&&p.setFeatures?this._showPopup(b):t&&t.getInfoTemplate()&&this._showInfoWindow(t,b.mapPoint))},_showPopup:function(b){var p=this.map,t=p.infoWindow,z=this,C=[],y=[p.graphics].concat(q.map(p.graphicsLayerIds,
p.getLayer,p));q.forEach(y,function(u){var E=u.getFeatureReduction&&u.getFeatureReduction();u&&u.loaded&&u.infoTemplate&&!u.suspended&&(!E||!z._isReductionEnabled(u)||E.infoTemplate&&!E.disablePopup)&&C.push(u)});var D=[];q.forEach(p.layerIds,function(u){(u=p.getLayer(u))&&u.loaded&&!u.suspended&&(z._isImageServiceLayer(u)&&u.infoTemplate?C.push(u):"esri.layers.WMSLayer"===u.declaredClass&&u.getFeatureInfoURL?C.push(u):"esri.layers.ArcGISDynamicMapServiceLayer"!==u.declaredClass&&"esri.layers.ArcGISTiledMapServiceLayer"!==
u.declaredClass||!u.infoTemplates||D.push(u))});var B=p.getResolutionForPopup();this._getSubLayerFeatureLayers(D,B).then(function(u){C=C.concat(u);u=b.graphic&&b.graphic.getParentGraphic()||b.graphic;var E=null;u&&u.getInfoTemplate()&&!z._isImageServiceLayer(u.getLayer())&&(E=u);if(C.length||E){var v=z._calculateClickTolerance(C),A=b.screenPoint;u=p.toMap(new x(A.x-v,A.y+v));v=p.toMap(new x(A.x+v,A.y-v));var F=new G(u.x,u.y,v.x,v.y,p.spatialReference);if(F=F.intersects(p.extent)){var I=new h,N=!!E,
da=!0;u=q.map(C,function(ba){I.timeExtent=ba.useMapTime?p.timeExtent:null;var na=z._isReductionEnabled(ba);ba=na?ba.getFeatureReductionLayer():ba;var xa=z._featureLayersCache[ba.id];if(z._isImageServiceLayer(ba)){I.geometry=b.mapPoint;da=!1;var W={rasterAttributeTableFieldPrefix:"Raster.",returnDomainValues:!0};z._isTiledImageServiceLayer(ba)?W=ba.fetchPopupFromTiles(I):(W=ba.queryVisibleRasters(I,W),W.addCallback(function(){var ha=ba.getVisibleRasters();N=N||0<ha.length;return ha}))}else if("esri.layers.WMSLayer"===
ba.declaredClass){W=new f;var la=ba._getPopupGraphic(p,b.screenPoint);la?(W.resolve([la]),N=!0):W.resolve([])}else xa||"function"===typeof ba.queryFeatures&&(0===ba.currentMode||1===ba.currentMode)?(I.geometry=F,W=ba.queryFeatures(I),W.addCallback(function(ha){var sa=[];q.forEach(ha.features,function(Ca){Ca.visible&&(sa.push(Ca),xa&&Ca.setResolution(B))});N=N||0<sa.length;return sa})):(W=new f,la=q.filter(ba.graphics,function(ha){return ha&&ha.visible&&F.intersects(ha.geometry)}),na&&z._isParentLayer(ba,
E)&&(na=z._findGraphicById(la,E,"cluster_id"))&&(E=na),N=N||0<la.length,W.resolve(la));return W});E&&(v=new f,v.resolve([E]),u.unshift(v));q.some(u,function(ba){return!ba.isFulfilled()})||N?(t.setFeatures(u),t.show(b.mapPoint,{closestFirst:da})):(t.hide(),t.clearFeatures())}}})},_getSubLayerFeatureLayers:function(b,p,t){p=p||null;var z=t||new f,C=[];t=b.length;var y=this.map.getScale(),D=!1,B=this,u=0;a:for(;u<t;u++){var E=b[u],v=E.dynamicLayerInfos||E.layerInfos;if(v){var A=null;E._params&&(E._params.layers||
E._params.dynamicLayers)&&(A=E.visibleLayers);A=r._getVisibleLayers(v,A);for(var F=r._getLayersForScale(y,v),I=v.length,N=0;N<I;N++){var da=v[N],ba=da.id,na=E.infoTemplates[ba];if(!da.subLayerIds&&na&&na.infoTemplate&&-1<q.indexOf(A,ba)&&-1<q.indexOf(F,ba)){if(!e){D=!0;break a}var xa=E.id+"_"+ba,W=this._featureLayersCache[xa];W&&W.loadError||(W||((W=na.layerUrl)||(W=da.source?this._getLayerUrl(E.url,"/dynamicLayer"):this._getLayerUrl(E.url,ba)),W=new e(W,{parentLayer:E,id:xa,drawMode:!1,mode:e.MODE_SELECTION,
outFields:this._getOutFields(na.infoTemplate),resourceInfo:na.resourceInfo,source:da.source}),this._featureLayersCache[xa]=W),W.setDefinitionExpression(E.layerDefinitions&&E.layerDefinitions[ba]),W.setGDBVersion(E.gdbVersion),W.setInfoTemplate(na.infoTemplate),W.setMaxAllowableOffset(p),W.setUseMapTime(!!E.useMapTime),E.layerDrawingOptions&&E.layerDrawingOptions[ba]&&E.layerDrawingOptions[ba].renderer&&W.setRenderer(E.layerDrawingOptions[ba].renderer),C.push(W))}}}}if(D){var la=new f;m(["./layers/FeatureLayer"],
function(sa){e=sa;la.resolve()});la.then(function(){B._getSubLayerFeatureLayers(b,p,z)})}else{var ha=[];q.forEach(C,function(sa){if(!sa.loaded){var Ca=new f;d.once(sa,"load, error",function(){Ca.resolve()});ha.push(Ca.promise)}});ha.length?k(ha).then(function(){C=q.filter(C,function(sa){return!sa.loadError&&sa.isVisibleAtScale(y)});z.resolve(C)}):(C=q.filter(C,function(sa){return sa.isVisibleAtScale(y)}),z.resolve(C))}return z.promise},_getLayerUrl:function(b,p){var t=b.indexOf("?");return-1===t?
b+"/"+p:b.substring(0,t)+"/"+p+b.substring(t)},_getOutFields:function(b){var p=b.info&&b.info.fieldInfos;if(p&&p.length&&"esri.dijit.PopupTemplate"===b.declaredClass){var t=[];q.forEach(p,function(z){var C=z.fieldName&&z.fieldName.toLowerCase();C&&"shape"!==C&&0!==C.indexOf("relationships/")&&t.push(z.fieldName)})}else t=["*"];return t},_calculateClickTolerance:function(b){var p=a("esri-touch")?9:6,t,z;q.forEach(b,function(C){if(t=C.renderer)"esri.renderer.SimpleRenderer"===t.declaredClass?((z=t.symbol)&&
z.xoffset&&(p=Math.max(p,Math.abs(z.xoffset))),z&&z.yoffset&&(p=Math.max(p,Math.abs(z.yoffset)))):"esri.renderer.UniqueValueRenderer"!==t.declaredClass&&"esri.renderer.ClassBreaksRenderer"!==t.declaredClass||q.forEach(t.infos,function(y){(z=y.symbol)&&z.xoffset&&(p=Math.max(p,Math.abs(z.xoffset)));z&&z.yoffset&&(p=Math.max(p,Math.abs(z.yoffset)))})});return p},_showInfoWindow:function(b,p){var t=this.map.infoWindow,z=b.geometry;p=z&&"point"===z.type?z:p;z=b.getContent();t.setTitle(b.getTitle());z&&
g.isString(z.id)&&(b=w.byId(z.id))&&b.set&&/_PopupRenderer/.test(b.declaredClass)&&b.set("showTitle",!1);t.setContent(z);t.show(p)},_findGraphicById:function(b,p,t){var z,C=(p=p.attributes)&&p[t];q.some(b,function(y){var D=y.attributes;D&&D[t]===C&&(z=y);return!!z});return z},_isParentLayer:function(b,p){p=p&&p.getLayer();return b&&p===b},_isReductionEnabled:function(b){return b&&b.isFeatureReductionActive&&b.isFeatureReductionActive()},_isImageServiceLayer:function(b){return"esri.layers.ArcGISImageServiceLayer"===
b.declaredClass||"esri.layers.ArcGISImageServiceVectorLayer"===b.declaredClass||"esri.layers.RasterXLayer"===b.declaredClass},_isTiledImageServiceLayer:function(b){return"esri.layers.RasterXLayer"===b.declaredClass}});a("extend-esri")&&(c.PopupManager=n);return n})},"esri/layerUtils":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/json","dojo/has","./kernel"],function(G,x,c,r,h){var w={_serializeLayerDefinitions:function(q,n){var f=[],g=/[:;]/;if(q&&(x.forEach(q,function(d,k){d&&
(f.push([k,d]),!n&&g.test(d)&&(n=!0))}),0<f.length)){if(n){var a={};x.forEach(f,function(d){a[d[0]]=d[1]});a=c.toJson(a)}else a=[],x.forEach(f,function(d){a.push(d[0]+":"+d[1])}),a=a.join(";");return a}return null},_serializeTimeOptions:function(q,n){if(q){var f=[];x.forEach(q,function(g,a){g&&(g=g.toJson(),n&&-1!==x.indexOf(n,a)&&(g.useTime=!1),f.push('"'+a+'":'+c.toJson(g)))});if(f.length)return"{"+f.join(",")+"}"}},_getVisibleLayers:function(q,n){var f=[],g;if(!q)return f;if(n)for(f=n.concat(),
g=0;g<q.length;g++){n=q[g];var a=x.indexOf(q,n.id);n.subLayerIds&&-1<a&&(f.splice(a,1),f=f.concat(n.subLayerIds))}else f=this._getDefaultVisibleLayers(q);return f},_getDefaultVisibleLayers:function(q){var n=[],f;if(!q)return n;for(f=0;f<q.length;f++)0<=q[f].parentLayerId&&-1===x.indexOf(n,q[f].parentLayerId)&&x.some(q,function(g){return g.id===q[f].parentLayerId})||q[f].defaultVisibility&&n.push(q[f].id);return n},_getLayersForScale:function(q,n){var f=[];if(0<q&&n){var g;for(g=0;g<n.length;g++)if(!(0<=
n[g].parentLayerId&&-1===x.indexOf(f,n[g].parentLayerId)&&x.some(n,function(l){return l.id===n[g].parentLayerId}))&&0<=n[g].id){var a=!0,d=n[g].maxScale,k=n[g].minScale;if(0<d||0<k)0<d&&0<k?a=d<=q&&q<=k:0<d?a=d<=q:0<k&&(a=q<=k);a&&f.push(n[g].id)}}return f}};r("extend-esri")&&G.mixin(h,w);return w})},"esri/MapNavigationManager":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/event dojo/mouse dojo/keys dijit/focus ./kernel ./MouseEvents ./TouchEvents ./PointerEvents ./config ./sniff ./lang ./fx ./graphic ./tileUtils ./geometry/ScreenPoint ./geometry/Extent ./geometry/Rect ./geometry/mathUtils ./symbols/SimpleFillSymbol".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C,y,D){var B=r.connect,u=r.disconnect,E=l("chrome"),v=l("safari"),A=[q.NUMPAD_PLUS,61,187,q.NUMPAD_MINUS,173,189,q.UP_ARROW,q.NUMPAD_8,q.RIGHT_ARROW,q.NUMPAD_6,q.DOWN_ARROW,q.NUMPAD_2,q.LEFT_ARROW,q.NUMPAD_4,q.PAGE_UP,q.NUMPAD_9,q.PAGE_DOWN,q.NUMPAD_3,q.END,q.NUMPAD_1,q.HOME,q.NUMPAD_7];G=G(null,{declaredClass:"esri.MapNavigationManager",eventModel:"",constructor:function(F,I){this.map=F;x.mixin(this,I);I=F.__container;l("esri-pointer")?(this.pointerEvents=
new d(I,{map:F}),this.eventModel="pointer"):l("esri-touch")?(l("ios")||(this.mouseEvents=new g(I,{map:F})),this.touchEvents=new a(I,{map:F,mouseEvents:this.mouseEvents}),this.eventModel="touch"):(this.mouseEvents=new g(I,{map:F}),this.eventModel="mouse");this._zoomRect=new b(null,new D(k.defaults.map.zoomSymbol));this._keyDx=this._keyDy=0;this._adjustPinch=x.hitch(this,this._adjustPinch);this._adjustPinchEnd=x.hitch(this,this._adjustPinchEnd)},_panInit:function(F){var I=this.mouseEvents;w.isLeft(F)&&
this.map.isPan&&!F.shiftKey&&(this._dragOrigin=new t(0,0),x.mixin(this._dragOrigin,F.screenPoint),u(this._panStartHandle),u(this._panHandle),u(this._panEndHandle),this._panStartHandle=B(I,"onMouseDragStart",this,this._panStart),this._panHandle=B(I,"onMouseDrag",this,this._pan),this._panEndHandle=B(I,"onMouseUp",this,this._panEnd),E||v)&&(F.preventDefault(),n.curNode&&n.curNode.blur())},_panStart:function(F){this.map.setCursor("move");this.map.__panStart(F.screenPoint.x,F.screenPoint.y)},_pan:function(F){this.map.__pan(F.screenPoint.x-
this._dragOrigin.x,F.screenPoint.y-this._dragOrigin.y)},_panEnd:function(F){u(this._panStartHandle);u(this._panHandle);u(this._panEndHandle);this._panStartHandle=this._panHandle=this._panEndHandle=null;var I=this.map;I.__panning&&(I.__panEnd(F.screenPoint.x-this._dragOrigin.x,F.screenPoint.y-this._dragOrigin.y),I.resetMapCursor())},_zoomInit:function(F){var I=this.map,N=this.pointerEvents||this.mouseEvents;(w.isLeft(F)||F.pointerType)&&I.isRubberBandZoom&&F.shiftKey&&(I.setCursor("crosshair"),this._dragOrigin=
x.mixin({},F.screenPoint),this._zoomDir=F.ctrlKey||F.metaKey?-1:1,this.pointerEvents?(this._zoomHandle=B(N,"onSwipeMove",this,this._zoom),this._zoomEndHandle=B(N,"onSwipeEnd",this,this._zoomEnd)):(this._zoomHandle=B(N,"onMouseDrag",this,this._zoom),this._zoomEndHandle=B(N,"onMouseUp",this,this._zoomEnd)),E&&F.preventDefault())},_zoom:function(F){var I=this.map,N=this._normalizeRect(F).offset(I.__visibleRect.x,I.__visibleRect.y);F=I.graphics;var da=this._zoomRect;da.geometry||I.setCursor("crosshair");
da.geometry&&F.remove(da,!0);var ba=I.toMap(new t(N.x,N.y));N=I.toMap(new t(N.x+N.width,N.y+N.height));N=new C(ba.x,ba.y,N.x-ba.x,ba.y-N.y,I.spatialReference);N._originOnly=!0;da.setGeometry(N);F.add(da,!0)},_zoomEnd:function(F){var I=this._zoomRect,N=this.map,da=N.extent,ba=N.spatialReference;u(this._zoomHandle);u(this._zoomEndHandle);this._zoomHandle=this._zoomEndHandle=null;if(N._canZoom(this._zoomDir)&&I.getDojoShape()){N.graphics.remove(I);I.geometry=null;F=this._normalizeRect(F);F.x+=N.__visibleRect.x;
F.y+=N.__visibleRect.y;if(-1===this._zoomDir){var na=da.getWidth();F=(na*N.width/F.width-na)/2;ba=new z(da.xmin-F,da.ymin-F,da.xmax+F,da.ymax+F,ba)}else da=N.toMap({x:F.x,y:F.y+F.height}),F=N.toMap({x:F.x+F.width,y:F.y}),ba=new z(da.x,da.y,F.x,F.y,ba);N._extentUtil(null,null,ba)}I.getDojoShape()&&N.graphics.remove(I,!0);this._zoomDir=0;N.resetMapCursor()},_wheelZoom:function(F,I){var N=this.map;if(!I){if(N.smartNavigation&&!F.shiftKey&&!N._isPanningOrZooming()){N.disableScrollWheelZoom();this._setScrollWheelPan(!0);
this._wheelPan(F);return}I=F.timeStamp;if(!m.isDefined(I)||0>=I)I=(new Date).getTime();if(100>(this._mwts?I-this._mwts:I))return;this._mwts=I}N._canZoom(F.value)&&N._extentUtil({numLevels:F.value,mapAnchor:F.mapPoint,screenAnchor:F.screenPoint})},_wheelPan:function(F){var I=this.map;if(F.shiftKey&&!I._isPanningOrZooming())this._setScrollWheelPan(!1),I.enableScrollWheelZoom(),this._wheelZoom(F);else{var N=0,da=0;l("ff")?F.axis===F.HORIZONTAL_AXIS?N=-F.detail:da=-F.detail:(N=F.wheelDeltaX,da=F.wheelDeltaY);
I.translate(N,da)}},_setScrollWheelPan:function(F){this.map.isScrollWheelPan=F;this.mouseEvents&&this.mouseEvents.enableMouseWheel(F);u(this._mwMacHandle);this._mwMacHandle=null;F&&(this._mwMacHandle=B(this.mouseEvents||this.pointerEvents,"onMouseWheel",this,this._wheelPan))},_recenter:function(F){F.shiftKey&&!this.map._isPanningOrZooming()&&this.map.centerAt(F.mapPoint)},_recenterZoom:function(F){F.shiftKey&&!this.map._isPanningOrZooming()&&(F.value=F.ctrlKey||F.metaKey?-1:1,this._wheelZoom(F,!0))},
_dblClickZoom:function(F){this.map._isPanningOrZooming()||(F.value=1,this._wheelZoom(F,!0))},_twoFingerTap:function(F){this.map._isPanningOrZooming()||(F.value=-1,this._wheelZoom(F,!0))},_keyDown:function(F){var I=F.keyCode,N=this.map;if(-1!==c.indexOf(A,I)){if(I===q.NUMPAD_PLUS||61===I||187===I)N._extentUtil({numLevels:1});else if(I===q.NUMPAD_MINUS||173===I||189===I)N._extentUtil({numLevels:-1});else{N.__panning||N.__panStart(0,0);switch(I){case q.UP_ARROW:case q.NUMPAD_8:this._keyDy+=10;break;
case q.RIGHT_ARROW:case q.NUMPAD_6:this._keyDx-=10;break;case q.DOWN_ARROW:case q.NUMPAD_2:this._keyDy-=10;break;case q.LEFT_ARROW:case q.NUMPAD_4:this._keyDx+=10;break;case q.PAGE_UP:case q.NUMPAD_9:this._keyDx-=10;this._keyDy+=10;break;case q.PAGE_DOWN:case q.NUMPAD_3:this._keyDx-=10;this._keyDy-=10;break;case q.END:case q.NUMPAD_1:this._keyDx+=10;this._keyDy-=10;break;case q.HOME:case q.NUMPAD_7:this._keyDx+=10;this._keyDy+=10;break;default:return}N.__pan(this._keyDx,this._keyDy)}h.stop(F)}},_keyEnd:function(F){var I=
this.map;I.__panning&&F.keyCode!==q.SHIFT&&(I.__panEnd(this._keyDx,this._keyDy),this._keyDx=this._keyDy=0)},_swipeInit:function(F){var I=this.map;I=I._zoomAnim||I._panAnim;if(F.shiftKey)return!1;I&&I._active&&(I.stop(),I._fire("onEnd",[I.node]));this._dragOrigin=new t(0,0);x.mixin(this._dragOrigin,F.screenPoint);u(this._swipeHandle);u(this._swipeEndHandle);this._swipeHandle=B(this.touchEvents||this.pointerEvents,"onSwipeMove",this,this._swipe);this._swipeEndHandle=B(this.touchEvents||this.pointerEvents,
"onSwipeEnd",this,this._swipeEnd)},_swipe:function(F){var I=this.map;I.__panning?(this._panX=F.screenPoint.x,this._panY=F.screenPoint.y,I.__pan(F.screenPoint.x-this._dragOrigin.x,F.screenPoint.y-this._dragOrigin.y)):(I.setCursor("move"),I.__panStart(F.screenPoint.x,F.screenPoint.y))},_swipeEnd:function(F){u(this._swipeHandle);u(this._swipeEndHandle);this._swipeHandle=this._swipeEndHandle=null;var I=this.map;I.__panning&&(I.resetMapCursor(),I.__panEnd(F.screenPoint.x-this._dragOrigin.x,F.screenPoint.y-
this._dragOrigin.y))},_pinchInit:function(F){var I=this.map,N=I._zoomAnim||I._panAnim;N&&N._active?(N.stop(),N._fire("onEnd",[N.node])):I.__panning&&(F.screenPoint=new t(this._panX,this._panY),F.mapPoint=I.toMap(F.screenPoint),this._swipeEnd(F));u(this._pinchHandle);u(this._pinchEndHandle);this._pinchHandle=B(this.touchEvents||this.pointerEvents,"onPinchMove",this,this._pinch);this._pinchEndHandle=B(this.touchEvents||this.pointerEvents,"onPinchEnd",this,this._pinchEnd)},_pinch:function(F){var I=this.map;
if(F.screenPoints){this.currLength=y.getLength(F.screenPoints[0],F.screenPoints[1]);if(I.__zooming){var N=this.currLength/this._length;this._zoomStartExtent=this.__scaleExtent(I.extent,N,this._dragOrigin);I.__zoom(this._zoomStartExtent,N,this._dragOrigin)}else this._dragOrigin=new t((F.screenPoints[0].x+F.screenPoints[1].x)/2,(F.screenPoints[0].y+F.screenPoints[1].y)/2),this._length=this.currLength,I.__zoomStart(I.extent,this._dragOrigin);this._pinchScale=N;I._fireOnScale(this.currLength/this._length,
this._dragOrigin,!0)}},_pinchEnd:function(F){F=this.map;u(this._pinchHandle);u(this._pinchEndHandle);this._pinchHandle=this._pinchEndHandle=null;this._pinchScale=0;if(F.__zooming&&null===F._zoomAnim){var I=this.currLength/this._length,N=F.extent.getWidth();this._zoomAnimAnchor=F.toMap(this._dragOrigin);this._zoomStartExtent=this.__scaleExtent(F.extent,1/I,this._zoomAnimAnchor);if(F.__tileInfo){var da=p.getCandidateTileInfo(F,F.__tileInfo,this._zoomStartExtent),ba=F.__getExtentForLevel(da.lod.level,
this._zoomAnimAnchor),na=F.getMinZoom(),xa=F.getMaxZoom(),W=ba.extent;ba=ba.lod;var la=N/W.getWidth(),ha=da.lod.level;1>I?la>I&&ha--:la<I&&ha++;ha<na?ha=na:ha>xa&&(ha=xa);ha!==da.lod.level&&(ba=F.__getExtentForLevel(ha,this._zoomAnimAnchor),W=ba.extent,ba=ba.lod);this._zoomEndExtent=W;this._zoomEndLod=ba;F._zoomAnim=e.animateRange({range:{start:N/this._zoomStartExtent.getWidth(),end:la},duration:k.defaults.map.zoomDuration,rate:k.defaults.map.zoomRate,onAnimate:this._adjustPinch,onEnd:this._adjustPinchEnd});
F._zoomAnim.play();F._fireOnScale(F.extent.getWidth()/this._zoomEndExtent.getWidth(),this._dragOrigin)}else this._zoomEndExtent=this._zoomStartExtent,F._fireOnScale(F.extent.getWidth()/this._zoomEndExtent.getWidth(),this._dragOrigin),this._adjustPinchEnd()}},_adjustPinch:function(F){var I=this.__scaleExtent(this.map.extent,F,this._zoomAnimAnchor);this.map.__zoom(I,F,this._dragOrigin)},_adjustPinchEnd:function(){var F=this.map,I=F.extent.getWidth()/this._zoomEndExtent.getWidth(),N=this.__scaleExtent(F.extent,
1/I,this._zoomAnimAnchor),da=this._dragOrigin,ba=this._zoomEndLod;this._zoomStartExtent=this._zoomEndExtent=this._zoomEndLod=this._dragOrigin=F._zoomAnim=this._zoomAnimAnchor=null;F.__zoomEnd(N,I,da,ba,!0)},__scaleExtent:function(F,I,N){N=N||F.getCenter();I=F.expand(I);var da=F.xmin-(I.getWidth()-F.getWidth())*(N.x-F.xmin)/F.getWidth();N=F.ymax-(I.getHeight()-F.getHeight())*(N.y-F.ymax)/F.getHeight();return new z(da,N-I.getHeight(),da+I.getWidth(),N,F.spatialReference)},_normalizeRect:function(F){F=
F.screenPoint;var I=this._dragOrigin.x,N=this._dragOrigin.y;F=new C((F.x<I?F.x:I)-this.map.__visibleRect.x,(F.y<N?F.y:N)-this.map.__visibleRect.y,Math.abs(F.x-I),Math.abs(F.y-N));delete F.spatialReference;0===F.width&&(F.width=1);0===F.height&&(F.height=1);return F},setImmediateClick:function(F){switch(this.eventModel){case "mouse":this.mouseEvents.setImmediateClick(F);break;case "touch":this.touchEvents.setImmediateTap(F);this.mouseEvents&&this.mouseEvents.setImmediateClick(F);break;case "pointer":this.pointerEvents.setImmediateTap(F)}},
enablePan:function(){this.disablePan();switch(this.eventModel){case "mouse":this._panInitHandle=B(this.mouseEvents,"onMouseDown",this,this._panInit);break;case "touch":this._panInitHandle=B(this.mouseEvents,"onMouseDown",this,this._panInit);this._swipeInitHandle=B(this.touchEvents,"onSwipeStart",this,this._swipeInit);break;case "pointer":this._swipeInitHandle=B(this.pointerEvents,"onSwipeStart",this,this._swipeInit)}},disablePan:function(){u(this._panInitHandle);this._panInitHandle=null;u(this._swipeInitHandle);
this._swipeInitHandle=null},enableRubberBandZoom:function(){this.disableRubberBandZoom();this._zoomInitHandle=this.pointerEvents?B(this.pointerEvents,"onSwipeStart",this,this._zoomInit):B(this.mouseEvents,"onMouseDown",this,this._zoomInit)},disableRubberBandZoom:function(){u(this._zoomInitHandle);this._zoomInitHandle=null},enablePinchZoom:function(){this.disablePinchZoom();if("touch"===this.eventModel||"pointer"===this.eventModel)this._pinchInitHandle=B(this.touchEvents||this.pointerEvents,"onPinchStart",
this,this._pinchInit)},disablePinchZoom:function(){u(this._pinchInitHandle);this._pinchInitHandle=null},enableScrollWheelZoom:function(){this.disableScrollWheelZoom();this._wheelHandle=B(this.mouseEvents||this.pointerEvents,"onMouseWheel",this,this._wheelZoom)},disableScrollWheelZoom:function(){u(this._wheelHandle);this._wheelHandle=null},enableScrollWheelPan:function(){var F=this.map;F&&F.loaded&&F.smartNavigation&&(this.disableScrollWheelPan(),this._setScrollWheelPan(!0))},disableScrollWheelPan:function(){var F=
this.map;F&&F.loaded&&F.smartNavigation&&this._setScrollWheelPan(!1)},enableDoubleClickZoom:function(){this.disableDoubleClickZoom();switch(this.eventModel){case "mouse":this._dblClickHandle=B(this.mouseEvents,"onDblClick",this,this._dblClickZoom);break;case "touch":this._dblClickHandle=B(this.mouseEvents,"onDblClick",this,this._dblClickZoom);this._dblTapHandle=B(this.touchEvents,"onDoubleTap",this,this._dblClickZoom);this._zoomOutHandle=B(this.touchEvents,"onTwoFingerTap",this,this._twoFingerTap);
break;case "pointer":this._dblTapHandle=B(this.pointerEvents,"onDoubleTap",this,this._dblClickZoom),this._zoomOutHandle=B(this.pointerEvents,"onTwoFingerTap",this,this._twoFingerTap)}},disableDoubleClickZoom:function(){u(this._dblClickHandle);u(this._zoomOutHandle);this._dblTapHandle&&u(this._dblTapHandle);this._dblClickHandle=this._zoomOutHandle=this._dblTapHandle=null},enableShiftDoubleClickZoom:function(){this.disableShiftDoubleClickZoom();this._sDblClickHandle=B(this.pointerEvents||this.mouseEvents,
"onDblClick",this,this._recenterZoom)},disableShiftDoubleClickZoom:function(){u(this._sDblClickHandle);this._sDblClickHandle=null},enableClickRecenter:function(){this.disableClickRecenter();this._recenterHandle=B(this.pointerEvents||this.mouseEvents,"onClick",this,this._recenter)},disableClickRecenter:function(){u(this._recenterHandle);this._recenterHandle=null},enableKeyboardNavigation:function(){this.disableKeyboardNavigation();this._keyHandle=B(this.pointerEvents||this.mouseEvents,"onKeyDown",
this,this._keyDown);this._keyEndHandle=B(this.pointerEvents||this.mouseEvents,"onKeyUp",this,this._keyEnd)},disableKeyboardNavigation:function(){u(this._keyHandle);u(this._keyEndHandle);this._keyHandle=this._keyEndHandle=null},enableScrollWheel:function(){var F=this.map;F&&(F.smartNavigation?this.enableScrollWheelPan():F.enableScrollWheelZoom())},disableScrollWheel:function(){var F=this.map;F&&(F.disableScrollWheelZoom(),F.smartNavigation&&this.disableScrollWheelPan())},enableNavigation:function(){var F=
this.map;F&&F.loaded&&(F._evalNavigationFeature("DoubleClickZoom"),F._evalNavigationFeature("ClickRecenter"),F._evalNavigationFeature("Pan"),F._evalNavigationFeature("RubberBandZoom"),F._evalNavigationFeature("PinchZoom"),F._evalNavigationFeature("KeyboardNavigation"),F._evalNavigationFeature("ScrollWheel"))},disableNavigation:function(){var F=this.map;F&&F.loaded&&(F._evalNavigationFeature("DoubleClickZoom"),F._evalNavigationFeature("ClickRecenter"),F._evalNavigationFeature("Pan"),F._evalNavigationFeature("RubberBandZoom"),
F._evalNavigationFeature("PinchZoom"),F._evalNavigationFeature("KeyboardNavigation"),F._evalNavigationFeature("ScrollWheel"))},destroy:function(){this.touchEvents&&this.touchEvents.destroy();this.mouseEvents&&this.mouseEvents.destroy();this.pointerEvents&&this.pointerEvents.destroy();var F,I=[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(F=0;F<I.length;F++)u(I[F]);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}});l("extend-esri")&&(f.MapNavigationManager=G);return G})},"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(G,x,c,r,h,w,q,n,f,g){var a=h.connect,d=h.disconnect;G=G([n],{declaredClass:"esri.MouseEvents",doubleClickDuration:300,minWheelValue:1,maxWheelValue:1,mozWheelDivisor:-1!==r("mac")?1:3,wheelDivisor:2>r("chrome")?360:120,preventPageScroll:!0,map:null,constructor:function(k,l){this.node=k;c.mixin(this,l);l=function(m){w.stop(m);return!1};r("mozilla")&&x.style(k,"MozUserSelect","none");this._handles=[a(k,"onselectstart",l),a(k,"ondragstart",l),a(k,"onmouseenter",this,this._onMouseEnterHandler),
a(k,"onmouseleave",this,this._onMouseLeaveHandler),a(k,"onmousedown",this,this._onMouseDownHandler),a(k,"onclick",this,this._onClickHandler),a(k,"ondblclick",this,this._onDblClickHandler)];this._onMouseMoveHandler_connect=a(k,"onmousemove",this,this._onMouseMoveHandler);this._onMouseUpHandler_connect=a(k,"onmouseup",this,this._onMouseUpHandler);this._fireClickEvent=c.hitch(this,this._fireClickEvent);this._initialDuration=this.doubleClickDuration;this.preventPageScroll=(k=this.map)?k.isScrollWheelZoom||
k.isScrollWheelPan:this.preventPageScroll;this.enableMouseWheel(!1)},_fire:function(k,l){if(!this._preventClick||"onClick"!==k&&"onDblClick"!==k){if(this[k])this[k](l);if(this.map&&this.map[k])this.map[k](l)}},_processEvent:function(k){k=w.fix(k,k.target);var l=this.map,m=l&&l.position;m&&("DOMMouseScroll"===k.type&&3>r("ff")?k.screenPoint=new g(window.scrollX+k.screenX-m.x,window.scrollY+k.screenY-m.y):k.screenPoint=new g(k.pageX-m.x,k.pageY-m.y),k.mapPoint=l.extent?l.toMap(k.screenPoint):new f);
k.numPoints=0;return k},_onMouseEnterHandler:function(k){d(this._onKeyDown_connect);d(this._onKeyUp_connect);this._onKeyDown_connect=a(document,"onkeydown",this,this._onKeyDownHandler);this._onKeyUp_connect=a(document,"onkeyup",this,this._onKeyUpHandler);this._fire("onMouseOver",this._processEvent(k))},_onMouseLeaveHandler:function(k){d(this._onKeyDown_connect);d(this._onKeyUp_connect);this._onKeyDown_connect=this._onKeyUp_connect=null;this._fire("onMouseOut",this._processEvent(k))},_onMouseMoveHandler:function(k){this._dragEnd?
this._dragEnd=!1:this._fire("onMouseMove",this._processEvent(k))},_onMouseDownHandler:function(k){d(this._onMouseMoveHandler_connect);this._onMouseMoveHandler_connect=null;this.node.setCapture&&this.node.setCapture(!1);d(this._onMouseDragHandler_connect);this._onMouseDragHandler_connect=a(document,"onmousemove",this,this._onMouseDragHandler);this._startX=k.pageX;this._startY=k.pageY;this._fire("onMouseDown",this._processEvent(k))},_onMouseUpHandler:function(k){var l=this.node;l.releaseCapture&&l.releaseCapture();
d(this._onMouseDragHandler_connect);this._onMouseDragHandler_connect=null;d(this._onMouseMoveHandler_connect);this._onMouseMoveHandler_connect=a(l,"onmousemove",this,this._onMouseMoveHandler);this._fire("onMouseUp",this._processEvent(k))},_onMouseDragHandler:function(k){d(this._onMouseDragHandler_connect);this._onMouseDragHandler_connect=a(document,"onmousemove",this,this._onMouseDraggingHandler);d(this._onMouseUpHandler_connect);this._onMouseUpHandler_connect=a(document,"onmouseup",this,this._onDragMouseUpHandler);
this._docLeaveConnect=a(document,"onmouseout",this,this._onDocMouseOut);this._fire("onMouseDragStart",this._processEvent(k))},_onMouseDraggingHandler:function(k){w.stop(k);this._fire("onMouseDrag",this._processEvent(k))},_onDragMouseUpHandler:function(k){var l=this.node;l.releaseCapture&&l.releaseCapture();this._dragEnd=!0;d(this._docLeaveConnect);d(this._onMouseDragHandler_connect);d(this._onMouseUpHandler_connect);this._docLeaveConnect=this._onMouseDragHandler_connect=null;this._onMouseMoveHandler_connect=
a(l,"onmousemove",this,this._onMouseMoveHandler);this._onMouseUpHandler_connect=a(l,"onmouseup",this,this._onMouseUpHandler);k=this._processEvent(k);this._fire("onMouseDragEnd",k);this._fire("onMouseUp",k)},_onDocMouseOut:function(k){var l=9>r("ie")?k.toElement:k.relatedTarget,m=l&&l.nodeName.toLowerCase();(!l||(r("chrome")||r("safari"))&&"html"===m)&&this._onDragMouseUpHandler(k)},_onClickHandler:function(k){k=this._processEvent(k);if(k.pageX===this._startX&&k.pageY===this._startY){clearTimeout(this._clickTimer);
var l={},m="movementX"in k,e;for(e in k)"mozInputSource"===e||"mozPressure"===e||m&&("webkitMovementX"===e||"webkitMovementY"===e)||(l[e]=k[e]);this._clickEvent=l;this._clickTimer=setTimeout(this._fireClickEvent,this.doubleClickDuration)}},_fireClickEvent:function(){clearTimeout(this._clickTimer);9>r("ie")&&(this._clickEvent.graphic=q._ieGraphic,delete q._ieGraphic);this._fire("onClick",this._clickEvent)},_onDblClickHandler:function(k){clearTimeout(this._clickTimer);this._fire("onDblClick",this._processEvent(k))},
_onMouseWheelHandler:function(k){var l=this.map;(l?l.isScrollWheelZoom||l.isScrollWheelPan:this.preventPageScroll)&&w.stop(k);l=r("ff")||r("mozilla")?-k.detail/this.mozWheelDivisor:k.wheelDelta/this.wheelDivisor;var m=Math.abs(l);m=m<=this.minWheelValue?this.minWheelValue:this.maxWheelValue;k.value=0>l?-m:m;this._fire("onMouseWheel",this._processEvent(k))},_onKeyDownHandler:function(k){this._fire("onKeyDown",k)},_onKeyUpHandler:function(k){this._fire("onKeyUp",k)},enableMouseWheel:function(k){d(this._scrollHandle);
this._scrollHandle=a(this.node,r("ff")||r("mozilla")?k?"MozMousePixelScroll":"DOMMouseScroll":"onmousewheel",this,this._onMouseWheelHandler)},setImmediateClick:function(k){this.doubleClickDuration=k?0:this._initialDuration},preventClickEvents:function(k){this._preventClick=k},destroy:function(){var k=this._handles.concat([this._onMouseMoveHandler_connect,this._onMouseUpHandler_connect,this._onMouseDragHandler_connect,this._scrollHandle,this._onKeyDown_connect,this._onKeyUp_connect,this._docLeaveConnect]),
l;for(l=0;l<k.length;l++)d(k[l]);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}});r("extend-esri")&&(q.MouseEvents=G);return G})},"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(G,x,c,r,h,w,q,n,f){G=G([q],{declaredClass:"esri.TouchEvents",tapRadius:8,doubleTapRadius:10,tapStartTolerance:50,doubleTapDuration:300,map:null,constructor:function(g,a){this.node=g;c.mixin(this,a);x.setSelectable(g,!1);this._touchStart=c.hitch(this,this._touchStart);this._touchMove=c.hitch(this,this._touchMove);this._touchEnd=c.hitch(this,this._touchEnd);this._touchCancel=c.hitch(this,this._touchCancel);this._fireClickEvent=c.hitch(this,this._fireClickEvent);g.addEventListener("touchstart",
this._touchStart,!1);g.addEventListener("touchmove",this._touchMove,!1);g.addEventListener("touchend",this._touchEnd,!1);g.addEventListener("touchcancel",this._touchCancel,!1);this.map&&r("ios")&&(this._mouseOver=c.hitch(this,this._mouseOver),this._mouseOut=c.hitch(this,this._mouseOut),this._mouseDown=c.hitch(this,this._mouseDown),this._mouseUp=c.hitch(this,this._mouseUp),this._mouseClick=c.hitch(this,this._mouseClick),g.addEventListener("mouseover",this._mouseOver,!1),g.addEventListener("mouseout",
this._mouseOut,!1),g.addEventListener("mousedown",this._mouseDown,!1),g.addEventListener("mouseup",this._mouseUp,!1),g.addEventListener("click",this._mouseClick,!1));this._numTouches=0;this._nodeTouches=[];this._touches={};this._touchIds=[];this._taps=[];this._immediate=!1},_touchStart:function(g){var a=this._touches,d,k=g.changedTouches.length,l,m,e=(new Date).getTime();this._touchStartTS=e;if(!(r("android")&&r("safari")&&1===g.targetTouches.length&&g.touches.length===g.targetTouches.length&&g.targetTouches.length===
g.changedTouches.length&&0===g.changedTouches[0].identifier&&a[g.changedTouches[0].identifier])){this._addTouch(g);for(d=0;d<k;d++){var b=g.changedTouches[d];var p=a[b.identifier]={};p.startX=b.pageX;p.startY=b.pageY;p.startTS=e;-1===this._touchIds.indexOf(b.identifier)&&this._touchIds.push(b.identifier)}this._swipeActive&&(l=this._nodeTouches[0]);this._pinchActive&&(m=this._nodeTouches[1]);1===this._numTouches?this._swipeActive?(this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(g,
l))):this._pinchActive&&(this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(g,[l,m]))):2===this._numTouches?this._swipeActive&&(l&&(p=a[this._touchIds[0]],p.startX=l.pageX,p.startY=l.pageY,p.moved=!1),this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(g,l))):this._swipeActive?(this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(g,l))):this._pinchActive&&(this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(g,[l,m])))}},_touchMove:function(g){g.preventDefault();
this._updateTouch(g);var a=this._touches,d,k=g.changedTouches.length,l;if(!(r("android")&&r("safari")&&1===g.targetTouches.length&&g.touches.length===g.targetTouches.length&&g.targetTouches.length===g.changedTouches.length&&0===g.changedTouches[0].identifier&&a[g.changedTouches[0].identifier]&&1<this._touchIds.length)){for(d=0;d<k;d++){var m=g.changedTouches[d];if(l=a[m.identifier]){var e=Math.abs(m.pageX-l.startX);m=Math.abs(m.pageY-l.startY);!l.moved&&(e>=this.tapRadius||m>=this.tapRadius)&&(l.moved=
l.absMoved=!0);var b=b?b:l.moved}}1===this._numTouches?(a=g.changedTouches[0],this._swipeActive?this._fire("onSwipeMove",this._processTouchEvent(g,a)):b&&(this._swipeActive=!0,this._fire("onSwipeStart",this._processTouchEvent(g,a)))):2===this._numTouches&&(d=this._nodeTouches[0],k=this._nodeTouches[1],this._pinchActive?this._fire("onPinchMove",this._processTouchEvent(g,[d,k])):b&&(b=a[d.identifier],l=a[k.identifier],a=Math.abs(b.startX-l.startX),b=Math.abs(b.startY-l.startY),l=Math.abs(d.pageX-k.pageX),
e=Math.abs(d.pageY-k.pageY),Math.abs(Math.sqrt(l*l+e*e)-Math.sqrt(a*a+b*b))>=2*this.tapRadius&&(this._pinchActive=!0,this._fire("onPinchStart",this._processTouchEvent(g,[d,k])))))}},_touchEnd:function(g){this._removeTouch(g);var a=this._touches,d=g.changedTouches,k,l=d.length,m,e,b=(new Date).getTime(),p=this._touchIds;for(k=0;k<l;k++)if(e=a[d[k].identifier])e.absMoved&&(m=!0),e.pageX=d[k].pageX,e.pageY=d[k].pageY,e.endTS=b;if(0===this._numTouches)if(this._touches={},this._touchIds=[],this._swipeActive)this._swipeActive=
!1,this._fire("onSwipeEnd",this._processTouchEvent(g,d[0]));else if(this._pinchActive)this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(g,d));else{if(!m){l=Infinity;m=-Infinity;b=Infinity;var t=-Infinity,z=this.tapStartTolerance,C=[],y=!0;for(k=0;k<p.length;k++)e=a[p[k]],C.push(e),e.startTS<l&&(l=e.startTS),e.startTS>m&&(m=e.startTS),e.endTS<b&&(b=e.endTS),e.endTS>t&&(t=e.endTS),delete a[p[k]];1===C.length&&d[0]&&(a=Math.abs(d[0].pageY-C[0].startY),Math.abs(d[0].pageX-C[0].startX)>=
this.tapRadius||a>=this.tapRadius)&&(y=!1);y&&Math.abs(m-l)<=z&&Math.abs(t-b)<=z&&this._basicTap(g,C)}}else 1===this._numTouches&&this._pinchActive&&(k=this._nodeTouches[0],e=a[k.identifier],e.startX=k.pageX,e.startY=k.pageY,this._pinchActive=e.moved=!1,this._fire("onPinchEnd",this._processTouchEvent(g,[d[0],k])))},_touchCancel:function(g){this._numTouches&&this._touchEnd(g)},_basicTap:function(g,a){var d=(new Date).getTime(),k=this;g=this._processTouchEvent(g,a);this._taps.push({touchInfos:a,ts:d,
event:g});2<this._taps.length&&this._taps.shift();this._fire("onBasicTap",g);clearTimeout(this._tapTimer);this._immediate?this._analyzeTap(!0):this._tapTimer=setTimeout(function(){var l=k;k=null;clearTimeout(l._tapTimer);l._analyzeTap()},2===this._taps.length?this.doubleTapDuration/2:this.doubleTapDuration)},_analyzeTap:function(g){var a=this._taps,d=a[0],k=a[1],l=d.touchInfos,m=k&&k.touchInfos;a.length&&(g||(this._taps=[]),d&&k?l.length===m.length?k.ts-d.ts<=this.doubleTapDuration?(1===l.length?
(g=Math.abs(l[0].startX-m[0].startX),l=Math.abs(l[0].startY-m[0].startY),l=g<=this.doubleTapRadius&&l<=this.doubleTapRadius):l=!0,l?this._processedDoubleTap(a):this._processedTap(k)):this._processedTap(k):this._processedTap(k):this._processedTap(d||k))},_processedTap:function(g){var a=g.event;this._fire("onProcessedTap",a);1===g.touchInfos.length?this._fire("onTap",this._fixEvent(a)):2===g.touchInfos.length&&this._fire("onTwoFingerTap",a)},_processedDoubleTap:function(g){var a=1===g[1].touchInfos.length;
if(a){var d=[this._fixEvent(g[0].event),this._fixEvent(g[1].event)];d[1].relatedEvents=d}g=[g[0].event,g[1].event];g[1].relatedEvents=g;this._fire("onProcessedDoubleTap",g[1]);a&&(this._fire("onDoubleTap",d[1]),this._fire("onDblClick",d[1]))},_addTouch:function(g){var a=g.changedTouches,d=this._nodeTouches,k;this._numTouches+=a.length;for(g=0;g<a.length;g++){var l=d.length;var m=!1;for(k=0;k<l&&!(m=d[k].identifier===a[g].identifier);k++);m?this._numTouches--:d.push(a[g])}for(g=d.length-1;0<=g;g--)h.isDescendant(d[g].target,
document.body)||(d.splice(g,1),this._numTouches--);0>this._numTouches&&(this._numTouches=0)},_removeTouch:function(g){var a=[],d=[],k=g.changedTouches,l=this._nodeTouches;this._numTouches-=k.length;0>this._numTouches&&(this._numTouches=0);for(g=0;g<k.length;g++)a.push(k[g].identifier);for(g=l.length-1;0<=g;g--)-1!==a.indexOf(l[g].identifier)&&d.push(l.splice(g,1)[0]);return d},_updateTouch:function(g){var a=[],d=g.changedTouches,k=this._nodeTouches;for(g=0;g<d.length;g++)a.push(d[g].identifier);for(g=
0;g<k.length;g++){var l=a.indexOf(k[g].identifier);-1!==l&&k.splice(g,1,d[l])}},_mouseOver:function(g){this._fire("onMouseOver",this._processMouseEvent(g))},_mouseOut:function(g){this._fire("onMouseOut",this._processMouseEvent(g))},_mouseDown:function(g){this._fire("onMouseDown",this._processMouseEvent(g))},_mouseUp:function(g){this._fire("onMouseUp",this._processMouseEvent(g))},_mouseClick:function(g){clearTimeout(this._clickTimer);300<(new Date).getTime()-this._touchStartTS?this._fire("onClick",
this._processMouseEvent(g)):(this._clickEvent=g,this._clickTimer=setTimeout(this._fireClickEvent,this.doubleTapDuration))},_fireClickEvent:function(){clearTimeout(this._clickTimer);this._fire("onClick",this._processMouseEvent(this._clickEvent))},_fire:function(g,a){"onDblClick"===g&&clearTimeout(this._clickTimer);if("onDblClick"===g&&this.mouseEvents){this.mouseEvents.preventClickEvents(!0);var d=this;setTimeout(function(){d.mouseEvents.preventClickEvents(!1)},350)}if(this[g])this[g](a);if(this.map&&
this.map[g])this.map[g](a)},_fixEvent:function(g){var a={},d;for(d in g)a[d]=g[d];this.map&&(a.screenPoint=a.screenPoints[0],a.mapPoint=a.mapPoints[0]);return a},_processTouchEvent:function(g,a){var d=this.map,k=d&&d.position,l=0;if(k&&a)if(c.isArray(a)){var m;g.screenPoints=[];g.mapPoints=[];for(m=0;m<a.length;m++)if(a[m]){var e=new f(a[m].pageX-k.x,a[m].pageY-k.y);g.screenPoints.push(e);g.mapPoints.push(d.extent?d.toMap(e):new n)}else l++}else g.screenPoint=new f(a.pageX-k.x,a.pageY-k.y),g.mapPoint=
d.extent?d.toMap(g.screenPoint):new n;g.numPoints=a?c.isArray(a)?a.length-l:1:0;return g},_processMouseEvent:function(g){var a=this.map,d=a&&a.position;d&&(g.screenPoint=new f(g.pageX-d.x,g.pageY-d.y),g.mapPoint=a.extent?a.toMap(g.screenPoint):new n);return g},setImmediateTap:function(g){this._immediate=g},destroy:function(){var g=this.node;g.removeEventListener("touchstart",this._touchStart,!1);g.removeEventListener("touchmove",this._touchMove,!1);g.removeEventListener("touchend",this._touchEnd,
!1);g.removeEventListener("touchcancel",this._touchCancel,!1);this.map&&(g.removeEventListener("mouseover",this._mouseOver,!1),g.removeEventListener("mouseout",this._mouseOut,!1),g.removeEventListener("mousedown",this._mouseDown,!1),g.removeEventListener("mouseup",this._mouseUp,!1),g.removeEventListener("click",this._mouseClick,!1));x.setSelectable(g,!0);clearTimeout(this._tapTimer);clearTimeout(this._clickTimer);this.node=this.map=this._numTouches=this._nodeTouches=this._touches=this._touchIds=this._taps=
null}});r("extend-esri")&&(w.TouchEvents=G);return G})},"esri/PointerEvents":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ./kernel ./Evented ./geometry/Point ./geometry/ScreenPoint".split(" "),function(G,x,c,r,h,w,q,n){G=G([w],{declaredClass:"esri.PointerEvents",tapRadius:8,clickRadius:2,doubleTapRadius:10,tapStartTolerance:50,doubleTapDuration:300,minWheelValue:1,maxWheelValue:1,mozWheelDivisor:-1!==r("mac")?1:3,wheelDivisor:120,preventPageScroll:!0,_dragging:!1,
constructor:function(f,g){this.node=f;x.mixin(this,g);void 0!==f.style.msTouchAction?f.style.msTouchAction="none":void 0!==f.style.touchAction&&(f.style.touchAction="none");g=navigator.msPointerEnabled;var a=function(d){d.preventDefault()};f.addEventListener("selectstart",a,!1);f.addEventListener("dragstart",a,!1);this._pointerDown=x.hitch(this,this._pointerDown);this._pointerMove=x.hitch(this,this._pointerMove);this._pointerUp=x.hitch(this,this._pointerUp);this._pointerCancel=x.hitch(this,this._pointerCancel);
f.addEventListener(g?"MSPointerDown":"pointerdown",this._pointerDown,!1);f.addEventListener(g?"MSPointerMove":"pointermove",this._pointerMove,!1);f.addEventListener(g?"MSPointerUp":"pointerup",this._pointerUp,!1);f.addEventListener(g?"MSPointerCancel":"pointercancel",this._pointerCancel,!1);this.map&&(this._mouseOver=x.hitch(this,this._mouseOver),this._mouseOut=x.hitch(this,this._mouseOut),this._mouseLeave=x.hitch(this,this._mouseLeave),this._mouseDown=x.hitch(this,this._mouseDown),this._mouseUp=
x.hitch(this,this._mouseUp),this._mouseClick=x.hitch(this,this._mouseClick),this._mouseWheel=x.hitch(this,this._mouseWheel),this._mouseMove=x.hitch(this,this._mouseMove),this._mouseEnter=x.hitch(this,this._mouseEnter),this._onKeyDown=x.hitch(this,this._onKeyDown),this._onKeyUp=x.hitch(this,this._onKeyUp),f.addEventListener("mouseover",this._mouseOver,!1),f.addEventListener("mouseout",this._mouseOut,!1),f.addEventListener("mouseleave",this._mouseLeave,!1),f.addEventListener("mousedown",this._mouseDown,
!1),f.addEventListener("mouseup",this._mouseUp,!1),f.addEventListener("click",this._mouseClick,!1),f.addEventListener("mousewheel",this._mouseWheel,!1),f.addEventListener("mousemove",this._mouseMove,!1),f.addEventListener("mouseenter",this._mouseEnter,!1));this._numTouches=0;this._touches={};this._touchIds=[];this._taps=[];this._immediate=!1},_pointerDown:function(f){if(-1<c.indexOf(this._touchIds,f.pointerId))this._pointerUp(f);else{var g=this._touches,a=f.target,d=f.pointerId,k=this._touchIds,l=
(new Date).getTime();var m=g[d]={};m.pointerId=d;m.startX=m.pageX=f.pageX;m.startY=m.pageY=f.pageY;m.startTS=l;k.push(d);this._numTouches++;a.setPointerCapture?a.setPointerCapture(d):a.msSetPointerCapture&&a.msSetPointerCapture(d);a=g[k[0]];g=g[k[1]];1!==this._numTouches&&(2===this._numTouches?this._swipeActive&&(a&&(a.startX=a.pageX,a.startY=a.pageY,a.moved=!1),this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(f,a))):this._swipeActive?(this._swipeActive=!1,this._fire("onSwipeEnd",
this._processTouchEvent(f,a))):this._pinchActive&&(this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(f,[a,g]))))}},_pointerMove:function(f){var g=this._touches,a=this._touchIds,d;if((d=g[f.pointerId])&&(d.pageX!==f.pageX||d.pageY!==f.pageY)){d.pageX=f.pageX;d.pageY=f.pageY;var k=Math.abs(d.pageX-d.startX);var l=Math.abs(d.pageY-d.startY);!d.moved&&(k>=this.tapRadius||l>=this.tapRadius)&&(d.moved=d.absMoved=!0);if(1===this._numTouches)this._swipeActive?this._fire("onSwipeMove",this._processTouchEvent(f,
f)):d.moved&&(this._swipeActive=!0,this._fire("onSwipeStart",this._processTouchEvent(f,f)));else if(2===this._numTouches)if(d=g[a[0]],g=g[a[1]],this._pinchActive)this._fire("onPinchMove",this._processTouchEvent(f,[d,g]));else if(d.moved||g.moved){a=Math.abs(d.startX-g.startX);k=Math.abs(d.startY-g.startY);l=Math.abs(d.pageX-g.pageX);var m=Math.abs(d.pageY-g.pageY);Math.abs(Math.sqrt(l*l+m*m)-Math.sqrt(a*a+k*k))>=2*this.tapRadius&&(this._pinchActive=!0,this._fire("onPinchStart",this._processTouchEvent(f,
[d,g])))}}},_pointerUp:function(f){var g=this._touches,a,d=this.node,k=f.target,l=f.pointerId,m=this._touchIds,e=m.slice(0),b=c.map(e,function(C){return g[C]}),p=(new Date).getTime();if(a=g[l])if(a.pageX=f.pageX,a.pageY=f.pageY,a.endTS=p,this._numTouches--,k.releasePointerCapture?k.releasePointerCapture(l):k.msReleasePointerCapture&&k.msReleasePointerCapture(l),0===this._numTouches)if(this._touches={},this._touchIds=[],this._swipeActive)this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(f,
f));else if(this._pinchActive)this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(f,f));else{if(!a.absMoved){k=Infinity;l=-Infinity;m=Infinity;p=-Infinity;var t=this.tapStartTolerance,z;for(z=0;z<e.length;z++)a=b[z],a.startTS<k&&(k=a.startTS),a.startTS>l&&(l=a.startTS),a.endTS<m&&(m=a.endTS),a.endTS>p&&(p=a.endTS);Math.abs(l-k)<=t&&Math.abs(p-m)<=t&&this._basicTap(f,b)}}else 1===this._numTouches&&this._pinchActive&&(m.splice(c.indexOf(m,f.pointerId),1),delete g[f.pointerId],a=g[m[0]],
a.startX=a.pageX,a.startY=a.pageY,a.moved=!1,document.msElementsFromPoint&&(e=document.msElementsFromPoint(a.pageX,a.pageY),c.some(e,function(C){return C===d})||(this._touches={},this._touchIds=[],this._numTouches=0)),this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(f,[f,a])))},_pointerCancel:function(f){this._numTouches&&this._pointerUp(f)},_basicTap:function(f,g){var a=(new Date).getTime(),d=this,k=this._immediate;f=this._processTouchEvent(f,g);this._taps.push({touchInfos:g,
ts:a,event:f});2<this._taps.length&&this._taps.shift();this._fire("onBasicTap",f);clearTimeout(this._tapTimer);f=2===this._taps.length?this.doubleTapDuration/2:this.doubleTapDuration;this._tapTimer=setTimeout(function(){var l=d;d=null;clearTimeout(l._tapTimer);l._analyzeTap(k)},k?0:f)},_analyzeTap:function(f){var g=this._taps,a=g[0],d=g[1],k=a.touchInfos,l=d&&d.touchInfos;g.length&&(f||(this._taps=[]),a&&d?k.length===l.length?d.ts-a.ts<=this.doubleTapDuration?(1===k.length?(f=Math.abs(k[0].startX-
l[0].startX),k=Math.abs(k[0].startY-l[0].startY),k=f<=this.doubleTapRadius&&k<=this.doubleTapRadius):k=!0,k?this._processedDoubleTap(g):this._processedTap(d)):this._processedTap(d):this._processedTap(d):this._processedTap(a||d))},_processedTap:function(f){var g=f.event;this._fire("onProcessedTap",g);1===f.touchInfos.length?this._fire("onTap",this._fixEvent(g)):2===f.touchInfos.length&&this._fire("onTwoFingerTap",g)},_processedDoubleTap:function(f){var g=1===f[1].touchInfos.length;if(g){var a=[this._fixEvent(f[0].event),
this._fixEvent(f[1].event)];a[1].relatedEvents=a}f=[f[0].event,f[1].event];f[1].relatedEvents=f;this._fire("onProcessedDoubleTap",f[1]);g&&(this._fire("onDoubleTap",a[1]),this._fire("onDblClick",a[1]))},_mouseOver:function(f){this._fire("onMouseOver",this._processMouseEvent(f))},_mouseMove:function(f){this._dragging?this._fire("onMouseDrag",this._processMouseEvent(f)):this._fire("onMouseMove",this._processMouseEvent(f))},_mouseOut:function(f){this._fire("onMouseOut",this._processMouseEvent(f))},_mouseLeave:function(f){document.removeEventListener("keydown",
this._onKeyDown,!1);document.removeEventListener("keyup",this._onKeyUp,!1);this._fire("onMouseOut",this._processMouseEvent(f))},_mouseDown:function(f){this._downX=f.pageX;this._downY=f.pageY;this._fire("onMouseDown",this._processMouseEvent(f));0===f.button&&(this._dragging=!0,this._fire("onMouseDragStart",this._processMouseEvent(f)))},_mouseUp:function(f){this._dragging&&(this._dragging=!1,this._fire("onMouseDragEnd",this._processMouseEvent(f)));this._fire("onMouseUp",this._processMouseEvent(f))},
_mouseClick:function(f){Math.abs(f.pageX-this._downX)<=this.clickRadius&&Math.abs(f.pageY-this._downY)<=this.clickRadius&&this._fire("onClick",this._processMouseEvent(f))},_mouseWheel:function(f){var g=this.map;(g?g.isScrollWheelZoom||g.isScrollWheelPan:this.preventPageScroll)&&f.preventDefault();g=f.wheelDelta?f.wheelDelta/this.wheelDivisor:-f.detail/this.mozWheelDivisor;var a=Math.abs(g);a=a<=this.minWheelValue?this.minWheelValue:this.maxWheelValue;f.value=0>g?-a:a;this._fire("onMouseWheel",this._processMouseEvent(f))},
_mouseEnter:function(f){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(f))},_onKeyDown:function(f){this._fire("onKeyDown",f)},_onKeyUp:function(f){this._fire("onKeyUp",f)},_fire:function(f,g){if(this[f])this[f](g);if(this.map&&this.map[f])this.map[f](g)},_fixEvent:function(f){var g=
{},a;for(a in f)g[a]=f[a];g.preventDefault=function(){f.preventDefault()};g.stopPropagation=function(){f.stopPropagation()};this.map&&(g.screenPoint=g.screenPoints[0],g.mapPoint=g.mapPoints[0]);return g},_processTouchEvent:function(f,g){var a=this.map,d=a&&a.position,k=0;if(d&&g)if(x.isArray(g)){var l;f.screenPoints=[];f.mapPoints=[];for(l=0;l<g.length;l++)if(g[l]){var m=new n(g[l].pageX-d.x,g[l].pageY-d.y);f.screenPoints.push(m);f.mapPoints.push(a.extent?a.toMap(m):new q)}else k++}else f.screenPoint=
new n(g.pageX-d.x,g.pageY-d.y),f.mapPoint=a.extent?a.toMap(f.screenPoint):new q;f.numPoints=g?x.isArray(g)?g.length-k:1:0;return f},_processMouseEvent:function(f){var g=this.map,a=g&&g.position;a&&(f.screenPoint=new n(f.pageX-a.x,f.pageY-a.y),f.mapPoint=g.extent?g.toMap(f.screenPoint):new q);return f},setImmediateTap:function(f){this._immediate=f},destroy:function(){var f=this.node;f.removeEventListener("MSPointerDown",this._pointerDown,!1);f.removeEventListener("MSPointerMove",this._pointerMove,
!1);f.removeEventListener("MSPointerUp",this._pointerUp,!1);f.removeEventListener("MSPointerCancel",this._pointerCancel,!1);this.map&&(f.removeEventListener("mouseover",this._mouseOver,!1),f.removeEventListener("mousemove",this._mouseMove,!1),f.removeEventListener("mouseout",this._mouseOut,!1),f.removeEventListener("mouseleave",this._mouseLeave,!1),f.removeEventListener("mousedown",this._mouseDown,!1),f.removeEventListener("mouseup",this._mouseUp,!1),f.removeEventListener("click",this._mouseClick,
!1),f.removeEventListener("mouseenter",this._mouseEnter,!1));clearTimeout(this._tapTimer);this.node=this.map=this._numTouches=this._touches=this._touchIds=this._taps=null}});r("extend-esri")&&(h.PointerEvents=G);return G})},"esri/geometry":function(){define("./units ./SpatialReference ./geometry/Geometry ./geometry/Point ./geometry/ScreenPoint ./geometry/Multipoint ./geometry/Polyline ./geometry/Polygon ./geometry/Extent ./geometry/Rect ./geometry/geodesicUtils ./geometry/jsonUtils ./geometry/mathUtils ./geometry/normalizeUtils ./geometry/scaleUtils ./geometry/screenUtils ./geometry/webMercatorUtils".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b){return{units:G,SpatialReference:x,Geometry:c,Point:r,ScreenPoint:h,Multipoint:w,Polyline:q,Polygon:n,Extent:f,Rect:g,geodesicUtils:a,jsonUtils:d,mathUtils:k,normalizeUtils:l,scaleUtils:m,screenUtils:e,webMercatorUtils:b}})},"esri/units":function(){define(["dojo/has","./kernel"],function(G,x){var c={CENTIMETERS:"esriCentimeters",DECIMAL_DEGREES:"esriDecimalDegrees",DEGREE_MINUTE_SECONDS:"esriDegreeMinuteSeconds",DECIMETERS:"esriDecimeters",FEET:"esriFeet",
FEET_US:"esriFeetUS",INCHES:"esriInches",KILOMETERS:"esriKilometers",METERS:"esriMeters",MILES:"esriMiles",MILES_US:"esriMilesUS",MILLIMETERS:"esriMillimeters",NAUTICAL_MILES:"esriNauticalMiles",POINTS:"esriPoints",UNKNOWN:"esriUnknownUnits",YARDS:"esriYards",YARDS_US:"esriYardsUS",ACRES:"esriAcres",ACRES_US:"esriAcresUS",ARES:"esriAres",SQUARE_KILOMETERS:"esriSquareKilometers",SQUARE_MILES:"esriSquareMiles",SQUARE_MILES_US:"esriSquareMilesUS",SQUARE_FEET:"esriSquareFeet",SQUARE_FEET_US:"esriSquareFeetUS",
SQUARE_METERS:"esriSquareMeters",HECTARES:"esriHectares",SQUARE_YARDS:"esriSquareYards",SQUARE_YARDS_US:"esriSquareYardsUS",SQUARE_INCHES:"esriSquareInches",SQUARE_MILLIMETERS:"esriSquareMillimeters",SQUARE_CENTIMETERS:"esriSquareCentimeters",SQUARE_DECIMETERS:"esriSquareDecimeters",SQUARE_NAUTICAL_MILES:"esriSquareNauticalMiles",METERS_PER_SECOND:"esriMetersPerSecond",KILOMETERS_PER_HOUR:"esriKilometersPerHour",KNOTS:"esriKnots",FEET_PER_SECOND:"esriFeetPerSecond",MILES_PER_HOUR:"esriMilesPerHour",
RADIANS:"esriDURadians"};G("extend-esri")&&(x.Units=c);return c})},"esri/geometry/geodesicUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/has ../kernel ../SpatialReference ./Point ./Polyline ./Polygon".split(" "),function(G,x,c,r,h,w,q,n){function f(p){return!!(p&&p.wkid&&b[p.wkid])}function g(p){return f(p)?b[p.wkid]:b[4326]}function a(p){var t=p.spatialReference,z=g(t),C=z.a;z=z.eSq;var y=Math.sqrt(z),D=Math.sin(p.y*e);return new w(C*p.x*e,0<z?C*(1-z)*(D/(1-z*D*D)-1/(2*y)*Math.log((1-
y*D)/(1+y*D)))*.5:C*D,t)}function d(p,t,z,C,y){var D=g(y),B=D.a,u=D.b;D=D.f;var E=Math.sin(z);z=Math.cos(z);var v=(1-D)*Math.tan(p);p=1/Math.sqrt(1+v*v);var A=v*p,F=Math.atan2(v,z);v=p*E;var I=v*v,N=1-I;B=N*(B*B-u*u)/(u*u);var da=1+B/16384*(4096+B*(-768+B*(320-175*B))),ba=B/1024*(256+B*(-128+B*(74-47*B)));B=C/(u*da);for(var na=2*Math.PI,xa,W,la,ha;1E-12<Math.abs(B-na);)la=Math.cos(2*F+B),xa=Math.sin(B),W=Math.cos(B),ha=ba*xa*(la+ba/4*(W*(-1+2*la*la)-ba/6*la*(-3+4*xa*xa)*(-3+4*la*la))),na=B,B=C/(u*
da)+ha;C=A*xa-p*W*z;u=D/16*N*(4+D*(4-3*N));return new w((t+(Math.atan2(xa*E,p*W-A*xa*z)-(1-u)*D*v*(B+u*xa*(la+u*W*(-1+2*la*la)))))/e,Math.atan2(A*W+p*xa*z,(1-D)*Math.sqrt(I+C*C))/e,y)}function k(p,t,z,C,y){var D=g(y),B=D.a;y=D.b;var u=D.f,E=C-t,v=Math.atan((1-u)*Math.tan(p)),A=Math.atan((1-u)*Math.tan(z)),F=Math.sin(v);v=Math.cos(v);var I=Math.sin(A);A=Math.cos(A);var N=E,da=1E3;do{var ba=Math.sin(N);var na=Math.cos(N);var xa=Math.sqrt(A*ba*A*ba+(v*I-F*A*na)*(v*I-F*A*na));if(0===xa)return 0;na=F*
I+v*A*na;var W=Math.atan2(xa,na);var la=v*A*ba/xa;var ha=1-la*la;ba=na-2*F*I/ha;isNaN(ba)&&(ba=0);var sa=u/16*ha*(4+u*(4-3*ha));var Ca=N;N=E+(1-sa)*u*la*(W+sa*xa*(ba+sa*na*(-1+2*ba*ba)))}while(1E-12<Math.abs(N-Ca)&&0<--da);if(0===da)return y=C-t,{azimuth:Math.atan2(Math.sin(y)*Math.cos(z),Math.cos(p)*Math.sin(z)-Math.sin(p)*Math.cos(z)*Math.cos(y)),geodesicDistance:Math.acos(Math.sin(p)*Math.sin(z)+Math.cos(p)*Math.cos(z)*Math.cos(C-t))*D.radius};p=ha*(B*B-y*y)/(y*y);t=p/1024*(256+p*(-128+p*(74-47*
p)));return{azimuth:Math.atan2(A*Math.sin(N),v*I-F*A*Math.cos(N)),geodesicDistance:y*(1+p/16384*(4096+p*(-768+p*(320-175*p))))*(W-t*xa*(ba+t/4*(na*(-1+2*ba*ba)-t/6*ba*(-3+4*xa*xa)*(-3+4*ba*ba)))),reverseAzimuth:Math.atan2(v*Math.sin(N),v*I*Math.cos(N)-F*A)}}function l(p,t){if(!(p instanceof q||p instanceof n))throw console.error("_geodesicDensify: the input geometry is neither polyline nor polygon"),Error("_geodesicDensify: the input geometry is neither polyline nor polygon");var z=p.spatialReference,
C=g(z).radius/1E4;t<C&&(t=C);C=p instanceof q;var y=[],D;G.forEach(C?p.paths:p.rings,function(B){y.push(D=[]);D.push([B[0][0],B[0][1]]);var u,E;var v=B[0][0]*e;var A=B[0][1]*e;for(u=0;u<B.length-1;u++){var F=B[u+1][0]*e;var I=B[u+1][1]*e;if(v!==F||A!==I){I=k(A,v,I,F,z);F=I.azimuth;I=I.geodesicDistance;var N=I/t;if(1<N){for(E=1;E<=N-1;E++){var da=d(A,v,F,E*t,z);D.push([da.x,da.y])}E=d(A,v,F,(I+Math.floor(N-1)*t)/2,z);D.push([E.x,E.y])}A=d(A,v,F,I,z);D.push([A.x,A.y]);v=A.x*e;A=A.y*e}}});return C?new q({paths:y,
spatialReference:z}):new n({rings:y,spatialReference:z})}var m={esriMeters:1,esriKilometers:1E3,esriYards:.9144,esriFeet:.3048,esriMiles:1609.344,esriNauticalMiles:1852,esriInches:.0254,esriDecimeters:.1,esriCentimeters:.01,esriMillimeters:.001,esriSquareMeters:1,esriSquareKilometers:1E6,esriSquareYards:.83612736,esriSquareFeet:.09290304,esriSquareMiles:2589988.110336,esriAcres:4046.8564224,esriHectares:1E4,esriAres:100,esriSquareInches:6.4516E-4,esriSquareMillimeters:1E-6,esriSquareCentimeters:1E-4,
esriSquareDecimeters:.01},e=Math.PI/180,b={4326:{a:6378137,b:6356752.31424518,f:1/298.257223563,eSq:.006694379990197414,radius:6371008.771415059},104900:{a:2439700,b:2439700,f:0,eSq:0,radius:2439700},104901:{a:6051E3,b:6051E3,f:0,eSq:0,radius:6051E3},104902:{a:6051800,b:6051800,f:0,eSq:0,radius:6051800},104903:{a:1737400,b:1737400,f:0,eSq:0,radius:1737400},104904:{a:3393400,b:3375730,f:1/192.04301075,eSq:.01038722,radius:3387510},104905:{a:3396190,b:3376200,f:1/169.89444722,eSq:.01173737,radius:3389526.6666666665},
104906:{a:6200,b:6200,f:0,eSq:0,radius:6200},104907:{a:11100,b:11100,f:0,eSq:0,radius:11100},104912:{a:2409300,b:2409300,f:0,eSq:0,radius:2409300},104915:{a:1562090,b:1562090,f:0,eSq:0,radius:1562090},104916:{a:2632345,b:2632345,f:0,eSq:0,radius:2632345},104918:{a:1821460,b:1821460,f:0,eSq:0,radius:1821460},104929:{a:249400,b:249400,f:0,eSq:0,radius:249400},104943:{a:2575E3,b:2575E3,f:0,eSq:0,radius:2575E3},104971:{a:3396190,b:3396190,f:0,eSq:0,radius:3396190},104972:{a:47E4,b:47E4,f:0,eSq:0,radius:47E4},
104973:{a:255E3,b:255E3,f:0,eSq:0,radius:255E3},104974:{a:2439400,b:2439400,f:0,eSq:0,radius:2439400}};h={isSupported:f,getSpheroidInfo:g,geodesicDensify:l,geodesicLengths:function(p,t){var z=[];G.forEach(p,function(C,y){var D=0,B=C.spatialReference;G.forEach(C.paths,function(u,E){E=0;var v;for(v=1;v<u.length;v++){var A=u[v-1][0]*e;var F=u[v][0]*e;var I=u[v-1][1]*e;var N=u[v][1]*e;if(I!==N||A!==F)A=k(I,A,N,F,B),E+=A.geodesicDistance}D+=E});D/=m[t];z.push(D)});return z},geodesicAreas:function(p,t){var z=
[],C=[];G.forEach(p,function(y,D){D=.0015696101447650193*g(y.spatialReference).radius;z.push(l(y,D))});G.forEach(z,function(y,D){var B=0,u=y.spatialReference;G.forEach(y.rings,function(E,v){v=a(new w(E[0][0],E[0][1],u));var A=a(new w(E[E.length-1][0],E[E.length-1][1],u)),F=A.x*v.y-v.x*A.y,I;for(I=0;I<E.length-1;I++)v=a(new w(E[I+1][0],E[I+1][1],u)),A=a(new w(E[I][0],E[I][1],u)),F+=A.x*v.y-v.x*A.y;B+=F});B/=m[t];C.push(B/-2)});return C},_unitsDictionary:m,_toEqualAreaPoint:a,_directGeodeticSolver:d,
_inverseGeodeticSolver:k};c("extend-esri")&&x.mixin(x.getObject("geometry",!0,r),h);return h})},"esri/symbol":function(){define("./symbols/Symbol ./symbols/MarkerSymbol ./symbols/SimpleMarkerSymbol ./symbols/PictureMarkerSymbol ./symbols/LineSymbol ./symbols/SimpleLineSymbol ./symbols/CartographicLineSymbol ./symbols/FillSymbol ./symbols/SimpleFillSymbol ./symbols/PictureFillSymbol ./symbols/Font ./symbols/TextSymbol ./symbols/jsonUtils".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,k){return{Symbol:G,
MarkerSymbol:x,SimpleMarkerSymbol:c,PictureMarkerSymbol:r,LineSymbol:h,SimpleLineSymbol:w,CartographicLineSymbol:q,FillSymbol:n,SimpleFillSymbol:f,PictureFillSymbol:g,Font:a,TextSymbol:d,jsonUtils:k}})},"esri/renderer":function(){define("./renderers/Renderer ./renderers/SimpleRenderer ./renderers/UniqueValueRenderer ./renderers/ClassBreaksRenderer ./renderers/TemporalRenderer ./renderers/SymbolAger ./renderers/TimeClassBreaksAger ./renderers/TimeRampAger ./renderers/StretchRenderer ./renderers/jsonUtils".split(" "),
function(G,x,c,r,h,w,q,n,f,g){return{Renderer:G,SimpleRenderer:x,UniqueValueRenderer:c,ClassBreaksRenderer:r,TemporalRenderer:h,SymbolAger:w,TimeClassBreaksAger:q,TimeRampAger:n,StretchRenderer:f,jsonUtils:g}})},"esri/renderers/Renderer":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has dojox/gfx/_base ../kernel ../Color ../layers/support/attributeUtils ../support/expressionUtils ../arcadeProfiles/visualizationProfile".split(" "),function(G,x,c,r,h,w,q,n,f,g){var a=Math.PI;
G=G(null,{declaredClass:"esri.renderer.Renderer",constructor:function(d){this._cache={};if(d&&!d.declaredClass){this.rotationInfo=d.rotationInfo;if(!this.rotationInfo){var k=d.rotationType,l=d.rotationExpression;if(k||l)this.rotationInfo={type:k,expression:l}}this.setRotationInfo(this.rotationInfo);this.setSizeInfo(this._readSizeInfo(d.sizeInfo));this.setColorInfo(this._readColorInfo(d.colorInfo));this.setOpacityInfo(this._readOpacityInfo(d.transparencyInfo));this.setVisualVariables(this._readVariables(d.visualVariables));
this.setAuthoringInfo(d.authoringInfo)}this.getSymbol=x.hitch(this,this.getSymbol)},getSymbol:function(d){},_readSizeInfo:function(d){if(d){var k=d.minSize,l=d.maxSize;k&&(d.minSize="number"===typeof k?h.pt2px(k):this._readSizeInfo(k));l&&(d.maxSize="number"===typeof l?h.pt2px(l):this._readSizeInfo(l));d.stops&&c.forEach(d.stops,function(m){m.size&&"number"===typeof m.size&&(m.size=h.pt2px(m.size))})}return d},_readColorInfo:function(d){d&&(c.forEach(d.colors,function(k,l){x.isArray(k)&&(d.colors[l]=
q.toDojoColor(k))}),c.forEach(d.stops,function(k,l){k.color&&x.isArray(k.color)&&(d.stops[l].color=q.toDojoColor(k.color))}));return d},_readOpacityInfo:function(d){if(d){var k=x.mixin({},d);k.transparencyValues&&(k.opacityValues=c.map(k.transparencyValues,function(l){return 1-l/100}),delete k.transparencyValues);k.stops&&(k.stops=c.map(k.stops,function(l){l=x.mixin({},l);l.opacity=1-l.transparency/100;delete l.transparency;return l}))}return k},_readVariables:function(d){d&&(d=c.map(d,function(k){"sizeInfo"===
k.type?k=this._readSizeInfo(k):"colorInfo"===k.type?k=this._readColorInfo(k):"transparencyInfo"===k.type&&(k=this._readOpacityInfo(k),k.type="opacityInfo");return k},this));return d},setAuthoringInfo:function(d){this.authoringInfo=d},setRotationInfo:function(d){if(d=this.rotationInfo="string"===typeof d?{field:d}:d){if(d.expression&&!x.isFunction(d.expression)&&!d.field){var k=d.expression.match(this.rotationRE);k&&k[1]&&(d.field=k[1])}d.rotationType=d.type}this._cache.rotationInfo=this._processRotationInfo(d);
return this},rotationRE:/^\[([^\]]+)\]$/i,_processRotationInfo:function(d){d&&!d.rotationType&&(d.rotationType="geographic");return this._createCache(d)},getRotationAngle:function(d,k){var l=this._getVarInfo(k&&k.rotationInfo,"rotationInfo");k=l.variable;l=this._cache[l.cacheKey];var m="arithmetic"===this._getRotationType(k),e=l&&l.hasExpr,b=null;if(k.field||e)b=this._getDataValue(d,k,null,l),null!=b&&(b=(b+(m?-90:0))*(m?-1:1));return b},_getRotationType:function(d){return d&&("rotationInfo"===d.type?
d.rotationType:d.type)},_getDataValue:function(d,k,l,m,e){m||(m=this._getVarInfo(k,l),k=m.variable,m=this._cache[m.cacheKey],"sizeInfo"===l&&(m=m.root));return d._getDataValue(k,m,f,e)},setVisualVariables:function(d){var k=this._cache;c.forEach(this.visualVariables,function(l,m){k.hasOwnProperty(m)&&(k[m]=null)},this);this.visualVariables=d;c.some(d,function(l){return!!l.target})&&d.sort(function(l,m){return l.target===m.target?0:l.target?1:-1});c.forEach(d,function(l,m){"colorInfo"===l.type?k[m]=
this._processColorInfo(l):"opacityInfo"===l.type?k[m]=this._processOpacityInfo(l):"sizeInfo"===l.type?k[m]=this._processSizeInfo(l):"rotationInfo"===l.type&&(k[m]=this._processRotationInfo(l))},this);return this},getVisualVariableValues:function(d){var k=this.visualVariables,l;k&&(l=c.map(k,function(m){switch(m.type){case "sizeInfo":var e=this.getSize(d,{sizeInfo:m});break;case "colorInfo":e=this.getColor(d,{colorInfo:m});break;case "opacityInfo":e=this.getOpacity(d,{opacityInfo:m});break;case "rotationInfo":e=
this.getRotationAngle(d,{rotationInfo:m})}return{variable:m,value:e}},this));return l},getFieldsUsedInExpressions:function(d){var k=[];c.forEach(this._getCacheObjects(),function(l){l.syntaxTree&&(k=k.concat(f.extractFieldNames(l.syntaxTree,d)))});k.sort();return c.filter(k,function(l,m){return 0===m||k[m-1]!==l})},hasGeometryOperations:function(){return c.some(this._getCacheObjects(),function(d){return d.syntaxTree?f.hasGeometryOperations(d.syntaxTree):!1})},initializeArcadeEngine:function(){var d=
[];c.forEach(this._getCacheObjects(),function(k){k.syntaxTree&&d.push(k.syntaxTree)});return g.initialize(d)},hasVisualVariables:function(d,k){return d?!!this.getVisualVariablesForType(d,k):!!(this.getVisualVariablesForType("sizeInfo",k)||this.getVisualVariablesForType("colorInfo",k)||this.getVisualVariablesForType("opacityInfo",k)||this.getVisualVariablesForType("rotationInfo",k))},getVisualVariablesForType:function(d,k){var l=this.visualVariables;if(!k&&this[d]){"rotationInfo"===d&&(this[d].rotationType=
this[d].type);var m=[this[d]]}else l&&(m=c.filter(l,function(e){return e.type===d&&("string"===typeof k?e.target===k:!1===k?!e.target:!0)}))&&0===m.length&&(m=void 0);return m},setSizeInfo:function(d){this.sizeInfo=this.proportionalSymbolInfo=d;this._cache.sizeInfo=this._processSizeInfo(d);return this},_processSizeInfo:function(d){return d&&{root:this._createCache(d),minSize:this._createCache(d.minSize),maxSize:this._createCache(d.maxSize)}},_convertExpressionToArcade:function(d){d&&d.expression&&
(d.valueExpression="$view.scale")},_getVarInfo:function(d,k){if(d&&d.type===k){var l=c.indexOf(this.visualVariables,d);d=this.visualVariables[l]}else l=k,d=this[k];return{variable:d,cacheKey:l}},setProportionalSymbolInfo:function(d){this.setSizeInfo(d);return this},getSize:function(d,k){var l=this._getVarInfo(k&&k.sizeInfo,"sizeInfo"),m=l.variable;l=this._cache[l.cacheKey];var e=null;if(m){var b=m.minSize;e=m.maxSize;b="object"===typeof b&&b?this._getSize(d,b,l&&l.minSize,k):b;e="object"===typeof e&&
e?this._getSize(d,e,l&&l.maxSize,k):e;e=this._getSize(d,m,l&&l.root,k,[b,e])}return e},_getSize:function(d,k,l,m,e){var b=k.stops,p=0,t=l&&l.hasExpr,z=l&&l.ipData,C=l&&l.isScaleDriven,y="object"===typeof d&&!!d,D="number"===typeof d?d:null;if(k.field||C||t){var B=m&&m.scale;t=e?e[0]:k.minSize;e=e?e[1]:k.maxSize;var u=k.minDataValue,E=k.maxDataValue,v=k.valueUnit||"unknown",A=k.valueRepresentation,F=k.scaleBy,I=m&&m.shape;C?D=B:"number"!==typeof D&&y&&(D=this._getDataValue(d,k,null,l));if(!this._isValidNumber(D))return null;
if(b)t=this._lookupData(D,z),D=t[0],e=t[1],D===e?p=b[D].size:(D=b[D].size,b=b[e].size,p=D+(b-D)*t[2]);else if(null!=t&&null!=e&&null!=u&&null!=E)D<=u?p=t:D>=E?p=e:(b=(D-u)/(E-u),"area"===F&&I?(t=(D="circle"===I)?a*Math.pow(t/2,2):t*t,b=t+b*((D?a*Math.pow(e/2,2):e*e)-t),p=D?2*Math.sqrt(b/a):Math.sqrt(b)):p=t+b*(e-t));else if("unknown"===v)null!=t&&null!=u&&(t&&u?(b=D/u,p="circle"===I?2*Math.sqrt(b*Math.pow(t/2,2)):"square"===I||"diamond"===I||"image"===I?Math.sqrt(b*Math.pow(t,2)):b*t):p=D+(t||u),
p=p<t?t:p,null!=e&&p>e&&(p=e));else{b=(m&&m.resolution?m.resolution:1)*this._meterIn[v];if("area"===A)p=Math.sqrt(D/a)/b,p*=2;else if(p=D/b,"radius"===A||"distance"===A)p*=2;null!=t&&p<t&&(p=t);null!=e&&p>e&&(p=e)}}else p=b&&b[0]&&b[0].size,null==p&&(p=k.minSize);return p=isNaN(p)?0:p},getSizeRangeAtScale:function(d,k){d=this._getVarInfo(d,"sizeInfo");var l=this._cache[d.cacheKey],m={scale:k};if((d=d.variable)&&k){var e=d.minSize;k=d.maxSize;var b=d.stops;b&&b.length?(d=b[0].size,l=b[b.length-1].size):
(d="object"===typeof e&&e?this._getSize({},e,l&&l.minSize,m):e,l="object"===typeof k&&k?this._getSize({},k,l&&l.maxSize,m):k);if(null!=d||null!=l){if(d>l){var p=l;l=d;d=p}p={minSize:d,maxSize:l}}}return p},setColorInfo:function(d){this.colorInfo=d;this._cache.colorInfo=this._processColorInfo(d);return this},_createCache:function(d,k){if(k=n.createAttributeCache(d,k))k.ipData=this._interpolateData(d);return k},_getCacheObjects:function(d){var k;d=d||this._cache;var l=[];for(k in d){var m=d[k];d.hasOwnProperty(k)&&
m&&"object"===typeof m&&(m.hasOwnProperty("idSource")?l.push(m):l=l.concat(this._getCacheObjects(m)))}return l},_processColorInfo:function(d){d&&(c.forEach(d.colors,function(k,l){x.isArray(k)&&(d.colors[l]=new q(k))}),c.forEach(d.stops,function(k,l){k.color&&x.isArray(k.color)&&(d.stops[l].color=new q(k.color))}));return this._createCache(d)},getColor:function(d,k){k=this._getVarInfo(k&&k.colorInfo,"colorInfo");return this._getColorComponent(d,k.variable,this._cache[k.cacheKey])},setOpacityInfo:function(d){this.opacityInfo=
d;this._cache.opacityInfo=this._processOpacityInfo(d);return this},_processOpacityInfo:function(d){return this._createCache(d)},getOpacity:function(d,k){k=this._getVarInfo(k&&k.opacityInfo,"opacityInfo");return this._getColorComponent(d,k.variable,this._cache[k.cacheKey],!0)},_getColorComponent:function(d,k,l,m,e){var b="number"===typeof d?d:null,p=l&&l.hasExpr,t=l&&l.ipData,z;k&&k.field||p?("number"!==typeof b&&"object"===typeof d&&d&&(b=this._getDataValue(d,k,null,l)),this._isValidNumber(b)||(b=
null),null!=b&&(z=m?this._getOpacity(b,k,t):this._getColor(b,k,t))):k&&(d=k.stops,m?(z=d&&d[0]&&d[0].opacity,null==z&&(z=k.opacityValues&&k.opacityValues[0])):z=d&&d[0]&&d[0].color||k.colors&&k.colors[0]);e&&(e.data=b,e.value=z);return e||z},_isValidNumber:function(d){return"number"===typeof d&&!isNaN(d)&&Infinity!==d&&-Infinity!==d},_interpolateData:function(d){if(d)if(d.colors||d.opacityValues){var k=(d.colors||d.opacityValues).length,l=d.minDataValue,m=(d.maxDataValue-l)/(k-1);var e=[];for(d=0;d<
k;d++)e[d]=l+d*m}else d.stops&&(e=c.map(d.stops,function(b){return b.value}));return e},_getOpacity:function(d,k,l){d=this._lookupData(d,l);k=k||this.opacityInfo;if(d){l=d[0];var m=d[1];l===m?m=this._getOpacValue(k,l):(l=this._getOpacValue(k,l),k=this._getOpacValue(k,m),m=l+(k-l)*d[2])}return m},_getOpacValue:function(d,k){return d.opacityValues?d.opacityValues[k]:d.stops[k].opacity},_getColor:function(d,k,l){d=this._lookupData(d,l);k=k||this.colorInfo;if(d){var m=d[0];l=d[1];m=m===l?this._getColorObj(k,
m):q.blendColors(this._getColorObj(k,m),this._getColorObj(k,l),d[2])}return m},_getColorObj:function(d,k){return d.colors?d.colors[k]:d.stops[k].color},_lookupData:function(d,k){if(k){var l=0,m=k.length-1;c.some(k,function(b,p){if(d<b)return m=p,!0;l=p;return!1});var e=[l,m,(d-k[l])/(k[m]-k[l])]}return e},_meterIn:{inches:1/.0254,feet:1/.3048,yards:1/.9144,miles:1/1609.344,"nautical-miles":1/1852,millimeters:1E3,centimeters:100,decimeters:10,meters:1,kilometers:.001,"decimal-degrees":180/20015077},
_writeSizeInfo:function(d){if(d){d=x.mixin({},d);this._convertExpressionToArcade(d);var k=d.minSize,l=d.maxSize;k&&(d.minSize="number"===typeof k?h.px2pt(k):this._writeSizeInfo(k));l&&(d.maxSize="number"===typeof l?h.px2pt(l):this._writeSizeInfo(l));if(k=d.legendOptions)if(d.legendOptions=x.mixin({},k),k=k.customValues)d.legendOptions.customValues=k.slice(0);d.stops&&(d.stops=c.map(d.stops,function(m){m=x.mixin({},m);m.size&&"number"===typeof m.size&&(m.size=h.px2pt(m.size));return m}))}return d},
_writeColorInfo:function(d){d&&(d=x.mixin({},d),d.colors&&(d.colors=c.map(d.colors,function(k){return q.toJsonColor(k)})),d.stops&&(d.stops=c.map(d.stops,function(k){k=x.mixin({},k);k.color&&(k.color=q.toJsonColor(k.color));return k})),d.legendOptions&&(d.legendOptions=x.mixin({},d.legendOptions)));return d},_writeOpacityInfo:function(d){if(d){var k=x.mixin({},d);k.opacityValues&&(k.transparencyValues=c.map(k.opacityValues,function(l){return 100*(1-l)}),delete k.opacityValues);k.stops&&(k.stops=c.map(k.stops,
function(l){l=x.mixin({},l);l.transparency=100*(1-l.opacity);delete l.opacity;return l}));k.legendOptions&&(k.legendOptions=x.mixin({},k.legendOptions))}return k},toJson:function(d){var k=this.visualVariables,l=x.clone(this.authoringInfo),m=d&&d.useLegacyRotationProperties,e=(d=(d=this.getVisualVariablesForType("rotationInfo",!1))&&d[0])&&d.field,b;d&&(d===this.rotationInfo||m)&&(b=d.expression||e&&(x.isFunction(e)?e:"["+e+"]"));k&&(k=c.map(k,function(p){"sizeInfo"===p.type?p=this._writeSizeInfo(p):
"colorInfo"===p.type?p=this._writeColorInfo(p):"opacityInfo"===p.type?(p=this._writeOpacityInfo(p),p.type="transparencyInfo"):"rotationInfo"===p.type&&(p=m?null:x.mixin({},p));return p},this),k=c.filter(k,function(p){return null!=p}));l&&c.forEach(l.visualVariables,function(p){"opacityInfo"===p.type&&(p.type="transparencyInfo")});return{rotationType:b&&(this._getRotationType(d)||"geographic"),rotationExpression:b,colorInfo:this._writeColorInfo(this.colorInfo),transparencyInfo:this._writeOpacityInfo(this.opacityInfo),
sizeInfo:this._writeSizeInfo(this.sizeInfo),visualVariables:k,authoringInfo:l}}});r("extend-esri")&&x.setObject("renderer.Renderer",G,w);return G})},"esri/layers/support/attributeUtils":function(){define("dojo/_base/lang dojo/has dojox/encoding/digests/_base dojox/encoding/digests/MD5 ../../kernel ../../support/expressionUtils".split(" "),function(G,x,c,r,h,w){var q={viewScaleRE:/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i,getAttributeId:function(n){return"string"===typeof n?r(n,c.outputTypes.Hex):
null},getAttributeIdSource:function(n){if(!n)return null;var f=n.field,g=n.valueExpression,a=null;if(g)a=g;else if(G.isFunction(f))a=f.toString();else if(f){var d=(g=n.normalizationField)?"field":n.normalizationType;n=parseFloat(n.normalizationTotal);d&&(d=d.toLowerCase(),a=f.toLowerCase()+",norm:"+d,g?a+=","+g.toLowerCase():"percent-of-total"===d&&(f=n,"number"===typeof f&&!isNaN(f)&&Infinity!==f&&-Infinity!==f&&0!==n||(n=null),a+=","+n))}return a},createAttributeCache:function(n,f){if(!n)return null;
var g=n.valueExpression,a=w.createSyntaxTree(g),d=q.getAttributeIdSource(n);return{attributeInfo:n,isNumeric:!f,idSource:d,id:q.getAttributeId(d),hasExpr:!!g,compiledFunc:w.createFunction(a),syntaxTree:a,isScaleDriven:!!n.expression||q.viewScaleRE.test(g),dependsOnView:a?w.dependsOnView(a):!1,dependsOnGeometry:a?w.hasGeometryOperations(a):!1,isJSFunc:G.isFunction(n.field)}}};x("extend-esri")&&G.setObject("layers.support.attributeUtils",q,h);return q})},"dojox/encoding/digests/_base":function(){define(["dojo/_base/lang"],
function(G){G=G.getObject("dojox.encoding.digests",!0);G.outputTypes={Base64:0,Hex:1,String:2,Raw:3};G.addWords=function(x,c){var r=(x&65535)+(c&65535);return(x>>16)+(c>>16)+(r>>16)<<16|r&65535};G.stringToWord=function(x){for(var c=[],r=0,h=8*x.length;r<h;r+=8)c[r>>5]|=(x.charCodeAt(r/8)&255)<<r%32;return c};G.wordToString=function(x){for(var c=[],r=0,h=32*x.length;r<h;r+=8)c.push(String.fromCharCode(x[r>>5]>>>r%32&255));return c.join("")};G.wordToHex=function(x){for(var c=[],r=0,h=4*x.length;r<h;r++)c.push("0123456789abcdef".charAt(x[r>>
2]>>r%4*8+4&15)+"0123456789abcdef".charAt(x[r>>2]>>r%4*8&15));return c.join("")};G.wordToBase64=function(x){for(var c=[],r=0,h=4*x.length;r<h;r+=3)for(var w=(x[r>>2]>>r%4*8&255)<<16|(x[r+1>>2]>>(r+1)%4*8&255)<<8|x[r+2>>2]>>(r+2)%4*8&255,q=0;4>q;q++)8*r+6*q>32*x.length?c.push("\x3d"):c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(w>>6*(3-q)&63));return c.join("")};G.stringToUtf8=function(x){for(var c="",r=-1,h,w;++r<x.length;)h=x.charCodeAt(r),w=r+1<x.length?x.charCodeAt(r+
1):0,55296<=h&&56319>=h&&56320<=w&&57343>=w&&(h=65536+((h&1023)<<10)+(w&1023),r++),127>=h?c+=String.fromCharCode(h):2047>=h?c+=String.fromCharCode(192|h>>>6&31,128|h&63):65535>=h?c+=String.fromCharCode(224|h>>>12&15,128|h>>>6&63,128|h&63):2097151>=h&&(c+=String.fromCharCode(240|h>>>18&7,128|h>>>12&63,128|h>>>6&63,128|h&63));return c};return G})},"dojox/encoding/digests/MD5":function(){define(["./_base"],function(G){function x(q,n,f,g,a,d){var k=G.addWords;q=G.addWords(G.addWords(n,q),G.addWords(g,
d));return k.call(G,q<<a|q>>>32-a,f)}function c(q,n,f,g,a,d,k){return x(n&f|~n&g,q,n,a,d,k)}function r(q,n,f,g,a,d,k){return x(n&g|f&~g,q,n,a,d,k)}function h(q,n,f,g,a,d,k){return x(f^(n|~g),q,n,a,d,k)}function w(q,n){q[n>>5]|=128<<n%32;q[(n+64>>>9<<4)+14]=n;n=1732584193;for(var f=-271733879,g=-1732584194,a=271733878,d=0;d<q.length;d+=16){var k=n,l=f,m=g,e=a;n=c(n,f,g,a,q[d+0],7,-680876936);a=c(a,n,f,g,q[d+1],12,-389564586);g=c(g,a,n,f,q[d+2],17,606105819);f=c(f,g,a,n,q[d+3],22,-1044525330);n=c(n,
f,g,a,q[d+4],7,-176418897);a=c(a,n,f,g,q[d+5],12,1200080426);g=c(g,a,n,f,q[d+6],17,-1473231341);f=c(f,g,a,n,q[d+7],22,-45705983);n=c(n,f,g,a,q[d+8],7,1770035416);a=c(a,n,f,g,q[d+9],12,-1958414417);g=c(g,a,n,f,q[d+10],17,-42063);f=c(f,g,a,n,q[d+11],22,-1990404162);n=c(n,f,g,a,q[d+12],7,1804603682);a=c(a,n,f,g,q[d+13],12,-40341101);g=c(g,a,n,f,q[d+14],17,-1502002290);f=c(f,g,a,n,q[d+15],22,1236535329);n=r(n,f,g,a,q[d+1],5,-165796510);a=r(a,n,f,g,q[d+6],9,-1069501632);g=r(g,a,n,f,q[d+11],14,643717713);
f=r(f,g,a,n,q[d+0],20,-373897302);n=r(n,f,g,a,q[d+5],5,-701558691);a=r(a,n,f,g,q[d+10],9,38016083);g=r(g,a,n,f,q[d+15],14,-660478335);f=r(f,g,a,n,q[d+4],20,-405537848);n=r(n,f,g,a,q[d+9],5,568446438);a=r(a,n,f,g,q[d+14],9,-1019803690);g=r(g,a,n,f,q[d+3],14,-187363961);f=r(f,g,a,n,q[d+8],20,1163531501);n=r(n,f,g,a,q[d+13],5,-1444681467);a=r(a,n,f,g,q[d+2],9,-51403784);g=r(g,a,n,f,q[d+7],14,1735328473);f=r(f,g,a,n,q[d+12],20,-1926607734);n=x(f^g^a,n,f,q[d+5],4,-378558);a=x(n^f^g,a,n,q[d+8],11,-2022574463);
g=x(a^n^f,g,a,q[d+11],16,1839030562);f=x(g^a^n,f,g,q[d+14],23,-35309556);n=x(f^g^a,n,f,q[d+1],4,-1530992060);a=x(n^f^g,a,n,q[d+4],11,1272893353);g=x(a^n^f,g,a,q[d+7],16,-155497632);f=x(g^a^n,f,g,q[d+10],23,-1094730640);n=x(f^g^a,n,f,q[d+13],4,681279174);a=x(n^f^g,a,n,q[d+0],11,-358537222);g=x(a^n^f,g,a,q[d+3],16,-722521979);f=x(g^a^n,f,g,q[d+6],23,76029189);n=x(f^g^a,n,f,q[d+9],4,-640364487);a=x(n^f^g,a,n,q[d+12],11,-421815835);g=x(a^n^f,g,a,q[d+15],16,530742520);f=x(g^a^n,f,g,q[d+2],23,-995338651);
n=h(n,f,g,a,q[d+0],6,-198630844);a=h(a,n,f,g,q[d+7],10,1126891415);g=h(g,a,n,f,q[d+14],15,-1416354905);f=h(f,g,a,n,q[d+5],21,-57434055);n=h(n,f,g,a,q[d+12],6,1700485571);a=h(a,n,f,g,q[d+3],10,-1894986606);g=h(g,a,n,f,q[d+10],15,-1051523);f=h(f,g,a,n,q[d+1],21,-2054922799);n=h(n,f,g,a,q[d+8],6,1873313359);a=h(a,n,f,g,q[d+15],10,-30611744);g=h(g,a,n,f,q[d+6],15,-1560198380);f=h(f,g,a,n,q[d+13],21,1309151649);n=h(n,f,g,a,q[d+4],6,-145523070);a=h(a,n,f,g,q[d+11],10,-1120210379);g=h(g,a,n,f,q[d+2],15,
718787259);f=h(f,g,a,n,q[d+9],21,-343485551);n=G.addWords(n,k);f=G.addWords(f,l);g=G.addWords(g,m);a=G.addWords(a,e)}return[n,f,g,a]}G.MD5=function(q,n){n=n||G.outputTypes.Base64;q=w(G.stringToWord(q),8*q.length);switch(n){case G.outputTypes.Raw:return q;case G.outputTypes.Hex:return G.wordToHex(q);case G.outputTypes.String:return G.wordToString(q);default:return G.wordToBase64(q)}};G.MD5._hmac=function(q,n,f){f=f||G.outputTypes.Base64;var g=G.stringToWord(n);16<g.length&&(g=w(g,8*n.length));var a=
[];n=[];for(var d=0;16>d;d++)a[d]=g[d]^909522486,n[d]=g[d]^1549556828;q=w(a.concat(G.stringToWord(q)),512+8*q.length);q=w(n.concat(q),640);switch(f){case G.outputTypes.Raw:return q;case G.outputTypes.Hex:return G.wordToHex(q);case G.outputTypes.String:return G.wordToString(q);default:return G.wordToBase64(q)}};return G.MD5})},"esri/support/expressionUtils":function(){define("dojo/_base/lang dojo/_base/array dojo/has dojo/Deferred ../kernel ../arcade/arcade ../arcade/Feature ../arcade/languageUtils".split(" "),
function(G,x,c,r,h,w,q,n){function f(m){var e=new r;m.then(function(b){if(!e.isFulfilled())return n.isDate(b)&&(b=b.toJSDate()),e.resolve(b)},function(b){if(!e.isFulfilled())return e.reject(b)});return e.promise}function g(m){var e=new r;m.then(function(b){if(!e.isFulfilled())return e.resolve(b)},function(b){if(!e.isFulfilled())return e.reject(b)});return e.promise}function a(m){return m.replace(/[|\\{}()[\]^$+*?.]/g,"\\$\x26")}var d={vars:{$feature:"any",$view:"any"}},k=/^\$(feature|aggregatedFeatures)\./i,
l={_getSyntaxTree:function(m){return"string"===typeof m?l.createSyntaxTree(m):m},createSyntaxTree:function(m){try{var e=m?w.parseScript(m):null}catch(b){e=null}return e},createFunction:function(m,e){e=e||G.clone(d);m=l._getSyntaxTree(m);try{var b=m?w.compileScript(m,e):null}catch(p){console.log("expressionUtils.createFunction: compilation failed. "+(p.message||"")),b=null}return b},createExecContext:function(m,e){return{vars:{$feature:m?q.createFromGraphic(m):new q,$view:e&&e.view},spatialReference:e&&
e.sr}},evalSyntaxTree:function(m,e){try{var b=w.executeScript(m,e)}catch(p){b=null}return b},executeFunction:function(m,e){try{var b=m?m(e):null}catch(p){b=null}return n.isDate(b)?b.toJSDate():b},executeAsyncFunction:function(m,e){try{var b=m?f(m(e)):(new r).reject(Error("expressionUtils.executeAsyncFunction: Invalid argument. compiledFunc is missing."))}catch(p){b=(new r).reject(p)}return b},extractFieldNames:function(m,e){m=l._getSyntaxTree(m);m=w.extractExpectedFieldLiterals(m);var b=[];x.forEach(m,
function(t){k.test(t)&&(t=t.replace(k,""),b.push(t))});var p=x.filter(b,function(t){return-1!==t.indexOf("*")});b=x.filter(b,function(t){return-1===p.indexOf(t)});e&&x.forEach(p,function(t){var z=new RegExp("^"+t.split(/\*+/).map(a).join(".*")+"$","i");x.forEach(e,function(C){z.test(C)&&b.push(C)})});b.sort();return x.filter(b,function(t,z){return 0===z||b[z-1]!==t})},dependsOnView:function(m){return l.hasVariable(m,"$view")},hasGeometryFunctions:function(m){return(m=l._getSyntaxTree(m))?w.scriptTouchesGeometry(m):
!1},hasGeometryOperations:function(m){return(m=l._getSyntaxTree(m))?w.scriptUsesGeometryEngine(m):!1},enableGeometryOperations:function(){return g(w.enableGeometrySupport())},hasVariable:function(m,e){return(m=l._getSyntaxTree(m))?w.referencesMember(m,e):!1},hasFunction:function(m,e){return(m=l._getSyntaxTree(m))?w.referencesFunction(m,e):!1},createFeatureSetFromLayer:function(m,e){e=e||{};var b=w.featureSetUtils();return b?b.constructFeatureSet(m,e.spatialReference,e.outFields,e.returnGeometry,e.cache):
null},createFeatureSetFromLayerUrl:function(m,e){e=e||{};var b=w.featureSetUtils();return b?b.constructFeatureSetFromUrlRaw(m,e.spatialReference,e.outFields,e.returnGeometry,e.cache):null},createFeatureSetCollectionFromMap:function(m,e){var b=w.featureSetUtils();return b?b.createFeatureSetCollectionFromMap(m,m.spatialReference,e&&e.cache):null},createFeatureSetCollectionFromServiceUrl:function(m,e){e=e||{};var b=w.featureSetUtils();return b?b.createFeatureSetCollectionFromService(m,e.spatialReference,
e.cache):null},hasFeatureSetOperations:function(m){return(m=l._getSyntaxTree(m))?w.scriptUsesFeatureSet(m):!1},enableFeatureSetOperations:function(){return g(w.enableFeatureSetSupport().then(function(){var m=w.featureSetUtils();m&&m.initialiseMetaDataCache()}))},enableAsyncOperations:function(){return g(w.enableAsyncSupport())}};c("extend-esri")&&G.setObject("support.expressionUtils",l,h);return l})},"esri/arcade/arcade":function(){define("require exports ./polyfill/tsSupport/awaiter ./polyfill/tsSupport/generator ./arcadeCompiler ./ArcadeModuleResolver ./arcadeRuntime ./executionError ./parser ./treeAnalysis dojo/has ./polyfill/maybe".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d){function k(ha,sa){if(null===da)throw new n.ArcadeExecutionError(null,n.ExecutionErrorCodes.AsyncNotEnabled,null);if(a("esri-csp-restrictions")||!1===F)return function(Ca){return da.executeScript(ha,Ca)};try{return h.compileScript(ha,sa,!0)}catch(Ca){if("esri.arcade.arcadeuncompilableerror"===Ca.declaredRootClass)return function(oa){return da.executeScript(ha,oa)};throw Ca;}}function l(ha,sa){void 0===sa&&(sa=[]);return f.parseScript(ha,sa)}function m(ha,sa){if(!0===
sa.useAsync||!0===ha.isAsync){if(null===da)throw new n.ArcadeExecutionError(null,n.ExecutionErrorCodes.AsyncNotEnabled,null);return da.executeScript(ha,sa)}return q.executeScript(ha,sa)}function e(ha,sa){return g.referencesMember(ha,sa)}function b(ha,sa){void 0===sa&&(sa=[]);void 0===ha.usesGeometry&&g.findScriptDependencies(ha,sa);return!0===ha.usesGeometry}function p(){return na?na:na=t()}function t(){return c(this,void 0,void 0,function(){return r(this,function(ha){return[2,new Promise(function(sa,
Ca){G(["../geometry/geometryEngine","./functions/geomsync"],function(oa,qa){N=!0;qa.setGeometryEngine(oa);sa(!0)},function(oa){Ca(oa)})})]})})}function z(){return null!==xa?xa:xa=C()}function C(){return c(this,void 0,void 0,function(){var ha,sa,Ca;return r(this,function(oa){switch(oa.label){case 0:return[4,h.enableAsyncSupport()];case 1:return oa.sent(),[4,new Promise(function(qa,L){G(["./arcadeAsyncRuntime"],function(Y){qa(Y)},L)})];case 2:da=oa.sent();ha=0;for(sa=ba;ha<sa.length;ha++)Ca=sa[ha],
da.extend(Ca),h.extend(Ca,"async");ba=null;return[2,!0]}})})}function y(){return da?!0:!1}function D(){return W?W:W=B()}function B(){return c(this,void 0,void 0,function(){var ha;return r(this,function(sa){switch(sa.label){case 0:return[4,z()];case 1:return sa.sent(),[4,new Promise(function(Ca,oa){G(["./featureSetUtils","./functions/featuresetbase","./functions/featuresetgeom","./functions/featuresetstats","./functions/featuresetstring"],function(qa,L,Y,ca,V){Ca({featuresetutils:qa,libraries:[L,Y,
ca,V]})},oa)})];case 2:return ha=sa.sent(),la=ha.featuresetutils,da.extend(ha.libraries),h.extend(ha.libraries,"async"),I=!0,[2,!0]}})})}function u(ha,sa){void 0===sa&&(sa=[]);void 0===ha.usesFeatureSet&&g.findScriptDependencies(ha,sa);return!0===ha.usesFeatureSet}function E(ha,sa,Ca,oa,qa,L){void 0===oa&&(oa=[]);void 0===qa&&(qa=!1);void 0===L&&(L=null);return c(this,void 0,void 0,function(){var Y,ca;return r(this,function(V){switch(V.label){case 0:Y="string"===typeof sa?l(sa):sa;ca=[];if(Y&&(!1===
N&&(b(Y)||qa)&&ca.push(p()),!1===y()&&(!0===Y.isAsync||Ca)&&ca.push(z()),!1===I)){if(!(V=u(Y)))a:{V=Y;if(oa)for(var X=0,ja=oa;X<ja.length;X++)if(e(V,ja[X])){V=!0;break a}V=!1}V&&ca.push(D())}return ca.length?[4,Promise.all(ca)]:[3,2];case 1:V.sent(),V.label=2;case 2:return[4,v(ha,Y,L,Ca,qa)];case 3:return V.sent(),[2,!0]}})})}function v(ha,sa,Ca,oa,qa){void 0===Ca&&(Ca=null);void 0===oa&&(oa=!1);void 0===qa&&(qa=!1);return c(this,void 0,void 0,function(){var L,Y,ca,V,X,ja;return r(this,function(pa){switch(pa.label){case 0:L=
g.findModuleImports(sa),null===Ca&&0<L.length&&(Ca=w.ArcadeModuleResolver.getDefault()),sa.loadedModules={},Y=0,ca=L,pa.label=1;case 1:if(!(Y<ca.length))return[3,5];V=ca[Y];d.assertIsSome(Ca);X=Ca.normalizeModuleUri(V.source);if(ha.has(X.uri))throw new n.ArcadeExecutionError(null,n.ExecutionErrorCodes.CircularModules,null);ha.add(X.uri);return[4,Ca.fetchModule(X)];case 2:return ja=pa.sent(),[4,E(ha,ja,oa,[],qa,Ca)];case 3:pa.sent(),ha.delete(X.uri),ja.isAsync&&(sa.isAsync=!0),ja.usesFeatureSet&&(sa.usesFeatureSet=
!0),ja.usesGeometry&&(sa.usesGeometry=!0),sa.loadedModules[V.libname]={uri:X.uri,script:ja},pa.label=4;case 4:return Y++,[3,1];case 5:return[2]}})})}Object.defineProperty(x,"__esModule",{value:!0});x.featureSetUtils=x.scriptTouchesGeometry=x.loadDependentModules=x.scriptUsesModules=x._loadScriptDependenciesImpl=x.loadScriptDependencies=x.scriptIsAsync=x.scriptUsesFeatureSet=x.enableFeatureSetSupportImpl=x.enableFeatureSetSupport=x.isGeometryEnabled=x.isAsyncEnabled=x.isFeatureSetSupportEnabled=x.enableAsyncSupportImpl=
x.enableAsyncSupport=x.enableGeometrySupportImpl=x.enableGeometrySupport=x.scriptUsesGeometryEngine=x.extractExpectedFieldLiterals=x.extractFieldLiterals=x.referencesFunction=x.referencesMember=x.executeScript=x.parseAndExecuteScript=x.parseScript=x.extend=x.compileScript=void 0;var A="feature angle bearing centroid envelopeintersects extent geometry isselfintersecting ringisclockwise".split(" "),F=function(){if(a("csp-restrictions"))return!1;try{return(new Function("function* test() {}; return true"))()}catch(ha){return!1}}(),
I=!1,N=!1,da=null,ba=[];x.compileScript=function(ha,sa){if(!0===sa.useAsync||!0===ha.isAsync)return k(ha,sa);if(a("esri-csp-restrictions"))return function(Ca){return q.executeScript(ha,Ca)};try{return h.compileScript(ha,sa)}catch(Ca){if("esri.arcade.arcadeuncompilableerror"===Ca.declaredRootClass)return function(oa){return q.executeScript(ha,oa)};throw Ca;}};x.extend=function(ha){q.extend(ha);h.extend(ha,"sync");null===da?ba.push(ha):(h.extend(ha,"async"),da.extend(ha))};x.parseScript=l;x.parseAndExecuteScript=
function(ha,sa,Ca){void 0===Ca&&(Ca=[]);ha=f.parseScript(ha,Ca);return m(ha,sa)};x.executeScript=m;x.referencesMember=e;x.referencesFunction=function(ha,sa){return g.referencesFunction(ha,sa)};x.extractFieldLiterals=function(ha,sa){void 0===sa&&(sa=!1);void 0===sa&&(sa=!1);return g.findFieldLiterals(ha)};x.extractExpectedFieldLiterals=function(ha){return g.findExpectedFieldLiterals(ha)};x.scriptUsesGeometryEngine=b;var na=null;x.enableGeometrySupport=p;x.enableGeometrySupportImpl=t;var xa=null;x.enableAsyncSupport=
z;x.enableAsyncSupportImpl=C;x.isFeatureSetSupportEnabled=function(){return I};x.isAsyncEnabled=y;x.isGeometryEnabled=function(){return N};var W=null;x.enableFeatureSetSupport=D;x.enableFeatureSetSupportImpl=B;x.scriptUsesFeatureSet=u;x.scriptIsAsync=function(ha,sa){void 0===sa&&(sa=[]);void 0===ha.isAsync&&g.findScriptDependencies(ha,sa);return!0===ha.isAsync};x.loadScriptDependencies=function(ha,sa,Ca,oa,qa){void 0===Ca&&(Ca=[]);void 0===oa&&(oa=!1);void 0===qa&&(qa=null);return c(this,void 0,void 0,
function(){return r(this,function(L){return[2,E(new Set,ha,sa,Ca,oa,qa)]})})};x._loadScriptDependenciesImpl=E;x.scriptUsesModules=function(ha,sa){void 0===sa&&(sa=[]);void 0===ha.usesModules&&g.findScriptDependencies(ha,sa);return!0===ha.usesModules};x.loadDependentModules=v;x.scriptTouchesGeometry=function(ha){if(b(ha))return!0;ha=g.findFunctionCalls(ha);for(var sa=!1,Ca=0;Ca<ha.length;Ca++)if(A.includes(ha[Ca])){sa=!0;break}return sa};var la=null;x.featureSetUtils=function(){return la}})},"esri/arcade/arcadeCompiler":function(){define("require exports ./polyfill/tsSupport/awaiter ./polyfill/tsSupport/generator ./polyfill/tsSupport/assign ./polyfill/tsSupport/spreadarray ./polyfill/tsSupport/extends ./Dictionary ./Feature ./languageUtils ./treeAnalysis ./functions/array ./functions/date ./functions/geometry ./functions/geomsync ./functions/maths ./functions/stats ./functions/string ./polyfill/promiseUtils ../geometry/Geometry ../SpatialReference ./ArcadeModuleLoader ./ArcadeModule ./FunctionWrapper ./executionError".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C,y,D,B,u){function E(M,S,ma){try{return ma(M,null,S.arguments)}catch(ua){throw ua;}}function v(M,S){try{switch(S.type){case "EmptyStatement":return"lc.voidOperation";case "VariableDeclarator":return na(M,S);case "VariableDeclaration":for(var ma=[],ua=0;ua<S.declarations.length;ua++)ma.push(v(M,S.declarations[ua]));return ma.join("\n")+" \n lastStatement\x3d  lc.voidOperation; \n";case "BlockStatement":case "Program":return da(M,S);case "FunctionDeclaration":var wa=
S.id.name.toLowerCase();ba(wa);var Q="",ka=!1;void 0!==M.globalScope[wa]?Q=wa:void 0!==M.globalScope._SymbolsMap[wa]?Q=M.globalScope._SymbolsMap[wa]:M.undeclaredGlobalsInFunctions.has(wa)?(Q=M.undeclaredGlobalsInFunctions.get(wa).manglename,M.globalScope._SymbolsMap[wa]=Q,M.mangleMap[wa]=Q,M.undeclaredGlobalsInFunctions.delete(wa),ka=!0):(Q=la(M),M.globalScope._SymbolsMap[wa]=Q,M.mangleMap[wa]=Q);ma={isAsync:M.isAsync,console:M.console,exports:M.exports,undeclaredGlobalsInFunctions:M.undeclaredGlobalsInFunctions,
customfunctions:M.customfunctions,moduleFactory:M.moduleFactory,moduleFactoryMap:M.moduleFactoryMap,libraryResolver:M.libraryResolver,lrucache:M.lrucache,interceptor:M.interceptor,services:M.services,symbols:M.symbols,mangleMap:M.mangleMap,localScope:{_SymbolsMap:{}},depthCounter:M.depthCounter,globalScope:M.globalScope};var za="new lang.UserDefinedCompiledFunction( lang.functionDepthchecker(function() { var lastStatement \x3d lc.voidOperation; \n   var lscope \x3d runtimeCtx.localStack[runtimeCtx.localStack.length-1];\n";
for(wa=0;wa<S.params.length;wa++){ua=S.params[wa].name.toLowerCase();ba(ua);var Ea=la(M);ma.localScope._SymbolsMap[ua]=Ea;ma.mangleMap[ua]=Ea;za+="lscope['"+Ea+"']\x3darguments["+wa.toString()+"];\n"}!0===M.isAsync?(za=za+"return lang.__awaiter(this, void 0, void 0, function* () {\n"+(da(ma,S.body)+"\n return lastStatement; "),za=za+"});  }, runtimeCtx),"+(S.params.length+")")):za+=da(ma,S.body)+"\n return lastStatement; }, runtimeCtx),"+S.params.length+")";za+="\n lastStatement \x3d lc.voidOperation; \n";
return ka?"gscope[lang.setAssig('"+Q+"', runtimeCtx)]\x3d"+za:"gscope['"+Q+"']\x3d"+za;case "ImportDeclaration":var Ka,Qa,Pa=S.specifiers[0].local.name.toLowerCase();ba(Pa);var J=null===(Ka=M.libraryResolver)||void 0===Ka?void 0:Ka.loadLibrary(Pa),U=la(M);void 0===M.moduleFactory[J.uri]&&(M.moduleFactory[J.uri]=Y(J.syntax,{interceptor:M.interceptor,services:M.services,moduleFactory:M.moduleFactory,lrucache:M.lrucache,timeReference:null!==(Qa=M.timeReference)&&void 0!==Qa?Qa:null,libraryResolver:M.libraryResolver,
customfunctions:M.customfunctions,vars:{}},M.isAsync));M.moduleFactoryMap[U]=J.uri;S="";S=M.isAsync?"(yield lang.loadModule('"+U+"', runtimeCtx) ); ":"lang.loadModule('"+U+"', runtimeCtx); ";if(void 0!==M.globalScope[Pa])var ia="gscope['"+Pa+"']\x3d"+S;else void 0!==M.globalScope._SymbolsMap[Pa]?ia="gscope['"+M.globalScope._SymbolsMap[Pa]+"']\x3d"+S:(ma="",M.undeclaredGlobalsInFunctions.has(Pa)?(ma=M.undeclaredGlobalsInFunctions.get(Pa).manglename,M.undeclaredGlobalsInFunctions.delete(Pa)):ma=la(M),
M.globalScope._SymbolsMap[Pa]=ma,M.mangleMap[Pa]=ma,ia="gscope[lang.setAssig('"+ma+"', runtimeCtx)]\x3d"+S);return ia;case "ExportNamedDeclaration":var K=v(M,S.declaration);if("FunctionDeclaration"===S.declaration.type)M.exports[S.declaration.id.name.toLowerCase()]="function";else if("VariableDeclaration"===S.declaration.type){ma=0;for(var T=S.declaration.declarations;ma<T.length;ma++)M.exports[T[ma].id.name.toLowerCase()]="variable"}return K;case "ReturnStatement":var fa=null===S.argument?"return lc.voidOperation":
"return "+v(M,S.argument);return fa;case "IfStatement":return N(M,S);case "ExpressionStatement":var ra="AssignmentExpression"===S.expression.type?"lastStatement \x3d lc.voidOperation; "+v(M,S.expression)+"; \n ":"lastStatement \x3d "+v(M,S.expression)+"; ";return ra;case "AssignmentExpression":return F(M,S);case "UpdateExpression":return A(M,S);case "BreakStatement":return"break";case "ContinueStatement":return"continue";case "TemplateLiteral":try{ma=[];Ea=ua=0;for(ka=S.quasis;Ea<ka.length;Ea++)za=
ka[Ea],ma.push(za.value?JSON.stringify(za.value.cooked):JSON.stringify("")),!1===za.tail&&(ma.push(S.expressions[ua]?"lang.castString(lang.aCheck("+v(M,S.expressions[ua])+", 'TemplateLiteral'))":""),ua++);Q="(["+ma.join(",")+"]).join('')"}catch(qb){throw qb;}return Q;case "TemplateElement":return JSON.stringify(S.value?S.value.cooked:"");case "ForStatement":ma="lastStatement \x3d lc.voidOperation; \n";null!==S.init&&(ma+=v(M,S.init)+"; ");var Ba=ha(M),Ma=ha(M);ma+="var "+Ba+" \x3d true; \n do { ";
null!==S.update&&(ma+=" if ("+Ba+"\x3d\x3d\x3dfalse) {\n "+v(M,S.update)+"  \n}\n "+Ba+"\x3dfalse; \n");null!==S.test&&(ma+="var "+Ma+" \x3d "+v(M,S.test)+"; ",ma+="if ("+Ma+"\x3d\x3d\x3dfalse) { break; } else if ("+Ma+"!\x3d\x3dtrue) { lang.error('"+u.ExecutionErrorCodes.BooleanConditionRequired+"');   }\n");ma+=v(M,S.body);null!==S.update&&(ma+="\n "+v(M,S.update));return ma+("\n"+Ba+" \x3d true; \n} while(true);  lastStatement \x3d lc.voidOperation; ");case "ForInStatement":var Ha=ha(M),Ua=ha(M),
Ta=ha(M),Oa="var "+Ha+" \x3d "+v(M,S.right)+";\n";"VariableDeclaration"===S.left.type&&(Oa+=v(M,S.left));var Xa="VariableDeclaration"===S.left.type?S.left.declarations[0].id.name:S.left.name;Xa=Xa.toLowerCase();ba(Xa);ma="";null!==M.localScope&&(void 0!==M.localScope[Xa]?ma="lscope['"+Xa+"']":void 0!==M.localScope._SymbolsMap[Xa]&&(ma="lscope['"+M.localScope._SymbolsMap[Xa]+"']"));ua="";if(""===ma)if(void 0!==M.globalScope[Xa])ma="gscope['"+Xa+"']";else if(void 0!==M.globalScope._SymbolsMap[Xa])ma=
"gscope['"+M.globalScope._SymbolsMap[Xa]+"']";else if(null!==M.localScope)if(M.undeclaredGlobalsInFunctions.has(Xa))ma="gscope['"+M.undeclaredGlobalsInFunctions.get(Xa).manglename+"']",ua=M.undeclaredGlobalsInFunctions.get(Xa).manglename;else{var $a={manglename:la(M),node:S.left};M.undeclaredGlobalsInFunctions.set(Xa,$a);ma="gscope['"+$a.manglename+"']";ua=$a.manglename}ua&&(Oa+="lang.chkAssig('"+ua+"',runtimeCtx); \n");Oa=Oa+("if ("+Ha+"\x3d\x3d\x3dnull) {  lastStatement \x3d lc.voidOperation; }\n else if (lc.isArray(")+
(Ha+") || lc.isString("+Ha+")) {var ")+(Ua+"\x3d"+Ha+".length; \nfor(var ")+(Ta+"\x3d0; "+Ta+"\x3c"+Ua+"; "+Ta+"++) {\n");Oa+=ma+"\x3d"+Ta+";\n";Oa+=v(M,S.body);Oa+="\n}\n";Oa+=" lastStatement \x3d lc.voidOperation; \n";Oa+=" \n}\n";Oa+="else if (lc.isImmutableArray("+Ha+")) {";Oa=Oa+("var "+Ua+"\x3d"+Ha+".length(); \nfor(var ")+(Ta+"\x3d0; "+Ta+"\x3c"+Ua+"; "+Ta+"++) {\n");Oa+=ma+"\x3d"+Ta+";\n";Oa+=v(M,S.body);Oa+="\n}\n";Oa+=" lastStatement \x3d lc.voidOperation; \n";Oa+=" \n}\n";Oa+="else if (( "+
Ha+" instanceof lang.Dictionary) || ( "+Ha+" instanceof lang.Feature)) {";Oa=Oa+("var "+Ua+"\x3d"+Ha+".keys(); \nfor(var ")+(Ta+"\x3d0; "+Ta+"\x3c"+Ua+".length; "+Ta+"++) {\n");Oa+=ma+"\x3d"+Ua+"["+Ta+"];\n";Oa+=v(M,S.body);Oa+="\n}\n";Oa+=" lastStatement \x3d lc.voidOperation; \n";Oa+=" \n}\n";M.isAsync&&(Oa+="else if (lc.isFeatureSet("+Ha+")) {",Oa=Oa+("var "+Ua+"\x3d"+Ha+".iterator(runtimeCtx.abortSignal); \nfor(var ")+(Ta+"\x3dlang. graphicToFeature( yield "+Ua+".next(),"+Ha+", runtimeCtx); "+
Ta+"!\x3dnull; "+Ta+"\x3dlang. graphicToFeature( yield "+Ua+".next(),"+Ha+", runtimeCtx)) {\n")+(ma+"\x3d"+Ta+";\n"),Oa+=v(M,S.body),Oa+="\n}\n",Oa+=" lastStatement \x3d lc.voidOperation; \n",Oa+=" \n}\n");return Oa+"else { lastStatement \x3d lc.voidOperation; } \n";case "WhileStatement":ma="lastStatement \x3d lc.voidOperation; \n";var bb=ha(M);return ma+="\n  var "+bb+" \x3d true;\n    do {\n      "+bb+" \x3d "+v(M,S.test)+";\n      if ("+bb+"\x3d\x3dfalse) {\n        break;\n      }\n      if ("+
bb+"!\x3d\x3dtrue) {\n        lang.error('"+u.ExecutionErrorCodes.BooleanConditionRequired+"');\n      }\n      "+v(M,S.body)+"\n    }\n    while ("+bb+" !\x3d\x3d false);\n    lastStatement \x3d lc.voidOperation;\n  ";case "Identifier":return xa(M,S);case "MemberExpression":try{ma=void 0;!0===S.computed?ma=v(M,S.property):(ma="'"+S.property.name+"'",ba(S.property.name));var hb="lang.member("+v(M,S.object)+","+ma+")"}catch(qb){throw qb;}return hb;case "Literal":return null===S.value||void 0===S.value?
"null":JSON.stringify(S.value);case "CallExpression":return W(M,S);case "UnaryExpression":try{var gb="lang.unary("+v(M,S.argument)+",'"+S.operator+"')"}catch(qb){throw qb;}return gb;case "BinaryExpression":try{var mb="lang.binary("+v(M,S.left)+","+v(M,S.right)+",'"+S.operator+"')"}catch(qb){throw qb;}return mb;case "LogicalExpression":try{if("AssignmentExpression"===S.left.type||"UpdateExpression"===S.left.type)throw new u.ArcadeCompilationError(M,u.ExecutionErrorCodes.LogicalExpressionOnlyBoolean,
S);if("AssignmentExpression"===S.right.type||"UpdateExpression"===S.right.type)throw new u.ArcadeCompilationError(M,u.ExecutionErrorCodes.LogicalExpressionOnlyBoolean,S);if("\x26\x26"===S.operator||"||"===S.operator)var rb="(lang.logicalCheck("+v(M,S.left)+") "+S.operator+" lang.logicalCheck("+v(M,S.right)+"))";else throw new u.ArcadeCompilationError(null,u.ExecutionErrorCodes.LogicExpressionOrAnd,null);}catch(qb){throw qb;}return rb;case "ArrayExpression":try{ma=[];for(ua=0;ua<S.elements.length;ua++)"Literal"===
S.elements[ua].type?ma.push(v(M,S.elements[ua])):ma.push("lang.aCheck("+v(M,S.elements[ua])+",'ArrayExpression')");var ob="["+ma.join(",")+"]"}catch(qb){throw qb;}return ob;case "ObjectExpression":ma="lang.dictionary([";for(ua=0;ua<S.properties.length;ua++){var eb=S.properties[ua];ba(eb.key.name);var nb="Identifier"===eb.key.type?"'"+eb.key.name+"'":v(M,eb.key),Ab=v(M,eb.value);0<ua&&(ma+=",");ma+="lang.strCheck("+nb+",'ObjectExpression'),lang.aCheck("+Ab+", 'ObjectExpression')"}return ma+"])";case "Property":throw new u.ArcadeCompilationError(M,
u.ExecutionErrorCodes.NeverReach,S);case "Array":throw new u.ArcadeCompilationError(M,u.ExecutionErrorCodes.NeverReach,S);default:throw new u.ArcadeCompilationError(M,u.ExecutionErrorCodes.Unrecognised,S);}}catch(qb){throw qb;}}function A(M,S){var ma=null,ua="";if("MemberExpression"===S.argument.type)return ma=v(M,S.argument.object),!0===S.argument.computed?ua=v(M,S.argument.property):(ua="'"+S.argument.property.name+"'",ba(S.argument.property.name)),"lang.memberupdate("+ma+","+ua+",'"+S.operator+
"',"+S.prefix+")";ma=S.argument.name.toLowerCase();ba(ma);if(null!==M.localScope){if(void 0!==M.localScope[ma])return"lang.update(lscope, '"+ma+"','"+S.operator+"',"+S.prefix+")";if(void 0!==M.localScope._SymbolsMap[ma])return"lang.update(lscope, '"+M.localScope._SymbolsMap[ma]+"','"+S.operator+"',"+S.prefix+")"}if(void 0!==M.globalScope[ma])return"lang.update(gscope, '"+ma+"','"+S.operator+"',"+S.prefix+")";if(void 0!==M.globalScope._SymbolsMap[ma])return"lang.update(gscope, '"+M.globalScope._SymbolsMap[ma]+
"','"+S.operator+"',"+S.prefix+")";if(null!==M.localScope){if(M.undeclaredGlobalsInFunctions.has(ma))return"lang.update(gscope,lang.chkAssig( '"+M.undeclaredGlobalsInFunctions.get(ma).manglename+"',runtimeCtx),'"+S.operator+"',"+S.prefix+")";ua={manglename:la(M),node:S.argument};M.undeclaredGlobalsInFunctions.set(ma,ua);return"lang.update(gscope, lang.chkAssig('"+ua.manglename+"',runtimeCtx),'"+S.operator+"',"+S.prefix+")"}throw new u.ArcadeExecutionError(M,u.ExecutionErrorCodes.InvalidIdentifier,
S);}function F(M,S){var ma=v(M,S.right),ua=null,wa="";if("MemberExpression"===S.left.type)return ua=v(M,S.left.object),!0===S.left.computed?wa=v(M,S.left.property):(wa="'"+S.left.property.name+"'",ba(S.left.property.name)),"lang.assignmember("+ua+","+wa+",'"+S.operator+"',"+ma+")";ua=S.left.name.toLowerCase();ba(ua);if(null!==M.localScope){if(void 0!==M.localScope[ua])return"lscope['"+ua+"']\x3dlang.assign("+ma+",'"+S.operator+"', lscope['"+ua+"'])";if(void 0!==M.localScope._SymbolsMap[ua])return"lscope['"+
M.localScope._SymbolsMap[ua]+"']\x3dlang.assign("+ma+",'"+S.operator+"', lscope['"+M.localScope._SymbolsMap[ua]+"'])"}if(void 0!==M.globalScope[ua])return"gscope['"+ua+"']\x3dlang.assign("+ma+",'"+S.operator+"', gscope['"+ua+"'])";if(void 0!==M.globalScope._SymbolsMap[ua])return"gscope['"+M.globalScope._SymbolsMap[ua]+"']\x3dlang.assign("+ma+",'"+S.operator+"', gscope['"+M.globalScope._SymbolsMap[ua]+"'])";if(null!==M.localScope){if(M.undeclaredGlobalsInFunctions.has(ua))return"gscope[lang.chkAssig('"+
M.undeclaredGlobalsInFunctions.get(ua).manglename+"',runtimeCtx)]\x3dlang.assign("+ma+",'"+S.operator+"', gscope['"+M.undeclaredGlobalsInFunctions.get(ua).manglename+"'])";wa={manglename:la(M),node:S.argument};M.undeclaredGlobalsInFunctions.set(ua,wa);return"gscope[lang.chkAssig('"+wa.manglename+"',runtimeCtx)]\x3dlang.assign("+ma+",'"+S.operator+"', gscope['"+wa.manglename+"'])"}throw new u.ArcadeExecutionError(M,u.ExecutionErrorCodes.InvalidIdentifier,S);}function I(M,S){return"BlockStatement"===
S.type?v(M,S):"ReturnStatement"===S.type||"BreakStatement"===S.type||"ContinueStatement"===S.type?v(M,S)+"; ":"UpdateExpression"===S.type?"lastStatement \x3d "+v(M,S)+"; ":"ExpressionStatement"===S.type?v(M,S):"ObjectExpression"===S.type?"lastStatement \x3d "+v(M,S)+"; ":v(M,S)+"; "}function N(M,S){if("AssignmentExpression"===S.test.type||"UpdateExpression"===S.test.type)throw new u.ArcadeCompilationError(M,u.ExecutionErrorCodes.BooleanConditionRequired,S);return"if (lang.mustBoolean("+v(M,S.test)+
", runtimeCtx) \x3d\x3d\x3d true) {\n    "+I(M,S.consequent)+"\n  } "+(null!==S.alternate?"IfStatement"===S.alternate.type?" else "+N(M,S.alternate):" else {\n      "+I(M,S.alternate)+"\n    }\n":" else {\n      lastStatement \x3d lc.voidOperation;\n    }\n")}function da(M,S){for(var ma="",ua=0;ua<S.body.length;ua++)"EmptyStatement"!==S.body[ua].type&&(ma="ReturnStatement"===S.body[ua].type?ma+(v(M,S.body[ua])+"; \n"):"BreakStatement"===S.body[ua].type?ma+(v(M,S.body[ua])+"; \n"):"ContinueStatement"===
S.body[ua].type?ma+(v(M,S.body[ua])+"; \n"):"UpdateExpression"===S.body[ua].type?ma+("lastStatement \x3d "+v(M,S.body[ua])+"; \n"):"ObjectExpression"===S.body[ua].type?ma+("lastStatement \x3d "+v(M,S.body[ua])+"; \n"):ma+(v(M,S.body[ua])+" \n"));return ma}function ba(M){if("iif"===M)throw new u.ArcadeUncompilableError;if("decode"===M)throw new u.ArcadeUncompilableError;if("when"===M)throw new u.ArcadeUncompilableError;}function na(M,S){var ma=null===S.init?null:v(M,S.init);ma===g.voidOperation&&(ma=
null);S=S.id.name.toLowerCase();ba(S);if(null!==M.localScope){if(void 0!==M.localScope[S])return"lscope['"+S+"']\x3d"+ma+"; ";if(void 0!==M.localScope._SymbolsMap[S])return"lscope['"+M.localScope._SymbolsMap[S]+"']\x3d"+ma+"; ";var ua=la(M);M.localScope._SymbolsMap[S]=ua;M.mangleMap[S]=ua;return"lscope['"+ua+"']\x3d"+ma+"; "}if(void 0!==M.globalScope[S])return"gscope['"+S+"']\x3d"+ma+"; ";if(void 0!==M.globalScope._SymbolsMap[S])return"gscope['"+M.globalScope._SymbolsMap[S]+"']\x3d"+ma+"; ";if(M.undeclaredGlobalsInFunctions.has(S))return ua=
M.undeclaredGlobalsInFunctions.get(S).manglename,M.globalScope._SymbolsMap[S]=ua,M.mangleMap[S]=ua,M.undeclaredGlobalsInFunctions.delete(S),"gscope[lang.setAssig('"+ua+"', runtimeCtx)]\x3d"+ma+"; ";ua=la(M);M.globalScope._SymbolsMap[S]=ua;M.mangleMap[S]=ua;return"gscope['"+ua+"']\x3d"+ma+"; "}function xa(M,S){try{var ma=S.name.toLowerCase();ba(ma);if(null!==M.localScope){if(void 0!==M.localScope[ma])return"lscope['"+ma+"']";if(void 0!==M.localScope._SymbolsMap[ma])return"lscope['"+M.localScope._SymbolsMap[ma]+
"']"}if(void 0!==M.globalScope[ma])return"gscope['"+ma+"']";if(void 0!==M.globalScope._SymbolsMap[ma])return"gscope['"+M.globalScope._SymbolsMap[ma]+"']";if(null!==M.localScope){if(M.undeclaredGlobalsInFunctions.has(ma))return"gscope[lang.chkAssig('"+M.undeclaredGlobalsInFunctions.get(ma).manglename+"',runtimeCtx)]";var ua={manglename:la(M),node:S.argument};M.undeclaredGlobalsInFunctions.set(ma,ua);return"gscope[lang.chkAssig('"+ua.manglename+"',runtimeCtx)]"}throw new u.ArcadeCompilationError(M,
u.ExecutionErrorCodes.InvalidIdentifier,S);}catch(wa){throw wa;}}function W(M,S){try{if("MemberExpression"===S.callee.type){var ma=void 0;!0===S.callee.computed?ma=v(M,S.callee.property):(ma="'"+S.callee.property.name+"'",ba(S.callee.property.name));for(var ua="[",wa=0;wa<S.arguments.length;wa++)0<wa&&(ua+=", "),ua+=v(M,S.arguments[wa]);ua+="]";return M.isAsync?"(yield lang.callModuleFunction("+v(M,S.callee.object)+","+ua+","+ma+",runtimeCtx))":"lang.callModuleFunction("+v(M,S.callee.object)+","+
ua+","+ma+",runtimeCtx)"}if("Identifier"!==S.callee.type)throw new u.ArcadeCompilationError(M,u.ExecutionErrorCodes.FuncionNotFound,S);var Q=S.callee.name.toLowerCase();if("iif"===Q){try{if(3!==S.arguments.length)throw new u.ArcadeCompilationError(M,u.ExecutionErrorCodes.WrongNumberOfParameters,S);var ka=ha(M);var za=(M.isAsync?"(yield (function() { \n return lang.__awaiter(this, void 0, void 0, function* () {":"function() {")+"\n        var "+ka+" \x3d "+v(M,S.arguments[0])+";\n       \n        if ("+
ka+" \x3d\x3d\x3d true) {\n          return  "+v(M,S.arguments[1])+";\n        }\n        else if ("+ka+" \x3d\x3d\x3d false) {\n          return "+v(M,S.arguments[2])+";\n        }\n        else {\n          lang.error('ExecutionErrorCodes.BooleanConditionRequired');\n        }\n      "+(M.isAsync?"})}()))":"}()")}catch(U){throw U;}return za}if("when"===Q){try{if(3>S.arguments.length)throw new u.ArcadeCompilationError(M,u.ExecutionErrorCodes.WrongNumberOfParameters,S);if(0===S.arguments.length%2)throw new u.ArcadeCompilationError(M,
u.ExecutionErrorCodes.WrongNumberOfParameters,S);var Ea=ha(M);ua="var ";for(wa=0;wa<S.arguments.length-1;wa+=2)ua+=Ea+" \x3d lang.mustBoolean("+v(M,S.arguments[wa])+", runtimeCtx);\n      if ("+Ea+" \x3d\x3d\x3d true ) {\n        return "+v(M,S.arguments[wa+1])+" \n      }\n";ma=(M.isAsync?"(yield (function() { \n return lang.__awaiter(this, void 0, void 0, function* () {":"function() {")+"\n        "+ua+"\n        return "+v(M,S.arguments[S.arguments.length-1])+"\n        "+(M.isAsync?"})}()))":
"}()")}catch(U){throw U;}return ma}if("decode"===Q){try{if(2>S.arguments.length)throw new u.ArcadeCompilationError(M,u.ExecutionErrorCodes.WrongNumberOfParameters,S);if(2===S.arguments.length)var Ka="("+v(M,S.arguments[1])+")";else{if(0===(S.arguments.length-1)%2)throw new u.ArcadeCompilationError(M,u.ExecutionErrorCodes.WrongNumberOfParameters,S);var Qa=ha(M),Pa=ha(M);ua="var ";for(wa=1;wa<S.arguments.length-1;wa+=2)ua+=Pa+" \x3d "+v(M,S.arguments[wa])+";\n      if (lang.binary("+Pa+", "+Qa+', "\x3d\x3d") \x3d\x3d\x3d true ) {\n        return '+
v(M,S.arguments[wa+1])+" \n      }\n";Ka=(M.isAsync?"(yield (function() { \n return lang.__awaiter(this, void 0, void 0, function* () {":"function() {")+"\n        var "+Qa+" \x3d "+v(M,S.arguments[0])+";\n        "+ua+"\n        return "+v(M,S.arguments[S.arguments.length-1])+"\n        "+(M.isAsync?"})}()))":"}()")}}catch(U){throw U;}return Ka}ma="";null!==M.localScope&&(void 0!==M.localScope[Q]?ma="lscope['"+Q+"']":void 0!==M.localScope._SymbolsMap[Q]&&(ma="lscope['"+M.localScope._SymbolsMap[Q]+
"']"));if(""===ma)if(void 0!==M.globalScope[Q])ma="gscope['"+Q+"']";else if(void 0!==M.globalScope._SymbolsMap[Q])ma="gscope['"+M.globalScope._SymbolsMap[Q]+"']";else if(null!==M.localScope)if(M.undeclaredGlobalsInFunctions.has(Q))ma="gscope[lang.chkAssig('"+M.undeclaredGlobalsInFunctions.get(Q).manglename+"',runtimeCtx)]";else{var J={manglename:la(M),node:S.argument};M.undeclaredGlobalsInFunctions.set(Q,J);ma="gscope[lang.chkAssig('"+J.manglename+"',runtimeCtx)]"}if(""!==ma){ua="[";for(wa=0;wa<S.arguments.length;wa++)0<
wa&&(ua+=", "),ua+=v(M,S.arguments[wa]);ua+="]";return M.isAsync?"(yield lang.callfunc("+ma+","+ua+",runtimeCtx) )":"lang.callfunc("+ma+","+ua+",runtimeCtx)"}throw new u.ArcadeCompilationError(M,u.ExecutionErrorCodes.FuncionNotFound,S);}catch(U){throw U;}}function la(M){M.symbols.symbolCounter++;return"_T"+M.symbols.symbolCounter.toString()}function ha(M){M.symbols.symbolCounter++;return"_Tvar"+M.symbols.symbolCounter.toString()}function sa(M,S,ma){var ua={};M||(M={});ma||(ma={});ua._SymbolsMap={};
ua.textformatting=1;ua.infinity=1;ua.pi=1;for(var wa in S)ua[wa]=1;for(wa in ma)ua[wa]=1;for(wa in M)ua[wa]=1;return ua}function Ca(M,S,ma,ua){ma=ma?new pa:new ja;M||(M={});S||(S={});var wa=new n({newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"});wa.immutable=!1;ma._SymbolsMap={textformatting:1,infinity:1,pi:1};ma.textformatting=wa;ma.infinity=Number.POSITIVE_INFINITY;ma.pi=Math.PI;for(var Q in S)ma[Q]=S[Q],ma._SymbolsMap[Q]=1;for(Q in M)ma._SymbolsMap[Q]=
1,ma[Q]=M[Q]&&"esri.Graphic"===M[Q].declaredClass?f.createFromGraphic(M[Q],null!==ua&&void 0!==ua?ua:null):M[Q];return ma}function oa(M,S){for(var ma={mode:S,compiled:!0,functions:{},signatures:[],standardFunction:E,standardFunctionAsync:E,evaluateIdentifier:qa},ua=0;ua<M.length;ua++)M[ua].registerFunctions(ma);if("sync"===S){for(var wa in ma.functions)ca[wa]=new B.NativeFunction(ma.functions[wa]),ja.prototype[wa]=ca[wa];for(ua=0;ua<ma.signatures.length;ua++)a.addFunctionDeclaration(ma.signatures[ua],
"sync")}else{for(wa in ma.functions)V[wa]=new B.NativeFunction(ma.functions[wa]),pa.prototype[wa]=V[wa];for(ua=0;ua<ma.signatures.length;ua++)a.addFunctionDeclaration(ma.signatures[ua],"async")}}function qa(M,S){S=S.name;if("_SymbolsMap"===S)throw new u.ArcadeExecutionError(M,u.ExecutionErrorCodes.InvalidIdentifier,null);if(0<M.localStack.length){if("_t"!==S.substr(0,2).toLowerCase()&&void 0!==M.localStack[M.localStack.length-1][S])return M.localStack[M.localStack.length-1][S];var ma=M.mangleMap[S];
if(void 0!==ma&&void 0!==M.localStack[M.localStack.length-1][ma])return M.localStack[M.localStack.length-1][ma]}if("_t"!==S.substr(0,2).toLowerCase()&&void 0!==M.globalScope[S]||1===M.globalScope._SymbolsMap[S])return M.globalScope[S];S=M.mangleMap[S];if(void 0!==S)return M.globalScope[S]}function L(M){console.log(M)}function Y(M,S,ma){var ua;void 0===ma&&(ma=!1);var wa={isAsync:ma,moduleFactory:S.moduleFactory,moduleFactoryMap:{},libraryResolver:new y.ArcadeModuleLoader(null,M.loadedModules),globalScope:sa(S.vars,
ma?V:ca,S.customfunctions),customfunctions:S.customfunctions,localScope:null,mangleMap:{},undeclaredGlobalsInFunctions:new Map,depthCounter:{depth:1},exports:{},console:L,lrucache:S.lrucache,timeReference:null!==(ua=S.timeReference)&&void 0!==ua?ua:null,interceptor:S.interceptor,services:S.services,symbols:{symbolCounter:0}};M=v(wa,M);""===M&&(M="lc.voidOperation; ");var Q=wa.moduleFactory,ka=wa.moduleFactoryMap,za=wa.exports,Ea={},Ka;for(Ka in za)Ea[Ka]=void 0!==wa.mangleMap[Ka]?wa.mangleMap[Ka]:
Ka;wa={lc:g,lang:ea,mangles:wa.mangleMap,prepareModule:function(Qa){return new va(Qa)},prepare:function(Qa,Pa){var J,U=Qa.spatialReference;if(null===U||void 0===U)U=new C({wkid:102100});var ia=Ca(Qa.vars,Qa.customfunctions,Pa,Qa.timeReference);return{localStack:[],isAsync:Pa,exports:za,exportmangle:Ea,gdefs:{},moduleFactory:Q,moduleFactoryMap:ka,moduleSingletons:Qa.moduleSingletons,mangleMap:this.mangles,spatialReference:U,globalScope:ia,abortSignal:void 0===Qa.abortSignal||null===Qa.abortSignal?
{aborted:!1}:Qa.abortSignal,localScope:null,services:Qa.services,console:Qa.console?Qa.console:L,lrucache:Qa.lrucache,timeReference:null!==(J=Qa.timeReference)&&void 0!==J?J:null,interceptor:Qa.interceptor,symbols:{symbolCounter:0},depthCounter:Qa.depthCounter}}};return(new Function("context","spatialReference",ma?"var runtimeCtx\x3dthis.prepare(context, true);\n var lc \x3d this.lc;  var lang \x3d this.lang; var gscope\x3druntimeCtx.globalScope; \nreturn lang.__awaiter(this, void 0, void 0, function* () {\n\n function mainBody() {\n var lastStatement\x3dlc.voidOperation;\n return lang.__awaiter(this, void 0, void 0, function* () {\n"+
M+"\n return lastStatement; }); } \n yield mainBody(); \n return this.prepareModule(runtimeCtx); }); ":"var runtimeCtx\x3dthis.prepare(context, false);\n var lc \x3d this.lc;  var lang \x3d this.lang; var gscope\x3druntimeCtx.globalScope; \n function mainBody() {\n var lastStatement\x3dlc.voidOperation;\n "+M+"\n return lastStatement; } \n mainBody(); \n return this.prepareModule(runtimeCtx); ")).bind(wa)}Object.defineProperty(x,"__esModule",{value:!0});x.enableAsyncSupport=x.compileScript=x.executeScript=
x.extend=x.functionHelper=x.UserDefinedCompiledFunction=void 0;c=function(M){function S(ma,ua){var wa=M.call(this)||this;wa.paramCount=ua;wa.fn=ma;return wa}q(S,M);S.prototype.createFunction=function(ma){var ua=this;return function(){for(var wa=[],Q=0;Q<arguments.length;Q++)wa[Q]=arguments[Q];if(wa.length!==ua.paramCount)throw new u.ArcadeExecutionError(ma,u.ExecutionErrorCodes.WrongNumberOfParameters,null);return ua.fn.apply(ua,wa)}};S.prototype.call=function(ma,ua){return this.fn.apply(this,ua.arguments)};
S.prototype.marshalledCall=function(ma,ua,wa,Q){var ka=this;return Q(ma,ua,function(za,Ea,Ka){Ka=Ka.map(function(Qa){return!g.isFunctionParameter(Qa)||Qa instanceof B.ScopeMarshalledFunction?Qa:B.wrapModuleScopedResponse(Qa,ma,Q)});za=ka.call(wa,{arguments:Ka});return t.isPromiseLike(za)?za.then(function(Qa){return B.wrapModuleScopedResponse(Qa,wa,Q)}):za})};return S}(B.ArcadeFunction);x.UserDefinedCompiledFunction=c;var ca={};k.registerFunctions(ca,E);p.registerFunctions(ca,E);e.registerFunctions(ca,
E);l.registerFunctions(ca,E);b.registerFunctions(ca,E);ca.iif=function(M,S){try{return E(M,S,function(ma,ua,wa){throw new u.ArcadeExecutionError(M,u.ExecutionErrorCodes.Unrecognised,S);})}catch(ma){throw ma;}};ca.decode=function(M,S){try{return E(M,S,function(ma,ua,wa){throw new u.ArcadeExecutionError(M,u.ExecutionErrorCodes.Unrecognised,S);})}catch(ma){throw ma;}};ca.when=function(M,S){try{return E(M,S,function(ma,ua,wa){throw new u.ArcadeExecutionError(M,u.ExecutionErrorCodes.Unrecognised,S);})}catch(ma){throw ma;
}};var V={},X;for(X in ca)V[X]=new B.NativeFunction(ca[X]);m.registerFunctions(ca,E);for(X in ca)ca[X]=new B.NativeFunction(ca[X]);var ja=function(){};ja.prototype=ca;var pa=function(){};pa.prototype=V;x.functionHelper={fixSpatialReference:g.fixSpatialReference,parseArguments:function(M,S){for(var ma=[],ua=0;ua<S.arguments.length;ua++)ma.push(v(M,S.arguments[ua]));return ma},standardFunction:E};x.extend=oa;oa([d],"sync");oa([d],"async");x.executeScript=function(M,S){return M(S)};var ta=0,ea={error:function(M){throw new u.ArcadeExecutionError(null,
M,null);},__awaiter:function(M,S,ma,ua){return new Promise(function(wa,Q){function ka(Ka){try{Ea(ua.next(Ka))}catch(Qa){Q(Qa)}}function za(Ka){try{Ea(ua["throw"](Ka))}catch(Qa){Q(Qa)}}function Ea(Ka){Ka.done?wa(Ka.value):Ka.value&&Ka.value.then?Ka.value.then(ka,za):(ta++,0===ta%100?setTimeout(function(){ta=0;ka(Ka.value)},0):ka(Ka.value))}Ea((ua=ua.apply(M,S||[])).next())})},functionDepthchecker:function(M,S){return function(){S.depthCounter.depth++;S.localStack.push([]);if(64<S.depthCounter.depth)throw new u.ArcadeExecutionError(null,
u.ExecutionErrorCodes.MaximumCallDepth,null);var ma=M.apply(this,arguments);if(t.isPromiseLike(ma))return ma.then(function(ua){S.depthCounter.depth--;--S.localStack.length;return ua});S.depthCounter.depth--;--S.localStack.length;return ma}},chkAssig:function(M,S){if(void 0===S.gdefs[M])throw new u.ArcadeExecutionError(S,u.ExecutionErrorCodes.InvalidIdentifier,null);return M},mustBoolean:function(M,S){if(!0===M||!1===M)return M;throw new u.ArcadeExecutionError(S,u.ExecutionErrorCodes.BooleanConditionRequired,
null);},setAssig:function(M,S){S.gdefs[M]=1;return M},castString:function(M){return g.toString(M)},aCheck:function(M,S){if(g.isFunctionParameter(M)){if("ArrayExpression"===S)throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.NoFunctionInArray,null);if("ObjectExpression"===S)throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.NoFunctionInDictionary,null);throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.NoFunctionInTemplateLiteral,null);}return M===g.voidOperation?null:M},
Dictionary:n,Feature:f,UserDefinedCompiledFunction:c,dictionary:function(M){for(var S={},ma=new Map,ua=0;ua<M.length;ua+=2){if(g.isFunctionParameter(M[ua+1]))throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.NoFunctionInDictionary,null);if(!1===g.isString(M[ua]))throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.KeyMustBeString,null);var wa=M[ua].toString(),Q=wa.toLowerCase();ma.has(Q)?wa=ma.get(Q):ma.set(Q,wa);S[wa]=M[ua+1]===g.voidOperation?null:M[ua+1]}M=new n(S);M.immutable=
!1;return M},strCheck:function(M){if(!1===g.isString(M))throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.KeyMustBeString,null);return M},unary:function(M,S){if(g.isBoolean(M)){if("!"===S)return!M;if("-"===S)return-1*g.toNumber(M);if("+"===S)return 1*g.toNumber(M);if("~"===S)return~g.toNumber(M);throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.UnsupportedUnaryOperator,null);}if("-"===S)return-1*g.toNumber(M);if("+"===S)return 1*g.toNumber(M);if("~"===S)return~g.toNumber(M);throw new u.ArcadeExecutionError(null,
u.ExecutionErrorCodes.UnsupportedUnaryOperator,null);},logicalCheck:function(M){if(!1===g.isBoolean(M))throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.LogicExpressionOrAnd,null);return M},logical:function(M,S,ma){if(g.isBoolean(M)&&g.isBoolean(S))switch(ma){case "||":return M||S;case "\x26\x26":return M&&S}throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.LogicExpressionOrAnd,null);},binary:function(M,S,ma){switch(ma){case "|":case "\x3c\x3c":case "\x3e\x3e":case "\x3e\x3e\x3e":case "^":case "\x26":return g.binaryOperator(g.toNumber(M),
g.toNumber(S),ma);case "\x3d\x3d":return g.equalityTest(M,S);case "\x3d":return g.equalityTest(M,S);case "!\x3d":return!g.equalityTest(M,S);case "\x3c":return g.greaterThanLessThan(M,S,ma);case "\x3e":return g.greaterThanLessThan(M,S,ma);case "\x3c\x3d":return g.greaterThanLessThan(M,S,ma);case "\x3e\x3d":return g.greaterThanLessThan(M,S,ma);case "+":return g.isString(M)||g.isString(S)?g.toString(M)+g.toString(S):g.toNumber(M)+g.toNumber(S);case "-":return g.toNumber(M)-g.toNumber(S);case "*":return g.toNumber(M)*
g.toNumber(S);case "/":return g.toNumber(M)/g.toNumber(S);case "%":return g.toNumber(M)%g.toNumber(S);default:throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.UnsupportedOperator,null);}},assign:function(M,S,ma){switch(S){case "\x3d":return M===g.voidOperation?null:M;case "/\x3d":return g.toNumber(ma)/g.toNumber(M);case "*\x3d":return g.toNumber(ma)*g.toNumber(M);case "-\x3d":return g.toNumber(ma)-g.toNumber(M);case "+\x3d":return g.isString(ma)||g.isString(M)?g.toString(ma)+g.toString(M):
g.toNumber(ma)+g.toNumber(M);case "%\x3d":return g.toNumber(ma)%g.toNumber(M);default:throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.UnsupportedOperator,null);}},update:function(M,S,ma,ua){var wa=g.toNumber(M[S]);M[S]="++"===ma?wa+1:wa-1;return!1===ua?wa:"++"===ma?wa+1:wa-1},graphicToFeature:function(M,S,ma){return null===M?null:f.createFromGraphicLikeObject(M.geometry,M.attributes,S,ma.timeReference)},memberupdate:function(M,S,ma,ua){if(g.isArray(M))if(g.isNumber(S)){0>S&&(S=M.length+
S);if(0>S||S>=M.length)throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.OutOfBounds,null);var wa=g.toNumber(M[S]);M[S]="++"===ma?wa+1:wa-1}else throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.ArrayAccessorMustBeNumber,null);else if(M instanceof n){if(!1===g.isString(S))throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.KeyAccessorMustBeString,null);if(!0===M.hasField(S))wa=g.toNumber(M.field(S)),M.setField(S,"++"===ma?wa+1:wa-1);else throw new u.ArcadeExecutionError(null,
u.ExecutionErrorCodes.FieldNotFound,null,{key:S});}else if(g.isFeature(M)){if(!1===g.isString(S))throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.KeyAccessorMustBeString,null);if(!0===M.hasField(S))wa=g.toNumber(M.field(S)),M.setField(S,"++"===ma?wa+1:wa-1);else throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.FieldNotFound,null);}else{if(g.isImmutableArray(M))throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.Immutable,null);if(M instanceof va){if(!1===g.isString(S))throw new u.ArcadeExecutionError(null,
u.ExecutionErrorCodes.ModuleAccessorMustBeString,null);if(!0===M.hasGlobal(S))wa=g.toNumber(M.global(S)),M.setGlobal(S,"++"===ma?wa+1:wa-1);else throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.ModuleExportNotFound,null);}else throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.InvalidIdentifier,null);}return!1===ua?wa:"++"===ma?wa+1:wa-1},assignmember:function(M,S,ma,ua){if(g.isArray(M))if(g.isNumber(S)){0>S&&(S=M.length+S);if(0>S||S>M.length)throw new u.ArcadeExecutionError(null,
u.ExecutionErrorCodes.OutOfBounds,null);if(S===M.length&&"\x3d"!==ma)throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.OutOfBounds,null);M[S]=this.assign(ua,ma,M[S])}else throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.ArrayAccessorMustBeNumber,null);else if(M instanceof n){if(!1===g.isString(S))throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.KeyAccessorMustBeString,null);if(!0===M.hasField(S))M.setField(S,this.assign(ua,ma,M.field(S)));else{if("\x3d"!==ma)throw new u.ArcadeExecutionError(null,
u.ExecutionErrorCodes.FieldNotFound,null);M.setField(S,this.assign(ua,ma,null))}}else if(g.isFeature(M)){if(!1===g.isString(S))throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.KeyAccessorMustBeString,null);if(!0===M.hasField(S))M.setField(S,this.assign(ua,ma,M.field(S)));else{if("\x3d"!==ma)throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.FieldNotFound,null);M.setField(S,this.assign(ua,ma,null))}}else{if(g.isImmutableArray(M))throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.Immutable,
null);if(M instanceof va){if(!1===g.isString(S))throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.ModuleAccessorMustBeString,null);if(M.hasGlobal(S))M.setGlobal(S,this.assign(ua,ma,M.global(S)));else throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.ModuleExportNotFound,null);}else throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.InvalidIdentifier,null);}},member:function(M,S){if(null===M)throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.MemberOfNull,null);
if(M instanceof n||g.isFeature(M)){if(g.isString(S))return M.field(S);throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.InvalidMemberAccessKey,null);}if(M instanceof z){if(g.isString(S))return l.geometryMember(M,S,null,null);throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.InvalidMemberAccessKey,null);}if(g.isArray(M)){if(g.isNumber(S)&&isFinite(S)&&Math.floor(S)===S){0>S&&(S=M.length+S);if(S>=M.length||0>S)throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.OutOfBounds,
null);return M[S]}throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.InvalidMemberAccessKey,null);}if(g.isString(M)){if(g.isNumber(S)&&isFinite(S)&&Math.floor(S)===S){0>S&&(S=M.length+S);if(S>=M.length||0>S)throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.OutOfBounds,null);return M[S]}throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.InvalidMemberAccessKey,null);}if(g.isImmutableArray(M)){if(g.isNumber(S)&&isFinite(S)&&Math.floor(S)===S){0>S&&(S=M.length()+S);if(S>=M.length()||
0>S)throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.OutOfBounds,null);return M.get(S)}throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.InvalidMemberAccessKey,null);}if(M instanceof va&&g.isString(S))return M.global(S);throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.InvalidMemberAccessKey,null);},callfunc:function(M,S,ma){return M.call(ma,{arguments:S,preparsed:!0})},loadModule:function(M,S){M=S.moduleFactoryMap[M];if(S.moduleSingletons[M])return S.moduleSingletons[M];
var ma=S.moduleFactory[M]({vars:{},moduleSingletons:S.moduleSingletons,depthCounter:S.depthCounter,console:S.console,abortSignal:S.abortSignal,isAsync:S.isAsync,services:S.services,lrucache:S.lrucache,timeReference:S.timeReference?S.timeReference:null,interceptor:S.interceptor},S.spatialReference);return S.moduleSingletons[M]=ma},callModuleFunction:function(M,S,ma,ua){if(!(M instanceof va))throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.FuncionNotFound,null);M=M.global(ma);if(!1===g.isFunctionParameter(M))throw new u.ArcadeExecutionError(null,
u.ExecutionErrorCodes.CallNonFunction,null);return M.call(ua,{preparsed:!0,arguments:S})}};x.compileScript=function(M,S,ma){var ua;void 0===ma&&(ma=!1);null===S&&(S={vars:{},customfunctions:{}});var wa=null;M.usesModules&&(wa=new y.ArcadeModuleLoader(null,M.loadedModules));wa={isAsync:ma,globalScope:sa(S.vars,ma?V:ca,S.customfunctions),moduleFactory:{},moduleFactoryMap:{},undeclaredGlobalsInFunctions:new Map,customfunctions:S.customfunctions,libraryResolver:wa,localScope:null,mangleMap:{},depthCounter:{depth:1},
exports:{},console:L,lrucache:S.lrucache,timeReference:null!==(ua=S.timeReference)&&void 0!==ua?ua:null,interceptor:S.interceptor,services:S.services,symbols:{symbolCounter:0}};M=v(wa,M);""===M&&(M="lc.voidOperation; ");0<wa.undeclaredGlobalsInFunctions.size&&wa.undeclaredGlobalsInFunctions.forEach(function(Qa){throw new u.ArcadeCompilationError(S,u.ExecutionErrorCodes.InvalidIdentifier,Qa.node);});var Q=wa.moduleFactory,ka=wa.moduleFactoryMap,za=wa.exports,Ea={};for(Ka in za)Ea[Ka]=void 0!==wa.mangleMap[Ka]?
wa.mangleMap[Ka]:Ka;var Ka={lc:g,lang:ea,mangles:wa.mangleMap,postProcess:function(Qa){Qa instanceof g.ReturnResult&&(Qa=Qa.value);Qa instanceof g.ImplicitResult&&(Qa=Qa.value);Qa===g.voidOperation&&(Qa=null);if(Qa===g.breakResult)throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.IllegalResult,null);if(Qa===g.continueResult)throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.IllegalResult,null);if(g.isFunctionParameter(Qa))throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.IllegalResult,
null);return Qa},prepare:function(Qa,Pa){var J,U=Qa.spatialReference;if(null===U||void 0===U)U=new C({wkid:102100});var ia=Ca(Qa.vars,Qa.customfunctions,Pa,Qa.timeReference);return{localStack:[],isAsync:Pa,moduleFactory:Q,moduleFactoryMap:ka,mangleMap:this.mangles,moduleSingletons:{},exports:za,gdefs:{},exportmangle:Ea,spatialReference:U,globalScope:ia,abortSignal:void 0===Qa.abortSignal||null===Qa.abortSignal?{aborted:!1}:Qa.abortSignal,localScope:null,services:Qa.services,console:Qa.console?Qa.console:
L,lrucache:Qa.lrucache,timeReference:null!==(J=Qa.timeReference)&&void 0!==J?J:null,interceptor:Qa.interceptor,symbols:{symbolCounter:0},depthCounter:{depth:1}}}};return(new Function("context","spatialReference",ma?"var runtimeCtx\x3dthis.prepare(context, true);\n var lc \x3d this.lc;  var lang \x3d this.lang; var gscope\x3druntimeCtx.globalScope; \nreturn lang.__awaiter(this, void 0, void 0, function* () {\n\n function mainBody() {\n var lastStatement\x3dlc.voidOperation;\n return lang.__awaiter(this, void 0, void 0, function* () {\n"+
M+"\n return lastStatement; }); } \n return this.postProcess(yield mainBody()); }); ":"var runtimeCtx\x3dthis.prepare(context, false);\n var lc \x3d this.lc;  var lang \x3d this.lang; var gscope\x3druntimeCtx.globalScope; \n function mainBody() {\n var lastStatement\x3dlc.voidOperation;\n "+M+"\n return lastStatement; } \n return this.postProcess(mainBody()); ")).bind(Ka)};x.enableAsyncSupport=function(){return new Promise(function(M,S){G(["./functions/geomasync"],function(ma){oa([ma],"async");M(!0)},
function(ma){S(ma)})})};var va=function(M){function S(ma){var ua=M.call(this,null)||this;ua.moduleContext=ma;return ua}q(S,M);S.prototype.hasGlobal=function(ma){void 0===this.moduleContext.exports[ma]&&(ma=ma.toLowerCase());return void 0!==this.moduleContext.exports[ma]?!0:!1};S.prototype.setGlobal=function(ma,ua){var wa=this.moduleContext.globalScope;ma=ma.toLowerCase();if(g.isFunctionParameter(ua))throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.AssignModuleFunction,null);wa[this.moduleContext.exportmangle[ma]]=
ua};S.prototype.global=function(ma){var ua=this.moduleContext.globalScope;ma=ma.toLowerCase();var wa=ua[this.moduleContext.exportmangle[ma]];if(void 0===wa)throw new u.ArcadeExecutionError(null,u.ExecutionErrorCodes.InvalidIdentifier,null);if(g.isFunctionParameter(wa)&&!(wa instanceof B.ScopeMarshalledFunction)){var Q=new B.ScopeMarshalledFunction;Q.fn=wa;Q.parameterEvaluator=E;Q.context=this.moduleContext;return ua[this.moduleContext.exportmangle[ma]]=Q}return wa};return S}(D.ArcadeModule)})},"esri/arcade/Feature":function(){define("require exports ./polyfill/tsSupport/awaiter ./polyfill/tsSupport/generator ./polyfill/tsSupport/assign ./polyfill/tsSupport/spreadarray ./Dictionary ./ImmutableArray ./languageUtils ../geometry/Geometry ../geometry/Point ../geometry/jsonUtils ./polyfill/maybe ./ArcadeDate ./executionError".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m){return function(){function e(){this.arcadeDeclaredClass="esri.arcade.Feature";this._layer=this.attributes=this._geometry=null;this._datesfixed=!0;this.contextTimeReference=this.dateTimeReferenceFieldIndex=null;this.immutable=!0;this._datefields=null;this.immutable=!0}e.createFromGraphic=function(b,p){var t=new e;t.contextTimeReference=null!==p&&void 0!==p?p:null;t._geometry=k.isSome(b.geometry)?b.geometry:null;t.attributes=void 0===b.attributes?{}:null===b.attributes?
{}:b.attributes;b._sourceLayer?(t._layer=b._sourceLayer,t._datesfixed=!1):b._layer?(t._layer=b._layer,t._datesfixed=!1):b.layer&&"fields"in b.layer?(t._layer=b.layer,t._datesfixed=!1):b.sourceLayer&&"fields"in b.sourceLayer&&(t._layer=b.sourceLayer,t._datesfixed=!1);return t};e.createFromArcadeFeature=function(b){var p=new e;p._datesfixed=b._datesfixed;p.attributes=b.attributes;p._geometry=b._geometry;b._layer&&(p._layer=b._layer);p.dateTimeReferenceFieldIndex=b.dateTimeReferenceFieldIndex;p.contextTimeReference=
b.contextTimeReference;return p};e.createFromArcadeDictionary=function(b){var p=new e;p.attributes=b.field("attributes");null!==p.attributes?p.attributes instanceof q?(p.attributes=p.attributes.attributes,null===p.attributes&&(p.attributes={})):p.attributes={}:p.attributes={};p._geometry=b.field("geometry");null!==p._geometry&&(p._geometry instanceof q?p._geometry=e.parseGeometryFromDictionary(p._geometry):p._geometry instanceof g||(p._geometry=null));return p};e.createFromGraphicLikeObject=function(b,
p,t,z){void 0===t&&(t=null);var C=new e;C.contextTimeReference=null!==z&&void 0!==z?z:null;null===p&&(p={});C.attributes=p;C._geometry=b?b:null;C._layer=t;C._layer&&(C._datesfixed=!1);return C};e.prototype.repurposeFromGraphicLikeObject=function(b,p,t){void 0===t&&(t=null);null===p&&(p={});this.attributes=p;this._geometry=b?b:null;this._datesfixed=(this._layer=t)?!1:!0};Object.defineProperty(e.prototype,"layerPreferredTimeZone",{get:function(){var b,p;return null!==(p=null===(b=this.dateTimeReferenceFieldIndex)||
void 0===b?void 0:b.layerPreferredTimeZone)&&void 0!==p?p:""},enumerable:!1,configurable:!0});e.prototype.fieldSourceTimeZone=function(b){var p,t;return null!==(t=null===(p=this.dateTimeReferenceFieldIndex)||void 0===p?void 0:p.fieldTimeZone(b))&&void 0!==t?t:""};e.prototype.castToText=function(b){void 0===b&&(b=!1);var p="";!1===this._datesfixed&&this._fixDates();for(var t in this.attributes){""!==p&&(p+=",");var z=this.attributes[t];null==z?p+=JSON.stringify(t)+":null":f.isBoolean(z)||f.isNumber(z)||
f.isString(z)?p+=JSON.stringify(t)+":"+JSON.stringify(z):z instanceof g?p+=JSON.stringify(t)+":"+f.toStringExplicit(z):z instanceof n?p+=JSON.stringify(t)+":"+f.toStringExplicit(z,null,b):z instanceof Array?p+=JSON.stringify(t)+":"+f.toStringExplicit(z,null,b):z instanceof l.ArcadeDate?p=b?p+(JSON.stringify(t)+":"+JSON.stringify(z.getTime())):p+(JSON.stringify(t)+":"+z.stringify()):null!==z&&"object"===typeof z&&void 0!==z.castToText&&(p+=JSON.stringify(t)+":"+z.castToText(b))}return'{"geometry":'+
(null===this.geometry()?"null":f.toStringExplicit(this.geometry()))+',"attributes":{'+p+"}}"};e.prototype._fixDates=function(){if(null!==this._datefields)0<this._datefields.length&&this._fixDateFields(this._datefields);else{for(var b=[],p=this._layer.fields,t=0;t<p.length;t++){var z=p[t],C=z.type;"date"!==C&&"esriFieldTypeDate"!==C||b.push(z.name)}this._datefields=b;0<b.length&&this._fixDateFields(b)}this._datesfixed=!0};e.prototype.isUnknownDateTimeField=function(b){var p;return"unknown"===(null===
(p=this.dateTimeReferenceFieldIndex)||void 0===p?void 0:p.fieldTimeZone(b))};e.prototype._fixDateFields=function(b){var p,t;this.attributes=h({},this.attributes);var z=null!==(t=null===(p=this.contextTimeReference)||void 0===p?void 0:p.timeZone)&&void 0!==t?t:"system";for(p=0;p<b.length;p++)if(t=this.attributes[b[p]],null!==t)if(void 0===t)for(var C in this.attributes){if(C.toLowerCase()===b[p].toLowerCase()){t=this.attributes[C];if(null!==t){var y=this.isUnknownDateTimeField(C);f.isDate(t)?this.attributes[C]=
t:this.attributes[C]=t instanceof Date?y?l.ArcadeDate.unknownDateJSToArcadeDate(t):l.ArcadeDate.dateJSAndZoneToArcadeDate(t,z):y?l.ArcadeDate.unknownEpochToArcadeDate(t):l.ArcadeDate.epochToArcadeDate(t,z)}break}}else y=this.isUnknownDateTimeField(b[p]),f.isDate(t)?this.attributes[b[p]]=t:this.attributes[b[p]]=t instanceof Date?y?l.ArcadeDate.unknownDateJSToArcadeDate(t):l.ArcadeDate.dateJSAndZoneToArcadeDate(t,z):y?l.ArcadeDate.unknownEpochToArcadeDate(t):l.ArcadeDate.epochToArcadeDate(t,z)};e.prototype.geometry=
function(){if(null===this._geometry)return this._geometry;this._geometry instanceof g||(this._geometry=d.fromJson(this._geometry));return this._geometry};e.prototype.field=function(b){!1===this._datesfixed&&this._fixDates();var p=this.attributes[b];if(void 0!==p)return p;p=b.toLowerCase();for(var t in this.attributes)if(t.toLowerCase()===p)return this.attributes[t];if(this._hasFieldDefinition(p))return null;throw new m.ArcadeExecutionError(null,m.ExecutionErrorCodes.FieldNotFound,null,{key:b});};
e.prototype._hasFieldDefinition=function(b){if(null===this._layer)return!1;for(var p=0;p<this._layer.fields.length;p++)if(this._layer.fields[p].name.toLowerCase()===b)return!0;return!1};e.prototype.setField=function(b,p){if(this.immutable)throw new m.ArcadeExecutionError(null,m.ExecutionErrorCodes.Immutable,null);p instanceof Date&&(p=this.isUnknownDateTimeField(b)?l.ArcadeDate.unknownDateJSToArcadeDate(p):l.ArcadeDate.dateJSToArcadeDate(p));if(!1===f.isSimpleType(p))throw new m.ArcadeExecutionError(null,
m.ExecutionErrorCodes.TypeNotAllowedInFeature,null);var t=b.toLowerCase();if(void 0===this.attributes[b])for(var z in this.attributes)if(z.toLowerCase()===t){this.attributes[z]=p;return}this.attributes[b]=p};e.prototype.hasField=function(b){var p=b.toLowerCase();if(void 0!==this.attributes[b])return!0;for(var t in this.attributes)if(t.toLowerCase()===p)return!0;return this._hasFieldDefinition(p)?!0:!1};e.prototype.keys=function(){var b=[],p={},t;for(t in this.attributes)b.push(t),p[t.toLowerCase()]=
1;if(null!==this._layer)for(t=0;t<this._layer.fields.length;t++){var z=this._layer.fields[t];1!==p[z.name.toLowerCase()]&&b.push(z.name)}return b=b.sort()};e.parseGeometryFromDictionary=function(b){b=e._convertDictionaryToJson(b,!0);void 0!==b.hasm&&(b.hasM=b.hasm,delete b.hasm);void 0!==b.hasz&&(b.hasZ=b.hasz,delete b.hasz);void 0!==b.spatialreference&&(b.spatialReference=b.spatialreference,delete b.spatialreference);void 0!==b.rings&&(b.rings=this._fixPathArrays(b.rings,!0===b.hasZ,!0===b.hasZ));
void 0!==b.paths&&(b.paths=this._fixPathArrays(b.paths,!0===b.hasZ,!0===b.hasM));void 0!==b.points&&(b.points=this._fixPointArrays(b.points,!0===b.hasZ,!0===b.hasM));return d.fromJson(b)};e._fixPathArrays=function(b,p,t){var z=[];if(b instanceof Array)for(var C=0;C<b.length;C++)z.push(this._fixPointArrays(b[C],p,t));else if(b instanceof n)for(C=0;C<b.length();C++)z.push(this._fixPointArrays(b.get(C),p,t));return z};e._fixPointArrays=function(b,p,t){var z=[];if(b instanceof Array)for(var C=0;C<b.length;C++){var y=
b[C];y instanceof a?p&&t?z.push([y.x,y.y,y.z,y.m]):p?z.push([y.x,y.y,y.z]):t?z.push([y.x,y.y,y.m]):z.push([y.x,y.y]):y instanceof n?z.push(y.toArray()):z.push(y)}else if(b instanceof n)for(C=0;C<b.length();C++)y=b.get(C),y instanceof a?p&&t?z.push([y.x,y.y,y.z,y.m]):p?z.push([y.x,y.y,y.z]):t?z.push([y.x,y.y,y.m]):z.push([y.x,y.y]):y instanceof n?z.push(y.toArray()):z.push(y);return z};e._convertDictionaryToJson=function(b,p){void 0===p&&(p=!1);var t={},z;for(z in b.attributes){var C=b.attributes[z];
C instanceof q&&(C=e._convertDictionaryToJson(C));p?t[z.toLowerCase()]=C:t[z]=C}return t};e.parseAttributesFromDictionary=function(b){var p={},t;for(t in b.attributes){var z=b.attributes[t];if(f.isSimpleType(z))p[t]=z;else throw new m.ArcadeExecutionError(null,m.ExecutionErrorCodes.InvalidParameter,null);}return p};e.fromJson=function(b,p){var t=null;null!==b.geometry&&void 0!==b.geometry&&(t=d.fromJson(b.geometry));var z={};if(null!==b.attributes&&void 0!==b.attributes)for(var C in b.attributes){var y=
b.attributes[C];if(null===y)z[C]=y;else if(f.isString(y)||f.isNumber(y)||f.isBoolean(y)||f.isDate(y))z[C]=y;else throw new m.ArcadeExecutionError(null,m.ExecutionErrorCodes.InvalidParameter,null);}return e.createFromGraphicLikeObject(t,z,null,null!==p&&void 0!==p?p:null)};e.prototype.fullSchema=function(){return this._layer};e.prototype.gdbVersion=function(){if(null===this._layer)return"";var b=this._layer.gdbVersion;return void 0===b?"":""===b&&this._layer.capabilities&&this._layer.capabilities.isVersioned?
"SDE.DEFAULT":b};e.prototype.castAsJson=function(b){var p,t,z={attributes:{},geometry:!0===(null===b||void 0===b?void 0:b.keepGeometryType)?this.geometry():null!==(t=null===(p=this.geometry())||void 0===p?void 0:p.toJson())&&void 0!==t?t:null},C;for(C in this.attributes)p=this.attributes[C],void 0!==p&&(z.attributes[C]=f.castAsJson(p,b));return z};e.prototype.castAsJsonAsync=function(b,p){void 0===b&&(b=null);return c(this,void 0,void 0,function(){return r(this,function(t){return[2,this.castAsJson(p)]})})};
return e}()})},"esri/arcade/polyfill/maybe":function(){define(["require","exports"],function(G,x){function c(r,h){if(null==r)throw Error(null!==h&&void 0!==h?h:"value is None");}Object.defineProperty(x,"__esModule",{value:!0});x.unwrapOrThrow=x.assertIsSome=x.isNone=x.isSome=x.none=void 0;x.none=null;x.isSome=function(r){return null!=r};x.isNone=function(r){return null==r};x.assertIsSome=c;x.unwrapOrThrow=function(r,h){c(r,h);return r}})},"esri/arcade/treeAnalysis":function(){define(["require","exports",
"./polyfill/tsSupport/awaiter","./polyfill/tsSupport/generator"],function(G,x,c,r){function h(m){return"string"===typeof m||m instanceof String}function w(m,e){if(m)for(var b=0;b<m.length;b++)q(m[b],e)}function q(m,e){if(m&&!1!==e(m))switch(m.type){case "ImportDeclaration":w(m.specifiers,e);q(m.source,e);break;case "ExportNamedDeclaration":q(m.declaration,e);break;case "ArrayExpression":w(m.elements,e);break;case "AssignmentExpression":case "BinaryExpression":q(m.left,e);q(m.right,e);break;case "BlockStatement":w(m.body,
e);break;case "Program":w(m.body,e);break;case "CallExpression":q(m.callee,e);w(m.arguments,e);break;case "ExpressionStatement":q(m.expression,e);break;case "ForInStatement":q(m.left,e);q(m.right,e);q(m.body,e);break;case "ForStatement":q(m.init,e);q(m.test,e);q(m.update,e);q(m.body,e);break;case "WhileStatement":q(m.test,e);q(m.body,e);break;case "FunctionDeclaration":q(m.id,e);w(m.params,e);q(m.body,e);break;case "IfStatement":q(m.test,e);q(m.consequent,e);q(m.alternate,e);break;case "LogicalExpression":q(m.left,
e);q(m.right,e);break;case "MemberExpression":q(m.object,e);q(m.property,e);break;case "ObjectExpression":w(m.properties,e);break;case "Property":q(m.key,e);q(m.value,e);break;case "ReturnStatement":q(m.argument,e);break;case "UnaryExpression":q(m.argument,e);break;case "UpdateExpression":q(m.argument,e);break;case "VariableDeclaration":w(m.declarations,e);break;case "VariableDeclarator":q(m.id,e);q(m.init,e);break;case "TemplateLiteral":w(m.expressions,e),w(m.quasis,e)}}function n(m,e){var b=!1,
p=e.toLowerCase();q(m,function(t){if(b)return!1;"Identifier"===t.type&&t.name&&t.name.toLowerCase()===p&&(b=!0);return!0});return b}function f(m){var e=[];q(m,function(b){"ImportDeclaration"===b.type&&b.source&&b.source.value&&e.push({libname:b.specifiers[0].local.name.toLowerCase(),source:b.source.value});return!0});return e}function g(m){var e=[];q(m,function(b){"CallExpression"===b.type&&"Identifier"===b.callee.type&&e.push(b.callee.name.toLowerCase());return!0});return e}Object.defineProperty(x,
"__esModule",{value:!0});x.scriptUsesFeatureSet=x.findScriptDependencies=x.findFunctionCalls=x.extractFunctionDeclaration=x.findExpectedFieldLiterals=x.findFieldLiterals=x.referencesFunction=x.findModuleImports=x.referencesMember=x.walk=x.addFunctionDeclaration=x.fullArcadeApiAsync=x.fullArcadeApiSync=void 0;G={all:{min:2,max:2},none:{min:2,max:2},any:{min:2,max:2},reduce:{min:2,max:3},map:{min:2,max:2},filter:{min:2,max:2},fromcodepoint:{min:1,max:-1},fromcharcode:{min:1,max:-1},tocodepoint:{min:1,
max:2},tocharcode:{min:1,max:2},concatenate:{min:0,max:-1},expects:{min:1,max:-1},getfeatureset:{min:1,max:2},week:{min:1,max:2},fromjson:{min:1,max:1},length3d:{min:1,max:2},tohex:{min:1,max:1},hash:{min:1,max:1},timezone:{min:1,max:1},timezoneoffset:{min:1,max:1},changetimezone:{min:2,max:2},isoweek:{min:1,max:1},isoweekday:{min:1,max:1},hasvalue:{min:2,max:2},isomonth:{min:1,max:1},isoyear:{min:1,max:1},resize:{min:2,max:3},slice:{min:0,max:-1},splice:{min:0,max:-1},push:{min:2,max:2},pop:{min:1,
max:1},includes:{min:2,max:2},array:{min:1,max:2},front:{min:1,max:1},back:{min:1,max:1},insert:{min:3,max:3},erase:{min:2,max:2},split:{min:2,max:4},guid:{min:0,max:1},standardizeguid:{min:2,max:2},today:{min:0,max:0},angle:{min:2,max:3},bearing:{min:2,max:3},urlencode:{min:1,max:1},now:{min:0,max:0},timestamp:{min:0,max:0},day:{min:1,max:1},month:{min:1,max:1},year:{min:1,max:1},hour:{min:1,max:1},second:{min:1,max:1},millisecond:{min:1,max:1},minute:{min:1,max:1},weekday:{min:1,max:1},toutc:{min:1,
max:1},tolocal:{min:1,max:1},date:{min:0,max:8},datediff:{min:2,max:4},dateadd:{min:2,max:3},trim:{min:1,max:1},text:{min:1,max:2},left:{min:2,max:2},right:{min:2,max:2},mid:{min:2,max:3},upper:{min:1,max:1},proper:{min:1,max:2},lower:{min:1,max:1},find:{min:2,max:3},iif:{min:3,max:3},decode:{min:2,max:-1},when:{min:2,max:-1},defaultvalue:{min:2,max:2},isempty:{min:1,max:1},domaincode:{min:2,max:4},domainname:{min:2,max:4},polygon:{min:1,max:1},point:{min:1,max:1},polyline:{min:1,max:1},extent:{min:1,
max:1},multipoint:{min:1,max:1},ringisclockwise:{min:1,max:1},geometry:{min:1,max:1},count:{min:0,max:-1},number:{min:1,max:2},acos:{min:1,max:1},asin:{min:1,max:1},atan:{min:1,max:1},atan2:{min:2,max:2},ceil:{min:1,max:2},floor:{min:1,max:2},round:{min:1,max:2},cos:{min:1,max:1},exp:{min:1,max:1},log:{min:1,max:1},min:{min:0,max:-1},constrain:{min:3,max:3},console:{min:0,max:-1},max:{min:0,max:-1},pow:{min:2,max:2},random:{min:0,max:0},sqrt:{min:1,max:1},sin:{min:1,max:1},tan:{min:1,max:1},abs:{min:1,
max:1},isnan:{min:1,max:1},stdev:{min:0,max:-1},average:{min:0,max:-1},mean:{min:0,max:-1},sum:{min:0,max:-1},variance:{min:0,max:-1},distinct:{min:0,max:-1},first:{min:1,max:1},top:{min:2,max:2},boolean:{min:1,max:1},dictionary:{min:0,max:-1},typeof:{min:1,max:1},reverse:{min:1,max:1},replace:{min:3,max:4},sort:{min:1,max:2},feature:{min:1,max:-1},haskey:{min:2,max:2},indexof:{min:2,max:2},disjoint:{min:2,max:2},intersects:{min:2,max:2},touches:{min:2,max:2},crosses:{min:2,max:2},within:{min:2,max:2},
contains:{min:2,max:2},overlaps:{min:2,max:2},equals:{min:2,max:2},relate:{min:3,max:3},intersection:{min:2,max:2},union:{min:1,max:2},difference:{min:2,max:2},symmetricdifference:{min:2,max:2},clip:{min:2,max:2},cut:{min:2,max:2},area:{min:1,max:2},areageodetic:{min:1,max:2},length:{min:1,max:2},lengthgeodetic:{min:1,max:2},distancegeodetic:{min:2,max:3},distance:{min:2,max:3},densify:{min:2,max:3},densifygeodetic:{min:2,max:3},generalize:{min:2,max:4},buffer:{min:2,max:3},buffergeodetic:{min:2,
max:3},offset:{min:2,max:6},rotate:{min:2,max:3},issimple:{min:1,max:1},simplify:{min:1,max:1},convexhull:{min:1,max:1},centroid:{min:1,max:1},isselfintersecting:{min:1,max:1},multiparttosinglepart:{min:1,max:1},setgeometry:{min:2,max:2},portal:{min:1,max:1},getuser:{min:0,max:2},subtypes:{min:1,max:1},subtypecode:{min:1,max:1},subtypename:{min:1,max:1},domain:{min:2,max:3},convertdirection:{min:3,max:3},sqltimestamp:{min:1,max:3},schema:{min:1,max:1}};x.fullArcadeApiSync={functionDefinitions:new Map,
constantDefinitions:new Map};x.fullArcadeApiAsync={functionDefinitions:new Map,constantDefinitions:new Map};c=0;for(r=["pi","infinity"];c<r.length;c++){var a=r[c];x.fullArcadeApiAsync.constantDefinitions.set(a,{type:"constant"});x.fullArcadeApiSync.constantDefinitions.set(a,{type:"constant"})}x.fullArcadeApiAsync.constantDefinitions.set("textformatting",{type:"namespace",key:"textformatting",members:[{key:"backwardslash",type:"constant"},{key:"doublequote",type:"constant"},{key:"forwardslash",type:"constant"},
{key:"tab",type:"constant"},{key:"singlequote",type:"constant"},{key:"newline",type:"constant"}]});x.fullArcadeApiSync.constantDefinitions.set("textformatting",{type:"namespace",key:"textformatting",members:[{key:"backwardslash",type:"constant"},{key:"tab",type:"constant"},{key:"singlequote",type:"constant"},{key:"doublequote",type:"constant"},{key:"forwardslash",type:"constant"},{key:"newline",type:"constant"}]});for(var d in G)c=G[d],x.fullArcadeApiAsync.functionDefinitions.set(d,{overloads:[{type:"function",
parametersInfo:{min:c.min,max:c.max}}]}),x.fullArcadeApiSync.functionDefinitions.set(d,{overloads:[{type:"function",parametersInfo:{min:c.min,max:c.max}}]});var k="featureset featuresetbyid featuresetbyname featuresetbyassociation featuresetbyrelationshipname featuresetbyurl getfeatureset getuser attachments featuresetbyportalitem".split(" "),l="disjoint intersects touches crosses within contains overlaps equals relate intersection union difference symmetricdifference clip cut area areageodetic length length3d lengthgeodetic distance distancegeodetic densify densifygeodetic generalize buffer buffergeodetic offset rotate issimple convexhull simplify multiparttosinglepart".split(" ");
x.addFunctionDeclaration=function(m,e){var b;e="sync"===e?x.fullArcadeApiSync:x.fullArcadeApiAsync;e.functionDefinitions.has(m.name.toLowerCase())?null===(b=e.functionDefinitions.get(m.name.toLowerCase()))||void 0===b?void 0:b.overloads.push({type:"function",parametersInfo:{min:m.min,max:m.max}}):e.functionDefinitions.set(m.name.toLowerCase(),{overloads:[{type:"function",parametersInfo:{min:m.min,max:m.max}}]})};x.walk=q;x.referencesMember=n;x.findModuleImports=f;x.referencesFunction=function(m,e){var b=
!1,p=e.toLowerCase();q(m,function(t){return b?!1:"CallExpression"===t.type&&"Identifier"===t.callee.type&&t.callee.name&&t.callee.name.toLowerCase()===p?(b=!0,!1):!0});return b};x.findFieldLiterals=function(m){var e=[];q(m,function(b){var p;if("MemberExpression"!==b.type||"Identifier"!==b.object.type)return!0;!1===b.computed&&b.object&&b.object.name&&b.property&&"Identifier"===b.property.type&&b.property.name?e.push(b.object.name.toLowerCase()+"."+b.property.name.toLowerCase()):b.object&&b.object.name&&
b.property&&"Literal"===b.property.type&&"string"===typeof b.property.value&&e.push(b.object.name.toLowerCase()+"."+(null===(p=b.property.value)||void 0===p?void 0:p.toString().toLowerCase()));return!1});return e};x.findExpectedFieldLiterals=function(m){var e=[];q(m,function(b){if("CallExpression"===b.type){if("Identifier"===b.callee.type&&"expects"===b.callee.name.toLowerCase()){var p="";for(var t=0;t<(b.arguments||[]).length;t++)0===t?"Identifier"===b.arguments[t].type&&(p=b.arguments[t].name.toLowerCase()):
p&&"Literal"===b.arguments[t].type&&h(b.arguments[t].value)&&e.push(p+"."+b.arguments[t].value.toLowerCase());return!1}if("Identifier"===b.callee.type&&["domainname","domaincode","domain","haskey"].includes(b.callee.name.toLowerCase())&&2<=b.arguments.length)return p="","Identifier"===b.arguments[0].type&&(p=b.arguments[0].name.toLowerCase()),p&&"Literal"===b.arguments[1].type&&h(b.arguments[1].value)&&e.push(p+"."+b.arguments[1].value.toLowerCase()),!1}if("MemberExpression"!==b.type||"Identifier"!==
b.object.type)return!0;!1===b.computed&&b.object&&b.object.name&&b.property&&"Identifier"===b.property.type&&b.property.name?e.push(b.object.name.toLowerCase()+"."+b.property.name.toLowerCase()):b.object&&b.object.name&&b.property&&"Literal"===b.property.type&&"string"===typeof b.property.value&&e.push(b.object.name.toLowerCase()+"."+(null===(p=b.property.value)||void 0===p?void 0:p.toString().toLowerCase()));return!1});return e};x.extractFunctionDeclaration=function(m,e){var b=[];if(void 0!==e.params&&
null!==e.params)for(var p=0;p<e.params.length;p++)b.push("any");return{name:m,return:"any",params:b}};x.findFunctionCalls=g;x.findScriptDependencies=function(m,e){void 0===e&&(e=[]);var b=null;if(void 0===m.usesFeatureSet){null===b&&(b=g(m));m.usesFeatureSet=!1;for(var p=0;p<b.length;p++)k.includes(b[p])&&(m.usesFeatureSet=!0,m.isAsync=!0);if(!1===m.usesFeatureSet&&e&&0<e.length)for(p=0;p<e.length;p++)if(n(m,e[p])){m.usesFeatureSet=!0;m.isAsync=!0;break}}void 0===m.usesModules&&(m.usesModules=!1,
0<f(m).length&&(m.usesModules=!0));if(void 0===m.usesGeometry)for(m.usesGeometry=!1,null===b&&(b=g(m)),p=0;p<b.length;p++)l.includes(b[p])&&(m.usesGeometry=!0)};x.scriptUsesFeatureSet=function(m){m=g(m);for(var e=0;e<m.length;e++)if(k.includes(m[e]))return!0;return!1}})},"esri/arcade/functions/array":function(){define("require exports ../polyfill/tsSupport/awaiter ../polyfill/tsSupport/generator ../polyfill/tsSupport/assign ../polyfill/tsSupport/spreadarray ../executionError ../ImmutableArray ../languageUtils ../polyfill/promiseUtils".split(" "),
function(G,x,c,r,h,w,q,n,f,g){Object.defineProperty(x,"__esModule",{value:!0});x.registerFunctions=void 0;x.registerFunctions=function(a){function d(b,p,t){if(b instanceof n)return b.toArray();if(f.isArray(b))return b;throw new q.ArcadeExecutionError(p,q.ExecutionErrorCodes.InvalidParameter,t);}function k(b,p){var t=b.length,z=Math.floor(t/2);if(0===t)return[];if(1===t)return[b[0]];var C=k(b.slice(0,z),p);b=k(b.slice(z,t),p);for(t=[];0<C.length||0<b.length;)0<C.length&&0<b.length?(z=p(C[0],b[0]),
isNaN(z)&&(z=0),0>=z?(t.push(C[0]),C=C.slice(1)):(t.push(b[0]),b=b.slice(1))):0<C.length?(t.push(C[0]),C=C.slice(1)):0<b.length&&(t.push(b[0]),b=b.slice(1));return t}function l(b,p){return c(this,void 0,void 0,function(){var t,z,C,y;return r(this,function(D){switch(D.label){case 0:return t=b.length,z=Math.floor(t/2),0===t?[2,[]]:1===t?[2,[b[0]]]:[4,l(b.slice(0,z),p)];case 1:return y=[D.sent()],[4,l(b.slice(z,t),p)];case 2:return C=y.concat([D.sent()]),[2,m(C[0],C[1],p,[])]}})})}function m(b,p,t,z){return c(this,
void 0,void 0,function(){var C,y;return r(this,function(D){switch(D.label){case 0:return C=z,0<b.length||0<p.length?0<b.length&&0<p.length?[4,t(b[0],p[0])]:[3,2]:[3,4];case 1:return y=D.sent(),isNaN(y)&&(y=1),0>=y?(C.push(b[0]),b=b.slice(1)):(C.push(p[0]),p=p.slice(1)),[2,m(b,p,t,z)];case 2:if(0<b.length)return C.push(b[0]),b=b.slice(1),[2,m(b,p,t,z)];if(0<p.length)return C.push(p[0]),p=p.slice(1),[2,m(b,p,t,z)];D.label=3;case 3:return[3,5];case 4:return[2,z];case 5:return[2]}})})}function e(b,p,
t,z){f.pcCheck(t,1,2,b,p);var C=t[0];f.isImmutableArray(C)&&(C=C.toArray());if(!1===f.isArray(C))throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);if(1<t.length){if(!1===f.isFunctionParameter(t[1]))throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);var y=C,D=t[1].createFunction(b);return z?l(y,D):y=k(y,function(B,u){return D(B,u)})}b=C;if(0===b.length)return[];t={};for(z=0;z<b.length;z++)p=f.getType(b[z]),""!==p&&(t[p]=!0);if(!0===t.Array||!0===
t.Dictionary||!0===t.Feature||!0===t.Point||!0===t.Polygon||!0===t.Polyline||!0===t.Multipoint||!0===t.Extent||!0===t.Function)return b.slice(0);z=0;p="";for(y in t)z++,p=y;return b=1<z||"String"===p?k(b,function(B,u){if(null===B||void 0===B||B===f.voidOperation)return null===u||void 0===u||u===f.voidOperation?0:1;if(null===u||void 0===u||u===f.voidOperation)return-1;B=f.toString(B);u=f.toString(u);return B<u?-1:B===u?0:1}):"Number"===p?k(b,function(B,u){return B-u}):"Boolean"===p?k(b,function(B,
u){return B===u?0:u?-1:1}):"Date"===p?k(b,function(B,u){return u-B}):b.slice(0)}a.functions.array=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,1,2,b,p);t=f.toNumber(C[0]);if(isNaN(t)||!1===f.isInteger(t))throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);C=f.defaultUndefined(C[1],null);t=Array(t);t.fill(C);return t})};a.functions.front=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,1,1,b,p);if(f.isImmutableArray(C[0])){if(0>=
C[0].length())throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.OutOfBounds,p);return C[0].get(0)}if(f.isArray(C[0])){if(0>=C[0].length)throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.OutOfBounds,p);return C[0][0]}throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);})};a.functions.back=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,1,1,b,p);if(f.isImmutableArray(C[0])){if(0>=C[0].length())throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.OutOfBounds,
p);return C[0].get(C[0].length()-1)}if(f.isArray(C[0])){if(0>=C[0].length)throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.OutOfBounds,p);return C[0][C[0].length-1]}throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);})};a.functions.push=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,1,2,b,p);if(f.isArray(C[0]))return C[0][C[0].length]=C[1],C[0].length;throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);})};a.functions.pop=
function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,1,1,b,p);if(f.isArray(C[0])){if(0>=C[0].length)throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.OutOfBounds,p);t=C[0][C[0].length-1];--C[0].length;return t}throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);})};a.functions.erase=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,2,2,b,p);if(f.isArray(C[0])){t=f.toNumber(C[1]);if(isNaN(t)||!1===f.isInteger(t))throw new q.ArcadeExecutionError(b,
q.ExecutionErrorCodes.InvalidParameter,p);C=C[0];if(0>=C.length)throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.OutOfBounds,p);0>t&&(t=C.length+t);if(0>t)throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.OutOfBounds,p);if(t>=C.length)throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.OutOfBounds,p);C.splice(t,1);return f.voidOperation}throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);})};a.functions.insert=function(b,p){return a.standardFunction(b,
p,function(t,z,C){f.pcCheck(C,3,3,b,p);if(f.isArray(C[0])){t=f.toNumber(C[1]);if(isNaN(t)||!1===f.isInteger(t))throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);z=C[2];C=C[0];if(t>C.length)throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.OutOfBounds,p);if(0>t&&t<-1*C.length)throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.OutOfBounds,p);if(t===C.length)return C[t]=z,f.voidOperation;C.splice(t,0,z);return f.voidOperation}throw new q.ArcadeExecutionError(b,
q.ExecutionErrorCodes.InvalidParameter,p);})};a.functions.resize=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,2,3,b,p);if(f.isArray(C[0])){z=f.toNumber(C[1]);if(isNaN(z)||!1===f.isInteger(z))throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);if(0>z)throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);t=f.defaultUndefined(C[2],null);C=C[0];if(C.length>=z)return C.length=z,f.voidOperation;var y=C.length;C.length=z;for(z=y;z<
C.length;z++)C[z]=t;return f.voidOperation}throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);})};a.functions.includes=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,2,2,b,p);if(f.isArray(C[0])){var y=C[1];t=C[0];return-1<t.findIndex(function(B){return f.equalityTest(B,y)})?!0:!1}if(f.isImmutableArray(C[0])){var D=C[1];t=C[0].toArray();return-1<t.findIndex(function(B){return f.equalityTest(B,D)})?!0:!1}throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,
p);})};a.functions.slice=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,1,3,b,p);if(f.isArray(C[0])){t=f.toNumber(f.defaultUndefined(C[1],0));z=f.toNumber(f.defaultUndefined(C[2],C[0].length));if(isNaN(t)||!1===f.isInteger(t))throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);if(isNaN(z)||!1===f.isInteger(z))throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);var y=C[0];return y.slice(t,z)}if(f.isImmutableArray(C[0])){y=C[0];
t=f.toNumber(f.defaultUndefined(C[1],0));z=f.toNumber(f.defaultUndefined(C[2],y.length()));if(isNaN(t)||!1===f.isInteger(t))throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);if(isNaN(z)||!1===f.isInteger(z))throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);return y.toArray().slice(t,z)}throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,p);})};a.functions.splice=function(b,p){return a.standardFunction(b,p,function(t,z,C){t=
[];for(z=0;z<C.length;z++)f.isArray(C[z])?t.push.apply(t,C[z]):f.isImmutableArray(C[z])?t.push.apply(t,C[z].toArray()):t.push(C[z]);return t})};a.functions.top=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,2,2,b,p);if(f.isArray(C[0]))return f.toNumber(C[1])>=C[0].length?C[0].slice(0):C[0].slice(0,f.toNumber(C[1]));if(f.isImmutableArray(C[0]))return f.toNumber(C[1])>=C[0].length()?C[0].slice(0):C[0].slice(0,f.toNumber(C[1]));throw new q.ArcadeExecutionError(b,q.ExecutionErrorCodes.InvalidParameter,
p);})};a.functions.first=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,1,1,b,p);return f.isArray(C[0])?0===C[0].length?null:C[0][0]:f.isImmutableArray(C[0])?0===C[0].length()?null:C[0].get(0):null})};"sync"===a.mode&&(a.functions.sort=function(b,p){return a.standardFunction(b,p,function(t,z,C){return e(b,p,C,!1)})},a.functions.any=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,2,2,b,p);t=C[1].createFunction(b);z=0;for(C=d(C[0],b,p);z<C.length;z++){var y=
t(C[z]);if(f.isBoolean(y)&&!0===y)return!0}return!1})},a.functions.all=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,2,2,b,p);t=C[1].createFunction(b);z=0;for(C=d(C[0],b,p);z<C.length;z++)if(!0!==t(C[z]))return!1;return!0})},a.functions.none=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,2,2,b,p);t=C[1].createFunction(b);z=0;for(C=d(C[0],b,p);z<C.length;z++)if(!0===t(C[z]))return!1;return!0})},a.functions.reduce=function(b,p){return a.standardFunction(b,
p,function(t,z,C){f.pcCheck(C,2,3,b,p);var y=C[1].createFunction(b);t=d(C[0],b,p);return 2===C.length?0===t.length?null:t.reduce(function(D,B){D=y(D,B);return D=void 0!==D&&D!==f.voidOperation?D:null}):t.reduce(function(D,B){D=y(D,B);return D=void 0!==D&&D!==f.voidOperation?D:null},C[2])})},a.functions.map=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,2,2,b,p);t=C[1].createFunction(b);z=[];var y=0;for(C=d(C[0],b,p);y<C.length;y++){var D=t(C[y]);void 0!==D&&D!==f.voidOperation?
z.push(D):z.push(null)}return z})},a.functions.filter=function(b,p){return a.standardFunction(b,p,function(t,z,C){f.pcCheck(C,2,2,b,p);t=C[1].createFunction(b);z=[];var y=0;for(C=d(C[0],b,p);y<C.length;y++){var D=C[y];!0===t(D)&&z.push(D)}return z})});"async"===a.mode&&(a.functions.sort=function(b,p){return a.standardFunctionAsync(b,p,function(t,z,C){return e(b,p,C,!0)})},a.functions.any=function(b,p){var t=this;return a.standardFunctionAsync(b,p,function(z,C,y){return c(t,void 0,void 0,function(){var D,
B,u,E,v,A,F;return r(this,function(I){switch(I.label){case 0:f.pcCheck(y,2,2,b,p),D=y[1].createFunction(b),B=d(y[0],b,p),u=0,E=B,I.label=1;case 1:if(!(u<E.length))return[3,7];v=E[u];return[4,D(v)];case 2:return A=I.sent(),F=null,g.isPromiseLike(F)?[4,A]:[3,4];case 3:return F=I.sent(),[3,5];case 4:F=A,I.label=5;case 5:if(f.isBoolean(F)&&!0===F)return[2,!0];I.label=6;case 6:return u++,[3,1];case 7:return[2,!1]}})})})},a.functions.all=function(b,p){var t=this;return a.standardFunctionAsync(b,p,function(z,
C,y){return c(t,void 0,void 0,function(){var D,B,u,E,v,A,F;return r(this,function(I){switch(I.label){case 0:f.pcCheck(y,2,2,b,p),D=y[1].createFunction(b),B=d(y[0],b,p),u=0,E=B,I.label=1;case 1:if(!(u<E.length))return[3,7];v=E[u];return[4,D(v)];case 2:return A=I.sent(),F=null,g.isPromiseLike(F)?[4,A]:[3,4];case 3:return F=I.sent(),[3,5];case 4:F=A,I.label=5;case 5:if(!0!==F)return[2,!1];I.label=6;case 6:return u++,[3,1];case 7:return[2,!0]}})})})},a.functions.none=function(b,p){var t=this;return a.standardFunctionAsync(b,
p,function(z,C,y){return c(t,void 0,void 0,function(){var D,B,u,E,v,A,F;return r(this,function(I){switch(I.label){case 0:f.pcCheck(y,2,2,b,p),D=y[1].createFunction(b),B=d(y[0],b,p),u=0,E=B,I.label=1;case 1:if(!(u<E.length))return[3,7];v=E[u];return[4,D(v)];case 2:return A=I.sent(),F=null,g.isPromiseLike(F)?[4,A]:[3,4];case 3:return F=I.sent(),[3,5];case 4:F=A,I.label=5;case 5:if(!0===F)return[2,!1];I.label=6;case 6:return u++,[3,1];case 7:return[2,!0]}})})})},a.functions.filter=function(b,p){var t=
this;return a.standardFunctionAsync(b,p,function(z,C,y){return c(t,void 0,void 0,function(){var D,B,u,E,v,A,F,I;return r(this,function(N){switch(N.label){case 0:f.pcCheck(y,2,2,b,p),D=y[1].createFunction(b),B=d(y[0],b,p),u=[],E=0,v=B,N.label=1;case 1:if(!(E<v.length))return[3,7];A=v[E];return[4,D(A)];case 2:return F=N.sent(),I=null,g.isPromiseLike(I)?[4,F]:[3,4];case 3:return I=N.sent(),[3,5];case 4:I=F,N.label=5;case 5:!0===I&&u.push(A),N.label=6;case 6:return E++,[3,1];case 7:return[2,u]}})})})},
a.functions.reduce=function(b,p){var t=this;return a.standardFunctionAsync(b,p,function(z,C,y){f.pcCheck(y,2,3,b,p);var D=y[1].createFunction(b);z=d(y[0],b,p);C=null;if(2<y.length)y=f.defaultUndefined(y[2],null),C=z.reduce(function(B,u){return c(t,void 0,void 0,function(){var E;return r(this,function(v){switch(v.label){case 0:return[4,B];case 1:E=v.sent();if(void 0===E||E===f.voidOperation)E=null;return[2,D(E,u)]}})})},Promise.resolve(y));else{if(0===z.length)return null;C=z.reduce(function(B,u,E){return c(t,
void 0,void 0,function(){var v;return r(this,function(A){switch(A.label){case 0:return 1>=E?[2,D(B,u)]:[4,B];case 1:v=A.sent();if(void 0===v||v===f.voidOperation)v=null;return[2,D(v,u)]}})})})}return C.then(function(B){return void 0!==B&&B!==f.voidOperation?B:null})})},a.functions.map=function(b,p){var t=this;return a.standardFunctionAsync(b,p,function(z,C,y){return c(t,void 0,void 0,function(){var D,B,u,E,v,A,F,I;return r(this,function(N){switch(N.label){case 0:f.pcCheck(y,2,2,b,p),D=y[1].createFunction(b),
B=d(y[0],b,p),u=[],E=0,v=B,N.label=1;case 1:if(!(E<v.length))return[3,7];A=v[E];return[4,D(A)];case 2:return F=N.sent(),I=null,g.isPromiseLike(I)?[4,F]:[3,4];case 3:return I=N.sent(),[3,5];case 4:I=F,N.label=5;case 5:void 0!==I&&I!==f.voidOperation?u.push(I):u.push(null),N.label=6;case 6:return E++,[3,1];case 7:return[2,u]}})})})})}})},"esri/arcade/functions/date":function(){define("require exports ../ArcadeDate ../languageUtils ../executionError ../../libs/luxon/luxon dojo/_base/kernel".split(" "),
function(G,x,c,r,h,w,q){function n(d){return null===d?d:!1===d.isValid?null:d}function f(d,k){return""===d||"default"===d.toLowerCase().trim()?r.defaultTimeZone(k):d}Object.defineProperty(x,"__esModule",{value:!0});x.registerFunctions=void 0;var g=[0,31,59,90,120,151,181,212,243,273,304,334],a=[0,31,60,91,121,152,182,213,244,274,305,335];x.registerFunctions=function(d,k){d.today=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,0,0,l,m);e=new Date;e.setHours(0,0,0,0);return c.ArcadeDate.dateJSAndZoneToArcadeDate(e,
r.defaultTimeZone(l))})};d.changetimezone=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,2,2,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));if(null===e)return null;p=c.ArcadeDate.arcadeDateAndZoneToArcadeDate(e,f(r.toString(p[1]),l));return!1===p.isValid?null:p})};d.timezone=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,2,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));if(null===e)return null;e=e.timeZone;return"system"===e?c.ArcadeDate.systemTimeZoneCanonicalName:e})};d.timezoneoffset=
function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,1,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));return null===e?null:e.timeZoneOffset})};d.now=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,0,0,l,m);e=c.ArcadeDate.nowToArcadeDate(r.defaultTimeZone(l));return!1===e.isValid?null:e})};d.timestamp=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,0,0,l,m);e=c.ArcadeDate.nowUTCToArcadeDate();return!1===e.isValid?null:e})};d.toutc=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,
1,1,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));return null===e?null:e.toUTC()})};d.tolocal=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,1,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));return null===e?null:e.toLocal()})};d.day=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,1,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));return null===e?NaN:e.day})};d.month=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,1,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));return null===e?NaN:e.monthJS})};
d.year=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,1,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));return null===e?NaN:e.year})};d.hour=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,1,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));return null===e?NaN:e.hour})};d.second=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,1,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));return null===e?NaN:e.second})};d.millisecond=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,1,l,m);e=
r.toDate(p[0],r.defaultTimeZone(l));return null===e?NaN:e.millisecond})};d.minute=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,1,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));return null===e?NaN:e.minute})};d.week=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,2,l,m);b=r.toDate(p[0],r.defaultTimeZone(l));if(null===b)return NaN;p=r.toNumber(r.defaultUndefined(p[1],0));if(0>p||6<p)throw new h.ArcadeExecutionError(l,h.ExecutionErrorCodes.InvalidParameter,m);e=b.dayOfWeekJS;var t=b.year;
b=b.day+(0!==t%4||0===t%100&&0!==t%400?g:a)[b.monthJS]-1;t=Math.floor(b/7);return e-p+(0>e-p?7:0)<b-7*t?t+1:t})};d.weekday=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,1,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));return null===e?NaN:e.dayOfWeekJS})};d.isoweekday=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,1,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));return null===e?NaN:e.dayOfWeekISO})};d.isomonth=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,1,l,m);e=r.toDate(p[0],
r.defaultTimeZone(l));return null===e?NaN:e.monthISO})};d.isoweek=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,1,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));return null===e?NaN:e.weekISO})};d.isoyear=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,1,1,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));return null===e?NaN:e.yearISO})};d.date=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,0,8,l,m);if(3===p.length)return n(c.ArcadeDate.fromParts(r.toNumber(p[0]),r.toNumber(p[1])+1,
r.toNumber(p[2]),0,0,0,0,r.defaultTimeZone(l)));if(4===p.length)return n(c.ArcadeDate.fromParts(r.toNumber(p[0]),r.toNumber(p[1])+1,r.toNumber(p[2]),r.toNumber(p[3]),0,0,0,r.defaultTimeZone(l)));if(5===p.length)return n(c.ArcadeDate.fromParts(r.toNumber(p[0]),r.toNumber(p[1])+1,r.toNumber(p[2]),r.toNumber(p[3]),r.toNumber(p[4]),0,0,r.defaultTimeZone(l)));if(6===p.length)return n(c.ArcadeDate.fromParts(r.toNumber(p[0]),r.toNumber(p[1])+1,r.toNumber(p[2]),r.toNumber(p[3]),r.toNumber(p[4]),r.toNumber(p[5]),
0,r.defaultTimeZone(l)));if(7===p.length)return n(c.ArcadeDate.fromParts(r.toNumber(p[0]),r.toNumber(p[1])+1,r.toNumber(p[2]),r.toNumber(p[3]),r.toNumber(p[4]),r.toNumber(p[5]),r.toNumber(p[6]),r.defaultTimeZone(l)));if(8===p.length)return n(c.ArcadeDate.fromParts(r.toNumber(p[0]),r.toNumber(p[1])+1,r.toNumber(p[2]),r.toNumber(p[3]),r.toNumber(p[4]),r.toNumber(p[5]),r.toNumber(p[6]),f(r.toString(p[7]),l)));if(2===p.length){e=r.toString(p[1]);if(""===e)return null;e=r.standardiseDateFormat(e);b=void 0;
b="X"===e?w.DateTime.fromSeconds(r.toNumber(p[0])):"x"===e?w.DateTime.fromMillis(r.toNumber(p[0])):w.DateTime.fromFormat(r.toString(p[0]),e,{locale:q.locale,numberingSystem:"latn"});return b.isValid?c.ArcadeDate.dateTimeToArcadeDate(b):null}if(1===p.length){if(r.isString(p[0])){if(""===p[0].replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))return null;if(!0===/^[0-9][0-9][0-9][0-9]$/.test(p[0]))return r.toDate(p[0]+"-01-01",r.defaultTimeZone(l))}e=r.toNumber(p[0]);return!1===isNaN(e)?(b=w.DateTime.fromMillis(e),
b.isValid?c.ArcadeDate.dateTimeAndZoneToArcadeDate(b,r.defaultTimeZone(l)):null):r.toDate(p[0],r.defaultTimeZone(l))}return 0===p.length?c.ArcadeDate.nowToArcadeDate(r.defaultTimeZone(l)):null})};d.datediff=function(l,m){return k(l,m,function(e,b,p){r.pcCheck(p,2,4,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));b=r.toDate(p[1],r.defaultTimeZone(l));if(null===e||null===b)return NaN;var t=r.defaultUndefined(p[3],"");""!==t&&null!==t?(t=r.toString(t),e=c.ArcadeDate.arcadeDateAndZoneToArcadeDate(e,t),b=c.ArcadeDate.arcadeDateAndZoneToArcadeDate(b,
t)):e.timeZone!==b.timeZone&&(e.isUnknownTimeZone?e=c.ArcadeDate.arcadeDateAndZoneToArcadeDate(e,b.timeZone):b=c.ArcadeDate.arcadeDateAndZoneToArcadeDate(b,e.timeZone));switch(r.toString(p[2]).toLowerCase()){case "days":case "day":case "d":return e.diff(b,"days");case "months":case "month":return e.diff(b,"months");case "minutes":case "minute":case "m":return"M"===p[2]?e.diff(b,"months"):e.diff(b,"minutes");case "seconds":case "second":case "s":return e.diff(b,"seconds");case "milliseconds":case "millisecond":case "ms":return e.diff(b);
case "hours":case "hour":case "h":return e.diff(b,"hours");case "years":case "year":case "y":return e.diff(b,"years");default:return e.diff(b)}})};d.dateadd=function(l,m){return k(l,m,function(e,b,p){var t;r.pcCheck(p,2,3,l,m);e=r.toDate(p[0],r.defaultTimeZone(l));if(null===e)return null;b=r.toNumber(p[1]);if(isNaN(b))return e;var z="milliseconds";switch(r.toString(p[2]).toLowerCase()){case "days":case "day":case "d":z="days";b=r.absRound(b);break;case "months":case "month":z="months";b=r.absRound(b);
break;case "minutes":case "minute":case "m":z="M"===p[2]?"months":"minutes";break;case "seconds":case "second":case "s":z="seconds";break;case "milliseconds":case "millisecond":case "ms":z="milliseconds";break;case "hours":case "hour":case "h":z="hours";break;case "years":case "year":case "y":z="years"}return e.plus((t={},t[z]=b,t))})}}})},"esri/arcade/functions/geometry":function(){define("require exports ../polyfill/tsSupport/assign ../polyfill/tsSupport/spreadarray ../Dictionary ../Feature ../ImmutablePointArray ../languageUtils ../../geometry/Extent ../../geometry/Geometry ../../geometry/Multipoint ../../geometry/Point ../../geometry/Polygon ../../geometry/Polyline ./centroid ../../geometry/jsonUtils ../executionError ../ImmutablePathArray".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p){function t(y){return y&&"esri.arcade.Feature"===y.arcadeDeclaredClass}function z(y,D,B,u,E){void 0===E&&(E=1);D=D.toLowerCase();switch(D){case "hasz":return y=y.hasZ,void 0===y?!1:y;case "hasm":return y=y.hasM,void 0===y?!1:y;case "spatialreference":return D=y.spatialReference._arcadeCacheId,void 0===D&&(B=!0,Object.freeze&&Object.isFrozen(y.spatialReference)&&(B=!1),B&&(C++,D=y.spatialReference._arcadeCacheId=C)),y=new h({wkt:y.spatialReference.wkt,wkid:y.spatialReference.wkid}),
void 0!==D&&(y._arcadeCacheId="SPREF"+D.toString()),y}switch(y.type){case "extent":switch(D){case "xmin":case "xmax":case "ymin":case "ymax":case "zmin":case "zmax":case "mmin":case "mmax":return y=y[D],void 0!==y?y:null;case "type":return"Extent"}break;case "polygon":switch(D){case "rings":return D=y.getCacheValue("_arcadeCacheId"),void 0===D&&(C++,D=C,y.setCacheValue("_arcadeCacheId",D)),y=new p(y.rings,y.spatialReference,!0===y.hasZ,!0===y.hasM,D);case "type":return"Polygon"}break;case "point":switch(D){case "x":case "y":case "z":case "m":return void 0!==
y[D]?y[D]:null;case "type":return"Point"}break;case "polyline":switch(D){case "paths":return D=y.getCacheValue("_arcadeCacheId"),void 0===D&&(C++,D=C,y.setCacheValue("_arcadeCacheId",D)),y=new p(y.paths,y.spatialReference,!0===y.hasZ,!0===y.hasM,D);case "type":return"Polyline"}break;case "multipoint":switch(D){case "points":return D=y.getCacheValue("_arcadeCacheId"),void 0===D&&(C++,D=C,y.setCacheValue("_arcadeCacheId",D)),y=new q(y.points,y.spatialReference,!0===y.hasZ,!0===y.hasM,D,1);case "type":return"Multipoint"}}if(1===
E)throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidIdentifier,u);return 2===E?{keystate:"notfound"}:null}Object.defineProperty(x,"__esModule",{value:!0});x.geometryMember=x.registerFunctions=void 0;x.registerFunctions=function(y,D){y.ringisclockwise=function(B,u){return D(B,u,function(E,v,A){n.pcCheck(A,1,1,B,u);E=[];if(null===A[0])return!1;if(n.isArray(A[0])){var F=0;for(A=A[0];F<A.length;F++)if(v=A[F],v instanceof d)E.push([v.x,v.y]);else throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,
u);}else if(A[0]instanceof q)E=A[0]._elements;else if(n.isImmutableArray(A[0])){F=0;for(var I=A[0].toArray();F<I.length;F++)if(v=I[F],v instanceof d)E.push([v.x,v.y]);else throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);0<E.length&&(A[0].get(0),A[0].get(0))}else throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);return 3>E.length?!1:(new k({rings:[],spatialReference:{wkid:4326}})).isClockwise(E)})};y.polygon=function(B,u){return D(B,u,function(E,
v,A){n.pcCheck(A,1,1,B,u);E=null;if(A[0]instanceof h){if(E=n.fixSpatialReference(w.parseGeometryFromDictionary(A[0]),B.spatialReference),!1===E instanceof k)throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);}else E=A[0]instanceof k?e.fromJson(A[0].toJson()):n.fixSpatialReference(new k(JSON.parse(A[0])),B.spatialReference);if(null!==E&&!1===E.spatialReference.equals(B.spatialReference))throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.WrongSpatialReference,u);return n.fixNullGeometry(E)})};
y.polyline=function(B,u){return D(B,u,function(E,v,A){n.pcCheck(A,1,1,B,u);E=null;if(A[0]instanceof h){if(E=n.fixSpatialReference(w.parseGeometryFromDictionary(A[0]),B.spatialReference),!1===E instanceof l)throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);}else E=A[0]instanceof l?e.fromJson(A[0].toJson()):n.fixSpatialReference(new l(JSON.parse(A[0])),B.spatialReference);if(null!==E&&!1===E.spatialReference.equals(B.spatialReference))throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.WrongSpatialReference,
u);return n.fixNullGeometry(E)})};y.point=function(B,u){return D(B,u,function(E,v,A){n.pcCheck(A,1,1,B,u);E=null;if(A[0]instanceof h){if(E=n.fixSpatialReference(w.parseGeometryFromDictionary(A[0]),B.spatialReference),!1===E instanceof d)throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);}else E=A[0]instanceof d?e.fromJson(A[0].toJson()):n.fixSpatialReference(new d(JSON.parse(A[0])),B.spatialReference);if(null!==E&&!1===E.spatialReference.equals(B.spatialReference))throw new b.ArcadeExecutionError(B,
b.ExecutionErrorCodes.WrongSpatialReference,u);return n.fixNullGeometry(E)})};y.multipoint=function(B,u){return D(B,u,function(E,v,A){n.pcCheck(A,1,1,B,u);E=null;if(A[0]instanceof h){if(E=n.fixSpatialReference(w.parseGeometryFromDictionary(A[0]),B.spatialReference),!1===E instanceof a)throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);}else E=A[0]instanceof a?e.fromJson(A[0].toJson()):n.fixSpatialReference(new a(JSON.parse(A[0])),B.spatialReference);if(null!==E&&!1===E.spatialReference.equals(B.spatialReference))throw new b.ArcadeExecutionError(B,
b.ExecutionErrorCodes.WrongSpatialReference,u);return n.fixNullGeometry(E)})};y.extent=function(B,u){return D(B,u,function(E,v,A){A=n.autoCastFeatureToGeometry(A);n.pcCheck(A,1,1,B,u);E=null;A[0]instanceof h?E=n.fixSpatialReference(w.parseGeometryFromDictionary(A[0]),B.spatialReference):A[0]instanceof d?(E={xmin:A[0].x,ymin:A[0].y,xmax:A[0].x,ymax:A[0].y,spatialReference:A[0].spatialReference.toJson()},A=A[0],A.hasZ?(E.zmin=A.z,E.zmax=A.z):A.hasM&&(E.mmin=A.m,E.mmax=A.m),E=e.fromJson(E)):E=A[0]instanceof
k?e.fromJson(A[0].getExtent().toJson()):A[0]instanceof l?e.fromJson(A[0].getExtent().toJson()):A[0]instanceof a?e.fromJson(A[0].getExtent().toJson()):A[0]instanceof f?e.fromJson(A[0].toJson()):n.fixSpatialReference(new f(JSON.parse(A[0])),B.spatialReference);if(null!==E&&!1===E.spatialReference.equals(B.spatialReference))throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.WrongSpatialReference,u);return n.fixNullGeometry(E)})};y.geometry=function(B,u){return D(B,u,function(E,v,A){n.pcCheck(A,
1,1,B,u);E=null;if(null===A[0])return null;E=t(A[0])?n.fixSpatialReference(A[0].geometry(),B.spatialReference):A[0]instanceof h?n.fixSpatialReference(w.parseGeometryFromDictionary(A[0]),B.spatialReference):n.fixSpatialReference(e.fromJson(JSON.parse(A[0])),B.spatialReference);if(null!==E&&!1===E.spatialReference.equals(B.spatialReference))throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.WrongSpatialReference,u);return n.fixNullGeometry(E)})};y.setgeometry=function(B,u){return D(B,u,function(E,
v,A){n.pcCheck(A,2,2,B,u);if(t(A[0])){if(!0===A[0].immutable)throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.Immutable,u);if(A[1]instanceof g||null===A[1])A[0]._geometry=A[1];else throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);}else throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);return n.voidOperation})};y.feature=function(B,u){return D(B,u,function(E,v,A){if(0===A.length)throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.WrongNumberOfParameters,
u);E=null;if(1===A.length)if(n.isString(A[0]))E=w.fromJson(JSON.parse(A[0]),B.timeReference);else if(t(A[0]))E=w.createFromArcadeFeature(A[0]);else if(A[0]instanceof g)E=w.createFromGraphicLikeObject(A[0],null,null,B.timeReference);else if(A[0]instanceof h)E=A[0].hasField("geometry")?A[0].field("geometry"):null,v=A[0].hasField("attributes")?A[0].field("attributes"):null,null!==E&&E instanceof h&&(E=w.parseGeometryFromDictionary(E)),null!==v&&(v=w.parseAttributesFromDictionary(v)),E=w.createFromGraphicLikeObject(E,
v,null,B.timeReference);else throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);else{if(2===A.length){v=E=null;if(null!==A[0])if(A[0]instanceof g)E=A[0];else if(E instanceof h)E=w.parseGeometryFromDictionary(A[0]);else throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);if(null!==A[1])if(A[1]instanceof h)v=w.parseAttributesFromDictionary(A[1]);else throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);}else{E=null;v={};if(null!==
A[0])if(A[0]instanceof g)E=A[0];else if(E instanceof h)E=w.parseGeometryFromDictionary(A[0]);else throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);for(var F=1;F<A.length;F+=2){var I=n.toString(A[F]),N=A[F+1];if(null===N||void 0===N||n.isString(N)||isNaN(N)||n.isDate(N)||n.isNumber(N)||n.isBoolean(N)){if(n.isFunctionParameter(N)||!1===n.isSimpleType(N))throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);v[I]=N===n.voidOperation?null:N}else throw new b.ArcadeExecutionError(B,
b.ExecutionErrorCodes.InvalidParameter,u);}}E=w.createFromGraphicLikeObject(E,v,null,B.timeReference)}E._geometry=n.fixSpatialReference(E.geometry(),B.spatialReference);E.immutable=!1;return E})};y.dictionary=function(B,u){return D(B,u,function(E,v,A){if(0===A.length)return A=new h,A.immutable=!1,A;if(1===A.length&&n.isString(A[0]))try{var F=JSON.parse(A[0]),I=h.convertObjectToArcadeDictionary(F,n.defaultTimeZone(B),!1);I.immutable=!1;return I}catch(N){throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,
u);}if(0!==A.length%2)throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.WrongNumberOfParameters,u);E={};for(v=0;v<A.length;v+=2)if(F=n.toString(A[v]),I=A[v+1],null===I||void 0===I||n.isString(I)||isNaN(I)||n.isDate(I)||n.isNumber(I)||n.isBoolean(I)||n.isArray(I)||n.isImmutableArray(I)){if(n.isFunctionParameter(I))throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);E[F]=I===n.voidOperation?null:I}else throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,
u);A=new h(E);A.immutable=!1;return A})};y.haskey=function(B,u){return D(B,u,function(E,v,A){n.pcCheck(A,2,2,B,u);E=n.toString(A[1]);if(t(A[0])||A[0]instanceof h)return A[0].hasField(E);if(A[0]instanceof g)return(A=z(A[0],E,null,null,2))&&"notfound"===A.keystate?!1:!0;throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);})};y.hasvalue=function(B,u){return D(B,u,function(E,v,A){n.pcCheck(A,2,2,B,u);if(null===A[0]||null===A[1])return!1;E=n.toString(A[1]);return n.isFeature(A[0])||
A[0]instanceof h?A[0].hasField(E)&&null!==A[0].field(E)?!0:!1:A[0]instanceof g?null===z(A[0],E,null,null,0)?!1:!0:!1})};y.indexof=function(B,u){return D(B,u,function(E,v,A){n.pcCheck(A,2,2,B,u);E=A[1];if(n.isArray(A[0])){for(v=0;v<A[0].length;v++)if(n.equalityTest(E,A[0][v]))return v;return-1}if(n.isImmutableArray(A[0])){var F=A[0].length();for(v=0;v<F;v++)if(n.equalityTest(E,A[0].get(v)))return v;return-1}throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);})};y.angle=function(B,
u){return D(B,u,function(E,v,A){A=n.autoCastFeatureToGeometry(A);n.pcCheck(A,2,3,B,u);if(!(A[0]instanceof d))throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);if(!(A[1]instanceof d))throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);if(2<A.length&&!(A[2]instanceof d))throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);return 2===A.length?m.angle2D(A[0],A[1]):m.angleBetween2D(A[0],A[1],A[2])})};y.bearing=function(B,u){return D(B,
u,function(E,v,A){A=n.autoCastFeatureToGeometry(A);n.pcCheck(A,2,3,B,u);if(!(A[0]instanceof d))throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);if(!(A[1]instanceof d))throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);if(2<A.length&&!(A[2]instanceof d))throw new b.ArcadeExecutionError(B,b.ExecutionErrorCodes.InvalidParameter,u);return 2===A.length?m.bearing2D(A[0],A[1]):m.bearingBetween2D(A[0],A[1],A[2])})};y.isselfintersecting=function(B,u){return D(B,
u,function(E,v,A){A=n.autoCastFeatureToGeometry(A);n.pcCheck(A,1,1,B,u);E=A[0];if(E instanceof k)return E.isSelfIntersecting(E);if(E instanceof l)return E=E.paths,m.pathsSelfIntersecting(E);if(E instanceof a)for(v=E.points,A=0;A<v.length;A++)for(var F=0;F<v.length;F++)if(F!==A){for(var I=!0,N=0;N<v[A].length;N++)if(v[A][N]!==v[F][N]){I=!1;break}if(!0===I)return!0}return n.isArray(E)||n.isImmutableArray(E)?(E=n.autoCastArrayOfPointsToPolyline(E,B.spatialReference),null!==E&&(E=E.paths),m.pathsSelfIntersecting(E)):
!1})}};var C=0;x.geometryMember=z})},"esri/arcade/functions/centroid":function(){define(["require","exports","../../geometry/Point"],function(G,x,c){function r(a,d,k){var l={x:0,y:0};d&&(l.z=0);k&&(l.m=0);for(var m=0,e=a[0],b=0;b<a.length;b++){var p=a[b];a:if(p.length!==e.length)var t=!1;else{for(t=0;t<p.length;t++)if(p[t]!==e[t]){t=!1;break a}t=!0}if(!1===t){t=h(e,p,d);var z=p,C=d,y=k,D={x:(e[0]+z[0])/2,y:(e[1]+z[1])/2};C&&(D.z=(e[2]+z[2])/2);C&&y?D.m=(e[3]+z[3])/2:y&&(D.m=(e[2]+z[2])/2);e=D;e.x*=
t;e.y*=t;l.x+=e.x;l.y+=e.y;d&&(e.z*=t,l.z+=e.z);k&&(e.m*=t,l.m+=e.m);m+=t;e=p}}0<m?(l.x/=m,l.y/=m,d&&(l.z/=m),k&&(l.m/=m)):(l.x=a[0][0],l.y=a[0][1],d&&(l.z=a[0][2]),k&&d?l.m=a[0][3]:k&&(l.m=a[0][2]));return l}function h(a,d,k){var l=d[0]-a[0];a=d[1]-a[1];return k?(d=d[2]-d[2],Math.sqrt(l*l+a*a+d*d)):Math.sqrt(l*l+a*a)}function w(a,d,k){for(void 0===k&&(k=0);a<k;)a+=d;for(k+=d;a>=k;)a-=d;return a}function q(a,d){return Math.atan2(d.y-a.y,d.x-a.x)}function n(a,d,k){var l=a.x-d.x;a=a.y-d.y;var m=k.x-
d.x;d=k.y-d.y;return Math.atan2(l*d-m*a,l*m+a*d)}function f(a,d,k,l,m){var e=a[0];a=a[1];var b=d[0];d=d[1];var p=k[0],t=k[1];k=l[0]-p;p=e-p;var z=b-e;l=l[1]-t;t=a-t;var C=d-a,y=l*z-k*C;if(0===y)return!1;k=(k*t-l*p)/y;p=(z*t-C*p)/y;return 0<=k&&1>=k&&0<=p&&1>=p?(m&&(m[0]=e+k*(b-e),m[1]=a+k*(d-a)),!0):!1}Object.defineProperty(x,"__esModule",{value:!0});x.pathsSelfIntersecting=x.bearingBetween2D=x.angleBetween2D=x.angleBetweenRad=x.bearing2D=x.angle2D=x.angleRad=x.centroidMultiPoint=x.centroidPolyline=
void 0;x.centroidPolyline=function(a){for(var d={x:0,y:0,spatialReference:a.spatialReference.toJson()},k={x:0,y:0,spatialReference:a.spatialReference.toJson()},l=0,m=0,e=0;e<a.paths.length;e++)if(0!==a.paths[e].length){var b=a.paths[e];var p=!0===a.hasZ;if(1>=b.length)b=0;else{for(var t=0,z=1;z<b.length;z++)t+=h(b[z-1],b[z],p);b=t}0===b?(p=r(a.paths[e],!0===a.hasZ,!0===a.hasM),d.x+=p.x,d.y+=p.y,!0===a.hasZ&&(d.z+=p.z),!0===a.hasM&&(d.m+=p.m),++l):(p=r(a.paths[e],!0===a.hasZ,!0===a.hasM),k.x+=p.x*
b,k.y+=p.y*b,!0===a.hasZ&&(k.z+=p.z*b),!0===a.hasM&&(k.m+=p.m*b),m+=b)}return 0<m?(k.x/=m,k.y/=m,!0===a.hasZ&&(k.z/=m),!0===a.hasM&&(k.m/=m),new c(k)):0<l?(d.x/=l,d.y/=l,!0===a.hasZ&&(k.z/=l),!0===a.hasM&&(d.m/=l),new c(d)):null};x.centroidMultiPoint=function(a){if(0===a.points.length)return null;for(var d=0,k=0,l=0,m=0,e=0;e<a.points.length;e++){var b=a.getPoint(e);!0===b.hasZ&&(l+=b.z);!0===b.hasM&&(m+=b.m);d+=b.x;k+=b.y;m+=b.m}d={x:d/a.points.length,y:k/a.points.length,spatialReference:null};d.spatialReference=
a.spatialReference.toJson();!0===a.hasZ&&(d.z=l/a.points.length);!0===a.hasM&&(d.m=m/a.points.length);return new c(d)};x.angleRad=q;x.angle2D=function(a,d){return w(q(a,d),2*Math.PI)*(180/Math.PI)};x.bearing2D=function(a,d){return w(Math.PI/2-q(a,d),2*Math.PI)*(180/Math.PI)};x.angleBetweenRad=n;x.angleBetween2D=function(a,d,k){return w(n(a,d,k),2*Math.PI)*(180/Math.PI)};x.bearingBetween2D=function(a,d,k){return w(-1*n(a,d,k),2*Math.PI)*(180/Math.PI)};var g=[0,0];x.pathsSelfIntersecting=function(a){for(var d=
0;d<a.length;d++){for(var k=a[d],l=0;l<k.length-1;l++)for(var m=k[l],e=k[l+1],b=d+1;b<a.length;b++)for(var p=0;p<a[b].length-1;p++){var t=a[b][p],z=a[b][p+1],C=f(m,e,t,z,g);if(C&&!(g[0]===m[0]&&g[1]===m[1]||g[0]===t[0]&&g[1]===t[1]||g[0]===e[0]&&g[1]===e[1]||g[0]===z[0]&&g[1]===z[1]))return!0}p=k.length;if(!(3>p))for(l=0;l<=p-2;l++)for(m=k[l],e=k[l+1],b=l+2;b<=p-2;b++)if(t=k[b],z=k[b+1],(C=f(m,e,t,z,g))&&!(g[0]===m[0]&&g[1]===m[1]||g[0]===t[0]&&g[1]===t[1]||g[0]===e[0]&&g[1]===e[1]||g[0]===z[0]&&
g[1]===z[1]))return!0}return!1}})},"esri/arcade/functions/geomsync":function(){define("require exports ../../kernel ../kernel ../languageUtils ./centroid ../../geometry/Extent ../../geometry/Geometry ../../geometry/Multipoint ../../geometry/Point ../../geometry/Polygon ../../geometry/Polyline ../../geometry/jsonUtils ../executionError".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,k,l){function m(b){return 0===c.version.indexOf("4.")?a.fromExtent(b):new a({spatialReference:b.spatialReference,rings:[[[b.xmin,
b.ymin],[b.xmin,b.ymax],[b.xmax,b.ymax],[b.xmax,b.ymin],[b.xmin,b.ymin]]]})}Object.defineProperty(x,"__esModule",{value:!0});x.registerFunctions=x.setGeometryEngine=void 0;var e=null;x.setGeometryEngine=function(b){e=b};x.registerFunctions=function(b,p){function t(z,C,y){h.pcCheck(y,2,2,z,C);if(!(y[0]instanceof n&&y[1]instanceof n||y[0]instanceof n&&null===y[1]||y[1]instanceof n&&null===y[0]||null===y[0]&&null===y[1]))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);}b.disjoint=
function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);t(z,C,B);return null===B[0]||null===B[1]?!0:e.disjoint(B[0],B[1])})};b.intersects=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);t(z,C,B);return null===B[0]||null===B[1]?!1:e.intersects(B[0],B[1])})};b.touches=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);t(z,C,B);return null===B[0]||null===B[1]?!1:e.touches(B[0],B[1])})};b.crosses=function(z,C){return p(z,C,function(y,
D,B){B=h.autoCastFeatureToGeometry(B);t(z,C,B);return null===B[0]||null===B[1]?!1:e.crosses(B[0],B[1])})};b.within=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);t(z,C,B);return null===B[0]||null===B[1]?!1:e.within(B[0],B[1])})};b.contains=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);t(z,C,B);return null===B[0]||null===B[1]?!1:e.contains(B[0],B[1])})};b.overlaps=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);
t(z,C,B);return null===B[0]||null===B[1]?!1:e.overlaps(B[0],B[1])})};b.equals=function(z,C){return p(z,C,function(y,D,B){h.pcCheck(B,2,2,z,C);return B[0]===B[1]?!0:B[0]instanceof n&&B[1]instanceof n?e.equals(B[0],B[1]):h.isDate(B[0])&&h.isDate(B[1])?B[0].equals(B[1]):!1})};b.relate=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,3,3,z,C);if(B[0]instanceof n&&B[1]instanceof n)return e.relate(B[0],B[1],h.toString(B[2]));if(B[0]instanceof n&&null===B[1]||B[1]instanceof
n&&null===B[0]||null===B[0]&&null===B[1])return!1;throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);})};b.intersection=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);t(z,C,B);return null===B[0]||null===B[1]?null:e.intersect(B[0],B[1])})};b.union=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);y=[];if(0===B.length)throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.WrongNumberOfParameters,C);if(1===B.length)if(h.isArray(B[0]))for(B=
h.autoCastFeatureToGeometry(B[0]),D=0;D<B.length;D++){if(null!==B[D]){if(!(B[D]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);y.push(B[D])}}else if(h.isImmutableArray(B[0]))for(B=h.autoCastFeatureToGeometry(B[0].toArray()),D=0;D<B.length;D++){if(null!==B[D]){if(!(B[D]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);y.push(B[D])}}else{if(B[0]instanceof n)return h.fixSpatialReference(r.cloneGeometry(B[0]),z.spatialReference);
if(null===B[0])return null;throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);}else for(D=0;D<B.length;D++)if(null!==B[D]){if(!(B[D]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);y.push(B[D])}return 0===y.length?null:e.union(y)})};b.difference=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);t(z,C,B);return null!==B[0]&&null===B[1]?r.cloneGeometry(B[0]):null===B[0]?null:e.difference(B[0],B[1])})};b.symmetricdifference=
function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);t(z,C,B);return null===B[0]&&null===B[1]?null:null===B[0]?r.cloneGeometry(B[1]):null===B[1]?r.cloneGeometry(B[0]):e.symmetricDifference(B[0],B[1])})};b.clip=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,2,2,z,C);if(!(B[1]instanceof q)&&null!==B[1])throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);if(null===B[0])return null;if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,
l.ExecutionErrorCodes.InvalidParameter,C);return null===B[1]?null:e.clip(B[0],B[1])})};b.cut=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,2,2,z,C);if(!(B[1]instanceof d)&&null!==B[1])throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);if(null===B[0])return[];if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return null===B[1]?[r.cloneGeometry(B[0])]:e.cut(B[0],B[1])})};b.area=function(z,
C){return p(z,C,function(y,D,B){h.pcCheck(B,1,2,z,C);B=h.autoCastFeatureToGeometry(B);if(null===B[0])return 0;if(h.isArray(B[0])||h.isImmutableArray(B[0]))return y=h.autoCastArrayOfPointsToPolygon(B[0],z.spatialReference),null===y?0:e.planarArea(y,r.convertSquareUnitsToCode(h.defaultUndefined(B[1],-1)));if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return e.planarArea(B[0],r.convertSquareUnitsToCode(h.defaultUndefined(B[1],-1)))})};b.areageodetic=
function(z,C){return p(z,C,function(y,D,B){h.pcCheck(B,1,2,z,C);B=h.autoCastFeatureToGeometry(B);if(null===B[0])return 0;if(h.isArray(B[0])||h.isImmutableArray(B[0]))return y=h.autoCastArrayOfPointsToPolygon(B[0],z.spatialReference),null===y?0:e.geodesicArea(y,r.convertSquareUnitsToCode(h.defaultUndefined(B[1],-1)));if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return e.geodesicArea(B[0],r.convertSquareUnitsToCode(h.defaultUndefined(B[1],-1)))})};
b.length=function(z,C){return p(z,C,function(y,D,B){h.pcCheck(B,1,2,z,C);B=h.autoCastFeatureToGeometry(B);if(null===B[0])return 0;if(h.isArray(B[0])||h.isImmutableArray(B[0]))return y=h.autoCastArrayOfPointsToPolyline(B[0],z.spatialReference),null===y?0:e.planarLength(y,r.convertLinearUnitsToCode(h.defaultUndefined(B[1],-1)));if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return e.planarLength(B[0],r.convertLinearUnitsToCode(h.defaultUndefined(B[1],
-1)))})};b.length3d=function(z,C){return p(z,C,function(y,D,B){h.pcCheck(B,1,2,z,C);B=h.autoCastFeatureToGeometry(B);if(null===B[0])return 0;if(h.isArray(B[0])||h.isImmutableArray(B[0]))return y=h.autoCastArrayOfPointsToPolyline(B[0],z.spatialReference),null===y?0:e.planarLength(y,r.convertLinearUnitsToCode(h.defaultUndefined(B[1],-1)));if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return e.planarLength(B[0],r.convertLinearUnitsToCode(h.defaultUndefined(B[1],
-1)))})};b.lengthgeodetic=function(z,C){return p(z,C,function(y,D,B){h.pcCheck(B,1,2,z,C);B=h.autoCastFeatureToGeometry(B);if(null===B[0])return 0;if(h.isArray(B[0])||h.isImmutableArray(B[0]))return y=h.autoCastArrayOfPointsToPolyline(B[0],z.spatialReference),null===y?0:e.geodesicLength(y,r.convertLinearUnitsToCode(h.defaultUndefined(B[1],-1)));if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return e.geodesicLength(B[0],r.convertLinearUnitsToCode(h.defaultUndefined(B[1],
-1)))})};b.distance=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,2,3,z,C);y=B[0];if(h.isArray(B[0])||h.isImmutableArray(B[0]))y=h.autoCastArrayOfPointsToMultiPoint(B[0],z.spatialReference);D=B[1];if(h.isArray(B[1])||h.isImmutableArray(B[1]))D=h.autoCastArrayOfPointsToMultiPoint(B[1],z.spatialReference);if(!(y instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);if(!(D instanceof n))throw new l.ArcadeExecutionError(z,
l.ExecutionErrorCodes.InvalidParameter,C);return e.distance(y,D,r.convertLinearUnitsToCode(h.defaultUndefined(B[2],-1)))})};b.distancegeodetic=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,2,3,z,C);y=B[0];D=B[1];if(!(y instanceof g))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);if(!(D instanceof g))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);var u=new d({paths:[],spatialReference:y.spatialReference});
u.addPath([y,D]);return e.geodesicLength(u,r.convertLinearUnitsToCode(h.defaultUndefined(B[2],-1)))})};b.densify=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,2,3,z,C);if(null===B[0])return null;if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);y=h.toNumber(B[1]);if(isNaN(y))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);if(0>=y)throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,
C);return B[0]instanceof a||B[0]instanceof d?e.densify(B[0],y,r.convertLinearUnitsToCode(h.defaultUndefined(B[2],-1))):B[0]instanceof q?e.densify(m(B[0]),y,r.convertLinearUnitsToCode(h.defaultUndefined(B[2],-1))):B[0]})};b.densifygeodetic=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,2,3,z,C);if(null===B[0])return null;if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);y=h.toNumber(B[1]);if(isNaN(y))throw new l.ArcadeExecutionError(z,
l.ExecutionErrorCodes.InvalidParameter,C);if(0>=y)throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return B[0]instanceof a||B[0]instanceof d?e.geodesicDensify(B[0],y,r.convertLinearUnitsToCode(h.defaultUndefined(B[2],-1))):B[0]instanceof q?e.geodesicDensify(m(B[0]),y,r.convertLinearUnitsToCode(h.defaultUndefined(B[2],-1))):B[0]})};b.generalize=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,2,4,z,C);if(null===B[0])return null;if(!(B[0]instanceof
n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);y=h.toNumber(B[1]);if(isNaN(y))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return e.generalize(B[0],y,h.toBoolean(h.defaultUndefined(B[2],!0)),r.convertLinearUnitsToCode(h.defaultUndefined(B[3],-1)))})};b.buffer=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,2,3,z,C);if(null===B[0])return null;if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,
l.ExecutionErrorCodes.InvalidParameter,C);y=h.toNumber(B[1]);if(isNaN(y))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return 0===y?r.cloneGeometry(B[0]):e.buffer(B[0],y,r.convertLinearUnitsToCode(h.defaultUndefined(B[2],-1)))})};b.buffergeodetic=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,2,3,z,C);if(null===B[0])return null;if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);
y=h.toNumber(B[1]);if(isNaN(y))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return 0===y?r.cloneGeometry(B[0]):e.geodesicBuffer(B[0],y,r.convertLinearUnitsToCode(h.defaultUndefined(B[2],-1)))})};b.offset=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,2,6,z,C);if(null===B[0])return null;if(!(B[0]instanceof a||B[0]instanceof d))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);y=h.toNumber(B[1]);if(isNaN(y))throw new l.ArcadeExecutionError(z,
l.ExecutionErrorCodes.InvalidParameter,C);D=h.toNumber(h.defaultUndefined(B[4],10));if(isNaN(D))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);var u=h.toNumber(h.defaultUndefined(B[5],0));if(isNaN(u))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return e.offset(B[0],y,r.convertLinearUnitsToCode(h.defaultUndefined(B[2],-1)),h.toString(h.defaultUndefined(B[3],"round")).toLowerCase(),D,u)})};b.rotate=function(z,C){return p(z,C,function(y,D,
B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,2,3,z,C);y=B[0];if(null===y)return null;if(!(y instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);y instanceof q&&(y=a.fromExtent(y));D=h.toNumber(B[1]);if(isNaN(D))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);B=h.defaultUndefined(B[2],null);if(null===B)return e.rotate(y,D);if(B instanceof g)return e.rotate(y,D,B);throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,
C);})};b.centroid=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,1,1,z,C);if(null===B[0])return null;y=B[0];if(h.isArray(B[0])||h.isImmutableArray(B[0]))y=h.autoCastArrayOfPointsToMultiPoint(B[0],z.spatialReference);if(null===y)return null;if(!(y instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return y instanceof g?h.fixSpatialReference(r.cloneGeometry(B[0]),z.spatialReference):y instanceof a?y.getCentroid():y instanceof
d?w.centroidPolyline(y):y instanceof f?w.centroidMultiPoint(y):y instanceof q?y.getCenter():null})};b.multiparttosinglepart=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,1,1,z,C);D=[];if(null===B[0])return null;if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);if(B[0]instanceof g||B[0]instanceof q)return[h.fixSpatialReference(r.cloneGeometry(B[0]),z.spatialReference)];y=e.simplify(B[0]);if(y instanceof a){D=
[];var u=[];for(B=0;B<y.rings.length;B++)if(y.isClockwise(y.rings[B])){var E=k.fromJson({rings:[y.rings[B]],hasZ:!0===y.hasZ,hasM:!0===y.hasM,spatialReference:y.spatialReference.toJson()});D.push(E)}else u.push({ring:y.rings[B],pt:y.getPoint(B,0)});for(y=0;y<u.length;y++)for(B=0;B<D.length;B++)if(D[B].contains(u[y].pt)){D[B].addRing(u[y].ring);break}return D}if(y instanceof d){D=[];for(B=0;B<y.paths.length;B++)u=k.fromJson({paths:[y.paths[B]],hasZ:!0===y.hasZ,hasM:!0===y.hasM,spatialReference:y.spatialReference.toJson()}),
D.push(u);return D}if(B[0]instanceof f){y=h.fixSpatialReference(r.cloneGeometry(B[0]),z.spatialReference);for(B=0;B<y.points.length;B++)D.push(y.getPoint(B));return D}return null})};b.issimple=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,1,1,z,C);if(null===B[0])return!0;if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return e.isSimple(B[0])})};b.simplify=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);
h.pcCheck(B,1,1,z,C);if(null===B[0])return null;if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return e.simplify(B[0])})};b.convexhull=function(z,C){return p(z,C,function(y,D,B){B=h.autoCastFeatureToGeometry(B);h.pcCheck(B,1,1,z,C);if(null===B[0])return null;if(!(B[0]instanceof n))throw new l.ArcadeExecutionError(z,l.ExecutionErrorCodes.InvalidParameter,C);return e.convexHull(B[0])})}}})},"esri/arcade/kernel":function(){define(["require","exports",
"../geometry/Extent","../geometry/jsonUtils"],function(G,x,c,r){Object.defineProperty(x,"__esModule",{value:!0});x.cloneGeometry=x.sameGeomType=x.convertLinearUnitsToCode=x.shapeExtent=x.convertSquareUnitsToCode=void 0;x.convertSquareUnitsToCode=function(h){if(null==h)return null;if("number"===typeof h)return h;h=h.toLowerCase();h=h.replace(/\s/g,"");h=h.replace(/-/g,"");switch(h){case "meters":case "meter":case "m":case "squaremeters":case "squaremeter":return 109404;case "miles":case "mile":case "squaremile":case "squaremiles":return 109439;
case "kilometers":case "kilometer":case "squarekilometers":case "squarekilometer":case "km":return 109414;case "acres":case "acre":case "ac":return 109402;case "hectares":case "hectare":case "ha":return 109401;case "yard":case "yd":case "yards":case "squareyards":case "squareyard":return 109442;case "feet":case "ft":case "foot":case "squarefeet":case "squarefoot":return 109405;case "nmi":case "nauticalmile":case "nauticalmiles":case "squarenauticalmile":case "squarenauticalmiles":return 109409}return null};
x.shapeExtent=function(h){if(null==h)return null;switch(h.type){case "polygon":case "multipoint":case "polyline":return h.extent;case "point":return new c({xmin:h.x,ymin:h.y,xmax:h.x,ymax:h.y,spatialReference:h.spatialReference});case "extent":return h}return null};x.convertLinearUnitsToCode=function(h){if(null==h)return null;if("number"===typeof h)return h;h=h.toLowerCase();h=h.replace(/\s/g,"");h=h.replace(/-/g,"");switch(h){case "meters":case "meter":case "m":case "squaremeters":case "squaremeter":return 9001;
case "miles":case "mile":case "squaremile":case "squaremiles":return 9093;case "kilometers":case "kilometer":case "squarekilometers":case "squarekilometer":case "km":return 9036;case "yard":case "yd":case "yards":case "squareyards":case "squareyard":return 9096;case "feet":case "ft":case "foot":case "squarefeet":case "squarefoot":return 9002;case "nmi":case "nauticalmile":case "nauticalmiles":case "squarenauticalmile":case "squarenauticalmiles":return 9030}return null};x.sameGeomType=function(h,w){return h===
w||"point"===h&&"esriGeometryPoint"===w||"polyline"===h&&"esriGeometryPolyline"===w||"polygon"===h&&"esriGeometryPolygon"===w||"extent"===h&&"esriGeometryEnvelope"===w||"multipoint"===h&&"esriGeometryMultipoint"===w||"point"===w&&"esriGeometryPoint"===h||"polyline"===w&&"esriGeometryPolyline"===h||"polygon"===w&&"esriGeometryPolygon"===h||"extent"===w&&"esriGeometryEnvelope"===h||"multipoint"===w&&"esriGeometryMultipoint"===h?!0:!1};x.cloneGeometry=function(h){if(null==h)return null;var w=r.fromJson(h.toJson());
h.getCacheValue("_geVersion")&&w.setCacheValue("_geVersion",h.getCacheValue("_geVersion"));return w}})},"esri/arcade/functions/maths":function(){define("require exports ../polyfill/tsSupport/assign ../polyfill/tsSupport/spreadarray ../languageUtils dojo/number".split(" "),function(G,x,c,r,h,w){function q(n,f,g){if("undefined"===typeof g||0===+g)return Math[n](f);f=+f;g=+g;if(isNaN(f)||"number"!==typeof g||0!==g%1)return NaN;f=f.toString().split("e");f=Math[n](+(f[0]+"e"+(f[1]?+f[1]-g:-g)));f=f.toString().split("e");
return+(f[0]+"e"+(f[1]?+f[1]+g:g))}Object.defineProperty(x,"__esModule",{value:!0});x.registerFunctions=void 0;x.registerFunctions=function(n,f){function g(a,d,k){a=h.toNumber(a);return isNaN(a)?a:isNaN(d)||isNaN(k)||d>k?NaN:a<d?d:a>k?k:a}n.number=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,2,a,d);k=m[0];return h.isNumber(k)?k:null===k?0:h.isDate(k)?k.toNumber():h.isBoolean(k)?Number(k):h.isArray(k)?NaN:""===k||void 0===k?Number(k):h.isString(k)?void 0!==m[1]?(m=h.multiReplace(m[1],"\u2030",
""),m=h.multiReplace(m,"\u00a4",""),w.parse(k,{pattern:m})):Number(k.trim()):Number(k)})};n.abs=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,1,a,d);return Math.abs(h.toNumber(m[0]))})};n.acos=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,1,a,d);return Math.acos(h.toNumber(m[0]))})};n.asin=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,1,a,d);return Math.asin(h.toNumber(m[0]))})};n.atan=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,1,a,d);return Math.atan(h.toNumber(m[0]))})};
n.atan2=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,2,2,a,d);return Math.atan2(h.toNumber(m[0]),h.toNumber(m[1]))})};n.ceil=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,2,a,d);return 2===m.length?(k=h.toNumber(m[1]),isNaN(k)&&(k=0),q("ceil",h.toNumber(m[0]),-1*k)):Math.ceil(h.toNumber(m[0]))})};n.round=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,2,a,d);return 2===m.length?(k=h.toNumber(m[1]),isNaN(k)&&(k=0),q("round",h.toNumber(m[0]),-1*k)):Math.round(h.toNumber(m[0]))})};
n.floor=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,2,a,d);return 2===m.length?(k=h.toNumber(m[1]),isNaN(k)&&(k=0),q("floor",h.toNumber(m[0]),-1*k)):Math.floor(h.toNumber(m[0]))})};n.cos=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,1,a,d);return Math.cos(h.toNumber(m[0]))})};n.isnan=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,1,a,d);return"number"===typeof m[0]&&isNaN(m[0])})};n.exp=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,1,a,d);return Math.exp(h.toNumber(m[0]))})};
n.log=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,1,a,d);return Math.log(h.toNumber(m[0]))})};n.pow=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,2,2,a,d);return Math.pow(h.toNumber(m[0]),h.toNumber(m[1]))})};n.random=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,0,0,a,d);return Math.random()})};n.sin=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,1,a,d);return Math.sin(h.toNumber(m[0]))})};n.sqrt=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,1,
a,d);return Math.sqrt(h.toNumber(m[0]))})};n.tan=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,1,a,d);return Math.tan(h.toNumber(m[0]))})};n.defaultvalue=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,2,2,a,d);return null===m[0]||""===m[0]||void 0===m[0]?m[1]:m[0]})};n.isempty=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,1,a,d);return null===m[0]||""===m[0]||void 0===m[0]?!0:!1})};n["boolean"]=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,1,1,a,d);return h.toBoolean(m[0])})};
n.constrain=function(a,d){return f(a,d,function(k,l,m){h.pcCheck(m,3,3,a,d);k=h.toNumber(m[1]);l=h.toNumber(m[2]);if(h.isArray(m[0])){var e=[],b=0;for(m=m[0];b<m.length;b++)e.push(g(m[b],k,l));return e}if(h.isImmutableArray(m[0])){e=[];for(b=0;b<m[0].length();b++)e.push(g(m[0].get(b),k,l));return e}return g(m[0],k,l)})}}})},"esri/arcade/functions/stats":function(){define(["require","exports","../executionError","../languageUtils","./fieldStats"],function(G,x,c,r,h){function w(q,n,f,g){if(1===g.length){if(r.isArray(g[0]))return h.calculateStat(q,
g[0],-1);if(r.isImmutableArray(g[0]))return h.calculateStat(q,g[0].toArray(),-1)}return h.calculateStat(q,g,-1)}Object.defineProperty(x,"__esModule",{value:!0});x.registerFunctions=void 0;x.registerFunctions=function(q,n){q.stdev=function(f,g){return n(f,g,function(a,d,k){return w("stdev",a,d,k)})};q.variance=function(f,g){return n(f,g,function(a,d,k){return w("variance",a,d,k)})};q.average=function(f,g){return n(f,g,function(a,d,k){return w("mean",a,d,k)})};q.mean=function(f,g){return n(f,g,function(a,
d,k){return w("mean",a,d,k)})};q.sum=function(f,g){return n(f,g,function(a,d,k){return w("sum",a,d,k)})};q.min=function(f,g){return n(f,g,function(a,d,k){return w("min",a,d,k)})};q.max=function(f,g){return n(f,g,function(a,d,k){return w("max",a,d,k)})};q.distinct=function(f,g){return n(f,g,function(a,d,k){return w("distinct",a,d,k)})};q.count=function(f,g){return n(f,g,function(a,d,k){r.pcCheck(k,1,1,f,g);if(r.isArray(k[0])||r.isString(k[0]))return k[0].length;if(r.isImmutableArray(k[0]))return k[0].length();
throw new c.ArcadeExecutionError(f,c.ExecutionErrorCodes.InvalidParameter,g);})}}})},"esri/arcade/functions/fieldStats":function(){define(["require","exports","../languageUtils"],function(G,x,c){function r(w){for(var q=0,n=0;n<w.length;n++)q+=w[n];return q/w.length}function h(w){for(var q=r(w),n=0,f=0;f<w.length;f++)n+=Math.pow(q-w[f],2);return n/w.length}Object.defineProperty(x,"__esModule",{value:!0});x.calculateStat=x.decodeStatType=void 0;x.decodeStatType=function(w){switch(w.toLowerCase()){case "distinct":return"distinct";
case "avg":case "mean":return"avg";case "min":return"min";case "sum":return"sum";case "max":return"max";case "stdev":case "stddev":return"stddev";case "var":case "variance":return"var";case "count":return"count"}return""};x.calculateStat=function(w,q,n){void 0===n&&(n=1E3);switch(w.toLowerCase()){case "distinct":a:{w=n;n=[];for(var f={},g=[],a=0;a<q.length;a++){if(void 0!==q[a]&&null!==q[a]&&q[a]!==c.voidOperation){var d=q[a];if(c.isNumber(d)||c.isString(d))void 0===f[d]&&(n.push(d),f[d]=1);else{for(var k=
!1,l=0;l<g.length;l++)!0===c.equalityTest(g[l],d)&&(k=!0);!1===k&&(g.push(d),n.push(d))}}if(n.length>=w&&-1!==w){q=n;break a}}q=n}return q;case "avg":case "mean":return r(c.toNumberArray(q));case "min":return Math.min.apply(Math,c.toNumberArray(q));case "sum":q=c.toNumberArray(q);for(n=w=0;n<q.length;n++)w+=q[n];return w;case "max":return Math.max.apply(Math,c.toNumberArray(q));case "stdev":case "stddev":return Math.sqrt(h(c.toNumberArray(q)));case "var":case "variance":return h(c.toNumberArray(q));
case "count":return q.length}return 0}})},"esri/arcade/functions/string":function(){define("require exports ../polyfill/tsSupport/assign ../polyfill/tsSupport/spreadarray ../ArcadePortal ../Attachment ../Dictionary ../executionError ../languageUtils ../featureset/support/shared ./convertdirection ./hash ../../geometry/Extent ../../geometry/Multipoint ../../geometry/Point ../../geometry/Polygon ../../geometry/Polyline ../../SpatialReference ../../arcgis/Portal".split(" "),function(G,x,c,r,h,w,q,n,
f,g,a,d,k,l,m,e,b,p,t){function z(y,D){return y&&D?y.x===D.x&&y.y===D.y?!0:!1:y===D}function C(y,D,B){if(null===y)D.updateUint8Array([0,139]);else if(f.isArray(y)){D.updateUint8Array([61]);if(B.map.has(y))y=B.map.get(y),D.updateIntArray([y^61237541]);else{B.map.set(y,B.currentLength++);for(var u=0;u<y.length;u++){var E=y[u];C(E,D,B)}B.map.delete(y);B.currentLength--}D.updateUint8Array([199])}else if(f.isImmutableArray(y)){D.updateUint8Array([61]);if(B.map.has(y))y=B.map.get(y),D.updateIntArray([y^
61237541]);else{B.map.set(y,B.currentLength++);u=0;for(var v=y.toArray();u<v.length;u++)E=v[u],C(E,D,B);B.map.delete(y);B.currentLength--}D.updateUint8Array([199])}else if(f.isDate(y))D.updateIntArray([y.toNumber()]),D.updateUint8Array([241]);else if(f.isString(y))D.updateIntArray([y.length]),D.updateWithString(y),D.updateUint8Array([41]);else if(f.isBoolean(y))D.updateUint8Array([!0===y?1:0,113]);else if(f.isNumber(y))D.updateFloatArray([y]),D.updateUint8Array([173]);else{if(y instanceof w)throw new n.ArcadeExecutionError(B.context,
n.ExecutionErrorCodes.UnsupportedHashType,B.node);if(y instanceof h)throw new n.ArcadeExecutionError(B.context,n.ExecutionErrorCodes.UnsupportedHashType,B.node);if(y instanceof q){D.updateUint8Array([223]);if(B.map.has(y))y=B.map.get(y),D.updateIntArray([y^61237541]);else{B.map.set(y,B.currentLength++);u=0;for(v=y.keys();u<v.length;u++)E=v[u],D.updateIntArray([E.length]),D.updateWithString(E),D.updateUint8Array([251]),E=y.field(E),C(E,D,B),D.updateUint8Array([239]);B.map.delete(y);B.currentLength--}D.updateUint8Array([73])}else{if(f.isFeature(y))throw new n.ArcadeExecutionError(B.context,
n.ExecutionErrorCodes.UnsupportedHashType,B.node);if(y instanceof m)D.updateIntArray([3833836621]),D.updateIntArray([0]),D.updateFloatArray([y.x]),D.updateIntArray([1]),D.updateFloatArray([y.y]),D.updateIntArray([3765347959]),C(y.spatialReference.wkid,D,B);else if(y instanceof e){D.updateIntArray([1266616829]);for(u=0;u<y.rings.length;u++){v=y.rings[u];var A=[],F=null,I=null;for(E=0;E<v.length;E++){var N=y.getPoint(u,E);if(0===E)F=N;else if(z(I,N))continue;I=N;E===v.length-1&&z(F,N)||A.push(N)}D.updateIntArray([1397116793,
A.length]);for(E=0;E<A.length;E++)N=A[E],D.updateIntArray([3962308117,E]),C(N,D,B),D.updateIntArray([2716288009]);D.updateIntArray([2278822459])}D.updateIntArray([3878477243]);C(y.spatialReference.wkid,D,B)}else if(y instanceof b){D.updateIntArray([4106883559]);for(u=0;u<y.paths.length;u++){v=y.paths[u];D.updateIntArray([1397116793,v.length]);for(E=0;E<v.length;E++)D.updateIntArray([3962308117,E]),C(y.getPoint(u,E),D,B),D.updateIntArray([2716288009]);D.updateIntArray([2278822459])}D.updateIntArray([2568784753]);
C(y.spatialReference.wkid,D,B)}else if(y instanceof l){D.updateIntArray([588535921,y.points.length]);for(E=0;E<y.points.length;E++)u=y.getPoint(E),D.updateIntArray([E]),C(u,D,B);D.updateIntArray([1700171621]);C(y.spatialReference.wkid,D,B)}else if(y instanceof k)D.updateIntArray([3483648373]),D.updateIntArray([0]),D.updateFloatArray([y.xmax]),D.updateIntArray([1]),D.updateFloatArray([y.xmin]),D.updateIntArray([2]),D.updateFloatArray([y.ymax]),D.updateIntArray([3]),D.updateFloatArray([y.ymin]),D.updateIntArray([3622027469]),
C(y.spatialReference.wkid,D,B);else if(y instanceof p)D.updateIntArray([14]),void 0!==y.wkid&&null!==y.wkid&&D.updateIntArray([y.wkid]),y.wkt&&D.updateWithString(y.wkt);else{if(f.isFunctionParameter(y))throw new n.ArcadeExecutionError(B.context,n.ExecutionErrorCodes.UnsupportedHashType,B.node);if(f.isFeatureSet(y))throw new n.ArcadeExecutionError(B.context,n.ExecutionErrorCodes.UnsupportedHashType,B.node);f.isFeatureSetCollection(y);throw new n.ArcadeExecutionError(B.context,n.ExecutionErrorCodes.UnsupportedHashType,
B.node);}}}}Object.defineProperty(x,"__esModule",{value:!0});x.registerFunctions=void 0;x.registerFunctions=function(y,D){y.portal=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,1,B,u);return new h(f.toString(A[0]))})};y.typeof=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,1,B,u);E=f.getType(A[0]);if("Unrecognised Type"===E)throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.UnrecognisedType,u);return E})};y.trim=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,1,
B,u);return f.toString(A[0]).trim()})};y.tohex=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,1,B,u);E=f.toNumber(A[0]);return isNaN(E)?E:E.toString(16)})};y.upper=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,1,B,u);return f.toString(A[0]).toUpperCase()})};y.proper=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,2,B,u);E=1;2===A.length&&"firstword"===f.toString(A[1]).toLowerCase()&&(E=2);v=/\s/;A=f.toString(A[0]);for(var F="",I=!0,N=0;N<A.length;N++){var da=A[N];v.test(da)?
1===E&&(I=!0):da.toUpperCase()!==da.toLowerCase()&&(I?(da=da.toUpperCase(),I=!1):da=da.toLowerCase());F+=da}return F})};y.lower=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,1,B,u);return f.toString(A[0]).toLowerCase()})};y.guid=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,0,1,B,u);if(0<A.length)switch(f.toString(A[0]).toLowerCase()){case "digits":return f.generateUUID().replace("-","").replace("-","").replace("-","").replace("-","");case "digits-hyphen":return f.generateUUID();
case "digits-hyphen-parentheses":return"("+f.generateUUID()+")"}return"{"+f.generateUUID()+"}"})};y.standardizeguid=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,2,2,B,u);E=f.toString(A[0]);if(""===E||null===E)return"";E=/^(\{|\()?([0-9a-z]{8})(\-?)([0-9a-z]{4})(\-?)([0-9a-z]{4})(\-?)([0-9a-z]{4})(\-?)([0-9a-z]{12})(\}|\))?$/gim.exec(E);if(!E)return"";v=[];for(var F=1;F<E.length;F++){var I=E[F];void 0!==I&&""!==I&&null!==I&&0>["-","}","{","(",")"].indexOf(I)&&v.push(I)}if(5!==v.length)return"";
E=v[0]+"-"+v[1]+"-"+v[2]+"-"+v[3]+"-"+v[4];switch(f.toString(A[1]).toLowerCase()){case "digits":return E.replace("-","").replace("-","").replace("-","").replace("-","");case "digits-hyphen":return E;case "digits-hyphen-parentheses":return"("+E+")"}return"{"+E+"}"})};y.console=function(B,u){return D(B,u,function(E,v,A){0!==A.length&&(1===A.length?B.console(f.toString(A[0])):B.console(f.toString(A)));return f.voidOperation})};y.mid=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,2,3,B,u);E=f.toNumber(A[1]);
if(isNaN(E))return"";0>E&&(E=0);if(2===A.length)return f.toString(A[0]).substr(E);v=f.toNumber(A[2]);if(isNaN(v))return"";0>v&&(v=0);return f.toString(A[0]).substr(E,v)})};y.find=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,2,3,B,u);E=0;if(2<A.length){E=f.toNumber(f.defaultUndefined(A[2],0));if(isNaN(E))return-1;0>E&&(E=0)}return f.toString(A[1]).indexOf(f.toString(A[0]),E)})};y.left=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,2,2,B,u);E=f.toNumber(A[1]);if(isNaN(E))return"";
0>E&&(E=0);return f.toString(A[0]).substr(0,E)})};y.right=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,2,2,B,u);E=f.toNumber(A[1]);if(isNaN(E))return"";0>E&&(E=0);return f.toString(A[0]).substr(-1*E,E)})};y.split=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,2,4,B,u);E=f.toNumber(f.defaultUndefined(A[2],-1));v=f.toBoolean(f.defaultUndefined(A[3],!1));-1===E||null===E||!0===v?A=f.toString(A[0]).split(f.toString(A[1])):(isNaN(E)&&(E=-1),-1>E&&(E=-1),A=f.toString(A[0]).split(f.toString(A[1]),
E));if(!1===v)return A;v=[];for(var F=0;F<A.length&&!(-1!==E&&v.length>=E);F++)""!==A[F]&&void 0!==A[F]&&v.push(A[F]);return v})};y.text=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,2,B,u);return f.toStringExplicit(A[0],A[1])})};y.concatenate=function(B,u){return D(B,u,function(E,v,A){E=[];if(1>A.length)return"";if(f.isArray(A[0])){v=f.defaultUndefined(A[2],"");for(var F=0;F<A[0].length;F++)E[F]=f.toStringExplicit(A[0][F],v);return 1<A.length?E.join(A[1]):E.join("")}if(f.isImmutableArray(A[0])){v=
f.defaultUndefined(A[2],"");for(F=0;F<A[0].length();F++)E[F]=f.toStringExplicit(A[0].get(F),v);return 1<A.length?E.join(A[1]):E.join("")}for(F=0;F<A.length;F++)E[F]=f.toStringExplicit(A[F]);return E.join("")})};y.reverse=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,1,B,u);if(f.isArray(A[0]))return E=A[0].slice(0),E.reverse(),E;if(f.isImmutableArray(A[0]))return E=A[0].toArray().slice(0),E.reverse(),E;throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.InvalidParameter,u);})};y.replace=
function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,3,4,B,u);E=f.toString(A[0]);v=f.toString(A[1]);var F=f.toString(A[2]);return(4===A.length?f.toBoolean(A[3]):1)?f.multiReplace(E,v,F):E.replace(v,F)})};y.schema=function(B,u){return D(B,u,function(E,v,A){if(f.isFeature(A[0]))return(E=f.featureSchema(A[0]))?q.convertObjectToArcadeDictionary(E,f.defaultTimeZone(B)):null;throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.InvalidParameter,u);})};y.subtypes=function(B,u){return D(B,u,function(E,
v,A){f.pcCheck(A,1,1,B,u);if(f.isFeature(A[0]))return(E=f.featureSubtypes(A[0]))?q.convertObjectToArcadeDictionary(E,f.defaultTimeZone(B)):null;throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.InvalidParameter,u);})};y.subtypecode=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,1,B,u);if(f.isFeature(A[0])){v=f.featureSubtypes(A[0]);if(!v)return null;if(v.subtypeField&&A[0].hasField(v.subtypeField))for(A=A[0].field(v.subtypeField),E=0,v=v.subtypes;E<v.length;E++){var F=v[E];if(F.code===
A)return F.code}return null}throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.InvalidParameter,u);})};y.subtypename=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,1,B,u);if(f.isFeature(A[0])){v=f.featureSubtypes(A[0]);if(!v)return"";if(v.subtypeField&&A[0].hasField(v.subtypeField))for(A=A[0].field(v.subtypeField),E=0,v=v.subtypes;E<v.length;E++){var F=v[E];if(F.code===A)return F.name}return""}throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.InvalidParameter,u);})};y.gdbversion=
function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,1,B,u);if(f.isFeature(A[0]))return A[0].gdbVersion();throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.InvalidParameter,u);})};y.domain=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,2,3,B,u);if(f.isFeature(A[0]))return(E=f.featureFullDomain(A[0],f.toString(A[1]),void 0===A[2]?void 0:f.toNumber(A[2])))&&E.domain?"coded-value"===E.domain.type||"codedValue"===E.domain.type?q.convertObjectToArcadeDictionary({type:"codedValue",name:E.domain.name,
dataType:g.layerFieldEsriConstants[E.field.type],codedValues:E.domain.codedValues.map(function(F){return{name:F.name,code:F.code}})},f.defaultTimeZone(B)):q.convertObjectToArcadeDictionary({type:"range",name:E.domain.name,dataType:g.layerFieldEsriConstants[E.field.type],min:E.domain.min,max:E.domain.max},f.defaultTimeZone(B)):null;throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.InvalidParameter,u);})};y.domainname=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,2,4,B,u);if(f.isFeature(A[0]))return f.featureDomainValueLookup(A[0],
f.toString(A[1]),A[2],void 0===A[3]?void 0:f.toNumber(A[3]));throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.InvalidParameter,u);})};y.domaincode=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,2,4,B,u);if(f.isFeature(A[0]))return f.featureDomainCodeLookup(A[0],f.toString(A[1]),A[2],void 0===A[3]?void 0:f.toNumber(A[3]));throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.InvalidParameter,u);})};y.urlencode=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,1,B,u);if(null===
A[0])return"";if(A[0]instanceof q){E="";v=0;for(var F=A[0].keys();v<F.length;v++){var I=F[v],N=A[0].field(I);""!==E&&(E+="\x26");E=null===N?E+(encodeURIComponent(I)+"\x3d"):E+(encodeURIComponent(I)+"\x3d"+encodeURIComponent(N))}return E}return encodeURIComponent(f.toString(A[0]))})};y.hash=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,1,B,u);E=new d.XXH(0);C(A[0],E,{context:B,node:u,map:new Map,currentLength:0});return E.digest()})};y.convertdirection=function(B,u){return D(B,u,function(E,
v,A){f.pcCheck(A,3,3,B,u);return a.convertDirection(A[0],A[1],A[2])})};y.fromjson=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,1,B,u);if(!1===f.isString(A[0]))throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.InvalidParameter,u);return q.convertJsonToArcade(JSON.parse(f.toString(A[0])),f.defaultTimeZone(B))})};y.expects=function(B,u){return D(B,u,function(E,v,A){if(1>A.length)throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.WrongNumberOfParameters,u);return f.voidOperation})};
y.tocharcode=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,2,B,u);E=f.toNumber(f.defaultUndefined(A[1],0));v=f.toString(A[0]);if(0===v.length&&1===A.length)return null;if(v.length<=E||0>E)throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.OutOfBounds,u);return v.charCodeAt(E)})};y.tocodepoint=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,1,2,B,u);E=f.toNumber(f.defaultUndefined(A[1],0));v=f.toString(A[0]);if(0===v.length&&1===A.length)return null;if(v.length<=E||0>E)throw new n.ArcadeExecutionError(B,
n.ExecutionErrorCodes.OutOfBounds,u);return v.codePointAt(E)})};y.fromcharcode=function(B,u){return D(B,u,function(E,v,A){if(1>A.length)throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.WrongNumberOfParameters,u);E=A.map(function(F){return Math.trunc(f.toNumber(F))}).filter(function(F){return 0<=F&&65535>=F});return 0===E.length?null:String.fromCharCode.apply(null,E)})};y.fromcodepoint=function(B,u){return D(B,u,function(E,v,A){if(1>A.length)throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.WrongNumberOfParameters,
u);try{var F=A.map(function(I){return Math.trunc(f.toNumber(I))}).filter(function(I){return 1114111>=I&&I>>>0===I})}catch(I){return null}return 0===F.length?null:String.fromCodePoint.apply(null,F)})};y.getuser=function(B,u){return D(B,u,function(E,v,A){f.pcCheck(A,0,2,B,u);E=f.defaultUndefined(A[1],"");E=!0===E||!1===E?"":f.toString(E);if(null!==E&&""!==E)return null;if(0===A.length||A[0]instanceof h){v=null;B.services&&B.services.portal&&(v=B.services.portal);if(0<A.length){A=A[0].field("url");var F=
v;A=A?(new t.Portal(A)).portalUrl===((null===F||void 0===F?void 0:F.portalUrl)||""):!1;if(!A)return null}if(!v)return null;if(""===E){a:{E=v;if(E.getPortalUser()&&(E=E.getPortalUser())){v={};A=0;for(F="username id fullName availableCredits assignedCredits firstName lastName preferredView description email idpUsername favGroupId lastLogin mfaEnabled access storageUsage storageQuota orgId role privileges".split(" ");A<F.length;A++){var I=F[A];void 0!==E[I]&&(v[I]=E[I])}E=v;break a}E=null}if(E){E=JSON.parse(JSON.stringify(E));
v=0;for(A=["lastLogin","created","modified"];v<A.length;v++)F=A[v],void 0!==E[F]&&null!==E[F]&&(E[F]=new Date(E[F]));return q.convertObjectToArcadeDictionary(E,f.defaultTimeZone(B))}}return null}throw new n.ArcadeExecutionError(B,n.ExecutionErrorCodes.InvalidParameter,u);})}}})},"esri/arcade/ArcadePortal":function(){define(["require","exports","./polyfill/tsSupport/extends","./Dictionary"],function(G,x,c,r){return function(h){function w(q){var n=h.call(this)||this;n.declaredClass="esri.arcade.Portal";
n.immutable=!1;n.setField("url",q);n.immutable=!0;return n}c(w,h);return w}(r)})},"esri/arcade/Attachment":function(){define(["require","exports","./polyfill/tsSupport/extends","./Dictionary"],function(G,x,c,r){return function(h){function w(q,n,f,g,a,d){var k=h.call(this)||this;k.attachmentUrl=a;k.declaredClass="esri.arcade.Attachment";k.immutable=!1;k.setField("id",q);k.setField("name",n);k.setField("contenttype",f);k.setField("size",g);k.setField("exifinfo",d);k.immutable=!0;return k}c(w,h);return w}(r)})},
"esri/arcade/functions/convertdirection":function(){define("require exports ../Dictionary ../executionError ../languageUtils ../polyfill/maybe".split(" "),function(G,x,c,r,h,w){function q(oa){if(!1===h.isString(oa))throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.InvalidParameter,null);return oa}function n(oa,qa){qa=Math.pow(10,qa);return Math.round(oa*qa)/qa}function f(oa){var qa=parseFloat,L=oa.toString(),Y=L.replace;var ca=+oa;ca=isFinite(ca)?ca-ca%1||(0>ca?-0:0===ca?ca:0):ca;qa=qa(Y.call(L,
ca.toString(),"0"))*((0<oa)-(0>oa)||+oa);return 0>oa?{fraction:qa,integer:Math.ceil(oa)}:{fraction:qa,integer:Math.floor(oa)}}function g(oa,qa){switch(oa){case 0:return"SHORT"===qa?"N":"North";case 1:return"SHORT"===qa?"E":"East";case 2:return"SHORT"===qa?"S":"South";case 3:return"SHORT"===qa?"W":"West"}}function a(oa,qa,L){for(;oa.length<L;)oa=qa+oa;return oa}function d(oa,qa){return oa-Math.floor(oa/qa)*qa}function k(oa){switch(oa){case 6:case 1:return 360;case 4:return F;case 5:return 400;case 2:return 1296E3;
case 7:return 60;case 8:return 60;default:throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"unsupported evaluations"});}}function l(oa){switch(oa.toUpperCase().trim()){case "NORTH":case "NORTHAZIMUTH":case "NORTH AZIMUTH":return 1;case "POLAR":return 2;case "QUADRANT":return 3;case "SOUTH":case "SOUTHAZIMUTH":case "SOUTH AZIMUTH":return 4}throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"unsupported directionType"});}function m(oa){switch(oa.toUpperCase().trim()){case "D":case "DD":case "DECIMALDEGREE":case "DECIMAL DEGREE":case "DEGREE":case "DECIMALDEGREES":case "DECIMAL DEGREES":case "DEGREES":return 1;
case "DMS":case "DEGREESMINUTESSECONDS":case "DEGREES MINUTES SECONDS":return 3;case "R":case "RAD":case "RADS":case "RADIAN":case "RADIANS":return 4;case "G":case "GON":case "GONS":case "GRAD":case "GRADS":case "GRADIAN":case "GRADIANS":return 5}throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"unsupported units"});}function e(oa,qa,L){var Y=null;switch(qa){case 1:Y=x.preciseMultiply(oa,3600);break;case 2:Y=oa;break;case 5:Y=x.preciseMultiply(oa,3240);break;case 4:Y=
x.preciseMultiply(oa,I);break;default:throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"unexpected evaluation"});}switch(L){case 1:return x.preciseDivide(Y,3600);case 2:return Y;case 5:return x.preciseDivide(Y,3240);case 4:return Y/I;default:throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"unexpected evaluation"});}}function b(oa){w.assertIsSome(oa);switch(oa){case 1:case 6:case 3:return 1;case 5:return 5;case 7:return 7;case 4:return 4;
case 2:case 8:return 2}}function p(oa){switch(h.toNumber(oa)){case 1:return{first:0,second:1};case 2:return{first:2,second:1};case 3:return{first:2,second:3};case 4:return{first:0,second:3}}return null}function t(oa){switch(oa.toUpperCase().trim()){case "N":case "NORTH":return 0;case "E":case "EAST":return 1;case "S":case "SOUTH":return 2;case "W":case "WEST":return 3}return null}function z(oa){oa=parseFloat(oa);if(h.isNumber(oa)){if(isNaN(oa))throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,
null,{reason:"invalid conversion"});return oa}throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"invalid conversion"});}function C(oa,qa,L){var Y=3===L,ca=null,V=null,X=0,ja=0;ja=0;if(Y){if(2>oa.length)throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"conversion error"});ja=1;(V=p(h.toString(oa[oa.length-1])))?(ca=V.first,V=V.second):(X=1,ca=t(h.toString(oa[0])),V=t(h.toString(oa[oa.length-1])));if(null===ca||null===V)throw new r.ArcadeExecutionError(null,
r.ExecutionErrorCodes.LogicError,null,{reason:"invalid conversion"});}switch(qa){case 1:case 4:case 5:if(0===oa.length)break;return Y?ha.createFromAngleMeridianAndDirection(sa.createFromAngleAndUnits(z(oa[X]),b(qa)),ca,V):ha.createFromAngleAndDirection(sa.createFromAngleAndUnits(z(oa[X]),b(qa)),L);case 3:ja=oa.length-ja-X;if(3===ja)return oa=sa.createFromDegreesMinutesSeconds(z(oa[X]),z(oa[X+1]),z(oa[X+2])),Y?ha.createFromAngleMeridianAndDirection(oa,ca,V):ha.createFromAngleAndDirection(oa,L);if(1===
ja)return oa=z(oa[X]),oa=W.numberToDms(oa),oa=sa.createFromDegreesMinutesSeconds(oa.m_degrees,oa.m_minutes,oa.m_seconds),Y?ha.createFromAngleMeridianAndDirection(oa,ca,V):ha.createFromAngleAndDirection(oa,L)}throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"invalid conversion"});}function y(oa){for(var qa=[" ","-","/","'",'"',"\\","^","\u00b0",N,"\t","\r","\n","*"],L="",Y=0;Y<oa.length;Y++){var ca=oa.charAt(Y);L=qa.includes(ca)?L+"RRSPLITRRSPLITRR":L+ca}return L.split("RRSPLITRRSPLITRR").filter(function(V){return""!==
V})}function D(oa,qa,L){for(var Y={padding:0,rounding:0,newpos:qa},ca=!1;qa<oa.length;){var V=oa[qa];if(V===L)ca?Y.rounding++:Y.padding++,qa++;else if("."===V)ca=!0,qa++;else break}Y.newpos=qa-1;return Y}Object.defineProperty(x,"__esModule",{value:!0});x.convertDirection=x.preciseDivide=x.preciseMultiply=x.preciseMinus=x.preciseAdd=void 0;var B=function(oa){return function(qa,L,Y){Y=Y||14;return+oa(qa,L).toFixed(Y)}},u=function(oa,qa){return oa+qa},E=function(oa,qa){return oa-qa},v=function(oa,qa){return oa*
qa},A=function(oa,qa){return oa/qa};x.preciseAdd=function(oa,qa,L){return B(u)(oa,qa,L)};x.preciseMinus=function(oa,qa,L){return B(E)(oa,qa,L)};x.preciseMultiply=function(oa,qa,L){return B(v)(oa,qa,L)};x.preciseDivide=function(oa,qa,L){return B(A)(oa,qa,L)};var F=2*Math.PI,I=648E3/Math.PI,N=String.fromCharCode(7501),da;(function(oa){oa[oa.north=0]="north";oa[oa.east=1]="east";oa[oa.south=2]="south";oa[oa.west=3]="west"})(da||(da={}));var ba;(function(oa){oa[oa.decimal_degrees=1]="decimal_degrees";
oa[oa.seconds=2]="seconds";oa[oa.degrees_minutes_seconds=3]="degrees_minutes_seconds";oa[oa.radians=4]="radians";oa[oa.gradians=5]="gradians";oa[oa.truncated_degrees=6]="truncated_degrees";oa[oa.fractional_degree_minutes=7]="fractional_degree_minutes";oa[oa.fractional_minute_seconds=8]="fractional_minute_seconds"})(ba||(ba={}));var na;(function(oa){oa[oa.north_azimuth=1]="north_azimuth";oa[oa.polar=2]="polar";oa[oa.quadrant=3]="quadrant";oa[oa.south_azimuth=4]="south_azimuth"})(na||(na={}));var xa;
(function(oa){oa[oa.meridian=0]="meridian";oa[oa.direction=1]="direction"})(xa||(xa={}));var W=function(){function oa(qa,L,Y){this.m_degrees=qa;this.m_minutes=L;this.m_seconds=Y}oa.prototype.getField=function(qa){switch(qa){case 1:case 6:return this.m_degrees;case 7:return this.m_minutes;case 2:case 8:return this.m_seconds;default:throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"unexpected evaluation"});}};oa.secondsToDMS=function(qa){var L=f(qa).fraction;qa=f(qa).integer;
var Y=Math.floor(qa/3600);qa-=3600*Y;var ca=Math.floor(qa/60);return new oa(Y,ca,qa-60*ca+L)};oa.numberToDms=function(qa){var L=f(qa).fraction;qa=f(qa).integer;var Y=x.preciseMultiply(f(100*L).fraction,100);L=f(100*L).integer;return new oa(qa,L,Y)};oa.prototype.format=function(qa,L){L=n(this.m_seconds,L);var Y=this.m_minutes,ca=this.m_degrees;if(2===qa||8===qa)60<=L&&(L-=60,++Y),60<=Y&&(Y=0,++ca),360<=ca&&(ca=0);else if(7===qa)L=0,Y=30<=this.m_seconds?this.m_minutes+1:this.m_minutes,ca=this.m_degrees,
60<=Y&&(Y=0,++ca),360<=ca&&(ca=0);else if(1===qa||6===qa)qa=x.preciseDivide(this.m_seconds,3600),L=x.preciseDivide(this.m_minutes,60),ca=Math.round(this.m_degrees+L+qa),L=Y=0;return new oa(ca,Y,L)};oa.dmsToSeconds=function(qa,L,Y){return 3600*qa+60*L+Y};return oa}(),la=function(){function oa(qa,L,Y){this.meridian=qa;this.angle=L;this.direction=Y}oa.prototype.fetchAzimuth=function(qa){return qa===xa.meridian?this.meridian:this.direction};return oa}(),ha=function(){function oa(qa){this._angle=qa}oa.createFromAngleAndDirection=
function(qa,L){return new oa(new sa(oa._convertDirectionFormat(qa.extractAngularUnits(2),L,1)))};oa.prototype.getAngle=function(qa){var L=this._angle.extractAngularUnits(2);switch(qa){case 1:case 4:case 2:return qa=new sa(oa._convertDirectionFormat(L,1,qa));case 3:return qa=oa.secondsNorthAzimuthToQuadrant(L),qa=new sa(qa.angle)}};oa.prototype.getMeridian=function(qa){var L=this._angle.extractAngularUnits(2);switch(qa){case 1:return 0;case 4:return 2;case 2:return 1;case 3:return oa.secondsNorthAzimuthToQuadrant(L).meridian}};
oa.prototype.getDirection=function(qa){var L=this._angle.extractAngularUnits(2);switch(qa){case 1:return 1;case 4:return 3;case 2:return 0;case 3:return oa.secondsNorthAzimuthToQuadrant(L).direction}};oa.secondsNorthAzimuthToQuadrant=function(qa){var L=324E3>=qa||972E3<=qa?0:2;return new la(L,0===L?Math.min(1296E3-qa,qa):Math.abs(qa-648E3),648E3<qa?3:1)};oa.createFromAngleMeridianAndDirection=function(qa,L,Y){return new oa(new sa(oa.secondsQuadrantToNorthAzimuth(qa.extractAngularUnits(2),L,Y)))};
oa.secondsQuadrantToNorthAzimuth=function(qa,L,Y){return 0===L?1===Y?qa:1296E3-qa:1===Y?648E3-qa:648E3+qa};oa._convertDirectionFormat=function(qa,L,Y){var ca=0;switch(L){case 1:ca=qa;break;case 2:ca=324E3-qa;break;case 3:throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"unexpected evaluation"});case 4:ca=qa+648E3}qa=0;switch(Y){case 1:qa=ca;break;case 2:qa=324E3-ca;break;case 3:throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"unexpected evaluation"});
case 4:qa=ca-648E3}qa%=1296E3;return 0>qa?1296E3+qa:qa};return oa}(),sa=function(){function oa(qa){this._seconds=qa}oa.createFromAngleAndUnits=function(qa,L){return new oa(e(qa,L,2))};oa.prototype.extractAngularUnits=function(qa){return e(this._seconds,2,b(qa))};oa.createFromDegreesMinutesSeconds=function(qa,L,Y){return new oa(x.preciseAdd(x.preciseAdd(x.preciseMultiply(qa,3600),x.preciseMultiply(L,60)),Y))};return oa}(),Ca=function(){function oa(qa,L,Y,ca){this.view=qa;this.angle=L;this.merdian=
Y;this.direction=ca;this._formattedDms=this._dms=null}oa.createFromStringAndBearing=function(qa,L,Y){return new oa(qa,L.getAngle(Y),L.getMeridian(Y),L.getDirection(Y))};oa.prototype.fetchAngle=function(){return this.angle};oa.prototype.fetchMeridian=function(){return this.merdian};oa.prototype.fetchDirection=function(){return this.direction};oa.prototype.fetchView=function(){return this.view};oa.prototype.fetchDms=function(){null===this._dms&&this._calculateDms();return this._dms};oa.prototype.fetchFormattedDms=
function(){null===this._formattedDms&&this._calculateDms();return this._formattedDms};oa.prototype._calculateDms=function(){var qa=null,L=6,Y=0;for(qa=0;qa<this.view.length;qa++){var ca=this.view[qa];switch(ca){case "m":qa=D(this.view,qa,ca);L=6===L?7:L;qa=qa.newpos;continue;case "s":qa=D(this.view,qa,ca),L=8,Y=Y<qa.rounding?qa.rounding:Y,qa=qa.newpos}}this._dms=W.secondsToDMS(this.angle.extractAngularUnits(2));this._formattedDms=W.secondsToDMS(this.angle.extractAngularUnits(2)).format(L,Y)};return oa}();
x.convertDirection=function(oa,qa,L){if(!(qa instanceof c))throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.InvalidParameter,null);if(!1===qa.hasField("directionType"))throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"missing directionType"});if(!1===qa.hasField("angleType"))throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"missing angleType"});var Y=l(q(qa.field("directiontype")));qa=m(q(qa.field("angletype")));if(h.isNumber(oa)){oa=
h.toNumber(oa);if(3===Y)throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"conversion error"});3===qa?(oa=W.numberToDms(oa),qa=ha.createFromAngleAndDirection(sa.createFromDegreesMinutesSeconds(oa.m_degrees,oa.m_minutes,oa.m_seconds),Y)):qa=ha.createFromAngleAndDirection(sa.createFromAngleAndUnits(oa,b(qa)),Y)}else if(h.isString(oa))qa=C(y(oa),qa,Y);else if(h.isArray(oa))qa=C(oa,qa,Y);else if(h.isImmutableArray(oa))qa=C(oa.toArray(),qa,Y);else throw new r.ArcadeExecutionError(null,
r.ExecutionErrorCodes.LogicError,null,{reason:"conversion error"});if(!(L instanceof c))throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.InvalidParameter,null);if(!1===L.hasField("directionType"))throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"missing directionType"});if(!1===L.hasField("outputType"))throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"missing angleType"});Y=l(q(L.field("directiontype")));oa=L.hasField("angleType")?
m(q(L.field("angletype"))):null;var ca=q(L.field("outputType")).toUpperCase().trim();if(!Y||!ca)throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"conversion error"});if(!(oa||"TEXT"===ca&&L.hasField("format")))throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"invalid unit"});switch(ca){case "VALUE":if(3===Y||3===oa)return L=qa,qa=L.getAngle(Y),3===Y&&3===oa?(oa=W.secondsToDMS(qa.extractAngularUnits(2)),Y=[g(L.getMeridian(Y),"SHORT"),
oa.m_degrees,oa.m_minutes,oa.m_seconds,g(L.getDirection(Y),"SHORT")]):3===oa?(oa=W.secondsToDMS(qa.extractAngularUnits(2)),Y=[oa.m_degrees,oa.m_minutes,oa.m_seconds]):Y=3===Y?[g(L.getMeridian(Y),"SHORT"),qa.extractAngularUnits(oa),g(L.getDirection(Y),"SHORT")]:[qa.extractAngularUnits(oa)],Y;L=qa;if((qa=b(oa))&&3!==oa)Y=L.getAngle(Y).extractAngularUnits(qa);else throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"conversion error"});return Y;case "TEXT":ca="";L.hasField("format")&&
(ca=h.toString(L.field("format")));if(null===ca||""===ca){L="";switch(oa){case 1:L=3===Y?"DD.DD\u00b0":"DDD.DD\u00b0";break;case 3:L=3===Y?"dd\u00b0 mm' ss\"":"ddd\u00b0 mm' ss.ss\"";break;case 4:L="R.RR";break;case 5:L="GGG.GG"+N;break;default:throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"conversion error"});}3===Y&&(L="p "+L+" b");ca=L}L=qa;oa=ca;var V="",X=null,ja=null;qa=Ca.createFromStringAndBearing(oa,L,Y);ca={D:1,d:6,m:7,s:8,R:4,G:5};for(ja=0;ja<oa.length;ja++){var pa=
oa[ja];switch(pa){case "[":X=oa;pa={escaped:"",newpos:ja};for(ja++;ja<X.length;){var ta=X[ja];ja++;if("]"===ta)break;pa.escaped+=ta}pa.newpos=ja-1;X=pa;V+=X.escaped;ja=X.newpos;continue;case "D":case "d":case "m":case "s":case "R":case "G":X=D(oa,ja,pa);ja=L.getAngle(Y);a:{pa=ca[pa];ta=X.padding;var ea=X.rounding,va=qa,M=null;switch(pa){case 1:case 4:case 5:M=d(n(ja.extractAngularUnits(pa),ea),k(pa));ja=a(M.toFixed(ea),"0",ta+ea+(0<ea?1:0));break a;case 6:case 7:M=d(va.fetchFormattedDms().getField(pa),
k(pa));ja=a(M.toFixed(ea),"0",ta+ea+(0<ea?1:0));break a;case 8:M=d(n(va.fetchDms().getField(pa),ea),k(pa));ja=a(M.toFixed(ea),"0",ta+ea+(0<ea?1:0));break a;default:throw new r.ArcadeExecutionError(null,r.ExecutionErrorCodes.LogicError,null,{reason:"unexpected evaluation"});}}V+=ja;ja=X.newpos;continue;case "P":case "p":V+=g(qa.fetchMeridian(),"p"===pa?"SHORT":"LONG");continue;case "B":case "b":V+=g(qa.fetchDirection(),"b"===pa?"SHORT":"LONG");continue;default:V+=pa}}return V;default:throw new r.ArcadeExecutionError(null,
r.ExecutionErrorCodes.InvalidParameter,null);}}})},"esri/arcade/functions/hash":function(){define(["require","exports"],function(G,x){function c(r){for(var h=[],w=0,q=r.length;w<q;w++){var n=r.charCodeAt(w);128>n?h.push(n):2048>n?h.push(192|n>>6,128|n&63):55296>n||57344<=n?h.push(224|n>>12,128|n>>6&63,128|n&63):(w++,n=65536+((n&1023)<<10|r.charCodeAt(w)&1023),h.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|n&63))}return new Uint8Array(h)}Object.defineProperty(x,"__esModule",{value:!0});x.XXH=void 0;
G=function(){function r(h){this._seed=h;this._totallen=0;this._bufs=[];this.init()}r.prototype.init=function(){this._bufs=[];this._totallen=0;return this};r.prototype.updateFloatArray=function(h){for(var w=[],q=0;q<h.length;q++){var n=h[q];isNaN(n)?w.push("NaN"):Infinity===n?w.push("Infinity"):-Infinity===n?w.push("-Infinity"):0===n?w.push("0"):w.push(n.toString(16))}this.update(c(w.join("")))};r.prototype.updateIntArray=function(h){h=Int32Array.from(h);this.update(new Uint8Array(h.buffer))};r.prototype.updateUint8Array=
function(h){this.update(Uint8Array.from(h))};r.prototype.updateWithString=function(h){return this.update(c(h))};r.prototype.update=function(h){this._bufs.push(h);this._totallen+=h.length;return this};r.prototype.digest=function(){for(var h=new Uint8Array(this._totallen),w=0,q=0,n=this._bufs;q<n.length;q++){var f=n[q];h.set(f,w);w+=f.length}this.init();return this._xxHash32(h,this._seed)};r.prototype._xxHash32=function(h,w){void 0===w&&(w=0);var q=w+374761393&4294967295,n=0;if(16<=h.length){q=[w+2654435761+
2246822519&4294967295,w+2246822519&4294967295,w+0&4294967295,w-2654435761&4294967295];var f=h.length-16;for(n=w=0;(n&4294967280)<=f;n+=4){var g=n,a=h[g+0]+(h[g+1]<<8);g=h[g+2]+(h[g+3]<<8);a=q[w]+(2246822519*a+(2246822519*g<<16))&4294967295;a=a<<13|a>>>19;q[w]=2654435761*(a&65535)+(2654435761*(a>>>16)<<16)&4294967295;w=w+1&3}q=(q[0]<<1|q[0]>>>31)+(q[1]<<7|q[1]>>>25)+(q[2]<<12|q[2]>>>20)+(q[3]<<18|q[3]>>>14)&4294967295}q=q+h.length&4294967295;for(w=h.length-4;n<=w;n+=4)g=n,a=h[g+0]+(h[g+1]<<8),g=h[g+
2]+(h[g+3]<<8),q=q+(3266489917*a+(3266489917*g<<16))&4294967295,q=q<<17|q>>>15,q=668265263*(q&65535)+(668265263*(q>>>16)<<16)&4294967295;for(;n<h.length;++n)w=h[n],q+=374761393*w,q=q<<11|q>>>21,q=2654435761*(q&65535)+(2654435761*(q>>>16)<<16)&4294967295;q^=q>>>15;q=(2246822519*(q&65535)&4294967295)+(2246822519*(q>>>16)<<16);q^=q>>>13;q=(3266489917*(q&65535)&4294967295)+(3266489917*(q>>>16)<<16);q^=q>>>16;return 0>q?q+4294967296:q};return r}();x.XXH=G})},"esri/arcgis/Portal":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/kernel dojo/_base/Deferred dojo/_base/array dojo/_base/sniff require ../config ../kernel ../lang ../request ../urlUtils ../Evented ../IdentityManager".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k){var l={options:{disableIdentityLookup:!0},requestParams:{f:"json"}},m=function(u){function E(v){u[v]||(u[v]=function(){var A=arguments;return r.when(u,function(F){Array.prototype.unshift.call(A,F.results||F);return m(h[v].apply(h,A))})})}if(!u)return u;u.then&&(u=x.delegate(u));u.total||(u.total=r.when(u,function(v){return g.isDefined(v.total)?v.total:v.length||0}));E("forEach");E("filter");E("map");E("some");E("every");return u},e={useSSL:function(u,E){var v=l&&
l.self||{};if(v&&!v.isPortal)return-1!==u.indexOf("https:")||v.allSSL?E.replace("http:","https:"):E;var A=e.getLocation(E);return-1<v.portalHostname.toLowerCase().indexOf(A.hostname.toLowerCase())&&A.port&&"80"!==A.port&&"443"!==A.port?(E=A.pathname,E=0===E.indexOf("/")?E:"/"+E,v.allSSL||-1<u.indexOf("https:")?"https://"+A.hostname+(v.httpsPort&&"443"!==v.httpsPort?":"+v.httpsPort:"")+E+A.search:"http://"+A.hostname+(v.httpPort&&"80"!==v.httpPort?":"+v.httpPort:"")+E+A.search):-1!==u.indexOf("https:")||
v.allSSL?E.replace("http:","https:"):E},formatUrl:function(u){var E=l.currentToken;return-1!==u.indexOf("null")?null:e.useSSL(window.location.protocol,E?u+(-1!==u.indexOf("?")?"\x26":"?")+("token\x3d"+E):u)},getLocation:function(u){var E=document.createElement("a");E.href=u;return{protocol:E.protocol,hostname:E.hostname,port:E.port,pathname:E.pathname,search:E.search,hash:E.hash,host:E.host}},resultsToTypedArray:function(u,E,v){v=v?v.listings||v.notifications||v.userInvitations||v.tags||v.items||
v.groups||v.comments||v.provisions||v.results||v:[];return h.map(v,function(A){A=x.mixin(A,E||{});return u?new u(A):A})},clearFieldsFromObject:function(u,E){var v,A=u.length;if(x.isArray(u))for(v=0;v<A;v++)delete E[u[v]];else for(v in u)delete E[v];return E},requestToTypedArray:function(u,E,v,A,F){return m(e.request(u,E,v).then(x.partial(e.resultsToTypedArray,A,F)))},request:function(u,E,v){if(E){E.portal&&delete E.portal;if(E.form){var A=E.form;delete E.form}if(E.hasOwnProperty("withCredentials")){var F=
E.withCredentials;delete E.withCredentials}}E=x.mixin(x.mixin({},E||{}),l.requestParams);u={url:e.useSSL(window.location.protocol,u.url||u),content:E,callbackParamName:"callback",timeout:I&&I.timeout||0,form:A};null!=F&&(u.withCredentials=F);var I=x.mixin(v||{},l.options);return a(u,I)},formatQueryParams:function(u,E,v){u=x.mixin(x.mixin({},u),x.isString(E)?{q:E}:E||{});u.q=!v&&l.extraQuery?"("+u.q+")"+l.extraQuery:u.q;return u}},b=G([],{declaredClass:"esri.arcgis.PortalComment",constructor:function(u){x.mixin(this,
u);this.url=this.item.itemUrl+"/comments/"+this.id;this.created=this.created?new Date(this.created):null}}),p=G([],{declaredClass:"esri.arcgis.PortalRating",constructor:function(u){x.mixin(this,u);this.url=this.item.itemUrl+"/rating";this.created=this.created?new Date(this.created):null}}),t=G([],{declaredClass:"esri.arcgis.PortalItem",constructor:function(u){x.mixin(this,u);this.folderId=this.ownerFolder||this.folderId;this.itemUrl=(this.portal&&this.portal.portalUrl)+"content/items/"+this.id;this.userItemUrl=
this.hasOwnProperty("ownerFolder")?this.itemUrl.replace("/content/","/content/users/"+this.owner+(this.folderId?"/"+this.folderId:"")+"/"):null;this.itemDataUrl=e.formatUrl(this.itemUrl+"/data");this.thumbnailUrl=e.formatUrl(this.itemUrl+"/info/"+this.thumbnail);this.displayName=this._getDisplayName();this.iconUrl=this._getIconUrl();this.isPremiumContent=this._getIsPremiumContent();this.created=this.created?new Date(this.created):null;this.uploaded=this.uploaded?new Date(this.uploaded):null;this.modified=
this.modified?new Date(this.modified):null},getTypeInfo:function(){var u=this.type;return{source:-1<h.indexOf(this.typeKeywords||[],"ArcGIS Server")||"Feature Collection"===u?u:null,displayName:this.displayName,iconUrl:this.iconUrl,isPremiumContent:this.isPremiumContent,premiumIconUrl:this._getPremiumIconUrl()}},addComment:function(u){var E=x.isString(u)?{comment:u}:u;return e.request(this.itemUrl+"/addComment",E,{usePost:!0}).then(x.hitch(this,function(v){return new b(x.mixin(E,{id:v.commentId,item:this}))}))},
updateComment:function(u){if(u&&u.url&&u.comment)return e.request(u.url+"/update",{comment:u.comment},{usePost:!0}).then(function(E){u.id=E.commentId;return u});throw Error();},getComments:function(){return e.requestToTypedArray(this.itemUrl+"/comments",null,null,b,{item:this})},deleteComment:function(u){if(u&&u.url)return e.request(u.url+"/delete",null,{usePost:!0});throw Error();},addRating:function(u){var E=x.isObject(u)?u:{rating:parseFloat(u)};return e.request(this.itemUrl+"/addRating",E,{usePost:!0}).then(x.hitch(this,
function(v){return new p(x.mixin(E,{id:v.ratingId,item:this}))}))},getRating:function(){return e.request(this.itemUrl+"/rating").then(x.hitch(this,function(u){return new p(x.mixin(u,{item:this}))}))},deleteRating:function(){return e.request(this.itemUrl+"/deleteRating",null,{usePost:!0})},_getDisplayName:function(){var u=this.type,E=this.typeKeywords||[],v=u;"Feature Service"===u||"Feature Collection"===u?v=-1<h.indexOf(E,"Table")?"Table":-1<h.indexOf(E,"Route Layer")?"Route Layer":-1<h.indexOf(E,
"Markup")?"Markup":"Feature Layer":"Image Service"===u?v=-1<h.indexOf(E,"Elevation 3D Layer")?"Elevation Layer":-1<h.indexOf(E,"Tiled Imagery")?"Tiled Imagery Layer":"Imagery Layer":"Scene Service"===u?v="Scene Layer":"Video Service"===u?v="Video Layer":"Scene Package"===u?v="Scene Layer Package":"Stream Service"===u?v="Feature Layer":"Geoprocessing Service"===u?v=-1<h.indexOf(E,"Web Tool")?"Tool":"Geoprocessing Service":"Geoenrichment Service"===u?v="GeoEnrichment Service":"Geocoding Service"===
u?v="Locator":"Microsoft Powerpoint"===u?v="Microsoft PowerPoint":"GeoJson"===u?this.type=v="GeoJSON":"Globe Service"===u?v="Globe Layer":"Vector Tile Service"===u?v="Tile Layer":"netCDF"===u?v="NetCDF":"Map Service"===u?v=-1===h.indexOf(E,"Spatiotemporal")&&(-1<h.indexOf(E,"Hosted Service")||-1<h.indexOf(E,"Tiled"))&&-1===h.indexOf(E,"Relational")?"Tile Layer":"Map Image Layer":u&&-1<u.toLowerCase().indexOf("add in")?v=u.replace(/(add in)/ig,"Add-In"):"datastore catalog service"===u?v="Big Data File Share":
"Compact Tile Package"===u?v="Tile Package (tpkx)":"Raster function template"===u?v="Raster Function Template":"OGCFeatureServer"===u?v="OGC Feature Layer":"web mapping application"===u&&-1<h.indexOf(E,"configurableApp")?v="Instant App":"Insights Page"===u?v="Insights Report":"Excalibur Imagery Project"===u&&(v="Excalibur Project");return v},_getIconUrl:function(){var u=this.type&&this.type.toLowerCase()||"",E=this.typeKeywords||[],v=!1,A=!1,F=!1,I=!1,N=!1,da=!1;A=!1;0<u.indexOf("service")||"feature collection"===
u||"kml"===u||"wms"===u||"wmts"===u||"wfs"===u?(v=-1<h.indexOf(E,"Hosted Service"),"feature service"===u||"feature collection"===u||"kml"===u||"wfs"===u?(I=-1<h.indexOf(E,"Table"),A=-1<h.indexOf(E,"Route Layer"),F=-1<h.indexOf(E,"Markup"),N=-1!==h.indexOf(E,"Spatiotemporal"),da=-1!==h.indexOf(E,"UtilityNetwork"),u=N&&I?"spatiotemporaltable":I?"table":A?"routelayer":F?"markup":N?"spatiotemporal":da?"utilitynetwork":v?"featureshosted":"features"):"map service"===u||"wms"===u||"wmts"===u?(N=-1!==h.indexOf(E,
"Spatiotemporal"),A=-1!==h.indexOf(E,"Relational"),u=N||A?"mapimages":v||-1<h.indexOf(E,"Tiled")||"wmts"===u?"maptiles":"mapimages"):u="scene service"===u?-1<h.indexOf(E,"Line")?"sceneweblayerline":-1<h.indexOf(E,"3DObject")?"sceneweblayermultipatch":-1<h.indexOf(E,"Point")?"sceneweblayerpoint":-1<h.indexOf(E,"IntegratedMesh")?"sceneweblayermesh":-1<h.indexOf(E,"PointCloud")?"sceneweblayerpointcloud":-1<h.indexOf(E,"Polygon")?"sceneweblayerpolygon":-1<h.indexOf(E,"Building")?"sceneweblayerbuilding":
-1<h.indexOf(E,"Voxel")?"sceneweblayervoxel":"sceneweblayer":"image service"===u?-1<h.indexOf(E,"Elevation 3D Layer")?"elevationlayer":-1<h.indexOf(E,"Tiled Imagery")?"tiledimagerylayer":"imagery":"stream service"===u?"streamlayer":"vector tile service"===u?"vectortile":"datastore catalog service"===u?"datastorecollection":"geocoding service"===u?"geocodeservice":"video service"===u?-1<h.indexOf(E,"Live Stream")?"livestreamvideolayer":"videolayer":"geoprocessing service"===u?-1<h.indexOf(E,"Web Tool")?
"tool":"layers":"geodata service"===u?"geodataservice":"layers"):u="web map"===u||"cityengine web scene"===u?"maps":"web scene"===u?-1<h.indexOf(E,"ViewingMode-Local")?"webscenelocal":"websceneglobal":"web mapping application"===u&&-1<h.indexOf(E,"configurableApp")?"instantapps":"web mapping application"===u||"mobile application"===u||"application"===u||"operation view"===u||"desktop application"===u?"apps":"map document"===u||"map package"===u||"published map"===u||"scene document"===u||"globe document"===
u||"basemap package"===u||"mobile basemap package"===u||"mobile map package"===u||"project package"===u||"project template"===u||"pro map"===u||"layout"===u||"layer"===u&&-1<h.indexOf(E,"ArcGIS Pro")||"explorer map"===u&&h.indexOf(E,"Explorer Document")?"mapsgray":"service definition"===u||"csv"===u||"shapefile"===u||"cad drawing"===u||"geojson"===u||"netcdf"===u||"administrative report"===u?"datafiles":"360 vr experience"===u?"360vr":"explorer add in"===u||"desktop add in"===u||"windows viewer add in"===
u||"windows viewer configuration"===u?"appsgray":"arcgis pro add in"===u||"arcgis pro configuration"===u?"addindesktop":"rule package"===u||"file geodatabase"===u||"sqlite geodatabase"===u||"csv collection"===u||"kml collection"===u||"windows mobile package"===u||"map template"===u||"desktop application template"===u||"gml"===u||"arcpad package"===u||"code sample"===u||"form"===u||"document link"===u||"earth configuration"===u||"operations dashboard add in"===u||"rules package"===u||"image"===u||
"workflow manager package"===u||"explorer map"===u&&-1<h.indexOf(E,"Explorer Mapping Application")||-1<h.indexOf(E,"Document")?"datafilesgray":"network analysis service"===u||"geoprocessing service"===u||"geodata service"===u||"geometry service"===u||"geoprocessing package"===u||"locator package"===u||"geoprocessing sample"===u||"workflow manager service"===u?"toolsgray":"layer"===u||"layer package"===u||"explorer layer"===u?"layersgray":"scene package"===u?"scenepackage":"mobile scene package"===
u?"mobilescenepackage":"tile package"===u||"compact tile package"===u?"tilepackage":"task file"===u?"taskfile":"report template"===u?"report-template":"statistical data collection"===u?"statisticaldatacollection":"insights workbook"===u?"workbook":"insights model"===u?"insightsmodel":"insights page"===u?"insightspage":"insights theme"===u?"insightstheme":"hub initiative"===u?"hubinitiative":"hub page"===u?"hubpage":"hub site application"===u?"hubsite":"hub event"===u?"hubevent":"hub project"===u?
"hubproject":"relational database connection"===u?"relationaldatabaseconnection":"big data file share"===u?"datastorecollection":"image collection"===u?"imagecollection":"desktop style"===u?"desktopstyle":"style"===u?"style":"dashboard"===u?"dashboard":"raster function template"===u?"rasterprocessingtemplate":"vector tile package"===u?"vectortilepackage":"ortho mapping project"===u?"orthomappingproject":"ortho mapping template"===u?"orthomappingtemplate":"solution"===u?"solutions":"geopackage"===
u?"geopackage":"deep learning package"===u?"deeplearningpackage":"real time analytic"===u?"realtimeanalytics":"big data analytic"===u?"bigdataanalytics":"feed"===u?"feed":"excalibur imagery project"===u?"excaliburimageryproject":"notebook"===u?"notebook":"storymap"===u?"storymap":"survey123 add in"===u?"survey123addin":"mission"===u?"mission":"mission report"===u?"missionreport":"quickcapture project"===u?"quickcaptureproject":"pro report"===u?"proreport":"pro report template"===u?"proreporttemplate":
"urban model"===u?"urbanmodel":"web experience"===u?"experiencebuilder":"web experience template"===u?"webexperiencetemplate":"experience builder widget"===u?"experiencebuilderwidget":"experience builder widget package"===u?"experiencebuilderwidgetpackage":"workflow"===u?"workflow":"kernel gateway connection"===u?"kernelgatewayconnection":"insights script"===u?"insightsscript":"hub initiative template"===u?"hubinitiativetemplate":"storymap theme"===u?"storymaptheme":"knowledge graph"===u?"knowledgegraph":
"native application"===u?"nativeapp":"native application installer"===u?"nativeappinstaller":"link chart"===u?"linkchart":"investigation"===u?"investigation":"ogcfeatureserver"===u?"features":"pro project"===u?"proproject":"insights workbook package"===u?"insightsworkbookpackage":"apache parquet"===u?"apacheparquet":"notebook code snippets"===u||"notebook code snippet library"===u?"notebookcodesnippets":"suitability model"===u?"suitabilitymodel":"esri classifier definition"===u?"classifierdefinition":
"esri classification schema"===u?"classificationschema":"insights data engineering workbook"===u?"dataengineeringworkbook":"insights data engineering model"===u?"dataengineeringmodel":"deep learning studio project"===u?"deeplearningproject":"discussion"===u?"discussion":"allsource project"===u?"allsourceproject":"api key"===u?"apikey":"data pipeline"===u?"datapipelines":"maps";return u?q.toUrl("../css/images/item_type_icons/"+u+"16.png"):null},_getIsPremiumContent:function(){var u=this.typeKeywords,
E=!1;if(-1<h.indexOf(u,"Requires Subscription")||-1<h.indexOf(u,"Requires Credits"))E=!0;return E},_getPremiumIconUrl:function(){var u=this.typeKeywords,E;this.isPremiumContent&&(E=-1<h.indexOf(u,"Requires Credits")?"premiumcredits":"premiumitem");return E?q.toUrl("../css/images/item_type_icons/"+E+"16.png"):null},getThumbnailUrl:function(u){var E=this.thumbnailUrl;E&&u&&(E+=(-1===E.indexOf("?")?"?":"\x26")+"w\x3d"+u);return E}}),z=G([],{declaredClass:"esri.arcgis.PortalListing",constructor:function(u){x.mixin(this,
u);this.id=this.itemId;this.url=(this.portal&&this.portal.portalUrl)+"content/"+(this.userItemUrl?"items/":"listings/")+this.itemId;this.commentsUrl=this.url+"/comments";this.created=this.created?new Date(this.created):null;this.banner=this.banner?e.formatUrl(this.url+"/info/"+this.banner):"";this.thumbnail=this.thumbnail?e.formatUrl(this.url+"/info/"+this.thumbnail):"";this.largeThumbnail=this.largeThumbnail?e.formatUrl(this.url+"/info/"+this.largeThumbnail):"";this.avgRating=this.avgRating||0;this.numRatings=
this.numRatings||0;this.numComments=this.numComments||0;this.listingProperties=this.listingProperties||{priceDesc:"",creditsPerTransaction:0,licenseType:"free",trialSupported:!1,trialDuration:0,listingAccess:"private"};for(var E in this.listingProperties)this[E]&&(this.listingProperties[E]=this[E]);this.properties=this.properties||{systemRequirements:"",termsAndConditions:"",version:"1.0"};this.screenshots=h.map(this.screenshots,x.hitch(this,function(v){return e.formatUrl(this.url+"/info/"+v)}));
this.vendorName=this.vendor.name;this.vendor.thumbnail=this.vendor.thumbnail?this.userItemUrl?e.formatUrl(this.portal.portalUrl+"/portals/self/resources/"+this.vendor.thumbnail):e.formatUrl(this.url+"/vendorinfo/"+this.vendor.thumbnail):""},getComments:function(){return e.requestToTypedArray(this.commentsUrl,null,null,b,{item:this})},getVendor:function(){return this.vendor}}),C=G([],{declaredClass:"esri.arcgis.PortalProvision",constructor:function(u){x.mixin(this,u);this.created=this.created?new Date(this.created):
null;this.startDate=this.startDate?new Date(this.startDate):null;this.endDate=this.endDate&&-1!==this.endDate?new Date(this.endDate):null;this.listing=u.listing?new z(x.mixin(u.listing,{portal:this.portal})):null}}),y=G([],{declaredClass:"esri.arcgis.PortalGroup",constructor:function(u){x.mixin(this,u);this.url=(this.portal&&this.portal.portalUrl)+"community/groups/"+this.id;this.thumbnailUrl=e.formatUrl(this.url+"/info/"+this.thumbnail);this.modified=this.modified?new Date(this.modified):null;this.created=
this.created?new Date(this.created):null},getMembers:function(){return e.request(this.url+"/users")},queryItems:function(u,E){u=e.formatQueryParams({},u,E);u.q="group:"+this.id+(u.q?" "+u.q:"");return this.portal.queryItems(u)},getThumbnailUrl:function(u){var E=this.thumbnailUrl;E&&u&&(E+=(-1===E.indexOf("?")?"?":"\x26")+"w\x3d"+u);return E}}),D=G([],{declaredClass:"esri.arcgis.PortalFolder",constructor:function(u){x.mixin(this,u);this.url=(this.portal&&this.portal.portalUrl)+"content/users/"+this.username+
"/"+this.id;this.created=this.created?new Date(this.created):null},getItems:function(){return e.requestToTypedArray(this.url,null,null,t,{portal:this.portal,folderId:this.id})}}),B=G([],{declaredClass:"esri.arcgis.PortalUser",constructor:function(u){x.mixin(this,u);this.url=(this.portal&&this.portal.portalUrl)+"community/users/"+this.username;this.userContentUrl=(this.portal&&this.portal.portalUrl)+"content/users/"+this.username;this.thumbnailUrl=this.thumbnail?e.formatUrl(this.url+"/info/"+this.thumbnail):
null;this.modified=this.modified?new Date(this.modified):null;this.created=this.created?new Date(this.created):null},getGroups:function(){return m(e.request(this.url).then(x.hitch(this,function(u){return e.resultsToTypedArray(y,{portal:this.portal},u.groups)})))},getNotifications:function(){return e.requestToTypedArray(this.url+"/notifications",null,null,null,{portal:this.portal})},getGroupInvitations:function(){return e.requestToTypedArray(this.url+"/invitations",null,null,null,{portal:this.portal})},
getTags:function(){return e.requestToTypedArray(this.url+"/tags",null,null,null,{portal:this.portal})},getFolders:function(){return m(this.getContent(null,{num:1}).then(function(u){return u.folders}))},getItems:function(u){return m(this.getContent(u).then(function(E){return E.items}))},getItem:function(u){return e.request(this.portal.portalUrl+"content/items/"+u).then(x.hitch(this,function(E){return new t(x.mixin(E,{portal:this.portal}))}))},getContent:function(u,E){var v=this.url.replace("/community/",
"/content/")+(u?"/"+u:"");return e.request(v,E).then(x.hitch(this,function(A){A.folders=e.resultsToTypedArray(D,{portal:this.portal},A.folders);A.items=e.resultsToTypedArray(t,{portal:this.portal,folderId:u},A.items);return A}))},getThumbnailUrl:function(u){var E=this.thumbnailUrl;E&&u&&(E+=(-1===E.indexOf("?")?"?":"\x26")+"w\x3d"+u);return E}});G={Portal:G([k],{declaredClass:"esri.arcgis.Portal",onLoad:function(){},onError:function(){},constructor:function(u){u=x.isObject(u)?u:{url:u};this.registerConnectEvents();
l={options:{disableIdentityLookup:!0},requestParams:{f:"json"}};u.self?(l.self=u.self,x.mixin(this,{url:u.url||d.getProtocolForWebResource()+"//"+(u.self.urlKey?u.self.urlKey+"."+u.self.customBaseUrl:u.self.portalHostname)}),this.portalUrl=-1!==this.url.indexOf("/sharing")?this.url+"/":this.url+"/sharing/rest/",u=u.self.user?this.signIn():this.init(this.url)):(u.url&&x.mixin(this,{url:u.url}),u=this.init(this.url));u.then(x.hitch(this,function(){this.emit("ready",this);this.onLoad(this)}))},init:function(u,
E){u=(u||this.portalUrl).replace(/\/+$/,"");this.portalUrl=-1!==u.indexOf("/sharing")?u+"/":u+"/sharing/rest/";d.canUseXhr(this.portalUrl)||n.defaults.io.corsEnabledServers.push(this.portalUrl.replace(/^https?:\/\//i,""));return this._getSelf(this.portalUrl).then(x.hitch(this,function(v){l.self=x.mixin({},v);(v=v.user)&&E&&(l.currentToken=E&&E.token,l.loggedInUser=new B(x.mixin(v,{portal:this,credential:E})));l.self.id&&!1===l.self.canSearchPublic&&(l.extraQuery=" AND orgid:"+l.self.id);x.mixin(this,
l.self);this.thumbnailUrl=e.formatUrl(this.portalUrl+"portals/self/resources/"+this.thumbnail);this.isOrganization=this.access&&this.access.length?!0:!1;this.created=this.created?new Date(this.created):null;this.modified=this.modified?new Date(this.modified):null;return this}),x.hitch(this,function(v){this.onError(v);throw v;}))},signIn:function(){var u=new r,E=x.hitch(this,function(){this._onSignIn().then(x.hitch(this,function(){u.resolve(l.loggedInUser)}),x.hitch(this,function(v){u.reject(v)}))});
if(l&&l.self)l&&l.loggedInUser?setTimeout(function(){u.resolve(l.loggedInUser)},0):E();else this.on("load",x.hitch(this,function(){E()}));return u},signOut:function(){l.loggedInUser.credential&&l.loggedInUser.credential.destroy();l.loggedInUser=null;l.options.disableIdentityLookup=!0;e.clearFieldsFromObject(l.self,this);l.self=null;return this.init(this.url)},getPortalUser:function(){return l.loggedInUser},addResource:function(u,E){return e.request(this.portalUrl+"portals/self/addResource",{key:u,
text:E},{usePost:!0})},update:function(u){return e.request(this.portalUrl+"portals/self/update",u,{usePost:!0})},queryGroups:function(u,E){return this._queryPortal(this.portalUrl+"community/groups",e.formatQueryParams({},u,E),y)},queryItems:function(u,E){return this._queryPortal(this.portalUrl+"search",e.formatQueryParams({},u,E),t)},queryListings:function(u){u=e.formatQueryParams({},u,!0);var E="";u.q&&-1<u.q.toLowerCase().indexOf("mylistings:true")?(u.q=u.q.toLowerCase().replace("mylistings:true",
""),E="?mylistings\x3dtrue"):u.q||(u.q='""');return this._queryPortal(this.portalUrl+"content/listings"+E,u,z)},queryCustomerList:function(u,E){u=e.formatQueryParams({},u,!0);return this._queryPortal(this.portalUrl+"portals/self/customersList",u)},getProvisions:function(){return this.getCustomers().then(x.hitch(this,function(u){return u.purchases}))},getInterests:function(){return this.getCustomers().then(x.hitch(this,function(u){return u.interests}))},getTrials:function(){return this.getCustomers().then(x.hitch(this,
function(u){return u.trials}))},getCustomers:function(u){return e.request(this.portalUrl+"portals/self/customers",{status:u||"all"})},getMyPurchases:function(){return this.getPurchases().then(function(u){return u.purchases})},getMyInterests:function(){return this.getPurchases().then(function(u){return u.interests})},getPurchases:function(){return e.request(this.portalUrl+"portals/self/purchases").then(x.hitch(this,function(u){u.interests=h.map(u.interests,function(E){return x.mixin(E.provision,{listing:E.listing})});
u.purchases=h.map(u.purchases,function(E){return x.mixin(E.provision,{listing:E.listing})});u.trials=h.map(u.trials,function(E){return x.mixin(E.provision,{listing:E.listing})});u.interests=e.resultsToTypedArray(C,{portal:this},u.interests);u.trials=e.resultsToTypedArray(C,{portal:this},u.trials);u.purchases=e.resultsToTypedArray(C,{portal:this},u.purchases);return u}))},queryUsers:function(u,E){return this._queryPortal(this.portalUrl+"community/users",e.formatQueryParams({sortField:"username"},u,
E),B)},_onSignIn:function(){l.options.disableIdentityLookup=!1;l.self=null;return f.id.getCredential(this.portalUrl).then(x.hitch(this,"init",this.url)).then(function(){return l.loggedInUser},x.hitch(this,function(u){l.options.disableIdentityLookup=!0;this.onError(u);throw u;}))},_getSelf:function(u){u+="portals/self";if(l.self){var E=new r;setTimeout(function(){E.resolve(l.self)},0)}else E=e.request(u,{culture:c.locale,withCredentials:!0});return E},_queryPortal:function(u,E,v){var A=x.mixin({num:10,
start:0,sortField:"title",sortOrder:"asc"},E),F=["start","query","num","nextStart"];u=e.request(u,A).then(x.hitch(this,function(I){I.results=e.resultsToTypedArray(v,{portal:this},I);I.queryParams=x.mixin({},A);I.nextQueryParams=x.mixin(A,{start:I.nextStart});return e.clearFieldsFromObject(F,I)}));u=x.delegate(u);u.queryParams=x.mixin({},A);u.nextQueryParams=r.when(u,function(I){return I.nextQueryParams});return m(u)}}),PortalFolder:D,PortalGroup:y,PortalItem:t,PortalUser:B,PortalComment:b,PortalRating:p,
PortalUtil:e,PortalResult:m,PortalListing:z};w("extend-esri")&&x.mixin(x.getObject("arcgis",!0,f),G);return G})},"esri/IdentityManager":function(){define(["./IdentityManagerDialog","./kernel","./OAuthSignInHandler","dojo/_base/declare"],function(G,x,c,r){G=new G;x.id=r.safeMixin(G,c);return x.id})},"esri/IdentityManagerDialog":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/config dojo/_base/Deferred dojo/_base/lang dojo/has dojo/dom-attr dojo/keys dijit/registry dijit/Dialog ./kernel ./lang ./domUtils ./Credential ./IdentityManagerBase dojo/i18n!./nls/jsapi dojo/query dijit/form/Button dijit/form/Form dijit/form/ValidationTextBox".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e){x=x([m],{declaredClass:"esri.IdentityManager",_eventMap:{"dialog-cancel":["info"]},constructor:function(b){h.mixin(this,b);this.registerConnectEvents()},_dialogContent:"\x3cdiv data-dojo-type\x3d'dijit.form.Form' data-dojo-props\x3d'\"class\":\"esriIdForm\"'\x3e\x3cdiv class\x3d'dijitDialogPaneContentArea'\x3e\x3cdiv style\x3d'padding-bottom: 5px; word-wrap: break-word;'\x3e${info}\x3c/div\x3e\x3cdiv style\x3d'margin: 0px; padding: 0px; height: 10px;'\x3e\x3c/div\x3e\x3cdiv class\x3d'esriErrorMsg' style\x3d'display: none; color: white; background-color: #D46464; text-align: center; padding-top: 3px; padding-bottom: 3px;'\x3e${invalidUser}\x3c/div\x3e\x3cdiv style\x3d'margin: 0px; padding: 0px; height: 10px;'\x3e\x3c/div\x3e\x3ctable style\x3d'width: 100%;'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel\x3e${lblUser}\x3cbr/\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' data-dojo-props\x3d'type:\"text\", \"class\":\"esriIdUser\", required:true, trim:true, style:\"width: 100%;\", autocapitalize:\"none\", autocorrect:\"off\", spellcheck:false' /\x3e\x3c/label\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel\x3e${lblPwd}\x3cbr/\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' data-dojo-props\x3d'type:\"password\", \"class\":\"esriIdPwd\", required:true, style:\"width: 100%;\"' /\x3e\x3c/label\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv class\x3d'dijitDialogPaneActionBar'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' data-dojo-props\x3d'type:\"button\", \"class\":\"esriIdSubmit\"'\x3e${lblOk}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' data-dojo-props\x3d'type:\"button\", \"class\":\"esriIdCancel\"'\x3e${lblCancel}\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e",
onDialogCreate:function(){},onDialogCancel:function(){},signIn:function(b,p,t){this._nls||(this._nls=e.identity);this._loginDialog||(this._loginDialog=this.dialog=this._createLoginDialog(),this.onDialogCreate());var z=this._loginDialog,C=t&&t.error,y=t&&t.token,D=new r(function(){z.onCancel()});if(z.open)return b=Error("BUSY"),b.name="identity-manager:busy",b.code="IdentityManager.1",b.log=!!c.isDebug,D.errback(b),D;k.hide(z.errMsg_);C&&403==C.code&&y&&(q.set(z.errMsg_,"innerHTML",this._nls.forbidden),
k.show(z.errMsg_));z.dfd_=D;z.serverInfo_=p;z.resUrl_=b;z.admin_=t&&t.isAdmin;q.set(z.resLink_,{title:b,innerHTML:"("+(this.getResourceName(b)||this._nls.lblItem)+")"});q.set(z.serverLink_,{title:p.server,innerHTML:(-1!==p.server.toLowerCase().indexOf("arcgis.com")?"ArcGIS Online":p.server)+" "});z.txtPwd_.set("value","");z.show();return D},_createLoginDialog:function(){var b=this._nls,p=d.substitute(b,this._dialogContent);p=d.substitute({resource:"\x3cspan class\x3d'resLink' style\x3d'word-wrap: break-word;'\x3e\x3c/span\x3e",
server:"\x3cspan class\x3d'serverLink' style\x3d'word-wrap: break-word;'\x3e\x3c/span\x3e"},p);var t=new g({title:b.title,content:p,"class":"esriSignInDialog",style:"width: 18em;",esriIdMgr_:this,keypressed_:function(z){z.charOrCode===n.ENTER&&this.execute_()},execute_:function(){var z=this.txtUser_.get("value"),C=this.txtPwd_.get("value"),y=this.dfd_,D=this;if(this.form_.validate()&&z&&C){this.btnSubmit_.set("label",b.lblSigning);var B=a.id.findCredential(D.resUrl_,z),u=function(E){D.btnSubmit_.set("label",
b.lblOk);D.btnSubmit_.set("disabled",!1);k.hide(D.errMsg_);D.hide();g._DialogLevelManager.hide(D);var v=D.serverInfo_;D.dfd_=D.serverInfo_=D.generateDfd_=D.resUrl_=null;var A=B;if(E){var F=E.token;var I=d.isDefined(E.expires)?Number(E.expires):null;var N=!!E.ssl;A?(A.userId=z,A.token=F,A.expires=I,A.validity=E.validity,A.ssl=N,A.creationTime=(new Date).getTime()):A=new l({userId:z,server:v.server,token:F,expires:I,ssl:N,isAdmin:D.admin_,validity:E.validity})}y.callback(A)};B&&!B._enqueued?u():(D.btnSubmit_.set("disabled",
!0),D.generateDfd_=a.id.generateToken(this.serverInfo_,{username:z,password:C},{isAdmin:this.admin_}).addCallback(u).addErrback(function(E){D.btnSubmit_.set("disabled",!1);D.generateDfd_=null;D.btnSubmit_.set("label",b.lblOk);q.set(D.errMsg_,"innerHTML",E&&E.code?b.invalidUser:b.noAuthService);k.show(D.errMsg_)}))}},cancel_:function(){t.generateDfd_&&t.generateDfd_.cancel();var z=t.dfd_,C=t.resUrl_,y=t.serverInfo_;t.btnSubmit_.set("disabled",!1);t.dfd_=t.serverInfo_=t.generateDfd_=t.resUrl_=null;
k.hide(t.errMsg_);g._DialogLevelManager.hide(t);t.esriIdMgr_.onDialogCancel({resourceUrl:C,serverInfo:y});C=Error("ABORTED");C.name="identity-manager:user-aborted";C.code="IdentityManager.2";C.log=!!c.isDebug;z.errback(C)}});p=t.domNode;t.form_=f.byNode(G.query(".esriIdForm",p)[0]);t.txtUser_=f.byNode(G.query(".esriIdUser",p)[0]);t.txtPwd_=f.byNode(G.query(".esriIdPwd",p)[0]);t.btnSubmit_=f.byNode(G.query(".esriIdSubmit",p)[0]);t.btnCancel_=f.byNode(G.query(".esriIdCancel",p)[0]);t.resLink_=G.query(".resLink",
p)[0];t.serverLink_=G.query(".serverLink",p)[0];t.errMsg_=G.query(".esriErrorMsg",p)[0];t.connect(t.txtUser_,"onKeyPress",t.keypressed_);t.connect(t.txtPwd_,"onKeyPress",t.keypressed_);t.connect(t.btnSubmit_,"onClick",t.execute_);t.connect(t.btnCancel_,"onClick",t.onCancel);t.connect(t,"onCancel",t.cancel_);return t}});w("extend-esri")&&(a.IdentityManagerDialog=a.IdentityManager=x);return x})},"dijit/Dialog":function(){define("require dojo/_base/array dojo/aspect dojo/_base/declare dojo/Deferred dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/fx dojo/i18n dojo/keys dojo/_base/lang dojo/on dojo/ready dojo/sniff dojo/touch dojo/window dojo/dnd/Moveable dojo/dnd/TimedMoveable ./focus ./_base/manager ./_Widget ./_TemplatedMixin ./_CssStateMixin ./form/_FormMixin ./_DialogMixin ./DialogUnderlay ./layout/ContentPane ./layout/utils dojo/text!./templates/Dialog.html ./a11yclick dojo/i18n!./nls/common".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C,y,D,B,u,E,v,A,F,I,N){function da(){}var ba=new h;ba.resolve(!0);y=r("dijit._DialogBase"+(e("dojo-bidi")?"_NoBidi":""),[B,E,v,u],{templateString:N,baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},_setTitleAttr:{node:"titleNode",type:"innerHTML"},open:!1,duration:y.defaultDuration,refocus:!0,autofocus:!0,_firstFocusItem:null,_lastFocusItem:null,draggable:!0,_setDraggableAttr:function(la){this._set("draggable",la)},maxRatio:.9,
closable:!0,_setClosableAttr:function(la){this.closeButtonNode.style.display=la?"":"none";this._set("closable",la)},postMixInProperties:function(){var la=a.getLocalization("dijit","common");k.mixin(this,la);this.inherited(arguments)},postCreate:function(){f.set(this.domNode,{display:"none",position:"absolute"});this.ownerDocumentBody.appendChild(this.domNode);this.inherited(arguments);c.after(this,"onExecute",k.hitch(this,"hide"),!0);c.after(this,"onCancel",k.hitch(this,"hide"),!0);l(this.closeButtonNode,
b.press,function(la){la.stopPropagation()});this._modalconnects=[]},onLoad:function(){this.resize();this._position();this.autofocus&&xa.isTop(this)&&(this._getFocusItems(),C.focus(this._firstFocusItem));this.inherited(arguments)},focus:function(){this._getFocusItems();C.focus(this._firstFocusItem)},_endDrag:function(){var la=n.position(this.domNode),ha=p.getBox(this.ownerDocument);la.y=Math.min(Math.max(la.y,0),ha.h-la.h);la.x=Math.min(Math.max(la.x,0),ha.w-la.w);this._relativePosition=la;this._position()},
_setup:function(){var la=this.domNode;this.titleBar&&this.draggable?(this._moveable=new (6==e("ie")?z:t)(la,{handle:this.titleBar}),c.after(this._moveable,"onMoveStop",k.hitch(this,"_endDrag"),!0)):q.add(la,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":x.map(this["class"].split(/\s/),function(ha){return ha+"_underlay"}).join(" "),_onKeyDown:k.hitch(this,"_onKey"),ownerDocument:this.ownerDocument}},_size:function(){this.resize()},_position:function(){if(!q.contains(this.ownerDocumentBody,
"dojoMove")){var la=this.domNode,ha=p.getBox(this.ownerDocument),sa=this._relativePosition,Ca=n.position(la);f.set(la,{left:Math.floor(ha.l+(sa?Math.min(sa.x,ha.w-Ca.w):(ha.w-Ca.w)/2))+"px",top:Math.floor(ha.t+(sa?Math.min(sa.y,ha.h-Ca.h):(ha.h-Ca.h)/2))+"px"})}},_onKey:function(la){if(la.keyCode==d.TAB){this._getFocusItems();var ha=la.target;this._firstFocusItem==this._lastFocusItem?(la.stopPropagation(),la.preventDefault()):ha==this._firstFocusItem&&la.shiftKey?(C.focus(this._lastFocusItem),la.stopPropagation(),
la.preventDefault()):ha!=this._lastFocusItem||la.shiftKey||(C.focus(this._firstFocusItem),la.stopPropagation(),la.preventDefault())}else this.closable&&la.keyCode==d.ESCAPE&&(this.onCancel(),la.stopPropagation(),la.preventDefault())},show:function(){if(this.open)return ba.promise;this._started||this.startup();this._alreadyInitialized||(this._setup(),this._alreadyInitialized=!0);this._fadeOutDeferred&&(this._fadeOutDeferred.cancel(),xa.hide(this));var la=p.get(this.ownerDocument);this._modalconnects.push(l(la,
"scroll",k.hitch(this,"resize",null)));this._modalconnects.push(l(this.domNode,"keydown",k.hitch(this,"_onKey")));f.set(this.domNode,{opacity:0,display:""});this._set("open",!0);this._onShow();this.resize();this._position();this._fadeInDeferred=new h(k.hitch(this,function(){ha.stop();delete this._fadeInDeferred}));this._fadeInDeferred.then(void 0,da);la=this._fadeInDeferred.promise;var ha=g.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:k.hitch(this,function(){xa.show(this,this.underlayAttrs)}),
onEnd:k.hitch(this,function(){this.autofocus&&xa.isTop(this)&&(this._getFocusItems(),C.focus(this._firstFocusItem));this._fadeInDeferred.resolve(!0);delete this._fadeInDeferred})}).play();return la},hide:function(){if(!this._alreadyInitialized||!this.open)return ba.promise;this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred=new h(k.hitch(this,function(){ha.stop();delete this._fadeOutDeferred}));this._fadeOutDeferred.then(void 0,da);this._fadeOutDeferred.then(k.hitch(this,"onHide"));
var la=this._fadeOutDeferred.promise;var ha=g.fadeOut({node:this.domNode,duration:this.duration,onEnd:k.hitch(this,function(){this.domNode.style.display="none";xa.hide(this);this._fadeOutDeferred.resolve(!0);delete this._fadeOutDeferred})}).play();this._scrollConnected&&(this._scrollConnected=!1);for(var sa;sa=this._modalconnects.pop();)sa.remove();this._relativePosition&&delete this._relativePosition;this._set("open",!1);return la},resize:function(la){if("none"!=this.domNode.style.display){this._checkIfSingleChild();
if(!la){this._shrunk&&(this._singleChild&&"undefined"!=typeof this._singleChildOriginalStyle&&(this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle,delete this._singleChildOriginalStyle),x.forEach([this.domNode,this.containerNode,this.titleBar,this.actionBarNode],function(oa){oa&&f.set(oa,{position:"static",width:"auto",height:"auto"})}),this.domNode.style.position="absolute");var ha=p.getBox(this.ownerDocument);ha.w*=this.maxRatio;ha.h*=this.maxRatio;var sa=n.position(this.domNode);
this._shrunk=!1;sa.w>=ha.w&&(la={w:ha.w},n.setMarginBox(this.domNode,la),sa=n.position(this.domNode),this._shrunk=!0);sa.h>=ha.h&&(la||(la={w:sa.w}),la.h=ha.h,this._shrunk=!0);la&&(la.w||(la.w=sa.w),la.h||(la.h=sa.h))}if(la){n.setMarginBox(this.domNode,la);ha=[];this.titleBar&&ha.push({domNode:this.titleBar,region:"top"});this.actionBarNode&&ha.push({domNode:this.actionBarNode,region:"bottom"});sa={domNode:this.containerNode,region:"center"};ha.push(sa);var Ca=I.marginBox2contentBox(this.domNode,
la);I.layoutChildren(this.domNode,Ca,ha);this._singleChild?(ha=I.marginBox2contentBox(this.containerNode,sa),this._singleChild.resize({w:ha.w,h:ha.h})):(this.containerNode.style.overflow="auto",this._layoutChildren())}else this._layoutChildren();e("touch")||la||this._position()}},_layoutChildren:function(){x.forEach(this.getChildren(),function(la){la.resize&&la.resize()})},destroy:function(){this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred&&this._fadeOutDeferred.cancel();
this._moveable&&this._moveable.destroy();for(var la;la=this._modalconnects.pop();)la.remove();xa.hide(this);this.inherited(arguments)}});e("dojo-bidi")&&(y=r("dijit._DialogBase",y,{_setTitleAttr:function(la){this._set("title",la);this.titleNode.innerHTML=la;this.applyTextDir(this.titleNode)},_setTextDirAttr:function(la){this._created&&this.textDir!=la&&(this._set("textDir",la),this.set("title",this.title))}}));var na=r("dijit.Dialog",[F,y],{});na._DialogBase=y;var xa=na._DialogLevelManager={_beginZIndex:950,
show:function(la,ha){W[W.length-1].focus=C.curNode;var sa=W[W.length-1].dialog?W[W.length-1].zIndex+2:na._DialogLevelManager._beginZIndex;f.set(la.domNode,"zIndex",sa);A.show(ha,sa-1);W.push({dialog:la,underlayAttrs:ha,zIndex:sa})},hide:function(la){if(W[W.length-1].dialog==la){W.pop();var ha=W[W.length-1];1==W.length?A.hide():A.show(ha.underlayAttrs,ha.zIndex-1);if(la.refocus&&(la=ha.focus,!ha.dialog||la&&w.isDescendant(la,ha.dialog.domNode)||(ha.dialog._getFocusItems(),la=ha.dialog._firstFocusItem),
la))try{la.focus()}catch(sa){}}else ha=x.indexOf(x.map(W,function(sa){return sa.dialog}),la),-1!=ha&&W.splice(ha,1)},isTop:function(la){return W[W.length-1].dialog==la}},W=na._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];C.watch("curNode",function(la,ha,sa){la=W[W.length-1].dialog;if(sa&&la&&!la._fadeOutDeferred&&sa.ownerDocument==la.ownerDocument){do if(sa==la.domNode||q.contains(sa,"dijitPopup"))return;while(sa=sa.parentNode);la.focus()}});e("dijit-legacy-requires")&&m(0,function(){G(["dijit/TooltipDialog"])});
return na})},"dojo/dnd/Moveable":function(){define("../_base/array ../_base/declare ../_base/lang ../dom ../dom-class ../Evented ../has ../on ../topic ../touch ./common ./Mover ../_base/window".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,k){function l(b,p){"touchAction"in document.body.style?m="touchAction":"msTouchAction"in document.body.style&&(m="msTouchAction");e=function(t,z){t.style[m]=z};e(b,p)}var m,e=function(){};q("touch-action")&&(e=l);return x("dojo.dnd.Moveable",[w],{handle:"",delay:0,
skip:!1,constructor:function(b,p){this.node=r.byId(b);e(this.node,"none");p||(p={});this.handle=p.handle?r.byId(p.handle):null;this.handle||(this.handle=this.node);this.delay=0<p.delay?p.delay:0;this.skip=p.skip;this.mover=p.mover?p.mover:d;this.events=[n(this.handle,g.press,c.hitch(this,"onMouseDown")),n(this.handle,"dragstart",c.hitch(this,"onSelectStart")),n(this.handle,"selectstart",c.hitch(this,"onSelectStart"))]},markupFactory:function(b,p,t){return new t(p,b)},destroy:function(){G.forEach(this.events,
function(b){b.remove()});e(this.node,"");this.events=this.node=this.handle=null},onMouseDown:function(b){if(!this.skip||!a.isFormElement(b)){if(this.delay)this.events.push(n(this.handle,g.move,c.hitch(this,"onMouseMove")),n(this.handle.ownerDocument,g.release,c.hitch(this,"onMouseUp"))),this._lastX=b.pageX,this._lastY=b.pageY;else this.onDragDetected(b);b.stopPropagation();b.preventDefault()}},onMouseMove:function(b){if(Math.abs(b.pageX-this._lastX)>this.delay||Math.abs(b.pageY-this._lastY)>this.delay)this.onMouseUp(b),
this.onDragDetected(b);b.stopPropagation();b.preventDefault()},onMouseUp:function(b){for(var p=0;2>p;++p)this.events.pop().remove();b.stopPropagation();b.preventDefault()},onSelectStart:function(b){this.skip&&a.isFormElement(b)||(b.stopPropagation(),b.preventDefault())},onDragDetected:function(b){new this.mover(this.node,b,this)},onMoveStart:function(b){f.publish("/dnd/move/start",b);h.add(k.body(),"dojoMove");h.add(this.node,"dojoMoveItem")},onMoveStop:function(b){f.publish("/dnd/move/stop",b);h.remove(k.body(),
"dojoMove");h.remove(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(b,p){this.onMoving(b,p);var t=b.node.style;t.left=p.l+"px";t.top=p.t+"px";this.onMoved(b,p)},onMoving:function(){},onMoved:function(){}})})},"dojo/dnd/common":function(){define(["../sniff","../_base/kernel","../_base/lang","../dom"],function(G,x,c,r){var h=c.getObject("dojo.dnd",!0);h.getCopyKeyState=function(w){return w[G("mac")?"metaKey":"ctrlKey"]};h._uniqueId=0;h.getUniqueId=function(){do var w=x._scopeName+
"Unique"+ ++h._uniqueId;while(r.byId(w));return w};h._empty={};h.isFormElement=function(w){w=w.target;3==w.nodeType&&(w=w.parentNode);return 0<=" a button textarea input select option ".indexOf(" "+w.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(G,x,c,r,h,w,q,n,f,g,a,d,k){return x("dojo.dnd.Mover",
[f],{constructor:function(l,m,e){function b(p){p.preventDefault();p.stopPropagation()}this.node=w.byId(l);this.marginBox={l:m.pageX,t:m.pageY};this.mouseButton=m.button;m=this.host=e;l=l.ownerDocument;this.events=[g(l,a.move,c.hitch(this,"onFirstMove")),g(l,a.move,c.hitch(this,"onMouseMove")),g(l,a.release,c.hitch(this,"onMouseUp")),g(l,"dragstart",b),g(l.body,"selectstart",b)];k.autoScrollStart(l);if(m&&m.onMoveStart)m.onMoveStart(this)},onMouseMove:function(l){k.autoScroll(l);var m=this.marginBox;
this.host.onMove(this,{l:m.l+l.pageX,t:m.t+l.pageY},l);l.preventDefault();l.stopPropagation()},onMouseUp:function(l){(r("webkit")&&r("mac")&&2==this.mouseButton?0==l.button:this.mouseButton==l.button)&&this.destroy();l.preventDefault();l.stopPropagation()},onFirstMove:function(l){var m=this.node.style,e=this.host;switch(m.position){case "relative":case "absolute":var b=Math.round(parseFloat(m.left))||0;m=Math.round(parseFloat(m.top))||0;break;default:m.position="absolute";m=q.getMarginBox(this.node);
b=h.doc.body;var p=n.getComputedStyle(b),t=q.getMarginBox(b,p);p=q.getContentBox(b,p);b=m.l-(p.l-t.l);m=m.t-(p.t-t.t)}this.marginBox.l=b-this.marginBox.l;this.marginBox.t=m-this.marginBox.t;if(e&&e.onFirstMove)e.onFirstMove(this,l);this.events.shift().remove()},destroy:function(){G.forEach(this.events,function(m){m.remove()});var l=this.host;if(l&&l.onMoveStop)l.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(G,x,c,r,h,w){var q={};G.setObject("dojo.dnd.autoscroll",q);q.getViewport=w.getBox;q.V_TRIGGER_AUTOSCROLL=32;q.H_TRIGGER_AUTOSCROLL=32;q.V_AUTOSCROLL_VALUE=16;q.H_AUTOSCROLL_VALUE=16;var n,f=c.doc,g=Infinity,a=Infinity;q.autoScrollStart=function(d){f=d;n=w.getBox(f);d=c.body(f).parentNode;g=Math.max(d.scrollHeight-n.h,0);a=Math.max(d.scrollWidth-n.w,0)};q.autoScroll=function(d){var k=n||w.getBox(f),l=c.body(f).parentNode,m=0,e=0;d.clientX<q.H_TRIGGER_AUTOSCROLL?m=-q.H_AUTOSCROLL_VALUE:d.clientX>
k.w-q.H_TRIGGER_AUTOSCROLL&&(m=Math.min(q.H_AUTOSCROLL_VALUE,a-l.scrollLeft));d.clientY<q.V_TRIGGER_AUTOSCROLL?e=-q.V_AUTOSCROLL_VALUE:d.clientY>k.h-q.V_TRIGGER_AUTOSCROLL&&(e=Math.min(q.V_AUTOSCROLL_VALUE,g-l.scrollTop));window.scrollBy(m,e)};q._validNodes={div:1,p:1,td:1};q._validOverflow={auto:1,scroll:1};q.autoScrollNodes=function(d){for(var k,l,m,e,b,p=0,t=0,z=d.target;z;){if(1==z.nodeType&&z.tagName.toLowerCase()in q._validNodes){m=h.getComputedStyle(z);b=m.overflowX.toLowerCase()in q._validOverflow;
e=m.overflowY.toLowerCase()in q._validOverflow;if(b||e)k=r.getContentBox(z,m),l=r.position(z,!0);if(b){m=Math.min(q.H_TRIGGER_AUTOSCROLL,k.w/2);b=d.pageX-l.x;if(x("webkit")||x("opera"))b+=c.body().scrollLeft;p=0;0<b&&b<k.w&&(b<m?p=-m:b>k.w-m&&(p=m),z.scrollLeft+=p)}if(e){e=Math.min(q.V_TRIGGER_AUTOSCROLL,k.h/2);m=d.pageY-l.y;if(x("webkit")||x("opera"))m+=c.body().scrollTop;t=0;0<m&&m<k.h&&(m<e?t=-e:m>k.h-e&&(t=e),z.scrollTop+=t)}if(p||t)return}try{z=z.parentNode}catch(C){z=null}}q.autoScroll(d)};
return q})},"dojo/dnd/TimedMoveable":function(){define(["../_base/declare","./Moveable"],function(G,x){var c=x.prototype.onMove;return G("dojo.dnd.TimedMoveable",x,{timeout:40,constructor:function(r,h){h||(h={});h.timeout&&"number"==typeof h.timeout&&0<=h.timeout&&(this.timeout=h.timeout)},onMoveStop:function(r){r._timer&&(clearTimeout(r._timer),c.call(this,r,r._leftTop));x.prototype.onMoveStop.apply(this,arguments)},onMove:function(r,h){r._leftTop=h;if(!r._timer){var w=this;r._timer=setTimeout(function(){r._timer=
null;c.call(w,r,r._leftTop)},this.timeout)}}})})},"dijit/DialogUnderlay":function(){define("dojo/_base/declare dojo/_base/lang dojo/aspect dojo/dom-attr dojo/dom-style dojo/on dojo/window ./_Widget ./_TemplatedMixin ./BackgroundIframe ./Viewport ./main".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d){var k=G("dijit.DialogUnderlay",[n,f],{templateString:"\x3cdiv class\x3d'dijitDialogUnderlayWrapper'\x3e\x3cdiv class\x3d'dijitDialogUnderlay' tabIndex\x3d'-1' data-dojo-attach-point\x3d'node'\x3e\x3c/div\x3e\x3c/div\x3e",
dialogId:"","class":"",_modalConnects:[],_setDialogIdAttr:function(l){r.set(this.node,"id",l+"_underlay");this._set("dialogId",l)},_setClassAttr:function(l){this.node.className="dijitDialogUnderlay "+l;this._set("class",l)},postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);this.own(w(this.domNode,"keydown",x.hitch(this,"_onKeyDown")));this.inherited(arguments)},layout:function(){var l=this.node.style,m=this.domNode.style;m.display="none";var e=q.getBox(this.ownerDocument);m.top=
e.t+"px";m.left=e.l+"px";l.width=e.w+"px";l.height=e.h+"px";m.display="block"},show:function(){this.domNode.style.display="block";this.open=!0;this.layout();this.bgIframe=new g(this.domNode);var l=q.get(this.ownerDocument);this._modalConnects=[a.on("resize",x.hitch(this,"layout")),w(l,"scroll",x.hitch(this,"layout"))]},hide:function(){this.bgIframe.destroy();delete this.bgIframe;for(this.domNode.style.display="none";this._modalConnects.length;)this._modalConnects.pop().remove();this.open=!1},destroy:function(){for(;this._modalConnects.length;)this._modalConnects.pop().remove();
this.inherited(arguments)},_onKeyDown:function(){}});k.show=function(l,m){var e=k._singleton;!e||e._destroyed?e=d._underlay=k._singleton=new k(l):l&&e.set(l);h.set(e.domNode,"zIndex",m);e.open||e.show()};k.hide=function(){var l=k._singleton;l&&!l._destroyed&&l.hide()};return k})},"esri/Credential":function(){define(["dojo/_base/declare","dojo/has","./kernel","./IdentityManagerBase"],function(G,x,c,r){G=G(r.Credential,{});x("extend-esri")&&(c.Credential=G);return G})},"esri/IdentityManagerBase":function(){define("dojo/_base/declare dojo/_base/config dojo/_base/lang dojo/_base/array dojo/_base/Deferred dojo/_base/url dojo/sniff dojo/io-query dojo/on ./kernel ./config ./lang ./ServerInfo ./urlUtils ./deferredUtils ./request ./Evented ./OAuthCredential ./arcgis/OAuthInfo".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t){var z={},C=function(v){var A=(new w(v.owningSystemUrl)).host;v=(new w(v.server)).host;var F=/.+\.arcgis\.com$/i;return F.test(A)&&F.test(v)},y=function(v,A){return!!(C(v)&&A&&r.some(A,function(F){return F.test(v.server)}))},D=null,B=null;try{D=window.localStorage,B=window.sessionStorage}catch(v){}var u=G(b,{declaredClass:"esri.IdentityManagerBase",constructor:function(){this._portalConfig=c.getObject("esriGeowConfig");this.serverInfos=[];this.oAuthInfos=
[];this.credentials=[];this._soReqs=[];this._xoReqs=[];this._portals=[];this._getOAuthLocationParams();f(window,"pageshow",c.hitch(this,this._pageShowHandler))},defaultOAuthInfo:null,defaultTokenValidity:60,tokenValidity:null,normalizeWebTierAuth:!1,_appUrlObj:l.urlToObject(window.location.href),_postMessageAuthHandle:null,_busy:null,_rejectOnPersistedPageShow:!1,_oAuthLocationParams:null,_gwTokenUrl:"/sharing/generateToken",_agsRest:"/rest/services",_agsPortal:/\/sharing(\/|$)/i,_agsAdmin:/(https?:\/\/[^\/]+\/[^\/]+)\/admin\/?(\/.*)?$/i,
_adminSvcs:/\/rest\/admin\/services(\/|$)/i,_gwDomains:[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/generateToken"},
{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/generateToken"}],_legacyFed:[],_regexSDirUrl:/http.+\/rest\/services\/?/ig,_regexServerType:/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|KnowledgeGraphServer|MapServer|MissionServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer|VideoServer)).*/ig,
_gwUser:/http.+\/users\/([^\/]+)\/?.*/i,_gwItem:/http.+\/items\/([^\/]+)\/?.*/i,_gwGroup:/http.+\/groups\/([^\/]+)\/?.*/i,_errorCodes:[499,498,403,401],_rePortalTokenSvc:/\/sharing(\/rest)?\/generatetoken/i,_publicUrls:[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],_createDefaultOAuthInfo:!0,_hasTestedIfAppIsOnPortal:!1,registerServers:function(v){var A=this.serverInfos;A?(v=r.filter(v,function(F){return!this.findServerInfo(F.server)},this),this.serverInfos=A.concat(v)):
this.serverInfos=v;r.forEach(v,function(F){F.owningSystemUrl&&this._portals.push(F.owningSystemUrl);if(F.hasPortal){this._portals.push(F.server);var I=a.defaults.io.corsEnabledServers,N=this._getOrigin(F.tokenServiceUrl);l.canUseXhr(F.server)||I.push(F.server.replace(/^https?:\/\//i,""));l.canUseXhr(N)||I.push(N.replace(/^https?:\/\//i,""))}},this)},registerOAuthInfos:function(v){var A=this.oAuthInfos;A?(r.forEach(v,function(F){(F=this.findOAuthInfo(F.portalUrl))&&A.splice(A.indexOf(F),1)},this),
this.oAuthInfos=A.concat(v)):this.oAuthInfos=v},registerToken:function(v){v=d.mixin({},v);var A=this._sanitizeUrl(v.server),F=this.findServerInfo(A),I=!0,N;F||(F=new k,F.server=this._getServerInstanceRoot(A),F.tokenServiceUrl=this._getTokenSvcUrl(A),F.hasPortal=!0,this.registerServers([F]));(N=this.findCredential(A,v.userId))?(delete v.server,c.mixin(N,v),I=!1):(N=new E({userId:v.userId,server:F.server,token:v.token,expires:v.expires,ssl:v.ssl,scope:this._isServerRsrc(A)?"server":"portal"}),N.resources=
[A],this.credentials.push(N));N.onTokenChange(!1);I||N.refreshServerTokens()},toJson:function(){return d.fixJson({serverInfos:r.map(this.serverInfos,function(v){return v.toJson()}),oAuthInfos:r.map(this.oAuthInfos,function(v){return v.toJson()}),credentials:r.map(this.credentials,function(v){return v.toJson()})})},initialize:function(v){if(v){c.isString(v)&&(v=JSON.parse(v));var A=v.serverInfos,F=v.oAuthInfos;v=v.credentials;if(A){var I=[];r.forEach(A,function(da){da.server&&da.tokenServiceUrl&&I.push(da.declaredClass?
da:new k(da))});I.length&&this.registerServers(I)}if(F){var N=[];r.forEach(F,function(da){da.appId&&N.push(da.declaredClass?da:new t(da))});N.length&&this.registerOAuthInfos(N)}v&&r.forEach(v,function(da){da.userId&&da.server&&da.token&&da.expires&&da.expires>(new Date).getTime()&&(da=da.declaredClass?da:new E(da),da.onTokenChange(),this.credentials.push(da))},this)}},findServerInfo:function(v){var A;v=this._sanitizeUrl(v);r.some(this.serverInfos,function(F){this._hasSameServerInstance(F.server,v)&&
(A=F);return!!A},this);return A},findOAuthInfo:function(v){var A;v=this._sanitizeUrl(v);r.some(this.oAuthInfos,function(F){this._hasSameServerInstance(F.portalUrl,v)&&(A=F);return!!A},this);return A},findCredential:function(v,A){var F;v=this._sanitizeUrl(v);var I=this._isServerRsrc(v)?"server":"portal";A?r.some(this.credentials,function(N){this._hasSameServerInstance(N.server,v)&&A===N.userId&&N.scope===I&&(F=N);return!!F},this):r.some(this.credentials,function(N){this._hasSameServerInstance(N.server,
v)&&-1!==this._getIdenticalSvcIdx(v,N)&&N.scope===I&&(F=N);return!!F},this);return F},getCredential:function(v,A){var F=!0;if(d.isDefined(A))if(c.isObject(A)){var I=!!A.token;var N=A.error;F=!1!==A.prompt}else I=A;v=this._sanitizeUrl(v);var da=new h(m._dfdCanceller),ba=this._isAdminResource(v);if((I=I?this.findCredential(v):null)&&N&&498===N.code)I.destroy();else if(I)return v=Error("You are currently signed in as: '"+I.userId+"'. You do not have access to this resource: "+v),v.name="identity-manager:not-authorized",
v.code="IdentityManagerBase.1",v.httpCode=N&&N.httpCode,v.messageCode=N?N.messageCode:null,v.subcode=N?N.subcode:null,v.details=N?N.details:null,v.log=!!x.isDebug,da.errback(v),da;if(N=this._findCredential(v,A))return da.callback(N),da;var na=this.findServerInfo(v);if(na)!na.hasServer&&this._isServerRsrc(v)&&(na._restInfoDfd=this._getTokenSvcUrl(v,!0),na.hasServer=!0);else{N=this._getTokenSvcUrl(v);if(!N)return v=Error("Unknown resource - could not find token service endpoint."),v.name="identity-manager:unknown-resource",
v.code="IdentityManagerBase.2",v.log=!!x.isDebug,da.errback(v),da;na=new k;na.server=this._getServerInstanceRoot(v);c.isString(N)?(na.tokenServiceUrl=N,na.hasPortal=!0):(na._restInfoDfd=N,na.hasServer=!0);this.registerServers([na])}na.hasPortal&&void 0===na._selfReq&&(F||l.hasSameOrigin(na.tokenServiceUrl,window.location.origin)||this._gwDomains.some(function(xa){return xa.tokenServiceUrl===na.tokenServiceUrl}))&&(na._selfReq={owningTenant:A&&A.owningTenant,selfDfd:this._getPortalSelf(na.tokenServiceUrl.replace(this._rePortalTokenSvc,
"/sharing/rest/portals/self"),v)});return this._enqueue(v,na,A,da,ba)},getResourceName:function(v){return this._isRESTService(v)?v.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(v)&&v.replace(this._gwUser,"$1")||this._gwItem.test(v)&&v.replace(this._gwItem,"$1")||this._gwGroup.test(v)&&v.replace(this._gwGroup,"$1")||""},generateToken:function(v,A,F){var I=this._rePortalTokenSvc.test(v.tokenServiceUrl),N=new w(window.location.href.toLowerCase()),da=!A;var ba=
v.shortLivedTokenValidity;if(A){var na=g.id.tokenValidity||ba||g.id.defaultTokenValidity;na>ba&&(na=ba)}if(F){var xa=F.isAdmin;var W=F.serverUrl;var la=F.token;var ha=F.ssl;v.customParameters=F.customParameters}if(xa)ba=v.adminTokenServiceUrl;else{ba=v.tokenServiceUrl;var sa=new w(ba.toLowerCase());v.webTierAuth&&F&&F.serverUrl&&!ha&&"http"===N.scheme&&(l.hasSameOrigin(N.uri,ba,!0)||"https"===sa.scheme&&N.host===sa.host&&"7080"===N.port&&"7443"===sa.port)&&(ba=ba.replace(/^https:/i,"http:").replace(/:7443/i,
":7080"));da&&I&&(ba=ba.replace(/\/rest/i,""))}xa=c.mixin({url:ba,content:c.mixin({request:"getToken",username:A&&A.username,password:A&&A.password,serverUrl:W,token:la,expiration:na,referer:xa||I?window.location.host:null,client:xa?"referer":null,f:"json"},v.customParameters),handleAs:"json",callbackParamName:da?"callback":void 0},F&&F.ioArgs);F={usePost:!da,disableIdentityLookup:!0,useProxy:this._useProxy(v,F)};I||(xa.withCredentials=!1);I=e(xa,F);I.addCallback(function(Ca){if(!Ca||!Ca.token)return Ca=
Error("Unable to generate token"),Ca.name="identity-manager:authentication-failed",Ca.code="IdentityManagerBase.3",Ca.log=!!x.isDebug,Ca;var oa=v.server;z[oa]||(z[oa]={});A&&(z[oa][A.username]=A.password);Ca.validity=na;return Ca});I.addErrback(function(Ca){});return I},isBusy:function(){return!!this._busy},checkSignInStatus:function(v){var A=new h;this.checkAppAccess(v,"").then(function(F){A.resolve(F.credential)}).catch(function(F){A.reject(F)});return A},checkAppAccess:function(v,A,F){var I=this,
N=!1;return this.getCredential(v,{prompt:!1}).then(function(da){var ba={f:"json"};if("portal"===da.scope)if(A&&(I._doPortalSignIn(v)||F&&F.force)){var na=da.server+"/sharing/rest/oauth2/validateAppAccess";ba.client_id=A}else if(da.token)na=da.server+"/sharing/rest";else return{credential:da};else if(da.token)na=da.server+"/rest/services";else return{credential:da};da.token&&(ba.token=da.token);return e({url:na,content:ba,callbackParamName:"callback"},{disableIdentityLookup:!0}).then(function(xa){if(!1===
xa.valid){var W=Error("You are currently signed in as: '"+da.userId+"'.  You do not have access to this app: '"+A+"'.");W.name="identity-manager:not-authorized";W.code="IdentityManagerBase.1";W.log=!!x.isDebug;W.details=xa;throw W;}N=!!xa.viewOnlyUserTypeApp;return{credential:da}}).catch(function(xa){if("IdentityManagerBase.1"===xa.code||400===xa.code)throw 400===xa.code&&(xa.name="identity-manager:invalid-request"),xa;if(498===xa.code)throw da.destroy(),xa=Error("User is not signed in."),xa.name=
"identity-manager:not-authenticated",xa.code="IdentityManagerBase.6",xa.log=!!x.isDebug,xa;return{credential:da}})}).then(function(da){return{credential:da.credential,viewOnly:N}})},setProtocolErrorHandler:function(v){this._protocolFunc=v},signIn:function(){},oAuthSignIn:function(){},onCredentialCreate:function(){},onCredentialsDestroy:function(){},destroyCredentials:function(){if(this.credentials){var v=this.credentials.slice();r.forEach(v,function(A){A.destroy()})}this.onCredentialsDestroy()},enablePostMessageAuth:function(v){v||
(v="https://www.arcgis.com/sharing/rest");this._postMessageAuthHandle&&this._postMessageAuthHandle.remove();this._postMessageAuthHandle=f(window,"message",function(A){(A.origin===window.location.origin||d.endsWith(A.origin,".arcgis.com"))&&A.data&&"arcgis:auth:requestCredential"===A.data.type&&this.getCredential(v).then(function(F){A.source.postMessage({type:"arcgis:auth:credential",credential:{expires:F.expires,server:F.server,ssl:F.ssl,token:F.token,userId:F.userId}},A.origin)}).catch(function(F){A.source.postMessage({type:"arcgis:auth:error",
error:{name:F.name,message:F.message}},A.origin)})}.bind(this))},disablePostMessageAuth:function(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)},_getOAuthLocationParams:function(){var v=window.location.hash;if(v){"#"===v.charAt(0)&&(v=v.substring(1));v=n.queryToObject(v);var A=!1;if(v.access_token&&v.expires_in&&v.state&&v.hasOwnProperty("username"))try{v.state=JSON.parse(v.state),v.state.portalUrl&&(this._oAuthLocationParams=v,A=!0)}catch(I){}else if(v.error&&
v.error_description&&(console.log("IdentityManager OAuth Error: ",v.error," - ",v.error_description),"access_denied"===v.error&&(A=!0,v.state)))try{v.state=JSON.parse(v.state)}catch(I){}A&&(window.location.hash=v.state&&v.state.hash||"")}if(v=window.location.search){"?"===v.charAt(0)&&(v=v.substring(1));v=n.queryToObject(v);A=!1;if(v.code&&v.state)try{v.state=JSON.parse(v.state),v.state.portalUrl&&v.state.uid&&(this._oAuthLocationParams=v,A=!0)}catch(I){}else if(v.error&&v.error_description&&(console.log("IdentityManager OAuth Error: ",
v.error," - ",v.error_description),"access_denied"===v.error&&(A=!0,v.state)))try{v.state=JSON.parse(v.state)}catch(I){}if(A){var F=d.mixin({},v);"code error error_description message_code persist state".split(" ").forEach(function(I){delete F[I]});A=n.objectToQuery(F);window.history.replaceState(window.history.state,"",window.location.pathname+(A?"?"+A:"")+(v.state&&v.state.hash||""))}}},_getOAuthToken:function(v,A,F,I,N){v=v.replace(/^http:/i,"https:");return e({url:v+"/sharing/rest/oauth2/token",
content:I&&N?{grant_type:"authorization_code",code:A,redirect_uri:I,client_id:F,code_verifier:N}:{grant_type:"refresh_token",refresh_token:A,client_id:F}},{disableIdentityLookup:!0,usePost:!0})},_pageShowHandler:function(v){v.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow&&(v=Error("ABORTED"),v.name="identity-manager:user-aborted",v.code="IdentityManager.2",v.log=!!x.isDebug,this._errbackFunc(v))},_findCredential:function(v,A){var F=-1,I,N,da=A&&A.token;A=A&&A.resource;var ba=this._isServerRsrc(v)?
"server":"portal",na=r.filter(this.credentials,function(ha){return this._hasSameServerInstance(ha.server,v)&&ha.scope===ba},this);v=A||v;if(na.length)if(1===na.length){A=na[0];var xa=(I=(N=this.findServerInfo(A.server))&&N.owningSystemUrl)&&this.findCredential(I,A.userId);F=this._getIdenticalSvcIdx(v,A);if(da)-1!==F&&(A.resources.splice(F,1),this._removeResource(v,xa));else return-1===F&&A.resources.push(v),this._addResource(v,xa),A}else{var W,la;r.some(na,function(ha){la=this._getIdenticalSvcIdx(v,
ha);return-1!==la?(W=ha,xa=(I=(N=this.findServerInfo(W.server))&&N.owningSystemUrl)&&this.findCredential(I,W.userId),F=la,!0):!1},this);if(da)W&&(W.resources.splice(F,1),this._removeResource(v,xa));else if(W)return this._addResource(v,xa),W}},_findOAuthInfo:function(v){var A=this.findOAuthInfo(v);A||r.some(this.oAuthInfos,function(F){this._isIdProvider(F.portalUrl,v)&&(A=F);return!!A},this);return A},_addResource:function(v,A){A&&-1===this._getIdenticalSvcIdx(v,A)&&A.resources.push(v)},_removeResource:function(v,
A){var F=-1;A&&(F=this._getIdenticalSvcIdx(v,A),-1<F&&A.resources.splice(F,1))},_useProxy:function(v,A){return A&&A.isAdmin&&!l.hasSameOrigin(v.adminTokenServiceUrl,window.location.href)||!this._isPortalDomain(v.tokenServiceUrl)&&10.1==v.currentVersion&&!l.hasSameOrigin(v.tokenServiceUrl,window.location.href)},_getOrigin:function(v){v=new w(v);return v.scheme+"://"+v.host+(d.isDefined(v.port)?":"+v.port:"")},_getServerInstanceRoot:function(v){var A=v.toLowerCase(),F=A.indexOf(this._agsRest);-1===
F&&this._isAdminResource(v)&&(F=this._agsAdmin.test(v)?v.replace(this._agsAdmin,"$1").length:v.search(this._adminSvcs));-1!==F||l.isSecureProxyService(A)||(F=A.indexOf("/sharing"));-1===F&&"/"===A.substr(-1)&&(F=A.length-1);return-1<F?v.substring(0,F):v},_hasSameServerInstance:function(v,A){"/"===v.substr(-1)&&(v=v.slice(0,-1));v=v.toLowerCase();A=this._getServerInstanceRoot(A).toLowerCase();v=this._normalizeAGOLorgDomain(v);A=this._normalizeAGOLorgDomain(A);v=v.substr(v.indexOf(":"));A=A.substr(A.indexOf(":"));
return v===A},_normalizeAGOLorgDomain:function(v){var A=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,F=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,I=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;A.test(v)?v=v.replace(A,"https://www.arcgis.com"):F.test(v)?v=v.replace(F,"https://devext.arcgis.com"):I.test(v)&&(v=v.replace(I,"https://qaext.arcgis.com"));return v},_sanitizeUrl:function(v){var A=(a.defaults.io.proxyUrl||"").toLowerCase(),F=A?v.toLowerCase().indexOf(A+
"?"):-1;-1!==F&&(v=v.substring(F+A.length+1));v=l.normalize(v);return l.urlToObject(v).path},_isRESTService:function(v){return-1<v.indexOf(this._agsRest)},_isAdminResource:function(v){return this._agsAdmin.test(v)||this._adminSvcs.test(v)},_isServerRsrc:function(v){return this._isRESTService(v)||this._isAdminResource(v)},_isIdenticalService:function(v,A){if(this._isRESTService(v)&&this._isRESTService(A)){v=this._getSuffix(v).toLowerCase();A=this._getSuffix(A).toLowerCase();var F=v===A;F||(F=/(.*)\/(MapServer|FeatureServer).*/ig,
F=v.replace(F,"$1")===A.replace(F,"$1"))}else this._isAdminResource(v)&&this._isAdminResource(A)?F=!0:this._isServerRsrc(v)||this._isServerRsrc(A)||!this._isPortalDomain(v)||(F=!0);return F},_isPortalDomain:function(v){var A=new w(v.toLowerCase()),F=this._portalConfig;v=r.some(this._gwDomains,function(I){return I.regex.test(A.uri)});!v&&F&&(v=this._hasSameServerInstance(this._getServerInstanceRoot(F.restBaseUrl),A.uri));v||(!this._arcgisUrl&&(F=c.getObject("esri.arcgis.utils.arcgisUrl"))&&(this._arcgisUrl=
(new w(F)).authority),this._arcgisUrl&&(v=this._arcgisUrl.toLowerCase()===A.authority));v||(v=r.some(this._portals,function(I){return this._hasSameServerInstance(I,A.uri)},this));return v=v||this._agsPortal.test(A.path)},_isIdProvider:function(v,A){var F=-1,I=-1;r.forEach(this._gwDomains,function(na,xa){-1===F&&na.regex.test(v)&&(F=xa);-1===I&&na.regex.test(A)&&(I=xa)});var N=!1;if(-1<F&&-1<I)if(0===F||4===F){if(0===I||4===I)N=!0}else if(1===F){if(1===I||2===I)N=!0}else 2===F?2===I&&(N=!0):3===F&&
3===I&&(N=!0);if(!N){var da=this.findServerInfo(A),ba=da&&da.owningSystemUrl;ba&&C(da)&&this._isPortalDomain(ba)&&this._isIdProvider(v,ba)&&(N=!0)}return N},_isPublic:function(v){v=this._sanitizeUrl(v);return r.some(this._publicUrls,function(A){return A.test(v)})},_getIdenticalSvcIdx:function(v,A){var F=-1;r.some(A.resources,function(I,N){return this._isIdenticalService(v,I)?(F=N,!0):!1},this);return F},_getSuffix:function(v){return v.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")},
_getTokenSvcUrl:function(v){if(this._isRESTService(v)||this._isAdminResource(v)){var A=this._getServerInstanceRoot(v);var F=A+"/admin/generateToken";v=A+"/rest/info";A=e({url:v,content:{f:"json"},handleAs:"json",callbackParamName:"callback"});A.adminUrl_=F;return A}if(this._isPortalDomain(v)){var I="";r.some(this._gwDomains,function(N){N.regex.test(v)&&(I=N.tokenServiceUrl);return!!I});I||r.some(this._portals,function(N){this._hasSameServerInstance(N,v)&&(I=N+this._gwTokenUrl);return!!I},this);I||
(F=v.toLowerCase().indexOf("/sharing"),-1!==F&&(I=v.substring(0,F)+this._gwTokenUrl));I||(I=this._getOrigin(v)+this._gwTokenUrl);I&&(F=(new w(v)).port,/^http:\/\//i.test(v)&&"7080"===F&&(I=I.replace(/:7080/i,":7443")),I=I.replace(/http:/i,"https:"));return I}if(-1!==v.toLowerCase().indexOf("premium.arcgisonline.com"))return"https://premium.arcgisonline.com/server/tokens"},_exchangeToken:function(v,A,F){return e({url:v+"/sharing/rest/oauth2/exchangeToken",content:{f:"json",client_id:A,token:F}},{disableIdentityLookup:!0,
usePost:!0}).then(function(I){return I.token})},_getPlatformSelf:function(v,A){v=v.replace(/^http:/i,"https:");return e({url:v+"/sharing/rest/oauth2/platformSelf",content:{f:"json",expiration:30},headers:{"X-Esri-Auth-Client-Id":A,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},withCredentials:!0},{disableIdentityLookup:!0,usePost:!0})},_getPortalSelf:function(v,A){var F="";r.some(this._gwDomains,function(I){I.regex.test(v)&&(F=I.customBaseUrl);return!!F});if(F)return A=new h,
A.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:F,portalMode:"multitenant",supportsOAuth:!0}),A;"https:"===window.location.protocol?v=v.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(A)&&(v=v.replace(/^https:/i,"http:").replace(/:7443/i,":7080"));return e({url:v,content:{f:"json"},callbackParamName:"callback",withCredentials:!0},{disableIdentityLookup:!0})},_doPortalSignIn:function(v){var A=this._portalConfig,F=window.location.href,I=this.findServerInfo(v);return(A||
this._isPortalDomain(F))&&(I?I.hasPortal||I.owningSystemUrl&&this._isPortalDomain(I.owningSystemUrl):this._isPortalDomain(v))&&(this._isIdProvider(F,v)||A&&(this._hasSameServerInstance(this._getServerInstanceRoot(A.restBaseUrl),v)||this._isIdProvider(A.restBaseUrl,v))||l.hasSameOrigin(F,v,!0))?!0:!1},_checkProtocol:function(v,A,F,I){var N=!0;I=I?A.adminTokenServiceUrl:A.tokenServiceUrl;0!==c.trim(I).toLowerCase().indexOf("https:")||0===window.location.href.toLowerCase().indexOf("https:")||a.defaults.io.useCors&&
(l.canUseXhr(I)||l.canUseXhr(l.getProxyUrl(!0).path))||(N=this._protocolFunc?!!this._protocolFunc({resourceUrl:v,serverInfo:A}):!1,N||(v=Error("Aborted the Sign-In process to avoid sending password over insecure connection."),v.name="identity-manager:aborted",v.code="IdentityManagerBase.4",v.log=!!x.isDebug,console.log(v.message),F(v)));return N},_enqueue:function(v,A,F,I,N,da){I||(I=new h(m._dfdCanceller));I.resUrl_=v;I.sinfo_=A;I.options_=F;I.admin_=N;I.refresh_=da;this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(v),
this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(I)):this._xoReqs.push(I):this._doSignIn(I);return I},_doSignIn:function(v){this._busy=v;this._rejectOnPersistedPageShow=!1;var A=this,F=function(W){var la=v.options_&&v.options_.resource,ha=v.resUrl_,sa=v.refresh_,Ca=!1;-1===r.indexOf(A.credentials,W)&&(sa&&-1!==r.indexOf(A.credentials,sa)?(sa.userId=W.userId,sa.token=W.token,sa.expires=W.expires,sa.validity=W.validity,sa.ssl=W.ssl,sa.creationTime=
W.creationTime,Ca=!0,W=sa):A.credentials.push(W));W.resources||(W.resources=[]);-1===W.resources.indexOf(la||ha)&&W.resources.push(la||ha);W.scope=A._isServerRsrc(ha)?"server":"portal";W.onTokenChange();la=A._soReqs;var oa={};A._soReqs=[];r.forEach(la,function(qa){if(!this._isIdenticalService(ha,qa.resUrl_)){var L=this._getSuffix(qa.resUrl_);oa[L]||(oa[L]=!0,W.resources.push(qa.resUrl_))}},A);v.callback(W);r.forEach(la,function(qa){this._hasSameServerInstance(this._getServerInstanceRoot(ha),qa.resUrl_)?
qa.callback(W):this._soReqs.push(qa)},A);A._busy=v.resUrl_=v.sinfo_=v.refresh_=null;if(!Ca)A.onCredentialCreate({credential:W});A._soReqs.length?A._doSignIn(A._soReqs.shift()):A._xoReqs.length&&A._doSignIn(A._xoReqs.shift())},I=function(W){v.errback(W);A._busy=v.resUrl_=v.sinfo_=v.refresh_=null;A._soReqs.length?A._doSignIn(A._soReqs.shift()):A._xoReqs.length&&A._doSignIn(A._xoReqs.shift())},N=function(W,la,ha,sa){var Ca=v.sinfo_,oa=!v.options_||!1!==v.options_.prompt,qa=Ca.hasPortal&&A._findOAuthInfo(v.resUrl_);
if(W)F(new E({userId:W,server:Ca.server,token:ha||null,expires:d.isDefined(sa)?Number(sa):null,ssl:!!la}));else if(window!==window.parent&&A._appUrlObj.query&&A._appUrlObj.query["arcgis-auth-origin"]&&A._appUrlObj.query["arcgis-auth-portal"]&&A._hasSameServerInstance(A._getServerInstanceRoot(A._appUrlObj.query["arcgis-auth-portal"]),v.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},A._appUrlObj.query["arcgis-auth-origin"]);var L=f(window,"message",function(pa){if(pa.source===
window.parent&&pa.data)if("arcgis:auth:credential"===pa.data.type&&pa.data.credential.expires<Date.now()&&(pa.data.type="arcgis:auth:error",pa.data.error={name:"tokenExpiredError"}),"arcgis:auth:credential"===pa.data.type)L.remove(),F(new E(pa.data.credential));else if("arcgis:auth:error"===pa.data.type){L.remove();pa=pa.data.error;switch(pa.name){case "identity-manager:busy":case "identity-manager:not-authorized":var ta="IdentityManager.1";break;case "identity-manager:server-identification-failed":case "identity-manager:unknown-resource":case "identity-manager:user-aborted":ta=
"IdentityManager.2";break;case "identity-manager:authentication-failed":case "identity-manager:credential-request-failed":case "tokenExpiredError":ta="IdentityManager.3";"tokenExpiredError"===pa.name&&(pa.name="identity-manager:credential-request-failed",pa.message="Parent application's token has expired.");break;case "identity-manager:aborted":ta="IdentityManager.4";break;case "identity-manager:not-authenticated":ta="IdentityManager.6";break;case "identity-manager:invalid-request":ta=400}var ea=
Error(pa.message);ea.name=pa.name;ea.code=ta;ea.log=!!x.isDebug;I(ea)}})}else if(qa){var Y=qa._oAuthCred;Y||(W=new p(qa,D),la=new p(qa,B),W.isValid()&&la.isValid()?W.expires>la.expires?(Y=W,la.destroy()):(Y=la,W.destroy()):Y=W.isValid()?W:la,qa._oAuthCred=Y);if(Y.isValid()){var ca=new E({userId:Y.userId,server:Ca.server,token:Y.token,expires:Y.expires,ssl:Y.ssl,_oAuthCred:Y});var V=qa.appId!==Y.appId&&A._doPortalSignIn(v.resUrl_);V||Y.refreshToken?(Y.refreshToken?v._pendingDfd=A._getOAuthToken(Ca.server,
Y.refreshToken,Y.appId).then(function(pa){ca.expires=Date.now()+1E3*pa.expires_in;ca.token=pa.access_token;return ca}):(W=new h,W.resolve(ca),v._pendingDfd=W),v._pendingDfd.then(function(pa){return V?A._exchangeToken(pa.server,qa.appId,pa.token).then(function(ta){pa.token=ta;return pa}).catch(function(){return pa}):pa}).then(function(pa){F(pa)}).catch(function(){Y.destroy();N()})):F(ca)}else if(A._oAuthLocationParams&&A._hasSameServerInstance(qa.portalUrl,A._oAuthLocationParams.state.portalUrl)&&
(A._oAuthLocationParams.access_token||A._oAuthLocationParams.code&&A._oAuthLocationParams.state.uid===Y.stateUID&&Y.codeVerifier))W=A._oAuthLocationParams,A._oAuthLocationParams=null,v._pendingDfd=A._processOAuthResponseParams(W,qa,Ca).then(function(pa){F(pa)}).catch(I);else{var X=function(){oa?v._pendingDfd=A.oAuthSignIn(v.resUrl_,Ca,qa,v.options_).addCallbacks(F,I):(ja=Error("User is not signed in."),ja.name="identity-manager:not-authenticated",ja.code="IdentityManagerBase.6",ja.log=!!x.isDebug,
I(ja))};A._doPortalSignIn(v.resUrl_)?v._pendingDfd=A._getPlatformSelf(Ca.server,qa.appId).then(function(pa){var ta=pa.portalUrl;!ta||l.hasSameOrigin(ta,window.location.origin,!0)?(ca=new E({userId:pa.username,server:Ca.server,expires:Date.now()+1E3*pa.expires_in,token:pa.token}),F(ca)):X()}).catch(X):X()}}else if(oa)A._checkProtocol(v.resUrl_,Ca,I,v.admin_)&&(W=v.options_,v.admin_&&(W=W||{},W.isAdmin=!0),v._pendingDfd=A.signIn(v.resUrl_,Ca,W).addCallbacks(F,I));else{var ja=Error("User is not signed in.");
ja.name="identity-manager:not-authenticated";ja.code="IdentityManagerBase.6";ja.log=!!x.isDebug;I(ja)}},da=function(){var W=v.sinfo_,la=W.owningSystemUrl,ha=v.options_,sa;if(ha){var Ca=ha.token;var oa=ha.error;var qa=ha.prompt}(sa=A._findCredential(la,{token:Ca,resource:v.resUrl_}))||r.some(A.credentials,function(L){this._isIdProvider(la,L.server)&&(sa=L);return!!sa},A);sa?(ha=A.findCredential(v.resUrl_,sa.userId))?F(ha):y(W,A._legacyFed)?(ha=sa.toJson(),ha.server=W.server,ha.resources=null,F(new E(ha))):
(v._pendingDfd=A.generateToken(A.findServerInfo(sa.server),null,{serverUrl:v.resUrl_,token:sa.token,ssl:sa.ssl})).addCallbacks(function(L){F(new E({userId:sa.userId,server:W.server,token:L.token,expires:d.isDefined(L.expires)?Number(L.expires):null,ssl:!!L.ssl,isAdmin:v.admin_,validity:L.validity}))},I):(A._busy=null,Ca&&(v.options_.token=null),(v._pendingDfd=A.getCredential(la.replace(/\/?$/,"/sharing"),{resource:v.resUrl_,owningTenant:W.owningTenant,token:Ca,error:oa,prompt:qa})).addCallbacks(function(L){A._enqueue(v.resUrl_,
v.sinfo_,v.options_,v,v.admin_)},function(L){I(L)}))};this._errbackFunc=I;var ba=v.sinfo_.owningSystemUrl,na=this._isServerRsrc(v.resUrl_),xa=v.sinfo_._restInfoDfd;xa?xa.addCallbacks(function(W){var la=v.sinfo_;la._restInfoDfd&&(la.adminTokenServiceUrl=la._restInfoDfd.adminUrl_,la._restInfoDfd=null,la.tokenServiceUrl=c.getObject("authInfo.tokenServicesUrl",!1,W)||c.getObject("authInfo.tokenServiceUrl",!1,W)||c.getObject("tokenServiceUrl",!1,W),la.shortLivedTokenValidity=c.getObject("authInfo.shortLivedTokenValidity",
!1,W),la.currentVersion=W.currentVersion,la.owningTenant=W.owningTenant,(W=la.owningSystemUrl=W.owningSystemUrl)&&A._portals.push(W));na&&la.owningSystemUrl?da():N()},function(){v.sinfo_._restInfoDfd=null;var W=Error("Unknown resource - could not find token service endpoint.");W.name="identity-manager:server-identification-failed";W.code="IdentityManagerBase.2";W.log=!!x.isDebug;I(W)}):na&&ba?da():v.sinfo_._selfReq?v.sinfo_._selfReq.selfDfd.then(function(W){var la={};if(W){var ha=W.user&&W.user.username;
la.username=ha;la.allSSL=W.allSSL;var sa=W.supportsOAuth;var Ca=parseFloat(W.currentVersion);if("multitenant"===W.portalMode)var oa=W.customBaseUrl;v.sinfo_.currentVersion=Ca}v.sinfo_.webTierAuth=!!ha;return ha&&A.normalizeWebTierAuth?A.generateToken(v.sinfo_,null,{ssl:la.allSSL}).addBoth(function(qa){la.portalToken=qa&&qa.token;la.tokenExpiration=qa&&qa.expires;return la}):!ha&&sa&&4.4<=Ca&&!A._findOAuthInfo(v.resUrl_)?A._generateOAuthInfo({portalUrl:v.sinfo_.server,customBaseUrl:oa,owningTenant:v.sinfo_._selfReq.owningTenant}).always(function(){return la}):
la}).always(function(W){v.sinfo_._selfReq=null;W?N(W.username,W.allSSL,W.portalToken,W.tokenExpiration):N()}):N()},_generateOAuthInfo:function(v){var A=this,F=v.portalUrl,I=v.customBaseUrl,N=v.owningTenant;if(v=!this.defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal){var da=window.location.href;var ba=da.indexOf("?");-1<ba&&(da=da.slice(0,ba));ba=da.search(/\/(apps|home)\//);da=-1<ba?da.slice(0,ba):null}v&&da?(this._hasTestedIfAppIsOnPortal=!0,v=e({url:da+"/sharing/rest",
content:{f:"json"},handleAs:"json"}).then(function(){A.defaultOAuthInfo=new t({appId:"arcgisonline",popupCallbackUrl:da+"/home/oauth-callback.html"})})):(v=new h,v.resolve(),v=v.promise);return v.then(function(){if(A.defaultOAuthInfo)return F=F.replace(/^http:/i,"https:"),e({url:F+"/sharing/rest/oauth2/validateRedirectUri",content:{accountId:N,client_id:A.defaultOAuthInfo.appId,redirect_uri:l.getAbsoluteUrl(A.defaultOAuthInfo.popupCallbackUrl),f:"json"},handleAs:"json",callbackParamName:"callback"}).then(function(na){if(na.valid){var xa=
A.defaultOAuthInfo.clone();xa.portalUrl=na.urlKey&&I?"https://"+na.urlKey.toLowerCase()+"."+I:F;xa.popup=window!==window.top||!(l.hasSameOrigin(F,window.location.origin)||A._gwDomains.some(function(W){return W.regex.test(F)&&W.regex.test(window.location.origin)}));A.oAuthInfos.push(xa)}})})}});var E=G(b,{declaredClass:"esri.Credential",tokenRefreshBuffer:2,constructor:function(v){c.mixin(this,v);this.resources=this.resources||[];d.isDefined(this.creationTime)||(this.creationTime=(new Date).getTime())},
_oAuthCred:null,refreshToken:function(){var v=this,A=this.resources&&this.resources[0],F=g.id.findServerInfo(this.server),I=F&&F.owningSystemUrl,N=!!I&&"server"===this.scope,da=N&&y(F,g.id._legacyFed),ba=N&&g.id.findServerInfo(I),na,xa=(na=F.webTierAuth)&&g.id.normalizeWebTierAuth,W=z[this.server];W=W&&W[this.userId];var la={username:this.userId,password:W};if(!na||xa)if(N&&!ba&&r.some(g.id.serverInfos,function(Ca){g.id._isIdProvider(I,Ca.server)&&(ba=Ca);return!!ba}),na=ba&&g.id.findCredential(ba.server,
this.userId),!N||na)if(da)na.refreshToken();else{if(N)var ha={serverUrl:A,token:na&&na.token,ssl:na&&na.ssl};else if(xa)la=null,ha={ssl:this.ssl};else if(W)this.isAdmin&&(ha={isAdmin:!0});else{if(A){A=g.id._sanitizeUrl(A);this._enqueued=1;var sa=g.id._enqueue(A,F,null,null,this.isAdmin,this);sa.addCallback(function(){v._enqueued=0;v.refreshServerTokens()}).addErrback(function(){v._enqueued=0})}return sa}return g.id.generateToken(N?ba:F,N?null:la,ha).addCallback(function(Ca){v.token=Ca.token;v.expires=
d.isDefined(Ca.expires)?Number(Ca.expires):null;v.creationTime=(new Date).getTime();v.validity=Ca.validity;v.onTokenChange();v.refreshServerTokens()}).addErrback(function(){})}},refreshServerTokens:function(){"portal"===this.scope&&r.forEach(g.id.credentials,function(v){var A=g.id.findServerInfo(v.server),F=A&&A.owningSystemUrl;v!==this&&v.userId===this.userId&&F&&"server"===v.scope&&(g.id._hasSameServerInstance(this.server,F)||g.id._isIdProvider(F,this.server))&&(y(A,g.id._legacyFed)?(v.token=this.token,
v.expires=this.expires,v.creationTime=this.creationTime,v.validity=this.validity,v.onTokenChange()):v.refreshToken())},this)},onTokenChange:function(v){clearTimeout(this._refreshTimer);var A=this.server&&g.id.findServerInfo(this.server),F=(A=A&&A.owningSystemUrl)&&g.id.findServerInfo(A);!1!==v&&(!A||"portal"===this.scope||F&&F.webTierAuth&&!g.id.normalizeWebTierAuth)&&(d.isDefined(this.expires)||d.isDefined(this.validity))&&this._startRefreshTimer()},onDestroy:function(){},destroy:function(){this.userId=
this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null;this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);var v=r.indexOf(g.id.credentials,this);-1<v&&g.id.credentials.splice(v,1);this.onTokenChange();this.onDestroy()},toJson:function(){return this._toJson()},_toJson:function(){var v=d.fixJson({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,
scope:this.scope}),A=this.resources;A&&0<A.length&&(v.resources=A.slice());return v},_startRefreshTimer:function(){clearTimeout(this._refreshTimer);var v=6E4*this.tokenRefreshBuffer,A=Math.pow(2,31)-1,F=(this.validity?this.creationTime+6E4*this.validity:this.expires)-(new Date).getTime();0>F?F=0:F>A&&(F=A);this._refreshTimer=setTimeout(c.hitch(this,this.refreshToken),F>v?F-v:F)}});u.Credential=E;q("extend-esri")&&(g.IdentityManagerBase=u);return u})},"esri/ServerInfo":function(){define(["dojo/_base/declare",
"dojo/_base/lang","dojo/has","./kernel","./lang"],function(G,x,c,r,h){G=G(null,{declaredClass:"esri.ServerInfo",constructor:function(w){x.mixin(this,w)},toJson:function(){return h.fixJson({server:this.server,tokenServiceUrl:this.tokenServiceUrl,adminTokenServiceUrl:this.adminTokenServiceUrl,shortLivedTokenValidity:this.shortLivedTokenValidity,owningSystemUrl:this.owningSystemUrl,owningTenant:this.owningTenant,currentVersion:this.currentVersion,hasPortal:this.hasPortal,hasServer:this.hasServer,webTierAuth:this.webTierAuth})}});
c("extend-esri")&&(r.ServerInfo=G);return G})},"esri/OAuthCredential":function(){define(["./kernel","dojo/_base/declare","dojo/has"],function(G,x,c){x=x(null,{declaredClass:"esri.OAuthCredential",oAuthInfo:null,storage:null,appId:null,codeVerifier:null,expires:null,refreshToken:null,ssl:null,stateUID:null,token:null,userId:null,constructor:function(r,h){this.oAuthInfo=r;this.storage=h;this._init()},isValid:function(){var r=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token))if(null==
this.expires&&this.refreshToken)r=!0;else{var h=Date.now();this.expires>h&&(this.expires-h)/1E3>60*this.oAuthInfo.minTimeUntilExpiration&&(r=!0)}return r},save:function(){if(!this.storage)return!1;var r=this._load(),h=this.oAuthInfo;if(h&&h.authNamespace&&h.portalUrl){var w=r[h.authNamespace];w||(w=r[h.authNamespace]={});this.appId||(this.appId=h.appId);w[h.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,
token:this.token,userId:this.userId};try{this.storage.setItem("esriJSAPIOAuth",JSON.stringify(r))}catch(q){return console.warn(q),!1}return!0}return!1},destroy:function(){var r=this._load(),h=this.oAuthInfo;if(h&&h.appId&&h.portalUrl&&(null==this.expires||this.expires>Date.now())&&(this.refreshToken||this.token)){var w=h.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",q=new FormData;q.append("f","json");q.append("auth_token",this.refreshToken||this.token);q.append("client_id",
h.appId);q.append("token_type_hint",this.refreshToken?"refresh_token":"access_token");if("function"===typeof navigator.sendBeacon)navigator.sendBeacon(w,q);else{var n=new XMLHttpRequest;n.open("POST",w);n.send(q)}}if(h&&h.authNamespace&&h.portalUrl&&this.storage&&(w=r[h.authNamespace])){delete w[h.portalUrl];try{this.storage.setItem("esriJSAPIOAuth",JSON.stringify(r))}catch(f){console.log(f)}}h&&(this.oAuthInfo=h._oAuthCred=null)},_init:function(){var r=this._load(),h=this.oAuthInfo;h&&h.authNamespace&&
h.portalUrl&&(r=r[h.authNamespace])&&(r=r[h.portalUrl])&&(this.appId=r.appId,this.codeVerifier=r.codeVerifier,this.expires=r.expires,this.refreshToken=r.refreshToken,this.ssl=r.ssl,this.stateUID=r.stateUID,this.token=r.token,this.userId=r.userId)},_load:function(){var r={};if(this.storage){var h=this.storage.getItem("esriJSAPIOAuth");if(h)try{r=JSON.parse(h)}catch(w){console.warn(w)}}return r}});c("extend-esri")&&(G.OAuthCredential=x);return x})},"esri/arcgis/OAuthInfo":function(){define(["../kernel",
"../lang","dojo/_base/declare","dojo/_base/lang","dojo/has"],function(G,x,c,r,h){var w=c(null,{declaredClass:"esri.arcgis.OAuthInfo",constructor:function(q){r.mixin(this,{expiration:20160,minTimeUntilExpiration:30,portalUrl:"https://www.arcgis.com",authNamespace:"/",forceLogin:!1,popup:!1,popupCallbackUrl:"oauth-callback.html",popupWindowFeatures:"height\x3d490,width\x3d800,resizable,scrollbars,status",preserveUrlHash:!1,flowType:"auto"},q)},_oAuthCred:null,toJson:function(){return x.fixJson({appId:this.appId,
expiration:this.expiration,locale:this.locale,minTimeUntilExpiration:this.minTimeUntilExpiration,portalUrl:this.portalUrl,authNamespace:this.authNamespace,forceLogin:this.forceLogin,popup:this.popup,popupCallbackUrl:this.popupCallbackUrl,popupWindowFeatures:this.popupWindowFeatures,preserveUrlHash:this.preserveUrlHash,flowType:this.flowType})},clone:function(){return new w(this.toJson())}});h("extend-esri")&&r.setObject("arcgis.OAuthInfo",w,G);return w})},"dijit/form/Form":function(){define("dojo/_base/declare dojo/dom-attr dojo/_base/kernel dojo/sniff ../_Widget ../_TemplatedMixin ./_FormMixin ../layout/_ContentPaneResizeMixin".split(" "),
function(G,x,c,r,h,w,q,n){return G("dijit.form.Form",[h,w,q,n],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"\x3cform data-dojo-attach-point\x3d'containerNode' data-dojo-attach-event\x3d'onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}\x3e\x3c/form\x3e",postMixInProperties:function(){this.nameAttrSetting=this.name?"name\x3d'"+this.name+"'":"";this.inherited(arguments)},execute:function(){},onExecute:function(){},_setEncTypeAttr:function(f){x.set(this.domNode,
"encType",f);r("ie")&&(this.domNode.encoding=f);this._set("encType",f)},reset:function(f){var g={returnValue:!0,preventDefault:function(){this.returnValue=!1},stopPropagation:function(){},currentTarget:f?f.target:this.domNode,target:f?f.target:this.domNode};!1!==this.onReset(g)&&g.returnValue&&this.inherited(arguments,[])},onReset:function(){return!0},_onReset:function(f){this.reset(f);f.stopPropagation();f.preventDefault();return!1},_onSubmit:function(f){var g=this.constructor.prototype;if(this.execute!=
g.execute||this.onExecute!=g.onExecute)c.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0"),this.onExecute(),this.execute(this.getValues());!1===this.onSubmit(f)&&(f.stopPropagation(),f.preventDefault())},onSubmit:function(){return this.isValid()},submit:function(){!1!==this.onSubmit()&&this.containerNode.submit()}})})},"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(G,x,c,r,h,w,q){var n=G("dijit.form.ValidationTextBox",h,{templateString:q,required:!1,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},pattern:".*",regExp:"",regExpGen:function(){},state:"",tooltipPosition:[],_deprecateRegExp:function(f,g){g!=n.prototype[f]&&(x.deprecated("ValidationTextBox id\x3d"+this.id+", set('"+f+"', ...) is deprecated.  Use set('pattern', ...) instead.","","2.0"),this.set("pattern",g))},_setRegExpGenAttr:function(f){this._deprecateRegExp("regExpGen",
f);this._set("regExpGen",this._computeRegexp)},_setRegExpAttr:function(f){this._deprecateRegExp("regExp",f)},_setValueAttr:function(){this.inherited(arguments);this._refreshState()},validator:function(f,g){return(new RegExp("^(?:"+this._computeRegexp(g)+")"+(this.required?"":"?")+"$")).test(f)&&(!this.required||!this._isEmpty(f))&&(this._isEmpty(f)||void 0!==this.parse(f,g))},_isValidSubset:function(){return 0==this.textbox.value.search(this._partialre)},isValid:function(){return this.validator(this.textbox.value,
this.get("constraints"))},_isEmpty:function(f){return(this.trim?/^\s*$/:/^$/).test(f)},getErrorMessage:function(){var f="$_unset_$"==this.invalidMessage?this.messages.invalidMessage:this.invalidMessage?this.invalidMessage:this.promptMessage,g="$_unset_$"==this.missingMessage?this.messages.missingMessage:this.missingMessage?this.missingMessage:f;return this.required&&this._isEmpty(this.textbox.value)?g:f},getPromptMessage:function(){return this.promptMessage},_maskValidSubsetError:!0,validate:function(f){var g=
"",a=this.disabled||this.isValid(f);a&&(this._maskValidSubsetError=!0);var d=this._isEmpty(this.textbox.value),k=!a&&f&&this._isValidSubset();this._set("state",a?"":((!this._hasBeenBlurred||f)&&d||k)&&(this._maskValidSubsetError||k&&!this._hasBeenBlurred&&f)?"Incomplete":"Error");this.focusNode.setAttribute("aria-invalid","Error"==this.state?"true":"false");"Error"==this.state?(this._maskValidSubsetError=f&&k,g=this.getErrorMessage(f)):"Incomplete"==this.state?(g=this.getPromptMessage(f),this._maskValidSubsetError=
!this._hasBeenBlurred||f):d&&(g=this.getPromptMessage(f));this.set("message",g);return a},displayMessage:function(f){f&&this.focused?w.show(f,this.domNode,this.tooltipPosition,!this.isLeftToRight()):w.hide(this.domNode)},_refreshState:function(){this._created&&this.validate(this.focused);this.inherited(arguments)},constructor:function(f){this.constraints=c.clone(this.constraints);this.baseClass+=" dijitValidationTextBox"},startup:function(){this.inherited(arguments);this._refreshState()},_setConstraintsAttr:function(f){!f.locale&&
this.lang&&(f.locale=this.lang);this._set("constraints",f);this._refreshState()},_setPatternAttr:function(f){this._set("pattern",f);this._refreshState()},_computeRegexp:function(f){var g=this.pattern;"function"==typeof g&&(g=g.call(this,f));if(g!=this._lastRegExp){var a="";this._lastRegExp=g;".*"!=g&&g.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(d){switch(d.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":a+=d;break;case ")":a+="|$)";break;default:a+=
"(?:"+d+"|$)"}});try{"".search(a)}catch(d){a=this.pattern,console.warn("RegExp error in "+this.declaredClass+": "+this.pattern)}this._partialre="^(?:"+a+")$"}return g},postMixInProperties:function(){this.inherited(arguments);this.messages=r.getLocalization("dijit.form","validate",this.lang);this._setConstraintsAttr(this.constraints)},_setDisabledAttr:function(f){this.inherited(arguments);this._refreshState()},_setRequiredAttr:function(f){this._set("required",f);this.focusNode.setAttribute("aria-required",
f);this._refreshState()},_setMessageAttr:function(f){this._set("message",f);this.displayMessage(f)},reset:function(){this._maskValidSubsetError=!0;this.inherited(arguments)},_onBlur:function(){this.displayMessage("");this.inherited(arguments)},destroy:function(){w.hide(this.domNode);this.inherited(arguments)}});return n})},"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(G,x,c,r,h,w,q,n,f,g,a){n=G("dijit.form.TextBox"+(q("dojo-bidi")?"_NoBidi":""),[n,f],{templateString:g,_singleNodeTemplate:'\x3cinput class\x3d"dijit dijitReset dijitLeft dijitInputField" data-dojo-attach-point\x3d"textbox,focusNode" autocomplete\x3d"off" type\x3d"${type}" ${!nameAttrSetting} /\x3e',_buttonInputDisabled:q("ie")?"disabled":"",baseClass:"dijitTextBox",postMixInProperties:function(){var d=this.type.toLowerCase();if(this.templateString&&"input"==this.templateString.toLowerCase()||
("hidden"==d||"file"==d)&&this.templateString==this.constructor.prototype.templateString)this.templateString=this._singleNodeTemplate;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);9>q("ie")&&this.defer(function(){try{var d=c.getComputedStyle(this.domNode);if(d){var k=d.fontFamily;if(k){var l=this.domNode.getElementsByTagName("INPUT");if(l)for(d=0;d<l.length;d++)l[d].style.fontFamily=k}}}catch(m){}})},_setPlaceHolderAttr:function(d){this._set("placeHolder",d);this._phspan||
(this._attachPoints.push("_phspan"),this._phspan=x.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after"),this.own(w(this._phspan,"mousedown",function(k){k.preventDefault()}),w(this._phspan,"touchend, pointerup, MSPointerUp",h.hitch(this,function(){this.focus()}))));this._phspan.innerHTML="";this._phspan.appendChild(this._phspan.ownerDocument.createTextNode(d));this._updatePlaceHolder()},_onInput:function(d){this.inherited(arguments);this._updatePlaceHolder()},_updatePlaceHolder:function(){this._phspan&&
(this._phspan.style.display=this.placeHolder&&!this.textbox.value?"":"none")},_setValueAttr:function(d,k,l){this.inherited(arguments);this._updatePlaceHolder()},getDisplayedValue:function(){r.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use get('displayedValue') instead.","","2.0");return this.get("displayedValue")},setDisplayedValue:function(d){r.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",
d)},_onBlur:function(d){this.disabled||(this.inherited(arguments),this._updatePlaceHolder(),q("mozilla")&&this.selectOnClick&&(this.textbox.selectionStart=this.textbox.selectionEnd=void 0))},_onFocus:function(d){this.disabled||this.readOnly||(this.inherited(arguments),this._updatePlaceHolder())}});9>q("ie")&&(n.prototype._isTextSelected=function(){var d=this.ownerDocument.selection.createRange();return d.parentElement()==this.textbox&&0<d.text.length},a._setSelectionRange=f._setSelectionRange=function(d,
k,l){d.createTextRange&&(d=d.createTextRange(),d.collapse(!0),d.moveStart("character",-99999),d.moveStart("character",k),d.moveEnd("character",l-k),d.select())});q("dojo-bidi")&&(n=G("dijit.form.TextBox",n,{_setPlaceHolderAttr:function(d){this.inherited(arguments);this.applyTextDir(this._phspan)}}));return n})},"dijit/form/_FormValueWidget":function(){define(["dojo/_base/declare","dojo/sniff","./_FormWidget","./_FormValueMixin"],function(G,x,c,r){return G("dijit.form._FormValueWidget",[c,r],{_layoutHackIE7:function(){if(7==
x("ie"))for(var h=this.domNode,w=h.parentNode,q=h.firstChild||h,n=q.style.filter,f=this;w&&0==w.clientHeight;)(function(){var g=f.connect(w,"onscroll",function(){f.disconnect(g);q.style.filter=(new Date).getMilliseconds();f.defer(function(){q.style.filter=n})})})(),w=w.parentNode}})})},"dijit/form/_FormValueMixin":function(){define("dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dojo/sniff ./_FormWidgetMixin".split(" "),function(G,x,c,r,h,w,q){return G("dijit.form._FormValueMixin",
q,{readOnly:!1,_setReadOnlyAttr:function(n){w("trident")&&"disabled"in this?x.set(this.focusNode,"readOnly",n||this.disabled):x.set(this.focusNode,"readOnly",n);this._set("readOnly",n)},postCreate:function(){this.inherited(arguments);void 0===this._resetValue&&(this._lastValueReported=this._resetValue=this.value)},_setValueAttr:function(n,f){this._handleOnChange(n,f)},_handleOnChange:function(n,f){this._set("value",n);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/sniff dojo/keys dojo/_base/lang dojo/on ../main".split(" "),function(G,x,c,r,h,w,q,n){var f=x("dijit.form._TextBoxMixin"+(r("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(g,a,d){if(void 0!==g){var k=this.filter(g);"string"!=typeof d&&(d=null===k||"number"==typeof k&&isNaN(k)?"":this.filter(this.format(k,this.constraints)),0!=this.compare(k,this.filter(this.parse(d,this.constraints)))&&(d=null))}null==d||"number"==typeof d&&isNaN(d)||this.textbox.value==d||(this.textbox.value=d,this._set("displayedValue",this.get("displayedValue")));this.inherited(arguments,[k,a])},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},
_setDisplayedValueAttr:function(g){null==g?g="":"string"!=typeof g&&(g=String(g));this.textbox.value=g;this._setValueAttr(this.get("value"),void 0);this._set("displayedValue",this.get("displayedValue"))},format:function(g){return null==g?"":g.toString?g.toString():g},parse:function(g){return g},_refreshState:function(){},onInput:function(){},_onInput:function(g){this._lastInputEventValue=this.textbox.value;this._processInput(this._lastInputProducingEvent||g);delete this._lastInputProducingEvent;this.intermediateChanges&&
this._handleOnChange(this.get("value"),!1)},_processInput:function(){this._refreshState();this._set("displayedValue",this.get("displayedValue"))},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);this.own(q(this.textbox,"keydown, keypress, paste, cut, compositionend",w.hitch(this,function(g){if("keydown"==g.type&&229!=g.keyCode){var a=g.keyCode;switch(a){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(!g.ctrlKey&&
!g.metaKey&&!g.altKey){switch(a){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<=a&&90>=a||48<=a&&57>=a||a==h.SPACE)return;a=!1;for(var d in h)if(h[d]===g.keyCode){a=!0;break}if(!a)return}}(a=32<=g.charCode?String.fromCharCode(g.charCode):g.charCode)||
(a=65<=g.keyCode&&90>=g.keyCode||48<=g.keyCode&&57>=g.keyCode||g.keyCode==h.SPACE?String.fromCharCode(g.keyCode):g.keyCode);a||(a=229);if("keypress"==g.type){if("string"!=typeof a)return;if("a"<=a&&"z">=a||"A"<=a&&"Z">=a||"0"<=a&&"9">=a||" "===a)if(g.ctrlKey||g.metaKey||g.altKey)return}var k={faux:!0},l;for(l in g)/^(layer[XY]|returnValue|keyLocation)$/.test(l)||(d=g[l],"function"!=typeof d&&"undefined"!=typeof d&&(k[l]=d));w.mixin(k,{charOrCode:a,_wasConsumed:!1,preventDefault:function(){k._wasConsumed=
!0;g.preventDefault()},stopPropagation:function(){g.stopPropagation()}});this._lastInputProducingEvent=k;!1===this.onInput(k)&&(k.preventDefault(),k.stopPropagation());if(!k._wasConsumed&&9>=r("ie"))switch(g.keyCode){case h.TAB:case h.ESCAPE:case h.DOWN_ARROW:case h.UP_ARROW:case h.LEFT_ARROW:case h.RIGHT_ARROW:break;default:g.keyCode==h.ENTER&&"textarea"!=this.textbox.tagName.toLowerCase()||this.defer(function(){this.textbox.value!==this._lastInputEventValue&&q.emit(this.textbox,"input",{bubbles:!0})})}})),
q(this.textbox,"input",w.hitch(this,"_onInput")),q(this.domNode,"keypress",function(g){g.stopPropagation()}))},_blankValue:"",filter:function(g){if(null===g)return this._blankValue;if("string"!=typeof g)return g;this.trim&&(g=w.trim(g));this.uppercase&&(g=g.toUpperCase());this.lowercase&&(g=g.toLowerCase());this.propercase&&(g=g.replace(/[^\s]+/g,function(a){return a.substring(0,1).toUpperCase()+a.substring(1)}));return g},_setBlurValue:function(){this._setValueAttr(this.get("value"),!0)},_onBlur:function(g){this.disabled||
(this._setBlurValue(),this.inherited(arguments))},_isTextSelected:function(){return this.textbox.selectionStart!=this.textbox.selectionEnd},_onFocus:function(g){this.disabled||this.readOnly||(this.selectOnClick&&"mouse"==g&&(this._selectOnClickHandle=q.once(this.domNode,"mouseup, touchend",w.hitch(this,function(a){this._isTextSelected()||f.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)}});r("dojo-bidi")&&(f=x("dijit.form._TextBoxMixin",f,{_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)}}));f._setSelectionRange=n._setSelectionRange=function(g,a,
d){g.setSelectionRange&&g.setSelectionRange(a,d)};f.selectInputText=n.selectInputText=function(g,a,d){g=c.byId(g);isNaN(a)&&(a=0);isNaN(d)&&(d=g.value?g.value.length:0);try{g.focus(),f._setSelectionRange(g,a,d)}catch(k){}};return f})},"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(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p){function t(){}var z=x("dijit._MasterTooltip",[l,m],{duration:d.defaultDuration,templateString:b,postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);this.bgIframe=new e(this.domNode);this.fadeIn=c.fadeIn({node:this.domNode,duration:this.duration,onEnd:n.hitch(this,"_onShow")});this.fadeOut=c.fadeOut({node:this.domNode,duration:this.duration,onEnd:n.hitch(this,"_onHide")})},show:function(y,D,B,u,E,v,A){if(!this.aroundNode||this.aroundNode!==
D||this.containerNode.innerHTML!=y)if("playing"==this.fadeOut.status())this._onDeck=arguments;else{this.containerNode.innerHTML=y;E&&this.set("textDir",E);this.containerNode.align=u?"right":"left";var F=k.around(this.domNode,D,B&&B.length?B:C.defaultPosition,!u,n.hitch(this,"orient")),I=F.aroundNodePos;"M"==F.corner.charAt(0)&&"M"==F.aroundCorner.charAt(0)?(this.connectorNode.style.top=I.y+(I.h-this.connectorNode.offsetHeight>>1)-F.y+"px",this.connectorNode.style.left=""):"M"==F.corner.charAt(1)&&
"M"==F.aroundCorner.charAt(1)?this.connectorNode.style.left=I.x+(I.w-this.connectorNode.offsetWidth>>1)-F.x+"px":(this.connectorNode.style.left="",this.connectorNode.style.top="");q.set(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=!0;this.aroundNode=D;this.onMouseEnter=v||t;this.onMouseLeave=A||t}},orient:function(y,D,B,u,E){this.connectorNode.style.top="";var v=u.h;u=u.w;y.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"}[D+"-"+B];this.domNode.style.width="auto";var A=w.position(this.domNode);if(a("ie")||a("trident"))A.w+=2;w.setMarginBox(this.domNode,{w:Math.min(Math.max(u,1),A.w)});"B"==B.charAt(0)&&"B"==D.charAt(0)?(y=w.position(y),D=this.connectorNode.offsetHeight,
y.h>v?(this.connectorNode.style.top=v-(E.h+D>>1)+"px",this.connectorNode.style.bottom=""):(this.connectorNode.style.bottom=Math.min(Math.max(E.h/2-D/2,0),y.h-D)+"px",this.connectorNode.style.top="")):(this.connectorNode.style.top="",this.connectorNode.style.bottom="");return Math.max(0,A.w-u)},_onShow:function(){a("ie")&&(this.domNode.style.filter="")},hide:function(y){this._onDeck&&this._onDeck[1]==y?this._onDeck=null:this.aroundNode===y&&(this.fadeIn.stop(),this.isShowingNow=!1,this.aroundNode=
null,this.fadeOut.play());this.onMouseEnter=this.onMouseLeave=t},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";this._onDeck&&(this.show.apply(this,this._onDeck),this._onDeck=null)}});a("dojo-bidi")&&z.extend({_setAutoTextDir:function(y){this.applyTextDir(y);G.forEach(y.children,function(D){this._setAutoTextDir(D)},this)},_setTextDirAttr:function(y){this._set("textDir",y);"auto"==y?this._setAutoTextDir(this.containerNode):this.containerNode.dir=this.textDir}});p.showTooltip=
function(y,D,B,u,E,v,A){B&&(B=G.map(B,function(F){return{after:"after-centered",before:"before-centered"}[F]||F}));C._masterTT||(p._masterTT=C._masterTT=new z);return C._masterTT.show(y,D,B,u,E,v,A)};p.hideTooltip=function(y){return C._masterTT&&C._masterTT.hide(y)};var C=x("dijit.Tooltip",l,{label:"",showDelay:400,hideDelay:400,connectId:[],position:[],selector:"",_setConnectIdAttr:function(y){G.forEach(this._connections||[],function(D){G.forEach(D,function(B){B.remove()})},this);this._connectIds=
G.filter(n.isArrayLike(y)?y:y?[y]:[],function(D){return r.byId(D,this.ownerDocument)},this);this._connections=G.map(this._connectIds,function(D){D=r.byId(D,this.ownerDocument);var B=this.selector,u=B?function(v){return g.selector(B,v)}:function(v){return v},E=this;return[g(D,u(f.enter),function(){E._onHover(this)}),g(D,u("focusin"),function(){E._onHover(this)}),g(D,u(f.leave),n.hitch(E,"_onUnHover")),g(D,u("focusout"),n.hitch(E,"set","state","DORMANT"))]},this);this._set("connectId",y)},addTarget:function(y){y=
y.id||y;-1==G.indexOf(this._connectIds,y)&&this.set("connectId",this._connectIds.concat(y))},removeTarget:function(y){y=G.indexOf(this._connectIds,y.id||y);0<=y&&(this._connectIds.splice(y,1),this.set("connectId",this._connectIds))},buildRendering:function(){this.inherited(arguments);h.add(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var y=this.connectId;G.forEach(n.isArrayLike(y)?y:[y],this.addTarget,this)},getContent:function(y){return this.label||this.domNode.innerHTML},
state:"DORMANT",_setStateAttr:function(y){if(!(this.state==y||"SHOW TIMER"==y&&"SHOWING"==this.state||"HIDE TIMER"==y&&"DORMANT"==this.state)){this._hideTimer&&(this._hideTimer.remove(),delete this._hideTimer);this._showTimer&&(this._showTimer.remove(),delete this._showTimer);switch(y){case "DORMANT":this._connectNode&&(C.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 D=this.getContent(this._connectNode);if(!D){this.set("state","DORMANT");return}C.show(D,this._connectNode,this.position,!this.isLeftToRight(),this.textDir,n.hitch(this,"set","state","SHOWING"),n.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",y)}},_onHover:function(y){this._connectNode&&y!=this._connectNode&&
this.set("state","DORMANT");this._connectNode=y;this.set("state","SHOW TIMER")},_onUnHover:function(y){this.set("state","HIDE TIMER")},open:function(y){this.set("state","DORMANT");this._connectNode=y;this.set("state","SHOWING")},close:function(){this.set("state","DORMANT")},onShow:function(){},onHide:function(){},destroy:function(){this.set("state","DORMANT");G.forEach(this._connections||[],function(y){G.forEach(y,function(D){D.remove()})},this);this.inherited(arguments)}});C._MasterTooltip=z;C.show=
p.showTooltip;C.hide=p.hideTooltip;C.defaultPosition=["after-centered","before-centered"];return C})},"esri/OAuthSignInHandler":function(){define("./Credential ./domUtils ./lang ./urlUtils dijit/Dialog dijit/registry dojo/_base/config dojo/_base/Deferred dojo/_base/kernel dojo/dom-attr dojo/i18n!./nls/jsapi dojo/io-query ./core/events dijit/form/Button dojo/query".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,k){var l=null,m=null;try{l=window.localStorage,m=window.sessionStorage}catch(b){}var e=window.crypto||
window.msCrypto;return{_oAuthDfd:null,_oAuthIntervalId:0,_oAuthDialogContent:"\x3cdiv class\x3d'dijitDialogPaneContentArea'\x3e\x3cdiv style\x3d'padding-bottom: 5px; word-wrap: break-word;'\x3e${oAuthInfo}\x3c/div\x3e\x3cdiv style\x3d'margin: 0px; padding: 0px; height: 10px;'\x3e\x3c/div\x3e\x3cdiv class\x3d'esriErrorMsg' style\x3d'display: none; color: white; background-color: #D46464; text-align: center; padding-top: 3px; padding-bottom: 3px;'\x3e${invalidUser}\x3c/div\x3e\x3cdiv style\x3d'margin: 0px; padding: 0px; height: 10px;'\x3e\x3c/div\x3e\x3cdiv class\x3d'dijitDialogPaneActionBar'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' data-dojo-props\x3d'type:\"button\", \"class\":\"esriIdSubmit\"'\x3e${lblOk}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' data-dojo-props\x3d'type:\"button\", \"class\":\"esriIdCancel\"'\x3e${lblCancel}\x3c/button\x3e\x3c/div\x3e",
setOAuthRedirectionHandler:function(b){this._oAuthRedirectFunc=b},oAuthSignIn:function(b,p,t,z){var C=this._oAuthDfd=new n;C.resUrl_=b;C.sinfo_=p;C.oinfo_=t;var y=t._oAuthCred;if(y.storage&&("authorization-code"===t.flowType||"auto"===t.flowType&&!t.popup&&8.4<=p.currentVersion)){var D=e.getRandomValues(new Uint8Array(32));var B=r.base64UrlEncode(D);y.codeVerifier=B;D=e.getRandomValues(new Uint8Array(32));y.stateUID=r.base64UrlEncode(D);y.save()||(y.codeVerifier=B=null)}else y.codeVerifier=null;var u=
this;this._getCodeChallenge(B).then(function(E){var v=!z||!1!==z.oAuthPopupConfirmation;if(!t.popup||!v)return u._doOAuthSignIn(b,p,t,E),C;C.codeChallenge_=E;u._nls||(u._nls=a.identity);u.oAuthDialog||(u.oAuthDialog=u._createOAuthDialog());E=u.oAuthDialog;v=z&&z.error;var A=z&&z.token;x.hide(E.errMsg_);v&&403==v.code&&A&&(g.set(E.errMsg_,"innerHTML",u._nls.forbidden),x.show(E.errMsg_));g.set(E.serverLink_,{title:p.server,innerHTML:-1!==p.server.toLowerCase().indexOf("arcgis.com")?"ArcGIS Online":
p.server});E.show()});return C},setOAuthResponseHash:function(b){b&&("#"===b.charAt(0)&&(b=b.substring(1)),this._processOAuthPopupParams(d.queryToObject(b)))},_createOAuthDialog:function(){var b=this._nls,p=c.substitute(b,this._oAuthDialogContent);p=c.substitute({server:"\x3cspan class\x3d'serverLink' style\x3d'word-wrap: break-word;'\x3e\x3c/span\x3e"},p);var t=new h({title:b.title,content:p,"class":"esriOAuthSignInDialog",style:"min-width: 18em;",esriIdMgr_:this,execute_:function(){var z=t.esriIdMgr_._oAuthDfd;
t.hide_();t.esriIdMgr_._doOAuthSignIn(z.resUrl_,z.sinfo_,z.oinfo_,z.codeChallenge_)},cancel_:function(){var z=t.esriIdMgr_._oAuthDfd;t.esriIdMgr_._oAuthDfd=null;t.hide_();var C=Error("ABORTED");C.code="IdentityManager.2";C.log=!!q.isDebug;z.errback(C)},hide_:function(){x.hide(t.errMsg_);t.hide();h._DialogLevelManager.hide(t)}});b=t.domNode;t.btnSubmit_=w.byNode(f.query(".esriIdSubmit",b)[0]);t.btnCancel_=w.byNode(f.query(".esriIdCancel",b)[0]);t.serverLink_=f.query(".serverLink",b)[0];t.errMsg_=f.query(".esriErrorMsg",
b)[0];t.connect(t.btnSubmit_,"onClick",t.execute_);t.connect(t.btnCancel_,"onClick",t.onCancel);t.connect(t,"onCancel",t.cancel_);return t},_doOAuthSignIn:function(b,p,t,z){var C=this,y=t._oAuthCred,D={portalUrl:t.portalUrl};!t.popup&&t.preserveUrlHash&&window.location.hash&&(D.hash=window.location.hash);y.stateUID&&(D.uid=y.stateUID);D={client_id:t.appId,response_type:y.codeVerifier?"code":"token",state:JSON.stringify(D),expiration:t.expiration,locale:t.locale,redirect_uri:this._getRedirectURI(t,
!!y.codeVerifier)};t.forceLogin&&(D.force_login=!0);t.forceUserId&&t.userId&&(D.prepopulatedusername=t.userId);!t.popup&&this._doPortalSignIn(b)&&(D.redirectToUserOrgUrl=!0);y.codeVerifier&&(D.code_challenge=z||y.codeVerifier,D.code_challenge_method=z?"S256":"plain");z=t.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize";y=z+"?"+d.objectToQuery(D);if(t.popup){var B=window.open(y,"esriJSAPIOAuth",t.popupWindowFeatures);B?(B.focus(),this._oAuthDfd.oAuthWin_=B,this._oAuthIntervalId=setInterval(function(){if(B.closed){clearInterval(C._oAuthIntervalId);
C._oAuthOnPopupHandle.remove();var u=C._oAuthDfd;if(u){var E=Error("ABORTED");E.code="IdentityManager.2";E.log=!!q.isDebug;u.errback(E)}}},500),C._oAuthOnPopupHandle=k.on(window,["arcgis:auth:hash","arcgis:auth:location:search"],function(u){"arcgis:auth:hash"===u.type?C.setOAuthResponseHash(u.detail):C._setOAuthResponseQueryString(u.detail)})):(b=Error("ABORTED"),b.name="identity-manager:user-aborted",b.code="IdentityManager.2",b.log=!!q.isDebug,this._oAuthDfd.errback(b))}else this._rejectOnPersistedPageShow=
!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:D,authorizeUrl:z,resourceUrl:b,serverInfo:p,oAuthInfo:t}):window.location.href=y},_getCodeChallenge:function(b){if(b&&window.isSecureContext)return b=(new TextEncoder).encode(b),e.subtle.digest("SHA-256",b).then(function(p){return r.base64UrlEncode(new Uint8Array(p))});b=new n;b.resolve(null);return b},_getRedirectURI:function(b,p){var t=window.location.href.replace(/#.*$/,"");if(b.popup)return r.getAbsoluteUrl(b.popupCallbackUrl);
if(p){var z=r.urlToObject(t);if(z.query)return"code error error_description message_code persist state".split(" ").forEach(function(C){delete z.query[C]}),(b=d.objectToQuery(z.query))?z.path+"?"+b:z.path}return t},_processOAuthPopupParams:function(b){var p=this._oAuthDfd;this._oAuthDfd=null;if(p)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle&&this._oAuthOnPopupHandle.remove(),b.error){var t="access_denied"===b.error;b=Error(t?"ABORTED":"OAuth: "+b.error+" - "+b.error_description);
b.name=t?"identity-manager:user-aborted":"identity-manager:authentication-failed";b.code="IdentityManagerBase."+(t?2:3);b.log=!!q.isDebug;p.errback(b)}else this._processOAuthResponseParams(b,p.oinfo_,p.sinfo_).then(function(z){p.resolve(z)}).catch(function(z){p.reject(z)})},_processOAuthResponseParams:function(b,p,t){var z=p._oAuthCred;if(b.code){var C=z.codeVerifier;z.codeVerifier=null;z.stateUID=null;z.save();return this._getOAuthToken(t.server,b.code,p.appId,this._getRedirectURI(p,!0),C).then(function(D){var B=
new G({userId:D.username,server:t.server,token:D.access_token,expires:Date.now()+1E3*D.expires_in,ssl:D.ssl,oAuthState:b.state,_oAuthCred:z});p.userId=B.userId;z.storage=D.persist?l:m;z.refreshToken=D.refresh_token;z.token=null;z.expires=D.refresh_token_expires_in?Date.now()+1E3*D.refresh_token_expires_in:null;z.userId=B.userId;z.ssl=B.ssl;z.save();return B})}C=new G({userId:b.username,server:t.server,token:b.access_token,expires:Date.now()+1E3*Number(b.expires_in),ssl:"true"===b.ssl,oAuthState:b.state,
_oAuthCred:z});p.userId=C.userId;z.storage=b.persist?l:m;z.refreshToken=null;z.token=C.token;z.expires=C.expires;z.userId=C.userId;z.ssl=C.ssl;z.save();var y=new n;y.resolve(C);return y},_setOAuthResponseQueryString:function(b){b&&("?"===b.charAt(0)&&(b=b.substring(1)),this._processOAuthPopupParams(d.queryToObject(b)))}}})},"esri/core/events":function(){define([],function(){return{on:function(G,x,c){if(!G||"function"!==typeof G.on&&"function"!==typeof G.addEventListener)throw new TypeError("target is not a Evented or EventTarget object");
if("on"in G)return G.on(x,c);if(Array.isArray(x)){for(var r=x.slice(),h=0;h<r.length;h++)G.addEventListener(r[h],c);return{remove:function(){for(var w=0;w<r.length;w++)G.removeEventListener(r[w],c)}}}G.addEventListener(x,c);return{remove:function(){G.removeEventListener(x,c)}}}}})},"esri/arcade/ArcadeModuleLoader":function(){define(["require","exports"],function(G,x){Object.defineProperty(x,"__esModule",{value:!0});x.ArcadeModuleLoader=void 0;G=function(){function c(r,h){this._moduleSingletons=r;
this._syntaxModules=h}c.prototype.loadLibrary=function(r){return null==this._syntaxModules?null:(r=this._syntaxModules[r.toLowerCase()])?{syntax:r.script,uri:r.uri}:null};return c}();x.ArcadeModuleLoader=G})},"esri/arcade/ArcadeModuleResolver":function(){define("require exports ./polyfill/tsSupport/awaiter ./polyfill/tsSupport/generator ./polyfill/tsSupport/assign ./polyfill/tsSupport/spreadarray ../request ./parser ./featureset/support/RecentlyUsedCache ./executionError".split(" "),function(G,x,
c,r,h,w,q,n,f,g){Object.defineProperty(x,"__esModule",{value:!0});x.ArcadeModuleResolver=void 0;G=function(){function a(d){this.portalUri=d}a.prototype.extractRegexGroups=function(d,k){for(var l=[],m=0;m<k.length;m++)l[k[m]]="";m=0;for(var e=1;e<d.length;e++){var b=d[e];if(null!==b&&void 0!==b&&(l[k[m]]=b,m++,m>=k.length))break}return l};a.prototype.normalizeModuleUri=function(d){var k=/^[a-z0-9A-Z]+(@[0-9]+\.[0-9]+\.[0-9]+)?([\?|\/].*)?$/gi,l=/(.+)\/home\/item\.html\?id=(.+)$/gi,m=/(.+)\/sharing\/rest\/content\/users\/[a-zA-Z0-9]+\/items\/(.+)$/gi,
e=/(.+)\/sharing\/rest\/content\/items\/(.+)$/gi,b=/(.*)@([0-9]+\.[0-9]+\.[0-9]+)([\?|\/].*)?$/gi;if(d.startsWith("portal+")){var p=d.substring(7),t="",z=p,C=!1,y=0;for(l=[l,e,m];y<l.length;y++)if(m=l[y].exec(p),null!==m){C=this.extractRegexGroups(m,["portalurl","itemid"]);z=C.itemid;t=C.portalurl;C=!0;break}if(!1===C)if(k.test(p))z=p,t=this.portalUri;else throw new g.ModuleError(g.ModuleErrorCodes.UnsupportedUriProtocol,{uri:d});z.includes("/")&&(z=z.split("/")[0]);z.includes("?")&&(z=z.split("?")[0]);
d="current";b=b.exec(z);null!==b&&(C=this.extractRegexGroups(b,["itemid","versionstring"]),z=C.itemid,d=C.versionstring);t=(p||t).replace(/\/+$/,"");p=(-1!==t.indexOf("/sharing")?t+"/":t+"/sharing/rest/")+"content/items/"+z+"/resources/"+d+".arc";return{url:p,scheme:"portal",uri:"PO:"+p}}if(d.startsWith("mock")){if("mock"===d)return{url:"",scheme:"mock",data:'\n      export var hello \x3d 1;\n      export function helloWorld() {\n          return "Hello World " + hello;\n      }\n  ',uri:"mock"};
p=d.replace("mock:","");if(void 0!==a.mocks[p])return{url:"",scheme:"mock",data:a.mocks[p],uri:d}}throw new g.ModuleError(g.ModuleErrorCodes.UnrecognisedUri,{uri:d});};a.prototype.fetchModule=function(d){return c(this,void 0,void 0,function(){var k,l,m,e;return r(this,function(b){switch(b.label){case 0:if(k=a.cachedModules.getFromCache(d.uri))return[2,k];l=this.fetchSource(d);a.cachedModules.addToCache(d.uri,l);m=null;b.label=1;case 1:return b.trys.push([1,3,,4]),[4,l];case 2:return m=b.sent(),[3,
4];case 3:throw e=b.sent(),a.cachedModules.removeFromCache(d.uri),e;case 4:return[2,m]}})})};a.prototype.fetchSource=function(d){var k;return c(this,void 0,void 0,function(){var l;return r(this,function(m){switch(m.label){case 0:return"portal"!==d.scheme?[3,2]:[4,q({url:d.url,handleAs:"text",content:{},callbackParamName:"callback"})];case 1:if(l=m.sent())return[2,n.parseScript(l,[])];m.label=2;case 2:if("mock"===d.scheme)return[2,n.parseScript(null!==(k=d.data)&&void 0!==k?k:"",[])];throw new g.ModuleError(g.ModuleErrorCodes.UnsupportedUriProtocol);
}})})};a.create=function(d){return new a(d)};a.getDefault=function(){var d;return null!==(d=this._default)&&void 0!==d?d:a._default=a._moduleResolverFactory()};Object.defineProperty(a,"moduleResolverClass",{set:function(d){this._moduleResolverFactory=d;this._default=null},enumerable:!1,configurable:!0});a.mocks={};a.cachedModules=new f(30);a._default=null;a._moduleResolverFactory=function(){return new a("https://www.arcgis.com")};return a}();x.ArcadeModuleResolver=G})},"esri/arcade/parser":function(){define(["require",
"exports","./treeAnalysis","./lib/arcade-parser","./lib/arcade-parser"],function(G,x,c,r,h){Object.defineProperty(x,"__esModule",{value:!0});x.parseScript=void 0;x.parseScript=function(w,q){void 0===q&&(q=[]);w=r.parse(w);if(null===w.body||void 0===w.body)throw new h.ParsingError({index:0,line:0,column:0,data:null,description:"",code:h.ParsingErrorCodes.InvalidExpression});if(0===w.body.length)throw new h.ParsingError({index:0,line:0,column:0,data:null,description:"",code:h.ParsingErrorCodes.InvalidExpression});
if(0===w.body.length)throw new h.ParsingError({index:0,line:0,column:0,data:null,description:"",code:h.ParsingErrorCodes.InvalidExpression});w.loadedModules={};c.findScriptDependencies(w,q);return w}})},"esri/arcade/lib/arcade-parser":function(){define("require exports ../polyfill/tsSupport/exportstar ./parser ./tokenizer ./types".split(" "),function(G,x,c,r,h,w){Object.defineProperty(x,"__esModule",{value:!0});x.tokenize=x.parse=void 0;c(w,x);x.parse=function(q,n,f){return(new r.Parser(q,n,f)).parseScript()};
x.tokenize=function(q,n,f){q=new h.Tokenizer(q,n);n=[];var g=void 0;try{for(var a=void 0;a=q.getNextToken();)f&&(a=f(a)),n.push(a)}catch(d){q.errorHandler.tolerate(d)}q.errorHandler.tolerant&&(g=q.errors());return{tokens:n,errors:g}}})},"esri/arcade/polyfill/tsSupport/exportstar":function(){define([],function(){return function(){var G=this&&this.__createBinding||(Object.create?function(x,c,r,h){void 0===h&&(h=r);Object.defineProperty(x,h,{enumerable:!0,get:function(){return c[r]}})}:function(x,c,
r,h){void 0===h&&(h=r);x[h]=c[r]});return function(x,c){for(var r in x)"default"===r||Object.prototype.hasOwnProperty.call(c,r)||G(c,x,r)}}()})},"esri/arcade/lib/parser":function(){define("require exports ../polyfill/tsSupport/assign ../polyfill/tsSupport/spreadarray ../polyfill/tsSupport/extends ./comment-handler ./error-handler ./scanner ./types".split(" "),function(G,x,c,r,h,w,q,n,f){function g(m,e){void 0===e&&(e=0);var b=m.start-m.lineStart,p=m.lineNumber;0>b&&(b+=e,p--);return{index:m.start,
line:p,column:b}}function a(m){return[c({index:m.range[0]},m.loc.start),c({index:m.range[1]},m.loc.end)]}function d(m){var e;return null!==(e=f.OperatorPrecedence[m])&&void 0!==e?e:0}Object.defineProperty(x,"__esModule",{value:!0});x.Parser=x.binaryOperatorPrecedence=void 0;var k;(function(m){m[m.None=0]="None";m[m.Function=1]="Function";m[m.IfClause=2]="IfClause";m[m.ForLoop=4]="ForLoop";m[m.WhileLoop=8]="WhileLoop"})(k||(k={}));var l;(function(m){m[m.AsObject=0]="AsObject";m[m.Automatic=1]="Automatic"})(l||
(l={}));x.binaryOperatorPrecedence=d;G=function(){function m(e,b,p){void 0===b&&(b={});this.delegate=p;this.hasLineTerminator=!1;this.options={tokens:"boolean"===typeof b.tokens&&b.tokens,comments:"boolean"===typeof b.comments&&b.comments,tolerant:"boolean"===typeof b.tolerant&&b.tolerant};this.options.comments&&(this.commentHandler=new w.CommentHandler);this.errorHandler=new q.ErrorHandler(this.options.tolerant);this.scanner=new n.Scanner(e,this.errorHandler);this.context={isAssignmentTarget:!1,
blockContext:k.None,curlyParsingType:l.AsObject};this.rawToken={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0};this.tokens=[];this.startMarker={index:0,line:this.scanner.lineNumber,column:0};this.endMarker={index:0,line:this.scanner.lineNumber,column:0};this.readNextRawToken();this.endMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}m.prototype.throwIfInvalidType=function(e,b,p){var t=p.validTypes;p=p.invalidTypes;
(null===t||void 0===t?0:t.some(function(z){return e.type===z}))||null!==p&&void 0!==p&&p.some(function(z){return e.type===z})&&this.throwError(f.ParsingErrorCodes.InvalidExpression,b)};m.prototype.throwError=function(e,b,p){void 0===p&&(p=this.endMarker);var t=b.index;this.errorHandler.throwError({code:e,index:t,line:b.line,column:b.column+1,len:p.index-t-1})};m.prototype.tolerateError=function(e,b){throw Error("######################################### !!!");};m.prototype.unexpectedTokenError=function(e){void 0===
e&&(e={});var b=e.rawToken,p=e.code;e=e.data;if(b){if(!p)switch(b.type){case 2:p=f.ParsingErrorCodes.UnexpectedEndOfScript;break;case 3:p=f.ParsingErrorCodes.UnexpectedIdentifier;break;case 6:p=f.ParsingErrorCodes.UnexpectedNumber;break;case 8:p=f.ParsingErrorCodes.UnexpectedString;break;case 10:p=f.ParsingErrorCodes.UnexpectedTemplate}var t=b.value.toString()}else t="ILLEGAL";p=null!==p&&void 0!==p?p:f.ParsingErrorCodes.UnexpectedToken;e||(e={value:t});t=q.formatErrorDescription(p,e);if(b)return new f.ParsingError({code:p,
index:b.start,line:b.lineNumber,column:b.start-b.lineStart+1,len:b.end-b.start-1,data:e,description:t});b=this.endMarker;return new f.ParsingError({code:p,index:b.index,line:b.line,column:this.endMarker.column+1,data:e,description:t})};m.prototype.throwUnexpectedToken=function(e){var b;void 0===e&&(e={});e.rawToken=null!==(b=e.rawToken)&&void 0!==b?b:this.rawToken;throw this.unexpectedTokenError(e);};m.prototype.collectComments=function(e){var b=this,p=this.commentHandler;p&&e.length&&e.forEach(function(t){t=
{type:t.multiLine?"BlockComment":"LineComment",value:b.getSourceValue(t),range:t.range,loc:t.loc};p.collectComment(t)})};m.prototype.peekAhead=function(e){var b=this,p=this.scanner.saveState();e=e.call(this,function(){b.scanner.scanComments();return b.scanner.lex()});this.scanner.restoreState(p);return e};m.prototype.getSourceValue=function(e){return this.scanner.source.slice(e.start,e.end)};m.prototype.convertToToken=function(e){return{type:f.TokenNames[e.type],value:this.getSourceValue(e),range:[e.start,
e.end],loc:{start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}}};m.prototype.readNextRawToken=function(){this.endMarker.index=this.scanner.index;this.endMarker.line=this.scanner.lineNumber;this.endMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.rawToken;this.collectComments(this.scanner.scanComments());this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,
this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);this.rawToken=this.scanner.lex();this.hasLineTerminator=e.lineNumber!==this.rawToken.lineNumber;this.options.tokens&&2!==this.rawToken.type&&this.tokens.push(this.convertToToken(this.rawToken))};m.prototype.captureStartMarker=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}};m.prototype.getItemLocation=function(e){return{range:[e.index,
this.endMarker.index],loc:{start:{line:e.line,column:e.column},end:{line:this.endMarker.line,column:this.endMarker.column}}}};m.prototype.finalize=function(e){var b,p;if(this.delegate||this.commentHandler)null===(b=this.commentHandler)||void 0===b?void 0:b.attachComments(e),null===(p=this.delegate)||void 0===p?void 0:p.call(this,e);return e};m.prototype.expectPunctuator=function(e){var b=this.rawToken;this.matchPunctuator(e)?this.readNextRawToken():this.throwUnexpectedToken({rawToken:b,code:f.ParsingErrorCodes.PunctuatorExpected,
data:{value:e}})};m.prototype.expectKeyword=function(e){4===this.rawToken.type&&this.rawToken.value.toLowerCase()===e?this.readNextRawToken():this.throwUnexpectedToken({rawToken:this.rawToken})};m.prototype.expectContextualKeyword=function(e){3===this.rawToken.type&&this.rawToken.value.toLowerCase()===e?this.readNextRawToken():this.throwUnexpectedToken({rawToken:this.rawToken})};m.prototype.matchKeyword=function(e){return 4===this.rawToken.type&&this.rawToken.value.toLowerCase()===e};m.prototype.matchContextualKeyword=
function(e){return 3===this.rawToken.type&&this.rawToken.value===e};m.prototype.matchPunctuator=function(e){return 7===this.rawToken.type&&this.rawToken.value===e};m.prototype.getMatchingPunctuator=function(e){"string"===typeof e&&(e=e.split(""));if(7===this.rawToken.type&&null!==e&&void 0!==e&&e.length)return e.find(this.matchPunctuator,this)};m.prototype.isolateCoverGrammar=function(e){var b=this.context.isAssignmentTarget;this.context.isAssignmentTarget=!0;e=e.call(this);this.context.isAssignmentTarget=
b;return e};m.prototype.inheritCoverGrammar=function(e){var b=this.context.isAssignmentTarget;this.context.isAssignmentTarget=!0;e=e.call(this);this.context.isAssignmentTarget=this.context.isAssignmentTarget&&b;return e};m.prototype.withBlockContext=function(e,b){var p=this.context.blockContext;this.context.blockContext|=e;e=this.context.curlyParsingType;this.context.curlyParsingType=l.Automatic;b=b.call(this);this.context.blockContext=p;this.context.curlyParsingType=e;return b};m.prototype.consumeSemicolon=
function(){this.matchPunctuator(";")?this.readNextRawToken():this.hasLineTerminator||(2===this.rawToken.type||this.matchPunctuator("}")?(this.endMarker.index=this.startMarker.index,this.endMarker.line=this.startMarker.line,this.endMarker.column=this.startMarker.column):this.throwUnexpectedToken({rawToken:this.rawToken}))};m.prototype.parsePrimaryExpression=function(){var e=this.captureStartMarker(),b=this.rawToken;switch(b.type){case 3:return this.readNextRawToken(),this.finalize(c({type:"Identifier",
name:b.value},this.getItemLocation(e)));case 6:case 8:return this.context.isAssignmentTarget=!1,this.readNextRawToken(),this.finalize(c({type:"Literal",value:b.value,raw:this.getSourceValue(b),isString:"string"===typeof b.value},this.getItemLocation(e)));case 1:return this.context.isAssignmentTarget=!1,this.readNextRawToken(),this.finalize(c({type:"Literal",value:b.value.toLowerCase()===f.Keywords.True,raw:this.getSourceValue(b),isString:!1},this.getItemLocation(e)));case 5:return this.context.isAssignmentTarget=
!1,this.readNextRawToken(),this.finalize(c({type:"Literal",value:null,raw:this.getSourceValue(b),isString:!1},this.getItemLocation(e)));case 10:return this.parseTemplateLiteral();case 7:switch(b.value){case "(":return this.inheritCoverGrammar(this.parseGroupExpression);case "[":return this.inheritCoverGrammar(this.parseArrayInitializer);case "{":return this.inheritCoverGrammar(this.parseObjectExpression);default:return this.throwUnexpectedToken({rawToken:this.rawToken})}case 4:return this.context.isAssignmentTarget=
!1,this.throwUnexpectedToken({rawToken:this.rawToken});default:return this.throwUnexpectedToken({rawToken:this.rawToken})}};m.prototype.parseArrayInitializer=function(){var e=this.captureStartMarker();this.expectPunctuator("[");for(var b=[];!this.matchPunctuator("]");){var p=this.captureStartMarker();this.matchPunctuator(",")?(this.readNextRawToken(),this.throwError(f.ParsingErrorCodes.InvalidExpression,p)):(b.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.matchPunctuator("]")||
this.expectPunctuator(","))}this.expectPunctuator("]");return this.finalize(c({type:"ArrayExpression",elements:b},this.getItemLocation(e)))};m.prototype.parseObjectPropertyKey=function(){var e=this.captureStartMarker(),b=this.rawToken;switch(b.type){case 8:return this.readNextRawToken(),this.finalize(c({type:"Literal",value:b.value,raw:this.getSourceValue(b),isString:!0},this.getItemLocation(e)));case 3:case 1:case 5:case 4:return this.readNextRawToken(),this.finalize(c({type:"Identifier",name:b.value},
this.getItemLocation(e)));default:this.throwError(f.ParsingErrorCodes.KeyMustBeString,e)}};m.prototype.parseObjectProperty=function(){var e=this.rawToken,b=this.captureStartMarker(),p=this.parseObjectPropertyKey(),t=!1,z=null;this.matchPunctuator(":")?(this.readNextRawToken(),z=this.inheritCoverGrammar(this.parseAssignmentExpression)):3===e.type?(t=!0,z=this.finalize(c({type:"Identifier",name:e.value},this.getItemLocation(b)))):this.throwUnexpectedToken({rawToken:this.rawToken});return this.finalize(c({type:"Property",
kind:"init",key:p,value:z,shorthand:t},this.getItemLocation(b)))};m.prototype.parseObjectExpression=function(){var e=this.captureStartMarker();this.expectPunctuator("{");for(var b=[];!this.matchPunctuator("}");)b.push(this.parseObjectProperty()),this.matchPunctuator("}")||this.expectPunctuator(",");this.expectPunctuator("}");return this.finalize(c({type:"ObjectExpression",properties:b},this.getItemLocation(e)))};m.prototype.parseTemplateElement=function(e){void 0===e&&(e=!1);var b=this.rawToken;10!==
b.type&&this.throwUnexpectedToken({rawToken:b});e&&!b.head&&this.throwUnexpectedToken({code:f.ParsingErrorCodes.InvalidTemplateHead,rawToken:b});var p=this.captureStartMarker();this.readNextRawToken();e=b.tail;b=this.finalize(c({type:"TemplateElement",value:{raw:b.value,cooked:b.cooked},tail:e},this.getItemLocation(p)));b.loc.start.column++;b.loc.end.column-=e?1:2;return b};m.prototype.parseTemplateLiteral=function(){var e=this.captureStartMarker(),b=[],p=[],t=this.parseTemplateElement(!0);for(p.push(t);!t.tail;)b.push(this.parseExpression()),
t=this.parseTemplateElement(),p.push(t);return this.finalize(c({type:"TemplateLiteral",quasis:p,expressions:b},this.getItemLocation(e)))};m.prototype.parseGroupExpression=function(){this.expectPunctuator("(");var e=this.inheritCoverGrammar(this.parseAssignmentExpression);this.expectPunctuator(")");return e};m.prototype.parseArguments=function(){this.expectPunctuator("(");var e=[];if(!this.matchPunctuator(")"))for(;;){var b=this.isolateCoverGrammar(this.parseAssignmentExpression);e.push(b);if(this.matchPunctuator(")"))break;
this.expectPunctuator(",");if(this.matchPunctuator(")"))break}this.expectPunctuator(")");return e};m.prototype.parseMemberName=function(){var e=this.rawToken,b=this.captureStartMarker();this.readNextRawToken();5!==e.type&&3!==e.type&&4!==e.type&&1!==e.type&&this.throwUnexpectedToken({rawToken:e});return this.finalize(c({type:"Identifier",name:e.value},this.getItemLocation(b)))};m.prototype.parseLeftHandSideExpression=function(){for(var e=this.captureStartMarker(),b=this.inheritCoverGrammar(this.parsePrimaryExpression),
p=this.captureStartMarker(),t;t=this.getMatchingPunctuator("([.");)switch(t){case "(":this.context.isAssignmentTarget=!1;"Identifier"!==b.type&&"MemberExpression"!==b.type&&this.throwError(f.ParsingErrorCodes.IdentiferExpected,e,p);t=this.parseArguments();b=this.finalize(c({type:"CallExpression",callee:b,arguments:t},this.getItemLocation(e)));continue;case "[":this.context.isAssignmentTarget=!0;this.expectPunctuator("[");t=this.isolateCoverGrammar(this.parseExpression);this.expectPunctuator("]");
b=this.finalize(c({type:"MemberExpression",computed:!0,object:b,property:t},this.getItemLocation(e)));continue;case ".":this.context.isAssignmentTarget=!0,this.expectPunctuator("."),t=this.parseMemberName(),b=this.finalize(c({type:"MemberExpression",computed:!1,object:b,property:t},this.getItemLocation(e)))}return b};m.prototype.parseUpdateExpression=function(){var e=this.captureStartMarker(),b=this.getMatchingPunctuator(f.UpdateOperators);if(b){this.readNextRawToken();var p=this.captureStartMarker(),
t=this.inheritCoverGrammar(this.parseUnaryExpression);"Identifier"!==t.type&&"MemberExpression"!==t.type&&"CallExpression"!==t.type&&this.throwError(f.ParsingErrorCodes.InvalidExpression,p);this.context.isAssignmentTarget||this.tolerateError(f.ParsingErrorCodes.InvalidLeftHandSideInAssignment,e);this.context.isAssignmentTarget=!1;return this.finalize(c({type:"UpdateExpression",operator:b,argument:t,prefix:!0},this.getItemLocation(e)))}p=this.captureStartMarker();t=this.inheritCoverGrammar(this.parseLeftHandSideExpression);
var z=this.captureStartMarker();if(this.hasLineTerminator)return t;b=this.getMatchingPunctuator(f.UpdateOperators);if(!b)return t;"Identifier"!==t.type&&"MemberExpression"!==t.type&&this.throwError(f.ParsingErrorCodes.InvalidExpression,p,z);this.context.isAssignmentTarget||this.tolerateError(f.ParsingErrorCodes.InvalidLeftHandSideInAssignment,e);this.readNextRawToken();this.context.isAssignmentTarget=!1;return this.finalize(c({type:"UpdateExpression",operator:b,argument:t,prefix:!1},this.getItemLocation(e)))};
m.prototype.parseUnaryExpression=function(){var e=this.getMatchingPunctuator(f.UnaryOperators);if(e){var b=this.captureStartMarker();this.readNextRawToken();var p=this.inheritCoverGrammar(this.parseUnaryExpression);this.context.isAssignmentTarget=!1;return this.finalize(c({type:"UnaryExpression",operator:e,argument:p,prefix:!0},this.getItemLocation(b)))}return this.parseUpdateExpression()};m.prototype.parseBinaryExpression=function(){var e=this.rawToken,b=this.inheritCoverGrammar(this.parseUnaryExpression);
if(7!==this.rawToken.type)return b;var p=this.rawToken.value,t=d(p);if(0===t)return b;this.readNextRawToken();this.context.isAssignmentTarget=!1;e=[e,this.rawToken];var z=this.inheritCoverGrammar(this.parseUnaryExpression);p=[b,p,z];for(var C=[t];7===this.rawToken.type&&0<(t=d(this.rawToken.value));){for(;2<p.length&&t<=C[C.length-1];){z=p.pop();var y=p.pop();C.pop();b=p.pop();e.pop();var D=e[e.length-1];D=g(D,D.lineStart);p.push(this.finalize(this.createBinaryOrLogicalExpression(D,y,b,z)))}p.push(this.rawToken.value);
C.push(t);e.push(this.rawToken);this.readNextRawToken();p.push(this.inheritCoverGrammar(this.parseUnaryExpression))}t=p.length-1;b=p[t];for(D=e.pop();1<t;){z=e.pop();if(!z)break;D=g(z,null===D||void 0===D?void 0:D.lineStart);b=this.finalize(this.createBinaryOrLogicalExpression(D,p[t-1],p[t-2],b));t-=2;D=z}return b};m.prototype.createBinaryOrLogicalExpression=function(e,b,p,t){var z=f.LogicalOperators.includes(b)?"LogicalExpression":"BinaryExpression";if("BinaryExpression"===z)return c({type:z,operator:b,
left:p,right:t},this.getItemLocation(e));"AssignmentExpression"!==p.type&&"UpdateExpression"!==p.type||this.throwError.apply(this,r([f.ParsingErrorCodes.InvalidExpression],a(p)));"AssignmentExpression"!==t.type&&"UpdateExpression"!==t.type||this.throwError.apply(this,r([f.ParsingErrorCodes.InvalidExpression],a(p)));return c({type:z,operator:b,left:p,right:t},this.getItemLocation(e))};m.prototype.parseAssignmentExpression=function(){var e=this.captureStartMarker(),b=this.inheritCoverGrammar(this.parseBinaryExpression),
p=this.captureStartMarker(),t=this.getMatchingPunctuator(f.AssignmentOperators);if(!t)return b;"Identifier"!==b.type&&"MemberExpression"!==b.type&&this.throwError(f.ParsingErrorCodes.InvalidExpression,e,p);this.context.isAssignmentTarget||this.tolerateError(f.ParsingErrorCodes.InvalidLeftHandSideInAssignment,e);this.matchPunctuator("\x3d")||(this.context.isAssignmentTarget=!1);this.readNextRawToken();p=this.isolateCoverGrammar(this.parseAssignmentExpression);return this.finalize(c({type:"AssignmentExpression",
left:b,operator:t,right:p},this.getItemLocation(e)))};m.prototype.parseExpression=function(){return this.isolateCoverGrammar(this.parseAssignmentExpression)};m.prototype.parseStatements=function(e){for(var b=[];2!==this.rawToken.type&&!this.matchPunctuator(e);){var p=this.parseStatementListItem();f.isEmptyStatement(p)||b.push(p)}return b};m.prototype.parseStatementListItem=function(){this.context.isAssignmentTarget=!0;return this.matchKeyword(f.Keywords.Function)?this.parseFunctionDeclaration():this.matchKeyword(f.Keywords.Export)?
this.parseExportDeclaration():this.matchKeyword(f.Keywords.Import)?this.parseImportDeclaration():this.parseStatement()};m.prototype.parseBlock=function(){var e=this.captureStartMarker();this.expectPunctuator("{");var b=this.parseStatements("}");this.expectPunctuator("}");return this.finalize(c({type:"BlockStatement",body:b},this.getItemLocation(e)))};m.prototype.parseObjectStatement=function(){var e=this.captureStartMarker(),b=this.parseObjectExpression();return this.finalize(c({type:"ExpressionStatement",
expression:b},this.getItemLocation(e)))};m.prototype.parseBlockOrObjectStatement=function(){return this.context.curlyParsingType===l.AsObject||this.peekAhead(function(e){var b=e();if(3!==b.type&&8!==b.type)return!1;b=e();return 7!==b.type||":"!==b.value?!1:!0})?this.parseObjectStatement():this.parseBlock()};m.prototype.parseIdentifier=function(){var e=this.rawToken;if(3!==e.type)return null;var b=this.captureStartMarker();this.readNextRawToken();return this.finalize(c({type:"Identifier",name:e.value},
this.getItemLocation(b)))};m.prototype.parseVariableDeclarator=function(){var e=this.captureStartMarker(),b=this.parseIdentifier();b||this.throwUnexpectedToken({code:f.ParsingErrorCodes.IdentiferExpected});var p=null;if(this.matchPunctuator("\x3d")){this.readNextRawToken();var t=this.rawToken;try{p=this.isolateCoverGrammar(this.parseAssignmentExpression)}catch(z){this.throwUnexpectedToken({rawToken:t,code:f.ParsingErrorCodes.InvalidVariableAssignment})}}return this.finalize(c({type:"VariableDeclarator",
id:b,init:p},this.getItemLocation(e)))};m.prototype.parseVariableDeclarationList=function(){for(var e=[this.parseVariableDeclarator()];this.matchPunctuator(",");)this.readNextRawToken(),e.push(this.parseVariableDeclarator());return e};m.prototype.parseVariableDeclaration=function(){var e=this.captureStartMarker();this.expectKeyword(f.Keywords.Var);var b=this.parseVariableDeclarationList();this.consumeSemicolon();return this.finalize(c({type:"VariableDeclaration",declarations:b,kind:"var"},this.getItemLocation(e)))};
m.prototype.parseEmptyStatement=function(){var e=this.captureStartMarker();this.expectPunctuator(";");return this.finalize(c({type:"EmptyStatement"},this.getItemLocation(e)))};m.prototype.parseExpressionStatement=function(){var e=this.captureStartMarker(),b=this.parseExpression();this.consumeSemicolon();return this.finalize(c({type:"ExpressionStatement",expression:b},this.getItemLocation(e)))};m.prototype.parseIfClause=function(){return this.withBlockContext(k.IfClause,this.parseStatement)};m.prototype.parseIfStatement=
function(){var e=this.captureStartMarker();this.expectKeyword(f.Keywords.If);this.expectPunctuator("(");var b=this.captureStartMarker(),p=this.parseExpression(),t=this.captureStartMarker();this.expectPunctuator(")");"AssignmentExpression"!==p.type&&"UpdateExpression"!==p.type||this.throwError(f.ParsingErrorCodes.InvalidExpression,b,t);b=this.parseIfClause();t=null;this.matchKeyword(f.Keywords.Else)&&(this.readNextRawToken(),t=this.parseIfClause());return this.finalize(c({type:"IfStatement",test:p,
consequent:b,alternate:t},this.getItemLocation(e)))};m.prototype.parseWhileStatement=function(){var e=this.captureStartMarker();this.expectKeyword(f.Keywords.While);this.expectPunctuator("(");var b=this.captureStartMarker(),p=this.parseExpression(),t=this.captureStartMarker();this.expectPunctuator(")");"AssignmentExpression"!==p.type&&"UpdateExpression"!==p.type||this.throwError(f.ParsingErrorCodes.InvalidExpression,b,t);b=this.withBlockContext(k.WhileLoop,this.parseStatement);return this.finalize(c({type:"WhileStatement",
test:p,body:b},this.getItemLocation(e)))};m.prototype.parseForStatement=function(){var e=this,b=null,p=null,t=null,z=null,C=null,y=this.captureStartMarker();this.expectKeyword(f.Keywords.For);this.expectPunctuator("(");if(this.matchPunctuator(";"))this.readNextRawToken();else if(this.matchKeyword(f.Keywords.Var)){var D=this.captureStartMarker();this.readNextRawToken();var B=this.parseVariableDeclarationList();1===B.length&&this.matchKeyword(f.Keywords.In)?(B[0].init&&this.throwError(f.ParsingErrorCodes.ForInOfLoopInitializer,
D),z=this.finalize(c({type:"VariableDeclaration",declarations:B,kind:"var"},this.getItemLocation(D))),this.readNextRawToken(),C=this.parseExpression()):(this.matchKeyword(f.Keywords.In)&&this.throwError(f.ParsingErrorCodes.InvalidLeftHandSideInForIn,D),b=this.finalize(c({type:"VariableDeclaration",declarations:B,kind:"var"},this.getItemLocation(D))),this.expectPunctuator(";"))}else B=this.context.isAssignmentTarget,D=this.captureStartMarker(),b=this.inheritCoverGrammar(this.parseAssignmentExpression),
this.matchKeyword(f.Keywords.In)?(this.context.isAssignmentTarget||this.tolerateError(f.ParsingErrorCodes.InvalidLeftHandSideInForIn,D),"Identifier"!==b.type&&this.throwError(f.ParsingErrorCodes.InvalidLeftHandSideInForIn,D),this.readNextRawToken(),z=b,C=this.parseExpression(),b=null):(this.context.isAssignmentTarget=B,this.expectPunctuator(";"));z||(this.matchPunctuator(";")||(p=this.isolateCoverGrammar(this.parseExpression)),this.expectPunctuator(";"),this.matchPunctuator(")")||(t=this.isolateCoverGrammar(this.parseExpression)));
this.expectPunctuator(")");D=this.withBlockContext(k.ForLoop,function(){return e.isolateCoverGrammar(e.parseStatement)});return z&&C?this.finalize(c({type:"ForInStatement",left:z,right:C,body:D},this.getItemLocation(y))):this.finalize(c({type:"ForStatement",init:b,test:p,update:t,body:D},this.getItemLocation(y)))};m.prototype.parseContinueStatement=function(){var e=this.captureStartMarker();this.expectKeyword(f.Keywords.Continue);this.consumeSemicolon();return this.finalize(c({type:"ContinueStatement"},
this.getItemLocation(e)))};m.prototype.parseBreakStatement=function(){var e=this.captureStartMarker();this.expectKeyword(f.Keywords.Break);this.consumeSemicolon();return this.finalize(c({type:"BreakStatement"},this.getItemLocation(e)))};m.prototype.parseReturnStatement=function(){var e=this.captureStartMarker();this.expectKeyword(f.Keywords.Return);var b=(this.matchPunctuator(";")||this.matchPunctuator("}")||this.hasLineTerminator||2===this.rawToken.type)&&8!==this.rawToken.type&&10!==this.rawToken.type?
null:this.parseExpression();this.consumeSemicolon();return this.finalize(c({type:"ReturnStatement",argument:b},this.getItemLocation(e)))};m.prototype.parseStatement=function(){switch(this.rawToken.type){case 1:case 5:case 6:case 8:case 10:case 3:return this.parseExpressionStatement();case 7:return"{"===this.rawToken.value?this.parseBlockOrObjectStatement():"("===this.rawToken.value?this.parseExpressionStatement():";"===this.rawToken.value?this.parseEmptyStatement():this.parseExpressionStatement();
case 4:switch(this.rawToken.value.toLowerCase()){case f.Keywords.Break:return this.parseBreakStatement();case f.Keywords.Continue:return this.parseContinueStatement();case f.Keywords.For:return this.parseForStatement();case f.Keywords.Function:return this.parseFunctionDeclaration();case f.Keywords.If:return this.parseIfStatement();case f.Keywords.Return:return this.parseReturnStatement();case f.Keywords.Var:return this.parseVariableDeclaration();case f.Keywords.While:return this.parseWhileStatement();
default:return this.parseExpressionStatement()}default:return this.throwUnexpectedToken({rawToken:this.rawToken})}};m.prototype.parseFormalParameters=function(){var e=[];this.expectPunctuator("(");if(!this.matchPunctuator(")"))for(;2!==this.rawToken.type;){var b=this.parseIdentifier();b||this.throwUnexpectedToken({rawToken:this.rawToken,code:f.ParsingErrorCodes.IdentiferExpected});e.push(b);if(this.matchPunctuator(")"))break;this.expectPunctuator(",");if(this.matchPunctuator(")"))break}this.expectPunctuator(")");
return e};m.prototype.parseFunctionDeclaration=function(){(this.context.blockContext&k.Function)===k.Function&&this.throwUnexpectedToken({code:f.ParsingErrorCodes.NoFunctionInsideFunction});(this.context.blockContext&k.WhileLoop)!==k.WhileLoop&&(this.context.blockContext&k.IfClause)!==k.IfClause||this.throwUnexpectedToken({code:f.ParsingErrorCodes.NoFunctionInsideBlock});var e=this.captureStartMarker();this.expectKeyword(f.Keywords.Function);var b=this.parseIdentifier();b||this.throwUnexpectedToken({code:f.ParsingErrorCodes.InvalidFunctionIdentifier});
var p=this.parseFormalParameters(),t=this.context.blockContext;this.context.blockContext|=k.Function;var z=this.parseBlock();this.context.blockContext=t;return this.finalize(c({type:"FunctionDeclaration",id:b,params:p,body:z},this.getItemLocation(e)))};m.prototype.parseScript=function(){var e=this.captureStartMarker(),b=this.parseStatements();e=this.finalize(c({type:"Program",body:b},this.getItemLocation(e)));this.options.tokens&&(e.tokens=this.tokens);this.options.tolerant&&(e.errors=this.errorHandler.errors);
return e};m.prototype.parseExportDeclaration=function(){this.context.blockContext!==k.None&&this.throwUnexpectedToken({code:f.ParsingErrorCodes.ModuleExportRootOnly});var e=null,b=this.captureStartMarker();this.expectKeyword(f.Keywords.Export);this.matchKeyword(f.Keywords.Var)?e=this.parseVariableDeclaration():this.matchKeyword("function")?e=this.parseFunctionDeclaration():this.throwUnexpectedToken({code:f.ParsingErrorCodes.InvalidExpression});return this.finalize(c({type:"ExportNamedDeclaration",
declaration:e,specifiers:[],source:null},this.getItemLocation(b)))};m.prototype.parseModuleSpecifier=function(){var e=this.captureStartMarker(),b=this.rawToken;if(8===b.type)return this.readNextRawToken(),this.finalize(c({type:"Literal",value:b.value,raw:this.getSourceValue(b),isString:!0},this.getItemLocation(e)));this.throwError(f.ParsingErrorCodes.InvalidModuleUri,e)};m.prototype.parseDefaultSpecifier=function(){var e=this.captureStartMarker(),b=this.parseIdentifier();b||this.throwUnexpectedToken({code:f.ParsingErrorCodes.IdentiferExpected});
return this.finalize(c({type:"ImportDefaultSpecifier",local:b},this.getItemLocation(e)))};m.prototype.parseImportDeclaration=function(){this.context.blockContext!==k.None&&this.throwUnexpectedToken({code:f.ParsingErrorCodes.ModuleImportRootOnly});var e=this.captureStartMarker();this.expectKeyword(f.Keywords.Import);var b=this.parseDefaultSpecifier();this.expectContextualKeyword(f.Keywords.From);var p=this.parseModuleSpecifier();return this.finalize(c({type:"ImportDeclaration",specifiers:[b],source:p},
this.getItemLocation(e)))};return m}();x.Parser=G})},"esri/arcade/lib/comment-handler":function(){define(["require","exports","../polyfill/tsSupport/assign","../polyfill/tsSupport/spreadarray","./types"],function(G,x,c,r,h){function w(q,n){return n?n.loc.end.line===q.loc.start.line&&n.loc.end.column<=q.loc.start.column:!1}Object.defineProperty(x,"__esModule",{value:!0});x.CommentHandler=void 0;G=function(){function q(){this.comments=[];this._nodeStack=[];this._newComments=[]}q.prototype.insertInnerComments=
function(n){if(h.isBlockStatement(n)&&0===n.body.length){for(var f=[],g=this._newComments.length-1;0<=g;--g){var a=this._newComments[g];n.range[1]>=a.range[0]&&(f.unshift(a),this._newComments.splice(g,1))}f.length&&(n.innerComments=f)}};q.prototype.attachTrailingComments=function(n){var f,g;if(n){var a=this._nodeStack[this._nodeStack.length-1];if(h.isBlockStatement(n)&&a.range[0]>=n.range[0]&&a.range[1]<=n.range[1])for(var d=this._newComments.length-1;0<=d;--d){var k=this._newComments[d];k.range[0]>=
n.range[0]&&k.range[1]<=n.range[1]&&(a.trailingComments=r(r([],null!==(f=a.trailingComments)&&void 0!==f?f:[]),[k]),this._newComments.splice(d,1))}f=[];if(0<this._newComments.length)for(d=this._newComments.length-1;0<=d;--d)k=this._newComments[d],w(k,a)?(a.trailingComments=r(r([],null!==(g=a.trailingComments)&&void 0!==g?g:[]),[k]),this._newComments.splice(d,1)):w(k,n)&&(f.unshift(k),this._newComments.splice(d,1));(null===a||void 0===a?0:a.trailingComments)&&w(a.trailingComments[0],n)&&(f=r(r([],
f),a.trailingComments),delete a.trailingComments);0<f.length&&(n.trailingComments=f)}};q.prototype.attachLeadingComments=function(n){var f,g,a,d;if(n){for(var k;0<this._nodeStack.length;){var l=this._nodeStack[this._nodeStack.length-1];if(n.range[0]<=l.range[0])k=l,this._nodeStack.pop();else break}l=[];var m=[];if(k){for(var e=(null!==(g=null===(f=k.leadingComments)||void 0===f?void 0:f.length)&&void 0!==g?g:0)-1;0<=e;--e)f=k.leadingComments[e],n.range[0]>=f.range[1]?(l.unshift(f),k.leadingComments.splice(e,
1)):h.isVariableDeclarator(n)&&!h.isBlockComment(f)&&(m.unshift(f),k.leadingComments.splice(e,1));0===(null===(a=k.leadingComments)||void 0===a?void 0:a.length)&&delete k.leadingComments;l.length&&(n.leadingComments=l);m.length&&(n.trailingComments=r(r([],m),null!==(d=n.trailingComments)&&void 0!==d?d:[]))}else{for(e=this._newComments.length-1;0<=e;--e)f=this._newComments[e],n.range[0]>=f.range[0]&&(l.unshift(f),this._newComments.splice(e,1));l.length&&(n.leadingComments=l)}}};q.prototype.attachComments=
function(n){var f;if(h.isProgram(n)&&0<n.body.length){var g=this._nodeStack[this._nodeStack.length-1];g?(g.trailingComments=r(r([],null!==(f=g.trailingComments)&&void 0!==f?f:[]),this._newComments),this._newComments.length=0,this._nodeStack.pop()):(n.trailingComments=r([],this._newComments),this._newComments.length=0)}else this.attachTrailingComments(n),this.attachLeadingComments(n),this.insertInnerComments(n),this._nodeStack.push(n)};q.prototype.collectComment=function(n){this.comments.push(n);this._newComments.push(n)};
return q}();x.CommentHandler=G})},"esri/arcade/lib/types":function(){define(["require","exports","../polyfill/tsSupport/extends"],function(G,x,c){var r;Object.defineProperty(x,"__esModule",{value:!0});x.isTemplateElement=x.isProperty=x.isVariableDeclarator=x.isUpdateExpression=x.isUnaryExpression=x.isMemberExpression=x.isTemplateLiteral=x.isObjectExpression=x.isLogicalExpression=x.isLiteral=x.isIdentifier=x.isCallExpression=x.isBinaryExpression=x.isAssignmentExpression=x.isArrayExpression=x.isExpression=
x.isVariableDeclaration=x.isReturnStatement=x.isIfStatement=x.isFunctionDeclaration=x.isForStatement=x.isForInStatement=x.isExpressionStatement=x.isEmptyStatement=x.isContinueStatement=x.isBreakStatement=x.isBlockComment=x.isBlockStatement=x.isStatement=x.isProgram=x.ParsingError=x.ParsingErrorMessages=x.ParsingErrorCodes=x.TokenNames=x.TokenType=x.OperatorPrecedence=x.BinaryOperators=x.LogicalOperators=x.AssignmentOperators=x.UnaryOperators=x.UpdateOperators=x.Syntax=x.Keywords=void 0;(function(h){h.Break=
"break";h.Continue="continue";h.Else="else";h.False="false";h.For="for";h.From="from";h.Function="function";h.If="if";h.Import="import";h.Export="export";h.In="in";h.Null="null";h.Return="return";h.True="true";h.Var="var";h.While="while"})(x.Keywords||(x.Keywords={}));(function(h){h.AssignmentExpression="AssignmentExpression";h.ArrayExpression="ArrayExpression";h.BlockComment="BlockComment";h.BlockStatement="BlockStatement";h.BinaryExpression="BinaryExpression";h.BreakStatement="BreakStatement";h.CallExpression=
"CallExpression";h.ContinueStatement="ContinueStatement";h.EmptyStatement="EmptyStatement";h.ExpressionStatement="ExpressionStatement";h.ExportNamedDeclaration="ExportNamedDeclaration";h.ExportSpecifier="ExportSpecifier";h.ForStatement="ForStatement";h.ForInStatement="ForInStatement";h.FunctionDeclaration="FunctionDeclaration";h.Identifier="Identifier";h.IfStatement="IfStatement";h.ImportDeclaration="ImportDeclaration";h.ImportDefaultSpecifier="ImportDefaultSpecifier";h.LineComment="LineComment";
h.Literal="Literal";h.LogicalExpression="LogicalExpression";h.MemberExpression="MemberExpression";h.ObjectExpression="ObjectExpression";h.Program="Program";h.Property="Property";h.ReturnStatement="ReturnStatement";h.TemplateElement="TemplateElement";h.TemplateLiteral="TemplateLiteral";h.UnaryExpression="UnaryExpression";h.UpdateExpression="UpdateExpression";h.VariableDeclaration="VariableDeclaration";h.VariableDeclarator="VariableDeclarator";h.WhileStatement="WhileStatement"})(x.Syntax||(x.Syntax=
{}));x.UpdateOperators=["++","--"];x.UnaryOperators=["-","+","!","~"];x.AssignmentOperators="\x3d /\x3d *\x3d %\x3d +\x3d -\x3d".split(" ");x.LogicalOperators=["||","\x26\x26"];x.BinaryOperators="| \x26 \x3e\x3e \x3c\x3c \x3e\x3e\x3e ^ \x3d\x3d !\x3d \x3c \x3c\x3d \x3e \x3e\x3d + - * / %".split(" ");x.OperatorPrecedence={"||":1,"\x26\x26":2,"|":3,"^":4,"\x26":5,"\x3d\x3d":6,"!\x3d":6,"\x3c":7,"\x3e":7,"\x3c\x3d":7,"\x3e\x3d":7,"\x3c\x3c":8,"\x3e\x3e":8,"\x3e\x3e\x3e":8,"+":9,"-":9,"*":10,"/":10,"%":10};
(function(h){h[h.Unknown=0]="Unknown";h[h.BooleanLiteral=1]="BooleanLiteral";h[h.EOF=2]="EOF";h[h.Identifier=3]="Identifier";h[h.Keyword=4]="Keyword";h[h.NullLiteral=5]="NullLiteral";h[h.NumericLiteral=6]="NumericLiteral";h[h.Punctuator=7]="Punctuator";h[h.StringLiteral=8]="StringLiteral";h[h.Template=10]="Template"})(x.TokenType||(x.TokenType={}));x.TokenNames="Unknown Boolean \x3cend\x3e Identifier Keyword Null Numeric Punctuator String RegularExpression Template".split(" ");(function(h){h.InvalidModuleUri=
"InvalidModuleUri";h.ForInOfLoopInitializer="ForInOfLoopInitializer";h.IdentiferExpected="IdentiferExpected";h.InvalidEscapedReservedWord="InvalidEscapedReservedWord";h.InvalidExpression="InvalidExpression";h.InvalidFunctionIdentifier="InvalidFunctionIdentifier";h.InvalidHexEscapeSequence="InvalidHexEscapeSequence";h.InvalidLeftHandSideInAssignment="InvalidLeftHandSideInAssignment";h.InvalidLeftHandSideInForIn="InvalidLeftHandSideInForIn";h.InvalidTemplateHead="InvalidTemplateHead";h.InvalidVariableAssignment=
"InvalidVariableAssignment";h.KeyMustBeString="KeyMustBeString";h.NoFunctionInsideBlock="NoFunctionInsideBlock";h.NoFunctionInsideFunction="NoFunctionInsideFunction";h.ModuleExportRootOnly="ModuleExportRootOnly";h.ModuleImportRootOnly="ModuleImportRootOnly";h.PunctuatorExpected="PunctuatorExpected";h.TemplateOctalLiteral="TemplateOctalLiteral";h.UnexpectedBoolean="UnexpectedBoolean";h.UnexpectedEndOfScript="UnexpectedEndOfScript";h.UnexpectedIdentifier="UnexpectedIdentifier";h.UnexpectedKeyword="UnexpectedKeyword";
h.UnexpectedNull="UnexpectedNull";h.UnexpectedNumber="UnexpectedNumber";h.UnexpectedPunctuator="UnexpectedPunctuator";h.UnexpectedString="UnexpectedString";h.UnexpectedTemplate="UnexpectedTemplate";h.UnexpectedToken="UnexpectedToken"})(G=x.ParsingErrorCodes||(x.ParsingErrorCodes={}));x.ParsingErrorMessages=(r={},r[G.InvalidModuleUri]="Module uri must be a text literal.",r[G.ForInOfLoopInitializer]="for-in loop variable declaration may not have an initializer.",r[G.IdentiferExpected]="'${value}' is an invalid identifier.",
r[G.InvalidEscapedReservedWord]="Keyword cannot contain escaped characters.",r[G.InvalidExpression]="Invalid expression.",r[G.InvalidFunctionIdentifier]="'${value}' is an invalid function identifier.",r[G.InvalidHexEscapeSequence]="Invalid hexadecimal escape sequence.",r[G.InvalidLeftHandSideInAssignment]="Invalid left-hand side in assignment.",r[G.InvalidLeftHandSideInForIn]="Invalid left-hand side in for-in.",r[G.InvalidTemplateHead]="Invalid template structure.",r[G.InvalidVariableAssignment]=
"Invalid variable assignment.",r[G.KeyMustBeString]="Object property keys must be a word starting with a letter.",r[G.NoFunctionInsideBlock]="Functions cannot be declared inside of code blocks.",r[G.NoFunctionInsideFunction]="Functions cannot be declared inside another function.",r[G.ModuleExportRootOnly]="Module exports cannot be declared inside of code blocks.",r[G.ModuleImportRootOnly]="Module import cannot be declared inside of code blocks.",r[G.PunctuatorExpected]="'${value}' expected.",r[G.TemplateOctalLiteral]=
"Octal literals are not allowed in template literals.",r[G.UnexpectedBoolean]="Unexpected boolean literal.",r[G.UnexpectedEndOfScript]="Unexpected end of Arcade expression.",r[G.UnexpectedIdentifier]="Unexpected identifier.",r[G.UnexpectedKeyword]="Unexpected keyword.",r[G.UnexpectedNull]="Unexpected null literal.",r[G.UnexpectedNumber]="Unexpected number.",r[G.UnexpectedPunctuator]="Unexpected ponctuator.",r[G.UnexpectedString]="Unexpected text literal.",r[G.UnexpectedTemplate]="Unexpected quasi '${value}'.",
r[G.UnexpectedToken]="Unexpected token '${value}'.",r);r=function(h){function w(q){var n=q.code,f=q.index,g=q.line,a=q.column,d=q.len;d=void 0===d?0:d;var k=q.description;q=q.data;var l,m,e=h.call(this,""+(null!==k&&void 0!==k?k:n))||this;e.declaredRootClass="esri.arcade.lib.parsingerror";e.name="ParsingError";e.code=n;e.index=f;e.line=g;e.column=a;e.len=d;e.data=q;e.description=k;e.range={start:{line:g,column:a-1},end:{line:g,column:a+d}};null===(m=(l=Error).captureStackTrace)||void 0===m?void 0:
m.call(l,e,w);return e}c(w,h);return w}(Error);x.ParsingError=r;x.isProgram=function(h){return"Program"===(null===h||void 0===h?void 0:h.type)};x.isStatement=function(h){switch(null===h||void 0===h?void 0:h.type){case "BlockStatement":case "BreakStatement":case "ContinueStatement":case "EmptyStatement":case "ExpressionStatement":case "ForInStatement":case "ForStatement":case "FunctionDeclaration":case "IfStatement":case "ReturnStatement":case "VariableDeclaration":return!0;default:return!1}};x.isBlockStatement=
function(h){return"BlockStatement"===(null===h||void 0===h?void 0:h.type)};x.isBlockComment=function(h){return"BlockComment"===(null===h||void 0===h?void 0:h.type)};x.isBreakStatement=function(h){return"BreakStatement"===(null===h||void 0===h?void 0:h.type)};x.isContinueStatement=function(h){return"ContinueStatement"===(null===h||void 0===h?void 0:h.type)};x.isEmptyStatement=function(h){return"EmptyStatement"===(null===h||void 0===h?void 0:h.type)};x.isExpressionStatement=function(h){return"ExpressionStatement"===
(null===h||void 0===h?void 0:h.type)};x.isForInStatement=function(h){return"ForInStatement"===(null===h||void 0===h?void 0:h.type)};x.isForStatement=function(h){return"ForStatement"===(null===h||void 0===h?void 0:h.type)};x.isFunctionDeclaration=function(h){return"FunctionDeclaration"===(null===h||void 0===h?void 0:h.type)};x.isIfStatement=function(h){return"IfStatement"===(null===h||void 0===h?void 0:h.type)};x.isReturnStatement=function(h){return"ReturnStatement"===(null===h||void 0===h?void 0:
h.type)};x.isVariableDeclaration=function(h){return"VariableDeclaration"===(null===h||void 0===h?void 0:h.type)};x.isExpression=function(h){switch(null===h||void 0===h?void 0:h.type){case "ArrayExpression":case "AssignmentExpression":case "BinaryExpression":case "CallExpression":case "Identifier":case "Literal":case "LogicalExpression":case "MemberExpression":case "ObjectExpression":case "TemplateLiteral":case "UpdateExpression":case "UnaryExpression":return!0;default:return!1}};x.isArrayExpression=
function(h){return"ArrayExpression"===(null===h||void 0===h?void 0:h.type)};x.isAssignmentExpression=function(h){return"AssignmentExpression"===(null===h||void 0===h?void 0:h.type)};x.isBinaryExpression=function(h){return"BinaryExpression"===(null===h||void 0===h?void 0:h.type)};x.isCallExpression=function(h){return"CallExpression"===(null===h||void 0===h?void 0:h.type)};x.isIdentifier=function(h){return"Identifier"===(null===h||void 0===h?void 0:h.type)};x.isLiteral=function(h){return"Literal"===
(null===h||void 0===h?void 0:h.type)};x.isLogicalExpression=function(h){return"LogicalExpression"===(null===h||void 0===h?void 0:h.type)};x.isObjectExpression=function(h){return"ObjectExpression"===(null===h||void 0===h?void 0:h.type)};x.isTemplateLiteral=function(h){return"TemplateLiteral"===(null===h||void 0===h?void 0:h.type)};x.isMemberExpression=function(h){return"MemberExpression"===(null===h||void 0===h?void 0:h.type)};x.isUnaryExpression=function(h){return"UnaryExpression"===(null===h||void 0===
h?void 0:h.type)};x.isUpdateExpression=function(h){return"UpdateExpression"===(null===h||void 0===h?void 0:h.type)};x.isVariableDeclarator=function(h){return"VariableDeclarator"===(null===h||void 0===h?void 0:h.type)};x.isProperty=function(h){return"Property"===(null===h||void 0===h?void 0:h.type)};x.isTemplateElement=function(h){return"TemplateElement"===(null===h||void 0===h?void 0:h.type)}})},"esri/arcade/lib/error-handler":function(){define(["require","exports","./types"],function(G,x,c){function r(h,
w){h=c.ParsingErrorMessages[h];return w?h.replace(/\${(.*?)}/g,function(q,n){var f,g;return null!==(g=null===(f=w[n])||void 0===f?void 0:f.toString())&&void 0!==g?g:""}):h}Object.defineProperty(x,"__esModule",{value:!0});x.ErrorHandler=x.formatErrorDescription=void 0;x.formatErrorDescription=r;G=function(){function h(w){void 0===w&&(w=!1);this.tolerant=w;this.errors=[]}h.prototype.recordError=function(w){this.errors.push(w)};h.prototype.tolerate=function(w){if(this.tolerant)this.recordError(w);else throw w;
};h.prototype.throwError=function(w){var q;w.description=null!==(q=w.description)&&void 0!==q?q:r(w.code,w.data);throw new c.ParsingError(w);};h.prototype.tolerateError=function(w){var q;w.description=null!==(q=w.description)&&void 0!==q?q:r(w.code,w.data);w=new c.ParsingError(w);if(this.tolerant)this.recordError(w);else throw w;};return h}();x.ErrorHandler=G})},"esri/arcade/lib/scanner":function(){define("require exports ../polyfill/tsSupport/assign ../polyfill/tsSupport/spreadarray ../polyfill/tsSupport/extends ./assert ./character ./types".split(" "),
function(G,x,c,r,h,w,q,n){Object.defineProperty(x,"__esModule",{value:!0});x.Scanner=void 0;var f=[[],[],[]];n.UpdateOperators.forEach(function(g){return f[g.length-1].push(g)});n.UnaryOperators.forEach(function(g){return f[g.length-1].push(g)});n.LogicalOperators.forEach(function(g){return f[g.length-1].push(g)});n.AssignmentOperators.forEach(function(g){return f[g.length-1].push(g)});n.BinaryOperators.forEach(function(g){return f[g.length-1].push(g)});G=function(){function g(a,d){this.source=a;
this.errorHandler=d;this._length=a.length;this.index=0;this.lineNumber=1;this.lineStart=0;this.curlyStack=[]}g.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart,curlyStack:this.curlyStack.slice()}};g.prototype.restoreState=function(a){this.index=a.index;this.lineNumber=a.lineNumber;this.lineStart=a.lineStart;this.curlyStack=a.curlyStack};g.prototype.eof=function(){return this.index>=this._length};g.prototype.throwUnexpectedToken=function(a){void 0===
a&&(a=n.ParsingErrorCodes.UnexpectedToken);this.errorHandler.throwError({code:a,index:this.index,line:this.lineNumber,column:this.index-this.lineStart+1})};g.prototype.tolerateUnexpectedToken=function(a){void 0===a&&(a=n.ParsingErrorCodes.UnexpectedToken);this.errorHandler.tolerateError({code:a,index:this.index,line:this.lineNumber,column:this.index-this.lineStart+1})};g.prototype.skipSingleLineComment=function(a){for(var d=[],k=this.index-a,l={start:{line:this.lineNumber,column:this.index-this.lineStart-
a},end:{line:0,column:0}};!this.eof();){var m=this.source.charCodeAt(this.index);++this.index;if(q.Character.isLineTerminator(m))return l&&(l.end={line:this.lineNumber,column:this.index-this.lineStart-1},a={multiLine:!1,start:k+a,end:this.index-1,range:[k,this.index-1],loc:l},d.push(a)),13===m&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,d}l&&(l.end={line:this.lineNumber,column:this.index-this.lineStart},a={multiLine:!1,start:k+a,end:this.index,
range:[k,this.index],loc:l},d.push(a));return d};g.prototype.skipMultiLineComment=function(){for(var a=[],d=this.index-2,k={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{line:0,column:0}};!this.eof();){var l=this.source.charCodeAt(this.index);if(q.Character.isLineTerminator(l))13===l&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else{if(42===l&&47===this.source.charCodeAt(this.index+1))return this.index+=2,
k&&(k.end={line:this.lineNumber,column:this.index-this.lineStart},d={multiLine:!0,start:d+2,end:this.index-2,range:[d,this.index],loc:k},a.push(d)),a;++this.index}}k&&(k.end={line:this.lineNumber,column:this.index-this.lineStart},d={multiLine:!0,start:d+2,end:this.index,range:[d,this.index],loc:k},a.push(d));this.tolerateUnexpectedToken();return a};g.prototype.scanComments=function(){for(var a=[];!this.eof();){var d=this.source.charCodeAt(this.index);if(q.Character.isWhiteSpace(d))++this.index;else if(q.Character.isLineTerminator(d))++this.index,
13===d&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index;else if(47===d)if(d=this.source.charCodeAt(this.index+1),47===d)this.index+=2,d=this.skipSingleLineComment(2),a=r(r([],a),d);else if(42===d)this.index+=2,d=this.skipMultiLineComment(),a=r(r([],a),d);else break;else break}return a};g.prototype.isKeyword=function(a){a=a.toLowerCase();switch(a.length){case 2:return a===n.Keywords.If||a===n.Keywords.In;case 3:return a===n.Keywords.Var||a===n.Keywords.For;
case 4:return a===n.Keywords.Else;case 5:return a===n.Keywords.Break||a===n.Keywords.While;case 6:return a===n.Keywords.Return||a===n.Keywords.Import||a===n.Keywords.Export;case 8:return a===n.Keywords.Function||a===n.Keywords.Continue;default:return!1}};g.prototype.codePointAt=function(a){var d=this.source.charCodeAt(a);55296<=d&&56319>=d&&(a=this.source.charCodeAt(a+1),56320<=a&&57343>=a&&(d=1024*(d-55296)+a-56320+65536));return d};g.prototype.scanHexEscape=function(a){a="u"===a?4:2;for(var d=0,
k=0;k<a;++k)if(!this.eof()&&q.Character.isHexDigit(this.source.charCodeAt(this.index)))d=16*d+"0123456789abcdef".indexOf(this.source[this.index++].toLowerCase());else return null;return String.fromCharCode(d)};g.prototype.scanUnicodeCodePointEscape=function(){var a=this.source[this.index],d=0;for("}"===a&&this.throwUnexpectedToken();!this.eof();){a=this.source[this.index++];if(!q.Character.isHexDigit(a.charCodeAt(0)))break;d=16*d+"0123456789abcdef".indexOf(a.toLowerCase())}(1114111<d||"}"!==a)&&this.throwUnexpectedToken();
return q.Character.fromCodePoint(d)};g.prototype.getIdentifier=function(){for(var a=this.index++;!this.eof();){var d=this.source.charCodeAt(this.index);if(92===d||55296<=d&&57343>d)return this.index=a,this.getComplexIdentifier();if(q.Character.isIdentifierPart(d))++this.index;else break}return this.source.slice(a,this.index)};g.prototype.getComplexIdentifier=function(){var a=this.codePointAt(this.index),d=q.Character.fromCodePoint(a);this.index+=d.length;if(92===a){117!==this.source.charCodeAt(this.index)&&
this.throwUnexpectedToken();++this.index;if("{"===this.source[this.index]){++this.index;var k=this.scanUnicodeCodePointEscape()}else k=this.scanHexEscape("u"),null!==k&&"\\"!==k&&q.Character.isIdentifierStart(k.charCodeAt(0))||this.throwUnexpectedToken();d=k}for(;!this.eof();){a=this.codePointAt(this.index);if(!q.Character.isIdentifierPart(a))break;k=q.Character.fromCodePoint(a);d+=k;this.index+=k.length;92===a&&(d=d.substring(0,d.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),
++this.index,"{"===this.source[this.index]?(++this.index,k=this.scanUnicodeCodePointEscape()):(k=this.scanHexEscape("u"),null!==k&&"\\"!==k&&q.Character.isIdentifierPart(k.charCodeAt(0))||this.throwUnexpectedToken()),d+=k)}return d};g.prototype.octalToDecimal=function(a){var d="0"!==a,k="01234567".indexOf(a);!this.eof()&&q.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(d=!0,k=8*k+"01234567".indexOf(this.source[this.index++]),"0123".includes(a)&&!this.eof()&&q.Character.isOctalDigit(this.source.charCodeAt(this.index))&&
(k=8*k+"01234567".indexOf(this.source[this.index++])));return{code:k,octal:d}};g.prototype.scanIdentifier=function(){var a=this.index,d=92===this.source.charCodeAt(a)?this.getComplexIdentifier():this.getIdentifier();var k=1===d.length?3:this.isKeyword(d)?4:d.toLowerCase()===n.Keywords.Null?5:d.toLowerCase()===n.Keywords.True||d.toLowerCase()===n.Keywords.False?1:3;if(3!==k&&a+d.length!==this.index){var l=this.index;this.index=a;this.tolerateUnexpectedToken(n.ParsingErrorCodes.InvalidEscapedReservedWord);
this.index=l}return{type:k,value:d,lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}};g.prototype.scanPunctuator=function(){var a=this.index,d=this.source[this.index];switch(d){case "(":case "{":"{"===d&&this.curlyStack.push("{");++this.index;break;case ".":++this.index;break;case "}":++this.index;this.curlyStack.pop();break;case ")":case ";":case ",":case "[":case "]":case ":":case "?":case "~":++this.index;break;default:for(var k=f.length;0<k;k--)if(d=this.source.substring(this.index,
this.index+k),f[k-1].includes(d)){this.index+=k;break}}this.index===a&&this.throwUnexpectedToken();return{type:7,value:d,lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}};g.prototype.scanHexLiteral=function(a){for(var d="";!this.eof()&&q.Character.isHexDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];0===d.length&&this.throwUnexpectedToken();q.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken();return{type:6,
value:parseInt("0x"+d,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}};g.prototype.scanBinaryLiteral=function(a){for(var d="";!this.eof();){var k=this.source[this.index];if("0"!==k&&"1"!==k)break;d+=this.source[this.index++]}0===d.length&&this.throwUnexpectedToken();this.eof()||(k=this.source.charCodeAt(this.index),(q.Character.isIdentifierStart(k)||q.Character.isDecimalDigit(k))&&this.throwUnexpectedToken());return{type:6,value:parseInt(d,2),lineNumber:this.lineNumber,
lineStart:this.lineStart,start:a,end:this.index}};g.prototype.scanOctalLiteral=function(a,d){var k="",l=!1;q.Character.isOctalDigit(a.charCodeAt(0))?(l=!0,k="0"+this.source[this.index++]):++this.index;for(;!this.eof()&&q.Character.isOctalDigit(this.source.charCodeAt(this.index));)k+=this.source[this.index++];l||0!==k.length||this.throwUnexpectedToken();(q.Character.isIdentifierStart(this.source.charCodeAt(this.index))||q.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken();
return{type:6,value:parseInt(k,8),lineNumber:this.lineNumber,lineStart:this.lineStart,start:d,end:this.index}};g.prototype.scanNumericLiteral=function(){var a=this.index,d=this.source[a];w.assert(q.Character.isDecimalDigit(d.charCodeAt(0))||"."===d,"Numeric literal must start with a decimal digit or a decimal point");var k="";if("."!==d){k=this.source[this.index++];d=this.source[this.index];if("0"===k){if("x"===d||"X"===d)return++this.index,this.scanHexLiteral(a);if("b"===d||"B"===d)return++this.index,
this.scanBinaryLiteral(a);if("o"===d||"O"===d)return this.scanOctalLiteral(d,a)}for(;q.Character.isDecimalDigit(this.source.charCodeAt(this.index));)k+=this.source[this.index++];d=this.source[this.index]}if("."===d){for(k+=this.source[this.index++];q.Character.isDecimalDigit(this.source.charCodeAt(this.index));)k+=this.source[this.index++];d=this.source[this.index]}if("e"===d||"E"===d){k+=this.source[this.index++];d=this.source[this.index];if("+"===d||"-"===d)k+=this.source[this.index++];if(q.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;q.Character.isDecimalDigit(this.source.charCodeAt(this.index));)k+=
this.source[this.index++];else this.throwUnexpectedToken()}q.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken();return{type:6,value:parseFloat(k),lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}};g.prototype.scanStringLiteral=function(){var a=this.index,d=this.source[a];w.assert("'"===d||'"'===d,"String literal must starts with a quote");++this.index;for(var k="";!this.eof();){var l=this.source[this.index++];if(l===d){d="";break}if("\\"===
l)if((l=this.source[this.index++])&&q.Character.isLineTerminator(l.charCodeAt(0)))++this.lineNumber,"\r"===l&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(l){case "u":"{"===this.source[this.index]?(++this.index,k+=this.scanUnicodeCodePointEscape()):(l=this.scanHexEscape(l),null===l&&this.throwUnexpectedToken(),k+=l);break;case "x":l=this.scanHexEscape(l);null===l&&this.throwUnexpectedToken(n.ParsingErrorCodes.InvalidHexEscapeSequence);k+=l;break;case "n":k+="\n";
break;case "r":k+="\r";break;case "t":k+="\t";break;case "b":k+="\b";break;case "f":k+="\f";break;case "v":k+="\v";break;case "8":case "9":k+=l;this.tolerateUnexpectedToken();break;default:l&&q.Character.isOctalDigit(l.charCodeAt(0))?(l=this.octalToDecimal(l),k+=String.fromCharCode(l.code)):k+=l}else if(q.Character.isLineTerminator(l.charCodeAt(0)))break;else k+=l}""!==d&&(this.index=a,this.throwUnexpectedToken());return{type:8,value:k,lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}};
g.prototype.scanTemplate=function(){var a="",d=!1,k=this.index,l="`"===this.source[k],m=!1,e=2;for(++this.index;!this.eof();){var b=this.source[this.index++];if("`"===b){e=1;d=m=!0;break}if("$"===b){if("{"===this.source[this.index]){this.curlyStack.push("${");++this.index;d=!0;break}a+=b}else if("\\"===b)if(b=this.source[this.index++],q.Character.isLineTerminator(b.charCodeAt(0)))++this.lineNumber,"\r"===b&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(b){case "n":a+=
"\n";break;case "r":a+="\r";break;case "t":a+="\t";break;case "u":if("{"===this.source[this.index])++this.index,a+=this.scanUnicodeCodePointEscape();else{var p=this.index,t=this.scanHexEscape(b);null!==t?a+=t:(this.index=p,a+=b)}break;case "x":b=this.scanHexEscape(b);null===b&&this.throwUnexpectedToken(n.ParsingErrorCodes.InvalidHexEscapeSequence);a+=b;break;case "b":a+="\b";break;case "f":a+="\f";break;case "v":a+="\v";break;default:"0"===b?(q.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&
this.throwUnexpectedToken(n.ParsingErrorCodes.TemplateOctalLiteral),a+="\x00"):q.Character.isOctalDigit(b.charCodeAt(0))?this.throwUnexpectedToken(n.ParsingErrorCodes.TemplateOctalLiteral):a+=b}else q.Character.isLineTerminator(b.charCodeAt(0))?(++this.lineNumber,"\r"===b&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index,a+="\n"):a+=b}d||this.throwUnexpectedToken();l||this.curlyStack.pop();return{type:10,value:this.source.slice(k+1,this.index-e),cooked:a,head:l,tail:m,lineNumber:this.lineNumber,
lineStart:this.lineStart,start:k,end:this.index}};g.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var a=this.source.charCodeAt(this.index);return q.Character.isIdentifierStart(a)?this.scanIdentifier():40===a||41===a||59===a?this.scanPunctuator():39===a||34===a?this.scanStringLiteral():46===a?q.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():
q.Character.isDecimalDigit(a)?this.scanNumericLiteral():96===a||125===a&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():55296<=a&&57343>a&&q.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()};return g}();x.Scanner=G})},"esri/arcade/lib/assert":function(){define(["require","exports"],function(G,x){Object.defineProperty(x,"__esModule",{value:!0});x.assert=void 0;x.assert=function(c,r){if(!c)throw Error("ASSERT: "+r);}})},"esri/arcade/lib/character":function(){define(["require",
"exports"],function(G,x){Object.defineProperty(x,"__esModule",{value:!0});x.Character=void 0;var c=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDEC0-\uDEEB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,
r=/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D3-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDF00-\uDF1C\uDF27\uDF30-\uDF50\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD46\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E\uDC5F\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;
x.Character={fromCodePoint:function(h){return 65536>h?String.fromCharCode(h):String.fromCharCode(55296+(h-65536>>10))+String.fromCharCode(56320+(h-65536&1023))},isWhiteSpace:function(h){return 32===h||9===h||11===h||12===h||160===h||5760<=h&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(h)},isLineTerminator:function(h){return 10===h||13===h||8232===h||8233===h},isIdentifierStart:function(h){return 36===h||95===h||65<=h&&90>=h||97<=h&&122>=h||92===h||
128<=h&&c.test(x.Character.fromCodePoint(h))},isIdentifierPart:function(h){return 36===h||95===h||65<=h&&90>=h||97<=h&&122>=h||48<=h&&57>=h||92===h||128<=h&&r.test(x.Character.fromCodePoint(h))},isDecimalDigit:function(h){return 48<=h&&57>=h},isHexDigit:function(h){return 48<=h&&57>=h||65<=h&&70>=h||97<=h&&102>=h},isOctalDigit:function(h){return 48<=h&&55>=h}}})},"esri/arcade/lib/tokenizer":function(){define(["require","exports","./error-handler","./scanner","./types"],function(G,x,c,r,h){Object.defineProperty(x,
"__esModule",{value:!0});x.Tokenizer=void 0;G=function(){function w(q,n){this.errorHandler=new c.ErrorHandler;this.errorHandler.tolerant=n?"boolean"===typeof n.tolerant&&n.tolerant:!1;this.scanner=new r.Scanner(q,this.errorHandler);this.trackComments=n?"boolean"===typeof n.comment&&n.comment:!1;this.buffer=[]}w.prototype.errors=function(){return this.errorHandler.errors};w.prototype.getNextToken=function(){var q=this;if(0===this.buffer.length){var n=this.scanner.scanComments();this.trackComments&&
n&&n.forEach(function(a){var d=q.scanner.source.slice(a.start,a.end);q.buffer.push({type:a.multiLine?"BlockComment":"LineComment",value:d,range:a.range,loc:a.loc})});if(!this.scanner.eof()){n={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart};var f=this.scanner.lex(),g={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart};n={type:h.TokenNames[f.type],value:this.scanner.source.slice(f.start,f.end),range:[f.start,f.end],loc:{start:n,end:g}};this.buffer.push(n)}}return this.buffer.shift()};
return w}();x.Tokenizer=G})},"esri/arcade/featureset/support/RecentlyUsedCache":function(){define(["require","exports"],function(G,x){var c=function(){function h(w){var q=this;q._keys=[];q._values=[];q.length=0;w&&w.forEach(function(n){q.set(n[0],n[1])})}h.prototype.entries=function(){var w=this;return[].slice.call(this.keys().map(function(q,n){return[q,w._values[n]]}))};h.prototype.keys=function(){return[].slice.call(this._keys)};h.prototype.values=function(){return[].slice.call(this._values)};h.prototype.has=
function(w){return this._keys.includes(w)};h.prototype.get=function(w){w=this._keys.indexOf(w);return-1<w?this._values[w]:null};h.prototype.deepGet=function(w){if(!w||!w.length)return null;var q=function(n,f){return null==n?null:f.length?q(n instanceof h?n.get(f[0]):n[f[0]],f.slice(1)):n};return q(this.get(w[0]),w.slice(1))};h.prototype.set=function(w,q){var n=this._keys.indexOf(w);-1<n?this._values[n]=q:(this._keys.push(w),this._values.push(q),this.length=this._values.length);return this};h.prototype.sortedSet=
function(w,q,n,f){var g=this._keys.length;n=n||0;f=void 0!==f?f:g-1;if(0===g)return this._keys.push(w),this._values.push(q),this;if(w===this._keys[n])return this._values.splice(n,0,q),this;if(w===this._keys[f])return this._values.splice(f,0,q),this;if(w>this._keys[f])return this._keys.splice(f+1,0,w),this._values.splice(f+1,0,q),this;if(w<this._keys[n])return this._values.splice(n,0,q),this._keys.splice(n,0,w),this;if(n>=f)return this;g=n+Math.floor((f-n)/2);return w<this._keys[g]?this.sortedSet(w,
q,n,g-1):w>this._keys[g]?this.sortedSet(w,q,g+1,f):this};h.prototype.size=function(){return this.length};h.prototype.clear=function(){this._keys.length=this.length=this._values.length=0;return this};h.prototype.delete=function(w){w=this._keys.indexOf(w);return-1<w?(this._keys.splice(w,1),this._values.splice(w,1),this.length=this._keys.length,!0):!1};h.prototype.forEach=function(w){var q=this;this._keys.forEach(function(n,f){w(q._values[f],n,f)})};h.prototype.map=function(w){var q=this;return this.keys().map(function(n,
f){return w(q._values[f],n,f)})};h.prototype.filter=function(w){var q=this;q._keys.forEach(function(n,f){!1===w(q._values[f],n,f)&&q.delete(n)});return this};h.prototype.clone=function(){return new h(this.entries())};return h}(),r=function(){function h(w){void 0===w&&(w=20);this._maxEntries=w;this._values=new c}h.prototype.delete=function(w){this._values.has(w)&&this._values.delete(w)};h.prototype.get=function(w){var q=null;this._values.has(w)&&(q=this._values.get(w),this._values.delete(w),this._values.set(w,
q));return q};h.prototype.put=function(w,q){if(this._values.size()>=this._maxEntries){var n=this._values.keys()[0];this._values.delete(n)}this._values.set(w,q)};return h}();return function(){function h(w){void 0===w&&(w=20);this._maxEntries=w;this._cache=new r(this._maxEntries)}h.prototype.clear=function(){this._cache=new r(this._maxEntries)};h.prototype.addToCache=function(w,q){this._cache.put(w,q)};h.prototype.removeFromCache=function(w){this._cache.delete(w)};h.prototype.getFromCache=function(w){return this._cache.get(w)};
return h}()})},"esri/arcade/arcadeRuntime":function(){define("require exports ./polyfill/tsSupport/awaiter ./polyfill/tsSupport/generator ./polyfill/tsSupport/assign ./polyfill/tsSupport/spreadarray ./polyfill/tsSupport/extends ./ArcadeModule ./ArcadeModuleLoader ./Dictionary ./executionError ./Feature ./FunctionWrapper ./languageUtils ./treeAnalysis ./functions/array ./functions/date ./functions/geometry ./functions/geomsync ./functions/maths ./functions/stats ./functions/string ../geometry/Geometry ../SpatialReference".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C,y,D,B){function u(V,X){for(var ja=[],pa=0;pa<X.arguments.length;pa++)ja.push(v(V,X.arguments[pa]));return ja}function E(V,X,ja){try{return!0===X.preparsed?ja(V,null,X.arguments):ja(V,X,u(V,X))}catch(pa){throw pa;}}function v(V,X){try{switch(null===X||void 0===X?void 0:X.type){case "EmptyStatement":return l.voidOperation;case "VariableDeclarator":var ja=null===X.init?null:v(V,X.init);ja===l.voidOperation&&(ja=null);if("Identifier"!==X.id.type)throw new a.ArcadeExecutionError(V,
a.ExecutionErrorCodes.InvalidIdentifier,X);var pa=X.id.name.toLowerCase();null!=V.localScope?V.localScope[pa]={value:ja,valueset:!0,node:X.init}:V.globalScope[pa]={value:ja,valueset:!0,node:X.init};return l.voidOperation;case "VariableDeclaration":for(var ta=0;ta<X.declarations.length;ta++)v(V,X.declarations[ta]);return l.voidOperation;case "ImportDeclaration":var ea,va,M=X.specifiers[0].local.name.toLowerCase(),S=V.libraryResolver.loadLibrary(M);ta=null;(null===(ea=V.libraryResolver._moduleSingletons)||
void 0===ea?0:ea.has(S.uri))?ta=V.libraryResolver._moduleSingletons.get(S.uri):(ta=new qa(S),ta.loadModule(V),null===(va=V.libraryResolver._moduleSingletons)||void 0===va?void 0:va.set(S.uri,ta));V.globalScope[M]={value:ta,valueset:!0,node:X};return l.voidOperation;case "ExportNamedDeclaration":v(V,X.declaration);if("FunctionDeclaration"===X.declaration.type)V.exports[X.declaration.id.name.toLowerCase()]="function";else if("VariableDeclaration"===X.declaration.type){ta=0;for(var ma=X.declaration.declarations;ta<
ma.length;ta++)V.exports[ma[ta].id.name.toLowerCase()]="variable"}return l.voidOperation;case "BlockStatement":case "Program":a:{var ua=l.voidOperation;for(ta=0;ta<X.body.length;ta++)if(ua=v(V,X.body[ta]),ua instanceof l.ReturnResult||ua===l.breakResult||ua===l.continueResult){var wa=ua;break a}wa=ua}return wa;case "FunctionDeclaration":var Q=X.id.name.toLowerCase();V.globalScope[Q]={valueset:!0,node:null,value:new oa(X,V)};return l.voidOperation;case "ReturnStatement":if(null===X.argument)var ka=
new l.ReturnResult(l.voidOperation);else{var za=v(V,X.argument);ka=new l.ReturnResult(za)}return ka;case "IfStatement":var Ea=v(V,X.test);if(!0===Ea)var Ka=v(V,X.consequent);else if(!1===Ea)Ka=null!==X.alternate?v(V,X.alternate):l.voidOperation;else throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.BooleanConditionRequired,X);return Ka;case "ExpressionStatement":if("AssignmentExpression"===X.expression.type||"UpdateExpression"===X.expression.type)var Qa=v(V,X.expression);else{var Pa=v(V,X.expression);
Qa=Pa===l.voidOperation?l.voidOperation:new l.ImplicitResult(Pa)}return Qa;case "AssignmentExpression":ta=null;var J="";if("MemberExpression"===X.left.type){ta=v(V,X.left.object);if(!0===X.left.computed)J=v(V,X.left.property);else if("Identifier"===X.left.property.type)J=X.left.property.name;else throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidIdentifier,X);var U=v(V,X.right);if(l.isArray(ta))if(l.isNumber(J)){0>J&&(J=ta.length+J);if(0>J||J>ta.length)throw new a.ArcadeExecutionError(V,
a.ExecutionErrorCodes.OutOfBounds,X);if(J===ta.length&&"\x3d"!==X.operator)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.OutOfBounds,X);ta[J]=F(U,X.operator,ta[J],X,V)}else throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.ArrayAccessorMustBeNumber,X);else if(ta instanceof g){if(!1===l.isString(J))throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.KeyAccessorMustBeString,X);if(!0===ta.hasField(J))ta.setField(J,F(U,X.operator,ta.field(J),X,V));else{if("\x3d"!==X.operator)throw new a.ArcadeExecutionError(V,
a.ExecutionErrorCodes.FieldNotFound,X,{key:J});ta.setField(J,F(U,X.operator,null,X,V))}}else if(l.isFeature(ta)){if(!1===l.isString(J))throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.KeyAccessorMustBeString,X);if(!0===ta.hasField(J))ta.setField(J,F(U,X.operator,ta.field(J),X,V));else{if("\x3d"!==X.operator)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.FieldNotFound,X,{key:J});ta.setField(J,F(U,X.operator,null,X,V))}}else{if(l.isImmutableArray(ta))throw new a.ArcadeExecutionError(V,
a.ExecutionErrorCodes.Immutable,X);if(ta instanceof qa){if(!1===l.isString(J))throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.ModuleAccessorMustBeString,X);if(!0===ta.hasGlobal(J))ta.setGlobal(J,F(U,X.operator,ta.global(J),X,V));else throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.ModuleExportNotFound,X);}else throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidIdentifier,X);}var ia=l.voidOperation}else{ta=X.left.name.toLowerCase();var K=v(V,X.right);if(null!=V.localScope&&
void 0!==V.localScope[ta])V.localScope[ta]={value:F(K,X.operator,V.localScope[ta].value,X,V),valueset:!0,node:X.right},ia=l.voidOperation;else if(void 0!==V.globalScope[ta])V.globalScope[ta]={value:F(K,X.operator,V.globalScope[ta].value,X,V),valueset:!0,node:X.right},ia=l.voidOperation;else throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidIdentifier,X);}return ia;case "UpdateExpression":ta=null;J="";if("MemberExpression"===X.argument.type){ta=v(V,X.argument.object);!0===X.argument.computed?
J=v(V,X.argument.property):"Identifier"===X.argument.property.type&&(J=X.argument.property.name);if(l.isArray(ta))if(l.isNumber(J)){0>J&&(J=ta.length+J);if(0>J||J>=ta.length)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.OutOfBounds,X);var T=l.toNumber(ta[J]);ta[J]="++"===X.operator?T+1:T-1}else throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.ArrayAccessorMustBeNumber,X);else if(ta instanceof g){if(!1===l.isString(J))throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.KeyAccessorMustBeString,
X);if(!0===ta.hasField(J))T=l.toNumber(ta.field(J)),ta.setField(J,"++"===X.operator?T+1:T-1);else throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.FieldNotFound,X);}else if(l.isFeature(ta)){if(!1===l.isString(J))throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.KeyAccessorMustBeString,X);if(!0===ta.hasField(J))T=l.toNumber(ta.field(J)),ta.setField(J,"++"===X.operator?T+1:T-1);else throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.FieldNotFound,X);}else{if(l.isImmutableArray(ta))throw new a.ArcadeExecutionError(V,
a.ExecutionErrorCodes.Immutable,X);if(ta instanceof qa){if(!1===l.isString(J))throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.ModuleAccessorMustBeString,X);if(!0===ta.hasGlobal(J))T=l.toNumber(ta.global(J)),ta.setGlobal(J,"++"===X.operator?T+1:T-1);else throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.ModuleExportNotFound,X);}else throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidParameter,X);}var fa=!1===X.prefix?T:"++"===X.operator?T+1:T-1}else{ta="Identifier"===X.argument.type?
X.argument.name.toLowerCase():"";if(!ta)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidIdentifier,X);if(null!=V.localScope&&void 0!==V.localScope[ta])T=l.toNumber(V.localScope[ta].value),V.localScope[ta]={value:"++"===X.operator?T+1:T-1,valueset:!0,node:X},fa=!1===X.prefix?T:"++"===X.operator?T+1:T-1;else if(void 0!==V.globalScope[ta])T=l.toNumber(V.globalScope[ta].value),V.globalScope[ta]={value:"++"===X.operator?T+1:T-1,valueset:!0,node:X},fa=!1===X.prefix?T:"++"===X.operator?T+
1:T-1;else throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidIdentifier,X);}return fa;case "BreakStatement":return l.breakResult;case "ContinueStatement":return l.continueResult;case "TemplateElement":return X.value?X.value.cooked:"";case "TemplateLiteral":var ra="",Ba=0;ia=0;for(ta=X.quasis;ia<ta.length;ia++)if(J=ta[ia],ra+=J.value?J.value.cooked:"",!1===J.tail){if(X.expressions[Ba]){U=l;var Ma=U.toString,Ha=v(V,X.expressions[Ba]);K=V;fa=X;if(l.isFunctionParameter(Ha))throw new a.ArcadeExecutionError(K,
a.ExecutionErrorCodes.NoFunctionInTemplateLiteral,fa);var Ua=Ma.call(U,Ha)}else Ua="";ra+=Ua;Ba++}return ra;case "ForStatement":null!==X.init&&v(V,X.init);Ba={testResult:!0,lastAction:l.voidOperation};do b:{ta=V;J=X;Ua=Ba;if(null!==J.test){Ua.testResult=v(ta,J.test);if(!1===Ua.testResult)break b;if(!0!==Ua.testResult)throw new a.ArcadeExecutionError(ta,a.ExecutionErrorCodes.BooleanConditionRequired,J);}Ua.lastAction=v(ta,J.body);Ua.lastAction===l.breakResult?Ua.testResult=!1:Ua.lastAction instanceof
l.ReturnResult?Ua.testResult=!1:null!==J.update&&v(ta,J.update)}while(!0===Ba.testResult);ra=Ba.lastAction instanceof l.ReturnResult?Ba.lastAction:l.voidOperation;return ra;case "ForInStatement":return A(V,X);case "WhileStatement":ta=!0;var Ta=l.voidOperation;ta=v(V,X.test);if(!1===ta)var Oa=l.voidOperation;else{if(!0!==ta)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.BooleanConditionRequired,X);for(;!0===ta;){Ta=v(V,X.body);if(Ta===l.breakResult)break;if(Ta instanceof l.ReturnResult)break;
ta=v(V,X.test);if(!0!==ta&&!1!==ta)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.BooleanConditionRequired,X);}Oa=Ta instanceof l.ReturnResult?Ta:l.voidOperation}return Oa;case "Identifier":return na(V,X);case "MemberExpression":return I(V,X);case "Literal":return X.value;case "CallExpression":a:try{if("MemberExpression"===X.callee.type){var Xa=v(V,X.callee.object);if(!(Xa instanceof qa))throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.FuncionNotFound,X);var $a=!1===X.callee.computed?
X.callee.property.name:v(V,X.callee.property);if(!Xa.hasGlobal($a))throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.FuncionNotFound,X);var bb=Xa.global($a);if(!l.isFunctionParameter(bb))throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.CallNonFunction,X);var hb=bb.call(V,X)}else{if("Identifier"!==X.callee.type)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.FuncionNotFound,X);if(null!=V.localScope&&void 0!==V.localScope[X.callee.name.toLowerCase()]){var gb=V.localScope[X.callee.name.toLowerCase()];
if(l.isFunctionParameter(gb.value)){hb=gb.value.call(V,X);break a}throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.CallNonFunction,X);}if(void 0!==V.globalScope[X.callee.name.toLowerCase()]){gb=V.globalScope[X.callee.name.toLowerCase()];if(l.isFunctionParameter(gb.value)){hb=gb.value.call(V,X);break a}throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.CallNonFunction,X);}throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.FuncionNotFound,X);}}catch(sb){throw sb;}return hb;case "UnaryExpression":return N(V,
X);case "BinaryExpression":return da(V,X);case "LogicalExpression":return ba(V,X);case "ArrayExpression":try{ta=[];for(J=0;J<X.elements.length;J++){var mb=v(V,X.elements[J]);if(l.isFunctionParameter(mb))throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.NoFunctionInArray,X);mb===l.voidOperation?ta.push(null):ta.push(mb)}var rb=ta}catch(sb){throw sb;}return rb;case "ObjectExpression":ta={};var ob=new Map;for(J=0;J<X.properties.length;J++){var eb=v(V,X.properties[J]);if(l.isFunctionParameter(eb.value))throw new a.ArcadeExecutionError(V,
a.ExecutionErrorCodes.NoFunctionInDictionary,X);if(!1===l.isString(eb.key))throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.KeyMustBeString,X);var nb=eb.key.toString(),Ab=nb.toLowerCase();ob.has(Ab)?nb=ob.get(Ab):ob.set(Ab,nb);ta[nb]=eb.value===l.voidOperation?null:eb.value}var qb=new g(ta);qb.immutable=!1;return qb;case "Property":return{key:"Identifier"===X.key.type?X.key.name:v(V,X.key),value:v(V,X.value)};default:throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.Unrecognised,X);
}}catch(sb){throw a.ensureArcadeExecutionError(V,X,sb);}}function A(V,X){var ja=v(V,X.right);"VariableDeclaration"===X.left.type&&v(V,X.left);var pa=null,ta="";if("VariableDeclaration"===X.left.type){var ea=X.left.declarations[0].id;"Identifier"===ea.type&&(ta=ea.name)}else"Identifier"===X.left.type&&(ta=X.left.name);if(!ta)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidIdentifier,X);ta=ta.toLowerCase();null!=V.localScope&&void 0!==V.localScope[ta]&&(pa=V.localScope[ta]);null===pa&&
void 0!==V.globalScope[ta]&&(pa=V.globalScope[ta]);if(null===pa)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidIdentifier,X);if(l.isArray(ja)||l.isString(ja)){ja=ja.length;for(ea=0;ea<ja;ea++){pa.value=ea;ta=v(V,X.body);if(ta===l.breakResult)break;if(ta instanceof l.ReturnResult)return ta}return l.voidOperation}if(l.isImmutableArray(ja)){for(ea=0;ea<ja.length();ea++){pa.value=ea;ta=v(V,X.body);if(ta===l.breakResult)break;if(ta instanceof l.ReturnResult)return ta}return l.voidOperation}if(ja instanceof
g||l.isFeature(ja))for(ja=ja.keys(),ea=0;ea<ja.length;ea++){pa.value=ja[ea];ta=v(V,X.body);if(ta===l.breakResult)break;if(ta instanceof l.ReturnResult)return ta}else return l.voidOperation}function F(V,X,ja,pa,ta){switch(X){case "\x3d":return V===l.voidOperation?null:V;case "/\x3d":return l.toNumber(ja)/l.toNumber(V);case "*\x3d":return l.toNumber(ja)*l.toNumber(V);case "-\x3d":return l.toNumber(ja)-l.toNumber(V);case "+\x3d":return l.isString(ja)||l.isString(V)?l.toString(ja)+l.toString(V):l.toNumber(ja)+
l.toNumber(V);case "%\x3d":return l.toNumber(ja)%l.toNumber(V);default:throw new a.ArcadeExecutionError(ta,a.ExecutionErrorCodes.UnsupportedOperator,pa);}}function I(V,X){try{var ja=v(V,X.object);if(null===ja)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.MemberOfNull,X);if(!1===X.computed){if("Identifier"===X.property.type){if(ja instanceof g||l.isFeature(ja))return ja.field(X.property.name);if(ja instanceof D)return p.geometryMember(ja,X.property.name,X,V);if(ja instanceof qa){if(!ja.hasGlobal(X.property.name))throw new a.ArcadeExecutionError(V,
a.ExecutionErrorCodes.InvalidIdentifier,X);return ja.global(X.property.name)}}throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidMemberAccessKey,X);}var pa=v(V,X.property);if(ja instanceof g||l.isFeature(ja)){if(l.isString(pa))return ja.field(pa);throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidMemberAccessKey,X);}if(ja instanceof qa){if(l.isString(pa))return ja.global(pa);throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidMemberAccessKey,X);}if(ja instanceof
D){if(l.isString(pa))return p.geometryMember(ja,pa,X,V);throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidMemberAccessKey,X);}if(l.isArray(ja)){if(l.isNumber(pa)&&isFinite(pa)&&Math.floor(pa)===pa){0>pa&&(pa=ja.length+pa);if(pa>=ja.length||0>pa)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.OutOfBounds,X);return ja[pa]}throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidMemberAccessKey,X);}if(l.isString(ja)){if(l.isNumber(pa)&&isFinite(pa)&&Math.floor(pa)===pa){0>
pa&&(pa=ja.length+pa);if(pa>=ja.length||0>pa)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.OutOfBounds,X);return ja[pa]}throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidMemberAccessKey,X);}if(l.isImmutableArray(ja)&&l.isNumber(pa)&&isFinite(pa)&&Math.floor(pa)===pa){0>pa&&(pa=ja.length()+pa);if(pa>=ja.length()||0>pa)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.OutOfBounds,X);return ja.get(pa)}throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidMemberAccessKey,
X);}catch(ta){throw ta;}}function N(V,X){try{var ja=v(V,X.argument);if(l.isBoolean(ja)){if("!"===X.operator)return!ja;if("-"===X.operator)return-1*l.toNumber(ja);if("+"===X.operator)return 1*l.toNumber(ja);if("~"===X.operator)return~l.toNumber(ja);throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.UnsupportedUnaryOperator,X);}if("~"===X.operator)return~l.toNumber(ja);if("-"===X.operator)return-1*l.toNumber(ja);if("+"===X.operator)return 1*l.toNumber(ja);throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.UnsupportedUnaryOperator,
X);}catch(pa){throw pa;}}function da(V,X){try{var ja=[v(V,X.left),v(V,X.right)],pa=ja[0],ta=ja[1];switch(X.operator){case "|":case "\x3c\x3c":case "\x3e\x3e":case "\x3e\x3e\x3e":case "^":case "\x26":return l.binaryOperator(l.toNumber(pa),l.toNumber(ta),X.operator);case "\x3d\x3d":return l.equalityTest(pa,ta);case "!\x3d":return!l.equalityTest(pa,ta);case "\x3c":return l.greaterThanLessThan(pa,ta,X.operator);case "\x3e":return l.greaterThanLessThan(pa,ta,X.operator);case "\x3c\x3d":return l.greaterThanLessThan(pa,
ta,X.operator);case "\x3e\x3d":return l.greaterThanLessThan(pa,ta,X.operator);case "+":return l.isString(pa)||l.isString(ta)?l.toString(pa)+l.toString(ta):l.toNumber(pa)+l.toNumber(ta);case "-":return l.toNumber(pa)-l.toNumber(ta);case "*":return l.toNumber(pa)*l.toNumber(ta);case "/":return l.toNumber(pa)/l.toNumber(ta);case "%":return l.toNumber(pa)%l.toNumber(ta);default:throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.UnsupportedOperator,X);}}catch(ea){throw ea;}}function ba(V,X){try{var ja=
v(V,X.left);if(l.isBoolean(ja))switch(X.operator){case "||":if(!0===ja)return ja;var pa=v(V,X.right);if(l.isBoolean(pa))return pa;throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.LogicExpressionOrAnd,X);case "\x26\x26":if(!1===ja)return ja;pa=v(V,X.right);if(l.isBoolean(pa))return pa;throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.LogicExpressionOrAnd,X);default:throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.LogicExpressionOrAnd,X);}throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.LogicalExpressionOnlyBoolean,
X);}catch(ta){throw ta;}}function na(V,X){try{var ja=X.name.toLowerCase();if(null!=V.localScope&&void 0!==V.localScope[ja]){var pa=V.localScope[ja];if(!0===pa.valueset)return pa.value;pa.value=v(V,pa.node);pa.valueset=!0;return pa.value}if(void 0!==V.globalScope[ja]){pa=V.globalScope[ja];if(!0===pa.valueset)return pa.value;pa.value=v(V,pa.node);pa.valueset=!0;return pa.value}throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.InvalidIdentifier,X);}catch(ta){throw ta;}}function xa(V,X,ja,pa){try{var ta=
v(V,X.arguments[ja]);if(l.equalityTest(ta,pa))return v(V,X.arguments[ja+1]);var ea=X.arguments.length-ja;return 1===ea?v(V,X.arguments[ja]):2===ea?null:3===ea?v(V,X.arguments[ja+2]):xa(V,X,ja+2,pa)}catch(va){throw va;}}function W(V,X,ja,pa){try{if(!0===pa)return v(V,X.arguments[ja+1]);if(3===X.arguments.length-ja)return v(V,X.arguments[ja+2]);var ta=v(V,X.arguments[ja+2]);if(!1===l.isBoolean(ta))throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.BooleanConditionRequired,X.arguments[ja+2]);return W(V,
X,ja+2,ta)}catch(ea){throw ea;}}function la(V,X,ja,pa){try{var ta=V.body;if(ja.length!==V.params.length)throw new a.ArcadeExecutionError(X,a.ExecutionErrorCodes.WrongNumberOfParameters,pa);if(null!=X.localScope)for(var ea=0;ea<ja.length;ea++)X.localScope[V.params[ea].name.toLowerCase()]={value:ja[ea],valueset:!0,node:null};var va=v(X,ta);if(va instanceof l.ReturnResult)return va.value;if(va===l.breakResult)throw new a.ArcadeExecutionError(X,a.ExecutionErrorCodes.UnexpectedToken,pa);if(va===l.continueResult)throw new a.ArcadeExecutionError(X,
a.ExecutionErrorCodes.UnexpectedToken,pa);return va instanceof l.ImplicitResult?va.value:va}catch(M){throw M;}}function ha(V,X,ja){var pa=new ca;V||(V={});X||(X={});var ta=new g({newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"});ta.immutable=!1;pa.textformatting={value:ta,valueset:!0,node:null};for(var ea in X)pa[ea]={value:new k.NativeFunction(X[ea]),native:!0,valueset:!0,node:null};for(ea in V)pa[ea]=V[ea]&&"esri.Graphic"===V[ea].declaredClass?{value:d.createFromGraphic(V[ea],
ja),valueset:!0,node:null}:{value:V[ea],valueset:!0,node:null};return pa}function sa(V){console.log(V)}function Ca(V){for(var X={mode:"sync",compiled:!1,functions:{},signatures:[],standardFunction:E,evaluateIdentifier:na},ja=0;ja<V.length;ja++)V[ja].registerFunctions(X);for(var pa in X.functions)L[pa]={value:new k.NativeFunction(X.functions[pa]),valueset:!0,node:null},ca.prototype[pa]=L[pa];for(ja=0;ja<X.signatures.length;ja++)m.addFunctionDeclaration(X.signatures[ja],"sync")}Object.defineProperty(x,
"__esModule",{value:!0});x.executeScript=x.extend=x.functionHelper=void 0;var oa=function(V){function X(ja,pa){var ta=V.call(this)||this;ta.definition=null;ta.context=null;ta.definition=ja;ta.context=pa;return ta}q(X,V);X.prototype.createFunction=function(ja){var pa=this;return function(){for(var ta=[],ea=0;ea<arguments.length;ea++)ta[ea]=arguments[ea];ea={spatialReference:pa.context.spatialReference,console:pa.context.console,timeReference:pa.context.timeReference?pa.context.timeReference:null,lrucache:pa.context.lrucache,
exports:pa.context.exports,libraryResolver:pa.context.libraryResolver,interceptor:pa.context.interceptor,localScope:{},depthCounter:{depth:ja.depthCounter.depth+1},globalScope:pa.context.globalScope};if(64<ea.depthCounter.depth)throw new a.ArcadeExecutionError(ja,a.ExecutionErrorCodes.MaximumCallDepth,null);return la(pa.definition,ea,ta,null)}};X.prototype.call=function(ja,pa){var ta=this;return E(ja,pa,function(ea,va,M){var S;ea={spatialReference:ja.spatialReference,globalScope:ja.globalScope,depthCounter:{depth:ja.depthCounter.depth+
1},libraryResolver:ja.libraryResolver,exports:ja.exports,timeReference:null!==(S=ja.timeReference)&&void 0!==S?S:null,console:ja.console,lrucache:ja.lrucache,interceptor:ja.interceptor,localScope:{}};if(64<ea.depthCounter.depth)throw new a.ArcadeExecutionError(ja,a.ExecutionErrorCodes.MaximumCallDepth,pa);return la(ta.definition,ea,M,pa)})};X.prototype.marshalledCall=function(ja,pa,ta,ea){var va=this;return ea(ja,pa,function(M,S,ma){var ua;M={spatialReference:ja.spatialReference,globalScope:ta.globalScope,
depthCounter:{depth:ja.depthCounter.depth+1},libraryResolver:ja.libraryResolver,exports:ja.exports,console:ja.console,timeReference:null!==(ua=ja.timeReference)&&void 0!==ua?ua:null,lrucache:ja.lrucache,interceptor:ja.interceptor,localScope:{}};ma=ma.map(function(wa){return!l.isFunctionParameter(wa)||wa instanceof k.ScopeMarshalledFunction?wa:k.wrapModuleScopedResponse(wa,ja,ea)});return k.wrapModuleScopedResponse(la(va.definition,M,ma,pa),ta,ea)})};return X}(k.ArcadeFunction),qa=function(V){function X(ja){return V.call(this,
ja)||this}q(X,V);X.prototype.global=function(ja){ja=this.executingContext.globalScope[ja.toLowerCase()];ja.valueset||(ja.value=v(this.executingContext,ja.node),ja.valueset=!0);if(l.isFunctionParameter(ja.value)&&!(ja.value instanceof k.ScopeMarshalledFunction)){var pa=new k.ScopeMarshalledFunction;pa.fn=ja.value;pa.parameterEvaluator=E;pa.context=this.executingContext;ja.value=pa}return ja.value};X.prototype.setGlobal=function(ja,pa){if(l.isFunctionParameter(pa))throw new a.ArcadeExecutionError(null,
a.ExecutionErrorCodes.AssignModuleFunction,null);this.executingContext.globalScope[ja.toLowerCase()]={value:pa,valueset:!0,node:null}};X.prototype.hasGlobal=function(ja){void 0===this.executingContext.exports[ja]&&(ja=ja.toLowerCase());return void 0!==this.executingContext.exports[ja]?!0:!1};X.prototype.loadModule=function(ja){var pa,ta=ja.spatialReference;if(null===ta||void 0===ta)ta=new B({wkid:102100});this.moduleScope=ha({},ja.customfunctions,ja.timeReference);this.executingContext={spatialReference:ta,
globalScope:this.moduleScope,localScope:null,libraryResolver:new f.ArcadeModuleLoader(ja.libraryResolver._moduleSingletons,this.source.syntax.loadedModules),exports:{},console:ja.console?ja.console:sa,timeReference:null!==(pa=ja.timeReference)&&void 0!==pa?pa:null,lrucache:ja.lrucache,interceptor:ja.interceptor,depthCounter:{depth:1}};v(this.executingContext,this.source.syntax)};return X}(n.ArcadeModule),L={};b.registerFunctions(L,E);y.registerFunctions(L,E);z.registerFunctions(L,E);p.registerFunctions(L,
E);C.registerFunctions(L,E);t.registerFunctions(L,E);L.iif=function(V,X){try{l.pcCheck(null===X.arguments?[]:X.arguments,3,3,V,X);var ja=v(V,X.arguments[0]);if(!1===l.isBoolean(ja))throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.BooleanConditionRequired,X);return!0===ja?v(V,X.arguments[1]):v(V,X.arguments[2])}catch(pa){throw pa;}};L.decode=function(V,X){try{if(2>X.arguments.length)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.WrongNumberOfParameters,X);if(2===X.arguments.length)return v(V,
X.arguments[1]);if(0===(X.arguments.length-1)%2)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.WrongNumberOfParameters,X);var ja=v(V,X.arguments[0]);return xa(V,X,1,ja)}catch(pa){throw pa;}};L.when=function(V,X){try{if(3>X.arguments.length)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.WrongNumberOfParameters,X);if(0===X.arguments.length%2)throw new a.ArcadeExecutionError(V,a.ExecutionErrorCodes.WrongNumberOfParameters,X);var ja=v(V,X.arguments[0]);if(!1===l.isBoolean(ja))throw new a.ArcadeExecutionError(V,
a.ExecutionErrorCodes.BooleanConditionRequired,X.arguments[0]);return W(V,X,0,ja)}catch(pa){throw pa;}};for(var Y in L)L[Y]={value:new k.NativeFunction(L[Y]),valueset:!0,node:null};var ca=function(){};ca.prototype=L;ca.prototype.infinity={value:Number.POSITIVE_INFINITY,valueset:!0,node:null};ca.prototype.pi={value:Math.PI,valueset:!0,node:null};x.functionHelper={fixSpatialReference:l.fixSpatialReference,parseArguments:u,standardFunction:E};x.extend=Ca;Ca([e]);x.executeScript=function(V,X){var ja,
pa=X.spatialReference;if(null===pa||void 0===pa)pa=new B({wkid:102100});var ta=null;V.usesModules&&(ta=new f.ArcadeModuleLoader(new Map,V.loadedModules));var ea=ha(X.vars,X.customfunctions,X.timeReference);pa={spatialReference:pa,globalScope:ea,localScope:null,exports:{},libraryResolver:ta,console:X.console?X.console:sa,timeReference:null!==(ja=X.timeReference)&&void 0!==ja?ja:null,lrucache:X.lrucache,interceptor:X.interceptor,depthCounter:{depth:1}};V=v(pa,V);V instanceof l.ReturnResult&&(V=V.value);
V instanceof l.ImplicitResult&&(V=V.value);V===l.voidOperation&&(V=null);if(V===l.breakResult)throw new a.ArcadeExecutionError(pa,a.ExecutionErrorCodes.IllegalResult,null);if(V===l.continueResult)throw new a.ArcadeExecutionError(pa,a.ExecutionErrorCodes.IllegalResult,null);if(l.isFunctionParameter(V))throw new a.ArcadeExecutionError(pa,a.ExecutionErrorCodes.IllegalResult,null);return V}})},"esri/arcadeProfiles/visualizationProfile":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../promiseList ../support/expressionUtils ./utils".split(" "),
function(G,x,c,r,h,w,q){G=new (G(null,{declaredClass:"esri.arcadeProfiles.VisualizationProfile",initialize:function(n){var f=[];q.hasGeometryOperations(n)&&f.push(w.enableGeometryOperations());return h(f)}}));c("extend-esri")&&x.setObject("arcadeProfiles.visualizationProfile",G,r);return G})},"esri/arcadeProfiles/utils":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/has","../kernel","../support/expressionUtils"],function(G,x,c,r,h){var w=/(\/(MapServer|FeatureServer)).*/ig,q={hasGeometryOperations:function(n){return x.some(n,
function(f){return f.hasGeometryOperations?f.hasGeometryOperations():h.hasGeometryOperations(f)})},hasFeatureSetOperations:function(n){return x.some(n,function(f){return f.hasFeatureSetOperations?f.hasFeatureSetOperations():h.hasFeatureSetOperations(f)})},hasVariables:function(n,f){return x.some(n,function(g){return x.some(f,function(a){return g.hasVariable?g.hasVariable(a):h.hasVariable(g,a)})})},isAsync:function(n){return x.some(n,function(f){return f.async})},getServiceUrl:function(n){return w.test(n)?
n.replace(w,"$1"):null}};c("extend-esri")&&G.setObject("arcadeProfiles.utils",q,r);return q})},"esri/renderers/SimpleRenderer":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../symbols/jsonUtils ./Renderer".split(" "),function(G,x,c,r,h,w,q){G=G(q,{declaredClass:"esri.renderer.SimpleRenderer",constructor:function(n,f){if(n&&!n.declaredClass){var g=n;this.symbol=(n=g.symbol)&&(n.declaredClass?n:w.fromJson(n,f));this.label=g.label;this.description=g.description}else this.symbol=
n},getSymbol:function(n){return this.symbol},toJson:function(){var n=x.mixin(this.inherited(arguments),{type:"simple",label:this.label,description:this.description,symbol:this.symbol&&this.symbol.toJson()});return h.fixJson(n)}});c("extend-esri")&&x.setObject("renderer.SimpleRenderer",G,r);return G})},"esri/renderers/UniqueValueRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../symbols/jsonUtils ./Renderer ../support/expressionUtils".split(" "),
function(G,x,c,r,h,w,q,n,f){G=G(n,{declaredClass:"esri.renderer.UniqueValueRenderer",constructor:function(g,a,d,k,l,m){this.values=[];this._symbols={};this.infos=[];g&&!g.declaredClass?(a=g,d=m&&m.geometryType,this.defaultSymbol=(g=a.defaultSymbol)&&(g.declaredClass?g:q.fromJson(g,m)),this.attributeField=a.field1,this.attributeField2=a.field2,this.attributeField3=a.field3,this.fieldDelimiter=a.fieldDelimiter,this.defaultLabel=a.defaultLabel,this.setValueExpression(a.valueExpression),this.valueExpressionTitle=
a.valueExpressionTitle,this.legendOptions=a.legendOptions,a.backgroundFillSymbol&&(this.backgroundFillSymbol=q.fromJson(a.backgroundFillSymbol,d?{geometryType:"esriGeometryPolygon"}:null)),"esriGeometryPolygon"===d&&this.hasVisualVariables("sizeInfo",!1)&&(m={geometryType:"esriGeometryPoint"}),x.forEach(a.uniqueValueInfos,function(e){this._addValueInfo(e,m)},this)):(this.defaultSymbol=g,this.attributeField=a,this.attributeField2=d,this.attributeField3=k,this.fieldDelimiter=l);this._multiple=!!this.attributeField2},
addValue:function(g,a){g=c.isObject(g)?g:{value:g,symbol:a};this._addValueInfo(g)},removeValue:function(g){var a=x.indexOf(this.values,g);-1!==a&&(this.values.splice(a,1),this._hasNullKeyword=this._evalNullKeyword(this.values),delete this._symbols[g],this.infos.splice(a,1))},getUniqueValueInfo:function(g){var a=this.attributeField,d=g.attributes;if(this.valueExpression)a=this._getDataValue(g,this._uvInfo,null,this._cache.uvInfo),a=this._normalizeNullValue(a);else if(this._multiple){g=this.attributeField2;
var k=this.attributeField3,l=[];a&&l.push(this._normalizeNullValue(d[a]));g&&l.push(this._normalizeNullValue(d[g]));k&&l.push(this._normalizeNullValue(d[k]));a=l.join(this.fieldDelimiter||"")}else a=c.isFunction(a)?a(g):d[a],a=this._normalizeNullValue(a);return this._symbols[a]},setValueExpression:function(g){this.valueExpression=g;this._uvInfo={valueExpression:g};this._cache.uvInfo=this._createCache(this._uvInfo,!0)},getFieldsUsedInExpressions:function(g){var a=this.inherited(arguments);this.valueExpression&&
(a=a.concat(f.extractFieldNames(this.valueExpression,g)));a.sort();return x.filter(a,function(d,k){return 0===k||a[k-1]!==d})},getSymbol:function(g){return(g=this.getUniqueValueInfo(g))&&g.symbol||this.defaultSymbol},_addValueInfo:function(g,a){var d=g.value;this.values.push(d);this._hasNullKeyword=this._evalNullKeyword(this.values);this.infos.push(g);var k=g.symbol;k&&!k.declaredClass&&(g.symbol=q.fromJson(k,a));this._symbols[d]=g},_nullCode:"\x3cNull\x3e",_normalizeNullValue:function(g){return this._hasNullKeyword&&
null==g?this._nullCode:g},_evalNullKeyword:function(g){var a=this.fieldDelimiter||"",d=new RegExp("(^|"+a+")("+this._nullCode+")("+a+"|$)");return x.some(g,function(k){return d.test(k)})},toJson:function(){var g=w.fixJson;var a={type:"uniqueValue",field1:this.attributeField,field2:this.attributeField2,field3:this.attributeField3,fieldDelimiter:this.fieldDelimiter,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:c.clone(this.legendOptions),defaultSymbol:this.defaultSymbol&&
this.defaultSymbol.toJson(),defaultLabel:this.defaultLabel,uniqueValueInfos:x.map(this.infos||[],function(d){d=c.mixin({},d);d.symbol=d.symbol&&d.symbol.toJson();d.value+="";return g(d)})};this.backgroundFillSymbol&&(a.backgroundFillSymbol=this.backgroundFillSymbol.toJson());a=c.mixin(this.inherited(arguments),a);return g(a)}});r("extend-esri")&&c.setObject("renderer.UniqueValueRenderer",G,h);return G})},"esri/renderers/ClassBreaksRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../symbols/jsonUtils ./Renderer ../support/expressionUtils".split(" "),
function(G,x,c,r,h,w,q,n,f){G=G(n,{declaredClass:"esri.renderer.ClassBreaksRenderer",constructor:function(g,a,d){this.breaks=[];this._symbols={};this.infos=[];this.isMaxInclusive=!0;if(g&&!g.declaredClass){var k=g;a=d&&d.geometryType;this.attributeField=k.field;this.setValueExpression(k.valueExpression);this.valueExpressionTitle=k.valueExpressionTitle;this.legendOptions=k.legendOptions;this.defaultSymbol=(g=k.defaultSymbol)&&(g.declaredClass?g:q.fromJson(g,d));this.backgroundFillSymbol=(g=k.backgroundFillSymbol)&&
(g.declaredClass?g:q.fromJson(g,a?{geometryType:"esriGeometryPolygon"}:null));this._copy(["defaultLabel","classificationMethod:rest","normalizationType:rest","normalizationField","normalizationTotal"],k,this);var l=k.minValue;(g=k.classBreakInfos)&&g[0]&&w.isDefined(g[0].classMaxValue)&&x.forEach(g,function(m){var e=m.classMaxValue;m.minValue=l;l=m.maxValue=e},this);"esriGeometryPolygon"===a&&(this.hasVisualVariables("sizeInfo",!1)||q.isPointSymbol(q.getFirstSupportedSymbol(x.map(g,function(m){return m.symbol}))))&&
(d={geometryType:"esriGeometryPoint"});x.forEach(g,function(m){this._addBreakInfo(m,d)},this)}else this.defaultSymbol=g,this.attributeField=a},addBreak:function(g,a,d){g=c.isObject(g)?g:{minValue:g,maxValue:a,symbol:d};this._addBreakInfo(g)},removeBreak:function(g,a){var d=this.breaks,k,l=d.length,m=this._symbols;for(k=0;k<l;k++){var e=d[k];if(e[0]==g&&e[1]==a){d.splice(k,1);delete m[g+"-"+a];this.infos.splice(k,1);break}}},clearBreaks:function(){this.breaks=[];this._symbols={};this.infos=[]},getBreakIndex:function(g){var a=
this.attributeField,d=g.attributes,k=this.breaks,l=k.length,m=this.isMaxInclusive;if(this.valueExpression)g=this._getDataValue(g,this._cbInfo,null,this._cache.cbInfo);else if(c.isFunction(a))g=a(g);else if(g=parseFloat(d[a]),a=this.normalizationType,a){var e=parseFloat(this.normalizationTotal);d=parseFloat(d[this.normalizationField]);if("log"===a)g=Math.log(g)*Math.LOG10E;else if("percent-of-total"===a&&!isNaN(e))g=g/e*100;else if("field"===a){if(isNaN(g)||isNaN(d))return-1;g/=d}}if(null!=g&&!isNaN(g)&&
"number"===typeof g)for(d=0;d<l;d++)if(a=k[d],a[0]<=g&&(m?g<=a[1]:g<a[1]))return d;return-1},getBreakInfo:function(g){g=this.getBreakIndex(g);return-1!==g?this.infos[g]:null},getSymbol:function(g){return(g=this.breaks[this.getBreakIndex(g)])?this._symbols[g[0]+"-"+g[1]]:this.defaultSymbol},setMaxInclusive:function(g){this.isMaxInclusive=g},setValueExpression:function(g){this.valueExpression=g;this._cbInfo={valueExpression:g};this._cache.cbInfo=this._createCache(this._cbInfo)},getFieldsUsedInExpressions:function(g){var a=
this.inherited(arguments);this.valueExpression&&(a=a.concat(f.extractFieldNames(this.valueExpression,g)));a.sort();return x.filter(a,function(d,k){return 0===k||a[k-1]!==d})},isContinuousRenderer:function(){var g=!1;if(this.infos&&1===this.infos.length){var a=this.attributeField,d=this.normalizationField,k=this.valueExpression;g=this.getVisualVariablesForType("colorInfo",!1)||[];var l=this.getVisualVariablesForType("sizeInfo",!1)||[],m=this.getVisualVariablesForType("opacityInfo",!1)||[];g=g.concat(l).concat(m);
g=x.some(g,function(e){return(e.field===a||e.valueExpression===k)&&e.normalizationField==d})}return g},_normalizationTypeEnums:[["field","esriNormalizeByField"],["log","esriNormalizeByLog"],["percent-of-total","esriNormalizeByPercentOfTotal"]],_classificationMethodEnums:[["natural-breaks","esriClassifyNaturalBreaks"],["equal-interval","esriClassifyEqualInterval"],["quantile","esriClassifyQuantile"],["standard-deviation","esriClassifyStandardDeviation"],["geometrical-interval","esriClassifyGeometricalInterval"],
["defined-interval","esriClassifyDefinedInterval"],["manual-interval","esriClassifyManual"]],_copy:function(g,a,d){x.forEach(g,function(k){var l=k.split(":");if(1<l.length){k=l[0];var m=this["_"+k+"Enums"];if("rest"===l[1]){var e="1";var b="0"}else"sdk"===l[1]&&(e="0",b="1")}l=a[k];if(void 0!==l&&(d[k]=l,m&&e)){var p,t=m.length;for(p=0;p<t;p++)if(m[p][e]===l){d[k]=m[p][b];break}}},this)},_addBreakInfo:function(g,a){var d=g.minValue,k=g.maxValue;this.breaks.push([d,k]);this.infos.push(g);var l=g.symbol;
l&&!l.declaredClass&&(g.symbol=q.fromJson(l,a));this._symbols[d+"-"+k]=g.symbol},toJson:function(){var g=this.infos||[],a=w.fixJson,d=g[0]&&g[0].minValue,k=this.backgroundFillSymbol;g=c.mixin(this.inherited(arguments),{type:"classBreaks",field:this.attributeField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:c.clone(this.legendOptions),defaultSymbol:this.defaultSymbol&&this.defaultSymbol.toJson(),backgroundFillSymbol:k&&k.toJson(),minValue:-Infinity===
d?-Number.MAX_VALUE:d,classBreakInfos:x.map(g,function(l){l=c.mixin({},l);l.symbol=l.symbol&&l.symbol.toJson();l.classMaxValue=Infinity===l.maxValue?Number.MAX_VALUE:l.maxValue;delete l.minValue;delete l.maxValue;return a(l)})});this._copy(["defaultLabel","classificationMethod:sdk","normalizationType:sdk","normalizationField","normalizationTotal"],this,g);g.hasOwnProperty("normalizationType")&&!g.normalizationType&&delete g.normalizationType;g.hasOwnProperty("classificationMethod")&&!g.classificationMethod&&
delete g.classificationMethod;return a(g)}});r("extend-esri")&&c.setObject("renderer.ClassBreaksRenderer",G,h);return G})},"esri/renderers/TemporalRenderer":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","./Renderer"],function(G,x,c,r,h){G=G(h,{declaredClass:"esri.renderer.TemporalRenderer",constructor:function(w,q,n,f){this.observationRenderer=w;this.latestObservationRenderer=q;this.trackRenderer=n;this.observationAger=f},getSymbol:function(w){var q=w.getLayer(),
n=this.getObservationRenderer(w),f=n&&n.getSymbol(w),g=this.observationAger;q.timeInfo&&q._map.timeExtent&&n===this.observationRenderer&&g&&f&&(f=g.getAgedSymbol(f,w));return f},getObservationRenderer:function(w){return 0===w.getLayer()._getKind(w)?this.observationRenderer:this.latestObservationRenderer||this.observationRenderer},toJson:function(){var w={type:"temporal"};w.observationRenderer=this.observationRenderer.toJson();this.latestObservationRenderer&&(w.latestObservationRenderer=this.latestObservationRenderer.toJson());
this.trackRenderer&&(w.trackRenderer=this.trackRenderer.toJson());this.observationAger&&(w.observationAger=this.observationAger.toJson());return w}});c("extend-esri")&&x.setObject("renderer.TemporalRenderer",G,r);return G})},"esri/renderers/SymbolAger":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(G,x,c,r){G=G(null,{declaredClass:"esri.renderer.SymbolAger",getAgedSymbol:function(h,w){},_setSymbolSize:function(h,w){switch(h.type){case "simplemarkersymbol":h.setSize(w);
break;case "picturemarkersymbol":h.setWidth(w);h.setHeight(w);break;case "simplelinesymbol":case "cartographiclinesymbol":h.setWidth(w);break;case "simplefillsymbol":case "picturefillsymbol":h.outline&&h.outline.setWidth(w)}}});c("extend-esri")&&x.setObject("renderer.SymbolAger",G,r);return G})},"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(G,
x,c,r,h,w,q,n,f,g){var a=G(g,{declaredClass:"esri.renderer.TimeClassBreaksAger",constructor:function(d,k){this.infos=d;this.timeUnits=k||"day";d.sort(function(l,m){return l.minAge<m.minAge?-1:l.minAge>m.minAge?1:0})},getAgedSymbol:function(d,k){var l=k.getLayer();k=k.attributes;var m=q.isDefined;d=n.fromJson(d.toJson());var e=l._map.timeExtent.endTime;if(!e)return d;var b=h.difference(new Date(k[l._startTimeField]),e,this.timeUnits);x.some(this.infos,function(p){if(b>=p.minAge&&b<=p.maxAge){var t=
p.color,z=p.size;p=p.alpha;t&&d.setColor(t);m(z)&&this._setSymbolSize(d,z);m(p)&&d.color&&(d.color.a=p);return!0}},this);return d},toJson:function(){var d={agerClassBreakInfos:[]},k;d.timeUnits=this._getRestUnits(this.timeUnits);for(k=0;k<this.infos.length;k+=1){var l=this.infos[k];var m={};m.oldestAge=Infinity===l.maxAge?null:l.maxAge;m.size=l.size;l.color&&(m.color=f.toJsonColor(l.color));l.alpha&&(m.alpha=Math.round(255*l.alpha));d.agerClassBreakInfos[k]=m}return d},_getRestUnits:function(d){var k=
"esriTimeUnitsDays";switch(d){case a.UNIT_SECONDS:k="esriTimeUnitsSeconds";break;case a.UNIT_MILLISECONDS:k="esriTimeUnitsMilliseconds";break;case a.UNIT_HOURS:k="esriTimeUnitsHours";break;case a.UNIT_MINUTES:k="esriTimeUnitsMinutes";break;case a.UNIT_MONTHS:k="esriTimeUnitsMonths";break;case a.UNIT_WEEKS:k="esriTimeUnitsWeeks";break;case a.UNIT_YEARS:k="esriTimeUnitsYears"}return k}});c.mixin(a,{UNIT_DAYS:"day",UNIT_HOURS:"hour",UNIT_MILLISECONDS:"millisecond",UNIT_MINUTES:"minute",UNIT_MONTHS:"month",
UNIT_SECONDS:"second",UNIT_WEEKS:"week",UNIT_YEARS:"year"});r("extend-esri")&&c.setObject("renderer.TimeClassBreaksAger",a,w);return a})},"esri/renderers/TimeRampAger":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has ../kernel ../symbols/jsonUtils ../Color ./SymbolAger".split(" "),function(G,x,c,r,h,w,q,n){G=G(n,{declaredClass:"esri.renderer.TimeRampAger",constructor:function(f,g,a){this.colorRange=f;this.sizeRange=g;this.alphaRange=a},getAgedSymbol:function(f,g){var a=
g.getLayer(),d=g.attributes;f=w.fromJson(f.toJson());var k=a._map.timeExtent;g=k.startTime;k=k.endTime;if(!g||!k)return f;g=g.getTime();k=k.getTime();a=new Date(d[a._startTimeField]);a=a.getTime();a<g&&(a=g);a=k===g?1:(a-g)/(k-g);if(g=this.sizeRange)d=g[0],k=g[1],g=Math.abs(k-d)*a,this._setSymbolSize(f,d<k?d+g:d-g);if(g=this.colorRange){k=g[0];var l=g[1],m=Math.round;d=new c;var e=k.r,b=l.r;g=Math.abs(b-e)*a;d.r=m(e<b?e+g:e-g);e=k.g;b=l.g;g=Math.abs(b-e)*a;d.g=m(e<b?e+g:e-g);e=k.b;b=l.b;g=Math.abs(b-
e)*a;d.b=m(e<b?e+g:e-g);k=k.a;l=l.a;g=Math.abs(l-k)*a;d.a=k<l?k+g:k-g;f.setColor(d)}d=f.color;(g=this.alphaRange)&&d&&(k=g[0],l=g[1],g=Math.abs(l-k)*a,d.a=k<l?k+g:k-g);return f},toJson:function(){var f={};this.sizeRange&&(f.sizeRange=this.sizeRange);this.colorRange&&(f.colorRange=[q.toJsonColor(this.colorRange[0]),q.toJsonColor(this.colorRange[1])]);this.alphaRange&&(f.alphaRange=[Math.round(255*this.alphaRange[0]),Math.round(255*this.alphaRange[1])]);return f}});r("extend-esri")&&x.setObject("renderer.TimeRampAger",
G,h);return G})},"esri/renderers/StretchRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../layers/RasterFunction ./colorRampUtils".split(" "),function(G,x,c,r,h,w,q,n){var f={TYPE_NONE:"none",TYPE_STANDARDDEVIATION:"standardDeviation",TYPE_HISTOGRAMEQUALIZATION:"histogramEqualization",TYPE_MINMAX:"minMax",TYPE_PERCENTCLIP:"percentClip",TYPE_SIGMOID:"sigmoid"};G=G(null,{declaredClass:"esri.renderer.StretchRenderer",constructor:function(g){g=
g||{};this.stretchType=f.TYPE_NONE;this.dra=!0;this.statistics=[];this.gamma=[];this.computeGamma=this.useGamma=!1;this.sigmoidStrengthLevel=this.numberOfStandardDeviations=this.minPercent=this.maxPercent=this.min=this.max=null;c.mixin(this,g);this.colorRamp=n.fromJson(g.colorRamp)},toJson:function(){var g={type:"rasterStretch",stretchType:this.stretchType,colorRamp:this.colorRamp&&this.colorRamp.toJson(),min:this.min,max:this.max,numberOfStandardDeviations:this.numberOfStandardDeviations,statistics:c.clone(this.statistics),
dra:this.dra,minPercent:this.minPercent,maxPercent:this.maxPercent,useGamma:this.useGamma,gamma:c.clone(this.gamma),computeGamma:this.computeGamma,sigmoidStrengthLevel:this.sigmoidStrengthLevel};return w.fixJson(g)},toRenderingRule:function(g){g=g||{};var a=new q;a.functionName="Stretch";var d=this._convertStretchTypeEnumToIndex(this.stretchType),k={StretchType:d,Statistics:this.statistics,DRA:this.dra,UseGamma:this.useGamma,Gamma:this.gamma,ComputeGamma:this.computeGamma};w.isDefined(this.min)&&
(k.Min=this.min);w.isDefined(this.min)&&(k.Max=this.max);3===d?(k.NumberOfStandardDeviations=this.numberOfStandardDeviations,a.outputPixelType="U8"):6===d?(k.MinPercent=parseFloat(this.minPercent),k.MaxPercent=parseFloat(this.maxPercent),a.outputPixelType="U8"):5===d?a.outputPixelType="U8":9===d&&(k.SigmoidStrengthLevel=this.sigmoidStrengthLevel);a.functionArguments=k;a.variableName="Raster";return this.colorRamp?(d=new q,d.functionArguments=g.convertToColormap?{Colormap:n.convertColorRampToColormap(this.colorRamp,
256)}:{colorRamp:this.colorRamp.toJson()},d.variableName="Raster",d.functionName="Colormap",d.functionArguments.Raster=a,d):a},_convertStretchTypeEnumToIndex:function(g){var a=0;g===f.TYPE_STANDARDDEVIATION?a=3:g===f.TYPE_HISTOGRAMEQUALIZATION?a=4:g===f.TYPE_MINMAX?a=5:g===f.TYPE_PERCENTCLIP?a=6:g===f.TYPE_SIGMOID&&(a=9);return a},_convertStretchTypeIndexToEnum:function(g){var a=f.TYPE_NONE;3===g?a=f.TYPE_STANDARDDEVIATION:4===g?a=f.TYPE_HISTOGRAMEQUALIZATION:5===g?a=f.TYPE_MINMAX:6===g?a=f.TYPE_PERCENTCLIP:
9===g&&(a=f.TYPE_SIGMOID);return a}});c.mixin(G,f);r("extend-esri")&&c.setObject("renderer.StretchRenderer",G,h);return G})},"esri/layers/RasterFunction":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(G,x,c,r,h){var w=G(null,{declaredClass:"esri.layers.RasterFunction",functionName:null,arguments:null,functionArguments:null,variableName:null,outputPixelType:null,_isTemplate:null,_templateJson:null,constructor:function(q){if(x.isObject(q)){this._isRFTJson(q)&&
(this._isTemplate=!0,this._templateJson=q);var n=0;this.functionName=q.rasterFunction||q.name;this.functionArguments=x.clone(q.rasterFunctionArguments||q.arguments);x.mixin(this,q);if(q=this.functionArguments)if(q.Raster=this._toRasterFunction(q.Raster),q.Raster2=this._toRasterFunction(q.Raster2),q.DEM=this._toRasterFunction(q.DEM),q.FillRaster=this._toRasterFunction(q.FillRaster),q.Rasters&&q.Rasters.length)for(n=0;n<q.Rasters.length;n++)q.Rasters[n]=this._toRasterFunction(q.Rasters[n])}},_isRFTJson:function(q){return q.name&&
q.arguments&&q.function&&q.hasOwnProperty("functionType")},_toRasterFunction:function(q){return q&&(q.rasterFunction||q.functionName)?new w(q):q},_rfToJson:function(q){q&&"esri.layers.RasterFunction"===q.declaredClass&&(q=q.toJson());return q},toJson:function(){if(this._isTemplate)return this._templateJson;var q=x.clone(this.functionArguments||this.arguments);if(q&&(q.Raster=this._rfToJson(q.Raster),q.Raster2=this._rfToJson(q.Raster2),q.DEM=this._rfToJson(q.DEM),q.FillRaster=this._rfToJson(q.FillRaster),
q.Rasters&&q.Rasters.length)){var n,f=[];for(n=0;n<q.Rasters.length;n++)f.push(this._rfToJson(q.Rasters[n]));q.Rasters=f}return h.filter({rasterFunction:this.functionName,rasterFunctionArguments:q,variableName:this.variableName,outputPixelType:this.outputPixelType?this.outputPixelType:null},function(g){if(null!==g&&void 0!==g)return!0})}});c("extend-esri")&&x.setObject("layers.RasterFunction",w,r);return w})},"esri/renderers/colorRampUtils":function(){define("dojo/_base/lang dojo/_base/array dojo/store/Memory ../tasks/AlgorithmicColorRamp ../tasks/MultipartColorRamp ../Color ./colorUtils".split(" "),
function(G,x,c,r,h,w,q){function n(t){if(null==t||"algorithmic"!==t.type&&!t.fromColor)return t;var z=t.declaredClass?new r:G.clone(t);z.fromColor=t.toColor;z.toColor=t.fromColor;z.algorithm=t.algorithm;return z}function f(t){if(null==t)return null;if("multipart"===t.type||t.colorRamps&&0<t.colorRamps.length){var z=t.declaredClass?new h:G.clone(t);z.colorRamps=x.map(t.colorRamps.slice().reverse(),function(C){return n(C)});return z}return n(t)}function g(t,z,C){if(!t)return{id:null,isInverted:!1};
var y=t.name;y&&(t.fromColor||t.colorRamps)&&(t.name=void 0);var D=a(t,z,C);if(D)return y&&(t.name=y),{id:D,isInverted:!1};D=a(t,z,C,!0);y&&(t.name=y);return D?{id:D,isInverted:!0}:y&&(D=a(t,z,C))?{id:D,isInverted:!1}:{id:null,isInverted:!1}}function a(t,z,C,y){if(t){y&&(t=f(t));z=z||e;C=C||b;var D=null;y=t.declaredClass;var B,u;if((B="string"===typeof t?t:t.name)&&x.some(C,function(E){if(E.name===B)return D=E.id,!0})&&D)return D;"esri.tasks.AlgorithmicColorRamp"===y?x.some(z,function(E){if(k(t.fromColor.toRgb(),
E.fromColor)&&k(t.toColor.toRgb(),E.toColor))return D=E.id,!0},this):"esri.tasks.MultipartColorRamp"===y&&x.some(z,function(E){if(t.colorRamps&&E.colorRamps&&t.colorRamps.length===E.colorRamps.length&&(u=t.colorRamps,!x.some(E.colorRamps,function(v,A){if(!k(u[A].fromColor.toRgb(),v.fromColor)||!k(u[A].toColor.toRgb(),v.toColor))return!0},this))){if(D)return!0;D=E.id}},this);return D}}function d(t){var z=new r,C=t.algorithm;z.fromColor=w.toDojoColor(t.fromColor);z.toColor=w.toDojoColor(t.toColor);
C?"esriCIELabAlgorithm"===C?z.algorithm="cie-lab":"esriHSVAlgorithm"===C?z.algorithm="hsv":"esriLabLChAlgorithm"===C&&(z.algorithm="lab-lch"):z.algorithm="hsv";return z}function k(t,z){if(!t||!z)return!1;t=t.slice(0,3);z=z.slice(0,3);return!x.some(t,function(C,y){if(C>z[y]+2||C<z[y]-2)return!0})}function l(t,z,C){t=q.toLAB(t);z=q.toLAB(z);return q.toRGB({l:t.l*(1-C)+C*z.l,a:t.a*(1-C)+C*z.a,b:t.b*(1-C)+C*z.b})}var m={},e=[{id:"none",selected:!0},{id:"aspect_predefined",type:"multipart",colorRamps:[{fromColor:[190,
190,190],toColor:[255,45,8]},{fromColor:[255,45,8],toColor:[255,181,61]},{fromColor:[255,181,61],toColor:[255,254,52]},{fromColor:[255,254,52],toColor:[0,251,50]},{fromColor:[0,251,50],toColor:[255,254,52]},{fromColor:[0,253,255],toColor:[0,181,255]},{fromColor:[0,181,255],toColor:[26,35,253]},{fromColor:[26,35,253],toColor:[255,57,251]},{fromColor:[255,57,251],toColor:[255,45,8]}]},{id:"blackToWhite_predefined",fromColor:[0,0,0],toColor:[255,255,255]},{id:"blueBright_predefined",fromColor:[204,204,
255],toColor:[0,0,224]},{id:"blueLightToDark_predefined",fromColor:[211,229,232],toColor:[46,100,140]},{id:"blueGreenBright_predefined",fromColor:[203,245,234],toColor:[48,207,146]},{id:"blueGreenLightToDark_predefined",fromColor:[216,242,237],toColor:[21,79,74]},{id:"brownLightToDark_predefined",fromColor:[240,236,170],toColor:[102,72,48]},{id:"brownToBlueGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[156,85,31],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[33,
130,145]}]},{id:"brownToBlueGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[110,70,45],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[48,100,102]}]},{id:"cividis_predefined",type:"multipart",colorRamps:[{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,32,77,255],toColor:[0,33,79,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,33,79,255],toColor:[0,34,80,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,34,
80,255],toColor:[0,35,82,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,35,82,255],toColor:[0,35,84,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,35,84,255],toColor:[0,36,85,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,36,85,255],toColor:[0,37,87,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,37,87,255],toColor:[0,38,89,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,38,89,255],
toColor:[0,38,91,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,38,91,255],toColor:[0,39,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,39,92,255],toColor:[0,40,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,40,94,255],toColor:[0,40,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,40,96,255],toColor:[0,41,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,41,98,255],toColor:[0,
42,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,42,100,255],toColor:[0,42,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,42,101,255],toColor:[0,43,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,43,103,255],toColor:[0,44,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,44,105,255],toColor:[0,45,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,45,107,255],toColor:[0,
45,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,45,109,255],toColor:[0,46,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,46,110,255],toColor:[0,47,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,47,111,255],toColor:[0,47,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,47,112,255],toColor:[0,47,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,47,112,255],toColor:[0,
48,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,48,112,255],toColor:[0,49,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,49,112,255],toColor:[0,49,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,49,112,255],toColor:[0,50,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,50,112,255],toColor:[0,51,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,51,111,255],toColor:[0,
52,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,52,111,255],toColor:[0,52,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,52,111,255],toColor:[0,53,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,53,111,255],toColor:[1,54,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[1,54,111,255],toColor:[6,55,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[6,55,110,255],toColor:[11,
55,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[11,55,110,255],toColor:[15,56,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[15,56,110,255],toColor:[18,57,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[18,57,110,255],toColor:[21,57,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[21,57,110,255],toColor:[24,58,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[24,58,110,255],
toColor:[26,59,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[26,59,109,255],toColor:[29,60,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[29,60,109,255],toColor:[31,60,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,60,109,255],toColor:[33,61,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[33,61,109,255],toColor:[35,62,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[35,
62,109,255],toColor:[37,63,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[37,63,109,255],toColor:[38,63,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[38,63,109,255],toColor:[40,64,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[40,64,108,255],toColor:[42,65,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[42,65,108,255],toColor:[43,65,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[43,65,108,255],toColor:[45,66,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[45,66,108,255],toColor:[46,67,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[46,67,108,255],toColor:[48,68,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[48,68,108,255],toColor:[49,68,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[49,68,108,255],toColor:[51,69,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[51,69,108,255],toColor:[52,70,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[52,70,108,255],toColor:[53,70,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[53,70,108,255],toColor:[55,71,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[55,71,108,255],toColor:[56,72,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[56,72,108,255],toColor:[57,73,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[57,73,108,255],toColor:[58,73,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[58,73,108,255],toColor:[60,74,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[60,74,108,255],toColor:[61,75,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[61,75,108,255],toColor:[62,75,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[62,75,108,255],toColor:[63,76,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[63,76,108,255],toColor:[64,77,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[64,77,108,255],toColor:[65,78,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[65,78,108,255],toColor:[67,78,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[67,78,108,255],toColor:[68,79,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[68,79,108,255],toColor:[69,80,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[69,80,108,255],toColor:[70,80,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,80,108,255],toColor:[71,81,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,81,108,255],toColor:[72,82,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,82,108,255],toColor:[73,83,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[73,83,108,255],toColor:[74,83,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[74,83,108,255],toColor:[75,84,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[75,84,108,255],toColor:[76,85,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[76,85,108,255],toColor:[77,86,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[77,86,108,255],toColor:[78,86,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[78,86,108,255],toColor:[79,87,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[79,87,108,255],toColor:[80,88,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[80,88,108,255],toColor:[81,88,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[81,88,109,255],toColor:[82,89,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[82,89,109,255],toColor:[83,90,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[83,90,109,255],toColor:[84,91,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[84,91,109,255],toColor:[85,91,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[85,91,109,255],toColor:[86,92,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[86,92,109,255],toColor:[87,93,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[87,93,109,255],toColor:[88,93,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[88,93,109,255],toColor:[89,94,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[89,94,110,255],toColor:[90,95,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[90,95,110,255],toColor:[91,96,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[91,96,110,255],toColor:[92,96,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[92,96,110,255],toColor:[93,97,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[93,97,110,255],toColor:[94,98,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[94,98,110,255],toColor:[94,99,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[94,99,111,255],toColor:[95,99,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[95,99,111,255],toColor:[96,100,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[96,100,111,255],toColor:[97,101,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[97,101,111,255],toColor:[98,101,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[98,101,111,255],toColor:[99,102,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[99,102,112,255],toColor:[100,103,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[100,103,112,255],toColor:[101,104,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[101,104,112,255],toColor:[102,104,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[102,104,112,255],toColor:[103,105,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[103,105,113,255],toColor:[104,106,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[104,106,113,255],toColor:[104,107,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[104,107,113,255],toColor:[105,107,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[105,107,113,255],toColor:[106,108,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[106,108,114,255],toColor:[107,109,114,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[107,109,114,255],toColor:[108,109,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[108,109,114,255],toColor:[109,110,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[109,110,115,255],toColor:[110,111,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[110,111,115,255],toColor:[111,112,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[111,112,115,255],toColor:[111,
112,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[111,112,115,255],toColor:[112,113,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[112,113,116,255],toColor:[113,114,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[113,114,116,255],toColor:[114,115,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[114,115,116,255],toColor:[115,115,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[115,
115,117,255],toColor:[116,116,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[116,116,117,255],toColor:[117,117,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[117,117,117,255],toColor:[117,118,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[117,118,118,255],toColor:[118,118,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[118,118,118,255],toColor:[119,119,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[119,119,119,255],toColor:[120,120,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[120,120,119,255],toColor:[121,121,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[121,121,119,255],toColor:[122,121,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[122,121,120,255],toColor:[123,122,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[123,122,120,255],toColor:[124,123,120,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[124,123,120,255],toColor:[124,124,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[124,124,121,255],toColor:[125,124,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[125,124,121,255],toColor:[126,125,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[126,125,121,255],toColor:[127,126,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[127,126,121,255],toColor:[128,
127,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[128,127,121,255],toColor:[129,127,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[129,127,121,255],toColor:[130,128,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[130,128,121,255],toColor:[131,129,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[131,129,121,255],toColor:[132,130,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[132,
130,121,255],toColor:[133,130,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[133,130,121,255],toColor:[134,131,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[134,131,121,255],toColor:[135,132,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[135,132,121,255],toColor:[136,133,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[136,133,121,255],toColor:[137,134,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[137,134,121,255],toColor:[138,134,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[138,134,121,255],toColor:[139,135,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[139,135,121,255],toColor:[140,136,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[140,136,121,255],toColor:[141,137,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[141,137,121,255],toColor:[142,137,121,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[142,137,121,255],toColor:[143,138,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[143,138,121,255],toColor:[144,139,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[144,139,121,255],toColor:[145,140,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[145,140,121,255],toColor:[146,141,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[146,141,121,255],toColor:[147,
141,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[147,141,121,255],toColor:[148,142,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[148,142,121,255],toColor:[149,143,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[149,143,121,255],toColor:[150,144,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[150,144,121,255],toColor:[151,145,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[151,
145,120,255],toColor:[152,145,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[152,145,120,255],toColor:[153,146,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[153,146,120,255],toColor:[154,147,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[154,147,120,255],toColor:[155,148,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[155,148,120,255],toColor:[156,149,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[156,149,120,255],toColor:[157,149,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[157,149,120,255],toColor:[158,150,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[158,150,120,255],toColor:[159,151,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[159,151,119,255],toColor:[160,152,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[160,152,119,255],toColor:[161,153,119,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[161,153,119,255],toColor:[162,153,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[162,153,119,255],toColor:[163,154,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[163,154,119,255],toColor:[164,155,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[164,155,118,255],toColor:[165,156,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[165,156,118,255],toColor:[166,
157,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[166,157,118,255],toColor:[167,158,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[167,158,118,255],toColor:[168,158,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[168,158,118,255],toColor:[169,159,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[169,159,117,255],toColor:[170,160,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[170,
160,117,255],toColor:[171,161,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[171,161,117,255],toColor:[172,162,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[172,162,117,255],toColor:[173,162,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[173,162,116,255],toColor:[174,163,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[174,163,116,255],toColor:[175,164,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[175,164,116,255],toColor:[177,165,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[177,165,115,255],toColor:[178,166,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[178,166,115,255],toColor:[179,167,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[179,167,115,255],toColor:[180,168,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[180,168,115,255],toColor:[181,168,114,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[181,168,114,255],toColor:[182,169,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[182,169,114,255],toColor:[183,170,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[183,170,114,255],toColor:[184,171,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[184,171,113,255],toColor:[185,172,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[185,172,113,255],toColor:[186,
173,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[186,173,113,255],toColor:[187,173,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[187,173,112,255],toColor:[188,174,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[188,174,112,255],toColor:[189,175,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[189,175,111,255],toColor:[190,176,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[190,
176,111,255],toColor:[191,177,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[191,177,111,255],toColor:[192,178,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[192,178,110,255],toColor:[194,179,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[194,179,110,255],toColor:[195,180,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[195,180,109,255],toColor:[196,180,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[196,180,109,255],toColor:[197,181,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[197,181,109,255],toColor:[198,182,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[198,182,108,255],toColor:[199,183,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[199,183,108,255],toColor:[200,184,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[200,184,107,255],toColor:[201,185,107,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[201,185,107,255],toColor:[202,186,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[202,186,106,255],toColor:[203,187,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[203,187,106,255],toColor:[204,187,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[204,187,105,255],toColor:[205,188,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[205,188,105,255],toColor:[207,
189,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[207,189,104,255],toColor:[208,190,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[208,190,104,255],toColor:[209,191,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[209,191,103,255],toColor:[210,192,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[210,192,103,255],toColor:[211,193,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[211,
193,102,255],toColor:[212,194,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[212,194,101,255],toColor:[213,195,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[213,195,101,255],toColor:[214,196,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[214,196,100,255],toColor:[215,196,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[215,196,100,255],toColor:[217,197,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[217,197,99,255],toColor:[218,198,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[218,198,98,255],toColor:[219,199,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[219,199,98,255],toColor:[220,200,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[220,200,97,255],toColor:[221,201,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[221,201,96,255],toColor:[222,202,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[222,202,96,255],toColor:[223,203,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[223,203,95,255],toColor:[224,204,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[224,204,94,255],toColor:[226,205,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[226,205,94,255],toColor:[227,206,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[227,206,93,255],toColor:[228,207,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[228,207,92,255],toColor:[229,208,91,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[229,208,91,255],toColor:[230,209,91,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[230,209,91,255],toColor:[231,209,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[231,209,90,255],toColor:[233,210,89,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[233,210,89,255],toColor:[234,211,88,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[234,211,88,255],toColor:[235,212,87,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[235,212,87,255],toColor:[236,213,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[236,213,86,255],toColor:[237,214,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[237,214,86,255],toColor:[238,215,85,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[238,215,85,255],toColor:[239,216,84,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[239,216,84,255],toColor:[241,217,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[241,217,83,255],toColor:[242,218,82,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,218,82,255],toColor:[243,219,81,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,219,81,255],toColor:[244,220,80,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,220,80,255],toColor:[245,221,79,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[245,221,79,255],toColor:[246,222,78,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[246,222,78,255],toColor:[248,223,77,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,223,77,255],toColor:[249,224,75,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,224,75,255],toColor:[250,225,74,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,225,74,255],toColor:[251,226,73,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[251,226,73,255],toColor:[252,227,72,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,227,72,255],toColor:[254,228,71,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,228,71,255],toColor:[255,229,69,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,229,69,255],toColor:[255,230,68,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,230,68,255],toColor:[255,231,67,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[255,231,67,255],toColor:[255,232,66,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,232,66,255],toColor:[255,233,67,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,233,67,255],toColor:[255,234,69,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,234,69,255],toColor:[255,235,70,255]}]},{id:"coefficientBias_predefined",fromColor:[214,214,255],toColor:[0,57,148]},{id:"coldToHotDiverging_predefined",type:"multipart",colorRamps:[{fromColor:[69,
117,181],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[214,47,39]}]},{id:"conditionNumber_predefined",type:"multipart",colorRamps:[{fromColor:[0,97,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,34,0]}]},{id:"cyanToPurple_predefined",type:"multipart",colorRamps:[{fromColor:[0,245,245],toColor:[0,0,245]},{fromColor:[0,0,245],toColor:[245,0,245]}]},{id:"cyanLightToBlueDark_predefined",type:"multipart",colorRamps:[{fromColor:[182,237,240],toColor:[31,131,224]},{fromColor:[31,
131,224],toColor:[9,9,145]}]},{id:"distance_predefined",fromColor:[255,200,0],toColor:[0,0,255]},{id:"elevation1_predefined",type:"multipart",colorRamps:[{fromColor:[175,240,233],toColor:[255,255,179]},{fromColor:[255,255,179],toColor:[0,128,64]},{fromColor:[0,128,64],toColor:[252,186,3]},{fromColor:[252,186,3],toColor:[128,0,0]},{fromColor:[120,0,0],toColor:[105,48,13]},{fromColor:[105,48,13],toColor:[171,171,171]},{fromColor:[171,171,171],toColor:[255,252,255]}]},{id:"elevation2_predefined",type:"multipart",
colorRamps:[{fromColor:[118,219,211],toColor:[255,255,199]},{fromColor:[255,255,199],toColor:[255,255,128]},{fromColor:[255,255,128],toColor:[217,194,121]},{fromColor:[217,194,121],toColor:[135,96,38]},{fromColor:[135,96,38],toColor:[150,150,181]},{fromColor:[150,150,181],toColor:[181,150,181]},{fromColor:[181,150,181],toColor:[255,252,255]}]},{id:"errors_predefined",fromColor:[255,235,214],toColor:[196,10,10]},{id:"grayLightToDark_predefined",fromColor:[219,219,219],toColor:[69,69,69]},{id:"greenBright_predefined",
fromColor:[204,255,204],toColor:[14,204,14]},{id:"greenLightToDark_predefined",fromColor:[220,245,233],toColor:[34,102,51]},{id:"greenToBlue_predefined",type:"multipart",colorRamps:[{fromColor:[32,204,16],toColor:[0,242,242]},{fromColor:[0,242,242],toColor:[2,33,227]}]},{id:"inferno_predefined",type:"multipart",colorRamps:[{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,0,4,255],toColor:[1,0,5,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[1,0,5,255],toColor:[1,
1,6,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[1,1,6,255],toColor:[1,1,8,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[1,1,8,255],toColor:[2,1,10,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[2,1,10,255],toColor:[2,2,12,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[2,2,12,255],toColor:[2,2,14,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[2,2,14,255],toColor:[3,2,16,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[3,2,16,255],toColor:[4,3,18,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[4,3,18,255],toColor:[4,3,21,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[4,3,21,255],toColor:[5,4,23,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[5,4,23,255],toColor:[6,4,25,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[6,4,25,255],toColor:[7,5,27,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[7,5,27,255],toColor:[8,6,29,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[8,6,29,255],toColor:[9,6,32,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[9,6,32,255],toColor:[10,7,34,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[10,7,34,255],toColor:[11,7,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[11,7,36,255],toColor:[12,8,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[12,
8,38,255],toColor:[13,8,41,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[13,8,41,255],toColor:[14,9,43,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[14,9,43,255],toColor:[16,9,45,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[16,9,45,255],toColor:[17,10,48,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[17,10,48,255],toColor:[18,10,50,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[18,10,
50,255],toColor:[20,11,53,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[20,11,53,255],toColor:[21,11,55,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[21,11,55,255],toColor:[22,11,58,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[22,11,58,255],toColor:[24,12,60,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[24,12,60,255],toColor:[25,12,62,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[25,
12,62,255],toColor:[27,12,65,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[27,12,65,255],toColor:[28,12,67,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[28,12,67,255],toColor:[30,12,70,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[30,12,70,255],toColor:[31,12,72,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,12,72,255],toColor:[33,12,74,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[33,
12,74,255],toColor:[35,12,77,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[35,12,77,255],toColor:[36,12,79,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[36,12,79,255],toColor:[38,12,81,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[38,12,81,255],toColor:[40,11,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[40,11,83,255],toColor:[42,11,85,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[42,
11,85,255],toColor:[43,11,87,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[43,11,87,255],toColor:[45,11,89,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[45,11,89,255],toColor:[47,10,91,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[47,10,91,255],toColor:[49,10,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[49,10,93,255],toColor:[51,10,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[51,
10,94,255],toColor:[52,10,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[52,10,96,255],toColor:[54,9,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[54,9,97,255],toColor:[56,9,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[56,9,98,255],toColor:[58,9,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[58,9,99,255],toColor:[59,9,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[59,9,
100,255],toColor:[61,9,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[61,9,101,255],toColor:[63,9,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[63,9,102,255],toColor:[64,10,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[64,10,103,255],toColor:[66,10,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[66,10,104,255],toColor:[68,10,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[68,
10,105,255],toColor:[69,10,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[69,10,105,255],toColor:[71,11,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,11,106,255],toColor:[73,11,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[73,11,107,255],toColor:[74,12,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[74,12,107,255],toColor:[76,12,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[76,12,108,255],toColor:[78,13,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[78,13,108,255],toColor:[79,13,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[79,13,108,255],toColor:[81,14,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[81,14,109,255],toColor:[83,14,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[83,14,109,255],toColor:[84,15,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[84,15,109,255],toColor:[86,15,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[86,15,110,255],toColor:[87,16,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[87,16,110,255],toColor:[89,17,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[89,17,110,255],toColor:[91,17,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[91,17,110,255],toColor:[92,18,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[92,18,110,255],toColor:[94,18,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[94,18,111,255],toColor:[95,19,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[95,19,111,255],toColor:[97,20,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[97,20,111,255],toColor:[99,20,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[99,20,111,255],toColor:[100,21,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[100,21,111,255],toColor:[102,21,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[102,21,111,255],toColor:[103,22,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[103,22,111,255],toColor:[105,23,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[105,23,111,255],toColor:[107,23,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[107,23,111,255],toColor:[108,24,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[108,24,111,255],toColor:[110,24,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[110,24,111,255],toColor:[111,25,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[111,25,111,255],toColor:[113,25,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[113,25,110,255],toColor:[115,26,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[115,26,110,255],toColor:[116,27,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[116,27,110,255],toColor:[118,27,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[118,27,110,255],toColor:[119,28,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[119,28,110,255],toColor:[121,28,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[121,28,110,255],toColor:[123,29,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[123,29,109,255],toColor:[124,29,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[124,29,109,255],toColor:[126,30,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[126,30,109,255],toColor:[127,31,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[127,31,109,255],toColor:[129,31,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[129,31,108,255],toColor:[130,32,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[130,32,108,255],toColor:[132,32,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[132,32,108,255],toColor:[134,33,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[134,33,107,255],toColor:[135,33,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[135,33,107,255],toColor:[137,34,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[137,34,107,255],toColor:[138,34,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[138,34,106,255],toColor:[140,35,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[140,35,106,255],toColor:[142,36,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[142,36,105,255],toColor:[143,36,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[143,36,105,255],toColor:[145,37,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[145,37,105,255],toColor:[146,37,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[146,37,104,255],toColor:[148,38,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[148,38,104,255],toColor:[150,38,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[150,38,103,255],toColor:[151,39,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[151,39,102,255],toColor:[153,40,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[153,40,102,255],toColor:[154,40,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[154,40,101,255],toColor:[156,41,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[156,41,101,255],toColor:[158,41,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[158,41,100,255],toColor:[159,42,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[159,42,100,255],toColor:[161,43,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[161,43,99,255],toColor:[162,43,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[162,43,98,255],toColor:[164,44,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[164,44,98,255],toColor:[165,45,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[165,45,97,255],toColor:[167,45,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[167,45,96,255],toColor:[169,46,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[169,46,95,255],toColor:[170,46,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[170,46,95,255],toColor:[172,47,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[172,47,94,255],toColor:[173,48,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[173,48,93,255],toColor:[175,49,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[175,49,92,255],toColor:[176,49,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[176,49,92,255],toColor:[178,50,91,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[178,50,91,255],toColor:[179,51,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[179,51,90,255],toColor:[181,51,89,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[181,51,89,255],toColor:[182,52,88,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[182,52,88,255],toColor:[184,53,87,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[184,53,87,255],toColor:[185,54,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[185,54,86,255],toColor:[187,54,85,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[187,54,85,255],toColor:[188,55,85,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[188,55,85,255],toColor:[190,56,84,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[190,56,84,255],toColor:[191,57,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[191,57,83,255],toColor:[193,58,82,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[193,58,82,255],toColor:[194,59,81,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[194,59,81,255],toColor:[196,60,80,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[196,60,80,255],toColor:[197,60,79,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[197,60,79,255],toColor:[198,61,78,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[198,61,78,255],toColor:[200,62,77,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[200,62,77,255],toColor:[201,63,76,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[201,63,76,255],toColor:[203,64,75,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[203,64,75,255],toColor:[204,65,74,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[204,65,74,255],toColor:[205,66,72,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[205,66,72,255],toColor:[207,67,71,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[207,67,71,255],toColor:[208,68,70,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[208,68,70,255],toColor:[209,69,69,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[209,69,69,255],toColor:[211,70,68,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[211,70,68,255],toColor:[212,72,67,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[212,72,67,255],toColor:[213,73,66,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[213,73,66,255],toColor:[214,74,65,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[214,74,65,255],toColor:[216,75,64,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[216,75,64,255],toColor:[217,76,62,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[217,76,62,255],toColor:[218,77,61,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[218,77,61,255],toColor:[219,79,60,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[219,79,60,255],toColor:[220,80,59,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[220,80,59,255],toColor:[221,81,58,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[221,81,58,255],toColor:[223,82,57,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[223,82,57,255],toColor:[224,84,56,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[224,84,56,255],toColor:[225,85,54,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[225,85,54,255],toColor:[226,86,53,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[226,86,53,255],toColor:[227,88,52,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[227,88,52,255],toColor:[228,89,51,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[228,89,51,255],toColor:[229,90,50,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[229,90,50,255],toColor:[230,92,48,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[230,92,48,255],toColor:[231,93,47,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[231,93,47,255],toColor:[232,95,46,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[232,95,46,255],toColor:[233,96,45,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[233,96,45,255],toColor:[234,98,43,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[234,98,43,255],toColor:[235,99,42,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[235,99,42,255],toColor:[235,101,41,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[235,101,41,255],toColor:[236,102,40,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[236,102,40,255],toColor:[237,104,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[237,104,38,255],toColor:[238,105,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[238,105,37,255],toColor:[239,107,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[239,107,36,255],toColor:[240,109,35,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[240,109,35,255],toColor:[240,110,33,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[240,110,33,255],toColor:[241,112,32,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[241,112,32,255],toColor:[242,113,31,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,113,31,255],toColor:[242,115,30,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,115,30,255],toColor:[243,117,28,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[243,117,28,255],toColor:[244,118,27,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,118,27,255],toColor:[244,120,26,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,120,26,255],toColor:[245,122,24,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,122,24,255],toColor:[246,123,23,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[246,123,23,255],toColor:[246,125,22,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[246,125,22,255],toColor:[247,127,20,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,127,20,255],toColor:[247,129,19,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,129,19,255],toColor:[248,130,18,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,130,18,255],toColor:[248,132,16,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,132,16,255],toColor:[249,134,15,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[249,134,15,255],toColor:[249,136,14,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,136,14,255],toColor:[249,137,12,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,137,12,255],toColor:[250,139,11,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,139,11,255],toColor:[250,141,10,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,141,10,255],toColor:[250,143,9,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[250,143,9,255],toColor:[251,145,8,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,145,8,255],toColor:[251,146,7,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,146,7,255],toColor:[251,148,7,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,148,7,255],toColor:[252,150,6,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,150,6,255],toColor:[252,152,6,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[252,152,6,255],toColor:[252,154,6,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,154,6,255],toColor:[252,156,6,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,156,6,255],toColor:[252,158,7,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,158,7,255],toColor:[253,160,7,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,160,7,255],toColor:[253,161,8,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[253,161,8,255],toColor:[253,163,9,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,163,9,255],toColor:[253,165,10,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,165,10,255],toColor:[253,167,12,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,167,12,255],toColor:[253,169,13,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,169,13,255],toColor:[253,171,15,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[253,171,15,255],toColor:[253,173,17,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,173,17,255],toColor:[253,175,19,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,175,19,255],toColor:[253,177,20,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,177,20,255],toColor:[253,179,22,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,179,22,255],toColor:[253,181,25,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[253,181,25,255],toColor:[252,183,27,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,183,27,255],toColor:[252,185,29,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,185,29,255],toColor:[252,186,31,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,186,31,255],toColor:[252,188,33,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,188,33,255],toColor:[252,190,35,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[252,190,35,255],toColor:[251,192,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,192,38,255],toColor:[251,194,40,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,194,40,255],toColor:[251,196,43,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,196,43,255],toColor:[251,198,45,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,198,45,255],toColor:[250,200,48,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[250,200,48,255],toColor:[250,202,50,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,202,50,255],toColor:[250,204,53,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,204,53,255],toColor:[249,206,56,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,206,56,255],toColor:[249,208,58,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,208,58,255],toColor:[248,210,61,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[248,210,61,255],toColor:[248,212,64,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,212,64,255],toColor:[247,214,67,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,214,67,255],toColor:[247,216,70,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,216,70,255],toColor:[246,218,73,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[246,218,73,255],toColor:[246,220,76,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[246,220,76,255],toColor:[245,222,80,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,222,80,255],toColor:[245,224,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,224,83,255],toColor:[244,226,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,226,86,255],toColor:[244,228,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,228,90,255],toColor:[244,229,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[244,229,94,255],toColor:[243,231,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,231,97,255],toColor:[243,233,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,233,101,255],toColor:[243,235,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,235,105,255],toColor:[242,237,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,237,109,255],toColor:[242,238,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[242,238,113,255],toColor:[242,240,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,240,117,255],toColor:[242,242,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,242,122,255],toColor:[243,243,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,243,126,255],toColor:[243,245,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,245,130,255],toColor:[244,246,134,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[244,246,134,255],toColor:[244,247,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,247,138,255],toColor:[245,249,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,249,142,255],toColor:[246,250,146,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[246,250,146,255],toColor:[247,251,150,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,251,150,255],toColor:[249,
252,154,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,252,154,255],toColor:[250,253,158,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,253,158,255],toColor:[251,254,162,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,254,162,255],toColor:[253,255,165,255]}]},{id:"magma_predefined",type:"multipart",colorRamps:[{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,0,4,255],toColor:[1,0,5,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[1,0,5,255],toColor:[1,1,6,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[1,1,6,255],toColor:[1,1,8,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[1,1,8,255],toColor:[2,1,10,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[2,1,10,255],toColor:[2,2,12,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[2,2,12,255],toColor:[2,2,14,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[2,2,14,255],toColor:[3,3,16,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[3,3,16,255],toColor:[4,3,18,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[4,3,18,255],toColor:[4,4,20,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[4,4,20,255],toColor:[5,4,22,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[5,4,22,255],toColor:[6,5,24,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[6,5,24,
255],toColor:[6,5,26,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[6,5,26,255],toColor:[7,6,28,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[7,6,28,255],toColor:[8,7,30,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[8,7,30,255],toColor:[9,7,32,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[9,7,32,255],toColor:[10,8,34,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[10,8,34,255],toColor:[11,
9,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[11,9,36,255],toColor:[12,9,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[12,9,38,255],toColor:[13,10,41,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[13,10,41,255],toColor:[14,11,43,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[14,11,43,255],toColor:[16,11,45,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[16,11,45,255],toColor:[17,
12,47,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[17,12,47,255],toColor:[18,13,50,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[18,13,50,255],toColor:[19,13,52,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[19,13,52,255],toColor:[20,14,54,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[20,14,54,255],toColor:[21,14,57,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[21,14,57,255],toColor:[23,
15,59,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[23,15,59,255],toColor:[24,15,61,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[24,15,61,255],toColor:[25,16,64,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[25,16,64,255],toColor:[26,16,66,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[26,16,66,255],toColor:[28,16,68,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[28,16,68,255],toColor:[29,
17,71,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[29,17,71,255],toColor:[30,17,73,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[30,17,73,255],toColor:[32,17,76,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,17,76,255],toColor:[33,17,78,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[33,17,78,255],toColor:[35,18,81,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[35,18,81,255],toColor:[36,
18,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[36,18,83,255],toColor:[38,18,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[38,18,86,255],toColor:[39,18,88,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[39,18,88,255],toColor:[41,18,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[41,18,90,255],toColor:[42,17,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[42,17,93,255],toColor:[44,
17,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[44,17,95,255],toColor:[46,17,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[46,17,97,255],toColor:[47,17,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[47,17,99,255],toColor:[49,17,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[49,17,101,255],toColor:[51,16,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[51,16,103,255],toColor:[52,
16,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[52,16,105,255],toColor:[54,16,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[54,16,107,255],toColor:[56,16,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[56,16,109,255],toColor:[58,15,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[58,15,111,255],toColor:[59,15,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[59,15,112,255],
toColor:[61,15,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[61,15,113,255],toColor:[63,15,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[63,15,115,255],toColor:[65,15,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[65,15,116,255],toColor:[66,15,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[66,15,117,255],toColor:[68,15,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[68,
15,118,255],toColor:[70,16,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,16,119,255],toColor:[71,16,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,16,120,255],toColor:[73,16,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[73,16,121,255],toColor:[75,17,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[75,17,122,255],toColor:[76,17,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[76,17,122,255],toColor:[78,17,123,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[78,17,123,255],toColor:[79,18,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[79,18,124,255],toColor:[81,18,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[81,18,124,255],toColor:[83,19,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[83,19,125,255],toColor:[84,19,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[84,19,125,255],toColor:[86,20,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[86,20,126,255],toColor:[87,21,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[87,21,126,255],toColor:[89,21,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[89,21,126,255],toColor:[91,22,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[91,22,127,255],toColor:[92,22,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[92,22,127,255],toColor:[94,23,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[94,23,127,255],toColor:[95,24,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[95,24,128,255],toColor:[97,24,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[97,24,128,255],toColor:[98,25,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[98,25,128,255],toColor:[100,26,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[100,26,128,255],toColor:[101,26,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[101,26,129,255],toColor:[103,27,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[103,27,129,255],toColor:[105,28,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[105,28,129,255],toColor:[106,28,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[106,28,129,255],toColor:[108,29,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[108,29,129,255],toColor:[109,30,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[109,30,129,255],toColor:[111,30,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[111,30,130,255],toColor:[112,31,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[112,31,130,255],toColor:[114,31,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[114,31,130,255],toColor:[116,32,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[116,32,130,255],toColor:[117,33,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[117,33,130,255],toColor:[119,33,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[119,33,130,255],toColor:[120,34,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[120,34,130,255],toColor:[122,34,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[122,34,130,255],toColor:[123,35,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[123,35,130,255],toColor:[125,36,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[125,36,130,255],toColor:[127,36,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[127,36,130,255],toColor:[128,37,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[128,37,130,255],toColor:[130,37,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[130,37,130,255],toColor:[131,38,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[131,38,130,255],toColor:[133,39,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[133,39,130,255],toColor:[134,39,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[134,39,130,255],toColor:[136,40,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[136,40,130,255],toColor:[138,40,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[138,40,130,255],toColor:[139,41,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[139,41,130,255],toColor:[141,41,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[141,41,129,255],toColor:[142,42,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[142,42,129,255],toColor:[144,42,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[144,42,129,255],toColor:[146,43,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[146,43,129,255],toColor:[147,43,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[147,43,129,255],toColor:[149,44,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[149,44,129,255],toColor:[151,44,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[151,44,129,255],toColor:[152,45,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[152,45,128,255],toColor:[154,46,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[154,46,128,255],toColor:[155,46,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[155,46,128,255],toColor:[157,47,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[157,47,128,255],toColor:[159,47,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[159,47,127,255],toColor:[160,48,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[160,48,127,255],toColor:[162,48,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[162,48,127,255],toColor:[164,49,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[164,49,127,255],toColor:[165,49,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[165,49,126,255],toColor:[167,50,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[167,50,126,255],toColor:[169,50,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[169,50,126,255],toColor:[170,51,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[170,51,125,255],toColor:[172,51,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[172,51,125,255],toColor:[174,52,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[174,52,124,255],toColor:[175,52,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[175,52,124,255],toColor:[177,53,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[177,53,124,255],toColor:[178,53,123,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[178,53,123,255],toColor:[180,54,123,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[180,54,123,255],toColor:[182,54,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[182,54,122,255],toColor:[183,55,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[183,55,122,255],toColor:[185,56,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[185,56,121,255],toColor:[187,56,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[187,56,121,255],toColor:[188,57,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[188,57,120,255],toColor:[190,57,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[190,57,120,255],toColor:[192,58,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[192,58,119,255],toColor:[193,59,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[193,59,118,255],toColor:[195,59,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[195,59,118,255],toColor:[196,60,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[196,60,117,255],toColor:[198,60,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[198,60,117,255],toColor:[200,61,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[200,61,116,255],toColor:[201,62,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[201,62,115,255],toColor:[203,63,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[203,63,115,255],toColor:[204,63,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[204,63,114,255],toColor:[206,64,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[206,64,113,255],toColor:[208,65,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[208,65,112,255],toColor:[209,66,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[209,66,112,255],toColor:[211,66,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[211,66,111,255],toColor:[212,67,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[212,67,110,255],toColor:[214,68,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[214,68,109,255],toColor:[215,69,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[215,69,109,255],toColor:[217,70,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[217,70,108,255],toColor:[218,71,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[218,71,107,255],toColor:[220,72,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[220,72,106,255],toColor:[221,73,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[221,73,106,255],toColor:[222,74,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[222,74,105,255],toColor:[224,75,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[224,75,104,255],toColor:[225,76,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[225,76,103,255],toColor:[226,77,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[226,77,102,255],toColor:[228,78,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[228,78,102,255],toColor:[229,79,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[229,79,101,255],toColor:[230,81,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[230,81,100,255],toColor:[231,82,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[231,82,99,255],toColor:[233,83,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[233,83,99,255],toColor:[234,84,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[234,84,98,255],toColor:[235,86,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[235,86,97,255],toColor:[236,87,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[236,87,97,255],toColor:[237,89,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[237,89,96,255],toColor:[238,90,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[238,90,95,255],toColor:[239,92,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[239,92,95,255],toColor:[240,93,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[240,93,94,255],toColor:[241,95,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[241,95,94,255],toColor:[242,97,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,97,93,255],toColor:[242,98,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[242,98,93,255],toColor:[243,100,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,100,93,255],toColor:[244,102,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,102,93,255],toColor:[245,104,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,104,92,255],toColor:[245,105,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,105,92,255],toColor:[246,107,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[246,107,92,255],toColor:[247,109,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,109,92,255],toColor:[247,111,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,111,92,255],toColor:[248,113,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,113,92,255],toColor:[248,114,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,114,92,255],toColor:[249,116,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[249,116,92,255],toColor:[249,118,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,118,93,255],toColor:[250,120,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,120,93,255],toColor:[250,122,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,122,93,255],toColor:[250,124,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,124,94,255],toColor:[251,126,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[251,126,94,255],toColor:[251,128,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,128,95,255],toColor:[251,130,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,130,95,255],toColor:[252,131,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,131,96,255],toColor:[252,133,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,133,96,255],toColor:[252,135,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[252,135,97,255],toColor:[253,137,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,137,98,255],toColor:[253,139,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,139,99,255],toColor:[253,141,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,141,99,255],toColor:[253,143,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,143,100,255],toColor:[253,145,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[253,145,101,255],toColor:[254,147,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,147,102,255],toColor:[254,149,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,149,103,255],toColor:[254,150,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,150,104,255],toColor:[254,152,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,152,105,255],toColor:[254,154,106,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[254,154,106,255],toColor:[254,156,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,156,107,255],toColor:[255,158,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,158,108,255],toColor:[255,160,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,160,109,255],toColor:[255,162,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,162,111,255],toColor:[255,
164,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,164,112,255],toColor:[255,165,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,165,113,255],toColor:[255,167,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,167,114,255],toColor:[255,169,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,169,116,255],toColor:[255,171,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,
171,117,255],toColor:[255,173,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,173,118,255],toColor:[255,175,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,175,119,255],toColor:[255,177,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,177,121,255],toColor:[255,179,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,179,122,255],toColor:[255,180,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[255,180,124,255],toColor:[255,182,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,182,125,255],toColor:[255,184,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,184,126,255],toColor:[255,186,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,186,128,255],toColor:[255,188,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,188,129,255],toColor:[255,190,131,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[255,190,131,255],toColor:[255,191,132,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,191,132,255],toColor:[255,193,134,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,193,134,255],toColor:[255,195,135,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,195,135,255],toColor:[255,197,137,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,197,137,255],toColor:[255,
199,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,199,139,255],toColor:[255,201,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,201,140,255],toColor:[255,203,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,203,142,255],toColor:[255,204,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,204,143,255],toColor:[255,206,145,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,
206,145,255],toColor:[255,208,147,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,208,147,255],toColor:[255,210,148,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,210,148,255],toColor:[255,212,150,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,212,150,255],toColor:[255,214,152,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,214,152,255],toColor:[255,215,153,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[255,215,153,255],toColor:[255,217,155,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,217,155,255],toColor:[254,219,157,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,219,157,255],toColor:[254,221,159,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,221,159,255],toColor:[254,223,160,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,223,160,255],toColor:[254,225,162,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[254,225,162,255],toColor:[254,226,164,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,226,164,255],toColor:[254,228,166,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,228,166,255],toColor:[254,230,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,230,167,255],toColor:[254,232,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,232,169,255],toColor:[254,
234,171,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,234,171,255],toColor:[254,236,173,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,236,173,255],toColor:[253,237,175,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,237,175,255],toColor:[253,239,177,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,239,177,255],toColor:[253,241,179,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,
241,179,255],toColor:[253,243,180,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,243,180,255],toColor:[253,245,182,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,245,182,255],toColor:[253,247,184,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,247,184,255],toColor:[253,248,186,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,248,186,255],toColor:[253,250,188,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[253,250,188,255],toColor:[253,252,190,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,252,190,255],toColor:[253,254,192,255]}]},{id:"orangeBright_predefined",fromColor:[255,235,204],toColor:[240,118,5]},{id:"orangeLightToDark_predefined",fromColor:[250,233,212],toColor:[171,65,36]},{id:"partialSpectrum_predefined",type:"multipart",colorRamps:[{fromColor:[242,241,162],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]},{fromColor:[252,3,69],toColor:[176,
7,237]},{fromColor:[176,7,237],toColor:[2,29,173]}]},{id:"partialSpectrum1Diverging_predefined",type:"multipart",colorRamps:[{fromColor:[135,38,38],toColor:[240,149,12]},{fromColor:[240,149,12],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[74,80,181]},{fromColor:[74,80,181],toColor:[39,32,122]}]},{id:"partialSpectrum2Diverging_predefined",type:"multipart",colorRamps:[{fromColor:[115,77,42],toColor:[201,137,52]},{fromColor:[201,137,52],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[91,
63,176]},{fromColor:[91,63,176],toColor:[81,13,97]}]},{id:"pinkToYellowGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[158,30,113],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[99,110,45]}]},{id:"pinkToYellowGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[97,47,73],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[22,59,15]}]},{id:"plasma_predefined",type:"multipart",colorRamps:[{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[13,8,135,255],toColor:[16,7,136,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[16,7,136,255],toColor:[19,7,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[19,7,138,255],toColor:[22,7,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[22,7,139,255],toColor:[25,6,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[25,6,140,255],toColor:[27,6,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[27,6,141,255],toColor:[29,6,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[29,6,142,255],toColor:[32,6,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,6,143,255],toColor:[34,6,144,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[34,6,144,255],toColor:[36,6,145,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[36,6,145,255],toColor:[38,5,146,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[38,5,146,255],toColor:[40,5,147,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[40,5,147,255],toColor:[42,5,148,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[42,5,148,255],toColor:[44,5,149,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[44,5,149,255],toColor:[46,5,150,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[46,5,150,255],toColor:[48,5,150,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[48,5,150,255],toColor:[50,5,151,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[50,5,151,255],toColor:[51,5,152,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[51,5,152,255],toColor:[53,4,153,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[53,4,153,255],toColor:[55,4,153,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[55,4,153,255],toColor:[57,4,154,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[57,4,154,255],toColor:[58,4,155,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[58,4,155,255],toColor:[60,4,156,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[60,4,156,255],toColor:[62,4,156,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[62,4,156,255],toColor:[64,4,157,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[64,4,157,255],toColor:[65,4,158,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[65,4,158,255],toColor:[67,3,158,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[67,3,158,255],toColor:[69,3,159,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[69,3,159,255],toColor:[70,3,159,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,3,159,255],toColor:[72,3,160,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,3,160,255],toColor:[73,3,161,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[73,3,161,255],toColor:[75,3,161,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[75,3,161,255],toColor:[77,2,162,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[77,2,162,255],toColor:[78,2,162,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[78,2,162,255],toColor:[80,2,163,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[80,2,163,255],toColor:[82,2,163,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[82,2,163,255],toColor:[83,2,164,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[83,2,164,255],toColor:[85,2,164,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[85,2,164,255],toColor:[86,1,165,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[86,1,165,255],toColor:[88,1,165,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[88,1,165,255],toColor:[90,1,165,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[90,1,165,255],toColor:[91,1,166,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[91,1,166,255],toColor:[93,1,166,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[93,1,166,255],toColor:[94,1,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[94,1,167,255],toColor:[96,1,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[96,1,167,255],toColor:[98,0,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[98,0,167,255],toColor:[99,0,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[99,0,167,255],toColor:[101,0,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[101,0,168,255],toColor:[102,0,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[102,0,168,255],toColor:[104,0,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[104,0,168,255],toColor:[105,0,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[105,0,168,255],toColor:[107,0,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[107,0,169,255],toColor:[108,0,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[108,0,169,255],toColor:[110,0,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[110,0,169,255],toColor:[112,0,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[112,0,169,255],toColor:[113,0,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[113,0,169,255],toColor:[115,1,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[115,1,169,255],toColor:[116,1,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[116,1,169,255],toColor:[118,1,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[118,1,169,255],toColor:[119,1,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[119,1,169,255],toColor:[121,1,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[121,1,169,255],toColor:[122,2,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[122,2,169,255],toColor:[124,2,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[124,2,169,255],toColor:[125,3,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[125,3,169,255],toColor:[127,3,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[127,3,168,255],toColor:[128,4,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[128,4,168,255],toColor:[130,4,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[130,4,168,255],toColor:[131,5,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[131,5,168,255],toColor:[133,6,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[133,6,167,255],toColor:[134,6,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[134,6,167,255],toColor:[136,7,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[136,7,167,255],toColor:[137,8,166,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[137,8,166,255],toColor:[138,9,166,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[138,9,166,255],toColor:[140,10,166,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[140,10,166,255],toColor:[141,11,165,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[141,11,165,255],toColor:[143,12,165,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[143,12,165,255],toColor:[144,13,164,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[144,13,164,255],toColor:[145,14,164,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[145,14,164,255],toColor:[147,15,163,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[147,15,163,255],toColor:[148,16,163,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[148,16,163,255],toColor:[150,18,162,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[150,18,162,255],toColor:[151,19,161,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[151,19,161,255],toColor:[152,20,161,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[152,20,161,255],toColor:[154,21,160,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[154,21,160,255],toColor:[155,22,159,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[155,22,159,255],toColor:[156,23,159,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[156,23,159,255],toColor:[158,24,158,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[158,24,158,255],toColor:[159,25,157,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[159,25,157,255],toColor:[160,26,156,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[160,26,156,255],toColor:[162,28,156,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[162,28,156,255],toColor:[163,29,155,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[163,29,155,255],toColor:[164,30,154,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[164,30,154,255],toColor:[165,31,153,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[165,31,153,255],toColor:[167,32,152,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[167,32,152,255],toColor:[168,33,152,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[168,33,152,255],toColor:[169,34,151,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[169,34,151,255],toColor:[170,35,150,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[170,35,150,255],toColor:[171,37,149,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[171,37,149,255],toColor:[173,38,148,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[173,38,148,255],toColor:[174,39,147,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[174,39,147,255],toColor:[175,40,146,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[175,40,146,255],toColor:[176,41,145,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[176,41,145,255],toColor:[177,42,145,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[177,42,145,255],toColor:[179,43,144,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[179,43,144,255],toColor:[180,45,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[180,45,143,255],toColor:[181,46,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[181,46,142,255],toColor:[182,47,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[182,47,141,255],toColor:[183,48,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[183,48,140,255],toColor:[184,49,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[184,49,139,255],toColor:[185,50,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[185,50,138,255],toColor:[186,51,137,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[186,51,137,255],toColor:[187,52,136,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[187,52,136,255],toColor:[188,54,135,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[188,54,135,255],toColor:[189,55,134,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[189,55,134,255],toColor:[191,56,133,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[191,56,133,255],toColor:[192,57,132,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[192,57,132,255],toColor:[193,58,131,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[193,58,131,255],toColor:[194,59,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[194,59,130,255],toColor:[195,60,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[195,60,129,255],toColor:[196,62,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[196,62,129,255],toColor:[197,63,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[197,63,128,255],toColor:[198,64,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[198,64,127,255],toColor:[199,65,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[199,65,126,255],toColor:[200,66,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[200,66,125,255],toColor:[201,67,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[201,67,124,255],toColor:[202,68,123,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[202,68,123,255],toColor:[202,69,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[202,69,122,255],toColor:[203,71,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[203,71,121,255],toColor:[204,72,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[204,72,120,255],toColor:[205,73,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[205,73,119,255],toColor:[206,74,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[206,74,118,255],toColor:[207,75,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[207,75,117,255],toColor:[208,76,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[208,76,117,255],toColor:[209,77,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[209,77,116,255],toColor:[210,79,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[210,79,115,255],toColor:[211,80,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[211,80,114,255],toColor:[212,81,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[212,81,113,255],toColor:[212,82,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[212,82,112,255],toColor:[213,83,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[213,83,111,255],toColor:[214,84,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[214,84,110,255],toColor:[215,85,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[215,85,109,255],toColor:[216,87,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[216,87,109,255],toColor:[217,88,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[217,88,108,255],toColor:[218,89,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[218,89,107,255],toColor:[218,90,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[218,90,106,255],toColor:[219,91,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[219,91,105,255],toColor:[220,92,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[220,92,104,255],toColor:[221,93,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[221,93,103,255],toColor:[222,95,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[222,95,102,255],toColor:[223,96,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[223,96,102,255],toColor:[223,97,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[223,97,101,255],toColor:[224,98,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[224,98,100,255],toColor:[225,99,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[225,99,99,255],toColor:[226,100,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[226,100,98,255],toColor:[226,102,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[226,102,97,255],toColor:[227,103,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[227,103,96,255],toColor:[228,104,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[228,104,96,255],toColor:[229,105,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[229,105,95,255],toColor:[229,106,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[229,106,94,255],toColor:[230,108,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[230,108,93,255],toColor:[231,109,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[231,109,92,255],toColor:[232,110,91,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[232,110,91,255],toColor:[232,111,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[232,111,90,255],toColor:[233,112,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[233,112,90,255],toColor:[234,114,89,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[234,114,89,255],toColor:[234,115,88,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[234,115,88,255],toColor:[235,116,87,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[235,116,87,255],toColor:[236,117,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[236,117,86,255],toColor:[236,119,85,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[236,119,85,255],toColor:[237,120,84,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[237,120,84,255],toColor:[238,121,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[238,121,83,255],toColor:[238,122,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[238,122,83,255],toColor:[239,124,82,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[239,124,82,255],toColor:[240,125,81,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[240,125,81,255],toColor:[240,126,80,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[240,126,80,255],toColor:[241,127,79,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[241,127,79,255],toColor:[241,129,78,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[241,129,78,255],toColor:[242,130,77,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,130,77,255],toColor:[242,131,77,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,131,77,255],toColor:[243,133,76,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,133,76,255],toColor:[244,134,75,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[244,134,75,255],toColor:[244,135,74,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,135,74,255],toColor:[245,136,73,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,136,73,255],toColor:[245,138,72,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,138,72,255],toColor:[246,139,71,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[246,139,71,255],toColor:[246,140,70,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[246,140,70,255],toColor:[247,142,70,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,142,70,255],toColor:[247,143,69,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,143,69,255],toColor:[248,144,68,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,144,68,255],toColor:[248,146,67,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,146,67,255],toColor:[248,147,66,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[248,147,66,255],toColor:[249,149,65,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,149,65,255],toColor:[249,150,64,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,150,64,255],toColor:[250,151,64,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,151,64,255],toColor:[250,153,63,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,153,63,255],toColor:[250,154,62,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[250,154,62,255],toColor:[251,156,61,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,156,61,255],toColor:[251,157,60,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,157,60,255],toColor:[251,158,59,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,158,59,255],toColor:[252,160,58,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,160,58,255],toColor:[252,161,58,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[252,161,58,255],toColor:[252,163,57,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,163,57,255],toColor:[253,164,56,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,164,56,255],toColor:[253,166,55,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,166,55,255],toColor:[253,167,54,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,167,54,255],toColor:[253,168,53,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[253,168,53,255],toColor:[253,170,52,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,170,52,255],toColor:[254,171,52,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,171,52,255],toColor:[254,173,51,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,173,51,255],toColor:[254,174,50,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,174,50,255],toColor:[254,176,49,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[254,176,49,255],toColor:[254,177,48,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,177,48,255],toColor:[254,179,48,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,179,48,255],toColor:[254,180,47,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,180,47,255],toColor:[254,182,46,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,182,46,255],toColor:[255,183,45,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[255,183,45,255],toColor:[255,185,45,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,185,45,255],toColor:[255,187,44,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,187,44,255],toColor:[255,188,43,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,188,43,255],toColor:[255,190,43,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,190,43,255],toColor:[255,191,42,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[255,191,42,255],toColor:[255,193,41,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,193,41,255],toColor:[254,194,41,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,194,41,255],toColor:[254,196,40,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,196,40,255],toColor:[254,198,40,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,198,40,255],toColor:[254,199,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[254,199,39,255],toColor:[254,201,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,201,39,255],toColor:[254,202,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,202,38,255],toColor:[254,204,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,204,38,255],toColor:[253,206,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,206,38,255],toColor:[253,207,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[253,207,37,255],toColor:[253,209,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,209,37,255],toColor:[253,211,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,211,37,255],toColor:[252,212,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,212,37,255],toColor:[252,214,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,214,36,255],toColor:[252,216,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[252,216,36,255],toColor:[251,217,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,217,36,255],toColor:[251,219,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,219,36,255],toColor:[250,221,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,221,37,255],toColor:[250,222,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,222,37,255],toColor:[249,224,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[249,224,37,255],toColor:[249,226,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,226,37,255],toColor:[248,227,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,227,37,255],toColor:[248,229,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,229,38,255],toColor:[247,231,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,231,38,255],toColor:[247,232,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[247,232,38,255],toColor:[246,234,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[246,234,39,255],toColor:[246,236,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[246,236,39,255],toColor:[245,238,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,238,39,255],toColor:[244,239,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,239,39,255],toColor:[244,241,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[244,241,39,255],toColor:[243,243,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,243,39,255],toColor:[242,245,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,245,38,255],toColor:[242,246,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,246,38,255],toColor:[241,248,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[241,248,36,255],toColor:[241,250,34,255]}]},{id:"precipitation_predefined",
type:"multipart",colorRamps:[{fromColor:[194,82,60],toColor:[237,161,19]},{fromColor:[237,161,19],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,219,0]},{fromColor:[0,219,0],toColor:[32,153,143]},{fromColor:[32,153,143],toColor:[11,44,122]}]},{id:"prediction_predefined",type:"multipart",colorRamps:[{fromColor:[40,146,199],toColor:[250,250,100]},{fromColor:[250,250,100],toColor:[232,16,20]}]},{id:"purpleBright_predefined",fromColor:[255,204,255],toColor:[199,0,199]},{id:"purpleToGreenDivergingBright_predefined",
type:"multipart",colorRamps:[{fromColor:[77,32,150],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[20,122,11]}]},{id:"purpleToGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[67,14,89],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[24,79,15]}]},{id:"purpleBlueBright_predefined",fromColor:[223,184,230],toColor:[112,12,242]},{id:"purpleBlueLightToDark_predefined",fromColor:[229,213,242],toColor:[93,44,112]},{id:"purpleRedBright_predefined",fromColor:[255,204,
225],toColor:[199,0,99]},{id:"purpleRedLightToDark_predefined",fromColor:[250,215,246],toColor:[143,17,57]},{id:"redBright_predefined",fromColor:[255,204,204],toColor:[219,0,0]},{id:"redLightToDark_predefined",fromColor:[255,224,224],toColor:[143,10,10]},{id:"redToBlueDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[196,69,57],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[48,95,207]}]},{id:"redToBlueDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[107,
13,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[13,53,97]}]},{id:"redToGreen_predefined",type:"multipart",colorRamps:[{fromColor:[245,0,0],toColor:[245,245,0]},{fromColor:[245,245,0],toColor:[0,245,0]}]},{id:"redToGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[186,20,20],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[54,145,33]}]},{id:"redToGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[97,21,13],toColor:[204,204,102]},
{fromColor:[204,204,102],toColor:[16,69,16]}]},{id:"slope_predefined",type:"multipart",colorRamps:[{fromColor:[56,168,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]},{id:"spectrumFullBright_predefined",type:"multipart",colorRamps:[{fromColor:[255,0,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,0,255]}]},{id:"spectrumFullDark_predefined",type:"multipart",colorRamps:[{fromColor:[153,0,0],toColor:[153,153,0]},{fromColor:[153,
153,0],toColor:[0,153,153]},{fromColor:[0,153,153],toColor:[0,0,153]}]},{id:"spectrumFullLight_predefined",type:"multipart",colorRamps:[{fromColor:[255,153,153],toColor:[255,255,153]},{fromColor:[255,255,153],toColor:[153,255,255]},{fromColor:[153,255,255],toColor:[153,153,255]}]},{id:"surface_predefined",type:"multipart",colorRamps:[{fromColor:[112,153,89],toColor:[242,238,162]},{fromColor:[242,238,162],toColor:[242,206,133]},{fromColor:[242,206,133],toColor:[194,140,124]},{fromColor:[194,140,124],
toColor:[255,242,255]}]},{id:"temperature_predefined",type:"multipart",colorRamps:[{fromColor:[255,252,255],toColor:[255,0,255]},{fromColor:[255,0,255],toColor:[0,0,255]},{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,255,0]},{fromColor:[0,255,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,128,0]},{fromColor:[255,128,0],toColor:[128,0,0]}]},{id:"viridis_predefined",type:"multipart",colorRamps:[{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[68,
1,84,255],toColor:[69,2,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[69,2,86,255],toColor:[69,4,87,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[69,4,87,255],toColor:[69,5,89,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[69,5,89,255],toColor:[70,7,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,7,90,255],toColor:[70,8,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,8,92,255],
toColor:[70,10,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,10,93,255],toColor:[71,11,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,11,95,255],toColor:[71,13,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,13,96,255],toColor:[71,14,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,14,98,255],toColor:[71,16,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,16,99,255],
toColor:[72,17,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,17,100,255],toColor:[72,19,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,19,102,255],toColor:[72,20,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,20,103,255],toColor:[72,22,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,22,104,255],toColor:[72,23,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,
23,106,255],toColor:[72,24,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,24,107,255],toColor:[72,26,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,26,108,255],toColor:[72,27,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,27,109,255],toColor:[72,28,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,28,110,255],toColor:[73,30,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[73,30,112,255],toColor:[73,31,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[73,31,113,255],toColor:[72,32,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,32,114,255],toColor:[72,34,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,34,115,255],toColor:[72,35,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,35,116,255],toColor:[72,36,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[72,36,117,255],toColor:[72,37,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,37,118,255],toColor:[72,39,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,39,119,255],toColor:[72,40,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,40,120,255],toColor:[72,41,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,41,121,255],toColor:[72,42,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[72,42,122,255],toColor:[72,44,123,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,44,123,255],toColor:[71,45,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,45,124,255],toColor:[71,46,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,46,125,255],toColor:[71,47,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,47,125,255],toColor:[71,49,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[71,49,126,255],toColor:[70,50,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,50,127,255],toColor:[70,51,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,51,128,255],toColor:[70,52,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,52,128,255],toColor:[70,54,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,54,129,255],toColor:[69,55,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[69,55,130,255],toColor:[69,56,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[69,56,130,255],toColor:[69,57,131,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[69,57,131,255],toColor:[68,58,132,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[68,58,132,255],toColor:[68,60,132,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[68,60,132,255],toColor:[68,61,133,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[68,61,133,255],toColor:[67,62,133,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[67,62,133,255],toColor:[67,63,134,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[67,63,134,255],toColor:[66,64,134,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[66,64,134,255],toColor:[66,66,135,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[66,66,135,255],toColor:[65,67,135,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[65,67,135,255],toColor:[65,68,136,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[65,68,136,255],toColor:[65,69,136,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[65,69,136,255],toColor:[64,70,136,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[64,70,136,255],toColor:[64,71,137,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[64,71,137,255],toColor:[63,73,137,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[63,73,137,255],toColor:[63,74,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[63,74,138,255],toColor:[62,75,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[62,75,138,255],toColor:[62,76,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[62,76,138,255],toColor:[61,77,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[61,77,138,255],toColor:[61,78,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[61,78,139,255],toColor:[60,79,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[60,79,139,255],toColor:[60,80,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[60,80,139,255],toColor:[59,81,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[59,81,139,255],toColor:[59,83,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[59,83,140,255],toColor:[58,84,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[58,84,140,255],toColor:[58,85,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[58,85,140,255],toColor:[57,86,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[57,86,140,255],toColor:[57,87,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[57,87,140,255],toColor:[56,88,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[56,88,141,255],toColor:[56,89,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[56,89,141,255],toColor:[55,90,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[55,90,141,255],toColor:[55,91,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[55,91,141,255],toColor:[54,92,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[54,92,141,255],toColor:[54,93,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[54,93,141,255],toColor:[53,94,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[53,94,141,255],toColor:[53,95,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[53,95,142,255],toColor:[52,96,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[52,96,142,255],toColor:[52,97,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[52,97,142,255],toColor:[52,98,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[52,98,142,255],toColor:[51,99,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[51,99,142,255],toColor:[51,100,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[51,100,142,255],toColor:[50,101,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[50,101,142,255],toColor:[50,102,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[50,102,142,255],toColor:[49,103,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[49,103,142,255],toColor:[49,104,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[49,104,142,255],toColor:[48,105,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[48,105,142,255],toColor:[48,106,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[48,106,142,255],toColor:[48,107,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[48,107,143,255],toColor:[47,108,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[47,108,143,255],toColor:[47,109,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[47,109,143,255],toColor:[46,110,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[46,110,143,255],toColor:[46,111,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[46,111,143,255],toColor:[45,112,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[45,112,143,255],toColor:[45,113,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[45,113,143,255],toColor:[45,114,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[45,114,143,255],toColor:[44,115,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[44,115,143,255],toColor:[44,116,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[44,116,143,255],toColor:[43,117,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[43,117,143,255],toColor:[43,118,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[43,118,143,255],toColor:[43,119,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[43,119,143,255],toColor:[42,120,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[42,120,143,255],toColor:[42,121,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[42,121,143,255],toColor:[42,122,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[42,122,143,255],toColor:[41,123,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[41,123,143,255],toColor:[41,123,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[41,123,143,255],toColor:[40,124,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[40,124,143,255],toColor:[40,125,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[40,125,143,255],toColor:[40,126,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[40,126,143,255],toColor:[39,127,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[39,127,143,255],toColor:[39,128,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[39,128,143,255],toColor:[39,129,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[39,129,143,255],toColor:[38,130,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[38,130,143,255],toColor:[38,131,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[38,131,143,255],toColor:[37,132,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[37,132,143,255],toColor:[37,133,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[37,133,142,255],toColor:[37,134,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[37,134,142,255],toColor:[36,135,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[36,135,142,255],toColor:[36,136,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[36,136,142,255],toColor:[36,137,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[36,137,142,255],toColor:[35,138,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[35,138,142,255],toColor:[35,139,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[35,139,142,255],toColor:[35,139,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[35,139,142,255],toColor:[34,140,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[34,140,142,255],toColor:[34,141,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[34,141,142,255],toColor:[34,142,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[34,142,141,255],toColor:[33,143,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[33,143,141,255],toColor:[33,144,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[33,144,141,255],toColor:[33,145,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[33,145,141,255],toColor:[32,146,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,146,141,255],toColor:[32,147,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[32,147,141,255],toColor:[32,148,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,148,140,255],toColor:[32,149,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,149,140,255],toColor:[31,150,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,150,140,255],toColor:[31,151,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,151,140,255],toColor:[31,152,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[31,152,139,255],toColor:[31,153,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,153,139,255],toColor:[31,154,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,154,139,255],toColor:[31,155,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,155,139,255],toColor:[31,156,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,156,138,255],toColor:[31,156,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[31,156,138,255],toColor:[31,157,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,157,138,255],toColor:[31,158,137,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,158,137,255],toColor:[31,159,137,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,159,137,255],toColor:[31,160,137,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,160,137,255],toColor:[31,161,136,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[31,161,136,255],toColor:[31,162,136,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,162,136,255],toColor:[32,163,135,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,163,135,255],toColor:[32,164,135,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,164,135,255],toColor:[32,165,134,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,165,134,255],toColor:[33,166,134,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[33,166,134,255],toColor:[33,167,134,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[33,167,134,255],toColor:[34,168,133,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[34,168,133,255],toColor:[34,169,133,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[34,169,133,255],toColor:[35,170,132,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[35,170,132,255],toColor:[36,170,131,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[36,170,131,255],toColor:[37,171,131,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[37,171,131,255],toColor:[38,172,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[38,172,130,255],toColor:[38,173,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[38,173,130,255],toColor:[39,174,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[39,174,129,255],toColor:[40,175,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[40,175,128,255],toColor:[41,176,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[41,176,128,255],toColor:[43,177,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[43,177,127,255],toColor:[44,178,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[44,178,126,255],toColor:[45,179,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[45,179,126,255],toColor:[46,180,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[46,180,125,255],toColor:[48,180,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[48,180,124,255],toColor:[49,181,123,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[49,181,123,255],toColor:[50,182,123,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[50,182,123,255],toColor:[52,183,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[52,183,122,255],toColor:[53,184,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[53,184,121,255],toColor:[55,185,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[55,185,120,255],toColor:[56,186,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[56,186,119,255],toColor:[58,187,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[58,187,118,255],toColor:[60,187,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[60,187,118,255],toColor:[61,188,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[61,188,117,255],toColor:[63,189,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[63,189,116,255],toColor:[65,190,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[65,190,115,255],toColor:[67,191,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[67,191,114,255],toColor:[68,192,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[68,192,113,255],toColor:[70,193,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[70,193,112,255],toColor:[72,193,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,193,111,255],toColor:[74,194,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[74,194,110,255],toColor:[76,195,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[76,195,109,255],toColor:[78,196,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[78,196,108,255],toColor:[80,197,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[80,197,106,255],toColor:[82,197,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[82,197,105,255],toColor:[84,198,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[84,198,104,255],toColor:[86,199,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[86,199,103,255],toColor:[88,200,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[88,200,102,255],toColor:[90,200,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[90,200,101,255],toColor:[92,201,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[92,201,99,255],toColor:[95,202,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[95,202,98,255],toColor:[97,203,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[97,203,97,255],toColor:[99,203,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[99,203,95,255],toColor:[101,204,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[101,204,94,255],toColor:[103,205,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[103,205,93,255],toColor:[106,206,91,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[106,206,91,255],toColor:[108,206,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[108,206,90,255],toColor:[110,207,89,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[110,207,89,255],toColor:[113,208,87,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[113,208,87,255],toColor:[115,208,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[115,208,86,255],toColor:[117,209,84,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[117,209,84,255],toColor:[120,210,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[120,210,83,255],toColor:[122,210,81,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[122,210,81,255],toColor:[125,211,80,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[125,211,80,255],toColor:[127,212,78,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[127,212,78,255],toColor:[130,212,77,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[130,212,77,255],toColor:[132,213,75,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[132,213,75,255],toColor:[135,213,74,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[135,213,74,255],toColor:[137,214,72,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[137,214,72,255],toColor:[140,215,71,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[140,215,71,255],toColor:[142,215,69,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[142,215,69,255],toColor:[145,216,67,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[145,216,67,255],toColor:[147,216,66,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[147,216,66,255],toColor:[150,217,64,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[150,217,64,255],toColor:[153,217,62,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[153,217,62,255],toColor:[155,218,61,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[155,218,61,255],toColor:[158,218,59,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[158,218,59,255],toColor:[160,219,57,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[160,219,57,255],toColor:[163,219,55,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[163,219,55,255],toColor:[166,220,54,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[166,220,54,255],toColor:[168,220,52,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[168,220,52,255],toColor:[171,221,50,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[171,221,50,255],toColor:[174,221,49,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[174,221,49,255],toColor:[176,222,47,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[176,222,47,255],toColor:[179,222,45,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[179,222,45,255],toColor:[182,222,43,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[182,222,43,255],toColor:[184,223,42,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[184,223,42,255],toColor:[187,223,40,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[187,223,40,255],toColor:[190,224,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[190,224,38,255],toColor:[192,224,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[192,224,37,255],toColor:[195,224,35,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[195,224,35,255],toColor:[198,225,34,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[198,225,34,255],toColor:[201,225,32,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[201,225,32,255],toColor:[203,225,31,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[203,225,31,255],toColor:[206,226,29,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[206,226,29,255],toColor:[209,226,28,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[209,226,28,255],toColor:[211,226,27,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[211,226,27,255],toColor:[214,227,26,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[214,227,26,255],toColor:[216,227,26,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[216,227,26,255],toColor:[219,227,25,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[219,227,25,255],toColor:[222,228,25,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[222,228,25,255],toColor:[224,228,24,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[224,228,24,255],toColor:[227,228,24,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[227,228,24,255],toColor:[229,229,25,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[229,229,25,255],toColor:[232,229,25,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[232,229,25,255],toColor:[235,229,26,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[235,229,26,255],toColor:[237,230,27,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[237,230,27,255],toColor:[240,230,28,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[240,230,28,255],toColor:[242,230,29,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[242,230,29,255],toColor:[245,231,30,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,231,30,255],toColor:[247,231,32,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,231,32,255],toColor:[249,231,33,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,231,33,255],toColor:[252,232,35,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,232,35,255],toColor:[254,232,37,255]}]},{id:"whiteToBlack_predefined",
fromColor:[255,255,255],toColor:[0,0,0]},{id:"yellowToDarkRed_predefined",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[242,167,46]},{fromColor:[242,167,46],toColor:[107,0,0]}]},{id:"yellowToGreenToDarkBlue_predefined",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[56,224,9]},{fromColor:[56,224,9],toColor:[26,147,171]},{fromColor:[26,147,171],toColor:[12,16,120]}]},{id:"yellowToRed_predefined",fromColor:[245,245,0],toColor:[255,0,0]},{id:"yellowGreenBright_predefined",
fromColor:[236,252,204],toColor:[157,204,16]},{id:"yellowGreenLightToDark_predefined",fromColor:[215,240,175],toColor:[96,107,45]}],b=[{name:"Aspect",id:"aspect_predefined"},{name:"Black to White",id:"blackToWhite_predefined"},{name:"Blue Bright",id:"blueBright_predefined"},{name:"Blue Light to Dark",id:"blueLightToDark_predefined"},{name:"Blue-Green Bright",id:"blueGreenBright_predefined"},{name:"Blue-Green Light to Dark",id:"blueGreenLightToDark_predefined"},{name:"Brown Light to Dark",id:"brownLightToDark_predefined"},
{name:"Brown to Blue Green Diverging, Bright",id:"brownToBlueGreenDivergingBright_predefined"},{name:"Brown to Blue Green Diverging, Dark",id:"brownToBlueGreenDivergingDark_predefined"},{name:"Cividis",id:"cividis_predefined"},{name:"Coefficient Bias",id:"coefficientBias_predefined"},{name:"Cold to Hot Diverging",id:"coldToHotDiverging_predefined"},{name:"Condition Number",id:"conditionNumber_predefined"},{name:"Cyan to Purple",id:"cyanToPurple_predefined"},{name:"Cyan-Light to Blue-Dark",id:"cyanLightToBlueDark_predefined"},
{name:"Distance",id:"distance_predefined"},{id:"elevation1_predefined",name:"Elevation #1"},{id:"elevation2_predefined",name:"Elevation #2"},{id:"errors_predefined",name:"Errors"},{id:"grayLightToDark_predefined",name:"Gray Light to Dark"},{id:"greenBright_predefined",name:"Green Bright"},{id:"greenLightToDark_predefined",name:"Green Light to Dark"},{name:"Green to Blue",id:"greenToBlue_predefined"},{name:"Inferno",id:"inferno_predefined"},{name:"Magma",id:"magma_predefined"},{name:"Orange Bright",
id:"orangeBright_predefined"},{name:"Orange Light to Dark",id:"orangeLightToDark_predefined"},{id:"partialSpectrum_predefined",name:"Partial Spectrum"},{id:"partialSpectrum1Diverging_predefined",name:"Partial Spectrum 1 Diverging",type:"multipart"},{id:"partialSpectrum2Diverging_predefined",name:"Partial Spectrum 2 Diverging"},{name:"Plasma",id:"plasma_predefined"},{name:"Pink to YellowGreen Diverging, Bright",id:"pinkToYellowGreenDivergingBright_predefined"},{name:"Pink to YellowGreen Diverging, Dark",
id:"pinkToYellowGreenDivergingDark_predefined"},{id:"precipitation_predefined",name:"Precipitation"},{id:"prediction_predefined",name:"Prediction"},{name:"Purple Bright",id:"purpleBright_predefined"},{id:"purpleToGreenDivergingBright_predefined",name:"Purple to Green Diverging, Bright"},{id:"purpleToGreenDivergingDark_predefined",name:"Purple to Green Diverging, Dark"},{name:"Purple-Blue Bright",id:"purpleBlueBright_predefined"},{name:"Purple-Blue Light to Dark",id:"purpleBlueLightToDark_predefined"},
{name:"Purple-Red Bright",id:"purpleRedBright_predefined"},{name:"Purple-Red Light to Dark",id:"purpleRedLightToDark_predefined"},{name:"Red Bright",id:"redBright_predefined"},{name:"Red Light to Dark",id:"redLightToDark_predefined"},{id:"redToBlueDivergingBright_predefined",name:"Red to Blue Diverging, Bright"},{id:"redToBlueDivergingDark_predefined",name:"Red to Blue Diverging, Dark"},{id:"redToGreen_predefined",name:"Red to Green"},{id:"redToGreenDivergingBright_predefined",name:"Red to Green Diverging, Bright"},
{id:"redToGreenDivergingDark_predefined",name:"Red to Green Diverging, Dark"},{name:"Slope",id:"slope_predefined"},{id:"spectrumFullBright_predefined",name:"Spectrum-Full Bright"},{id:"spectrumFullDark_predefined",name:"Spectrum-Full Dark"},{id:"spectrumFullLight_predefined",name:"Spectrum-Full Light"},{id:"surface_predefined",name:"Surface"},{id:"temperature_predefined",name:"Temperature"},{name:"Viridis",id:"viridis_predefined"},{name:"White to Black",id:"whiteToBlack_predefined"},{id:"yellowToDarkRed_predefined",
name:"Yellow to Dark Red"},{id:"yellowToGreenToDarkBlue_predefined",name:"Yellow to Green to Dark Blue"},{name:"Yellow to Red",id:"yellowToRed_predefined"},{name:"Yellow-Green Bright",id:"yellowGreenBright_predefined"},{name:"Yellow-Green Light to Dark",id:"yellowGreenLightToDark_predefined"}],p=new c({data:b});G.mixin(m,{predefinedColorRamps:e,predefinedColorRampNameMap:b,getColorRampName:function(t){t=g(t);return t.id?(t=p.query({id:t.id}),t[0]?t[0].name:null):null},fromJson:function(t){var z=null;
if(!t)return z;"multipart"===t.type?(z=new h,z.colorRamps=x.map(t.colorRamps,function(C){return d(C)},this)):"algorithmic"===t.type&&(z=d(t));return z},colorsEqual:k,getColorRampId:g,invertColorRamp:f,convertColorRampToColormap:function(t,z){if(t&&z){var C=t.colorRamps?t.colorRamps.length:1,y=[],D=[],B,u,E,v,A=0,F=0;for(A=0;A<C;A++)y[A]={},y[A].start=F,y[A].end=F+1/C,F=y[A].end;for(A=0;A<z;A++){var I=(A+.5)/z;x.forEach(y,function(N,da){I>=N.start&&I<N.end&&(v=(I-N.start)/(N.end-N.start),1<y.length?
(B=q.getDojoColor(t.colorRamps[da].fromColor),u=q.getDojoColor(t.colorRamps[da].toColor)):(B=q.getDojoColor(t.fromColor),u=q.getDojoColor(t.toColor)),E=l(B,u,v),D.push([A,E.r,E.g,E.b]))},this)}return D}},interpolateLabColor:l});return m})},"dojo/store/Memory":function(){define(["../_base/declare","./util/QueryResults","./util/SimpleQueryEngine"],function(G,x,c){return G("dojo.store.Memory",null,{constructor:function(r){for(var h in r)this[h]=r[h];this.setData(this.data||[])},data:null,idProperty:"id",
index:null,queryEngine:c,get:function(r){return this.data[this.index[r]]},getIdentity:function(r){return r[this.idProperty]},put:function(r,h){var w=this.data,q=this.index,n=this.idProperty;n=r[n]=h&&"id"in h?h.id:n in r?r[n]:Math.random();var f=w.length,g,a=n in q?"update":"add";if("update"===a){if(h&&!1===h.overwrite)throw Error("Object already exists");f=g=q[n]}h&&"before"in h?null==h.before?(h=w.length,"update"===a&&--h):(h=q[this.getIdentity(h.before)],g<h&&--h):h=f;h===g?w[h]=r:(void 0!==g&&
w.splice(g,1),w.splice(h,0,r),this._rebuildIndex(void 0===g?h:Math.min(g,h)));return n},add:function(r,h){(h=h||{}).overwrite=!1;return this.put(r,h)},remove:function(r){var h=this.index,w=this.data;if(r in h)return w.splice(h[r],1),this.index={},this._rebuildIndex(),!0},query:function(r,h){return x(this.queryEngine(r,h)(this.data))},setData:function(r){r.items?(this.idProperty=r.identifier||this.idProperty,r=this.data=r.items):this.data=r;this.index={};this._rebuildIndex()},_rebuildIndex:function(r){var h=
this.data,w=h.length;for(r=r||0;r<w;r++)this.index[h[r][this.idProperty]]=r}})})},"dojo/store/util/QueryResults":function(){define(["../../_base/array","../../_base/lang","../../when"],function(G,x,c){var r=function(h){function w(n){h[n]=function(){var f=arguments,g=c(h,function(a){Array.prototype.unshift.call(f,a);return r(G[n].apply(G,f))});if("forEach"!==n||q)return g}}if(!h)return h;var q=!!h.then;q&&(h=x.delegate(h));w("forEach");w("filter");w("map");null==h.total&&(h.total=c(h,function(n){return n.length}));
return h};x.setObject("dojo.store.util.QueryResults",r);return r})},"dojo/store/util/SimpleQueryEngine":function(){define(["../../_base/array"],function(G){return function(x,c){function r(w){w=G.filter(w,x);var q=c&&c.sort;q&&w.sort("function"==typeof q?q:function(f,g){for(var a,d=0;a=q[d];d++){var k=f[a.attribute],l=g[a.attribute];k=null!=k?k.valueOf():k;l=null!=l?l.valueOf():l;if(k!=l)return!!a.descending==(null==k||k>l)?-1:1}return 0});if(c&&(c.start||c.count)){var n=w.length;w=w.slice(c.start||
0,(c.start||0)+(c.count||Infinity));w.total=n}return w}switch(typeof x){default:throw Error("Can not query with a "+typeof x);case "object":case "undefined":var h=x;x=function(w){for(var q in h){var n=h[q];if(n&&n.test){if(!n.test(w[q],w))return!1}else if(n!=w[q])return!1}return!0};break;case "string":if(!this[x])throw Error("No filter function "+x+" was found in store");x=this[x];case "function":}r.matches=x;return r}})},"esri/tasks/AlgorithmicColorRamp":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../Color ./ColorRamp".split(" "),
function(G,x,c,r,h,w){G=G(w,{declaredClass:"esri.tasks.AlgorithmicColorRamp",type:"algorithmic",fromColor:null,toColor:null,algorithm:null,toJson:function(){switch(this.algorithm&&this.algorithm.toLowerCase()){case "cie-lab":var q="esriCIELabAlgorithm";break;case "hsv":q="esriHSVAlgorithm";break;case "lab-lch":q="esriLabLChAlgorithm"}q={type:"algorithmic",algorithm:q};q.fromColor=h.toJsonColor(this.fromColor);q.toColor=h.toJsonColor(this.toColor);return q}});c("extend-esri")&&x.setObject("tasks.AlgorithmicColorRamp",
G,r);return G})},"esri/tasks/ColorRamp":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(G,x,c,r){G=G(null,{declaredClass:"esri.tasks.ColorRamp",type:null});c("extend-esri")&&x.setObject("tasks.ColorRamp",G,r);return G})},"esri/tasks/MultipartColorRamp":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../symbols/Symbol ./ColorRamp".split(" "),function(G,x,c,r,h,w){G=G(w,{declaredClass:"esri.tasks.MultipartColorRamp",
type:"multipart",constructor:function(){this.colorRamps=[]},addColorRamp:function(q){this.colorRamps.push(q)},toJson:function(){return{type:"multipart",colorRamps:c.map(this.colorRamps,function(q){return q.toJson()})}}});r("extend-esri")&&x.setObject("tasks.MultipartColorRamp",G,h);return G})},"esri/renderers/colorUtils":function(){define(["dojo/_base/Color","dojo/_base/array"],function(G,x){var c={COEF_RGB2XYZ:[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],COEF_XYZ2RGB:[[3.2406,-1.5372,
-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],matrixProduct:function(h,w){var q=[],n,f;if(h[0].length!==w.length)throw"dimensions do not match";var g=h.length,a=h[0].length,d=0;for(n=0;n<g;n++){for(f=d=0;f<a;f++)d+=h[n][f]*w[f];q.push(d)}return q},rgb2xyz:function(h){h=[h.r/255,h.g/255,h.b/255].map(function(w){return.04045>=w?w/12.92:Math.pow((w+.055)/1.055,2.4)});h=this.matrixProduct(this.COEF_RGB2XYZ,h);return{x:100*h[0],y:100*h[1],z:100*h[2]}},xyz2rgb:function(h){h=this.matrixProduct(this.COEF_XYZ2RGB,
[h.x/100,h.y/100,h.z/100]).map(function(w){return Math.min(1,Math.max(.0031308>=w?12.92*w:1.055*Math.pow(w,1/2.4)-.055,0))});return{r:Math.round(255*h[0]),g:Math.round(255*h[1]),b:Math.round(255*h[2])}},xyz2lab:function(h){h=[h.x/95.047,h.y/100,h.z/108.883].map(function(w){return w>Math.pow(6/29,3)?Math.pow(w,1/3):1/3*Math.pow(29/6,2)*w+4/29});return{l:116*h[1]-16,a:500*(h[0]-h[1]),b:200*(h[1]-h[2])}},lab2xyz:function(h){var w=h.l;h=[(w+16)/116+h.a/500,(w+16)/116,(w+16)/116-h.b/200].map(function(q){return q>
6/29?Math.pow(q,3):3*Math.pow(6/29,2)*(q-4/29)});return{x:95.047*h[0],y:100*h[1],z:108.883*h[2]}},lab2lch:function(h){var w=h.l,q=h.a,n=h.b;h=Math.sqrt(q*q+n*n);q=Math.atan2(n,q);q=0<q?q:q+2*Math.PI;return{l:w,c:h,h:q}},lch2lab:function(h){var w=h.c,q=h.h;return{l:h.l,a:w*Math.cos(q),b:w*Math.sin(q)}},rgb2lab:function(h){return this.xyz2lab(this.rgb2xyz(h))},lab2rgb:function(h){return this.xyz2rgb(this.lab2xyz(h))},rgb2lch:function(h){return this.lab2lch(this.xyz2lab(this.rgb2xyz(h)))},lch2rgb:function(h){return this.xyz2rgb(this.lab2xyz(this.lch2lab(h)))}},
r={rgb2hsv:function(h){var w=h.r,q=h.g;h=h.b;var n=Math.max(w,q,h),f=n-Math.min(w,q,h),g;0===f?g=0:n===w?g=(q-h)/f%6:n===q?g=(h-w)/f+2:n===h&&(g=(w-q)/f+4);0>g&&(g+=6);return{h:60*g,s:100*(0===f?0:f/n),v:100/255*n}},hsv2rgb:function(h){var w=(h.h+360)%360/60,q=h.v/100*255;h=h.s/100*q;var n=h*(1-Math.abs(w%2-1));switch(Math.floor(w)){case 0:w={r:h,g:n,b:0};break;case 1:w={r:n,g:h,b:0};break;case 2:w={r:0,g:h,b:n};break;case 3:w={r:0,g:n,b:h};break;case 4:w={r:n,g:0,b:h};break;case 5:case 6:w={r:h,
g:0,b:n};break;default:w={r:0,g:0,b:0}}w.r=Math.round(w.r+q-h);w.g=Math.round(w.g+q-h);w.b=Math.round(w.b+q-h);return w}};return{toRGB:function(h){var w;void 0!==h.r&&void 0!==h.g&&void 0!==h.b?w=h:void 0!==h.l&&void 0!==h.c&&void 0!==h.h?w=c.lch2rgb(h):void 0!==h.l&&void 0!==h.a&&void 0!==h.b?w=c.lab2rgb(h):void 0!==h.x&&void 0!==h.y&&void 0!==h.z?w=c.xyz2rgb(h):void 0!==h.h&&void 0!==h.s&&void 0!==h.v&&(w=r.hsv2rgb(h));return w},toHSV:function(h){if(void 0!==h.h&&void 0!==h.s&&void 0!==h.v)return h;
h=this.toRGB(h);return r.rgb2hsv(h)},toLAB:function(h){return void 0!==h.l&&void 0!==h.a&&void 0!==h.b?h:c.rgb2lab(this.toRGB(h))},toLCH:function(h){return void 0!==h.l&&void 0!==h.c&&void 0!==h.h?h:c.rgb2lch(this.toRGB(h))},toXYZ:function(h){return void 0!==h.x&&void 0!==h.y&&void 0!==h.z?h:c.rgb2xyz(this.toRGB(h))},getDojoColor:function(h){if(h){if(Array.isArray(h))return G.fromArray(h);if(void 0!==h.r&&void 0!==h.g&&void 0!==h.b)return h}},correctRGBLimits:function(h){var w=[h.r,h.g,h.b];x.forEach(w,
function(q,n){0>w[n]?w[n]=0:255<w[n]&&(w[n]=255);w[n]=Math.floor(w[n])});return{r:w[0],g:w[1],b:w[2],a:1}}}})},"esri/renderers/jsonUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ../Color ../symbols/jsonUtils ./SimpleRenderer ./UniqueValueRenderer ./ClassBreaksRenderer ./VectorFieldRenderer ./DotDensityRenderer ./ScaleDependentRenderer ./TimeClassBreaksAger ./TimeRampAger ./TemporalRenderer ./HeatmapRenderer ./StretchRenderer ./ShadedReliefRenderer ./ColormapRenderer".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z){var C={createDefaultRenderer:function(y){y=q.createDefaultSymbol(y);return new n(y)},fromJson:function(y,D){switch(y.type||""){case "simple":y=new n(y,D);break;case "uniqueValue":y=new f(y,null,null,null,null,D);break;case "classBreaks":y=new g(y,null,D);break;case "vectorField":y=new a(y);break;case "scaleDependent":y=this._scaleDependentFromJson(y);break;case "dotDensity":y=y.attributes?C.createDefaultRenderer("esriGeometryPolygon"):this._dotDensityFromJson(y);
break;case "temporal":y=this._temporalFromJson(y,D);break;case "heatmap":y=this._heatmapFromJson(y);break;case "rasterStretch":y=new p(y);break;case "rasterShadedRelief":y=new t(y);break;case "rasterColormap":y=new z(y);break;default:y=(y=D&&D.geometryType)?C.createDefaultRenderer(y):null}return y},_scaleDependentFromJson:function(y){var D={},B=y.minScale;D.rendererInfos=G.map(y.rendererInfos,function(u){var E=u.maxScale;u={minScale:B,maxScale:E,renderer:u.renderer&&this.fromJson(u.renderer)};B=E;
return u},this);return new k(D)},_dotDensityFromJson:function(y){y.backgroundColor&&x.isArray(y.backgroundColor)&&(y.backgroundColor=w.toDojoColor(y.backgroundColor));0<y.dotSize&&(y.dotSize=r.pt2px(y.dotSize));y.fields&&G.forEach(y.fields,function(D){D&&x.isArray(D.color)&&(D.color=w.toDojoColor(D.color))});y.legendOptions&&(y.legendOptions.backgroundColor&&x.isArray(y.legendOptions.backgroundColor)&&(y.legendOptions.backgroundColor=w.toDojoColor(y.legendOptions.backgroundColor)),y.legendOptions.outline&&
(y.legendOptions.outline=q.fromJson(y.legendOptions.outline)));y.outline&&(y.outline=q.fromJson(y.outline));return new d(y)},_temporalFromJson:function(y,D){var B=D&&D.geometryType;y=y||{};var u=this.fromJson(y.observationRenderer,D);D=y.latestObservationRenderer?this.fromJson(y.latestObservationRenderer,D):null;B=y.trackRenderer?this.fromJson(y.trackRenderer,B?{geometryType:"esriGeometryPolyline"}:null):null;y=this._agerFromJson(y.observationAger);return new e(u,D,B,y)},_agerFromJson:function(y){var D;
y=y||{};y.colorRange||y.sizeRange||y.alphaRange?D=this._timeRampFromJson(y):y.agerClassBreakInfos&&(D=this._timeClassBreaksFromJson(y));return D},_timeRampFromJson:function(y){var D,B,u;y.colorRange&&1<y.colorRange.length&&(D=[w.toDojoColor(y.colorRange[0]),w.toDojoColor(y.colorRange[1])]);y.sizeRange&&1<y.sizeRange.length&&(B=[y.sizeRange[0],y.sizeRange[1]]);y.alphaRange&&1<y.alphaRange.length&&(u=[y.alphaRange[0]/255,y.alphaRange[1]/255]);return new m(D,B,u)},_timeClassBreaksFromJson:function(y){var D=
y.agerClassBreakInfos,B=[],u;var E=l.UNIT_DAYS;switch(y.timeUnits){case "esriTimeUnitsSeconds":E=l.UNIT_SECONDS;break;case "esriTimeUnitsMilliseconds":E=l.UNIT_MILLISECONDS;break;case "esriTimeUnitsHours":E=l.UNIT_HOURS;break;case "esriTimeUnitsMinutes":E=l.UNIT_MINUTES;break;case "esriTimeUnitsMonths":E=l.UNIT_MONTHS;break;case "esriTimeUnitsWeeks":E=l.UNIT_WEEKS;break;case "esriTimeUnitsYears":E=l.UNIT_YEARS}for(u=0;u<D.length;u+=1){y=D[u];var v={minAge:0,maxAge:y.oldestAge||Infinity};y.color&&
(v.color=w.toDojoColor(y.color));y.alpha&&(v.alpha=y.alpha/255);v.size=y.size;B[u]=v}return new l(B,E)},_heatmapFromJson:function(y){var D=y.colorStops;D&&D instanceof Array&&G.forEach(D,function(B){B.color=w.toDojoColor(B.color)});return new b(y)}};c("extend-esri")&&x.mixin(x.getObject("renderer",!0,h),C);return C})},"esri/renderers/VectorFieldRenderer":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojo/_base/array ../kernel ../lang ../Color ./Renderer ./ClassBreaksRenderer ../symbols/SimpleMarkerSymbol ../symbols/PictureMarkerSymbol ../symbols/SimpleLineSymbol ../symbols/jsonUtils require".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l){var m={STYLE_WIND_BARBS:"wind_speed",STYLE_SINGLE_ARROW:"single_arrow",STYLE_CLASSIFIED_ARROW:"classified_arrow",STYLE_BEAUFORT_KN:"beaufort_kn",STYLE_BEAUFORT_METER:"beaufort_m",STYLE_BEAUFORT_MILE:"beaufort_mi",STYLE_BEAUFORT_FEET:"beaufort_ft",STYLE_BEAUFORT_KM:"beaufort_km",STYLE_OCEAN_CURRENT_M:"ocean_current_m",STYLE_OCEAN_CURRENT_KN:"ocean_current_kn",STYLE_SCALAR:"simple_scalar"},e=G(n,{declaredClass:"esri.renderer.VectorFieldRenderer",iconFolderPath:"../images/symbol/sfs/",
constructor:function(b){w.isDefined(b)||(b={});b.attributeField=b.attributeField||"Magnitude";b.rotationInfo=b.rotationInfo||this._getRotationInfo(b);G.safeMixin(this,b);this.setRotationInfo(this.rotationInfo);this.style=this.style||e.STYLE_SINGLE_ARROW;this.singleArrowSymbol&&(this.singleArrowSymbol=this.singleArrowSymbol.declaredClass?this.singleArrowSymbol:k.fromJson(this.singleArrowSymbol));this.renderer=new f(this._getDefaultSymbol(),b.attributeField);this._updateRenderer(this.style);this.flowRepresentation=
this.flowRepresentation||this.FLOW_FROM},getSymbol:function(b){return this.renderer&&this.renderer.getSymbol(b)},setVisualVariables:function(b){b=r.filter(b,function(p){if("sizeInfo"===p.type)return w.isDefined(this._updateSizeInfo(p))},this);this.inherited(arguments);return this},setSizeInfo:function(b){this._updateSizeInfo(b);this.inherited(arguments);return this},setProportionalSymbolInfo:function(b){this.setSizeInfo(b);return this},setColorInfo:function(b){return this},_updateRenderer:function(b){return w.isDefined(this.renderer)?
b===e.STYLE_SINGLE_ARROW?this._createSingleArrowRenderer():b===e.STYLE_BEAUFORT_KN?this._createBeaufortKnotsRenderer():b===e.STYLE_BEAUFORT_METER?this._createBeaufortMeterRenderer():b===e.STYLE_BEAUFORT_FEET?this._createBeaufortFeetRenderer():b===e.STYLE_BEAUFORT_MILE?this._createBeaufortMilesRenderer():b===e.STYLE_BEAUFORT_KM?this._createBeaufortKilometersRenderer():b===e.STYLE_OCEAN_CURRENT_M?this._createCurrentMeterRenderer():b===e.STYLE_OCEAN_CURRENT_KN?this._createCurrentKnotsRenderer():b===
e.STYLE_SCALAR?this._createSimpleScalarRenderer():b===e.STYLE_WIND_BARBS?this._createWindBarbsRenderer():this._createClassifiedArrowRenderer():Error("Invalid Renderer!")},_updateSizeInfo:function(b){return b&&w.isDefined(b.minSize)&&w.isDefined(b.maxSize)&&w.isDefined(b.minDataValue)&&w.isDefined(b.maxDataValue)?(this.style===e.STYLE_WIND_BARBS&&(b.minSize=b.maxSize),b.field=b.field||"Magnitude",b.type="sizeInfo",this.minDataValue=b.minDataValue,this.maxDataValue=b.maxDataValue,b):null},_createClassifiedArrowRenderer:function(){this.renderer.defaultSymbol=
this._getDefaultSymbol(new q([56,168,0]));var b=[0,1E-6,3.5,7,10.5,14];if(w.isDefined(this.minDataValue)&&w.isDefined(this.maxDataValue)){var p=(this.maxDataValue-this.minDataValue)/5;b=[];var t;var z=this.minDataValue;for(t=0;6>t;t++)b[t]=z,z+=p}this._addBreaks(b,[[56,168,0],[139,309,0],[255,255,0],[255,128,0],[255,0,0]])},_createSingleArrowRenderer:function(){this.renderer.defaultSymbol=this.singleArrowSymbol||this._getDefaultSymbol()},_createBeaufortMeterRenderer:function(){this.renderer.defaultSymbol=
this._getDefaultSymbol(new q([214,47,39]));this._addBreaks([0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7],[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])},_createBeaufortKnotsRenderer:function(){this.renderer.defaultSymbol=this._getDefaultSymbol(new q([214,47,39]));this._addBreaks([0,1,3,6,10,16,21,27,33,40,47,55,63],[[40,146,199],[89,162,186],[129,179,171],[160,194,155],
[191,212,138],[218,230,119],[250,250,100],[252,213,83],[252,179,102],[250,141,52],[247,110,42],[240,71,29]])},_createBeaufortFeetRenderer:function(){var b=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];r.forEach(b,function(p,t){b[t]*=3.28084});this.renderer.defaultSymbol=this._getDefaultSymbol(new q([214,47,39]));this._addBreaks(b,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,
21]])},_createBeaufortMilesRenderer:function(){var b=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];r.forEach(b,function(p,t){b[t]*=2.23694});this.renderer.defaultSymbol=this._getDefaultSymbol(new q([214,47,39]));this._addBreaks(b,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])},_createBeaufortKilometersRenderer:function(){var b=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,
28.6,32.7];r.forEach(b,function(p,t){b[t]*=3.6});this.renderer.defaultSymbol=this._getDefaultSymbol(new q([214,47,39]));this._addBreaks(b,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])},_createCurrentMeterRenderer:function(){this.renderer.defaultSymbol=this._getDefaultSymbol(new q([177,177,177]));this._addBreaks([0,.5,1,1.5,2],[[78,26,153],[179,27,26],[202,128,26],[177,177,177]])},
_createCurrentKnotsRenderer:function(){this.renderer.defaultSymbol=this._getDefaultSymbol(new q([177,177,177]));this._addBreaks([0,.25,.5,1,1.5,2,2.5,3,3.5,4],[[0,0,0],[0,37,100],[78,26,153],[151,0,100],[179,27,26],[177,78,26],[202,128,26],[177,179,52],[177,177,177]])},_createSimpleScalarRenderer:function(){this.renderer.defaultSymbol=new a({url:l.toUrl(this.iconFolderPath+"scalar.png"),height:20,width:20,type:"esriPMS",angle:0})},_createWindBarbsRenderer:function(){var b=[],p;for(p=0;150>=p;p+=5)b.push(p);
var t="M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20;M25 0 L25 40 M25 35 L17.5 37.5;M25 0 L25 40 L10 45 L25 40;M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5;M25 0 L25 40 L10 45 L25 40 M25 35 L10 40;M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5;M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35;M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5;M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30;M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5;M25 0 L25 40 L10 40 L25 35;M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L10 15;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L10 15 M25 10 M25 5 L17.5 7.5".split(";");
var z=new a({url:l.toUrl(this.iconFolderPath+"windbarb.png"),height:20,width:20,type:"esriPMS",angle:0});this.renderer.defaultSymbol=z;for(p=0;p<b.length-1;p++)0===p?this.renderer.addBreak({minValue:b[p],maxValue:b[p+1],symbol:z}):this.renderer.addBreak({minValue:b[p],maxValue:b[p+1],symbol:(new g).setPath(t[p]).setOutline((new d).setWidth(1.5)).setSize(20).setColor(new q([0,0,0,255]))})},_getDefaultSymbol:function(b){return(new g).setPath("M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z").setOutline((new d).setWidth(0)).setSize(20).setColor(b||
new q([0,92,230]))},_getRotationInfo:function(b){var p=b&&b.rotationField||"Direction",t=(b&&b.flowRepresentation||e.FLOW_FROM)===e.FLOW_FROM;!b.style||b.style!==m.STYLE_OCEAN_CURRENT_KN&&b.style!==m.STYLE_OCEAN_CURRENT_M||(t=!t);return{field:function(z){z=z.attributes[p];return t?z:z+180},type:"geographic"}},_addBreaks:function(b,p){if(!w.isDefined(this.renderer))return Error("Invalid Renderer!");if(!(b&&p&&b.length&&p.length&&b.length>=p.length))return Error("AddBreaks: Input arguments break values and colors not valid");
var t;for(t=0;t<p.length;t++)this.renderer.addBreak({minValue:b[t],maxValue:b[t+1],symbol:this._getDefaultSymbol(new q(p[t]))})},toJson:function(){var b=x.mixin(this.inherited(arguments),{type:"vectorField",style:this.style,attributeField:this.attributeField,flowRepresentation:this.flowRepresentation,symbolTileSize:this.symbolTileSize,inputUnit:this.inputUnit,outputUnit:this.outputUnit});this.renderer&&this.renderer.defaultSymbol&&this.style===e.STYLE_SINGLE_ARROW&&(b.singleArrowSymbol=this.renderer.defaultSymbol.toJson());
return w.fixJson(b)}});x.mixin(e,m,{FLOW_FROM:"flow_from",FLOW_TO:"flow_to"});c("extend-esri")&&x.setObject("renderer.VectorFieldRenderer",e,h);return e})},"esri/renderers/DotDensityRenderer":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-construct dojo/has dojox/gfx/_base ../kernel ../lang ../Color ./Renderer ../symbols/PictureFillSymbol ../geometry/ScreenPoint ../geometry/Point".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,k){G=G(g,{declaredClass:"esri.renderer.DotDensityRenderer",
constructor:function(l){this.dotSize=l.dotSize||3;this.dotValue=l.dotValue;this.fields=l.fields;this.outline=l.outline;this.backgroundColor=l.backgroundColor;this.exactCount=l.exactCount||!0;this.dotShape=l.dotShape||"square";this.legendOptions=l.legendOptions;this._exactCountMinArea=1E4;this._currentMapScale=this._map=this._canvas=null;this._symbolMap={};this._currentGraphic=this._currentResolution=this._objectIdField=null;this._supportsCanvas=window.CanvasRenderingContext2D?!0:!1;window.CanvasRenderingContext2D||
console.log("The DotDensityRenderer requires a Canvas enabled Browser.  IE8 and less does not support Canvas.")},getSymbol:function(l){this._currentGraphic=l;if(!this._supportsCanvas)return null;this._map||(this._map=l.getLayer()._map,this._objectIdField=l.getLayer().objectIdField,this._currentMapScale=this._map.getScale(),this._currentResolution=this._map.extent.getWidth()/this._map.width,this._map.on("zoom-end",x.hitch(this,function(b){this._currentMapScale=this._map.getScale();this._currentResolution=
b.extent.getWidth()/this._map.width;this._symbolMap[this._currentMapScale]={}})));if(this._symbolMap[this._currentMapScale]&&this._symbolMap[this._currentMapScale][l.attributes[this._objectIdField]]){var m=this._symbolMap[this._currentMapScale][l.attributes[this._objectIdField]];var e=this._getShapeProperties(l);m.setOffset(e.dx,e.dy);return m}m=this._generateFieldsCount(this.fields,l.attributes,this.dotValue);e=this._getShapeProperties(l);if(!e.width||!e.height)return null;m=new a(this._generateImageSrc(e.width,
e.height,m,e.minXY,e.maxXY),this.outline,e.width,e.height);m.setOffset(e.dx,e.dy);this._symbolMap[this._currentMapScale]||(this._symbolMap[this._currentMapScale]={});return this._symbolMap[this._currentMapScale][l.attributes[this._objectIdField]]=m},_generateFieldsCount:function(l,m,e){var b;for(b=l.length-1;0<=b;b--){var p=m[l[b].name]/e;l[b].numPoints=Math.round(p)}return l},_getShapeProperties:function(l){var m=l.geometry.getExtent();m.contains(this._map.extent)&&(m=this._map.extent);var e=Math.ceil(m.getWidth()/
this._currentResolution);var b=Math.ceil(m.getHeight()/this._currentResolution);var p=this._map.toScreen(new k(m.xmin,m.ymin,m.spatialReference));m=this._map.toScreen(new k(m.xmax,m.ymax,m.spatialReference));l=l.getLayer().getNavigationTransform();return{minXY:p,maxXY:m,dx:(p.x-l.dx)%e,dy:(m.y-l.dy)%b,width:e,height:b}},_generateImageSrc:function(l,m,e,b,p,t){var z=this.dotSize,C;this._canvas?(this._canvas.width=l,this._canvas.height=m):this._canvas=this._initCanvas(l,m);var y=this._canvas.getContext("2d");
if(t=t||this.backgroundColor)y.fillStyle=t.toCss(!0),y.fillRect(0,0,l,m),y.fill();for(t=e.length-1;0<=t;t--)for(y.fillStyle=e[t].color.toCss(!0),C=e[t].numPoints-1;0<=C;C--){var D=this._getRandomPoint(l,m,b,p);"square"===this.dotShape?y.fillRect(D.x,D.y,z,z):"circle"===this.dotShape&&(y.beginPath(),y.arc(D.x,D.y,z/2,0,2*Math.PI,!0));y.fill()}return this._canvas.toDataURL()},_initCanvas:function(l,m){l=r.create("canvas",{id:"canvas",width:l+"px",height:m+"px",style:"position: absolute; left: -10000px; top: 0px;"},
null);document.body.appendChild(l);return l},_getRandomInt:function(l,m){return Math.floor(Math.random()*(m-l+1)+l)},_getRandomPoint:function(l,m,e,b){var p={},t=this.outline&&this.outline.width?this.outline.width:0;if(!0===this.exactCount&&l*m>this._exactCountMinArea){l=!1;do p.x=this._getRandomInt(e.x,b.x),p.y=this._getRandomInt(b.y,e.y),l=new d(p.x,p.y),l=this._checkPointShapeBounds(l,this.dotSize+t,this._currentGraphic.geometry),!0===l&&(p.x-=e.x,p.y-=b.y);while(!1===l)}else p.x=this._getRandomInt(0,
l),p.y=this._getRandomInt(0,m);return p},_checkPointShapeBounds:function(l,m,e){var b=null;b=!1;var p=!0,t=0;do{switch(t){case 1:l.x+=m;break;case 2:l.y+=m;break;case 3:l.x-=m}b=this._map.toMap(l);b=e.contains(b);!1===b&&(p=!1);t+=1}while(3>=t&&!0===p);return b},setDotSize:function(l){0<l&&(this.dotSize=l)},setDotValue:function(l){0<l&&(this.dotValue=l)},setOutline:function(l){this.outline=l},setBackgroundColor:function(l){this.backgroundColor=l},toJson:function(){var l=x.mixin(this.inherited(arguments),
{type:"dotDensity",backgroundColor:f.toJsonColor(this.backgroundColor),dotShape:this.dotShape,dotSize:0<this.dotSize?w.px2pt(this.dotSize):0,dotValue:this.dotValue,fields:c.map(this.fields,function(m){return n.fixJson({color:f.toJsonColor(m.color),name:m.name})}),legendOptions:this.legendOptions&&n.fixJson({backgroundColor:f.toJsonColor(this.legendOptions.backgroundColor),dotCoverage:this.legendOptions.dotCoverage,outline:this.legendOptions.outline&&this.legendOptions.outline.toJson(),valueUnit:this.legendOptions.valueUnit}),
outline:this.outline&&this.outline.toJson()});return n.fixJson(l)}});h("extend-esri")&&x.setObject("renderer.DotDensityRenderer",G,q);return G})},"esri/renderers/ScaleDependentRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ./Renderer".split(" "),function(G,x,c,r,h,w,q){G=G(q,{declaredClass:"esri.renderer.ScaleDependentRenderer",constructor:function(n){this.setRendererInfos(n&&n.rendererInfos||[])},setRendererInfos:function(n){this.rendererInfos=
n;this._setRangeType();return this},getSymbol:function(n){var f=this.getRendererInfo(n);return f&&f.renderer&&f.renderer.getSymbol(n)},getRendererInfo:function(n){n=n.getLayer().getMap();return"zoom"===this.rangeType?this.getRendererInfoByZoom(n.getZoom()):this.getRendererInfoByScale(n.getScale())},getRendererInfoByZoom:function(n){var f=this.rendererInfos,g,a=0;do{var d=f[a];n>=d.minZoom&&n<=d.maxZoom&&(g=d);a++}while(!g&&a<f.length);return g},getRendererInfoByScale:function(n){var f=this.rendererInfos,
g,a=0;do{var d=f[a];var k=d.minScale;var l=d.maxScale;var m=!k;var e=!l;!m&&n<=k&&(m=!0);!e&&n>=l&&(e=!0);m&&e&&(g=d);a++}while(!g&&a<f.length);return g},addRendererInfo:function(n){var f=0,g=this.rendererInfos,a=n.hasOwnProperty("minZoom")?"minZoom":"minScale",d=g.length;do{var k=g[f];if(d===f||n[a]<k[a]){g.splice(f,0,n);this._setRangeType();var l=!0}f++}while(!l&&f<d);return this},_setRangeType:function(){var n=this.rendererInfos;if(n=n&&n[0])this.rangeType=n.hasOwnProperty("minZoom")?"zoom":n.hasOwnProperty("minScale")?
"scale":""},toJson:function(){if("zoom"===this.rangeType)return null;var n=this.rendererInfos||[],f=n[0]&&n[0].minScale;n=c.mixin(this.inherited(arguments),{type:"scaleDependent",minScale:0<f?f:0,rendererInfos:x.map(n,function(g){return w.fixJson({maxScale:0<g.maxScale?g.maxScale:0,renderer:g.renderer&&g.renderer.toJson()})})});return w.fixJson(n)}});r("extend-esri")&&c.setObject("renderer.ScaleDependentRenderer",G,h);return G})},"esri/renderers/HeatmapRenderer":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-construct ../sniff ../kernel ../lang ../symbols/PictureMarkerSymbol ../Color ./Renderer".split(" "),
function(G,x,c,r,h,w,q,n,f,g){G=G([g],{declaredClass:"esri.renderer.HeatmapRenderer",colors:null,blurRadius:10,maxPixelIntensity:100,minPixelIntensity:0,field:null,fieldOffset:null,colorStops:null,constructor:function(a){(this._supportsCanvas=window.CanvasRenderingContext2D?!0:!1)?("string"==typeof a&&(a=JSON.parse(a)),x.mixin(this,a),this._canvas=null,this.colors||this.colorStops||(this.colorStops=[{ratio:0,color:"rgba(255, 140, 0, 0)"},{ratio:.75,color:"rgba(255, 140, 0, 1)"},{ratio:.9,color:"rgba(255, 0,   0, 1)"}]),
this.gradient=this._generateGradient(this.colorStops||this.colors)):console.log("The HeatmapRenderer requires a Canvas enabled Browser.  IE8 and less does not support Canvas.")},getSymbol:function(a){if(!this._supportsCanvas)return!1;var d=a.attributes.imageData;a=a.attributes.size;if(!a)return null;var k=this._getContext(a[0],a[1]),l=k.getImageData(0,0,a[0],a[1]);window.ArrayBuffer&&d instanceof ArrayBuffer?d=window.Uint8ClampedArray?new Uint8ClampedArray(d):new Uint8Array(d):d.BYTES_PER_ELEMENT&&
1!==d.BYTES_PER_ELEMENT&&(d=window.Uint8ClampedArray?new Uint8ClampedArray(d.buffer):new Uint8Array(d.buffer));if(window.CanvasPixelArray&&l.data instanceof window.CanvasPixelArray)for(var m=l.data,e=m.length;e--;)m[e]=d[e];else l.data.set(d);k.putImageData(l,0,0);return new n(k.canvas.toDataURL(),a[0],a[1])},setColors:function(a){a&&(a instanceof Array||a.colors)&&(this.gradient=this._generateGradient(a.colors||a),this.colors=a);return this},setColorStops:function(a){a&&(a instanceof Array||a.colorStops)&&
(this.gradient=this._generateGradient(a.colorStops||a),this.colorStops=a);return this},setMaxPixelIntensity:function(a){this.maxPixelIntensity=a;return this},setMinPixelIntensity:function(a){this.minPixelIntensity=a;return this},setField:function(a){this.field=a;return this},setFieldOffset:function(a){this.fieldOffset=a;return this},setBlurRadius:function(a){this.blurRadius=a;return this},getStats:function(){},getHistogramData:function(){},toJson:function(){var a=x.mixin(this.inherited(arguments),
{type:"heatmap",blurRadius:this.blurRadius,colorStops:this._colorsToStops(this.colorStops||this.colors),maxPixelIntensity:this.maxPixelIntensity,minPixelIntensity:this.minPixelIntensity,field:this.field});null!=this.fieldOffset&&(a.fieldOffset=this.fieldOffset);c.forEach(a.colorStops,function(d){d.color=f.toJsonColor(d.color)});return q.fixJson(a)},_getContext:function(a,d){this._canvas?(this._canvas.width=a,this._canvas.height=d):this._canvas=this._initCanvas(a,d);return this._canvas.getContext("2d")},
_initCanvas:function(a,d){var k=r.create("canvas",{id:"hm_canvas-"+Math.floor(1E3*Math.random()),style:"position: absolute; left: 0px; top: -10000px;"},null);k.width=a;k.height=d;document.body.appendChild(k);return k},_generateGradient:function(a,d){d||(d=512);a=this._colorsToStops(a);for(var k=this._getContext(1,d||512),l=k.createLinearGradient(0,0,0,d),m=0,e;m<a.length;m++)e=a[m],l.addColorStop(e.ratio,e.color.toCss(!0));k.fillStyle=l;k.fillRect(0,0,1,d);return k.getImageData(0,0,1,d).data},_colorsToStops:function(a){var d=
[];if(!a[0])return d;if(null!=a[0].ratio)d=c.map(a,function(p){return{ratio:p.ratio,color:this._toColor(p.color)}},this);else if(null!=a[0].value){var k=Infinity;d=-Infinity;var l=0,m;for(m=0;m<a.length;m++){var e=a[m].value;e<k&&(k=e);e>d&&(d=e)}l=d-k;this.maxPixelIntensity=d;this.minPixelIntensity=k;d=c.map(a,function(p){var t=p.value;p=this._toColor(p.color);return{value:t,ratio:(t-k)/l,color:p}},this)}else{var b=a.length-1;d=c.map(a,function(p,t){return{color:this._toColor(p),ratio:t/b}},this)}return d},
_toColor:function(a){a.toRgba||a.declaredClass||(a=new f(a));return a}});h("extend-esri")&&x.setObject("renderer.HeatmapRenderer",G,w);return G})},"esri/renderers/ShadedReliefRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../layers/RasterFunction ./colorRampUtils".split(" "),function(G,x,c,r,h,w,q,n){G=G(null,{declaredClass:"esri.renderer.ShadedReliefRenderer",constructor:function(f){f=f||{};this.hillshadeType=f.hillshadeType||"traditional";
this.azimuth=null!=f.azimuth?f.azimuth:315;this.altitude=null!=f.altitude?f.altitude:45;this.zFactor=f.zFactor||1;this.scalingType=f.scalingType||"none";this.pixelSizePower=null!=f.pixelSizePower?f.pixelSizePower:.664;this.pixelSizeFactor=null!=f.pixelSizeFactor?f.pixelSizeFactor:.024;this.removeEdgeEffect=f.removeEdgeEffect||!1;this.colorRamp=n.fromJson(f.colorRamp)},toJson:function(){var f={type:"rasterShadedRelief",hillshadeType:this.hillshadeType,azimuth:this.azimuth,altitude:this.altitude,zFactor:this.zFactor,
scalingType:this.scalingType,pixelSizePower:this.pixelSizePower,pixelSizeFactor:this.pixelSizeFactor,colorRamp:this.colorRamp&&this.colorRamp.toJson()};return w.fixJson(f)},toRenderingRule:function(f){}});r("extend-esri")&&c.setObject("renderer.ShadedReliefRenderer",G,h);return G})},"esri/renderers/ColormapRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../symbols/jsonUtils ./Renderer ./arcadeUtils".split(" "),function(G,x,c,r,h,w,q,n,f){G=
G(n,{declaredClass:"esri.renderer.ColormapRenderer",constructor:function(g){this.colormapInfos=g&&g.colormapInfos},toJson:function(){var g=w.fixJson;var a={type:"rasterColormap",colormapInfos:x.map(this.colormapInfos||[],function(d,k){var l={};d.color&&null!==d.color&&3<=d.color.length&&(l.color=d.color,l.value=d.value||k,l.label=(d.label||k)+"");return g(l)})};a=c.mixin(this.inherited(arguments),a);return g(a)}});r("extend-esri")&&c.setObject("renderer.ColormapRenderer",G,h);return G})},"esri/renderers/arcadeUtils":function(){define(["dojo/_base/lang",
"dojo/has","../kernel","../support/expressionUtils"],function(G,x,c,r){x("extend-esri")&&G.setObject("renderer.arcadeUtils",r,c);return r})},"esri/utils":function(){define("./domUtils ./lang ./urlUtils ./request ./tileUtils ./graphicsUtils ./deferredUtils ./layerUtils ./geometry/normalizeUtils".split(" "),function(){return{}})},"esri/graphicsUtils":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/has","./kernel","./geometry/Extent"],function(G,x,c,r,h){var w={graphicsExtent:function(q){if(!q||
!q.length)return null;var n=null,f,g=q.length;for(f=0;f<g;f++){var a=q[f].geometry;if(a){var d=a.getExtent();d||"point"!==a.type||null==a.x||null==a.y||(d=new h(a.x,a.y,a.x,a.y,a.spatialReference));d&&(n=n?n.union(d):d)}}return 0>n.getWidth()&&0>n.getHeight()?null:n},getGeometries:function(q){return x.map(q,function(n){return n.geometry})},_encodeGraphics:function(q,n){return x.map(q,function(f,g){f=f.toJson();var a={};f.geometry&&(g=n&&n[g],a.geometry=g&&g.toJson()||f.geometry);f.attributes&&(a.attributes=
f.attributes);return a})}};c("extend-esri")&&G.mixin(r,w);return w})},"esri/layers/graphics":function(){define(["./GraphicsLayer","../graphic","../renderer"],function(){return{}})},"esri/layers/agstiled":function(){define(["./agscommon","./ArcGISTiledMapServiceLayer"],function(){return{}})},"esri/layers/agscommon":function(){define("./ArcGISMapServiceLayer ./LayerInfo ./TimeInfo ./LayerTimeOptions ./TimeReference ./Field ./Domain ./RangeDomain ./CodedValueDomain ./InheritedDomain ./LayerSource ./LayerMapSource ./LayerDataSource ./DataSource ./TableDataSource ./QueryDataSource ./JoinDataSource ./RasterDataSource ./DynamicLayerInfo ./LayerDrawingOptions ../geometry ../utils".split(" "),
function(){return{}})},"esri/layers/InheritedDomain":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","./Domain"],function(G,x,c,r,h){G=G([h],{declaredClass:"esri.layers.InheritedDomain"});c("extend-esri")&&x.setObject("layers.InheritedDomain",G,r);return G})},"esri/layers/LayerSource":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(G,x,c,r){G=G(null,{declaredClass:"esri.layers.LayerSource",type:null,constructor:function(h){h&&
x.mixin(this,h)},toJson:function(){}});c("extend-esri")&&x.setObject("layers.LayerSource",G,r);return G})},"esri/layers/LayerMapSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./LayerSource".split(" "),function(G,x,c,r,h,w){G=G(w,{declaredClass:"esri.layers.LayerMapSource",type:"mapLayer",toJson:function(){return h.fixJson({type:"mapLayer",mapLayerId:this.mapLayerId,gdbVersion:this.gdbVersion})}});c("extend-esri")&&x.setObject("layers.LayerMapSource",G,r);
return G})},"esri/layers/LayerDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./LayerSource ./TableDataSource ./QueryDataSource ./JoinDataSource ./RasterDataSource".split(" "),function(G,x,c,r,h,w,q,n,f,g){G=G(w,{declaredClass:"esri.layers.LayerDataSource",type:"dataLayer",constructor:function(a){if(a&&a.dataSource){switch(a.dataSource.type){case "table":a=new q(a.dataSource);break;case "queryTable":a=new n(a.dataSource);break;case "joinTable":a=new f(a.dataSource);
break;case "raster":a=new g(a.dataSource);break;default:a=a.dataSource}this.dataSource=a}},toJson:function(){var a={type:"dataLayer",dataSource:this.dataSource&&this.dataSource.toJson()};return h.fixJson(a)}});c("extend-esri")&&x.setObject("layers.LayerDataSource",G,r);return G})},"esri/layers/TableDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./DataSource".split(" "),function(G,x,c,r,h,w){G=G(w,{declaredClass:"esri.layers.TableDataSource",toJson:function(){return h.fixJson({type:"table",
workspaceId:this.workspaceId,dataSourceName:this.dataSourceName,gdbVersion:this.gdbVersion})}});c("extend-esri")&&x.setObject("layers.TableDataSource",G,r);return G})},"esri/layers/DataSource":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(G,x,c,r){G=G(null,{declaredClass:"esri.layers.DataSource",constructor:function(h){h&&x.mixin(this,h)},toJson:function(){}});c("extend-esri")&&x.setObject("layers.DataSource",G,r);return G})},"esri/layers/QueryDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./DataSource ../SpatialReference".split(" "),
function(G,x,c,r,h,w,q){G=G(w,{declaredClass:"esri.layers.QueryDataSource",constructor:function(n){n&&(n.oidFields&&x.isString(n.oidFields)&&(this.oidFields=n.oidFields.split(",")),n.spatialReference&&(this.spatialReference=new q(n.spatialReference)))},toJson:function(){var n={type:"queryTable",workspaceId:this.workspaceId,query:this.query,oidFields:this.oidFields&&this.oidFields.join(),spatialReference:this.spatialReference&&this.spatialReference.toJson()};if(this.geometryType){var f="point"===this.geometryType.toLowerCase()?
"esriGeometryPoint":"multipoint"===this.geometryType.toLowerCase()?"esriGeometryMultipoint":"polyline"===this.geometryType.toLowerCase()?"esriGeometryPolyline":"polygon"===this.geometryType.toLowerCase()?"esriGeometryPolygon":this.geometryType;n.geometryType=f}return h.fixJson(n)}});c("extend-esri")&&x.setObject("layers.QueryDataSource",G,r);return G})},"esri/layers/JoinDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./DataSource ./LayerMapSource ./TableDataSource ./QueryDataSource ./RasterDataSource".split(" "),
function(G,x,c,r,h,w,q,n,f,g){var a=G(w,{declaredClass:"esri.layers.JoinDataSource",constructor:function(d){d&&(d.leftTableSource&&(this.leftTableSource=this._createLayerSource(d.leftTableSource)),d.rightTableSource&&(this.rightTableSource=this._createLayerSource(d.rightTableSource)))},_createLayerSource:function(d){if("mapLayer"===d.type)var k=new q(d);else{k={type:"dataLayer"};switch(d.dataSource.type){case "table":var l=new n(d.dataSource);break;case "queryTable":l=new f(d.dataSource);break;case "joinTable":l=
new a(d.dataSource);break;case "raster":l=new g(d.dataSource);break;default:l=d.dataSource}k.dataSource=l;k.toJson=function(){var m={type:"dataLayer",dataSource:l.toJson()};return h.fixJson(m)}}return k},toJson:function(){var d={type:"joinTable",leftTableSource:this.leftTableSource&&this.leftTableSource.toJson(),rightTableSource:this.rightTableSource&&this.rightTableSource.toJson(),leftTableKey:this.leftTableKey,rightTableKey:this.rightTableKey};var k="left-outer-join"===this.joinType.toLowerCase()?
"esriLeftOuterJoin":"left-inner-join"===this.joinType.toLowerCase()?"esriLeftInnerJoin":this.joinType;d.joinType=k;return h.fixJson(d)}});c("extend-esri")&&x.setObject("layers.JoinDataSource",a,r);return a})},"esri/layers/RasterDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./DataSource".split(" "),function(G,x,c,r,h,w){G=G(w,{declaredClass:"esri.layers.RasterDataSource",toJson:function(){return h.fixJson({type:"raster",workspaceId:this.workspaceId,dataSourceName:this.dataSourceName})}});
c("extend-esri")&&x.setObject("layers.RasterDataSource",G,r);return G})},"esri/layers/DynamicLayerInfo":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./LayerInfo ./LayerMapSource ./LayerDataSource".split(" "),function(G,x,c,r,h,w,q,n){G=G(w,{declaredClass:"esri.layers.DynamicLayerInfo",defaultVisibility:!0,parentLayerId:-1,maxScale:0,minScale:0,constructor:function(f){f&&(f.source?f="mapLayer"===f.source.type?new q(f.source):new n(f.source):(f=new q,f.mapLayerId=
this.id),this.source=f)},toJson:function(){var f=this.inherited(arguments);f.source=this.source&&this.source.toJson();return h.fixJson(f)}});c("extend-esri")&&x.setObject("layers.DynamicLayerInfo",G,r);return G})},"esri/layers/LayerDrawingOptions":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../renderers/jsonUtils ./LabelClass".split(" "),function(G,x,c,r,h,w,q,n){G=G(null,{declaredClass:"esri.layers.LayerDrawingOptions",constructor:function(f){if(f&&
(x.mixin(this,f),f.renderer&&(this.renderer=q.fromJson(f.renderer)),f.labelingInfo&&0<f.labelingInfo.length)){this.labelingInfo=[];var g;c.forEach(f.labelingInfo,function(a){g=new n(a);this.labelingInfo.push(g)},this)}},toJson:function(){var f={renderer:this.renderer&&this.renderer.toJson(),transparency:this.transparency,scaleSymbols:this.scaleSymbols,showLabels:this.showLabels};this.labelingInfo&&0<this.labelingInfo.length&&(f.labelingInfo=[],c.forEach(this.labelingInfo,function(g){f.labelingInfo.push(g.toJson())}));
return w.fixJson(f)}});r("extend-esri")&&x.setObject("layers.LayerDrawingOptions",G,h);return G})},"esri/layers/LabelClass":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ../lang ../symbols/TextSymbol ../symbols/ShieldLabelSymbol".split(" "),function(G,x,c,r,h,w,q,n){var f=RegExp("__begin__","ig"),g=RegExp("__end__","ig"),a=RegExp("^__begin__","i"),d=RegExp("__end__$","i");G=G(null,{declaredClass:"esri.layers.LabelClass",labelPlacement:null,labelExpression:null,
format:null,fieldInfos:null,useCodedValues:null,symbol:null,maxScale:0,minScale:0,where:null,sizeInfo: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(k){k&&(x.mixin(this,k),this._labelPlacementLookup.hasOwnProperty(this.labelPlacement)||
(this.labelPlacement=w.valueOf(this._labelPlacementLookup,k.labelPlacement)),k.format&&(this.format=k.format),k.fieldInfos&&(this.fieldInfos=k.fieldInfos),k.symbol&&(this.symbol="esriSHD"===k.symbol.type?new n(k.symbol):new q(k.symbol)),k=this.sizeInfo)&&(k.minSize&&(k.minSize=r.pt2px(k.minSize)),k.maxSize&&(k.maxSize=r.pt2px(k.maxSize)))},getSymbol:function(){return this.symbol},toJson:function(){var k=this.sizeInfo;k&&(k=x.mixin({},k),k.minSize&&(k.minSize=r.px2pt(k.minSize)),k.maxSize&&(k.maxSize=
r.px2pt(k.maxSize)));var l=w.fixJson(this.labelExpressionInfo&&x.clone(this.labelExpressionInfo));this._processLabelExpressionInfo(l);k={name:this.name,labelExpression:this.labelExpression,labelExpressionInfo:l,format:this.format||void 0,fieldInfos:this.fieldInfos||void 0,useCodedValues:this.useCodedValues,maxScale:this.maxScale,minScale:this.minScale,where:this.where,sizeInfo:k||void 0,labelPlacement:this._labelPlacementLookup.hasOwnProperty(this.labelPlacement)?this._labelPlacementLookup[this.labelPlacement]:
this.labelPlacement,symbol:this.symbol&&this.symbol.toJson()};return w.fixJson(k)},_processLabelExpressionInfo:function(k){k&&k.value&&(k.expression=this._convertTemplatedStringToArcade(k.value))},_convertTemplatedStringToArcade:function(k){if(k){var l=x.replace(k,function(m,e){return'__begin__$feature["'+e+'"]__end__'});l=a.test(l)?l.replace(a,""):'"'+l;l=d.test(l)?l.replace(d,""):l+'"';l=l.replace(f,'" + ').replace(g,' + "')}return l}});c("extend-esri")&&x.setObject("layers.LabelClass",G,h);return G})},
"esri/symbols/ShieldLabelSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang ../urlUtils ./MarkerSymbol ./Font".split(" "),function(G,x,c,r,h,w,q,n,f){var g={url:"",width:12,height:12,angle:0,xoffset:0,yoffset:0};G=G(n,{declaredClass:"esri.symbol.ShieldLabelSymbol",type:"shieldlabelsymbol",color:[255,255,255,1],width:32,height:32,font:r.defaultFont,constructor:function(a,d,k,l,m){a?x.isString(a)?(this.url=a,d&&(this.color=d),k&&(this.width=k),
l&&(this.height=l),void 0!==m&&(this.font=m)):(this.width=r.pt2px(a.width),this.height=r.pt2px(a.height),d=a.imageData,9>c("ie")||!d||(k=this.url,this.url="data:"+(a.contentType||"image")+";base64,"+d,this.imageData=k)):x.mixin(this,g)},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,d=this.imageData;if(0===a.indexOf("data:")){var k=a;a=d;d=k.indexOf(";base64,")+8;d=k.substr(d)}a=
q.getAbsoluteUrl(a);k=r.px2pt(this.width);k=isNaN(k)?void 0:k;var l=r.px2pt(this.height);l=isNaN(l)?void 0:l;a=w.fixJson(x.mixin(this.inherited("toJson",arguments),{type:"esriSHD",url:a,imageData:d,contentType:this.contentType,width:k,height:l}));this.font?(d=new f(this.font),a.font=d.toJson()):a.font=null;delete a.size;a.imageData||delete a.imageData;return a}});G.defaultProps=g;c("extend-esri")&&(x.setObject("symbol.ShieldLabelSymbol",G,h),h.symbol.defaultShieldLabelSymbol=g);return G})},"esri/layers/agsdynamic":function(){define(["./agscommon",
"./ArcGISDynamicMapServiceLayer","../_time"],function(){return{}})},"esri/layers/ArcGISDynamicMapServiceLayer":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/json dojo/sniff dojo/io-query ../kernel ../config ../lang ../request ../urlUtils ../layerUtils ../geometry/scaleUtils ./DynamicMapServiceLayer ./ArcGISMapServiceLayer ./TimeInfo ./LayerTimeOptions ./ImageParameters ./DynamicLayerInfo ./LayerMapSource".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,
t,z){G=G([l,m],{declaredClass:"esri.layers.ArcGISDynamicMapServiceLayer",_eventMap:{"visible-layers-change":["visibleLayers"]},constructor:function(C,y,D){C=y&&y.imageParameters;var B=x.hitch;if(C){var u=C.layerDefinitions;u&&this.setLayerDefinitions(u);C.layerOption===p.LAYER_OPTION_SHOW&&(this.visibleLayers=[].concat(C.layerIds),this.onVisibleLayersChange(this.visibleLayers))}this._setIsPNG32=B(this,this._setIsPNG32);this.dpi=C&&C.dpi||96;this.imageFormat=C&&C.format||"png8";this.imageTransparency=
C&&!1===C.transparent?!1:!0;this._setIsPNG32();this.gdbVersion=y&&y.gdbVersion;this._params.gdbVersion=this.gdbVersion;u=C&&C.layerDefinitions;x.mixin(this._params,this._url.query,{dpi:this.dpi,transparent:this.imageTransparency,format:this.imageFormat},C?C.toJson():{});u&&(this._params.layerDefs=u);this.getImageUrl=B(this,this.getImageUrl);this._initLayer=B(this,this._initLayer);this._load=B(this,this._load);this.useMapImage=y?y.useMapImage:!1;this._loadCallback=y&&y.loadCallback;(y=y&&y.resourceInfo)?
this._initLayer(y):(void 0===D||!1===D)&&this._load();this.registerConnectEvents()},disableClientCaching:!1,layerDefinitions:null,_initLayer:function(C,y){this.inherited(arguments);C.timeInfo&&(this.timeInfo=new e(C.timeInfo));this.loaded=!0;this.onLoad(this);var D=this._loadCallback;D&&(delete this._loadCallback,D(this))},getImageUrl:function(C,y,D,B){var u=this._url.path+"/export",E=this._params,v=E.token=this._getToken(),A=C.spatialReference.wkid||r.toJson(C.spatialReference.toJson()),F=this._errorHandler;
delete E._ts;x.mixin(E,{bbox:C.xmin+","+C.ymin+","+C.xmax+","+C.ymax,bboxSR:A,imageSR:A,size:y+","+D},this.disableClientCaching?{_ts:(new Date).getTime()}:{});E.layerDefs&&(C=d._serializeLayerDefinitions(E.layerDefs,10.5<=this.version),E=x.mixin({},E),delete E.layerDefs,E.layerDefs=C);C=a.addProxy(a.normalize(u)+"?"+w.objectToQuery(x.mixin({},E,{f:"image"})));C.length>n.defaults.io.postLength||this.useMapImage?this._jsonRequest=g({url:u,content:x.mixin(E,{f:"json"}),callbackParamName:"callback",load:function(I){I.imageData?
I="data:"+(I.contentType||"image")+";base64,"+I.imageData:(I=I.href,v&&(I+=-1===I.indexOf("?")?"?token\x3d"+v:"\x26token\x3d"+v),I=a.addProxy(I));B(I)},error:F}):B(C)},_setIsPNG32:function(){var C=this.imageFormat.toLowerCase(),y=h("ie");this.isPNG32=y&&6===y&&("png32"===C||"png24"===C)&&this.imageTransparency},_setTime:function(C){var y=this.timeInfo;C=this._params.time=C?C.toJson().join(","):null;if(10.02>this.version&&y)if(C)this._params.layerTimeOptions=d._serializeTimeOptions(this.layerTimeOptions);
else{var D=this.layerInfos;if(D){var B=this.layerTimeOptions,u=B?B.slice(0):[],E=[];c.forEach(D,function(v){v.subLayerIds||E.push(v.id)});E.length&&(c.forEach(E,function(v){if(!u[v]){var A=new b;A.useTime=!1;u[v]=A}}),this._params.layerTimeOptions=d._serializeTimeOptions(u,E))}}10.02<=this.version&&y&&!C&&!y.hasLiveData&&(this._params.time="null,null")},setDPI:function(C,y){this.dpi=this._params.dpi=C;y||this.refresh(!0)},setImageFormat:function(C,y){this.imageFormat=this._params.format=C;this._setIsPNG32();
y||this.refresh(!0)},setImageTransparency:function(C,y){this.imageTransparency=this._params.transparent=C;this._setIsPNG32();y||this.refresh(!0)},setVisibleLayers:function(C,y){this.visibleLayers=C;this._params.layers=p.LAYER_OPTION_SHOW+":"+(C.length?C.join():"-1");this._updateDynamicLayers();y||this.refresh(!0);this.onVisibleLayersChange(this.visibleLayers)},onVisibleLayersChange:function(){},setDefaultVisibleLayers:function(C){this.visibleLayers=this._defaultVisibleLayers;this._params.layers=null;
this._updateDynamicLayers();C||this.refresh(!0);this.onVisibleLayersChange(this.visibleLayers)},setLayerDefinitions:function(C,y){this.layerDefinitions=C;this._params.layerDefs=C;this._updateDynamicLayers();y||this.refresh(!0)},setDefaultLayerDefinitions:function(C){this.layerDefinitions=this._params.layerDefs=null;this._updateDynamicLayers();C||this.refresh(!0)},setDisableClientCaching:function(C){this.disableClientCaching=C},setLayerTimeOptions:function(C,y){this.layerTimeOptions=C;this._params.layerTimeOptions=
d._serializeTimeOptions(C);this._updateDynamicLayers();y||this.refresh(!0)},refresh:function(C){if(!0===C)this.inherited(arguments);else{var y=this.disableClientCaching;this.disableClientCaching=!0;this.inherited(arguments);this.disableClientCaching=y}},setLayerDrawingOptions:function(C,y){this.layerDrawingOptions=C;this._updateDynamicLayers();y||this.refresh(!0)},setDynamicLayerInfos:function(C,y){C&&0<C.length?(this.dynamicLayerInfos=C,this.visibleLayers=d._getDefaultVisibleLayers(C),this.onVisibleLayersChange(this.visibleLayers)):
this.dynamicLayerInfos=this.layerDrawingOptions=null;this._updateDynamicLayers();y||this.refresh(!0)},createDynamicLayerInfosFromLayerInfos:function(){var C=[],y;c.forEach(this.layerInfos,function(D){y=new t(D.toJson());y.source=new z({mapLayerId:D.id});C.push(y)});return C},_onDynamicLayersChange:function(){},_updateDynamicLayers:function(){if(this.dynamicLayerInfos&&0<this.dynamicLayerInfos.length||this.layerDrawingOptions&&0<this.layerDrawingOptions.length){this.dynamicLayerInfos&&0!==this.dynamicLayerInfos.length||
(this.dynamicLayerInfos=this.createDynamicLayerInfosFromLayerInfos());var C=this._map&&k.getScale(this._map);C=this._getDynLayerObjs(C);C=r.toJson(C);this._params.dynamicLayers&&this._params.dynamicLayers.length===C.length&&this._params.dynamicLayers===C||(this._params.dynamicLayers=C,this._onDynamicLayersChange(this._params.dynamicLayers))}else this._params.dynamicLayers?(this._params.dynamicLayers=null,this._onDynamicLayersChange(null)):this._params.dynamicLayers=null},_getDynLayerObjs:function(C){var y=
this.dynamicLayerInfos,D=[],B=this.visibleLayers,u=C?d._getLayersForScale(C,y):B;c.forEach(y,function(E){if(!E.subLayerIds){var v=E.id;if(-1!==c.indexOf(B,v)&&-1!==c.indexOf(u,v)){var A={id:v,name:E.name};A.source=E.source&&E.source.toJson();var F;this.layerDefinitions&&this.layerDefinitions[v]&&(F=this.layerDefinitions[v]);F&&(A.definitionExpression=F);var I;this.layerDrawingOptions&&this.layerDrawingOptions[v]&&(I=this.layerDrawingOptions[v]);I&&(F=I.toJson(),this._fixMarkerColor(F.renderer),A.drawingInfo=
F);var N;this.layerTimeOptions&&this.layerTimeOptions[v]&&(N=this.layerTimeOptions[v]);N&&(A.layerTimeOptions=N.toJson());A.minScale=E.minScale||0;A.maxScale=E.maxScale||0;D.push(A)}}},this);return D},_fixMarkerColor:function(C){c.forEach(this._getAllSimpleMarkerSymbols(C),function(y){if(!y.color){var D=[0,0,0,0],B=y.outline&&y.outline.color;"esriSMSX"!==y.style&&"esriSMSCross"!==y.style||!B||(D=B.slice(0));y.color=D}})},_getAllSimpleMarkerSymbols:function(C){return c.filter(this._getAllSymbols(C),
function(y){return"esriSMS"===y.type})},_getAllSymbols:function(C){var y=[];C&&(y.push(C.symbol),y.push(C.defaultSymbol),c.forEach(C.uniqueValueInfos||C.classBreakInfos,function(D){y.push(D.symbol)}),y=c.filter(y,f.isDefined));return y},_onExtentChangeHandler:function(C,y,D){D&&this._updateDynamicLayers();this.inherited(arguments)},_setMap:function(C,y,D){this._map=C;this._updateDynamicLayers();return this.inherited(arguments)},onGDBVersionChange:function(){},setGDBVersion:function(C,y){this.gdbVersion=
C;this._params.gdbVersion=C;this.onGDBVersionChange();y||this.refresh(!0)},exportMapImage:function(C,y){var D=x.hitch(this,function(){var B=n.defaults.map,u=C&&C.layerDefinitions;C=C?C.toJson(this.normalization):{};u&&(C.layerDefs=u);C=x.mixin({size:B.width+","+B.height},this._params,C,{f:"json"});delete C._ts;C.layerDefs&&(B=d._serializeLayerDefinitions(C.layerDefs,10.5<=this.version),delete C.layerDefs,C.layerDefs=B);this._exportMapImage(this._url.path+"/export",C,y)});if(this.loaded)D();else this.on("load",
D)}});h("extend-esri")&&x.setObject("layers.ArcGISDynamicMapServiceLayer",G,q);return G})},"esri/layers/DynamicMapServiceLayer":function(){define("dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/dom-construct dojo/dom-style dojox/gfx/matrix ../kernel ../config ../sniff ../request ../domUtils ./layer ./MapImage".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,k){var l=n.defaults.map.zoomDuration;G=G(d,{declaredClass:"esri.layers.DynamicMapServiceLayer",_eventMap:{"map-image-export":["mapImage"]},
constructor:function(m,e){this.useMapTime=e&&e.hasOwnProperty("useMapTime")?!!e.useMapTime:!0;this.extentProcessor=e&&e.extentProcessor;m=c.hitch;this._exportMapImageHandler=m(this,this._exportMapImageHandler);this._imgSrcFunc=m(this,this._imgSrcFunc);this._divAlphaImageFunc=m(this,this._divAlphaImageFunc);this._tileLoadHandler=m(this,this._tileLoadHandler);this._tileErrorHandler=m(this,this._tileErrorHandler);this.registerConnectEvents()},opacity:1,isPNG32:!1,_setMap:function(m,e,b){this.inherited(arguments);
this._map=m;var p=this._div=r.create("div",null,e),t=q._css.names,z={position:"absolute",width:m.width+"px",height:m.height+"px",overflow:"visible",opacity:this.opacity},C=f("ie"),y=x.connect,D=m.__visibleDelta;8===C&&delete z.opacity;"css-transforms"===m.navigationMode?(this._isChildLayer||(z[t.transform]=q._css.translate(D.x,D.y),h.set(p,z)),this._left=D.x,this._top=D.y):(z.left="0px",z.top="0px",h.set(p,z),this._left=this._top=0);h.set(p,z);this._onResizeHandler_connect=y(m,"onResize",this,"_onResizeHandler");
this._opacityChangeHandler_connect=y(this,"onOpacityChange",this,"_opacityChangeHandler");this._img_loading=null;this._dragOrigin={x:0,y:0};this.evaluateSuspension();if(this.suspended&&!m.loaded)var B=x.connect(m,"onLoad",this,function(){x.disconnect(B);B=null;this.evaluateSuspension()});this.extentProcessor&&(this._panEndEvalHandle=x.connect(m,"onPanEnd",this,this.evaluateSuspension),this._zoomEndEvalHandle=x.connect(m,"onZoomEnd",this,this.evaluateSuspension));return p},_unsetMap:function(m,e){this._img&&
this._clearEventListeners(this._img);this._img_loading&&this._clearEventListeners(this._img_loading);r.destroy(this._div);this._map=this._div=this._img=this._img_loading=null;var b=x.disconnect;b(this._onResizeHandler_connect);b(this._opacityChangeHandler_connect);b(this._panEndEvalHandle);b(this._zoomEndEvalHandle);this._panEndEvalHandle=this._zoomEndEvalHandle=this._onResizeHandler_connect=this._opacityChangeHandler_connect=null;this._fireUpdateEnd();this._toggleTime();clearTimeout(this._wakeTimer);
this._wakeTimer=null;this._disableDrawConnectors();this.inherited(arguments)},_onResizeHandler:function(m,e,b){h.set(this._div,{width:e+"px",height:b+"px"});this._onExtentChangeHandler(m)},onSuspend:function(){this.inherited(arguments);this._fireUpdateEnd();this._toggleTime();a.hide(this._div);clearTimeout(this._wakeTimer);this._wakeTimer=null;this._disableDrawConnectors()},onResume:function(){this.inherited(arguments);var m=this._map;this._toggleTime();"css-transforms"===m.navigationMode&&(m=m.__visibleDelta,
this._left=m.x,this._top=m.y,this._isChildLayer||h.set(this._div,q._css.names.transform,q._css.translate(this._left,this._top)));this._enableDrawConnectors();this._wakeTimer=this._wakeTimer||setTimeout(c.hitch(this,function(){this.suspended||this._onExtentChangeHandler(this._map.extent,null,!0)}),0)},canResume:function(){var m=this.inherited(arguments);if(m){var e=this._map.extent;this.extentProcessor&&e&&(m=!!this.extentProcessor({layer:this,extent:e,width:this._map.width}).extent)}return m},_enableDrawConnectors:function(){var m=
x.connect,e=this._map;e&&(this._onPanHandler_connect=m(e,"onPan",this,"_onPanHandler"),this._onExtentChangeHandler_connect=m(e,"onExtentChange",this,"_onExtentChangeHandler"),"css-transforms"===e.navigationMode?this._onScaleHandler_connect=m(e,"onScale",this,this._onScaleHandler):this._onZoomHandler_connect=m(e,"onZoom",this,"_onZoomHandler"))},_disableDrawConnectors:function(){var m=x.disconnect;m(this._onPanHandler_connect);m(this._onExtentChangeHandler_connect);m(this._onZoomHandler_connect);m(this._onScaleHandler_connect);
this._onPanHandler_connect=this._onExtentChangeHandler_connect=this._onZoomHandler_connect=this._onScaleHandler_connect=null},_toggleTime:function(){var m=this._map;this.timeInfo&&this.useMapTime&&m&&!this.suspended?(this._timeConnect||(this._timeConnect=x.connect(m,"onTimeExtentChange",this,this._onTimeExtentChangeHandler)),this._setTime(m.timeExtent)):(x.disconnect(this._timeConnect),this._timeConnect=null,this._setTime(null))},_setTime:function(m){this._params&&(this._params.time=m?m.toJson().join(","):
null)},_onPanHandler:function(m,e){this._panDx=e.x;this._panDy=e.y;m=this._dragOrigin;var b=this._map.__visibleDelta,p=this._img;p&&("css-transforms"===this._map.navigationMode?(this._left=b.x+e.x,this._top=b.y+e.y,this._isChildLayer||h.set(this._div,q._css.names.transform,q._css.translate(this._left,this._top))):h.set(p,{left:m.x+e.x+"px",top:m.y+e.y+"px"}))},_onExtentChangeHandler:function(m,e,b){if(!this.suspended){clearTimeout(this._wakeTimer);this._wakeTimer=null;var p=this._map,t=this._img,
z=t&&t.style,C=this._dragOrigin;!e||b||!t||e.x===this._panDx&&e.y===this._panDy||("css-transforms"===p.navigationMode?(e=p.__visibleDelta,this._left=e.x,this._top=e.y,this._isChildLayer||h.set(this._div,q._css.names.transform,q._css.translate(this._left,this._top))):h.set(t,{left:C.x+e.x+"px",top:C.y+e.y+"px"}));t?(C.x=parseInt(z.left,10),C.y=parseInt(z.top,10)):C.x=C.y=0;"css-transforms"===p.navigationMode&&b&&t&&(h.set(t,q._css.names.transition,"none"),t._multiply=t._multiply?w.multiply(t._matrix,
t._multiply):t._matrix);this._fireUpdateStart();if(b=this._img_loading)if(this._clearEventListeners(b),r.destroy(b),this._img_loading=null,b=this._jsonRequest){try{b.cancel()}catch(A){}this._jsonRequest=null}var y=p.width;b=p.height;e=y;var D=0;10<=this.version&&p.wrapAround180&&(m=m._normalize(!0));this.extentProcessor&&(D=this.extentProcessor({layer:this,extent:m,width:e}),m=D.extent,e=D.width,D=D.marginLeft||0);if(this.isPNG32)t=this._img_loading=r.create("div"),t.id=p.id+"_"+this.id+"_"+(new Date).getTime(),
h.set(t,{position:"absolute",left:"0px",top:"0px",width:e+"px",height:b+"px"}),p=t.appendChild(r.create("div")),h.set(p,{opacity:0,width:e+"px",height:b+"px"}),this.getImageUrl(m,e,b,this._divAlphaImageFunc),t=null;else{var B=this._img_loading=r.create("img"),u=q._css.names,E=f("ie"),v={position:"absolute",width:e+"px",height:b+"px"};B.setAttribute("decoding","sync");8===E&&(v.opacity=this.opacity);null!=D&&0!==D&&(v.marginLeft=D+"px");"css-transforms"===p.navigationMode?(v[u.transform]=q._css.translate(-this._left,
-this._top),B._tdx=-this._left,B._tdy=-this._top,v[u.transition]=u.transformName+" "+l+"ms ease",this.extentProcessor&&(v[u.origin]=y/2-D+"px "+b/2+"px")):(v.left="0px",v.top="0px");B.id=p.id+"_"+this.id+"_"+(new Date).getTime();h.set(B,v);B._onload_connect=x.connect(B,"onload",this,"_onLoadHandler");B._onerror_connect=x.connect(B,"onerror",this,"_onErrorHandler");B._onabort_connect=x.connect(B,"onabort",this,"_onErrorHandler");this._startRect={left:C.x,top:C.y,width:t?parseInt(z.width,10):e,height:t?
parseInt(z.height,10):b,marginLeft:t?parseInt(z.marginLeft||"0",10):D,zoom:z&&z.zoom?parseFloat(z.zoom):1};this.getImageUrl(m,e,b,this._imgSrcFunc);B=null}}},_onTimeExtentChangeHandler:function(m){this.suspended||(this._setTime(m),this.refresh(!0))},getImageUrl:function(m,e,b,p){},_imgSrcFunc:function(m){this._img_loading.src=m},_divAlphaImageFunc:function(m){h.set(this._img_loading,"filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d'"+m+"', sizingMethod\x3d'scale')");this._onLoadHandler({currentTarget:this._img_loading})},
_onLoadHandler:function(m){m=m.currentTarget;var e=this._map;this._clearEventListeners(m);!e||e.__panning||e.__zooming?r.destroy(m):(this._img&&this._div.removeChild(this._img),this._img=m,e=m.style,this._startRect={left:0,top:0,width:parseInt(e.width,10),height:parseInt(e.height,10),marginLeft:parseInt(e.marginLeft||"0",10),zoom:1},this._div.appendChild(m),this.suspended||a.show(this._div),this._img_loading=null,m=this._dragOrigin,m.x=m.y=0,this.onUpdate());this._fireUpdateEnd()},_onErrorHandler:function(m){m=
m.currentTarget;h.set(m,"visibility","hidden");this._clearEventListeners(m);m=Error("Unable to load image: "+m.src);this.onError(m);this._fireUpdateEnd(m)},_clearEventListeners:function(m){x.disconnect(m._onload_connect);x.disconnect(m._onerror_connect);x.disconnect(m._onabort_connect);m._onload_connect=m._onerror_connect=m._onabort_connect=null},setUseMapTime:function(m,e){this.useMapTime=m;this._toggleTime();e||this.refresh(!0)},refresh:function(){this._map&&this._onExtentChangeHandler(this._map.extent)},
_onScaleHandler:function(m,e){var b={},p=q._css.names,t=this._img;if(t){h.set(t,p.transition,e?"none":p.transformName+" "+l+"ms ease");t._matrix=m;m=t._multiply?w.multiply(m,t._multiply):m;if(t._tdx||t._tdy)m=w.multiply(m,{xx:1,xy:0,yx:0,yy:1,dx:t._tdx,dy:t._tdy});b[p.transform]=q._css.matrix(m);h.set(t,b)}},_onZoomHandler:function(m,e,b){m=this._startRect;var p=m.width*e,t=m.height*e,z=m.marginLeft*e,C=this._img,y=f("ie");C&&(y&&8>y?h.set(C,{left:m.left-(p-m.width)*(b.x-m.left)/m.width+"px",top:m.top-
(t-m.height)*(b.y-m.top)/m.height+"px",zoom:e*m.zoom}):h.set(C,{left:m.left-(p-m.width)*(b.x-m.left)/m.width+"px",top:m.top-(t-m.height)*(b.y-m.top)/m.height+"px",width:p+"px",height:t+"px"}),null!=z&&0!==z&&h.set(C,{marginLeft:z+"px"}))},_exportMapImage:function(m,e,b){var p=this._exportMapImageHandler;e.token=this._getToken();g({url:m,content:e,callbackParamName:"callback",load:function(t,z){p(t,z,b)},error:n.defaults.io.errorHandler})},_exportMapImageHandler:function(m,e,b){m=new k(m);this.onMapImageExport(m);
b&&b(m)},onMapImageExport:function(){},setOpacity:function(m){if(this.opacity!=m)this.onOpacityChange(this.opacity=m)},onOpacityChange:function(){},_opacityChangeHandler:function(m){var e=8===f("ie")?this._img:this._div;h.set(e,"opacity",m)}});f("extend-esri")&&c.setObject("layers.DynamicMapServiceLayer",G,q);return G})},"esri/layers/MapImage":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-style dojo/has ../kernel ../domUtils ../geometry/Extent".split(" "),function(G,x,c,r,h,w,q){G=
G(null,{declaredClass:"esri.layers.MapImage",constructor:function(n){x.mixin(this,n);this.extent=new q(this.extent)},visible:!0,opacity:1,getLayer:function(){return this._layer},getNode:function(){return this._node},show:function(){if(!this.visible){this.visible=!0;var n=this._node,f=this._layer,g;if(n){if(g=f&&f._div)f.suspended||f._setPos(n,g._left,g._top),(f._active||g).appendChild(n);w.show(n)}}},hide:function(){if(this.visible){this.visible=!1;var n=this._node;n&&(w.hide(n),n.parentNode&&n.parentNode.removeChild(n))}},
setOpacity:function(n){var f=this._node;this.opacity=n;f&&c.set(f,"opacity",n)}});r("extend-esri")&&x.setObject("layers.MapImage",G,h);return G})},"esri/layers/ImageParameters":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/json dojo/has ../kernel ../lang ../layerUtils".split(" "),function(G,x,c,r,h,w,q,n){x=x(null,{declaredClass:"esri.layers.ImageParameters",constructor:function(){this.layerDefinitions=[]},bbox:null,extent:null,width:null,height:null,dpi:null,
format:null,imageSpatialReference:null,layerOption:null,layerIds:null,transparent:null,timeExtent:null,layerTimeOptions:null,toJson:function(f){this.bbox&&G.deprecated(this.declaredClass+" : Property 'bbox' deprecated. Use property 'extent'.");var g=this.bbox||this.extent;g=g&&f&&g._normalize(!0);f=this.layerOption;var a=g?g.spatialReference.wkid||r.toJson(g.spatialReference.toJson()):null,d=this.imageSpatialReference;g={dpi:this.dpi,format:this.format,transparent:this.transparent,size:null!==this.width&&
null!==this.height?this.width+","+this.height:null,bbox:g?g.xmin+","+g.ymin+","+g.xmax+","+g.ymax:null,bboxSR:a,layers:f?f+":"+this.layerIds.join(","):null,imageSR:d?d.wkid||r.toJson(d.toJson()):a};g.layerDefs=n._serializeLayerDefinitions(this.layerDefinitions);f=this.timeExtent;g.time=f?f.toJson().join(","):null;g.layerTimeOptions=n._serializeTimeOptions(this.layerTimeOptions);return q.filter(g,function(k){if(null!==k)return!0})}});c.mixin(x,{LAYER_OPTION_SHOW:"show",LAYER_OPTION_HIDE:"hide",LAYER_OPTION_INCLUDE:"include",
LAYER_OPTION_EXCLUDE:"exclude"});h("extend-esri")&&c.setObject("layers.ImageParameters",x,w);return x})},"esri/_time":function(){define(["./TimeExtent"],function(){return{}})},"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/io-query dojo/dom-construct dojo/i18n dojo/when dojo/global dojo/promise/all ../sniff ../kernel ../lang ../request ../config ../deferredUtils ../promiseList ../SpatialReference ../urlUtils ../symbols/SimpleMarkerSymbol ../symbols/SimpleLineSymbol ../symbols/SimpleFillSymbol ../symbols/jsonUtils ../renderers/SimpleRenderer ../renderers/UniqueValueRenderer ../renderers/jsonUtils ../support/expressionUtils ../arcadeProfiles/labelingProfile ../tasks/QueryTask ../tasks/query ../tasks/FeatureSet ../tasks/StatisticDefinition ../geometry/Extent ../geometry/jsonUtils ../geometry/normalizeUtils ../geometry/scaleUtils ./GraphicsLayer ./Field ./TimeInfo ./TimeReference ./FeatureType ./FeatureTemplate ./FeatureSubtype ./FeatureEditResult ./LabelClass ./support/domainUtils ./SnapshotMode ./OnDemandMode ./SelectionMode ./StreamMode ./GridLayout ./TrackManager ./HeatmapManager ./clustering/ClusterManager dojo/i18n!../nls/jsapi dojo/has!extend-esri?./agscommon".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C,y,D,B,u,E,v,A,F,I,N,da,ba,na,xa,W,la,ha,sa,Ca,oa,qa,L,Y,ca,V,X,ja,pa,ta,ea,va,M,S,ma,ua,wa,Q,ka,za){var Ea=z.defaults,Ka=!!e("esri-pbf"),Qa=!!e("esri-featurelayer-pbf"),Pa=c(qa,{declaredClass:"esri.layers.FeatureLayer",invalidParams:"query contains one or more unsupported parameters",reSQLCurrentTimestamp:/current_timestamp|current_date|current_time/i,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(J,U){this._preventInit||this._initFeatureLayer(J,U)},_initFeatureLayer:function(J,U){U=U||{};this._tileWidth=U.tileWidth||512;this._tileHeight=U.tileHeight||512;this.i18n=za;this._featureReduction=this._featureReduction||U.featureReduction;this._featureReductionEnabled=null!=U.featureReductionEnabled?U.featureReductionEnabled:!0;this._featureUpdatesCheckEnabled=null!=U.featureUpdatesCheckEnabled?U.featureUpdatesCheckEnabled:!0;this.showLabels=null!=U.showLabels?U.showLabels:
!0;this._outFields=U.outFields;this._defnExpr=U.definitionExpression;this._loadCallback=U.loadCallback;this._trackIdField=U.trackIdField;this.objectIdField=U.objectIdField;var ia=null!=U.resolution,K=null!=U.maxAllowableOffset;this._maxOffset=this._optMaxOffset=ia||K?ia?U.resolution:U.maxAllowableOffset:this.maxAllowableOffset;this.quantize=null!=U.quantize?U.quantize:!0;this._optEditable=U.editable;this._optAutoGen=U.autoGeneralize;this.editSummaryCallback=U.editSummaryCallback;this.userId=U.userId;
this.userIsAdmin=U.userIsAdmin;this.useMapTime=U.hasOwnProperty("useMapTime")?!!U.useMapTime:!0;this.source=U.source;this.gdbVersion=U.gdbVersion;this.orderByFields=U.orderByFields;this.maxPointCountForAuto=null!=U.maxPointCountForAuto?U.maxPointCountForAuto:this.maxPointCountForAuto;this.maxRecordCountForAuto=null!=U.maxRecordCountForAuto?U.maxRecordCountForAuto:this.maxRecordCountForAuto;this.maxVertexCountForAuto=null!=U.maxVertexCountForAuto?U.maxVertexCountForAuto:this.maxVertexCountForAuto;
this.generalizeForScale=null!=U.generalizeForScale?U.generalizeForScale:this.generalizeForScale;this.queryPagination=this._optQueryPagination=null!=U.queryPagination?U.queryPagination:!0;this.multipatchOption=U.multipatchOption;this.subtypeSublayerInfo=U.subtypeSublayerInfo;this._selectedFeatures={};this._newFeatures=[];this._deletedFeatures={};this._ulid=this._getUniqueId();ia=p.isDefined(U.mode)?U.mode:Pa.MODE_ONDEMAND;this._isStream&&(ia=Pa.MODE_STREAM);this.mode=ia;switch(ia){case Pa.MODE_SNAPSHOT:this.currentMode=
Pa.MODE_SNAPSHOT;this._mode=new va(this);break;case Pa.MODE_ONDEMAND:case Pa.MODE_AUTO:this.currentMode=Pa.MODE_ONDEMAND;this._mode=new M(this);this.latticeTiling=U.latticeTiling;break;case Pa.MODE_SELECTION:this.currentMode=Pa.MODE_SELECTION;this._mode=new S(this);this._isSelOnly=!0;break;case Pa.MODE_STREAM:this.currentMode=Pa.MODE_STREAM,this._mode=new ma(this),this._isStream=!0}this._initLayer=h.hitch(this,this._initLayer);this._selectHandler=h.hitch(this,this._selectHandler);this._editable=!1;
if(h.isObject(J)&&J.layerDefinition)return this._collection=!0,this.mode=this._isStream?Pa.MODE_STREAM:Pa.MODE_SNAPSHOT,this._isStream||this._outFields||(this._outFields=["*"]),this._initLayer(J),this;this.source&&(J={source:this.source.toJson()},this._url.query=h.mixin(this._url.query,{layer:q.toJson(J)}));this.gdbVersion&&(this._url.query=h.mixin(this._url.query,{gdbVersion:this.gdbVersion}));this._task=new na(this.url,{source:this.source,gdbVersion:this.gdbVersion});J=this._url.path;this._fserver=
!1;-1!==J.search(/\/FeatureServer\//i)&&(this._fserver=!0);this._checkFeatureLimit();(U=U.resourceInfo)?this._initLayer(U):t({url:J,content:h.mixin({f:"json"},this._url.query),callbackParamName:"callback",load:this._initLayer,error:this._errorHandler});this.registerConnectEvents()},_initLayer:function(J,U){if(J||U){this._json=J;U=this.subtypeSublayerInfo;this._findCredential();if(this.credential&&this.credential.ssl||J&&J._ssl)this._useSSL(),this._task._useSSL();this._collection&&(this._isStream||
(this.currentMode=Pa.MODE_SNAPSHOT,this._mode=new va(this)),this._featureSet=J.featureSet,this._nextId=J.nextObjectId,J=J.layerDefinition);this.version=J.currentVersion;this.version||(this.version="capabilities"in J||"drawingInfo"in J||"hasAttachments"in J||"htmlPopupType"in J||"relationships"in J||"timeInfo"in J||"typeIdField"in J||"types"in J?10:9.3);this.geometryType=J.geometryType;J.bandCount&&J.fields&&1<J.fields.length&&(this.geometryType="esriGeometryPolygon",this._isImageService=!0);"string"!==
typeof this.multipatchOption&&"esriGeometryMultiPatch"===this.geometryType&&(this.multipatchOption="xyFootprint");if(J.hasOwnProperty("capabilities")){var ia=this.capabilities=J.capabilities;ia&&-1!==ia.toLowerCase().indexOf("editing")?this._editable=!0:this._editable=!1}else this._collection||(this._editable=this._fserver);p.isDefined(this._optEditable)?(this._editable=this._optEditable,delete this._optEditable):"esriGeometryMultiPatch"===this.geometryType&&(this._editable=!1);this._isImageService&&
(this._editable=!1);this._json=q.toJson(this._json);this.isEditable()?this._setMaxOffset(null):this._canAutoGeneralize()&&(this._autoGeneralize=p.isDefined(this._optAutoGen)?this._optAutoGen:this.mode===Pa.MODE_ONDEMAND||this.mode===Pa.MODE_AUTO,delete this._optAutoGen);ia=J.effectiveMinScale||J.minScale;var K=J.effectiveMaxScale||J.maxScale;!this._hasMin&&ia&&this.setMinScale(ia);!this._hasMax&&K&&this.setMaxScale(K);this.layerId=J.id;this.name=U&&U.title||J.name;this.description=J.description;this.copyright=
J.copyrightText;this.type=J.type;this.displayField=J.displayField;this.defaultDefinitionExpression=J.definitionExpression||(J.isView?J.viewDefinitionQuery:J.definitionQuery);this.fullExtent=new ha(J.extent);this.initialExtent=new ha(this.fullExtent.toJson());this.fullExtent.spatialReference&&(this.spatialReference=new D(this.fullExtent.spatialReference.toJson()));this.defaultVisibility=J.defaultVisibility;this.editingInfo=J.editingInfo;this.supportsLastEditDate=!(!this.editingInfo||null==this.editingInfo.lastEditDate);
if("esriGeometryPoint"===this.geometryType||"esriGeometryMultipoint"===this.geometryType)this.latticeTiling=!1;this.hasM=J.hasM||!1;this.hasZ=J.hasZ||!1;this.indexedFields=J.indexedFields;this.indexes=J.indexes;this.maxRecordCount=J.maxRecordCount;this.canModifyLayer=J.canModifyLayer;this.supportsStatistics=J.supportsStatistics;this.supportsAdvancedQueries=this._collection?!1:J.supportsAdvancedQueries;this.supportsCalculate=J.supportsCalculate;this.supportsASyncCalculate=J.supportsASyncCalculate;
this.supportsAttachmentsByUploadId=J.supportsAttachmentsByUploadId;this.supportsCoordinatesQuantization=J.supportsCoordinatesQuantization;this.supportsQuantizationEditMode=J.supportsQuantizationEditMode;this.supportsFieldDescription=J.supportsFieldDescriptionProperty;this.supportsFormatPBF=J.supportedQueryFormats?-1!==w.map(J.supportedQueryFormats.toLowerCase().split(","),h.trim).indexOf("pbf"):!1;this.quantize=this.quantize&&this.supportsCoordinatesQuantization;this.hasLabels=J.hasLabels;this.canScaleSymbols=
J.canScaleSymbols;this.supportsRollbackOnFailureParameter=this.supportsRollbackOnFailure=J.supportsRollbackOnFailure;this.syncCanReturnChanges=J.syncCanReturnChanges;this.isDataVersioned=J.isDataVersioned;this.editFieldsInfo=J.editFieldsInfo;this.ownershipBasedAccessControlForFeatures=J.ownershipBasedAccessControlForFeatures;this.editFieldsInfo&&this.ownershipBasedAccessControlForFeatures&&(this.creatorField=this.editFieldsInfo.creatorField);this.relationships=J.relationships;this.allowGeometryUpdates=
p.isDefined(J.allowGeometryUpdates)?J.allowGeometryUpdates:!0;this.allowUpdateWithoutMValues=!!J.allowUpdateWithoutMValues;this.enableZDefaults=!!J.enableZDefaults;this.zDefault=p.isDefined(J.zDefault)?J.zDefault:null;this.advancedQueryCapabilities=J.advancedQueryCapabilities||{supportsStatistics:this.supportsStatistics,supportsOrderBy:this.supportsAdvancedQueries,supportsDistinct:this.supportsAdvancedQueries};this.geometryProperties=J.hasGeometryProperties&&J.geometryProperties||null;this.url&&(this.advancedQueryCapabilities.supportsPagination=
this.advancedQueryCapabilities.supportsPagination&&(this.reHostedFS.test(this.url)||10.3<this.version));this.queryPagination=this._optQueryPagination&&this.advancedQueryCapabilities.supportsPagination;this.useStandardizedQueries=J.useStandardizedQueries;this.tileMaxRecordCount=J.tileMaxRecordCount;this.standardMaxRecordCount=J.standardMaxRecordCount;if(ia=J.dateFieldsTimeReference)this.dateFieldsTimeReference=new ca(ia);this._setMaxOffset(this._maxOffset,!0);this._isTable="Table"===this.type;K=J.fields;
this._createFields(K);if(!this.objectIdField){this.objectIdField=J.objectIdField;if(!this.objectIdField)for(K=J.fields,ia=0;ia<K.length;ia++){var T=K[ia];if("esriFieldTypeOID"===T.type){this.objectIdField=T.name;break}}this.objectIdField||this._isStream||console.debug("esri.layers.FeatureLayer: "+p.substitute({url:this.url},"objectIdField is not set [url: ${url}]"))}if(!p.isDefined(this._nextId)){K=this.objectIdField;T=-1;if(this._collection&&K){var fa=(ia=this._featureSet)&&ia.features,ra=fa?fa.length:
0;for(ia=0;ia<ra;ia++){var Ba=(Ba=fa[ia].attributes)&&Ba[K];Ba>T&&(T=Ba)}}this._nextId=T+1}this.globalIdField=J.globalIdField;if(ia=this.typeIdField=J.typeIdField)if(ia=!this._getField(ia)&&this._getField(ia,!0))this.typeIdField=ia.name;this.visibilityField=J.visibilityField;if(K=J.defaultSymbol)this.defaultSymbol=A.fromJson(K);var Ma=this.types=[],Ha=J.types;T=(ia=this.editFieldsInfo)&&ia.creatorField;fa=ia&&ia.editorField;Ba=T||fa;ra=[];if(Ha)for(ia=0;ia<Ha.length;ia++){var Ua=new V(Ha[ia]);var Ta=
Ua.templates;Ba&&Ta&&Ta.length&&(ra=ra.concat(Ta));Ma.push(Ua)}Ha=J.templates;Ua=this.templates=[];if(Ha)for(ia=0;ia<Ha.length;ia++)Ma=new X(Ha[ia]),Ba&&ra.push(Ma),Ua.push(Ma);for(ia=0;ia<ra.length;ia++)if(Ba=h.getObject("prototype.attributes",!1,ra[ia]))T&&delete Ba[T],fa&&delete Ba[fa];if(ia=J.subtypeField)this.subtypeField=(ia=this.getField(ia))?ia.name:null;this.defaultSubtypeCode=J.defaultSubtypeCode;this.subtypes=w.map(J.subtypes,function(gb){return new ja(gb)});this._applySTSublayerInfo(U);
if(U=J.timeInfo)this.timeInfo=new Y(U),this._startTimeField=U.startTimeField,this._endTimeField=U.endTimeField,this._startTimeField&&this._endTimeField&&(this._twoTimeFields=!0),this._trackIdField?U.trackIdField=this._trackIdField:this._trackIdField=U.trackIdField;this.hasAttachments=!this._collection&&J.hasAttachments?!0:!1;this.htmlPopupType=J.htmlPopupType;U=J.drawingInfo;(ia=U&&U.labelingInfo)&&!this.labelingInfo&&(this.labelingInfo=w.map(ia,function(gb){return new ta(gb)}),this._fixLabelExpr());
if(!this.renderer)if(U&&U.renderer){var Oa=U.renderer;this.setRenderer(N.fromJson(Oa,{geometryType:this.geometryType}));"classBreaks"===Oa.type&&this.renderer.setMaxInclusive(!0);if(!this._collection){var Xa=Oa.type;ia=[];Oa=this.renderer;switch(Xa){case "simple":ia.push(Oa.symbol);break;case "uniqueValue":case "classBreaks":ia.push(Oa.defaultSymbol),ia=ia.concat(w.map(Oa.infos,function(gb){return gb.symbol}))}ia=w.filter(ia,p.isDefined);var $a=this._url.path+"/images/",bb=this._getToken();w.forEach(ia,
function(gb){var mb=gb.url;mb&&(-1===mb.search(/https?:/)&&-1===mb.indexOf("data:")&&(gb.url=$a+mb),bb&&-1!==gb.url.search(/https?:/)&&(gb.url+="?token\x3d"+bb))})}}else if(K)Ha=this.types,0<Ha.length?(Oa=new I(this.defaultSymbol,this.typeIdField),w.forEach(Ha,function(gb){Oa.addValue(gb.id,gb.symbol)})):Oa=new F(this.defaultSymbol),this.setRenderer(Oa);else if(!this._isTable){switch(this.geometryType){case "esriGeometryPoint":case "esriGeometryMultipoint":Xa=new u;break;case "esriGeometryPolyline":Xa=
new E;break;case "esriGeometryPolygon":Xa=new v;break;default:this.hasXYFootprint()&&(Xa=new v)}this.setRenderer(Xa?new F(Xa):null)}Xa=U&&U.transparency||0;!this.hasOwnProperty("opacity")&&0<Xa&&(this.opacity=1-Xa/100);(e("ie")||7<=e("trident")||e("safari"))&&this.isEditable()&&10.02>this.version&&(this._ts=!0);this.statistics=J.statistics;this._fixRendererFields();this._updateRequiredFieldsFromLabelingInfo();this._checkFields();this._updateCaps();var hb=function(){null==this._maxOffset||this._isFractionalOffsetAllowed()||
this._setMaxOffset(this._maxOffset);this.loaded=!0;this.setFeatureReduction(this.getFeatureReduction());this.currentMode!==Pa.MODE_SNAPSHOT&&(this.queryPagination=!1);this.onLoad(this);var gb=this._loadCallback;gb&&(delete this._loadCallback,gb(this))};J=[];this._collection?(Xa=this._featureSet,this._featureSet=null,this._mode._drawFeatures(new W(Xa)),this._fcAdded=!0):(J.push(this._forceIdentity()),this._limitPromise&&J.push(this._limitPromise));J.push(this._evalArcadeSupport());J.length?y(J).then(h.hitch(this,
function(){hb.call(this)})):hb.call(this)}},_applySTSublayerInfo:function(J){J&&this.subtypeField&&(this.subtypeCode=J.subtypeCode,this._applySTSublayerDefinitionExpression(J),this._filterSubtypes(J),this._applySTTemplates(J),this._applySTFieldOverrides(J))},_applySTSublayerDefinitionExpression:function(J){var U=[],ia=this.getDefinitionExpression();ia&&U.push(ia);(J=J.layerDefinition&&J.layerDefinition.definitionExpression)&&U.push(J);1<U.length&&(U=w.map(U,function(K){return"("+K+")"}));this.setDefinitionExpression(U.length?
U.join(" AND "):null)},_applySTTemplates:function(J){if(J=J.layerDefinition&&J.layerDefinition.templates)this.templates=w.map(J,function(U){return new X(U)})},_filterSubtypes:function(){this.subtypes&&(this.subtypes=w.filter(this.subtypes,function(J){return J.code===this.subtypeCode},this))},_applySTFieldOverrides:function(J){var U=J.layerDefinition&&J.layerDefinition.fieldOverrides;if(U){this.fields=w.filter(this.fields,function(K){return w.some(U,function(T){return T.name===K.name})});var ia=this.getSubtypeByCode(this.subtypeCode).domains;
this.fields.forEach(function(K){var T=w.filter(U,function(fa){return fa.name===K.name})[0];T.alias&&(K.alias=T.alias);if(!1===T.editable||K.name===this.subtypeField)K.editable=!1;ia&&(T=ia[K.name])&&"inherited"!==T.type&&(K.domain=ea.fromJson(T.toJson()))},this)}},setShowLabels:function(J){var U=this.showLabels;this.showLabels=J;U!==this.showLabels&&(this._evalSurfaceType(),this.onShowLabelsChange())},onShowLabelsChange:function(){},onRendererChange:function(J){this.inherited(arguments);var U=this._map;
this._ager=!!(J&&J.observationAger&&J.observationRenderer);J&&"colors"in J&&"blurRadius"in J&&"maxPixelIntensity"in J?(this._evalSurfaceType(!0),"esriGeometryPoint"==this.geometryType&&!this._heatmapManager&&U&&(this._heatmapManager=new Q(this),this._heatmapManager.initialize(U))):this.renderer&&this.renderer.getRendererInfo?w.some(this.renderer.rendererInfos,function(T){return T.renderer&&"colors"in T.renderer&&"blurRadius"in T.renderer})||(this._heatmapManager=null):this._heatmapManager=null;this.timeInfo&&
U&&(J&&(J.latestObservationRenderer||J.trackRenderer)?this._trackManager||(this._trackManager=new wa(this),this._trackManager.initialize(U),this._childLayer=this._trackManager.container,this._mode._applyTimeFilter()):this._trackManager&&!this._isStream&&(this._trackManager.destroy(),this._trackManager=null));if(J){var ia=[];U=w.filter([J,J.observationRenderer,J.latestObservationRenderer,J.trackRenderer],p.isDefined);var K=function(T){return null!=T&&"function"!=typeof T&&T};w.forEach(U,function(T){var fa=
K(T.attributeField),ra=K(T.attributeField2);T=K(T.attributeField3);!1!==fa&&ia.push(fa);!1!==ra&&ia.push(ra);!1!==T&&ia.push(T)});this._requiredFields=ia}else this._requiredFields=[];this.loaded&&(this._fixRendererFields(),this._checkFields(this._requiredFields),this._collection&&(this._typesDirty=!0))},setFeatureReduction:function(J){J&&(J=h.mixin({},J),null!=J.clusterSize&&null==J.clusterRadius&&(J.clusterRadius=J.clusterSize),delete J.clusterSize);this.loaded?this._isFeatureReductionSupported(J)?
this._featureReduction=J:(this._featureReduction=null,J&&console.log("Clustering is not supported for this layer: "+this.url)):this._featureReduction=J;this._evalFeatureReduction(this._featureReduction)},hasFeatureReduction:function(){return!!this._featureReduction},getFeatureReduction:function(){var J=this._featureReduction;if(J){J=h.mixin({},J);var U=this._clusterManager;if(U=U&&U.aggregationInfo)J.clusterRadius=U.clusterRadius,J.infoTemplate=U.infoTemplate}return J},isFeatureReductionActive:function(){var J=
this._clusterManager;return!!(J&&J.isClusteringEnabled()&&J.isClusteringActive())},isFeatureReductionEnabled:function(){return this._featureReductionEnabled},enableFeatureReduction:function(){this._featureReductionEnabled||(this._featureReductionEnabled=!0,this._evalFeatureReduction(this._featureReduction))},disableFeatureReduction:function(){this._featureReductionEnabled&&(this._featureReductionEnabled=!1,this._evalFeatureReduction(this._featureReduction))},isFeatureReductionApplied:function(){return this.hasFeatureReduction()&&
this.isFeatureReductionEnabled()&&this._canCluster(this.getFeatureReduction())},getAggregateGraphics:function(){return this._clusterManager?this._clusterManager.getAggregateGraphics():[]},getChildGraphics:function(J){return this._clusterManager?this._clusterManager.getFeaturesInCluster(J):[]},getSingleGraphics:function(){return this._clusterManager?this._clusterManager.getSingleGraphics():[]},getFeatureReductionRenderer:function(){return this.isFeatureReductionActive()?this._clusterManager.getClusterRenderer():
null},getFeatureReductionLayer:function(){return this._clusterManager?this._clusterManager.container:null},getFeatureReductionField:function(J){var U,ia=this._clusterManager?this._clusterManager.getClusterFields():null;J=J?J.toLowerCase():"";w.some(ia,function(K){J===K.name.toLowerCase()&&(U=K);return!!U});return U},_isFeatureReductionSupported:function(J){return J&&"cluster"===J.type&&"esriGeometryPoint"===this.geometryType&&(this._collection||this._isStream||this._optQueryPagination&&this.advancedQueryCapabilities.supportsPagination)},
_isReductionCompatibleRenderer:function(J){J=J&&J.declaredClass||"";J=J.toLowerCase();return-1<J.indexOf("simplerenderer")||-1<J.indexOf("classbreaksrenderer")||-1<J.indexOf("uniquevaluerenderer")},_evalFeatureReduction:function(J){this.loaded&&this.getMap()&&(J=J||this.getFeatureReduction(),this._evalModeFromFReduction(J),J&&this.isFeatureReductionEnabled()?this._canCluster(J)?this._clusterManager?this._updateClusterManager(J):(this._clusterManager=this._createClusterManager(J),this.onFeatureReductionChange()):
(console.log("Clustering is supported only for point layers where map spatial reference is WGS84 or Web Mercator"),this._destroyClusterManager()):this._destroyClusterManager())},_canCluster:function(J){var U=this._map;if(!U)return!1;U=U.spatialReference;return this._isFeatureReductionSupported(J)&&this._isReductionCompatibleRenderer(this.renderer)&&(U.isWebMercator()||4326===U.wkid)},_createClusterManager:function(J){J=new ka({layer:this,aggregationInfo:J});this._clusterHandles=[J.on("renderer-change",
h.hitch(this,function(){this.onFeatureReductionRendererChange()}))];J.initialize(this._map);return J},_updateClusterManager:function(J){var U=this._clusterManager;U&&U.setAggregationInfo(J)},_destroyClusterManager:function(J){w.forEach(this._clusterHandles,function(U){U.remove()});this._clusterHandles=null;this._clusterManager&&(this._clusterManager.destroy(J),this._clusterManager=null,this.onFeatureReductionChange())},redraw:function(){this.inherited(arguments);this._clusterManager&&this._clusterManager.redraw();
this._trackManager&&this._trackManager.container&&this._trackManager.container.redraw()},_evalSDRenderer:function(J){this.inherited(arguments);var U=this._getRenderer();this._ager=!!(U&&U.observationAger&&U.observationRenderer);this._trackManager&&this._trackManager.container&&this._trackManager.container.setRenderer(U&&U.trackRenderer);J&&this._evalFeatureReduction()},_graphicVisibilityChanged:function(J){this._clusterManager?this._clusterManager.toggleFeatureVisibility(J):this._heatmapManager&&
this._heatmapManager.redraw()},setWebGLFetchOptions:function(J){this._hasOnDemandDrillMode()&&(J=J||{},null!=J.maxDrillLevel&&(this._mode.maxDrillLevel=J.maxDrillLevel),null!=J.maxRecordCountFactor&&(this._mode.maxRecordCountFactor=J.maxRecordCountFactor),null!=J.enablePBFQuery&&(this._mode.enablePBFQuery=J.enablePBFQuery))},_isWebGLCompatible:function(){return this.loaded&&!this.isEditable()&&!this.isFeatureReductionApplied()&&(!this.labelingInfo||!1===this.showLabels)&&!this._isGeometryOperationsUsed()&&
this._isRendererSupportedInWebGL()&&this.supportsCoordinatesQuantization&&("esriGeometryPolygon"!==this.geometryType||this.advancedQueryCapabilities.supportsReturningGeometryCentroid)&&this.currentMode===Pa.MODE_ONDEMAND&&(!this._preSurfaceChangeState||this._preSurfaceChangeState.currentMode===Pa.MODE_ONDEMAND)},_isRendererSupportedInWebGL:function(){if(!this.renderer)return!1;var J=this.renderer,U=J.declaredClass?J.declaredClass.toLowerCase():"";return(-1<U.indexOf("simplerenderer")||-1<U.indexOf("classbreaksrenderer")||
-1<U.indexOf("uniquevaluerenderer"))&&this._hasWebGLCompatibleSymbols(J)&&this._hasWebGLCompatibleVVs(J)},_hasWebGLCompatibleSymbols:function(J){J=this._getAllSymbolsInRenderer(J);return!(this._hasSLSWithMarker(J)||this._hasIncompatibleSMSStyles(J)||this._hasGIFMarker(J))},_hasWebGLCompatibleVVs:function(J){return!w.some(J&&J.visualVariables,function(U){var ia=U.type;return("colorInfo"===ia||"opacityInfo"===ia)&&U.stops&&8<U.stops.length||"sizeInfo"===ia&&(U.field||U.valueExpression&&"$view.scale"!==
U.valueExpression||U.expression&&"view.scale"!==U.expression)&&U.stops&&6<U.stops.length?!0:!1})},_hasSLSWithMarker:function(J){return w.some(J,function(U){return U&&"simplelinesymbol"===U.type&&!!U.marker})},_hasIncompatibleSMSStyles:function(J){var U=void 0===e("ie")&&7==e("trident");return w.some(J,function(ia){return ia&&"simplemarkersymbol"===ia.type&&("triangle"===ia.style||"path"===ia.style&&U)})},_hasGIFMarker:function(J){var U=/\.gif$/,ia=/^image\/gif$/;return w.some(J,function(K){return K&&
"picturemarkersymbol"===K.type?U.test(K.url)||ia.test(K.contentType):!1})},_getAllSymbolsInRenderer:function(J){var U=[];J&&(U.push(J.symbol),U.push(J.defaultSymbol),w.forEach(J.infos,function(ia){U.push(ia.symbol)}),U=w.filter(U,function(ia){return!!ia}));return U},_setMap:function(J){var U=this.inherited(arguments),ia=this._mode,K=this;ia&&J.loaded&&ia.initialize(J);this.geometryType&&this.attr("data-geometry-type",this.geometryType.replace(/esriGeometry/i,"").toLowerCase());this._addHandle=this.on("graphic-node-add",
function(T){T=T.graphic.attributes;(T=K._selectedFeatures[T&&T[K.objectIdField]])&&T.attr("data-selected","")});return U},_unsetMap:function(J){this._suspendImpl(!0);this._destroyClusterManager(!1);this._trackManager&&(this._trackManager.destroy(),this._trackManager=null);r.disconnect(this._zoomConnect);r.disconnect(this._addHandle);this._zoomConnect=this._addHandle=null;this.inherited("_unsetMap",arguments)},onAttach:function(){this._evalModeFromSurface()},onRefreshTick:function(){this.isFeatureUpdatesCheckActive()&&
this._evalFeatureUpdates()},refresh:function(J){!this._needsRefresh&&J&&J.scheduled&&this.isFeatureUpdatesCheckActive()||(this._needsRefresh=!1,(J=this._mode)&&J.refresh())},setFeatureUpdatesCheckEnabled:function(J){this._featureUpdatesCheckEnabled=J},isFeatureUpdatesCheckEnabled:function(){return!!this._featureUpdatesCheckEnabled},isFeatureUpdatesCheckActive:function(){return this.supportsLastEditDate&&this.isFeatureUpdatesCheckEnabled()&&!!this.refreshInterval&&!!h.getObject("onFeatureUpdatesResult.after",
!1,this)},hasFeatureUpdates:function(){var J=new n;if(!this.supportsLastEditDate)return J.reject(Error("FeatureLayer does not support supportsLastEditDate")),J.promise;if(!this._fetchMetadataPromise||this._fetchMetadataPromise.isFulfilled())this._fetchMetadataPromise=t({url:this._url.path,content:h.mixin({f:"json"},this._url.query),callbackParamName:"callback"}).then(h.hitch(this,function(U){U=U.editingInfo.lastEditDate;var ia=this.editingInfo.lastEditDate!==U;this.editingInfo.lastEditDate=U;return ia}));
this._fetchMetadataPromise.then(function(U){J.isFulfilled()||J.resolve(U)}).otherwise(function(U){J.isFulfilled()||J.reject(U)});return J.promise},hasXYFootprint:function(){return"esriGeometryMultiPatch"===this.geometryType&&"xyFootprint"===this.multipatchOption},getOutFields:function(){return w.filter(this._getOutFields(),function(J){return"*"===J||!!this._getField(J)},this)},getField:function(J){return this._getField(J,!0)},isOutField:function(J){J=this.getField(J);if(!J)return!1;var U=this.getOutFields();
return-1<w.indexOf(U,"*")||-1<w.indexOf(U,J.name)},getFieldLabel:function(J){var U=this.infoTemplate;U=U&&U.getFieldInfo&&U.getFieldInfo(J);J=h.isFunction(J)?null:this.getField(J);var ia=U||J,K="";ia&&(K=U&&U.label||J&&J.alias||ia.name||ia.fieldName);return K},getDomain:function(J,U){var ia,K,T=(U=U&&U.feature)&&this.typeIdField&&U.attributes&&U.attributes[this.typeIdField];null!=T&&w.some(this.types,function(fa){return fa.id==T?((ia=fa.domains&&fa.domains[J])&&"inherited"===ia.type&&(ia=this._getLayerDomain(J),
K=!0),!0):!1},this);K||ia||(ia=this._getLayerDomain(J));return ia},_getLayerDomain:function(J){this._createFieldsIndex();var U=this._fieldsIndex;if(U)return U=U.caseSensitive,(U=U.get(J))?U.domain:null;var ia;w.some(this.fields,function(K){K.name===J&&(ia=K.domain);return!!ia});return ia},getType:function(J){return this.getTypeById(J&&this.typeIdField&&J.attributes&&J.attributes[this.typeIdField])},getTypeById:function(J){var U;w.some(this.types,function(ia){ia.id==J&&(U=ia);return!!U});return U},
getSubtypeByCode:function(J){var U;w.some(this.subtypes,function(ia){ia.code==J&&(U=ia);return!!U});return U},setEditable:function(J){if(!this._collection)return console.log("FeatureLayer:setEditable - this functionality is not yet supported for layer in a feature service"),this;if(this._isImageService)return this;if(!this.loaded)return this._optEditable=J,this;var U=this._editable;this._editable=J;this._updateCaps();if(U!==J)this.onCapabilitiesChange();return this},getEditCapabilities:function(J){var U=
{canCreate:!1,canUpdate:!1,canDelete:!1,canUpdateGeometry:!1};if(!this.loaded||!this.isEditable())return U;var ia=J&&J.feature;J=J&&J.userId||this.getUserId();var K=w.map(this.capabilities?this.capabilities.toLowerCase().split(","):[],h.trim),T=(U=-1<w.indexOf(K,"editing"))&&-1<w.indexOf(K,"create"),fa=U&&-1<w.indexOf(K,"update");K=U&&-1<w.indexOf(K,"delete");var ra=this.ownershipBasedAccessControlForFeatures,Ba=this.editFieldsInfo,Ma=Ba&&Ba.creatorField;Ba=Ba&&Ba.realm;ia=(ia=ia&&ia.attributes)&&
Ma?ia[Ma]:void 0;var Ha=!!this.userIsAdmin;Ma=!ra||Ha||!(!ra.allowOthersToUpdate&&!ra.allowUpdateToOthers);var Ua=!ra||Ha||!(!ra.allowOthersToDelete&&!ra.allowDeleteToOthers),Ta=!ra||Ha||!ra.hasOwnProperty("allowAnonymousToUpdate")||ra.allowAnonymousToUpdate;ra=!ra||Ha||!ra.hasOwnProperty("allowAnonymousToDelete")||ra.allowAnonymousToDelete;J&&Ba&&(J=J+"@"+Ba);if(Ha||U&&!(T||fa||K))T=fa=K=!0;U={canCreate:T,canUpdate:fa,canDelete:K,canUpdateGeometry:Ha||this.allowGeometryUpdates};J||(U.canUpdate=U.canUpdate&&
Ta,U.canDelete=U.canDelete&&ra);null===ia?(U.canUpdate=U.canUpdate&&Ma,U.canDelete=U.canDelete&&Ua):""!==ia&&ia&&J.toLowerCase()!==ia.toLowerCase()&&(U.canUpdate=U.canUpdate&&Ma,U.canDelete=U.canDelete&&Ua);return U},getUserId:function(){var J;this.loaded&&(J=this.credential&&this.credential.userId||this.userId||"");return J},setUserIsAdmin:function(J){this.userIsAdmin=J},setEditSummaryCallback:function(J){this.editSummaryCallback=J},getEditSummary:function(J,U,ia){ia=p.isDefined(ia)?ia:(new Date).getTime();
var K="";ia=this.getEditInfo(J,U,ia);(U=U&&U.callback||this.editSummaryCallback)&&(ia=U(J,ia)||"");if(h.isString(ia))K=ia;else{if(ia){J=ia.action;U=ia.userId;var T=ia.timeValue,fa=0;J&&fa++;U&&fa++;p.isDefined(T)&&fa++;1<fa&&(K=("edit"===J?"edit":"create")+(U?"User":"")+(p.isDefined(T)?ia.displayPattern:""))}K=K&&p.substitute(ia,this.i18n.layers.FeatureLayer[K])}return K},getEditInfo:function(J,U,ia){if(this.loaded){ia=p.isDefined(ia)?ia:(new Date).getTime();U=U&&U.action||"last";var K=this.editFieldsInfo,
T=K&&K.creatorField,fa=K&&K.creationDateField,ra=K&&K.editorField;K=K&&K.editDateField;ra=(J=J&&J.attributes)&&ra?J[ra]:void 0;K=J&&K?J[K]:null;T=this._getEditData(J&&T?J[T]:void 0,J&&fa?J[fa]:null,ia);ia=this._getEditData(ra,K,ia);switch(U){case "creation":var Ba=T;break;case "edit":Ba=ia;break;case "last":Ba=ia||T}Ba&&(Ba.action=Ba===ia?"edit":"creation");return Ba}},_getEditData:function(J,U,ia){if(p.isDefined(U)){var K=ia-U;var T=0>K?"Full":6E4>K?"Seconds":12E4>K?"Minute":36E5>K?"Minutes":72E5>
K?"Hour":864E5>K?"Hours":6048E5>K?"WeekDay":"Full"}if(void 0!==J||T){var fa=fa||{};fa.userId=J;T&&(J=f.format,ia=new Date(U),fa.minutes=Math.floor(K/6E4),fa.hours=Math.floor(K/36E5),fa.weekDay=J(ia,{datePattern:"EEEE",selector:"date"}),fa.formattedDate=J(ia,{selector:"date"}),fa.formattedTime=J(ia,{selector:"time"}),fa.displayPattern=T,fa.timeValue=U)}return fa},isEditable:function(){return!(!this._editable&&!this.userIsAdmin)},isQueryable:function(){var J=w.map(this.capabilities?this.capabilities.toLowerCase().split(","):
[],h.trim);return this._isStream||this.userIsAdmin||this._collection||-1!==w.indexOf(J,"query")||-1!==w.indexOf(J,"catalog")},setResolution:function(J){return this.setMaxAllowableOffset(J)},setMaxAllowableOffset:function(J){this.isEditable()||(this._optMaxOffset=J,this._setMaxOffset(J,!0));return this},_resetMaxAllowableOffset:function(){this.setMaxAllowableOffset(this._optMaxOffset);this._prevScale=null;this._refreshMaxAllowableOffset()},_refreshMaxAllowableOffset:function(){this._calcMaxOffsetForAutoSnapshot();
this._updateMaxOffset();this._needsRefresh=!1},getResolution:function(){return this.getMaxAllowableOffset()},getMaxAllowableOffset:function(){var J=this._quantizationParameters?this._quantizationParameters.tolerance:void 0;return null!=this._maxOffset?this._maxOffset:J},_setMaxOffset:function(J,U){if(null==J)return delete this._maxOffset,delete this._quantizationParameters,this;this.quantize&&this.supportsCoordinatesQuantization?("esriGeometryPolyline"===this.geometryType?this._maxOffset=J:delete this._maxOffset,
this._quantizationParameters=J?{mode:"view",originPosition:"upperLeft",tolerance:J,extent:this.fullExtent}:null):(this._isFractionalOffsetAllowed()&&U||(J=Math.floor(J)),isNaN(J)||0===J?delete this._maxOffset:this._maxOffset=J,delete this._quantizationParameters);return this},_isFractionalOffsetAllowed:function(){return null==this.version||10.1<=this.version||navigator.languages&&this._isLangWithDot(navigator.languages[0])},_isLangWithDot:function(J){J=(J=J&&J.split("-"))&&J[0]&&J[0].toLowerCase();
return-1!==w.indexOf(this._langsWithDot,J)},_langsWithDot:"ar en et fr he ja ko th vi zh".split(" "),setAutoGeneralize:function(J){this.loaded?this._canAutoGeneralize()&&((this._autoGeneralize=J)?(this._isAutoSnapshotMode()&&(this._prevScale=null),this._updateMaxOffset()):this._setMaxOffset(null)):this._optAutoGen=J;return this},_canAutoGeneralize:function(){return!this.isEditable()&&this.mode!==Pa.MODE_SNAPSHOT},setGDBVersion:function(J){this._collection||J===this.gdbVersion||!J&&!this.gdbVersion||
(this.gdbVersion=J,this._task.gdbVersion=J,this._url.query=h.mixin(this._url.query,{gdbVersion:J}),this.loaded&&(this.clearSelection(),this._map&&this.refresh()),this.onGDBVersionChange());return this},hasAllFeatures:function(){return this._mode?this._mode.hasAllFeatures():!0},hasUpdateError:function(){return this._mode?this._mode.hasUpdateError():!1},setDefinitionExpression:function(J){this._defnExpr=J;this._hasPendingLimitQuery()||((J=this._checkFeatureLimit())?this._evalModeAndApplyDefnExpr(J):
this._applyDefnExpr());return this},_applyDefnExpr:function(){var J=this._mode;J&&J.propertyChangeHandler(1)},_evalModeAndApplyDefnExpr:function(J){J.then(h.hitch(this,function(U){U&&(U instanceof Error||!U.modeChanged)&&this._applyDefnExpr()}))},getDefinitionExpression:function(){return this._defnExpr},hasDefinitionExpressionWithCurrentTimestamp:function(){return this.reSQLCurrentTimestamp.test(this.getDefinitionExpression())},setTimeDefinition:function(J){this._isSnapshotMode()?(this._timeDefn=
J,(J=this._mode)&&J.propertyChangeHandler(2)):console.log("FeatureLayer.setTimeDefinition: layer in on-demand or selection mode does not support time definitions. Layer id \x3d "+this.id+", Layer URL \x3d "+this.url);return this},getTimeDefinition:function(){return this._timeDefn},setTimeOffset:function(J,U){this._timeOffset=J;this._timeOffsetUnits=U;(J=this._mode)&&J.propertyChangeHandler(0);return this},setUseMapTime:function(J){this.useMapTime=J;this._toggleTime(!this.suspended);(J=this._mode)&&
J.propertyChangeHandler(0)},selectFeatures:function(J,U,ia,K){U=U||Pa.SELECTION_NEW;this._hasSelectionError=this._hasPartialSelectedFeatures=!1;J=this._getShallowClone(J);var T=this._map,fa=this,ra=C._fixDfd(new n(C._dfdCanceller));J.outFields=this.getOutFields();J.returnGeometry=!0;J.multipatchOption=this.multipatchOption;T&&(J.outSpatialReference=new D(T.spatialReference.toJson()));if(!this._applyQueryFilters(J,!0)){var Ba={features:[]};this._selectHandler(Ba,U,ia,K,ra);return ra}if(T=this._canDoClientSideQuery(J))ra._pendingDfd=
k(this._doQuery(J,T)),ra._pendingDfd.then(function(Ha){Ba={features:Ha};fa._selectHandler(Ba,U,ia,K,ra)});else{if(this._collection)return this._resolve([Error("FeatureLayer::selectFeatures - "+this.invalidParams)],null,K,ra,!0),ra;if(this.loaded&&!this.isQueryable())return this._resolve([Error("Layer does not support query capability.")],null,K,ra,!0),ra;var Ma=this;this._ts&&(J._ts=(new Date).getTime());T=this._canFetchPBFForQuery(J);this._enableEditModeQuantization(J,T);(ra._pendingDfd=this._task.execute(J,
null,null,T?{format:"pbf"}:null)).addCallbacks(function(Ha){Ma._selectHandler(Ha,U,ia,K,ra)},function(Ha){Ma._hasPartialSelectedFeatures=!0;Ma._hasSelectionError=!0;Ma._resolve([Ha],null,K,ra,!0)})}return ra},getSelectedFeatures:function(){var J=this._selectedFeatures,U=[],ia;for(ia in J)J.hasOwnProperty(ia)&&U.push(J[ia]);return U},clearSelection:function(J){var U=this._selectedFeatures,ia=this._mode,K;for(K in U)U.hasOwnProperty(K)&&(this._unSelectFeatureIIf(K,ia),ia._removeFeatureIIf(K));this._selectedFeatures=
{};this._isSelOnly&&ia._applyTimeFilter(!0);if(!J)this.onSelectionClear();return this},setSelectionSymbol:function(J){if(this._selectionSymbol=J){var U=this._selectedFeatures,ia;for(ia in U)U.hasOwnProperty(ia)&&U[ia].setSymbol(J)}return this},getSelectionSymbol:function(){return this._selectionSymbol},setLabelingInfo:function(J){J?(this.labelingInfo=J,this._fixLabelExpr()):delete this.labelingInfo;this._collection&&(this._typesDirty=!0);this._evalSurfaceType();this.onLabelingInfoChange()},_fixLabelExpr:function(){var J=
/\[([^\[\]]+)\]/ig,U,ia=this,K=function(T,fa){T=ia._getField(fa,!0);return"["+(T&&T.name||fa)+"]"};w.forEach(this.labelingInfo,function(T){if(U=T.labelExpression)T.labelExpression=U.replace(J,K)})},_updateRequiredFieldsFromLabelingInfo:function(){var J=[];w.forEach(this.labelingInfo,function(U){var ia=U.labelExpressionInfo;if(U.labelExpression){var K=/[\[\]]/ig;U=U.labelExpression.match(/\[[^\[\]]+\]/ig);(U=w.map(U,function(fa){return fa.replace(K,"")}))&&(J=J.concat(U))}if(ia){if(ia.value){var T=
/[\{\}]/ig;U=ia.value.match(/\{[^\{\}]+\}/ig);(U=w.map(U,function(fa){return fa.replace(T,"")}))&&(J=J.concat(U))}ia.expression&&(U=w.map(this.fields,function(fa){return fa.name},this),J=J.concat(da.extractFieldNames(ia.expression,U)))}},this);J=w.map(J,function(U){var ia=this.getField(U);return ia?ia.name:U},this);this._requiredFields&&(this._requiredFields=this._requiredFields.concat(J))},__msigns:[{n:"applyEdits",c:5,a:[{i:0},{i:1}],e:4,f:1}],applyEdits:function(J,U,ia,K,T,fa){var ra=fa.assembly,
Ba=fa.dfd;this._applyNormalized(J,ra&&ra[0]);this._applyNormalized(U,ra&&ra[1]);this.onBeforeApplyEdits(J,U,ia);var Ma={},Ha=this.objectIdField;ra={f:"json"};var Ua=!1;if(this._collection)fa={},fa.addResults=J?w.map(J,function(){Ua=!0;return{objectId:this._nextId++,success:!0}},this):null,fa.updateResults=U?w.map(U,function(Xa){Ua=!0;var $a=Xa.attributes[Ha];Ma[$a]=Xa;return{objectId:$a,success:!0}},this):null,fa.deleteResults=ia?w.map(ia,function(Xa){Ua=!0;return{objectId:Xa.attributes[Ha],success:!0}},
this):null,Ua?this._editHandler(fa,J,Ma,K,T,Ba):this._resolve([fa.addResults,fa.updateResults,fa.deleteResults],null,K,Ba);else{J&&0<J.length&&(ra.adds=this._convertFeaturesToJson(J,0,1),Ua=!0);if(U&&0<U.length){for(fa=0;fa<U.length;fa++){var Ta=U[fa];Ma[Ta.attributes[Ha]]=Ta}ra.updates=this._convertFeaturesToJson(U,0,0,1);Ua=!0}if(ia&&0<ia.length){U=[];for(fa=0;fa<ia.length;fa++)U.push(ia[fa].attributes[Ha]);ra.deletes=U.join(",");Ua=!0}if(Ua){var Oa=this;return t({url:this._url.path+"/applyEdits",
content:h.mixin(ra,this._url.query),callbackParamName:"callback",load:function(Xa){Oa._editHandler(Xa,J,Ma,K,T,Ba)},error:function(Xa){Oa._resolve([Xa],null,T,Ba,!0)}},{usePost:!0})}this._resolve([],null,K,Ba)}},queryFeatures:function(J,U,ia,K){return this._query("execute","onQueryFeaturesComplete",J,U,ia,K)},queryRelatedFeatures:function(J,U,ia){return this._query("executeRelationshipQuery","onQueryRelatedFeaturesComplete",J,U,ia)},queryIds:function(J,U,ia,K){return this._query("executeForIds","onQueryIdsComplete",
J,U,ia,K)},queryCount:function(J,U,ia,K){return this._query("executeForCount","onQueryCountComplete",J,U,ia,K)},queryExtent:function(J,U,ia,K){return this._query("executeForExtent","onQueryExtentComplete",J,U,ia,K)},queryAttachmentInfos:function(J,U,ia){var K=this._url.path+"/"+J+"/attachments",T=new n(C._dfdCanceller),fa=this;K=B.normalize(K);T._pendingDfd=t({url:K,content:h.mixin({f:"json"},this._url.query),callbackParamName:"callback",load:function(ra){ra=ra.attachmentInfos;var Ba;w.forEach(ra,
function(Ma){Ba=g.objectToQuery({gdbVersion:fa._url.query&&fa._url.query.gdbVersion,layer:fa._url.query&&fa._url.query.layer,token:fa._getToken()});Ma.url=K+"/"+Ma.id+(Ba?"?"+Ba:"");Ma.objectId=J});fa._resolve([ra],"onQueryAttachmentInfosComplete",U,T)},error:function(ra){fa._resolve([ra],null,ia,T,!0)}});return T},addAttachment:function(J,U,ia,K){return this._sendAttachment("add",J,U,ia,K)},updateAttachment:function(J,U,ia,K,T){ia.appendChild(a.create("input",{type:"hidden",name:"attachmentId",value:U}));
return this._sendAttachment("update",J,ia,K,T)},deleteAttachments:function(J,U,ia,K){var T=this._url.path+"/"+J+"/deleteAttachments",fa=new n(C._dfdCanceller),ra=this;U={f:"json",attachmentIds:U.join(",")};fa._pendingDfd=t({url:T,content:h.mixin(U,this._url.query),callbackParamName:"callback",load:h.hitch(this,function(Ba){Ba=Ba.deleteAttachmentResults;Ba=w.map(Ba,function(Ma){Ma=new pa(Ma);Ma.attachmentId=Ma.objectId;Ma.objectId=J;return Ma});ra._resolve([Ba],"onDeleteAttachmentsComplete",ia,fa)}),
error:function(Ba){ra._resolve([Ba],null,K,fa,!0)}},{usePost:!0});return fa},addType:function(J){var U=this.types;if(U){if(w.some(U,function(ia){return ia.id==J.id?!0:!1}))return!1;U.push(J)}else this.types=[J];return this._typesDirty=!0},deleteType:function(J){if(this._collection){var U=this.types;if(U){var ia=-1;w.some(U,function(K,T){return K.id==J?(ia=T,!0):!1});if(-1<ia)return this._typesDirty=!0,U.splice(ia,1)[0]}}},toJson:function(){var J=this._cloneJson();if(J){J=J.layerDefinition?J:{layerDefinition:J};
var U=J.layerDefinition,ia=this._collection;this._updateLayerDefinition(U);var K=null;if(!ia||this._fcAdded)K={geometryType:U.geometryType,features:this._convertFeaturesToJson(this.graphics,!0)};J.featureSet=h.mixin({},J.featureSet||{},K);if(J.featureSet.transform){var T=J.featureSet.transform;delete J.featureSet.transform;K=new W(J.featureSet);K.quantize(T);J.featureSet=K.toJson()}ia&&(J.nextObjectId=this._nextId,U.capabilities=this.capabilities);return J}},getLayerDefinition:function(){var J=this._cloneJson();
(J=J?J.layerDefinition||J:null)&&this._updateLayerDefinition(J);return J},getFeatureCollectionLayer:function(J){var U=new n,ia=this.getLayerDefinition();if(!ia)return U.reject(Error("layerDefinition not available")),U.promise;J=J||[];var K=new Pa({layerDefinition:ia,featureSet:{geometryType:ia.geometryType,features:w.map(J,function(ra){return ra.toJson()})}}),T=K.on("load",function(){T.remove();fa.remove();U.resolve(K)}),fa=K.on("error",function(){K.loaded||(T.remove(),fa.remove(),U.reject(K.loadError))});
return U.promise},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(){},onFeatureReductionRendererChange:function(){},onFeatureReductionChange:function(){},onFeatureUpdatesResult:function(){},_cloneJson:function(){var J=this._json;return h.isString(J)?q.fromJson(J):h.clone(J)},_updateLayerDefinition:function(J){if(this._collection&&this._typesDirty){J.types=w.map(this.types||[],function(T){return T.toJson()});var U=this.renderer,ia=this.labelingInfo,K=J.drawingInfo;!U&&
!ia||K||(K=J.drawingInfo={});K&&U&&-1===U.declaredClass.indexOf("TemporalRenderer")&&(K.renderer=U.toJson());ia&&(K.labelingInfo=w.map(ia,function(T){return T.toJson()}))}},_evalFeatureUpdates:function(){if(!this._featureUpdatesPromise||this._featureUpdatesPromise.isFulfilled())this._featureUpdatesPromise=this.hasFeatureUpdates().otherwise(function(J){return!(J&&"cancel"===J.dojoType)}).always(h.hitch(this,function(J){this._featureUpdatesPromise=null;this.onFeatureUpdatesResult({hasUpdates:J})}))},
_evalRefresh:function(J){(J.hasUpdates||this.hasDefinitionExpressionWithCurrentTimestamp())&&this.refresh()},_evalArcadeSupport:function(){var J=new n;setTimeout(h.hitch(this,function(){this._initializeArcadeEngine().always(function(){J.resolve()})}),0);return J.promise},_initializeArcadeEngine:function(){var J=[],U=this.infoTemplate;U&&U.initializeArcadeEngine&&J.push(U.initializeArcadeEngine());(U=this.renderer)&&U.initializeArcadeEngine&&J.push(U.initializeArcadeEngine());var ia=[];w.forEach(this.labelingInfo,
function(K){(K=K.labelExpressionInfo)&&K.expression&&ia.push(K.expression)});J.push(ba.initialize(ia));return y(J)},_isGeometryOperationsUsed:function(){var J=this.infoTemplate,U=this.renderer,ia=this.labelingInfo;return J&&J.hasGeometryOperations&&J.hasGeometryOperations()||U&&U.hasGeometryOperations&&U.hasGeometryOperations()||w.some(ia,function(K){return da.hasGeometryOperations(K.labelExpressionInfo&&K.labelExpressionInfo.expression)})?!0:!1},_forceIdentity:function(){var J=new n,U=this,ia=this._url&&
this._url.path;var K=ia&&ia.toLowerCase().indexOf("/rest/services");var T=this.editFieldsInfo;T=T&&(T.creatorField||T.editorField);(this.userIsAdmin||T)&&!this._getToken()&&-1<K&&b.id?(K=ia.substring(0,K)+"/rest/info",t({url:K,content:{f:"json"},handleAs:"json",callbackParamName:"callback"}).then(function(fa){if(fa.owningSystemUrl)return b.id.checkSignInStatus(fa.owningSystemUrl+"/sharing")}).then(function(fa){if(fa)return b.id.getCredential(ia)}).then(function(fa){fa&&U._findCredential()}).always(function(){J.resolve()})):
J.resolve();return J.promise},_isSnapshotMode:function(){return this._mode?this._mode.isInstanceOf(va):!1},_isOnDemandMode:function(){return this._mode?this._mode.isInstanceOf(M):!1},_isAutoSnapshotMode:function(){return this._isAutoModeEnabled()&&this.currentMode===Pa.MODE_SNAPSHOT},_getMaxFeaturesForAutoSnapshotMode:function(){var J=this.geometryType;if("esriGeometryPolyline"===J||"esriGeometryPolygon"===J||"esriGeometryMultipoint"===J||this.hasXYFootprint())var U=this.maxRecordCountForAuto;else"esriGeometryPoint"===
J&&(U=this.maxPointCountForAuto);return U},getLastExceedsLimitResult:function(){return this._lastExceedsLimitResult},_canUseSnapshotMode:function(J){this._lastExceedsLimitResult=J=(J=J&&J.features&&J.features[0])&&J.attributes&&J.attributes.exceedslimit;return!(this.mode!==Pa.MODE_AUTO||this.isEditable()||0!==J||!(this._isPaginationAllowed()||this.maxRecordCount>=this._getMaxFeaturesForAutoSnapshotMode()))},_evalModeFromFLimit:function(J){this._canUseSnapshotMode(J)?this._enableAutoSnapshotMode():
this._enableAutoOnDemandMode()},_enableAutoSnapshotMode:function(){var J=Pa.MODE_SNAPSHOT;this.isFeatureReductionApplied()?this._updatePreFReductionState(J):this._preSurfaceChangeState?(this._updatePreSurfaceChangeState(J),this._evalSurfaceType(!0)):this.currentMode!==J&&this._setFetchMode(Pa.MODE_AUTO,J)},_enableAutoOnDemandMode:function(){var J=Pa.MODE_ONDEMAND;this.isFeatureReductionApplied()?this._updatePreFReductionState(J):this._preSurfaceChangeState?this._updatePreSurfaceChangeState(J):this.currentMode!==
J&&(this._setFetchMode(Pa.MODE_AUTO,J),this._evalSurfaceType())},_evalModeFromFReduction:function(J){this.loaded&&(J&&this.isFeatureReductionEnabled()&&this._canCluster(J)?this._enableFReductionMode():this._disableFReductionMode())},_enableFReductionMode:function(){this._evalSurfaceType(!0);if(!this._preFReductionState){var J=this.currentMode;J!==Pa.MODE_SNAPSHOT&&J!==Pa.MODE_STREAM&&J!==Pa.MODE_SELECTION&&(this._preFReductionState={mode:this.mode,currentMode:this.currentMode},this._setFetchMode(this.mode===
Pa.MODE_AUTO?Pa.MODE_AUTO:Pa.MODE_SNAPSHOT,Pa.MODE_SNAPSHOT))}},_disableFReductionMode:function(){var J=this._preFReductionState;this._preFReductionState=null;!J||J.mode===this.mode&&J.currentMode===this.currentMode||(this._setFetchMode(J.mode,J.currentMode),this._evalSurfaceType())},_updatePreFReductionState:function(J){this._preFReductionState=this._preFReductionState||{};this._preFReductionState.mode=Pa.MODE_AUTO;this._preFReductionState.currentMode=J},_evalModeFromSurface:function(){this.hasWebGLSurface()?
this._enableWebGLSurfaceMode():this._disableWebGLSurfaceMode()},_enableWebGLSurfaceMode:function(){this._preSurfaceChangeState||(this._preSurfaceChangeState={mode:this.mode,currentMode:this.currentMode},this._setFetchMode(this.mode===Pa.MODE_AUTO?Pa.MODE_AUTO:Pa.MODE_ONDEMAND,Pa.MODE_ONDEMAND,this.webglDeps.OnDemandDrillMode))},_disableWebGLSurfaceMode:function(){var J=this._preSurfaceChangeState;J&&(this._preSurfaceChangeState=null,this._setFetchMode(J.mode,J.currentMode))},_updatePreSurfaceChangeState:function(J){this._preSurfaceChangeState=
this._preSurfaceChangeState||{};this._preSurfaceChangeState.mode=Pa.MODE_AUTO;this._preSurfaceChangeState.currentMode=J},_setFetchMode:function(J,U,ia){this.clearSelection();this._mode.suspend();this._mode.destroy();this.mode=J;this.currentMode=U;ia=ia||this._getModeConstructor(U);this._mode=new ia(this);this.queryPagination=U===Pa.MODE_ONDEMAND&&-1===ia.prototype.declaredClass.toLowerCase().indexOf("ondemanddrillmode")?!1:this._isPaginationAllowed();(J=this.getMap())&&J.loaded&&(this._resetMaxAllowableOffset(),
this._mode.initialize(J),this._mode.startup())},_isPaginationAllowed:function(){return!(!this._optQueryPagination||this.loaded&&!this.advancedQueryCapabilities.supportsPagination)},_getModeConstructor:function(J){var U;J===Pa.MODE_SNAPSHOT?U=va:J===Pa.MODE_ONDEMAND&&(U=M);return U},_hasOnDemandDrillMode:function(){var J=this._mode;J=J&&J.declaredClass;return!!(J&&-1<J.toLowerCase().indexOf("ondemanddrillmode"))},_checkFeatureLimit:function(){this._limitPromise&&(this._limitPromise.cancel(),this._limitPromise=
null);var J=this._queryLimit();J&&(this._lastExceedsLimitResult=null,this._limitPromise=J.then(h.hitch(this,function(U){var ia=this.currentMode;this._evalModeFromFLimit(U);return{modeChanged:this.currentMode!==ia}})).always(h.hitch(this,function(U){this._limitPromise=null;return U})));return this._limitPromise},_hasPendingLimitQuery:function(){return!!this._exceedsLimitTimer},_queryLimit:function(){if(this._isAutoModeEnabled()){var J,U,ia=new n(function(){clearTimeout(J);J=null;U&&!U.isFulfilled()&&
U.cancel();U=null});this._exceedsLimitTimer=J=setTimeout(h.hitch(this,function(){this._exceedsLimitTimer=null;var K=new xa,T=new la;T.statisticType="exceedslimit";T.maxPointCount=this.maxPointCountForAuto;T.maxRecordCount=this.maxRecordCountForAuto;T.maxVertexCount=this.maxVertexCountForAuto;T.outStatisticFieldName="exceedslimit";K.outStatistics=[T];U=this.queryFeatures(K).promise.then(function(fa){ia.resolve(fa)}).otherwise(function(fa){ia.reject(fa)})}),0);return ia.promise}},_isAutoModeEnabled:function(){return this.mode===
Pa.MODE_AUTO&&this.reHostedFS.test(this.url)},_updateCaps:function(){var J=this._editable,U=h.trim(this.capabilities||""),ia=w.map(U?U.split(","):[],h.trim),K=w.map(U?U.toLowerCase().split(","):[],h.trim);U=w.indexOf(K,"editing");var T;K={Create:w.indexOf(K,"create"),Update:w.indexOf(K,"update"),Delete:w.indexOf(K,"delete")};if(J&&-1===U)ia.push("Editing");else if(!J&&-1<U){J=[U];for(T in K)-1<K[T]&&J.push(K[T]);J.sort();for(T=J.length-1;0<=T;T--)ia.splice(J[T],1)}this.capabilities=ia.join(",")},
_counter:{value:0},_getUniqueId:function(){return this._counter.value++},onSuspend:function(){this.inherited(arguments);this._suspendImpl()},_suspendImpl:function(J){this._toggleTime(!1);this._refreshHandle&&(this._refreshHandle.remove(),this._refreshHandle=null);var U=this._mode;U&&(U.suspend(),J&&U.destroy())},onResume:function(J){this.inherited(arguments);this._toggleTime(!0);this._refreshHandle=this.on("feature-updates-result",h.hitch(this,this._evalRefresh));var U=this._map,ia=this._getRenderer();
if(J.firstOccurrence){if(this._fixRendererFields(),this._updateRequiredFieldsFromLabelingInfo(),this._checkFields(),this.clearSelection(),this._evalFeatureReduction(),this.timeInfo&&!this._trackManager&&(this._trackIdField||ia&&(ia.latestObservationRenderer||ia.trackRenderer))&&(this._trackManager=new wa(this),this._trackManager.initialize(U),this._childLayer=this._trackManager.container),ia&&"colors"in ia&&"blurRadius"in ia&&"maxPixelIntensity"in ia&&"esriGeometryPoint"==this.geometryType&&!this._heatmapManager&&
(this._heatmapManager=new Q(this),this._heatmapManager.initialize(U)),this._zoomConnect=r.connect(U,"onZoomEnd",this,this._zoomEndHandler),this._refreshMaxAllowableOffset(),ia=this._mode)ia._init||ia.initialize(U),ia.startup()}else this._zoomEndHandler(),this._mode&&this._mode.resume()},_zoomEndHandler:function(){var J=this._map;this._updateMaxOffset();this._prevScale=J.getScale();!this.suspended&&this._needsRefresh&&this.refresh()},_updateMaxOffset:function(){var J=this._map;J&&J.loaded&&this._autoGeneralize&&
(this._isAutoSnapshotMode()?(J=this.getMaxAllowableOffset(),this._setMaxOffset(this._getMaxOffsetForScale(),!0),this._needsRefresh||(this._needsRefresh=J!=this.getMaxAllowableOffset())):this._setMaxOffset(J.extent.getWidth()/J.width,!J.extent.spatialReference.isWebMercator()))},_getMaxOffsetForScale:function(){if(this._map){var J=this._map.getScale(),U=this._calculatedScale,ia=this._calcMaxOffset,K=this._prevScale;return J>=U&&(null==K||K<U)?ia:J<U&&(null==K||K>=U)?null:this.getMaxAllowableOffset()}},
_calcMaxOffsetForAutoSnapshot:function(){var J=this._map;if(J&&this._canAutoGeneralize()&&this._isAutoSnapshotMode()&&this._autoGeneralize&&null==this.getMaxAllowableOffset()){var U=this.generalizeForScale;this._calculatedScale=U=this.maxScale?this.maxScale:this.minScale?Math.min(U,this.minScale):Math.min(U,oa.getScale(J,this.initialExtent));this._calcMaxOffset=J.extent.getWidth()/J.width/J.getScale()*U}else this._calculatedScale=this._calcMaxOffset=void 0},_toggleTime:function(J){var U=this._map;
J&&this.timeInfo&&this.useMapTime&&U?(this._mapTimeExtent=U.timeExtent,this._timeConnect||(this._timeConnect=r.connect(U,"onTimeExtentChange",this,this._timeChangeHandler))):(this._mapTimeExtent=null,r.disconnect(this._timeConnect),this._timeConnect=null)},_timeChangeHandler:function(J){this._mapTimeExtent=J;(J=this._mode)&&J.propertyChangeHandler(0)},_getOffsettedTE:function(J){var U=this._timeOffset,ia=this._timeOffsetUnits;return J&&U&&ia?J.offset(-1*U,ia):J},_getTimeOverlap:function(J,U){return J&&
U?J.intersection(U):J||U},_getTimeFilter:function(J){var U=this.getTimeDefinition();if(U){var ia=this._getTimeOverlap(U,null);if(!ia)return[!1]}if(J){if(J=ia?this._getTimeOverlap(J,ia):J,!J)return[!1]}else J=ia;return[!0,J]},_getAttributeFilter:function(J){var U=[],ia=this.getDefinitionExpression();ia&&U.push(ia);J&&U.push(J);this.subtypeField&&this.subtypeCode&&U.push(this.subtypeField+" \x3d "+this.subtypeCode);1<U.length&&(U=w.map(U,function(K){return"("+K+")"}));return U.length?U.join(" AND "):
null},_applyQueryFilters:function(J,U){J.where=this._getAttributeFilter(J.where);J.returnGeometry&&null==J.maxAllowableOffset&&!J.quantizationParameters&&(J.maxAllowableOffset=this._maxOffset,J.quantizationParameters=this._quantizationParameters);U&&this.supportsAdvancedQueries&&(J.orderByFields=J.orderByFields||this.getOrderByFields());if(this.timeInfo)if(U=this._getTimeFilter(J.timeExtent),U[0])J.timeExtent=U[1];else return!1;return!0},_add:function(J){var U=this._selectionSymbol,ia=J.attributes,
K=this.visibilityField;U&&this._isSelOnly&&J.setSymbol(U);if(K&&ia&&ia.hasOwnProperty(K))J[ia[K]?"show":"hide"]();return this.add.apply(this,arguments)},_remove:function(){return this.remove.apply(this,arguments)},_canDoClientSideQuery:function(J,U){var ia=[],K=this._map,T;if((this._collection||!this._isTable&&K)&&!(J.text||J.where&&J.where!==this.getDefinitionExpression()||J.orderByFields&&J.orderByFields.length&&(T=this.getOrderByFields()||[])&&J.orderByFields.join()!==T.join()||J.outStatistics||
J.returnDistinctValues)){T=this._isSnapshotMode();var fa=this._isSelOnly;U=T?null:U?this._getExtentOfTiles(K.extent):K.extent;if(K=J.geometry){if(fa||J.spatialRelationship!==xa.SPATIAL_REL_INTERSECTS||"extent"!==K.type||!T&&!U.contains(K))return;ia.push(1)}if(U=J.objectIds)if(T)ia.push(2);else{K=U.length;var ra=this._mode,Ba=0,Ma;for(Ma=0;Ma<K;Ma++)ra._getFeature(U[Ma])&&Ba++;if(Ba===K)ia.push(2);else return}if(this.timeInfo)if(J=J.timeExtent,U=this._mapTimeExtent,T)J&&ia.push(3);else if(fa){if(J)return}else if(U)if(-1!==
w.indexOf(ia,2))J&&ia.push(3);else if(-1!==w.indexOf(ia,1))J==U&&ia.push(3);else return;else if(0<ia.length)J&&ia.push(3);else if(J)return;return 0<ia.length?ia:null}},_getAbsMid:function(J){return G.toAbsMid?G.toAbsMid(J):x.id.replace(/\/[^\/]*$/ig,"/")+J},_doQuery:function(J,U,ia){var K=[],T=this.objectIdField,fa=this,ra=new n,Ba=new n,Ma=this.graphics;if(-1!==w.indexOf(U,1)){var Ha=this.spatialIndex||this._map&&this._map.spatialIndex,Ua,Ta=J.geometry._normalize(null,!0);null==Ha&&Ea.autoSpatialIndexing?
Ua=(this._map||this).addPlugin(this._getAbsMid("../plugins/spatialIndex")).then(h.hitch(this,h.partial(this._getFromIndex,Ta,Ha)),function(Oa){Ba.resolve(h.hitch(this,h.partial(this._filterByExtent,Ma,Ta)))}):Ha&&(Ua=this._getFromIndex(Ta,Ha));Ua?Ua.then(function(Oa){for(var Xa=0;Xa<Oa.length;Xa++)Oa[Xa].results&&(K=K.concat(Oa[Xa].results));Ba.resolve(K)}).otherwise(function(Oa){Ba.reject(Oa)}):Ba.resolve(this._filterByExtent(Ma,Ta))}else Ba.resolve(Ma);Ba.then(function(Oa){K=Oa;if(-1!==w.indexOf(U,
2)){var Xa=J.objectIds;K=w.filter(K,function($a){return-1<w.indexOf(Xa,$a.attributes[T])})}-1!==w.indexOf(U,3)&&fa.timeInfo&&(Oa=J.timeExtent,K=fa._filterByTime(K,Oa.startTime,Oa.endTime).match);ia&&(K=w.map(K,function($a){return $a.attributes[T]},this));ra.resolve(K)});return ra},_getFromIndex:function(J,U){U=U||this.spatialIndex||this._map.spatialIndex;J instanceof Array||(J=[J]);var ia=this.id;return m(w.map(J,function(K){return U.intersects(K,ia)}))},_filterByExtent:function(J,U){for(var ia=[],
K=0,T=J.length;K<T;K++){var fa=J[K],ra=fa.geometry;ra&&(this.normalization&&U.length?(U[0].intersects(ra)||U[1].intersects(ra))&&ia.push(fa):U.intersects(ra)&&ia.push(fa))}return ia},_filterByTime:function(J,U,ia){var K=this._startTimeField,T=this._endTimeField,fa;this._twoTimeFields||(fa=K||T);var ra=p.isDefined,Ba=[],Ma=[],Ha,Ua=J.length;U=U?U.getTime():-Infinity;ia=ia?ia.getTime():Infinity;if(fa)for(Ha=0;Ha<Ua;Ha++){var Ta=J[Ha];var Oa=Ta.attributes;K=Oa[fa];K>=U&&K<=ia?Ba.push(Ta):Ma.push(Ta)}else for(Ha=
0;Ha<Ua;Ha++)Ta=J[Ha],Oa=Ta.attributes,fa=Oa[K],Oa=Oa[T],fa=ra(fa)?fa:-Infinity,Oa=ra(Oa)?Oa:Infinity,fa>=U&&fa<=ia||Oa>=U&&Oa<=ia||U>=fa&&ia<=Oa?Ba.push(Ta):Ma.push(Ta);return{match:Ba,noMatch:Ma}},_getSizeVariables:function(J){return J&&w.filter(J.getVisualVariablesForType("sizeInfo",!1),function(U){return!(!U.field&&!U.valueExpression)})},_needClientSideSorting:function(J){return this._collection?!(!J||!J.length):w.some(J,function(U){return!!U.valueExpression})},_sortFeatures:function(J){var U=
this.renderer,ia=this._getSizeVariables(U);if(J&&1<J.length&&this._needClientSideSorting(ia)){var K=ia[0],T=this;J.sort(function(fa,ra){fa._layer||(fa._layer=T);ra._layer||(ra._layer=T);fa=U._getDataValue(fa,K,"sizeInfo");ra=U._getDataValue(ra,K,"sizeInfo");return null==fa?-1:null==ra?1:ra-fa})}return J},_resolve:function(J,U,ia,K,T){U&&this[U].apply(this,J);ia&&ia.apply(null,J);K&&C._resDfd(K,J,T)},_getShallowClone:function(J){var U=new xa,ia;for(ia in J)J.hasOwnProperty(ia)&&(U[ia]=J[ia]);return U},
_canFetchPBF:function(){return!!(Ka&&Qa&&this.supportsFormatPBF)},_canFetchPBFForQuery:function(J){return!(!this._canFetchPBF()||!this._isCacheHintEnabled(J)&&this._isAutoSnapshotMode()||!(J.quantizationParameters||!this.isEditable()&&this.supportsQuantizationEditMode)||J.outStatistics)},_enableEditModeQuantization:function(J,U){J&&U&&!J.quantizationParameters&&(J.quantizationParameters={mode:"edit"})},_enableCacheHint:function(J,U){var ia=this.advancedQueryCapabilities;ia&&ia.supportsQueryWithCacheHint?
null==J.cacheHint&&(J.cacheHint=!0):ia&&ia.supportsQueryWithResultType&&this.reHostedFS.test(this.url)&&!J.resultType&&(J.resultType=U||"coherent")},_isCacheHintSupported:function(){var J=this.advancedQueryCapabilities;return J?!!(J.supportsQueryWithCacheHint||J.supportsQueryWithResultType&&this.reHostedFS.test(this.url)):!1},_isCacheHintEnabled:function(J){var U=this.advancedQueryCapabilities;return J&&U?!!(U.supportsQueryWithCacheHint&&J.cacheHint||U.supportsQueryWithResultType&&this.reHostedFS.test(this.url)&&
("coherent"===J.resultType||"tile"===J.resultType)):!1},_query:function(J,U,ia,K,T,fa){var ra=this,Ba=this._map;fa=fa&&fa.snapToTiles;var Ma=new n(C._dfdCanceller),Ha=ia,Ua,Ta,Oa;if("executeRelationshipQuery"!==J){Ha=this._getShallowClone(ia);var Xa=this.getOutFields();Ha.outFields||(Ha.outFields=Xa);Ha.outFields&&Ha.outFields.length&&(Ta=-1<w.indexOf(Xa,"*")?!1:!w.every(Ha.outFields,function(bb){return-1<w.indexOf(Xa,bb)}));Ha.returnGeometry=ia.hasOwnProperty("returnGeometry")?ia.returnGeometry:
!ia.outStatistics;Ha.returnGeometry&&(Ha.multipatchOption=this.multipatchOption,null!=Ha.maxAllowableOffset||Ha.quantizationParameters)&&(ia=null!=Ha.maxAllowableOffset?Ha.maxAllowableOffset:Ha.quantizationParameters.tolerance,null!=ia&&ia!==this.getMaxAllowableOffset()&&(Oa=!0));Ba&&(Ba=Ba&&Ba.spatialReference,(ia=Ha.outSpatialReference)?Ua=!ia.equals(Ba):Ha.outSpatialReference=new D(Ba.toJson()));fa&&(Ba=Ha.geometry)&&"extent"===Ba.type&&(Ha.geometry=this._getExtentOfTiles(Ba),Ba!==Ha.geometry&&
this._enableCacheHint(Ha));if(!this._applyQueryFilters(Ha,"execute"===J&&!Ha.outStatistics)){switch(J){case "execute":var $a=new W({features:[]});break;case "executeForIds":$a=[];break;case "executeForCount":$a=0;break;case "executeForExtent":$a={}}this._resolve([$a],U,K,Ma);return Ma}if(fa="executeForExtent"!==J&&!Ua&&!Ta&&!Oa&&this._canDoClientSideQuery(Ha,fa))return Ma._pendingDfd=k(this._doQuery(Ha,fa,"executeForIds"===J||"executeForCount"===J)),Ma._pendingDfd.then(function(bb){switch(J){case "execute":$a=
new W;$a.features=bb;break;case "executeForIds":$a=bb;break;case "executeForCount":$a=bb.length}ra._resolve([$a],U,K,Ma)}),Ma}if(this._collection)return this._resolve([Error("FeatureLayer::_query - "+this.invalidParams)],null,T,Ma,!0),Ma;if(this.loaded&&!this.isQueryable())return this._resolve([Error("Layer does not support query capability.")],null,T,Ma,!0),Ma;this._ts&&(Ha._ts=(new Date).getTime());fa="execute"===J&&this._canFetchPBFForQuery(Ha);this._enableEditModeQuantization(Ha,fa);(Ma._pendingDfd=
this._task[J](Ha,null,null,fa?{format:"pbf"}:null)).addCallbacks(function(bb){var hb=!!Ha.outStatistics||Ua||Ta||Oa;if("execute"===J||"executeRelationshipQuery"===J)if("execute"===J){var gb=bb.features;var mb=gb.length;for(--mb;0<=mb;mb--)if(gb[mb]._layer=ra,!hb&&!ra._isTable){var rb=ra._mode._getFeature(gb[mb].attributes[ra.objectIdField]);rb&&gb.splice(mb,1,rb)}}else for(rb in bb)if(bb.hasOwnProperty(rb))for(gb=bb[rb].features,mb=gb.length,--mb;0<=mb;mb--)gb[mb]._layer=ra;ra._resolve([bb],U,K,Ma)},
function(bb){ra._resolve([bb],null,T,Ma,!0)});return Ma},_getExtentOfTiles:function(J){var U=this._isOnDemandMode()&&this._mode._gridLayer||ua.createFromFeatureLayer({layer:this}),ia=this.getMap();ia=ia&&ia.getTargetExtent(J);return U&&ia&&U.getExtentOfIntersectingCells(ia)||J},_convertFeaturesToJson:function(J,U,ia,K){var T=[],fa=this._selectionSymbol,ra=this.visibilityField,Ba,Ma=this.objectIdField;this.loaded&&(ia||K)&&(Ba=w.filter(this.fields,function($a){return!1===$a.editable&&(!K||$a.name!==
Ma)}));for(ia=0;ia<J.length;ia++){var Ha=J[ia],Ua={},Ta=Ha.geometry,Oa=Ha.attributes,Xa=Ha.symbol;!Ta||K&&this.loaded&&!this.allowGeometryUpdates||(Ua.geometry=Ta.toJson());ra?(Ua.attributes=Oa=h.mixin({},Oa),Oa[ra]=Ha.visible?1:0):Oa&&(Ua.attributes=h.mixin({},Oa));Ua.attributes&&Ba&&Ba.length&&w.forEach(Ba,function($a){delete Ua.attributes[$a.name]});Xa&&Xa!==fa&&(Ua.symbol=Xa.toJson());T.push(Ua)}return U?T:q.toJson(T)},_selectHandler:function(J,U,ia,K,T){switch(U){case Pa.SELECTION_NEW:this.clearSelection(!0);
var fa=!0;break;case Pa.SELECTION_ADD:fa=!0;break;case Pa.SELECTION_SUBTRACT:fa=!1}K=J.features;var ra=this._mode,Ba=[],Ma=this.objectIdField;if(fa)for(fa=0;fa<K.length;fa++){var Ha=K[fa];var Ua=Ha.attributes[Ma];Ha=ra._addFeatureIIf(Ua,Ha);Ba.push(Ha);this._selectFeatureIIf(Ua,Ha,ra)}else for(fa=0;fa<K.length;fa++)Ha=K[fa],Ua=Ha.attributes[Ma],this._unSelectFeatureIIf(Ua,ra),Ua=ra._removeFeatureIIf(Ua),Ba.push(Ua||Ha);this._isSelOnly&&ra._applyTimeFilter(!0);this._isImageService&&10.7>this.version&&
void 0===J.exceededTransferLimit&&(J.exceededTransferLimit=K.length===this.maxRecordCount);this._hasPartialSelectedFeatures=!!J.exceededTransferLimit;this._resolve([Ba,U,J.exceededTransferLimit?{queryLimitExceeded:!0}:null],"onSelectionComplete",ia,T);if(J.exceededTransferLimit)this.onQueryLimitExceeded()},_selectFeatureIIf:function(J,U,ia){var K=this._selectedFeatures,T=K[J];T||(ia._incRefCount(J),K[J]=U,this._isTable||(this._setSelectSymbol(U),U.attr("data-selected","")));return T||U},_unSelectFeatureIIf:function(J,
U){var ia=this._selectedFeatures[J];ia&&(U._decRefCount(J),delete this._selectedFeatures[J],this._isTable||(this._setUnSelectSymbol(ia),ia.attr("data-selected")));return ia},_setSelectSymbol:function(J){var U=this._selectionSymbol;U&&!this._isSelOnly&&J.setSymbol(U)},_setUnSelectSymbol:function(J){var U=this._selectionSymbol;U&&!this._isSelOnly&&U===J.symbol&&J.setSymbol(null,!0)},_getOutFields:function(){var J=[this.objectIdField,this.typeIdField,this.creatorField,this._startTimeField,this._endTimeField,
this._trackIdField].concat(this._requiredFields).concat(this.dataAttributes);J=w.filter(J,function(ia,K,T){return!!ia&&w.indexOf(T,ia)===K});var U=h.clone(this._outFields);if(U){if(-1!==w.indexOf(U,"*"))return U;w.forEach(J,function(ia){-1===w.indexOf(U,ia)&&U.push(ia)});return U}return J},_checkFields:function(J){var U=J||this._getOutFields();w.forEach(U,function(ia){"*"!==ia&&(this._getField(ia)||console.debug("esri.layers.FeatureLayer: "+p.substitute({url:this.url,field:ia},"unable to find '${field}' field in the layer 'fields' information [url: ${url}]")))},
this);J||this._isTable||this._fserver||this._collection||this._isStream||w.some(this.fields,function(ia){return ia&&"esriFieldTypeGeometry"===ia.type?!0:!1})||console.debug("esri.layers.FeatureLayer: "+p.substitute({url:this.url},"unable to find a field of type 'esriFieldTypeGeometry' in the layer 'fields' information. If you are using a map service layer, features will not have geometry [url: ${url}]"))},_fixFieldCase:function(J,U,ia){var K=J&&J[U],T;if(K&&!h.isFunction(K)){if(T=!this._getField(K)&&
this._getField(K,!0))K=J[U]=T.name;ia&&ia.push(K)}return K},_fixRendererFields:function(){var J=this.renderer;this._orderBy=null;this._requiredFields=[];if(J&&0<this.fields.length){var U=[],ia;J=w.filter([J,J.observationRenderer,J.latestObservationRenderer,J.trackRenderer],p.isDefined);var K=[].concat(J);w.forEach(J,function(T){w.forEach(T.rendererInfos,function(fa){fa.renderer&&K.push(fa.renderer)})});w.forEach(K,function(T){this._fixFieldCase(T,"attributeField",U);this._fixFieldCase(T,"attributeField2",
U);this._fixFieldCase(T,"attributeField3",U);this._fixFieldCase(T.rotationInfo,"field",U);(ia=this._fixFieldCase(T.sizeInfo,"field",U))&&!this._orderBy&&(this._orderBy=[ia+" DESC"]);this._fixFieldCase(T.sizeInfo,"normalizationField",U);this._fixFieldCase(T.colorInfo,"field",U);this._fixFieldCase(T.colorInfo,"normalizationField",U);this._fixFieldCase(T.field,"field",U);this._fixFieldCase(T.opacityInfo,"field",U);this._fixFieldCase(T.opacityInfo,"normalizationField",U);w.forEach(T.visualVariables,function(ra){ia=
this._fixFieldCase(ra,"field",U);"sizeInfo"===ra.type&&ia&&!this._orderBy&&(this._orderBy=[ia+" DESC"]);this._fixFieldCase(ra,"normalizationField",U)},this);var fa=w.map(this.fields,function(ra){return ra.name},this);fa=w.map(T.getFieldsUsedInExpressions(fa),function(ra){var Ba=this.getField(ra);return Ba?Ba.name:ra},this);U=U.concat(fa);this._orderBy||!T.addBreak||h.isFunction(T.attributeField)||!T.backgroundFillSymbol&&!this._hasSizeDiff(T)||(this._orderBy=[T.attributeField+" DESC"])},this);this._requiredFields=
w.filter(U,p.isDefined)}},_hasSizeDiff:function(J){var U=Number.MAX_VALUE,ia=-Number.MAX_VALUE,K,T;w.forEach(J.infos,function(fa){if(T=fa.symbol){K=0;switch(T.type){case "simplemarkersymbol":K=T.size;break;case "picturemarkersymbol":K=(T.width+T.height)/2;break;case "simplelinesymbol":case "cartographiclinesymbol":K=T.width;break;case "simplefillsymbol":case "picturefillsymbol":K=T.outline&&T.outline.width}K&&(U=Math.min(U,K),ia=Math.max(ia,K))}});return U!==Number.MAX_VALUE&&ia!==-Number.MAX_VALUE&&
1<Math.abs(ia-U)},getOrderByFields:function(){var J=this.orderByFields||this._orderBy;return this.supportsAdvancedQueries&&J?w.filter(J,function(U){U=U.split(" ")[0];return!!this._getField(U,!0)},this):null},_createFields:function(J){var U=J?J.length:0,ia,K=[];for(ia=0;ia<U;ia++)K.push(new L(J[ia]));this.fields=K},_createFieldsIndex:function(){if(this._fieldsIndexDirty){var J=this.fields,U=J?J.length:0;if(50<U&&this._canUseFieldsIndex()){var ia=new Map;for(var K=new Map,T=0;T<U;T++){var fa=J[T];ia.set(fa.name,
fa);K.set(fa.name.toLowerCase(),fa)}ia={caseSensitive:ia,caseInsensitive:K}}this._fieldsIndex=ia;this._fieldsIndexDirty=!1}},_canUseFieldsIndex:function(){var J=l.Map;return!("function"!==typeof l.Proxy||"function"!==typeof l.Proxy.revocable||"function"!==typeof J||!J.prototype||"function"!==typeof J.prototype.set)},_getField:function(J,U){var ia=this.fields;if(!ia||0===ia.length)return null;U&&(J=J.toLowerCase());this._createFieldsIndex();var K=this._fieldsIndex;if(K)return K=U?K.caseInsensitive:
K.caseSensitive,K.get(J);var T;w.some(ia,function(fa){var ra=!1;(ra=U?fa&&fa.name.toLowerCase()===J?!0:!1:fa&&fa.name===J?!0:!1)&&(T=fa);return ra});return T},_getDateOpts:function(){this._dtOpts||(this._dtOpts={properties:w.map(w.filter(this.fields,function(J){return!(!J||"esriFieldTypeDate"!==J.type)}),function(J){return J.name})});return this._dtOpts},_applyNormalized:function(J,U){J&&U&&w.forEach(J,function(ia,K){ia&&U[K]&&ia.setGeometry(U[K])})},_editHandler:function(J,U,ia,K,T,fa){T=J.addResults;
var ra=J.updateResults;J=J.deleteResults;var Ba,Ma=this.objectIdField,Ha=this._mode,Ua=this._isTable;var Ta=this.editFieldsInfo;var Oa=this.getOutFields()||[];var Xa=Ta&&Ta.creatorField,$a=Ta&&Ta.creationDateField,bb=Ta&&Ta.editorField,hb=Ta&&Ta.editDateField;Ta=Ta&&Ta.realm;-1===w.indexOf(Oa,"*")&&(Xa&&-1===w.indexOf(Oa,Xa)&&(Xa=null),$a&&-1===w.indexOf(Oa,$a)&&($a=null),bb&&-1===w.indexOf(Oa,bb)&&(bb=null),hb&&-1===w.indexOf(Oa,hb)&&(hb=null));var gb=$a||hb?(new Date).getTime():null,mb=Xa||bb?this.getUserId():
void 0;mb&&Ta&&(mb=mb+"@"+Ta);if(T){var rb=this.globalIdField;for(Ta=0;Ta<T.length;Ta++)if(T[Ta]=new pa(T[Ta]),!Ua){var ob=T[Ta];if(ob.success){var eb=ob.objectId;Oa=U[Ta];(Ba=Oa._graphicsLayer)&&Ba!==this&&Ba.remove(Oa);Ba=Oa.attributes||{};Ba[Ma]=eb;eb=ob.globalId;rb&&eb&&(Ba[rb]=eb);Xa&&(Ba[Xa]=mb);bb&&(Ba[bb]=mb);$a&&(Ba[$a]=gb);hb&&(Ba[hb]=gb);Oa.setAttributes(Ba);Ha._init&&Ha.drawFeature(Oa)}}}if(ra)for(Ta=0;Ta<ra.length;Ta++)if(ra[Ta]=new pa(ra[Ta]),!Ua&&(ob=ra[Ta],ob.success)){eb=ob.objectId;
Oa=ia[eb];if(U=Ha._getFeature(eb))U.geometry!==Oa.geometry&&Oa.geometry&&U.setGeometry(sa.fromJson(Oa.geometry.toJson())),U.attributes!==Oa.attributes&&Oa.attributes&&U.setAttributes(h.mixin(U.attributes,Oa.attributes)),this._repaint(U,eb);Oa=U||Oa;Ba=Oa.attributes||{};bb&&(Ba[bb]=mb);hb&&(Ba[hb]=gb);Oa.setAttributes(Ba)}if(J){ia=[];for(Ta=0;Ta<J.length;Ta++)if(J[Ta]=new pa(J[Ta]),!Ua&&(ob=J[Ta],ob.success&&(eb=ob.objectId,Oa=Ha._getFeature(eb))))this._unSelectFeatureIIf(eb,Ha)&&ia.push(Oa),Oa._count=
0,Ha._removeFeatureIIf(eb);if(0<ia.length)this.onSelectionComplete(ia,Pa.SELECTION_SUBTRACT)}this._resolve([T,ra,J],"onEditsComplete",K,fa)},_sendAttachment:function(J,U,ia,K,T){var fa=this;return t({url:this._url.path+"/"+U+"/"+("add"===J?"addAttachment":"updateAttachment"),form:ia,content:h.mixin(this._url.query,{f:"json",token:this._getToken()||void 0}),callbackParamName:"callback.html",handleAs:"json"}).addCallback(function(ra){var Ba="add"===J?"onAddAttachmentComplete":"onUpdateAttachmentComplete";
ra=new pa(ra["add"===J?"addAttachmentResult":"updateAttachmentResult"]);ra.attachmentId=ra.objectId;ra.objectId=U;fa._resolve([ra],Ba,K);return ra}).addErrback(function(ra){fa._resolve([ra],null,T,null,!0)})},_repaint:function(J,U,ia){U=p.isDefined(U)?U:J.attributes[this.objectIdField];U in this._selectedFeatures&&this._selectionSymbol||J.setSymbol(J.symbol,ia)},_getKind:function(J){var U=this._trackManager;return U?U.isLatestObservation(J)?1:0:0}});h.mixin(Pa,{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"});Ca._createWrappers(Pa);Object.defineProperty(Pa.prototype,"graphics",{get:function(){return this._hasOnDemandDrillMode()?this._mode.graphics:this._graphicsVal},set:function(J){this._graphicsVal=J}});Object.defineProperty(Pa.prototype,"name",{get:function(){return this.arcgisProps&&this.arcgisProps.title?
this.arcgisProps.title:this._name},set:function(J){this._name=J;this.loaded&&this.arcgisProps&&(this.arcgisProps.title=null)}});Object.defineProperty(Pa.prototype,"fields",{get:function(){return this._fields},set:function(J){J&&this._canUseFieldsIndex()&&(J=new Proxy(J,{set:h.hitch(this,function(U,ia,K){if(ia)if("length"===ia)this._fieldsIndexDirty=!0;else{var T=Number(ia);"number"!==typeof T||isNaN(T)||(this._fieldsIndexDirty=!0)}U[ia]=K;return!0})}));this._fields=J;this._fieldsIndexDirty=!0}});
e("extend-esri")&&h.setObject("layers.FeatureLayer",Pa,b);return Pa})},"esri/arcadeProfiles/labelingProfile":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../promiseList ../arcade/Feature ../support/expressionUtils ./utils".split(" "),function(G,x,c,r,h,w,q,n){G=new (G(null,{declaredClass:"esri.arcadeProfiles.LabelingProfile",defaults:{context:{vars:{$feature:"any"}}},initialize:function(f){var g=[];n.hasGeometryOperations(f)&&g.push(q.enableGeometryOperations());return h(g)},
isAsync:function(f){return!1},parse:function(f){return q.createSyntaxTree(f.expression)},compile:function(f){var g=x.clone(this.defaults.context);return f.syntaxTree?q.createFunction(f.syntaxTree,g):null},getEvalOptions:function(f){var g=f.feature;return{context:{vars:{$feature:g&&f.expression.hasVariable("$feature")?w.createFromGraphicLikeObject(g.geometry,g.attributes,f.layer):null},spatialReference:f.spatialReference}}}}));c("extend-esri")&&x.setObject("arcadeProfiles.labelingProfile",G,r);return G})},
"esri/tasks/QueryTask":function(){define("require dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/Deferred dojo/_base/json dojo/DeferredList ../kernel ../sniff ../request ../deferredUtils ../geometry/Extent ../geometry/normalizeUtils ./Task ./FeatureSet".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m){var e=f("esri-pbf"),b=x(null,{url:null,query:null,requestOptions:null,pagination:null,pageSize:null,_fetchDfd:null,_startPage:null,_result:null,constructor:function(t){this._handleSuccess=
c.hitch(this,this._handleSuccess);this._handleError=c.hitch(this,this._handleError);c.mixin(this,t);null==this.pagination&&(this.pagination=!1);null==this.pageSize&&(this.pageSize=1E3)},execute:function(){var t=new h(this._canceler);this._fetchDfd=t;this._result=null;this._sendRequest();return t.promise},_canceler:function(t){var z=t._pendingRequest;if(!t.isFulfilled()&&z&&!z.isFulfilled()){z.cancel();var C=z.results&&z.results[1]}t._pendingRequest=null;return C},_sendRequest:function(t){var z=this.query;
this.pagination&&(this._startPage=z.resultOffset=null==t?0:t,z.resultRecordCount=this.pageSize);t=this.requestOptions;this._fetchDfd._pendingRequest=g({url:this.url,content:z,handleAs:"pbf"===z.f?"arraybuffer":"json",callbackParamName:"callback",timeout:t&&t.timeout},t);this._fetchDfd._pendingRequest.then(this._handleSuccess).otherwise(this._handleError)},_handleSuccess:function(t){this.pagination?(t.exceededTransferLimit&&this._sendRequest(this._startPage+this.pageSize),this._result?this._result.features=
this._result.features.concat(t.features):this._result=t,this._fetchDfd.progress(t),t.exceededTransferLimit||this._fetchDfd.resolve(this._result)):(this._fetchDfd.progress(t),this._fetchDfd.resolve(t))},_handleError:function(t){this._fetchDfd.reject(t)}}),p=x(l,{declaredClass:"esri.tasks.QueryTask",_eventMap:{complete:["featureSet"],"execute-for-count-complete":["count"],"execute-for-ids-complete":["objectIds"],"execute-relationship-query-complete":["featureSets"]},constructor:function(t,z){this._handler=
c.hitch(this,this._handler);this._relationshipQueryHandler=c.hitch(this,this._relationshipQueryHandler);this._executeForIdsHandler=c.hitch(this,this._executeForIdsHandler);this._countHandler=c.hitch(this,this._countHandler);this._extentHandler=c.hitch(this,this._extentHandler);this.source=z&&z.source;this.gdbVersion=z&&z.gdbVersion;this.registerConnectEvents()},__msigns:[{n:"execute",c:4,a:[{i:0,p:["geometry"]}],e:2},{n:"rawExecute",c:2,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(){},onRawExecuteComplete:function(){},onExecuteRelationshipQueryComplete:function(){},onExecuteForIdsComplete:function(){},onExecuteForCountComplete:function(){},onExecuteForExtentComplete:function(){},execute:function(t,z,C,y,D){var B=D.assembly;t=this._encode(c.mixin({},this._url.query,{f:y&&y.format||"json"},t.toJson(B&&B[0])));var u=this._handler,
E=this._errorHandler;this.source&&(y={source:this.source.toJson()},t.layer=w.toJson(y));this.gdbVersion&&(t.gdbVersion=this.gdbVersion);var v="pbf"===t.f;if(v){var A;e||(A="QueryTask.execute: 'pbf' format is not supported in your browser.");if(A)return t=new h,t.addErrback(function(F){E(F,C,D.dfd)}),t.reject(Error(A)),t}A=this.requestOptions;A=g({url:this._url.path+"/query",content:t,callbackParamName:"callback",handleAs:v?"arraybuffer":"json",timeout:A&&A.timeout},A);t=[A];v&&t.push(p.loadPBFReader());
(new q(t)).then(function(F){D.dfd.isFulfilled()||(F=F[0],F[0]?u(F[1],v,z,C,D.dfd):E(F[1],C,D.dfd))});return A},rawExecute:function(t,z,C){z=z||{};t=this._encode(c.mixin({},this._url.query,{f:z.format||"json"},t.toJson(C.assembly&&C.assembly[0])));this.source&&(t.layer=w.toJson({source:this.source.toJson()}));this.gdbVersion&&(t.gdbVersion=this.gdbVersion);return(new b({url:this._url.path+"/query",query:t,requestOptions:this.requestOptions,pagination:z.pagination,pageSize:z.pageSize})).execute().then(null,
null,function(y){C.dfd.progress(y)}).then(c.hitch(this,function(y){this._successHandler([y],"onRawExecuteComplete",null,C.dfd)})).otherwise(c.hitch(this,function(y){this._errorHandler(y,null,C.dfd)}))},executeRelationshipQuery:function(t,z,C){t=this._encode(c.mixin({},this._url.query,{f:"json"},t.toJson()));var y=this._relationshipQueryHandler,D=this._errorHandler;this.gdbVersion&&(t.gdbVersion=this.gdbVersion);var B=new h(a._dfdCanceller),u=this.requestOptions,E=this._url.path;this.source&&void 0!==
this.source.mapLayerId&&null!==this.source.mapLayerId&&E.endsWith("/dynamicLayer")&&(E=E.slice(0,-13),E=E+"/"+this.source.mapLayerId);B._pendingDfd=g({url:E+"/queryRelatedRecords",content:t,callbackParamName:"callback",timeout:u&&u.timeout,load:function(v,A){y(v,A,z,C,B)},error:function(v){D(v,C,B)}},u);return B},executeForIds:function(t,z,C,y){var D=y.assembly;t=this._encode(c.mixin({},this._url.query,{f:"json",returnIdsOnly:!0},t.toJson(D&&D[0])));var B=this._executeForIdsHandler,u=this._errorHandler;
this.source&&(D={source:this.source.toJson()},t.layer=w.toJson(D));this.gdbVersion&&(t.gdbVersion=this.gdbVersion);D=this.requestOptions;return g({url:this._url.path+"/query",content:t,callbackParamName:"callback",timeout:D&&D.timeout,load:function(E,v){B(E,v,z,C,y.dfd)},error:function(E){u(E,C,y.dfd)}},D)},executeForCount:function(t,z,C,y){var D=y.assembly;t=this._encode(c.mixin({},this._url.query,{f:"json",returnIdsOnly:!0,returnCountOnly:!0},t.toJson(D&&D[0])));var B=this._countHandler,u=this._errorHandler;
this.source&&(D={source:this.source.toJson()},t.layer=w.toJson(D));this.gdbVersion&&(t.gdbVersion=this.gdbVersion);D=this.requestOptions;return g({url:this._url.path+"/query",content:t,callbackParamName:"callback",timeout:D&&D.timeout,load:function(E,v){B(E,v,z,C,y.dfd)},error:function(E){u(E,C,y.dfd)}},D)},executeForExtent:function(t,z,C,y){var D=y.assembly;t=this._encode(c.mixin({},this._url.query,{f:"json",returnExtentOnly:!0,returnCountOnly:!0},t.toJson(D&&D[0])));var B=this._extentHandler,u=
this._errorHandler;this.source&&(D={source:this.source.toJson()},t.layer=w.toJson(D));this.gdbVersion&&(t.gdbVersion=this.gdbVersion);D=this.requestOptions;return g({url:this._url.path+"/query",content:t,callbackParamName:"callback",timeout:D&&D.timeout,load:function(E,v){B(E,v,z,C,y.dfd)},error:function(E){u(E,C,y.dfd)}},D)},_handler:function(t,z,C,y,D){try{t&&z&&(t=p.pbfDeps.optimizedFeatures.convertToFeatureSet(p.pbfDeps.pbfQueryUtils.parsePBFFeatureQuery(t)));var B=new m(t);this._successHandler([B],
"onComplete",C,D)}catch(u){this._errorHandler(u,y,D)}},_relationshipQueryHandler:function(t,z,C,y,D){try{var B=t.geometryType,u=t.spatialReference,E={};r.forEach(t.relatedRecordGroups,function(v){var A={};A.geometryType=B;A.spatialReference=u;A.features=v.relatedRecords;A=new m(A);if(null!=v.objectId)E[v.objectId]=A;else for(var F in v)v.hasOwnProperty(F)&&"relatedRecords"!==F&&(E[v[F]]=A)});this._successHandler([E],"onExecuteRelationshipQueryComplete",C,D)}catch(v){this._errorHandler(v,y,D)}},_executeForIdsHandler:function(t,
z,C,y,D){try{this._successHandler([t.objectIds],"onExecuteForIdsComplete",C,D)}catch(B){this._errorHandler(B,y,D)}},_countHandler:function(t,z,C,y,D){try{var B=t.features,u=t.objectIds;if(u)var E=u.length;else{if(B)throw Error("Unable to perform query. Please check your parameters.");E=t.count}this._successHandler([E],"onExecuteForCountComplete",C,D)}catch(v){this._errorHandler(v,y,D)}},_extentHandler:function(t,z,C,y,D){try{t.extent&&(t.extent=new d(t.extent)),this._successHandler([t],"onExecuteForExtentComplete",
C,D)}catch(B){this._errorHandler(B,y,D)}}});p.loadPBFReader=function(){var t=new h;p.pbfDeps?t.resolve():G(["./support/pbfDeps"],function(z){p.pbfDeps=z;t.isFulfilled()||t.resolve()});return t.promise};k._createWrappers(p);f("extend-esri")&&c.setObject("tasks.QueryTask",p,n);return p})},"dojo/DeferredList":function(){define(["./_base/kernel","./_base/Deferred","./_base/array"],function(G,x,c){G.DeferredList=function(r,h,w,q,n){var f=[];x.call(this);var g=this;0!==r.length||h||this.resolve([0,[]]);
var a=0;c.forEach(r,function(d,k){function l(m,e){f[k]=[m,e];a++;a===r.length&&g.resolve(f)}d.then(function(m){h?g.resolve([k,m]):l(!0,m)},function(m){w?g.reject(m):l(!1,m);if(q)return null;throw m;})})};G.DeferredList.prototype=new x;G.DeferredList.prototype.gatherResults=function(r){r=new G.DeferredList(r,!1,!0,!1);r.addCallback(function(h){var w=[];c.forEach(h,function(q){w.push(q[1])});return w});return r};return G.DeferredList})},"esri/tasks/Task":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/json dojo/has ../kernel ../deferredUtils ../urlUtils ../Evented".split(" "),
function(G,x,c,r,h,w,q,n){G=G(n,{declaredClass:"esri.tasks._Task",_eventMap:{error:["error"],complete:["result"]},constructor:function(f,g){f&&x.isString(f)&&(this._url=q.urlToObject(this.url=f));g&&g.requestOptions&&(this.requestOptions=g.requestOptions);this.normalization=!0;this._errorHandler=x.hitch(this,this._errorHandler);this.registerConnectEvents()},_useSSL:function(){var f=this._url,g=/^http:/i;this.url&&(this.url=this.url.replace(g,"https:"));f&&f.path&&(f.path=f.path.replace(g,"https:"))},
_encode:function(f,g,a){var d={},k;for(k in f)if("declaredClass"!==k){var l=f[k];var m=typeof l;if(null!==l&&void 0!==l&&"function"!==m)if(x.isArray(l)){d[k]=[];var e=l.length;for(m=0;m<e;m++)d[k][m]=this._encode(l[m])}else"object"===m?l.toJson&&(m=l.toJson(a&&a[k]),"esri.tasks.FeatureSet"===l.declaredClass&&m.spatialReference&&(m.sr=m.spatialReference,delete m.spatialReference),d[k]=g?m:c.toJson(m)):d[k]=l}return d},_successHandler:function(f,g,a,d){g&&this[g].apply(this,f);a&&a.apply(null,f);d&&
w._resDfd(d,f)},_errorHandler:function(f,g,a){this.onError(f);g&&g(f);a&&a.errback(f)},setNormalization:function(f){this.normalization=f},onError:function(){}});r("extend-esri")&&(h.Task=G);return G})},"esri/tasks/FeatureSet":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../graphic ../SpatialReference ../graphicsUtils ../geometry/Polygon ../geometry/jsonUtils ../symbols/jsonUtils".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d){G=G(null,{declaredClass:"esri.tasks.FeatureSet",
constructor:function(k,l){if(k){x.mixin(this,k);var m=this.features=this.features||[],e=k.spatialReference;e=this.spatialReference=a.createInstance(n.simpleConstructor,e);var b=a.getGeometryType(k.geometryType);this.geometryType=k.geometryType;k.fields&&(this.fields=k.fields);k=a.supportsLazyUnquantization(this.geometryType);var p=a.unquantizeFunction(this.geometryType,this.transform),t=!!(l&&k&&p),z=b&&(t?b.accessorConstructor:b.simpleConstructor);c.forEach(m,function(C,y){var D=a.createInstance(q.simpleConstructor),
B=C.geometry;if(b&&B){var u=D.geometry=a.createInstance(z,t?null:B);u.setSpatialReference(B.spatialReference?a.createInstance(n.simpleConstructor,B.spatialReference):e);t&&u.setupLazyUnquantization(p,B)}D.symbol=C.symbol?d.fromJson(C.symbol):null;D.attributes=C.attributes;m[y]=D});t||this._hydrate()}else this.features=[]},displayFieldName:null,geometryType:null,spatialReference:null,fieldAliases:null,toJson:function(k){var l={};this.displayFieldName&&(l.displayFieldName=this.displayFieldName);this.fields&&
(l.fields=this.fields);this.spatialReference?l.spatialReference=this.spatialReference.toJson():this.features[0]&&this.features[0].geometry&&(l.spatialReference=this.features[0].geometry.spatialReference.toJson());this.features[0]&&(this.features[0].geometry&&(l.geometryType=a.getJsonType(this.features[0].geometry)),l.features=f._encodeGraphics(this.features,k));l.geometryType=l.geometryType||this.geometryType;l.exceededTransferLimit=this.exceededTransferLimit;l.transform=this.transform;return w.fixJson(l)},
_hydrate:function(){a.unquantize(this.features,this.geometryType,this.transform);this.transform=null},quantize:function(k){if(!this.geometryType)return this.transform=null,this;var l=k.translate[0],m=k.translate[1],e=k.scale[0],b=k.scale[1],p=this.features,t=function(D,B,u){var E,v=[];var A=0;for(E=D.length;A<E;A++){var F=D[A];if(0<A){var I=B(F[0]);F=u(F[1]);if(I!==N||F!==da){v.push([I-N,F-da]);var N=I;var da=F}}else N=B(F[0]),da=u(F[1]),v.push([N,da])}return 0<v.length?v:null},z=function(D,B,u){if("esriGeometryPoint"===
D)return function(E){E.x=B(E.x);E.y=u(E.y);return E};if("esriGeometryPolyline"===D||"esriGeometryPolygon"===D)return function(E){var v;var A=E.rings||E.paths;var F=[];var I=0;for(v=A.length;I<v;I++){var N=A[I];(N=t(N,B,u))&&F.push(N)}return 0<F.length?(E.rings?E.rings=F:E.paths=F,E):null};if("esriGeometryMultipoint"===D)return function(E){var v=t(E.points,B,u);return 0<v.length?(E.points=v,E):null};if("esriGeometryEnvelope"===D)return function(E){return E}}(this.geometryType,function(D){return Math.round((D-
l)/e)},function(D){return Math.round((m-D)/b)}),C;var y=0;for(C=p.length;y<C;y++)p[y].geometry&&(z(p[y].geometry)||p[y].setGeometry(null));this.transform=k;return this}});G.createGraphics=function(k){var l=k.geometryType,m=a.createInstance(n.simpleConstructor,k.spatialReference),e=a.getGeometryType(l).accessorConstructor,b=a.unquantizeFunction(l,k.transform);return c.map(k.features,function(p,t){t=a.createInstance(q.simpleConstructor);var z=p.geometry;if(z){var C=t.geometry=a.createInstance(e);C.setSpatialReference(m);
C.setupLazyUnquantization(b,z)}t.attributes=p.attributes;return t})};G.createPolygon=function(k,l,m){if(k){var e=a.createInstance(g.accessorConstructor);e.setSpatialReference(l);l=a.unquantizeFunction("esriGeometryPolygon",m);e.setupLazyUnquantization(l,k)}return e};r("extend-esri")&&x.setObject("tasks.FeatureSet",G,h);return G})},"esri/tasks/StatisticDefinition":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(G,x,c,r){G=G(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}}});c("extend-esri")&&x.setObject("tasks.StatisticDefinition",G,r);return G})},"esri/layers/FeatureType":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../symbols/jsonUtils ./FeatureTemplate ./support/domainUtils".split(" "),
function(G,x,c,r,h,w,q,n,f){G=G(null,{declaredClass:"esri.layers.FeatureType",constructor:function(g){if(g&&x.isObject(g)){this.id=g.id;this.name=g.name;var a=g.symbol;a&&(this.symbol=q.fromJson(a));a=g.domains;var d=this.domains={};for(k in a)a.hasOwnProperty(k)&&(d[k]=f.fromJson(a[k]));if(g=g.templates){var k=this.templates=[];for(a=0;a<g.length;a++)k.push(new n(g[a]))}}},toJson:function(){var g={id:this.id,name:this.name,symbol:this.symbol&&this.symbol.toJson()},a,d=this.domains,k=this.templates,
l=w.fixJson;if(d){var m=g.domains={};for(a in d)d.hasOwnProperty(a)&&(m[a]=d[a]&&d[a].toJson());l(m)}k&&(g.templates=c.map(k,function(e){return e.toJson()}));return l(g)}});r("extend-esri")&&x.setObject("layers.FeatureType",G,h);return G})},"esri/layers/FeatureTemplate":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../graphic".split(" "),function(G,x,c,r,h,w){G=G(null,{declaredClass:"esri.layers.FeatureTemplate",constructor:function(q){q&&x.isObject(q)&&(this.name=
q.name,this.description=q.description,this.drawingTool=q.drawingTool,this.thumbnail=q.thumbnail,q=q.prototype,this.prototype=new w(q.geometry,null,q.attributes))},toJson:function(){return h.fixJson({name:this.name,description:this.description,drawingTool:this.drawingTool,thumbnail:h.fixJson(x.clone(this.thumbnail)),prototype:this.prototype&&this.prototype.toJson()})}});x.mixin(G,{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"});
c("extend-esri")&&x.setObject("layers.FeatureTemplate",G,r);return G})},"esri/layers/support/domainUtils":function(){define("dojo/_base/lang dojo/has ../../kernel ../RangeDomain ../CodedValueDomain ../InheritedDomain".split(" "),function(G,x,c,r,h,w){var q={fromJson:function(n){if(n)switch(n.type){case "range":var f=new r(n);break;case "codedValue":f=new h(n);break;case "inherited":f=new w(n)}return f}};x("extend-esri")&&G.setObject("layers.support.domainUtils",q,c);return q})},"esri/layers/FeatureSubtype":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./support/domainUtils".split(" "),
function(G,x,c,r,h,w){G=G(null,{declaredClass:"esri.layers.FeatureSubtype",constructor:function(q){if(q&&x.isObject(q)){this.code=q.code;this.name=q.name;this.defaultValues=q.defaultValues;q=q.domains;var n=this.domains={},f;for(f in q)q.hasOwnProperty(f)&&(n[f]=w.fromJson(q[f]))}},toJson:function(){var q=h.fixJson,n={code:this.code,name:this.name,defaultValues:q(x.clone(this.defaultValues))},f=this.domains;if(f){var g=n.domains={},a;for(a in f)f.hasOwnProperty(a)&&(g[a]=f[a]&&f[a].toJson());q(g)}return q(n)}});
c("extend-esri")&&x.setObject("layers.FeatureSubtype",G,r);return G})},"esri/layers/FeatureEditResult":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(G,x,c,r){G=G(null,{declaredClass:"esri.layers.FeatureEditResult",constructor:function(h){h&&x.isObject(h)&&(this.objectId=h.objectId,this.globalId=h.globalId,this.success=h.success,h.success||(h=h.error,this.error=Error(),this.error.code=h.code,this.error.message=h.description))}});c("extend-esri")&&x.setObject("layers.FeatureEditResult",
G,r);return G})},"esri/layers/SnapshotMode":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../SpatialReference ../srUtils ../tasks/query ./RenderMode ./support/ParallelSnapshot".split(" "),function(G,x,c,r,h,w,q,n,f){G=G([n],{declaredClass:"esri.layers._SnapshotMode",maxFeatures:5E4,maxRecordCountFactor:1,scaleToTileFactor:1,_isSuspendedAtStartup:!1,_pendingRefresh:!1,constructor:function(g){this.featureLayer=g;this._featureMap={};this._hasUpdateError=this._hasPartialFeatures=
!1;this._drawFeatures=x.hitch(this,this._drawFeatures);this._queryErrorHandler=x.hitch(this,this._queryErrorHandler);this._handleSuccess=x.hitch(this,this._handleSuccess);this._handleError=x.hitch(this,this._handleError);this._handleProgress=x.hitch(this,this._handleProgress)},startup:function(){if(!this._started||this._isSuspendedAtStartup){this.inherited(arguments);var g=this.featureLayer,a=g.reHostedFS.test(g.url);this.pagination=g.queryPagination&&null!=g.maxRecordCount;this._cacheHintSupported=
g._isCacheHintSupported();this.scaleToTileFactor=this._getScaleToTileFactor();a&&this.pagination&&(this._parallelSnapshot=new f({layer:g,mode:this,queryTask:g._task}));this._isSuspendedAtStartup=g.suspended;this._startup()}},propertyChangeHandler:function(g){this._init&&(g?this.featureLayer._collection?console.log("FeatureLayer: layer created by value (from a feature collection) does not support definition expressions and time definitions. Layer id \x3d "+this.featureLayer.id):this._fetchAll():this._applyTimeFilter())},
destroy:function(){this._isSuspendedAtStartup=this._pendingRefresh=!1;this._cancelPendingRequest(this._pendingRequest);this._parallelSnapshot&&this._parallelSnapshot.destroy();this.inherited(arguments)},drawFeature:function(g){var a=g.attributes[this.featureLayer.objectIdField];this._addFeatureIIf(a,g);this._incRefCount(a)},resume:function(){this._isSuspendedAtStartup||this._pendingRefresh?(this._isSuspendedAtStartup=!1,this._startup()):this.propertyChangeHandler(0)},refresh:function(){var g=this.featureLayer;
g._collection?(g._fireUpdateStart(),g._refresh(!0),g._fireUpdateEnd()):this._fetchAll()},hasAllFeatures:function(){return!this._hasPartialFeatures},hasUpdateError:function(){return this._hasUpdateError},canFetchPBF:function(g){return this.inherited(arguments)&&this.featureLayer._canFetchPBFForQuery(g)},_startup:function(){this.featureLayer._collection?this._applyTimeFilter():this._fetchAll()},_fetchAll:function(){var g=this.featureLayer;g._collection||g.suspended||!g.isQueryable()?this._pendingRefresh=
g.suspended:(this._pendingRefresh=!1,g._fireUpdateStart(),this._clearIIf(),this._hasUpdateError=this._hasPartialFeatures=!1,this._parallelSnapshot?this._parallelSnapshot.fetch().then(this._handleSuccess,this._handleError,this._handleProgress):this._sendRequest())},_handleSuccess:function(g){this._hasPartialFeatures=g.hasPartialFeatures;this._hasUpdateError=g.hasUpdateError;this.featureLayer._fireUpdateEnd(null)},_handleError:function(g){this._queryErrorHandler(g)},_handleProgress:function(g){g.isError?
this.featureLayer._errorHandler(g.error):this._addFeatures(g.features)},_getScaleToTileFactor:function(){var g=this.featureLayer.tileMaxRecordCount,a=this.featureLayer.maxRecordCount,d=1;null!=g&&null!=a&&(d=Number((g/a).toFixed(2)));return d},_getPageSize:function(g){var a=this.featureLayer.tileMaxRecordCount;a="tile"===g.resultType&&a?a:this.featureLayer.maxRecordCount;g.maxRecordCountFactor&&(a=Math.floor(a*g.maxRecordCountFactor));return a},_sendRequest:function(g){var a=this.featureLayer,d=this._createQueryInfo(),
k=d.query;this.pagination&&(this._pageSize=this._getPageSize(k),this._start=k.start=null==g?0:g,k.num=this._pageSize);this._pendingRequest&&this._cancelPendingRequest(this._pendingRequest);this._pendingRequest=a._task.execute(k,this._drawFeatures,this._queryErrorHandler,d.pbf?{format:"pbf"}:null)},_drawFeatures:function(g){this._pendingRequest=null;this.featureLayer._isImageService&&10.7>this.featureLayer.version&&void 0===g.exceededTransferLimit&&(g.exceededTransferLimit=g.features.length===this.featureLayer.maxRecordCount);
var a=this.featureLayer,d=g.exceededTransferLimit,k=d&&!a._collection;g=this._checkMaxLimit(g.features);var l=g.maxLimitReached;this._addFeatures(g.features);this.pagination&&k&&!l||(this._hasPartialFeatures=!!d,a._fireUpdateEnd(null,d?{queryLimitExceeded:!0}:null));k&&(this.pagination&&!l&&this._sendRequest(this._start+this._pageSize),a.onQueryLimitExceeded())},_queryErrorHandler:function(g){this._pendingRequest=null;this._hasUpdateError=this._hasPartialFeatures=!0;var a=this.featureLayer;a._errorHandler(g);
a._fireUpdateEnd(g)},_checkMaxLimit:function(g){var a=g?g.length:0,d=this.featureLayer.graphics.length+a,k=d>=this.maxFeatures;if(k){var l=d-this.maxFeatures;l&&g.splice(a-l,l)}return{maxLimitReached:k,featuresDiscarded:d>this.maxFeatures,features:g}},_createQueryInfo:function(){var g=this.featureLayer,a=new q;a.outFields=g.getOutFields();a.where=g._getAttributeFilter()||"1\x3d1";a.returnGeometry=!0;a.outSpatialReference=w.createSpatialReference(this.map.spatialReference.toJson());a.timeExtent=g.getTimeDefinition();
a.maxAllowableOffset=g._maxOffset;a.quantizationParameters=g._quantizationParameters;a.orderByFields=g.supportsAdvancedQueries?g.getOrderByFields():null;a.multipatchOption=g.multipatchOption;g._ts&&(a._ts=(new Date).getTime());this._cacheHintSupported&&g._enableCacheHint(a);var d=this.canFetchPBF(a);g._enableEditModeQuantization(a,d);this._applyMaxRecordCountFactor(a,d);return{query:a,pbf:d}},_applyMaxRecordCountFactor:function(g,a){var d=this.featureLayer.advancedQueryCapabilities;this.featureLayer._isCacheHintEnabled(g)&&
d&&d.supportsMaxRecordCountFactor&&("tile"!==g.resultType&&1<this.scaleToTileFactor&&(g.maxRecordCountFactor=this.scaleToTileFactor),a&&1<this.maxRecordCountFactor&&(g.maxRecordCountFactor=this.maxRecordCountFactor),5<g.maxRecordCountFactor&&(g.maxRecordCountFactor=5))},_addFeatures:function(g){var a=this.featureLayer,d=a.objectIdField,k=g.length,l=a._selectedFeatures,m=a.mode===a.constructor.MODE_AUTO;a._fireUpdateStart();a._sortFeatures(g);for(a=0;a<k;a++){var e=g[a];var b=e.attributes[d];var p=
this._addFeatureIIf(b,e);this._incRefCount(b);m&&p!==e&&l[b]&&(p.setGeometry(e.geometry),p.setAttributes(e.attributes))}this._applyTimeFilter(!0)}});c("extend-esri")&&x.setObject("layers._SnapshotMode",G,r);return G})},"esri/layers/RenderMode":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/array","../sniff","../kernel"],function(G,x,c,r,h){var w=!!r("esri-pbf"),q=!!r("esri-featurelayer-pbf");G=G(null,{declaredClass:"esri.layers._RenderMode",enablePBFQuery:w&&q,initialize:function(n){this.map=
n;this._init=!0},startup:function(){this._started=!0},propertyChangeHandler:function(n){},destroy:function(){this._init=this._started=!1},drawFeature:function(n){},suspend:function(){},resume:function(){},refresh:function(){},hasAllFeatures:function(){return!0},hasUpdateError:function(){return!1},canFetchPBF:function(n){return!(!this.featureLayer._canFetchPBF()||!this.enablePBFQuery)},_incRefCount:function(n){(n=this._featureMap[n])&&n._count++},_decRefCount:function(n){(n=this._featureMap[n])&&n._count--},
_getFeature:function(n){return this._featureMap[n]},_addFeatureIIf:function(n,f){var g=this._featureMap,a=g[n],d=this.featureLayer;a||(g[n]=f,d._add(f),f._count=0);return a||f},_removeFeatureIIf:function(n){var f=this._featureMap[n],g=this.featureLayer;if(f){if(f._count)return;delete this._featureMap[n];g._remove(f)}return f},_registerFeature:function(n,f){var g=this._featureMap,a=g[n];a?(a.attributes=f.attributes,a.geometry=f.geometry):(g[n]=f,f._count=0,f._layer=f._graphicsLayer=f._sourceLayer=
this.featureLayer);return a||f},_unregisterFeature:function(n){var f=this._featureMap,g=f[n];g&&!g._count&&(delete f[n],g._graphicsLayer=null)},_clearIIf:function(){var n=this.featureLayer;var f=n.graphics,g=n._selectedFeatures,a=n.getSelectedFeatures().length,d=n.objectIdField;if(a)for(n=f.length-1;0<=n;n--){a=f[n];var k=a.attributes[d];k in g?a._count=1:(a._count=0,this._removeFeatureIIf(k))}else n.clear(),this._featureMap={}},_cancelPendingRequest:function(n){if(n)try{n.cancel()}catch(f){}},_toggleVisibility:function(n){var f=
this.featureLayer,g=f.graphics,a=n?"show":"hide",d,k=g.length;n=n&&f._ager;for(d=0;d<k;d++){var l=g[d];l[a]();n&&f._repaint(l)}},_applyTimeFilter:function(n){var f=this.featureLayer;if(f.timeInfo&&!f.suspended){n||f._fireUpdateStart();var g=f._trackManager;g&&g.clearTracks();var a=f.getTimeDefinition(),d=f._getOffsettedTE(f._mapTimeExtent);d?(d=f._getTimeOverlap(a,d))?(a=f._filterByTime(f.graphics,d.startTime,d.endTime),g&&g.addFeatures(a.match),c.forEach(a.match,function(k){var l=k._shape;k.visible||
(k.show(),(l=k._shape)&&l._moveToFront());f._ager&&l&&f._repaint(k)}),c.forEach(a.noMatch,function(k){k.visible&&k.hide()})):this._toggleVisibility(!1):(g&&g.addFeatures(f.graphics),this._toggleVisibility(!0));g&&(g.moveLatestToFront(),g.drawTracks());n||f._fireUpdateEnd()}}});r("extend-esri")&&x.setObject("layers._RenderMode",G,h);return G})},"esri/layers/support/ParallelSnapshot":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has dojo/Deferred ../../kernel".split(" "),
function(G,x,c,r,h,w){G=G(null,{declaredClass:"esri.layers.support.ParallelSnapshot",layer:null,mode:null,queryTask:null,batchSize:5,_queryInfo:null,_fetchDfd:null,_startPage:null,_lastPage:null,_pageSize:null,_maxPages:null,_requests:null,constructor:function(q){x.mixin(this,q);this._requests={}},destroy:function(){this.cancel()},fetch:function(){var q=new h;this.cancel(!0);this._queryInfo=this.mode._createQueryInfo();this._pageSize=this.mode._getPageSize(this._queryInfo.query);this._maxPages=Math.ceil(this._getFeatureCount()/
this._pageSize);this._fetchDfd=q;this._sendRequests();return q.promise},cancel:function(q){this._cancelPendingRequests(q);this._reset()},_reset:function(){this._startPage=this._lastPage=null;this._requests={}},_getFeatureCount:function(){return this.layer.mode===this.layer.constructor.MODE_AUTO&&0===this.layer.getLastExceedsLimitResult()?this.layer._getMaxFeaturesForAutoSnapshotMode():this.mode.maxFeatures},_sendRequests:function(q){var n=this._queryInfo.query,f=this.queryTask,g=this._requests;q=
null==q?1:q;var a=q+this.batchSize-1;a>this._maxPages&&(a=this._maxPages);if(!(q>a))for(this._startPage=q,this._lastPage=a;q<=a;q++)n.start=(q-1)*this._pageSize,n.num=this._pageSize,g[q]=f.execute(n,null,null,this._queryInfo.pbf?{format:"pbf"}:null),g[q].then(x.hitch(this,this._handleSuccess,q)).otherwise(x.hitch(this,this._handleError,q))},_evalNextBatch:function(q){q===this._lastPage&&this._sendRequests(this._lastPage+1)},_handleSuccess:function(q,n){n.exceededTransferLimit||this._cancelLaterRequests(q,
!0);var f=this.mode._checkMaxLimit(n.features);this._fetchDfd.progress({features:f.features,isError:!1});f.maxLimitReached?((q=f.featuresDiscarded||this._hasRejectedRequests())||(q=!!this._getResult(this._getLastSuccessfulRequest()).exceededTransferLimit),this._resolveFetch(q)):(n.exceededTransferLimit&&this._evalNextBatch(q),this._evalResolution())},_handleError:function(q,n){var f=this._requests;f&&f[q]&&(1===q?this._rejectFetch(n):(this._evalNextBatch(q),this._fetchDfd.progress({error:n,isError:!0}),
this._evalResolution()))},_evalResolution:function(){this._hasPendingRequests()||this._resolveFetch(this._hasRejectedRequests())},_resolveFetch:function(q){var n=this._hasRejectedRequests();this.cancel(!0);this._fetchDfd.resolve({hasPartialFeatures:q,hasUpdateError:n})},_rejectFetch:function(q){this.cancel(!0);this._fetchDfd.reject(q)},_getResult:function(q){return q&&q.dfd.results[0]},_hasPendingRequests:function(){return!!this._getPendingRequests().length},_getPendingRequests:function(){var q=this._requests,
n,f=[];for(n in q){var g=q[n];g.isFulfilled()||f.push({pageId:Number(n),dfd:g})}return f},_getLastSuccessfulRequest:function(){var q=this._getResolvedRequests(),n=-Infinity,f;q=c.filter(q,function(g){return!!this._getResult(g).features.length||1===g.pageId},this);c.forEach(q,function(g){g.pageId>n&&(n=g.pageId,f=g)});return f},_getResolvedRequests:function(){var q=this._requests,n,f=[];for(n in q){var g=q[n];g.isResolved()&&f.push({pageId:Number(n),dfd:g})}return f},_hasRejectedRequests:function(){var q=
this._getRejectedRequests(),n=this._getLastSuccessfulRequest(),f=this._getResult(n);f&&!f.exceededTransferLimit&&(q=c.filter(q,function(g){return g.pageId<=n.pageId}));return!!q.length},_getRejectedRequests:function(){var q=this._requests,n,f=[];for(n in q){var g=q[n];g.isRejected()&&f.push({pageId:Number(n),dfd:g})}return f},_cancelPendingRequests:function(q){this._cancelRequests(this._getPendingRequests(),q)},_cancelLaterRequests:function(q,n){var f=c.filter(this._getPendingRequests(),function(g){return g.pageId>
q});this._cancelRequests(f,n)},_cancelRequests:function(q,n){var f=this.mode,g=this._requests;c.forEach(q,function(a){n&&delete g[a.pageId];f._cancelPendingRequest(a.dfd)})}});r("extend-esri")&&x.setObject("layers.support.ParallelSnapshot",G,w);return G})},"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(G,x,c,r,h,w,q,n,f,g){G=G([f],
{declaredClass:"esri.layers._OnDemandMode",constructor:function(a){this.featureLayer=a;this._featureMap={}},initialize:function(a){this.inherited(arguments);this._cellMap={};this._gridLayer=g.createFromFeatureLayer({layer:this.featureLayer,map:a})},startup:function(){if(!this._started||this._isSuspendedAtStartup)this.inherited(arguments),this._ioQueue=[],this._isSuspendedAtStartup=this.featureLayer.suspended,this.featureLayer.suspended||(this._zoomHandler(),this._enableConnectors())},propertyChangeHandler:function(a){this._init&&
(2>a?this._zoomHandler():console.log("FeatureLayer: layer in on-demand mode does not support time definitions. Layer id \x3d "+this.featureLayer.id+", Layer URL \x3d "+this.featureLayer.url))},destroy:function(){this._disableConnectors();this._processIOQueue(!0);this.inherited(arguments)},drawFeature:function(a){var d=a.geometry,k=[];if(d){k=this._gridLayer.getCellsInExtent("point"===d.type?{xmin:d.x,ymin:d.y,xmax:d.x,ymax:d.y}:d.getExtent(),!1).cells;d=this._cellMap;var l,m=a.attributes[this.featureLayer.objectIdField];
for(l=0;l<k.length;l++){var e=k[l];var b=e.latticeID;var p=e.row;var t=e.col;b?e=d[b]=d[b]||e:(d[p]=d[p]||{},e=d[p][t]=d[p][t]||e);e.features=e.features||[];e.features.push(a);this._addFeatureIIf(m,a);this._incRefCount(m)}}},suspend:function(){this._init&&this._disableConnectors()},resume:function(){this._init&&(this._enableConnectors(),this._zoomHandler())},refresh:function(){this._zoomHandler()},hasAllFeatures:function(){var a=!1,d=this._getCurrentCells(),k;for(k=0;k<d.length;k++)if(d[k].hasPartialFeatures){a=
!0;break}return!a},hasUpdateError:function(){var a=!1,d=this._getCurrentCells(),k;for(k=0;k<d.length;k++)if(d[k].hasUpdateError){a=!0;break}return a},canFetchPBF:function(a){return this.inherited(arguments)&&this.featureLayer._canFetchPBFForQuery(a)},_enableConnectors:function(){var a=this.map;this._zoomConnect=x.connect(a,"onZoomEnd",this,this._zoomHandler);this._panConnect=x.connect(a,"onPanEnd",this,this._panHandler);this._resizeConnect=x.connect(a,"onResize",this,this._panHandler)},_disableConnectors:function(){x.disconnect(this._zoomConnect);
x.disconnect(this._panConnect);x.disconnect(this._resizeConnect)},_zoomHandler:function(){this._processIOQueue(!0);var a=this.featureLayer,d=this.map;!a.suspended&&a.isQueryable()&&(a._fireUpdateStart(),this._clearIIf(),(a=a._trackManager)&&a.clearTracks(),this._cellMap={},this._gridLayer.setResolution(d.extent),this._sendRequest())},_panHandler:function(a){if(this.featureLayer.isQueryable()){this.featureLayer._fireUpdateStart();var d=this.featureLayer._resized;a=d?a:null;d&&this._gridLayer.setMapState(a,
this.map.width,this.map.height);this._sendRequest(a)}},_sendRequest:function(a){this._exceeds=!1;var d=this.featureLayer,k=this.map;a=a||k.extent;k=this._gridLayer.getCellsInExtent(a,d.latticeTiling).cells;if(!d.isEditable()){var l=this._cellMap;k=r.filter(k,function(p){if(p.lattice){if(l[p.latticeID])return!1}else if(l[p.row]&&l[p.row][p.col])return!1;return!0})}this._pending=this._pending||0;var m;for(m=0;m<k.length;m++){var e=k[m],b=this._createQueryInfo(e);this._pending++;this._ioQueue.push(d._task.execute(b.query,
c.hitch(this,this._drawFeatures,e),c.hitch(this,this._queryErrorHandler,e),b.pbf?{format:"pbf"}:null))}this._removeOldCells(a);this._endCheck()},_drawFeatures:function(a,d){this.featureLayer._isImageService&&10.7>this.featureLayer.version&&void 0===d.exceededTransferLimit&&(d.exceededTransferLimit=d.features.length===this.featureLayer.maxRecordCount);a.hasPartialFeatures=!!d.exceededTransferLimit;a.hasUpdateError=!1;this._exceeds=this._exceeds||d.exceededTransferLimit;this._finalizeIO();var k=this.featureLayer,
l=this.map.extent,m=a.extent,e=a.row,b=a.col,p=k.objectIdField;d=d.features;var t=this._gridLayer,z=this._cellMap,C=a.latticeID;z=C?z[C]:z[e]&&z[e][b];if(a.resolution==t.resolution&&(C?C===t.getLatticeID(l):t.intersects(m,l)))if(z)k._sortFeatures(d),this._updateCell(z,d);else for(k._sortFeatures(d),a.features=d,this._addCellToCellMap(a),k=d.length,a=0;a<k;a++)l=d[a],m=l.attributes[p],this._addFeatureIIf(m,l),this._incRefCount(m);else z&&this._removeCell(e,b,C);this._endCheck()},_queryErrorHandler:function(a,
d){this._finalizeIO();a.hasPartialFeatures=!0;a.hasUpdateError=!0;this._addCellToCellMap(a);this.featureLayer._errorHandler(d);this._endCheck(d)},_finalizeIO:function(){this._pending--},_endCheck:function(a){if(0===this._pending){this._processIOQueue();var d=this.featureLayer,k=d._trackManager;k&&(k.clearTracks(),k.addFeatures(d.graphics),d._ager&&r.forEach(d.graphics,function(l){l._shape&&d._repaint(l)}),k.moveLatestToFront(),k.drawTracks());this.featureLayer._fireUpdateEnd(!!a&&Error("FeatureLayer: "+
(a.message||"an error occurred while updating the layer.")),this._exceeds?{queryLimitExceeded:!0}:null);if(this._exceeds)d.onQueryLimitExceeded()}},_processIOQueue:function(a){this._ioQueue=r.filter(this._ioQueue,function(d){return-1<d.fired?!1:!0});a&&r.forEach(this._ioQueue,this._cancelPendingRequest)},_createQueryInfo:function(a){var d=this.featureLayer,k=new n;k.outFields=d.getOutFields();k.where=d._getAttributeFilter();k.returnGeometry=!0;k.geometry=a.extent||a.lattice;d.latticeTiling&&a.extent&&
(k.spatialRelationship=n.SPATIAL_REL_CONTAINS);k.timeExtent=d._getOffsettedTE(d._mapTimeExtent);k.maxAllowableOffset=d._maxOffset;k.quantizationParameters=d._quantizationParameters;k.orderByFields=d.supportsAdvancedQueries?d.getOrderByFields():null;k.multipatchOption=d.multipatchOption;d._ts&&(k._ts=(new Date).getTime());(a=d.advancedQueryCapabilities)&&a.supportsQueryWithResultType&&(k.resultType="tile");a=this.canFetchPBF(k);d._enableEditModeQuantization(k,a);return{query:k,pbf:a}},_getCurrentCells:function(a){var d=
[];a=a||this._cellMap;for(var k in a)if(a.hasOwnProperty(k)){var l=a[k];l&&(l.hasOwnProperty("row")||l.hasOwnProperty("latticeID")?d.push(l):"object"===typeof l&&d.push.apply(d,this._getCurrentCells(l)))}return d},_addCellToCellMap:function(a){var d=this._cellMap;if(a.latticeID)d[a.latticeID]=a;else{var k=a.row,l=a.col;d[k]=d[k]||{};d[k][l]=a}},_removeOldCells:function(a){var d=this._cellMap,k=this._gridLayer,l,m;for(l in d)if(d[l]){var e=d[l],b=e.latticeID,p=0,t=0;if(b)p++,b!==k.getLatticeID(a)&&
(this._removeCell(null,null,b),t++);else for(m in e)e[m]&&(p++,k.intersects(e[m].extent,a)||(this._removeCell(l,m),t++));t===p&&delete d[l]}},_updateCell:function(a,d){var k=this.featureLayer,l=k.objectIdField;k=k._selectedFeatures;var m,e=d.length;a.features=a.features||[];for(m=0;m<e;m++){var b=d[m],p=b.attributes[l],t=this._addFeatureIIf(p,b);t===b?(this._incRefCount(p),a.features.push(t)):p in k||(t.setGeometry(b.geometry),t.setAttributes(b.attributes))}},_removeCell:function(a,d,k){var l=this._cellMap,
m=this.featureLayer,e=m.objectIdField,b=k?l[k]:l[a]&&l[a][d];if(b&&(k?delete l[k]:delete l[a][d],a=b.features))for(d=0;d<a.length;d++)k=a[d].attributes[e],this._decRefCount(k),k in m._selectedFeatures||this._removeFeatureIIf(k)}});h("extend-esri")&&c.setObject("layers._OnDemandMode",G,w);return G})},"esri/layers/GridLayout":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../geometry/Point ../geometry/Extent ../geometry/Polyline ../geometry/Polygon ../geometry/normalizeUtils ../srUtils".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a){var d=G(null,{declaredClass:"esri.layers._GridLayout",constructor:function(k,l,m,e){this.origin=k;this.cellWidth=l.width;this.cellHeight=l.height;this.mapWidth=m.width;this.mapHeight=m.height;this.srInfo=e},setResolution:function(k){this.resolution=(k.xmax-k.xmin)/this.mapWidth;this.srInfo&&(k=Math.round(Math.round(2*this.srInfo.valid[1]/this.resolution)/this.cellWidth),this._frameStats=[k,0,k-1])},setMapState:function(k,l,m){this.mapWidth=l;this.mapHeight=m;this.setResolution(k)},
getCellCoordinates:function(k){var l=this.resolution,m=this.origin;return{row:Math.floor((m.y-k.y)/(this.cellHeight*l)),col:Math.floor((k.x-m.x)/(this.cellWidth*l))}},normalize:function(k){var l=this._frameStats;if(l){var m=l[0],e=l[1];l=l[2];k<e?(k%=m,k=k<e?k+m:k):k>l&&(k%=m)}return k},intersects:function(k,l){var m=this.srInfo;return m?c.some(l._getParts(m),function(e){return k.intersects(e.extent)}):k.intersects(l)},getCellExtent:function(k,l){var m=this.resolution,e=this.origin,b=this.cellWidth,
p=this.cellHeight;return new q(l*b*m+e.x,e.y-(k+1)*p*m,(l+1)*b*m+e.x,e.y-k*p*m,a.createSpatialReference(e.spatialReference.toJson()))},getLatticeID:function(k){var l=this.getCellCoordinates({x:k.xmin,y:k.ymax}),m=this.getCellCoordinates({x:k.xmax,y:k.ymin});k=l.row;var e=m.row;l=this.normalize(l.col);m=this.normalize(m.col);return k+"_"+e+"_"+l+"_"+m},sorter:function(k,l){return k<l?-1:1},getCellsInExtent:function(k,l){var m=this.getCellCoordinates({x:k.xmin,y:k.ymax}),e=this.getCellCoordinates({x:k.xmax,
y:k.ymin}),b=m.row,p=e.row;m=m.col;e=e.col;var t=[],z,C,y=[],D=[],B=[];for(z=b;z<=p;z++)for(C=m;C<=e;C++){var u=this.normalize(C);k=this.getCellExtent(z,u);c.some(t,function(A){return A.row===z&&A.col===u})||t.push({row:z,col:u,extent:k,resolution:this.resolution});l&&(y.push(k.xmin,k.xmax),D.push(k.ymin,k.ymax))}m=this.normalize(m);e=this.normalize(e);y.sort(this.sorter);D.sort(this.sorter);l=y.length;for(z=l-1;0<=z;z--)z<l-1&&y[z]===y[z+1]&&y.splice(z,1);l=D.length;for(z=l-1;0<=z;z--)z<l-1&&D[z]===
D[z+1]&&D.splice(z,1);if(y.length&&D.length){k=y[0];C=y[y.length-1];var E=D[0];var v=D[D.length-1];l=y.length;for(z=0;z<l;z++)B.push([[y[z],v],[y[z],E]]);l=D.length;for(z=0;z<l;z++)B.push([[k,D[z]],[C,D[z]]]);y=new n({paths:B,spatialReference:this.origin.spatialReference.toJson()});t.push({latticeID:b+"_"+p+"_"+m+"_"+e,lattice:y,resolution:this.resolution})}return{minRow:b,maxRow:p,minCol:m,maxCol:e,topRow:b,bottomRow:p,leftCol:m,rightCol:e,cells:t}},_findCell:function(k,l,m){var e;c.some(k,function(b){b.row===
l&&b.col===m&&(e=b);return!!e});return e},getExtentOfIntersectingCells:function(k){var l=this.getCellsInExtent(k),m=l&&l.cells;if(m&&m.length){var e=l.topRow,b=l.leftCol,p=0;c.forEach(m,function(y){y.row===e&&p++});var t=this._findCell(m,e,b).extent,z=this.srInfo;if(!z||p!==this._frameStats[0]&&b!==l.rightCol){var C=t.xmin;z=C+p*t.getWidth()}else C=z.valid[0],z=z.valid[1];l=this._findCell(m,l.bottomRow,b).extent.ymin;(k=(new q(C,l,z,t.ymax,k.spatialReference))._normalize(!1,!1))&&k.rings&&(k=new f(k),
k=g.getDenormalizedExtent(k));return k}}});d.createFromFeatureLayer=function(k){var l=k.layer;k=l.getMap()||k.map;var m=l._srInfo;(l=k&&k.loaded?new d(new w(m?m.valid[0]:k.extent.xmin,m?m.valid[1]:k.extent.ymax,k.spatialReference),{width:l._tileWidth,height:l._tileHeight},{width:k.width,height:k.height},m):null)&&l.setResolution(k.extent);return l};r("extend-esri")&&x.setObject("layers._GridLayout",d,h);return d})},"esri/layers/SelectionMode":function(){define(["dojo/_base/declare","dojo/_base/lang",
"dojo/has","../kernel","./RenderMode"],function(G,x,c,r,h){G=G([h],{declaredClass:"esri.layers._SelectionMode",constructor:function(w){this.featureLayer=w;this._featureMap={}},propertyChangeHandler:function(w){this._init&&0===w&&this._applyTimeFilter()},resume:function(){this.propertyChangeHandler(0)},hasAllFeatures:function(){return!this.featureLayer._hasPartialSelectedFeatures},hasUpdateError:function(){return this.featureLayer._hasSelectionError}});c("extend-esri")&&x.setObject("layers._SelectionMode",
G,r);return G})},"esri/layers/StreamMode":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/Deferred dojo/has ../kernel ../SpatialReference ../tasks/query ../tasks/QueryTask ../geometry/jsonUtils ./RenderMode".split(" "),function(G,x,c,r,h,w,q,n,f,g,a){G=G([a],{declaredClass:"esri.layers._StreamMode",constructor:function(d,k){this.featureLayer=d;this._featureMap={};this._setRefreshRate();this._drawBuffer={adds:[],updates:[]};this._timeoutId=null;this._flushDrawBuffer=x.hitch(this,
this._flushDrawBuffer);this._featuresByTime={};this._lastEndTimeCheck=null;this._maxFeatureAge=0;d.purgeOptions&&d.purgeOptions.age&&"number"===typeof d.purgeOptions.age&&(this._maxFeatureAge=1E3*Math.ceil(60*d.purgeOptions.age));this._drawFeatures=x.hitch(this,this._drawFeatures);this._queryErrorHandler=x.hitch(this,this._queryErrorHandler)},startup:function(){this._started||this.inherited(arguments)},propertyChangeHandler:function(d){this._init&&(0===d?this._applyTimeFilter():3===d?this._redrawAllTracks():
console.debug("StreamLayer: Stream Layer only supports changing map time or maximumTrackPoints. Layer id \x3d "+this.featureLayer.id))},destroy:function(){this.inherited(arguments);clearTimeout(this._timeoutId);this._featuresByTime=this._drawBuffer=this._featureMap=null},drawFeature:function(d){var k=this.featureLayer,l=k.objectIdField;this._timeoutId||(this._timeoutId=setTimeout(this._flushDrawBuffer,this._refreshRate));k._joinField&&this._getFeature(d.attributes[l])?this._drawBuffer.updates.push({oid:d.attributes[l],
updates:d}):this._drawBuffer.adds.push(d)},resume:function(){this.propertyChangeHandler(0)},refresh:function(){this._pendingRequest&&this._cancelPendingRequest(this._pendingRequest);var d=this.featureLayer;d&&(d._relatedUrl||d._keepLatestUrl?(d._fireUpdateStart(),d._refreshing=!0,d.disconnect(),d.clear(),d._relatedQueried=!1,d._keepLatestQueried=!1,d.connect()):(d._fireUpdateStart(),d.clear(),d._fireUpdateEnd()))},_drawFeatures:function(d,k){var l=this.featureLayer;l._create(d.features||[]);l._fireUpdateEnd(null,
k)},_applyTimeFilter:function(d){this.inherited(arguments);this._redrawAllTracks()},_removeFeatures:function(d){var k=this.featureLayer,l=k.objectIdField;d&&c.forEach(d,function(m){m=m.attributes[l];k._unSelectFeatureIIf(m,this);this._decRefCount(m);this._removeFeatureIIf(m)},this)},_addFeatures:function(d){var k=this.featureLayer,l=k._endTimeField,m=k._startTimeField,e,b=[],p=[],t=[];var z=k._trackManager;var C=k.objectIdField;if(z)for(e in d=z.addFeatures(d),d)d.hasOwnProperty(e)&&(b.push(e),d[e].adds&&
(p=p.concat(d[e].adds)),d[e].deletes&&(t=t.concat(d[e].deletes)));else p=d;c.forEach(p,function(y){var D=y.attributes[C];var B=l&&y.attributes[l];!B&&this._maxFeatureAge&&(B=m&&y.attributes[m]?y.attributes[m]+this._maxFeatureAge:Date.now()+this._maxFeatureAge);B&&(B=1E3*Math.ceil(B/1E3),this._featuresByTime[B]?this._featuresByTime[B].push(D):this._featuresByTime[B]=[D]);this._addFeatureIIf(D,y);this._incRefCount(D)},this);t.length&&this._removeFeatures(t);z&&z.refreshTracks(b)},_updateFeatures:function(d){var k=
this.featureLayer,l=[];var m=k._trackManager;var e=k._trackIdField;c.forEach(d,function(b){var p=b.updates;b=this._getFeature(b.oid);var t;if(b){p.geometry&&b.setGeometry(p.geometry);p=p.attributes||{};for(t in p)p.hasOwnProperty(t)&&(b.attributes[t]=p[t]);b.setAttributes(b.attributes);b.visible=this._checkFeatureTimeIntersects(b);m&&b.attributes[e]?l.push(b.attributes[e]):k._repaint(b,null,!0)}},this);l.length&&m.refreshTracks(l)},_redrawAllTracks:function(){var d=this.featureLayer._trackManager,
k;d&&(k=d.trimTracks())&&0<k.length&&(this._removeFeatures(k),d.refreshTracks())},_flushDrawBuffer:function(){clearTimeout(this._timeoutId);var d=this._drawBuffer,k=d.adds.splice(0,d.adds.length),l=d.updates.splice(0,d.updates.length);d=this.featureLayer;if(!d)return!1;d.updating||d._fireUpdateStart();this._addFeatures(k);this._updateFeatures(l);(k=this._getExpiredFeatures())&&k.length&&(this._removeFeatures(k),d._trackManager&&d._trackManager.removeFeatures(k));d._purge();d._fireUpdateEnd();this._timeoutId=
null},_clearDrawBuffer:function(){var d=this._timeoutId,k=this._drawBuffer,l=k.adds;k=k.updates;d&&clearTimeout(d);l.splice(0,l.length);k.splice(0,k.length);this._timeoutId=null},_clearTimeBin:function(){this._featuresByTime={};this._lastEndTimeCheck=1E3*Math.ceil(Date.now()/1E3)},_clearFeatureMap:function(){this._featureMap={}},_setRefreshRate:function(d){d=d||0===d?d:200;0>d&&(d=200);this._refreshRate=d},_checkFeatureTimeIntersects:function(d){var k=this.featureLayer,l=k.getMap();return(l=l?l.timeExtent:
null)&&k.timeInfo&&(k.timeInfo.startTimeField||k.timeInfo.endTimeField)?0<k._filterByTime([d],l.startTime,l.endTime).match.length:!0},_fetchArchive:function(d){var k=new r,l=this.featureLayer;this._pendingRequest&&this._cancelPendingRequest(this._pendingRequest);l._fireUpdateStart();if(d&&this.map){d=new f(d);var m=new n;var e=this.map;var b=l.getFilter()||{};var p=b.where||"1\x3d1";var t=b.geometry?g.fromJson(b.geometry):null;b=b.outFields?b.outFields.split(","):["*"];m.geometry=t;m.where=p;m.outFields=
b;m.returnGeometry=!0;m.outSpatialReference=new q(e.spatialReference.toJson());this._pendingRequest=d.execute(m).then(function(z){this._pendingRequest=null;var C=this._fixFieldNameCasing(l,z);z.features=C;this._drawFeatures(z);l._fireUpdateEnd();k.resolve()}.bind(this)).otherwise(function(z){this._pendingRequest=null;l._errorHandler(z);l._fireUpdateEnd(z);k.reject(z)}.bind(this))}else k.resolve();return k.promise},_queryErrorHandler:function(d){var k=this.featureLayer;k._errorHandler(d);k._fireUpdateEnd(d)},
_fixFieldNameCasing:function(d,k){var l=k.features||[],m=k.fields;if(!m||!l.length)return l;d=this._mapFieldNameDifferences(d.fields,m);m=[];for(var e,b=0,p=k.features.length;b<p;b++)k=l[b],e=this._swizzleResponseAttributes(k.attributes,d),m.push({geometry:k.geometry,attributes:e});return m},_mapFieldNameDifferences:function(d,k){var l=[],m={},e;var b=0;for(e=k.length;b<e;b++)l.push(k[b].name);b=0;for(e=d.length;b<e;b++){k=d[b].name;var p=this._checkForStreamFieldName(k,l);p&&(m[p]=k)}return m},_checkForStreamFieldName:function(d,
k){d=d.toLowerCase();for(var l,m=0,e=k.length;m<e;m++)if(k[m].toLowerCase()===d){l=k[m];break}return l},_swizzleResponseAttributes:function(d,k){var l={},m;for(m in d)if(d.hasOwnProperty(m)){var e=d[m];k.hasOwnProperty(m)?l[k[m]]=e:l[m]=e}return l},_getExpiredFeatures:function(){var d,k,l=[],m=[];if(!this.featureLayer._endTimeField&&!this._maxFeatureAge)return m;var e=1E3*Math.floor(this._lastEndTimeCheck/1E3);this._lastEndTimeCheck=d=1E3*Math.ceil(Date.now()/1E3);if(e&&e!==d)for(k=this._featuresByTime;e<=
d;e+=1E3)k[e]&&(l=l.concat(k[e]),delete k[e]);c.forEach(l,function(b){(b=this._getFeature(b))&&m.push(b)},this);return m}});h("extend-esri")&&x.setObject("layers._StreamMode",G,w);return G})},"esri/layers/TrackManager":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has dojo/dom-construct dojox/gfx ../kernel ../graphic ../geometry/Polyline ./GraphicsLayer".split(" "),function(G,x,c,r,h,w,q,n,f,g){var a=-1!==w.renderer.toLowerCase().indexOf("canvas");G=G(null,{declaredClass:"esri.layers._TrackManager",
constructor:function(d){this.layer=d;this.trackMap={};this.trackLineMap={}},initialize:function(d){this.map=d;d=this.layer;this.createTracklineContainer()&&(this._handles=[d.on("visibility-change",x.hitch(this,function(k){this.container.setVisibility(k.visible);this.container.evaluateSuspension()})),d.on("scale-range-change",x.hitch(this,function(){this.container.setScaleRange(this.layer.minScale,this.layer.maxScale)}))])},createTracklineContainer:function(){var d=this.layer;if("esriGeometryPoint"!==
d.geometryType)return null;var k=this.map,l=d._getRenderer();l=l&&l.trackRenderer;var m=this.container=new g._GraphicsLayer({id:d.id+"_tracks",_child:!0,visible:d.visible,minScale:d.minScale,maxScale:d.maxScale});m.loaded=!0;m.onLoad(m);m._setMap(k,d._div);a||(k=m._div.getNode(),d=d._div.getNode(),k&&d&&h.place(k,d,"first"));m.setRenderer(l);return m},addFeatures:function(d){var k=this.trackMap,l=this.layer,m=l._trackIdField,e=[];c.forEach(d,function(z){var C=z.attributes[m];(k[C]=k[C]||[]).push(z);
-1===c.indexOf(e,C)&&e.push(C)});var b=l._startTimeField,p=l.objectIdField,t=function(z,C){var y=z.attributes[b],D=C.attributes[b];return y===D?z.attributes[p]<C.attributes[p]?-1:1:y<D?-1:1};c.forEach(e,function(z){k[z].sort(t)})},trimTracks:function(d){function k(p){for(p=l[p]||[];p.length>m;)e.push(p.shift())}var l=this.trackMap,m=this.layer.maximumTrackPoints||0,e=[],b;if(!m)return e;if(d)c.forEach(d,function(p){k(p)});else for(b in l)l.hasOwnProperty(b)&&k(b);return e},drawTracks:function(d){function k(z){var C=
b[z],y,D;var B=l.trackLineMap[z];m.remove(B);delete l.trackLineMap[z];B=null;if(!C||2>C.length)return!1;B=[];for(y=C.length-1;0<=y;y--)(D=C[y].geometry)&&B.push([D.x,D.y]);C={};C[t]=z;1<B.length&&(B=new n(new f({paths:[B],spatialReference:p}),null,C),m.add(B),l.trackLineMap[z]=B)}var l=this,m=this.container,e;if(m){var b=this.trackMap;var p=this.map.spatialReference;var t=this.layer._trackIdField;if(d)c.forEach(d,function(z){k(z)});else for(e in b)b.hasOwnProperty(e)&&k(e)}},refreshTracks:function(d){function k(t){var z;
l.drawTracks([t]);if(b&&b.latestObservationRenderer){t=m[t]||[];var C=t.length;for(z=0;z<C;z++)e._repaint(t[z],null,!0)}}var l=this,m=this.trackMap,e=this.layer,b=e._getRenderer(),p;if(d)c.forEach(d,function(t){k(t)});else for(p in m)m.hasOwnProperty(p)&&k(p);this.moveLatestToFront()},moveLatestToFront:function(d){c.forEach(this.getLatestObservations(d),function(k){var l=k._shape;l&&l._moveToFront();this._repaint(k,null,!0)},this.layer)},getLatestObservations:function(d){function k(p){p=e[p];return p[p.length-
1]}var l=[],m=this.layer._getRenderer(),e=this.trackMap,b;if(!m.latestObservationRenderer)return l;if(d)c.forEach(d,function(p){l.push(k(p))});else for(b in e)e.hasOwnProperty(b)&&l.push(k(b));return l},clearTracks:function(d){var k=this.getLatestObservations(d),l=this.container,m=this.trackMap,e;if(d)c.forEach(d,function(p){delete this.trackMap[p];l&&(b=this.trackLineMap[p],l.remove(b),delete this.trackLineMap[p])},this);else{if(l)for(e in m){var b=this.trackLineMap[e];l.remove(b)}this.trackMap=
{};this.trackLineMap={}}c.forEach(k,function(p){this._repaint(p,null,!0)},this.layer)},isLatestObservation:function(d){var k=this.trackMap[d.attributes[this.layer._trackIdField]];return k?k[k.length-1]===d:!1},destroy:function(){c.forEach(this._handles,function(k){k.remove()});var d=this.container;d&&(d.clear(),d._unsetMap(this.map,this.layer._div));this.map=this.layer=this.trackMap=this.container=null}});r("extend-esri")&&x.setObject("layers._TrackManager",G,q);return G})},"esri/layers/HeatmapManager":function(){define("dojo/_base/declare dojo/_base/lang dojo/aspect dojo/_base/array require ../kernel ../sniff ../geometry/Point ../geometry/webMercatorUtils ./MapImage ../renderers/HeatmapRenderer ../tasks/query dojo/_base/fx".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k){function l(){}function m(e){var b=e.layer;return{geometry:e.geometry,attributes:e.attributes,getLayer:function(){return b}}}G=G(null,{declaredClass:"esri.layers.HeatmapManager",heatmapRenderer:null,sourceLayer:null,imageLayer:null,useTiles:!0,useWorker:!1,map:null,constructor:function(e){this.sourceLayer=e;this._hndls=[]},initialize:function(e){this.map=e;var b=this.sourceLayer,p=b.renderer;b.setDrawMode(!1);this.imageLayer=e._getMapImageLyr();var t=this;this.heatmapRenderer=
p instanceof a?p:(p.getRendererInfoByZoom(e.getZoom())||p.getRendererInfoByScale(e.getScale())).renderer;this.redraw=this.redraw.bind(this);this.recalculateHeatmap=this.recalculateHeatmap.bind(this);this._removeRenderer=this._removeRenderer.bind(this);this._handleRendererChange=this._handleRendererChange.bind(this);this._rendererChangeHandle=this.sourceLayer.on("renderer-change",this._handleRendererChange);this._handleOpacityChange=this._handleOpacityChange.bind(this);this._reprojectFeature=this._reprojectFeature.bind(this);
h(["../workers/heatmapCalculator"],function(z){t._calculator=new z(x.mixin({width:t.map.width,height:t.map.height},t._getOptions()));t._setupRenderer();t.heatmapRenderer.getStats=z.calculateStats;t.heatmapRenderer.getHistogramData=z.getHistogramData})},destroy:function(){this._removeHandlers();this._rendererChangeHandle&&this._rendererChangeHandle.remove();this._rendererChangeHandle=this.sourceLayer=this.imageLayer=this.map=this.heatmapRenderer=this._hndls=null},_handleRendererChange:function(e){var b=
e.renderer,p=b instanceof a;this.heatmapRenderer?p?this.heatmapRenderer=b:this._removeRenderer(e):p&&(this.heatmapRenderer=b,this.sourceLayer&&this.map&&this._setupRenderer())},_handleOpacityChange:function(e){e=e.opacity;var b=this._getImageBySourceId(this.sourceLayer.id);b&&b.setOpacity(e)},_setupRenderer:function(){var e=this._hndls,b=this.sourceLayer,p=this.map,t=this;b._originalDraw=b._draw;b._draw=l;b._div.clear();clearTimeout(this._resetTimer);this._resetTimer=setTimeout(this._resetGraphics.bind(this),
250);e.push(b.on("update-end",this.redraw));e.push(b.on("suspend",function(z){(z=t._getImageBySourceId(t.sourceLayer.id))&&z.hide()}));e.push(b.on("resume",function(z){(z=t._getImageBySourceId(t.sourceLayer.id))&&z.show()}));e.push(c.after(b,"redraw",this.redraw));e.push(p.on("layer-remove",function(z){z.layer==b&&((z=t._getImageBySourceId(t.sourceLayer.id))&&t.imageLayer.removeImage(z),t._removeRenderer({target:b}))}));b._collection&&e.push(b.on("graphic-add",function(z){t._reprojectFeature(z.graphic);
t.redraw()}));1!==b.mode&&(e.push(p.on("resize, pan-end",this.redraw)),e.push(p.on("zoom-end",this.redraw)));e.push(b.on("opacity-change",this._handleOpacityChange));this.imageLayer.suspended&&this.imageLayer.resume();b.graphics&&b.graphics.length&&(b.graphics[0].geometry&&!p.spatialReference.equals(b.graphics[0].geometry.spatialReference)&&r.forEach(b.graphics,function(z){this._reprojectFeature(z)}.bind(this)),this.redraw())},redraw:function(){if(!this._drawTimer){var e=this;this._drawTimer=setTimeout(function(){clearTimeout(e._drawTimer);
e._drawTimer=null;e.sourceLayer._getRenderer().isInstanceOf(a)&&e.recalculateHeatmap()},16)}},_removeRenderer:function(e){var b=e.target;b._draw=b._originalDraw;delete b._originalDraw;b.setDrawMode(!0);this._removeHandlers();this._hndls=[];var p=this._getImageBySourceId(this.sourceLayer.id);p&&this.imageLayer.removeImage(p);clearTimeout(this._drawTimer);clearTimeout(this._resetTimer);this._drawTimer=this._resetTimer=null;b.renderer!=e.renderer&&b.renderer.getRendererInfo?this.heatmapRenderer=null:
(this.destroy(),b.renderer&&b.renderer.getRendererInfo&&b.redraw())},recalculateHeatmap:function(){this._calculator?this._doMainCalculation():this._calculatorClient&&this._doWorkerCalculation()},_reprojectFeature:function(e){if(e&&e.geometry){var b=e.geometry,p=this.map.spatialReference;p.equals(b.spatialReference)||(b=f.project(b,p),null==b?console.log("Unable to reproject features to map's spatial reference. Please convert feature geometry before adding to layer"):e.geometry=b)}},_doWorkerCalculation:function(){},
_doMainCalculation:function(){var e=this.sourceLayer,b=this.map,p=this.heatmapRenderer,t=this.map.extent,z=this.map.width,C=this.map.height,y=this._calculator,D=this,B=function(E){E=D._getScreenPoints(E.features,b,e);E=y.calculateImageData(x.mixin({screenPoints:E,mapinfo:{extent:[t.xmin,t.ymin,t.xmax,t.ymax],resolution:b.getResolution()},width:z,height:C},D._getOptions()));E=p.getSymbol(m({geometry:b.extent,attributes:{size:[z,C],imageData:E},layer:e}));E=new g({extent:b.extent,href:E.url,opacity:0,
sourceId:e.id});D._swapMapImages(E,D._getImageBySourceId(e.id));e.suspended&&E.hide()},u={geometry:b.extent,timeExtent:e.useMapTime?b.timeExtent:void 0,spatialRelationship:d.SPATIAL_REL_INTERSECTS};null!=e._canDoClientSideQuery(u)?e.queryFeatures(u,B):B({features:e.graphics})},_getScreenPoints:function(e,b,p){var t=[],z=e.length,C=0,y=0,D=new n(b.extent.xmin,b.extent.ymax,b.spatialReference),B=b.toScreen(D),u=B.x;B=B.y;var E=b.getResolution(),v;for((y=b.extent.getCacheValue("_parts"))&&(v=r.map(y,
function(F){return p._intersects(b,F.extent)[0]}));z--;)if(y=e[z],y.geometry&&y.visible){var A={x:Math.ceil((y.geometry.x-D.x)/E+u),y:Math.floor((D.y-y.geometry.y)/E-B),attributes:y.attributes};v&&(y=1<v.length&&A.x<-v[0]?v[1]:v[0],A.x+=y);t[C++]=A}return t},_getImageBySourceId:function(e){var b=this.imageLayer.getImages();b=r.filter(b,function(p){return p.sourceId==e});if(b.length)return b[b.length-1]},_swapMapImages:function(e,b){function p(){t.removeImage(b)}var t=this.imageLayer,z=this.sourceLayer.opacity;
t.addImage(e);k.anim(e._node,{opacity:z},null,null,function(){e.opacity=z});null!=b&&k.anim(b._node,{opacity:0},null,null,p)},_removeHandlers:function(){if(null!=this._hndls)for(var e=this._hndls.length;e--;)this._hndls[e].remove()},_getOptions:function(){var e=this.heatmapRenderer;return{blurRadius:e.blurRadius,gradient:e.gradient,maxPixelIntensity:e.maxPixelIntensity,minPixelIntensity:e.minPixelIntensity,field:e.field,fieldOffset:e.fieldOffset}},_resetGraphics:function(){clearTimeout(this._resetTimer);
this._resetTimer=null;for(var e=this.sourceLayer.graphics,b=e.length,p;b--;)p=e[b],p._shape=p._offsets=void 0}});q("extend-esri")&&x.setObject("layers.HeatmapManager",G,w);return G})},"esri/layers/clustering/ClusterManager":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../../kernel ../../Evented ../../graphic ../../lang ../../Color ../../graphicsUtils ../../dijit/PopupTemplate ../../dijit/Legend/utils ../../renderers/ClassBreaksRenderer ../../symbols/SimpleMarkerSymbol ../support/attributeUtils ../GraphicsLayer ../Field ./GeohashAggregation ./statUtils dojo/i18n!../../nls/jsapi".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z){var C=z.layers.clusters,y=z.widgets.popup,D=C.numFeatures,B=Math.pow(2,53)-1;G=G(w,{declaredClass:"esri.layers.clustering.ClusterManager",layer:null,aggregationInfo:null,container:null,defaults:{clusterRadius:80,markerSymbol:{color:[77,77,77,255],size:6,angle:0,xoffset:0,yoffset:0,type:"esriSMS",style:"esriSMSCircle",outline:{color:[255,255,255,255],width:.75,type:"esriSLS",style:"esriSLSSolid"}}},_initialized:!1,_map:null,_eventHandles:null,_clusterRadius:null,
_renderer:null,_statisticInfos:null,_fields:null,_infoTemplate:null,_clusterGenerator:null,_singleGraphics:null,constructor:function(u){this._eventHandles=[];this.layer=u.layer;this.setAggregationInfo(u.aggregationInfo)},initialize:function(u){this._initialized=!0;this._map=u;this._removeFromPopup(this.layer);this.container=this._createContainer();this._clusterGenerator=this._createClusterGenerator();this._initClusterGenerator();this._createLayerEventListeners();this._createMapEventListeners();this._createPopupEventListeners()},
destroy:function(u){this._clearSingleGraphics();this._removeClusterBoundary();this._destroyEventListeners();this._removeFromPopup(this.container);this._removeFromPopup(this.layer);this._resetClusterNav();this._destroyClusterGenerator(u);this._destroyContainer();this.layer=this.aggregationInfo=this._map=null},setAggregationInfo:function(u){this.aggregationInfo=u?x.mixin({},u):null;this._applyAggregationInfo()},getClusterRenderer:function(){return this._renderer},getClusterFields:function(){return this._fields||
[]},getFeaturesInCluster:function(u){u=u&&u.getAggregationInfo();return this._clusterGenerator?this._clusterGenerator.getFeaturesInCluster(u):[]},getAggregateGraphics:function(){return this.container?this.container.graphics.slice(0):[]},getSingleGraphics:function(){return this._singleGraphics?this._singleGraphics.slice(0):[]},redraw:function(){this.container&&this.container.redraw()},isClusteringEnabled:function(){return!(!this._clusterGenerator||!this._clusterGenerator.clustersEnabled)},isClusteringActive:function(){return!!(this._clusterGenerator&&
0<this._clusterGenerator.getNumFeatures())},toggleFeatureVisibility:function(u){this._clusterGenerator&&this._clusterGenerator.toggleFeatureVisibility(u)},_createContainer:function(){var u=this.layer,E=new e._GraphicsLayer({_child:!0,id:u.id+"_clusters",visible:u.visible,minScale:u.minScale,maxScale:u.maxScale,infoTemplate:this._infoTemplate});E.fields=this._fields;E.setRenderer(this._renderer);E.loaded=!0;E.onLoad(E);E._setMap(this._map,u._div);return u._childLayer=E},_destroyContainer:function(){var u=
this.container;u&&(u.clear(),u._unsetMap(this._map,this.layer._div),this.layer._childLayer=null);this.container=null},_createClusterGenerator:function(){return new p({map:this._map,layer:this.layer,clusterRadius:this._clusterRadius,statisticInfos:this._statisticInfos})},_initClusterGenerator:function(){var u=this._clusterGenerator;u.loaded?this._awaitClusterGenerator():this._eventHandles.push(u.on("load",x.hitch(this,function(){this._awaitClusterGenerator()})),u.on("load-error",x.hitch(this,function(E){console.log(E.error)})))},
_destroyClusterGenerator:function(u){this._clusterGenerator&&this._clusterGenerator.destroy(u);this._clusterGenerator=null},_awaitClusterGenerator:function(){var u=this._clusterGenerator;u.started?(this._applyRenderer(),this._initClusterUpdates()):this._eventHandles.push(u.on("start",x.hitch(this,function(){this._applyRenderer();this._initClusterUpdates()})))},_applyAggregationInfo:function(){this._applyClusterRadius();this._applyRenderer();this._clusterGenerator&&!this._clusterGenerator.isUpdateScheduled()&&
this.redraw()},_applyClusterRadius:function(){var u=this.aggregationInfo;this._clusterRadius=u&&u.clusterRadius||this.defaults.clusterRadius;this._clusterGenerator&&this._clusterGenerator.setClusterRadius(this._clusterRadius);this._computeClusterRadius()},_computeClusterRadius:function(){var u=this.aggregationInfo||{};u.clusterRadius=this._clusterRadius;this.aggregationInfo=u},_applyRenderer:function(){var u=this.container,E=this._getClusterRendererInfo(),v=this._compareStatInfos(this._statisticInfos,
E.statisticInfos);v&&(this._statisticInfos=E.statisticInfos,this._clusterGenerator&&(this._clusterGenerator.setStatisticInfos(c.map(this._statisticInfos,function(A){return{attributeInfo:A.attributeInfo,statisticType:A.statisticType}})),u&&c.forEach(u.graphics,function(A){this._applyClusterAttributes(A,A.getAggregationInfo())},this)));this._renderer=E.renderer;this._applyFields();this._applyInfoTemplate(!!v&&this._initialized);u&&(u.setRenderer(this._renderer),this.emit("renderer-change"))},_applyFields:function(){this._fields=
this._getFields(this._statisticInfos);this.container&&(this.container.fields=this._fields)},_applyInfoTemplate:function(u){var E=this.aggregationInfo,v=E&&E.disablePopup;this.layer.infoTemplate&&!v?(E=E&&E.infoTemplate||this._infoTemplate,u=u||!E?this._createInfoTemplate():this._updateInfoTemplate(E)):u=null;this._infoTemplate=u;this.container&&this.container.setInfoTemplate(this._infoTemplate);this._computeInfoTemplate()},_computeInfoTemplate:function(){var u=this.aggregationInfo||{};u.infoTemplate=
this._infoTemplate;this.aggregationInfo=u},_getClusterRendererInfo:function(){var u=this.layer&&this.layer.renderer;return u?this._createClusterRenderer(u):this._getDefaultClusterRenderer()},_getDefaultClusterRenderer:function(){var u=this._createContinuousCountRenderer();this._addSizeByCountVariable(u);return{renderer:u,statisticInfos:[]}},_createContinuousCountRenderer:function(u){var E=new k(null,"cluster_count");E.addBreak({minValue:-B,maxValue:B,symbol:u?new u.constructor(u.toJson()):new l(x.clone(this.defaults.markerSymbol))});
return E},_createClusterRenderer:function(u){if(!this._isSupportedRenderer(u))return this._getDefaultClusterRenderer();var E=[];if(this._isSimpleRenderer(u))var v=this._createContinuousCountRenderer(u.symbol);else{v=new u.constructor(u.toJson());var A=this._getRendererAttributeInfo(u);if(this._isCBRenderer(v)){var F=t.getClusterField(A,"avg");E.push(this._getStatInfo(A,"avg"));v.normalizationType=null;v.normalizationField=null;v.normalizationTotal=null}else this._isUVRenderer(v)&&(F=t.getClusterField(A,
"type"),E.push(this._getStatInfo(A,"type")));v.attributeField=F;v.setValueExpression(null);v.valueExpressionTitle=null;v.setVisualVariables(null);this._setRendererTitle(v,u)}u=this._getSupportedVariables(u);A=this._createClusterVariables(u.allVars,E);v.setVisualVariables(A);u.sizeVars.length||this._isCBSizeRenderer(v)||this._addSizeByCountVariable(v);return{renderer:v,statisticInfos:E}},_isSupportedRenderer:function(u){if(this._isSimpleRenderer(u))return!0;if(this._isCBRenderer(u)){var E=u.normalizationType;
return"function"===typeof u.attributeField||E&&"field"!==E?!1:!0}return this._isUVRenderer(u)?"function"===typeof u.attributeField||u.attributeField2?!1:!0:!1},_isSimpleRenderer:function(u){return-1<u.declaredClass.toLowerCase().indexOf("simplerenderer")},_isCBRenderer:function(u){return-1<u.declaredClass.toLowerCase().indexOf("classbreaksrenderer")},_isUVRenderer:function(u){return-1<u.declaredClass.toLowerCase().indexOf("uniquevaluerenderer")},_isCBSizeRenderer:function(u){var E=u.infos;if(!this._isCBRenderer(u)||
!E||2>E.length)return!1;var v=Infinity,A=-Infinity;c.forEach(E,function(F){if(F=F.symbol){var I=0;switch(F.type){case "simplemarkersymbol":I=F.size;break;case "picturemarkersymbol":I=(F.width+F.height)/2}v=Math.min(v,I);A=Math.max(A,I)}});return Infinity!==v&&-Infinity!==A&&v!==A},_getRendererAttributeInfo:function(u){var E=u.attributeField,v=E?this.layer.getField(E):null;return{field:E,attributeType:v&&"esriFieldTypeDate"===v.type?"date":null,rotationType:null,valueExpression:u.valueExpression,valueExpressionTitle:u.valueExpressionTitle,
normalizationField:u.normalizationField}},_setRendererTitle:function(u,E){u.legendOptions=x.clone(E.legendOptions);u.legendOptions&&u.legendOptions.title||(u.legendOptions=u.legendOptions||{},u.legendOptions.title=d.getRendererTitle(E,this.layer))},_getSupportedVariables:function(u){var E=u.getVisualVariablesForType("colorInfo",!1)||[],v=u.getVisualVariablesForType("sizeInfo",!1)||[],A=u.getVisualVariablesForType("opacityInfo",!1)||[];u=u.getVisualVariablesForType("rotationInfo",!1)||[];E=c.filter(E,
this._variableFilter);v=c.filter(v,this._variableFilter);A=c.filter(A,this._variableFilter);u=c.filter(u,this._variableFilter);return{sizeVars:v,allVars:E.concat(v).concat(A).concat(u)}},_variableFilter:function(u){return"function"!==typeof u.field&&!m.viewScaleRE.test(u.valueExpression)},_createClusterVariables:function(u,E){return c.map(u,function(v){return this._createVarForAvg(v,E)},this)},_createVarForAvg:function(u,E){var v=x.clone(u),A=this._getVariableAttributeInfo(u);v.field=t.getClusterField(A,
"avg");v.normalizationField=null;v.valueExpression=null;v.valueExpressionTitle=null;A=this._getStatInfo(A,"avg");this._addStatInfo(E,A);this._setVariableTitle(v,u);return v},_getVariableAttributeInfo:function(u){var E="rotationInfo"===u.type,v=E?"angle":null;E=E?u.rotationType:null;var A=u.legendOptions&&u.legendOptions.title,F=u.field,I=F?this.layer.getField(F):null;I&&"esriFieldTypeDate"===I.type&&(v="date");return{field:F,attributeType:v,rotationType:E,valueExpression:u.valueExpression,valueExpressionTitle:u.valueExpressionTitle||
u.valueExpression&&A,normalizationField:u.normalizationField}},_setVariableTitle:function(u,E){u.legendOptions&&u.legendOptions.title||(u.legendOptions=u.legendOptions||{},u.legendOptions.title=d.getVisualVariableTitle(E,this.layer))},_getStatInfo:function(u,E){return{statisticHash:t.getStatisticHash(u,E),attributeInfo:u,statisticType:E}},_addStatInfo:function(u,E){var v=this._findStatInfo(u,E);v?v.attributeInfo.valueExpressionTitle||(v.attributeInfo.valueExpressionTitle=E.attributeInfo.valueExpressionTitle):
u.push(E)},_findStatInfo:function(u,E){var v;c.some(u,function(A){A.statisticHash===E.statisticHash&&(v=A);return!!v});return v},_compareStatInfos:function(u,E){var v=c.filter(u,function(F){return!this._findStatInfo(E,F)},this),A=c.filter(E,function(F){return!this._findStatInfo(u,F)},this);return A.length||v.length?{added:A,removed:v}:null},_addSizeByCountVariable:function(u){var E=this._createSizeByCountVariable();E&&this._addVariable(u,E)},_getSizeByCountVariable:function(u){u=u.getVisualVariablesForType("sizeInfo",
!1)||[];return c.filter(u,function(E){return"cluster_count"===E.field})[0]},_updateSizeByCountVariable:function(){var u=this._renderer,E=this._getSizeByCountVariable(u);if(E){var v=this._createSizeByCountVariable();v&&this._replaceVariable(u,E,v)}},_createSizeByCountVariable:function(){var u=this._clusterGenerator;if(u){var E=u.getCurrentLodStats();if(E){var v=u.getNumFeatures();u=u.clusters;var A=E.min,F=E.max;1===E.count&&A===v||1===u.length&&u[0].count===v?(A=1,F=v):A&&A===F&&(F=2*A);v={type:"sizeInfo",
field:"cluster_count",valueUnit:"unknown",minSize:12,maxSize:50,minDataValue:A,maxDataValue:F,legendOptions:{title:D}}}}return v},_addVariable:function(u,E){var v=u.visualVariables||[];v.push(E);u.setVisualVariables(v)},_replaceVariable:function(u,E,v){var A=u.visualVariables;E=c.indexOf(A,E);-1<E&&A.splice(E,1);A.push(v);u.setVisualVariables(A)},_getFields:function(u){var E=[new b({name:"cluster_count",type:"esriFieldTypeInteger"})];c.forEach(u,function(v){var A=v.statisticType;v=v.attributeInfo;
var F;"avg"===A?F="date"===v.attributeType?"esriFieldTypeDate":"esriFieldTypeDouble":"type"===A&&(F=v.field?this.layer.getField(v.field).type:"esriFieldTypeString");E.push(new b({name:t.getClusterField(v,A),type:F}))},this);return E},_createInfoTemplate:function(){var u=this._statisticInfos,E=this._renderer,v=[{fieldName:"cluster_count",label:D,visible:!0,format:{digitSeparator:!0,places:0}}],A=[],F=[n.substitute({count:"{cluster_count}"},C.countSummary)],I=this._isUVRenderer(E)?E.infos:[];c.forEach(u,
function(N){var da=N.statisticType,ba=N.attributeInfo,na=t.getClusterField(ba,da),xa=this._getFieldLabel(N);if("avg"===da){var W={fieldName:na,label:xa,visible:!0,format:"date"===ba.attributeType?{dateFormat:"shortDateShortTime"}:{digitSeparator:!0,places:1}};var la=this._getFieldSummary(N,na)}else"type"===da&&(la="expression/"+na,W={fieldName:la,visible:!0},A.push({name:na,title:xa,returnType:"string",expression:this._getExpression(I,na)}),la=this._getFieldSummary(N,la));W&&v.push(W);la&&F.push(la)},
this);return this._createPopupTemplate({fieldInfos:v,expressionInfos:A,description:F.join("\x3cbr/\x3e\x3cbr/\x3e")})},_updateInfoTemplate:function(u){var E=u.toJson(),v=this._isUVRenderer(this._renderer)?this._renderer.infos:[];c.forEach(this._statisticInfos,function(A){var F=A.statisticType;A=t.getClusterField(A.attributeInfo,F);"type"===F&&(F=this._findExpressionInfo(A,E))&&(F.expression=this._getExpression(v,A))},this);return this._createPopupTemplate(E)},_createPopupTemplate:function(u){var E=
new a(u),v=E.title;E.setTitle(x.hitch(this,function(A){var F=this._map&&this._map.infoWindow;if("esri.dijit.PopupMobile"!==(F&&F.declaredClass)||E.info.title)return v.call(E,A);A=(A=A.attributes)&&A.cluster_count;return null==A?"":n.substitute({count:A},C.countTitle)}));return E},_findExpressionInfo:function(u,E){var v;c.some(E.expressionInfos,function(A){A.name===u&&(v=A);return!!v});return v},_escapeDoubleQuotes:function(u){return u?u.replace(/"/g,'\\"'):""},_getExpression:function(u,E){return["var uvInfos \x3d ["+
this._getObjects(u).join(", ")+"];",'var predominantType \x3d Text($feature["'+E+'"]);','var label \x3d "'+this._escapeDoubleQuotes(C.predominantNoneValue)+'";',"for (var i \x3d 0; i \x3c Count(uvInfos); i++) {\nif (uvInfos[i].value \x3d\x3d predominantType) {\nlabel \x3d uvInfos[i].label;\nbreak;\n}\n}\nreturn label;"].join("\n")},_getObjects:function(u){return c.map(u,function(E){return'{"value": "'+String(E.value)+'","label": "'+this._escapeDoubleQuotes(String(E.label))+'"}'},this)},_getFieldLabel:function(u){var E=
u.statisticType,v=u.attributeInfo,A=v.field;u=v.normalizationField;var F="";if("avg"===E)var I=u?C.avgNormFieldLabel:C.avgFieldLabel;else"type"===E&&(I=C.predominantFieldLabel);I&&(E=v.valueExpression?v.valueExpressionTitle:this.layer.getFieldLabel(A),u=u&&this.layer.getFieldLabel(u),F=n.substitute({fieldLabel:E||"",normFieldLabel:u||""},I));return F},_getFieldSummary:function(u,E){var v=u.statisticType,A=u.attributeInfo,F=A.field;u=A.normalizationField;var I="";if("avg"===v)var N=u?C.avgNormFieldSummary:
C.avgFieldSummary;else"type"===v&&(N=C.predominantFieldSummary);N&&(v=A.valueExpression?A.valueExpressionTitle:this.layer.getFieldLabel(F),u=u&&this.layer.getFieldLabel(u),I=n.substitute({fieldLabel:v||"",normFieldLabel:u||"",fieldValue:"{"+E+"}"},N));return I},_removeFromPopup:function(u){var E=this._map.infoWindow,v=E.features;if(v&&v.length){var A=c.filter(v,function(F){return F.getLayer()!==u});A.length<v.length&&(A.length?E.setFeatures(A):(E.clearFeatures(),E.hide()))}},_resetClusterNav:function(){this._resetClusterNavPartial();
this._popupClusterGraphic=null},_resetClusterNavPartial:function(){this._map.infoWindow.removeActions&&this._map.infoWindow.removeActions(this._popupActions);this._hideSingleGraphic(this._popupSingleGraphic);this._popupSingleGraphic=null},_addClusterBoundary:function(u,E){(E=E.clusterFillSymbol)&&(E=new E.constructor(E.toJson()));u=new q(u,E);this._map.graphics.add(u);this._clusterBoundary=u},_removeClusterBoundary:function(){this._map.graphics.remove(this._clusterBoundary);this._clusterBoundary=
null},_createBrowseFeaturesAction:function(){return this._map.infoWindow.addActions([{title:y.NLS_browseFeatures,className:"browseFeatures",callback:x.hitch(this,function(u){u.preventDefault();u=this._map.infoWindow;var E=u.getSelectedFeature(),v=E.getChildGraphics(),A=u.getCurrentAnchor();u.setFeatures(v,{anchor:A});if(v=g.graphicsExtent(v))this._addClusterBoundary(v,u),u.show(this._getPopupLocation(v,A));this._popupClusterGraphic=E})}])[0]},_getPopupLocation:function(u,E){var v=u.getCenter();E=
E.toLowerCase();-1<E.indexOf("top")?v.update(v.x,u.ymax):-1<E.indexOf("bottom")?v.update(v.x,u.ymin):-1<E.indexOf("left")?v.update(u.xmin,v.y):v.update(u.xmax,v.y);return v},_createViewSummaryAction:function(){return this._map.infoWindow.addActions([{title:y.NLS_viewSummary,className:"viewSummary",callback:x.hitch(this,function(u){u.preventDefault();u=this._popupClusterGraphic;var E=this._map.infoWindow;E.setFeatures([u]);E.show(u.geometry);this._popupClusterGraphic=null})}])[0]},_initClusterUpdates:function(){this._updateSizeVariable();
this._updateClusterGraphics();this._eventHandles.push(this._clusterGenerator.on("update-end",x.hitch(this,function(u){(u.mapLevelChange||u.indexChange)&&this._updateSizeVariable();this._updateClusterGraphics()})),this._clusterGenerator.on("index-complete",x.hitch(this,function(){this._updateSizeVariable()})))},_updateClusterGraphics:function(){this._hideSingleGraphics();var u=[],E=[];c.forEach(this._clusterGenerator.clusters,function(v){var A=new q(v.centroid);A.setAggregationSourceLayer(this.layer);
A.setAggregationInfo(v);this._applyClusterAttributes(A,v);1===v.count?(v=this._getSingleGraphic(A),E.push(v)):u.push(A)},this);this._showSingleGraphics(E);this._addGraphics(u)},_addGraphics:function(u){var E=this.container;E.clear();c.forEach(u,function(v){E.add(v)})},_getSingleGraphic:function(u){var E=this._clusterGenerator.getCell(u.getAggregationInfo().primary).features[0],v=this.layer.renderer;v=v&&v.getSymbol(E);var A=this._getSizeByCountVariable(this._renderer);v&&A&&(u=A?this._renderer.getSize(u,
{sizeInfo:A,shape:v.style,resolution:this._map.getResolutionInMeters(),scale:this._map.getScale()}):null,E.setSize(u));return E},_showSingleGraphics:function(u){c.forEach(u,this._showSingleGraphic);this._singleGraphics=u},_hideSingleGraphics:function(){c.forEach(this._singleGraphics,function(u){u.setSize(null);this._hideSingleGraphic(u)},this);this._singleGraphics=null},_clearSingleGraphics:function(){c.forEach(this._singleGraphics,function(u){u.setSize(null)});this._singleGraphics=null},_showSingleGraphic:function(u){u&&
u._resume()},_hideSingleGraphic:function(u){u&&u._suspend()},_updateSizeVariable:function(){this.isClusteringEnabled()&&(this._updateSizeByCountVariable(),this.emit("renderer-change"))},_applyClusterAttributes:function(u,E){u.setAttributes(E.attributes)},_createLayerEventListeners:function(){var u=this.layer;this._eventHandles.push(u.on("visibility-change",x.hitch(this,function(E){this.container.setVisibility(E.visible)})),u.on("scale-range-change",x.hitch(this,function(){this.container.setScaleRange(this.layer.minScale,
this.layer.maxScale)})),u.on("renderer-change",x.hitch(this,function(){this._applyRenderer()})),u.on("info-template-change",x.hitch(this,function(){this._applyInfoTemplate()})))},_createMapEventListeners:function(){this._eventHandles.push(this._map.on("zoom-start",x.hitch(this,function(){this._removeClusterBoundary();this._removeFromPopup(this.container);this._removeFromPopup(this.layer);this._resetClusterNav();this.container.clear();this._hideSingleGraphics()})))},_createPopupEventListeners:function(){var u=
this._map.infoWindow;this._eventHandles.push(u.on("selection-change",x.hitch(this,function(){this._resetClusterNavPartial();var E=this._map.infoWindow.getSelectedFeature(),v=E&&E.getLayer();if(v){var A;v===this.container?(this._removeClusterBoundary(),this._map.infoWindow.addActions&&(A=this._createBrowseFeaturesAction())):v===this.layer&&E._isSuspended()?(this._map.infoWindow.addActions&&(A=this._createViewSummaryAction()),this._popupSingleGraphic=E,this._showSingleGraphic(this._popupSingleGraphic)):
this._removeClusterBoundary();this._popupActions=A?[A]:null}})),u.on("clear-features",x.hitch(this,function(E){this._resetClusterNav();E.isIntermediate||this._removeClusterBoundary()})),u.on("hide",x.hitch(this,function(){this._popupSingleGraphic&&this._popupSingleGraphic._suspend();this._clusterBoundary&&this._clusterBoundary.hide()})),u.on("show",x.hitch(this,function(){this._popupSingleGraphic&&this._popupSingleGraphic._resume();this._clusterBoundary&&this._clusterBoundary.show()})))},_destroyEventListeners:function(){c.forEach(this._eventHandles,
function(u){u.remove()})}});r("extend-esri")&&x.setObject("layers.clustering.ClusterManager",G,h);return G})},"esri/dijit/PopupTemplate":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojo/dom-construct ../kernel ../InfoTemplate ../PopupInfo ./PopupRenderer".split(" "),function(G,x,c,r,h,w,q,n){G=G([w,q],{declaredClass:"esri.dijit.PopupTemplate","-chains-":{constructor:"manual"},chartTheme:null,constructor:function(f,g){x.mixin(this,g);this.initialize(f,g)},getTitle:function(f){var g;
this.info&&(g=this.titleHasRelatedFields||this.titleHasAsyncExpressions?"":this._getPopupValues(f,this._fetchAttributes(f,null,this.getExpressionFieldsInTitle()),!0).title);return g||""},getContent:function(f){return this.info?(new n({template:this,graphic:f,chartTheme:this.chartTheme},r.create("div"))).domNode:""}});c("extend-esri")&&x.setObject("dijit.PopupTemplate",G,h);return G})},"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 dojox/html/entities ./lang ./kernel ./request ./promiseList ./ArcadeExpression ./tasks/query ./tasks/QueryTask ./tasks/RelationshipQuery ./tasks/StatisticDefinition ./arcadeProfiles/popupProfile ./layers/support/attributeUtils dojo/i18n!dojo/cldr/nls/number".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C,y){G=G(null,{declaredClass:"esri.PopupInfo",_reNewline:/(\n)/ig,_reExprField:/^\s*expression\//i,_reExprFieldPattern:/\{expression\/([^\}]+)\}/ig,_exprPrefix:"expression/",_relatedFieldPrefix:"relationships/",_aggregatedFeaturesVariable:"$aggregatedfeatures",initialize:function(D,B){if(D){x.mixin(this,B);this.info=D;this.title=this.getTitle;this.content=this.getContent;this._exprCache=this._compileExpressions(this.info.expressionInfos);var u=this._fieldLabels=
{},E=this._fieldsMap={};this.info.fieldInfos&&c.forEach(this.info.fieldInfos,function(v){var A=v.fieldName.toLowerCase(),F=this._isExpressionField(A)?this.getExpressionInfo(A):null;u[A]=F?F.title:v.label;E[A]=v},this);this.titleHasRelatedFields=!(!this.info.title||-1===this.info.title.indexOf("{"+this._relatedFieldPrefix));this.titleHasAsyncExpressions=this._titleHasAsyncExpressions();this.contentHasAsyncExpressions=this._contentHasAyncExpressions()}},toJson:function(){return r.fromJson(r.toJson(this.info))},
getTitle:function(){},getContent:function(){},getFieldInfo:function(D){var B;c.some(this.info&&this.info.fieldInfos,function(u){u.fieldName===D&&(B=u);return!!B});return B},getExpressionInfo:function(D){if(D=this._getExprField(D)){D=D.toLowerCase();var B;c.some(this.info.expressionInfos,function(u){u.name.toLowerCase()===D&&(B=u);return!!B});return B}},getExpressionFieldsInTitle:function(){return this._getExprFieldsFromTemplatedString(this.info.title)},getExpressionFieldsInContent:function(){var D=
this._collectExprFieldsFromTemplatedString(this.info.description,[]);this.info.description||c.forEach(this.info.fieldInfos,function(B){B.visible&&this._collectExprField(B.fieldName,D)},this);c.forEach(this.info.mediaInfos,function(B){this._collectExprFieldsFromTemplatedString(B.title,D);this._collectExprFieldsFromTemplatedString(B.caption,D);if(B=B.value)this._collectExprFieldsFromTemplatedString(B.linkURL,D),this._collectExprFieldsFromTemplatedString(B.sourceURL,D),c.forEach(B.fields,function(u){this._collectExprField(u,
D)},this),this._collectExprField(B.normalizeField,D),this._collectExprField(B.tooltipField,D)},this);return D},getRequiredExpressionFields:function(){return this.getExpressionFieldsInTitle().concat(this.getExpressionFieldsInContent())},hasGeometryOperations:function(){return c.some(this._getArcadeExpressions(),function(D){return D.hasGeometryOperations()})},hasAsyncExpressions:function(){return c.some(this._getArcadeExpressions(),function(D){return D.async})},initializeArcadeEngine:function(){return z.initialize(this._getArcadeExpressions())},
getComponents:function(D,B){var u=this.info,E={initArcadeEngine:this.initializeArcadeEngine()};u.fieldInfos&&(u=c.filter(u.fieldInfos,function(v){return-1!==v.fieldName.indexOf(this._relatedFieldPrefix)},this))&&0<u.length&&(E.relatedInfo=this._getRelatedRecords({graphic:D,fieldsInfo:u}));this._needFullResolutionFeature(D)&&(E.fullResolutionFeature=this._getFullResolutionFeature(D));this._needAggregatedFeaturesLayer(D)&&(E.aggregatedFeaturesLayer=this._getAggregatedFeaturesLayer(D));return l(E).then(x.hitch(this,
function(v){var A=v.fullResolutionFeature,F=B&&B.evaluateAllExpressions,I=F?null:this.getRequiredExpressionFields();v=(F?this.hasAsyncExpressions():this._hasAsyncExpressions(I))?this._fetchAttributesAsync(D,A,I,v.aggregatedFeaturesLayer):this._fetchAttributes(D,A,I);return l([v]).then(x.hitch(this,function(N){return this._getPopupValues(D,N[0])}))}))},getAttachments:function(D){var B=D.getSourceLayer();D=D.attributes;if(this.info.showAttachments&&B&&B.hasAttachments&&B.objectIdField&&(D=D&&D[B.objectIdField]))return B.queryAttachmentInfos(D)},
_needAggregatedFeaturesLayer:function(D){return D.isAggregate()?c.some(this._getArcadeExpressions(),function(B){return B.hasVariable(this._aggregatedFeaturesVariable)},this):!1},_getAggregatedFeaturesLayer:function(D){return D.getAggregationSourceLayer().getFeatureCollectionLayer(D.getChildGraphics()).always(function(B){return B instanceof Error?null:B})},_needFullResolutionFeature:function(D){return(D=D.getSourceLayer())?"function"===typeof D.getMaxAllowableOffset&&0<D.getMaxAllowableOffset()&&this.hasGeometryOperations():
!1},_getFullResolutionFeature:function(D){var B=D.getSourceLayer(),u=B.objectIdField;D=(D=D.attributes)&&u&&D[u];if(null==D)return null;var E=new e;E.where=u+"\x3d"+D;E.maxAllowableOffset=0;E.outFields=[u];B._enableCacheHint(E);return B.queryFeatures(E).then(function(v){return v.features&&v.features[0]})},_isExpressionField:function(D){return this._reExprField.test(D)},_getExprField:function(D){return this._isExpressionField(D)?D.replace(this._reExprField,""):null},_collectExprField:function(D,B){(D=
this._getExprField(D))&&B.push(D);return B},_collectExprFieldsFromTemplatedString:function(D,B){D=this._getExprFieldsFromTemplatedString(D);D.length&&Array.prototype.push.apply(B,D);return B},_getExprFieldsFromTemplatedString:function(D){D=D?D.match(this._reExprFieldPattern):null;return c.map(D,function(B){return B.replace(this._reExprFieldPattern,"$1")},this)},_titleHasAsyncExpressions:function(){return this._hasAsyncExpressions(this.getExpressionFieldsInTitle())},_contentHasAyncExpressions:function(){return this._hasAsyncExpressions(this.getExpressionFieldsInContent())},
_hasAsyncExpressions:function(D){return c.some(D,function(B){B=this._exprCache[B];return!(!B||!B.async)},this)},_compileExpressions:function(D){var B={};c.forEach(D,function(u){var E=u.returnType&&u.returnType.toLowerCase();B[u.name]=new m({expression:u.expression,returnType:"number"===E?"number":"string",profile:z})});return B},_getArcadeExpressions:function(){var D=[],B;for(B in this._exprCache)D.push(this._exprCache[B]);return D},_fetchAttributesAsync:function(D,B,u,E){var v=this._fetchAttributes(D,
B,u,E);D={};for(var A in v)(B=v[A])&&B.then&&(D[A]=B);return l(D).then(x.hitch(this,function(F){for(var I in F){var N=F[I];v[I]=N instanceof Error?null:this._processArcadeResult(N)}return v}))},_processArcadeResult:function(D){"string"===typeof D&&(D=g.encode(D));return D},_fetchAttributes:function(D,B,u,E){var v=x.clone(D.attributes)||{},A=B&&B.geometry,F=this._exprPrefix,I=this._exprCache;u=u||c.map(this.info.expressionInfos,function(N){return N.name});c.forEach(u,function(N){var da=F+N;N=(N=I[N])?
D.evaluateExpression(N,this._getEvalOptions(N,D,A,E)):null;v[da]=this._processArcadeResult(N)},this);return v},_getEvalOptions:function(D,B,u,E){var v=D.hasGeometryOperations(),A=B.getSourceLayer(),F=A&&(A.getMap()||A.parentLayer&&A.parentLayer.getMap());E&&(E._map=F);D=z.getEvalOptions({expression:D,feature:B,layer:A,aggregatedFeaturesLayer:E,map:F,spatialReference:F&&F.spatialReference});B=D.context.vars.$feature;v=!(!v||!u);B&&v&&(B._geometry=u);D.skipCache=v;return D},_getPopupValues:function(D,
B,u){B=B||this._fetchAttributes(D);var E=this.info,v=D.getSourceLayer(),A=x.clone(B),F="",I="",N,da,ba=v&&v._getDateOpts&&v._getDateOpts().properties;ba=ba&&ba.slice(0);var na={dateFormat:{properties:ba,formatter:"DateFormat"+this._insertOffset(this._dateFormats.shortDateShortTime)},format:null};if(this._relatedInfo)for(la in this._relatedInfo)if(this._relatedInfo.hasOwnProperty(la)){var xa=this._relatedInfo[la],W=this._relatedLayersInfo[la];xa&&(c.forEach(xa.relatedFeatures,function(qa){for(da in qa.attributes)if(qa.attributes.hasOwnProperty(da)&&
"esriRelCardinalityOneToOne"===W.relation.cardinality){var L=this._toRelatedFieldName([W.relation.id,da]);B[L]=A[L]=qa.attributes[da]}},this),c.forEach(xa.relatedStatsFeatures,function(qa){for(da in qa.attributes)if(qa.attributes.hasOwnProperty(da)){var L=this._toRelatedFieldName([W.relation.id,da]);B[L]=A[L]=qa.attributes[da]}},this))}for(N in A){var la=this._fieldsMap[N.toLowerCase()];xa=this._getLayerFieldInfo(v,N);la&&xa&&(la.fieldName=xa.name);A[N]=this._formatValue(A[N],N,na);ba&&la&&la.format&&
la.format.dateFormat&&(la=c.indexOf(ba,N),-1<la&&ba.splice(la,1))}if(v)for(N in ba=v.typeIdField,B)if(B.hasOwnProperty(N)&&-1===N.indexOf(this._relatedFieldPrefix)){var ha=B[N];a.isDefined(ha)&&(la=this._getDomainName(v,D,N,ha),a.isDefined(la)?A[N]=la:N===ba&&(la=this._getTypeName(v,D,ha),a.isDefined(la)&&(A[N]=la)))}E.title&&(F=this._processFieldsInLinks(this._fixTokens(E.title,v),B),F=x.trim(this._removeEmptyHref(a.substitute(A,F,na)||"")));if(u)return{title:F};E.description&&(I=this._processFieldsInLinks(this._fixTokens(E.description,
v),B),I=x.trim(this._removeEmptyHref(a.substitute(A,I,na)||"")));if(E.fieldInfos){var sa=[];c.forEach(E.fieldInfos,function(qa){(N=qa.fieldName)&&qa.visible&&sa.push([this._fieldLabels[N.toLowerCase()]||N,a.substitute(A,"${"+N+"}",na)||""])},this)}var Ca;if(E.mediaInfos){var oa=[];c.forEach(E.mediaInfos,function(qa){Ca=0;ha=qa.value;switch(qa.type){case "image":var L=ha.sourceURL;L=L&&x.trim(this._removeEmptyHref(a.substitute(B,this._fixTokens(L,v))));Ca=!!L;break;case "piechart":case "linechart":case "columnchart":case "barchart":L=
ha.normalizeField;ha.fields=c.map(ha.fields,function(ja){return(Y=this._getLayerFieldInfo(v,ja))?Y.name:ja},this);if(L){var Y=this._getLayerFieldInfo(v,L);ha.normalizeField=Y?Y.name:L}Ca=c.some(ha.fields,function(ja){return a.isDefined(B[ja])||-1!==ja.indexOf(this._relatedFieldPrefix)&&this._relatedInfo},this);break;default:return}if(Ca){qa=x.clone(qa);ha=qa.value;L=qa.title?this._processFieldsInLinks(this._fixTokens(qa.title,v),B):"";var ca=qa.caption?this._processFieldsInLinks(this._fixTokens(qa.caption,
v),B):"";qa.title=L?x.trim(this._removeEmptyHref(a.substitute(A,L,na)||"")):"";qa.caption=ca?x.trim(this._removeEmptyHref(a.substitute(A,ca,na)||"")):"";if("image"===qa.type)ha.sourceURL=a.substitute(B,this._fixTokens(ha.sourceURL,v)),ha.linkURL&&(ha.linkURL=x.trim(a.substitute(B,this._fixTokens(ha.linkURL,v))||""));else{var V,X;c.forEach(ha.fields,function(ja,pa){if(-1!==ja.indexOf(this._relatedFieldPrefix))X=this._getRelatedChartInfos(ja,ha,B,na),X instanceof Array?ha.fields=X:ha.fields[pa]=X;else{var ta=
B[ja];ta=void 0===ta?null:ta;V=B[ha.normalizeField]||0;ta&&V&&(ta/=V);ha.fields[pa]={y:ta,tooltip:(this._fieldLabels[ja.toLowerCase()]||ja)+":\x3cbr/\x3e"+this._formatValue(ta,ja,na,!!V)}}},this)}oa.push(qa)}},this)}return{title:F,description:I,hasDescription:!!E.description,fields:sa&&sa.length?sa:null,mediaInfos:oa&&oa.length?oa:null,formatted:A,editSummary:!1!==E.showLastEditInfo&&v&&v.getEditSummary?v.getEditSummary(D):""}},_getRelatedChartInfos:function(D,B,u,E){var v,A;var F=[];var I=this._fromRelatedFieldName(D);
var N=I[0];var da=this._relatedInfo[N];N=this._relatedLayersInfo[N];da&&c.forEach(da.relatedFeatures,function(ba){ba=ba.attributes;var na;for(na in ba)if(ba.hasOwnProperty(na)&&na===I[1]){var xa={};A=ba[na];B.normalizeField&&(v=-1!==B.normalizeField.indexOf(this._relatedFieldPrefix)?ba[this._fromRelatedFieldName(B.normalizeField)[1]]:u[B.normalizeField]);A&&v&&(A/=v);if(B.tooltipField)if(-1!==B.tooltipField.indexOf(this._relatedFieldPrefix)){var W=this._fromRelatedFieldName(B.tooltipField)[1],la=
a.isDefined(ba[W])?this._formatValue(ba[W],B.tooltipField,E,!!v):W;xa.tooltip=la+":\x3cbr/\x3e"+this._formatValue(A,W,E,!!v)}else xa.tooltip=(this._fieldLabels[D.toLowerCase()]||D)+":\x3cbr/\x3e"+this._formatValue(A,B.tooltipField,E,!!v);else xa.tooltip=A;xa.y=A;F.push(xa)}},this);return"esriRelCardinalityOneToMany"===N.relation.cardinality||"esriRelCardinalityManyToMany"===N.relation.cardinality?F:F[0]},_dateFormats:{shortDate:"(datePattern: 'M/d/y', selector: 'date')",shortDateShortTime:"(datePattern: 'M/d/y', timePattern: 'h:mm a', selector: 'date and time')",
shortDateShortTime24:"(datePattern: 'M/d/y', timePattern: 'H:mm', selector: 'date and time')",shortDateLongTime:"(datePattern: 'M/d/y', timePattern: 'h:mm:ss a', selector: 'date and time')",shortDateLongTime24:"(datePattern: 'M/d/y', timePattern: 'H:mm:ss', selector: 'date and time')",shortDateLE:"(datePattern: 'd/M/y', selector: 'date')",shortDateLEShortTime:"(datePattern: 'd/M/y', timePattern: 'h:mm a', selector: 'date and time')",shortDateLEShortTime24:"(datePattern: 'd/M/y', timePattern: 'H:mm', selector: 'date and time')",
shortDateLELongTime:"(datePattern: 'd/M/y', timePattern: 'h:mm:ss a', selector: 'date and time')",shortDateLELongTime24:"(datePattern: 'd/M/y', timePattern: 'H:mm:ss', selector: 'date and time')",longMonthDayYear:"(datePattern: 'MMMM d, y', selector: 'date')",longMonthDayYearShortTime:"(datePattern: 'MMMM d, y', timePattern: 'h:mm a', selector: 'date and time')",longMonthDayYearShortTime24:"(datePattern: 'MMMM d, y', timePattern: 'H:mm', selector: 'date and time')",longMonthDayYearLongTime:"(datePattern: 'MMMM d, y', timePattern: 'h:mm:ss a', selector: 'date and time')",
longMonthDayYearLongTime24:"(datePattern: 'MMMM d, y', timePattern: 'H:mm:ss', selector: 'date and time')",dayShortMonthYear:"(datePattern: 'd MMM y', selector: 'date')",dayShortMonthYearShortTime:"(datePattern: 'd MMM y', timePattern: 'h:mm a', selector: 'date and time')",dayShortMonthYearShortTime24:"(datePattern: 'd MMM y', timePattern: 'H:mm', selector: 'date and time')",dayShortMonthYearLongTime:"(datePattern: 'd MMM y', timePattern: 'h:mm:ss a', selector: 'date and time')",dayShortMonthYearLongTime24:"(datePattern: 'd MMM y', timePattern: 'H:mm:ss', selector: 'date and time')",
longDate:"(datePattern: 'EEEE, MMMM d, y', selector: 'date')",longDateShortTime:"(datePattern: 'EEEE, MMMM d, y', timePattern: 'h:mm a', selector: 'date and time')",longDateShortTime24:"(datePattern: 'EEEE, MMMM d, y', timePattern: 'H:mm', selector: 'date and time')",longDateLongTime:"(datePattern: 'EEEE, MMMM d, y', timePattern: 'h:mm:ss a', selector: 'date and time')",longDateLongTime24:"(datePattern: 'EEEE, MMMM d, 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')"},_dateFormatsJson:{shortDate:{datePattern:"M/d/y",selector:"date"},shortDateShortTime:{datePattern:"M/d/y",timePattern:"h:mm a",selector:"date and time"},shortDateShortTime24:{datePattern:"M/d/y",timePattern:"H:mm",selector:"date and time"},shortDateLongTime:{datePattern:"M/d/y",timePattern:"h:mm:ss a",selector:"date and time"},shortDateLongTime24:{datePattern:"M/d/y",timePattern:"H:mm:ss",selector:"date and time"},
shortDateLE:{datePattern:"d/M/y",selector:"date"},shortDateLEShortTime:{datePattern:"d/M/y",timePattern:"h:mm a",selector:"date and time"},shortDateLEShortTime24:{datePattern:"d/M/y",timePattern:"H:mm",selector:"date and time"},shortDateLELongTime:{datePattern:"d/M/y",timePattern:"h:mm:ss a",selector:"date and time"},shortDateLELongTime24:{datePattern:"d/M/y",timePattern:"H:mm:ss",selector:"date and time"},longMonthDayYear:{datePattern:"MMMM d, y",selector:"date"},longMonthDayYearShortTime:{datePattern:"MMMM d, y",
timePattern:"h:mm a",selector:"date and time"},longMonthDayYearShortTime24:{datePattern:"MMMM d, y",timePattern:"H:mm",selector:"date and time"},longMonthDayYearLongTime:{datePattern:"MMMM d, y",timePattern:"h:mm:ss a",selector:"date and time"},longMonthDayYearLongTime24:{datePattern:"MMMM d, y",timePattern:"H:mm:ss",selector:"date and time"},dayShortMonthYear:{datePattern:"d MMM y",selector:"date"},dayShortMonthYearShortTime:{datePattern:"d MMM y",timePattern:"h:mm a",selector:"date and time"},dayShortMonthYearShortTime24:{datePattern:"d MMM y",
timePattern:"H:mm",selector:"date and time"},dayShortMonthYearLongTime:{datePattern:"d MMM y",timePattern:"h:mm:ss a",selector:"date and time"},dayShortMonthYearLongTime24:{datePattern:"d MMM y",timePattern:"H:mm:ss",selector:"date and time"},longDate:{datePattern:"EEEE, MMMM d, y",selector:"date"},longDateShortTime:{datePattern:"EEEE, MMMM d, y",timePattern:"h:mm a",selector:"date and time"},longDateShortTime24:{datePattern:"EEEE, MMMM d, y",timePattern:"H:mm",selector:"date and time"},longDateLongTime:{datePattern:"EEEE, MMMM d, y",
timePattern:"h:mm:ss a",selector:"date and time"},longDateLongTime24:{datePattern:"EEEE, MMMM d, 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,_reHrefApos:/href\s*=\s*(')([^']+)'/ig,_fixTokens:function(D,B){var u=this;return D.replace(/(\{([^\{\r\n]+)\})/g,function(E,v,A){E=u._getLayerFieldInfo(B,A);return"$"+(E?"{"+
E.name+"}":v)})},_encodeAttributes:function(D,B){D=x.clone(D)||{};var u,E;for(u in D)(E=D[u])&&"string"===typeof E&&(E=B?E:encodeURIComponent(E),E=E.replace(/'/g,"\x26apos;"),D[u]=E);return D},_processFieldsInLinks:function(D,B){var u=this._encodeAttributes(B),E=this._encodeAttributes(B,!0);B=x.hitch(this,this._addValuesToHref,B,u,E);D&&(D=D.replace(this._reHref,B).replace(this._reHrefApos,B));return D},_addValuesToHref:function(D,B,u,E,v,A){A=A&&x.trim(A);return E=a.substitute(A&&0===A.indexOf("${")?
"'"===v?u:D:B,E)},_getLayerFieldInfo:function(D,B){return D&&D.getField?D.getField(B):null},_formatValue:function(D,B,u,E){var v=this._fieldsMap[B.toLowerCase()],A=v&&v.format;B=-1!==c.indexOf(u.dateFormat.properties,B);var F="number"===typeof D&&!B&&(!A||!A.dateFormat);if(!a.isDefined(D)||!v||!a.isDefined(A))return this._applyFormatting(D,F);v=A.hasOwnProperty("places")||A.hasOwnProperty("digitSeparator");var I=A.hasOwnProperty("digitSeparator")?A.digitSeparator:!0;if(v&&!B)var N={formatType:"NumberFormat",
places:a.isDefined(A.places)&&(!E||0<A.places)?Number(A.places):Infinity};else if(A.dateFormat)N=x.mixin({formatType:"DateFormat",utcOffset:this.utcOffset},this._dateFormatsJson[A.dateFormat]||this._dateFormatsJson.shortDateShortTime);else return this._applyFormatting(D,F);var da=this._applyFormatFunctions(D,N,u);v&&-1<D.constructor.toString().indexOf("Array")&&(da="",c.forEach(D,x.hitch(this,function(ba,na){na&&(da+=" ");da+=this._applyFormatFunctions(ba,N,u)})));v&&!I&&y.group&&(da=da.replace(new RegExp("\\"+
y.group,"g"),""));B&&(da='\x3cspan class\x3d"esriDateValue"\x3e'+da+"\x3c/span\x3e");return this._applyFormatting(da,F)},_applyFormatFunctions:function(D,B,u){B&&u&&(u.format={myKey:B});D=a.substitute({myKey:D},"${myKey}",u)||"";B&&u&&(u.format=null);return D},_applyFormatting:function(D,B){return B?this._forceLTR(D):this._applyPreWrap(D)},_forceLTR:function(D){var B=n("ie");return B&&10>=B?D:"\x3cspan class\x3d'esriNumericValue'\x3e"+D+"\x3c/span\x3e"},_applyPreWrap:function(D){return"string"===
typeof D?D.replace(this._reNewline,"\x3cspan class\x3d'charNewLine'\x3e$1\x3c/span\x3e"):D},_insertOffset:function(D){D&&(D=a.isDefined(this.utcOffset)?D.replace(/\)\s*$/,", utcOffset:"+this.utcOffset+")"):D);return D},_getDomainName:function(D,B,u,E){return(D=D.getDomain&&D.getDomain(u,{feature:B}))&&D.codedValues?D.getName(E):null},_getTypeName:function(D,B,u){return(D=D.getType&&D.getType(B))&&D.name},_getRelatedRecords:function(D){var B=D.graphic,u;this._relatedLayersInfoPromise||(this._relatedLayersInfoPromise=
this._getRelatedLayersInfo(D).then(x.hitch(this,function(E){for(u in E)E.hasOwnProperty(u)&&E[u]&&(this._relatedLayersInfo[u].relatedLayerInfo=E[u])})));return this._relatedLayersInfoPromise.then(x.hitch(this,function(){return this._queryRelatedLayers(B)})).then(x.hitch(this,function(E){this._setRelatedRecords(B,E);return E}))},_getRelatedLayersInfo:function(D){var B=D.fieldsInfo,u,E={};var v=D.graphic.getSourceLayer();this._relatedLayersInfo||(this._relatedLayersInfo={});c.forEach(B,function(A){var F;
var I=this._fromRelatedFieldName(A.fieldName);var N=I[0];I=I[1];if(N&&(!this._relatedLayersInfo[N]&&v&&v.relationships&&(c.some(v.relationships,function(ba){if(ba.id==N)return F=ba,!0}),F&&(this._relatedLayersInfo[N]={relation:F,relatedFields:[],outStatistics:[]})),this._relatedLayersInfo[N]&&(this._relatedLayersInfo[N].relatedFields.push(I),A.statisticType))){var da=new t;da.statisticType=A.statisticType;da.onStatisticField=I;da.outStatisticFieldName=I;this._relatedLayersInfo[N].outStatistics.push(da)}},
this);for(u in this._relatedLayersInfo)this._relatedLayersInfo.hasOwnProperty(u)&&this._relatedLayersInfo[u]&&(D=this._relatedLayersInfo[u].relation,D=v.url.replace(/[0-9]+$/,D.relatedTableId),this._relatedLayersInfo[u].relatedLayerUrl=D,E[u]=k({url:D,content:{f:"json"},callbackParamName:"callback"}));return f(E)},_queryRelatedLayers:function(D){var B={},u;for(u in this._relatedLayersInfo)this._relatedLayersInfo.hasOwnProperty(u)&&(B[u]=this._queryRelatedLayer({graphic:D,relatedInfo:this._relatedLayersInfo[u]}));
return f(B)},_queryRelatedLayer:function(D){var B,u;var E=D.graphic;var v=E.getSourceLayer();var A=v.url.match(/[0-9]+$/g)[0];var F=D.relatedInfo;var I=F.relatedLayerInfo;var N=F.relatedLayerUrl;var da=F.relation;D=c.filter(I.relationships,function(ha){return ha.relatedTableId===parseInt(A,10)});1===D.length?B=D[0]:1<D.length&&c.some(D,function(ha){ha.id===da.id&&(B=ha);return!!B});if(B){var ba=new e;c.some(I.fields,function(ha){if(ha.name===B.keyField)return u=-1!==c.indexOf(["esriFieldTypeSmallInteger",
"esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble"],ha.type)?"number":"string",!0});if(B.relationshipTableId&&B.keyFieldInRelationshipTable){var na=new q;this._queryRelatedRecords(E,B).then(x.hitch(this,function(ha){var sa;(sa=ha[E.attributes[v.objectIdField]])?(ha=c.map(sa.features,function(Ca){return Ca.attributes[I.objectIdField]},this),F.outStatistics&&0<F.outStatistics.length&&I.supportsStatistics&&(W=new e,W.where=this._chunkWhereInClause(I.objectIdField,ha,1E3),W.outFields=
ba.outFields,W.outStatistics=F.outStatistics),W&&(la=new b(N),la.execute(W).then(x.hitch(this,function(Ca){var oa=[];oa.push(sa);oa.push(Ca);na.resolve(oa)})))):na.resolve()}))}else{var xa="string"===u?B.keyField+"\x3d'"+E.attributes[da.keyField]+"'":B.keyField+"\x3d"+E.attributes[da.keyField];ba.where=xa;ba.outFields=F.relatedFields;if(F.outStatistics&&0<F.outStatistics.length&&I.supportsStatistics){var W=new e;W.where=ba.where;W.outFields=ba.outFields;W.outStatistics=F.outStatistics}var la=new b(N);
xa=[];xa.push(la.execute(ba));W&&xa.push(la.execute(W))}}return xa?f(xa):na?na.promise:void 0},_setRelatedRecords:function(D,B){this._relatedInfo=[];for(var u in B)B.hasOwnProperty(u)&&B[u]&&(D=B[u],this._relatedInfo[u]={},this._relatedInfo[u].relatedFeatures=D[0].features,a.isDefined(D[1])&&(this._relatedInfo[u].relatedStatsFeatures=D[1].features))},_handlerErrorResponse:function(D,B){D.reject(B)},_fromRelatedFieldName:function(D){var B=[];-1!==D.indexOf(this._relatedFieldPrefix)&&(D=D.split("/"),
B=D.slice(1));return B},_toRelatedFieldName:function(D){var B="";D&&0<D.length&&(B=this._relatedFieldPrefix+D[0]+"/"+D[1]);return B},_queryRelatedRecords:function(D,B){var u=D.getSourceLayer(),E=new p;E.outFields=["*"];E.relationshipId=B.id;E.objectIds=[D.attributes[u.objectIdField]];return u.queryRelatedFeatures(E)},_removeEmptyHref:function(D){return D.replace(/href=(""|'')/gi,"")},_chunkWhereInClause:function(D,B,u){for(var E=0,v=[];E<B.length;)v.push(D+" IN ("+B.slice(E,u+E)+")"),E+=u;return v.join(" OR ")}});
w("extend-esri")&&(d.PopupInfo=d.PopupInfoTemplate=G);return G})},"dojox/html/entities":function(){define(["dojo/_base/lang"],function(G){var x=G.getObject("dojox.html.entities",!0),c=function(h,w){if(w._encCache&&w._encCache.regexp&&w._encCache.mapper&&w.length==w._encCache.length){var q=w._encCache.mapper;var n=w._encCache.regexp}else{q={};n=["["];var f;for(f=0;f<w.length;f++)q[w[f][0]]="\x26"+w[f][1]+";",n.push(w[f][0]);n.push("]");n=new RegExp(n.join(""),"g");w._encCache={mapper:q,regexp:n,length:w.length}}return h=
h.replace(n,function(g){return q[g]})},r=function(h,w){if(w._decCache&&w._decCache.regexp&&w._decCache.mapper&&w.length==w._decCache.length){var q=w._decCache.mapper;var n=w._decCache.regexp}else{q={};n=["("];var f;for(f=0;f<w.length;f++){var g="\x26"+w[f][1]+";";f&&n.push("|");q[g]=w[f][0];n.push(g)}n.push(")");n=new RegExp(n.join(""),"g");w._decCache={mapper:q,regexp:n,length:w.length}}return h=h.replace(n,function(a){return q[a]})};x.html=[["\x26","amp"],['"',"quot"],["\x3c","lt"],["\x3e","gt"],
["\u00a0","nbsp"]];x.latin=[["\u00a1","iexcl"],["\u00a2","cent"],["\u00a3","pound"],["\u20ac","euro"],["\u00a4","curren"],["\u00a5","yen"],["\u00a6","brvbar"],["\u00a7","sect"],["\u00a8","uml"],["\u00a9","copy"],["\u00aa","ordf"],["\u00ab","laquo"],["\u00ac","not"],["\u00ad","shy"],["\u00ae","reg"],["\u00af","macr"],["\u00b0","deg"],["\u00b1","plusmn"],["\u00b2","sup2"],["\u00b3","sup3"],["\u00b4","acute"],["\u00b5","micro"],["\u00b6","para"],["\u00b7","middot"],["\u00b8","cedil"],["\u00b9","sup1"],
["\u00ba","ordm"],["\u00bb","raquo"],["\u00bc","frac14"],["\u00bd","frac12"],["\u00be","frac34"],["\u00bf","iquest"],["\u00c0","Agrave"],["\u00c1","Aacute"],["\u00c2","Acirc"],["\u00c3","Atilde"],["\u00c4","Auml"],["\u00c5","Aring"],["\u00c6","AElig"],["\u00c7","Ccedil"],["\u00c8","Egrave"],["\u00c9","Eacute"],["\u00ca","Ecirc"],["\u00cb","Euml"],["\u00cc","Igrave"],["\u00cd","Iacute"],["\u00ce","Icirc"],["\u00cf","Iuml"],["\u00d0","ETH"],["\u00d1","Ntilde"],["\u00d2","Ograve"],["\u00d3","Oacute"],
["\u00d4","Ocirc"],["\u00d5","Otilde"],["\u00d6","Ouml"],["\u00d7","times"],["\u00d8","Oslash"],["\u00d9","Ugrave"],["\u00da","Uacute"],["\u00db","Ucirc"],["\u00dc","Uuml"],["\u00dd","Yacute"],["\u00de","THORN"],["\u00df","szlig"],["\u00e0","agrave"],["\u00e1","aacute"],["\u00e2","acirc"],["\u00e3","atilde"],["\u00e4","auml"],["\u00e5","aring"],["\u00e6","aelig"],["\u00e7","ccedil"],["\u00e8","egrave"],["\u00e9","eacute"],["\u00ea","ecirc"],["\u00eb","euml"],["\u00ec","igrave"],["\u00ed","iacute"],
["\u00ee","icirc"],["\u00ef","iuml"],["\u00f0","eth"],["\u00f1","ntilde"],["\u00f2","ograve"],["\u00f3","oacute"],["\u00f4","ocirc"],["\u00f5","otilde"],["\u00f6","ouml"],["\u00f7","divide"],["\u00f8","oslash"],["\u00f9","ugrave"],["\u00fa","uacute"],["\u00fb","ucirc"],["\u00fc","uuml"],["\u00fd","yacute"],["\u00fe","thorn"],["\u00ff","yuml"],["\u0192","fnof"],["\u0391","Alpha"],["\u0392","Beta"],["\u0393","Gamma"],["\u0394","Delta"],["\u0395","Epsilon"],["\u0396","Zeta"],["\u0397","Eta"],["\u0398",
"Theta"],["\u0399","Iota"],["\u039a","Kappa"],["\u039b","Lambda"],["\u039c","Mu"],["\u039d","Nu"],["\u039e","Xi"],["\u039f","Omicron"],["\u03a0","Pi"],["\u03a1","Rho"],["\u03a3","Sigma"],["\u03a4","Tau"],["\u03a5","Upsilon"],["\u03a6","Phi"],["\u03a7","Chi"],["\u03a8","Psi"],["\u03a9","Omega"],["\u03b1","alpha"],["\u03b2","beta"],["\u03b3","gamma"],["\u03b4","delta"],["\u03b5","epsilon"],["\u03b6","zeta"],["\u03b7","eta"],["\u03b8","theta"],["\u03b9","iota"],["\u03ba","kappa"],["\u03bb","lambda"],
["\u03bc","mu"],["\u03bd","nu"],["\u03be","xi"],["\u03bf","omicron"],["\u03c0","pi"],["\u03c1","rho"],["\u03c2","sigmaf"],["\u03c3","sigma"],["\u03c4","tau"],["\u03c5","upsilon"],["\u03c6","phi"],["\u03c7","chi"],["\u03c8","psi"],["\u03c9","omega"],["\u03d1","thetasym"],["\u03d2","upsih"],["\u03d6","piv"],["\u2022","bull"],["\u2026","hellip"],["\u2032","prime"],["\u2033","Prime"],["\u203e","oline"],["\u2044","frasl"],["\u2118","weierp"],["\u2111","image"],["\u211c","real"],["\u2122","trade"],["\u2135",
"alefsym"],["\u2190","larr"],["\u2191","uarr"],["\u2192","rarr"],["\u2193","darr"],["\u2194","harr"],["\u21b5","crarr"],["\u21d0","lArr"],["\u21d1","uArr"],["\u21d2","rArr"],["\u21d3","dArr"],["\u21d4","hArr"],["\u2200","forall"],["\u2202","part"],["\u2203","exist"],["\u2205","empty"],["\u2207","nabla"],["\u2208","isin"],["\u2209","notin"],["\u220b","ni"],["\u220f","prod"],["\u2211","sum"],["\u2212","minus"],["\u2217","lowast"],["\u221a","radic"],["\u221d","prop"],["\u221e","infin"],["\u2220","ang"],
["\u2227","and"],["\u2228","or"],["\u2229","cap"],["\u222a","cup"],["\u222b","int"],["\u2234","there4"],["\u223c","sim"],["\u2245","cong"],["\u2248","asymp"],["\u2260","ne"],["\u2261","equiv"],["\u2264","le"],["\u2265","ge"],["\u2282","sub"],["\u2283","sup"],["\u2284","nsub"],["\u2286","sube"],["\u2287","supe"],["\u2295","oplus"],["\u2297","otimes"],["\u22a5","perp"],["\u22c5","sdot"],["\u2308","lceil"],["\u2309","rceil"],["\u230a","lfloor"],["\u230b","rfloor"],["\u2329","lang"],["\u232a","rang"],
["\u25ca","loz"],["\u2660","spades"],["\u2663","clubs"],["\u2665","hearts"],["\u2666","diams"],["\u0152","OElig"],["\u0153","oelig"],["\u0160","Scaron"],["\u0161","scaron"],["\u0178","Yuml"],["\u02c6","circ"],["\u02dc","tilde"],["\u2002","ensp"],["\u2003","emsp"],["\u2009","thinsp"],["\u200c","zwnj"],["\u200d","zwj"],["\u200e","lrm"],["\u200f","rlm"],["\u2013","ndash"],["\u2014","mdash"],["\u2018","lsquo"],["\u2019","rsquo"],["\u201a","sbquo"],["\u201c","ldquo"],["\u201d","rdquo"],["\u201e","bdquo"],
["\u2020","dagger"],["\u2021","Dagger"],["\u2030","permil"],["\u2039","lsaquo"],["\u203a","rsaquo"]];x.encode=function(h,w){h&&(w?h=c(h,w):(h=c(h,x.html),h=c(h,x.latin)));return h};x.decode=function(h,w){h&&(w?h=r(h,w):(h=r(h,x.html),h=r(h,x.latin)));return h};return x})},"esri/ArcadeExpression":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ./kernel ./layers/support/attributeUtils ./support/expressionUtils".split(" "),function(G,x,c,r,h,w){G=G(null,{declaredClass:"esri.ArcadeExpression",
expression:null,profile:null,returnType:null,async:null,id:null,syntaxTree:null,_traits:null,_attributeDef:null,_attributeCache:null,_compiled:!1,constructor:function(q){x.mixin(this,q);this.returnType=this.returnType||"string";this.id=h.getAttributeId(this.expression);this._setSyntaxTree(this.profile.parse(this));this.async=this.async||this.profile.isAsync(this)},hasGeometryOperations:function(){var q=this._traits.geometryOperations;void 0===q&&(q=this._traits.geometryOperations=w.hasGeometryOperations(this.syntaxTree));
return q},hasFeatureSetOperations:function(){var q=this._traits.featureSetOperations;void 0===q&&(q=this._traits.featureSetOperations=w.hasFeatureSetOperations(this.syntaxTree));return q},hasVariable:function(q){var n=this._traits.variables;void 0===n[q]&&(n[q]=w.hasVariable(this.syntaxTree,q));return n[q]},hasFunction:function(q){var n=this._traits.functions;void 0===n[q]&&(n[q]=w.hasFunction(this.syntaxTree,q));return n[q]},evaluate:function(q){this._compile();var n=this._attributeCache.compiledFunc;
return this.async?w.executeAsyncFunction(n,q):w.executeFunction(n,q)},_setSyntaxTree:function(q){this.syntaxTree=q;this._compiled=!1;this._traits={variables:{},functions:{}};this._createLegacyValueObjects()},_createLegacyValueObjects:function(){this._attributeDef={valueExpression:this.expression};this._attributeCache={attributeInfo:this._attributeDef,isNumeric:"number"===this.returnType,idSource:this.expression,id:this.id,hasExpr:!0,compiledFunc:null,syntaxTree:this.syntaxTree,isScaleDriven:!1,dependsOnView:this.hasVariable("$view"),
dependsOnGeometry:this.hasGeometryOperations(),isJSFunc:!1}},_compile:function(){this._compiled||(this._attributeCache.compiledFunc=this.profile.compile(this),this._compiled=!0)}});c("extend-esri")&&(r.ArcadeExpression=G);return G})},"esri/tasks/RelationshipQuery":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/json","dojo/has","../kernel"],function(G,x,c,r,h){G=G(null,{declaredClass:"esri.tasks.RelationshipQuery",definitionExpression:"",relationshipId:null,returnGeometry:!1,
objectIds:null,outSpatialReference:null,outFields:null,orderByFields:null,toJson:function(){var w={definitionExpression:this.definitionExpression,relationshipId:this.relationshipId,returnGeometry:this.returnGeometry,maxAllowableOffset:this.maxAllowableOffset,geometryPrecision:this.geometryPrecision},q=this.objectIds,n=this.outFields,f=this.outSpatialReference,g=this.orderByFields;q&&(w.objectIds=q.join(","));n&&(w.outFields=n.join(","));f&&(w.outSR=f.wkid||c.toJson(f.toJson()));g&&(w.orderByFields=
g.join(","));w._ts=this._ts;return w}});r("extend-esri")&&x.setObject("tasks.RelationshipQuery",G,h);return G})},"esri/arcadeProfiles/popupProfile":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../promiseList ../arcade/Feature ../support/expressionUtils ./utils".split(" "),function(G,x,c,r,h,w,q,n){G=new (G(null,{declaredClass:"esri.arcadeProfiles.PopupProfile",defaults:{globals:{featureSet:["$layer","$datastore","$map","$aggregatedfeatures"],async:["$layer","$datastore",
"$map","$aggregatedfeatures"]},context:{vars:{$feature:"any",$layer:"any",$datastore:"any",$map:"any",$aggregatedfeatures:"any"}}},initialize:function(f){var g=[];n.hasGeometryOperations(f)&&g.push(q.enableGeometryOperations());(n.hasFeatureSetOperations(f)||n.hasVariables(f,this.defaults.globals.featureSet))&&g.push(q.enableFeatureSetOperations());n.isAsync(f)&&g.push(q.enableAsyncOperations());return h(g)},isAsync:function(f){f=[f];return n.hasFeatureSetOperations(f)||n.hasVariables(f,this.defaults.globals.async)},
parse:function(f){return q.createSyntaxTree(f.expression)},compile:function(f){var g=x.clone(this.defaults.context);g.useAsync=f.async;return f.syntaxTree?q.createFunction(f.syntaxTree,g):null},getEvalOptions:function(f){var g=f.expression,a=f.feature,d=f.layer,k=f.aggregatedFeaturesLayer,l=f.map;f=f.spatialReference;a=a&&g.hasVariable("$feature")?w.createFromGraphicLikeObject(a.geometry,a.attributes,d):null;var m,e;if(d){var b={spatialReference:f};g.hasVariable("$layer")&&(m=d.getMap()?q.createFeatureSetFromLayer(d,
b):q.createFeatureSetFromLayerUrl(d.url,b));if(g.hasVariable("$datastore"))var p=(p=n.getServiceUrl(d.url))?q.createFeatureSetCollectionFromServiceUrl(p,b):null;g.hasVariable("$aggregatedfeatures")&&k&&(e=k.getMap()?q.createFeatureSetFromLayer(k,b):null)}g=l&&g.hasVariable("$map")?q.createFeatureSetCollectionFromMap(l):null;return{context:{vars:{$feature:a,$layer:m,$datastore:p,$map:g,$aggregatedfeatures:e},spatialReference:f}}}}));c("extend-esri")&&x.setObject("arcadeProfiles.popupProfile",G,r);
return G})},"esri/dijit/PopupRenderer":function(){define("require dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/_base/kernel dojo/sniff dojo/query dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-style ../libs/sanitizer/Sanitizer dojox/html/entities dijit/_Widget dijit/_Templated ../kernel ../lang ../urlUtils ./_EventedWidget dojo/i18n!../nls/jsapi dojo/NodeList-dom".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C,y){var D=0,B=y.widgets.popup,
u=y.widgets.templatePicker;x=x([C,e,b],{declaredClass:"esri.dijit._PopupRenderer",_sanitizer:new l({whiteList:{span:["class"],dd:[],dl:[],dt:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],sub:[],sup:[],animate:[],animatetransform:[],circle:[],clippath:[],defs:[],ellipse:[],g:[],image:[],line:[],lineargradient:[],marker:[],mask:[],path:[],pattern:[],polygon:[],polyline:[],radialgradient:[],rect:[],stop:[],svg:[],"switch":[],symbol:[],text:[],textpath:[],tspan:[],use:[]}},!0),constructor:function(){this._nls=
r.mixin({},B)},templateString:"\x3cdiv class\x3d'esriViewPopup'\x3e\x3cdiv class\x3d'statusSection hidden' dojoAttachPoint\x3d'_status'\x3e\x3c/div\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._showStatus(u.loading);this._contentDfd=this.template.getComponents(this.graphic).then(r.hitch(this,this._handleComponentsSuccess)).otherwise(r.hitch(this,this._handleComponentsError))},destroy:function(){this._contentDfd&&this._contentDfd.cancel();this._attachmentsDfd&&this._attachmentsDfd.cancel();this._destroyFrame();this.template=this.graphic=this._nls=this._mediaInfos=this._mediaPtr=this._contentDfd=this._attachmentsDfd=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 E=this._mediaInfos,v=E.length,A=this.domNode,F=this._prevMedia,I=this._nextMedia;if(1<v){var N=0,da=0;h.forEach(E,function(ba){"image"===ba.type?N++:-1!==ba.type.indexOf("chart")&&da++});N&&(g.set(this._imageCount,"innerHTML",N),w.query(".summary .image",
A).removeClass("hidden"));da&&(g.set(this._chartCount,"innerHTML",da),w.query(".summary .chart",A).removeClass("hidden"))}else w.query(".summary",A).addClass("hidden"),a.add(F,"hidden"),a.add(I,"hidden");E=this._mediaPtr;0===E?a.add(F,"hidden"):a.remove(F,"hidden");E===v-1?a.add(I,"hidden"):a.remove(I,"hidden");this._destroyFrame()},_displayMedia:function(){var E=this._mediaInfos[this._mediaPtr],v=E.title,A=E.caption,F=w.query(".mediaSection .hzLine",this.domNode)[0];g.set(this._mediaTitle,"innerHTML",
this._sanitizer.sanitize(v));a[v?"remove":"add"](this._mediaTitle,"hidden");g.set(this._mediaCaption,"innerHTML",this._sanitizer.sanitize(A));a[A?"remove":"add"](this._mediaCaption,"hidden");a[v&&A?"remove":"add"](F,"hidden");this._rid=null;if("image"===E.type)this._showImage(E);else{var I=this;v=["dojox/charting/Chart2D","dojox/charting/action2d/Tooltip"];A=E.value.theme||this.chartTheme;r.isString(A)&&(A=A.replace(/\./gi,"/"),-1===A.indexOf("/")&&(A="dojox/charting/themes/"+A));A||(A="./Rainbow");
v.push(A);try{var N=this._rid=D++;G(v,function(da,ba,na){N===I._rid&&(I._rid=null,I._showChart(E.type,E.value,da,ba,na))})}catch(da){console.log("PopupRenderer: error loading modules")}}},_preventNewTab:function(E){return(E=E&&r.trim(E).toLowerCase())&&(0===E.indexOf("mailto:")||0===E.indexOf("tel:"))},_showImage:function(E){a.add(this._mediaFrame,"image");var v=k.get(this._gallery,"height"),A=E.value,F=m.decode(A.linkURL);A=m.decode(A.sourceURL);var I;F&&(I=d.create("a",{href:F,target:this._preventNewTab(F)?
"":"_blank"},this._mediaFrame));F=E.refreshInterval?this._addURLParameter(A,"timestamp",Date.now()):A;d.create("img",{className:"esriPopupMediaImage",src:F},I||this._mediaFrame);var N=w.query(".esriPopupMediaImage",this._mediaFrame)[0];this._imageLoadHandle=c.connect(N,"onload",this,function(){this._clearImageHandles();this._imageLoaded(N,v);this._initImageRefresh(E)})},_addURLParameter:function(E,v,A){var F=-1===E.indexOf("?")?"?":"\x26";return E+F+v+"\x3d"+A},_initImageRefresh:function(E){if(E.refreshInterval){var v=
6E4*E.refreshInterval;this._imageRefreshHandle=setTimeout(r.hitch(this,function(){this._destroyFrame();this._showImage(E)}),v)}},_clearImageHandles:function(){c.disconnect(this._imageLoadHandle);this._imageLoadHandle=null;clearTimeout(this._imageRefreshHandle);this._imageRefreshHandle=null},_showChart:function(E,v,A,F,I){a.remove(this._mediaFrame,"image");A=this._chart=new A(d.create("div",{"class":"chart"},this._mediaFrame),{margins:{l:4,t:4,r:4,b:4}});I&&A.setTheme(I);switch(E){case "piechart":A.addPlot("default",
{type:"Pie",labels:!1});A.addSeries("Series A",v.fields);break;case "linechart":A.addPlot("default",{type:"Markers"});A.addAxis("x",{min:0,majorTicks:!1,minorTicks:!1,majorLabels:!1,minorLabels:!1});A.addAxis("y",{includeZero:!0,vertical:!0,fixUpper:"minor"});h.forEach(v.fields,function(N,da){N.x=da+1});A.addSeries("Series A",v.fields);break;case "columnchart":A.addPlot("default",{type:"Columns",gap:3});A.addAxis("y",{includeZero:!0,vertical:!0,fixUpper:"minor"});A.addSeries("Series A",v.fields);
break;case "barchart":A.addPlot("default",{type:"Bars",gap:3}),A.addAxis("x",{includeZero:!0,fixUpper:"minor",minorLabels:!1}),A.addAxis("y",{vertical:!0,majorTicks:!1,minorTicks:!1,majorLabels:!1,minorLabels:!1}),A.addSeries("Series A",v.fields)}this._action=new F(A);A.render()},_destroyFrame:function(){this._rid=null;this._clearImageHandles();this._chart&&(this._chart.destroy(),this._chart=null);this._action&&(this._action.destroy(),this._action=null);g.set(this._mediaFrame,"innerHTML","")},_imageLoaded:function(E,
v){var A=E.height;A<v&&k.set(E,"marginTop",Math.round((v-A)/2)+"px")},_attListHandler:function(E,v){if(E===this._attachmentsDfd){this._attachmentsDfd=null;var A="";v instanceof Error||!v||!v.length||h.forEach(v,function(F){A+="\x3cli\x3e";A+="\x3ca href\x3d'"+z.addProxy(F.url)+"' target\x3d'_blank'\x3e"+(F.name||"[No name]")+"\x3c/a\x3e";A+="\x3c/li\x3e"});g.set(this._attachmentsList,"innerHTML",A||"\x3cli\x3e"+this._nls.NLS_noAttach+"\x3c/li\x3e")}},_createLinkIfURI:function(E,v){var A=z.getURIInfo(E);
if(A){var F=E.match(A.pattern);E=F&&F[2];F=m.decode(F[1]);d.create("a",{target:"_blank",href:F,title:F,innerHTML:this._sanitizer.sanitize(t.substitute({appName:A.appName,hierPart:E},A.label))},v)}else g.set(v,"innerHTML",this._sanitizer.sanitize(E))},_showStatus:function(E){g.set(this._status,"innerHTML",E);a.remove(this._status,"hidden");w.query(".mainSection",this.domNode).addClass("hidden")},_hideStatus:function(){g.set(this._status,"innerHTML","");a.add(this._status,"hidden");w.query(".mainSection",
this.domNode).removeClass("hidden")},_handleComponentsSuccess:function(E){if(E){this._hideStatus();var v=this.showTitle?E.title:"",A=E.description,F=E.fields,I=E.mediaInfos,N=this.domNode,da=this._nls,ba=this,na=this.template,xa=this.graphic;this._prevMedia.title=da.NLS_prevMedia;this._nextMedia.title=da.NLS_nextMedia;g.set(this._title,"innerHTML",this._sanitizer.sanitize(v));v||a.add(this._title,"hidden");if(!E.hasDescription&&F&&(A="",F=h.map(F,function(la){var ha=d.create("tr",{vAlign:"top"});
d.create("td",{className:"attrName",innerHTML:this._sanitizer.sanitize(la[0])},ha);var sa=d.create("td",{className:"attrValue"},ha);this._createLinkIfURI(la[1],sa);return ha},this),F.length)){var W=d.create("table",{className:"attrTable",cellPadding:"0px",cellSpacing:"0px"});h.forEach(F,function(la){W.appendChild(la)})}W?(this._description.appendChild(W),A=!0):g.set(this._description,"innerHTML",this._sanitizer.sanitize(A));A||a.add(this._description,"hidden");w.query("a",this._description).forEach(function(la){ba._preventNewTab(la.href)?
"_blank"===la.target&&g.remove(la,"target"):g.set(la,"target","_blank")});v&&A?w.query(".mainSection .hzLine",N).removeClass("hidden"):v||A?w.query(".mainSection .hzLine",N).addClass("hidden"):w.query(".mainSection",N).addClass("hidden");if(v=this._attachmentsDfd=na.getAttachments(xa))v.addBoth(r.hitch(this,this._attListHandler,v)),g.set(this._attachmentsList,"innerHTML","\x3cli\x3e"+da.NLS_searching+"...\x3c/li\x3e"),w.query(".attachmentsSection",N).removeClass("hidden");I&&I.length&&(w.query(".mediaSection",
N).removeClass("hidden"),f.setSelectable(this._mediaFrame,!1),this._mediaInfos=I,this._mediaPtr=0,this._updateUI(),this._displayMedia());E.editSummary&&(g.set(this._editSummary,"innerHTML",this._sanitizer.sanitize(E.editSummary)),I&&I.length&&a.remove(this._mediaBreak,"hidden"),a.remove(this._editSummarySection,"hidden"));this.emit("content-update")}else this._showStatus(B.NLS_noInfo)},_handleComponentsError:function(E){E&&"cancel"===E.dojoType||(console.log("PopupRenderer: error loading template",
E),this._showStatus(B.NLS_noInfo))}});q("extend-esri")&&r.setObject("dijit._PopupRenderer",x,p);return x})},"esri/libs/sanitizer/Sanitizer":function(){!function(G,x){"object"==typeof exports&&"undefined"!=typeof module?module.exports=x():"function"==typeof define&&define.amd?define(x):(G="undefined"!=typeof globalThis?globalThis:G||self).Sanitizer=x()}(this,function(){function G(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,
animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,
"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,
"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,
"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,
"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,
"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,
"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,
"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,
"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,
rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,
"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,
"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}function x(ea){var va=ea||{},M={},S;for(S in va)M[S]=va[S];(ea=M).whiteList=ea.whiteList||F.whiteList;ea.onAttr=ea.onAttr||F.onAttr;
ea.onIgnoreAttr=ea.onIgnoreAttr||F.onIgnoreAttr;ea.safeAttrValue=ea.safeAttrValue||F.safeAttrValue;this.options=ea}function c(ea){return ea.replace(xa,"\x26lt;").replace(W,"\x26gt;")}function r(ea){return ea.replace(la,"\x26quot;")}function h(ea){return ea.replace(ha,'"')}function w(ea){return ea.replace(sa,function(va,M){return"x"===M[0]||"X"===M[0]?String.fromCharCode(parseInt(M.substr(1),16)):String.fromCharCode(parseInt(M,10))})}function q(ea){return ea.replace(Ca,":").replace(oa," ")}function n(ea){for(var va=
"",M=0,S=ea.length;M<S;M++)va+=32>ea.charCodeAt(M)?" ":ea.charAt(M);return ba.trim(va)}function f(ea){return ea=n(ea=q(ea=w(ea=h(ea))))}function g(ea){return ea=c(ea=r(ea))}function a(ea,va){for(;va<ea.length;va++){var M=ea[va];if(" "!==M)return"\x3d"===M?va:-1}}function d(ea,va){for(;0<va;va--){var M=ea[va];if(" "!==M)return"\x3d"===M?va:-1}}function k(ea){return'"'===ea[0]&&'"'===ea[ea.length-1]||"'"===ea[0]&&"'"===ea[ea.length-1]?ea.substr(1,ea.length-2):ea}function l(ea){var va=ea||{},M={},S;
for(S in va)M[S]=va[S];(ea=M).stripIgnoreTag&&(ea.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),ea.onIgnoreTag=ja.onIgnoreTagStripAll);ea.whiteList=ea.whiteList||ja.whiteList;ea.onTag=ea.onTag||ja.onTag;ea.onTagAttr=ea.onTagAttr||ja.onTagAttr;ea.onIgnoreTag=ea.onIgnoreTag||ja.onIgnoreTag;ea.onIgnoreTagAttr=ea.onIgnoreTagAttr||ja.onIgnoreTagAttr;ea.safeAttrValue=ea.safeAttrValue||ja.safeAttrValue;ea.escapeHtml=ea.escapeHtml||ja.escapeHtml;
this.options=ea;!1===ea.css?this.cssFilter=!1:(ea.css=ea.css||{},this.cssFilter=new X(ea.css))}var m,e,b=Object.prototype,p=Function.prototype.toString,t=b.hasOwnProperty,z=p.call(Object),C=b.toString,y=(m=Object.getPrototypeOf,e=Object,function(ea){return m(e(ea))}),D=function(ea){var va;if(!(va=!ea||"object"!=typeof ea||"[object Object]"!=C.call(ea))&&(va=!1,null!=ea&&"function"!=typeof ea.toString))try{va=!!(ea+"")}catch(M){}if(va)return!1;ea=y(ea);if(null===ea)return!0;ea=t.call(ea,"constructor")&&
ea.constructor;return"function"==typeof ea&&ea instanceof ea&&p.call(ea)==z},B={exports:{}},u={};b={exports:{}};var E={},v=/javascript\s*:/gim;E.whiteList=G();E.getDefaultWhiteList=G;E.onAttr=function(ea,va,M){};E.onIgnoreAttr=function(ea,va,M){};E.safeAttrValue=function(ea,va){return v.test(va)?"":va};var A={indexOf:function(ea,va){var M;if(Array.prototype.indexOf)return ea.indexOf(va);var S=0;for(M=ea.length;S<M;S++)if(ea[S]===va)return S;return-1},forEach:function(ea,va,M){var S;if(Array.prototype.forEach)return ea.forEach(va,
M);var ma=0;for(S=ea.length;ma<S;ma++)va.call(M,ea[ma],ma,ea)},trim:function(ea){return String.prototype.trim?ea.trim():ea.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(ea){return String.prototype.trimRight?ea.trimRight():ea.replace(/(\s*$)/g,"")}},F=E,I=function(ea,va){function M(){if(!ma){var za=A.trim(ea.slice(ua,wa)),Ea=za.indexOf(":");if(-1!==Ea){var Ka=A.trim(za.slice(0,Ea));Ea=A.trim(za.slice(Ea+1));Ka&&(za=va(ua,Q.length,Ka,Ea,za))&&(Q+=za+"; ")}}ua=wa+1}";"!==(ea=A.trimRight(ea))[ea.length-
1]&&(ea+=";");for(var S=ea.length,ma=!1,ua=0,wa=0,Q="";wa<S;wa++){var ka=ea[wa];if("/"===ka&&"*"===ea[wa+1]){ka=ea.indexOf("*/",wa+2);if(-1===ka)break;ua=(wa=ka+1)+1;ma=!1}else"("===ka?ma=!0:")"===ka?ma=!1:";"===ka?ma||M():"\n"===ka&&M()}return A.trim(Q)};x.prototype.process=function(ea){if(!(ea=(ea=ea||"").toString()))return"";var va=this.options,M=va.whiteList,S=va.onAttr,ma=va.onIgnoreAttr,ua=va.safeAttrValue;return I(ea,function(wa,Q,ka,za,Ea){var Ka=M[ka],Qa=!1;if(!0===Ka?Qa=Ka:"function"==typeof Ka?
Qa=Ka(za):Ka instanceof RegExp&&(Qa=Ka.test(za)),!0!==Qa&&(Qa=!1),za=ua(ka,za)){var Pa;wa={position:Q,sourcePosition:wa,source:Ea,isWhite:Qa};return Qa?null==(Pa=S(ka,za,wa))?ka+":"+za:Pa:null==(Pa=ma(ka,za,wa))?void 0:Pa}})};!function(ea,va){for(var M in(va=ea.exports=function(S,ma){return(new x(ma)).process(S)}).FilterCSS=x,E)va[M]=E[M]}(b,b.exports);var N={indexOf:function(ea,va){var M;if(Array.prototype.indexOf)return ea.indexOf(va);var S=0;for(M=ea.length;S<M;S++)if(ea[S]===va)return S;return-1},
forEach:function(ea,va,M){var S;if(Array.prototype.forEach)return ea.forEach(va,M);var ma=0;for(S=ea.length;ma<S;ma++)va.call(M,ea[ma],ma,ea)},trim:function(ea){return String.prototype.trim?ea.trim():ea.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(ea){return(ea=/\s|\n|\t/.exec(ea))?ea.index:-1}},da=b.exports.getDefaultWhiteList,ba=N,na=new b.exports.FilterCSS,xa=/</g,W=/>/g,la=/"/g,ha=/&quot;/g,sa=/&#([a-zA-Z0-9]*);?/gim,Ca=/&colon;?/gim,oa=/&newline;?/gim,qa=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,
L=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Y=/u\s*r\s*l\s*\(.*/gi;u.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:"autoplay controls crossorigin loop muted preload src".split(" "),b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],
dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],
thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:"autoplay controls crossorigin loop muted playsinline poster preload src height width".split(" ")};u.getDefaultWhiteList=function(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:"autoplay controls crossorigin loop muted preload src".split(" "),b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],
col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],
td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:"autoplay controls crossorigin loop muted playsinline poster preload src height width".split(" ")}};u.onTag=function(ea,va,M){};u.onIgnoreTag=function(ea,va,M){};u.onTagAttr=function(ea,va,M){};u.onIgnoreTagAttr=function(ea,va,M){};u.safeAttrValue=function(ea,va,M,S){if(M=f(M),"href"===va||"src"===
va){if("#"===(M=ba.trim(M)))return"#";if("http://"!==M.substr(0,7)&&"https://"!==M.substr(0,8)&&"mailto:"!==M.substr(0,7)&&"tel:"!==M.substr(0,4)&&"data:image/"!==M.substr(0,11)&&"ftp://"!==M.substr(0,6)&&"./"!==M.substr(0,2)&&"../"!==M.substr(0,3)&&"#"!==M[0]&&"/"!==M[0])return""}else if("background"===va){if(qa.lastIndex=0,qa.test(M))return""}else if("style"===va){if((L.lastIndex=0,L.test(M))||(Y.lastIndex=0,Y.test(M)&&(qa.lastIndex=0,qa.test(M))))return"";!1!==S&&(M=(S=S||na).process(M))}return M=
g(M)};u.escapeHtml=c;u.escapeQuote=r;u.unescapeQuote=h;u.escapeHtmlEntities=w;u.escapeDangerHtml5Entities=q;u.clearNonPrintableCharacter=n;u.friendlyAttrValue=f;u.escapeAttrValue=g;u.onIgnoreTagStripAll=function(){return""};u.StripTagBody=function(ea,va){"function"!=typeof va&&(va=function(){});var M=!Array.isArray(ea),S=[],ma=!1;return{onIgnoreTag:function(ua,wa,Q){return M||-1!==ba.indexOf(ea,ua)?Q.isClosing?(S.push([!1!==ma?ma:Q.position,Q.position+10]),ma=!1,"[/removed]"):(ma||(ma=Q.position),
"[removed]"):va(ua,wa,Q)},remove:function(ua){var wa="",Q=0;return ba.forEach(S,function(ka){wa+=ua.slice(Q,ka[0]);Q=ka[1]}),wa+=ua.slice(Q)}}};u.stripCommentTag=function(ea){for(var va="",M=0;M<ea.length;){var S=ea.indexOf("\x3c!--",M);if(-1===S){va+=ea.slice(M);break}va+=ea.slice(M,S);M=ea.indexOf("--\x3e",S);if(-1===M)break;M+=3}return va};u.stripBlankChar=function(ea){ea=ea.split("");return(ea=ea.filter(function(va){va=va.charCodeAt(0);return 127!==va&&(!(31>=va)||10===va||13===va)})).join("")};
u.cssFilter=na;u.getDefaultCSSWhiteList=da;var ca={},V=/[^a-zA-Z0-9_:\.\-]/gim;ca.parseTag=function(ea,va,M){var S="",ma=0,ua=!1,wa=!1,Q=0,ka=ea.length,za="",Ea="";Q=0;a:for(;Q<ka;Q++)if(Ea=ea.charAt(Q),!1===ua)"\x3c"===Ea&&(ua=Q);else if(!1===wa)if("\x3c"===Ea)S+=M(ea.slice(ma,Q)),ma=ua=Q;else if("\x3e"===Ea)S+=M(ea.slice(ma,ua)),ma=Ea=ea.slice(ua,Q+1),za=N.spaceIndex(ma),ma=-1===za?ma.slice(1,-1):ma.slice(1,za+1),za=("/"===(ma=N.trim(ma).toLowerCase()).slice(0,1)&&(ma=ma.slice(1)),"/"===ma.slice(-1)&&
(ma=ma.slice(0,-1)),ma),S+=va(ua,S.length,za,Ea,"\x3c/"===Ea.slice(0,2)),ma=Q+1,ua=!1;else{if('"'===Ea||"'"===Ea){za=1;for(var Ka=ea.charAt(Q-za);""===Ka.trim()||"\x3d"===Ka;){if("\x3d"===Ka){wa=Ea;continue a}Ka=ea.charAt(Q-++za)}}}else Ea===wa&&(wa=!1);return ma<ea.length&&(S+=M(ea.substr(ma))),S};ca.parseAttr=function(ea,va){function M(za,Ea){1>(za=(za=N.trim(za)).replace(V,"").toLowerCase()).length||(za=va(za,Ea||""))&&ma.push(za)}for(var S=0,ma=[],ua=!1,wa=ea.length,Q=0;Q<wa;Q++){var ka=ea.charAt(Q);
if(!1!==ua||"\x3d"!==ka)if(!1===ua||Q!==S||'"'!==ka&&"'"!==ka||"\x3d"!==ea.charAt(Q-1))/\s|\n|\t/.test(ka)&&((ea=ea.replace(/\s|\n|\t/g," "),!1===ua)?-1===(ka=a(ea,Q))?(M(N.trim(ea.slice(S,Q))),ua=!1,S=Q+1):Q=ka-1:-1===(ka=d(ea,Q-1))&&(M(ua,k(N.trim(ea.slice(S,Q)))),ua=!1,S=Q+1));else{if(-1===(ka=ea.indexOf(ka,Q+1)))break;M(ua,N.trim(ea.slice(S+1,ka)));ua=!1;S=(Q=ka)+1}else ua=ea.slice(S,Q),S=Q+1}return S<ea.length&&(!1===ua?M(ea.slice(S)):M(ua,k(N.trim(ea.slice(S))))),N.trim(ma.join(" "))};var X=
b.exports.FilterCSS,ja=u,pa=ca.parseTag,ta=ca.parseAttr;l.prototype.process=function(ea){if(!(ea=(ea=ea||"").toString()))return"";var va=this.options,M=va.whiteList,S=va.onTag,ma=va.onIgnoreTag,ua=va.onTagAttr,wa=va.onIgnoreTagAttr,Q=va.safeAttrValue,ka=va.escapeHtml,za=this.cssFilter;va.stripBlankChar&&(ea=ja.stripBlankChar(ea));va.allowCommentTag||(ea=ja.stripCommentTag(ea));var Ea=!1;va.stripIgnoreTagBody&&(Ea=ja.StripTagBody(va.stripIgnoreTagBody,ma),ma=Ea.onIgnoreTag);ea=pa(ea,function(Ka,Qa,
Pa,J,U){Qa={sourcePosition:Ka,position:Qa,isClosing:U,isWhite:M.hasOwnProperty(Pa)};if(null!=(Ka=S(Pa,J,Qa)))return Ka;if(Qa.isWhite){if(Qa.isClosing)return"\x3c/"+Pa+"\x3e";Ka=function(K){var T=N.spaceIndex(K);if(-1===T)return{html:"",closing:"/"===K[K.length-2]};T="/"===(K=N.trim(K.slice(T+1,-1)))[K.length-1];return T&&(K=N.trim(K.slice(0,-1))),{html:K,closing:T}}(J);var ia=M[Pa];Qa=ta(Ka.html,function(K,T){var fa,ra=-1!==N.indexOf(ia,K);return null==(fa=ua(Pa,K,T,ra))?ra?(T=Q(Pa,K,T,za))?K+'\x3d"'+
T+'"':K:null==(fa=wa(Pa,K,T,ra))?void 0:fa:fa});J="\x3c"+Pa;return Qa&&(J+=" "+Qa),Ka.closing&&(J+=" /"),J+="\x3e"}return null==(Ka=ma(Pa,J,Qa))?ka(J):Ka},ka);return Ea&&(ea=Ea.remove(ea)),ea};return function(ea,va){function M(ua,wa){return(new S(wa)).process(ua)}var S=l,ma;for(ma in(va=ea.exports=M).filterXSS=M,va.FilterXSS=S,u)va[ma]=u[ma];for(ma in ca)va[ma]=ca[ma];"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=
ea.exports)}(B,B.exports),function(){function ea(va,M){var S,ma=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],audio:["autoplay","controls","loop","muted","preload"],b:[],br:[],dd:["style"],div:["align","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],hr:[],i:[],img:"alt border height src style width".split(" "),li:[],ol:[],p:["style"],
source:["media","src","type"],span:["style"],strong:[],sub:["style"],sup:["style"],table:"border cellpadding cellspacing height style width".split(" "),tbody:[],tr:["align","height","style","valign"],td:"align colspan height nowrap rowspan style valign width".split(" "),th:"align colspan height nowrap rowspan style valign width".split(" "),u:[],ul:[],video:"autoplay controls height loop muted poster preload width".split(" ")};this.allowedProtocols="http https mailto iform tel flow lfmobile arcgis-navigator arcgis-appstudio-player arcgis-survey123 arcgis-collector arcgis-workforce arcgis-explorer arcgis-trek2there arcgis-quickcapture mspbi comgooglemaps pdfefile pdfehttp pdfehttps boxapp boxemm awb awbs gropen radarscope".split(" ");
this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(ua,wa,Q,ka){return"a"===ua&&"href"===wa||("img"===ua||"source"===ua)&&"src"===wa?ma.sanitizeUrl(Q):B.exports.safeAttrValue(ua,wa,Q,ka)}};va&&!M?S=va:va&&M?(S=Object.create(this.arcgisFilterOptions),Object.keys(va).forEach(function(ua){"whiteList"===ua?S.whiteList=ma._extendObjectOfArrays([ma.arcgisWhiteList,va.whiteList||{}]):S[ua]=va[ua]})):(S=Object.create(this.arcgisFilterOptions)).whiteList=this.arcgisWhiteList;this.xssFilterOptions=
S;this._xssFilter=new B.exports.FilterXSS(S)}return ea.prototype.sanitize=function(va,M){switch(void 0===M&&(M={}),typeof va){case "number":return isNaN(va)||!isFinite(va)?null:va;case "boolean":return va;case "string":return this._xssFilter.process(va);case "object":return this._iterateOverObject(va,M);default:if(!M.allowUndefined||void 0!==va)return null}},ea.prototype.sanitizeUrl=function(va){var M=this._trim(va.substring(0,va.indexOf(":")));return"/"===va||"#"===va||"#"===va[0]||-1<this.allowedProtocols.indexOf(M.toLowerCase())?
B.exports.escapeAttrValue(va):""},ea.prototype.sanitizeHTMLAttribute=function(va,M,S,ma){return"function"==typeof this.xssFilterOptions.safeAttrValue?this.xssFilterOptions.safeAttrValue(va,M,S,ma):B.exports.safeAttrValue(va,M,S,ma)},ea.prototype.validate=function(va,M){void 0===M&&(M={});M=this.sanitize(va,M);return{isValid:va===M,sanitized:M}},ea.prototype._extendObjectOfArrays=function(va){var M={};return va.forEach(function(S){Object.keys(S).forEach(function(ma){Array.isArray(S[ma])&&Array.isArray(M[ma])?
M[ma]=M[ma].concat(S[ma]):M[ma]=S[ma]})}),M},ea.prototype._iterateOverObject=function(va,M){var S=this;void 0===M&&(M={});try{var ma=!1,ua=void 0;if(Array.isArray(va))ua=va.reduce(function(wa,Q){var ka=S.validate(Q,M);return ka.isValid?wa.concat([Q]):(ma=!0,wa.concat([ka.sanitized]))},[]);else{if(!D(va))return M.allowUndefined&&void 0===va?void 0:null;ua=Object.keys(va).reduce(function(wa,Q){var ka=va[Q],za=S.validate(ka,M);return za.isValid?wa[Q]=ka:(ma=!0,wa[Q]=za.sanitized),wa},{})}return ma?ua:
va}catch(wa){return null}},ea.prototype._trim=function(va){return String.prototype.trim?va.trim():va.replace(/(^\s*)|(\s*$)/g,"")},ea}()})},"dijit/_Templated":function(){define("./_WidgetBase ./_TemplatedMixin ./_WidgetsInTemplateMixin dojo/_base/array dojo/_base/declare dojo/_base/lang dojo/_base/kernel".split(" "),function(G,x,c,r,h,w,q){w.extend(G,{waiRole:"",waiState:""});return h("dijit._Templated",[x,c],{constructor:function(){q.deprecated(this.declaredClass+": dijit._Templated deprecated, use dijit._TemplatedMixin and if necessary dijit._WidgetsInTemplateMixin",
"","2.0")},_processNode:function(n,f){var g=this.inherited(arguments),a=f(n,"waiRole");a&&n.setAttribute("role",a);(a=f(n,"waiState"))&&r.forEach(a.split(/\s*,\s*/),function(d){-1!=d.indexOf("-")&&(d=d.split("-"),n.setAttribute("aria-"+d[0],d[1]))});return g}})})},"dijit/_WidgetsInTemplateMixin":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/_base/lang","dojo/parser"],function(G,x,c,r,h){return c("dijit._WidgetsInTemplateMixin",null,{_earlyTemplatedStartup:!1,contextRequire:null,
_beforeFillContent:function(){if(/dojoType|data-dojo-type/i.test(this.domNode.innerHTML)){var w=this.domNode;this.containerNode&&!this.searchContainerNode&&(this.containerNode.stopParser=!0);h.parse(w,{noStart:!this._earlyTemplatedStartup,template:!0,inherited:{dir:this.dir,lang:this.lang,textDir:this.textDir},propsThis:this,contextRequire:this.contextRequire,scope:"dojo"}).then(r.hitch(this,function(q){this._startupWidgets=q;for(var n=0;n<q.length;n++)this._processTemplateNode(q[n],function(f,g){return f[g]},
function(f,g,a){return g in f?f.connect(f,g,a):f.on(g,a,!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(w,q,n){return q(w,"dojoType")||q(w,"data-dojo-type")?!0:this.inherited(arguments)},
startup:function(){G.forEach(this._startupWidgets,function(w){w&&!w._started&&w.startup&&w.startup()});this._startupWidgets=null;this.inherited(arguments)}})})},"esri/dijit/_EventedWidget":function(){define("dojo/_base/declare dojo/_base/lang dojo/aspect dojo/on ../Evented dijit/_WidgetBase".split(" "),function(G,x,c,r,h,w){return G([w,h],{_onMap:function(q){var n=this.constructor._onMap;n&&n.FINAL||(delete this.constructor._onMap,n=this.registerConnectEvents(),n.FINAL=!0);q=q.toLowerCase();if(n[q])var f=
this[n[q].method];else q=this._onCamelCase(q),this[q]&&(f=q);return f},on:function(q,n){var f=this._onMap(q),g=q.replace(/\-/g,""),a="on"+g in this.domNode;return f||!a?this.inherited(arguments):this.own(r(this.domNode,g,n))[0]},emit:function(q,n,f){var g,a=q.toLowerCase(),d=this.constructor._onMap||this.registerConnectEvents();var k=this[this._onMap(a)];n=n||{};n.target||(n.target=this);if(k&&d&&d[a]){this._onObj2Arr(function(){g=Array.prototype.slice.call(arguments)},d[a].argKeys)(n);var l=x.mixin({},
arguments);l[2]=g;l[0]=d[a].name.replace(/^on/,"")}return this.inherited(l||arguments)}})})},"esri/dijit/Legend/utils":function(){define(["dojo/_base/lang","../../lang","dojo/i18n!../../nls/jsapi"],function(G,x,c){var r=c.widgets.legend;return{getVisualVariableTitle:function(h,w){var q=h.field,n=h.normalizationField,f=!1,g=!1,a=!1;q=G.isFunction(q)?null:q;n=G.isFunction(n)?null:n;if(h.legendOptions&&h.legendOptions.title)var d=h.legendOptions.title;else if(h.valueExpressionTitle)d=h.valueExpressionTitle;
else{if(w.renderer&&w.renderer.authoringInfo&&w.renderer.authoringInfo.visualVariables){var k=w.renderer.authoringInfo.visualVariables;for(h=0;h<k.length;h++){var l=k[h];if("colorInfo"===l.type&&"ratio"===l.style){f=!0;break}else if("colorInfo"===l.type&&"percent"===l.style){g=!0;break}else if("colorInfo"===l.type&&"percentTotal"===l.style){a=!0;break}}}(f=a&&"showRatioPercentTotal"||g&&"showRatioPercent"||f&&"showRatio"||n&&"showNormField"||q&&"showField"||null)&&(d=x.substitute({field:q&&w.getFieldLabel(q),
normField:n&&w.getFieldLabel(n)},"showField"===f?"${field}":r[f]))}return d},getRendererTitle:function(h,w){if(h){if("esri.renderer.ClassBreaksRenderer"===h.declaredClass){var q=h.attributeField;var n=h.normalizationField;var f="percent-of-total"===h.normalizationType}q=G.isFunction(q)?null:q;n=G.isFunction(n)?null:n;if(h.legendOptions&&h.legendOptions.title)var g=h.legendOptions.title;else h.valueExpressionTitle?g=h.valueExpressionTitle:(h=n&&"showNormField"||(f?"showNormPct":null)||q&&"showField"||
null)&&(g=x.substitute({field:q&&w.getFieldLabel(q),normField:n&&w.getFieldLabel(n)},"showField"===h?"${field}":r[h]))}return g}}})},"esri/layers/clustering/GeohashAggregation":function(){define("dojo/has dojo/_base/declare dojo/_base/lang dojo/_base/array ../../kernel ../../Evented ../../geometry/Point ../../geometry/Extent ../../geometry/mathUtils ../../support/expressionUtils ../../core/timerUtils ../support/attributeUtils ./geohashUtils ./statUtils".split(" "),function(G,x,c,r,h,w,q,n,f,g,a,d,
k,l){x=x(w,{loaded:!1,started:!1,map:null,layer:null,lod:null,tolerance:null,clusterMode:null,clusterRadius:null,sortEnabled:!0,filterEnabled:!0,bufferEnabled:!0,updateEnabled:!0,clusters:null,clustersEnabled:!0,statisticInfos:null,defaults:{lod:1,tolerance:0,clusterMode:"auto",clusterRadius:80,sortEnabled:!0,filterEnabled:!0,bufferEnabled:!0,updateEnabled:!0},_eventHandles:null,_updateHandle:null,_indexHandle:null,_cellIndex:null,_globalIndex:null,_perfProfile:null,_indexUpdated:!1,_cellSizeScaleFactor:1.5,
_extentScaleFactor:1.25,_maxGeohashLength:12,_minClusterRadius:15,_levelChange:!0,_clusterFieldPrefix:"cluster_",_mapLevelChange:!1,constructor:function(m){this._update=c.hitch(this,this._update);this._indexFeatures=c.hitch(this,this._indexFeatures);this._eventHandles=[];this._globalIndex={numFeatures:null,fullExtent:null,lodStats:null};this._perfProfile={lastIndex:{total:null,numFeatures:0},lastUpdate:{cells:null,clusters:null,total:null}};this.clusters=[];this.map=m.map;this.layer=m.layer;this.setLod(m.lod);
this.setTolerance(m.tolerance);this.setClusterMode(m.clusterMode);this.setClusterRadius(m.clusterRadius);this.setSortEnabled(m.sortEnabled);this.setFilterEnabled(m.filterEnabled);this.setBufferEnabled(m.bufferEnabled);this.setUpdateEnabled(m.updateEnabled);this.setStatisticInfos(m.statisticInfos);this._load();this.loaded?this._startup():this._eventHandles.push(this.on("load",c.hitch(this,this._startup)))},destroy:function(m){this._displayFeatures(!0,m);r.forEach(this._eventHandles,function(e){e.remove()});
a.clearTimeout(this._updateHandle);a.clearTimeout(this._indexHandle);this._cellIndex=this._globalIndex=this._eventHandles=this._updateHandle=this._indexHandle=this.map=this.layer=this.clusters=null},setLod:function(m){var e=this.lod;this.lod=m||this.defaults.lod;e!==this.lod&&this.update()},setTolerance:function(m){var e=this.tolerance;this.tolerance=m||this.defaults.tolerance;e!==this.tolerance&&this.update()},setClusterMode:function(m){var e=this.clusterMode;this.clusterMode=m||this.defaults.clusterMode;
this._evalClusterParams();e!==this.clusterMode&&this.update()},setClusterRadius:function(m){var e=this.clusterRadius;this.clusterRadius=null!=m?m:this.defaults.clusterRadius;this._evalClusterParams();e!==this.clusterRadius&&this.update()},setSortEnabled:function(m){var e=this.sortEnabled;this.sortEnabled=null!=m?!!m:this.defaults.sortEnabled;e!==this.sortEnabled&&this.update()},setFilterEnabled:function(m){var e=this.filterEnabled;this.filterEnabled=null!=m?!!m:this.defaults.filterEnabled;e!==this.filterEnabled&&
this.update()},setBufferEnabled:function(m){var e=this.bufferEnabled;this.bufferEnabled=null!=m?!!m:this.defaults.bufferEnabled;e!==this.bufferEnabled&&this.update()},setUpdateEnabled:function(m){var e=this.updateEnabled;(this.updateEnabled=null!=m?!!m:this.defaults.updateEnabled)&&e!==this.updateEnabled&&(this._mapLevelChange=!0,this.update())},setStatisticInfos:function(m){this.statisticInfos=m||[];this.loaded&&this._applyStatInfos(this.statisticInfos)},update:function(){this.loaded&&null==this._updateHandle&&
(this._updateHandle=a.setTimeout(this._update,a.priority.HIGH))},isUpdateScheduled:function(){return null!=this._updateHandle},index:function(){this.loaded&&null==this._indexHandle&&(this._indexHandle=a.setTimeout(this._indexFeatures,a.priority.HIGH))},getCell:function(m){return this._cellIndex[m.length][m]},getCluster:function(m){var e;r.some(this.clusters,function(b){-1<r.indexOf(b.geohashes,m)&&(e=b);return!!e});return e},getCellsInCluster:function(m){var e=[];r.forEach(m&&m.geohashes,function(b){(b=
this.getCell(b))&&e.push(b)},this);return e},getFeaturesInCluster:function(m){var e=[];m=this.getCellsInCluster(m);r.forEach(m,function(b){Array.prototype.push.apply(e,b.features)});return e},toggleFeatureVisibility:function(m){this.index()},getCurrentLodStats:function(){var m=this._globalIndex.lodStats;return m&&m[this.lod]},getNumFeatures:function(){return this._globalIndex.numFeatures},getFullExtent:function(){var m=this._globalIndex.fullExtent;return m&&Infinity!==m.xmin?new n(m):null},_load:function(){this._displayFeatures(!1);
this._checkLoadStatus();this.map.loaded||this._eventHandles.push(this.map.on("load",c.hitch(this,this._checkLoadStatus)));this.layer.loaded||this._eventHandles.push(this.layer.on("load",c.hitch(this,this._checkLoadStatus)))},_checkLoadStatus:function(){if(this.map.loaded&&this.layer.loaded){if("esriGeometryPoint"!==this.layer.geometryType)var m=Error("GeohashAggregation is supported only for points");else{var e=this.map.spatialReference;e.isWebMercator()||4326===e.wkid||(m=Error("GeohashAggregation is supported only when map spatial reference is WGS84 or WebMercator"))}m?
(this.loadError=m,this.emit("load-error",{error:m})):(this.loaded=!0,this.emit("load"))}},_startup:function(){this._evalUpdateStatus();this.index();this._processExtentChange();this._eventHandles.push(this.layer.on("update-end",c.hitch(this,this.index)),this.layer.on("edits-complete",c.hitch(this,this.index)),this.layer.on("graphics-clear",c.hitch(this,this.index)),this.layer.on("suspend",c.hitch(this,this._evalUpdateStatus)),this.layer.on("resume",c.hitch(this,this._evalUpdateStatus)),this.map.on("extent-change",
c.hitch(this,this._processExtentChange)))},_evalUpdateStatus:function(){this.setUpdateEnabled(!this.layer.suspended)},_processExtentChange:function(m){this._mapLevelChange=!(!m||!m.levelChange);this._evalClusterParams();this.update()},_update:function(){this._updateHandle=null;if(this.updateEnabled){this.emit("update-start");if(this.clustersEnabled){var m=this.map.geographicExtent;if(m){var e=this._getIntersectingCells(m);m=this._getClusters(e.cells,m);this.clusters=m.clusters;this._applyStatInfosToClusters();
e=e.profile;m=m.profile;var b=e.total+m.total;e.total=this._getElapsedTime(e.total);m.total=this._getElapsedTime(m.total);var p=this._perfProfile.lastUpdate={};p.cells=e;p.clusters=m;p.total=this._getElapsedTime(b)}}else this.clusters=[],this._perfProfile.lastUpdate=null;e=this._indexUpdated;this._indexUpdated=!1;m=this._mapLevelChange;this._mapLevelChange=!1;this.emit("update-end",{levelChange:this._levelChange,mapLevelChange:m,indexChange:e})}},_displayFeatures:function(m,e){var b=this.layer;m=
!m;b.suspendGraphics(m);!1!==e&&(m?b.clearNodes():b.redraw())},_indexFeatures:function(){this._indexHandle=null;var m=this._getTime();this._initializeIndexing();var e=0,b=this._globalIndex.fullExtent;r.forEach(this.layer.graphics,function(z){if(z.visible){var C=z.geometry,y=this._getLngLat(C);if(y){var D=C.getCacheValue("_geohash");void 0===D&&(D=k.pointToGeohash(y),C.setCacheValue("_geohash",D||null))}D&&(this._addGeohashToIndex(D,z,y),e++,this._updateExtent(b,y))}},this);this._applyStatInfosToIndex();
this._globalIndex.numFeatures=e;for(var p=this._globalIndex.lodStats,t=1;t<=this._maxGeohashLength;t++)p[t]=this._getLODStats(t,e);this._perfProfile.lastIndex.total=this._getElapsedTime(m,this._getTime());this._perfProfile.lastIndex.numFeatures=e;this._indexUpdated=!0;this.emit("index-complete");this.started||(this.started=!0,this.emit("start"));this.update()},_initializeIndexing:function(){this._globalIndex={numFeatures:0,fullExtent:{xmin:Infinity,ymin:Infinity,xmax:-Infinity,ymax:-Infinity},lodStats:{}};
for(var m=this._cellIndex=[],e=1;e<=this._maxGeohashLength;e++)m[e]={}},_getLngLat:function(m){if(m){var e=m.getLongitude();m=m.getLatitude();m=null!=e&&null!=m?{x:e,y:m}:null}return m},_addGeohashToIndex:function(m,e,b){for(var p=this._cellIndex,t="",z=0;z<this._maxGeohashLength;z++){t+=m[z];var C=p[t.length],y=C[t];y||(y=C[t]={count:0,centroid:{x:null,y:null},extent:{xmin:Infinity,ymin:Infinity,xmax:-Infinity,ymax:-Infinity},features:[],geohash:t,statistics:null});this._updateItem(y,1,b,!0);y.features.push(e)}},
_getLODStats:function(m,e){var b=this._cellIndex[m],p=0,t=Infinity,z=-Infinity,C=null,y;for(y in b){var D=b[y];p++;D.count<t&&(t=D.count);D.count>z&&(z=D.count)}0<p&&(C=Number((e/p).toFixed(2)));return{lod:m,count:p,min:Infinity===t?null:t,max:-Infinity===z?null:z,avg:C}},_evalClusterParams:function(){if(this.loaded&&"auto"===this.clusterMode){var m=this._getClusterParams(this.map.getResolutionInMeters(),this.clusterRadius,this._minClusterRadius);this._levelChange=this.lod!==m.lod;this.lod=m.lod;
this.tolerance=m.tolerance}},_getClusterParams:function(m,e,b){e<b&&(e=b);m=Math.ceil(m*e);e=this._getClosestLODRange(m).max;do b=this._getCellSize(e),(b=m>=this._cellSizeScaleFactor*b||1===b)||(e+=1);while(!b);b=m/this._getCellSize(e);return{lod:e,tolerance:m,multiplier:Number(b.toFixed(2))}},_getClosestLODRange:function(m){for(var e,b=this._maxGeohashLength;1<=b;b--)if(this._getCellSize(b)>=m){e=b;break}null==e&&(e=1);m=e+1;m>this._maxGeohashLength&&(m=this._maxGeohashLength);return{min:e,max:m}},
_getCellSize:function(m){m=k.getCellSizeInMeters(m);return Math.ceil(Math.min(m.width,m.height))},_sorter:function(m,e){var b=m.centroid,p=e.centroid;return m.count>e.count?-1:m.count<e.count?1:b.x>p.x?-1:b.x<p.x?1:0},_getIntersectingCells:function(m){var e=this._getTime();this.bufferEnabled&&(m=m.expand(this._extentScaleFactor));var b=k.getIntersecting(m,this.lod,this.bufferEnabled?this.tolerance:0);m=this._getTime();var p=[],t=this.tolerance,z=this.sortEnabled;r.forEach(b,function(C){(C=this.getCell(C))&&
p.push(C)},this);t&&z&&p.sort(this._sorter);b=this._getTime();return{cells:p,profile:{findCells:this._getElapsedTime(e,m),scanAndSortCells:this._getElapsedTime(m,b),total:b-e}}},_getClusters:function(m,e){var b=this._getTime(),p=[],t={},z={findCells:0};r.forEach(m,function(C,y){(C=this._createCluster(C,t,z))&&p.push(C)},this);this._markIntersecting(p,e);this.filterEnabled&&(p=this._getIntersectingClusters(p));m=this._getTime();return{clusters:p,profile:{findCellsInCluster:this._getElapsedTime(z.findCells),
total:m-b}}},_markIntersecting:function(m,e){var b=e.normalize();r.forEach(m,function(p){var t=p.centroid.x,z=p.centroid.y;p.isIntersecting=r.some(b,function(C){return t>=C.xmin&&t<=C.xmax&&z>=C.ymin&&z<=C.ymax})})},_getIntersectingClusters:function(m){return r.filter(m,function(e){return e.isIntersecting})},_createCluster:function(m,e,b){if(!e[m.geohash]){var p=[{cell:m,distance:0}];if(this.tolerance){var t=this._getTime(),z=k.getNeighborsWithinDistance(m.centroid,this.lod,this.tolerance);b.findCells+=
this._getTime()-t;r.forEach(z,function(C){if(C!==m.geohash&&(C=this.getCell(C))){var y=this._calculateDistance(m.centroid,C.centroid);y<=this.tolerance&&p.push({cell:C,distance:y})}},this)}return this._mergeCells(p,e)}},_calculateDistance:function(m,e){return f.getLength(k.geographicToWebMercator(m),k.geographicToWebMercator(e))},_mergeCells:function(m,e){var b=this._initializeCluster({},m[0].cell.geohash);r.forEach(m,function(p){var t=p.cell,z=t.geohash;p=p.distance;var C=e[z];if(C)if(p<C.distance)this._removeCellFromCluster(z,
e);else return;e[z]={cluster:b,distance:p};this._updateItem(b,t.count,t.centroid);b.geohashes.push(z)},this);return b},_removeCellFromCluster:function(m,e){var b=e[m].cluster;delete e[m];m=r.indexOf(b.geohashes,m);-1<m&&b.geohashes.splice(m,1);this._reevaluateCluster(b)},_reevaluateCluster:function(m){var e=m.geohashes;m=this._initializeCluster(m,m.primary);r.forEach(e,function(b){var p=this.getCell(b);p&&(this._updateItem(m,p.count,p.centroid),m.geohashes.push(b))},this)},_initializeCluster:function(m,
e){m.count=0;m.centroid=new q(null,null);m.geohashes=[];m.primary=e;m.statistics=null;return m},_applyStatInfos:function(m){m=this._getValidStatInfos(m);this._applyStatInfosToIndex(m);this._applyStatInfosToClusters(m)},_getValidStatInfos:function(m){var e=[];r.forEach(m,function(b){var p=b.attributeInfo;b=b.statisticType;var t="angle"===p.attributeType;if(l.isSupportedStatisticType(b)&&(!t||"avg"===b)){var z="arithmetic"===p.rotationType;e.push({attributeCache:d.createAttributeCache(p,"type"===b),
identifier:l.getStatisticId(p,b),statFunctions:l.getStatisticFunctions(b),isAngular:t,isDate:"date"===p.attributeType,isArithmetic:z})}});return e},_applyStatInfosToIndex:function(m){m=m||this._getValidStatInfos(this.statisticInfos);var e=this._cellIndex;if(e)for(var b=1;b<=this._maxGeohashLength;b++){var p=e[b],t;for(t in p)this._applyStatInfosToCell(p[t],m)}},_applyStatInfosToCell:function(m,e){var b=this._initializeStats(m,e);r.forEach(m.features,function(p){this._calcFeatureStats(p,e,b)},this);
this._summarizeStats(m,b,e)},_calcFeatureStats:function(m,e,b){m.attributes&&r.forEach(e,function(p){var t=b[p.identifier],z=p.attributeCache;z=z?m._getDataValue(z.attributeInfo,z,g):null;p.statFunctions.updateCellStat(t,z,p)})},_applyStatInfosToClusters:function(m){m=m||this._getValidStatInfos(this.statisticInfos);var e=this._clusterFieldPrefix;r.forEach(this.clusters,function(b){var p=this._initializeStats(b,m);r.forEach(this.getCellsInCluster(b),function(t){this._calcCellStats(t,m,p)},this);this._summarizeStats(b,
p,m,e);b.attributes[e+"id"]=b.primary},this)},_calcCellStats:function(m,e,b){var p=m.statistics;r.forEach(e,function(t){var z=t.identifier;t.statFunctions.updateClusterStat(b[z],p[z],t)})},_initializeStats:function(m,e){var b=m.statistics={};r.forEach(e,function(p){b[p.identifier]=p.statFunctions.initialize(p)});return b},_summarizeStats:function(m,e,b,p){var t=m.attributes={};p=p||"";t[p+"count"]=m.count;r.forEach(b,function(z){var C=this._getStatFieldName(z,p);t[C]=z.statFunctions.summarize(e[z.identifier],
z)},this)},_getStatFieldName:function(m,e){return(e||"")+m.identifier},_updateItem:function(m,e,b,p){var t=b.y,z=m.centroid,C=m.count;z.x=(C*z.x+e*b.x)/(C+e);z.y=(C*z.y+e*t)/(C+e);m.count+=e;p&&this._updateExtent(m.extent,b)},_updateExtent:function(m,e){var b=e.x;e=e.y;b<m.xmin&&(m.xmin=b);b>m.xmax&&(m.xmax=b);e<m.ymin&&(m.ymin=e);e>m.ymax&&(m.ymax=e)},_getTime:function(){return window.performance?window.performance.now():(new Date).getTime()},_getElapsedTime:function(m,e){m=null!=m&&null!=e?e-m:
m;if(null!=m){var b="millisecond";1E3<=m&&(m/=1E3,b="second",60<=m&&(m/=60,b="minute"));b={value:Number(m.toFixed(2)),unit:b}}return b}});G("extend-esri")&&c.setObject("layers.clustering.GeohashAggregation",x,h);return x})},"esri/core/timerUtils":function(){define([],function(){function G(w){var q,n=w.length;for(q=0;q<n;q++)w[q]()}var x={LOW:1,HIGH:2},c,r={};r[x.LOW]=[];r[x.HIGH]=[];var h=function(){clearTimeout(c);c=null;var w=r[x.HIGH];r[x.HIGH]=[];G(w);w=r[x.LOW];r[x.LOW]=[];G(w)};return{priority:x,
callbackQueue:r,setTimeout:function(w,q){w=[q,r[q].push(w)-1];c||(c=setTimeout(h,0));return w},clearTimeout:function(w){w&&r[w[0]].splice(w[1],1)}}})},"esri/layers/clustering/geohashUtils":function(){define("dojo/has dojo/string dojo/_base/lang dojo/_base/array ../../kernel ../../geometry/Point ../../geometry/Extent ../../SpatialReference ../../geometry/webMercatorUtils".split(" "),function(G,x,c,r,h,w,q,n,f){function g(A){var F=A.spatialReference;if(!F)return{x:A.x,y:A.y};var I=F.isWebMercator(),
N;4326===F.wkid?N={x:A.x,y:A.y}:I&&(N={x:A.getLongitude(),y:A.getLatitude()});return N}function a(A){var F=A.spatialReference,I=!(!F||!F.isWebMercator()),N;F&&4326===F.wkid?N=new q(A.toJson()):I&&(N=f.webMercatorToGeographic(A,!0));return N}function d(A,F){F.x=w.prototype._normalizeX(A.x,n.prototype._info[4326]);F.y=A.y;return F}function k(A,F){F=F.slice();F.splice(1,0,0);for(var I=F[0],N=F[2],da=0;da<A.length;da++){Number(A[da])?F[0]=F[1]:F[2]=F[1];var ba=F[1]=(F[0]+F[2])/2;I=F[0];N=F[2]}return{value:ba,
min:I,max:N}}function l(A,F,I){var N=[];F=F.slice();F.splice(1,0,0);for(var da=F[0],ba=F[2],na=0;na<I;na++)A>=F[1]?(F[0]=F[1],da=1):(F[2]=F[1],da=0),F[1]=(F[0]+F[2])/2,N.push(da),da=F[0],ba=F[2];return{value:N.join(""),min:da,max:ba}}function m(A){var F=A*E.bitsPerBase32Char;0===F%2?A=F/=2:(A=(F+1)/2,F-=A);return{lon:A,lat:F}}function e(A,F){var I={x:A.xmin,y:A.ymax},N={x:A.xmax,y:A.ymin},da={x:A.xmax,y:A.ymax};return{sw:v.pointToGeohash({x:A.xmin,y:A.ymin},F),nw:v.pointToGeohash(I,F),se:v.pointToGeohash(N,
F),ne:v.pointToGeohash(da,F)}}function b(A,F,I,N,da){var ba=A;do da[ba]||(da[ba]=!0,N.push(ba)),(A=ba===F)||(ba=u(ba,I));while(!A)}function p(A,F,I,N){var da=e(A,F);A=[];b(da.sw,da.nw,"n",A,{});F=[];b(da.se,da.ne,"n",F,{});for(da=0;da<A.length;da++)b(A[da],F[da],"e",I,N)}function t(A){return r.filter(A,function(F){return 180===F.xmax?!0:!1})[0]}function z(A){return r.filter(A,function(F){return-180===F.xmin?!0:!1})[0]}function C(A,F,I,N){var da=v.geographicToWebMercator(A);A={x:da.x-F,y:da.y-F};F=
v.webMercatorToGeographic({x:da.x+F,y:da.y+F},!0);A=v.webMercatorToGeographic(A,!0);return new q(null!=I?I:A.x,A.y,null!=N?N:F.x,F.y)}function y(A,F,I,N){A=e(A,F);var da,ba;"min"===N?ba=180:"max"===N&&(da=-180);var na=da;N=ba;var xa=v.geohashToCell(A.sw).extent;F=v.geohashToCell(A.ne).extent;A=null!=na?na:xa.xmin;xa=xa.ymin;N=null!=N?N:F.xmax;F=F.ymax;A=C({x:A,y:xa},I,da,ba);I=C({x:N,y:F},I,da,ba);return new q(A.xmin,A.ymin,I.xmax,I.ymax)}function D(A,F,I){var N=A,da=0;do da++,(A=N===F)||(N=u(N,I));
while(!A);return da}function B(A,F){A=e(A,F);F=D(A.nw,A.ne,"e");return{rows:D(A.nw,A.sw,"s"),cols:F}}function u(A,F){var I=A.length%2,N=A.slice(-1),da=E.decimals[N];A=A.slice(0,-1);-1!=E.borders[F][I].indexOf(N)&&A&&(A=u(A,F));return A+E.neighbors[F][I][da]}var E={base32:"0123456789bcdefghjkmnpqrstuvwxyz",decimals:function(){for(var A={},F=0;32>F;F++)A["0123456789bcdefghjkmnpqrstuvwxyz"[F]]=F;return A}(),neighbors:{n:[null,"238967debc01fg45kmstqrwxuvhjyznp"],s:[null,"bc01fg45238967deuvhjyznpkmstqrwx"],
e:[null,"14365h7k9dcfesgujnmqp0r2twvyx8zb"],w:[null,"p0r21436x8zb9dcf5h7kjnmqesgutwvy"]},borders:{n:[null,"bcfguvyz"],s:[null,"0145hjnp"],e:[null,"prxz"],w:[null,"028b"]},bitsPerBase32Char:5,maxGeohashLength:12,longitudeRange:[-180,180],latitudeRange:[-90,90]};E.neighbors.n[0]="14365h7k9dcfesgujnmqp0r2twvyx8zb";E.neighbors.s[0]="p0r21436x8zb9dcf5h7kjnmqesgutwvy";E.neighbors.e[0]="238967debc01fg45kmstqrwxuvhjyznp";E.neighbors.w[0]="bc01fg45238967deuvhjyznpkmstqrwx";E.borders.n[0]="prxz";E.borders.s[0]=
"028b";E.borders.e[0]="bcfguvyz";E.borders.w[0]="0145hjnp";var v={geographicToWebMercator:function(A){A=w.lngLatToXY(A.x,A.y);return{x:A[0],y:A[1]}},webMercatorToGeographic:function(A,F){A=w.xyToLngLat(A.x,A.y,F);return{x:A[0],y:A[1]}},geohashToCell:function(A){var F;var I=[];for(F=0;F<A.length;F++){var N=I,da=N.push;var ba=E.decimals[A[F]].toString(2);ba=x.pad(ba,E.bitsPerBase32Char,"0");da.call(N,ba)}I=I.join("");F=[];N=[];for(da=0;da<I.length;da++)0===da%2?F.push(I[da]):N.push(I[da]);F=F.join("");
N=N.join("");F=[F,N];I=k(F[0],E.longitudeRange);N=k(F[1],E.latitudeRange);F=I.value;return{point:{x:F,y:N.value},extent:{xmin:I.min,xmax:I.max,ymin:N.min,ymax:N.max},geohash:A}},pointToCell:function(A,F){F=F||E.maxGeohashLength;if(A=g(A)){A=d(A,A);var I=m(F);F=l(A.x,E.longitudeRange,I.lon);var N=l(A.y,E.latitudeRange,I.lat);I=F.value;var da=N.value;F={xmin:F.min,xmax:F.max,ymin:N.min,ymax:N.max};N=[];for(var ba=Math.ceil((I.length+da.length)/E.bitsPerBase32Char),na=0,xa=0,W=0;W<ba*E.bitsPerBase32Char;W++){var la=
0===W%2?I[na++]:da[xa++];null==la&&(la=0);N.push(la)}I=N.join("");da=E.bitsPerBase32Char;N=I.length/da;ba=[];for(na=0;na<N;na++){la=I.substr(na*da,da);xa=ba;W=xa.push;var ha=0;la=la.split("").reverse().join("");for(var sa=0;sa<la.length;sa++)ha+=Number(la[sa])*Math.pow(2,sa);W.call(xa,E.base32[ha])}I=ba.join("");return{point:A,extent:F,geohash:I}}},geohashToPoint:function(A){return v.geohashToCell(A).point},pointToGeohash:function(A,F){return(A=v.pointToCell(A,F))&&A.geohash},getCells:function(A){return r.map(A,
function(F){return v.geohashToCell(F)})},getCellSize:function(A){var F=E.longitudeRange,I=E.latitudeRange;F=Math.abs(F[1]-F[0]);I=Math.abs(I[1]-I[0]);A=m(A||1);return{width:F/Math.pow(2,A.lon),height:I/Math.pow(2,A.lat)}},getCellSizeInMeters:function(A){A=v.getCellSize(A);var F=f.metersPerDegree;A.width*=F;A.height*=F;return A},getIntersecting:function(A,F,I){F=F||1;I=I||0;var N=[],da=a(A);if(da){I&&(da=v.expandExtent(A,F,I));A=da.normalize();var ba={};r.forEach(A,function(na){p(na,F,N,ba)})}return N},
countIntersecting:function(A,F,I){F=F||1;I=I||0;var N=0,da=a(A);if(da){I&&(da=v.expandExtent(A,F,I));A=da.normalize();if(2===A.length){N=t(A);da=z(A);I=B(N,F);var ba=B(da,F);A=I.rows;I=I.cols+ba.cols;N={x:N.xmin,y:N.ymax};da={x:da.xmax,y:da.ymax};N=d(N,{});da=d(da,{});N=v.pointToGeohash(N,F);F=v.pointToGeohash(da,F);N===F&&I--;F={rows:A,cols:I}}else F=B(A[0],F);N=F.cols*F.rows}return N},getChildren:function(A){A=A||"";var F=[],I;for(I in E.decimals)F.push(A+I);return F},getNeighbors:function(A){var F=
u(A,"n"),I=u(A,"s");return[F,u(F,"e"),u(F,"w"),I,u(I,"e"),u(I,"w"),u(A,"e"),u(A,"w")]},getExtentFromDistance:function(A,F){F=F||1E3;var I;(A=g(A))&&(I=C(A,F));return I},expandExtent:function(A,F,I){F=F||1;I=I||0;if(A=a(A)){if(I){A=A.normalize();if(2===A.length){var N=I;I=t(A);A=z(A);I=y(I,F,N,"min");A=y(A,F,N,"max");360<=I.getWidth()+A.getWidth()?(F=-180,A=180):(F=I.xmin,A=A.xmax);return new q(F,I.ymin,A,I.ymax)}return y(A[0],F,I)}return A}},getNeighborsWithinDistance:function(A,F,I){I=I||1E3;F=F||
1;var N=[];if(A=g(A)){I=C(A,I).normalize();var da={};r.forEach(I,function(ba){p(ba,F,N,da)})}return N}};G("extend-esri")&&c.setObject("layers.clustering.geohashUtils",v,h);return v})},"esri/layers/clustering/statUtils":function(){define(["dojo/_base/lang","../support/attributeUtils"],function(G,x){function c(w){return"number"===typeof w&&!isNaN(w)&&Infinity!==w&&-Infinity!==w}var r={sum:{initialize:function(){return{count:0,sum:null}},updateCellStat:function(w,q){c(q)&&(w.count++,w.sum+=q)},updateClusterStat:function(w,
q){q.count&&(w.count+=q.count,w.sum+=q.sum)},summarize:function(w){return w.sum}},avg:{initialize:function(w){return{count:0,sum:null,avg:null,sum_cosine:null,sum_sine:null}},updateCellStat:function(w,q,n){c(q)&&(w.count++,n.isAngular?(n.isArithmetic||(q=-1*q+90),w.sum_cosine+=Math.cos(q*Math.PI/180),w.sum_sine+=Math.sin(q*Math.PI/180)):w.sum+=q)},updateClusterStat:function(w,q,n){q.count&&(w.count+=q.count,n.isAngular?(w.sum_cosine+=q.sum_cosine,w.sum_sine+=q.sum_sine):w.sum+=q.sum)},summarize:function(w,
q){if(0<w.count){var n=w.count;q.isAngular?(n=180*Math.atan2(w.sum_sine/n,w.sum_cosine/n)/Math.PI,q.isArithmetic||(n=-1*(n-90)),w.avg=0>n?n+360:n):(w.avg=w.sum/n,q.isDate&&(w.avg=Math.ceil(w.avg)))}return w.avg}},type:{initialize:function(){return{uvInfos:{}}},updateCellStat:function(w,q){if(null==q||""===q||"string"===typeof q&&""===G.trim(q))q=null;w=w.uvInfos;null==w[q]?w[q]={count:1,value:q}:w[q].count++},updateClusterStat:function(w,q){w=w.uvInfos;q=q.uvInfos;for(var n in q){var f=q[n];null==
w[n]?w[n]={count:f.count,value:f.value}:w[n].count+=f.count}},summarize:function(w){w=w.uvInfos;var q,n=-Infinity;for(q in w){var f=w[q];if(f.count>n){n=f.count;var g=f.value}else f.count===n&&(g=null)}return g}}},h={isSupportedStatisticType:function(w){return r.hasOwnProperty(w)},getStatisticFunctions:function(w){return r[w]},getStatisticId:function(w,q){var n=x.getAttributeIdSource(w);w=n&&x.getAttributeId(n)||w.field;return q+"_"+w},getClusterField:function(w,q){return"cluster_"+h.getStatisticId(w,
q)},getStatisticHash:function(w,q){q=[h.getStatisticId(w,q)];w.attributeType&&q.push(w.attributeType.toLowerCase());w.rotationType&&q.push(w.rotationType.toLowerCase());return q.join("_")}};return h})},"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 dojox/html/entities ../kernel ../lang ../SpatialReference ../geometry/webMercatorUtils ../geometry/Extent".split(" "),
function(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t){G=G(null,{declaredClass:"esri.dijit.Attribution",itemDelimiter:" | ",listClass:"esriAttributionList",itemClass:"esriAttributionItem",lastItemClass:"esriAttributionLastItem",delimiterClass:"esriAttributionDelim",constructor:function(z,C){try{x.mixin(this,z);this._attributions={};this._pendingDfds={};this._activeLayers=[];this._sharedLayers=[];this._layerHandles={};var y=this.domNode=n.byId(C),D=this.map,B="\x3cspan class\x3d'"+this.listClass+"'\x3e\x3c/span\x3e";
y&&(f.set(y,"innerHTML",B),this.listNode=h.query(".esriAttributionList",y)[0],this.itemNodes={});this._eventConnections=[r.connect(D,"onLayerAdd",this,this._onLayerAdd),r.connect(D,"onLayerRemove",this,this._onLayerRemove),r.connect(D,"onLayerSuspend",this,this._onLayerSuspend),r.connect(D,"onLayerResume",this,this._onLayerResume),r.connect(D,"onResize",this,this._adjustFocus),r.connect(D,"onExtentChange",this,this._onExtentChange)];if(D.loaded){var u=D.layerIds.concat(D.graphicsLayerIds),E,v=u.length;
for(E=0;E<v;E++){var A=D.getLayer(u[E]);A.loaded&&this._onLayerAdd(A)}}}catch(F){}},startup:function(){},destroy:function(){c.forEach(this._eventConnections,r.disconnect);g.destroy(this.listNode);var z=this._layerHandles,C;for(C in z)z[C]&&z[C].remove();this.map=this.domNode=this._eventConnections=this.listNode=this._attributions=this._pendingDfds=this.itemNodes=this._activeLayers=this._lastItem=this._sharedLayers=this._layerHandles=null},_onLayerAdd:function(z){try{var C=this._attributions,y=z.id;
if(!e.isDefined(C[y])&&z.showAttribution){if(z.hasAttributionData){var D=z.getAttributionData();this._pendingDfds[y]=1;C[y]=D;D.addBoth(x.partial(this._onAttributionLoad,this,z))}else C[y]=z.copyright||z.copyrightText||"",C[y]?(z.suspended||this._activeLayers.push(y),this._createNode(y)):this._onLayerRemove(z);-1<z.declaredClass.toLowerCase().indexOf("vetiledlayer")&&(this._layerHandles[y]=z.on("map-style-change",x.hitch(this,function(){this._onLayerRemove(z);this._onLayerAdd(z)})))}}catch(B){}},
_onAttributionLoad:function(z,C,y){var D=z._attributions,B=z._pendingDfds,u=C.id;if(B&&B[u]){delete B[u];if(!y||y instanceof Error)y="";D[u]=y?z._createIndexByLevel(y,-1!==C.declaredClass.toLowerCase().indexOf("vetiledlayer")):C.copyright||C.copyrightText||"";D[u]?(C.suspended||z._activeLayers.push(u),z._createNode(u)):z._onLayerRemove(C)}},_onLayerRemove:function(z){try{var C=z.id,y=this.itemNodes,D=-1;this._onLayerSuspend(z);this._layerHandles[C]&&this._layerHandles[C].remove();delete this._attributions[C];
delete this._pendingDfds[C];delete this._layerHandles[C];var B=this._getGroupIndex(C);-1!==B&&(D=c.indexOf(this._sharedLayers[B],C),-1!==D&&(this._sharedLayers[B].splice(D,1),1>=this._sharedLayers[B].length&&this._sharedLayers.splice(B,1)));y[C]&&-1===D&&g.destroy(y[C]);delete y[C];this._updateLastItem()}catch(u){}},_onLayerSuspend:function(z){try{var C=z.id;if(this._attributions[C]){var y=c.indexOf(this._activeLayers,C),D=this.itemNodes[C];-1!==y&&this._activeLayers.splice(y,1);D&&this._toggleItem(D,
!1,this._getGroupIndex(C))}}catch(B){}},_adjustFocus:function(){var z=this.domNode.scrollWidth>this.domNode.clientWidth,C=d.contains(this.domNode,"esriAttributionOpen");f.set(this.domNode,"tabIndex",z||C?"0":"")},_onLayerResume:function(z){try{var C=z.id,y=this._attributions[C],D=this.itemNodes[C];if(y&&(-1===c.indexOf(this._activeLayers,C)&&this._activeLayers.push(C),D)){var B=x.isString(y)?y:this._getContributorsList(y,this.map.extent,this.map.getLevel());x.isString(y)||f.set(D,"innerHTML",B?l.encode(B)+
this._getDelimiter():"");B&&this._toggleItem(D,!0,this._getGroupIndex(C))}}catch(u){}},_onExtentChange:function(z,C,y,D){try{var B=this._activeLayers,u=this._attributions,E=this.itemNodes,v,A,F=B.length||0;for(A=0;A<F;A++){var I=B[A];var N=u[I];if((v=E[I])&&!x.isString(N)){var da=this._getContributorsList(N,z,D?D.level:-1);f.set(v,"innerHTML",da?l.encode(da)+this._getDelimiter():"");this._toggleItem(v,!!da,-1)}}}catch(ba){}this._adjustCursorStyle()},_createNode:function(z){if(this.domNode){var C=
this._checkShareInfo(z),y=C&&C.sharedWith;y=y&&this.itemNodes[y];var D=this.map,B=this._attributions[z];B=x.isString(B)?B:this._getContributorsList(B,D.extent,D.getLevel());D=!!B&&!D.getLayer(z).suspended;y?(this.itemNodes[z]=y,this._toggleItem(y,D,C.index)):(z=this.itemNodes[z]=g.create("span",{"class":this.itemClass,innerHTML:B?l.encode(B)+this._getDelimiter():"",style:{display:D?"inline":"none"}},this.listNode),D&&this._setLastItem(z));this._adjustCursorStyle()}},_checkShareInfo:function(z){var C=
this._attributions,y,D=-1,B=C[z];if(B&&x.isString(B)){for(y in C){var u=C[y];if(y!==z&&u&&x.isString(u)&&u.length===B.length&&u.toLowerCase()===B.toLowerCase()){var E=y;break}}C=this._sharedLayers;u=C.length;if(E){for(y=0;y<u;y++)if(B=C[y],-1!==c.indexOf(B,E)){D=y;B.push(z);break}-1===D&&(D=C.push([E,z])-1)}}return-1<D?{index:D,sharedWith:E}:null},_getGroupIndex:function(z){var C=this._sharedLayers,y,D=C.length,B=-1;for(y=0;y<D;y++)if(-1!==c.indexOf(C[y],z)){B=y;break}return B},_getDelimiter:function(){var z=
this.itemDelimiter;return z?"\x3cspan class\x3d'"+this.delimiterClass+"'\x3e"+z+"\x3c/span\x3e":""},_toggleItem:function(z,C,y){if(-1<y&&!C){y=this._sharedLayers[y];var D,B=y.length,u=this._activeLayers;for(D=0;D<B;D++)if(-1!==c.indexOf(u,y[D]))return}a.set(z,"display",C?"inline":"none");this._updateLastItem()},_updateLastItem:function(){var z=this.listNode.childNodes;var C=z.length;if(C)for(--C;0<=C;C--){var y=z[C];if("none"!==a.get(y,"display")){this._setLastItem(y);break}}this._adjustCursorStyle()},
_setLastItem:function(z){var C=this.itemClass,y=this.lastItemClass;this._lastItem&&d.replace(this._lastItem,C,y);z&&(d.replace(z,y,C),this._lastItem=z)},_createIndexByLevel:function(z,C){z=z.contributors;var y,D,B=z?z.length:0,u,E=new b(4326),v={};for(D=0;D<B;D++){var A=z[D];var F=(y=A.coverageAreas)?y.length:0;for(u=0;u<F;u++){var I=y[u];var N=I.bbox;N={extent:p.geographicToWebMercator(new t(N[1],N[0],N[3],N[2],E)),attribution:A.attribution||"",zoomMin:I.zoomMin-(C&&I.zoomMin?1:0),zoomMax:I.zoomMax-
(C&&I.zoomMax?1:0),score:e.isDefined(I.score)?I.score:100,objectId:D};for(I=N.zoomMin;I<=N.zoomMax;I++)v[I]=v[I]||[],v[I].push(N)}}return v},_getContributorsList:function(z,C,y){var D="";if(C&&e.isDefined(y)&&-1<y){z=z[y];y=C.getCenter().normalize();var B=z?z.length:0,u=[],E={};for(D=0;D<B;D++)C=z[D],!E[C.objectId]&&C.extent.contains(y)&&(E[C.objectId]=1,u.push(C));u.sort(function(v,A){return A.score-v.score||v.objectId-A.objectId});B=u.length;for(D=0;D<B;D++)u[D]=u[D].attribution;D=u.join(", ")}return D},
_adjustCursorStyle:function(){var z=k.position(this.listNode.parentNode,!0).h;d.contains(this.listNode.parentNode,"esriAttributionOpen")?(d.remove(this.listNode.parentNode,"esriAttributionOpen"),z>k.position(this.listNode.parentNode,!0).h?(a.set(this.listNode.parentNode,"cursor","pointer"),d.add(this.listNode.parentNode,"esriAttributionOpen")):a.set(this.listNode.parentNode,"cursor","default")):(d.add(this.listNode.parentNode,"esriAttributionOpen"),z<k.position(this.listNode.parentNode,!0).h?a.set(this.listNode.parentNode,
"cursor","pointer"):a.set(this.listNode.parentNode,"cursor","default"),d.remove(this.listNode.parentNode,"esriAttributionOpen"));this._adjustFocus()}});w("extend-esri")&&x.setObject("dijit.Attribution",G,m);return G})},"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 dojo/sniff dojox/gfx/_base ../kernel ../config ../Color ../lang ../request ../SpatialReference ../map ../urlUtils ../geometry/Point ../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(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m,e,b,p,t,z,C,y,D,B,u,E,v,A,F,I,N,da,ba){function na(R){return!(!R||"BingMapsAerial"!==R.layerType&&"BingMapsAerial"!==R.type)}function xa(R){return!(!R||"BingMapsRoad"!==R.layerType&&"BingMapsRoad"!==R.type)}function W(R){return na(R)||xa(R)||!(!R||"BingMapsHybrid"!==R.layerType&&"BingMapsHybrid"!==R.type)}function la(R){return!(!R||"OpenStreetMap"!==R.layerType&&"OpenStreetMap"!==R.type)}function ha(R){return!!(R&&R.url&&(-1<"ArcGISFeatureLayer ArcGISImageServiceLayer ArcGISImageServiceVectorLayer ArcGISMapServiceLayer ArcGISStreamLayer ArcGISTiledImageServiceLayer ArcGISTiledMapServiceLayer".split(" ").indexOf(R.layerType)||
!R.layerType&&!R.type))}function sa(R){return b({url:yb.arcgisUrl+"/"+R.itemId+"/data",content:{f:"json"},callbackParamName:"callback"},{disableIdentityLookup:!0,_preLookup:!0})}function Ca(R,Ja){var Ia={f:"json"};Ja&&(Ia.token=Ja);return b({url:R,content:Ia,callbackParamName:"callback"},{disableIdentityLookup:!0})}function oa(R){!R.layerDefinition||R.layerDefinition.drawingInfo&&R.layerDefinition.drawingInfo.labelingInfo||(R.showLabels=!1);R.itemProperties.layerDefinition&&(R.layerDefinition?(R.layerDefinition.drawingInfo||
(R.layerDefinition.drawingInfo=R.itemProperties.layerDefinition.drawingInfo),e.isDefined(R.layerDefinition.definitionExpression)||(R.layerDefinition.definitionExpression=R.itemProperties.layerDefinition.definitionExpression),e.isDefined(R.layerDefinition.minScale)||(R.layerDefinition.minScale=R.itemProperties.layerDefinition.minScale),e.isDefined(R.layerDefinition.maxScale)||(R.layerDefinition.maxScale=R.itemProperties.layerDefinition.maxScale)):R.layerDefinition=R.itemProperties.layerDefinition);
!R.itemProperties.popupInfo||R.popupInfo||R.disablePopup||(R.popupInfo=R.itemProperties.popupInfo);e.isDefined(R.itemProperties.showLabels)&&!e.isDefined(R.showLabels)&&(R.showLabels=R.itemProperties.showLabels);e.isDefined(R.itemProperties.showLegend)&&!e.isDefined(R.showLegend)&&(R.showLegend=R.itemProperties.showLegend);e.isDefined(R.itemProperties.refreshInterval)&&!e.isDefined(R.refreshInterval)&&(R.refreshInterval=R.itemProperties.refreshInterval)}function qa(R){oa(R);R.itemProperties.layerDefinition&&
R.layerDefinition&&(!e.isDefined(R.layerDefinition.maximumTrackPoints)&&e.isDefined(R.itemProperties.layerDefinition.maximumTrackPoints)&&(R.layerDefinition.maximumTrackPoints=R.itemProperties.layerDefinition.maximumTrackPoints),!R.layerDefinition.definitionGeometry&&R.itemProperties.layerDefinition.definitionGeometry&&(R.layerDefinition.definitionGeometry=R.itemProperties.layerDefinition.definitionGeometry));R.itemProperties.purgeOptions&&!R.purgeOptions&&(R.purgeOptions=R.itemProperties.purgeOptions)}
function L(R,Ja){var Ia=new h;Ja=R.itemData;var Aa=[],Da=[];c.forEach(Ja.operationalLayers,function(La){if(La.itemId&&ha(La)){var Ga=La.url.toLowerCase();-1<Ga.indexOf("/featureserver")||-1<Ga.indexOf("/mapserver/")?(Da.push(La),Aa.push(sa(La))):-1<Ga.indexOf("/mapserver")&&-1===Ga.indexOf("/mapserver/")&&(!La.layers||!e.isDefined(La.minScale)&&!e.isDefined(La.maxScale))?(Da.push(La),Aa.push(sa(La))):-1<Ga.indexOf("/imageserver")?(Da.push(La),Aa.push(sa(La))):-1<Ga.indexOf("/streamserver")&&(Da.push(La),
Aa.push(sa(La)))}});Ja.baseMap&&Ja.baseMap.baseMapLayers&&c.forEach(Ja.baseMap.baseMapLayers,function(La){La.itemId&&"VectorTileLayer"!==La.layerType&&(Da.push(La),Aa.push(sa(La)))});if(0<Aa.length){var Na={};(new f(Aa)).addCallback(function(La){c.forEach(Da,function(Ga,Sa){if((Sa=La[Sa][1])&&!(Sa instanceof Error)&&(Na[Ga.itemId]=Sa,ha(Ga))){var Va=Ga.url.toLowerCase();(-1<Va.indexOf("/featureserver")||-1<Va.indexOf("/mapserver/"))&&Sa.layers?c.forEach(Sa.layers,function(Ya){var db="/featureserver/"+
Ya.id;(db=Va.match(db+"$")==db)||(db="/mapserver/"+Ya.id,db=Va.match(db+"$")==db);db&&(Ga.itemProperties=Ya,oa(Ga))}):-1<Va.indexOf("/streamserver")?(Ga.itemProperties=Sa,qa(Ga)):-1<Va.indexOf("/mapserver")?(Sa.layers&&!Ga.layers&&(Ga.layers=Sa.layers),e.isDefined(Sa.minScale)&&!e.isDefined(Ga.minScale)&&(Ga.minScale=Sa.minScale),e.isDefined(Sa.maxScale)&&!e.isDefined(Ga.maxScale)&&(Ga.maxScale=Sa.maxScale),e.isDefined(Sa.refreshInterval)&&!e.isDefined(Ga.refreshInterval)&&(Ga.refreshInterval=Sa.refreshInterval),
Sa.visibleLayers&&!Ga.visibleLayers&&(Ga.visibleLayers=Sa.visibleLayers)):-1<Va.indexOf("/imageserver")&&(e.isDefined(Sa.minScale)&&!e.isDefined(Ga.minScale)&&(Ga.minScale=Sa.minScale),e.isDefined(Sa.maxScale)&&!e.isDefined(Ga.maxScale)&&(Ga.maxScale=Sa.maxScale),e.isDefined(Sa.refreshInterval)&&!e.isDefined(Ga.refreshInterval)&&(Ga.refreshInterval=Sa.refreshInterval),!Sa.popupInfo||Ga.popupInfo||Ga.disablePopup||(Ga.popupInfo=Sa.popupInfo),Sa.renderingRule&&!Ga.renderingRule&&(Ga.renderingRule=Sa.renderingRule,
Sa.renderingRule.functionName&&(Ga.renderingRule.rasterFunction=Sa.renderingRule.functionName)),Sa.bandIds&&!Ga.bandIds&&(Ga.bandIds=Sa.bandIds),Sa.mosaicRule&&!Ga.mosaicRule&&(Ga.mosaicRule=Sa.mosaicRule),Sa.format&&!Ga.format&&(Ga.format=Sa.format),e.isDefined(Sa.compressionQuality)&&!e.isDefined(Ga.compressionQuality)&&(Ga.compressionQuality=Sa.compressionQuality),!Sa.layerDefinition||!Sa.layerDefinition.definitionExpression||e.isDefined(Ga.layerDefinition)&&e.isDefined(Ga.layerDefinition.definitionExpression)||
(Ga.layerDefinition=Ga.layerDefinition||{},Ga.layerDefinition.definitionExpression=Sa.layerDefinition.definitionExpression),Sa=x.getObject("layerDefinition.drawingInfo.renderer",!1,Sa),null==x.getObject("layerDefinition.drawingInfo.renderer",!1,Ga)&&null!=Sa&&(Ga.layerDefinition=Ga.layerDefinition||{},Ga.layerDefinition.drawingInfo=Ga.layerDefinition.drawingInfo||{},Ga.layerDefinition.drawingInfo.renderer=Sa))}});R.relatedItemsData=Na;Ia.callback(R)})}else Ia.callback(R);return Ia}function Y(R,Ja){var Ia=
new h,Aa=R.itemData,Da=Aa.baseMap.baseMapLayers[0];if(W(Da))if(Da.portalUrl&&k.id)delete Ja.bingMapsKey,k.id.checkSignInStatus(z.urlToObject(yb.arcgisUrl).path).then(x.hitch(null,function(La,Ga,Sa,Va,Ya){Ca(Da.portalUrl,Ya.token).then(x.hitch(null,V,La,Ga,Sa,Va),x.hitch(null,X,La,Ga,Sa,Va))},R,Ja,Aa,Ia),x.hitch(null,function(La,Ga,Sa,Va,Ya){Ca(Da.portalUrl).then(x.hitch(null,V,La,Ga,Sa,Va),x.hitch(null,X,La,Ga,Sa,Va))},R,Ja,Aa,Ia));else if(Ja.bingMapsKey){var Na=new Nb({bingMapsKey:Ja.bingMapsKey,
mapStyle:Nb.MAP_STYLE_AERIAL});r.connect(Na,"onLoad",x.hitch(this,function(){Ia.callback([R,Ja])}));r.connect(Na,"onError",function(La){delete Ja.bingMapsKey;R.itemData=ja(Aa);Da=R.itemData.baseMap.baseMapLayers[0];Da.errors=[];Da.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."});Ia.callback([R,Ja])})}else R.itemData=ja(Aa),Da=R.itemData.baseMap.baseMapLayers[0],Da.errors=[],Da.errors.push({message:"The owner of the application has not provided a Bing Key for the Bing Map it includes. Switching to Esri layers."}),
Ia.callback([R,Ja]);else Ia.callback([R,Ja]);return Ia}function ca(R){var Ja=new h;R=R.itemData;var Ia=R.baseMap&&R.baseMap.baseMapLayers;if(Gb&&!Gb.supported())for(R=0;R<Ia.length;R++){var Aa=Ia[R];if(!Aa.isReference){if("VectorTileLayer"===Aa.layerType){var Da=Aa.itemId;var Na=R}break}}Da?Ab(Da,!1).addBoth(function(La){var Ga=/^https?:\/\/basemaps(dev)?\.arcgis\.com\/arcgis\/rest\/services\/World_Basemap\/VectorTileServer/i;La&&La.item&&Ga.test(La.item.url)&&(Ia[Na]={id:"FB_"+Aa.id,layerType:"ArcGISTiledMapServiceLayer",
opacity:"opacity"in Aa?Aa.opacity:1,visibility:"visibility"in Aa?Aa.visibility:!0,url:"https://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer"});Ja.resolve()}):Ja.resolve();return Ja}function V(R,Ja,Ia,Aa,Da){Da.bingKey?(Ja.bingMapsKey=Da.bingKey,Da=new Nb({bingMapsKey:Ja.bingMapsKey,mapStyle:Nb.MAP_STYLE_AERIAL}),r.connect(Da,"onLoad",x.hitch(this,function(){Aa.callback([R,Ja])})),r.connect(Da,"onError",function(Na){delete Ja.bingMapsKey;R.itemData=ja(Ia);Na=R.itemData.baseMap.baseMapLayers[0];
Na.errors=[];Na.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."});Aa.callback([R,Ja])})):X(R,Ja,Ia,Aa)}function X(R,Ja,Ia,Aa){delete Ja.bingMapsKey;R.itemData=ja(Ia);Ia=R.itemData.baseMap.baseMapLayers[0];Ia.errors=[];Ia.errors.push({message:"The owner of the map has not provided a Bing Key for the Bing Map it includes. Switching to Esri layers."});Aa.callback([R,Ja])}function ja(R){na(R.baseMap.baseMapLayers[0])?
R.baseMap={title:"Imagery",baseMapLayers:[{id:"World_Imagery_2017",visibility:!0,opacity:1,url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"}]}:xa(R.baseMap.baseMapLayers[0])?R.baseMap={title:"Streets",baseMapLayers:[{id:"World_Street_Map_8421",opacity:1,visibility:!0,url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"}]}:R.baseMap={title:"Imagery with Labels",baseMapLayers:[{id:"World_Imagery_6611",opacity:1,visibility:!0,url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"},
{id:"World_Boundaries_and_Places_1145",isReference:!0,opacity:1,visibility:!0,url:"https://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer"}]};return R}function pa(R,Ja,Ia,Aa){var Da=R.dynamicLayerInfos||R.layerInfos,Na=Ja.layers;if(Na&&Da)if(Aa.usePopupManager){var La;c.forEach(Da,function(cb){var ab=cb.id;if(!cb.subLayerIds)for(cb=0;cb<Na.length;cb++){var jb=Na[cb];if(jb.id===ab&&jb.popupInfo&&!jb.disablePopup){La||(La={});La[ab]={infoTemplate:new Ia(jb.popupInfo),
layerUrl:jb.layerUrl};break}}});La&&R.setInfoTemplates(La)}else{var Ga=[],Sa=[],Va=[],Ya=[],db=[],Wa=[];c.forEach(Da,function(cb){var ab=cb.id;if(!cb.subLayerIds&&-1!==c.indexOf(R.visibleLayers,ab))for(cb=0;cb<Na.length;cb++){var jb=Na[cb];if(jb.id===ab){Sa.push(ab);Ga.push(jb.popupInfo);Va.push(jb.layerUrl||"");jb.layerDefinition&&jb.layerDefinition.definitionExpression?Ya.push(jb.layerDefinition.definitionExpression):Ya.push("");db.push(e.isDefined(jb.minScale)?jb.minScale:null);Wa.push(e.isDefined(jb.maxScale)?
jb.maxScale:null);break}}});Ga.length&&(R.__popups=Ga,R.__popupIds=Sa,R.__popupUrls=Va,R.__popupWhereClauses=Ya,R.__popupMinScales=db,R.__popupMaxScales=Wa,R.__resourceInfo=Ja.resourceInfo)}}function ta(R){if(!R)return!1;var Ja=(new q(yb.arcgisUrl)).authority;return-1!==R.indexOf(".arcgis.com/")||-1!==R.indexOf(Ja)}function ea(R){return R?-1!==R.indexOf("/services.arcgisonline.com/")||-1!==R.indexOf("/server.arcgisonline.com/"):!1}function va(R){"https:"===location.protocol&&(ta(R)||ea(R))&&(R=R.replace("http:",
"https:"));return R}function M(R,Ja,Ia){var Aa=[];R.displayLevels||(Aa=c.map(R.resourceInfo.tileInfo.lods,function(La){return La.level}));if(R.exclusionAreas){var Da=x.clone(R.exclusionAreas);Da=c.map(Da,function(La){La.geometry=new D(La.geometry);return La})}var Na=R.resourceInfo&&"Raster"===R.resourceInfo.cacheType;Na?(Aa=R.layerDefinition&&R.layerDefinition.drawingInfo&&R.layerDefinition.drawingInfo.renderer,Aa=new ec(va(R.url),{resourceInfo:R.resourceInfo,opacity:R.opacity,visible:R.visibility,
id:R.id,minScale:R.minScale,maxScale:R.maxScale,refreshInterval:R.refreshInterval,multidimensionalDefinition:R.multidimensionalDefinition,bandIds:R.bandIds,renderer:Aa||null})):Aa=new N(va(R.url),{resourceInfo:R.resourceInfo,opacity:R.opacity,visible:R.visibility,displayLevels:R.displayLevels||Aa,id:R.id,minScale:R.minScale,maxScale:R.maxScale,refreshInterval:R.refreshInterval,exclusionAreas:Da});Ia.ignorePopups||(Na&&R.popupInfo&&!R.disablePopup?Aa.setInfoTemplate(new Ja(R.popupInfo)):pa(Aa,R,Ja,
Ia));return Aa}function S(R,Ja){if(!R||!Ja||0===Ja.length)return[];Ja=","+Ja+",";var Ia=[],Aa,Da=",";for(Aa=0;Aa<R.length;Aa++)if(null!==R[Aa].subLayerIds){if(-1===Ja.indexOf(","+R[Aa].id+",")||-1<Da.indexOf(","+R[Aa].id+","))Da+=R[Aa].subLayerIds.toString()+","}else-1<Ja.indexOf(","+R[Aa].id+",")&&-1===Da.indexOf(","+R[Aa].id+",")&&Ia.push(R[Aa].id);return Ia}function ma(R,Ja,Ia){var Aa=new Eb;Aa.format="png24";R.resourceInfo&&R.resourceInfo.supportedImageFormatTypes&&-1<R.resourceInfo.supportedImageFormatTypes.indexOf("PNG32")&&
(Aa.format="png32");Aa=new qb(va(R.url),{resourceInfo:R.resourceInfo,opacity:R.opacity,visible:R.visibility,id:R.id,imageParameters:Aa,minScale:R.minScale,maxScale:R.maxScale,refreshInterval:R.refreshInterval});var Da=R.visibleLayers;if(!R.visibleLayers){var Na="";c.forEach(Aa.layerInfos,function(Wa){Wa.defaultVisibility&&(Na+=(0<Na.length?",":"")+Wa.id)});Da=Na}if(R.layers&&0<R.layers.length){var La=[],Ga=[],Sa,Va=[],Ya,db;c.forEach(R.layers,function(Wa){var cb=Wa.layerDefinition;cb&&cb.definitionExpression&&
(La[Wa.id]=cb.definitionExpression);if(cb&&cb.source){Sa=null;db=cb.source;if("mapLayer"===db.type){var ab=c.filter(R.resourceInfo.layers,function(jb){return jb.id===db.mapLayerId});ab.length&&(Sa=x.mixin(ab[0],Wa))}else Sa=x.mixin({},Wa);Sa&&(Sa.source=db,delete Sa.popupInfo,Sa=new zb(Sa),R.visibleLayers&&(ab="string"==typeof R.visibleLayers?R.visibleLayers.split(","):R.visibleLayers,-1<c.indexOf(ab,Wa.id)?Sa.defaultVisibility=!0:Sa.defaultVisibility=!1),Ga.push(Sa))}cb&&null!=cb.transparency&&(ab=
cb.drawingInfo||{},null==ab.transparency&&(ab.transparency=cb.transparency,cb.drawingInfo=ab));cb&&cb.source&&cb.drawingInfo&&(Ya=new Yb(cb.drawingInfo),Va[Wa.id]=Ya)},this);0<La.length&&Aa.setLayerDefinitions(La);0<Ga.length?(Aa.setDynamicLayerInfos(Ga,!0),0<Va.length&&Aa.setLayerDrawingOptions(Va,!0)):(Da=S(Aa.layerInfos,Da),Aa.setVisibleLayers(Da))}else Da=S(Aa.layerInfos,Da),Aa.setVisibleLayers(Da);Ia.ignorePopups||pa(Aa,R,Ja,Ia);return Aa}function ua(R,Ja,Ia){var Aa=new Wb;Aa.bandIds=R.bandIds;
null!=R.format&&(Aa.format=R.format,null!=R.compressionQuality&&(Aa.compressionQuality=R.compressionQuality));if(R.renderingRule&&R.renderingRule.rasterFunction){var Da=new dc(R.renderingRule);Aa.renderingRule=Da}R.mosaicRule&&(Da=new ac(R.mosaicRule),Aa.mosaicRule=Da);e.isDefined(R.noData)&&(Aa.noData=R.noData);e.isDefined(R.noDataInterpretation)&&(Aa.noDataInterpretation=R.noDataInterpretation);e.isDefined(R.interpolation)&&(Aa.interpolation=R.interpolation);Da=R.layerType?"ArcGISImageServiceVectorLayer"===
R.layerType:!1;e.isDefined(R.layerType)||(Da=R.resourceInfo.hasMultidimensions&&("esriImageServiceDataTypeVector-UV"===R.resourceInfo.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===R.resourceInfo.serviceDataType));Aa={resourceInfo:R.resourceInfo,opacity:R.opacity,visible:R.visibility,id:R.id,imageServiceParameters:Aa,minScale:R.minScale,maxScale:R.maxScale,refreshInterval:R.refreshInterval};Aa=Da?new vb(va(R.url),Aa):new sb(va(R.url),Aa);R.layerDefinition&&(R.layerDefinition.drawingInfo&&
R.layerDefinition.drawingInfo.renderer&&(Da=E.fromJson(R.layerDefinition.drawingInfo.renderer),Aa.setRenderer(Da)),R.layerDefinition.definitionExpression&&Aa.setDefinitionExpression(R.layerDefinition.definitionExpression,!0));Ia.ignorePopups||!R.popupInfo||R.disablePopup||Aa.setInfoTemplate(new Ja(R.popupInfo));return Aa}function wa(R,Ja,Ia){var Aa=[102113,102100,3857],Da=Ia||new p(Ja[0].layerObject.fullExtent.spatialReference),Na=new p(R.resourceInfo.fullExtent.spatialReference);return Da.wkt==Na.wkt&&
(Da.wkid==Na.wkid||e.isDefined(Da.latestWkid)&&Da.latestWkid==Na.wkid||e.isDefined(Na.latestWkid)&&Da.wkid==Na.latestWkid||e.isDefined(Da.latestWkid)&&Da.latestWkid==Na.latestWkid)||Da.wkid&&Na.wkid&&c.some(Aa,function(La){return La===Na.wkid})&&c.some(Aa,function(La){return La===Da.wkid})?!0:!1}function Q(R,Ja,Ia){if(!Ja[0].layerObject.tileInfo)return!1;R=R.resourceInfo.tileInfo;Ja=Ja[0].layerObject.tileInfo;Ia=Ia.width>Ia.height?Ia.width:Ia.height;for(var Aa=!1,Da=!1,Na=0;Na<R.lods.length;Na++){for(var La=
R.lods[Na].scale/R.dpi,Ga=0;Ga<Ja.lods.length;Ga++){var Sa=Ja.lods[Ga].scale/Ja.dpi;if(Math.abs(Sa-La)/Sa<1/Ia)if(Aa){Da=!0;break}else Aa=!0}if(Da)break}return Da||Aa&&(1===R.lods.length||1===Ja.lods.length)?!0:!1}function ka(R,Ja,Ia,Aa,Da,Na){var La=Ia._clazz;if(la(R))var Ga=new bc({id:R.id,opacity:R.opacity,visible:null!==R.visibility&&void 0!==R.visibility?R.visibility:!0});else if(R&&("WFS"===R.layerType||"WFS"===R.type)){var Sa={customParameters:R.wfsInfo.customParameters,geometryType:R.layerDefinition.geometryType,
id:R.id,labelingInfo:R.layerDefinition.drawingInfo.labelingInfo,maxFeatures:R.wfsInfo.maxFeatures,mode:R.mode,name:R.wfsInfo.name,showLabels:!0,swapXY:R.wfsInfo.swapXY,title:R.title,url:R.url,version:R.wfsInfo.version,visible:R.visibility,wkid:R.layerDefinition.spatialReference.wkid};Ga=new Sb;Ga.fromJson(Sa,function(){e.isDefined(R.opacity)&&Ga.setOpacity(R.opacity);e.isDefined(R.visibility)&&Ga.setVisibility(R.visibility);(R.minScale||R.maxScale)&&Ga.setScaleRange(R.minScale,R.maxScale);Ga.renderer=
E.fromJson(R.layerDefinition.drawingInfo.renderer,{geometryType:Sa.geometryType});!Ia.ignorePopups&&R.popupInfo&&Ga.setInfoTemplate(new La(R.popupInfo));Ga.emit("fromJsonComplete")})}else if(R&&("WMS"===R.layerType||"WMS"===R.type)){var Va=[],Ya=[];c.forEach(R.layers,function(ab){Ya.push(new Db({name:ab.name,title:ab.title,legendURL:ab.legendURL||ab.legendUrl,queryable:ab.queryable,showPopup:ab.showPopup}));Va.push(ab.name)},this);R.visibleLayers&&(Va=R.visibleLayers);Aa=new D(R.extent[0][0],R.extent[0][1],
R.extent[1][0],R.extent[1][1],new p({wkid:4326}));Aa={customLayerParameters:R.customLayerParameters,customParameters:R.customParameters,extent:Aa,layerInfos:Ya,version:R.version,maxWidth:R.maxWidth,maxHeight:R.maxHeight,featureInfoFormat:R.featureInfoFormat,getFeatureInfoURL:R.featureInfoUrl,getMapURL:R.mapUrl,spatialReferences:R.spatialReferences,title:R.title,copyright:R.copyright,minScale:R.minScale||0,maxScale:R.maxScale||0,format:R.format};Ga=new cc(R.url,{id:R.id,visibleLayers:Va,format:"png",
transparent:R.firstLayer?!1:!0,opacity:R.opacity,visible:null!==R.visibility?R.visibility:!0,resourceInfo:Aa,refreshInterval:R.refreshInterval});Ga.spatialReference.wkid=Aa.spatialReferences[0]}else if(R&&("KML"===R.layerType||"KML"===R.type)){var db=R.url;if(k.id){var Wa=k.id.findCredential(z.urlToObject(yb.arcgisUrl).path);Wa&&(Ja=yb.arcgisUrl.substring(yb.arcgisUrl.indexOf("//")+2,yb.arcgisUrl.indexOf("/",yb.arcgisUrl.indexOf("//")+3)),Da=Ja.split("."),Da=Da[Da.length-2]+"."+Da[Da.length-1],Na=
db.indexOf(Da),-1<Na&&(db="https://"+Ja+db.substring(Na+Da.length),db+="?token\x3d"+Wa.token))}Ga=new Pb(db,{id:R.id,visible:null!==R.visibility?R.visibility:!0,outSR:Aa,refreshInterval:R.refreshInterval});r.connect(Ga,"onLoad",function(){(R.opacity||0===R.opacity)&&Ga.setOpacity(R.opacity);e.isDefined(R.minScale)&&e.isDefined(R.maxScale)&&Ga.setScaleRange(R.minScale,R.maxScale);R.visibleFolders&&c.forEach(Ga.folders,function(ab){-1<c.indexOf(R.visibleFolders,ab.id)?Ga.setFolderVisibility(ab,!0):
Ga.setFolderVisibility(ab,!1)},this)})}else if(!R||"WebTiledLayer"!==R.layerType&&"WebTiledLayer"!==R.type)if(!R||"GeoRSS"!==R.layerType&&"GeoRSS"!==R.type)if(R&&("CSV"===R.layerType||"CSV"===R.type)&&R.url)Aa={layerDefinition:R.layerDefinition,columnDelimiter:R.columnDelimiter,id:R.id?R.id:null,visible:null!==R.visibility?R.visibility:!0,opacity:R.opacity,refreshInterval:R.refreshInterval},R.locationInfo&&(Aa.latitudeFieldName=R.locationInfo.latitudeFieldName,Aa.longitudeFieldName=R.locationInfo.longitudeFieldName),
!Ia.ignorePopups&&R.popupInfo&&(Aa.infoTemplate=new La(R.popupInfo)),Ga=new Ob(R.url,Aa);else if("VectorTileLayer"!==R.layerType||!R.styleUrl||R.resourceInfo&&R.resourceInfo instanceof Error)if(R.layerDefinition&&!R.url)Aa=w.fromJson(w.toJson(R)),delete Aa.id,delete Aa.opacity,delete Aa.visibility,Ga=new da(Aa,{id:R.id,opacity:R.opacity,visible:R.visibility,outFields:["*"],autoGeneralize:!0}),Ia.ignorePopups||!Aa.popupInfo||Aa.disablePopup||Ga.setInfoTemplate(new La(Aa.popupInfo)),Qa(Ga);else if(W(R))Ia.bingMapsKey?
(Aa=Nb.MAP_STYLE_AERIAL_WITH_LABELS,na(R)?Aa=Nb.MAP_STYLE_AERIAL:xa(R)&&(Aa=Nb.MAP_STYLE_ROAD),Ga=new Nb({bingMapsKey:Ia.bingMapsKey,mapStyle:Aa,opacity:R.opacity,id:R.id}),r.connect(Ga,"onError",x.hitch(this,function(ab){ab.errors=ab.errors||[];ab.errors.push({message:"This application does not have a valid Bing Key for the Bing layer that is included in this map. [type:"+(ab?ab.layerType||ab.type:"")+"]"})},R))):(R.errors=R.errors||[],R.errors.push({message:"This application does not provide a Bing Key for the Bing layer that is included in this map. [type:"+
(R?R.layerType||R.type:"")+"]"}));else if(R.resourceInfo&&(R.resourceInfo.mapName||""===R.resourceInfo.mapName))Ga=!0===R.resourceInfo.singleFusedMapCache&&(R.baseMapLayer||wa(R,Ja,Aa)&&Q(R,Da,Na))?M(R,La,Ia):ma(R,La,Ia);else if(R.resourceInfo&&R.resourceInfo.pixelSizeX)Ga=!0===R.resourceInfo.singleFusedMapCache&&"ArcGISImageServiceLayer"!==R.layerType&&(R.baseMapLayer||"Raster"===R.resourceInfo.cacheType||wa(R,Ja,Aa)&&Q(R,Da,Na))?M(R,La,Ia):ua(R,La,Ia);else if(R.resourceInfo&&"Feature Layer"===R.resourceInfo.type){R.capabilities&&
(R.resourceInfo.capabilities=R.capabilities);var cb;!1===Ia.editable?cb=!1:Ia.privileges&&-1===c.indexOf(Ia.privileges,"features:user:edit")&&k.id&&k.id.findCredential(R.url)&&(cb=!1);Ga=new da(va(R.url),{resourceInfo:R.resourceInfo,opacity:R.opacity,visible:R.visibility,id:R.id,mode:R.mode===da.MODE_SELECTION?da.MODE_SELECTION:da.MODE_AUTO,editable:cb,outFields:["*"],autoGeneralize:!0,refreshInterval:R.refreshInterval});Ia.ignorePopups||!R.popupInfo||R.disablePopup||Ga.setInfoTemplate(new La(R.popupInfo));
R.layerDefinition&&(R.layerDefinition.drawingInfo&&R.layerDefinition.drawingInfo.renderer&&(Aa=E.fromJson(R.layerDefinition.drawingInfo.renderer,{geometryType:Ga.geometryType}),Aa.isMaxInclusive=!0,Ga.setRenderer(Aa)),R.layerDefinition.drawingInfo&&R.layerDefinition.drawingInfo.labelingInfo&&(Aa=c.map(R.layerDefinition.drawingInfo.labelingInfo,function(ab){return new Ib(ab)}),Ga.setLabelingInfo(Aa)),R.layerDefinition.definitionExpression&&Ga.setDefinitionExpression(R.layerDefinition.definitionExpression),
e.isDefined(R.layerDefinition.minScale)&&Ga.setMinScale(R.layerDefinition.minScale),e.isDefined(R.layerDefinition.maxScale)&&Ga.setMaxScale(R.layerDefinition.maxScale));Qa(Ga)}else R.resourceInfo&&R.resourceInfo.streamUrls&&(Aa={resourceInfo:R.resourceInfo,opacity:R.opacity,visible:R.visibility,id:R.id},R.layerDefinition&&(db=R.layerDefinition.drawingInfo,R.layerDefinition.definitionGeometry&&(Wa=Wa||{},Wa.geometry=R.layerDefinition.definitionGeometry),e.isDefined(R.layerDefinition.definitionExpression)&&
(Wa=Wa||{},Wa.where=R.layerDefinition.definitionExpression),e.isDefined(R.layerDefinition.maximumTrackPoints)&&(Aa.maximumTrackPoints=R.layerDefinition.maximumTrackPoints)),Wa&&(Aa.filter=Wa),R.purgeOptions&&(Aa.purgeOptions=R.purgeOptions),Ga=new fc(va(R.url),Aa),db&&db.renderer&&(Aa=db.renderer,Ga.setRenderer(E.fromJson(Aa,{geometryType:R.resourceInfo.geometryType}))),db&&db.labelingInfo&&(Aa=c.map(db.labelingInfo,function(ab){return new Ib(ab)}),Ga.setLabelingInfo(Aa)),Ia.ignorePopups||!R.popupInfo||
R.disablePopup||Ga.setInfoTemplate(new La(R.popupInfo)),R.layerDefinition&&(e.isDefined(R.layerDefinition.minScale)&&Ga.setMinScale(R.layerDefinition.minScale),e.isDefined(R.layerDefinition.maxScale)&&Ga.setMaxScale(R.layerDefinition.maxScale)),n.once(Ga,"error",function(ab){R.errors.push({message:"Error loading stream layer. Check websocket url"})}));else Ga=new Gb(R.styleUrl,{id:R.id,minScale:R.minScale,maxScale:R.maxScale,opacity:R.opacity,visible:R.visibility,resourceInfo:R.resourceInfo});else Ga=
new Hb(R.url,{id:R.id,opacity:R.opacity,outSpatialReference:Aa,refreshInterval:R.refreshInterval}),r.connect(Ga,"onLoad",function(){!1===R.visibility&&Ga.hide();e.isDefined(R.minScale)&&e.isDefined(R.maxScale)&&Ga.setScaleRange(R.minScale,R.maxScale);var ab=Ga.getFeatureLayers();c.forEach(ab,function(jb){R.pointSymbol&&"esriGeometryPoint"===jb.geometryType?(jb.renderer.symbol=u.fromJson(R.pointSymbol),1===ab.length&&(Ga.pointSymbol=u.fromJson(R.pointSymbol))):R.lineSymbol&&"esriGeometryPolyline"===
jb.geometryType?(jb.renderer.symbol=u.fromJson(R.lineSymbol),1===ab.length&&(Ga.polylineSymbol=u.fromJson(R.lineSymbol))):R.polygonSymbol&&"esriGeometryPolygon"===jb.geometryType&&(jb.renderer.symbol=u.fromJson(R.polygonSymbol),1===ab.length&&(Ga.polygonSymbol=u.fromJson(R.polygonSymbol)))})});else if(Ga=new mc(R.templateUrl,{id:R.id,visible:null!==R.visibility?R.visibility:!0,opacity:R.opacity,copyright:R.copyright,fullExtent:R.fullExtent&&new D(R.fullExtent),initialExtent:R.fullExtent&&new D(R.fullExtent),
subDomains:R.subDomains,tileInfo:R.tileInfo?new Tb(R.tileInfo):null,refreshInterval:R.refreshInterval,wmtsInfo:R.wmtsInfo}),e.isDefined(R.minScale)||e.isDefined(R.maxScale))Ga.loaded?Ga.setScaleRange(R.minScale,R.maxScale):r.connect(Ga,"onLoad",function(){Ga.setScaleRange(R.minScale,R.maxScale)});Ga&&(Ga.arcgisProps={title:R.title},R.baseMapLayer&&(R.isReference?(Ga.attr("data-reference",!0),Ga._basemapGalleryLayerType="reference"):Ga._basemapGalleryLayerType="basemap"),Ga instanceof da&&R.layerDefinition&&
R.layerDefinition.featureReduction&&"cluster"===R.layerDefinition.featureReduction.type&&(Aa=R.layerDefinition.featureReduction,Aa.clusterSize&&(Aa.clusterSize=d.pt2px(Aa.clusterSize)),Aa.clusterRadius&&(Aa.clusterRadius=d.pt2px(Aa.clusterRadius)),Aa.popupInfo&&(Aa.infoTemplate=new v(Aa.popupInfo),delete Aa.popupInfo),Ga.setFeatureReduction(Aa)));return Ga}function za(R,Ja,Ia,Aa,Da){c.forEach(R,function(Ga){Ga.layerObject=ka(Ga,R,Ja,Ia,Aa,Da)});var Na=c.filter(R,function(Ga){return!Ga.isReference}),
La=c.filter(R,function(Ga){return!!Ga.isReference});return R=Na.concat(La)}function Ea(R){var Ja=null;R=R[0];R.url&&ha(R)&&R.resourceInfo.spatialReference&&(Ja=new p,R.resourceInfo.spatialReference.wkid&&(Ja.wkid=R.resourceInfo.spatialReference.wkid),R.resourceInfo.spatialReference.wkt&&(Ja.wkt=R.resourceInfo.spatialReference.wkt));W(R)||la(R)?Ja=new p({wkid:102100}):R&&("WMS"===R.layerType||"WMS"===R.type)&&(Ja=new p({wkid:R.spatialReferences[0]}));return Ja}function Ka(R,Ja,Ia,Aa,Da,Na,La,Ga){c.forEach(Ja,
function(Sa){if(ha(Sa)||Sa&&"VectorTileLayer"===Sa.layerType)Sa.resourceInfo=R[Sa.deferredsPos][1],delete Sa.deferredsPos});Na=Na||Ea(Ja);Ja=za(Ja,Ia,Na,La,Ga);Da.callback(Ja);return Da}function Qa(R){!window.CanvasRenderingContext2D&&R.renderer&&"esri.renderer.HeatmapRenderer"===R.renderer.declaredClass&&R.setRenderer(E.fromJson({type:"simple",symbol:{color:[77,77,77,255],size:6,angle:0,xoffset:0,yoffset:0,type:"esriSMS",style:"esriSMSCircle",outline:{color:[255,255,255,255],width:.75,type:"esriSLS",
style:"esriSLSSolid"}}}))}function Pa(R,Ja,Ia){R.message=R.message?R.message+(" [url:"+Ja+"]"):"[url:"+Ja+"]";Ia.push(R);l.defaults.io.errorHandler(R)}function J(R,Ja){var Ia=va(R);return b({url:Ia,content:{f:"json"},callbackParamName:"callback",error:function(Aa,Da){Pa(Aa,Ia,Ja)}})}function U(R){var Ja=yb.arcgisUrl+"/"+R.itemId+"/data";return b({url:Ja,content:{f:"json"},callbackParamName:"callback",error:function(Ia,Aa){R.errors=R.errors||[];Pa(Ia,Ja,R.errors)}})}function ia(R,Ja){return lc.loadMetadata(R).otherwise(function(Ia){Pa(Ia,
R,Ja);return Ia})}function K(R,Ja,Ia){var Aa=new h;if(!(Ia.featureCollection&&Ia.featureCollection.layers||Ia.layers))return console.log("Invalid Feature Collection item data [item id: "+R.itemId+"]: ",Ia),R.errors=R.errors||[],R.errors.push({message:"Invalid Feature Collection item data. [item id: "+R.itemId+"]"}),Aa.errback(),Aa;Ia.layers&&(Ia.featureCollection={layers:Ia.layers},delete Ia.layers,e.isDefined(Ia.showLegend)&&(Ia.featureCollection.showLegend=Ia.showLegend,delete Ia.showLegend));T(R,
Ia.featureCollection,Ja).then(function(Da){Ia.featureCollection=Da;R.featureCollection&&R.featureCollection.layers?c.forEach(Ia.featureCollection.layers,function(Na,La){La=R.featureCollection.layers[La];La.popupInfo||La.layerDefinition?La.layerDefinition?(e.isDefined(La.layerDefinition.minScale)&&e.isDefined(La.layerDefinition.maxScale)&&(La.layerDefinition.minScale!==Na.layerDefinition.minScale||La.layerDefinition.maxScale!==Na.layerDefinition.maxScale)&&(delete Na.layerDefinition.minScale,delete Na.layerDefinition.maxScale),
La.layerDefinition.drawingInfo&&w.toJson(La.layerDefinition.drawingInfo)!==w.toJson(Na.layerDefinition.drawingInfo)&&delete Na.layerDefinition.drawingInfo,La.layerDefinition.showLegend!==Na.layerDefinition.showLegend&&delete Na.layerDefinition.showLegend,La.layerDefinition=x.mixin(La.layerDefinition,Na.layerDefinition)):La.layerDefinition=Na.layerDefinition:(La.popupInfo=Na.popupInfo,La.layerDefinition=Na.layerDefinition);La.featureSet=Na.featureSet;La.nextObjectId=Na.nextObjectId}):(R.featureCollection=
R.featureCollection||{},R.featureCollection=x.mixin(R.featureCollection,Ia.featureCollection));Aa.callback(R)});return Aa}function T(R,Ja,Ia){var Aa=new h;G(["./csv"],function(Da){var Na=[];c.forEach(Ja.layers,function(La){La.featureSet&&La.featureSet.features&&La.featureSet.features.length&&La.featureSet.features[0].geometry&&La.featureSet.features[0].geometry.spatialReference&&(La.deferredsPos=Na.length,Na.push(Da.projectFeatureCollection(La,Ia,La.featureSet.features[0].geometry.spatialReference)))});
(new f(Na)).addCallback(function(){c.forEach(Ja.layers,function(La){e.isDefined(La.deferredsPos)&&(Na[La.deferredsPos].results&&Na[La.deferredsPos].results.length?La=Na[La.deferredsPos].results[0]:(console.log("Errors projecting feature collection. ["+R.title+" - "+La.layerDefinition.name+"]"),La.errors=La.errors||[],La.errors.push({message:"Errors projecting feature collection. ["+R.title+" - "+La.layerDefinition.name+"]"})),delete La.deferredsPos)});Aa.callback(Ja)})});return Aa}function fa(R,Ja,
Ia,Aa,Da){var Na=new h,La=new h,Ga=[];c.forEach(R.operationalLayers,function(Va){Va.itemId&&"Feature Collection"==Va.type&&Ga.push(U(Va).then(x.hitch(null,K,Va,Ia)))});if(0===Ga.length)ra(R,Ja,Ia,Aa,La,Da);else{var Sa=new f(Ga);Sa.addCallback(function(Va){ra(R,Ja,Ia,Aa,La,Da)})}La.then(function(Va){Ga=[];c.forEach(Va,function(db){db=db.layerObject;if(db instanceof da&&!db.loaded&&!db.loadError){var Wa=new h;n.once(db,"load, error",function(){Wa.callback(db)});Ga.push(Wa)}else db&&"esri.layers.WFSLayer"===
db.declaredClass&&!db.loadError&&(Wa=new h,n.once(db,"fromJsonComplete, error",function(cb){Wa.callback(db)}),Ga.push(Wa))});if(Ga.length){var Ya=new h;Sa=new f(Ga);Sa.addCallback(function(){Ya.callback(Va)});return Ya.promise}return Va}).then(function(Va){var Ya=[];c.forEach(Va,function(db){var Wa=db.layerObject;Wa&&(Wa instanceof da||"esri.layers.StreamLayer"===Wa.declaredClass)?Wa.loaded&&Wa.labelingInfo&&(db.showLabels||Wa._collection?Ya.push(Wa):Wa.setShowLabels&&Wa.setShowLabels(!1)):Wa&&"esri.layers.WFSLayer"===
Wa.declaredClass&&Wa.loaded&&Wa.labelingInfo&&Ya.push(Wa)});Ya.length?G(["../layers/LabelLayer"],function(db){var Wa=new db;c.forEach(Ya,function(cb){Wa.addFeatureLayer(cb)});Va.push({layerObject:Wa});Na.callback(Va)}):Na.callback(Va)});return Na}function ra(R,Ja,Ia,Aa,Da,Na){var La=[],Ga=[],Sa=[];c.forEach(R.operationalLayers,function(Va,Ya){if(Va.featureCollection&&Va.featureCollection.layers){var db=Va.featureCollection.layers.length;c.forEach(Va.featureCollection.layers,function(Wa,cb){var ab=
!0;Va.visibleLayers&&-1==c.indexOf(Va.visibleLayers,cb)&&(ab=!1);Wa.visibility=(null!=Va.visibility?!!Va.visibility:!0)&&ab;Wa.opacity=Va.opacity;Wa.id=(Va.id||"operational"+Ya)+"_"+cb;Va.title&&(Wa.title=1!==db&&Wa.layerDefinition.name&&Va.title!==Wa.layerDefinition.name?Va.title+" - "+Wa.layerDefinition.name:Va.title);null==Wa.disablePopup&&(Wa.disablePopup=Va.disablePopup);Sa.push(Wa)},this)}else Sa.push(Va)});c.forEach(R.baseMap.baseMapLayers,function(Va,Ya){Va.baseMapLayer=!0;Va.id=Va.id||"base"+
Ya;La.push(Va)});c.forEach(Sa,function(Va,Ya){Va.id=Va.id||"operational"+Ya;La.push(Va)});c.forEach(La,function(Va){var Ya=!(!Va||"VectorTileLayer"!==Va.layerType);if(ha(Va)||Ya)Va.deferredsPos=Ga.length,Va.errors=Va.errors||[],Ya?Ga.push(ia(Va.styleUrl,Va.errors)):Ga.push(J(Va.url,Va.errors))});0===Ga.length?(Ia=Ia||Ea(La),La=za(La,Ja,Ia,Aa,Na),Da.callback(La)):(new f(Ga)).addCallback(function(Va){Ka(Va,La,Ja,Ga,Da,Ia,Aa,Na)});return Da}function Ba(R,Ja,Ia,Aa){var Da=R.minScale,Na=R.maxScale;if(10.1>=
Ia.version&&Ja)for(R=Ja.length-1;0<=R;R--){if(Ja[R].id==Aa)if(0==Da&&0<Ja[R].minScale?Da=Ja[R].minScale:0<Da&&0==Ja[R].minScale?Da=Ia.minScale:0<Da&&0<Ja[R].minScale&&(Da=Math.min(Da,Ja[R].minScale)),Na=Math.max(Ia.maxScale||0,Ja[R].maxScale||0),Ia.setScaleRange(Da,Na),-1<Ja[R].parentLayerId)Aa=Ja[R].parentLayerId;else break}else 10.1<Ia.version&&(c.forEach(R.layerInfos,function(La){La.id==Aa&&(0==Da&&0<La.minScale?Da=La.minScale:0<Da&&0==La.minScale||0<Da&&0<La.minScale&&(Da=Math.min(Da,La.minScale)),
Na=Math.max(Na||0,La.maxScale||0))}),Ia.setScaleRange(Da,Na))}function Ma(R,Ja,Ia,Aa){var Da=R.url,Na=R.__popupIds,La=R.__popupUrls,Ga=R.__popupWhereClauses,Sa=R.__popupMinScales,Va=R.__popupMaxScales,Ya=R.__resourceInfo,db=[];c.forEach(R.__popups,function(Wa,cb){if(Wa){var ab=[];c.forEach(Wa.fieldInfos,function(pb){"shape"!==pb.fieldName.toLowerCase()&&ab.push(pb.fieldName)});if(R.dynamicLayerInfos&&0<R.dynamicLayerInfos.length){var jb=c.filter(R.dynamicLayerInfos,function(pb){return Na[cb]==pb.id})[0].source;
var Cb=new da(Da+"/dynamicLayer",{parentLayer:R,id:R.id+"_"+Na[cb],source:jb,outFields:ab,mode:da.MODE_SELECTION,infoTemplate:Wa&&new Ia(Wa),drawMode:!1,visible:R.visible,autoGeneralize:!0});var gc=function(pb,Ub){0<Ga[pb].length&&Ub.setDefinitionExpression(Ga[pb]);if(e.isDefined(Sa[pb])||e.isDefined(Va[pb]))if(e.isDefined(R.minScale)||e.isDefined(R.maxScale)){var Jb=R.minScale,Vb=R.maxScale;0==Jb&&0<Sa[pb]?Jb=Sa[pb]:0<Jb&&0==Sa[pb]||0<Jb&&0<Sa[pb]&&(Jb=Math.min(Jb,Sa[pb]));Vb=Math.max(Vb||0,Va[pb]||
0);Ub.setScaleRange(Jb,Vb)}else Ub.setScaleRange(Sa[pb],Va[pb]);else Ba(R,Ja||Ya.layers,Ub,Na[pb])};Cb.loaded?gc(cb,Cb):r.connect(Cb,"onLoad",function(pb){gc(cb,Cb)})}else{var hc=null,ic=Da+"/"+Na[cb];if(La[cb].length)ic=La[cb];else if(Ja)for(jb=0;jb<Ja.length;jb++)if(Ja[jb].id===Na[cb]){hc=Ja[jb];break}Cb=new da(va(ic),{parentLayer:R,id:R.id+"_"+Na[cb],outFields:ab,mode:da.MODE_SELECTION,infoTemplate:Wa&&new Ia(Wa),drawMode:!1,visible:R.visible,resourceInfo:hc,autoGeneralize:!0});Cb.loaded?(0<Ga[cb].length&&
Cb.setDefinitionExpression(Ga[cb]),Ba(R,Ja||Ya.layers,Cb,Na[cb])):r.connect(Cb,"onLoad",function(pb){0<Ga[cb].length&&Cb.setDefinitionExpression(Ga[cb]);Ba(R,Ja||Ya.layers,pb,Na[cb])})}db.push(Cb)}});0<db.length&&(r.connect(R,"onVisibilityChange",x.hitch(this,function(Wa,cb){c.forEach(Wa,function(ab){cb?ab.show():ab.hide()})},db)),r.connect(Aa,"onLayerRemove",x.hitch(this,function(Wa,cb,ab){Wa.id===ab.id&&c.forEach(cb,function(jb){Aa.removeLayer(jb)})},R,db)));delete R.__popups;delete R.__popupIds;
delete R.__popupUrls;delete R.__popupWhereClauses;delete R.__popupMinScales;delete R.__popupMaxScales;delete R.__resourceInfo;return db}function Ha(R){return b({url:va(R.url+"/layers"),content:{f:"json"},callbackParamName:"callback",error:function(){}})}function Ua(R,Ja,Ia){var Aa=[];c.forEach(R,function(Na){var La=Na.__popups;La&&1<La.length&&10<=Na.version&&(Na.__deferredsPos=Aa.length,Aa.push(Ha(Na)))});var Da=[];0<Aa.length?(new f(Aa)).addCallback(function(Na){c.forEach(R,function(La){La.__popups&&
0<La.__popups.length&&(La.__deferredsPos||0===La.__deferredsPos?(Da=Da.concat(Ma(La,Na[La.__deferredsPos][1].layers,Ia,Ja)),delete La.__deferredsPos):Da=Da.concat(Ma(La,null,Ia,Ja)))});Ja.addLayers(Da)}):(c.forEach(R,function(Na){Na.__popups&&0<Na.__popups.length&&(Da=Da.concat(Ma(Na,null,Ia,Ja)))}),Ja.addLayers(Da))}function Ta(R){c.forEach(R,function(Ja){var Ia=Ja.layer;Ia.toJson&&(Ja=Ia.toJson(),Ja.featureSet&&Ia.name&&-1<Ia.name.indexOf("Text")&&c.forEach(Ja.featureSet.features,function(Aa,Da){Aa.attributes.TEXT&&
(Da=Ia.graphics[Da],Da.symbol.setText(Aa.attributes.TEXT),Aa.symbol.horizontalAlignment&&(Da.symbol.align=Aa.symbol.horizontalAlignment),Da.setSymbol(Da.symbol),Da.setAttributes(Aa.attributes))},this))})}function Oa(R){var Ja=6;c.forEach(R,function(Ia){if(Ia=Ia.renderer)"esri.renderer.SimpleRenderer"===Ia.declaredClass?((Ia=Ia.symbol)&&Ia.xoffset&&(Ja=Math.max(Ja,Math.abs(Ia.xoffset))),Ia&&Ia.yoffset&&(Ja=Math.max(Ja,Math.abs(Ia.yoffset)))):"esri.renderer.UniqueValueRenderer"!==Ia.declaredClass&&
"esri.renderer.ClassBreaksRenderer"!==Ia.declaredClass||c.forEach(Ia.infos,function(Aa){(Aa=Aa.symbol)&&Aa.xoffset&&(Ja=Math.max(Ja,Math.abs(Aa.xoffset)));Aa&&Aa.yoffset&&(Ja=Math.max(Ja,Math.abs(Aa.yoffset)))})});return Ja}function Xa(R){var Ja=this,Ia=Ja.infoWindow,Aa=R.graphic;if(Ja.loaded){Ia.hide();Ia.clearFeatures();var Da=[];c.forEach(Ja.graphicsLayerIds,function(Wa){(Wa=Ja.getLayer(Wa))&&Wa instanceof da&&Wa.loaded&&Wa.visible&&(Wa.clearSelection(),Wa.infoTemplate&&!Wa.suspended&&Da.push(Wa))});
c.forEach(Ja.layerIds,function(Wa){(Wa=Ja.getLayer(Wa))&&(-1!==Wa.declaredClass.indexOf("ArcGISImageServiceLayer")||-1!==Wa.declaredClass.indexOf("RasterXLayer"))&&Wa.loaded&&Wa.visible&&Wa.infoTemplate&&Da.push(Wa)});Aa=Aa&&Aa.getInfoTemplate()?Aa:null;if(Da.length||Aa){var Na=Oa(Da),La=R.screenPoint,Ga=Ja.toMap(new y(La.x-Na,La.y+Na));Na=Ja.toMap(new y(La.x+Na,La.y-Na));var Sa=new D(Ga.x,Ga.y,Na.x,Na.y,Ja.spatialReference),Va=new F;Va.geometry=Sa;Va.timeExtent=Ja.timeExtent;var Ya=!0;Ga=c.map(Da,
function(Wa){Wa=Wa&&Wa.isFeatureReductionActive&&Wa.isFeatureReductionActive()?Wa.getFeatureReductionLayer():Wa;if(-1!==Wa.declaredClass.indexOf("ArcGISImageServiceLayer")){Va.geometry=R.mapPoint;Ya=!1;var cb=Wa.queryVisibleRasters(Va,{rasterAttributeTableFieldPrefix:"Raster.",returnDomainValues:!0});cb.addCallback(function(){return Wa.getVisibleRasters()})}else if(-1!==Wa.declaredClass.indexOf("RasterXLayer"))cb=Wa.fetchPopupFromTiles({geometry:R.mapPoint});else if("function"===typeof Wa.selectFeatures)cb=
Wa.selectFeatures(Va),cb.addCallback(function(){return Wa.getSelectedFeatures()});else{cb=new h;var ab=c.filter(Wa.graphics,function(jb){return jb&&jb.visible&&Sa.intersects(jb.geometry)});cb.resolve(ab)}return cb});Aa&&(Na=new h,Na.callback([Aa]),Ga.splice(0,0,Na));if(!c.some(Ga,function(Wa){return-1===Wa.fired})){var db=Aa?1:0;c.forEach(Da,function(Wa){db=-1!==Wa.declaredClass.indexOf("ArcGISImageServiceLayer")?db+Wa.getVisibleRasters().length:-1!==Wa.declaredClass.indexOf("RasterXLayer")?db+Wa.getPopupFromTiles().length:
db+Wa.getSelectedFeatures().length});if(!db)return}Ia.setFeatures(Ga);Ia.show(R.mapPoint,{closestFirst:Ya})}}}function $a(R,Ja){var Ia=Ja.mapOptions||{};if(!Ia.infoWindow){var Aa=new A({visibleWhenEmpty:!1},g.create("div"));Ia.infoWindow=Aa}e.isDefined(Ia.showInfoWindowOnClick)||Ja.usePopupManager||(Ia.showInfoWindowOnClick=!1);R=new t(R,Ia);r.connect(R,"onLayersAddResult",Ta);return R}function bb(R,Ja,Ia,Aa,Da,Na){if(Aa.map){var La=Aa.map;var Ga=Aa.clickEventHandle;var Sa=Aa.clickEventListener;var Va=
Aa.errors}else{var Ya=Ia.itemData;!Da.mapOptions.backgroundColor&&Ya.background&&Ya.background.color&&null!=Ya.background.color[0]&&(Da.mapOptions.backgroundColor=m.toDojoColor(Ya.background.color));La=$a(Aa,Da);Da.ignorePopups||Da.disableClickBehavior||Da.usePopupManager||(Ga=r.connect(La,"onClick",Xa),Sa=Xa)}La.addLayers(R);Da.ignorePopups||Da.usePopupManager||Ua(R,La,Da._clazz);var db=Va||[];c.forEach(Ja,function(Wa){Wa.errors&&(db=db.concat(Wa.errors))},this);La.loaded?Na.callback({map:La,itemInfo:Ia,
errors:db,clickEventHandle:Ga,clickEventListener:Sa}):r.connect(La,"onLoad",function(){Na.callback({map:La,itemInfo:Ia,errors:db,clickEventHandle:Ga,clickEventListener:Sa})})}function hb(R,Ja,Ia,Aa,Da){var Na=[];c.forEach(Da,function(Sa){x.isArray(Sa.layerObject)?c.forEach(Sa.layerObject,function(Va){Na.push(Va)}):Na.push(Sa.layerObject)});if(W(Da[0]))var La=setInterval(function(){if(Da[0].layerObject&&Da[0].layerObject.loaded)clearInterval(La),gb(R,Ja,Ia,Aa,Da,Na);else if(Da[0].errors){clearInterval(La);
var Sa="";Da[0].errors&&Da[0].errors.length&&(Sa=" ("+Da[0].errors[0].message+")");Aa.errback(Error(ba.arcgis.utils.baseLayerError+Sa))}},10);else if(!Na[0]&&Da[0].baseMapLayer){var Ga="";Da[0].errors&&Da[0].errors.length&&(Ga=" ("+Da[0].errors[0].message+")");Aa.errback(Error(ba.arcgis.utils.baseLayerError+Ga))}else gb(R,Ja,Ia,Aa,Da,Na)}function gb(R,Ja,Ia,Aa,Da,Na){try{var La=Ia.mapOptions||{};Ia.mapOptions=La;Na=c.filter(Na,e.isDefined);if(Ja.map||La.extent)bb(Na,Da,R,Ja,Ia,Aa);else{var Ga=Na[0].spatialReference;
if(La.center&&(null!=La.zoom||La.scale)&&(x.isArray(La.center)&&(La.center=new C(La.center)),B.canProject(La.center,Ga))){bb(Na,Da,R,Ja,Ia,Aa);return}var Sa=R.item;if(Sa&&Sa.extent&&Sa.extent.length){var Va=new D(Sa.extent[0][0],Sa.extent[0][1],Sa.extent[1][0],Sa.extent[1][1],new p({wkid:4326}));4326===Ga.wkid?(La.extent=Va,bb(Na,Da,R,Ja,Ia,Aa)):900913===Ga.wkid||102100===Ga.wkid||102113===Ga.wkid||3857===Ga.wkid?(Va.xmin=Math.max(Va.xmin,-180),Va.xmax=Math.min(Va.xmax,180),Va.ymin=Math.max(Va.ymin,
-89.99),Va.ymax=Math.min(Va.ymax,89.99),La.extent=B.geographicToWebMercator(Va),bb(Na,Da,R,Ja,Ia,Aa)):Ia.geometryServiceURL||l.defaults.geometryService?(Ia.geometryServiceURL?new I(Ia.geometryServiceURL):l.defaults.geometryService).project([Va],Ga,function(Ya){Ya=Ya[0];La.extent=La.extent||Ya;bb(Na,Da,R,Ja,Ia,Aa)},function(){bb(Na,Da,R,Ja,Ia,Aa)}):Aa.errback(Error(ba.arcgis.utils.geometryServiceError))}else bb(Na,Da,R,Ja,Ia,Aa)}}catch(Ya){Aa.errback(Ya)}}function mb(R){var Ja=[];c.forEach(R.operationalLayers,
function(Ia){Ia.featureCollection?Ja.push({featureCollection:Ia.featureCollection,visibility:null!=Ia.visibility?!!Ia.visibility:!0,title:Ia.title}):Ia.layerObject&&Ja.push({layer:Ia.layerObject,visibility:null!=Ia.visibility?!!Ia.visibility:!0,title:Ia.title})});return Ja}function rb(R){var Ja=[],Ia=R.baseMap.baseMapLayers;R.operationalLayers&&(Ia=Ia.concat(R.operationalLayers));c.forEach(Ia,function(Aa){var Da={};if(Aa.featureCollection&&(!Aa||"CSV"!==Aa.layerType&&"CSV"!==Aa.type))!0===Aa.featureCollection.showLegend&&
c.forEach(Aa.featureCollection.layers,function(Ga){if(!1!==Ga.showLegend){var Sa=Ga.layerObject.renderer;Da={layer:Ga.layerObject,title:Aa.title,defaultSymbol:Sa&&Sa.defaultSymbol&&Sa.defaultLabel?!0:!1};1<Aa.featureCollection.layers.length&&(Da.title+=" - "+Ga.layerDefinition.name);Ja.push(Da)}});else if(Aa.baseMapLayer&&!0===Aa.showLegend&&Aa.layerObject||!Aa.baseMapLayer&&!1!==Aa.showLegend&&Aa.layerObject&&!(Aa.layerObject instanceof da&&Aa.layerObject.mode===da.MODE_SELECTION)){var Na=Aa.layerObject.renderer,
La=Aa.layerObject.declaredClass;Na=!Na||Na&&Na.defaultSymbol&&Na.defaultLabel?!0:!1;if(10.1>Aa.layerObject.version&&("esri.layers.ArcGISDynamicMapServiceLayer"===La||"esri.layers.ArcGISTiledMapServiceLayer"===La)||"esri.layers.ArcGISImageServiceLayer"===La)Na=!0;Da={layer:Aa.layerObject,title:Aa.title,defaultSymbol:Na};Aa.layers&&(La=c.map(c.filter(Aa.layers,function(Ga){return!1===Ga.showLegend}),function(Ga){return Ga.id}),La.length&&(Da.hideLayers=La));Ja.push(Da)}});return Ja}function ob(R,Ja){function Ia(Ga,
Sa){c.forEach(Ga,function(Va,Ya){switch(Va){case "../layers/ArcGISDynamicMapServiceLayer":qb=Sa[Ya];break;case "../layers/ArcGISImageServiceLayer":sb=Sa[Ya];break;case "../layers/ArcGISImageServiceVectorLayer":vb=Sa[Ya];break;case "../layers/CSVLayer":Ob=Sa[Ya];break;case "../layers/DynamicLayerInfo":zb=Sa[Ya];break;case "../layers/GeoRSSLayer":Hb=Sa[Ya];break;case "../layers/ImageParameters":Eb=Sa[Ya];break;case "../layers/ImageServiceParameters":Wb=Sa[Ya];break;case "../layers/KMLLayer":Pb=Sa[Ya];
break;case "../layers/LabelClass":Ib=Sa[Ya];break;case "../layers/LayerDrawingOptions":Yb=Sa[Ya];break;case "../layers/MosaicRule":ac=Sa[Ya];break;case "../layers/OpenStreetMapLayer":bc=Sa[Ya];break;case "../layers/RasterFunction":dc=Sa[Ya];break;case "../layers/RasterXLayer":ec=Sa[Ya];break;case "../layers/StreamLayer":fc=Sa[Ya];break;case "../layers/TileInfo":Tb=Sa[Ya];break;case "../layers/VectorTileLayer":Gb=Sa[Ya];break;case "../layers/vectorTiles/layers/support/vectorTileLayerLoader":lc=Sa[Ya];
break;case "../virtualearth/VETiledLayer":Nb=Sa[Ya];break;case "../layers/WebTiledLayer":mc=Sa[Ya];break;case "../layers/WFSLayer":Sb=Sa[Ya];break;case "../layers/WMSLayer":cc=Sa[Ya];break;case "../layers/WMSLayerInfo":Db=Sa[Ya]}})}var Aa=new h;R=R.itemData;Ja=[];R.baseMap&&R.baseMap.baseMapLayers&&(Ja=Ja.concat(R.baseMap.baseMapLayers));R.operationalLayers&&(Ja=Ja.concat(R.operationalLayers));R=c.map(Ja,function(Ga){return Ga&&Ga.layerType});var Da=[],Na=[];Ja=!1;for(var La=0;La<R.length;La++){switch(R[La]){case "ArcGISFeatureLayer":-1===
c.indexOf(Da,"../layers/LabelClass")&&Da.push("../layers/LabelClass");break;case "ArcGISImageServiceLayer":case "ArcGISTiledImageServiceLayer":-1===c.indexOf(Da,"../layers/ArcGISImageServiceLayer")&&(Da.push("../layers/ArcGISImageServiceLayer"),Na.push("../layers/ImageServiceParameters"),Na.push("../layers/MosaicRule"),Na.push("../layers/RasterFunction"),Da.push("../layers/RasterXLayer"));break;case "ArcGISImageServiceVectorLayer":-1===c.indexOf(Da,"../layers/ArcGISImageServiceVectorLayer")&&(Da.push("../layers/ArcGISImageServiceVectorLayer"),
Na.push("../layers/ImageServiceParameters"),Na.push("../layers/MosaicRule"),Na.push("../layers/RasterFunction"));break;case "ArcGISMapServiceLayer":case "ArcGISTiledMapServiceLayer":-1===c.indexOf(Da,"../layers/ArcGISDynamicMapServiceLayer")&&(Da.push("../layers/ArcGISDynamicMapServiceLayer"),Na.push("../layers/DynamicLayerInfo"),Na.push("../layers/ImageParameters"),Na.push("../layers/LayerDrawingOptions"));break;case "ArcGISStreamLayer":-1===c.indexOf(Da,"../layers/StreamLayer")&&Da.push("../layers/StreamLayer");
-1===c.indexOf(Da,"../layers/LabelClass")&&Da.push("../layers/LabelClass");break;case "BingMapsAerial":case "BingMapsHybrid":case "BingMapsRoad":-1===c.indexOf(Da,"../virtualearth/VETiledLayer")&&Da.push("../virtualearth/VETiledLayer");break;case "CSV":-1===c.indexOf(Da,"../layers/CSVLayer")&&(Da.push("../layers/CSVLayer"),Na.push("./csv"));break;case "GeoRSS":-1===c.indexOf(Da,"../layers/GeoRSSLayer")&&Da.push("../layers/GeoRSSLayer");break;case "KML":-1===c.indexOf(Da,"../layers/KMLLayer")&&Da.push("../layers/KMLLayer");
break;case "OpenStreetMap":-1===c.indexOf(Da,"../layers/OpenStreetMapLayer")&&Da.push("../layers/OpenStreetMapLayer");break;case "VectorTileLayer":-1===c.indexOf(Da,"../layers/VectorTileLayer")&&Da.push("../layers/VectorTileLayer");-1===c.indexOf(Na,"../layers/vectorTiles/layers/support/vectorTileLayerLoader")&&Na.push("../layers/vectorTiles/layers/support/vectorTileLayerLoader");break;case "WebTiledLayer":-1===c.indexOf(Da,"../layers/WebTiledLayer")&&(Da.push("../layers/WebTiledLayer"),Na.push("../layers/TileInfo"));
break;case "WFS":-1===c.indexOf(Da,"../layers/WFSLayer")&&Da.push("../layers/WFSLayer");break;case "WMS":-1===c.indexOf(Da,"../layers/WMSLayer")&&(Da.push("../layers/WMSLayer"),Na.push("../layers/WMSLayerInfo"));break;default:Ja=!0}if(Ja)break}Ja&&(Da=Qb,Na=Zb);Da.length?G(Da,function(){Ia(Da,arguments);Na.length?G(Na,function(){Ia(Na,arguments);Aa.resolve()}):Aa.resolve()}):Aa.resolve();return Aa}function eb(R){R=R.itemData;var Ja=function(Aa,Da){"GroupLayer"===Aa.layerType?c.forEach(Aa.layers,function(Na){Na.visibility=
!1!==Aa.visibility&&!1!==Na.visibility;Na.opacity=e.isDefined(Aa.opacity)?e.isDefined(Na.opacity)?Na.opacity*Aa.opacity:Aa.opacity:Na.opacity;Ja(Na,Da)}):Da.push(Aa)},Ia=[];c.forEach(R.operationalLayers,function(Aa){Ja(Aa,Ia)});R.operationalLayers=Ia}function nb(R,Ja,Ia,Aa){eb(Aa);var Da=Aa.itemData;Da.baseMap&&Da.baseMap.baseMapLayers&&Da.baseMap.baseMapLayers.length&&(Da.baseMap.baseMapLayers[0].firstLayer=!0);var Na=Ja.layerMixins,La=Na&&Na.length;if(La){var Ga=function(Sa){for(var Va=0;Va<La;Va++){var Ya=
Na[Va];if(Ya.mixin)if(Ya.hasOwnProperty("id")){if(Sa.id===Ya.id){x.mixin(Sa,Ya.mixin);break}}else if(Sa.url===Ya.url){x.mixin(Sa,Ya.mixin);break}}};c.forEach(Da.baseMap&&Da.baseMap.baseMapLayers,Ga);c.forEach(Da.operationalLayers,Ga)}ob(Aa,Ja).then(function(){return ca(Aa,Ja)}).then(function(){return Y(Aa,Ja)}).then(function(Sa){var Va=Sa[0],Ya=Sa[1];if(Va.itemData.operationalLayers&&0!==Va.itemData.operationalLayers.length){var db=new h,Wa=Va.itemData.baseMap.baseMapLayers.slice(),cb=c.filter(Va.itemData.baseMap.baseMapLayers,
function(ab){return!ab.isReference});Sa={item:Va.item,itemData:{baseMap:{baseMapLayers:cb},background:x.clone(Va.itemData.background)}};Va.itemData.baseMap.baseMapLayers=c.filter(Va.itemData.baseMap.baseMapLayers,function(ab){return ab.isReference});L(Sa,Ya).addCallback(function(ab){fa(ab.itemData,Ya).addCallback(x.hitch(null,hb,ab,R,Ya,db))});db.then(function(ab){L(Va,Ya).addCallback(function(jb){fa(jb.itemData,Ya,ab.map.spatialReference,cb,ab.map).addCallback(function(Cb){jb.itemData.baseMap.baseMapLayers=
Wa;hb(jb,ab,Ya,Ia,Cb)})})},x.hitch(Ia,Ia.errback))}else L(Va,Ya).addCallback(function(ab){fa(ab.itemData,Ya).addCallback(x.hitch(null,hb,ab,R,Ya,Ia))})})}function Ab(R,Ja){"undefined"===typeof Ja&&(Ja=!0);yb._arcgisUrl&&0<yb._arcgisUrl.length&&(yb.arcgisUrl=yb._arcgisUrl);var Ia={},Aa=new h;b({url:yb.arcgisUrl+"/"+R,content:{f:"json"},callbackParamName:"callback",load:function(Da){Ia.item=Da;Ja?b({url:yb.arcgisUrl+"/"+R+"/data",content:{f:"json"},callbackParamName:"callback",load:function(Na){Ia.itemData=
Na;Aa.callback(Ia)},error:function(Na){Aa.errback(Na)}}):Aa.callback(Ia)},error:function(Da){Aa.errback(Da)}});return Aa}var qb,sb,vb,Ob,zb,Hb,Eb,Wb,Pb,Ib,Yb,ac,bc,dc,ec,fc,Tb,Gb,lc,Nb,mc,Sb,cc,Db,Qb="../layers/ArcGISDynamicMapServiceLayer ../layers/ArcGISImageServiceLayer ../layers/ArcGISImageServiceVectorLayer ../layers/CSVLayer ../layers/GeoRSSLayer ../layers/KMLLayer ../layers/LabelClass ../layers/OpenStreetMapLayer ../layers/RasterXLayer ../layers/StreamLayer ../layers/VectorTileLayer ../virtualearth/VETiledLayer ../layers/WebTiledLayer ../layers/WFSLayer ../layers/WMSLayer".split(" "),
Zb="./csv ../layers/DynamicLayerInfo ../layers/ImageParameters ../layers/ImageServiceParameters ../layers/LayerDrawingOptions ../layers/MosaicRule ../layers/RasterFunction ../layers/TileInfo ../layers/vectorTiles/layers/support/vectorTileLayerLoader ../layers/WMSLayerInfo".split(" ");var yb={arcgisUrl:z.getProtocolForWebResource()+"//www.arcgis.com/sharing/rest/content/items",getItem:Ab,createMap:function(R,Ja,Ia){var Aa=new h;Ia=Ia||{};var Da=Ia.infoTemplateClass;Ia._clazz=Da&&(x.isObject(Da)?Da:
x.getObject(Da))||v;x.isString(R)?Ab(R).addCallback(x.hitch(null,nb,Ja,Ia,Aa)).addErrback(x.hitch(Aa,Aa.errback)):nb(Ja,Ia,Aa,R);Aa.addCallback(function(Na){var La=Na.map;La&&(La.tables=x.getObject("itemInfo.itemData.tables",!1,Na)||[])});return Aa},getLayerList:function(R){return R&&R.itemInfo&&R.itemInfo.itemData?mb(R.itemInfo.itemData):[]},getLegendLayers:function(R){return R&&R.itemInfo&&R.itemInfo.itemData?rb(R.itemInfo.itemData):[]},_arcgisUrl:null,_getItemProps:L,_getItemData:sa,_getBingKey:Ca,
_portalUrlResponse:V,_portalUrlFailure:X,_processFSItemProperties:oa,_processSSItemProperties:qa,_getLayers:fa,_preBuildLayerObjects:Ka,_buildLayerObjects:za,_preCreateMap:hb,_getMapSR:Ea,_createMap:bb,_addSelectionLayers:Ua,_createSelectionFeatureLayers:Ma,_getServiceInfo:J,_getFeatureCollectionItem:U,_mergeFeatureCollectionItem:K,_projectFeatureCollection:T,_getLayersInfo:Ha,_initLayer:ka,_loadAsCached:M,_loadAsDynamic:ma,_processPopups:pa,_onLayersAddResult:Ta,_sameSpatialReferenceAsBasemap:wa,
_sameTilingSchemeAsBasemap:Q,_showPopup:Xa,_calculateClickTolerance:Oa,_getVisibleFeatureLayers:S,_updateLayerScaleInfo:Ba,_checkUrl:va,_isHostedService:ta,_isAgolService:ea,_getLegendLayers:rb};x.setObject("arcgis.utils",yb,k);return yb})},"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(G,x,c,r,h,w,q,n,f,g,a,d,k,l,m){G=G(g,{declaredClass:"esri.tasks.GeometryService",_eventMap:{"areas-and-lengths-complete":["result"],"auto-complete-complete":["geometries"],"buffer-complete":["geometries"],"convex-hull-complete":["geometry"],"cut-complete":["result"],"densify-complete":["geometries"],"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(e){e=x.hitch;this._projectHandler=e(this,this._projectHandler);this._simplifyHandler=e(this,this._simplifyHandler);this._bufferHandler=e(this,this._bufferHandler);this._areasAndLengthsHandler=e(this,this._areasAndLengthsHandler);this._lengthsHandler=
e(this,this._lengthsHandler);this._labelPointsHandler=e(this,this._labelPointsHandler);this._relationHandler=e(this,this._relationHandler);this._convexHullHandler=e(this,this._convexHullHandler);this._unionHandler=e(this,this._unionHandler);this._autoCompleteHandler=e(this,this._autoCompleteHandler);this._reshapeHandler=e(this,this._reshapeHandler);this._cutHandler=e(this,this._cutHandler);this._intersectHandler=e(this,this._intersectHandler);this._differenceHandler=e(this,this._differenceHandler);
this._trimExtendHandler=e(this,this._trimExtendHandler);this._densifyHandler=e(this,this._densifyHandler);this._generalizeHandler=e(this,this._densifyHandler);this._offsetHandler=e(this,this._offsetHandler);this._distanceHandler=e(this,this._distanceHandler);this._toGeoCoordinateHandler=e(this,this._toGeoCoordinateHandler);this._fromGeoCoordinateHandler=e(this,this._fromGeoCoordinateHandler);this.registerConnectEvents()},_encodeGeometries:function(e){var b=[],p,t=e.length;for(p=0;p<t;p++)b.push(e[p].toJson());
return{geometryType:m.getJsonType(e[0]),geometries:b}},_decodeGeometries:function(e,b,p){var t=m.getGeometryType(b);e=e.geometries;var z=[],C={spatialReference:p.toJson()},y=x.mixin;c.forEach(e,function(D,B){z[B]=new t(y(D,C))});return z},_toProjectGeometry:function(e){var b=e.spatialReference.toJson();return e instanceof a?new k({rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]],spatialReference:b}):new d({paths:[[].concat(e.points)],spatialReference:b})},
_fromProjectedGeometry:function(e,b,p){return"esriGeometryEnvelope"===b?(e=e.rings[0],new a(e[0][0],e[0][1],e[2][0],e[2][1],p)):new l({points:e.paths[0],spatialReference:p.toJson()})},project:function(e,b,p,t){var z=x.mixin({},this._url.query,{f:"json"});if(e.geometries){t=p;p=b;b=e.outSR;var C=e.geometries[0];z=x.mixin(z,e.toJson())}else C=e[0],z=x.mixin(z,{outSR:b.wkid||r.toJson(b.toJson()),inSR:C.spatialReference.wkid||r.toJson(C.spatialReference.toJson()),geometries:r.toJson(this._encodeGeometries(e))});
var y=m.getJsonType(C),D=this._projectHandler,B=this._errorHandler,u=new h(f._dfdCanceller);u._pendingDfd=n({url:this._url.path+"/project",content:z,callbackParamName:"callback",load:function(E,v){D(E,v,y,b,p,t,u)},error:function(E){B(E,t,u)}});return u},_projectHandler:function(e,b,p,t,z,C,y){try{var D=this._decodeGeometries(e,p,t);this._successHandler([D],"onProjectComplete",z,y)}catch(B){this._errorHandler(B,C,y)}},onProjectComplete:function(){},simplify:function(e,b,p){var t=e[0].spatialReference,
z=x.mixin({},this._url.query,{f:"json",sr:t.wkid?t.wkid:r.toJson(t.toJson()),geometries:r.toJson(this._encodeGeometries(e))}),C=m.getJsonType(e[0]),y=this._simplifyHandler,D=this._errorHandler,B=new h(f._dfdCanceller);B._pendingDfd=n({url:this._url.path+"/simplify",content:z,callbackParamName:"callback",load:function(u,E){y(u,E,C,t,b,p,B)},error:function(u){D(u,p,B)}});return B},_simplifyHandler:function(e,b,p,t,z,C,y){try{var D=this._decodeGeometries(e,p,t);this._successHandler([D],"onSimplifyComplete",
z,y)}catch(B){this._errorHandler(B,C,y)}},onSimplifyComplete:function(){},convexHull:function(e,b,p){var t=e[0].spatialReference;e=x.mixin({},this._url.query,{f:"json",sr:r.toJson(t.toJson()),geometries:r.toJson(this._encodeGeometries(e))});var z=this._convexHullHandler,C=this._errorHandler,y=new h(f._dfdCanceller);y._pendingDfd=n({url:this._url.path+"/convexHull",content:e,callbackParamName:"callback",load:function(D,B){z(D,B,t,b,p,y)},error:function(D){C(D,p,y)}});return y},_convexHullHandler:function(e,
b,p,t,z,C){try{var y=m.fromJson(e.geometry).setSpatialReference(p);this._successHandler([y],"onConvexHullComplete",t,C)}catch(D){this._errorHandler(D,z,C)}},onConvexHullComplete:function(){},union:function(e,b,p){var t=e[0].spatialReference;e=x.mixin({},this._url.query,{f:"json",sr:r.toJson(t.toJson()),geometries:r.toJson(this._encodeGeometries(e))});var z=this._unionHandler,C=this._errorHandler,y=new h(f._dfdCanceller);y._pendingDfd=n({url:this._url.path+"/union",content:e,callbackParamName:"callback",
load:function(D,B){z(D,B,t,b,p,y)},error:function(D){C(D,p,y)}});return y},_unionHandler:function(e,b,p,t,z,C){try{var y=m.fromJson(e.geometry).setSpatialReference(p);this._successHandler([y],"onUnionComplete",t,C)}catch(D){this._errorHandler(D,z,C)}},onUnionComplete:function(){},autoComplete:function(e,b,p,t){var z=e[0].spatialReference;e=x.mixin({},this._url.query,{f:"json",sr:r.toJson(z.toJson()),polygons:r.toJson(this._encodeGeometries(e).geometries),polylines:r.toJson(this._encodeGeometries(b).geometries)});
var C=this._autoCompleteHandler,y=this._errorHandler,D=new h(f._dfdCanceller);D._pendingDfd=n({url:this._url.path+"/autoComplete",content:e,callbackParamName:"callback",load:function(B,u){C(B,u,z,p,t,D)},error:function(B){y(B,t,D)}});return D},_autoCompleteHandler:function(e,b,p,t,z,C){try{var y=e.geometries;e=[];var D,B=y.length;for(D=0;D<B;D++)e[D]=new k({spatialReference:p,rings:y[D].rings});this._successHandler([e],"onAutoCompleteComplete",t,C)}catch(u){this._errorHandler(u,z,C)}},onAutoCompleteComplete:function(){},
reshape:function(e,b,p,t){var z=e.spatialReference;e=x.mixin({},this._url.query,{f:"json",sr:r.toJson(z.toJson()),target:r.toJson({geometryType:m.getJsonType(e),geometry:e.toJson()}),reshaper:r.toJson(b.toJson())});var C=this._reshapeHandler,y=this._errorHandler,D=new h(f._dfdCanceller);D._pendingDfd=n({url:this._url.path+"/reshape",content:e,callbackParamName:"callback",load:function(B,u){C(B,u,z,p,t,D)},error:function(B){y(B,t,D)}});return D},_reshapeHandler:function(e,b,p,t,z,C){try{var y=m.fromJson(e.geometry).setSpatialReference(p);
this._successHandler([y],"onReshapeComplete",t,C)}catch(D){this._errorHandler(D,z,C)}},onReshapeComplete:function(){},cut:function(e,b,p,t){var z=e[0].spatialReference,C=c.map(e,function(u){return u.toJson()});e=x.mixin({},this._url.query,{f:"json",sr:r.toJson(z.toJson()),target:r.toJson({geometryType:m.getJsonType(e[0]),geometries:C}),cutter:r.toJson(b.toJson())});var y=this._cutHandler,D=this._errorHandler,B=new h(f._dfdCanceller);B._pendingDfd=n({url:this._url.path+"/cut",content:e,callbackParamName:"callback",
load:function(u,E){y(u,E,z,p,t,B)},error:function(u){D(u,t,B)}});return B},_cutHandler:function(e,b,p,t,z,C){try{var y=e.geometries,D={};D.cutIndexes=e.cutIndexes;D.geometries=[];c.forEach(y,function(B){D.geometries.push(m.fromJson(B).setSpatialReference(p))});this._successHandler([D],"onCutComplete",t,C)}catch(B){this._errorHandler(B,z,C)}},onCutComplete:function(){},intersect:function(e,b,p,t){var z=e[0].spatialReference;e=x.mixin({},this._url.query,{f:"json",sr:r.toJson(z.toJson()),geometries:r.toJson(this._encodeGeometries(e)),
geometry:r.toJson({geometryType:m.getJsonType(b),geometry:b.toJson()})});var C=this._intersectHandler,y=this._errorHandler,D=new h(f._dfdCanceller);D._pendingDfd=n({url:this._url.path+"/intersect",content:e,callbackParamName:"callback",load:function(B,u){C(B,u,z,p,t,D)},error:function(B){y(B,t,D)}});return D},_intersectHandler:function(e,b,p,t,z,C){try{var y=[];c.forEach(e.geometries,function(D){y.push(m.fromJson(D).setSpatialReference(p))});this._successHandler([y],"onIntersectComplete",t,C)}catch(D){this._errorHandler(D,
z,C)}},onIntersectComplete:function(){},difference:function(e,b,p,t){var z=e[0].spatialReference;e=x.mixin({},this._url.query,{f:"json",sr:r.toJson(z.toJson()),geometries:r.toJson(this._encodeGeometries(e)),geometry:r.toJson({geometryType:m.getJsonType(b),geometry:b.toJson()})});var C=this._differenceHandler,y=this._errorHandler,D=new h(f._dfdCanceller);D._pendingDfd=n({url:this._url.path+"/difference",content:e,callbackParamName:"callback",load:function(B,u){C(B,u,z,p,t,D)},error:function(B){y(B,
t,D)}});return D},_differenceHandler:function(e,b,p,t,z,C){try{var y=[];c.forEach(e.geometries,function(D){y.push(m.fromJson(D).setSpatialReference(p))});this._successHandler([y],"onDifferenceComplete",t,C)}catch(D){this._errorHandler(D,z,C)}},onDifferenceComplete:function(){},buffer:function(e,b,p){var t=x.mixin({},this._url.query,{f:"json"},e.toJson()),z=e.outSpatialReference||e.geometries[0].spatialReference,C=this._bufferHandler,y=this._errorHandler,D=new h(f._dfdCanceller);D._pendingDfd=n({url:this._url.path+
"/buffer",content:t,callbackParamName:"callback",load:function(B,u){C(B,u,z,b,p,D)},error:function(B){y(B,p,D)}});return D},_bufferHandler:function(e,b,p,t,z,C){try{var y=e.geometries;e=[];var D,B=y.length;for(D=0;D<B;D++)e[D]=new k({spatialReference:p,rings:y[D].rings});this._successHandler([e],"onBufferComplete",t,C)}catch(u){this._errorHandler(u,z,C)}},onBufferComplete:function(){},areasAndLengths:function(e,b,p){e=x.mixin({},this._url.query,{f:"json"},e.toJson());var t=this._areasAndLengthsHandler,
z=this._errorHandler,C=new h(f._dfdCanceller);C._pendingDfd=n({url:this._url.path+"/areasAndLengths",content:e,callbackParamName:"callback",load:function(y,D){t(y,D,b,p,C)},error:function(y){z(y,p,C)}});return C},_areasAndLengthsHandler:function(e,b,p,t,z){try{this._successHandler([e],"onAreasAndLengthsComplete",p,z)}catch(C){this._errorHandler(C,t,z)}},onAreasAndLengthsComplete:function(){},lengths:function(e,b,p){e=x.mixin({},this._url.query,{f:"json"},e.toJson());var t=this._lengthsHandler,z=this._errorHandler,
C=new h(f._dfdCanceller);C._pendingDfd=n({url:this._url.path+"/lengths",content:e,callbackParamName:"callback",load:function(y,D){t(y,D,b,p,C)},error:function(y){z(y,p,C)}});return C},_lengthsHandler:function(e,b,p,t,z){try{this._successHandler([e],"onLengthsComplete",p,z)}catch(C){this._errorHandler(C,t,z)}},onLengthsComplete:function(){},labelPoints:function(e,b,p){var t=c.map(e,function(B){return B.toJson()}),z=e[0].spatialReference;t=x.mixin({},this._url.query,{f:"json",sr:z.wkid?z.wkid:r.toJson(z.toJson()),
polygons:r.toJson(t)});var C=this._labelPointsHandler,y=this._errorHandler,D=new h(f._dfdCanceller);D._pendingDfd=n({url:this._url.path+"/labelPoints",content:t,callbackParamName:"callback",load:function(B,u){C(B,u,e,z,b,p,D)},error:function(B){y(B,p,D)}});return D},_labelPointsHandler:function(e,b,p,t,z,C,y){try{var D=[];c.forEach(e.labelPoints,function(B){D.push(m.fromJson(B).setSpatialReference(t))});this._successHandler([D],"onLabelPointsComplete",z,y)}catch(B){this._errorHandler(B,C,y)}},onLabelPointsComplete:function(){},
relation:function(e,b,p){e=x.mixin({},this._url.query,{f:"json"},e.toJson());var t=this._relationHandler,z=this._errorHandler,C=new h(f._dfdCanceller);C._pendingDfd=n({url:this._url.path+"/relation",content:e,callbackParamName:"callback",load:function(y,D){t(y,D,b,p,C)},error:function(y){z(y,p,C)}});return C},_relationHandler:function(e,b,p,t,z){try{this._successHandler([e.relations],"onRelationComplete",p,z)}catch(C){this._errorHandler(C,t,z)}},onRelationComplete:function(){},trimExtend:function(e,
b,p){var t=x.mixin({},this._url.query,{f:"json"},e.toJson()),z=e.sr,C=this._trimExtendHandler,y=this._errorHandler,D=new h(f._dfdCanceller);D._pendingDfd=n({url:this._url.path+"/trimExtend",content:t,callbackParamName:"callback",load:function(B,u){C(B,u,z,b,p,D)},error:function(B){y(B,p,D)}});return D},_trimExtendHandler:function(e,b,p,t,z,C){try{var y=e.geometries;e=[];var D,B=y.length;for(D=0;D<B;D++)e[D]=new d({spatialReference:p,paths:y[D].paths});this._successHandler([e],"onTrimExtendComplete",
t,C)}catch(u){this._errorHandler(u,z,C)}},onTrimExtendComplete:function(){},densify:function(e,b,p){var t=x.mixin({},this._url.query,{f:"json"},e.toJson()),z=e.geometries[0].spatialReference,C=this._densifyHandler,y=this._errorHandler,D=new h(f._dfdCanceller);D._pendingDfd=n({url:this._url.path+"/densify",content:t,callbackParamName:"callback",load:function(B,u){C(B,u,z,b,p,D)},error:function(B){y(B,p,D)}});return D},_densifyHandler:function(e,b,p,t,z,C){try{var y=[];c.forEach(e.geometries,function(D){y.push(m.fromJson(D).setSpatialReference(p))});
this._successHandler([y],"onDensifyComplete",t,C)}catch(D){this._errorHandler(D,z,C)}},onDensifyComplete:function(){},generalize:function(e,b,p){var t=x.mixin({},this._url.query,{f:"json"},e.toJson()),z=e.geometries[0].spatialReference,C=this._generalizeHandler,y=this._errorHandler,D=new h(f._dfdCanceller);D._pendingDfd=n({url:this._url.path+"/generalize",content:t,callbackParamName:"callback",load:function(B,u){C(B,u,z,b,p,D)},error:function(B){y(B,p,D)}});return D},_generalizeHandler:function(e,
b,p,t,z,C){try{var y=[];c.forEach(e.geometries,function(D){y.push(m.fromJson(D).setSpatialReference(p))});this._successHandler([y],"onGeneralizeComplete",t,C)}catch(D){this._errorHandler(D,z,C)}},onGeneralizeComplete:function(){},offset:function(e,b,p){var t=x.mixin({},this._url.query,{f:"json"},e.toJson()),z=e.geometries[0].spatialReference,C=this._offsetHandler,y=this._errorHandler,D=new h(f._dfdCanceller);D._pendingDfd=n({url:this._url.path+"/offset",content:t,callbackParamName:"callback",load:function(B,
u){C(B,u,z,b,p,D)},error:function(B){y(B,p,D)}});return D},_offsetHandler:function(e,b,p,t,z,C){try{var y=[];c.forEach(e.geometries,function(D){y.push(m.fromJson(D).setSpatialReference(p))});this._successHandler([y],"onOffsetComplete",t,C)}catch(D){this._errorHandler(D,z,C)}},onOffsetComplete:function(){},distance:function(e,b,p){var t=x.mixin({},this._url.query,{f:"json"},e.toJson()),z=e.geometry1.spatialReference,C=this._distanceHandler,y=this._errorHandler,D=new h(f._dfdCanceller);D._pendingDfd=
n({url:this._url.path+"/distance",content:t,callbackParamName:"callback",load:function(B,u){C(B,u,z,b,p,D)},error:function(B){y(B,p,D)}});return D},_distanceHandler:function(e,b,p,t,z,C){try{e=e&&e.distance,this._successHandler([e],"onDistanceComplete",t,C)}catch(y){this._errorHandler(y,z,C)}},onDistanceComplete:function(){},toGeoCoordinateString:function(e,b,p){var t={};x.isObject(e.sr)?t.sr=e.sr.wkid||r.toJson(e.sr.toJson()):t.sr=e.sr;t.coordinates=r.toJson(e.coordinates);t.conversionType=e.conversionType||
"MGRS";t.conversionMode=e.conversionMode;t.numOfDigits=e.numOfDigits;t.rounding=e.rounding;t.addSpaces=e.addSpaces;e=x.mixin({},this._url.query,{f:"json"},t);var z=this._toGeoCoordinateHandler,C=this._errorHandler,y=new h(f._dfdCanceller);y._pendingDfd=n({url:this._url.path+"/toGeoCoordinateString",content:e,callbackParamName:"callback",load:function(D,B){z(D,B,b,p,y)},error:function(D){C(D,p,y)}});return y},_toGeoCoordinateHandler:function(e,b,p,t,z){try{this._successHandler([e.strings],"onToGeoCoordinateStringComplete",
p,z)}catch(C){this._errorHandler(C,t,z)}},onToGeoCoordinateStringComplete:function(){},fromGeoCoordinateString:function(e,b,p){var t={};x.isObject(e.sr)?t.sr=e.sr.wkid||r.toJson(e.sr.toJson()):t.sr=e.sr;t.strings=r.toJson(e.strings);t.conversionType=e.conversionType||"MGRS";t.conversionMode=e.conversionMode;e=x.mixin({},this._url.query,{f:"json"},t);var z=this._fromGeoCoordinateHandler,C=this._errorHandler,y=new h(f._dfdCanceller);y._pendingDfd=n({url:this._url.path+"/fromGeoCoordinateString",content:e,
callbackParamName:"callback",load:function(D,B){z(D,B,b,p,y)},error:function(D){C(D,p,y)}});return y},_fromGeoCoordinateHandler:function(e,b,p,t,z){try{this._successHandler([e.coordinates],"onToGeoCoordinateStringComplete",p,z)}catch(C){this._errorHandler(C,t,z)}},onFromGeoCoordinateStringComplete:function(){}});x.mixin(G,{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"});w("extend-esri")&&x.setObject("tasks.GeometryService",G,q);return G})},"url:dijit/form/templates/Button.html":'\x3cspan class\x3d"dijit dijitReset dijitInline" role\x3d"presentation"\r\n\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonNode"\r\n\t\tdata-dojo-attach-event\x3d"ondijitclick:__onClick" role\x3d"presentation"\r\n\t\t\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents"\r\n\t\t\tdata-dojo-attach-point\x3d"titleNode,focusNode"\r\n\t\t\trole\x3d"button" aria-labelledby\x3d"${id}_label"\r\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\r\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitToggleButtonIconChar"\x3e\x26#x25CF;\x3c/span\r\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonText"\r\n\t\t\t\tid\x3d"${id}_label"\r\n\t\t\t\tdata-dojo-attach-point\x3d"containerNode"\r\n\t\t\t\x3e\x3c/span\r\n\t\t\x3e\x3c/span\r\n\t\x3e\x3c/span\r\n\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" class\x3d"dijitOffScreen"\r\n\t\tdata-dojo-attach-event\x3d"onclick:_onClick"\r\n\t\ttabIndex\x3d"-1" aria-hidden\x3d"true" data-dojo-attach-point\x3d"valueNode"\r\n/\x3e\x3c/span\x3e\r\n',
"url:dijit/form/templates/DropDownButton.html":'\x3cspan class\x3d"dijit dijitReset dijitInline"\r\n\t\x3e\x3cspan class\x3d\'dijitReset dijitInline dijitButtonNode\'\r\n\t\tdata-dojo-attach-event\x3d"ondijitclick:__onClick" data-dojo-attach-point\x3d"_buttonNode"\r\n\t\t\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents"\r\n\t\t\tdata-dojo-attach-point\x3d"focusNode,titleNode,_arrowWrapperNode,_popupStateNode"\r\n\t\t\trole\x3d"button" aria-haspopup\x3d"true" aria-labelledby\x3d"${id}_label"\r\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon"\r\n\t\t\t\tdata-dojo-attach-point\x3d"iconNode"\r\n\t\t\t\x3e\x3c/span\r\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonText"\r\n\t\t\t\tdata-dojo-attach-point\x3d"containerNode"\r\n\t\t\t\tid\x3d"${id}_label"\r\n\t\t\t\x3e\x3c/span\r\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitArrowButtonInner"\x3e\x3c/span\r\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitArrowButtonChar"\x3e\x26#9660;\x3c/span\r\n\t\t\x3e\x3c/span\r\n\t\x3e\x3c/span\r\n\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" class\x3d"dijitOffScreen" tabIndex\x3d"-1"\r\n\t\tdata-dojo-attach-event\x3d"onclick:_onClick" data-dojo-attach-point\x3d"valueNode" aria-hidden\x3d"true"\r\n/\x3e\x3c/span\x3e\r\n',
"url:dijit/form/templates/ComboButton.html":'\x3ctable class\x3d"dijit dijitReset dijitInline dijitLeft"\r\n\tcellspacing\x3d\'0\' cellpadding\x3d\'0\' role\x3d"presentation"\r\n\t\x3e\x3ctbody role\x3d"presentation"\x3e\x3ctr role\x3d"presentation"\r\n\t\t\x3e\x3ctd class\x3d"dijitReset dijitStretch dijitButtonNode" data-dojo-attach-point\x3d"buttonNode" data-dojo-attach-event\x3d"ondijitclick:__onClick,onkeydown:_onButtonKeyDown"\r\n\t\t\x3e\x3cdiv id\x3d"${id}_button" class\x3d"dijitReset dijitButtonContents"\r\n\t\t\tdata-dojo-attach-point\x3d"titleNode"\r\n\t\t\trole\x3d"button" aria-labelledby\x3d"${id}_label"\r\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitInline dijitIcon" data-dojo-attach-point\x3d"iconNode" role\x3d"presentation"\x3e\x3c/div\r\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitInline dijitButtonText" id\x3d"${id}_label" data-dojo-attach-point\x3d"containerNode" role\x3d"presentation"\x3e\x3c/div\r\n\t\t\x3e\x3c/div\r\n\t\t\x3e\x3c/td\r\n\t\t\x3e\x3ctd id\x3d"${id}_arrow" class\x3d\'dijitReset dijitRight dijitButtonNode dijitArrowButton\'\r\n\t\t\tdata-dojo-attach-point\x3d"_popupStateNode,focusNode,_buttonNode"\r\n\t\t\tdata-dojo-attach-event\x3d"onkeydown:_onArrowKeyDown"\r\n\t\t\ttitle\x3d"${optionsTitle}"\r\n\t\t\trole\x3d"button" aria-haspopup\x3d"true"\r\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitArrowButtonInner" role\x3d"presentation"\x3e\x3c/div\r\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitArrowButtonChar" role\x3d"presentation"\x3e\x26#9660;\x3c/div\r\n\t\t\x3e\x3c/td\r\n\t\t\x3e\x3ctd style\x3d"display:none !important;"\r\n\t\t\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" data-dojo-attach-point\x3d"valueNode"\r\n\t\t\t\tclass\x3d"dijitOffScreen" aria-hidden\x3d"true" data-dojo-attach-event\x3d"onclick:_onClick"\r\n\t\t/\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/tbody\r\n\x3e\x3c/table\x3e\r\n',
"url:dijit/templates/TooltipDialog.html":'\x3cdiv role\x3d"alertdialog" tabIndex\x3d"-1"\x3e\r\n\t\x3cdiv class\x3d"dijitTooltipContainer" role\x3d"presentation"\x3e\r\n\t\t\x3cdiv data-dojo-attach-point\x3d"contentsNode" class\x3d"dijitTooltipContents dijitTooltipFocusNode"\x3e\r\n\t\t\t\x3cdiv data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\r\n\t\t\t${!actionBarTemplate}\r\n\t\t\x3c/div\x3e\r\n\t\x3c/div\x3e\r\n\t\x3cdiv class\x3d"dijitTooltipConnector" role\x3d"presentation" data-dojo-attach-point\x3d"connectorNode"\x3e\x3c/div\x3e\r\n\x3c/div\x3e\r\n',
"url:esri/core/request/iframe.html":'\x3c!DOCTYPE html\x3e\r\n\x3chtml\x3e\r\n\x3chead\x3e\r\n  \x3cmeta http-equiv\x3d"Content-Security-Policy" content\x3d"default-src \'none\'; script-src * \'unsafe-inline\'"\x3e\r\n\r\n  \x3cscript\x3e\r\n    var dojoConfig \x3d {\r\n      async: true,\r\n      baseUrl: "../../../dojo/",\r\n      has: {\r\n        "csp-restrictions": true,\r\n        "dojo-preload-i18n-Api": false\r\n      }\r\n    };\r\n  \x3c/script\x3e\r\n  \x3c!--\r\n  This src is relative to this page and assumes dojo is a sibling to esri.\r\n  It is updated when this file is set as the iframe\'s `srcdoc` value.\r\n  --\x3e\r\n  \x3cscript src\x3d"../../../dojo/dojo.js"\x3e\x3c/script\x3e\r\n\r\n  \x3cscript\x3e\r\n    function windowMessageHandler(event) {\r\n      window.removeEventListener("message", windowMessageHandler);\r\n\r\n      if (window.origin !\x3d\x3d "null") {\r\n        return; // page is not in an iframe sandbox\r\n      }\r\n\r\n      var port \x3d event.ports[0];\r\n\r\n      require([\r\n        "dojo/request/script"\r\n      ], function(script) {\r\n        port.postMessage("ready");\r\n\r\n        port.addEventListener("message", function(event) {\r\n          var data \x3d event.data;\r\n          script.get(data.url, data.options)\r\n              .then(function(response) {\r\n                port.postMessage({\r\n                  id: data.id,\r\n                  response: response\r\n                });\r\n              })\r\n              .otherwise(function(error) {\r\n                port.postMessage({\r\n                  id: data.id,\r\n                  isError: true,\r\n                  message: error.message\r\n                });\r\n              });\r\n        });\r\n        port.start();\r\n      });\r\n    }\r\n\r\n    window.addEventListener("message", windowMessageHandler);\r\n  \x3c/script\x3e\r\n\x3c/head\x3e\r\n\x3cbody\x3e\r\n\x3c/body\x3e\r\n\x3c/html\x3e\r\n',
"url:dijit/templates/Dialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"${id}_title"\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\r\n\t\t\x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" id\x3d"${id}_title"\r\n\t\t\t\trole\x3d"heading" level\x3d"1"\x3e\x3c/span\x3e\r\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon" data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"${buttonCancel}" role\x3d"button" tabindex\x3d"-1"\x3e\r\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"${buttonCancel}"\x3ex\x3c/span\x3e\r\n\t\t\x3c/span\x3e\r\n\t\x3c/div\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\x3c/div\x3e\r\n\t${!actionBarTemplate}\r\n\x3c/div\x3e\r\n\r\n',
"url:dijit/form/templates/TextBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft" id\x3d"widget_${id}" role\x3d"presentation"\r\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\r\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputInner" data-dojo-attach-point\x3d\'textbox,focusNode\' autocomplete\x3d"off"\r\n\t\t\t${!nameAttrSetting} type\x3d\'${type}\'\r\n\t/\x3e\x3c/div\r\n\x3e\x3c/div\x3e\r\n',"url:dijit/templates/Tooltip.html":'\x3cdiv class\x3d"dijitTooltip dijitTooltipLeft" id\x3d"dojoTooltip" data-dojo-attach-event\x3d"mouseenter:onMouseEnter,mouseleave:onMouseLeave"\r\n\t\x3e\x3cdiv class\x3d"dijitTooltipConnector" data-dojo-attach-point\x3d"connectorNode"\x3e\x3c/div\r\n\t\x3e\x3cdiv class\x3d"dijitTooltipContainer dijitTooltipContents" data-dojo-attach-point\x3d"containerNode" role\x3d\'alert\'\x3e\x3c/div\r\n\x3e\x3c/div\x3e\r\n',
"url:dijit/form/templates/ValidationTextBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft"\r\n\tid\x3d"widget_${id}" role\x3d"presentation"\r\n\t\x3e\x3cdiv class\x3d\'dijitReset dijitValidationContainer\'\r\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"\r\n\t/\x3e\x3c/div\r\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\r\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputInner" data-dojo-attach-point\x3d\'textbox,focusNode\' autocomplete\x3d"off"\r\n\t\t\t${!nameAttrSetting} type\x3d\'${type}\'\r\n\t/\x3e\x3c/div\r\n\x3e\x3c/div\x3e\r\n',
"*now":function(G){G(['dojo/i18n!*preload*esri/nls/jsapi*["ar","bg","bs","ca","cs","da","de","de-ch","el","en-au","en-ca","en-gb","en-us","es","es-mx","et","fi","fr","fr-ch","he","hr","hu","id","it","it-ch","ja","ko","lt","lv","nl","nb","pl","pt","pt-br","pt-pt","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-cn","zh-hk","zh-tw","ROOT"]'])},"*noref":1}});
define("esri/jsapi","dojo/fx/Toggler dojo/_base/html dijit/_base dijit/form/DropDownButton dijit/form/ComboButton dijit/form/ToggleButton dijit/_base/manager dijit/TooltipDialog ./main ./map ./geometry ./symbol ./renderer ./utils ./IdentityManager ./layers/graphics ./layers/agstiled ./layers/agsdynamic ./layers/FeatureLayer ./dijit/PopupTemplate ./dijit/PopupRenderer ./dijit/Attribution ./arcgis/utils ./tasks/query ./tasks/QueryTask ./tasks/RelationshipQuery ./tasks/StatisticDefinition".split(" "),function(){return{}});