/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

//>>built
(function(_1,_2){var _3=function(){},_4=function(it){for(var p in it){return 0;}return 1;},_5={}.toString,_6=function(it){return _5.call(it)=="[object Function]";},_7=function(it){return _5.call(it)=="[object String]";},_8=function(it){return _5.call(it)=="[object Array]";},_9=function(_a,_b){if(_a){for(var i=0;i<_a.length;){_b(_a[i++]);}}},_c=function(_d,_e){for(var p in _e){_d[p]=_e[p];}return _d;},_f=function(_10,_11){return _c(new Error(_10),{src:"dojoLoader",info:_11});},_12=1,uid=function(){return "_"+_12++;},req=function(_13,_14,_15){return _16(_13,_14,_15,0,req);},_17=this,doc=_17.document,_18=doc&&doc.createElement("DiV"),has=req.has=function(_19){return _6(_1a[_19])?(_1a[_19]=_1a[_19](_17,doc,_18)):_1a[_19];},_1a=has.cache=_2.hasCache;has.add=function(_1b,_1c,now,_1d){(_1a[_1b]===undefined||_1d)&&(_1a[_1b]=_1c);return now&&has(_1b);};0&&has.add("host-node",_1.has&&"host-node" in _1.has?_1.has["host-node"]:(typeof process=="object"&&process.versions&&process.versions.node&&process.versions.v8));if(0){require("./_base/configNode.js").config(_2);_2.loaderPatch.nodeRequire=require;}0&&has.add("host-rhino",_1.has&&"host-rhino" in _1.has?_1.has["host-rhino"]:(typeof load=="function"&&(typeof Packages=="function"||typeof Packages=="object")));if(0){for(var _1e=_1.baseUrl||".",arg,_1f=this.arguments,i=0;i<_1f.length;){arg=(_1f[i++]+"").split("=");if(arg[0]=="baseUrl"){_1e=arg[1];break;}}load(_1e+"/_base/configRhino.js");rhinoDojoConfig(_2,_1e,_1f);}for(var p in _1.has){has.add(p,_1.has[p],0,1);}var _20=1,_21=2,_22=3,_23=4,_24=5;if(0){_20="requested";_21="arrived";_22="not-a-module";_23="executing";_24="executed";}var _25=0,_26="sync",xd="xd",_27=[],_28=0,_29=_3,_2a=_3,_2b;if(1){req.isXdUrl=_3;req.initSyncLoader=function(_2c,_2d,_2e){if(!_28){_28=_2c;_29=_2d;_2a=_2e;}return {sync:_26,requested:_20,arrived:_21,nonmodule:_22,executing:_23,executed:_24,syncExecStack:_27,modules:_2f,execQ:_30,getModule:_31,injectModule:_32,setArrived:_33,signal:_34,finishExec:_35,execModule:_36,dojoRequirePlugin:_28,getLegacyMode:function(){return _25;},guardCheckComplete:_37};};if(1){var _38=location.protocol,_39=location.host;req.isXdUrl=function(url){if(/^\./.test(url)){return false;}if(/^\/\//.test(url)){return true;}var _3a=url.match(/^([^\/\:]+\:)\/+([^\/]+)/);return _3a&&(_3a[1]!=_38||(_39&&_3a[2]!=_39));};1||has.add("dojo-xhr-factory",1);has.add("dojo-force-activex-xhr",1&&!doc.addEventListener&&window.location.protocol=="file:");has.add("native-xhr",typeof XMLHttpRequest!="undefined");if(has("native-xhr")&&!has("dojo-force-activex-xhr")){_2b=function(){return new XMLHttpRequest();};}else{for(var _3b=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],_3c,i=0;i<3;){try{_3c=_3b[i++];if(new ActiveXObject(_3c)){break;}}catch(e){}}_2b=function(){return new ActiveXObject(_3c);};}req.getXhr=_2b;has.add("dojo-gettext-api",1);req.getText=function(url,_3d,_3e){var xhr=_2b();xhr.open("GET",_3f(url),false);xhr.send(null);if(xhr.status==200||(!location.host&&!xhr.status)){if(_3e){_3e(xhr.responseText,_3d);}}else{throw _f("xhrFailed",xhr.status);}return xhr.responseText;};}}else{req.async=1;}var _40=new Function("return eval(arguments[0]);");req.eval=function(_41,_42){return _40(_41+"\r\n////@ sourceURL="+_42);};var _43={},_44="error",_34=req.signal=function(_45,_46){var _47=_43[_45];_9(_47&&_47.slice(0),function(_48){_48.apply(null,_8(_46)?_46:[_46]);});},on=req.on=function(_49,_4a){var _4b=_43[_49]||(_43[_49]=[]);_4b.push(_4a);return {remove:function(){for(var i=0;i<_4b.length;i++){if(_4b[i]===_4a){_4b.splice(i,1);return;}}}};};var _4c=[],_4d={},_4e=[],_4f={},map=req.map={},_50=[],_2f={},_51="",_52={},_53="url:",_54={},_55={};if(1){var _56=function(_57){var p,_58,_59,now,m;for(p in _54){_58=_54[p];_59=p.match(/^url\:(.+)/);if(_59){_52[_53+_5a(_59[1],_57)]=_58;}else{if(p=="*now"){now=_58;}else{if(p!="*noref"){m=_5b(p,_57);_52[m.mid]=_52[_53+m.url]=_58;}}}}if(now){now(_5c(_57));}_54={};},_5d=function(s){return s.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(c){return "\\"+c;});},_5e=function(map,_5f){_5f.splice(0,_5f.length);for(var p in map){_5f.push([p,map[p],new RegExp("^"+_5d(p)+"(/|$)"),p.length]);}_5f.sort(function(lhs,rhs){return rhs[3]-lhs[3];});return _5f;},_60=function(_61){var _62=_61.name;if(!_62){_62=_61;_61={name:_62};}_61=_c({main:"main"},_61);_61.location=_61.location?_61.location:_62;if(_61.packageMap){map[_62]=_61.packageMap;}if(!_61.main.indexOf("./")){_61.main=_61.main.substring(2);}_4f[_62]=_61;},_63=function(_64,_65,_66){for(var p in _64){if(p=="waitSeconds"){req.waitms=(_64[p]||0)*1000;}if(p=="cacheBust"){_51=_64[p]?(_7(_64[p])?_64[p]:(new Date()).getTime()+""):"";}if(p=="baseUrl"||p=="combo"){req[p]=_64[p];}if(1&&p=="async"){var _67=_64[p];req.legacyMode=_25=(_7(_67)&&/sync|legacyAsync/.test(_67)?_67:(!_67?_26:false));req.async=!_25;}if(_64[p]!==_1a){req.rawConfig[p]=_64[p];p!="has"&&has.add("config-"+p,_64[p],0,_65);}}if(!req.baseUrl){req.baseUrl="./";}if(!/\/$/.test(req.baseUrl)){req.baseUrl+="/";}for(p in _64.has){has.add(p,_64.has[p],0,_65);}_9(_64.packages,_60);for(_1e in _64.packagePaths){_9(_64.packagePaths[_1e],function(_68){var _69=_1e+"/"+_68;if(_7(_68)){_68={name:_68};}_68.location=_69;_60(_68);});}_5e(_c(map,_64.map),_50);_9(_50,function(_6a){_6a[1]=_5e(_6a[1],[]);if(_6a[0]=="*"){_50.star=_6a[1];}});_5e(_c(_4d,_64.paths),_4e);_9(_64.aliases,function(_6b){if(_7(_6b[0])){_6b[0]=new RegExp("^"+_5d(_6b[0])+"$");}_4c.push(_6b);});for(p in _64.config){var _6c=_31(p,_66);_6c.config=_c(_6c.config||{},_64.config[p]);}if(_64.cache){_56();_54=_64.cache;if(_64.cache["*noref"]){_56();}}_34("config",[_64,req.rawConfig]);};if(has("dojo-cdn")||1){var _6d=doc.getElementsByTagName("script"),i=0,_6e,_6f,src,_70;while(i<_6d.length){_6e=_6d[i++];if((src=_6e.getAttribute("src"))&&(_70=src.match(/(((.*)\/)|^)dojo\.js(\W|$)/i))){_6f=_70[3]||"";_2.baseUrl=_2.baseUrl||_6f;src=(_6e.getAttribute("data-dojo-config")||_6e.getAttribute("djConfig"));if(src){_55=req.eval("({ "+src+" })","data-dojo-config");}if(0){var _71=_6e.getAttribute("data-main");if(_71){_55.deps=_55.deps||[_71];}}break;}}}if(0){try{if(window.parent!=window&&window.parent.require){var doh=window.parent.require("doh");doh&&_c(_55,doh.testConfig);}}catch(e){}}req.rawConfig={};_63(_2,1);if(has("dojo-cdn")){_4f.dojo.location=_6f;if(_6f){_6f+="/";}_4f.dijit.location=_6f+"../dijit/";_4f.dojox.location=_6f+"../dojox/";}_63(_1,1);_63(_55,1);}else{_4d=_2.paths;_4e=_2.pathsMapProg;_4f=_2.packs;_4c=_2.aliases;_50=_2.mapProgs;_2f=_2.modules;_52=_2.cache;_51=_2.cacheBust;req.rawConfig=_2;}if(0){req.combo=req.combo||{add:_3};var _72=0,_73=[],_74=null;}var _75=function(_76){_37(function(){_9(_76.deps,_32);if(0&&_72&&!_74){_74=setTimeout(function(){_72=0;_74=null;req.combo.done(function(_77,url){var _78=function(){_79(0,_77);_7a();};_73.push(_77);_7b=_77;req.injectUrl(url,_78,_77);_7b=0;},req);},0);}});},_16=function(a1,a2,a3,_7c,_7d){var _7e,_7f;if(_7(a1)){_7e=_31(a1,_7c,true);if(_7e&&_7e.executed){return _7e.result;}throw _f("undefinedModule",a1);}if(!_8(a1)){_63(a1,0,_7c);a1=a2;a2=a3;}if(_8(a1)){if(!a1.length){a2&&a2();}else{_7f="require*"+uid();for(var mid,_80=[],i=0;i<a1.length;){mid=a1[i++];_80.push(_31(mid,_7c));}_7e=_c(_81("",_7f,0,""),{injected:_21,deps:_80,def:a2||_3,require:_7c?_7c.require:req,gc:1});_2f[_7e.mid]=_7e;_75(_7e);var _82=_83&&_25!=_26;_37(function(){_36(_7e,_82);});if(!_7e.executed){_30.push(_7e);}_7a();}}return _7d;},_5c=function(_84){if(!_84){return req;}var _85=_84.require;if(!_85){_85=function(a1,a2,a3){return _16(a1,a2,a3,_84,_85);};_84.require=_c(_85,req);_85.module=_84;_85.toUrl=function(_86){return _5a(_86,_84);};_85.toAbsMid=function(mid){return _b3(mid,_84);};if(0){_85.undef=function(mid){req.undef(mid,_84);};}if(1){_85.syncLoadNls=function(mid){var _87=_5b(mid,_84),_88=_2f[_87.mid];if(!_88||!_88.executed){_89=_52[_87.mid]||_52[_53+_87.url];if(_89){_8a(_89);_88=_2f[_87.mid];}}return _88&&_88.executed&&_88.result;};}}return _85;},_30=[],_8b=[],_8c={},_8d=function(_8e){_8e.injected=_20;_8c[_8e.mid]=1;if(_8e.url){_8c[_8e.url]=_8e.pack||1;}_8f();},_33=function(_90){_90.injected=_21;delete _8c[_90.mid];if(_90.url){delete _8c[_90.url];}if(_4(_8c)){_91();1&&_25==xd&&(_25=_26);}},_92=req.idle=function(){return !_8b.length&&_4(_8c)&&!_30.length&&!_83;},_93=function(_94,map){if(map){for(var i=0;i<map.length;i++){if(map[i][2].test(_94)){return map[i];}}}return 0;},_95=function(_96){var _97=[],_98,_99;_96=_96.replace(/\\/g,"/").split("/");while(_96.length){_98=_96.shift();if(_98==".."&&_97.length&&_99!=".."){_97.pop();_99=_97[_97.length-1];}else{if(_98!="."){_97.push(_99=_98);}}}return _97.join("/");},_81=function(pid,mid,_9a,url){if(1){var xd=req.isXdUrl(url);return {pid:pid,mid:mid,pack:_9a,url:url,executed:0,def:0,isXd:xd,isAmd:!!(xd||(_4f[pid]&&_4f[pid].isAmd))};}else{return {pid:pid,mid:mid,pack:_9a,url:url,executed:0,def:0};}},_9b=function(mid,_9c,_9d,_9e,_9f,_a0,_a1,_a2){var pid,_a3,_a4,_a5,_a6,url,_a7,_a8,_a9;_a9=mid;_a8=/^\./.test(mid);if(/(^\/)|(\:)|(\.js$)/.test(mid)||(_a8&&!_9c)){return _81(0,mid,0,mid);}else{mid=_95(_a8?(_9c.mid+"/../"+mid):mid);if(/^\./.test(mid)){throw _f("irrationalPath",mid);}if(_9c){_a6=_93(_9c.mid,_a0);}_a6=_a6||_a0.star;_a6=_a6&&_93(mid,_a6[1]);if(_a6){mid=_a6[1]+mid.substring(_a6[3]);}_70=mid.match(/^([^\/]+)(\/(.+))?$/);pid=_70?_70[1]:"";if((_a3=_9d[pid])){mid=pid+"/"+(_a4=(_70[3]||_a3.main));}else{pid="";}var _aa=0,_ab=0;_9(_4c,function(_ac){var _ad=mid.match(_ac[0]);if(_ad&&_ad.length>_aa){_ab=_6(_ac[1])?mid.replace(_ac[0],_ac[1]):_ac[1];}});if(_ab){return _9b(_ab,0,_9d,_9e,_9f,_a0,_a1,_a2);}_a7=_9e[mid];if(_a7){return _a2?_81(_a7.pid,_a7.mid,_a7.pack,_a7.url):_9e[mid];}}_a6=_93(mid,_a1);if(_a6){url=_a6[1]+mid.substring(_a6[3]);}else{if(pid){url=_a3.location+"/"+_a4;}else{if(has("config-tlmSiblingOfDojo")){url="../"+mid;}else{url=mid;}}}if(!(/(^\/)|(\:)/.test(url))){url=_9f+url;}url+=".js";return _81(pid,mid,_a3,_95(url));},_5b=function(mid,_ae){return _9b(mid,_ae,_4f,_2f,req.baseUrl,_50,_4e);},_af=function(_b0,_b1,_b2){return _b0.normalize?_b0.normalize(_b1,function(mid){return _b3(mid,_b2);}):_b3(_b1,_b2);},_b4=0,_31=function(mid,_b5,_b6){var _b7,_b8,_b9,_ba;_b7=mid.match(/^(.+?)\!(.*)$/);if(_b7){_b8=_31(_b7[1],_b5,_b6);if(1&&_25==_26&&!_b8.executed){_32(_b8);if(_b8.injected===_21&&!_b8.executed){_37(function(){_36(_b8);});}if(_b8.executed){_bb(_b8);}else{_30.unshift(_b8);}}if(_b8.executed===_24&&!_b8.load){_bb(_b8);}if(_b8.load){_b9=_af(_b8,_b7[2],_b5);mid=(_b8.mid+"!"+(_b8.dynamic?++_b4+"!":"")+_b9);}else{_b9=_b7[2];mid=_b8.mid+"!"+(++_b4)+"!waitingForPlugin";}_ba={plugin:_b8,mid:mid,req:_5c(_b5),prid:_b9};}else{_ba=_5b(mid,_b5);}return _2f[_ba.mid]||(!_b6&&(_2f[_ba.mid]=_ba));},_b3=req.toAbsMid=function(mid,_bc){return _5b(mid,_bc).mid;},_5a=req.toUrl=function(_bd,_be){var _bf=_5b(_bd+"/x",_be),url=_bf.url;return _3f(_bf.pid===0?_bd:url.substring(0,url.length-5));},_c0={injected:_21,executed:_24,def:_22,result:_22},_c1=function(mid){return _2f[mid]=_c({mid:mid},_c0);},_c2=_c1("require"),_c3=_c1("exports"),_c4=_c1("module"),_c5=function(_c6,_c7){req.trace("loader-run-factory",[_c6.mid]);var _c8=_c6.def,_c9;1&&_27.unshift(_c6);if(has("config-dojo-loader-catches")){try{_c9=_6(_c8)?_c8.apply(null,_c7):_c8;}catch(e){_34(_44,_c6.result=_f("factoryThrew",[_c6,e]));}}else{_c9=_6(_c8)?_c8.apply(null,_c7):_c8;}_c6.result=_c9===undefined&&_c6.cjs?_c6.cjs.exports:_c9;1&&_27.shift(_c6);},_ca={},_cb=0,_bb=function(_cc){var _cd=_cc.result;_cc.dynamic=_cd.dynamic;_cc.normalize=_cd.normalize;_cc.load=_cd.load;return _cc;},_ce=function(_cf){var map={};_9(_cf.loadQ,function(_d0){var _d1=_af(_cf,_d0.prid,_d0.req.module),mid=_cf.dynamic?_d0.mid.replace(/waitingForPlugin$/,_d1):(_cf.mid+"!"+_d1),_d2=_c(_c({},_d0),{mid:mid,prid:_d1,injected:0});if(!_2f[mid]){_e4(_2f[mid]=_d2);}map[_d0.mid]=_2f[mid];_33(_d0);delete _2f[_d0.mid];});_cf.loadQ=0;var _d3=function(_d4){for(var _d5,_d6=_d4.deps||[],i=0;i<_d6.length;i++){_d5=map[_d6[i].mid];if(_d5){_d6[i]=_d5;}}};for(var p in _2f){_d3(_2f[p]);}_9(_30,_d3);},_35=function(_d7){req.trace("loader-finish-exec",[_d7.mid]);_d7.executed=_24;_d7.defOrder=_cb++;1&&_9(_d7.provides,function(cb){cb();});if(_d7.loadQ){_bb(_d7);_ce(_d7);}for(i=0;i<_30.length;){if(_30[i]===_d7){_30.splice(i,1);}else{i++;}}if(/^require\*/.test(_d7.mid)){delete _2f[_d7.mid];}},_d8=[],_36=function(_d9,_da){if(_d9.executed===_23){req.trace("loader-circular-dependency",[_d8.concat(_d9.mid).join("->")]);return (!_d9.def||_da)?_ca:(_d9.cjs&&_d9.cjs.exports);}if(!_d9.executed){if(!_d9.def){return _ca;}var mid=_d9.mid,_db=_d9.deps||[],arg,_dc,_dd=[],i=0;if(0){_d8.push(mid);req.trace("loader-exec-module",["exec",_d8.length,mid]);}_d9.executed=_23;while(i<_db.length){arg=_db[i++];_dc=((arg===_c2)?_5c(_d9):((arg===_c3)?_d9.cjs.exports:((arg===_c4)?_d9.cjs:_36(arg,_da))));if(_dc===_ca){_d9.executed=0;req.trace("loader-exec-module",["abort",mid]);0&&_d8.pop();return _ca;}_dd.push(_dc);}_c5(_d9,_dd);_35(_d9);0&&_d8.pop();}return _d9.result;},_83=0,_37=function(_de){try{_83++;_de();}finally{_83--;}if(_92()){_34("idle",[]);}},_7a=function(){if(_83){return;}_37(function(){_29();for(var _df,_e0,i=0;i<_30.length;){_df=_cb;_e0=_30[i];_36(_e0);if(_df!=_cb){_29();i=0;}else{i++;}}});};if(0){req.undef=function(_e1,_e2){var _e3=_31(_e1,_e2);_33(_e3);delete _2f[_e3.mid];};}if(1){if(has("dojo-loader-eval-hint-url")===undefined){has.add("dojo-loader-eval-hint-url",1);}var _3f=function(url){url+="";return url+(_51?((/\?/.test(url)?"&":"?")+_51):"");},_e4=function(_e5){var _e6=_e5.plugin;if(_e6.executed===_24&&!_e6.load){_bb(_e6);}var _e7=function(def){_e5.result=def;_33(_e5);_35(_e5);_7a();};if(_e6.load){_e6.load(_e5.prid,_e5.req,_e7);}else{if(_e6.loadQ){_e6.loadQ.push(_e5);}else{_e6.loadQ=[_e5];_30.unshift(_e6);_32(_e6);}}},_89=0,_7b=0,_e8=0,_8a=function(_e9,_ea){if(has("config-stripStrict")){_e9=_e9.replace(/"use strict"/g,"");}_e8=1;if(has("config-dojo-loader-catches")){try{if(_e9===_89){_89.call(null);}else{req.eval(_e9,has("dojo-loader-eval-hint-url")?_ea.url:_ea.mid);}}catch(e){_34(_44,_f("evalModuleThrew",_ea));}}else{if(_e9===_89){_89.call(null);}else{req.eval(_e9,has("dojo-loader-eval-hint-url")?_ea.url:_ea.mid);}}_e8=0;},_32=function(_eb){var mid=_eb.mid,url=_eb.url;if(_eb.executed||_eb.injected||_8c[mid]||(_eb.url&&((_eb.pack&&_8c[_eb.url]===_eb.pack)||_8c[_eb.url]==1))){return;}_8d(_eb);if(0){var _ec=0;if(_eb.plugin&&_eb.plugin.isCombo){req.combo.add(_eb.plugin.mid,_eb.prid,0,req);_ec=1;}else{if(!_eb.plugin){_ec=req.combo.add(0,_eb.mid,_eb.url,req);}}if(_ec){_72=1;return;}}if(_eb.plugin){_e4(_eb);return;}var _ed=function(){_79(_eb);if(_eb.injected!==_21){_33(_eb);_c(_eb,_c0);req.trace("loader-define-nonmodule",[_eb.url]);}if(1&&_25){!_27.length&&_7a();}else{_7a();}};_89=_52[mid]||_52[_53+_eb.url];if(_89){req.trace("loader-inject",["cache",_eb.mid,url]);_8a(_89,_eb);_ed();return;}if(1&&_25){if(_eb.isXd){_25==_26&&(_25=xd);}else{if(_eb.isAmd&&_25!=_26){}else{var _ee=function(_ef){if(_25==_26){_27.unshift(_eb);_8a(_ef,_eb);_27.shift();_79(_eb);if(!_eb.cjs){_33(_eb);_35(_eb);}if(_eb.finish){var _f0=mid+"*finish",_f1=_eb.finish;delete _eb.finish;def(_f0,["dojo",("dojo/require!"+_f1.join(",")).replace(/\./g,"/")],function(_f2){_9(_f1,function(mid){_f2.require(mid);});});_30.unshift(_31(_f0));}_ed();}else{_ef=_2a(_eb,_ef);if(_ef){_8a(_ef,_eb);_ed();}else{_7b=_eb;req.injectUrl(_3f(url),_ed,_eb);_7b=0;}}};req.trace("loader-inject",["xhr",_eb.mid,url,_25!=_26]);if(has("config-dojo-loader-catches")){try{req.getText(url,_25!=_26,_ee);}catch(e){_34(_44,_f("xhrInjectFailed",[_eb,e]));}}else{req.getText(url,_25!=_26,_ee);}return;}}}req.trace("loader-inject",["script",_eb.mid,url]);_7b=_eb;req.injectUrl(_3f(url),_ed,_eb);_7b=0;},_f3=function(_f4,_f5,def){req.trace("loader-define-module",[_f4.mid,_f5]);if(0&&_f4.plugin&&_f4.plugin.isCombo){_f4.result=_6(def)?def():def;_33(_f4);_35(_f4);return _f4;}var mid=_f4.mid;if(_f4.injected===_21){_34(_44,_f("multipleDefine",_f4));return _f4;}_c(_f4,{deps:_f5,def:def,cjs:{id:_f4.mid,uri:_f4.url,exports:(_f4.result={}),setExports:function(_f6){_f4.cjs.exports=_f6;},config:function(){return _f4.config;}}});for(var i=0;i<_f5.length;i++){_f5[i]=_31(_f5[i],_f4);}if(1&&_25&&!_8c[mid]){_75(_f4);_30.push(_f4);_7a();}_33(_f4);if(!_6(def)&&!_f5.length){_f4.result=def;_35(_f4);}return _f4;},_79=function(_f7,_f8){var _f9=[],_fa,_fb;while(_8b.length){_fb=_8b.shift();_f8&&(_fb[0]=_f8.shift());_fa=(_fb[0]&&_31(_fb[0]))||_f7;_f9.push([_fa,_fb[1],_fb[2]]);}_56(_f7);_9(_f9,function(_fc){_75(_f3.apply(null,_fc));});};}var _fd=0,_91=_3,_8f=_3;if(1){_91=function(){_fd&&clearTimeout(_fd);_fd=0;},_8f=function(){_91();if(req.waitms){_fd=window.setTimeout(function(){_91();_34(_44,_f("timeout",_8c));},req.waitms);}};}if(1){has.add("ie-event-behavior",!!doc.attachEvent&&(typeof opera==="undefined"||opera.toString()!="[object Opera]"));}if(1&&(1||1)){var _fe=function(_ff,_100,_101,_102){if(!has("ie-event-behavior")){_ff.addEventListener(_100,_102,false);return function(){_ff.removeEventListener(_100,_102,false);};}else{_ff.attachEvent(_101,_102);return function(){_ff.detachEvent(_101,_102);};}},_103=_fe(window,"load","onload",function(){req.pageLoaded=1;doc.readyState!="complete"&&(doc.readyState="complete");_103();});if(1){var _104=doc.getElementsByTagName("script")[0],_105=_104.parentNode;req.injectUrl=function(url,_106,_107){var node=_107.node=doc.createElement("script"),_108=function(e){e=e||window.event;var node=e.target||e.srcElement;if(e.type==="load"||/complete|loaded/.test(node.readyState)){_109();_10a();_106&&_106();}},_109=_fe(node,"load","onreadystatechange",_108),_10a=_fe(node,"error","onerror",function(e){_109();_10a();_34(_44,_f("scriptError",[url,e]));});node.type="text/javascript";node.charset="utf-8";node.src=url;_105.insertBefore(node,_104);return node;};}}if(1){req.log=function(){try{for(var i=0;i<arguments.length;i++){}}catch(e){}};}else{req.log=_3;}if(0){var _10b=req.trace=function(_10c,args){if(_10b.on&&_10b.group[_10c]){_34("trace",[_10c,args]);for(var arg,dump=[],text="trace:"+_10c+(args.length?(":"+args[0]):""),i=1;i<args.length;){arg=args[i++];if(_7(arg)){text+=", "+arg;}else{dump.push(arg);}}req.log(text);dump.length&&dump.push(".");req.log.apply(req,dump);}};_c(_10b,{on:1,group:{},set:function(_10d,_10e){if(_7(_10d)){_10b.group[_10d]=_10e;}else{_c(_10b.group,_10d);}}});_10b.set(_c(_c(_c({},_2.trace),_1.trace),_55.trace));on("config",function(_10f){_10f.trace&&_10b.set(_10f.trace);});}else{req.trace=_3;}var def=function(mid,_110,_111){var _112=arguments.length,_113=["require","exports","module"],args=[0,mid,_110];if(_112==1){args=[0,(_6(mid)?_113:[]),mid];}else{if(_112==2&&_7(mid)){args=[mid,(_6(_110)?_113:[]),_110];}else{if(_112==3){args=[mid,_110,_111];}}}if(0&&args[1]===_113){args[2].toString().replace(/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,"").replace(/require\(["']([\w\!\-_\.\/]+)["']\)/g,function(_114,dep){args[1].push(dep);});}req.trace("loader-define",args.slice(0,2));var _115=args[0]&&_31(args[0]),_116;if(_115&&!_8c[_115.mid]){_75(_f3(_115,args[1],args[2]));}else{if(!has("ie-event-behavior")||!1||_e8){_8b.push(args);}else{_115=_115||_7b;if(!_115){for(mid in _8c){_116=_2f[mid];if(_116&&_116.node&&_116.node.readyState==="interactive"){_115=_116;break;}}if(0&&!_115){for(var i=0;i<_73.length;i++){_115=_73[i];if(_115.node&&_115.node.readyState==="interactive"){break;}_115=0;}}}if(0&&_8(_115)){_75(_f3(_31(_115.shift()),args[1],args[2]));if(!_115.length){_73.splice(i,1);}}else{if(_115){_56(_115);_75(_f3(_115,args[1],args[2]));}else{_34(_44,_f("ieDefineFailed",args[0]));}}_7a();}}};def.amd={vendor:"dojotoolkit.org"};if(0){req.def=def;}_c(_c(req,_2.loaderPatch),_1.loaderPatch);on(_44,function(arg){try{console.error(arg);if(arg instanceof Error){for(var p in arg){}}}catch(e){}});_c(req,{uid:uid,cache:_52,packs:_4f});if(0){_c(req,{paths:_4d,aliases:_4c,modules:_2f,legacyMode:_25,execQ:_30,defQ:_8b,waiting:_8c,packs:_4f,mapProgs:_50,pathsMapProg:_4e,listenerQueues:_43,computeMapProg:_5e,runMapProg:_93,compactPath:_95,getModuleInfo:_9b});}if(_17.define){if(1){_34(_44,_f("defineAlreadyDefined",0));}return;}else{_17.define=def;_17.require=req;if(0){require=req;}}if(0&&req.combo&&req.combo.plugins){var _117=req.combo.plugins,_118;for(_118 in _117){_c(_c(_31(_118),_117[_118]),{isCombo:1,executed:"executed",load:1});}}if(1){var _119=_55.deps||_1.deps||_2.deps,_11a=_55.callback||_1.callback||_2.callback;req.boot=(_119||_11a)?[_119||[],_11a]:0;}if(!1){!req.async&&req(["dojo"]);req.boot&&req.apply(null,req.boot);}})(this.dojoConfig||this.djConfig||this.require||{},{async:0,hasCache:{"config-selectorEngine":"acme","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-loader":1,dom:1,"host-browser":1},packages:[{location:"../dojox",name:"dojox"},{location:"../dijit",name:"dijit"},{location:".",name:"dojo"},{location:"../doh",name:"doh"},{location:"../todo",name:"todo"}]});require({cache:{"dojo/dom-geometry":function(){define(["./sniff","./_base/window","./dom","./dom-style"],function(has,win,dom,_11b){var geom={};geom.boxModel="content-box";if(has("ie")){geom.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";}geom.getPadExtents=function getPadExtents(node,_11c){node=dom.byId(node);var s=_11c||_11b.getComputedStyle(node),px=_11b.toPixelValue,l=px(node,s.paddingLeft),t=px(node,s.paddingTop),r=px(node,s.paddingRight),b=px(node,s.paddingBottom);return {l:l,t:t,r:r,b:b,w:l+r,h:t+b};};var none="none";geom.getBorderExtents=function getBorderExtents(node,_11d){node=dom.byId(node);var px=_11b.toPixelValue,s=_11d||_11b.getComputedStyle(node),l=s.borderLeftStyle!=none?px(node,s.borderLeftWidth):0,t=s.borderTopStyle!=none?px(node,s.borderTopWidth):0,r=s.borderRightStyle!=none?px(node,s.borderRightWidth):0,b=s.borderBottomStyle!=none?px(node,s.borderBottomWidth):0;return {l:l,t:t,r:r,b:b,w:l+r,h:t+b};};geom.getPadBorderExtents=function getPadBorderExtents(node,_11e){node=dom.byId(node);var s=_11e||_11b.getComputedStyle(node),p=geom.getPadExtents(node,s),b=geom.getBorderExtents(node,s);return {l:p.l+b.l,t:p.t+b.t,r:p.r+b.r,b:p.b+b.b,w:p.w+b.w,h:p.h+b.h};};geom.getMarginExtents=function getMarginExtents(node,_11f){node=dom.byId(node);var s=_11f||_11b.getComputedStyle(node),px=_11b.toPixelValue,l=px(node,s.marginLeft),t=px(node,s.marginTop),r=px(node,s.marginRight),b=px(node,s.marginBottom);return {l:l,t:t,r:r,b:b,w:l+r,h:t+b};};geom.getMarginBox=function getMarginBox(node,_120){node=dom.byId(node);var s=_120||_11b.getComputedStyle(node),me=geom.getMarginExtents(node,s),l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode,px=_11b.toPixelValue,pcs;if(has("mozilla")){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl;t=st;}else{if(p&&p.style){pcs=_11b.getComputedStyle(p);if(pcs.overflow!="visible"){l+=pcs.borderLeftStyle!=none?px(node,pcs.borderLeftWidth):0;t+=pcs.borderTopStyle!=none?px(node,pcs.borderTopWidth):0;}}}}else{if(has("opera")||(has("ie")==8&&!has("quirks"))){if(p){pcs=_11b.getComputedStyle(p);l-=pcs.borderLeftStyle!=none?px(node,pcs.borderLeftWidth):0;t-=pcs.borderTopStyle!=none?px(node,pcs.borderTopWidth):0;}}}return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};};geom.getContentBox=function getContentBox(node,_121){node=dom.byId(node);var s=_121||_11b.getComputedStyle(node),w=node.clientWidth,h,pe=geom.getPadExtents(node,s),be=geom.getBorderExtents(node,s);if(!w){w=node.offsetWidth;h=node.offsetHeight;}else{h=node.clientHeight;be.w=be.h=0;}if(has("opera")){pe.l+=be.l;pe.t+=be.t;}return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};};function _122(node,l,t,w,h,u){u=u||"px";var s=node.style;if(!isNaN(l)){s.left=l+u;}if(!isNaN(t)){s.top=t+u;}if(w>=0){s.width=w+u;}if(h>=0){s.height=h+u;}};function _123(node){return node.tagName.toLowerCase()=="button"||node.tagName.toLowerCase()=="input"&&(node.getAttribute("type")||"").toLowerCase()=="button";};function _124(node){return geom.boxModel=="border-box"||node.tagName.toLowerCase()=="table"||_123(node);};geom.setContentSize=function setContentSize(node,box,_125){node=dom.byId(node);var w=box.w,h=box.h;if(_124(node)){var pb=geom.getPadBorderExtents(node,_125);if(w>=0){w+=pb.w;}if(h>=0){h+=pb.h;}}_122(node,NaN,NaN,w,h);};var _126={l:0,t:0,w:0,h:0};geom.setMarginBox=function setMarginBox(node,box,_127){node=dom.byId(node);var s=_127||_11b.getComputedStyle(node),w=box.w,h=box.h,pb=_124(node)?_126:geom.getPadBorderExtents(node,s),mb=geom.getMarginExtents(node,s);if(has("webkit")){if(_123(node)){var ns=node.style;if(w>=0&&!ns.width){ns.width="4px";}if(h>=0&&!ns.height){ns.height="4px";}}}if(w>=0){w=Math.max(w-pb.w-mb.w,0);}if(h>=0){h=Math.max(h-pb.h-mb.h,0);}_122(node,box.l,box.t,w,h);};geom.isBodyLtr=function isBodyLtr(doc){doc=doc||win.doc;return (win.body(doc).dir||doc.documentElement.dir||"ltr").toLowerCase()=="ltr";};geom.docScroll=function docScroll(doc){doc=doc||win.doc;var node=win.doc.parentWindow||win.doc.defaultView;return "pageXOffset" in node?{x:node.pageXOffset,y:node.pageYOffset}:(node=has("quirks")?win.body(doc):doc.documentElement)&&{x:geom.fixIeBiDiScrollLeft(node.scrollLeft||0,doc),y:node.scrollTop||0};};if(has("ie")){geom.getIeDocumentElementOffset=function getIeDocumentElementOffset(doc){doc=doc||win.doc;var de=doc.documentElement;if(has("ie")<8){var r=de.getBoundingClientRect(),l=r.left,t=r.top;if(has("ie")<7){l+=de.clientLeft;t+=de.clientTop;}return {x:l<0?0:l,y:t<0?0:t};}else{return {x:0,y:0};}};}geom.fixIeBiDiScrollLeft=function fixIeBiDiScrollLeft(_128,doc){doc=doc||win.doc;var ie=has("ie");if(ie&&!geom.isBodyLtr(doc)){var qk=has("quirks"),de=qk?win.body(doc):doc.documentElement,pwin=win.global;if(ie==6&&!qk&&pwin.frameElement&&de.scrollHeight>de.clientHeight){_128+=de.clientLeft;}return (ie<8||qk)?(_128+de.clientWidth-de.scrollWidth):-_128;}return _128;};geom.position=function(node,_129){node=dom.byId(node);var db=win.body(node.ownerDocument),ret=node.getBoundingClientRect();ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};if(has("ie")){var _12a=geom.getIeDocumentElementOffset(node.ownerDocument);ret.x-=_12a.x+(has("quirks")?db.clientLeft+db.offsetLeft:0);ret.y-=_12a.y+(has("quirks")?db.clientTop+db.offsetTop:0);}if(_129){var _12b=geom.docScroll(node.ownerDocument);ret.x+=_12b.x;ret.y+=_12b.y;}return ret;};geom.getMarginSize=function getMarginSize(node,_12c){node=dom.byId(node);var me=geom.getMarginExtents(node,_12c||_11b.getComputedStyle(node));var size=node.getBoundingClientRect();return {w:(size.right-size.left)+me.w,h:(size.bottom-size.top)+me.h};};geom.normalizeEvent=function(_12d){if(!("layerX" in _12d)){_12d.layerX=_12d.offsetX;_12d.layerY=_12d.offsetY;}if(!has("dom-addeventlistener")){var se=_12d.target;var doc=(se&&se.ownerDocument)||document;var _12e=has("quirks")?doc.body:doc.documentElement;var _12f=geom.getIeDocumentElementOffset(doc);_12d.pageX=_12d.clientX+geom.fixIeBiDiScrollLeft(_12e.scrollLeft||0,doc)-_12f.x;_12d.pageY=_12d.clientY+(_12e.scrollTop||0)-_12f.y;}};return geom;});},"dojo/_base/html":function(){define("dojo/_base/html",["./kernel","../dom","../dom-style","../dom-attr","../dom-prop","../dom-class","../dom-construct","../dom-geometry"],function(dojo,dom,_130,attr,prop,cls,ctr,geom){dojo.byId=dom.byId;dojo.isDescendant=dom.isDescendant;dojo.setSelectable=dom.setSelectable;dojo.getAttr=attr.get;dojo.setAttr=attr.set;dojo.hasAttr=attr.has;dojo.removeAttr=attr.remove;dojo.getNodeProp=attr.getNodeProp;dojo.attr=function(node,name,_131){if(arguments.length==2){return attr[typeof name=="string"?"get":"set"](node,name);}return attr.set(node,name,_131);};dojo.hasClass=cls.contains;dojo.addClass=cls.add;dojo.removeClass=cls.remove;dojo.toggleClass=cls.toggle;dojo.replaceClass=cls.replace;dojo._toDom=dojo.toDom=ctr.toDom;dojo.place=ctr.place;dojo.create=ctr.create;dojo.empty=function(node){ctr.empty(node);};dojo._destroyElement=dojo.destroy=function(node){ctr.destroy(node);};dojo._getPadExtents=dojo.getPadExtents=geom.getPadExtents;dojo._getBorderExtents=dojo.getBorderExtents=geom.getBorderExtents;dojo._getPadBorderExtents=dojo.getPadBorderExtents=geom.getPadBorderExtents;dojo._getMarginExtents=dojo.getMarginExtents=geom.getMarginExtents;dojo._getMarginSize=dojo.getMarginSize=geom.getMarginSize;dojo._getMarginBox=dojo.getMarginBox=geom.getMarginBox;dojo.setMarginBox=geom.setMarginBox;dojo._getContentBox=dojo.getContentBox=geom.getContentBox;dojo.setContentSize=geom.setContentSize;dojo._isBodyLtr=dojo.isBodyLtr=geom.isBodyLtr;dojo._docScroll=dojo.docScroll=geom.docScroll;dojo._getIeDocumentElementOffset=dojo.getIeDocumentElementOffset=geom.getIeDocumentElementOffset;dojo._fixIeBiDiScrollLeft=dojo.fixIeBiDiScrollLeft=geom.fixIeBiDiScrollLeft;dojo.position=geom.position;dojo.marginBox=function marginBox(node,box){return box?geom.setMarginBox(node,box):geom.getMarginBox(node);};dojo.contentBox=function contentBox(node,box){return box?geom.setContentSize(node,box):geom.getContentBox(node);};dojo.coords=function(node,_132){dojo.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");node=dom.byId(node);var s=_130.getComputedStyle(node),mb=geom.getMarginBox(node,s);var abs=geom.position(node,_132);mb.x=abs.x;mb.y=abs.y;return mb;};dojo.getProp=prop.get;dojo.setProp=prop.set;dojo.prop=function(node,name,_133){if(arguments.length==2){return prop[typeof name=="string"?"get":"set"](node,name);}return prop.set(node,name,_133);};dojo.getStyle=_130.get;dojo.setStyle=_130.set;dojo.getComputedStyle=_130.getComputedStyle;dojo.__toPixelValue=dojo.toPixelValue=_130.toPixelValue;dojo.style=function(node,name,_134){switch(arguments.length){case 1:return _130.get(node);case 2:return _130[typeof name=="string"?"get":"set"](node,name);}return _130.set(node,name,_134);};return dojo;});},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],function(dojo,has,lang){var _135={},u;function _136(fn){return _135[fn]=new Function("item","index","array",fn);};function _137(some){var _138=!some;return function(a,fn,o){var i=0,l=a&&a.length||0,_139;if(l&&typeof a=="string"){a=a.split("");}if(typeof fn=="string"){fn=_135[fn]||_136(fn);}if(o){for(;i<l;++i){_139=!fn.call(o,a[i],i,a);if(some^_139){return !_139;}}}else{for(;i<l;++i){_139=!fn(a[i],i,a);if(some^_139){return !_139;}}}return _138;};};function _13a(up){var _13b=1,_13c=0,_13d=0;if(!up){_13b=_13c=_13d=-1;}return function(a,x,from,last){if(last&&_13b>0){return _13e.lastIndexOf(a,x,from);}var l=a&&a.length||0,end=up?l+_13d:_13c,i;if(from===u){i=up?_13c:l+_13d;}else{if(from<0){i=l+from;if(i<0){i=_13c;}}else{i=from>=l?l+_13d:from;}}if(l&&typeof a=="string"){a=a.split("");}for(;i!=end;i+=_13b){if(a[i]==x){return i;}}return -1;};};var _13e={every:_137(false),some:_137(true),indexOf:_13a(true),lastIndexOf:_13a(false),forEach:function(arr,_13f,_140){var i=0,l=arr&&arr.length||0;if(l&&typeof arr=="string"){arr=arr.split("");}if(typeof _13f=="string"){_13f=_135[_13f]||_136(_13f);}if(_140){for(;i<l;++i){_13f.call(_140,arr[i],i,arr);}}else{for(;i<l;++i){_13f(arr[i],i,arr);}}},map:function(arr,_141,_142,Ctr){var i=0,l=arr&&arr.length||0,out=new (Ctr||Array)(l);if(l&&typeof arr=="string"){arr=arr.split("");}if(typeof _141=="string"){_141=_135[_141]||_136(_141);}if(_142){for(;i<l;++i){out[i]=_141.call(_142,arr[i],i,arr);}}else{for(;i<l;++i){out[i]=_141(arr[i],i,arr);}}return out;},filter:function(arr,_143,_144){var i=0,l=arr&&arr.length||0,out=[],_145;if(l&&typeof arr=="string"){arr=arr.split("");}if(typeof _143=="string"){_143=_135[_143]||_136(_143);}if(_144){for(;i<l;++i){_145=arr[i];if(_143.call(_144,_145,i,arr)){out.push(_145);}}}else{for(;i<l;++i){_145=arr[i];if(_143(_145,i,arr)){out.push(_145);}}}return out;},clearCache:function(){_135={};}};1&&lang.mixin(dojo,_13e);return _13e;});},"dojo/_base/Deferred":function(){define(["./kernel","../Deferred","../promise/Promise","../errors/CancelError","../has","./lang","../when"],function(dojo,_146,_147,_148,has,lang,when){var _149=function(){};var _14a=Object.freeze||function(){};var _14b=dojo.Deferred=function(_14c){var _14d,_14e,_14f,head,_150;var _151=(this.promise=new _147());function _152(_153){if(_14e){throw new Error("This deferred has already been resolved");}_14d=_153;_14e=true;_154();};function _154(){var _155;while(!_155&&_150){var _156=_150;_150=_150.next;if((_155=(_156.progress==_149))){_14e=false;}var func=(_14f?_156.error:_156.resolved);if(has("config-useDeferredInstrumentation")){if(_14f&&_146.instrumentRejected){_146.instrumentRejected(_14d,!!func);}}if(func){try{var _157=func(_14d);if(_157&&typeof _157.then==="function"){_157.then(lang.hitch(_156.deferred,"resolve"),lang.hitch(_156.deferred,"reject"),lang.hitch(_156.deferred,"progress"));continue;}var _158=_155&&_157===undefined;if(_155&&!_158){_14f=_157 instanceof Error;}_156.deferred[_158&&_14f?"reject":"resolve"](_158?_14d:_157);}catch(e){_156.deferred.reject(e);}}else{if(_14f){_156.deferred.reject(_14d);}else{_156.deferred.resolve(_14d);}}}};this.resolve=this.callback=function(_159){this.fired=0;this.results=[_159,null];_152(_159);};this.reject=this.errback=function(_15a){_14f=true;this.fired=1;if(has("config-useDeferredInstrumentation")){if(_146.instrumentRejected){_146.instrumentRejected(_15a,!!_150);}}_152(_15a);this.results=[null,_15a];};this.progress=function(_15b){var _15c=_150;while(_15c){var _15d=_15c.progress;_15d&&_15d(_15b);_15c=_15c.next;}};this.addCallbacks=function(_15e,_15f){this.then(_15e,_15f,_149);return this;};_151.then=this.then=function(_160,_161,_162){var _163=_162==_149?this:new _14b(_151.cancel);var _164={resolved:_160,error:_161,progress:_162,deferred:_163};if(_150){head=head.next=_164;}else{_150=head=_164;}if(_14e){_154();}return _163.promise;};var _165=this;_151.cancel=this.cancel=function(){if(!_14e){var _166=_14c&&_14c(_165);if(!_14e){if(!(_166 instanceof Error)){_166=new _148(_166);}_166.log=false;_165.reject(_166);}}};_14a(_151);};lang.extend(_14b,{addCallback:function(_167){return this.addCallbacks(lang.hitch.apply(dojo,arguments));},addErrback:function(_168){return this.addCallbacks(null,lang.hitch.apply(dojo,arguments));},addBoth:function(_169){var _16a=lang.hitch.apply(dojo,arguments);return this.addCallbacks(_16a,_16a);},fired:-1});_14b.when=dojo.when=when;return _14b;});},"dojox/mvc/_atBindingExtension":function(){define("dojox/mvc/_atBindingExtension",["dojo/aspect","dojo/_base/lang","dijit/_WidgetBase","./_atBindingMixin","dijit/registry"],function(_16b,lang,_16c,_16d){lang.extend(_16c,_16d.prototype);_16b.before(_16c.prototype,"postscript",function(_16e,_16f){this._dbpostscript(_16e,_16f);});_16b.before(_16c.prototype,"startup",function(){this._startAtWatchHandles();});_16b.before(_16c.prototype,"destroy",function(){this._stopAtWatchHandles();});_16b.around(_16c.prototype,"set",function(_170){return function(name,_171){if(name==_16d.prototype.dataBindAttr){return this._setBind(_171);}else{if((_171||{}).atsignature=="dojox.mvc.at"){return this._setAtWatchHandle(name,_171);}}return _170.apply(this,lang._toArray(arguments));};});});},"todo/misc/HashSelectedConverter":function(){define({format:function(_172){return this.target.domNode.getAttribute("href").substr(1)==(_172||"/");},parse:function(_173){throw new Error();}});},"dojo/request/watch":function(){define(["./util","../errors/RequestTimeoutError","../errors/CancelError","../_base/array","../_base/window","../has!host-browser?dom-addeventlistener?:../on:"],function(util,_174,_175,_176,win,on){var _177=null,_178=[];function _179(){var now=+(new Date);for(var i=0,dfd;i<_178.length&&(dfd=_178[i]);i++){var _17a=dfd.response,_17b=_17a.options;if((dfd.isCanceled&&dfd.isCanceled())||(dfd.isValid&&!dfd.isValid(_17a))){_178.splice(i--,1);_17c._onAction&&_17c._onAction();}else{if(dfd.isReady&&dfd.isReady(_17a)){_178.splice(i--,1);dfd.handleResponse(_17a);_17c._onAction&&_17c._onAction();}else{if(dfd.startTime){if(dfd.startTime+(_17b.timeout||0)<now){_178.splice(i--,1);dfd.cancel(new _174(_17a));_17c._onAction&&_17c._onAction();}}}}}_17c._onInFlight&&_17c._onInFlight(dfd);if(!_178.length){clearInterval(_177);_177=null;}};function _17c(dfd){if(dfd.response.options.timeout){dfd.startTime=+(new Date);}if(dfd.isFulfilled()){return;}_178.push(dfd);if(!_177){_177=setInterval(_179,50);}if(dfd.response.options.sync){_179();}};_17c.cancelAll=function cancelAll(){try{_176.forEach(_178,function(dfd){try{dfd.cancel(new _175("All requests canceled."));}catch(e){}});}catch(e){}};if(win&&on&&win.doc.attachEvent){on(win.global,"unload",function(){_17c.cancelAll();});}return _17c;});},"todo/CssToggleWidget":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dijit/_WidgetBase"],function(_17d,_17e,lang,_17f,_180){return _17e(_180,{_attrToDom:function(attr,_181,_182){var _183=arguments.callee;_17d.forEach((function(){return lang.isArray(_182)?_182.slice(0):[_182];})(arguments.length>=3?_182:this.attributeMap[attr]),function(_184){_184.type!="classExists"?this.inherited("_attrToDom",lang.mixin([attr,_181,_184],{callee:_183})):_17f.toggle(this[_184.node||"domNode"],_184.className||attr,_181);},this);}});});},"dojo/uacss":function(){define("dojo/uacss",["./dom-geometry","./_base/lang","./ready","./sniff","./_base/window"],function(_185,lang,_186,has,_187){var html=_187.doc.documentElement,ie=has("ie"),_188=has("opera"),maj=Math.floor,ff=has("ff"),_189=_185.boxModel.replace(/-/,""),_18a={"dj_ie":ie,"dj_ie6":maj(ie)==6,"dj_ie7":maj(ie)==7,"dj_ie8":maj(ie)==8,"dj_ie9":maj(ie)==9,"dj_quirks":has("quirks"),"dj_iequirks":ie&&has("quirks"),"dj_opera":_188,"dj_khtml":has("khtml"),"dj_webkit":has("webkit"),"dj_safari":has("safari"),"dj_chrome":has("chrome"),"dj_gecko":has("mozilla"),"dj_ff3":maj(ff)==3};_18a["dj_"+_189]=true;var _18b="";for(var clz in _18a){if(_18a[clz]){_18b+=clz+" ";}}html.className=lang.trim(html.className+" "+_18b);_186(90,function(){if(!_185.isBodyLtr()){var _18c="dj_rtl dijitRtl "+_18b.replace(/ /g,"-rtl ");html.className=lang.trim(html.className+" "+_18c+"dj_rtl dijitRtl "+_18b.replace(/ /g,"-rtl "));}});return has;});},"dojo/dom":function(){define(["./sniff","./_base/lang","./_base/window"],function(has,lang,win){if(has("ie")<=7){try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}}var dom={};if(has("ie")){dom.byId=function(id,doc){if(typeof id!="string"){return id;}var _18d=doc||win.doc,te=id&&_18d.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te;}else{var eles=_18d.all[id];if(!eles||eles.nodeName){eles=[eles];}var i=0;while((te=eles[i++])){if((te.attributes&&te.attributes.id&&te.attributes.id.value==id)||te.id==id){return te;}}}};}else{dom.byId=function(id,doc){return ((typeof id=="string")?(doc||win.doc).getElementById(id):id)||null;};}dom.isDescendant=function(node,_18e){try{node=dom.byId(node);_18e=dom.byId(_18e);while(node){if(node==_18e){return true;}node=node.parentNode;}}catch(e){}return false;};dom.setSelectable=function(node,_18f){node=dom.byId(node);if(has("mozilla")){node.style.MozUserSelect=_18f?"":"none";}else{if(has("khtml")||has("webkit")){node.style.KhtmlUserSelect=_18f?"auto":"none";}else{if(has("ie")){var v=(node.unselectable=_18f?"":"on"),cs=node.getElementsByTagName("*"),i=0,l=cs.length;for(;i<l;++i){cs.item(i).unselectable=v;}}}}};return dom;});},"dojox/mvc/EditModelRefController":function(){define("dojox/mvc/EditModelRefController",["dojo/_base/declare","dojo/_base/lang","./getPlainValue","./getStateful","./ModelRefController"],function(_190,lang,_191,_192,_193){function _194(ctrl,old,_195){if(old!==_195){ctrl.set(ctrl._refOriginalModelProp,ctrl.holdModelUntilCommit?_195:ctrl.cloneModel(_195));ctrl.set(ctrl._refEditModelProp,ctrl.holdModelUntilCommit?ctrl.cloneModel(_195):_195);}};return _190("dojox.mvc.EditModelRefController",_193,{getStatefulOptions:null,getPlainValueOptions:null,holdModelUntilCommit:false,originalModel:null,sourceModel:null,_refOriginalModelProp:"originalModel",_refSourceModelProp:"sourceModel",_refEditModelProp:"model",postscript:function(_196,_197){for(var s in {getStatefulOptions:1,getPlainValueOptions:1,holdModelUntilCommit:1}){var _198=(_196||{})[s];if(typeof _198!="undefined"){this[s]=_198;}}this.inherited(arguments);},set:function(name,_199){if(name==this._refSourceModelProp){_194(this,this[this._refSourceModelProp],_199);}this.inherited(arguments);},cloneModel:function(_19a){var _19b=lang.isFunction((_19a||{}).set)&&lang.isFunction((_19a||{}).watch)?_191(_19a,this.getPlainValueOptions):_19a;return _192(_19b,this.getStatefulOptions);},commit:function(){this.set(this.holdModelUntilCommit?this._refSourceModelProp:this._refOriginalModelProp,this.cloneModel(this.get(this._refEditModelProp)));},reset:function(){this.set(this.holdModelUntilCommit?this._refEditModelProp:this._refSourceModelProp,this.cloneModel(this.get(this._refOriginalModelProp)));},hasControllerProperty:function(name){return this.inherited(arguments)||name==this._refOriginalModelProp||name==this._refSourceModelProp;}});});},"dojo/text":function(){define(["./_base/kernel","require","./has","./_base/xhr"],function(dojo,_19c,has,xhr){var _19d;if(1){_19d=function(url,sync,load){xhr("GET",{url:url,sync:!!sync,load:load,headers:dojo.config.textPluginHeaders||{}});};}else{if(_19c.getText){_19d=_19c.getText;}else{console.error("dojo/text plugin failed to load because loader does not support getText");}}var _19e={},_19f=function(text){if(text){text=text.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _1a0=text.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_1a0){text=_1a0[1];}}else{text="";}return text;},_1a1={},_1a2={};dojo.cache=function(_1a3,url,_1a4){var key;if(typeof _1a3=="string"){if(/\//.test(_1a3)){key=_1a3;_1a4=url;}else{key=_19c.toUrl(_1a3.replace(/\./g,"/")+(url?("/"+url):""));}}else{key=_1a3+"";_1a4=url;}var val=(_1a4!=undefined&&typeof _1a4!="string")?_1a4.value:_1a4,_1a5=_1a4&&_1a4.sanitize;if(typeof val=="string"){_19e[key]=val;return _1a5?_19f(val):val;}else{if(val===null){delete _19e[key];return null;}else{if(!(key in _19e)){_19d(key,true,function(text){_19e[key]=text;});}return _1a5?_19f(_19e[key]):_19e[key];}}};return {dynamic:true,normalize:function(id,_1a6){var _1a7=id.split("!"),url=_1a7[0];return (/^\./.test(url)?_1a6(url):url)+(_1a7[1]?"!"+_1a7[1]:"");},load:function(id,_1a8,load){var _1a9=id.split("!"),_1aa=_1a9.length>1,_1ab=_1a9[0],url=_1a8.toUrl(_1a9[0]),_1ac="url:"+url,text=_1a1,_1ad=function(text){load(_1aa?_19f(text):text);};if(_1ab in _19e){text=_19e[_1ab];}else{if(_1ac in _1a8.cache){text=_1a8.cache[_1ac];}else{if(url in _19e){text=_19e[url];}}}if(text===_1a1){if(_1a2[url]){_1a2[url].push(_1ad);}else{var _1ae=_1a2[url]=[_1ad];_19d(url,!_1a8.async,function(text){_19e[_1ab]=_19e[url]=text;for(var i=0;i<_1ae.length;){_1ae[i++](text);}delete _1a2[url];});}}else{_1ad(text);}}};});},"dojo/dom-style":function(){define("dojo/dom-style",["./sniff","./dom"],function(has,dom){var _1af,_1b0={};if(has("webkit")){_1af=function(node){var s;if(node.nodeType==1){var dv=node.ownerDocument.defaultView;s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null);}}return s||{};};}else{if(has("ie")&&(has("ie")<9||has("quirks"))){_1af=function(node){return node.nodeType==1&&node.currentStyle?node.currentStyle:{};};}else{_1af=function(node){return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};};}}_1b0.getComputedStyle=_1af;var _1b1;if(!has("ie")){_1b1=function(_1b2,_1b3){return parseFloat(_1b3)||0;};}else{_1b1=function(_1b4,_1b5){if(!_1b5){return 0;}if(_1b5=="medium"){return 4;}if(_1b5.slice&&_1b5.slice(-2)=="px"){return parseFloat(_1b5);}var s=_1b4.style,rs=_1b4.runtimeStyle,cs=_1b4.currentStyle,_1b6=s.left,_1b7=rs.left;rs.left=cs.left;try{s.left=_1b5;_1b5=s.pixelLeft;}catch(e){_1b5=0;}s.left=_1b6;rs.left=_1b7;return _1b5;};}_1b0.toPixelValue=_1b1;var astr="DXImageTransform.Microsoft.Alpha";var af=function(n,f){try{return n.filters.item(astr);}catch(e){return f?{}:null;}};var _1b8=has("ie")<9||(has("ie")&&has("quirks"))?function(node){try{return af(node).Opacity/100;}catch(e){return 1;}}:function(node){return _1af(node).opacity;};var _1b9=has("ie")<9||(has("ie")&&has("quirks"))?function(node,_1ba){var ov=_1ba*100,_1bb=_1ba==1;node.style.zoom=_1bb?"":1;if(!af(node)){if(_1bb){return _1ba;}node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";}else{af(node,1).Opacity=ov;}af(node,1).Enabled=!_1bb;if(node.tagName.toLowerCase()=="tr"){for(var td=node.firstChild;td;td=td.nextSibling){if(td.tagName.toLowerCase()=="td"){_1b9(td,_1ba);}}}return _1ba;}:function(node,_1bc){return node.style.opacity=_1bc;};var _1bd={left:true,top:true};var _1be=/margin|padding|width|height|max|min|offset/;function _1bf(node,type,_1c0){type=type.toLowerCase();if(has("ie")){if(_1c0=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_1c0){case 700:return "bold";case 400:default:return "normal";}}}if(!(type in _1bd)){_1bd[type]=_1be.test(type);}return _1bd[type]?_1b1(node,_1c0):_1c0;};var _1c1=has("ie")?"styleFloat":"cssFloat",_1c2={"cssFloat":_1c1,"styleFloat":_1c1,"float":_1c1};_1b0.get=function getStyle(node,name){var n=dom.byId(node),l=arguments.length,op=(name=="opacity");if(l==2&&op){return _1b8(n);}name=_1c2[name]||name;var s=_1b0.getComputedStyle(n);return (l==1)?s:_1bf(n,name,s[name]||n.style[name]);};_1b0.set=function setStyle(node,name,_1c3){var n=dom.byId(node),l=arguments.length,op=(name=="opacity");name=_1c2[name]||name;if(l==3){return op?_1b9(n,_1c3):n.style[name]=_1c3;}for(var x in name){_1b0.set(node,x,name[x]);}return _1b0.getComputedStyle(n);};return _1b0;});},"dijit/hccss":function(){define("dijit/hccss",["dojo/dom-class","dojo/hccss","dojo/ready","dojo/_base/window"],function(_1c4,has,_1c5,win){_1c5(90,function(){if(has("highcontrast")){_1c4.add(win.body(),"dijit_a11y");}});return has;});},"dojox/mvc/at":function(){define("dojox/mvc/at",["dojo/_base/kernel","dojo/_base/lang","./sync","./_atBindingExtension"],function(_1c6,lang,sync){_1c6.experimental("dojox.mvc");var at=function(_1c7,_1c8){return {atsignature:"dojox.mvc.at",target:_1c7,targetProp:_1c8,bindDirection:sync.both,direction:function(_1c9){this.bindDirection=_1c9;return this;},transform:function(_1ca){this.converter=_1ca;return this;}};};at.from=sync.from;at.to=sync.to;at.both=sync.both;return lang.setObject("dojox.mvc.at",at);});},"todo/ctrl/TodoListRefController":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/Stateful","dojox/mvc/ModelRefController"],function(_1cb,_1cc,_1cd,_1ce){return _1cc(_1ce,{addItem:function(_1cf){this[this._refModelProp].push(new _1cd({title:_1cf,completed:false}));},removeItem:function(_1d0){var _1d1=this[this._refModelProp],_1d2=_1cb.filter(_1cb.map(_1d1,function(item,idx){return item.uniqueId==_1d0?idx:-1;}),function(idx){return idx>=0;});if(_1d2.length>0){_1d1.splice(_1d2[0],1);}},removeCompletedItems:function(){var _1d3=this[this._refModelProp];for(var i=_1d3.length-1;i>=0;--i){if(_1d3[i].get("completed")){_1d3.splice(i,1);}}},markAll:function(_1d4){_1cb.forEach(this[this._refModelProp],function(item){item.set("completed",_1d4);});}});});},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query","./json"],function(lang,dom,ioq,json){function _1d5(obj,name,_1d6){if(_1d6===null){return;}var val=obj[name];if(typeof val=="string"){obj[name]=[val,_1d6];}else{if(lang.isArray(val)){val.push(_1d6);}else{obj[name]=_1d6;}}};var _1d7="file|submit|image|reset|button";var form={fieldToObject:function fieldToObject(_1d8){var ret=null;_1d8=dom.byId(_1d8);if(_1d8){var _1d9=_1d8.name,type=(_1d8.type||"").toLowerCase();if(_1d9&&type&&!_1d8.disabled){if(type=="radio"||type=="checkbox"){if(_1d8.checked){ret=_1d8.value;}}else{if(_1d8.multiple){ret=[];var _1da=[_1d8.firstChild];while(_1da.length){for(var node=_1da.pop();node;node=node.nextSibling){if(node.nodeType==1&&node.tagName.toLowerCase()=="option"){if(node.selected){ret.push(node.value);}}else{if(node.nextSibling){_1da.push(node.nextSibling);}if(node.firstChild){_1da.push(node.firstChild);}break;}}}}else{ret=_1d8.value;}}}}return ret;},toObject:function formToObject(_1db){var ret={},_1dc=dom.byId(_1db).elements;for(var i=0,l=_1dc.length;i<l;++i){var item=_1dc[i],_1dd=item.name,type=(item.type||"").toLowerCase();if(_1dd&&type&&_1d7.indexOf(type)<0&&!item.disabled){_1d5(ret,_1dd,form.fieldToObject(item));if(type=="image"){ret[_1dd+".x"]=ret[_1dd+".y"]=ret[_1dd].x=ret[_1dd].y=0;}}}return ret;},toQuery:function formToQuery(_1de){return ioq.objectToQuery(form.toObject(_1de));},toJson:function formToJson(_1df,_1e0){return json.stringify(form.toObject(_1df),null,_1e0?4:0);}};return form;});},"dijit/form/_TextBoxMixin":function(){define("dijit/form/_TextBoxMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom","dojo/_base/event","dojo/keys","dojo/_base/lang","dojo/on","../main"],function(_1e1,_1e2,dom,_1e3,keys,lang,on,_1e4){var _1e5=_1e2("dijit.form._TextBoxMixin",null,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints);},_setValueAttr:function(_1e6,_1e7,_1e8){var _1e9;if(_1e6!==undefined){_1e9=this.filter(_1e6);if(typeof _1e8!="string"){if(_1e9!==null&&((typeof _1e9!="number")||!isNaN(_1e9))){_1e8=this.filter(this.format(_1e9,this.constraints));}else{_1e8="";}}}if(_1e8!=null&&((typeof _1e8)!="number"||!isNaN(_1e8))&&this.textbox.value!=_1e8){this.textbox.value=_1e8;this._set("displayedValue",this.get("displayedValue"));}if(this.textDir=="auto"){this.applyTextDir(this.focusNode,_1e8);}this.inherited(arguments,[_1e9,_1e7]);},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},_setDisplayedValueAttr:function(_1ea){if(_1ea==null){_1ea="";}else{if(typeof _1ea!="string"){_1ea=String(_1ea);}}this.textbox.value=_1ea;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));if(this.textDir=="auto"){this.applyTextDir(this.focusNode,_1ea);}},format:function(_1eb){return _1eb==null?"":(_1eb.toString?_1eb.toString():_1eb);},parse:function(_1ec){return _1ec;},_refreshState:function(){},onInput:function(){},__skipInputEvent:false,_onInput:function(evt){if(this.textDir=="auto"){this.applyTextDir(this.focusNode,this.focusNode.value);}this._processInput(evt);},_processInput:function(evt){this._refreshState();this._set("displayedValue",this.get("displayedValue"));},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);var _1ed=function(e){var _1ee;if(e.type=="keydown"){_1ee=e.keyCode;switch(_1ee){case keys.SHIFT:case keys.ALT:case keys.CTRL:case keys.META:case keys.CAPS_LOCK:case keys.NUM_LOCK:case keys.SCROLL_LOCK:return;}if(!e.ctrlKey&&!e.metaKey&&!e.altKey){switch(_1ee){case keys.NUMPAD_0:case keys.NUMPAD_1:case keys.NUMPAD_2:case keys.NUMPAD_3:case keys.NUMPAD_4:case keys.NUMPAD_5:case keys.NUMPAD_6:case keys.NUMPAD_7:case keys.NUMPAD_8:case keys.NUMPAD_9:case keys.NUMPAD_MULTIPLY:case keys.NUMPAD_PLUS:case keys.NUMPAD_ENTER:case keys.NUMPAD_MINUS:case keys.NUMPAD_PERIOD:case keys.NUMPAD_DIVIDE:return;}if((_1ee>=65&&_1ee<=90)||(_1ee>=48&&_1ee<=57)||_1ee==keys.SPACE){return;}var _1ef=false;for(var i in keys){if(keys[i]===e.keyCode){_1ef=true;break;}}if(!_1ef){return;}}}_1ee=e.charCode>=32?String.fromCharCode(e.charCode):e.charCode;if(!_1ee){_1ee=(e.keyCode>=65&&e.keyCode<=90)||(e.keyCode>=48&&e.keyCode<=57)||e.keyCode==keys.SPACE?String.fromCharCode(e.keyCode):e.keyCode;}if(!_1ee){_1ee=229;}if(e.type=="keypress"){if(typeof _1ee!="string"){return;}if((_1ee>="a"&&_1ee<="z")||(_1ee>="A"&&_1ee<="Z")||(_1ee>="0"&&_1ee<="9")||(_1ee===" ")){if(e.ctrlKey||e.metaKey||e.altKey){return;}}}if(e.type=="input"){if(this.__skipInputEvent){this.__skipInputEvent=false;return;}}else{this.__skipInputEvent=true;}var faux={faux:true},attr;for(attr in e){if(attr!="layerX"&&attr!="layerY"){var v=e[attr];if(typeof v!="function"&&typeof v!="undefined"){faux[attr]=v;}}}lang.mixin(faux,{charOrCode:_1ee,_wasConsumed:false,preventDefault:function(){faux._wasConsumed=true;e.preventDefault();},stopPropagation:function(){e.stopPropagation();}});if(this.onInput(faux)===false){faux.preventDefault();faux.stopPropagation();}if(faux._wasConsumed){return;}this.defer(function(){this._onInput(faux);});};this.own(on(this.textbox,"keydown, keypress, paste, cut, input, compositionend",lang.hitch(this,_1ed)));},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=lang.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.get("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);},_isTextSelected:function(){return this.textbox.selectionStart!=this.textbox.selectionEnd;},_onFocus:function(by){if(this.disabled||this.readOnly){return;}if(this.selectOnClick&&by=="mouse"){this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);this._selectOnClickHandle=null;if(!this._isTextSelected()){_1e5.selectInputText(this.textbox);}});this.defer(function(){if(this._selectOnClickHandle){this.disconnect(this._selectOnClickHandle);this._selectOnClickHandle=null;}},500);}this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);},_setTextDirAttr:function(_1f0){if(!this._created||this.textDir!=_1f0){this._set("textDir",_1f0);this.applyTextDir(this.focusNode,this.focusNode.value);}}});_1e5._setSelectionRange=_1e4._setSelectionRange=function(_1f1,_1f2,stop){if(_1f1.setSelectionRange){_1f1.setSelectionRange(_1f2,stop);}};_1e5.selectInputText=_1e4.selectInputText=function(_1f3,_1f4,stop){_1f3=dom.byId(_1f3);if(isNaN(_1f4)){_1f4=0;}if(isNaN(stop)){stop=_1f3.value?_1f3.value.length:0;}try{_1f3.focus();_1e5._setSelectionRange(_1f3,_1f4,stop);}catch(e){}};return _1e5;});},"dojo/store/util/SimpleQueryEngine":function(){define(["../../_base/array"],function(_1f5){return function(_1f6,_1f7){switch(typeof _1f6){default:throw new Error("Can not query with a "+typeof _1f6);case "object":case "undefined":var _1f8=_1f6;_1f6=function(_1f9){for(var key in _1f8){var _1fa=_1f8[key];if(_1fa&&_1fa.test){if(!_1fa.test(_1f9[key],_1f9)){return false;}}else{if(_1fa!=_1f9[key]){return false;}}}return true;};break;case "string":if(!this[_1f6]){throw new Error("No filter function "+_1f6+" was found in store");}_1f6=this[_1f6];case "function":}function _1fb(_1fc){var _1fd=_1f5.filter(_1fc,_1f6);var _1fe=_1f7&&_1f7.sort;if(_1fe){_1fd.sort(typeof _1fe=="function"?_1fe:function(a,b){for(var sort,i=0;sort=_1fe[i];i++){var _1ff=a[sort.attribute];var _200=b[sort.attribute];if(_1ff!=_200){return !!sort.descending==(_1ff==null||_1ff>_200)?-1:1;}}return 0;});}if(_1f7&&(_1f7.start||_1f7.count)){var _201=_1fd.length;_1fd=_1fd.slice(_1f7.start||0,(_1f7.start||0)+(_1f7.count||Infinity));_1fd.total=_201;}return _1fd;};_1fb.matches=_1f6;return _1fb;};});},"dijit/form/ToggleButton":function(){define("dijit/form/ToggleButton",["dojo/_base/declare","dojo/_base/kernel","./Button","./_ToggleButtonMixin"],function(_202,_203,_204,_205){return _202("dijit.form.ToggleButton",[_204,_205],{baseClass:"dijitToggleButton",setChecked:function(_206){_203.deprecated("setChecked("+_206+") is deprecated. Use set('checked',"+_206+") instead.","","2.0");this.set("checked",_206);}});});},"dojo/parser":function(){define(["./_base/kernel","./_base/lang","./_base/array","./_base/config","./_base/html","./_base/window","./_base/url","./_base/json","./aspect","./date/stamp","./Deferred","./has","./query","./on","./ready"],function(dojo,_207,_208,_209,_20a,_20b,_20c,_20d,_20e,_20f,_210,has,_211,don,_212){new Date("X");var _213=0;_20e.after(_207,"extend",function(){_213++;},true);function _214(ctor){var map=ctor._nameCaseMap,_215=ctor.prototype;if(!map||map._extendCnt<_213){map=ctor._nameCaseMap={};for(var name in _215){if(name.charAt(0)==="_"){continue;}map[name.toLowerCase()]=name;}map._extendCnt=_213;}return map;};var _216={};function _217(_218){var ts=_218.join();if(!_216[ts]){var _219=[];for(var i=0,l=_218.length;i<l;i++){var t=_218[i];_219[_219.length]=(_216[t]=_216[t]||(_207.getObject(t)||(~t.indexOf("/")&&require(t))));}var ctor=_219.shift();_216[ts]=_219.length?(ctor.createSubclass?ctor.createSubclass(_219):ctor.extend.apply(ctor,_219)):ctor;}return _216[ts];};var _21a={_clearCache:function(){_213++;_216={};},_functionFromScript:function(_21b,_21c){var _21d="",_21e="",_21f=(_21b.getAttribute(_21c+"args")||_21b.getAttribute("args")),_220=_21b.getAttribute("with");var _221=(_21f||"").split(/\s*,\s*/);if(_220&&_220.length){_208.forEach(_220.split(/\s*,\s*/),function(part){_21d+="with("+part+"){";_21e+="}";});}return new Function(_221,_21d+_21b.innerHTML+_21e);},instantiate:function(_222,_223,_224){_223=_223||{};_224=_224||{};var _225=(_224.scope||dojo._scopeName)+"Type",_226="data-"+(_224.scope||dojo._scopeName)+"-",_227=_226+"type",_228=_226+"mixins";var list=[];_208.forEach(_222,function(node){var type=_225 in _223?_223[_225]:node.getAttribute(_227)||node.getAttribute(_225);if(type){var _229=node.getAttribute(_228),_22a=_229?[type].concat(_229.split(/\s*,\s*/)):[type];list.push({node:node,types:_22a});}});return this._instantiate(list,_223,_224);},_instantiate:function(_22b,_22c,_22d){var _22e=_208.map(_22b,function(obj){var ctor=obj.ctor||_217(obj.types);if(!ctor){throw new Error("Unable to resolve constructor for: '"+obj.types.join()+"'");}return this.construct(ctor,obj.node,_22c,_22d,obj.scripts,obj.inherited);},this);if(!_22c._started&&!_22d.noStart){_208.forEach(_22e,function(_22f){if(typeof _22f.startup==="function"&&!_22f._started){_22f.startup();}});}return _22e;},construct:function(ctor,node,_230,_231,_232,_233){var _234=ctor&&ctor.prototype;_231=_231||{};var _235={};if(_231.defaults){_207.mixin(_235,_231.defaults);}if(_233){_207.mixin(_235,_233);}var _236;if(has("dom-attributes-explicit")){_236=node.attributes;}else{if(has("dom-attributes-specified-flag")){_236=_208.filter(node.attributes,function(a){return a.specified;});}else{var _237=/^input$|^img$/i.test(node.nodeName)?node:node.cloneNode(false),_238=_237.outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,"");_236=_208.map(_238.split(/\s+/),function(name){var _239=name.toLowerCase();return {name:name,value:(node.nodeName=="LI"&&name=="value")||_239=="enctype"?node.getAttribute(_239):node.getAttributeNode(_239).value};});}}var _23a=_231.scope||dojo._scopeName,_23b="data-"+_23a+"-",hash={};if(_23a!=="dojo"){hash[_23b+"props"]="data-dojo-props";hash[_23b+"type"]="data-dojo-type";hash[_23b+"mixins"]="data-dojo-mixins";hash[_23a+"type"]="dojoType";hash[_23b+"id"]="data-dojo-id";}var i=0,item,_23c=[],_23d,_23e;while(item=_236[i++]){var name=item.name,_23f=name.toLowerCase(),_240=item.value;switch(hash[_23f]||_23f){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;case "data-dojo-props":_23e=_240;break;case "data-dojo-id":case "jsid":_23d=_240;break;case "data-dojo-attach-point":case "dojoattachpoint":_235.dojoAttachPoint=_240;break;case "data-dojo-attach-event":case "dojoattachevent":_235.dojoAttachEvent=_240;break;case "class":_235["class"]=node.className;break;case "style":_235["style"]=node.style&&node.style.cssText;break;default:if(!(name in _234)){var map=_214(ctor);name=map[_23f]||name;}if(name in _234){switch(typeof _234[name]){case "string":_235[name]=_240;break;case "number":_235[name]=_240.length?Number(_240):NaN;break;case "boolean":_235[name]=_240.toLowerCase()!="false";break;case "function":if(_240===""||_240.search(/[^\w\.]+/i)!=-1){_235[name]=new Function(_240);}else{_235[name]=_207.getObject(_240,false)||new Function(_240);}_23c.push(name);break;default:var pVal=_234[name];_235[name]=(pVal&&"length" in pVal)?(_240?_240.split(/\s*,\s*/):[]):(pVal instanceof Date)?(_240==""?new Date(""):_240=="now"?new Date():_20f.fromISOString(_240)):(pVal instanceof _20c)?(dojo.baseUrl+_240):_20d.fromJson(_240);}}else{_235[name]=_240;}}}for(var j=0;j<_23c.length;j++){var _241=_23c[j].toLowerCase();node.removeAttribute(_241);node[_241]=null;}if(_23e){try{_23e=_20d.fromJson.call(_231.propsThis,"{"+_23e+"}");_207.mixin(_235,_23e);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_23e+"'");}}_207.mixin(_235,_230);if(!_232){_232=(ctor&&(ctor._noScript||_234._noScript)?[]:_211("> script[type^='dojo/']",node));}var _242=[],_243=[],_244=[],ons=[];if(_232){for(i=0;i<_232.length;i++){var _245=_232[i];node.removeChild(_245);var _246=(_245.getAttribute(_23b+"event")||_245.getAttribute("event")),prop=_245.getAttribute(_23b+"prop"),_247=_245.getAttribute(_23b+"method"),_248=_245.getAttribute(_23b+"advice"),_249=_245.getAttribute("type"),nf=this._functionFromScript(_245,_23b);if(_246){if(_249=="dojo/connect"){_242.push({method:_246,func:nf});}else{if(_249=="dojo/on"){ons.push({event:_246,func:nf});}else{_235[_246]=nf;}}}else{if(_249=="dojo/aspect"){_242.push({method:_247,advice:_248,func:nf});}else{if(_249=="dojo/watch"){_244.push({prop:prop,func:nf});}else{_243.push(nf);}}}}}var _24a=ctor.markupFactory||_234.markupFactory;var _24b=_24a?_24a(_235,node,ctor):new ctor(_235,node);if(_23d){_207.setObject(_23d,_24b);}for(i=0;i<_242.length;i++){_20e[_242[i].advice||"after"](_24b,_242[i].method,_207.hitch(_24b,_242[i].func),true);}for(i=0;i<_243.length;i++){_243[i].call(_24b);}for(i=0;i<_244.length;i++){_24b.watch(_244[i].prop,_244[i].func);}for(i=0;i<ons.length;i++){don(_24b,ons[i].event,ons[i].func);}return _24b;},scan:function(root,_24c){var list=[],mids=[],_24d={};var _24e=(_24c.scope||dojo._scopeName)+"Type",_24f="data-"+(_24c.scope||dojo._scopeName)+"-",_250=_24f+"type",_251=_24f+"textdir",_252=_24f+"mixins";var node=root.firstChild;var _253=_24c.inherited;if(!_253){function _254(node,attr){return (node.getAttribute&&node.getAttribute(attr))||(node.parentNode&&_254(node.parentNode,attr));};_253={dir:_254(root,"dir"),lang:_254(root,"lang"),textDir:_254(root,_251)};for(var key in _253){if(!_253[key]){delete _253[key];}}}var _255={inherited:_253};var _256;var _257;function _258(_259){if(!_259.inherited){_259.inherited={};var node=_259.node,_25a=_258(_259.parent);var _25b={dir:node.getAttribute("dir")||_25a.dir,lang:node.getAttribute("lang")||_25a.lang,textDir:node.getAttribute(_251)||_25a.textDir};for(var key in _25b){if(_25b[key]){_259.inherited[key]=_25b[key];}}}return _259.inherited;};while(true){if(!node){if(!_255||!_255.node){break;}node=_255.node.nextSibling;_256=_255.scripts;_257=false;_255=_255.parent;continue;}if(node.nodeType!=1){node=node.nextSibling;continue;}if(_256&&node.nodeName.toLowerCase()=="script"){type=node.getAttribute("type");if(type&&/^dojo\/\w/i.test(type)){_256.push(node);}node=node.nextSibling;continue;}if(_257){node=node.nextSibling;continue;}var type=node.getAttribute(_250)||node.getAttribute(_24e);var _25c=node.firstChild;if(!type&&(!_25c||(_25c.nodeType==3&&!_25c.nextSibling))){node=node.nextSibling;continue;}var _25d;var ctor=null;if(type){var _25e=node.getAttribute(_252),_25f=_25e?[type].concat(_25e.split(/\s*,\s*/)):[type];try{ctor=_217(_25f);}catch(e){}if(!ctor){_208.forEach(_25f,function(t){if(~t.indexOf("/")&&!_24d[t]){_24d[t]=true;mids[mids.length]=t;}});}var _260=ctor&&!ctor.prototype._noScript?[]:null;_25d={types:_25f,ctor:ctor,parent:_255,node:node,scripts:_260};_25d.inherited=_258(_25d);list.push(_25d);}else{_25d={node:node,scripts:_256,parent:_255};}node=_25c;_256=_260;_257=ctor&&ctor.prototype.stopParser&&!(_24c.template);_255=_25d;}var d=new _210();if(mids.length){if(has("dojo-debug-messages")){console.warn("WARNING: Modules being Auto-Required: "+mids.join(", "));}require(mids,function(){d.resolve(_208.filter(list,function(_261){if(!_261.ctor){try{_261.ctor=_217(_261.types);}catch(e){}}var _262=_261.parent;while(_262&&!_262.types){_262=_262.parent;}var _263=_261.ctor&&_261.ctor.prototype;_261.instantiateChildren=!(_263&&_263.stopParser&&!(_24c.template));_261.instantiate=!_262||(_262.instantiate&&_262.instantiateChildren);return _261.instantiate;}));});}else{d.resolve(list);}return d.promise;},_require:function(_264){var hash=_20d.fromJson("{"+_264.innerHTML+"}"),vars=[],mids=[],d=new _210();for(var name in hash){vars.push(name);mids.push(hash[name]);}require(mids,function(){for(var i=0;i<vars.length;i++){_207.setObject(vars[i],arguments[i]);}d.resolve(arguments);});return d.promise;},_scanAmd:function(root){var _265=new _210(),_266=_265.promise;_265.resolve(true);var self=this;_211("script[type='dojo/require']",root).forEach(function(node){_266=_266.then(function(){return self._require(node);});node.parentNode.removeChild(node);});return _266;},parse:function(_267,_268){var root;if(!_268&&_267&&_267.rootNode){_268=_267;root=_268.rootNode;}else{if(_267&&_207.isObject(_267)&&!("nodeType" in _267)){_268=_267;}else{root=_267;}}root=root?_20a.byId(root):_20b.body();_268=_268||{};var _269=_268.template?{template:true}:{},_26a=[],self=this;var p=this._scanAmd(root,_268).then(function(){return self.scan(root,_268);}).then(function(_26b){return _26a=_26a.concat(self._instantiate(_26b,_269,_268));}).otherwise(function(e){console.error("dojo/parser::parse() error",e);throw e;});_207.mixin(_26a,p);return _26a;}};if(1){dojo.parser=_21a;}if(_209.parseOnLoad){_212(100,_21a,"parse");}return _21a;});},"dojo/promise/Promise":function(){define(["../_base/lang"],function(lang){"use strict";function _26c(){throw new TypeError("abstract");};return lang.extend(function Promise(){},{then:function(_26d,_26e,_26f){_26c();},cancel:function(_270,_271){_26c();},isResolved:function(){_26c();},isRejected:function(){_26c();},isFulfilled:function(){_26c();},isCanceled:function(){_26c();},always:function(_272){return this.then(_272,_272);},otherwise:function(_273){return this.then(null,_273);},trace:function(){return this;},traceRejected:function(){return this;},toString:function(){return "[object Promise]";}});});},"dojo/router/RouterBase":function(){define(["dojo/_base/declare","dojo/hash","dojo/topic"],function(_274,hash,_275){var trim;if(String.prototype.trim){trim=function(str){return str.trim();};}else{trim=function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");};}function _276(_277,_278,_279){var _27a,_27b,_27c,_27d,i,l;_27a=this.callbackQueue;_27b=false;_27c=false;_27d={stopImmediatePropagation:function(){_27b=true;},preventDefault:function(){_27c=true;},oldPath:_278,newPath:_279,params:_277};for(i=0,l=_27a.length;i<l;++i){if(!_27b){_27a[i](_27d);}}return !_27c;};var _27e=_274(null,{_routes:null,_routeIndex:null,_started:false,_currentPath:"",idMatch:/:(\w[\w\d]*)/g,idReplacement:"([^\\/]+)",globMatch:/\*(\w[\w\d]*)/,globReplacement:"(.+)",constructor:function(_27f){this._routes=[];this._routeIndex={};for(var i in _27f){if(_27f.hasOwnProperty(i)){this[i]=_27f[i];}}},register:function(_280,_281){return this._registerRoute(_280,_281);},registerBefore:function(_282,_283){return this._registerRoute(_282,_283,true);},go:function(path,_284){var _285;path=trim(path);_285=this._handlePathChange(path);if(_285){hash(path,_284);}return _285;},startup:function(){if(this._started){return;}var self=this;this._started=true;this._handlePathChange(hash());_275.subscribe("/dojo/hashchange",function(){self._handlePathChange.apply(self,arguments);});},_handlePathChange:function(_286){var i,j,li,lj,_287,_288,_289,_28a,_28b,_28c=this._routes,_28d=this._currentPath;if(!this._started||_286===_28d){return _289;}_289=true;for(i=0,li=_28c.length;i<li;++i){_287=_28c[i];_288=_287.route.exec(_286);if(_288){if(_287.parameterNames){_28a=_287.parameterNames;_28b={};for(j=0,lj=_28a.length;j<lj;++j){_28b[_28a[j]]=_288[j+1];}}else{_28b=_288.slice(1);}_289=_287.fire(_28b,_28d,_286);}}if(_289){this._currentPath=_286;}return _289;},_convertRouteToRegExp:function(_28e){_28e=_28e.replace(this.idMatch,this.idReplacement);_28e=_28e.replace(this.globMatch,this.globReplacement);_28e="^"+_28e+"$";return new RegExp(_28e);},_getParameterNames:function(_28f){var _290=this.idMatch,_291=this.globMatch,_292=[],_293;_290.lastIndex=0;while((_293=_290.exec(_28f))!==null){_292.push(_293[1]);}if((_293=_291.exec(_28f))!==null){_292.push(_293[1]);}return _292.length>0?_292:null;},_indexRoutes:function(){var i,l,_294,_295,_296=this._routes;_295=this._routeIndex={};for(i=0,l=_296.length;i<l;++i){_294=_296[i];_295[_294.route]=i;}},_registerRoute:function(_297,_298,_299){var _29a,_29b,_29c,_29d,_29e,self=this,_29f=this._routes,_2a0=this._routeIndex;_29a=this._routeIndex[_297];_29b=typeof _29a!=="undefined";if(_29b){_29c=_29f[_29a];}if(!_29c){_29c={route:_297,callbackQueue:[],fire:_276};}_29d=_29c.callbackQueue;if(typeof _297=="string"){_29c.parameterNames=this._getParameterNames(_297);_29c.route=this._convertRouteToRegExp(_297);}if(_299){_29d.unshift(_298);}else{_29d.push(_298);}if(!_29b){_29a=_29f.length;_2a0[_297]=_29a;_29f.push(_29c);}_29e=false;return {remove:function(){var i,l;if(_29e){return;}for(i=0,l=_29d.length;i<l;++i){if(_29d[i]===_298){_29d.splice(i,1);}}if(_29d.length===0){_29f.splice(_29a,1);self._indexRoutes();}_29e=true;},register:function(_2a1,_2a2){return self.register(_297,_2a1,_2a2);}};}});return _27e;});},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has"],function(JSON,_2a3,_2a4,has){has.add("activex",typeof ActiveXObject!=="undefined");var _2a5;if(has("activex")){var dp=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"];_2a5=function(_2a6){var _2a7=_2a6.data;if(!_2a7||!_2a7.documentElement){var text=_2a6.text;_2a4.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(text);_2a7=dom;}catch(e){return false;}return true;});}return _2a7;};}var _2a8={"javascript":function(_2a9){return _2a3.eval(_2a9.text||"");},"json":function(_2aa){return JSON.parse(_2aa.text||null);},"xml":_2a5};function _2ab(_2ac){var _2ad=_2a8[_2ac.options.handleAs];_2ac.data=_2ad?_2ad(_2ac):(_2ac.data||_2ac.text);return _2ac;};_2ab.register=function(name,_2ae){_2a8[name]=_2ae;};return _2ab;});},"dijit/_Container":function(){define("dijit/_Container",["dojo/_base/array","dojo/_base/declare","dojo/dom-construct"],function(_2af,_2b0,_2b1){return _2b0("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_2b2,_2b3){var _2b4=this.containerNode;if(_2b3&&typeof _2b3=="number"){var _2b5=this.getChildren();if(_2b5&&_2b5.length>=_2b3){_2b4=_2b5[_2b3-1].domNode;_2b3="after";}}_2b1.place(_2b2.domNode,_2b4,_2b3);if(this._started&&!_2b2._started){_2b2.startup();}},removeChild:function(_2b6){if(typeof _2b6=="number"){_2b6=this.getChildren()[_2b6];}if(_2b6){var node=_2b6.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_2b7,dir){var _2b8=this.getChildren(),idx=_2af.indexOf(this.getChildren(),_2b7);return _2b8[idx+dir];},getIndexOfChild:function(_2b9){return _2af.indexOf(this.getChildren(),_2b9);}});});},"dojo/aspect":function(){define("dojo/aspect",[],function(){"use strict";var _2ba,_2bb=0;function _2bc(_2bd,type,_2be,_2bf){var _2c0=_2bd[type];var _2c1=type=="around";var _2c2;if(_2c1){var _2c3=_2be(function(){return _2c0.advice(this,arguments);});_2c2={remove:function(){_2c2.cancelled=true;},advice:function(_2c4,args){return _2c2.cancelled?_2c0.advice(_2c4,args):_2c3.apply(_2c4,args);}};}else{_2c2={remove:function(){var _2c5=_2c2.previous;var next=_2c2.next;if(!next&&!_2c5){delete _2bd[type];}else{if(_2c5){_2c5.next=next;}else{_2bd[type]=next;}if(next){next.previous=_2c5;}}},id:_2bb++,advice:_2be,receiveArguments:_2bf};}if(_2c0&&!_2c1){if(type=="after"){var next=_2c0;while(next){_2c0=next;next=next.next;}_2c0.next=_2c2;_2c2.previous=_2c0;}else{if(type=="before"){_2bd[type]=_2c2;_2c2.next=_2c0;_2c0.previous=_2c2;}}}else{_2bd[type]=_2c2;}return _2c2;};function _2c6(type){return function(_2c7,_2c8,_2c9,_2ca){var _2cb=_2c7[_2c8],_2cc;if(!_2cb||_2cb.target!=_2c7){_2c7[_2c8]=_2cc=function(){var _2cd=_2bb;var args=arguments;var _2ce=_2cc.before;while(_2ce){args=_2ce.advice.apply(this,args)||args;_2ce=_2ce.next;}if(_2cc.around){var _2cf=_2cc.around.advice(this,args);}var _2d0=_2cc.after;while(_2d0&&_2d0.id<_2cd){if(_2d0.receiveArguments){var _2d1=_2d0.advice.apply(this,args);_2cf=_2d1===_2ba?_2cf:_2d1;}else{_2cf=_2d0.advice.call(this,_2cf,args);}_2d0=_2d0.next;}return _2cf;};if(_2cb){_2cc.around={advice:function(_2d2,args){return _2cb.apply(_2d2,args);}};}_2cc.target=_2c7;}var _2d3=_2bc((_2cc||_2cb),type,_2c9,_2ca);_2c9=null;return _2d3;};};var _2d4=_2c6("after");var _2d5=_2c6("before");var _2d6=_2c6("around");return {before:_2d5,around:_2d6,after:_2d4};});},"dojo/errors/CancelError":function(){define(["./create"],function(_2d7){return _2d7("CancelError",null,null,{dojoType:"cancel"});});},"dijit/a11yclick":function(){define("dijit/a11yclick",["dojo/on","dojo/_base/array","dojo/keys","dojo/_base/declare","dojo/has","dojo/_base/unload","dojo/_base/window"],function(on,_2d8,keys,_2d9,has,_2da,win){var _2db=null;if(has("dom-addeventlistener")){win.doc.addEventListener("keydown",function(evt){_2db=evt.target;},true);}else{(function(){var _2dc=function(evt){_2db=evt.srcElement;};win.doc.attachEvent("onkeydown",_2dc);_2da.addOnWindowUnload(function(){win.doc.detachEvent("onkeydown",_2dc);});})();}function _2dd(e){return (e.keyCode===keys.ENTER||e.keyCode===keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey;};return function(node,_2de){if(/input|button/i.test(node.nodeName)){return on(node,"click",_2de);}else{var _2df=[on(node,"keydown",function(e){if(_2dd(e)){_2db=e.target;e.preventDefault();}}),on(node,"keyup",function(e){if(_2dd(e)&&e.target==_2db){_2db=null;on.emit(e.target,"click",{cancelable:true,bubbles:true});}}),on(node,"click",function(e){_2de.call(this,e);})];if(has("touch")){var _2e0;_2df.push(on(node,"touchend",function(e){var _2e1=e.target;_2e0=setTimeout(function(){_2e0=null;on.emit(_2e1,"click",{cancelable:true,bubbles:true});},600);}),on(node,"click",function(e){if(_2e0){clearTimeout(_2e0);}}));}return {remove:function(){_2d8.forEach(_2df,function(h){h.remove();});if(_2e0){clearTimeout(_2e0);_2e0=null;}}};}};return ret;});},"dojox/mvc/StoreRefController":function(){define("dojox/mvc/StoreRefController",["dojo/_base/declare","dojo/_base/lang","dojo/when","./getStateful","./ModelRefController"],function(_2e2,lang,when,_2e3,_2e4){return _2e2("dojox.mvc.StoreRefController",_2e4,{store:null,getStatefulOptions:null,_refSourceModelProp:"model",queryStore:function(_2e5,_2e6){if(!(this.store||{}).query){return;}if(this._queryObserveHandle){this._queryObserveHandle.cancel();}var _2e7=this,_2e8=this.store.query(_2e5,_2e6),_2e9=when(_2e8,function(_2ea){if(_2e7._beingDestroyed){return;}_2ea=_2e3(_2ea,_2e7.getStatefulOptions);_2e7.set(_2e7._refSourceModelProp,_2ea);return _2ea;});for(var s in _2e8){if(isNaN(s)&&_2e8.hasOwnProperty(s)&&lang.isFunction(_2e8[s])){_2e9[s]=_2e8[s];}}return _2e9;},getStore:function(id,_2eb){if(!(this.store||{}).get){return;}if(this._queryObserveHandle){this._queryObserveHandle.cancel();}var _2ec=this;return when(this.store.get(id,_2eb),function(_2ed){if(_2ec._beingDestroyed){return;}_2ec.set(_2ec._refSourceModelProp,_2e3(_2ed,_2ec.getStatefulOptions));});},putStore:function(_2ee,_2ef){if(!(this.store||{}).put){return;}return this.store.put(_2ee,_2ef);},addStore:function(_2f0,_2f1){if(!(this.store||{}).add){return;}return this.store.add(_2f0,_2f1);},removeStore:function(id,_2f2){if(!(this.store||{}).remove){return;}return this.store.remove(id,_2f2);}});});},"dojo/topic":function(){define("dojo/topic",["./Evented"],function(_2f3){var hub=new _2f3;return {publish:function(_2f4,_2f5){return hub.emit.apply(hub,arguments);},subscribe:function(_2f6,_2f7){return hub.on.apply(hub,arguments);}};});},"todo/form/InlineEditBox":function(){define(["dijit/InlineEditBox","dojo/_base/declare","dojo/_base/lang","dojo/dom-class"],function(_2f8,_2f9,lang,_2fa){_2f8._InlineEditor.prototype._onChange=function(){if(this.inlineEditBox.autoSave&&this.inlineEditBox.editing&&this.enableSave()){this._onBlur();}};return _2f9("todo.form.InlineEditBox",_2f8,{postMixInProperties:function(){this.displayNode=this.srcNodeRef;var _2fb={ondblclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};for(var name in _2fb){this.connect(this.displayNode,name,_2fb[name]);}this.displayNode.setAttribute("role","button");if(!this.displayNode.getAttribute("tabIndex")){this.displayNode.setAttribute("tabIndex",0);}if(!this.value&&!("value" in this.params)){this.value=lang.trim(this.renderAsHtml?this.displayNode.innerHTML:(this.displayNode.innerText||this.displayNode.textContent||""));}if(!this.value){this.displayNode.innerHTML=this.noValueIndicator;}_2fa.add(this.displayNode,"dijitInlineEditBoxDisplayMode");},_onChange:function(){this.inherited(arguments);this._onBlur();}});});},"dojo/NodeList-dom":function(){define(["./_base/kernel","./query","./_base/array","./_base/lang","./dom-class","./dom-construct","./dom-geometry","./dom-attr","./dom-style"],function(dojo,_2fc,_2fd,lang,_2fe,_2ff,_300,_301,_302){var _303=function(a){return a.length==1&&(typeof a[0]=="string");};var _304=function(node){var p=node.parentNode;if(p){p.removeChild(node);}};var _305=_2fc.NodeList,awc=_305._adaptWithCondition,aafe=_305._adaptAsForEach,aam=_305._adaptAsMap;function _306(_307){return function(node,name,_308){if(arguments.length==2){return _307[typeof name=="string"?"get":"set"](node,name);}return _307.set(node,name,_308);};};lang.extend(_305,{_normalize:function(_309,_30a){var _30b=_309.parse===true;if(typeof _309.template=="string"){var _30c=_309.templateFunc||(dojo.string&&dojo.string.substitute);_309=_30c?_30c(_309.template,_309):_309;}var type=(typeof _309);if(type=="string"||type=="number"){_309=_2ff.toDom(_309,(_30a&&_30a.ownerDocument));if(_309.nodeType==11){_309=lang._toArray(_309.childNodes);}else{_309=[_309];}}else{if(!lang.isArrayLike(_309)){_309=[_309];}else{if(!lang.isArray(_309)){_309=lang._toArray(_309);}}}if(_30b){_309._runParse=true;}return _309;},_cloneNode:function(node){return node.cloneNode(true);},_place:function(ary,_30d,_30e,_30f){if(_30d.nodeType!=1&&_30e=="only"){return;}var _310=_30d,_311;var _312=ary.length;for(var i=_312-1;i>=0;i--){var node=(_30f?this._cloneNode(ary[i]):ary[i]);if(ary._runParse&&dojo.parser&&dojo.parser.parse){if(!_311){_311=_310.ownerDocument.createElement("div");}_311.appendChild(node);dojo.parser.parse(_311);node=_311.firstChild;while(_311.firstChild){_311.removeChild(_311.firstChild);}}if(i==_312-1){_2ff.place(node,_310,_30e);}else{_310.parentNode.insertBefore(node,_310);}_310=node;}},position:aam(_300.position),attr:awc(_306(_301),_303),style:awc(_306(_302),_303),addClass:aafe(_2fe.add),removeClass:aafe(_2fe.remove),toggleClass:aafe(_2fe.toggle),replaceClass:aafe(_2fe.replace),empty:aafe(_2ff.empty),removeAttr:aafe(_301.remove),marginBox:aam(_300.getMarginBox),place:function(_313,_314){var item=_2fc(_313)[0];return this.forEach(function(node){_2ff.place(node,item,_314);});},orphan:function(_315){return (_315?_2fc._filterResult(this,_315):this).forEach(_304);},adopt:function(_316,_317){return _2fc(_316).place(this[0],_317)._stash(this);},query:function(_318){if(!_318){return this;}var ret=new _305;this.map(function(node){_2fc(_318,node).forEach(function(_319){if(_319!==undefined){ret.push(_319);}});});return ret._stash(this);},filter:function(_31a){var a=arguments,_31b=this,_31c=0;if(typeof _31a=="string"){_31b=_2fc._filterResult(this,a[0]);if(a.length==1){return _31b._stash(this);}_31c=1;}return this._wrap(_2fd.filter(_31b,a[_31c],a[_31c+1]),this);},addContent:function(_31d,_31e){_31d=this._normalize(_31d,this[0]);for(var i=0,node;(node=this[i]);i++){this._place(_31d,node,_31e,i>0);}return this;}});return _305;});},"dijit/form/TextBox":function(){require({cache:{"url:dijit/form/templates/TextBox.html":"<div class=\"dijit dijitReset dijitInline dijitLeft\" id=\"widget_${id}\" role=\"presentation\"\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class=\"dijitReset dijitInputInner\" data-dojo-attach-point='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${!nameAttrSetting} type='${type}'\n\t/></div\n></div>\n"}});define("dijit/form/TextBox",["dojo/_base/declare","dojo/dom-construct","dojo/dom-style","dojo/_base/kernel","dojo/_base/lang","dojo/sniff","./_FormValueWidget","./_TextBoxMixin","dojo/text!./templates/TextBox.html","../main"],function(_31f,_320,_321,_322,lang,has,_323,_324,_325,_326){var _327=_31f("dijit.form.TextBox",[_323,_324],{templateString:_325,_singleNodeTemplate:"<input class=\"dijit dijitReset dijitLeft dijitInputField\" data-dojo-attach-point=\"textbox,focusNode\" autocomplete=\"off\" type=\"${type}\" ${!nameAttrSetting} />",_buttonInputDisabled:has("ie")?"disabled":"",baseClass:"dijitTextBox",postMixInProperties:function(){var type=this.type.toLowerCase();if(this.templateString&&this.templateString.toLowerCase()=="input"||((type=="hidden"||type=="file")&&this.templateString==this.constructor.prototype.templateString)){this.templateString=this._singleNodeTemplate;}this.inherited(arguments);},postCreate:function(){this.inherited(arguments);if(has("ie")<9){this.defer(function(){try{var s=_321.getComputedStyle(this.domNode);if(s){var ff=s.fontFamily;if(ff){var _328=this.domNode.getElementsByTagName("INPUT");if(_328){for(var i=0;i<_328.length;i++){_328[i].style.fontFamily=ff;}}}}}catch(e){}});}},_onInput:function(e){this.inherited(arguments);if(this.intermediateChanges){this.defer(function(){this._handleOnChange(this.get("value"),false);});}},_setPlaceHolderAttr:function(v){this._set("placeHolder",v);if(!this._phspan){this._attachPoints.push("_phspan");this._phspan=_320.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after");}this._phspan.innerHTML="";this._phspan.appendChild(this._phspan.ownerDocument.createTextNode(v));this._updatePlaceHolder();},_updatePlaceHolder:function(){if(this._phspan){this._phspan.style.display=(this.placeHolder&&!this.focused&&!this.textbox.value)?"":"none";}},_setValueAttr:function(_329,_32a,_32b){this.inherited(arguments);this._updatePlaceHolder();},getDisplayedValue:function(){_322.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use get('displayedValue') instead.","","2.0");return this.get("displayedValue");},setDisplayedValue:function(_32c){_322.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_32c);},_onBlur:function(e){if(this.disabled){return;}this.inherited(arguments);this._updatePlaceHolder();if(has("mozilla")){if(this.selectOnClick){this.textbox.selectionStart=this.textbox.selectionEnd=undefined;}}},_onFocus:function(by){if(this.disabled||this.readOnly){return;}this.inherited(arguments);this._updatePlaceHolder();}});if(has("ie")){_327.prototype._isTextSelected=function(){var _32d=this.ownerDocument.selection.createRange();var _32e=_32d.parentElement();return _32e==this.textbox&&_32d.text.length>0;};_326._setSelectionRange=_324._setSelectionRange=function(_32f,_330,stop){if(_32f.createTextRange){var r=_32f.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_330);r.moveEnd("character",stop-_330);r.select();}};}return _327;});},"dojo/_base/connect":function(){define(["./kernel","../on","../topic","../aspect","./event","../mouse","./sniff","./lang","../keys"],function(dojo,on,hub,_331,_332,_333,has,lang){has.add("events-keypress-typed",function(){var _334={charCode:0};try{_334=document.createEvent("KeyboardEvent");(_334.initKeyboardEvent||_334.initKeyEvent).call(_334,"keypress",true,true,null,false,false,false,false,9,3);}catch(e){}return _334.charCode==0&&!has("opera");});function _335(obj,_336,_337,_338,_339){_338=lang.hitch(_337,_338);if(!obj||!(obj.addEventListener||obj.attachEvent)){return _331.after(obj||dojo.global,_336,_338,true);}if(typeof _336=="string"&&_336.substring(0,2)=="on"){_336=_336.substring(2);}if(!obj){obj=dojo.global;}if(!_339){switch(_336){case "keypress":_336=_33a;break;case "mouseenter":_336=_333.enter;break;case "mouseleave":_336=_333.leave;break;}}return on(obj,_336,_338,_339);};var _33b={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};var _33c=has("mac")?"metaKey":"ctrlKey";var _33d=function(evt,_33e){var faux=lang.mixin({},evt,_33e);_33f(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};function _33f(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;};var _33a;if(has("events-keypress-typed")){var _340=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};_33a=function(_341,_342){var _343=on(_341,"keydown",function(evt){var k=evt.keyCode;var _344=(k!=13)&&k!=32&&(k!=27||!has("ie"))&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222)&&k!=229;if(_344||evt.ctrlKey){var c=_344?0:k;if(evt.ctrlKey){if(k==3||k==13){return _342.call(evt.currentTarget,evt);}else{if(c>95&&c<106){c-=48;}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=_33b[c]||c;}}}}var faux=_33d(evt,{type:"keypress",faux:true,charCode:c});_342.call(evt.currentTarget,faux);if(has("ie")){_340(evt,faux.keyCode);}}});var _345=on(_341,"keypress",function(evt){var c=evt.charCode;c=c>=32?c:0;evt=_33d(evt,{charCode:c,faux:true});return _342.call(this,evt);});return {remove:function(){_343.remove();_345.remove();}};};}else{if(has("opera")){_33a=function(_346,_347){return on(_346,"keypress",function(evt){var c=evt.which;if(c==3){c=99;}c=c<32&&!evt.shiftKey?0:c;if(evt.ctrlKey&&!evt.shiftKey&&c>=65&&c<=90){c+=32;}return _347.call(this,_33d(evt,{charCode:c}));});};}else{_33a=function(_348,_349){return on(_348,"keypress",function(evt){_33f(evt);return _349.call(this,evt);});};}}var _34a={_keypress:_33a,connect:function(obj,_34b,_34c,_34d,_34e){var a=arguments,args=[],i=0;args.push(typeof a[0]=="string"?null:a[i++],a[i++]);var a1=a[i+1];args.push(typeof a1=="string"||typeof a1=="function"?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){args.push(a[i]);}return _335.apply(this,args);},disconnect:function(_34f){if(_34f){_34f.remove();}},subscribe:function(_350,_351,_352){return hub.subscribe(_350,lang.hitch(_351,_352));},publish:function(_353,args){return hub.publish.apply(hub,[_353].concat(args));},connectPublisher:function(_354,obj,_355){var pf=function(){_34a.publish(_354,arguments);};return _355?_34a.connect(obj,_355,pf):_34a.connect(obj,pf);},isCopyKey:function(e){return e[_33c];}};_34a.unsubscribe=_34a.disconnect;1&&lang.mixin(dojo,_34a);return _34a;});},"dojox/mvc/WidgetList":function(){define("dojox/mvc/WidgetList",["require","dojo/_base/array","dojo/_base/lang","dojo/_base/declare","dijit/_Container","dijit/_WidgetBase","dojox/mvc/Templated"],function(_356,_357,lang,_358,_359,_35a,_35b){var _35c="data-mvc-child-type",_35d="data-mvc-child-mixins",_35e="data-mvc-child-props",_35f="data-mvc-child-bindings";function _360(_361){return eval("({"+_361+"})");};function _362(w){for(var h=null;h=(w._handles||[]).pop();){h.unwatch();}};var _363=_358("dojox.mvc.WidgetList",[_35a,_359],{childClz:null,childType:"",childMixins:"",childParams:null,childBindings:null,children:null,templateString:"",partialRebuild:false,_relTargetProp:"children",postMixInProperties:function(){this.inherited(arguments);if(this[_35c]){this.childType=this[_35c];}if(this[_35d]){this.childMixins=this[_35d];}},startup:function(){this.inherited(arguments);this._setChildrenAttr(this.children);},_setChildrenAttr:function(_364){var _365=this.children;this._set("children",_364);if(this._started&&(!this._builtOnce||_365!=_364)){_362(this);this._builtOnce=true;this._buildChildren(_364);if(lang.isArray(_364)){var _366=this;!this.partialRebuild&&lang.isFunction(_364.watchElements)&&(this._handles=this._handles||[]).push(_364.watchElements(function(idx,_367,adds){_366._buildChildren(_364);}));_364.watch!=={}.watch&&(this._handles=this._handles||[]).push(_364.watch(function(name,old,_368){if(!isNaN(name)){var w=_366.getChildren()[name-0];w&&w.set(w._relTargetProp||"target",_368);}}));}}},_buildChildren:function(_369){for(var cw=this.getChildren(),w=null;w=cw.pop();){this.removeChild(w);w.destroy();}if(!lang.isArray(_369)){return;}var _36a=lang.hitch(this,function(seq){if(this._buildChildrenSeq>seq){return;}var clz=_358([].slice.call(arguments,1),{}),_36b=this;function _36c(_36d,_36e){_357.forEach(_357.map(_36d,function(_36f,idx){var _370={ownerDocument:_36b.ownerDocument,parent:_36b,indexAtStartup:_36e+idx};_370[(_36b.childParams||_36b[_35e]&&_360.call(_370,_36b[_35e])||{})._relTargetProp||clz.prototype._relTargetProp||"target"]=_36f;var _371=_36b.childParams||_36b[_35e]&&_360.call(_370,_36b[_35e]),_372=_36b.childBindings||_36b[_35f]&&_360.call(_370,_36b[_35f]);if(_36b.templateString&&!_370.templateString&&!clz.prototype.templateString){_370.templateString=_36b.templateString;}if(_372&&!_370.bindings&&!clz.prototype.bindings){_370.bindings=_372;}return new clz(lang.mixin(_370,_371));}),function(_373,idx){_36b.addChild(_373,_36e+idx);});};_36c(_369,0);if(this.partialRebuild){lang.isFunction(_369.watchElements)&&(this._handles=this._handles||[]).push(_369.watchElements(function(idx,_374,adds){for(var i=0,l=(_374||[]).length;i<l;++i){_36b.removeChild(idx);}_36c(adds,idx);}));}},this._buildChildrenSeq=(this._buildChildrenSeq||0)+1);if(this.childClz){_36a(this.childClz);}else{if(this.childType){_356([this.childType].concat(this.childMixins&&this.childMixins.split(",")||[]),_36a);}else{_36a(_35b);}}},destroy:function(){_362(this);this.inherited(arguments);}});_363.prototype[_35c]=_363.prototype[_35d]=_363.prototype[_35e]=_363.prototype[_35f]="";return _363;});},"dojo/_base/fx":function(){define(["./kernel","./config","./lang","../Evented","./Color","./connect","./sniff","../dom","../dom-style"],function(dojo,_375,lang,_376,_377,_378,has,dom,_379){var _37a=lang.mixin;var _37b={};var _37c=_37b._Line=function(_37d,end){this.start=_37d;this.end=end;};_37c.prototype.getValue=function(n){return ((this.end-this.start)*n)+this.start;};var _37e=_37b.Animation=function(args){_37a(this,args);if(lang.isArray(this.curve)){this.curve=new _37c(this.curve[0],this.curve[1]);}};_37e.prototype=new _376();lang.extend(_37e,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var _37f=this._percent,_380=this.easing;return _380?_380(_37f):_37f;},_fire:function(evt,args){var a=args||[];if(this[evt]){if(_375.debugAtAllCosts){this[evt].apply(this,a);}else{try{this[evt].apply(this,a);}catch(e){console.error("exception in animation handler for:",evt);console.error(e);}}}return this;},play:function(_381,_382){var _383=this;if(_383._delayTimer){_383._clearTimer();}if(_382){_383._stopTimer();_383._active=_383._paused=false;_383._percent=0;}else{if(_383._active&&!_383._paused){return _383;}}_383._fire("beforeBegin",[_383.node]);var de=_381||_383.delay,_384=lang.hitch(_383,"_play",_382);if(de>0){_383._delayTimer=setTimeout(_384,de);return _383;}_384();return _383;},_play:function(_385){var _386=this;if(_386._delayTimer){_386._clearTimer();}_386._startTime=new Date().valueOf();if(_386._paused){_386._startTime-=_386.duration*_386._percent;}_386._active=true;_386._paused=false;var _387=_386.curve.getValue(_386._getStep());if(!_386._percent){if(!_386._startRepeatCount){_386._startRepeatCount=_386.repeat;}_386._fire("onBegin",[_387]);}_386._fire("onPlay",[_387]);_386._cycle();return _386;},pause:function(){var _388=this;if(_388._delayTimer){_388._clearTimer();}_388._stopTimer();if(!_388._active){return _388;}_388._paused=true;_388._fire("onPause",[_388.curve.getValue(_388._getStep())]);return _388;},gotoPercent:function(_389,_38a){var _38b=this;_38b._stopTimer();_38b._active=_38b._paused=true;_38b._percent=_389;if(_38a){_38b.play();}return _38b;},stop:function(_38c){var _38d=this;if(_38d._delayTimer){_38d._clearTimer();}if(!_38d._timer){return _38d;}_38d._stopTimer();if(_38c){_38d._percent=1;}_38d._fire("onStop",[_38d.curve.getValue(_38d._getStep())]);_38d._active=_38d._paused=false;return _38d;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){var _38e=this;if(_38e._active){var curr=new Date().valueOf();var step=_38e.duration===0?1:(curr-_38e._startTime)/(_38e.duration);if(step>=1){step=1;}_38e._percent=step;if(_38e.easing){step=_38e.easing(step);}_38e._fire("onAnimate",[_38e.curve.getValue(step)]);if(_38e._percent<1){_38e._startTimer();}else{_38e._active=false;if(_38e.repeat>0){_38e.repeat--;_38e.play(null,true);}else{if(_38e.repeat==-1){_38e.play(null,true);}else{if(_38e._startRepeatCount){_38e.repeat=_38e._startRepeatCount;_38e._startRepeatCount=0;}}}_38e._percent=0;_38e._fire("onEnd",[_38e.node]);!_38e.repeat&&_38e._stopTimer();}}return _38e;},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer;}});var ctr=0,_38f=null,_390={run:function(){}};lang.extend(_37e,{_startTimer:function(){if(!this._timer){this._timer=_378.connect(_390,"run",this,"_cycle");ctr++;}if(!_38f){_38f=setInterval(lang.hitch(_390,"run"),this.rate);}},_stopTimer:function(){if(this._timer){_378.disconnect(this._timer);this._timer=null;ctr--;}if(ctr<=0){clearInterval(_38f);_38f=null;ctr=0;}}});var _391=has("ie")?function(node){var ns=node.style;if(!ns.width.length&&_379.get(node,"width")=="auto"){ns.width="auto";}}:function(){};_37b._fade=function(args){args.node=dom.byId(args.node);var _392=_37a({properties:{}},args),_393=(_392.properties.opacity={});_393.start=!("start" in _392)?function(){return +_379.get(_392.node,"opacity")||0;}:_392.start;_393.end=_392.end;var anim=_37b.animateProperty(_392);_378.connect(anim,"beforeBegin",lang.partial(_391,_392.node));return anim;};_37b.fadeIn=function(args){return _37b._fade(_37a({end:1},args));};_37b.fadeOut=function(args){return _37b._fade(_37a({end:0},args));};_37b._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _394=function(_395){this._properties=_395;for(var p in _395){var prop=_395[p];if(prop.start instanceof _377){prop.tempColor=new _377();}}};_394.prototype.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p],_396=prop.start;if(_396 instanceof _377){ret[p]=_377.blendColors(_396,prop.end,r,prop.tempColor).toCss();}else{if(!lang.isArray(_396)){ret[p]=((prop.end-_396)*r)+_396+(p!="opacity"?prop.units||"px":0);}}}return ret;};_37b.animateProperty=function(args){var n=args.node=dom.byId(args.node);if(!args.easing){args.easing=dojo._defaultEasing;}var anim=new _37e(args);_378.connect(anim,"beforeBegin",anim,function(){var pm={};for(var p in this.properties){if(p=="width"||p=="height"){this.node.display="block";}var prop=this.properties[p];if(lang.isFunction(prop)){prop=prop(n);}prop=pm[p]=_37a({},(lang.isObject(prop)?prop:{end:prop}));if(lang.isFunction(prop.start)){prop.start=prop.start(n);}if(lang.isFunction(prop.end)){prop.end=prop.end(n);}var _397=(p.toLowerCase().indexOf("color")>=0);function _398(node,p){var v={height:node.offsetHeight,width:node.offsetWidth}[p];if(v!==undefined){return v;}v=_379.get(node,p);return (p=="opacity")?+v:(_397?v:parseFloat(v));};if(!("end" in prop)){prop.end=_398(n,p);}else{if(!("start" in prop)){prop.start=_398(n,p);}}if(_397){prop.start=new _377(prop.start);prop.end=new _377(prop.end);}else{prop.start=(p=="opacity")?+prop.start:parseFloat(prop.start);}}this.curve=new _394(pm);});_378.connect(anim,"onAnimate",lang.hitch(_379,"set",anim.node));return anim;};_37b.anim=function(node,_399,_39a,_39b,_39c,_39d){return _37b.animateProperty({node:node,duration:_39a||_37e.prototype.duration,properties:_399,easing:_39b,onEnd:_39c}).play(_39d||0);};if(1){_37a(dojo,_37b);dojo._Animation=_37e;}return _37b;});},"dojo/_base/config":function(){define(["../has","require"],function(has,_39e){var _39f={};if(1){var src=_39e.rawConfig,p;for(p in src){_39f[p]=src[p];}}else{var _3a0=function(_3a1,_3a2,_3a3){for(p in _3a1){p!="has"&&has.add(_3a2+p,_3a1[p],0,_3a3);}};_39f=1?_39e.rawConfig:this.dojoConfig||this.djConfig||{};_3a0(_39f,"config",1);_3a0(_39f.has,"",1);}return _39f;});},"dojo/_base/unload":function(){define(["./kernel","./lang","../on"],function(dojo,lang,on){var win=window;var _3a4={addOnWindowUnload:function(obj,_3a5){if(!dojo.windowUnloaded){on(win,"unload",(dojo.windowUnloaded=function(){}));}on(win,"unload",lang.hitch(obj,_3a5));},addOnUnload:function(obj,_3a6){on(win,"beforeunload",lang.hitch(obj,_3a6));}};dojo.addOnWindowUnload=_3a4.addOnWindowUnload;dojo.addOnUnload=_3a4.addOnUnload;return _3a4;});},"dojox/mvc/_atBindingMixin":function(){define("dojox/mvc/_atBindingMixin",["dojo/_base/array","dojo/_base/lang","dojo/_base/declare","dojo/has","./resolve","./sync"],function(_3a7,lang,_3a8,has,_3a9,sync){if(has("mvc-bindings-log-api")){function _3aa(_3ab,_3ac){return [_3ab._setIdAttr||!_3ab.declaredClass?_3ab:_3ab.declaredClass,_3ac].join(":");};function _3ad(_3ae,_3af){console.warn(_3af+" could not be resolved"+(typeof _3ae=="string"?(" with "+_3ae):"")+".");};}function _3b0(w){var _3b1;try{_3b1=require("dijit/registry");}catch(e){return;}var pn=w.domNode&&w.domNode.parentNode,pw,pb;while(pn){pw=_3b1.getEnclosingWidget(pn);if(pw){var _3b2=pw._relTargetProp||"target",pt=lang.isFunction(pw.get)?pw.get(_3b2):pw[_3b2];if(pt||_3b2 in pw.constructor.prototype){return pw;}}pn=pw&&pw.domNode.parentNode;}};function bind(_3b3,_3b4,_3b5,_3b6,_3b7){var _3b8={},_3b9=_3b0(_3b5),_3ba=_3b9&&_3b9._relTargetProp||"target";function _3bb(){_3b8["Two"]&&_3b8["Two"].unwatch();delete _3b8["Two"];var _3bc=_3b9&&(lang.isFunction(_3b9.get)?_3b9.get(_3ba):_3b9[_3ba]),_3bd=_3a9(_3b3,_3bc),_3be=_3a9(_3b5,_3bc);if(has("mvc-bindings-log-api")&&(!_3bd||/^rel:/.test(_3b3)&&!_3b9)){_3ad(_3b3,_3b4);}if(has("mvc-bindings-log-api")&&(!_3be||/^rel:/.test(_3b5)&&!_3b9)){_3ad(_3b5,_3b6);}if(!_3bd||!_3be||(/^rel:/.test(_3b3)||/^rel:/.test(_3b5))&&!_3b9){return;}if((!_3bd.set||!_3bd.watch)&&_3b4=="*"){if(has("mvc-bindings-log-api")){_3ad(_3b3,_3b4);}return;}if(_3b4==null){lang.isFunction(_3be.set)?_3be.set(_3b6,_3bd):(_3be[_3b6]=_3bd);if(has("mvc-bindings-log-api")){}}else{_3b8["Two"]=sync(_3bd,_3b4,_3be,_3b6,_3b7);}};_3bb();if(_3b9&&/^rel:/.test(_3b3)||/^rel:/.test(_3b5)&&lang.isFunction(_3b9.set)&&lang.isFunction(_3b9.watch)){_3b8["rel"]=_3b9.watch(_3ba,function(name,old,_3bf){if(old!==_3bf){if(has("mvc-bindings-log-api")){}_3bb();}});}var h={};h.unwatch=h.remove=function(){for(var s in _3b8){_3b8[s]&&_3b8[s].unwatch();delete _3b8[s];}};return h;};var _3c0=_3a8("dojox/mvc/_atBindingMixin",null,{dataBindAttr:"data-mvc-bindings",_dbpostscript:function(_3c1,_3c2){var refs=this._refs=(_3c1||{}).refs||{};for(var prop in _3c1){if((_3c1[prop]||{}).atsignature=="dojox.mvc.at"){var h=_3c1[prop];delete _3c1[prop];refs[prop]=h;}}},_startAtWatchHandles:function(){var refs=this._refs;if(refs){var _3c3=this._atWatchHandles=this._atWatchHandles||{};this._excludes=null;for(var prop in refs){if(!refs[prop]||prop=="*"){continue;}_3c3[prop]=bind(refs[prop].target,refs[prop].targetProp,this,prop,{bindDirection:refs[prop].bindDirection,converter:refs[prop].converter});}if((refs["*"]||{}).atsignature=="dojox.mvc.at"){_3c3["*"]=bind(refs[prop].target,refs["*"].targetProp,this,"*",{bindDirection:refs["*"].bindDirection,converter:refs["*"].converter});}}},_stopAtWatchHandles:function(){for(var s in this._atWatchHandles){this._atWatchHandles[s].unwatch();delete this._atWatchHandles[s];}},_setAtWatchHandle:function(name,_3c4){if(name=="ref"){throw new Error(this+": 1.7 ref syntax used in conjuction with 1.8 dojox/mvc/at syntax, which is not supported.");}var _3c5=this._atWatchHandles=this._atWatchHandles||{};if(_3c5[name]){_3c5[name].unwatch();delete _3c5[name];}this[name]=null;this._excludes=null;if(this._started){_3c5[name]=bind(_3c4.target,_3c4.targetProp,this,name,{bindDirection:_3c4.bindDirection,converter:_3c4.converter});}else{this._refs[name]=_3c4;}},_setBind:function(_3c6){var list=eval("({"+_3c6+"})");for(var prop in list){var h=list[prop];if((h||{}).atsignature!="dojox.mvc.at"){console.warn(prop+" in "+dataBindAttr+" is not a data binding handle.");}else{this._setAtWatchHandle(prop,h);}}},_getExcludesAttr:function(){if(this._excludes){return this._excludes;}var list=[];for(var s in this._atWatchHandles){if(s!="*"){list.push(s);}}return list;},_getPropertiesAttr:function(){if(this.constructor._attribs){return this.constructor._attribs;}var list=["onClick"].concat(this.constructor._setterAttrs);_3a7.forEach(["id","excludes","properties","ref","binding"],function(s){var _3c7=_3a7.indexOf(list,s);if(_3c7>=0){list.splice(_3c7,1);}});return this.constructor._attribs=list;}});_3c0.prototype[_3c0.prototype.dataBindAttr]="";return _3c0;});},"dojo/selector/_loader":function(){define(["../has","require"],function(has,_3c8){"use strict";var _3c9=document.createElement("div");has.add("dom-qsa2.1",!!_3c9.querySelectorAll);has.add("dom-qsa3",function(){try{_3c9.innerHTML="<p class='TEST'></p>";return _3c9.querySelectorAll(".TEST:empty").length==1;}catch(e){}});var _3ca;var acme="./acme",lite="./lite";return {load:function(id,_3cb,_3cc,_3cd){var req=_3c8;id=id=="default"?has("config-selectorEngine")||"css3":id;id=id=="css2"||id=="lite"?lite:id=="css2.1"?has("dom-qsa2.1")?lite:acme:id=="css3"?has("dom-qsa3")?lite:acme:id=="acme"?acme:(req=_3cb)&&id;if(id.charAt(id.length-1)=="?"){id=id.substring(0,id.length-1);var _3ce=true;}if(_3ce&&(has("dom-compliant-qsa")||_3ca)){return _3cc(_3ca);}req([id],function(_3cf){if(id!="./lite"){_3ca=_3cf;}_3cc(_3cf);});}};});},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(dojo,has,lang){var mix=lang.mixin,op=Object.prototype,opts=op.toString,xtor=new Function,_3d0=0,_3d1="constructor";function err(msg,cls){throw new Error("declare"+(cls?" "+cls:"")+": "+msg);};function _3d2(_3d3,_3d4){var _3d5=[],_3d6=[{cls:0,refs:[]}],_3d7={},_3d8=1,l=_3d3.length,i=0,j,lin,base,top,_3d9,rec,name,refs;for(;i<l;++i){base=_3d3[i];if(!base){err("mixin #"+i+" is unknown. Did you use dojo.require to pull it in?",_3d4);}else{if(opts.call(base)!="[object Function]"){err("mixin #"+i+" is not a callable constructor.",_3d4);}}lin=base._meta?base._meta.bases:[base];top=0;for(j=lin.length-1;j>=0;--j){_3d9=lin[j].prototype;if(!_3d9.hasOwnProperty("declaredClass")){_3d9.declaredClass="uniqName_"+(_3d0++);}name=_3d9.declaredClass;if(!_3d7.hasOwnProperty(name)){_3d7[name]={count:0,refs:[],cls:lin[j]};++_3d8;}rec=_3d7[name];if(top&&top!==rec){rec.refs.push(top);++top.count;}top=rec;}++top.count;_3d6[0].refs.push(top);}while(_3d6.length){top=_3d6.pop();_3d5.push(top.cls);--_3d8;while(refs=top.refs,refs.length==1){top=refs[0];if(!top||--top.count){top=0;break;}_3d5.push(top.cls);--_3d8;}if(top){for(i=0,l=refs.length;i<l;++i){top=refs[i];if(!--top.count){_3d6.push(top);}}}}if(_3d8){err("can't build consistent linearization",_3d4);}base=_3d3[0];_3d5[0]=base?base._meta&&base===_3d5[_3d5.length-base._meta.bases.length]?base._meta.bases.length:1:0;return _3d5;};function _3da(args,a,f){var name,_3db,_3dc,_3dd,meta,base,_3de,opf,pos,_3df=this._inherited=this._inherited||{};if(typeof args=="string"){name=args;args=a;a=f;}f=0;_3dd=args.callee;name=name||_3dd.nom;if(!name){err("can't deduce a name to call inherited()",this.declaredClass);}meta=this.constructor._meta;_3dc=meta.bases;pos=_3df.p;if(name!=_3d1){if(_3df.c!==_3dd){pos=0;base=_3dc[0];meta=base._meta;if(meta.hidden[name]!==_3dd){_3db=meta.chains;if(_3db&&typeof _3db[name]=="string"){err("calling chained method with inherited: "+name,this.declaredClass);}do{meta=base._meta;_3de=base.prototype;if(meta&&(_3de[name]===_3dd&&_3de.hasOwnProperty(name)||meta.hidden[name]===_3dd)){break;}}while(base=_3dc[++pos]);pos=base?pos:-1;}}base=_3dc[++pos];if(base){_3de=base.prototype;if(base._meta&&_3de.hasOwnProperty(name)){f=_3de[name];}else{opf=op[name];do{_3de=base.prototype;f=_3de[name];if(f&&(base._meta?_3de.hasOwnProperty(name):f!==opf)){break;}}while(base=_3dc[++pos]);}}f=base&&f||op[name];}else{if(_3df.c!==_3dd){pos=0;meta=_3dc[0]._meta;if(meta&&meta.ctor!==_3dd){_3db=meta.chains;if(!_3db||_3db.constructor!=="manual"){err("calling chained constructor with inherited",this.declaredClass);}while(base=_3dc[++pos]){meta=base._meta;if(meta&&meta.ctor===_3dd){break;}}pos=base?pos:-1;}}while(base=_3dc[++pos]){meta=base._meta;f=meta?meta.ctor:base;if(f){break;}}f=base&&f;}_3df.c=f;_3df.p=pos;if(f){return a===true?f:f.apply(this,a||args);}};function _3e0(name,args){if(typeof name=="string"){return this.__inherited(name,args,true);}return this.__inherited(name,true);};function _3e1(args,a1,a2){var f=this.getInherited(args,a1);if(f){return f.apply(this,a2||a1||args);}};var _3e2=dojo.config.isDebug?_3e1:_3da;function _3e3(cls){var _3e4=this.constructor._meta.bases;for(var i=0,l=_3e4.length;i<l;++i){if(_3e4[i]===cls){return true;}}return this instanceof cls;};function _3e5(_3e6,_3e7){for(var name in _3e7){if(name!=_3d1&&_3e7.hasOwnProperty(name)){_3e6[name]=_3e7[name];}}if(has("bug-for-in-skips-shadowed")){for(var _3e8=lang._extraNames,i=_3e8.length;i;){name=_3e8[--i];if(name!=_3d1&&_3e7.hasOwnProperty(name)){_3e6[name]=_3e7[name];}}}};function _3e9(_3ea,_3eb){var name,t;for(name in _3eb){t=_3eb[name];if((t!==op[name]||!(name in op))&&name!=_3d1){if(opts.call(t)=="[object Function]"){t.nom=name;}_3ea[name]=t;}}if(has("bug-for-in-skips-shadowed")){for(var _3ec=lang._extraNames,i=_3ec.length;i;){name=_3ec[--i];t=_3eb[name];if((t!==op[name]||!(name in op))&&name!=_3d1){if(opts.call(t)=="[object Function]"){t.nom=name;}_3ea[name]=t;}}}return _3ea;};function _3ed(_3ee){_3ef.safeMixin(this.prototype,_3ee);return this;};function _3f0(_3f1){return _3ef([this].concat(_3f1));};function _3f2(_3f3,_3f4){return function(){var a=arguments,args=a,a0=a[0],f,i,m,l=_3f3.length,_3f5;if(!(this instanceof a.callee)){return _3f6(a);}if(_3f4&&(a0&&a0.preamble||this.preamble)){_3f5=new Array(_3f3.length);_3f5[0]=a;for(i=0;;){a0=a[0];if(a0){f=a0.preamble;if(f){a=f.apply(this,a)||a;}}f=_3f3[i].prototype;f=f.hasOwnProperty("preamble")&&f.preamble;if(f){a=f.apply(this,a)||a;}if(++i==l){break;}_3f5[i]=a;}}for(i=l-1;i>=0;--i){f=_3f3[i];m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,_3f5?_3f5[i]:a);}}f=this.postscript;if(f){f.apply(this,args);}};};function _3f7(ctor,_3f8){return function(){var a=arguments,t=a,a0=a[0],f;if(!(this instanceof a.callee)){return _3f6(a);}if(_3f8){if(a0){f=a0.preamble;if(f){t=f.apply(this,t)||t;}}f=this.preamble;if(f){f.apply(this,t);}}if(ctor){ctor.apply(this,a);}f=this.postscript;if(f){f.apply(this,a);}};};function _3f9(_3fa){return function(){var a=arguments,i=0,f,m;if(!(this instanceof a.callee)){return _3f6(a);}for(;f=_3fa[i];++i){m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,a);break;}}f=this.postscript;if(f){f.apply(this,a);}};};function _3fb(name,_3fc,_3fd){return function(){var b,m,f,i=0,step=1;if(_3fd){i=_3fc.length-1;step=-1;}for(;b=_3fc[i];i+=step){m=b._meta;f=(m?m.hidden:b.prototype)[name];if(f){f.apply(this,arguments);}}};};function _3fe(ctor){xtor.prototype=ctor.prototype;var t=new xtor;xtor.prototype=null;return t;};function _3f6(args){var ctor=args.callee,t=_3fe(ctor);ctor.apply(t,args);return t;};function _3ef(_3ff,_400,_401){if(typeof _3ff!="string"){_401=_400;_400=_3ff;_3ff="";}_401=_401||{};var _402,i,t,ctor,name,_403,_404,_405=1,_406=_400;if(opts.call(_400)=="[object Array]"){_403=_3d2(_400,_3ff);t=_403[0];_405=_403.length-t;_400=_403[_405];}else{_403=[0];if(_400){if(opts.call(_400)=="[object Function]"){t=_400._meta;_403=_403.concat(t?t.bases:_400);}else{err("base class is not a callable constructor.",_3ff);}}else{if(_400!==null){err("unknown base class. Did you use dojo.require to pull it in?",_3ff);}}}if(_400){for(i=_405-1;;--i){_402=_3fe(_400);if(!i){break;}t=_403[i];(t._meta?_3e5:mix)(_402,t.prototype);ctor=new Function;ctor.superclass=_400;ctor.prototype=_402;_400=_402.constructor=ctor;}}else{_402={};}_3ef.safeMixin(_402,_401);t=_401.constructor;if(t!==op.constructor){t.nom=_3d1;_402.constructor=t;}for(i=_405-1;i;--i){t=_403[i]._meta;if(t&&t.chains){_404=mix(_404||{},t.chains);}}if(_402["-chains-"]){_404=mix(_404||{},_402["-chains-"]);}t=!_404||!_404.hasOwnProperty(_3d1);_403[0]=ctor=(_404&&_404.constructor==="manual")?_3f9(_403):(_403.length==1?_3f7(_401.constructor,t):_3f2(_403,t));ctor._meta={bases:_403,hidden:_401,chains:_404,parents:_406,ctor:_401.constructor};ctor.superclass=_400&&_400.prototype;ctor.extend=_3ed;ctor.createSubclass=_3f0;ctor.prototype=_402;_402.constructor=ctor;_402.getInherited=_3e0;_402.isInstanceOf=_3e3;_402.inherited=_3e2;_402.__inherited=_3da;if(_3ff){_402.declaredClass=_3ff;lang.setObject(_3ff,ctor);}if(_404){for(name in _404){if(_402[name]&&typeof _404[name]=="string"&&name!=_3d1){t=_402[name]=_3fb(name,_403,_404[name]==="after");t.nom=name;}}}return ctor;};dojo.safeMixin=_3ef.safeMixin=_3e9;dojo.declare=_3ef;return _3ef;});},"url:dijit/templates/InlineEditBox.html":"<span data-dojo-attach-point=\"editNode\" role=\"presentation\" class=\"dijitReset dijitInline dijitOffScreen\"\n\tdata-dojo-attach-event=\"onkeypress: _onKeyPress\"\n\t><span data-dojo-attach-point=\"editorPlaceholder\"></span\n\t><span data-dojo-attach-point=\"buttonContainer\"\n\t\t><button data-dojo-type=\"dijit/form/Button\" data-dojo-props=\"label: '${buttonSave}', 'class': 'saveButton'\"\n\t\t\tdata-dojo-attach-point=\"saveButton\" data-dojo-attach-event=\"onClick:save\"></button\n\t\t><button data-dojo-type=\"dijit/form/Button\"  data-dojo-props=\"label: '${buttonCancel}', 'class': 'cancelButton'\"\n\t\t\tdata-dojo-attach-point=\"cancelButton\" data-dojo-attach-event=\"onClick:cancel\"></button\n\t></span\n></span>\n","dojo/errors/RequestTimeoutError":function(){define("dojo/errors/RequestTimeoutError",["./create","./RequestError"],function(_407,_408){return _407("RequestTimeoutError",null,_408,{dojoType:"timeout"});});},"dojo/json":function(){define(["./has"],function(has){"use strict";var _409=typeof JSON!="undefined";has.add("json-parse",_409);has.add("json-stringify",_409&&JSON.stringify({a:0},function(k,v){return v||1;})=="{\"a\":1}");if(has("json-stringify")){return JSON;}else{var _40a=function(str){return ("\""+str.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:has("json-parse")?JSON.parse:function(str,_40b){if(_40b&&!/^([\s\[\{]*(?:"(?:\\.|[^"])+"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(str)){throw new SyntaxError("Invalid characters in JSON");}return eval("("+str+")");},stringify:function(_40c,_40d,_40e){var _40f;if(typeof _40d=="string"){_40e=_40d;_40d=null;}function _410(it,_411,key){if(_40d){it=_40d(key,it);}var val,_412=typeof it;if(_412=="number"){return isFinite(it)?it+"":"null";}if(_412=="boolean"){return it+"";}if(it===null){return "null";}if(typeof it=="string"){return _40a(it);}if(_412=="function"||_412=="undefined"){return _40f;}if(typeof it.toJSON=="function"){return _410(it.toJSON(key),_411,key);}if(it instanceof Date){return "\"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z\"".replace(/\{(\w+)(\+)?\}/g,function(t,prop,plus){var num=it["getUTC"+prop]()+(plus?1:0);return num<10?"0"+num:num;});}if(it.valueOf()!==it){return _410(it.valueOf(),_411,key);}var _413=_40e?(_411+_40e):"";var sep=_40e?" ":"";var _414=_40e?"\n":"";if(it instanceof Array){var itl=it.length,res=[];for(key=0;key<itl;key++){var obj=it[key];val=_410(obj,_413,key);if(typeof val!="string"){val="null";}res.push(_414+_413+val);}return "["+res.join(",")+_414+_411+"]";}var _415=[];for(key in it){var _416;if(it.hasOwnProperty(key)){if(typeof key=="number"){_416="\""+key+"\"";}else{if(typeof key=="string"){_416=_40a(key);}else{continue;}}val=_410(it[key],_413,key);if(typeof val!="string"){continue;}_415.push(_414+_413+_416+":"+sep+val);}}return "{"+_415.join(",")+_414+_411+"}";};return _410(_40c,"","");}};}});},"dojo/_base/json":function(){define(["./kernel","../json"],function(dojo,json){dojo.fromJson=function(js){return eval("("+js+")");};dojo._escapeString=json.stringify;dojo.toJsonIndentStr="\t";dojo.toJson=function(it,_417){return json.stringify(it,function(key,_418){if(_418){var tf=_418.__json__||_418.json;if(typeof tf=="function"){return tf.call(_418);}}return _418;},_417&&dojo.toJsonIndentStr);};return dojo;});},"dijit/form/_FormWidgetMixin":function(){define("dijit/form/_FormWidgetMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/mouse","dojo/sniff","dojo/window","../a11y"],function(_419,_41a,_41b,_41c,lang,_41d,has,_41e,a11y){return _41a("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:false,intermediateChanges:false,scrollOnFocus:true,_setIdAttr:"focusNode",_setDisabledAttr:function(_41f){this._set("disabled",_41f);_41b.set(this.focusNode,"disabled",_41f);if(this.valueNode){_41b.set(this.valueNode,"disabled",_41f);}this.focusNode.setAttribute("aria-disabled",_41f?"true":"false");if(_41f){this._set("hovering",false);this._set("active",false);var _420="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:("_setTabIndexAttr" in this)?this._setTabIndexAttr:"focusNode";_419.forEach(lang.isArray(_420)?_420:[_420],function(_421){var node=this[_421];if(has("webkit")||a11y.hasDefaultTabStop(node)){node.setAttribute("tabIndex","-1");}else{node.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.set("tabIndex",this.tabIndex);}}},_onFocus:function(by){if(by=="mouse"&&this.isFocusable()){var _422=this.connect(this.focusNode,"onfocus",function(){this.disconnect(_423);this.disconnect(_422);});var _423=this.connect(this.ownerDocumentBody,"onmouseup",function(){this.disconnect(_423);this.disconnect(_422);if(this.focused){this.focus();}});}if(this.scrollOnFocus){this.defer(function(){_41e.scrollIntoView(this.domNode);});}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(_41c.get(this.domNode,"display")!="none");},focus:function(){if(!this.disabled&&this.focusNode.focus){try{this.focusNode.focus();}catch(e){}}},compare:function(val1,val2){if(typeof val1=="number"&&typeof val2=="number"){return (isNaN(val1)&&isNaN(val2))?0:val1-val2;}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(){},_onChangeActive:false,_handleOnChange:function(_424,_425){if(this._lastValueReported==undefined&&(_425===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_424;}this._pendingOnChange=this._pendingOnChange||(typeof _424!=typeof this._lastValueReported)||(this.compare(_424,this._lastValueReported)!=0);if((this.intermediateChanges||_425||_425===undefined)&&this._pendingOnChange){this._lastValueReported=_424;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){this._onChangeHandle.remove();}this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(_424);});}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){this._onChangeHandle.remove();this.onChange(this._lastValueReported);}this.inherited(arguments);}});});},"dojo/i18n":function(){define(["./_base/kernel","require","./has","./_base/array","./_base/config","./_base/lang","./_base/xhr","./json","module"],function(dojo,_426,has,_427,_428,lang,xhr,json,_429){has.add("dojo-preload-i18n-Api",1);1||has.add("dojo-v1x-i18n-Api",1);var _42a=dojo.i18n={},_42b=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,_42c=function(root,_42d,_42e,_42f){for(var _430=[_42e+_42f],_431=_42d.split("-"),_432="",i=0;i<_431.length;i++){_432+=(_432?"-":"")+_431[i];if(!root||root[_432]){_430.push(_42e+_432+"/"+_42f);}}return _430;},_433={},_434=function(_435,_436,_437){_437=_437?_437.toLowerCase():dojo.locale;_435=_435.replace(/\./g,"/");_436=_436.replace(/\./g,"/");return (/root/i.test(_437))?(_435+"/nls/"+_436):(_435+"/nls/"+_437+"/"+_436);},_438=dojo.getL10nName=function(_439,_43a,_43b){return _439=_429.id+"!"+_434(_439,_43a,_43b);},_43c=function(_43d,_43e,_43f,_440,_441,load){_43d([_43e],function(root){var _442=lang.clone(root.root),_443=_42c(!root._v1x&&root,_441,_43f,_440);_43d(_443,function(){for(var i=1;i<_443.length;i++){_442=lang.mixin(lang.clone(_442),arguments[i]);}var _444=_43e+"/"+_441;_433[_444]=_442;load();});});},_445=function(id,_446){return /^\./.test(id)?_446(id):id;},_447=function(_448){var list=_428.extraLocale||[];list=lang.isArray(list)?list:[list];list.push(_448);return list;},load=function(id,_449,load){if(has("dojo-preload-i18n-Api")){var _44a=id.split("*"),_44b=_44a[1]=="preload";if(_44b){if(!_433[id]){_433[id]=1;_44c(_44a[2],json.parse(_44a[3]),1,_449);}load(1);}if(_44b||_44d(id,_449,load)){return;}}var _44e=_42b.exec(id),_44f=_44e[1]+"/",_450=_44e[5]||_44e[4],_451=_44f+_450,_452=(_44e[5]&&_44e[4]),_453=_452||dojo.locale,_454=_451+"/"+_453,_455=_452?[_453]:_447(_453),_456=_455.length,_457=function(){if(!--_456){load(lang.delegate(_433[_454]));}};_427.forEach(_455,function(_458){var _459=_451+"/"+_458;if(has("dojo-preload-i18n-Api")){_45a(_459);}if(!_433[_459]){_43c(_449,_451,_44f,_450,_458,_457);}else{_457();}});};if(has("dojo-unit-tests")){var _45b=_42a.unitTests=[];}if(has("dojo-preload-i18n-Api")||1){var _45c=_42a.normalizeLocale=function(_45d){var _45e=_45d?_45d.toLowerCase():dojo.locale;return _45e=="root"?"ROOT":_45e;},isXd=function(mid,_45f){return (1&&1)?_45f.isXdUrl(_426.toUrl(mid+".js")):true;},_460=0,_461=[],_44c=_42a._preloadLocalizations=function(_462,_463,_464,_465){_465=_465||_426;function _466(mid,_467){if(isXd(mid,_465)||_464){_465([mid],_467);}else{_471([mid],_467,_465);}};function _468(_469,func){var _46a=_469.split("-");while(_46a.length){if(func(_46a.join("-"))){return;}_46a.pop();}func("ROOT");};function _46b(_46c){_46c=_45c(_46c);_468(_46c,function(loc){if(_427.indexOf(_463,loc)>=0){var mid=_462.replace(/\./g,"/")+"_"+loc;_460++;_466(mid,function(_46d){for(var p in _46d){_433[_426.toAbsMid(p)+"/"+loc]=_46d[p];}--_460;while(!_460&&_461.length){load.apply(null,_461.shift());}});return true;}return false;});};_46b();_427.forEach(dojo.config.extraLocale,_46b);},_44d=function(id,_46e,load){if(_460){_461.push([id,_46e,load]);}return _460;},_45a=function(){};}if(1){var _46f={},_470=new Function("__bundle","__checkForLegacyModules","__mid","__amdValue","var define = function(mid, factory){define.called = 1; __amdValue.result = factory || mid;},"+"\t   require = function(){define.called = 1;};"+"try{"+"define.called = 0;"+"eval(__bundle);"+"if(define.called==1)"+"return __amdValue;"+"if((__checkForLegacyModules = __checkForLegacyModules(__mid)))"+"return __checkForLegacyModules;"+"}catch(e){}"+"try{"+"return eval('('+__bundle+')');"+"}catch(e){"+"return e;"+"}"),_471=function(deps,_472,_473){var _474=[];_427.forEach(deps,function(mid){var url=_473.toUrl(mid+".js");function load(text){var _475=_470(text,_45a,mid,_46f);if(_475===_46f){_474.push(_433[url]=_46f.result);}else{if(_475 instanceof Error){console.error("failed to evaluate i18n bundle; url="+url,_475);_475={};}_474.push(_433[url]=(/nls\/[^\/]+\/[^\/]+$/.test(url)?_475:{root:_475,_v1x:1}));}};if(_433[url]){_474.push(_433[url]);}else{var _476=_473.syncLoadNls(mid);if(_476){_474.push(_476);}else{if(!xhr){try{_473.getText(url,true,load);}catch(e){_474.push(_433[url]={});}}else{xhr.get({url:url,sync:true,load:load,error:function(){_474.push(_433[url]={});}});}}}});_472&&_472.apply(null,_474);};_45a=function(_477){for(var _478,_479=_477.split("/"),_47a=dojo.global[_479[0]],i=1;_47a&&i<_479.length-1;_47a=_47a[_479[i++]]){}if(_47a){_478=_47a[_479[i]];if(!_478){_478=_47a[_479[i].replace(/-/g,"_")];}if(_478){_433[_477]=_478;}}return _478;};_42a.getLocalization=function(_47b,_47c,_47d){var _47e,_47f=_434(_47b,_47c,_47d);load(_47f,(!isXd(_47f,_426)?function(deps,_480){_471(deps,_480,_426);}:_426),function(_481){_47e=_481;});return _47e;};if(has("dojo-unit-tests")){_45b.push(function(doh){doh.register("tests.i18n.unit",function(t){var _482;_482=_470("{prop:1}",_45a,"nonsense",_46f);t.is({prop:1},_482);t.is(undefined,_482[1]);_482=_470("({prop:1})",_45a,"nonsense",_46f);t.is({prop:1},_482);t.is(undefined,_482[1]);_482=_470("{'prop-x':1}",_45a,"nonsense",_46f);t.is({"prop-x":1},_482);t.is(undefined,_482[1]);_482=_470("({'prop-x':1})",_45a,"nonsense",_46f);t.is({"prop-x":1},_482);t.is(undefined,_482[1]);_482=_470("define({'prop-x':1})",_45a,"nonsense",_46f);t.is(_46f,_482);t.is({"prop-x":1},_46f.result);_482=_470("define('some/module', {'prop-x':1})",_45a,"nonsense",_46f);t.is(_46f,_482);t.is({"prop-x":1},_46f.result);_482=_470("this is total nonsense and should throw an error",_45a,"nonsense",_46f);t.is(_482 instanceof Error,true);});});}}return lang.mixin(_42a,{dynamic:true,normalize:_445,load:load,cache:_433});});},"dojo/dom-construct":function(){define(["exports","./_base/kernel","./sniff","./_base/window","./dom","./dom-attr","./on"],function(_483,dojo,has,win,dom,attr,on){var _484={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"]},_485=/<\s*([\w\:]+)/,_486={},_487=0,_488="__"+dojo._scopeName+"ToDomId";for(var _489 in _484){if(_484.hasOwnProperty(_489)){var tw=_484[_489];tw.pre=_489=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}}function _48a(node,ref){var _48b=ref.parentNode;if(_48b){_48b.insertBefore(node,ref);}};function _48c(node,ref){var _48d=ref.parentNode;if(_48d){if(_48d.lastChild==ref){_48d.appendChild(node);}else{_48d.insertBefore(node,ref.nextSibling);}}};var _48e=null,_48f;on(window,"unload",function(){_48e=null;});_483.toDom=function toDom(frag,doc){doc=doc||win.doc;var _490=doc[_488];if(!_490){doc[_488]=_490=++_487+"";_486[_490]=doc.createElement("div");}frag+="";var _491=frag.match(_485),tag=_491?_491[1].toLowerCase():"",_492=_486[_490],wrap,i,fc,df;if(_491&&_484[tag]){wrap=_484[tag];_492.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){_492=_492.firstChild;}}else{_492.innerHTML=frag;}if(_492.childNodes.length==1){return _492.removeChild(_492.firstChild);}df=doc.createDocumentFragment();while(fc=_492.firstChild){df.appendChild(fc);}return df;};_483.place=function place(node,_493,_494){_493=dom.byId(_493);if(typeof node=="string"){node=/^\s*</.test(node)?_483.toDom(node,_493.ownerDocument):dom.byId(node);}if(typeof _494=="number"){var cn=_493.childNodes;if(!cn.length||cn.length<=_494){_493.appendChild(node);}else{_48a(node,cn[_494<0?0:_494]);}}else{switch(_494){case "before":_48a(node,_493);break;case "after":_48c(node,_493);break;case "replace":_493.parentNode.replaceChild(node,_493);break;case "only":_483.empty(_493);_493.appendChild(node);break;case "first":if(_493.firstChild){_48a(node,_493.firstChild);break;}default:_493.appendChild(node);}}return node;};_483.create=function create(tag,_495,_496,pos){var doc=win.doc;if(_496){_496=dom.byId(_496);doc=_496.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_495){attr.set(tag,_495);}if(_496){_483.place(tag,_496,pos);}return tag;};_483.empty=has("ie")?function(node){node=dom.byId(node);for(var c;c=node.lastChild;){_483.destroy(c);}}:function(node){dom.byId(node).innerHTML="";};_483.destroy=function destroy(node){node=dom.byId(node);try{var doc=node.ownerDocument;if(!_48e||_48f!=doc){_48e=doc.createElement("div");_48f=doc;}_48e.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_48e.innerHTML="";}catch(e){}};});},"dojox/mvc/ModelRefController":function(){define("dojox/mvc/ModelRefController",["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/Stateful","./_Controller"],function(_497,_498,lang,_499,_49a){return _498("dojox.mvc.ModelRefController",_49a,{ownProps:null,_refModelProp:"model",_refInModelProp:"model",model:null,postscript:function(_49b,_49c){this._relTargetProp=(_49b||{})._refModelProp||this._refModelProp;this.inherited(arguments);},get:function(name){if(!this.hasControllerProperty(name)){var _49d=this[this._refModelProp];return !_49d?void 0:_49d.get?_49d.get(name):_49d[name];}return this.inherited(arguments);},_set:function(name,_49e){if(!this.hasControllerProperty(name)){var _49f=this[this._refModelProp];_49f&&(_49f.set?_49f.set(name,_49e):(_49f[name]=_49e));return this;}return this.inherited(arguments);},watch:function(name,_4a0){if(this.hasControllerProperty(name)){return this.inherited(arguments);}if(!_4a0){_4a0=name;name=null;}var hm=null,hp=null,_4a1=this;function _4a2(_4a3){if(hp){hp.unwatch();}if(_4a3&&lang.isFunction(_4a3.set)&&lang.isFunction(_4a3.watch)){hp=_4a3.watch.apply(_4a3,(name?[name]:[]).concat([function(name,old,_4a4){_4a0.call(_4a1,name,old,_4a4);}]));}};function _4a5(old,_4a6){var _4a7={};if(!name){_497.forEach([old,_4a6],function(_4a8){var list=_4a8&&_4a8.get("properties");if(list){_497.forEach(list,function(item){if(!_4a1.hasControllerProperty(item)){_4a7[item]=1;}});}else{for(var s in _4a8){if(_4a8.hasOwnProperty(s)&&!_4a1.hasControllerProperty(s)){_4a7[s]=1;}}}});}else{_4a7[name]=1;}for(var s in _4a7){_4a0.call(_4a1,s,!old?void 0:old.get?old.get(s):old[s],!_4a6?void 0:_4a6.get?_4a6.get(s):_4a6[s]);}};hm=_499.prototype.watch.call(this,this._refModelProp,function(name,old,_4a9){if(old===_4a9){return;}_4a5(old,_4a9);_4a2(_4a9);});_4a2(this.get(this._refModelProp));var h={};h.unwatch=h.remove=function(){if(hp){hp.unwatch();hp=null;}if(hm){hm.unwatch();hm=null;}};return h;},hasControllerProperty:function(name){return name=="_watchCallbacks"||name==this._refModelProp||name==this._refInModelProp||(name in (this.ownProps||{}))||(name in this.constructor.prototype);}});});},"dijit/_WidgetsInTemplateMixin":function(){define("dijit/_WidgetsInTemplateMixin",["dojo/_base/array","dojo/_base/declare","dojo/parser"],function(_4aa,_4ab,_4ac){return _4ab("dijit._WidgetsInTemplateMixin",null,{_earlyTemplatedStartup:false,widgetsInTemplate:true,_beforeFillContent:function(){if(this.widgetsInTemplate){var node=this.domNode;var cw=(this._startupWidgets=_4ac.parse(node,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang,textDir:this.textDir},propsThis:this,scope:"dojo"}));if(!cw.isFulfilled()){throw new Error(this.declaredClass+": parser returned unfilled promise (probably waiting for module auto-load), "+"unsupported by _WidgetsInTemplateMixin.   Must pre-load all supporting widgets before instantiation.");}this._attachTemplateNodes(cw,function(n,p){return n[p];});}},startup:function(){_4aa.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);}});});},"dijit/form/_FormValueMixin":function(){define("dijit/form/_FormValueMixin",["dojo/_base/declare","dojo/dom-attr","dojo/keys","dojo/sniff","./_FormWidgetMixin"],function(_4ad,_4ae,keys,has,_4af){return _4ad("dijit.form._FormValueMixin",_4af,{readOnly:false,_setReadOnlyAttr:function(_4b0){_4ae.set(this.focusNode,"readOnly",_4b0);this.focusNode.setAttribute("aria-readonly",_4b0);this._set("readOnly",_4b0);},postCreate:function(){this.inherited(arguments);if(has("ie")){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_4b1,_4b2){this._handleOnChange(_4b1,_4b2);},_handleOnChange:function(_4b3,_4b4){this._set("value",_4b3);this.inherited(arguments);},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){if(has("ie")<9||(has("ie")&&has("quirks"))){e.preventDefault();var node=e.srcElement,te=node.ownerDocument.createEventObject();te.keyCode=keys.ESCAPE;te.shiftKey=e.shiftKey;node.fireEvent("onkeypress",te);}}}});});},"dojo/_base/browser":function(){if(require.has){require.has.add("config-selectorEngine","acme");}define(["../ready","./kernel","./connect","./unload","./window","./event","./html","./NodeList","../query","./xhr","./fx"],function(dojo){return dojo;});},"dojo/sniff":function(){define(["./has"],function(has){if(1){var n=navigator,dua=n.userAgent,dav=n.appVersion,tv=parseFloat(dav);has.add("air",dua.indexOf("AdobeAIR")>=0),has.add("khtml",dav.indexOf("Konqueror")>=0?tv:undefined);has.add("webkit",parseFloat(dua.split("WebKit/")[1])||undefined);has.add("chrome",parseFloat(dua.split("Chrome/")[1])||undefined);has.add("safari",dav.indexOf("Safari")>=0&&!has("chrome")?parseFloat(dav.split("Version/")[1]):undefined);has.add("mac",dav.indexOf("Macintosh")>=0);has.add("quirks",document.compatMode=="BackCompat");has.add("ios",/iPhone|iPod|iPad/.test(dua));has.add("android",parseFloat(dua.split("Android ")[1])||undefined);if(!has("webkit")){if(dua.indexOf("Opera")>=0){has.add("opera",tv>=9.8?parseFloat(dua.split("Version/")[1])||tv:tv);}if(dua.indexOf("Gecko")>=0&&!has("khtml")&&!has("webkit")){has.add("mozilla",tv);}if(has("mozilla")){has.add("ff",parseFloat(dua.split("Firefox/")[1]||dua.split("Minefield/")[1])||undefined);}if(document.all&&!has("opera")){var isIE=parseFloat(dav.split("MSIE ")[1])||undefined;var mode=document.documentMode;if(mode&&mode!=5&&Math.floor(isIE)!=mode){isIE=mode;}has.add("ie",isIE);}has.add("wii",typeof opera!="undefined"&&opera.wiiremote);}}return has;});},"dojo/_base/event":function(){define("dojo/_base/event",["./kernel","../on","../has","../dom-geometry"],function(dojo,on,has,dom){if(on._fixEvent){var _4b5=on._fixEvent;on._fixEvent=function(evt,se){evt=_4b5(evt,se);if(evt){dom.normalizeEvent(evt);}return evt;};}var ret={fix:function(evt,_4b6){if(on._fixEvent){return on._fixEvent(evt,_4b6);}return evt;},stop:function(evt){if(has("dom-addeventlistener")||(evt&&evt.preventDefault)){evt.preventDefault();evt.stopPropagation();}else{evt=evt||window.event;evt.cancelBubble=true;on._preventDefault.call(evt);}}};if(1){dojo.fixEvent=ret.fix;dojo.stopEvent=ret.stop;}return ret;});},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","dojo/when"],function(_4b7,lang,_4b8,when){return _4b7("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}return (apn[name]={s:"_"+name+"Setter",g:"_"+name+"Getter"});},postscript:function(_4b9){if(_4b9){this.set(_4b9);}},_get:function(name,_4ba){return typeof this[_4ba.g]==="function"?this[_4ba.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_4bb){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _4bc=this._getAttrNames(name),_4bd=this._get(name,_4bc),_4be=this[_4bc.s],_4bf;if(typeof _4be==="function"){_4bf=_4be.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_4bb;}if(this._watchCallbacks){var self=this;when(_4bf,function(){self._watchCallbacks(name,_4bd,_4bb);});}return this;},_changeAttrValue:function(name,_4c0){var _4c1=this.get(name);this[name]=_4c0;if(this._watchCallbacks){this._watchCallbacks(name,_4c1,_4c0);}return this;},watch:function(name,_4c2){var _4c3=this._watchCallbacks;if(!_4c3){var self=this;_4c3=this._watchCallbacks=function(name,_4c4,_4c5,_4c6){var _4c7=function(_4c8){if(_4c8){_4c8=_4c8.slice();for(var i=0,l=_4c8.length;i<l;i++){_4c8[i].call(self,name,_4c4,_4c5);}}};_4c7(_4c3["_"+name]);if(!_4c6){_4c7(_4c3["*"]);}};}if(!_4c2&&typeof name==="function"){_4c2=name;name="*";}else{name="_"+name;}var _4c9=_4c3[name];if(typeof _4c9!=="object"){_4c9=_4c3[name]=[];}_4c9.push(_4c2);var _4ca={};_4ca.unwatch=_4ca.remove=function(){var _4cb=_4b8.indexOf(_4c9,_4c2);if(_4cb>-1){_4c9.splice(_4cb,1);}};return _4ca;}});});},"dojo/hash":function(){define(["./_base/kernel","require","./_base/config","./_base/connect","./_base/lang","./ready","./sniff"],function(dojo,_4cc,_4cd,_4ce,lang,_4cf,has){dojo.hash=function(hash,_4d0){if(!arguments.length){return _4d1();}if(hash.charAt(0)=="#"){hash=hash.substring(1);}if(_4d0){_4d2(hash);}else{location.href="#"+hash;}return hash;};var _4d3,_4d4,_4d5,_4d6=_4cd.hashPollFrequency||100;function _4d7(str,_4d8){var i=str.indexOf(_4d8);return (i>=0)?str.substring(i+1):"";};function _4d1(){return _4d7(location.href,"#");};function _4d9(){_4ce.publish("/dojo/hashchange",[_4d1()]);};function _4da(){if(_4d1()===_4d3){return;}_4d3=_4d1();_4d9();};function _4d2(hash){if(_4d4){if(_4d4.isTransitioning()){setTimeout(lang.hitch(null,_4d2,hash),_4d6);return;}var href=_4d4.iframe.location.href;var _4db=href.indexOf("?");_4d4.iframe.location.replace(href.substring(0,_4db)+"?"+hash);return;}location.replace("#"+hash);!_4d5&&_4da();};function _4dc(){var ifr=document.createElement("iframe"),_4dd="dojo-hash-iframe",_4de=_4cd.dojoBlankHtmlUrl||_4cc.toUrl("./resources/blank.html");if(_4cd.useXDomain&&!_4cd.dojoBlankHtmlUrl){console.warn("dojo.hash: When using cross-domain Dojo builds,"+" please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl"+" to the path on your domain to blank.html");}ifr.id=_4dd;ifr.src=_4de+"?"+_4d1();ifr.style.display="none";document.body.appendChild(ifr);this.iframe=dojo.global[_4dd];var _4df,_4e0,_4e1,_4e2,_4e3,_4e4=this.iframe.location;function _4e5(){_4d3=_4d1();_4df=_4e3?_4d3:_4d7(_4e4.href,"?");_4e0=false;_4e1=null;};this.isTransitioning=function(){return _4e0;};this.pollLocation=function(){if(!_4e3){try{var _4e6=_4d7(_4e4.href,"?");if(document.title!=_4e2){_4e2=this.iframe.document.title=document.title;}}catch(e){_4e3=true;console.error("dojo.hash: Error adding history entry. Server unreachable.");}}var hash=_4d1();if(_4e0&&_4d3===hash){if(_4e3||_4e6===_4e1){_4e5();_4d9();}else{setTimeout(lang.hitch(this,this.pollLocation),0);return;}}else{if(_4d3===hash&&(_4e3||_4df===_4e6)){}else{if(_4d3!==hash){_4d3=hash;_4e0=true;_4e1=hash;ifr.src=_4de+"?"+_4e1;_4e3=false;setTimeout(lang.hitch(this,this.pollLocation),0);return;}else{if(!_4e3){location.href="#"+_4e4.search.substring(1);_4e5();_4d9();}}}}setTimeout(lang.hitch(this,this.pollLocation),_4d6);};_4e5();setTimeout(lang.hitch(this,this.pollLocation),_4d6);};_4cf(function(){if("onhashchange" in dojo.global&&(!has("ie")||(has("ie")>=8&&document.compatMode!="BackCompat"))){_4d5=_4ce.connect(dojo.global,"onhashchange",_4d9);}else{if(document.addEventListener){_4d3=_4d1();setInterval(_4da,_4d6);}else{if(document.attachEvent){_4d4=new _4dc();}}}});return dojo.hash;});},"dojo/store/util/QueryResults":function(){define(["../../_base/array","../../_base/lang","../../_base/Deferred"],function(_4e7,lang,_4e8){var _4e9=function(_4ea){if(!_4ea){return _4ea;}if(_4ea.then){_4ea=lang.delegate(_4ea);}function _4eb(_4ec){if(!_4ea[_4ec]){_4ea[_4ec]=function(){var args=arguments;return _4e8.when(_4ea,function(_4ed){Array.prototype.unshift.call(args,_4ed);return _4e9(_4e7[_4ec].apply(_4e7,args));});};}};_4eb("forEach");_4eb("filter");_4eb("map");if(!_4ea.total){_4ea.total=_4e8.when(_4ea,function(_4ee){return _4ee.length;});}return _4ea;};lang.setObject("dojo.store.util.QueryResults",_4e9);return _4e9;});},"dojo/touch":function(){define("dojo/touch",["./_base/kernel","./_base/lang","./aspect","./dom","./on","./has","./mouse","./ready","./_base/window"],function(dojo,lang,_4ef,dom,on,has,_4f0,_4f1,win){var _4f2=has("touch");var _4f3,_4f4;if(_4f2){_4f1(function(){_4f4=win.body();win.doc.addEventListener("touchstart",function(evt){var _4f5=_4f4;_4f4=evt.target;on.emit(_4f5,"dojotouchout",{target:_4f5,relatedTarget:_4f4,bubbles:true});on.emit(_4f4,"dojotouchover",{target:_4f4,relatedTarget:_4f5,bubbles:true});},true);on(win.doc,"touchmove",function(evt){var _4f6=win.doc.elementFromPoint(evt.pageX-win.global.pageXOffset,evt.pageY-win.global.pageYOffset);if(_4f6&&_4f4!==_4f6){on.emit(_4f4,"dojotouchout",{target:_4f4,relatedTarget:_4f6,bubbles:true});on.emit(_4f6,"dojotouchover",{target:_4f6,relatedTarget:_4f4,bubbles:true});_4f4=_4f6;}});});_4f3=function(node,_4f7){return on(win.doc,"touchmove",function(evt){if(node===win.doc||dom.isDescendant(_4f4,node)){_4f7.call(this,lang.mixin({},evt,{target:_4f4}));}});};}function _4f8(type){return function(node,_4f9){return on(node,type,_4f9);};};var _4fa={press:_4f8(_4f2?"touchstart":"mousedown"),move:_4f2?_4f3:_4f8("mousemove"),release:_4f8(_4f2?"touchend":"mouseup"),cancel:_4f2?_4f8("touchcancel"):_4f0.leave,over:_4f8(_4f2?"dojotouchover":"mouseover"),out:_4f8(_4f2?"dojotouchout":"mouseout"),enter:_4f0._eventHandler(_4f2?"dojotouchover":"mouseover"),leave:_4f0._eventHandler(_4f2?"dojotouchout":"mouseout")};1&&(dojo.touch=_4fa);return _4fa;});},"dojox/mvc/resolve":function(){define("dojox/mvc/resolve",["dojo/_base/lang","dijit/registry","dojo/Stateful"],function(lang,_4fb){var _4fc=function(_4fd,_4fe){if(typeof _4fd=="string"){var _4ff=_4fd.match(/^(expr|rel|widget):(.*)$/)||[];try{if(_4ff[1]=="rel"){_4fd=lang.getObject(_4ff[2]||"",false,_4fe);}else{if(_4ff[1]=="widget"){_4fd=_4fb.byId(_4ff[2]);}else{_4fd=lang.getObject(_4ff[2]||_4fd,false,_4fe);}}}catch(e){}}return _4fd;};return lang.setObject("dojox.mvc.resolve",_4fc);});},"dojo/Deferred":function(){define(["./has","./_base/lang","./errors/CancelError","./promise/Promise","./promise/instrumentation"],function(has,lang,_500,_501,_502){"use strict";var _503=0,_504=1,_505=2;var _506="This deferred has already been fulfilled.";var _507=Object.freeze||function(){};var _508=function(_509,type,_50a,_50b,_50c){if(1){if(type===_505&&_50d.instrumentRejected&&_509.length===0){_50d.instrumentRejected(_50a,false,_50b,_50c);}}for(var i=0;i<_509.length;i++){_50e(_509[i],type,_50a,_50b);}};var _50e=function(_50f,type,_510,_511){var func=_50f[type];var _512=_50f.deferred;if(func){try{var _513=func(_510);if(_513&&typeof _513.then==="function"){_50f.cancel=_513.cancel;_513.then(_514(_512,_504),_514(_512,_505),_514(_512,_503));return;}_515(_512,_504,_513);}catch(error){_515(_512,_505,error);}}else{_515(_512,type,_510);}if(1){if(type===_505&&_50d.instrumentRejected){_50d.instrumentRejected(_510,!!func,_511,_512.promise);}}};var _514=function(_516,type){return function(_517){_515(_516,type,_517);};};var _515=function(_518,type,_519){if(!_518.isCanceled()){switch(type){case _503:_518.progress(_519);break;case _504:_518.resolve(_519);break;case _505:_518.reject(_519);break;}}};var _50d=function(_51a){var _51b=this.promise=new _501();var _51c=this;var _51d,_51e,_51f;var _520=false;var _521=[];if(1&&Error.captureStackTrace){Error.captureStackTrace(_51c,_50d);Error.captureStackTrace(_51b,_50d);}this.isResolved=_51b.isResolved=function(){return _51d===_504;};this.isRejected=_51b.isRejected=function(){return _51d===_505;};this.isFulfilled=_51b.isFulfilled=function(){return !!_51d;};this.isCanceled=_51b.isCanceled=function(){return _520;};this.progress=function(_522,_523){if(!_51d){_508(_521,_503,_522,null,_51c);return _51b;}else{if(_523===true){throw new Error(_506);}else{return _51b;}}};this.resolve=function(_524,_525){if(!_51d){_508(_521,_51d=_504,_51e=_524,null,_51c);_521=null;return _51b;}else{if(_525===true){throw new Error(_506);}else{return _51b;}}};var _526=this.reject=function(_527,_528){if(!_51d){if(1&&Error.captureStackTrace){Error.captureStackTrace(_51f={},_526);}_508(_521,_51d=_505,_51e=_527,_51f,_51c);_521=null;return _51b;}else{if(_528===true){throw new Error(_506);}else{return _51b;}}};this.then=_51b.then=function(_529,_52a,_52b){var _52c=[_52b,_529,_52a];_52c.cancel=_51b.cancel;_52c.deferred=new _50d(function(_52d){return _52c.cancel&&_52c.cancel(_52d);});if(_51d&&!_521){_50e(_52c,_51d,_51e,_51f);}else{_521.push(_52c);}return _52c.deferred.promise;};this.cancel=_51b.cancel=function(_52e,_52f){if(!_51d){if(_51a){var _530=_51a(_52e);_52e=typeof _530==="undefined"?_52e:_530;}_520=true;if(!_51d){if(typeof _52e==="undefined"){_52e=new _500();}_526(_52e);return _52e;}else{if(_51d===_505&&_51e===_52e){return _52e;}}}else{if(_52f===true){throw new Error(_506);}}};_507(_51b);};_50d.prototype.toString=function(){return "[object Deferred]";};if(_502){_502(_50d);}return _50d;});},"dijit/_CssStateMixin":function(){define("dijit/_CssStateMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom","dojo/dom-class","dojo/_base/lang","dojo/on","dojo/ready","dojo/_base/window","./registry"],function(_531,_532,dom,_533,lang,on,_534,win,_535){var _536=_532("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);_531.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active","_opened"],function(attr){this.watch(attr,lang.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._trackMouseState(this.domNode,this.baseClass);this._setStateClass();},_cssMouseEvent:function(_537){if(!this.disabled){switch(_537.type){case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":case "touchstart":this._set("active",true);break;case "mouseup":case "touchend":this._set("active",false);break;}}},_setStateClass:function(){var _538=this.baseClass.split(" ");function _539(_53a){_538=_538.concat(_531.map(_538,function(c){return c+_53a;}),"dijit"+_53a);};if(!this.isLeftToRight()){_539("Rtl");}var _53b=this.checked=="mixed"?"Mixed":(this.checked?"Checked":"");if(this.checked){_539(_53b);}if(this.state){_539(this.state);}if(this.selected){_539("Selected");}if(this._opened){_539("Opened");}if(this.disabled){_539("Disabled");}else{if(this.readOnly){_539("ReadOnly");}else{if(this.active){_539("Active");}else{if(this.hovering){_539("Hover");}}}}if(this.focused){_539("Focused");}var tn=this.stateNode||this.domNode,_53c={};_531.forEach(tn.className.split(" "),function(c){_53c[c]=true;});if("_stateClasses" in this){_531.forEach(this._stateClasses,function(c){delete _53c[c];});}_531.forEach(_538,function(c){_53c[c]=true;});var _53d=[];for(var c in _53c){_53d.push(c);}tn.className=_53d.join(" ");this._stateClasses=_538;},_subnodeCssMouseEvent:function(node,_53e,evt){if(this.disabled||this.readOnly){return;}function _53f(_540){_533.toggle(node,_53e+"Hover",_540);};function _541(_542){_533.toggle(node,_53e+"Active",_542);};function _543(_544){_533.toggle(node,_53e+"Focused",_544);};switch(evt.type){case "mouseover":_53f(true);break;case "mouseout":_53f(false);_541(false);break;case "mousedown":case "touchstart":_541(true);break;case "mouseup":case "touchend":_541(false);break;case "focus":case "focusin":_543(true);break;case "blur":case "focusout":_543(false);break;}},_trackMouseState:function(node,_545){node._cssState=_545;}});_534(function(){function _546(evt){if(!dom.isDescendant(evt.relatedTarget,evt.target)){for(var node=evt.target;node&&node!=evt.relatedTarget;node=node.parentNode){if(node._cssState){var _547=_535.getEnclosingWidget(node);if(_547){if(node==_547.domNode){_547._cssMouseEvent(evt);}else{_547._subnodeCssMouseEvent(node,node._cssState,evt);}}}}}};function _548(evt){evt.target=evt.srcElement;_546(evt);};var body=win.body();_531.forEach(["mouseover","mouseout","mousedown","touchstart","mouseup","touchend"],function(type){if(body.addEventListener){body.addEventListener(type,_546,true);}else{body.attachEvent("on"+type,_548);}});on(body,"focusin, focusout",function(evt){var node=evt.target;if(node._cssState&&!node.getAttribute("widgetId")){var _549=_535.getEnclosingWidget(node);_549._subnodeCssMouseEvent(node,node._cssState,evt);}});});return _536;});},"dojo/_base/url":function(){define(["./kernel"],function(dojo){var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),_54a=function(){var n=null,_54b=arguments,uri=[_54b[0]];for(var i=1;i<_54b.length;i++){if(!_54b[i]){continue;}var _54c=new _54a(_54b[i]+""),_54d=new _54a(uri[0]+"");if(_54c.path==""&&!_54c.scheme&&!_54c.authority&&!_54c.query){if(_54c.fragment!=n){_54d.fragment=_54c.fragment;}_54c=_54d;}else{if(!_54c.scheme){_54c.scheme=_54d.scheme;if(!_54c.authority){_54c.authority=_54d.authority;if(_54c.path.charAt(0)!="/"){var path=_54d.path.substring(0,_54d.path.lastIndexOf("/")+1)+_54c.path;var segs=path.split("/");for(var j=0;j<segs.length;j++){if(segs[j]=="."){if(j==segs.length-1){segs[j]="";}else{segs.splice(j,1);j--;}}else{if(j>0&&!(j==1&&segs[0]=="")&&segs[j]==".."&&segs[j-1]!=".."){if(j==(segs.length-1)){segs.splice(j,1);segs[j-1]="";}else{segs.splice(j-1,2);j-=2;}}}}_54c.path=segs.join("/");}}}}uri=[];if(_54c.scheme){uri.push(_54c.scheme,":");}if(_54c.authority){uri.push("//",_54c.authority);}uri.push(_54c.path);if(_54c.query){uri.push("?",_54c.query);}if(_54c.fragment){uri.push("#",_54c.fragment);}}this.uri=uri.join("");var r=this.uri.match(ore);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(ire);this.user=r[3]||n;this.password=r[4]||n;this.host=r[6]||r[7];this.port=r[9]||n;}};_54a.prototype.toString=function(){return this.uri;};return dojo._Url=_54a;});},"dojo/hccss":function(){define(["require","./_base/config","./dom-class","./dom-construct","./dom-style","./has","./ready","./_base/window"],function(_54e,_54f,_550,_551,_552,has,_553,win){has.add("highcontrast",function(){var div=win.doc.createElement("div");div.style.cssText="border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;"+"background-image: url("+(_54f.blankGif||_54e.toUrl("./resources/blank.gif"))+");";win.body().appendChild(div);var cs=_552.getComputedStyle(div),_554=cs.backgroundImage,hc=(cs.borderTopColor==cs.borderRightColor)||(_554&&(_554=="none"||_554=="url(invalid-url:)"));_551.destroy(div);return hc;});_553(90,function(){if(has("highcontrast")){_550.add(win.body(),"dj_a11y");}});return has;});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(_555,lang){var _556={};lang.setObject("dojo.string",_556);_556.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};_556.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=_556.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};_556.substitute=function(_557,map,_558,_559){_559=_559||_555.global;_558=_558?lang.hitch(_559,_558):function(v){return v;};return _557.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_55a,key,_55b){var _55c=lang.getObject(key,false,map);if(_55b){_55c=lang.getObject(_55b,false,_559).call(_559,_55c,key);}return _558(_55c,key).toString();});};_556.trim=String.prototype.trim?lang.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};return _556;});},"dijit/form/_FormValueWidget":function(){define("dijit/form/_FormValueWidget",["dojo/_base/declare","dojo/sniff","./_FormWidget","./_FormValueMixin"],function(_55d,has,_55e,_55f){return _55d("dijit.form._FormValueWidget",[_55e,_55f],{_layoutHackIE7:function(){if(has("ie")==7){var _560=this.domNode;var _561=_560.parentNode;var _562=_560.firstChild||_560;var _563=_562.style.filter;var _564=this;while(_561&&_561.clientHeight==0){(function ping(){var _565=_564.connect(_561,"onscroll",function(){_564.disconnect(_565);_562.style.filter=(new Date()).getMilliseconds();_564.defer(function(){_562.style.filter=_563;});});})();_561=_561.parentNode;}}}});});},"dojo/domReady":function(){define(["./has"],function(has){var _566=this,doc=document,_567={"loaded":1,"complete":1},_568=typeof doc.readyState!="string",_569=!!_567[doc.readyState];if(_568){doc.readyState="loading";}if(!_569){var _56a=[],_56b=[],_56c=function(evt){evt=evt||_566.event;if(_569||(evt.type=="readystatechange"&&!_567[doc.readyState])){return;}_569=1;if(_568){doc.readyState="complete";}while(_56a.length){(_56a.shift())(doc);}},on=function(node,_56d){node.addEventListener(_56d,_56c,false);_56a.push(function(){node.removeEventListener(_56d,_56c,false);});};if(!has("dom-addeventlistener")){on=function(node,_56e){_56e="on"+_56e;node.attachEvent(_56e,_56c);_56a.push(function(){node.detachEvent(_56e,_56c);});};var div=doc.createElement("div");try{if(div.doScroll&&_566.frameElement===null){_56b.push(function(){try{div.doScroll("left");return 1;}catch(e){}});}}catch(e){}}on(doc,"DOMContentLoaded");on(_566,"load");if("onreadystatechange" in doc){on(doc,"readystatechange");}else{if(!_568){_56b.push(function(){return _567[doc.readyState];});}}if(_56b.length){var _56f=function(){if(_569){return;}var i=_56b.length;while(i--){if(_56b[i]()){_56c("poller");return;}}setTimeout(_56f,30);};_56f();}}function _570(_571){if(_569){_571(doc);}else{_56a.push(_571);}};_570.load=function(id,req,load){_570(load);};return _570;});},"dojo/dom-prop":function(){define(["exports","./_base/kernel","./sniff","./_base/lang","./dom","./dom-style","./dom-construct","./_base/connect"],function(_572,dojo,has,lang,dom,_573,ctr,conn){var _574={},_575=0,_576=dojo._scopeName+"attrid";_572.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"};_572.get=function getProp(node,name){node=dom.byId(node);var lc=name.toLowerCase(),_577=_572.names[lc]||name;return node[_577];};_572.set=function setProp(node,name,_578){node=dom.byId(node);var l=arguments.length;if(l==2&&typeof name!="string"){for(var x in name){_572.set(node,x,name[x]);}return node;}var lc=name.toLowerCase(),_579=_572.names[lc]||name;if(_579=="style"&&typeof _578!="string"){_573.set(node,_578);return node;}if(_579=="innerHTML"){if(has("ie")&&node.tagName.toLowerCase() in {col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}){ctr.empty(node);node.appendChild(ctr.toDom(_578,node.ownerDocument));}else{node[_579]=_578;}return node;}if(lang.isFunction(_578)){var _57a=node[_576];if(!_57a){_57a=_575++;node[_576]=_57a;}if(!_574[_57a]){_574[_57a]={};}var h=_574[_57a][_579];if(h){conn.disconnect(h);}else{try{delete node[_579];}catch(e){}}if(_578){_574[_57a][_579]=conn.connect(node,_579,_578);}else{node[_579]=null;}return node;}node[_579]=_578;return node;};});},"dijit/form/Button":function(){require({cache:{"url:dijit/form/templates/Button.html":"<span class=\"dijit dijitReset dijitInline\" role=\"presentation\"\n\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\tdata-dojo-attach-event=\"ondijitclick:_onClick\" role=\"presentation\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdata-dojo-attach-point=\"titleNode,focusNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\" data-dojo-attach-point=\"iconNode\"></span\n\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#x25CF;</span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t\tdata-dojo-attach-point=\"containerNode\"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\"\n\t\ttabIndex=\"-1\" role=\"presentation\" data-dojo-attach-point=\"valueNode\"\n/></span>\n"}});define("dijit/form/Button",["require","dojo/_base/declare","dojo/dom-class","dojo/has","dojo/_base/kernel","dojo/_base/lang","dojo/ready","./_FormWidget","./_ButtonMixin","dojo/text!./templates/Button.html"],function(_57b,_57c,_57d,has,_57e,lang,_57f,_580,_581,_582){if(has("dijit-legacy-requires")){_57f(0,function(){var _583=["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"];_57b(_583);});}return _57c("dijit.form.Button",[_580,_581],{showLabel:true,iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitButton",templateString:_582,_setValueAttr:"valueNode",_onClick:function(e){var ok=this.inherited(arguments);if(ok){if(this.valueNode){this.valueNode.click();e.preventDefault();e.stopPropagation();}}return ok;},_fillContent:function(_584){if(_584&&(!this.params||!("label" in this.params))){var _585=lang.trim(_584.innerHTML);if(_585){this.label=_585;}}},_setShowLabelAttr:function(val){if(this.containerNode){_57d.toggle(this.containerNode,"dijitDisplayNone",!val);}this._set("showLabel",val);},setLabel:function(_586){_57e.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_586);},_setLabelAttr:function(_587){this.inherited(arguments);if(!this.showLabel&&!("title" in this.params)){this.titleNode.title=lang.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});});},"dojo/keys":function(){define("dojo/keys",["./_base/kernel","./sniff"],function(dojo,has){return dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:has("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:has("mac")&&!has("air")?(has("safari")?91:224):17};});},"dojo/_base/lang":function(){define("dojo/_base/lang",["./kernel","../has","../sniff"],function(dojo,has){has.add("bug-for-in-skips-shadowed",function(){for(var i in {toString:1}){return 0;}return 1;});var _588=has("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],_589=_588.length,_58a=function(_58b,_58c,_58d){var p,i=0,_58e=dojo.global;if(!_58d){if(!_58b.length){return _58e;}else{p=_58b[i++];try{_58d=dojo.scopeMap[p]&&dojo.scopeMap[p][1];}catch(e){}_58d=_58d||(p in _58e?_58e[p]:(_58c?_58e[p]={}:undefined));}}while(_58d&&(p=_58b[i++])){_58d=(p in _58d?_58d[p]:(_58c?_58d[p]={}:undefined));}return _58d;},opts=Object.prototype.toString,_58f=function(obj,_590,_591){return (_591||[]).concat(Array.prototype.slice.call(obj,_590||0));},_592=/\{([^\}]+)\}/g;var lang={_extraNames:_588,_mixin:function(dest,_593,_594){var name,s,i,_595={};for(name in _593){s=_593[name];if(!(name in dest)||(dest[name]!==s&&(!(name in _595)||_595[name]!==s))){dest[name]=_594?_594(s):s;}}if(has("bug-for-in-skips-shadowed")){if(_593){for(i=0;i<_589;++i){name=_588[i];s=_593[name];if(!(name in dest)||(dest[name]!==s&&(!(name in _595)||_595[name]!==s))){dest[name]=_594?_594(s):s;}}}}return dest;},mixin:function(dest,_596){if(!dest){dest={};}for(var i=1,l=arguments.length;i<l;i++){lang._mixin(dest,arguments[i]);}return dest;},setObject:function(name,_597,_598){var _599=name.split("."),p=_599.pop(),obj=_58a(_599,true,_598);return obj&&p?(obj[p]=_597):undefined;},getObject:function(name,_59a,_59b){return _58a(name.split("."),_59a,_59b);},exists:function(name,obj){return lang.getObject(name,false,obj)!==undefined;},isString:function(it){return (typeof it=="string"||it instanceof String);},isArray:function(it){return it&&(it instanceof Array||typeof it=="array");},isFunction:function(it){return opts.call(it)==="[object Function]";},isObject:function(it){return it!==undefined&&(it===null||typeof it=="object"||lang.isArray(it)||lang.isFunction(it));},isArrayLike:function(it){return it&&it!==undefined&&!lang.isString(it)&&!lang.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(lang.isArray(it)||isFinite(it.length));},isAlien:function(it){return it&&!lang.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));},extend:function(ctor,_59c){for(var i=1,l=arguments.length;i<l;i++){lang._mixin(ctor.prototype,arguments[i]);}return ctor;},_hitchArgs:function(_59d,_59e){var pre=lang._toArray(arguments,2);var _59f=lang.isString(_59e);return function(){var args=lang._toArray(arguments);var f=_59f?(_59d||dojo.global)[_59e]:_59e;return f&&f.apply(_59d||this,pre.concat(args));};},hitch:function(_5a0,_5a1){if(arguments.length>2){return lang._hitchArgs.apply(dojo,arguments);}if(!_5a1){_5a1=_5a0;_5a0=null;}if(lang.isString(_5a1)){_5a0=_5a0||dojo.global;if(!_5a0[_5a1]){throw (["lang.hitch: scope[\"",_5a1,"\"] is null (scope=\"",_5a0,"\")"].join(""));}return function(){return _5a0[_5a1].apply(_5a0,arguments||[]);};}return !_5a0?_5a1:function(){return _5a1.apply(_5a0,arguments||[]);};},delegate:(function(){function TMP(){};return function(obj,_5a2){TMP.prototype=obj;var tmp=new TMP();TMP.prototype=null;if(_5a2){lang._mixin(tmp,_5a2);}return tmp;};})(),_toArray:has("ie")?(function(){function slow(obj,_5a3,_5a4){var arr=_5a4||[];for(var x=_5a3||0;x<obj.length;x++){arr.push(obj[x]);}return arr;};return function(obj){return ((obj.item)?slow:_58f).apply(this,arguments);};})():_58f,partial:function(_5a5){var arr=[null];return lang.hitch.apply(dojo,arr.concat(lang._toArray(arguments)));},clone:function(src){if(!src||typeof src!="object"||lang.isFunction(src)){return src;}if(src.nodeType&&"cloneNode" in src){return src.cloneNode(true);}if(src instanceof Date){return new Date(src.getTime());}if(src instanceof RegExp){return new RegExp(src);}var r,i,l;if(lang.isArray(src)){r=[];for(i=0,l=src.length;i<l;++i){if(i in src){r.push(lang.clone(src[i]));}}}else{r=src.constructor?new src.constructor():{};}return lang._mixin(r,src,lang.clone);},trim:String.prototype.trim?function(str){return str.trim();}:function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");},replace:function(tmpl,map,_5a6){return tmpl.replace(_5a6||_592,lang.isFunction(map)?map:function(_5a7,k){return lang.getObject(k,false,map);});}};1&&lang.mixin(dojo,lang);return lang;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/sniff","dojo/_base/unload","dojo/_base/window","./main"],function(_5a8,has,_5a9,win,_5aa){var _5ab={},hash={};var _5ac={length:0,add:function(_5ad){if(hash[_5ad.id]){throw new Error("Tried to register widget with id=="+_5ad.id+" but that id is already registered");}hash[_5ad.id]=_5ad;this.length++;},remove:function(id){if(hash[id]){delete hash[id];this.length--;}},byId:function(id){return typeof id=="string"?hash[id]:id;},byNode:function(node){return hash[node.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in hash){ar.push(hash[id]);}return ar;},getUniqueId:function(_5ae){var id;do{id=_5ae+"_"+(_5ae in _5ab?++_5ab[_5ae]:_5ab[_5ae]=0);}while(hash[id]);return _5aa._scopeName=="dijit"?id:_5aa._scopeName+"_"+id;},findWidgets:function(root,_5af){var _5b0=[];function _5b1(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _5b2=node.getAttribute("widgetId");if(_5b2){var _5b3=hash[_5b2];if(_5b3){_5b0.push(_5b3);}}else{if(node!==_5af){_5b1(node);}}}}};_5b1(root);return _5b0;},_destroyAll:function(){_5aa._curFocus=null;_5aa._prevFocus=null;_5aa._activeStack=[];_5a8.forEach(_5ac.findWidgets(win.body()),function(_5b4){if(!_5b4._destroyed){if(_5b4.destroyRecursive){_5b4.destroyRecursive();}else{if(_5b4.destroy){_5b4.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};_5aa.registry=_5ac;return _5ac;});},"dijit/Destroyable":function(){define("dijit/Destroyable",["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(_5b5,_5b6,_5b7){return _5b7("dijit.Destroyable",null,{destroy:function(_5b8){this._destroyed=true;},own:function(){_5b5.forEach(arguments,function(_5b9){var _5ba="destroyRecursive" in _5b9?"destroyRecursive":"destroy" in _5b9?"destroy":"remove";_5b9._odh=_5b6.before(this,"destroy",function(_5bb){_5b9._odh.remove();_5b9[_5ba](_5bb);});_5b6.after(_5b9,_5ba,function(){_5b9._odh.remove();});},this);return arguments;}});});},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(dojo,lang,_5bc,_5bd){var _5be=dojo.Color=function(_5bf){if(_5bf){this.setColor(_5bf);}};_5be.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":_5bd.transparentColor||[0,0,0,0]};lang.extend(_5be,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){var t=this;t.r=r;t.g=g;t.b=b;t.a=a;},setColor:function(_5c0){if(lang.isString(_5c0)){_5be.fromString(_5c0,this);}else{if(lang.isArray(_5c0)){_5be.fromArray(_5c0,this);}else{this._set(_5c0.r,_5c0.g,_5c0.b,_5c0.a);if(!(_5c0 instanceof _5be)){this.sanitize();}}}return this;},sanitize:function(){return this;},toRgb:function(){var t=this;return [t.r,t.g,t.b];},toRgba:function(){var t=this;return [t.r,t.g,t.b,t.a];},toHex:function(){var arr=_5bc.map(["r","g","b"],function(x){var s=this[x].toString(16);return s.length<2?"0"+s:s;},this);return "#"+arr.join("");},toCss:function(_5c1){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_5c1?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});_5be.blendColors=dojo.blendColors=function(_5c2,end,_5c3,obj){var t=obj||new _5be();_5bc.forEach(["r","g","b","a"],function(x){t[x]=_5c2[x]+(end[x]-_5c2[x])*_5c3;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};_5be.fromRgb=dojo.colorFromRgb=function(_5c4,obj){var m=_5c4.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&_5be.fromArray(m[1].split(/\s*,\s*/),obj);};_5be.fromHex=dojo.colorFromHex=function(_5c5,obj){var t=obj||new _5be(),bits=(_5c5.length==4)?4:8,mask=(1<<bits)-1;_5c5=Number("0x"+_5c5.substr(1));if(isNaN(_5c5)){return null;}_5bc.forEach(["b","g","r"],function(x){var c=_5c5&mask;_5c5>>=bits;t[x]=bits==4?17*c:c;});t.a=1;return t;};_5be.fromArray=dojo.colorFromArray=function(a,obj){var t=obj||new _5be();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1;}return t.sanitize();};_5be.fromString=dojo.colorFromString=function(str,obj){var a=_5be.named[str];return a&&_5be.fromArray(a,obj)||_5be.fromRgb(str,obj)||_5be.fromHex(str,obj);};return _5be;});},"dojo/router":function(){define(["./router/RouterBase"],function(_5c6){return new _5c6({});});},"dojo/_base/loader":function(){define(["./kernel","../has","require","module","./json","./lang","./array"],function(dojo,has,_5c7,_5c8,json,lang,_5c9){if(!1){console.error("cannot load the Dojo v1.x loader with a foreign loader");return 0;}1||has.add("dojo-fast-sync-require",1);var _5ca=function(id){return {src:_5c8.id,id:id};},_5cb=function(name){return name.replace(/\./g,"/");},_5cc=/\/\/>>built/,_5cd=[],_5ce=[],_5cf=function(mid,_5d0,_5d1){_5cd.push(_5d1);_5c9.forEach(mid.split(","),function(mid){var _5d2=_5d3(mid,_5d0.module);_5ce.push(_5d2);_5d4(_5d2);});_5d5();},_5d5=(1?function(){var _5d6,mid;for(mid in _5d7){_5d6=_5d7[mid];if(_5d6.noReqPluginCheck===undefined){_5d6.noReqPluginCheck=/loadInit\!/.test(mid)||/require\!/.test(mid)?1:0;}if(!_5d6.executed&&!_5d6.noReqPluginCheck&&_5d6.injected==_5d8){return;}}_5d9(function(){var _5da=_5cd;_5cd=[];_5c9.forEach(_5da,function(cb){cb(1);});});}:(function(){var _5db,_5dc=function(m){_5db[m.mid]=1;for(var t,_5dd,deps=m.deps||[],i=0;i<deps.length;i++){_5dd=deps[i];if(!(t=_5db[_5dd.mid])){if(t===0||!_5dc(_5dd)){_5db[m.mid]=0;return false;}}}return true;};return function(){var _5de,mid;_5db={};for(mid in _5d7){_5de=_5d7[mid];if(_5de.executed||_5de.noReqPluginCheck){_5db[mid]=1;}else{if(_5de.noReqPluginCheck!==0){_5de.noReqPluginCheck=/loadInit\!/.test(mid)||/require\!/.test(mid)?1:0;}if(_5de.noReqPluginCheck){_5db[mid]=1;}else{if(_5de.injected!==_60a){_5db[mid]=0;}}}}for(var t,i=0,end=_5ce.length;i<end;i++){_5de=_5ce[i];if(!(t=_5db[_5de.mid])){if(t===0||!_5dc(_5de)){return;}}}_5d9(function(){var _5df=_5cd;_5cd=[];_5c9.forEach(_5df,function(cb){cb(1);});});};})()),_5e0=function(mid,_5e1,_5e2){_5e1([mid],function(_5e3){_5e1(_5e3.names,function(){for(var _5e4="",args=[],i=0;i<arguments.length;i++){_5e4+="var "+_5e3.names[i]+"= arguments["+i+"]; ";args.push(arguments[i]);}eval(_5e4);var _5e5=_5e1.module,_5e6=[],_5e7,_5e8={provide:function(_5e9){_5e9=_5cb(_5e9);var _5ea=_5d3(_5e9,_5e5);if(_5ea!==_5e5){_610(_5ea);}},require:function(_5eb,_5ec){_5eb=_5cb(_5eb);_5ec&&(_5d3(_5eb,_5e5).result=_60b);_5e6.push(_5eb);},requireLocalization:function(_5ed,_5ee,_5ef){if(!_5e7){_5e7=["dojo/i18n"];}_5ef=(_5ef||dojo.locale).toLowerCase();_5ed=_5cb(_5ed)+"/nls/"+(/root/i.test(_5ef)?"":_5ef+"/")+_5cb(_5ee);if(_5d3(_5ed,_5e5).isXd){_5e7.push("dojo/i18n!"+_5ed);}},loadInit:function(f){f();}},hold={},p;try{for(p in _5e8){hold[p]=dojo[p];dojo[p]=_5e8[p];}_5e3.def.apply(null,args);}catch(e){_5f0("error",[_5ca("failedDojoLoadInit"),e]);}finally{for(p in _5e8){dojo[p]=hold[p];}}if(_5e7){_5e6=_5e6.concat(_5e7);}if(_5e6.length){_5cf(_5e6.join(","),_5e1,_5e2);}else{_5e2();}});});},_5f1=function(text,_5f2,_5f3){var _5f4=/\(|\)/g,_5f5=1,_5f6;_5f4.lastIndex=_5f2;while((_5f6=_5f4.exec(text))){if(_5f6[0]==")"){_5f5-=1;}else{_5f5+=1;}if(_5f5==0){break;}}if(_5f5!=0){throw "unmatched paren around character "+_5f4.lastIndex+" in: "+text;}return [dojo.trim(text.substring(_5f3,_5f4.lastIndex))+";\n",_5f4.lastIndex];},_5f7=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,_5f8=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,_5f9=/(^|\s)(require|define)\s*\(/m,_5fa=function(text,_5fb){var _5fc,_5fd,_5fe,_5ff,_600=[],_601=[],_602=[];_5fb=_5fb||text.replace(_5f7,function(_603){_5f8.lastIndex=_5f9.lastIndex=0;return (_5f8.test(_603)||_5f9.test(_603))?"":_603;});while((_5fc=_5f8.exec(_5fb))){_5fd=_5f8.lastIndex;_5fe=_5fd-_5fc[0].length;_5ff=_5f1(_5fb,_5fd,_5fe);if(_5fc[2]=="loadInit"){_600.push(_5ff[0]);}else{_601.push(_5ff[0]);}_5f8.lastIndex=_5ff[1];}_602=_600.concat(_601);if(_602.length||!_5f9.test(_5fb)){return [text.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 && dojo.loadInit("),_602.join(""),_602];}else{return 0;}},_604=function(_605,text){var _606,id,_607=[],_608=[];if(_5cc.test(text)||!(_606=_5fa(text))){return 0;}id=_605.mid+"-*loadInit";for(var p in _5d3("dojo",_605).result.scopeMap){_607.push(p);_608.push("\""+p+"\"");}return "// xdomain rewrite of "+_605.mid+"\n"+"define('"+id+"',{\n"+"\tnames:"+dojo.toJson(_607)+",\n"+"\tdef:function("+_607.join(",")+"){"+_606[1]+"}"+"});\n\n"+"define("+dojo.toJson(_607.concat(["dojo/loadInit!"+id]))+", function("+_607.join(",")+"){\n"+_606[0]+"});";},_609=_5c7.initSyncLoader(_5cf,_5d5,_604),sync=_609.sync,_5d8=_609.requested,_60a=_609.arrived,_60b=_609.nonmodule,_60c=_609.executing,_60d=_609.executed,_60e=_609.syncExecStack,_5d7=_609.modules,_60f=_609.execQ,_5d3=_609.getModule,_5d4=_609.injectModule,_610=_609.setArrived,_5f0=_609.signal,_611=_609.finishExec,_612=_609.execModule,_613=_609.getLegacyMode,_5d9=_609.guardCheckComplete;_5cf=_609.dojoRequirePlugin;dojo.provide=function(mid){var _614=_60e[0],_615=lang.mixin(_5d3(_5cb(mid),_5c7.module),{executed:_60c,result:lang.getObject(mid,true)});_610(_615);if(_614){(_614.provides||(_614.provides=[])).push(function(){_615.result=lang.getObject(mid);delete _615.provides;_615.executed!==_60d&&_611(_615);});}return _615.result;};has.add("config-publishRequireResult",1,0,0);dojo.require=function(_616,_617){function _618(mid,_619){var _61a=_5d3(_5cb(mid),_5c7.module);if(_60e.length&&_60e[0].finish){_60e[0].finish.push(mid);return undefined;}if(_61a.executed){return _61a.result;}_619&&(_61a.result=_60b);var _61b=_613();_5d4(_61a);_61b=_613();if(_61a.executed!==_60d&&_61a.injected===_60a){_609.guardCheckComplete(function(){_612(_61a);});}if(_61a.executed){return _61a.result;}if(_61b==sync){if(_61a.cjs){_60f.unshift(_61a);}else{_60e.length&&(_60e[0].finish=[mid]);}}else{_60f.push(_61a);}return undefined;};var _61c=_618(_616,_617);if(has("config-publishRequireResult")&&!lang.exists(_616)&&_61c!==undefined){lang.setObject(_616,_61c);}return _61c;};dojo.loadInit=function(f){f();};dojo.registerModulePath=function(_61d,_61e){var _61f={};_61f[_61d.replace(/\./g,"/")]=_61e;_5c7({paths:_61f});};dojo.platformRequire=function(_620){var _621=(_620.common||[]).concat(_620[dojo._name]||_620["default"]||[]),temp;while(_621.length){if(lang.isArray(temp=_621.shift())){dojo.require.apply(dojo,temp);}else{dojo.require(temp);}}};dojo.requireIf=dojo.requireAfterIf=function(_622,_623,_624){if(_622){dojo.require(_623,_624);}};dojo.requireLocalization=function(_625,_626,_627){_5c7(["../i18n"],function(i18n){i18n.getLocalization(_625,_626,_627);});};return {extractLegacyApiApplications:_5fa,require:_5cf,loadInit:_5e0};});},"todo/app18":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/unload","dojo/keys","dojo/string","dijit/_TemplatedMixin","dijit/_WidgetsInTemplateMixin","todo/CssToggleWidget","dojo/text!./app18.html","dijit/form/CheckBox","dijit/form/TextBox","dojox/mvc/at","todo/TodoList","todo/ctrl/RouteController","todo/ctrl/TodoListRefController","todo/ctrl/TodoRefController","todo/form/InlineEditBox","todo/misc/HashSelectedConverter","todo/misc/LessThanOrEqualToConverter","todo/model/SimpleTodoModel","todo/store/LocalStorage"],function(_628,lang,_629,keys,_62a,_62b,_62c,_62d,_62e){return _628([_62d,_62b,_62c],{templateString:_62e,_setPresentAttr:{type:"classExists",className:"todos_present"},_setCompleteAttr:{type:"classExists",className:"todos_selected"},startup:function(){var _62f=this;this.inherited(arguments);_629.addOnUnload(function(){_62f.destroy();});},onKeyPressNewItem:function(_630){if(_630.keyCode!==keys.ENTER||!_62a.trim(_630.target.value).length){return;}lang.getObject(this.id+"_listCtrl").addItem(_630.target.value);_630.target.value="";_630.preventDefault();_630.stopPropagation();}});});},"dojox/mvc/Templated":function(){define("dojox/mvc/Templated",["dojo/_base/declare","dojo/_base/lang","dijit/_WidgetBase","dijit/_TemplatedMixin","dijit/_WidgetsInTemplateMixin","dojox/mvc/at"],function(_631,lang,_632,_633,_634,at){return _631("dojox.mvc.Templated",[_632,_633,_634],{bindings:null,startup:function(){this.inherited(arguments);for(var s in this.bindings){var w=this[s],_635=this.bindings[s];if(w){for(var prop in _635){w.set(prop,_635[prop]);}}}}});});},"dojo/mouse":function(){define("dojo/mouse",["./_base/kernel","./on","./has","./dom","./_base/window"],function(dojo,on,has,dom,win){has.add("dom-quirks",win.doc&&win.doc.compatMode=="BackCompat");has.add("events-mouseenter",win.doc&&"onmouseenter" in win.doc.createElement("div"));has.add("events-mousewheel",win.doc&&"onmousewheel" in win.doc);var _636;if(has("dom-quirks")||!has("dom-addeventlistener")){_636={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_637){return e.button&_637;},isLeft:function(e){return e.button&1;},isMiddle:function(e){return e.button&4;},isRight:function(e){return e.button&2;}};}else{_636={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,_638){return e.button==_638;},isLeft:function(e){return e.button==0;},isMiddle:function(e){return e.button==1;},isRight:function(e){return e.button==2;}};}dojo.mouseButtons=_636;function _639(type,_63a){var _63b=function(node,_63c){return on(node,type,function(evt){if(_63a){return _63a(evt,_63c);}if(!dom.isDescendant(evt.relatedTarget,node)){return _63c.call(this,evt);}});};_63b.bubble=function(_63d){return _639(type,function(evt,_63e){var _63f=_63d(evt.target);var _640=evt.relatedTarget;if(_63f&&(_63f!=(_640&&_640.nodeType==1&&_63d(_640)))){return _63e.call(_63f,evt);}});};return _63b;};var _641;if(has("events-mousewheel")){_641="mousewheel";}else{_641=function(node,_642){return on(node,"DOMMouseScroll",function(evt){evt.wheelDelta=-evt.detail;_642.call(this,evt);});};}return {_eventHandler:_639,enter:_639("mouseover"),leave:_639("mouseout"),wheel:_641,isLeft:_636.isLeft,isMiddle:_636.isMiddle,isRight:_636.isRight};});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/sniff","./main"],function(_643,_644,_645,dom,_646,_647,has,_648){var _649=(_648._isElementShown=function(elem){var s=_647.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_646.get(elem,"type")!="hidden");});_648.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _646.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _64a=elem.contentDocument;if("designMode" in _64a&&_64a.designMode=="on"){return true;}body=_64a.body;}catch(e1){try{body=elem.contentWindow.document.body;}catch(e2){return false;}}return body&&(body.contentEditable=="true"||(body.firstChild&&body.firstChild.contentEditable=="true"));default:return elem.contentEditable=="true";}};var _64b=(_648.isTabNavigable=function(elem){if(_646.get(elem,"disabled")){return false;}else{if(_646.has(elem,"tabIndex")){return _646.get(elem,"tabIndex")>=0;}else{return _648.hasDefaultTabStop(elem);}}});_648._getTabNavigable=function(root){var _64c,last,_64d,_64e,_64f,_650,_651={};function _652(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _653=function(_654){for(var _655=_654.firstChild;_655;_655=_655.nextSibling){if(_655.nodeType!=1||(has("ie")&&_655.scopeName!=="HTML")||!_649(_655)){continue;}if(_64b(_655)){var _656=+_646.get(_655,"tabIndex");if(!_646.has(_655,"tabIndex")||_656==0){if(!_64c){_64c=_655;}last=_655;}else{if(_656>0){if(!_64d||_656<_64e){_64e=_656;_64d=_655;}if(!_64f||_656>=_650){_650=_656;_64f=_655;}}}var rn=_652(_655);if(_646.get(_655,"checked")&&rn){_651[rn]=_655;}}if(_655.nodeName.toUpperCase()!="SELECT"){_653(_655);}}};if(_649(root)){_653(root);}function rs(node){return _651[_652(node)]||node;};return {first:rs(_64c),last:rs(last),lowest:rs(_64d),highest:rs(_64f)};};_648.getFirstInTabbingOrder=function(root,doc){var _657=_648._getTabNavigable(dom.byId(root,doc));return _657.lowest?_657.lowest:_657.first;};_648.getLastInTabbingOrder=function(root,doc){var _658=_648._getTabNavigable(dom.byId(root,doc));return _658.last?_658.last:_658.highest;};return {hasDefaultTabStop:_648.hasDefaultTabStop,isTabNavigable:_648.isTabNavigable,_getTabNavigable:_648._getTabNavigable,getFirstInTabbingOrder:_648.getFirstInTabbingOrder,getLastInTabbingOrder:_648.getLastInTabbingOrder};});},"dojo/promise/instrumentation":function(){define(["./tracer","../has","../_base/lang","../_base/array"],function(_659,has,lang,_65a){function _65b(_65c,_65d,_65e){var _65f="";if(_65c&&_65c.stack){_65f+=_65c.stack;}if(_65d&&_65d.stack){_65f+="\n    ----------------------------------------\n    rejected"+_65d.stack.split("\n").slice(1).join("\n").replace(/^\s+/," ");}if(_65e&&_65e.stack){_65f+="\n    ----------------------------------------\n"+_65e.stack;}console.error(_65c,_65f);};function _660(_661,_662,_663,_664){if(!_662){_65b(_661,_663,_664);}};var _665=[];var _666=false;var _667=1000;function _668(_669,_66a,_66b,_66c){if(_66a){_65a.some(_665,function(obj,ix){if(obj.error===_669){_665.splice(ix,1);return true;}});}else{if(!_65a.some(_665,function(obj){return obj.error===_669;})){_665.push({error:_669,rejection:_66b,deferred:_66c,timestamp:new Date().getTime()});}}if(!_666){_666=setTimeout(_66d,_667);}};function _66d(){var now=new Date().getTime();var _66e=now-_667;_665=_65a.filter(_665,function(obj){if(obj.timestamp<_66e){_65b(obj.error,obj.rejection,obj.deferred);return false;}return true;});if(_665.length){_666=setTimeout(_66d,_665[0].timestamp+_667-now);}};return function(_66f){var _670=has("config-useDeferredInstrumentation");if(_670){_659.on("resolved",lang.hitch(console,"log","resolved"));_659.on("rejected",lang.hitch(console,"log","rejected"));_659.on("progress",lang.hitch(console,"log","progress"));var args=[];if(typeof _670==="string"){args=_670.split(",");_670=args.shift();}if(_670==="report-rejections"){_66f.instrumentRejected=_660;}else{if(_670==="report-unhandled-rejections"||_670===true||_670===1){_66f.instrumentRejected=_668;_667=parseInt(args[0],10)||_667;}else{throw new Error("Unsupported instrumentation usage <"+_670+">");}}}};});},"url:dijit/form/templates/Button.html":"<span class=\"dijit dijitReset dijitInline\" role=\"presentation\"\n\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\tdata-dojo-attach-event=\"ondijitclick:_onClick\" role=\"presentation\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdata-dojo-attach-point=\"titleNode,focusNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\" data-dojo-attach-point=\"iconNode\"></span\n\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#x25CF;</span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t\tdata-dojo-attach-point=\"containerNode\"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\"\n\t\ttabIndex=\"-1\" role=\"presentation\" data-dojo-attach-point=\"valueNode\"\n/></span>\n","dojo/request/xhr":function(){define("dojo/request/xhr",["../errors/RequestError","./watch","./handlers","./util","../has"],function(_671,_672,_673,util,has){has.add("native-xhr",function(){return typeof XMLHttpRequest!=="undefined";});has.add("dojo-force-activex-xhr",function(){return has("activex")&&!document.addEventListener&&window.location.protocol==="file:";});has.add("native-xhr2",function(){if(!has("native-xhr")){return;}var x=new XMLHttpRequest();return typeof x["addEventListener"]!=="undefined"&&(typeof opera==="undefined"||typeof x["upload"]!=="undefined");});has.add("native-formdata",function(){return typeof FormData==="function";});function _674(_675,_676){var _677=_675.xhr;_675.status=_675.xhr.status;_675.text=_677.responseText;if(_675.options.handleAs==="xml"){_675.data=_677.responseXML;}if(!_676){try{_673(_675);}catch(e){_676=e;}}if(_676){this.reject(_676);}else{if(util.checkStatus(_677.status)){this.resolve(_675);}else{_676=new _671("Unable to load "+_675.url+" status: "+_677.status,_675);this.reject(_676);}}};var _678,_679,_67a,_67b;if(has("native-xhr2")){_678=function(_67c){return !this.isFulfilled();};_67b=function(dfd,_67d){_67d.xhr.abort();};_67a=function(_67e,dfd,_67f){function _680(evt){dfd.handleResponse(_67f);};function _681(evt){var _682=evt.target;var _683=new _671("Unable to load "+_67f.url+" status: "+_682.status,_67f);dfd.handleResponse(_67f,_683);};function _684(evt){if(evt.lengthComputable){_67f.loaded=evt.loaded;_67f.total=evt.total;dfd.progress(_67f);}};_67e.addEventListener("load",_680,false);_67e.addEventListener("error",_681,false);_67e.addEventListener("progress",_684,false);return function(){_67e.removeEventListener("load",_680,false);_67e.removeEventListener("error",_681,false);_67e.removeEventListener("progress",_684,false);};};}else{_678=function(_685){return _685.xhr.readyState;};_679=function(_686){return 4===_686.xhr.readyState;};_67b=function(dfd,_687){var xhr=_687.xhr;var _688=typeof xhr.abort;if(_688==="function"||_688==="object"||_688==="unknown"){xhr.abort();}};}var _689,_68a={data:null,query:null,sync:false,method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded"}};function xhr(url,_68b,_68c){var _68d=util.parseArgs(url,util.deepCreate(_68a,_68b),has("native-formdata")&&_68b&&_68b.data&&_68b.data instanceof FormData);url=_68d.url;_68b=_68d.options;var _68e,last=function(){_68e&&_68e();};var dfd=util.deferred(_68d,_67b,_678,_679,_674,last);var _68f=_68d.xhr=xhr._create();if(!_68f){dfd.cancel(new _671("XHR was not created"));return _68c?dfd:dfd.promise;}_68d.getHeader=function(_690){return this.xhr.getResponseHeader(_690);};if(_67a){_68e=_67a(_68f,dfd,_68d);}var data=_68b.data,_691=!_68b.sync,_692=_68b.method;try{_68f.open(_692,url,_691,_68b.user||_689,_68b.password||_689);if(_68b.withCredentials){_68f.withCredentials=_68b.withCredentials;}var _693=_68b.headers,_694;if(_693){for(var hdr in _693){if(hdr.toLowerCase()==="content-type"){_694=_693[hdr];}else{if(_693[hdr]){_68f.setRequestHeader(hdr,_693[hdr]);}}}}if(_694&&_694!==false){_68f.setRequestHeader("Content-Type",_694);}if(!_693||!("X-Requested-With" in _693)){_68f.setRequestHeader("X-Requested-With","XMLHttpRequest");}if(util.notify){util.notify.emit("send",_68d,dfd.promise.cancel);}_68f.send(data);}catch(e){dfd.reject(e);}_672(dfd);_68f=null;return _68c?dfd:dfd.promise;};xhr._create=function(){throw new Error("XMLHTTP not available");};if(has("native-xhr")&&!has("dojo-force-activex-xhr")){xhr._create=function(){return new XMLHttpRequest();};}else{if(has("activex")){try{new ActiveXObject("Msxml2.XMLHTTP");xhr._create=function(){return new ActiveXObject("Msxml2.XMLHTTP");};}catch(e){try{new ActiveXObject("Microsoft.XMLHTTP");xhr._create=function(){return new ActiveXObject("Microsoft.XMLHTTP");};}catch(e){}}}}util.addCommonMethods(xhr);return xhr;});},"dojox/mvc/_Controller":function(){define("dojox/mvc/_Controller",["dojo/_base/declare","dojo/_base/lang","dojo/Stateful","./_atBindingMixin"],function(_695,lang,_696,_697){return _695("dojox.mvc._Controller",[_696,_697],{postscript:function(_698,_699){if(this._applyAttributes){this.inherited(arguments);}this._dbpostscript(_698,_699);if(_698){this.params=_698;for(var s in _698){this.set(s,_698[s]);}}var _69a;try{_69a=require("dijit/registry");this.id=this.id||(_699||{}).id||_69a.getUniqueId(this.declaredClass.replace(/\./g,"_"));_69a.add(this);}catch(e){}if(!_699){this.startup();}},startup:function(){if(!this._applyAttributes){this._startAtWatchHandles();}this.inherited(arguments);},destroy:function(){if(!this._applyAttributes){this._stopAtWatchHandles();}this.inherited(arguments);},set:function(name,_69b){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)){this.set(x,name[x]);}}return this;}if(!this._applyAttributes){if((_69b||{}).atsignature=="dojox.mvc.at"){return this._setAtWatchHandle(name,_69b);}else{var _69c="_set"+name.replace(/^[a-z]/,function(c){return c.toUpperCase();})+"Attr";if(this[_69c]){this[_69c](_69b);}else{this._set(name,_69b);}return this;}}return this.inherited(arguments);},_set:function(name,_69d){if(!this._applyAttributes){return this._changeAttrValue(name,_69d);}return this.inherited(arguments);}});});},"dijit/form/CheckBox":function(){require({cache:{"url:dijit/form/templates/CheckBox.html":"<div class=\"dijit dijitReset dijitInline\" role=\"presentation\"\n\t><input\n\t \t${!nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdata-dojo-attach-point=\"focusNode\"\n\t \tdata-dojo-attach-event=\"onclick:_onClick\"\n/></div>\n"}});define("dijit/form/CheckBox",["require","dojo/_base/declare","dojo/dom-attr","dojo/has","dojo/query","dojo/ready","./ToggleButton","./_CheckBoxMixin","dojo/text!./templates/CheckBox.html","dojo/NodeList-dom"],function(_69e,_69f,_6a0,has,_6a1,_6a2,_6a3,_6a4,_6a5){if(has("dijit-legacy-requires")){_6a2(0,function(){var _6a6=["dijit/form/RadioButton"];_69e(_6a6);});}return _69f("dijit.form.CheckBox",[_6a3,_6a4],{templateString:_6a5,baseClass:"dijitCheckBox",_setValueAttr:function(_6a7,_6a8){if(typeof _6a7=="string"){this.inherited(arguments);_6a7=true;}if(this._created){this.set("checked",_6a7,_6a8);}},_getValueAttr:function(){return (this.checked?this.value:false);},_setIconClassAttr:null,postMixInProperties:function(){this.inherited(arguments);this.checkedAttrSetting=this.checked?"checked":"";},_fillContent:function(){},_onFocus:function(){if(this.id){_6a1("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}this.inherited(arguments);},_onBlur:function(){if(this.id){_6a1("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}this.inherited(arguments);}});});},"dojo/_base/NodeList":function(){define("dojo/_base/NodeList",["./kernel","../query","./array","./html","../NodeList-dom"],function(dojo,_6a9,_6aa){var _6ab=_6a9.NodeList,nlp=_6ab.prototype;nlp.connect=_6ab._adaptAsForEach(function(){return dojo.connect.apply(this,arguments);});nlp.coords=_6ab._adaptAsMap(dojo.coords);_6ab.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"];_6aa.forEach(_6ab.events,function(evt){var _6ac="on"+evt;nlp[_6ac]=function(a,b){return this.connect(_6ac,a,b);};});dojo.NodeList=_6ab;return _6ab;});},"dojo/_base/kernel":function(){define(["../has","./config","require","module"],function(has,_6ad,_6ae,_6af){var i,p,_6b0={},_6b1={},dojo={config:_6ad,global:this,dijit:_6b0,dojox:_6b1};var _6b2={dojo:["dojo",dojo],dijit:["dijit",_6b0],dojox:["dojox",_6b1]},_6b3=(_6ae.map&&_6ae.map[_6af.id.match(/[^\/]+/)[0]]),item;for(p in _6b3){if(_6b2[p]){_6b2[p][0]=_6b3[p];}else{_6b2[p]=[_6b3[p],{}];}}for(p in _6b2){item=_6b2[p];item[1]._scopeName=item[0];if(!_6ad.noGlobals){this[item[0]]=item[1];}}dojo.scopeMap=_6b2;dojo.baseUrl=dojo.config.baseUrl=_6ae.baseUrl;dojo.isAsync=!1||_6ae.async;dojo.locale=_6ad.locale;var rev="$Rev: 29458 $".match(/\d+/);dojo.version={major:1,minor:8,patch:0,flag:"",revision:rev?+rev[0]:NaN,toString:function(){var v=dojo.version;return v.major+"."+v.minor+"."+v.patch+v.flag+" ("+v.revision+")";}};1||has.add("extend-dojo",1);(Function("d","d.eval = function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}"))(dojo);if(0){dojo.exit=function(_6b4){quit(_6b4);};}else{dojo.exit=function(){};}1||has.add("dojo-guarantee-console",1);if(1){typeof console!="undefined"||(console={});var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];var tn;i=0;while((tn=cn[i++])){if(!console[tn]){(function(){var tcn=tn+"";console[tcn]=("log" in console)?function(){var a=Array.apply({},arguments);a.unshift(tcn+":");console["log"](a.join(" "));}:function(){};console[tcn]._fake=true;})();}}}has.add("dojo-debug-messages",!!_6ad.isDebug);dojo.deprecated=dojo.experimental=function(){};if(has("dojo-debug-messages")){dojo.deprecated=function(_6b5,_6b6,_6b7){var _6b8="DEPRECATED: "+_6b5;if(_6b6){_6b8+=" "+_6b6;}if(_6b7){_6b8+=" -- will be removed in version: "+_6b7;}console.warn(_6b8);};dojo.experimental=function(_6b9,_6ba){var _6bb="EXPERIMENTAL: "+_6b9+" -- APIs subject to change without notice.";if(_6ba){_6bb+=" "+_6ba;}console.warn(_6bb);};}1||has.add("dojo-modulePaths",1);if(1){if(_6ad.modulePaths){dojo.deprecated("dojo.modulePaths","use paths configuration");var _6bc={};for(p in _6ad.modulePaths){_6bc[p.replace(/\./g,"/")]=_6ad.modulePaths[p];}_6ae({paths:_6bc});}}1||has.add("dojo-moduleUrl",1);if(1){dojo.moduleUrl=function(_6bd,url){dojo.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var _6be=null;if(_6bd){_6be=_6ae.toUrl(_6bd.replace(/\./g,"/")+(url?("/"+url):"")+"/*.*").replace(/\/\*\.\*/,"")+(url?"":"/");}return _6be;};}dojo._hasResource={};return dojo;});},"dojo/errors/create":function(){define(["../_base/lang"],function(lang){return function(name,ctor,base,_6bf){base=base||Error;var _6c0=function(_6c1){if(base===Error){if(Error.captureStackTrace){Error.captureStackTrace(this,_6c0);}var err=Error.call(this,_6c1),prop;for(prop in err){if(err.hasOwnProperty(prop)){this[prop]=err[prop];}}this.message=_6c1;this.stack=err.stack;}else{base.apply(this,arguments);}if(ctor){ctor.apply(this,arguments);}};_6c0.prototype=lang.delegate(base.prototype,_6bf);_6c0.prototype.name=name;_6c0.prototype.constructor=_6c0;return _6c0;};});},"dijit/form/_CheckBoxMixin":function(){define("dijit/form/_CheckBoxMixin",["dojo/_base/declare","dojo/dom-attr","dojo/_base/event"],function(_6c2,_6c3,_6c4){return _6c2("dijit.form._CheckBoxMixin",null,{type:"checkbox",value:"on",readOnly:false,_aria_attr:"aria-checked",_setReadOnlyAttr:function(_6c5){this._set("readOnly",_6c5);_6c3.set(this.focusNode,"readOnly",_6c5);this.focusNode.setAttribute("aria-readonly",_6c5);},_setLabelAttr:undefined,_getSubmitValue:function(_6c6){return !_6c6&&_6c6!==0?"on":_6c6;},_setValueAttr:function(_6c7){_6c7=this._getSubmitValue(_6c7);this._set("value",_6c7);_6c3.set(this.focusNode,"value",_6c7);},reset:function(){this.inherited(arguments);this._set("value",this.params.value||"on");_6c3.set(this.focusNode,"value",this.value);},_onClick:function(e){if(this.readOnly){_6c4.stop(e);return false;}return this.inherited(arguments);}});});},"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"],function(_6c8,has,_6c9,_6ca,lang,_6cb,_6cc,_6cd){if(_6cc.isDebug){_6c9(["./_firebug/firebug"]);}1||has.add("dojo-config-require",1);if(1){var deps=_6cc.require;if(deps){deps=_6cb.map(lang.isArray(deps)?deps:[deps],function(item){return item.replace(/\./g,"/");});if(_6c8.isAsync){_6c9(deps);}else{_6cd(1,function(){_6c9(deps);});}}}return _6c8;});},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./_base/kernel","./has"],function(_6ce,dojo,has){"use strict";if(1){var _6cf=window.ScriptEngineMajorVersion;has.add("jscript",_6cf&&(_6cf()+ScriptEngineMinorVersion()/10));has.add("event-orientationchange",has("touch")&&!has("android"));has.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);}var on=function(_6d0,type,_6d1,_6d2){if(_6d0.on&&typeof type!="function"){return _6d0.on(type,_6d1);}return on.parse(_6d0,type,_6d1,_6d3,_6d2,this);};on.pausable=function(_6d4,type,_6d5,_6d6){var _6d7;var _6d8=on(_6d4,type,function(){if(!_6d7){return _6d5.apply(this,arguments);}},_6d6);_6d8.pause=function(){_6d7=true;};_6d8.resume=function(){_6d7=false;};return _6d8;};on.once=function(_6d9,type,_6da,_6db){var _6dc=on(_6d9,type,function(){_6dc.remove();return _6da.apply(this,arguments);});return _6dc;};on.parse=function(_6dd,type,_6de,_6df,_6e0,_6e1){if(type.call){return type.call(_6e1,_6dd,_6de);}if(type.indexOf(",")>-1){var _6e2=type.split(/\s*,\s*/);var _6e3=[];var i=0;var _6e4;while(_6e4=_6e2[i++]){_6e3.push(_6df(_6dd,_6e4,_6de,_6e0,_6e1));}_6e3.remove=function(){for(var i=0;i<_6e3.length;i++){_6e3[i].remove();}};return _6e3;}return _6df(_6dd,type,_6de,_6e0,_6e1);};var _6e5=/^touch/;function _6d3(_6e6,type,_6e7,_6e8,_6e9){var _6ea=type.match(/(.*):(.*)/);if(_6ea){type=_6ea[2];_6ea=_6ea[1];return on.selector(_6ea,type).call(_6e9,_6e6,_6e7);}if(has("touch")){if(_6e5.test(type)){_6e7=_6eb(_6e7);}if(!has("event-orientationchange")&&(type=="orientationchange")){type="resize";_6e6=window;_6e7=_6eb(_6e7);}}if(_6ec){_6e7=_6ec(_6e7);}if(_6e6.addEventListener){var _6ed=type in _6ee,_6ef=_6ed?_6ee[type]:type;_6e6.addEventListener(_6ef,_6e7,_6ed);return {remove:function(){_6e6.removeEventListener(_6ef,_6e7,_6ed);}};}type="on"+type;if(_6f0&&_6e6.attachEvent){return _6f0(_6e6,type,_6e7);}throw new Error("Target must be an event emitter");};on.selector=function(_6f1,_6f2,_6f3){return function(_6f4,_6f5){var _6f6=typeof _6f1=="function"?{matches:_6f1}:this,_6f7=_6f2.bubble;function _6f8(_6f9){_6f6=_6f6&&_6f6.matches?_6f6:dojo.query;while(!_6f6.matches(_6f9,_6f1,_6f4)){if(_6f9==_6f4||_6f3===false||!(_6f9=_6f9.parentNode)||_6f9.nodeType!=1){return;}}return _6f9;};if(_6f7){return on(_6f4,_6f7(_6f8),_6f5);}return on(_6f4,_6f2,function(_6fa){var _6fb=_6f8(_6fa.target);return _6fb&&_6f5.call(_6fb,_6fa);});};};function _6fc(){this.cancelable=false;};function _6fd(){this.bubbles=false;};var _6fe=[].slice,_6ff=on.emit=function(_700,type,_701){var args=_6fe.call(arguments,2);var _702="on"+type;if("parentNode" in _700){var _703=args[0]={};for(var i in _701){_703[i]=_701[i];}_703.preventDefault=_6fc;_703.stopPropagation=_6fd;_703.target=_700;_703.type=type;_701=_703;}do{_700[_702]&&_700[_702].apply(_700,args);}while(_701&&_701.bubbles&&(_700=_700.parentNode));return _701&&_701.cancelable&&_701;};var _6ee={};if(!has("event-stopimmediatepropagation")){var _704=function(){this.immediatelyStopped=true;this.modified=true;};var _6ec=function(_705){return function(_706){if(!_706.immediatelyStopped){_706.stopImmediatePropagation=_704;return _705.apply(this,arguments);}};};}if(has("dom-addeventlistener")){_6ee={focusin:"focus",focusout:"blur"};if(has("opera")){_6ee.keydown="keypress";}on.emit=function(_707,type,_708){if(_707.dispatchEvent&&document.createEvent){var _709=_707.ownerDocument.createEvent("HTMLEvents");_709.initEvent(type,!!_708.bubbles,!!_708.cancelable);for(var i in _708){var _70a=_708[i];if(!(i in _709)){_709[i]=_708[i];}}return _707.dispatchEvent(_709)&&_709;}return _6ff.apply(on,arguments);};}else{on._fixEvent=function(evt,_70b){if(!evt){var w=_70b&&(_70b.ownerDocument||_70b.document||_70b).parentWindow||window;evt=w.event;}if(!evt){return evt;}if(_70c&&evt.type==_70c.type){evt=_70c;}if(!evt.target){evt.target=evt.srcElement;evt.currentTarget=(_70b||evt.srcElement);if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}if(!evt.stopPropagation){evt.stopPropagation=_70d;evt.preventDefault=_70e;}switch(evt.type){case "keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;_70f(evt);break;}}return evt;};var _70c,_710=function(_711){this.handle=_711;};_710.prototype.remove=function(){delete _dojoIEListeners_[this.handle];};var _712=function(_713){return function(evt){evt=on._fixEvent(evt,this);var _714=_713.call(this,evt);if(evt.modified){if(!_70c){setTimeout(function(){_70c=null;});}_70c=evt;}return _714;};};var _6f0=function(_715,type,_716){_716=_712(_716);if(((_715.ownerDocument?_715.ownerDocument.parentWindow:_715.parentWindow||_715.window||window)!=top||has("jscript")<5.8)&&!has("config-_allow_leaks")){if(typeof _dojoIEListeners_=="undefined"){_dojoIEListeners_=[];}var _717=_715[type];if(!_717||!_717.listeners){var _718=_717;_717=Function("event","var callee = arguments.callee; for(var i = 0; i<callee.listeners.length; i++){var listener = _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}");_717.listeners=[];_715[type]=_717;_717.global=this;if(_718){_717.listeners.push(_dojoIEListeners_.push(_718)-1);}}var _719;_717.listeners.push(_719=(_717.global._dojoIEListeners_.push(_716)-1));return new _710(_719);}return _6ce.after(_715,type,_716,true);};var _70f=function(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;};var _70d=function(){this.cancelBubble=true;};var _70e=on._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){try{this.keyCode=0;}catch(e){}}this.defaultPrevented=true;this.returnValue=false;};}if(has("touch")){var _71a=function(){};var _71b=window.orientation;var _6eb=function(_71c){return function(_71d){var _71e=_71d.corrected;if(!_71e){var type=_71d.type;try{delete _71d.type;}catch(e){}if(_71d.type){_71a.prototype=_71d;var _71e=new _71a;_71e.preventDefault=function(){_71d.preventDefault();};_71e.stopPropagation=function(){_71d.stopPropagation();};}else{_71e=_71d;_71e.type=type;}_71d.corrected=_71e;if(type=="resize"){if(_71b==window.orientation){return null;}_71b=window.orientation;_71e.type="orientationchange";return _71c.call(this,_71e);}if(!("rotation" in _71e)){_71e.rotation=0;_71e.scale=1;}var _71f=_71e.changedTouches[0];for(var i in _71f){delete _71e[i];_71e[i]=_71f[i];}}return _71c.call(this,_71e);};};}return on;});},"dijit/_Widget":function(){define("dijit/_Widget",["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"],function(_720,_721,_722,_723,has,_724,lang,_725,_726,_727,_728,_729,_72a){function _72b(){};function _72c(_72d){return function(obj,_72e,_72f,_730){if(obj&&typeof _72e=="string"&&obj[_72e]==_72b){return obj.on(_72e.substring(2).toLowerCase(),lang.hitch(_72f,_730));}return _72d.apply(_722,arguments);};};_720.around(_722,"connect",_72c);if(_724.connect){_720.around(_724,"connect",_72c);}var _731=_723("dijit._Widget",[_728,_729,_72a],{onClick:_72b,onDblClick:_72b,onKeyDown:_72b,onKeyPress:_72b,onKeyUp:_72b,onMouseDown:_72b,onMouseMove:_72b,onMouseOut:_72b,onMouseOver:_72b,onMouseLeave:_72b,onMouseEnter:_72b,onMouseUp:_72b,constructor:function(_732){this._toConnect={};for(var name in _732){if(this[name]===_72b){this._toConnect[name.replace(/^on/,"").toLowerCase()]=_732[name];delete _732[name];}}},postCreate:function(){this.inherited(arguments);for(var name in this._toConnect){this.on(name,this._toConnect[name]);}delete this._toConnect;},on:function(type,func){if(this[this._onMap(type)]===_72b){return _722.connect(this.domNode,type.toLowerCase(),this,func);}return this.inherited(arguments);},_setFocusedAttr:function(val){this._focused=val;this._set("focused",val);},setAttribute:function(attr,_733){_724.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_733);},attr:function(name,_734){if(_721.isDebug){var _735=arguments.callee._ach||(arguments.callee._ach={}),_736=(arguments.callee.caller||"unknown caller").toString();if(!_735[_736]){_724.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_736,"","2.0");_735[_736]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},getDescendants:function(){_724.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_725("[widgetId]",this.containerNode).map(_727.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(has("dijit-legacy-requires")){_726(0,function(){var _737=["dijit/_base"];require(_737);});}return _731;});},"todo/ctrl/RouteController":function(){define(["dojo/_base/declare","dojo/router","dijit/Destroyable","dojox/mvc/_Controller"],function(_738,_739,_73a,_73b){return _738([_73b,_73a],{postscript:function(_73c,_73d){this.inherited(arguments);_73d&&_73d.setAttribute("widgetId",this.id);},startup:function(){var _73e=this;this.own(_739.register(/.*/,function(e){_73e._set("hash",e.newPath);}));_739.startup();this.set("hash",_739._currentPath);},_setHashAttr:function(_73f){if(this.hash!=_73f){_739.go(_73f);}this._set("hash",_73f);}});});},"dojo/cache":function(){define(["./_base/kernel","./text"],function(dojo){return dojo.cache;});},"dijit/_OnDijitClickMixin":function(){define("dijit/_OnDijitClickMixin",["dojo/on","dojo/_base/array","dojo/keys","dojo/_base/declare","dojo/has","dojo/_base/unload","dojo/_base/window","./a11yclick"],function(on,_740,keys,_741,has,_742,win,_743){var ret=_741("dijit._OnDijitClickMixin",null,{connect:function(obj,_744,_745){return this.inherited(arguments,[obj,_744=="ondijitclick"?_743:_744,_745]);}});ret.a11yclick=_743;return ret;});},"dijit/_FocusMixin":function(){define("dijit/_FocusMixin",["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_746,_747,_748,lang){lang.extend(_747,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _748("dijit._FocusMixin",null,{_focusManager:_746});});},"dojo/query":function(){define(["./_base/kernel","./has","./dom","./on","./_base/array","./_base/lang","./selector/_loader","./selector/_loader!default"],function(dojo,has,dom,on,_749,lang,_74a,_74b){"use strict";has.add("array-extensible",function(){return lang.delegate([],{length:1}).length==1&&!has("bug-for-in-skips-shadowed");});var ap=Array.prototype,aps=ap.slice,apc=ap.concat,_74c=_749.forEach;var tnl=function(a,_74d,_74e){var _74f=new (_74e||this._NodeListCtor||nl)(a);return _74d?_74f._stash(_74d):_74f;};var _750=function(f,a,o){a=[0].concat(aps.call(a,0));o=o||dojo.global;return function(node){a[0]=node;return f.apply(o,a);};};var _751=function(f,o){return function(){this.forEach(_750(f,arguments,o));return this;};};var _752=function(f,o){return function(){return this.map(_750(f,arguments,o));};};var _753=function(f,o){return function(){return this.filter(_750(f,arguments,o));};};var _754=function(f,g,o){return function(){var a=arguments,body=_750(f,a,o);if(g.call(o||dojo.global,a)){return this.map(body);}this.forEach(body);return this;};};var _755=function(_756){var _757=this instanceof nl&&has("array-extensible");if(typeof _756=="number"){_756=Array(_756);}var _758=(_756&&"length" in _756)?_756:arguments;if(_757||!_758.sort){var _759=_757?this:[],l=_759.length=_758.length;for(var i=0;i<l;i++){_759[i]=_758[i];}if(_757){return _759;}_758=_759;}lang._mixin(_758,nlp);_758._NodeListCtor=function(_75a){return nl(_75a);};return _758;};var nl=_755,nlp=nl.prototype=has("array-extensible")?[]:{};nl._wrap=nlp._wrap=tnl;nl._adaptAsMap=_752;nl._adaptAsForEach=_751;nl._adaptAsFilter=_753;nl._adaptWithCondition=_754;_74c(["slice","splice"],function(name){var f=ap[name];nlp[name]=function(){return this._wrap(f.apply(this,arguments),name=="slice"?this:null);};});_74c(["indexOf","lastIndexOf","every","some"],function(name){var f=_749[name];nlp[name]=function(){return f.apply(dojo,[this].concat(aps.call(arguments,0)));};});lang.extend(_755,{constructor:nl,_NodeListCtor:nl,toString:function(){return this.join(",");},_stash:function(_75b){this._parent=_75b;return this;},on:function(_75c,_75d){var _75e=this.map(function(node){return on(node,_75c,_75d);});_75e.remove=function(){for(var i=0;i<_75e.length;i++){_75e[i].remove();}};return _75e;},end:function(){if(this._parent){return this._parent;}else{return new this._NodeListCtor(0);}},concat:function(item){var t=aps.call(this,0),m=_749.map(arguments,function(a){return aps.call(a,0);});return this._wrap(apc.apply(t,m),this);},map:function(func,obj){return this._wrap(_749.map(this,func,obj),this);},forEach:function(_75f,_760){_74c(this,_75f,_760);return this;},filter:function(_761){var a=arguments,_762=this,_763=0;if(typeof _761=="string"){_762=_764._filterResult(this,a[0]);if(a.length==1){return _762._stash(this);}_763=1;}return this._wrap(_749.filter(_762,a[_763],a[_763+1]),this);},instantiate:function(_765,_766){var c=lang.isFunction(_765)?_765:lang.getObject(_765);_766=_766||{};return this.forEach(function(node){new c(_766,node);});},at:function(){var t=new this._NodeListCtor(0);_74c(arguments,function(i){if(i<0){i=this.length+i;}if(this[i]){t.push(this[i]);}},this);return t._stash(this);}});function _767(_768,_769){var _76a=function(_76b,root){if(typeof root=="string"){root=dom.byId(root);if(!root){return new _769([]);}}var _76c=typeof _76b=="string"?_768(_76b,root):_76b?_76b.orphan?_76b:[_76b]:[];if(_76c.orphan){return _76c;}return new _769(_76c);};_76a.matches=_768.match||function(node,_76d,root){return _76a.filter([node],_76d,root).length>0;};_76a.filter=_768.filter||function(_76e,_76f,root){return _76a(_76f,root).filter(function(node){return _749.indexOf(_76e,node)>-1;});};if(typeof _768!="function"){var _770=_768.search;_768=function(_771,root){return _770(root||document,_771);};}return _76a;};var _764=_767(_74b,_755);dojo.query=_767(_74b,function(_772){return _755(_772);});_764.load=function(id,_773,_774){_74a.load(id,_773,function(_775){_774(_767(_775,_755));});};dojo._filterQueryResult=_764._filterResult=function(_776,_777,root){return new _755(_764.filter(_776,_777,root));};dojo.NodeList=_764.NodeList=_755;return _764;});},"url:todo/app18.html":"<section>\n\t<script type=\"dojo/require\">\n\t\tat: \"dojox/mvc/at\",\n\t\tSimpleTodoModel: \"todo/model/SimpleTodoModel\",\n\t\tHashSelectedConverter: \"todo/misc/HashSelectedConverter\",\n\t\tLessThanOrEqualToConverter: \"todo/misc/LessThanOrEqualToConverter\"\n\t</script>\n\t<span data-dojo-id=\"${id}_routeCtl\" data-dojo-type=\"todo/ctrl/RouteController\"></span>\n\t<span data-dojo-id=\"${id}_localStorage\" data-dojo-type=\"todo/store/LocalStorage\"></span>\n\t<span data-dojo-id=\"${id}_ctrl\"\n\t data-dojo-type=\"todo/ctrl/TodoRefController\"\n\t data-dojo-props=\"defaultId: 'todos-dojo', store: ${id}_localStorage, modelClass: SimpleTodoModel, complete: at('widget:${id}', 'complete')\"></span>\n\t<span data-dojo-id=\"${id}_listCtrl\"\n\t data-dojo-type=\"todo/ctrl/TodoListRefController\"\n\t data-dojo-props=\"model: at(${id}_ctrl, 'todos'), length: at('widget:${id}', 'present').direction(at.to)\"></span>\n\t<header id=\"header\">\n\t\t<h1>todos</h1>\n\t\t<input id=\"new-todo\" placeholder=\"What needs to be done?\" type=\"text\" autofocus\n\t\t data-dojo-attach-event=\"onkeypress: onKeyPressNewItem\">\n\t\t<span class=\"ui-tooltip-top\" style=\"display:none;\">Press Enter to save this task</span>\n\t</header>\n\t<section id=\"main\">\n\t\t<input id=\"toggle-all\" type=\"checkbox\"\n\t\t data-dojo-type=\"dijit/form/CheckBox\"\n\t\t data-dojo-props=\"checked: at(${id}_ctrl, 'incomplete').transform(LessThanOrEqualToConverter),\n\t\t                  onClick: function(e){ ${id}_listCtrl.markAll(e.target.checked); }\">\n\t\t<label for=\"toggle-all\">Mark all as complete</label>\n\t\t<ul id=\"todo-list\"\n\t\t data-dojo-type=\"todo/TodoList\"\n\t\t data-dojo-props=\"children: at(${id}_listCtrl, 'model'), partialRebuild: true, listCtrl: ${id}_listCtrl\"\n\t\t data-mvc-child-props=\"uniqueId: at(this.target, 'uniqueId'), completed: at(this.target, 'completed'), hash: at(${id}_routeCtl, 'hash')\">\n\t\t\t<script type=\"dojox/mvc/InlineTemplate\">\n\t\t\t\t<li>\n\t\t\t\t\t<div class=\"view\">\n\t\t\t\t\t\t<label class=\"dijitInline inline_edit\"\n\t\t\t\t\t\t data-dojo-attach-point=\"editBox\"\n\t\t\t\t\t\t data-dojo-attach-event=\"onChange: onEditBoxChange\"\n\t\t\t\t\t\t data-dojo-type=\"todo/form/InlineEditBox\"\n\t\t\t\t\t\t data-dojo-props=\"value: at('rel:', 'title'), editor: 'dijit/form/TextBox', autosave: true\"></label>\n\t\t\t\t\t\t<input class=\"toggle\" type=\"checkbox\"\n\t\t\t\t\t\t data-dojo-type=\"dijit/form/CheckBox\"\n\t\t\t\t\t\t data-dojo-props=\"checked: at('rel:', 'completed')\">\n\t\t\t\t\t\t<button class=\"destroy\" data-dojo-attach-event=\"onclick: onRemoveClick\"></button>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t</script>\n\t\t</ul>\n\t</section>\n\t<footer id=\"footer\">\n\t\t<span id=\"todo-count\">\n\t\t\t<strong>\n\t\t\t\t<span class=\"number\"\n\t\t\t\t data-dojo-type=\"dijit/_WidgetBase\"\n\t\t\t\t data-dojo-props=\"_setValueAttr: {type: 'innerText', node: 'domNode'}, value: at(${id}_ctrl, 'incomplete')\"></span>\n\t\t\t</strong>\n\t\t\t<span class=\"word\">item<!--\n\t\t\t\t--><span data-dojo-type=\"todo/CssToggleWidget\"\n\t\t\t\t data-dojo-props=\"_setSingleAttr: {type: 'classExists', className: 'plural'},\n\t\t\t\t                  constraints: {lessThanOrEqualTo: 1},\n\t\t\t\t                  single: at(${id}_ctrl, 'incomplete').transform(LessThanOrEqualToConverter)\">s</span></span>\n\t\t\tleft.\n\t\t</span>\n\t\t<!-- Remove this if you don't implement routing -->\n\t\t<ul id=\"filters\">\n\t\t\t<li>\n\t\t\t\t<a href=\"#/\"\n\t\t\t\t data-dojo-type=\"todo/CssToggleWidget\"\n\t\t\t\t data-dojo-props=\"_setSelectedAttr: {type: 'classExists', className: 'selected'},\n\t\t\t\t                  selected: at(${id}_routeCtl, 'hash').transform(HashSelectedConverter)\">All</a>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#/active\"\n\t\t\t\t data-dojo-type=\"todo/CssToggleWidget\"\n\t\t\t\t data-dojo-props=\"_setSelectedAttr: {type: 'classExists', className: 'selected'},\n\t\t\t\t                  selected: at(${id}_routeCtl, 'hash').transform(HashSelectedConverter)\">Active</a>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#/completed\"\n\t\t\t\t data-dojo-type=\"todo/CssToggleWidget\"\n\t\t\t\t data-dojo-props=\"_setSelectedAttr: {type: 'classExists', className: 'selected'},\n\t\t\t\t                  selected: at(${id}_routeCtl, 'hash').transform(HashSelectedConverter)\">Completed</a>\n\t\t\t</li>\n\t\t</ul>\n\t\t<button id=\"clear-completed\" onclick=\"${id}_listCtrl.removeCompletedItems();\">\n\t\t\tClear completed (\n\t\t\t<span class=\"number-done\"\n\t\t\t data-dojo-type=\"dijit/_WidgetBase\"\n\t\t\t data-dojo-props=\"_setValueAttr: {type: 'innerText', node: 'domNode'}, value: at(${id}_ctrl, 'complete')\"></span>\n\t\t\t)\n\t\t</button>\n\t</footer>\n</section>\n","dijit/form/_ToggleButtonMixin":function(){define("dijit/form/_ToggleButtonMixin",["dojo/_base/declare","dojo/dom-attr"],function(_778,_779){return _778("dijit.form._ToggleButtonMixin",null,{checked:false,_aria_attr:"aria-pressed",_onClick:function(evt){var _77a=this.checked;this._set("checked",!_77a);var ret=this.inherited(arguments);this.set("checked",ret?this.checked:_77a);return ret;},_setCheckedAttr:function(_77b,_77c){this._set("checked",_77b);_779.set(this.focusNode||this.domNode,"checked",_77b);(this.focusNode||this.domNode).setAttribute(this._aria_attr,_77b?"true":"false");this._handleOnChange(_77b,_77c);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});});},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(lang,_77d,dom){var _77e="className";var cls,_77f=/\s+/,a1=[""];function _780(s){if(typeof s=="string"||s instanceof String){if(s&&!_77f.test(s)){a1[0]=s;return a1;}var a=s.split(_77f);if(a.length&&!a[0]){a.shift();}if(a.length&&!a[a.length-1]){a.pop();}return a;}if(!s){return [];}return _77d.filter(s,function(x){return x;});};var _781={};cls={contains:function containsClass(node,_782){return ((" "+dom.byId(node)[_77e]+" ").indexOf(" "+_782+" ")>=0);},add:function addClass(node,_783){node=dom.byId(node);_783=_780(_783);var cls=node[_77e],_784;cls=cls?" "+cls+" ":" ";_784=cls.length;for(var i=0,len=_783.length,c;i<len;++i){c=_783[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" ";}}if(_784<cls.length){node[_77e]=cls.substr(1,cls.length-2);}},remove:function removeClass(node,_785){node=dom.byId(node);var cls;if(_785!==undefined){_785=_780(_785);cls=" "+node[_77e]+" ";for(var i=0,len=_785.length;i<len;++i){cls=cls.replace(" "+_785[i]+" "," ");}cls=lang.trim(cls);}else{cls="";}if(node[_77e]!=cls){node[_77e]=cls;}},replace:function replaceClass(node,_786,_787){node=dom.byId(node);_781[_77e]=node[_77e];cls.remove(_781,_787);cls.add(_781,_786);if(node[_77e]!==_781[_77e]){node[_77e]=_781[_77e];}},toggle:function toggleClass(node,_788,_789){node=dom.byId(node);if(_789===undefined){_788=_780(_788);for(var i=0,len=_788.length,c;i<len;++i){c=_788[i];cls[cls.contains(node,c)?"remove":"add"](node,c);}}else{cls[_789?"add":"remove"](node,_788);}return _789;}};return cls;});},"dijit/focus":function(){define("dijit/focus",["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/ready","dojo/sniff","dojo/Stateful","dojo/_base/unload","dojo/_base/window","dojo/window","./a11y","./registry","./main"],function(_78a,_78b,dom,_78c,_78d,_78e,lang,on,_78f,has,_790,_791,win,_792,a11y,_793,_794){var _795=_78b([_790,_78e],{curNode:null,activeStack:[],constructor:function(){var _796=lang.hitch(this,function(node){if(dom.isDescendant(this.curNode,node)){this.set("curNode",null);}if(dom.isDescendant(this.prevNode,node)){this.set("prevNode",null);}});_78a.before(_78d,"empty",_796);_78a.before(_78d,"destroy",_796);},registerIframe:function(_797){return this.registerWin(_797.contentWindow,_797);},registerWin:function(_798,_799){var _79a=this;var _79b=function(evt){_79a._justMouseDowned=true;setTimeout(function(){_79a._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_79a._onTouchNode(_799||evt.target||evt.srcElement,"mouse");};var doc=has("ie")?_798.document.documentElement:_798.document;if(doc){if(has("ie")){_798.document.body.attachEvent("onmousedown",_79b);var _79c=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_79a._onFocusNode(_799||evt.srcElement);}else{_79a._onTouchNode(_799||evt.srcElement);}};doc.attachEvent("onfocusin",_79c);var _79d=function(evt){_79a._onBlurNode(_799||evt.srcElement);};doc.attachEvent("onfocusout",_79d);return {remove:function(){_798.document.detachEvent("onmousedown",_79b);doc.detachEvent("onfocusin",_79c);doc.detachEvent("onfocusout",_79d);doc=null;}};}else{doc.body.addEventListener("mousedown",_79b,true);doc.body.addEventListener("touchstart",_79b,true);var _79e=function(evt){_79a._onFocusNode(_799||evt.target);};doc.addEventListener("focus",_79e,true);var _79f=function(evt){_79a._onBlurNode(_799||evt.target);};doc.addEventListener("blur",_79f,true);return {remove:function(){doc.body.removeEventListener("mousedown",_79b,true);doc.body.removeEventListener("touchstart",_79b,true);doc.removeEventListener("focus",_79e,true);doc.removeEventListener("blur",_79f,true);doc=null;}};}}},_onBlurNode:function(node){if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);}this._clearFocusTimer=setTimeout(lang.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null);}),0);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);}),0);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _7a0=[];try{while(node){var _7a1=_78c.get(node,"dijitPopupParent");if(_7a1){node=_793.byId(_7a1).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_792.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_7a2=id&&_793.byId(id);if(_7a2&&!(by=="mouse"&&_7a2.get("disabled"))){_7a0.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_7a0,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);delete this._clearFocusTimer;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("prevNode",this.curNode);this.set("curNode",node);},_setStack:function(_7a3,by){var _7a4=this.activeStack;this.set("activeStack",_7a3);for(var _7a5=0;_7a5<Math.min(_7a4.length,_7a3.length);_7a5++){if(_7a4[_7a5]!=_7a3[_7a5]){break;}}var _7a6;for(var i=_7a4.length-1;i>=_7a5;i--){_7a6=_793.byId(_7a4[i]);if(_7a6){_7a6._hasBeenBlurred=true;_7a6.set("focused",false);if(_7a6._focusManager==this){_7a6._onBlur(by);}this.emit("widget-blur",_7a6,by);}}for(i=_7a5;i<_7a3.length;i++){_7a6=_793.byId(_7a3[i]);if(_7a6){_7a6.set("focused",true);if(_7a6._focusManager==this){_7a6._onFocus(by);}this.emit("widget-focus",_7a6,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _7a7=new _795();_78f(function(){var _7a8=_7a7.registerWin(_792.get(win.doc));if(has("ie")){_791.addOnWindowUnload(function(){if(_7a8){_7a8.remove();_7a8=null;}});}});_794.focus=function(node){_7a7.focus(node);};for(var attr in _7a7){if(!/^_/.test(attr)){_794.focus[attr]=typeof _7a7[attr]=="function"?lang.hitch(_7a7,attr):_7a7[attr];}}_7a7.watch(function(attr,_7a9,_7aa){_794.focus[attr]=_7aa;});return _7a7;});},"dojo/dom-attr":function(){define(["exports","./sniff","./_base/lang","./dom","./dom-style","./dom-prop"],function(_7ab,has,lang,dom,_7ac,prop){var _7ad={innerHTML:1,className:1,htmlFor:has("ie"),value:1},_7ae={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};function _7af(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified;};_7ab.has=function hasAttr(node,name){var lc=name.toLowerCase();return _7ad[prop.names[lc]||name]||_7af(dom.byId(node),_7ae[lc]||name);};_7ab.get=function getAttr(node,name){node=dom.byId(node);var lc=name.toLowerCase(),_7b0=prop.names[lc]||name,_7b1=_7ad[_7b0],_7b2=node[_7b0];if(_7b1&&typeof _7b2!="undefined"){return _7b2;}if(_7b0!="href"&&(typeof _7b2=="boolean"||lang.isFunction(_7b2))){return _7b2;}var _7b3=_7ae[lc]||name;return _7af(node,_7b3)?node.getAttribute(_7b3):null;};_7ab.set=function setAttr(node,name,_7b4){node=dom.byId(node);if(arguments.length==2){for(var x in name){_7ab.set(node,x,name[x]);}return node;}var lc=name.toLowerCase(),_7b5=prop.names[lc]||name,_7b6=_7ad[_7b5];if(_7b5=="style"&&typeof _7b4!="string"){_7ac.set(node,_7b4);return node;}if(_7b6||typeof _7b4=="boolean"||lang.isFunction(_7b4)){return prop.set(node,name,_7b4);}node.setAttribute(_7ae[lc]||name,_7b4);return node;};_7ab.remove=function removeAttr(node,name){dom.byId(node).removeAttribute(_7ae[name.toLowerCase()]||name);};_7ab.getNodeProp=function getNodeProp(node,name){node=dom.byId(node);var lc=name.toLowerCase(),_7b7=prop.names[lc]||name;if((_7b7 in node)&&_7b7!="href"){return node[_7b7];}var _7b8=_7ae[lc]||name;return _7af(node,_7b8)?node.getAttribute(_7b8):null;};});},"dojo/selector/acme":function(){define(["../dom","../sniff","../_base/array","../_base/lang","../_base/window"],function(dom,has,_7b9,lang,win){var trim=lang.trim;var each=_7b9.forEach;var _7ba=function(){return win.doc;};var _7bb=(_7ba().compatMode)=="BackCompat";var _7bc=">~+";var _7bd=false;var _7be=function(){return true;};var _7bf=function(_7c0){if(_7bc.indexOf(_7c0.slice(-1))>=0){_7c0+=" * ";}else{_7c0+=" ";}var ts=function(s,e){return trim(_7c0.slice(s,e));};var _7c1=[];var _7c2=-1,_7c3=-1,_7c4=-1,_7c5=-1,_7c6=-1,inId=-1,_7c7=-1,_7c8,lc="",cc="",_7c9;var x=0,ql=_7c0.length,_7ca=null,_7cb=null;var _7cc=function(){if(_7c7>=0){var tv=(_7c7==x)?null:ts(_7c7,x);_7ca[(_7bc.indexOf(tv)<0)?"tag":"oper"]=tv;_7c7=-1;}};var _7cd=function(){if(inId>=0){_7ca.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _7ce=function(){if(_7c6>=0){_7ca.classes.push(ts(_7c6+1,x).replace(/\\/g,""));_7c6=-1;}};var _7cf=function(){_7cd();_7cc();_7ce();};var _7d0=function(){_7cf();if(_7c5>=0){_7ca.pseudos.push({name:ts(_7c5+1,x)});}_7ca.loops=(_7ca.pseudos.length||_7ca.attrs.length||_7ca.classes.length);_7ca.oquery=_7ca.query=ts(_7c9,x);_7ca.otag=_7ca.tag=(_7ca["oper"])?null:(_7ca.tag||"*");if(_7ca.tag){_7ca.tag=_7ca.tag.toUpperCase();}if(_7c1.length&&(_7c1[_7c1.length-1].oper)){_7ca.infixOper=_7c1.pop();_7ca.query=_7ca.infixOper.query+" "+_7ca.query;}_7c1.push(_7ca);_7ca=null;};for(;lc=cc,cc=_7c0.charAt(x),x<ql;x++){if(lc=="\\"){continue;}if(!_7ca){_7c9=x;_7ca={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return _7bd?this.otag:this.tag;}};_7c7=x;}if(_7c8){if(cc==_7c8){_7c8=null;}continue;}else{if(cc=="'"||cc=="\""){_7c8=cc;continue;}}if(_7c2>=0){if(cc=="]"){if(!_7cb.attr){_7cb.attr=ts(_7c2+1,x);}else{_7cb.matchFor=ts((_7c4||_7c2+1),x);}var cmf=_7cb.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_7cb.matchFor=cmf.slice(1,-1);}}if(_7cb.matchFor){_7cb.matchFor=_7cb.matchFor.replace(/\\/g,"");}_7ca.attrs.push(_7cb);_7cb=null;_7c2=_7c4=-1;}else{if(cc=="="){var _7d1=("|~^$*".indexOf(lc)>=0)?lc:"";_7cb.type=_7d1+cc;_7cb.attr=ts(_7c2+1,x-_7d1.length);_7c4=x+1;}}}else{if(_7c3>=0){if(cc==")"){if(_7c5>=0){_7cb.value=ts(_7c3+1,x);}_7c5=_7c3=-1;}}else{if(cc=="#"){_7cf();inId=x+1;}else{if(cc=="."){_7cf();_7c6=x;}else{if(cc==":"){_7cf();_7c5=x;}else{if(cc=="["){_7cf();_7c2=x;_7cb={};}else{if(cc=="("){if(_7c5>=0){_7cb={name:ts(_7c5+1,x),value:null};_7ca.pseudos.push(_7cb);}_7c3=x;}else{if((cc==" ")&&(lc!=cc)){_7d0();}}}}}}}}}return _7c1;};var _7d2=function(_7d3,_7d4){if(!_7d3){return _7d4;}if(!_7d4){return _7d3;}return function(){return _7d3.apply(window,arguments)&&_7d4.apply(window,arguments);};};var _7d5=function(i,arr){var r=arr||[];if(i){r.push(i);}return r;};var _7d6=function(n){return (1==n.nodeType);};var _7d7="";var _7d8=function(elem,attr){if(!elem){return _7d7;}if(attr=="class"){return elem.className||_7d7;}if(attr=="for"){return elem.htmlFor||_7d7;}if(attr=="style"){return elem.style.cssText||_7d7;}return (_7bd?elem.getAttribute(attr):elem.getAttribute(attr,2))||_7d7;};var _7d9={"*=":function(attr,_7da){return function(elem){return (_7d8(elem,attr).indexOf(_7da)>=0);};},"^=":function(attr,_7db){return function(elem){return (_7d8(elem,attr).indexOf(_7db)==0);};},"$=":function(attr,_7dc){return function(elem){var ea=" "+_7d8(elem,attr);var _7dd=ea.lastIndexOf(_7dc);return _7dd>-1&&(_7dd==(ea.length-_7dc.length));};},"~=":function(attr,_7de){var tval=" "+_7de+" ";return function(elem){var ea=" "+_7d8(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_7df){var _7e0=_7df+"-";return function(elem){var ea=_7d8(elem,attr);return ((ea==_7df)||(ea.indexOf(_7e0)==0));};},"=":function(attr,_7e1){return function(elem){return (_7d8(elem,attr)==_7e1);};}};var _7e2=(typeof _7ba().firstChild.nextElementSibling=="undefined");var _7e3=!_7e2?"nextElementSibling":"nextSibling";var _7e4=!_7e2?"previousElementSibling":"previousSibling";var _7e5=(_7e2?_7d6:_7be);var _7e6=function(node){while(node=node[_7e4]){if(_7e5(node)){return false;}}return true;};var _7e7=function(node){while(node=node[_7e3]){if(_7e5(node)){return false;}}return true;};var _7e8=function(node){var root=node.parentNode;root=root.nodeType!=7?root:root.nextSibling;var i=0,tret=root.children||root.childNodes,ci=(node["_i"]||node.getAttribute("_i")||-1),cl=(root["_l"]||(typeof root.getAttribute!=="undefined"?root.getAttribute("_l"):-1));if(!tret){return -1;}var l=tret.length;if(cl==l&&ci>=0&&cl>=0){return ci;}if(has("ie")&&typeof root.setAttribute!=="undefined"){root.setAttribute("_l",l);}else{root["_l"]=l;}ci=-1;for(var te=root["firstElementChild"]||root["firstChild"];te;te=te[_7e3]){if(_7e5(te)){if(has("ie")){te.setAttribute("_i",++i);}else{te["_i"]=++i;}if(node===te){ci=i;}}}return ci;};var _7e9=function(elem){return !((_7e8(elem))%2);};var _7ea=function(elem){return ((_7e8(elem))%2);};var _7eb={"checked":function(name,_7ec){return function(elem){return !!("checked" in elem?elem.checked:elem.selected);};},"disabled":function(name,_7ed){return function(elem){return elem.disabled;};},"enabled":function(name,_7ee){return function(elem){return !elem.disabled;};},"first-child":function(){return _7e6;},"last-child":function(){return _7e7;},"only-child":function(name,_7ef){return function(node){return _7e6(node)&&_7e7(node);};},"empty":function(name,_7f0){return function(elem){var cn=elem.childNodes;var cnl=elem.childNodes.length;for(var x=cnl-1;x>=0;x--){var nt=cn[x].nodeType;if((nt===1)||(nt==3)){return false;}}return true;};},"contains":function(name,_7f1){var cz=_7f1.charAt(0);if(cz=="\""||cz=="'"){_7f1=_7f1.slice(1,-1);}return function(elem){return (elem.innerHTML.indexOf(_7f1)>=0);};},"not":function(name,_7f2){var p=_7bf(_7f2)[0];var _7f3={el:1};if(p.tag!="*"){_7f3.tag=1;}if(!p.classes.length){_7f3.classes=1;}var ntf=_7f4(p,_7f3);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_7f5){var pi=parseInt;if(_7f5=="odd"){return _7ea;}else{if(_7f5=="even"){return _7e9;}}if(_7f5.indexOf("n")!=-1){var _7f6=_7f5.split("n",2);var pred=_7f6[0]?((_7f6[0]=="-")?-1:pi(_7f6[0])):1;var idx=_7f6[1]?pi(_7f6[1]):0;var lb=0,ub=-1;if(pred>0){if(idx<0){idx=(idx%pred)&&(pred+(idx%pred));}else{if(idx>0){if(idx>=pred){lb=idx-idx%pred;}idx=idx%pred;}}}else{if(pred<0){pred*=-1;if(idx>0){ub=idx;idx=idx%pred;}}}if(pred>0){return function(elem){var i=_7e8(elem);return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);};}else{_7f5=idx;}}var _7f7=pi(_7f5);return function(elem){return (_7e8(elem)==_7f7);};}};var _7f8=(has("ie")&&(has("ie")<9||has("quirks")))?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className";}return function(elem){return (_7bd?elem.getAttribute(cond):elem[cond]||elem[clc]);};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _7f4=function(_7f9,_7fa){if(!_7f9){return _7be;}_7fa=_7fa||{};var ff=null;if(!("el" in _7fa)){ff=_7d2(ff,_7d6);}if(!("tag" in _7fa)){if(_7f9.tag!="*"){ff=_7d2(ff,function(elem){return (elem&&((_7bd?elem.tagName:elem.tagName.toUpperCase())==_7f9.getTag()));});}}if(!("classes" in _7fa)){each(_7f9.classes,function(_7fb,idx,arr){var re=new RegExp("(?:^|\\s)"+_7fb+"(?:\\s|$)");ff=_7d2(ff,function(elem){return re.test(elem.className);});ff.count=idx;});}if(!("pseudos" in _7fa)){each(_7f9.pseudos,function(_7fc){var pn=_7fc.name;if(_7eb[pn]){ff=_7d2(ff,_7eb[pn](pn,_7fc.value));}});}if(!("attrs" in _7fa)){each(_7f9.attrs,function(attr){var _7fd;var a=attr.attr;if(attr.type&&_7d9[attr.type]){_7fd=_7d9[attr.type](a,attr.matchFor);}else{if(a.length){_7fd=_7f8(a);}}if(_7fd){ff=_7d2(ff,_7fd);}});}if(!("id" in _7fa)){if(_7f9.id){ff=_7d2(ff,function(elem){return (!!elem&&(elem.id==_7f9.id));});}}if(!ff){if(!("default" in _7fa)){ff=_7be;}}return ff;};var _7fe=function(_7ff){return function(node,ret,bag){while(node=node[_7e3]){if(_7e2&&(!_7d6(node))){continue;}if((!bag||_800(node,bag))&&_7ff(node)){ret.push(node);}break;}return ret;};};var _801=function(_802){return function(root,ret,bag){var te=root[_7e3];while(te){if(_7e5(te)){if(bag&&!_800(te,bag)){break;}if(_802(te)){ret.push(te);}}te=te[_7e3];}return ret;};};var _803=function(_804){_804=_804||_7be;return function(root,ret,bag){var te,x=0,tret=root.children||root.childNodes;while(te=tret[x++]){if(_7e5(te)&&(!bag||_800(te,bag))&&(_804(te,x))){ret.push(te);}}return ret;};};var _805=function(node,root){var pn=node.parentNode;while(pn){if(pn==root){break;}pn=pn.parentNode;}return !!pn;};var _806={};var _807=function(_808){var _809=_806[_808.query];if(_809){return _809;}var io=_808.infixOper;var oper=(io?io.oper:"");var _80a=_7f4(_808,{el:1});var qt=_808.tag;var _80b=("*"==qt);var ecs=_7ba()["getElementsByClassName"];if(!oper){if(_808.id){_80a=(!_808.loops&&_80b)?_7be:_7f4(_808,{el:1,id:1});_809=function(root,arr){var te=dom.byId(_808.id,(root.ownerDocument||root));if(!te||!_80a(te)){return;}if(9==root.nodeType){return _7d5(te,arr);}else{if(_805(te,root)){return _7d5(te,arr);}}};}else{if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_808.classes.length&&!_7bb){_80a=_7f4(_808,{el:1,classes:1,id:1});var _80c=_808.classes.join(" ");_809=function(root,arr,bag){var ret=_7d5(0,arr),te,x=0;var tret=root.getElementsByClassName(_80c);while((te=tret[x++])){if(_80a(te,root)&&_800(te,bag)){ret.push(te);}}return ret;};}else{if(!_80b&&!_808.loops){_809=function(root,arr,bag){var ret=_7d5(0,arr),te,x=0;var tag=_808.getTag(),tret=tag?root.getElementsByTagName(tag):[];while((te=tret[x++])){if(_800(te,bag)){ret.push(te);}}return ret;};}else{_80a=_7f4(_808,{el:1,tag:1,id:1});_809=function(root,arr,bag){var ret=_7d5(0,arr),te,x=0;var tag=_808.getTag(),tret=tag?root.getElementsByTagName(tag):[];while((te=tret[x++])){if(_80a(te,root)&&_800(te,bag)){ret.push(te);}}return ret;};}}}}else{var _80d={el:1};if(_80b){_80d.tag=1;}_80a=_7f4(_808,_80d);if("+"==oper){_809=_7fe(_80a);}else{if("~"==oper){_809=_801(_80a);}else{if(">"==oper){_809=_803(_80a);}}}}return _806[_808.query]=_809;};var _80e=function(root,_80f){var _810=_7d5(root),qp,x,te,qpl=_80f.length,bag,ret;for(var i=0;i<qpl;i++){ret=[];qp=_80f[i];x=_810.length-1;if(x>0){bag={};ret.nozip=true;}var gef=_807(qp);for(var j=0;(te=_810[j]);j++){gef(te,ret,bag);}if(!ret.length){break;}_810=ret;}return ret;};var _811={},_812={};var _813=function(_814){var _815=_7bf(trim(_814));if(_815.length==1){var tef=_807(_815[0]);return function(root){var r=tef(root,[]);if(r){r.nozip=true;}return r;};}return function(root){return _80e(root,_815);};};var _816=has("ie")?"commentStrip":"nozip";var qsa="querySelectorAll";var _817=!!_7ba()[qsa];var _818=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g;var _819=function(_81a,pre,ch,post){return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_81a;};var _81b=/([^[]*)([^\]]*])?/g;var _81c=function(_81d,_81e,att){return _81e.replace(_818,_819)+(att||"");};var _81f=function(_820,_821){_820=_820.replace(_81b,_81c);if(_817){var _822=_812[_820];if(_822&&!_821){return _822;}}var _823=_811[_820];if(_823){return _823;}var qcz=_820.charAt(0);var _824=(-1==_820.indexOf(" "));if((_820.indexOf("#")>=0)&&(_824)){_821=true;}var _825=(_817&&(!_821)&&(_7bc.indexOf(qcz)==-1)&&(!has("ie")||(_820.indexOf(":")==-1))&&(!(_7bb&&(_820.indexOf(".")>=0)))&&(_820.indexOf(":contains")==-1)&&(_820.indexOf(":checked")==-1)&&(_820.indexOf("|=")==-1));if(_825){var tq=(_7bc.indexOf(_820.charAt(_820.length-1))>=0)?(_820+" *"):_820;return _812[_820]=function(root){try{if(!((9==root.nodeType)||_824)){throw "";}var r=root[qsa](tq);r[_816]=true;return r;}catch(e){return _81f(_820,true)(root);}};}else{var _826=_820.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return _811[_820]=((_826.length<2)?_813(_820):function(root){var _827=0,ret=[],tp;while((tp=_826[_827++])){ret=ret.concat(_813(tp)(root));}return ret;});}};var _828=0;var _829=has("ie")?function(node){if(_7bd){return (node.getAttribute("_uid")||node.setAttribute("_uid",++_828)||_828);}else{return node.uniqueID;}}:function(node){return (node._uid||(node._uid=++_828));};var _800=function(node,bag){if(!bag){return 1;}var id=_829(node);if(!bag[id]){return bag[id]=1;}return 0;};var _82a="_zipIdx";var _82b=function(arr){if(arr&&arr.nozip){return arr;}var ret=[];if(!arr||!arr.length){return ret;}if(arr[0]){ret.push(arr[0]);}if(arr.length<2){return ret;}_828++;var x,te;if(has("ie")&&_7bd){var _82c=_828+"";arr[0].setAttribute(_82a,_82c);for(x=1;te=arr[x];x++){if(arr[x].getAttribute(_82a)!=_82c){ret.push(te);}te.setAttribute(_82a,_82c);}}else{if(has("ie")&&arr.commentStrip){try{for(x=1;te=arr[x];x++){if(_7d6(te)){ret.push(te);}}}catch(e){}}else{if(arr[0]){arr[0][_82a]=_828;}for(x=1;te=arr[x];x++){if(arr[x][_82a]!=_828){ret.push(te);}te[_82a]=_828;}}}return ret;};var _82d=function(_82e,root){root=root||_7ba();var od=root.ownerDocument||root;_7bd=(od.createElement("div").tagName==="div");var r=_81f(_82e)(root);if(r&&r.nozip){return r;}return _82b(r);};_82d.filter=function(_82f,_830,root){var _831=[],_832=_7bf(_830),_833=(_832.length==1&&!/[^\w#\.]/.test(_830))?_7f4(_832[0]):function(node){return _7b9.indexOf(_82d(_830,dom.byId(root)),node)!=-1;};for(var x=0,te;te=_82f[x];x++){if(_833(te)){_831.push(te);}}return _831;};return _82d;});},"todo/TodoList":function(){define(["dojo/_base/declare","dijit/_TemplatedMixin","dijit/_WidgetsInTemplateMixin","dojox/mvc/WidgetList","dojox/mvc/_InlineTemplateMixin","todo/CssToggleWidget","todo/ctrl/_HashCompletedMixin"],function(_834,_835,_836,_837,_838,_839,_83a){return _834([_837,_838],{childClz:_834([_839,_835,_836,_83a],{_setCompletedAttr:{type:"classExists",className:"completed"},_setHiddenAttr:{type:"classExists",className:"hidden"},onRemoveClick:function(){this.parent.listCtrl.removeItem(this.uniqueId);},onEditBoxChange:function(){if(!this.editBox.value){this.parent.listCtrl.removeItem(this.uniqueId);}}})});});},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(lang,_83b,_83c){"use strict";var _83d=new _83c;var emit=_83d.emit;_83d.emit=null;function _83e(args){setTimeout(function(){emit.apply(_83d,args);},0);};_83b.prototype.trace=function(){var args=lang._toArray(arguments);this.then(function(_83f){_83e(["resolved",_83f].concat(args));},function(_840){_83e(["rejected",_840].concat(args));},function(_841){_83e(["progress",_841].concat(args));});return this;};_83b.prototype.traceRejected=function(){var args=lang._toArray(arguments);this.otherwise(function(_842){_83e(["rejected",_842].concat(args));});return this;};return _83d;});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dojo/date/stamp":function(){define("dojo/date/stamp",["../_base/lang","../_base/array"],function(lang,_843){var _844={};lang.setObject("dojo.date.stamp",_844);_844.fromISOString=function(_845,_846){if(!_844._isoRegExp){_844._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _847=_844._isoRegExp.exec(_845),_848=null;if(_847){_847.shift();if(_847[1]){_847[1]--;}if(_847[6]){_847[6]*=1000;}if(_846){_846=new Date(_846);_843.forEach(_843.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _846["get"+prop]();}),function(_849,_84a){_847[_84a]=_847[_84a]||_849;});}_848=new Date(_847[0]||1970,_847[1]||0,_847[2]||1,_847[3]||0,_847[4]||0,_847[5]||0,_847[6]||0);if(_847[0]<100){_848.setFullYear(_847[0]||1970);}var _84b=0,_84c=_847[7]&&_847[7].charAt(0);if(_84c!="Z"){_84b=((_847[8]||0)*60)+(Number(_847[9])||0);if(_84c!="-"){_84b*=-1;}}if(_84c){_84b-=_848.getTimezoneOffset();}if(_84b){_848.setTime(_848.getTime()+_84b*60000);}}return _848;};_844.toISOString=function(_84d,_84e){var _84f=function(n){return (n<10)?"0"+n:n;};_84e=_84e||{};var _850=[],_851=_84e.zulu?"getUTC":"get",date="";if(_84e.selector!="time"){var year=_84d[_851+"FullYear"]();date=["0000".substr((year+"").length)+year,_84f(_84d[_851+"Month"]()+1),_84f(_84d[_851+"Date"]())].join("-");}_850.push(date);if(_84e.selector!="date"){var time=[_84f(_84d[_851+"Hours"]()),_84f(_84d[_851+"Minutes"]()),_84f(_84d[_851+"Seconds"]())].join(":");var _852=_84d[_851+"Milliseconds"]();if(_84e.milliseconds){time+="."+(_852<100?"0":"")+_84f(_852);}if(_84e.zulu){time+="Z";}else{if(_84e.selector!="time"){var _853=_84d.getTimezoneOffset();var _854=Math.abs(_853);time+=(_853>0?"-":"+")+_84f(Math.floor(_854/60))+":"+_84f(_854%60);}}_850.push(time);}return _850.join("T");};return _844;});},"dijit/InlineEditBox":function(){require({cache:{"url:dijit/templates/InlineEditBox.html":"<span data-dojo-attach-point=\"editNode\" role=\"presentation\" class=\"dijitReset dijitInline dijitOffScreen\"\n\tdata-dojo-attach-event=\"onkeypress: _onKeyPress\"\n\t><span data-dojo-attach-point=\"editorPlaceholder\"></span\n\t><span data-dojo-attach-point=\"buttonContainer\"\n\t\t><button data-dojo-type=\"dijit/form/Button\" data-dojo-props=\"label: '${buttonSave}', 'class': 'saveButton'\"\n\t\t\tdata-dojo-attach-point=\"saveButton\" data-dojo-attach-event=\"onClick:save\"></button\n\t\t><button data-dojo-type=\"dijit/form/Button\"  data-dojo-props=\"label: '${buttonCancel}', 'class': 'cancelButton'\"\n\t\t\tdata-dojo-attach-point=\"cancelButton\" data-dojo-attach-event=\"onClick:cancel\"></button\n\t></span\n></span>\n"}});define("dijit/InlineEditBox",["dojo/_base/array","dojo/_base/declare","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/_base/event","dojo/i18n","dojo/_base/kernel","dojo/keys","dojo/_base/lang","dojo/sniff","dojo/when","./focus","./_Widget","./_TemplatedMixin","./_WidgetsInTemplateMixin","./_Container","./form/Button","./form/_TextBoxMixin","./form/TextBox","dojo/text!./templates/InlineEditBox.html","dojo/i18n!./nls/common"],function(_855,_856,_857,_858,_859,_85a,_85b,i18n,_85c,keys,lang,has,when,fm,_85d,_85e,_85f,_860,_861,_862,_863,_864){var _865=_856("dijit._InlineEditor",[_85d,_85e,_85f],{templateString:_864,postMixInProperties:function(){this.inherited(arguments);this.messages=i18n.getLocalization("dijit","common",this.lang);_855.forEach(["buttonSave","buttonCancel"],function(prop){if(!this[prop]){this[prop]=this.messages[prop];}},this);},buildRendering:function(){this.inherited(arguments);var Cls=typeof this.editor=="string"?(lang.getObject(this.editor)||require(this.editor)):this.editor;var _866=this.sourceStyle,_867="line-height:"+_866.lineHeight+";",_868=_85a.getComputedStyle(this.domNode);_855.forEach(["Weight","Family","Size","Style"],function(prop){var _869=_866["font"+prop],_86a=_868["font"+prop];if(_86a!=_869){_867+="font-"+prop+":"+_866["font"+prop]+";";}},this);_855.forEach(["marginTop","marginBottom","marginLeft","marginRight","position","left","top","right","bottom","float","clear","display"],function(prop){this.domNode.style[prop]=_866[prop];},this);var _86b=this.inlineEditBox.width;if(_86b=="100%"){_867+="width:100%;";this.domNode.style.display="block";}else{_867+="width:"+(_86b+(Number(_86b)==_86b?"px":""))+";";}var _86c=lang.delegate(this.inlineEditBox.editorParams,{style:_867,dir:this.dir,lang:this.lang,textDir:this.textDir});_86c["displayedValue" in Cls.prototype?"displayedValue":"value"]=this.value;this.editWidget=new Cls(_86c,this.editorPlaceholder);if(this.inlineEditBox.autoSave){_859.destroy(this.buttonContainer);}},postCreate:function(){this.inherited(arguments);var ew=this.editWidget;if(this.inlineEditBox.autoSave){this.connect(ew,"onChange","_onChange");this.connect(ew,"onKeyPress","_onKeyPress");}else{if("intermediateChanges" in ew){ew.set("intermediateChanges",true);this.connect(ew,"onChange","_onIntermediateChange");this.saveButton.set("disabled",true);}}},startup:function(){this.editWidget.startup();this.inherited(arguments);},_onIntermediateChange:function(){this.saveButton.set("disabled",(this.getValue()==this._resetValue)||!this.enableSave());},destroy:function(){this.editWidget.destroy(true);this.inherited(arguments);},getValue:function(){var ew=this.editWidget;return String(ew.get("displayedValue" in ew?"displayedValue":"value"));},_onKeyPress:function(e){if(this.inlineEditBox.autoSave&&this.inlineEditBox.editing){if(e.altKey||e.ctrlKey){return;}if(e.charOrCode==keys.ESCAPE){_85b.stop(e);this.cancel(true);}else{if(e.charOrCode==keys.ENTER&&e.target.tagName=="INPUT"){_85b.stop(e);this._onChange();}}}},_onBlur:function(){this.inherited(arguments);if(this.inlineEditBox.autoSave&&this.inlineEditBox.editing){if(this.getValue()==this._resetValue){this.cancel(false);}else{if(this.enableSave()){this.save(false);}}}},_onChange:function(){if(this.inlineEditBox.autoSave&&this.inlineEditBox.editing&&this.enableSave()){fm.focus(this.inlineEditBox.displayNode);}},enableSave:function(){return this.editWidget.isValid?this.editWidget.isValid():true;},focus:function(){this.editWidget.focus();if(this.editWidget.focusNode){fm._onFocusNode(this.editWidget.focusNode);if(this.editWidget.focusNode.tagName=="INPUT"){this.defer(function(){_862.selectInputText(this.editWidget.focusNode);});}}}});var _86d=_856("dijit.InlineEditBox",_85d,{editing:false,autoSave:true,buttonSave:"",buttonCancel:"",renderAsHtml:false,editor:_863,editorWrapper:_865,editorParams:{},disabled:false,onChange:function(){},onCancel:function(){},width:"100%",value:"",noValueIndicator:has("ie")<=6?"<span style='font-family: wingdings; text-decoration: underline;'>&#160;&#160;&#160;&#160;&#x270d;&#160;&#160;&#160;&#160;</span>":"<span style='text-decoration: underline;'>&#160;&#160;&#160;&#160;&#x270d;&#160;&#160;&#160;&#160;</span>",constructor:function(){this.editorParams={};},postMixInProperties:function(){this.inherited(arguments);this.displayNode=this.srcNodeRef;var _86e={ondijitclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};for(var name in _86e){this.connect(this.displayNode,name,_86e[name]);}this.displayNode.setAttribute("role","button");if(!this.displayNode.getAttribute("tabIndex")){this.displayNode.setAttribute("tabIndex",0);}if(!this.value&&!("value" in this.params)){this.value=lang.trim(this.renderAsHtml?this.displayNode.innerHTML:(this.displayNode.innerText||this.displayNode.textContent||""));}if(!this.value){this.displayNode.innerHTML=this.noValueIndicator;}_858.add(this.displayNode,"dijitInlineEditBoxDisplayMode");},setDisabled:function(_86f){_85c.deprecated("dijit.InlineEditBox.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_86f);},_setDisabledAttr:function(_870){this.domNode.setAttribute("aria-disabled",_870?"true":"false");if(_870){this.displayNode.removeAttribute("tabIndex");}else{this.displayNode.setAttribute("tabIndex",0);}_858.toggle(this.displayNode,"dijitInlineEditBoxDisplayModeDisabled",_870);this._set("disabled",_870);},_onMouseOver:function(){if(!this.disabled){_858.add(this.displayNode,"dijitInlineEditBoxDisplayModeHover");}},_onMouseOut:function(){_858.remove(this.displayNode,"dijitInlineEditBoxDisplayModeHover");},_onClick:function(e){if(this.disabled){return;}if(e){_85b.stop(e);}this._onMouseOut();this.defer("edit");},edit:function(){if(this.disabled||this.editing){return;}this._set("editing",true);this._savedTabIndex=_857.get(this.displayNode,"tabIndex")||"0";if(this.wrapperWidget){var ew=this.wrapperWidget.editWidget;ew.set("displayedValue" in ew?"displayedValue":"value",this.value);}else{var _871=_859.create("span",null,this.domNode,"before");var Ewc=typeof this.editorWrapper=="string"?lang.getObject(this.editorWrapper):this.editorWrapper;this.wrapperWidget=new Ewc({value:this.value,buttonSave:this.buttonSave,buttonCancel:this.buttonCancel,dir:this.dir,lang:this.lang,tabIndex:this._savedTabIndex,editor:this.editor,inlineEditBox:this,sourceStyle:_85a.getComputedStyle(this.displayNode),save:lang.hitch(this,"save"),cancel:lang.hitch(this,"cancel"),textDir:this.textDir},_871);if(!this.wrapperWidget._started){this.wrapperWidget.startup();}if(!this._started){this.startup();}}var ww=this.wrapperWidget;_858.add(this.displayNode,"dijitOffScreen");_858.remove(ww.domNode,"dijitOffScreen");_85a.set(ww.domNode,{visibility:"visible"});_857.set(this.displayNode,"tabIndex","-1");when(ww.editWidget.onLoadDeferred,lang.hitch(ww,function(){this.defer(function(){this.focus();this._resetValue=this.getValue();});}));},_onBlur:function(){this.inherited(arguments);if(!this.editing){}},destroy:function(){if(this.wrapperWidget&&!this.wrapperWidget._destroyed){this.wrapperWidget.destroy();delete this.wrapperWidget;}this.inherited(arguments);},_showText:function(_872){var ww=this.wrapperWidget;_85a.set(ww.domNode,{visibility:"hidden"});_858.add(ww.domNode,"dijitOffScreen");_858.remove(this.displayNode,"dijitOffScreen");_857.set(this.displayNode,"tabIndex",this._savedTabIndex);if(_872){fm.focus(this.displayNode);}},save:function(_873){if(this.disabled||!this.editing){return;}this._set("editing",false);var ww=this.wrapperWidget;var _874=ww.getValue();this.set("value",_874);this._showText(_873);},setValue:function(val){_85c.deprecated("dijit.InlineEditBox.setValue() is deprecated.  Use set('value', ...) instead.","","2.0");return this.set("value",val);},_setValueAttr:function(val){val=lang.trim(val);var _875=this.renderAsHtml?val:val.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/\n/g,"<br>");this.displayNode.innerHTML=_875||this.noValueIndicator;this._set("value",val);if(this._started){this.defer(function(){this.onChange(val);});}if(this.textDir=="auto"){this.applyTextDir(this.displayNode,this.displayNode.innerText);}},getValue:function(){_85c.deprecated("dijit.InlineEditBox.getValue() is deprecated.  Use get('value') instead.","","2.0");return this.get("value");},cancel:function(_876){if(this.disabled||!this.editing){return;}this._set("editing",false);this.defer("onCancel");this._showText(_876);},_setTextDirAttr:function(_877){if(!this._created||this.textDir!=_877){this._set("textDir",_877);this.applyTextDir(this.displayNode,this.displayNode.innerText);this.displayNode.align=this.dir=="rtl"?"right":"left";}}});_86d._InlineEditor=_865;return _86d;});},"dojox/mvc/_InlineTemplateMixin":function(){define("dojox/mvc/_InlineTemplateMixin",["dojo/_base/declare","dojo/_base/lang","dojo/has"],function(_878,lang,has){has.add("dom-qsa",!!document.createElement("div").querySelectorAll);return _878("dojox.mvc._InlineTemplateMixin",null,{buildRendering:function(){var root=this.srcNodeRef;if(root){var _879=has("dom-qsa")?root.querySelectorAll("script[type='dojox/mvc/InlineTemplate']"):root.getElementsByTagName("script"),_87a=[];for(var i=0,l=_879.length;i<l;++i){if(!has("dom-qsa")&&_879[i].getAttribute("type")!="dojox/mvc/InlineTemplate"){continue;}_87a.push(_879[i].innerHTML);}var _87b=lang.trim(_87a.join(""));if(_87b){this.templateString=_87b;}}this.inherited(arguments);}});});},"dojox/mvc/getPlainValue":function(){define("dojox/mvc/getPlainValue",["dojo/_base/array","dojo/_base/lang","dojo/Stateful"],function(_87c,lang,_87d){var _87e={getType:function(v){return lang.isArray(v)?"array":v!=null&&{}.toString.call(v)=="[object Object]"?"object":"value";},getPlainArray:function(a){return _87c.map(a,function(item){return _87f(item,this);},this);},getPlainObject:function(o){var _880={};for(var s in o){if(!(s in _87d.prototype)&&s!="_watchCallbacks"){_880[s]=_87f(o[s],this);}}return _880;},getPlainValue:function(v){return v;}};var _87f=function(_881,_882){return (_882||_87f)["getPlain"+(_882||_87f).getType(_881).replace(/^[a-z]/,function(c){return c.toUpperCase();})](_881);};return lang.setObject("dojox.mvc.getPlainValue",lang.mixin(_87f,_87e));});},"dijit/form/_ButtonMixin":function(){define("dijit/form/_ButtonMixin",["dojo/_base/declare","dojo/dom","dojo/_base/event","../registry"],function(_883,dom,_884,_885){return _883("dijit.form._ButtonMixin",null,{label:"",type:"button",_onClick:function(e){if(this.disabled){_884.stop(e);return false;}var _886=this.onClick(e)===false;if(!_886&&this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _887=_885.byNode(node);if(_887&&typeof _887._onSubmit=="function"){_887._onSubmit(e);_886=true;break;}}}if(_886){e.preventDefault();}return !_886;},postCreate:function(){this.inherited(arguments);dom.setSelectable(this.focusNode,false);},onClick:function(){return true;},_setLabelAttr:function(_888){this._set("label",_888);(this.containerNode||this.focusNode).innerHTML=_888;}});});},"todo/model/SimpleTodoModel":function(){define(["dojo/_base/array","dojo/_base/lang","dojox/mvc/getStateful"],function(_889,lang,_88a){var _88b={id:"todos-dojo",todos:[],incomplete:0,complete:0};var seq=0;return function(data){function _88c(item){lang.mixin(item,{_completedSetter:function(_88d){if(this.completed^_88d){_88e.set("complete",_88e.get("complete")+(_88d?1:-1));}this.completed=_88d;},uniqueId:"TODO-"+seq++});};var _88e=_88a(data||_88b);_889.forEach(_88e.todos,_88c);return lang.mixin(_88e,{_elementWatchHandle:_88e.todos.watchElements(function(idx,_88f,adds){var _890=_88e.get("complete");_889.forEach(_88f,function(item){_890-=!!item.completed;});_889.forEach(adds,function(item){_890+=!!item.completed;});_88e.set("complete",_890);_88e.set("incomplete",_88e.todos.get("length")-_890);_889.forEach(adds,_88c);}),_incompleteSetter:function(_891){var _892=this.incomplete!=_891;this.incomplete=_891;if(_892){this.set("complete",this.todos.get("length")-_891);}},_completeSetter:function(_893){var _894=this.complete!=_893;this.complete=_893;if(_894){this.set("incomplete",this.todos.get("length")-_893);}},destroy:function(){this._elementWatchHandle.remove();}});};});},"dijit/form/_FormWidget":function(){define("dijit/form/_FormWidget",["dojo/_base/declare","dojo/has","dojo/_base/kernel","dojo/ready","../_Widget","../_CssStateMixin","../_TemplatedMixin","./_FormWidgetMixin"],function(_895,has,_896,_897,_898,_899,_89a,_89b){if(has("dijit-legacy-requires")){_897(0,function(){var _89c=["dijit/form/_FormValueWidget"];require(_89c);});}return _895("dijit.form._FormWidget",[_898,_89a,_899,_89b],{setDisabled:function(_89d){_896.deprecated("setDisabled("+_89d+") is deprecated. Use set('disabled',"+_89d+") instead.","","2.0");this.set("disabled",_89d);},setValue:function(_89e){_896.deprecated("dijit.form._FormWidget:setValue("+_89e+") is deprecated.  Use set('value',"+_89e+") instead.","","2.0");this.set("value",_89e);},getValue:function(){_896.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},postMixInProperties:function(){this.nameAttrSetting=this.name?("name=\""+this.name.replace(/"/g,"&quot;")+"\""):"";this.inherited(arguments);},_setTypeAttr:null});});},"todo/misc/LessThanOrEqualToConverter":function(){define({format:function(_89f,_8a0){return _89f<=(_8a0.lessThanOrEqualTo||0);},parse:function(_8a1){throw new Error();}});},"dojo/request/util":function(){define("dojo/request/util",["exports","../errors/RequestError","../errors/CancelError","../Deferred","../io-query","../_base/array","../_base/lang"],function(_8a2,_8a3,_8a4,_8a5,_8a6,_8a7,lang){_8a2.deepCopy=function deepCopy(_8a8,_8a9){for(var name in _8a9){var tval=_8a8[name],sval=_8a9[name];if(tval!==sval){if(tval&&typeof tval==="object"&&sval&&typeof sval==="object"){_8a2.deepCopy(tval,sval);}else{_8a8[name]=sval;}}}return _8a8;};_8a2.deepCreate=function deepCreate(_8aa,_8ab){_8ab=_8ab||{};var _8ac=lang.delegate(_8aa),name,_8ad;for(name in _8aa){_8ad=_8aa[name];if(_8ad&&typeof _8ad==="object"){_8ac[name]=_8a2.deepCreate(_8ad,_8ab[name]);}}return _8a2.deepCopy(_8ac,_8ab);};var _8ae=Object.freeze||function(obj){return obj;};function _8af(_8b0){return _8ae(_8b0);};_8a2.deferred=function deferred(_8b1,_8b2,_8b3,_8b4,_8b5,last){var def=new _8a5(function(_8b6){_8b2&&_8b2(def,_8b1);if(!_8b6||!(_8b6 instanceof _8a3)&&!(_8b6 instanceof _8a4)){return new _8a4("Request canceled",_8b1);}return _8b6;});def.response=_8b1;def.isValid=_8b3;def.isReady=_8b4;def.handleResponse=_8b5;function _8b7(_8b8){_8b8.response=_8b1;throw _8b8;};var _8b9=def.then(_8af).otherwise(_8b7);if(_8a2.notify){_8b9.then(lang.hitch(_8a2.notify,"emit","load"),lang.hitch(_8a2.notify,"emit","error"));}var _8ba=_8b9.then(function(_8bb){return _8bb.data||_8bb.text;});var _8bc=_8ae(lang.delegate(_8ba,{response:_8b9}));if(last){def.then(function(_8bd){last.call(def,_8bd);},function(_8be){last.call(def,_8b1,_8be);});}def.promise=_8bc;def.then=_8bc.then;return def;};_8a2.addCommonMethods=function addCommonMethods(_8bf,_8c0){_8a7.forEach(_8c0||["GET","POST","PUT","DELETE"],function(_8c1){_8bf[(_8c1==="DELETE"?"DEL":_8c1).toLowerCase()]=function(url,_8c2){_8c2=lang.delegate(_8c2||{});_8c2.method=_8c1;return _8bf(url,_8c2);};});};_8a2.parseArgs=function parseArgs(url,_8c3,_8c4){var data=_8c3.data,_8c5=_8c3.query;if(data&&!_8c4){if(typeof data==="object"){_8c3.data=_8a6.objectToQuery(data);}}if(_8c5){if(typeof _8c5==="object"){_8c5=_8a6.objectToQuery(_8c5);}if(_8c3.preventCache){_8c5+=(_8c5?"&":"")+"request.preventCache="+(+(new Date));}}else{if(_8c3.preventCache){_8c5="request.preventCache="+(+(new Date));}}if(url&&_8c5){url+=(~url.indexOf("?")?"&":"?")+_8c5;}return {url:url,options:_8c3,getHeader:function(_8c6){return null;}};};_8a2.checkStatus=function(stat){stat=stat||0;return (stat>=200&&stat<300)||stat===304||stat===1223||!stat;};});},"dojo/io-query":function(){define(["./_base/lang"],function(lang){var _8c7={};return {objectToQuery:function objectToQuery(map){var enc=encodeURIComponent,_8c8=[];for(var name in map){var _8c9=map[name];if(_8c9!=_8c7[name]){var _8ca=enc(name)+"=";if(lang.isArray(_8c9)){for(var i=0,l=_8c9.length;i<l;++i){_8c8.push(_8ca+enc(_8c9[i]));}}else{_8c8.push(_8ca+enc(_8c9));}}}return _8c8.join("&");},queryToObject:function queryToObject(str){var dec=decodeURIComponent,qp=str.split("&"),ret={},name,val;for(var i=0,l=qp.length,item;i<l;++i){item=qp[i];if(item.length){var s=item.indexOf("=");if(s<0){name=dec(item);val="";}else{name=dec(item.slice(0,s));val=dec(item.slice(s+1));}if(typeof ret[name]=="string"){ret[name]=[ret[name]];}if(lang.isArray(ret[name])){ret[name].push(val);}else{ret[name]=val;}}}return ret;}};});},"dojox/mvc/getStateful":function(){define("dojox/mvc/getStateful",["dojo/_base/array","dojo/_base/lang","dojo/Stateful","./StatefulArray"],function(_8cb,lang,_8cc,_8cd){var _8ce={getType:function(v){return lang.isArray(v)?"array":v!=null&&{}.toString.call(v)=="[object Object]"?"object":"value";},getStatefulArray:function(a){return new _8cd(_8cb.map(a,function(item){return _8cf(item,this);},this));},getStatefulObject:function(o){var _8d0=new _8cc();for(var s in o){_8d0[s]=_8cf(o[s],this);}return _8d0;},getStatefulValue:function(v){return v;}};var _8cf=function(_8d1,_8d2){return (_8d2||_8cf)["getStateful"+(_8d2||_8cf).getType(_8d1).replace(/^[a-z]/,function(c){return c.toUpperCase();})](_8d1);};return lang.setObject("dojox.mvc.getStateful",lang.mixin(_8cf,_8ce));});},"todo/ctrl/TodoRefController":function(){define(["dojo/_base/array","dojo/_base/declare","dojox/mvc/EditStoreRefController"],function(_8d3,_8d4,_8d5){return _8d4(_8d5,{defaultId:"",store:null,modelClass:null,getStatefulOptions:{getType:function(v){return "specifiedModel";},getStatefulSpecifiedModel:function(o){return new (this.parent.modelClass)(o);}},getPlainValueOptions:{getType:function(o){return "specifiedModel";},getPlainSpecifiedModel:function(o){return {id:o.id,todos:_8d3.map(o.todos,function(item){return {title:item.title,completed:item.completed};}),incomplete:o.incomplete,complete:o.complete};}},postscript:function(_8d6,_8d7){this.getStatefulOptions.parent=this;this.inherited(arguments);_8d7&&_8d7.setAttribute("widgetId",this.id);},startup:function(){this.inherited(arguments);this.getStore(this.defaultId);},set:function(name,_8d8){if(name==this._refSourceModelProp&&this[this._refSourceModelProp]!=_8d8&&(this[this._refSourceModelProp]||{}).destroy){this[this._refSourceModelProp].destroy();}this.inherited(arguments);},destroy:function(){this.commit();if((this[this._refSourceModelProp]||{}).destroy){this[this._refSourceModelProp].destroy();}this.inherited(arguments);}});});},"dojox/mvc/sync":function(){define("dojox/mvc/sync",["dojo/_base/lang","dojo/_base/config","dojo/_base/array","dojo/has"],function(lang,_8d9,_8da,has){var mvc=lang.getObject("dojox.mvc",true);has.add("mvc-bindings-log-api",(_8d9["mvc"]||{}).debugBindings);var sync;if(has("mvc-bindings-log-api")){function _8db(_8dc,_8dd,_8de,_8df){return [[_8de._setIdAttr||!_8de.declaredClass?_8de:_8de.declaredClass,_8df].join(":"),[_8dc._setIdAttr||!_8dc.declaredClass?_8dc:_8dc.declaredClass,_8dd].join(":")];};}function _8e0(dst,src){return dst===src||typeof dst=="number"&&isNaN(dst)&&typeof src=="number"&&isNaN(src)||lang.isFunction((dst||{}).getTime)&&lang.isFunction((src||{}).getTime)&&dst.getTime()==src.getTime()||(lang.isFunction((dst||{}).equals)?dst.equals(src):lang.isFunction((src||{}).equals)?src.equals(dst):false);};function copy(_8e1,_8e2,_8e3,_8e4,_8e5,_8e6,old,_8e7,_8e8){if(sync.equals(_8e7,old)||_8e4=="*"&&_8da.indexOf(_8e3.get("properties")||[_8e6],_8e6)<0||_8e4=="*"&&_8e6 in (_8e8||{})){return;}var prop=_8e4=="*"?_8e6:_8e4;if(has("mvc-bindings-log-api")){var _8e9=_8db(_8e3,prop,_8e5,_8e6);}try{_8e7=_8e1?_8e1(_8e7,_8e2):_8e7;}catch(e){if(has("mvc-bindings-log-api")){}return;}if(has("mvc-bindings-log-api")){}lang.isFunction(_8e3.set)?_8e3.set(prop,_8e7):(_8e3[prop]=_8e7);};var _8ea={from:1,to:2,both:3},_8eb;sync=function(_8ec,_8ed,_8ee,_8ef,_8f0){var _8f1=(_8f0||{}).converter,_8f2,_8f3,_8f4;if(_8f1){_8f2={source:_8ec,target:_8ee};_8f3=_8f1.format&&lang.hitch(_8f2,_8f1.format);_8f4=_8f1.parse&&lang.hitch(_8f2,_8f1.parse);}var _8f5=[],_8f6=[],list,_8f7=lang.mixin({},_8ec.constraints,_8ee.constraints),_8f8=(_8f0||{}).bindDirection||mvc.both;if(has("mvc-bindings-log-api")){var _8f9=_8db(_8ec,_8ed,_8ee,_8ef);}if(_8ef=="*"){if(_8ed!="*"){throw new Error("Unmatched wildcard is specified between source and target.");}list=_8ee.get("properties");if(!list){list=[];for(var s in _8ee){if(_8ee.hasOwnProperty(s)&&s!="_watchCallbacks"){list.push(s);}}}_8f6=_8ee.get("excludes");}else{list=[_8ed];}if(_8f8&mvc.from){if(lang.isFunction(_8ec.set)&&lang.isFunction(_8ec.watch)){_8f5.push(_8ec.watch.apply(_8ec,((_8ed!="*")?[_8ed]:[]).concat([function(name,old,_8fa){copy(_8f3,_8f7,_8ee,_8ef,_8ec,name,old,_8fa,_8f6);}])));}else{if(has("mvc-bindings-log-api")){}}_8da.forEach(list,function(prop){if(_8ef!="*"||!(prop in (_8f6||{}))){var _8fb=lang.isFunction(_8ec.get)?_8ec.get(prop):_8ec[prop];copy(_8f3,_8f7,_8ee,_8ef=="*"?prop:_8ef,_8ec,prop,_8eb,_8fb);}});}if(_8f8&mvc.to){if(!(_8f8&mvc.from)){_8da.forEach(list,function(prop){if(_8ef!="*"||!(prop in (_8f6||{}))){var _8fc=lang.isFunction(_8ee.get)?_8ee.get(_8ef):_8ee[_8ef];copy(_8f4,_8f7,_8ec,prop,_8ee,_8ef=="*"?prop:_8ef,_8eb,_8fc);}});}if(lang.isFunction(_8ee.set)&&lang.isFunction(_8ee.watch)){_8f5.push(_8ee.watch.apply(_8ee,((_8ef!="*")?[_8ef]:[]).concat([function(name,old,_8fd){copy(_8f4,_8f7,_8ec,_8ed,_8ee,name,old,_8fd,_8f6);}])));}else{if(has("mvc-bindings-log-api")){}}}if(has("mvc-bindings-log-api")){}var _8fe={};_8fe.unwatch=_8fe.remove=function(){for(var h=null;h=_8f5.pop();){h.unwatch();if(has("mvc-bindings-log-api")){}}};return _8fe;};lang.mixin(mvc,_8ea);return lang.setObject("dojox.mvc.sync",lang.mixin(sync,{equals:_8e0},_8ea));});},"todo/store/LocalStorage":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/json","dojo/store/util/QueryResults","dojo/store/util/SimpleQueryEngine"],function(_8ff,lang,json,_900,_901){return _8ff(null,{constructor:function(_902){if(!window.localStorage){throw Error("LocalStorage not available on this device");}lang.mixin(this,_902);this.setData(this.data||[]);},idProperty:"id",queryEngine:_901,get:function(id){return json.fromJson(localStorage.getItem(id));},getIdentity:function(_903){return _903[this.idProperty];},put:function(_904,_905){var id=_905&&_905.id||_904[this.idProperty]||Math.random();localStorage.setItem(id,json.toJson(_904));return id;},add:function(_906,_907){if(this.get(_906[this.idProperty])){throw new Error("Object already exists");}return this.put(_906,_907);},remove:function(id){localStorage.removeItem(id);},query:function(_908,_909){var data=[];for(var i=0;i<localStorage.length;i++){data.push(this.get(localStorage.key(i)));}return _900(this.queryEngine(_908,_909)(data));},setData:function(data){if(data.items){this.idProperty=data.identifier;data=this.data=data.items;}for(var i=0,l=data.length;i<l;i++){var _90a=data[i];this.put(_90a);}}});});},"dojo/ready":function(){define("dojo/ready",["./_base/kernel","./has","require","./domReady","./_base/lang"],function(dojo,has,_90b,_90c,lang){var _90d=0,_90e,_90f=[],_910=0,_911=function(){_90d=1;dojo._postLoad=dojo.config.afterOnLoad=true;if(_90f.length){_90e(_912);}},_912=function(){if(_90d&&!_910&&_90f.length){_910=1;var f=_90f.shift();try{f();}finally{_910=0;}_910=0;if(_90f.length){_90e(_912);}}};_90b.on("idle",_912);_90e=function(){if(_90b.idle()){_912();}};var _913=dojo.ready=dojo.addOnLoad=function(_914,_915,_916){var _917=lang._toArray(arguments);if(typeof _914!="number"){_916=_915;_915=_914;_914=1000;}else{_917.shift();}_916=_916?lang.hitch.apply(dojo,_917):function(){_915();};_916.priority=_914;for(var i=0;i<_90f.length&&_914>=_90f[i].priority;i++){}_90f.splice(i,0,_916);_90e();};1||has.add("dojo-config-addOnLoad",1);if(1){var dca=dojo.config.addOnLoad;if(dca){_913[(lang.isArray(dca)?"apply":"call")](dojo,dca);}}if(1&&dojo.config.parseOnLoad&&!dojo.isAsync){_913(99,function(){if(!dojo.parser){dojo.deprecated("Add explicit require(['dojo/parser']);","","2.0");_90b(["dojo/parser"]);}});}if(1){_90c(_911);}else{_911();}return _913;});},"dijit/_TemplatedMixin":function(){define("dijit/_TemplatedMixin",["dojo/_base/lang","dojo/touch","./_WidgetBase","dojo/string","dojo/cache","dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/sniff","dojo/_base/unload"],function(lang,_918,_919,_91a,_91b,_91c,_91d,_91e,has,_91f){var _920=_91d("dijit._TemplatedMixin",null,{templateString:null,templatePath:null,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _921=this.declaredClass,_922=this;return _91a.substitute(tmpl,this,function(_923,key){if(key.charAt(0)=="!"){_923=lang.getObject(key.substr(1),false,_922);}if(typeof _923=="undefined"){throw new Error(_921+" template:"+key);}if(_923==null){return "";}return key.charAt(0)=="!"?_923:_923.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){if(!this.templateString){this.templateString=_91b(this.templatePath,{sanitize:true});}var _924=_920.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument);var node;if(lang.isString(_924)){node=_91e.toDom(this._stringRepl(_924),this.ownerDocument);if(node.nodeType!=1){throw new Error("Invalid template: "+_924);}}else{node=_924.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node,function(n,p){return n.getAttribute(p);});this._beforeFillContent();this._fillContent(this.srcNodeRef);},_beforeFillContent:function(){},_fillContent:function(_925){var dest=this.containerNode;if(_925&&dest){while(_925.hasChildNodes()){dest.appendChild(_925.firstChild);}}},_attachTemplateNodes:function(_926,_927){var _928=lang.isArray(_926)?_926:(_926.all||_926.getElementsByTagName("*"));var x=lang.isArray(_926)?0:-1;for(;x<0||_928[x];x++){var _929=(x==-1)?_926:_928[x];if(this.widgetsInTemplate&&(_927(_929,"dojoType")||_927(_929,"data-dojo-type"))){continue;}var _92a=_927(_929,"dojoAttachPoint")||_927(_929,"data-dojo-attach-point");if(_92a){var _92b,_92c=_92a.split(/\s*,\s*/);while((_92b=_92c.shift())){if(lang.isArray(this[_92b])){this[_92b].push(_929);}else{this[_92b]=_929;}this._attachPoints.push(_92b);}}var _92d=_927(_929,"dojoAttachEvent")||_927(_929,"data-dojo-attach-event");if(_92d){var _92e,_92f=_92d.split(/\s*,\s*/);var trim=lang.trim;while((_92e=_92f.shift())){if(_92e){var _930=null;if(_92e.indexOf(":")!=-1){var _931=_92e.split(":");_92e=trim(_931[0]);_930=trim(_931[1]);}else{_92e=trim(_92e);}if(!_930){_930=_92e;}this._attachEvents.push(this.connect(_929,_918[_92e]||_92e,_930));}}}}},destroyRendering:function(){_91c.forEach(this._attachPoints,function(_932){delete this[_932];},this);this._attachPoints=[];_91c.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});_920._templateCache={};_920.getCachedTemplate=function(_933,_934,doc){var _935=_920._templateCache;var key=_933;var _936=_935[key];if(_936){try{if(!_936.ownerDocument||_936.ownerDocument==(doc||document)){return _936;}}catch(e){}_91e.destroy(_936);}_933=_91a.trim(_933);if(_934||_933.match(/\$\{([^\}]+)\}/g)){return (_935[key]=_933);}else{var node=_91e.toDom(_933,doc);if(node.nodeType!=1){throw new Error("Invalid template: "+_933);}return (_935[key]=node);}};if(has("ie")){_91f.addOnWindowUnload(function(){var _937=_920._templateCache;for(var key in _937){var _938=_937[key];if(typeof _938=="object"){_91e.destroy(_938);}delete _937[key];}});}lang.extend(_919,{dojoAttachEvent:"",dojoAttachPoint:""});return _920;});},"dojo/Evented":function(){define("dojo/Evented",["./aspect","./on"],function(_939,on){"use strict";var _93a=_939.after;function _93b(){};_93b.prototype={on:function(type,_93c){return on.parse(this,type,_93c,function(_93d,type){return _93a(_93d,"on"+type,_93c,true);});},emit:function(type,_93e){var args=[this];args.push.apply(args,arguments);return on.emit.apply(on,args);}};return _93b;});},"dojo/window":function(){define(["./_base/lang","./sniff","./_base/window","./dom","./dom-geometry","./dom-style"],function(lang,has,_93f,dom,geom,_940){var _941={getBox:function(doc){doc=doc||_93f.doc;var _942=(doc.compatMode=="BackCompat")?_93f.body(doc):doc.documentElement,_943=geom.docScroll(doc),w,h;if(has("touch")){var _944=_941.get(doc);w=_944.innerWidth||_942.clientWidth;h=_944.innerHeight||_942.clientHeight;}else{w=_942.clientWidth;h=_942.clientHeight;}return {l:_943.x,t:_943.y,w:w,h:h};},get:function(doc){if(has("ie")&&_941!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;},scrollIntoView:function(node,pos){try{node=dom.byId(node);var doc=node.ownerDocument||_93f.doc,body=_93f.body(doc),html=doc.documentElement||body.parentNode,isIE=has("ie"),isWK=has("webkit");if((!(has("mozilla")||isIE||isWK||has("opera"))||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _945=doc.compatMode=="BackCompat",_946=(isIE>=9&&"frameElement" in node.ownerDocument.parentWindow)?((html.clientHeight>0&&html.clientWidth>0&&(body.clientHeight==0||body.clientWidth==0||body.clientHeight>html.clientHeight||body.clientWidth>html.clientWidth))?html:body):(_945?body:html),_947=isWK?body:_946,_948=_946.clientWidth,_949=_946.clientHeight,rtl=!geom.isBodyLtr(doc),_94a=pos||geom.position(node),el=node.parentNode,_94b=function(el){return ((isIE<=6||(isIE&&_945))?false:(_940.get(el,"position").toLowerCase()=="fixed"));};if(_94b(node)){return;}while(el){if(el==body){el=_947;}var _94c=geom.position(el),_94d=_94b(el);if(el==_947){_94c.w=_948;_94c.h=_949;if(_947==html&&isIE&&rtl){_94c.x+=_947.offsetWidth-_94c.w;}if(_94c.x<0||!isIE){_94c.x=0;}if(_94c.y<0||!isIE){_94c.y=0;}}else{var pb=geom.getPadBorderExtents(el);_94c.w-=pb.w;_94c.h-=pb.h;_94c.x+=pb.l;_94c.y+=pb.t;var _94e=el.clientWidth,_94f=_94c.w-_94e;if(_94e>0&&_94f>0){_94c.w=_94e;_94c.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_94f:0;}_94e=el.clientHeight;_94f=_94c.h-_94e;if(_94e>0&&_94f>0){_94c.h=_94e;}}if(_94d){if(_94c.y<0){_94c.h+=_94c.y;_94c.y=0;}if(_94c.x<0){_94c.w+=_94c.x;_94c.x=0;}if(_94c.y+_94c.h>_949){_94c.h=_949-_94c.y;}if(_94c.x+_94c.w>_948){_94c.w=_948-_94c.x;}}var l=_94a.x-_94c.x,t=_94a.y-Math.max(_94c.y,0),r=l+_94a.w-_94c.w,bot=t+_94a.h-_94c.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_945)||isIE>=9)){s=-s;}_94a.x+=el.scrollLeft;el.scrollLeft+=s;_94a.x-=el.scrollLeft;}if(bot*t>0){_94a.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_94a.y-=el.scrollTop;}el=(el!=_947)&&!_94d&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}}};1&&lang.setObject("dojo.window",_941);return _941;});},"dojo/_base/xhr":function(){define("dojo/_base/xhr",["./kernel","./sniff","require","../io-query","../dom","../dom-form","./Deferred","./config","./json","./lang","./array","../on","../aspect","../request/watch","../request/xhr","../request/util"],function(dojo,has,_950,ioq,dom,_951,_952,_953,json,lang,_954,on,_955,_956,_957,util){dojo._xhrObj=_957._create;var cfg=dojo.config;dojo.objectToQuery=ioq.objectToQuery;dojo.queryToObject=ioq.queryToObject;dojo.fieldToObject=_951.fieldToObject;dojo.formToObject=_951.toObject;dojo.formToQuery=_951.toQuery;dojo.formToJson=_951.toJson;dojo._blockAsync=false;var _958=dojo._contentHandlers=dojo.contentHandlers={"text":function(xhr){return xhr.responseText;},"json":function(xhr){return json.fromJson(xhr.responseText||null);},"json-comment-filtered":function(xhr){if(!_953.useCommentedJson){console.warn("Consider using the standard mimetype:application/json."+" json-commenting can introduce security issues. To"+" decrease the chances of hijacking, use the standard the 'json' handler and"+" prefix your json with: {}&&\n"+"Use djConfig.useCommentedJson=true to turn off this message.");}var _959=xhr.responseText;var _95a=_959.indexOf("/*");var _95b=_959.lastIndexOf("*/");if(_95a==-1||_95b==-1){throw new Error("JSON was not comment filtered");}return json.fromJson(_959.substring(_95a+2,_95b));},"javascript":function(xhr){return dojo.eval(xhr.responseText);},"xml":function(xhr){var _95c=xhr.responseXML;if(has("ie")){if((!_95c||!_95c.documentElement)){var ms=function(n){return "MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_954.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(xhr.responseText);_95c=dom;}catch(e){return false;}return true;});}}return _95c;},"json-comment-optional":function(xhr){if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){return _958["json-comment-filtered"](xhr);}else{return _958["json"](xhr);}}};dojo._ioSetArgs=function(args,_95d,_95e,_95f){var _960={args:args,url:args.url};var _961=null;if(args.form){var form=dom.byId(args.form);var _962=form.getAttributeNode("action");_960.url=_960.url||(_962?_962.value:null);_961=_951.toObject(form);}var _963=[{}];if(_961){_963.push(_961);}if(args.content){_963.push(args.content);}if(args.preventCache){_963.push({"dojo.preventCache":new Date().valueOf()});}_960.query=ioq.objectToQuery(lang.mixin.apply(null,_963));_960.handleAs=args.handleAs||"text";var d=new _952(function(dfd){dfd.canceled=true;_95d&&_95d(dfd);var err=dfd.ioArgs.error;if(!err){err=new Error("request cancelled");err.dojoType="cancel";dfd.ioArgs.error=err;}return err;});d.addCallback(_95e);var ld=args.load;if(ld&&lang.isFunction(ld)){d.addCallback(function(_964){return ld.call(args,_964,_960);});}var err=args.error;if(err&&lang.isFunction(err)){d.addErrback(function(_965){return err.call(args,_965,_960);});}var _966=args.handle;if(_966&&lang.isFunction(_966)){d.addBoth(function(_967){return _966.call(args,_967,_960);});}d.addErrback(function(_968){return _95f(_968,d);});if(cfg.ioPublish&&dojo.publish&&_960.args.ioPublish!==false){d.addCallbacks(function(res){dojo.publish("/dojo/io/load",[d,res]);return res;},function(res){dojo.publish("/dojo/io/error",[d,res]);return res;});d.addBoth(function(res){dojo.publish("/dojo/io/done",[d,res]);return res;});}d.ioArgs=_960;return d;};var _969=function(dfd){var ret=_958[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);return ret===undefined?null:ret;};var _96a=function(_96b,dfd){if(!dfd.ioArgs.args.failOk){console.error(_96b);}return _96b;};var _96c=function(dfd){if(_96d<=0){_96d=0;if(cfg.ioPublish&&dojo.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){dojo.publish("/dojo/io/stop");}}};var _96d=0;_955.after(_956,"_onAction",function(){_96d-=1;});_955.after(_956,"_onInFlight",_96c);dojo._ioCancelAll=_956.cancelAll;dojo._ioNotifyStart=function(dfd){if(cfg.ioPublish&&dojo.publish&&dfd.ioArgs.args.ioPublish!==false){if(!_96d){dojo.publish("/dojo/io/start");}_96d+=1;dojo.publish("/dojo/io/send",[dfd]);}};dojo._ioWatch=function(dfd,_96e,_96f,_970){var args=dfd.ioArgs.options=dfd.ioArgs.args;lang.mixin(dfd,{response:dfd.ioArgs,isValid:function(_971){return _96e(dfd);},isReady:function(_972){return _96f(dfd);},handleResponse:function(_973){return _970(dfd);}});_956(dfd);_96c(dfd);};var _974="application/x-www-form-urlencoded";dojo._ioAddQueryToUrl=function(_975){if(_975.query.length){_975.url+=(_975.url.indexOf("?")==-1?"?":"&")+_975.query;_975.query=null;}};dojo.xhr=function(_976,args,_977){var rDfd;var dfd=dojo._ioSetArgs(args,function(dfd){rDfd&&rDfd.cancel();},_969,_96a);var _978=dfd.ioArgs;if("postData" in args){_978.query=args.postData;}else{if("putData" in args){_978.query=args.putData;}else{if("rawBody" in args){_978.query=args.rawBody;}else{if((arguments.length>2&&!_977)||"POST|PUT".indexOf(_976.toUpperCase())===-1){dojo._ioAddQueryToUrl(_978);}}}}var _979={method:_976,handleAs:"text",timeout:args.timeout,withCredentials:args.withCredentials,ioArgs:_978};if(typeof args.headers!=="undefined"){_979.headers=args.headers;}if(typeof args.contentType!=="undefined"){if(!_979.headers){_979.headers={};}_979.headers["Content-Type"]=args.contentType;}if(typeof _978.query!=="undefined"){_979.data=_978.query;}if(typeof args.sync!=="undefined"){_979.sync=args.sync;}dojo._ioNotifyStart(dfd);try{rDfd=_957(_978.url,_979,true);}catch(e){dfd.cancel();return dfd;}dfd.ioArgs.xhr=rDfd.response.xhr;rDfd.then(function(){dfd.resolve(dfd);}).otherwise(function(_97a){_978.error=_97a;dfd.reject(_97a);});return dfd;};dojo.xhrGet=function(args){return dojo.xhr("GET",args);};dojo.rawXhrPost=dojo.xhrPost=function(args){return dojo.xhr("POST",args,true);};dojo.rawXhrPut=dojo.xhrPut=function(args){return dojo.xhr("PUT",args,true);};dojo.xhrDelete=function(args){return dojo.xhr("DELETE",args);};dojo._isDocumentOk=function(x){return util.checkStatus(x.status);};dojo._getText=function(url){var _97b;dojo.xhrGet({url:url,sync:true,load:function(text){_97b=text;}});return _97b;};lang.mixin(dojo.xhr,{_xhrObj:dojo._xhrObj,fieldToObject:_951.fieldToObject,formToObject:_951.toObject,objectToQuery:ioq.objectToQuery,formToQuery:_951.toQuery,formToJson:_951.toJson,queryToObject:ioq.queryToObject,contentHandlers:_958,_ioSetArgs:dojo._ioSetArgs,_ioCancelAll:dojo._ioCancelAll,_ioNotifyStart:dojo._ioNotifyStart,_ioWatch:dojo._ioWatch,_ioAddQueryToUrl:dojo._ioAddQueryToUrl,_isDocumentOk:dojo._isDocumentOk,_getText:dojo._getText,get:dojo.xhrGet,post:dojo.xhrPost,put:dojo.xhrPut,del:dojo.xhrDelete});return dojo.xhr;});},"dojox/mvc/EditStoreRefController":function(){define("dojox/mvc/EditStoreRefController",["dojo/_base/declare","dojo/_base/lang","dojo/when","./getPlainValue","./EditModelRefController","./StoreRefController"],function(_97c,lang,when,_97d,_97e,_97f){return _97c("dojox.mvc.EditStoreRefController",[_97f,_97e],{getPlainValueOptions:null,_removals:[],_resultsWatchHandle:null,_refSourceModelProp:"sourceModel",queryStore:function(_980,_981){if(!(this.store||{}).query){return;}if(this._resultsWatchHandle){this._resultsWatchHandle.unwatch();}this._removals=[];var _982=this;return when(this.inherited(arguments),function(_983){if(_982._beingDestroyed){return;}if(lang.isArray(_983)){_982._resultsWatchHandle=_983.watchElements(function(idx,_984,adds){[].push.apply(_982._removals,_984);});}return _983;});},getStore:function(id,_985){if(this._resultsWatchHandle){this._resultsWatchHandle.unwatch();}return this.inherited(arguments);},commit:function(){if(this._removals){for(var i=0;i<this._removals.length;i++){this.store.remove(this.store.getIdentity(this._removals[i]));}this._removals=[];}var data=_97d(this.get(this._refEditModelProp),this.getPlainValueOptions);if(lang.isArray(data)){for(var i=0;i<data.length;i++){this.store.put(data[i]);}}else{this.store.put(data);}this.inherited(arguments);},reset:function(){this.inherited(arguments);this._removals=[];},destroy:function(){if(this._resultsWatchHandle){this._resultsWatchHandle.unwatch();}this.inherited(arguments);}});});},"dojo/has":function(){define(["require","module"],function(_986,_987){var has=_986.has||function(){};if(!1){var _988=typeof window!="undefined"&&typeof location!="undefined"&&typeof document!="undefined"&&window.location==location&&window.document==document,_989=this,doc=_988&&document,_98a=doc&&doc.createElement("DiV"),_98b=(_987.config&&_987.config())||{};has=function(name){return typeof _98b[name]=="function"?(_98b[name]=_98b[name](_989,doc,_98a)):_98b[name];};has.cache=_98b;has.add=function(name,test,now,_98c){(typeof _98b[name]=="undefined"||_98c)&&(_98b[name]=test);return now&&has(name);};1||has.add("host-browser",_988);1||has.add("dom",_988);1||has.add("dojo-dom-ready-api",1);1||has.add("dojo-sniff",1);}if(1){has.add("dom-addeventlistener",!!document.addEventListener);has.add("touch","ontouchstart" in document);has.add("device-width",screen.availWidth||innerWidth);var form=document.createElement("form");has.add("dom-attributes-explicit",form.attributes.length==0);has.add("dom-attributes-specified-flag",form.attributes.length>0&&form.attributes.length<40);}has.clearElement=function(_98d){_98d.innerHTML="";return _98d;};has.normalize=function(id,_98e){var _98f=id.match(/[\?:]|[^:\?]*/g),i=0,get=function(skip){var term=_98f[i++];if(term==":"){return 0;}else{if(_98f[i++]=="?"){if(!skip&&has(term)){return get();}else{get(true);return get(skip);}}return term||0;}};id=get();return id&&_98e(id);};has.load=function(id,_990,_991){if(id){_990([id],_991);}else{_991();}};return has;});},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(dojo,lang,has){if(!1){return has;}dojo._name="browser";lang.mixin(dojo,{isBrowser:true,isFF:has("ff"),isIE:has("ie"),isKhtml:has("khtml"),isWebKit:has("webkit"),isMozilla:has("mozilla"),isMoz:has("mozilla"),isOpera:has("opera"),isSafari:has("safari"),isChrome:has("chrome"),isMac:has("mac"),isIos:has("ios"),isAndroid:has("android"),isWii:has("wii"),isQuirks:has("quirks"),isAir:has("air")});dojo.locale=dojo.locale||(has("ie")?navigator.userLanguage:navigator.language).toLowerCase();return has;});},"dojo/_base/window":function(){define("dojo/_base/window",["./kernel","./lang","../sniff"],function(dojo,lang,has){var ret={global:dojo.global,doc:this["document"]||null,body:function(doc){doc=doc||dojo.doc;return doc.body||doc.getElementsByTagName("body")[0];},setContext:function(_992,_993){dojo.global=ret.global=_992;dojo.doc=ret.doc=_993;},withGlobal:function(_994,_995,_996,_997){var _998=dojo.global;try{dojo.global=ret.global=_994;return ret.withDoc.call(null,_994.document,_995,_996,_997);}finally{dojo.global=ret.global=_998;}},withDoc:function(_999,_99a,_99b,_99c){var _99d=ret.doc,oldQ=has("quirks"),_99e=has("ie"),isIE,mode,pwin;try{dojo.doc=ret.doc=_999;dojo.isQuirks=has.add("quirks",dojo.doc.compatMode=="BackCompat",true,true);if(has("ie")){if((pwin=_999.parentWindow)&&pwin.navigator){isIE=parseFloat(pwin.navigator.appVersion.split("MSIE ")[1])||undefined;mode=_999.documentMode;if(mode&&mode!=5&&Math.floor(isIE)!=mode){isIE=mode;}dojo.isIE=has.add("ie",isIE,true,true);}}if(_99b&&typeof _99a=="string"){_99a=_99b[_99a];}return _99a.apply(_99b,_99c||[]);}finally{dojo.doc=ret.doc=_99d;dojo.isQuirks=has.add("quirks",oldQ,true,true);dojo.isIE=has.add("ie",_99e,true,true);}}};1&&lang.mixin(dojo,ret);return ret;});},"dojo/when":function(){define(["./Deferred","./promise/Promise"],function(_99f,_9a0){"use strict";return function when(_9a1,_9a2,_9a3,_9a4){var _9a5=_9a1&&typeof _9a1.then==="function";var _9a6=_9a5&&_9a1 instanceof _9a0;if(!_9a5){if(_9a2){return _9a2(_9a1);}else{return new _99f().resolve(_9a1);}}else{if(!_9a6){var _9a7=new _99f(_9a1.cancel);_9a1.then(_9a7.resolve,_9a7.reject,_9a7.progress);_9a1=_9a7.promise;}}if(_9a2||_9a3||_9a4){return _9a1.then(_9a2,_9a3,_9a4);}return _9a1;};});},"url:dijit/form/templates/CheckBox.html":"<div class=\"dijit dijitReset dijitInline\" role=\"presentation\"\n\t><input\n\t \t${!nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdata-dojo-attach-point=\"focusNode\"\n\t \tdata-dojo-attach-event=\"onclick:_onClick\"\n/></div>\n","dojo/errors/RequestError":function(){define(["./create"],function(_9a8){return _9a8("RequestError",function(_9a9,_9aa){this.response=_9aa;});});},"url:dijit/form/templates/TextBox.html":"<div class=\"dijit dijitReset dijitInline dijitLeft\" id=\"widget_${id}\" role=\"presentation\"\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class=\"dijitReset dijitInputInner\" data-dojo-attach-point='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${!nameAttrSetting} type='${type}'\n\t/></div\n></div>\n","dojox/mvc/StatefulArray":function(){define("dojox/mvc/StatefulArray",["dojo/_base/lang","dojo/Stateful"],function(lang,_9ab){function _9ac(a){if(a._watchElementCallbacks){a._watchElementCallbacks();}return a;};var _9ad=function(a){var _9ae=lang._toArray(a);var ctor=_9ad;ctor._meta={bases:[_9ab]};_9ae.constructor=ctor;return lang.mixin(_9ae,{pop:function(){return this.splice(this.get("length")-1,1)[0];},push:function(){this.splice.apply(this,[this.get("length"),0].concat(lang._toArray(arguments)));return this.get("length");},reverse:function(){return _9ac([].reverse.apply(this,lang._toArray(arguments)));},shift:function(){return this.splice(0,1)[0];},sort:function(){return _9ac([].sort.apply(this,lang._toArray(arguments)));},splice:function(idx,n){var l=this.get("length"),p=Math.min(idx,l),_9af=this.slice(idx,idx+n),adds=lang._toArray(arguments).slice(2);[].splice.apply(this,[idx,n].concat(new Array(adds.length)));for(var i=0;i<adds.length;i++){this.set(p+i,adds[i]);}if(this._watchElementCallbacks){this._watchElementCallbacks(idx,_9af,adds);}if(this._watchCallbacks){this._watchCallbacks("length",l,l-_9af.length+adds.length);}return _9af;},unshift:function(){this.splice.apply(this,[0,0].concat(lang._toArray(arguments)));return this.get("length");},concat:function(a){return new _9ad([].concat(this).concat(a));},join:function(sep){var list=[];for(var l=this.get("length"),i=0;i<l;i++){list.push(this.get(i));}return list.join(sep);},slice:function(_9b0,end){var _9b1=[],end=typeof end==="undefined"?this.get("length"):end;for(var i=_9b0||0;i<Math.min(end,this.get("length"));i++){_9b1.push(this.get(i));}return new _9ad(_9b1);},watchElements:function(_9b2){var _9b3=this._watchElementCallbacks,_9b4=this;if(!_9b3){_9b3=this._watchElementCallbacks=function(idx,_9b5,adds){for(var list=[].concat(_9b3.list),i=0;i<list.length;i++){list[i].call(_9b4,idx,_9b5,adds);}};_9b3.list=[];}_9b3.list.push(_9b2);var h={};h.unwatch=h.remove=function(){for(var list=_9b3.list,i=0;i<list.length;i++){if(list[i]==_9b2){list.splice(i,1);break;}}};return h;}},_9ab.prototype,{set:function(name,_9b6){if(name=="length"){var old=this.get("length");if(old<_9b6){this.splice.apply(this,[old,0].concat(new Array(_9b6-old)));}else{if(_9b6>old){this.splice.apply(this,[_9b6,old-_9b6]);}}return this;}else{var _9b7=this.length;_9ab.prototype.set.call(this,name,_9b6);if(_9b7!=this.length){_9ab.prototype.set.call(this,"length",this.length);}return this;}}});};return lang.setObject("dojox.mvc.StatefulArray",_9ad);});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["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","./registry"],function(_9b8,_9b9,_9ba,_9bb,_9bc,_9bd,dom,_9be,_9bf,_9c0,_9c1,_9c2,has,_9c3,lang,on,_9c4,_9c5,_9c6,win,_9c7,_9c8){has.add("dijit-legacy-requires",!_9c3.isAsync);if(has("dijit-legacy-requires")){_9c4(0,function(){var _9c9=["dijit/_base/manager"];_9b8(_9c9);});}var _9ca={};function _9cb(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _9cc(attr){return function(val){_9be[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};return _9bd("dijit._WidgetBase",[_9c5,_9c7],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_9cc("lang"),dir:"",_setDirAttr:_9cc("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(val){this._set("ownerDocument",val);},attributeMap:{},_blankGif:_9bb.blankGif||_9b8.toUrl("dojo/resources/blank.gif"),postscript:function(_9cd,_9ce){this.create(_9cd,_9ce);},create:function(_9cf,_9d0){this.srcNodeRef=dom.byId(_9d0);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_9cf){this.params=_9cf;lang.mixin(this,_9cf);}this.postMixInProperties();if(!this.id){this.id=_9c8.getUniqueId(this.declaredClass.replace(/\./g,"_"));if(this.params){delete this.params.id;}}this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:win.doc);this.ownerDocumentBody=win.body(this.ownerDocument);_9c8.add(this);this.buildRendering();var _9d1;if(this.domNode){this._applyAttributes();var _9d2=this.srcNodeRef;if(_9d2&&_9d2.parentNode&&this.domNode!==_9d2){_9d2.parentNode.replaceChild(this.domNode,_9d2);_9d1=true;}this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(_9d1){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var ctor=this.constructor,list=ctor._setterAttrs;if(!list){list=(ctor._setterAttrs=[]);for(var attr in this.attributeMap){list.push(attr);}var _9d3=ctor.prototype;for(var _9d4 in _9d3){if(_9d4 in this.attributeMap){continue;}var _9d5="_set"+_9d4.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_9d5 in _9d3){list.push(_9d4);}}}_9b9.forEach(list,function(attr){if(this.params&&attr in this.params){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(var _9d6 in this.params){this.set(_9d6,this.params[_9d6]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div");}if(this.baseClass){var _9d7=this.baseClass.split(" ");if(!this.isLeftToRight()){_9d7=_9d7.concat(_9b9.map(_9d7,function(name){return name+"Rtl";}));}_9bf.add(this.domNode,_9d7);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_9b9.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_9d8){this._beingDestroyed=true;this.destroyDescendants(_9d8);this.destroy(_9d8);},destroy:function(_9d9){this._beingDestroyed=true;this.uninitialize();function _9da(w){if(w.destroyRecursive){w.destroyRecursive(_9d9);}else{if(w.destroy){w.destroy(_9d9);}}};_9b9.forEach(this._connects,lang.hitch(this,"disconnect"));_9b9.forEach(this._supportingWidgets,_9da);if(this.domNode){_9b9.forEach(_9c8.findWidgets(this.domNode,this.containerNode),_9da);}this.destroyRendering(_9d9);_9c8.remove(this.id);this._destroyed=true;},destroyRendering:function(_9db){if(this.bgIframe){this.bgIframe.destroy(_9db);delete this.bgIframe;}if(this.domNode){if(_9db){_9be.remove(this.domNode,"widgetId");}else{_9c0.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_9db){_9c0.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_9dc){_9b9.forEach(this.getChildren(),function(_9dd){if(_9dd.destroyRecursive){_9dd.destroyRecursive(_9dc);}});},uninitialize:function(){return false;},_setStyleAttr:function(_9de){var _9df=this.domNode;if(lang.isObject(_9de)){_9c2.set(_9df,_9de);}else{if(_9df.style.cssText){_9df.style.cssText+="; "+_9de;}else{_9df.style.cssText=_9de;}}this._set("style",_9de);},_attrToDom:function(attr,_9e0,_9e1){_9e1=arguments.length>=3?_9e1:this.attributeMap[attr];_9b9.forEach(lang.isArray(_9e1)?_9e1:[_9e1],function(_9e2){var _9e3=this[_9e2.node||_9e2||"domNode"];var type=_9e2.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_9e0)){_9e0=lang.hitch(this,_9e0);}var _9e4=_9e2.attribute?_9e2.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);if(_9e3.tagName){_9be.set(_9e3,_9e4,_9e0);}else{_9e3.set(_9e4,_9e0);}break;case "innerText":_9e3.innerHTML="";_9e3.appendChild(this.ownerDocument.createTextNode(_9e0));break;case "innerHTML":_9e3.innerHTML=_9e0;break;case "class":_9bf.replace(_9e3,_9e0,this[attr]);break;}},this);},get:function(name){var _9e5=this._getAttrNames(name);return this[_9e5.g]?this[_9e5.g]():this[name];},set:function(name,_9e6){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _9e7=this._getAttrNames(name),_9e8=this[_9e7.s];if(lang.isFunction(_9e8)){var _9e9=_9e8.apply(this,Array.prototype.slice.call(arguments,1));}else{var _9ea=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_9ea].tagName,_9eb=_9ca[tag]||(_9ca[tag]=_9cb(this[_9ea])),map=name in this.attributeMap?this.attributeMap[name]:_9e7.s in this?this[_9e7.s]:((_9e7.l in _9eb&&typeof _9e6!="function")||/^aria-|^data-|^role$/.test(name))?_9ea:null;if(map!=null){this._attrToDom(name,_9e6,map);}this._set(name,_9e6);}return _9e9||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(name,_9ec){var _9ed=this[name];this[name]=_9ec;if(this._created&&_9ec!==_9ed){if(this._watchCallbacks){this._watchCallbacks(name,_9ed,_9ec);}this.emit("attrmodified-"+name,{detail:{prevValue:_9ed,newValue:_9ec}});}},emit:function(type,_9ee,_9ef){_9ee=_9ee||{};if(_9ee.bubbles===undefined){_9ee.bubbles=true;}if(_9ee.cancelable===undefined){_9ee.cancelable=true;}if(!_9ee.detail){_9ee.detail={};}_9ee.detail.widget=this;var ret,_9f0=this["on"+type];if(_9f0){ret=_9f0.apply(this,_9ef?_9ef:[_9ee]);}if(this._started&&!this._beingDestroyed){on.emit(this.domNode,type.toLowerCase(),_9ee);}return ret;},on:function(type,func){var _9f1=this._onMap(type);if(_9f1){return _9ba.after(this,_9f1,func,true);}return this.own(on(this.domNode,type,func))[0];},_onMap:function(type){var ctor=this.constructor,map=ctor._onMap;if(!map){map=(ctor._onMap={});for(var attr in ctor.prototype){if(/^on/.test(attr)){map[attr.replace(/^on/,"").toLowerCase()]=attr;}}}return map[typeof type=="string"&&type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_9c8.findWidgets(this.containerNode):[];},getParent:function(){return _9c8.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_9f2,_9f3){return this.own(_9bc.connect(obj,_9f2,this,_9f3))[0];},disconnect:function(_9f4){_9f4.remove();},subscribe:function(t,_9f5){return this.own(_9c6.subscribe(t,lang.hitch(this,_9f5)))[0];},unsubscribe:function(_9f6){_9f6.remove();},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_9c1.isBodyLtr(this.ownerDocument);},isFocusable:function(){return this.focus&&(_9c2.get(this.domNode,"display")!="none");},placeAt:function(_9f7,_9f8){var _9f9=!_9f7.tagName&&_9c8.byId(_9f7);if(_9f9&&_9f9.addChild&&(!_9f8||typeof _9f8==="number")){_9f9.addChild(this,_9f8);}else{var ref=_9f9?(_9f9.containerNode&&!/after|before|replace/.test(_9f8||"")?_9f9.containerNode:_9f9.domNode):dom.byId(_9f7,this.ownerDocument);_9c0.place(this.domNode,ref,_9f8);if(!this._started&&(this.getParent()||{})._started){this.startup();}}return this;},getTextDir:function(text,_9fa){return _9fa;},applyTextDir:function(){},defer:function(fcn,_9fb){var _9fc=setTimeout(lang.hitch(this,function(){_9fc=null;if(!this._destroyed){lang.hitch(this,fcn)();}}),_9fb||0);return {remove:function(){if(_9fc){clearTimeout(_9fc);_9fc=null;}return null;}};}});});},"todo/ctrl/_HashCompletedMixin":function(){define(["dojo/_base/declare"],function(_9fd){var _9fe="/active",_9ff="/completed";function _a00(_a01){return _a01.hash==_9fe?_a01.completed:_a01.hash==_9ff?!_a01.completed:false;};return _9fd(null,{_setHashAttr:function(_a02){this.set("hidden",_a00({hash:_a02,completed:this.completed}));this._set("hash",_a02);},_setCompletedAttr:function(_a03){this.set("hidden",_a00({hash:this.hash,completed:_a03}));this._set("completed",_a03);}});});},"*now":function(r){r(["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 _a04=this.require;_a04({cache:{}});!_a04.async&&_a04(["dojo"]);_a04.boot&&_a04.apply(null,_a04.boot);})();