//>>built
(function(u,A){var x,r=function(){return"undefined"!==typeof n&&"function"!==typeof n?n:"undefined"!==typeof window?window:"undefined"!==typeof self?self:this}(),h=function(){},e=function(O){for(var U in O)return 0;return 1},g={}.toString,d=function(O){return"[object Function]"==g.call(O)},b=function(O){return"[object String]"==g.call(O)},a=function(O){return"[object Array]"==g.call(O)},c=function(O,U){if(O)for(var V=0;V<O.length;)U(O[V++])},f=function(O,U){for(var V in U)O[V]=U[V];return O},k=function(O,
U){return f(Error(O),{src:"dojoLoader",info:U})},m=1,p=function(){return"_"+m++},l=function(O,U,V){return eb(O,U,V,0,l)},n=r,q=n.document,w=q&&q.createElement("DiV"),t=l.has=function(O){return d(v[O])?v[O]=v[O](n,q,w):v[O]},v=t.cache=A.hasCache;d(u)&&(u=u(r));t.add=function(O,U,V,W){(void 0===v[O]||W)&&(v[O]=U);return V&&t(O)};t.add("host-webworker","undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);t("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(O,U){try{importScripts(O),U()}catch(V){}}});for(var y in u.has)t.add(y,u.has[y],0,1);var z=0,C=[],G=0,B=h,D=h;l.isXdUrl=h;l.initSyncLoader=function(O,U,V){G||(G=O,B=U,D=V);return{sync:"sync",requested:1,arrived:2,nonmodule:3,executing:4,executed:5,syncExecStack:C,modules:Z,execQ:ka,getModule:pa,injectModule:Ia,setArrived:ua,signal:N,finishExec:ya,execModule:za,dojoRequirePlugin:G,getLegacyMode:function(){return z},
guardCheckComplete:Aa}};var E=location.protocol,J=location.host;l.isXdUrl=function(O){return/^\./.test(O)?!1:/^\/\//.test(O)?!0:(O=O.match(/^([^\/:]+:)\/+([^\/]+)/))&&(O[1]!=E||J&&O[2]!=J)};t.add("dojo-force-activex-xhr",!q.addEventListener&&"file:"==window.location.protocol);t.add("native-xhr","undefined"!=typeof XMLHttpRequest);if(t("native-xhr")&&!t("dojo-force-activex-xhr"))var I=function(){return new XMLHttpRequest};else{var F=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];for(x=
0;3>x;)try{var H=F[x++];new ActiveXObject(H);break}catch(O){}I=function(){return new ActiveXObject(H)}}l.getXhr=I;t.add("dojo-gettext-api",1);l.getText=function(O,U,V){var W=I();W.open("GET",Ja(O),!1);W.send(null);if(200==W.status||!location.host&&!W.status)V&&V(W.responseText,U);else throw k("xhrFailed",W.status);return W.responseText};var K=t("csp-restrictions")?function(){}:new Function("return eval(arguments[0]);");l.eval=function(O,U){return K(O+"\r\n//# sourceURL\x3d"+U)};var L={},N=l.signal=
function(O,U){var V=L[O];c(V&&V.slice(0),function(W){W.apply(null,a(U)?U:[U])})},Q=l.on=function(O,U){var V=L[O]||(L[O]=[]);V.push(U);return{remove:function(){for(var W=0;W<V.length;W++)if(V[W]===U){V.splice(W,1);break}}}},P=[],S={},M=[],R={},T=l.map={},X=[],Z={},da="",ba={},fa={},ca={},ia=0;if(!t("foreign-loader"))var ha=function(O,U){U=!1!==U;var V,W;for(V in fa){var Y=fa[V];if(W=V.match(/^url:(.+)/))ba["url:"+fb(W[1],O)]=Y;else if("*now"==V)var aa=Y;else"*noref"!=V&&(W=Ba(V,O,!0),ba[W.mid]=ba["url:"+
W.url]=Y)}aa&&aa(Va(O));U&&(fa={})};var qa=function(O){return O.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(U){return"\\"+U})},na=function(O,U){U.splice(0,U.length);for(var V in O)U.push([V,O[V],new RegExp("^"+qa(V)+"(/|$)"),V.length]);U.sort(function(W,Y){return Y[3]-W[3]});return U},ja=function(O,U){c(O,function(V){U.push([b(V[0])?new RegExp("^"+qa(V[0])+"$"):V[0],V[1]])})},gb=function(O){var U=O.name;U||(U=O,O={name:U});O=f({main:"main"},O);O.location=O.location?O.location:U;O.packageMap&&
(T[U]=O.packageMap);O.main.indexOf("./")||(O.main=O.main.substring(2));R[U]=O},hb=[],Ca=function(O,U,V){for(var W in O){"waitSeconds"==W&&(l.waitms=1E3*(O[W]||0));"cacheBust"==W&&(da=O[W]?b(O[W])?O[W]:(new Date).getTime()+"":"");if("baseUrl"==W||"combo"==W)l[W]=O[W];if("async"==W){var Y=O[W];l.legacyMode=z=b(Y)&&/sync|legacyAsync/.test(Y)?Y:Y?!1:"sync";l.async=!z}O[W]!==v&&(l.rawConfig[W]=O[W],"has"!=W&&t.add("config-"+W,O[W],0,U))}l.baseUrl||(l.baseUrl="./");/\/$/.test(l.baseUrl)||(l.baseUrl+="/");
for(W in O.has)t.add(W,O.has[W],0,U);c(O.packages,gb);for(var aa in O.packagePaths)c(O.packagePaths[aa],function(ea){var la=aa+"/"+ea;b(ea)&&(ea={name:ea});ea.location=la;gb(ea)});na(f(T,O.map),X);c(X,function(ea){ea[1]=na(ea[1],[]);"*"==ea[0]&&(X.star=ea)});na(f(S,O.paths),M);ja(O.aliases,P);if(!t("foreign-loader")){if(U)hb.push({config:O.config});else for(W in O.config)U=pa(W,V),U.config=f(U.config||{},O.config[W]);O.cache&&(ha(),fa=O.cache,ha(0,!!O.cache["*noref"]))}N("config",[O,l.rawConfig])};
t("dojo-cdn");var Ka=q.getElementsByTagName("script");x=0;for(var ra,va,La,Da;x<Ka.length;)if(ra=Ka[x++],(La=ra.getAttribute("src"))&&(Da=La.match(/(((.*)\/)|^)dojo\.js(\W|$)/i))&&(va=Da[3]||"",A.baseUrl=A.baseUrl||va,ia=ra),La=ra.getAttribute("data-dojo-config")||ra.getAttribute("djConfig"))ca=l.eval("({ "+La+" })","data-dojo-config"),ia=ra;l.rawConfig={};Ca(A,1);t("dojo-cdn")&&((R.dojo.location=va)&&(va+="/"),R.dijit.location=va+"../dijit/",R.dojox.location=va+"../dojox/");Ca(u,1);Ca(ca,1);if(!t("foreign-loader"))var Ea=
function(O){Aa(function(){c(O.deps,Ia)})},eb=function(O,U,V,W,Y){var aa;if(b(O)){if((aa=pa(O,W,!0))&&aa.executed)return aa.result;throw k("undefinedModule",O);}a(O)||(Ca(O,0,W),O=U,U=V);if(a(O))if(O.length){V="require*"+p();for(var ea,la=[],sa=0;sa<O.length;)ea=O[sa++],la.push(pa(ea,W));aa=f(Ma("",V,0,""),{injected:2,deps:la,def:U||h,require:W?W.require:l,gc:1});Z[aa.mid]=aa;Ea(aa);var Wa=Fa&&"sync"!=z;Aa(function(){za(aa,Wa)});aa.executed||ka.push(aa);wa()}else U&&U();return Y},Va=function(O){if(!O)return l;
var U=O.require;U||(U=function(V,W,Y){return eb(V,W,Y,O,U)},O.require=f(U,l),U.module=O,U.toUrl=function(V){return fb(V,O)},U.toAbsMid=function(V){return Xa(V,O)},U.syncLoadNls=function(V){V=Ba(V,O);var W=Z[V.mid];if(!W||!W.executed)if(ta=ba[V.mid]||ba["url:"+V.url])Na(ta),W=Z[V.mid];return W&&W.executed&&W.result});return U},ka=[],Oa=[],ma={},ub=function(O){O.injected=1;ma[O.mid]=1;O.url&&(ma[O.url]=O.pack||1);ib()},ua=function(O){O.injected=2;delete ma[O.mid];O.url&&delete ma[O.url];e(ma)&&(Pa(),
"xd"==z&&(z="sync"))},vb=l.idle=function(){return!Oa.length&&e(ma)&&!ka.length&&!Fa};var Qa=function(O,U){if(U)for(var V=0;V<U.length;V++)if(U[V][2].test(O))return U[V];return 0},jb=function(O){var U=[];for(O=O.replace(/\\/g,"/").split("/");O.length;){var V=O.shift();if(".."==V&&U.length&&".."!=W){U.pop();var W=U[U.length-1]}else"."!=V&&U.push(W=V)}return U.join("/")},Ma=function(O,U,V,W){var Y=l.isXdUrl(W);return{pid:O,mid:U,pack:V,url:W,executed:0,def:0,isXd:Y,isAmd:!!(Y||R[O]&&R[O].isAmd)}},mb=
function(O,U,V,W,Y,aa,ea,la,sa,Wa){var xa,kb,oa;var Ya=/^\./.test(O);if(/(^\/)|(:)|(\.js$)/.test(O)||Ya&&!U)return Ma(0,O,0,O);O=jb(Ya?U.mid+"/../"+O:O);if(/^\./.test(O))throw k("irrationalPath",O);Wa||Ya||!aa.star||(oa=Qa(O,aa.star[1]));!oa&&U&&(oa=(oa=Qa(U.mid,aa))&&Qa(O,oa[1]));oa&&(O=oa[1]+O.substring(oa[3]));U=(Da=O.match(/^([^\/]+)(\/(.+))?$/))?Da[1]:"";(xa=V[U])?O=U+"/"+(kb=Da[3]||xa.main):U="";var Za=0;c(la,function(Ga){var lb=O.match(Ga[0]);lb&&0<lb.length&&(Za=d(Ga[1])?O.replace(Ga[0],Ga[1]):
Ga[1])});if(Za)return mb(Za,0,V,W,Y,aa,ea,la,sa);if(V=W[O])return sa?Ma(V.pid,V.mid,V.pack,V.url):W[O];W=(oa=Qa(O,ea))?oa[1]+O.substring(oa[3]):U?("/"===xa.location.slice(-1)?xa.location.slice(0,-1):xa.location)+"/"+kb:t("config-tlmSiblingOfDojo")?"../"+O:O;/(^\/)|(:)/.test(W)||(W=Y+W);return Ma(U,O,xa,jb(W+".js"))},Ba=function(O,U,V){return mb(O,U,R,Z,l.baseUrl,X,M,P,void 0,V)};if(!t("foreign-loader"))var nb=function(O,U,V){return O.normalize?O.normalize(U,function(W){return Xa(W,V)}):Xa(U,V)},ob=
0,pa=function(O,U,V){var W;if(W=O.match(/^(.+?)!(.*)$/)){var Y=pa(W[1],U,V);"sync"!=z||Y.executed||(Ia(Y),2!==Y.injected||Y.executed||Aa(function(){za(Y)}),Y.executed?Ra(Y):ka.unshift(Y));5!==Y.executed||Y.load||Ra(Y);Y.load?(W=nb(Y,W[2],U),O=Y.mid+"!"+(Y.dynamic?++ob+"!":"")+W):(W=W[2],O=Y.mid+"!"+ ++ob+"!waitingForPlugin");O={plugin:Y,mid:O,req:Va(U),prid:W}}else O=Ba(O,U);return Z[O.mid]||!V&&(Z[O.mid]=O)};var Xa=l.toAbsMid=function(O,U){return Ba(O,U).mid},fb=l.toUrl=function(O,U){var V=Ba(O+
"/x",U),W=V.url;return Ja(0===V.pid?O:W.substring(0,W.length-5))};if(!t("foreign-loader"))var pb={injected:2,executed:5,def:3,result:3},$a=function(O){return Z[O]=f({mid:O},pb)},wb=$a("require"),xb=$a("exports"),yb=$a("module"),Sa={},ab=0,Ra=function(O){var U=O.result;O.dynamic=U.dynamic;O.normalize=U.normalize;O.load=U.load;return O},zb=function(O){var U={};c(O.loadQ,function(Y){var aa=nb(O,Y.prid,Y.req.module),ea=O.dynamic?Y.mid.replace(/waitingForPlugin$/,aa):O.mid+"!"+aa;aa=f(f({},Y),{mid:ea,
prid:aa,injected:0});Z[ea]&&Z[ea].injected||qb(Z[ea]=aa);U[Y.mid]=Z[ea];ua(Y);delete Z[Y.mid]});O.loadQ=0;var V=function(Y){for(var aa=Y.deps||[],ea=0;ea<aa.length;ea++)(Y=U[aa[ea].mid])&&(aa[ea]=Y)},W;for(W in Z)V(Z[W]);c(ka,V)},ya=function(O){l.trace("loader-finish-exec",[O.mid]);O.executed=5;O.defOrder=ab++;c(O.provides,function(U){U()});O.loadQ&&(Ra(O),zb(O));for(x=0;x<ka.length;)ka[x]===O?ka.splice(x,1):x++;/^require\*/.test(O.mid)&&delete Z[O.mid]},Ab=[],za=function(O,U){if(4===O.executed)return l.trace("loader-circular-dependency",
[Ab.concat(O.mid).join("-\x3e")]),!O.def||U?Sa:O.cjs&&O.cjs.exports;if(!O.executed){if(!O.def)return Sa;var V=O.mid,W=O.deps||[],Y,aa=[],ea=0;for(O.executed=4;Y=W[ea++];){Y=Y===wb?Va(O):Y===xb?O.cjs.exports:Y===yb?O.cjs:za(Y,U);if(Y===Sa)return O.executed=0,l.trace("loader-exec-module",["abort",V]),Sa;aa.push(Y)}l.trace("loader-run-factory",[O.mid]);V=O.def;C.unshift(O);if(t("config-dojo-loader-catches"))try{var la=d(V)?V.apply(null,aa):V}catch(sa){N("error",O.result=k("factoryThrew",[O,sa]))}else la=
d(V)?V.apply(null,aa):V;O.result=void 0===la&&O.cjs?O.cjs.exports:la;C.shift(O);ya(O)}return O.result},Fa=0,Aa=function(O){try{Fa++,O()}catch(U){throw U;}finally{Fa--}vb()&&N("idle",[])},wa=function(){Fa||Aa(function(){B();for(var O,U,V=0;V<ka.length;)O=ab,U=ka[V],za(U),O!=ab?(B(),V=0):V++})};var Ja="function"==typeof u.fixupUrl?u.fixupUrl:function(O){O+="";return O+(da?(/\?/.test(O)?"\x26":"?")+da:"")};void 0===t("dojo-loader-eval-hint-url")&&t.add("dojo-loader-eval-hint-url",1);var qb=function(O){var U=
O.plugin;5!==U.executed||U.load||Ra(U);var V=function(W){O.result=W;ua(O);ya(O);wa()};U.load?U.load(O.prid,O.req,V):U.loadQ?U.loadQ.push(O):(U.loadQ=[O],ka.unshift(U),Ia(U))},ta=0,Ha=0,bb=0,Na=function(O,U){t("config-stripStrict")&&(O=O.replace(/(["'])use strict\1/g,""));bb=1;if(t("config-dojo-loader-catches"))try{O===ta?ta.call(null):l.eval(O,t("dojo-loader-eval-hint-url")?U.url:U.mid)}catch(V){N("error",k("evalModuleThrew",U))}else O===ta?ta.call(null):l.eval(O,t("dojo-loader-eval-hint-url")?U.url:
U.mid);bb=0},Ia=function(O){var U=O.mid,V=O.url;if(!(O.executed||O.injected||ma[U]||O.url&&(O.pack&&ma[O.url]===O.pack||1==ma[O.url])))if(ub(O),O.plugin)qb(O);else{var W=function(){rb(O);if(2!==O.injected){if(t("dojo-enforceDefine")){N("error",k("noDefine",O));return}ua(O);f(O,pb);l.trace("loader-define-nonmodule",[O.url])}z?!C.length&&wa():wa()};if(ta=ba[U]||ba["url:"+O.url])l.trace("loader-inject",["cache",O.mid,V]),Na(ta,O),W();else{if(z)if(O.isXd)"sync"==z&&(z="xd");else if(!O.isAmd||"sync"==
z){var Y=function(aa){if("sync"==z){C.unshift(O);Na(aa,O);C.shift();rb(O);O.cjs||(ua(O),ya(O));if(O.finish){aa=U+"*finish";var ea=O.finish;delete O.finish;Ta(aa,["dojo",("dojo/require!"+ea.join(",")).replace(/\./g,"/")],function(la){c(ea,function(sa){la.require(sa)})});ka.unshift(pa(aa))}W()}else(aa=D(O,aa))?(Na(aa,O),W()):(Ha=O,l.injectUrl(Ja(V),W,O),Ha=0)};l.trace("loader-inject",["xhr",O.mid,V,"sync"!=z]);if(t("config-dojo-loader-catches"))try{l.getText(V,"sync"!=z,Y)}catch(aa){N("error",k("xhrInjectFailed",
[O,aa]))}else l.getText(V,"sync"!=z,Y);return}l.trace("loader-inject",["script",O.mid,V]);Ha=O;l.injectUrl(Ja(V),W,O);Ha=0}}},cb=function(O,U,V){l.trace("loader-define-module",[O.mid,U]);var W=O.mid;if(2===O.injected)return N("error",k("multipleDefine",O)),O;f(O,{deps:U,def:V,cjs:{id:O.mid,uri:O.url,exports:O.result={},setExports:function(aa){O.cjs.exports=aa},config:function(){return O.config}}});for(var Y=0;U[Y];Y++)U[Y]=pa(U[Y],O);z&&!ma[W]&&(Ea(O),ka.push(O),wa());ua(O);d(V)||U.length||(O.result=
V,ya(O));return O},rb=function(O,U){for(var V=[],W,Y;Oa.length;)Y=Oa.shift(),U&&(Y[0]=U.shift()),W=Y[0]&&pa(Y[0])||O,V.push([W,Y[1],Y[2]]);ha(O);c(V,function(aa){Ea(cb.apply(null,aa))})},Ua=0,Pa=h,ib=h;Pa=function(){Ua&&clearTimeout(Ua);Ua=0};ib=function(){Pa();l.waitms&&(Ua=n.setTimeout(function(){Pa();N("error",k("timeout",ma))},l.waitms))};t.add("ie-event-behavior",q.attachEvent&&"undefined"===typeof Windows&&("undefined"===typeof opera||"[object Opera]"!=opera.toString()));var db=function(O,U,
V,W){if(t("ie-event-behavior"))return O.attachEvent(V,W),function(){O.detachEvent(V,W)};O.addEventListener(U,W,!1);return function(){O.removeEventListener(U,W,!1)}},Bb=db(window,"load","onload",function(){l.pageLoaded=1;try{"complete"!=q.readyState&&(q.readyState="complete")}catch(O){}Bb()});Ka=q.getElementsByTagName("script");for(x=0;!ia;)/^dojo/.test((ra=Ka[x++])&&ra.type)||(ia=ra);l.injectUrl=function(O,U,V){V=V.node=q.createElement("script");var W=db(V,"load","onreadystatechange",function(aa){aa=
aa||window.event;var ea=aa.target||aa.srcElement;if("load"===aa.type||/complete|loaded/.test(ea.readyState))W(),Y(),U&&U()}),Y=db(V,"error","onerror",function(aa){W();Y();N("error",k("scriptError: "+O,[O,aa]))});V.type="text/javascript";V.charset="utf-8";V.src=O;ia.parentNode.insertBefore(V,ia);return V};l.log=h;l.trace=h;if(t("foreign-loader"))Ta=h;else{var Ta=function(O,U,V){var W=arguments.length,Y=["require","exports","module"],aa=[0,O,U];1==W?aa=[0,d(O)?Y:[],O]:2==W&&b(O)?aa=[O,d(U)?Y:[],U]:
3==W&&(aa=[O,U,V]);l.trace("loader-define",aa.slice(0,2));if((W=aa[0]&&pa(aa[0]))&&!ma[W.mid])Ea(cb(W,aa[1],aa[2]));else if(!t("ie-event-behavior")||bb)Oa.push(aa);else{W=W||Ha;if(!W)for(O in ma)if((Y=Z[O])&&Y.node&&"interactive"===Y.node.readyState){W=Y;break}W?(ha(W),Ea(cb(W,aa[1],aa[2]))):N("error",k("ieDefineFailed",aa[0]));wa()}};Ta.amd={vendor:"dojotoolkit.org"}}f(f(l,A.loaderPatch),u.loaderPatch);Q("error",function(O){try{if(O instanceof Error)for(var U in O);}catch(V){}});f(l,{uid:p,cache:ba,
packs:R});if(!n.define&&(n.define=Ta,n.require=l,!t("foreign-loader"))){c(hb,function(O){Ca(O)});var sb=ca.deps||u.deps||A.deps,tb=ca.callback||u.callback||A.callback;l.boot=sb||tb?[sb||[],tb]:0}})(function(u){return u.dojoConfig||u.djConfig||u.require||{}},{async:0,hasCache:{"config-selectorEngine":"lite","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-loader":1,dom:1,"host-browser":1},packages:[{location:"../app",name:"app"},{location:"../dgrid",main:"OnDemandGrid",name:"dgrid"},{location:"../dijit",
name:"dijit"},{location:".",name:"dojo"},{location:"../dojox",name:"dojox"},{location:"../put-selector",main:"put",name:"put-selector"},{location:"../xstyle",name:"xstyle"}]});
require({cache:{"dojo/domReady":function(){define(["./global","./has"],function(u,A){function x(l){b.push(l);d&&r()}function r(){if(!a){for(a=!0;b.length;)try{b.shift()(h)}catch(l){}a=!1;x._onQEmpty()}}var h=document,e={loaded:1,complete:1},g="string"!=typeof h.readyState,d=!!e[h.readyState],b=[],a;x.load=function(l,n,q){x(q)};x._Q=b;x._onQEmpty=function(){};g&&(h.readyState="loading");if(!d){var c=[],f=function(l){l=l||u.event;d||"readystatechange"==l.type&&!e[h.readyState]||(g&&(h.readyState="complete"),
d=1,r())},k=function(l,n){l.addEventListener(n,f,!1);b.push(function(){l.removeEventListener(n,f,!1)})};if(!A("dom-addeventlistener")){k=function(l,n){n="on"+n;l.attachEvent(n,f);b.push(function(){l.detachEvent(n,f)})};var m=h.createElement("div");try{m.doScroll&&null===u.frameElement&&c.push(function(){try{return m.doScroll("left"),1}catch(l){}})}catch(l){}}k(h,"DOMContentLoaded");k(u,"load");"onreadystatechange"in h?k(h,"readystatechange"):g||c.push(function(){return e[h.readyState]});if(c.length){var p=
function(){if(!d){for(var l=c.length;l--;)if(c[l]()){f("poller");return}setTimeout(p,30)}};p()}}return x})},"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(u,A,x){var r=A.has||function(){};r.add("dom-addeventlistener",!!document.addEventListener);r.add("touch","ontouchstart"in document||"onpointerdown"in
document&&0<navigator.maxTouchPoints||window.navigator.msMaxTouchPoints);r.add("touch-events","ontouchstart"in document);r.add("pointer-events","pointerEnabled"in window.navigator?window.navigator.pointerEnabled:"PointerEvent"in window);r.add("MSPointer",window.navigator.msPointerEnabled);r.add("touch-action",r("touch")&&r("pointer-events"));r.add("device-width",screen.availWidth||innerWidth);u=document.createElement("form");r.add("dom-attributes-explicit",0==u.attributes.length);r.add("dom-attributes-specified-flag",
0<u.attributes.length&&40>u.attributes.length);r.clearElement=function(h){h.innerHTML="";return h};r.normalize=function(h,e){var g=h.match(/[\?:]|[^:\?]*/g),d=0,b=function(a){var c=g[d++];if(":"==c)return 0;if("?"==g[d++]){if(!a&&r(c))return b();b(!0);return b(a)}return c||0};return(h=b())&&e(h)};r.load=function(h,e,g){h?e([h],g):g()};return r})},"dojo/dom":function(){define(["./sniff","./_base/window","./_base/kernel"],function(u,A,x){if(7>=u("ie"))try{document.execCommand("BackgroundImageCache",
!1,!0)}catch(e){}var r={};u("ie")?r.byId=function(e,g){if("string"!=typeof e)return e||null;var d=g||A.doc,b=e&&d.getElementById(e);if(!b||b.attributes.id.value!=e&&b.id!=e){d=d.all[e];if(!d||d.nodeName)d=[d];for(var a=0;b=d[a++];)if(b.attributes&&b.attributes.id&&b.attributes.id.value==e||b.id==e)return b}else return b;return null}:r.byId=function(e,g){return("string"==typeof e?(g||A.doc).getElementById(e):e)||null};x=x.global.document||null;u.add("dom-contains",!(!x||!x.contains));r.isDescendant=
u("dom-contains")?function(e,g){return!(!(g=r.byId(g))||!g.contains(r.byId(e)))}:function(e,g){try{for(e=r.byId(e),g=r.byId(g);e;){if(e==g)return!0;e=e.parentNode}}catch(d){}return!1};u.add("css-user-select",function(e,g,d){if(!d)return!1;e=d.style;g=["Khtml","O","Moz","Webkit"];d=g.length;var b="userSelect";do if("undefined"!==typeof e[b])return b;while(d--&&(b=g[d]+"UserSelect"));return!1});var h=u("css-user-select");r.setSelectable=h?function(e,g){r.byId(e).style[h]=g?"":"none"}:function(e,g){e=
r.byId(e);var d=e.getElementsByTagName("*"),b=d.length;if(g)for(e.removeAttribute("unselectable");b--;)d[b].removeAttribute("unselectable");else for(e.setAttribute("unselectable","on");b--;)d[b].setAttribute("unselectable","on")};return r})},"dojo/sniff":function(){define(["./has"],function(u){var A=navigator,x=A.userAgent;A=A.appVersion;var r=parseFloat(A);u.add("air",0<=x.indexOf("AdobeAIR"));u.add("wp",parseFloat(x.split("Windows Phone")[1])||void 0);u.add("msapp",parseFloat(x.split("MSAppHost/")[1])||
void 0);u.add("khtml",0<=A.indexOf("Konqueror")?r:void 0);u.add("edge",parseFloat(x.split("Edge/")[1])||void 0);u.add("opr",parseFloat(x.split("OPR/")[1])||void 0);u.add("webkit",!u("wp")&&!u("edge")&&parseFloat(x.split("WebKit/")[1])||void 0);u.add("chrome",!u("edge")&&!u("opr")&&parseFloat(x.split("Chrome/")[1])||void 0);u.add("android",!u("wp")&&parseFloat(x.split("Android ")[1])||void 0);u.add("safari",!(0<=A.indexOf("Safari"))||u("wp")||u("chrome")||u("android")||u("edge")||u("opr")?void 0:parseFloat(A.split("Version/")[1]));
u.add("mac",0<=A.indexOf("Macintosh"));u.add("quirks","BackCompat"==document.compatMode);if(!u("wp")&&x.match(/(iPhone|iPod|iPad)/)){var h=RegExp.$1.replace(/P/,"p"),e=x.match(/OS ([\d_]+)/)?RegExp.$1:"1";e=parseFloat(e.replace(/_/,".").replace(/_/g,""));u.add(h,e);u.add("ios",e)}u.add("bb",(0<=x.indexOf("BlackBerry")||0<=x.indexOf("BB10"))&&parseFloat(x.split("Version/")[1])||void 0);u.add("trident",parseFloat(A.split("Trident/")[1])||void 0);u.add("svg","undefined"!==typeof SVGAngle);u("webkit")||
(0<=x.indexOf("Opera")&&u.add("opera",9.8<=r?parseFloat(x.split("Version/")[1])||r:r),!(0<=x.indexOf("Gecko"))||u("wp")||u("khtml")||u("trident")||u("edge")||u.add("mozilla",r),u("mozilla")&&u.add("ff",parseFloat(x.split("Firefox/")[1]||x.split("Minefield/")[1])||void 0),document.all&&!u("opera")&&(x=parseFloat(A.split("MSIE ")[1])||void 0,(A=document.documentMode)&&5!=A&&Math.floor(x)!=A&&(x=A),u.add("ie",x)),u.add("wii","undefined"!=typeof opera&&opera.wiiremote));return u})},"dojo/_base/window":function(){define(["./kernel",
"./lang","../sniff"],function(u,A,x){var r={global:u.global,doc:u.global.document||null,body:function(h){h=h||u.doc;return h.body||h.getElementsByTagName("body")[0]},setContext:function(h,e){u.global=r.global=h;u.doc=r.doc=e},withGlobal:function(h,e,g,d){var b=u.global;try{return u.global=r.global=h,r.withDoc.call(null,h.document,e,g,d)}finally{u.global=r.global=b}},withDoc:function(h,e,g,d){var b=r.doc,a=x("quirks"),c=x("ie"),f,k;try{u.doc=r.doc=h;u.isQuirks=x.add("quirks","BackCompat"==u.doc.compatMode,
!0,!0);if(x("ie")&&(k=h.parentWindow)&&k.navigator){var m=parseFloat(k.navigator.appVersion.split("MSIE ")[1])||void 0;(f=h.documentMode)&&5!=f&&Math.floor(m)!=f&&(m=f);u.isIE=x.add("ie",m,!0,!0)}g&&"string"==typeof e&&(e=g[e]);return e.apply(g,d||[])}finally{u.doc=r.doc=b,u.isQuirks=x.add("quirks",a,!0,!0),u.isIE=x.add("ie",c,!0,!0)}}};A.mixin(u,r);return r})},"dojo/_base/kernel":function(){define(["../global","../has","./config","require","module"],function(u,A,x,r,h){var e,g={},d={},b={config:x,
global:u,dijit:g,dojox:d};g={dojo:["dojo",b],dijit:["dijit",g],dojox:["dojox",d]};h=r.map&&r.map[h.id.match(/[^\/]+/)[0]];for(e in h)g[e]?g[e][0]=h[e]:g[e]=[h[e],{}];for(e in g)h=g[e],h[1]._scopeName=h[0],x.noGlobals||(u[h[0]]=h[1]);b.scopeMap=g;b.baseUrl=b.config.baseUrl=r.baseUrl;b.isAsync=r.async;b.locale=x.locale;u="$Rev:$".match(/[0-9a-f]{7,}/);b.version={major:1,minor:17,patch:3,flag:"",revision:u?u[0]:NaN,toString:function(){var c=b.version;return c.major+"."+c.minor+"."+c.patch+c.flag+" ("+
c.revision+")"}};A("csp-restrictions")||Function("d","d.eval \x3d function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(b);b.exit=function(){};A("host-webworker");A.add("console-as-object",function(){return Function.prototype.bind&&console&&"object"===typeof console.log});"undefined"!=typeof console||(console={});h="assert count debug dir dirxml error group groupEnd info profile profileEnd time timeEnd trace warn log".split(" ");var a;for(u=0;a=h[u++];)console[a]?
A("console-as-object")&&(console[a]=Function.prototype.bind.call(console[a],console)):function(){var c=a+"";console[c]="log"in console?function(){var f=Array.prototype.slice.call(arguments);f.unshift(c+":");console.log(f.join(" "))}:function(){};console[c]._fake=!0}();b.deprecated=b.experimental=function(){};if(x.modulePaths){b.deprecated("dojo.modulePaths","use paths configuration");A={};for(e in x.modulePaths)A[e.replace(/\./g,"/")]=x.modulePaths[e];r({paths:A})}b.moduleUrl=function(c,f){b.deprecated("dojo.moduleUrl()",
"use require.toUrl","2.0");var k=null;c&&(k=r.toUrl(c.replace(/\./g,"/")+(f?"/"+f:"")+"/*.*").replace(/\/\*\.\*/,"")+(f?"":"/"));return k};b._hasResource={};return b})},"dojo/_base/config":function(){define(["../global","../has","require"],function(u,A,x){u={};x=x.rawConfig;for(var r in x)u[r]=x[r];!u.locale&&"undefined"!=typeof navigator&&(r=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language||navigator.userLanguage)&&(u.locale=r.toLowerCase());return u})},"dojo/_base/lang":function(){define(["./kernel",
"../has","../sniff"],function(u,A){A.add("bug-for-in-skips-shadowed",function(){for(var a in{toString:1})return 0;return 1});var x=A("bug-for-in-skips-shadowed")?"hasOwnProperty valueOf isPrototypeOf propertyIsEnumerable toLocaleString toString constructor".split(" "):[],r=x.length,h=function(a,c,f){f||(f=a[0]&&u.scopeMap[a[0]]?u.scopeMap[a.shift()][1]:u.global);try{for(var k=0;k<a.length;k++){var m=a[k];if("__proto__"===m||"constructor"===m)return;if(!(m in f))if(c)f[m]={};else return;f=f[m]}return f}catch(p){}},
e=Object.prototype.toString,g=function(a,c,f){return(f||[]).concat(Array.prototype.slice.call(a,c||0))},d=/\{([^\}]+)\}/g,b={_extraNames:x,_mixin:function(a,c,f){var k,m={};for(l in c){var p=c[l];l in a&&(a[l]===p||l in m&&m[l]===p)||(a[l]=f?f(p):p)}if(A("bug-for-in-skips-shadowed")&&c)for(k=0;k<r;++k){var l=x[k];p=c[l];l in a&&(a[l]===p||l in m&&m[l]===p)||(a[l]=f?f(p):p)}return a},mixin:function(a,c){a||(a={});for(var f=1,k=arguments.length;f<k;f++)b._mixin(a,arguments[f]);return a},setObject:function(a,
c,f){var k=a.split(".");a=k.pop();return(f=h(k,!0,f))&&a?f[a]=c:void 0},getObject:function(a,c,f){return a?h(a.split("."),c,f):f},exists:function(a,c){return void 0!==b.getObject(a,!1,c)},isString:function(a){return"string"==typeof a||a instanceof String},isArray:Array.isArray||function(a){return"[object Array]"==e.call(a)},isFunction:function(a){return"[object Function]"===e.call(a)},isObject:function(a){return void 0!==a&&(null===a||"object"==typeof a||b.isArray(a)||b.isFunction(a))},isArrayLike:function(a){return!!a&&
!b.isString(a)&&!b.isFunction(a)&&!(a.tagName&&"form"==a.tagName.toLowerCase())&&(b.isArray(a)||isFinite(a.length))},isAlien:function(a){return a&&!b.isFunction(a)&&/\{\s*\[native code\]\s*\}/.test(String(a))},extend:function(a,c){for(var f=1,k=arguments.length;f<k;f++)b._mixin(a.prototype,arguments[f]);return a},_hitchArgs:function(a,c){var f=b._toArray(arguments,2),k=b.isString(c);return function(){var m=b._toArray(arguments),p=k?(a||u.global)[c]:c;return p&&p.apply(a||this,f.concat(m))}},hitch:function(a,
c){if(2<arguments.length)return b._hitchArgs.apply(u,arguments);c||(c=a,a=null);if(b.isString(c)){a=a||u.global;if(!a[c])throw['lang.hitch: scope["',c,'"] is null (scope\x3d"',a,'")'].join("");return function(){return a[c].apply(a,arguments||[])}}return a?function(){return c.apply(a,arguments||[])}:c},delegate:function(){function a(){}return function(c,f){a.prototype=c;var k=new a;a.prototype=null;f&&b._mixin(k,f);return k}}(),_toArray:A("ie")?function(){function a(c,f,k){k=k||[];for(f=f||0;f<c.length;f++)k.push(c[f]);
return k}return function(c){return(c.item?a:g).apply(this,arguments)}}():g,partial:function(a){return b.hitch.apply(u,[null].concat(b._toArray(arguments)))},clone:function(a){if(!a||"object"!=typeof a||b.isFunction(a))return a;if(a.nodeType&&"cloneNode"in a)return a.cloneNode(!0);if(a instanceof Date)return new Date(a.getTime());if(a instanceof RegExp)return new RegExp(a);var c;if(b.isArray(a)){var f=[];var k=0;for(c=a.length;k<c;++k)k in a&&(f[k]=b.clone(a[k]))}else f=a.constructor?new a.constructor:
{};return b._mixin(f,a,b.clone)},trim:String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(a,c,f){return a.replace(f||d,b.isFunction(c)?c:function(k,m){return b.getObject(m,!1,c)})}};b.mixin(u,b);return b})},"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(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n){function q(y){var z=y._nameCaseMap,C=y.prototype;if(!z||z._extendCnt<v){z=y._nameCaseMap={};for(var G in C)"_"!==G.charAt(0)&&(z[G.toLowerCase()]=G);z._extendCnt=v}return z}function w(y,z){z||(z=u);var C=z._dojoParserCtorMap||(z._dojoParserCtorMap={}),G=y.join();if(!C[G]){for(var B=[],D=0,E=y.length;D<E;D++){var J=y[D];B[B.length]=C[J]=C[J]||x.getObject(J)||~J.indexOf("/")&&z(J)}D=B.shift();C[G]=B.length?D.createSubclass?D.createSubclass(B):D.extend.apply(D,
B):D}return C[G]}new Date("X");var t=k("csp-restrictions")?m.parse:function(y){return eval("("+y+")")};var v=0;b.after(x,"extend",function(){v++},!0);m={_clearCache:function(){v++;_ctorMap={}},_functionFromScript:function(y,z){var C="",G="",B=y.getAttribute(z+"args")||y.getAttribute("args"),D=y.getAttribute("with");B=(B||"").split(/\s*,\s*/);D&&D.length&&r.forEach(D.split(/\s*,\s*/),function(E){C+="with("+E+"){";G+="}"});return new Function(B,C+y.innerHTML+G)},instantiate:function(y,z,C){z=z||{};
C=C||{};var G=(C.scope||A._scopeName)+"Type",B="data-"+(C.scope||A._scopeName)+"-",D=B+"type",E=B+"mixins",J=[];r.forEach(y,function(I){var F=G in z?z[G]:I.getAttribute(D)||I.getAttribute(G);if(F){var H=I.getAttribute(E);F=H?[F].concat(H.split(/\s*,\s*/)):[F];J.push({node:I,types:F})}});return this._instantiate(J,z,C)},_instantiate:function(y,z,C,G){function B(D){z._started||C.noStart||r.forEach(D,function(E){"function"!==typeof E.startup||E._started||E.startup()});return D}y=r.map(y,function(D){var E=
D.ctor||w(D.types,C.contextRequire);if(!E)throw Error("Unable to resolve constructor for: '"+D.types.join()+"'");return this.construct(E,D.node,z,C,D.scripts,D.inherited)},this);return G?a(y).then(B):B(y)},construct:function(y,z,C,G,B,D){function E(da){Q&&x.setObject(Q,da);for(L=0;L<R.length;L++)b[R[L].advice||"after"](da,R[L].method,x.hitch(da,R[L].func),!0);for(L=0;L<T.length;L++)T[L].call(da);for(L=0;L<X.length;L++)da.watch(X[L].prop,X[L].func);for(L=0;L<Z.length;L++)l(da,Z[L].event,Z[L].func);
return da}var J=y&&y.prototype;G=G||{};var I={};G.defaults&&x.mixin(I,G.defaults);D&&x.mixin(I,D);if(k("dom-attributes-explicit"))var F=z.attributes;else k("dom-attributes-specified-flag")?F=r.filter(z.attributes,function(da){return da.specified}):(D=(/^input$|^img$/i.test(z.nodeName)?z:z.cloneNode(!1)).outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,""),F=r.map(D.split(/\s+/),function(da){var ba=da.toLowerCase();return{name:da,value:"LI"==
z.nodeName&&"value"==da||"enctype"==ba?z.getAttribute(ba):z.getAttributeNode(ba).value}}));var H=G.scope||A._scopeName;D="data-"+H+"-";var K={};"dojo"!==H&&(K[D+"props"]="data-dojo-props",K[D+"type"]="data-dojo-type",K[D+"mixins"]="data-dojo-mixins",K[H+"type"]="dojotype",K[D+"id"]="data-dojo-id");var L=0,N;H=[];for(var Q,P;N=F[L++];){var S=N.name,M=S.toLowerCase();N=N.value;switch(K[M]||M){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;case "data-dojo-props":P=N;break;case "data-dojo-id":case "jsid":Q=
N;break;case "data-dojo-attach-point":case "dojoattachpoint":I.dojoAttachPoint=N;break;case "data-dojo-attach-event":case "dojoattachevent":I.dojoAttachEvent=N;break;case "class":I["class"]=z.className;break;case "style":I.style=z.style&&z.style.cssText;break;default:if(S in J||(S=q(y)[M]||S),S in J)switch(typeof J[S]){case "string":I[S]=N;break;case "number":I[S]=N.length?Number(N):NaN;break;case "boolean":I[S]="false"!=N.toLowerCase();break;case "function":""===N||-1!=N.search(/[^\w\.]+/i)?I[S]=
new Function(N):I[S]=x.getObject(N,!1)||new Function(N);H.push(S);break;default:M=J[S];try{I[S]=M&&"length"in M?N?N.split(/\s*,\s*/):[]:M instanceof Date?""==N?new Date(""):"now"==N?new Date:c.fromISOString(N):M instanceof d?A.baseUrl+N:t(N)}catch(da){}}else I[S]=N}}for(F=0;F<H.length;F++)K=H[F].toLowerCase(),z.removeAttribute(K),z[K]=null;if(P)try{P=t.call(G.propsThis,"{"+P+"}"),x.mixin(I,P)}catch(da){throw Error(da.toString()+" in data-dojo-props\x3d'"+P+"'");}x.mixin(I,C);B||(B=y&&(y._noScript||
J._noScript)?[]:p("\x3e script[type^\x3d'dojo/']",z));var R=[],T=[],X=[],Z=[];if(B)for(L=0;L<B.length;L++)K=B[L],z.removeChild(K),C=K.getAttribute(D+"event")||K.getAttribute("event"),G=K.getAttribute(D+"prop"),P=K.getAttribute(D+"method"),H=K.getAttribute(D+"advice"),F=K.getAttribute("type"),K=this._functionFromScript(K,D),C?"dojo/connect"==F?R.push({method:C,func:K}):"dojo/on"==F?Z.push({event:C,func:K}):I[C]=K:"dojo/aspect"==F?R.push({method:P,advice:H,func:K}):"dojo/watch"==F?X.push({prop:G,func:K}):
T.push(K);y=(B=y.markupFactory||J.markupFactory)?B(I,z,y):new y(I,z);return y.then?y.then(E):E(y)},scan:function(y,z){function C(R){if(!R.inherited){R.inherited={};var T=R.node,X=C(R.parent);T={dir:T.getAttribute("dir")||X.dir,lang:T.getAttribute("lang")||X.lang,textDir:T.getAttribute(F)||X.textDir};for(var Z in T)T[Z]&&(R.inherited[Z]=T[Z])}return R.inherited}var G=[],B=[],D={},E=(z.scope||A._scopeName)+"Type",J="data-"+(z.scope||A._scopeName)+"-",I=J+"type",F=J+"textdir";J+="mixins";var H=y.firstChild,
K=z.inherited;if(!K){K=function Z(T,X){return T.getAttribute&&T.getAttribute(X)||T.parentNode&&Z(T.parentNode,X)};K={dir:K(y,"dir"),lang:K(y,"lang"),textDir:K(y,F)};for(var L in K)K[L]||delete K[L]}K={inherited:K};for(var N,Q;;)if(H)if(1!=H.nodeType)H=H.nextSibling;else if(N&&"script"==H.nodeName.toLowerCase())(P=H.getAttribute("type"))&&/^dojo\/\w/i.test(P)&&N.push(H),H=H.nextSibling;else if(Q)H=H.nextSibling;else{var P=H.getAttribute(I)||H.getAttribute(E);L=H.firstChild;if(P||L&&(3!=L.nodeType||
L.nextSibling)){Q=null;if(P){var S=H.getAttribute(J);N=S?[P].concat(S.split(/\s*,\s*/)):[P];try{Q=w(N,z.contextRequire)}catch(R){}Q||r.forEach(N,function(R){~R.indexOf("/")&&!D[R]&&(D[R]=!0,B[B.length]=R)});S=Q&&!Q.prototype._noScript?[]:null;K={types:N,ctor:Q,parent:K,node:H,scripts:S};K.inherited=C(K);G.push(K)}else K={node:H,scripts:N,parent:K};N=S;Q=H.stopParser||Q&&Q.prototype.stopParser&&!z.template;H=L}else H=H.nextSibling}else{if(!K||!K.node)break;H=K.node.nextSibling;Q=!1;K=K.parent;N=K.scripts}var M=
new f;B.length?(z.contextRequire||u)(B,function(){M.resolve(r.filter(G,function(R){if(!R.ctor)try{R.ctor=w(R.types,z.contextRequire)}catch(Z){}for(var T=R.parent;T&&!T.types;)T=T.parent;var X=R.ctor&&R.ctor.prototype;R.instantiateChildren=!(X&&X.stopParser&&!z.template);R.instantiate=!T||T.instantiate&&T.instantiateChildren;return R.instantiate}))}):M.resolve(G);return M.promise},_require:function(y,z){var C=t("{"+y.innerHTML+"}"),G=[],B=[],D=new f,E=z&&z.contextRequire||u,J;for(J in C)G.push(J),
B.push(C[J]);E(B,function(){for(var I=0;I<G.length;I++)x.setObject(G[I],arguments[I]);D.resolve(arguments)});return D.promise},_scanAmd:function(y,z){var C=new f,G=C.promise;C.resolve(!0);var B=this;p("script[type\x3d'dojo/require']",y).forEach(function(D){G=G.then(function(){return B._require(D,z)});D.parentNode.removeChild(D)});return G},parse:function(y,z){!y||"string"==typeof y||"nodeType"in y||(z=y,y=z.rootNode);var C=y?e.byId(y):g.body();z=z||{};var G=z.template?{template:!0}:{},B=[],D=this,
E=this._scanAmd(C,z).then(function(){return D.scan(C,z)}).then(function(J){return D._instantiate(J,G,z,!0)}).then(function(J){return B=B.concat(J)}).otherwise(function(J){throw J;});x.mixin(B,E);return B}};A.parser=m;h.parseOnLoad&&n(100,m,"parse");return m})},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],function(u,A,x){function r(a){var c=!a;return function(f,k,m){var p=0,l=f&&f.length||0;l&&"string"==typeof f&&(f=f.split(""));if("string"==typeof k){if(A("csp-restrictions"))throw new TypeError("callback must be a function");
k=e[k]||d(k)}if(m)for(;p<l;++p){var n=!k.call(m,f[p],p,f);if(a^n)return!n}else for(;p<l;++p)if(n=!k(f[p],p,f),a^n)return!n;return c}}function h(a){var c=1,f=0,k=0;a||(c=f=k=-1);return function(m,p,l,n){if(n&&0<c)return b.lastIndexOf(m,p,l);n=m&&m.length||0;var q=a?n+k:f;l===g?l=a?f:n+k:0>l?(l=n+l,0>l&&(l=f)):l=l>=n?n+k:l;for(n&&"string"==typeof m&&(m=m.split(""));l!=q;l+=c)if(m[l]==p)return l;return-1}}var e={},g,d;A("csp-restrictions")||(d=function(a){return e[a]=new Function("item","index","array",
a)});var b={every:r(!1),some:r(!0),indexOf:h(!0),lastIndexOf:h(!1),forEach:function(a,c,f){var k=0,m=a&&a.length||0;m&&"string"==typeof a&&(a=a.split(""));if("string"==typeof c){if(A("csp-restrictions"))throw new TypeError("callback must be a function");c=e[c]||d(c)}if(f)for(;k<m;++k)c.call(f,a[k],k,a);else for(;k<m;++k)c(a[k],k,a)},map:function(a,c,f,k){var m=0,p=a&&a.length||0;k=new (k||Array)(p);p&&"string"==typeof a&&(a=a.split(""));if("string"==typeof c){if(A("csp-restrictions"))throw new TypeError("callback must be a function");
c=e[c]||d(c)}if(f)for(;m<p;++m)k[m]=c.call(f,a[m],m,a);else for(;m<p;++m)k[m]=c(a[m],m,a);return k},filter:function(a,c,f){var k=0,m=a&&a.length||0,p=[];m&&"string"==typeof a&&(a=a.split(""));if("string"==typeof c){if(A("csp-restrictions"))throw new TypeError("callback must be a function");c=e[c]||d(c)}if(f)for(;k<m;++k){var l=a[k];c.call(f,l,k,a)&&p.push(l)}else for(;k<m;++k)l=a[k],c(l,k,a)&&p.push(l);return p},clearCache:function(){e={}}};x.mixin(u,b);return b})},"dojo/_base/url":function(){define(["./kernel"],
function(u){var A=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),x=RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),r=function(){for(var h=arguments,e=[h[0]],g=1;g<h.length;g++)if(h[g]){var d=new r(h[g]+"");e=new r(e[0]+"");if(""==d.path&&!d.scheme&&!d.authority&&!d.query)null!=d.fragment&&(e.fragment=d.fragment),d=e;else if(!d.scheme&&(d.scheme=e.scheme,!d.authority&&(d.authority=e.authority,"/"!=d.path.charAt(0)))){e=(e.path.substring(0,e.path.lastIndexOf("/")+
1)+d.path).split("/");for(var b=0;b<e.length;b++)"."==e[b]?b==e.length-1?e[b]="":(e.splice(b,1),b--):0<b&&(1!=b||""!=e[0])&&".."==e[b]&&".."!=e[b-1]&&(b==e.length-1?(e.splice(b,1),e[b-1]=""):(e.splice(b-1,2),b-=2));d.path=e.join("/")}e=[];d.scheme&&e.push(d.scheme,":");d.authority&&e.push("//",d.authority);e.push(d.path);d.query&&e.push("?",d.query);d.fragment&&e.push("#",d.fragment)}this.uri=e.join("");h=this.uri.match(A);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(x),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 u._Url=r})},"dojo/aspect":function(){define([],function(){function u(g,d,b,a){var c=g[d],f="around"==d;if(f){var k=b(function(){return c.advice(this,arguments)});var m={remove:function(){k&&(k=g=b=null)},advice:function(p,l){return k?
k.apply(p,l):c.advice(p,l)}}}else m={remove:function(){if(m.advice){var p=m.previous,l=m.next;l||p?(p?p.next=l:g[d]=l,l&&(l.previous=p)):delete g[d];g=b=m.advice=null}},id:g.nextId++,advice:b,receiveArguments:a};if(c&&!f)if("after"==d){for(;c.next&&(c=c.next););c.next=m;m.previous=c}else"before"==d&&(g[d]=m,m.next=c,c.previous=m);else g[d]=m;return m}function A(g){return function(d,b,a,c){var f=d[b],k;f&&f.target==d||(d[b]=k=function(){for(var m=k.nextId,p=arguments,l=k.before;l;)l.advice&&(p=l.advice.apply(this,
p)||p),l=l.next;if(k.around)var n=k.around.advice(this,p);for(l=k.after;l&&l.id<m;){if(l.advice)if(l.receiveArguments){var q=l.advice.apply(this,p);n=q===x?n:q}else n=l.advice.call(this,n,p);l=l.next}return n},f&&(k.around={advice:function(m,p){return f.apply(m,p)}}),k.target=d,k.nextId=k.nextId||0);d=u(k||f,g,a,c);a=null;return d}}var x,r=A("after"),h=A("before"),e=A("around");return{before:h,around:e,after:r}})},"dojo/promise/all":function(){define(["../_base/array","../_base/lang","../Deferred",
"../when"],function(u,A,x,r){var h=u.some;return function(e){var g,d;A.isArray(e)?d=e:e&&"object"===typeof e&&(g=e);var b=[];if(g){d=[];for(var a in g)Object.hasOwnProperty.call(g,a)&&(b.push(a),d.push(g[a]));var c={}}else d&&(c=[]);if(!d||!d.length)return(new x).resolve(c);var f=new x;f.promise.always(function(){c=b=null});var k=d.length;h(d,function(m,p){g||b.push(p);r(m,function(l){f.isFulfilled()||(c[b[p]]=l,0===--k&&f.resolve(c))},f.reject);return f.isFulfilled()});return f.promise}})},"dojo/Deferred":function(){define(["./has",
"./_base/lang","./errors/CancelError","./promise/Promise","./promise/instrumentation"],function(u,A,x,r,h){var e=Object.freeze||function(){},g=function(f,k,m,p,l){2===k&&c.instrumentRejected&&0===f.length&&c.instrumentRejected(m,!1,p,l);for(l=0;l<f.length;l++)d(f[l],k,m,p)},d=function(f,k,m,p){var l=f[k],n=f.deferred;if(l)try{var q=l(m);if(0===k)"undefined"!==typeof q&&a(n,k,q);else{if(q&&"function"===typeof q.then){f.cancel=q.cancel;q.then(b(n,1),b(n,2),b(n,0));return}a(n,1,q)}}catch(w){a(n,2,w)}else a(n,
k,m);2===k&&c.instrumentRejected&&c.instrumentRejected(m,!!l,p,n.promise)},b=function(f,k){return function(m){a(f,k,m)}},a=function(f,k,m){if(!f.isCanceled())switch(k){case 0:f.progress(m);break;case 1:f.resolve(m);break;case 2:f.reject(m)}},c=function(f){var k=this.promise=new r,m=this,p,l,n,q=!1,w=[];Error.captureStackTrace&&(Error.captureStackTrace(m,c),Error.captureStackTrace(k,c));this.isResolved=k.isResolved=function(){return 1===p};this.isRejected=k.isRejected=function(){return 2===p};this.isFulfilled=
k.isFulfilled=function(){return!!p};this.isCanceled=k.isCanceled=function(){return q};this.progress=function(v,y){if(p){if(!0===y)throw Error("This deferred has already been fulfilled.");return k}g(w,0,v,null,m);return k};this.resolve=function(v,y){if(p){if(!0===y)throw Error("This deferred has already been fulfilled.");return k}g(w,p=1,l=v,null,m);w=null;return k};var t=this.reject=function(v,y){if(p){if(!0===y)throw Error("This deferred has already been fulfilled.");return k}Error.captureStackTrace&&
Error.captureStackTrace(n={},t);g(w,p=2,l=v,n,m);w=null;return k};this.then=k.then=function(v,y,z){var C=[z,v,y];C.cancel=k.cancel;C.deferred=new c(function(G){return C.cancel&&C.cancel(G)});p&&!w?d(C,p,l,n):w.push(C);return C.deferred.promise};this.cancel=k.cancel=function(v,y){if(!p){if(f){var z=f(v);v="undefined"===typeof z?v:z}q=!0;if(!p)return"undefined"===typeof v&&(v=new x),t(v),v;if(2===p&&l===v)return v}else if(!0===y)throw Error("This deferred has already been fulfilled.");};e(k)};c.prototype.toString=
function(){return"[object Deferred]"};h&&h(c);return c})},"dojo/errors/CancelError":function(){define(["./create"],function(u){return u("CancelError",null,null,{dojoType:"cancel",log:!1})})},"dojo/errors/create":function(){define(["../_base/lang"],function(u){return function(A,x,r,h){r=r||Error;var e=function(g){if(r===Error){Error.captureStackTrace&&Error.captureStackTrace(this,e);var d=Error.call(this,g),b;for(b in d)d.hasOwnProperty(b)&&(this[b]=d[b]);this.message=g;this.stack=d.stack}else r.apply(this,
arguments);x&&x.apply(this,arguments)};e.prototype=u.delegate(r.prototype,h);e.prototype.name=A;return e.prototype.constructor=e}})},"dojo/promise/Promise":function(){define(["../_base/lang"],function(u){function A(){throw new TypeError("abstract");}return u.extend(function(){},{then:function(x,r,h){A()},cancel:function(x,r){A()},isResolved:function(){A()},isRejected:function(){A()},isFulfilled:function(){A()},isCanceled:function(){A()},"finally":function(x){return this.then(function(r){var h=x();
return h&&"function"===typeof h.then?h.then(function(){return r}):r},function(r){var h=x();if(h&&"function"===typeof h.then)return h.then(function(){throw r;});throw r;})},always:function(x){return this.then(x,x)},"catch":function(x){return this.then(null,x)},otherwise:function(x){return this.then(null,x)},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(u,A,x,r){function h(f,k,m){if(!f||!1!==f.log){var p="";f&&f.stack&&(p+=f.stack);k&&k.stack&&(p+="\n    ----------------------------------------\n    rejected"+k.stack.split("\n").slice(1).join("\n").replace(/^\s+/," "));m&&m.stack&&(p+="\n    ----------------------------------------\n"+m.stack)}}function e(f,k,m,p){k||h(f,m,p)}function g(f,k,m,p){r.some(b,function(l){if(l.error===f)return k&&(l.handled=!0),!0})||b.push({error:f,rejection:m,handled:k,deferred:p,timestamp:(new Date).getTime()});
a||(a=setTimeout(d,c))}function d(){var f=(new Date).getTime(),k=f-c;b=r.filter(b,function(m){return m.timestamp<k?(m.handled||h(m.error,m.rejection,m.deferred),!1):!0});a=b.length?setTimeout(d,b[0].timestamp+c-f):!1}A.add("config-useDeferredInstrumentation","report-unhandled-rejections");var b=[],a=!1,c=1E3;return function(f){var k=A("config-useDeferredInstrumentation");if(k){u.on("resolved",x.hitch(console,"log","resolved"));u.on("rejected",x.hitch(console,"log","rejected"));u.on("progress",x.hitch(console,
"log","progress"));var m=[];"string"===typeof k&&(m=k.split(","),k=m.shift());if("report-rejections"===k)f.instrumentRejected=e;else if("report-unhandled-rejections"===k||!0===k||1===k)f.instrumentRejected=g,c=parseInt(m[0],10)||c;else throw Error("Unsupported instrumentation usage \x3c"+k+"\x3e");}}})},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(u,A,x){function r(g){setTimeout(function(){e.apply(h,g)},0)}var h=new x,e=h.emit;h.emit=null;A.prototype.trace=
function(){var g=u._toArray(arguments);this.then(function(d){r(["resolved",d].concat(g))},function(d){r(["rejected",d].concat(g))},function(d){r(["progress",d].concat(g))});return this};A.prototype.traceRejected=function(){var g=u._toArray(arguments);this.otherwise(function(d){r(["rejected",d].concat(g))});return this};return h})},"dojo/Evented":function(){define(["./aspect","./on"],function(u,A){function x(){}var r=u.after;x.prototype={on:function(h,e){return A.parse(this,h,e,function(g,d){return r(g,
"on"+d,e,!0)})},emit:function(h,e){var g=[this];g.push.apply(g,arguments);return A.emit.apply(A,g)}};return x})},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./_base/kernel","./sniff"],function(u,A,x){function r(C,G,B,D,E){if(D=G.match(/(.*):(.*)/))return G=D[2],D=D[1],d.selector(D,G).call(E,C,B);x("touch")&&(b.test(G)&&(B=z(B)),x("event-orientationchange")||"orientationchange"!=G||(G="resize",C=window,B=z(B)));m&&(B=m(B));if(C.addEventListener){var J=G in f,I=J?f[G]:G;C.addEventListener(I,
B,J);return{remove:function(){C.removeEventListener(I,B,J)}}}if(q&&C.attachEvent)return q(C,"on"+G,B);throw Error("Target must be an event emitter");}function h(){this.cancelable=!1;this.defaultPrevented=!0}function e(){this.bubbles=!1}var g=window.ScriptEngineMajorVersion;x.add("jscript",g&&g()+ScriptEngineMinorVersion()/10);x.add("event-orientationchange",x("touch")&&!x("android"));x.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);
x.add("event-focusin",function(C,G,B){return"onfocusin"in B});x("touch")&&x.add("touch-can-modify-event-delegate",function(){var C=function(){};C.prototype=document.createEvent("MouseEvents");try{var G=new C;G.target=null;return null===G.target}catch(B){return!1}});var d=function(C,G,B,D){return"function"!=typeof C.on||"function"==typeof G||C.nodeType?d.parse(C,G,B,r,D,this):C.on(G,B)};d.pausable=function(C,G,B,D){var E;C=d(C,G,function(){if(!E)return B.apply(this,arguments)},D);C.pause=function(){E=
!0};C.resume=function(){E=!1};return C};d.once=function(C,G,B,D){var E=d(C,G,function(){E.remove();return B.apply(this,arguments)});return E};d.parse=function(C,G,B,D,E,J){var I;if(G.call)return G.call(J,C,B);G instanceof Array?I=G:-1<G.indexOf(",")&&(I=G.split(/\s*,\s*/));if(I){var F=[];G=0;for(var H;H=I[G++];)F.push(d.parse(C,H,B,D,E,J));F.remove=function(){for(var K=0;K<F.length;K++)F[K].remove()};return F}return D(C,G,B,E,J)};var b=/^touch/;d.matches=function(C,G,B,D,E){E=E&&"function"==typeof E.matches?
E:A.query;D=!1!==D;1!=C.nodeType&&(C=C.parentNode);for(;!E.matches(C,G,B);)if(C==B||!1===D||!(C=C.parentNode)||1!=C.nodeType)return!1;return C};d.selector=function(C,G,B){return function(D,E){function J(H){return d.matches(H,C,D,B,I)}var I="function"==typeof C?{matches:C}:this,F=G.bubble;return F?d(D,F(J),E):d(D,G,function(H){var K=J(H.target);if(K)return H.selectorTarget=K,E.call(K,H)})}};var a=[].slice,c=d.emit=function(C,G,B){var D=a.call(arguments,2),E="on"+G;if("parentNode"in C){var J=D[0]={},
I;for(I in B)J[I]=B[I];J.preventDefault=h;J.stopPropagation=e;J.target=C;J.type=G;B=J}do C[E]&&C[E].apply(C,D);while(B&&B.bubbles&&(C=C.parentNode));return B&&B.cancelable&&B},f=x("event-focusin")?{}:{focusin:"focus",focusout:"blur"};if(!x("event-stopimmediatepropagation"))var k=function(){this.modified=this.immediatelyStopped=!0},m=function(C){return function(G){if(!G.immediatelyStopped)return G.stopImmediatePropagation=k,C.apply(this,arguments)}};if(x("dom-addeventlistener"))d.emit=function(C,G,
B){if(C.dispatchEvent&&document.createEvent){var D=(C.ownerDocument||document).createEvent("HTMLEvents");D.initEvent(G,!!B.bubbles,!!B.cancelable);for(var E in B)E in D||(D[E]=B[E]);return C.dispatchEvent(D)&&D}return c.apply(d,arguments)};else{d._fixEvent=function(C,G){C||(C=(G&&(G.ownerDocument||G.document||G).parentWindow||window).event);if(!C)return C;try{p&&C.type==p.type&&C.srcElement==p.target&&(C=p)}catch(D){}if(!C.target)switch(C.target=C.srcElement,C.currentTarget=G||C.srcElement,"mouseover"==
C.type&&(C.relatedTarget=C.fromElement),"mouseout"==C.type&&(C.relatedTarget=C.toElement),C.stopPropagation||(C.stopPropagation=w,C.preventDefault=t),C.type){case "keypress":var B="charCode"in C?C.charCode:C.keyCode;10==B?(B=0,C.keyCode=13):13==B||27==B?B=0:3==B&&(B=99);C.charCode=B;B=C;B.keyChar=B.charCode?String.fromCharCode(B.charCode):"";B.charOrCode=B.keyChar||B.keyCode}return C};var p,l=function(C){this.handle=C};l.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};var n=function(C){return function(G){G=
d._fixEvent(G,this);var B=C.call(this,G);G.modified&&(p||setTimeout(function(){p=null}),p=G);return B}},q=function(C,G,B){B=n(B);if(((C.ownerDocument?C.ownerDocument.parentWindow:C.parentWindow||C.window||window)!=top||5.8>x("jscript"))&&!x("config-_allow_leaks")){"undefined"==typeof _dojoIEListeners_&&(_dojoIEListeners_=[]);var D=C[G];if(!D||!D.listeners){var E=D;D=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);}}");
D.listeners=[];C[G]=D;D.global=this;E&&D.listeners.push(_dojoIEListeners_.push(E)-1)}D.listeners.push(C=D.global._dojoIEListeners_.push(B)-1);return new l(C)}return u.after(C,G,B,!0)},w=function(){this.cancelBubble=!0},t=d._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey)try{this.keyCode=0}catch(C){}this.defaultPrevented=!0;this.returnValue=!1;this.modified=!0}}if(x("touch"))var v=function(){},y=window.orientation,z=function(C){return function(G){var B=G.corrected;if(!B){var D=
G.type;try{delete G.type}catch(I){}if(G.type){if(x("touch-can-modify-event-delegate"))v.prototype=G,B=new v;else{B={};for(var E in G)B[E]=G[E]}B.preventDefault=function(){G.preventDefault()};B.stopPropagation=function(){G.stopPropagation()}}else B=G,B.type=D;G.corrected=B;if("resize"==D){if(y==window.orientation)return null;y=window.orientation;B.type="orientationchange";return C.call(this,B)}"rotation"in B||(B.rotation=0,B.scale=1);if(window.TouchEvent&&G instanceof TouchEvent){D=B.changedTouches[0];
for(var J in D)delete B[J],B[J]=D[J]}}return C.call(this,B)}};return d})},"dojo/when":function(){define(["./Deferred","./promise/Promise"],function(u,A){return function(x,r,h,e){var g=x&&"function"===typeof x.then,d=g&&x instanceof A;if(!g)return 1<arguments.length?r?r(x):x:(new u).resolve(x);d||(g=new u(x.cancel),x.then(g.resolve,g.reject,g.progress),x=g.promise);return r||h||e?x.then(r,h,e):x}})},"dojo/date/stamp":function(){define(["../_base/lang","../_base/array"],function(u,A){var x={};u.setObject("dojo.date.stamp",
x);x.fromISOString=function(r,h){x._isoRegExp||(x._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/);var e=x._isoRegExp.exec(r),g=null;if(e){e.shift();e[1]&&e[1]--;e[6]&&(e[6]*=1E3);h&&(h=new Date(h),A.forEach(A.map("FullYear Month Date Hours Minutes Seconds Milliseconds".split(" "),function(a){return h["get"+a]()}),function(a,c){e[c]=e[c]||a}));g=new Date(e[0]||1970,e[1]||0,e[2]||1,e[3]||0,e[4]||0,e[5]||0,e[6]||0);100>e[0]&&
g.setFullYear(e[0]||1970);var d=0,b=e[7]&&e[7].charAt(0);"Z"!=b&&(d=60*(e[8]||0)+(Number(e[9])||0),"-"!=b&&(d*=-1));b&&(d-=g.getTimezoneOffset());d&&g.setTime(g.getTime()+6E4*d)}return g};x.toISOString=function(r,h){var e=function(c){return 10>c?"0"+c:c};h=h||{};var g=[],d=h.zulu?"getUTC":"get",b="";"time"!=h.selector&&(b=r[d+"FullYear"](),b=["0000".substr((b+"").length)+b,e(r[d+"Month"]()+1),e(r[d+"Date"]())].join("-"));g.push(b);if("date"!=h.selector){b=[e(r[d+"Hours"]()),e(r[d+"Minutes"]()),e(r[d+
"Seconds"]())].join(":");d=r[d+"Milliseconds"]();h.milliseconds&&(b+="."+(100>d?"0":"")+e(d));if(h.zulu)b+="Z";else if("time"!=h.selector){d=r.getTimezoneOffset();var a=Math.abs(d);b+=(0<d?"-":"+")+e(Math.floor(a/60))+":"+e(a%60)}g.push(b)}return g.join("T")};return x})},"dojo/json5":function(){define(["./json5/parse"],function(u){return{parse:u}})},"dojo/json5/parse":function(){define(["../string","./util"],function(u,A){function x(H,K,L){var N=H[K];if(null!=N&&"object"===typeof N)for(var Q in N){var P=
x(N,Q,L);void 0===P?delete N[Q]:N[Q]=P}return L.call(H,K,N)}function r(){if(l[w])return u.fromCodePoint(u.codePointAt(l,w))}function h(){var H=r();"\n"===H?(t++,v=0):H?v+=H.length:v++;H&&(w+=H.length);return H}function e(H,K){return{type:H,value:K,line:t,column:v}}function g(H){for(var K=0;K<H.length;K++){var L=H[K];if(r()!==L)throw f(h());h()}}function d(){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(A.isDigit(r()))throw f(h());return"\x00";case "x":h();var H="",K=r();if(!A.isHexDigit(K))throw f(h());H+=h();K=r();if(!A.isHexDigit(K))throw f(h());H+=h();return u.fromCodePoint(parseInt(H,16));case "u":return h(),b();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 f(h());case void 0:throw f(h());}return h()}function b(){for(var H="",K=4;0<K--;){var L=
r();if(!A.isHexDigit(L))throw f(h());H+=h()}return u.fromCodePoint(parseInt(H,16))}function a(){switch(y.type){case "punctuator":switch(y.value){case "{":var H={};break;case "[":H=[]}break;case "null":case "boolean":case "numeric":case "string":H=y.value}if(void 0===C)C=H;else{var K=q[q.length-1];Array.isArray(K)?K.push(H):K[z]=H}null!==H&&"object"===typeof H?(q.push(H),n=Array.isArray(H)?"beforeArrayValue":"beforePropertyName"):(H=q[q.length-1],n=null==H?"end":Array.isArray(H)?"afterArrayValue":
"afterPropertyValue")}function c(){q.pop();var H=q[q.length-1];n=null==H?"end":Array.isArray(H)?"afterArrayValue":"afterPropertyValue"}function f(H){if(void 0===H)H=p("JSON5: invalid end of input at "+t+":"+v);else{var K={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};K[H]?H=K[H]:" ">H&&(H=H.charCodeAt(0).toString(16),H="\\x"+("00"+H).substring(H.length));H=p("JSON5: invalid character '"+H+"' at "+
t+":"+v)}return H}function k(){return p("JSON5: invalid end of input at "+t+":"+v)}function m(){v-=5;return p("JSON5: invalid identifier character at "+t+":"+v)}function p(H){H=new SyntaxError(H);H.lineNumber=t;H.columnNumber=v;return H}var l,n,q,w,t,v,y,z,C,G,B,D,E,J,I={"default":function(){switch(J){case "\t":case "\v":case "\f":case " ":case "\u00a0":case "\ufeff":case "\n":case "\r":case "\u2028":case "\u2029":h();return;case "/":h();G="comment";return;case void 0:return h(),e("eof")}if(A.isSpaceSeparator(J))h();
else return I[n]()},comment:function(){switch(J){case "*":h();G="multiLineComment";return;case "/":h();G="singleLineComment";return}throw f(h());},multiLineComment:function(){switch(J){case "*":h();G="multiLineCommentAsterisk";return;case void 0:throw f(h());}h()},multiLineCommentAsterisk:function(){switch(J){case "*":h();return;case "/":h();G="default";return;case void 0:throw f(h());}h();G="multiLineComment"},singleLineComment:function(){switch(J){case "\n":case "\r":case "\u2028":case "\u2029":h();
G="default";return;case void 0:return h(),e("eof")}h()},value:function(){switch(J){case "{":case "[":return e("punctuator",h());case "n":return h(),g("ull"),e("null",null);case "t":return h(),g("rue"),e("boolean",!0);case "f":return h(),g("alse"),e("boolean",!1);case "-":case "+":"-"===h()&&(E=-1);G="sign";return;case ".":B=h();G="decimalPointLeading";return;case "0":B=h();G="zero";return;case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":B=h();G="decimalInteger";return;
case "I":return h(),g("nfinity"),e("numeric",Infinity);case "N":return h(),g("aN"),e("numeric",NaN);case '"':case "'":D='"'===h();B="";G="string";return}throw f(h());},identifierNameStartEscape:function(){if("u"!==J)throw f(h());h();var H=b();switch(H){case "$":case "_":break;default:if(!A.isIdStartChar(H))throw m();}B+=H;G="identifierName"},identifierName:function(){switch(J){case "$":case "_":case "\u200c":case "\u200d":B+=h();return;case "\\":h();G="identifierNameEscape";return}if(A.isIdContinueChar(J))B+=
h();else return e("identifier",B)},identifierNameEscape:function(){if("u"!==J)throw f(h());h();var H=b();switch(H){case "$":case "_":case "\u200c":case "\u200d":break;default:if(!A.isIdContinueChar(H))throw m();}B+=H;G="identifierName"},sign:function(){switch(J){case ".":B=h();G="decimalPointLeading";return;case "0":B=h();G="zero";return;case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":B=h();G="decimalInteger";return;case "I":return h(),g("nfinity"),e("numeric",Infinity*
E);case "N":return h(),g("aN"),e("numeric",NaN)}throw f(h());},zero:function(){switch(J){case ".":B+=h();G="decimalPoint";return;case "e":case "E":B+=h();G="decimalExponent";return;case "x":case "X":B+=h();G="hexadecimal";return}return e("numeric",0*E)},decimalInteger:function(){switch(J){case ".":B+=h();G="decimalPoint";return;case "e":case "E":B+=h();G="decimalExponent";return}if(A.isDigit(J))B+=h();else return e("numeric",E*Number(B))},decimalPointLeading:function(){if(A.isDigit(J))B+=h(),G="decimalFraction";
else throw f(h());},decimalPoint:function(){switch(J){case "e":case "E":B+=h();G="decimalExponent";return}if(A.isDigit(J))B+=h(),G="decimalFraction";else return e("numeric",E*Number(B))},decimalFraction:function(){switch(J){case "e":case "E":B+=h();G="decimalExponent";return}if(A.isDigit(J))B+=h();else return e("numeric",E*Number(B))},decimalExponent:function(){switch(J){case "+":case "-":B+=h();G="decimalExponentSign";return}if(A.isDigit(J))B+=h(),G="decimalExponentInteger";else throw f(h());},decimalExponentSign:function(){if(A.isDigit(J))B+=
h(),G="decimalExponentInteger";else throw f(h());},decimalExponentInteger:function(){if(A.isDigit(J))B+=h();else return e("numeric",E*Number(B))},hexadecimal:function(){if(A.isHexDigit(J))B+=h(),G="hexadecimalInteger";else throw f(h());},hexadecimalInteger:function(){if(A.isHexDigit(J))B+=h();else return e("numeric",E*Number(B))},string:function(){switch(J){case "\\":h();B+=d();return;case '"':if(D)return h(),e("string",B);B+=h();return;case "'":if(!D)return h(),e("string",B);B+=h();return;case "\n":case "\r":throw f(h());
case void 0:throw f(h());}B+=h()},start:function(){switch(J){case "{":case "[":return e("punctuator",h())}G="value"},beforePropertyName:function(){switch(J){case "$":case "_":B=h();G="identifierName";return;case "\\":h();G="identifierNameStartEscape";return;case "}":return e("punctuator",h());case '"':case "'":D='"'===h();G="string";return}if(A.isIdStartChar(J))B+=h(),G="identifierName";else throw f(h());},afterPropertyName:function(){if(":"===J)return e("punctuator",h());throw f(h());},beforePropertyValue:function(){G=
"value"},afterPropertyValue:function(){switch(J){case ",":case "}":return e("punctuator",h())}throw f(h());},beforeArrayValue:function(){if("]"===J)return e("punctuator",h());G="value"},afterArrayValue:function(){switch(J){case ",":case "]":return e("punctuator",h())}throw f(h());},end:function(){throw f(h());}},F={start:function(){if("eof"===y.type)throw k();a()},beforePropertyName:function(){switch(y.type){case "identifier":case "string":z=y.value;n="afterPropertyName";break;case "punctuator":c();
break;case "eof":throw k();}},afterPropertyName:function(){if("eof"===y.type)throw k();n="beforePropertyValue"},beforePropertyValue:function(){if("eof"===y.type)throw k();a()},beforeArrayValue:function(){if("eof"===y.type)throw k();"punctuator"===y.type&&"]"===y.value?c():a()},afterPropertyValue:function(){if("eof"===y.type)throw k();switch(y.value){case ",":n="beforePropertyName";break;case "}":c()}},afterArrayValue:function(){if("eof"===y.type)throw k();switch(y.value){case ",":n="beforeArrayValue";
break;case "]":c()}},end:function(){}};return function(H,K){l=String(H);n="start";q=[];w=0;t=1;v=0;C=z=y=void 0;do{a:for(G="default",B="",D=!1,E=1;;){J=r();var L=I[G]();if(L){y=L;break a}}F[n]()}while("eof"!==y.type);return"function"===typeof K?x({"":C},"",K):C}})},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(u,A){var x=/[&<>'"\/]/g,r={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","/":"\x26#x2F;"},h={};A.setObject("dojo.string",h);
h.escape=function(e){return e?e.replace(x,function(g){return r[g]}):""};h.codePointAt=String.prototype.codePointAt?function(e,g){return String.prototype.codePointAt.call(e,g)}:function(e,g){if(null==e)throw new TypeError("codePointAt called on null or undefined");e=String(e);var d=e.length;var b=g?Number(g):0;b!=b&&(b=0);if(!(0>b||b>=d)){var a=e.charCodeAt(b);return 55296<=a&&56319>=a&&d>b+1&&(d=e.charCodeAt(b+1),56320<=d&&57343>=d)?1024*(a-55296)+d-56320+65536:a}};h.fromCodePoint=String.fromCodePoint||
function(){var e=[],g=0,d="";var b=0;for(len=arguments.length;b!==len;++b){g=+arguments[b];if(!(1114111>g&&g>>>0===g))throw RangeError("Invalid code point: "+g);65535>=g?g=e.push(g):(g-=65536,g=e.push((g>>10)+55296,g%1024+56320));16383<=g&&(d+=String.fromCharCode.apply(null,e),e.length=0)}return d+String.fromCharCode.apply(null,e)};h.rep=function(e,g){if(0>=g||!e)return"";for(var d=[];;){g&1&&d.push(e);if(!(g>>=1))break;e+=e}return d.join("")};h.pad=function(e,g,d,b){d||(d="0");e=String(e);g=h.rep(d,
Math.ceil((g-e.length)/d.length));return b?e+g:g+e};h.substitute=function(e,g,d,b){b=b||u.global;d=d?A.hitch(b,d):function(a){return a};return e.replace(/\$\{([^\s:\}]*)(?::([^\s:\}]+))?\}/g,function(a,c,f){if(""==c)return"$";a=A.getObject(c,!1,g);f&&(a=A.getObject(f,!1,b).call(b,a,c));f=d(a,c);if("undefined"===typeof f)throw Error('string.substitute could not find key "'+c+'" in template');return f.toString()})};h.trim=String.prototype.trim?A.trim:function(e){e=e.replace(/^\s+/,"");for(var g=e.length-
1;0<=g;g--)if(/\S/.test(e.charAt(g))){e=e.substring(0,g+1);break}return e};return h})},"dojo/json5/util":function(){define(["./unicode"],function(u){return{isSpaceSeparator:function(A){return"string"===typeof A&&u.Space_Separator.test(A)},isIdStartChar:function(A){return"string"===typeof A&&("a"<=A&&"z">=A||"A"<=A&&"Z">=A||"$"===A||"_"===A||u.ID_Start.test(A))},isIdContinueChar:function(A){return"string"===typeof A&&("a"<=A&&"z">=A||"A"<=A&&"Z">=A||"0"<=A&&"9">=A||"$"===A||"_"===A||"\u200c"===A||
"\u200d"===A||u.ID_Continue.test(A))},isDigit:function(A){return"string"===typeof A&&/[0-9]/.test(A)},isHexDigit:function(A){return"string"===typeof A&&/[0-9A-Fa-f]/.test(A)}}})},"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]/})},
"dojo/query":function(){define("./_base/kernel ./has ./dom ./on ./_base/array ./_base/lang ./selector/_loader ./selector/_loader!default".split(" "),function(u,A,x,r,h,e,g,d){function b(w,t){var v=function(z,C){if("string"==typeof C&&(C=x.byId(C),!C))return new t([]);var G="string"==typeof z?w(z,C):z?z.end&&z.on?z:[z]:[];return G.end&&G.on?G:new t(G)};v.matches=w.match||function(z,C,G){return 0<v.filter([z],C,G).length};v.filter=w.filter||function(z,C,G){return v(C,G).filter(function(B){return-1<
h.indexOf(z,B)})};if("function"!=typeof w){var y=w.search;w=function(z,C){return y(C||document,z)}}return v}A.add("array-extensible",function(){return 1==e.delegate([],{length:1}).length&&!A("bug-for-in-skips-shadowed")});var a=Array.prototype,c=a.slice,f=a.concat,k=h.forEach,m=function(w,t,v){t=[0].concat(c.call(t,0));v=v||u.global;return function(y){t[0]=y;return w.apply(v,t)}},p=function(w){var t=this instanceof l&&A("array-extensible");"number"==typeof w&&(w=Array(w));var v=w&&"length"in w?w:
arguments;if(t||!v.sort){for(var y=t?this:[],z=y.length=v.length,C=0;C<z;C++)y[C]=v[C];if(t)return y;v=y}e._mixin(v,n);v._NodeListCtor=function(G){return l(G)};return v},l=p,n=l.prototype=A("array-extensible")?[]:{};l._wrap=n._wrap=function(w,t,v){w=new (v||this._NodeListCtor||l)(w);return t?w._stash(t):w};l._adaptAsMap=function(w,t){return function(){return this.map(m(w,arguments,t))}};l._adaptAsForEach=function(w,t){return function(){this.forEach(m(w,arguments,t));return this}};l._adaptAsFilter=
function(w,t){return function(){return this.filter(m(w,arguments,t))}};l._adaptWithCondition=function(w,t,v){return function(){var y=arguments,z=m(w,y,v);if(t.call(v||u.global,y))return this.map(z);this.forEach(z);return this}};k(["slice","splice"],function(w){var t=a[w];n[w]=function(){return this._wrap(t.apply(this,arguments),"slice"==w?this:null)}});k(["indexOf","lastIndexOf","every","some"],function(w){var t=h[w];n[w]=function(){return t.apply(u,[this].concat(c.call(arguments,0)))}});e.extend(p,
{constructor:l,_NodeListCtor:l,toString:function(){return this.join(",")},_stash:function(w){this._parent=w;return this},on:function(w,t){var v=this.map(function(y){return r(y,w,t)});v.remove=function(){for(var y=0;y<v.length;y++)v[y].remove()};return v},end:function(){return this._parent?this._parent:new this._NodeListCtor(0)},concat:function(w){var t=c.call(this,0),v=h.map(arguments,function(y){return c.call(y,0)});return this._wrap(f.apply(t,v),this)},map:function(w,t){return this._wrap(h.map(this,
w,t),this)},forEach:function(w,t){k(this,w,t);return this},filter:function(w){var t=arguments,v=this,y=0;if("string"==typeof w){v=q._filterResult(this,t[0]);if(1==t.length)return v._stash(this);y=1}return this._wrap(h.filter(v,t[y],t[y+1]),this)},instantiate:function(w,t){var v=e.isFunction(w)?w:e.getObject(w);t=t||{};return this.forEach(function(y){new v(t,y)})},at:function(){var w=new this._NodeListCtor(0);k(arguments,function(t){0>t&&(t=this.length+t);this[t]&&w.push(this[t])},this);return w._stash(this)}});
var q=b(d,p);u.query=b(d,function(w){return p(w)});q.load=function(w,t,v){g.load(w,t,function(y){v(b(y,p))})};u._filterQueryResult=q._filterResult=function(w,t,v){return new p(q.filter(w,t,v))};u.NodeList=q.NodeList=p;return q})},"dojo/selector/_loader":function(){define(["../has","require"],function(u,A){if("undefined"!==typeof document){var x=document.createElement("div");u.add("dom-qsa2.1",!!x.querySelectorAll);u.add("dom-qsa3",function(){try{return x.innerHTML="\x3cp class\x3d'TEST'\x3e\x3c/p\x3e",
1==x.querySelectorAll(".TEST:empty").length}catch(h){}})}var r;return{load:function(h,e,g,d){if(d&&d.isBuild)g();else{d=A;h="default"==h?u("config-selectorEngine")||"css3":h;h="css2"==h||"lite"==h?"./lite":"css2.1"==h?u("dom-qsa2.1")?"./lite":"./acme":"css3"==h?u("dom-qsa3")?"./lite":"./acme":"acme"==h?"./acme":(d=e)&&h;if("?"==h.charAt(h.length-1)){h=h.substring(0,h.length-1);var b=!0}if(b&&(u("dom-compliant-qsa")||r))return g(r);d([h],function(a){"./lite"!=h&&(r=a);g(a)})}}}})},"dojo/selector/lite":function(){define(["../has",
"../_base/kernel"],function(u,A){var x=document.createElement("div"),r=x.matches||x.webkitMatchesSelector||x.mozMatchesSelector||x.msMatchesSelector||x.oMatchesSelector,h=x.querySelectorAll,e=/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g;u.add("dom-matches-selector",!!r);u.add("dom-qsa",!!h);var g=function(c,f){if(a&&-1<c.indexOf(","))return a(c,f);var k=f?f.ownerDocument||f:A.doc||document,m=(h?/^([\w]*)#([\w\-]+$)|^(\.)([\w\-\*]+$)|^(\w+$)/:/^([\w]*)#([\w\-]+)(?:\s+(.*))?$|(?:^|(>|.+\s+))([\w\-\*]+)(\S*$)/).exec(c);
f=f||k;if(m){var p=8===u("ie")&&u("quirks")?f.nodeType===k.nodeType:null!==f.parentNode&&9!==f.nodeType&&f.parentNode===k;if(m[2]&&p){var l=A.byId?A.byId(m[2],k):k.getElementById(m[2]);if(!l||m[1]&&m[1]!=l.tagName.toLowerCase())return[];if(f!=k)for(k=l;k!=f;)if(k=k.parentNode,!k)return[];return m[3]?g(m[3],l):[l]}if(m[3]&&f.getElementsByClassName)return f.getElementsByClassName(m[4]);if(m[5])if(l=f.getElementsByTagName(m[5]),m[4]||m[6])c=(m[4]||"")+m[6];else return l}if(h)return 1===f.nodeType&&"object"!==
f.nodeName.toLowerCase()?d(f,c,f.querySelectorAll):f.querySelectorAll(c);l||(l=f.getElementsByTagName("*"));m=[];k=0;for(p=l.length;k<p;k++){var n=l[k];1==n.nodeType&&b(n,c,f)&&m.push(n)}return m},d=function(c,f,k){var m=c,p=c.getAttribute("id"),l=p||"__dojo__",n=c.parentNode,q=/^\s*[+~]/.test(f);if(q&&!n)return[];p?l=l.replace(/'/g,"\\$\x26"):c.setAttribute("id",l);q&&n&&(c=c.parentNode);f=f.match(e);for(n=0;n<f.length;n++)f[n]="[id\x3d'"+l+"'] "+f[n];f=f.join(",");try{return k.call(c,f)}finally{p||
m.removeAttribute("id")}};if(!u("dom-matches-selector"))var b=function(){function c(w,t,v){var y=t.charAt(0);if('"'==y||"'"==y)t=t.slice(1,-1);t=t.replace(/\\/g,"");var z=n[v||""];return function(C){return(C=C.getAttribute(w))&&z(C,t)}}function f(w){return function(t,v){for(;(t=t.parentNode)!=v;)if(w(t,v))return!0}}function k(w){return function(t,v){t=t.parentNode;return w?t!=v&&w(t,v):t==v}}function m(w,t){return w?function(v,y){return t(v)&&w(v,y)}:t}var p="div"==x.tagName?"toLowerCase":"toUpperCase",
l={"":function(w){w=w[p]();return function(t){return t.tagName==w}},".":function(w){var t=" "+w+" ";return function(v){return-1<v.className.indexOf(w)&&-1<(" "+v.className+" ").indexOf(t)}},"#":function(w){return function(t){return t.id==w}}},n={"^\x3d":function(w,t){return 0==w.indexOf(t)},"*\x3d":function(w,t){return-1<w.indexOf(t)},"$\x3d":function(w,t){return w.substring(w.length-t.length,w.length)==t},"~\x3d":function(w,t){return-1<(" "+w+" ").indexOf(" "+t+" ")},"|\x3d":function(w,t){return 0==
(w+"-").indexOf(t+"-")},"\x3d":function(w,t){return w==t},"":function(w,t){return!0}},q={};return function(w,t,v){var y=q[t];if(!y){if(t.replace(/(?:\s*([> ])\s*)|(#|\.)?((?:\\.|[\w-])+)|\[\s*([\w-]+)\s*(.?=)?\s*("(?:\\.|[^"])+"|'(?:\\.|[^'])+'|(?:\\.|[^\]])*)\s*\]/g,function(z,C,G,B,D,E,J){B?y=m(y,l[G||""](B.replace(/\\/g,""))):C?y=(" "==C?f:k)(y):D&&(y=m(y,c(D,J,E)));return""}))throw Error("Syntax error in query");if(!y)return!0;q[t]=y}return y(w,v)}}();if(!u("dom-qsa"))var a=function(c,f){for(var k=
c.match(e),m=[],p=0;p<k.length;p++){c=new String(k[p].replace(/\s*$/,""));c.indexOf=escape;for(var l=g(c,f),n=0,q=l.length;n<q;n++){var w=l[n];m[w.sourceIndex]=w}}k=[];for(p in m)k.push(m[p]);return k};g.match=r?function(c,f,k){return k&&9!=k.nodeType?d(k,f,function(m){return r.call(c,m)}):r.call(c,f)}:b;return g})},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],function(u,A,x,r,h){var e=0,g=[],d=0;A=function(){e=1;u._postLoad=u.config.afterOnLoad=
!0;b()};var b=function(){if(!d){for(d=1;e&&(!r||0==r._Q.length)&&(x.idle?x.idle():1)&&g.length;){var f=g.shift();try{f()}catch(k){if(k.info=k.message,x.signal)x.signal("error",k);else throw k;}}d=0}};x.on&&x.on("idle",b);r&&(r._onQEmpty=b);var a=u.ready=u.addOnLoad=function(f,k,m){var p=h._toArray(arguments);"number"!=typeof f?(m=k,k=f,f=1E3):p.shift();m=m?h.hitch.apply(u,p):function(){k()};m.priority=f;for(p=0;p<g.length&&f>=g[p].priority;p++);g.splice(p,0,m);b()},c=u.config.addOnLoad;if(c)a[h.isArray(c)?
"apply":"call"](u,c);u.config.parseOnLoad&&!u.isAsync&&a(99,function(){u.parser||(u.deprecated("Add explicit require(['dojo/parser']);","","2.0"),x(["dojo/parser"]))});r?r(A):A();return a})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(u,A,x){function r(B,D){throw Error("declare"+(D?" "+D:"")+": "+B);}function h(B,D){for(var E=[],J=[{cls:0,refs:[]}],I={},F=1,H=B.length,K=0,L,N,Q,P,S;K<H;++K){(L=B[K])?"[object Function]"!=y.call(L)&&r("mixin #"+K+" is not a callable constructor.",
D):r("mixin #"+K+" is unknown. Did you use dojo.require to pull it in?",D);N=L._meta?L._meta.bases:[L];Q=0;for(L=N.length-1;0<=L;--L)P=N[L].prototype,P.hasOwnProperty("declaredClass")||(P.declaredClass="uniqName_"+z++),P=P.declaredClass,I.hasOwnProperty(P)||(I[P]={count:0,refs:[],cls:N[L]},++F),P=I[P],Q&&Q!==P&&(P.refs.push(Q),++Q.count),Q=P;++Q.count;J[0].refs.push(Q)}for(;J.length;){Q=J.pop();E.push(Q.cls);for(--F;S=Q.refs,1==S.length;){Q=S[0];if(!Q||--Q.count){Q=0;break}E.push(Q.cls);--F}if(Q)for(K=
0,H=S.length;K<H;++K)Q=S[K],--Q.count||J.push(Q)}F&&r("can't build consistent linearization",D);L=B[0];E[0]=L?L._meta&&L===E[E.length-L._meta.bases.length]?L._meta.bases.length:1:0;return E}function e(B,D,E,J){var I,F=this._inherited=this._inherited||{};if("string"===typeof B){var H=B;B=D;D=E;E=J}if("function"===typeof B){var K=B;B=D;D=E}else try{K=B.callee}catch(P){if(P instanceof TypeError)r("strict mode inherited() requires the caller function to be passed before arguments",this.declaredClass);
else throw P;}(H=H||K.nom)||r("can't deduce a name to call inherited()",this.declaredClass);E=J=0;var L=this.constructor._meta;J=L.bases;var N=F.p;if("constructor"!=H){if(F.c!==K){N=0;var Q=J[0];L=Q._meta;if(L.hidden[H]!==K){(I=L.chains)&&"string"==typeof I[H]&&r("calling chained method with inherited: "+H,this.declaredClass);do if(L=Q._meta,I=Q.prototype,L&&(I[H]===K&&I.hasOwnProperty(H)||L.hidden[H]===K))break;while(Q=J[++N]);N=Q?N:-1}}if(Q=J[++N])if(I=Q.prototype,Q._meta&&I.hasOwnProperty(H))E=
I[H];else{K=v[H];do if(I=Q.prototype,(E=I[H])&&(Q._meta?I.hasOwnProperty(H):E!==K))break;while(Q=J[++N])}E=Q&&E||v[H]}else{if(F.c!==K&&(N=0,(L=J[0]._meta)&&L.ctor!==K)){for((I=L.chains)&&"manual"===I.constructor||r("calling chained constructor with inherited",this.declaredClass);(Q=J[++N])&&(!(L=Q._meta)||L.ctor!==K););N=Q?N:-1}for(;(Q=J[++N])&&!(E=(L=Q._meta)?L.ctor:Q););E=Q&&E}F.c=E;F.p=N;if(E)return!0===D?E:E.apply(this,D||B)}function g(B,D,E){return"string"===typeof B?"function"===typeof D?this.__inherited(B,
D,E,!0):this.__inherited(B,D,!0):"function"===typeof B?this.__inherited(B,D,!0):this.__inherited(B,!0)}function d(B,D,E,J){var I=this.getInherited(B,D,E);if(I)return I.apply(this,J||E||D||B)}function b(B){for(var D=this.constructor._meta.bases,E=0,J=D.length;E<J;++E)if(D[E]===B)return!0;return this instanceof B}function a(B,D){for(var E in D)"constructor"!=E&&D.hasOwnProperty(E)&&(B[E]=D[E]);if(A("bug-for-in-skips-shadowed"))for(var J=x._extraNames,I=J.length;I;)E=J[--I],"constructor"!=E&&D.hasOwnProperty(E)&&
(B[E]=D[E])}function c(B){w.safeMixin(this.prototype,B);return this}function f(B,D){B instanceof Array||"function"===typeof B||(D=B,B=void 0);D=D||{};B=B||[];return w([this].concat(B),D)}function k(B,D){return function(){var E=arguments,J=E,I=E[0],F;var H=B.length;if(!(this instanceof E.callee))return q(E);if(D&&(I&&I.preamble||this.preamble)){var K=Array(B.length);K[0]=E;for(F=0;;){(I=E[0])&&(I=I.preamble)&&(E=I.apply(this,E)||E);I=B[F].prototype;(I=I.hasOwnProperty("preamble")&&I.preamble)&&(E=
I.apply(this,E)||E);if(++F==H)break;K[F]=E}}for(F=H-1;0<=F;--F)I=B[F],(I=(H=I._meta)?H.ctor:I)&&I.apply(this,K?K[F]:E);(I=this.postscript)&&I.apply(this,J)}}function m(B,D){return function(){var E=arguments,J=E,I=E[0];if(!(this instanceof E.callee))return q(E);D&&(I&&(I=I.preamble)&&(J=I.apply(this,J)||J),(I=this.preamble)&&I.apply(this,J));B&&B.apply(this,E);(I=this.postscript)&&I.apply(this,E)}}function p(B){return function(){var D=arguments,E=0,J,I;if(!(this instanceof D.callee))return q(D);for(;J=
B[E];++E)if(J=(I=J._meta)?I.ctor:J){J.apply(this,D);break}(J=this.postscript)&&J.apply(this,D)}}function l(B,D,E){return function(){var J,I=0,F=1;E&&(I=D.length-1,F=-1);for(;J=D[I];I+=F){var H=J._meta;(J=(H?H.hidden:J.prototype)[B])&&J.apply(this,arguments)}}}function n(B){C.prototype=B.prototype;B=new C;C.prototype=null;return B}function q(B){var D=B.callee,E=n(D);D.apply(E,B);return E}function w(B,D,E){"string"!=typeof B&&(E=D,D=B,B="");E=E||{};var J,I,F,H=1,K=D;if("[object Array]"==y.call(D)){var L=
h(D,B);var N=L[0];H=L.length-N;D=L[H]}else L=[0],D?"[object Function]"==y.call(D)?(N=D._meta,L=L.concat(N?N.bases:D)):r("base class is not a callable constructor.",B):null!==D&&r("unknown base class. Did you use dojo.require to pull it in?",B);if(D)for(J=H-1;;--J){var Q=n(D);if(!J)break;N=L[J];(N._meta?a:t)(Q,N.prototype);var P=A("csp-restrictions")?function(){}:new Function;P.superclass=D;P.prototype=Q;D=Q.constructor=P}else Q={};w.safeMixin(Q,E);N=E.constructor;N!==v.constructor&&(N.nom="constructor",
Q.constructor=N);for(J=H-1;J;--J)(N=L[J]._meta)&&N.chains&&(F=t(F||{},N.chains));Q["-chains-"]&&(F=t(F||{},Q["-chains-"]));D&&D.prototype&&D.prototype["-chains-"]&&(F=t(F||{},D.prototype["-chains-"]));N=!F||!F.hasOwnProperty("constructor");L[0]=P=F&&"manual"===F.constructor?p(L):1==L.length?m(E.constructor,N):k(L,N);P._meta={bases:L,hidden:E,chains:F,parents:K,ctor:E.constructor};P.superclass=D&&D.prototype;P.extend=c;P.createSubclass=f;P.prototype=Q;Q.constructor=P;Q.getInherited=g;Q.isInstanceOf=
b;Q.inherited=G;Q.__inherited=e;B&&(Q.declaredClass=B,x.setObject(B,P));if(F)for(I in F)Q[I]&&"string"==typeof F[I]&&"constructor"!=I&&(N=Q[I]=l(I,L,"after"===F[I]),N.nom=I);return P}var t=x.mixin,v=Object.prototype,y=v.toString,z=0;var C=A("csp-restrictions")?function(){}:new Function;var G=u.config.isDebug?d:e;u.safeMixin=w.safeMixin=function(B,D){for(F in D){var E=D[F];E===v[F]&&F in v||"constructor"==F||("[object Function]"==y.call(E)&&(E.nom=F),B[F]=E)}if(A("bug-for-in-skips-shadowed")&&D)for(var J=
x._extraNames,I=J.length;I;){var F=J[--I];E=D[F];E===v[F]&&F in v||"constructor"==F||("[object Function]"==y.call(E)&&(E.nom=F),B[F]=E)}return B};return u.declare=w})},"dojo/require":function(){define(["./_base/loader"],function(u){return{dynamic:0,normalize:function(A){return A},load:u.require}})},"dojo/_base/loader":function(){define("./kernel ../has require module ../json ./lang ./array".split(" "),function(u,A,x,r,h,e,g){var d=function(Q){return Q.replace(/\./g,"/")},b=/\/\/>>built/,a=[],c=[],
f=function(Q,P,S){a.push(S);g.forEach(Q.split(","),function(M){M=E(M,P.module);c.push(M);J(M)});k()},k=function(){var Q;for(Q in B){var P=B[Q];void 0===P.noReqPluginCheck&&(P.noReqPluginCheck=/loadInit!/.test(Q)||/require!/.test(Q)?1:0);if(!P.executed&&!P.noReqPluginCheck&&P.injected==t)return}N(function(){var S=a;a=[];g.forEach(S,function(M){M(1)})})},m=/\/\/.*|\/\*[\s\S]*?\*\/|("(?:\\.|[^"])*"|'(?:\\.|[^'])*'|`(?:\\.|[^`])*`)/mg,p=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,
l=/(^|\s)(require|define)\s*\(/m,n=function(Q,P){var S=[],M=[];var R=[];for(P=P||Q.replace(m,"$1");R=p.exec(P);){var T=p.lastIndex;var X=T-R[0].length;var Z=void 0,da=P,ba=/\(|\)/g,fa=1;for(ba.lastIndex=T;(Z=ba.exec(da))&&(fa=")"==Z[0]?fa-1:fa+1,0!=fa););if(0!=fa)throw"unmatched paren around character "+ba.lastIndex+" in: "+da;T=[u.trim(da.substring(X,ba.lastIndex))+";\n",ba.lastIndex];"loadInit"==R[2]?S.push(T[0]):M.push(T[0]);p.lastIndex=T[1]}R=S.concat(M);return R.length||!l.test(P)?[Q.replace(/(^|\s)dojo\.loadInit\s*\(/g,
"\n0 \x26\x26 dojo.loadInit("),R.join(""),R]:0},q=x.initSyncLoader(f,k,function(Q,P){var S,M=[],R=[];if(b.test(P)||!(S=n(P)))return 0;var T=Q.mid+"-*loadInit";for(var X in E("dojo",Q).result.scopeMap)M.push(X),R.push('"'+X+'"');return"// xdomain rewrite of "+Q.mid+"\ndefine('"+T+"',{\n\tnames:"+h.stringify(M)+",\n\tdef:function("+M.join(",")+"){"+S[1]+"}});\n\ndefine("+h.stringify(M.concat(["dojo/loadInit!"+T]))+", function("+M.join(",")+"){\n"+S[0]+"});"}),w=q.sync,t=q.requested,v=q.arrived,y=q.nonmodule,
z=q.executing,C=q.executed,G=q.syncExecStack,B=q.modules,D=q.execQ,E=q.getModule,J=q.injectModule,I=q.setArrived,F=q.signal,H=q.finishExec,K=q.execModule,L=q.getLegacyMode,N=q.guardCheckComplete;f=q.dojoRequirePlugin;u.provide=function(Q){var P=G[0],S=e.mixin(E(d(Q),x.module),{executed:z,result:e.getObject(Q,!0)});I(S);P&&(P.provides||(P.provides=[])).push(function(){S.result=e.getObject(Q);delete S.provides;S.executed!==C&&H(S)});return S.result};A.add("config-publishRequireResult",1,0,0);u.require=
function(Q,P){var S=function(M,R){var T=E(d(M),x.module);if(G.length&&G[0].finish)G[0].finish.push(M);else{if(T.executed)return T.result;R&&(T.result=y);var X=L();J(T);X=L();T.executed!==C&&T.injected===v&&q.guardCheckComplete(function(){K(T)});if(T.executed)return T.result;X==w?T.cjs?D.unshift(T):G.length&&(G[0].finish=[M]):D.push(T)}}(Q,P);A("config-publishRequireResult")&&!e.exists(Q)&&void 0!==S&&e.setObject(Q,S);return S};u.loadInit=function(Q){Q()};u.registerModulePath=function(Q,P){var S={};
S[Q.replace(/\./g,"/")]=P;x({paths:S})};u.platformRequire=function(Q){Q=(Q.common||[]).concat(Q[u._name]||Q["default"]||[]);for(var P;Q.length;)e.isArray(P=Q.shift())?u.require.apply(u,P):u.require(P)};u.requireIf=u.requireAfterIf=function(Q,P,S){Q&&u.require(P,S)};u.requireLocalization=function(Q,P,S){x(["../i18n"],function(M){M.getLocalization(Q,P,S)})};return{extractLegacyApiApplications:n,require:f,loadInit:function(Q,P,S){P([Q],function(M){P(M.names,function(){for(var R="",T=[],X=0;X<arguments.length;X++)R+=
"var "+M.names[X]+"\x3d arguments["+X+"]; ",T.push(arguments[X]);eval(R);var Z=P.module,da=[],ba;R={provide:function(ca){ca=d(ca);ca=E(ca,Z);ca!==Z&&I(ca)},require:function(ca,ia){ca=d(ca);ia&&(E(ca,Z).result=y);da.push(ca)},requireLocalization:function(ca,ia,ha){ba||(ba=["dojo/i18n"]);ha=(ha||u.locale).toLowerCase();ca=d(ca)+"/nls/"+(/root/i.test(ha)?"":ha+"/")+d(ia);E(ca,Z).isXd&&ba.push("dojo/i18n!"+ca)},loadInit:function(ca){ca()}};X={};var fa;try{for(fa in R)X[fa]=u[fa],u[fa]=R[fa];M.def.apply(null,
T)}catch(ca){F("error",[{src:r.id,id:"failedDojoLoadInit"},ca])}finally{for(fa in R)u[fa]=X[fa]}ba&&(da=da.concat(ba));da.length?f(da.join(","),P,S):S()})})}}})},"dojo/json":function(){define(["./has"],function(u){var A="undefined"!=typeof JSON;u.add("json-parse",A);u.add("json-stringify",A&&'{"a":1}'==JSON.stringify({a:0},function(r,h){return h||1}));if(u("json-stringify"))return JSON;var x=function(r){return('"'+r.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:u("json-parse")?JSON.parse:function(r,h){if(h&&!/^([\s\[\{]*(?:"(?:\\.|[^"])*"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(r))throw new SyntaxError("Invalid characters in JSON");return eval("("+r+")")},stringify:function(r,h,e){function g(b,a,c){h&&(b=h(c,b));var f=typeof b;if("number"==f)return isFinite(b)?b+"":"null";if("boolean"==f)return b+"";if(null===b)return"null";if("string"==typeof b)return x(b);
if("function"==f||"undefined"==f)return d;if("function"==typeof b.toJSON)return g(b.toJSON(c),a,c);if(b instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,function(q,w,t){q=b["getUTC"+w]()+(t?1:0);return 10>q?"0"+q:q});if(b.valueOf()!==b)return g(b.valueOf(),a,c);var k=e?a+e:"",m=e?" ":"",p=e?"\n":"";if(b instanceof Array){m=b.length;var l=[];for(c=0;c<m;c++)f=g(b[c],k,c),"string"!=typeof f&&(f="null"),l.push(p+k+f);return"["+l.join(",")+p+
a+"]"}l=[];for(c in b)if(b.hasOwnProperty(c)){if("number"==typeof c)var n='"'+c+'"';else if("string"==typeof c)n=x(c);else continue;f=g(b[c],k,c);"string"==typeof f&&l.push(p+k+n+":"+m+f)}return"{"+l.join(",")+p+a+"}"}var d;"string"==typeof h&&(e=h,h=null);return g(r,"","")}}})},"dijit/registry":function(){define(["dojo/_base/array","dojo/_base/window","./main"],function(u,A,x){var r={},h={},e={length:0,add:function(g){if(h[g.id])throw Error("Tried to register widget with id\x3d\x3d"+g.id+" but that id is already registered");
h[g.id]=g;this.length++},remove:function(g){h[g]&&(delete h[g],this.length--)},byId:function(g){return"string"==typeof g?h[g]:g},byNode:function(g){return h[g.getAttribute("widgetId")]},toArray:function(){var g=[],d;for(d in h)g.push(h[d]);return g},getUniqueId:function(g){do var d=g+"_"+(g in r?++r[g]:r[g]=0);while(h[d]);return"dijit"==x._scopeName?d:x._scopeName+"_"+d},findWidgets:function(g,d){function b(c){for(c=c.firstChild;c;c=c.nextSibling)if(1==c.nodeType){var f=c.getAttribute("widgetId");
f?(f=h[f])&&a.push(f):c!==d&&b(c)}}var a=[];b(g);return a},_destroyAll:function(){x._curFocus=null;x._prevFocus=null;x._activeStack=[];u.forEach(e.findWidgets(A.body()),function(g){g._destroyed||(g.destroyRecursive?g.destroyRecursive():g.destroy&&g.destroy())})},getEnclosingWidget:function(g){for(;g;){var d=1==g.nodeType&&g.getAttribute("widgetId");if(d)return h[d];g=g.parentNode}return null},_hash:h};return x.registry=e})},"dijit/main":function(){define(["dojo/_base/kernel"],function(u){return u.dijit})},
"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(u,A,x,r,h,e,g,d,b,a,c){d=u("dijit.form.TextBox"+(g("dojo-bidi")?"_NoBidi":""),[d,b],{templateString:a,_singleNodeTemplate:'\x3cinput class\x3d"dijit dijitReset dijitLeft dijitInputField" data-dojo-attach-point\x3d"textbox,focusNode" autocomplete\x3d"off" type\x3d"${type}" ${!nameAttrSetting} /\x3e',
_buttonInputDisabled:g("ie")?"disabled":"",baseClass:"dijitTextBox",postMixInProperties:function(){var f=this.type.toLowerCase();if(this.templateString&&"input"==this.templateString.toLowerCase()||("hidden"==f||"file"==f)&&this.templateString==this.constructor.prototype.templateString)this.templateString=this._singleNodeTemplate;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);9>g("ie")&&this.defer(function(){try{var f=x.getComputedStyle(this.domNode);if(f){var k=f.fontFamily;
if(k){var m=this.domNode.getElementsByTagName("INPUT");if(m)for(f=0;f<m.length;f++)m[f].style.fontFamily=k}}}catch(p){}})},_setPlaceHolderAttr:function(f){this._set("placeHolder",f);this._phspan||(this._attachPoints.push("_phspan"),this._phspan=A.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after"),this.own(e(this._phspan,"mousedown",function(k){k.preventDefault()}),e(this._phspan,"touchend, pointerup, MSPointerUp",h.hitch(this,function(){this.focus()}))));this._phspan.innerHTML=
"";this._phspan.appendChild(this._phspan.ownerDocument.createTextNode(f));this._updatePlaceHolder()},_onInput:function(f){this.inherited(arguments);this._updatePlaceHolder()},_updatePlaceHolder:function(){this._phspan&&(this._phspan.style.display=this.placeHolder&&!this.textbox.value?"":"none")},_setValueAttr:function(f,k,m){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(f){r.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",f)},_onBlur:function(f){this.disabled||(this.inherited(arguments),this._updatePlaceHolder(),g("mozilla")&&this.selectOnClick&&(this.textbox.selectionStart=this.textbox.selectionEnd=void 0))},_onFocus:function(f){this.disabled||this.readOnly||(this.inherited(arguments),this._updatePlaceHolder())}});
9>g("ie")&&(d.prototype._isTextSelected=function(){var f=this.ownerDocument.selection.createRange();return f.parentElement()==this.textbox&&0<f.text.length},c._setSelectionRange=b._setSelectionRange=function(f,k,m){f.createTextRange&&(f=f.createTextRange(),f.collapse(!0),f.moveStart("character",-99999),f.moveStart("character",k),f.moveEnd("character",m-k),f.select())});g("dojo-bidi")&&(d=u("dijit.form.TextBox",d,{_setPlaceHolderAttr:function(f){this.inherited(arguments);this.applyTextDir(this._phspan)}}));
return d})},"dojo/dom-construct":function(){define("exports ./_base/kernel ./sniff ./_base/window ./dom ./dom-attr".split(" "),function(u,A,x,r,h,e){function g(q,w){var t=w.parentNode;t&&t.insertBefore(q,w)}function d(q){if("innerHTML"in q)try{q.innerHTML="";return}catch(t){}for(var w;w=q.lastChild;)q.removeChild(w)}var b={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],
colgroup:["table"],col:["table","colgroup"],li:["ul"]},a=/<\s*([\w:]+)/,c={},f=0,k="__"+A._scopeName+"ToDomId",m;for(m in b)b.hasOwnProperty(m)&&(A=b[m],A.pre="option"==m?'\x3cselect multiple\x3d"multiple"\x3e':"\x3c"+A.join("\x3e\x3c")+"\x3e",A.post="\x3c/"+A.reverse().join("\x3e\x3c/")+"\x3e");var p;8>=x("ie")&&(p=function(q){q.__dojo_html5_tested="yes";var w=l("div",{innerHTML:"\x3cnav\x3ea\x3c/nav\x3e",style:{visibility:"hidden"}},q.body);1!==w.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(t){q.createElement(t)});n(w)});u.toDom=function(q,w){w=w||r.doc;var t=w[k];t||(w[k]=t=++f+"",c[t]=w.createElement("div"));8>=x("ie")&&!w.__dojo_html5_tested&&w.body&&p(w);q+="";var v=q.match(a),y=v?v[1].toLowerCase():"";t=c[t];if(v&&b[y])for(v=b[y],t.innerHTML=v.pre+q+v.post,v=v.length;v;--v)t=t.firstChild;else t.innerHTML=q;if(1==t.childNodes.length)return t.removeChild(t.firstChild);for(y=w.createDocumentFragment();v=t.firstChild;)y.appendChild(v);return y};u.place=function(q,w,t){w=h.byId(w);
"string"==typeof q&&(q=/^\s*</.test(q)?u.toDom(q,w.ownerDocument):h.byId(q));if("number"==typeof t){var v=w.childNodes;!v.length||v.length<=t?w.appendChild(q):g(q,v[0>t?0:t])}else switch(t){case "before":g(q,w);break;case "after":t=q;(v=w.parentNode)&&(v.lastChild==w?v.appendChild(t):v.insertBefore(t,w.nextSibling));break;case "replace":w.parentNode.replaceChild(q,w);break;case "only":u.empty(w);w.appendChild(q);break;case "first":if(w.firstChild){g(q,w.firstChild);break}default:w.appendChild(q)}return q};
var l=u.create=function(q,w,t,v){var y=r.doc;t&&(t=h.byId(t),y=t.ownerDocument);"string"==typeof q&&(q=y.createElement(q));w&&e.set(q,w);t&&u.place(q,t,v);return q};u.empty=function(q){d(h.byId(q))};var n=u.destroy=function(q){if(q=h.byId(q)){var w=q;q=q.parentNode;w.firstChild&&d(w);q&&(x("ie")&&q.canHaveChildren&&"removeNode"in w?w.removeNode(!1):q.removeChild(w))}}})},"dojo/dom-attr":function(){define("exports ./sniff ./_base/lang ./dom ./dom-style ./dom-prop".split(" "),function(u,A,x,r,h,e){function g(a,
c){var f=a.getAttributeNode&&a.getAttributeNode(c);return!!f&&f.specified}var d={innerHTML:1,textContent:1,className:1,htmlFor:A("ie")?1:0,value:1},b={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};u.has=function(a,c){var f=c.toLowerCase();return!!d[e.names[f]||c]||g(r.byId(a),b[f]||c)};u.get=function(a,c){a=r.byId(a);var f=c.toLowerCase(),k=e.names[f]||c,m=a[k];if(d[k]&&"undefined"!=typeof m)return m;if("textContent"==k)return e.get(a,k);if("href"!=k&&("boolean"==typeof m||
x.isFunction(m)))return m;f=b[f]||c;return g(a,f)?a.getAttribute(f):null};u.set=function(a,c,f){a=r.byId(a);if(2==arguments.length){for(var k in c)u.set(a,k,c[k]);return a}k=c.toLowerCase();var m=e.names[k]||c,p=d[m];if("style"==m&&"string"!=typeof f)return h.set(a,f),a;if(p||"boolean"==typeof f||x.isFunction(f))return e.set(a,c,f);a.setAttribute(b[k]||c,f);return a};u.remove=function(a,c){r.byId(a).removeAttribute(b[c.toLowerCase()]||c)};u.getNodeProp=function(a,c){a=r.byId(a);var f=c.toLowerCase(),
k=e.names[f]||c;if(k in a&&"href"!=k)return a[k];f=b[f]||c;return g(a,f)?a.getAttribute(f):null}})},"dojo/dom-style":function(){define(["./sniff","./dom","./_base/window"],function(u,A,x){function r(m,p,l){p=p.toLowerCase();if("auto"==l){if("height"==p)return m.offsetHeight;if("width"==p)return m.offsetWidth}if("fontweight"==p)switch(l){case 700:return"bold";default:return"normal"}p in c||(c[p]=f.test(p));return c[p]?g(m,l):l}var h={};var e=u("webkit")?function(m){if(1==m.nodeType){var p=m.ownerDocument.defaultView;
var l=p.getComputedStyle(m,null);!l&&m.style&&(m.style.display="",l=p.getComputedStyle(m,null))}return l||{}}:u("ie")&&(9>u("ie")||u("quirks"))?function(m){return 1==m.nodeType&&m.currentStyle?m.currentStyle:{}}:function(m){if(1===m.nodeType){var p=m.ownerDocument.defaultView;return(p.opener?p:x.global.window).getComputedStyle(m,null)}return{}};h.getComputedStyle=e;var g=u("ie")?function(m,p){if(!p)return 0;if("medium"==p)return 4;if(p.slice&&"px"==p.slice(-2))return parseFloat(p);var l=m.style,n=
m.runtimeStyle,q=l.left,w=n.left;n.left=m.currentStyle.left;try{l.left=p,p=l.pixelLeft}catch(t){p=0}l.left=q;n.left=w;return p}:function(m,p){return parseFloat(p)||0};h.toPixelValue=g;var d=function(m,p){try{return m.filters.item("DXImageTransform.Microsoft.Alpha")}catch(l){return p?{}:null}},b=9>u("ie")||10>u("ie")&&u("quirks")?function(m){try{return d(m).Opacity/100}catch(p){return 1}}:function(m){return e(m).opacity},a=9>u("ie")||10>u("ie")&&u("quirks")?function(m,p){""===p&&(p=1);var l=100*p;
1===p?(m.style.zoom="",d(m)&&(m.style.filter=m.style.filter.replace(RegExp("\\s*progid:DXImageTransform.Microsoft.Alpha\\([^\\)]+?\\)","i"),""))):(m.style.zoom=1,d(m)?d(m,1).Opacity=l:m.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+l+")",d(m,1).Enabled=!0);if("tr"==m.tagName.toLowerCase())for(l=m.firstChild;l;l=l.nextSibling)"td"==l.tagName.toLowerCase()&&a(l,p);return p}:function(m,p){return m.style.opacity=p},c={left:!0,top:!0},f=/margin|padding|width|height|max|min|offset/,
k={cssFloat:1,styleFloat:1,"float":1};h.get=function(m,p){var l=A.byId(m),n=arguments.length;if(2==n&&"opacity"==p)return b(l);p=k[p]?"cssFloat"in l.style?"cssFloat":"styleFloat":p;var q=h.getComputedStyle(l);return 1==n?q:r(l,p,q[p]||l.style[p])};h.set=function(m,p,l){var n=A.byId(m),q=arguments.length,w="opacity"==p;p=k[p]?"cssFloat"in n.style?"cssFloat":"styleFloat":p;if(3==q)return w?a(n,l):n.style[p]=l;for(var t in p)h.set(m,t,p[t]);return h.getComputedStyle(n)};return h})},"dojo/dom-prop":function(){define("exports ./_base/kernel ./sniff ./_base/lang ./dom ./dom-style ./dom-construct ./_base/connect".split(" "),
function(u,A,x,r,h,e,g,d){function b(k){var m="";k=k.childNodes;for(var p=0,l;l=k[p];p++)8!=l.nodeType&&(m=1==l.nodeType?m+b(l):m+l.nodeValue);return m}var a={},c=1,f=A._scopeName+"attrid";x.add("dom-textContent",function(k,m,p){return"textContent"in p});u.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",textcontent:"textContent",valuetype:"valueType"};u.get=function(k,m){k=h.byId(k);var p=m.toLowerCase();
p=u.names[p]||m;return"textContent"!=p||x("dom-textContent")?k[p]:b(k)};u.set=function(k,m,p){k=h.byId(k);if(2==arguments.length&&"string"!=typeof m){for(var l in m)u.set(k,l,m[l]);return k}l=m.toLowerCase();l=u.names[l]||m;if("style"==l&&"string"!=typeof p)return e.set(k,p),k;if("innerHTML"==l)return x("ie")&&k.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(g.empty(k),k.appendChild(g.toDom(p,k.ownerDocument))):k[l]=p,k;if("textContent"==l&&!x("dom-textContent"))return g.empty(k),
k.appendChild(k.ownerDocument.createTextNode(p)),k;if(r.isFunction(p)){var n=k[f];n||(n=c++,k[f]=n);a[n]||(a[n]={});var q=a[n][l];if(q)d.disconnect(q);else try{delete k[l]}catch(w){}p?a[n][l]=d.connect(k,l,p):k[l]=null;return k}k[l]=p;return k}})},"dojo/_base/connect":function(){define("./kernel ../on ../topic ../aspect ./event ../mouse ./sniff ./lang ../keys".split(" "),function(u,A,x,r,h,e,g,d){function b(l,n,q,w,t){w=d.hitch(q,w);if(!l||!l.addEventListener&&!l.attachEvent)return r.after(l||u.global,
n,w,!0);"string"==typeof n&&"on"==n.substring(0,2)&&(n=n.substring(2));l||(l=u.global);if(!t)switch(n){case "keypress":n=m;break;case "mouseenter":n=e.enter;break;case "mouseleave":n=e.leave}return A(l,n,w,t)}function a(l){l.keyChar=l.charCode?String.fromCharCode(l.charCode):"";l.charOrCode=l.keyChar||l.keyCode}g.add("events-keypress-typed",function(){var l={charCode:0};try{l=document.createEvent("KeyboardEvent"),(l.initKeyboardEvent||l.initKeyEvent).call(l,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(n){}return 0==
l.charCode&&!g("opera")});var c={106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39,229:113},f=g("mac")?"metaKey":"ctrlKey",k=function(l,n){var q=d.mixin({},l,n);a(q);q.preventDefault=function(){l.preventDefault()};q.stopPropagation=function(){l.stopPropagation()};return q};var m=g("events-keypress-typed")?function(l,n){var q=A(l,"keydown",function(t){var v=t.keyCode,y=13!=v&&32!=v&&(27!=v||!g("ie"))&&(48>v||90<v)&&(96>v||111<v)&&(186>v||192<v)&&(219>v||222<
v)&&229!=v;if(y||t.ctrlKey){y=y?0:v;if(t.ctrlKey){if(3==v||13==v)return n.call(t.currentTarget,t);y=95<y&&106>y?y-48:!t.shiftKey&&65<=y&&90>=y?y+32:c[y]||y}v=k(t,{type:"keypress",faux:!0,charCode:y});n.call(t.currentTarget,v);if(g("ie"))try{t.keyCode=v.keyCode}catch(z){}}}),w=A(l,"keypress",function(t){var v=t.charCode;t=k(t,{charCode:32<=v?v:0,faux:!0});return n.call(this,t)});return{remove:function(){q.remove();w.remove()}}}:g("opera")?function(l,n){return A(l,"keypress",function(q){var w=q.which;
3==w&&(w=99);w=32>w&&!q.shiftKey?0:w;q.ctrlKey&&!q.shiftKey&&65<=w&&90>=w&&(w+=32);return n.call(this,k(q,{charCode:w}))})}:function(l,n){return A(l,"keypress",function(q){a(q);return n.call(this,q)})};var p={_keypress:m,connect:function(l,n,q,w,t){var v=arguments,y=[],z=0;y.push("string"==typeof v[0]?null:v[z++],v[z++]);var C=v[z+1];y.push("string"==typeof C||"function"==typeof C?v[z++]:null,v[z++]);for(C=v.length;z<C;z++)y.push(v[z]);return b.apply(this,y)},disconnect:function(l){l&&l.remove()},
subscribe:function(l,n,q){return x.subscribe(l,d.hitch(n,q))},publish:function(l,n){return x.publish.apply(x,[l].concat(n))},connectPublisher:function(l,n,q){var w=function(){p.publish(l,arguments)};return q?p.connect(n,q,w):p.connect(n,w)},isCopyKey:function(l){return l[f]}};p.unsubscribe=p.disconnect;d.mixin(u,p);return p})},"dojo/topic":function(){define(["./Evented"],function(u){var A=new u;return{publish:function(x,r){return A.emit.apply(A,arguments)},subscribe:function(x,r){return A.on.apply(A,
arguments)}}})},"dojo/_base/event":function(){define(["./kernel","../on","../has","../dom-geometry"],function(u,A,x,r){if(A._fixEvent){var h=A._fixEvent;A._fixEvent=function(g,d){(g=h(g,d))&&r.normalizeEvent(g);return g}}var e={fix:function(g,d){return A._fixEvent?A._fixEvent(g,d):g},stop:function(g){x("dom-addeventlistener")||g&&g.preventDefault?(g.preventDefault(),g.stopPropagation()):(g=g||window.event,g.cancelBubble=!0,A._preventDefault.call(g))}};u.fixEvent=e.fix;u.stopEvent=e.stop;return e})},
"dojo/dom-geometry":function(){define(["./sniff","./_base/window","./dom","./dom-style"],function(u,A,x,r){function h(c,f,k,m,p,l){l=l||"px";c=c.style;isNaN(f)||(c.left=f+l);isNaN(k)||(c.top=k+l);0<=m&&(c.width=m+l);0<=p&&(c.height=p+l)}function e(c){return"button"==c.tagName.toLowerCase()||"input"==c.tagName.toLowerCase()&&"button"==(c.getAttribute("type")||"").toLowerCase()}function g(c){return"border-box"==b.boxModel||"table"==c.tagName.toLowerCase()||e(c)}function d(c){var f={x:0,y:0,width:0,
height:0,top:0,right:0,bottom:0,left:0};try{var k=c.getBoundingClientRect()}catch(m){return f}return"undefined"===typeof k.left?f:k}var b={boxModel:"content-box"};u("ie")&&(b.boxModel="BackCompat"==document.compatMode?"border-box":"content-box");b.getPadExtents=function(c,f){c=x.byId(c);var k=f||r.getComputedStyle(c),m=r.toPixelValue,p=m(c,k.paddingLeft),l=m(c,k.paddingTop),n=m(c,k.paddingRight);k=m(c,k.paddingBottom);return{l:p,t:l,r:n,b:k,w:p+n,h:l+k}};b.getBorderExtents=function(c,f){c=x.byId(c);
var k=r.toPixelValue,m=f||r.getComputedStyle(c),p="none"!=m.borderLeftStyle?k(c,m.borderLeftWidth):0,l="none"!=m.borderTopStyle?k(c,m.borderTopWidth):0,n="none"!=m.borderRightStyle?k(c,m.borderRightWidth):0;k="none"!=m.borderBottomStyle?k(c,m.borderBottomWidth):0;return{l:p,t:l,r:n,b:k,w:p+n,h:l+k}};b.getPadBorderExtents=function(c,f){c=x.byId(c);var k=f||r.getComputedStyle(c),m=b.getPadExtents(c,k);k=b.getBorderExtents(c,k);return{l:m.l+k.l,t:m.t+k.t,r:m.r+k.r,b:m.b+k.b,w:m.w+k.w,h:m.h+k.h}};b.getMarginExtents=
function(c,f){c=x.byId(c);var k=f||r.getComputedStyle(c),m=r.toPixelValue,p=m(c,k.marginLeft),l=m(c,k.marginTop),n=m(c,k.marginRight);k=m(c,k.marginBottom);return{l:p,t:l,r:n,b:k,w:p+n,h:l+k}};b.getMarginBox=function(c,f){c=x.byId(c);var k=f||r.getComputedStyle(c);k=b.getMarginExtents(c,k);var m=c.offsetLeft-k.l,p=c.offsetTop-k.t,l=c.parentNode,n=r.toPixelValue;8==u("ie")&&!u("quirks")&&l&&(l=r.getComputedStyle(l),m-="none"!=l.borderLeftStyle?n(c,l.borderLeftWidth):0,p-="none"!=l.borderTopStyle?n(c,
l.borderTopWidth):0);return{l:m,t:p,w:c.offsetWidth+k.w,h:c.offsetHeight+k.h}};b.getContentBox=function(c,f){c=x.byId(c);var k=f||r.getComputedStyle(c),m=c.clientWidth,p=b.getPadExtents(c,k);var l=b.getBorderExtents(c,k);k=c.offsetLeft+p.l+l.l;var n=c.offsetTop+p.t+l.t;m?l=c.clientHeight:(m=c.offsetWidth-l.w,l=c.offsetHeight-l.h);if(8==u("ie")&&!u("quirks")){var q=c.parentNode,w=r.toPixelValue;q&&(q=r.getComputedStyle(q),k-="none"!=q.borderLeftStyle?w(c,q.borderLeftWidth):0,n-="none"!=q.borderTopStyle?
w(c,q.borderTopWidth):0)}return{l:k,t:n,w:m-p.w,h:l-p.h}};b.setContentSize=function(c,f,k){c=x.byId(c);var m=f.w;f=f.h;g(c)&&(k=b.getPadBorderExtents(c,k),0<=m&&(m+=k.w),0<=f&&(f+=k.h));h(c,NaN,NaN,m,f)};var a={l:0,t:0,w:0,h:0};b.setMarginBox=function(c,f,k){c=x.byId(c);var m=k||r.getComputedStyle(c);k=f.w;var p=f.h,l=g(c)?a:b.getPadBorderExtents(c,m);m=b.getMarginExtents(c,m);if(u("webkit")&&e(c)){var n=c.style;0<=k&&!n.width&&(n.width="4px");0<=p&&!n.height&&(n.height="4px")}0<=k&&(k=Math.max(k-
l.w-m.w,0));0<=p&&(p=Math.max(p-l.h-m.h,0));h(c,f.l,f.t,k,p)};b.isBodyLtr=function(c){c=c||A.doc;return"ltr"==(A.body(c).dir||c.documentElement.dir||"ltr").toLowerCase()};b.docScroll=function(c){c=c||A.doc;var f=c.parentWindow||c.defaultView;return"pageXOffset"in f?{x:f.pageXOffset,y:f.pageYOffset}:(f=u("quirks")?A.body(c):c.documentElement)&&{x:b.fixIeBiDiScrollLeft(f.scrollLeft||0,c),y:f.scrollTop||0}};b.getIeDocumentElementOffset=function(c){return{x:0,y:0}};b.fixIeBiDiScrollLeft=function(c,f){f=
f||A.doc;var k=u("ie");if(k&&!b.isBodyLtr(f)){var m=u("quirks"),p=m?A.body(f):f.documentElement,l=A.global;6==k&&!m&&l.frameElement&&p.scrollHeight>p.clientHeight&&(c+=p.clientLeft);return 8>k||m?c+p.clientWidth-p.scrollWidth:-c}return c};b.position=function(c,f){c=x.byId(c);var k=A.body(c.ownerDocument),m=d(c);m={x:m.left,y:m.top,w:m.right-m.left,h:m.bottom-m.top};9>u("ie")&&(m.x-=u("quirks")?k.clientLeft+k.offsetLeft:0,m.y-=u("quirks")?k.clientTop+k.offsetTop:0);f&&(k=b.docScroll(c.ownerDocument),
m.x+=k.x,m.y+=k.y);return m};b.getMarginSize=function(c,f){c=x.byId(c);var k=b.getMarginExtents(c,f||r.getComputedStyle(c)),m=d(c);return{w:m.right-m.left+k.w,h:m.bottom-m.top+k.h}};b.normalizeEvent=function(c){"layerX"in c||(c.layerX=c.offsetX,c.layerY=c.offsetY);if(!("pageX"in c)){var f=c.target;f=f&&f.ownerDocument||document;var k=u("quirks")?f.body:f.documentElement;c.pageX=c.clientX+b.fixIeBiDiScrollLeft(k.scrollLeft||0,f);c.pageY=c.clientY+(k.scrollTop||0)}};return b})},"dojo/mouse":function(){define(["./_base/kernel",
"./on","./has","./dom","./_base/window"],function(u,A,x,r,h){function e(g,d){var b=function(a,c){return A(a,g,function(f){if(d)return d(f,c);if(!r.isDescendant(f.relatedTarget,a))return c.call(this,f)})};b.bubble=function(a){return e(g,function(c,f){var k=a(c.target),m=c.relatedTarget;if(k&&k!=(m&&1==m.nodeType&&a(m)))return f.call(k,c)})};return b}x.add("dom-quirks",h.doc&&"BackCompat"==h.doc.compatMode);x.add("events-mouseenter",h.doc&&"onmouseenter"in h.doc.createElement("div"));x.add("events-mousewheel",
h.doc&&"onmousewheel"in h.doc);h=x("dom-quirks")&&x("ie")||!x("dom-addeventlistener")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(g,d){return g.button&d},isLeft:function(g){return g.button&1},isMiddle:function(g){return g.button&4},isRight:function(g){return g.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(g,d){return g.button==d},isLeft:function(g){return 0==g.button},isMiddle:function(g){return 1==g.button},isRight:function(g){return 2==g.button}};u.mouseButtons=h;u=x("events-mousewheel")?
"mousewheel":function(g,d){return A(g,"DOMMouseScroll",function(b){b.wheelDelta=-b.detail;d.call(this,b)})};return{_eventHandler:e,enter:e("mouseover"),leave:e("mouseout"),wheel:u,isLeft:h.isLeft,isMiddle:h.isMiddle,isRight:h.isRight}})},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(u,A,x){u._name="browser";A.mixin(u,{isBrowser:!0,isFF:x("ff"),isIE:x("ie"),isKhtml:x("khtml"),isWebKit:x("webkit"),isMozilla:x("mozilla"),isMoz:x("mozilla"),isOpera:x("opera"),isSafari:x("safari"),
isChrome:x("chrome"),isMac:x("mac"),isIos:x("ios"),isAndroid:x("android"),isWii:x("wii"),isQuirks:x("quirks"),isAir:x("air")});return x})},"dojo/keys":function(){define(["./_base/kernel","./sniff"],function(u,A){return u.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}})},"dijit/form/_FormValueWidget":function(){define(["dojo/_base/declare",
"dojo/sniff","./_FormWidget","./_FormValueMixin"],function(u,A,x,r){return u("dijit.form._FormValueWidget",[x,r],{_layoutHackIE7:function(){if(7==A("ie"))for(var h=this.domNode,e=h.parentNode,g=h.firstChild||h,d=g.style.filter,b=this;e&&0==e.clientHeight;)(function(){var a=b.connect(e,"onscroll",function(){b.disconnect(a);g.style.filter=(new Date).getMilliseconds();b.defer(function(){g.style.filter=d})})})(),e=e.parentNode}})})},"dijit/form/_FormWidget":function(){define("dojo/_base/declare dojo/sniff dojo/_base/kernel dojo/ready ../_Widget ../_CssStateMixin ../_TemplatedMixin ./_FormWidgetMixin".split(" "),
function(u,A,x,r,h,e,g,d){A("dijit-legacy-requires")&&r(0,function(){require(["dijit/form/_FormValueWidget"])});return u("dijit.form._FormWidget",[h,g,e,d],{setDisabled:function(b){x.deprecated("setDisabled("+b+") is deprecated. Use set('disabled',"+b+") instead.","","2.0");this.set("disabled",b)},setValue:function(b){x.deprecated("dijit.form._FormWidget:setValue("+b+") is deprecated.  Use set('value',"+b+") instead.","","2.0");this.set("value",b)},getValue:function(){x.deprecated(this.declaredClass+
"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},postMixInProperties:function(){this.nameAttrSetting=this.name&&!A("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(u,A,x,r,h,e,g,d,b,a,c,f,k){function m(){}function p(l){return function(n,q,w,t){return n&&"string"==typeof q&&n[q]==m?n.on(q.substring(2).toLowerCase(),g.hitch(w,t)):l.apply(x,arguments)}}u.around(x,"connect",p);e.connect&&u.around(e,"connect",p);u=r("dijit._Widget",[c,f,k],{onClick:m,onDblClick:m,onKeyDown:m,onKeyPress:m,onKeyUp:m,onMouseDown:m,onMouseMove:m,onMouseOut:m,onMouseOver:m,onMouseLeave:m,onMouseEnter:m,onMouseUp:m,constructor:function(l){this._toConnect={};for(var n in l)this[n]===
m&&(this._toConnect[n.replace(/^on/,"").toLowerCase()]=l[n],delete l[n])},postCreate:function(){this.inherited(arguments);for(var l in this._toConnect)this.on(l,this._toConnect[l]);delete this._toConnect},on:function(l,n){return this[this._onMap(l)]===m?x.connect(this.domNode,l.toLowerCase(),this,n):this.inherited(arguments)},_setFocusedAttr:function(l){this._focused=l;this._set("focused",l)},setAttribute:function(l,n){e.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.",
"","2.0");this.set(l,n)},attr:function(l,n){return 2<=arguments.length||"object"===typeof l?this.set.apply(this,arguments):this.get(l)},getDescendants:function(){e.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?d("[widgetId]",this.containerNode).map(a.byNode):[]},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}});h("dijit-legacy-requires")&&b(0,function(){require(["dijit/_base"])});
return u})},"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(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n,q,w,t,v,y,z){function C(B){return function(D){d[D?
"set":"remove"](this.domNode,B,D);this._set(B,D)}}k.add("dijit-legacy-requires",!m.isAsync);k.add("dojo-bidi",!1);k("dijit-legacy-requires")&&n(0,function(){u(["dijit/_base/manager"])});var G={};r=e("dijit._WidgetBase",[q,v],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:C("lang"),dir:"",_setDirAttr:C("dir"),"class":"",_setClassAttr:{node:"domNode",type:"class"},_setTypeAttr:null,style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(B){this._set("ownerDocument",
B)},attributeMap:{},_blankGif:r.blankGif||u.toUrl("dojo/resources/blank.gif"),textDir:"",_introspect:function(){var B=this.constructor;if(!B._setterAttrs){var D=B.prototype,E=B._setterAttrs=[];B=B._onMap={};for(var J in D.attributeMap)E.push(J);for(J in D)/^on/.test(J)&&(B[J.substring(2).toLowerCase()]=J),/^_set[A-Z](.*)Attr$/.test(J)&&(J=J.charAt(4).toLowerCase()+J.substr(5,J.length-9),D.attributeMap&&J in D.attributeMap||E.push(J))}},postscript:function(B,D){this.create(B,D)},create:function(B,
D){this._introspect();this.srcNodeRef=g.byId(D);this._connects=[];this._supportingWidgets=[];this.srcNodeRef&&this.srcNodeRef.id&&"string"==typeof this.srcNodeRef.id&&(this.id=this.srcNodeRef.id);B&&(this.params=B,p.mixin(this,B));this.postMixInProperties();this.id||(this.id=z.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id);this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=t.body(this.ownerDocument);
z.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var E=this.srcNodeRef;if(E&&E.parentNode&&this.domNode!==E){E.parentNode.replaceChild(this.domNode,E);var J=!0}this.domNode.setAttribute("widgetId",this.id)}this.postCreate();J&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var B={},D;for(D in this.params||{})B[D]=this._get(D);A.forEach(this.constructor._setterAttrs,function(E){if(!(E in B)){var J=this._get(E);J&&this.set(E,J)}},this);for(D in B)this.set(D,
B[D])},postMixInProperties:function(){},buildRendering:function(){this.domNode||(this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div"));if(this.baseClass){var B=this.baseClass.split(" ");this.isLeftToRight()||(B=B.concat(A.map(B,function(D){return D+"Rtl"})));b.add(this.domNode,B)}},postCreate:function(){},startup:function(){this._started||(this._started=!0,A.forEach(this.getChildren(),function(B){B._started||B._destroyed||!p.isFunction(B.startup)||(B.startup(),B._started=!0)}))},
destroyRecursive:function(B){this._beingDestroyed=!0;this.destroyDescendants(B);this.destroy(B)},destroy:function(B){function D(E){E.destroyRecursive?E.destroyRecursive(B):E.destroy&&E.destroy(B)}this._beingDestroyed=!0;this.uninitialize();A.forEach(this._connects,p.hitch(this,"disconnect"));A.forEach(this._supportingWidgets,D);this.domNode&&A.forEach(z.findWidgets(this.domNode,this.containerNode),D);this.destroyRendering(B);z.remove(this.id);this._destroyed=!0},destroyRendering:function(B){this.bgIframe&&
(this.bgIframe.destroy(B),delete this.bgIframe);this.domNode&&(B?d.remove(this.domNode,"widgetId"):a.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(B||a.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(B){A.forEach(this.getChildren(),function(D){D.destroyRecursive&&D.destroyRecursive(B)})},uninitialize:function(){return!1},_setStyleAttr:function(B){var D=this.domNode;p.isObject(B)?f.set(D,B):D.style.cssText=D.style.cssText?D.style.cssText+("; "+B):B;this._set("style",
B)},_attrToDom:function(B,D,E){E=3<=arguments.length?E:this.attributeMap[B];A.forEach(p.isArray(E)?E:[E],function(J){var I=this[J.node||J||"domNode"];switch(J.type||"attribute"){case "attribute":p.isFunction(D)&&(D=p.hitch(this,D));J=J.attribute?J.attribute:/^on[A-Z][a-zA-Z]*$/.test(B)?B.toLowerCase():B;I.tagName?d.set(I,J,D):I.set(J,D);break;case "innerText":I.innerHTML="";I.appendChild(this.ownerDocument.createTextNode(D));break;case "textContent":I.textContent=D;break;case "innerHTML":I.innerHTML=
D;break;case "class":b.replace(I,D,this[B]);break;case "toggleClass":b.toggle(I,J.className||B,D)}},this)},get:function(B){var D=this._getAttrNames(B);return this[D.g]?this[D.g]():this._get(B)},set:function(B,D){if("object"===typeof B){for(var E in B)this.set(E,B[E]);return this}E=this._getAttrNames(B);var J=this[E.s];if(p.isFunction(J))var I=J.apply(this,Array.prototype.slice.call(arguments,1));else{J=this.focusNode&&!p.isFunction(this.focusNode)?"focusNode":"domNode";var F=this[J]&&this[J].tagName,
H;if((H=F)&&!(H=G[F])){H=this[J];var K={};for(L in H)K[L.toLowerCase()]=!0;H=G[F]=K}var L=H;E=B in this.attributeMap?this.attributeMap[B]:E.s in this?this[E.s]:L&&E.l in L&&"function"!=typeof D||/^aria-|^data-|^role$/.test(B)?J:null;null!=E&&this._attrToDom(B,D,E);this._set(B,D)}return I||this},_attrPairNames:{},_getAttrNames:function(B){var D=this._attrPairNames;if(D[B])return D[B];var E=B.replace(/^[a-z]|-[a-zA-Z]/g,function(J){return J.charAt(J.length-1).toUpperCase()});return D[B]={n:B+"Node",
s:"_set"+E+"Attr",g:"_get"+E+"Attr",l:E.toLowerCase()}},_set:function(B,D){var E=this[B];this[B]=D;!this._created||E===D||E!==E&&D!==D||(this._watchCallbacks&&this._watchCallbacks(B,E,D),this.emit("attrmodified-"+B,{detail:{prevValue:E,newValue:D}}))},_get:function(B){return this[B]},emit:function(B,D,E){D=D||{};void 0===D.bubbles&&(D.bubbles=!0);void 0===D.cancelable&&(D.cancelable=!0);D.detail||(D.detail={});D.detail.widget=this;var J,I=this["on"+B];I&&(J=I.apply(this,E?E:[D]));this._started&&!this._beingDestroyed&&
l.emit(this.domNode,B.toLowerCase(),D);return J},on:function(B,D){var E=this._onMap(B);return E?x.after(this,E,D,!0):this.own(l(this.domNode,B,D))[0]},_onMap:function(B){var D=this.constructor,E=D._onMap;if(!E){E=D._onMap={};for(var J in D.prototype)/^on/.test(J)&&(E[J.replace(/^on/,"").toLowerCase()]=J)}return E["string"==typeof B&&B.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getChildren:function(){return this.containerNode?z.findWidgets(this.containerNode):
[]},getParent:function(){return z.getEnclosingWidget(this.domNode.parentNode)},connect:function(B,D,E){return this.own(h.connect(B,D,this,E))[0]},disconnect:function(B){B.remove()},subscribe:function(B,D){return this.own(w.subscribe(B,p.hitch(this,D)))[0]},unsubscribe:function(B){B.remove()},isLeftToRight:function(){return this.dir?"ltr"==this.dir.toLowerCase():c.isBodyLtr(this.ownerDocument)},isFocusable:function(){return this.focus&&"none"!=f.get(this.domNode,"display")},placeAt:function(B,D){var E=
!B.tagName&&z.byId(B);!E||!E.addChild||D&&"number"!==typeof D?(E=E&&"domNode"in E?E.containerNode&&!/after|before|replace/.test(D||"")?E.containerNode:E.domNode:g.byId(B,this.ownerDocument),a.place(this.domNode,E,D),!this._started&&(this.getParent()||{})._started&&this.startup()):E.addChild(this,D);return this},defer:function(B,D){var E=setTimeout(p.hitch(this,function(){E&&(E=null,this._destroyed||p.hitch(this,B)())}),D||0);return{remove:function(){E&&(clearTimeout(E),E=null);return null}}}});k("dojo-bidi")&&
r.extend(y);return r})},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(u,A,x){function r(b){if("string"==typeof b||b instanceof String){if(b&&!e.test(b))return g[0]=b,g;b=b.split(e);b.length&&!b[0]&&b.shift();b.length&&!b[b.length-1]&&b.pop();return b}return b?A.filter(b,function(a){return a}):[]}var h,e=/\s+/,g=[""],d={};return h={contains:function(b,a){return 0<=(" "+x.byId(b).className+" ").indexOf(" "+a+" ")},add:function(b,a){b=x.byId(b);a=r(a);var c=b.className;
c=c?" "+c+" ":" ";var f=c.length;for(var k=0,m=a.length,p;k<m;++k)(p=a[k])&&0>c.indexOf(" "+p+" ")&&(c+=p+" ");f<c.length&&(b.className=c.substr(1,c.length-2))},remove:function(b,a){b=x.byId(b);if(void 0!==a){a=r(a);var c=" "+b.className+" ";for(var f=0,k=a.length;f<k;++f)c=c.replace(" "+a[f]+" "," ");c=u.trim(c)}else c="";b.className!=c&&(b.className=c)},replace:function(b,a,c){b=x.byId(b);d.className=b.className;h.remove(d,c);h.add(d,a);b.className!==d.className&&(b.className=d.className)},toggle:function(b,
a,c){b=x.byId(b);if(void 0===c){a=r(a);for(var f=0,k=a.length,m;f<k;++f)m=a[f],h[h.contains(b,m)?"remove":"add"](b,m)}else h[c?"add":"remove"](b,a);return c}}})},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(u,A,x,r){return u("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(h){var e=this._attrPairNames;return e[h]?e[h]:e[h]={s:"_"+h+"Setter",g:"_"+h+"Getter"}},postscript:function(h){h&&this.set(h)},_get:function(h,e){return"function"===
typeof this[e.g]?this[e.g]():this[h]},get:function(h){return this._get(h,this._getAttrNames(h))},set:function(h,e){if("object"===typeof h){for(var g in h)h.hasOwnProperty(g)&&"_watchCallbacks"!=g&&this.set(g,h[g]);return this}g=this._getAttrNames(h);var d=this._get(h,g);g=this[g.s];var b;"function"===typeof g?b=g.apply(this,Array.prototype.slice.call(arguments,1)):this[h]=e;if(this._watchCallbacks){var a=this;r(b,function(){a._watchCallbacks(h,d,e)})}return this},_changeAttrValue:function(h,e){var g=
this.get(h);this[h]=e;this._watchCallbacks&&this._watchCallbacks(h,g,e);return this},watch:function(h,e){var g=this._watchCallbacks;if(!g){var d=this;g=this._watchCallbacks=function(c,f,k,m){var p=function(l){if(l){l=l.slice();for(var n=0,q=l.length;n<q;n++)l[n].call(d,c,f,k)}};p(g["_"+c]);m||p(g["*"])}}e||"function"!==typeof h?h="_"+h:(e=h,h="*");var b=g[h];"object"!==typeof b&&(b=g[h]=[]);b.push(e);var a={};a.unwatch=a.remove=function(){var c=x.indexOf(b,e);-1<c&&b.splice(c,1)};return a}})})},"dijit/Destroyable":function(){define(["dojo/_base/array",
"dojo/aspect","dojo/_base/declare"],function(u,A,x){return x("dijit.Destroyable",null,{destroy:function(r){this._destroyed=!0},own:function(){var r=["destroyRecursive","destroy","remove"];u.forEach(arguments,function(h){function e(){g.remove();u.forEach(d,function(a){a.remove()})}var g=A.before(this,"destroy",function(a){h[b](a)}),d=[];if(h.then){var b="cancel";h.then(e,e)}else u.forEach(r,function(a){"function"===typeof h[a]&&(b||(b=a),d.push(A.after(h,a,e,!0)))})},this);return arguments}})})},"dijit/_OnDijitClickMixin":function(){define("dojo/on dojo/_base/array dojo/keys dojo/_base/declare dojo/has ./a11yclick".split(" "),
function(u,A,x,r,h,e){u=r("dijit._OnDijitClickMixin",null,{connect:function(g,d,b){return this.inherited(arguments,[g,"ondijitclick"==d?e:d,b])}});u.a11yclick=e;return u})},"dijit/a11yclick":function(){define(["dojo/keys","dojo/mouse","dojo/on","dojo/touch"],function(u,A,x,r){function h(d){if((d.keyCode===u.ENTER||d.keyCode===u.SPACE)&&!/input|button|textarea/i.test(d.target.nodeName))for(d=d.target;d;d=d.parentNode)if(d.dojoClick)return!0}var e;x(document,"keydown",function(d){h(d)?(e=d.target,d.preventDefault()):
e=null});x(document,"keyup",function(d){h(d)&&d.target==e&&(e=null,x.emit(d.target,"click",{cancelable:!0,bubbles:!0,ctrlKey:d.ctrlKey,shiftKey:d.shiftKey,metaKey:d.metaKey,altKey:d.altKey,_origType:d.type}))});var g=function(d,b){d.dojoClick=!0;return x(d,"click",b)};g.click=g;g.press=function(d,b){var a=x(d,r.press,function(f){("mousedown"!=f.type||A.isLeft(f))&&b(f)}),c=x(d,"keydown",function(f){f.keyCode!==u.ENTER&&f.keyCode!==u.SPACE||b(f)});return{remove:function(){a.remove();c.remove()}}};
g.release=function(d,b){var a=x(d,r.release,function(f){("mouseup"!=f.type||A.isLeft(f))&&b(f)}),c=x(d,"keyup",function(f){f.keyCode!==u.ENTER&&f.keyCode!==u.SPACE||b(f)});return{remove:function(){a.remove();c.remove()}}};g.move=r.move;return g})},"dojo/touch":function(){define("./_base/kernel ./aspect ./dom ./dom-class ./_base/lang ./on ./has ./mouse ./domReady ./_base/window".split(" "),function(u,A,x,r,h,e,g,d,b,a){function c(J,I,F){return p&&F?function(H,K){return e(H,F,K)}:n?function(H,K){var L=
e(H,I,function(Q){K.call(this,Q);D=(new Date).getTime()}),N=e(H,J,function(Q){(!D||(new Date).getTime()>D+1E3)&&K.call(this,Q)});return{remove:function(){L.remove();N.remove()}}}:function(H,K){return e(H,J,K)}}function f(J){do if(void 0!==J.dojoClick)return J;while(J=J.parentNode)}function k(J,I,F){if(!d.isRight(J)){var H=f(J.target);if(w=!J.target.disabled&&H&&H.dojoClick)if(v=(t="useTarget"==w)?H:J.target,t&&J.preventDefault(),y=J.changedTouches?J.changedTouches[0].pageX-a.global.pageXOffset:J.clientX,
z=J.changedTouches?J.changedTouches[0].pageY-a.global.pageYOffset:J.clientY,C=("object"==typeof w?w.x:"number"==typeof w?w:0)||4,G=("object"==typeof w?w.y:"number"==typeof w?w:0)||4,!q){q=!0;var K=function(L){w=t?x.isDescendant(a.doc.elementFromPoint(L.changedTouches?L.changedTouches[0].pageX-a.global.pageXOffset:L.clientX,L.changedTouches?L.changedTouches[0].pageY-a.global.pageYOffset:L.clientY),v):w&&(L.changedTouches?L.changedTouches[0].target:L.target)==v&&Math.abs((L.changedTouches?L.changedTouches[0].pageX-
a.global.pageXOffset:L.clientX)-y)<=C&&Math.abs((L.changedTouches?L.changedTouches[0].pageY-a.global.pageYOffset:L.clientY)-z)<=G};a.doc.addEventListener(I,function(L){d.isRight(L)||(K(L),t&&L.preventDefault())},!0);a.doc.addEventListener(F,function(L){if(!d.isRight(L)&&(K(L),w)){B=(new Date).getTime();var N=t?v:L.target;"LABEL"===N.tagName&&(N=x.byId(N.getAttribute("for"))||N);var Q=L.changedTouches?L.changedTouches[0]:L,P=function(T){var X=document.createEvent("MouseEvents");X._dojo_click=!0;X.initMouseEvent(T,
!0,!0,L.view,L.detail,Q.screenX,Q.screenY,Q.clientX,Q.clientY,L.ctrlKey,L.altKey,L.shiftKey,L.metaKey,0,null);return X},S=P("mousedown"),M=P("mouseup"),R=P("click");setTimeout(function(){e.emit(N,"mousedown",S);e.emit(N,"mouseup",M);e.emit(N,"click",R);B=(new Date).getTime()},0)}},!0);J=function(L){a.doc.addEventListener(L,function(N){var Q=N.target;w&&!N._dojo_click&&(new Date).getTime()<=B+1E3&&("INPUT"!=Q.tagName||!r.contains(Q,"dijitOffScreen"))&&(N.stopPropagation(),N.stopImmediatePropagation&&
N.stopImmediatePropagation(),"click"==L&&("INPUT"!=Q.tagName||"radio"==Q.type&&(r.contains(Q,"dijitCheckBoxInput")||r.contains(Q,"mblRadioButton"))||"checkbox"==Q.type&&(r.contains(Q,"dijitCheckBoxInput")||r.contains(Q,"mblCheckBox")))&&"TEXTAREA"!=Q.tagName&&"AUDIO"!=Q.tagName&&"VIDEO"!=Q.tagName&&N.preventDefault())},!0)};J("click");J("mousedown");J("mouseup")}}}var m=5>g("ios"),p=g("pointer-events")||g("MSPointer"),l=function(){var J={},I;for(I in{down:1,move:1,up:1,cancel:1,over:1,out:1})J[I]=
g("MSPointer")?"MSPointer"+I.charAt(0).toUpperCase()+I.slice(1):"pointer"+I;return J}(),n=g("touch-events"),q,w,t=!1,v,y,z,C,G,B,D,E;g("touch")&&(p?b(function(){a.doc.addEventListener(l.down,function(J){k(J,l.move,l.up)},!0)}):b(function(){function J(I){var F=h.delegate(I,{bubbles:!0});6<=g("ios")&&(F.touches=I.touches,F.altKey=I.altKey,F.changedTouches=I.changedTouches,F.ctrlKey=I.ctrlKey,F.metaKey=I.metaKey,F.shiftKey=I.shiftKey,F.targetTouches=I.targetTouches);return F}E=a.body();a.doc.addEventListener("touchstart",
function(I){D=(new Date).getTime();var F=E;E=I.target;e.emit(F,"dojotouchout",{relatedTarget:E,bubbles:!0});e.emit(E,"dojotouchover",{relatedTarget:F,bubbles:!0});k(I,"touchmove","touchend")},!0);e(a.doc,"touchmove",function(I){D=(new Date).getTime();var F=a.doc.elementFromPoint(I.pageX-(m?0:a.global.pageXOffset),I.pageY-(m?0:a.global.pageYOffset));F&&(E!==F&&(e.emit(E,"dojotouchout",{relatedTarget:F,bubbles:!0}),e.emit(F,"dojotouchover",{relatedTarget:E,bubbles:!0}),E=F),e.emit(F,"dojotouchmove",
J(I))||I.preventDefault())});e(a.doc,"touchend",function(I){D=(new Date).getTime();var F=a.doc.elementFromPoint(I.pageX-(m?0:a.global.pageXOffset),I.pageY-(m?0:a.global.pageYOffset))||a.body();e.emit(F,"dojotouchend",J(I))})}));A={press:c("mousedown","touchstart",l.down),move:c("mousemove","dojotouchmove",l.move),release:c("mouseup","dojotouchend",l.up),cancel:c(d.leave,"touchcancel",p?l.cancel:null),over:c("mouseover","dojotouchover",l.over),out:c("mouseout","dojotouchout",l.out),enter:d._eventHandler(c("mouseover",
"dojotouchover",l.over)),leave:d._eventHandler(c("mouseout","dojotouchout",l.out))};return u.touch=A})},"dijit/_FocusMixin":function(){define(["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(u,A,x,r){r.extend(A,{focused:!1,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()}});return x("dijit._FocusMixin",null,{_focusManager:u})})},"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(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n){var q,w,t=new (A([f,g],{curNode:null,activeStack:[],constructor:function(){var y=d.hitch(this,function(z){x.isDescendant(this.curNode,z)&&this.set("curNode",null);x.isDescendant(this.prevNode,z)&&this.set("prevNode",null)});u.before(e,"empty",y);u.before(e,"destroy",y)},registerIframe:function(y){return this.registerWin(y.contentWindow,y)},registerWin:function(y,z){var C=this,G=y.document&&y.document.body;if(G){var B=c("pointer-events")?"pointerdown":c("MSPointer")?
"MSPointerDown":c("touch-events")?"mousedown, touchstart":"mousedown",D=b(y.document,B,function(I){I&&I.target&&null==I.target.parentNode||C._onTouchNode(z||I.target,"mouse")}),E=b(G,"focusin",function(I){if(I.target.tagName){var F=I.target.tagName.toLowerCase();"#document"!=F&&"body"!=F&&(p.isFocusable(I.target)?C._onFocusNode(z||I.target):C._onTouchNode(z||I.target))}}),J=b(G,"focusout",function(I){C._onBlurNode(z||I.target)});return{remove:function(){D.remove();E.remove();J.remove();G=D=E=J=null}}}},
_onBlurNode:function(y){y=(new Date).getTime();y<q+100||(this._clearFocusTimer&&clearTimeout(this._clearFocusTimer),this._clearFocusTimer=setTimeout(d.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null)}),0),this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),y<w+100||(this._clearActiveWidgetsTimer=setTimeout(d.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([])}),0)))},_onTouchNode:function(y,z){w=(new Date).getTime();
this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer);h.contains(y,"dijitPopup")&&(y=y.firstChild);var C=[];try{for(;y;){var G=r.get(y,"dijitPopupParent");if(G)y=l.byId(G).domNode;else if(y.tagName&&"body"==y.tagName.toLowerCase()){if(y===k.body())break;y=m.get(y.ownerDocument).frameElement}else{var B=y.getAttribute&&y.getAttribute("widgetId"),D=B&&l.byId(B);!D||"mouse"==z&&D.get("disabled")||C.unshift(B);y=y.parentNode}}}catch(E){}this._setStack(C,
z)},_onFocusNode:function(y){y&&9!=y.nodeType&&(q=(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,z){var C=this.activeStack,G=C.length-1,B=y.length-1;if(y[B]!=C[G]){this.set("activeStack",y);var D;for(D=G;0<=D&&C[D]!=y[D];D--)if(G=l.byId(C[D]))G._hasBeenBlurred=!0,G.set("focused",!1),G._focusManager==this&&G._onBlur(z),
this.emit("widget-blur",G,z);for(D++;D<=B;D++)if(G=l.byId(y[D]))G.set("focused",!0),G._focusManager==this&&G._onFocus(z),this.emit("widget-focus",G,z)}},focus:function(y){if(y)try{y.focus()}catch(z){}}}));a(function(){var y=t.registerWin(m.get(document));c("ie")&&b(window,"unload",function(){y&&(y.remove(),y=null)})});n.focus=function(y){t.focus(y)};for(var v in t)/^_/.test(v)||(n.focus[v]="function"==typeof t[v]?d.hitch(t,v):t[v]);t.watch(function(y,z,C){n.focus[y]=C});return t})},"dojo/window":function(){define("./_base/lang ./sniff ./_base/window ./dom ./dom-geometry ./dom-style ./dom-construct".split(" "),
function(u,A,x,r,h,e,g){A.add("rtl-adjust-position-for-verticalScrollBar",function(b,a){var c=x.body(a),f=g.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},c,"last"),k=g.create("div",{style:{overflow:"hidden",direction:"ltr"}},f,"last"),m=0!=h.position(k).x;f.removeChild(k);c.removeChild(f);return m});A.add("position-fixed-support",function(b,a){var c=x.body(a),f=g.create("span",{style:{visibility:"hidden",
position:"fixed",left:"1px",top:"1px"}},c,"last"),k=g.create("span",{style:{position:"fixed",left:"0",top:"0"}},f,"last"),m=h.position(k).x!=h.position(f).x;f.removeChild(k);c.removeChild(f);return m});var d={getBox:function(b){b=b||x.doc;var a="BackCompat"==b.compatMode?x.body(b):b.documentElement,c=h.docScroll(b);if(A("touch")){var f=d.get(b);b=f.innerWidth||a.clientWidth;a=f.innerHeight||a.clientHeight}else b=a.clientWidth,a=a.clientHeight;return{l:c.x,t:c.y,w:b,h:a}},get:function(b){if(A("ie")&&
d!==document.parentWindow){b.parentWindow.execScript("document._parentWindow \x3d window;","Javascript");var a=b._parentWindow;b._parentWindow=null;return a}return b.parentWindow||b.defaultView},scrollIntoView:function(b,a){try{b=r.byId(b);var c=b.ownerDocument||x.doc,f=x.body(c),k=c.documentElement||f.parentNode,m=A("ie")||A("trident"),p=A("webkit");if(b!=f&&b!=k)if(!(A("mozilla")||m||p||A("opera")||A("trident")||A("edge"))&&"scrollIntoView"in b)b.scrollIntoView(!1);else{var l="BackCompat"==c.compatMode,
n=Math.min(f.clientWidth||k.clientWidth,k.clientWidth||f.clientWidth),q=Math.min(f.clientHeight||k.clientHeight,k.clientHeight||f.clientHeight);c=p||l?f:k;var w=a||h.position(b),t=b.parentNode;p=function(N){return 6>=m||7==m&&l?!1:A("position-fixed-support")&&"fixed"==e.get(N,"position").toLowerCase()};var v=this,y=function(N,Q,P){"BODY"==N.tagName||"HTML"==N.tagName?v.get(N.ownerDocument).scrollBy(Q,P):(Q&&(N.scrollLeft+=Q),P&&(N.scrollTop+=P))};if(!p(b))for(;t;){t==f&&(t=c);var z=h.position(t),
C=p(t),G="rtl"==e.getComputedStyle(t).direction.toLowerCase();if(t==c)z.w=n,z.h=q,c==k&&(m||A("trident"))&&G&&(z.x+=c.offsetWidth-z.w),z.x=0,z.y=0;else{var B=h.getPadBorderExtents(t);z.w-=B.w;z.h-=B.h;z.x+=B.l;z.y+=B.t;var D=t.clientWidth,E=z.w-D;0<D&&0<E&&(G&&A("rtl-adjust-position-for-verticalScrollBar")&&(z.x+=E),z.w=D);D=t.clientHeight;E=z.h-D;0<D&&0<E&&(z.h=D)}C&&(0>z.y&&(z.h+=z.y,z.y=0),0>z.x&&(z.w+=z.x,z.x=0),z.y+z.h>q&&(z.h=q-z.y),z.x+z.w>n&&(z.w=n-z.x));var J=w.x-z.x,I=w.y-z.y,F=J+w.w-z.w,
H=I+w.h-z.h;if(0<F*J&&(t.scrollLeft||t==c||t.scrollWidth>t.offsetHeight)){var K=Math[0>J?"max":"min"](J,F);G&&(8==m&&!l||5<=A("trident"))&&(K=-K);var L=t.scrollLeft;y(t,K,0);K=t.scrollLeft-L;w.x-=K}0<H*I&&(t.scrollTop||t==c||t.scrollHeight>t.offsetHeight)&&(K=Math.ceil(Math[0>I?"max":"min"](I,H)),L=t.scrollTop,y(t,0,K),K=t.scrollTop-L,w.y-=K);t=t!=c&&!C&&t.parentNode}}}catch(N){b.scrollIntoView(!1)}}};u.setObject("dojo.window",d);return d})},"dijit/a11y":function(){define("dojo/_base/array dojo/dom dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/sniff ./main".split(" "),
function(u,A,x,r,h,e,g){var d={_isElementShown:function(b){var a=r.get(b);return"hidden"!=a.visibility&&"collapsed"!=a.visibility&&"none"!=a.display&&"hidden"!=x.get(b,"type")},hasDefaultTabStop:function(b){switch(b.nodeName.toLowerCase()){case "a":return x.has(b,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":try{var a=b.contentDocument;if("designMode"in a&&"on"==a.designMode)return!0;var c=a.body}catch(f){try{c=b.contentWindow.document.body}catch(k){return!1}}return c&&
("true"==c.contentEditable||c.firstChild&&"true"==c.firstChild.contentEditable);default:return"true"==b.contentEditable}},effectiveTabIndex:function(b){if(!x.get(b,"disabled"))return x.has(b,"tabIndex")?+x.get(b,"tabIndex"):d.hasDefaultTabStop(b)?0:void 0},isTabNavigable:function(b){return 0<=d.effectiveTabIndex(b)},isFocusable:function(b){return-1<=d.effectiveTabIndex(b)},_getTabNavigable:function(b){function a(y){return y&&"input"==y.tagName.toLowerCase()&&y.type&&"radio"==y.type.toLowerCase()&&
y.name&&y.name.toLowerCase()}function c(y){return q[a(y)]||y}var f,k,m,p,l,n,q={},w=d._isElementShown,t=d.effectiveTabIndex,v=function(y){for(y=y.firstChild;y;y=y.nextSibling)if(!(1!=y.nodeType||9>=e("ie")&&"HTML"!==y.scopeName)&&w(y)){var z=t(y);if(0<=z){if(0==z)f||(f=y),k=y;else if(0<z){if(!m||z<p)p=z,m=y;if(!l||z>=n)n=z,l=y}z=a(y);x.get(y,"checked")&&z&&(q[z]=y)}"SELECT"!=y.nodeName.toUpperCase()&&v(y)}};w(b)&&v(b);return{first:c(f),last:c(k),lowest:c(m),highest:c(l)}},getFirstInTabbingOrder:function(b,
a){var c=d._getTabNavigable(A.byId(b,a));return c.lowest?c.lowest:c.first},getLastInTabbingOrder:function(b,a){var c=d._getTabNavigable(A.byId(b,a));return c.last?c.last:c.highest}};h.mixin(g,d);return d})},"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./domReady","./sniff","./_base/window"],function(u,A,x,r,h){var e=h.doc.documentElement;h=r("ie");var g=r("trident"),d=r("opera"),b=Math.floor,a=r("ff"),c=u.boxModel.replace(/-/,"");d={dj_quirks:r("quirks"),dj_opera:d,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&&(d.dj_ie=!0,d["dj_ie"+b(h)]=!0,d.dj_iequirks=r("quirks"));g&&(d.dj_trident=!0,d["dj_trident"+b(g)]=!0);a&&(d["dj_ff"+b(a)]=!0);d["dj_"+c]=!0;var f="",k;for(k in d)d[k]&&(f+=k+" ");e.className=A.trim(e.className+" "+f);x(function(){if(!u.isBodyLtr()){var m="dj_rtl dijitRtl "+f.replace(/ /g,"-rtl ");e.className=A.trim(e.className+" "+m+"dj_rtl dijitRtl "+
f.replace(/ /g,"-rtl "))}});return r})},"dijit/hccss":function(){define(["dojo/dom-class","dojo/hccss","dojo/domReady","dojo/_base/window"],function(u,A,x,r){x(function(){A("highcontrast")&&u.add(r.body(),"dijit_a11y")});return A})},"dojo/hccss":function(){define("require ./_base/config ./dom-class ./dom-style ./has ./domReady ./_base/window".split(" "),function(u,A,x,r,h,e,g){h.add("highcontrast",function(){var d=g.doc.createElement("div");try{d.style.cssText='border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;background-image: url("'+
(A.blankGif||u.toUrl("./resources/blank.gif"))+'");';g.body().appendChild(d);var b=r.getComputedStyle(d),a=b.backgroundImage;return b.borderTopColor==b.borderRightColor||a&&("none"==a||"url(invalid-url:)"==a)}catch(c){return!1}finally{8>=h("ie")?d.outerHTML="":g.body().removeChild(d)}});e(function(){h("highcontrast")&&x.add(g.body(),"dj_a11y")});return h})},"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(u,A,x,r,h,e,g,d,b,a,c,f){A=A("dijit._CssStateMixin",[],{hovering:!1,active:!1,_applyAttributes:function(){this.inherited(arguments);u.forEach("disabled readOnly checked selected focused state hovering active _opened".split(" "),function(m){this.watch(m,e.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(w){m=m.concat(u.map(m,function(t){return t+w}),"dijit"+w)}var m=this.baseClass.split(" ");
this.isLeftToRight()||k("Rtl");var p="mixed"==this.checked?"Mixed":this.checked?"Checked":"";this.checked&&k(p);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");p=this.stateNode||this.domNode;var l={};u.forEach(p.className.split(" "),function(w){l[w]=!0});"_stateClasses"in this&&u.forEach(this._stateClasses,function(w){delete l[w]});u.forEach(m,
function(w){l[w]=!0});var n=[],q;for(q in l)n.push(q);p.className=n.join(" ");this._stateClasses=m},_subnodeCssMouseEvent:function(k,m,p){function l(n){r.toggle(k,m+"Active",n)}if(!this.disabled&&!this.readOnly)switch(p.type){case "mouseover":case "MSPointerOver":case "pointerover":r.toggle(k,m+"Hover",!0);break;case "mouseout":case "MSPointerOut":case "pointerout":r.toggle(k,m+"Hover",!1);l(!1);break;case "mousedown":case "touchstart":case "MSPointerDown":case "pointerdown":case "keydown":l(!0);
break;case "mouseup":case "MSPointerUp":case "pointerup":case "dojotouchend":case "keyup":l(!1);break;case "focus":case "focusin":r.toggle(k,m+"Focused",!0);break;case "blur":case "focusout":r.toggle(k,m+"Focused",!1)}},_trackMouseState:function(k,m){k._cssState=m}});d(function(){function k(l,n,q){if(!q||!x.isDescendant(q,n))for(;n&&n!=q;n=n.parentNode)if(n._cssState){var w=f.getEnclosingWidget(n);w&&(n==w.domNode?w._cssMouseEvent(l):w._subnodeCssMouseEvent(n,n._cssState,l))}}var m=a.body(),p;g(m,
b.over,function(l){k(l,l.target,l.relatedTarget)});g(m,b.out,function(l){k(l,l.target,l.relatedTarget)});g(m,c.press,function(l){p=l.target;k(l,p)});g(m,c.release,function(l){k(l,p);p=null});g(m,"focusin, focusout",function(l){var n=l.target;if(n._cssState&&!n.getAttribute("widgetId")){var q=f.getEnclosingWidget(n);q&&q._subnodeCssMouseEvent(n,n._cssState,l)}})});return A})},"dijit/_TemplatedMixin":function(){define("dojo/cache dojo/_base/declare dojo/dom-construct dojo/_base/lang dojo/on dojo/sniff dojo/string ./_AttachMixin".split(" "),
function(u,A,x,r,h,e,g,d){var b=A("dijit._TemplatedMixin",d,{templateString:null,templatePath:null,_skipNodeCache:!1,searchContainerNode:!0,_stringRepl:function(a){var c=this.declaredClass,f=this;return g.substitute(a,this,function(k,m){"!"==m.charAt(0)&&(k=r.getObject(m.substr(1),!1,f));if("undefined"==typeof k)throw Error(c+" template:"+m);return null==k?"":"!"==m.charAt(0)?k:this._escapeValue(""+k)},this)},_escapeValue:function(a){return a.replace(/["'<>&]/g,function(c){return{"\x26":"\x26amp;",
"\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;"}[c]})},buildRendering:function(){if(!this._rendered){this.templateString||(this.templateString=u(this.templatePath,{sanitize:!0}));var a=b.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument);if(r.isString(a)){var c=x.toDom(this._stringRepl(a),this.ownerDocument);if(1!=c.nodeType)throw Error("Invalid template: "+a);}else c=a.cloneNode(!0);this.domNode=c}this.inherited(arguments);this._rendered||this._fillContent(this.srcNodeRef);
this._rendered=!0},_fillContent:function(a){var c=this.containerNode;if(a&&c)for(;a.hasChildNodes();)c.appendChild(a.firstChild)}});b._templateCache={};b.getCachedTemplate=function(a,c,f){var k=b._templateCache,m=a,p=k[m];if(p){try{if(!p.ownerDocument||p.ownerDocument==(f||document))return p}catch(l){}x.destroy(p)}a=g.trim(a);if(c||a.match(/\$\{([^\}]+)\}/g))return k[m]=a;c=x.toDom(a,f);if(1!=c.nodeType)throw Error("Invalid template: "+a);return k[m]=c};e("ie")&&h(window,"unload",function(){var a=
b._templateCache,c;for(c in a){var f=a[c];"object"==typeof f&&x.destroy(f);delete a[c]}});return b})},"dojo/cache":function(){define(["./_base/kernel","./text"],function(u){return u.cache})},"dojo/text":function(){define(["./_base/kernel","require","./has","./request"],function(u,A,x,r){var h=function(a,c,f){r(a,{sync:!!c,headers:{"X-Requested-With":null}}).then(f)};var e={},g=function(a){if(a){a=a.replace(/^\s*<\?xml(\s)+version=['"](\d)*.(\d)*['"](\s)*\?>/im,"");var c=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
c&&(a=c[1])}else a="";return a},d={},b={};u.cache=function(a,c,f){if("string"==typeof a)if(/\//.test(a)){var k=a;f=c}else k=A.toUrl(a.replace(/\./g,"/")+(c?"/"+c:""));else k=a+"",f=c;a=void 0!=f&&"string"!=typeof f?f.value:f;f=f&&f.sanitize;if("string"==typeof a)return e[k]=a,f?g(a):a;if(null===a)return delete e[k],null;k in e||h(k,!0,function(m){e[k]=m});return f?g(e[k]):e[k]};return{dynamic:!0,normalize:function(a,c){var f=a.split("!"),k=f[0];return(/^\./.test(k)?c(k):k)+(f[1]?"!"+f[1]:"")},load:function(a,
c,f){a=a.split("!");var k=1<a.length,m=a[0],p=c.toUrl(a[0]);a="url:"+p;var l=d,n=function(w){f(k?g(w):w)};m in e?l=e[m]:c.cache&&a in c.cache?l=c.cache[a]:p in e&&(l=e[p]);if(l===d)if(b[p])b[p].push(n);else{var q=b[p]=[n];h(p,!c.async,function(w){e[m]=e[p]=w;for(var t=0;t<q.length;)q[t++](w);delete b[p]})}else n(l)}}})},"dojo/request":function(){define(["./request/default!"],function(u){return u})},"dojo/request/default":function(){define(["exports","require","../has"],function(u,A,x){var r=x("config-requestProvider");
r||(r="./xhr");u.getPlatformDefaultId=function(){return"./xhr"};u.load=function(h,e,g,d){A(["platform"==h?"./xhr":r],function(b){g(b)})}})},"dijit/_AttachMixin":function(){define("require dojo/_base/array dojo/_base/connect dojo/_base/declare dojo/_base/lang dojo/mouse dojo/on dojo/touch ./_WidgetBase".split(" "),function(u,A,x,r,h,e,g,d,b){var a=h.delegate(d,{mouseenter:e.enter,mouseleave:e.leave,keypress:x._keypress}),c;x=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(f){for(var k=f;;)if(1==k.nodeType&&(this._processTemplateNode(k,function(m,p){return m.getAttribute(p)},this._attach)||this.searchContainerNode)&&k.firstChild)k=k.firstChild;else{if(k==f)break;for(;!k.nextSibling;)if(k=k.parentNode,k==f)return;k=k.nextSibling}},_processTemplateNode:function(f,k,m){var p=
!0,l=this.attachScope||this,n=k(f,"dojoAttachPoint")||k(f,"data-dojo-attach-point");if(n)for(var q=n.split(/\s*,\s*/);n=q.shift();)h.isArray(l[n])?l[n].push(f):l[n]=f,p="containerNode"!=n,this._attachPoints.push(n);if(k=k(f,"dojoAttachEvent")||k(f,"data-dojo-attach-event"))for(n=k.split(/\s*,\s*/),q=h.trim;k=n.shift();)if(k){var w=null;-1!=k.indexOf(":")?(w=k.split(":"),k=q(w[0]),w=q(w[1])):k=q(k);w||(w=k);this._attachEvents.push(m(f,k,h.hitch(l,w)))}return p},_attach:function(f,k,m){k=k.replace(/^on/,
"").toLowerCase();k="dijitclick"==k?c||(c=u("./a11yclick")):a[k]||k;return g(f,k,m)},_detachTemplateNodes:function(){var f=this.attachScope||this;A.forEach(this._attachPoints,function(k){delete f[k]});this._attachPoints=[];A.forEach(this._attachEvents,function(k){k.remove()});this._attachEvents=[]},destroyRendering:function(){this._detachTemplateNodes();this.inherited(arguments)}});h.extend(b,{dojoAttachEvent:"",dojoAttachPoint:""});return x})},"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(u,A,x,r,h,e,g,d,b,a){return A("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(c){this._set("disabled",c);/^(button|input|select|textarea|optgroup|option|fieldset)$/i.test(this.focusNode.tagName)?(x.set(this.focusNode,"disabled",c),d("trident")&&"readOnly"in this&&x.set(this.focusNode,"readonly",c||this.readOnly)):
this.focusNode.setAttribute("aria-disabled",c?"true":"false");this.valueNode&&x.set(this.valueNode,"disabled",c);c?(this._set("hovering",!1),this._set("active",!1),c="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"_setTabIndexAttr"in this?this._setTabIndexAttr:"focusNode",u.forEach(h.isArray(c)?c:[c],function(f){f=this[f];d("webkit")||a.hasDefaultTabStop(f)?f.setAttribute("tabIndex","-1"):f.removeAttribute("tabIndex")},this)):""!=this.tabIndex&&this.set("tabIndex",this.tabIndex)},_onFocus:function(c){if("mouse"==
c&&this.isFocusable())var f=this.own(g(this.focusNode,"focus",function(){m.remove();f.remove()}))[0],k=d("pointer-events")?"pointerup":d("MSPointer")?"MSPointerUp":d("touch-events")?"touchend, mouseup":"mouseup",m=this.own(g(this.ownerDocumentBody,k,h.hitch(this,function(p){m.remove();f.remove();this.focused&&("touchend"==p.type?this.defer("focus"):this.focus())})))[0];this.scrollOnFocus&&this.defer(function(){b.scrollIntoView(this.domNode)});this.inherited(arguments)},isFocusable:function(){return!this.disabled&&
this.focusNode&&"none"!=r.get(this.domNode,"display")},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(c){}},compare:function(c,f){return"number"==typeof c&&"number"==typeof f?isNaN(c)&&isNaN(f)?0:c-f:c>f?1:c<f?-1:0},onChange:function(){},_onChangeActive:!1,_handleOnChange:function(c,f){void 0!=this._lastValueReported||null!==f&&this._onChangeActive||(this._resetValue=this._lastValueReported=c);this._pendingOnChange=this._pendingOnChange||typeof c!=typeof this._lastValueReported||
0!=this.compare(c,this._lastValueReported);(this.intermediateChanges||f||void 0===f)&&this._pendingOnChange&&(this._lastValueReported=c,this._pendingOnChange=!1,this._onChangeActive&&(this._onChangeHandle&&this._onChangeHandle.remove(),this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(c)})))},create:function(){this.inherited(arguments);this._onChangeActive=!0},destroy:function(){this._onChangeHandle&&(this._onChangeHandle.remove(),this.onChange(this._lastValueReported));
this.inherited(arguments)}})})},"dijit/form/_FormValueMixin":function(){define("dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dojo/sniff ./_FormWidgetMixin".split(" "),function(u,A,x,r,h,e,g){return u("dijit.form._FormValueMixin",g,{readOnly:!1,_setReadOnlyAttr:function(d){e("trident")&&"disabled"in this?A.set(this.focusNode,"readOnly",d||this.disabled):A.set(this.focusNode,"readOnly",d);this._set("readOnly",d)},postCreate:function(){this.inherited(arguments);void 0===this._resetValue&&
(this._lastValueReported=this._resetValue=this.value)},_setValueAttr:function(d,b){this._handleOnChange(d,b)},_handleOnChange:function(d,b){this._set("value",d);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(u,
A,x,r,h,e,g,d){var b=A("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(a,c,f){if(void 0!==a){var k=this.filter(a);"string"!=typeof f&&(f=null===k||"number"==typeof k&&isNaN(k)?"":this.filter(this.format(k,this.constraints)),0!=this.compare(k,this.filter(this.parse(f,this.constraints)))&&
(f=null))}null==f||"number"==typeof f&&isNaN(f)||this.textbox.value==f||(this.textbox.value=f,this._set("displayedValue",this.get("displayedValue")));this.inherited(arguments,[k,c])},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},_setDisplayedValueAttr:function(a){null==a?a="":"string"!=typeof a&&(a=String(a));this.textbox.value=a;this._setValueAttr(this.get("value"),void 0);this._set("displayedValue",this.get("displayedValue"))},format:function(a){return null==
a?"":a.toString?a.toString():a},parse:function(a){return a},_refreshState:function(){},onInput:function(){},_onInput:function(a){this._lastInputEventValue=this.textbox.value;this._processInput(this._lastInputProducingEvent||a);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(g(this.textbox,"keydown, keypress, paste, cut, compositionend",e.hitch(this,function(a){if("keydown"==a.type&&229!=a.keyCode){var c=a.keyCode;switch(c){case h.SHIFT:case h.ALT:case h.CTRL:case h.META:case h.CAPS_LOCK:case h.NUM_LOCK:case h.SCROLL_LOCK:return}if(!a.ctrlKey&&!a.metaKey&&!a.altKey){switch(c){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<=
c&&90>=c||48<=c&&57>=c||c==h.SPACE)return;c=!1;for(var f in h)if(h[f]===a.keyCode){c=!0;break}if(!c)return}}(c=32<=a.charCode?String.fromCharCode(a.charCode):a.charCode)||(c=65<=a.keyCode&&90>=a.keyCode||48<=a.keyCode&&57>=a.keyCode||a.keyCode==h.SPACE?String.fromCharCode(a.keyCode):a.keyCode);c||(c=229);if("keypress"==a.type){if("string"!=typeof c)return;if("a"<=c&&"z">=c||"A"<=c&&"Z">=c||"0"<=c&&"9">=c||" "===c)if(a.ctrlKey||a.metaKey||a.altKey)return}var k={faux:!0},m;for(m in a)/^(layer[XY]|returnValue|keyLocation)$/.test(m)||
(f=a[m],"function"!=typeof f&&"undefined"!=typeof f&&(k[m]=f));e.mixin(k,{charOrCode:c,_wasConsumed:!1,preventDefault:function(){k._wasConsumed=!0;a.preventDefault()},stopPropagation:function(){a.stopPropagation()}});this._lastInputProducingEvent=k;!1===this.onInput(k)&&(k.preventDefault(),k.stopPropagation());if(!k._wasConsumed&&9>=r("ie"))switch(a.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:a.keyCode==h.ENTER&&"textarea"!=
this.textbox.tagName.toLowerCase()||this.defer(function(){this.textbox.value!==this._lastInputEventValue&&g.emit(this.textbox,"input",{bubbles:!0})})}})),g(this.textbox,"input",e.hitch(this,"_onInput")),g(this.domNode,"keypress",function(a){a.stopPropagation()}))},_blankValue:"",filter:function(a){if(null===a)return this._blankValue;if("string"!=typeof a)return a;this.trim&&(a=e.trim(a));this.uppercase&&(a=a.toUpperCase());this.lowercase&&(a=a.toLowerCase());this.propercase&&(a=a.replace(/[^\s]+/g,
function(c){return c.substring(0,1).toUpperCase()+c.substring(1)}));return a},_setBlurValue:function(){this._setValueAttr(this.get("value"),!0)},_onBlur:function(a){this.disabled||(this._setBlurValue(),this.inherited(arguments))},_isTextSelected:function(){return this.textbox.selectionStart!=this.textbox.selectionEnd},_onFocus:function(a){this.disabled||this.readOnly||(this.selectOnClick&&"mouse"==a&&(this._selectOnClickHandle=g.once(this.domNode,"mouseup, touchend",e.hitch(this,function(c){this._isTextSelected()||
b.selectInputText(this.textbox)})),this.own(this._selectOnClickHandle),this.defer(function(){this._selectOnClickHandle&&(this._selectOnClickHandle.remove(),this._selectOnClickHandle=null)},500)),this.inherited(arguments),this._refreshState())},reset:function(){this.textbox.value="";this.inherited(arguments)}});r("dojo-bidi")&&(b=A("dijit.form._TextBoxMixin",b,{_setValueAttr:function(){this.inherited(arguments);this.applyTextDir(this.focusNode)},_setDisplayedValueAttr:function(){this.inherited(arguments);
this.applyTextDir(this.focusNode)},_onInput:function(){this.applyTextDir(this.focusNode);this.inherited(arguments)}}));b._setSelectionRange=d._setSelectionRange=function(a,c,f){a.setSelectionRange&&a.setSelectionRange(c,f)};b.selectInputText=d.selectInputText=function(a,c,f){a=x.byId(a);isNaN(c)&&(c=0);isNaN(f)&&(f=a.value?a.value.length:0);try{a.focus(),b._setSelectionRange(a,c,f)}catch(k){}};return b})},"dijit/form/NumberSpinner":function(){define(["dojo/_base/declare","dojo/keys","./_Spinner",
"./NumberTextBox"],function(u,A,x,r){return u("dijit.form.NumberSpinner",[x,r.Mixin],{baseClass:"dijitTextBox dijitSpinner dijitNumberTextBox",adjust:function(h,e){var g=this.constraints,d=isNaN(h),b=!isNaN(g.max),a=!isNaN(g.min);d&&0!=e&&(h=0<e?a?g.min:b?g.max:0:b?this.constraints.max:a?g.min:0);var c=h+e;if(d||isNaN(c))return h;b&&c>g.max&&(c=g.max);a&&c<g.min&&(c=g.min);return c},_onKeyDown:function(h){if(!(this.disabled||this.readOnly||h.keyCode!=A.HOME&&h.keyCode!=A.END||h.ctrlKey||h.altKey||
h.metaKey||"undefined"==typeof this.get("value"))){var e=this.constraints[h.keyCode==A.HOME?"min":"max"];"number"==typeof e&&this._setValueAttr(e,!1);h.stopPropagation();h.preventDefault()}}})})},"dijit/form/_Spinner":function(){define("dojo/_base/declare dojo/keys dojo/_base/lang dojo/sniff dojo/mouse dojo/on ../typematic ./RangeBoundTextBox dojo/text!./templates/Spinner.html ./_TextBoxMixin".split(" "),function(u,A,x,r,h,e,g,d,b,a){return u("dijit.form._Spinner",d,{defaultTimeout:500,minimumTimeout:10,
timeoutChangeRate:.9,smallDelta:1,largeDelta:10,templateString:b,baseClass:"dijitTextBox dijitSpinner",cssStateNodes:{upArrowNode:"dijitUpArrowButton",downArrowNode:"dijitDownArrowButton"},adjust:function(c){return c},_arrowPressed:function(c,f,k){this.disabled||this.readOnly||(this._setValueAttr(this.adjust(this.get("value"),f*k),!1),a.selectInputText(this.textbox,this.textbox.value.length))},_arrowReleased:function(){this._wheelTimer=null},_typematicCallback:function(c,f,k){var m=this.smallDelta;
f==this.textbox&&(f=k.keyCode,m=f==A.PAGE_UP||f==A.PAGE_DOWN?this.largeDelta:this.smallDelta,f=f==A.UP_ARROW||f==A.PAGE_UP?this.upArrowNode:this.downArrowNode);-1==c?this._arrowReleased(f):this._arrowPressed(f,f==this.upArrowNode?1:-1,m)},_wheelTimer:null,_mouseWheeled:function(c){if(this.focused){c.stopPropagation();c.preventDefault();var f=c.wheelDelta/120;Math.floor(f)!=f&&(f=0<c.wheelDelta?1:-1);c=c.detail?-1*c.detail:f;if(0!==c){var k=this[0<c?"upArrowNode":"downArrowNode"];this._arrowPressed(k,
c,this.smallDelta);this._wheelTimer&&this._wheelTimer.remove();this._wheelTimer=this.defer(function(){this._arrowReleased(k)},50)}}},_setConstraintsAttr:function(c){this.inherited(arguments);this.focusNode&&(void 0!==this.constraints.min?this.focusNode.setAttribute("aria-valuemin",this.constraints.min):this.focusNode.removeAttribute("aria-valuemin"),void 0!==this.constraints.max?this.focusNode.setAttribute("aria-valuemax",this.constraints.max):this.focusNode.removeAttribute("aria-valuemax"))},_setValueAttr:function(c,
f){this.focusNode.setAttribute("aria-valuenow",c);this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this.own(e(this.domNode,h.wheel,x.hitch(this,"_mouseWheeled")),g.addListener(this.upArrowNode,this.textbox,{keyCode:A.UP_ARROW,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),g.addListener(this.downArrowNode,this.textbox,{keyCode:A.DOWN_ARROW,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,
"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),g.addListener(this.upArrowNode,this.textbox,{keyCode:A.PAGE_UP,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),g.addListener(this.downArrowNode,this.textbox,{keyCode:A.PAGE_DOWN,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout))}})})},"dijit/typematic":function(){define("dojo/_base/array dojo/_base/connect dojo/_base/lang dojo/on dojo/sniff ./main".split(" "),
function(u,A,x,r,h,e){var g=e.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(x.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(d,b,a,c,f,k,m,p){if(f!=this._obj){this.stop();this._initialDelay=m||500;this._subsequentDelay=
k||.9;this._minDelay=p||10;this._obj=f;this._node=a;this._count=this._currentTimeout=-1;this._callback=x.hitch(b,c);this._evt={faux:!0};for(var l in d)"layerX"!=l&&"layerY"!=l&&(b=d[l],"function"!=typeof b&&"undefined"!=typeof b&&(this._evt[l]=b));this._fireEventAndReload()}},stop:function(){this._timer&&(clearTimeout(this._timer),this._timer=null);this._obj&&(this._callback(-1,this._node,this._evt),this._obj=null)},addKeyListener:function(d,b,a,c,f,k,m){var p="keyCode"in b?"keyCode":"charCode"in
b?"charCode":"charOrCode",l=[r(d,"keyCode"in b?"keydown":"charCode"in b?"keypress":A._keypress,x.hitch(this,function(n){n[p]!=b[p]||void 0!==b.ctrlKey&&b.ctrlKey!=n.ctrlKey||void 0!==b.altKey&&b.altKey!=n.altKey||void 0!==b.metaKey&&b.metaKey!=(n.metaKey||!1)||void 0!==b.shiftKey&&b.shiftKey!=n.shiftKey?g._obj==b&&g.stop():(n.stopPropagation(),n.preventDefault(),g.trigger(n,a,d,c,b,f,k,m))})),r(d,"keyup",x.hitch(this,function(){g._obj==b&&g.stop()}))];return{remove:function(){u.forEach(l,function(n){n.remove()})}}},
addMouseListener:function(d,b,a,c,f,k){var m=[r(d,"mousedown",x.hitch(this,function(p){p.preventDefault();g.trigger(p,b,d,a,d,c,f,k)})),r(d,"mouseup",x.hitch(this,function(p){this._obj&&p.preventDefault();g.stop()})),r(d,"mouseout",x.hitch(this,function(p){this._obj&&p.preventDefault();g.stop()})),r(d,"dblclick",x.hitch(this,function(p){p.preventDefault();9>h("ie")&&(g.trigger(p,b,d,a,d,c,f,k),setTimeout(x.hitch(this,g.stop),50))}))];return{remove:function(){u.forEach(m,function(p){p.remove()})}}},
addListener:function(d,b,a,c,f,k,m,p){var l=[this.addKeyListener(b,a,c,f,k,m,p),this.addMouseListener(d,c,f,k,m,p)];return{remove:function(){u.forEach(l,function(n){n.remove()})}}}};return g})},"dijit/form/RangeBoundTextBox":function(){define(["dojo/_base/declare","dojo/i18n","./MappedTextBox","dojo/i18n!./nls/validate"],function(u,A,x){return u("dijit.form.RangeBoundTextBox",x,{rangeMessage:"",rangeCheck:function(r,h){return("min"in h?0<=this.compare(r,h.min):!0)&&("max"in h?0>=this.compare(r,h.max):
!0)},isInRange:function(){return this.rangeCheck(this.get("value"),this.constraints)},_isDefinitelyOutOfRange:function(){var r=this.get("value");if(null==r)return!1;var h=!1;"min"in this.constraints&&(h=this.constraints.min,h=0>this.compare(r,"number"==typeof h&&0<=h&&0!=r?0:h));!h&&"max"in this.constraints&&(h=this.constraints.max,h=0<this.compare(r,"number"!=typeof h||0<h?h:0));return h},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange()},isValid:function(r){return this.inherited(arguments)&&
(this._isEmpty(this.textbox.value)&&!this.required||this.isInRange(r))},getErrorMessage:function(r){var h=this.get("value");return null==h||""===h||"number"==typeof h&&isNaN(h)||this.isInRange(r)?this.inherited(arguments):this.rangeMessage},postMixInProperties:function(){this.inherited(arguments);this.rangeMessage||(this.messages=A.getLocalization("dijit.form","validate",this.lang),this.rangeMessage=this.messages.rangeMessage)}})})},"dojo/i18n":function(){define("./_base/kernel require ./has ./_base/array ./_base/config ./_base/lang ./_base/xhr ./json module".split(" "),
function(u,A,x,r,h,e,g,d,b){x.add("dojo-preload-i18n-Api",1);var a=u.i18n={},c=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,f=function(E,J,I,F){var H=[I+F];J=J.split("-");for(var K="",L=0;L<J.length;L++)if(K+=(K?"-":"")+J[L],!E||E[K])H.push(I+K+"/"+F),H.specificity=K;return H},k={},m=function(E,J,I){I=I?I.toLowerCase():u.locale;E=E.replace(/\./g,"/");J=J.replace(/\./g,"/");return/root/i.test(I)?E+"/nls/"+J:E+"/nls/"+I+"/"+J},p=u.getL10nName=function(E,J,I){return E=b.id+"!"+m(E,J,I)},l=function(E,J,
I,F,H,K){E([J],function(L){var N=e.clone(L.root||L.ROOT),Q=f(!L._v1x&&L,H,I,F);E(Q,function(){for(var P=1;P<Q.length;P++)N=e.mixin(e.clone(N),arguments[P]);k[J+"/"+H]=N;N.$locale=Q.specificity;K()})})},n=function(E){var J=h.extraLocale||[];J=e.isArray(J)?J:[J];J.push(E);return J},q=function(E,J,I){var F=c.exec(E),H=F[1]+"/",K=F[5]||F[4],L=H+K,N=(F=F[5]&&F[4])||u.locale||"",Q=L+"/"+N;F=F?[N]:n(N);var P=F.length,S=function(){--P||I(e.delegate(k[Q]))};N=E.split("*");var M="preload"==N[1];if(x("dojo-preload-i18n-Api")){if(M&&
(k[E]||(k[E]=1,y(N[2],d.parse(N[3]),1,J)),I(1)),(N=M)||(t&&v.push([E,J,I]),N=t&&!k[Q]),N)return}else if(M){I(1);return}r.forEach(F,function(R){var T=L+"/"+R;x("dojo-preload-i18n-Api")&&z(T);k[T]?S():l(J,L,H,K,R,S)})};x("dojo-preload-i18n-Api");var w=a.normalizeLocale=function(E){E=E?E.toLowerCase():u.locale;return"root"==E?"ROOT":E},t=0,v=[],y=a._preloadLocalizations=function(E,J,I,F){function H(Q,P){F.isXdUrl(A.toUrl(Q+".js"))||I?F([Q],P):D([Q],P,F)}function K(Q,P){for(var S=Q.split("-");S.length;){if(P(S.join("-")))return;
S.pop()}P("ROOT")}function L(){for(--t;!t&&v.length;)q.apply(null,v.shift())}function N(Q){Q=w(Q);K(Q,function(P){if(0<=r.indexOf(J,P)){var S=E.replace(/\./g,"/")+"_"+P;t++;H(S,function(M){for(var R in M){var T=M[R],X=R.match(/(.+)\/([^\/]+)$/);if(X){var Z=X[2];X=X[1]+"/";if(T._localized){var da;if("ROOT"===P){var ba=da=T._localized;delete T._localized;ba.root=T;k[A.toAbsMid(R)]=ba}else da=T._localized,k[A.toAbsMid(X+Z+"/"+P)]=T;P!==Q&&function(fa,ca,ia,ha){var qa=[],na=[];K(Q,function(ja){ha[ja]&&
(qa.push(A.toAbsMid(fa+ja+"/"+ca)),na.push(A.toAbsMid(fa+ca+"/"+ja)))});qa.length?(t++,F(qa,function(){for(var ja=qa.length-1;0<=ja;ja--)ia=e.mixin(e.clone(ia),arguments[ja]),k[na[ja]]=ia;k[A.toAbsMid(fa+ca+"/"+Q)]=e.clone(ia);L()})):k[A.toAbsMid(fa+ca+"/"+Q)]=ia}(X,Z,T,da)}}}L()});return!0}return!1})}F=F||A;N();r.forEach(u.config.extraLocale,N)},z=function(){},C={},G={},B,D=function(E,J,I){var F=[];r.forEach(E,function(H){function K(Q){B||(B=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;}"));Q=B(Q,z,H,C);Q===C?F.push(k[L]=C.result):(Q instanceof Error&&(Q={}),F.push(k[L]=/nls\/[^\/]+\/[^\/]+$/.test(L)?
Q:{root:Q,_v1x:1}))}var L=I.toUrl(H+".js");if(k[L])F.push(k[L]);else{var N=I.syncLoadNls(H);N||(N=z(H.replace(/nls\/([^\/]*)\/([^\/]*)$/,"nls/$2/$1")));if(N)F.push(N);else if(g)g.get({url:L,sync:!0,load:K,error:function(){F.push(k[L]={})}});else try{I.getText(L,!0,K)}catch(Q){F.push(k[L]={})}}});J&&J.apply(null,F)};z=function(E){for(var J,I=E.split("/"),F=u.global[I[0]],H=1;F&&H<I.length-1;F=F[I[H++]]);F&&((J=F[I[H]])||(J=F[I[H].replace(/-/g,"_")]),J&&(k[E]=J));return J};a.getLocalization=function(E,
J,I){var F,H=m(E,J,I);if(G[H])return G[H];q(H,A.isXdUrl(A.toUrl(H+".js"))?A:function(K,L){D(K,L,A)},function(K){F=G[H]=K});return F};return e.mixin(a,{dynamic:!0,normalize:function(E,J){return/^\./.test(E)?J(E):E},load:q,cache:k,getL10nName:p})})},"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(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l){u._xhrObj=
p._create;var n=u.config;u.objectToQuery=r.objectToQuery;u.queryToObject=r.queryToObject;u.fieldToObject=e.fieldToObject;u.formToObject=e.toObject;u.formToQuery=e.toQuery;u.formToJson=e.toJson;u._blockAsync=!1;var q=u._contentHandlers=u.contentHandlers={text:function(z){return z.responseText},json:function(z){return b.fromJson(z.responseText||null)},"json-comment-filtered":function(z){z=z.responseText;var C=z.indexOf("/*"),G=z.lastIndexOf("*/");if(-1==C||-1==G)throw Error("JSON was not comment filtered");
return b.fromJson(z.substring(C+2,G))},javascript:function(z){return u.eval(z.responseText)},xml:function(z){var C=z.responseXML;C&&A("dom-qsa2.1")&&!C.querySelectorAll&&A("dom-parser")&&(C=(new DOMParser).parseFromString(z.responseText,"application/xml"));if(A("ie")&&(!C||!C.documentElement)){var G=function(B){return"MSXML"+B+".DOMDocument"};G=["Microsoft.XMLDOM",G(6),G(4),G(3),G(2)];c.some(G,function(B){try{var D=new ActiveXObject(B);D.async=!1;D.loadXML(z.responseText);C=D}catch(E){return!1}return!0})}return C},
"json-comment-optional":function(z){return z.responseText&&/^[^{\[]*\/\*/.test(z.responseText)?q["json-comment-filtered"](z):q.json(z)}};u._ioSetArgs=function(z,C,G,B){var D={args:z,url:z.url},E=null;if(z.form){E=h.byId(z.form);var J=E.getAttributeNode("action");D.url=D.url||(J?J.value:u.doc?u.doc.URL:null);E=e.toObject(E)}J={};E&&a.mixin(J,E);z.content&&a.mixin(J,z.content);z.preventCache&&(J["dojo.preventCache"]=(new Date).valueOf());D.query=r.objectToQuery(J);D.handleAs=z.handleAs||"text";var I=
new g(function(L){L.canceled=!0;C&&C(L);var N=L.ioArgs.error;N||(N=Error("request cancelled"),N.dojoType="cancel",L.ioArgs.error=N);return N});I.addCallback(G);var F=z.load;F&&a.isFunction(F)&&I.addCallback(function(L){return F.call(z,L,D)});var H=z.error;H&&a.isFunction(H)&&I.addErrback(function(L){return H.call(z,L,D)});var K=z.handle;K&&a.isFunction(K)&&I.addBoth(function(L){return K.call(z,L,D)});I.addErrback(function(L){return B(L,I)});n.ioPublish&&u.publish&&!1!==D.args.ioPublish&&(I.addCallbacks(function(L){u.publish("/dojo/io/load",
[I,L]);return L},function(L){u.publish("/dojo/io/error",[I,L]);return L}),I.addBoth(function(L){u.publish("/dojo/io/done",[I,L]);return L}));I.ioArgs=D;return I};var w=function(z){z=q[z.ioArgs.handleAs](z.ioArgs.xhr);return void 0===z?null:z},t=function(z,C){return z},v=function(z){0>=y&&(y=0,n.ioPublish&&u.publish&&(!z||z&&!1!==z.ioArgs.args.ioPublish)&&u.publish("/dojo/io/stop"))},y=0;k.after(m,"_onAction",function(){--y});k.after(m,"_onInFlight",v);u._ioCancelAll=m.cancelAll;u._ioNotifyStart=function(z){n.ioPublish&&
u.publish&&!1!==z.ioArgs.args.ioPublish&&(y||u.publish("/dojo/io/start"),y+=1,u.publish("/dojo/io/send",[z]))};u._ioWatch=function(z,C,G,B){z.ioArgs.options=z.ioArgs.args;a.mixin(z,{response:z.ioArgs,isValid:function(D){return C(z)},isReady:function(D){return G(z)},handleResponse:function(D){return B(z)}});m(z);v(z)};u._ioAddQueryToUrl=function(z){z.query.length&&(z.url+=(-1==z.url.indexOf("?")?"?":"\x26")+z.query,z.query=null)};u.xhr=function(z,C,G){var B=u._ioSetArgs(C,function(I){J&&J.cancel()},
w,t),D=B.ioArgs;"postData"in C?D.query=C.postData:"putData"in C?D.query=C.putData:"rawBody"in C?D.query=C.rawBody:(2<arguments.length&&!G||-1==="POST|PUT".indexOf(z.toUpperCase()))&&u._ioAddQueryToUrl(D);var E={method:z,handleAs:"text",timeout:C.timeout,withCredentials:C.withCredentials,ioArgs:D};"undefined"!==typeof C.headers&&(E.headers=C.headers);"undefined"!==typeof C.contentType&&(E.headers||(E.headers={}),E.headers["Content-Type"]=C.contentType);"undefined"!==typeof D.query&&(E.data=D.query);
"undefined"!==typeof C.sync&&(E.sync=C.sync);u._ioNotifyStart(B);try{var J=p(D.url,E,!0)}catch(I){return B.cancel(),B}B.ioArgs.xhr=J.response.xhr;J.then(function(){B.resolve(B)}).otherwise(function(I){D.error=I;I.response&&(I.status=I.response.status,I.responseText=I.response.text,I.xhr=I.response.xhr);B.reject(I)});return B};u.xhrGet=function(z){return u.xhr("GET",z)};u.rawXhrPost=u.xhrPost=function(z){return u.xhr("POST",z,!0)};u.rawXhrPut=u.xhrPut=function(z){return u.xhr("PUT",z,!0)};u.xhrDelete=
function(z){return u.xhr("DELETE",z)};u._isDocumentOk=function(z){return l.checkStatus(z.status)};u._getText=function(z){var C;u.xhrGet({url:z,sync:!0,load:function(G){C=G}});return C};a.mixin(u.xhr,{_xhrObj:u._xhrObj,fieldToObject:e.fieldToObject,formToObject:e.toObject,objectToQuery:r.objectToQuery,formToQuery:e.toQuery,formToJson:e.toJson,queryToObject:r.queryToObject,contentHandlers:q,_ioSetArgs:u._ioSetArgs,_ioCancelAll:u._ioCancelAll,_ioNotifyStart:u._ioNotifyStart,_ioWatch:u._ioWatch,_ioAddQueryToUrl:u._ioAddQueryToUrl,
_isDocumentOk:u._isDocumentOk,_getText:u._getText,get:u.xhrGet,post:u.xhrPost,put:u.xhrPut,del:u.xhrDelete});return u.xhr})},"dojo/io-query":function(){define(["./_base/lang"],function(u){var A={};return{objectToQuery:function(x){var r=encodeURIComponent,h=[],e;for(e in x){var g=x[e];if(g!=A[e]){var d=r(e)+"\x3d";if(u.isArray(g))for(var b=0,a=g.length;b<a;++b)h.push(d+r(g[b]));else h.push(d+r(g))}}return h.join("\x26")},queryToObject:function(x){var r=decodeURIComponent;x=x.split("\x26");for(var h=
{},e,g,d=0,b=x.length;d<b;++d)if(g=x[d],g.length){var a=g.indexOf("\x3d");0>a?(e=r(g),g=""):(e=r(g.slice(0,a)),g=r(g.slice(a+1)));"string"==typeof h[e]&&(h[e]=[h[e]]);u.isArray(h[e])?h[e].push(g):h[e]=g}return h}}})},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query","./json"],function(u,A,x,r){var h={fieldToObject:function(e){var g=null;if(e=A.byId(e)){var d=e.name,b=(e.type||"").toLowerCase();if(d&&b&&!e.disabled)if("radio"==b||"checkbox"==b)e.checked&&(g=e.value);else if(e.multiple)for(g=
[],e=[e.firstChild];e.length;)for(d=e.pop();d;d=d.nextSibling)if(1==d.nodeType&&"option"==d.tagName.toLowerCase())d.selected&&g.push(d.value);else{d.nextSibling&&e.push(d.nextSibling);d.firstChild&&e.push(d.firstChild);break}else g=e.value}return g},toObject:function(e){var g={};e=A.byId(e).elements;for(var d=0,b=e.length;d<b;++d){var a=e[d],c=a.name,f=(a.type||"").toLowerCase();if(c&&f&&0>"file|submit|image|reset|button".indexOf(f)&&!a.disabled){var k=g,m=c;a=h.fieldToObject(a);if(null!==a){var p=
k[m];"string"==typeof p?k[m]=[p,a]:u.isArray(p)?p.push(a):k[m]=a}"image"==f&&(g[c+".x"]=g[c+".y"]=g[c].x=g[c].y=0)}}return g},toQuery:function(e){return x.objectToQuery(h.toObject(e))},toJson:function(e,g){return r.stringify(h.toObject(e),null,g?4:0)}};return h})},"dojo/_base/Deferred":function(){define("./kernel ../Deferred ../promise/Promise ../errors/CancelError ../has ./lang ../when".split(" "),function(u,A,x,r,h,e,g){var d=function(){},b=Object.freeze||function(){},a=u.Deferred=function(c){function f(z){if(p)throw Error("This deferred has already been resolved");
m=z;p=!0;k()}function k(){for(var z;!z&&t;){var C=t;t=t.next;if(z=C.progress==d)p=!1;var G=q?C.error:C.resolved;h("config-useDeferredInstrumentation")&&q&&A.instrumentRejected&&A.instrumentRejected(m,!!G);if(G)try{var B=G(m);B&&"function"===typeof B.then?B.then(e.hitch(C.deferred,"resolve"),e.hitch(C.deferred,"reject"),e.hitch(C.deferred,"progress")):(G=z&&void 0===B,z&&!G&&(q=B instanceof Error),C.deferred[G&&q?"reject":"resolve"](G?m:B))}catch(D){C.deferred.reject(D)}else q?C.deferred.reject(m):
C.deferred.resolve(m)}}var m,p,l,n,q,w,t,v=this.promise=new x;this.isResolved=v.isResolved=function(){return 0==n};this.isRejected=v.isRejected=function(){return 1==n};this.isFulfilled=v.isFulfilled=function(){return 0<=n};this.isCanceled=v.isCanceled=function(){return l};this.resolve=this.callback=function(z){this.fired=n=0;this.results=[z,null];f(z)};this.reject=this.errback=function(z){q=!0;this.fired=n=1;h("config-useDeferredInstrumentation")&&A.instrumentRejected&&A.instrumentRejected(z,!!t);
f(z);this.results=[null,z]};this.progress=function(z){for(var C=t;C;){var G=C.progress;G&&G(z);C=C.next}};this.addCallbacks=function(z,C){this.then(z,C,d);return this};v.then=this.then=function(z,C,G){var B=G==d?this:new a(v.cancel);z={resolved:z,error:C,progress:G,deferred:B};t?w=w.next=z:t=w=z;p&&k();return B.promise};var y=this;v.cancel=this.cancel=function(){if(!p){var z=c&&c(y);p||(z instanceof Error||(z=new r(z)),z.log=!1,y.reject(z))}l=!0};b(v)};e.extend(a,{addCallback:function(c){return this.addCallbacks(e.hitch.apply(u,
arguments))},addErrback:function(c){return this.addCallbacks(null,e.hitch.apply(u,arguments))},addBoth:function(c){var f=e.hitch.apply(u,arguments);return this.addCallbacks(f,f)},fired:-1});a.when=u.when=g;return a})},"dojo/_base/json":function(){define(["./kernel","../json"],function(u,A){u.fromJson=function(x){return eval("("+x+")")};u._escapeString=A.stringify;u.toJsonIndentStr="\t";u.toJson=function(x,r){return A.stringify(x,function(h,e){if(e){var g=e.__json__||e.json;if("function"==typeof g)return g.call(e)}return e},
r&&u.toJsonIndentStr)};return u})},"dojo/request/watch":function(){define("./util ../errors/RequestTimeoutError ../errors/CancelError ../_base/array ../_base/window ../has!host-browser?dom-addeventlistener?:../on:".split(" "),function(u,A,x,r,h,e){function g(){for(var c=+new Date,f=0,k;f<a.length&&(k=a[f]);f++){var m=k.response,p=m.options;k.isCanceled&&k.isCanceled()||k.isValid&&!k.isValid(m)?(a.splice(f--,1),d._onAction&&d._onAction()):k.isReady&&k.isReady(m)?(a.splice(f--,1),k.handleResponse(m),
d._onAction&&d._onAction()):k.startTime&&k.startTime+(p.timeout||0)<c&&(a.splice(f--,1),k.cancel(new A("Timeout exceeded",m)),d._onAction&&d._onAction())}d._onInFlight&&d._onInFlight(k);a.length||(clearInterval(b),b=null)}function d(c){c.response.options.timeout&&(c.startTime=+new Date);c.isFulfilled()||(a.push(c),b||(b=setInterval(g,50)),c.response.options.sync&&g())}var b=null,a=[];d.cancelAll=function(){try{r.forEach(a,function(c){try{c.cancel(new x("All requests canceled."))}catch(f){}})}catch(c){}};
h&&e&&h.doc.attachEvent&&e(h.global,"unload",function(){d.cancelAll()});return d})},"dojo/request/util":function(){define("exports ../errors/RequestError ../errors/CancelError ../Deferred ../io-query ../_base/array ../_base/lang ../promise/Promise ../has".split(" "),function(u,A,x,r,h,e,g,d,b){function a(p){return b("native-arraybuffer")&&p instanceof ArrayBuffer}function c(p){return b("native-blob")&&p instanceof Blob}function f(p){return m(p)}function k(p){return void 0!==p.data?p.data:p.text}u.deepCopy=
function(p,l){for(var n in l){var q=p[n],w=l[n];if("__proto__"!==n&&q!==w){var t=w,v;if(v=t&&"object"===typeof t)v=t,v=!(b("native-formdata")&&v instanceof FormData);!v||("undefined"!==typeof Element?t instanceof Element:1===t.nodeType)||c(t)||a(t)?p[n]=w:"[object Date]"===Object.prototype.toString.call(w)?p[n]=new Date(w):g.isArray(w)?p[n]=u.deepCopyArray(w):q&&"object"===typeof q?u.deepCopy(q,w):p[n]=u.deepCopy({},w)}}return p};u.deepCopyArray=function(p){for(var l=[],n=0,q=p.length;n<q;n++){var w=
p[n];"object"===typeof w?l.push(u.deepCopy({},w)):l.push(w)}return l};u.deepCreate=function(p,l){l=l||{};var n=g.delegate(p),q,w;for(q in p)(w=p[q])&&"object"===typeof w&&(n[q]=u.deepCreate(w,l[q]));return u.deepCopy(n,l)};var m=Object.freeze||function(p){return p};u.deferred=function(p,l,n,q,w,t){var v=new r(function(z){l&&l(v,p);return z&&(z instanceof A||z instanceof x)?z:new x("Request canceled",p)});v.response=p;v.isValid=n;v.isReady=q;v.handleResponse=w;n=v.then(f).otherwise(function(z){z.response=
p;throw z;});u.notify&&n.then(g.hitch(u.notify,"emit","load"),g.hitch(u.notify,"emit","error"));q=n.then(k);w=new d;for(var y in q)q.hasOwnProperty(y)&&(w[y]=q[y]);w.response=n;m(w);t&&v.then(function(z){t.call(v,z)},function(z){t.call(v,p,z)});v.promise=w;v.then=w.then;return v};u.addCommonMethods=function(p,l){e.forEach(l||["GET","POST","PUT","DELETE"],function(n){p[("DELETE"===n?"DEL":n).toLowerCase()]=function(q,w){w=g.delegate(w||{});w.method=n;return p(q,w)}})};u.parseArgs=function(p,l,n){var q=
l.data,w=l.query;!q||n||"object"!==typeof q||b("native-xhr2")&&(a(q)||c(q))||(l.data=h.objectToQuery(q));w?("object"===typeof w&&(w=h.objectToQuery(w)),l.preventCache&&(w+=(w?"\x26":"")+"request.preventCache\x3d"+ +new Date)):l.preventCache&&(w="request.preventCache\x3d"+ +new Date);p&&w&&(p+=(~p.indexOf("?")?"\x26":"?")+w);return{url:p,options:l,getHeader:function(t){return null}}};u.checkStatus=function(p){p=p||0;return 200<=p&&300>p||304===p||1223===p||!p}})},"dojo/errors/RequestError":function(){define(["./create"],
function(u){return u("RequestError",function(A,x){this.response=x})})},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(u,A){return u("RequestTimeoutError",null,A,{dojoType:"timeout"})})},"dojo/request/xhr":function(){define(["../errors/RequestError","./watch","./handlers","./util","../has"],function(u,A,x,r,h){function e(l,n){var q=l.xhr;l.status=l.xhr.status;try{l.text=q.responseText}catch(t){}"xml"===l.options.handleAs&&(l.data=q.responseXML);if(n)this.reject(n);
else{try{x(l)}catch(t){var w=t}r.checkStatus(q.status)?w?this.reject(w):this.resolve(l):(n=w?new u("Unable to load "+l.url+" status: "+q.status+" and an error in handleAs: transformation of response",l):new u("Unable to load "+l.url+" status: "+q.status,l),this.reject(n))}}function g(l){return this.xhr.getResponseHeader(l)}function d(l,n,q){var w=h("native-formdata")&&n&&n.data&&n.data instanceof FormData,t=r.parseArgs(l,r.deepCreate(p,n),w);l=t.url;n=t.options;var v=!n.data&&"POST"!==n.method&&"PUT"!==
n.method;10>=h("ie")&&(l=l.split("#")[0]);var y,z=r.deferred(t,c,a,k,e,function(){y&&y()}),C=t.xhr=d._create();if(!C)return z.cancel(new u("XHR was not created")),q?z:z.promise;t.getHeader=g;f&&(y=f(C,z,t,n.uploadProgress));var G="undefined"===typeof n.data?null:n.data,B=!n.sync,D=n.method;try{C.open(D,l,B,n.user||m,n.password||m);n.withCredentials&&(C.withCredentials=n.withCredentials);h("native-response-type")&&n.handleAs in b&&(C.responseType=b[n.handleAs]);var E=n.headers;l=w||v?!1:"application/x-www-form-urlencoded";
if(E)for(var J in E)"content-type"===J.toLowerCase()?l=E[J]:E[J]&&C.setRequestHeader(J,E[J]);l&&!1!==l&&C.setRequestHeader("Content-Type",l);E&&"X-Requested-With"in E||C.setRequestHeader("X-Requested-With","XMLHttpRequest");r.notify&&r.notify.emit("send",t,z.promise.cancel);C.send(G)}catch(I){z.reject(I)}A(z);C=null;return q?z:z.promise}h.add("native-xhr",function(){return"undefined"!==typeof XMLHttpRequest});h.add("dojo-force-activex-xhr",function(){return h("activex")&&"file:"===window.location.protocol});
h.add("native-xhr2",function(){if(h("native-xhr")&&!h("dojo-force-activex-xhr")){var l=new XMLHttpRequest;return"undefined"!==typeof l.addEventListener&&("undefined"===typeof opera||"undefined"!==typeof l.upload)}});h.add("native-formdata",function(){return"undefined"!==typeof FormData});h.add("native-blob",function(){return"undefined"!==typeof Blob});h.add("native-arraybuffer",function(){return"undefined"!==typeof ArrayBuffer});h.add("native-response-type",function(){return h("native-xhr")&&"undefined"!==
typeof(new XMLHttpRequest).responseType});h.add("native-xhr2-blob",function(){if(h("native-response-type")){var l=new XMLHttpRequest;l.open("GET","https://dojotoolkit.org/",!0);l.responseType="blob";var n=l.responseType;l.abort();return"blob"===n}});var b={blob:h("native-xhr2-blob")?"blob":"arraybuffer",document:"document",arraybuffer:"arraybuffer"};if(h("native-xhr2")){var a=function(l){return!this.isFulfilled()};var c=function(l,n){n.xhr.abort()};var f=function(l,n,q,w){function t(G){n.handleResponse(q)}
function v(G){G=new u("Unable to load "+q.url+" status: "+G.target.status,q);n.handleResponse(q,G)}function y(G,B){q.transferType=G;B.lengthComputable?(q.loaded=B.loaded,q.total=B.total,n.progress(q)):3===q.xhr.readyState&&(q.loaded="loaded"in B?B.loaded:B.position,n.progress(q))}function z(G){return y("download",G)}function C(G){return y("upload",G)}l.addEventListener("load",t,!1);l.addEventListener("error",v,!1);l.addEventListener("progress",z,!1);w&&l.upload&&l.upload.addEventListener("progress",
C,!1);return function(){l.removeEventListener("load",t,!1);l.removeEventListener("error",v,!1);l.removeEventListener("progress",z,!1);l.upload.removeEventListener("progress",C,!1);l=null}}}else{a=function(l){return l.xhr.readyState};var k=function(l){return 4===l.xhr.readyState};c=function(l,n){var q=n.xhr,w=typeof q.abort;"function"!==w&&"object"!==w&&"unknown"!==w||q.abort()}}var m,p={data:null,query:null,sync:!1,method:"GET"};d._create=function(){throw Error("XMLHTTP not available");};if(h("native-xhr")&&
!h("dojo-force-activex-xhr"))d._create=function(){return new XMLHttpRequest};else if(h("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),d._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(l){try{new ActiveXObject("Microsoft.XMLHTTP"),d._create=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(n){}}r.addCommonMethods(d);return d})},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has","../selector/_loader"],function(u,A,
x,r){function h(c){var f=a[c.options.handleAs];c.data=f?f(c):c.data||c.text;return c}r.add("activex","undefined"!==typeof ActiveXObject);r.add("dom-parser",function(c){return"DOMParser"in c});if(r("activex")){var e=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"],g;var d=function(c){function f(p){try{var l=new ActiveXObject(p);l.async=!1;l.loadXML(m);k=l;g=p}catch(n){return!1}return!0}var k=c.data,m=c.text;k&&r("dom-qsa2.1")&&!k.querySelectorAll&&r("dom-parser")&&
(k=(new DOMParser).parseFromString(m,"application/xml"));k&&k.documentElement||g&&f(g)||x.some(e,f);return k}}var b=function(c){return r("native-xhr2-blob")||"blob"!==c.options.handleAs||"undefined"===typeof Blob?c.xhr.response:new Blob([c.xhr.response],{type:c.xhr.getResponseHeader("Content-Type")})},a={javascript:function(c){return A.eval(c.text||"")},json:function(c){return u.parse(c.text||null)},xml:d,blob:b,arraybuffer:b,document:b};h.register=function(c,f){a[c]=f};return h})},"dijit/form/MappedTextBox":function(){define(["dojo/_base/declare",
"dojo/sniff","dojo/dom-construct","./ValidationTextBox"],function(u,A,x,r){return u("dijit.form.MappedTextBox",r,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting=""},_setNameAttr:"valueNode",serialize:function(h){return h.toString?h.toString():""},toString:function(){var h=this.filter(this.get("value"));return null!=h?"string"==typeof h?h:this.serialize(h,this.constraints):""},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments)},
buildRendering:function(){this.inherited(arguments);this.valueNode=x.place("\x3cinput type\x3d'hidden'"+(this.name&&!A("msapp")?' name\x3d"'+this.name.replace(/"/g,"\x26quot;")+'"':"")+"/\x3e",this.textbox,"after")},reset:function(){this.valueNode.value="";this.inherited(arguments)}})})},"dijit/form/ValidationTextBox":function(){define("dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/i18n ./TextBox ../Tooltip dojo/text!./templates/ValidationTextBox.html dojo/i18n!./nls/validate".split(" "),
function(u,A,x,r,h,e,g){var d=u("dijit.form.ValidationTextBox",h,{templateString:g,required:!1,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},pattern:".*",regExp:"",regExpGen:function(){},state:"",tooltipPosition:[],_deprecateRegExp:function(b,a){a!=d.prototype[b]&&(A.deprecated("ValidationTextBox id\x3d"+this.id+", set('"+b+"', ...) is deprecated.  Use set('pattern', ...) instead.","","2.0"),this.set("pattern",a))},_setRegExpGenAttr:function(b){this._deprecateRegExp("regExpGen",
b);this._set("regExpGen",this._computeRegexp)},_setRegExpAttr:function(b){this._deprecateRegExp("regExp",b)},_setValueAttr:function(){this.inherited(arguments);this._refreshState()},validator:function(b,a){return(new RegExp("^(?:"+this._computeRegexp(a)+")"+(this.required?"":"?")+"$")).test(b)&&(!this.required||!this._isEmpty(b))&&(this._isEmpty(b)||void 0!==this.parse(b,a))},_isValidSubset:function(){return 0==this.textbox.value.search(this._partialre)},isValid:function(){return this.validator(this.textbox.value,
this.get("constraints"))},_isEmpty:function(b){return(this.trim?/^\s*$/:/^$/).test(b)},getErrorMessage:function(){var b="$_unset_$"==this.invalidMessage?this.messages.invalidMessage:this.invalidMessage?this.invalidMessage:this.promptMessage,a="$_unset_$"==this.missingMessage?this.messages.missingMessage:this.missingMessage?this.missingMessage:b;return this.required&&this._isEmpty(this.textbox.value)?a:b},getPromptMessage:function(){return this.promptMessage},_maskValidSubsetError:!0,validate:function(b){var a=
"",c=this.disabled||this.isValid(b);c&&(this._maskValidSubsetError=!0);var f=this._isEmpty(this.textbox.value),k=!c&&b&&this._isValidSubset();this._set("state",c?"":((!this._hasBeenBlurred||b)&&f||k)&&(this._maskValidSubsetError||k&&!this._hasBeenBlurred&&b)?"Incomplete":"Error");this.focusNode.setAttribute("aria-invalid","Error"==this.state?"true":"false");"Error"==this.state?(this._maskValidSubsetError=b&&k,a=this.getErrorMessage(b)):"Incomplete"==this.state?(a=this.getPromptMessage(b),this._maskValidSubsetError=
!this._hasBeenBlurred||b):f&&(a=this.getPromptMessage(b));this.set("message",a);return c},displayMessage:function(b){b&&this.focused?e.show(b,this.domNode,this.tooltipPosition,!this.isLeftToRight()):e.hide(this.domNode)},_refreshState:function(){this._created&&this.validate(this.focused);this.inherited(arguments)},constructor:function(b){this.constraints=x.clone(this.constraints);this.baseClass+=" dijitValidationTextBox"},startup:function(){this.inherited(arguments);this._refreshState()},_setConstraintsAttr:function(b){!b.locale&&
this.lang&&(b.locale=this.lang);this._set("constraints",b);this._refreshState()},_setPatternAttr:function(b){this._set("pattern",b);this._refreshState()},_computeRegexp:function(b){var a=this.pattern;"function"==typeof a&&(a=a.call(this,b));if(a!=this._lastRegExp){var c="";this._lastRegExp=a;".*"!=a&&a.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(f){switch(f.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":c+=f;break;case ")":c+="|$)";break;default:c+=
"(?:"+f+"|$)"}});try{"".search(c)}catch(f){c=this.pattern}this._partialre="^(?:"+c+")$"}return a},postMixInProperties:function(){this.inherited(arguments);this.messages=r.getLocalization("dijit.form","validate",this.lang);this._setConstraintsAttr(this.constraints)},_setDisabledAttr:function(b){this.inherited(arguments);this._refreshState()},_setRequiredAttr:function(b){this._set("required",b);this.focusNode.setAttribute("aria-required",b);this._refreshState()},_setMessageAttr:function(b){this._set("message",
b);this.displayMessage(b)},reset:function(){this._maskValidSubsetError=!0;this.inherited(arguments)},_onBlur:function(){this.displayMessage("");this.inherited(arguments)},destroy:function(){e.hide(this.domNode);this.inherited(arguments)}});return d})},"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(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n,q){function w(){}var t=A("dijit._MasterTooltip",[m,p],{duration:f.defaultDuration,templateString:n,postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);this.bgIframe=new l(this.domNode);this.fadeIn=x.fadeIn({node:this.domNode,duration:this.duration,onEnd:d.hitch(this,"_onShow")});this.fadeOut=x.fadeOut({node:this.domNode,duration:this.duration,onEnd:d.hitch(this,"_onHide")})},show:function(y,z,C,G,B,D,E){if(!this.aroundNode||this.aroundNode!==
z||this.containerNode.innerHTML!=y)if("playing"==this.fadeOut.status())this._onDeck=arguments;else{this.containerNode.innerHTML=y;B&&this.set("textDir",B);this.containerNode.align=G?"right":"left";var J=k.around(this.domNode,z,C&&C.length?C:v.defaultPosition,!G,d.hitch(this,"orient")),I=J.aroundNodePos;"M"==J.corner.charAt(0)&&"M"==J.aroundCorner.charAt(0)?(this.connectorNode.style.top=I.y+(I.h-this.connectorNode.offsetHeight>>1)-J.y+"px",this.connectorNode.style.left=""):"M"==J.corner.charAt(1)&&
"M"==J.aroundCorner.charAt(1)?this.connectorNode.style.left=I.x+(I.w-this.connectorNode.offsetWidth>>1)-J.x+"px":(this.connectorNode.style.left="",this.connectorNode.style.top="");g.set(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=!0;this.aroundNode=z;this.onMouseEnter=D||w;this.onMouseLeave=E||w}},orient:function(y,z,C,G,B){this.connectorNode.style.top="";var D=G.h;G=G.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"}[z+"-"+C];this.domNode.style.width="auto";var E=e.position(this.domNode);if(c("ie")||c("trident"))E.w+=2;e.setMarginBox(this.domNode,{w:Math.min(Math.max(G,1),E.w)});"B"==C.charAt(0)&&"B"==z.charAt(0)?(y=e.position(y),z=this.connectorNode.offsetHeight,
y.h>D?(this.connectorNode.style.top=D-(B.h+z>>1)+"px",this.connectorNode.style.bottom=""):(this.connectorNode.style.bottom=Math.min(Math.max(B.h/2-z/2,0),y.h-z)+"px",this.connectorNode.style.top="")):(this.connectorNode.style.top="",this.connectorNode.style.bottom="");return Math.max(0,E.w-G)},_onShow:function(){c("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=w},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";this._onDeck&&(this.show.apply(this,this._onDeck),this._onDeck=null)}});c("dojo-bidi")&&t.extend({_setAutoTextDir:function(y){this.applyTextDir(y);u.forEach(y.children,function(z){this._setAutoTextDir(z)},this)},_setTextDirAttr:function(y){this._set("textDir",y);"auto"==y?this._setAutoTextDir(this.containerNode):this.containerNode.dir=this.textDir}});q.showTooltip=
function(y,z,C,G,B,D,E){C&&(C=u.map(C,function(J){return{after:"after-centered",before:"before-centered"}[J]||J}));v._masterTT||(q._masterTT=v._masterTT=new t);return v._masterTT.show(y,z,C,G,B,D,E)};q.hideTooltip=function(y){return v._masterTT&&v._masterTT.hide(y)};var v=A("dijit.Tooltip",m,{label:"",showDelay:400,hideDelay:400,connectId:[],position:[],selector:"",_setConnectIdAttr:function(y){u.forEach(this._connections||[],function(z){u.forEach(z,function(C){C.remove()})},this);this._connectIds=
u.filter(d.isArrayLike(y)?y:y?[y]:[],function(z){return r.byId(z,this.ownerDocument)},this);this._connections=u.map(this._connectIds,function(z){z=r.byId(z,this.ownerDocument);var C=this.selector,G=C?function(D){return a.selector(C,D)}:function(D){return D},B=this;return[a(z,G(b.enter),function(){B._onHover(this)}),a(z,G("focusin"),function(){B._onHover(this)}),a(z,G(b.leave),d.hitch(B,"_onUnHover")),a(z,G("focusout"),d.hitch(B,"set","state","DORMANT"))]},this);this._set("connectId",y)},addTarget:function(y){y=
y.id||y;-1==u.indexOf(this._connectIds,y)&&this.set("connectId",this._connectIds.concat(y))},removeTarget:function(y){y=u.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;u.forEach(d.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&&(v.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 z=this.getContent(this._connectNode);if(!z){this.set("state","DORMANT");return}v.show(z,this._connectNode,this.position,!this.isLeftToRight(),this.textDir,d.hitch(this,"set","state","SHOWING"),d.hitch(this,"set","state","HIDE TIMER"));this.onShow(this._connectNode,this.position);break;case "HIDE TIMER":this._hideTimer=this.defer(function(){this.set("state","DORMANT")},this.hideDelay)}this._set("state",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");u.forEach(this._connections||[],function(y){u.forEach(y,function(z){z.remove()})},this);this.inherited(arguments)}});v._MasterTooltip=t;v.show=
q.showTooltip;v.hide=q.hideTooltip;v.defaultPosition=["after-centered","before-centered"];return v})},"dojo/_base/fx":function(){define("./kernel ./config ./lang ../Evented ./Color ../aspect ../sniff ../dom ../dom-style".split(" "),function(u,A,x,r,h,e,g,d,b){var a=x.mixin,c={},f=c._Line=function(w,t){this.start=w;this.end=t};f.prototype.getValue=function(w){return(this.end-this.start)*w+this.start};var k=c.Animation=function(w){a(this,w);x.isArray(this.curve)&&(this.curve=new f(this.curve[0],this.curve[1]))};
k.prototype=new r;x.extend(k,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var w=this._percent,t=this.easing;return t?t(w):w},_fire:function(w,t){var v=t||[];if(this[w])if(A.debugAtAllCosts)this[w].apply(this,v);else try{this[w].apply(this,v)}catch(y){}return this},play:function(w,t){this._delayTimer&&this._clearTimer();if(t)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);
var v=w||this.delay,y=x.hitch(this,"_play",t);if(0<v)return this._delayTimer=setTimeout(y,v),this;y();return this},_play:function(w){this._delayTimer&&this._clearTimer();this._startTime=(new Date).valueOf();this._paused&&(this._startTime-=this.duration*this._percent);this._active=!0;this._paused=!1;w=this.curve.getValue(this._getStep());this._percent||(this._startRepeatCount||(this._startRepeatCount=this.repeat),this._fire("onBegin",[w]));this._fire("onPlay",[w]);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(w,t){this._stopTimer();this._active=this._paused=!0;this._percent=w;t&&this.play();return this},stop:function(w){this._delayTimer&&this._clearTimer();if(!this._timer)return this;this._stopTimer();w&&(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 w=(new Date).valueOf();w=0===this.duration?1:(w-this._startTime)/this.duration;1<=w&&(w=1);this._percent=w;this.easing&&(w=this.easing(w));this._fire("onAnimate",[this.curve.getValue(w)]);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 m=0,p=null,l={run:function(){}};x.extend(k,{_startTimer:function(){this._timer||(this._timer=e.after(l,"run",x.hitch(this,"_cycle"),!0),m++);p||(p=setInterval(x.hitch(l,"run"),this.rate))},_stopTimer:function(){this._timer&&(this._timer.remove(),this._timer=null,m--);0>=m&&(clearInterval(p),p=null,
m=0)}});var n=g("ie")?function(w){var t=w.style;t.width.length||"auto"!=b.get(w,"width")||(t.width="auto")}:function(){};c._fade=function(w){w.node=d.byId(w.node);var t=a({properties:{}},w);w=t.properties.opacity={};w.start="start"in t?t.start:function(){return+b.get(t.node,"opacity")||0};w.end=t.end;w=c.animateProperty(t);e.after(w,"beforeBegin",x.partial(n,t.node),!0);return w};c.fadeIn=function(w){return c._fade(a({end:1},w))};c.fadeOut=function(w){return c._fade(a({end:0},w))};c._defaultEasing=
function(w){return.5+Math.sin((w+1.5)*Math.PI)/2};var q=function(w){this._properties=w;for(var t in w){var v=w[t];v.start instanceof h&&(v.tempColor=new h)}};q.prototype.getValue=function(w){var t={},v;for(v in this._properties){var y=this._properties[v],z=y.start;z instanceof h?t[v]=h.blendColors(z,y.end,w,y.tempColor).toCss():x.isArray(z)||(t[v]=(y.end-z)*w+z+("opacity"!=v?y.units||"px":0))}return t};c.animateProperty=function(w){var t=w.node=d.byId(w.node);w.easing||(w.easing=u._defaultEasing);
w=new k(w);e.after(w,"beforeBegin",x.hitch(w,function(){var v={},y;for(y in this.properties){if("width"==y||"height"==y)this.node.display="block";var z=this.properties[y];x.isFunction(z)&&(z=z(t));z=v[y]=a({},x.isObject(z)?z:{end:z});x.isFunction(z.start)&&(z.start=z.start(t));x.isFunction(z.end)&&(z.end=z.end(t));var C=0<=y.toLowerCase().indexOf("color"),G=function(B,D){var E={height:B.offsetHeight,width:B.offsetWidth}[D];if(void 0!==E)return E;E=b.get(B,D);return"opacity"==D?+E:C?E:parseFloat(E)};
"end"in z?"start"in z||(z.start=G(t,y)):z.end=G(t,y);C?(z.start=new h(z.start),z.end=new h(z.end)):z.start="opacity"==y?+z.start:parseFloat(z.start)}this.curve=new q(v)}),!0);e.after(w,"onAnimate",x.hitch(b,"set",w.node),!0);return w};c.anim=function(w,t,v,y,z,C){return c.animateProperty({node:w,duration:v||k.prototype.duration,properties:t,easing:y,onEnd:z}).play(C||0)};a(u,c);u._Animation=k;return c})},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(u,A,
x,r){var h=u.Color=function(e){e&&this.setColor(e)};h.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:r.transparentColor||[0,0,0,0]};A.extend(h,{r:255,g:255,b:255,a:1,_set:function(e,g,d,b){this.r=e;this.g=g;this.b=d;this.a=b},setColor:function(e){A.isString(e)?
h.fromString(e,this):A.isArray(e)?h.fromArray(e,this):(this._set(e.r,e.g,e.b,e.a),e instanceof h||this.sanitize());return this},sanitize:function(){return this},toRgb:function(){return[this.r,this.g,this.b]},toRgba:function(){return[this.r,this.g,this.b,this.a]},toHex:function(){return"#"+x.map(["r","g","b"],function(e){e=this[e].toString(16);return 2>e.length?"0"+e:e},this).join("")},toCss:function(e){var g=this.r+", "+this.g+", "+this.b;return(e?"rgba("+g+", "+this.a:"rgb("+g)+")"},toString:function(){return this.toCss(!0)}});
h.blendColors=u.blendColors=function(e,g,d,b){b=b||new h;b.r=Math.round(e.r+(g.r-e.r)*d);b.g=Math.round(e.g+(g.g-e.g)*d);b.b=Math.round(e.b+(g.b-e.b)*d);b.a=e.a+(g.a-e.a)*d;return b.sanitize()};h.fromRgb=u.colorFromRgb=function(e,g){var d=e.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return d&&h.fromArray(d[1].split(/\s*,\s*/),g)};h.fromHex=u.colorFromHex=function(e,g){var d=g||new h,b=4==e.length?4:8,a=(1<<b)-1;e=Number("0x"+e.substr(1));if(isNaN(e))return null;x.forEach(["b","g","r"],function(c){var f=
e&a;e>>=b;d[c]=4==b?17*f:f});d.a=1;return d};h.fromArray=u.colorFromArray=function(e,g){var d=g||new h;d._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3]));isNaN(d.a)&&(d.a=1);return d.sanitize()};h.fromString=u.colorFromString=function(e,g){var d=h.named[e];return d&&h.fromArray(d,g)||h.fromRgb(e,g)||h.fromHex(e,g)};return h})},"dijit/_base/manager":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/lang","../registry","../main"],function(u,A,x,r,h){var e={};u.forEach("byId getUniqueId findWidgets _destroyAll byNode getEnclosingWidget".split(" "),
function(g){e[g]=r[g]});x.mixin(e,{defaultDuration:A.defaultDuration||200});x.mixin(h,e);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(u,A,x,r,h,e,g){function d(a,c,f,k){var m=e.getEffectiveBox(a.ownerDocument);a.parentNode&&"body"==String(a.parentNode.tagName).toLowerCase()||h.body(a.ownerDocument).appendChild(a);var p=null;u.some(c,function(q){var w=q.corner,t=q.pos,v=0,y=
{w:{L:m.l+m.w-t.x,R:t.x-m.l,M:m.w}[w.charAt(1)],h:{T:m.t+m.h-t.y,B:t.y-m.t,M:m.h}[w.charAt(0)]},z=a.style;z.left=z.right="auto";f&&(v=f(a,q.aroundCorner,w,y,k),v="undefined"==typeof v?0:v);var C=a.style,G=C.display,B=C.visibility;"none"==C.display&&(C.visibility="hidden",C.display="");z=A.position(a);C.display=G;C.visibility=B;G={L:t.x,R:t.x-z.w,M:Math.max(m.l,Math.min(m.l+m.w,t.x+(z.w>>1))-z.w)}[w.charAt(1)];B={T:t.y,B:t.y-z.h,M:Math.max(m.t,Math.min(m.t+m.h,t.y+(z.h>>1))-z.h)}[w.charAt(0)];t=Math.max(m.l,
G);C=Math.max(m.t,B);G=Math.min(m.l+m.w,G+z.w)-t;B=Math.min(m.t+m.h,B+z.h)-C;v+=z.w-G+(z.h-B);if(null==p||v<p.overflow)p={corner:w,aroundCorner:q.aroundCorner,x:t,y:C,w:G,h:B,overflow:v,spaceAvailable:y};return!v});p.overflow&&f&&f(a,p.aroundCorner,p.corner,p.spaceAvailable,k);c=p.y;var l=p.x,n=h.body(a.ownerDocument);/relative|absolute/.test(x.get(n,"position"))&&(c-=x.get(n,"marginTop"),l-=x.get(n,"marginLeft"));n=a.style;n.top=c+"px";n.left=l+"px";n.right="auto";return p}var b={TL:"BR",TR:"BL",
BL:"TR",BR:"TL"};return g.place={at:function(a,c,f,k,m){f=u.map(f,function(p){var l={corner:p,aroundCorner:b[p],pos:{x:c.x,y:c.y}};k&&(l.pos.x+="L"==p.charAt(1)?k.x:-k.x,l.pos.y+="T"==p.charAt(0)?k.y:-k.y);return l});return d(a,f,m)},around:function(a,c,f,k,m){function p(D,E){B.push({aroundCorner:D,corner:E,pos:{x:{L:y,R:y+C,M:y+(C>>1)}[D.charAt(1)],y:{T:z,B:z+G,M:z+(G>>1)}[D.charAt(0)]}})}if("string"==typeof c||"offsetWidth"in c||"ownerSVGElement"in c){var l=A.position(c,!0);if(/^(above|below)/.test(f[0])){var n=
A.getBorderExtents(c),q=c.firstChild?A.getBorderExtents(c.firstChild):{t:0,l:0,b:0,r:0},w=A.getBorderExtents(a),t=a.firstChild?A.getBorderExtents(a.firstChild):{t:0,l:0,b:0,r:0};l.y+=Math.min(n.t+q.t,w.t+t.t);l.h-=Math.min(n.t+q.t,w.t+t.t)+Math.min(n.b+q.b,w.b+t.b)}}else l=c;if(c.parentNode)for(n="absolute"==x.getComputedStyle(c).position,c=c.parentNode;c&&1==c.nodeType&&"BODY"!=c.nodeName;){q=A.position(c,!0);w=x.getComputedStyle(c);/relative|absolute/.test(w.position)&&(n=!1);if(!n&&/hidden|auto|scroll/.test(w.overflow)){t=
Math.min(l.y+l.h,q.y+q.h);var v=Math.min(l.x+l.w,q.x+q.w);l.x=Math.max(l.x,q.x);l.y=Math.max(l.y,q.y);l.h=t-l.y;l.w=v-l.x}"absolute"==w.position&&(n=!0);c=c.parentNode}var y=l.x,z=l.y,C="w"in l?l.w:l.w=l.width,G="h"in l?l.h:(r.deprecated("place.around: dijit/place.__Rectangle: { x:"+y+", y:"+z+", height:"+l.height+", width:"+C+" } has been deprecated.  Please use { x:"+y+", y:"+z+", h:"+l.height+", w:"+C+" }","","2.0"),l.h=l.height),B=[];u.forEach(f,function(D){var E=k;switch(D){case "above-centered":p("TM",
"BM");break;case "below-centered":p("BM","TM");break;case "after-centered":E=!E;case "before-centered":p(E?"ML":"MR",E?"MR":"ML");break;case "after":E=!E;case "before":p(E?"TL":"TR",E?"TR":"TL");p(E?"BL":"BR",E?"BR":"BL");break;case "below-alt":E=!E;case "below":p(E?"BL":"BR",E?"TL":"TR");p(E?"BR":"BL",E?"TR":"TL");break;case "above-alt":E=!E;case "above":p(E?"TL":"TR",E?"BL":"BR");p(E?"TR":"TL",E?"BR":"BL");break;default:p(D.aroundCorner,D.corner)}});a=d(a,B,m,{w:C,h:G});a.aroundNodePos=l;return a}}})},
"dijit/Viewport":function(){define(["dojo/Evented","dojo/on","dojo/domReady","dojo/sniff","dojo/window"],function(u,A,x,r,h){var e=new u,g;x(function(){var d=h.getBox();e._rlh=A(window,"resize",function(){var a=h.getBox();if(d.h!=a.h||d.w!=a.w)d=a,e.emit("resize")});if(8==r("ie")){var b=screen.deviceXDPI;setInterval(function(){screen.deviceXDPI!=b&&(b=screen.deviceXDPI,e.emit("resize"))},500)}r("ios")&&(A(document,"focusin",function(a){g=a.target}),A(document,"focusout",function(a){g=null}))});e.getEffectiveBox=
function(d){d=h.getBox(d);var b=g&&g.tagName&&g.tagName.toLowerCase();r("ios")&&g&&!g.readOnly&&("textarea"==b||"input"==b&&/^(color|email|number|password|search|tel|text|url)$/.test(g.type))&&(d.h*=0==orientation||180==orientation?.66:.4,b=g.getBoundingClientRect(),d.h=Math.max(d.h,b.top+b.height));return d};return e})},"dijit/BackgroundIframe":function(){define("require ./main dojo/_base/config dojo/dom-construct dojo/dom-style dojo/_base/lang dojo/on dojo/sniff".split(" "),function(u,A,x,r,h,e,
g,d){d.add("config-bgIframe",(d("ie")||d("trident"))&&!/IEMobile\/10\.0/.test(navigator.userAgent));var b=new function(){var a=[];this.pop=function(){if(a.length){var c=a.pop();c.style.display=""}else 9>d("ie")?(c=x.dojoBlankHtmlUrl||u.toUrl("dojo/resources/blank.html")||'javascript:""',c=document.createElement("\x3ciframe src\x3d'"+c+"' role\x3d'presentation' style\x3d'position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity\x3d\"0\");'\x3e")):(c=r.create("iframe"),c.src='javascript:""',
c.className="dijitBackgroundIframe",c.setAttribute("role","presentation"),h.set(c,"opacity",.1)),c.tabIndex=-1;return c};this.push=function(c){c.style.display="none";a.push(c)}};A.BackgroundIframe=function(a){if(!a.id)throw Error("no id");if(d("config-bgIframe")){var c=this.iframe=b.pop();a.appendChild(c);7>d("ie")||d("quirks")?(this.resize(a),this._conn=g(a,"resize",e.hitch(this,"resize",a))):h.set(c,{width:"100%",height:"100%"})}};e.extend(A.BackgroundIframe,{resize:function(a){this.iframe&&h.set(this.iframe,
{width:a.offsetWidth+"px",height:a.offsetHeight+"px"})},destroy:function(){this._conn&&(this._conn.remove(),this._conn=null);this.iframe&&(this.iframe.parentNode.removeChild(this.iframe),b.push(this.iframe),delete this.iframe)}});return A.BackgroundIframe})},"dijit/form/NumberTextBox":function(){define("dojo/_base/declare dojo/_base/lang dojo/i18n dojo/string dojo/number ./RangeBoundTextBox".split(" "),function(u,A,x,r,h,e){var g=function(b){b=b||{};var a=x.getLocalization("dojo.cldr","number",x.normalizeLocale(b.locale)),
c=b.pattern?b.pattern:a[(b.type||"decimal")+"Format"];b="number"==typeof b.places?b.places:"string"===typeof b.places&&0<b.places.length?b.places.replace(/.*,/,""):-1!=c.indexOf(".")?c.split(".")[1].replace(/[^#0]/g,"").length:0;return{sep:a.decimal,places:b}},d=u("dijit.form.NumberTextBoxMixin",null,{pattern:function(b){return"("+(this.focused&&this.editOptions?this._regExpGenerator(A.delegate(b,this.editOptions))+"|":"")+this._regExpGenerator(b)+")"},value:NaN,editOptions:{pattern:"#.######"},_formatter:h.format,
_regExpGenerator:h.regexp,_decimalInfo:g(),postMixInProperties:function(){this.inherited(arguments);this._set("type","text")},_setConstraintsAttr:function(b){var a="number"==typeof b.places?b.places:0;a&&a++;"number"!=typeof b.max&&(b.max=9*Math.pow(10,15-a));"number"!=typeof b.min&&(b.min=-9*Math.pow(10,15-a));this.inherited(arguments,[b]);this.focusNode&&this.focusNode.value&&!isNaN(this.value)&&this.set("value",this.value);this._decimalInfo=g(b)},_onFocus:function(b){if(!this.disabled&&!this.readOnly){var a=
this.get("value");"number"!=typeof a||isNaN(a)||(a=this.format(a,this.constraints),void 0!==a&&(this.textbox.value=a,"mouse"!==b&&this.textbox.select()));this.inherited(arguments)}},format:function(b,a){var c=String(b);if("number"!=typeof b)return c;if(isNaN(b))return"";if(!("rangeCheck"in this&&this.rangeCheck(b,a))&&!1!==a.exponent&&/\de[-+]?\d/i.test(c))return c;this.editOptions&&this.focused&&(a=A.mixin({},a,this.editOptions));return this._formatter(b,a)},_parser:h.parse,parse:function(b,a){var c=
A.mixin({},a,this.editOptions&&this.focused?this.editOptions:{});if(this.focused&&null!=c.places){var f=c.places;f="number"===typeof f?f:Number(f.split(",").pop());c.places="0,"+f}c=this._parser(b,c);this.editOptions&&this.focused&&isNaN(c)&&(c=this._parser(b,a));return c},_getDisplayedValueAttr:function(){var b=this.inherited(arguments);return isNaN(b)?this.textbox.value:b},filter:function(b){if(null==b||"string"==typeof b&&""==b)return NaN;"number"!=typeof b||isNaN(b)||0==b||(b=h.round(b,this._decimalInfo.places));
return this.inherited(arguments,[b])},serialize:function(b,a){return"number"!=typeof b||isNaN(b)?"":this.inherited(arguments)},_setBlurValue:function(){var b=A.hitch(A.delegate(this,{focused:!0}),"get")("value");this._setValueAttr(b,!0)},_setValueAttr:function(b,a,c){if(void 0!==b&&void 0===c)if(c=String(b),"number"==typeof b)if(isNaN(b))c="";else{if("rangeCheck"in this&&this.rangeCheck(b,this.constraints)||!1===this.constraints.exponent||!/\de[-+]?\d/i.test(c))c=void 0}else b?b=void 0:(c="",b=NaN);
this.inherited(arguments,[b,a,c])},_getValueAttr:function(){var b=this.inherited(arguments);if(isNaN(b)&&""!==this.textbox.value){if(!1!==this.constraints.exponent&&/\de[-+]?\d/i.test(this.textbox.value)&&(new RegExp("^"+h._realNumberRegexp(A.delegate(this.constraints))+"$")).test(this.textbox.value))return b=Number(this.textbox.value),isNaN(b)?void 0:b}else return b},isValid:function(b){if(!this.focused||this._isEmpty(this.textbox.value))return this.inherited(arguments);var a=this.get("value");return!isNaN(a)&&
this.rangeCheck(a,this.constraints)?!1!==this.constraints.exponent&&/\de[-+]?\d/i.test(this.textbox.value)?!0:this.inherited(arguments):!1},_isValidSubset:function(){var b="number"==typeof this.constraints.min,a="number"==typeof this.constraints.max,c=this.get("value");if(isNaN(c)||!b&&!a)return this.inherited(arguments);var f=c|0,k=0>c,m=-1!=this.textbox.value.indexOf(this._decimalInfo.sep),p=(this.maxLength||20)-this.textbox.value.length,l=m?this.textbox.value.split(this._decimalInfo.sep)[1].replace(/[^0-9]/g,
""):"";f=m?f+"."+l:f+"";p=r.rep("9",p);m=c;k?m=Number(f+p):c=Number(f+p);return!(b&&c<this.constraints.min||a&&m>this.constraints.max)}});u=u("dijit.form.NumberTextBox",[e,d],{baseClass:"dijitTextBox dijitNumberTextBox"});u.Mixin=d;return u})},"dojo/number":function(){define(["./_base/lang","./i18n","./i18n!./cldr/nls/number","./string","./regexp"],function(u,A,x,r,h){var e={};u.setObject("dojo.number",e);e.format=function(d,b){b=u.mixin({},b||{});var a=A.normalizeLocale(b.locale);a=A.getLocalization("dojo.cldr",
"number",a);b.customs=a;a=b.pattern||a[(b.type||"decimal")+"Format"];return isNaN(d)||Infinity==Math.abs(d)?null:e._applyPattern(d,a,b)};e._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;e._applyPattern=function(d,b,a){a=a||{};var c=a.customs.group,f=a.customs.decimal;b=b.split(";");var k=b[0];b=b[0>d?1:0]||"-"+k;if(-1!=b.indexOf("%"))d*=100;else if(-1!=b.indexOf("\u2030"))d*=1E3;else if(-1!=b.indexOf("\u00a4"))c=a.customs.currencyGroup||c,f=a.customs.currencyDecimal||f,b=b.replace(/([\s\xa0\u202f]*)(\u00a4{1,3})([\s\xa0\u202f]*)/,
function(p,l,n,q){return(p=a[["symbol","currency","displayName"][n.length-1]]||a.currency||"")?l+p+q:""});else if(-1!=b.indexOf("E"))throw Error("exponential notation not supported");var m=e._numberPatternRE;k=k.match(m);if(!k)throw Error("unable to find a number expression in pattern: "+b);!1===a.fractional&&(a.places=0);return b.replace(m,e._formatAbsolute(d,k[0],{decimal:f,group:c,places:a.places,round:a.round}))};e.round=function(d,b,a){a=10/(a||10);return(a*+d).toFixed(b)/a};if(0==(.9).toFixed()){var g=
e.round;e.round=function(d,b,a){var c=Math.pow(10,-b||0),f=Math.abs(d);if(!d||f>=c)c=0;else if(f/=c,.5>f||.95<=f)c=0;return g(d,b,a)+(0<d?c:-c)}}e._formatAbsolute=function(d,b,a){a=a||{};!0===a.places&&(a.places=0);Infinity===a.places&&(a.places=6);b=b.split(".");var c="string"==typeof a.places&&a.places.indexOf(","),f=a.places;c?f=a.places.substring(c+1):0<=f||(f=(b[1]||[]).length);0>a.round||(d=e.round(d,f,a.round));d=String(Math.abs(d)).split(".");var k=d[1]||"";b[1]||a.places?(c&&(a.places=a.places.substring(0,
c)),c=void 0!==a.places?a.places:b[1]&&b[1].lastIndexOf("0")+1,c>k.length&&(d[1]=r.pad(k,c,"0",!0)),f<k.length&&(d[1]=k.substr(0,f))):d[1]&&d.pop();f=b[0].replace(",","");c=f.indexOf("0");-1!=c&&(c=f.length-c,c>d[0].length&&(d[0]=r.pad(d[0],c)),-1==f.indexOf("#")&&(d[0]=d[0].substr(d[0].length-c)));f=b[0].lastIndexOf(",");var m;if(-1!=f){var p=b[0].length-f-1;b=b[0].substr(0,f);f=b.lastIndexOf(",");-1!=f&&(m=b.length-f-1)}b=[];for(f=d[0];f;)c=f.length-p,b.push(0<c?f.substr(c):f),f=0<c?f.slice(0,c):
"",m&&(p=m,m=void 0);d[0]=b.reverse().join(a.group||",");return d.join(a.decimal||".")};e.regexp=function(d){return e._parseInfo(d).regexp};e._parseInfo=function(d){d=d||{};var b=A.normalizeLocale(d.locale);b=A.getLocalization("dojo.cldr","number",b);var a=d.pattern||b[(d.type||"decimal")+"Format"],c=b.group,f=b.decimal,k=1;if(-1!=a.indexOf("%"))k/=100;else if(-1!=a.indexOf("\u2030"))k/=1E3;else{var m=-1!=a.indexOf("\u00a4");m&&(c=b.currencyGroup||c,f=b.currencyDecimal||f)}b=a.split(";");1==b.length&&
b.push("-"+b[0]);b=h.buildGroupRE(b,function(p){p="(?:"+h.escapeString(p,".")+")";return p.replace(e._numberPatternRE,function(l){var n={signed:!1,separator:d.strict?c:[c,""],fractional:d.fractional,decimal:f,exponent:!1};l=l.split(".");var q=d.places;1==l.length&&1!=k&&(l[1]="###");1==l.length||0===q?n.fractional=!1:(void 0===q&&(q=d.pattern?l[1].lastIndexOf("0")+1:Infinity),q&&void 0==d.fractional&&(n.fractional=!0),!d.places&&q<l[1].length&&(q+=","+l[1].length),n.places=q);l=l[0].split(",");1<
l.length&&(n.groupSize=l.pop().length,1<l.length&&(n.groupSize2=l.pop().length));return"("+e._realNumberRegexp(n)+")"})},!0);m&&(b=b.replace(/([\s\xa0\u202f]*)(\u00a4{1,3})([\s\xa0\u202f]*)/g,function(p,l,n,q){p=h.escapeString(d[["symbol","currency","displayName"][n.length-1]]||d.currency||"");if(!p)return"";l=l?"[\\s\\xa0\\u202f]":"";q=q?"[\\s\\xa0\\u202f]":"";return d.strict?l+p+q:(l&&(l+="*"),q&&(q+="*"),"(?:"+l+p+q+")?")}));return{regexp:b.replace(/[\xa0\u202f ]/g,"[\\s\\xa0\\u202f]"),group:c,
decimal:f,factor:k}};e.parse=function(d,b){var a=e._parseInfo(b),c=(new RegExp("^"+a.regexp+"$")).exec(d);if(!c)return NaN;var f=c[1];if(!c[1]){if(!c[2])return NaN;f=c[2];a.factor*=-1}f=f.replace(new RegExp("["+a.group+"\\s\\xa0\\u202f]","g"),"").replace(a.decimal,".");return f*a.factor};e._realNumberRegexp=function(d){d=d||{};"places"in d||(d.places=Infinity);"string"!=typeof d.decimal&&(d.decimal=".");"fractional"in d&&!/^0/.test(d.places)||(d.fractional=[!0,!1]);"exponent"in d||(d.exponent=[!0,
!1]);"eSigned"in d||(d.eSigned=[!0,!1]);var b=e._integerRegexp(d),a=h.buildGroupRE(d.fractional,function(f){var k="";f&&0!==d.places&&(k="\\"+d.decimal,k=Infinity==d.places?"(?:"+k+"\\d+)?":k+("\\d{"+d.places+"}"));return k},!0),c=h.buildGroupRE(d.exponent,function(f){return f?"([eE]"+e._integerRegexp({signed:d.eSigned})+")":""});b+=a;a&&(b="(?:(?:"+b+")|(?:"+a+"))");return b+c};e._integerRegexp=function(d){d=d||{};"signed"in d||(d.signed=[!0,!1]);"separator"in d?"groupSize"in d||(d.groupSize=3):
d.separator="";var b=h.buildGroupRE(d.signed,function(c){return c?"[-+]":""},!0),a=h.buildGroupRE(d.separator,function(c){if(!c)return"(?:\\d+)";c=h.escapeString(c);" "==c?c="\\s":"\u00a0"==c?c="\\s\\xa0":"\u202f"==c&&(c="\\s\\u202f");var f=d.groupSize,k=d.groupSize2;return k?(c="(?:0|[1-9]\\d{0,"+(k-1)+"}(?:["+c+"]\\d{"+k+"})*["+c+"]\\d{"+f+"})",0<f-k?"(?:"+c+"|(?:0|[1-9]\\d{0,"+(f-1)+"}))":c):"(?:0|[1-9]\\d{0,"+(f-1)+"}(?:["+c+"]\\d{"+f+"})*)"},!0);return b+a};return e})},"dojo/regexp":function(){define(["./_base/kernel",
"./_base/lang"],function(u,A){var x={};A.setObject("dojo.regexp",x);x.escapeString=function(r,h){return r.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,function(e){return h&&-1!=h.indexOf(e)?e:"\\"+e})};x.buildGroupRE=function(r,h,e){if(!(r instanceof Array))return h(r);for(var g=[],d=0;d<r.length;d++)g.push(h(r[d]));return x.group(g.join("|"),e)};x.group=function(r,h){return"("+(h?"?:":"")+r+")"};return x})},"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(u,A,x,r,h,e,g,d,b,a){r("dijit-legacy-requires")&&g(0,function(){u(["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"])});g=A("dijit.form.Button"+(r("dojo-bidi")?"_NoBidi":""),[d,b],{showLabel:!0,iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitButton",templateString:a,_setValueAttr:"valueNode",_setNameAttr:function(c){this.valueNode&&this.valueNode.setAttribute("name",c)},postCreate:function(){this.inherited(arguments);
this._setLabelFromContainer()},_setLabelFromContainer:function(){this.containerNode&&!this.label&&(this.label=e.trim(this.containerNode.innerHTML),this.onLabelSet())},_setShowLabelAttr:function(c){this.containerNode&&x.toggle(this.containerNode,"dijitDisplayNone",!c);this._set("showLabel",c)},setLabel:function(c){h.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",c)},onLabelSet:function(){this.inherited(arguments);this.showLabel||
"title"in this.params||(this.titleNode.title=e.trim(this.containerNode.innerText||this.containerNode.textContent||""))}});r("dojo-bidi")&&(g=A("dijit.form.Button",g,{onLabelSet:function(){this.inherited(arguments);this.titleNode.title&&this.applyTextDir(this.titleNode,this.titleNode.title)},_setTextDirAttr:function(c){this._created&&this.textDir!=c&&(this._set("textDir",c),this._setLabelAttr(this.label))}}));return g})},"dijit/form/_ButtonMixin":function(){define(["dojo/_base/declare","dojo/dom",
"dojo/has","../registry"],function(u,A,x,r){var h=u("dijit.form._ButtonMixin"+(x("dojo-bidi")?"_NoBidi":""),null,{label:"",type:"button",__onClick:function(e){e.stopPropagation();e.preventDefault();this.disabled||this.valueNode.click(e);return!1},_onClick:function(e){if(this.disabled)return e.stopPropagation(),e.preventDefault(),!1;!1===this.onClick(e)&&e.preventDefault();var g=e.defaultPrevented;if(!g&&"submit"==this.type&&!(this.valueNode||this.focusNode).form)for(var d=this.domNode;d.parentNode;d=
d.parentNode){var b=r.byNode(d);if(b&&"function"==typeof b._onSubmit){b._onSubmit(e);e.preventDefault();g=!0;break}}return!g},postCreate:function(){this.inherited(arguments);A.setSelectable(this.focusNode,!1)},onClick:function(){return!0},_setLabelAttr:function(e){this._set("label",e);(this.containerNode||this.focusNode).innerHTML=e;this.onLabelSet()},onLabelSet:function(){}});x("dojo-bidi")&&(h=u("dijit.form._ButtonMixin",h,{onLabelSet:function(){this.inherited(arguments);this.applyTextDir(this.containerNode||
this.focusNode)}}));return h})},"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(u,A,x,r,h,e,g,d,b,a){return u("dijit.form.DropDownButton",[g,d,b],{baseClass:"dijitDropDownButton",templateString:a,_fillContent:function(){var c=this.srcNodeRef,f=this.containerNode;if(c&&f)for(;c.hasChildNodes();){var k=
c.firstChild;k.hasAttribute&&(k.hasAttribute("data-dojo-type")||k.hasAttribute("dojoType")||k.hasAttribute("data-"+A._scopeName+"-type")||k.hasAttribute(A._scopeName+"Type"))?(this.dropDownContainer=this.ownerDocument.createElement("div"),this.dropDownContainer.appendChild(k)):f.appendChild(k)}},startup:function(){this._started||(!this.dropDown&&this.dropDownContainer&&(this.dropDown=h.byNode(this.dropDownContainer.firstChild),delete this.dropDownContainer),this.dropDown&&e.hide(this.dropDown),this.inherited(arguments))},
isLoaded:function(){var c=this.dropDown;return!!c&&(!c.href||c.isLoaded)},loadDropDown:function(c){var f=this.dropDown,k=f.on("load",x.hitch(this,function(){k.remove();c()}));f.refresh()},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}})})},"dijit/popup":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dojo/keys dojo/_base/lang dojo/on ./place ./BackgroundIframe ./Viewport ./main dojo/touch".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l){function n(){this._popupWrapper&&(e.destroy(this._popupWrapper),delete this._popupWrapper)}x=x(null,{_stack:[],_beginZIndex:1E3,_idGen:1,_repositionAll:function(){if(this._firstAroundNode){var q=this._firstAroundPosition,w=g.position(this._firstAroundNode,!0),t=w.x-q.x;q=w.y-q.y;if(t||q)for(this._firstAroundPosition=w,w=0;w<this._stack.length;w++){var v=this._stack[w].wrapper.style;v.top=parseFloat(v.top)+q+"px";"auto"==v.right?v.left=parseFloat(v.left)+t+
"px":v.right=parseFloat(v.right)-t+"px"}this._aroundMoveListener=setTimeout(c.hitch(this,"_repositionAll"),t||q?10:50)}},_createWrapper:function(q){var w=q._popupWrapper,t=q.domNode;w||(w=e.create("div",{"class":"dijitPopup",style:{display:"none"},role:"region","aria-label":q["aria-label"]||q.label||q.name||q.id},q.ownerDocumentBody),w.appendChild(t),t=t.style,t.display="",t.visibility="",t.position="",t.top="0px",q._popupWrapper=w,A.after(q,"destroy",n,!0),"ontouchend"in document&&f(w,"touchend",
function(v){/^(input|button|textarea)$/i.test(v.target.tagName)||v.preventDefault()}),w.dojoClick=!0);return w},moveOffScreen:function(q){var w=this._createWrapper(q);q=g.isBodyLtr(q.ownerDocument);var t={visibility:"hidden",top:"-9999px",display:""};t[q?"left":"right"]="-9999px";t[q?"right":"left"]="auto";d.set(w,t);return w},hide:function(q){var w=this._createWrapper(q);d.set(w,{display:"none",height:"auto",overflowY:"visible",border:""});q=q.domNode;"_originalStyle"in q&&(q.style.cssText=q._originalStyle)},
getTopPopup:function(){for(var q=this._stack,w=q.length-1;0<w&&q[w].parent===q[w-1].widget;w--);return q[w]},open:function(q){for(var w=this._stack,t=q.popup,v=t.domNode,y=q.orient||["below","below-alt","above","above-alt"],z=q.parent?q.parent.isLeftToRight():g.isBodyLtr(t.ownerDocument),C=q.around,G=q.around&&q.around.id?q.around.id+"_dropdown":"popup_"+this._idGen++;w.length&&(!q.parent||!r.isDescendant(q.parent.domNode,w[w.length-1].widget.domNode));)this.close(w[w.length-1].widget);var B=this.moveOffScreen(t);
t.startup&&!t._started&&t.startup();var D=g.position(v);if("maxHeight"in q&&-1!=q.maxHeight)var E=q.maxHeight||Infinity;else{E=p.getEffectiveBox(this.ownerDocument);var J=C?g.position(C,!1):{y:q.y-(q.padding||0),h:2*(q.padding||0)};E=Math.floor(Math.max(J.y,E.h-(J.y+J.h)))}D.h>E&&(D=d.getComputedStyle(v),d.set(B,{overflowY:"scroll",height:E+"px",border:D.borderLeftWidth+" "+D.borderLeftStyle+" "+D.borderLeftColor}),v._originalStyle=v.style.cssText,v.style.border="none");h.set(B,{id:G,style:{zIndex:this._beginZIndex+
w.length},"class":"dijitPopup "+(t.baseClass||t["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:q.parent?q.parent.id:""});0==w.length&&C&&(this._firstAroundNode=C,this._firstAroundPosition=g.position(C,!0),this._aroundMoveListener=setTimeout(c.hitch(this,"_repositionAll"),50));b("config-bgIframe")&&!t.bgIframe&&(t.bgIframe=new m(B));G=t.orient?c.hitch(t,"orient"):null;y=C?k.around(B,C,y,z,G):k.at(B,q,"R"==y?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],q.padding,G);B.style.visibility="visible";
v.style.visibility="visible";v=[];v.push(f(B,"keydown",c.hitch(this,function(I){if(I.keyCode==a.ESCAPE&&q.onCancel)I.stopPropagation(),I.preventDefault(),q.onCancel();else if(I.keyCode==a.TAB&&(I.stopPropagation(),I.preventDefault(),(I=this.getTopPopup())&&I.onCancel))I.onCancel()})));t.onCancel&&q.onCancel&&v.push(t.on("cancel",q.onCancel));v.push(t.on(t.onExecute?"execute":"change",c.hitch(this,function(){var I=this.getTopPopup();if(I&&I.onExecute)I.onExecute()})));w.push({widget:t,wrapper:B,parent:q.parent,
onExecute:q.onExecute,onCancel:q.onCancel,onClose:q.onClose,handlers:v});if(t.onOpen)t.onOpen(y);return y},close:function(q){for(var w=this._stack;q&&u.some(w,function(C){return C.widget==q})||!q&&w.length;){var t=w.pop(),v=t.widget,y=t.onClose;v.bgIframe&&(v.bgIframe.destroy(),delete v.bgIframe);if(v.onClose)v.onClose();for(var z;z=t.handlers.pop();)z.remove();v&&v.domNode&&this.hide(v);y&&y()}0==w.length&&this._aroundMoveListener&&(clearTimeout(this._aroundMoveListener),this._firstAroundNode=this._firstAroundPosition=
this._aroundMoveListener=null)}});return l.popup=new x})},"dijit/_Container":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/_base/kernel"],function(u,A,x,r){return A("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode)},addChild:function(h,e){var g=this.containerNode;if(0<e){for(g=g.firstChild;0<e;)1==g.nodeType&&e--,g=g.nextSibling;g?e="before":(g=this.containerNode,e="last")}x.place(h.domNode,
g,e);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,e){var g=this.getChildren(),d=u.indexOf(g,h);return g[d+e]},getIndexOfChild:function(h){return u.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(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l){return u("dijit._HasDropDown",l,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:!0,forceWidth:!1,maxHeight:-1,dropDownPosition:["below","above"],_stopClickEvents:!0,_onDropDownMouseDown:function(n){this.disabled||this.readOnly||("MSPointerDown"!=n.type&&n.preventDefault(),this.own(c.once(this.ownerDocument,f.release,a.hitch(this,"_onDropDownMouseUp"))),this.toggleDropDown())},_onDropDownMouseUp:function(n){var q=
this.dropDown,w=!1;if(n&&this._opened){var t=e.position(this._buttonNode,!0);if(!(n.pageX>=t.x&&n.pageX<=t.x+t.w&&n.pageY>=t.y&&n.pageY<=t.y+t.h)){for(t=n.target;t&&!w;)h.contains(t,"dijitPopup")?w=!0:t=t.parentNode;if(w){t=n.target;if(q.onItemClick){for(var v;t&&!(v=k.byNode(t));)t=t.parentNode;if(v&&v.onClick&&v.getParent)v.getParent().onItemClick(v,n)}return}}}this._opened?q.focus&&(!1!==q.autoFocus||"mouseup"==n.type&&!this.hovering)&&(this._focusDropDownTimer=this.defer(function(){q.focus();
delete this._focusDropDownTimer})):this.focus&&this.defer("focus")},_onDropDownClick:function(n){this._stopClickEvents&&(n.stopPropagation(),n.preventDefault())},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var n={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"+n+"ArrowButton")},postCreate:function(){this.inherited(arguments);var n=this.focusNode||this.domNode;this.own(c(this._buttonNode,f.press,a.hitch(this,"_onDropDownMouseDown")),c(this._buttonNode,"click",a.hitch(this,"_onDropDownClick")),c(n,"keydown",a.hitch(this,"_onKey")),c(n,"keyup",a.hitch(this,"_onKeyUp")))},destroy:function(){this._opened&&this.closeDropDown(!0);this.dropDown&&(this.dropDown._destroyed||this.dropDown.destroyRecursive(),
delete this.dropDown);this.inherited(arguments)},_onKey:function(n){if(!this.disabled&&!this.readOnly){var q=this.dropDown,w=n.target;q&&this._opened&&q.handleKey&&!1===q.handleKey(n)?(n.stopPropagation(),n.preventDefault()):q&&this._opened&&n.keyCode==b.ESCAPE?(this.closeDropDown(),n.stopPropagation(),n.preventDefault()):!this._opened&&(n.keyCode==b.DOWN_ARROW||(n.keyCode==b.ENTER||n.keyCode==b.SPACE&&(!this._searchTimer||n.ctrlKey||n.altKey||n.metaKey))&&("input"!==(w.tagName||"").toLowerCase()||
w.type&&"text"!==w.type.toLowerCase()))&&(this._toggleOnKeyUp=!0,n.stopPropagation(),n.preventDefault())}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var n=this.dropDown;n&&n.focus&&this.defer(a.hitch(n,"focus"),1)}},_onBlur:function(){this.closeDropDown(!1);this.inherited(arguments)},isLoaded:function(){return!0},loadDropDown:function(n){n()},loadAndOpenDropDown:function(){var n=new A,q=a.hitch(this,function(){this.openDropDown();n.resolve(this.dropDown)});
this.isLoaded()?q():this.loadDropDown(q);return n},toggleDropDown:function(){this.disabled||this.readOnly||(this._opened?this.closeDropDown(!0):this.loadAndOpenDropDown())},openDropDown:function(){var n=this.dropDown,q=n.domNode,w=this._aroundNode||this.domNode,t=this,v=p.open({parent:this,popup:n,around:w,orient:this.dropDownPosition,maxHeight:this.maxHeight,onExecute:function(){t.closeDropDown(!0)},onCancel:function(){t.closeDropDown(!0)},onClose:function(){r.set(t._popupStateNode,"popupActive",
!1);h.remove(t._popupStateNode,"dijitHasDropDownOpen");t._set("_opened",!1)}});if(this.forceWidth||this.autoWidth&&w.offsetWidth>n._popupWrapper.offsetWidth){w=w.offsetWidth-n._popupWrapper.offsetWidth;var y={w:n.domNode.offsetWidth+w};this._origStyle=q.style.cssText;a.isFunction(n.resize)?n.resize(y):e.setMarginBox(q,y);"R"==v.corner[1]&&(n._popupWrapper.style.left=n._popupWrapper.style.left.replace("px","")-w+"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",n.id);"presentation"===q.getAttribute("role")||q.getAttribute("aria-labelledby")||q.setAttribute("aria-labelledby",this.id);return v},closeDropDown:function(n){this._focusDropDownTimer&&(this._focusDropDownTimer.remove(),delete this._focusDropDownTimer);this._opened&&(this._popupStateNode.setAttribute("aria-expanded","false"),n&&this.focus&&this.focus(),p.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(u,A,x,r,h){return u("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(e){e.keyCode==A[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]&&(x.focus(this._popupStateNode),e.stopPropagation(),e.preventDefault())},_onArrowKeyDown:function(e){e.keyCode==A[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]&&(x.focus(this.titleNode),e.stopPropagation(),e.preventDefault())},focus:function(e){this.disabled||x.focus("start"==e?this.titleNode:this._popupStateNode)}})})},
"dijit/form/ComboBox":function(){define(["dojo/_base/declare","./ValidationTextBox","./ComboBoxMixin"],function(u,A,x){return u("dijit.form.ComboBox",[A,x],{})})},"dijit/form/ComboBoxMixin":function(){define("dojo/_base/declare dojo/Deferred dojo/_base/kernel dojo/_base/lang dojo/store/util/QueryResults ./_AutoCompleterMixin ./_ComboBoxMenu ../_HasDropDown dojo/text!./templates/DropDownBox.html".split(" "),function(u,A,x,r,h,e,g,d,b){return u("dijit.form.ComboBoxMixin",[d,e],{dropDownClass:g,hasDownArrow:!0,
templateString:b,baseClass:"dijitTextBox dijitComboBox",cssStateNodes:{_buttonNode:"dijitDownArrowButton"},_setHasDownArrowAttr:function(a){this._set("hasDownArrow",a);this._buttonNode.style.display=a?"":"none"},_showResultList:function(){this.displayMessage("");this.inherited(arguments)},_setStoreAttr:function(a){a.get||r.mixin(a,{_oldAPI:!0,get:function(c){var f=new A;this.fetchItemByIdentity({identity:c,onItem:function(k){f.resolve(k)},onError:function(k){f.reject(k)}});return f.promise},query:function(c,
f){var k=new A(function(){m.abort&&m.abort()});k.total=new A;var m=this.fetch(r.mixin({query:c,onBegin:function(p){k.total.resolve(p)},onComplete:function(p){k.resolve(p)},onError:function(p){k.reject(p)}},f));return h(k)}});this._set("store",a)},postMixInProperties:function(){var a=this.params.store||this.store;a&&this._setStoreAttr(a);this.inherited(arguments);if(!this.params.store&&this.store&&!this.store._oldAPI){var c=this.declaredClass;r.mixin(this.store,{getValue:function(f,k){x.deprecated(c+
".store.getValue(item, attr) is deprecated for builtin store.  Use item.attr directly","","2.0");return f[k]},getLabel:function(f){x.deprecated(c+".store.getLabel(item) is deprecated for builtin store.  Use item.label directly","","2.0");return f.name},fetch:function(f){x.deprecated(c+".store.fetch() is deprecated for builtin store.","Use store.query()","2.0");require(["dojo/data/ObjectStore"],r.hitch(this,function(k){(new k({objectStore:this})).fetch(f)}))}})}},buildRendering:function(){this.inherited(arguments);
this.focusNode.setAttribute("aria-autocomplete",this.autoComplete?"both":"list")}})})},"dojo/store/util/QueryResults":function(){define(["../../_base/array","../../_base/lang","../../when"],function(u,A,x){var r=function(h){function e(d){h[d]=function(){var b=arguments,a=x(h,function(c){Array.prototype.unshift.call(b,c);return r(u[d].apply(u,b))});if("forEach"!==d||g)return a}}if(!h)return h;var g=!!h.then;g&&(h=A.delegate(h));e("forEach");e("filter");e("map");null==h.total&&(h.total=x(h,function(d){return d.length}));
return h};A.setObject("dojo.store.util.QueryResults",r);return r})},"dijit/form/_AutoCompleterMixin":function(){define("dojo/aspect dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/query dojo/regexp dojo/sniff ./DataList ./_TextBoxMixin ./_SearchMixin".split(" "),function(u,A,x,r,h,e,g,d,b,a,c){A=A("dijit.form._AutoCompleterMixin",c,{item:null,autoComplete:!0,highlightMatch:"first",labelAttr:"",labelType:"text",maxHeight:-1,_stopClickEvents:!1,_getCaretPos:function(f){var k=0;if("number"==
typeof f.selectionStart)k=f.selectionStart;else if(d("ie")){var m=f.ownerDocument.selection.createRange().duplicate();f=f.createTextRange();m.move("character",0);f.move("character",0);try{f.setEndPoint("EndToEnd",m),k=String(f.text).replace(/\r/g,"").length}catch(p){}}return k},_setCaretPos:function(f,k){k=parseInt(k);a.selectInputText(f,k,k)},_setDisabledAttr:function(f){this.inherited(arguments);this.domNode.setAttribute("aria-disabled",f?"true":"false")},_onKey:function(f){if(!(32<=f.charCode)){var k=
f.charCode||f.keyCode;if(k!=r.ALT&&k!=r.CTRL&&k!=r.META&&k!=r.SHIFT){var m=this.dropDown,p=null;this._abortQuery();this.inherited(arguments);if(!(f.altKey||f.ctrlKey||f.metaKey))switch(this._opened&&(p=m.getHighlightedOption()),k){case r.PAGE_DOWN:case r.DOWN_ARROW:case r.PAGE_UP:case r.UP_ARROW:this._opened&&this._announceOption(p);f.stopPropagation();f.preventDefault();break;case r.ENTER:if(p){if(p==m.nextButton){this._nextSearch(1);f.stopPropagation();f.preventDefault();break}else if(p==m.previousButton){this._nextSearch(-1);
f.stopPropagation();f.preventDefault();break}f.stopPropagation();f.preventDefault()}else this._setBlurValue(),this._setCaretPos(this.focusNode,this.focusNode.value.length);case r.TAB:k=this.get("displayedValue");if(m&&(k==m._messages.previousMessage||k==m._messages.nextMessage))break;p&&this._selectOption(p);case r.ESCAPE:this._opened&&(this._lastQuery=null,this.closeDropDown())}}}},_autoCompleteText:function(f){var k=this.focusNode;a.selectInputText(k,k.value.length);var m=this.ignoreCase?"toLowerCase":
"substr";0==f[m](0).indexOf(this.focusNode.value[m](0))?(m=this.autoComplete?this._getCaretPos(k):k.value.length,m+1>k.value.length&&(k.value=f,a.selectInputText(k,m))):(k.value=f,a.selectInputText(k))},_openResultList:function(f,k,m){var p=this.dropDown.getHighlightedOption();this.dropDown.clearResultList();f.length||0!=m.start?(this._nextSearch=this.dropDown.onPage=h.hitch(this,function(l){f.nextPage(-1!==l);this.focus()}),this.dropDown.createOptions(f,m,h.hitch(this,"_getMenuLabelFromItem")),this._showResultList(),
"direction"in m?(m.direction?this.dropDown.highlightFirstOption():m.direction||this.dropDown.highlightLastOption(),p&&this._announceOption(this.dropDown.getHighlightedOption())):!this.autoComplete||this._prev_key_backspace||/^[*]+$/.test(k[this.searchAttr].toString())||this._announceOption(this.dropDown.containerNode.firstChild.nextSibling)):this.closeDropDown()},_showResultList:function(){this.closeDropDown(!0);this.openDropDown();this.domNode.setAttribute("aria-expanded","true")},loadDropDown:function(){this._startSearchAll()},
isLoaded:function(){return!1},closeDropDown:function(){this._abortQuery();this._opened&&(this.inherited(arguments),this.domNode.setAttribute("aria-expanded","false"))},_setBlurValue:function(){var f=this.get("displayedValue"),k=this.dropDown;!k||f!=k._messages.previousMessage&&f!=k._messages.nextMessage?"undefined"==typeof this.item?(this.item=null,this.set("displayedValue",f)):(this.value!=this._lastValueReported&&this._handleOnChange(this.value,!0),this._refreshState()):this._setValueAttr(this._lastValueReported,
!0);this.focusNode.removeAttribute("aria-activedescendant")},_setItemAttr:function(f,k,m){var p="";f&&(m||(m=this.store._oldAPI?this.store.getValue(f,this.searchAttr):f[this.searchAttr]),p=this._getValueField()!=this.searchAttr?this.store.getIdentity(f):m);this.set("value",p,k,m,f)},_announceOption:function(f){if(f){if(f==this.dropDown.nextButton||f==this.dropDown.previousButton){var k=f.innerHTML;this.item=void 0;this.value=""}else{var m=this.dropDown.items[f.getAttribute("item")];k=(this.store._oldAPI?
this.store.getValue(m,this.searchAttr):m[this.searchAttr]).toString();this.set("item",m,!1,k)}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);this.focusNode.setAttribute("aria-activedescendant",x.get(f,"id"));this._autoCompleteText(k)}},_selectOption:function(f){this.closeDropDown();f&&this._announceOption(f);this._setCaretPos(this.focusNode,this.focusNode.value.length);this._handleOnChange(this.value,!0);this.focusNode.removeAttribute("aria-activedescendant")},_startSearchAll:function(){this._startSearch("")},
_startSearchFromInput:function(){this.item=void 0;this.inherited(arguments)},_startSearch:function(f){if(!this.dropDown){var k=this.id+"_popup";this.dropDown=new (h.isString(this.dropDownClass)?h.getObject(this.dropDownClass,!1):this.dropDownClass)({onChange:h.hitch(this,this._selectOption),id:k,dir:this.dir,textDir:this.textDir})}this._lastInput=f;this.inherited(arguments)},_getValueField:function(){return this.searchAttr},postMixInProperties:function(){this.inherited(arguments);if(!this.store&&
this.srcNodeRef&&(this.store=new b({},this.srcNodeRef),!("value"in this.params))){var f=this.item=this.store.fetchSelectedItem();if(f){var k=this._getValueField();this.value=this.store._oldAPI?this.store.getValue(f,k):f[k]}}},postCreate:function(){var f=e('label[for\x3d"'+this.id+'"]');f.length&&(f[0].id||(f[0].id=this.id+"_label"),this.domNode.setAttribute("aria-labelledby",f[0].id));this.inherited(arguments);u.after(this,"onSearch",h.hitch(this,"_openResultList"),!0)},_getMenuLabelFromItem:function(f){f=
this.labelFunc(f,this.store);var k=this.labelType;"none"!=this.highlightMatch&&"text"==this.labelType&&this._lastInput&&(f=this.doHighlight(f,this._lastInput),k="html");return{html:"html"==k,label:f}},doHighlight:function(f,k){var m=(this.ignoreCase?"i":"")+("all"==this.highlightMatch?"g":""),p=this.queryExpr.indexOf("${0}");k=g.escapeString(k);return this._escapeHtml(f.replace(new RegExp((0==p?"^":"")+"("+k+")"+(p==this.queryExpr.length-4?"$":""),m),"\uffff$1\uffff")).replace(/\uFFFF([^\uFFFF]+)\uFFFF/g,
'\x3cspan class\x3d"dijitComboBoxHighlightMatch"\x3e$1\x3c/span\x3e')},_escapeHtml:function(f){return f=String(f).replace(/&/gm,"\x26amp;").replace(/</gm,"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;")},reset:function(){this.item=null;this.inherited(arguments)},labelFunc:function(f,k){return(k._oldAPI?k.getValue(f,this.labelAttr||this.searchAttr):f[this.labelAttr||this.searchAttr]).toString()},_setValueAttr:function(f,k,m,p){this._set("item",p||null);null==f&&(f="");this.inherited(arguments)}});
d("dojo-bidi")&&A.extend({_setTextDirAttr:function(f){this.inherited(arguments);this.dropDown&&this.dropDown._set("textDir",f)}});return A})},"dijit/form/DataList":function(){define("dojo/_base/declare dojo/dom dojo/_base/lang dojo/query dojo/store/Memory ../registry".split(" "),function(u,A,x,r,h,e){function g(d){return{id:d.value,value:d.value,name:x.trim(d.innerText||d.textContent||"")}}return u("dijit.form.DataList",h,{constructor:function(d,b){this.domNode=A.byId(b);x.mixin(this,d);this.id&&
e.add(this);this.domNode.style.display="none";this.inherited(arguments,[{data:r("option",this.domNode).map(g)}])},destroy:function(){e.remove(this.id)},fetchSelectedItem:function(){var d=r("\x3e option[selected]",this.domNode)[0]||r("\x3e option",this.domNode)[0];return d&&g(d)}})})},"dojo/store/Memory":function(){define(["../_base/declare","./util/QueryResults","./util/SimpleQueryEngine"],function(u,A,x){return u("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:x,get:function(r){return this.data[this.index[r]]},getIdentity:function(r){return r[this.idProperty]},put:function(r,h){var e=this.data,g=this.index,d=this.idProperty;d=r[d]=h&&"id"in h?h.id:d in r?r[d]:Math.random();var b=e.length,a,c=d in g?"update":"add";if("update"===c){if(h&&!1===h.overwrite)throw Error("Object already exists");b=a=g[d]}h&&"before"in h?null==h.before?(g=e.length,"update"===c&&--g):(g=g[this.getIdentity(h.before)],a<g&&--g):
g=b;g===a?e[g]=r:(void 0!==a&&e.splice(a,1),e.splice(g,0,r),this._rebuildIndex(void 0===a?g:Math.min(a,g)));return d},add:function(r,h){(h=h||{}).overwrite=!1;return this.put(r,h)},remove:function(r){var h=this.index,e=this.data;if(r in h)return e.splice(h[r],1),this.index={},this._rebuildIndex(),!0},query:function(r,h){return A(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,e=h.length;for(r=r||0;r<e;r++)this.index[h[r][this.idProperty]]=r}})})},"dojo/store/util/SimpleQueryEngine":function(){define(["../../_base/array"],function(u){return function(A,x){function r(e){e=u.filter(e,A);var g=x&&x.sort;g&&e.sort("function"==typeof g?g:function(b,a){for(var c,f=0;c=g[f];f++){var k=b[c.attribute],m=a[c.attribute];k=null!=k?k.valueOf():k;m=null!=m?m.valueOf():m;if(k!=m)return!!c.descending==(null==k||k>m)?-1:1}return 0});if(x&&(x.start||
x.count)){var d=e.length;e=e.slice(x.start||0,(x.start||0)+(x.count||Infinity));e.total=d}return e}switch(typeof A){default:throw Error("Can not query with a "+typeof A);case "object":case "undefined":var h=A;A=function(e){for(var g in h){var d=h[g];if(d&&d.test){if(!d.test(e[g],e))return!1}else if(d!=e[g])return!1}return!0};break;case "string":if(!this[A])throw Error("No filter function "+A+" was found in store");A=this[A];case "function":}r.matches=A;return r}})},"dijit/form/_SearchMixin":function(){define("dojo/_base/declare dojo/keys dojo/_base/lang dojo/query dojo/string dojo/when ../registry".split(" "),
function(u,A,x,r,h,e,g){return u("dijit.form._SearchMixin",null,{pageSize:Infinity,store:null,fetchProperties:{},query:{},list:"",_setListAttr:function(d){this._set("list",d)},searchDelay:200,searchAttr:"name",queryExpr:"${0}*",ignoreCase:!0,_patternToRegExp:function(d){return new RegExp("^"+d.replace(/(\\.)|(\*)|(\?)|\W/g,function(b,a,c,f){return c?".*":f?".":a?a:"\\"+b})+"$",this.ignoreCase?"mi":"m")},_abortQuery:function(){this.searchTimer&&(this.searchTimer=this.searchTimer.remove());this._queryDeferHandle&&
(this._queryDeferHandle=this._queryDeferHandle.remove());this._fetchHandle&&(this._fetchHandle.abort&&(this._cancelingQuery=!0,this._fetchHandle.abort(),this._cancelingQuery=!1),this._fetchHandle.cancel&&(this._cancelingQuery=!0,this._fetchHandle.cancel(),this._cancelingQuery=!1),this._fetchHandle=null)},_processInput:function(d){if(!this.disabled&&!this.readOnly){d=d.charOrCode;this._prev_key_backspace=!1;if(d===A.DELETE||d===A.BACKSPACE)this._maskValidSubsetError=this._prev_key_backspace=!0;if(this.store)this.searchTimer=
this.defer("_startSearchFromInput",1);else this.onSearch()}},onSearch:function(){},_startSearchFromInput:function(){this._startSearch(this.focusNode.value)},_startSearch:function(d){this._abortQuery();var b=this,a=x.clone(this.query),c={start:0,count:this.pageSize,queryOptions:{ignoreCase:this.ignoreCase,deep:!0}},f=h.substitute(this.queryExpr,[d.replace(/([\\\*\?])/g,"\\$1")]),k=function(){var p=b._fetchHandle=b.store.query(a,c);b.disabled||b.readOnly||m!==b._lastQuery||e(p,function(l){b._fetchHandle=
null;b.disabled||b.readOnly||m!==b._lastQuery||e(p.total,function(n){l.total=n;var q=b.pageSize;if(isNaN(q)||q>l.total)q=l.total;l.nextPage=function(w){c.direction=w=!1!==w;c.count=q;w?(c.start+=l.length,c.start>=l.total&&(c.count=0)):(c.start-=q,0>c.start&&(c.count=Math.max(q+c.start,0),c.start=0));0>=c.count?(l.length=0,b.onSearch(l,a,c)):k()};b.onSearch(l,a,c)})},function(l){b._fetchHandle=null})};x.mixin(c,this.fetchProperties);if(this.store._oldAPI)var m=f;else m=this._patternToRegExp(f),m.toString=
function(){return f};this._lastQuery=a[this.searchAttr]=m;this._queryDeferHandle=this.defer(k,this.searchDelay)},constructor:function(){this.query={};this.fetchProperties={}},postMixInProperties:function(){if(!this.store){var d=this.list;d&&(this.store=g.byId(d))}this.inherited(arguments)}})})},"dijit/form/_ComboBoxMenu":function(){define("dojo/_base/declare dojo/dom-class dojo/dom-style dojo/keys ../_WidgetBase ../_TemplatedMixin ./_ComboBoxMenuMixin ./_ListMouseMixin".split(" "),function(u,A,x,
r,h,e,g,d){return u("dijit.form._ComboBoxMenu",[h,e,d,g],{templateString:"\x3cdiv class\x3d'dijitReset dijitMenu' data-dojo-attach-point\x3d'containerNode' style\x3d'overflow: auto; overflow-x: hidden;' role\x3d'listbox'\x3e\x3cdiv class\x3d'dijitMenuItem dijitMenuPreviousButton' data-dojo-attach-point\x3d'previousButton' role\x3d'option'\x3e\x3c/div\x3e\x3cdiv class\x3d'dijitMenuItem dijitMenuNextButton' data-dojo-attach-point\x3d'nextButton' role\x3d'option'\x3e\x3c/div\x3e\x3c/div\x3e",baseClass:"dijitComboBoxMenu",
postCreate:function(){this.inherited(arguments);this.isLeftToRight()||(A.add(this.previousButton,"dijitMenuItemRtl"),A.add(this.nextButton,"dijitMenuItemRtl"));this.containerNode.setAttribute("role","listbox")},_createMenuItem:function(){var b=this.ownerDocument.createElement("div");b.className="dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl");b.setAttribute("role","option");return b},onHover:function(b){A.add(b,"dijitMenuItemHover")},onUnhover:function(b){A.remove(b,"dijitMenuItemHover")},
onSelect:function(b){A.add(b,"dijitMenuItemSelected")},onDeselect:function(b){A.remove(b,"dijitMenuItemSelected")},_page:function(b){var a=0,c=this.domNode.scrollTop,f=x.get(this.domNode,"height");for(this.getHighlightedOption()||this.selectNextNode();a<f;){var k=this.getHighlightedOption();if(b){if(!k.previousSibling||"none"==k.previousSibling.style.display)break;this.selectPreviousNode()}else{if(!k.nextSibling||"none"==k.nextSibling.style.display)break;this.selectNextNode()}k=this.domNode.scrollTop;
a+=(k-c)*(b?-1:1);c=k}},handleKey:function(b){switch(b.keyCode){case r.DOWN_ARROW:return this.selectNextNode(),!1;case r.PAGE_DOWN:return this._page(!1),!1;case r.UP_ARROW:return this.selectPreviousNode(),!1;case r.PAGE_UP:return this._page(!0),!1;default:return!0}}})})},"dijit/form/_ComboBoxMenuMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/has dojo/i18n dojo/i18n!./nls/ComboBox".split(" "),function(u,A,x,r,h){var e=A("dijit.form._ComboBoxMenuMixin"+(r("dojo-bidi")?
"_NoBidi":""),null,{_messages:null,postMixInProperties:function(){this.inherited(arguments);this._messages=h.getLocalization("dijit.form","ComboBox",this.lang)},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages.previousMessage;this.nextButton.innerHTML=this._messages.nextMessage},_setValueAttr:function(g){this._set("value",g);this.onChange(g)},onClick:function(g){if(g==this.previousButton)this._setSelectedAttr(null),this.onPage(-1);else if(g==this.nextButton)this._setSelectedAttr(null),
this.onPage(1);else this.onChange(g)},onChange:function(){},onPage:function(){},onClose:function(){this._setSelectedAttr(null)},_createOption:function(g,d){var b=this._createMenuItem(),a=d(g);a.html?b.innerHTML=a.label:b.appendChild(b.ownerDocument.createTextNode(a.label));""==b.innerHTML&&(b.innerHTML="\x26#160;");return b},createOptions:function(g,d,b){this.items=g;this.previousButton.style.display=0==d.start?"none":"";x.set(this.previousButton,"id",this.id+"_prev");u.forEach(g,function(c,f){var k=
this._createOption(c,b);k.setAttribute("item",f);x.set(k,"id",this.id+f);this.nextButton.parentNode.insertBefore(k,this.nextButton)},this);var a=!1;g.total&&!g.total.then&&-1!=g.total?d.start+d.count<g.total?a=!0:d.start+d.count>g.total&&d.count==g.length&&(a=!0):d.count==g.length&&(a=!0);this.nextButton.style.display=a?"":"none";x.set(this.nextButton,"id",this.id+"_next")},clearResultList:function(){for(var g=this.containerNode;2<g.childNodes.length;)g.removeChild(g.childNodes[g.childNodes.length-
2]);this._setSelectedAttr(null)},highlightFirstOption:function(){this.selectFirstNode()},highlightLastOption:function(){this.selectLastNode()},selectFirstNode:function(){this.inherited(arguments);this.getHighlightedOption()==this.previousButton&&this.selectNextNode()},selectLastNode:function(){this.inherited(arguments);this.getHighlightedOption()==this.nextButton&&this.selectPreviousNode()},getHighlightedOption:function(){return this.selected}});r("dojo-bidi")&&(e=A("dijit.form._ComboBoxMenuMixin",
e,{_createOption:function(){var g=this.inherited(arguments);this.applyTextDir(g);return g}}));return e})},"dijit/form/_ListMouseMixin":function(){define(["dojo/_base/declare","dojo/on","dojo/touch","./_ListBase"],function(u,A,x,r){return u("dijit.form._ListMouseMixin",r,{postCreate:function(){this.inherited(arguments);this.domNode.dojoClick=!0;this._listConnect("click","_onClick");this._listConnect("mousedown","_onMouseDown");this._listConnect("mouseup","_onMouseUp");this._listConnect("mouseover",
"_onMouseOver");this._listConnect("mouseout","_onMouseOut")},_onClick:function(h,e){this._setSelectedAttr(e,!1);this._deferredClick&&this._deferredClick.remove();this._deferredClick=this.defer(function(){this._deferredClick=null;this.onClick(e)})},_onMouseDown:function(h,e){this._hoveredNode&&(this.onUnhover(this._hoveredNode),this._hoveredNode=null);this._isDragging=!0;this._setSelectedAttr(e,!1)},_onMouseUp:function(h,e){this._isDragging=!1;var g=this.selected,d=this._hoveredNode;g&&e==g?this.defer(function(){this._onClick(h,
g)}):d&&this.defer(function(){this._onClick(h,d)})},_onMouseOut:function(h,e){this._hoveredNode&&(this.onUnhover(this._hoveredNode),this._hoveredNode=null);this._isDragging&&(this._cancelDrag=(new Date).getTime()+1E3)},_onMouseOver:function(h,e){this._cancelDrag&&((new Date).getTime()>this._cancelDrag&&(this._isDragging=!1),this._cancelDrag=null);this._hoveredNode=e;this.onHover(e);this._isDragging&&this._setSelectedAttr(e,!1)}})})},"dijit/form/_ListBase":function(){define(["dojo/_base/declare","dojo/on",
"dojo/window"],function(u,A,x){return u("dijit.form._ListBase",null,{selected:null,_listConnect:function(r,h){var e=this;return e.own(A(e.containerNode,A.selector(function(g,d,b){return g.parentNode==b},r),function(g){e[h](g,this)}))},selectFirstNode:function(){for(var r=this.containerNode.firstChild;r&&"none"==r.style.display;)r=r.nextSibling;this._setSelectedAttr(r,!0)},selectLastNode:function(){for(var r=this.containerNode.lastChild;r&&"none"==r.style.display;)r=r.previousSibling;this._setSelectedAttr(r,
!0)},selectNextNode:function(){var r=this.selected;if(r){for(r=r.nextSibling;r&&"none"==r.style.display;)r=r.nextSibling;r?this._setSelectedAttr(r,!0):this.selectFirstNode()}else this.selectFirstNode()},selectPreviousNode:function(){var r=this.selected;if(r){for(r=r.previousSibling;r&&"none"==r.style.display;)r=r.previousSibling;r?this._setSelectedAttr(r,!0):this.selectLastNode()}else this.selectLastNode()},_setSelectedAttr:function(r,h){if(this.selected!=r){var e=this.selected;if(e)this.onDeselect(e);
r&&(h&&x.scrollIntoView(r),this.onSelect(r));this._set("selected",r)}else if(r)this.onSelect(r)}})})},"dijit/form/CheckBox":function(){define("require dojo/_base/declare dojo/dom-attr dojo/has dojo/query dojo/ready ./ToggleButton ./_CheckBoxMixin dojo/text!./templates/CheckBox.html dojo/NodeList-dom ../a11yclick".split(" "),function(u,A,x,r,h,e,g,d,b){r("dijit-legacy-requires")&&e(0,function(){u(["dijit/form/RadioButton"])});return A("dijit.form.CheckBox",[g,d],{templateString:b,baseClass:"dijitCheckBox",
_setValueAttr:function(a,c){"string"==typeof a&&(this.inherited(arguments),a=!0);this._created&&this.set("checked",a,c)},_getValueAttr:function(){return this.checked&&this._get("value")},_setIconClassAttr:null,_setNameAttr:"focusNode",postMixInProperties:function(){this.inherited(arguments);this.checkedAttrSetting=""},_fillContent:function(){},_onFocus:function(){this.id&&h("label[for\x3d'"+this.id+"']").addClass("dijitFocusedLabel");this.inherited(arguments)},_onBlur:function(){this.id&&h("label[for\x3d'"+
this.id+"']").removeClass("dijitFocusedLabel");this.inherited(arguments)}})})},"dijit/form/ToggleButton":function(){define(["dojo/_base/declare","dojo/_base/kernel","./Button","./_ToggleButtonMixin"],function(u,A,x,r){return u("dijit.form.ToggleButton",[x,r],{baseClass:"dijitToggleButton",setChecked:function(h){A.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(u,A){return u("dijit.form._ToggleButtonMixin",null,{checked:!1,_aria_attr:"aria-pressed",_onClick:function(x){var r=this.checked;this._set("checked",!r);var h=this.inherited(arguments);this.set("checked",h?this.checked:r);return h},_setCheckedAttr:function(x,r){this._set("checked",x);var h=this.focusNode||this.domNode;this._created&&A.get(h,"checked")!=!!x&&A.set(h,"checked",!!x);h.setAttribute(this._aria_attr,String(x));this._handleOnChange(x,r)},postCreate:function(){this.inherited(arguments);
var x=this.focusNode||this.domNode;this.checked&&x.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/form/_CheckBoxMixin":function(){define(["dojo/_base/declare","dojo/dom-attr"],function(u,A){return u("dijit.form._CheckBoxMixin",null,{type:"checkbox",value:"on",readOnly:!1,_aria_attr:"aria-checked",_setReadOnlyAttr:function(x){this._set("readOnly",
x);A.set(this.focusNode,"readOnly",x)},_setLabelAttr:void 0,_getSubmitValue:function(x){return null==x||""===x?"on":x},_setValueAttr:function(x){x=this._getSubmitValue(x);this._set("value",x);A.set(this.focusNode,"value",x)},reset:function(){this.inherited(arguments);this._set("value",this._getSubmitValue(this.params.value));A.set(this.focusNode,"value",this.value)},_onClick:function(x){return this.readOnly?(x.stopPropagation(),x.preventDefault(),!1):this.inherited(arguments)}})})},"dojo/NodeList-dom":function(){define("./_base/kernel ./query ./_base/array ./_base/lang ./dom-class ./dom-construct ./dom-geometry ./dom-attr ./dom-style".split(" "),
function(u,A,x,r,h,e,g,d,b){function a(n){return function(q,w,t){return 2==arguments.length?n["string"==typeof w?"get":"set"](q,w):n.set(q,w,t)}}var c=function(n){return 1==n.length&&"string"==typeof n[0]},f=function(n){var q=n.parentNode;q&&q.removeChild(n)},k=A.NodeList,m=k._adaptWithCondition,p=k._adaptAsForEach,l=k._adaptAsMap;r.extend(k,{_normalize:function(n,q){var w=!0===n.parse;if("string"==typeof n.template){var t=n.templateFunc||u.string&&u.string.substitute;n=t?t(n.template,n):n}t=typeof n;
"string"==t||"number"==t?(n=e.toDom(n,q&&q.ownerDocument),n=11==n.nodeType?r._toArray(n.childNodes):[n]):r.isArrayLike(n)?r.isArray(n)||(n=r._toArray(n)):n=[n];w&&(n._runParse=!0);return n},_cloneNode:function(n){return n.cloneNode(!0)},_place:function(n,q,w,t){if(1==q.nodeType||"only"!=w)for(var v,y=n.length,z=y-1;0<=z;z--){var C=t?this._cloneNode(n[z]):n[z];if(n._runParse&&u.parser&&u.parser.parse)for(v||(v=q.ownerDocument.createElement("div")),v.appendChild(C),u.parser.parse(v),C=v.firstChild;v.firstChild;)v.removeChild(v.firstChild);
z==y-1?e.place(C,q,w):q.parentNode.insertBefore(C,q);q=C}},position:l(g.position),attr:m(a(d),c),style:m(a(b),c),addClass:p(h.add),removeClass:p(h.remove),toggleClass:p(h.toggle),replaceClass:p(h.replace),empty:p(e.empty),removeAttr:p(d.remove),marginBox:l(g.getMarginBox),place:function(n,q){var w=A(n)[0];return this.forEach(function(t){e.place(t,w,q)})},orphan:function(n){return(n?A._filterResult(this,n):this).forEach(f)},adopt:function(n,q){return A(n).place(this[0],q)._stash(this)},query:function(n){if(!n)return this;
var q=new k;this.map(function(w){A(n,w).forEach(function(t){void 0!==t&&q.push(t)})});return q._stash(this)},filter:function(n){var q=arguments,w=this,t=0;if("string"==typeof n){w=A._filterResult(this,q[0]);if(1==q.length)return w._stash(this);t=1}return this._wrap(x.filter(w,q[t],q[t+1]),this)},addContent:function(n,q){n=this._normalize(n,this[0]);for(var w=0,t;t=this[w];w++)n.length?this._place(n,t,q,0<w):e.empty(t);return this}});return k})},"dijit/form/Form":function(){define("dojo/_base/declare dojo/dom-attr dojo/_base/kernel dojo/sniff ../_Widget ../_TemplatedMixin ./_FormMixin ../layout/_ContentPaneResizeMixin".split(" "),
function(u,A,x,r,h,e,g,d){return u("dijit.form.Form",[h,e,g,d],{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(b){A.set(this.domNode,
"encType",b);r("ie")&&(this.domNode.encoding=b);this._set("encType",b)},reset:function(b){var a={returnValue:!0,preventDefault:function(){this.returnValue=!1},stopPropagation:function(){},currentTarget:b?b.target:this.domNode,target:b?b.target:this.domNode};!1!==this.onReset(a)&&a.returnValue&&this.inherited(arguments,[])},onReset:function(){return!0},_onReset:function(b){this.reset(b);b.stopPropagation();b.preventDefault();return!1},_onSubmit:function(b){var a=this.constructor.prototype;if(this.execute!=
a.execute||this.onExecute!=a.onExecute)x.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0"),this.onExecute(),this.execute(this.getValues());!1===this.onSubmit(b)&&(b.stopPropagation(),b.preventDefault())},onSubmit:function(){return this.isValid()},submit:function(){!1!==this.onSubmit()&&this.containerNode.submit()}})})},"dijit/form/_FormMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/on dojo/window".split(" "),
function(u,A,x,r,h,e){return A("dijit.form._FormMixin",null,{state:"",_getDescendantFormWidgets:function(g){var d=[];u.forEach(g||this.getChildren(),function(b){"value"in b?d.push(b):d=d.concat(this._getDescendantFormWidgets(b.getChildren()))},this);return d},reset:function(){u.forEach(this._getDescendantFormWidgets(),function(g){g.reset&&g.reset()})},validate:function(){var g=!1;return u.every(u.map(this._getDescendantFormWidgets(),function(d){d._hasBeenBlurred=!0;var b=d.disabled||!d.validate||
d.validate();b||g||(e.scrollIntoView(d.containerNode||d.domNode),d.focus(),g=!0);return b}),function(d){return d})},setValues:function(g){x.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",g)},_setValueAttr:function(g){var d={};u.forEach(this._getDescendantFormWidgets(),function(f){f.name&&(d[f.name]||(d[f.name]=[])).push(f)});for(var b in d)if(d.hasOwnProperty(b)){var a=d[b],c=r.getObject(b,!1,g);void 0!==c&&(c=[].concat(c),
"boolean"==typeof a[0].checked?u.forEach(a,function(f){f.set("value",-1!=u.indexOf(c,f._get("value")))}):a[0].multiple?a[0].set("value",c):u.forEach(a,function(f,k){f.set("value",c[k])}))}},getValues:function(){x.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var g={};u.forEach(this._getDescendantFormWidgets(),function(d){var b=d.name;if(b&&!d.disabled){var a=d.get("value");"boolean"==typeof d.checked?
/Radio/.test(d.declaredClass)?!1!==a?r.setObject(b,a,g):(a=r.getObject(b,!1,g),void 0===a&&r.setObject(b,null,g)):(d=r.getObject(b,!1,g),d||(d=[],r.setObject(b,d,g)),!1!==a&&d.push(a)):(d=r.getObject(b,!1,g),"undefined"!=typeof d?r.isArray(d)?d.push(a):r.setObject(b,[d,a],g):r.setObject(b,a,g))}});return g},isValid:function(){return""==this.state},onValidStateChange:function(){},_getState:function(){var g=u.map(this._descendants,function(d){return d.get("state")||""});return 0<=u.indexOf(g,"Error")?
"Error":0<=u.indexOf(g,"Incomplete")?"Incomplete":""},disconnectChildren:function(){},connectChildren:function(g){this._descendants=this._getDescendantFormWidgets();u.forEach(this._descendants,function(d){d._started||d.startup()});g||this._onChildChange()},_onChildChange:function(g){g&&"state"!=g&&"disabled"!=g||this._set("state",this._getState());g&&"value"!=g&&"disabled"!=g&&"checked"!=g||(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 g=this;this.own(h(this.containerNode,"attrmodified-state, attrmodified-disabled, attrmodified-value, attrmodified-checked",function(d){d.target!=g.domNode&&g._onChildChange(d.type.replace("attrmodified-",""))}));this.watch("state",function(d,b,a){this.onValidStateChange(""==a)})},destroy:function(){this.inherited(arguments)}})})},
"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(u,A,x,r,h,e,g,d,b,a){return A("dijit.layout._ContentPaneResizeMixin",null,{doLayout:!0,isLayoutContainer:!0,startup:function(){if(!this._started){var c=this.getParent();this._childOfLayoutWidget=c&&c.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);
this._isShown()&&this._onShow();this._childOfLayoutWidget||this.own(b.on("resize",e.hitch(this,"resize")))}},_checkIfSingleChild:function(){if(this.doLayout){var c=[],f=!1;g("\x3e *",this.containerNode).some(function(k){var m=d.byNode(k);m&&m.resize?c.push(m):!/script|link|style/i.test(k.nodeName)&&k.offsetHeight&&(f=!0)});this._singleChild=1!=c.length||f?null:c[0];x.toggle(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)}},resize:function(c,f){this._resizeCalled=!0;this._scheduleLayout(c,
f)},_scheduleLayout:function(c,f){this._isShown()?this._layout(c,f):(this._needLayout=!0,this._changeSize=c,this._resultSize=f)},_layout:function(c,f){delete this._needLayout;this._wasShown||!1===this.open||this._onShow();c&&r.setMarginBox(this.domNode,c);var k=this.containerNode;if(k===this.domNode){var m=f||{};e.mixin(m,c||{});"h"in m&&"w"in m||(m=e.mixin(r.getMarginBox(k),m));this._contentBox=a.marginBox2contentBox(k,m)}else this._contentBox=r.getContentBox(k);this._layoutChildren()},_layoutChildren:function(){this._checkIfSingleChild();
if(this._singleChild&&this._singleChild.resize){var c=this._contentBox||r.getContentBox(this.containerNode);this._singleChild.resize({w:c.w,h:c.h})}else{c=this.getChildren();for(var f,k=0;f=c[k++];)f.resize&&f.resize()}},_isShown:function(){if(this._childOfLayoutWidget)return this._resizeCalled&&"open"in this?this.open:this._resizeCalled;if("open"in this)return this.open;var c=this.domNode,f=this.domNode.parentNode;return"none"!=c.style.display&&"hidden"!=c.style.visibility&&!x.contains(c,"dijitHidden")&&
f&&f.style&&"none"!=f.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(u,A,x,r,h){function e(d,b){var a=d.resize?d.resize(b):x.setMarginBox(d.domNode,b);a?h.mixin(d,a):(h.mixin(d,x.getMarginBox(d.domNode)),h.mixin(d,b))}var g={marginBox2contentBox:function(d,
b){var a=r.getComputedStyle(d),c=x.getMarginExtents(d,a),f=x.getPadBorderExtents(d,a);return{l:r.toPixelValue(d,a.paddingLeft),t:r.toPixelValue(d,a.paddingTop),w:b.w-(c.w+f.w),h:b.h-(c.h+f.h)}},layoutChildren:function(d,b,a,c,f){b=h.mixin({},b);A.add(d,"dijitLayoutContainer");a=u.filter(a,function(k){return"center"!=k.region&&"client"!=k.layoutAlign}).concat(u.filter(a,function(k){return"center"==k.region||"client"==k.layoutAlign}));u.forEach(a,function(k){var m=k.domNode,p=k.region||k.layoutAlign;
if(!p)throw Error("No region setting for "+k.id);var l=m.style;l.left=b.l+"px";l.top=b.t+"px";l.position="absolute";var n=A.add;var q=p;q=q.substring(0,1).toUpperCase()+q.substring(1);n.call(A,m,"dijitAlign"+q);m={};c&&c==k.id&&(m["top"==k.region||"bottom"==k.region?"h":"w"]=f);"leading"==p&&(p=k.isLeftToRight()?"left":"right");"trailing"==p&&(p=k.isLeftToRight()?"right":"left");"top"==p||"bottom"==p?(m.w=b.w,e(k,m),b.h-=k.h,"top"==p?b.t+=k.h:l.top=b.t+b.h+"px"):"left"==p||"right"==p?(m.h=b.h,e(k,
m),b.w-=k.w,"left"==p?b.l+=k.w:l.left=b.l+b.w+"px"):"client"!=p&&"center"!=p||e(k,b)})}};h.setObject("dijit.layout.utils",g);return g})},"dijit/form/RadioButton":function(){define(["dojo/_base/declare","./CheckBox","./_RadioButtonMixin"],function(u,A,x){return u("dijit.form.RadioButton",[A,x],{baseClass:"dijitRadio"})})},"dijit/form/_RadioButtonMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/_base/lang dojo/query!css2 ../registry".split(" "),function(u,A,x,r,h,e){return A("dijit.form._RadioButtonMixin",
null,{type:"radio",_getRelatedWidgets:function(){var g=[];h("input[type\x3dradio]",this.focusNode.form||this.ownerDocument).forEach(r.hitch(this,function(d){d.name==this.name&&d.form==this.focusNode.form&&(d=e.getEnclosingWidget(d))&&g.push(d)}));return g},_setCheckedAttr:function(g){this.inherited(arguments);this._created&&g&&u.forEach(this._getRelatedWidgets(),r.hitch(this,function(d){d!=this&&d.checked&&d.set("checked",!1)}))},_getSubmitValue:function(g){return null==g?"on":g},_onClick:function(g){if(this.checked||
this.disabled)return g.stopPropagation(),g.preventDefault(),!1;if(this.readOnly)return g.stopPropagation(),g.preventDefault(),u.forEach(this._getRelatedWidgets(),r.hitch(this,function(a){x.set(this.focusNode||this.domNode,"checked",a.checked)})),!1;var d=!1,b;u.some(this._getRelatedWidgets(),function(a){return a.checked?(b=a,!0):!1});this.checked=!0;b&&(b.checked=!1);if(!1===this.onClick(g)||g.defaultPrevented)d=!0;this.checked=!1;b&&(b.checked=!0);d?g.preventDefault():this.set("checked",!0);return!d}})})},
"dijit/form/Textarea":function(){define(["dojo/_base/declare","dojo/dom-style","./_ExpandingTextAreaMixin","./SimpleTextarea"],function(u,A,x,r){return u("dijit.form.Textarea",[r,x],{baseClass:"dijitTextBox dijitTextArea dijitExpandingTextArea",cols:"",buildRendering:function(){this.inherited(arguments);A.set(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"})}})})},"dijit/form/_ExpandingTextAreaMixin":function(){define("dojo/_base/declare dojo/dom-construct dojo/has dojo/_base/lang dojo/on dojo/_base/window ../Viewport".split(" "),
function(u,A,x,r,h,e,g){x.add("textarea-needs-help-shrinking",function(){var d=e.body(),b=A.create("textarea",{rows:"5",cols:"20",value:" ",style:{zoom:1,fontSize:"12px",height:"96px",overflow:"hidden",visibility:"hidden",position:"absolute",border:"5px solid white",margin:"0",padding:"0",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"}},d,"last"),a=b.scrollHeight>=b.clientHeight;d.removeChild(b);return a});return u("dijit.form._ExpandingTextAreaMixin",
null,{_setValueAttr:function(){this.inherited(arguments);this.resize()},postCreate:function(){this.inherited(arguments);var d=this.textbox;d.style.overflowY="hidden";this.own(h(d,"focus, resize",r.hitch(this,"_resizeLater")))},startup:function(){this.inherited(arguments);this.own(g.on("resize",r.hitch(this,"_resizeLater")));this._resizeLater()},_onInput:function(d){this.inherited(arguments);this.resize()},_estimateHeight:function(){var d=this.textbox;d.rows=(d.value.match(/\n/g)||[]).length+1},_resizeLater:function(){this.defer("resize")},
resize:function(){function d(){var l=!1;""===b.value&&(b.value=" ",l=!0);var n=b.scrollHeight;l&&(b.value="");return n}var b=this.textbox;"hidden"==b.style.overflowY&&(b.scrollTop=0);if(!this.busyResizing){this.busyResizing=!0;if(d()||b.offsetHeight){var a=d()+Math.max(b.offsetHeight-b.clientHeight,0),c=a+"px";c!=b.style.height&&(b.style.height=c,b.rows=1);if(x("textarea-needs-help-shrinking")){var f=d(),k=b.style.minHeight,m=4,p=b.scrollTop;b.style.minHeight=c;for(b.style.height="auto";0<a;){b.style.minHeight=
Math.max(a-m,4)+"px";c=d();f-=c;a-=f;if(f<m)break;f=c;m<<=1}b.style.height=a+"px";b.style.minHeight=k;b.scrollTop=p}b.style.overflowY=d()>b.clientHeight?"auto":"hidden";"hidden"==b.style.overflowY&&(b.scrollTop=0)}else this._estimateHeight();this.busyResizing=!1}}})})},"dijit/form/SimpleTextarea":function(){define(["dojo/_base/declare","dojo/dom-class","dojo/sniff","./TextBox"],function(u,A,x,r){return u("dijit.form.SimpleTextarea",r,{baseClass:"dijitTextBox dijitTextArea",rows:"3",cols:"20",templateString:"\x3ctextarea ${!nameAttrSetting} data-dojo-attach-point\x3d'focusNode,containerNode,textbox' autocomplete\x3d'off'\x3e\x3c/textarea\x3e",
postMixInProperties:function(){!this.value&&this.srcNodeRef&&(this.value=this.srcNodeRef.value);this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);x("ie")&&this.cols&&A.add(this.textbox,"dijitTextAreaCols")},filter:function(h){h&&(h=h.replace(/\r/g,""));return this.inherited(arguments)},_onInput:function(h){if(this.maxLength){var e=parseInt(this.maxLength),g=this.textbox.value.replace(/\r/g,"");e=g.length-e;if(0<e){var d=this.textbox;if(d.selectionStart){var b=d.selectionStart,
a=0;x("opera")&&(a=(this.textbox.value.substring(0,b).match(/\r/g)||[]).length);this.textbox.value=g.substring(0,b-e-a)+g.substring(b-a);d.setSelectionRange(b-e,b-e)}else this.ownerDocument.selection&&(d.focus(),g=this.ownerDocument.selection.createRange(),g.moveStart("character",-e),g.text="",g.select())}}this.inherited(arguments)}})})},"dijit/form/DateTextBox":function(){define(["dojo/_base/declare","../Calendar","./_DateTimeTextBox"],function(u,A,x){return u("dijit.form.DateTextBox",x,{baseClass:"dijitTextBox dijitComboBox dijitDateTextBox",
popupClass:A,_selector:"date",maxHeight:Infinity,value:new Date("")})})},"dijit/Calendar":function(){define("dojo/_base/array dojo/date dojo/date/locale dojo/_base/declare dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/sniff ./CalendarLite ./_Widget ./_CssStateMixin ./_TemplatedMixin ./form/DropDownButton".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n){var q=r("dijit.Calendar",[k,m,p],{baseClass:"dijitCalendar",cssStateNodes:{decrementMonth:"dijitCalendarArrow",
incrementMonth:"dijitCalendarArrow",previousYearLabelNode:"dijitCalendarPreviousYear",nextYearLabelNode:"dijitCalendarNextYear"},setValue:function(w){d.deprecated("dijit.Calendar:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");this.set("value",w)},_createMonthWidget:function(){return new q._MonthDropDownButton({id:this.id+"_mddb",tabIndex:-1,onMonthSelect:a.hitch(this,"_onMonthSelect"),lang:this.lang,dateLocaleModule:this.dateLocaleModule},this.monthNode)},postCreate:function(){this.inherited(arguments);
this.own(c(this.domNode,"keydown",a.hitch(this,"_onKeyDown")),c(this.dateRowsNode,"mouseover",a.hitch(this,"_onDayMouseOver")),c(this.dateRowsNode,"mouseout",a.hitch(this,"_onDayMouseOut")),c(this.dateRowsNode,"mousedown",a.hitch(this,"_onDayMouseDown")),c(this.dateRowsNode,"mouseup",a.hitch(this,"_onDayMouseUp")))},_onMonthSelect:function(w){var t=new this.dateClassObj(this.currentFocus);t.setDate(1);t.setMonth(w);w=this.dateModule.getDaysInMonth(t);var v=this.currentFocus.getDate();t.setDate(Math.min(v,
w));this._setCurrentFocusAttr(t)},_onDayMouseOver:function(w){(w=e.contains(w.target,"dijitCalendarDateLabel")?w.target.parentNode:w.target)&&(w.dijitDateValue&&!e.contains(w,"dijitCalendarDisabledDate")||w==this.previousYearLabelNode||w==this.nextYearLabelNode)&&(e.add(w,"dijitCalendarHoveredDate"),this._currentNode=w)},_onDayMouseOut:function(w){!this._currentNode||w.relatedTarget&&w.relatedTarget.parentNode==this._currentNode||(w="dijitCalendarHoveredDate",e.contains(this._currentNode,"dijitCalendarActiveDate")&&
(w+=" dijitCalendarActiveDate"),e.remove(this._currentNode,w),this._currentNode=null)},_onDayMouseDown:function(w){(w=w.target.parentNode)&&w.dijitDateValue&&!e.contains(w,"dijitCalendarDisabledDate")&&(e.add(w,"dijitCalendarActiveDate"),this._currentNode=w)},_onDayMouseUp:function(w){(w=w.target.parentNode)&&w.dijitDateValue&&e.remove(w,"dijitCalendarActiveDate")},handleKey:function(w){var t=-1,v=this.currentFocus;switch(w.keyCode){case b.RIGHT_ARROW:t=1;case b.LEFT_ARROW:var y="day";this.isLeftToRight()||
(t*=-1);break;case b.DOWN_ARROW:t=1;case b.UP_ARROW:y="week";break;case b.PAGE_DOWN:t=1;case b.PAGE_UP:y=w.ctrlKey||w.altKey?"year":"month";break;case b.END:v=this.dateModule.add(v,"month",1),y="day";case b.HOME:v=new this.dateClassObj(v);v.setDate(1);break;default:return!0}y&&(v=this.dateModule.add(v,y,t));this._setCurrentFocusAttr(v);return!1},_onKeyDown:function(w){this.handleKey(w)||(w.stopPropagation(),w.preventDefault())},onValueSelected:function(){},onChange:function(w){this.onValueSelected(w)},
getClassForDate:function(){}});q._MonthDropDownButton=r("dijit.Calendar._MonthDropDownButton",n,{onMonthSelect:function(){},postCreate:function(){this.inherited(arguments);this.dropDown=new q._MonthDropDown({id:this.id+"_mdd",onChange:this.onMonthSelect})},_setMonthAttr:function(w){var t=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,w);this.dropDown.set("months",t);this.containerNode.innerHTML=(6==f("ie")?"":"\x3cdiv class\x3d'dijitSpacer'\x3e"+this.dropDown.domNode.innerHTML+
"\x3c/div\x3e")+"\x3cdiv class\x3d'dijitCalendarMonthLabel dijitCalendarCurrentMonthLabel'\x3e"+t[w.getMonth()]+"\x3c/div\x3e"}});q._MonthDropDown=r("dijit.Calendar._MonthDropDown",[m,l,p],{months:[],baseClass:"dijitCalendarMonthMenu dijitMenu",templateString:"\x3cdiv data-dojo-attach-event\x3d'ondijitclick:_onClick'\x3e\x3c/div\x3e",_setMonthsAttr:function(w){this.domNode.innerHTML="";u.forEach(w,function(t,v){g.create("div",{className:"dijitCalendarMonthLabel",month:v,innerHTML:t},this.domNode)._cssState=
"dijitCalendarMonthLabel"},this)},_onClick:function(w){this.onChange(h.get(w.target,"month"))},onChange:function(){}});return q})},"dojo/date":function(){define(["./has","./_base/lang"],function(u,A){var x={getDaysInMonth:function(r){var h=r.getMonth();return 1==h&&x.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(),e="",g=h.indexOf("(");if(-1<g)e=h.substring(++g,h.indexOf(")"));
else if(g=/([A-Z\/]+) \d{4}$/,h=h.match(g))e=h[1];else if(h=r.toLocaleString(),g=/ ([A-Z\/]+)$/,h=h.match(g))e=h[1];return"AM"==e||"PM"==e?"":e},compare:function(r,h,e){r=new Date(+r);h=new Date(+(h||new Date));"date"==e?(r.setHours(0,0,0,0),h.setHours(0,0,0,0)):"time"==e&&(r.setFullYear(0,0,0),h.setFullYear(0,0,0));return r>h?1:r<h?-1:0},add:function(r,h,e){var g=new Date(+r),d=!1,b="Date";switch(h){case "day":break;case "weekday":if(h=e%5)var a=parseInt(e/5);else h=0<e?5:-5,a=0<e?(e-5)/5:(e+5)/
5;var c=r.getDay(),f=0;6==c&&0<e?f=1:0==c&&0>e&&(f=-1);c+=h;if(0==c||6==c)f=0<e?2:-2;e=7*a+h+f;break;case "year":b="FullYear";d=!0;break;case "week":e*=7;break;case "quarter":e*=3;case "month":d=!0;b="Month";break;default:b="UTC"+h.charAt(0).toUpperCase()+h.substring(1)+"s"}if(b)g["set"+b](g["get"+b]()+e);d&&g.getDate()<r.getDate()&&g.setDate(0);return g},difference:function(r,h,e){h=h||new Date;e=e||"day";var g=h.getFullYear()-r.getFullYear(),d=1;switch(e){case "quarter":r=r.getMonth();h=h.getMonth();
d=Math.floor(h/3)+1+4*g-(Math.floor(r/3)+1);break;case "weekday":g=Math.round(x.difference(r,h,"day"));e=parseInt(x.difference(r,h,"week"));if(0==g%7)g=5*e;else{d=0;var b=r.getDay(),a=h.getDay();e=parseInt(g/7);h=g%7;r=new Date(r);r.setDate(r.getDate()+7*e);r=r.getDay();if(0<g)switch(!0){case 6==b:d=-1;break;case 0==b:d=0;break;case 6==a:d=-1;break;case 0==a:d=-2;break;case 5<r+h:d=-2}else if(0>g)switch(!0){case 6==b:d=0;break;case 0==b:d=1;break;case 6==a:d=2;break;case 0==a:d=1;break;case 0>r+h:d=
2}g=g+d-2*e}d=g;break;case "year":d=g;break;case "month":d=h.getMonth()-r.getMonth()+12*g;break;case "week":d=parseInt(x.difference(r,h,"day")/7);break;case "day":d/=24;case "hour":d/=60;case "minute":d/=60;case "second":d/=1E3;case "millisecond":d*=h.getTime()-r.getTime()}return Math.round(d)}};A.mixin(A.getObject("dojo.date",!0),x);return x})},"dojo/date/locale":function(){define("../_base/lang ../_base/array ../date ../cldr/supplemental ../i18n ../regexp ../string ../i18n!../cldr/nls/gregorian module".split(" "),
function(u,A,x,r,h,e,g,d,b){function a(n,q,w,t){return t.replace(/([a-z])\1*/ig,function(v){var y=v.charAt(0);v=v.length;var z=["abbr","wide","narrow"];switch(y){case "G":var C=q[4>v?"eraAbbr":"eraNames"][0>n.getFullYear()?0:1];break;case "y":C=n.getFullYear();switch(v){case 1:break;case 2:if(!w.fullYear){C=String(C);C=C.substr(C.length-2);break}default:var G=!0}break;case "Q":case "q":C=Math.ceil((n.getMonth()+1)/3);G=!0;break;case "M":case "L":C=n.getMonth();3>v?(C+=1,G=!0):(y=["months","L"==y?
"standAlone":"format",z[v-3]].join("-"),C=q[y][C]);break;case "w":C=k._getWeekOfYear(n,0);G=!0;break;case "d":C=n.getDate();G=!0;break;case "D":C=k._getDayOfYear(n);G=!0;break;case "e":case "c":if(C=n.getDay(),2>v){C=(C-r.getFirstDayOfWeek(w.locale)+8)%7;break}case "E":C=n.getDay();3>v?(C+=1,G=!0):(y=["days","c"==y?"standAlone":"format",z[v-3]].join("-"),C=q[y][C]);break;case "a":y=12>n.getHours()?"am":"pm";C=w[y]||q["dayPeriods-format-wide-"+y];break;case "h":case "H":case "K":case "k":G=n.getHours();
switch(y){case "h":C=G%12||12;break;case "H":C=G;break;case "K":C=G%12;break;case "k":C=G||24}G=!0;break;case "m":C=n.getMinutes();G=!0;break;case "s":C=n.getSeconds();G=!0;break;case "S":C=Math.round(n.getMilliseconds()*Math.pow(10,v-3));G=!0;break;case "v":case "z":if(C=k._getZone(n,!0,w))break;v=4;case "Z":y=k._getZone(n,!1,w);y=[0>=y?"+":"-",g.pad(Math.floor(Math.abs(y)/60),2),g.pad(Math.abs(y)%60,2)];4==v&&(y.splice(0,0,"GMT"),y.splice(3,0,":"));C=y.join("");break;default:throw Error("dojo.date.locale.format: invalid pattern char: "+
t);}G&&(C=g.pad(C,v));return C})}function c(n,q,w,t){var v=function(C){return C};q=q||v;w=w||v;t=t||v;var y=n.match(/(''|[^'])+/g),z="'"==n.charAt(0);A.forEach(y,function(C,G){C?(y[G]=(z?w:q)(C.replace(/''/g,"'")),z=!z):y[G]=""});return t(y.join(""))}function f(n,q,w,t){t=e.escapeString(t);w.strict||(t=t.replace(" a"," ?a"));return t.replace(/([a-z])\1*/ig,function(v){var y=v.charAt(0);var z=v.length,C="",G="";w.strict?(1<z&&(C="0{"+(z-1)+"}"),2<z&&(G="0{"+(z-2)+"}")):(C="0?",G="0{0,2}");switch(y){case "y":y=
"\\d{2,4}";break;case "M":case "L":2<z?(y=q["months-"+("L"==y?"standAlone":"format")+"-"+m[z-3]].slice(0).join("|"),w.strict||(y=y.replace(/\./g,""),y="(?:"+y+")\\.?")):y="1[0-2]|"+C+"[1-9]";break;case "D":y="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+C+"[1-9][0-9]|"+G+"[1-9]";break;case "d":y="3[01]|[12]\\d|"+C+"[1-9]";break;case "w":y="[1-4][0-9]|5[0-3]|"+C+"[1-9]";break;case "E":case "e":case "c":y=".+?";break;case "h":y="1[0-2]|"+C+"[1-9]";break;case "k":y="1[01]|"+C+"\\d";break;case "H":y="1\\d|2[0-3]|"+
C+"\\d";break;case "K":y="1\\d|2[0-4]|"+C+"[1-9]";break;case "m":case "s":y="[0-5]\\d";break;case "S":y="\\d{"+z+"}";break;case "a":z=w.am||q["dayPeriods-format-wide-am"];C=w.pm||q["dayPeriods-format-wide-pm"];y=z+"|"+C;w.strict||(z!=z.toLowerCase()&&(y+="|"+z.toLowerCase()),C!=C.toLowerCase()&&(y+="|"+C.toLowerCase()),-1!=y.indexOf(".")&&(y+="|"+y.replace(/\./g,"")));y=y.replace(/\./g,"\\.");break;default:y=".*"}n&&n.push(v);return"("+y+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}var k={};u.setObject(b.id.replace(/\//g,
"."),k);k._getZone=function(n,q,w){return q?x.getTimezoneName(n):n.getTimezoneOffset()};k.format=function(n,q){q=q||{};var w=h.normalizeLocale(q.locale),t=q.formatLength||"short";w=k._getGregorianBundle(w);var v=[],y=u.hitch(this,a,n,w,q);if("year"==q.selector)return c(w["dateFormatItem-yyyy"]||"yyyy",y);var z;"date"!=q.selector&&(z=q.timePattern||w["timeFormat-"+t])&&v.push(c(z,y));"time"!=q.selector&&(z=q.datePattern||w["dateFormat-"+t])&&v.push(c(z,y));return 1==v.length?v[0]:w["dateTimeFormat-"+
t].replace(/'/g,"").replace(/\{(\d+)\}/g,function(C,G){return v[G]})};k.regexp=function(n){return k._parseInfo(n).regexp};k._parseInfo=function(n){n=n||{};var q=h.normalizeLocale(n.locale);q=k._getGregorianBundle(q);var w=n.formatLength||"short",t=n.datePattern||q["dateFormat-"+w],v=n.timePattern||q["timeFormat-"+w];w="date"==n.selector?t:"time"==n.selector?v:q["dateTimeFormat-"+w].replace(/\{(\d+)\}/g,function(z,C){return[v,t][C]});var y=[];return{regexp:c(w,u.hitch(this,f,y,q,n)),tokens:y,bundle:q}};
k.parse=function(n,q){var w=/[\u200E\u200F\u202A\u202E]/g,t=k._parseInfo(q),v=t.tokens,y=t.bundle;w=(new RegExp("^"+t.regexp.replace(w,"")+"$",t.strict?"":"i")).exec(n&&n.replace(w,""));if(!w)return null;var z=["abbr","wide","narrow"],C=[1970,0,1,0,0,0,0],G="";w=A.every(w,function(E,J){if(!J)return!0;var I=v[J-1],F=I.length;I=I.charAt(0);switch(I){case "y":if(2!=F&&q.strict)C[0]=E;else if(100>E)E=Number(E),I=""+(new Date).getFullYear(),F=100*I.substring(0,2),I=Math.min(Number(I.substring(2,4))+20,
99),C[0]=E<I?F+E:F-100+E;else{if(q.strict)return!1;C[0]=E}break;case "M":case "L":if(2<F){if(F=y["months-"+("L"==I?"standAlone":"format")+"-"+z[F-3]].concat(),q.strict||(E=E.replace(".","").toLowerCase(),F=A.map(F,function(K){return K.replace(".","").toLowerCase()})),E=A.indexOf(F,E),-1==E)return!1}else E--;C[1]=E;break;case "E":case "e":case "c":F=y["days-"+("c"==I?"standAlone":"format")+"-"+z[F-3]].concat();q.strict||(E=E.toLowerCase(),F=A.map(F,function(K){return K.toLowerCase()}));E=A.indexOf(F,
E);if(-1==E)return!1;break;case "D":C[1]=0;case "d":C[2]=E;break;case "a":F=q.am||y["dayPeriods-format-wide-am"];I=q.pm||y["dayPeriods-format-wide-pm"];if(!q.strict){var H=/\./g;E=E.replace(H,"").toLowerCase();F=F.replace(H,"").toLowerCase();I=I.replace(H,"").toLowerCase()}if(q.strict&&E!=F&&E!=I)return!1;G=E==I?"p":E==F?"a":"";break;case "K":24==E&&(E=0);case "h":case "H":case "k":if(23<E)return!1;C[3]=E;break;case "m":C[4]=E;break;case "s":C[5]=E;break;case "S":C[6]=E}return!0});t=+C[3];"p"===G&&
12>t?C[3]=t+12:"a"===G&&12==t&&(C[3]=0);t=new Date(C[0],C[1],C[2],C[3],C[4],C[5],C[6]);q.strict&&t.setFullYear(C[0]);var B=v.join(""),D=-1!=B.indexOf("d");B=-1!=B.indexOf("M");if(!w||B&&t.getMonth()>C[1]||D&&t.getDate()>C[2])return null;if(B&&t.getMonth()<C[1]||D&&t.getDate()<C[2])t=x.add(t,"hour",1);return t};var m=["abbr","wide","narrow"],p=[],l={};k.addCustomFormats=function(n,q){p.push({pkg:n,name:q});l={}};k._getGregorianBundle=function(n){if(l[n])return l[n];var q={};A.forEach(p,function(w){w=
h.getLocalization(w.pkg,w.name,n);q=u.mixin(q,w)},this);return l[n]=q};k.addCustomFormats(b.id.replace(/\/date\/locale$/,".cldr"),"gregorian");k.getNames=function(n,q,w,t){t=k._getGregorianBundle(t);n=[n,w,q];if("standAlone"==w){w=n.join("-");var v=t[w];1==v[0]&&(v=void 0)}n[1]="format";return(v||t[n.join("-")]).concat()};k.isWeekend=function(n,q){var w=r.getWeekend(q),t=(n||new Date).getDay();w.end<w.start&&(w.end+=7,t<w.start&&(t+=7));return t>=w.start&&t<=w.end};k._getDayOfYear=function(n){return x.difference(new Date(n.getFullYear(),
0,1,n.getHours()),n)+1};k._getWeekOfYear=function(n,q){1==arguments.length&&(q=0);var w=(new Date(n.getFullYear(),0,1)).getDay(),t=(w-q+7)%7;t=Math.floor((k._getDayOfYear(n)+t-1)/7);w==q&&t++;return t};return k})},"dojo/cldr/supplemental":function(){define(["../_base/lang","../i18n"],function(u,A){var x={};u.setObject("dojo.cldr.supplemental",x);x.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}[x._region(r)];return void 0===r?1:r};x._region=function(r){r=A.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};x.getWeekend=
function(r){var h=x._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 x})},"dijit/CalendarLite":function(){define("dojo/_base/array dojo/_base/declare dojo/cldr/supplemental dojo/date dojo/date/locale dojo/date/stamp dojo/dom dojo/dom-class dojo/dom-attr dojo/_base/lang dojo/on dojo/sniff dojo/string ./_WidgetBase ./_TemplatedMixin dojo/text!./templates/Calendar.html ./a11yclick ./hccss".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l){var n=A("dijit.CalendarLite",[m,p],{templateString:l,dowTemplateString:'\x3cth class\x3d"dijitReset dijitCalendarDayLabelTemplate" role\x3d"columnheader" scope\x3d"col"\x3e\x3cspan class\x3d"dijitCalendarDayLabel"\x3e${d}\x3c/span\x3e\x3c/th\x3e',dateTemplateString:'\x3ctd class\x3d"dijitReset" role\x3d"gridcell" data-dojo-attach-point\x3d"dateCells"\x3e\x3cspan class\x3d"dijitCalendarDateLabel" data-dojo-attach-point\x3d"dateLabels"\x3e\x3c/span\x3e\x3c/td\x3e',
weekTemplateString:'\x3ctr class\x3d"dijitReset dijitCalendarWeekTemplate" role\x3d"row"\x3e${d}${d}${d}${d}${d}${d}${d}\x3c/tr\x3e',value:new Date(""),datePackage:"",dayWidth:"narrow",tabIndex:"0",dayOffset:-1,currentFocus:new Date,_setSummaryAttr:"gridNode",baseClass:"dijitCalendar dijitCalendarLite",_isValidDate:function(q){return q&&!isNaN(q)&&"object"==typeof q&&q.toString()!=this.constructor.prototype.value.toString()},_getValueAttr:function(){var q=this._get("value");if(q&&!isNaN(q)){var w=
new this.dateClassObj(q);w.setHours(0,0,0,0);w.getDate()<q.getDate()&&(w=this.dateModule.add(w,"hour",1));return w}return null},_setValueAttr:function(q,w){"string"==typeof q&&(q=e.fromISOString(q));q=this._patchDate(q);if(this._isValidDate(q)&&!this.isDisabledDate(q,this.lang)){if(this._set("value",q),this.set("currentFocus",q),this._markSelectedDates([q]),this._created&&(w||"undefined"==typeof w))this.onChange(this.get("value"))}else this._set("value",null),this._markSelectedDates([])},_patchDate:function(q){if(q||
0===q)q=new this.dateClassObj(q),q.setHours(1,0,0,0);return q},_setText:function(q,w){for(;q.firstChild;)q.removeChild(q.firstChild);q.appendChild(q.ownerDocument.createTextNode(w))},_populateGrid:function(){var q=new this.dateClassObj(this.currentFocus);q.setDate(1);q=this._patchDate(q);var w=q.getDay(),t=this.dateModule.getDaysInMonth(q),v=this.dateModule.getDaysInMonth(this.dateModule.add(q,"month",-1)),y=new this.dateClassObj,z=0<=this.dayOffset?this.dayOffset:x.getFirstDayOfWeek(this.lang);z>
w&&(z-=7);if(!this.summary){var C=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,q);this.gridNode.setAttribute("summary",C[q.getMonth()])}this._date2cell={};u.forEach(this.dateCells,function(G,B){var D=B+z,E=new this.dateClassObj(q),J="dijitCalendar",I=0;D<w?(D=v-w+D+1,I=-1,J+="Previous"):D>=w+t?(D=D-w-t+1,I=1,J+="Next"):(D=D-w+1,J+="Current");I&&(E=this.dateModule.add(E,"month",I));E.setDate(D);this.dateModule.compare(E,y,"date")||(J="dijitCalendarCurrentDate "+J);this.isDisabledDate(E,
this.lang)?(J="dijitCalendarDisabledDate "+J,G.setAttribute("aria-disabled","true")):(J="dijitCalendarEnabledDate "+J,G.removeAttribute("aria-disabled"),G.setAttribute("aria-selected","false"));(I=this.getClassForDate(E,this.lang))&&(J=I+" "+J);G.className=J+"Month dijitCalendarDateTemplate";J=E.valueOf();this._date2cell[J]=G;G.dijitDateValue=J;J=E.getDateLocalized?E.getDateLocalized(this.lang):E.getDate();this._setText(this.dateLabels[B],J);b.set(G,"aria-label",h.format(E,{selector:"date",formatLength:"long"}))},
this)},_populateControls:function(){var q=new this.dateClassObj(this.currentFocus);q.setDate(1);this.monthWidget.set("month",q);var w=q.getFullYear()-1,t=new this.dateClassObj;u.forEach(["previous","current","next"],function(v){t.setFullYear(w++);this._setText(this[v+"YearLabelNode"],this.dateLocaleModule.format(t,{selector:"year",locale:this.lang}))},this)},goToToday:function(){this.set("value",new this.dateClassObj)},constructor:function(q){this.dateModule=q.datePackage?a.getObject(q.datePackage,
!1):r;this.dateClassObj=this.dateModule.Date||Date;this.dateLocaleModule=q.datePackage?a.getObject(q.datePackage+".locale",!1):h},_createMonthWidget:function(){return n._MonthWidget({id:this.id+"_mddb",lang:this.lang,dateLocaleModule:this.dateLocaleModule},this.monthNode)},buildRendering:function(){var q=this.dowTemplateString,w=this.dateLocaleModule.getNames("days",this.dayWidth,"standAlone",this.lang),t=0<=this.dayOffset?this.dayOffset:x.getFirstDayOfWeek(this.lang);this.dayCellsHtml=k.substitute([q,
q,q,q,q,q,q].join(""),{d:""},function(){return w[t++%7]});q=k.substitute(this.weekTemplateString,{d:this.dateTemplateString});this.dateRowsHtml=[q,q,q,q,q,q].join("");this.dateCells=[];this.dateLabels=[];this.inherited(arguments);g.setSelectable(this.domNode,!1);q=new this.dateClassObj(this.currentFocus);this.monthWidget=this._createMonthWidget();this.set("currentFocus",q,!1)},postCreate:function(){this.inherited(arguments);this._connectControls()},_connectControls:function(){var q=a.hitch(this,function(w,
t,v){this[w].dojoClick=!0;return c(this[w],"click",a.hitch(this,function(){this._setCurrentFocusAttr(this.dateModule.add(this.currentFocus,t,v))}))});this.own(q("incrementMonth","month",1),q("decrementMonth","month",-1),q("nextYearLabelNode","year",1),q("previousYearLabelNode","year",-1))},_setCurrentFocusAttr:function(q,w){var t=this.currentFocus,v=this._getNodeByDate(t);q=this._patchDate(q);this._set("currentFocus",q);this._date2cell&&0==this.dateModule.difference(t,q,"month")||(this._populateGrid(),
this._populateControls(),this._markSelectedDates([this.value]));t=this._getNodeByDate(q);t.setAttribute("tabIndex",this.tabIndex);(this.focused||w)&&t.focus();v&&v!=t&&(f("webkit")?v.setAttribute("tabIndex","-1"):v.removeAttribute("tabIndex"))},focus:function(){this._setCurrentFocusAttr(this.currentFocus,!0)},_onDayClick:function(q){q.stopPropagation();q.preventDefault();for(q=q.target;q&&!q.dijitDateValue&&0!==q.dijitDateValue;q=q.parentNode);q&&!d.contains(q,"dijitCalendarDisabledDate")&&this.set("value",
q.dijitDateValue)},_getNodeByDate:function(q){return(q=this._patchDate(q))&&this._date2cell?this._date2cell[q.valueOf()]:null},_markSelectedDates:function(q){function w(t,v){d.toggle(v,"dijitCalendarSelectedDate",t);v.setAttribute("aria-selected",t?"true":"false")}u.forEach(this._selectedCells||[],a.partial(w,!1));this._selectedCells=u.filter(u.map(q,this._getNodeByDate,this),function(t){return t});u.forEach(this._selectedCells,a.partial(w,!0))},onChange:function(){},isDisabledDate:function(){},getClassForDate:function(){}});
n._MonthWidget=A("dijit.CalendarLite._MonthWidget",m,{_setMonthAttr:function(q){var w=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,q),t=6==f("ie")?"":"\x3cdiv class\x3d'dijitSpacer'\x3e"+u.map(w,function(v){return"\x3cdiv\x3e"+v+"\x3c/div\x3e"}).join("")+"\x3c/div\x3e";this.domNode.innerHTML=t+"\x3cdiv class\x3d'dijitCalendarMonthLabel dijitCalendarCurrentMonthLabel'\x3e"+w[q.getMonth()]+"\x3c/div\x3e"}});return n})},"dijit/form/_DateTimeTextBox":function(){define("dojo/date dojo/date/locale dojo/date/stamp dojo/_base/declare dojo/_base/lang ./RangeBoundTextBox ../_HasDropDown dojo/text!./templates/DropDownBox.html".split(" "),
function(u,A,x,r,h,e,g,d){new Date("X");return r("dijit.form._DateTimeTextBox",[e,g],{templateString:d,hasDownArrow:!0,cssStateNodes:{_buttonNode:"dijitDownArrowButton"},_unboundedConstraints:{},pattern:A.regexp,datePackage:"",postMixInProperties:function(){this.inherited(arguments);this._set("type","text")},compare:function(b,a){var c=this._isInvalidDate(b),f=this._isInvalidDate(a);if(c||f)return c&&f?0:c?-1:1;c=this.format(b,this._unboundedConstraints);f=this.format(a,this._unboundedConstraints);
var k=this.parse(c,this._unboundedConstraints),m=this.parse(f,this._unboundedConstraints);return c==f?0:u.compare(k,m,this._selector)},autoWidth:!0,format:function(b,a){return b?this.dateLocaleModule.format(b,a):""},parse:function(b,a){return this.dateLocaleModule.parse(b,a)||(this._isEmpty(b)?null:void 0)},serialize:function(b,a){b.toGregorian&&(b=b.toGregorian());return x.toISOString(b,a)},dropDownDefaultValue:new Date,value:new Date(""),_blankValue:null,popupClass:"",_selector:"",constructor:function(b){b=
b||{};this.dateModule=b.datePackage?h.getObject(b.datePackage,!1):u;this.dateClassObj=this.dateModule.Date||Date;this.dateClassObj instanceof Date||(this.value=new this.dateClassObj(this.value));this.dateLocaleModule=b.datePackage?h.getObject(b.datePackage+".locale",!1):A;this._set("pattern",this.dateLocaleModule.regexp);this._invalidDate=this.constructor.prototype.value.toString()},buildRendering:function(){this.inherited(arguments);this.hasDownArrow||(this._buttonNode.style.display="none");this.hasDownArrow||
(this._buttonNode=this.domNode,this.baseClass+=" dijitComboBoxOpenOnClick")},_setConstraintsAttr:function(b){b.selector=this._selector;b.fullYear=!0;var a=x.fromISOString;"string"==typeof b.min&&(b.min=a(b.min),this.dateClassObj instanceof Date||(b.min=new this.dateClassObj(b.min)));"string"==typeof b.max&&(b.max=a(b.max),this.dateClassObj instanceof Date||(b.max=new this.dateClassObj(b.max)));this.inherited(arguments);this._unboundedConstraints=h.mixin({},this.constraints,{min:null,max:null})},_isDefinitelyOutOfRange:function(){var b=
this.inherited(arguments),a=!1;if(b&&(this.constraints.min||this.constraints.max)){var c=(new RegExp(this._lastRegExp)).exec(this._lastInputEventValue);null!=c&&(b=c[3],this.constraints.min&&(a=this.constraints.min instanceof Date?this.constraints.min:new Date(String(this.constraints.min)),minYear=a.getFullYear(),a=parseInt((b+"9999").substr(0,4),10),a=a<minYear),!a&&this.constraints.max&&(a=this.constraints.max instanceof Date?this.constraints.max:new Date(String(this.constraints.max)),maxYear=a.getFullYear(),
b=parseInt((b+"0000").substr(0,4),10),a=b>maxYear),b=a)}return b},_isInvalidDate:function(b){return!b||isNaN(b)||"object"!=typeof b||b.toString()==this._invalidDate},_setValueAttr:function(b,a,c){void 0!==b&&("string"==typeof b&&(b=x.fromISOString(b)),this._isInvalidDate(b)&&(b=null),b instanceof Date&&!(this.dateClassObj instanceof Date)&&(b=new this.dateClassObj(b)));this.inherited(arguments,[b,a,c]);this.value instanceof Date&&(this.filterString="");!1!==a&&this.dropDown&&this.dropDown.set("value",
b,!1)},_set:function(b,a){if("value"==b){a instanceof Date&&!(this.dateClassObj instanceof Date)&&(a=new this.dateClassObj(a));var c=this._get("value");if(c instanceof this.dateClassObj&&0==this.compare(a,c))return}this.inherited(arguments)},_setDropDownDefaultValueAttr:function(b){this._isInvalidDate(b)&&(b=new this.dateClassObj);this._set("dropDownDefaultValue",b)},openDropDown:function(b){this.dropDown&&this.dropDown.destroy();var a=h.isString(this.popupClass)?h.getObject(this.popupClass,!1):this.popupClass,
c=this,f=this.get("value");this.dropDown=new a({onChange:function(k){c.set("value",k,!0)},id:this.id+"_popup",dir:c.dir,lang:c.lang,value:f,textDir:c.textDir,currentFocus:this._isInvalidDate(f)?this.dropDownDefaultValue:f,constraints:c.constraints,filterString:c.filterString,datePackage:c.datePackage,isDisabledDate:function(k){return!c.rangeCheck(k,c.constraints)}});this.inherited(arguments)},_getDisplayedValueAttr:function(){return this.textbox.value},_setDisplayedValueAttr:function(b,a){this._setValueAttr(this.parse(b,
this.constraints),a,b)}})})},"dijit/form/TimeTextBox":function(){define("dojo/_base/declare dojo/keys dojo/query dojo/_base/lang ../_TimePicker ./_DateTimeTextBox".split(" "),function(u,A,x,r,h,e){return u("dijit.form.TimeTextBox",e,{baseClass:"dijitTextBox dijitComboBox dijitTimeTextBox",popupClass:h,_selector:"time",value:new Date(""),maxHeight:-1,openDropDown:function(g){this.inherited(arguments);var d=x(".dijitTimePickerItemSelected",this.dropDown.domNode),b=this.dropDown.domNode.parentNode;b.scrollTop=
d[0]?d[0].offsetTop-(b.clientHeight-d[0].clientHeight)/2:(b.scrollHeight-b.clientHeight)/2;this.dropDown.on("input",r.hitch(this,function(){this.set("value",this.dropDown.get("value"),!1)}))},_onInput:function(){this.inherited(arguments);var g=this.get("displayedValue");this.filterString=g&&!this.parse(g,this.constraints)?g.toLowerCase():"";this._opened&&this.closeDropDown();this.openDropDown()}})})},"dijit/_TimePicker":function(){define("dojo/_base/array dojo/date dojo/date/locale dojo/date/stamp dojo/_base/declare dojo/dom-class dojo/dom-construct dojo/_base/kernel dojo/keys dojo/_base/lang dojo/sniff dojo/query dojo/mouse dojo/on ./_WidgetBase ./form/_ListMouseMixin".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l){return h("dijit._TimePicker",[p,l],{baseClass:"dijitTimePicker",pickerMin:"T00:00:00",pickerMax:"T23:59:59",clickableIncrement:"T00:15:00",visibleIncrement:"T01:00:00",value:new Date,_visibleIncrement:2,_clickableIncrement:1,_totalIncrements:10,constraints:{},serialize:r.toISOString,buildRendering:function(){this.inherited(arguments);this.timeMenu=this.containerNode=this.domNode},setValue:function(n){d.deprecated("dijit._TimePicker:setValue() is deprecated.  Use set('value', ...) instead.",
"","2.0");this.set("value",n)},_setValueAttr:function(n){this._set("value",n);this._showText()},_setFilterStringAttr:function(n){this._set("filterString",n);this._showText()},isDisabledDate:function(){return!1},_getFilteredNodes:function(n,q,w,t){n=this.ownerDocument.createDocumentFragment();for(q=0;q<this._maxIncrement;q++)(w=this._createOption(q))&&n.appendChild(w);return n},_showText:function(){var n=r.fromISOString;this.domNode.innerHTML="";this._clickableIncrementDate=n(this.clickableIncrement);
this._visibleIncrementDate=n(this.visibleIncrement);var q=function(t){return 3600*t.getHours()+60*t.getMinutes()+t.getSeconds()},w=q(this._clickableIncrementDate);q=q(this._visibleIncrementDate);(this.value||this.currentFocus).getTime();this._refDate=n(this.pickerMin);this._refDate.setFullYear(1970,0,1);this._clickableIncrement=1;this._visibleIncrement=q/w;n=n(this.pickerMax);n.setFullYear(1970,0,1);n=.001*(n.getTime()-this._refDate.getTime());this._maxIncrement=Math.ceil((n+1)/w);w=this._getFilteredNodes();
!w.firstChild&&this.filterString?(this.filterString="",this._showText()):this.domNode.appendChild(w)},constructor:function(){this.constraints={}},postMixInProperties:function(){this.inherited(arguments);this._setConstraintsAttr(this.constraints)},_setConstraintsAttr:function(n){for(var q in{clickableIncrement:1,visibleIncrement:1,pickerMin:1,pickerMax:1})q in n&&(this[q]=n[q]);n.locale||(n.locale=this.lang)},_createOption:function(n){var q=new Date(this._refDate),w=this._clickableIncrementDate;q.setHours(q.getHours()+
w.getHours()*n,q.getMinutes()+w.getMinutes()*n,q.getSeconds()+w.getSeconds()*n);"time"==this.constraints.selector&&q.setFullYear(1970,0,1);var t=x.format(q,this.constraints);if(this.filterString&&0!==t.toLowerCase().indexOf(this.filterString))return null;w=this.ownerDocument.createElement("div");w.className=this.baseClass+"Item";w.date=q;w.idx=n;g.create("div",{"class":this.baseClass+"ItemInner",innerHTML:t},w);t=1>n%this._visibleIncrement&&-1<n%this._visibleIncrement;n=!t&&!(n%this._clickableIncrement);
t?w.className+=" "+this.baseClass+"Marker":n&&(w.className+=" "+this.baseClass+"Tick");this.isDisabledDate(q)&&(w.className+=" "+this.baseClass+"ItemDisabled");this.value&&!A.compare(this.value,q,this.constraints.selector)&&(w.selected=!0,w.className+=" "+this.baseClass+"ItemSelected",this._selectedDiv=w,t?w.className+=" "+this.baseClass+"MarkerSelected":n&&(w.className+=" "+this.baseClass+"TickSelected"),this._highlightOption(w,!0));return w},onOpen:function(){this.inherited(arguments);this.set("selected",
this._selectedDiv)},_onOptionSelected:function(n,q){var w=n.target.date||n.target.parentNode.date;w&&!this.isDisabledDate(w)&&(this._set("value",w),this.emit("input"),q&&(this._highlighted_option=null,this.set("value",w),this.onChange(w)))},onChange:function(){},_highlightOption:function(n,q){if(n){if(q)this._highlighted_option&&this._highlightOption(this._highlighted_option,!1),this._highlighted_option=n;else{if(this._highlighted_option!==n)return;this._highlighted_option=null}e.toggle(n,this.baseClass+
"ItemHover",q);e.contains(n,this.baseClass+"Marker")?e.toggle(n,this.baseClass+"MarkerHover",q):e.toggle(n,this.baseClass+"TickHover",q)}},handleKey:function(n){if(n.keyCode==b.DOWN_ARROW)return this.selectNextNode(),this._onOptionSelected({target:this._highlighted_option},!1),n.stopPropagation(),n.preventDefault(),!1;if(n.keyCode==b.UP_ARROW)return this.selectPreviousNode(),this._onOptionSelected({target:this._highlighted_option},!1),n.stopPropagation(),n.preventDefault(),!1;if(n.keyCode==b.ENTER||
n.keyCode===b.TAB){if(!this._keyboardSelected&&n.keyCode===b.TAB)return!0;this._highlighted_option&&this._onOptionSelected({target:this._highlighted_option},!0);return n.keyCode===b.TAB}},onHover:function(n){this._highlightOption(n,!0)},onUnhover:function(n){this._highlightOption(n,!1)},onSelect:function(n){this._highlightOption(n,!0)},onDeselect:function(n){this._highlightOption(n,!1)},onClick:function(n){this._onOptionSelected({target:n},!0)}})})},"dijit/form/MultiSelect":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-geometry dojo/sniff dojo/query ./_FormValueWidget dojo/NodeList-dom".split(" "),
function(u,A,x,r,h,e){e=A("dijit.form.MultiSelect"+(r("dojo-bidi")?"_NoBidi":""),e,{size:7,baseClass:"dijitMultiSelect",templateString:"\x3cselect multiple\x3d'multiple' ${!nameAttrSetting} data-dojo-attach-point\x3d'containerNode,focusNode' data-dojo-attach-event\x3d'onchange: _onChange'\x3e\x3c/select\x3e",addSelected:function(g){g.getSelected().forEach(function(d){this.containerNode.appendChild(d);this.domNode.scrollTop=this.domNode.offsetHeight;d=g.domNode.scrollTop;g.domNode.scrollTop=0;g.domNode.scrollTop=
d},this);this._set("value",this.get("value"))},getSelected:function(){return h("option",this.containerNode).filter(function(g){return g.selected})},_getValueAttr:function(){return u.map(this.getSelected(),function(g){return g.value})},multiple:!0,_setMultipleAttr:function(g){},_setValueAttr:function(g){r("android")?h("option",this.containerNode).orphan().forEach(function(d){var b=d.ownerDocument.createElement("option");b.value=d.value;b.selected=-1!=u.indexOf(g,d.value);b.text=d.text;b.originalText=
d.originalText;this.containerNode.appendChild(b)},this):h("option",this.containerNode).forEach(function(d){d.selected=-1!=u.indexOf(g,d.value)});this.inherited(arguments)},invertSelection:function(g){var d=[];h("option",this.containerNode).forEach(function(b){b.selected||d.push(b.value)});this._setValueAttr(d,!(!1===g||null==g))},_onChange:function(){this._handleOnChange(this.get("value"),!0)},resize:function(g){g&&x.setMarginBox(this.domNode,g)},postCreate:function(){this._set("value",this.get("value"));
this.inherited(arguments)}});r("dojo-bidi")&&(e=A("dijit.form.MultiSelect",e,{addSelected:function(g){g.getSelected().forEach(function(d){d.text=this.enforceTextDirWithUcc(this.restoreOriginalText(d),d.text)},this);this.inherited(arguments)},_setTextDirAttr:function(g){this.textDir==g&&this._created||!this.enforceTextDirWithUcc||(this._set("textDir",g),h("option",this.containerNode).forEach(function(d){this._created||d.value!==d.text||(d.value=d.text);d.text=this.enforceTextDirWithUcc(d,d.originalText||
d.text)},this))}}));return e})},"dijit/tree/ForestStoreModel":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","dojo/_base/lang","./TreeStoreModel"],function(u,A,x,r,h){return A("dijit.tree.ForestStoreModel",h,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(e){this.root={store:this,root:!0,id:e.rootId,label:e.rootLabel,children:e.rootChildren}},mayHaveChildren:function(e){return e===this.root||this.inherited(arguments)},getChildren:function(e,g,d){e===
this.root?this.root.children?g(this.root.children):this.store.fetch({query:this.query,onComplete:r.hitch(this,function(b){this.root.children=b;g(b)}),onError:d}):this.inherited(arguments)},isItem:function(e){return e===this.root?!0:this.inherited(arguments)},fetchItemByIdentity:function(e){if(e.identity==this.root.id){var g=e.scope||x.global;e.onItem&&e.onItem.call(g,this.root)}else this.inherited(arguments)},getIdentity:function(e){return e===this.root?this.root.id:this.inherited(arguments)},getLabel:function(e){return e===
this.root?this.root.label:this.inherited(arguments)},newItem:function(e,g,d){return g===this.root?(this.onNewRootItem(e),this.store.newItem(e)):this.inherited(arguments)},onNewRootItem:function(){},pasteItem:function(e,g,d,b,a){if(g===this.root&&!b)this.onLeaveRoot(e);this.inherited(arguments,[e,g===this.root?null:g,d===this.root?null:d,b,a]);if(d===this.root)this.onAddToRoot(e)},onAddToRoot:function(e){},onLeaveRoot:function(e){},_requeryTop:function(){var e=this.root.children||[];this.store.fetch({query:this.query,
onComplete:r.hitch(this,function(g){this.root.children=g;if(e.length!=g.length||u.some(e,function(d,b){return g[b]!=d}))this.onChildrenChange(this.root,g)})})},onNewItem:function(e,g){this._requeryTop();this.inherited(arguments)},onDeleteItem:function(e){-1!=u.indexOf(this.root.children,e)&&this._requeryTop();this.inherited(arguments)},onSetItem:function(e,g,d,b){this._requeryTop();this.inherited(arguments)}})})},"dijit/tree/TreeStoreModel":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare",
"dojo/_base/lang"],function(u,A,x,r){return x("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:!1,constructor:function(h){r.mixin(this,h);this.connects=[];h=this.store;if(!h.getFeatures()["dojo.data.api.Identity"])throw Error("dijit.tree.TreeStoreModel: store must support dojo.data.Identity");h.getFeatures()["dojo.data.api.Notification"]&&(this.connects=this.connects.concat([A.after(h,"onNew",r.hitch(this,
"onNewItem"),!0),A.after(h,"onDelete",r.hitch(this,"onDeleteItem"),!0),A.after(h,"onSet",r.hitch(this,"onSetItem"),!0)]))},destroy:function(){for(var h;h=this.connects.pop();)h.remove()},getRoot:function(h,e){this.root?h(this.root):this.store.fetch({query:this.query,onComplete:r.hitch(this,function(g){if(1!=g.length)throw Error("dijit.tree.TreeStoreModel: root query returned "+g.length+" items, but must return exactly one");this.root=g[0];h(this.root)}),onError:e})},mayHaveChildren:function(h){return u.some(this.childrenAttrs,
function(e){return this.store.hasAttribute(h,e)},this)},getChildren:function(h,e,g){var d=this.store;if(d.isItemLoaded(h)){for(var b=[],a=0;a<this.childrenAttrs.length;a++){var c=d.getValues(h,this.childrenAttrs[a]);b=b.concat(c)}var f=0;this.deferItemLoadingUntilExpand||u.forEach(b,function(m){d.isItemLoaded(m)||f++});0==f?e(b):u.forEach(b,function(m,p){d.isItemLoaded(m)||d.loadItem({item:m,onItem:function(l){b[p]=l;0==--f&&e(b)},onError:g})})}else{var k=r.hitch(this,arguments.callee);d.loadItem({item:h,
onItem:function(m){k(m,e,g)},onError:g})}},isItem:function(h){return this.store.isItem(h)},fetchItemByIdentity:function(h){this.store.fetchItemByIdentity(h)},getIdentity:function(h){return this.store.getIdentity(h)},getLabel:function(h){return this.labelAttr?this.store.getValue(h,this.labelAttr):this.store.getLabel(h)},newItem:function(h,e,g){var d={parent:e,attribute:this.childrenAttrs[0]},b;this.newItemIdAttr&&h[this.newItemIdAttr]?this.fetchItemByIdentity({identity:h[this.newItemIdAttr],scope:this,
onItem:function(a){a?this.pasteItem(a,null,e,!0,g):(b=this.store.newItem(h,d))&&void 0!=g&&this.pasteItem(b,e,e,!1,g)}}):(b=this.store.newItem(h,d))&&void 0!=g&&this.pasteItem(b,e,e,!1,g)},pasteItem:function(h,e,g,d,b){var a=this.store,c=this.childrenAttrs[0];e&&u.forEach(this.childrenAttrs,function(k){if(a.containsValue(e,k,h)){if(!d){var m=u.filter(a.getValues(e,k),function(p){return p!=h});a.setValues(e,k,m)}c=k}});if(g)if("number"==typeof b){var f=a.getValues(g,c).slice();f.splice(b,0,h);a.setValues(g,
c,f)}else a.setValues(g,c,a.getValues(g,c).concat(h))},onChange:function(){},onChildrenChange:function(){},onDelete:function(){},onNewItem:function(h,e){e&&this.getChildren(e.item,r.hitch(this,function(g){this.onChildrenChange(e.item,g)}))},onDeleteItem:function(h){this.onDelete(h)},onSetItem:function(h,e){if(-1!=u.indexOf(this.childrenAttrs,e))this.getChildren(h,r.hitch(this,function(g){this.onChildrenChange(h,g)}));else this.onChange(h)}})})},"dijit/Tree":function(){define("dojo/_base/array dojo/aspect dojo/cookie dojo/_base/declare dojo/Deferred dojo/promise/all dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/errors/create dojo/fx dojo/has dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/topic dojo/touch dojo/when ./a11yclick ./focus ./registry ./_base/manager ./_Widget ./_TemplatedMixin ./_Container ./_Contained ./_CssStateMixin ./_KeyNavMixin dojo/text!./templates/TreeNode.html dojo/text!./templates/Tree.html ./tree/TreeStoreModel ./tree/ForestStoreModel ./tree/_dndSelector dojo/query!css2".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n,q,w,t,v,y,z,C,G,B,D,E,J,I,F,H,K,L,N){function Q(M){return l.delegate(M.promise||M,{addCallback:function(R){this.then(R)},addErrback:function(R){this.otherwise(R)}})}var P=r("dijit._TreeNode",[G,B,D,E,J],{item:null,isTreeNode:!0,label:"",_setLabelAttr:function(M){this.labelNode["html"==this.labelType?"innerHTML":"innerText"in this.labelNode?"innerText":"textContent"]=M;this._set("label",M);k("dojo-bidi")&&this.applyTextDir(this.labelNode)},labelType:"text",
isExpandable:null,isExpanded:!1,state:"NotLoaded",templateString:F,baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow"},_setTooltipAttr:{node:"rowNode",type:"attribute",attribute:"title"},buildRendering:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);this.isExpandable&&this.labelNode.setAttribute("aria-expanded",this.isExpanded);this.setSelected(!1)},_setIndentAttr:function(M){var R=Math.max(M,0)*this.tree._nodePixelIndent+"px";a.set(this.domNode,
"backgroundPosition",R+" 0px");a.set(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",R);u.forEach(this.getChildren(),function(T){T.set("indent",M+1)});this._set("indent",M)},markProcessing:function(){this.state="Loading";this._setExpando(!0)},unmarkProcessing:function(){this._setExpando(!1)},_updateItemClasses:function(M){var R=this.tree,T=R.model;R._v10Compat&&M===T.root&&(M=null);this._applyClassAndStyle(M,"icon","Icon");this._applyClassAndStyle(M,"label","Label");this._applyClassAndStyle(M,
"row","Row");this.tree._startPaint(!0)},_applyClassAndStyle:function(M,R,T){var X="_"+R+"Class";R+="Node";var Z=this[X];this[X]=this.tree["get"+T+"Class"](M,this.isExpanded);d.replace(this[R],this[X]||"",Z||"");a.set(this[R],this.tree["get"+T+"Style"](M,this.isExpanded)||{})},_updateLayout:function(){var M=this.getParent();M=!M||!M.rowNode||"none"==M.rowNode.style.display;d.toggle(this.domNode,"dijitTreeIsRoot",M);d.toggle(this.domNode,"dijitTreeIsLast",!M&&!this.getNextSibling())},_setExpando:function(M){var R=
["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"];M=M?0:this.isExpandable?this.isExpanded?1:2:3;d.replace(this.expandoNode,R[M],R);this.expandoNodeText.innerHTML=["*","-","+","*"][M]},expand:function(){if(this._expandDeferred)return Q(this._expandDeferred);this._collapseDeferred&&(this._collapseDeferred.cancel(),delete this._collapseDeferred);this.isExpanded=!0;this.labelNode.setAttribute("aria-expanded","true");(this.tree.showRoot||this!==this.tree.rootNode)&&
this.containerNode.setAttribute("role","group");d.add(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);this==this.tree.rootNode&&this.tree.showRoot&&this.tree.domNode.setAttribute("aria-expanded","true");var M=f.wipeIn({node:this.containerNode,duration:C.defaultDuration}),R=this._expandDeferred=new h(function(){M.stop()});A.after(M,"onEnd",function(){R.resolve(!0)},!0);M.play();return Q(R)},collapse:function(){if(this._collapseDeferred)return Q(this._collapseDeferred);
this._expandDeferred&&(this._expandDeferred.cancel(),delete this._expandDeferred);this.isExpanded=!1;this.labelNode.setAttribute("aria-expanded","false");this==this.tree.rootNode&&this.tree.showRoot&&this.tree.domNode.setAttribute("aria-expanded","false");d.remove(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);var M=f.wipeOut({node:this.containerNode,duration:C.defaultDuration}),R=this._collapseDeferred=new h(function(){M.stop()});A.after(M,"onEnd",
function(){R.resolve(!0)},!0);M.play();return Q(R)},indent:0,setChildItems:function(M){var R=this.tree,T=R.model,X=[],Z=R.focusedChild,da=this.getChildren();u.forEach(da,function(ba){D.prototype.removeChild.call(this,ba)},this);this.defer(function(){u.forEach(da,function(ba){if(!ba._destroyed&&!ba.getParent()){R.dndController.removeTreeNode(ba);(function qa(ha){var na=T.getIdentity(ha.item),ja=R._itemNodesMap[na];1==ja.length?delete R._itemNodesMap[na]:(na=u.indexOf(ja,ha),-1!=na&&ja.splice(na,1));
u.forEach(ha.getChildren(),qa)})(ba);if(R.persist){var fa=u.map(ba.getTreePath(),function(ha){return R.model.getIdentity(ha)}).join("/"),ca;for(ca in R._openedNodes)ca.substr(0,fa.length)==fa&&delete R._openedNodes[ca];R._saveExpandedNodes()}R.lastFocusedChild&&!g.isDescendant(R.lastFocusedChild.domNode,R.domNode)&&delete R.lastFocusedChild;Z&&!g.isDescendant(Z.domNode,R.domNode)&&R.focus();ba.destroyRecursive()}})});this.state="Loaded";M&&0<M.length?(this.isExpandable=!0,u.forEach(M,function(ba){var fa=
T.getIdentity(ba),ca=R._itemNodesMap[fa];if(ca)for(var ia=0;ia<ca.length;ia++)if(ca[ia]&&!ca[ia].getParent()){var ha=ca[ia];ha.set("indent",this.indent+1);break}ha||(ha=this.tree._createTreeNode({item:ba,tree:R,isExpandable:T.mayHaveChildren(ba),label:R.getLabel(ba),labelType:R.model&&R.model.labelType||"text",tooltip:R.getTooltip(ba),ownerDocument:R.ownerDocument,dir:R.dir,lang:R.lang,textDir:R.textDir,indent:this.indent+1}),ca?ca.push(ha):R._itemNodesMap[fa]=[ha]);this.addChild(ha);(this.tree.autoExpand||
this.tree._state(ha))&&X.push(R._expandNode(ha))},this),u.forEach(this.getChildren(),function(ba){ba._updateLayout()})):this.isExpandable=!1;this._setExpando&&this._setExpando(!1);this._updateItemClasses(this.item);M=e(X);this.tree._startPaint(M);return Q(M)},getTreePath:function(){for(var M=this,R=[];M&&M!==this.tree.rootNode;)R.unshift(M.item),M=M.getParent();R.unshift(this.tree.rootNode.item);return R},getIdentity:function(){return this.tree.model.getIdentity(this.item)},removeChild:function(M){this.inherited(arguments);
var R=this.getChildren();0==R.length&&(this.isExpandable=!1,this.collapse());u.forEach(R,function(T){T._updateLayout()})},makeExpandable:function(){this.isExpandable=!0;this._setExpando(!1)},setSelected:function(M){this.labelNode.setAttribute("aria-selected",M?"true":"false");d.toggle(this.rowNode,"dijitTreeRowSelected",M)},focus:function(){y.focus(this.focusNode)}});k("dojo-bidi")&&P.extend({_setTextDirAttr:function(M){!M||this.textDir==M&&this._created||(this._set("textDir",M),this.applyTextDir(this.labelNode),
u.forEach(this.getChildren(),function(R){R.set("textDir",M)},this))}});var S=r("dijit.Tree",[G,I,B,J],{baseClass:"dijitTree",store:null,model:null,query:null,label:"",showRoot:!0,childrenAttr:["children"],paths:[],path:[],selectedItems:null,selectedItem:null,openOnClick:!1,openOnDblClick:!1,templateString:H,persist:!1,autoExpand:!1,dndController:N,dndParams:"onDndDrop itemCreator onDndCancel checkAcceptance checkItemAcceptance dragThreshold betweenThreshold".split(" "),onDndDrop:null,itemCreator:null,
onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(M,R){q.publish(this.id,l.mixin({tree:this,event:M},R||{}))},postMixInProperties:function(){this.tree=this;this.autoExpand&&(this.persist=!1);this._itemNodesMap={};!this.cookieName&&this.id&&(this.cookieName=this.id+"SaveStateCookie");this.expandChildrenDeferred=new h;this.pendingCommandsPromise=this.expandChildrenDeferred.promise;this.inherited(arguments)},postCreate:function(){this._initState();
var M=this;this.own(n(this.containerNode,n.selector(".dijitTreeNode",w.enter),function(X){M._onNodeMouseEnter(z.byNode(this),X)}),n(this.containerNode,n.selector(".dijitTreeNode",w.leave),function(X){M._onNodeMouseLeave(z.byNode(this),X)}),n(this.containerNode,n.selector(".dijitTreeRow",v.press),function(X){M._onNodePress(z.getEnclosingWidget(this),X)}),n(this.containerNode,n.selector(".dijitTreeRow",v),function(X){M._onClick(z.getEnclosingWidget(this),X)}),n(this.containerNode,n.selector(".dijitTreeRow",
"dblclick"),function(X){M._onDblClick(z.getEnclosingWidget(this),X)}));this.model||this._store2model();this.own(A.after(this.model,"onChange",l.hitch(this,"_onItemChange"),!0),A.after(this.model,"onChildrenChange",l.hitch(this,"_onItemChildrenChange"),!0),A.after(this.model,"onDelete",l.hitch(this,"_onItemDelete"),!0));this.inherited(arguments);if(this.dndController){l.isString(this.dndController)&&(this.dndController=l.getObject(this.dndController));for(var R={},T=0;T<this.dndParams.length;T++)this[this.dndParams[T]]&&
(R[this.dndParams[T]]=this[this.dndParams[T]]);this.dndController=new this.dndController(this,R)}this._load();this.onLoadDeferred=Q(this.pendingCommandsPromise);this.onLoadDeferred.then(l.hitch(this,"onLoad"))},_store2model:function(){this._v10Compat=!0;m.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var M={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};this.params.mayHaveChildren&&(M.mayHaveChildren=
l.hitch(this,"mayHaveChildren"));this.params.getItemChildren&&(M.getChildren=l.hitch(this,function(R,T,X){this.getItemChildren(this._v10Compat&&R===this.model.root?null:R,T,X)}));this.model=new L(M);this.showRoot=!!this.label},onLoad:function(){},_load:function(){this.model.getRoot(l.hitch(this,function(M){var R=this.rootNode=this.tree._createTreeNode({item:M,tree:this,isExpandable:!0,label:this.label||this.getLabel(M),labelType:this.model.labelType||"text",textDir:this.textDir,indent:this.showRoot?
0:-1});this.showRoot?(this.domNode.setAttribute("aria-multiselectable",!this.dndController.singular),this.rootLoadingIndicator.style.display="none"):(R.rowNode.style.display="none",this.domNode.setAttribute("role","presentation"),this.domNode.removeAttribute("aria-expanded"),this.domNode.removeAttribute("aria-multiselectable"),this["aria-label"]?(R.containerNode.setAttribute("aria-label",this["aria-label"]),this.domNode.removeAttribute("aria-label")):this["aria-labelledby"]&&(R.containerNode.setAttribute("aria-labelledby",
this["aria-labelledby"]),this.domNode.removeAttribute("aria-labelledby")),R.labelNode.setAttribute("role","presentation"),R.labelNode.removeAttribute("aria-selected"),R.containerNode.setAttribute("role","tree"),R.containerNode.setAttribute("aria-expanded","true"),R.containerNode.setAttribute("aria-multiselectable",!this.dndController.singular));this.containerNode.appendChild(R.domNode);M=this.model.getIdentity(M);this._itemNodesMap[M]?this._itemNodesMap[M].push(R):this._itemNodesMap[M]=[R];R._updateLayout();
this._expandNode(R).then(l.hitch(this,function(){this._destroyed||(this.rootLoadingIndicator.style.display="none",this.expandChildrenDeferred.resolve(!0))}))}),l.hitch(this,function(M){}))},getNodesByItem:function(M){if(!M)return[];M=l.isString(M)?M:this.model.getIdentity(M);return[].concat(this._itemNodesMap[M])},_setSelectedItemAttr:function(M){this.set("selectedItems",[M])},_setSelectedItemsAttr:function(M){var R=this;return this.pendingCommandsPromise=this.pendingCommandsPromise.always(l.hitch(this,
function(){var T=u.map(M,function(Z){return!Z||l.isString(Z)?Z:R.model.getIdentity(Z)}),X=[];u.forEach(T,function(Z){X=X.concat(R._itemNodesMap[Z]||[])});this.set("selectedNodes",X)}))},_setPathAttr:function(M){return M.length?Q(this.set("paths",[M]).then(function(R){return R[0]})):Q(this.set("paths",[]).then(function(R){return R[0]}))},_setPathsAttr:function(M){function R(X,Z){var da=X.shift(),ba=u.filter(Z,function(fa){return fa.getIdentity()==da})[0];if(ba)return X.length?T._expandNode(ba).then(function(){return R(X,
ba.getChildren())}):ba;throw new S.PathError("Could not expand path at "+da);}var T=this;return Q(this.pendingCommandsPromise=this.pendingCommandsPromise.always(function(){return e(u.map(M,function(X){X=u.map(X,function(Z){return Z&&l.isObject(Z)?T.model.getIdentity(Z):Z});if(X.length)return R(X,[T.rootNode]);throw new S.PathError("Empty path");}))}).then(function(X){T.set("selectedNodes",X);return T.paths}))},_setSelectedNodeAttr:function(M){this.set("selectedNodes",[M])},_setSelectedNodesAttr:function(M){this.dndController.setSelection(M)},
expandAll:function(){function M(T){return R._expandNode(T).then(function(){var X=u.filter(T.getChildren()||[],function(Z){return Z.isExpandable});return e(u.map(X,M))})}var R=this;return Q(M(this.rootNode))},collapseAll:function(){function M(T){var X=u.filter(T.getChildren()||[],function(Z){return Z.isExpandable});X=e(u.map(X,M));return!T.isExpanded||T==R.rootNode&&!R.showRoot?X:X.then(function(){return R._collapseNode(T)})}var R=this;return Q(M(this.rootNode))},mayHaveChildren:function(){},getItemChildren:function(){},
getLabel:function(M){return this.model.getLabel(M)},getIconClass:function(M,R){return!M||this.model.mayHaveChildren(M)?R?"dijitFolderOpened":"dijitFolderClosed":"dijitLeaf"},getLabelClass:function(){},getRowClass:function(){},getIconStyle:function(){},getLabelStyle:function(){},getRowStyle:function(){},getTooltip:function(){return""},_onDownArrow:function(M,R){var T=this._getNext(R);T&&T.isTreeNode&&this.focusNode(T)},_onUpArrow:function(M,R){var T=R.getPreviousSibling();if(T)for(R=T;R.isExpandable&&
R.isExpanded&&R.hasChildren();)T=R.getChildren(),R=T[T.length-1];else if(T=R.getParent(),this.showRoot||T!==this.rootNode)R=T;R&&R.isTreeNode&&this.focusNode(R)},_onRightArrow:function(M,R){R.isExpandable&&!R.isExpanded?this._expandNode(R):R.hasChildren()&&(R=R.getChildren()[0])&&R.isTreeNode&&this.focusNode(R)},_onLeftArrow:function(M,R){if(R.isExpandable&&R.isExpanded)this._collapseNode(R);else{var T=R.getParent();T&&T.isTreeNode&&(this.showRoot||T!==this.rootNode)&&this.focusNode(T)}},focusLastChild:function(){var M=
this._getLast();M&&M.isTreeNode&&this.focusNode(M)},_getFirst:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0]},_getLast:function(){for(var M=this.rootNode;M.isExpanded;){var R=M.getChildren();if(!R.length)break;M=R[R.length-1]}return M},_getNext:function(M){if(M.isExpandable&&M.isExpanded&&M.hasChildren())return M.getChildren()[0];for(;M&&M.isTreeNode;){var R=M.getNextSibling();if(R)return R;M=M.getParent()}return null},childSelector:".dijitTreeRow",isExpandoNode:function(M,
R){return g.isDescendant(M,R.expandoNode)||g.isDescendant(M,R.expandoNodeText)},_onNodePress:function(M,R){this.focusNode(M)},__click:function(M,R,T,X){var Z=this.isExpandoNode(R.target,M);M.isExpandable&&(T||Z)?this._onExpandoClick({node:M}):(this._publish("execute",{item:M.item,node:M,evt:R}),this[X](M.item,M,R),this.focusNode(M));R.stopPropagation();R.preventDefault()},_onClick:function(M,R){this.__click(M,R,this.openOnClick,"onClick")},_onDblClick:function(M,R){this.__click(M,R,this.openOnDblClick,
"onDblClick")},_onExpandoClick:function(M){M=M.node;this.focusNode(M);M.isExpanded?this._collapseNode(M):this._expandNode(M)},onClick:function(){},onDblClick:function(){},onOpen:function(){},onClose:function(){},_getNextNode:function(M){m.deprecated(this.declaredClass+"::_getNextNode(node) is deprecated. Use _getNext(node) instead.","","2.0");return this._getNext(M)},_getRootOrFirstNode:function(){m.deprecated(this.declaredClass+"::_getRootOrFirstNode() is deprecated. Use _getFirst() instead.","",
"2.0");return this._getFirst()},_collapseNode:function(M){M._expandNodeDeferred&&delete M._expandNodeDeferred;if("Loading"!=M.state&&M.isExpanded){var R=M.collapse();this.onClose(M.item,M);this._state(M,!1);this._startPaint(R);return R}},_expandNode:function(M){if(M._expandNodeDeferred)return M._expandNodeDeferred;var R=this.model,T=M.item;M._loadDeferred||(M.markProcessing(),M._loadDeferred=new h,R.getChildren(T,function(X){M.unmarkProcessing();M.setChildItems(X).then(function(){M._loadDeferred.resolve(X)})},
function(X){M._loadDeferred.reject(X)}));R=M._loadDeferred.then(l.hitch(this,function(){var X=M.expand();this.onOpen(M.item,M);this._state(M,!0);return X}));this._startPaint(R);return R},focusNode:function(M){for(var R=[],T=this.domNode;T&&T.tagName&&"IFRAME"!==T.tagName.toUpperCase();T=T.parentNode)R.push({domNode:T.contentWindow||T,scrollLeft:T.scrollLeft||0,scrollTop:T.scrollTop||0});this.focusChild(M);this.defer(function(){for(var X=0,Z=R.length;X<Z;X++)R[X].domNode.scrollLeft=R[X].scrollLeft,
R[X].domNode.scrollTop=R[X].scrollTop},0)},_onNodeMouseEnter:function(){},_onNodeMouseLeave:function(){},_onItemChange:function(M){var R=this.model.getIdentity(M);if(R=this._itemNodesMap[R]){var T=this.getLabel(M),X=this.getTooltip(M);u.forEach(R,function(Z){Z.set({item:M,label:T,tooltip:X});Z._updateItemClasses(M)})}},_onItemChildrenChange:function(M,R){var T=this.model.getIdentity(M);(T=this._itemNodesMap[T])&&u.forEach(T,function(X){X.setChildItems(R)})},_onItemDelete:function(M){M=this.model.getIdentity(M);
var R=this._itemNodesMap[M];R&&(u.forEach(R,function(T){this.dndController.removeTreeNode(T);var X=T.getParent();X&&X.removeChild(T);this.lastFocusedChild&&!g.isDescendant(this.lastFocusedChild.domNode,this.domNode)&&delete this.lastFocusedChild;this.focusedChild&&!g.isDescendant(this.focusedChild.domNode,this.domNode)&&this.focus();T.destroyRecursive()},this),delete this._itemNodesMap[M])},_initState:function(){this._openedNodes={};if(this.persist&&this.cookieName){var M=x(this.cookieName);M&&u.forEach(M.split(","),
function(R){this._openedNodes[R]=!0},this)}},_state:function(M,R){if(!this.persist)return!1;var T=u.map(M.getTreePath(),function(X){return this.model.getIdentity(X)},this).join("/");if(1===arguments.length)return this._openedNodes[T];R?this._openedNodes[T]=!0:delete this._openedNodes[T];this._saveExpandedNodes()},_saveExpandedNodes:function(){if(this.persist&&this.cookieName){var M=[],R;for(R in this._openedNodes)M.push(R);x(this.cookieName,M.join(","),{expires:365})}},destroy:function(){this._curSearch&&
(this._curSearch.timer.remove(),delete this._curSearch);this.rootNode&&this.rootNode.destroyRecursive();this.dndController&&!l.isString(this.dndController)&&this.dndController.destroy();this.rootNode=null;this.inherited(arguments)},destroyRecursive:function(){this.destroy()},resize:function(M){M&&b.setMarginBox(this.domNode,M);this._nodePixelIndent=b.position(this.tree.indentDetector).w||this._nodePixelIndent;this.expandChildrenDeferred.then(l.hitch(this,function(){this.rootNode.set("indent",this.showRoot?
0:-1);this._adjustWidths()}))},_outstandingPaintOperations:0,_startPaint:function(M){this._outstandingPaintOperations++;this._adjustWidthsTimer&&(this._adjustWidthsTimer.remove(),delete this._adjustWidthsTimer);var R=l.hitch(this,function(){this._outstandingPaintOperations--;0>=this._outstandingPaintOperations&&!this._adjustWidthsTimer&&this._started&&(this._adjustWidthsTimer=this.defer("_adjustWidths"))});t(M,R,R)},_adjustWidths:function(){this._adjustWidthsTimer&&(this._adjustWidthsTimer.remove(),
delete this._adjustWidthsTimer);this.containerNode.style.width="auto";this.containerNode.style.width=this.domNode.scrollWidth>this.domNode.offsetWidth?"auto":"100%"},_createTreeNode:function(M){return new P(M)},focus:function(){this.lastFocusedChild?this.focusNode(this.lastFocusedChild):this.focusFirstChild()}});k("dojo-bidi")&&S.extend({_setTextDirAttr:function(M){M&&this.textDir!=M&&(this._set("textDir",M),this.rootNode.set("textDir",M))}});S.PathError=c("TreePathError");S._TreeNode=P;return S})},
"dojo/cookie":function(){define(["./_base/kernel","./regexp"],function(u,A){u.cookie=function(x,r,h){var e=document.cookie;if(1==arguments.length)var g=(g=e.match(new RegExp("(?:^|; )"+A.escapeString(x)+"\x3d([^;]*)")))?decodeURIComponent(g[1]):void 0;else{h=h||{};e=h.expires;if("number"==typeof e){var d=new Date;d.setTime(d.getTime()+864E5*e);e=h.expires=d}e&&e.toUTCString&&(h.expires=e.toUTCString());r=encodeURIComponent(r);e=x+"\x3d"+r;for(var b in h)e+="; "+b,d=h[b],!0!==d&&(e+="\x3d"+d);document.cookie=
e}return g};u.cookie.isSupported=function(){"cookieEnabled"in navigator||(this("__djCookieTest__","CookiesAllowed"),navigator.cookieEnabled="CookiesAllowed"==this("__djCookieTest__"),navigator.cookieEnabled&&this("__djCookieTest__","",{expires:-1}));return navigator.cookieEnabled};return u.cookie})},"dojo/fx":function(){define("./_base/lang ./Evented ./_base/kernel ./_base/array ./aspect ./_base/fx ./dom ./dom-style ./dom-geometry ./ready require".split(" "),function(u,A,x,r,h,e,g,d,b,a,c){x.isAsync||
a(0,function(){c(["./fx/Toggler"])});x=x.fx={};a={_fire:function(m,p){this[m]&&this[m].apply(this,p||[]);return this}};var f=function(m){this._index=-1;this._animations=m||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;r.forEach(this._animations,function(p){p&&("undefined"!=typeof p.duration&&(this.duration+=p.duration),p.delay&&(this.duration+=p.delay))},this)};f.prototype=new A;u.extend(f,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){this._onAnimateCtx.remove();
this._onEndCtx.remove();this._onAnimateCtx=this._onEndCtx=null;this._index+1==this._animations.length?this._fire("onEnd"):(this._current=this._animations[++this._index],this._onAnimateCtx=h.after(this._current,"onAnimate",u.hitch(this,"_onAnimate"),!0),this._onEndCtx=h.after(this._current,"onEnd",u.hitch(this,"_onEnd"),!0),this._current.play(0,!0))},play:function(m,p){this._current||(this._current=this._animations[this._index=0]);if(!p&&"playing"==this._current.status())return this;var l=h.after(this._current,
"beforeBegin",u.hitch(this,function(){this._fire("beforeBegin")}),!0),n=h.after(this._current,"onBegin",u.hitch(this,function(w){this._fire("onBegin",arguments)}),!0),q=h.after(this._current,"onPlay",u.hitch(this,function(w){this._fire("onPlay",arguments);l.remove();n.remove();q.remove()}));this._onAnimateCtx&&this._onAnimateCtx.remove();this._onAnimateCtx=h.after(this._current,"onAnimate",u.hitch(this,"_onAnimate"),!0);this._onEndCtx&&this._onEndCtx.remove();this._onEndCtx=h.after(this._current,
"onEnd",u.hitch(this,"_onEnd"),!0);this._current.play.apply(this._current,arguments);return this},pause:function(){if(this._current){var m=h.after(this._current,"onPause",u.hitch(this,function(p){this._fire("onPause",arguments);m.remove()}),!0);this._current.pause()}return this},gotoPercent:function(m,p){this.pause();var l=this.duration*m;this._current=null;r.some(this._animations,function(n,q){if(l<=n.duration)return this._current=n,this._index=q,!0;l-=n.duration;return!1},this);this._current&&this._current.gotoPercent(l/
this._current.duration);p&&this.play();return this},stop:function(m){if(this._current){if(m){for(;this._index+1<this._animations.length;++this._index)this._animations[this._index].stop(!0);this._current=this._animations[this._index]}var p=h.after(this._current,"onStop",u.hitch(this,function(l){this._fire("onStop",arguments);p.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()}});u.extend(f,a);x.chain=function(m){return new f(u.isArray(m)?m:Array.prototype.slice.call(m,0))};var k=function(m){this._animations=m||[];this._connects=[];this.duration=this._finished=0;r.forEach(m,function(l){var n=l.duration;l.delay&&(n+=l.delay);this.duration<n&&(this.duration=n);this._connects.push(h.after(l,"onEnd",u.hitch(this,"_onEnd"),!0))},this);this._pseudoAnimation=new e.Animation({curve:[0,1],duration:this.duration});
var p=this;r.forEach("beforeBegin onBegin onPlay onAnimate onPause onStop onEnd".split(" "),function(l){p._connects.push(h.after(p._pseudoAnimation,l,function(){p._fire(l,arguments)},!0))})};u.extend(k,{_doAction:function(m,p){r.forEach(this._animations,function(l){l[m].apply(l,p)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(m,p){var l=this._pseudoAnimation;l[m].apply(l,p)},play:function(m,p){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(m,p){var l=this.duration*m;r.forEach(this._animations,function(n){n.gotoPercent(n.duration<l?1:l/n.duration,p)});this._call("gotoPercent",arguments);return this},stop:function(m){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(m){m.remove()})}});u.extend(k,a);x.combine=function(m){return new k(u.isArray(m)?m:Array.prototype.slice.call(m,0))};x.wipeIn=function(m){var p=m.node=g.byId(m.node),l=p.style,n;m=e.animateProperty(u.mixin({properties:{height:{start:function(){n=l.overflow;l.overflow="hidden";if("hidden"==l.visibility||"none"==l.display)return l.height="1px",l.display="",l.visibility="",1;var w=d.get(p,"height");return Math.max(w,1)},end:function(){return p.scrollHeight}}}},m));var q=
function(){l.height="auto";l.overflow=n};h.after(m,"onStop",q,!0);h.after(m,"onEnd",q,!0);return m};x.wipeOut=function(m){var p=(m.node=g.byId(m.node)).style,l;m=e.animateProperty(u.mixin({properties:{height:{end:1}}},m));h.after(m,"beforeBegin",function(){l=p.overflow;p.overflow="hidden";p.display=""},!0);var n=function(){p.overflow=l;p.height="auto";p.display="none"};h.after(m,"onStop",n,!0);h.after(m,"onEnd",n,!0);return m};x.slideTo=function(m){var p=null,l=null,n=function(q){return function(){var w=
d.getComputedStyle(q),t=w.position;p="absolute"==t?q.offsetTop:parseInt(w.top)||0;l="absolute"==t?q.offsetLeft:parseInt(w.left)||0;"absolute"!=t&&"relative"!=t&&(w=b.position(q,!0),p=w.y,l=w.x,q.style.position="absolute",q.style.top=p+"px",q.style.left=l+"px")}}(m.node=g.byId(m.node));n();m=e.animateProperty(u.mixin({properties:{top:m.top||0,left:m.left||0}},m));h.after(m,"beforeBegin",n,!0);return m};return x})},"dijit/_Contained":function(){define(["dojo/_base/declare","./registry"],function(u,
A){return u("dijit._Contained",null,{_getSibling:function(x){var r=this.getParent();return r&&r._getSiblingOfChild&&r._getSiblingOfChild(this,"previous"==x?-1:1)||null},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var x=this.getParent();return x&&x.getIndexOfChild?x.getIndexOfChild(this):-1}})})},"dijit/_KeyNavMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dijit/registry dijit/_FocusMixin".split(" "),
function(u,A,x,r,h,e,g,d){return A("dijit._KeyNavMixin",d,{tabIndex:"0",childSelector:null,postCreate:function(){this.inherited(arguments);x.set(this.domNode,"tabIndex",this.tabIndex);if(!this._keyNavCodes){var b=this._keyNavCodes={};b[r.HOME]=h.hitch(this,"focusFirstChild");b[r.END]=h.hitch(this,"focusLastChild");b[this.isLeftToRight()?r.LEFT_ARROW:r.RIGHT_ARROW]=h.hitch(this,"_onLeftArrow");b[this.isLeftToRight()?r.RIGHT_ARROW:r.LEFT_ARROW]=h.hitch(this,"_onRightArrow");b[r.UP_ARROW]=h.hitch(this,
"_onUpArrow");b[r.DOWN_ARROW]=h.hitch(this,"_onDownArrow")}var a=this;b="string"==typeof this.childSelector?this.childSelector:h.hitch(this,"childSelector");this.own(e(this.domNode,"keypress",h.hitch(this,"_onContainerKeypress")),e(this.domNode,"keydown",h.hitch(this,"_onContainerKeydown")),e(this.domNode,"focus",h.hitch(this,"_onContainerFocus")),e(this.containerNode,e.selector(b,"focusin"),function(c){a._onChildFocus(g.getEnclosingWidget(this),c)}))},_onLeftArrow:function(){},_onRightArrow:function(){},
_onUpArrow:function(){},_onDownArrow:function(){},focus:function(){this.focusFirstChild()},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild())},focusLastChild:function(){this.focusChild(this._getLastFocusableChild())},focusChild:function(b,a){b&&(this.focusedChild&&b!==this.focusedChild&&this._onChildBlur(this.focusedChild),
b.set("tabIndex",this.tabIndex),b.focus(a?"end":"start"))},_onContainerFocus:function(b){b.target!==this.domNode||this.focusedChild||this.focus()},_onFocus:function(){x.set(this.domNode,"tabIndex","-1");this.inherited(arguments)},_onBlur:function(b){x.set(this.domNode,"tabIndex",this.tabIndex);this.focusedChild&&(this.focusedChild.set("tabIndex","-1"),this.lastFocusedChild=this.focusedChild,this._set("focusedChild",null));this.inherited(arguments)},_onChildFocus:function(b){b&&b!=this.focusedChild&&
(this.focusedChild&&!this.focusedChild._destroyed&&this.focusedChild.set("tabIndex","-1"),b.set("tabIndex",this.tabIndex),this.lastFocused=b,this._set("focusedChild",b))},_searchString:"",multiCharSearchDuration:1E3,onKeyboardSearch:function(b,a,c,f){b&&this.focusChild(b)},_keyboardSearchCompare:function(b,a){var c=b.domNode;c=(b.label||(c.focusNode?c.focusNode.label:"")||c.innerText||c.textContent||"").replace(/^\s+/,"").substr(0,a.length).toLowerCase();return a.length&&c==a?-1:0},_onContainerKeydown:function(b){var a=
this._keyNavCodes[b.keyCode];a?(a(b,this.focusedChild),b.stopPropagation(),b.preventDefault(),this._searchString=""):b.keyCode!=r.SPACE||!this._searchTimer||b.ctrlKey||b.altKey||b.metaKey||(b.stopImmediatePropagation(),b.preventDefault(),this._keyboardSearch(b," "))},_onContainerKeypress:function(b){b.charCode<=r.SPACE||b.ctrlKey||b.altKey||b.metaKey||(b.preventDefault(),b.stopPropagation(),this._keyboardSearch(b,String.fromCharCode(b.charCode).toLowerCase()))},_keyboardSearch:function(b,a){var c=
null,f,k=0;h.hitch(this,function(){this._searchTimer&&this._searchTimer.remove();this._searchString+=a;var m=/^(.)\1*$/.test(this._searchString)?1:this._searchString.length;f=this._searchString.substr(0,m);this._searchTimer=this.defer(function(){this._searchTimer=null;this._searchString=""},this.multiCharSearchDuration);var p=this.focusedChild||null;if(1==m||!p)if(p=this._getNextFocusableChild(p,1),!p)return;m=p;do{var l=this._keyboardSearchCompare(p,f);l&&0==k++&&(c=p);if(-1==l){k=-1;break}p=this._getNextFocusableChild(p,
1)}while(p&&p!=m)})();this.onKeyboardSearch(c,b,f,k)},_onChildBlur:function(){},_getNextFocusableChild:function(b,a){var c=b;do{if(b)b=this._getNext(b,a);else if(b=this[0<a?"_getFirst":"_getLast"](),!b)break;if(null!=b&&b!=c&&b.isFocusable())return b}while(b!=c);return null},_getFirst:function(){return null},_getLast:function(){return null},_getNext:function(b,a){if(b)for(b=b.domNode;b;)if((b=b[0>a?"previousSibling":"nextSibling"])&&"getAttribute"in b){var c=g.byNode(b);if(c)return c}return null}})})},
"dijit/tree/_dndSelector":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/dnd/common dojo/dom dojo/mouse dojo/on dojo/touch ../a11yclick ./_dndContainer".split(" "),function(u,A,x,r,h,e,g,d,b,a,c){return A("dijit.tree._dndSelector",c,{constructor:function(){this.selection={};this.anchor=null;this.events.push(d(this.tree.domNode,b.press,r.hitch(this,"onMouseDown")),d(this.tree.domNode,b.release,r.hitch(this,"onMouseUp")),d(this.tree.domNode,b.move,r.hitch(this,
"onMouseMove")),d(this.tree.domNode,a.press,r.hitch(this,"onClickPress")),d(this.tree.domNode,a.release,r.hitch(this,"onClickRelease")))},singular:!1,getSelectedTreeNodes:function(){var f=[],k=this.selection,m;for(m in k)f.push(k[m]);return f},selectNone:function(){this.setSelection([]);return this},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null},addTreeNode:function(f,k){this.setSelection(this.getSelectedTreeNodes().concat([f]));k&&(this.anchor=f);return f},removeTreeNode:function(f){var k=
u.filter(this.getSelectedTreeNodes(),function(m){return!e.isDescendant(m.domNode,f.domNode)});this.setSelection(k);return f},isTreeNodeSelected:function(f){return f.id&&!!this.selection[f.id]},setSelection:function(f){var k=this.getSelectedTreeNodes();u.forEach(this._setDifference(k,f),r.hitch(this,function(m){m.setSelected(!1);this.anchor==m&&delete this.anchor;delete this.selection[m.id]}));u.forEach(this._setDifference(f,k),r.hitch(this,function(m){m.setSelected(!0);this.selection[m.id]=m}));this._updateSelectionProperties()},
_setDifference:function(f,k){u.forEach(k,function(p){p.__exclude__=!0});var m=u.filter(f,function(p){return!p.__exclude__});u.forEach(k,function(p){delete p.__exclude__});return m},_updateSelectionProperties:function(){var f=this.getSelectedTreeNodes(),k=[],m=[];u.forEach(f,function(p){var l=p.getTreePath();m.push(p);k.push(l)},this);f=u.map(m,function(p){return p.item});this.tree._set("paths",k);this.tree._set("path",k[0]||[]);this.tree._set("selectedNodes",m);this.tree._set("selectedNode",m[0]||
null);this.tree._set("selectedItems",f);this.tree._set("selectedItem",f[0]||null)},onClickPress:function(f){if(!(this.current&&this.current.isExpandable&&this.tree.isExpandoNode(f.target,this.current))){"mousedown"==f.type&&g.isLeft(f)&&f.preventDefault();var k="keydown"==f.type?this.tree.focusedChild:this.current;if(k){var m=h.getCopyKeyState(f),p=k.id;this.singular||f.shiftKey||!this.selection[p]?(this._doDeselect=!1,this.userSelect(k,m,f.shiftKey)):this._doDeselect=!0}}},onClickRelease:function(f){this._doDeselect&&
(this._doDeselect=!1,this.userSelect("keyup"==f.type?this.tree.focusedChild:this.current,h.getCopyKeyState(f),f.shiftKey))},onMouseMove:function(){this._doDeselect=!1},onMouseDown:function(){},onMouseUp:function(){},_compareNodes:function(f,k){if(f===k)return 0;if("sourceIndex"in document.documentElement)return f.sourceIndex-k.sourceIndex;if("compareDocumentPosition"in document.documentElement)return f.compareDocumentPosition(k)&2?1:-1;if(document.createRange){var m=doc.createRange();m.setStartBefore(f);
var p=doc.createRange();p.setStartBefore(k);return m.compareBoundaryPoints(m.END_TO_END,p)}throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");},userSelect:function(f,k,m){if(this.singular)this.anchor==f&&k?this.selectNone():(this.setSelection([f]),this.anchor=f);else if(m&&this.anchor){k=this._compareNodes(this.anchor.rowNode,f.rowNode);m=this.anchor;0>k?k=m:(k=f,f=m);for(m=[];k!=f;)m.push(k),k=this.tree._getNext(k);m.push(f);this.setSelection(m)}else this.selection[f.id]&&
k?this.removeTreeNode(f):k?this.addTreeNode(f,!0):(this.setSelection([f]),this.anchor=f)},getItem:function(f){return{data:this.selection[f],type:["treeNode"]}},forInSelectedItems:function(f,k){k=k||x.global;for(var m in this.selection)f.call(k,this.getItem(m),m,this)}})})},"dojo/dnd/common":function(){define(["../sniff","../_base/kernel","../_base/lang","../dom"],function(u,A,x,r){var h=x.getObject("dojo.dnd",!0);h.getCopyKeyState=function(e){return e[u("mac")?"metaKey":"ctrlKey"]};h._uniqueId=0;
h.getUniqueId=function(){do var e=A._scopeName+"Unique"+ ++h._uniqueId;while(r.byId(e));return e};h._empty={};h.isFormElement=function(e){e=e.target;3==e.nodeType&&(e=e.parentNode);return 0<=" a button textarea input select option ".indexOf(" "+e.tagName.toLowerCase()+" ")};return h})},"dijit/tree/_dndContainer":function(){define("dojo/aspect dojo/_base/declare dojo/dom-class dojo/_base/lang dojo/on dojo/touch".split(" "),function(u,A,x,r,h,e){return A("dijit.tree._dndContainer",null,{constructor:function(g,
d){this.tree=g;this.node=g.domNode;r.mixin(this,d);this.containerState="";x.add(this.node,"dojoDndContainer");this.events=[h(this.node,e.enter,r.hitch(this,"onOverEvent")),h(this.node,e.leave,r.hitch(this,"onOutEvent")),u.after(this.tree,"_onNodeMouseEnter",r.hitch(this,"onMouseOver"),!0),u.after(this.tree,"_onNodeMouseLeave",r.hitch(this,"onMouseOut"),!0),h(this.node,"dragstart, selectstart",function(b){b.preventDefault()})]},destroy:function(){for(var g;g=this.events.pop();)g.remove();this.node=
this.parent=null},onMouseOver:function(g){this.current=g},onMouseOut:function(){this.current=null},_changeState:function(g,d){var b="dojoDnd"+g,a=g.toLowerCase()+"State";x.replace(this.node,b+d,b+this[a]);this[a]=d},_addItemClass:function(g,d){x.add(g,"dojoDndItem"+d)},_removeItemClass:function(g,d){x.remove(g,"dojoDndItem"+d)},onOverEvent:function(){this._changeState("Container","Over")},onOutEvent:function(){this._changeState("Container","")}})})},"dijit/tree/dndSource":function(){define("dojo/_base/array dojo/_base/declare dojo/dnd/common dojo/dom-class dojo/dom-geometry dojo/_base/lang dojo/mouse dojo/on dojo/touch dojo/topic dojo/dnd/Manager ./_dndSelector".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f){return A("dijit.tree.dndSource",f,{isSource:!0,accept:["text","treeNode"],copyOnly:!1,dragThreshold:5,betweenThreshold:0,generateText:!0,constructor:function(k,m){m||(m={});e.mixin(this,m);var p=m.accept instanceof Array?m.accept:["text","treeNode"];this.accept=null;if(p.length){this.accept={};for(var l=0;l<p.length;++l)this.accept[p[l]]=1}this.mouseDown=this.isDragging=!1;this.targetBox=this.targetAnchor=null;this.dropPosition="";this._lastY=this._lastX=0;this.sourceState=
"";this.isSource&&r.add(this.node,"dojoDndSource");this.targetState="";this.accept&&r.add(this.node,"dojoDndTarget");this.topics=[a.subscribe("/dnd/source/over",e.hitch(this,"onDndSourceOver")),a.subscribe("/dnd/start",e.hitch(this,"onDndStart")),a.subscribe("/dnd/drop",e.hitch(this,"onDndDrop")),a.subscribe("/dnd/cancel",e.hitch(this,"onDndCancel"))]},checkAcceptance:function(){return!0},copyState:function(k){return this.copyOnly||k},destroy:function(){this.inherited(arguments);for(var k;k=this.topics.pop();)k.remove();
this.targetAnchor=null},_onDragMouse:function(k,m){var p=c.manager(),l=this.targetAnchor,n=this.current,q=this.dropPosition,w="Over";n&&0<this.betweenThreshold&&(this.targetBox&&l==n||(this.targetBox=h.position(n.rowNode,!0)),k.pageY-this.targetBox.y<=this.betweenThreshold?w="Before":k.pageY-this.targetBox.y>=this.targetBox.h-this.betweenThreshold&&(w="After"));if(m||n!=l||w!=q){l&&this._removeItemClass(l.rowNode,q);n&&this._addItemClass(n.rowNode,w);if(n)if(n==this.tree.rootNode&&"Over"!=w)p.canDrop(!1);
else{q=l=!1;if(p.source==this){q="Over"===w;for(var t in this.selection){var v=this.selection[t];if(v.item===n.item){l=!0;break}v.getParent().id!==n.id&&(q=!1)}}p.canDrop(!l&&!q&&!this._isParentChildDrop(p.source,n.rowNode)&&this.checkItemAcceptance(n.rowNode,p.source,w.toLowerCase()))}else p.canDrop(!1);this.targetAnchor=n;this.dropPosition=w}},onMouseMove:function(k){if(!this.isDragging||"Disabled"!=this.targetState){this.inherited(arguments);var m=c.manager();if(this.isDragging)this._onDragMouse(k);
else if(this.mouseDown&&this.isSource&&(Math.abs(k.pageX-this._lastX)>=this.dragThreshold||Math.abs(k.pageY-this._lastY)>=this.dragThreshold)){var p=this.getSelectedTreeNodes();if(p.length){if(1<p.length){var l=this.selection,n=0,q=[],w,t;a:for(;w=p[n++];){for(t=w.getParent();t&&t!==this.tree;t=t.getParent())if(l[t.id])continue a;q.push(w)}p=q}p=u.map(p,function(v){return v.domNode});m.startDrag(this,p,this.copyState(x.getCopyKeyState(k)));this._onDragMouse(k,!0)}}}},onMouseDown:function(k){if("touchstart"==
k.type||g.isLeft(k))this.mouseDown=!0,this.mouseButton=k.button,this._lastX=k.pageX,this._lastY=k.pageY;this.inherited(arguments)},onMouseUp:function(k){this.mouseDown&&(this.mouseDown=!1,this.inherited(arguments))},onMouseOut:function(){this.inherited(arguments);this._unmarkTargetAnchor()},checkItemAcceptance:function(){return!0},onDndSourceOver:function(k){this!=k?(this.mouseDown=!1,this._unmarkTargetAnchor()):this.isDragging&&c.manager().canDrop(!1)},onDndStart:function(k,m,p){this.isSource&&this._changeState("Source",
this==k?p?"Copied":"Moved":"");m=this.checkAcceptance(k,m);this._changeState("Target",m?"":"Disabled");this==k&&c.manager().overSource(this);this.isDragging=!0},itemCreator:function(k){return u.map(k,function(m){return{id:m.id,name:m.textContent||m.innerText||""}})},onDndDrop:function(k,m,p){if("Over"==this.containerState){var l=this.tree,n=l.model,q=this.targetAnchor,w=!1;this.isDragging=!1;var t=q&&q.item||l.item;if("Before"==this.dropPosition||"After"==this.dropPosition){t=q.getParent()&&q.getParent().item||
l.item;var v=q.getIndexInParent();if("After"==this.dropPosition){v=q.getIndexInParent()+1;var y=q.getNextSibling()&&q.getNextSibling().item}else y=q.item}else t=q&&q.item||l.item,w=!0;var z;u.forEach(m,function(C,G){var B=k.getItem(C.id);if(-1!=u.indexOf(B.type,"treeNode"))var D=B.data,E=D.item,J=D.getParent().item;k==this?("number"==typeof v&&t==J&&D.getIndexInParent()<v&&--v,n.pasteItem(E,J,t,p,v,y)):n.isItem(E)?n.pasteItem(E,J,t,p,v,y):(z||(z=this.itemCreator(m,q.rowNode,k)),n.newItem(z[G],t,v,
y))},this);w&&this.tree._expandNode(q)}this.onDndCancel()},onDndCancel:function(){this._unmarkTargetAnchor();this.mouseDown=this.isDragging=!1;delete this.mouseButton;this._changeState("Source","");this._changeState("Target","")},onOverEvent:function(){this.inherited(arguments);c.manager().overSource(this)},onOutEvent:function(){this._unmarkTargetAnchor();var k=c.manager();this.isDragging&&k.canDrop(!1);k.outSource(this);this.inherited(arguments)},_isParentChildDrop:function(k,m){if(!k.tree||k.tree!=
this.tree)return!1;for(var p=k.tree.domNode,l=k.selection,n=m.parentNode;n!=p&&!l[n.id];)n=n.parentNode;return n.id&&l[n.id]},_unmarkTargetAnchor:function(){this.targetAnchor&&(this._removeItemClass(this.targetAnchor.rowNode,this.dropPosition),this.dropPosition=this.targetBox=this.targetAnchor=null)},_markDndStatus:function(k){this._changeState("Source",k?"Copied":"Moved")}})})},"dojo/dnd/Manager":function(){define("../_base/array ../_base/declare ../_base/lang ../_base/window ../dom-class ../Evented ../has ../keys ../on ../topic ../touch ./common ./autoscroll ./Avatar".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m){var p=A("dojo.dnd.Manager",[e],{constructor:function(){this.source=this.avatar=null;this.nodes=[];this.copy=!0;this.target=null;this.canDropFlag=!1;this.events=[]},OFFSET_X:g("touch")?4:16,OFFSET_Y:g("touch")?4:16,overSource:function(l){this.avatar&&(this.target=l&&"Disabled"!=l.targetState?l:null,this.canDropFlag=!!this.target,this.avatar.update());a.publish("/dnd/source/over",l)},outSource:function(l){this.avatar?this.target==l&&(this.target=null,this.canDropFlag=
!1,this.avatar.update(),a.publish("/dnd/source/over",null)):a.publish("/dnd/source/over",null)},startDrag:function(l,n,q){function w(t){t.preventDefault();t.stopPropagation()}k.autoScrollStart(r.doc);this.source=l;this.nodes=n;this.copy=!!q;this.avatar=this.makeAvatar();r.body().appendChild(this.avatar.node);a.publish("/dnd/start",l,n,this.copy);this.events=[b(r.doc,c.move,x.hitch(this,"onMouseMove")),b(r.doc,c.release,x.hitch(this,"onMouseUp")),b(r.doc,"keydown",x.hitch(this,"onKeyDown")),b(r.doc,
"keyup",x.hitch(this,"onKeyUp")),b(r.doc,"dragstart",w),b(r.body(),"selectstart",w)];l="dojoDnd"+(q?"Copy":"Move");h.add(r.body(),l)},canDrop:function(l){l=!(!this.target||!l);this.canDropFlag!=l&&(this.canDropFlag=l,this.avatar.update())},stopDrag:function(){h.remove(r.body(),["dojoDndCopy","dojoDndMove"]);u.forEach(this.events,function(l){l.remove()});this.events=[];this.avatar.destroy();this.source=this.target=this.avatar=null;this.nodes=[]},makeAvatar:function(){return new m(this)},updateAvatar:function(){this.avatar.update()},
onMouseMove:function(l){var n=this.avatar;n&&(k.autoScrollNodes(l),n=n.node.style,n.left=l.pageX+this.OFFSET_X+"px",n.top=l.pageY+this.OFFSET_Y+"px",n=!!this.source.copyState(f.getCopyKeyState(l)),this.copy!=n&&this._setCopyStatus(n));g("touch")&&l.preventDefault()},onMouseUp:function(l){if(this.avatar){if(this.target&&this.canDropFlag){var n=!!this.source.copyState(f.getCopyKeyState(l));a.publish("/dnd/drop/before",this.source,this.nodes,n,this.target,l);a.publish("/dnd/drop",this.source,this.nodes,
n,this.target,l)}else a.publish("/dnd/cancel");this.stopDrag()}},onKeyDown:function(l){if(this.avatar)switch(l.keyCode){case d.CTRL:l=!!this.source.copyState(!0);this.copy!=l&&this._setCopyStatus(l);break;case d.ESCAPE:a.publish("/dnd/cancel"),this.stopDrag()}},onKeyUp:function(l){this.avatar&&l.keyCode==d.CTRL&&(l=!!this.source.copyState(!1),this.copy!=l&&this._setCopyStatus(l))},_setCopyStatus:function(l){this.copy=l;this.source._markDndStatus(this.copy);this.updateAvatar();h.replace(r.body(),"dojoDnd"+
(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"))}});f._manager=null;p.manager=f.manager=function(){f._manager||(f._manager=new p);return f._manager};return p})},"dojo/dnd/autoscroll":function(){define("../_base/lang ../sniff ../_base/window ../dom-geometry ../dom-style ../window".split(" "),function(u,A,x,r,h,e){var g={};u.setObject("dojo.dnd.autoscroll",g);g.getViewport=e.getBox;g.V_TRIGGER_AUTOSCROLL=32;g.H_TRIGGER_AUTOSCROLL=32;g.V_AUTOSCROLL_VALUE=16;g.H_AUTOSCROLL_VALUE=16;var d,
b=x.doc,a=Infinity,c=Infinity;g.autoScrollStart=function(f){b=f;d=e.getBox(b);f=x.body(b).parentNode;a=Math.max(f.scrollHeight-d.h,0);c=Math.max(f.scrollWidth-d.w,0)};g.autoScroll=function(f){var k=d||e.getBox(b),m=x.body(b).parentNode,p=0,l=0;f.clientX<g.H_TRIGGER_AUTOSCROLL?p=-g.H_AUTOSCROLL_VALUE:f.clientX>k.w-g.H_TRIGGER_AUTOSCROLL&&(p=Math.min(g.H_AUTOSCROLL_VALUE,c-m.scrollLeft));f.clientY<g.V_TRIGGER_AUTOSCROLL?l=-g.V_AUTOSCROLL_VALUE:f.clientY>k.h-g.V_TRIGGER_AUTOSCROLL&&(l=Math.min(g.V_AUTOSCROLL_VALUE,
a-m.scrollTop));window.scrollBy(p,l)};g._validNodes={div:1,p:1,td:1};g._validOverflow={auto:1,scroll:1};g.autoScrollNodes=function(f){for(var k,m,p,l,n,q=0,w=0,t=f.target;t;){if(1==t.nodeType&&t.tagName.toLowerCase()in g._validNodes){p=h.getComputedStyle(t);n=p.overflowX.toLowerCase()in g._validOverflow;l=p.overflowY.toLowerCase()in g._validOverflow;if(n||l)k=r.getContentBox(t,p),m=r.position(t,!0);if(n){p=Math.min(g.H_TRIGGER_AUTOSCROLL,k.w/2);n=f.pageX-m.x;if(A("webkit")||A("opera"))n+=x.body().scrollLeft;
q=0;0<n&&n<k.w&&(n<p?q=-p:n>k.w-p&&(q=p),t.scrollLeft+=q)}if(l){l=Math.min(g.V_TRIGGER_AUTOSCROLL,k.h/2);p=f.pageY-m.y;if(A("webkit")||A("opera"))p+=x.body().scrollTop;w=0;0<p&&p<k.h&&(p<l?w=-l:p>k.h-l&&(w=l),t.scrollTop+=w)}if(q||w)return}try{t=t.parentNode}catch(v){t=null}}g.autoScroll(f)};return g})},"dojo/dnd/Avatar":function(){define("../_base/declare ../_base/window ../dom ../dom-attr ../dom-class ../dom-construct ../hccss ../query".split(" "),function(u,A,x,r,h,e,g,d){return u("dojo.dnd.Avatar",
null,{constructor:function(b){this.manager=b;this.construct()},construct:function(){var b=e.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),a=this.manager.source,c=e.create("tbody",null,b),f=e.create("tr",null,c),k=e.create("td",null,f),m=Math.min(5,this.manager.nodes.length),p=0;g("highcontrast")&&e.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"\x3c"},k);e.create("span",{innerHTML:a.generateText?this._generateText():""},k);for(r.set(f,
{"class":"dojoDndAvatarHeader",style:{opacity:.9}});p<m;++p){if(a.creator)var l=a._normalizedCreator(a.getItem(this.manager.nodes[p].id).data,"avatar").node;else l=this.manager.nodes[p].cloneNode(!0),"tr"==l.tagName.toLowerCase()&&(f=e.create("table"),e.create("tbody",null,f).appendChild(l),l=f);l.id="";f=e.create("tr",null,c);k=e.create("td",null,f);k.appendChild(l);r.set(f,{"class":"dojoDndAvatarItem",style:{opacity:(9-p)/10}})}this.node=b},destroy:function(){e.destroy(this.node);this.node=!1},
update:function(){h.toggle(this.node,"dojoDndAvatarCanDrop",this.manager.canDropFlag);if(g("highcontrast")){var b=x.byId("a11yIcon"),a="+";this.manager.canDropFlag&&!this.manager.copy?a="\x3c ":this.manager.canDropFlag||this.manager.copy?this.manager.canDropFlag||(a="x"):a="o";b.innerHTML=a}d("tr.dojoDndAvatarHeader td span"+(g("highcontrast")?" span":""),this.node).forEach(function(c){c.innerHTML=this.manager.source.generateText?this._generateText():""},this)},_generateText:function(){return this.manager.nodes.length.toString()}})})},
"dojo/data/ItemFileWriteStore":function(){define("../_base/lang ../_base/declare ../_base/array ../_base/json ../_base/kernel ./ItemFileReadStore ../date/stamp".split(" "),function(u,A,x,r,h,e,g){return A("dojo.data.ItemFileWriteStore",e,{constructor:function(d){this._features["dojo.data.api.Write"]=!0;this._features["dojo.data.api.Notification"]=!0;this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};this._datatypeMap.Date.serialize||(this._datatypeMap.Date.serialize=function(b){return g.toISOString(b,
{zulu:!0})});d&&!1===d.referenceIntegrity&&(this.referenceIntegrity=!1);this._saveInProgress=!1},referenceIntegrity:!0,_assert:function(d){if(!d)throw Error("assertion failed in ItemFileWriteStore");},_getIdentifierAttribute:function(){return this.getFeatures()["dojo.data.api.Identity"]},newItem:function(d,b){this._assert(!this._saveInProgress);this._loadFinished||this._forceLoad();if("object"!=typeof d&&"undefined"!=typeof d)throw Error("newItem() was passed something other than an object");var a=
null,c=this._getIdentifierAttribute();if(c===Number)a=this._arrayOfAllItems.length;else{a=d[c];if("undefined"===typeof a)throw Error("newItem() was not passed an identity for the new item");if(u.isArray(a))throw Error("newItem() was not passed an single-valued identity");}this._itemsByIdentity&&this._assert("undefined"===typeof this._itemsByIdentity[a]);this._assert("undefined"===typeof this._pending._newItems[a]);this._assert("undefined"===typeof this._pending._deletedItems[a]);var f={};f[this._storeRefPropName]=
this;f[this._itemNumPropName]=this._arrayOfAllItems.length;this._itemsByIdentity&&(this._itemsByIdentity[a]=f,f[c]=[a]);this._arrayOfAllItems.push(f);c=null;if(b&&b.parent&&b.attribute){c={item:b.parent,attribute:b.attribute,oldValue:void 0};var k=this.getValues(b.parent,b.attribute);if(k&&0<k.length){var m=k.slice(0,k.length);c.oldValue=1===k.length?k[0]:k.slice(0,k.length);m.push(f);this._setValueOrValues(b.parent,b.attribute,m,!1);c.newValue=this.getValues(b.parent,b.attribute)}else this._setValueOrValues(b.parent,
b.attribute,f,!1),c.newValue=f}else f[this._rootItemPropName]=!0,this._arrayOfTopLevelItems.push(f);this._pending._newItems[a]=f;for(var p in d){if(p===this._storeRefPropName||p===this._itemNumPropName)throw Error("encountered bug in ItemFileWriteStore.newItem");a=d[p];u.isArray(a)||(a=[a]);f[p]=a;if(this.referenceIntegrity)for(k=0;k<a.length;k++)m=a[k],this.isItem(m)&&this._addReferenceToMap(m,f,p)}this.onNew(f,c);return f},_removeArrayElement:function(d,b){var a=x.indexOf(d,b);return-1!=a?(d.splice(a,
1),!0):!1},deleteItem:function(d){this._assert(!this._saveInProgress);this._assertIsItem(d);var b=d[this._itemNumPropName],a=this.getIdentity(d);if(this.referenceIntegrity){var c=this.getAttributes(d);d[this._reverseRefMap]&&(d["backup_"+this._reverseRefMap]=u.clone(d[this._reverseRefMap]));x.forEach(c,function(n){x.forEach(this.getValues(d,n),function(q){this.isItem(q)&&(d["backupRefs_"+this._reverseRefMap]||(d["backupRefs_"+this._reverseRefMap]=[]),d["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(q),
attr:n}),this._removeReferenceFromMap(q,d,n))},this)},this);if(c=d[this._reverseRefMap])for(var f in c){var k=null;if(k=this._itemsByIdentity?this._itemsByIdentity[f]:this._arrayOfAllItems[f])for(var m in c[f]){var p=this.getValues(k,m)||[],l=x.filter(p,function(n){return!(this.isItem(n)&&this.getIdentity(n)==a)},this);this._removeReferenceFromMap(d,k,m);l.length<p.length&&this._setValueOrValues(k,m,l,!0)}}}this._arrayOfAllItems[b]=null;d[this._storeRefPropName]=null;this._itemsByIdentity&&delete this._itemsByIdentity[a];
this._pending._deletedItems[a]=d;d[this._rootItemPropName]&&this._removeArrayElement(this._arrayOfTopLevelItems,d);this.onDelete(d);return!0},setValue:function(d,b,a){return this._setValueOrValues(d,b,a,!0)},setValues:function(d,b,a){return this._setValueOrValues(d,b,a,!0)},unsetAttribute:function(d,b){return this._setValueOrValues(d,b,[],!0)},_setValueOrValues:function(d,b,a,c){this._assert(!this._saveInProgress);this._assertIsItem(d);this._assert(u.isString(b));this._assert("undefined"!==typeof a);
var f=this._getIdentifierAttribute();if(b==f)throw Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");f=this._getValueOrValues(d,b);var k=this.getIdentity(d);if(!this._pending._modifiedItems[k]){var m={};for(p in d)m[p]=p===this._storeRefPropName||p===this._itemNumPropName||p===this._rootItemPropName?d[p]:p===this._reverseRefMap?u.clone(d[p]):d[p].slice(0,d[p].length);this._pending._modifiedItems[k]=m}k=!1;if(u.isArray(a)&&0===a.length){if(k=delete d[b],
a=void 0,this.referenceIntegrity&&f){var p=f;u.isArray(p)||(p=[p]);for(var l=0;l<p.length;l++)m=p[l],this.isItem(m)&&this._removeReferenceFromMap(m,d,b)}}else{k=u.isArray(a)?a.slice(0,a.length):[a];if(this.referenceIntegrity)if(f){p=f;u.isArray(p)||(p=[p]);var n={};x.forEach(p,function(q){this.isItem(q)&&(q=this.getIdentity(q),n[q.toString()]=!0)},this);x.forEach(k,function(q){if(this.isItem(q)){var w=this.getIdentity(q);n[w.toString()]?delete n[w.toString()]:this._addReferenceToMap(q,d,b)}},this);
for(l in n)this._removeReferenceFromMap(this._itemsByIdentity?this._itemsByIdentity[l]:this._arrayOfAllItems[l],d,b)}else for(l=0;l<k.length;l++)m=k[l],this.isItem(m)&&this._addReferenceToMap(m,d,b);d[b]=k;k=!0}if(c)this.onSet(d,b,f,a);return k},_addReferenceToMap:function(d,b,a){b=this.getIdentity(b);var c=d[this._reverseRefMap];c||(c=d[this._reverseRefMap]={});(d=c[b])||(d=c[b]={});d[a]=!0},_removeReferenceFromMap:function(d,b,a){b=this.getIdentity(b);var c=d[this._reverseRefMap],f;if(c){for(f in c)f==
b&&(delete c[f][a],this._isEmpty(c[f])&&delete c[f]);this._isEmpty(c)&&delete d[this._reverseRefMap]}},_dumpReferenceMap:function(){var d;for(d=0;d<this._arrayOfAllItems.length;d++);},_getValueOrValues:function(d,b){var a=void 0;this.hasAttribute(d,b)&&(a=this.getValues(d,b),a=1==a.length?a[0]:a);return a},_flatten:function(d){if(this.isItem(d))return{_reference:this.getIdentity(d)};if("object"===typeof d)for(var b in this._datatypeMap){var a=this._datatypeMap[b];if(u.isObject(a)&&!u.isFunction(a)){if(d instanceof
a.type){if(!a.serialize)throw Error("ItemFileWriteStore:  No serializer defined for type mapping: ["+b+"]");return{_type:b,_value:a.serialize(d)}}}else if(d instanceof a)return{_type:b,_value:d.toString()}}return d},_getNewFileContentString:function(){var d={},b=this._getIdentifierAttribute();b!==Number&&(d.identifier=b);this._labelAttr&&(d.label=this._labelAttr);d.items=[];for(b=0;b<this._arrayOfAllItems.length;++b){var a=this._arrayOfAllItems[b];if(null!==a){var c={},f;for(f in a)if(f!==this._storeRefPropName&&
f!==this._itemNumPropName&&f!==this._reverseRefMap&&f!==this._rootItemPropName){var k=this.getValues(a,f);if(1==k.length)c[f]=this._flatten(k[0]);else for(var m=[],p=0;p<k.length;++p)m.push(this._flatten(k[p])),c[f]=m}d.items.push(c)}}return r.toJson(d,!0)},_isEmpty:function(d){var b=!0;if(u.isObject(d))for(var a in d){b=!1;break}else u.isArray(d)&&0<d.length&&(b=!1);return b},save:function(d){this._assert(!this._saveInProgress);this._saveInProgress=!0;var b=this,a=function(){b._pending={_newItems:{},
_modifiedItems:{},_deletedItems:{}};b._saveInProgress=!1;d&&d.onComplete&&d.onComplete.call(d.scope||h.global)},c=function(k){b._saveInProgress=!1;d&&d.onError&&d.onError.call(d.scope||h.global,k)};if(this._saveEverything){var f=this._getNewFileContentString();this._saveEverything(a,c,f)}this._saveCustom&&this._saveCustom(a,c);this._saveEverything||this._saveCustom||a()},revert:function(){this._assert(!this._saveInProgress);for(var d in this._pending._modifiedItems){var b=this._pending._modifiedItems[d],
a=null;a=this._itemsByIdentity?this._itemsByIdentity[d]:this._arrayOfAllItems[d];b[this._storeRefPropName]=this;for(var c in a)delete a[c];u.mixin(a,b)}for(d in this._pending._deletedItems){var f=this._pending._deletedItems[d];f[this._storeRefPropName]=this;b=f[this._itemNumPropName];f["backup_"+this._reverseRefMap]&&(f[this._reverseRefMap]=f["backup_"+this._reverseRefMap],delete f["backup_"+this._reverseRefMap]);this._arrayOfAllItems[b]=f;this._itemsByIdentity&&(this._itemsByIdentity[d]=f);f[this._rootItemPropName]&&
this._arrayOfTopLevelItems.push(f)}for(d in this._pending._deletedItems)f=this._pending._deletedItems[d],f["backupRefs_"+this._reverseRefMap]&&(x.forEach(f["backupRefs_"+this._reverseRefMap],function(k){this._addReferenceToMap(this._itemsByIdentity?this._itemsByIdentity[k.id]:this._arrayOfAllItems[k.id],f,k.attr)},this),delete f["backupRefs_"+this._reverseRefMap]);for(d in this._pending._newItems)b=this._pending._newItems[d],b[this._storeRefPropName]=null,this._arrayOfAllItems[b[this._itemNumPropName]]=
null,b[this._rootItemPropName]&&this._removeArrayElement(this._arrayOfTopLevelItems,b),this._itemsByIdentity&&delete this._itemsByIdentity[d];this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};return!0},isDirty:function(d){return d?(d=this.getIdentity(d),(new Boolean(this._pending._newItems[d]||this._pending._modifiedItems[d]||this._pending._deletedItems[d])).valueOf()):!this._isEmpty(this._pending._newItems)||!this._isEmpty(this._pending._modifiedItems)||!this._isEmpty(this._pending._deletedItems)},
onSet:function(d,b,a,c){},onNew:function(d,b){},onDelete:function(d){},close:function(d){if(this.clearOnClose){if(this.isDirty())throw Error("dojo.data.ItemFileWriteStore: There are unsaved changes present in the store.  Please save or revert the changes before invoking close.");this.inherited(arguments)}}})})},"dojo/data/ItemFileReadStore":function(){define("../_base/kernel ../_base/lang ../_base/declare ../_base/array ../_base/xhr ../Evented ./util/filter ./util/simpleFetch ../date/stamp".split(" "),
function(u,A,x,r,h,e,g,d,b){x=x("dojo.data.ItemFileReadStore",[e],{constructor:function(a){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=!1;this.url=this._ccUrl=this._jsonFileUrl=a.url;this._jsonData=a.data;this.data=null;this._datatypeMap=a.typeMap||{};this._datatypeMap.Date||(this._datatypeMap.Date={type:Date,deserialize:function(c){return b.fromISOString(c)}});this._features={"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0};this._itemsByIdentity=null;this._storeRefPropName=
"_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=!1;this._queuedFetches=[];void 0!==a.urlPreventCache&&(this.urlPreventCache=a.urlPreventCache?!0:!1);void 0!==a.hierarchical&&(this.hierarchical=a.hierarchical?!0:!1);a.clearOnClose&&(this.clearOnClose=!0);"failOk"in a&&(this.failOk=a.failOk?!0:!1)},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:!1,urlPreventCache:!1,failOk:!1,hierarchical:!0,_assertIsItem:function(a){if(!this.isItem(a))throw Error(this.declaredClass+
": Invalid item argument.");},_assertIsAttribute:function(a){if("string"!==typeof a)throw Error(this.declaredClass+": Invalid attribute argument.");},getValue:function(a,c,f){a=this.getValues(a,c);return 0<a.length?a[0]:f},getValues:function(a,c){this._assertIsItem(a);this._assertIsAttribute(c);return(a[c]||[]).slice(0)},getAttributes:function(a){this._assertIsItem(a);var c=[],f;for(f in a)f!==this._storeRefPropName&&f!==this._itemNumPropName&&f!==this._rootItemPropName&&f!==this._reverseRefMap&&
c.push(f);return c},hasAttribute:function(a,c){this._assertIsItem(a);this._assertIsAttribute(c);return c in a},containsValue:function(a,c,f){var k=void 0;"string"===typeof f&&(k=g.patternToRegExp(f,!1));return this._containsValue(a,c,f,k)},_containsValue:function(a,c,f,k){return r.some(this.getValues(a,c),function(m){if(null!==m&&!A.isObject(m)&&k){if(m.toString().match(k))return!0}else if(f===m)return!0})},isItem:function(a){return a&&a[this._storeRefPropName]===this&&this._arrayOfAllItems[a[this._itemNumPropName]]===
a?!0:!1},isItemLoaded:function(a){return this.isItem(a)},loadItem:function(a){this._assertIsItem(a.item)},getFeatures:function(){return this._features},getLabel:function(a){if(this._labelAttr&&this.isItem(a))return this.getValue(a,this._labelAttr)},getLabelAttributes:function(a){return this._labelAttr?[this._labelAttr]:null},filter:function(a,c,f){var k=[];if(a.query){var m=a.queryOptions?a.queryOptions.ignoreCase:!1;var p={};for(w in a.query){var l=a.query[w];"string"===typeof l?p[w]=g.patternToRegExp(l,
m):l instanceof RegExp&&(p[w]=l)}for(m=0;m<c.length;++m){var n=!0,q=c[m];if(null===q)n=!1;else for(w in a.query)l=a.query[w],this._containsValue(q,w,l,p[w])||(n=!1);n&&k.push(q)}}else for(m=0;m<c.length;++m){var w=c[m];null!==w&&k.push(w)}f(k,a)},_fetchItems:function(a,c,f){var k=this;if(this._loadFinished)this.filter(a,this._getItemsArray(a.queryOptions),c);else if(this._jsonFileUrl!==this._ccUrl?(u.deprecated(this.declaredClass+": ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0"),
this.url=this._ccUrl=this._jsonFileUrl):this.url!==this._ccUrl&&(this._ccUrl=this._jsonFileUrl=this.url),null!=this.data&&(this._jsonData=this.data,this.data=null),this._jsonFileUrl)if(this._loadInProgress)this._queuedFetches.push({args:a,filter:A.hitch(k,"filter"),findCallback:A.hitch(k,c)});else{this._loadInProgress=!0;var m=h.get({url:k._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});m.addCallback(function(l){try{k._getItemsFromLoadedData(l),
k._loadFinished=!0,k._loadInProgress=!1,k.filter(a,k._getItemsArray(a.queryOptions),c),k._handleQueuedFetches()}catch(n){k._loadFinished=!0,k._loadInProgress=!1,f(n,a)}});m.addErrback(function(l){k._loadInProgress=!1;f(l,a)});var p=null;a.abort&&(p=a.abort);a.abort=function(){var l=m;l&&-1===l.fired&&(l.cancel(),l=null);p&&p.call(a)}}else if(this._jsonData)try{this._loadFinished=!0,this._getItemsFromLoadedData(this._jsonData),this._jsonData=null,k.filter(a,this._getItemsArray(a.queryOptions),c)}catch(l){f(l,
a)}else f(Error(this.declaredClass+": No JSON source data was provided as either URL or a nested Javascript object."),a)},_handleQueuedFetches:function(){if(0<this._queuedFetches.length){for(var a=0;a<this._queuedFetches.length;a++){var c=this._queuedFetches[a],f=c.args,k=c.filter;c=c.findCallback;k?k(f,this._getItemsArray(f.queryOptions),c):this.fetchItemByIdentity(f)}this._queuedFetches=[]}},_getItemsArray:function(a){return a&&a.deep?this._arrayOfAllItems:this._arrayOfTopLevelItems},close:function(a){this.clearOnClose&&
this._loadFinished&&!this._loadInProgress&&(this._arrayOfAllItems=[],this._arrayOfTopLevelItems=[],this._loadFinished=!1,this._itemsByIdentity=null,this._loadInProgress=!1,this._queuedFetches=[])},_getItemsFromLoadedData:function(a){function c(C){return null!==C&&"object"===typeof C&&(!A.isArray(C)||k)&&!A.isFunction(C)&&(C.constructor==Object||A.isArray(C))&&"undefined"===typeof C._reference&&"undefined"===typeof C._type&&"undefined"===typeof C._value&&m.hierarchical}function f(C){m._arrayOfAllItems.push(C);
for(var G in C){var B=C[G];if(B)if(A.isArray(B))for(var D=0;D<B.length;++D){var E=B[D];c(E)&&f(E)}else c(B)&&f(B)}}var k=!1,m=this;this._labelAttr=a.label;var p;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=a.items;for(p=0;p<this._arrayOfTopLevelItems.length;++p){var l=this._arrayOfTopLevelItems[p];A.isArray(l)&&(k=!0);f(l);l[this._rootItemPropName]=!0}var n={},q;for(p=0;p<this._arrayOfAllItems.length;++p)for(q in l=this._arrayOfAllItems[p],l){if(q!==this._rootItemPropName){var w=l[q];null!==
w?A.isArray(w)||(l[q]=[w]):l[q]=[null]}n[q]=q}for(;n[this._storeRefPropName];)this._storeRefPropName+="_";for(;n[this._itemNumPropName];)this._itemNumPropName+="_";for(;n[this._reverseRefMap];)this._reverseRefMap+="_";if(n=a.identifier)for(this._itemsByIdentity={},this._features["dojo.data.api.Identity"]=n,p=0;p<this._arrayOfAllItems.length;++p)if(l=this._arrayOfAllItems[p],a=l[n],a=a[0],Object.hasOwnProperty.call(this._itemsByIdentity,a)){if(this._jsonFileUrl)throw Error(this.declaredClass+":  The json data as specified by: ["+
this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+n+"].  Value collided: ["+a+"]");if(this._jsonData)throw Error(this.declaredClass+":  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+n+"].  Value collided: ["+a+"]");}else this._itemsByIdentity[a]=l;else this._features["dojo.data.api.Identity"]=Number;for(p=0;p<this._arrayOfAllItems.length;++p)l=this._arrayOfAllItems[p],l[this._storeRefPropName]=this,l[this._itemNumPropName]=
p;for(p=0;p<this._arrayOfAllItems.length;++p)for(q in l=this._arrayOfAllItems[p],l)for(a=l[q],n=0;n<a.length;++n)if(w=a[n],null!==w&&"object"==typeof w){if("_type"in w&&"_value"in w){var t=w._type,v=this._datatypeMap[t];if(v)if(A.isFunction(v))a[n]=new v(w._value);else if(A.isFunction(v.deserialize))a[n]=v.deserialize(w._value);else throw Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");else throw Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+
t+"'");}if(w._reference){w=w._reference;if(A.isObject(w))for(t=0;t<this._arrayOfAllItems.length;++t){v=this._arrayOfAllItems[t];var y=!0,z;for(z in w)v[z]!=w[z]&&(y=!1);y&&(a[n]=v)}else a[n]=this._getItemByIdentity(w);this.referenceIntegrity&&(w=a[n],this.isItem(w)&&this._addReferenceToMap(w,l,q))}else this.isItem(w)&&this.referenceIntegrity&&this._addReferenceToMap(w,l,q)}},_addReferenceToMap:function(a,c,f){},getIdentity:function(a){var c=this._features["dojo.data.api.Identity"];return c===Number?
a[this._itemNumPropName]:(a=a[c])?a[0]:null},fetchItemByIdentity:function(a){if(this._loadFinished){var c=this._getItemByIdentity(a.identity);if(a.onItem){var f=a.scope?a.scope:u.global;a.onItem.call(f,c)}}else{var k=this;this._jsonFileUrl!==this._ccUrl?(u.deprecated(this.declaredClass+": ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0"),this.url=this._ccUrl=this._jsonFileUrl):this.url!==this._ccUrl&&(this._ccUrl=this._jsonFileUrl=
this.url);null!=this.data&&null==this._jsonData&&(this._jsonData=this.data,this.data=null);this._jsonFileUrl?this._loadInProgress?this._queuedFetches.push({args:a}):(this._loadInProgress=!0,f=h.get({url:k._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk}),f.addCallback(function(m){var p=a.scope?a.scope:u.global;try{k._getItemsFromLoadedData(m),k._loadFinished=!0,k._loadInProgress=!1,c=k._getItemByIdentity(a.identity),a.onItem&&a.onItem.call(p,c),k._handleQueuedFetches()}catch(l){k._loadInProgress=
!1,a.onError&&a.onError.call(p,l)}}),f.addErrback(function(m){k._loadInProgress=!1;a.onError&&a.onError.call(a.scope?a.scope:u.global,m)})):this._jsonData&&(k._getItemsFromLoadedData(k._jsonData),k._jsonData=null,k._loadFinished=!0,c=k._getItemByIdentity(a.identity),a.onItem&&(f=a.scope?a.scope:u.global,a.onItem.call(f,c)))}},_getItemByIdentity:function(a){var c=null;this._itemsByIdentity?Object.hasOwnProperty.call(this._itemsByIdentity,a)&&(c=this._itemsByIdentity[a]):Object.hasOwnProperty.call(this._arrayOfAllItems,
a)&&(c=this._arrayOfAllItems[a]);void 0===c&&(c=null);return c},getIdentityAttributes:function(a){a=this._features["dojo.data.api.Identity"];return a===Number?null:[a]},_forceLoad:function(){var a=this;this._jsonFileUrl!==this._ccUrl?(u.deprecated(this.declaredClass+": ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0"),this.url=this._ccUrl=this._jsonFileUrl):this.url!==this._ccUrl&&(this._ccUrl=this._jsonFileUrl=this.url);null!=
this.data&&(this._jsonData=this.data,this.data=null);if(this._jsonFileUrl){var c=h.get({url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:!0});c.addCallback(function(f){try{if(!0!==a._loadInProgress&&!a._loadFinished)a._getItemsFromLoadedData(f),a._loadFinished=!0;else if(a._loadInProgress)throw Error(this.declaredClass+":  Unable to perform a synchronous load, an async load is in progress.");}catch(k){throw k;}});c.addErrback(function(f){throw f;
})}else this._jsonData&&(a._getItemsFromLoadedData(a._jsonData),a._jsonData=null,a._loadFinished=!0)}});A.extend(x,d);return x})},"dojo/data/util/filter":function(){define(["../../_base/lang"],function(u){var A={};u.setObject("dojo.data.util.filter",A);A.patternToRegExp=function(x,r){for(var h="^",e=null,g=0;g<x.length;g++)switch(e=x.charAt(g),e){case "\\":h+=e;g++;h+=x.charAt(g);break;case "*":h+=".*";break;case "?":h+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":h+=
"\\";default:h+=e}h+="$";return r?new RegExp(h,"mi"):new RegExp(h,"m")};return A})},"dojo/data/util/simpleFetch":function(){define(["../../_base/lang","../../_base/kernel","./sorter"],function(u,A,x){var r={};u.setObject("dojo.data.util.simpleFetch",r);r.errorHandler=function(h,e){e.onError&&e.onError.call(e.scope||A.global,h,e)};r.fetchHandler=function(h,e){var g=e.abort||null,d=!1,b=e.start?e.start:0,a=e.count&&Infinity!==e.count?b+e.count:h.length;e.abort=function(){d=!0;g&&g.call(e)};var c=e.scope||
A.global;e.store||(e.store=this);e.onBegin&&e.onBegin.call(c,h.length,e);e.sort&&h.sort(x.createSortFunction(e.sort,this));if(e.onItem)for(var f=b;f<h.length&&f<a;++f){var k=h[f];d||e.onItem.call(c,k,e)}e.onComplete&&!d&&(f=null,e.onItem||(f=h.slice(b,a)),e.onComplete.call(c,f,e))};r.fetch=function(h){h=h||{};h.store||(h.store=this);this._fetchItems(h,u.hitch(this,"fetchHandler"),u.hitch(this,"errorHandler"));return h};return r})},"dojo/data/util/sorter":function(){define(["../../_base/lang"],function(u){var A=
{};u.setObject("dojo.data.util.sorter",A);A.basicComparator=function(x,r){var h=-1;null===x&&(x=void 0);null===r&&(r=void 0);if(x==r)h=0;else if(x>r||null==x)h=1;return h};A.createSortFunction=function(x,r){function h(k,m,p,l){return function(n,q){var w=l.getValue(n,k),t=l.getValue(q,k);return m*p(w,t)}}for(var e=[],g,d=r.comparatorMap,b=A.basicComparator,a=0;a<x.length;a++){g=x[a];var c=g.attribute;if(c){g=g.descending?-1:1;var f=b;d&&("string"!==typeof c&&"toString"in c&&(c=c.toString()),f=d[c]||
b);e.push(h(c,g,f,r))}}return function(k,m){for(var p=0;p<e.length;){var l=e[p++](k,m);if(0!==l)return l}return 0}};return A})},"dojo/store/Observable":function(){define(["../_base/lang","../when","../_base/array"],function(u,A,x){var r=function(h){function e(c,f){var k=h[c];k&&(h[c]=function(m,p){var l;"put"===c&&(l=h.getIdentity(m));if(a)return k.apply(this,arguments);a=!0;try{var n=k.apply(this,arguments);A(n,function(q){f("object"==typeof q&&q||m,l,p)});return n}finally{a=!1}})}var g=[],d=0;h=
u.delegate(h);h.notify=function(c,f,k){d++;for(var m=g.slice(),p=0,l=m.length;p<l;p++)m[p](c,f,k)};var b=h.query;h.query=function(c,f){f=f||{};var k=b.apply(this,arguments);if(k&&k.forEach){var m=u.mixin({},f);delete m.start;delete m.count;var p=h.queryEngine&&h.queryEngine(c,m),l=d,n=[],q;k.observe=function(w,t){1==n.push(w)&&g.push(q=function(y,z,C){var G=C&&C.before&&h.getIdentity(C.before);A(k,function(B){var D=B.length!=f.count,E;if(++l!=d)throw Error("Query is out of date, you must observe() the query prior to any data modifications");
var J=-1,I=-1;if(void 0!==z){var F=[].concat(B);p&&!y&&(F=p(B));var H=0;for(E=B.length;H<E;H++){var K=B[H];if(h.getIdentity(K)==z&&!(0>F.indexOf(K))){var L=K;J=H;!p&&y||B.splice(H,1);break}}}if(p){if(y&&(p.matches?p.matches(y):p([y]).length))if(H=-1<J?J:B.length,B.splice(H,0,y),I=x.indexOf(p(B),y),B.splice(H,1),f.start&&0==I||!D&&I==B.length)I=-1;else{if(C&&void 0!==C.before){if(null===C.before)H=B.length;else a:{H=h;D=E=void 0;D=void 0==D?B.length:D;for(E=void 0==E?0:E;E<D;++E)if(H.getIdentity(B[E])===
G){H=E;break a}H=-1}-1!==H&&(I=H)}B.splice(I,0,y)}}else y&&(void 0!==z?I=J:f.start||(I=h.defaultIndex||0,B.splice(I,0,y)));if((-1<J||-1<I)&&(t||!p||J!=I))for(D=n.slice(),H=0;B=D[H];H++)B(y||L,J,I)})});var v={};v.remove=v.cancel=function(){var y=x.indexOf(n,w);-1<y&&(n.splice(y,1),n.length||g.splice(x.indexOf(g,q),1))};return v}}return k};var a;e("put",function(c,f,k){h.notify(c,f,k)});e("add",function(c,f,k){h.notify(c,f,k)});e("remove",function(c){h.notify(void 0,c)});return h};u.setObject("dojo.store.Observable",
r);return r})},"dojo/store/JsonRest":function(){define(["../_base/xhr","../_base/lang","../json","../_base/declare","./util/QueryResults"],function(u,A,x,r,h){return r("dojo.store.JsonRest",null,{constructor:function(e){this.headers={};r.safeMixin(this,e)},headers:{},target:"",idProperty:"id",ascendingPrefix:"+",descendingPrefix:"-",_getTarget:function(e){var g=this.target;"undefined"!=typeof e&&(g="/"==g.charAt(g.length-1)||"\x3d"==g.charAt(g.length-1)?g+e:g+("/"+e));return g},get:function(e,g){g=
g||{};var d=A.mixin({Accept:this.accepts},this.headers,g.headers||g);return u("GET",{url:this._getTarget(e),handleAs:"json",headers:d,timeout:g&&g.timeout})},accepts:"application/javascript, application/json",getIdentity:function(e){return e[this.idProperty]},put:function(e,g){g=g||{};var d="id"in g?g.id:this.getIdentity(e);return u("undefined"==typeof d||g.incremental?"POST":"PUT",{url:this._getTarget(d),postData:x.stringify(e),handleAs:"json",headers:A.mixin({"Content-Type":"application/json",Accept:this.accepts,
"If-Match":!0===g.overwrite?"*":null,"If-None-Match":!1===g.overwrite?"*":null},this.headers,g.headers),timeout:g&&g.timeout})},add:function(e,g){g=g||{};g.overwrite=!1;return this.put(e,g)},remove:function(e,g){g=g||{};return u("DELETE",{url:this._getTarget(e),headers:A.mixin({},this.headers,g.headers),timeout:g&&g.timeout})},query:function(e,g){g=g||{};var d=A.mixin({Accept:this.accepts},this.headers,g.headers),b=-1<this.target.indexOf("?");(e=e||"")&&"object"==typeof e&&(e=(e=u.objectToQuery(e))?
(b?"\x26":"?")+e:"");if(0<=g.start||0<=g.count)d["X-Range"]="items\x3d"+(g.start||"0")+"-"+("count"in g&&Infinity!=g.count?g.count+(g.start||0)-1:""),this.rangeParam?(e+=(e||b?"\x26":"?")+this.rangeParam+"\x3d"+d["X-Range"],b=!0):d.Range=d["X-Range"];if(g&&g.sort){var a=this.sortParam;e+=(e||b?"\x26":"?")+(a?a+"\x3d":"sort(");for(b=0;b<g.sort.length;b++){var c=g.sort[b];e+=(0<b?",":"")+(c.descending?this.descendingPrefix:this.ascendingPrefix)+encodeURIComponent(c.attribute)}a||(e+=")")}var f=u("GET",
{url:this.target+(e||""),handleAs:"json",headers:d,timeout:g&&g.timeout});f.total=f.then(function(){var k=f.ioArgs.xhr.getResponseHeader("Content-Range");k||(k=f.ioArgs.xhr.getResponseHeader("X-Content-Range"));return k&&(k=k.match(/\/(.*)/))&&+k[1]});return h(f)}})})},"dojo/data/ObjectStore":function(){define("../_base/lang ../Evented ../_base/declare ../_base/Deferred ../promise/all ../_base/array ../_base/connect ../regexp".split(" "),function(u,A,x,r,h,e,g,d){function b(a){return"*"==a?".*":"?"==
a?".":a}return x("dojo.data.ObjectStore",[A],{objectStore:null,constructor:function(a){this._dirtyObjects=[];a.labelAttribute&&(a.labelProperty=a.labelAttribute);u.mixin(this,a)},labelProperty:"label",getValue:function(a,c,f){return"function"===typeof a.get?a.get(c):c in a?a[c]:f},getValues:function(a,c){var f=this.getValue(a,c);return f instanceof Array?f:void 0===f?[]:[f]},getAttributes:function(a){var c=[],f;for(f in a)!a.hasOwnProperty(f)||"_"==f.charAt(0)&&"_"==f.charAt(1)||c.push(f);return c},
hasAttribute:function(a,c){return c in a},containsValue:function(a,c,f){return-1<e.indexOf(this.getValues(a,c),f)},isItem:function(a){return"object"==typeof a&&a&&!(a instanceof Date)},isItemLoaded:function(a){return a&&"function"!==typeof a.load},loadItem:function(a){var c;"function"===typeof a.item.load?r.when(a.item.load(),function(f){c=f;var k=f instanceof Error?a.onError:a.onItem;k&&k.call(a.scope,f)}):a.onItem&&a.onItem.call(a.scope,a.item);return c},close:function(a){return a&&a.abort&&a.abort()},
fetch:function(a){function c(q){a.onError&&a.onError.call(k,q,a)}a=u.delegate(a,a&&a.queryOptions);var f=this,k=a.scope||f,m=a.query;if("object"==typeof m){m=u.delegate(m);for(var p in m){var l=m[p];"string"==typeof l&&(m[p]=RegExp("^"+d.escapeString(l,"*?\\").replace(/\\.|\*|\?/g,b)+"$",a.ignoreCase?"mi":"m"),m[p].toString=function(q){return function(){return q}}(l))}}var n=this.objectStore.query(m,a);r.when(n.total,function(q){r.when(n,function(w){a.onBegin&&a.onBegin.call(k,q||w.length,a);if(a.onItem)for(var t=
0;t<w.length;t++)a.onItem.call(k,w[t],a);a.onComplete&&a.onComplete.call(k,a.onItem?null:w,a);return w},c)},c);a.abort=function(){n.cancel&&n.cancel()};n.observe&&(this.observing&&this.observing.cancel(),this.observing=n.observe(function(q,w,t){if(-1==e.indexOf(f._dirtyObjects,q))if(-1==w)f.onNew(q);else if(-1==t)f.onDelete(q);else for(var v in q)if(v!=f.objectStore.idProperty)f.onSet(q,v,null,q[v])},!0));this.onFetch(n);a.store=this;return a},getFeatures:function(){return{"dojo.data.api.Read":!!this.objectStore.get,
"dojo.data.api.Identity":!0,"dojo.data.api.Write":!!this.objectStore.put,"dojo.data.api.Notification":!0}},getLabel:function(a){if(this.isItem(a))return this.getValue(a,this.labelProperty)},getLabelAttributes:function(a){return[this.labelProperty]},getIdentity:function(a){return this.objectStore.getIdentity?this.objectStore.getIdentity(a):a[this.objectStore.idProperty||"id"]},getIdentityAttributes:function(a){return[this.objectStore.idProperty]},fetchItemByIdentity:function(a){var c;r.when(this.objectStore.get(a.identity),
function(f){c=f;a.onItem.call(a.scope,f)},function(f){a.onError.call(a.scope,f)});return c},newItem:function(a,c){if(c){var f=this.getValue(c.parent,c.attribute,[]);f=f.concat([a]);a.__parent=f;this.setValue(c.parent,c.attribute,f)}this._dirtyObjects.push({object:a,save:!0});this.onNew(a);return a},deleteItem:function(a){this.changing(a,!0);this.onDelete(a)},setValue:function(a,c,f){var k=a[c];this.changing(a);a[c]=f;this.onSet(a,c,k,f)},setValues:function(a,c,f){if(!u.isArray(f))throw Error("setValues expects to be passed an Array object as its value");
this.setValue(a,c,f)},unsetAttribute:function(a,c){this.changing(a);var f=a[c];delete a[c];this.onSet(a,c,f,void 0)},changing:function(a,c){a.__isDirty=!0;for(var f=0;f<this._dirtyObjects.length;f++){var k=this._dirtyObjects[f];if(a==k.object){c&&(k.object=!1,this._saveNotNeeded||(k.save=!0));return}}k=a instanceof Array?[]:{};for(f in a)a.hasOwnProperty(f)&&(k[f]=a[f]);this._dirtyObjects.push({object:!c&&a,old:k,save:!this._saveNotNeeded})},save:function(a){a=a||{};var c=[],f=[],k=this,m=this._dirtyObjects;
try{g.connect(a,"onError",function(){if(!1!==a.revertOnError){var v=m;m=f;k.revert();k._dirtyObjects=v}else k._dirtyObjects=m.concat(f)});var p;this.objectStore.transaction&&(p=this.objectStore.transaction());for(var l=0;l<m.length;l++){var n=m[l],q=n.object,w=n.old;delete q.__isDirty;if(q){var t=this.objectStore.put(q,{overwrite:!!w});c.push(t)}else"undefined"!=typeof w&&(t=this.objectStore.remove(this.getIdentity(w)),c.push(t));f.push(n);m.splice(l--,1)}h(c).then(function(v){a.onComplete&&a.onComplete.call(a.scope,
v)},function(v){a.onError&&a.onError.call(a.scope,v)});p&&p.commit()}catch(v){a.onError.call(a.scope,value)}},revert:function(){for(var a=this._dirtyObjects,c=a.length;0<c;){c--;var f=a[c],k=f.object;f=f.old;if(k&&f){for(var m in f)f.hasOwnProperty(m)&&k[m]!==f[m]&&(this.onSet(k,m,k[m],f[m]),k[m]=f[m]);for(m in k)f.hasOwnProperty(m)||(this.onSet(k,m,k[m]),delete k[m])}else if(f)this.onNew(f);else this.onDelete(k);delete (k||f).__isDirty;a.splice(c,1)}},isDirty:function(a){return a?a.__isDirty:!!this._dirtyObjects.length},
onSet:function(){},onNew:function(){},onDelete:function(){},onFetch:function(a){}})})},"dijit/tree/ObjectStoreModel":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/Deferred dojo/_base/lang dojo/when ../Destroyable".split(" "),function(u,A,x,r,h,e,g){return x("dijit.tree.ObjectStoreModel",g,{store:null,labelAttr:"name",labelType:"text",root:null,query:null,constructor:function(d){h.mixin(this,d);this.childrenCache={}},getRoot:function(d,b){if(this.root)d(this.root);else{var a=
this.store.query(this.query);a.then&&this.own(a);e(a,h.hitch(this,function(c){if(1!=c.length)throw Error("dijit.tree.ObjectStoreModel: root query returned "+c.length+" items, but must return exactly one");this.root=c[0];d(this.root);a.observe&&a.observe(h.hitch(this,function(f){this.onChange(f)}),!0)}),b)}},mayHaveChildren:function(){return!0},getChildren:function(d,b,a){var c=this.store.getIdentity(d);if(this.childrenCache[c])e(this.childrenCache[c],b,a);else{var f=this.childrenCache[c]=this.store.getChildren(d);
f.then&&this.own(f);f.observe&&this.own(f.observe(h.hitch(this,function(k,m,p){this.onChange(k);m!=p&&e(f,h.hitch(this,"onChildrenChange",d))}),!0));e(f,b,a)}},isItem:function(){return!0},getIdentity:function(d){return this.store.getIdentity(d)},getLabel:function(d){return d[this.labelAttr]},newItem:function(d,b,a,c){return this.store.put(d,{parent:b,before:c})},pasteItem:function(d,b,a,c,f,k){var m=new r;if(b===a&&!c&&!k)return m.resolve(!0),m;b&&!c?this.getChildren(b,h.hitch(this,function(p){p=
[].concat(p);var l=u.indexOf(p,d);p.splice(l,1);this.onChildrenChange(b,p);m.resolve(this.store.put(d,{overwrite:!0,parent:a,oldParent:b,before:k,isCopy:!1}))})):m.resolve(this.store.put(d,{overwrite:!0,parent:a,oldParent:b,before:k,isCopy:!0}));return m},onChange:function(){},onChildrenChange:function(){},onDelete:function(){}})})},"dojo/store/Cache":function(){define(["../_base/lang","../when"],function(u,A){var x=function(r,h,e){e=e||{};return u.delegate(r,{query:function(g,d){var b=r.query(g,
d);b.forEach(function(a){e.isLoaded&&!e.isLoaded(a)||h.put(a)});return b},queryEngine:r.queryEngine||h.queryEngine,get:function(g,d){return A(h.get(g),function(b){return b||A(r.get(g,d),function(a){a&&h.put(a,{id:g});return a})})},add:function(g,d){return A(r.add(g,d),function(b){h.add(b&&"object"==typeof b?b:g,d);return b})},put:function(g,d){h.remove(d&&d.id||this.getIdentity(g));return A(r.put(g,d),function(b){h.put(b&&"object"==typeof b?b:g,d);return b})},remove:function(g,d){return A(r.remove(g,
d),function(b){return h.remove(g,d)})},evict:function(g){return h.remove(g)}})};u.setObject("dojo.store.Cache",x);return x})},"dojo/store/DataStore":function(){define("../_base/lang ../_base/declare ../Deferred ../_base/array ./util/QueryResults ./util/SimpleQueryEngine".split(" "),function(u,A,x,r,h,e){return A("dojo.store.DataStore",null,{target:"",constructor:function(g){u.mixin(this,g);if(!("idProperty"in g)){try{var d=this.store.getIdentityAttributes()}catch(b){}this.idProperty=(u.isArray(d)?
d[0]:d)||this.idProperty}g=this.store.getFeatures();g["dojo.data.api.Read"]||(this.get=null);g["dojo.data.api.Identity"]||(this.getIdentity=null);g["dojo.data.api.Write"]||(this.put=this.add=null)},idProperty:"id",store:null,queryEngine:e,_objectConverter:function(g){function d(c){for(var f={},k=b.getAttributes(c),m=0;m<k.length;m++){var p=k[m],l=b.getValues(c,p);if(1<l.length){for(p=0;p<l.length;p++){var n=l[p];"object"==typeof n&&b.isItem(n)&&(l[p]=d(n))}n=l}else n=b.getValue(c,p),"object"==typeof n&&
b.isItem(n)&&(n=d(n));f[k[m]]=n}a in f||!b.getIdentity||(f[a]=b.getIdentity(c));return f}var b=this.store,a=this.idProperty;return function(c){return g(c&&d(c))}},get:function(g,d){var b,a,c=new x;this.store.fetchItemByIdentity({identity:g,onItem:this._objectConverter(function(f){c.resolve(b=f)}),onError:function(f){c.reject(a=f)}});if(void 0!==b)return null==b?void 0:b;if(a)throw a;return c.promise},put:function(g,d){d=d||{};var b="undefined"!=typeof d.id?d.id:this.getIdentity(g),a=this.store,c=
this.idProperty,f=new x;if("undefined"==typeof b){var k=a.newItem(g);a.save({onComplete:function(){f.resolve(k)},onError:function(m){f.reject(m)}})}else a.fetchItemByIdentity({identity:b,onItem:function(m){if(m){if(!1===d.overwrite)return f.reject(Error("Overwriting existing object not allowed"));for(var p in g)p!=c&&g.hasOwnProperty(p)&&a.getValue(m,p)!=g[p]&&a.setValue(m,p,g[p])}else{if(!0===d.overwrite)return f.reject(Error("Creating new object not allowed"));m=a.newItem(g)}a.save({onComplete:function(){f.resolve(m)},
onError:function(l){f.reject(l)}})},onError:function(m){f.reject(m)}});return f.promise},add:function(g,d){(d=d||{}).overwrite=!1;return this.put(g,d)},remove:function(g){var d=this.store,b=new x;this.store.fetchItemByIdentity({identity:g,onItem:function(a){try{null==a?b.resolve(!1):(d.deleteItem(a),d.save(),b.resolve(!0))}catch(c){b.reject(c)}},onError:function(a){b.reject(a)}});return b.promise},query:function(g,d){var b=new x(function(){c.abort&&c.abort()});b.total=new x;var a=this._objectConverter(function(f){return f});
var c=this.store.fetch(u.mixin({query:g,onBegin:function(f){b.total.resolve(f)},onComplete:function(f){b.resolve(r.map(f,a))},onError:function(f){b.reject(f)}},d));return h(b)},getIdentity:function(g){return g[this.idProperty]}})})},"dojo/store/api/Store":function(){define(["../../_base/declare"],function(u){var A=u(null,{idProperty:"id",queryEngine:null,get:function(x){},getIdentity:function(x){},put:function(x,r){},add:function(x,r){},remove:function(x){delete this.index[x];for(var r=this.data,
h=this.idProperty,e=0,g=r.length;e<g;e++)if(r[e][h]==x){r.splice(e,1);break}},query:function(x,r){},transaction:function(){},getChildren:function(x,r){},getMetadata:function(x){}});A.PutDirectives=u(null,{});A.SortInformation=u(null,{});A.QueryOptions=u(null,{});A.QueryResults=u(null,{forEach:function(x,r){},filter:function(x,r){},map:function(x,r){},then:function(x,r){},observe:function(x,r){},total:0});A.Transaction=u(null,{commit:function(){},abort:function(x,r){}});return A})},"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(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l){return b("dijit.layout.ContentPane",[x,r,h],{href:"",content:"",extractContent:!1,parseOnLoad:!0,parserScope:u._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(n,q,w){var t=new w(n,q);return!t.href&&t._contentSetter&&t._contentSetter.parseDeferred&&!t._contentSetter.parseDeferred.isFulfilled()?t._contentSetter.parseDeferred.then(function(){return t}):t},create:function(n,q){if(!(n&&n.template||!q||"href"in n||"content"in n)){q=c.byId(q);for(var w=q.ownerDocument.createDocumentFragment();q.firstChild;)w.appendChild(q.firstChild);
n=A.delegate(n,{content:w})}this.inherited(arguments,[n,q])},postMixInProperties:function(){this.inherited(arguments);var n=p.getLocalization("dijit","loading",this.lang);this.loadingMessage=e.substitute(this.loadingMessage,n);this.errorMessage=e.substitute(this.errorMessage,n)},buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode);this.domNode.removeAttribute("title")},startup:function(){this.inherited(arguments);this._contentSetter&&d.forEach(this._contentSetter.parseResults,
function(n){n._started||n._destroyed||!A.isFunction(n.startup)||(n.startup(),n._started=!0)},this)},_startChildren:function(){d.forEach(this.getChildren(),function(n){n._started||n._destroyed||!A.isFunction(n.startup)||(n.startup(),n._started=!0)});this._contentSetter&&d.forEach(this._contentSetter.parseResults,function(n){n._started||n._destroyed||!A.isFunction(n.startup)||(n.startup(),n._started=!0)},this)},setHref:function(n){u.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.",
"","2.0");return this.set("href",n)},_setHrefAttr:function(n){this.cancel();this.onLoadDeferred=new a(A.hitch(this,"cancel"));this.onLoadDeferred.then(A.hitch(this,"onLoad"));this._set("href",n);this.preload||this._created&&this._isShown()?this._load():this._hrefChanged=!0;return this.onLoadDeferred},setContent:function(n){u.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",n)},_setContentAttr:function(n){this._set("href",
"");this.cancel();this.onLoadDeferred=new a(A.hitch(this,"cancel"));this._created&&this.onLoadDeferred.then(A.hitch(this,"onLoad"));this._setContent(n||"");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(n){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 a(A.hitch(this,"cancel"));this.onLoadDeferred.then(A.hitch(this,"onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),!0);var n=this,q={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};
A.isObject(this.ioArgs)&&A.mixin(q,this.ioArgs);var w=this._xhrDfd=(this.ioMethod||m.get)(q),t;w.then(function(v){t=v;try{return n._isDownloaded=!0,n._setContent(v,!1)}catch(y){n._onError("Content",y)}},function(v){w.canceled||n._onError("Download",v);delete n._xhrDfd;return v}).then(function(){n.onDownloadEnd();delete n._xhrDfd;return t});delete this._hrefChanged},_onLoadHandler:function(n){this._set("isLoaded",!0);try{this.onLoadDeferred.resolve(n)}catch(q){}},_onUnloadHandler:function(){this._set("isLoaded",
!1);try{this.onUnload()}catch(n){}},destroyDescendants:function(n){this.isLoaded&&this._onUnloadHandler();var q=this._contentSetter;d.forEach(this.getChildren(),function(w){w.destroyRecursive?w.destroyRecursive(n):w.destroy&&w.destroy(n);w._destroyed=!0});q&&(d.forEach(q.parseResults,function(w){w._destroyed||(w.destroyRecursive?w.destroyRecursive(n):w.destroy&&w.destroy(n),w._destroyed=!0)}),delete q.parseResults);n||k.empty(this.containerNode);delete this._singleChild},_setContent:function(n,q){n=
this.preprocessContent(n);this.destroyDescendants();var w=this._contentSetter;w&&w instanceof g._ContentSetter||(w=this._contentSetter=new g._ContentSetter({node:this.containerNode,_onError:A.hitch(this,this._onError),onContentError:A.hitch(this,function(y){y=this.onContentError(y);try{this.containerNode.innerHTML=y}catch(z){}})}));var t=A.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:!n.domNode&&this.parseOnLoad,parserScope:this.parserScope,startup:!1,dir:this.dir,
lang:this.lang,textDir:this.textDir},this._contentSetterParams||{});t=w.set(A.isObject(n)&&n.domNode?n.domNode:n,t);var v=this;return l(t&&t.then?t:w.parseDeferred,function(){delete v._contentSetterParams;q||(v._started&&(v._startChildren(),v._scheduleLayout()),v._onLoadHandler(n))})},preprocessContent:function(n){return n},_onError:function(n,q,w){this.onLoadDeferred.reject(q);n=this["on"+n+"Error"].call(this,q);w||n&&this._setContent(n,!0)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},
onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}})})},"dojo/html":function(){define("./_base/kernel ./_base/lang ./_base/array ./_base/declare ./dom ./dom-construct ./parser".split(" "),function(u,A,x,r,h,e,g){var d=0,b={_secureForInnerHtml:function(a){return a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")},_emptyNode:e.empty,_setNodeContent:function(a,c){e.empty(a);if(c)if("number"==typeof c&&(c=c.toString()),"string"==
typeof c&&(c=e.toDom(c,a.ownerDocument)),!c.nodeType&&A.isArrayLike(c))for(var f=c.length,k=0;k<c.length;k=f==c.length?k+1:0)e.place(c[k],a,"last");else e.place(c,a,"last");return a},_ContentSetter:r("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:!1,extractContent:!1,parseContent:!1,parserScope:u._scopeName,startup:!0,constructor:function(a,c){A.mixin(this,a||{});c=this.node=h.byId(this.node||c);this.id||(this.id=["Setter",c?c.id||c.tagName:"",d++].join("_"))},set:function(a,
c){void 0!==a&&(this.content=a);"number"==typeof a&&(a=a.toString());c&&this._mixin(c);this.onBegin();this.setContent();var f=this.onEnd();return f&&f.then?f:this.node},setContent:function(){var a=this.node;if(!a)throw Error(this.declaredClass+": setContent given no node");try{a=b._setNodeContent(a,this.content)}catch(f){var c=this.onContentError(f);try{a.innerHTML=c}catch(k){}}this.node=a},empty:function(){this.parseDeferred&&(this.parseDeferred.isResolved()||this.parseDeferred.cancel(),delete this.parseDeferred);
this.parseResults&&this.parseResults.length&&(x.forEach(this.parseResults,function(a){a.destroy&&a.destroy()}),delete this.parseResults);e.empty(this.node)},onBegin:function(){var a=this.content;if(A.isString(a)&&(this.cleanContent&&(a=b._secureForInnerHtml(a)),this.extractContent)){var c=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);c&&(a=c[1])}this.empty();this.content=a;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(a){return"Error occurred setting content: "+a},onExecError:function(a){return"Error occurred executing scripts: "+a},_mixin:function(a){var c={},f;for(f in a)f in c||(this[f]=a[f])},_parse:function(){var a=this.node;try{var c={};x.forEach(["dir","lang","textDir"],function(k){this[k]&&(c[k]=this[k])},this);var f=this;this.parseDeferred=g.parse({rootNode:a,noStart:!this.startup,inherited:c,scope:this.parserScope}).then(function(k){return f.parseResults=
k},function(k){f._onError("Content",k,"Error parsing in _ContentSetter#"+f.id)})}catch(k){this._onError("Content",k,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,c,f){a=this["on"+a+"Error"].call(this,c);f||a&&b._setNodeContent(this.node,a,!0)}}),set:function(a,c,f){void 0==c&&(c="");"number"==typeof c&&(c=c.toString());return f?(new b._ContentSetter(A.mixin(f,{content:c,node:a}))).set():b._setNodeContent(a,c,!0)}};A.setObject("dojo.html",b);return b})},"dojox/layout/ContentPane":function(){define(["dojo/_base/lang",
"dojo/_base/xhr","dijit/layout/ContentPane","dojox/html/_base","dojo/_base/declare"],function(u,A,x,r,h){return h("dojox.layout.ContentPane",x,{adjustPaths:!1,cleanContent:!1,renderStyles:!1,executeScripts:!0,scriptHasHooks:!1,ioMethod:A.get,ioArgs:{},onExecError:function(e){},_setContent:function(e){var g=this._contentSetter;g&&g instanceof r._ContentSetter||(g=this._contentSetter=new r._ContentSetter({node:this.containerNode,_onError:u.hitch(this,this._onError),onContentError:u.hitch(this,function(d){d=
this.onContentError(d);try{this.containerNode.innerHTML=d}catch(b){}})}));this._contentSetterParams={adjustPaths:!(!this.adjustPaths||!this.href&&!this.referencePath),referencePath:this.href||this.referencePath,renderStyles:this.renderStyles,executeScripts:this.executeScripts,scriptHasHooks:this.scriptHasHooks,scriptHookReplacement:"dijit.byId('"+this.id+"')"};return this.inherited("_setContent",arguments)},destroy:function(){var e=this._contentSetter;e&&e.tearDown();this.inherited(arguments)}})})},
"dojox/html/_base":function(){define("dojo/_base/declare dojo/Deferred dojo/dom-construct dojo/html dojo/_base/kernel dojo/_base/lang dojo/ready dojo/_base/sniff dojo/_base/url dojo/_base/xhr dojo/when dojo/_base/window".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f){var k=h.getObject("dojox.html",!0);if(d("ie"))var m=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;var p=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g,
l=k._adjustCssPaths=function(y,z){if(z&&y)return m&&(z=z.replace(m,function(C,G,B,D,E){return G+(new b(y,"./"+D)).toString()+E})),z.replace(p,function(C,G,B,D,E,J){return B?'@import "'+(new b(y,"./"+B)).toString()+'"'+J:"url("+(new b(y,"./"+E)).toString()+")"+J})},n=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi,q=k._adjustHtmlPaths=function(y,z){var C=y||"./";return z.replace(n,function(G,B,D,E,J,I,F,H){return B+(D?D+"\x3d"+E+(new b(C,J)).toString()+
E:"style\x3d"+I+l(C,F)+I)+H})},w=k._snarfStyles=function(y,z,C){C.attributes=[];z=z.replace(/<[!][-][-](.|\s)*?[-][-]>/g,function(G){return G.replace(/<(\/?)style\b/ig,"\x26lt;$1Style").replace(/<(\/?)link\b/ig,"\x26lt;$1Link").replace(/@import "/ig,'@ import "')});return z.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(G,B,D,E,J,I){G=(B||E||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");D?D=C.push(y?l(y,D):D):(D=C.push('@import "'+
I+'";'),G=G.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,""));if(G){G=G.split(/\s+/);I={};E=0;for(J=G.length;E<J;E++)B=G[E].split("\x3d"),I[B[0]]=B[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");C.attributes[D-1]=I}return""})},t=k._snarfScripts=function(y,z){function C(G){z.downloadRemote&&(G=G.replace(/&([a-z0-9#]+);/g,function(B,D){switch(D){case "amp":return"\x26";case "gt":return"\x3e";case "lt":return"\x3c";default:return"#"==D.charAt(0)?String.fromCharCode(D.substring(1)):"\x26"+D+";"}}),
a.get({url:G,sync:!0,load:function(B){""!==z.code&&(B="\n"+B);z.code+=B+";"},error:z.errBack}))}z.code="";y=y.replace(/<[!][-][-](.|\s)*?[-][-]>/g,function(G){return G.replace(/<(\/?)script\b/ig,"\x26lt;$1Script")});return y.replace(/<script\s*(?![^>]*type=['"]?(?:dojo\/|text\/html\b))[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?>([\s\S]*?)<\/script>/gi,function(G,B,D,E){D?C(D):(""!==z.code&&(E="\n"+E),z.code+=E+";");return""})},v=k.evalInGlobal=function(y,z){z=z||f.doc.body;var C=z.ownerDocument.createElement("script");
C.type="text/javascript";z.appendChild(C);C.text=y};k._ContentSetter=u(r._ContentSetter,{adjustPaths:!1,referencePath:".",renderStyles:!1,executeScripts:!1,scriptHasHooks:!1,scriptHookReplacement:null,_renderStyles:function(y){this._styleNodes=[];for(var z,C,G,B=this.node.ownerDocument,D=B.getElementsByTagName("head")[0],E=0,J=y.length;E<J;E++){G=y[E];C=y.attributes[E];z=B.createElement("style");z.setAttribute("type","text/css");for(var I in C)z.setAttribute(I,C[I]);this._styleNodes.push(z);D.appendChild(z);
z.styleSheet?z.styleSheet.cssText=G:z.appendChild(B.createTextNode(G))}},empty:function(){this.inherited("empty",arguments);this._styles=[]},onBegin:function(){this.inherited("onBegin",arguments);var y=this.content,z=this._styles;this._code=null;if(e.isString(y)){this.adjustPaths&&this.referencePath&&(y=q(this.referencePath,y));if(this.renderStyles||this.cleanContent)y=w(this.referencePath,y,z);if(this.executeScripts){var C=this;z={downloadRemote:!0,errBack:function(G){C._onError.call(C,"Exec",'Error downloading remote script in "'+
C.id+'"',G)}};y=t(y,z);this._code=z.code}}this.content=y},onEnd:function(){var y=this._code,z=this._styles;if(this._styleNodes&&this._styleNodes.length)for(;this._styleNodes.length;)x.destroy(this._styleNodes.pop());this.renderStyles&&z&&z.length&&this._renderStyles(z);var C=new A,G=this.getInherited(arguments),B=arguments;z=e.hitch(this,function(){G.apply(this,B);c(this.parseDeferred,function(){C.resolve()})});if(this.executeScripts&&y){this.cleanContent&&(y=y.replace(/(\x3c!--|(?:\/\/)?--\x3e|<!\[CDATA\[|\]\]>)/g,
""));this.scriptHasHooks&&(y=y.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement));try{v(y,this.node)}catch(D){this._onError("Exec","Error eval script in "+this.id+", "+D.message,D)}g(z)}else z();return C.promise},tearDown:function(){this.inherited(arguments);delete this._styles;if(this._styleNodes&&this._styleNodes.length)for(;this._styleNodes.length;)x.destroy(this._styleNodes.pop());delete this._styleNodes;e.mixin(this,k._ContentSetter.prototype)}});k.set=function(y,z,C){return C?(new k._ContentSetter(e.mixin(C,
{content:z,node:y}))).set():r._setNodeContent(y,z,!0)};return k})},"dijit/layout/BorderContainer":function(){define("dojo/_base/array dojo/cookie dojo/_base/declare dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/keys dojo/_base/lang dojo/on dojo/touch ../_WidgetBase ../_Widget ../_TemplatedMixin ./LayoutContainer ./utils".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l){var n=x("dijit.layout._Splitter",[k,m],{live:!0,templateString:'\x3cdiv class\x3d"dijitSplitter" data-dojo-attach-event\x3d"onkeydown:_onKeyDown,press:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse" tabIndex\x3d"0" role\x3d"separator"\x3e\x3cdiv class\x3d"dijitSplitterThumb"\x3e\x3c/div\x3e\x3c/div\x3e',
constructor:function(){this._handlers=[]},postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);this._factor=/top|left/.test(this.region)?1:-1;this._cookieName=this.container.id+"_"+this.region},buildRendering:function(){this.inherited(arguments);r.add(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var w=this._getPersistentSplit();w&&(this.child.domNode.style[this.horizontal?"height":"width"]=w)}},_computeMaxSize:function(){var w=
this.horizontal?"h":"w",t=e.getMarginBox(this.child.domNode)[w],v=u.filter(this.container.getChildren(),function(y){return"center"==y.region})[0];w=e.getContentBox(v.domNode)[w]-10;return Math.min(this.child.maxSize,t+w)},_startDrag:function(w){this.cover||(this.cover=h.place("\x3cdiv class\x3ddijitSplitterCover\x3e\x3c/div\x3e",this.child.domNode,"after"));r.add(this.cover,"dijitSplitterCoverActive");this.fake&&h.destroy(this.fake);(this._resize=this.live)||((this.fake=this.domNode.cloneNode(!0)).removeAttribute("id"),
r.add(this.domNode,"dijitSplitterShadow"),h.place(this.fake,this.domNode,"after"));r.add(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");this.fake&&r.remove(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");var t=this._factor,v=this.horizontal,y=v?"pageY":"pageX",z=w[y],C=this.domNode.style;v=v?"h":"w";var G=g.getComputedStyle(this.child.domNode),B=e.getMarginBox(this.child.domNode,G)[v],D=this._computeMaxSize(),E=Math.max(this.child.minSize,
e.getPadBorderExtents(this.child.domNode,G)[v]+10);v=this.region;var J="top"==v||"bottom"==v?"top":"left",I=parseInt(C[J],10),F=this._resize,H=b.hitch(this.container,"_layoutChildren",this.child.id);v=this.ownerDocument;this._handlers=this._handlers.concat([a(v,c.move,this._drag=function(K,L){var N=K[y]-z,Q=t*N+B,P=Math.max(Math.min(Q,D),E);(F||L)&&H(P);C[J]=N+I+t*(P-Q)+"px"}),a(v,"dragstart",function(K){K.stopPropagation();K.preventDefault()}),a(this.ownerDocumentBody,"selectstart",function(K){K.stopPropagation();
K.preventDefault()}),a(v,c.release,b.hitch(this,"_stopDrag"))]);w.stopPropagation();w.preventDefault()},_onMouse:function(w){w="mouseover"==w.type||"mouseenter"==w.type;r.toggle(this.domNode,"dijitSplitterHover",w);r.toggle(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",w)},_getPersistentSplit:function(){return A(this._cookieName)},_setPersistentSplit:function(w){A(this._cookieName,w,{expires:365})},_stopDrag:function(w){try{this.cover&&r.remove(this.cover,"dijitSplitterCoverActive"),
this.fake&&h.destroy(this.fake),r.remove(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow"),this._drag(w),this._drag(w,!0)}finally{this._cleanupHandlers(),delete this._drag}this.container.persist&&this._setPersistentSplit(this.child.domNode.style[this.horizontal?"height":"width"])},_cleanupHandlers:function(){for(var w;w=this._handlers.pop();)w.remove()},_onKeyDown:function(w){this._resize=!0;var t=this.horizontal,v=1;switch(w.keyCode){case t?
d.UP_ARROW:d.LEFT_ARROW:v*=-1;case t?d.DOWN_ARROW:d.RIGHT_ARROW:break;default:return}t=e.getMarginSize(this.child.domNode)[t?"h":"w"]+this._factor*v;this.container._layoutChildren(this.child.id,Math.max(Math.min(t,this._computeMaxSize()),this.child.minSize));w.stopPropagation();w.preventDefault()},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments)}}),q=x("dijit.layout._Gutter",[k,m],{templateString:'\x3cdiv class\x3d"dijitGutter" role\x3d"presentation"\x3e\x3c/div\x3e',
postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region)},buildRendering:function(){this.inherited(arguments);r.add(this.domNode,"dijitGutter"+(this.horizontal?"H":"V"))}});x=x("dijit.layout.BorderContainer",p,{gutters:!0,liveSplitters:!0,persist:!1,baseClass:"dijitBorderContainer",_splitterClass:n,postMixInProperties:function(){this.gutters||(this.baseClass+="NoGutter");this.inherited(arguments)},_setupChild:function(w){this.inherited(arguments);var t=
w.region,v=w.isLeftToRight();"leading"==t&&(t=v?"left":"right");"trailing"==t&&(t=v?"right":"left");t&&"center"!=t&&(w.splitter||this.gutters)&&!w._splitterWidget&&(v=w.splitter?this._splitterClass:q,b.isString(v)&&(v=b.getObject(v)),v=new v({id:w.id+"_splitter",container:this,child:w,region:t,live:this.liveSplitters}),v.isSplitter=!0,w._splitterWidget=v,t="bottom"==t||t==(this.isLeftToRight()?"right":"left"),h.place(v.domNode,w.domNode,t?"before":"after"),v.startup())},layout:function(){this._layoutChildren()},
removeChild:function(w){var t=w._splitterWidget;t&&(t.destroy(),delete w._splitterWidget);this.inherited(arguments)},getChildren:function(){return u.filter(this.inherited(arguments),function(w){return!w.isSplitter})},getSplitter:function(w){return u.filter(this.getChildren(),function(t){return t.region==w})[0]._splitterWidget},resize:function(w,t){if(!this.cs||!this.pe){var v=this.domNode;this.cs=g.getComputedStyle(v);this.pe=e.getPadExtents(v,this.cs);this.pe.r=g.toPixelValue(v,this.cs.paddingRight);
this.pe.b=g.toPixelValue(v,this.cs.paddingBottom);g.set(v,"padding","0px")}this.inherited(arguments)},_layoutChildren:function(w,t){if(this._borderBox&&this._borderBox.h){var v=[];u.forEach(this._getOrderedChildren(),function(y){v.push(y);y._splitterWidget&&v.push(y._splitterWidget)});l.layoutChildren(this.domNode,{l:this.pe.l,t:this.pe.t,w:this._borderBox.w-this.pe.w,h:this._borderBox.h-this.pe.h},v,w,t)}},destroyRecursive:function(){u.forEach(this.getChildren(),function(w){var t=w._splitterWidget;
t&&t.destroy();delete w._splitterWidget});this.inherited(arguments)}});x.ChildWidgetProperties={splitter:!1,minSize:0,maxSize:Infinity};b.mixin(x.ChildWidgetProperties,p.ChildWidgetProperties);b.extend(f,x.ChildWidgetProperties);x._Splitter=n;x._Gutter=q;return x})},"dijit/layout/LayoutContainer":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-style dojo/_base/lang ../_WidgetBase ./_LayoutWidget ./utils".split(" "),function(u,A,x,r,h,e,g,d){A=A("dijit.layout.LayoutContainer",
g,{design:"headline",baseClass:"dijitLayoutContainer",startup:function(){this._started||(u.forEach(this.getChildren(),this._setupChild,this),this.inherited(arguments))},_setupChild:function(b){this.inherited(arguments);b.region&&x.add(b.domNode,this.baseClass+"Pane")},_getOrderedChildren:function(){var b=u.map(this.getChildren(),function(a,c){return{pane:a,weight:["center"==a.region?Infinity:0,a.layoutPriority,("sidebar"==this.design?1:-1)*(/top|bottom/.test(a.region)?1:-1),c]}},this);b.sort(function(a,
c){for(var f=a.weight,k=c.weight,m=0;m<f.length;m++)if(f[m]!=k[m])return f[m]-k[m];return 0});return u.map(b,function(a){return a.pane})},layout:function(){d.layoutChildren(this.domNode,this._contentBox,this._getOrderedChildren())},addChild:function(b,a){this.inherited(arguments);this._started&&this.layout()},removeChild:function(b){this.inherited(arguments);this._started&&this.layout();x.remove(b.domNode,this.baseClass+"Pane");r.set(b.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});
r.set(b.domNode,/top|bottom/.test(b.region)?"width":"height","auto")}});A.ChildWidgetProperties={region:"",layoutAlign:"",layoutPriority:0};h.extend(e,A.ChildWidgetProperties);return A})},"dijit/layout/_LayoutWidget":function(){define("dojo/_base/lang ../_Widget ../_Container ../_Contained ../Viewport dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style".split(" "),function(u,A,x,r,h,e,g,d,b){return e("dijit.layout._LayoutWidget",[A,x,r],{baseClass:"dijitLayoutContainer",isLayoutContainer:!0,
_setTitleAttr:null,buildRendering:function(){this.inherited(arguments);g.add(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);var a=this.getParent&&this.getParent();a&&a.isLayoutContainer||(this.resize(),this.own(h.on("resize",u.hitch(this,"resize"))))}},resize:function(a,c){var f=this.domNode;a&&d.setMarginBox(f,a);var k=c||{};u.mixin(k,a||{});"h"in k&&"w"in k||(k=u.mixin(d.getMarginBox(f),k));var m=b.getComputedStyle(f),p=d.getMarginExtents(f,m),l=
d.getBorderExtents(f,m);k=this._borderBox={w:k.w-(p.w+l.w),h:k.h-(p.h+l.h)};p=d.getPadExtents(f,m);this._contentBox={l:b.toPixelValue(f,m.paddingLeft),t:b.toPixelValue(f,m.paddingTop),w:k.w-p.w,h:k.h-p.h};this.layout()},layout:function(){},_setupChild:function(a){g.add(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a,c){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){g.remove(a.domNode,this.baseClass+"-child"+
(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}})})},"dijit/layout/TabContainer":function(){define(["dojo/_base/lang","dojo/_base/declare","./_TabContainerBase","./TabController","./ScrollingTabController"],function(u,A,x,r,h){return A("dijit.layout.TabContainer",x,{useMenu:!0,useSlider:!0,controllerWidget:"",_makeController:function(e){var g=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout");return new ("string"==typeof this.controllerWidget?u.getObject(this.controllerWidget):
this.controllerWidget)({id:this.id+"_tablist",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir,tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":g,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},e)},postMixInProperties:function(){this.inherited(arguments);this.controllerWidget||(this.controllerWidget="top"!=this.tabPosition&&"bottom"!=this.tabPosition||
this.nested?r:h)}})})},"dijit/layout/_TabContainerBase":function(){define("dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style ./StackContainer ./utils ../_TemplatedMixin dojo/text!./templates/TabContainer.html".split(" "),function(u,A,x,r,h,e,g,d){return u("dijit.layout._TabContainerBase",[h,g],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:!1,nested:!1,templateString:d,postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,
"");this.srcNodeRef&&r.set(this.srcNodeRef,"visibility","hidden");this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);this.tablist=this._makeController(this.tablistNode);this.doLayout||A.add(this.domNode,"dijitTabContainerNoLayout");this.nested?(A.add(this.domNode,"dijitTabContainerNested"),A.add(this.tablist.containerNode,"dijitTabContainerTabListNested"),A.add(this.tablistSpacer,"dijitTabContainerSpacerNested"),A.add(this.containerNode,"dijitTabPaneWrapperNested")):A.add(this.domNode,
"tabStrip-"+(this.tabStrip?"enabled":"disabled"))},_setupChild:function(b){A.add(b.domNode,"dijitTabPane");this.inherited(arguments)},removeChild:function(b){A.remove(b.domNode,"dijitTabPane");this.inherited(arguments)},startup:function(){this._started||(this.tablist.startup(),this.inherited(arguments))},layout:function(){if(this._contentBox&&"undefined"!=typeof this._contentBox.l){var b=this.selectedChildWidget;if(this.doLayout){var a=this.tabPosition.replace(/-h/,"");this.tablist.region=a;a=[this.tablist,
{domNode:this.tablistSpacer,region:a},{domNode:this.containerNode,region:"center"}];e.layoutChildren(this.domNode,this._contentBox,a);this._containerContentBox=e.marginBox2contentBox(this.containerNode,a[2]);b&&b.resize&&b.resize(this._containerContentBox)}else{if(this.tablist.resize){a=this.tablist.domNode.style;a.width="0";var c=x.getContentBox(this.domNode).w;a.width="";this.tablist.resize({w:c})}b&&b.resize&&b.resize()}}},destroy:function(b){this.tablist&&this.tablist.destroy(b);this.inherited(arguments)}})})},
"dijit/layout/StackContainer":function(){define("dojo/_base/array dojo/cookie dojo/_base/declare dojo/dom-class dojo/dom-construct dojo/has dojo/_base/lang dojo/on dojo/ready dojo/topic dojo/when ../registry ../_WidgetBase ./_LayoutWidget".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f,k,m){e("dijit-legacy-requires")&&b(0,function(){require(["dijit/layout/StackController"])});x=x("dijit.layout.StackContainer",m,{doLayout:!0,persist:!1,baseClass:"dijitStackContainer",buildRendering:function(){this.inherited(arguments);
r.add(this.domNode,"dijitLayoutContainer")},postCreate:function(){this.inherited(arguments);this.own(d(this.domNode,"keydown",g.hitch(this,"_onKeyDown")))},startup:function(){if(!this._started){var p=this.getChildren();u.forEach(p,this._setupChild,this);this.persist?this.selectedChildWidget=f.byId(A(this.id+"_selectedChild")):u.some(p,function(n){n.selected&&(this.selectedChildWidget=n);return n.selected},this);var l=this.selectedChildWidget;!l&&p[0]&&(l=this.selectedChildWidget=p[0],l.selected=!0);
a.publish(this.id+"-startup",{children:p,selected:l,textDir:this.textDir});this.inherited(arguments)}},resize:function(){if(!this._hasBeenShown){this._hasBeenShown=!0;var p=this.selectedChildWidget;p&&this._showChild(p)}this.inherited(arguments)},_setupChild:function(p){var l=p.domNode,n=h.place("\x3cdiv role\x3d'tabpanel' class\x3d'"+this.baseClass+"ChildWrapper dijitHidden'\x3e",p.domNode,"replace"),q=p["aria-label"]||p.title||p.label;q&&n.setAttribute("aria-label",q);h.place(l,n);p._wrapper=n;
this.inherited(arguments);"none"==l.style.display&&(l.style.display="block");p.domNode.removeAttribute("title")},addChild:function(p,l){this.inherited(arguments);this._started&&(a.publish(this.id+"-addChild",p,l),this.layout(),this.selectedChildWidget||this.selectChild(p))},removeChild:function(p){var l=u.indexOf(this.getChildren(),p);this.inherited(arguments);h.destroy(p._wrapper);delete p._wrapper;this._started&&a.publish(this.id+"-removeChild",p);if(!this._descendantsBeingDestroyed){if(this.selectedChildWidget===
p&&(this.selectedChildWidget=void 0,this._started)){var n=this.getChildren();n.length&&this.selectChild(n[Math.max(l-1,0)])}this._started&&this.layout()}},selectChild:function(p,l){p=f.byId(p);if(this.selectedChildWidget!=p){var n=this._transition(p,this.selectedChildWidget,l);this._set("selectedChildWidget",p);a.publish(this.id+"-selectChild",p,this._focused);this.persist&&A(this.id+"_selectedChild",this.selectedChildWidget.id)}return c(n||!0)},_transition:function(p,l){l&&this._hideChild(l);var n=
this._showChild(p);p.resize&&(this.doLayout?p.resize(this._containerContentBox||this._contentBox):p.resize());return n},_adjacent:function(p){var l=this.getChildren(),n=u.indexOf(l,this.selectedChildWidget);n+=p?1:l.length-1;return l[n%l.length]},forward:function(){return this.selectChild(this._adjacent(!0),!0)},back:function(){return this.selectChild(this._adjacent(!1),!0)},_onKeyDown:function(p){a.publish(this.id+"-containerKeyDown",{e:p,page:this})},layout:function(){var p=this.selectedChildWidget;
p&&p.resize&&(this.doLayout?p.resize(this._containerContentBox||this._contentBox):p.resize())},_showChild:function(p){var l=this.getChildren();p.isFirstChild=p==l[0];p.isLastChild=p==l[l.length-1];p._set("selected",!0);p._wrapper&&r.replace(p._wrapper,"dijitVisible","dijitHidden");return p._onShow&&p._onShow()||!0},_hideChild:function(p){p._set("selected",!1);p._wrapper&&r.replace(p._wrapper,"dijitHidden","dijitVisible");p.onHide&&p.onHide()},closeChild:function(p){if(!p.onClose||p.onClose(this,p))this.removeChild(p),
p.destroyRecursive()},destroyDescendants:function(p){this._descendantsBeingDestroyed=!0;this.selectedChildWidget=void 0;u.forEach(this.getChildren(),function(l){p||this.removeChild(l);l.destroyRecursive(p)},this);this._descendantsBeingDestroyed=!1}});x.ChildWidgetProperties={selected:!1,disabled:!1,closable:!1,iconClass:"dijitNoIcon",showTitle:!0};g.extend(k,x.ChildWidgetProperties);return x})},"dijit/layout/TabController":function(){define("dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/has dojo/i18n dojo/_base/lang ./StackController ../registry ../Menu ../MenuItem dojo/text!./templates/_TabButton.html dojo/i18n!../nls/common".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f){f=u("dijit.layout._TabButton"+(h("dojo-bidi")?"_NoBidi":""),d.StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:f,_setNameAttr:"focusNode",scrollOnFocus:!1,buildRendering:function(){this.inherited(arguments);A.setSelectable(this.containerNode,!1)},startup:function(){this.inherited(arguments);var k=this.domNode;this.defer(function(){k.className=k.className},1)},_setCloseButtonAttr:function(k){this._set("closeButton",k);
r.toggle(this.domNode,"dijitClosable",k);this.closeNode.style.display=k?"":"none";k&&(k=e.getLocalization("dijit","common"),this.closeNode&&x.set(this.closeNode,"title",k.itemClose))},_setDisabledAttr:function(k){this.inherited(arguments);if(this.closeNode)if(k)x.remove(this.closeNode,"title");else{var m=e.getLocalization("dijit","common");x.set(this.closeNode,"title",m.itemClose)}},_setLabelAttr:function(k){this.inherited(arguments);this.showLabel||this.params.title||(this.iconNode.alt=g.trim(this.containerNode.innerText||
this.containerNode.textContent||""))}});h("dojo-bidi")&&(f=u("dijit.layout._TabButton",f,{_setLabelAttr:function(k){this.inherited(arguments);this.applyTextDir(this.iconNode,this.iconNode.alt)}}));u=u("dijit.layout.TabController",d,{baseClass:"dijitTabController",templateString:"\x3cdiv role\x3d'tablist' data-dojo-attach-event\x3d'onkeydown:onkeydown'\x3e\x3c/div\x3e",tabPosition:"top",buttonWidget:f,buttonWidgetCloseClass:"dijitTabCloseButton",postCreate:function(){this.inherited(arguments);var k=
new a({id:this.id+"_Menu",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir,targetNodeIds:[this.domNode],selector:function(l){return r.contains(l,"dijitClosable")&&!r.contains(l,"dijitTabDisabled")}});this.own(k);var m=e.getLocalization("dijit","common"),p=this;k.addChild(new c({label:m.itemClose,ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir,onClick:function(l){l=b.byNode(this.getParent().currentTarget);p.onCloseButtonClick(l.page)}}))}});
u.TabButton=f;return u})},"dijit/layout/StackController":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-construct dojo/keys dojo/_base/lang dojo/on dojo/topic ../focus ../registry ../_Widget ../_TemplatedMixin ../_Container ../form/ToggleButton dojo/touch".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f,k,m){r=A("dijit.layout._StackButton",m,{tabIndex:"-1",closeButton:!1,_aria_attr:"aria-selected",buildRendering:function(p){this.inherited(arguments);(this.focusNode||this.domNode).setAttribute("role",
"tab")}});A=A("dijit.layout.StackController",[c,f,k],{baseClass:"dijitStackController",templateString:"\x3cspan role\x3d'tablist' data-dojo-attach-event\x3d'onkeydown'\x3e\x3c/span\x3e",containerId:"",buttonWidget:r,buttonWidgetCloseClass:"dijitStackCloseButton",pane2button:function(p){return a.byId(this.id+"_"+p)},postCreate:function(){this.inherited(arguments);this.own(d.subscribe(this.containerId+"-startup",e.hitch(this,"onStartup")),d.subscribe(this.containerId+"-addChild",e.hitch(this,"onAddChild")),
d.subscribe(this.containerId+"-removeChild",e.hitch(this,"onRemoveChild")),d.subscribe(this.containerId+"-selectChild",e.hitch(this,"onSelectChild")),d.subscribe(this.containerId+"-containerKeyDown",e.hitch(this,"onContainerKeyDown")));this.containerNode.dojoClick=!0;this.own(g(this.containerNode,"click",e.hitch(this,function(p){var l=a.getEnclosingWidget(p.target);if(l!=this.containerNode&&!l.disabled&&l.page)for(p=p.target;p!==this.containerNode;p=p.parentNode)if(x.contains(p,this.buttonWidgetCloseClass)){this.onCloseButtonClick(l.page);
break}else if(p==l.domNode){this.onButtonClick(l.page);break}})))},onStartup:function(p){this.textDir=p.textDir;u.forEach(p.children,this.onAddChild,this);if(p.selected)this.onSelectChild(p.selected);var l=a.byId(this.containerId).containerNode,n=e.hitch(this,"pane2button");p={title:"label",showtitle:"showLabel",iconclass:"iconClass",closable:"closeButton",tooltip:"title",disabled:"disabled",textdir:"textdir"};var q=function(t,v){return g(l,"attrmodified-"+t,function(y){var z=n(y.detail&&y.detail.widget&&
y.detail.widget.id);z&&z.set(v,y.detail.newValue)})},w;for(w in p)this.own(q(w,p[w]))},destroy:function(p){this.destroyDescendants(p);this.inherited(arguments)},onAddChild:function(p,l){var n=new (e.isString(this.buttonWidget)?e.getObject(this.buttonWidget):this.buttonWidget)({id:this.id+"_"+p.id,name:this.id+"_"+p.id,label:p.title,disabled:p.disabled,ownerDocument:this.ownerDocument,dir:p.dir,lang:p.lang,textDir:p.textDir||this.textDir,showLabel:p.showTitle,iconClass:p.iconClass,closeButton:p.closable,
title:p.tooltip,page:p});this.addChild(n,l);p.controlButton=n;if(!this._currentChild)this.onSelectChild(p);n=p._wrapper.getAttribute("aria-labelledby")?p._wrapper.getAttribute("aria-labelledby")+" "+n.id:n.id;p._wrapper.removeAttribute("aria-label");p._wrapper.setAttribute("aria-labelledby",n)},onRemoveChild:function(p){this._currentChild===p&&(this._currentChild=null);var l=this.pane2button(p.id);l&&(this.removeChild(l),l.destroy());delete p.controlButton},onSelectChild:function(p){if(p){if(this._currentChild){var l=
this.pane2button(this._currentChild.id);l.set("checked",!1);l.focusNode.setAttribute("tabIndex","-1")}l=this.pane2button(p.id);l.set("checked",!0);this._currentChild=p;l.focusNode.setAttribute("tabIndex","0");a.byId(this.containerId)}},onButtonClick:function(p){var l=this.pane2button(p.id);b.focus(l.focusNode);this._currentChild&&this._currentChild.id===p.id&&l.set("checked",!0);a.byId(this.containerId).selectChild(p)},onCloseButtonClick:function(p){a.byId(this.containerId).closeChild(p);this._currentChild&&
(p=this.pane2button(this._currentChild.id))&&b.focus(p.focusNode||p.domNode)},adjacent:function(p){this.isLeftToRight()||this.tabPosition&&!/top|bottom/.test(this.tabPosition)||(p=!p);var l=this.getChildren(),n=u.indexOf(l,this.pane2button(this._currentChild.id)),q=l[n];do{n=(n+(p?1:l.length-1))%l.length;var w=l[n]}while(w.disabled&&w!=q);return w},onkeydown:function(p,l){if(!this.disabled&&!p.altKey){var n=null;if(p.ctrlKey||!p._djpage){switch(p.keyCode){case h.LEFT_ARROW:case h.UP_ARROW:p._djpage||
(n=!1);break;case h.PAGE_UP:p.ctrlKey&&(n=!1);break;case h.RIGHT_ARROW:case h.DOWN_ARROW:p._djpage||(n=!0);break;case h.PAGE_DOWN:p.ctrlKey&&(n=!0);break;case h.HOME:for(var q=this.getChildren(),w=0;w<q.length;w++){var t=q[w];if(!t.disabled){this.onButtonClick(t.page);break}}p.stopPropagation();p.preventDefault();break;case h.END:q=this.getChildren();for(w=q.length-1;0<=w;w--)if(t=q[w],!t.disabled){this.onButtonClick(t.page);break}p.stopPropagation();p.preventDefault();break;case h.DELETE:case 87:this._currentChild.closable&&
(p.keyCode==h.DELETE||p.ctrlKey)&&(this.onCloseButtonClick(this._currentChild),p.stopPropagation(),p.preventDefault());break;case h.TAB:p.ctrlKey&&(this.onButtonClick(this.adjacent(!p.shiftKey).page),p.stopPropagation(),p.preventDefault())}null!==n&&(this.onButtonClick(this.adjacent(n).page),p.stopPropagation(),p.preventDefault())}}},onContainerKeyDown:function(p){p.e._djpage=p.page;this.onkeydown(p.e)}});A.StackButton=r;return A})},"dijit/Menu":function(){define("require dojo/_base/array dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-geometry dojo/dom-style dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/_base/window dojo/window ./popup ./DropDownMenu dojo/ready".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l){c("dijit-legacy-requires")&&l(0,function(){u(["dijit/MenuItem","dijit/PopupMenuItem","dijit/CheckedMenuItem","dijit/MenuSeparator"])});return x("dijit.Menu",p,{constructor:function(){this._bindings=[]},targetNodeIds:[],selector:"",contextMenuForWindow:!1,leftClickToOpen:!1,refocus:!0,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(this.ownerDocumentBody):A.forEach(this.targetNodeIds,this.bindDomNode,this);this.inherited(arguments)},_iframeContentWindow:function(n){return k.get(this._iframeContentDocument(n))||
this._iframeContentDocument(n).__parent__||n.name&&document.frames[n.name]||null},_iframeContentDocument:function(n){return n.contentDocument||n.contentWindow&&n.contentWindow.document||n.name&&document.frames[n.name]&&document.frames[n.name].document||null},bindDomNode:function(n){n=r.byId(n,this.ownerDocument);if("iframe"==n.tagName.toLowerCase()){var q=n;var w=this._iframeContentWindow(q);w=f.body(w.document)}else w=n==f.body(this.ownerDocument)?this.ownerDocument.documentElement:n;var t={node:n,
iframe:q};h.set(n,"_dijitMenu"+this.id,this._bindings.push(t));var v=b.hitch(this,function(y){var z=this.selector,C=z?function(B){return a.selector(z,B)}:function(B){return B},G=this;return[a(y,C(this.leftClickToOpen?"click":"contextmenu"),function(B){B.stopPropagation();B.preventDefault();(new Date).getTime()<G._lastKeyDown+500||G._scheduleOpen(this,q,{x:B.pageX,y:B.pageY},B.target)}),a(y,C("keydown"),function(B){if(93==B.keyCode||B.shiftKey&&B.keyCode==d.F10||G.leftClickToOpen&&B.keyCode==d.SPACE)B.stopPropagation(),
B.preventDefault(),G._scheduleOpen(this,q,null,B.target),G._lastKeyDown=(new Date).getTime()})]});t.connects=w?v(w):[];q&&(t.onloadHandler=b.hitch(this,function(){var y=this._iframeContentWindow(q);y=f.body(y.document);t.connects=v(y)}),q.addEventListener?q.addEventListener("load",t.onloadHandler,!1):q.attachEvent("onload",t.onloadHandler))},unBindDomNode:function(n){try{var q=r.byId(n,this.ownerDocument)}catch(y){return}n="_dijitMenu"+this.id;if(q&&h.has(q,n)){for(var w=h.get(q,n)-1,t=this._bindings[w],
v;v=t.connects.pop();)v.remove();(v=t.iframe)&&(v.removeEventListener?v.removeEventListener("load",t.onloadHandler,!1):v.detachEvent("onload",t.onloadHandler));h.remove(q,n);delete this._bindings[w]}},_scheduleOpen:function(n,q,w,t){this._openTimer||(this._openTimer=this.defer(function(){delete this._openTimer;this._openMyself({target:t,delegatedTarget:n,iframe:q,coords:w})},1))},_openMyself:function(n){function q(){B.refocus&&D&&D.focus();m.close(B)}var w=n.target,t=n.iframe,v=n.coords,y=!v;this.currentTarget=
n.delegatedTarget;if(v){if(t){n=e.position(t,!0);w=this._iframeContentWindow(t);w=e.docScroll(w.document);var z=g.getComputedStyle(t),C=g.toPixelValue,G=(c("ie")&&c("quirks")?0:C(t,z.paddingLeft))+(c("ie")&&c("quirks")?C(t,z.borderLeftWidth):0);t=(c("ie")&&c("quirks")?0:C(t,z.paddingTop))+(c("ie")&&c("quirks")?C(t,z.borderTopWidth):0);v.x+=n.x+G-w.x;v.y+=n.y+t-w.y}}else v=e.position(w,!0),v.x+=10,v.y+=10;var B=this;t=this._focusManager.get("prevNode");n=this._focusManager.get("curNode");var D=!n||
r.isDescendant(n,this.domNode)?t:n;m.open({popup:this,x:v.x,y:v.y,onExecute:q,onCancel:q,orient:this.isLeftToRight()?"L":"R"});this.focus();y||this.defer(function(){this._cleanUp(!0)});this._onBlur=function(){this.inherited("_onBlur",arguments);m.close(this)}},destroy:function(){A.forEach(this._bindings,function(n){n&&this.unBindDomNode(n.node)},this);this.inherited(arguments)}})})},"dijit/DropDownMenu":function(){define(["dojo/_base/declare","dojo/keys","dojo/text!./templates/Menu.html","./_MenuBase"],
function(u,A,x,r){return u("dijit.DropDownMenu",r,{templateString:x,baseClass:"dijitMenu",_onUpArrow:function(){this.focusPrev()},_onDownArrow:function(){this.focusNext()},_onRightArrow:function(h){this._moveToPopup(h);h.stopPropagation();h.preventDefault()},_onLeftArrow:function(h){if(this.parentMenu)if(this.parentMenu._isMenuBar)this.parentMenu.focusPrev();else this.onCancel(!1);else h.stopPropagation(),h.preventDefault()}})})},"dijit/_MenuBase":function(){define("dojo/_base/array dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/_base/lang dojo/mouse dojo/on dojo/window ./a11yclick ./registry ./_Widget ./_CssStateMixin ./_KeyNavContainer ./_TemplatedMixin".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p){return A("dijit._MenuBase",[f,p,m,k],{selected:null,_setSelectedAttr:function(l){this.selected!=l&&(this.selected&&(this.selected._setSelected(!1),this._onChildDeselect(this.selected)),l&&l._setSelected(!0),this._set("selected",l))},activated:!1,_setActivatedAttr:function(l){h.toggle(this.domNode,"dijitMenuActive",l);h.toggle(this.domNode,"dijitMenuPassive",!l);this._set("activated",l)},parentMenu:null,popupDelay:500,passivePopupDelay:Infinity,autoFocus:!1,
childSelector:function(l){var n=c.byNode(l);return l.parentNode==this.containerNode&&n&&n.focus},postCreate:function(){var l=this,n="string"==typeof this.childSelector?this.childSelector:e.hitch(this,"childSelector");this.own(d(this.containerNode,d.selector(n,g.enter),function(){l.onItemHover(c.byNode(this))}),d(this.containerNode,d.selector(n,g.leave),function(){l.onItemUnhover(c.byNode(this))}),d(this.containerNode,d.selector(n,a),function(q){l.onItemClick(c.byNode(this),q);q.stopPropagation()}),
d(this.containerNode,d.selector(n,"focusin"),function(){l._onItemFocus(c.byNode(this))}));this.inherited(arguments)},onKeyboardSearch:function(l,n,q,w){this.inherited(arguments);if(l&&(-1==w||l.popup&&1==w))this.onItemClick(l,n)},_keyboardSearchCompare:function(l,n){return l.shortcutKey?n==l.shortcutKey.toLowerCase()?-1:0:this.inherited(arguments)?1:0},onExecute:function(){},onCancel:function(){},_moveToPopup:function(l){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled)this.onItemClick(this.focusedChild,
l);else(l=this._getTopMenu())&&l._isMenuBar&&l.focusNext()},_onPopupHover:function(){this.set("selected",this.currentPopupItem);this._stopPendingCloseTimer()},onItemHover:function(l){this.activated?(this.set("selected",l),!l.popup||l.disabled||this.hover_timer||(this.hover_timer=this.defer(function(){this._openItemPopup(l)},this.popupDelay))):Infinity>this.passivePopupDelay&&(this.passive_hover_timer&&this.passive_hover_timer.remove(),this.passive_hover_timer=this.defer(function(){this.onItemClick(l,
{type:"click"})},this.passivePopupDelay));this._hoveredChild=l;l._set("hovering",!0)},_onChildDeselect:function(l){this._stopPopupTimer();this.currentPopupItem==l&&(this._stopPendingCloseTimer(),this._pendingClose_timer=this.defer(function(){this.currentPopupItem=this._pendingClose_timer=null;l._closePopup()},this.popupDelay))},onItemUnhover:function(l){this._hoveredChild==l&&(this._hoveredChild=null);this.passive_hover_timer&&(this.passive_hover_timer.remove(),this.passive_hover_timer=null);l._set("hovering",
!1)},_stopPopupTimer:function(){this.hover_timer&&(this.hover_timer=this.hover_timer.remove())},_stopPendingCloseTimer:function(){this._pendingClose_timer&&(this._pendingClose_timer=this._pendingClose_timer.remove())},_getTopMenu:function(){for(var l=this;l.parentMenu;l=l.parentMenu);return l},onItemClick:function(l,n){this.passive_hover_timer&&this.passive_hover_timer.remove();this.focusChild(l);if(l.disabled)return!1;if(l.popup){this.set("selected",l);this.set("activated",!0);var q=/^key/.test(n._origType||
n.type)||0==n.clientX&&0==n.clientY;this._openItemPopup(l,q)}else this.onExecute(),l._onClick?l._onClick(n):l.onClick(n)},_openItemPopup:function(l,n){if(l!=this.currentPopupItem){this.currentPopupItem&&(this._stopPendingCloseTimer(),this.currentPopupItem._closePopup());this._stopPopupTimer();var q=l.popup;q.parentMenu=this;this.own(this._mouseoverHandle=d.once(q.domNode,"mouseover",e.hitch(this,"_onPopupHover")));var w=this;l._openPopup({parent:this,orient:this._orient||["after","before"],onCancel:function(){n&&
w.focusChild(l);w._cleanUp()},onExecute:e.hitch(this,"_cleanUp",!0),onClose:function(){w._mouseoverHandle&&(w._mouseoverHandle.remove(),delete w._mouseoverHandle)}},n);this.currentPopupItem=l}},onOpen:function(){this.isShowingNow=!0;this.set("activated",!0)},onClose:function(){this.set("activated",!1);this.set("selected",null);this.isShowingNow=!1;this.parentMenu=null},_closeChild:function(){this._stopPopupTimer();this.currentPopupItem&&(this.focused&&(r.set(this.selected.focusNode,"tabIndex",this.tabIndex),
this.selected.focusNode.focus()),this.currentPopupItem._closePopup(),this.currentPopupItem=null)},_onItemFocus:function(l){if(this._hoveredChild&&this._hoveredChild!=l)this.onItemUnhover(this._hoveredChild);this.set("selected",l)},_onBlur:function(){this._cleanUp(!0);this.inherited(arguments)},_cleanUp:function(l){this._closeChild();"undefined"==typeof this.isShowingNow&&this.set("activated",!1);l&&this.set("selected",null)}})})},"dijit/_KeyNavContainer":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/_base/kernel dojo/keys dojo/_base/lang ./registry ./_Container ./_FocusMixin ./_KeyNavMixin".split(" "),
function(u,A,x,r,h,e,g,d,b,a){return A("dijit._KeyNavContainer",[b,a,d],{connectKeyNavHandlers:function(c,f){var k=this._keyNavCodes={},m=e.hitch(this,"focusPrev"),p=e.hitch(this,"focusNext");u.forEach(c,function(l){k[l]=m});u.forEach(f,function(l){k[l]=p});k[h.HOME]=e.hitch(this,"focusFirstChild");k[h.END]=e.hitch(this,"focusLastChild")},startupKeyNavChildren:function(){r.deprecated("startupKeyNavChildren() call no longer needed","","2.0")},startup:function(){this.inherited(arguments);u.forEach(this.getChildren(),
e.hitch(this,"_startupChild"))},addChild:function(c,f){this.inherited(arguments);this._startupChild(c)},_startupChild:function(c){c.set("tabIndex","-1")},_getFirst:function(){var c=this.getChildren();return c.length?c[0]:null},_getLast:function(){var c=this.getChildren();return c.length?c[c.length-1]:null},focusNext:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,1))},focusPrev:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,-1),!0)},childSelector:function(c){return(c=
g.byNode(c))&&c.getParent()==this}})})},"dijit/MenuItem":function(){define("dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/_base/kernel dojo/sniff dojo/_base/lang ./_Widget ./_TemplatedMixin ./_Contained ./_CssStateMixin dojo/text!./templates/MenuItem.html".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f){g=u("dijit.MenuItem"+(e("dojo-bidi")?"_NoBidi":""),[d,b,a,c],{templateString:f,baseClass:"dijitMenuItem",label:"",_setLabelAttr:function(k){this._set("label",k);var m="";var p=k.search(/{\S}/);
if(0<=p){m=k.charAt(p+1);var l=k.substr(0,p);k=k.substr(p+3);p=l+m+k;k=l+'\x3cspan class\x3d"dijitMenuItemShortcutKey"\x3e'+m+"\x3c/span\x3e"+k}else p=k;this.domNode.setAttribute("aria-label",p+" "+this.accelKey);this.containerNode.innerHTML=k;this._set("shortcutKey",m)},iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},accelKey:"",disabled:!1,_fillContent:function(k){!k||"label"in this.params||this._set("label",k.innerHTML)},buildRendering:function(){this.inherited(arguments);
x.set(this.containerNode,"id",this.id+"_text");this.accelKeyNode&&x.set(this.accelKeyNode,"id",this.id+"_accel");A.setSelectable(this.domNode,!1)},onClick:function(){},focus:function(){try{8==e("ie")&&this.containerNode.focus(),this.focusNode.focus()}catch(k){}},_setSelected:function(k){r.toggle(this.domNode,"dijitMenuItemSelected",k)},setLabel:function(k){h.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",k)},setDisabled:function(k){h.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.",
"","2.0");this.set("disabled",k)},_setDisabledAttr:function(k){this.focusNode.setAttribute("aria-disabled",k?"true":"false");this._set("disabled",k)},_setAccelKeyAttr:function(k){this.accelKeyNode&&(this.accelKeyNode.style.display=k?"":"none",this.accelKeyNode.innerHTML=k,x.set(this.containerNode,"colSpan",k?"1":"2"));this._set("accelKey",k)}});e("dojo-bidi")&&(g=u("dijit.MenuItem",g,{_setLabelAttr:function(k){this.inherited(arguments);"auto"===this.textDir&&this.applyTextDir(this.textDirNode)}}));
return g})},"dijit/layout/ScrollingTabController":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/fx dojo/_base/lang dojo/on dojo/query dojo/sniff ../registry dojo/text!./templates/ScrollingTabController.html dojo/text!./templates/_ScrollingTabControllerButton.html ./TabController ./utils ../_WidgetsInTemplateMixin ../Menu ../MenuItem ../form/Button ../_HasDropDown dojo/NodeList-dom ../a11yclick".split(" "),function(u,A,x,r,h,e,g,d,
b,a,c,f,k,m,p,l,n,q,w,t){f=A("dijit.layout.ScrollingTabController",[m,l],{baseClass:"dijitTabController dijitScrollingTabController",templateString:f,useMenu:!0,useSlider:!0,tabStripClass:"",_minScroll:5,_setClassAttr:{node:"containerNode",type:"class"},buildRendering:function(){this.inherited(arguments);var v=this.domNode;this.scrollNode=this.tablistWrapper;this._initButtons();this.tabStripClass||(this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,
"")+"None",x.add(v,"tabStrip-disabled"));x.add(this.tablistWrapper,this.tabStripClass)},onStartup:function(){this.inherited(arguments);h.set(this.domNode,"visibility","");this._postStartup=!0;this.own(d(this.containerNode,"attrmodified-label, attrmodified-iconclass",g.hitch(this,function(v){this._dim&&this.resize(this._dim)})))},onAddChild:function(v,y){this.inherited(arguments);h.set(this.containerNode,"width",h.get(this.containerNode,"width")+200+"px")},onRemoveChild:function(v,y){var z=this.pane2button(v.id);
this._selectedTab===z.domNode&&(this._selectedTab=null);this.inherited(arguments)},_initButtons:function(){this._btnWidth=0;this._buttons=b("\x3e .tabStripButton",this.domNode).filter(function(v){if(this.useMenu&&v==this._menuBtn.domNode||this.useSlider&&(v==this._rightBtn.domNode||v==this._leftBtn.domNode))return this._btnWidth+=r.getMarginSize(v).w,!0;h.set(v,"display","none");return!1},this)},_getTabsWidth:function(){var v=this.getChildren();if(v.length){var y=v[this.isLeftToRight()?0:v.length-
1].domNode;v=v[this.isLeftToRight()?v.length-1:0].domNode;return v.offsetLeft+v.offsetWidth-y.offsetLeft}return 0},_enableBtn:function(v){var y=this._getTabsWidth();v=v||h.get(this.scrollNode,"width");return 0<y&&v<y},resize:function(v){this._dim=v;this.scrollNode.style.height="auto";var y=this._contentBox=p.marginBox2contentBox(this.domNode,{h:0,w:v.w});y.h=this.scrollNode.offsetHeight;r.setContentSize(this.domNode,y);y=this._enableBtn(this._contentBox.w);this._buttons.style("display",y?"":"none");
this._leftBtn.region="left";this._rightBtn.region="right";this._menuBtn.region=this.isLeftToRight()?"right":"left";p.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,region:"center"}]);this._selectedTab&&(this._anim&&"playing"==this._anim.status()&&this._anim.stop(),this.scrollNode.scrollLeft=this._convertToScrollLeft(this._getScrollForSelectedTab()));this._setButtonClass(this._getScroll());this._postResize=!0;return{h:this._contentBox.h,
w:v.w}},_getScroll:function(){return this.isLeftToRight()||8>a("ie")||a("trident")&&a("quirks")||a("webkit")?this.scrollNode.scrollLeft:h.get(this.containerNode,"width")-h.get(this.scrollNode,"width")+(a("trident")||a("edge")?-1:1)*this.scrollNode.scrollLeft},_convertToScrollLeft:function(v){if(this.isLeftToRight()||8>a("ie")||a("trident")&&a("quirks")||a("webkit"))return v;var y=h.get(this.containerNode,"width")-h.get(this.scrollNode,"width");return(a("trident")||a("edge")?-1:1)*(v-y)},onSelectChild:function(v,
y){var z=this.pane2button(v.id);if(z){var C=z.domNode;if(C!=this._selectedTab&&(this._selectedTab=C,this._postResize)){var G=this._getScroll();G>C.offsetLeft||G+h.get(this.scrollNode,"width")<C.offsetLeft+h.get(C,"width")?(C=this.createSmoothScroll(),y&&(C.onEnd=function(){z.focus()}),C.play()):y&&z.focus()}this.inherited(arguments)}},_getScrollBounds:function(){var v=this.getChildren(),y=h.get(this.scrollNode,"width"),z=h.get(this.containerNode,"width")-y,C=this._getTabsWidth();if(v.length&&C>y)return{min:this.isLeftToRight()?
0:v[v.length-1].domNode.offsetLeft,max:this.isLeftToRight()?v[v.length-1].domNode.offsetLeft+v[v.length-1].domNode.offsetWidth-y:z};v=this.isLeftToRight()?0:z;return{min:v,max:v}},_getScrollForSelectedTab:function(){var v=this._selectedTab,y=h.get(this.scrollNode,"width"),z=this._getScrollBounds();v=v.offsetLeft+h.get(v,"width")/2-y/2;return v=Math.min(Math.max(v,z.min),z.max)},createSmoothScroll:function(v){if(0<arguments.length){var y=this._getScrollBounds();v=Math.min(Math.max(v,y.min),y.max)}else v=
this._getScrollForSelectedTab();this._anim&&"playing"==this._anim.status()&&this._anim.stop();var z=this,C=this.scrollNode,G=new e.Animation({beforeBegin:function(){this.curve&&delete this.curve;var B=C.scrollLeft,D=z._convertToScrollLeft(v);G.curve=new e._Line(B,D)},onAnimate:function(B){C.scrollLeft=B}});this._anim=G;this._setButtonClass(v);return G},_getBtnNode:function(v){for(v=v.target;v&&!x.contains(v,"tabStripButton");)v=v.parentNode;return v},doSlideRight:function(v){this.doSlide(1,this._getBtnNode(v))},
doSlideLeft:function(v){this.doSlide(-1,this._getBtnNode(v))},doSlide:function(v,y){if(!y||!x.contains(y,"dijitTabDisabled")){var z=.75*h.get(this.scrollNode,"width")*v;z=this._getScroll()+z;this._setButtonClass(z);this.createSmoothScroll(z).play()}},_setButtonClass:function(v){var y=this._getScrollBounds();this._leftBtn.set("disabled",v<=y.min);this._rightBtn.set("disabled",v>=y.max)}});k=A("dijit.layout._ScrollingTabControllerButtonMixin",null,{baseClass:"dijitTab tabStripButton",templateString:k,
tabIndex:"",isFocusable:function(){return!1}});A("dijit.layout._ScrollingTabControllerButton",[w,k]);A("dijit.layout._ScrollingTabControllerMenuButton",[w,t,k],{containerId:"",tabIndex:"-1",isLoaded:function(){return!1},loadDropDown:function(v){this.dropDown=new n({id:this.containerId+"_menu",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir});var y=c.byId(this.containerId);u.forEach(y.getChildren(),function(z){var C=new q({id:z.id+"_stcMi",label:z.title,iconClass:z.iconClass,
disabled:z.disabled,ownerDocument:this.ownerDocument,dir:z.dir,lang:z.lang,textDir:z.textDir||y.textDir,onClick:function(){y.selectChild(z)}});this.dropDown.addChild(C)},this);v()},closeDropDown:function(v){this.inherited(arguments);this.dropDown&&(this._popupStateNode.removeAttribute("aria-owns"),this.dropDown.destroyRecursive(),delete this.dropDown)}});return f})},"dijit/_WidgetsInTemplateMixin":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/_base/lang","dojo/parser"],
function(u,A,x,r,h){return x("dijit._WidgetsInTemplateMixin",null,{_earlyTemplatedStartup:!1,contextRequire:null,_beforeFillContent:function(){if(/dojoType|data-dojo-type/i.test(this.domNode.innerHTML)){var e=this.domNode;this.containerNode&&!this.searchContainerNode&&(this.containerNode.stopParser=!0);h.parse(e,{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(g){this._startupWidgets=g;for(var d=0;d<g.length;d++)this._processTemplateNode(g[d],function(b,a){return b[a]},function(b,a,c){return a in b?b.connect(b,a,c):b.on(a,c,!0)});this.containerNode&&this.containerNode.stopParser&&delete this.containerNode.stopParser}));if(!this._startupWidgets)throw Error(this.declaredClass+": parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin.   Must pre-load all supporting widgets before instantiation.");
}},_processTemplateNode:function(e,g,d){return g(e,"dojoType")||g(e,"data-dojo-type")?!0:this.inherited(arguments)},startup:function(){u.forEach(this._startupWidgets,function(e){e&&!e._started&&e.startup&&e.startup()});this._startupWidgets=null;this.inherited(arguments)}})})},"dijit/layout/AccordionContainer":function(){define("require dojo/_base/array dojo/_base/declare dojo/_base/fx dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/keys dojo/_base/lang dojo/sniff dojo/topic ../focus ../_base/manager dojo/ready ../_Widget ../_Container ../_TemplatedMixin ../_CssStateMixin ./StackContainer ./ContentPane dojo/text!./templates/AccordionButton.html ../a11yclick".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n,q,w,t,v,y,z){function C(B,D){B.resize?B.resize(D):b.setMarginBox(B.domNode,D)}k=x("dijit.layout._AccordionButton",[n,w,t],{templateString:z,label:"",_setLabelAttr:{node:"titleTextNode",type:"innerHTML"},title:"",_setTitleAttr:{node:"titleTextNode",type:"attribute",attribute:"title"},iconClassAttr:"",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitAccordionTitle",getParent:function(){return this.parent},buildRendering:function(){this.inherited(arguments);
var B=this.id.replace(" ","_");e.set(this.titleTextNode,"id",B+"_title");this.focusNode.setAttribute("aria-labelledby",e.get(this.titleTextNode,"id"));h.setSelectable(this.domNode,!1)},getTitleHeight:function(){return b.getMarginSize(this.domNode).h},_onTitleClick:function(){this.getParent().selectChild(this.contentWidget,!0);m.focus(this.focusNode)},_onTitleKeyDown:function(B){return this.getParent()._onKeyDown(B,this.contentWidget)},_setSelectedAttr:function(B){this._set("selected",B);this.focusNode.setAttribute("aria-expanded",
B?"true":"false");this.focusNode.setAttribute("aria-selected",B?"true":"false");this.focusNode.setAttribute("tabIndex",B?"0":"-1")}});f("dojo-bidi")&&k.extend({_setLabelAttr:function(B){this._set("label",B);e.set(this.titleTextNode,"innerHTML",B);this.applyTextDir(this.titleTextNode)},_setTitleAttr:function(B){this._set("title",B);e.set(this.titleTextNode,"title",B);this.applyTextDir(this.titleTextNode)}});var G=x("dijit.layout._AccordionInnerContainer"+(f("dojo-bidi")?"_NoBidi":""),[n,t],{baseClass:"dijitAccordionInnerContainer",
isLayoutContainer:!0,buildRendering:function(){this.domNode=d.place("\x3cdiv class\x3d'"+this.baseClass+"' role\x3d'presentation'\x3e",this.contentWidget.domNode,"after");var B=this.contentWidget,D=c.isString(this.buttonWidget)?c.getObject(this.buttonWidget):this.buttonWidget;this.button=B._buttonWidget=(new D({contentWidget:B,label:B.title,title:B.tooltip,dir:B.dir,lang:B.lang,textDir:B.textDir||this.textDir,iconClass:B.iconClass,id:B.id+"_button",parent:this.parent})).placeAt(this.domNode);this.containerNode=
d.place("\x3cdiv class\x3d'dijitAccordionChildWrapper' role\x3d'tabpanel' style\x3d'display:none'\x3e",this.domNode);this.containerNode.setAttribute("aria-labelledby",this.button.id);d.place(this.contentWidget.domNode,this.containerNode)},postCreate:function(){this.inherited(arguments);var B=this.button,D=this.contentWidget;this._contentWidgetWatches=[D.watch("title",c.hitch(this,function(E,J,I){B.set("label",I)})),D.watch("tooltip",c.hitch(this,function(E,J,I){B.set("title",I)})),D.watch("iconClass",
c.hitch(this,function(E,J,I){B.set("iconClass",I)}))]},_setSelectedAttr:function(B){this._set("selected",B);this.button.set("selected",B);if(B&&(B=this.contentWidget,B.onSelected))B.onSelected()},startup:function(){this.contentWidget.startup()},destroy:function(){this.button.destroyRecursive();A.forEach(this._contentWidgetWatches||[],function(B){B.unwatch()});delete this.contentWidget._buttonWidget;delete this.contentWidget._wrapperWidget;this.inherited(arguments)},destroyDescendants:function(B){this.contentWidget.destroyRecursive(B)}});
f("dojo-bidi")&&(G=x("dijit.layout._AccordionInnerContainer",G,{postCreate:function(){this.inherited(arguments);var B=this.button;this._contentWidgetWatches.push(this.contentWidget.watch("textDir",function(D,E,J){B.set("textDir",J)}))}}));x=x("dijit.layout.AccordionContainer",v,{duration:p.defaultDuration,buttonWidget:k,baseClass:"dijitAccordionContainer",buildRendering:function(){this.inherited(arguments);this.domNode.style.overflow="hidden";this.domNode.setAttribute("role","tablist")},startup:function(){this._started||
(this.inherited(arguments),this.selectedChildWidget&&this.selectedChildWidget._wrapperWidget.set("selected",!0))},layout:function(){var B=this.selectedChildWidget;if(B){var D=B._wrapperWidget.domNode,E=b.getMarginExtents(D);D=b.getPadBorderExtents(D);var J=B._wrapperWidget.containerNode,I=b.getMarginExtents(J);J=b.getPadBorderExtents(J);var F=this._contentBox,H=0;A.forEach(this.getChildren(),function(K){K!=B&&(H+=b.getMarginSize(K._wrapperWidget.domNode).h)});this._verticalSpace=F.h-H-E.h-D.h-I.h-
J.h-B._buttonWidget.getTitleHeight();this._containerContentBox={h:this._verticalSpace,w:this._contentBox.w-E.w-D.w-I.w-J.w};B&&C(B,this._containerContentBox)}},_setupChild:function(B){B._wrapperWidget=G({contentWidget:B,buttonWidget:this.buttonWidget,id:B.id+"_wrapper",dir:B.dir,lang:B.lang,textDir:B.textDir||this.textDir,parent:this});this.inherited(arguments);d.place(B.domNode,B._wrapper,"replace")},removeChild:function(B){B._wrapperWidget&&(d.place(B.domNode,B._wrapperWidget.domNode,"after"),B._wrapperWidget.destroy(),
delete B._wrapperWidget);g.remove(B.domNode,"dijitHidden");this.inherited(arguments)},getChildren:function(){return A.map(this.inherited(arguments),function(B){return"dijit.layout._AccordionInnerContainer"==B.declaredClass?B.contentWidget:B},this)},destroy:function(){this._animation&&this._animation.stop();A.forEach(this.getChildren(),function(B){B._wrapperWidget?B._wrapperWidget.destroy():B.destroyRecursive()});this.inherited(arguments)},_showChild:function(B){B._wrapperWidget.containerNode.style.display=
"block";return this.inherited(arguments)},_hideChild:function(B){B._wrapperWidget.containerNode.style.display="none";this.inherited(arguments)},_transition:function(B,D,E){8>f("ie")&&(E=!1);this._animation&&(this._animation.stop(!0),delete this._animation);var J=this;if(B){B._wrapperWidget.set("selected",!0);var I=this._showChild(B);this.doLayout&&C(B,this._containerContentBox)}D&&(D._wrapperWidget.set("selected",!1),E||this._hideChild(D));if(E){var F=B._wrapperWidget.containerNode,H=D._wrapperWidget.containerNode;
E=B._wrapperWidget.containerNode;B=b.getMarginExtents(E);E=b.getPadBorderExtents(E);var K=B.h+E.h;H.style.height=J._verticalSpace-K+"px";this._animation=new r.Animation({node:F,duration:this.duration,curve:[1,this._verticalSpace-K-1],onAnimate:function(L){L=Math.floor(L);F.style.height=L+"px";H.style.height=J._verticalSpace-K-L+"px"},onEnd:function(){delete J._animation;F.style.height="auto";D._wrapperWidget.containerNode.style.display="none";H.style.height="auto";J._hideChild(D)}});this._animation.onStop=
this._animation.onEnd;this._animation.play()}return I},_onKeyDown:function(B,D){if(!this.disabled&&!B.altKey&&(D||B.ctrlKey)){var E=B.keyCode;if(D&&(E==a.LEFT_ARROW||E==a.UP_ARROW)||B.ctrlKey&&E==a.PAGE_UP)this._adjacent(!1)._buttonWidget._onTitleClick(),B.stopPropagation(),B.preventDefault();else if(D&&(E==a.RIGHT_ARROW||E==a.DOWN_ARROW)||B.ctrlKey&&(E==a.PAGE_DOWN||E==a.TAB))this._adjacent(!0)._buttonWidget._onTitleClick(),B.stopPropagation(),B.preventDefault()}}});f("dijit-legacy-requires")&&l(0,
function(){u(["dijit/layout/AccordionPane"])});x._InnerContainer=G;x._Button=k;return x})},"dijit/layout/AccordionPane":function(){define(["dojo/_base/declare","dojo/_base/kernel","./ContentPane"],function(u,A,x){return u("dijit.layout.AccordionPane",x,{constructor:function(){A.deprecated("dijit.layout.AccordionPane deprecated, use ContentPane instead","","2.0")},onSelected:function(){}})})},"dojox/layout/ExpandoPane":function(){define("dojo/_base/kernel dojo/_base/lang dojo/_base/declare dojo/_base/array dojo/_base/connect dojo/_base/event dojo/_base/fx dojo/dom-style dojo/dom-class dojo/dom-geometry dojo/text!./resources/ExpandoPane.html dijit/layout/ContentPane dijit/_TemplatedMixin dijit/_Contained dijit/_Container".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p){u.experimental("dojox.layout.ExpandoPane");return x("dojox.layout.ExpandoPane",[f,k,m,p],{attributeMap:A.delegate(f.prototype.attributeMap,{title:{node:"titleNode",type:"innerHTML"}}),templateString:c,easeOut:"dojo._DefaultEasing",easeIn:"dojo._DefaultEasing",duration:420,startExpanded:!0,previewOpacity:.75,previewOnDblClick:!1,tabIndex:"0",_setTabIndexAttr:"iconNode",baseClass:"dijitExpandoPane",postCreate:function(){this.inherited(arguments);this._animConnects=
[];this._isHorizontal=!0;A.isString(this.easeOut)&&(this.easeOut=A.getObject(this.easeOut));A.isString(this.easeIn)&&(this.easeIn=A.getObject(this.easeIn));var l="",n=!this.isLeftToRight();if(this.region){switch(this.region){case "trailing":case "right":l=n?"Left":"Right";this._needsPosition="left";break;case "leading":case "left":l=n?"Right":"Left";break;case "top":l="Top";break;case "bottom":this._needsPosition="top",l="Bottom"}b.add(this.domNode,"dojoxExpando"+l);b.add(this.iconNode,"dojoxExpandoIcon"+
l);this._isHorizontal=/top|bottom/.test(this.region)}d.set(this.domNode,{overflow:"hidden",padding:0});this.connect(this.domNode,"ondblclick",this.previewOnDblClick?"preview":"toggle");this.iconNode.setAttribute("aria-controls",this.id);this.iconNode.setAttribute("role","button");this.iconNode.setAttribute("aria-label",this.titleNode.innerHTML);this.previewOnDblClick&&this.connect(this.getParent(),"_layoutChildren",A.hitch(this,function(){this._isonlypreview=!1}))},_startupSizes:function(){this._container=
this.getParent();this._closedSize=this._titleHeight=a.getMarginBox(this.titleWrapper).h;if(this.splitter){var l=this.id;r.forEach(dijit.registry.toArray(),function(n){n&&n.child&&n.child.id==l&&this.connect(n,"_stopDrag","_afterResize")},this)}this._currentSize=a.getContentBox(this.domNode);this._showSize=this._currentSize[this._isHorizontal?"h":"w"];this._setupAnims();this.startExpanded?this._showing=!0:(this._showing=!1,this._hideWrapper(),this._hideAnim.gotoPercent(99,!0));this.domNode.setAttribute("aria-expanded",
this._showing);this._hasSizes=!0},_afterResize:function(l){l=this._currentSize;this._currentSize=a.getMarginBox(this.domNode);var n=this._currentSize[this._isHorizontal?"h":"w"];n>this._titleHeight?(this._showing||(this._showing=!this._showing,this._showEnd()),this._showSize=n,this._setupAnims()):(this._showSize=l[this._isHorizontal?"h":"w"],this._showing=!1,this._hideWrapper(),this._hideAnim.gotoPercent(89,!0))},_setupAnims:function(){r.forEach(this._animConnects,h.disconnect);var l={node:this.domNode,
duration:this.duration},n={},q=this._showSize,w=this._closedSize,t={},v=this._isHorizontal?"height":"width",y=this._needsPosition;n[v]={end:q};t[v]={end:w};y&&(n[y]={end:function(z){return parseInt(z.style[y],10)-q+w}},t[y]={end:function(z){return parseInt(z.style[y],10)+q-w}});this._showAnim=g.animateProperty(A.mixin(l,{easing:this.easeIn,properties:n}));this._hideAnim=g.animateProperty(A.mixin(l,{easing:this.easeOut,properties:t}));this._animConnects=[h.connect(this._showAnim,"onEnd",this,"_showEnd"),
h.connect(this._hideAnim,"onEnd",this,"_hideEnd")]},preview:function(){this._showing||(this._isonlypreview=!this._isonlypreview);this.toggle()},toggle:function(){this._showing?(this._hideWrapper(),this._showAnim&&this._showAnim.stop(),this._hideAnim.play()):(this._hideAnim&&this._hideAnim.stop(),this._showAnim.play());this._showing=!this._showing;this.domNode.setAttribute("aria-expanded",this._showing)},_hideWrapper:function(){b.add(this.domNode,"dojoxExpandoClosed");d.set(this.cwrapper,{visibility:"hidden",
opacity:"0",overflow:"hidden"})},_showEnd:function(){d.set(this.cwrapper,{opacity:0,visibility:"visible"});g.anim(this.cwrapper,{opacity:this._isonlypreview?this.previewOpacity:1},227);b.remove(this.domNode,"dojoxExpandoClosed");this._isonlypreview?(this._previewShowing=!0,this.resize()):setTimeout(A.hitch(this._container,"layout"),15)},_hideEnd:function(){this._isonlypreview?this._previewShowing=!1:setTimeout(A.hitch(this._container,"layout"),25);this._isonlypreview=!1},resize:function(l){this._hasSizes||
this._startupSizes(l);var n=a.getMarginBox(this.domNode);this._contentBox={w:l&&"w"in l?l.w:n.w,h:(l&&"h"in l?l.h:n.h)-this._titleHeight};d.set(this.containerNode,"height",this._contentBox.h+"px");l&&a.setMarginBox(this.domNode,l);this._layoutChildren();this._setupAnims()},_trap:function(l){e.stop(l)}})})},"dojox/widget/Dialog":function(){define("dojo dojox dojo/text!./Dialog/Dialog.html dijit/Dialog dojo/window dojox/fx ./DialogSimple".split(" "),function(u,A,x){u.getObject("widget",!0,A);return u.declare("dojox.widget.Dialog",
A.widget.DialogSimple,{templateString:x,sizeToViewport:!1,viewportPadding:35,dimensions:null,easing:null,sizeDuration:dijit._defaultDuration,sizeMethod:"chain",showTitle:!1,draggable:!1,modal:!1,constructor:function(r,h){this.easing=r.easing||u._defaultEasing;this.dimensions=r.dimensions||[300,300]},_setup:function(){this.inherited(arguments);this._alreadyInitialized||(this._navIn=u.fadeIn({node:this.closeButtonNode}),this._navOut=u.fadeOut({node:this.closeButtonNode}),this.showTitle||u.addClass(this.domNode,
"dojoxDialogNoTitle"))},layout:function(r){this._setSize();this.inherited(arguments)},_setSize:function(){this._vp=u.window.getBox();var r=this.containerNode,h=this.sizeToViewport;return this._displaysize={w:h?r.scrollWidth:this.dimensions[0],h:h?r.scrollHeight:this.dimensions[1]}},show:function(){this.open||(this._setSize(),u.style(this.closeButtonNode,"opacity",0),u.style(this.domNode,{overflow:"hidden",opacity:0,width:"1px",height:"1px"}),u.style(this.containerNode,{opacity:0,overflow:"hidden"}),
this.inherited(arguments),this.modal?this._modalconnects.push(u.connect(u.body(),"onkeypress",function(r){r.charOrCode==u.keys.ESCAPE&&u.stopEvent(r)})):this._modalconnects.push(u.connect(dijit._underlay.domNode,"onclick",this,"onCancel")),this._modalconnects.push(u.connect(this.domNode,"onmouseenter",this,"_handleNav")),this._modalconnects.push(u.connect(this.domNode,"onmouseleave",this,"_handleNav")))},_handleNav:function(r){var h="mouseout"==r.type?"_navOut":"_navIn";this["mouseout"==r.type?"_navIn":
"_navOut"].stop();this[h].play()},_position:function(){if(this._started){this._sizing&&(this._sizing.stop(),this.disconnect(this._sizingConnect),delete this._sizing);this.inherited(arguments);this.open||u.style(this.containerNode,"opacity",0);var r=2*this.viewportPadding,h={node:this.domNode,duration:this.sizeDuration||dijit._defaultDuration,easing:this.easing,method:this.sizeMethod},e=this._displaysize||this._setSize();h.width=e.w=e.w+r>=this._vp.w||this.sizeToViewport?this._vp.w-r:e.w;h.height=
e.h=e.h+r>=this._vp.h||this.sizeToViewport?this._vp.h-r:e.h;this._sizing=A.fx.sizeTo(h);this._sizingConnect=this.connect(this._sizing,"onEnd","_showContent");this._sizing.play()}},_showContent:function(r){r=this.containerNode;u.style(this.domNode,{overflow:"visible",opacity:1});u.style(this.closeButtonNode,"opacity",1);u.style(r,{height:this._displaysize.h-this.titleNode.offsetHeight+"px",width:this._displaysize.w+"px",overflow:"auto"});u.anim(r,{opacity:1})}})})},"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(u,A,x,r,h,e,g,d){g.isDebug&&x(["./_firebug/firebug"]);var b=g.require;b&&(b=e.map(h.isArray(b)?b:[b],function(a){return a.replace(/\./g,"/")}),u.isAsync?x(b):d(1,function(){x(b)}));return u})},"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(u){return u})},"dojo/_base/unload":function(){define(["./kernel","./lang","../on"],function(u,
A,x){var r=window,h={addOnWindowUnload:function(e,g){u.windowUnloaded||x(r,"unload",u.windowUnloaded=function(){});x(r,"unload",A.hitch(e,g))},addOnUnload:function(e,g){x(r,"beforeunload",A.hitch(e,g))}};u.addOnWindowUnload=h.addOnWindowUnload;u.addOnUnload=h.addOnUnload;return h})},"dojo/_base/html":function(){define("./kernel ../dom ../dom-style ../dom-attr ../dom-prop ../dom-class ../dom-construct ../dom-geometry".split(" "),function(u,A,x,r,h,e,g,d){u.byId=A.byId;u.isDescendant=A.isDescendant;
u.setSelectable=A.setSelectable;u.getAttr=r.get;u.setAttr=r.set;u.hasAttr=r.has;u.removeAttr=r.remove;u.getNodeProp=r.getNodeProp;u.attr=function(b,a,c){return 2==arguments.length?r["string"==typeof a?"get":"set"](b,a):r.set(b,a,c)};u.hasClass=e.contains;u.addClass=e.add;u.removeClass=e.remove;u.toggleClass=e.toggle;u.replaceClass=e.replace;u._toDom=u.toDom=g.toDom;u.place=g.place;u.create=g.create;u.empty=function(b){g.empty(b)};u._destroyElement=u.destroy=function(b){g.destroy(b)};u._getPadExtents=
u.getPadExtents=d.getPadExtents;u._getBorderExtents=u.getBorderExtents=d.getBorderExtents;u._getPadBorderExtents=u.getPadBorderExtents=d.getPadBorderExtents;u._getMarginExtents=u.getMarginExtents=d.getMarginExtents;u._getMarginSize=u.getMarginSize=d.getMarginSize;u._getMarginBox=u.getMarginBox=d.getMarginBox;u.setMarginBox=d.setMarginBox;u._getContentBox=u.getContentBox=d.getContentBox;u.setContentSize=d.setContentSize;u._isBodyLtr=u.isBodyLtr=d.isBodyLtr;u._docScroll=u.docScroll=d.docScroll;u._getIeDocumentElementOffset=
u.getIeDocumentElementOffset=d.getIeDocumentElementOffset;u._fixIeBiDiScrollLeft=u.fixIeBiDiScrollLeft=d.fixIeBiDiScrollLeft;u.position=d.position;u.marginBox=function(b,a){return a?d.setMarginBox(b,a):d.getMarginBox(b)};u.contentBox=function(b,a){return a?d.setContentSize(b,a):d.getContentBox(b)};u.coords=function(b,a){u.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");b=A.byId(b);var c=x.getComputedStyle(b);c=d.getMarginBox(b,c);var f=d.position(b,a);c.x=f.x;c.y=f.y;return c};
u.getProp=h.get;u.setProp=h.set;u.prop=function(b,a,c){return 2==arguments.length?h["string"==typeof a?"get":"set"](b,a):h.set(b,a,c)};u.getStyle=x.get;u.setStyle=x.set;u.getComputedStyle=x.getComputedStyle;u.__toPixelValue=u.toPixelValue=x.toPixelValue;u.style=function(b,a,c){switch(arguments.length){case 1:return x.get(b);case 2:return x["string"==typeof a?"get":"set"](b,a)}return x.set(b,a,c)};return u})},"dojo/_base/NodeList":function(){define(["./kernel","../query","./array","./html","../NodeList-dom"],
function(u,A,x){A=A.NodeList;var r=A.prototype;r.connect=A._adaptAsForEach(function(){return u.connect.apply(this,arguments)});r.coords=A._adaptAsMap(u.coords);A.events="blur focus change click error keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup submit".split(" ");x.forEach(A.events,function(h){var e="on"+h;r[e]=function(g,d){return this.connect(e,g,d)}});return u.NodeList=A})},"dojox/main":function(){define(["dojo/_base/kernel"],function(u){return u.dojox})},
"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(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n,q,w,t,v,y,z,C,G,B,D,E,J,I,F){function H(){}var K=new h;K.resolve(!0);y=r("dijit._DialogBase"+(l("dojo-bidi")?"_NoBidi":""),[C,B,D,G],{templateString:F,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(P){this._set("draggable",P)},maxRatio:.9,
closable:!0,_setClosableAttr:function(P){this.closeButtonNode.style.display=P?"":"none";this._set("closable",P)},postMixInProperties:function(){var P=c.getLocalization("dijit","common");k.mixin(this,P);this.inherited(arguments)},postCreate:function(){b.set(this.domNode,{display:"none",position:"absolute"});this.ownerDocumentBody.appendChild(this.domNode);this.inherited(arguments);x.after(this,"onExecute",k.hitch(this,"hide"),!0);x.after(this,"onCancel",k.hitch(this,"hide"),!0);m(this.closeButtonNode,
n.press,function(P){P.stopPropagation()});this._modalconnects=[]},onLoad:function(){this.resize();this._position();this.autofocus&&N.isTop(this)&&(this._getFocusItems(),v.focus(this._firstFocusItem));this.inherited(arguments)},focus:function(){this._getFocusItems();v.focus(this._firstFocusItem)},_endDrag:function(){var P=d.position(this.domNode),S=q.getBox(this.ownerDocument);P.y=Math.min(Math.max(P.y,0),S.h-P.h);P.x=Math.min(Math.max(P.x,0),S.w-P.w);this._relativePosition=P;this._position()},_setup:function(){var P=
this.domNode;this.titleBar&&this.draggable?(this._moveable=new (6==l("ie")?t:w)(P,{handle:this.titleBar}),x.after(this._moveable,"onMoveStop",k.hitch(this,"_endDrag"),!0)):g.add(P,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":A.map(this["class"].split(/\s/),function(S){return S+"_underlay"}).join(" "),_onKeyDown:k.hitch(this,"_onKey"),ownerDocument:this.ownerDocument}},_size:function(){this.resize()},_position:function(){if(!g.contains(this.ownerDocumentBody,"dojoMove")){var P=
this.domNode,S=q.getBox(this.ownerDocument),M=this._relativePosition,R=d.position(P);b.set(P,{left:Math.floor(S.l+(M?Math.min(M.x,S.w-R.w):(S.w-R.w)/2))+"px",top:Math.floor(S.t+(M?Math.min(M.y,S.h-R.h):(S.h-R.h)/2))+"px"})}},_onKey:function(P){if(P.keyCode==f.TAB){this._getFocusItems();var S=P.target;this._firstFocusItem==this._lastFocusItem?(P.stopPropagation(),P.preventDefault()):S==this._firstFocusItem&&P.shiftKey?(v.focus(this._lastFocusItem),P.stopPropagation(),P.preventDefault()):S!=this._lastFocusItem||
P.shiftKey||(v.focus(this._firstFocusItem),P.stopPropagation(),P.preventDefault())}else this.closable&&P.keyCode==f.ESCAPE&&(this.onCancel(),P.stopPropagation(),P.preventDefault())},show:function(){if(this.open)return K.promise;this._started||this.startup();this._alreadyInitialized||(this._setup(),this._alreadyInitialized=!0);this._fadeOutDeferred&&(this._fadeOutDeferred.cancel(),N.hide(this));var P=q.get(this.ownerDocument);this._modalconnects.push(m(P,"scroll",k.hitch(this,"resize",null)));this._modalconnects.push(m(this.domNode,
"keydown",k.hitch(this,"_onKey")));b.set(this.domNode,{opacity:0,display:""});this._set("open",!0);this._onShow();this.resize();this._position();this._fadeInDeferred=new h(k.hitch(this,function(){S.stop();delete this._fadeInDeferred}));this._fadeInDeferred.then(void 0,H);P=this._fadeInDeferred.promise;var S=a.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:k.hitch(this,function(){N.show(this,this.underlayAttrs)}),onEnd:k.hitch(this,function(){this.autofocus&&N.isTop(this)&&(this._getFocusItems(),
v.focus(this._firstFocusItem));this._fadeInDeferred.resolve(!0);delete this._fadeInDeferred})}).play();return P},hide:function(){if(!this._alreadyInitialized||!this.open)return K.promise;this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred=new h(k.hitch(this,function(){S.stop();delete this._fadeOutDeferred}));this._fadeOutDeferred.then(void 0,H);this._fadeOutDeferred.then(k.hitch(this,"onHide"));var P=this._fadeOutDeferred.promise;var S=a.fadeOut({node:this.domNode,duration:this.duration,
onEnd:k.hitch(this,function(){this.domNode.style.display="none";N.hide(this);this._fadeOutDeferred.resolve(!0);delete this._fadeOutDeferred})}).play();this._scrollConnected&&(this._scrollConnected=!1);for(var M;M=this._modalconnects.pop();)M.remove();this._relativePosition&&delete this._relativePosition;this._set("open",!1);return P},resize:function(P){if("none"!=this.domNode.style.display){this._checkIfSingleChild();if(!P){this._shrunk&&(this._singleChild&&"undefined"!=typeof this._singleChildOriginalStyle&&
(this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle,delete this._singleChildOriginalStyle),A.forEach([this.domNode,this.containerNode,this.titleBar,this.actionBarNode],function(T){T&&b.set(T,{position:"static",width:"auto",height:"auto"})}),this.domNode.style.position="absolute");var S=q.getBox(this.ownerDocument);S.w*=this.maxRatio;S.h*=this.maxRatio;var M=d.position(this.domNode);this._shrunk=!1;M.w>=S.w&&(P={w:S.w},d.setMarginBox(this.domNode,P),M=d.position(this.domNode),this._shrunk=
!0);M.h>=S.h&&(P||(P={w:M.w}),P.h=S.h,this._shrunk=!0);P&&(P.w||(P.w=M.w),P.h||(P.h=M.h))}if(P){d.setMarginBox(this.domNode,P);S=[];this.titleBar&&S.push({domNode:this.titleBar,region:"top"});this.actionBarNode&&S.push({domNode:this.actionBarNode,region:"bottom"});M={domNode:this.containerNode,region:"center"};S.push(M);var R=I.marginBox2contentBox(this.domNode,P);I.layoutChildren(this.domNode,R,S);this._singleChild?(S=I.marginBox2contentBox(this.containerNode,M),this._singleChild.resize({w:S.w,h:S.h})):
(this.containerNode.style.overflow="auto",this._layoutChildren())}else this._layoutChildren();l("touch")||P||this._position()}},_layoutChildren:function(){A.forEach(this.getChildren(),function(P){P.resize&&P.resize()})},destroy:function(){this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred&&this._fadeOutDeferred.cancel();this._moveable&&this._moveable.destroy();for(var P;P=this._modalconnects.pop();)P.remove();N.hide(this);this.inherited(arguments)}});l("dojo-bidi")&&(y=r("dijit._DialogBase",
y,{_setTitleAttr:function(P){this._set("title",P);this.titleNode.innerHTML=P;this.applyTextDir(this.titleNode)},_setTextDirAttr:function(P){this._created&&this.textDir!=P&&(this._set("textDir",P),this.set("title",this.title))}}));var L=r("dijit.Dialog",[J,y],{});L._DialogBase=y;var N=L._DialogLevelManager={_beginZIndex:950,show:function(P,S){Q[Q.length-1].focus=v.curNode;var M=Q[Q.length-1].dialog?Q[Q.length-1].zIndex+2:L._DialogLevelManager._beginZIndex;b.set(P.domNode,"zIndex",M);E.show(S,M-1);
Q.push({dialog:P,underlayAttrs:S,zIndex:M})},hide:function(P){if(Q[Q.length-1].dialog==P){Q.pop();var S=Q[Q.length-1];1==Q.length?E.hide():E.show(S.underlayAttrs,S.zIndex-1);if(P.refocus&&(P=S.focus,!S.dialog||P&&e.isDescendant(P,S.dialog.domNode)||(S.dialog._getFocusItems(),P=S.dialog._firstFocusItem),P))try{P.focus()}catch(M){}}else S=A.indexOf(A.map(Q,function(M){return M.dialog}),P),-1!=S&&Q.splice(S,1)},isTop:function(P){return Q[Q.length-1].dialog==P}},Q=L._dialogStack=[{dialog:null,focus:null,
underlayAttrs:null}];v.watch("curNode",function(P,S,M){P=Q[Q.length-1].dialog;if(M&&P&&!P._fadeOutDeferred&&M.ownerDocument==P.ownerDocument){do if(M==P.domNode||g.contains(M,"dijitPopup"))return;while(M=M.parentNode);P.focus()}});l("dijit-legacy-requires")&&p(0,function(){u(["dijit/TooltipDialog"])});return L})},"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(u,A,x,r,h,e,g,d,b,a,c,f,k){function m(n,q){"touchAction"in document.body.style?p="touchAction":"msTouchAction"in document.body.style&&(p="msTouchAction");l=function(w,t){w.style[p]=t};l(n,q)}var p,l=function(){};g("touch-action")&&(l=m);return A("dojo.dnd.Moveable",[e],{handle:"",delay:0,skip:!1,constructor:function(n,q){this.node=r.byId(n);l(this.node,"none");q||(q={});this.handle=q.handle?r.byId(q.handle):null;this.handle||(this.handle=this.node);this.delay=0<q.delay?q.delay:0;this.skip=
q.skip;this.mover=q.mover?q.mover:f;this.events=[d(this.handle,a.press,x.hitch(this,"onMouseDown")),d(this.handle,"dragstart",x.hitch(this,"onSelectStart")),d(this.handle,"selectstart",x.hitch(this,"onSelectStart"))]},markupFactory:function(n,q,w){return new w(q,n)},destroy:function(){u.forEach(this.events,function(n){n.remove()});l(this.node,"");this.events=this.node=this.handle=null},onMouseDown:function(n){if(!this.skip||!c.isFormElement(n)){if(this.delay)this.events.push(d(this.handle,a.move,
x.hitch(this,"onMouseMove")),d(this.handle.ownerDocument,a.release,x.hitch(this,"onMouseUp"))),this._lastX=n.pageX,this._lastY=n.pageY;else this.onDragDetected(n);n.stopPropagation();n.preventDefault()}},onMouseMove:function(n){if(Math.abs(n.pageX-this._lastX)>this.delay||Math.abs(n.pageY-this._lastY)>this.delay)this.onMouseUp(n),this.onDragDetected(n);n.stopPropagation();n.preventDefault()},onMouseUp:function(n){for(var q=0;2>q;++q)this.events.pop().remove();n.stopPropagation();n.preventDefault()},
onSelectStart:function(n){this.skip&&c.isFormElement(n)||(n.stopPropagation(),n.preventDefault())},onDragDetected:function(n){new this.mover(this.node,n,this)},onMoveStart:function(n){b.publish("/dnd/move/start",n);h.add(k.body(),"dojoMove");h.add(this.node,"dojoMoveItem")},onMoveStop:function(n){b.publish("/dnd/move/stop",n);h.remove(k.body(),"dojoMove");h.remove(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(n,q){this.onMoving(n,q);var w=n.node.style;w.left=q.l+"px";w.top=q.t+
"px";this.onMoved(n,q)},onMoving:function(){},onMoved:function(){}})})},"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(u,A,x,r,h,e,g,d,b,a,c,f,k){return A("dojo.dnd.Mover",[b],{constructor:function(m,p,l){function n(q){q.preventDefault();q.stopPropagation()}this.node=e.byId(m);this.marginBox={l:p.pageX,t:p.pageY};this.mouseButton=p.button;
p=this.host=l;m=m.ownerDocument;this.events=[a(m,c.move,x.hitch(this,"onFirstMove")),a(m,c.move,x.hitch(this,"onMouseMove")),a(m,c.release,x.hitch(this,"onMouseUp")),a(m,"dragstart",n),a(m.body,"selectstart",n)];k.autoScrollStart(m);if(p&&p.onMoveStart)p.onMoveStart(this)},onMouseMove:function(m){k.autoScroll(m);var p=this.marginBox;this.host.onMove(this,{l:p.l+m.pageX,t:p.t+m.pageY},m);m.preventDefault();m.stopPropagation()},onMouseUp:function(m){(r("webkit")&&r("mac")&&2==this.mouseButton?0==m.button:
this.mouseButton==m.button)&&this.destroy();m.preventDefault();m.stopPropagation()},onFirstMove:function(m){var p=this.node.style,l=this.host;switch(p.position){case "relative":case "absolute":var n=Math.round(parseFloat(p.left))||0;p=Math.round(parseFloat(p.top))||0;break;default:p.position="absolute";p=g.getMarginBox(this.node);n=h.doc.body;var q=d.getComputedStyle(n),w=g.getMarginBox(n,q);q=g.getContentBox(n,q);n=p.l-(q.l-w.l);p=p.t-(q.t-w.t)}this.marginBox.l=n-this.marginBox.l;this.marginBox.t=
p-this.marginBox.t;if(l&&l.onFirstMove)l.onFirstMove(this,m);this.events.shift().remove()},destroy:function(){u.forEach(this.events,function(p){p.remove()});var m=this.host;if(m&&m.onMoveStop)m.onMoveStop(this);this.events=this.node=this.host=null}})})},"dojo/dnd/TimedMoveable":function(){define(["../_base/declare","./Moveable"],function(u,A){var x=A.prototype.onMove;return u("dojo.dnd.TimedMoveable",A,{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),x.call(this,r,r._leftTop));A.prototype.onMoveStop.apply(this,arguments)},onMove:function(r,h){r._leftTop=h;if(!r._timer){var e=this;r._timer=setTimeout(function(){r._timer=null;x.call(e,r,r._leftTop)},this.timeout)}}})})},"dijit/_DialogMixin":function(){define(["dojo/_base/declare","./a11y"],function(u,A){return u("dijit._DialogMixin",null,{actionBarTemplate:"",execute:function(){},onCancel:function(){},onExecute:function(){},
_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var x=A._getTabNavigable(this.domNode);this._firstFocusItem=x.lowest||x.first||this.closeButtonNode||this.domNode;this._lastFocusItem=x.last||x.highest||this._firstFocusItem}})})},"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(u,
A,x,r,h,e,g,d,b,a,c,f){var k=u("dijit.DialogUnderlay",[d,b],{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(m){r.set(this.node,"id",m+"_underlay");this._set("dialogId",m)},_setClassAttr:function(m){this.node.className="dijitDialogUnderlay "+m;this._set("class",m)},postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);
this.own(e(this.domNode,"keydown",A.hitch(this,"_onKeyDown")));this.inherited(arguments)},layout:function(){var m=this.node.style,p=this.domNode.style;p.display="none";var l=g.getBox(this.ownerDocument);p.top=l.t+"px";p.left=l.l+"px";m.width=l.w+"px";m.height=l.h+"px";p.display="block"},show:function(){this.domNode.style.display="block";this.open=!0;this.layout();this.bgIframe=new a(this.domNode);var m=g.get(this.ownerDocument);this._modalConnects=[c.on("resize",A.hitch(this,"layout")),e(m,"scroll",
A.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(m,p){var l=k._singleton;!l||l._destroyed?l=f._underlay=k._singleton=new k(m):m&&l.set(m);h.set(l.domNode,"zIndex",p);l.open||l.show()};k.hide=function(){var m=
k._singleton;m&&!m._destroyed&&m.hide()};return k})},"dojox/fx":function(){define(["./fx/_base"],function(u){return u})},"dojox/fx/_base":function(){define("dojo/_base/array dojo/_base/lang dojo/_base/fx dojo/fx dojo/dom dojo/dom-style dojo/dom-geometry dojo/_base/connect dojo/_base/html".split(" "),function(u,A,x,r,h,e,g,d,b){u=A.getObject("dojox.fx",!0);A.mixin(u,{anim:x.anim,animateProperty:x.animateProperty,fadeTo:x._fade,fadeIn:x.fadeIn,fadeOut:x.fadeOut,combine:r.combine,chain:r.chain,slideTo:r.slideTo,
wipeIn:r.wipeIn,wipeOut:r.wipeOut});u.sizeTo=function(a){var c=a.node=h.byId(a.node),f=a.method||"chain";a.duration||(a.duration=500);"chain"==f&&(a.duration=Math.floor(a.duration/2));var k,m,p,l,n,q=null,w=function(t){return function(){var v=e.getComputedStyle(t),y=v.position,z=v.width,C=v.height;k="absolute"==y?t.offsetTop:parseInt(v.top)||0;p="absolute"==y?t.offsetLeft:parseInt(v.left)||0;n="auto"==z?0:parseInt(z);q="auto"==C?0:parseInt(C);l=p-Math.floor((a.width-n)/2);m=k-Math.floor((a.height-
q)/2);"absolute"!=y&&"relative"!=y&&(v=e.coords(t,!0),k=v.y,p=v.x,t.style.position="absolute",t.style.top=k+"px",t.style.left=p+"px")}}(c);c=x.animateProperty(A.mixin({properties:{height:function(){w();return{end:a.height||0,start:q}},top:function(){return{start:k,end:m}}}},a));f=x.animateProperty(A.mixin({properties:{width:function(){return{start:n,end:a.width||0}},left:function(){return{start:p,end:l}}}},a));return r["combine"==a.method?"combine":"chain"]([c,f])};u.slideBy=function(a){var c,f,k=
function(m){return function(){var p=e.getComputedStyle(m),l=p.position;c="absolute"==l?m.offsetTop:parseInt(p.top)||0;f="absolute"==l?m.offsetLeft:parseInt(p.left)||0;"absolute"!=l&&"relative"!=l&&(p=g.coords(m,!0),c=p.y,f=p.x,m.style.position="absolute",m.style.top=c+"px",m.style.left=f+"px")}}(a.node=h.byId(a.node));k();a=x.animateProperty(A.mixin({properties:{top:c+(a.top||0),left:f+(a.left||0)}},a));d.connect(a,"beforeBegin",a,k);return a};u.crossFade=function(a){var c=a.nodes[0]=h.byId(a.nodes[0]),
f=b.style(c,"opacity"),k=a.nodes[1]=h.byId(a.nodes[1]);b.style(k,"opacity");return r.combine([x[0==f?"fadeIn":"fadeOut"](A.mixin({node:c},a)),x[0==f?"fadeOut":"fadeIn"](A.mixin({node:k},a))])};u.highlight=function(a){var c=a.node=h.byId(a.node);a.duration=a.duration||400;var f=a.color||"#ffff99",k=b.style(c,"backgroundColor");"rgba(0, 0, 0, 0)"==k&&(k="transparent");a=x.animateProperty(A.mixin({properties:{backgroundColor:{start:f,end:k}}},a));"transparent"==k&&d.connect(a,"onEnd",a,function(){c.style.backgroundColor=
k});return a};u.wipeTo=function(a){a.node=h.byId(a.node);var c=a.node,f=c.style,k=a.width?"width":"height",m={};m[k]={start:function(){f.overflow="hidden";if("hidden"==f.visibility||"none"==f.display)return f[k]="1px",f.display="",f.visibility="",1;var p=b.style(c,k);return Math.max(p,1)},end:a[k]};return x.animateProperty(A.mixin({properties:m},a))};return u})},"dojox/widget/DialogSimple":function(){define(["dojo/_base/declare","dijit/Dialog","dojox/layout/ContentPane"],function(u,A,x){return u("dojox.widget.DialogSimple",
[x,A._DialogBase],{})})},"dojox/widget/Standby":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/array dojo/_base/event dojo/_base/sniff dojo/dom dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/window dojo/_base/window dojo/_base/fx dojo/fx dijit/_Widget dijit/_TemplatedMixin dijit/registry".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n){u.experimental("dojox.widget.Standby");return A("dojox.widget.Standby",[p,l],{image:require.toUrl("dojox/widget/Standby/images/loading.gif").toString(),
imageText:"Please Wait...",text:"Please wait...",centerIndicator:"image",target:"",color:"#C0C0C0",duration:500,zIndex:"auto",opacity:.75,templateString:'\x3cdiv\x3e\x3cdiv style\x3d"display: none; opacity: 0; z-index: 9999; position: absolute; cursor:wait;" dojoAttachPoint\x3d"_underlayNode"\x3e\x3c/div\x3e\x3cimg src\x3d"${image}" style\x3d"opacity: 0; display: none; z-index: -10000; position: absolute; top: 0px; left: 0px; cursor:wait;" dojoAttachPoint\x3d"_imageNode"\x3e\x3cdiv style\x3d"opacity: 0; display: none; z-index: -10000; position: absolute; top: 0px;" dojoAttachPoint\x3d"_textNode"\x3e\x3c/div\x3e\x3c/div\x3e',
_underlayNode:null,_imageNode:null,_textNode:null,_centerNode:null,_displayed:!1,_resizeCheck:null,_started:!1,_parent:null,startup:function(q){if(!this._started){if("string"===typeof this.target){var w=n.byId(this.target);this.target=w?w.domNode:e.byId(this.target)}this.text&&(this._textNode.innerHTML=this.text);"image"===this.centerIndicator?(this._centerNode=this._imageNode,g.set(this._imageNode,"src",this.image),g.set(this._imageNode,"alt",this.imageText)):this._centerNode=this._textNode;a.set(this._underlayNode,
{display:"none",backgroundColor:this.color});a.set(this._centerNode,"display","none");this.connect(this._underlayNode,"onclick","_ignore");this.domNode.parentNode&&this.domNode.parentNode!=f.body()&&f.body().appendChild(this.domNode);7==h("ie")&&(this._ieFixNode=d.create("div"),a.set(this._ieFixNode,{opacity:"0",zIndex:"-1000",position:"absolute",top:"-1000px"}),f.body().appendChild(this._ieFixNode));this.inherited(arguments)}},show:function(){this._displayed||(this._anim&&(this._anim.stop(),delete this._anim),
this._displayed=!0,this._size(),this._disableOverflow(),this._fadeIn())},hide:function(){if(this._displayed)try{this._anim&&(this._anim.stop(),delete this._anim),this._size()}catch(q){}finally{this._fadeOut(),this._displayed=!1,null!==this._resizeCheck&&(clearInterval(this._resizeCheck),this._resizeCheck=null)}},isVisible:function(){return this._displayed},onShow:function(){},onHide:function(){},uninitialize:function(){this._displayed=!1;this._resizeCheck&&clearInterval(this._resizeCheck);a.set(this._centerNode,
"display","none");a.set(this._underlayNode,"display","none");7==h("ie")&&this._ieFixNode&&(f.body().removeChild(this._ieFixNode),delete this._ieFixNode);this._anim&&(this._anim.stop(),delete this._anim);this._centerNode=this._textNode=this._imageNode=this.target=null;this.inherited(arguments)},_size:function(){if(this._displayed){var q=g.get(f.body(),"dir");q&&(q=q.toLowerCase());var w=this._scrollerWidths(),t=this.target,v=a.get(this._centerNode,"display");a.set(this._centerNode,"display","block");
var y=b.position(t,!0);if(t===f.body()||t===f.doc)y=c.getBox(),y.x=y.l,y.y=y.t;var z=b.getMarginBox(this._centerNode);a.set(this._centerNode,"display",v);if(this._ieFixNode){var C=-this._ieFixNode.offsetTop/1E3;y.x=Math.floor((y.x+.9)/C);y.y=Math.floor((y.y+.9)/C);y.w=Math.floor((y.w+.9)/C);y.h=Math.floor((y.h+.9)/C)}var G=a.get(t,"zIndex"),B=v=G;if("auto"===this.zIndex)if("auto"!=G)v=parseInt(v,10),B=parseInt(B,10);else{var D=t;if(D&&D!==f.body()&&D!==f.doc)for(D=t.parentNode,C=-1E5;D&&D!==f.body();)(G=
a.get(D,"zIndex"))&&"auto"!==G&&(G=parseInt(G,10),C<G&&(C=G,v=G+1,B=G+1)),D=D.parentNode}else v=parseInt(this.zIndex,10),B=parseInt(this.zIndex,10);a.set(this._centerNode,"zIndex",B);a.set(this._underlayNode,"zIndex",v);if((v=t.parentNode)&&v!==f.body()&&t!==f.body()&&t!==f.doc){D=y.h;B=y.w;t=b.position(v,!0);this._ieFixNode&&(C=-this._ieFixNode.offsetTop/1E3,t.x=Math.floor((t.x+.9)/C),t.y=Math.floor((t.y+.9)/C),t.w=Math.floor((t.w+.9)/C),t.h=Math.floor((t.h+.9)/C));t.w-=v.scrollHeight>v.clientHeight&&
0<v.clientHeight?w.v:0;t.h-=v.scrollWidth>v.clientWidth&&0<v.clientWidth?w.h:0;"rtl"===q&&(h("opera")?(y.x+=v.scrollHeight>v.clientHeight&&0<v.clientHeight?w.v:0,t.x+=v.scrollHeight>v.clientHeight&&0<v.clientHeight?w.v:0):h("ie")?t.x+=v.scrollHeight>v.clientHeight&&0<v.clientHeight?w.v:0:h("webkit"));t.w<y.w&&(y.w-=t.w);t.h<y.h&&(y.h-=t.h);var E=t.y,J=t.y+t.h,I=y.y,F=y.y+D;q=t.x;C=t.x+t.w;G=y.x;var H=y.x+B;if(F>E&&I<E)y.y=t.y,D-=E-I,y.h=D<t.h?D:y.h-2*(v.scrollWidth>v.clientWidth&&0<v.clientWidth?
w.h:0);else if(I<J&&F>J)y.h=J-I;else if(F<=E||I>=J)y.h=0;if(H>q&&G<q)y.x=t.x,B-=q-G,y.w=B<t.w?B:y.w-2*(v.scrollHeight>v.clientHeight&&0<v.clientHeight?w.w:0);else if(G<C&&H>C)y.w=C-G;else if(H<=q||G>=C)y.w=0}0<y.h&&0<y.w?(a.set(this._underlayNode,{display:"block",width:y.w+"px",height:y.h+"px",top:y.y+"px",left:y.x+"px"}),w=["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],this._cloneStyles(w),h("ie")||(w="MozBorderRadius MozBorderRadiusTopleft MozBorderRadiusTopright MozBorderRadiusBottomleft MozBorderRadiusBottomright WebkitBorderRadius WebkitBorderTopLeftRadius WebkitBorderTopRightRadius WebkitBorderBottomLeftRadius WebkitBorderBottomRightRadius".split(" "),
this._cloneStyles(w,this)),w=y.h/2-z.h/2,v=y.w/2-z.w/2,y.h>=z.h&&y.w>=z.w?a.set(this._centerNode,{top:w+y.y+"px",left:v+y.x+"px",display:"block"}):a.set(this._centerNode,"display","none")):(a.set(this._underlayNode,"display","none"),a.set(this._centerNode,"display","none"));if(null===this._resizeCheck){var K=this;this._resizeCheck=setInterval(function(){K._size()},100)}}},_cloneStyles:function(q){x.forEach(q,function(w){a.set(this._underlayNode,w,a.get(this.target,w))},this)},_fadeIn:function(){var q=
this,w=k.animateProperty({duration:q.duration,node:q._underlayNode,properties:{opacity:{start:0,end:q.opacity}}}),t=k.animateProperty({duration:q.duration,node:q._centerNode,properties:{opacity:{start:0,end:1}},onEnd:function(){q.onShow();delete q._anim}});this._anim=m.combine([w,t]);this._anim.play()},_fadeOut:function(){var q=this,w=k.animateProperty({duration:q.duration,node:q._underlayNode,properties:{opacity:{start:q.opacity,end:0}},onEnd:function(){a.set(this.node,{display:"none",zIndex:"-1000"})}}),
t=k.animateProperty({duration:q.duration,node:q._centerNode,properties:{opacity:{start:1,end:0}},onEnd:function(){a.set(this.node,{display:"none",zIndex:"-1000"});q.onHide();q._enableOverflow();delete q._anim}});this._anim=m.combine([w,t]);this._anim.play()},_ignore:function(q){q&&r.stop(q)},_scrollerWidths:function(){var q=d.create("div");a.set(q,{position:"absolute",opacity:0,overflow:"hidden",width:"50px",height:"50px",zIndex:"-100",top:"-200px",padding:"0px",margin:"0px"});var w=d.create("div");
a.set(w,{width:"200px",height:"10px"});q.appendChild(w);f.body().appendChild(q);w=b.getContentBox(q);a.set(q,"overflow","scroll");var t=b.getContentBox(q);f.body().removeChild(q);return{v:w.w-t.w,h:w.h-t.h}},_setTextAttr:function(q){this.text=this._textNode.innerHTML=q},_setColorAttr:function(q){a.set(this._underlayNode,"backgroundColor",q);this.color=q},_setImageTextAttr:function(q){g.set(this._imageNode,"alt",q);this.imageText=q},_setImageAttr:function(q){g.set(this._imageNode,"src",q);this.image=
q},_setCenterIndicatorAttr:function(q){this.centerIndicator=q;"image"===q?(this._centerNode=this._imageNode,a.set(this._textNode,"display","none")):(this._centerNode=this._textNode,a.set(this._imageNode,"display","none"))},_setTargetAttr:function(q){if("string"===typeof q){var w=n.byId(q);this._set("target",w?w.domNode:e.byId(q))}else this._set("target",q)},_disableOverflow:function(){if(this.target===f.body()||this.target===f.doc){this._overflowDisabled=!0;var q=f.body();this._oldOverflow=q.style&&
q.style.overflow?a.get(q,"overflow"):"";if(h("ie")&&!h("quirks")){if(q.parentNode&&q.parentNode.style&&q.parentNode.style.overflow)this._oldBodyParentOverflow=q.parentNode.style.overflow;else try{this._oldBodyParentOverflow=a.get(q.parentNode,"overflow")}catch(w){this._oldBodyParentOverflow="scroll"}a.set(q.parentNode,"overflow","hidden")}a.set(q,"overflow","hidden")}},_enableOverflow:function(){if(this._overflowDisabled){delete this._overflowDisabled;var q=f.body();h("ie")&&!h("quirks")&&(q.parentNode.style.overflow=
this._oldBodyParentOverflow,delete this._oldBodyParentOverflow);a.set(q,"overflow",this._oldOverflow);if(h("webkit")){var w=d.create("div",{style:{height:"2px"}});q.appendChild(w);setTimeout(function(){q.removeChild(w)},0)}delete this._oldOverflow}}})})},"dijit/PopupMenuItem":function(){define("dojo/_base/declare dojo/dom-style dojo/_base/lang dojo/query ./popup ./registry ./MenuItem ./hccss".split(" "),function(u,A,x,r,h,e,g){return u("dijit.PopupMenuItem",g,{baseClass:"dijitMenuItem dijitPopupMenuItem",
_fillContent:function(){if(this.srcNodeRef){var d=r("*",this.srcNodeRef);this.inherited(arguments,[d[0]]);this.dropDownContainer=this.srcNodeRef}},_openPopup:function(d,b){var a=this.popup;h.open(x.delegate(d,{popup:this.popup,around:this.domNode}));b&&a.focus&&a.focus()},_closePopup:function(){h.close(this.popup);this.popup.parentMenu=null},startup:function(){if(!this._started){this.inherited(arguments);if(!this.popup){var d=r("[widgetId]",this.dropDownContainer)[0];this.popup=e.byNode(d)}this.ownerDocumentBody.appendChild(this.popup.domNode);
this.popup.domNode.setAttribute("aria-labelledby",this.containerNode.id);this.popup.startup();this.popup.domNode.style.display="none";this.arrowWrapper&&A.set(this.arrowWrapper,"visibility","");this.focusNode.setAttribute("aria-haspopup","true")}},destroyDescendants:function(d){this.popup&&(this.popup._destroyed||this.popup.destroyRecursive(d),delete this.popup);this.inherited(arguments)}})})},"dijit/CheckedMenuItem":function(){define(["dojo/_base/declare","dojo/dom-class","./MenuItem","dojo/text!./templates/CheckedMenuItem.html",
"./hccss"],function(u,A,x,r){return u("dijit.CheckedMenuItem",x,{baseClass:"dijitMenuItem dijitCheckedMenuItem",templateString:r,checked:!1,_setCheckedAttr:function(h){this.domNode.setAttribute("aria-checked",h?"true":"false");this._set("checked",h)},iconClass:"",role:"menuitemcheckbox",checkedChar:"\x26#10003;",onChange:function(){},_onClick:function(h){this.disabled||(this.set("checked",!this.checked),this.onChange(this.checked));this.onClick(h)}})})},"dijit/MenuSeparator":function(){define("dojo/_base/declare dojo/dom ./_WidgetBase ./_TemplatedMixin ./_Contained dojo/text!./templates/MenuSeparator.html".split(" "),
function(u,A,x,r,h,e){return u("dijit.MenuSeparator",[x,r,h],{templateString:e,buildRendering:function(){this.inherited(arguments);A.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})})},"dijit/Editor":function(){define("require dojo/_base/array dojo/_base/declare dojo/Deferred dojo/i18n dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/keys dojo/_base/lang dojo/sniff dojo/string dojo/topic ./_Container ./Toolbar ./ToolbarSeparator ./layout/_LayoutWidget ./form/ToggleButton ./_editor/_Plugin ./_editor/plugins/EnterKeyHandling ./_editor/html ./_editor/range ./_editor/RichText ./main dojo/i18n!./_editor/nls/commands".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n,q,w,t,v,y,z,C,G){function B(E){return new t({command:E.name})}function D(E){return new t({buttonClass:w,command:E.name})}x=x("dijit.Editor",C,{plugins:null,extraPlugins:null,constructor:function(){c.isArray(this.plugins)||(this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull",v]);this._plugins=
[];this._editInterval=1E3*this.editActionInterval;if(f("ie")||f("trident")||f("edge"))this.events.push("onBeforeDeactivate"),this.events.push("onBeforeActivate")},postMixInProperties:function(){this.setValueDeferred=new r;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);c.isArray(this.extraPlugins)&&(this.plugins=this.plugins.concat(this.extraPlugins));this.commands=h.getLocalization("dijit._editor",
"commands",this.lang);f("webkit")&&b.set(this.domNode,"KhtmlUserSelect","none")},startup:function(){this.inherited(arguments);this.toolbar||(this.toolbar=new l({ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,"aria-label":this.id}),this.header.appendChild(this.toolbar.domNode));A.forEach(this.plugins,this.addPlugin,this);this.setValueDeferred.resolve(!0);g.add(this.iframe.parentNode,"dijitEditorIFrameContainer");g.add(this.iframe,"dijitEditorIFrame");e.set(this.iframe,"allowTransparency",
!0);this.toolbar.startup();this.onNormalizedDisplayChanged()},destroy:function(){A.forEach(this._plugins,function(E){E&&E.destroy&&E.destroy()});this._plugins=[];this.toolbar.destroyRecursive();delete this.toolbar;this.inherited(arguments)},addPlugin:function(E,J){var I=c.isString(E)?{name:E}:c.isFunction(E)?{ctor:E}:E;if(!I.setEditor){var F={args:I,plugin:null,editor:this};I.name&&(t.registry[I.name]?F.plugin=t.registry[I.name](I):m.publish(G._scopeName+".Editor.getPlugin",F));if(!F.plugin)try{var H=
I.ctor||c.getObject(I.name)||u(I.name);H&&(F.plugin=new H(I))}catch(K){throw Error(this.id+": cannot find plugin ["+I.name+"]");}if(!F.plugin)throw Error(this.id+": cannot find plugin ["+I.name+"]");E=F.plugin}1<arguments.length?this._plugins[J]=E:this._plugins.push(E);E.setEditor(this);c.isFunction(E.setToolbar)&&E.setToolbar(this.toolbar)},resize:function(E){E&&q.prototype.resize.apply(this,arguments)},layout:function(){var E=this._contentBox.h-(this.getHeaderHeight()+this.getFooterHeight()+d.getPadBorderExtents(this.iframe.parentNode).h+
d.getMarginExtents(this.iframe.parentNode).h);this.editingArea.style.height=E+"px";this.iframe&&(this.iframe.style.height="100%");this._layoutMode=!0},_onIEMouseDown:function(E){var J,I=this.document.body,F=I.clientWidth,H=I.clientHeight,K=I.clientLeft,L=I.offsetWidth,N=I.offsetHeight,Q=I.offsetLeft;/^rtl$/i.test(I.dir||"")?F<L&&E.x>F&&E.x<L&&(J=!0):E.x<K&&E.x>Q&&(J=!0);J||H<N&&E.y>H&&E.y<N&&(J=!0);J||(delete this._cursorToStart,delete this._savedSelection,"BODY"==E.target.tagName&&this.defer("placeCursorAtEnd"),
this.inherited(arguments))},onBeforeActivate:function(){this._restoreSelection()},onBeforeDeactivate:function(E){this.customUndo&&this.endEditing(!0);"BODY"!=E.target.tagName&&this._saveSelection()},customUndo:!0,editActionInterval:3,beginEditing:function(E){this._inEditing||(this._inEditing=!0,this._beginEditing(E));0<this.editActionInterval&&(this._editTimer&&this._editTimer.remove(),this._editTimer=this.defer("endEditing",this._editInterval))},_steps:[],_undoedSteps:[],execCommand:function(E){if(!this.customUndo||
"undo"!=E&&"redo"!=E){this.customUndo&&(this.endEditing(),this._beginEditing());var J=this.inherited(arguments);this.customUndo&&this._endEditing();return J}return this[E]()},_pasteImpl:function(){return this._clipboardCommand("paste")},_cutImpl:function(){return this._clipboardCommand("cut")},_copyImpl:function(){return this._clipboardCommand("copy")},_clipboardCommand:function(E){try{var J=this.document.execCommand(E,!1,null);if(f("webkit")&&!J)throw{};}catch(I){J=k.substitute,alert(J(this.commands.systemShortcut,
[this.commands[E],J(this.commands[f("mac")?"appleKey":"ctrlKey"],[{cut:"X",copy:"C",paste:"V"}[E]])])),J=!1}return J},queryCommandEnabled:function(E){return!this.customUndo||"undo"!=E&&"redo"!=E?this.inherited(arguments):"undo"==E?1<this._steps.length:0<this._undoedSteps.length},_moveToBookmark:function(E){var J=E.mark,I=E.mark;E=E.isCollapsed;var F;if(I)if(9>f("ie")||9===f("ie")&&f("quirks"))if(c.isArray(I))J=[],A.forEach(I,function(L){J.push(z.getNode(L,this.editNode))},this),this.selection.moveToBookmark({mark:J,
isCollapsed:E});else{if(I.startContainer&&I.endContainer&&(F=z.getSelection(this.window))&&F.removeAllRanges){F.removeAllRanges();E=z.create(this.window);var H=z.getNode(I.startContainer,this.editNode);var K=z.getNode(I.endContainer,this.editNode);H&&K&&(E.setStart(H,I.startOffset),E.setEnd(K,I.endOffset),F.addRange(E))}}else(F=z.getSelection(this.window))&&F.removeAllRanges&&(F.removeAllRanges(),E=z.create(this.window),H=z.getNode(I.startContainer,this.editNode),K=z.getNode(I.endContainer,this.editNode),
H&&K&&(E.setStart(H,I.startOffset),E.setEnd(K,I.endOffset),F.addRange(E)))},_changeToStep:function(E,J){this.setValue(J.text);var I=J.bookmark;I&&this._moveToBookmark(I)},undo:function(){var E=!1;if(!this._undoRedoActive){this._undoRedoActive=!0;this.endEditing(!0);var J=this._steps.pop();J&&0<this._steps.length&&(this.focus(),this._changeToStep(J,this._steps[this._steps.length-1]),this._undoedSteps.push(J),this.onDisplayChanged(),delete this._undoRedoActive,E=!0);delete this._undoRedoActive}return E},
redo:function(){var E=!1;if(!this._undoRedoActive){this._undoRedoActive=!0;this.endEditing(!0);var J=this._undoedSteps.pop();J&&0<this._steps.length&&(this.focus(),this._changeToStep(this._steps[this._steps.length-1],J),this._steps.push(J),this.onDisplayChanged(),E=!0);delete this._undoRedoActive}return E},endEditing:function(E){this._editTimer&&(this._editTimer=this._editTimer.remove());this._inEditing&&(this._endEditing(E),this._inEditing=!1)},_getBookmark:function(){var E=this.selection.getBookmark(),
J=[];if(E&&E.mark){var I=E.mark;if(9>f("ie")||9===f("ie")&&f("quirks")){var F=z.getSelection(this.window);if(c.isArray(I))A.forEach(E.mark,function(K){J.push(z.getIndex(K,this.editNode).o)},this),E.mark=J;else if(F){var H;F.rangeCount&&(H=F.getRangeAt(0));E.mark=H?H.cloneRange():this.selection.getBookmark()}}try{E.mark&&E.mark.startContainer&&(J=z.getIndex(E.mark.startContainer,this.editNode).o,E.mark={startContainer:J,startOffset:E.mark.startOffset,endContainer:E.mark.endContainer===E.mark.startContainer?
J:z.getIndex(E.mark.endContainer,this.editNode).o,endOffset:E.mark.endOffset})}catch(K){E.mark=null}}return E},_beginEditing:function(){0===this._steps.length&&this._steps.push({text:y.getChildrenHtml(this.editNode),bookmark:this._getBookmark()})},_endEditing:function(){var E=y.getChildrenHtml(this.editNode);this._undoedSteps=[];this._steps.push({text:E,bookmark:this._getBookmark()})},onKeyDown:function(E){f("ie")||this.iframe||E.keyCode!=a.TAB||this.tabIndent||this._saveSelection();if(this.customUndo){var J=
E.keyCode;if(E.ctrlKey&&!E.shiftKey&&!E.altKey){if(90==J||122==J){E.stopPropagation();E.preventDefault();this.undo();return}if(89==J||121==J){E.stopPropagation();E.preventDefault();this.redo();return}}this.inherited(arguments);switch(J){case a.ENTER:case a.BACKSPACE:case a.DELETE:this.beginEditing();break;case 88:case 86:if(E.ctrlKey&&!E.altKey&&!E.metaKey){this.endEditing();88==E.keyCode?this.beginEditing("cut"):this.beginEditing("paste");this.defer("endEditing",1);break}default:if(!E.ctrlKey&&!E.altKey&&
!E.metaKey&&(E.keyCode<a.F1||E.keyCode>a.F15)){this.beginEditing();break}case a.ALT:this.endEditing();break;case a.UP_ARROW:case a.DOWN_ARROW:case a.LEFT_ARROW:case a.RIGHT_ARROW:case a.HOME:case a.END:case a.PAGE_UP:case a.PAGE_DOWN:this.endEditing(!0);case a.CTRL:case a.SHIFT:case a.TAB:}}else this.inherited(arguments)},_onBlur:function(){this.inherited(arguments);this.endEditing(!0)},_saveSelection:function(){try{this._savedSelection=this._getBookmark()}catch(E){}},_restoreSelection:function(){this._savedSelection&&
(delete this._cursorToStart,this.selection.isCollapsed()&&this._moveToBookmark(this._savedSelection),delete this._savedSelection)},onClick:function(){this.endEditing(!0);this.inherited(arguments)},replaceValue:function(E){this.customUndo?this.isClosed?this.setValue(E):(this.beginEditing(),E||(E="\x26#160;"),this.setValue(E),this.endEditing()):this.inherited(arguments)},_setDisabledAttr:function(E){this.setValueDeferred.then(c.hitch(this,function(){!this.disabled&&E||!this._buttonEnabledPlugins&&E?
A.forEach(this._plugins,function(J){J.set("disabled",!0)}):this.disabled&&!E&&A.forEach(this._plugins,function(J){J.set("disabled",!1)})}));this.inherited(arguments)},_setStateClass:function(){try{this.inherited(arguments),this.document&&this.document.body&&(b.set(this.document.body,"color",b.get(this.iframe,"color")),b.set(this.document.body,"background-color",b.get(this.iframe,"background-color")))}catch(E){}}});c.mixin(t.registry,{undo:B,redo:B,cut:B,copy:B,paste:B,insertOrderedList:B,insertUnorderedList:B,
indent:B,outdent:B,justifyCenter:B,justifyFull:B,justifyLeft:B,justifyRight:B,"delete":B,selectAll:B,removeFormat:B,unlink:B,insertHorizontalRule:B,bold:D,italic:D,underline:D,strikethrough:D,subscript:D,superscript:D,"|":function(){return new t({setEditor:function(E){this.editor=E;this.button=new n({ownerDocument:E.ownerDocument})}})}});return x})},"dijit/Toolbar":function(){define("require dojo/_base/declare dojo/has dojo/keys dojo/ready ./_Widget ./_KeyNavContainer ./_TemplatedMixin".split(" "),
function(u,A,x,r,h,e,g,d){x("dijit-legacy-requires")&&h(0,function(){u(["dijit/ToolbarSeparator"])});return A("dijit.Toolbar",[e,d,g],{templateString:'\x3cdiv class\x3d"dijit" role\x3d"toolbar" tabIndex\x3d"${tabIndex}" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e',baseClass:"dijitToolbar",_onLeftArrow:function(){this.focusPrev()},_onRightArrow:function(){this.focusNext()}})})},"dijit/ToolbarSeparator":function(){define(["dojo/_base/declare","dojo/dom","./_Widget","./_TemplatedMixin"],
function(u,A,x,r){return u("dijit.ToolbarSeparator",[x,r],{templateString:'\x3cdiv class\x3d"dijitToolbarSeparator dijitInline" role\x3d"presentation"\x3e\x3c/div\x3e',buildRendering:function(){this.inherited(arguments);A.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})})},"dijit/_editor/_Plugin":function(){define(["dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","../Destroyable","../form/Button"],function(u,A,x,r,h){A=A("dijit._editor._Plugin",r,{constructor:function(e){this.params=
e||{};x.mixin(this,this.params);this._attrPairNames={}},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,command:"",useDefaultCommand:!0,buttonClass:h,disabled:!1,getLabel:function(e){return this.editor.commands[e]},_initButton:function(){if(this.command.length){var e=this.getLabel(this.command),g=this.editor,d=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);this.button||(e=x.mixin({label:e,ownerDocument:g.ownerDocument,dir:g.dir,
lang:g.lang,showLabel:!1,iconClass:d,dropDown:this.dropDown,tabIndex:"-1"},this.params||{}),delete e.name,this.button=new this.buttonClass(e))}this.get("disabled")&&this.button&&this.button.set("disabled",this.get("disabled"))},destroy:function(){this.dropDown&&this.dropDown.destroyRecursive();this.inherited(arguments)},connect:function(e,g,d){this.own(u.connect(e,g,this,d))},updateState:function(){var e=this.editor,g=this.command;if(e&&e.isLoaded&&g.length){var d=this.get("disabled");if(this.button)try{var b=
e._implCommand(g);var a=!d&&(this[b]?this[b](g):e.queryCommandEnabled(g));this.enabled!==a&&(this.enabled=a,this.button.set("disabled",!a));if(a&&"boolean"==typeof this.button.checked){var c=e.queryCommandState(g);this.checked!==c&&(this.checked=c,this.button.set("checked",e.queryCommandState(g)))}}catch(f){}}},setEditor:function(e){this.editor=e;this._initButton();this.button&&this.useDefaultCommand&&(this.editor.queryCommandAvailable(this.command)?this.own(this.button.on("click",x.hitch(this.editor,
"execCommand",this.command,this.commandArg))):this.button.domNode.style.display="none");this.own(this.editor.on("NormalizedDisplayChanged",x.hitch(this,"updateState")))},setToolbar:function(e){this.button&&e.addChild(this.button)},set:function(e,g){if("object"===typeof e){for(var d in e)this.set(d,e[d]);return this}d=this._getAttrNames(e);if(this[d.s])var b=this[d.s].apply(this,Array.prototype.slice.call(arguments,1));else this._set(e,g);return b||this},get:function(e){var g=this._getAttrNames(e);
return this[g.g]?this[g.g]():this[e]},_setDisabledAttr:function(e){this._set("disabled",e);this.updateState()},_getAttrNames:function(e){var g=this._attrPairNames;if(g[e])return g[e];var d=e.charAt(0).toUpperCase()+e.substr(1);return g[e]={s:"_set"+d+"Attr",g:"_get"+d+"Attr"}},_set:function(e,g){this[e]=g}});A.registry={};return A})},"dijit/_editor/plugins/EnterKeyHandling":function(){define("dojo/_base/declare dojo/dom-construct dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/_base/window dojo/window ../_Plugin ../RichText ../range".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c){return u("dijit._editor.plugins.EnterKeyHandling",b,{blockNodeForEnter:"BR",constructor:function(f){f&&("blockNodeForEnter"in f&&(f.blockNodeForEnter=f.blockNodeForEnter.toUpperCase()),r.mixin(this,f))},setEditor:function(f){if(this.editor!==f)if(this.editor=f,"BR"==this.blockNodeForEnter)this.editor.customUndo=!0,f.onLoadDeferred.then(r.hitch(this,function(m){this.own(h(f.document,"keydown",r.hitch(this,function(p){if(p.keyCode==x.ENTER){var l=r.mixin({},p);l.shiftKey=
!0;this.handleEnterKey(l)||(p.stopPropagation(),p.preventDefault())}})));9<=e("ie")&&10>=e("ie")&&this.own(h(f.document,"paste",r.hitch(this,function(p){setTimeout(r.hitch(this,function(){var l=this.editor.document.selection.createRange();l.move("character",-1);l.select();l.move("character",1);l.select()}),0)})));return m}));else if(this.blockNodeForEnter){var k=r.hitch(this,"handleEnterKey");f.addKeyHandler(13,0,0,k);f.addKeyHandler(13,0,1,k);this.own(this.editor.on("KeyPressed",r.hitch(this,"onKeyPressed")))}},
onKeyPressed:function(){if(this._checkListLater){if(this.editor.selection.isCollapsed()){var f=this.editor.selection.getAncestorElement("LI");if(f){e("mozilla")&&"LI"==f.parentNode.parentNode.nodeName&&(f=f.parentNode.parentNode);var k=f.firstChild;!k||1!=k.nodeType||"UL"!=k.nodeName&&"OL"!=k.nodeName||(f.insertBefore(k.ownerDocument.createTextNode("\u00a0"),k),k=c.create(this.editor.window),k.setStart(f.firstChild,0),f=c.getSelection(this.editor.window,!0),f.removeAllRanges(),f.addRange(k))}else if(a.prototype.execCommand.call(this.editor,
"formatblock",this.blockNodeForEnter),f=this.editor.selection.getAncestorElement(this.blockNodeForEnter))f.innerHTML=this.bogusHtmlContent,9>=e("ie")&&(f=this.editor.document.selection.createRange(),f.move("character",-1),f.select())}this._checkListLater=!1}this._pressedEnterInBlock&&(this._pressedEnterInBlock.previousSibling&&this.removeTrailingBr(this._pressedEnterInBlock.previousSibling),delete this._pressedEnterInBlock)},bogusHtmlContent:"\x26#160;",blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(f){var k,
m=this.editor.document,p;if(f.shiftKey){f=this.editor.selection.getParentElement();if(k=c.getAncestor(f,this.blockNodes)){if("LI"==k.tagName)return!0;f=c.getSelection(this.editor.window);var l=f.getRangeAt(0);l.collapsed||(l.deleteContents(),f=c.getSelection(this.editor.window),l=f.getRangeAt(0));if(c.atBeginningOfContainer(k,l.startContainer,l.startOffset)){var n=m.createElement("br");l=c.create(this.editor.window);k.insertBefore(n,k.firstChild);l.setStartAfter(n);f.removeAllRanges();f.addRange(l)}else if(c.atEndOfContainer(k,
l.startContainer,l.startOffset))l=c.create(this.editor.window),n=m.createElement("br"),k.appendChild(n),k.appendChild(m.createTextNode("\u00a0")),l.setStart(k.lastChild,0),f.removeAllRanges(),f.addRange(l);else{if((p=l.startContainer)&&3==p.nodeType){var q=p.nodeValue;var w=m.createTextNode(q.substring(0,l.startOffset));var t=m.createTextNode(q.substring(l.startOffset));k=m.createElement("br");""==t.nodeValue&&e("webkit")&&(t=m.createTextNode("\u00a0"));A.place(w,p,"after");A.place(k,w,"after");A.place(t,
k,"after");A.destroy(p);l=c.create(this.editor.window);l.setStart(t,0);f.removeAllRanges();f.addRange(l);return!1}return!0}}else f=c.getSelection(this.editor.window),f.rangeCount?(l=f.getRangeAt(0))&&l.startContainer&&(l.collapsed||(l.deleteContents(),f=c.getSelection(this.editor.window),l=f.getRangeAt(0)),(p=l.startContainer)&&3==p.nodeType?(k=l.startOffset,p.length<k&&(t=this._adjustNodeAndOffset(p,k),p=t.node,k=t.offset),q=p.nodeValue,w=m.createTextNode(q.substring(0,k)),t=m.createTextNode(q.substring(k)),
k=m.createElement("br"),t.length||(t=m.createTextNode("\u00a0")),w.length?A.place(w,p,"after"):w=p,A.place(k,w,"after"),A.place(t,k,"after"),A.destroy(p)):(0<=l.startOffset&&(n=p.childNodes[l.startOffset]),k=m.createElement("br"),t=m.createTextNode("\u00a0"),n?(A.place(k,n,"before"),A.place(t,k,"after")):(p.appendChild(k),p.appendChild(t))),l=c.create(this.editor.window),l.setStart(t,0),l.setEnd(t,t.length),f.removeAllRanges(),f.addRange(l),this.editor.selection.collapse(!0)):a.prototype.execCommand.call(this.editor,
"inserthtml","\x3cbr\x3e");return!1}var v=!0;f=c.getSelection(this.editor.window);l=f.getRangeAt(0);l.collapsed||(l.deleteContents(),f=c.getSelection(this.editor.window),l=f.getRangeAt(0));n=c.getBlockAncestor(l.endContainer,null,this.editor.editNode);var y=n.blockNode;if(this._checkListLater=y&&("LI"==y.nodeName||"LI"==y.parentNode.nodeName))return e("mozilla")&&(this._pressedEnterInBlock=y),/^(\s|&nbsp;|&#160;|\xA0|<span\b[^>]*\bclass=['"]Apple-style-span['"][^>]*>(\s|&nbsp;|&#160;|\xA0)<\/span>)?(<br>)?$/.test(y.innerHTML)&&
(y.innerHTML="",e("webkit")&&(l=c.create(this.editor.window),l.setStart(y,0),f.removeAllRanges(),f.addRange(l)),this._checkListLater=!1),!0;if(!n.blockNode||n.blockNode===this.editor.editNode){try{a.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter)}catch(z){}n={blockNode:this.editor.selection.getAncestorElement(this.blockNodeForEnter),blockContainer:this.editor.editNode};if(n.blockNode){if(n.blockNode!=this.editor.editNode&&!(n.blockNode.textContent||n.blockNode.innerHTML).replace(/^\s+|\s+$/g,
"").length)return this.removeTrailingBr(n.blockNode),!1}else n.blockNode=this.editor.editNode;f=c.getSelection(this.editor.window);l=f.getRangeAt(0)}y=m.createElement(this.blockNodeForEnter);y.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(n.blockNode);t=l.endOffset;v=l.endContainer;v.length<t&&(t=this._adjustNodeAndOffset(v,t),v=t.node,t=t.offset);if(c.atEndOfContainer(n.blockNode,v,t))n.blockNode===n.blockContainer?n.blockNode.appendChild(y):A.place(y,n.blockNode,"after"),v=!1,l=c.create(this.editor.window),
l.setStart(y,0),f.removeAllRanges(),f.addRange(l),this.editor.height&&d.scrollIntoView(y);else if(c.atBeginningOfContainer(n.blockNode,l.startContainer,l.startOffset))A.place(y,n.blockNode,n.blockNode===n.blockContainer?"first":"before"),y.nextSibling&&this.editor.height&&(l=c.create(this.editor.window),l.setStart(y.nextSibling,0),f.removeAllRanges(),f.addRange(l),d.scrollIntoView(y.nextSibling)),v=!1;else{n.blockNode===n.blockContainer?n.blockNode.appendChild(y):A.place(y,n.blockNode,"after");v=
!1;n.blockNode.style&&y.style&&n.blockNode.style.cssText&&(y.style.cssText=n.blockNode.style.cssText);if((p=l.startContainer)&&3==p.nodeType){t=l.endOffset;p.length<t&&(t=this._adjustNodeAndOffset(p,t),p=t.node,t=t.offset);q=p.nodeValue;w=m.createTextNode(q.substring(0,t));t=m.createTextNode(q.substring(t,q.length));A.place(w,p,"before");A.place(t,p,"after");A.destroy(p);for(l=w.parentNode;l!==n.blockNode;){q=m.createElement(l.tagName);l.style&&q.style&&l.style.cssText&&(q.style.cssText=l.style.cssText);
"FONT"===l.tagName&&(l.color&&(q.color=l.color),l.face&&(q.face=l.face),l.size&&(q.size=l.size));for(;t;)p=t.nextSibling,q.appendChild(t),t=p;A.place(q,l,"after");w=l;t=q;l=l.parentNode}if(1==t.nodeType||3==t.nodeType&&t.nodeValue)y.innerHTML="";for(w=t;t;)p=t.nextSibling,y.appendChild(t),t=p}l=c.create(this.editor.window);m=w;if("BR"!==this.blockNodeForEnter){for(;m;)k=m,m=p=m.firstChild;k&&k.parentNode?(y=k.parentNode,l.setStart(y,0),f.removeAllRanges(),f.addRange(l),this.editor.height&&d.scrollIntoView(y),
e("mozilla")&&(this._pressedEnterInBlock=n.blockNode)):v=!0}else l.setStart(y,0),f.removeAllRanges(),f.addRange(l),this.editor.height&&d.scrollIntoView(y),e("mozilla")&&(this._pressedEnterInBlock=n.blockNode)}return v},_adjustNodeAndOffset:function(f,k){for(;f.length<k&&f.nextSibling&&3==f.nextSibling.nodeType;)k-=f.length,f=f.nextSibling;return{node:f,offset:k}},removeTrailingBr:function(f){if(f=/P|DIV|LI/i.test(f.tagName)?f:this.editor.selection.getParentOfType(f,["P","DIV","LI"]))f.lastChild&&
(1<f.childNodes.length&&3==f.lastChild.nodeType&&/^[\s\xAD]*$/.test(f.lastChild.nodeValue)||"BR"==f.lastChild.tagName)&&A.destroy(f.lastChild),f.childNodes.length||(f.innerHTML=this.bogusHtmlContent)}})})},"dijit/_editor/RichText":function(){define("dojo/_base/array dojo/_base/config dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/query dojo/domReady dojo/sniff dojo/string dojo/topic dojo/_base/unload dojo/_base/url dojo/window ../_Widget ../_CssStateMixin ../selection ./range ./html ../focus ../main".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n,q,w,t,v,y,z,C,G,B,D,E,J){var I=x("dijit._editor.RichText",[z,C],{constructor:function(F){this.contentPreFilters=[];this.contentPostFilters=[];this.contentDomPreFilters=[];this.contentDomPostFilters=[];this.editingAreaStyleSheets=[];this.events=[].concat(this.events);this._keyHandlers={};F&&k.isString(F.value)&&(this.value=F.value);this.onLoadDeferred=new r},baseClass:"dijitEditor",inheritWidth:!1,focusOnLoad:!1,name:"",styleSheets:"",height:"300px",minHeight:"1em",
isClosed:!0,isLoaded:!1,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",_NAME_CONTENT_SEP:"@@**%%:%%**@@",onLoadDeferred:null,isTabIndent:!1,disableSpellCheck:!1,postCreate:function(){this.domNode.tagName.toLowerCase();this.contentPreFilters=[k.trim,k.hitch(this,"_preFixUrlAttributes")].concat(this.contentPreFilters);n("mozilla")&&(this.contentPreFilters=[this._normalizeFontStyle].concat(this.contentPreFilters),this.contentPostFilters=[this._removeMozBogus].concat(this.contentPostFilters));n("webkit")&&
(this.contentPreFilters=[this._removeWebkitBogus].concat(this.contentPreFilters),this.contentPostFilters=[this._removeWebkitBogus].concat(this.contentPostFilters));if(n("ie")||n("trident"))this.contentPostFilters=[this._normalizeFontStyle].concat(this.contentPostFilters),this.contentDomPostFilters=[k.hitch(this,"_stripBreakerNodes")].concat(this.contentDomPostFilters);this.contentDomPostFilters=[k.hitch(this,"_stripTrailingEmptyNodes")].concat(this.contentDomPostFilters);this.inherited(arguments);
w.publish(J._scopeName+"._editor.RichText::init",this)},startup:function(){this.inherited(arguments);this.open();this.setupDefaultShortcuts()},setupDefaultShortcuts:function(){var F=k.hitch(this,function(L,N){return function(){return!this.execCommand(L,N)}}),H={b:F("bold"),i:F("italic"),u:F("underline"),a:F("selectall"),s:function(){this.save(!0)},m:function(){this.isTabIndent=!this.isTabIndent},1:F("formatblock","h1"),2:F("formatblock","h2"),3:F("formatblock","h3"),4:F("formatblock","h4"),"\\":F("insertunorderedlist")};
n("ie")||(H.Z=F("redo"));for(var K in H)this.addKeyHandler(K,!0,!1,H[K])},events:["onKeyDown","onKeyUp"],captureEvents:[],_editorCommandsLocalized:!1,_localizeEditorCommands:function(){if(I._editorCommandsLocalized)this._local2NativeFormatNames=I._local2NativeFormatNames,this._native2LocalFormatNames=I._native2LocalFormatNames;else{I._editorCommandsLocalized=!0;I._local2NativeFormatNames={};I._native2LocalFormatNames={};this._local2NativeFormatNames=I._local2NativeFormatNames;this._native2LocalFormatNames=
I._native2LocalFormatNames;for(var F="div p pre h1 h2 h3 h4 h5 h6 ol ul address".split(" "),H="",K,L=0;K=F[L++];)H="l"!==K.charAt(1)?H+("\x3c"+K+"\x3e\x3cspan\x3econtent\x3c/span\x3e\x3c/"+K+"\x3e\x3cbr/\x3e"):H+("\x3c"+K+"\x3e\x3cli\x3econtent\x3c/li\x3e\x3c/"+K+"\x3e\x3cbr/\x3e");var N=d.create("div",{style:{position:"absolute",top:"0px",zIndex:10,opacity:.01},innerHTML:H});this.ownerDocumentBody.appendChild(N);F=k.hitch(this,function(){for(var Q=N.firstChild;Q;)try{this.selection.selectElement(Q.firstChild);
var P=Q.tagName.toLowerCase();this._local2NativeFormatNames[P]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[P]]=P;Q=Q.nextSibling.nextSibling}catch(S){}d.destroy(N)});this.defer(F)}},open:function(F){if(!this.onLoadDeferred||0<=this.onLoadDeferred.fired)this.onLoadDeferred=new r;this.isClosed||this.close();w.publish(J._scopeName+"._editor.RichText::open",this);1===arguments.length&&F.nodeName&&(this.domNode=F);var H=this.domNode;if(k.isString(this.value)){var K=
this.value;H.innerHTML=""}else if(H.nodeName&&"textarea"==H.nodeName.toLowerCase()){var L=this.textarea=H;this.name=L.name;K=L.value;H=this.domNode=this.ownerDocument.createElement("div");H.setAttribute("widgetId",this.id);L.removeAttribute("widgetId");H.cssText=L.cssText;H.className+=" "+L.className;d.place(H,L,"before");var N=k.hitch(this,function(){a.set(L,{display:"block",position:"absolute",top:"-1000px"});if(n("ie")){var M=L.style;this.__overflow=M.overflow;M.overflow="hidden"}});n("ie")?this.defer(N,
10):N();if(L.form){var Q=L.value;this.reset=function(){this.getValue()!==Q&&this.replaceValue(Q)};m(L.form,"submit",k.hitch(this,function(){e.set(L,"disabled",this.disabled);L.value=this.getValue()}))}}else K=D.getChildrenHtml(H),H.innerHTML="";this.value=K;H.nodeName&&"LI"===H.nodeName&&(H.innerHTML=" \x3cbr\x3e");this.header=H.ownerDocument.createElement("div");H.appendChild(this.header);this.editingArea=H.ownerDocument.createElement("div");H.appendChild(this.editingArea);this.footer=H.ownerDocument.createElement("div");
H.appendChild(this.footer);this.name||(this.name=this.id+"_AUTOGEN");if(""!==this.name&&(!A.useXDomain||A.allowXdRichTextSave)){if((K=h.byId(J._scopeName+"._editor.RichText.value"))&&""!==K.value){N=K.value.split(this._SEPARATOR);for(var P=0,S;S=N[P++];)if(S=S.split(this._NAME_CONTENT_SEP),S[0]===this.name){this.value=S[1];N=N.splice(P,1);K.value=N.join(this._SEPARATOR);break}}I._globalSaveHandler||(I._globalSaveHandler={},t.addOnUnload(function(){for(var M in I._globalSaveHandler){var R=I._globalSaveHandler[M];
k.isFunction(R)&&R()}}));I._globalSaveHandler[this.id]=k.hitch(this,"_saveContent")}this.isClosed=!1;K=this.editorObject=this.iframe=this.ownerDocument.createElement("iframe");K.id=this.id+"_iframe";K.style.border="none";K.style.width="100%";this._layoutMode?K.style.height="100%":7<=n("ie")?(this.height&&(K.style.height=this.height),this.minHeight&&(K.style.minHeight=this.minHeight)):K.style.height=this.height?this.height:this.minHeight;K.frameBorder=0;K._loadFunc=k.hitch(this,function(M){this.window=
M;this.document=M.document;this.selection=new G.SelectionManager(M);n("ie")&&this._localizeEditorCommands();this.onLoad(this.get("value"))});N=this._getIframeDocTxt().replace(/\\/g,"\\\\").replace(/'/g,"\\'");N=11>n("ie")?'javascript:document.open();try{parent.window;}catch(e){document.domain\x3d"'+document.domain+"\";}document.write('"+N+"');document.close()":"javascript: '"+N+"'";this.editingArea.appendChild(K);K.src=N;"LI"===H.nodeName&&(H.lastChild.style.marginTop="-1.2em");g.add(this.domNode,
this.baseClass)},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_getIframeDocTxt:function(){var F=a.getComputedStyle(this.domNode);if(this["aria-label"])var H=this["aria-label"];else{var K=p('label[for\x3d"'+this.id+'"]',this.ownerDocument)[0]||h.byId(this["aria-labelledby"],this.ownerDocument);K&&(H=K.textContent||K.innerHTML||"")}K="\x3cdiv id\x3d'dijitEditorBody' role\x3d'textbox' aria-multiline\x3d'true' "+(H?" aria-label\x3d'"+q.escape(H)+"'":"")+"\x3e\x3c/div\x3e";var L=[F.fontWeight,
F.fontSize,F.fontFamily].join(" "),N=F.lineHeight;N=0<=N.indexOf("px")?parseFloat(N)/parseFloat(F.fontSize):0<=N.indexOf("em")?parseFloat(N):"normal";var Q="",P=this;this.style.replace(/(^|;)\s*(line-|font-?)[^;]+/ig,function(S){S=S.replace(/^;/ig,"")+";";var M=S.split(":")[0];if(M){M=k.trim(M);M=M.toLowerCase();var R,T="";for(R=0;R<M.length;R++){var X=M.charAt(R);switch(X){case "-":R++,X=M.charAt(R).toUpperCase();default:T+=X}}a.set(P.domNode,T,"")}Q+=S+";"});this.iframe.setAttribute("title",H);
return["\x3c!DOCTYPE html\x3e","\x3chtml lang\x3d'"+(this.lang||c.locale.replace(/-.*/,""))+"'"+(this.isLeftToRight()?"":" dir\x3d'rtl'")+"\x3e\n","\x3chead\x3e\n\x3cmeta http-equiv\x3d'Content-Type' content\x3d'text/html'\x3e\n",H?"\x3ctitle\x3e"+q.escape(H)+"\x3c/title\x3e":"","\x3cstyle\x3e\n\tbody,html {\n\t\tbackground:transparent;\n\t\tpadding: 1px 0 0 0;\n\t\tmargin: -1px 0 0 0;\n\t}\n\tbody,html,#dijitEditorBody { outline: none; }html { height: 100%; width: 100%; overflow: hidden; }\n",this.height?
"\tbody,#dijitEditorBody { height: 100%; width: 100%; overflow: auto; }\n":"\tbody,#dijitEditorBody { min-height: "+this.minHeight+"; width: 100%; overflow-x: auto; overflow-y: hidden; }\n","\tbody{\n\t\ttop:0px;\n\t\tleft:0px;\n\t\tright:0px;\n\t\tfont:",L,";\n",this.height||n("opera")?"":"\t\tposition: fixed;\n","\t\tline-height:",N,";\n\t}\n\tp{ margin: 1em 0; }\n\tli \x3e ul:-moz-first-node, li \x3e ol:-moz-first-node{ padding-top: 1.2em; }\n",n("ie")||n("trident")||n("edge")?"":"\tli{ min-height:1.2em; }\n",
"\x3c/style\x3e\n",this._applyEditingAreaStyleSheets(),"\n\x3c/head\x3e\n\x3cbody role\x3d'application'",H?" aria-label\x3d'"+q.escape(H)+"'":"","onload\x3d'try{frameElement \x26\x26 frameElement._loadFunc(window,document)}catch(e){document.domain\x3d\""+document.domain+"\";frameElement._loadFunc(window,document)}' ","style\x3d'"+Q+"'\x3e",K,"\x3c/body\x3e\n\x3c/html\x3e"].join("")},_applyEditingAreaStyleSheets:function(){var F=[];this.styleSheets&&(F=this.styleSheets.split(";"),this.styleSheets=
"");F=F.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];for(var H="",K=0,L,N=y.get(this.ownerDocument);L=F[K++];)L=(new v(N.location,L)).toString(),this.editingAreaStyleSheets.push(L),H+='\x3clink rel\x3d"stylesheet" type\x3d"text/css" href\x3d"'+L+'"/\x3e';return H},addStyleSheet:function(F){var H=F.toString(),K=y.get(this.ownerDocument);if("."===H.charAt(0)||"/"!==H.charAt(0)&&!F.host)H=(new v(K.location,H)).toString();-1<u.indexOf(this.editingAreaStyleSheets,H)||(this.editingAreaStyleSheets.push(H),
this.onLoadDeferred.then(k.hitch(this,function(){if(this.document.createStyleSheet)this.document.createStyleSheet(H);else{var L=this.document.getElementsByTagName("head")[0],N=this.document.createElement("link");N.rel="stylesheet";N.type="text/css";N.href=H;L.appendChild(N)}})))},removeStyleSheet:function(F){var H=F.toString(),K=y.get(this.ownerDocument);if("."===H.charAt(0)||"/"!==H.charAt(0)&&!F.host)H=(new v(K.location,H)).toString();F=u.indexOf(this.editingAreaStyleSheets,H);-1!==F&&(delete this.editingAreaStyleSheets[F],
p('link[href\x3d"'+H+'"]',this.window.document).orphan())},disabled:!1,_mozSettingProps:{styleWithCSS:!1},_setDisabledAttr:function(F){F=!!F;this._set("disabled",F);if(this.isLoaded){var H=n("ie")&&(this.isLoaded||!this.focusOnLoad);H&&(this.editNode.unselectable="on");this.editNode.contentEditable=!F;this.editNode.tabIndex=F?"-1":this.tabIndex;H&&this.defer(function(){this.editNode&&(this.editNode.unselectable="off")});if(n("mozilla")&&!F&&this._mozSettingProps){F=this._mozSettingProps;for(var K in F)if(F.hasOwnProperty(K))try{this.document.execCommand(K,
!1,F[K])}catch(L){}}this._disabledOK=!0}},onLoad:function(F){this.window.__registeredWindow||(this.window.__registeredWindow=!0,this._iframeRegHandle=E.registerIframe(this.iframe));this.editNode=this.document.body.firstChild;var H=this;this.beforeIframeNode=d.place("\x3cdiv tabIndex\x3d-1\x3e\x3c/div\x3e",this.iframe,"before");this.afterIframeNode=d.place("\x3cdiv tabIndex\x3d-1\x3e\x3c/div\x3e",this.iframe,"after");this.iframe.onfocus=this.document.onfocus=function(){H.editNode.focus()};this.focusNode=
this.editNode;var K=this.events.concat(this.captureEvents),L=this.iframe?this.document:this.editNode;this.own.apply(this,u.map(K,function(N){var Q=N.toLowerCase().replace(/^on/,"");return m(L,Q,k.hitch(this,N))},this));this.own(m(L,"mouseup",k.hitch(this,"onClick")));n("ie")&&(this.own(m(this.document,"mousedown",k.hitch(this,"_onIEMouseDown"))),this.editNode.style.zoom=1);n("webkit")&&(this._webkitListener=this.own(m(this.document,"mouseup",k.hitch(this,"onDisplayChanged")))[0],this.own(m(this.document,
"mousedown",k.hitch(this,function(N){N=N.target;!N||N!==this.document.body&&N!==this.document||this.defer("placeCursorAtEnd")}))));if(n("ie"))try{this.document.execCommand("RespectVisibilityInDesign",!0,null)}catch(N){}this.isLoaded=!0;this.set("disabled",this.disabled);K=k.hitch(this,function(){this.setValue(F);this.onLoadDeferred&&!this.onLoadDeferred.isFulfilled()&&this.onLoadDeferred.resolve(!0);this.onDisplayChanged();this.focusOnLoad&&l(k.hitch(this,"defer","focus",this.updateInterval));this.value=
this.getValue(!0)});this.setValueDeferred?this.setValueDeferred.then(K):K()},onKeyDown:function(F){if(F.keyCode===f.SHIFT||F.keyCode===f.ALT||F.keyCode===f.META||F.keyCode===f.CTRL)return!0;F.keyCode===f.TAB&&this.isTabIndent&&(F.stopPropagation(),F.preventDefault(),this.queryCommandEnabled(F.shiftKey?"outdent":"indent")&&this.execCommand(F.shiftKey?"outdent":"indent"));if(F.keyCode==f.TAB&&!this.isTabIndent&&!F.ctrlKey&&!F.altKey)return F.shiftKey?this.beforeIframeNode.focus():this.afterIframeNode.focus(),
!0;9>n("ie")&&F.keyCode===f.BACKSPACE&&"Control"===this.document.selection.type&&(F.stopPropagation(),F.preventDefault(),this.execCommand("delete"));n("ff")&&(F.keyCode===f.PAGE_UP||F.keyCode===f.PAGE_DOWN)&&this.editNode.clientHeight>=this.editNode.scrollHeight&&F.preventDefault();var H=this._keyHandlers[F.keyCode],K=arguments;H&&!F.altKey&&u.some(H,function(L){if(!(L.shift^F.shiftKey||L.ctrl^(F.ctrlKey||F.metaKey)))return L.handler.apply(this,K)||F.preventDefault(),!0},this);this.defer("onKeyPressed",
1);return!0},onKeyUp:function(){},setDisabled:function(F){c.deprecated("dijit.Editor::setDisabled is deprecated",'use dijit.Editor::attr("disabled",boolean) instead',2);this.set("disabled",F)},_setValueAttr:function(F){this.setValue(F)},_setDisableSpellCheckAttr:function(F){this.document?e.set(this.document.body,"spellcheck",!F):this.onLoadDeferred.then(k.hitch(this,function(){e.set(this.document.body,"spellcheck",!F)}));this._set("disableSpellCheck",F)},addKeyHandler:function(F,H,K,L){"string"==
typeof F&&(F=F.toUpperCase().charCodeAt(0));k.isArray(this._keyHandlers[F])||(this._keyHandlers[F]=[]);this._keyHandlers[F].push({shift:K||!1,ctrl:H||!1,handler:L})},onKeyPressed:function(){this.onDisplayChanged()},onClick:function(F){this.onDisplayChanged(F)},_onIEMouseDown:function(){this.focused||this.disabled||this.focus()},_onBlur:function(F){(n("ie")||n("trident"))&&this.defer(function(){E.curNode||this.ownerDocumentBody.focus()});this.inherited(arguments);var H=this.getValue(!0);if(H!==this.value)this.onChange(H);
this._set("value",H)},_onFocus:function(F){this.disabled||(this._disabledOK||this.set("disabled",!1),this.inherited(arguments))},blur:function(){!n("ie")&&this.window.document.documentElement&&this.window.document.documentElement.focus?this.window.document.documentElement.focus():this.ownerDocumentBody.focus&&this.ownerDocumentBody.focus()},focus:function(){this.isLoaded?9>n("ie")?this.iframe.fireEvent("onfocus",document.createEventObject()):this.editNode.focus():this.focusOnLoad=!0},updateInterval:200,
_updateTimer:null,onDisplayChanged:function(){this._updateTimer&&this._updateTimer.remove();this._updateTimer=this.defer("onNormalizedDisplayChanged",this.updateInterval)},onNormalizedDisplayChanged:function(){delete this._updateTimer},onChange:function(){},_normalizeCommand:function(F,H){var K=F.toLowerCase();"formatblock"===K?n("safari")&&void 0===H&&(K="heading"):"hilitecolor"!==K||n("mozilla")||(K="backcolor");return K},_implCommand:function(F){return"_"+this._normalizeCommand(F)+"EnabledImpl"},
_qcaCache:{},queryCommandAvailable:function(F){var H=this._qcaCache[F];return void 0!==H?H:this._qcaCache[F]=this._queryCommandAvailable(F)},_queryCommandAvailable:function(F){switch(F.toLowerCase()){case "bold":case "italic":case "underline":case "subscript":case "superscript":case "fontname":case "fontsize":case "forecolor":case "hilitecolor":case "justifycenter":case "justifyfull":case "justifyleft":case "justifyright":case "delete":case "selectall":case "toggledir":case "createlink":case "unlink":case "removeformat":case "inserthorizontalrule":case "insertimage":case "insertorderedlist":case "insertunorderedlist":case "indent":case "outdent":case "formatblock":case "inserthtml":case "undo":case "redo":case "strikethrough":case "tabindent":case "cut":case "copy":case "paste":return!0;
case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":return n("ie")||n("trident")||n("edge");case "inserttable":case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":return!n("webkit");default:return!1}},execCommand:function(F,H){this.focused&&this.focus();F=this._normalizeCommand(F,H);if(void 0!==H){if("heading"===F)throw Error("unimplemented");"formatblock"===
F&&(n("ie")||n("trident"))&&(H="\x3c"+H+"\x3e")}var K="_"+F+"Impl";if(this[K])var L=this[K](H);else if((H=1<arguments.length?H:null)||"createlink"!==F)L=this.document.execCommand(F,!1,H);this.onDisplayChanged();return L},queryCommandEnabled:function(F){if(this.disabled||!this._disabledOK)return!1;F=this._normalizeCommand(F);var H=this._implCommand(F);return this[H]?this[H](F):this._browserQueryCommandEnabled(F)},queryCommandState:function(F){if(this.disabled||!this._disabledOK)return!1;F=this._normalizeCommand(F);
try{return this.document.queryCommandState(F)}catch(H){return!1}},queryCommandValue:function(F){if(this.disabled||!this._disabledOK)return!1;F=this._normalizeCommand(F);if(n("ie")&&"formatblock"===F)F=this._native2LocalFormatNames[this.document.queryCommandValue(F)];else if(n("mozilla")&&"hilitecolor"===F){try{var H=this.document.queryCommandValue("styleWithCSS")}catch(K){H=!1}this.document.execCommand("styleWithCSS",!1,!0);F=this.document.queryCommandValue(F);this.document.execCommand("styleWithCSS",
!1,H)}else F=this.document.queryCommandValue(F);return F},_sCall:function(F,H){return this.selection[F].apply(this.selection,H)},placeCursorAtStart:function(){this.focus();var F=!1;if(n("mozilla"))for(var H=this.editNode.firstChild;H;){if(3===H.nodeType){if(0<H.nodeValue.replace(/^\s+|\s+$/g,"").length){F=!0;this.selection.selectElement(H);break}}else if(1===H.nodeType){F=!0;var K=H.tagName?H.tagName.toLowerCase():"";/br|input|img|base|meta|area|basefont|hr|link/.test(K)?this.selection.selectElement(H):
this.selection.selectElementChildren(H);break}H=H.nextSibling}else F=!0,this.selection.selectElementChildren(this.editNode);F&&this.selection.collapse(!0)},placeCursorAtEnd:function(){this.focus();var F=!1;if(n("mozilla"))for(var H=this.editNode.lastChild;H;){if(3===H.nodeType){if(0<H.nodeValue.replace(/^\s+|\s+$/g,"").length){F=!0;this.selection.selectElement(H);break}}else if(1===H.nodeType){F=!0;this.selection.selectElement(H.lastChild||H);break}H=H.previousSibling}else F=!0,this.selection.selectElementChildren(this.editNode);
F&&this.selection.collapse(!1)},getValue:function(F){return!this.textarea||!this.isClosed&&this.isLoaded?this.isLoaded?this._postFilterContent(null,F):this.value:this.textarea.value},_getValueAttr:function(){return this.getValue(!0)},setValue:function(F){if(this.isLoaded){if(!this.textarea||!this.isClosed&&this.isLoaded){F=this._preFilterContent(F);var H=this.isClosed?this.domNode:this.editNode;H.innerHTML=F;this._preDomFilterContent(H)}else this.textarea.value=F;this.onDisplayChanged();this._set("value",
this.getValue(!0))}else this.onLoadDeferred.then(k.hitch(this,function(){this.setValue(F)}))},replaceValue:function(F){this.isClosed?this.setValue(F):this.window&&this.window.getSelection&&!n("mozilla")?this.setValue(F):this.window&&this.window.getSelection?(F=this._preFilterContent(F),this.execCommand("selectall"),this.execCommand("inserthtml",F),this._preDomFilterContent(this.editNode)):this.document&&this.document.selection&&this.setValue(F);this._set("value",this.getValue(!0))},_preFilterContent:function(F){var H=
F;u.forEach(this.contentPreFilters,function(K){K&&(H=K(H))});return H},_preDomFilterContent:function(F){F=F||this.editNode;u.forEach(this.contentDomPreFilters,function(H){H&&k.isFunction(H)&&H(F)},this)},_postFilterContent:function(F,H){if(k.isString(F))var K=F;else F=F||this.editNode,this.contentDomPostFilters.length&&(H&&(F=k.clone(F)),u.forEach(this.contentDomPostFilters,function(L){F=L(F)})),K=D.getChildrenHtml(F);k.trim(K.replace(/^\xA0\xA0*/,"").replace(/\xA0\xA0*$/,"")).length||(K="");u.forEach(this.contentPostFilters,
function(L){K=L(K)});return K},_saveContent:function(){var F=h.byId(J._scopeName+"._editor.RichText.value");F&&(F.value&&(F.value+=this._SEPARATOR),F.value+=this.name+this._NAME_CONTENT_SEP+this.getValue(!0))},escapeXml:function(F,H){F=F.replace(/&/gm,"\x26amp;").replace(/</gm,"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;");H||(F=F.replace(/'/gm,"\x26#39;"));return F},getNodeHtml:function(F){c.deprecated("dijit.Editor::getNodeHtml is deprecated","use dijit/_editor/html::getNodeHtml instead",
2);return D.getNodeHtml(F)},getNodeChildrenHtml:function(F){c.deprecated("dijit.Editor::getNodeChildrenHtml is deprecated","use dijit/_editor/html::getChildrenHtml instead",2);return D.getChildrenHtml(F)},close:function(F){if(!this.isClosed){arguments.length||(F=!0);F&&this._set("value",this.getValue(!0));this.interval&&clearInterval(this.interval);this._webkitListener&&(this._webkitListener.remove(),delete this._webkitListener);n("ie")&&(this.iframe.onfocus=null);this.iframe._loadFunc=null;this._iframeRegHandle&&
(this._iframeRegHandle.remove(),delete this._iframeRegHandle);if(this.textarea){var H=this.textarea.style;H.position="";H.left=H.top="";n("ie")&&(H.overflow=this.__overflow,this.__overflow=null);this.textarea.value=this.value;d.destroy(this.domNode);this.domNode=this.textarea}else this.domNode.innerHTML=this.value;delete this.iframe;g.remove(this.domNode,this.baseClass);this.isClosed=!0;this.isLoaded=!1;delete this.editNode;delete this.focusNode;this.window&&this.window._frameElement&&(this.window._frameElement=
null);this.editorObject=this.editingArea=this.document=this.window=null}},destroy:function(){this.isClosed||this.close(!1);this._updateTimer&&this._updateTimer.remove();this.inherited(arguments);I._globalSaveHandler&&delete I._globalSaveHandler[this.id]},_removeMozBogus:function(F){return F.replace(/\stype="_moz"/gi,"").replace(/\s_moz_dirty=""/gi,"").replace(/_moz_resizing="(true|false)"/gi,"")},_removeWebkitBogus:function(F){F=F.replace(/\sclass="webkit-block-placeholder"/gi,"");F=F.replace(/\sclass="apple-style-span"/gi,
"");return F=F.replace(/<meta charset="utf-8" \/>/gi,"")},_normalizeFontStyle:function(F){return F.replace(/<(\/)?strong([ >])/gi,"\x3c$1b$2").replace(/<(\/)?em([ >])/gi,"\x3c$1i$2")},_preFixUrlAttributes:function(F){return F.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl\x3d$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl\x3d$2$3$5$2")},_browserQueryCommandEnabled:function(F){if(!F)return!1;
var H=9>n("ie")?this.document.selection.createRange():this.document;try{return H.queryCommandEnabled(F)}catch(K){return!1}},_createlinkEnabledImpl:function(){var F=!0;return F=n("opera")?this.window.getSelection().isCollapsed?!0:this.document.queryCommandEnabled("createlink"):this._browserQueryCommandEnabled("createlink")},_unlinkEnabledImpl:function(){var F=!0;return F=n("mozilla")||n("webkit")?this.selection.hasAncestorElement("a"):this._browserQueryCommandEnabled("unlink")},_inserttableEnabledImpl:function(){var F=
!0;return F=n("mozilla")||n("webkit")?!0:this._browserQueryCommandEnabled("inserttable")},_cutEnabledImpl:function(){var F=!0;n("webkit")?((F=this.window.getSelection())&&(F=F.toString()),F=!!F):F=this._browserQueryCommandEnabled("cut");return F},_copyEnabledImpl:function(){var F=!0;n("webkit")?((F=this.window.getSelection())&&(F=F.toString()),F=!!F):F=this._browserQueryCommandEnabled("copy");return F},_pasteEnabledImpl:function(){var F=!0;return n("webkit")?!0:F=this._browserQueryCommandEnabled("paste")},
_inserthorizontalruleImpl:function(F){return n("ie")?this._inserthtmlImpl("\x3chr\x3e"):this.document.execCommand("inserthorizontalrule",!1,F)},_unlinkImpl:function(F){return this.queryCommandEnabled("unlink")&&(n("mozilla")||n("webkit"))?(F=this.selection.getAncestorElement("a"),this.selection.selectElement(F),this.document.execCommand("unlink",!1,null)):this.document.execCommand("unlink",!1,F)},_hilitecolorImpl:function(F){if(!this._handleTextColorOrProperties("hilitecolor",F))if(n("mozilla")){this.document.execCommand("styleWithCSS",
!1,!0);var H=this.document.execCommand("hilitecolor",!1,F);this.document.execCommand("styleWithCSS",!1,!1)}else H=this.document.execCommand("hilitecolor",!1,F);return H},_backcolorImpl:function(F){n("ie")&&(F=F?F:null);var H=this._handleTextColorOrProperties("backcolor",F);H||(H=this.document.execCommand("backcolor",!1,F));return H},_forecolorImpl:function(F){n("ie")&&(F=F?F:null);var H=!1;(H=this._handleTextColorOrProperties("forecolor",F))||(H=this.document.execCommand("forecolor",!1,F));return H},
_inserthtmlImpl:function(F){F=this._preFilterContent(F);var H=!0;if(9>n("ie")){var K=this.document.selection.createRange();if("CONTROL"===this.document.selection.type.toUpperCase()){for(var L=K.item(0);K.length;)K.remove(K.item(0));L.outerHTML=F}else K.pasteHTML(F);K.select()}else if(8>n("trident")){var N=B.getSelection(this.window);if(N&&N.rangeCount&&N.getRangeAt){K=N.getRangeAt(0);K.deleteContents();var Q=d.create("div");Q.innerHTML=F;for(L=this.document.createDocumentFragment();F=Q.firstChild;)var P=
L.appendChild(F);K.insertNode(L);P&&(K=K.cloneRange(),K.setStartAfter(P),K.collapse(!1),N.removeAllRanges(),N.addRange(K))}}else n("mozilla")&&!F.length?this.selection.remove():H=this.document.execCommand("inserthtml",!1,F);return H},_boldImpl:function(F){var H=!1;if(n("ie")||n("trident"))this._adaptIESelection(),H=this._adaptIEFormatAreaAndExec("bold");H||(H=this.document.execCommand("bold",!1,F));return H},_italicImpl:function(F){var H=!1;if(n("ie")||n("trident"))this._adaptIESelection(),H=this._adaptIEFormatAreaAndExec("italic");
H||(H=this.document.execCommand("italic",!1,F));return H},_underlineImpl:function(F){var H=!1;if(n("ie")||n("trident"))this._adaptIESelection(),H=this._adaptIEFormatAreaAndExec("underline");H||(H=this.document.execCommand("underline",!1,F));return H},_strikethroughImpl:function(F){var H=!1;if(n("ie")||n("trident"))this._adaptIESelection(),H=this._adaptIEFormatAreaAndExec("strikethrough");H||(H=this.document.execCommand("strikethrough",!1,F));return H},_superscriptImpl:function(F){var H=!1;if(n("ie")||
n("trident"))this._adaptIESelection(),H=this._adaptIEFormatAreaAndExec("superscript");H||(H=this.document.execCommand("superscript",!1,F));return H},_subscriptImpl:function(F){var H=!1;if(n("ie")||n("trident"))this._adaptIESelection(),H=this._adaptIEFormatAreaAndExec("subscript");H||(H=this.document.execCommand("subscript",!1,F));return H},_fontnameImpl:function(F){if(n("ie")||n("trident"))var H=this._handleTextColorOrProperties("fontname",F);H||(H=this.document.execCommand("fontname",!1,F));return H},
_fontsizeImpl:function(F){if(n("ie")||n("trident"))var H=this._handleTextColorOrProperties("fontsize",F);H||(H=this.document.execCommand("fontsize",!1,F));return H},_insertorderedlistImpl:function(F){var H=!1;if(n("ie")||n("trident")||n("edge"))H=this._adaptIEList("insertorderedlist",F);H||(H=this.document.execCommand("insertorderedlist",!1,F));return H},_insertunorderedlistImpl:function(F){var H=!1;if(n("ie")||n("trident")||n("edge"))H=this._adaptIEList("insertunorderedlist",F);H||(H=this.document.execCommand("insertunorderedlist",
!1,F));return H},getHeaderHeight:function(){return this._getNodeChildrenHeight(this.header)},getFooterHeight:function(){return this._getNodeChildrenHeight(this.footer)},_getNodeChildrenHeight:function(F){var H=0;if(F&&F.childNodes){var K;for(K=0;K<F.childNodes.length;K++){var L=b.position(F.childNodes[K]);H+=L.h}}return H},_isNodeEmpty:function(F,H){return 1===F.nodeType?0<F.childNodes.length?this._isNodeEmpty(F.childNodes[0],H):!0:3===F.nodeType?""===F.nodeValue.substring(H):!1},_removeStartingRangeFromRange:function(F,
H){if(F.nextSibling)H.setStart(F.nextSibling,0);else{for(var K=F.parentNode;K&&null==K.nextSibling;)K=K.parentNode;K&&H.setStart(K.nextSibling,0)}return H},_adaptIESelection:function(){var F=B.getSelection(this.window);if(F&&F.rangeCount&&!F.isCollapsed){for(var H=F.getRangeAt(0),K=H.startContainer,L=H.startOffset;3===K.nodeType&&L>=K.length&&K.nextSibling;)L-=K.length,K=K.nextSibling;for(var N=null;this._isNodeEmpty(K,L)&&K!==N;)N=K,H=this._removeStartingRangeFromRange(K,H),K=H.startContainer,L=
0;F.removeAllRanges();F.addRange(H)}},_adaptIEFormatAreaAndExec:function(F){var H=B.getSelection(this.window),K=this.document,L;if(F&&H&&H.isCollapsed){if(this.queryCommandValue(F)){F=this._tagNamesForCommand(F);var N=H.getRangeAt(0);var Q=N.startContainer;if(3===Q.nodeType){var P=N.endOffset;Q.length<P&&(P=this._adjustNodeAndOffset(S,P),Q=P.node,P=P.offset)}for(;Q&&Q!==this.editNode;){var S=Q.tagName?Q.tagName.toLowerCase():"";if(-1<u.indexOf(F,S)){var M=Q;break}Q=Q.parentNode}if(M&&(S=N.startContainer,
F=K.createElement(M.tagName),d.place(F,M,"after"),S&&3===S.nodeType)){P=N.endOffset;S.length<P&&(P=this._adjustNodeAndOffset(S,P),S=P.node,P=P.offset);Q=S.nodeValue;N=K.createTextNode(Q.substring(0,P));var R=Q.substring(P,Q.length);R&&(L=K.createTextNode(R));d.place(N,S,"before");if(L){var T=K.createElement("span");T.className="ieFormatBreakerSpan";d.place(T,S,"after");d.place(L,T,"after");L=T}d.destroy(S);P=N.parentNode;for(S=[];P!==M;){Q=P.tagName;N={tagName:Q};S.push(N);Q=K.createElement(Q);P.style&&
Q.style&&P.style.cssText&&(Q.style.cssText=P.style.cssText,N.cssText=P.style.cssText);"FONT"===P.tagName&&(P.color&&(Q.color=P.color,N.color=P.color),P.face&&(Q.face=P.face,N.face=P.face),P.size&&(Q.size=P.size,N.size=P.size));P.className&&(Q.className=P.className,N.className=P.className);if(L)for(;L;)N=L.nextSibling,Q.appendChild(L),L=N;Q.tagName==P.tagName?(T=K.createElement("span"),T.className="ieFormatBreakerSpan",d.place(T,P,"after"),d.place(Q,T,"after")):d.place(Q,P,"after");N=P;L=Q;P=P.parentNode}if(L){if(1===
L.nodeType||3===L.nodeType&&L.nodeValue)F.innerHTML="";for(;L;)N=L.nextSibling,F.appendChild(L),L=N}if(S.length){N=S.pop();L=K.createElement(N.tagName);N.cssText&&L.style&&(L.style.cssText=N.cssText);N.className&&(L.className=N.className);"FONT"===N.tagName&&(N.color&&(L.color=N.color),N.face&&(L.face=N.face),N.size&&(L.size=N.size));for(d.place(L,F,"before");S.length;)N=S.pop(),M=K.createElement(N.tagName),N.cssText&&M.style&&(M.style.cssText=N.cssText),N.className&&(M.className=N.className),"FONT"===
N.tagName&&(N.color&&(M.color=N.color),N.face&&(M.face=N.face),N.size&&(M.size=N.size)),L.appendChild(M),L=M;M=K.createTextNode(".");T.appendChild(M);L.appendChild(M)}else T=K.createElement("span"),T.className="ieFormatBreakerSpan",M=K.createTextNode("."),T.appendChild(M),d.place(T,F,"before");L=B.create(this.window);L.setStart(M,0);L.setEnd(M,M.length);H.removeAllRanges();H.addRange(L);this.selection.collapse(!1);M.parentNode.innerHTML="";F.firstChild||d.destroy(F);return!0}return!1}N=H.getRangeAt(0);
if((S=N.startContainer)&&3===S.nodeType)return P=N.startOffset,S.length<P&&(P=this._adjustNodeAndOffset(S,P),S=P.node,P=P.offset),Q=S.nodeValue,N=K.createTextNode(Q.substring(0,P)),R=Q.substring(P),""!==R&&(L=K.createTextNode(Q.substring(P))),T=K.createElement("span"),M=K.createTextNode("."),T.appendChild(M),N.length?d.place(N,S,"after"):N=S,d.place(T,N,"after"),L&&d.place(L,T,"after"),d.destroy(S),L=B.create(this.window),L.setStart(M,0),L.setEnd(M,M.length),H.removeAllRanges(),H.addRange(L),K.execCommand(F),
d.place(T.firstChild,T,"before"),d.destroy(T),L.setStart(M,0),L.setEnd(M,M.length),H.removeAllRanges(),H.addRange(L),this.selection.collapse(!1),M.parentNode.innerHTML="",!0}else return!1},_adaptIEList:function(F){var H=B.getSelection(this.window);if(H.isCollapsed&&H.rangeCount&&!this.queryCommandValue(F)){var K=H.getRangeAt(0),L=K.startContainer;if(L&&3==L.nodeType&&!K.startOffset)return K="ul","insertorderedlist"===F&&(K="ol"),F=this.document.createElement(K),K=d.create("li",null,F),d.place(F,L,
"before"),K.appendChild(L),d.create("br",null,F,"after"),F=B.create(this.window),F.setStart(L,0),F.setEnd(L,L.length),H.removeAllRanges(),H.addRange(F),this.selection.collapse(!0),!0}return!1},_handleTextColorOrProperties:function(F,H){var K=B.getSelection(this.window),L=this.document,N,Q;H=H||null;if(F&&K&&K.isCollapsed&&K.rangeCount){var P=K.getRangeAt(0);if((N=P.startContainer)&&3===N.nodeType){var S=P.startOffset;N.length<S&&(P=this._adjustNodeAndOffset(N,S),N=P.node,S=P.offset);var M=N.nodeValue;
P=L.createTextNode(M.substring(0,S));""!==M.substring(S)&&(Q=L.createTextNode(M.substring(S)));M=L.createElement("span");S=L.createTextNode(".");M.appendChild(S);L=L.createElement("span");M.appendChild(L);P.length?d.place(P,N,"after"):P=N;d.place(M,P,"after");Q&&d.place(Q,M,"after");d.destroy(N);N=B.create(this.window);N.setStart(S,0);N.setEnd(S,S.length);K.removeAllRanges();K.addRange(N);if(n("webkit")){K="color";if("hilitecolor"===F||"backcolor"===F)K="backgroundColor";a.set(M,K,H);this.selection.remove();
d.destroy(L);M.innerHTML="\x26#160;";this.selection.selectElement(M);this.focus()}else this.execCommand(F,H),d.place(M.firstChild,M,"before"),d.destroy(M),N.setStart(S,0),N.setEnd(S,S.length),K.removeAllRanges(),K.addRange(N),this.selection.collapse(!1),S.parentNode.removeChild(S);return!0}}return!1},_adjustNodeAndOffset:function(F,H){for(;F.length<H&&F.nextSibling&&3===F.nextSibling.nodeType;)H-=F.length,F=F.nextSibling;return{node:F,offset:H}},_tagNamesForCommand:function(F){return"bold"===F?["b",
"strong"]:"italic"===F?["i","em"]:"strikethrough"===F?["s","strike"]:"superscript"===F?["sup"]:"subscript"===F?["sub"]:"underline"===F?["u"]:[]},_stripBreakerNodes:function(F){if(this.isLoaded)return p(".ieFormatBreakerSpan",F).forEach(function(H){for(;H.firstChild;)d.place(H.firstChild,H,"before");d.destroy(H)}),F},_stripTrailingEmptyNodes:function(F){function H(K){return/^(p|div|br)$/i.test(K.nodeName)&&0==K.children.length&&/^[\s\xA0]*$/.test(K.textContent||K.innerText||"")||3===K.nodeType&&/^[\s\xA0]*$/.test(K.nodeValue)}
for(;F.lastChild&&H(F.lastChild);)d.destroy(F.lastChild);return F},_setTextDirAttr:function(F){this._set("textDir",F);this.onLoadDeferred.then(k.hitch(this,function(){this.editNode.dir=F}))}});return I})},"dijit/selection":function(){define("dojo/_base/array dojo/dom dojo/_base/lang dojo/sniff dojo/_base/window dijit/focus".split(" "),function(u,A,x,r,h,e){var g=function(b){var a=b.document;this.getType=function(){if(a.getSelection){var c="text";try{var f=b.getSelection()}catch(k){}f&&1==f.rangeCount&&
(f=f.getRangeAt(0),f.startContainer==f.endContainer&&1==f.endOffset-f.startOffset&&3!=f.startContainer.nodeType&&(c="control"));return c}return a.selection.type.toLowerCase()};this.getSelectedText=function(){if(a.getSelection){var c=b.getSelection();return c?c.toString():""}return"control"==this.getType()?null:a.selection.createRange().text};this.getSelectedHtml=function(){if(a.getSelection){var c=b.getSelection();if(c&&c.rangeCount){var f,k="";for(f=0;f<c.rangeCount;f++){var m=c.getRangeAt(f).cloneContents(),
p=a.createElement("div");p.appendChild(m);k+=p.innerHTML}return k}return null}return"control"==this.getType()?null:a.selection.createRange().htmlText};this.getSelectedElement=function(){if("control"==this.getType()){if(a.getSelection){var c=b.getSelection();return c.anchorNode.childNodes[c.anchorOffset]}if((c=a.selection.createRange())&&c.item)return a.selection.createRange().item(0)}return null};this.getParentElement=function(){if("control"==this.getType()){var c=this.getSelectedElement();if(c)return c.parentNode}else if(a.getSelection){if(c=
a.getSelection()){for(c=c.anchorNode;c&&1!=c.nodeType;)c=c.parentNode;return c}}else return c=a.selection.createRange(),c.collapse(!0),c.parentElement();return null};this.hasAncestorElement=function(c){return null!=this.getAncestorElement.apply(this,arguments)};this.getAncestorElement=function(c){var f=this.getSelectedElement()||this.getParentElement();return this.getParentOfType(f,arguments)};this.isTag=function(c,f){if(c&&c.tagName)for(var k=c.tagName.toLowerCase(),m=0;m<f.length;m++){var p=String(f[m]).toLowerCase();
if(k==p)return p}return""};this.getParentOfType=function(c,f){for(;c;){if(this.isTag(c,f).length)return c;c=c.parentNode}return null};this.collapse=function(c){if(a.getSelection){var f=b.getSelection();f.removeAllRanges?c?f.collapseToStart():f.collapseToEnd():f.collapse(c)}else f=a.selection.createRange(),f.collapse(c),f.select()};this.remove=function(){var c=a.selection;a.getSelection?(c=b.getSelection(),c.deleteFromDocument()):"none"!=c.type.toLowerCase()&&c.clear();return c};this.selectElementChildren=
function(c,f){c=A.byId(c);if(a.getSelection){var k=b.getSelection();if(r("opera")){var m=k.rangeCount?k.getRangeAt(0):a.createRange();m.setStart(c,0);m.setEnd(c,3==c.nodeType?c.length:c.childNodes.length);k.addRange(m)}else k.selectAllChildren(c)}else if(m=c.ownerDocument.body.createTextRange(),m.moveToElementText(c),!f)try{m.select()}catch(p){}};this.selectElement=function(c,f){c=A.byId(c);if(a.getSelection){var k=a.getSelection();var m=a.createRange();k.removeAllRanges&&(r("opera")&&k.getRangeAt(0)&&
(m=k.getRangeAt(0)),m.selectNode(c),k.removeAllRanges(),k.addRange(m))}else try{k=c.tagName?c.tagName.toLowerCase():"",m="img"===k||"table"===k?h.body(a).createControlRange():h.body(a).createRange(),m.addElement(c),f||m.select()}catch(p){this.selectElementChildren(c,f)}};this.inSelection=function(c){if(c){var f;if(a.getSelection){var k=b.getSelection();k&&0<k.rangeCount&&(f=k.getRangeAt(0));if(f&&f.compareBoundaryPoints&&a.createRange)try{var m=a.createRange();m.setStart(c,0);if(1===f.compareBoundaryPoints(f.START_TO_END,
m))return!0}catch(p){}}else{f=a.selection.createRange();try{m=c.ownerDocument.body.createTextRange(),m.moveToElementText(c)}catch(p){}if(f&&m&&1===f.compareEndPoints("EndToStart",m))return!0}}return!1};this.getBookmark=function(){var c,f=a.selection,k=e.curNode;if(a.getSelection){if(f=b.getSelection())if(f.isCollapsed){if(c=k?k.tagName:"")if(c=c.toLowerCase(),"textarea"==c||"input"==c&&(!k.type||"text"==k.type.toLowerCase()))return f={start:k.selectionStart,end:k.selectionEnd,node:k,pRange:!0},{isCollapsed:f.end<=
f.start,mark:f};c={isCollapsed:!0};f.rangeCount&&(c.mark=f.getRangeAt(0).cloneRange())}else{var m=f.getRangeAt(0);c={isCollapsed:!1,mark:m.cloneRange()}}}else if(f){c=k?k.tagName:"";c=c.toLowerCase();if(k&&c&&("button"==c||"textarea"==c||"input"==c)){if(f.type&&"none"==f.type.toLowerCase())return{isCollapsed:!0,mark:null};m=f.createRange();return{isCollapsed:m.text&&m.text.length?!1:!0,mark:{range:m,pRange:!0}}}c={};try{m=f.createRange(),c.isCollapsed=!("Text"==f.type?m.htmlText.length:m.length)}catch(p){return c.isCollapsed=
!0,c}if("CONTROL"==f.type.toUpperCase())if(m.length)for(c.mark=[],f=0,k=m.length;f<k;)c.mark.push(m.item(f++));else c.isCollapsed=!0,c.mark=null;else c.mark=m.getBookmark()}return c};this.moveToBookmark=function(c){if(c=c.mark)if(a.getSelection){var f=b.getSelection();f&&f.removeAllRanges&&(c.pRange?(f=c.node,f.selectionStart=c.start,f.selectionEnd=c.end):(f.removeAllRanges(),f.addRange(c)))}else if(a.selection&&c){if(c.pRange)var k=c.range;else x.isArray(c)?(k=a.body.createControlRange(),u.forEach(c,
function(m){k.addElement(m)})):(k=a.body.createTextRange(),k.moveToBookmark(c));k.select()}};this.isCollapsed=function(){return this.getBookmark().isCollapsed}},d=new g(window);d.SelectionManager=g;return d})},"dijit/_editor/range":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/lang"],function(u,A,x){var r={getIndex:function(g,d){for(var b=[],a=[],c=g,f,k;g!=d;){var m=0;for(f=g.parentNode;k=f.childNodes[m++];)if(k===g){--m;break}b.unshift(m);a.unshift(m-f.childNodes.length);
g=f}if(0<b.length&&3==c.nodeType){for(k=c.previousSibling;k&&3==k.nodeType;)b[b.length-1]--,k=k.previousSibling;for(k=c.nextSibling;k&&3==k.nodeType;)a[a.length-1]++,k=k.nextSibling}return{o:b,r:a}},getNode:function(g,d){if(!x.isArray(g)||0==g.length)return d;var b=d;u.every(g,function(a){if(0<=a&&a<b.childNodes.length)b=b.childNodes[a];else return b=null,!1;return!0});return b},getCommonAncestor:function(g,d,b){b=b||g.ownerDocument.body;var a=function(k){for(var m=[];k;)if(m.unshift(k),k!==b)k=k.parentNode;
else break;return m};g=a(g);d=a(d);a=Math.min(g.length,d.length);for(var c=g[0],f=1;f<a;f++)if(g[f]===d[f])c=g[f];else break;return c},getAncestor:function(g,d,b){for(b=b||g.ownerDocument.body;g&&g!==b;){var a=g.nodeName.toUpperCase();if(d.test(a))return g;g=g.parentNode}return null},BlockTagNames:/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|DT|DE)$/,getBlockAncestor:function(g,d,b){b=b||g.ownerDocument.body;d=d||r.BlockTagNames;for(var a=null,c;g&&g!==b;){var f=g.nodeName.toUpperCase();!a&&
d.test(f)&&(a=g);!c&&/^(?:BODY|TD|TH|CAPTION)$/.test(f)&&(c=g);g=g.parentNode}return{blockNode:a,blockContainer:c||g.ownerDocument.body}},atBeginningOfContainer:function(g,d,b){var a=!1,c=0==b;c||3!=d.nodeType||/^[\s\xA0]+$/.test(d.nodeValue.substr(0,b))&&(c=!0);if(c)for(a=!0;d&&d!==g;){if(d.previousSibling){a=!1;break}d=d.parentNode}return a},atEndOfContainer:function(g,d,b){var a=!1,c=b==(d.length||d.childNodes.length);c||3!=d.nodeType||/^[\s\xA0]+$/.test(d.nodeValue.substr(b))&&(c=!0);if(c)for(a=
!0;d&&d!==g;){if(d.nextSibling){a=!1;break}d=d.parentNode}return a},adjacentNoneTextNode:function(g,d){for(var b=g,a=0-g.length||0,c=d?"nextSibling":"previousSibling";b&&3==b.nodeType;)a+=b.length,b=b[c];return[b,a]},create:function(g){g=g||window;return g.getSelection?g.document.createRange():new e},getSelection:function(g,d){if(g.getSelection)return g.getSelection();var b=new h.selection(g);d||b._getCurrentSelection();return b}};if(!window.getSelection)var h=r.ie={cachedSelection:{},selection:function(g){this._ranges=
[];this.addRange=function(d,b){this._ranges.push(d);b||d._select();this.rangeCount=this._ranges.length};this.removeAllRanges=function(){this._ranges=[];this.rangeCount=0};this.getRangeAt=function(d){return this._ranges[d]};this._getCurrentSelection=function(){this.removeAllRanges();var d=g.document.selection.createRange();d="CONTROL"==g.document.selection.type.toUpperCase()?new e(h.decomposeControlRange(d)):new e(h.decomposeTextRange(d));this.addRange(d,!0),this.isCollapsed=d.collapsed}},decomposeControlRange:function(g){var d=
g.item(0),b=g.item(g.length-1);g=d.parentNode;var a=b.parentNode;d=r.getIndex(d,g).o[0];b=r.getIndex(b,a).o[0]+1;return[g,d,a,b]},getEndPoint:function(g,d){var b=g.duplicate();b.collapse(!d);var a="EndTo"+(d?"End":"Start"),c=b.parentElement(),f;if(0<c.childNodes.length)u.every(c.childNodes,function(l,n){if(3!=l.nodeType)if(b.moveToElementText(l),0<b.compareEndPoints(a,g))if(f&&3==f.nodeType){k=f;var q=!0}else return k=c,m=n,!1;else{if(n==c.childNodes.length-1)return k=c,m=c.childNodes.length,!1}else n==
c.childNodes.length-1&&(k=l,q=!0);if(q&&k){k=(q=r.adjacentNoneTextNode(k)[0])?q.nextSibling:c.firstChild;var w=r.adjacentNoneTextNode(k);q=w[0];w=w[1];q?(b.moveToElementText(q),b.collapse(!1)):b.moveToElementText(c);b.setEndPoint(a,g);m=b.text.length-w;return!1}f=l;return!0});else{var k=c;var m=0}if(!d&&1==k.nodeType&&m==k.childNodes.length){var p=k.nextSibling;p&&3==p.nodeType&&(k=p,m=0)}return[k,m]},setEndPoint:function(g,d,b){g=g.duplicate();var a;if(3!=d.nodeType)if(0<b){if(a=d.childNodes[b-1])if(3==
a.nodeType)d=a,b=a.length;else if(a.nextSibling&&3==a.nextSibling.nodeType)d=a.nextSibling,b=0;else{g.moveToElementText(a.nextSibling?a:d);var c=a.parentNode;a=c.insertBefore(a.ownerDocument.createTextNode(" "),a.nextSibling);g.collapse(!1);c.removeChild(a)}}else g.moveToElementText(d),g.collapse(!0);3==d.nodeType&&(a=r.adjacentNoneTextNode(d),c=a[0],a=a[1],c?(g.moveToElementText(c),g.collapse(!1),"inherit"!=c.contentEditable&&a++):(g.moveToElementText(d.parentNode),g.collapse(!0),g.move("character",
1),g.move("character",-1)),b+=a,0<b&&g.move("character",b));return g},decomposeTextRange:function(g){var d=h.getEndPoint(g),b=d[0],a=d[1],c=d[0];d=d[1];g.htmlText.length&&(g.htmlText==g.text?d=a+g.text.length:(d=h.getEndPoint(g,!0),c=d[0],d=d[1]));return[b,a,c,d]},setRange:function(g,d,b,a,c,f){d=h.setEndPoint(g,d,b);g.setEndPoint("StartToStart",d);if(!f)var k=h.setEndPoint(g,a,c);g.setEndPoint("EndToEnd",k||d);return g}},e=r.W3CRange=A(null,{constructor:function(){0<arguments.length?(this.setStart(arguments[0][0],
arguments[0][1]),this.setEnd(arguments[0][2],arguments[0][3])):(this.startContainer=this.commonAncestorContainer=null,this.startOffset=0,this.endContainer=null,this.endOffset=0,this.collapsed=!0)},_updateInternal:function(){this.commonAncestorContainer=this.startContainer!==this.endContainer?r.getCommonAncestor(this.startContainer,this.endContainer):this.startContainer;this.collapsed=this.startContainer===this.endContainer&&this.startOffset==this.endOffset},setStart:function(g,d){d=parseInt(d);if(this.startContainer!==
g||this.startOffset!=d)delete this._cachedBookmark,this.startContainer=g,this.startOffset=d,this.endContainer?this._updateInternal():this.setEnd(g,d)},setEnd:function(g,d){d=parseInt(d);if(this.endContainer!==g||this.endOffset!=d)delete this._cachedBookmark,this.endContainer=g,this.endOffset=d,this.startContainer?this._updateInternal():this.setStart(g,d)},setStartAfter:function(g,d){this._setPoint("setStart",g,d,1)},setStartBefore:function(g,d){this._setPoint("setStart",g,d,0)},setEndAfter:function(g,
d){this._setPoint("setEnd",g,d,1)},setEndBefore:function(g,d){this._setPoint("setEnd",g,d,0)},_setPoint:function(g,d,b,a){b=r.getIndex(d,d.parentNode).o;this[g](d.parentNode,b.pop()+a)},_getIERange:function(){var g=(this._body||this.endContainer.ownerDocument.body).createTextRange();h.setRange(g,this.startContainer,this.startOffset,this.endContainer,this.endOffset,this.collapsed);return g},getBookmark:function(){this._getIERange();return this._cachedBookmark},_select:function(){this._getIERange().select()},
deleteContents:function(){var g=this.startContainer,d=this._getIERange();3!==g.nodeType||this.startOffset||this.setStartBefore(g);d.pasteHTML("");this.endContainer=this.startContainer;this.endOffset=this.startOffset;this.collapsed=!0},cloneRange:function(){var g=new e([this.startContainer,this.startOffset,this.endContainer,this.endOffset]);g._body=this._body;return g},detach:function(){this.startContainer=this.commonAncestorContainer=this._body=null;this.startOffset=0;this.endContainer=null;this.endOffset=
0;this.collapsed=!0}});x.setObject("dijit.range",r);return r})},"dijit/_editor/html":function(){define(["dojo/_base/array","dojo/_base/lang","dojo/sniff"],function(u,A,x){var r={};A.setObject("dijit._editor.html",r);var h=r.escapeXml=function(e,g){e=e.replace(/&/gm,"\x26amp;").replace(/</gm,"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;");g||(e=e.replace(/'/gm,"\x26#39;"));return e};r.getNodeHtml=function(e){var g=[];r.getNodeHtmlHelper(e,g);return g.join("")};r.getNodeHtmlHelper=function(e,
g){switch(e.nodeType){case 1:var d=e.nodeName.toLowerCase();if(!d||"/"==d.charAt(0))return"";g.push("\x3c",d);var b=[],a={},c;if(x("dom-attributes-explicit")||x("dom-attributes-specified-flag"))for(var f=0;c=e.attributes[f++];){var k=c.name;"_dj"===k.substr(0,3)||x("dom-attributes-specified-flag")&&!c.specified||k in a||(c=c.value,("src"==k||"href"==k)&&e.getAttribute("_djrealurl")&&(c=e.getAttribute("_djrealurl")),8===x("ie")&&"style"===k&&(c=c.replace("HEIGHT:","height:").replace("WIDTH:","width:")),
b.push([k,c]),a[k]=c)}else{var m=(/^input$|^img$/i.test(e.nodeName)?e:e.cloneNode(!1)).outerHTML;a=m.match(/[\w-]+=("[^"]*"|'[^']*'|\S*)/gi);m=m.substr(0,m.indexOf("\x3e"));u.forEach(a,function(p){if(p){var l=p.indexOf("\x3d");if(0<l&&(p=p.substring(0,l),"_dj"!=p.substr(0,3)))if("src"!=p&&"href"!=p||!e.getAttribute("_djrealurl")){switch(p){case "style":var n=e.style.cssText.toLowerCase();break;case "class":n=e.className;break;case "width":if("img"===d){(l=/width=(\S+)/i.exec(m))&&(n=l[1]);break}case "height":if("img"===
d){(l=/height=(\S+)/i.exec(m))&&(n=l[1]);break}default:n=e.getAttribute(p)}null!=n&&b.push([p,n.toString()])}else b.push([p,e.getAttribute("_djrealurl")])}},this)}b.sort(function(p,l){return p[0]<l[0]?-1:p[0]==l[0]?0:1});for(a=0;c=b[a++];)g.push(" ",c[0],'\x3d"',"string"===typeof c[1]?h(c[1],!0):c[1],'"');switch(d){case "br":case "hr":case "img":case "input":case "base":case "meta":case "area":case "basefont":g.push(" /\x3e");break;case "script":g.push("\x3e",e.innerHTML,"\x3c/",d,"\x3e");break;default:g.push("\x3e"),
e.hasChildNodes()&&r.getChildrenHtmlHelper(e,g),g.push("\x3c/",d,"\x3e")}break;case 4:case 3:g.push(h(e.nodeValue,!0));break;case 8:g.push("\x3c!--",h(e.nodeValue,!0),"--\x3e");break;default:g.push("\x3c!-- Element not recognized - Type: ",e.nodeType," Name: ",e.nodeName,"--\x3e")}};r.getChildrenHtml=function(e){var g=[];r.getChildrenHtmlHelper(e,g);return g.join("")};r.getChildrenHtmlHelper=function(e,g){if(e)for(var d=e.childNodes||e,b=!x("ie")||d!==e,a,c=0;a=d[c++];)b&&a.parentNode!=e||r.getNodeHtmlHelper(a,
g)};return r})},"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(u,A,x,r,h,e,g,d,b,a,c,f,k){u=u("dijit.TooltipDialog",[d,c,a,b],{title:"",doLayout:!1,autofocus:!0,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:f,_setTitleAttr:"containerNode",postCreate:function(){this.inherited(arguments);
this.own(e(this.domNode,"keydown",h.hitch(this,"_onKey")))},orient:function(m,p,l){m={"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"}[p+"-"+l];A.replace(this.domNode,m,this._currentOrientClass||"");this._currentOrientClass=m},focus:function(){this._getFocusItems();g.focus(this._firstFocusItem)},onOpen:function(m){this.orient(this.domNode,m.aroundCorner,m.corner);var p=m.aroundNodePos;"M"==m.corner.charAt(0)&&"M"==m.aroundCorner.charAt(0)?(this.connectorNode.style.top=p.y+(p.h-this.connectorNode.offsetHeight>>1)-m.y+"px",this.connectorNode.style.left=
""):"M"==m.corner.charAt(1)&&"M"==m.aroundCorner.charAt(1)&&(this.connectorNode.style.left=p.x+(p.w-this.connectorNode.offsetWidth>>1)-m.x+"px");this._onShow()},onClose:function(){this.onHide()},_onKey:function(m){if(m.keyCode==r.ESCAPE)this.defer("onCancel"),m.stopPropagation(),m.preventDefault();else if(m.keyCode==r.TAB){var p=m.target;this._getFocusItems();this._firstFocusItem==this._lastFocusItem?(m.stopPropagation(),m.preventDefault()):p==this._firstFocusItem&&m.shiftKey?(g.focus(this._lastFocusItem),
m.stopPropagation(),m.preventDefault()):p!=this._lastFocusItem||m.shiftKey?m.stopPropagation():(g.focus(this._firstFocusItem),m.stopPropagation(),m.preventDefault())}}});x("dojo-bidi")&&u.extend({_setTitleAttr:function(m){this.containerNode.title=this.textDir&&this.enforceTextDirWithUcc?this.enforceTextDirWithUcc(null,m):m;this._set("title",m)},_setTextDirAttr:function(m){this._created&&this.textDir==m||(this._set("textDir",m),this.textDir&&this.title&&(this.containerNode.title=this.enforceTextDirWithUcc(null,
this.title)))}});return u})},"dijit/ProgressBar":function(){define("require dojo/_base/declare dojo/dom-class dojo/_base/lang dojo/number ./_Widget ./_TemplatedMixin dojo/text!./templates/ProgressBar.html".split(" "),function(u,A,x,r,h,e,g,d){return A("dijit.ProgressBar",[e,g],{progress:"0",value:"",maximum:100,places:0,indeterminate:!1,label:"",name:"",templateString:d,_indeterminateHighContrastImagePath:u.toUrl("./themes/a11y/indeterminate_progress.gif"),postMixInProperties:function(){this.inherited(arguments);
this.params&&"value"in this.params||(this.value=this.indeterminate?Infinity:this.progress)},buildRendering:function(){this.inherited(arguments);this.indeterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath.toString());this.update()},_setDirAttr:function(b){var a="rtl"==b.toLowerCase();x.toggle(this.domNode,"dijitProgressBarRtl",a);x.toggle(this.domNode,"dijitProgressBarIndeterminateRtl",this.indeterminate&&a);this.inherited(arguments)},update:function(b){r.mixin(this,
b||{});b=this.internalProgress;var a=this.domNode,c=1;this.indeterminate?a.removeAttribute("aria-valuenow"):(-1!=String(this.progress).indexOf("%")?(c=Math.min(parseFloat(this.progress)/100,1),this.progress=c*this.maximum):(this.progress=Math.min(this.progress,this.maximum),c=this.maximum?this.progress/this.maximum:0),a.setAttribute("aria-valuenow",this.progress));a.setAttribute("aria-labelledby",this.labelNode.id);a.setAttribute("aria-valuemin",0);a.setAttribute("aria-valuemax",this.maximum);this.labelNode.innerHTML=
this.report(c);x.toggle(this.domNode,"dijitProgressBarIndeterminate",this.indeterminate);x.toggle(this.domNode,"dijitProgressBarIndeterminateRtl",this.indeterminate&&!this.isLeftToRight());b.style.width=100*c+"%";this.onChange()},_setValueAttr:function(b){this._set("value",b);Infinity==b?this.update({indeterminate:!0}):this.update({indeterminate:!1,progress:b})},_setLabelAttr:function(b){this._set("label",b);this.update()},_setIndeterminateAttr:function(b){this._set("indeterminate",b);this.update()},
report:function(b){return this.label?this.label:this.indeterminate?"\x26#160;":h.format(b,{type:"percent",places:this.places,locale:this.lang})},onChange:function(){}})})},"dijit/ConfirmDialog":function(){define(["dojo/_base/declare","./Dialog","./_ConfirmDialogMixin"],function(u,A,x){return u("dijit.ConfirmDialog",[A,x],{})})},"dijit/_ConfirmDialogMixin":function(){define(["dojo/_base/declare","./_WidgetsInTemplateMixin","dojo/i18n!./nls/common","dojo/text!./templates/actionBar.html","./form/Button"],
function(u,A,x,r){return u("dijit._ConfirmDialogMixin",A,{actionBarTemplate:r,buttonOk:x.buttonOk,_setButtonOkAttr:{node:"okButton",attribute:"label"},buttonCancel:x.buttonCancel,_setButtonCancelAttr:{node:"cancelButton",attribute:"label"}})})},"dijit/_editor/plugins/LinkDialog":function(){define("require dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/query dojo/string ../_Plugin ../../form/DropDownButton ../range".split(" "),function(u,A,x,r,h,
e,g,d,b,a,c,f,k){var m=x("dijit._editor.plugins.LinkDialog",c,{allowUnsafeHtml:!1,linkFilter:[[/</g,"\x26lt;"]],buttonClass:f,useDefaultCommand:!1,urlRegExp:"((https?|ftps?|file)\\://|./|../|/|)(/[a-zA-Z]{1,1}:/|)(((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)*(?:[a-zA-Z](?:[-\\da-zA-Z]{0,80}[\\da-zA-Z])?)\\.?)|(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])|(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]|(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]|(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])|0[xX]0*[\\da-fA-F]{1,8}|([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}|([\\da-fA-F]{1,4}\\:){6}((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])))(\\:\\d+)?(/(?:[^?#\\s/]+/)*(?:[^?#\\s/]{0,}(?:\\?[^?#\\s/]*)?(?:#.*)?)?)?",
emailRegExp:"\x3c?(mailto\\:)([!#-'*+\\-\\/-9\x3d?A-Z^-~]+[.])*[!#-'*+\\-\\/-9\x3d?A-Z^-~]+@((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)+(?:[a-zA-Z](?:[-\\da-zA-Z]{0,6}[\\da-zA-Z])?)\\.?)|localhost|^[^-][a-zA-Z0-9_-]*\x3e?",htmlTemplate:'\x3ca href\x3d"${urlInput}" _djrealurl\x3d"${urlInput}" target\x3d"${targetSelect}"\x3e${textInput}\x3c/a\x3e',tag:"a",_hostRxp:/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/,_userAtRxp:/^([!#-'*+\-\/-9=?A-Z^-~]+[.])*[!#-'*+\-\/-9=?A-Z^-~]+@/i,
linkDialogTemplate:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_urlInput'\x3e${url}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_urlInput' name\x3d'urlInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_textInput' name\x3d'textInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_targetSelect'\x3e${target}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect id\x3d'${id}_targetSelect' name\x3d'targetSelect' data-dojo-type\x3d'dijit.form.Select'\x3e\x3coption selected\x3d'selected' value\x3d'_self'\x3e${currentWindow}\x3c/option\x3e\x3coption value\x3d'_blank'\x3e${newWindow}\x3c/option\x3e\x3coption value\x3d'_top'\x3e${topWindow}\x3c/option\x3e\x3coption value\x3d'_parent'\x3e${parentWindow}\x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
_initButton:function(){this.inherited(arguments);this.button.loadDropDown=e.hitch(this,"_loadDropDown");this._connectTagEvents()},_loadDropDown:function(l){u("dojo/i18n ../../TooltipDialog ../../registry ../../form/Button ../../form/Select ../../form/ValidationTextBox dojo/i18n!../../nls/common dojo/i18n!../nls/LinkDialog".split(" "),e.hitch(this,function(n,q,w){var t=this;this.tag="insertImage"==this.command?"img":"a";n=e.delegate(n.getLocalization("dijit","common",this.lang),n.getLocalization("dijit._editor",
"LinkDialog",this.lang));var v=this.dropDown=this.button.dropDown=new q({title:n[this.command+"Title"],ownerDocument:this.editor.ownerDocument,dir:this.editor.dir,execute:e.hitch(this,"setValue"),onOpen:function(){t._onOpenDialog();q.prototype.onOpen.apply(this,arguments)},onCancel:function(){setTimeout(e.hitch(t,"_onCloseDialog"),0)}});n.urlRegExp=this.urlRegExp;n.id=w.getUniqueId(this.editor.id);this._uniqueId=n.id;this._setContent(v.title+"\x3cdiv style\x3d'border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'\x3e\x3c/div\x3e"+
a.substitute(this.linkDialogTemplate,n));v.startup();this._urlInput=w.byId(this._uniqueId+"_urlInput");this._textInput=w.byId(this._uniqueId+"_textInput");this._setButton=w.byId(this._uniqueId+"_setButton");this.own(w.byId(this._uniqueId+"_cancelButton").on("click",e.hitch(this.dropDown,"onCancel")));this._urlInput&&this.own(this._urlInput.on("change",e.hitch(this,"_checkAndFixInput")));this._textInput&&this.own(this._textInput.on("change",e.hitch(this,"_checkAndFixInput")));this._urlRegExp=new RegExp("^"+
this.urlRegExp+"$","i");this._emailRegExp=new RegExp("^"+this.emailRegExp+"$","i");this._urlInput.isValid=e.hitch(this,function(){var y=this._urlInput.get("value");return this._urlRegExp.test(y)||this._emailRegExp.test(y)});this.own(g(v.domNode,"keydown",e.hitch(this,e.hitch(this,function(y){!y||y.keyCode!=h.ENTER||y.shiftKey||y.metaKey||y.ctrlKey||y.altKey||this._setButton.get("disabled")||(v.onExecute(),v.execute(v.get("value")))}))));l()}))},_checkAndFixInput:function(){var l=this,n=this._urlInput.get("value");
this._delayedCheck&&(clearTimeout(this._delayedCheck),this._delayedCheck=null);this._delayedCheck=setTimeout(function(){var q=n,w=!1,t=!1;q&&1<q.length&&(q=e.trim(q),0!==q.indexOf("mailto:")&&(0<q.indexOf("/")?-1===q.indexOf("://")&&"/"!==q.charAt(0)&&q.indexOf("./")&&0!==q.indexOf("../")&&l._hostRxp.test(q)&&(w=!0):l._userAtRxp.test(q)&&(t=!0)));w&&l._urlInput.set("value","http://"+q);t&&l._urlInput.set("value","mailto:"+q);l._setButton.set("disabled",!l._isValid())},250)},_connectTagEvents:function(){this.editor.onLoadDeferred.then(e.hitch(this,
function(){this.own(g(this.editor.editNode,"mouseup",e.hitch(this,"_onMouseUp")));this.own(g(this.editor.editNode,"dblclick",e.hitch(this,"_onDblClick")))}))},_isValid:function(){return this._urlInput.isValid()&&this._textInput.isValid()},_setContent:function(l){this.dropDown.set({parserScope:"dojo",content:l})},_checkValues:function(l){l&&l.urlInput&&(l.urlInput=l.urlInput.replace(/"/g,"\x26quot;"));!this.allowUnsafeHtml&&l&&l.textInput&&("function"===typeof this.linkFilter?l.textInput=this.linkFilter(l.textInput):
A.forEach(this.linkFilter,function(n){l.textInput=l.textInput.replace(n[0],n[1])}));return l},_createlinkEnabledImpl:function(){return!0},setValue:function(l){this._onCloseDialog();if(9>d("ie")){var n=k.getSelection(this.editor.window).getRangeAt(0).endContainer;3===n.nodeType&&(n=n.parentNode);n&&n.nodeName&&n.nodeName.toLowerCase()!==this.tag&&(n=this.editor.selection.getSelectedElement(this.tag));n&&n.nodeName&&n.nodeName.toLowerCase()===this.tag&&this.editor.queryCommandEnabled("unlink")&&(this.editor.selection.selectElementChildren(n),
this.editor.execCommand("unlink"))}l=this._checkValues(l);this.editor.execCommand("inserthtml",a.substitute(this.htmlTemplate,l));b("a",this.editor.document).forEach(function(q){q.innerHTML||r.has(q,"name")||q.parentNode.removeChild(q)},this)},_onCloseDialog:function(){this.editor.focused&&this.editor.focus()},_getCurrentValues:function(l){if(l&&l.tagName.toLowerCase()===this.tag){var n=l.getAttribute("_djrealurl")||l.getAttribute("href");var q=l.getAttribute("target")||"_self";var w=l.textContent||
l.innerText;this.editor.selection.selectElement(l,!0)}else w=this.editor.selection.getSelectedText();return{urlInput:n||"",textInput:w||"",targetSelect:q||""}},_onOpenDialog:function(){if(d("ie")){var l=k.getSelection(this.editor.window);if(l.rangeCount){var n=l.getRangeAt(0);var q=n.endContainer;3===q.nodeType&&(q=q.parentNode);q&&q.nodeName&&q.nodeName.toLowerCase()!==this.tag&&(q=this.editor.selection.getSelectedElement(this.tag));if(!q||q.nodeName&&q.nodeName.toLowerCase()!==this.tag)(l=this.editor.selection.getAncestorElement(this.tag))&&
l.nodeName&&l.nodeName.toLowerCase()==this.tag?(q=l,this.editor.selection.selectElement(q)):n.startContainer===n.endContainer&&(l=n.startContainer.firstChild)&&l.nodeName&&l.nodeName.toLowerCase()==this.tag&&(q=l,this.editor.selection.selectElement(q))}}else q=this.editor.selection.getAncestorElement(this.tag);this.dropDown.reset();this._setButton.set("disabled",!0);this.dropDown.set("value",this._getCurrentValues(q))},_onDblClick:function(l){if(l&&l.target&&(l=l.target,(l.tagName?l.tagName.toLowerCase():
"")===this.tag&&r.get(l,"href"))){var n=this.editor;this.editor.selection.selectElement(l);n.onDisplayChanged();n._updateTimer&&(n._updateTimer.remove(),delete n._updateTimer);n.onNormalizedDisplayChanged();var q=this.button;setTimeout(function(){q.set("disabled",!1);q.loadAndOpenDropDown().then(function(){q.dropDown.focus&&q.dropDown.focus()})},10)}},_onMouseUp:function(){if(d("ff")){var l=this.editor.selection.getAncestorElement(this.tag);if(l){var n=k.getSelection(this.editor.window).getRangeAt(0);
if(n.collapsed&&l.childNodes.length){var q=n.cloneRange();q.selectNodeContents(l.childNodes[l.childNodes.length-1]);q.setStart(l.childNodes[0],0);1!==n.compareBoundaryPoints(q.START_TO_START,q)?n.setStartBefore(l):-1!==n.compareBoundaryPoints(q.END_TO_START,q)&&n.setStartAfter(l)}}}}}),p=x("dijit._editor.plugins.ImgLinkDialog",[m],{linkDialogTemplate:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_urlInput'\x3e${url}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' regExp\x3d'${urlRegExp}' required\x3d'true' id\x3d'${id}_urlInput' name\x3d'urlInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'false' id\x3d'${id}_textInput' name\x3d'textInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
htmlTemplate:'\x3cimg src\x3d"${urlInput}" _djrealurl\x3d"${urlInput}" alt\x3d"${textInput}" /\x3e',tag:"img",_getCurrentValues:function(l){if(l&&l.tagName.toLowerCase()===this.tag){var n=l.getAttribute("_djrealurl")||l.getAttribute("src");var q=l.getAttribute("alt");this.editor.selection.selectElement(l,!0)}else q=this.editor.selection.getSelectedText();return{urlInput:n||"",textInput:q||""}},_isValid:function(){return this._urlInput.isValid()},_connectTagEvents:function(){this.inherited(arguments);
this.editor.onLoadDeferred.then(e.hitch(this,function(){this.own(g(this.editor.editNode,"mousedown",e.hitch(this,"_selectTag")))}))},_selectTag:function(l){l&&l.target&&(l=l.target,(l.tagName?l.tagName.toLowerCase():"")===this.tag&&this.editor.selection.selectElement(l))},_checkValues:function(l){l&&l.urlInput&&(l.urlInput=l.urlInput.replace(/"/g,"\x26quot;"));l&&l.textInput&&(l.textInput=l.textInput.replace(/"/g,"\x26quot;"));return l},_onDblClick:function(l){if(l&&l.target&&(l=l.target,(l.tagName?
l.tagName.toLowerCase():"")===this.tag&&r.get(l,"src"))){var n=this.editor;this.editor.selection.selectElement(l);n.onDisplayChanged();n._updateTimer&&(n._updateTimer.remove(),delete n._updateTimer);n.onNormalizedDisplayChanged();var q=this.button;setTimeout(function(){q.set("disabled",!1);q.loadAndOpenDropDown().then(function(){q.dropDown.focus&&q.dropDown.focus()})},10)}}});c.registry.createLink=function(l){var n={command:"createLink",allowUnsafeHtml:"allowUnsafeHtml"in l?l.allowUnsafeHtml:!1};
"linkFilter"in l&&(n.linkFilter=l.linkFilter);return new m(n)};c.registry.insertImage=function(){return new p({command:"insertImage"})};m.ImgLinkDialog=p;return m})},"dijit/_editor/plugins/FontChoice":function(){define("require dojo/_base/array dojo/_base/declare dojo/dom-construct dojo/i18n dojo/_base/lang dojo/string dojo/store/Memory ../../registry ../../_Widget ../../_TemplatedMixin ../../_WidgetsInTemplateMixin ../../form/FilteringSelect ../_Plugin ../range dojo/i18n!../nls/FontChoice".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p){u=x("dijit._editor.plugins._FontDropDown",[a,c,f],{label:"",plainText:!1,templateString:"\x3cspan style\x3d'white-space: nowrap' class\x3d'dijit dijitReset dijitInline'\x3e\x3clabel class\x3d'dijitLeft dijitInline' for\x3d'${selectId}'\x3e${label}\x3c/label\x3e\x3cinput data-dojo-type\x3d'../../form/FilteringSelect' required\x3d'false' data-dojo-props\x3d'labelType:\"html\", labelAttr:\"label\", searchAttr:\"name\"' class\x3d'${comboClass}' tabIndex\x3d'-1' id\x3d'${selectId}' data-dojo-attach-point\x3d'select' value\x3d''/\x3e\x3c/span\x3e",
contextRequire:u,postMixInProperties:function(){this.inherited(arguments);this.strings=h.getLocalization("dijit._editor","FontChoice");this.label=this.strings[this.command];this.id=b.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.selectId=this.id+"_select";this.inherited(arguments)},postCreate:function(){this.select.set("store",new d({idProperty:"value",data:A.map(this.values,function(t){var v=this.strings[t]||t;return{label:this.getLabel(t,v),name:v,value:t}},this)}));this.select.set("value",
"",!1);this.disabled=this.select.get("disabled")},_setValueAttr:function(t,v){v=!1!==v;this.select.set("value",0>A.indexOf(this.values,t)?"":t,v);v||(this.select._lastValueReported=null)},_getValueAttr:function(){return this.select.get("value")},focus:function(){this.select.focus()},_setDisabledAttr:function(t){this._set("disabled",t);this.select.set("disabled",t)}});var l=x("dijit._editor.plugins._FontNameDropDown",u,{generic:!1,command:"fontName",comboClass:"dijitFontNameCombo",postMixInProperties:function(){this.values||
(this.values=this.generic?["serif","sans-serif","monospace","cursive","fantasy"]:["Arial","Times New Roman","Comic Sans MS","Courier New"]);this.inherited(arguments)},getLabel:function(t,v){return this.plainText?v:"\x3cdiv style\x3d'font-family: "+t+"'\x3e"+v+"\x3c/div\x3e"},_normalizeFontName:function(t){var v=this.values;if(!t||!v)return t;var y=t.split(",");if(1<y.length)for(var z=0,C=y.length;z<C;z++){var G=g.trim(y[z]);if(-1<A.indexOf(v,G))return G}return t},_setValueAttr:function(t,v){v=!1!==
v;t=this._normalizeFontName(t);this.generic&&(t={Arial:"sans-serif",Helvetica:"sans-serif",Myriad:"sans-serif",Times:"serif","Times New Roman":"serif","Comic Sans MS":"cursive","Apple Chancery":"cursive",Courier:"monospace","Courier New":"monospace",Papyrus:"fantasy","Estrangelo Edessa":"cursive",Gabriola:"fantasy"}[t]||t);this.inherited(arguments,[t,v])}}),n=x("dijit._editor.plugins._FontSizeDropDown",u,{command:"fontSize",comboClass:"dijitFontSizeCombo",values:[1,2,3,4,5,6,7],getLabel:function(t,
v){return this.plainText?v:"\x3cfont size\x3d"+t+"'\x3e"+v+"\x3c/font\x3e"},_setValueAttr:function(t,v){v=!1!==v;t.indexOf&&-1!=t.indexOf("px")&&(t={10:1,13:2,16:3,18:4,24:5,32:6,48:7}[parseInt(t,10)]||t);this.inherited(arguments,[t,v])}}),q=x("dijit._editor.plugins._FormatBlockDropDown",u,{command:"formatBlock",comboClass:"dijitFormatBlockCombo",values:"noFormat p h1 h2 h3 pre".split(" "),postCreate:function(){this.inherited(arguments);this.set("value","noFormat",!1)},getLabel:function(t,v){return this.plainText||
"noFormat"==t?v:"\x3c"+t+"\x3e"+v+"\x3c/"+t+"\x3e"},_execCommand:function(t,v,y){if("noFormat"===y){var z;if((v=p.getSelection(t.window))&&0<v.rangeCount&&(y=v.getRangeAt(0),y)){v=y.startContainer;for(z=y.endContainer;v&&v!==t.editNode&&v!==t.document.body&&1!==v.nodeType;)v=v.parentNode;for(;z&&z!==t.editNode&&z!==t.document.body&&1!==z.nodeType;)z=z.parentNode;var C=e.hitch(this,function(E,J){if(E.childNodes&&E.childNodes.length){var I;for(I=0;I<E.childNodes.length;I++){var F=E.childNodes[I];if(1==
F.nodeType&&t.selection.inSelection(F)){var H=F.tagName?F.tagName.toLowerCase():"";-1!==A.indexOf(this.values,H)&&J.push(F);C(F,J)}}}});y=e.hitch(this,function(E){if(E&&E.length){for(t.beginEditing();E.length;)this._removeFormat(t,E.pop());t.endEditing()}});var G=[];if(v==z){for(z=v;z&&z!==t.editNode&&z!==t.document.body;){if(1==z.nodeType){var B=z.tagName?z.tagName.toLowerCase():"";if(-1!==A.indexOf(this.values,B)){var D=z;break}}z=z.parentNode}C(v,G);D&&(G=[D].concat(G))}else for(z=v;t.selection.inSelection(z);)1==
z.nodeType&&(B=z.tagName?z.tagName.toLowerCase():"",-1!==A.indexOf(this.values,B)&&G.push(z),C(z,G)),z=z.nextSibling;y(G);t.onDisplayChanged()}}else t.execCommand(v,y)},_removeFormat:function(t,v){if(t.customUndo){for(;v.firstChild;)r.place(v.firstChild,v,"before");v.parentNode.removeChild(v)}else{t.selection.selectElementChildren(v);var y=t.selection.getSelectedHtml();t.selection.selectElement(v);t.execCommand("inserthtml",y||"")}}}),w=x("dijit._editor.plugins.FontChoice",m,{useDefaultCommand:!1,
_initButton:function(){var t={fontName:l,fontSize:n,formatBlock:q}[this.command],v=this.params;this.params.custom&&(v.values=this.params.custom);var y=this.editor;this.button=new t(e.delegate({dir:y.dir,lang:y.lang},v));this.own(this.button.select.on("change",e.hitch(this,function(z){this.editor.focused&&this.editor.focus();"fontName"==this.command&&-1!=z.indexOf(" ")&&(z="'"+z+"'");this.button._execCommand?this.button._execCommand(this.editor,this.command,z):this.editor.execCommand(this.command,
z)})))},updateState:function(){var t=this.editor,v=this.command;if(t&&t.isLoaded&&v.length&&this.button){var y=this.get("disabled");this.button.set("disabled",y);if(!y){try{var z=t.queryCommandValue(v)||""}catch(G){z=""}(y=e.isString(z)&&(z.match(/'([^']*)'/)||z.match(/"([^"]*)"/)))&&(z=y[1]);"fontSize"!==v||z||(z=3);if("formatBlock"===v)if(z&&"p"!=z)0>A.indexOf(this.button.values,z)&&(z="noFormat");else{z=null;if((v=p.getSelection(this.editor.window))&&0<v.rangeCount&&(v=v.getRangeAt(0)))var C=v.endContainer;
for(;C&&C!==t.editNode&&C!==t.document;){if((v=C.tagName?C.tagName.toLowerCase():"")&&-1<A.indexOf(this.button.values,v)){z=v;break}C=C.parentNode}z||(z="noFormat")}z!==this.button.get("value")&&this.button.set("value",z,!1)}}}});A.forEach(["fontName","fontSize","formatBlock"],function(t){m.registry[t]=function(v){return new w({command:t,plainText:v.plainText})}});w._FontDropDown=u;w._FontNameDropDown=l;w._FontSizeDropDown=n;w._FormatBlockDropDown=q;return w})},"dijit/form/FilteringSelect":function(){define(["dojo/_base/declare",
"dojo/_base/lang","dojo/when","./MappedTextBox","./ComboBoxMixin"],function(u,A,x,r,h){return u("dijit.form.FilteringSelect",[r,h],{required:!0,_lastDisplayedValue:"",_isValidSubset:function(){return this._opened},isValid:function(){return!!this.item||!this.required&&""==this.get("displayedValue")},_refreshState:function(){this.searchTimer||this.inherited(arguments)},_callbackSetLabel:function(e,g,d,b){g&&g[this.searchAttr]!==this._lastQuery||!g&&e.length&&this.store.getIdentity(e[0])!=this._lastQuery||
(e.length?this.set("item",e[0],b):this.set("value","",b||void 0===b&&!this.focused,this.textbox.value,null))},_openResultList:function(e,g,d){g[this.searchAttr]===this._lastQuery&&(this.inherited(arguments),void 0===this.item&&this.validate(!0))},_getValueAttr:function(){return this.valueNode.value},_getValueField:function(){return"value"},_setValueAttr:function(e,g,d,b){this._onChangeActive||(g=null);if(void 0===b){if(null===e||""===e)if(e="",!A.isString(d)){this._setDisplayedValueAttr(d||"",g);
return}var a=this;this._lastQuery=e;x(this.store.get(e),function(c){a._callbackSetLabel(c?[c]:[],void 0,void 0,g)})}else this.valueNode.value=e,this.inherited(arguments,[e,g,d,b])},_setItemAttr:function(e,g,d){this.inherited(arguments);this._lastDisplayedValue=this.textbox.value},_getDisplayQueryString:function(e){return e.replace(/([\\\*\?])/g,"\\$1")},_setDisplayedValueAttr:function(e,g){null==e&&(e="");if(!this._created){if(!("displayedValue"in this.params))return;g=!1}if(this.store){this.closeDropDown();
var d=A.clone(this.query),b=this._getDisplayQueryString(e);if(this.store._oldAPI)var a=b;else a=this._patternToRegExp(b),a.toString=function(){return b};this._lastQuery=d[this.searchAttr]=a;this._lastDisplayedValue=this.textbox.value=e;this._set("displayedValue",e);var c=this,f={queryOptions:{ignoreCase:this.ignoreCase,deep:!0}};A.mixin(f,this.fetchProperties);this._fetchHandle=this.store.query(d,f);x(this._fetchHandle,function(k){c._fetchHandle=null;c._callbackSetLabel(k||[],d,f,g)},function(k){c._fetchHandle=
null})}},undo:function(){this.set("displayedValue",this._lastDisplayedValue)}})})},"dijit/_editor/plugins/TextColor":function(){define("require dojo/colors dojo/_base/declare dojo/_base/lang ../_Plugin ../../form/DropDownButton".split(" "),function(u,A,x,r,h,e){var g=x("dijit._editor.plugins.TextColor",h,{buttonClass:e,colorPicker:"dijit/ColorPalette",useDefaultCommand:!1,_initButton:function(){this.command=this.name;this.inherited(arguments);var d=this;this.button.loadDropDown=function(b){function a(c){d.button.dropDown=
new c({dir:d.editor.dir,ownerDocument:d.editor.ownerDocument,value:d.value,onChange:function(f){d.editor.execCommand(d.command,f)},onExecute:function(){d.editor.execCommand(d.command,this.get("value"))}});b()}"string"==typeof d.colorPicker?u([d.colorPicker],a):a(d.colorPicker)}},updateState:function(){var d=this.editor,b=this.command;if(d&&d.isLoaded&&b.length){if(this.button){var a=this.get("disabled");this.button.set("disabled",a);if(a)return;try{var c=d.queryCommandValue(b)||""}catch(f){c=""}}""==
c&&(c="#000000");"transparent"==c&&(c="#ffffff");"string"==typeof c?-1<c.indexOf("rgb")&&(c=A.fromRgb(c).toHex()):(c=((c&255)<<16|c&65280|(c&16711680)>>>16).toString(16),c="#000000".slice(0,7-c.length)+c);this.value=c;(d=this.button.dropDown)&&d.get&&c!==d.get("value")&&d.set("value",c,!1)}}});h.registry.foreColor=function(d){return new g(d)};h.registry.hiliteColor=function(d){return new g(d)};return g})},"dojo/colors":function(){define(["./_base/kernel","./_base/lang","./_base/Color","./_base/array"],
function(u,A,x,r){var h={};A.setObject("dojo.colors",h);var e=function(d,b,a){0>a&&++a;1<a&&--a;var c=6*a;return 1>c?d+(b-d)*c:1>2*a?b:2>3*a?d+(b-d)*(2/3-a)*6:d};u.colorFromRgb=x.fromRgb=function(d,b){var a=d.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(a){var c=a[2].split(/\s*,\s*/),f=c.length;a=a[1];if("rgb"==a&&3==f||"rgba"==a&&4==f)return a=c[0],"%"==a.charAt(a.length-1)?(a=r.map(c,function(p){return 2.56*parseFloat(p)}),4==f&&(a[3]=c[3]),x.fromArray(a,b)):x.fromArray(c,b);if("hsl"==
a&&3==f||"hsla"==a&&4==f){a=(parseFloat(c[0])%360+360)%360/360;var k=parseFloat(c[1])/100,m=parseFloat(c[2])/100;k=.5>=m?m*(k+1):m+k-m*k;m=2*m-k;a=[256*e(m,k,a+1/3),256*e(m,k,a),256*e(m,k,a-1/3),1];4==f&&(a[3]=c[3]);return x.fromArray(a,b)}}return null};var g=function(d,b,a){d=Number(d);return isNaN(d)?a:d<b?b:d>a?a:d};x.prototype.sanitize=function(){this.r=Math.round(g(this.r,0,255));this.g=Math.round(g(this.g,0,255));this.b=Math.round(g(this.b,0,255));this.a=g(this.a,0,1);return this};h.makeGrey=
x.makeGrey=function(d,b){return x.fromArray([d,d,d,b])};A.mixin(x.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],
darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,
105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,
128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,
112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,
239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,
99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});return x})},"dijit/_editor/plugins/FullScreen":function(){define("dojo/aspect dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/i18n dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/_base/window dojo/window ../../focus ../_Plugin ../../form/ToggleButton ../../registry dojo/i18n!../nls/commands".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l){var n=
A("dijit._editor.plugins.FullScreen",m,{zIndex:500,_origState:null,_origiFrameState:null,_resizeHandle:null,isFullscreen:!1,toggle:function(){this.button.set("checked",!this.button.get("checked"))},_initButton:function(){var q=e.getLocalization("dijit._editor","commands"),w=this.editor;this.button=new p({label:q.fullScreen,ownerDocument:w.ownerDocument,dir:w.dir,lang:w.lang,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"FullScreen",tabIndex:"-1",onChange:d.hitch(this,"_setFullScreen")})},
setEditor:function(q){this.editor=q;this._initButton();this.editor.addKeyHandler(g.F11,!0,!0,d.hitch(this,function(w){this.toggle();w.stopPropagation();w.preventDefault();this.editor.defer("focus",250);return!0}));this.own(b(this.editor.domNode,"keydown",d.hitch(this,"_containFocus")))},_containFocus:function(q){if(this.isFullscreen){var w=this.editor;if(!w.isTabIndent&&w._fullscreen_oldOnKeyDown&&q.keyCode===g.TAB){q=k.curNode;var t=this._getAltViewNode();q==w.iframe||t&&q===t?setTimeout(d.hitch(this,
function(){w.toolbar.focus()}),10):t&&"none"===h.get(w.iframe,"display")?setTimeout(d.hitch(this,function(){k.focus(t)}),10):setTimeout(d.hitch(this,function(){w.focus()}),10);event.stopPropagation();event.preventDefault()}else w._fullscreen_oldOnKeyDown&&w._fullscreen_oldOnKeyDown(q)}},_resizeEditor:function(){var q=f.getBox(this.editor.ownerDocument);r.setMarginBox(this.editor.domNode,{w:q.w,h:q.h});var w=this.editor.getHeaderHeight(),t=this.editor.getFooterHeight(),v=r.getPadBorderExtents(this.editor.domNode),
y=r.getPadBorderExtents(this.editor.iframe.parentNode),z=r.getMarginExtents(this.editor.iframe.parentNode);w=q.h-(w+v.h+t);r.setMarginBox(this.editor.iframe.parentNode,{h:w,w:q.w});r.setMarginBox(this.editor.iframe,{h:w-(y.h+z.h)})},_getAltViewNode:function(){},_setFullScreen:function(q){var w=this.editor,t=w.ownerDocumentBody,v=w.domNode.parentNode,y=f.getBox(w.ownerDocument);if(this.isFullscreen=q){for(;v&&v!==t;)x.add(v,"dijitForceStatic"),v=v.parentNode;this._editorResizeHolder=this.editor.resize;
w.resize=function(){};w._fullscreen_oldOnKeyDown=w.onKeyDown;w.onKeyDown=d.hitch(this,this._containFocus);this._origState={};this._origiFrameState={};v=(q=w.domNode)&&q.style||{};this._origState={width:v.width||"",height:v.height||"",top:h.get(q,"top")||"",left:h.get(q,"left")||"",position:h.get(q,"position")||"static",marginBox:r.getMarginBox(w.domNode)};q=(q=w.iframe)&&q.style||{};v=h.get(w.iframe,"backgroundColor");this._origiFrameState={backgroundColor:v||"transparent",width:q.width||"auto",height:q.height||
"auto",zIndex:q.zIndex||""};h.set(w.domNode,{position:"absolute",top:"0px",left:"0px",zIndex:this.zIndex,width:y.w+"px",height:y.h+"px"});h.set(w.iframe,{height:"100%",width:"100%",zIndex:this.zIndex,backgroundColor:"transparent"!==v&&"rgba(0, 0, 0, 0)"!==v?v:"white"});h.set(w.iframe.parentNode,{height:"95%",width:"100%"});this._oldOverflow=t.style&&t.style.overflow?h.get(t,"overflow"):"";if(a("ie")&&!a("quirks")){if(t.parentNode&&t.parentNode.style&&t.parentNode.style.overflow)this._oldBodyParentOverflow=
t.parentNode.style.overflow;else try{this._oldBodyParentOverflow=h.get(t.parentNode,"overflow")}catch(G){this._oldBodyParentOverflow="scroll"}h.set(t.parentNode,"overflow","hidden")}h.set(t,"overflow","hidden");this._resizeHandle=b(window,"resize",d.hitch(this,function(){var G=f.getBox(w.ownerDocument);if("_prevW"in this&&"_prevH"in this){if(G.w===this._prevW&&G.h===this._prevH)return}else this._prevW=G.w,this._prevH=G.h;this._resizer&&(clearTimeout(this._resizer),delete this._resizer);this._resizer=
setTimeout(d.hitch(this,function(){delete this._resizer;this._resizeEditor()}),10)}));this._resizeHandle2=u.after(w,"onResize",d.hitch(this,function(){this._resizer&&(clearTimeout(this._resizer),delete this._resizer);this._resizer=setTimeout(d.hitch(this,function(){delete this._resizer;this._resizeEditor()}),10)}));this._resizeEditor();var z=this.editor.toolbar.domNode;setTimeout(function(){f.scrollIntoView(z)},250)}else{this._resizeHandle&&(this._resizeHandle.remove(),this._resizeHandle=null);this._resizeHandle2&&
(this._resizeHandle2.remove(),this._resizeHandle2=null);this._rst&&(clearTimeout(this._rst),this._rst=null);for(;v&&v!==t;)x.remove(v,"dijitForceStatic"),v=v.parentNode;this._editorResizeHolder&&(this.editor.resize=this._editorResizeHolder);if(this._origState||this._origiFrameState){w._fullscreen_oldOnKeyDown&&(w.onKeyDown=w._fullscreen_oldOnKeyDown,delete w._fullscreen_oldOnKeyDown);var C=this;setTimeout(function(){var G=C._origState.marginBox,B=C._origState.height;a("ie")&&!a("quirks")&&(t.parentNode.style.overflow=
C._oldBodyParentOverflow,delete C._oldBodyParentOverflow);h.set(t,"overflow",C._oldOverflow);delete C._oldOverflow;h.set(w.domNode,C._origState);h.set(w.iframe.parentNode,{height:"",width:""});h.set(w.iframe,C._origiFrameState);delete C._origState;delete C._origiFrameState;var D=l.getEnclosingWidget(w.domNode.parentNode);D&&D.resize?D.resize():(!B||0>B.indexOf("%"))&&setTimeout(d.hitch(this,function(){w.resize({h:G.h})}),0);f.scrollIntoView(C.editor.toolbar.domNode)},100)}}},updateState:function(){this.button.set("disabled",
this.get("disabled"))},destroy:function(){this._resizeHandle&&(this._resizeHandle.remove(),this._resizeHandle=null);this._resizeHandle2&&(this._resizeHandle2.remove(),this._resizeHandle2=null);this._resizer&&(clearTimeout(this._resizer),this._resizer=null);this.inherited(arguments)}});m.registry.fullScreen=m.registry.fullscreen=function(q){return new n({zIndex:"zIndex"in q?q.zIndex:500})};return n})},"dijit/_editor/plugins/ViewSource":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/i18n dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/window ../../focus ../_Plugin ../../form/ToggleButton ../.. ../../registry dojo/i18n!../nls/commands".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n,q){var w=x("dijit._editor.plugins.ViewSource",p,{stripScripts:!0,stripComments:!0,stripIFrames:!0,stripEventHandlers:!0,readOnly:!1,_fsPlugin:null,toggle:function(){f("webkit")&&(this._vsFocused=!0);this.button.set("checked",!this.button.get("checked"))},_initButton:function(){var t=d.getLocalization("dijit._editor","commands"),v=this.editor;this.button=new l({label:t.viewSource,ownerDocument:v.ownerDocument,dir:v.dir,lang:v.lang,showLabel:!1,iconClass:this.iconClassPrefix+
" "+this.iconClassPrefix+"ViewSource",tabIndex:"-1",onChange:a.hitch(this,"_showSource")});this.button.set("readOnly",!1)},setEditor:function(t){this.editor=t;this._initButton();this.removeValueFilterHandles();this._setValueFilterHandle=A.before(this.editor,"setValue",a.hitch(this,function(v){return[this._filter(v)]}));this._getValueFilterHandle=A.after(this.editor,"getValue",a.hitch(this,function(v){return this._filter(v)}));this.editor.addKeyHandler(b.F12,!0,!0,a.hitch(this,function(v){this.button.focus();
this.toggle();v.stopPropagation();v.preventDefault();setTimeout(a.hitch(this,function(){this.editor.focused&&this.editor.focus()}),100)}))},_showSource:function(t){var v=this.editor,y=v._plugins;this._sourceShown=t;var z=this;try{this.sourceArea||this._createSourceView();if(t)v._sourceQueryCommandEnabled=v.queryCommandEnabled,v.queryCommandEnabled=function(G){return"viewsource"===G.toLowerCase()},this.editor.onDisplayChanged(),u.forEach(y,function(G){!G||G instanceof w||!G.isInstanceOf(p)||G.set("disabled",
!0)}),this._fsPlugin&&(this._fsPlugin._getAltViewNode=function(){return z.sourceArea}),this.sourceArea.value=v.get("value"),this.sourceArea.style.height=v.iframe.style.height,this.sourceArea.style.width=v.iframe.style.width,v.iframe.parentNode.style.position="relative",g.set(v.iframe,{position:"absolute",top:0,visibility:"hidden"}),g.set(this.sourceArea,{display:"block"}),this._resizeHandle=c(window,"resize",a.hitch(this,function(){var G=k.getBox(v.ownerDocument);"_prevW"in this&&"_prevH"in this&&
G.w===this._prevW&&G.h===this._prevH||(this._prevW=G.w,this._prevH=G.h,this._resizer&&(clearTimeout(this._resizer),delete this._resizer),this._resizer=setTimeout(a.hitch(this,function(){delete this._resizer;this._resize()}),10))})),setTimeout(a.hitch(this,this._resize),100),this.editor.onNormalizedDisplayChanged(),this.editor.__oldGetValue=this.editor.getValue,this.editor.getValue=a.hitch(this,function(){var G=this.sourceArea.value;return G=this._filter(G)}),this._setListener=A.after(this.editor,
"setValue",a.hitch(this,function(G){this.sourceArea.value=G||""}),!0);else{if(!v._sourceQueryCommandEnabled)return;this._setListener.remove();delete this._setListener;this._resizeHandle.remove();delete this._resizeHandle;this.editor.__oldGetValue&&(this.editor.getValue=this.editor.__oldGetValue,delete this.editor.__oldGetValue);v.queryCommandEnabled=v._sourceQueryCommandEnabled;if(!this._readOnly){var C=this.sourceArea.value;v.beginEditing();v.set("value",C);v.endEditing()}u.forEach(y,function(G){G&&
G.isInstanceOf(p)&&G.set("disabled",!1)});g.set(this.sourceArea,"display","none");g.set(v.iframe,{position:"relative",visibility:"visible"});delete v._sourceQueryCommandEnabled;this.editor.onDisplayChanged()}setTimeout(a.hitch(this,function(){var G=v.domNode.parentNode;G&&(G=q.getEnclosingWidget(G))&&G.resize&&G.resize();v.resize()}),300)}catch(G){}},updateState:function(){this.button.set("disabled",this.get("disabled"))},_resize:function(){var t=this.editor,v=t.getHeaderHeight(),y=t.getFooterHeight(),
z=e.position(t.domNode),C=e.getPadBorderExtents(t.iframe.parentNode),G=e.getMarginExtents(t.iframe.parentNode),B=e.getPadBorderExtents(t.domNode),D=z.w-B.w;z=z.h-(v+B.h+y);this._fsPlugin&&this._fsPlugin.isFullscreen&&(t=k.getBox(t.ownerDocument),D=t.w-B.w,z=t.h-(v+B.h+y));e.setMarginBox(this.sourceArea,{w:Math.round(D-(C.w+G.w)),h:Math.round(z-(C.h+G.h))})},_createSourceView:function(){var t=this.editor,v=t._plugins;this.sourceArea=h.create("textarea");this.readOnly&&(r.set(this.sourceArea,"readOnly",
!0),this._readOnly=!0);g.set(this.sourceArea,{padding:"0px",margin:"0px",borderWidth:"0px",borderStyle:"none"});r.set(this.sourceArea,"aria-label",this.editor.id);h.place(this.sourceArea,t.iframe,"before");f("ie")&&t.iframe.parentNode.lastChild!==t.iframe&&g.set(t.iframe.parentNode.lastChild,{width:"0px",height:"0px",padding:"0px",margin:"0px",borderWidth:"0px",borderStyle:"none"});t._viewsource_oldFocus=t.focus;var y=this;t.focus=function(){if(y._sourceShown)y.setSourceAreaCaret();else try{this._vsFocused?
(delete this._vsFocused,m.focus(t.editNode)):t._viewsource_oldFocus()}catch(G){}};var z,C;for(z=0;z<v.length;z++)if((C=v[z])&&("dijit._editor.plugins.FullScreen"===C.declaredClass||C.declaredClass===n._scopeName+"._editor.plugins.FullScreen")){this._fsPlugin=C;break}this._fsPlugin&&(this._fsPlugin._viewsource_getAltViewNode=this._fsPlugin._getAltViewNode,this._fsPlugin._getAltViewNode=function(){return y._sourceShown?y.sourceArea:this._viewsource_getAltViewNode()});this.own(c(this.sourceArea,"keydown",
a.hitch(this,function(G){this._sourceShown&&G.keyCode==b.F12&&G.ctrlKey&&G.shiftKey&&(this.button.focus(),this.button.set("checked",!1),setTimeout(a.hitch(this,function(){t.focus()}),100),G.stopPropagation(),G.preventDefault())})))},_stripScripts:function(t){t&&(t=t.replace(/<\s*script[^>]*>((.|\s)*?)<\\?\/\s*script\s*>/ig,""),t=t.replace(/<\s*script\b([^<>]|\s)*>?/ig,""),t=t.replace(/<[^>]*=(\s|)*[("|')]javascript:[^$1][(\s|.)]*[$1][^>]*>/ig,""));return t},_stripComments:function(t){t&&(t=t.replace(/\x3c!--(.|\s){1,}?--\x3e/g,
""));return t},_stripIFrames:function(t){t&&(t=t.replace(/<\s*iframe[^>]*>((.|\s)*?)<\\?\/\s*iframe\s*>/ig,""));return t},_stripEventHandlers:function(t){if(t){var v=t.match(/<[a-z]+?\b(.*?on.*?(['"]).*?\2.*?)+>/gim);if(v)for(var y=0,z=v.length;y<z;y++){var C=v[y],G=C.replace(/\s+on[a-z]*\s*=\s*(['"])(.*?)\1/igm,"");t=t.replace(C,G)}}return t},_filter:function(t){t&&(this.stripScripts&&(t=this._stripScripts(t)),this.stripComments&&(t=this._stripComments(t)),this.stripIFrames&&(t=this._stripIFrames(t)),
this.stripEventHandlers&&(t=this._stripEventHandlers(t)));return t},removeValueFilterHandles:function(){this._setValueFilterHandle&&(this._setValueFilterHandle.remove(),delete this._setValueFilterHandle);this._getValueFilterHandle&&(this._getValueFilterHandle.remove(),delete this._getValueFilterHandle)},setSourceAreaCaret:function(){var t=this.sourceArea;m.focus(t);this._sourceShown&&!this.readOnly&&(t.setSelectionRange?t.setSelectionRange(0,0):this.sourceArea.createTextRange&&(t=t.createTextRange(),
t.collapse(!0),t.moveStart("character",-99999),t.moveStart("character",0),t.moveEnd("character",0),t.select()))},destroy:function(){this._resizer&&(clearTimeout(this._resizer),delete this._resizer);this._resizeHandle&&(this._resizeHandle.remove(),delete this._resizeHandle);this._setListener&&(this._setListener.remove(),delete this._setListener);this.removeValueFilterHandles();this.inherited(arguments)}});p.registry.viewSource=p.registry.viewsource=function(t){return new w({readOnly:"readOnly"in t?
t.readOnly:!1,stripComments:"stripComments"in t?t.stripComments:!0,stripScripts:"stripScripts"in t?t.stripScripts:!0,stripIFrames:"stripIFrames"in t?t.stripIFrames:!0,stripEventHandlers:"stripEventHandlers"in t?t.stripEventHandlers:!0})};return w})},"dojox/editor/plugins/InsertEntity":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/TooltipDialog dijit/form/DropDownButton dojo/_base/connect dojo/_base/declare dojo/i18n dojox/html/entities dojox/editor/plugins/EntityPalette dojo/i18n!dojox/editor/plugins/nls/InsertEntity".split(" "),
function(u,A,x,r){var h=u.declare("dojox.editor.plugins.InsertEntity",r,{iconClassPrefix:"dijitAdditionalEditorIcon",_initButton:function(){this.dropDown=new x.editor.plugins.EntityPalette({showCode:this.showCode,showEntityName:this.showEntityName});this.connect(this.dropDown,"onChange",function(g){this.button.closeDropDown();this.editor.focus();this.editor.execCommand("inserthtml",g)});var e=u.i18n.getLocalization("dojox.editor.plugins","InsertEntity");this.button=new A.form.DropDownButton({label:e.insertEntity,
showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"InsertEntity",tabIndex:"-1",dropDown:this.dropDown})},updateState:function(){this.button.set("disabled",this.get("disabled"))},setEditor:function(e){this.editor=e;this._initButton();this.editor.addKeyHandler("s",!0,!0,u.hitch(this,function(){this.button.openDropDown();this.dropDown.focus()}));e.contentPreFilters.push(this._preFilterEntities);e.contentPostFilters.push(this._postFilterEntities)},_preFilterEntities:function(e){return x.html.entities.decode(e,
x.html.entities.latin)},_postFilterEntities:function(e){return x.html.entities.encode(e,x.html.entities.latin)}});u.subscribe(A._scopeName+".Editor.getPlugin",null,function(e){e.plugin||"insertentity"!==(e.args.name?e.args.name.toLowerCase():"")||(e.plugin=new h({showCode:"showCode"in e.args?e.args.showCode:!1,showEntityName:"showEntityName"in e.args?e.args.showEntityName:!1}))});return h})},"dojox/html/entities":function(){define(["dojo/_base/lang"],function(u){var A=u.getObject("dojox.html.entities",
!0),x=function(h,e){if(e._encCache&&e._encCache.regexp&&e._encCache.mapper&&e.length==e._encCache.length){var g=e._encCache.mapper;var d=e._encCache.regexp}else{g={};d=["["];var b;for(b=0;b<e.length;b++)g[e[b][0]]="\x26"+e[b][1]+";",d.push(e[b][0]);d.push("]");d=new RegExp(d.join(""),"g");e._encCache={mapper:g,regexp:d,length:e.length}}return h=h.replace(d,function(a){return g[a]})},r=function(h,e){if(e._decCache&&e._decCache.regexp&&e._decCache.mapper&&e.length==e._decCache.length){var g=e._decCache.mapper;
var d=e._decCache.regexp}else{g={};d=["("];var b;for(b=0;b<e.length;b++){var a="\x26"+e[b][1]+";";b&&d.push("|");g[a]=e[b][0];d.push(a)}d.push(")");d=new RegExp(d.join(""),"g");e._decCache={mapper:g,regexp:d,length:e.length}}return h=h.replace(d,function(c){return g[c]})};A.html=[["\x26","amp"],['"',"quot"],["\x3c","lt"],["\x3e","gt"],["\u00a0","nbsp"]];A.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"]];A.encode=function(h,e){h&&(e?h=x(h,e):(h=x(h,A.html),h=x(h,A.latin)));
return h};A.decode=function(h,e){h&&(e?h=r(h,e):(h=r(h,A.html),h=r(h,A.latin)));return h};return A})},"dojox/editor/plugins/EntityPalette":function(){define("dojo dijit dojox dijit/_Widget dijit/_TemplatedMixin dijit/_PaletteMixin dojo/_base/connect dojo/_base/declare dojo/i18n dojo/i18n!dojox/editor/plugins/nls/latinEntities".split(" "),function(u,A,x,r,h,e){u.experimental("dojox.editor.plugins.EntityPalette");A=u.declare("dojox.editor.plugins.EntityPalette",[r,h,e],{templateString:'\x3cdiv class\x3d"dojoxEntityPalette"\x3e\n\t\x3ctable\x3e\n\t\t\x3ctbody\x3e\n\t\t\t\x3ctr\x3e\n\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\x3ctable class\x3d"dijitPaletteTable"\x3e\n\t\t\t\t\t\t\x3ctbody dojoAttachPoint\x3d"gridNode"\x3e\x3c/tbody\x3e\n\t\t\t\t   \x3c/table\x3e\n\t\t\t\t\x3c/td\x3e\n\t\t\t\x3c/tr\x3e\n\t\t\t\x3ctr\x3e\n\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\x3ctable dojoAttachPoint\x3d"previewPane" class\x3d"dojoxEntityPalettePreviewTable"\x3e\n\t\t\t\t\t\t\x3ctbody\x3e\n\t\t\t\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\t\t\t\x3cth class\x3d"dojoxEntityPalettePreviewHeader"\x3ePreview\x3c/th\x3e\n\t\t\t\t\t\t\t\t\x3cth class\x3d"dojoxEntityPalettePreviewHeader" dojoAttachPoint\x3d"codeHeader"\x3eCode\x3c/th\x3e\n\t\t\t\t\t\t\t\t\x3cth class\x3d"dojoxEntityPalettePreviewHeader" dojoAttachPoint\x3d"entityHeader"\x3eName\x3c/th\x3e\n\t\t\t\t\t\t\t\t\x3cth class\x3d"dojoxEntityPalettePreviewHeader"\x3eDescription\x3c/th\x3e\n\t\t\t\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\t\t\t\x3ctd class\x3d"dojoxEntityPalettePreviewDetailEntity" dojoAttachPoint\x3d"previewNode"\x3e\x3c/td\x3e\n\t\t\t\t\t\t\t\t\x3ctd class\x3d"dojoxEntityPalettePreviewDetail" dojoAttachPoint\x3d"codeNode"\x3e\x3c/td\x3e\n\t\t\t\t\t\t\t\t\x3ctd class\x3d"dojoxEntityPalettePreviewDetail" dojoAttachPoint\x3d"entityNode"\x3e\x3c/td\x3e\n\t\t\t\t\t\t\t\t\x3ctd class\x3d"dojoxEntityPalettePreviewDetail" dojoAttachPoint\x3d"descNode"\x3e\x3c/td\x3e\n\t\t\t\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\t\t\x3c/tbody\x3e\n\t\t\t\t\t\x3c/table\x3e\n\t\t\t\t\x3c/td\x3e\n\t\t\t\x3c/tr\x3e\n\t\t\x3c/tbody\x3e\n\t\x3c/table\x3e\n\x3c/div\x3e',
baseClass:"dojoxEntityPalette",showPreview:!0,showCode:!1,showEntityName:!1,palette:"latin",dyeClass:"dojox.editor.plugins.LatinEntity",paletteClass:"editorLatinEntityPalette",cellClass:"dojoxEntityPaletteCell",postMixInProperties:function(){var g=u.i18n.getLocalization("dojox.editor.plugins","latinEntities"),d=0,b;for(b in g)d++;d=Math.floor(Math.sqrt(d));var a=0,c=[],f=[];for(b in g)a++,f.push(b),0===a%d&&(c.push(f),f=[]);0<f.length&&c.push(f);this._palette=c},buildRendering:function(){this.inherited(arguments);
var g=u.i18n.getLocalization("dojox.editor.plugins","latinEntities");this._preparePalette(this._palette,g);g=u.query(".dojoxEntityPaletteCell",this.gridNode);u.forEach(g,function(d){this.connect(d,"onmouseenter","_onCellMouseEnter")},this)},_onCellMouseEnter:function(g){this._displayDetails(g.target)},postCreate:function(){this.inherited(arguments);u.style(this.codeHeader,"display",this.showCode?"":"none");u.style(this.codeNode,"display",this.showCode?"":"none");u.style(this.entityHeader,"display",
this.showEntityName?"":"none");u.style(this.entityNode,"display",this.showEntityName?"":"none");this.showPreview||u.style(this.previewNode,"display","none")},_setCurrent:function(g){this.inherited(arguments);this.showPreview&&this._displayDetails(g)},_displayDetails:function(g){var d=this._getDye(g);d?(g=d.getValue(),d=d._alias,this.previewNode.innerHTML=g,this.codeNode.innerHTML="\x26amp;#"+parseInt(g.charCodeAt(0),10)+";",this.entityNode.innerHTML="\x26amp;"+d+";",g=u.i18n.getLocalization("dojox.editor.plugins",
"latinEntities"),this.descNode.innerHTML=g[d].replace("\n","\x3cbr\x3e")):(this.previewNode.innerHTML="",this.codeNode.innerHTML="",this.entityNode.innerHTML="",this.descNode.innerHTML="")}});A.LatinEntity=u.declare("dojox.editor.plugins.LatinEntity",null,{constructor:function(g){this._alias=g},getValue:function(){return"\x26"+this._alias+";"},fillCell:function(g){g.innerHTML=this.getValue()}});return A})},"dijit/_PaletteMixin":function(){define("dojo/_base/declare dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/keys dojo/_base/lang dojo/on ./_CssStateMixin ./a11yclick ./focus ./typematic".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c){return u("dijit._PaletteMixin",d,{defaultTimeout:500,timeoutChangeRate:.9,value:"",_selectedCell:-1,tabIndex:"0",cellClass:"dijitPaletteCell",dyeClass:null,_dyeFactory:function(f){return new ("string"==typeof this.dyeClass?e.getObject(this.dyeClass):this.dyeClass)(f)},_preparePalette:function(f,k){this._cells=[];var m=this._blankGif;this.own(g(this.gridNode,b,e.hitch(this,"_onCellClick")));for(var p=0;p<f.length;p++)for(var l=r.create("tr",{tabIndex:"-1",role:"row"},
this.gridNode),n=0;n<f[p].length;n++){var q=f[p][n];if(q){var w=this._dyeFactory(q,p,n,k[q]);q=r.create("td",{"class":this.cellClass,tabIndex:"-1",title:k[q],role:"gridcell"},l);w.fillCell(q,m);q.idx=this._cells.length;this._cells.push({node:q,dye:w})}}this._xDim=f[0].length;this._yDim=f.length;var t={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:this.isLeftToRight()?1:-1,LEFT_ARROW:this.isLeftToRight()?-1:1},v;for(v in t)this.own(c.addKeyListener(this.domNode,{keyCode:h[v],ctrlKey:!1,altKey:!1,
shiftKey:!1},this,function(){var y=t[v];return function(z){this._navigateByKey(y,z)}}(),this.timeoutChangeRate,this.defaultTimeout))},postCreate:function(){this.inherited(arguments);this._setCurrent(this._cells[0].node)},focus:function(){a.focus(this._currentFocus)},_onCellClick:function(f){for(var k=f.target;"TD"!=k.tagName;){if(!k.parentNode||k==this.gridNode)return;k=k.parentNode}var m=this._getDye(k).getValue();this._setCurrent(k);a.focus(k);this._setValueAttr(m,!0);f.stopPropagation();f.preventDefault()},
_setCurrent:function(f){"_currentFocus"in this&&A.set(this._currentFocus,"tabIndex","-1");(this._currentFocus=f)&&A.set(f,"tabIndex",this.tabIndex)},_setValueAttr:function(f,k){0<=this._selectedCell&&x.remove(this._cells[this._selectedCell].node,this.cellClass+"Selected");this._selectedCell=-1;if(f)for(var m=0;m<this._cells.length;m++)if(f==this._cells[m].dye.getValue()){this._selectedCell=m;x.add(this._cells[m].node,this.cellClass+"Selected");break}this._set("value",0<=this._selectedCell?f:null);
if(k||void 0===k)this.onChange(f)},onChange:function(){},_navigateByKey:function(f,k){if(-1!=k){var m=this._currentFocus.idx+f;m<this._cells.length&&-1<m&&(m=this._cells[m].node,this._setCurrent(m),this.defer(e.hitch(a,"focus",m)))}},_getDye:function(f){return this._cells[f.idx].dye}})})},"dojox/editor/plugins/TablePlugins":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/Color dojo/aspect dojo/dom-attr dojo/dom-style dijit/_editor/_Plugin dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/Dialog dijit/Menu dijit/MenuItem dijit/MenuSeparator dijit/ColorPalette dojox/widget/ColorPicker dojo/text!./resources/insertTable.html dojo/text!./resources/modifyTable.html dojo/i18n!./nls/TableDialog dijit/_base/popup dijit/popup dojo/_base/connect dijit/TooltipDialog dijit/form/Button dijit/form/DropDownButton dijit/form/TextBox dijit/form/FilteringSelect".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n,q,w){function t(I){return new y(I)}dojo.experimental("dojox.editor.plugins.TablePlugins");var v=u(g,{tablesConnected:!1,currentlyAvailable:!1,alwaysAvailable:!1,availableCurrentlySet:!1,initialized:!1,tableData:null,shiftKeyDown:!1,editorDomNode:null,undoEnabled:!0,refCount:0,doMixins:function(){dojo.mixin(this.editor,{getAncestorElement:function(I){return this._sCall("getAncestorElement",[I])},hasAncestorElement:function(I){return this._sCall("hasAncestorElement",
[I])},selectElement:function(I){this._sCall("selectElement",[I])},byId:function(I){return dojo.byId(I,this.document)},query:function(I,F,H){I=dojo.query(I,F||this.document);return H?I[0]:I}})},initialize:function(I){this.refCount++;I.customUndo=!0;this.initialized||(this.initialized=!0,this.editor=I,this.editor._tablePluginHandler=this,I.onLoadDeferred.addCallback(dojo.hitch(this,function(){this.editorDomNode=this.editor.editNode||this.editor.iframe.document.body.firstChild;this._myListeners=[dojo.connect(this.editorDomNode,
"mouseup",this.editor,"onClick"),dojo.connect(this.editor,"onDisplayChanged",this,"checkAvailable"),dojo.connect(this.editor,"onBlur",this,"checkAvailable"),dojo.connect(this.editor,"_saveSelection",this,function(){this._savedTableInfo=this.getTableInfo()}),dojo.connect(this.editor,"_restoreSelection",this,function(){delete this._savedTableInfo})];this.doMixins();this.connectDraggable()})))},getTableInfo:function(I){if(this._savedTableInfo)return this._savedTableInfo;I&&this._tempStoreTableData(!1);
if(this.tableData)return this.tableData;var F,H,K,L;if(F=this.editor.getAncestorElement("td"))var N=F.parentNode;if(H=this.editor.getAncestorElement("table")){var Q=dojo.query("td",H);Q.forEach(function(S,M){F==S&&(K=M)});I=dojo.query("tr",H);I.forEach(function(S,M){N==S&&(L=M)});var P=Q.length/I.length;I={tbl:H,td:F,tr:N,trs:I,tds:Q,rows:I.length,cols:P,tdIndex:K,trIndex:L,colIndex:K%P}}else I={};this.tableData=I;this._tempStoreTableData(500);return this.tableData},connectDraggable:function(){dojo.isIE&&
(this.editorDomNode.ondragstart=dojo.hitch(this,"onDragStart"),this.editorDomNode.ondragend=dojo.hitch(this,"onDragEnd"))},onDragStart:function(){var I=window.event;I.srcElement.id||(I.srcElement.id="tbl_"+(new Date).getTime())},onDragEnd:function(){var I=window.event.srcElement,F=I.id,H=this.editor.document;"table"==I.tagName.toLowerCase()&&setTimeout(function(){var K=dojo.byId(F,H);dojo.removeAttr(K,"align")},100)},checkAvailable:function(){if(this.availableCurrentlySet)return this.currentlyAvailable;
if(!this.editor)return!1;if(this.alwaysAvailable)return!0;(this.currentlyAvailable=this.editor.focused&&(this._savedTableInfo?this._savedTableInfo.tbl:this.editor.hasAncestorElement("table")))?this.connectTableKeys():this.disconnectTableKeys();this._tempAvailability(500);dojo.publish(this.editor.id+"_tablePlugins",[this.currentlyAvailable]);return this.currentlyAvailable},_prepareTable:function(I){I=this.editor.query("td",I);I[0].id||I.forEach(function(F,H){F.id||(F.id="tdid"+H+this.getTimeStamp())},
this);return I},getTimeStamp:function(){return(new Date).getTime()},_tempStoreTableData:function(I){!0!==I&&(!1===I?this.tableData=null:void 0!==I&&setTimeout(dojo.hitch(this,function(){this.tableData=null}),I))},_tempAvailability:function(I){!0===I?this.availableCurrentlySet=!0:!1===I?this.availableCurrentlySet=!1:void 0!==I&&(this.availableCurrentlySet=!0,setTimeout(dojo.hitch(this,function(){this.availableCurrentlySet=!1}),I))},connectTableKeys:function(){if(!this.tablesConnected){this.tablesConnected=
!0;var I=this.editor.iframe?this.editor.document:this.editor.editNode;this.cnKeyDn=dojo.connect(I,"onkeydown",this,"onKeyDown");this.cnKeyUp=dojo.connect(I,"onkeyup",this,"onKeyUp");this._myListeners.push(dojo.connect(I,"onkeypress",this,"onKeyUp"))}},disconnectTableKeys:function(){dojo.disconnect(this.cnKeyDn);dojo.disconnect(this.cnKeyUp);this.tablesConnected=!1},onKeyDown:function(I){var F=I.keyCode;16==F&&(this.shiftKeyDown=!0);9==F&&(F=this.getTableInfo(),F.tdIndex=this.shiftKeyDown?F.tdIndex-
1:tabTo=F.tdIndex+1,0<=F.tdIndex&&F.tdIndex<F.tds.length?(this.editor.selectElement(F.tds[F.tdIndex]),this.currentlyAvailable=!0,this._tempAvailability(!0),this._tempStoreTableData(!0),this.stopEvent=!0):(this.stopEvent=!1,this.onDisplayChanged()),this.stopEvent&&dojo.stopEvent(I))},onKeyUp:function(I){var F=I.keyCode;16==F&&(this.shiftKeyDown=!1);if(37==F||38==F||39==F||40==F)this.onDisplayChanged();9==F&&this.stopEvent&&dojo.stopEvent(I)},onDisplayChanged:function(){this.currentlyAvailable=!1;this._tempStoreTableData(!1);
this._tempAvailability(!1);this.checkAvailable()},uninitialize:function(I){this.editor==I&&(this.refCount--,!this.refCount&&this.initialized&&(this.tablesConnected&&this.disconnectTableKeys(),this.initialized=!1,dojo.forEach(this._myListeners,function(F){dojo.disconnect(F)}),delete this._myListeners,delete this.editor._tablePluginHandler,delete this.editor),this.inherited(arguments))}}),y=u("dojox.editor.plugins.TablePlugins",g,{iconClassPrefix:"editorIcon",useDefaultCommand:!1,buttonClass:dijit.form.Button,
commandName:"",label:"",alwaysAvailable:!1,undoEnabled:!0,onDisplayChanged:function(I){this.alwaysAvailable||(this.available=I,this.button.set("disabled",!this.available))},setEditor:function(I){this.editor=I;this.editor.customUndo=!0;this.inherited(arguments);this._availableTopic=dojo.subscribe(this.editor.id+"_tablePlugins",this,"onDisplayChanged");this.onEditorLoaded()},onEditorLoaded:function(){this.editor._tablePluginHandler?this.editor._tablePluginHandler.initialize(this.editor):(new v).initialize(this.editor)},
selectTable:function(){var I=this.getTableInfo();I&&I.tbl&&this.editor._sCall("selectElement",[I.tbl])},_initButton:function(){this.command=this.name;this.label=this.editor.commands[this.command]=this._makeTitle(this.command);this.inherited(arguments);delete this.command;this.connect(this.button,"onClick","modTable");this.onDisplayChanged(!1)},modTable:function(I,F){dojo.isIE&&this.editor.focus();this.begEdit();var H=this.getTableInfo(),K,L=!1;switch(dojo.isString(I)?I:this.name){case "insertTableRowBefore":var N=
H.tbl.insertRow(H.trIndex);for(K=0;K<H.cols;K++){var Q=N.insertCell(-1);Q.innerHTML="\x26nbsp;"}break;case "insertTableRowAfter":N=H.tbl.insertRow(H.trIndex+1);for(K=0;K<H.cols;K++)Q=N.insertCell(-1),Q.innerHTML="\x26nbsp;";break;case "insertTableColumnBefore":H.trs.forEach(function(P){Q=P.insertCell(H.colIndex);Q.innerHTML="\x26nbsp;"});L=!0;break;case "insertTableColumnAfter":H.trs.forEach(function(P){Q=P.insertCell(H.colIndex+1);Q.innerHTML="\x26nbsp;"});L=!0;break;case "deleteTableRow":H.tbl.deleteRow(H.trIndex);
break;case "deleteTableColumn":H.trs.forEach(function(P){P.deleteCell(H.colIndex)}),L=!0}L&&this.makeColumnsEven();this.endEdit()},begEdit:function(){this.editor._tablePluginHandler.undoEnabled&&(this.editor.customUndo?this.editor.beginEditing():this.valBeforeUndo=this.editor.getValue())},endEdit:function(){if(this.editor._tablePluginHandler.undoEnabled){if(this.editor.customUndo)this.editor.endEditing();else{var I=this.editor.getValue();this.editor.setValue(this.valBeforeUndo);this.editor.replaceValue(I)}this.editor.onDisplayChanged()}},
makeColumnsEven:function(){setTimeout(dojo.hitch(this,function(){var I=this.getTableInfo(!0),F=Math.floor(100/I.cols);I.tds.forEach(function(H){dojo.attr(H,"width",F+"%")})}),10)},getTableInfo:function(I){return this.editor._tablePluginHandler.getTableInfo(I)},_makeTitle:function(I){this._strings=dojo.i18n.getLocalization("dojox.editor.plugins","TableDialog");return this._strings[I+"Title"]||this._strings[I+"Label"]||I},getSelectedCells:function(){var I=[],F=this.getTableInfo().tbl;this.editor._tablePluginHandler._prepareTable(F);
var H=this.editor;F=H._sCall("getSelectedHtml",[null]).match(/id="*\w*"*/g);dojo.forEach(F,function(K){K=K.substring(3,K.length);'"'==K.charAt(0)&&'"'==K.charAt(K.length-1)&&(K=K.substring(1,K.length-1));(K=H.byId(K))&&"td"==K.tagName.toLowerCase()&&I.push(K)},this);if(!I.length&&(F=dijit.range.getSelection(H.window),F.rangeCount))for(F=F.getRangeAt(0).startContainer;F&&F!=H.editNode&&F!=H.document;){if(1===F.nodeType&&"td"===(F.tagName?F.tagName.toLowerCase():""))return[F];F=F.parentNode}return I},
updateState:function(){this.button&&(!this.available&&!this.alwaysAvailable||this.get("disabled")?this.button.set("disabled",!0):this.button.set("disabled",!1))},destroy:function(){this.inherited(arguments);dojo.unsubscribe(this._availableTopic);this.editor._tablePluginHandler.uninitialize(this.editor)}}),z=u(y,{constructor:function(){this.connect(this,"setEditor",function(I){I.onLoadDeferred.addCallback(dojo.hitch(this,function(){this._createContextMenu()}));this.button.domNode.style.display="none"})},
destroy:function(){this.menu&&(this.menu.destroyRecursive(),delete this.menu);this.inherited(arguments)},_initButton:function(){this.inherited(arguments);"tableContextMenu"===this.name&&(this.button.domNode.display="none")},_createContextMenu:function(){var I=new f({targetNodeIds:[this.editor.iframe]});I.addChild(new k({label:w.selectTableLabel,onClick:dojo.hitch(this,"selectTable")}));I.addChild(new m);I.addChild(new k({label:w.insertTableRowBeforeLabel,onClick:dojo.hitch(this,"modTable","insertTableRowBefore")}));
I.addChild(new k({label:w.insertTableRowAfterLabel,onClick:dojo.hitch(this,"modTable","insertTableRowAfter")}));I.addChild(new k({label:w.insertTableColumnBeforeLabel,onClick:dojo.hitch(this,"modTable","insertTableColumnBefore")}));I.addChild(new k({label:w.insertTableColumnAfterLabel,onClick:dojo.hitch(this,"modTable","insertTableColumnAfter")}));I.addChild(new m);I.addChild(new k({label:w.deleteTableRowLabel,onClick:dojo.hitch(this,"modTable","deleteTableRow")}));I.addChild(new k({label:w.deleteTableColumnLabel,
onClick:dojo.hitch(this,"modTable","deleteTableColumn")}));this.menu=I}}),C=u("dojox.editor.plugins.EditorTableDialog",[c,b,a],{baseClass:"EditorTableDialog",templateString:n,postMixInProperties:function(){dojo.mixin(this,w);this.inherited(arguments)},postCreate:function(){dojo.addClass(this.domNode,this.baseClass);this.inherited(arguments)},onInsert:function(){var I=this.selectRow.get("value")||1,F=this.selectCol.get("value")||1,H=this.selectWidth.get("value"),K=this.selectWidthType.get("value"),
L=this.selectBorder.get("value"),N=this.selectPad.get("value"),Q=this.selectSpace.get("value"),P="tbl_"+(new Date).getTime();H='\x3ctable id\x3d"'+P+'"width\x3d"'+H+("percent"==K?"%":"")+'" border\x3d"'+L+'" cellspacing\x3d"'+Q+'" cellpadding\x3d"'+N+'"\x3e\n';for(K=0;K<I;K++){H+="\t\x3ctr\x3e\n";for(L=0;L<F;L++)H+='\t\t\x3ctd width\x3d"'+Math.floor(100/F)+'%"\x3e\x26nbsp;\x3c/td\x3e\n';H+="\t\x3c/tr\x3e\n"}H+="\x3c/table\x3e\x3cbr /\x3e";var S=dojo.connect(this,"onHide",function(){dojo.disconnect(S);
var M=this;setTimeout(function(){M.destroyRecursive()},10)});this.hide();this.onBuildTable({htmlText:H,id:P})},onCancel:function(){var I=dojo.connect(this,"onHide",function(){dojo.disconnect(I);var F=this;setTimeout(function(){F.destroyRecursive()},10)})},onBuildTable:function(I){}}),G=u("dojox.editor.plugins.InsertTable",y,{alwaysAvailable:!0,modTable:function(){var I=new C({});I.show();var F=dojo.connect(I,"onBuildTable",this,function(H){dojo.disconnect(F);this.editor.focus();this.editor.execCommand("inserthtml",
H.htmlText)})}}),B=u([c,b,a],{baseClass:"EditorTableDialog",table:null,tableAtts:{},templateString:q,postMixInProperties:function(){dojo.mixin(this,w);this.inherited(arguments)},postCreate:function(){dojo.addClass(this.domNode,this.baseClass);this.inherited(arguments);var I=new this.colorPicker({params:this.params});this.connect(I,"onChange",function(L){this._started&&(dijit.popup.close(I),this.setBrdColor(L))});this.connect(I,"onBlur",function(){dijit.popup.close(I)});this.connect(this.borderCol,
"click",function(){I.set("value",this.brdColor,!1);dijit.popup.open({popup:I,around:this.borderCol});I.focus()});var F=new this.colorPicker({params:this.params});this.connect(F,"onChange",function(L){this._started&&(dijit.popup.close(F),this.setBkColor(L))});this.connect(F,"onBlur",function(){dijit.popup.close(F)});this.connect(this.backgroundCol,"click",function(){F.set("value",this.bkColor,!1);dijit.popup.open({popup:F,around:this.backgroundCol});F.focus()});this.own(I,F);this.pickers=[I,F];this.setBrdColor(e.get(this.table,
"borderColor"));this.setBkColor(e.get(this.table,"backgroundColor"));var H=h.get(this.table,"width");H||(H=this.table.style.width);var K="pixels";dojo.isString(H)&&-1<H.indexOf("%")&&(K="percent",H=H.replace(/%/,""));H?(this.selectWidth.set("value",H),this.selectWidthType.set("value",K)):(this.selectWidth.set("value",""),this.selectWidthType.set("value","percent"));this.selectBorder.set("value",h.get(this.table,"border"));this.selectPad.set("value",h.get(this.table,"cellPadding"));this.selectSpace.set("value",
h.get(this.table,"cellSpacing"));this.selectAlign.set("value",h.get(this.table,"align"))},startup:function(){A.forEach(this.pickers,function(I){I.startup()});this.inherited(arguments)},setBrdColor:function(I){this.brdColor=I;e.set(this.borderCol,"backgroundColor",I)},setBkColor:function(I){this.bkColor=I;e.set(this.backgroundCol,"backgroundColor",I)},onSet:function(){e.set(this.table,"borderColor",this.brdColor);e.set(this.table,"backgroundColor",this.bkColor);this.selectWidth.get("value")&&(e.set(this.table,
"width",""),h.set(this.table,"width",this.selectWidth.get("value")+("pixels"==this.selectWidthType.get("value")?"":"%")));h.set(this.table,"border",this.selectBorder.get("value"));h.set(this.table,"cellPadding",this.selectPad.get("value"));h.set(this.table,"cellSpacing",this.selectSpace.get("value"));h.set(this.table,"align",this.selectAlign.get("value"));var I=dojo.connect(this,"onHide",function(){dojo.disconnect(I);var F=this;setTimeout(function(){F.destroyRecursive()},10)});this.hide()},onCancel:function(){var I=
dojo.connect(this,"onHide",function(){dojo.disconnect(I);var F=this;setTimeout(function(){F.destroyRecursive()},10)})},onSetTable:function(I){}}),D=u("dojox.editor.plugins.ModifyTable",y,{colorPicker:p,modTable:function(){if(this.editor._tablePluginHandler.checkAvailable()){var I=this.getTableInfo();I=new B({table:I.tbl,colorPicker:"string"===typeof this.colorPicker?require(this.colorPicker):this.colorPicker,params:this.params});I.show();this.connect(I,"onSetTable",function(F){var H=this.getTableInfo();
e.set(H.td,"backgroundColor",F)})}}}),E=u([d,b,a],{colorPicker:l,templateString:"\x3cdiv style\x3d'display: none; position: absolute; top: -10000; z-index: -10000'\x3e\x3cdiv dojoType\x3d'dijit.TooltipDialog' dojoAttachPoint\x3d'dialog' class\x3d'dojoxEditorColorPicker'\x3e\x3cdiv dojoAttachPoint\x3d'_colorPicker'\x3e\x3c/div\x3e\x3cdiv style\x3d'margin: 0.5em 0em 0em 0em'\x3e\x3cbutton dojoType\x3d'dijit.form.Button' type\x3d'submit' dojoAttachPoint\x3d'_setButton'\x3e${buttonSet}\x3c/button\x3e\x26nbsp;\x3cbutton dojoType\x3d'dijit.form.Button' type\x3d'button' dojoAttachPoint\x3d'_cancelButton'\x3e${buttonCancel}\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e",
widgetsInTemplate:!0,constructor:function(){dojo.mixin(this,w)},postCreate:function(){this._colorPicker=new ("string"==typeof this.colorPicker?require(this.colorPicker):this.colorPicker)({params:this.params},this._colorPicker)},startup:function(){this._started||(this.inherited(arguments),this.connect(this.dialog,"execute",function(){this.onChange(this.get("value"))}),this.connect(this._cancelButton,"onClick",function(){dijit.popup.close(this.dialog)}),this.connect(this.dialog,"onCancel","onCancel"),
dojo.style(this.domNode,"display","block"))},_setValueAttr:function(I,F){this._colorPicker.set("value",I,F)},_getValueAttr:function(){return this._colorPicker.get("value")},onChange:function(I){},onCancel:function(){}}),J=u("dojox.editor.plugins.ColorTableCell",y,{colorPicker:l,constructor:function(){this.closable=!0;this.buttonClass=dijit.form.DropDownButton;var I=this,F={colorPicker:this.colorPicker,params:this.params};if(this.dropDown){var H=this.dropDown;H.set(F)}else H=new E(F),H.startup(),this.dropDown=
H.dialog;this.connect(H,"onChange",function(K){this.editor.focus();this.modTable(null,K)});this.connect(H,"onCancel",function(){this.editor.focus()});r.before(this.dropDown,"onOpen",function(){var K=I.getTableInfo();if((K=I.getSelectedCells(K.tbl))&&0<K.length){K=K[0]===I.lastObject?K[0]:K[K.length-1];for(var L;K&&K!==I.editor.document&&("transparent"===(L=dojo.style(K,"backgroundColor"))||0===L.indexOf("rgba"));)K=K.parentNode;"transparent"!==L&&0!==L.indexOf("rgba")&&H.set("value",x.fromString(L).toHex())}});
this.connect(this,"setEditor",function(K){K.onLoadDeferred.addCallback(dojo.hitch(this,function(){this.connect(this.editor.editNode,"onmouseup",function(L){this.lastObject=L.target})}))})},_initButton:function(){this.command=this.name;this.label=this.editor.commands[this.command]=this._makeTitle(this.command);this.inherited(arguments);delete this.command;this.onDisplayChanged(!1)},modTable:function(I,F){this.begEdit();var H=this.getTableInfo();H=this.getSelectedCells(H.tbl);dojo.forEach(H,function(K){dojo.style(K,
"backgroundColor",F)});this.endEdit()}});g.registry.insertTableRowBefore=t;g.registry.insertTableRowAfter=t;g.registry.insertTableColumnBefore=t;g.registry.insertTableColumnAfter=t;g.registry.deleteTableRow=t;g.registry.deleteTableColumn=t;g.registry.colorTableCell=function(I){return new J(I)};g.registry.modifyTable=function(I){return new D(I)};g.registry.insertTable=function(I){return new G(I)};g.registry.tableContextMenu=function(I){return new z(I)};return y})},"dijit/ColorPalette":function(){define("require dojo/text!./templates/ColorPalette.html ./_Widget ./_TemplatedMixin ./_PaletteMixin ./hccss dojo/i18n dojo/_base/Color dojo/_base/declare dojo/dom-construct dojo/string dojo/i18n!dojo/nls/colors dojo/colors".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c){var f=b("dijit.ColorPalette",[x,r,h],{palette:"7x10",_palettes:{"7x10":["white seashell cornsilk lemonchiffon lightyellow palegreen paleturquoise lightcyan lavender plum".split(" "),"lightgray pink bisque moccasin khaki lightgreen lightseagreen lightskyblue cornflowerblue violet".split(" "),"silver lightcoral sandybrown orange palegoldenrod chartreuse mediumturquoise skyblue mediumslateblue orchid".split(" "),"gray red orangered darkorange yellow limegreen darkseagreen royalblue slateblue mediumorchid".split(" "),
"dimgray crimson chocolate coral gold forestgreen seagreen blue blueviolet darkorchid".split(" "),"darkslategray firebrick saddlebrown sienna olive green darkcyan mediumblue darkslateblue darkmagenta".split(" "),"black darkred maroon brown darkolivegreen darkgreen midnightblue navy indigo purple".split(" ")],"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},templateString:A,baseClass:"dijitColorPalette",_dyeFactory:function(k,m,p,l){return new this._dyeClass(k,
m,p,l)},buildRendering:function(){this.inherited(arguments);this._dyeClass=b(f._Color,{palette:this.palette});this._preparePalette(this._palettes[this.palette],g.getLocalization("dojo","colors",this.lang))}});f._Color=b("dijit._Color",d,{template:"\x3cspan class\x3d'dijitInline dijitPaletteImg'\x3e\x3cimg src\x3d'${blankGif}' alt\x3d'${alt}' title\x3d'${title}' class\x3d'dijitColorPaletteSwatch' style\x3d'background-color: ${color}'/\x3e\x3c/span\x3e",hcTemplate:"\x3cspan class\x3d'dijitInline dijitPaletteImg' style\x3d'position: relative; overflow: hidden; height: 12px; width: 14px;'\x3e\x3cimg src\x3d'${image}' alt\x3d'${alt}' title\x3d'${title}' style\x3d'position: absolute; left: ${left}px; top: ${top}px; ${size}'/\x3e\x3c/span\x3e",
_imagePaths:{"7x10":u.toUrl("./themes/a11y/colors7x10.png"),"3x4":u.toUrl("./themes/a11y/colors3x4.png")},constructor:function(k,m,p,l){this._title=l;this._row=m;this._col=p;this.setColor(d.named[k])},getValue:function(){return this.toHex()},fillCell:function(k,m){var p=c.substitute(e("highcontrast")?this.hcTemplate:this.template,{color:this.toHex(),blankGif:m,alt:this._title,title:this._title,image:this._imagePaths[this.palette].toString(),left:-20*this._col-5,top:-20*this._row-5,size:"7x10"==this.palette?
"height: 145px; width: 206px":"height: 64px; width: 86px"});a.place(p,k)}});return f})},"dojox/widget/ColorPicker":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/html dojo/_base/connect dojo/_base/sniff dojo/_base/window dojo/_base/event dojo/dom dojo/dom-class dojo/keys dojo/fx dojo/dnd/move dijit/registry dijit/_base/focus dijit/form/_FormWidget dijit/typematic dojox/color dojo/i18n dojo/i18n!./nls/ColorPicker dojo/i18n!dojo/cldr/nls/number dojo/text!./ColorPicker/ColorPicker.html".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n,q,w,t,v,y,z){u.experimental("dojox.widget.ColorPicker");return A("dojox.widget.ColorPicker",n,{showRgb:!0,showHsv:!0,showHex:!0,webSafe:!0,animatePoint:!0,slideDuration:250,liveUpdate:!1,PICKER_HUE_H:150,PICKER_SAT_VAL_H:150,PICKER_SAT_VAL_W:150,PICKER_HUE_SELECTOR_H:8,PICKER_SAT_SELECTOR_H:10,PICKER_SAT_SELECTOR_W:10,value:"#ffffff",_underlay:require.toUrl("dojox/widget/ColorPicker/images/underlay.png"),_hueUnderlay:require.toUrl("dojox/widget/ColorPicker/images/hue.png"),
_pickerPointer:require.toUrl("dojox/widget/ColorPicker/images/pickerPointer.png"),_huePickerPointer:require.toUrl("dojox/widget/ColorPicker/images/hueHandle.png"),_huePickerPointerAlly:require.toUrl("dojox/widget/ColorPicker/images/hueHandleA11y.png"),templateString:z,postMixInProperties:function(){c.contains(d.body(),"dijit_a11y")&&(this._huePickerPointer=this._huePickerPointerAlly);this._uId=p.getUniqueId(this.id);x.mixin(this,t.getLocalization("dojox.widget","ColorPicker"));x.mixin(this,t.getLocalization("dojo.cldr",
"number"));this.inherited(arguments)},postCreate:function(){this.inherited(arguments);7>g("ie")&&(this.colorUnderlay.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d'"+this._underlay+"', sizingMethod\x3d'scale')",this.colorUnderlay.src=this._blankGif.toString());this.showRgb||(this.rgbNode.style.visibility="hidden");this.showHsv||(this.hsvNode.style.visibility="hidden");this.showHex||(this.hexNode.style.visibility="hidden");this.webSafe||(this.safePreviewNode.style.visibility=
"hidden")},startup:function(){this._started||(this._started=!0,this.set("value",this.value),this._mover=new m.boxConstrainedMoveable(this.cursorNode,{box:{t:-(this.PICKER_SAT_SELECTOR_H/2),l:-(this.PICKER_SAT_SELECTOR_W/2),w:this.PICKER_SAT_VAL_W,h:this.PICKER_SAT_VAL_H}}),this._hueMover=new m.boxConstrainedMoveable(this.hueCursorNode,{box:{t:-(this.PICKER_HUE_SELECTOR_H/2),l:0,w:0,h:this.PICKER_HUE_H}}),this._subs=[],this._subs.push(e.subscribe("/dnd/move/stop",x.hitch(this,"_clearTimer"))),this._subs.push(e.subscribe("/dnd/move/start",
x.hitch(this,"_setTimer"))),this._keyListeners=[],this._connects.push(q.addKeyListener(this.hueCursorNode,{charOrCode:f.UP_ARROW,shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1},this,x.hitch(this,this._updateHueCursorNode),25,25)),this._connects.push(q.addKeyListener(this.hueCursorNode,{charOrCode:f.DOWN_ARROW,shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1},this,x.hitch(this,this._updateHueCursorNode),25,25)),this._connects.push(q.addKeyListener(this.cursorNode,{charOrCode:f.UP_ARROW,shiftKey:!1,metaKey:!1,
ctrlKey:!1,altKey:!1},this,x.hitch(this,this._updateCursorNode),25,25)),this._connects.push(q.addKeyListener(this.cursorNode,{charOrCode:f.DOWN_ARROW,shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1},this,x.hitch(this,this._updateCursorNode),25,25)),this._connects.push(q.addKeyListener(this.cursorNode,{charOrCode:f.LEFT_ARROW,shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1},this,x.hitch(this,this._updateCursorNode),25,25)),this._connects.push(q.addKeyListener(this.cursorNode,{charOrCode:f.RIGHT_ARROW,shiftKey:!1,
metaKey:!1,ctrlKey:!1,altKey:!1},this,x.hitch(this,this._updateCursorNode),25,25)))},_setValueAttr:function(C,G){this._started&&this.setColor(C,G)},setColor:function(C,G){C=w.fromString(C);this._updatePickerLocations(C);this._updateColorInputs(C);this._updateValue(C,G)},_setTimer:function(C){if(C.node==this.cursorNode||C.node==this.hueCursorNode)l.focus(C.node),a.setSelectable(this.domNode,!1),this._timer=setInterval(x.hitch(this,"_updateColor"),45)},_clearTimer:function(C){this._timer&&(clearInterval(this._timer),
this._timer=null,this.onChange(this.value),a.setSelectable(this.domNode,!0))},_setHue:function(C){h.style(this.colorUnderlay,"backgroundColor",w.fromHsv(C,100,100).toHex())},_updateHueCursorNode:function(C,G,B){if(-1!==C){C=h.style(this.hueCursorNode,"top");G=this.PICKER_HUE_SELECTOR_H/2;C+=G;var D=!1;B.charOrCode==f.UP_ARROW?0<C&&(--C,D=!0):B.charOrCode==f.DOWN_ARROW&&C<this.PICKER_HUE_H&&(C+=1,D=!0);D&&h.style(this.hueCursorNode,"top",C-G+"px")}else this._updateColor(!0)},_updateCursorNode:function(C,
G,B){G=this.PICKER_SAT_SELECTOR_H/2;var D=this.PICKER_SAT_SELECTOR_W/2;if(-1!==C){C=h.style(this.cursorNode,"top");var E=h.style(this.cursorNode,"left");C+=G;E+=D;var J=!1;B.charOrCode==f.UP_ARROW?0<C&&(--C,J=!0):B.charOrCode==f.DOWN_ARROW?C<this.PICKER_SAT_VAL_H&&(C+=1,J=!0):B.charOrCode==f.LEFT_ARROW?0<E&&(--E,J=!0):B.charOrCode==f.RIGHT_ARROW&&E<this.PICKER_SAT_VAL_W&&(E+=1,J=!0);J&&(E-=D,h.style(this.cursorNode,"top",C-G+"px"),h.style(this.cursorNode,"left",E+"px"))}else this._updateColor(!0)},
_updateColor:function(C){var G=this.PICKER_HUE_SELECTOR_H/2,B=this.PICKER_SAT_SELECTOR_H/2,D=this.PICKER_SAT_SELECTOR_W/2;G=h.style(this.hueCursorNode,"top")+G;B=h.style(this.cursorNode,"top")+B;D=h.style(this.cursorNode,"left")+D;G=Math.round(360-G/this.PICKER_HUE_H*360);D=w.fromHsv(G,D/this.PICKER_SAT_VAL_W*100,100-B/this.PICKER_SAT_VAL_H*100);this._updateColorInputs(D);this._updateValue(D,C);G!=this._hue&&this._setHue(G)},_colorInputChange:function(C){var G=!1;switch(C.target){case this.hexCode:var B=
w.fromString(C.target.value);G=!0;break;case this.Rval:case this.Gval:case this.Bval:B=w.fromArray([this.Rval.value,this.Gval.value,this.Bval.value]);G=!0;break;case this.Hval:case this.Sval:case this.Vval:B=w.fromHsv(this.Hval.value,this.Sval.value,this.Vval.value),G=!0}G&&(this._updatePickerLocations(B),this._updateColorInputs(B),this._updateValue(B,!0))},_updateValue:function(C,G){var B=C.toHex();this.value=this.valueNode.value=B;if(G&&(!this._timer||this.liveUpdate))this.onChange(B)},_updatePickerLocations:function(C){var G=
this.PICKER_HUE_SELECTOR_H/2,B=this.PICKER_SAT_SELECTOR_H/2,D=this.PICKER_SAT_SELECTOR_W/2;C=C.toHsv();G=Math.round(this.PICKER_HUE_H-C.h/360*this.PICKER_HUE_H)-G;D=Math.round(C.s/100*this.PICKER_SAT_VAL_W)-D;B=Math.round(this.PICKER_SAT_VAL_H-C.v/100*this.PICKER_SAT_VAL_H)-B;this.animatePoint?(k.slideTo({node:this.hueCursorNode,duration:this.slideDuration,top:G,left:0}).play(),k.slideTo({node:this.cursorNode,duration:this.slideDuration,top:B,left:D}).play()):(h.style(this.hueCursorNode,"top",G+"px"),
h.style(this.cursorNode,{left:D+"px",top:B+"px"}));C.h!=this._hue&&this._setHue(C.h)},_updateColorInputs:function(C){var G=C.toHex();this.showRgb&&(this.Rval.value=C.r,this.Gval.value=C.g,this.Bval.value=C.b);this.showHsv&&(C=C.toHsv(),this.Hval.value=Math.round(C.h),this.Sval.value=Math.round(C.s),this.Vval.value=Math.round(C.v));this.showHex&&(this.hexCode.value=G);this.previewNode.style.backgroundColor=G;this.webSafe&&(this.safePreviewNode.style.backgroundColor=G)},_setHuePoint:function(C){var G=
this.PICKER_HUE_SELECTOR_H/2;C=C.layerY||C.y-C.target.getBoundingClientRect().top;C-=G;this.animatePoint?k.slideTo({node:this.hueCursorNode,duration:this.slideDuration,top:C,left:0,onEnd:x.hitch(this,function(){this._updateColor(!0);l.focus(this.hueCursorNode)})}).play():(h.style(this.hueCursorNode,"top",C+"px"),this._updateColor(!0))},_setPoint:function(C){var G=this.PICKER_SAT_SELECTOR_H/2,B=this.PICKER_SAT_SELECTOR_W/2,D=C.layerY||C.y-C.target.getBoundingClientRect().top;D-=G;G=C.layerX||C.x-C.target.getBoundingClientRect().left;
G-=B;C&&l.focus(C.target);this.animatePoint?k.slideTo({node:this.cursorNode,duration:this.slideDuration,top:D,left:G,onEnd:x.hitch(this,function(){this._updateColor(!0);l.focus(this.cursorNode)})}).play():(h.style(this.cursorNode,{left:G+"px",top:D+"px"}),this._updateColor(!0))},_handleKey:function(C){},focus:function(){this.focused||l.focus(this.focusNode)},_stopDrag:function(C){b.stop(C)},destroy:function(){this.inherited(arguments);r.forEach(this._subs,function(C){e.unsubscribe(C)});delete this._subs}})})},
"dojo/dnd/move":function(){define("../_base/declare ../dom-geometry ../dom-style ./common ./Mover ./Moveable".split(" "),function(u,A,x,r,h,e){r=u("dojo.dnd.move.constrainedMoveable",e,{constraints:function(){},within:!1,constructor:function(g,d){d||(d={});this.constraints=d.constraints;this.within=d.within},onFirstMove:function(g){var d=this.constraintBox=this.constraints.call(this,g);d.r=d.l+d.w;d.b=d.t+d.h;this.within&&(g=A.getMarginSize(g.node),d.r-=g.w,d.b-=g.h)},onMove:function(g,d){var b=this.constraintBox,
a=g.node.style;this.onMoving(g,d);d.l=d.l<b.l?b.l:b.r<d.l?b.r:d.l;d.t=d.t<b.t?b.t:b.b<d.t?b.b:d.t;a.left=d.l+"px";a.top=d.t+"px";this.onMoved(g,d)}});h=u("dojo.dnd.move.boxConstrainedMoveable",r,{box:{},constructor:function(g,d){var b=d&&d.box;this.constraints=function(){return b}}});u=u("dojo.dnd.move.parentConstrainedMoveable",r,{area:"content",constructor:function(g,d){var b=d&&d.area;this.constraints=function(){var a=this.node.parentNode,c=x.getComputedStyle(a),f=A.getMarginBox(a,c);if("margin"==
b)return f;var k=A.getMarginExtents(a,c);f.l+=k.l;f.t+=k.t;f.w-=k.w;f.h-=k.h;if("border"==b)return f;k=A.getBorderExtents(a,c);f.l+=k.l;f.t+=k.t;f.w-=k.w;f.h-=k.h;if("padding"==b)return f;k=A.getPadExtents(a,c);f.l+=k.l;f.t+=k.t;f.w-=k.w;f.h-=k.h;return f}}});return{constrainedMoveable:r,boxConstrainedMoveable:h,parentConstrainedMoveable:u}})},"dijit/_base/focus":function(){define("dojo/_base/array dojo/dom dojo/_base/lang dojo/topic dojo/_base/window ../focus ../selection ../main".split(" "),function(u,
A,x,r,h,e,g,d){e.focus=function(b){if(b){var a="node"in b?b.node:b,c=b.bookmark;b=b.openedForWindow;var f=c?c.isCollapsed:!1;if(a){var k="iframe"==a.tagName.toLowerCase()?a.contentWindow:a;if(k&&k.focus)try{k.focus()}catch(m){}e._onFocusNode(a)}if(c&&h.withGlobal(b||h.global,d.isCollapsed)&&!f){b&&b.focus();try{h.withGlobal(b||h.global,d.moveToBookmark,null,[c])}catch(m){}}}};e.watch("curNode",function(b,a,c){d._curFocus=c;d._prevFocus=a;c&&r.publish("focusNode",c)});e.watch("activeStack",function(b,
a,c){d._activeStack=c});e.on("widget-blur",function(b,a){r.publish("widgetBlur",b,a)});e.on("widget-focus",function(b,a){r.publish("widgetFocus",b,a)});x.mixin(d,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return d.getBookmark().isCollapsed},getBookmark:function(){return(h.global==window?g:new g.SelectionManager(h.global)).getBookmark()},moveToBookmark:function(b){return(h.global==window?g:new g.SelectionManager(h.global)).moveToBookmark(b)},getFocus:function(b,a){var c=!e.curNode||b&&
A.isDescendant(e.curNode,b.domNode)?d._prevFocus:e.curNode;return{node:c,bookmark:c&&c==e.curNode&&h.withGlobal(a||h.global,d.getBookmark),openedForWindow:a}},_activeStack:[],registerIframe:function(b){return e.registerIframe(b)},unregisterIframe:function(b){b&&b.remove()},registerWin:function(b,a){return e.registerWin(b,a)},unregisterWin:function(b){b&&b.remove()}});return d})},"dojox/color":function(){define(["./color/_base"],function(u){return u})},"dojox/color/_base":function(){define(["../main",
"dojo/_base/lang","dojo/_base/Color","dojo/colors"],function(u,A,x,r){u=A.getObject("color",!0,u);u.Color=x;u.blend=x.blendColors;u.fromRgb=x.fromRgb;u.fromHex=x.fromHex;u.fromArray=x.fromArray;u.fromString=x.fromString;u.greyscale=r.makeGrey;A.mixin(u,{fromCmy:function(h,e,g){A.isArray(h)?(e=h[1],g=h[2],h=h[0]):A.isObject(h)&&(e=h.m,g=h.y,h=h.c);return new x({r:Math.round(255*(1-h/100)),g:Math.round(255*(1-e/100)),b:Math.round(255*(1-g/100))})},fromCmyk:function(h,e,g,d){A.isArray(h)?(e=h[1],g=h[2],
d=h[3],h=h[0]):A.isObject(h)&&(e=h.m,g=h.y,d=h.b,h=h.c);d/=100;return new x({r:Math.round(255*(1-Math.min(1,h/100*(1-d)+d))),g:Math.round(255*(1-Math.min(1,e/100*(1-d)+d))),b:Math.round(255*(1-Math.min(1,g/100*(1-d)+d)))})},fromHsl:function(h,e,g){A.isArray(h)?(e=h[1],g=h[2],h=h[0]):A.isObject(h)&&(e=h.s,g=h.l,h=h.h);e/=100;for(g/=100;0>h;)h+=360;for(;360<=h;)h-=360;if(120>h){var d=(120-h)/60;var b=h/60;h=0}else 240>h?(d=0,b=(240-h)/60,h=(h-120)/60):(d=(h-240)/60,b=0,h=(360-h)/60);d=2*e*Math.min(d,
1)+(1-e);b=2*e*Math.min(b,1)+(1-e);h=2*e*Math.min(h,1)+(1-e);.5>g?(d*=g,b*=g,h*=g):(d=(1-g)*d+2*g-1,b=(1-g)*b+2*g-1,h=(1-g)*h+2*g-1);return new x({r:Math.round(255*d),g:Math.round(255*b),b:Math.round(255*h)})}});u.fromHsv=function(h,e,g){A.isArray(h)?(e=h[1],g=h[2],h=h[0]):A.isObject(h)&&(e=h.s,g=h.v,h=h.h);360==h&&(h=0);e/=100;g/=100;var d,b;if(0==e)var a=b=d=g;else{var c=h/60;h=Math.floor(c);var f=c-h;c=g*(1-e);var k=g*(1-e*f);e=g*(1-e*(1-f));switch(h){case 0:d=g;a=e;b=c;break;case 1:d=k;a=g;b=
c;break;case 2:d=c;a=g;b=e;break;case 3:d=c;a=k;b=g;break;case 4:d=e;a=c;b=g;break;case 5:d=g,a=c,b=k}}return new x({r:Math.round(255*d),g:Math.round(255*a),b:Math.round(255*b)})};A.extend(x,{toCmy:function(){return{c:Math.round(100*(1-this.r/255)),m:Math.round(100*(1-this.g/255)),y:Math.round(100*(1-this.b/255))}},toCmyk:function(){var h=this.r/255,e=this.g/255,g=this.b/255;var d=Math.min(1-h,1-e,1-g);return{c:Math.round((1-h-d)/(1-d)*100),m:Math.round((1-e-d)/(1-d)*100),y:Math.round((1-g-d)/(1-
d)*100),b:Math.round(100*d)}},toHsl:function(){var h=this.r/255,e=this.g/255,g=this.b/255,d=Math.min(h,g,e),b=Math.max(h,e,g),a=b-d,c=0,f=0;d=(d+b)/2;0<d&&1>d&&(f=a/(.5>d?2*d:2-2*d));0<a&&(b==h&&b!=e&&(c+=(e-g)/a),b==e&&b!=g&&(c+=2+(g-h)/a),b==g&&b!=h&&(c+=4+(h-e)/a),c*=60);return{h:c,s:Math.round(100*f),l:Math.round(100*d)}},toHsv:function(){var h=this.r/255,e=this.g/255,g=this.b/255,d=Math.max(h,e,g),b=d-Math.min(h,g,e),a=null,c=0==d?0:b/d;0==c?a=0:(a=h==d?60*(e-g)/b:e==d?120+60*(g-h)/b:240+60*
(h-e)/b,0>a&&(a+=360));return{h:a,s:Math.round(100*c),v:Math.round(100*d)}}});return u})},"dijit/_base/popup":function(){define(["dojo/dom-class","dojo/_base/window","../popup","../BackgroundIframe"],function(u,A,x){var r=x._createWrapper;x._createWrapper=function(e){e.declaredClass||(e={_popupWrapper:e.parentNode&&u.contains(e.parentNode,"dijitPopup")?e.parentNode:null,domNode:e,destroy:function(){},ownerDocument:e.ownerDocument,ownerDocumentBody:A.body(e.ownerDocument)});return r.call(this,e)};
var h=x.open;x.open=function(e){if(e.orient&&"string"!=typeof e.orient&&!("length"in e.orient)){var g=[],d;for(d in e.orient)g.push({aroundCorner:d,corner:e.orient[d]});e.orient=g}return h.call(this,e)};return x})},"dojox/editor/plugins/ResizeTableColumn":function(){define(["dojo","dijit","dojox","./TablePlugins"],function(u,A,x,r){var h=u.declare("dojox.editor.plugins.ResizeTableColumn",r,{constructor:function(){this.isLtr=this.dir?"ltr"==this.dir:u._isBodyLtr();this.ruleDiv=u.create("div",{style:"top: -10000px; z-index: 10001"},
u.body(),"last")},setEditor:function(e){function g(k,m){var p=u.query("\x3e td",k.parentNode);switch(m){case "first":return p[0]==k;case "last":return p[p.length-1]==k;default:return!1}}function d(k){for(k=k.nextSibling;k&&(!k.tagName||"td"!=k.tagName.toLowerCase());)k=k.nextSibling;return k}function b(k){for(;(k=k.parentNode)&&"table"!=k.tagName.toLowerCase(););return k}function a(k){for(var m=u.query("td",b(k)),p=m.length,l=0;l<p;l++)if(u.position(m[l]).x==u.position(k).x)return m[l];return null}
function c(k,m){function p(t,v){if(!v)return 0;if("medium"==v)return 1;if(v.slice&&"px"==v.slice(-2))return parseFloat(v);with(t){var y=style.left,z=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=v,v=style.pixelLeft}catch(C){v=0}style.left=y;runtimeStyle.left=z}return v}if(u.isIE){var l=k.currentStyle,n=p(k,l.borderLeftWidth),q=p(k,l.borderRightWidth),w=p(k,l.paddingLeft);l=p(k,l.paddingRight);k.style.width=m-n-q-w-l}else u.marginBox(k,{w:m})}var f=this.ruleDiv;this.editor=e;
this.editor.customUndo=!0;this.onEditorLoaded();e.onLoadDeferred.addCallback(u.hitch(this,function(){this.connect(this.editor.editNode,"onmousemove",function(k){var m=u.position(e.iframe,!0),p=m.x,l=k.clientX;if(this.isDragging){var n=this.activeCell;k=u.position(n);m=k.x;k=k.w;var q=d(n),w=u.position(b(n).parentNode);n=w.x;w=w.w;if(q){var t=u.position(q);var v=t.x;t=t.w}(this.isLtr&&(f.headerColumn&&q&&n<l&&l<m+k||!q&&m<l&&l<n+w||q&&m<l&&l<v+t)||!this.isLtr&&(f.headerColumn&&q&&n>l&&l>m||!q&&m+k>
l&&l>n||q&&m+k>l&&l>v))&&u.style(f,{left:p+l+"px"})}else if(v=k.target,v.tagName&&"td"==v.tagName.toLowerCase()){t=u.position(v);k=t.x;q=t.w;p=p+t.x-2;if(this.isLtr){if(f.headerColumn=!0,!g(v,"first")||l>k+q/2)p+=q,f.headerColumn=!1}else f.headerColumn=!1,g(v,"first")&&l>k+q/2&&(p+=q,f.headerColumn=!0);u.style(f,{position:"absolute",cursor:"col-resize",display:"block",width:"4px",backgroundColor:"transparent",top:m.y+t.y+"px",left:p+"px",height:t.h+"px"});this.activeCell=v}else u.style(f,{display:"none",
top:"-10000px"})});this.connect(f,"onmousedown",function(k){var m=u.position(e.iframe,!0),p=u.position(b(this.activeCell));this.isDragging=!0;u.style(e.editNode,{cursor:"col-resize"});u.style(f,{width:"1px",left:k.clientX+"px",top:m.y+p.y+"px",height:p.h+"px",backgroundColor:"#777"})});this.connect(f,"onmouseup",function(k){var m=this.activeCell,p=u.position(m),l=p.w,n=p.x;p=d(m);var q=u.position(e.iframe).x,w=b(m),t=u.position(w),v=w.getAttribute("cellspacing");k=k.clientX;var y=a(m),z;if(!v||0>
(v=parseInt(v,10)))v=2;if(p){var C=u.position(p);var G=C.x;C=C.w;var B=a(p)}this.isLtr?f.headerColumn?n=q+n+l-k:(n=k-q-n,p&&(z=q+G+C-k-v)):f.headerColumn?n=k-q-n:(n=q+n+l-k,p&&(z=k-q-G-v));this.isDragging=!1;c(y,n);p&&(f.headerColumn||c(B,z));(f.headerColumn&&g(m,"first")||g(m,"last"))&&u.marginBox(w,{w:t.w+n-l});c(y,u.position(m).w);p&&c(B,u.position(p).w);u.style(e.editNode,{cursor:"auto"});u.style(f,{display:"none",top:"-10000px"});this.activeCell=null})}))}});u.subscribe(A._scopeName+".Editor.getPlugin",
null,function(e){if(!e.plugin&&e.args&&e.args.command){var g=e.args.command.charAt(0).toLowerCase()+e.args.command.substring(1,e.args.command.length);"resizeTableColumn"==g&&(e.plugin=new h({commandName:g}))}});return h})},"dojox/editor/plugins/PasteFromWord":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/_base/manager dijit/_editor/RichText dijit/form/Button dijit/Dialog dojox/html/format dojo/_base/connect dojo/_base/declare dojo/i18n dojo/string dojo/i18n!dojox/editor/plugins/nls/PasteFromWord dojo/i18n!dijit/nls/common dojo/i18n!dijit/_editor/nls/commands".split(" "),
function(u,A,x,r){var h=u.declare("dojox.editor.plugins.PasteFromWord",r,{iconClassPrefix:"dijitAdditionalEditorIcon",width:"400px",height:"300px",_template:"\x3cdiv class\x3d'dijitPasteFromWordEmbeddedRTE'\x3e\x3cdiv style\x3d'width: ${width}; padding-top: 5px; padding-bottom: 5px;'\x3e${instructions}\x3c/div\x3e\x3cdiv id\x3d'${uId}_rte' style\x3d'width: ${width}; height: ${height}'\x3e\x3c/div\x3e\x3ctable style\x3d'width: ${width}' tabindex\x3d'-1'\x3e\x3ctbody\x3e\x3ctr\x3e\x3ctd align\x3d'center'\x3e\x3cbutton type\x3d'button' dojoType\x3d'dijit.form.Button' id\x3d'${uId}_paste'\x3e${paste}\x3c/button\x3e\x26nbsp;\x3cbutton type\x3d'button' dojoType\x3d'dijit.form.Button' id\x3d'${uId}_cancel'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e\x3c/div\x3e",
_filters:[{regexp:/(<meta\s*[^>]*\s*>)|(<\s*link\s* href="file:[^>]*\s*>)|(<\/?\s*\w+:[^>]*\s*>)/gi,handler:""},{regexp:/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,handler:""},{regexp:/(class="Mso[^"]*")|(\x3c!--(.|\s){1,}?--\x3e)/gi,handler:""},{regexp:/(<p[^>]*>\s*(&nbsp;|\u00A0)*\s*<\/p[^>]*>)|(<p[^>]*>\s*<font[^>]*>\s*(&nbsp;|\u00A0)*\s*<\/\s*font\s*>\s<\/p[^>]*>)/ig,handler:""},{regexp:/(style="[^"]*mso-[^;][^"]*")|(style="margin:\s*[^;"]*;")/gi,
handler:""},{regexp:/(<\s*script[^>]*>((.|\s)*?)<\\?\/\s*script\s*>)|(<\s*script\b([^<>]|\s)*>?)|(<[^>]*=(\s|)*[("|')]javascript:[^$1][(\s|.)]*[$1][^>]*>)/ig,handler:""},{regexp:/<(\/?)o:p[^>]*>/gi,handler:""}],_initButton:function(){this._filters=this._filters.slice(0);var e=u.i18n.getLocalization("dojox.editor.plugins","PasteFromWord");u.mixin(e,u.i18n.getLocalization("dijit","common"));u.mixin(e,u.i18n.getLocalization("dijit._editor","commands"));this.button=new A.form.Button({label:e.pasteFromWord,
showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"PasteFromWord",tabIndex:"-1",onClick:u.hitch(this,"_openDialog")});this._uId=A.getUniqueId(this.editor.id);e.uId=this._uId;e.width=this.width||"400px";e.height=this.height||"300px";this._dialog=(new A.Dialog({title:e.pasteFromWord})).placeAt(u.body());this._dialog.set("content",u.string.substitute(this._template,e));u.style(u.byId(this._uId+"_rte"),"opacity",.001);this.connect(A.byId(this._uId+"_paste"),"onClick","_paste");this.connect(A.byId(this._uId+
"_cancel"),"onClick","_cancel");this.connect(this._dialog,"onHide","_clearDialog")},updateState:function(){this.button.set("disabled",this.get("disabled"))},setEditor:function(e){this.editor=e;this._initButton()},_openDialog:function(){this._dialog.show();this._rte||setTimeout(u.hitch(this,function(){this._rte=new A._editor.RichText({height:this.height||"300px"},this._uId+"_rte");this._rte.startup();this._rte.onLoadDeferred.addCallback(u.hitch(this,function(){u.animateProperty({node:this._rte.domNode,
properties:{opacity:{start:.001,end:1}}}).play()}))}),100)},_paste:function(){var e=x.html.format.prettyPrint(this._rte.get("value"));this._dialog.hide();var g;for(g=0;g<this._filters.length;g++){var d=this._filters[g];e=e.replace(d.regexp,d.handler)}e=x.html.format.prettyPrint(e);this.editor.focus();this.editor.execCommand("inserthtml",e)},_cancel:function(){this._dialog.hide()},_clearDialog:function(){this._rte.set("value","")},destroy:function(){this._rte&&this._rte.destroy();this._dialog&&this._dialog.destroyRecursive();
delete this._dialog;delete this._rte;this.inherited(arguments)}});u.subscribe(A._scopeName+".Editor.getPlugin",null,function(e){e.plugin||"pastefromword"!==e.args.name.toLowerCase()||(e.plugin=new h({width:"width"in e.args?e.args.width:"400px",height:"height"in e.args?e.args.width:"300px"}))});return h})},"dojox/html/format":function(){define(["dojo/_base/kernel","./entities","dojo/_base/array","dojo/_base/window","dojo/_base/sniff"],function(u,A,x,r,h){var e=u.getObject("dojox.html.format",!0);e.prettyPrint=
function(g,d,b,a,c){var f=[],k=0,m=[],p="\t",l="",n=[],q,w=/[=]([^"']+?)(\s|>)/g,t=/style=("[^"]*"|'[^']*'|\S*)/gi,v=/[\w-]+=("[^"]*"|'[^']*'|\S*)/gi;if(d&&0<d&&10>d)for(p="",q=0;q<d;q++)p+=" ";d=r.doc.createElement("div");d.innerHTML=g;var y=A.encode,z=A.decode,C=d.ownerDocument.createElement("div"),G=function(F){F=F.cloneNode(!1);C.appendChild(F);F=C.innerHTML;C.innerHTML="";return F},B=function(){var F;for(F=0;F<k;F++)f.push(p)},D=function(){f.push("\n")},E=function(F){var H;F=F.split("\n");for(H=
0;H<F.length;H++)F[H]=u.trim(F[H]);F=F.join(" ");F=u.trim(F);if(""!==F){var K=[];if(b&&0<b){var L="";for(H=0;H<k;H++)L+=p;H=L.length;L=b;for(b>H&&(L-=H);F;)if(F.length>b){for(H=L;0<H&&" "!==F.charAt(H);H--);if(!H)for(H=L;H<F.length&&" "!==F.charAt(H);H++);var N=F.substring(0,H);N=u.trim(N);F=u.trim(F.substring(H==F.length?F.length:H+1,F.length));if(N){var Q="";for(H=0;H<k;H++)Q+=p;N=Q+N+"\n"}K.push(N)}else{Q="";for(H=0;H<k;H++)Q+=p;F=Q+F+"\n";K.push(F);F=null}return K.join("")}Q="";for(H=0;H<k;H++)Q+=
p;return F=Q+F+"\n"}return""},J=function(F){var H=F.nodeName.toLowerCase(),K=u.trim(G(F));F=K.substring(0,K.indexOf("\x3e")+1);F=F.replace(w,'\x3d"$1"$2');F=F.replace(t,function(N){var Q=N.substring(0,6);N=N.substring(6,N.length);var P=N.charAt(0);N=u.trim(N.substring(1,N.length-1));N=N.split(";");var S=[];x.forEach(N,function(R){if(R=u.trim(R))R=R.substring(0,R.indexOf(":")).toLowerCase()+R.substring(R.indexOf(":"),R.length),S.push(R)});S=S.sort();N=S.join("; ");var M=u.trim(N);return M&&";"!==M?
Q+P+(N+";")+P:""});var L=[];F=F.replace(v,function(N){L.push(u.trim(N));return""});L=L.sort();F="\x3c"+H;L.length&&(F+=" "+L.join(" "));-1!=K.indexOf("\x3c/")?(m.push(H),F+="\x3e"):(F=c?F+" /\x3e":F+"\x3e",m.push(!1));a:switch(H){case "a":case "b":case "strong":case "s":case "strike":case "i":case "u":case "em":case "sup":case "sub":case "span":case "font":case "big":case "cite":case "q":case "small":H=!0;break a;default:H=!1}n.push(H);l&&!H&&(f.push(E(l)),l="");H?l+=F:(B(),f.push(F),D(),k++)},I=
function(F){var H=F.childNodes;if(H){var K;for(K=0;K<H.length;K++){var L=H[K];if(1===L.nodeType){var N=u.trim(L.tagName.toLowerCase());if(!h("ie")||L.parentNode==F)if(!N||"/"!==N.charAt(0)){J(L);if("script"===N){N=f;var Q=N.push,P=void 0,S=P=void 0,M=void 0;if(M=L.innerHTML){M&&(M=M.replace(/&quot;/gi,'"'),M=M.replace(/&gt;/gi,"\x3e"),M=M.replace(/&lt;/gi,"\x3c"),M=M.replace(/&amp;/gi,"\x26"));L=0;var R=M.split("\n"),T=[];for(M=0;M<R.length;M++){var X=R[M],Z=-1<X.indexOf("\n");if(X=u.trim(X)){Z=L;
for(P=0;P<X.length;P++)S=X.charAt(P),"{"===S?L++:"}"===S&&(L--,Z=L);P="";for(S=0;S<k+Z;S++)P+=p;T.push(P+X+"\n")}else Z&&0===M&&T.push("\n")}M=T.join("")}Q.call(N,M)}else"pre"===N?(N=L.innerHTML,h("mozilla")&&(N=N.replace("\x3cbr\x3e","\n"),N=N.replace("\x3cpre\x3e",""),N=N.replace("\x3c/pre\x3e","")),"\n"!==N.charAt(N.length-1)&&(N+="\n"),f.push(N)):I(L);N=n.pop();l&&!N&&(f.push(E(l)),l="");(Q=m.pop())?(Q="\x3c/"+Q+"\x3e",N?l+=Q:(k--,B(),f.push(Q),D())):k--}}else 3===L.nodeType||4===L.nodeType?l+=
y(L.nodeValue,a):8===L.nodeType&&(N=z(L.nodeValue,a),B(),f.push("\x3c!--"),D(),k++,f.push(E(N)),k--,B(),f.push("--\x3e"),D())}}};I(d);l&&(f.push(E(l)),l="");return f.join("")};return e})},"dojox/editor/plugins/InsertAnchor":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/_base/manager dijit/_editor/range dijit/_Templated dijit/TooltipDialog dijit/form/ValidationTextBox dijit/form/Select dijit/form/Button dijit/form/DropDownButton dojo/_base/declare dojo/i18n dojo/string dojo/NodeList-dom dojox/editor/plugins/ToolbarLineBreak dojo/i18n!dojox/editor/plugins/nls/InsertAnchor dojo/i18n!dijit/nls/common".split(" "),
function(u,A,x,r){var h=u.declare("dojox.editor.plugins.InsertAnchor",r,{htmlTemplate:'\x3ca name\x3d"${anchorInput}" class\x3d"dijitEditorPluginInsertAnchorStyle"\x3e${textInput}\x3c/a\x3e',iconClassPrefix:"dijitAdditionalEditorIcon",_template:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_anchorInput'\x3e${anchor}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_anchorInput' name\x3d'anchorInput' intermediateChanges\x3d'true'\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_textInput' name\x3d'textInput' intermediateChanges\x3d'true'\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton dojoType\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton dojoType\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${cancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
_initButton:function(){var e=this,g=u.i18n.getLocalization("dojox.editor.plugins","InsertAnchor",this.lang),d=this.dropDown=new A.TooltipDialog({title:g.title,execute:u.hitch(this,"setValue"),onOpen:function(){e._onOpenDialog();A.TooltipDialog.prototype.onOpen.apply(this,arguments)},onCancel:function(){setTimeout(u.hitch(e,"_onCloseDialog"),0)}});this.button=new A.form.DropDownButton({label:g.insertAnchor,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"InsertAnchor",tabIndex:"-1",
dropDown:this.dropDown});g.id=A.getUniqueId(this.editor.id);this._uniqueId=g.id;this.dropDown.set("content",d.title+"\x3cdiv style\x3d'border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'\x3e\x3c/div\x3e"+u.string.substitute(this._template,g));d.startup();this._anchorInput=A.byId(this._uniqueId+"_anchorInput");this._textInput=A.byId(this._uniqueId+"_textInput");this._setButton=A.byId(this._uniqueId+"_setButton");this.connect(A.byId(this._uniqueId+"_cancelButton"),"onClick",function(){this.dropDown.onCancel()});
this._anchorInput&&this.connect(this._anchorInput,"onChange","_checkInput");this._textInput&&this.connect(this._anchorInput,"onChange","_checkInput");this.editor.contentDomPreFilters.push(u.hitch(this,this._preDomFilter));this.editor.contentDomPostFilters.push(u.hitch(this,this._postDomFilter));this._setup()},updateState:function(){this.button.set("disabled",this.get("disabled"))},setEditor:function(e){this.editor=e;this._initButton()},_checkInput:function(){var e=!0;this._anchorInput.isValid()&&
(e=!1);this._setButton.set("disabled",e)},_setup:function(){this.editor.onLoadDeferred.addCallback(u.hitch(this,function(){this.connect(this.editor.editNode,"ondblclick",this._onDblClick);setTimeout(u.hitch(this,function(){this._applyStyles()}),100)}))},getAnchorStyle:function(){var e=u.moduleUrl(x._scopeName,"editor/plugins/resources").toString();if(!e.match(/^https?:\/\//i)&&!e.match(/^file:\/\//i)){var g="/"===e.charAt(0)?u.doc.location.protocol+"//"+u.doc.location.host:this._calcBaseUrl(u.global.location.href);
"/"!==g[g.length-1]&&"/"!==e.charAt(0)&&(g+="/");e=g+e}return"@media screen {\n\t.dijitEditorPluginInsertAnchorStyle {\n\t\tbackground-image: url({MODURL}/images/anchor.gif);\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: top left;\n\t\tborder-width: 1px;\n\t\tborder-style: dashed;\n\t\tborder-color: #D0D0D0;\n\t\tpadding-left: 20px;\n\t}\n}\n".replace(/\{MODURL\}/gi,e)},_applyStyles:function(){if(!this._styled)try{this._styled=!0;var e=this.editor.document,g=this.getAnchorStyle();if(u.isIE)e.createStyleSheet("").cssText=
g;else{var d=e.createElement("style");d.appendChild(e.createTextNode(g));e.getElementsByTagName("head")[0].appendChild(d)}}catch(b){}},_calcBaseUrl:function(e){var g=null;null!==e&&(g=e.indexOf("?"),-1!=g&&(e=e.substring(0,g)),g=e.lastIndexOf("/"),g=0<g&&g<e.length?e.substring(0,g):e);return g},_checkValues:function(e){e&&(e.anchorInput&&(e.anchorInput=e.anchorInput.replace(/"/g,"\x26quot;")),e.textInput||(e.textInput="\x26nbsp;"));return e},setValue:function(e){this._onCloseDialog();if(!this.editor.window.getSelection){var g=
A.range.getSelection(this.editor.window).getRangeAt(0).endContainer;3===g.nodeType&&(g=g.parentNode);g&&g.nodeName&&"a"!==g.nodeName.toLowerCase()&&(g=this.editor._sCall("getSelectedElement",["a"]));g&&g.nodeName&&"a"===g.nodeName.toLowerCase()&&this.editor.queryCommandEnabled("unlink")&&(this.editor._sCall("selectElementChildren",[g]),this.editor.execCommand("unlink"))}e=this._checkValues(e);this.editor.execCommand("inserthtml",u.string.substitute(this.htmlTemplate,e))},_onCloseDialog:function(){this.editor.focus()},
_getCurrentValues:function(e){if(e&&"a"===e.tagName.toLowerCase()&&u.attr(e,"name")){var g=u.attr(e,"name");var d=e.textContent||e.innerText;this.editor._sCall("selectElement",[e,!0])}else d=this.editor._sCall("getSelectedText");return{anchorInput:g||"",textInput:d||""}},_onOpenDialog:function(){if(this.editor.window.getSelection)var e=this.editor._sCall("getAncestorElement",["a"]);else e=A.range.getSelection(this.editor.window).getRangeAt(0).endContainer,3===e.nodeType&&(e=e.parentNode),e&&e.nodeName&&
"a"!==e.nodeName.toLowerCase()&&(e=this.editor._sCall("getSelectedElement",["a"]));this.dropDown.reset();this._setButton.set("disabled",!0);this.dropDown.set("value",this._getCurrentValues(e))},_onDblClick:function(e){e&&e.target&&(e=e.target,"a"===(e.tagName?e.tagName.toLowerCase():"")&&u.attr(e,"name")&&(this.editor.onDisplayChanged(),this.editor._sCall("selectElement",[e]),setTimeout(u.hitch(this,function(){this.button.set("disabled",!1);this.button.openDropDown();this.button.dropDown.focus&&this.button.dropDown.focus()}),
10)))},_preDomFilter:function(e){u.query("a[name]:not([href])",this.editor.editNode).addClass("dijitEditorPluginInsertAnchorStyle")},_postDomFilter:function(e){e&&u.query("a[name]:not([href])",e).removeClass("dijitEditorPluginInsertAnchorStyle");return e}});u.subscribe(A._scopeName+".Editor.getPlugin",null,function(e){if(!e.plugin){var g=e.args.name;g&&(g=g.toLowerCase());"insertanchor"===g&&(e.plugin=new h)}});return h})},"dijit/_Templated":function(){define("./_WidgetBase ./_TemplatedMixin ./_WidgetsInTemplateMixin dojo/_base/array dojo/_base/declare dojo/_base/lang dojo/_base/kernel".split(" "),
function(u,A,x,r,h,e,g){e.extend(u,{waiRole:"",waiState:""});return h("dijit._Templated",[A,x],{constructor:function(){g.deprecated(this.declaredClass+": dijit._Templated deprecated, use dijit._TemplatedMixin and if necessary dijit._WidgetsInTemplateMixin","","2.0")},_processNode:function(d,b){var a=this.inherited(arguments),c=b(d,"waiRole");c&&d.setAttribute("role",c);(c=b(d,"waiState"))&&r.forEach(c.split(/\s*,\s*/),function(f){-1!=f.indexOf("-")&&(f=f.split("-"),d.setAttribute("aria-"+f[0],f[1]))});
return a}})})},"dijit/form/Select":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/i18n dojo/keys dojo/_base/lang dojo/on dojo/sniff ./_FormSelectWidget ../_HasDropDown ../DropDownMenu ../MenuItem ../MenuSeparator ../Tooltip ../_KeyNavMixin ../registry dojo/text!./templates/Select.html dojo/i18n!./nls/validate".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n,q,w){function t(y){return function(z){this._isLoaded?this.inherited(y,arguments):
this.loadDropDown(d.hitch(this,y,z))}}var v=A("dijit.form._SelectMenu",k,{autoFocus:!0,buildRendering:function(){this.inherited(arguments);this.domNode.setAttribute("role","listbox")},postCreate:function(){this.inherited(arguments);this.own(b(this.domNode,"selectstart",function(y){y.preventDefault();y.stopPropagation()}))},focus:function(){var y=!1,z=this.parentWidget.value;d.isArray(z)&&(z=z[z.length-1]);z&&u.forEach(this.parentWidget._getChildren(),function(C){C.option&&z===C.option.value&&(y=!0,
this.focusChild(C,!1))},this);y||this.inherited(arguments)}});h=A("dijit.form.Select"+(a("dojo-bidi")?"_NoBidi":""),[c,f,n],{baseClass:"dijitSelect dijitValidationTextBox",templateString:w,_buttonInputDisabled:a("ie")?"disabled":"",required:!1,state:"",message:"",tooltipPosition:[],emptyLabel:"\x26#160;",_isLoaded:!1,_childrenLoaded:!1,labelType:"html",_fillContent:function(){this.inherited(arguments);if(this.options.length&&!this.value&&this.srcNodeRef){var y=this.srcNodeRef.selectedIndex||0;this._set("value",
this.options[0<=y?y:0].value)}this.dropDown=new v({id:this.id+"_menu",parentWidget:this});r.add(this.dropDown.domNode,this.baseClass.replace(/\s+|$/g,"Menu "))},_getMenuItemForOption:function(y){if(y.value||y.label){var z=d.hitch(this,"_setValueAttr",y);y=new m({option:y,label:("text"===this.labelType?(y.label||"").toString().replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;"):y.label)||this.emptyLabel,onClick:z,ownerDocument:this.ownerDocument,dir:this.dir,textDir:this.textDir,disabled:y.disabled||
!1});y.focusNode.setAttribute("role","option");return y}return new p({ownerDocument:this.ownerDocument})},_addOptionItem:function(y){this.dropDown&&this.dropDown.addChild(this._getMenuItemForOption(y))},_getChildren:function(){return this.dropDown?this.dropDown.getChildren():[]},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(y){}},focusChild:function(y){y&&this.set("value",y.option)},_getFirst:function(){var y=this._getChildren();return y.length?y[0]:null},
_getLast:function(){var y=this._getChildren();return y.length?y[y.length-1]:null},childSelector:function(y){return(y=q.byNode(y))&&y.getParent()==this.dropDown},onKeyboardSearch:function(y,z,C,G){y&&this.focusChild(y)},_loadChildren:function(y){if(!0===y)if(this.dropDown&&(delete this.dropDown.focusedChild,this.focusedChild=null),this.options.length)this.inherited(arguments);else{u.forEach(this._getChildren(),function(C){C.destroyRecursive()});var z=new m({ownerDocument:this.ownerDocument,label:this.emptyLabel});
this.dropDown.addChild(z)}else this._updateSelection();this._isLoaded=!1;this._childrenLoaded=!0;this._loadingStore||this._setValueAttr(this.value,!1)},_refreshState:function(){this._started&&this.validate(this.focused)},startup:function(){this.inherited(arguments);this._refreshState()},_setValueAttr:function(y){this.inherited(arguments);x.set(this.valueNode,"value",this.get("value"));this._refreshState()},_setNameAttr:"valueNode",_setDisabledAttr:function(y){this.inherited(arguments);this._refreshState()},
_setRequiredAttr:function(y){this._set("required",y);this.focusNode.setAttribute("aria-required",y);this._refreshState()},_setOptionsAttr:function(y){this._isLoaded=!1;this._set("options",y)},_setDisplay:function(y){y=("text"===this.labelType?(y||"").replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;"):y)||this.emptyLabel;this.containerNode.innerHTML='\x3cspan role\x3d"option" aria-selected\x3d"true" class\x3d"dijitReset dijitInline '+this.baseClass.replace(/\s+|$/g,"Label ")+'"\x3e'+y+"\x3c/span\x3e"},
validate:function(y){y=this.disabled||this.isValid(y);this._set("state",y?"":this._hasBeenBlurred?"Error":"Incomplete");this.focusNode.setAttribute("aria-invalid",y?"false":"true");var z=y?"":this._missingMsg;z&&this.focused&&this._hasBeenBlurred?l.show(z,this.domNode,this.tooltipPosition,!this.isLeftToRight()):l.hide(this.domNode);this._set("message",z);return y},isValid:function(){return!this.required||0===this.value||!/^\s*$/.test(this.value||"")},reset:function(){this.inherited(arguments);l.hide(this.domNode);
this._refreshState()},postMixInProperties:function(){this.inherited(arguments);this._missingMsg=e.getLocalization("dijit.form","validate",this.lang).missingMessage},postCreate:function(){this.inherited(arguments);this.own(b(this.domNode,"selectstart",function(z){z.preventDefault();z.stopPropagation()}));this.domNode.setAttribute("aria-expanded","false");var y=this._keyNavCodes;delete y[g.LEFT_ARROW];delete y[g.RIGHT_ARROW]},_setStyleAttr:function(y){this.inherited(arguments);r.toggle(this.domNode,
this.baseClass.replace(/\s+|$/g,"FixedWidth "),!!this.domNode.style.width)},isLoaded:function(){return this._isLoaded},loadDropDown:function(y){this._loadChildren(!0);this._isLoaded=!0;y()},destroy:function(y){this.dropDown&&!this.dropDown._destroyed&&(this.dropDown.destroyRecursive(y),delete this.dropDown);l.hide(this.domNode);this.inherited(arguments)},_onFocus:function(){this.validate(!0)},_onBlur:function(){l.hide(this.domNode);this.inherited(arguments);this.validate(!1)}});a("dojo-bidi")&&(h=
A("dijit.form.Select",h,{_setDisplay:function(y){this.inherited(arguments);this.applyTextDir(this.containerNode)}}));h._Menu=v;h.prototype._onContainerKeydown=t("_onContainerKeydown");h.prototype._onContainerKeypress=t("_onContainerKeypress");return h})},"dijit/form/_FormSelectWidget":function(){define("dojo/_base/array dojo/_base/Deferred dojo/aspect dojo/data/util/sorter dojo/_base/declare dojo/dom dojo/dom-class dojo/_base/kernel dojo/_base/lang dojo/query dojo/when dojo/store/util/QueryResults ./_FormValueWidget".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k){return h("dijit.form._FormSelectWidget",k,{multiple:!1,options:null,store:null,_setStoreAttr:function(m){this._created&&this._deprecatedSetStore(m)},query:null,_setQueryAttr:function(m){this._created&&this._deprecatedSetStore(this.store,this.selectedValue,{query:m})},queryOptions:null,_setQueryOptionsAttr:function(m){this._created&&this._deprecatedSetStore(this.store,this.selectedValue,{queryOptions:m})},labelAttr:"",onFetch:null,sortByLabel:!0,loadChildrenOnOpen:!1,
onLoadDeferred:null,getOptions:function(m){var p=this.options||[];if(null==m)return p;if(b.isArrayLike(m))return u.map(m,function(l){return this.getOptions(l)},this);b.isString(m)&&(m={value:m});b.isObject(m)&&(u.some(p,function(l,n){for(var q in m)if(!(q in l)||l[q]!=m[q])return!1;m=n;return!0})||(m=-1));return 0<=m&&m<p.length?p[m]:null},addOption:function(m){u.forEach(b.isArrayLike(m)?m:[m],function(p){p&&b.isObject(p)&&this.options.push(p)},this);this._loadChildren()},removeOption:function(m){m=
this.getOptions(b.isArrayLike(m)?m:[m]);u.forEach(m,function(p){p&&(this.options=u.filter(this.options,function(l){return l.value!==p.value||l.label!==p.label}),this._removeOptionItem(p))},this);this._loadChildren()},updateOption:function(m){u.forEach(b.isArrayLike(m)?m:[m],function(p){var l=this.getOptions({value:p.value}),n;if(l)for(n in p)l[n]=p[n]},this);this._loadChildren()},setStore:function(m,p,l){d.deprecated(this.declaredClass+"::setStore(store, selectedValue, fetchArgs) is deprecated. Use set('query', fetchArgs.query), set('queryOptions', fetchArgs.queryOptions), set('store', store), or set('value', selectedValue) instead.",
"","2.0");this._deprecatedSetStore(m,p,l)},_deprecatedSetStore:function(m,p,l){var n=this.store;l=l||{};if(n!==m){for(var q;q=this._notifyConnections.pop();)q.remove();m.get||(b.mixin(m,{_oldAPI:!0,get:function(w){var t=new A;this.fetchItemByIdentity({identity:w,onItem:function(v){t.resolve(v)},onError:function(v){t.reject(v)}});return t.promise},query:function(w,t){var v=new A(function(){y.abort&&y.abort()});v.total=new A;var y=this.fetch(b.mixin({query:w,onBegin:function(z){v.total.resolve(z)},
onComplete:function(z){v.resolve(z)},onError:function(z){v.reject(z)}},t));return new f(v)}}),m.getFeatures()["dojo.data.api.Notification"]&&(this._notifyConnections=[x.after(m,"onNew",b.hitch(this,"_onNewItem"),!0),x.after(m,"onDelete",b.hitch(this,"_onDeleteItem"),!0),x.after(m,"onSet",b.hitch(this,"_onSetItem"),!0)]));this._set("store",m)}this.options&&this.options.length&&this.removeOption(this.options);this._queryRes&&this._queryRes.close&&this._queryRes.close();this._observeHandle&&this._observeHandle.remove&&
(this._observeHandle.remove(),this._observeHandle=null);l.query&&this._set("query",l.query);l.queryOptions&&this._set("queryOptions",l.queryOptions);m&&m.query&&(this._loadingStore=!0,this.onLoadDeferred=new A,this._queryRes=m.query(this.query,this.queryOptions),c(this._queryRes,b.hitch(this,function(w){if(this.sortByLabel&&!l.sort&&w.length)if(m.getValue)w.sort(r.createSortFunction([{attribute:m.getLabelAttributes(w[0])[0]}],m));else{var t=this.labelAttr;w.sort(function(v,y){return v[t]>y[t]?1:y[t]>
v[t]?-1:0})}l.onFetch&&(w=l.onFetch.call(this,w,l));u.forEach(w,function(v){this._addOptionForItem(v)},this);this._queryRes.observe&&(this._observeHandle=this._queryRes.observe(b.hitch(this,function(v,y,z){y==z?this._onSetItem(v):(-1!=y&&this._onDeleteItem(v),-1!=z&&this._onNewItem(v))}),!0));this._loadingStore=!1;this.set("value","_pendingValue"in this?this._pendingValue:p);delete this._pendingValue;this.loadChildrenOnOpen?this._pseudoLoadChildren(w):this._loadChildren();this.onLoadDeferred.resolve(!0);
this.onSetStore()}),b.hitch(this,function(w){this.onLoadDeferred.reject(w)})));return n},_setValueAttr:function(m,p){this._onChangeActive||(p=null);if(this._loadingStore)this._pendingValue=m;else if(null!=m){m=b.isArrayLike(m)?u.map(m,function(q){return b.isObject(q)?q:{value:q}}):b.isObject(m)?[m]:[{value:m}];m=u.filter(this.getOptions(m),function(q){return q&&q.value});var l=this.getOptions()||[];this.multiple||m[0]&&m[0].value||!l.length||(m[0]=l[0]);u.forEach(l,function(q){q.selected=u.some(m,
function(w){return w.value===q.value})});l=u.map(m,function(q){return q.value});if("undefined"!=typeof l&&"undefined"!=typeof l[0]){var n=u.map(m,function(q){return q.label});this._setDisplay(this.multiple?n:n[0]);this.inherited(arguments,[this.multiple?l:l[0],p]);this._updateSelection()}}},_getDisplayedValueAttr:function(){var m=u.map([].concat(this.get("selectedOptions")),function(p){return p&&"label"in p?p.label:p?p.value:null},this);return this.multiple?m:m[0]},_setDisplayedValueAttr:function(m){this.set("value",
this.getOptions("string"==typeof m?{label:m}:m))},_loadChildren:function(){this._loadingStore||(u.forEach(this._getChildren(),function(m){m.destroyRecursive()}),u.forEach(this.options,this._addOptionItem,this),this._updateSelection())},_updateSelection:function(){this.focusedChild=null;this._set("value",this._getValueFromOpts());var m=[].concat(this.value);if(m&&m[0]){var p=this;u.forEach(this._getChildren(),function(l){var n=u.some(m,function(q){return l.option&&q===l.option.value});n&&!p.multiple&&
(p.focusedChild=l);g.toggle(l.domNode,this.baseClass.replace(/\s+|$/g,"SelectedOption "),n);l.domNode.setAttribute("aria-selected",n?"true":"false")},this)}},_getValueFromOpts:function(){var m=this.getOptions()||[];if(!this.multiple&&m.length){var p=u.filter(m,function(l){return l.selected})[0];if(p&&p.value)return p.value;m[0].selected=!0;return m[0].value}return this.multiple?u.map(u.filter(m,function(l){return l.selected}),function(l){return l.value})||[]:""},_onNewItem:function(m,p){p&&p.parent||
this._addOptionForItem(m)},_onDeleteItem:function(m){this.removeOption({value:this.store.getIdentity(m)})},_onSetItem:function(m){this.updateOption(this._getOptionObjForItem(m))},_getOptionObjForItem:function(m){var p=this.store,l=this.labelAttr&&this.labelAttr in m?m[this.labelAttr]:p.getLabel(m);return{value:l?p.getIdentity(m):null,label:l,item:m}},_addOptionForItem:function(m){var p=this.store;p.isItemLoaded&&!p.isItemLoaded(m)?p.loadItem({item:m,onItem:function(l){this._addOptionForItem(l)},scope:this}):
(m=this._getOptionObjForItem(m),this.addOption(m))},constructor:function(m){this._oValue=(m||{}).value||null;this._notifyConnections=[]},buildRendering:function(){this.inherited(arguments);e.setSelectable(this.focusNode,!1)},_fillContent:function(){this.options||(this.options=this.srcNodeRef?a("\x3e *",this.srcNodeRef).map(function(m){return"separator"===m.getAttribute("type")?{value:"",label:"",selected:!1,disabled:!1}:{value:m.getAttribute("data-"+d._scopeName+"-value")||m.getAttribute("value"),
label:String(m.innerHTML),selected:m.getAttribute("selected")||!1,disabled:m.getAttribute("disabled")||!1}},this):[]);this.value?this.multiple&&"string"==typeof this.value&&this._set("value",this.value.split(",")):this._set("value",this._getValueFromOpts())},postCreate:function(){this.inherited(arguments);x.after(this,"onChange",b.hitch(this,"_updateSelection"));var m=this.store;m&&(m.getIdentity||m.getFeatures()["dojo.data.api.Identity"])&&(this.store=null,this._deprecatedSetStore(m,this._oValue,
{query:this.query,queryOptions:this.queryOptions}));this._storeInitialized=!0},startup:function(){this._loadChildren();this.inherited(arguments)},destroy:function(){for(var m;m=this._notifyConnections.pop();)m.remove();this._queryRes&&this._queryRes.close&&this._queryRes.close();this._observeHandle&&this._observeHandle.remove&&(this._observeHandle.remove(),this._observeHandle=null);this.inherited(arguments)},_addOptionItem:function(){},_removeOptionItem:function(){},_setDisplay:function(){},_getChildren:function(){return[]},
_getSelectedOptionsAttr:function(){return this.getOptions({selected:!0})},_pseudoLoadChildren:function(){},onSetStore:function(){}})})},"dojox/editor/plugins/ToolbarLineBreak":function(){define("dojo dijit dojox dijit/_Widget dijit/_TemplatedMixin dijit/_editor/_Plugin dojo/_base/declare".split(" "),function(u,A,x,r,h,e,g){var d=g("dojox.editor.plugins.ToolbarLineBreak",[r,h],{templateString:"\x3cspan class\x3d'dijit dijitReset'\x3e\x3cbr\x3e\x3c/span\x3e",postCreate:function(){u.setSelectable(this.domNode,
!1)},isFocusable:function(){return!1}});u.subscribe(A._scopeName+".Editor.getPlugin",null,function(b){if(!b.plugin){var a=b.args.name.toLowerCase();if("||"===a||"toolbarlinebreak"===a)b.plugin=new e({button:new d,setEditor:function(c){this.editor=c}})}});return d})},"dojox/editor/plugins/Blockquote":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/form/ToggleButton dojo/_base/connect dojo/_base/declare dojo/i18n dojo/i18n!dojox/editor/plugins/nls/Blockquote".split(" "),function(u,A,
x,r){var h=u.declare("dojox.editor.plugins.Blockquote",r,{iconClassPrefix:"dijitAdditionalEditorIcon",_initButton:function(){this._nlsResources=u.i18n.getLocalization("dojox.editor.plugins","Blockquote");this.button=new A.form.ToggleButton({label:this._nlsResources.blockquote,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"Blockquote",tabIndex:"-1",onClick:u.hitch(this,"_toggleQuote")})},setEditor:function(e){this.editor=e;this._initButton();this.connect(this.editor,"onNormalizedDisplayChanged",
"updateState");e.customUndo=!0},_toggleQuote:function(e){try{var g=this.editor;g.focus();var d=this.button.get("checked"),b=A.range.getSelection(g.window),a,c,f,k;b&&0<b.rangeCount&&(a=b.getRangeAt(0));if(a){g.beginEditing();if(d)if(a.startContainer===a.endContainer){if(this._isRootInline(a.startContainer)){for(f=a.startContainer;f&&f.parentNode!==g.editNode;)f=f.parentNode;for(;f&&f.previousSibling&&(this._isTextElement(f)||1===f.nodeType&&this._isInlineFormat(this._getTagName(f)));)f=f.previousSibling;
f&&1===f.nodeType&&!this._isInlineFormat(this._getTagName(f))&&(f=f.nextSibling);if(f){var m=g.document.createElement("blockquote");u.place(m,f,"after");m.appendChild(f);for(k=m.nextSibling;k&&(this._isTextElement(k)||1===k.nodeType&&this._isInlineFormat(this._getTagName(k)));)m.appendChild(k),k=m.nextSibling}}else{for(var p=a.startContainer;(this._isTextElement(p)||this._isInlineFormat(this._getTagName(p))||"li"===this._getTagName(p))&&p!==g.editNode&&p!==g.document.body;)p=p.parentNode;p!==g.editNode&&
p!==p.ownerDocument.documentElement&&(m=g.document.createElement("blockquote"),u.place(m,p,"after"),m.appendChild(p))}m&&(g._sCall("selectElementChildren",[m]),g._sCall("collapse",[!0]))}else{var l;f=a.startContainer;for(k=a.endContainer;f&&this._isTextElement(f)&&f.parentNode!==g.editNode;)f=f.parentNode;for(l=f;l.nextSibling&&g._sCall("inSelection",[l]);)l=l.nextSibling;k=l;if(k===g.editNode||k===g.document.body){m=g.document.createElement("blockquote");u.place(m,f,"after");var n=this._getTagName(f);
if(this._isTextElement(f)||this._isInlineFormat(n))for(g=f;g&&(this._isTextElement(g)||1===g.nodeType&&this._isInlineFormat(this._getTagName(g)));)m.appendChild(g),g=m.nextSibling;else m.appendChild(f);return}k=k.nextSibling;for(l=f;l&&l!==k;){if(1===l.nodeType){if(n=this._getTagName(l),"br"!==n){if(!window.getSelection&&"p"===n&&this._isEmpty(l)){l=l.nextSibling;continue}this._isInlineFormat(n)?m||(m=g.document.createElement("blockquote"),u.place(m,l,"after")):(m&&this._isEmpty(m)&&m.parentNode.removeChild(m),
m=g.document.createElement("blockquote"),u.place(m,l,"after"));m.appendChild(l);l=m}}else this._isTextElement(l)&&(m||(m=g.document.createElement("blockquote"),u.place(m,l,"after")),m.appendChild(l),l=m);l=l.nextSibling}m&&(this._isEmpty(m)?m.parentNode.removeChild(m):(g._sCall("selectElementChildren",[m]),g._sCall("collapse",[!0])),m=null)}else if(m=!1,a.startContainer===a.endContainer){for(c=a.endContainer;c&&c!==g.editNode&&c!==g.document.body;){if("blockquote"===(c.tagName?c.tagName.toLowerCase():
"")){m=!0;break}c=c.parentNode}if(m){for(var q;c.firstChild;)q=c.firstChild,u.place(q,c,"before");c.parentNode.removeChild(c);q&&(g._sCall("selectElementChildren",[q]),g._sCall("collapse",[!0]))}}else{f=a.startContainer;for(k=a.endContainer;f&&this._isTextElement(f)&&f.parentNode!==g.editNode;)f=f.parentNode;for(a=[];f&&f.nextSibling&&g._sCall("inSelection",[f]);)f.parentNode&&"blockquote"===this._getTagName(f.parentNode)&&(f=f.parentNode),a.push(f),f=f.nextSibling;for(var w=this._findBlockQuotes(a);w.length;){var t=
w.pop();if(t.parentNode){for(;t.firstChild;)u.place(t.firstChild,t,"before");t.parentNode.removeChild(t)}}}g.endEditing()}g.onNormalizedDisplayChanged()}catch(v){}},updateState:function(){var e=this.editor,g=this.get("disabled");if(e&&e.isLoaded&&this.button&&(this.button.set("disabled",g),!g)){g=!1;var d=A.range.getSelection(e.window);if(d&&0<d.rangeCount&&(d=d.getRangeAt(0)))var b=d.endContainer;for(;b&&b!==e.editNode&&b!==e.document;){if("blockquote"===(b.tagName?b.tagName.toLowerCase():"")){g=
!0;break}b=b.parentNode}this.button.set("checked",g)}},_findBlockQuotes:function(e){var g=[];if(e){var d;for(d=0;d<e.length;d++){var b=e[d];1===b.nodeType&&("blockquote"===this._getTagName(b)&&g.push(b),b.childNodes&&0<b.childNodes.length&&(g=g.concat(this._findBlockQuotes(b.childNodes))))}}return g},_getTagName:function(e){var g="";e&&1===e.nodeType&&(g=e.tagName?e.tagName.toLowerCase():"");return g},_isRootInline:function(e){var g=this.editor;if(this._isTextElement(e)&&e.parentNode===g.editNode||
1===e.nodeType&&this._isInlineFormat(e)&&e.parentNode===g.editNode)return!0;if(this._isTextElement(e)&&this._isInlineFormat(this._getTagName(e.parentNode))){for(e=e.parentNode;e&&e!==g.editNode&&this._isInlineFormat(this._getTagName(e));)e=e.parentNode;if(e===g.editNode)return!0}return!1},_isTextElement:function(e){return e&&3===e.nodeType||4===e.nodeType?!0:!1},_isEmpty:function(e){if(e.childNodes){var g=!0,d;for(d=0;d<e.childNodes.length;d++){var b=e.childNodes[d];if(1===b.nodeType){if("p"!==this._getTagName(b)||
u.trim(b.innerHTML)){g=!1;break}}else if(this._isTextElement(b)){if((b=u.trim(b.nodeValue))&&"\x26nbsp;"!==b&&"\u00a0"!==b){g=!1;break}}else{g=!1;break}}return g}return!0},_isInlineFormat:function(e){switch(e){case "a":case "b":case "strong":case "s":case "strike":case "i":case "u":case "em":case "sup":case "sub":case "span":case "font":case "big":case "cite":case "q":case "img":case "small":return!0;default:return!1}}});u.subscribe(A._scopeName+".Editor.getPlugin",null,function(e){e.plugin||"blockquote"!==
e.args.name.toLowerCase()||(e.plugin=new h({}))});return h})},"dojox/editor/plugins/LocalImage":function(){define("dojo dijit dijit/registry dijit/_base/popup dijit/_editor/_Plugin dijit/_editor/plugins/LinkDialog dijit/TooltipDialog dijit/form/_TextBoxMixin dijit/form/Button dijit/form/ValidationTextBox dijit/form/DropDownButton dojo/_base/connect dojo/_base/declare dojo/_base/sniff dojox/form/FileUploader dojo/i18n!dojox/editor/plugins/nls/LocalImage".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f,
k,m,p,l){var n=u.declare("dojox.editor.plugins.LocalImage",e.ImgLinkDialog,{uploadable:!1,uploadUrl:"",baseImageUrl:"",fileMask:"*.jpg;*.jpeg;*.gif;*.png;*.bmp",urlRegExp:"",htmlFieldName:"uploadedfile",_isLocalFile:!1,_messages:"",_cssPrefix:"dijitEditorEilDialog",_closable:!0,linkDialogTemplate:"\x3cdiv style\x3d'border-bottom: 1px solid black; padding-bottom: 2pt; margin-bottom: 4pt;'\x3e\x3c/div\x3e\x3cdiv class\x3d'dijitEditorEilDialogDescription'\x3e${prePopuTextUrl}${prePopuTextBrowse}\x3c/div\x3e\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3clabel for\x3d'${id}_urlInput' title\x3d'${prePopuTextUrl}${prePopuTextBrowse}'\x3e${url}\x3c/label\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd class\x3d'dijitEditorEilDialogField'\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' class\x3d'dijitEditorEilDialogField'regExp\x3d'${urlRegExp}' title\x3d'${prePopuTextUrl}${prePopuTextBrowse}'  selectOnClick\x3d'true' required\x3d'true' id\x3d'${id}_urlInput' name\x3d'urlInput' intermediateChanges\x3d'true' invalidMessage\x3d'${invalidMessage}' prePopuText\x3d'\x26lt;${prePopuTextUrl}${prePopuTextBrowse}\x26gt'\x3e\x3c/td\x3e\x3ctd\x3e\x3cdiv id\x3d'${id}_browse' style\x3d'display:${uploadable}'\x3e${browse}\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.TextBox' required\x3d'false' id\x3d'${id}_textInput' name\x3d'textInput' intermediateChanges\x3d'true' selectOnClick\x3d'true' class\x3d'dijitEditorEilDialogField'\x3e\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton dojoType\x3d'dijit.form.Button' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
_initButton:function(){var q=this;this._messages=l;this.tag="img";var w=this.dropDown=new g({title:l[this.command+"Title"],onOpen:function(){q._initialFileUploader();q._onOpenDialog();g.prototype.onOpen.apply(this,arguments);setTimeout(function(){d.selectInputText(q._urlInput.textbox);q._urlInput.isLoadComplete=!0},0)},onClose:function(){u.disconnect(q.blurHandler);q.blurHandler=null;this.onHide()},onCancel:function(){setTimeout(u.hitch(q,"_onCloseDialog"),0)}}),t=this.getLabel(this.command),v=this.iconClassPrefix+
" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);t=u.mixin({label:t,showLabel:!1,iconClass:v,dropDown:this.dropDown,tabIndex:"-1"},this.params||{});m("ie")||(t.closeDropDown=function(C){q._closable&&this._opened&&(r.close(this.dropDown),C&&this.focus(),this._opened=!1,this.state="");setTimeout(function(){q._closable=!0},10)});this.button=new c(t);t=this.fileMask.split(";");var y="";u.forEach(t,function(C){C=C.replace(/\./,"\\.").replace(/\*/g,".*");y+="|"+C+"|"+
C.toUpperCase()});l.urlRegExp=this.urlRegExp=y.substring(1);this.uploadable||(l.prePopuTextBrowse=".");l.id=x.getUniqueId(this.editor.id);l.uploadable=this.uploadable?"inline":"none";this._uniqueId=l.id;this._setContent("\x3cdiv class\x3d'"+this._cssPrefix+"Title'\x3e"+w.title+"\x3c/div\x3e"+u.string.substitute(this.linkDialogTemplate,l));w.startup();w=this._urlInput=x.byId(this._uniqueId+"_urlInput");this._textInput=x.byId(this._uniqueId+"_textInput");this._setButton=x.byId(this._uniqueId+"_setButton");
if(w){var z=a.prototype;w=u.mixin(w,{isLoadComplete:!1,isValid:function(C){return this.isLoadComplete?z.isValid.apply(this,arguments):0<this.get("value").length},reset:function(){this.isLoadComplete=!1;z.reset.apply(this,arguments)}});this.connect(w,"onKeyDown","_cancelFileUpload");this.connect(w,"onChange","_checkAndFixInput")}this._setButton&&this.connect(this._setButton,"onClick","_checkAndSetValue");this._connectTagEvents()},_initialFileUploader:function(){var q=null,w=this,t=w._uniqueId,v=w._urlInput;
w.uploadable&&!w._fileUploader&&(q=w._fileUploader=new p({force:"html",uploadUrl:w.uploadUrl,htmlFieldName:w.htmlFieldName,uploadOnChange:!1,selectMultipleFiles:!1,showProgress:!0},t+"_browse"),q.reset=function(){w._isLocalFile=!1;q._resetHTML()},w.connect(q,"onClick",function(){v.validate(!1);m("ie")||(w._closable=!1)}),w.connect(q,"onChange",function(y){w._isLocalFile=!0;v.set("value",y[0].name);v.focus()}),w.connect(q,"onComplete",function(y){var z=w.baseImageUrl;z=z&&"/"==z.charAt(z.length-1)?
z:z+"/";v.set("value",z+y[0].file);w._isLocalFile=!1;w._setDialogStatus(!0);w.setValue(w.dropDown.get("value"))}),w.connect(q,"onError",function(y){w._setDialogStatus(!0)}))},_checkAndFixInput:function(){this._setButton.set("disabled",!this._isValid())},_isValid:function(){return this._urlInput.isValid()},_cancelFileUpload:function(){this._fileUploader.reset();this._isLocalFile=!1},_checkAndSetValue:function(){this._fileUploader&&this._isLocalFile?(this._setDialogStatus(!1),this._fileUploader.upload()):
this.setValue(this.dropDown.get("value"))},_setDialogStatus:function(q){this._urlInput.set("disabled",!q);this._textInput.set("disabled",!q);this._setButton.set("disabled",!q)},destroy:function(){this.inherited(arguments);this._fileUploader&&(this._fileUploader.destroy(),delete this._fileUploader)}});A=function(q){return new n({command:"insertImage",uploadable:"uploadable"in q?q.uploadable:!1,uploadUrl:"uploadable"in q&&"uploadUrl"in q?q.uploadUrl:"",htmlFieldName:"uploadable"in q&&"htmlFieldName"in
q?q.htmlFieldName:"uploadedfile",baseImageUrl:"uploadable"in q&&"baseImageUrl"in q?q.baseImageUrl:"",fileMask:"fileMask"in q?q.fileMask:"*.jpg;*.jpeg;*.gif;*.png;*.bmp"})};h.registry.LocalImage=A;h.registry.localImage=A;h.registry.localimage=A;return n})},"dojox/form/FileUploader":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/window dojo/_base/sniff dojo/query dojo/dom dojo/dom-style dojo/dom-geometry dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-form dojo/_base/config dijit/_base/manager dojo/io/iframe dojo/_base/Color dojo/_base/unload dijit/_Widget dijit/_TemplatedMixin dijit/_Contained dojox/embed/Flash dojox/embed/flashVars dojox/html/styles".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n,q,w,t,v,y,z,C,G,B){u.deprecated("dojox.form.FileUploader","Use dojox.form.Uploader","2.0");return A("dojox.form.FileUploader",[v,y,z],{swfPath:l.uploaderPath||require.toUrl("dojox/form/resources/fileuploader.swf"),templateString:'\x3cdiv\x3e\x3cdiv dojoAttachPoint\x3d"progNode"\x3e\x3cdiv dojoAttachPoint\x3d"progTextNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"insideNode" class\x3d"uploaderInsideNode"\x3e\x3c/div\x3e\x3c/div\x3e',uploadUrl:"",
isDebug:!1,devMode:!1,baseClass:"dojoxUploaderNorm",hoverClass:"dojoxUploaderHover",activeClass:"dojoxUploaderActive",disabledClass:"dojoxUploaderDisabled",force:"",uploaderType:"",flashObject:null,flashMovie:null,insideNode:null,deferredUploading:1,fileListId:"",uploadOnChange:!1,selectMultipleFiles:!0,htmlFieldName:"uploadedfile",flashFieldName:"flashUploadFiles",fileMask:null,minFlashVersion:9,tabIndex:-1,showProgress:!1,progressMessage:"Loading",progressBackgroundUrl:require.toUrl("dijit/themes/tundra/images/buttonActive.png"),
progressBackgroundColor:"#ededed",progressWidgetId:"",skipServerCheck:!1,serverTimeout:5E3,log:function(){this.isDebug&&console.log(Array.prototype.slice.call(arguments).join(" "))},constructor:function(){this._subs=[]},postMixInProperties:function(){this.fileList=[];this._cons=[];this.fileMask=this.fileMask||[];this.fileInputs=[];this.fileCount=0;this._disabled=this.flashReady=!1;this.force=this.force.toLowerCase();this.uploaderType=(C.available>=this.minFlashVersion||"flash"==this.force)&&"html"!=
this.force?"flash":"html";this.deferredUploading=!0===this.deferredUploading?1:this.deferredUploading;this._refNode=this.srcNodeRef;this.getButtonStyle()},startup:function(){},postCreate:function(){this.inherited(arguments);this.setButtonStyle();if("flash"==this.uploaderType)var D="createFlashUploader";else this.uploaderType="html",D="createHtmlUploader";this[D]();this.fileListId&&this.connect(b.byId(this.fileListId),"click",function(E){E=E.target.parentNode.parentNode.parentNode;E.id&&-1<E.id.indexOf("file_")&&
this.removeFile(E.id.split("file_")[1])});t.addOnUnload(this,this.destroy)},getHiddenNode:function(D){if(!D)return null;var E=null;for(D=D.parentNode;D&&"body"!=D.tagName.toLowerCase();){if("none"==a.get(D,"display")){E=D;break}D=D.parentNode}return E},getButtonStyle:function(){var D=this.srcNodeRef;(this._hiddenNode=this.getHiddenNode(D))&&a.set(this._hiddenNode,"display","block");if(!D&&this.button&&this.button.domNode){var E=!0;D=this.button.domNode.className+" dijitButtonNode";var J=this.getText(d(".dijitButtonText",
this.button.domNode)[0]);this.srcNodeRef=D=m.place('\x3cbutton id\x3d"'+this.button.id+'" class\x3d"'+D+'"\x3e'+J+"\x3c/button\x3e",this.button.domNode,"after");this.button.destroy();this.baseClass="dijitButton";this.hoverClass="dijitButtonHover";this.pressClass="dijitButtonActive";this.disabledClass="dijitButtonDisabled"}else!this.srcNodeRef&&this.button&&(D=this.button);f.get(D,"class")&&(this.baseClass+=" "+f.get(D,"class"));f.set(D,"class",this.baseClass);this.norm=this.getStyle(D);this.width=
this.norm.w;this.height=this.norm.h;"flash"==this.uploaderType?(this.over=this.getTempNodeStyle(D,this.baseClass+" "+this.hoverClass,E),this.down=this.getTempNodeStyle(D,this.baseClass+" "+this.activeClass,E),this.dsbl=this.getTempNodeStyle(D,this.baseClass+" "+this.disabledClass,E),this.fhtml={cn:this.getText(D),nr:this.norm,ov:this.over,dn:this.down,ds:this.dsbl}):(this.fhtml={cn:this.getText(D),nr:this.norm},"middle"==this.norm.va&&(this.norm.lh=this.norm.h));this.devMode&&(this.log("classes - base:",
this.baseClass," hover:",this.hoverClass,"active:",this.activeClass),this.log("fhtml:",this.fhtml),this.log("norm:",this.norm),this.log("over:",this.over),this.log("down:",this.down))},setButtonStyle:function(){a.set(this.domNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+"px",padding:"0px",lineHeight:"normal",position:"relative"});"html"==this.uploaderType&&"middle"==this.norm.va&&a.set(this.domNode,"lineHeight",this.norm.lh+"px");this.showProgress?(this.progTextNode.innerHTML=this.progressMessage,
a.set(this.progTextNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+0+"px",padding:"0px",margin:"0px",left:"0px",lineHeight:this.fhtml.nr.h+0+"px",position:"absolute"}),a.set(this.progNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+0+"px",padding:"0px",margin:"0px",left:"0px",position:"absolute",display:"none",backgroundImage:"url("+this.progressBackgroundUrl+")",backgroundPosition:"bottom",backgroundRepeat:"repeat-x",backgroundColor:this.progressBackgroundColor})):m.destroy(this.progNode);
a.set(this.insideNode,{position:"absolute",top:"0px",left:"0px",display:""});k.add(this.domNode,this.srcNodeRef.className);-1<this.fhtml.nr.d.indexOf("inline")&&k.add(this.domNode,"dijitInline");try{this.insideNode.innerHTML=this.fhtml.cn}catch(E){if("flash"==this.uploaderType){this.insideNode=this.insideNode.parentNode.removeChild(this.insideNode);e.body().appendChild(this.insideNode);this.insideNode.innerHTML=this.fhtml.cn;var D=h.connect(this,"onReady",this,function(){h.disconnect(D);this.insideNode=
this.insideNode.parentNode.removeChild(this.insideNode);this.domNode.appendChild(this.insideNode)})}else this.insideNode.appendChild(document.createTextNode(this.fhtml.cn))}this._hiddenNode&&a.set(this._hiddenNode,"display","none")},onChange:function(D){},onProgress:function(D){},onComplete:function(D){},onCancel:function(){},onError:function(D){},onReady:function(D){},onLoad:function(D){},submit:function(D){D=D?p.toObject(D):null;this.upload(D);return!1},upload:function(D){if(!this.fileList.length||
!this.uploadUrl)return!1;this.showProgress||this.set("disabled",!0);if(this.progressWidgetId){var E=n.byId(this.progressWidgetId).domNode;"none"==a.get(E,"display")&&(this.restoreProgDisplay="none",a.set(E,"display","block"));"hidden"==a.get(E,"visibility")&&(this.restoreProgDisplay="hidden",a.set(E,"visibility","visible"))}D&&!D.target&&(this.postData=D);this.log("upload type:",this.uploaderType," - postData:",this.postData);for(D=0;D<this.fileList.length;D++)E=this.fileList[D],E.bytesLoaded=0,E.bytesTotal=
E.size||1E5,E.percent=0;"flash"==this.uploaderType?this.uploadFlash():this.uploadHTML();return!1},removeFile:function(D,E){var J;for(J=0;J<this.fileList.length;J++)if(this.fileList[J].name==D){E||this.fileList.splice(J,1);break}"flash"==this.uploaderType?this.flashMovie.removeFile(D):E||(m.destroy(this.fileInputs[J]),this.fileInputs.splice(J,1),this._renumberInputs());this.fileListId&&m.destroy("file_"+D)},destroy:function(){"flash"!=this.uploaderType||this.flashMovie?(r.forEach(this._subs,h.unsubscribe,
dojo),r.forEach(this._cons,h.disconnect,dojo),this.scrollConnect&&h.disconnect(this.scrollConnect),"flash"==this.uploaderType?(this.flashObject.destroy(),delete this.flashObject):(m.destroy(this._fileInput),m.destroy(this._formNode)),this.inherited(arguments)):this._cons.push(h.connect(this,"onLoad",this,"destroy"))},_displayProgress:function(D){!0===D?("flash"==this.uploaderType?a.set(this.insideNode,"top","-2500px"):a.set(this.insideNode,"display","none"),a.set(this.progNode,"display","")):!1===
D?(a.set(this.insideNode,{display:"",top:"0"}),a.set(this.progNode,"display","none")):a.set(this.progNode,"width",D*this.fhtml.nr.w+"px")},_animateProgress:function(){this._displayProgress(!0);var D=!1,E=h.connect(this,"_complete",function(){h.disconnect(E);D=!0}),J=0,I=setInterval(x.hitch(this,function(){J+=5;J>this.fhtml.nr.w&&(J=0,D=!0);this._displayProgress(J/this.fhtml.nr.w);D&&(clearInterval(I),setTimeout(x.hitch(this,function(){this._displayProgress(!1)}),500))}),50)},_error:function(D){"string"==
typeof D&&(D=Error(D));this.onError(D)},_addToFileList:function(){if(this.fileListId){var D="";r.forEach(this.fileList,function(E){D+='\x3ctable id\x3d"file_'+E.name+'" class\x3d"fileToUpload"\x3e\x3ctr\x3e\x3ctd class\x3d"fileToUploadClose"\x3e\x3c/td\x3e\x3ctd class\x3d"fileToUploadName"\x3e'+E.name+'\x3c/td\x3e\x3ctd class\x3d"fileToUploadSize"\x3e'+(E.size?Math.ceil(.001*E.size)+"kb":"")+"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e"},this);b.byId(this.fileListId).innerHTML=D}},_change:function(D){g("ie")&&
r.forEach(D,function(E){E.name=E.name.split("\\")[E.name.split("\\").length-1]});this.selectMultipleFiles?this.fileList=this.fileList.concat(D):(this.fileList[0]&&this.removeFile(this.fileList[0].name,!0),this.fileList=D);this._addToFileList();this.onChange(D);this.uploadOnChange?("html"==this.uploaderType&&this._buildFileInput(),this.upload()):"html"==this.uploaderType&&this.selectMultipleFiles&&(this._buildFileInput(),this._connectInput())},_complete:function(D){D=x.isArray(D)?D:[D];r.forEach(D,
function(E){E.ERROR&&this._error(E.ERROR)},this);r.forEach(this.fileList,function(E){E.bytesLoaded=1;E.bytesTotal=1;E.percent=100;this._progress(E)},this);r.forEach(this.fileList,function(E){this.removeFile(E.name,!0)},this);this.onComplete(D);this.fileList=[];this._resetHTML();this.set("disabled",!1);this.restoreProgDisplay&&setTimeout(x.hitch(this,function(){a.set(n.byId(this.progressWidgetId).domNode,"none"==this.restoreProgDisplay?"display":"visibility",this.restoreProgDisplay)}),500)},_progress:function(D){for(var E=
0,J=0,I=0;I<this.fileList.length;I++){var F=this.fileList[I];F.name==D.name&&(F.bytesLoaded=D.bytesLoaded,F.bytesTotal=D.bytesTotal,F.percent=Math.ceil(F.bytesLoaded/F.bytesTotal*100),this.log(F.name,"percent:",F.percent));J+=Math.ceil(.001*F.bytesLoaded);E+=Math.ceil(.001*F.bytesTotal)}D=Math.ceil(J/E*100);this.progressWidgetId&&n.byId(this.progressWidgetId).update({progress:D+"%"});this.showProgress&&this._displayProgress(.01*D);this.onProgress(this.fileList)},_getDisabledAttr:function(){return this._disabled},
_setDisabledAttr:function(D){if(this._disabled!=D){if("flash"==this.uploaderType){if(!this.flashReady){var E=h.connect(this,"onLoad",this,function(){h.disconnect(E);this._setDisabledAttr(D)});return}this._disabled=D;this.flashMovie.doDisable(D)}else this._disabled=D,a.set(this._fileInput,"display",this._disabled?"none":"");k.toggle(this.domNode,this.disabledClass,D)}},_onFlashBlur:function(){this.flashMovie.blur();if(!this.nextFocusObject&&this.tabIndex)for(var D=d("[tabIndex]"),E=0;E<D.length;E++)if(D[E].tabIndex>=
Number(this.tabIndex)+1){this.nextFocusObject=D[E];break}this.nextFocusObject.focus()},_disconnect:function(){r.forEach(this._cons,h.disconnect,dojo)},uploadHTML:function(){this.selectMultipleFiles&&m.destroy(this._fileInput);this._setHtmlPostData();this.showProgress&&this._animateProgress();q.send({url:this.uploadUrl.toString(),form:this._formNode,handleAs:"json",error:x.hitch(this,function(D){this._error("HTML Upload Error:"+D.message)}),load:x.hitch(this,function(D,E,J){this._complete(D)})})},
createHtmlUploader:function(){this._buildForm();this._setFormStyle();this._buildFileInput();this._connectInput();this._styleContent();a.set(this.insideNode,"visibility","visible");this.onReady()},_connectInput:function(){this._disconnect();this._cons.push(h.connect(this._fileInput,"mouseover",this,function(D){k.add(this.domNode,this.hoverClass);this.onMouseOver(D)}));this._cons.push(h.connect(this._fileInput,"mouseout",this,function(D){setTimeout(x.hitch(this,function(){k.remove(this.domNode,this.activeClass);
k.remove(this.domNode,this.hoverClass);this.onMouseOut(D);this._checkHtmlCancel("off")}),0)}));this._cons.push(h.connect(this._fileInput,"mousedown",this,function(D){k.add(this.domNode,this.activeClass);k.remove(this.domNode,this.hoverClass);this.onMouseDown(D)}));this._cons.push(h.connect(this._fileInput,"mouseup",this,function(D){k.remove(this.domNode,this.activeClass);this.onMouseUp(D);this.onClick(D);this._checkHtmlCancel("up")}));this._cons.push(h.connect(this._fileInput,"change",this,function(){this._checkHtmlCancel("change");
var D=this._fileInput.value;D?this._change([{name:D,type:"",size:0}]):this._change([])}));0<=this.tabIndex&&f.set(this.domNode,"tabIndex",this.tabIndex)},_checkHtmlCancel:function(D){"change"==D&&(this.dialogIsOpen=!1);"up"==D&&(this.dialogIsOpen=!0);if("off"==D){if(this.dialogIsOpen)this.onCancel();this.dialogIsOpen=!1}},_styleContent:function(){var D=this.fhtml.nr;a.set(this.insideNode,{width:D.w+"px",height:"middle"==D.va?D.h+"px":"auto",textAlign:D.ta,paddingTop:D.p[0]+"px",paddingRight:D.p[1]+
"px",paddingBottom:D.p[2]+"px",paddingLeft:D.p[3]+"px"});try{a.set(this.insideNode,"lineHeight","inherit")}catch(E){}},_resetHTML:function(){"html"==this.uploaderType&&this._formNode&&(this.fileInputs=[],d("*",this._formNode).forEach(function(D){m.destroy(D)}),this.fileCount=0,this._buildFileInput(),this._connectInput())},_buildForm:function(){this._formNode||(9>g("ie")||g("ie")&&g("quirks")?(this._formNode=document.createElement('\x3cform enctype\x3d"multipart/form-data" method\x3d"post"\x3e'),this._formNode.encoding=
"multipart/form-data",this._formNode.id=n.getUniqueId("FileUploaderForm"),this.domNode.appendChild(this._formNode)):this._formNode=m.create("form",{enctype:"multipart/form-data",method:"post",id:n.getUniqueId("FileUploaderForm")},this.domNode))},_buildFileInput:function(){this._fileInput&&(this._disconnect(),this._fileInput.id+=this.fileCount,a.set(this._fileInput,"display","none"));this._fileInput=document.createElement("input");this.fileInputs.push(this._fileInput);var D=this.htmlFieldName;this.selectMultipleFiles&&
(D+=this.fileCount,this.fileCount++);f.set(this._fileInput,{id:this.id,name:D,type:"file"});k.add(this._fileInput,"dijitFileInputReal");this._formNode.appendChild(this._fileInput);D=c.getMarginBox(this._fileInput);a.set(this._fileInput,{position:"relative",left:this.fhtml.nr.w-D.w+"px",opacity:0})},_renumberInputs:function(){if(this.selectMultipleFiles){var D;this.fileCount=0;r.forEach(this.fileInputs,function(E){D=this.htmlFieldName+this.fileCount;this.fileCount++;f.set(E,"name",D)},this)}},_setFormStyle:function(){B.insertCssRule("#"+
this._formNode.id+" input","font-size:"+Math.max(2,Math.max(Math.ceil(this.fhtml.nr.w/60),Math.ceil(this.fhtml.nr.h/15)))+"em");a.set(this.domNode,{overflow:"hidden",position:"relative"});a.set(this.insideNode,"position","absolute")},_setHtmlPostData:function(){if(this.postData)for(var D in this.postData)m.create("input",{type:"hidden",name:D,value:this.postData[D]},this._formNode)},uploadFlash:function(){try{if(this.showProgress){this._displayProgress(!0);var D=h.connect(this,"_complete",this,function(){h.disconnect(D);
this._displayProgress(!1)})}var E={},J;for(J in this.postData)E[J]=this.postData[J];this.flashMovie.doUpload(E)}catch(I){this._error("FileUploader - Sorry, the SWF failed to initialize."+I)}},createFlashUploader:function(){if(this.uploadUrl=this.uploadUrl.toString())if(0>this.uploadUrl.toLowerCase().indexOf("http")&&0!=this.uploadUrl.indexOf("/")){var D=window.location.href.split("/");D.pop();D=D.join("/")+"/";this.uploadUrl=D+this.uploadUrl;this.log("SWF Fixed - Relative loc:",D," abs loc:",this.uploadUrl)}else this.log("SWF URL unmodified:",
this.uploadUrl);D={expressInstall:!0,path:this.swfPath.uri||this.swfPath,width:this.fhtml.nr.w,height:this.fhtml.nr.h,allowScriptAccess:"always",allowNetworking:"all",vars:{uploadDataFieldName:this.flashFieldName,uploadUrl:this.uploadUrl,uploadOnSelect:this.uploadOnChange,deferredUploading:this.deferredUploading||0,selectMultipleFiles:this.selectMultipleFiles,id:this.id,isDebug:this.isDebug,devMode:this.devMode,flashButton:G.serialize("fh",this.fhtml),fileMask:G.serialize("fm",this.fileMask),noReturnCheck:this.skipServerCheck,
serverTimeout:this.serverTimeout},params:{scale:"noscale",wmode:"opaque",allowScriptAccess:"always",allowNetworking:"all"}};this.flashObject=new C(D,this.insideNode);this.flashObject.onError=x.hitch(function(E){this._error("Flash Error: "+E)});this.flashObject.onReady=x.hitch(this,function(){a.set(this.insideNode,"visibility","visible");this.log("FileUploader flash object ready");this.onReady(this)});this.flashObject.onLoad=x.hitch(this,function(E){this.flashMovie=E;this.flashReady=!0;this.onLoad(this)});
this._connectFlash()},_connectFlash:function(){this._doSub("/filesSelected","_change");this._doSub("/filesUploaded","_complete");this._doSub("/filesProgress","_progress");this._doSub("/filesError","_error");this._doSub("/filesCanceled","onCancel");this._doSub("/stageBlur","_onFlashBlur");this._doSub("/up","onMouseUp");this._doSub("/down","onMouseDown");this._doSub("/over","onMouseOver");this._doSub("/out","onMouseOut");this.connect(this.domNode,"focus",function(){this.flashMovie.focus();this.flashMovie.doFocus()});
0<=this.tabIndex&&f.set(this.domNode,"tabIndex",this.tabIndex)},_doSub:function(D,E){this._subs.push(h.subscribe(this.id+D,this,E))},urlencode:function(D){return D&&"none"!=D?D.replace(/:/g,"||").replace(/\./g,"^^").replace("url(","").replace(")","").replace(/'/g,"").replace(/"/g,""):!1},isButton:function(D){D=D.tagName.toLowerCase();return"button"==D||"input"==D},getTextStyle:function(D){var E={};E.ff=a.get(D,"fontFamily");if(E.ff){E.ff=E.ff.replace(", ",",");E.ff=E.ff.replace(/"|'/g,"");E.ff="sans-serif"==
E.ff?"Arial":E.ff;E.fw=a.get(D,"fontWeight");E.fi=a.get(D,"fontStyle");E.fs=parseInt(a.get(D,"fontSize"),10);if(-1<a.get(D,"fontSize").indexOf("%"))for(var J=D;J.tagName;){if(-1==a.get(J,"fontSize").indexOf("%")){E.fs=parseInt(a.get(J,"fontSize"),10);break}"body"==J.tagName.toLowerCase()&&(E.fs=.16*parseInt(a.get(J,"fontSize"),10));J=J.parentNode}E.fc=(new w(a.get(D,"color"))).toHex();E.fc=parseInt(E.fc.substring(1,Infinity),16)}E.lh=a.get(D,"lineHeight");E.ta=a.get(D,"textAlign");E.ta="start"!=E.ta&&
E.ta?E.ta:"left";E.va=this.isButton(D)?"middle":E.lh==E.h?"middle":a.get(D,"verticalAlign");return E},getText:function(D){D=x.trim(D.innerHTML);-1<D.indexOf("\x3c")&&(D=escape(D));return D},getStyle:function(D){var E={},J=c.getContentBox(D),I=c.getPadExtents(D);E.p=[I.t,I.w-I.l,I.h-I.t,I.l];E.w=J.w+I.w;E.h=J.h+I.h;E.d=a.get(D,"display");J=new w(a.get(D,"backgroundColor"));E.bc=0==J.a?"#ffffff":J.toHex();E.bc=parseInt(E.bc.substring(1,Infinity),16);if(J=this.urlencode(a.get(D,"backgroundImage")))E.bi=
{url:J,rp:a.get(D,"backgroundRepeat"),pos:escape(a.get(D,"backgroundPosition"))},E.bi.pos||(J=a.get(D,"backgroundPositionX"),I=a.get(D,"backgroundPositionY"),E.bi.pos=escape(("left"==J?"0%":"right"==J?"100%":J)+" "+("top"==I?"0%":"bottom"==I?"100%":I)));return x.mixin(E,this.getTextStyle(D))},getTempNodeStyle:function(D,E,J){if(J){J=m.place("\x3c"+D.tagName+"\x3e\x3cspan\x3e"+D.innerHTML+"\x3c/span\x3e\x3c/"+D.tagName+"\x3e",D.parentNode);var I=J.firstChild;k.add(I,D.className);k.add(J,E);D=this.getStyle(I)}else J=
m.place("\x3c"+D.tagName+"\x3e"+D.innerHTML+"\x3c/"+D.tagName+"\x3e",D.parentNode),k.add(J,D.className),k.add(J,E),J.id=D.id,D=this.getStyle(J);m.destroy(J);return D}})})},"dojo/io/iframe":function(){define("../_base/config ../_base/json ../_base/kernel ../_base/lang ../_base/xhr ../sniff ../_base/window ../dom ../dom-construct ../query require ../aspect ../request/iframe".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f,k){x.deprecated("dojo/io/iframe","Use dojo/request/iframe.","2.0");e=k._iframeName;
e=e.substring(0,e.lastIndexOf("_"));var m=r.delegate(k,{create:function(){return m._frame=k.create.apply(k,arguments)},get:null,post:null,send:function(p){var l=h._ioSetArgs(p,function(y){v&&v.cancel()},function(y){var z=null;y=y.ioArgs;try{var C=y.handleAs;"xml"===C||"html"===C?z=v.response.data:(z=v.response.text,"json"===C?z=A.fromJson(z):"javascript"===C&&(z=x.eval(z)))}catch(G){z=G}return z},function(y,z){z.ioArgs._hasError=!0;return y}),n=l.ioArgs,q="GET",w=d.byId(p.form);p.method&&"POST"===
p.method.toUpperCase()&&w&&(q="POST");p={method:q,handleAs:"json"===p.handleAs||"javascript"===p.handleAs?"text":p.handleAs,form:p.form,query:w?null:p.content,data:w?p.content:null,timeout:p.timeout,ioArgs:n};p.method&&(p.method=p.method.toUpperCase());if(u.ioPublish&&x.publish&&!1!==n.args.ioPublish)var t=f.after(k,"_notifyStart",function(y){y.options.ioArgs===n&&(t.remove(),h._ioNotifyStart(l))},!0);var v=k(n.url,p,!0);n._callNext=v._callNext;v.then(function(){l.resolve(l)}).otherwise(function(y){l.ioArgs.error=
y;l.reject(y)});return l},_iframeOnload:g.global[e+"_onload"]});r.setObject("dojo.io.iframe",m);return m})},"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(u,A,x,r,h,e,g,d,b,a,c,f){function k(v){return!this.isFulfilled()}function m(v){return!!this._finished}function p(v,y){if(!y)try{var z=v.options,C=n.doc(n._frame),G=z.handleAs;
if("html"!==G){if("xml"===G)if("html"===C.documentElement.tagName.toLowerCase()){d("a",C.documentElement).orphan();var B=C.documentElement.innerText||C.documentElement.textContent;B=B.replace(/>\s+</g,"\x3e\x3c");v.text=e.trim(B)}else v.data=C;else v.text=C.getElementsByTagName("textarea")[0].value;h(v)}else v.data=C}catch(D){y=D}y?this.reject(y):this._finished?this.resolve(v):this.reject(Error("Invalid dojo/request/iframe request state"))}function l(v){this._callNext()}function n(v,y,z){var C=r.parseArgs(v,
r.deepCreate(t,y),!0);v=C.url;y=C.options;if("GET"!==y.method&&"POST"!==y.method)throw Error(y.method+" not supported by dojo/request/iframe");n._frame||(n._frame=n.create(n._iframeName,w+"();"));v=r.deferred(C,null,k,m,p,l);v._callNext=function(){this._calledNext||(this._calledNext=!0,n._currentDfd=null,n._fireNextRequest())};v._legacy=z;n._dfdQueue.push(v);n._fireNextRequest();x(v);return z?v:v.promise}var q=u.id.replace(/[\/\.\-]/g,"_"),w=q+"_onload";f.global[w]||(f.global[w]=function(){var v=
n._currentDfd;if(v){var y=a.byId(v.response.options.form)||v._tmpForm;if(y){for(var z=v._contentToClean,C=0;C<z.length;C++)for(var G=z[C],B=0;B<y.childNodes.length;B++){var D=y.childNodes[B];if(D.name===G){c.destroy(D);break}}v._originalAction&&y.setAttribute("action",v._originalAction);v._originalMethod&&(y.setAttribute("method",v._originalMethod),y.method=v._originalMethod);v._originalTarget&&(y.setAttribute("target",v._originalTarget),y.target=v._originalTarget)}v._tmpForm&&(c.destroy(v._tmpForm),
delete v._tmpForm);v._finished=!0}else n._fireNextRequest()});var t={method:"POST"};n.create=function(v,y,z){if(f.global[v])return f.global[v];if(f.global.frames[v])return f.global.frames[v];z||(b("config-useXDomain")&&b("config-dojoBlankHtmlUrl"),z=b("config-dojoBlankHtmlUrl")||A.toUrl("dojo/resources/blank.html"));y=c.place('\x3ciframe id\x3d"'+v+'" name\x3d"'+v+'" src\x3d"'+z+'" onload\x3d"'+y+'" style\x3d"position: absolute; left: 1px; top: 1px; height: 1px; width: 1px; visibility: hidden"\x3e',
f.body());return f.global[v]=y};n.doc=function(v){if(v.contentDocument)return v.contentDocument;var y=v.name;if(y){var z=f.doc.getElementsByTagName("iframe");if(v.document&&z[y].contentWindow&&z[y].contentWindow.document)return z[y].contentWindow.document;if(f.doc.frames[y]&&f.doc.frames[y].document)return f.doc.frames[y].document}return null};n.setSrc=function(v,y,z){v=f.global.frames[v.name];v.contentWindow&&(v=v.contentWindow);try{z?v.location.replace(y):v.location=y}catch(C){}};n._iframeName=
q+"_IoIframe";n._notifyStart=function(){};n._dfdQueue=[];n._currentDfd=null;n._fireNextRequest=function(){try{if(!n._currentDfd&&n._dfdQueue.length){do var v=n._currentDfd=n._dfdQueue.shift();while(v&&(v.canceled||v.isCanceled&&v.isCanceled())&&n._dfdQueue.length);if(!v||v.canceled||v.isCanceled&&v.isCanceled())n._currentDfd=null;else{var y=v.response,z=y.options,C=v._contentToClean=[],G=a.byId(z.form),B=r.notify,D=z.data||null;if(!v._legacy&&"POST"===z.method&&!G)G=v._tmpForm=c.create("form",{name:q+
"_form",style:{position:"absolute",top:"-1000px",left:"-1000px"}},f.body());else if("GET"===z.method&&G&&-1<y.url.indexOf("?")){var E=y.url.slice(y.url.indexOf("?")+1);D=e.mixin(g.queryToObject(E),D)}if(G){if(!v._legacy){var J=G;do J=J.parentNode;while(J&&J!==f.doc.documentElement);J||(G.style.position="absolute",G.style.left="-1000px",G.style.top="-1000px",f.body().appendChild(G));G.name||(G.name=q+"_form")}if(D){J=function(Q,P){c.create("input",{type:"hidden",name:Q,value:P},G);C.push(Q)};for(var I in D){var F=
D[I];if(e.isArray(F)&&1<F.length)for(E=0;E<F.length;E++)J(I,F[E]);else{var H=d("input[name\x3d'"+I+"']",G);-1==H.indexOf()?J(I,F):H.val(F)}}}var K=G.getAttributeNode("action"),L=G.getAttributeNode("method"),N=G.getAttributeNode("target");y.url&&(v._originalAction=K?K.value:null,K?K.value=y.url:G.setAttribute("action",y.url));v._legacy?L&&L.value||(L?L.value=z.method:G.setAttribute("method",z.method)):(v._originalMethod=L?L.value:null,L?L.value=z.method:G.setAttribute("method",z.method));v._originalTarget=
N?N.value:null;N?N.value=n._iframeName:G.setAttribute("target",n._iframeName);G.target=n._iframeName;B&&B.emit("send",y,v.promise.cancel);n._notifyStart(y);G.submit()}else z="",y.options.data&&(z=y.options.data,"string"!==typeof z&&(z=g.objectToQuery(z))),J=y.url+(-1<y.url.indexOf("?")?"\x26":"?")+z,B&&B.emit("send",y,v.promise.cancel),n._notifyStart(y),n.setSrc(n._frame,J,!0)}}}catch(Q){v.reject(Q)}};r.addCommonMethods(n,["GET","POST"]);return n})},"dojo/NodeList-manipulate":function(){define("./query ./_base/lang ./_base/array ./dom-construct ./dom-attr ./NodeList-dom".split(" "),
function(u,A,x,r,h){function e(b){for(;b.childNodes[0]&&1==b.childNodes[0].nodeType;)b=b.childNodes[0];return b}function g(b,a){"string"==typeof b?(b=r.toDom(b,a&&a.ownerDocument),11==b.nodeType&&(b=b.childNodes[0])):1==b.nodeType&&b.parentNode&&(b=b.cloneNode(!1));return b}var d=u.NodeList;A.extend(d,{_placeMultiple:function(b,a){for(var c="string"==typeof b||b.nodeType?u(b):b,f=[],k=0;k<c.length;k++)for(var m=c[k],p=this.length,l=p-1,n;n=this[l];l--)0<k&&(n=this._cloneNode(n),f.unshift(n)),l==p-
1?r.place(n,m,a):m.parentNode.insertBefore(n,m),m=n;f.length&&(f.unshift(0),f.unshift(this.length-1),Array.prototype.splice.apply(this,f));return this},innerHTML:function(b){return arguments.length?this.addContent(b,"only"):this[0].innerHTML},text:function(b){if(arguments.length){for(var a=0,c;c=this[a];a++)1==c.nodeType&&h.set(c,"textContent",b);return this}var f="";for(a=0;c=this[a];a++)f+=h.get(c,"textContent");return f},val:function(b){if(arguments.length){for(var a=A.isArray(b),c=0,f;f=this[c];c++){var k=
f.nodeName.toUpperCase(),m=f.type,p=a?b[c]:b;if("SELECT"==k)for(k=f.options,m=0;m<k.length;m++){var l=k[m];l.selected=f.multiple?-1!=x.indexOf(b,l.value):l.value==p}else"checkbox"==m||"radio"==m?f.checked=f.value==p:f.value=p}return this}if((f=this[0])&&1==f.nodeType){b=f.value||"";if("SELECT"==f.nodeName.toUpperCase()&&f.multiple){b=[];k=f.options;for(m=0;m<k.length;m++)l=k[m],l.selected&&b.push(l.value);b.length||(b=null)}return b}},append:function(b){return this.addContent(b,"last")},appendTo:function(b){return this._placeMultiple(b,
"last")},prepend:function(b){return this.addContent(b,"first")},prependTo:function(b){return this._placeMultiple(b,"first")},after:function(b){return this.addContent(b,"after")},insertAfter:function(b){return this._placeMultiple(b,"after")},before:function(b){return this.addContent(b,"before")},insertBefore:function(b){return this._placeMultiple(b,"before")},remove:d.prototype.orphan,wrap:function(b){if(this[0]){b=g(b,this[0]);for(var a=0,c;c=this[a];a++){var f=this._cloneNode(b);c.parentNode&&c.parentNode.replaceChild(f,
c);e(f).appendChild(c)}}return this},wrapAll:function(b){if(this[0]){b=g(b,this[0]);this[0].parentNode.replaceChild(b,this[0]);b=e(b);for(var a=0,c;c=this[a];a++)b.appendChild(c)}return this},wrapInner:function(b){if(this[0]){b=g(b,this[0]);for(var a=0;a<this.length;a++){var c=this._cloneNode(b);this._wrap(A._toArray(this[a].childNodes),null,this._NodeListCtor).wrapAll(c)}}return this},replaceWith:function(b){b=this._normalize(b,this[0]);for(var a=0,c;c=this[a];a++)this._place(b,c,"before",0<a),c.parentNode.removeChild(c);
return this},replaceAll:function(b){b=u(b);for(var a=this._normalize(this,this[0]),c=0,f;f=b[c];c++)this._place(a,f,"before",0<c),f.parentNode.removeChild(f);return this},clone:function(){for(var b=[],a=0;a<this.length;a++)b.push(this._cloneNode(this[a]));return this._wrap(b,this,this._NodeListCtor)}});d.prototype.html||(d.prototype.html=d.prototype.innerHTML);return d})},"dojox/embed/Flash":function(){define("dojo/_base/lang dojo/_base/unload dojo/_base/array dojo/query dojo/has dojo/dom dojo/on dojo/window dojo/string".split(" "),
function(u,A,x,r,h,e,g,d,b){function a(l){l=u.delegate(f,l);if(!("path"in l))return null;"id"in l||(l.id="dojox-embed-flash-"+c++);return l}var c=0,f={expressInstall:!1,width:320,height:240,swLiveConnect:"true",allowScriptAccess:"sameDomain",allowNetworking:"all",style:null,redirect:null};if(h("ie")){var k=function(l){l=a(l);if(!l)return null;var n,q=l.path;if(l.vars){var w=[];for(n in l.vars)w.push(encodeURIComponent(n)+"\x3d"+encodeURIComponent(l.vars[n]));l.params.FlashVars=w.join("\x26");delete l.vars}q=
'\x3cobject id\x3d"'+b.escape(String(l.id))+'" classid\x3d"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width\x3d"'+b.escape(String(l.width))+'" height\x3d"'+b.escape(String(l.height))+'"'+(l.style?' style\x3d"'+b.escape(String(l.style))+'"':"")+'\x3e\x3cparam name\x3d"movie" value\x3d"'+b.escape(String(q))+'" /\x3e';if(l.params)for(n in l.params)q+='\x3cparam name\x3d"'+b.escape(n)+'" value\x3d"'+b.escape(String(l.params[n]))+'" /\x3e';return{id:l.id,markup:q+"\x3c/object\x3e"}};var m=function(){for(var l=
10,n=null;!n&&7<l;)try{n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+l--)}catch(q){}return n?(l=n.GetVariable("$version").split(" ")[1].split(","),{major:null!=l[0]?parseInt(l[0]):0,minor:null!=l[1]?parseInt(l[1]):0,rev:null!=l[2]?parseInt(l[2]):0}):{major:0,minor:0,rev:0}}();A.addOnWindowUnload(function(){var l=function(){};r("object").reverse().style("display","none").forEach(function(n){for(var q in n)if("FlashVars"!=q&&"function"==typeof n[q])try{n[q]=l}catch(w){}})})}else k=function(l){l=
a(l);if(!l)return null;var n,q=l.path;if(l.vars){var w=[];for(n in l.vars)w.push(encodeURIComponent(n)+"\x3d"+encodeURIComponent(l.vars[n]));l.params.flashVars=w.join("\x26");delete l.vars}q='\x3cembed type\x3d"application/x-shockwave-flash" src\x3d"'+b.escape(String(q))+'" id\x3d"'+b.escape(String(l.id))+'" width\x3d"'+b.escape(String(l.width))+'" height\x3d"'+b.escape(String(l.height))+'"'+(l.style?' style\x3d"'+b.escape(String(l.style))+'" ':"")+'pluginspage\x3d"'+window.location.protocol+'//www.adobe.com/go/getflashplayer" ';
if(l.params)for(n in l.params)q+=" "+b.escape(n)+'\x3d"'+b.escape(String(l.params[n]))+'"';return{id:l.id,markup:q+" /\x3e"}},m=function(){var l=navigator.plugins["Shockwave Flash"];return l&&l.description?(l=l.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."),{major:null!=l[0]?parseInt(l[0]):0,minor:null!=l[1]?parseInt(l[1]):0,rev:null!=l[2]?parseInt(l[2]):0}):{major:0,minor:0,rev:0}}();var p=function(l,n){if(-1<location.href.toLowerCase().indexOf("file://"))throw Error("dojox.embed.Flash can't be run directly from a file. To instatiate the required SWF correctly it must be run from a server, like localHost.");
this.available=m.major;this.minimumVersion=l.minimumVersion||9;this.domNode=this.movie=this.id=null;n&&(n=e.byId(n));setTimeout(u.hitch(this,function(){if(l.expressInstall||this.available&&this.available>=this.minimumVersion)if(l&&n)this.init(l,n);else this.onError("embed.Flash was not provided with the proper arguments.");else if(this.available)this.onError("Flash version detected: "+this.available+" is out of date. Minimum required: "+this.minimumVersion);else this.onError("Flash is not installed.")}),
100)};u.extend(p,{onReady:function(l){},onLoad:function(l){},onError:function(l){},_onload:function(){clearInterval(this._poller);delete this._poller;delete this._pollCount;delete this._pollMax;this.onLoad(this.movie)},init:function(l,n){this.destroy();n=e.byId(n||this.domNode);if(!n)throw Error("dojox.embed.Flash: no domNode reference has been passed.");var q=0;this._poller=null;this._pollCount=0;this._pollMax=15;this.pollTime=100;p.initialized&&(this.id=p.place(l,n),this.domNode=n,setTimeout(u.hitch(this,
function(){this.movie=this.byId(this.id,l.doc);this.onReady(this.movie);this._poller=setInterval(u.hitch(this,function(){try{q=this.movie.PercentLoaded()}catch(w){}if(100==q)this._onload();else if(0==q&&this._pollCount++>this._pollMax)throw clearInterval(this._poller),Error("Building SWF failed.");}),this.pollTime)}),1))},_destroy:function(){try{this.domNode.removeChild(this.movie)}catch(l){}this.id=this.movie=this.domNode=null},destroy:function(){if(this.movie){var l=u.delegate({id:!0,movie:!0,domNode:!0,
onReady:!0,onLoad:!0}),n;for(n in this)l[n]||delete this[n];this._poller?g(this,"Load",this,"_destroy"):this._destroy()}},byId:function(l,n){n=n||document;return n.embeds[l]?n.embeds[l]:n[l]?n[l]:window[l]?window[l]:document[l]?document[l]:null}});u.mixin(p,{minSupported:8,available:m.major,supported:m.major>=m.required,minimumRequired:m.required,version:m,initialized:!1,onInitialize:function(){p.initialized=!0},__ie_markup__:function(l){return k(l)},proxy:function(l,n){x.forEach(n instanceof Array?
n:[n],function(q){this[q]=u.hitch(this,function(){return function(){return eval(this.movie.CallFunction('\x3cinvoke name\x3d"'+q+'" returntype\x3d"javascript"\x3e\x3carguments\x3e'+x.map(arguments,function(w){return __flash__toXML(w)}).join("")+"\x3c/arguments\x3e\x3c/invoke\x3e"))}.apply(this,arguments||[])})},l)}});p.place=function(l,n){var q=k(l);n=e.byId(n);n||(n=d.doc.createElement("div"),n.id=q.id+"-container",d.body().appendChild(n));return q?(n.innerHTML=q.markup,q.id):null};p.onInitialize();
u.setObject("dojox.embed.Flash",p);return p})},"dojox/embed/flashVars":function(){define(["dojo"],function(u){u.deprecated("dojox.embed.flashVars","Will be removed in 2.0","2.0");var A={serialize:function(x,r){var h=function(b){"string"==typeof b&&(b=b.replace(/;/g,"_sc_"),b=b.replace(/\./g,"_pr_"),b=b.replace(/:/g,"_cl_"));return b},e=dojox.embed.flashVars.serialize,g="";if(u.isArray(r)){for(var d=0;d<r.length;d++)g+=e(x+"."+d,h(r[d]))+";";return g.replace(/;{2,}/g,";")}if(u.isObject(r)){for(d in r)g+=
e(x+"."+d,h(r[d]))+";";return g.replace(/;{2,}/g,";")}return x+":"+r}};u.setObject("dojox.embed.flashVars",A);return A})},"dojox/html/styles":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/window","dojo/_base/sniff"],function(u,A,x,r){var h=u.getObject("dojox.html",!0),e={},g={},d=[];h.insertCssRule=function(b,a,c){c=h.getDynamicStyleSheet(c);var f=b+" {"+a+"}";r("ie")?c.cssText+=f:c.sheet?c.sheet.insertRule(f,c._indicies.length):c.appendChild(x.doc.createTextNode(f));c._indicies.push(b+
" "+a);return b};h.removeCssRule=function(b,a,c){var f=-1,k,m;for(k in e)if(!c||c===k){var p=e[k];for(m=0;m<p._indicies.length;m++)if(b+" "+a===p._indicies[m]){f=m;break}if(-1<f)break}if(!p||-1===f)return!1;p._indicies.splice(f,1);r("ie")?p.removeRule(f):p.sheet&&p.sheet.deleteRule(f);return!0};h.modifyCssRule=function(b,a,c){};h.getStyleSheet=function(b){if(e[b||"default"])return e[b||"default"];if(!b)return!1;var a=h.getStyleSheets();if(a[b])return h.getStyleSheets()[b];for(var c in a)if(a[c].href&&
-1<a[c].href.indexOf(b))return a[c];return!1};h.getDynamicStyleSheet=function(b){b||(b="default");e[b]||(x.doc.createStyleSheet?(e[b]=x.doc.createStyleSheet(),9>r("ie")&&(e[b].title=b)):(e[b]=x.doc.createElement("style"),e[b].setAttribute("type","text/css"),x.doc.getElementsByTagName("head")[0].appendChild(e[b])),e[b]._indicies=[]);return e[b]};h.enableStyleSheet=function(b){if(b=h.getStyleSheet(b))b.sheet?b.sheet.disabled=!1:b.disabled=!1};h.disableStyleSheet=function(b){if(b=h.getStyleSheet(b))b.sheet?
b.sheet.disabled=!0:b.disabled=!0};h.activeStyleSheet=function(b){var a=h.getToggledStyleSheets(),c;if(1===arguments.length)A.forEach(a,function(f){f.disabled=f.title===b?!1:!0});else for(c=0;c<a.length;c++)if(!1===a[c].disabled)return a[c];return!0};h.getPreferredStyleSheet=function(){};h.getToggledStyleSheets=function(){var b;if(!d.length){var a=h.getStyleSheets();for(b in a)a[b].title&&d.push(a[b])}return d};h.getStyleSheets=function(){if(g.collected)return g;A.forEach(x.doc.styleSheets,function(b){var a=
b.sheet?b.sheet:b;b=a.title||a.href;if(r("ie"))-1===a.cssText.indexOf("#default#VML")&&(a.href?g[b]=a:a.imports.length?A.forEach(a.imports,function(c){g[c.title||c.href]=c}):g[b]=a);else{g[b]=a;g[b].id=a.ownerNode.id;b=[];try{b=a[a.cssRules?"cssRules":"rules"]}catch(c){}A.forEach(b,function(c){c.href&&(g[c.href]=c.styleSheet,g[c.href].id=a.ownerNode.id)})}});g.collected=!0;return g};return h})},"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(u){return u._base})},"dijit/WidgetSet":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","./registry"],function(u,A,x,r){var h=A("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0},add:function(e){if(this._hash[e.id])throw Error("Tried to register widget with id\x3d\x3d"+e.id+" but that id is already registered");this._hash[e.id]=e;this.length++},remove:function(e){this._hash[e]&&(delete this._hash[e],this.length--)},forEach:function(e,
g){g=g||x.global;var d=0,b;for(b in this._hash)e.call(g,this._hash[b],d++,this._hash);return this},filter:function(e,g){g=g||x.global;var d=new h,b=0,a;for(a in this._hash){var c=this._hash[a];e.call(g,c,b++,this._hash)&&d.add(c)}return d},byId:function(e){return this._hash[e]},byClass:function(e){var g=new h,d;for(d in this._hash){var b=this._hash[d];b.declaredClass==e&&g.add(b)}return g},toArray:function(){var e=[],g;for(g in this._hash)e.push(this._hash[g]);return e},map:function(e,g){return u.map(this.toArray(),
e,g)},every:function(e,g){g=g||x.global;var d=0,b;for(b in this._hash)if(!e.call(g,this._hash[b],d++,this._hash))return!1;return!0},some:function(e,g){g=g||x.global;var d=0,b;for(b in this._hash)if(e.call(g,this._hash[b],d++,this._hash))return!0;return!1}});u.forEach("forEach filter byClass map every some".split(" "),function(e){r[e]=h.prototype[e]});return h})},"dijit/_base/place":function(){define(["dojo/_base/array","dojo/_base/lang","dojo/window","../place","../main"],function(u,A,x,r,h){var e=
{getViewport:function(){return x.getBox()}};e.placeOnScreen=r.at;e.placeOnScreenAroundElement=function(g,d,b,a){if(A.isArray(b))var c=b;else{c=[];for(var f in b)c.push({aroundCorner:f,corner:b[f]})}return r.around(g,d,c,!0,a)};e.placeOnScreenAroundNode=e.placeOnScreenAroundElement;e.placeOnScreenAroundRectangle=e.placeOnScreenAroundElement;e.getPopupAroundAlignment=function(g,d){var b={};u.forEach(g,function(a){var c=d;switch(a){case "after":b[d?"BR":"BL"]=d?"BL":"BR";break;case "before":b[d?"BL":
"BR"]=d?"BR":"BL";break;case "below-alt":c=!c;case "below":b[c?"BL":"BR"]=c?"TL":"TR";b[c?"BR":"BL"]=c?"TR":"TL";break;case "above-alt":c=!c;default:b[c?"TL":"TR"]=c?"BL":"BR",b[c?"TR":"TL"]=c?"BR":"BL"}});return b};A.mixin(h,e);return h})},"dijit/_base/scroll":function(){define(["dojo/window","../main"],function(u,A){A.scrollIntoView=function(x,r){u.scrollIntoView(x,r)}})},"dijit/_base/sniff":function(){define(["dojo/uacss"],function(){})},"dijit/_base/typematic":function(){define(["../typematic"],
function(){})},"dijit/_base/wai":function(){define(["dojo/dom-attr","dojo/_base/lang","../main","../hccss"],function(u,A,x){A.mixin(x,{hasWaiRole:function(r,h){var e=this.getWaiRole(r);return h?-1<e.indexOf(h):0<e.length},getWaiRole:function(r){return A.trim((u.get(r,"role")||"").replace("wairole:",""))},setWaiRole:function(r,h){u.set(r,"role",h)},removeWaiRole:function(r,h){var e=u.get(r,"role");e&&(h?(e=A.trim((" "+e+" ").replace(" "+h+" "," ")),u.set(r,"role",e)):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,e){r.setAttribute("aria-"+h,e)},removeWaiState:function(r,h){r.removeAttribute("aria-"+h)}});return x})},"dijit/_base/window":function(){define(["dojo/window","../main"],function(u,A){A.getDocumentWindow=function(x){return u.get(x)}})},"dojo/dnd/Source":function(){define("../_base/array ../_base/declare ../_base/kernel ../_base/lang ../dom-class ../dom-geometry ../mouse ../ready ../topic ./common ./Selector ./Manager".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f){x.isAsync||d(0,function(){require(["dojo/dnd/AutoSource","dojo/dnd/Target"])});var k=A("dojo.dnd.Source",c,{isSource:!0,horizontal:!1,copyOnly:!1,selfCopy:!1,selfAccept:!0,skipForm:!1,withHandles:!1,autoSync:!1,delay:0,accept:["text"],generateText:!0,constructor:function(m,p){r.mixin(this,r.mixin({},p));var l=this.accept;if(l.length){this.accept={};for(var n=0;n<l.length;++n)this.accept[l[n]]=1}this.mouseDown=this.isDragging=!1;this.targetBox=this.targetAnchor=null;
this.before=!0;this._lastY=this._lastX=0;this.sourceState="";this.isSource&&h.add(this.node,"dojoDndSource");this.targetState="";this.accept&&h.add(this.node,"dojoDndTarget");this.horizontal&&h.add(this.node,"dojoDndHorizontal");this.topics=[b.subscribe("/dnd/source/over",r.hitch(this,"onDndSourceOver")),b.subscribe("/dnd/start",r.hitch(this,"onDndStart")),b.subscribe("/dnd/drop",r.hitch(this,"onDndDrop")),b.subscribe("/dnd/cancel",r.hitch(this,"onDndCancel"))]},checkAcceptance:function(m,p){if(this==
m)return!this.copyOnly||this.selfAccept;for(var l=0;l<p.length;++l){for(var n=m.getItem(p[l].id).type,q=!1,w=0;w<n.length;++w)if(n[w]in this.accept){q=!0;break}if(!q)return!1}return!0},copyState:function(m,p){if(m)return!0;2>arguments.length&&(p=this==f.manager().target);if(p){if(this.copyOnly)return this.selfCopy}else return this.copyOnly;return!1},destroy:function(){k.superclass.destroy.call(this);u.forEach(this.topics,function(m){m.remove()});this.targetAnchor=null},onMouseMove:function(m){if(!this.isDragging||
"Disabled"!=this.targetState){k.superclass.onMouseMove.call(this,m);var p=f.manager();if(!this.isDragging&&this.mouseDown&&this.isSource&&(Math.abs(m.pageX-this._lastX)>this.delay||Math.abs(m.pageY-this._lastY)>this.delay)){var l=this.getSelectedNodes();l.length&&p.startDrag(this,l,this.copyState(a.getCopyKeyState(m),!0))}this.isDragging&&(l=!1,this.current&&(this.targetBox&&this.targetAnchor==this.current||(this.targetBox=e.position(this.current,!0)),l=this.horizontal?m.pageX-this.targetBox.x<this.targetBox.w/
2==e.isBodyLtr(this.current.ownerDocument):m.pageY-this.targetBox.y<this.targetBox.h/2),this.current!=this.targetAnchor||l!=this.before)&&(this._markTargetAnchor(l),p.canDrop(!this.current||p.source!=this||!(this.current.id in this.selection)))}},onMouseDown:function(m){this.mouseDown||!this._legalMouseDown(m)||this.skipForm&&a.isFormElement(m)||(this.mouseDown=!0,this._lastX=m.pageX,this._lastY=m.pageY,k.superclass.onMouseDown.call(this,m))},onMouseUp:function(m){this.mouseDown&&(this.mouseDown=
!1,k.superclass.onMouseUp.call(this,m))},onDndSourceOver:function(m){this!==m?(this.mouseDown=!1,this.targetAnchor&&this._unmarkTargetAnchor()):this.isDragging&&(m=f.manager(),m.canDrop("Disabled"!=this.targetState&&(!this.current||m.source!=this||!(this.current.id in this.selection))))},onDndStart:function(m,p,l){this.autoSync&&this.sync();this.isSource&&this._changeState("Source",this==m?l?"Copied":"Moved":"");p=this.accept&&this.checkAcceptance(m,p);this._changeState("Target",p?"":"Disabled");
this==m&&f.manager().overSource(this);this.isDragging=!0},onDndDrop:function(m,p,l,n){if(this==n)this.onDrop(m,p,l);this.onDndCancel()},onDndCancel:function(){this.targetAnchor&&(this._unmarkTargetAnchor(),this.targetAnchor=null);this.before=!0;this.mouseDown=this.isDragging=!1;this._changeState("Source","");this._changeState("Target","")},onDrop:function(m,p,l){if(this!=m)this.onDropExternal(m,p,l);else this.onDropInternal(p,l)},onDropExternal:function(m,p,l){var n=this._normalizedCreator;this._normalizedCreator=
this.creator?function(q,w){return n.call(this,m.getItem(q.id).data,w)}:l?function(q){var w=m.getItem(q.id);q=q.cloneNode(!0);q.id=a.getUniqueId();return{node:q,data:w.data,type:w.type}}:function(q){var w=m.getItem(q.id);m.delItem(q.id);return{node:q,data:w.data,type:w.type}};this.selectNone();l||this.creator||m.selectNone();this.insertNodes(!0,p,this.before,this.current);!l&&this.creator&&m.deleteSelectedNodes();this._normalizedCreator=n},onDropInternal:function(m,p){var l=this._normalizedCreator;
if(!(this.current&&this.current.id in this.selection)){if(p)this._normalizedCreator=this.creator?function(n,q){return l.call(this,this.getItem(n.id).data,q)}:function(n){var q=this.getItem(n.id);n=n.cloneNode(!0);n.id=a.getUniqueId();return{node:n,data:q.data,type:q.type}};else{if(!this.current)return;this._normalizedCreator=function(n){var q=this.getItem(n.id);return{node:n,data:q.data,type:q.type}}}this._removeSelection();this.insertNodes(!0,m,this.before,this.current);this._normalizedCreator=l}},
onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){k.superclass.onOverEvent.call(this);f.manager().overSource(this);if(this.isDragging&&"Disabled"!=this.targetState)this.onDraggingOver()},onOutEvent:function(){k.superclass.onOutEvent.call(this);f.manager().outSource(this);if(this.isDragging&&"Disabled"!=this.targetState)this.onDraggingOut()},_markTargetAnchor:function(m){if(this.current!=this.targetAnchor||this.before!=m)this.targetAnchor&&this._removeItemClass(this.targetAnchor,
this.before?"Before":"After"),this.targetAnchor=this.current,this.targetBox=null,this.before=m,this.targetAnchor&&this._addItemClass(this.targetAnchor,this.before?"Before":"After")},_unmarkTargetAnchor:function(){this.targetAnchor&&(this._removeItemClass(this.targetAnchor,this.before?"Before":"After"),this.targetBox=this.targetAnchor=null,this.before=!0)},_markDndStatus:function(m){this._changeState("Source",m?"Copied":"Moved")},_legalMouseDown:function(m){if("touchstart"!=m.type&&!g.isLeft(m))return!1;
if(!this.withHandles)return!0;for(m=m.target;m&&m!==this.node;m=m.parentNode){if(h.contains(m,"dojoDndHandle"))return!0;if(h.contains(m,"dojoDndItem")||h.contains(m,"dojoDndIgnore"))break}return!1}});return k})},"dojo/dnd/Selector":function(){define("../_base/array ../_base/declare ../_base/kernel ../_base/lang ../dom ../dom-construct ../mouse ../_base/NodeList ../on ../touch ./common ./Container".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f){var k=A("dojo.dnd.Selector",f,{constructor:function(m,p){p||
(p={});this.singular=p.singular;this.autoSync=p.autoSync;this.selection={};this.anchor=null;this.simpleSelection=!1;this.events.push(b(this.node,a.press,r.hitch(this,"onMouseDown")),b(this.node,a.release,r.hitch(this,"onMouseUp")))},singular:!1,getSelectedNodes:function(){var m=new d,p=c._empty,l;for(l in this.selection)l in p||m.push(h.byId(l));return m},selectNone:function(){return this._removeSelection()._removeAnchor()},selectAll:function(){this.forInItems(function(m,p){this._addItemClass(h.byId(p),
"Selected");this.selection[p]=1},this);return this._removeAnchor()},deleteSelectedNodes:function(){var m=c._empty,p;for(p in this.selection)if(!(p in m)){var l=h.byId(p);this.delItem(p);e.destroy(l)}this.anchor=null;this.selection={};return this},forInSelectedItems:function(m,p){p=p||x.global;var l=this.selection,n=c._empty,q;for(q in l)q in n||m.call(p,this.getItem(q),q,this)},sync:function(){k.superclass.sync.call(this);this.anchor&&!this.getItem(this.anchor.id)&&(this.anchor=null);var m=[],p=c._empty,
l;for(l in this.selection)l in p||this.getItem(l)||m.push(l);u.forEach(m,function(n){delete this.selection[n]},this);return this},insertNodes:function(m,p,l,n){var q=this._normalizedCreator;this._normalizedCreator=function(w,t){var v=q.call(this,w,t);m?(this.anchor?this.anchor!=v.node&&(this._removeItemClass(v.node,"Anchor"),this._addItemClass(v.node,"Selected")):(this.anchor=v.node,this._removeItemClass(v.node,"Selected"),this._addItemClass(this.anchor,"Anchor")),this.selection[v.node.id]=1):(this._removeItemClass(v.node,
"Selected"),this._removeItemClass(v.node,"Anchor"));return v};k.superclass.insertNodes.call(this,p,l,n);this._normalizedCreator=q;return this},destroy:function(){k.superclass.destroy.call(this);this.selection=this.anchor=null},onMouseDown:function(m){this.autoSync&&this.sync();if(this.current)if(!this.singular&&!c.getCopyKeyState(m)&&!m.shiftKey&&this.current.id in this.selection)this.simpleSelection=!0,g.isLeft(m)&&(m.stopPropagation(),m.preventDefault());else{if(!this.singular&&m.shiftKey){c.getCopyKeyState(m)||
this._removeSelection();var p=this.getAllNodes();if(p.length&&(this.anchor||(this.anchor=p[0],this._addItemClass(this.anchor,"Anchor")),this.selection[this.anchor.id]=1,this.anchor!=this.current)){for(var l=0,n;l<p.length&&(n=p[l],n!=this.anchor&&n!=this.current);++l);for(++l;l<p.length;++l){n=p[l];if(n==this.anchor||n==this.current)break;this._addItemClass(n,"Selected");this.selection[n.id]=1}this._addItemClass(this.current,"Selected");this.selection[this.current.id]=1}}else this.singular?this.anchor==
this.current?c.getCopyKeyState(m)&&this.selectNone():(this.selectNone(),this.anchor=this.current,this._addItemClass(this.anchor,"Anchor"),this.selection[this.current.id]=1):c.getCopyKeyState(m)?this.anchor==this.current?(delete this.selection[this.anchor.id],this._removeAnchor()):this.current.id in this.selection?(this._removeItemClass(this.current,"Selected"),delete this.selection[this.current.id]):(this.anchor&&(this._removeItemClass(this.anchor,"Anchor"),this._addItemClass(this.anchor,"Selected")),
this.anchor=this.current,this._addItemClass(this.current,"Anchor"),this.selection[this.current.id]=1):this.current.id in this.selection||(this.selectNone(),this.anchor=this.current,this._addItemClass(this.current,"Anchor"),this.selection[this.current.id]=1);m.stopPropagation();m.preventDefault()}},onMouseUp:function(){this.simpleSelection&&(this.simpleSelection=!1,this.selectNone(),this.current&&(this.anchor=this.current,this._addItemClass(this.anchor,"Anchor"),this.selection[this.current.id]=1))},
onMouseMove:function(){this.simpleSelection=!1},onOverEvent:function(){this.onmousemoveEvent=b(this.node,a.move,r.hitch(this,"onMouseMove"))},onOutEvent:function(){this.onmousemoveEvent&&(this.onmousemoveEvent.remove(),delete this.onmousemoveEvent)},_removeSelection:function(){var m=c._empty,p;for(p in this.selection)if(!(p in m)){var l=h.byId(p);l&&this._removeItemClass(l,"Selected")}this.selection={};return this},_removeAnchor:function(){this.anchor&&(this._removeItemClass(this.anchor,"Anchor"),
this.anchor=null);return this}});return k})},"dojo/dnd/Container":function(){define("../_base/array ../_base/declare ../_base/kernel ../_base/lang ../_base/window ../dom ../dom-class ../dom-construct ../Evented ../has ../on ../query ../touch ./common".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f,k,m){A=A("dojo.dnd.Container",b,{skipForm:!1,allowNested:!1,constructor:function(p,l){this.node=e.byId(p);l||(l={});this.creator=l.creator||null;this.skipForm=l.skipForm;this.parent=l.dropParent&&e.byId(l.dropParent);
this.map={};this.current=null;this.containerState="";g.add(this.node,"dojoDndContainer");l&&l._skipStartup||this.startup();this.events=[c(this.node,k.over,r.hitch(this,"onMouseOver")),c(this.node,k.out,r.hitch(this,"onMouseOut")),c(this.node,"dragstart",r.hitch(this,"onSelectStart")),c(this.node,"selectstart",r.hitch(this,"onSelectStart"))]},creator:function(){},getItem:function(p){return this.map[p]},setItem:function(p,l){this.map[p]=l},delItem:function(p){delete this.map[p]},forInItems:function(p,
l){l=l||x.global;var n=this.map,q=m._empty,w;for(w in n)w in q||p.call(l,n[w],w,this);return l},clearItems:function(){this.map={}},getAllNodes:function(){return f((this.allowNested?"":"\x3e ")+".dojoDndItem",this.parent)},sync:function(){var p={};this.getAllNodes().forEach(function(l){if(l.id){var n=this.getItem(l.id);if(n){p[l.id]=n;return}}else l.id=m.getUniqueId();n=l.getAttribute("dndType");var q=l.getAttribute("dndData");p[l.id]={data:q||l.innerHTML,type:n?n.split(/\s*,\s*/):["text"]}},this);
this.map=p;return this},insertNodes:function(p,l,n){this.parent.firstChild?l?n||(n=this.parent.firstChild):n&&(n=n.nextSibling):n=null;if(n)for(l=0;l<p.length;++l){var q=this._normalizedCreator(p[l]);this.setItem(q.node.id,{data:q.data,type:q.type});n.parentNode.insertBefore(q.node,n)}else for(l=0;l<p.length;++l)q=this._normalizedCreator(p[l]),this.setItem(q.node.id,{data:q.data,type:q.type}),this.parent.appendChild(q.node);return this},destroy:function(){u.forEach(this.events,function(p){p.remove()});
this.clearItems();this.node=this.parent=this.current=null},markupFactory:function(p,l,n){p._skipStartup=!0;return new n(l,p)},startup:function(){if(!this.parent&&(this.parent=this.node,"table"==this.parent.tagName.toLowerCase())){var p=this.parent.getElementsByTagName("tbody");p&&p.length&&(this.parent=p[0])}this.defaultCreator=m._defaultCreator(this.parent);this.sync()},onMouseOver:function(p){for(var l=p.relatedTarget;l&&l!=this.node;)try{l=l.parentNode}catch(n){l=null}l||(this._changeState("Container",
"Over"),this.onOverEvent());l=this._getChildByEvent(p);this.current!=l&&(this.current&&this._removeItemClass(this.current,"Over"),l&&this._addItemClass(l,"Over"),this.current=l)},onMouseOut:function(p){for(p=p.relatedTarget;p;){if(p==this.node)return;try{p=p.parentNode}catch(l){p=null}}this.current&&(this._removeItemClass(this.current,"Over"),this.current=null);this._changeState("Container","");this.onOutEvent()},onSelectStart:function(p){this.withHandles||this.skipForm&&m.isFormElement(p)||(p.stopPropagation(),
p.preventDefault())},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(p,l){var n="dojoDnd"+p,q=p.toLowerCase()+"State";g.replace(this.node,n+l,n+this[q]);this[q]=l},_addItemClass:function(p,l){g.add(p,"dojoDndItem"+l)},_removeItemClass:function(p,l){g.remove(p,"dojoDndItem"+l)},_getChildByEvent:function(p){if(p=p.target)for(var l=p.parentNode;l;p=l,l=p.parentNode)if((l==this.parent||this.allowNested)&&g.contains(p,"dojoDndItem"))return p;return null},_normalizedCreator:function(p,
l){var n=(this.creator||this.defaultCreator).call(this,p,l);r.isArray(n.type)||(n.type=["text"]);n.node.id||(n.node.id=m.getUniqueId());g.add(n.node,"dojoDndItem");return n}});m._createNode=function(p){return p?function(l){return d.create(p,{innerHTML:l})}:m._createSpan};m._createTrTd=function(p){var l=d.create("tr");d.create("td",{innerHTML:p},l);return l};m._createSpan=function(p){return d.create("span",{innerHTML:p})};m._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};m._defaultCreator=
function(p){p=p.tagName.toLowerCase();var l="tbody"==p||"thead"==p?m._createTrTd:m._createNode(m._defaultCreatorNodes[p]);return function(n,q){var w=n&&r.isObject(n);if(w&&n.tagName&&n.nodeType&&n.getAttribute){var t=n.getAttribute("dndData")||n.innerHTML;w=(w=n.getAttribute("dndType"))?w.split(/\s*,\s*/):["text"];var v=n}else t=w&&n.data?n.data:n,w=w&&n.type?n.type:["text"],v=("avatar"==q?m._createSpan:l)(String(t));v.id||(v.id=m.getUniqueId());return{node:v,data:t,type:w}}};return A})},"dojo/dnd/AutoSource":function(){define(["../_base/declare",
"./Source"],function(u,A){return u("dojo.dnd.AutoSource",A,{constructor:function(){this.autoSync=!0}})})},"dojo/dnd/Target":function(){define(["../_base/declare","../dom-class","./Source"],function(u,A,x){return u("dojo.dnd.Target",x,{constructor:function(){this.isSource=!1;A.remove(this.node,"dojoDndSource")}})})},"dojox/grid/DataGrid":function(){define("../main dojo/_base/array dojo/_base/lang dojo/_base/json dojo/_base/sniff dojo/_base/declare ./_Grid ./DataSelection dojo/_base/html dojo/has dojo/has!dojo-bidi?./bidi/_BidiMixin".split(" "),
function(u,A,x,r,h,e,g,d,b){var a=e("dojox.grid.DataGrid",g,{store:null,query:null,queryOptions:null,fetchText:"...",sortFields:null,updateDelay:1,items:null,_store_connects:null,_by_idty:null,_by_idx:null,_cache:null,_pages:null,_pending_requests:null,_bop:-1,_eop:-1,_requests:0,rowCount:0,_isLoaded:!1,_isLoading:!1,keepSelection:!1,postCreate:function(){this._pages=[];this._store_connects=[];this._by_idty={};this._by_idx=[];this._cache=[];this._pending_requests={};this._setStore(this.store);this.inherited(arguments)},
destroy:function(){this.selection.destroy();this.inherited(arguments)},createSelection:function(){this.selection=new d(this)},get:function(c,f){if(f&&"_item"==this.field&&!this.fields)return f;if(f&&this.fields){var k=[],m=this.grid.store;A.forEach(this.fields,function(p){k=k.concat(m.getValues(f,p))});return k}return f||"string"!==typeof c?f?this.field?"_item"==this.field?f:this.grid.store.getValue(f,this.field):this.value:this.defaultValue:this.inherited(arguments)},_checkUpdateStatus:function(){if(0<
this.updateDelay){var c=!1;this._endUpdateDelay&&(clearTimeout(this._endUpdateDelay),delete this._endUpdateDelay,c=!0);this.updating||(this.beginUpdate(),c=!0);if(c){var f=this;this._endUpdateDelay=setTimeout(function(){delete f._endUpdateDelay;f.endUpdate()},this.updateDelay)}}},_onSet:function(c,f,k,m){this._checkUpdateStatus();c=this.getItemIndex(c);-1<c&&this.updateRow(c)},_createItem:function(c,f){var k=this._hasIdentity?this.store.getIdentity(c):r.toJson(this.query)+":idx:"+f+":sort:"+r.toJson(this.getSortProps());
return this._by_idty[k]={idty:k,item:c}},_addItem:function(c,f,k){this._by_idx[f]=this._createItem(c,f);k||this.updateRow(f)},_onNew:function(c,f){this._checkUpdateStatus();var k=this.get("rowCount");this._addingItem=!0;this.updateRowCount(k+1);this._addingItem=!1;this._addItem(c,k);this.showMessage()},_onDelete:function(c){this._checkUpdateStatus();c=this._getItemIndex(c,!0);if(0<=c){this._pages=[];this._eop=this._bop=-1;var f=this._by_idx[c];this._by_idx.splice(c,1);delete this._by_idty[f.idty];
this.updateRowCount(this.get("rowCount")-1);0===this.get("rowCount")&&this.showMessage(this.noDataMessage)}this.selection.isSelected(c)&&(this.selection.deselect(c),this.selection.selected.splice(c,1))},_onRevert:function(){this._refresh()},setStore:function(c,f,k){this._requestsPending(0)||(this._setQuery(f,k),this._setStore(c),this._refresh(!0))},setQuery:function(c,f){this._requestsPending(0)||(this._setQuery(c,f),this._refresh(!0))},setItems:function(c){this.items=c;this._setStore(this.store);
this._refresh(!0)},_setQuery:function(c,f){this.query=c;this.queryOptions=f||this.queryOptions},_setStore:function(c){this.store&&this._store_connects&&A.forEach(this._store_connects,this.disconnect,this);if(this.store=c){c=this.store.getFeatures();var f=[];this._canEdit=!!c["dojo.data.api.Write"]&&!!c["dojo.data.api.Identity"];this._hasIdentity=!!c["dojo.data.api.Identity"];c["dojo.data.api.Notification"]&&!this.items&&(f.push(this.connect(this.store,"onSet","_onSet")),f.push(this.connect(this.store,
"onNew","_onNew")),f.push(this.connect(this.store,"onDelete","_onDelete")));this._canEdit&&f.push(this.connect(this.store,"revert","_onRevert"));this._store_connects=f}},_onFetchBegin:function(c,f){this.scroller&&(this.rowCount!=c&&(f.isRender?(this.scroller.init(c,this.keepRows,this.rowsPerPage),this.rowCount=c,this._setAutoHeightAttr(this.autoHeight,!0),this._skipRowRenormalize=!0,this.prerender(),this._skipRowRenormalize=!1):this.updateRowCount(c)),c?this.showMessage():(this.views.render(),this._resize(),
this.showMessage(this.noDataMessage),this.focus.initFocusView()))},_onFetchComplete:function(c,f){this.scroller&&(c&&0<c.length&&(A.forEach(c,function(k,m){this._addItem(k,f.start+m,!0)},this),this.updateRows(f.start,c.length),f.isRender?(this.setScrollTop(0),this.postrender()):this._lastScrollTop&&this.setScrollTop(this._lastScrollTop),h("ie")&&b.setSelectable(this.domNode,this.selectable)),delete this._lastScrollTop,this._isLoaded||(this._isLoading=!1,this._isLoaded=!0),this._pending_requests[f.start]=
!1)},_onFetchError:function(c,f){delete this._lastScrollTop;this._isLoaded||(this._isLoading=!1,this._isLoaded=!0,this.showMessage(this.errorMessage));this._pending_requests[f.start]=!1;this.onFetchError(c,f)},onFetchError:function(c,f){},_fetch:function(c,f){c=c||0;if(this.store&&!this._pending_requests[c]){this._isLoaded||this._isLoading||(this._isLoading=!0,this.showMessage(this.loadingMessage));this._pending_requests[c]=!0;try{if(this.items){var k=this.items,m=this.store;this.rowsPerPage=k.length;
var p={start:c,count:this.rowsPerPage,isRender:f};this._onFetchBegin(k.length,p);var l=0;A.forEach(k,function(q){m.isItemLoaded(q)||l++});if(0===l)this._onFetchComplete(k,p);else{var n=function(q){l--;0===l&&this._onFetchComplete(k,p)};A.forEach(k,function(q){m.isItemLoaded(q)||m.loadItem({item:q,onItem:n,scope:this})},this)}}else this.store.fetch({start:c,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:f,onBegin:x.hitch(this,"_onFetchBegin"),
onComplete:x.hitch(this,"_onFetchComplete"),onError:x.hitch(this,"_onFetchError")})}catch(q){this._onFetchError(q,{start:c,count:this.rowsPerPage})}}},_clearData:function(){this.updateRowCount(0);this._by_idty={};this._by_idx=[];this._pages=[];this._bop=this._eop=-1;this._isLoading=this._isLoaded=!1},getItem:function(c){var f=this._by_idx[c];return!f||f&&!f.item?(this._preparePage(c),null):f.item},getItemIndex:function(c){return this._getItemIndex(c,!1)},_getItemIndex:function(c,f){if(!f&&!this.store.isItem(c))return-1;
for(var k=this._hasIdentity?this.store.getIdentity(c):null,m=0,p=this._by_idx.length;m<p;m++){var l=this._by_idx[m];if(l&&(k&&l.idty==k||l.item===c))return m}return-1},filter:function(c,f){this.query=c;f&&this._clearData();this._fetch()},_getItemAttr:function(c,f){var k=this.getItem(c);return k?this.store.getValue(k,f):this.fetchText},_render:function(){this.domNode.parentNode&&(this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage),this.prerender(),this._fetch(0,!0))},_requestsPending:function(c){return this._pending_requests[c]},
_rowToPage:function(c){return this.rowsPerPage?Math.floor(c/this.rowsPerPage):c},_pageToRow:function(c){return this.rowsPerPage?this.rowsPerPage*c:c},_preparePage:function(c){(c<this._bop||c>=this._eop)&&!this._addingItem&&(c=this._rowToPage(c),this._needPage(c),this._bop=c*this.rowsPerPage,this._eop=this._bop+(this.rowsPerPage||this.get("rowCount")))},_needPage:function(c){this._pages[c]||(this._pages[c]=!0,this._requestPage(c))},_requestPage:function(c){c=this._pageToRow(c);0<Math.min(this.rowsPerPage,
this.get("rowCount")-c)&&(this._requests++,this._requestsPending(c)||setTimeout(x.hitch(this,"_fetch",c,!1),1))},getCellName:function(c){return c.field},_refresh:function(c){this._clearData();this._fetch(0,c)},sort:function(){this.edit.apply();this._lastScrollTop=this.scrollTop;this._refresh()},canSort:function(){return!this._isLoading},getSortProps:function(){var c=this.getCell(this.getSortIndex());if(c){var f=c.sortDesc,k=!(0<this.sortInfo);return[{attribute:c.field,descending:"undefined"==typeof f?
k:k?!f:f}]}return this.sortFields?this.sortFields:null},styleRowState:function(c){if(this.store&&this.store.getState){for(var f=this.store.getState(c.index),k="",m=0,p=["inflight","error","inserting"],l;l=p[m];m++)if(f[l]){k=" dojoxGridRow-"+l;break}c.customClasses+=k}},onStyleRow:function(c){this.styleRowState(c);this.inherited(arguments)},canEdit:function(c,f){return this._canEdit},_copyAttr:function(c,f){var k=this.getItem(c);return this.store.getValue(k,f)},doStartEdit:function(c,f){this._cache[f]||
(this._cache[f]=this._copyAttr(f,c.field));this.onStartEdit(c,f)},doApplyCellEdit:function(c,f,k){this.store.fetchItemByIdentity({identity:this._by_idx[f].idty,onItem:x.hitch(this,function(m){var p=this.store.getValue(m,k);"number"==typeof p?c=isNaN(c)?c:parseFloat(c):"boolean"==typeof p?c="true"==c?!0:"false"==c?!1:c:p instanceof Date&&(p=new Date(c),c=isNaN(p.getTime())?c:p);this.store.setValue(m,k,c);this.onApplyCellEdit(c,f,k)})})},doCancelEdit:function(c){this._cache[c]&&(this.updateRow(c),delete this._cache[c]);
this.onCancelEdit.apply(this,arguments)},doApplyEdit:function(c,f){this.onApplyEdit(c)},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var c=x.hitch(this,function(f){f.length&&(A.forEach(f,this.store.deleteItem,this.store),this.selection.clear())});this.allItemsSelected?this.store.fetch({query:this.query,queryOptions:this.queryOptions,onComplete:c}):c(this.selection.getSelected())}}});a.cell_markupFactory=function(c,f,k){var m=x.trim(b.attr(f,"field")||"");m&&(k.field=m);k.field=
k.field||k.name;if(m=x.trim(b.attr(f,"fields")||""))k.fields=m.split(",");c&&c(f,k)};a.markupFactory=function(c,f,k,m){return g.markupFactory(c,f,k,x.partial(a.cell_markupFactory,m))};return a})},"dojox/grid/_Grid":function(){define("dojo/_base/kernel ../main dojo/_base/declare ./_Events ./_Scroller ./_Layout ./_View ./_ViewManager ./_RowManager ./_FocusManager ./_EditManager ./Selection ./_RowSelector ./util dijit/_Widget dijit/_TemplatedMixin dijit/CheckedMenuItem dojo/text!./resources/_Grid.html dojo/string dojo/_base/array dojo/_base/lang dojo/_base/sniff dojox/html/metrics dojo/_base/html dojo/query dojo/dnd/common dojo/i18n!dijit/nls/loading".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n,q,w,t,v,y,z,C,G){u.isCopyKey||(u.isCopyKey=u.dnd.getCopyKeyState);x=x("dojox.grid._Grid",[p,l,r],{templateString:q,classTag:"dojoxGrid",rowCount:5,keepRows:75,rowsPerPage:25,autoWidth:!1,initialWidth:"",autoHeight:"",rowHeight:0,autoRender:!0,defaultHeight:"15em",height:"",structure:null,elasticView:-1,singleClickEdit:!1,selectionMode:"extended",rowSelector:"",columnReordering:!1,headerMenu:null,placeholderLabel:"GridColumns",selectable:!1,_click:null,loadingMessage:"\x3cspan class\x3d'dojoxGridLoading'\x3e${loadingState}\x3c/span\x3e",
errorMessage:"\x3cspan class\x3d'dojoxGridError'\x3e${errorState}\x3c/span\x3e",noDataMessage:"",escapeHTMLInData:!0,formatterScope:null,editable:!1,summary:"",_setSummaryAttr:"domNode",sortInfo:0,_placeholders:null,_layoutClass:e,buildRendering:function(){this.inherited(arguments);this.domNode.getAttribute("tabIndex")||(this.domNode.tabIndex="0");this.createScroller();this.createLayout();this.createViews();this.createManagers();this.createSelection();this.connect(this.selection,"onSelected","onSelected");
this.connect(this.selection,"onDeselected","onDeselected");this.connect(this.selection,"onChanged","onSelectionChanged");z.initOnFontResize();this.connect(z,"onFontResize","textSizeChanged");m.funnelEvents(this.domNode,this,"doKeyEvent",m.keyEvents);"none"!=this.selectionMode&&this.domNode.setAttribute("aria-multiselectable","single"==this.selectionMode?"false":"true");C.addClass(this.domNode,this.classTag);this.isLeftToRight()||C.addClass(this.domNode,this.classTag+"Rtl");0<this.rowHeight&&C.addClass(this.viewsNode,
this.classTag+"FixedRowHeight")},postMixInProperties:function(){this.inherited(arguments);var B=u.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=w.substitute(this.loadingMessage,B);this.errorMessage=w.substitute(this.errorMessage,B);this.srcNodeRef&&this.srcNodeRef.style.height&&(this.height=this.srcNodeRef.style.height);this._setAutoHeightAttr(this.autoHeight,!0);this.lastScrollTop=this.scrollTop=0},postCreate:function(){this._placeholders=[];this._setHeaderMenuAttr(this.headerMenu);
this._setStructureAttr(this.structure);this._click=[];this.inherited(arguments);this.domNode&&this.autoWidth&&this.initialWidth&&(this.domNode.style.width=this.initialWidth);this.domNode&&!this.editable&&C.attr(this.domNode,"aria-readonly","true")},destroy:function(){this.domNode.onReveal=null;this.domNode.onSizeChange=null;delete this._click;this.scroller&&(this.scroller.destroy(),delete this.scroller);this.edit.destroy();delete this.edit;this.views.destroyViews();this.focus&&(this.focus.destroy(),
delete this.focus);this.headerMenu&&this._placeholders.length&&(t.forEach(this._placeholders,function(B){B.unReplace(!0)}),this.headerMenu.unBindDomNode(this.viewsHeaderNode));this.inherited(arguments)},_setAutoHeightAttr:function(B,D){"string"==typeof B&&(B=B&&"false"!=B?"true"==B?!0:window.parseInt(B,10):!1);"number"==typeof B&&(isNaN(B)&&(B=!1),0>B?B=!0:0===B&&(B=!1));this.autoHeight=B;this._autoHeight="boolean"==typeof B?B:"number"==typeof B?B>=this.get("rowCount"):!1;this._started&&!D&&this.render()},
_getRowCountAttr:function(){return this.updating&&this.invalidated&&void 0!=this.invalidated.rowCount?this.invalidated.rowCount:this.rowCount},textSizeChanged:function(){this.render()},sizeChange:function(){this.update()},createManagers:function(){this.rows=new b(this);this.focus=new a(this);this.edit=new c(this)},createSelection:function(){this.selection=new f(this)},createScroller:function(){this.scroller=new h;this.scroller.grid=this;this.scroller.renderRow=v.hitch(this,"renderRow");this.scroller.removeRow=
v.hitch(this,"rowRemoved")},createLayout:function(){this.layout=new this._layoutClass(this);this.connect(this.layout,"moveColumn","onMoveColumn")},onMoveColumn:function(){this.update()},onResizeColumn:function(B){},createViews:function(){this.views=new d(this);this.views.createView=v.hitch(this,"createView")},createView:function(B,D){var E=new (v.getObject(B))({grid:this,index:D});this.viewsNode.appendChild(E.domNode);this.viewsHeaderNode.appendChild(E.headerNode);this.views.addView(E);C.attr(this.domNode,
"align",this.isLeftToRight()?"left":"right");return E},buildViews:function(){for(var B=0,D;D=this.layout.structure[B];B++)this.createView(D.type||A._scopeName+".grid._View",B).setStructure(D);this.scroller.setContentNodes(this.views.getContentNodes())},_setStructureAttr:function(B){B&&v.isString(B)&&(u.deprecated("dojox.grid._Grid.set('structure', 'objVar')","use dojox.grid._Grid.set('structure', objVar) instead","2.0"),B=v.getObject(B));this.structure=B;if(!B)if(this.layout.structure)B=this.layout.structure;
else return;this.views.destroyViews();this.focus.focusView=null;B!==this.layout.structure&&this.layout.setStructure(B);this._structureChanged()},setStructure:function(B){u.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(B)},getColumnTogglingItems:function(){var B=[];var D=t.map(this.layout.cells,function(E){E.menuItems||(E.menuItems=[]);var J=this,I=new n({label:E.name,checked:!E.hidden,_gridCell:E,onChange:function(F){if(J.layout.setColumnVisibility(this._gridCell.index,
F)){var H=this._gridCell.menuItems;1<H.length&&t.forEach(H,function(K){K!==this&&K.setAttribute("checked",F)},this);F=t.filter(J.layout.cells,function(K){1<K.menuItems.length?t.forEach(K.menuItems,"item.set('disabled', false);"):K.menuItems[0].set("disabled",!1);return!K.hidden});1==F.length&&t.forEach(F[0].menuItems,"item.set('disabled', true);")}},destroy:function(){var F=t.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(F,1);delete this._gridCell;n.prototype.destroy.apply(this,
arguments)}});E.menuItems.push(I);E.hidden||B.push(I);return I},this);1==B.length&&B[0].set("disabled",!0);return D},_setHeaderMenuAttr:function(B){this._placeholders&&this._placeholders.length&&(t.forEach(this._placeholders,function(D){D.unReplace(!0)}),this._placeholders=[]);this.headerMenu&&this.headerMenu.unBindDomNode(this.viewsHeaderNode);if(this.headerMenu=B)this.headerMenu.bindDomNode(this.viewsHeaderNode),this.headerMenu.getPlaceholders&&(this._placeholders=this.headerMenu.getPlaceholders(this.placeholderLabel))},
setHeaderMenu:function(B){u.deprecated("dojox.grid._Grid.setHeaderMenu(obj)","use dojox.grid._Grid.set('headerMenu', obj) instead.","2.0");this._setHeaderMenuAttr(B)},setupHeaderMenu:function(){this._placeholders&&this._placeholders.length&&t.forEach(this._placeholders,function(B){B._replaced&&B.unReplace(!0);B.replace(this.getColumnTogglingItems())},this)},_fetch:function(B){this.setScrollTop(0)},getItem:function(B){return null},showMessage:function(B){B?(this.messagesNode.innerHTML=B,this.messagesNode.style.display=
""):(this.messagesNode.innerHTML="",this.messagesNode.style.display="none")},_structureChanged:function(){this.buildViews();this.autoRender&&this._started&&this.render()},hasLayout:function(){return this.layout.cells.length},resize:function(B,D){this._pendingChangeSize=B;this._pendingResultSize=D;this.sizeChange()},_getPadBorder:function(){return this._padBorder=this._padBorder||C._getPadBorderExtents(this.domNode)},_getHeaderHeight:function(){var B=this.viewsHeaderNode.style,D="none"==B.display?
0:this.views.measureHeader();B.height=D+"px";this.views.normalizeHeaderNodeHeight();return D},_resize:function(B,D){B=B||this._pendingChangeSize;D=D||this._pendingResultSize;delete this._pendingChangeSize;delete this._pendingResultSize;if(this.domNode){var E=this.domNode.parentNode;if(E&&1==E.nodeType&&this.hasLayout()&&"hidden"!=E.style.visibility&&"none"!=E.style.display){var J=this._getPadBorder(),I=void 0;if(this._autoHeight)this.domNode.style.height="auto";else if("number"==typeof this.autoHeight){var F=
I=this._getHeaderHeight();F+=this.scroller.averageRowHeight*this.autoHeight;this.domNode.style.height=F+"px"}else this.domNode.clientHeight<=J.h&&(E==document.body?this.domNode.style.height=this.defaultHeight:this.height?this.domNode.style.height=this.height:this.fitTo="parent");D&&(B=D);!this._autoHeight&&B?(C.marginBox(this.domNode,B),this.height=this.domNode.style.height,delete this.fitTo):"parent"==this.fitTo&&(F=this._parentContentBoxHeight=0<this._parentContentBoxHeight?this._parentContentBoxHeight:
C._getContentBox(E).h,this.domNode.style.height=Math.max(0,F)+"px");E=t.some(this.views.views,function(H){return H.flexCells});this._autoHeight||0!==(F||C._getContentBox(this.domNode).h)?(this.viewsHeaderNode.style.display="block",E||void 0!==I||(I=this._getHeaderHeight())):this.viewsHeaderNode.style.display="none";E&&(I=void 0);this.adaptWidth();this.adaptHeight(I);this.postresize()}}},adaptWidth:function(){var B=!this.initialWidth&&this.autoWidth,D=B?0:this.domNode.clientWidth||this.domNode.offsetWidth-
this._getPadBorder().w;D=this.views.arrange(1,D);this.views.onEach("adaptWidth");B&&(this.domNode.style.width=D+"px")},adaptHeight:function(B){B=void 0===B?this._getHeaderHeight():B;var D=this._autoHeight?-1:Math.max(this.domNode.clientHeight-B,0)||0;this.views.onEach("setSize",[0,D]);this.views.onEach("adaptHeight");if(!this._autoHeight){var E=0,J=0,I=t.filter(this.views.views,function(F){(F=F.hasHScrollbar())?E++:J++;return!F});0<E&&0<J&&t.forEach(I,function(F){F.adaptHeight(!0)})}!0===this.autoHeight||
-1!=D||"number"==typeof this.autoHeight&&this.autoHeight>=this.get("rowCount")?this.scroller.windowHeight=D:this.scroller.windowHeight=Math.max(this.domNode.clientHeight-B,0)},startup:function(){this._started||(this.inherited(arguments),this.autoRender&&this.render())},render:function(){this.domNode&&this._started&&(this.hasLayout()?(this.update=this.defaultUpdate,this._render()):this.scroller.init(0,this.keepRows,this.rowsPerPage))},_render:function(){this.scroller.init(this.get("rowCount"),this.keepRows,
this.rowsPerPage);this.prerender();this.setScrollTop(0);this.postrender()},prerender:function(){this.keepRows=this._autoHeight?0:this.keepRows;this.scroller.setKeepInfo(this.keepRows);this.views.render();this._resize()},postrender:function(){this.postresize();this.focus.initFocusView();C.setSelectable(this.domNode,this.selectable)},postresize:function(){if(this._autoHeight){var B=Math.max(this.views.measureContent())+"px";this.viewsNode.style.height=B}},renderRow:function(B,D){this.views.renderRow(B,
D,this._skipRowRenormalize)},rowRemoved:function(B){this.views.rowRemoved(B)},invalidated:null,updating:!1,beginUpdate:function(){this.invalidated=[];this.updating=!0},endUpdate:function(){this.updating=!1;var B=this.invalidated,D;if(B.all)this.update();else if(void 0!=B.rowCount)this.updateRowCount(B.rowCount);else for(D in B)this.updateRow(Number(D));this.invalidated=[]},defaultUpdate:function(){this.domNode&&(this.updating?this.invalidated.all=!0:(this.lastScrollTop=this.scrollTop,this.prerender(),
this.scroller.invalidateNodes(),this.setScrollTop(this.lastScrollTop),this.postrender()))},update:function(){this.render()},updateRow:function(B){B=Number(B);this.updating?this.invalidated[B]=!0:(this.views.updateRow(B),this.scroller.rowHeightChanged(B))},updateRows:function(B,D){B=Number(B);D=Number(D);var E;if(this.updating)for(E=0;E<D;E++)this.invalidated[E+B]=!0;else{for(E=0;E<D;E++)this.views.updateRow(E+B,this._skipRowRenormalize);this.scroller.rowHeightChanged(B)}},updateRowCount:function(B){this.updating?
this.invalidated.rowCount=B:(this.rowCount=B,this._setAutoHeightAttr(this.autoHeight,!0),this.layout.cells.length&&this.scroller.updateRowCount(B),this.layout.cells.length&&this.setScrollTop(this.scrollTop),this._resize())},updateRowStyles:function(B){this.views.updateRowStyles(B)},getRowNode:function(B){if(!this.focus.focusView||this.focus.focusView instanceof k)for(var D=0,E;E=this.views.views[D];D++){if(!(E instanceof k))return E.rowNodes[B]}else return this.focus.focusView.rowNodes[B];return null},
rowHeightChanged:function(B){this.views.renormalizeRow(B);this.scroller.rowHeightChanged(B)},fastScroll:!0,delayScroll:!1,scrollRedrawThreshold:y("ie")?100:50,scrollTo:function(B){if(this.fastScroll){var D=Math.abs(this.lastScrollTop-B);this.lastScrollTop=B;if(D>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=!0;this.scrollTop=B;this.views.setScrollTop(B);this._pendingScroll&&window.clearTimeout(this._pendingScroll);var E=this;this._pendingScroll=window.setTimeout(function(){delete E._pendingScroll;
E.finishScrollJob()},200)}else this.setScrollTop(B)}else this.setScrollTop(B)},finishScrollJob:function(){this.delayScroll=!1;this.setScrollTop(this.scrollTop)},setScrollTop:function(B){this.scroller.scroll(this.views.setScrollTop(B))},scrollToRow:function(B){this.setScrollTop(this.scroller.findScrollTop(B)+1)},styleRowNode:function(B,D){D&&this.rows.styleRowNode(B,D)},_mouseOut:function(B){this.rows.setOverRow(-2)},getCell:function(B){return this.layout.cells[B]},setCellWidth:function(B,D){this.getCell(B).unitWidth=
D},getCellName:function(B){return"Cell "+B.index},canSort:function(B){},sort:function(){},getSortAsc:function(B){B=void 0==B?this.sortInfo:B;return 0<B},getSortIndex:function(B){B=void 0==B?this.sortInfo:B;return Math.abs(B)-1},setSortIndex:function(B,D){var E=B+1;void 0!=D?E*=D?1:-1:this.getSortIndex()==B&&(E=-this.sortInfo);this.setSortInfo(E)},setSortInfo:function(B){this.canSort(B)&&(this.sortInfo=B,this.sort(),this.update())},doKeyEvent:function(B){B.dispatch="do"+B.type;this.onKeyEvent(B)},
_dispatch:function(B,D){return B in this?this[B](D):!1},dispatchKeyEvent:function(B){this._dispatch(B.dispatch,B)},dispatchContentEvent:function(B){this.edit.dispatchEvent(B)||B.sourceView.dispatchContentEvent(B)||this._dispatch(B.dispatch,B)},dispatchHeaderEvent:function(B){B.sourceView.dispatchHeaderEvent(B)||this._dispatch("doheader"+B.type,B)},dokeydown:function(B){this.onKeyDown(B)},doclick:function(B){if(B.cellNode)this.onCellClick(B);else this.onRowClick(B)},dodblclick:function(B){if(B.cellNode)this.onCellDblClick(B);
else this.onRowDblClick(B)},docontextmenu:function(B){if(B.cellNode)this.onCellContextMenu(B);else this.onRowContextMenu(B)},doheaderclick:function(B){if(B.cellNode)this.onHeaderCellClick(B);else this.onHeaderClick(B)},doheaderdblclick:function(B){if(B.cellNode)this.onHeaderCellDblClick(B);else this.onHeaderDblClick(B)},doheadercontextmenu:function(B){if(B.cellNode)this.onHeaderCellContextMenu(B);else this.onHeaderContextMenu(B)},doStartEdit:function(B,D){this.onStartEdit(B,D)},doApplyCellEdit:function(B,
D,E){this.onApplyCellEdit(B,D,E)},doCancelEdit:function(B){this.onCancelEdit(B)},doApplyEdit:function(B){this.onApplyEdit(B)},addRow:function(){this.updateRowCount(this.get("rowCount")+1)},removeSelectedRows:function(){this.allItemsSelected?this.updateRowCount(0):this.updateRowCount(Math.max(0,this.get("rowCount")-this.selection.getSelected().length));this.selection.clear()}});x.markupFactory=function(B,D,E,J){var I=function(F){F=C.attr(F,"width")||"auto";"auto"!=F&&"em"!=F.slice(-2)&&"%"!=F.slice(-1)&&
(F=parseInt(F,10)+"px");return F};B.structure||"table"!=D.nodeName.toLowerCase()||(B.structure=G("\x3e colgroup",D).map(function(F){var H=C.attr(F,"span");H={noscroll:"true"==C.attr(F,"noscroll")?!0:!1,__span:H?parseInt(H,10):1,cells:[]};C.hasAttr(F,"width")&&(H.width=I(F));return H}),B.structure.length||B.structure.push({__span:Infinity,cells:[]}),G("thead \x3e tr",D).forEach(function(F,H){var K=0,L=0,N,Q=null;G("\x3e th",F).map(function(P){Q?K>=N+Q.__span&&(L++,N+=Q.__span,Q=B.structure[L]):(N=
0,Q=B.structure[0]);var S={name:v.trim(C.attr(P,"name")||P.innerHTML),colSpan:parseInt(C.attr(P,"colspan")||1,10),type:v.trim(C.attr(P,"cellType")||""),id:v.trim(C.attr(P,"id")||"")};K+=S.colSpan;var M=C.attr(P,"rowspan");M&&(S.rowSpan=M);C.hasAttr(P,"width")&&(S.width=I(P));C.hasAttr(P,"relWidth")&&(S.relWidth=window.parseInt(C.attr(P,"relWidth"),10));C.hasAttr(P,"hidden")&&(S.hidden="true"==C.attr(P,"hidden")||!0===C.attr(P,"hidden"));J&&J(P,S);S.type=S.type?v.getObject(S.type):A.grid.cells.Cell;
S.type&&S.type.markupFactory&&S.type.markupFactory(P,S);Q.cells[H]||(Q.cells[H]=[]);Q.cells[H].push(S)})}));return new E(B,D)};return x})},"dojox/grid/_Events":function(){define(["dojo/keys","dojo/dom-class","dojo/_base/declare","dojo/_base/event","dojo/_base/sniff"],function(u,A,x,r,h){return x("dojox.grid._Events",null,{cellOverClass:"dojoxGridCellOver",onKeyEvent:function(e){this.dispatchKeyEvent(e)},onContentEvent:function(e){this.dispatchContentEvent(e)},onHeaderEvent:function(e){this.dispatchHeaderEvent(e)},
onStyleRow:function(e){e.customClasses+=(e.odd?" dojoxGridRowOdd":"")+(e.selected?" dojoxGridRowSelected":"")+(e.over?" dojoxGridRowOver":"");this.focus.styleRow(e);this.edit.styleRow(e)},onKeyDown:function(e){if(!e.altKey&&!e.metaKey)switch(e.keyCode){case u.ESCAPE:this.edit.cancel();break;case u.ENTER:if(!this.edit.isEditing()){var g=this.focus.getHeaderIndex();if(0<=g){this.setSortIndex(g);break}else this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);r.stop(e)}e.shiftKey||
(g=this.edit.isEditing(),this.edit.apply(),g||this.edit.setEditCell(this.focus.cell,this.focus.rowIndex));this.edit.isEditing()||((this.focus.focusView||this.views.views[0]).content.decorateEvent(e),this.onRowClick(e),r.stop(e));break;case u.SPACE:this.edit.isEditing()||(g=this.focus.getHeaderIndex(),0<=g?this.setSortIndex(g):(this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey),this.focus._focusifyCellNode(!0),this.focus.setFocusCell(this.focus.cell,this.focus.rowIndex),r.stop(e)));
break;case u.TAB:this.focus[e.shiftKey?"previousKey":"nextKey"](e);break;case u.LEFT_ARROW:case u.RIGHT_ARROW:if(!this.edit.isEditing()){var d=e.keyCode;r.stop(e);g=this.focus.getHeaderIndex();0<=g&&e.shiftKey&&e.ctrlKey?this.focus.colSizeAdjust(e,g,5*(d==u.LEFT_ARROW?-1:1)):(e=d==u.LEFT_ARROW?1:-1,this.isLeftToRight()&&(e*=-1),this.focus.move(0,e))}break;case u.UP_ARROW:this.edit.isEditing()||0===this.focus.rowIndex||(r.stop(e),this.focus.move(-1,0));break;case u.DOWN_ARROW:this.edit.isEditing()||
this.focus.rowIndex+1==this.rowCount||(r.stop(e),this.focus.move(1,0));break;case u.PAGE_UP:this.edit.isEditing()||0===this.focus.rowIndex||(r.stop(e),this.focus.rowIndex!=this.scroller.firstVisibleRow+1?this.focus.move(this.scroller.firstVisibleRow-this.focus.rowIndex,0):(this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex-1)),this.focus.move(this.scroller.firstVisibleRow-this.scroller.lastVisibleRow+1,0)));break;case u.PAGE_DOWN:this.edit.isEditing()||this.focus.rowIndex+1==this.rowCount||
(r.stop(e),this.focus.rowIndex!=this.scroller.lastVisibleRow-1?this.focus.move(this.scroller.lastVisibleRow-this.focus.rowIndex-1,0):(this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex+1)),this.focus.move(this.scroller.lastVisibleRow-this.scroller.firstVisibleRow-1,0)))}},onMouseOver:function(e){-1==e.rowIndex?this.onHeaderCellMouseOver(e):this.onCellMouseOver(e)},onMouseOut:function(e){-1==e.rowIndex?this.onHeaderCellMouseOut(e):this.onCellMouseOut(e)},onMouseDown:function(e){-1==
e.rowIndex?this.onHeaderCellMouseDown(e):this.onCellMouseDown(e)},onMouseOverRow:function(e){this.rows.isOver(e.rowIndex)||(this.rows.setOverRow(e.rowIndex),-1==e.rowIndex?this.onHeaderMouseOver(e):this.onRowMouseOver(e))},onMouseOutRow:function(e){if(this.rows.isOver(-1))this.onHeaderMouseOut(e);else this.rows.isOver(-2)||(this.rows.setOverRow(-2),this.onRowMouseOut(e))},onMouseDownRow:function(e){if(-1!=e.rowIndex)this.onRowMouseDown(e)},onCellMouseOver:function(e){e.cellNode&&A.add(e.cellNode,
this.cellOverClass)},onCellMouseOut:function(e){e.cellNode&&A.remove(e.cellNode,this.cellOverClass)},onCellMouseDown:function(e){},onCellClick:function(e){this._click[0]=this._click[1];this._click[1]=e;this.edit.isEditCell(e.rowIndex,e.cellIndex)||this.focus.setFocusCell(e.cell,e.rowIndex);1<this._click.length&&null==this._click[0]&&this._click.shift();this.onRowClick(e)},onCellDblClick:function(e){var g=1<this._click.length&&h("ie")?this._click[1]:1<this._click.length&&this._click[0].rowIndex!=this._click[1].rowIndex?
this._click[0]:e;this.focus.setFocusCell(g.cell,g.rowIndex);this.edit.setEditCell(g.cell,g.rowIndex);this.onRowDblClick(e)},onCellContextMenu:function(e){this.onRowContextMenu(e)},onCellFocus:function(e,g){this.edit.cellFocus(e,g)},onRowClick:function(e){this.edit.rowClick(e);this.selection.clickSelectEvent(e)},onRowDblClick:function(e){},onRowMouseOver:function(e){},onRowMouseOut:function(e){},onRowMouseDown:function(e){},onRowContextMenu:function(e){r.stop(e)},onHeaderMouseOver:function(e){},onHeaderMouseOut:function(e){},
onHeaderCellMouseOver:function(e){e.cellNode&&A.add(e.cellNode,this.cellOverClass)},onHeaderCellMouseOut:function(e){e.cellNode&&A.remove(e.cellNode,this.cellOverClass)},onHeaderCellMouseDown:function(e){},onHeaderClick:function(e){},onHeaderCellClick:function(e){this.setSortIndex(e.cell.index);this.onHeaderClick(e)},onHeaderDblClick:function(e){},onHeaderCellDblClick:function(e){this.onHeaderDblClick(e)},onHeaderCellContextMenu:function(e){this.onHeaderContextMenu(e)},onHeaderContextMenu:function(e){this.headerMenu||
r.stop(e)},onStartEdit:function(e,g){},onApplyCellEdit:function(e,g,d){},onCancelEdit:function(e){},onApplyEdit:function(e){},onCanSelect:function(e){return!0},onCanDeselect:function(e){return!0},onSelected:function(e){this.updateRowStyles(e)},onDeselected:function(e){this.updateRowStyles(e)},onSelectionChanged:function(){}})})},"dojox/grid/_Scroller":function(){define(["dijit/registry","dojo/_base/declare","dojo/_base/lang","./util","dojo/_base/html"],function(u,A,x,r,h){var e=function(d){d&&dojo.forEach(u.toArray(),
function(b){b.domNode&&h.isDescendant(b.domNode,d,!0)&&b.destroy()})},g=function(d,b){for(var a=[],c=0,f;f=d.childNodes[c];){c++;var k=h.byId(f);(k&&k.tagName?k.tagName.toLowerCase():"")==b&&a.push(f)}return a};return A("dojox.grid._Scroller",null,{constructor:function(d){this.setContentNodes(d);this.pageHeights=[];this.pageNodes=[];this.stack=[]},rowCount:0,defaultRowHeight:32,keepRows:100,contentNode:null,scrollboxNode:null,defaultPageHeight:0,keepPages:10,pageCount:0,windowHeight:0,firstVisibleRow:0,
lastVisibleRow:0,averageRowHeight:0,page:0,pageTop:0,init:function(d,b,a){switch(arguments.length){case 3:this.rowsPerPage=a;case 2:this.keepRows=b;case 1:this.rowCount=d}this.defaultPageHeight=(0<this.grid.rowHeight?this.grid.rowHeight:this.defaultRowHeight)*this.rowsPerPage;this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);this.setKeepInfo(this.keepRows);this.invalidate();this.scrollboxNode&&(this.scrollboxNode.scrollTop=0,this.scroll(0),this.scrollboxNode.onscroll=x.hitch(this,
"onscroll"))},_getPageCount:function(d,b){return d?Math.ceil(d/b)||1:0},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode},setKeepInfo:function(d){this.keepPages=(this.keepRows=d)?Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2):this.keepPages},setContentNodes:function(d){this.colCount=(this.contentNodes=d)?this.contentNodes.length:0;this.pageNodes=[];for(d=0;d<this.colCount;d++)this.pageNodes[d]=[]},getDefaultNodes:function(){return this.pageNodes[0]||
[]},invalidate:function(){this._invalidating=!0;this.invalidateNodes();this.pageHeights=[];this.height=this.pageCount?(this.pageCount-1)*this.defaultPageHeight+this.calcLastPageHeight():0;this.resize();this._invalidating=!1},updateRowCount:function(d){this.invalidateNodes();this.rowCount=d;d=this.pageCount;0===d&&(this.height=1);this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<d)for(--d;d>=this.pageCount;d--)this.height-=this.getPageHeight(d),delete this.pageHeights[d];
else this.pageCount>d&&(this.height+=this.defaultPageHeight*(this.pageCount-d-1)+this.calcLastPageHeight());this.resize()},pageExists:function(d){return!!this.getDefaultPageNode(d)},measurePage:function(d){return this.grid.rowHeight?((d+1)*this.rowsPerPage>this.rowCount?this.rowCount-d*this.rowsPerPage:this.rowsPerPage)*this.grid.rowHeight:(d=this.getDefaultPageNode(d))&&d.innerHTML?d.offsetHeight:void 0},positionPage:function(d,b){for(var a=0;a<this.colCount;a++)this.pageNodes[a][d].style.top=b+
"px"},repositionPages:function(d){for(var b=this.getDefaultNodes(),a=0,c=0;c<this.stack.length;c++)a=Math.max(this.stack[c],a);var f=(c=b[d])?this.getPageNodePosition(c)+this.getPageHeight(d):0;for(d+=1;d<=a;d++){if(c=b[d]){if(this.getPageNodePosition(c)==f)break;this.positionPage(d,f)}f+=this.getPageHeight(d)}},installPage:function(d){for(var b=0;b<this.colCount;b++)this.contentNodes[b].appendChild(this.pageNodes[b][d])},preparePage:function(d,b){for(var a=b?this.popPage():null,c=0;c<this.colCount;c++){var f=
this.pageNodes[c],k=null===a?this.createPageNode():this.invalidatePageNode(a,f);k.pageIndex=d;f[d]=k}},renderPage:function(d){var b=[],a;for(a=0;a<this.colCount;a++)b[a]=this.pageNodes[a][d];a=0;for(d*=this.rowsPerPage;a<this.rowsPerPage&&d<this.rowCount;a++,d++)this.renderRow(d,b)},removePage:function(d){var b=0;for(d*=this.rowsPerPage;b<this.rowsPerPage;b++,d++)this.removeRow(d)},destroyPage:function(d){for(var b=0;b<this.colCount;b++){var a=this.invalidatePageNode(d,this.pageNodes[b]);a&&h.destroy(a)}},
pacify:function(d){},pacifying:!1,pacifyTicks:200,setPacifying:function(d){this.pacifying!=d&&(this.pacifying=d,this.pacify(this.pacifying))},startPacify:function(){this.startPacifyTicks=(new Date).getTime()},doPacify:function(){var d=(new Date).getTime()-this.startPacifyTicks>this.pacifyTicks;this.setPacifying(!0);this.startPacify();return d},endPacify:function(){this.setPacifying(!1)},resize:function(){this.scrollboxNode&&(this.windowHeight=this.scrollboxNode.clientHeight);for(var d=0;d<this.colCount;d++)r.setStyleHeightPx(this.contentNodes[d],
Math.max(1,this.height));d=!this._invalidating;if(!d){var b=this.grid.get("autoHeight");"number"==typeof b&&b<=Math.min(this.rowsPerPage,this.rowCount)&&(d=!0)}d&&this.needPage(this.page,this.pageTop);d=this.page<this.pageCount-1?this.rowsPerPage:this.rowCount%this.rowsPerPage||this.rowsPerPage;b=this.getPageHeight(this.page);this.averageRowHeight=0<b&&0<d?b/d:0},calcLastPageHeight:function(){if(!this.pageCount)return 0;var d=(this.rowCount%this.rowsPerPage||this.rowsPerPage)*this.defaultRowHeight;
return this.pageHeights[this.pageCount-1]=d},updateContentHeight:function(d){this.height+=d;this.resize()},updatePageHeight:function(d,b,a){if(this.pageExists(d)){var c=this.getPageHeight(d),f=this.measurePage(d);void 0===f&&(f=c);this.pageHeights[d]=f;if(c!=f){this.updateContentHeight(f-c);var k=this.grid.get("autoHeight");"number"==typeof k&&k>this.rowCount||!0===k&&!b?a?(b=this.grid.viewsNode.style,b.height=parseInt(b.height)+f-c+"px",this.repositionPages(d)):this.grid.sizeChange():this.repositionPages(d)}return f}return 0},
rowHeightChanged:function(d,b){this.updatePageHeight(Math.floor(d/this.rowsPerPage),!1,b)},invalidateNodes:function(){for(;this.stack.length;)this.destroyPage(this.popPage())},createPageNode:function(){var d=document.createElement("div");h.attr(d,"role","presentation");d.style.position="absolute";d.style[this.grid.isLeftToRight()?"left":"right"]="0";return d},getPageHeight:function(d){d=this.pageHeights[d];return void 0!==d?d:this.defaultPageHeight},pushPage:function(d){return this.stack.push(d)},
popPage:function(){return this.stack.shift()},findPage:function(d){for(var b=0,a=0,c=0;b<this.pageCount&&!(c=this.getPageHeight(b),a+c>=d);b++,a+=c);this.page=b;this.pageTop=a},buildPage:function(d,b,a){this.preparePage(d,b);this.positionPage(d,a);this.installPage(d);this.renderPage(d);this.pushPage(d)},needPage:function(d,b){var a=this.getPageHeight(d);this.pageExists(d)?this.positionPage(d,b):(this.buildPage(d,!this.grid._autoHeight&&this.keepPages&&this.stack.length>=this.keepPages,b),a=this.updatePageHeight(d,
!0));return a},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop)},scroll:function(d){this.grid.scrollTop=d;if(this.colCount){this.startPacify();this.findPage(d);for(var b=this.height,a=this.getScrollBottom(d),c=this.page,f=this.pageTop;c<this.pageCount&&(0>a||f<a);c++)f+=this.needPage(c,f);this.firstVisibleRow=this.getFirstVisibleRow(this.page,this.pageTop,d);this.lastVisibleRow=this.getLastVisibleRow(c-1,f,a);b!=this.height&&this.repositionPages(c-1);this.endPacify()}},getScrollBottom:function(d){return 0<=
this.windowHeight?d+this.windowHeight:-1},processNodeEvent:function(d,b){for(var a=d.target;a&&a!=b&&a.parentNode&&a.parentNode.parentNode!=b;)a=a.parentNode;if(!a||!a.parentNode||a.parentNode.parentNode!=b)return!1;d.topRowIndex=a.parentNode.pageIndex*this.rowsPerPage;var c=d.topRowIndex;a:{var f=0;for(var k,m=a.parentNode;k=m.childNodes[f++];)if(k==a){--f;break a}f=-1}d.rowIndex=c+f;d.rowTarget=a;return!0},processEvent:function(d){return this.processNodeEvent(d,this.contentNode)},renderRow:function(d,
b){},removeRow:function(d){},getDefaultPageNode:function(d){return this.getDefaultNodes()[d]},positionPageNode:function(d,b){},getPageNodePosition:function(d){return d.offsetTop},invalidatePageNode:function(d,b){var a=b[d];a&&(delete b[d],this.removePage(d,a),e(a),a.innerHTML="");return a},getPageRow:function(d){return d*this.rowsPerPage},getLastPageRow:function(d){return Math.min(this.rowCount,this.getPageRow(d+1))-1},getFirstVisibleRow:function(d,b,a){if(!this.pageExists(d))return 0;var c=this.getPageRow(d),
f=this.getDefaultNodes();d=g(f[d],"div");f=0;for(var k=d.length;f<k&&b<a;f++,c++)b+=d[f].offsetHeight;return c?c-1:c},getLastVisibleRow:function(d,b,a){if(!this.pageExists(d))return 0;var c=this.getDefaultNodes(),f=this.getLastPageRow(d);d=g(c[d],"div");for(c=d.length-1;0<=c&&b>a;c--,f--)b-=d[c].offsetHeight;return f+1},findTopRow:function(d){var b=this.getDefaultNodes();b=g(b[this.page],"div");for(var a=0,c=b.length,f=this.pageTop,k;a<c;a++)if(k=b[a].offsetHeight,f+=k,f>=d)return this.offset=k-(f-
d),a+this.page*this.rowsPerPage;return-1},findScrollTop:function(d){var b=Math.floor(d/this.rowsPerPage),a=0,c;for(c=0;c<b;c++)a+=this.getPageHeight(c);this.pageTop=a;this.page=b;this.needPage(b,this.pageTop);c=this.getDefaultNodes();var f=g(c[b],"div");b=d-this.rowsPerPage*b;c=0;for(d=f.length;c<d&&c<b;c++)a+=f[c].offsetHeight;return a},dummy:0})})},"dojox/grid/util":function(){define(["../main","dojo/_base/lang","dojo/dom","dojo/_base/sniff"],function(u,A,x,r){var h=A.getObject("grid.util",!0,u);
h.na="...";h.rowIndexTag="gridRowIndex";h.gridViewTag="gridView";h.fire=function(e,g,d){function b(p,l){if(null==p)return null;var n=l?"Width":"Height";return p["scroll"+n]>p["client"+n]?p:b(p.parentNode,l)}var a;if(r("webkit")&&"focus"==g){var c=e.domNode?e.domNode:e;if(a=b(c,!1))var f=a.scrollTop;if(c=b(c,!0))var k=c.scrollLeft}var m=e&&g&&e[g];e=m&&(d?m.apply(e,d):e[g]());r("webkit")&&"focus"==g&&(a&&(a.scrollTop=f),c&&(c.scrollLeft=k));return e};h.setStyleHeightPx=function(e,g){if(0<=g){var d=
e.style,b=g+"px";e&&d.height!=b&&(d.height=b)}};h.mouseEvents="mouseover mouseout mousedown mouseup click dblclick contextmenu".split(" ");h.keyEvents=["keyup","keydown","keypress"];h.funnelEvents=function(e,g,d,b){b=b?b:h.mouseEvents.concat(h.keyEvents);for(var a=0,c=b.length;a<c;a++)g.connect(e,"on"+b[a],d)};h.removeNode=function(e){(e=x.byId(e))&&e.parentNode&&e.parentNode.removeChild(e);return e};h.arrayCompare=function(e,g){for(var d=0,b=e.length;d<b;d++)if(e[d]!=g[d])return!1;return e.length==
g.length};h.arrayInsert=function(e,g,d){e.length<=g?e[g]=d:e.splice(g,0,d)};h.arrayRemove=function(e,g){e.splice(g,1)};h.arraySwap=function(e,g,d){var b=e[g];e[g]=e[d];e[d]=b};return h})},"dojox/grid/_Layout":function(){define("dojo/_base/kernel ../main dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/dom-geometry ./cells ./_RowSelector".split(" "),function(u,A,x,r,h,e){return x("dojox.grid._Layout",null,{constructor:function(g){this.grid=g},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(g,
d,b,a,c){var f=this.structure[g].cells[0],k=this.structure[d].cells[0],m=null,p=m=0;g=0;for(var l;l=f[g];g++)if(l.index==b){m=g;break}m=f.splice(m,1)[0];m.view=this.grid.views.views[d];g=0;for(l=null;l=k[g];g++)if(l.index==a){p=g;break}c||(p+=1);k.splice(p,0,m);if(b=this.grid.getCell(this.grid.getSortIndex()))b._currentlySorted=this.grid.getSortAsc();this.cells=[];for(g=b=0;d=this.structure[g];g++)for(a=0;c=d.cells[a];a++)for(f=0;l=c[f];f++)l.index=b,this.cells.push(l),"_currentlySorted"in l&&(k=
b+1,k*=l._currentlySorted?1:-1,this.grid.sortInfo=k,delete l._currentlySorted),b++;r.forEach(this.cells,function(n){var q=n.markup[2].split(" ");parseInt(q[1].substring(5))!=n.index&&(q[1]='idx\x3d"'+n.index+'"',n.markup[2]=q.join(" "))});this.grid.setupHeaderMenu()},setColumnVisibility:function(g,d){var b=this.cells[g];if(b.hidden==d){b.hidden=!d;var a=b.view,c=a.viewWidth;c&&"auto"!=c&&(a._togglingColumn=e.getMarginBox(b.getHeaderNode()).w||0);a.update();return!0}return!1},addCellDef:function(g,
d,b){var a=this,c=function(f){var k=0;1<f.colSpan?k=0:(k=f.width||a._defaultCellProps.width||a.defaultWidth,isNaN(k)||(k+="em"));return k};g={grid:this.grid,subrow:g,layoutIndex:d,index:this.cells.length};if(b&&b instanceof A.grid.cells._Base)return d=h.clone(b),g.unitWidth=c(d._props),d=h.mixin(d,this._defaultCellProps,b._props,g);d=b.type||b.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||A.grid.cells.Cell;h.isString(d)&&(d=h.getObject(d));g.unitWidth=c(b);return new d(h.mixin({},
this._defaultCellProps,b,g))},addRowDef:function(g,d){for(var b=[],a=0,c=0,f=!0,k=0,m;m=d[k];k++)m=this.addCellDef(g,k,m),b.push(m),this.cells.push(m),f&&m.relWidth?a+=m.relWidth:m.width&&(m=m.width,"string"==typeof m&&"%"==m.slice(-1)?c+=window.parseInt(m,10):"auto"==m&&(f=!1));a&&f&&r.forEach(b,function(p){p.relWidth&&(p.width=p.unitWidth=p.relWidth/a*(100-c)+"%")});return b},addRowsDef:function(g){var d=[];if(h.isArray(g))if(h.isArrayLike(g[0]))for(var b=0,a;g&&(a=g[b]);b++)d.push(this.addRowDef(b,
a));else d.push(this.addRowDef(0,g));return d},addViewDef:function(g){this._defaultCellProps=g.defaultCell||{};g.width&&"auto"==g.width&&delete g.width;return h.mixin({},g,{cells:this.addRowsDef(g.rows||g.cells)})},setStructure:function(g){this.fieldIndex=0;this.cells=[];var d=this.structure=[];if(this.grid.rowSelector){var b={type:A._scopeName+".grid._RowSelector"};if(h.isString(this.grid.rowSelector)){var a=this.grid.rowSelector;"false"==a?b=null:"true"!=a&&(b.width=a)}else this.grid.rowSelector||
(b=null);b&&d.push(this.addViewDef(b))}var c=function(p){return"name"in p||"field"in p||"get"in p};b=function(p){return h.isArray(p)&&(h.isArray(p[0])||c(p[0]))?!0:!1};a=function(p){return null!==p&&h.isObject(p)&&("cells"in p||"rows"in p||"type"in p&&!c(p))};if(h.isArrayLike(g)){for(var f=!1,k=0,m;m=g[k];k++)if(a(m)){f=!0;break}if(f)for(k=0;m=g[k];k++)b(m)?d.push(this.addViewDef({cells:m})):a(m)&&d.push(this.addViewDef(m));else d.push(this.addViewDef({cells:g}))}else a(g)&&d.push(this.addViewDef(g));
this.cellCount=this.cells.length;this.grid.setupHeaderMenu()}})})},"dojox/grid/cells":function(){define(["../main","./cells/_base"],function(u){return u.grid.cells})},"dojox/grid/cells/_base":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/event dojo/_base/connect dojo/_base/array dojo/_base/sniff dojo/dom dojo/dom-attr dojo/dom-construct dijit/_Widget ../util".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f){var k=A("dojox.grid._DeferredTextWidget",c,{deferred:null,
_destroyOnRemove:!0,postCreate:function(){this.deferred&&this.deferred.addBoth(x.hitch(this,function(q){this.domNode&&(this.domNode.innerHTML=q)}))}}),m=function(){setTimeout(x.hitch.apply(u,arguments),0)},p=A("dojox.grid.cells._Base",null,{styles:"",classes:"",editable:!1,alwaysEditing:!1,formatter:null,defaultValue:"...",value:null,hidden:!1,noresize:!1,draggable:!0,_valueProp:"value",_formatPending:!1,constructor:function(q){this._props=q||{};x.mixin(this,q);void 0===this.draggable&&(this.draggable=
!0)},_defaultFormat:function(q,w){var t=this.grid.formatterScope||this,v=this.formatter;v&&t&&"string"==typeof v&&(v=this.formatter=t[v]);t=q!=this.defaultValue&&v?v.apply(t,w):q;if("undefined"==typeof t)return this.defaultValue;t&&t.addBoth&&(t=new k({deferred:t},a.create("span",{innerHTML:this.defaultValue})));return t&&t.declaredClass&&t.startup?"\x3cdiv class\x3d'dojoxGridStubNode' linkWidget\x3d'"+t.id+"' cellIdx\x3d'"+this.index+"'\x3e"+this.defaultValue+"\x3c/div\x3e":t},format:function(q,
w){var t=this.grid.edit.info,v=this.get?this.get(q,w):this.value||this.defaultValue;v&&v.replace&&this.grid.escapeHTMLInData&&(v=v.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;"));return this.editable&&(this.alwaysEditing||t.rowIndex==q&&t.cell==this)?this.formatEditing(t.value?t.value:v,q):this._defaultFormat(v,[v,q,this])},formatEditing:function(q,w){},getNode:function(q){return this.view.getCellNode(q,this.index)},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index)},getEditNode:function(q){return(this.getNode(q)||
0).firstChild||0},canResize:function(){var q=this.unitWidth;return q&&"auto"!==q},isFlex:function(){var q=this.unitWidth;return q&&x.isString(q)&&("auto"==q||"%"==q.slice(-1))},applyEdit:function(q,w){this.getNode(w)&&this.grid.edit.applyCellEdit(q,this,w)},cancelEdit:function(q){this.grid.doCancelEdit(q)},_onEditBlur:function(q){this.grid.edit.isEditCell(q,this.index)&&this.grid.edit.apply()},registerOnBlur:function(q,w){this.commitOnBlur&&h.connect(q,"onblur",function(t){setTimeout(x.hitch(this,
"_onEditBlur",w),250)})},needFormatNode:function(q,w){this._formatPending=!0;m(this,"_formatNode",q,w)},cancelFormatNode:function(){this._formatPending=!1},_formatNode:function(q,w){this._formatPending&&(this._formatPending=!1,g("ie")||d.setSelectable(this.grid.domNode,!0),this.formatNode(this.getEditNode(w),q,w))},formatNode:function(q,w,t){g("ie")?m(this,"focus",t,q):this.focus(t,q)},dispatchEvent:function(q,w){if(q in this)return this[q](w)},getValue:function(q){return this.getEditNode(q)[this._valueProp]},
setValue:function(q,w){var t=this.getEditNode(q);t&&(t[this._valueProp]=w)},focus:function(q,w){var t=w||this.getEditNode(q);try{f.fire(t,"focus"),f.fire(t,"select")}catch(v){}},save:function(q){this.value=this.value||this.getValue(q)},restore:function(q){this.setValue(q,this.value)},_finish:function(q){d.setSelectable(this.grid.domNode,!1);this.cancelFormatNode()},apply:function(q){this.applyEdit(this.getValue(q),q);this._finish(q)},cancel:function(q){this.cancelEdit(q);this._finish(q)}});p.markupFactory=
function(q,w){var t=x.trim(b.get(q,"formatter")||"");t&&(w.formatter=x.getObject(t)||t);if(t=x.trim(b.get(q,"get")||""))w.get=x.getObject(t);t=function(v,y,z){var C=x.trim(b.get(q,v)||"");C&&(y[z||v]="false"!=C.toLowerCase())};t("sortDesc",w);t("editable",w);t("alwaysEditing",w);t("noresize",w);t("draggable",w);if(t=x.trim(b.get(q,"loadingText")||b.get(q,"defaultValue")||""))w.defaultValue=t;t=function(v,y,z){var C=x.trim(b.get(q,v)||"")||void 0;C&&(y[z||v]=C)};t("styles",w);t("headerStyles",w);t("cellStyles",
w);t("classes",w);t("headerClasses",w);t("cellClasses",w)};var l=p.Cell=A("dojox.grid.cells.Cell",p,{constructor:function(){this.keyFilter=this.keyFilter},keyFilter:null,formatEditing:function(q,w){this.needFormatNode(q,w);q&&q.replace&&(q=q.replace(/"/g,"\x26quot;"));return'\x3cinput class\x3d"dojoxGridInput" type\x3d"text" value\x3d"'+q+'"\x3e'},formatNode:function(q,w,t){this.inherited(arguments);this.registerOnBlur(q,t)},doKey:function(q){this.keyFilter&&-1==String.fromCharCode(q.charCode).search(this.keyFilter)&&
r.stop(q)},_finish:function(q){this.inherited(arguments);var w=this.getEditNode(q);try{f.fire(w,"blur")}catch(t){}}});l.markupFactory=function(q,w){p.markupFactory(q,w);var t=x.trim(b.get(q,"keyFilter")||"");t&&(w.keyFilter=new RegExp(t))};(p.RowIndex=A("dojox.grid.cells.RowIndex",l,{name:"Row",postscript:function(){this.editable=!1},get:function(q){return q+1}})).markupFactory=function(q,w){l.markupFactory(q,w)};(p.Select=A("dojox.grid.cells.Select",l,{options:null,values:null,returnIndex:-1,constructor:function(q){this.values=
this.values||this.options},formatEditing:function(q,w){this.needFormatNode(q,w);for(var t=['\x3cselect class\x3d"dojoxGridSelect"\x3e'],v=0,y,z;void 0!==(y=this.options[v])&&void 0!==(z=this.values[v]);v++)z=z.replace?z.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;"):z,y=y.replace?y.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;"):y,t.push("\x3coption",q==z?" selected":"",' value\x3d"'+z+'"',"\x3e",y,"\x3c/option\x3e");t.push("\x3c/select\x3e");return t.join("")},_defaultFormat:function(q,w){var t=
this.inherited(arguments);if(!this.formatter&&this.values&&this.options){var v=e.indexOf(this.values,t);0<=v&&(t=this.options[v])}return t},getValue:function(q){var w=this.getEditNode(q);if(w)return q=w.selectedIndex,w=w.options[q],-1<this.returnIndex?q:w.value||w.innerHTML}})).markupFactory=function(q,w){l.markupFactory(q,w);var t=x.trim(b.get(q,"options")||"");if(t){var v=t.split(",");v[0]!=t&&(w.options=v)}if(t=x.trim(b.get(q,"values")||""))v=t.split(","),v[0]!=t&&(w.values=v)};var n=p.AlwaysEdit=
A("dojox.grid.cells.AlwaysEdit",l,{alwaysEditing:!0,_formatNode:function(q,w){this.formatNode(this.getEditNode(w),q,w)},applyStaticValue:function(q){var w=this.grid.edit;w.applyCellEdit(this.getValue(q),this,q);w.start(this,q,!0)}});n.markupFactory=function(q,w){l.markupFactory(q,w)};(p.Bool=A("dojox.grid.cells.Bool",n,{_valueProp:"checked",formatEditing:function(q,w){return'\x3cinput class\x3d"dojoxGridInput" type\x3d"checkbox"'+(q?' checked\x3d"checked"':"")+' style\x3d"width: auto" /\x3e'},doclick:function(q){"INPUT"==
q.target.tagName&&this.applyStaticValue(q.rowIndex)}})).markupFactory=function(q,w){n.markupFactory(q,w)};return p})},"dojox/grid/_RowSelector":function(){define(["dojo/_base/declare","./_View"],function(u,A){return u("dojox.grid._RowSelector",A,{defaultWidth:"2em",noscroll:!0,padBorderWidth:2,buildRendering:function(){this.inherited("buildRendering",arguments);this.scrollboxNode.style.overflow="hidden";this.headerNode.style.visibility="hidden"},getWidth:function(){return this.viewWidth||this.defaultWidth},
buildRowContent:function(x,r){r.innerHTML='\x3ctable class\x3d"dojoxGridRowbarTable" style\x3d"width:'+(this.contentWidth||0)+'px;height:1px;" border\x3d"0" cellspacing\x3d"0" cellpadding\x3d"0" role\x3d"presentation"\x3e\x3ctr\x3e\x3ctd class\x3d"dojoxGridRowbarInner"\x3e\x26nbsp;\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e'},renderHeader:function(){},updateRow:function(){},resize:function(){this.adaptHeight()},adaptWidth:function(){!("contentWidth"in this)&&this.contentNode&&0<this.contentNode.offsetWidth&&
(this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth)},doStyleRowNode:function(x,r){var h=["dojoxGridRowbar dojoxGridNonNormalizedCell"];this.grid.rows.isOver(x)&&h.push("dojoxGridRowbarOver");this.grid.selection.isSelected(x)&&h.push("dojoxGridRowbarSelected");r.className=h.join(" ")},domouseover:function(x){this.grid.onMouseOverRow(x)},domouseout:function(x){if(!this.isIntraRowEvent(x))this.grid.onMouseOutRow(x)}})})},"dojox/grid/_View":function(){define("dojo dijit/registry ../main dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/_base/connect dojo/_base/sniff dojo/query dojo/_base/window dojo/text!./resources/View.html dojo/dnd/Source dijit/_Widget dijit/_TemplatedMixin dojox/html/metrics ./util dojo/_base/html ./_Builder dojo/dnd/Avatar dojo/dnd/Manager".split(" "),
function(u,A,x,r,h,e,g,d,b,a,c,f,k,m,p,l,n,q,w,t){c=r("dojox.grid._View",[k,m],{defaultWidth:"18em",viewWidth:"",templateString:c,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:q._HeaderBuilder,_contentBuilderClass:q._ContentBuilder,postMixInProperties:function(){this.rowNodes={}},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");l.funnelEvents(this.contentNode,this,"doContentEvent","mouseover mouseout click dblclick contextmenu mousedown".split(" "));
l.funnelEvents(this.headerNode,this,"doHeaderEvent","dblclick mouseover mouseout mousemove mousedown click contextmenu".split(" "));this.content=new this._contentBuilderClass(this);this.header=new this._headerBuilderClass(this);this.grid.isLeftToRight()||(this.headerNodeContainer.style.width="")},destroy:function(){n.destroy(this.headerNode);delete this.headerNode;for(var z in this.rowNodes)this._cleanupRowWidgets(this.rowNodes[z]),n.destroy(this.rowNodes[z]);this.rowNodes={};this.source&&this.source.destroy();
this.inherited(arguments)},focus:function(){d("ie")||d("webkit")||d("opera")?this.hiddenFocusNode.focus():this.scrollboxNode.focus()},setStructure:function(z){z=this.structure=z;z.width&&!isNaN(z.width)?this.viewWidth=z.width+"em":this.viewWidth=z.width||(z.noscroll?"auto":this.viewWidth);this._onBeforeRow=z.onBeforeRow||function(){};this._onAfterRow=z.onAfterRow||function(){};if(this.noscroll=z.noscroll)this.scrollboxNode.style.overflow="hidden";this.simpleStructure=1==z.cells.length;this.testFlexCells();
this.updateStructure()},_cleanupRowWidgets:function(z){z&&h.forEach(b("[widgetId]",z).map(A.byNode),function(C){C._destroyOnRemove?(C.destroy(),delete C):C.domNode&&C.domNode.parentNode&&C.domNode.parentNode.removeChild(C.domNode)})},onBeforeRow:function(z,C){this._onBeforeRow(z,C);0<=z&&this._cleanupRowWidgets(this.getRowNode(z))},onAfterRow:function(z,C,G){this._onAfterRow(z,C,G);var B=this.grid;h.forEach(b(".dojoxGridStubNode",G),function(D){if(D&&D.parentNode){var E=D.getAttribute("linkWidget"),
J=window.parseInt(n.attr(D,"cellIdx"),10);B.getCell(J);(E=A.byId(E))?(D.parentNode.replaceChild(E.domNode,D),E._started||E.startup(),u.destroy(D)):D.innerHTML=""}},this)},testFlexCells:function(){this.flexCells=!1;for(var z=0,C;C=this.structure.cells[z];z++)for(var G=0,B;B=C[G];G++)B.view=this,this.flexCells=this.flexCells||B.isFlex();return this.flexCells},updateStructure:function(){this.header.update();this.content.update()},getScrollbarWidth:function(){var z=this.hasVScrollbar(),C=n.style(this.scrollboxNode,
"overflow");this.noscroll||!C||"hidden"==C?z=!1:"scroll"==C&&(z=!0);return z?p.getScrollbar().w:0},getColumnsWidth:function(){var z=this.headerContentNode;return z&&z.firstChild?z.firstChild.offsetWidth||n.style(z.firstChild,"width"):0},setColumnsWidth:function(z){this.headerContentNode.firstChild.style.width=z+"px";this.viewWidth&&(this.viewWidth=z+"px")},getWidth:function(){return this.viewWidth||this.getColumnsWidth()+this.getScrollbarWidth()+"px"},getContentWidth:function(){return Math.max(0,
n._getContentBox(this.domNode).w-this.getScrollbarWidth())+"px"},render:function(){this.scrollboxNode.style.height="";this.renderHeader();0<=this._togglingColumn&&(this.setColumnsWidth(this.getColumnsWidth()-this._togglingColumn),this._togglingColumn=-1);var z=this.grid.layout.cells,C=e.hitch(this,function(B,D){!this.grid.isLeftToRight()&&(D=!D);for(var E=D?-1:1,J=this.header.getCellNodeIndex(B)+E,I=z[J];I&&I.getHeaderNode()&&"none"==I.getHeaderNode().style.display;)J+=E,I=z[J];return I?I.getHeaderNode():
null});if(this.grid.columnReordering&&this.simpleStructure){this.source&&this.source.destroy();this.bottomMarker&&n.destroy(this.bottomMarker);this.bottomMarker=n.byId("dojoxGrid_bottomMarker");this.topMarker&&n.destroy(this.topMarker);this.topMarker=n.byId("dojoxGrid_topMarker");this.bottomMarker||(this.bottomMarker=n.create("div",{id:"dojoxGrid_bottomMarker","class":"dojoxGridColPlaceBottom"},a.body()),this._hide(this.bottomMarker),this.topMarker=n.create("div",{id:"dojoxGrid_topMarker","class":"dojoxGridColPlaceTop"},
a.body()),this._hide(this.topMarker));this.arrowDim=n.contentBox(this.bottomMarker);var G=n.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new f(this.headerContentNode.firstChild.rows[0],{horizontal:!0,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:!1,onMouseDown:e.hitch(this,function(B){this.header.decorateEvent(B);if((this.header.overRightResizeArea(B)||this.header.overLeftResizeArea(B))&&this.header.canResize(B)&&!this.header.moveable)this.header.beginColumnResize(B);
else{if(this.grid.headerMenu)this.grid.headerMenu.onCancel(!0);B.button===(9>d("ie")?1:0)&&f.prototype.onMouseDown.call(this.source,B)}}),onMouseOver:e.hitch(this,function(B){var D=this.source;D._getChildByEvent(B)&&f.prototype.onMouseOver.apply(D,arguments)}),_markTargetAnchor:e.hitch(this,function(B){var D=this.source;if(D.current!=D.targetAnchor||D.before!=B){D.targetAnchor&&C(D.targetAnchor,D.before)&&D._removeItemClass(C(D.targetAnchor,D.before),D.before?"After":"Before");f.prototype._markTargetAnchor.call(D,
B);var E=B?D.targetAnchor:C(D.targetAnchor,D.before);B=0;E||(E=D.targetAnchor,B=n.contentBox(E).w+this.arrowDim.w/2+2);E=n.position(E,!0);B=Math.floor(E.x-this.arrowDim.w/2+B);n.style(this.bottomMarker,"visibility","visible");n.style(this.topMarker,"visibility","visible");n.style(this.bottomMarker,{left:B+"px",top:G+E.y+"px"});n.style(this.topMarker,{left:B+"px",top:E.y-this.arrowDim.h+"px"});D.targetAnchor&&C(D.targetAnchor,D.before)&&D._addItemClass(C(D.targetAnchor,D.before),D.before?"After":"Before")}}),
_unmarkTargetAnchor:e.hitch(this,function(){var B=this.source;B.targetAnchor&&(B.targetAnchor&&C(B.targetAnchor,B.before)&&B._removeItemClass(C(B.targetAnchor,B.before),B.before?"After":"Before"),this._hide(this.bottomMarker),this._hide(this.topMarker),f.prototype._unmarkTargetAnchor.call(B))}),destroy:e.hitch(this,function(){g.disconnect(this._source_conn);g.unsubscribe(this._source_sub);f.prototype.destroy.call(this.source);this.bottomMarker&&(n.destroy(this.bottomMarker),delete this.bottomMarker);
this.topMarker&&(n.destroy(this.topMarker),delete this.topMarker)}),onDndCancel:e.hitch(this,function(){f.prototype.onDndCancel.call(this.source);this._hide(this.bottomMarker);this._hide(this.topMarker)})});this._source_conn=g.connect(this.source,"onDndDrop",this,"_onDndDrop");this._source_sub=g.subscribe("/dnd/drop/before",this,"_onDndDropBefore");this.source.startup()}},_hide:function(z){n.style(z,{top:"-10000px",visibility:"hidden"})},_onDndDropBefore:function(z,C,G){t.manager().target===this.source&&
(this.source._targetNode=this.source.targetAnchor,this.source._beforeTarget=this.source.before,C=this.grid.views.views,z=C[z.viewIndex],C=C[this.index],C!=z&&(z.convertColPctToFixed(),C.convertColPctToFixed()))},_onDndDrop:function(z,C,G){if(t.manager().target!==this.source)t.manager().source===this.source&&(this._removingColumn=!0);else{this._hide(this.bottomMarker);this._hide(this.topMarker);G=n.marginBox(C[0]).w;if(z.viewIndex!==this.index){var B=this.grid.views.views,D=B[z.viewIndex];B=B[this.index];
D.viewWidth&&"auto"!=D.viewWidth&&D.setColumnsWidth(D.getColumnsWidth()-G);B.viewWidth&&"auto"!=B.viewWidth&&B.setColumnsWidth(B.getColumnsWidth())}G=this.source._targetNode;D=this.source._beforeTarget;!this.grid.isLeftToRight()&&(D=!D);B=this.grid.layout;var E=this.index;delete this.source._targetNode;delete this.source._beforeTarget;var J=B.moveColumn;z=z.viewIndex;C=(C=C[0])?n.attr(C,"idx"):null;J.call(B,z,E,C,G?n.attr(G,"idx"):null,D)}},renderHeader:function(){this.headerContentNode.innerHTML=
this.header.generateHtml(this._getHeaderContent);this.flexCells&&(this.contentWidth=this.getContentWidth(),this.headerContentNode.firstChild.style.width=this.contentWidth);l.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode])},_getHeaderContent:function(z){var C=z.name||z.grid.getCellName(z);/^\s+$/.test(C)&&(C="\x26nbsp;");var G=['\x3cdiv class\x3d"dojoxGridSortNode'];z.index!=z.grid.getSortIndex()?G.push('"\x3e'):G=G.concat([" ",0<z.grid.sortInfo?"dojoxGridSortUp":"dojoxGridSortDown",
'"\x3e\x3cdiv class\x3d"dojoxGridArrowButtonChar"\x3e',0<z.grid.sortInfo?"\x26#9650;":"\x26#9660;",'\x3c/div\x3e\x3cdiv class\x3d"dojoxGridArrowButtonNode" role\x3d"presentation"\x3e\x3c/div\x3e','\x3cdiv class\x3d"dojoxGridColCaption"\x3e']);G=G.concat([C,"\x3c/div\x3e\x3c/div\x3e"]);return G.join("")},resize:function(){this.adaptHeight();this.adaptWidth()},hasHScrollbar:function(z){var C=this._hasHScroll||!1;if(void 0==this._hasHScroll||z)this.noscroll?this._hasHScroll=!1:(z=n.style(this.scrollboxNode,
"overflow"),this._hasHScroll="hidden"==z?!1:"scroll"==z?!0:this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);C!==this._hasHScroll&&this.grid.update();return this._hasHScroll},hasVScrollbar:function(z){var C=this._hasVScroll||!1;if(void 0==this._hasVScroll||z)this.noscroll?this._hasVScroll=!1:(z=n.style(this.scrollboxNode,"overflow"),this._hasVScroll="hidden"==z?!1:"scroll"==z?!0:this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);C!==this._hasVScroll&&
this.grid.update();return this._hasVScroll},convertColPctToFixed:function(){var z=!1;this.grid.initialWidth="";var C=b("th",this.headerContentNode),G=h.map(C,function(B,D){var E=B.style.width;n.attr(B,"vIdx",D);if(E&&"%"==E.slice(-1))z=!0;else if(E&&"px"==E.slice(-2))return window.parseInt(E,10);return n.contentBox(B).w});return z?(h.forEach(this.grid.layout.cells,function(B,D){if(B.view==this){var E=B.view.getHeaderCellNode(B.index);if(E&&n.hasAttr(E,"vIdx")){var J=window.parseInt(n.attr(E,"vIdx"));
this.setColWidth(D,G[J]);n.removeAttr(E,"vIdx")}}},this),!0):!1},adaptHeight:function(z){if(!this.grid._autoHeight){var C=this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10)||this.domNode.clientHeight;if(!z&&(z=this.noscroll))a:{for(var G=0;G<this.grid.views.views.length;++G)if(z=this.grid.views.views[G],z!==this&&z.hasHScrollbar()){z=!0;break a}z=!1}z&&(C-=p.getScrollbar().h);l.setStyleHeightPx(this.scrollboxNode,C)}this.hasVScrollbar(!0)},adaptWidth:function(){this.flexCells&&
(this.contentWidth=this.getContentWidth(),this.headerContentNode.firstChild.style.width=this.contentWidth);var z=this.scrollboxNode.offsetWidth-this.getScrollbarWidth();this._removingColumn?(z=Math.min(z,this.getColumnsWidth())+"px",this._removingColumn=!1):z=Math.max(z,this.getColumnsWidth())+"px";this.contentNode.style.width=z;this.hasHScrollbar(!0)},setSize:function(z,C){var G=this.domNode.style,B=this.headerNode.style;z&&(G.width=z,B.width=z);G.height=0<=C?C+"px":""},renderRow:function(z){var C=
this.createRowNode(z);this.buildRow(z,C);return C},createRowNode:function(z){var C=document.createElement("div");C.className=this.classTag+"Row";this instanceof x.grid._RowSelector?n.attr(C,"role","presentation"):(n.attr(C,"role","row"),"none"!=this.grid.selectionMode&&C.setAttribute("aria-selected","false"));C[l.gridViewTag]=this.id;C[l.rowIndexTag]=z;return this.rowNodes[z]=C},buildRow:function(z,C){this.buildRowContent(z,C);this.styleRow(z,C)},buildRowContent:function(z,C){C.innerHTML=this.content.generateHtml(z,
z);this.flexCells&&this.contentWidth&&(C.firstChild.style.width=this.contentWidth);l.fire(this,"onAfterRow",[z,this.structure.cells,C])},rowRemoved:function(z){0<=z&&this._cleanupRowWidgets(this.getRowNode(z));this.grid.edit.save(this,z);delete this.rowNodes[z]},getRowNode:function(z){return this.rowNodes[z]},getCellNode:function(z,C){var G=this.getRowNode(z);if(G)return this.content.getCellNode(G,C)},getHeaderCellNode:function(z){if(this.headerContentNode)return this.header.getCellNode(this.headerContentNode,
z)},styleRow:function(z,C){var G=void 0==C.style.cssText?C.getAttribute("style"):C.style.cssText;C._style=G;this.styleRowNode(z,C)},styleRowNode:function(z,C){C&&this.doStyleRowNode(z,C)},doStyleRowNode:function(z,C){this.grid.styleRowNode(z,C)},updateRow:function(z){var C=this.getRowNode(z);C&&(C.style.height="",this.buildRow(z,C));return C},updateRowStyles:function(z){this.styleRowNode(z,this.getRowNode(z))},lastTop:0,firstScroll:0,_nativeScroll:!1,doscroll:function(z){if(13<=d("ff")||d("chrome"))this._nativeScroll=
!0;z=this.grid.isLeftToRight();if(2>this.firstScroll){if(!z&&1==this.firstScroll||z&&0===this.firstScroll){var C=n.marginBox(this.headerNodeContainer);d("ie")?this.headerNodeContainer.style.width=C.w+this.getScrollbarWidth()+"px":d("mozilla")&&(this.headerNodeContainer.style.width=C.w-this.getScrollbarWidth()+"px",this.scrollboxNode.scrollLeft=z?this.scrollboxNode.clientWidth-this.scrollboxNode.scrollWidth:this.scrollboxNode.scrollWidth-this.scrollboxNode.clientWidth)}this.firstScroll++}this.headerNode.scrollLeft=
this.scrollboxNode.scrollLeft;z=this.scrollboxNode.scrollTop;z!==this.lastTop&&this.grid.scrollTo(z);this._nativeScroll=!1},setScrollTop:function(z){this.lastTop=z;this._nativeScroll||(this.scrollboxNode.scrollTop=z);return this.scrollboxNode.scrollTop},doContentEvent:function(z){if(this.content.decorateEvent(z))this.grid.onContentEvent(z)},doHeaderEvent:function(z){if(this.header.decorateEvent(z))this.grid.onHeaderEvent(z)},dispatchContentEvent:function(z){return this.content.dispatchEvent(z)},dispatchHeaderEvent:function(z){return this.header.dispatchEvent(z)},
setColWidth:function(z,C){this.grid.setCellWidth(z,C+"px")},update:function(){if(this.domNode){this.content.update();this.grid.update();var z=this.scrollboxNode.scrollLeft;this.scrollboxNode.scrollLeft=z;this.headerNode.scrollLeft=z}}});var v=r("dojox.grid._GridAvatar",w,{construct:function(){var z=a.doc,C=z.createElement("table");C.cellPadding=C.cellSpacing="0";C.className="dojoxGridDndAvatar";C.style.position="absolute";C.style.zIndex=1999;C.style.margin="0px";var G=z.createElement("tbody"),B=z.createElement("tr"),
D=z.createElement("td"),E=z.createElement("td");B.className="dojoxGridDndAvatarItem";E.className="dojoxGridDndAvatarItemImage";E.style.width="16px";var J=this.manager.source;if(J.creator)J=J._normalizedCreator(J.getItem(this.manager.nodes[0].id).data,"avatar").node;else if(J=this.manager.nodes[0].cloneNode(!0),"tr"==J.tagName.toLowerCase()){var I=z.createElement("table");var F=z.createElement("tbody");F.appendChild(J);I.appendChild(F);J=I}else"th"==J.tagName.toLowerCase()&&(I=z.createElement("table"),
F=z.createElement("tbody"),z=z.createElement("tr"),I.cellPadding=I.cellSpacing="0",z.appendChild(J),F.appendChild(z),I.appendChild(F),J=I);J.id="";D.appendChild(J);B.appendChild(E);B.appendChild(D);n.style(B,"opacity",.9);G.appendChild(B);C.appendChild(G);this.node=C;C=t.manager();this.oldOffsetY=C.OFFSET_Y;C.OFFSET_Y=1},destroy:function(){t.manager().OFFSET_Y=this.oldOffsetY;this.inherited(arguments)}}),y=t.manager().makeAvatar;t.manager().makeAvatar=function(){return void 0===this.source.viewIndex||
n.hasClass(a.body(),"dijit_a11y")?y.call(t.manager()):new v(this)};return c})},"dojox/html/metrics":function(){define("dojo/_base/kernel dojo/_base/lang dojo/_base/sniff dojo/ready dojo/_base/unload dojo/_base/window dojo/dom-geometry".split(" "),function(u,A,x,r,h,e,g){var d=A.getObject("dojox.html.metrics",!0),b=A.getObject("dojox");d.getFontMeasurements=function(){var p={"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};if(x("ie")){var l=
e.doc.documentElement.style.fontSize||"";l||(e.doc.documentElement.style.fontSize="100%")}var n=e.doc.createElement("div"),q=n.style;q.position="absolute";q.left="-100px";q.top="0";q.width="30px";q.height="1000em";q.borderWidth="0";q.margin="0";q.padding="0";q.outline="0";q.lineHeight="1";q.overflow="hidden";e.body().appendChild(n);for(var w in p)q.fontSize=w,p[w]=16*Math.round(12*n.offsetHeight/16)/12/1E3;x("ie")&&(e.doc.documentElement.style.fontSize=l);e.body().removeChild(n);n=null;return p};
var a=null;d.getCachedFontMeasurements=function(p){if(p||!a)a=d.getFontMeasurements();return a};var c=null,f={};d.getTextBox=function(p,l,n){if(c)var q=c;else{q=c=e.doc.createElement("div");q.style.whiteSpace="nowrap";var w=e.doc.createElement("div");w.appendChild(q);var t=w.style;t.overflow="scroll";t.position="absolute";t.left="0px";t.top="-10000px";t.width="1px";t.height="1px";t.visibility="hidden";t.borderWidth="0";t.margin="0";t.padding="0";t.outline="0";e.body().appendChild(w)}q.className="";
t=q.style;t.borderWidth="0";t.margin="0";t.padding="0";t.outline="0";if(1<arguments.length&&l)for(var v in l)v in f||(t[v]=l[v]);2<arguments.length&&n&&(q.className=n);q.innerHTML=p;t=g.position(q);t.w=q.parentNode.scrollWidth;return t};var k=16,m=16;d.getScrollbar=function(){return{w:k,h:m}};d._fontResizeNode=null;d.initOnFontResize=function(p){var l=d._fontResizeNode=e.doc.createElement("iframe");p=l.style;p.position="absolute";p.width="5em";p.height="10em";p.top="-10000px";p.display="none";x("ie")?
l.onreadystatechange=function(){"complete"==l.contentWindow.document.readyState&&(l.onresize=l.contentWindow.parent[b._scopeName].html.metrics._fontresize)}:l.onload=function(){l.contentWindow.onresize=l.contentWindow.parent[b._scopeName].html.metrics._fontresize};l.setAttribute("src","javascript:'\x3chtml\x3e\x3chead\x3e\x3cscript\x3eif(\"loadFirebugConsole\" in window){window.loadFirebugConsole();}\x3c/script\x3e\x3c/head\x3e\x3cbody\x3e\x3c/body\x3e\x3c/html\x3e'");e.body().appendChild(l);d.initOnFontResize=
function(){}};d.onFontResize=function(){};d._fontresize=function(){d.onFontResize()};h.addOnUnload(function(){var p=d._fontResizeNode;p&&(x("ie")&&p.onresize?p.onresize=null:p.contentWindow&&p.contentWindow.onresize&&(p.contentWindow.onresize=null),d._fontResizeNode=null)});r(function(){try{var p=e.doc.createElement("div");p.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;";e.body().appendChild(p);k=p.offsetWidth-p.clientWidth;m=p.offsetHeight-
p.clientHeight;e.body().removeChild(p);delete p}catch(l){}"fontSizeWatch"in u.config&&u.config.fontSizeWatch&&d.initOnFontResize()});return d})},"dojox/grid/_Builder":function(){define("../main dojo/_base/array dojo/_base/lang dojo/_base/window dojo/_base/event dojo/_base/sniff dojo/_base/connect dojo/dnd/Moveable dojox/html/metrics ./util dojo/_base/html dojo/dom-geometry".split(" "),function(u,A,x,r,h,e,g,d,b,a,c,f){var k=u.grid,m=function(v,y){return v&&((v.rows||0)[y]||v.childNodes[y])},p=function(v){for(;v&&
"TABLE"!=v.tagName;v=v.parentNode);return v},l=function(v){var y=v.toUpperCase();return function(z){return z.tagName!=y}},n=a.rowIndexTag,q=a.gridViewTag,w=k._Builder=x.extend(function(v){v&&(this.view=v,this.grid=v.grid)},{view:null,_table:'\x3ctable class\x3d"dojoxGridRowTable" border\x3d"0" cellspacing\x3d"0" cellpadding\x3d"0" role\x3d"presentation"',getTableArray:function(){var v=[this._table];this.view.viewWidth&&v.push([' style\x3d"width:',this.view.viewWidth,';"'].join(""));v.push("\x3e");
return v},generateCellMarkup:function(v,y,z,C){var G=[];if(C){var B=v.index!=v.grid.getSortIndex()?"":0<v.grid.sortInfo?'aria-sort\x3d"ascending"':'aria-sort\x3d"descending"';v.id||(v.id=this.grid.id+"Hdr"+v.index);B=['\x3cth tabIndex\x3d"-1" aria-readonly\x3d"true" role\x3d"columnheader"',B,' id\x3d"',v.id,'"']}else B=['\x3ctd tabIndex\x3d"-1" role\x3d"gridcell"',this.grid.editable&&!v.editable?'aria-readonly\x3d"true"':""];v.colSpan&&B.push(' colspan\x3d"',v.colSpan,'"');v.rowSpan&&B.push(' rowspan\x3d"',
v.rowSpan,'"');B.push(' class\x3d"dojoxGridCell ');v.classes&&B.push(v.classes," ");z&&B.push(z," ");G.push(B.join(""));G.push("");B=['" idx\x3d"',v.index,'" style\x3d"'];y&&";"!=y[y.length-1]&&(y+=";");B.push(v.styles,y||"",v.hidden?"display:none;":"");v.unitWidth&&B.push("width:",v.unitWidth,";");G.push(B.join(""));G.push("");B=['"'];v.attrs&&B.push(" ",v.attrs);B.push("\x3e");G.push(B.join(""));G.push("");G.push(C?"\x3c/th\x3e":"\x3c/td\x3e");return G},isCellNode:function(v){return!(!v||v==r.doc||
!c.attr(v,"idx"))},getCellNodeIndex:function(v){return v?Number(c.attr(v,"idx")):-1},getCellNode:function(v,y){for(var z=0,C;(C=m(v.firstChild,z))&&C.cells;z++)for(var G=0,B;B=C.cells[G];G++)if(this.getCellNodeIndex(B)==y)return B;return null},findCellTarget:function(v,y){for(var z=v;z&&(!this.isCellNode(z)||z.offsetParent&&q in z.offsetParent.parentNode&&z.offsetParent.parentNode[q]!=this.view.id)&&z!=y;)z=z.parentNode;return z!=y?z:null},baseDecorateEvent:function(v){v.dispatch="do"+v.type;v.grid=
this.grid;v.sourceView=this.view;v.cellNode=this.findCellTarget(v.target,v.rowNode);v.cellIndex=this.getCellNodeIndex(v.cellNode);v.cell=0<=v.cellIndex?this.grid.getCell(v.cellIndex):null},findTarget:function(v,y){for(var z=v;z&&z!=this.domNode&&(!(y in z)||q in z&&z[q]!=this.view.id);)z=z.parentNode;return z!=this.domNode?z:null},findRowTarget:function(v){return this.findTarget(v,n)},isIntraNodeEvent:function(v){try{return v.cellNode&&v.relatedTarget&&c.isDescendant(v.relatedTarget,v.cellNode)}catch(y){return!1}},
isIntraRowEvent:function(v){try{var y=v.relatedTarget&&this.findRowTarget(v.relatedTarget);return!y&&-1==v.rowIndex||y&&v.rowIndex==y.gridRowIndex}catch(z){return!1}},dispatchEvent:function(v){return v.dispatch in this?this[v.dispatch](v):!1},domouseover:function(v){v.cellNode&&v.cellNode!=this.lastOverCellNode&&(this.lastOverCellNode=v.cellNode,this.grid.onMouseOver(v));this.grid.onMouseOverRow(v)},domouseout:function(v){if(v.cellNode&&v.cellNode==this.lastOverCellNode&&!this.isIntraNodeEvent(v,
this.lastOverCellNode)&&(this.lastOverCellNode=null,this.grid.onMouseOut(v),!this.isIntraRowEvent(v)))this.grid.onMouseOutRow(v)},domousedown:function(v){if(v.cellNode)this.grid.onMouseDown(v);this.grid.onMouseDownRow(v)},_getTextDirStyle:function(v,y,z){return""}});u=k._ContentBuilder=x.extend(function(v){w.call(this,v)},w.prototype,{update:function(){this.prepareHtml()},prepareHtml:function(){for(var v=this.grid.get,y=this.view.structure.cells,z=0,C;C=y[z];z++)for(var G=0,B;B=C[G];G++)B.get=B.get||
void 0==B.value&&v,B.markup=this.generateCellMarkup(B,B.cellStyles,B.cellClasses,!1),!this.grid.editable&&B.editable&&(this.grid.editable=!0)},generateHtml:function(v,y){var z=this.getTableArray(),C=this.view.structure.cells,G=this.grid.getItem(y);a.fire(this.view,"onBeforeRow",[y,C]);for(var B=0,D;D=C[B];B++)if(!D.hidden&&!D.header){z.push(D.invisible?'\x3ctr class\x3d"dojoxGridInvisible"\x3e':"\x3ctr\x3e");for(var E=0,J,I,F;J=D[E];E++){I=J.markup;var H=J.customClasses=[];F=J.customStyles=[];I[5]=
J.format(y,G);I[1]=H.join(" ");I[3]=F.join(";");(H=J.textDir||this.grid.textDir)&&(I[3]+=this._getTextDirStyle(H,J,y));z.push.apply(z,I)}z.push("\x3c/tr\x3e")}z.push("\x3c/table\x3e");return z.join("")},decorateEvent:function(v){v.rowNode=this.findRowTarget(v.target);if(!v.rowNode)return!1;v.rowIndex=v.rowNode[n];this.baseDecorateEvent(v);v.cell=this.grid.getCell(v.cellIndex);return!0}});var t=k._HeaderBuilder=x.extend(function(v){this.moveable=null;w.call(this,v)},w.prototype,{_skipBogusClicks:!1,
overResizeWidth:4,minColWidth:1,update:function(){this.tableMap?this.tableMap.mapRows(this.view.structure.cells):this.tableMap=new k._TableMap(this.view.structure.cells)},generateHtml:function(v,y){var z,C=this.getTableArray(),G=this.view.structure.cells;a.fire(this.view,"onBeforeRow",[-1,G]);for(var B=0,D;D=G[B];B++)if(!D.hidden){C.push(D.invisible?'\x3ctr class\x3d"dojoxGridInvisible"\x3e':"\x3ctr\x3e");for(var E=0,J,I;J=D[E];E++)J.customClasses=[],J.customStyles=[],this.view.simpleStructure&&(J.draggable&&
(J.headerClasses?-1==J.headerClasses.indexOf("dojoDndItem")&&(J.headerClasses+=" dojoDndItem"):J.headerClasses="dojoDndItem"),J.attrs?-1==J.attrs.indexOf("dndType\x3d'gridColumn_")&&(J.attrs+=" dndType\x3d'gridColumn_"+this.grid.id+"'"):J.attrs="dndType\x3d'gridColumn_"+this.grid.id+"'"),I=this.generateCellMarkup(J,J.headerStyles,J.headerClasses,!0),I[5]=void 0!=y?y:v(J),I[3]=J.customStyles.join(";"),(z=J.textDir||this.grid.textDir)&&(I[3]+=this._getTextDirStyle(z,J,y)),I[1]=J.customClasses.join(" "),
C.push(I.join(""));C.push("\x3c/tr\x3e")}C.push("\x3c/table\x3e");return C.join("")},getCellX:function(v){var y=l("th");for(var z=v.target;z&&y(z);z=z.parentNode);(y=z)?(y=f.position(y),v=v.clientX-y.x):v=v.layerX;return v},decorateEvent:function(v){this.baseDecorateEvent(v);v.rowIndex=-1;v.cellX=this.getCellX(v);return!0},prepareResize:function(v,y){do{var z=v.cellIndex;v.cellNode=z?v.cellNode.parentNode.cells[z+y]:null;v.cellIndex=v.cellNode?this.getCellNodeIndex(v.cellNode):-1}while(v.cellNode&&
"none"==v.cellNode.style.display);return!!v.cellNode},canResize:function(v){if(!v.cellNode||1<v.cellNode.colSpan)return!1;v=this.grid.getCell(v.cellIndex);return!v.noresize&&v.canResize()},overLeftResizeArea:function(v){if(c.hasClass(r.body(),"dojoDndMove"))return!1;if(e("ie")){var y=v.target;if(c.hasClass(y,"dojoxGridArrowButtonNode")||c.hasClass(y,"dojoxGridArrowButtonChar")||c.hasClass(y,"dojoxGridColCaption"))return!1}return this.grid.isLeftToRight()?0<v.cellIndex&&0<v.cellX&&v.cellX<this.overResizeWidth&&
this.prepareResize(v,-1):v.cellNode&&0<v.cellX&&v.cellX<this.overResizeWidth},overRightResizeArea:function(v){if(c.hasClass(r.body(),"dojoDndMove"))return!1;if(e("ie")){var y=v.target;if(c.hasClass(y,"dojoxGridArrowButtonNode")||c.hasClass(y,"dojoxGridArrowButtonChar")||c.hasClass(y,"dojoxGridColCaption"))return!1}return this.grid.isLeftToRight()?v.cellNode&&v.cellX>=v.cellNode.offsetWidth-this.overResizeWidth:0<v.cellIndex&&v.cellX>=v.cellNode.offsetWidth-this.overResizeWidth&&this.prepareResize(v,
-1)},domousemove:function(v){if(!this.moveable){var y=this.overRightResizeArea(v)?"dojoxGridColResize":this.overLeftResizeArea(v)?"dojoxGridColResize":"";y&&!this.canResize(v)&&(y="dojoxGridColNoResize");c.toggleClass(v.sourceView.headerNode,"dojoxGridColNoResize","dojoxGridColNoResize"==y);c.toggleClass(v.sourceView.headerNode,"dojoxGridColResize","dojoxGridColResize"==y);y&&h.stop(v)}},domousedown:function(v){this.moveable||((this.overRightResizeArea(v)||this.overLeftResizeArea(v))&&this.canResize(v)?
this.beginColumnResize(v):(this.grid.onMouseDown(v),this.grid.onMouseOverRow(v)))},doclick:function(v){return this._skipBogusClicks?(h.stop(v),!0):!1},colResizeSetup:function(v,y){var z=c.contentBox(v.sourceView.headerNode);if(y){this.lineDiv=document.createElement("div");var C=c.position(v.sourceView.headerNode,!0),G=c.contentBox(v.sourceView.domNode),B=v.pageX;!this.grid.isLeftToRight()&&8>e("ie")&&(B-=b.getScrollbar().w);c.style(this.lineDiv,{top:C.y+"px",left:B+"px",height:G.h+z.h+"px"});c.addClass(this.lineDiv,
"dojoxGridResizeColLine");this.lineDiv._origLeft=B;r.body().appendChild(this.lineDiv)}C=[];G=this.tableMap.findOverlappingNodes(v.cellNode);B=0;for(var D;D=G[B];B++)C.push({node:D,index:this.getCellNodeIndex(D),width:D.offsetWidth});G=v.sourceView;D=this.grid.isLeftToRight()?1:-1;var E=v.grid.views.views;B=[];for(var J=G.idx+D,I;I=E[J];J+=D)B.push({node:I.headerNode,left:window.parseInt(I.headerNode.style.left)});D=G.headerContentNode.firstChild;return{scrollLeft:v.sourceView.headerNode.scrollLeft,
view:G,node:v.cellNode,index:v.cellIndex,w:c.contentBox(v.cellNode).w,vw:z.w,table:D,tw:c.contentBox(D).w,spanners:C,followers:B}},beginColumnResize:function(v){this.moverDiv=document.createElement("div");c.style(this.moverDiv,{position:"absolute",left:0});r.body().appendChild(this.moverDiv);c.addClass(this.grid.domNode,"dojoxGridColumnResizing");var y=this.moveable=new d(this.moverDiv),z=this.colResizeSetup(v,!0);y.onMove=x.hitch(this,"doResizeColumn",z);g.connect(y,"onMoveStop",x.hitch(this,function(){this.endResizeColumn(z);
z.node.releaseCapture&&z.node.releaseCapture();this.moveable.destroy();delete this.moveable;this.moveable=null;c.removeClass(this.grid.domNode,"dojoxGridColumnResizing")}));v.cellNode.setCapture&&v.cellNode.setCapture();y.onMouseDown(v)},doResizeColumn:function(v,y,z){var C=z.l;C={deltaX:C,w:v.w+(this.grid.isLeftToRight()?C:-C),vw:v.vw+C,tw:v.tw+C};this.dragRecord={inDrag:v,mover:y,leftTop:z};C.w>=this.minColWidth&&(y?c.style(this.lineDiv,"left",this.lineDiv._origLeft+C.deltaX+"px"):this.doResizeNow(v,
C))},endResizeColumn:function(v){if(this.dragRecord){var y=this.dragRecord.leftTop;y=this.grid.isLeftToRight()?y.l:-y.l;y+=Math.max(v.w+y,this.minColWidth)-(v.w+y);e("webkit")&&v.spanners.length&&(y+=c._getPadBorderExtents(v.spanners[0].node).w);this.doResizeNow(v,{deltaX:y,w:v.w+y,vw:v.vw+y,tw:v.tw+y});delete this.dragRecord}c.destroy(this.lineDiv);c.destroy(this.moverDiv);c.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=!0;v.view.update();this._skipBogusClicks=!1;this.grid.onResizeColumn(v.index)},
doResizeNow:function(v,y){v.view.convertColPctToFixed();if(v.view.flexCells&&!v.view.testFlexCells()){var z=p(v.node);z&&(z.style.width="")}var C;for(z=0;C=v.spanners[z];z++){var G=C.width+y.deltaX;0<G&&(C.node.style.width=G+"px",v.view.setColWidth(C.index,G))}if(this.grid.isLeftToRight()||!e("ie"))for(z=0;C=v.followers[z];z++)G=C.left+y.deltaX,C.node.style.left=G+"px";v.node.style.width=y.w+"px";v.view.setColWidth(v.index,y.w);v.view.headerNode.style.width=y.vw+"px";v.view.setColumnsWidth(y.tw);
this.grid.isLeftToRight()||(v.view.headerNode.scrollLeft=v.scrollLeft+y.deltaX)}});k._TableMap=x.extend(function(v){this.mapRows(v)},{map:null,mapRows:function(v){if(v.length){this.map=[];for(var y,z=0;y=v[z];z++)this.map[z]=[];for(z=0;y=v[z];z++)for(var C=0,G=0,B,D;B=y[C];C++){for(;this.map[z][G];)G++;this.map[z][G]={c:C,r:z};D=B.rowSpan||1;B=B.colSpan||1;for(var E=0;E<D;E++)for(var J=0;J<B;J++)this.map[z+E][G+J]=this.map[z][G];G+=B}}},dumpMap:function(){for(var v=0,y;y=this.map[v];v++)for(var z=
0;y[z];z++);},getMapCoords:function(v,y){for(var z=0,C;C=this.map[z];z++)for(var G=0,B;B=C[G];G++)if(B.c==y&&B.r==v)return{j:z,i:G};return{j:-1,i:-1}},getNode:function(v,y,z){return(v=v&&v.rows[y])&&v.cells[z]},_findOverlappingNodes:function(v,y,z){var C=[];y=this.getMapCoords(y,z);z=0;for(var G;G=this.map[z];z++)z!=y.j&&(G=(G=G[y.i])?this.getNode(v,G.r,G.c):null)&&C.push(G);return C},findOverlappingNodes:function(v){var y=this._findOverlappingNodes,z=p(v);var C=v.parentNode;C=0<=C.rowIndex?C.rowIndex:
A.indexOf(C.parentNode.childNodes,C);return y.call(this,z,C,0<=v.cellIndex?v.cellIndex:A.indexOf(v.parentNode.cells,v))}});return{_Builder:w,_HeaderBuilder:t,_ContentBuilder:u}})},"dojox/grid/_ViewManager":function(){define(["dojo/_base/declare","dojo/_base/sniff","dojo/dom-class"],function(u,A,x){return u("dojox.grid._ViewManager",null,{constructor:function(r){this.grid=r},defaultWidth:200,views:[],resize:function(){this.onEach("resize")},render:function(){this.onEach("render")},addView:function(r){r.idx=
this.views.length;this.views.push(r)},destroyViews:function(){for(var r=0,h;h=this.views[r];r++)h.destroy();this.views=[]},getContentNodes:function(){for(var r=[],h=0,e;e=this.views[h];h++)r.push(e.contentNode);return r},forEach:function(r){for(var h=0,e;e=this.views[h];h++)r(e,h)},onEach:function(r,h){h=h||[];for(var e=0,g;g=this.views[e];e++)r in g&&g[r].apply(g,h)},normalizeHeaderNodeHeight:function(){for(var r=[],h=0,e;e=this.views[h];h++)e.headerContentNode.firstChild&&r.push(e.headerContentNode);
this.normalizeRowNodeHeights(r)},normalizeRowNodeHeights:function(r){var h=0,e=[];if(this.grid.rowHeight)h=this.grid.rowHeight;else{if(1>=r.length)return;for(var g=0,d;d=r[g];g++)x.contains(d,"dojoxGridNonNormalizedCell")||(e[g]=d.firstChild.offsetHeight,h=Math.max(h,e[g]));h=0<=h?h:0;(A("mozilla")||8<A("ie"))&&h&&h++}for(g=0;d=r[g];g++)e[g]!=h&&(d.firstChild.style.height=h+"px")},resetHeaderNodeHeight:function(){for(var r=0,h;h=this.views[r];r++)if(h=h.headerContentNode.firstChild)h.style.height=
""},renormalizeRow:function(r){for(var h=[],e=0,g,d;(g=this.views[e])&&(d=g.getRowNode(r));e++)d.firstChild.style.height="",h.push(d);this.normalizeRowNodeHeights(h)},getViewWidth:function(r){return this.views[r].getWidth()||this.defaultWidth},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(h){h.headerContentNode.style.height=""});var r=0;this.forEach(function(h){r=Math.max(h.headerNode.offsetHeight,r)});return r},measureContent:function(){var r=0;this.forEach(function(h){r=
Math.max(h.domNode.offsetHeight,r)});return r},findClient:function(r){r=this.grid.elasticView||-1;if(0>r)for(var h=1,e;e=this.views[h];h++)if(e.viewWidth){for(h=1;e=this.views[h];h++)if(!e.viewWidth){r=h;break}break}0>r&&(r=Math.floor(this.views.length/2));return r},arrange:function(r,h){var e,g,d=this.views.length,b=this,a=0>=h?d:this.findClient(),c=function(p,l){var n=p.domNode.style,q=p.headerNode.style;b.grid.isLeftToRight()?(n.left=l+"px",q.left=l+"px"):(n.right=l+"px",4>A("ff")?q.right=l+p.getScrollbarWidth()+
"px":q.right=l+"px",A("webkit")||"auto"==q.width||(q.width=parseInt(q.width,10)-p.getScrollbarWidth()+"px"));n.top="0px";q.top=0};for(e=0;(g=this.views[e])&&e<a;e++){var f=this.getViewWidth(e);g.setSize(f,0);c(g,r);f=g.headerContentNode&&g.headerContentNode.firstChild?g.getColumnsWidth()+g.getScrollbarWidth():g.domNode.offsetWidth;r+=f}e++;for(var k=h,m=d-1;(g=this.views[m])&&e<=m;m--)f=this.getViewWidth(m),g.setSize(f,0),f=g.domNode.offsetWidth,k-=f,c(g,k);a<d&&(g=this.views[a],f=Math.max(1,k-r),
g.setSize(f+"px",0),c(g,r));return r},renderRow:function(r,h,e){for(var g=[],d=0,b,a;(b=this.views[d])&&(a=h[d]);d++)b=b.renderRow(r),a.appendChild(b),g.push(b);e||this.normalizeRowNodeHeights(g)},rowRemoved:function(r){this.onEach("rowRemoved",[r])},updateRow:function(r,h){for(var e=0,g;g=this.views[e];e++)g.updateRow(r);h||this.renormalizeRow(r)},updateRowStyles:function(r){this.onEach("updateRowStyles",[r])},setScrollTop:function(r){for(var h=r,e=0,g;g=this.views[e];e++)h=g.setScrollTop(r),A("ie")&&
g.headerNode&&g.scrollboxNode&&(g.headerNode.scrollLeft=g.scrollboxNode.scrollLeft);return h},getFirstScrollingView:function(){for(var r=0,h;h=this.views[r];r++)if(h.hasHScrollbar()||h.hasVScrollbar())return h;return null}})})},"dojox/grid/_RowManager":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/dom-class"],function(u,A,x){return u("dojox.grid._RowManager",null,{constructor:function(r){this.grid=r},linesToEms:2,overRow:-2,prepareStylingRow:function(r,h){return{index:r,node:h,odd:!!(r&
1),selected:!!this.grid.selection.isSelected(r),over:this.isOver(r),customStyles:"",customClasses:"dojoxGridRow"}},styleRowNode:function(r,h){var e=this.prepareStylingRow(r,h);this.grid.onStyleRow(e);this.applyStyles(e)},applyStyles:function(r){r.node.className=r.customClasses;var h=r.node.style.height,e=r.node,g=r.customStyles+";"+(r.node._style||"");void 0==e.style.cssText?e.setAttribute("style",g):e.style.cssText=g;r.node.style.height=h},updateStyles:function(r){this.grid.updateRowStyles(r)},setOverRow:function(r){var h=
this.overRow;this.overRow=r;h!=this.overRow&&(A.isString(h)||0<=h)&&this.updateStyles(h);this.updateStyles(this.overRow)},isOver:function(r){return this.overRow==r&&!x.contains(this.grid.domNode,"dojoxGridColumnResizing")}})})},"dojox/grid/_FocusManager":function(){define("dojo/_base/array dojo/_base/lang dojo/_base/declare dojo/_base/connect dojo/_base/event dojo/_base/sniff dojo/query ./util dojo/_base/html".split(" "),function(u,A,x,r,h,e,g,d,b){return x("dojox.grid._FocusManager",null,{constructor:function(a){this.grid=
a;this.cell=null;this.rowIndex=-1;this._connects=[];this._headerConnects=[];this.headerMenu=this.grid.headerMenu;this._connects.push(r.connect(this.grid.domNode,"onfocus",this,"doFocus"));this._connects.push(r.connect(this.grid.domNode,"onblur",this,"doBlur"));this._connects.push(r.connect(this.grid.domNode,"mousedown",this,"_mouseDown"));this._connects.push(r.connect(this.grid.domNode,"mouseup",this,"_mouseUp"));this._connects.push(r.connect(this.grid.domNode,"oncontextmenu",this,"doContextMenu"));
this._connects.push(r.connect(this.grid.lastFocusNode,"onfocus",this,"doLastNodeFocus"));this._connects.push(r.connect(this.grid.lastFocusNode,"onblur",this,"doLastNodeBlur"));this._connects.push(r.connect(this.grid,"_onFetchComplete",this,"_delayedCellFocus"));this._connects.push(r.connect(this.grid,"postrender",this,"_delayedHeaderFocus"))},destroy:function(){u.forEach(this._connects,r.disconnect);u.forEach(this._headerConnects,r.disconnect);delete this.grid;delete this.cell},_colHeadNode:null,
_colHeadFocusIdx:null,_contextMenuBindNode:null,tabbingOut:!1,focusClass:"dojoxGridCellFocus",focusView:null,initFocusView:function(){this.focusView=this.grid.views.getFirstScrollingView()||this.focusView||this.grid.views.views[0];this._initColumnHeaders()},isFocusCell:function(a,c){return this.cell==a&&this.rowIndex==c},isLastFocusCell:function(){return this.cell?this.rowIndex==this.grid.rowCount-1&&this.cell.index==this.grid.layout.cellCount-1:!1},isFirstFocusCell:function(){return this.cell?0===
this.rowIndex&&0===this.cell.index:!1},isNoFocusCell:function(){return 0>this.rowIndex||!this.cell},isNavHeader:function(){return!!this._colHeadNode},getHeaderIndex:function(){return this._colHeadNode?u.indexOf(this._findHeaderCells(),this._colHeadNode):-1},_focusifyCellNode:function(a){var c=this.cell&&this.cell.getNode(this.rowIndex);if(c&&(b.toggleClass(c,this.focusClass,a),a)){a=this.scrollIntoView();try{if(e("webkit")||!this.grid.edit.isEditing())d.fire(c,"focus"),a&&(this.cell.view.scrollboxNode.scrollLeft=
a)}catch(f){}}},_delayedCellFocus:function(){if(!this.isNavHeader()&&this.grid.focused){var a=this.cell&&this.cell.getNode(this.rowIndex);if(a)try{this.grid.edit.isEditing()||(b.toggleClass(a,this.focusClass,!0),this._colHeadNode&&this.blurHeader(),d.fire(a,"focus"))}catch(c){}}},_delayedHeaderFocus:function(){this.isNavHeader()&&this.focusHeader()},_initColumnHeaders:function(){u.forEach(this._headerConnects,r.disconnect);this._headerConnects=[];for(var a=this._findHeaderCells(),c=0;c<a.length;c++)this._headerConnects.push(r.connect(a[c],
"onfocus",this,"doColHeaderFocus")),this._headerConnects.push(r.connect(a[c],"onblur",this,"doColHeaderBlur"))},_findHeaderCells:function(){for(var a=g("th",this.grid.viewsHeaderNode),c=[],f=0;f<a.length;f++){var k=a[f],m=b.hasAttr(k,"tabIndex"),p=b.attr(k,"tabIndex");m&&0>p&&c.push(k)}return c},_setActiveColHeader:function(a,c,f){this.grid.domNode.setAttribute("aria-activedescendant",a.id);null!=f&&0<=f&&f!=c&&b.toggleClass(this._findHeaderCells()[f],this.focusClass,!1);b.toggleClass(a,this.focusClass,
!0);this._colHeadNode=a;this._colHeadFocusIdx=c;this._scrollHeader(this._colHeadFocusIdx)},scrollIntoView:function(){var a=this.cell?this._scrollInfo(this.cell):null;if(!a||!a.s)return null;var c=this.grid.scroller.findScrollTop(this.rowIndex);a.n&&a.sr&&(a.n.offsetLeft+a.n.offsetWidth>a.sr.l+a.sr.w?a.s.scrollLeft=a.n.offsetLeft+a.n.offsetWidth-a.sr.w:a.n.offsetLeft<a.sr.l&&(a.s.scrollLeft=a.n.offsetLeft));a.r&&a.sr&&(c+a.r.offsetHeight>a.sr.t+a.sr.h?this.grid.setScrollTop(c+a.r.offsetHeight-a.sr.h):
c<a.sr.t&&this.grid.setScrollTop(c));return a.s.scrollLeft},_scrollInfo:function(a,c){if(a){var f=a.view.scrollboxNode,k={w:f.clientWidth,l:f.scrollLeft,t:f.scrollTop,h:f.clientHeight},m=a.view.getRowNode(this.rowIndex);return{c:a,s:f,sr:k,n:c?c:a.getNode(this.rowIndex),r:m}}return null},_scrollHeader:function(a){var c=null;if(this._colHeadNode){var f=this.grid.getCell(a);if(!f)return;c=this._scrollInfo(f,f.getNode(0))}c&&c.s&&c.sr&&c.n&&(c.n.offsetLeft+c.n.offsetWidth>c.sr.l+c.sr.w?c.s.scrollLeft=
c.n.offsetLeft+c.n.offsetWidth-c.sr.w:c.n.offsetLeft<c.sr.l?c.s.scrollLeft=c.n.offsetLeft:7>=e("ie")&&f&&f.view.headerNode&&(f.view.headerNode.scrollLeft=c.s.scrollLeft))},_isHeaderHidden:function(){var a=this.focusView;if(!a)for(var c=0,f;f=this.grid.views.views[c];c++)if(f.headerNode){a=f;break}return a&&"none"==b.getComputedStyle(a.headerNode).display},colSizeAdjust:function(a,c,f){var k=this._findHeaderCells(),m=this.focusView;if(!m||!m.header.tableMap.map)for(var p=0,l;l=this.grid.views.views[p];p++)if(l.header.tableMap.map){m=
l;break}p=k[c];!m||c==k.length-1&&0===c||(m.content.baseDecorateEvent(a),a.cellNode=p,a.cellIndex=m.content.getCellNodeIndex(a.cellNode),a.cell=0<=a.cellIndex?this.grid.getCell(a.cellIndex):null,m.header.canResize(a)&&(c={l:f},a=m.header.colResizeSetup(a,!1),m.header.doResizeColumn(a,null,c),m.update()))},styleRow:function(a){},setFocusIndex:function(a,c){this.setFocusCell(this.grid.getCell(c),a)},setFocusCell:function(a,c){a&&!this.isFocusCell(a,c)&&(this.tabbingOut=!1,this._colHeadNode&&this.blurHeader(),
this._colHeadNode=this._colHeadFocusIdx=null,this.focusGridView(),this._focusifyCellNode(!1),this.cell=a,this.rowIndex=c,this._focusifyCellNode(!0));if(e("opera"))setTimeout(A.hitch(this.grid,"onCellFocus",this.cell,this.rowIndex),1);else this.grid.onCellFocus(this.cell,this.rowIndex)},next:function(){if(this.cell){var a=this.rowIndex,c=this.cell.index+1,f=this.grid.layout.cellCount-1,k=this.grid.rowCount-1;c>f&&(c=0,a++);a>k&&(c=f,a=k);if(this.grid.edit.isEditing()&&(f=this.grid.getCell(c),!this.isLastFocusCell()&&
(!f.editable||this.grid.canEdit&&!this.grid.canEdit(f,a)))){this.cell=f;this.rowIndex=a;this.next();return}this.setFocusIndex(a,c)}},previous:function(){if(this.cell){var a=this.rowIndex||0,c=(this.cell.index||0)-1;0>c&&(c=this.grid.layout.cellCount-1,a--);0>a&&(c=a=0);if(this.grid.edit.isEditing()){var f=this.grid.getCell(c);if(!this.isFirstFocusCell()&&!f.editable){this.cell=f;this.rowIndex=a;this.previous();return}}this.setFocusIndex(a,c)}},move:function(a,c){var f=0>c?-1:1;if(this.isNavHeader()){var k=
this._findHeaderCells(),m=currentIdx=u.indexOf(k,this._colHeadNode);for(currentIdx+=c;0<=currentIdx&&currentIdx<k.length&&"none"==k[currentIdx].style.display;)currentIdx+=f;0<=currentIdx&&currentIdx<k.length&&this._setActiveColHeader(k[currentIdx],currentIdx,m)}else if(this.cell){var p=this.grid.scroller;k=this.rowIndex;m=this.grid.rowCount-1;var l=Math.min(m,Math.max(0,k+a));a&&(0<a?l>p.getLastPageRow(p.page)&&this.grid.setScrollTop(this.grid.scrollTop+p.findScrollTop(l)-p.findScrollTop(k)):0>a&&
l<=p.getPageRow(p.page)&&this.grid.setScrollTop(this.grid.scrollTop-p.findScrollTop(k)-p.findScrollTop(l)));p=this.grid.layout.cellCount-1;for(var n=this.cell.index,q=Math.min(p,Math.max(0,n+c)),w=this.grid.getCell(q);0<=q&&q<p&&w&&!0===w.hidden;)q+=f,w=this.grid.getCell(q);w&&!0!==w.hidden||(q=n);f=w.getNode(l);!f&&a?0<=l+a&&l+a<=m&&this.move(0<a?++a:--a,c):f&&"none"!==b.style(f,"display")||!c?(this.setFocusIndex(l,q),a&&this.grid.updateRow(k)):0<=q+c&&q+c<=p&&this.move(a,0<c?++c:--c)}},previousKey:function(a){this.grid.edit.isEditing()?
(h.stop(a),this.previous()):this.isNavHeader()||this._isHeaderHidden()?(this.tabOut(this.grid.domNode),null!=this._colHeadFocusIdx&&(b.toggleClass(this._findHeaderCells()[this._colHeadFocusIdx],this.focusClass,!1),this._colHeadFocusIdx=null),this._focusifyCellNode(!1)):(this.grid.domNode.focus(),h.stop(a))},nextKey:function(a){a.target===this.grid.domNode&&null==this._colHeadFocusIdx?(this.focusHeader(),h.stop(a)):this.isNavHeader()?(this.blurHeader(),this.findAndFocusGridCell()||this.tabOut(this.grid.lastFocusNode),
this._colHeadNode=this._colHeadFocusIdx=null):this.grid.edit.isEditing()?(h.stop(a),this.next()):this.tabOut(this.grid.lastFocusNode)},tabOut:function(a){this.tabbingOut=!0;a.focus()},focusGridView:function(){d.fire(this.focusView,"focus")},focusGrid:function(a){this.focusGridView();this._focusifyCellNode(!0)},findAndFocusGridCell:function(){var a=!0,c=0===this.grid.rowCount;this.isNoFocusCell()&&!c?(c=0,this.grid.getCell(c).hidden&&(c=this.isNavHeader()?this._colHeadFocusIdx:0),this.setFocusIndex(0,
c)):this.cell&&!c?(this.focusView&&!this.focusView.rowNodes[this.rowIndex]&&this.grid.scrollToRow(this.rowIndex),this.focusGrid()):a=!1;this._colHeadNode=this._colHeadFocusIdx=null;return a},focusHeader:function(){var a=this._findHeaderCells(),c=this._colHeadFocusIdx;this._isHeaderHidden()?this.findAndFocusGridCell():this._colHeadFocusIdx||(this.isNoFocusCell()?this._colHeadFocusIdx=0:this._colHeadFocusIdx=this.cell.index);for(this._colHeadNode=a[this._colHeadFocusIdx];this._colHeadNode&&0<=this._colHeadFocusIdx&&
this._colHeadFocusIdx<a.length&&"none"==this._colHeadNode.style.display;)this._colHeadFocusIdx++,this._colHeadNode=a[this._colHeadFocusIdx];this._colHeadNode&&"none"!=this._colHeadNode.style.display?(this.headerMenu&&this._contextMenuBindNode!=this.grid.domNode&&(this.headerMenu.unBindDomNode(this.grid.viewsHeaderNode),this.headerMenu.bindDomNode(this.grid.domNode),this._contextMenuBindNode=this.grid.domNode),this._setActiveColHeader(this._colHeadNode,this._colHeadFocusIdx,c),this._scrollHeader(this._colHeadFocusIdx),
this._focusifyCellNode(!1)):this.findAndFocusGridCell()},blurHeader:function(){b.removeClass(this._colHeadNode,this.focusClass);b.removeAttr(this.grid.domNode,"aria-activedescendant");if(this.headerMenu&&this._contextMenuBindNode==this.grid.domNode){var a=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(a);this._contextMenuBindNode=a}},doFocus:function(a){a&&a.target!=a.currentTarget?h.stop(a):this._clickFocus||(this.tabbingOut||this.focusHeader(),
this.tabbingOut=!1,h.stop(a))},doBlur:function(a){h.stop(a)},doContextMenu:function(a){this.headerMenu||h.stop(a)},doLastNodeFocus:function(a){this.tabbingOut?this._focusifyCellNode(!1):0<this.grid.rowCount?(this.isNoFocusCell()&&this.setFocusIndex(0,0),this._focusifyCellNode(!0)):this.focusHeader();this.tabbingOut=!1;h.stop(a)},doLastNodeBlur:function(a){h.stop(a)},doColHeaderFocus:function(a){this._setActiveColHeader(a.target,b.attr(a.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());
h.stop(a)},doColHeaderBlur:function(a){b.toggleClass(a.target,this.focusClass,!1)},_mouseDown:function(a){this._clickFocus=dojo.some(this.grid.views.views,function(c){return c.scrollboxNode===a.target})},_mouseUp:function(a){this._clickFocus=!1}})})},"dojox/grid/_EditManager":function(){define("dojo/_base/lang dojo/_base/array dojo/_base/declare dojo/_base/connect dojo/_base/sniff ./util".split(" "),function(u,A,x,r,h,e){return x("dojox.grid._EditManager",null,{constructor:function(g){this.grid=g;
this.connections=h("ie")?[r.connect(document.body,"onfocus",u.hitch(this,"_boomerangFocus"))]:[];this.connections.push(r.connect(this.grid,"onBlur",this,"apply"));this.connections.push(r.connect(this.grid,"prerender",this,"_onPreRender"))},info:{},destroy:function(){A.forEach(this.connections,r.disconnect)},cellFocus:function(g,d){this.grid.singleClickEdit||this.isEditRow(d)?this.setEditCell(g,d):this.apply();(this.isEditing()||g&&g.editable&&g.alwaysEditing)&&this._focusEditor(g,d)},rowClick:function(g){this.isEditing()&&
!this.isEditRow(g.rowIndex)&&this.apply()},styleRow:function(g){g.index==this.info.rowIndex&&(g.customClasses+=" dojoxGridRowEditing")},dispatchEvent:function(g){var d=g.cell;return(d=d&&d.editable?d:0)&&d.dispatchEvent(g.dispatch,g)},isEditing:function(){return void 0!==this.info.rowIndex},isEditCell:function(g,d){return this.info.rowIndex===g&&this.info.cell.index==d},isEditRow:function(g){return this.info.rowIndex===g},setEditCell:function(g,d){!this.isEditCell(d,g.index)&&this.grid.canEdit&&this.grid.canEdit(g,
d)&&this.start(g,d,this.isEditRow(d)||g.editable)},_focusEditor:function(g,d){e.fire(g,"focus",[d])},focusEditor:function(){this.isEditing()&&this._focusEditor(this.info.cell,this.info.rowIndex)},_boomerangWindow:500,_shouldCatchBoomerang:function(){return this._catchBoomerang>(new Date).getTime()},_boomerangFocus:function(){this._shouldCatchBoomerang()&&(this.grid.focus.focusGrid(),this.focusEditor(),this._catchBoomerang=0)},_doCatchBoomerang:function(){h("ie")&&(this._catchBoomerang=(new Date).getTime()+
this._boomerangWindow)},start:function(g,d,b){this._isValidInput()&&(this.grid.beginUpdate(),this.editorApply(),this.isEditing()&&!this.isEditRow(d)&&(this.applyRowEdit(),this.grid.updateRow(d)),b?(this.info={cell:g,rowIndex:d},this.grid.doStartEdit(g,d),this.grid.updateRow(d)):this.info={},this.grid.endUpdate(),this.grid.focus.focusGrid(),this._focusEditor(g,d),this._doCatchBoomerang())},_editorDo:function(g){var d=this.info.cell;if(d&&d.editable)d[g](this.info.rowIndex)},editorApply:function(){this._editorDo("apply")},
editorCancel:function(){this._editorDo("cancel")},applyCellEdit:function(g,d,b){this.grid.canEdit(d,b)&&this.grid.doApplyCellEdit(g,b,d.field)},applyRowEdit:function(){this.grid.doApplyEdit(this.info.rowIndex,this.info.cell.field)},apply:function(){this.isEditing()&&this._isValidInput()&&(this.grid.beginUpdate(),this.editorApply(),this.applyRowEdit(),this.info={},this.grid.endUpdate(),this.grid.focus.focusGrid(),this._doCatchBoomerang())},cancel:function(){this.isEditing()&&(this.grid.beginUpdate(),
this.editorCancel(),this.info={},this.grid.endUpdate(),this.grid.focus.focusGrid(),this._doCatchBoomerang())},save:function(g,d){var b=this.info.cell;!this.isEditRow(g)||d&&b.view!=d||!b.editable||b.save(b,this.info.rowIndex)},restore:function(g,d){var b=this.info.cell;this.isEditRow(d)&&b.view==g&&b.editable&&b.restore(this.info.rowIndex)},_isValidInput:function(){var g=(this.info.cell||{}).widget;if(!g||!g.isValid)return!0;g.focused=!0;return g.isValid(!0)},_onPreRender:function(){this.isEditing()&&
(this.info.value=this.info.cell.getValue())}})})},"dojox/grid/Selection":function(){define(["dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/dom-attr"],function(u,A,x,r){return u("dojox.grid.Selection",null,{constructor:function(h){this.grid=h;this.selected=[];this.setMode(h.selectionMode)},mode:"extended",selected:null,updating:0,selectedIndex:-1,rangeStartIndex:-1,setMode:function(h){this.selected.length&&this.deselectAll();this.mode="extended"!=h&&"multiple"!=h&&"single"!=h&&"none"!=
h?"extended":h},onCanSelect:function(h){return this.grid.onCanSelect(h)},onCanDeselect:function(h){return this.grid.onCanDeselect(h)},onSelected:function(h){},onDeselected:function(h){},onChanging:function(){},onChanged:function(){},isSelected:function(h){return"none"==this.mode?!1:this.selected[h]},getFirstSelected:function(){if(!this.selected.length||"none"==this.mode)return-1;for(var h=0,e=this.selected.length;h<e;h++)if(this.selected[h])return h;return-1},getNextSelected:function(h){if("none"==
this.mode)return-1;h+=1;for(var e=this.selected.length;h<e;h++)if(this.selected[h])return h;return-1},getSelected:function(){for(var h=[],e=0,g=this.selected.length;e<g;e++)this.selected[e]&&h.push(e);return h},getSelectedCount:function(){for(var h=0,e=0;e<this.selected.length;e++)this.selected[e]&&h++;return h},_beginUpdate:function(){if(0===this.updating)this.onChanging();this.updating++},_endUpdate:function(){this.updating--;if(0===this.updating)this.onChanged()},select:function(h){"none"!=this.mode&&
("multiple"!=this.mode?(this.deselectAll(h),this.addToSelection(h)):this.toggleSelect(h))},addToSelection:function(h){if("none"!=this.mode)if(x.isArray(h))A.forEach(h,this.addToSelection,this);else if(h=Number(h),this.selected[h])this.selectedIndex=h;else if(!1!==this.onCanSelect(h)){this.selectedIndex=h;var e=this.grid.getRowNode(h);e&&r.set(e,"aria-selected","true");this._beginUpdate();this.selected[h]=!0;this.onSelected(h);this._endUpdate()}},deselect:function(h){if("none"!=this.mode)if(x.isArray(h))A.forEach(h,
this.deselect,this);else if(h=Number(h),this.selectedIndex==h&&(this.selectedIndex=-1),this.selected[h]&&!1!==this.onCanDeselect(h)){var e=this.grid.getRowNode(h);e&&r.set(e,"aria-selected","false");this._beginUpdate();delete this.selected[h];this.onDeselected(h);this._endUpdate()}},setSelected:function(h,e){this[e?"addToSelection":"deselect"](h)},toggleSelect:function(h){x.isArray(h)?A.forEach(h,this.toggleSelect,this):this.setSelected(h,!this.selected[h])},_range:function(h,e,g){var d=0<=h?h:e;
h=e;d>h&&(h=d,d=e);for(e=d;e<=h;e++)g(e)},selectRange:function(h,e){this._range(h,e,x.hitch(this,"addToSelection"))},deselectRange:function(h,e){this._range(h,e,x.hitch(this,"deselect"))},insert:function(h){this.selected.splice(h,0,!1);this.selectedIndex>=h&&this.selectedIndex++},remove:function(h){this.selected.splice(h,1);this.selectedIndex>=h&&this.selectedIndex--},deselectAll:function(h){for(var e in this.selected)e!=h&&!0===this.selected[e]&&this.deselect(e)},clickSelect:function(h,e,g){if("none"!=
this.mode){this._beginUpdate();if("extended"!=this.mode)this.select(h);else{if(!g||0>this.rangeStartIndex)this.rangeStartIndex=h;e||this.deselectAll(h);g?this.selectRange(this.rangeStartIndex,h):e?this.toggleSelect(h):this.addToSelection(h)}this._endUpdate()}},clickSelectEvent:function(h){this.clickSelect(h.rowIndex,dojo.isCopyKey(h),h.shiftKey)},clear:function(){this._beginUpdate();this.deselectAll();this._endUpdate()}})})},"dojox/grid/DataSelection":function(){define(["dojo/_base/declare","./_SelectionPreserver",
"./Selection"],function(u,A,x){return u("dojox.grid.DataSelection",x,{constructor:function(r){r.keepSelection&&(this.preserver=new A(this))},destroy:function(){this.preserver&&this.preserver.destroy()},getFirstSelected:function(){var r=x.prototype.getFirstSelected.call(this);return-1==r?null:this.grid.getItem(r)},getNextSelected:function(r){r=this.grid.getItemIndex(r);r=x.prototype.getNextSelected.call(this,r);return-1==r?null:this.grid.getItem(r)},getSelected:function(){for(var r=[],h=0,e=this.selected.length;h<
e;h++)this.selected[h]&&r.push(this.grid.getItem(h));return r},addToSelection:function(r){if("none"!=this.mode){var h=null;h="number"==typeof r||"string"==typeof r?r:this.grid.getItemIndex(r);x.prototype.addToSelection.call(this,h)}},deselect:function(r){if("none"!=this.mode){var h=null;h="number"==typeof r||"string"==typeof r?r:this.grid.getItemIndex(r);x.prototype.deselect.call(this,h)}},deselectAll:function(r){var h=null;r||"number"==typeof r?(h="number"==typeof r||"string"==typeof r?r:this.grid.getItemIndex(r),
x.prototype.deselectAll.call(this,h)):this.inherited(arguments)}})})},"dojox/grid/_SelectionPreserver":function(){define(["dojo/_base/declare","dojo/_base/connect","dojo/_base/lang","dojo/_base/array"],function(u,A,x,r){return u("dojox.grid._SelectionPreserver",null,{constructor:function(h){this.selection=h;var e=this.grid=h.grid;this.reset();this._connects=[A.connect(e,"_setStore",this,"reset"),A.connect(e,"_addItem",this,"_reSelectById"),A.connect(h,"onSelected",x.hitch(this,"_selectById",!0)),
A.connect(h,"onDeselected",x.hitch(this,"_selectById",!1)),A.connect(h,"deselectAll",this,"reset")]},destroy:function(){this.reset();r.forEach(this._connects,A.disconnect);delete this._connects},reset:function(){this._selectedById={}},_reSelectById:function(h,e){h&&this.grid._hasIdentity&&(this.selection.selected[e]=this._selectedById[this.grid.store.getIdentity(h)])},_selectById:function(h,e){if("none"!=this.selection.mode&&this.grid._hasIdentity){var g=e,d=this.grid;if("number"==typeof e||"string"==
typeof e)g=(g=d._by_idx[e])&&g.item;g&&(this._selectedById[d.store.getIdentity(g)]=!!h);return g}}})})},"dojo/fx/Toggler":function(){define(["../_base/lang","../_base/declare","../_base/fx","../aspect"],function(u,A,x,r){return A("dojo.fx.Toggler",null,{node:null,showFunc:x.fadeIn,hideFunc:x.fadeOut,showDuration:200,hideDuration:200,constructor:function(h){u.mixin(this,h);this.node=h.node;this._showArgs=u.mixin({},h);this._showArgs.node=this.node;this._showArgs.duration=this.showDuration;this.showAnim=
this.showFunc(this._showArgs);this._hideArgs=u.mixin({},h);this._hideArgs.node=this.node;this._hideArgs.duration=this.hideDuration;this.hideAnim=this.hideFunc(this._hideArgs);r.after(this.showAnim,"beforeBegin",u.hitch(this.hideAnim,"stop",!0),!0);r.after(this.hideAnim,"beforeBegin",u.hitch(this.showAnim,"stop",!0),!0)},show:function(h){return this.showAnim.play(h||0)},hide:function(h){return this.hideAnim.play(h||0)}})})},"dojox/dtl/_Templated":function(){define("dojo/aspect dojo/_base/declare ./_base dijit/_TemplatedMixin dojo/dom-construct dojo/cache dojo/_base/array dojo/string dojo/parser".split(" "),
function(u,A,x,r,h,e,g,d,b){return A("dojox.dtl._Templated",r,{_dijitTemplateCompat:!1,buildRendering:function(){var a;if(!this.domNode||this._template){if(!this._template){var c=this.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);c instanceof x.Template?this._template=c:a=c.cloneNode(!0)}if(!a){c=new x._Context(this);this._created||delete c._getter;var f=h.toDom(this._template.render(c));if(1!==f.nodeType&&3!==f.nodeType){c=0;for(var k=f.childNodes.length;c<k&&(a=f.childNodes[c],
1!=a.nodeType);++c);}else a=f}this._attachTemplateNodes(a);if(this.widgetsInTemplate){if("[dojoType]"!=b._query){var m=b._query;var p=b._attrName;b._query="[dojoType]";b._attrName="dojoType"}f=this._startupWidgets=b.parse(a,{noStart:!this._earlyTemplatedStartup,inherited:{dir:this.dir,lang:this.lang}});m&&(b._query=m,b._attrName=p);for(c=0;c<f.length;c++)this._processTemplateNode(f[c],function(l,n){return l[n]},function(l,n,q){return n in l?u.after(l,n,q,!0):l.on(n,q,!0)})}this.domNode&&(h.place(a,
this.domNode,"before"),this.destroyDescendants(),h.destroy(this.domNode));this.domNode=a;this._fillContent(this.srcNodeRef)}},_processTemplateNode:function(a,c,f){if(this.widgetsInTemplate&&(c(a,"dojoType")||c(a,"data-dojo-type")))return!0;this.inherited(arguments)},_templateCache:{},getCachedTemplate:function(a,c,f){var k=this._templateCache,m=c||a;if(k[m])return k[m];c=d.trim(c||e(a,{sanitize:!0}));this._dijitTemplateCompat&&(f||c.match(/\$\{([^\}]+)\}/g))&&(c=this._stringRepl(c));return f||!c.match(/\{[{%]([^\}]+)[%}]\}/g)?
k[m]=h.toDom(c):k[m]=new x.Template(c)},render:function(){this.buildRendering()},startup:function(){g.forEach(this._startupWidgets,function(a){a&&!a._started&&a.startup&&a.startup()});this.inherited(arguments)}})})},"dojox/dtl/_base":function(){define("dojo/_base/kernel dojo/_base/lang dojox/string/tokenize dojo/_base/json dojo/dom dojo/_base/xhr dojox/string/Builder dojo/_base/Deferred".split(" "),function(u,A,x,r,h,e,g,d){u.experimental("dojox.dtl");var b=A.getObject("dojox.dtl",!0);b._base={};
b.TOKEN_BLOCK=-1;b.TOKEN_VAR=-2;b.TOKEN_COMMENT=-3;b.TOKEN_TEXT=3;b._Context=A.extend(function(t){t&&(A._mixin(this,t),t.get&&(this._getter=t.get,delete this.get))},{push:function(){var t=this,v=A.delegate(this);v.pop=function(){return t};return v},pop:function(){throw Error("pop() called on empty Context");},get:function(t,v){var y=this._normalize;if(this._getter){var z=this._getter(t);if(void 0!==z)return y(z)}return void 0!==this[t]?y(this[t]):v},_normalize:function(t){t instanceof Date&&(t.year=
t.getFullYear(),t.month=t.getMonth()+1,t.day=t.getDate(),t.date=t.year+"-"+("0"+t.month).slice(-2)+"-"+("0"+t.day).slice(-2),t.hour=t.getHours(),t.minute=t.getMinutes(),t.second=t.getSeconds(),t.microsecond=t.getMilliseconds());return t},update:function(t){var v=this.push();t&&A._mixin(this,t);return v}});var a=/("(?:[^"\\]*(?:\\.[^"\\]*)*)"|'(?:[^'\\]*(?:\\.[^'\\]*)*)'|[^\s]+)/g,c=/\s+/g,f=function(t,v){t=t||c;t instanceof RegExp||(t=new RegExp(t,"g"));if(!t.global)throw Error("You must use a globally flagged RegExp with split "+
t);t.exec("");for(var y,z=[],C=0,G=0;(y=t.exec(this))&&!(z.push(this.slice(C,t.lastIndex-y[0].length)),C=t.lastIndex,v&&++G>v-1););z.push(this.slice(C));return z};b.Token=function(t,v){this.token_type=t;this.contents=new String(A.trim(v));this.contents.split=f;this.split=function(){return String.prototype.split.apply(this.contents,arguments)}};b.Token.prototype.split_contents=function(t){var v,y=[],z=0;for(t=t||999;z++<t&&(v=a.exec(this.contents));)v=v[0],'"'==v.charAt(0)&&'"'==v.slice(-1)?y.push('"'+
v.slice(1,-1).replace('\\"','"').replace("\\\\","\\")+'"'):"'"==v.charAt(0)&&"'"==v.slice(-1)?y.push("'"+v.slice(1,-1).replace("\\'","'").replace("\\\\","\\")+"'"):y.push(v);return y};var k=b.text={_get:function(t,v,y){t=b.register.get(t,v.toLowerCase(),y);if(!t){if(!y)throw Error("No tag found for "+v);return null}y=t[1];t=t[2];-1!=y.indexOf(":")&&(y=y.split(":"),y=y.pop());var z=t;/\./.test(t)&&(t=t.replace(/\./g,"/"));require([t],function(){});t=A.getObject(z);return t[y||v]||t[v+"_"]||t[y+"_"]},
getTag:function(t,v){return k._get("tag",t,v)},getFilter:function(t,v){return k._get("filter",t,v)},getTemplate:function(t){return new b.Template(k.getTemplateString(t))},getTemplateString:function(t){return e._getText(t.toString())||""},_resolveLazy:function(t,v,y){return v?y?y.fromJson(e._getText(t))||{}:b.text.getTemplateString(t):e.get({handleAs:y?"json":"text",url:t})},_resolveTemplateArg:function(t,v){if(k._isTemplate(t)){if(!v){var y=new d;y.callback(t);return y}return t}return k._resolveLazy(t,
v)},_isTemplate:function(t){return void 0===t||"string"==typeof t&&(t.match(/^\s*[<{]/)||-1!=t.indexOf(" "))},_resolveContextArg:function(t,v){if(t.constructor==Object){if(!v){var y=new d;y.callback(t);return y}return t}return k._resolveLazy(t,v,!0)},_re:/(?:\{\{\s*(.+?)\s*\}\}|\{%\s*(load\s*)?(.+?)\s*%\})/g,tokenize:function(t){return x(t,k._re,k._parseDelims)},_parseDelims:function(t,v,y){if(t)return[b.TOKEN_VAR,t];if(v)for(t=A.trim(y).split(/\s+/g),v=0;y=t[v];v++)/\./.test(y)&&(y=y.replace(/\./g,
"/")),require([y]);else return[b.TOKEN_BLOCK,y]}};b.Template=A.extend(function(t,v){var y=v?t:k._resolveTemplateArg(t,!0)||"";y=k.tokenize(y);this.nodelist=(new b._Parser(y)).parse()},{update:function(t,v){return k._resolveContextArg(v).addCallback(this,function(y){var z=this.render(new b._Context(y));t.forEach?t.forEach(function(C){C.innerHTML=z}):h.byId(t).innerHTML=z;return this})},render:function(t,v){v=v||this.getBuffer();t=t||new b._Context({});return this.nodelist.render(t,v)+""},getBuffer:function(){return new g}});
var m=/\{\{\s*(.+?)\s*\}\}/g;b.quickFilter=function(t){if(!t)return new b._NodeList;if(-1==t.indexOf("{%"))return new b._QuickNodeList(x(t,m,function(v){return new b._Filter(v)}))};b._QuickNodeList=A.extend(function(t){this.contents=t},{render:function(t,v){for(var y=0,z=this.contents.length;y<z;y++)v=this.contents[y].resolve?v.concat(this.contents[y].resolve(t)):v.concat(this.contents[y]);return v},dummyRender:function(t){return this.render(t,b.Template.prototype.getBuffer()).toString()},clone:function(t){return this}});
b._Filter=A.extend(function(t){if(!t)throw Error("Filter must be called with variable name");this.contents=t;var v=this._cache[t];v?(this.key=v[0],this.filters=v[1]):(this.filters=[],x(t,this._re,this._tokenize,this),this._cache[t]=[this.key,this.filters])},{_cache:{},_re:/(?:^_\("([^\\"]*(?:\\.[^\\"])*)"\)|^"([^\\"]*(?:\\.[^\\"]*)*)"|^([a-zA-Z0-9_.]+)|\|(\w+)(?::(?:_\("([^\\"]*(?:\\.[^\\"])*)"\)|"([^\\"]*(?:\\.[^\\"]*)*)"|([a-zA-Z0-9_.]+)|'([^\\']*(?:\\.[^\\']*)*)'))?|^'([^\\']*(?:\\.[^\\']*)*)')/g,
_values:{0:'"',1:'"',2:"",8:'"'},_args:{4:'"',5:'"',6:"",7:"'"},_tokenize:function(){for(var t,v,y=0,z=[];y<arguments.length;y++)z[y]=void 0!==arguments[y]&&"string"==typeof arguments[y]&&arguments[y];if(this.key){for(t in this._args)if(z[t]){v=arguments[t];"'"==this._args[t]?v=v.replace(/\\'/g,"'"):'"'==this._args[t]&&(v=v.replace(/\\"/g,'"'));v=[!this._args[t],v];break}t=k.getFilter(arguments[3]);if(!A.isFunction(t))throw Error(arguments[3]+" is not registered as a filter");this.filters.push([t,
v])}else for(t in this._values)if(z[t]){this.key=this._values[t]+arguments[t]+this._values[t];break}},getExpression:function(){return this.contents},resolve:function(t){if(void 0===this.key)return"";for(var v=this.resolvePath(this.key,t),y=0,z;z=this.filters[y];y++)v=z[1]?z[1][0]?z[0](v,this.resolvePath(z[1][1],t)):z[0](v,z[1][1]):z[0](v);return v},resolvePath:function(t,v){var y=t.charAt(0);var z=t.slice(-1);if(isNaN(parseInt(y)))if('"'==y&&y==z)y=t.slice(1,-1);else{if("true"==t)return!0;if("false"==
t)return!1;if("null"==t||"None"==t)return null;z=t.split(".");y=v.get(z[0]);if(A.isFunction(y)){var C=v.getThis&&v.getThis();y=y.alters_data?"":C?y.call(C):""}for(C=1;C<z.length;C++){var G=z[C];if(y){var B=y;if(A.isObject(y)&&"items"==G&&void 0===y[G]){G=[];for(var D in y)G.push([D,y[D]]);y=G}else{if(y.get&&A.isFunction(y.get)&&y.get.safe)y=y.get(G);else if(void 0===y[G]){y=y[G];break}else y=y[G];A.isFunction(y)?y=y.alters_data?"":y.call(B):y instanceof Date&&(y=b._Context.prototype._normalize(y))}}else return""}}else y=
-1==t.indexOf(".")?parseInt(t):parseFloat(t);return y}});b._TextNode=b._Node=A.extend(function(t){this.contents=t},{set:function(t){this.contents=t;return this},render:function(t,v){return v.concat(this.contents)},isEmpty:function(){return!A.trim(this.contents)},clone:function(){return this}});b._NodeList=A.extend(function(t){this.contents=t||[];this.last=""},{push:function(t){this.contents.push(t);return this},concat:function(t){this.contents=this.contents.concat(t);return this},render:function(t,
v){for(var y=0;y<this.contents.length;y++)if(v=this.contents[y].render(t,v),!v)throw Error("Template must return buffer");return v},dummyRender:function(t){return this.render(t,b.Template.prototype.getBuffer()).toString()},unrender:function(t,v){return v},clone:function(){return this},rtrim:function(){for(;;)if(i=this.contents.length-1,this.contents[i]instanceof b._TextNode&&this.contents[i].isEmpty())this.contents.pop();else break;return this}});b._VarNode=A.extend(function(t){this.contents=new b._Filter(t)},
{render:function(t,v){var y=this.contents.resolve(t);if(void 0===y||null===y)y="";y.safe||(y=b._base.escape(""+y));return v.concat(y)}});b._noOpNode=new function(){this.render=this.unrender=function(t,v){return v};this.clone=function(){return this}};b._Parser=A.extend(function(t){this.contents=t},{i:0,parse:function(t){var v={};t=t||[];for(var y=0;y<t.length;y++)v[t[y]]=!0;for(y=new b._NodeList;this.i<this.contents.length;){var z=this.contents[this.i++];if("string"==typeof z)y.push(new b._TextNode(z));
else{var C=z[0];z=z[1];if(C==b.TOKEN_VAR)y.push(new b._VarNode(z));else if(C==b.TOKEN_BLOCK){if(v[z])return--this.i,y;var G=z.split(/\s+/g);G.length&&(G=G[0],(G=k.getTag(G))&&y.push(G(this,new b.Token(C,z))))}}}if(t.length)throw Error("Could not find closing tag(s): "+t.toString());this.contents.length=0;return y},next_token:function(){var t=this.contents[this.i++];return new b.Token(t[0],t[1])},delete_first_token:function(){this.i++},skip_past:function(t){for(;this.i<this.contents.length;){var v=
this.contents[this.i++];if(v[0]==b.TOKEN_BLOCK&&v[1]==t)return}throw Error("Unclosed tag found when looking for "+t);},create_variable_node:function(t){return new b._VarNode(t)},create_text_node:function(t){return new b._TextNode(t||"")},getTemplate:function(t){return new b.Template(t)}});b.register={_registry:{attributes:[],tags:[],filters:[]},get:function(t,v){for(var y=b.register._registry[t+"s"],z=0,C;C=y[z];z++)if("string"==typeof C[0]){if(C[0]==v)return C}else if(v.match(C[0]))return C},getAttributeTags:function(){for(var t=
[],v=b.register._registry.attributes,y=0,z;z=v[y];y++)if(3==z.length)t.push(z);else{var C=A.getObject(z[1]);C&&A.isFunction(C)&&(z.push(C),t.push(z))}return t},_any:function(t,v,y){for(var z in y)for(var C=0,G;G=y[z][C];C++){var B=G;A.isArray(G)&&(B=G[0],G=G[1]);if("string"==typeof B){if("attr:"==B.substr(0,5)){var D=G;"attr:"==D.substr(0,5)&&(D=D.slice(5));b.register._registry.attributes.push([D.toLowerCase(),v+"."+z+"."+D])}B=B.toLowerCase()}b.register._registry[t].push([B,G,v+"."+z])}},tags:function(t,
v){b.register._any("tags",t,v)},filters:function(t,v){b.register._any("filters",t,v)}};var p=/&/g,l=/</g,n=/>/g,q=/'/g,w=/"/g;b._base.escape=function(t){return b.mark_safe(t.replace(p,"\x26amp;").replace(l,"\x26lt;").replace(n,"\x26gt;").replace(w,"\x26quot;").replace(q,"\x26#39;"))};b._base.safe=function(t){"string"==typeof t&&(t=new String(t));"object"==typeof t&&(t.safe=!0);return t};b.mark_safe=b._base.safe;b.register.tags("dojox.dtl.tag",{date:["now"],logic:["if","for","ifequal","ifnotequal"],
loader:["extends","block","include","load","ssi"],misc:"comment debug filter firstof spaceless templatetag widthratio with".split(" "),loop:["cycle","ifchanged","regroup"]});b.register.filters("dojox.dtl.filter",{dates:["date","time","timesince","timeuntil"],htmlstrings:["linebreaks","linebreaksbr","removetags","striptags"],integers:["add","get_digit"],lists:"dictsort dictsortreversed first join length length_is random slice unordered_list".split(" "),logic:["default","default_if_none","divisibleby",
"yesno"],misc:["filesizeformat","pluralize","phone2numeric","pprint"],strings:"addslashes capfirst center cut fix_ampersands floatformat iriencode linenumbers ljust lower make_list rjust slugify stringformat title truncatewords truncatewords_html upper urlencode urlize urlizetrunc wordcount wordwrap".split(" ")});b.register.filters("dojox.dtl",{_base:["escape","safe"]});return b})},"dojox/string/tokenize":function(){define(["dojo/_base/lang","dojo/_base/sniff"],function(u,A){var x=u.getObject("dojox.string",
!0).tokenize;return x=function(r,h,e,g){var d=[],b,a;for(a=0;b=h.exec(r);){a=r.slice(a,h.lastIndex-b[0].length);a.length&&d.push(a);if(e){if(A("opera")){for(a=b.slice(0);a.length<b.length;)a.push(null);b=a}b=e.apply(g,b.slice(1).concat(d.length));"undefined"!=typeof b&&d.push(b)}a=h.lastIndex}a=r.slice(a);a.length&&d.push(a);return d}})},"dojox/string/Builder":function(){define(["dojo/_base/lang"],function(u){return u.getObject("string",!0,dojox).Builder=function(A){var x="";this.length=0;this.append=
function(r){if(1<arguments.length){var h="";switch(arguments.length){case 9:h=""+arguments[8]+h;case 8:h=""+arguments[7]+h;case 7:h=""+arguments[6]+h;case 6:h=""+arguments[5]+h;case 5:h=""+arguments[4]+h;case 4:h=""+arguments[3]+h;case 3:h=""+arguments[2]+h;case 2:x+=""+arguments[0]+arguments[1]+h;break;default:for(var e=0;e<arguments.length;)h+=arguments[e++];x+=h}}else x+=r;this.length=x.length;return this};this.concat=function(r){return this.append.apply(this,arguments)};this.appendArray=function(r){return this.append.apply(this,
r)};this.clear=function(){x="";this.length=0;return this};this.replace=function(r,h){x=x.replace(r,h);this.length=x.length;return this};this.remove=function(r,h){void 0===h&&(h=x.length);if(0==h)return this;x=x.substr(0,r)+x.substr(r+h);this.length=x.length;return this};this.insert=function(r,h){x=0==r?h+x:x.slice(0,r)+h+x.slice(r);this.length=x.length;return this};this.toString=function(){return x};A&&this.append(A)}})},"dojox/dtl/tag/logic":function(){define(["dojo/_base/lang","../_base"],function(u,
A){var x=u.getObject("tag.logic",!0,A);x.IfNode=u.extend(function(r,h,e,g){this.bools=r;this.trues=h;this.falses=e;this.type=g},{render:function(r,h){var e,g;if("or"==this.type){for(e=0;g=this.bools[e];e++){var d=g[0];g=g[1];if((g=g.resolve(r))&&!d||d&&!g)return this.falses&&(h=this.falses.unrender(r,h)),this.trues?this.trues.render(r,h,this):h}this.trues&&(h=this.trues.unrender(r,h));return this.falses?this.falses.render(r,h,this):h}for(e=0;g=this.bools[e];e++)if(d=g[0],g=g[1],g=g.resolve(r),g==
d)return this.trues&&(h=this.trues.unrender(r,h)),this.falses?this.falses.render(r,h,this):h;this.falses&&(h=this.falses.unrender(r,h));return this.trues?this.trues.render(r,h,this):h},unrender:function(r,h){h=this.trues?this.trues.unrender(r,h):h;return h=this.falses?this.falses.unrender(r,h):h},clone:function(r){var h=this.trues?this.trues.clone(r):null;r=this.falses?this.falses.clone(r):null;return new this.constructor(this.bools,h,r,this.type)}});x.IfEqualNode=u.extend(function(r,h,e,g,d){this.var1=
new A._Filter(r);this.var2=new A._Filter(h);this.trues=e;this.falses=g;this.negate=d},{render:function(r,h){var e=this.var1.resolve(r),g=this.var2.resolve(r);e="undefined"!=typeof e?e:"";g="undefined"!=typeof e?g:"";if(this.negate&&e!=g||!this.negate&&e==g)return this.falses&&(h=this.falses.unrender(r,h,this)),this.trues?this.trues.render(r,h,this):h;this.trues&&(h=this.trues.unrender(r,h,this));return this.falses?this.falses.render(r,h,this):h},unrender:function(r,h){return x.IfNode.prototype.unrender.call(this,
r,h)},clone:function(r){var h=this.trues?this.trues.clone(r):null;r=this.falses?this.falses.clone(r):null;return new this.constructor(this.var1.getExpression(),this.var2.getExpression(),h,r,this.negate)}});x.ForNode=u.extend(function(r,h,e,g){this.assign=r;this.loop=new A._Filter(h);this.reversed=e;this.nodelist=g;this.pool=[]},{render:function(r,h){var e,g,d,b=!1,a=this.assign;for(d=0;d<a.length;d++)if("undefined"!=typeof r[a[d]]){b=!0;r=r.push();break}!b&&r.forloop&&(b=!0,r=r.push());d=this.loop.resolve(r)||
[];var c=[];if(u.isObject(d)&&!u.isArrayLike(d))for(e in d)c.push([e,d[e]]);else c=d;for(e=c.length;e<this.pool.length;e++)this.pool[e].unrender(r,h,this);this.reversed&&(c=c.slice(0).reverse());var f=r.forloop={parentloop:r.get("forloop",{})};for(e=g=0;e<c.length;e++){var k=c[e];f.counter0=g;f.counter=g+1;f.revcounter0=c.length-g-1;f.revcounter=c.length-g;f.first=!g;f.last=g==c.length-1;if(u.isArrayLike(k))if(1<a.length){b||(b=!0,r=r.push());var m={};for(d=0;d<k.length&&d<a.length;d++)m[a[d]]=k[d];
u.mixin(r,m)}else r[a[0]]=k[1];else r[a[0]]=k;g+1>this.pool.length&&this.pool.push(this.nodelist.clone(h));h=this.pool[g++].render(r,h,this)}delete r.forloop;if(b)r=r.pop();else for(d=0;d<a.length;d++)delete r[a[d]];return h},unrender:function(r,h){for(var e=0,g;g=this.pool[e];e++)h=g.unrender(r,h);return h},clone:function(r){return new this.constructor(this.assign,this.loop.getExpression(),this.reversed,this.nodelist.clone(r))}});u.mixin(x,{if_:function(r,h){var e,g,d=[],b=h.contents.split();b.shift();
h=b.join(" ");b=h.split(" and ");if(1==b.length){var a="or";b=h.split(" or ")}else for(a="and",e=0;e<b.length;e++)if(-1!=b[e].indexOf(" or "))throw Error("'if' tags can't mix 'and' and 'or'");for(e=0;g=b[e];e++){var c=!1;0==g.indexOf("not ")&&(g=g.slice(4),c=!0);d.push([c,new A._Filter(g)])}e=r.parse(["else","endif"]);g=!1;h=r.next_token();"else"==h.contents&&(g=r.parse(["endif"]),r.next_token());return new x.IfNode(d,e,g,a)},_ifequal:function(r,h,e){var g=h.split_contents();if(3!=g.length)throw Error(g[0]+
" takes two arguments");var d="end"+g[0],b=r.parse(["else",d]),a=!1;h=r.next_token();"else"==h.contents&&(a=r.parse([d]),r.next_token());return new x.IfEqualNode(g[1],g[2],b,a,e)},ifequal:function(r,h){return x._ifequal(r,h)},ifnotequal:function(r,h){return x._ifequal(r,h,!0)},for_:function(r,h){var e=h.contents.split();if(4>e.length)throw Error("'for' statements should have at least four words: "+h.contents);var g="reversed"==e[e.length-1],d=g?-3:-2;if("in"!=e[e.length+d])throw Error("'for' tag received an invalid argument: "+
h.contents);for(var b=e.slice(1,d).join(" ").split(/ *, */),a=0;a<b.length;a++)if(!b[a]||-1!=b[a].indexOf(" "))throw Error("'for' tag received an invalid argument: "+h.contents);a=r.parse(["endfor"]);r.next_token();return new x.ForNode(b,e[e.length+d+1],g,a)}});return x})},"dojox/dtl/tag/loop":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/json","../_base","dojox/string/tokenize"],function(u,A,x,r,h){var e=u.getObject("tag.loop",!0,r);e.CycleNode=u.extend(function(g,d,b,a){this.cyclevars=
g;this.name=d;this.contents=b;this.shared=a||{counter:-1,map:{}}},{render:function(g,d){g.forloop&&!g.forloop.counter0&&(this.shared.counter=-1);++this.shared.counter;var b=this.cyclevars[this.shared.counter%this.cyclevars.length],a=this.shared.map;a[b]||(a[b]=new r._Filter(b));b=a[b].resolve(g,d);this.name&&(g[this.name]=b);this.contents.set(b);return this.contents.render(g,d)},unrender:function(g,d){return this.contents.unrender(g,d)},clone:function(g){return new this.constructor(this.cyclevars,
this.name,this.contents.clone(g),this.shared)}});e.IfChangedNode=u.extend(function(g,d,b){this.nodes=g;this._vars=d;this.shared=b||{last:null,counter:0};this.vars=A.map(d,function(a){return new dojox.dtl._Filter(a)})},{render:function(g,d){g.forloop&&(g.forloop.counter<=this.shared.counter&&(this.shared.last=null),this.shared.counter=g.forloop.counter);var b=this.vars.length?x.toJson(A.map(this.vars,function(c){return c.resolve(g)})):this.nodes.dummyRender(g,d);if(b!=this.shared.last){var a=null===
this.shared.last;this.shared.last=b;g=g.push();g.ifchanged={firstloop:a};d=this.nodes.render(g,d);g=g.pop()}else d=this.nodes.unrender(g,d);return d},unrender:function(g,d){return this.nodes.unrender(g,d)},clone:function(g){return new this.constructor(this.nodes.clone(g),this._vars,this.shared)}});e.RegroupNode=u.extend(function(g,d,b){this._expression=g;this.expression=new r._Filter(g);this.key=d;this.alias=b},{_push:function(g,d,b){b.length&&g.push({grouper:d,list:b})},render:function(g,d){g[this.alias]=
[];var b=this.expression.resolve(g);if(b){for(var a=null,c=[],f=0;f<b.length;f++){var k=b[f][this.key];a!==k?(this._push(g[this.alias],a,c),a=k,c=[b[f]]):c.push(b[f])}this._push(g[this.alias],a,c)}return d},unrender:function(g,d){return d},clone:function(g,d){return this}});u.mixin(e,{cycle:function(g,d){var b=d.split_contents();if(2>b.length)throw Error("'cycle' tag requires at least two arguments");if(-1!=b[1].indexOf(",")){var a=b[1].split(",");b=[b[0]];for(var c=0;c<a.length;c++)b.push('"'+a[c]+
'"')}if(2==b.length){a=b[b.length-1];if(!g._namedCycleNodes)throw Error("No named cycles in template: '"+a+"' is not defined");if(!g._namedCycleNodes[a])throw Error("Named cycle '"+a+"' does not exist");return g._namedCycleNodes[a]}4<b.length&&"as"==b[b.length-2]?(a=b[b.length-1],b=new e.CycleNode(b.slice(1,b.length-2),a,g.create_text_node()),g._namedCycleNodes||(g._namedCycleNodes={}),g._namedCycleNodes[a]=b):b=new e.CycleNode(b.slice(1),null,g.create_text_node());return b},ifchanged:function(g,
d){var b=d.contents.split(),a=g.parse(["endifchanged"]);g.delete_first_token();return new e.IfChangedNode(a,b.slice(1))},regroup:function(g,d){var b=h(d.contents,/(\s+)/g,function(c){return c});if(11>b.length||"as"!=b[b.length-3]||"by"!=b[b.length-7])throw Error("Expected the format: regroup list by key as newList");var a=b.slice(2,-8).join("");return new e.RegroupNode(a,b[b.length-5],b[b.length-1])}});return e})},"dojox/dtl/filter/strings":function(){define("dojo/_base/lang dojo/_base/array dojox/string/tokenize dojox/string/sprintf ../filter/htmlstrings ../_base".split(" "),
function(u,A,x,r,h,e){var g=u.getObject("filter.strings",!0,e);u.mixin(g,{_urlquote:function(d,b){b||(b="/");return x(d,/([^\w-_.])/g,function(a){if(-1==b.indexOf(a)){if(" "==a)return"+";for(a=a.charCodeAt(0).toString(16).toUpperCase();2>a.length;)a="0"+a;return"%"+a}return a}).join("")},addslashes:function(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/'/g,"\\'")},capfirst:function(d){d=""+d;return d.charAt(0).toUpperCase()+d.substring(1)},center:function(d,b){b=b||d.length;d+="";
var a=b-d.length;a%2&&(d+=" ",--a);for(var c=0;c<a;c+=2)d=" "+d+" ";return d},cut:function(d,b){return(d+"").replace(new RegExp(b+""||"","g"),"")},_fix_ampersands:/&(?!(\w+|#\d+);)/g,fix_ampersands:function(d){return d.replace(g._fix_ampersands,"\x26amp;")},floatformat:function(d,b){b=parseInt(b||-1,10);d=parseFloat(d);if(!(d-d.toFixed(0))&&0>b)return d.toFixed();d=d.toFixed(Math.abs(b));return 0>b?parseFloat(d)+"":d},iriencode:function(d){return g._urlquote(d,"/#%[]\x3d:;$\x26()+,!")},linenumbers:function(d){var b=
dojox.dtl.filter;d=d.split("\n");for(var a=[],c=(d.length+"").length,f=0,k;f<d.length;f++)k=d[f],a.push(b.strings.ljust(f+1,c)+". "+dojox.dtl._base.escape(k));return a.join("\n")},ljust:function(d,b){d+="";for(b=parseInt(b,10);d.length<b;)d+=" ";return d},lower:function(d){return(d+"").toLowerCase()},make_list:function(d){var b=[];"number"==typeof d&&(d+="");if(d.charAt){for(var a=0;a<d.length;a++)b.push(d.charAt(a));return b}if("object"==typeof d){for(a in d)b.push(d[a]);return b}return[]},rjust:function(d,
b){d+="";for(b=parseInt(b,10);d.length<b;)d=" "+d;return d},slugify:function(d){d=d.replace(/[^\w\s-]/g,"").toLowerCase();return d.replace(/[\-\s]+/g,"-")},_strings:{},stringformat:function(d,b){b=""+b;var a=g._strings;a[b]||(a[b]=new r.Formatter("%"+b));return a[b].format(d)},title:function(d){for(var b,a="",c=0,f;c<d.length;c++)f=d.charAt(c),a=" "!=b&&"\n"!=b&&"\t"!=b&&b?a+f.toLowerCase():a+f.toUpperCase(),b=f;return a},_truncatewords:/[ \n\r\t]/,truncatewords:function(d,b){b=parseInt(b,10);if(!b)return d;
for(var a=0,c=d.length,f=0,k,m;a<d.length;a++){k=d.charAt(a);if(g._truncatewords.test(m)){if(!g._truncatewords.test(k)&&(++f,f==b))return d.substring(0,c+1)+" ..."}else g._truncatewords.test(k)||(c=a);m=k}return d},_truncate_words:/(&.*?;|<.*?>|(\w[\w\-]*))/g,_truncate_tag:/<(\/)?([^ ]+?)(?: (\/)| .*?)?>/,_truncate_singlets:{br:!0,col:!0,link:!0,base:!0,img:!0,param:!0,area:!0,hr:!0,input:!0},truncatewords_html:function(d,b){b=parseInt(b,10);if(0>=b)return"";var a=0,c=[],f=x(d,g._truncate_words,function(p,
l){if(l){++a;if(a<b)return l;if(a==b)return l+" ..."}var n=p.match(g._truncate_tag);if(n&&!(a>=b)){var q=n[1];n=n[2].toLowerCase();q||g._truncate_singlets[n]||(q?(q=A.indexOf(c,n),-1!=q&&(c=c.slice(q+1))):c.unshift(n));return p}}).join("");f=f.replace(/\s+$/g,"");for(var k=0,m;m=c[k];k++)f+="\x3c/"+m+"\x3e";return f},upper:function(d){return d.toUpperCase()},urlencode:function(d){return g._urlquote(d)},_urlize:/^((?:[(>]|&lt;)*)(.*?)((?:[.,)>\n]|&gt;)*)$/,_urlize2:/^\S+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+$/,
urlize:function(d){return g.urlizetrunc(d)},urlizetrunc:function(d,b){b=parseInt(b);return x(d,/(\S+)/g,function(a){var c=g._urlize.exec(a);if(!c)return a;c=c[2];var f=0==c.indexOf("www."),k=-1!=c.indexOf("@"),m=-1!=c.indexOf(":"),p=0==c.indexOf("http://"),l=0==c.indexOf("https://"),n=/[a-zA-Z0-9]/.test(c.charAt(0)),q=c.substring(c.length-4),w=c;3<b&&(w=w.substring(0,b-3)+"...");return f||!k&&!p&&c.length&&n&&(".org"==q||".net"==q||".com"==q)?'\x3ca href\x3d"http://'+c+'" rel\x3d"nofollow"\x3e'+w+
"\x3c/a\x3e":p||l?'\x3ca href\x3d"'+c+'" rel\x3d"nofollow"\x3e'+w+"\x3c/a\x3e":k&&!f&&!m&&g._urlize2.test(c)?'\x3ca href\x3d"mailto:'+c+'"\x3e'+c+"\x3c/a\x3e":a}).join("")},wordcount:function(d){return(d=u.trim(d))?d.split(/\s+/g).length:0},wordwrap:function(d,b){b=parseInt(b);var a=[],c=d.split(/\s+/g);if(c.length){var f=c.shift();a.push(f);for(var k=f.length-f.lastIndexOf("\n")-1,m=0;m<c.length;m++){f=c[m];var p=-1!=f.indexOf("\n")?f.split(/\n/g):[f];k+=p[0].length+1;b&&k>b?(a.push("\n"),k=p[p.length-
1].length):(a.push(" "),1<p.length&&(k=p[p.length-1].length));a.push(f)}}return a.join("")}});return g})},"dojox/string/sprintf":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/sniff","./tokenize"],function(u,A,x,r){var h=A.getObject("string",!0,dojox);h.sprintf=function(e,g){for(var d=[],b=1;b<arguments.length;b++)d.push(arguments[b]);b=new h.sprintf.Formatter(e);return b.format.apply(b,d)};h.sprintf.Formatter=function(e){this._mapped=!1;this._format=e;this._tokens=r(e,this._re,
this._parseDelim,this)};A.extend(h.sprintf.Formatter,{_re:/%(?:\(([\w_]+)\)|([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([%scdeEfFgGiouxX])/g,_parseDelim:function(e,g,d,b,a,c,f){e&&(this._mapped=!0);return{mapping:e,intmapping:g,flags:d,_minWidth:b,period:a,_precision:c,specifier:f}},_specifiers:{b:{base:2,isInt:!0},o:{base:8,isInt:!0},x:{base:16,isInt:!0},X:{extend:["x"],toUpper:!0},d:{base:10,isInt:!0},i:{extend:["d"]},u:{extend:["d"],isUnsigned:!0},c:{setArg:function(e){if(!isNaN(e.arg)){var g=
parseInt(e.arg);if(0>g||127<g)throw Error("invalid character code passed to %c in sprintf");e.arg=isNaN(g)?""+g:String.fromCharCode(g)}}},s:{setMaxWidth:function(e){e.maxWidth="."==e.period?e.precision:-1}},e:{isDouble:!0,doubleNotation:"e"},E:{extend:["e"],toUpper:!0},f:{isDouble:!0,doubleNotation:"f"},F:{extend:["f"]},g:{isDouble:!0,doubleNotation:"g"},G:{extend:["g"],toUpper:!0}},format:function(e){if(this._mapped&&"object"!=typeof e)throw Error("format requires a mapping");for(var g="",d=0,b=
0,a;b<this._tokens.length;b++)if(a=this._tokens[b],"string"==typeof a)g+=a;else{if(this._mapped){if("undefined"==typeof e[a.mapping])throw Error("missing key "+a.mapping);a.arg=e[a.mapping]}else{a.intmapping&&(d=parseInt(a.intmapping)-1);if(d>=arguments.length)throw Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");a.arg=arguments[d++]}if(!a.compiled){a.compiled=!0;a.sign="";a.zeroPad=!1;a.rightJustify=!1;a.alternative=!1;for(var c={},f=a.flags.length;f--;){var k=
a.flags.charAt(f);c[k]=!0;switch(k){case " ":a.sign=" ";break;case "+":a.sign="+";break;case "0":a.zeroPad=c["-"]?!1:!0;break;case "-":a.rightJustify=!0;a.zeroPad=!1;break;case "#":a.alternative=!0;break;default:throw Error("bad formatting flag '"+a.flags.charAt(f)+"'");}}a.minWidth=a._minWidth?parseInt(a._minWidth):0;a.maxWidth=-1;a.toUpper=!1;a.isUnsigned=!1;a.isInt=!1;a.isDouble=!1;a.precision=1;"."==a.period&&(a.precision=a._precision?parseInt(a._precision):0);c=this._specifiers[a.specifier];
if("undefined"==typeof c)throw Error("unexpected specifier '"+a.specifier+"'");c.extend&&(A.mixin(c,this._specifiers[c.extend]),delete c.extend);A.mixin(a,c)}"function"==typeof a.setArg&&a.setArg(a);"function"==typeof a.setMaxWidth&&a.setMaxWidth(a);if("*"==a._minWidth){if(this._mapped)throw Error("* width not supported in mapped formats");a.minWidth=parseInt(arguments[d++]);if(isNaN(a.minWidth))throw Error("the argument for * width at position "+d+" is not a number in "+this._format);0>a.minWidth&&
(a.rightJustify=!0,a.minWidth=-a.minWidth)}if("*"==a._precision&&"."==a.period){if(this._mapped)throw Error("* precision not supported in mapped formats");a.precision=parseInt(arguments[d++]);if(isNaN(a.precision))throw Error("the argument for * precision at position "+d+" is not a number in "+this._format);0>a.precision&&(a.precision=1,a.period="")}a.isInt?("."==a.period&&(a.zeroPad=!1),this.formatInt(a)):a.isDouble&&("."!=a.period&&(a.precision=6),this.formatDouble(a));this.fitField(a);g+=""+a.arg}return g},
_zeros10:"0000000000",_spaces10:"          ",formatInt:function(e){var g=parseInt(e.arg);if(!isFinite(g)){if("number"!=typeof e.arg)throw Error("format argument '"+e.arg+"' not an integer; parseInt returned "+g);g=0}0>g&&(e.isUnsigned||10!=e.base)&&(g=4294967295+g+1);0>g?(e.arg=(-g).toString(e.base),this.zeroPad(e),e.arg="-"+e.arg):(e.arg=g.toString(e.base),g||e.precision?this.zeroPad(e):e.arg="",e.sign&&(e.arg=e.sign+e.arg));16==e.base&&(e.alternative&&(e.arg="0x"+e.arg),e.arg=e.toUpper?e.arg.toUpperCase():
e.arg.toLowerCase());8==e.base&&e.alternative&&"0"!=e.arg.charAt(0)&&(e.arg="0"+e.arg)},formatDouble:function(e){var g=parseFloat(e.arg);if(!isFinite(g)){if("number"!=typeof e.arg)throw Error("format argument '"+e.arg+"' not a float; parseFloat returned "+g);g=0}switch(e.doubleNotation){case "e":e.arg=g.toExponential(e.precision);break;case "f":e.arg=g.toFixed(e.precision);break;case "g":e.arg=1E-4>Math.abs(g)?g.toExponential(0<e.precision?e.precision-1:e.precision):g.toPrecision(e.precision);e.alternative||
(e.arg=e.arg.replace(/(\..*[^0])0*/,"$1"),e.arg=e.arg.replace(/\.0*e/,"e").replace(/\.0$/,""));break;default:throw Error("unexpected double notation '"+e.doubleNotation+"'");}e.arg=e.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1");x("opera")&&(e.arg=e.arg.replace(/^\./,"0."));e.alternative&&(e.arg=e.arg.replace(/^(\d+)$/,"$1."),e.arg=e.arg.replace(/^(\d+)e/,"$1.e"));0<=g&&e.sign&&(e.arg=e.sign+e.arg);e.arg=e.toUpper?e.arg.toUpperCase():e.arg.toLowerCase()},zeroPad:function(e,g){g=2==arguments.length?
g:e.precision;"string"!=typeof e.arg&&(e.arg=""+e.arg);for(var d=g-10;e.arg.length<d;)e.arg=e.rightJustify?e.arg+this._zeros10:this._zeros10+e.arg;d=g-e.arg.length;e.arg=e.rightJustify?e.arg+this._zeros10.substring(0,d):this._zeros10.substring(0,d)+e.arg},fitField:function(e){if(0<=e.maxWidth&&e.arg.length>e.maxWidth)return e.arg.substring(0,e.maxWidth);e.zeroPad?this.zeroPad(e,e.minWidth):this.spacePad(e)},spacePad:function(e,g){g=2==arguments.length?g:e.minWidth;"string"!=typeof e.arg&&(e.arg=""+
e.arg);for(var d=g-10;e.arg.length<d;)e.arg=e.rightJustify?e.arg+this._spaces10:this._spaces10+e.arg;d=g-e.arg.length;e.arg=e.rightJustify?e.arg+this._spaces10.substring(0,d):this._spaces10.substring(0,d)+e.arg}});return h.sprintf})},"dojox/dtl/filter/htmlstrings":function(){define(["dojo/_base/lang","../_base"],function(u,A){var x=u.getObject("filter.htmlstrings",!0,A);u.mixin(x,{_linebreaksrn:/(\r\n|\n\r)/g,_linebreaksn:/\n{2,}/g,_linebreakss:/(^\s+|\s+$)/g,_linebreaksbr:/\n/g,_removetagsfind:/[a-z0-9]+/g,
_striptags:/<[^>]*?>/g,linebreaks:function(r){var h=[];r=r.replace(x._linebreaksrn,"\n");r=r.split(x._linebreaksn);for(var e=0;e<r.length;e++){var g=r[e].replace(x._linebreakss,"").replace(x._linebreaksbr,"\x3cbr /\x3e");h.push("\x3cp\x3e"+g+"\x3c/p\x3e")}return h.join("\n\n")},linebreaksbr:function(r){return r.replace(x._linebreaksrn,"\n").replace(x._linebreaksbr,"\x3cbr /\x3e")},removetags:function(r,h){for(var e=[],g;g=x._removetagsfind.exec(h);)e.push(g[0]);e="("+e.join("|")+")";return r.replace(new RegExp("\x3c/?s*"+
e+"s*[^\x3e]*\x3e","gi"),"")},striptags:function(r){return r.replace(dojox.dtl.filter.htmlstrings._striptags,"")}});return x})},"dijit/dijit":function(){define("./main ./_base dojo/parser ./_Widget ./_TemplatedMixin ./_Container ./layout/_LayoutWidget ./form/_FormWidget ./form/_FormValueWidget".split(" "),function(u){return u})},"url:dijit/form/templates/TextBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft" id\x3d"widget_${id}" role\x3d"presentation"\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputInner" data-dojo-attach-point\x3d\'textbox,focusNode\' autocomplete\x3d"off"\n\t\t\t${!nameAttrSetting} type\x3d\'${type}\'\n\t/\x3e\x3c/div\n\x3e\x3c/div\x3e\n',
"url:dijit/templates/Tooltip.html":'\x3cdiv class\x3d"dijitTooltip dijitTooltipLeft" id\x3d"dojoTooltip" data-dojo-attach-event\x3d"mouseenter:onMouseEnter,mouseleave:onMouseLeave"\n\t\x3e\x3cdiv class\x3d"dijitTooltipConnector" data-dojo-attach-point\x3d"connectorNode"\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d"dijitTooltipContainer dijitTooltipContents" data-dojo-attach-point\x3d"containerNode" role\x3d\'alert\'\x3e\x3c/div\n\x3e\x3c/div\x3e\n',"url:dijit/form/templates/ValidationTextBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft"\n\tid\x3d"widget_${id}" role\x3d"presentation"\n\t\x3e\x3cdiv class\x3d\'dijitReset dijitValidationContainer\'\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value\x3d"\x26#935; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t/\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputInner" data-dojo-attach-point\x3d\'textbox,focusNode\' autocomplete\x3d"off"\n\t\t\t${!nameAttrSetting} type\x3d\'${type}\'\n\t/\x3e\x3c/div\n\x3e\x3c/div\x3e\n',
"url:dijit/form/templates/Spinner.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft"\n\tid\x3d"widget_${id}" role\x3d"presentation"\n\t\x3e\x3cdiv class\x3d"dijitReset dijitButtonNode dijitSpinnerButtonContainer"\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitSpinnerButtonInner" type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t\t/\x3e\x3cdiv class\x3d"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitUpArrowButton"\n\t\t\tdata-dojo-attach-point\x3d"upArrowNode"\n\t\t\t\x3e\x3cdiv class\x3d"dijitArrowButtonInner"\n\t\t\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField" value\x3d"\x26#9650; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/\x3e\x3c/div\n\t\t\x3e\x3c/div\n\t\t\x3e\x3cdiv class\x3d"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitDownArrowButton"\n\t\t\tdata-dojo-attach-point\x3d"downArrowNode"\n\t\t\t\x3e\x3cdiv class\x3d"dijitArrowButtonInner"\n\t\t\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField" value\x3d"\x26#9660; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/\x3e\x3c/div\n\t\t\x3e\x3c/div\n\t\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d\'dijitReset dijitValidationContainer\'\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value\x3d"\x26#935; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t/\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\n\t\t\x3e\x3cinput class\x3d\'dijitReset dijitInputInner\' data-dojo-attach-point\x3d"textbox,focusNode" type\x3d"${type}" data-dojo-attach-event\x3d"onkeydown:_onKeyDown"\n\t\t\trole\x3d"spinbutton" autocomplete\x3d"off" ${!nameAttrSetting}\n\t/\x3e\x3c/div\n\x3e\x3c/div\x3e\n',
"url:dijit/form/templates/Button.html":'\x3cspan class\x3d"dijit dijitReset dijitInline" role\x3d"presentation"\n\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonNode"\n\t\tdata-dojo-attach-event\x3d"ondijitclick:__onClick" role\x3d"presentation"\n\t\t\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point\x3d"titleNode,focusNode"\n\t\t\trole\x3d"button" aria-labelledby\x3d"${id}_label"\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitToggleButtonIconChar"\x3e\x26#x25CF;\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonText"\n\t\t\t\tid\x3d"${id}_label"\n\t\t\t\tdata-dojo-attach-point\x3d"containerNode"\n\t\t\t\x3e\x3c/span\n\t\t\x3e\x3c/span\n\t\x3e\x3c/span\n\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" class\x3d"dijitOffScreen"\n\t\tdata-dojo-attach-event\x3d"onclick:_onClick"\n\t\ttabIndex\x3d"-1" aria-hidden\x3d"true" data-dojo-attach-point\x3d"valueNode"\n/\x3e\x3c/span\x3e\n',
"url:dijit/form/templates/DropDownButton.html":'\x3cspan class\x3d"dijit dijitReset dijitInline"\n\t\x3e\x3cspan class\x3d\'dijitReset dijitInline dijitButtonNode\'\n\t\tdata-dojo-attach-event\x3d"ondijitclick:__onClick" data-dojo-attach-point\x3d"_buttonNode"\n\t\t\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point\x3d"focusNode,titleNode,_arrowWrapperNode,_popupStateNode"\n\t\t\trole\x3d"button" aria-haspopup\x3d"true" aria-labelledby\x3d"${id}_label"\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon"\n\t\t\t\tdata-dojo-attach-point\x3d"iconNode"\n\t\t\t\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonText"\n\t\t\t\tdata-dojo-attach-point\x3d"containerNode"\n\t\t\t\tid\x3d"${id}_label"\n\t\t\t\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitArrowButtonInner"\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitArrowButtonChar"\x3e\x26#9660;\x3c/span\n\t\t\x3e\x3c/span\n\t\x3e\x3c/span\n\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" class\x3d"dijitOffScreen" tabIndex\x3d"-1"\n\t\tdata-dojo-attach-event\x3d"onclick:_onClick" data-dojo-attach-point\x3d"valueNode" aria-hidden\x3d"true"\n/\x3e\x3c/span\x3e\n',
"url:dijit/form/templates/ComboButton.html":'\x3ctable class\x3d"dijit dijitReset dijitInline dijitLeft"\n\tcellspacing\x3d\'0\' cellpadding\x3d\'0\' role\x3d"presentation"\n\t\x3e\x3ctbody role\x3d"presentation"\x3e\x3ctr role\x3d"presentation"\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"\n\t\t\x3e\x3cdiv id\x3d"${id}_button" class\x3d"dijitReset dijitButtonContents"\n\t\t\tdata-dojo-attach-point\x3d"titleNode"\n\t\t\trole\x3d"button" aria-labelledby\x3d"${id}_label"\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitInline dijitIcon" data-dojo-attach-point\x3d"iconNode" role\x3d"presentation"\x3e\x3c/div\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\n\t\t\x3e\x3c/div\n\t\t\x3e\x3c/td\n\t\t\x3e\x3ctd id\x3d"${id}_arrow" class\x3d\'dijitReset dijitRight dijitButtonNode dijitArrowButton\'\n\t\t\tdata-dojo-attach-point\x3d"_popupStateNode,focusNode,_buttonNode"\n\t\t\tdata-dojo-attach-event\x3d"onkeydown:_onArrowKeyDown"\n\t\t\ttitle\x3d"${optionsTitle}"\n\t\t\trole\x3d"button" aria-haspopup\x3d"true"\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitArrowButtonInner" role\x3d"presentation"\x3e\x3c/div\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitArrowButtonChar" role\x3d"presentation"\x3e\x26#9660;\x3c/div\n\t\t\x3e\x3c/td\n\t\t\x3e\x3ctd style\x3d"display:none !important;"\n\t\t\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" data-dojo-attach-point\x3d"valueNode"\n\t\t\t\tclass\x3d"dijitOffScreen" aria-hidden\x3d"true" data-dojo-attach-event\x3d"onclick:_onClick"\n\t\t/\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/tbody\n\x3e\x3c/table\x3e\n',
"url:dijit/form/templates/DropDownBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft"\n\tid\x3d"widget_${id}"\n\trole\x3d"combobox"\n\taria-haspopup\x3d"true"\n\tdata-dojo-attach-point\x3d"_popupStateNode"\n\t\x3e\x3cdiv class\x3d\'dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer\'\n\t\tdata-dojo-attach-point\x3d"_buttonNode" role\x3d"presentation"\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitArrowButtonInner" value\x3d"\x26#9660; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"button presentation" aria-hidden\x3d"true"\n\t\t\t${_buttonInputDisabled}\n\t/\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d\'dijitReset dijitValidationContainer\'\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value\x3d"\x26#935; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t/\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\n\t\t\x3e\x3cinput class\x3d\'dijitReset dijitInputInner\' ${!nameAttrSetting} type\x3d"${type}" autocomplete\x3d"off"\n\t\t\tdata-dojo-attach-point\x3d"textbox,focusNode" role\x3d"textbox"\n\t/\x3e\x3c/div\n\x3e\x3c/div\x3e\n',
"url:dijit/form/templates/CheckBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline" role\x3d"presentation"\n\t\x3e\x3cinput\n\t \t${!nameAttrSetting} type\x3d"${type}" role\x3d"${type}" aria-checked\x3d"false" ${checkedAttrSetting}\n\t\tclass\x3d"dijitReset dijitCheckBoxInput"\n\t\tdata-dojo-attach-point\x3d"focusNode"\n\t \tdata-dojo-attach-event\x3d"ondijitclick:_onClick"\n/\x3e\x3c/div\x3e\n',"url:dijit/templates/Calendar.html":'\x3cdiv class\x3d"dijitCalendarContainer dijitInline" role\x3d"presentation" aria-labelledby\x3d"${id}_mddb ${id}_year"\x3e\n\t\x3cdiv class\x3d"dijitReset dijitCalendarMonthContainer" role\x3d"presentation"\x3e\n\t\t\x3cdiv class\x3d\'dijitReset dijitCalendarArrow dijitCalendarDecrementArrow\' data-dojo-attach-point\x3d"decrementMonth"\x3e\n\t\t\t\x3cimg src\x3d"${_blankGif}" alt\x3d"" class\x3d"dijitCalendarIncrementControl dijitCalendarDecrease" role\x3d"presentation"/\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"decreaseArrowNode" class\x3d"dijitA11ySideArrow"\x3e-\x3c/span\x3e\n\t\t\x3c/div\x3e\n\t\t\x3cdiv class\x3d\'dijitReset dijitCalendarArrow dijitCalendarIncrementArrow\' data-dojo-attach-point\x3d"incrementMonth"\x3e\n\t\t\t\x3cimg src\x3d"${_blankGif}" alt\x3d"" class\x3d"dijitCalendarIncrementControl dijitCalendarIncrease" role\x3d"presentation"/\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"increaseArrowNode" class\x3d"dijitA11ySideArrow"\x3e+\x3c/span\x3e\n\t\t\x3c/div\x3e\n\t\t\x3cdiv data-dojo-attach-point\x3d"monthNode" class\x3d"dijitInline"\x3e\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3ctable cellspacing\x3d"0" cellpadding\x3d"0" role\x3d"grid" data-dojo-attach-point\x3d"gridNode"\x3e\n\t\t\x3cthead\x3e\n\t\t\t\x3ctr role\x3d"row"\x3e\n\t\t\t\t${!dayCellsHtml}\n\t\t\t\x3c/tr\x3e\n\t\t\x3c/thead\x3e\n\t\t\x3ctbody data-dojo-attach-point\x3d"dateRowsNode" data-dojo-attach-event\x3d"ondijitclick: _onDayClick" class\x3d"dijitReset dijitCalendarBodyContainer"\x3e\n\t\t\t\t${!dateRowsHtml}\n\t\t\x3c/tbody\x3e\n\t\x3c/table\x3e\n\t\x3cdiv class\x3d"dijitReset dijitCalendarYearContainer" role\x3d"presentation"\x3e\n\t\t\x3cdiv class\x3d"dijitCalendarYearLabel"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"previousYearLabelNode" class\x3d"dijitInline dijitCalendarPreviousYear" role\x3d"button"\x3e\x3c/span\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"currentYearLabelNode" class\x3d"dijitInline dijitCalendarSelectedYear" role\x3d"button" id\x3d"${id}_year"\x3e\x3c/span\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"nextYearLabelNode" class\x3d"dijitInline dijitCalendarNextYear" role\x3d"button"\x3e\x3c/span\x3e\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/templates/TreeNode.html":'\x3cdiv class\x3d"dijitTreeNode" role\x3d"presentation"\n\t\x3e\x3cdiv data-dojo-attach-point\x3d"rowNode" class\x3d"dijitTreeRow" role\x3d"presentation"\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"expandoNode" class\x3d"dijitInline dijitTreeExpando" role\x3d"presentation"\x3e\x3c/span\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"expandoNodeText" class\x3d"dijitExpandoText" role\x3d"presentation"\x3e\x3c/span\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"contentNode"\n\t\t\tclass\x3d"dijitTreeContent" role\x3d"presentation"\x3e\n\t\t\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitIcon dijitTreeIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\n\t\t\t\x3e\x3cspan data-dojo-attach-point\x3d"labelNode,focusNode" class\x3d"dijitTreeLabel" role\x3d"treeitem"\n\t\t\t\t   tabindex\x3d"-1" aria-selected\x3d"false" id\x3d"${id}_label"\x3e\x3c/span\x3e\n\t\t\x3c/span\n\t\x3e\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitTreeNodeContainer" role\x3d"presentation"\n\t\t style\x3d"display: none;" aria-labelledby\x3d"${id}_label"\x3e\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/templates/Tree.html":'\x3cdiv role\x3d"tree"\x3e\n\t\x3cdiv class\x3d"dijitInline dijitTreeIndent" style\x3d"position: absolute; top: -9999px" data-dojo-attach-point\x3d"indentDetector"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitTreeExpando dijitTreeExpandoLoading" data-dojo-attach-point\x3d"rootLoadingIndicator"\x3e\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitTreeContainer" role\x3d"presentation"\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',"url:dijit/layout/templates/TabContainer.html":'\x3cdiv class\x3d"dijitTabContainer"\x3e\n\t\x3cdiv class\x3d"dijitTabListWrapper" data-dojo-attach-point\x3d"tablistNode"\x3e\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"tablistSpacer" class\x3d"dijitTabSpacer ${baseClass}-spacer"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitTabPaneWrapper ${baseClass}-container" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/templates/Menu.html":'\x3ctable class\x3d"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable" role\x3d"menu" tabIndex\x3d"${tabIndex}"\n\t   cellspacing\x3d"0"\x3e\n\t\x3ctbody class\x3d"dijitReset" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/tbody\x3e\n\x3c/table\x3e\n',"url:dijit/templates/MenuItem.html":'\x3ctr class\x3d"dijitReset" data-dojo-attach-point\x3d"focusNode" role\x3d"menuitem" tabIndex\x3d"-1"\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemIconCell" role\x3d"presentation"\x3e\n\t\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitIcon dijitMenuItemIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\n\t\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemLabel" colspan\x3d"2" data-dojo-attach-point\x3d"containerNode,textDirNode"\n\t\trole\x3d"presentation"\x3e\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemAccelKey" style\x3d"display: none" data-dojo-attach-point\x3d"accelKeyNode"\x3e\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuArrowCell" role\x3d"presentation"\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"arrowWrapper" style\x3d"visibility: hidden"\x3e\n\t\t\t\x3cspan class\x3d"dijitInline dijitIcon dijitMenuExpand"\x3e\x3c/span\x3e\n\t\t\t\x3cspan class\x3d"dijitMenuExpandA11y"\x3e+\x3c/span\x3e\n\t\t\x3c/span\x3e\n\t\x3c/td\x3e\n\x3c/tr\x3e\n',
"url:dijit/layout/templates/_TabButton.html":'\x3cdiv role\x3d"presentation" data-dojo-attach-point\x3d"titleNode,innerDiv,tabContent" class\x3d"dijitTabInner dijitTabContent"\x3e\n\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitIcon dijitTabButtonIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\n\t\x3cspan data-dojo-attach-point\x3d\'containerNode,focusNode\' class\x3d\'tabLabel\'\x3e\x3c/span\x3e\n\t\x3cspan class\x3d"dijitInline dijitTabCloseButton dijitTabCloseIcon" data-dojo-attach-point\x3d\'closeNode\'\n\t\t  role\x3d"presentation"\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d\'closeText\' class\x3d\'dijitTabCloseText\'\x3e[x]\x3c/span\n\t\t\t\t\x3e\x3c/span\x3e\n\x3c/div\x3e\n',
"url:dijit/layout/templates/ScrollingTabController.html":'\x3cdiv class\x3d"dijitTabListContainer-${tabPosition}" style\x3d"visibility:hidden"\x3e\n\t\x3cdiv data-dojo-type\x3d"dijit.layout._ScrollingTabControllerMenuButton"\n\t\t class\x3d"tabStripButton-${tabPosition}"\n\t\t id\x3d"${id}_menuBtn"\n\t\t data-dojo-props\x3d"containerId: \'${containerId}\', iconClass: \'dijitTabStripMenuIcon\',\n\t\t\t\t\tdropDownPosition: [\'below-alt\', \'above-alt\']"\n\t\t data-dojo-attach-point\x3d"_menuBtn" showLabel\x3d"false" title\x3d""\x3e\x26#9660;\x3c/div\x3e\n\t\x3cdiv data-dojo-type\x3d"dijit.layout._ScrollingTabControllerButton"\n\t\t class\x3d"tabStripButton-${tabPosition}"\n\t\t id\x3d"${id}_leftBtn"\n\t\t data-dojo-props\x3d"iconClass:\'dijitTabStripSlideLeftIcon\', showLabel:false, title:\'\'"\n\t\t data-dojo-attach-point\x3d"_leftBtn" data-dojo-attach-event\x3d"onClick: doSlideLeft"\x3e\x26#9664;\x3c/div\x3e\n\t\x3cdiv data-dojo-type\x3d"dijit.layout._ScrollingTabControllerButton"\n\t\t class\x3d"tabStripButton-${tabPosition}"\n\t\t id\x3d"${id}_rightBtn"\n\t\t data-dojo-props\x3d"iconClass:\'dijitTabStripSlideRightIcon\', showLabel:false, title:\'\'"\n\t\t data-dojo-attach-point\x3d"_rightBtn" data-dojo-attach-event\x3d"onClick: doSlideRight"\x3e\x26#9654;\x3c/div\x3e\n\t\x3cdiv class\x3d\'dijitTabListWrapper\' data-dojo-attach-point\x3d\'tablistWrapper\'\x3e\n\t\t\x3cdiv role\x3d\'tablist\' data-dojo-attach-event\x3d\'onkeydown:onkeydown\'\n\t\t\t data-dojo-attach-point\x3d\'containerNode\' class\x3d\'nowrapTabStrip\'\x3e\x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e',
"url:dijit/layout/templates/_ScrollingTabControllerButton.html":'\x3cdiv data-dojo-attach-event\x3d"ondijitclick:_onClick" class\x3d"dijitTabInnerDiv dijitTabContent dijitButtonContents"  data-dojo-attach-point\x3d"focusNode" role\x3d"button"\x3e\n\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitTabStripIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\n\t\x3cspan data-dojo-attach-point\x3d"containerNode,titleNode" class\x3d"dijitButtonText"\x3e\x3c/span\x3e\n\x3c/div\x3e',"url:dijit/layout/templates/AccordionButton.html":"\x3cdiv data-dojo-attach-event\x3d'ondijitclick:_onTitleClick' class\x3d'dijitAccordionTitle' role\x3d\"presentation\"\x3e\n\t\x3cdiv data-dojo-attach-point\x3d'titleNode,focusNode' data-dojo-attach-event\x3d'onkeydown:_onTitleKeyDown'\n\t\t\tclass\x3d'dijitAccordionTitleFocus' role\x3d\"tab\" aria-expanded\x3d\"false\"\n\t\t\x3e\x3cspan class\x3d'dijitInline dijitAccordionArrow' role\x3d\"presentation\"\x3e\x3c/span\n\t\t\x3e\x3cspan class\x3d'arrowTextUp' role\x3d\"presentation\"\x3e+\x3c/span\n\t\t\x3e\x3cspan class\x3d'arrowTextDown' role\x3d\"presentation\"\x3e-\x3c/span\n\t\t\x3e\x3cspan role\x3d\"presentation\" class\x3d\"dijitInline dijitIcon\" data-dojo-attach-point\x3d\"iconNode\"\x3e\x3c/span\x3e\n\t\t\x3cspan role\x3d\"presentation\" data-dojo-attach-point\x3d'titleTextNode, textDirNode' class\x3d'dijitAccordionText'\x3e\x3c/span\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n",
"url:dojox/layout/resources/ExpandoPane.html":'\x3cdiv class\x3d"dojoxExpandoPane"\x3e\n\t\x3cdiv dojoAttachPoint\x3d"titleWrapper" class\x3d"dojoxExpandoTitle"\x3e\n\t\t\x3cdiv class\x3d"dojoxExpandoIcon" dojoAttachPoint\x3d"iconNode" dojoAttachEvent\x3d"ondijitclick:toggle"\x3e\x3cspan class\x3d"a11yNode"\x3eX\x3c/span\x3e\x3c/div\x3e\n\t\t\x3cspan class\x3d"dojoxExpandoTitleNode" dojoAttachPoint\x3d"titleNode"\x3e${title}\x3c/span\x3e\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d"dojoxExpandoWrapper" dojoAttachPoint\x3d"cwrapper" dojoAttachEvent\x3d"ondblclick:_trap"\x3e\n\t\t\x3cdiv class\x3d"dojoxExpandoContent" dojoAttachPoint\x3d"containerNode"\x3e\x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dojox/widget/Dialog/Dialog.html":'\x3cdiv class\x3d"dojoxDialog" tabindex\x3d"-1" role\x3d"dialog" aria-labelledby\x3d"${id}_title"\x3e\n\t\x3cdiv dojoAttachPoint\x3d"titleBar" class\x3d"dojoxDialogTitleBar"\x3e\n\t\t\x3cspan dojoAttachPoint\x3d"titleNode" class\x3d"dojoxDialogTitle" id\x3d"${id}_title"\x3e${title}\x3c/span\x3e\n\t\x3c/div\x3e\n\t\x3cdiv dojoAttachPoint\x3d"dojoxDialogWrapper"\x3e\n\t\t\x3cdiv dojoAttachPoint\x3d"containerNode" class\x3d"dojoxDialogPaneContent"\x3e\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3cdiv dojoAttachPoint\x3d"closeButtonNode" class\x3d"dojoxDialogCloseIcon" dojoAttachEvent\x3d"onclick: onCancel"\x3e\n\t\t\t\x3cspan dojoAttachPoint\x3d"closeText" class\x3d"closeText"\x3ex\x3c/span\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/templates/Dialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"${id}_title"\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" id\x3d"${id}_title"\n\t\t\t\trole\x3d"heading" level\x3d"1"\x3e\x3c/span\x3e\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\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"${buttonCancel}"\x3ex\x3c/span\x3e\n\t\t\x3c/span\x3e\n\t\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\x3c/div\x3e\n\t${!actionBarTemplate}\n\x3c/div\x3e\n\n',
"url:dijit/templates/CheckedMenuItem.html":'\x3ctr class\x3d"dijitReset" data-dojo-attach-point\x3d"focusNode" role\x3d"${role}" tabIndex\x3d"-1" aria-checked\x3d"${checked}"\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemIconCell" role\x3d"presentation"\x3e\n\t\t\x3cspan class\x3d"dijitInline dijitIcon dijitMenuItemIcon dijitCheckedMenuItemIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\n\t\t\x3cspan class\x3d"dijitMenuItemIconChar dijitCheckedMenuItemIconChar"\x3e${!checkedChar}\x3c/span\x3e\n\t\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemLabel" colspan\x3d"2" data-dojo-attach-point\x3d"containerNode,labelNode,textDirNode"\x3e\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemAccelKey" style\x3d"display: none" data-dojo-attach-point\x3d"accelKeyNode"\x3e\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuArrowCell" role\x3d"presentation"\x3e\x26#160;\x3c/td\x3e\n\x3c/tr\x3e\n',
"url:dijit/templates/MenuSeparator.html":'\x3ctr class\x3d"dijitMenuSeparator" role\x3d"separator"\x3e\n\t\x3ctd class\x3d"dijitMenuSeparatorIconCell"\x3e\n\t\t\x3cdiv class\x3d"dijitMenuSeparatorTop"\x3e\x3c/div\x3e\n\t\t\x3cdiv class\x3d"dijitMenuSeparatorBottom"\x3e\x3c/div\x3e\n\t\x3c/td\x3e\n\t\x3ctd colspan\x3d"3" class\x3d"dijitMenuSeparatorLabelCell"\x3e\n\t\t\x3cdiv class\x3d"dijitMenuSeparatorTop dijitMenuSeparatorLabel"\x3e\x3c/div\x3e\n\t\t\x3cdiv class\x3d"dijitMenuSeparatorBottom"\x3e\x3c/div\x3e\n\t\x3c/td\x3e\n\x3c/tr\x3e\n',
"url:dijit/templates/TooltipDialog.html":'\x3cdiv role\x3d"alertdialog" tabIndex\x3d"-1"\x3e\n\t\x3cdiv class\x3d"dijitTooltipContainer" role\x3d"presentation"\x3e\n\t\t\x3cdiv data-dojo-attach-point\x3d"contentsNode" class\x3d"dijitTooltipContents dijitTooltipFocusNode"\x3e\n\t\t\t\x3cdiv data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\n\t\t\t${!actionBarTemplate}\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitTooltipConnector" role\x3d"presentation" data-dojo-attach-point\x3d"connectorNode"\x3e\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/templates/ProgressBar.html":'\x3cdiv class\x3d"dijitProgressBar dijitProgressBarEmpty" role\x3d"progressbar"\n\t\x3e\x3cdiv  data-dojo-attach-point\x3d"internalProgress" class\x3d"dijitProgressBarFull"\n\t\t\x3e\x3cdiv class\x3d"dijitProgressBarTile" role\x3d"presentation"\x3e\x3c/div\n\t\t\x3e\x3cspan style\x3d"visibility:hidden"\x3e\x26#160;\x3c/span\n\t\x3e\x3c/div\n\t\x3e\x3cdiv data-dojo-attach-point\x3d"labelNode" class\x3d"dijitProgressBarLabel" id\x3d"${id}_label"\x3e\x3c/div\n\t\x3e\x3cspan data-dojo-attach-point\x3d"indeterminateHighContrastImage"\n\t\t   class\x3d"dijitInline dijitProgressBarIndeterminateHighContrastImage"\x3e\x3c/span\n\x3e\x3c/div\x3e\n',
"url:dijit/templates/actionBar.html":"\x3cdiv class\x3d'dijitDialogPaneActionBar' data-dojo-attach-point\x3d\"actionBarNode\"\x3e\n\t\x3cbutton data-dojo-type\x3d'dijit/form/Button' type\x3d'submit' data-dojo-attach-point\x3d\"okButton\"\x3e\x3c/button\x3e\n\t\x3cbutton data-dojo-type\x3d'dijit/form/Button' type\x3d'button'\n\t\t\tdata-dojo-attach-point\x3d\"cancelButton\" data-dojo-attach-event\x3d'click:onCancel'\x3e\x3c/button\x3e\n\x3c/div\x3e\n","url:dijit/templates/ColorPalette.html":'\x3cdiv class\x3d"dijitInline dijitColorPalette" role\x3d"grid"\x3e\n\t\x3ctable data-dojo-attach-point\x3d"paletteTableNode" class\x3d"dijitPaletteTable" cellSpacing\x3d"0" cellPadding\x3d"0" role\x3d"presentation"\x3e\n\t\t\x3ctbody data-dojo-attach-point\x3d"gridNode"\x3e\x3c/tbody\x3e\n\t\x3c/table\x3e\n\x3c/div\x3e\n',
"url:dojox/widget/ColorPicker/ColorPicker.html":'\x3ctable class\x3d"dojoxColorPicker" dojoAttachEvent\x3d"onkeypress: _handleKey" cellpadding\x3d"0" cellspacing\x3d"0" role\x3d"presentation"\x3e\n\t\x3ctr\x3e\n\t\t\x3ctd valign\x3d"top" class\x3d"dojoxColorPickerRightPad"\x3e\n\t\t\t\x3cdiv class\x3d"dojoxColorPickerBox"\x3e\n\t\t\t\t\x3c!-- Forcing ABS in style attr due to dojo DND issue with not picking it up form the class. --\x3e\n\t\t\t\t\x3cimg title\x3d"${saturationPickerTitle}" alt\x3d"${saturationPickerTitle}" class\x3d"dojoxColorPickerPoint" src\x3d"${_pickerPointer}" tabIndex\x3d"0" dojoAttachPoint\x3d"cursorNode" style\x3d"position: absolute; top: 0px; left: 0px;"\x3e\n\t\t\t\t\x3cimg role\x3d"presentation" alt\x3d"" dojoAttachPoint\x3d"colorUnderlay" dojoAttachEvent\x3d"onclick: _setPoint, onmousedown: _stopDrag" class\x3d"dojoxColorPickerUnderlay" src\x3d"${_underlay}" ondragstart\x3d"return false"\x3e\n\t\t\t\x3c/div\x3e\n\t\t\x3c/td\x3e\n\t\t\x3ctd valign\x3d"top" class\x3d"dojoxColorPickerRightPad"\x3e\n\t\t\t\x3cdiv class\x3d"dojoxHuePicker"\x3e\n\t\t\t\t\x3c!-- Forcing ABS in style attr due to dojo DND issue with not picking it up form the class. --\x3e\n\t\t\t\t\x3cimg dojoAttachPoint\x3d"hueCursorNode" tabIndex\x3d"0" class\x3d"dojoxHuePickerPoint" title\x3d"${huePickerTitle}" alt\x3d"${huePickerTitle}" src\x3d"${_huePickerPointer}" style\x3d"position: absolute; top: 0px; left: 0px;"\x3e\n\t\t\t\t\x3cdiv class\x3d"dojoxHuePickerUnderlay" dojoAttachPoint\x3d"hueNode"\x3e\n\t\t\t\t    \x3cimg role\x3d"presentation" alt\x3d"" dojoAttachEvent\x3d"onclick: _setHuePoint, onmousedown: _stopDrag" src\x3d"${_hueUnderlay}"\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t\x3c/td\x3e\n\t\t\x3ctd valign\x3d"top"\x3e\n\t\t\t\x3ctable cellpadding\x3d"0" cellspacing\x3d"0" role\x3d"presentation"\x3e\n\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\x3ctd valign\x3d"top" class\x3d"dojoxColorPickerPreviewContainer"\x3e\n\t\t\t\t\t\t\x3ctable cellpadding\x3d"0" cellspacing\x3d"0" role\x3d"presentation"\x3e\n\t\t\t\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\t\t\t\x3ctd valign\x3d"top" class\x3d"dojoxColorPickerRightPad"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv dojoAttachPoint\x3d"previewNode" class\x3d"dojoxColorPickerPreview"\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\t\t\t\x3ctd valign\x3d"top"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv dojoAttachPoint\x3d"safePreviewNode" class\x3d"dojoxColorPickerWebSafePreview"\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\t\t\x3c/table\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\x3ctd valign\x3d"bottom"\x3e\n\t\t\t\t\t\t\x3ctable class\x3d"dojoxColorPickerOptional" cellpadding\x3d"0" cellspacing\x3d"0" role\x3d"presentation"\x3e\n\t\t\t\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"dijitInline dojoxColorPickerRgb" dojoAttachPoint\x3d"rgbNode"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctable cellpadding\x3d"1" cellspacing\x3d"1" role\x3d"presentation"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d"${_uId}_r"\x3e${redLabel}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput id\x3d"${_uId}_r" dojoAttachPoint\x3d"Rval" size\x3d"1" dojoAttachEvent\x3d"onchange: _colorInputChange"\x3e\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d"${_uId}_g"\x3e${greenLabel}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput id\x3d"${_uId}_g" dojoAttachPoint\x3d"Gval" size\x3d"1" dojoAttachEvent\x3d"onchange: _colorInputChange"\x3e\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d"${_uId}_b"\x3e${blueLabel}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput id\x3d"${_uId}_b" dojoAttachPoint\x3d"Bval" size\x3d"1" dojoAttachEvent\x3d"onchange: _colorInputChange"\x3e\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c/table\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"dijitInline dojoxColorPickerHsv" dojoAttachPoint\x3d"hsvNode"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctable cellpadding\x3d"1" cellspacing\x3d"1" role\x3d"presentation"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d"${_uId}_h"\x3e${hueLabel}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput id\x3d"${_uId}_h" dojoAttachPoint\x3d"Hval"size\x3d"1" dojoAttachEvent\x3d"onchange: _colorInputChange"\x3e ${degLabel}\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d"${_uId}_s"\x3e${saturationLabel}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput id\x3d"${_uId}_s" dojoAttachPoint\x3d"Sval" size\x3d"1" dojoAttachEvent\x3d"onchange: _colorInputChange"\x3e ${percentSign}\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d"${_uId}_v"\x3e${valueLabel}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput id\x3d"${_uId}_v" dojoAttachPoint\x3d"Vval" size\x3d"1" dojoAttachEvent\x3d"onchange: _colorInputChange"\x3e ${percentSign}\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c/table\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\t\t\t\x3ctd colspan\x3d"2"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"dojoxColorPickerHex" dojoAttachPoint\x3d"hexNode" aria-live\x3d"polite"\x3e\t\n\t\t\t\t\t\t\t\t\t\t\x3clabel for\x3d"${_uId}_hex"\x3e\x26nbsp;${hexLabel}\x26nbsp;\x3c/label\x3e\x3cinput id\x3d"${_uId}_hex" dojoAttachPoint\x3d"hexCode, focusNode, valueNode" size\x3d"6" class\x3d"dojoxColorPickerHexCode" dojoAttachEvent\x3d"onchange: _colorInputChange"\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\t\t\x3c/table\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\x3c/table\x3e\n\t\t\x3c/td\x3e\n\t\x3c/tr\x3e\n\x3c/table\x3e\n\n',
"url:dojox/editor/plugins/resources/insertTable.html":'\x3cdiv class\x3d"dijitDialog" tabindex\x3d"-1" role\x3d"dialog" aria-labelledby\x3d"${id}_title"\x3e\n\t\x3cdiv dojoAttachPoint\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n\t\x3cspan dojoAttachPoint\x3d"titleNode" class\x3d"dijitDialogTitle" id\x3d"${id}_title"\x3e${insertTableTitle}\x3c/span\x3e\n\t\x3cspan dojoAttachPoint\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon" dojoAttachEvent\x3d"onclick: onCancel" title\x3d"${buttonCancel}"\x3e\n\t\t\x3cspan dojoAttachPoint\x3d"closeText" class\x3d"closeText" title\x3d"${buttonCancel}"\x3ex\x3c/span\x3e\n\t\x3c/span\x3e\n\t\x3c/div\x3e\n    \x3cdiv dojoAttachPoint\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\n        \x3ctable class\x3d"etdTable"\x3e\x3ctr\x3e\n            \x3ctd\x3e\n                \x3clabel\x3e${rows}\x3c/label\x3e\n\t\t\t\x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectRow" dojoType\x3d"dijit.form.TextBox" value\x3d"2"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd\x3e\x3ctable\x3e\x3ctr\x3e\x3ctd class\x3d"inner"\x3e\n                \x3clabel\x3e${columns}\x3c/label\x3e\n\t\t\t\x3c/td\x3e\x3ctd class\x3d"inner"\x3e\n                \x3cspan dojoAttachPoint\x3d"selectCol" dojoType\x3d"dijit.form.TextBox" value\x3d"2"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/td\x3e\x3c/tr\x3e\t\t\n\t\t\t\x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${tableWidth}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectWidth" dojoType\x3d"dijit.form.TextBox" value\x3d"100"\x3e\x3c/span\x3e\n\t\t\t\x3c/td\x3e\x3ctd\x3e\n                \x3cselect dojoAttachPoint\x3d"selectWidthType" hasDownArrow\x3d"true" dojoType\x3d"dijit.form.FilteringSelect"\x3e\n                  \x3coption value\x3d"percent"\x3e${percent}\x3c/option\x3e\n                  \x3coption value\x3d"pixels"\x3e${pixels}\x3c/option\x3e\n                \x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\t\n            \x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${borderThickness}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectBorder" dojoType\x3d"dijit.form.TextBox" value\x3d"1"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                ${pixels}\n            \x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${cellPadding}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectPad" dojoType\x3d"dijit.form.TextBox" value\x3d"0"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd class\x3d"cellpad"\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${cellSpacing}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectSpace" dojoType\x3d"dijit.form.TextBox" value\x3d"0"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd class\x3d"cellspace"\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\n        \x3cdiv class\x3d"dialogButtonContainer"\x3e\n            \x3cdiv dojoType\x3d"dijit.form.Button" dojoAttachEvent\x3d"onClick: onInsert"\x3e${buttonInsert}\x3c/div\x3e\n            \x3cdiv dojoType\x3d"dijit.form.Button" dojoAttachEvent\x3d"onClick: onCancel"\x3e${buttonCancel}\x3c/div\x3e\n        \x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dojox/editor/plugins/resources/modifyTable.html":'\x3cdiv class\x3d"dijitDialog" tabindex\x3d"-1" role\x3d"dialog" aria-labelledby\x3d"${id}_title"\x3e\n\t\x3cdiv dojoAttachPoint\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n\t\x3cspan dojoAttachPoint\x3d"titleNode" class\x3d"dijitDialogTitle" id\x3d"${id}_title"\x3e${modifyTableTitle}\x3c/span\x3e\n\t\x3cspan dojoAttachPoint\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon" dojoAttachEvent\x3d"onclick: onCancel" title\x3d"${buttonCancel}"\x3e\n\t\t\x3cspan dojoAttachPoint\x3d"closeText" class\x3d"closeText" title\x3d"${buttonCancel}"\x3ex\x3c/span\x3e\n\t\x3c/span\x3e\n\t\x3c/div\x3e\n    \x3cdiv dojoAttachPoint\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\n        \x3ctable class\x3d"etdTable"\x3e\n          \x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${backgroundColor}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd colspan\x3d"2"\x3e\n                \x3cspan class\x3d"colorSwatchBtn" dojoAttachPoint\x3d"backgroundCol"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${borderColor}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd colspan\x3d"2"\x3e\n                \x3cspan class\x3d"colorSwatchBtn" dojoAttachPoint\x3d"borderCol"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${align}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd colspan\x3d"2"\x3e\t\n                \x3cselect dojoAttachPoint\x3d"selectAlign" dojoType\x3d"dijit.form.FilteringSelect"\x3e\n                  \x3coption value\x3d"default"\x3e${default}\x3c/option\x3e\n                  \x3coption value\x3d"left"\x3e${left}\x3c/option\x3e\n                  \x3coption value\x3d"center"\x3e${center}\x3c/option\x3e\n                  \x3coption value\x3d"right"\x3e${right}\x3c/option\x3e\n                \x3c/select\x3e\n            \x3c/td\x3e\x3c/tr\x3e\n            \x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${tableWidth}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectWidth" dojoType\x3d"dijit.form.TextBox" value\x3d"100"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cselect dojoAttachPoint\x3d"selectWidthType" hasDownArrow\x3d"true" dojoType\x3d"dijit.form.FilteringSelect"\x3e\n                  \x3coption value\x3d"percent"\x3e${percent}\x3c/option\x3e\n                  \x3coption value\x3d"pixels"\x3e${pixels}\x3c/option\x3e\n                \x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\t\n            \x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${borderThickness}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectBorder" dojoType\x3d"dijit.form.TextBox" value\x3d"1"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                ${pixels}\n            \x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${cellPadding}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectPad" dojoType\x3d"dijit.form.TextBox" value\x3d"0"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd class\x3d"cellpad"\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${cellSpacing}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectSpace" dojoType\x3d"dijit.form.TextBox" value\x3d"0"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd class\x3d"cellspace"\x3e\x3c/td\x3e\x3c/tr\x3e\n        \x3c/table\x3e\n        \x3cdiv class\x3d"dialogButtonContainer"\x3e\n            \x3cdiv dojoType\x3d"dijit.form.Button" dojoAttachEvent\x3d"onClick: onSet"\x3e${buttonSet}\x3c/div\x3e\n            \x3cdiv dojoType\x3d"dijit.form.Button" dojoAttachEvent\x3d"onClick: onCancel"\x3e${buttonCancel}\x3c/div\x3e\n        \x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/form/templates/Select.html":'\x3ctable class\x3d"dijit dijitReset dijitInline dijitLeft"\n\tdata-dojo-attach-point\x3d"_buttonNode,tableNode,focusNode,_popupStateNode" cellspacing\x3d\'0\' cellpadding\x3d\'0\'\n\trole\x3d"listbox" aria-haspopup\x3d"true"\n\t\x3e\x3ctbody role\x3d"presentation"\x3e\x3ctr role\x3d"presentation"\n\t\t\x3e\x3ctd class\x3d"dijitReset dijitStretch dijitButtonContents" role\x3d"presentation"\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitButtonText"  data-dojo-attach-point\x3d"containerNode,textDirNode" role\x3d"presentation"\x3e\x3c/div\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitValidationContainer"\n\t\t\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value\x3d"\x26#935; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t\t\t/\x3e\x3c/div\n\t\t\t\x3e\x3cinput type\x3d"hidden" ${!nameAttrSetting} data-dojo-attach-point\x3d"valueNode" value\x3d"${value}" aria-hidden\x3d"true"\n\t\t/\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer"\n\t\t\tdata-dojo-attach-point\x3d"titleNode" role\x3d"presentation"\n\t\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitArrowButtonInner" value\x3d"\x26#9660; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t\t\t\t${_buttonInputDisabled}\n\t\t/\x3e\x3c/td\n\t\x3e\x3c/tr\x3e\x3c/tbody\n\x3e\x3c/table\x3e\n',
"url:dojox/grid/resources/View.html":'\x3cdiv class\x3d"dojoxGridView" role\x3d"presentation"\x3e\n\t\x3cdiv class\x3d"dojoxGridHeader" dojoAttachPoint\x3d"headerNode" role\x3d"presentation"\x3e\n\t\t\x3cdiv dojoAttachPoint\x3d"headerNodeContainer" style\x3d"width:9000em" role\x3d"presentation"\x3e\n\t\t\t\x3cdiv dojoAttachPoint\x3d"headerContentNode" role\x3d"row"\x3e\x3c/div\x3e\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3cinput type\x3d"checkbox" class\x3d"dojoxGridHiddenFocus" dojoAttachPoint\x3d"hiddenFocusNode" aria-hidden\x3d"true" /\x3e\n\t\x3cinput type\x3d"checkbox" class\x3d"dojoxGridHiddenFocus" aria-hidden\x3d"true" /\x3e\n\t\x3cdiv class\x3d"dojoxGridScrollbox" dojoAttachPoint\x3d"scrollboxNode" role\x3d"presentation"\x3e\n\t\t\x3cdiv class\x3d"dojoxGridContent" dojoAttachPoint\x3d"contentNode" hidefocus\x3d"hidefocus" role\x3d"presentation"\x3e\x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dojox/grid/resources/_Grid.html":'\x3cdiv hidefocus\x3d"hidefocus" role\x3d"grid" dojoAttachEvent\x3d"onmouseout:_mouseOut"\x3e\n\t\x3cdiv class\x3d"dojoxGridMasterHeader" dojoAttachPoint\x3d"viewsHeaderNode" role\x3d"presentation"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"dojoxGridMasterView" dojoAttachPoint\x3d"viewsNode" role\x3d"presentation"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"dojoxGridMasterMessages" style\x3d"display: none;" dojoAttachPoint\x3d"messagesNode"\x3e\x3c/div\x3e\n\t\x3cspan dojoAttachPoint\x3d"lastFocusNode" tabindex\x3d"0"\x3e\x3c/span\x3e\n\x3c/div\x3e\n',
"*now":function(u){u(['dojo/i18n!*preload*dojo/nls/dojo*["ar","ca","cs","da","de","el","en-gb","en-us","es-es","fi-fi","fr-fr","he-il","hu","it-it","ja-jp","ko-kr","nl-nl","nb","pl","pt-br","pt-pt","ru","sk","sl","sv","th","tr","zh-tw","zh-cn","ROOT"]'])}}});(function(){var u=this.require;u({cache:{}});!u.async&&u(["dojo"]);u.boot&&u.apply(null,u.boot)})();
//# sourceMappingURL=dojo.js.map